{"version":3,"sources":["../../source/assets/js/tab.js","../../source/assets/js/facilities-tabs.js","../../source/assets/js/facilities-filters-display.js","../../source/assets/js/facilities-ajax.js","../../source/assets/js/facility-read-more.js","../../source/assets/js/facilities-zip-search.js","../../source/assets/js/facility-image-carousel.js","../../source/assets/js/facility-image-gallery.js","../../source/assets/js/facility-sticky-sidebar.js","../../source/assets/js/facility-detail-read-more.js","../../source/assets/js/facility-expand-search.js","../../source/assets/js/facility-sticky-bar.js"],"names":["global","factory","exports","module","require","define","amd","globalThis","self","Tab","jQuery","Util","this","$","_interopDefaultLegacy","e","default","$__default","Util__default","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","JQUERY_NO_CONFLICT","fn","element","_element","Constructor","protoProps","staticProps","_proto","prototype","show","_this","parentNode","nodeType","Node","ELEMENT_NODE","hasClass","previous","listElement","closest","selector","getSelectorFromElement","itemSelector","nodeName","makeArray","find","hideEvent","Event","relatedTarget","showEvent","trigger","isDefaultPrevented","document","querySelector","_activate","complete","hiddenEvent","shownEvent","dispose","removeData","container","callback","_this2","active","children","isTransitioning","_transitionComplete","transitionDuration","getTransitionDurationFromElement","removeClass","one","TRANSITION_END","emulateTransitionEnd","dropdownChild","getAttribute","setAttribute","addClass","reflow","classList","contains","add","parent","dropdownElement","dropdownToggleList","slice","call","querySelectorAll","_jQueryInterface","config","each","$this","data","TypeError","get","on","event","preventDefault","noConflict","tabNav","tabToggles","Array","from","tabPanels","map","toggle","getElementById","substring","ACTIVE_TOGGLE","ACTIVE_PANEL","activateTabFromUrl","hash","window","location","id","split","tab","panel","activateTab","noUrlUpdate","activeTabToggle","activeTabPanel","matches","forEach","remove","currUrlBase","href","history","replaceState","body","dispatchEvent","scrollIntoView","behavior","block","addEventListener","ready","$filters","$filterGroups","$contentBlock","FILTER_OPEN","$body","toggleFilterGroup","attr","text","originalText","idSelector","filter","toggleClass","$facilitiesWrap","$forms","$activeContainers","$resultWrapper","$spinners","$count","currRequest","escapeRegExp","replace","pageNav","$pagination","$pages","$currPage","currPageIndex","index","is","prop","eq","updateActiveFilters","$form","$formActiveContainers","$checked","checkboxId","checkboxText","next","trim","append","empty","makeNewRequest","preventScroll","serializeArray","hideError","apply","animate","scrollTop","offset","top","outerHeight","abort","ajax","url","dataType","context","success","results","$results","start","end","total","$countText","replaceWith","tooltip","showErrorState","error","hide","h","inputVals","$whichForm","$inputs","updated","attrs","nameSelector","name","RegExp","test","valSelector","val","$t","not","applyUrlFilters","dataLayer","$result","$resultSetWrap","eventType","toLowerCase","match","pageNum","parseInt","isNaN","dataObj","sponsored","page","facility_id","facility","city","state","push","form","setTimeout","facilityResultsContainers","readMoreSelector","descWrapperClass","readMoreVisibleClass","moreTags","tagWrapper","moreTagsVisibleClass","timer","handleNewResultsSet","clearTimeout","readMoreVisible","toggleExpanded","fontName","getComputedStyle","getPropertyValue","fontListener","fonts","fontfaces","font","family","removeEventListener","load","expandedClass","descWrapper","readMoreEles","readMore","readMoreRect","getBoundingClientRect","truncateEle","truncateEleRect","truncateEleStyles","parseFloat","bottom","tagToggles","setupToggleTags","$zipForm","$submitBtn","$allFilters","submitZip","$btn","splitParamUrl","urlParams","URLSearchParams","invalid","set","validHash","aEle","createElement","size","toString","arguments","$carousels","$slideScrollers","$dotsParent","$dotWrapper","$dot","$nextBtns","$prevBtns","activeDot","disabledBtns","initCarousel","off","nextSlide","prevSlide","scrollHandler","dotScroll","updateIndicators","updateArrows","$carousel","scrollToSlide","$container","scrollPos","scrollLeft","containerOffset","offsetLeft","$slides","getCurrentSlide","goToIndex","Math","max","min","origScroll","scrollTo","currScroll","left","$currIndicator","$next","$prev","currIndex","$imageGallery","$fullscreenModal","$googleWrap","googleLoaded","address","google","maps","places","PlacesService","findPlaceFromQuery","query","fields","status","PlacesServiceStatus","OK","photos","src","getUrl","maxWidth","img","width","height","initGoogleMap","iframe","carousel","interval","ride","wrap","initGallery","script","appendChild","initGooglePlaceImage","$accredVid","detailWrapper","updateHeight","actionTimer","calculateOffset","facilityDetailRect","css","rightRailOffset","rightRailParentOffset","rightRailDefaultHeight","heightDiff","facilityMoreContent","$toggles","stickyBar","contactInfo","ACTIVE","UNSTUCK","IntersectionObserver","entries","entry","isIntersecting","html","documentElement","rect","right","clientWidth","clientHeight","inViewport","threshold","observe"],"mappings":"CAKA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,oBAAAC,OAAAA,OAAAD,QAAAD,EAAAG,QAAA,UAAAA,QAAA,cACA,mBAAAC,QAAAA,OAAAC,IAAAD,OAAA,CAAA,SAAA,UAAAJ,IACAD,EAAA,oBAAAO,WAAAA,WAAAP,GAAAQ,MAAAC,IAAAR,EAAAD,EAAAU,OAAAV,EAAAW,MAHA,CAIAC,KAAA,SAAAC,EAAAF,GAAA,aAEA,SAAAG,EAAAC,GAAA,OAAAA,GAAA,iBAAAA,GAAA,YAAAA,EAAAA,EAAA,CAAAC,QAAAD,GAEA,IAAAE,EAAAH,EAAAD,GACAK,EAAAJ,EAAAH,GAEA,SAAAQ,EAAAC,EAAAC,GACA,IAAA,IAAAC,EAAA,EAAAA,EAAAD,EAAAE,OAAAD,IAAA,CACA,IAAAE,EAAAH,EAAAC,GACAE,EAAAC,WAAAD,EAAAC,aAAA,EACAD,EAAAE,cAAA,EACA,UAAAF,IAAAA,EAAAG,UAAA,GACAC,OAAAC,eAAAT,EAAAI,EAAAM,IAAAN,IAcA,IAKAO,EAAAd,EAAA,QAAAe,GAAA,IAsBAvB,EAAA,WACA,SAAAA,EAAAwB,GACArB,KAAAsB,SAAAD,EAIA,IA3CAE,EAAAC,EAAAC,EA2CAC,EAAA7B,EAAA8B,UAmKA,OAhKAD,EAAAE,KAAA,WACA,IAAAC,EAAA7B,KAEA,KAAAA,KAAAsB,SAAAQ,YAAA9B,KAAAsB,SAAAQ,WAAAC,WAAAC,KAAAC,cAAA5B,EAAA,QAAAL,KAAAsB,UAAAY,SAhCA,WAgCA7B,EAAA,QAAAL,KAAAsB,UAAAY,SA/BA,aA+BA,CAIA,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strap.com/)\n * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :\n typeof define === 'function' && define.amd ? define(['jquery', './util'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tab = factory(global.jQuery, global.Util));\n})(this, (function ($, Util) { 'use strict';\n\n function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\n var $__default = /*#__PURE__*/_interopDefaultLegacy($);\n var Util__default = /*#__PURE__*/_interopDefaultLegacy(Util);\n\n function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n }\n\n /**\n * Constants\n */\n\n var NAME = 'tab';\n var VERSION = '4.6.1';\n var DATA_KEY = 'bs.tab';\n var EVENT_KEY = \".\" + DATA_KEY;\n var DATA_API_KEY = '.data-api';\n var JQUERY_NO_CONFLICT = $__default[\"default\"].fn[NAME];\n var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';\n var CLASS_NAME_ACTIVE = 'active';\n var CLASS_NAME_DISABLED = 'disabled';\n var CLASS_NAME_FADE = 'fade';\n var CLASS_NAME_SHOW = 'show';\n var EVENT_HIDE = \"hide\" + EVENT_KEY;\n var EVENT_HIDDEN = \"hidden\" + EVENT_KEY;\n var EVENT_SHOW = \"show\" + EVENT_KEY;\n var EVENT_SHOWN = \"shown\" + EVENT_KEY;\n var EVENT_CLICK_DATA_API = \"click\" + EVENT_KEY + DATA_API_KEY;\n var SELECTOR_DROPDOWN = '.dropdown';\n var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';\n var SELECTOR_ACTIVE = '.active';\n var SELECTOR_ACTIVE_UL = '> li > .active';\n var SELECTOR_DATA_TOGGLE = '[data-toggle=\"tab\"], [data-toggle=\"pill\"], [data-toggle=\"list\"]';\n var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';\n var SELECTOR_DROPDOWN_ACTIVE_CHILD = '> .dropdown-menu .active';\n /**\n * Class definition\n */\n\n var Tab = /*#__PURE__*/function () {\n function Tab(element) {\n this._element = element;\n } // Getters\n\n\n var _proto = Tab.prototype;\n\n // Public\n _proto.show = function show() {\n var _this = this;\n\n if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default[\"default\"](this._element).hasClass(CLASS_NAME_ACTIVE) || $__default[\"default\"](this._element).hasClass(CLASS_NAME_DISABLED)) {\n return;\n }\n\n var target;\n var previous;\n var listElement = $__default[\"default\"](this._element).closest(SELECTOR_NAV_LIST_GROUP)[0];\n var selector = Util__default[\"default\"].getSelectorFromElement(this._element);\n\n if (listElement) {\n var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE;\n previous = $__default[\"default\"].makeArray($__default[\"default\"](listElement).find(itemSelector));\n previous = previous[previous.length - 1];\n }\n\n var hideEvent = $__default[\"default\"].Event(EVENT_HIDE, {\n relatedTarget: this._element\n });\n var showEvent = $__default[\"default\"].Event(EVENT_SHOW, {\n relatedTarget: previous\n });\n\n if (previous) {\n $__default[\"default\"](previous).trigger(hideEvent);\n }\n\n $__default[\"default\"](this._element).trigger(showEvent);\n\n if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {\n return;\n }\n\n if (selector) {\n target = document.querySelector(selector);\n }\n\n this._activate(this._element, listElement);\n\n var complete = function complete() {\n var hiddenEvent = $__default[\"default\"].Event(EVENT_HIDDEN, {\n relatedTarget: _this._element\n });\n var shownEvent = $__default[\"default\"].Event(EVENT_SHOWN, {\n relatedTarget: previous\n });\n $__default[\"default\"](previous).trigger(hiddenEvent);\n $__default[\"default\"](_this._element).trigger(shownEvent);\n };\n\n if (target) {\n this._activate(target, target.parentNode, complete);\n } else {\n complete();\n }\n };\n\n _proto.dispose = function dispose() {\n $__default[\"default\"].removeData(this._element, DATA_KEY);\n this._element = null;\n } // Private\n ;\n\n _proto._activate = function _activate(element, container, callback) {\n var _this2 = this;\n\n var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default[\"default\"](container).find(SELECTOR_ACTIVE_UL) : $__default[\"default\"](container).children(SELECTOR_ACTIVE);\n var active = activeElements[0];\n var isTransitioning = callback && active && $__default[\"default\"](active).hasClass(CLASS_NAME_FADE);\n\n var complete = function complete() {\n return _this2._transitionComplete(element, active, callback);\n };\n\n if (active && isTransitioning) {\n var transitionDuration = Util__default[\"default\"].getTransitionDurationFromElement(active);\n $__default[\"default\"](active).removeClass(CLASS_NAME_SHOW).one(Util__default[\"default\"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);\n } else {\n complete();\n }\n };\n\n _proto._transitionComplete = function _transitionComplete(element, active, callback) {\n if (active) {\n $__default[\"default\"](active).removeClass(CLASS_NAME_ACTIVE);\n var dropdownChild = $__default[\"default\"](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];\n\n if (dropdownChild) {\n $__default[\"default\"](dropdownChild).removeClass(CLASS_NAME_ACTIVE);\n }\n\n if (active.getAttribute('role') === 'tab') {\n active.setAttribute('aria-selected', false);\n }\n }\n\n $__default[\"default\"](element).addClass(CLASS_NAME_ACTIVE);\n\n if (element.getAttribute('role') === 'tab') {\n element.setAttribute('aria-selected', true);\n }\n\n Util__default[\"default\"].reflow(element);\n\n if (element.classList.contains(CLASS_NAME_FADE)) {\n element.classList.add(CLASS_NAME_SHOW);\n }\n\n var parent = element.parentNode;\n\n if (parent && parent.nodeName === 'LI') {\n parent = parent.parentNode;\n }\n\n if (parent && $__default[\"default\"](parent).hasClass(CLASS_NAME_DROPDOWN_MENU)) {\n var dropdownElement = $__default[\"default\"](element).closest(SELECTOR_DROPDOWN)[0];\n\n if (dropdownElement) {\n var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE));\n $__default[\"default\"](dropdownToggleList).addClass(CLASS_NAME_ACTIVE);\n }\n\n element.setAttribute('aria-expanded', true);\n }\n\n if (callback) {\n callback();\n }\n } // Static\n ;\n\n Tab._jQueryInterface = function _jQueryInterface(config) {\n return this.each(function () {\n var $this = $__default[\"default\"](this);\n var data = $this.data(DATA_KEY);\n\n if (!data) {\n data = new Tab(this);\n $this.data(DATA_KEY, data);\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(\"No method named \\\"\" + config + \"\\\"\");\n }\n\n data[config]();\n }\n });\n };\n\n _createClass(Tab, null, [{\n key: \"VERSION\",\n get: function get() {\n return VERSION;\n }\n }]);\n\n return Tab;\n }();\n /**\n * Data API implementation\n */\n\n\n $__default[\"default\"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n event.preventDefault();\n\n Tab._jQueryInterface.call($__default[\"default\"](this), 'show');\n });\n /**\n * jQuery\n */\n\n $__default[\"default\"].fn[NAME] = Tab._jQueryInterface;\n $__default[\"default\"].fn[NAME].Constructor = Tab;\n\n $__default[\"default\"].fn[NAME].noConflict = function () {\n $__default[\"default\"].fn[NAME] = JQUERY_NO_CONFLICT;\n return Tab._jQueryInterface;\n };\n\n return Tab;\n\n}));\n//# sourceMappingURL=tab.js.map\n","( function() {\n\tconst tabNav = document.querySelector( '.facility-tabs__nav' );\n\tif( !tabNav ) { return; }\n\n\tconst tabToggles = Array.from( tabNav.querySelectorAll( 'a' ) );\n\tconst tabPanels = tabToggles.map( function( toggle ) {\n\t\treturn document.getElementById( toggle.getAttribute( 'href' ).substring( 1 ) );\n\t} );\n\n\tconst ACTIVE_TOGGLE = 'facility-tabs__nav--active';\n\tconst ACTIVE_PANEL = 'facility-tabs__panel--active';\n\t\n\tactivateTabFromUrl();\n\n\ttabToggles.forEach( function( toggle ) {\n\t\ttoggle.addEventListener( 'click', function( e ) {\n\t\t\te.preventDefault();\n\t\t\tactivateTab( this.getAttribute( 'href' ).substring( 1 ), true );\n\t\t} );\n\t} );\n\n\twindow.addEventListener( 'hashchange', function() {\n\t\tactivateTabFromUrl();\n\t} );\n\n\tfunction activateTabFromUrl() {\n\t\t// Pull hash from the URL to get active tab\n\t\tconst hash = window.location.hash;\n\t\t// clip off the beginning \"#\", and only take the first part as the tab id (filters use | on the hash to deliniate)\n\t\tconst id = hash && hash.length > 1 ? hash.substring( 1 ).split( '|' )[0] : false;\n\t\tlet tab = null;\n\t\tif( id && id.length ) {\n\t\t\t// the format of filters (e.g. MedicationAssistedTreatments=19) can make the selector mad; stick it in a try/catch\n\t\t\ttry { \n\t\t\t\ttab = tabPanels.find( function( panel ) { return panel.id == id; } );\n\t\t\t}\n\t\t\t// eslint-disable-next-line no-empty\n\t\t\tcatch( e ) {}\n\t\t}\n\n\t\tif( tab ) {\n\t\t\tactivateTab( id, true );\n\t\t} else {\n\t\t\tactivateTab( tabToggles[0].getAttribute( 'href' ).substring( 1 ), true );\n\t\t}\n\t}\n\n\tfunction activateTab( id, noUrlUpdate ) {\n\t\tvar activeTabToggle, activeTabPanel;\n\n\t\t// the format of filters (e.g. MedicationAssistedTreatments=19) can make the selector mad; stick it in a try/catch\n\t\ttry {\n\t\t\tactiveTabToggle = tabToggles.find( function( toggle ) { return toggle.matches( '[href=\"#' + id + '\"]' ); } );\n\t\t\tactiveTabPanel = tabPanels.find( function( panel ) { return panel.id == id; } );\n\t\t}\n\t\t// eslint-disable-next-line no-empty\n\t\tcatch( e ) {}\n\n\t\tif( activeTabToggle && activeTabPanel ) {\n\t\t\tif( !activeTabToggle.classList.contains( ACTIVE_TOGGLE ) ) {\n\t\t\t\ttabToggles.forEach( function( toggle ) {\n\t\t\t\t\tif( toggle !== activeTabToggle ) { toggle.classList.remove( ACTIVE_TOGGLE ); }\n\t\t\t\t} );\n\t\t\t\tactiveTabToggle.classList.add( ACTIVE_TOGGLE );\n\n\t\t\t\ttabPanels.forEach( function( panel ) {\n\t\t\t\t\tif( panel !== activeTabPanel ) { panel.classList.remove( ACTIVE_PANEL ); }\n\t\t\t\t} );\n\t\t\t\tactiveTabPanel.classList.add( ACTIVE_PANEL );\n\n\t\t\t\tif( !noUrlUpdate ) {\n\t\t\t\t\tvar currUrlBase = window.location.href.split( '#' )[0];\n\t\t\t\t\twindow.history.replaceState( null, '', currUrlBase + '#' + id );\n\n\t\t\t\t\tconst e = new Event( 'tabchanged' );\n\t\t\t\t\tdocument.body.dispatchEvent( e );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tactiveTabToggle.scrollIntoView( { behavior: 'smooth', block: 'center' } );\n\t\t}\n\t}\n} )();\n","( function( $ ) {\n\t$( document ).ready( function() {\n\t\tvar $filters = $( '.facility-filters' );\n\t\tif( !$filters.length ) { return; }\n\n\t\tvar $filterGroups = $filters.find( '.facility-filters__single' );\n\t\tvar $contentBlock = $filters.closest( '.content-block__tabs' );\n\t\t\n\t\t// Toggle display of filters (small breakpoints)\n\t\t$filters.find( '.facility-filters__close, .facility-filters__toggle' ).on( 'click', function( e ) {\n\t\t\te.preventDefault();\n\n\t\t\tconst TABS_OPEN = 'content-block__tabs--open';\n\t\t\tconst FILTER_OPEN = 'facility-filters--open';\n\t\t\tconst BODY_CLASS = 'modal-open';\n\t\t\tconst $body = $( 'body' );\n\t\t\t\n\t\t\tif( $filters.hasClass( FILTER_OPEN ) ) {\n\t\t\t\t$filters.removeClass( FILTER_OPEN );\n\t\t\t\t$body.removeClass( BODY_CLASS );\n\t\t\t\t$contentBlock.removeClass( TABS_OPEN );\n\t\t\t} else {\n\t\t\t\t$filters.addClass( FILTER_OPEN );\n\t\t\t\t$body.addClass( BODY_CLASS );\n\t\t\t\t$contentBlock.addClass( TABS_OPEN );\n\t\t\t}\n\t\t} );\n\n\t\t// Accordion behavior (small breakpoints)\n\t\t$filters.find( 'a.facility-filters__label' ).on( 'click', function( e ) {\n\t\t\te.preventDefault();\n\n\t\t\ttoggleFilterGroup( $( this ).attr( 'href' ) );\n\t\t} );\n\n\t\t// \"View All\" behavior (larger breakpoints w/ a lot of filters)\n\t\t$filters.find( '.facility-filters__all' ).each( function() {\n\t\t\t$( this ).data( 'original-text', $( this ).text() );\n\t\t} ).on( 'click', function( e ) {\n\t\t\te.preventDefault();\n\n\t\t\ttoggleFilterGroup( $( this ).attr( 'href' ) );\n\n\t\t\t// Toggle text\n\t\t\tvar originalText = $( this ).data( 'original-text' );\n\t\t\tif( $( this ).text() == originalText ) {\n\t\t\t\t$( this ).text( $( this ).data( 'filters-less' ) );\n\t\t\t} else {\n\t\t\t\t$( this ).text( originalText );\n\t\t\t}\n\t\t} );\n\n\t\tfunction toggleFilterGroup( idSelector ) {\n\t\t\t$filterGroups.filter( idSelector ).toggleClass( 'facility-filters__single--active' );\n\t\t}\n\t} );\n} )( jQuery );","( function( $ ) {\n\tvar $facilitiesWrap, $forms, $activeContainers, $resultWrapper, $spinners, $count;\n\tvar currRequest = null;\n\n\t$( document ).ready( function() {\n\t\t$facilitiesWrap = $( '.facility-tabs__container' );\n\t\tif( !$facilitiesWrap.length ) { return; }\n\n\t\t$forms = $facilitiesWrap.find( 'form' );\n\t\t$activeContainers = $forms.find( '.facility-filters__active-wrap' );\n\t\t$resultWrapper = $forms.find( '.facility-result__container' );\n\t\t$spinners = $resultWrapper.find( '.spinner' );\n\t\t$count = $facilitiesWrap.find( '.facility-result__count' );\n\n\t\t// Do this before everything's listening\n\t\tapplyUrlFilters();\n\t\t\n\t\t$facilitiesWrap.on( 'change', 'input, select', function() {\n\t\t\tif( $( this ).parent().is( '.facility-filters__sort-zip' ) ) { return; }\n\t\t\tmakeNewRequest.apply( this );\n\t\t} );\n\n\t\t$facilitiesWrap.on( 'click', '.pagination__prev a:not([tabindex=\"-1\"]), .pagination__next a:not([tabindex=\"-1\"])', pageNav );\n\t\t\n\t\t// Add analytics events to clicks on the results in the rehab tab (assuming that's the first one)\n\t\tif( window.dataLayer ) {\n\t\t\t$facilitiesWrap.find( '.facility-tabs__panel:first' ).find( $resultWrapper ).on( 'click', '.facility-result a:not([data-toggle=\"tooltip\"])', function() {\n\t\t\t\tvar $result = $( this ).closest( '.facility-result' );\n\t\t\t\tvar $resultSetWrap = $( this ).closest( '.facility-result__wrap' );\n\t\t\t\tvar eventType = '';\n\t\t\t\tvar url = $( this ).attr( 'href' ).toLowerCase(); // what's actually populated in the attribute, not the resolved url (keep it relative)\n\t\t\t\t\n\t\t\t\tif( url.match( /https?:\\/\\// ) ) {\n\t\t\t\t\teventType = 'facility_web_click';\n\t\t\t\t} else if( $( this ).hasClass( 'facility-result__contact--phone' ) ) {\n\t\t\t\t\teventType = 'facility_tel_click';\n\t\t\t\t} else {\n\t\t\t\t\teventType = 'facility_profile_click';\n\t\t\t\t}\n\n\t\t\t\tvar pageNum = parseInt( $resultSetWrap.find( '.pagination__pages input:checked' ).val() );\n\t\t\t\tif( isNaN( pageNum ) ) { pageNum = 1; } // if there is no pagination, fall back to page 1\n\n\t\t\t\tvar dataObj = {\n\t\t\t\t\t'event': eventType,\n\t\t\t\t\t'sponsored': $result.hasClass( 'facility-result--sponsored' ),\n\t\t\t\t\t'page': pageNum,\n\t\t\t\t\t'facility_id': $result.data( 'facilityid' ),\n\t\t\t\t\t'facility': ( $result.find( '.facility-result__title' ).text() ).trim(),\n\t\t\t\t\t'city': $resultSetWrap.data( 'city' ) || null,\n\t\t\t\t\t'state': $resultSetWrap.data( 'state' ) || null\n\t\t\t\t};\n\n\t\t\t\twindow.dataLayer.push( dataObj );\n\t\t\t} );\n\t\t}\n\n\t\t$forms.on( 'reset', function() {\n\t\t\tvar form = this;\n\t\t\tsetTimeout( function() { // wait a beat for the inputs to update\n\t\t\t\t// uncheck anything remaining\n\t\t\t\t$( form ).find( 'input[type=\"checkbox\"]:checked' ).prop( 'checked', false );\n\n\t\t\t\t// refresh the results\n\t\t\t\tmakeNewRequest.apply( form );\n\t\t\t}, 1 );\n\t\t} );\n\t\t$forms.on( 'submit', function( e ) { e.preventDefault(); } );\n\n\t\t$forms.each( function() {\n\t\t\tupdateActiveFilters( $( this ) );\n\t\t} );\n\t} );\n\n\t// https://stackoverflow.com/a/9310752/738394\n\tfunction escapeRegExp( text ) {\n\t\treturn text.replace( /[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&' );\n\t}\n\n\tfunction applyUrlFilters() {\n\t\t// Apply filters based on what's in the URL (assumed structure: [name]=[value]|[name]=[value])\n\t\tconst h = window.location.hash;\n\t\tif( !h || !h.length ) { return; }\n\n\t\t// chop off the # and separate out the values\n\t\tconst inputVals = h.substring( 1 ).split( '|' );\n\n\t\tvar $whichForm = $forms.filter( ':visible' ); // facilities-tabs has already activated the correct tab, assume there is only one\n\t\tvar $inputs = $whichForm.find( 'input, select, textarea' );\n\t\tvar updated = false;\n\n\t\tinputVals.forEach( function( attrs ) {\n\t\t\tattrs = attrs.split( '=' );\n\t\t\t\n\t\t\t// Case insensitive filters\n\t\t\tconst nameSelector = function() {\n\t\t\t\tvar name = $( this ).attr( 'name' );\n\t\t\t\treturn name && ( new RegExp( escapeRegExp( attrs[0] ), 'i' ) ).test( name );\n\t\t\t};\n\t\t\tconst valSelector = function() {\n\t\t\t\tvar val = $( this ).attr( 'value' );\n\t\t\t\treturn val && ( new RegExp( escapeRegExp( attrs[1] ), 'i' ) ).test( val );\n\t\t\t};\n\n\t\t\tvar $matches = $inputs.filter( nameSelector );\n\t\t\t$matches.each( function() {\n\t\t\t\tconst $t = $( this );\n\n\t\t\t\tif( $t.filter( '[type=\"checkbox\"]' ).filter( valSelector ).length ) {\n\t\t\t\t\t$t.prop( 'checked', true );\n\t\t\t\t\tupdated = true;\n\t\t\t\t} else if( $t.filter( '[type=\"radio\"]' ).filter( valSelector ).length ) {\n\t\t\t\t\t// Uncheck the other radios in the group\n\t\t\t\t\t$inputs.find( nameSelector ).not( valSelector ).prop( 'checked', false );\n\t\t\t\t\t$t.prop( 'checked', true );\n\t\t\t\t\tupdated = true;\n\t\t\t\t} else if( $t.not( '[type=\"checkbox\"]' ).length && $t.not( '[type=\"radio\"]' ).length ) {\n\n\t\t\t\t\tif( $t.is( 'select' ) ) {\n\t\t\t\t\t\t// Find the correct case of the value and set the select to it\n\t\t\t\t\t\tvar val = $t.find( 'option' ).filter( valSelector ).attr( 'value' );\n\t\t\t\t\t\tif( val && val.length ) {\n\t\t\t\t\t\t\t$t.val( val );\n\t\t\t\t\t\t\tupdated = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$t.val( attrs[1] );\n\t\t\t\t\t\tupdated = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t} );\n\n\t\tif( updated ) {\n\t\t\tmakeNewRequest.apply( $whichForm.get( 0 ), [true] );\n\t\t}\n\t}\n\n\tfunction pageNav( e ) {\n\t\te.preventDefault();\n\n\t\tvar $pagination = $( this ).closest( '.pagination' );\n\t\tvar $pages = $pagination.find( 'input[type=\"radio\"]' );\n\t\tvar $currPage = $pages.filter( ':checked' );\n\t\tvar currPageIndex = $pages.index( $currPage );\n\n\t\tif( $pagination.find( '.pagination__prev a' ).is( this ) ) {\n\t\t\t// go backwards\n\t\t\tif( currPageIndex > 0 ) {\n\t\t\t\t$currPage.prop( 'checked', false );\n\t\t\t\t$pages.eq( currPageIndex - 1 ).prop( 'checked', true ).trigger( 'change' );\n\t\t\t}\n\t\t} else {\n\t\t\t// go forwards\n\t\t\tif( currPageIndex < $pages.length - 1 ) {\n\t\t\t\t$currPage.prop( 'checked', false );\n\t\t\t\t$pages.eq( currPageIndex + 1 ).prop( 'checked', true ).trigger( 'change' );\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction updateActiveFilters( $form ) {\n\t\tvar $formActiveContainers = $form.find( $activeContainers );\n\t\tvar $checked = $form.find( 'input[type=\"checkbox\"]:checked' );\n\n\t\tif( !$checked.length ) {\n\t\t\t$formActiveContainers.empty();\n\t\t\t$formActiveContainers.closest( '.facility-filters__active' ).removeClass( 'facility-filters__active--active' );\n\t\t} else {\n\t\t\t$formActiveContainers.each( function() {\n\t\t\t\t$( this ).find( 'label' ).each( function() { // remove all filters that are no longer checked\n\t\t\t\t\tvar checkboxId = $( this ).attr( 'for' );\n\t\t\t\t\tif( !$checked.filter( '#' + checkboxId ).length ) {\n\t\t\t\t\t\t$( this ).remove();\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t} );\n\t\t\t$checked.each( function() { // ensure all that are checked are in the active area\n\t\t\t\tvar checkboxId = $( this ).attr( 'id' );\n\t\t\t\tvar checkboxText = $( this ).next( 'label' ).text().trim();\n\t\t\t\t$formActiveContainers.each( function() {\n\t\t\t\t\tif( !$( this ).find( '[for=\"' + checkboxId + '\"]' ).length ) {\n\t\t\t\t\t\t$( this ).append( '' );\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t} );\n\t\t\t$formActiveContainers.closest( '.facility-filters__active' ).addClass( 'facility-filters__active--active' );\n\t\t}\n\t}\n\n\tfunction makeNewRequest( preventScroll ) {\n\t\tvar $form = $( this ).closest( $forms );\n\n\t\tupdateActiveFilters( $form );\n\n\t\t$( '.facility-filters__sort-zip input' ).prop( 'disabled', true );\n\t\tvar data = $form.serializeArray();\n\n\t\t$form.find( $spinners ).addClass( 'spinner--active' );\n\t\t$form.find( '.facility-result__set' ).empty(); //empty results container each cycle\n\t\thideError.apply( $form );\n\t\t\n\t\tif( !preventScroll ) {\n\t\t\t$( 'html, body' ).animate( { scrollTop: $form.find( $resultWrapper ).offset().top - $( '.navbar__primary' ).outerHeight() } );\n\t\t}\n\n\t\tif( currRequest ) { currRequest.abort(); }\n\t\tcurrRequest = $.ajax( {\n\t\t\turl: $form.prop( 'action' ),\n\t\t\tdata: data,\n\t\t\tdataType: 'html',\n\t\t\tcontext: $form,\n\t\t\tsuccess: function( results ) {\n\t\t\t\tif ( results.length ) {\n\t\t\t\t\trenderResults.apply( this, [results] );\n\t\t\t\t} else {\n\t\t\t\t\tshowErrorState.apply( this );\n\t\t\t\t}\n\t\t\t}, error: showErrorState,\n\t\t\tcomplete: function() {\n\t\t\t\t$( this ).find( $spinners ).removeClass( 'spinner--active' );\n\t\t\t\tcurrRequest = null;\n\t\t\t\t$( '.facility-filters__sort-zip input' ).prop( 'disabled', false );\n\t\t\t}\n\t\t\t\n\t\t} );\n\t}\n\n\tfunction renderResults( results ) {\n\t\tvar $results = $( results ); // The new facility-result__set\n\t\tvar start = $results.data( 'results-start' );\n\t\tvar end = $results.data( 'results-end' );\n\t\tvar total = $results.data( 'results-total' );\n\n\t\tvar $countText = $( this ).find( $count );\n\t\t$countText.find( '.facility-result__start' ).text( start );\n\t\t$countText.find( '.facility-result__end' ).text( end );\n\t\t$countText.find( '.facility-result__total' ).text( total );\n\n\t\tif( $results.find( '> ul li' ).length ) { // has results (organic or sponsored)\n\t\t\t$( this ).find( '.facility-result__set' ).replaceWith( $results );\n\t\t\t$( this ).find( '[data-toggle=\"tooltip\"]' ).tooltip();\n\n\t\t\tif( total ) { // has organic results\n\t\t\t\thideError.apply( this );\n\t\t\t\t$countText.show();\n\t\t\t} else { // no organic results\n\t\t\t\tshowErrorState.apply( this );\n\t\t\t}\n\n\n\t\t\t$( 'body' ).trigger( 'facility-result-rendered' );\n\t\t} else {\n\t\t\t$( this ).find( '.facility-result__set' ).empty();\n\t\t\tshowErrorState.apply( this );\n\t\t}\n\t}\n\n\tfunction showErrorState() {\n\t\t$( this ).find( $count ).hide();\n\t\t$( this ).find( $resultWrapper ).addClass( 'facility-result--error' );\n\t}\n\n\tfunction hideError() {\n\t\t$( this ).find( $resultWrapper ).removeClass( 'facility-result--error' );\n\t}\n\n\n} )( jQuery );","( function () {\n\tconst facilityResultsContainers = document.querySelectorAll( '.facility-tabs__panel' );\n\tif( !facilityResultsContainers || !facilityResultsContainers.length ) { return; }\n\n\tconst readMoreSelector = '.facility-result__desc-toggle';\n\tconst descWrapperClass = '.facility-result__desc-section';\n\tconst readMoreVisibleClass = 'facility-result__desc-toggle--visible';\n\n\tconst moreTags = '.facility-result__tag-more';\n\tconst tagWrapper = '.facility-result__tag-group';\n\tconst moreTagsVisibleClass = 'facility-result__tag-group--active';\n\t\n\thandleNewResultsSet();\n\t\n\tlet timer;\n\twindow.addEventListener( 'resize', function() {\n\t\tif( timer ) { clearTimeout( timer ); }\n\t\ttimer = setTimeout( readMoreVisible, 300 );\n\t} );\n\n\tfacilityResultsContainers.forEach( function( container ) {\n\t\tcontainer.querySelector( '.facility-result__wrap' ).addEventListener( 'click', toggleExpanded );\n\t} );\n\n\t// jQuery event fired by facilities-ajax.js\n\t$( 'body' ).on( 'facility-result-rendered', handleNewResultsSet );\n\n\t// fired by facilities-tabs.js\n\tdocument.body.addEventListener( 'tabchanged', handleNewResultsSet );\n\n\t// calculate again after font loads\n\tconst fontName = window.getComputedStyle( facilityResultsContainers[0].querySelector( readMoreSelector ) ).getPropertyValue( 'font-family' ).split( ',' )[0];\n\tif( fontName ) {\n\t\tconst fontListener = document.fonts.addEventListener( 'loadingdone', function( e ) {\n\t\t\tif( e.fontfaces.find( function( font ) { return font.family == fontName; } ) ) {\n\t\t\t\tdocument.fonts.removeEventListener( 'loadingdone', fontListener );\n\t\t\t\treadMoreVisible();\n\t\t\t}\n\t\t} );\n\n\t\t( async function() {\n\t\t\tawait document.fonts.load( '14px ' + fontName );\n\t\t} )();\n\t}\n\n\tfunction toggleExpanded( e ) {\n\t\tconst expandedClass = 'facility-result__desc-section--expanded';\n\n\t\tif( !( e.target.matches( readMoreSelector + ' *' ) || e.target.matches( readMoreSelector ) ) ) {\n\t\t\t// Didn't click the toggle, stop here\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tconst descWrapper = e.target.closest( descWrapperClass );\n\t\tif( !descWrapper ) { return; }\n\n\t\t// Toggle expanded / collapsed\n\t\tif( descWrapper.classList.contains( expandedClass ) ) {\n\t\t\tdescWrapper.classList.remove( expandedClass );\n\t\t} else {\n\t\t\tdescWrapper.classList.add( expandedClass );\n\t\t}\n\t}\n\n\tfunction readMoreVisible() {\n\t\tconst readMoreEles = Array.from( facilityResultsContainers ).find( function( panel ) {\n\t\t\treturn panel.matches( '.facility-tabs__panel--active' );\n\t\t} ).querySelectorAll( readMoreSelector );\n\n\t\tfor( const readMore of readMoreEles ) {\n\t\t\treadMore.classList.remove( readMoreVisibleClass );\n\t\t\t\n\t\t\tconst readMoreRect = readMore.getBoundingClientRect();\n\t\t\tconst truncateEle = readMore.closest( descWrapperClass );\n\t\t\tconst truncateEleRect = truncateEle.getBoundingClientRect();\n\t\t\tconst truncateEleStyles = window.getComputedStyle( truncateEle, null );\n\t\t\t\n\t\t\tconst isVisible = (\n\t\t\t\t( readMoreRect.top >= truncateEleRect.top + parseFloat( truncateEleStyles.getPropertyValue( 'padding-top' ) ) )\n\t\t\t\t&& ( readMoreRect.bottom <= truncateEleRect.bottom + parseFloat( truncateEleStyles.getPropertyValue( 'padding-bottom' ) ) )\n\t\t\t);\n\t\t\t\n\t\t\tif( isVisible ) {\n\t\t\t\treadMore.classList.add( readMoreVisibleClass );\n\t\t\t} else {\n\t\t\t\treadMore.classList.remove( readMoreVisibleClass );\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction handleNewResultsSet() {\n\t\treadMoreVisible();\n\t\tsetupToggleTags();\n\t}\n\n\tfunction setupToggleTags() {\n\t\tconst tagToggles = Array.from( facilityResultsContainers ).find( function( panel ) {\n\t\t\treturn panel.matches( '.facility-tabs__panel--active' );\n\t\t} ).querySelectorAll( moreTags );\n\n\t\tfor( const toggle of tagToggles ) {\n\t\t\ttoggle.addEventListener( 'click', function() {\n\t\t\t\tthis.closest( tagWrapper ).classList.toggle( moreTagsVisibleClass );\n\t\t\t} );\n\t\t}\n\t}\n} )();","( function( $ ) {\n\tconst $zipForm = $( '.facility-filters__sort-zip' );\n\tif( !$zipForm.length ){ return; }\n\n\tconst $submitBtn = $zipForm.find( '.facility-filters__sort-zip--submit' );\n\n\tconst $allFilters = $( '.facility-filters' );\n\n\t$submitBtn.on( 'click', submitZip );\n\t$zipForm.on( 'keyup', function( e ) {\n\t\tif( e.key == 'Enter' ) {\n\t\t\tsubmitZip.apply( $( this ).find( $submitBtn ), arguments );\n\t\t}\n\t} );\n\n\tfunction submitZip( e ) {\n\t\te.preventDefault(); // stop for a sec while we manipulate the URL\n\t\tconst $btn = $( this );\n\t\tconst urlStub = $btn.data( 'url' );\n\t\tconst splitHashUrl = urlStub.split( '#' );\n\t\tconst splitParamUrl = splitHashUrl[0].split( '?' );\n\t\tconst urlParams = new URLSearchParams( splitParamUrl.length > 1 ? splitParamUrl[1] : '' );\n\t\tlet invalid = false;\n\n\t\t// Collect the values of the zip \"form\" into a GET request\n\t\t$btn.closest( $zipForm ).find( 'input' ).each( function() {\n\t\t\tif( invalid || $( this ).is( ':disabled' ) ) { return; }\n\t\t\tif( $( this ).is( ':invalid' ) ) { invalid = true; return; } \n\n\t\t\turlParams.set( $( this ).attr( 'name' ), $( this ).val() );\n\t\t} );\n\n\t\t// Clean out any filter values (on the hash) if they're not checked anymore\n\t\tif( !invalid ) {\n\t\t\t// Attach the currently selected filters to the zip search\n\t\t\tlet validHash = '';\n\t\t\t$allFilters.find( 'input:checked' ).each( function() {\n\t\t\t\tvalidHash += ( validHash.length ? '|' : '' ) + $( this ).attr( 'name' ) + '=' + $( this ).attr( 'value' );\n\t\t\t} );\n\n\t\t\t// recombine the URL and go. Creating a link element to help with relative link resolution\n\t\t\tconst aEle = document.createElement( 'a' );\n\t\t\taEle.href = splitParamUrl[0] + \n\t\t\t\t( urlParams.size ? '?' + urlParams.toString() : '' ) +\n\t\t\t\t( validHash.length ? '#' + validHash : '' );\n\n\t\t\twindow.location.href = aEle.href;\n\t\t}\n\t}\n} )( jQuery );\n\n\n","( function () {\n\tvar $carousels, $slideScrollers, $dotsParent, $dotWrapper, $dot, $nextBtns, $prevBtns;\n\tconst activeDot = 'active', disabledBtns = 'disabled';\n\n\t$( document ).ready( initCarousel );\n\t$( 'body' ).on( 'facility-result-rendered', initCarousel );\n\n\tfunction initCarousel(){\n\t\t$carousels = $( '.image-carousel' );\n\t\tif( !$carousels.length ) { return; }\n\n\t\t$slideScrollers = $carousels.find( '.image-carousel__container' );\n\t\t$dotsParent = $carousels.find( '.image-carousel__dots' );\n\t\t$dotWrapper = $dotsParent.find( 'li' );\n\t\t$dot = $dotWrapper.find( 'button' );\n\n\t\t$nextBtns = $carousels.find( '.image-carousel__next' ).off( 'click.imageCarousel' ).on( 'click.imageCarousel', nextSlide );\n\t\t$prevBtns = $carousels.find( '.image-carousel__prev' ).off( 'click.imageCarousel' ).on( 'click.imageCarousel', prevSlide );\n\n\t\t$slideScrollers.off( 'scroll.imageCarousel' ).on( 'scroll.imageCarousel', scrollHandler );\n\t\t$dot.off( 'click.imageCarousel' ).on( 'click.imageCarousel', dotScroll );\n\n\t\t// Set up initial state\n\t\t$carousels.each( function () {\n\t\t\tupdateIndicators( $( this ) );\n\t\t\tupdateArrows( $( this ) );\n\t\t} );\n\t}\n\n\tfunction nextSlide( e ) {\n\t\te.preventDefault();\n\t\tvar $carousel = $( this ).closest( $carousels );\n\t\tif ( $carousel.find( $dotWrapper ).eq( $carousel.data( 'currIndex' ) + 1 ).is( ':hidden' ) ) { // check if the next dot is hidden\n\t\t\tscrollToSlide( $carousel, $carousel.data( 'currIndex' ) + 2 ); \n\t\t} else {\n\t\t\tscrollToSlide( $carousel, $carousel.data( 'currIndex' ) + 1 );\n\t\t}\n\t}\n\n\tfunction prevSlide( e ) {\n\t\te.preventDefault();\n\t\tvar $carousel = $( this ).closest( $carousels );\n\t\tif ( $carousel.find( $dotWrapper ).eq( $carousel.data( 'currIndex' ) - 1 ).is( ':hidden' ) ) { \n\t\t\tscrollToSlide( $carousel, $carousel.data( 'currIndex' ) - 2 ); \n\t\t} else {\n\t\t\tscrollToSlide( $carousel, $carousel.data( 'currIndex' ) - 1 );\n\t\t}\n\t}\n\n\tfunction dotScroll ( e ) {\n\t\te.preventDefault();\n\t\tvar $carousel = $( this ).closest( $carousels );\n\t\tvar $clickedIndicator = $( this ).closest( $dotWrapper ).index();\n\n\t\tscrollToSlide( $carousel, $clickedIndicator, 'auto' );\n\t}\n\n\tfunction scrollHandler() {\n\t\tvar $carousel = $( this ).closest( $carousels );\n\t\tupdateIndicators( $carousel, getCurrentSlide( $carousel ) );\n\t\tupdateArrows( $carousel );\n\t}\n\n\tfunction scrollToSlide( $carousel, index, behavior = 'smooth' ) {\n\t\tvar $container = $carousel.find( $slideScrollers );\n\t\tvar $slides = $container.find( 'li' );\n\t\tvar goToIndex = Math.max( Math.min( index, $slides.length - 1 ), 0 ); // make sure the index is within the bounds of the slideshow\n\n\t\tif ( $carousel.data( 'currIndex' ) == goToIndex ) { return; } // bail - no need to update the DOM\n\n\t\tvar origScroll = $container.get( 0 ).scrollLeft;\n\t\tvar scrollTo = $slides.eq( goToIndex ).get( 0 ).offsetLeft - $container.get( 0 ).offsetLeft;\n\n\t\t// stop listening for the user scroll while we're scrolling in code\n\t\t$container.off( 'scroll.imageCarousel scroll.forcedScroll' ).on( 'scroll.forcedScroll', function() {\n\t\t\tvar currScroll = this.scrollLeft;\n\t\t\tif( origScroll >= scrollTo && currScroll <= scrollTo ) { // scrolling left\n\t\t\t\t$container.off( 'scroll.forcedScroll' ).on( 'scroll.imageCarousel', scrollHandler );\n\t\t\t} else if( origScroll < scrollTo && currScroll >= scrollTo ) { // scrolling right\n\t\t\t\t$container.off( 'scroll.forcedScroll' ).on( 'scroll.imageCarousel', scrollHandler );\n\t\t\t}\n\t\t} );\n\t\t$container.get( 0 ).scrollTo( { top: 0, left: scrollTo, behavior: behavior } );\n\n\t\tupdateIndicators( $carousel, index );\n\t\tupdateArrows( $carousel );\n\t}\n\n\tfunction getCurrentSlide( $carousel ) {\n\t\tvar $container = $carousel.find( $slideScrollers );\n\t\tvar scrollPos = $container.get( 0 ).scrollLeft;\n\t\tvar containerOffset = $container.get( 0 ).offsetLeft;\n\n\t\tvar $slides = $container.find( 'li' );\n\t\tvar index = 0;\n\n\t\t$slides.each( function ( i ) {\n\t\t\tvar slidePos = this.offsetLeft - containerOffset;\n\t\t\tif( slidePos <= scrollPos ) {\n\t\t\t\tindex = i;\n\t\t\t} else {\n\t\t\t\treturn false; // bail out, we've passed the scroll position\n\t\t\t}\n\t\t} );\n\n\t\treturn index;\n\t}\n\n\tfunction updateIndicators( $carousel, index ) {\n\t\tif ( typeof index == 'undefined' ) {\n\t\t\tindex = 0;\n\t\t}\n\n\t\tif ( $carousel.data( 'currIndex' ) == index ) { return; } // bail - no need to update the DOM\n\n\t\tvar $indicatorScroller = $carousel.find( $dotsParent );\n\t\tvar $dotWrapper = $indicatorScroller.find( 'li' );\n\t\tvar $currIndicator = $dotWrapper.eq( index );\n\n\t\tif ( $dotWrapper.not( ':hidden' ) ) { // check if the indicator is hidden or not\n\t\t\t$dotWrapper.find( $dot ).removeClass( activeDot );\n\t\t\t$currIndicator.find( $dot ).addClass( activeDot );\n\t\t}\n\n\t\t$carousel.data( 'currIndex', index );\n\t}\n\n\tfunction updateArrows( $carousel ) {\n\t\tvar $slides = $carousel.find( $slideScrollers ).find( 'li' );\n\t\tvar $next = $carousel.find( $nextBtns );\n\t\tvar $prev = $carousel.find( $prevBtns );\n\t\tvar currIndex = $carousel.data( 'currIndex' );\n\n\t\tif ( currIndex >= $slides.length - 1 ) {\n\t\t\t$next.addClass( disabledBtns );\n\t\t} else if ( $next.hasClass( disabledBtns ) ) {\n\t\t\t$next.removeClass( disabledBtns );\n\t\t}\n\n\t\tif ( currIndex <= 0 ) {\n\t\t\t$prev.addClass( disabledBtns );\n\t\t} else if ( $prev.hasClass( disabledBtns ) ) {\n\t\t\t$prev.removeClass( disabledBtns );\n\t\t}\n\t}\n} )();\n","/* global google */\n( function( $ ) {\n\tconst $imageGallery = $( '.facility-image-gallery' );\n\tif( !$imageGallery.length ) { return; }\n\n\tconst $fullscreenModal = $imageGallery.find( '.facility-image-gallery__fullscreen-modal' );\n\tconst $googleWrap = $imageGallery.find( '.facility-image-gallery__google' );\n\n\t// Note: Assuming only one $imageGallery per page\n\n\tif( $fullscreenModal.length ) { \n\t\tinitGallery();\n\n\t\t// The image(s) may not have actually loaded yet, but they have height/width values so the space they're taking up is accounted for already\n\t\t$( window ).trigger( 'facility-image-gallery-loaded' );\n\t} else {\n\t\tinitGooglePlaceImage();\n\t}\n\n\tfunction initGallery() {\n\t\tconst $carousel = $fullscreenModal.find( '.carousel' );\n\n\t\t$fullscreenModal.one( 'show.bs.modal', function() {\n\t\t\t// Initialize Carousel once, when the modal opens\n\t\t\t$carousel.carousel( {\n\t\t\t\tinterval: false,\n\t\t\t\tride: false,\n\t\t\t\twrap: true\n\t\t\t} );\n\t\t} ).on( 'show.bs.modal', function( e ) {\n\t\t\t// Start on the image that was clicked\n\t\t\tconst i = $( e.relatedTarget ).closest( 'div' ).index();\n\t\t\t$carousel.carousel( i );\n\t\t} ).on( 'hidden.bs.modal', function() {\n\t\t\tif( $imageGallery.find( '.modal.show' ) ) {\n\t\t\t\t// Bootstrap removes modal-open when any modal is closed, but these are stacked\n\t\t\t\t$( 'body' ).addClass( 'modal-open' );\n\t\t\t}\n\t\t} );\n\t}\n\n\tfunction initGooglePlaceImage() {\n\t\tconst key = $googleWrap.data( 'key' );\n\t\t\n\t\twindow.googleLoaded = googleLoaded; // callback for google script\n\n\t\tconst script = document.createElement( 'script' );\n\t\tscript.src = 'https://maps.googleapis.com/maps/api/js?key='+key+'&libraries=places&callback=googleLoaded';\n\t\tdocument.body.appendChild( script );\n\t}\n\n\tfunction googleLoaded() {\n\t\tconst address = $googleWrap.data( 'address' );\n\t\tconst service = new google.maps.places.PlacesService( $googleWrap.get( 0 ) );\n\t\tservice.findPlaceFromQuery( { \n\t\t\tquery: address,\n\t\t\tfields: ['name', 'photos']\n\t\t}, function( results, status ) {\n\t\t\tif ( status === google.maps.places.PlacesServiceStatus.OK ) {\n\t\t\t\tif( results[0].photos ) {\n\t\t\t\t\tconst src = results[0].photos[0].getUrl( {'maxWidth': 700} );\n\t\t\t\t\tconst img = document.createElement( 'img' );\n\t\t\t\t\timg.setAttribute( 'src', src );\n\t\t\t\t\timg.setAttribute( 'width', results[0].photos[0].width );\n\t\t\t\t\timg.setAttribute( 'height', results[0].photos[0].height );\n\t\t\t\t\timg.setAttribute( 'alt', results[0].name );\n\n\t\t\t\t\t$googleWrap.append( img );\n\n\t\t\t\t\t// wait a beat to actually append the image\n\t\t\t\t\tsetTimeout( function() {\n\t\t\t\t\t\t$googleWrap.attr( 'aria-busy', false );\n\t\t\t\t\t\t$( window ).trigger( 'facility-image-gallery-loaded' );\n\t\t\t\t\t}, 1 );\n\n\t\t\t\t} else {\n\t\t\t\t\t// No photo data returned, fall back to map\n\t\t\t\t\tinitGoogleMap( address );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// API error, fall back to map\n\t\t\t\tinitGoogleMap( address );\n\t\t\t}\n\t\t} );\n\t\t\n\t}\n\n\tfunction initGoogleMap( address ) {\n\t\tconst key = $googleWrap.data( 'key' );\n\n\t\tconst iframe = document.createElement( 'iframe' );\n\t\tiframe.setAttribute( 'frameborder', 0 );\n\t\tiframe.setAttribute( 'src', 'https://www.google.com/maps/embed/v1/place?q='+address+'&key='+key );\n\t\tiframe.setAttribute( 'allowfullscreen', true );\n\t\t\n\t\t$googleWrap.append( iframe );\n\t\t$googleWrap.attr( 'aria-busy', false );\n\n\t\t$( window ).trigger( 'facility-image-gallery-loaded' ); // TEST\n\t}\n} )( jQuery );","( function( $ ) {\n\tvar $accredVid = $( '.facility-details__accred-vid' );\n\tif ( !$accredVid.length ) { return; }\n\n\tvar detailWrapper = document.querySelector( '.facility-details' );\n\tupdateHeight();\n\n\tconst updateDelay = 300;\n\tvar actionTimer;\n\n\t$( window ).on( 'resize', function() {\n\t\tif ( actionTimer ) {\n\t\t\tclearTimeout( actionTimer );\n\t\t}\n\t\tactionTimer = setTimeout( updateHeight, updateDelay );\n\t} ).one( 'facility-image-gallery-loaded', updateHeight );\n\n\tfunction calculateOffset( element ) {\n\t\tvar facilityDetailRect = detailWrapper.getBoundingClientRect();\n\t\tvar accredVidRect = element.getBoundingClientRect();\n\t\t\n\t\tvar offset = accredVidRect.bottom - facilityDetailRect.bottom;\n\t\treturn offset;\n\t}\n\n\tfunction updateHeight() {\n\t\t$accredVid.css( 'min-height', '' );\n\n\t\tvar rightRailOffset = calculateOffset( $accredVid.get( 0 ) );\n\t\tvar rightRailParentOffset = calculateOffset( detailWrapper.querySelector( '.facility-details__float-wrap' ) );\n\t\tvar rightRailDefaultHeight = $accredVid.outerHeight( true );\n\n\t\t// adding the rightRailParent difference to the rightRail height\n\t\tvar heightDiff = Math.max( ( rightRailOffset - rightRailParentOffset ) * -1, 0 ); // always positive\n\t\t$accredVid.css( 'min-height', ( heightDiff + rightRailDefaultHeight + 'px' ) );\n\t}\n} )( jQuery );\n\n","( function ( $ ) {\n\tconst facilityMoreContent = document.querySelector( '.facility-details__more-content-wrap' );\n\tif( !facilityMoreContent ) { return; }\n\n\tconst btn = facilityMoreContent.querySelector( '.facility-details__more-content-btn' );\n\tbtn.addEventListener( 'click', function() {\n\t\tfacilityMoreContent.classList.toggle( 'facility-details__more-content-wrap--more' );\n\t} );\n} )( jQuery );","\n( function ( $ ) {\n\t$( document ).ready( function () {\n\t\tvar $toggles = $( '.expand-search__items-toggle' );\n\t\tif ( !$toggles.length ) { return; }\n\n\t\t$toggles.on( 'click', function ( e ) {\n\t\t\te.preventDefault();\n\t\t\t$( this ).closest( '.expand-search__items--section' ).find( '.expand-search__items-locations' ).toggleClass( 'expand-search__items-locations--expanded' );\n\t\t} );\n\t} );\n} )( jQuery );\n\n","( function() {\n\tconst stickyBar = document.querySelector( '.facility-details__sticky' );\n\tif( !stickyBar ) { return; }\n\n\tconst contactInfo = document.querySelector( '.facility-details__contact-info' );\n\tconst ACTIVE = 'facility-details__sticky--active';\n\tconst UNSTUCK = 'facility-details__sticky--unstuck';\n\n\tconst observer = new IntersectionObserver( function( entries ) {\n\t\tentries.forEach( function( entry ) {\n\t\t\tif( entry.target === contactInfo ) {\n\t\t\t\tif( entry.isIntersecting ) { // contact info in view\n\t\t\t\t\tstickyBar.classList.add( UNSTUCK );\n\t\t\t\t\tif( !inViewport( stickyBar ) ) {\n\t\t\t\t\t\t// the page is long enough it can be sticky naturally\n\t\t\t\t\t\tstickyBar.classList.remove( UNSTUCK );\n\t\t\t\t\t}\n\n\t\t\t\t\tstickyBar.classList.remove( ACTIVE );\n\t\t\t\t} else {\n\t\t\t\t\tstickyBar.classList.add( ACTIVE );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}, { threshold: .5 } ); // when 50% of it is visible\n\n\tobserver.observe( contactInfo );\n\n\t// https://stackoverflow.com/a/12418814/738394\n\tfunction inViewport( element ) {\n\t\tif( !element ) return false;\n\t\tif( 1 !== element.nodeType ) return false;\n\n\t\tvar html = document.documentElement;\n\t\tvar rect = element.getBoundingClientRect();\n\n\t\treturn !!rect &&\n\t\t\trect.bottom >= 0 &&\n\t\t\trect.right >= 0 && \n\t\t\trect.left <= html.clientWidth &&\n\t\t\trect.top <= html.clientHeight;\n\t}\n} )();"]}