{"version":3,"sources":["dhive.js"],"names":["$","document","on","livingOption","this","attr","replace","removeClass","addClass","hide","show","window","location","hash","has","find","trigger","jQuery","ready","trim","html","length"],"mappings":";;;;;AAAA,cAEA,SAAAA,GACAA,EAAAC,UAAAC,GAAA,QAAA,sDAAA,WACA,IAAAC,EAAAH,EAAAI,MAAAC,KAAA,QAAAC,QAAA,IAAA,IAHAN,EAAA,uDAAAO,YAAA,oCACAP,EAAAI,MAAAI,SAAA,oCAEAR,EAAA,mBAAAS,OACAT,EAAA,oBAAAG,GAAAO,SAIA,wBAAAC,OAAAC,SAAAC,MAAA,qBAAAF,OAAAC,SAAAC,MAAA,qBAAAF,OAAAC,SAAAC,KACAb,EAAA,qDAAAc,IAAA,WAAAH,OAAAC,SAAAC,KAAA,MAAAE,KAAA,KAAAC,QAAA,SAEAhB,EAAA,mEAAAgB,QAAA,SAIAC,OAAAhB,UAAAiB,MAAA,SAAAlB,GAEAA,EAAAmB,KAAAnB,EAAA,+CAAAoB,QAAAC,QACArB,EAAA,cAAAU,SAjBA,CAqBAO","file":"dhive.js","sourcesContent":["\"use strict\";\n\n(function($) {\n\t$(document).on(\"click\", \".living-options__selector .fl-button-group-button a\", function() {\n\t\tvar livingOption = $(this).attr(\"href\").replace(\"#\", \"\");\n\n\t\t$(\".living-options__selector .fl-button-group-button a\").removeClass(\"living-options__selector--active\");\n\t\t$(this).addClass(\"living-options__selector--active\");\n\n\t\t$(\".living-options\").hide();\n\t\t$(\".living-options__\" + livingOption).show();\n\t});\n\n\t/*jshint quotmark: false */\n\tif(window.location.hash === \"#independent-living\" || window.location.hash === \"#assisted-living\" || window.location.hash === \"#short-term-stay\" ) {\n\t\t$(\".living-options__selector .fl-button-group-button\").has('a[href=\"' + window.location.hash + '\"]').find(\"a\").trigger(\"click\");\n\t} else {\n\t\t$(\".living-options__selector .fl-button-group-button:first-child a\").trigger(\"click\");\n\t}\n\t/*jshint quotmark: true */\n\n\tjQuery(document).ready(function($) {\n\t\t// show the no-events div if there are no events\n\t\tif (!$.trim( $('.tribe-events-pro-photo .tribe-common-g-row').html() ).length) {\n\t\t\t$('.no-events').show();\n\t\t}\n\t});\n\n})(jQuery);\n"]}