(()=>{"use strict";var e={4698:(e,t,a)=>{var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=c(a(9073)),s=c(a(8419)),i=c(a(1649)),o=c(a(5808)),l=c(a(4212));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleMobileFilter=function(){a.setState({mobileFilterIsHidden:!a.state.mobileFilterIsHidden})},a.applyFacet=a.applyFacet.bind(a),a.removeFacets=a.removeFacets.bind(a),a.getFacetUrl=a.getFacetUrl.bind(a),a.getQueryUrl=a.getQueryUrl.bind(a),a.hasSearchResults=a.hasSearchResults.bind(a),a.changeQuery=a.changeQuery.bind(a),a.changePage=a.changePage.bind(a),a.isFacetSelected=a.isFacetSelected.bind(a),a.blogMain=React.createRef(),a.state={isLoading:!1,query:a.props.data.Request,DefaultRequest:a.props.data.DefaultRequest,results:a.props.data.Results,data:a.props.data.Results.Results,settings:a.props.data.Settings,facets:a.props.data.Results.Facets,mobileFilterIsHidden:!0},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"componentDidUpdate",value:function(e){e&&e.data.Request.Page!==this.state.query.Page&&window.scrollTo({behavior:"smooth",top:this.blogMain.current.offsetTop})}},{key:"changePage",value:function(e){var t=this.changeQuery("Page",e);this.performSearch(t)}},{key:"hasSearchResults",value:function(){return this.state.results.TotalHits}},{key:"isFacetSelected",value:function(e,t){return this.state.query&&this.state.query[e]===t}},{key:"applyFacet",value:function(e,t,a){a.preventDefault();var n=e?this.changeQuery(e,t):this.removeFacets();n.Page=1,this.performSearch(n)}},{key:"removeFacets",value:function(){var e=JSON.parse(JSON.stringify(this.state.query));return Object.keys(e).forEach((function(t){e[t]=null})),e}},{key:"changeQuery",value:function(e,t){var a=JSON.parse(JSON.stringify(this.state.query));return Object.keys(a).forEach((function(n){a[n]=e===n?t:a[n]})),a}},{key:"getFacetUrl",value:function(e,t){var a=this.changeQuery(e,t);return this.getQueryUrl(a)}},{key:"getQueryUrl",value:function(e){var t=this,a=JSON.parse(JSON.stringify(e));Object.keys(a).forEach((function(n){a[n]=e[n]&&e[n]!==t.state.DefaultRequest[n]?e[n]:null}));var n=encodeURIComponent;return"?"+Object.keys(a).reduce((function(e,t){return null!==a[t]&&e.push(n(t)+"="+n(a[t])),e}),[]).join("&")}},{key:"performSearch",value:function(e){this.setState({isLoading:!0},(function(){var t=this,a=this.getQueryUrl(e);jQuery.get("api/find-a-blog/search"+a,function(n){var r={isLoading:!1,query:e,results:n,data:n.Results,facets:n.Facets};t.setState(r,(function(){window.history.pushState(r,"",a)}))}.bind(this))}))}},{key:"render",value:function(){return React.createElement("div",{className:"col-12 blog-search-component",ref:this.blogMain},React.createElement("div",{className:"mobile-filter-bar container-fluid d-block d-md-none"},React.createElement("div",{className:"row"},React.createElement("div",{className:"col"},React.createElement("button",{onClick:this.toggleMobileFilter,className:this.state.mobileFilterIsHidden?"filter-toggle closed":"filter-toggle open"},this.state.settings.MobileFilterLabel," ",React.createElement("i",{className:"search-icon","aria-hidden":"true"}))))),React.createElement("div",{className:"section-container"},React.createElement("div",{className:"row"},React.createElement("div",{className:this.state.mobileFilterIsHidden?"facets-container closed":"facets-container open"},React.createElement("div",{className:"filter-facets"},React.createElement("div",{className:"filter-head d-none d-md-block"},React.createElement("h3",null,this.state.settings.FilterLabel)),React.createElement("div",{className:"panel-group"},React.createElement(r.default,{label:this.state.settings.CategoryFilterLabel,allLabel:this.state.settings.ClearFilterLabel,queryParameter:"Category",filterOptions:this.state.facets,filterProperty:"primary_tag",applyFilterCallback:this.applyFacet,getFacetUrl:this.getFacetUrl,isFacetSelectedCallback:this.isFacetSelected}),React.createElement(r.default,{label:this.state.settings.TypeFilterLabel,allLabel:this.state.settings.ClearFilterLabel,queryParameter:"Type",filterOptions:this.state.facets,filterProperty:"blog_type",applyFilterCallback:this.applyFacet,getFacetUrl:this.getFacetUrl,isFacetSelectedCallback:this.isFacetSelected}),React.createElement(r.default,{label:this.state.settings.StateFilterLabel,allLabel:this.state.settings.ClearFilterLabel,queryParameter:"Market",filterOptions:this.state.facets,filterProperty:"cf_state_facet",applyFilterCallback:this.applyFacet,getFacetUrl:this.getFacetUrl,isFacetSelectedCallback:this.isFacetSelected}),React.createElement(r.default,{label:this.state.settings.DateFilterLabel,allLabel:this.state.settings.ClearFilterLabel,queryParameter:"Date",filterOptions:this.state.facets,filterProperty:"cf_date_facet",applyFilterCallback:this.applyFacet,getFacetUrl:this.getFacetUrl,isFacetSelectedCallback:this.isFacetSelected}),React.createElement(s.default,{label:this.state.settings.SpecialtyFilterLabel,queryParameter:"Specialty",filterOptions:this.state.facets,filterProperty:"cf_specialty_facet",onSubmitCallback:this.applyFacet,typeaheadTitle:this.state.settings.SpecialtyFilterPlaceholder,typeaheadPlaceholder:this.state.settings.SpecialtyFilterPlaceholder,typeaheadRequired:"false"})))),React.createElement("div",{className:"blog-search-results-container"},React.createElement("div",{className:"blog-search-results"},React.createElement(i.default,{query:this.state.query,applyFacetCallback:this.applyFacet,filteredListLabel:this.state.settings.FilteredListLabel}),React.createElement(o.default,{searchResults:this.state.data,facets:this.hasSearchResults()?this.state.facets:null,applyFacetCallback:this.applyFacet,getFacetUrl:this.getFacetUrl}),React.createElement(l.default,{currentPage:this.state.query.Page,totalResults:this.state.results.TotalHits,pageSize:this.state.query.PageSize,changePageCallback:this.changePage}))))))}}]),t}();t.Z=u},1649:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.applyFacet=a.props.applyFacetCallback,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"showCloseIcon",value:function(){return React.createElement("svg",{x:"0px",y:"0px",width:"18px",height:"18px",viewBox:"0 0 24 24",class:"icon",focusable:"false","aria-hidden":"true"},React.createElement("path",{d:"M12.7,12l7.1-7.1c0.2-0.2,0.2-0.5,0-0.7c-0.2-0.2-0.5-0.2-0.7,0L12,11.3L4.9,4.1C4.7,4,4.3,4,4.1,4.1C4,4.3,4,4.7,4.1,4.9\r l7.2,7.2l-7.1,7.1c-0.2,0.2-0.2,0.5,0,0.7C4.3,20,4.4,20,4.5,20c0.1,0,0.3,0,0.4-0.1l7.1-7.1l7.1,7.1c0.1,0.1,0.2,0.1,0.4,0.1\r s0.3,0,0.4-0.1c0.2-0.2,0.2-0.5,0-0.7L12.7,12z"}))}},{key:"render",value:function(){var e=this,t=this.props.query,a=Object.keys(t).filter((function(e){return"Page"!==e&&"PageSize"!==e&&t[e]}));return a.length>0?React.createElement("div",{className:"blog-search-applied-filters"},React.createElement("h3",null,this.props.filteredListLabel),React.createElement("ul",{className:"filtered-by-list"},Object.keys(a).map((function(n){return React.createElement("li",null,React.createElement("button",{className:"filter-button-pill",onClick:function(t){return e.applyFacet(a[n],null,t)}},t[a[n]]," ",e.showCloseIcon()))})),a.length>1?React.createElement("li",null,React.createElement("button",{className:"filter-button-pill",rel:"nofollow",onClick:function(t){return e.applyFacet(null,null,t)}},"Clear All Filters ",this.showCloseIcon())):null)):null}}]),t}();t.default=n},9073:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.toggleSectionHandler=function(){a.setState({isFacetPanelOpen:!a.state.isFacetPanelOpen})},a.applyFilter=a.props.applyFilterCallback,a.getFacetUrl=a.props.getFacetUrl,a.isFacetSelected=a.props.isFacetSelectedCallback;var n=t.getFilterOptionsFromProps(a.props.filterProperty,a.props.filterOptions);return a.state={filterOptions:n,isFacetPanelOpen:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){var e,t,a,n=this;return React.createElement("div",{className:"facets-section facet-panel"},React.createElement("h4",{className:this.state.isFacetPanelOpen?"facets-section-title facet-panel-head active":"facets-section-title facet-panel-head",onClick:this.toggleSectionHandler},this.props.label,React.createElement("span",{className:"facets-section-expander"},React.createElement("i",{className:"fa fa-chevron-down",role:"button","aria-expanded":"false"}))),React.createElement("ul",(e={id:this.props.Label,className:"facets-section-values facet-panel-content closed"},t="className",a=this.state.isFacetPanelOpen?"facets-section-values facet-panel-content":"facets-section-values facet-panel-content closed",t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e),this.state.filterOptions.map((function(e){return n.isFacetSelected(n.props.queryParameter,e.Key)?React.createElement(React.Fragment,null,React.createElement("li",null,React.createElement("button",{className:"filter-button-pill button-pill-secondary",onClick:function(e){return n.applyFilter(n.props.queryParameter,null,e)}},n.props.allLabel,React.createElement("svg",{x:"0px",y:"0px",width:"18px",height:"18px",viewBox:"0 0 24 24",className:"icon",focusable:"false","aria-hidden":"true"},React.createElement("path",{d:"M12.7,12l7.1-7.1c0.2-0.2,0.2-0.5,0-0.7c-0.2-0.2-0.5-0.2-0.7,0L12,11.3L4.9,4.1C4.7,4,4.3,4,4.1,4.1C4,4.3,4,4.7,4.1,4.9\r l7.2,7.2l-7.1,7.1c-0.2,0.2-0.2,0.5,0,0.7C4.3,20,4.4,20,4.5,20c0.1,0,0.3,0,0.4-0.1l7.1-7.1l7.1,7.1c0.1,0.1,0.2,0.1,0.4,0.1\r s0.3,0,0.4-0.1c0.2-0.2,0.2-0.5,0-0.7L12.7,12z"})))),React.createElement("li",{className:"selected"},e.Name," (",e.AggregateCount,")")):React.createElement("li",null,React.createElement("a",{className:"facet-val-link",href:n.getFacetUrl(n.props.queryParameter,e.Key),onClick:function(t){return n.applyFilter(n.props.queryParameter,e.Key,t)}},e.Name," (",e.AggregateCount,")"))}),this)))}}],[{key:"getFilterOptionsFromProps",value:function(e,t){if(null==t)return[];var a=t.find((function(t){return t.Name===e}));return null!=a?a.FacetValues:[]}},{key:"getDerivedStateFromProps",value:function(e,a){var n=t.getFilterOptionsFromProps(e.filterProperty,e.filterOptions);return JSON.stringify(a.filterOptions)!==JSON.stringify(n)?(a.filterOptions=n,a):null}}]),t}();t.default=n},4212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={pager:{}},a.changePage=a.props.changePageCallback,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentWillMount",value:function(){this.props.totalResults&&this.props.totalResults>0&&this.setPage(this.props.currentPage)}},{key:"componentDidUpdate",value:function(e,t){this.props.totalResults!==e.totalResults&&this.setPage(1)}},{key:"setPage",value:function(e){var t=this.props.totalResults,a=this.props.pageSize,n=this.state.pager;e<1||e>n.totalPages||(n=this.getPager(t,e,a),this.setState({pager:n}),this.changePage(e))}},{key:"getPager",value:function(e,t,a){t=t||1,a=a||10;var n,r,s=Math.ceil(e/a);s<=10?(n=1,r=s):t<=6?(n=1,r=10):t+4>=s?(n=s-9,r=s):(n=t-5,r=t+4);var i=(t-1)*a,o=Math.min(i+a-1,e-1),l=Array.from(Array(r+1-n).keys()).map((function(e){return n+e}));return{currentPage:t,pageSize:a,totalPages:s,startPage:n,endPage:r,startIndex:i,endIndex:o,pages:l}}},{key:"render",value:function(){var e=this,t=this.state.pager;return!t.pages||t.pages.length<=1?null:React.createElement("div",{className:"asc-search-pagination blog-pagination"},React.createElement("a",{className:1===t.currentPage?"prev disabled":"prev",onClick:function(){return e.setPage(t.currentPage-1)},"aria-disabled":1===t.currentPage?"true":"false"},React.createElement("i",{className:"fa fa-angle-left","aria-hidden":"true"})),React.createElement("ul",null,t.pages.map((function(a,n){return t.currentPage===a?React.createElement("li",null,React.createElement("span",null,a)):React.createElement("li",{key:n},React.createElement("a",{onClick:function(){return e.setPage(a)}},React.createElement("span",null,a)))}))),React.createElement("a",{className:t.currentPage===t.totalPages?"next disabled":"next",onClick:function(){return e.setPage(t.currentPage+1)},"aria-disabled":t.currentPage===t.totalPages?"true":"false"},React.createElement("i",{className:"fa fa-angle-right","aria-hidden":"true"})))}}]),t}();t.default=n},5808:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.applyFacet=a.props.applyFacetCallback,a.getFacetUrl=a.props.getFacetUrl,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){for(var e=[],t=0;t<this.props.searchResults.length;t++){var a=this.props.searchResults[t];e.push(React.createElement("li",{className:"blog-item col-12 col-md-6"},React.createElement("div",{className:"blog-wrapper"},React.createElement("a",{className:"story-image",href:a.Link},React.createElement("img",{src:a.Thumbnail})),React.createElement("div",{className:"story-content"},React.createElement("a",{className:"eyebrow",href:"?category="+a.PrimaryTag},a.PrimaryTag),React.createElement("h3",{className:"story-heading"},React.createElement("a",{href:a.Link},a.Title)),React.createElement("p",{className:"story-intro"},a.LeadCopy),React.createElement("span",{className:"date"},a.BlogDate)))))}return React.createElement("ul",{className:"row"},e)}}]),t}();t.default=n},8419:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.toggleSectionHandler=function(){a.setState({isFacetPanelOpen:!a.state.isFacetPanelOpen})},a.boldSuggestion=function(e){var t=e.toUpperCase(),n=a.state.typeaheadText.toUpperCase(),r=t.indexOf(n);if(!n||-1===r)return{__html:e};var s=n.length;return{__html:e.substr(0,r)+"<b>"+e.substr(r,s)+"</b>"+e.substr(r+s)}},a.getFilterOptionsFromProps=a.getFilterOptionsFromProps.bind(a);var n=a.getFilterOptionsFromProps(a.props.filterProperty,a.props.filterOptions);return a.state={typeaheadSuggestionsDefault:n,typeaheadSuggestions:n,typeaheadText:"",selectedTypeaheadIndex:null,showTypeaheadSuggestions:!1,isFacetPanelOpen:!1},a.handleTypeaheadChange=a.handleTypeaheadChange.bind(a),a.handleTypeaheadSelection=a.handleTypeaheadSelection.bind(a),a.handleKeyDown=a.handleKeyDown.bind(a),a.handleOnBlur=a.handleOnBlur.bind(a),a.handleOnFocus=a.handleOnFocus.bind(a),a.handleSubmit=a.handleSubmit.bind(a),a.clearText=a.clearText.bind(a),a.boldSuggestion=a.boldSuggestion.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"getFilterOptionsFromProps",value:function(e,t){if(null==t)return[];var a=t.find((function(t){return t.Name===e}));return(null!=a?a.FacetValues:[]).map((function(e){if(null!=e.Name)return e.Name.toString()}))}},{key:"clearText",value:function(){this.handleTypeaheadSelection("",-1,event)}},{key:"handleSubmit",value:function(e){var t=this;this.props.onSubmitCallback?this.setState({typeaheadSuggestions:this.state.typeaheadSuggestionsDefault,selectedTypeaheadIndex:null,showTypeaheadSuggestions:!1,isFacetPanelOpen:!1},(function(){return t.props.onSubmitCallback(t.props.queryParameter,t.state.typeaheadText,e)})):this.setState({typeaheadSuggestions:this.state.typeaheadSuggestionsDefault,selectedTypeaheadIndex:null,showTypeaheadSuggestions:!1,isFacetPanelOpen:!1},(function(){return console.error("TypeAheadInputField - No Submit Action")}))}},{key:"handleTypeaheadSelection",value:function(e,t,a){var n=this;this.setState({typeaheadText:e,selectedTypeaheadIndex:t},(function(){return n.handleSubmit(a)}))}},{key:"handleTypeaheadChange",value:function(e){this.setState({typeaheadText:e.target.value});var t=e.target.value.toString().toLowerCase(),a=this.state.typeaheadSuggestionsDefault.filter((function(e){if(null!=e)return e.toLowerCase().includes(t)}));this.setState({typeaheadSuggestions:a,selectedTypeaheadIndex:null,showTypeaheadSuggestions:!0})}},{key:"handleOnBlur",value:function(e){this.setState({showTypeaheadSuggestions:!0})}},{key:"handleOnFocus",value:function(e){this.setState({showTypeaheadSuggestions:!1})}},{key:"handleKeyDown",value:function(e){if("Enter"===e.key&&(e.preventDefault(),this.handleSubmit(e)),this.state.typeaheadSuggestions&&this.state.typeaheadSuggestions.length)switch(e.key){case"Esc":case"Escape":e.preventDefault(),this.handleSubmit(e);break;case"Home":e.preventDefault(),this.setState({selectedTypeaheadIndex:0,typeaheadText:this.state.typeaheadSuggestions[0]});break;case"Up":case"ArrowUp":e.preventDefault();var t=0;null!==this.state.selectedTypeaheadIndex&&(t=this.state.selectedTypeaheadIndex>=1?this.state.selectedTypeaheadIndex-1:0),this.setState({selectedTypeaheadIndex:t,typeaheadText:this.state.typeaheadSuggestions[t]});break;case"Down":case"ArrowDown":e.preventDefault();var a=0;null!==this.state.selectedTypeaheadIndex&&(a=this.state.selectedTypeaheadIndex<this.state.typeaheadSuggestions.length-1?this.state.selectedTypeaheadIndex+1:this.state.typeaheadSuggestions.length-1),this.setState({selectedTypeaheadIndex:a,typeaheadText:this.state.typeaheadSuggestions[a]});break;case"End":e.preventDefault();var n=this.state.typeaheadSuggestions.length-1;this.setState({selectedTypeaheadIndex:n,typeaheadText:this.state.typeaheadSuggestions[n]});break;default:return}}},{key:"render",value:function(){var e,t,a,n=this;return React.createElement("div",{className:"facets-section facet-panel"},React.createElement("h4",{className:this.state.isFacetPanelOpen?"facets-section-title facet-panel-head active":"facets-section-title facet-panel-head",onClick:this.toggleSectionHandler},this.props.label,React.createElement("span",{className:"facets-section-expander"},React.createElement("i",{className:"fa fa-chevron-down",role:"button","aria-expanded":"false"}))),React.createElement("div",(e={className:"facets-section-values facet-panel-content closed"},t="className",a=this.state.isFacetPanelOpen?"facets-section-values facet-panel-content":"facets-section-values facet-panel-content closed",t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e),React.createElement("input",{className:"type-ahead-input",type:"text",name:"typeahead-input",title:this.props.typeaheadTitle,placeholder:this.props.typeaheadPlaceholder,"aria-label":this.props.typeaheadPlaceholder,"aria-required":this.props.typeaheadRequired,autoComplete:"off",value:this.state.typeaheadText,onKeyDown:this.handleKeyDown,onChange:this.handleTypeaheadChange,onBlur:this.handleOnBlur,onFocus:this.handleOnFocus}),React.createElement("span",{className:"input-reset",onClick:function(e){n.clearText()}},"X")),React.createElement("div",{className:"type-ahead-suggestions "+(this.state.showTypeaheadSuggestions?"show":"")},React.createElement("ul",{role:"listbox","aria-expanded":"true",className:"type-ahead-list"},this.state.typeaheadSuggestions.map((function(e,t){return React.createElement("li",{className:"type-ahead-suggestion","aria-selected":n.state.selectedTypeaheadIndex===t,role:"option",onClick:function(a){return n.handleTypeaheadSelection(e,t,a)},key:t,dangerouslySetInnerHTML:e&&n.state.typeaheadText?n.boldSuggestion(e):{__html:""}})})))))}}]),t}();t.default=n},4192:(e,t)=>{var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={state:"all",livingChoice:"all"},a.handleStateChange=a.handleStateChange.bind(a),a.handleLivingChoiceChange=a.handleLivingChoiceChange.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"handleStateChange",value:function(e){this.setState({state:e.target.value,livingChoice:"all"},(function(){"all"!==e.target.value&&(document.getElementById("livingChoiceFilter").value="all")}))}},{key:"handleLivingChoiceChange",value:function(e){this.setState({livingChoice:e.target.value,state:"all"},(function(){"all"!==e.target.value&&(document.getElementById("stateFilter").value="all")}))}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"communitySearchBox purple-underline row"},React.createElement("h3",null,this.props.data.Title),React.createElement("div",{className:"col-12 col-md-4"},React.createElement("label",{htmlFor:"stateFilter"},this.props.data.FindByStateLabel),React.createElement("select",{id:"stateFilter",name:"stateFilter",onChange:function(){return e.handleStateChange(event)}},React.createElement("option",{value:"all"},this.props.data.AllStatesLabel),this.props.data.States.Facets.map((function(e){return React.createElement("option",{key:e.ItemName,value:e.Title},e.Title)})))),React.createElement("div",{className:"col-12 col-md-4"},React.createElement("label",{htmlFor:"livingChoiceFilter"},this.props.data.FindByLivingChoiceLabel),React.createElement("select",{id:"livingChoiceFilter",name:"livingChoiceFilter",onChange:function(){return e.handleLivingChoiceChange(event)}},React.createElement("option",{value:"all"},this.props.data.AllLivingChoicesLabel),this.props.data.LivingChoices.Facets.map((function(e){return React.createElement("option",{key:e.ItemName,value:e.Title},e.Title)})),"                    ")),React.createElement("div",{className:"col-12 col-md-4"},React.createElement("div",{className:"button button-primary"},React.createElement("a",{href:this.props.data.FindACommunityPageUrl+"?state="+this.state.state+"&livingChoice="+this.state.livingChoice},this.props.data.FindLivingLocationsLinkLabel))),React.createElement("div",{className:"col-12"},React.createElement("a",{href:this.props.data.CommunitiesRootPageUrl},this.props.data.SeeAllCommunitiesLabel)))}}]),t}();t.Z=n},9045:(e,t)=>{var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.changeView=a.changeView.bind(a),a.viewOnMap=a.viewOnMap.bind(a),a.renderViewButtons=a.renderViewButtons.bind(a),a.renderListViewResult=a.renderListViewResult.bind(a),a.renderTileViewResult=a.renderTileViewResult.bind(a),a.renderResults=a.renderResults.bind(a),a.renderFacets=a.renderFacets.bind(a),a.doSearch=a.doSearch.bind(a),a.onStateClick=a.onStateClick.bind(a),a.onLivingChoicesClick=a.onLivingChoicesClick.bind(a),a.onFeatureClick=a.onFeatureClick.bind(a),a.handleFacetClick=a.handleFacetClick.bind(a),a.changePage=a.changePage.bind(a),a.renderMap=a.renderMap.bind(a),a.renderInfoWindow=a.renderInfoWindow.bind(a),a.openInfoWindow=a.openInfoWindow.bind(a),a.clearFilters=a.clearFilters.bind(a),a.scrollToTop=a.scrollToTop.bind(a),a.state={view:"tile",start:0,end:0,totalResults:0,page:0,totalPages:0,results:[],markers:[],livingChoices:{},states:{},features:{},location:a.props.location,infoWindow:null,hasFilter:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"componentDidMount",value:function(){var e=new URLSearchParams(window.location.search),t="";e.has("state")&&(t=e.get("state"));var a="";e.has("livingChoice")&&(a=e.get("livingChoice"));var n=window.google||{},r=new n.maps.Map(document.getElementById("communityMap"),{zoom:7});this.setState({map:r,infoWindow:new n.maps.InfoWindow}),this.doSearch(t,a)}},{key:"scrollToTop",value:function(){document.body.scrollTop=0,document.documentElement.scrollTop=0}},{key:"changePage",value:function(e,t){var a=this;e.preventDefault(),this.setState({page:t},(function(){a.doSearch()}))}},{key:"openInfoWindow",value:function(e,t){this.state.infoWindow.setContent(t),this.state.infoWindow.open(this.state.map,e)}},{key:"renderMap",value:function(){var e=this,t=new google.maps.Geocoder;t&&this.state.results.map((function(a){var n=a.AddressLine1+" "+a.AddressLine2+", "+a.City+", "+a.StateCode+" "+a.ZipCode,r=a;t.geocode({address:n},function(e,t){var n=this;if(t===google.maps.GeocoderStatus.OK&&t!==google.maps.GeocoderStatus.ZERO_RESULTS){this.state.map.setCenter(e[0].geometry.location);var s=this.state.markers.find((function(e){return e.title===a.Url}));if(!s){s=new google.maps.Marker({position:e[0].geometry.location,map:this.state.map,title:a.Url});var i=this.renderInfoWindow(r);s.addListener("click",(function(){n.openInfoWindow(s,i)})),this.state.markers.push(s)}}}.bind(e))}))}},{key:"renderInfoWindow",value:function(e){return'\n            <div style="max-width:400px" class="mapInfoWindow">\n                <div class="communityResult--tile__wrapper">\n                    <img style="max-width:100%" src='+e.NavigationImageUrl+' />\n                    <div class="communityResult--tile__bodyTitle">\n                        <h5>'+e.Title+'</h5>\n                    </div>\n                    <div class="communityResult--tile__bodyContent">\n                        <div class="address">\n                            '+e.AddressLine1+"\n                            <br />\n                            "+e.City+", "+e.StateCode+", "+e.ZipCode+'\n                        </div>\n                        <div class="button button-primary full-width-button">\n                            <a href='+e.Url+">Visit Site</a>\n                        </div>\n                    </div>\n                </div>\n            </div>"}},{key:"clearFilters",value:function(){var e=this;this.setState({states:{},features:{},livingChoices:{}},(function(){return e.doSearch()}))}},{key:"doSearch",value:function(e,t){var a=this,n={CommunitiesRootItemId:this.props.data.CommunitiesRootId,TagRootId:this.props.data.TagRootId,StatesRootId:this.props.data.StatesRootId,Page:this.state.page,PageSize:this.props.data.PageSize,LivingChoices:this.state.livingChoices,States:this.state.states,Features:this.state.features,StatePreFilter:e,LivingChoicePreFilter:t},r={type:"POST",url:"/api/v1/communities/search",data:JSON.stringify(n),async:!0,success:function(e){a.setState({page:e.Page,totalPages:e.TotalPages,results:e.Results,states:e.States,livingChoices:e.LivingChoices,features:e.Features,start:e.Start,end:e.End,totalResults:e.TotalResults,hasFilter:e.HasFilters},(function(){a.scrollToTop(),a.renderMap()}))}.bind(this),check:!0,contentType:"application/json",dataType:"json"};jQuery.ajax(r)}},{key:"handleFacetClick",value:function(e,t){return t.Facets.forEach((function(t){t.FacetId===e.FacetId&&(t.IsSelected=!t.IsSelected)})),t}},{key:"onStateClick",value:function(e){var t=a({},this.state.states);this.handleFacetClick(e,t),this.setState({state:t,page:0},this.doSearch())}},{key:"onLivingChoicesClick",value:function(e){var t=a({},this.state.livingChoices);this.handleFacetClick(e,t),this.setState({livingChoices:t,page:0},this.doSearch())}},{key:"onFeatureClick",value:function(e){var t=a({},this.state.features);this.handleFacetClick(e,t),this.setState({features:t,page:0},this.doSearch())}},{key:"changeView",value:function(e){"tile"!==e&&"list"!==e||this.setState({view:e})}},{key:"viewOnMap",value:function(e,t){e.preventDefault();var a=this.state.markers.find((function(e){return e.title===t.Url}));if(a){document.getElementById("communityMap").scrollIntoView(),this.state.map.setZoom(10),this.state.map.panTo(a.position);var n=this.renderInfoWindow(t);this.openInfoWindow(a,n)}else{var r=t;console.log("ERROR: Marker not found for community, Attempting to geocode community again");var s=new google.maps.Geocoder;if(s){var i=t.AddressLine1+" "+t.AddressLine2+", "+t.City+", "+t.StateCode+" "+t.ZipCode;s.geocode({address:i},function(e,t){var a=this;if(t===google.maps.GeocoderStatus.OK&&t!==google.maps.GeocoderStatus.ZERO_RESULTS){console.log(this);var n=new google.maps.Marker({position:e[0].geometry.location,map:this.state.map,title:r.Url});this.state.markers.push(n);var s=this.renderInfoWindow(r);n.addListener("click",(function(){a.openInfoWindow(n,s)})),document.getElementById("communityMap").scrollIntoView(),this.state.map.setZoom(10),this.state.map.panTo(n.position),this.openInfoWindow(n,s)}}.bind(this))}}}},{key:"renderViewButtons",value:function(){var e=this,t="active",a="";return"tile"===this.state.view&&(t="",a="active"),React.createElement("div",{className:"communitySearch--Header__view col-4 d-none d-lg-inline"},React.createElement("button",{className:"communitySearch--Header__view tile "+t,onClick:function(){return e.changeView("tile")}},React.createElement("span",{className:"fa fa-th"})),React.createElement("button",{className:"communitySearch--Header__view list"+a,onClick:function(){return e.changeView("list")}},React.createElement("span",{className:"fa fa-th-list"})))}},{key:"renderResults",value:function(){var e=this;return"list"===this.state.view?React.createElement("div",{className:"communitySearch--Results__results col-12 col-md-9"},React.createElement("div",{className:"row"},this.state.results.map((function(t){return e.renderListViewResult(t)})))):React.createElement("div",{className:"communitySearch--Results__results col-12 col-md-9"},React.createElement("div",{className:"row"},this.state.results.map((function(t){return e.renderTileViewResult(t)}))))}},{key:"renderTileViewResult",value:function(e){var t=this;return React.createElement("div",{className:"communityResult--tile col-md-6"},React.createElement("div",{className:"communityResult--tile__wrapper"},React.createElement("img",{src:e.NavigationImageUrl}),React.createElement("div",{className:"communityResult--tile__bodyTitle"},React.createElement("div",{className:"eyebrow"},e.StateName),React.createElement("h5",null,e.Title),React.createElement("div",{className:"address"},e.AddressLine1,React.createElement("br",null),e.City,", ",e.StateCode," ",e.ZipCode),React.createElement("div",{className:"phone"},"Phone: ",React.createElement("a",{href:"tel:{result.PhoneNumber}"},e.PhoneNumber))),React.createElement("div",{className:"communityResult--tile__bodyContent"},React.createElement("div",{className:"communityResult--tile__bodyLeft col-12 col-lg-6"},React.createElement("div",{className:"life-choices"},React.createElement("ul",{className:"life-choices-list"},e.LifeChoices.map((function(e){return React.createElement("li",null,React.createElement("img",{src:e.ImageUrl,className:"life-choice-icon"}),React.createElement("span",{className:"life-choices-name"},e.Title))}))))),React.createElement("div",{className:"communityResult--tile__bodyRight col-12 col-lg-6"},React.createElement("div",{className:"button button-primary full-width-button"},React.createElement("a",{href:e.Url},"Visit Site")),React.createElement("div",{className:"button primary-btn-light full-width-button"},React.createElement("a",{href:"",onClick:function(a){return t.viewOnMap(a,e)}},"View On Map"))))))}},{key:"renderListViewResult",value:function(e){return React.createElement("div",{className:"communityResult--list col-12"},React.createElement("div",{className:"communityResult--list__wrapper"},React.createElement("div",{className:"row"},React.createElement("div",{className:"communityResult--list__image col-md-4"},React.createElement("img",{src:e.NavigationImageUrl})),React.createElement("div",{className:"communityResult--list__bodyContent col-md-8"},React.createElement("div",{className:"row"},React.createElement("div",{className:"communityResult--list__bodyLeft col-12"},React.createElement("div",{className:"eyebrow"},e.StateName),React.createElement("h5",null,e.Title)),React.createElement("div",{className:"communityResult--list__bodyLeft col-md-6"},React.createElement("div",{className:"address"},e.AddressLine1,React.createElement("br",null),e.City,", ",e.StateCode," ",e.ZipCode),React.createElement("div",{className:"phone"},"Phone: ",React.createElement("a",{href:"tel:{result.PhoneNumber}"},e.PhoneNumber))),React.createElement("div",{className:"communityResult--list__bodyRight col-md-6"},React.createElement("div",{className:"life-choices"},React.createElement("ul",{className:"life-choices-list"},e.LifeChoices.map((function(e){return React.createElement("li",null,React.createElement("img",{src:e.ImageUrl,className:"life-choice-icon"}),React.createElement("span",{className:"life-choices-name"},e.Title))}))))),React.createElement("div",{className:"communityResult--list__bodyBottom col-12"},React.createElement("div",{className:"button button-primary"},React.createElement("a",{href:e.Url},"Visit Site")),React.createElement("div",{className:"button primary-btn-light"},React.createElement("a",{href:"",onClick:function(){return viewOnMap(e)}},"View On Map"))))))))}},{key:"renderFacets",value:function(e,t,a){return e&&e.Facets?React.createElement("ul",null,e.Facets.map((function(e){return 0===e.Count?a?React.createElement("li",null,React.createElement("input",{id:e.FacetId,disabled:"disabled","aria-disabled":"disabled",name:e.FacetId,type:"checkbox",onChange:function(){return t(e)}}),React.createElement("label",{htmlFor:e.FacetId},e.Title," (",e.Count,")")):null:React.createElement("li",null,React.createElement("input",{id:e.FacetId,name:e.FacetId,type:"checkbox",checked:e.IsSelected,"aria-checked":e.IsSelected,onChange:function(){return t(e)}}),React.createElement("label",{htmlFor:e.FacetId},e.Title," (",e.Count,")"))}))):null}},{key:"render",value:function(){var e=this;this.state.results.length>0&&this.renderMap();for(var t=[],a=0;a<=this.state.totalPages-1;a++)t.push(a);var n=React.createElement("span",{href:"#",className:"previousLink disabled"},"«");this.state.page>0&&(n=React.createElement("a",{href:"#",className:"previousLink",onClick:function(t){return changePage(t,e.state.page-1)}},"«"));var r=React.createElement("span",{href:"#",className:"nextLink disabled"},"»");this.state.page<this.state.totalPages-1&&(r=React.createElement("a",{href:"#",className:"nextLink",onClick:function(t){return changePage(t,e.state.page+1)}},"»"));var s=null;return this.state.hasFilter&&(s=React.createElement("div",{className:"button primary-btn-light"},React.createElement("button",{className:"clearFiltersButton",onClick:this.clearFilters},"Reset Filters"))),React.createElement("div",{className:"communitySearch col-12"},React.createElement("div",{className:"communitySearch--Header row"},React.createElement("div",{className:"communitySearch--Header__pageTotals col-8"},this.state.start,"-",this.state.end," of ",this.state.totalResults," Results"),this.renderViewButtons()),React.createElement("div",{className:"communitySearch--Results row"},React.createElement("div",{className:"communitySearch--Results__facets col-md-3"},React.createElement("div",{className:"communitySearch--Results__facetcontent"},React.createElement("h3",null,"Filter ",s),React.createElement("div",{className:"communitySearch--Results__toggle"},"+"),React.createElement("div",{className:"facets__facetList"},React.createElement("h4",null,"Living Choices"),this.renderFacets(this.state.livingChoices,this.onLivingChoicesClick,!0)),React.createElement("div",{className:"facets__facetList"},React.createElement("h4",null,"State"),this.renderFacets(this.state.states,this.onStateClick,!1)),React.createElement("div",{className:"facets__facetList"},React.createElement("h4",null,"Features & Amenities"),this.renderFacets(this.state.features,this.onFeatureClick,!1)))),this.renderResults()),React.createElement("div",{className:"communitySearch__pagination"},n,t.map((function(t){return t===e.state.page?React.createElement("span",{className:"pageLink disabled"},t+1):React.createElement("a",{href:"#",className:"pageLink",onClick:function(a){return e.changePage(a,t)}},t+1)})),r),React.createElement("div",{id:"communityMap",style:{height:"500px"}}))}}]),t}();t.Z=r},964:(e,t,a)=>{var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=c(a(9196)),s=c(a(5631)),i=c(a(3675)),o=c(a(986)),l=c(a(9915));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={isLoading:!1,Request:a.props.data.Request,Results:a.props.data.Results,AllFacets:a.props.data.AllFacets,DefaultRequest:a.props.data.DefaultRequest,ClearSearchLinkText:null===a.props.data.Query||""===a.props.data.Query?a.props.data.BackToAllLinkText:a.props.data.ClearSearchLinkText},a.applyFacet=a.applyFacet.bind(a),a.getFacetUrl=a.getFacetUrl.bind(a),a.submitSearch=a.submitSearch.bind(a),a.getQueryUrl=a.getQueryUrl.bind(a),a.clearSearch=a.clearSearch.bind(a),a.hasSearchResults=a.hasSearchResults.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"hasSearchResults",value:function(){return this.state.Results.TotalHits}},{key:"clearSearch",value:function(e){e.preventDefault(),this.performSearch(this.state.DefaultRequest.Filter,this.state.DefaultRequest.Query,this.state.DefaultRequest.Page,this.state.DefaultRequest.PageSize)}},{key:"applyFacet",value:function(e,t){t.preventDefault();var a=this.hasSearchResults()?this.state.Request.Query:this.state.DefaultRequest.Query;this.performSearch(e,a,this.state.Request.Page,this.state.Request.PageSize),this.setState({ClearSearchLinkText:this.props.data.BackToAllLinkText})}},{key:"getFacetUrl",value:function(e){var t=this.hasSearchResults()?this.state.Request.Query:this.state.DefaultRequest.Query;return this.getQueryUrl(e,t,this.state.Request.Page,this.state.Request.PageSize)}},{key:"getQueryUrl",value:function(e,t,a,n){var r={filter:e&&e!==this.state.DefaultRequest.Filter?e:null,query:t&&t!==this.state.DefaultRequest.Query?t:null,page:a&&a!==this.state.DefaultRequest.Page?a:null,pageSize:n&&n!==this.state.DefaultRequest.PageSize?n:null},s=encodeURIComponent;return"?"+Object.keys(r).reduce((function(e,t){return null!==r[t]&&e.push(s(t)+"="+s(r[t])),e}),[]).join("&")}},{key:"submitSearch",value:function(e){this.performSearch(this.state.Request.Filter?null:this.state.Request.Filter,e,this.state.Request.Page,this.state.Request.PageSize),this.setState({ClearSearchLinkText:this.props.data.ClearSearchLinkText})}},{key:"performSearch",value:function(e,t,a,n){this.setState({isLoading:!0},(function(){window.scrollTo({top:0,left:0,behavior:"smooth"});var r=this.getQueryUrl(e,t,a,n);jQuery.get("/api/find-a-foundation/search"+r,function(s){var i={isLoading:!1,Request:{Query:t,Filter:e,Page:a,PageSize:n},Results:s};this.setState(i,(function(){window.history.pushState(i,"",r)}))}.bind(this))}))}},{key:"render",value:function(){return React.createElement("div",{className:"foundation-search-component"},React.createElement(l.default,{bannerTitle:this.props.data.BannerTitle,bannerSubTitle:this.props.data.BannerSubTitle,isCollapsed:this.state.Results.TotalHits,className:"banner-collapsed"}),React.createElement("div",{className:"col-12"},React.createElement("div",{className:"section-container"},React.createElement(r.default,{query:this.state.Request.Query,searchInputLabelText:this.props.data.SearchInputLabelText,submitSearchCallback:this.submitSearch})),React.createElement("div",{className:"section-container"},React.createElement("div",{className:"row"},React.createElement("div",{className:this.hasSearchResults()?"col-md-10 foundation-search-results-container show-results":"col-md-10 foundation-search-results-container"},React.createElement(i.default,{totalResults:this.state.Results.TotalHits,clearSearchCallback:this.clearSearch,query:this.state.Request.Query,clearSearchLinkText:this.state.ClearSearchLinkText,noResultsHeading:this.props.data.NoResultsHeading,noResultsText:this.props.data.NoResultsText}),this.state.Request.Filter||this.hasSearchResults()?null:React.createElement(s.default,{facets:this.state.Results.Facets,applyFacetCallback:this.applyFacet,getFacetUrl:this.getFacetUrl}),React.createElement(o.default,{searchResults:this.state.Results.Results}))))))}}]),t}();t.Z=u},9196:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={query:a.props.query,queryError:!1},a.handleSubmit=a.handleSubmit.bind(a),a.handleQueryChange=a.handleQueryChange.bind(a),a.submitSearch=a.props.submitSearchCallback,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({query:e.query})}},{key:"handleQueryChange",value:function(e){this.setState({query:e.target.value,queryError:!1})}},{key:"handleSubmit",value:function(e){e.preventDefault(),this.submitSearch(this.state.query),0==this.state.query.length&&this.setState({queryError:!0})}},{key:"render",value:function(){return React.createElement("div",{className:"row find-foundation-input-container"},React.createElement("div",{className:"col-12"},React.createElement("form",{onSubmit:this.handleSubmit,className:"find-foundation-input"},React.createElement("div",{className:"d-flex flex-md-row flex-column"},React.createElement("div",{className:"flex-fill form-group"},React.createElement("label",{htmlFor:"exampleInputFoundationName"},this.props.searchInputLabelText),React.createElement("input",{type:"text",className:"form-control "+(!0===this.state.queryError?"error":""),id:"exampleInputFoundationName",placeholder:"Foundation Name or Search Term",value:this.state.query,onChange:this.handleQueryChange}),React.createElement("p",{className:!0===this.state.queryError?"show":""},"This field is required.")),React.createElement("div",{className:"flex-shrink-1 form-group"},React.createElement("input",{type:"submit",value:"Search",className:"button-primary"}))))))}}]),t}();t.default=n},5631:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.applyFacet=a.props.applyFacetCallback,a.getFacetUrl=a.props.getFacetUrl,a.checkFoundationCount=a.checkFoundationCount.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"checkFoundationCount",value:function(e){return e>1?e+" Foundations":e+" Foundation"}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"facets refine-search foundation-refine-search"},this.props.facets.map((function(t){if(!Array.isArray(t.FacetValues)||0===t.FacetValues.length)return null;var a="facets-section__"+t.Name;return React.createElement("div",{className:"facets-section facet-panel cards-grid"},React.createElement("div",null,React.createElement("ul",{id:a,className:"facets-section-values"},t.FacetValues.map((function(t){return React.createElement("li",null,React.createElement("a",{className:"card",href:e.getFacetUrl(t.Key),onClick:function(a){return e.applyFacet(t.Key,a)}},React.createElement("div",{className:"foundation-details card-body d-flex justify-content-center align-items-center"},React.createElement("div",{className:"foundation-details-card-content"},React.createElement("h3",{className:"foundation-state-card-name"},t.Name),React.createElement("span",{className:"foundation-state-card-info"},e.checkFoundationCount(t.AggregateCount))))))}),e))))}),this))}}]),t}();t.default=n},3675:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.clearSearch=a.props.clearSearchCallback,a.checkResultsCount=a.checkResultsCount.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"checkResultsCount",value:function(e){return e>1?e+" Results Found":e+" Result Found"}},{key:"render",value:function(){var e=this,t=this.props.totalResults,a=this.props.query,n=this.props.noResultsText.replace("{query}",a);return t>0?React.createElement("div",{className:"row "},React.createElement("div",{className:"col"},React.createElement("div",{className:"foundation-result-summary"},React.createElement("div",{className:"row "},React.createElement("div",{className:"col"},React.createElement("h2",null,this.checkResultsCount(t))),React.createElement("div",{className:"col-auto position-right"},React.createElement("a",{href:"#",onClick:function(t){return e.clearSearch(t)},className:"foundation-results-back-to-all"},this.props.clearSearchLinkText)))))):a?React.createElement("div",{className:"row"},React.createElement("div",{className:"col-12 foundation-no-results "},React.createElement("h2",{className:"heading-main"},this.props.noResultsHeading),React.createElement("div",{className:"body-sanserif rich-text"},n))):null}}]),t}();t.default=n},986:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(6204))&&n.__esModule?n:{default:n},i=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"render",value:function(){for(var e=[],t=null,a=0;a<this.props.searchResults.length;a++){var n=this.props.searchResults[a];t!==n.State&&(e.push(React.createElement("h3",{className:"foundation-state-header"},n.State)),t=n.State),e.push(React.createElement(s.default,{searchResultsItem:n}))}return React.createElement("div",{className:"foundation-results"},e)}}]),t}();t.default=i},6204:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){var e=this.props.searchResultsItem;return React.createElement("div",{className:"foundation-results-item"},React.createElement("div",{className:"foundation-holder"},React.createElement("div",{className:"col-name-specs flex-grow-1"},React.createElement("div",{className:"row"},React.createElement("div",{className:"col"},React.createElement("h3",{className:"foundation-results-item-name"},e.Link?React.createElement("a",{href:e.Link,target:"internal"!==e.LinkType?"_blank":""},e.Name):e.Name))),React.createElement("div",{className:"row"},React.createElement("div",{className:"col"},React.createElement("h3",{className:"foundation-results-item-description"},e.Description))),e.Link?React.createElement("div",{className:"row"},React.createElement("div",{className:"col"},React.createElement("a",{href:e.Link,target:"internal"!==e.LinkType?"_blank":"",className:"foundation-results-item-more"},React.createElement("span",null,"Learn More"),"internal"!==e.LinkType?React.createElement("svg",{className:"icon external-link",x:"0px",y:"0px",width:"12px",height:"12px",fill:"#1E69D2",viewBox:"-1410 1410.7 14 14","enable-background":"new -1410 1410.7 14 14"},React.createElement("polygon",{points:"-1402,1421.7 -1401,1421.7 -1401,1419.7 -1399,1419.7 -1399,1418.7 -1401,1418.7 -1401,1416.7 -1402,1416.7\r -1402,1418.7 -1404,1418.7 -1404,1419.7 -1402,1419.7"}),React.createElement("path",{d:"M-1399,1413.7v-3h-11v11h3v3h11v-11H-1399z M-1407,1420.7h-2v-9h9v2h-7V1420.7z M-1397,1423.7h-9v-9h9V1423.7z"})):React.createElement("svg",{className:"icon internal-link",width:"8px",height:"8px",viewBox:"0 0 10 17",fill:"#1E69D2",version:"1.1"},React.createElement("polygon",{transform:"translate(5.409385, 8.090615) rotate(-270.000000) translate(-5.409385, -8.090615) ",points:"-1.08461489 13.0906149 -3.09061489 11.1812298 5.40938511 3.09061489 13.9093851 11.1812298 11.9033851 13.0906149 5.40938511 6.87702265"}))))):null)))}}]),t}();t.default=n},7516:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){return React.createElement("div",null,this.props.isLoading?React.createElement("div",{id:"",className:"showbox loading-animation"},React.createElement("div",{className:"loader"},React.createElement("svg",{className:"circular",viewBox:"25 25 50 50"},React.createElement("circle",{className:"path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3","stroke-miterlimit":"10"})))):null)}}]),t}();t.default=n},5376:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.formatTime=a.formatTime.bind(a),a.formatDate=a.formatDate.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"formatTime",value:function(e){return null!=globalThis.moment?moment.parseZone(e).format("LT").replace("AM","a.m.").replace("PM","p.m."):null}},{key:"formatDate",value:function(e){return null!=globalThis.moment?moment.parseZone(e).format("MMMM D, YYYY"):null}},{key:"render",value:function(){var e=this.props.searchResultsItem,t=this.props.searchLocation,a=this.props.typeLabel,n=this.props.whenLabel,r=this.props.whereLabel,s=this.props.detailsButtonLabel;return React.createElement("div",{className:"classes-events-list-result"},React.createElement("div",{className:"classes-events-holder row"},React.createElement("div",{className:"classes-events-column col-md-12"},React.createElement("div",{className:"classes-events-row"},React.createElement("div",{className:"classes-event-item-info"},React.createElement("div",{className:"classes-events-item-top"},e&&t?e.isOnline?React.createElement("div",{className:"classes-events-distance col-12"},"Online"):React.createElement("div",{className:"classes-events-distance col-12"},e.distance," miles from ",React.createElement("span",{className:"location"},t)):null,React.createElement("div",{className:"event-title"},React.createElement("h1",{className:"nameHead classes-events-results-item-name col-sm-9"},React.createElement("a",{href:e.detailPageUrl},e.name)),React.createElement("div",{className:"button-secondary col-sm-3",onclick:!0},React.createElement("a",{href:e.detailPageUrl},s)))),React.createElement("div",{className:"classes-events-item-bottom"},React.createElement("div",{className:"event-type-container col-sm-4"},React.createElement("div",{className:"event-label"},a),React.createElement("div",{className:"event-type"},e.eventType)),e.isOnline?React.createElement("div",{className:"event-date-container col-sm-5"},React.createElement("div",{className:"event-label"},"Online")):React.createElement("div",{className:"event-date-container col-sm-5"},React.createElement("div",{className:"event-label"},n),React.createElement("div",{className:"event-date"},this.formatDate(e.nextSession.startDate),React.createElement("br",null),this.formatTime(e.nextSession.startDate),"-",this.formatTime(e.nextSession.endDate),React.createElement("br",null),React.createElement("br",null),e.sessions.length>1?React.createElement("a",{className:"other-dates",href:e.detailPageUrl+"#other-dates-and-times"},"Other Dates and Times"):null)),React.createElement("div",{className:"event-location-container col-sm-3"},React.createElement("div",{className:"event-label"},r),React.createElement("div",{className:"event-address"},React.createElement("a",{href:"https://maps.google.com/maps?daddr="+e.address1+" "+e.city+", "+e.state+" "+e.zip,target:"_blank"},React.createElement("div",null,e.facilityName),React.createElement("div",null,e.city,", ",e.state," ",e.zip))))))))))}}]),t}();t.default=n},5887:(e,t,a)=>{var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=u(a(723)),s=u(a(9779)),i=u(a(5328)),o=u(a(3886)),l=u(a(4735)),c=u(a(3761));function u(e){return e&&e.__esModule?e:{default:e}}function p(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleMobileFilter=function(){a.setState({mobileFilterIsHidden:!a.state.mobileFilterIsHidden})},a.getFacetUrl=a.getFacetUrl.bind(a),a.submitSearch=a.submitSearch.bind(a),a.handleLocationChange=a.handleLocationChange.bind(a),a.isFacetSelected=a.isFacetSelected.bind(a),a.isAnyFacetSelected=a.isAnyFacetSelected.bind(a),a.changeQuery=a.changeQuery.bind(a),a.changePage=a.changePage.bind(a),a.removeFilters=a.removeFilters.bind(a),a.performSearch=a.performSearch.bind(a),a.buildUrl=a.buildUrl.bind(a),a.pagerStateHandler=a.pagerStateHandler.bind(a),a.searchMain=React.createRef(),a.state={isLoading:!1,locationInputLabel:a.props.data.LocationInputLabel,locationInputPlaceholder:a.props.data.LocationInputPlaceholder,eventInputLabel:a.props.data.EventInputLabel,eventInputPlaceholder:a.props.data.EventInputPlaceholder,optionalInputLabel:a.props.data.OptionalInputLabel,searchButtonLabel:a.props.data.SearchButtonLabel,filtersLabel:a.props.data.FiltersLabel,specialties:a.props.data.Specialties,resultsTextLabel:a.props.data.ResultsTextLabel,sortLabel:a.props.data.SortLabel,sortDateLabel:a.props.data.SortDateLabel,sortDistanceLabel:a.props.data.SortDistanceLabel,query:a.props.data?a.props.data.Request:null,request:a.props.data?a.props.data.Request:null,results:a.props.data.Results?a.props.data.Results.results:null,facets:a.props.data.Results?a.props.data.Results.facets:null,recordCount:a.props.data.Results.pagination?a.props.data.Results.pagination.totalResults:0,pager:{},pagesToDisplay:10,pagesToDisplayTablet:7,pagesToDisplayMobile:5,pagination:a.props.data.Results.pagination,useMobile:!1,useTabletLarge:!1,mobileFilterIsHidden:!0,removeFilterIsHidden:!0,selectedFilters:a.props.data.SelectedFilters?a.props.data.SelectedFilters:[],settings:a.props.data?a.props.data.Settings:null,pageSize:a.props.data?a.props.data.Settings.PageSize:null,clearFilters:a.props.data.ClearFilters,isEnd:!(!a.props.data.Results||a.props.data.Results.pagination.currentPage!==a.props.data.Results.pagination.totalPages),searchTerm:null},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.resize.bind(this)),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize.bind(this))}},{key:"resize",value:function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;this.setState({useMobile:e<=799,useTabletLarge:e<=1366})}},{key:"changePage",value:function(e){var t=this;this.setState({offset:(e-1)*this.state.maxLocations,page:e,updatePager:!1},(function(){window.scrollTo({behavior:"smooth",top:t.searchMain.current.offsetTop}),t.changeQuery("page",e)}))}},{key:"isFacetSelected",value:function(e,t){return!!this.state.request.filters[e]&&this.state.request.filters[e].indexOf(t.displayName)>-1}},{key:"isAnyFacetSelected",value:function(e,t){var a=this,n=!1;return t.map((function(t){a.isFacetSelected(e,t)&&(n=!0)})),n}},{key:"removeFilters",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.preventDefault();var a=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};t?delete a.filters[t]:a.filters={},this.setState({removeFilterIsHidden:!0,results:[]},(function(){this.performSearch(a)}))}},{key:"getSelectedFilters",value:function(e){var t=["distance","categoryType","eventType","cityState","specialty","date"],a=[];return Object.keys(e).forEach((function(n){t.indexOf(n)>-1&&a.push({filterName:n,filterValue:e[n]})})),a}},{key:"getFacetUrl",value:function(e,t){var a=this.changeQuery(e,t);return this.buildUrl(a)}},{key:"buildArrayQueries",value:function(e){var t="",a="";return Object.keys(e).forEach((function(n){Array.isArray(e[n])&&e[n].length>1?(a=e[n].map((function(e,t){return e.length>0?"&"+n+t+"="+encodeURIComponent(e):""})),t+=a):(a=e[n]&&e[n].length>0&&Array.isArray(e[n])?"&"+n+"="+encodeURIComponent(e[n][0]):"number"==typeof e[n]?"&"+n+"="+e[n].toString():e[n]&&e[n].length>0?"&"+n+"="+encodeURIComponent(e[n]):"",t+=a)})),t}},{key:"buildUrl",value:function(e){var t=e?JSON.parse(JSON.stringify(e)):{},a="";return t&&(a="?page="+encodeURIComponent(t.page)+"&sortBy="+encodeURIComponent(t.sortBy),a+=this.buildArrayQueries(t.geoDistanceOptions),a+=this.buildArrayQueries(t.filters)),a}},{key:"handleLocationChange",value:function(e,t){t&&t.preventDefault(),this.setState({location:e})}},{key:"submitSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.setState({results:[]},(function(){this.performSearch(e)}))}},{key:"changeQuery",value:function(e,t){var a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n&&n.preventDefault();var s=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};switch(e){case"sortBy":s[e]=t,this.performSearch(s);break;case"page":s[e]=t,this.performSearch(s,t);break;case"radius":case"location":s.geoDistanceOptions[e]=t,this.setState({request:s});break;default:delete s.filters[e],t&&"any"!==t&&(s.filters[e]=Array.isArray(t)?[].concat(p(t)):[t]),this.setState({request:s},r?function(){return a.performSearch()}:null)}}},{key:"performSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.setState({isLoading:!0},(function(){var a=this,n=e||this.state.request;n.page=t||1,jQuery.ajax({type:"POST",url:"/api/v2/events/search",data:JSON.stringify(n),success:function(e){var t={isLoading:!1,results:e&&e.response?e.response.results:null,request:e.request,pagination:e.response.pagination,facets:e.response.facets,page:n.page,pageSize:e.request.pageSize,isEnd:n.page===e.response.pagination.totalPages,settings:e.settings,selectedFilters:a.getSelectedFilters(n.filters),clearFilters:!0,location:n.geoDistanceOptions.location,searchTerm:a.state.request.filters.title,recordCount:e.response.pagination?e.response.pagination.totalResults:0};a.setState(t,(function(){var t=e&&e.request?a.buildUrl(e.request):null;window.history.pushState(t,"",t)}))}.bind(this),contentType:"application/json",dataType:"json"})}))}},{key:"pagerStateHandler",value:function(e){this.setState({pager:e})}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"col-12 classes-events-component"},React.createElement(r.default,{bannerTitle:this.props.data.BannerTitle,bannerSubTitle:this.props.data.BannerSubTitle}),React.createElement("div",{className:"col-12"},React.createElement(s.default,{request:this.state.request,query:this.state.query,clearFilters:this.state.clearFilters,submitSearchCallback:this.submitSearch,changeQueryCallback:this.changeQuery,onLocationChangeCallback:this.handleLocationChange,location:this.state.request.geoDistanceOptions.location,radius:this.state.request.geoDistanceOptions.radius,locationInputLabel:this.props.data.LocationInputLabel,locationInputPlaceholder:this.props.data.LocationInputPlaceholder,eventInputLabel:this.props.data.EventInputLabel,eventInputPlaceholder:this.props.data.EventInputPlaceholder,optionalInputLabel:this.props.data.OptionalInputLabel,searchButtonLabel:this.props.data.SearchButtonLabel}),React.createElement("div",{className:"col-12 ",ref:this.searchMain}),this.state.request.geoDistanceOptions.location&&""!==this.state.request.geoDistanceOptions.location?React.createElement("div",{className:"mobile-filter-bar container-fluid d-block d-lg-none"},React.createElement("div",{className:"row"},React.createElement("div",{className:"col"},React.createElement("button",{onClick:this.toggleMobileFilter,className:this.state.mobileFilterIsHidden?"filter-toggle closed":"filter-toggle open"},"Filters ",React.createElement("i",{className:"search-icon","aria-hidden":"true"}))))):null,React.createElement("div",{className:"section-container"},React.createElement("div",{className:"row"},this.state.request.geoDistanceOptions.location&&""!==this.state.request.geoDistanceOptions.location?React.createElement(React.Fragment,null,React.createElement("div",{className:this.state.mobileFilterIsHidden?"facets-container closed":"facets-container open"},React.createElement("div",{className:"filter-facets"},React.createElement("div",{className:"filter-head d-none d-md-block"},React.createElement("h3",null,this.props.data.FiltersLabel)),React.createElement("div",{id:"refineAccordion",className:"panel-group"},React.createElement(i.default,{Label:this.props.data.DistanceFilterLabel,ClearFilterLabel:this.props.data.ClearFilterLabel,QueryParameter:"distance",FilterOptions:Array.isArray(this.state.facets)&&this.state.facets.length>5?this.state.facets[5].values:null,ApplyFilterCallback:this.changeQuery,IsFacetSelectedCallback:this.isFacetSelected,isAnyFacetSelectedCallback:this.isAnyFacetSelected,radius:this.state.request.geoDistanceOptions.radius}),React.createElement(i.default,{Label:this.props.data.CategoryFilterLabel,QueryParameter:"categoryType",ClearFilterLabel:this.props.data.ClearFilterLabel,FilterOptions:Array.isArray(this.state.facets)&&this.state.facets.length>0?this.state.facets[0].values.sort((function(e,t){return e.displayName<t.displayName?-1:e.displayName>t.displayName?1:0})):null,ApplyFilterCallback:this.changeQuery,IsFacetSelectedCallback:this.isFacetSelected,isAnyFacetSelectedCallback:this.isAnyFacetSelected}),React.createElement(i.default,{Label:this.props.data.EventTypeFilterLabel,QueryParameter:"eventType",ClearFilterLabel:this.props.data.ClearFilterLabel,FilterOptions:Array.isArray(this.state.facets)&&this.state.facets.length>2?this.state.facets[2].values.sort((function(e,t){return e.displayName<t.displayName?-1:e.displayName>t.displayName?1:0})):null,ApplyFilterCallback:this.changeQuery,IsFacetSelectedCallback:this.isFacetSelected,isAnyFacetSelectedCallback:this.isAnyFacetSelected}),React.createElement(i.default,{Label:this.props.data.CityFilterLabel,ClearFilterLabel:this.props.data.ClearFilterLabel,QueryParameter:"cityState",FilterOptions:Array.isArray(this.state.facets)&&this.state.facets.length>1?this.state.facets[1].values.sort((function(e,t){return e.displayName<t.displayName?-1:e.displayName>t.displayName?1:0})):null,ApplyFilterCallback:this.changeQuery,IsFacetSelectedCallback:this.isFacetSelected,isAnyFacetSelectedCallback:this.isAnyFacetSelected}),React.createElement(i.default,{Label:this.props.data.SpecialtiesFilterLabel,ClearFilterLabel:this.props.data.ClearFilterLabel,QueryParameter:"specialty",FilterOptions:Array.isArray(this.state.facets)&&this.state.facets.length>3?this.state.facets[3].values.sort((function(e,t){return e.displayName<t.displayName?-1:e.displayName>t.displayName?1:0})):null,ApplyFilterCallback:this.changeQuery,IsFacetSelectedCallback:this.isFacetSelected,isAnyFacetSelectedCallback:this.isAnyFacetSelected}),React.createElement(i.default,{Label:this.props.data.DateFilterLabel,ClearFilterLabel:this.props.data.ClearFilterLabel,QueryParameter:"date",FilterOptions:Array.isArray(this.state.facets)&&this.state.facets.length>4?this.state.facets[4].values.sort((function(e,t){return e.displayName>t.displayName?-1:e.displayName<t.displayName?1:0})):null,ApplyFilterCallback:this.changeQuery,IsFacetSelectedCallback:this.isFacetSelected,isAnyFacetSelectedCallback:this.isAnyFacetSelected})))),React.createElement("div",{className:"classes-events-search-results-container"},React.createElement("div",{className:this.state.selectedFilters.length>0?"classes-events-applied-filters row open":"classes-events-applied-filters row closed"},React.createElement(o.default,{removeFiltersCallback:this.removeFilters,filters:this.state.selectedFilters})),this.state.searchTerm?React.createElement("h2",{className:"search-term"},this.state.searchTerm):null,React.createElement("div",{className:"event-tabs"},React.createElement("div",{id:"event-search-summary"},React.createElement("span",{className:"results-summary"},this.state.recordCount," Results Found")),React.createElement("div",{className:"event-sort"},React.createElement("div",{className:"sortOptions"},this.state.sortLabel,React.createElement("a",{className:this.state.request&&"date"===this.state.request.sortBy?"classes-events-sort-active":"classes-events-sort-inactive",onClick:function(t){return e.changeQuery("sortBy","date",t)}},this.state.sortDateLabel),"|",React.createElement("a",{className:this.state.request&&"distance"===this.state.request.sortBy?"classes-events-sort-active":"classes-events-sort-inactive",onClick:function(t){return e.changeQuery("sortBy","distance",t)}},this.state.sortDistanceLabel)))),React.createElement(l.default,{isLoading:this.state.isLoading,searchResults:this.state.results,recordCount:this.state.recordCount,pageSize:parseInt(this.state.request?this.state.request.pageSize:0),currentPage:parseInt(this.state.request?this.state.request.page:0),searchLocation:this.state.request?this.state.request.geoDistanceOptions.location:null,noResultsMessage:this.props.data.NoResultsFound,problemMessage:this.props.data.ProblemWithSearch,noMoreResultsTitle:this.props.data.NoMoreResultsTitleMessage,noResultsTitle:this.props.data.NoResultsTitleMessage}),React.createElement(c.default,{currentPage:parseInt(this.state.request?this.state.request.page:0),totalResults:this.state.recordCount,changePageCallback:this.changePage,pager:this.state.pager,useMobile:this.state.useMobile,useTabletLarge:this.state.useTabletLarge,pagesToDisplay:this.state.pagesToDisplay,pagesToDisplayMobile:this.state.pagesToDisplayMobile,pagesToDisplayTablet:this.state.pagesToDisplayTablet,pageSize:this.state.query.pageSize,pagerStateHandlerCallback:this.pagerStateHandler}))):React.createElement(React.Fragment,null,React.createElement("div",{className:"asc-search-no-results-msg"},React.createElement("div",null,this.props.data.NoLocationMessage)))))))}}]),t}();t.Z=d},723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){return React.createElement("div",{className:"banner col-12"},React.createElement("div",{className:"grid-container"},React.createElement("div",{className:"col-12 banner-column"},this.props.bannerTitle?React.createElement("h2",{className:"banner-title",dangerouslySetInnerHTML:{__html:this.props.bannerTitle}}):null,this.props.bannerSubTitle?React.createElement("div",{className:"banner-subtitle",dangerouslySetInnerHTML:{__html:this.props.bannerSubTitle}}):null)))}}]),t}();t.default=n},9779:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(1751))&&n.__esModule?n:{default:n},i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={request:a.props.request,facilityName:""},a.submitSearch=a.props.submitSearchCallback,a.handleSubmit=a.handleSubmit.bind(a),a.changeLocationFilter=a.changeLocationFilter.bind(a),a.handleInputClear=a.handleInputClear.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"changeLocationFilter",value:function(e){var t=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};t.geoDistanceOptions.location=e,this.props.clearFilters&&(t.filters={}),this.setState({request:t})}},{key:"handleInputClear",value:function(){this.setState({facilityName:""})}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};this.submitSearch(t,!0)}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"section-container classes-events-search"},React.createElement("div",{className:"asc-search-box-container row"},React.createElement("div",{className:"asc-search-box"},React.createElement("form",{onSubmit:this.handleSubmit,className:"asc-input"},React.createElement("div",{className:"asc-search-row form-row"},React.createElement("div",{className:"asc-search-col"},React.createElement("label",null,this.props.locationInputLabel),React.createElement("div",{className:"input-reset-container"},React.createElement("div",{className:"input-reset-container"},React.createElement(s.default,{defaultLocation:this.props.location,onSubmitCallback:this.changeLocationFilter,inputName:"location",inputId:"eventLocationTypeahead",isNotValid:!this.props.location})))),React.createElement("div",{className:"asc-search-col"},React.createElement("label",{for:"falLocationName"},this.props.eventInputLabel," ",this.props.optionalInputLabel),React.createElement("div",{className:"input-reset-container find-by-event"},React.createElement("input",{type:"text",className:"form-control",id:"falLocationName",placeholder:this.props.eventInputPlaceholder,value:this.state.facilityName,onChange:function(t){e.props.changeQueryCallback("title",t.target.value,t,!1),e.state.facilityName=t.target.value}}),""!==this.state.facilityName?React.createElement("button",{type:"button",className:"clear-input",role:"button","aria-label":"clear",onClick:function(t){e.props.changeQueryCallback("title","",t,!1),e.handleInputClear()}},"X"):null)),React.createElement("div",{className:"asc-search-col-button"},React.createElement("div",{className:"button-primary"},React.createElement("input",{type:"submit",value:this.props.searchButtonLabel}))))))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(JSON.stringify(t.request)!==JSON.stringify(e.request)){var a=t.request.geoDistanceOptions.location;return t.request=e.request,t.request.geoDistanceOptions.location=a,t}return null}}]),t}();t.default=i},5328:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleSection=a.toggleSection.bind(a),a.applyFilter=a.props.ApplyFilterCallback,a.isFacetSelected=a.props.IsFacetSelectedCallback,a.isAnyFacetSelected=a.props.isAnyFacetSelectedCallback,a.state={isFacetPanelOpen:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"toggleSection",value:function(){this.setState({isFacetPanelOpen:!this.state.isFacetPanelOpen})}},{key:"render",value:function(){var e=this,t=this.props.FilterOptions;return React.createElement("div",{className:"facets-section facet-panel"},React.createElement("h4",{className:this.state.isFacetPanelOpen?"facets-section-title facet-panel-head active":"facets-section-title facet-panel-head",onClick:this.toggleSection,"data-target":"#"+this.props.Label},this.props.Label,React.createElement("span",{className:"facets-section-expander"},React.createElement("i",{className:"fa fa-chevron-down",role:"button","aria-expanded":"false"}))),React.createElement("ul",{id:this.props.Label,className:this.state.isFacetPanelOpen?"facets-section-values facet-panel-content":"facets-section-values facet-panel-content closed"},t?t.map((function(a){return e.isFacetSelected(e.props.QueryParameter,a)?React.createElement(React.Fragment,null,React.createElement("li",null,React.createElement("button",{className:"filter-button-pill button-pill-secondary",onClick:function(t){return e.applyFilter(e.props.QueryParameter,null,t,!0)}},e.props.ClearFilterLabel,React.createElement("svg",{x:"0px",y:"0px",width:"18px",height:"18px",viewBox:"0 0 24 24",className:"icon",focusable:"false","aria-hidden":"true"},React.createElement("path",{d:"M12.7,12l7.1-7.1c0.2-0.2,0.2-0.5,0-0.7c-0.2-0.2-0.5-0.2-0.7,0L12,11.3L4.9,4.1C4.7,4,4.3,4,4.1,4.1C4,4.3,4,4.7,4.1,4.9\r l7.2,7.2l-7.1,7.1c-0.2,0.2-0.2,0.5,0,0.7C4.3,20,4.4,20,4.5,20c0.1,0,0.3,0,0.4-0.1l7.1-7.1l7.1,7.1c0.1,0.1,0.2,0.1,0.4,0.1\r s0.3,0,0.4-0.1c0.2-0.2,0.2-0.5,0-0.7L12.7,12z"})))),React.createElement("li",{class:"selected"},a.displayName," ",a.count?"("+a.count+")":null)):e.isAnyFacetSelected(e.props.QueryParameter,t)?null:e.props.radius&&a.displayName.includes(e.props.radius+" miles")?React.createElement("li",{class:"selected"},a.displayName," ",a.count?"("+a.count+")":null):React.createElement("li",null,React.createElement("a",{onClick:function(t){return e.applyFilter(e.props.QueryParameter,a.displayName,t,!0)}},a.displayName," ",a.count?"("+a.count+")":null))})):null))}}]),t}();t.default=n},4735:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=i(a(5376)),s=i(a(7516));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"noResultsMessage",value:function(e){if(0===e)return React.createElement("div",{className:"asc-search-no-results-msg"},React.createElement("h3",null,this.props.noResultsTitle),React.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.noResultsMessage}}))}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"classes-events-results"},this.props.isLoading?React.createElement(s.default,{isLoading:this.props.isLoading}):this.props.searchResults&&this.props.searchResults.length>0?this.props.searchResults.map((function(t){return React.createElement(r.default,{searchLocation:e.props.searchLocation,searchResultsItem:t.data,typeLabel:"TYPE",whenLabel:"WHEN",whereLabel:"WHERE",detailsButtonLabel:"EVENT DETAILS"})}),this):null,this.noResultsMessage(this.props.recordCount))}}]),t}();t.default=o},3761:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.changePage=a.props.changePageCallback,a.pagerStateHandler=a.props.pagerStateHandlerCallback,a.calcPageBreakpoint=a.calcPageBreakpoint.bind(a),a.pagerStateHandler(a.getPager(a.props.totalResults,a.props.currentPage)),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidUpdate",value:function(e){if(this.props.totalResults!==e.totalResults||this.props.useMobile!==e.useMobile||this.props.useTabletLarge!==e.useTabletLarge){var t=this.getPager(this.props.totalResults,this.props.currentPage);this.pagerStateHandler(t)}}},{key:"setPage",value:function(e){var t=this.props.totalResults,a=this.props.pager;e<1||e>a.totalPages||(a=this.getPager(t,e),this.pagerStateHandler(a),this.changePage(e))}},{key:"calcPageBreakpoint",value:function(){return this.props.useMobile?this.props.pagesToDisplayMobile:this.props.useTabletLarge?this.props.pagesToDisplayTablet:this.props.pagesToDisplay}},{key:"getPager",value:function(e,t){var a=this.calcPageBreakpoint(),n=this.props.pageSize,r=Math.ceil(e/n),s=Math.ceil(a/2)+1,i=Math.ceil((a-1)/2),o=(a-1)%2?i-1:i,l=void 0,c=void 0;r<=a?(l=1,c=r):t<=s?(l=1,c=a):t+i>=r?(l=this.props.useMobile?r-(n-6):this.props.useTabletLarge?r-(n-4):r-(n-1),c=r):(l=t-o,c=t+i);var u=(t-1)*n,p=Math.min(u+n-1,e-1),d=Array.from(Array(c+1-l).keys()).map((function(e){return l+e}));return{currentPage:t,pageSize:n,totalPages:r,startPage:l,endPage:c,startIndex:u,endIndex:p,pages:d}}},{key:"render",value:function(){var e=this,t=this.props.pager;return!t||!t.pages||t.pages.length<=1?null:React.createElement("div",{className:(this.props.topMobilePagination?"mobile d-flex justify-content-between":"")+" asc-search-pagination"},this.props.topMobilePagination?React.createElement(React.Fragment,null,React.createElement("div",{className:"results-count"},"Showing ",this.props.offset+1," - ",this.props.results.length+this.props.offset," ",React.createElement("span",null,"of ",this.props.totalResults)),React.createElement("div",null,React.createElement("a",{className:1===t.currentPage?"prev disabled":"prev",onClick:function(){return e.setPage(t.currentPage-1)},"aria-disabled":1===t.currentPage?"true":"false"},React.createElement("i",{className:"fa fa-angle-left","aria-hidden":"true"})),React.createElement("a",{className:t.currentPage===t.totalPages?"next disabled":"next",onClick:function(){return e.setPage(t.currentPage+1)},"aria-disabled":t.currentPage===t.totalPages?"true":"false"},React.createElement("i",{className:"fa fa-angle-right","aria-hidden":"true"})))):React.createElement(React.Fragment,null,React.createElement("a",{className:1===t.currentPage?"prev disabled":"prev",onClick:function(){return e.setPage(t.currentPage-1)},"aria-disabled":1===t.currentPage?"true":"false"},React.createElement("i",{className:"fa fa-angle-left","aria-hidden":"true"})),React.createElement("ul",null,t.pages.map((function(a,n){return t.currentPage===a?React.createElement("li",null,React.createElement("span",null,a)):React.createElement("li",{key:n},React.createElement("a",{onClick:function(){return e.setPage(a)}},React.createElement("span",null,a)))}))),React.createElement("a",{className:t.currentPage===t.totalPages?"next disabled":"next",onClick:function(){return e.setPage(t.currentPage+1)},"aria-disabled":t.currentPage===t.totalPages?"true":"false"},React.createElement("i",{className:"fa fa-angle-right","aria-hidden":"true"}))))}}]),t}();t.default=n},3886:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.removeFilters=a.props.removeFiltersCallback,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"showCloseIcon",value:function(){return React.createElement("svg",{x:"0px",y:"0px",width:"18px",height:"18px",viewBox:"0 0 24 24",class:"icon",focusable:"false","aria-hidden":"true"},React.createElement("path",{d:"M12.7,12l7.1-7.1c0.2-0.2,0.2-0.5,0-0.7c-0.2-0.2-0.5-0.2-0.7,0L12,11.3L4.9,4.1C4.7,4,4.3,4,4.1,4.1C4,4.3,4,4.7,4.1,4.9\r l7.2,7.2l-7.1,7.1c-0.2,0.2-0.2,0.5,0,0.7C4.3,20,4.4,20,4.5,20c0.1,0,0.3,0,0.4-0.1l7.1-7.1l7.1,7.1c0.1,0.1,0.2,0.1,0.4,0.1\r s0.3,0,0.4-0.1c0.2-0.2,0.2-0.5,0-0.7L12.7,12z"}))}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"blog-search-applied-filters"},React.createElement("h3",null,"Filtered by:"),React.createElement("ul",{class:"filtered-by-list"},this.props.filters.length>0?this.props.filters.map((function(t){return React.createElement("li",null,React.createElement("button",{className:"filter-button-pill",rel:"nofollow",onClick:function(a){e.removeFilters(a,t.filterName)}},t.filterValue," ",e.showCloseIcon()))})):null,this.props.filters.length>1?React.createElement("li",null,React.createElement("button",{className:"filter-button-pill",rel:"nofollow",onClick:this.removeFilters},"Clear All Filters ",this.showCloseIcon())):null))}}]),t}();t.default=n},120:(e,t,a)=>{var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=o(a(4508)),s=o(a(3237)),i=o(a(6033));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.getConfig=a.getConfig.bind(a),a.handleGetCareNowShowing=a.handleGetCareNowShowing.bind(a),a.handleGetCareNowHiding=a.handleGetCareNowHiding.bind(a),a.hideGetCareNow=a.hideGetCareNow.bind(a),a.setWrapperRef=a.setWrapperRef.bind(a),a.handleGCNOverlayClose=a.handleGCNOverlayClose.bind(a),a.mobileMenuBackButton=a.mobileMenuBackButton.bind(a),a.showTab=a.showTab.bind(a),a.handleLocationChange=a.handleLocationChange.bind(a),a.handleSortChange=a.handleSortChange.bind(a),a.handlePatientTypeChange=a.handlePatientTypeChange.bind(a),a.handleDistanceChange=a.handleDistanceChange.bind(a),a.performSearch=a.performSearch.bind(a),a.calculateOrder=a.calculateOrder.bind(a),a.findSiblings=a.findSiblings.bind(a);var n=[{LocationType:null,Heading:null,Description:null,TabTarget:t.Id,Tab:null}];return a.state={currentTab:null,currentTabTarget:null,locationType:null,overlayVisible:!1,tabConfigs:n.concat(a.props.data.Tabs),forceDisplayOnlineCare:!!a.props.data.ForceDisplayOnlineCare&&a.props.data.ForceDisplayOnlineCare,query:a.props.data.DefaultRequest,isLoading:!1,results:null,soonest:!1,patientType:a.props.data.DefaultPatientType,currentTime:null},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"componentDidMount",value:function(){this.state.forceDisplayOnlineCare||(jQuery(t.Id).on("show.bs.collapse",this.handleGetCareNowShowing).on("hide.bs.collapse",this.handleGetCareNowHiding),"undefined"!=typeof window&&this.showTab(window.location.hash))}},{key:"componentDidUpdate",value:function(){this.state.overlayVisible&&document.addEventListener("mouseup",this.handleGCNOverlayClose,!1)}},{key:"componentWillUnmount",value:function(){this.state.forceDisplayOnlineCare||jQuery(t.Id).off("show.bs.collapse",this.handleGetCareNowShowing).off("hide.bs.collapse",this.handleGetCareNowHiding)}},{key:"performSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.state.query;t.scheduleOptions.startDate=moment().format("YYYY-MM-DD"),t.scheduleOptions.endDate=moment().add(30,"days").format("YYYY-MM-DD");var a=e||this.state.patientType,n=t.filters&&t.filters.locationType?t.filters.locationType[0]:null;this.setState({isLoading:!0,currentTime:new Date},(function(){var e=this,r={data:JSON.stringify(t),contentType:"application/json; charset=UTF-8",type:"POST",url:"/api/v2/locations/search"};jQuery.ajax(r).done((function(t){e.setState({isLoading:!1,results:t.response?e.state.soonest&&"Emergency Care"!=n?e.calculateOrder(t.response.results):t.response.results:null,pagination:t.response?t.response.pagination:e.state.query.pagination,patientType:a||e.props.data.DefaultPatientType})}))}))}},{key:"calculateOrder",value:function(e){var t=JSON.parse(JSON.stringify(e)),a=t.filter((function(e){return e.data.location.schedules})),n=t.filter((function(e){return null==e.data.location.schedules}));return(a=a.sort((function(e,t){return new Date(e.data.location.schedules[0].availableTimes[0].times[0].time)-new Date(t.data.location.schedules[0].availableTimes[0].times[0].time)}))).concat(n)}},{key:"handleLocationChange",value:function(e,t){var a=this;t&&t.preventDefault();var n=JSON.parse(JSON.stringify(this.state.query));n.geoDistanceOptions.location=e,this.setState({query:n},(function(){return a.performSearch()}))}},{key:"handleSortChange",value:function(e,t){var a=this;t&&t.preventDefault();var n="availability"==e;this.setState({soonest:n},(function(){return a.performSearch()}))}},{key:"handlePatientTypeChange",value:function(e){e&&e.preventDefault(),this.performSearch(e.target.value)}},{key:"handleDistanceChange",value:function(e,t){var a=this;t&&t.preventDefault();var n=JSON.parse(JSON.stringify(this.state.query));n.geoDistanceOptions.radius=e,this.setState({query:n},(function(){return a.performSearch()}))}},{key:"getConfig",value:function(e){return this.state.tabConfigs.find((function(t){return t.TabTarget===e}))||null}},{key:"findSiblings",value:function(e){var t=document.querySelector(e),a=t.nextElementSibling;for(t.classList.toggle("overlay-sub-layer");a;)a.classList.toggle("overlay-sub-layer"),a=a.nextElementSibling}},{key:"handleGetCareNowShowing",value:function(){this.state.forceDisplayOnlineCare||(this.setState({overlayVisible:!0}),this.findSiblings(".featured-navigation"))}},{key:"handleGetCareNowHiding",value:function(){this.state.forceDisplayOnlineCare||(this.setState({overlayVisible:!1,currentTab:null,currentTabTarget:null,locationType:null}),this.findSiblings(".featured-navigation"))}},{key:"hideGetCareNow",value:function(){this.state.forceDisplayOnlineCare||jQuery(t.Id).collapse("hide")}},{key:"setWrapperRef",value:function(e){this.wrapperRef=e}},{key:"handleGCNOverlayClose",value:function(e){this.wrapperRef&&!this.wrapperRef.contains(event.target)&&(this.hideGetCareNow(),document.removeEventListener("mouseup",this.handleGCNOverlayClose,!1))}},{key:"mobileMenuBackButton",value:function(e){this.state.forceDisplayOnlineCare||(null!==this.state.currentTab?this.showTab(t.Id,e):jQuery(t.Id).collapse("hide"))}},{key:"showTab",value:function(e){var a=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!this.state.forceDisplayOnlineCare){n&&n.preventDefault();var r=this.getConfig(e);if(r){var s=this.state.query?JSON.parse(JSON.stringify(this.state.query)):JSON.parse(JSON.stringify(this.props.data.DefaultRequest));r.LocationType&&(s.filters.locationType=[r.LocationType]),this.setState({currentTab:r.Tab,currentTabTarget:r.TabTarget,locationType:r.LocationType,overlayVisible:!0,query:s},(function(){jQuery(t.Id).collapse("show"),a.state.query.geoDistanceOptions.location&&a.performSearch()}))}}}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"get-care-now"},React.createElement("div",{className:"get-care-now-overlay "+(!this.state.forceDisplayOnlineCare&&this.state.overlayVisible?"get-care-now-overlay-visible":""),onClick:this.hideGetCareNow}),React.createElement("div",{className:"get-care-now-content collapse "+(this.state.forceDisplayOnlineCare?"show":""),id:t.Id.substr(1),ref:this.setWrapperRef},React.createElement("button",{className:"get-care-now-content-close","aria-label":"Close Get Care Now Menu",onClick:this.mobileMenuBackButton},"Back"),React.createElement("div",{className:"get-care-now-tabs "+(this.state.forceDisplayOnlineCare||null!==this.state.currentTab?" show":"")},this.state.tabConfigs.map((function(t){return null!==t.Tab?React.createElement(r.default,{key:t.TabTarget,tabTarget:t.TabTarget,tabHeading:t.Heading,tabSubHeading:t.Description,handleTabClick:e.showTab,isActive:e.state.forceDisplayOnlineCare&&"online-care"===t.Tab||e.state.currentTabTarget===t.TabTarget}):null}))),React.createElement("div",{className:"get-care-now-tab-content collapse "+(this.state.forceDisplayOnlineCare||null!==this.state.currentTab?"show":"")},React.createElement("div",{className:"get-care-now-tab-content-online collapse "+(this.state.forceDisplayOnlineCare||"online-care"===this.state.currentTab?"show":"")},React.createElement(s.default,{placeholderKey:"getcarenow-online-care",placeholder:this.props.placeholder,isDynamic:!1},this.props.children)),React.createElement("div",{className:"get-care-now-tab-content-search collapse "+(this.state.forceDisplayOnlineCare||"search"!==this.state.currentTab?"":"show")},this.state.query&&this.state.query.filters&&this.state.query.filters.locationType?React.createElement(i.default,{locationType:this.state.locationType,defaultPatientType:this.props.data.DefaultPatientType,sortOptions:this.props.data.SortOptions,patientTypeOptions:this.props.data.PatientTypeOptions,distanceOptions:this.props.data.DistanceOptions,query:this.state.query,labels:this.props.data.Labels,handleLocationChange:this.handleLocationChange,handleSortChange:this.handleSortChange,handlePatientTypeChange:this.handlePatientTypeChange,handleDistanceChange:this.handleDistanceChange,performSearch:this.performSearch,results:this.state.results,isLoading:this.state.isLoading,soonest:this.state.soonest,patientType:this.state.patientType,currentTime:this.state.currentTime}):null))))}}]),t}();l.Id="#get-care-now-component",t.Z=l},6033:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=o(a(5612)),s=o(a(8491)),i=o(a(2190));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.handleLocationChange=a.props.handleLocationChange,a.handleSortChange=a.props.handleSortChange,a.handlePatientTypeChange=a.props.handlePatientTypeChange,a.handleDistanceChange=a.props.handleDistanceChange,a.performSearch=a.props.performSearch,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"render",value:function(){return React.createElement("div",{className:"get-care-now-search"},React.createElement(r.default,{defaultLocation:this.props.query?this.props.query.geoDistanceOptions.location:null,handleLocationChange:this.handleLocationChange,sortOptions:this.props.sortOptions,defaultSort:this.props.query?this.props.query.sortBy:null,handleSortChange:this.handleSortChange,patientTypeOptions:this.props.patientTypeOptions,patientType:this.props.patientType,handlePatientTypeChange:this.handlePatientTypeChange,distanceOptions:this.props.distanceOptions,defaultDistance:this.props.query.geoDistanceOptions.radius,handleDistanceChange:this.handleDistanceChange,labels:this.props.labels}),this.props.query&&this.props.query.geoDistanceOptions.location?this.props.isLoading?React.createElement(i.default,{isLoading:this.props.isLoading}):React.createElement(s.default,{results:this.props.results,locationType:this.props.query?this.props.query.filters.locationType:null,location:this.props.query?this.props.query.geoDistanceOptions.location:null,patientType:this.props.patientType,soonest:this.props.soonest,labels:this.props.labels,currentTime:this.props.currentTime}):this.props.results&&!this.props.isLoading?this.props.labels.NoResultsFound:null)}}]),t}();t.default=l},5612:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(1751))&&n.__esModule?n:{default:n},i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.handleFilterChange=a.props.handleFilterChange,a.state={forceDisplayFilters:!1,distance:a.props.defaultDistance,sort:a.props.defaultSort,location:a.props.defaultLocation,distanceWithinWidth:null,sortInputWidth:null},a.handleDistanceChange=a.handleDistanceChange.bind(a),a.handleLocationChange=a.handleLocationChange.bind(a),a.handleSortChange=a.handleSortChange.bind(a),a.toggleFilters=a.toggleFilters.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"toggleFilters",value:function(){this.setState({forceDisplayFilters:!this.state.forceDisplayFilters})}},{key:"handleLocationChange",value:function(e,t){var a=this;this.setState({location:e},(function(){a.props.handleLocationChange(a.state.location,t)}))}},{key:"setDistanceWithinWidth",value:function(){var e=document.getElementById("selectedOptionHiddenDistanceWithin").offsetWidth+15;this.setState({distanceWithinWidth:e+"px"})}},{key:"handleDistanceChange",value:function(e){var t=this,a=e.target;this.setState({distance:a.value},(function(){t.setDistanceWithinWidth(),t.props.handleDistanceChange(t.state.distance,e)}))}},{key:"setSortWidth",value:function(){var e=document.getElementById("selectedOptionHiddenSort").offsetWidth+15;this.setState({sortInputWidth:e+"px"})}},{key:"handleSortChange",value:function(e){var t=this,a=e.target;this.setState({sort:a.value},(function(){t.setSortWidth(),t.props.handleSortChange(t.state.sort,e)}))}},{key:"findOption",value:function(e,t,a){return t=""===t?null:t,e.map((function(e){return e.Value==t&&null==t?a:e.Value==t?e.DisplayName:void 0}))}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"asc-search-filters"},React.createElement("div",{className:"gcn-top-filters"},React.createElement("div",{className:"get-care-now-location"},React.createElement(s.default,{defaultLocation:this.props.defaultLocation,onSubmitCallback:this.handleLocationChange,validTermsCache:[{offset:0,value:this.props.defaultLocation}]})),React.createElement("div",{className:"asc-search-accordion "+(this.state.forceDisplayFilters?"expanded":"")},React.createElement("button",{type:"button",className:"asc-search-accordion-trigger","aria-expanded":this.state.forceDisplayFilters,"aria-controls":"gcnFilterAccordion",onClick:this.toggleFilters},React.createElement("span",null,"Filters"))),React.createElement("div",{className:"asc-search-filter-accordion",id:"gcnFilterAccordion"},React.createElement("div",{className:"asc-search-filter"},React.createElement("div",{className:"filter-group-toggle"},this.props.patientTypeOptions.map((function(t){return React.createElement("label",{className:"button-toggle"},React.createElement("input",{type:"radio",name:"patientType",autoComplete:"off",value:t.Value,checked:t.Value===e.props.patientType,onChange:e.props.handlePatientTypeChange})," ",React.createElement("span",null,t.DisplayName))})))),React.createElement("div",{className:"asc-search-select-wrapper "},React.createElement("div",{className:"asc-search-filter "},React.createElement("div",{className:" label-select"},React.createElement("label",{className:"asc-search-label-select",htmlFor:"get-care-now-filter-distance"},this.props.labels.RadiusLabel),React.createElement("select",{className:"asc-search-select",name:"get-care-now-filter-distance",title:"Select Distance Within",onChange:this.handleDistanceChange,style:{width:this.state.distanceWithinWidth?this.state.distanceWithinWidth:"67px"},value:this.state.distance},this.props.distanceOptions.map((function(e){return React.createElement("option",{value:e.Value},e.DisplayName)}))))),React.createElement("div",{className:"divider-select-wrapper"},React.createElement("div",{className:"divider-select"})),React.createElement("div",{className:"asc-search-filter "},React.createElement("div",{className:" label-select asc-search-distance"},React.createElement("label",{className:"asc-search-label-select",htmlFor:"get-care-now-filter-sort"},this.props.labels.SortLabel),React.createElement("select",{className:"asc-search-select",name:"get-care-now-filter-sort",title:this.props.labels.SortLabel,onChange:this.handleSortChange,style:{width:this.state.sortInputWidth?this.state.sortInputWidth:"112px"},value:this.state.sort},this.props.sortOptions.map((function(e){return React.createElement("option",{value:e.Value},e.DisplayName)}))))),React.createElement("div",{className:"selectedOptionHiddenWrapper"},React.createElement("span",{id:"selectedOptionHiddenDistanceWithin",className:"selectedOptionHidden"},this.findOption(this.props.distanceOptions,this.state.distance,null)),React.createElement("span",{id:"selectedOptionHiddenSort",className:"selectedOptionHidden"},this.findOption(this.props.sortOptions,this.state.sort,null)))))))}}]),t}();t.default=i},3769:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(5220))&&n.__esModule?n:{default:n},i=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"componentDidMount",value:function(){this.$el=jQuery("#getCareNowOnlineScheduleItem-"+this.props.index),this.$el&&this.$el.slick({dots:!1,infinite:!1,speed:300,slidesToShow:4,slidesToScroll:1,variableWidth:!0})}},{key:"componentWillUnmount",value:function(){this.$el&&this.$el.slick("unslick")}},{key:"FormatPhoneNumberForTelURI",value:function(e){if(e){var t=e.replace(/[\(\)\.\s]/g,"-");return"+1"+(t=t.replace(/-+/g,"-")).replace(/^(\+?1-)/,"")}return null}},{key:"render",value:function(){var e="Emergency Care"==this.props.locationType,t=""+this.props.labels.DirectionsLink+this.props.item.data.location.address.street+" "+(this.props.item.data.location.address.street2?this.props.item.data.location.address.street2:"")+" "+this.props.item.data.location.address.city+" "+this.props.item.data.location.address.stateAbbreviation+" "+this.props.item.data.location.address.zip;return React.createElement("div",{className:"asc-search-result"},React.createElement("div",{className:"asc-search-result-row "+(this.props.highlightItemIndex===this.props.index?"active":"")},React.createElement("div",{className:"asc-search-result-pin-section"},React.createElement("div",{className:"asc-search-result-pin"},React.createElement("svg",{className:"asc-search-result-pin-icon",focusable:"false","aria-hidden":"true",viewBox:"0 0 22.7 30.5",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M11.3 30.5L1.7 17.4C.7 15.7 0 13.6 0 11.3 0 5.1 5.1 0 11.3 0s11.3 5.1 11.3 11.3c0 2.3-.7 4.4-1.8 6.1l-9.5 13.1z"})),React.createElement("span",{className:"asc-search-result-pin-number"},this.props.index+1))),React.createElement("div",{className:"asc-search-result-contact"},React.createElement("p",{className:"asc-search-result-distance"},this.props.item.data.distance?this.props.item.data.distance.toFixed(2):"0"," miles from ",this.props.location),React.createElement("h2",{className:"asc-search-result-name"},React.createElement("a",{href:this.props.item.data.location.url,target:"_blank"},this.props.item.data.location.displayName)),React.createElement("h3",{className:"asc-search-result-services"},Array.isArray(this.props.item.data.location.servicesOffered)?this.props.item.data.location.servicesOffered.join(", "):null),React.createElement("div",{className:"asc-search-result-details"},React.createElement("div",{className:"asc-search-result-address"},React.createElement("h3",null,this.props.labels.AddressLabel),React.createElement("p",null,React.createElement("a",{href:t,target:"_blank"},this.props.item.data.location.address.street,React.createElement("br",null),this.props.item.data.location.address.street2?React.createElement(React.Fragment,null,this.props.item.data.location.address.street2,React.createElement("br",null)):null,this.props.item.data.location.address.city,", ",this.props.item.data.location.address.stateAbbreviation," ",this.props.item.data.location.address.zip," "))),this.props.item.data.location.phoneNumber?React.createElement(React.Fragment,null,React.createElement("div",{className:"asc-search-result-phone"},React.createElement("h3",null,this.props.labels.PhoneLabel),React.createElement("p",null,React.createElement("a",{href:"tel:"+this.FormatPhoneNumberForTelURI(this.props.item.data.location.phoneNumber)},this.props.item.data.location.phoneNumber))),"   "):null,this.props.item.data.Hours?React.createElement(React.Fragment,null,React.createElement("div",{className:"asc-search-result-hours"},React.createElement("h3",null,this.props.labels.HoursLabel),React.createElement("p",null,this.props.item.data.location.hours))):null))),React.createElement("div",{className:"asc-search-result-row"},React.createElement("div",{className:"asc-search-result-scheduling"},e?this.props.item.data.location.schedules&&this.props.item.data.location.schedules.length>0&&this.props.item.data.location.schedules[0].hasAvailability?React.createElement("div",{className:"asc-search-result-checkin"},React.createElement("div",{className:"button-primary"},React.createElement("a",{href:this.props.item.data.location.schedules[0].registrationUrl,target:"_blank"},this.props.labels.CheckInButton))):React.createElement("div",{className:"asc-search-result-phone-scheduling asc-search-result-no-online-checkin"},React.createElement("p",null,this.props.labels.CheckInUnavailable)):this.props.schedules?React.createElement("div",{className:"get-care-now-online-scheduling"},React.createElement(s.default,{schedules:this.props.schedules,hasEmergencyCare:e,hasOnlineScheduling:this.props.item.data.location.hasOnlineScheduling,patientType:this.props.patientType,locationType:this.props.locationType,currentTime:this.props.currentTime})):React.createElement("div",{className:"asc-search-result-phone-scheduling button-secondary"},React.createElement("a",{href:"tel:"+this.FormatPhoneNumberForTelURI(this.props.item.data.location.phoneNumber)},this.props.labels.CallForAppointmentButton)))))}}]),t}();t.default=i},8491:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=i(a(3769)),s=i(a(9580));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={highlightItemIndex:null},a.onLocationClick=a.onLocationClick.bind(a),a.createPins=a.createPins.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"onLocationClick",value:function(e){this["location_"+(e.Index-1)].current.scrollIntoView({behavior:"smooth",block:"start"})}},{key:"createPins",value:function(e){for(var t=[],a=1,n=0;n<e.length;n++){var r={},s=e[n].data.location.address.street+", "+e[n].data.location.address.city+", "+e[n].data.location.address.stateAbbreviation+"  "+e[n].data.location.address.zip;r.Index=a,r.Lat=e[n].data.location.address.latitude,r.Lon=e[n].data.location.address.longitude,r.PopupLabel=e[n].data.location.displayName?e[n].data.location.displayName:"",r.mapStreet=e[n].data.location.address.street,r.mapCity=e[n].data.location.address.city,r.mapState=e[n].data.location.address.state,r.mapZip=e[n].data.location.address.zip,r.mapUrl=""+this.props.labels.DirectionsLink+s.replace(","," ")+"&amp;saddr=My%20Location",r.providerIds=[e[n].id],r.locationId=e[n].data.location.id,t.push(r),a++}return t}},{key:"render",value:function(){var e=this;return this.props.results&&this.props.results.length?React.createElement("div",{className:"asc-search-results row no-gutters"},React.createElement("div",{className:"col-md-7 asc-search-results-content-col"},React.createElement("ol",{className:"asc-search-results-list"},this.props.results.map((function(t,a){return e["location_"+a]=React.createRef(),React.createElement("li",{className:"asc-search-results-item",ref:e["location_"+a]},React.createElement(r.default,{item:t,index:a,key:a,highlightItemIndex:e.state.highlightItemIndex,locationType:e.props.locationType,location:e.props.location,onLocationClick:e.onLocationClick,schedules:t.data.location.schedules,patientType:e.props.patientType,labels:e.props.labels,currentTime:e.props.currentTime}))})))),React.createElement("div",{className:"col-md-5 order-first order-md-last asc-search-results-map-col "},React.createElement(s.default,{locations:this.createPins(this.props.results),onLocationClickCallback:this.onLocationClick,useLetters:!1,overlapLevel:.0023,featureToggles:!1,marketClusteringImageUrl:null,marketClusteringJSUrl:null,scrolltoMapTop:this.props.scrolltoMapTop}))):React.createElement("div",{className:"asc-search-results"},React.createElement("p",{className:"asc-search-no-results"},"Sorry, we couldn't find any locations to match your search. Please expand your radius or search by another location."))}}]),t}();t.default=o},3038:(e,t)=>{var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.renderMap=a.renderMap.bind(a),a.addMarker=a.addMarker.bind(a),a.showInfoWindow=a.showInfoWindow.bind(a),a.state={markers:[]},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidMount",value:function(){google&&this.renderMap()}},{key:"addMarker",value:function(e,t){var a=this,n=new google.maps.Marker({position:{lat:e.data.location.address.latitude,lng:e.data.location.address.longitude},icon:{path:"M11.3 30.5L1.7 17.4C.7 15.7 0 13.6 0 11.3 0 5.1 5.1 0 11.3 0s11.3 5.1 11.3 11.3c0 2.3-.7 4.4-1.8 6.1l-9.5 13.1z",fillColor:"#057262",fillOpacity:1,anchor:new google.maps.Point(12,34),strokeWeight:1,scale:1,strokeColor:"#f2f2f2",labelOrigin:new google.maps.Point(11,12)},label:{text:""+(t+1),color:"white",fontFamily:"sans-serif",fontSize:"12px"},title:e.LocationName,map:this.map}),r=new google.maps.InfoWindow({content:'<div id="content">'+e.LocationName+"</div>"});return n.addListener("click",(function(){a.showInfoWindow(t)})),{index:t,location:e,marker:n,infoWindow:r}}},{key:"showInfoWindow",value:function(e){var t=this;this.props.onLocationClick(e),this.state.markers.map((function(a){a.index!==e?a.infoWindow.close():a.infoWindow.open(t.map,a.marker)}))}},{key:"renderMap",value:function(){var e=this;this.map=new google.maps.Map(this.refs.map,{zoom:8,scrollwheel:!1,disableDoubleClickZoom:!1,streetViewControl:!1,fullscreenControl:!1,streetViewControlOptions:!1,mapTypeControl:!1,mapTypeId:"roadmap",styles:[{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"road.highway",stylers:[{color:"#ffffff"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#4192ee"}]}]});var t=this.props.locations.map((function(t,a){return e.addMarker(t,a)})),a=new google.maps.LatLngBounds;t.map((function(e){a.extend(e.marker.getPosition())}));var n=t.length;this.setState({markers:t},function(){n>1?e.map.fitBounds(a):1==n&&(e.map.setCenter(a.getCenter()),e.map.setZoom(11))}.bind(this))}},{key:"render",value:function(){return React.createElement("div",{className:"asc-search-results-map-container"},React.createElement("div",{className:"asc-search-results-map",ref:"map"}))}}]),t}();t.Z=n},4508:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){var e=this;return React.createElement("a",{className:"get-care-now-tab "+(this.props.isActive?"active":""),href:this.props.tabTarget,onClick:function(t){return e.props.handleTabClick(e.props.tabTarget,t)},role:"button"},React.createElement("h2",{dangerouslySetInnerHTML:{__html:this.props.tabHeading}}),React.createElement("span",{dangerouslySetInnerHTML:{__html:this.props.tabSubHeading}}))}}]),t}();t.default=n},5220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.getFormattedDate=a.getFormattedDate.bind(a),a.createSlider=a.createSlider.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidMount",value:function(){this.updateSlider()}},{key:"componentDidUpdate",value:function(e,t){e.schedules==this.props.schedules&&e.patientType==this.props.patientType&&e.locationType==this.props.locationType||(this.removeSlider(),this.updateSlider())}},{key:"updateSlider",value:function(){this.$el=jQuery(ReactDOM.findDOMNode(this.refs.gcnEl)),this.$el&&this.$el.slick({dots:!1,infinite:!1,speed:300,slidesToShow:4,slidesToScroll:1,variableWidth:!0})}},{key:"removeSlider",value:function(){this.refs.gcnEl.classList.contains("slick-initialized")&&(this.$el=jQuery(ReactDOM.findDOMNode(this.refs.gcnEl)),this.$el&&this.$el.slick("unslick"))}},{key:"getFormattedDate",value:function(e){var t=moment.utc(e,"YYYY-MM-DD HH:mm").parseZone(e);return React.createElement(React.Fragment,null,React.createElement("div",{className:"get-care-now-online-scheduling-date"},React.createElement("p",{className:"get-care-now-online-scheduling-day"},t.format("ddd")),React.createElement("p",{className:"get-care-now-online-scheduling-month"},t.format("MMM Do"))))}},{key:"getFormattedTime",value:function(e){return moment.utc(e,"YYYY-MM-DD HH:mm").parseZone(e).format("LT")}},{key:"getDate",value:function(e){return moment.utc(e,"YYYY-MM-DD HH:mm").parseZone(e).format("YYYY-MM-DD HH:mm")}},{key:"showTime",value:function(e){var t=new Date;null!=this.props.currentTime&&(t=this.props.currentTime);var a=moment.utc(e)._tzm,n=moment.utc(t,"YYYY-MM-DD HH:mm").utcOffset(a);return moment.utc(e,"YYYY-MM-DD HH:mm").utcOffset(a).diff(n,"minutes")>60}},{key:"createSlider",value:function(e){var t=this,a=this.props.schedules[0]?this.props.schedules[0].availableTimes:null,n=this.props.schedules[0]?this.props.schedules[0].registrationUrl:null;return React.createElement(React.Fragment,null,React.createElement("div",{className:"getCareNowOnlineScheduleItem-"+this.props.index,ref:"gcnEl"},n?a.map((function(a,r,s){var i=a.times.filter((function(e){return 1==t.showTime(e.time)}));if((i=i.filter((function(t){return t.appointmentTypes.some((function(t){return t.id==e}))}))).length>0)return i.map((function(a,r){return a.time?React.createElement(React.Fragment,null,0==r?React.createElement(React.Fragment,null,React.createElement("a",{role:"button","aria-disabled":"true"},t.getFormattedDate(a.time))):null,React.createElement("div",{className:"button-primary"},React.createElement("a",{href:n+"?at="+t.getDate(a.time)+"&appointment_type="+e,target:"_blank",role:"button"},t.getFormattedTime(a.time)))):null}))})):null))}},{key:"render",value:function(){return React.createElement(React.Fragment,null,this.props.schedules&&this.props.schedules[0].hasAvailability?this.createSlider(this.props.patientType):null)}}]),t}();t.default=n},9048:(e,t,a)=>{var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=u(a(9915)),s=u(a(4590)),i=u(a(8854)),o=u(a(1930)),l=u(a(2190)),c=u(a(5685));function u(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.toggleLocationsMobileFilters=a.toggleLocationsMobileFilters.bind(a),a.handleLocationChange=a.handleLocationChange.bind(a),a.handleLocationTypeChange=a.handleLocationTypeChange.bind(a),a.handleDistanceChange=a.handleDistanceChange.bind(a),a.handleFacilityNameChange=a.handleFacilityNameChange.bind(a),a.findOption=a.findOption.bind(a),a.handleSubmit=a.handleSubmit.bind(a),a.changePage=a.changePage.bind(a),a.handleScroll=a.handleScroll.bind(a),a.stringToHash=a.stringToHash.bind(a),a.buildUrlState=a.buildUrlState.bind(a),a.pagerStateHandler=a.pagerStateHandler.bind(a),a.mapRef=React.createRef(),a.stickyRef=React.createRef();for(var n=void 0,r=/\+/g,s=/([^&=]+)=?([^&]*)/g,i=function(e){return decodeURIComponent(e.replace(r," "))},o="undefined"!=typeof window?window.location.search.substring(1):"",l={};n=s.exec(o);)l[i(n[1])]=i(n[2]);return a.state={isLoading:!0,forceDisplayFilters:!1,results:null,recordCount:0,locationType:l.filter?l.filter:"",location:l.location?l.location:a.props.data.DefaultLocation,distance:l.distance?l.distance:a.props.data.DefaultDistance,maxLocations:0==a.props.data.MaxLocations?10:a.props.data.MaxLocations,stateCode:a.props.data.StateCode?a.props.data.StateCode:"",facilityName:l.facility?l.facility:"",page:l.page?parseInt(l.page):1,offset:0,query:null,mapCenterPoint:null,locationTypeWidth:null,pager:{},pagesToDisplay:10,pagesToDisplayTablet:7,pagesToDisplayMobile:5,useMobile:!1,useTabletLarge:!1,isFilterBarSticky:!1,isMapNearFooter:!1,stickyHeight:0},isNaN(a.state.page)&&(a.state.page=1),a.resultsListChildRef=React.createRef(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"toggleLocationsMobileFilters",value:function(){this.setState({forceDisplayFilters:!this.state.forceDisplayFilters})}},{key:"buildUrlState",value:function(){return this.props.data.StateCode?"?page="+this.state.page+"&facility="+this.state.facilityName+"&distance="+this.state.distance+"&filter="+this.state.locationType:"?page="+this.state.page+"&facility="+this.state.facilityName+"&location="+this.state.location+"&distance="+this.state.distance+"&filter="+this.state.locationType}},{key:"handleLocationChange",value:function(e,t){t&&t.preventDefault(),this.setState({location:e})}},{key:"handleDistanceChange",value:function(e){var t=this;e&&e.preventDefault();var a=e.target;this.setState({distance:a.value,offset:0,page:1},(function(){return t.performSearch()}))}},{key:"handleLocationTypeChange",value:function(e){var t=this;e&&e.preventDefault();var a=e.target,n=a.value&&"All Location Types"!==a.value?a.value:"";this.setState({locationType:n,offset:0,page:1},(function(){return t.performSearch()}))}},{key:"findOption",value:function(e,t,a){return t=""===t?null:t,e.map((function(e){return e.Value==t&&null==t?a:e.Value==t?e.DisplayName:void 0}))}},{key:"handleFacilityNameChange",value:function(e){this.setState({facilityName:e.target.value})}},{key:"handleSubmit",value:function(e){e&&e.preventDefault(),this.changePage(1)}},{key:"changePage",value:function(e){var t=this;this.setState({offset:(e-1)*this.state.maxLocations,page:e,updatePager:!1},(function(){t.scrollToTop(e),t.performSearch()}))}},{key:"scrollToTop",value:function(e){this.setState({isFilterBarSticky:!1}),this.setState({isMapNearFooter:!1}),e>1&&!this.state.isLoading?(this.resultsListChildRef?this.resultsListChildRef.current.resultsListRef.current:null).scrollIntoView():window.scrollTo(0,0)}},{key:"componentDidMount",value:function(){window.addEventListener("resize",this.resize.bind(this)),window.addEventListener("scroll",this.handleScroll,{passive:!0}),this.resize(),this.performSearch()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize.bind(this)),window.removeEventListener("scroll",this.handleScroll)}},{key:"stringToHash",value:function(e){var t=0;if(0==e.length)return t;for(var a=0;a<e.length;a++)t=(t<<5)-t+e.charCodeAt(a),t&=t;return t}},{key:"updatePins",value:function(e){for(var t=[],a=0;a<e.length;a++){var n={},r=this.stringToHash(e[a].Data.Location.Address.Street+e[a].Data.Location.Address.City+e[a].Data.Location.Address.StateAbbreviation+e[a].Data.Location.Address.Zip),s=e[a].Data.Location.Address.Street+", "+e[a].Data.Location.Address.City+", "+e[a].Data.Location.Address.StateAbbreviation+"  "+e[a].Data.Location.Address.Zip;n.hash=r,n.Index=a+1+(this.state.page>0?this.state.page-1:0)*this.state.maxLocations,n.Lat=e[a].Data.Location.Address.Latitude,n.Lon=e[a].Data.Location.Address.Longitude,n.PopupLabel=e[a].Data.Location.DisplayName?e[a].Data.Location.DisplayName:"",n.mapStreet=e[a].Data.Location.Address.Street,n.mapCity=e[a].Data.Location.Address.City,n.mapState=e[a].Data.Location.Address.State,n.mapZip=e[a].Data.Location.Address.Zip,n.mapUrl="https://maps.google.com/maps?daddr="+s+"&amp;saddr=My%20Location",n.providerIds=[e[a].id],n.LocationId=e[a].Data.Location.id,n.GmbCode=e[a].Data.Location.GmbCode,t.push(n)}return t}},{key:"performSearch",value:function(){this.setState({isLoading:!0},(function(){var e=this,t={geoDistanceOptions:{location:this.state.location,radius:this.state.distance},facilityName:this.state.facilityName,locationType:this.state.locationType,page:this.state.page,pageSize:this.state.maxLocations,stateCode:this.state.stateCode};null!==this.state.locationType&&(t.filters={locationType:[this.state.locationType]});var a={data:JSON.stringify(t),contentType:"application/json; charset=UTF-8",type:"POST",url:"/api/locations/search"};jQuery.ajax(a).done((function(a){e.setState({isLoading:!1,results:a.Results,recordCount:a.Pagination.TotalResults,mapPins:e.updatePins(a.Results),query:t});var n=e.buildUrlState();window.history.pushState(n,"",n)}))}))}},{key:"resize",value:function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,t=e<=799,a=e<=1366;this.setState({useMobile:t,useTabletLarge:a})}},{key:"pagerStateHandler",value:function(e){this.setState({pager:e})}},{key:"handleScroll",value:function(){var e=window.scrollY,t=document.getElementById("location-pagination-container").getBoundingClientRect().top,a=t+e,n=this.mapRef.current&&this.state.results.length?this.mapRef.current.clientHeight:0,r=a-n-20,s=document.body.classList.contains("preview"),i=void 0;this.stickyRef.current.getBoundingClientRect().bottom<-30?(this.setState({isFilterBarSticky:!0}),t<=n?this.setState({isMapNearFooter:!0}):this.setState({isMapNearFooter:!1})):(this.setState({isFilterBarSticky:!1}),this.setState({isMapNearFooter:!1}));var o=r-e,l=function(){r-i<e&&(i=o)};if(!0===this.state.isFilterBarSticky&&s){var c=document.getElementById("scWebEditRibbon").clientHeight||89;i=30+c,l()}else!0===this.state.isFilterBarSticky&&(i=30,l());this.setState({stickyHeight:i})}},{key:"render",value:function(){return React.createElement("div",{className:"locations-search-component"},React.createElement(r.default,{bannerTitle:this.props.data.BannerTitle,bannerSubTitle:this.props.data.BannerSubTitle,isCollapsed:this.state.recordCount>0,className:"green-banner"}),React.createElement("div",{className:"col-12 locations-control-results"},React.createElement(s.default,{location:this.state.location,stateCode:this.state.stateCode,facilityName:this.state.facilityName,onLocationChangeCallback:this.handleLocationChange,onSubmitCallback:this.handleSubmit,onFacilityNameChangeCallback:this.handleFacilityNameChange}),React.createElement("span",{ref:this.stickyRef}),React.createElement("div",{className:"locations-search-results-filters "},React.createElement("div",{className:"asc-search-filters locations-filters"},React.createElement("div",{className:"asc-search-accordion "+(this.state.forceDisplayFilters?"expanded":"")},React.createElement("button",{type:"button",className:"asc-search-accordion-trigger","aria-expanded":this.state.forceDisplayFilters,"aria-controls":"locationsSearchAccordion",onClick:this.toggleLocationsMobileFilters},React.createElement("span",null,"Filters"))),React.createElement("div",{className:"asc-search-filter-accordion",id:"locationsSearchAccordion"},React.createElement("div",{className:"locations-search-results-count"},React.createElement("h2",null,this.state.recordCount," Results Found")),React.createElement("div",{className:"locations-search-filter-options"},""===this.state.stateCode&&React.createElement(i.default,{applyFilterCallback:this.handleDistanceChange,filterName:"distance",filterLabel:"Results Within:",filterOptions:this.props.data.DistanceOptions,allDisplayName:"",selectedValue:this.state.distance,displayMobileFilters:this.state.forceDisplayFilters}),""!==this.state.stateCode&&React.createElement("div",{class:"asc-search-filter"}),React.createElement(i.default,{applyFilterCallback:this.handleLocationTypeChange,filterName:"location-type",filterLabel:"Location Type:",filterOptions:this.props.data.LocationTypeOptions,allDisplayName:"All Location Types",selectedValue:this.state.locationType,displayMobileFilters:this.state.forceDisplayFilters})))),this.state.isLoading?React.createElement(l.default,{isLoading:this.state.isLoading}):React.createElement(o.default,{mapPins:this.state.mapPins,results:this.state.results,locationType:this.state.locationTypes,location:this.state.location,totalResults:this.state.recordCount,currentPage:this.state.page,changePageCallback:this.changePage,pager:this.state.pager,offset:this.state.offset,ref:this.resultsListChildRef,useMobile:this.state.useMobile,useTabletLarge:this.state.useTabletLarge,pagesToDisplay:this.state.pagesToDisplay,pagesToDisplayMobile:this.state.pagesToDisplayMobile,pagesToDisplayTablet:this.state.pagesToDisplayTablet,pageSize:this.state.maxLocations,pagerStateHandlerCallback:this.pagerStateHandler,innerRef:this.mapRef,isFilterBarSticky:this.state.isFilterBarSticky,isMapNearFooter:this.state.isMapNearFooter,stickyHeight:this.state.stickyHeight})),React.createElement("div",{className:"row justify-content-end grid-container",id:"location-pagination-container"},React.createElement("div",{className:"col-md-6"},React.createElement(c.default,{currentPage:this.state.page,totalResults:this.state.recordCount,changePageCallback:this.changePage,pager:this.state.pager,useMobile:this.state.useMobile,useTabletLarge:this.state.useTabletLarge,pagesToDisplay:this.state.pagesToDisplay,pagesToDisplayMobile:this.state.pagesToDisplayMobile,pagesToDisplayTablet:this.state.pagesToDisplayTablet,pageSize:this.state.maxLocations,pagerStateHandlerCallback:this.pagerStateHandler})))))}}]),t}();t.Z=p},4590:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(1751))&&n.__esModule?n:{default:n},i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.searchFormSubmitBtn=React.createRef(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"removeFocus",value:function(){this.searchFormSubmitBtn.current.blur()}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"locations-search-control section-container"},React.createElement("div",{className:"asc-search-box-container row"},React.createElement("div",{className:"asc-search-box"},React.createElement("div",{className:"asc-input"},React.createElement("div",{className:"asc-search-row form-row"},""===this.props.stateCode&&React.createElement("div",{className:"asc-search-col"},React.createElement("label",{for:"falLocationTypeahead"},"FIND BY LOCATION "),React.createElement(s.default,{defaultLocation:this.props.location,onSubmitCallback:this.props.onLocationChangeCallback,performSearchSC:this.props.onSubmitCallback,inputId:"falLocationTypeahead"})),React.createElement("div",{className:"asc-search-col"},React.createElement("label",{for:"falLocationName"},"FIND BY FACILITY NAME ",React.createElement("span",null,"(optional)")),React.createElement("div",{className:"input-reset-container"},React.createElement("input",{type:"text",className:"form-control",id:"falLocationName",placeholder:"Facility Name",value:this.props.facilityName,onChange:this.props.onFacilityNameChangeCallback}))),React.createElement("div",{className:"asc-search-col-button"},React.createElement("div",{className:"button-primary"},React.createElement("input",{type:"submit",value:"Search",onClick:this.props.onSubmitCallback,onMouseUp:function(){return e.removeFocus()},ref:this.searchFormSubmitBtn}))))))))}}]),t}();t.default=i},7281:(e,t,a)=>{var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(1751))&&n.__esModule?n:{default:n},i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={defaultLocation:"undefined"!=typeof window?document.cookie.replace(/(?:(?:^|.*;\s*)location\s*\=\s*([^;]*).*$)|^.*$/,"$1"):""},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"render",value:function(){return React.createElement("form",{action:"/locations",class:"location-form",method:"get",novalidate:"novalidate",autocomplete:"off"},React.createElement("div",{className:"locations-search-control section-container"},React.createElement("div",{className:"asc-search-box-container row"},React.createElement("div",{className:"asc-search-box"},React.createElement("div",{className:"asc-input"},React.createElement("div",{className:"asc-search-row form-row"},React.createElement("div",{className:"asc-search-col"},React.createElement("label",{for:"falLocationTypeahead"},"FIND BY LOCATION "),React.createElement(s.default,{defaultLocation:this.state.defaultLocation,onSubmitCallback:function(){},inputId:"falLocationTypeahead",fieldName:"location",allowEnter:!0})),React.createElement("div",{className:"asc-search-col"},React.createElement("label",{for:"falLocationName"},"FIND BY FACILITY NAME ",React.createElement("span",null,"(optional)")),React.createElement("input",{name:"facility",type:"text",className:"form-control",id:"falLocationName",placeholder:"Facility Name"})),React.createElement("div",{className:"asc-search-col"},React.createElement("label",{for:"falLocationName"},"LOCATION TYPE: "),React.createElement("div",{className:"locations-search-control-select"},React.createElement("select",{name:"filter",className:"asc-search-select"},this.props.data.LocationTypeOptions.map((function(e){return React.createElement("option",{value:e.Value?e.Value:""},e.DisplayName?e.DisplayName:"All Location Types")}))))),React.createElement("div",{className:"asc-search-col-button asc-search-expanded-button"},React.createElement("div",{className:"button-primary"},React.createElement("button",{type:"submit",value:"Search"},React.createElement("svg",{id:"icon-chevron-right",viewBox:"0 0 10 17"},React.createElement("path",{d:"M.41 1.597L2.318-.41l8.09 8.5-8.09 8.5-1.91-2.006L6.623 8.09z"})))))))))))}}]),t}();t.Z=i},8854:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.applyFacet=a.props.applyFilterCallback,a.state={distanceInputWidth:a.props.defaultDistanceWidth},a.calculateInitialWidth=a.calculateInitialWidth.bind(a),a.selectInputRef=React.createRef(),a.hiddenSelectInputRef=React.createRef(),a.hiddenOptionInputRef=React.createRef(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidUpdate",value:function(e){this.props.displayMobileFilters!==e.displayMobileFilters&&this.props.displayMobileFilters&&this.calculateInitialWidth()}},{key:"componentDidMount",value:function(){var e=this,t=setTimeout((function(){e.calculateInitialWidth()}),200);return function(){return clearTimeout(t)}}},{key:"calculateInitialWidth",value:function(){var e=this.hiddenSelectInputRef.current.offsetWidth,t="distance"==this.props.filterName?"5500"==this.props.selectedValue?70:50:15;e>0&&this.setState({distanceInputWidth:e+t})}},{key:"handleDistanceWidthChange",value:function(e){var t=this.selectInputRef.current.selectedIndex,a=this.selectInputRef.current.childNodes[t];this.hiddenOptionInputRef.current.innerHTML=a.innerText,this.setState({distanceInputWidth:this.hiddenSelectInputRef.current.offsetWidth+15})}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"asc-search-filter"},React.createElement("div",{className:"label-select "},React.createElement("label",{className:"asc-search-label-select",htmlFor:this.props.filterName},this.props.filterLabel),React.createElement("select",{name:this.props.filterName,className:"asc-search-select",onChange:function(t){e.applyFacet(t),e.handleDistanceWidthChange(t)},style:{width:this.state.distanceInputWidth},value:this.props.selectedValue,ref:this.selectInputRef},this.props.filterOptions.map((function(t){return React.createElement("option",{value:t.Value?t.Value:e.props.allDisplayName,key:t.Value},t.DisplayName?t.DisplayName:e.props.allDisplayName)}))),React.createElement("div",{className:"selectedOptionHiddenWrapper"},React.createElement("select",{ref:this.hiddenSelectInputRef,className:"selectedOptionHidden",style:{visibility:"hidden"},"aria-hidden":"true"},React.createElement("option",{ref:this.hiddenOptionInputRef},this.props.selectedValue?this.props.selectedValue:this.props.allDisplayName)))))}}]),t}();t.default=n},5685:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.changePage=a.props.changePageCallback,a.pagerStateHandler=a.props.pagerStateHandlerCallback,a.calcPageBreakpoint=a.calcPageBreakpoint.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidUpdate",value:function(e){if(this.props.totalResults!==e.totalResults||this.props.useMobile!==e.useMobile||this.props.useTabletLarge!==e.useTabletLarge){var t=this.getPager(this.props.totalResults,this.props.currentPage);this.pagerStateHandler(t)}}},{key:"setPage",value:function(e){var t=this.props.totalResults,a=(this.props.pageSize,this.props.pager);e<1||e>a.totalPages||(a=this.getPager(t,e),this.pagerStateHandler(a),this.changePage(e))}},{key:"calcPageBreakpoint",value:function(){return this.props.useMobile?this.props.pagesToDisplayMobile:this.props.useTabletLarge?this.props.pagesToDisplayTablet:this.props.pagesToDisplay}},{key:"getPager",value:function(e,t){var a,n,r=this.calcPageBreakpoint(),s=this.props.pageSize,i=Math.ceil(e/s),o=Math.ceil(r/2)+1,l=Math.ceil((r-1)/2),c=(r-1)%2?l-1:l;i<=r?(a=1,n=i):t<=o?(a=1,n=r):t+l>=i?(a=this.props.useMobile?i-(s-6):this.props.useTabletLarge?i-(s-4):i-(s-1),n=i):(a=t-c,n=t+l);var u=(t-1)*s,p=Math.min(u+s-1,e-1),d=Array.from(Array(n+1-a).keys()).map((function(e){return a+e}));return{currentPage:t,pageSize:s,totalPages:i,startPage:a,endPage:n,startIndex:u,endIndex:p,pages:d}}},{key:"render",value:function(){var e=this,t=this.props.pager;return!t||!t.pages||t.pages.length<=1?null:React.createElement("div",{className:(this.props.topMobilePagination?"mobile d-flex justify-content-between":"")+" asc-search-pagination"},this.props.topMobilePagination?React.createElement(React.Fragment,null,React.createElement("div",{className:"results-count"},"Showing ",this.props.offset+1," - ",this.props.results.length+this.props.offset," ",React.createElement("span",null,"of ",this.props.totalResults)),React.createElement("div",null,React.createElement("a",{className:1===t.currentPage?"prev disabled":"prev",onClick:function(){return e.setPage(t.currentPage-1)},"aria-disabled":1===t.currentPage?"true":"false"},React.createElement("i",{className:"fa fa-angle-left","aria-hidden":"true"})),React.createElement("a",{className:t.currentPage===t.totalPages?"next disabled":"next",onClick:function(){return e.setPage(t.currentPage+1)},"aria-disabled":t.currentPage===t.totalPages?"true":"false"},React.createElement("i",{className:"fa fa-angle-right","aria-hidden":"true"})))):React.createElement(React.Fragment,null,React.createElement("a",{className:1===t.currentPage?"prev disabled":"prev",onClick:function(){return e.setPage(t.currentPage-1)},"aria-disabled":1===t.currentPage?"true":"false"},React.createElement("i",{className:"fa fa-angle-left","aria-hidden":"true"})),React.createElement("ul",null,t.pages.map((function(a,n){return t.currentPage===a?React.createElement("li",null,React.createElement("span",null,a)):React.createElement("li",{key:n},React.createElement("a",{onClick:function(){return e.setPage(a)}},React.createElement("span",null,a)))}))),React.createElement("a",{className:t.currentPage===t.totalPages?"next disabled":"next",onClick:function(){return e.setPage(t.currentPage+1)},"aria-disabled":t.currentPage===t.totalPages?"true":"false"},React.createElement("i",{className:"fa fa-angle-right","aria-hidden":"true"}))))}}]),t}();t.default=n},6575:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(7793))&&n.__esModule?n:{default:n},i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={locationDirectionsUrl:"https://maps.google.com/maps?daddr="},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,null,[{key:"FormatPhoneNumberForTelURI",value:function(e){return e?"+1-"+e.replace(/\D/g,""):null}}]),r(t,[{key:"getAddress",value:function(){return this.props.item.Data.Location.Address.Street+" "+this.props.item.Data.Location.Address.City+" "+this.props.item.Data.Location.Address.StateAbbreviation+" "+this.props.item.Data.Location.Address.Zip}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"asc-search-result"},React.createElement("div",{className:"asc-search-result-row "+(this.props.highlightItemIndex===this.props.index?"active":""),onMouseEnter:function(){return e.props.onLocationItemHover(!0,e.props.index)},onMouseLeave:function(){return e.props.onLocationItemHover(!1)}},React.createElement("div",{className:"asc-search-result-pin-section"},React.createElement("div",{className:"asc-search-result-pin"},React.createElement("svg",{className:"asc-search-result-pin-icon",focusable:"false","aria-hidden":"true",viewBox:"0 0 22.7 30.5",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M11.3 30.5L1.7 17.4C.7 15.7 0 13.6 0 11.3 0 5.1 5.1 0 11.3 0s11.3 5.1 11.3 11.3c0 2.3-.7 4.4-1.8 6.1l-9.5 13.1z"})),React.createElement("span",{className:"asc-search-result-pin-number"},null!==this.props.item?this.props.pinNumber:""))),React.createElement("div",{className:"asc-search-result-contact"},null!==this.props.item.Data.Distance&&React.createElement("p",{className:"asc-search-result-distance"},this.props.item.Data.Distance.toFixed(2)," miles from ",this.props.location),React.createElement("h2",{className:"asc-search-result-name"},React.createElement("a",{href:""+this.props.item.Data.Location.Url,target:"_blank"},this.props.item.Data.Location.DisplayName)),React.createElement("h3",{className:"asc-search-result-services"},this.props.item.Data.Location.LocationTypeTags.join(" | ")),React.createElement("div",{className:"asc-search-result-details"},React.createElement("div",{className:"asc-search-result-address"},React.createElement("h3",null,"Address"),React.createElement("p",null,React.createElement("a",{href:""+this.state.locationDirectionsUrl+this.getAddress(),target:"_blank"},this.props.item.Data.Location.Address.Street,React.createElement("br",null),this.props.item.Data.Location.Address.City,", ",this.props.item.Data.Location.Address.StateAbbreviation," ",this.props.item.Data.Location.Address.Zip," "))),React.createElement("div",{className:"asc-search-result-phone"},React.createElement(React.Fragment,null,React.createElement("h3",null,"Phone"),React.createElement("p",null,React.createElement("a",{href:"tel:"+t.FormatPhoneNumberForTelURI(this.props.item.Data.Location.PhoneNumber)},this.props.item.Data.Location.PhoneNumber))))),this.props.item.Data.Location.HasOnlineScheduling&&React.createElement(s.default,{options:this.props.item.Data.Location.SchedulingOptions,locationDisplayName:this.props.item.Data.Location.DisplayName,defaultAppointmentPhone:this.props.item.Data.Location.AppointmentPhoneNumber,detailUrl:""+this.props.item.Data.Location.Url,locationId:this.props.item.Data.Location.Id}))))}}]),t}();t.default=i},1930:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=o(a(9580)),s=o(a(5685)),i=o(a(6575));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={highlightItemIndex:null,highlightItemHoverIndex:null,mapContainerWidth:0,selectedPin:null},a.scrollLocationToTop=a.props.scrollLocationToTop,a.changePage=a.props.changePageCallback,a.mapWidthCalc=a.mapWidthCalc.bind(a),a.onLocationClick=a.onLocationClick.bind(a),a.onLocationItemHover=a.onLocationItemHover.bind(a),a.onMarkerHover=a.onMarkerHover.bind(a),a.scrollToSelectedLocation=a.scrollToSelectedLocation.bind(a),a.resultsListRef=React.createRef(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.mapWidthCalc,{passive:!0}),"undefined"!=typeof hmp_instance&&hmp_instance.initialize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleScroll)}},{key:"mapWidthCalc",value:function(){if(this.mapDiv&&this.props.results.length){var e=this.mapDiv.clientWidth-24;this.setState({mapContainerWidth:e})}}},{key:"onLocationClick",value:function(e){this.setState({highlightItemIndex:e}),this.props.useMobile||this.scrollToSelectedLocation()}},{key:"onMarkerHover",value:function(e){e?this.setState({highlightItemHoverIndex:e}):this.setState({highlightItemHoverIndex:null})}},{key:"onLocationItemHover",value:function(e,t){e?this.setState({selectedPin:t-this.props.offset}):this.setState({selectedPin:null})}},{key:"scrollToSelectedLocation",value:function(){var e=document.getElementsByClassName("location_active")[0].getBoundingClientRect().top+window.scrollY;window.scroll({top:e,behavior:"smooth"})}},{key:"render",value:function(){var e=this;return this.props.results&&this.props.results.length?React.createElement("div",{className:"asc-search-results row no-gutters"},React.createElement("div",{className:"col-md-6 order-first asc-search-results-map-col",ref:function(t){e.mapDiv=t}},React.createElement("div",{className:"sticky-wrapper "+(this.props.isFilterBarSticky?" sticky-map":"")+"  "+(!this.props.useMobile&&this.props.isMapNearFooter?"map-near-footer-position":""),style:{top:this.props.useMobile||this.props.isMapNearFooter?"":this.props.stickyHeight,width:this.props.isFilterBarSticky&&!this.props.useMobile?this.state.mapContainerWidth:"100%"},ref:this.props.innerRef},React.createElement(r.default,{locations:this.props.mapPins,onLocationClickCallback:this.onLocationClick,useLetters:this.props.useLetters,overlapLevel:.0023,featureToggles:this.props.featureToggles,marketClusteringImageUrl:this.props.marketClusteringImageUrl,marketClusteringJSUrl:this.props.marketClusteringJSUrl,selectedPin:this.state.selectedPin,onMarkerHoverCallback:this.onMarkerHover}))),React.createElement("div",{className:"locations-search-results-count mobile"},React.createElement(s.default,{currentPage:this.props.currentPage,totalResults:this.props.totalResults,changePageCallback:this.props.changePageCallback,pager:this.props.pager,useMobile:this.props.useMobile,useTabletLarge:this.props.useTabletLarge,pagesToDisplay:this.props.pagesToDisplay,pagesToDisplayMobile:this.props.pagesToDisplayMobile,pagesToDisplayTablet:this.props.pagesToDisplayTablet,pageSize:this.props.pageSize,topMobilePagination:!0,offset:this.props.offset,results:this.props.results,pagerStateHandlerCallback:this.props.pagerStateHandlerCallback})),React.createElement("div",{className:"col-md-6 asc-search-results-content-col"},React.createElement("div",{ref:this.resultsListRef,className:"results-list-ref"}," "),React.createElement("ol",{className:"asc-search-results-list"},this.props.results.map((function(t,a){return React.createElement("li",{className:"asc-search-results-item "+(e.state.highlightItemIndex&&e.state.highlightItemIndex.GmbCode===t.Data.Location.GmbCode?"location_active":"")+" "+(e.state.highlightItemHoverIndex&&e.state.highlightItemHoverIndex.GmbCode===t.Data.Location.GmbCode?"location_hover_active":""),key:t.Data.Location.GmbCode},React.createElement(i.default,{pinNumber:a+1+(e.props.currentPage>0?e.props.currentPage-1:0)*e.props.pageSize,item:t,index:a+e.props.offset,highlightItemIndex:e.state.highlightItemIndex,locationType:e.props.locationType,location:e.props.location,onLocationItemHover:e.onLocationItemHover}))}))))):React.createElement("div",{className:"asc-search-results"},React.createElement("h2",{className:"asc-search-no-results"},"Sorry, we couldn't find any locations to match your search. Please expand your radius or search by another location."))}}]),t}();t.default=l},5248:(e,t)=>{var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.renderMap=a.renderMap.bind(a),a.addMarker=a.addMarker.bind(a),a.showInfoWindow=a.showInfoWindow.bind(a),a.state={markers:[]},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidMount",value:function(){google&&this.renderMap()}},{key:"addMarker",value:function(e,t){var a=this,n=new google.maps.Marker({position:{lat:e.Lat,lng:e.Lon},icon:{path:"M11.3 30.5L1.7 17.4C.7 15.7 0 13.6 0 11.3 0 5.1 5.1 0 11.3 0s11.3 5.1 11.3 11.3c0 2.3-.7 4.4-1.8 6.1l-9.5 13.1z",fillColor:"#057262",fillOpacity:1,anchor:new google.maps.Point(12,34),strokeWeight:1,scale:1,strokeColor:"#f2f2f2",labelOrigin:new google.maps.Point(11,12)},label:{text:""+(t+1),color:"white",fontFamily:"sans-serif",fontSize:"12px"},title:e.LocationName,map:this.map}),r=new google.maps.InfoWindow({content:'<div id="content">'+e.LocationName+"</div>"});return n.addListener("click",(function(){a.showInfoWindow(t)})),{index:t,location:e,marker:n,infoWindow:r}}},{key:"showInfoWindow",value:function(e){var t=this;this.props.onLocationClick(e),this.state.markers.map((function(a){a.index!==e?a.infoWindow.close():a.infoWindow.open(t.map,a.marker)}))}},{key:"renderMap",value:function(){var e=this;if(this.props.center){this.map=new google.maps.Map(this.refs.map,{center:{lat:this.props.center.lat(),lng:this.props.center.lng()},zoom:8,scrollwheel:!1,disableDoubleClickZoom:!1,streetViewControl:!1,fullscreenControl:!1,streetViewControlOptions:!1,mapTypeControl:!1,mapTypeId:"roadmap",styles:[{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"road.highway",stylers:[{color:"#ffffff"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#4192ee"}]}]});var t=this.props.locations.map((function(t,a){return e.addMarker(t,a)}));this.setState({markers:t})}}},{key:"render",value:function(){return React.createElement("div",{className:"asc-search-results-map-container"},"MAP!",React.createElement("div",{className:"asc-search-results-map",ref:"map",style:{width:"100%",height:"500px"}}))}}]),t}();t.Z=n},7793:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.showModal=a.showModal.bind(a),a.generateMainButton=a.generateMainButton.bind(a),a.inQuickerExists=a.inQuickerExists.bind(a),a.generateOptions=a.generateOptions.bind(a),a.generateOption=a.generateOption.bind(a),a.generateOptionTabs=a.generateOptionTabs.bind(a),a.changeTab=a.changeTab.bind(a),a.state={activeTab:0,options:a.props.options||(a.props.data?a.props.data.Options:[]),defaultAppointmentPhone:a.props.defaultAppointmentPhone||(a.props.data?a.props.data.DefaultAppointmentPhone:""),detailUrl:a.props.detailUrl||(a.props.data?a.props.data.DetailUrl:""),locationDisplayName:a.props.locationDisplayName||(a.props.data?a.props.data.LocationDisplayName:""),locationId:a.props.locationId||(a.props.data?a.props.data.LocationId:"")},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"showModal",value:function(){jQuery("#"+this.state.locationId).modal({show:!0})}},{key:"inQuickerExists",value:function(){return this.state.options.forEach((function(e,t){if(null!==e&&e.InquickerId)return!0})),!1}},{key:"changeTab",value:function(e){this.setState({activeTab:e})}},{key:"generateMainButton",value:function(){return this.state.options.length>1||this.inQuickerExists()?React.createElement("div",null,this.state.defaultAppointmentPhone.length>0&&React.createElement("a",{href:"tel:"+this.state.defaultAppointmentPhone},this.state.defaultAppointmentPhone),React.createElement("div",{className:"appointment-modal-btn button-primary "},React.createElement("a",{className:"small",onClick:this.showModal},"Schedule Appointment Online"))):this.state.options[0]&&this.state.options[0].AppointmentLink?React.createElement("div",null,this.state.defaultAppointmentPhone.length>0&&React.createElement("a",{href:"tel:"+this.state.defaultAppointmentPhone},this.state.defaultAppointmentPhone),React.createElement("div",{className:"button-primary "},React.createElement("a",{className:"small",href:this.state.options[0].AppointmentLink},"Schedule Appointment Online"))):this.state.detailUrl?React.createElement("div",null,this.state.defaultAppointmentPhone.length>0&&React.createElement("a",{href:"tel:"+this.state.defaultAppointmentPhone},this.state.defaultAppointmentPhone),React.createElement("div",{className:"button-secondary "},React.createElement("a",{className:"small",href:this.state.detailUrl},"Schedule Appointment"))):void 0}},{key:"generateOption",value:function(e,t){return""===e.AppointmentLink&&""!==e.AppointmentPhoneNumber?React.createElement("div",{"aria-hidden":this.state.activeTab==t?"false":"true",className:"appointment-options "},React.createElement("div",{className:"other-content-container"},React.createElement("div",{className:"other-content"},React.createElement("p",null,"For questions about care types and providers, or to schedule supplementary appointments (e.g., lab tests, mammograms), please call us."),React.createElement("a",{href:"tel:"+e.AppointmentPhoneNumber},"Call ",e.AppointmentPhoneNumber)),React.createElement("div",{className:"other-content"},React.createElement("p",null,e.DoctorSearchText),React.createElement("a",{href:"/doctors",className:"button-primary"},"Find a Doctor")))):""!==e.InquickerId?React.createElement("div",{"aria-hidden":this.state.activeTab==t?"false":"true",className:"appointment-options"},React.createElement("div",{className:"other-content-container other-content-container-times"},React.createElement("div",{className:"appointment-select-container"},"Select Day and Time",React.createElement("a",{className:"inquicker-hmp appointment-options-link","data-schedule-id":e.InquickerId,href:e.AppointmentLink},e.AppointmentType," - Schedule")),""!==e.AppointmentPhoneNumber&&React.createElement("span",{className:"call-text"},"call",React.createElement("a",{href:"tel:"+e.AppointmentPhoneNumber}," ",e.AppointmentPhoneNumber)))):"Other"===e.AppointmentType?React.createElement("div",{"aria-hidden":this.state.activeTab==t?"false":"true",className:"appointment-options other-appointment"},React.createElement("div",{className:"other-content-container"},React.createElement("div",{className:"other-content"},React.createElement("p",null,React.createElement("br",null)),React.createElement("a",{href:e.AppointmentLink,className:"button-primary"},"Request Appointment")),React.createElement("div",{className:"other-content"},React.createElement("p",null,e.DoctorSearchText),React.createElement("a",{href:"/doctors",className:"button-primary"},"Find a Doctor")))):void 0}},{key:"generateOptions",value:function(){var e=this,t=[];return this.state.options.forEach((function(a,n){null!==a&&t.push(e.generateOption(a,n+1))})),t}},{key:"generateOptionTabs",value:function(){var e=this,t=[],a=this.state.options;for(var n in a)a[n].AppointmentType&&"other"==a[n].AppointmentType.toLowerCase()&&a.push(a.splice(n,1)[0]);return this.state.options.forEach((function(a,n){null!==a&&a.AppointmentType&&(""!==a.AppointmentType&&""!==a.AppointmentPhoneNumber||""!==a.AppointmentLink&&"other"===a.AppointmentType.toLowerCase()||""!==a.InquickerId&&""!==a.AppointmentLink)&&t.push(React.createElement("button",{onClick:function(){return e.changeTab(n+1)},className:"appointment-tab button-secondary "+(e.state.activeTab==n+1?"active":""),"aria-haspopup":"true","data-controls":a.AppointmentType.replace(" ","-").toLowerCase()+"-appointment",tabindex:"0"},a.AppointmentType)),null!==a&&""===a.InquickerId&&a.AppointmentType&&"other"!==a.AppointmentType.toLowerCase()&&""!==a.AppointmentLink&&t.push(React.createElement("a",{href:a.AppointmentLink,target:"_blank",className:"appointment-tab button-secondary",tabindex:"0"},a.AppointmentType))})),t}},{key:"render",value:function(){return React.createElement("div",null,this.generateMainButton(),this.state.options&&(this.state.options.length>1||this.inQuickerExists())&&React.createElement("div",{id:this.state.locationId,className:"modal fade",tabindex:"-1",role:"dialog"},React.createElement("div",{className:"modal-dialog modal-dialog-centered modal-lg",role:"document"},React.createElement("div",{className:"modal-content"},React.createElement("div",{className:"modal-header"},React.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},React.createElement("span",{"aria-hidden":"true"},"×"))),React.createElement("div",{className:"modal-body"},React.createElement("h3",{className:"eyebrow"},"Book an Appointment"),React.createElement("h4",{className:"heading-section"},this.state.locationDisplayName),React.createElement("p",{className:"body-sanserif"},"What type of appointment would you like to book?"),React.createElement("div",{className:"appointment-type-tabs"},this.generateOptionTabs()),React.createElement("div",null,this.generateOptions()))))))}}]),t}();t.default=n},8329:(e,t,a)=>{var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),i=h(a(9433)),o=h(a(9915)),l=h(a(2332)),c=h(a(8973)),u=h(a(8628)),p=h(a(5668)),d=h(a(2162));function h(e){return e&&e.__esModule?e:{default:e}}function f(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function m(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.performSearch=a.performSearch.bind(a),a.buildQueryAndSubmit=a.buildQueryAndSubmit.bind(a),a.getPin=a.getPin.bind(a),a.nextPage=a.nextPage.bind(a),a.updatePins=a.updatePins.bind(a),a.moveProviderToTop=a.moveProviderToTop.bind(a),a.setSchedulingOptions=a.setSchedulingOptions.bind(a),a.buildFilters=a.buildFilters.bind(a),a.handleScroll=a.handleScroll.bind(a),a.setDateRange=a.setDateRange.bind(a),a.addDaysToDate=a.addDaysToDate.bind(a),a.setLocationFromCookie=a.setLocationFromCookie.bind(a),a.stringToHash=a.stringToHash.bind(a),a.setCalendarState=a.setCalendarState.bind(a),a.createFilteredStartDate=a.createFilteredStartDate.bind(a),a.clickOutsideCalendar=a.clickOutsideCalendar.bind(a),a.generateDays=a.generateDays.bind(a),a.convertToUTC=a.convertToUTC.bind(a),a.buildUrl=a.buildUrl.bind(a),a.convertFiltersToBool=a.convertFiltersToBool.bind(a),a.getFeatureTogglesFromQueryParams=a.getFeatureTogglesFromQueryParams.bind(a);var n=(new Date).getTime();a.scrolltoMapTop=a.scrolltoMapTop.bind(a),a.buildDaysFromStartDate=a.buildDaysFromStartDate.bind(a),a.setGotoDate=a.setGotoDate.bind(a);var r=a.setSchedulingOptions(a.props.data.options.schedulingOptions,!1);return a.state={results:a.props.data.results&&a.props.data.results.results?a.props.data.results.results:[],request:a.props.data.request,pageSize:a.props.data.Settings.PageSize,page:a.props.data.results&&a.props.data.results.pagination?a.props.data.results.pagination.currentPage:1,totalPages:a.props.data.results&&a.props.data.results.pagination?a.props.data.results.pagination.totalPages:1,totalResults:a.props.data.results&&a.props.data.results.pagination?a.props.data.results.pagination.totalResults:0,searchContext:n,searchPerformed:!!(a.props.data.results&&a.props.data.results.results.length>0||a.props.data.request.geoDistanceOptions&&a.props.data.request.geoDistanceOptions.location&&null!=a.props.data.request.filters&&Object.keys(a.props.data.request.filters).some((function(e){return!["employerAffiliation"].includes(e)}))),showCalendar:!1,pagination:a.props.data.results&&a.props.data.results.pagination?a.props.data.results.pagination:[],isLoading:!1,mapPins:a.props.data.results&&a.props.data.results.results?a.updatePins(a.props.data.results.results):null,sortFields:a.props.data.Sorting?a.props.data.Sorting.Fields.filter((function(e){return 1==e.Enabled&&0==e.Select})).sort((function(e,t){return e.Order-t.Order})):null,selectFields:a.props.data.Sorting?a.props.data.Sorting.Fields.filter((function(e){return 1==e.Enabled&&1==e.Select})):null,showDaysControl:!(!a.props.data.results||!a.props.data.results.results),variableWidth:!!a.props.variableWidth&&a.props.variableWidth,highlightItemIndex:0,useMobile:!1,isFilterBarSticky:!1,isMapNearFooter:!1,appointmentTypeText:a.props.data.AppointmentTypeText,daySliderDays:r.daySliderDays,sliderReverse:!1,options:a.props.data.options,scheduleDays:r.scheduleDays,schedules:[],activeScheduleDays:r.activeScheduleDays,stickyHeight:0,providerId:a.props.data.ProviderId,pagesToDisplayMobile:a.props.data.Settings.PagesToDisplayMobile,pagesToDisplay:a.props.data.Settings.PagesToDisplay,pageSizeMobile:a.props.data.Settings.PageSizeMobile,slidesToShow:a.props.data.Settings.SlidesToShow||4,isNotValid:!1,navigator:{userAgent:"",maxTouchPoints:0},settings:a.props.data.Settings,filteredSearch:null!=a.props.data.request.filters&&Object.keys(a.props.data.request.filters).some((function(e){return!["employerAffiliation","radius","location","specialties","displayName","sortBy","appointmentType"].includes(e)})),clearFilters:a.props.data.ClearFilters,location:a.props.data.request.geoDistanceOptions?a.props.data.request.geoDistanceOptions.location:null,gotoDate:0,initialRadius:a.props.data.InitialRadius},a.stickyRef=React.createRef(),a.mapRef=React.createRef(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),s(t,[{key:"componentDidMount",value:function(){this.featureToggles=this.getFeatureTogglesFromQueryParams(),window.addEventListener("resize",this.resize.bind(this)),window.addEventListener("scroll",this.handleScroll,{passive:!0}),!this.state.request.geoDistanceOptions.location&&this.setLocationFromCookie(),this.resize(),this.setState({navigator:{userAgent:this.props.data.UserAgent,maxTouchPoints:navigator.maxTouchPoints}})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize.bind(this)),window.removeEventListener("scroll",this.handleScroll)}},{key:"getFeatureTogglesFromQueryParams",value:function(){return window.location.search.slice(1).split("&").filter((function(e){return 0==e.indexOf("feature.")})).map((function(e){return e.split("=")})).reduce((function(e,t){var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,s=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(a.push(i.value),!t||a.length!==t);n=!0);}catch(e){r=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw s}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(t.map(decodeURIComponent),2),n=a[0],s=a[1];return n=n.replace("feature.",""),r({},e,m({},n,s=s||!0))}),{})}},{key:"resize",value:function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,t=this.state.useMobile,a=e<=1024,n=this.state.page,r=this.state.totalPages;this.state.totalResults>0&&t!=a?(n=this.calculatePageSize(a),r=a?Math.ceil(this.state.totalResults/this.state.pageSizeMobile):Math.ceil(this.state.totalResults/this.state.pageSize),this.setState({useMobile:a,page:n,totalPages:r})):this.setState({useMobile:a})}},{key:"calculatePageSize",value:function(e){if(e){var t=this.state.page*this.state.pageSize,a=Math.floor(t/this.state.pageSizeMobile);return a>0?a:1}var n=this.state.page*this.state.pageSizeMobile,r=Math.floor(n/this.state.pageSize);return r>0?r:1}},{key:"setLocationFromCookie",value:function(){for(var e="location=",t=decodeURIComponent(document.cookie).split(";"),a=0;a<t.length;a++){for(var n=t[a];" "==n.charAt(0);)n=n.substring(1);0==n.indexOf(e)&&this.buildFilters("location",decodeURIComponent(n.substring(e.length,n.length)))}return null}},{key:"setGotoDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.state.daySliderDays,n=a.findIndex((function(t){return moment.utc(t).format("YYYY-MM-DD").toString().valueOf()==moment.utc(e).format("YYYY-MM-DD").toString().valueOf()}));if(n<0)this.setDateRange(e,!0);else{if(t)for(var r=this.state.slidesToShow-1;r<a.length;)n<this.state.slidesToShow?(n=0,r=a.length):n<=r&&(n=r-(this.state.slidesToShow-1),r=a.length),r+=this.state.slidesToShow;var s=a.slice(n,n+4);this.setState({gotoDate:n,activeScheduleDays:s})}}},{key:"scrollToTop",value:function(e){var t=document.getElementById("paginationScrollAnchor");e>1?t.scrollIntoView():window.scrollTo(0,0)}},{key:"updatePins",value:function(e){for(var t=this,a=[],n=1,r=this.state?this.state.settings.DirectionsLink:this.props.data.Settings.DirectionsLink,s=0;s<e.length;s++)for(var i=function(i){var o={},l=t.stringToHash(e[s].data.locations[i].location.address.street+e[s].data.locations[i].location.address.city+e[s].data.locations[i].location.address.stateAbbreviation+e[s].data.locations[i].location.address.zip);if(a&&a.some((function(e){return e.hash==l}))){var c=a.findIndex((function(e){return e.hash==l}));a[c].providerIds.push(e[s].id)}else{var u=e[s].data.locations[i].location.address.street+", "+e[s].data.locations[i].location.address.city+", "+e[s].data.locations[i].location.address.stateAbbreviation+"  "+e[s].data.locations[i].location.address.zip;o.hash=l,o.Index=n,o.Lat=e[s].data.locations[i].location.address.latitude,o.Lon=e[s].data.locations[i].location.address.longitude,o.PopupLabel=e[s].data.locations[i].location.displayName?e[s].data.locations[i].location.displayName:"",o.mapStreet=e[s].data.locations[i].location.address.street,o.mapCity=e[s].data.locations[i].location.address.city,o.mapState=e[s].data.locations[i].location.address.state,o.mapZip=e[s].data.locations[i].location.address.zip,o.mapUrl=""+r+u+"&amp;saddr=My%20Location",o.providerIds=[e[s].id],o.locationId=e[s].data.locations[i].location.id,a.push(o),n++}},o=0;o<e[s].data.locations.length;o++)i(o);return a}},{key:"getPin",value:function(e){var t=this.stringToHash(e);return this.state.mapPins.find((function(e){return e.hash===t}))}},{key:"stringToHash",value:function(e){var t=0;if(0==e.length)return t;for(var a=0;a<e.length;a++)t=(t<<5)-t+e.charCodeAt(a),t&=t;return t}},{key:"buildQueryAndSubmit",value:function(e){e.preventDefault();var t=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};!this.state.clearFilters&&this.props.data.request.filters&&this.props.data.request.filters.specialties&&(t.filters.specialties=this.props.data.request.filters.specialties),t.geoDistanceOptions.location&&(this.props.data.request.filters.employerAffiliation&&!this.state.request.filters.providerId&&(t.filters.employerAffiliation=this.props.data.request.filters.employerAffiliation),this.props.data.request.geoDistanceOptions.radius&&!this.state.request.filters.providerId&&(t.geoDistanceOptions.radius=this.props.data.request.geoDistanceOptions.radius),this.performSearch(t,!0))}},{key:"buildArrayQueries",value:function(e){var t="",a="";return Object.keys(e).forEach((function(n){null!=e[n]&&Array.isArray(e[n])&&e[n].length>1?(a=e[n].map((function(e,t){return e.length>0?"&"+n+t+"="+encodeURIComponent(e):""})),t+=a):(a=null!=e[n]&&e[n].length>0&&Array.isArray(e[n])?"&"+n+"="+encodeURIComponent(e[n][0]):"number"==typeof e[n]?"&"+n+"="+e[n].toString():null!=e[n]&&e[n].length>0?"&"+n+"="+encodeURIComponent(e[n]):"",t+=a)})),t}},{key:"buildUrl",value:function(e,t){var a=e?JSON.parse(JSON.stringify(e)):{},n="";return a&&(n="?page="+encodeURIComponent(a.page)+"&sortBy="+encodeURIComponent(a.sortBy),n+=t?"&providerId="+a.filters.providerId:"",n+=this.buildArrayQueries(a.scheduleOptions),n+=t?"":this.buildArrayQueries(a.geoDistanceOptions),n+=t?"":this.buildArrayQueries(a.filters)),n}},{key:"formatDatesForApi",value:function(e){if(e.scheduleOptions){var t=moment.utc().format("YYYY-MM-DD"),a=e.scheduleOptions.startDate?moment.utc(this.createFilteredStartDate(e.scheduleOptions.startDate)):t;return e.scheduleOptions.startDate=a.format("YYYY-MM-DD").toString(),e.scheduleOptions.endDate=a.add(1,"month").format("YYYY-MM-DD").toString(),e}return e}},{key:"createFilteredStartDate",value:function(e){var t=new Date(e),a=this.props.scheduleDays&&8!=this.props.scheduleDays[0]?Math.min.apply(Math,f(this.props.scheduleDays))+1:null;return a?t.setDate(t.getDate()+(a+7-t.getDay())%7):t}},{key:"buildDaysFromStartDate",value:function(e,t){for(var a=0!=this.state.gotoDate?moment.utc(e).add(this.state.gotoDate,"days"):e,n=[],r=0;r<t;r++)n.push(moment.utc(a).add(r,"days").format("YYYY-MM-DD").toString());return n}},{key:"performSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.state.request.geoDistanceOptions.location?this.setState({isLoading:!0},(function(){var n=this,r=this.state.useMobile?this.state.pageSizeMobile:this.state.pageSize,s=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{},i=e?this.formatDatesForApi(e):this.formatDatesForApi(s),o=!!(this.state.providerId||i.filters&&i.filters.providerId),l=!1;i.pageSize=r,t&&(i.page=1);var c=a||this.buildDaysFromStartDate(i.scheduleOptions.startDate,this.props.data.Settings.SlidesToShow);i.geoDistanceOptions.location!=this.state.location?(i.filters.updateSearch=[!0],l=!0):delete i.filters.updateSearch,jQuery.ajax({type:"POST",url:"/api/v2/providers/search",data:JSON.stringify(i),async:!0,success:function(e){var t=e.response?e.response:null,a=e.settings?e.settings:n.props.data.Settings,s=t.geoDistanceOptions?t.geoDistanceOptions:i.geoDistanceOptions,u=t?t.results:null,p=s.radius;i.geoDistanceOptions=s;var d=n.buildSortFields(a.EnableSort,a.Sort,i),h=n.buildSelectFields(i,p),f={isLoading:!1,searchPerformed:!0,results:u,request:i||n.props.data.request,pagination:u&&u.pagination?u.pagination:[],facets:u&&u.facets?u.facets:[],page:i.page,totalPages:t&&t.pagination?Math.ceil(t.pagination.totalResults/r):0,totalResults:t&&t.pagination?t.pagination.totalResults:1,searchContext:(new Date).getTime(),marketId:e.marketId,mapPins:u?n.updatePins(u):null,showDaysControl:!!u,highlightItemIndex:0,settings:e.settings,activeScheduleDays:c,isNotValid:!1,clearFilters:!0,pagesToDisplayMobile:e.settings.PagesToDisplayMobile,pagesToDisplay:a?a.PagesToDisplay:10,pageSizeMobile:a?a.PageSizeMobile:5,slidesToShow:a?e.settings.SlidesToShow:4,pageSize:a?a.PageSize:10,location:s.location,sortFields:d,selectFields:h,initialRadius:l&&h[0]?h[0].SelectItems.find((function(e){return e.Enabled})).Value:n.state.initialRadius};return n.setState(f,(function(){var t=i||n.props.data.request,a=window.location.href.match(/[?&]scheduleDays=[^&#]*/gi);a=Array.isArray(a)?a.join(""):a;var r=e&&e.request?n.buildUrl(t,o)+"&pageType="+f.settings.PageType+"&shouldSearch=true":null;r=a?r+=a:r,window.history.pushState(r,"",r)})),n.state.useMobile&&n.scrollToTop(2),!0}.bind(this),check:!0,contentType:"application/json",dataType:"json"})})):this.setState({isNotValid:!0})}},{key:"moveProviderToTop",value:function(e,t,a){var n=this.state.results?JSON.parse(JSON.stringify(this.state.results)):{},r=n.filter((function(t){return e.includes(t.id)}));r.forEach((function(e){var a=e.data.locations,n=a.filter((function(e){return e.location.id==t})).concat(a.filter((function(e){return e.location.id!==t})));e.data.locations=n}));var s=r.concat(n.filter((function(t){return!e.includes(t.id)})));this.setState({results:s,highlightItemIndex:a})}},{key:"nextPage",value:function(e){var t=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};t.page=e,this.scrollToTop(e),this.performSearch(t)}},{key:"setDateRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=e&&moment.utc(e).diff(moment.utc(),"days")>=0||e&&r?moment(e).format("YYYY-MM-DD").toString():moment.utc().format("YYYY-MM-DD").toString(),i=moment.utc(s).add(31,"days").format("YYYY-MM-DD").toString(),o=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};o.scheduleOptions.startDate=s,o.scheduleOptions.endDate=i;var l=this.generateDays(this.state.scheduleDays,o.scheduleOptions.startDate,o.scheduleOptions.endDate),c=n?l.slice(l.length-this.state.slidesToShow,l.length):l.slice(0,this.state.slidesToShow),u=r?l.findIndex((function(e){return moment.utc(e).format("YYYY-MM-DD").toString().valueOf()==moment.utc(r).format("YYYY-MM-DD").toString().valueOf()})):-1,p=u>-1?u:n?l.length-this.state.slidesToShow:0;c=r?l.slice(u,u+this.state.slidesToShow):c,this.setState({request:o,endDate:i,daySliderDays:l,gotoDate:p,showCalendar:!1,activeScheduleDays:c,sliderReverse:!1},t?function(){a.performSearch(null,null,c)}:null)}},{key:"addDaysToDate",value:function(e,t){return new Date(e.setDate(e.getDate()+t))}},{key:"setSchedulingOptions",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=[],n=e.filter((function(e){return!0===e.checked})),r=t?window.location.href:"";r=t?r.replace(/[&?]scheduleDays=[^&#]*/gi,""):"";for(var s="",i=0;i<n.length;i++)a.push(n[i].id),8!=n[i].id&&(s+=(0==i?"":"&")+"scheduleDays="+n[i].id);var o=this.generateDays(a);t&&(r+=(r.includes("?")?"&":"?")+(""!=s?s:"scheduleDays=8"),window.history.pushState({path:r},"",r));var l=this.state?this.state.settings:this.props.data.Settings,c=l.SlidesToShow>0?l.SlidesToShow:4,u=o?o.slice(0,c):null;if(!t)return Object.create({schedulingOptions:e,scheduleDays:a,daySliderDays:o,showCalendar:!1,activeScheduleDays:u});this.setState({schedulingOptions:e,scheduleDays:a,daySliderDays:o,showCalendar:!1,activeScheduleDays:u})}},{key:"buildFilters",value:function(e,t){var a=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=["radius","location","specialties","displayName","sortBy","appointmentType"],o=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};switch(s&&(o.page=1),e){case"radius":if(o.geoDistanceOptions[e]=t,o.geoDistanceOptions.dynamicRadius=!1,t>4999){var l=this.state.sortFields.map((function(e){return"distance"===e.Name?e.Active=!0:e.Active=!1,e}));o.sortBy="distance",this.setState({sortFields:l},(function(){return a.performSearch(o)}))}else this.performSearch(o);break;case"location":delete o.filters.displayName,delete o.filters.specialties,delete o.filters.providerId,o.geoDistanceOptions[e]=t,this.setState({request:o});break;case"specialties":delete o.filters.specialties,t&&(o.filters[e]=Array.isArray(t)?[].concat(f(t)):[t]),this.setState({request:o});break;case"providerId":delete o.filters.employerAffiliation,delete o.filters.specialties,delete o.filters.providerId,t&&(o.filters[e]=Array.isArray(t)?[].concat(f(t)):[t]),this.setState({request:o});break;case"sortBy":r.preventDefault(),o.geoDistanceOptions.dynamicRadius=!1;var c=this.state.sortFields.map((function(e){return e.Name===t?e.Active=!0:e.Active=!1,e}));o.sortBy=t,this.setState({sortFields:c},(function(){return a.performSearch(o)}));break;case"appointmentType":var u=window.location.href;if(u=u.replace(/[&?]appointmentType=[^&#]*/gi,""),t){""==t?delete o.filters.appointmentType:o.filters.appointmentType=Array.isArray(t.data.id)?[].concat(f(t.data.id)):[t.data.id];var p=t.data.text;""!=t&&"undefined"!=n(t.data.id)&&(u+=(u.includes("?")?"&":"?")+"appointmentType="+t.data.id),window.history.pushState(u,"",u),this.setState({request:o,appointmentTypeText:p})}else o.filters.appointmentType=null,window.history.pushState(u,"",u),this.setState({request:o,appointmentTypeText:null});break;default:!1===t||""==t||"any"==t||void 0===t?delete o.filters[e]:o.filters[e]=Array.isArray(t)?[].concat(f(t)):[t],o.geoDistanceOptions.dynamicRadius=this.state.settings.DynamicRadius;var d=null!=o.filters&&Object.keys(o.filters).some((function(e){return!i.includes(e)||!o.filters[e]}));this.setState({request:o,filteredSearch:d},s?function(){return a.performSearch()}:null)}}},{key:"convertToUTC",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;e="string"==typeof e?new Date(e):e;var t=new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate());return new Date(t)}},{key:"generateDays",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=[],r=this.state?this.state.request:this.props.data.request,s=null!=globalThis.moment?t||(r.scheduleOptions&&r.scheduleOptions.startDate?r.scheduleOptions.startDate:globalThis.moment(t)):null,i=null!=globalThis.moment?a||(r.scheduleOptions&&r.scheduleOptions.endDate?r.scheduleOptions.endDate:globalThis.moment(a).add(31,"days")):null,o=null!=globalThis.moment?Math.abs(moment.utc(s).diff(moment.utc(i),"days")):0,l=null!=globalThis.moment?moment.utc(s).format("YYYY-MM-DD"):null,c=null!=globalThis.moment?moment.utc(i).format("YYYY-MM-DD"):null,u=0;u<o+1;u++){var p=null!=globalThis.moment?moment(l).add(u,"days"):null;(null==e||e.indexOf(8)>-1||p&&e.indexOf(p.day())>-1)&&p&&n.push(p.format("YYYY-MM-DD").toString());var d=null!=globalThis.moment?moment(p).diff(moment(c),"days"):1;d>0&&(u=o)}return n}},{key:"setCalendarState",value:function(e){e.preventDefault();var t=!this.state.showCalendar;this.setState({showCalendar:t})}},{key:"handleScroll",value:function(){if(this.state.searchPerformed){var e=window.scrollY,t=document.getElementById("stop-sticky-map").getBoundingClientRect().top,a=t+e,n=this.divApptBookingFilterRow.clientHeight||106,r=this.state.searchPerformed&&this.state.results.length?this.mapRef.current.clientHeight:0,s=a-r-20,i=document.body.classList.contains("preview"),o=void 0;this.stickyRef.current.getBoundingClientRect().bottom<0?(this.setState({isFilterBarSticky:!0}),t<=r?this.setState({isMapNearFooter:!0}):this.setState({isMapNearFooter:!1})):(this.setState({isFilterBarSticky:!1}),this.setState({isMapNearFooter:!1}));var l=s-e,c=function(){s-o<e&&(o=l)};if(!0===this.state.isFilterBarSticky&&i){var u=document.getElementById("scWebEditRibbon").clientHeight||89;o=n+u,c()}else!0===this.state.isFilterBarSticky&&(o=n,c());this.setState({stickyHeight:o})}}},{key:"scrolltoMapTop",value:function(){var e=this.stickyRef.current;this.state.isFilterBarSticky&&(this.setState({isFilterBarSticky:!1}),this.setState({isMapNearFooter:!1}),e.scrollIntoView())}},{key:"hasReachedBottom",value:function(){this.apptBookingSearchResults.current&&(this.apptBookingSearchResults.current.offsetHeight,this.apptBookingSearchResults.current.scrollTop,this.apptBookingSearchResults.current.scrollHeight)}},{key:"clickOutsideCalendar",value:function(){this.setState({showCalendar:!1})}},{key:"convertFiltersToBool",value:function(){var e=this.state.request.filters?JSON.parse(JSON.stringify(this.state.request.filters)):{};return Object.keys(e).forEach((function(t){Array.isArray(e[t])&&1==e[t].length&&"string"==typeof e[t][0]&&(e[t]="true"==e[t][0].toLowerCase()||"false"!=e[t][0].toLowerCase()&&e[t])})),e}},{key:"buildSortFields",value:function(e,t,a){var n=(this.state.sortFields?JSON.parse(JSON.stringify(this.state.sortFields)):{}).filter((function(e){return 0==e.Select})).sort((function(e,t){return e.Order-t.Order}));return n&&n.length>0&&Object.keys(n).forEach((function(r){var s=e.filter((function(e){return e.toLowerCase().replace(/ /g,"")==r.Name}));n[r].Enabled=!!s,n[r].Active=a.sortBy?a.sortBy.toLowerCase()==n[r].Name.toLowerCase():n[r].Name.toLowerCase()==t})),n}},{key:"buildSelectFields",value:function(e,t){var a=this,n=this.state.selectFields?JSON.parse(JSON.stringify(this.state.selectFields)):{},r=e.geoDistanceOptions.dynamicRadius?t:e.geoDistanceOptions.radius,s=n.filter((function(e){return 1==e.Enabled&&1==e.Select}));if(s&&s.length>0){var i=s[0].SelectItems;Object.keys(i).forEach((function(t){i[t].Selected=i[t].Value==r,i[t].Enabled=e.geoDistanceOptions&&e.geoDistanceOptions.dynamicRadius?i[t].Value>=r:i[t].Value>=a.state.initialRadius})),s[0].SelectItems=i}return s}},{key:"render",value:function(){var e,t=this;return React.createElement("div",{className:(this.state.useMobile?"mobile":"")+" appt-booking-component"},React.createElement(o.default,{bannerTitle:this.props.data.BannerTitle,bannerSubTitle:this.props.data.BannerSubTitle,isCollapsed:this.state.searchPerformed,className:"appt-booking"}),React.createElement("div",{className:"col-12"},React.createElement(i.default,{defaultLocation:this.props.data.defaultLocation||this.props.data.DefaultLocation,buildQueryAndSubmitCallback:this.buildQueryAndSubmit,allSpecialties:this.props.data.specialties||this.props.data.Specialties,buildFiltersCallback:this.buildFilters,distanceInputWidth:this.state.request.geoDistanceOptions&&this.state.request.geoDistanceOptions.radius?7*this.state.request.geoDistanceOptions.radius.toString().length+10:65,distance:this.state.request.geoDistanceOptions.radius?this.state.request.geoDistanceOptions.radius:null,location:this.state.request.geoDistanceOptions.location?this.state.request.geoDistanceOptions.location:null,appointmentType:this.state.request.filters.appointmentType?this.state.request.filters.appointmentType:null,searchButtonLabel:this.props.data.SearchButtonLabel,locationInputLabel:this.props.data.LocationInputLabel,specialtyDoctorInputLabel:this.props.data.SpecialtyDoctorInputLabel,appointmentInputLabel:this.props.data.AppointmentInputLabel,optionalInputLabel:this.props.data.OptionalInputLabel,appointmentTypeText:this.state.appointmentTypeText,inputLabel:this.state.request.filters?this.state.request.filters.specialties?this.state.request.filters.specialties[0]:this.state.request.filters.providerId&&this.state.results.length>0?this.state.results[0].data.provider.displayName:null:null,isNotValid:this.state.isNotValid}),React.createElement(d.default,{searchContext:this.state.searchContext,setSchedulingOptionsCallback:this.setSchedulingOptions,amgToolTip:this.props.data.amgToolTip||this.props.data.AMGToolTip,buildFiltersCallback:this.buildFilters,options:this.state.options,filters:this.convertFiltersToBool(),results:this.state.results,filteredSearch:this.state.filteredSearch,filtersLabel:this.props.data.FiltersLabel,employerAffiliationLabel:this.props.data.EmployerAffiliationLabel,languageFilterLabel:this.props.data.LanguageFilterLabel,genderFilterLabel:this.props.data.GenderFilterLabel,schedulingOptionsLabel:this.props.data.SchedulingOptionsLabel,hideFiltersLabel:this.props.data.HideFiltersLabel,showMoreFiltersLabel:this.props.data.ShowMoreFiltersLabel,hasProfilePictureFilterLabel:this.props.data.HasProfilePictureFilterLabel,hasOnlineSchedulingFilterLabel:this.props.data.HasOnlineSchedulingFilterLabel,filterMoreLabel:this.props.data.FilterMoreLabel}),React.createElement("span",{ref:this.stickyRef}),React.createElement("div",{className:(this.state.isFilterBarSticky?" sticky":"")+" appt-booking-filter-row row",ref:function(e){t.divApptBookingFilterRow=e}},React.createElement("div",{className:"section-container large"},React.createElement("div",{className:(this.state.results&&this.state.results.length>0?"":"d-none")+" row appt-booking-row"},React.createElement("div",{className:"appt-booking-sort-control"},React.createElement("div",{className:"d-flex align-items-end"},React.createElement("span",{className:"results-summary"},this.state.totalResults>0?this.state.totalResults:this.state.results.length," ",this.props.data.ResultsFoundLabel)),React.createElement("div",{className:"d-flex align-items-end"},this.state.totalResults>0?React.createElement(u.default,{buildFiltersCallback:this.buildFilters,sortFields:this.state.sortFields,recordCount:this.state.totalResults,sortLabel:this.props.data.SortLabel}):null)),React.createElement(l.default,{errorMessage:"Calendar control has encountered an error"},React.createElement(c.default,{key:"AppointmentBookingDayControl-"+this.state.searchContext+"_"+this.state.scheduleDays,showDaysControl:this.state.showDaysControl,speed:this.state.settings.ScrollSpeed,slidesToScroll:this.state.settings.SlidesToScroll,slidesToShow:this.state.slidesToShow,infinite:this.state.settings.InfiniteScroll,variableWidth:this.state.variableWidth,setDateRangeCallback:this.setDateRange,startDateISO:this.state.request.scheduleOptions&&this.state.request.scheduleOptions.startDate?this.state.request.scheduleOptions.startDate:new Date(Date.parse((new Date).toLocaleDateString())),generateDaysCallback:this.generateDays,startDate:this.state.request.scheduleOptions&&this.state.request.scheduleOptions.startDate?this.state.request.scheduleOptions.startDate:new Date,showCalendar:this.state.showCalendar,clickOutsideCalendarCallback:this.clickOutsideCalendar,setCalendarStateCallback:this.setCalendarState,scheduleDays:this.state.scheduleDays,days:this.state.daySliderDays,setActiveScheduleDaysCallback:this.setActiveScheduleDays,activeScheduleDays:this.state.activeScheduleDays,sliderReverse:this.state.sliderReverse,endDate:this.state.request.scheduleOptions&&this.state.request.scheduleOptions.endDate?this.state.request.scheduleOptions.endDate:this.addDaysToDate(new Date(Date.parse((new Date).toLocaleDateString())),31),gotoDate:this.state.gotoDate,setGotoDate:this.setGotoDate,isLoading:this.props.isLoading,location:this.state.request.geoDistanceOptions.location?this.state.request.geoDistanceOptions.location:null})),React.createElement("div",{className:"appt-booking-distance-control"},React.createElement(u.default,{buildFiltersCallback:this.buildFilters,selectFields:this.state.selectFields,radius:this.state.request.geoDistanceOptions.radius,recordCount:this.state.totalResults}))))),!this.state.useMobile&&React.createElement("span",{id:"paginationScrollAnchor"}),React.createElement(p.default,(m(e={location:this.state.request.geoDistanceOptions.location,results:this.state.results,noResultsMessage:this.state.filteredSearch?this.props.data.filteredSearchNoResultsMessage||this.props.data.FilteredSearchNoResultsMessage:this.props.data.noResultsMessage||this.props.data.NoResultsMessage,profileImage:this.state.settings.ProfileImageUrl,amgIcon:this.props.data?this.props.data.AscensionMedicalGroupOverlayIconUrl:null,getPinCallback:this.getPin,mapPins:this.state.mapPins,moveProviderToTopCallback:this.moveProviderToTop,highlightItemIndex:this.state.highlightItemIndex,sortFields:this.state.sortFields,totalResults:this.state.totalResults,setDateRangeCallback:this.setDateRange,useMobile:this.state.useMobile,startDate:this.state.request.scheduleOptions.startDate,appointmentType:this.state.request.filters.appointmentType,scheduleDays:this.state.scheduleDays,activeScheduleDays:this.state.activeScheduleDays,apptSelectSpecialty:this.state.specialty?this.state.specialty:null,apptSelectProvider:this.props.provider?this.props.provider:null,apptSelectRadius:this.state.request.geoDistanceOptions.radius?this.state.request.geoDistanceOptions.radius:null,buildFiltersCallback:this.buildFilters,searchPerformed:this.state.searchPerformed,featureToggles:this.featureToggles},"buildFiltersCallback",this.buildFilters),m(e,"locationDirectionsUrl",this.state.settings.DirectionsLink),m(e,"futureDateLabel",this.props.data.FutureDateLabel),m(e,"addressLabel",this.props.data.AddressLabel),m(e,"locationPhoneLabel",this.props.data.LocationPhoneLabel),m(e,"locationHoursLabel",this.props.data.LocationHoursLabel),m(e,"marketClusteringImageUrl",this.props.data.MarketClusteringImageUrl),m(e,"marketClusteringJSUrl",this.state.settings.MarketClusteringJSUrl),m(e,"useLetters",this.state.settings.UseLetters),m(e,"providerProfileUrl",this.props.data.ProviderProfileUrl),m(e,"showMoreLabel",this.props.data.ShowMoreLabel),m(e,"showLessLabel",this.props.data.ShowLessLabel),m(e,"callForAppointmentLabel",this.props.data.CallForAppointmentLabel),m(e,"resultsFoundLabel",this.props.data.ResultsFoundLabel),m(e,"showMoreLocationsLabel",this.props.data.ShowMoreLocationsLabel),m(e,"showFewerLocationsLabel",this.props.data.ShowFewerLocationsLabel),m(e,"isLoading",this.state.isLoading),m(e,"nextPageCallback",this.nextPage),m(e,"searchResults",this.state.results),m(e,"pageSize",this.state.pageSize),m(e,"currentPage",this.state.page),m(e,"sortBy",this.state.request.sortBy),m(e,"pagination",this.state.pagination),m(e,"isFilterBarSticky",this.state.isFilterBarSticky),m(e,"isMapNearFooter",this.state.isMapNearFooter),m(e,"sortLabel",this.props.data.SortLabel),m(e,"stickyHeight",this.state.stickyHeight),m(e,"innerRef",this.mapRef),m(e,"scrolltoMapTop",this.scrolltoMapTop),m(e,"pagesToDisplayMobile",this.state.pagesToDisplayMobile),m(e,"pagesToDisplay",this.state.pagesToDisplay),m(e,"pageSizeMobile",this.state.pageSizeMobile),m(e,"totalPages",this.state.totalPages),m(e,"navigator",this.state.navigator),m(e,"setCalendarStateCallback",this.setCalendarState),m(e,"setGotoDate",this.setGotoDate),e))))}}]),t}();t.Z=b},8973:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(5039))&&n.__esModule?n:{default:n},i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateSlider=a.updateSlider.bind(a),a.getDay=a.getDay.bind(a),a.removeSlider=a.removeSlider.bind(a),a.setDateRange=a.props.setDateRangeCallback,a.setCalendarState=a.props.setCalendarStateCallback,a.resize=a.resize.bind(a),a.resizeTimeout=null,a.setDateRangeByCalendar=a.setDateRangeByCalendar.bind(a),a.getFormattedDate=a.getFormattedDate.bind(a),a.state={init:!1,isLoading:a.props.isLoading},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"componentDidMount",value:function(){var e=0!=this.props.gotoDate?this.props.gotoDate:null;this.props.days&&this.props.days.length>0&&this.updateSlider(!1,e)}},{key:"componentDidUpdate",value:function(e,t){e.location!=this.props.locaiton&&this.updateSlider(!0),this.props.gotoDate!=e.gotoDate&&(this.$el=jQuery(ReactDOM.findDOMNode(this.refs.el)),this.$el&&this.$el.slick("slickGoTo",this.props.gotoDate))}},{key:"resize",value:function(){var e=this;this.resizeTimeout=setTimeout(function(){var t=jQuery(ReactDOM.findDOMNode(e.refs.el));if(t&&t.length>0){var a=t.slick("getSlick").$slides.find('[data-date="'+e.props.activeScheduleDays[0]+'"]').parents(".slick-slide").data("slick-index"),n=parseInt(a);t.slick("slickGoTo",n)}}.bind(this),1e3)}},{key:"slideDates",value:function(e,t){var a=this;if(this.state.isLoading)return null;var n=e,r=t?this.props.days.findIndex((function(e){return e.valueOf()==n.valueOf()}))+1:this.props.days.findIndex((function(e){return e.valueOf()==n.valueOf()}))-1;if(t&&r>=this.props.days.length){var s=moment.utc(n).add(1,"days").format("YYYY-MM-DD").toString();return moment.utc(s).diff(moment.utc(),"days")>=0&&(this.removeSlider(),this.setState({isLoading:!0},(function(){return a.setDateRange(s,!0)}))),null}if(r<=0){var i=moment.utc(n).subtract(32,"days").format("YYYY-MM-DD").toString();return moment.utc(n).format("YYYY-MM-DD").toString()!=moment.utc().format("YYYY-MM-DD")&&(this.removeSlider(),this.setState({isLoading:!0},(function(){return a.setDateRange(i,!0,!0,moment.utc(n).subtract(4,"days").format("YYYY-MM-DD").toString())}))),null}var o=t?moment.utc(n).add(1,"days").format("YYYY-MM-DD").toString():moment.utc(n).diff(moment.utc(),"days")>-5?moment.utc(n).subtract(this.props.slidesToShow,"days").format("YYYY-MM-DD").toString():null;this.props.setGotoDate(o)}},{key:"updateSlider",value:function(){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.$el=jQuery(ReactDOM.findDOMNode(this.refs.el)),this.$lArrowEl=jQuery(ReactDOM.findDOMNode(this.refs.lArrowEl)),this.$rArrowEl=jQuery(ReactDOM.findDOMNode(this.refs.rArrowEl)),this.$el&&(this.state.init||(this.$el.slick({arrows:!1,infinite:this.props.infinite,speed:this.props.speed,slidesToShow:this.props.slidesToShow,slidesToScroll:this.props.slidesToScroll,variableWidth:this.props.variableWidth,initialSlide:t||(this.props.sliderReverse&&this.props.days.length-1-this.props.slidesToShow>0?this.props.days.length-1-this.props.slidesToShow:0)}),this.$rArrowEl.click((function(t){e.$el.slick("slickNext");var a=e.props.activeScheduleDays[e.props.activeScheduleDays.length-1];e.slideDates(a,!0)})),this.$lArrowEl.click((function(t){var a=e.props.activeScheduleDays[0];if(!(moment.utc(a).subtract(e.props.slidesToShow,"days").diff(moment.utc(),"days")>-e.props.slidesToShow))return null;e.$el.slick("slickPrev"),e.slideDates(a,!1)})))),this.state.init||this.setState({init:!0})}},{key:"removeSlider",value:function(){this.refs.el.classList.contains("slick-initialized")&&(this.$el=jQuery(ReactDOM.findDOMNode(this.refs.el)),this.$el&&this.$el.slick("unslick"))}},{key:"getFormattedDate",value:function(e){return globalThis.moment?globalThis.moment(e).format("MMM D").toString():null}},{key:"getDay",value:function(e){return globalThis.moment?globalThis.moment(e).format("ddd").toString():null}},{key:"setDateRangeByCalendar",value:function(e,t){var a=this;this.removeSlider(),this.setState({isLoading:!0},(function(){return a.setDateRange(e,t,!1)}))}},{key:"render",value:function(){var e=this,t=this.props.days;return React.createElement("div",{className:"appt-booking-day-control "+(this.props.showDaysControl?"":"invisible")},React.createElement("div",{className:"appt-booking-day-slider"},React.createElement("i",{className:"fa fa-angle-left prev",ref:"lArrowEl"}),React.createElement("div",{className:"appt-booking-result-days",ref:"el"},t?t.map((function(t){return React.createElement("button",{className:"appt-booking-schedule-day-list button btn-link",onClick:function(){e.setDateRangeByCalendar(t,!0)}},React.createElement("div",{className:"day","data-date":e.getFormattedDate(t)},e.getDay(t)),React.createElement("div",{className:"date"},e.getFormattedDate(t)))})):null),React.createElement("i",{className:"fa fa-angle-right next",ref:"rArrowEl"})),React.createElement("button",{className:"button btn-link btn-select-date",onClick:this.setCalendarState},"Select a Future Date"),React.createElement(s.default,{setDateCallback:this.setDateRangeByCalendar,startDate:this.props.startDate,showCalendar:this.props.showCalendar,setCalendarStateCallback:this.props.setCalendarStateCallback,clickOutsideCalendarCallback:this.props.clickOutsideCalendarCallback}))}}]),t}();t.default=i},2332:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={hasError:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0}),console.log("Critical react error!"),console.log(e),console.log(t)}},{key:"render",value:function(){return this.state.hasError?React.createElement("div",{className:"bg-warning"},this.props.errorMessage):this.props.children}}]),t}();t.default=n},8370:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(6749))&&n.__esModule?n:{default:n},i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.showMoreLocations=a.props.showMoreLocationsCallback,a.getPin=a.props.getPinCallback,a.getPinLabel=a.getPinLabel.bind(a),a.setDateRange=a.props.setDateRangeCallback,a.setCalendarState=a.props.setCalendarStateCallback,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"showMoreLink",value:function(){return this.props.count>1}},{key:"showMsg",value:function(){return this.props.count>1&&this.props.showMoreActive?this.props.lessMessage:this.props.moreMessage}},{key:"getAddress",value:function(){return this.props.location.address.street+" "+this.props.location.address.city+" "+this.props.location.address.stateAbbreviation+" "+this.props.location.address.zip}},{key:"getPinLabel",value:function(){var e=this.props.location.address,t=e.street+e.city+e.stateAbbreviation+e.zip,a=this.getPin(t);return a?a.Index:""}},{key:"inputDateMobileHandler",value:function(e){if(e.target&&e.target.value){var t=new Date,a=new Date(e.target.value.replace(/-/g,"/")+" 00:00");a.setHours(0,0,0,0)<t.setHours(0,0,0,0)?(this.setDateRange(t,!0),e.target.value=null!=globalThis.moment?moment().format("YYYY-MM-DD"):null):this.setDateRange(a,!0)}else e.preventDefault()}},{key:"render",value:function(){var e=this;return React.createElement(React.Fragment,null,React.createElement("div",{className:"provider-result-details"},React.createElement("div",{className:"asc-search-result-address"},React.createElement("h3",{className:"provider-result-details-label"},this.props.addressLabel),React.createElement("div",{className:"d-flex"},React.createElement(s.default,{showPin:this.props.showLocationPin,pinLabel:this.getPinLabel(),useLetters:!1}),React.createElement("div",{className:"provider-results-item-address"},React.createElement("a",{href:""+this.props.locationDirectionsUrl+this.getAddress(),target:"_blank",className:"directions-link",title:"Directions"},React.createElement("span",{className:"provider-results-item-location-name"},this.props.location.displayName),React.createElement("span",null,this.props.location.address.street),React.createElement("span",null,this.props.location.address.city+", "+this.props.location.address.stateAbbreviation+" "+this.props.location.address.zip))))),React.createElement("div",{className:"asc-search-result-phone"},React.createElement("h3",{className:"provider-result-details-label"},this.props.locationPhoneLabel),React.createElement("p",null,React.createElement("a",{href:"tel:"+this.props.FormatPhoneNumberForTelURI(this.props.location.phoneNumber)},this.props.location.phoneNumber))),React.createElement("div",{className:"asc-search-result-hours"},React.createElement("h3",{className:"provider-result-details-label"},this.props.locationHoursLabel),React.createElement("ol",null,React.createElement("li",{className:"appt-booking-results-item"},this.props.location.hours)))),this.props.hasOnlineAppointments?this.props.navigator.userAgent.toLowerCase().match(/(ipad)/)||!this.props.navigator.userAgent.toLowerCase().match(/(android)/)&&!this.props.navigator.userAgent.toLowerCase().match(/(iphone)/)&&this.props.navigator.maxTouchPoints>1?React.createElement("button",{className:"d-block d-lg-none button btn-link btn-select-date",onClick:this.setCalendarState},this.props.futureDateLabel):React.createElement("label",{className:"future-date-mobile d-block d-lg-none"},this.props.navigator.userAgent.toLowerCase().match(/(iphone)/)?React.createElement("input",{type:"date",min:null!=globalThis.moment?moment().format("YYYY-MM-DD"):null,onBlur:function(t){return e.inputDateMobileHandler(t)}}):React.createElement("input",{type:"date",min:null!=globalThis.moment?moment().format("YYYY-MM-DD"):null,onChange:function(t){return e.inputDateMobileHandler(t)}}),React.createElement("span",{className:"future-date-mobile-text"},this.props.futureDateLabel)):null,this.showMoreLink()?React.createElement("button",{className:"button btn-link appt-booking-locations-more d-none d-lg-block",onClick:this.showMoreLocations},this.showMsg()):null)}}]),t}();t.default=i},807:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.changePage=a.props.nextPageCallback,a.getPager=a.getPager.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"getPager",value:function(){var e,t,a=this.props.useMobile?this.props.pagesToDisplayMobile:this.props.pagesToDisplay,n=this.props.useMobile?this.props.pageSizeMobile:this.props.pageSize,r=this.props.totalPages,s=this.props.totalResults,i=this.props.currentPage,o=Math.ceil(a/2)+1,l=this.props.useMobile?2:3;r<=a?(e=1,t=r):i<=o?(e=1,t=a):i+l>=r?(e=r-(n-1),t=r):(e=i-((r-1)%2?l+1:l),t=i+l);var c=(i-1)*n,u=Math.min(c+n-1,s-1),p=Array.from(Array(t+1-e).keys()).map((function(t){return e+t}));return{currentPage:i,pageSize:n,totalPages:r,startPage:e,endPage:t,startIndex:c,endIndex:u,pages:p}}},{key:"render",value:function(){var e=this,t=this.getPager();return!t.pages||t.pages.length<=1?null:React.createElement("div",{className:"asc-search-pagination "+(this.props.isLoading?"hidden":"")},React.createElement("a",{className:1===t.currentPage?"prev disabled":"prev",onClick:function(){return e.changePage(t.currentPage-1)},"aria-disabled":1===t.currentPage?"true":"false"},React.createElement("i",{className:"fa fa-angle-left","aria-hidden":"true"})),React.createElement("ul",null,t.pages.map((function(a,n){return t.currentPage===a?React.createElement("li",null,React.createElement("span",null,a)):React.createElement("li",{key:n},React.createElement("a",{onClick:function(){return e.changePage(a)}},React.createElement("span",null,a)))}))),React.createElement("a",{className:t.currentPage===t.totalPages?"next disabled":"next",onClick:function(){return e.changePage(t.currentPage+1)},"aria-disabled":t.currentPage===t.totalPages?"true":"false"},React.createElement("i",{className:"fa fa-angle-right","aria-hidden":"true"})))}}]),t}();t.default=n},1713:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){var e=this;return React.createElement("div",{className:"appt-booking-provider-header"},React.createElement("h1",{className:"asc-search-result-name"},React.createElement("a",{href:this.props.providerProfileUrl},this.props.item.provider.displayName)),React.createElement("div",{className:"asc-search-result-services"},this.props.item.provider.specialities?Object.keys(this.props.item.provider.specialities).map((function(t,a){var n=a>0?React.createElement("span",null,", "):"";return React.createElement("span",{className:"listSpecialties"},n,e.props.item.provider.specialities[t].speciality.name)})):null," "),React.createElement("h2",{className:""}))}}]),t}();t.default=n},6943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"imgError",value:function(e){return e.target.onerror="",e.target.src=this.props.profileImage,!0}},{key:"isAMG",value:function(){if("Ascension Medical Group"===this.props.item.provider.employerAffiliation)return React.createElement("span",{className:"amg-icon tooltip-dark","data-title":"Ascension Medical Group"},React.createElement("img",{src:this.props.amgIcon,className:"AMG_Bug list",alt:"Ascension Medical Group"}))}},{key:"render",value:function(){return React.createElement("div",{className:"appt-booking-provider-photo"},React.createElement("a",{href:this.props.providerProfileUrl},React.createElement("img",{src:this.props.item.provider.photoUrl?this.props.item.provider.photoUrl:this.props.profileImage,alt:this.props.item.provider.displayName,onError:this.imgError,className:"profile-photo"})),this.isAMG())}}]),t}();t.default=n},1897:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"showArrowRight",value:function(e){return null!=globalThis.moment?moment.utc(e).diff(moment.utc(moment.utc(this.props.activeScheduleDays[0])),"days")>0:null}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"appt-booking-result-schedule first-available-grid"},React.createElement("div",{className:"appt-booking-result-schedule-content"},React.createElement("button",{onClick:function(){return e.props.setGotoDate(e.props.firstAvailableDate,!0)},className:"button-secondary first-available"},this.showArrowRight(this.props.firstAvailableDate)?React.createElement("a",{"data-date":this.props.firstAvailableDate},"First Availability ",null!=globalThis.moment?moment.utc(this.props.firstAvailableDate).format("ddd, MMM Do").toString():null,React.createElement("i",{className:"fa fa-angle-right next"})):React.createElement("a",{"data-date":this.props.firstAvailableDate},React.createElement("i",{className:"fa fa-angle-left prev"}),"First Availability ",null!=globalThis.moment?moment.utc(this.props.firstAvailableDate).format("ddd, MMM Do").toString():null)),React.createElement("div",{class:"placeholder-container d-lg-none"},React.createElement("div",{className:"button-primary"},React.createElement("span",null)),React.createElement("div",{className:"button-primary"},React.createElement("span",null)),React.createElement("div",{className:"button-primary"},React.createElement("span",null)),React.createElement("div",{className:"button-primary"},React.createElement("span",null))),React.createElement("div",{className:"appt-booking-schedule-day col column-0"},React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—"))),React.createElement("div",{className:"appt-booking-schedule-day col column-1"},React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—"))),React.createElement("div",{className:"appt-booking-schedule-day col column-2"},React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—"))),React.createElement("div",{className:"appt-booking-schedule-day col column-3"},React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")),React.createElement("div",{className:"button-primary"},React.createElement("a",{class:"disabled",target:"_blank",role:"button","aria-disabled":"true"},"—")))))}}]),t}();t.default=n},2927:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=o(a(3054)),s=o(a(4727)),i=o(a(1897));function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.handleAppointmentChange=a.handleAppointmentChange.bind(a),a.state={hasUnselectedAppointments:!1,availableTimes:a.props.location.location.schedule&&a.props.location.location.schedule.availableTimes?a.props.location.location.schedule.availableTimes:null,schedules:[]},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"componentDidMount",value:function(){this.hasUnselectedAppointments()}},{key:"componentDidUpdate",value:function(e,t){t.availableTimes==this.state.availableTimes&&e.activeScheduleDays==this.props.activeScheduleDays&&e.appointmentType==this.props.appointmentType||this.hasUnselectedAppointments()}},{key:"handleAppointmentChange",value:function(e,t){this.props.buildFilters("appointmentType",e,null,!1)}},{key:"hasUnselectedAppointments",value:function(){var e=this,t=null!=this.props.appointmentType&&this.props.appointmentType.length>0&&void 0!==this.props.appointmentType[0],a=this.props.location.location.schedule&&this.props.location.location.schedule.nextAvailableTimes&&this.props.location.location.schedule.nextAvailableTimes.length>0?this.props.location.location.schedule.nextAvailableTimes.map((function(a){if(0==e.props.activeScheduleDays.some((function(e){return e==a.date}))&&(!t||a.times.some((function(t){return 1==t.appointmentTypes.some((function(t){return t.id==e.props.appointmentType[0]}))}))))return a})):[],n=(this.state.availableTimes?this.state.availableTimes.filter((function(t){return e.props.activeScheduleDays.findIndex((function(e){return e.valueOf()==moment.utc(t.date).format("YYYY-MM-DD").toString().valueOf()}))>-1})):[]).filter((function(t){return e.props.activeScheduleDays.some((function(e){return e.valueOf()==moment.utc(t.date).format("YYYY-MM-DD").toString().valueOf()}))})),r=this.filterSchedulesByAppointmentType(n);this.setState({hasUnselectedAppointments:n.length>0&&0==r.length,schedules:r,firstAvailable:null!=a[0]?a[0].date:null})}},{key:"getAppointmentTypes",value:function(){var e=this.props.schedules?this.props.schedules.map((function(e){return e.times.map((function(e){return e.appointmentTypes}))})).flat(3):null;return e&&e.length>0?e.filter((function(e,t,a){return a.findIndex((function(t){return e.id==t.id}))===t})):null}},{key:"filterSchedulesByAppointmentType",value:function(e){var t=this;return null==this.props.appointmentType||null==this.props.appointmentType||null==e?[]:e&&e.length>0?e.map((function(e){return{date:moment.utc(e.date).format("YYYY-MM-DD"),day:moment.utc(e.date).day(),times:e.times.filter((function(e){return 1==e.appointmentTypes.some((function(e){return e.id.toString().toLowerCase()==t.props.appointmentType.toString().toLowerCase()}))})),appointmentType:t.props.appointmentType}})).filter((function(e){return null!=e.times&&e.times.length>0})):[]}},{key:"render",value:function(){var e;return React.createElement(React.Fragment,null,this.state.schedules&&this.state.schedules.length>0&&!this.state.hasUnselectedAppointments?React.createElement(r.default,(l(e={location:this.props.location.location,index:this.props.index,dates:this.state.dates,useMobile:this.props.useMobile,schedules:this.state.schedules,startDate:this.props.startDate,columnsToShow:4},"index",this.props.index),l(e,"appointmentType",this.props.appointmentType),l(e,"scheduleDays",this.props.scheduleDays),l(e,"showMoreSchedule",this.state.showMoreSchedule),l(e,"showMoreScheduleCallback",this.showMoreScheduleCallback),l(e,"slidesToShow",4),l(e,"activeScheduleDays",this.props.activeScheduleDays),l(e,"showMoreLabel",this.props.showMoreLabel),l(e,"showLessLabel",this.props.showLessLabel),e)):this.state.hasUnselectedAppointments?React.createElement(s.default,{onSelect:this.props.onSelect,specialtyIds:this.props.apptSelectSpecialty,providerIds:this.props.apptSelectProvider,location:this.props.location,radius:this.props.apptSelectRadius,inputName:"appointment-type",typeAheadOptions:this.getAppointmentTypes()}):this.state.firstAvailable?React.createElement(i.default,{firstAvailableDate:this.state.firstAvailable,activeScheduleDays:this.props.activeScheduleDays,setGotoDate:this.props.setGotoDate}):React.createElement("div",{className:"appt-booking-result-schedule unavailable"},React.createElement("div",{className:"appt-booking-result-schedule-content"},React.createElement("div",{className:"button-secondary"},React.createElement("a",{href:"tel:"+this.props.FormatPhoneNumberForTelURI(this.props.phoneNumber)},this.props.callForAppointmentLabel)))))}}]),t}();t.default=c},4727:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(3353))&&n.__esModule?n:{default:n},i=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"showArrowRight",value:function(e){return null!=globalThis.moment?moment.utc(e).diff(moment.utc(moment.utc(this.props.activeScheduleDays[0])),"days")>0:null}},{key:"render",value:function(){return React.createElement("div",{className:"appt-booking-result-placeholder-schedule"},React.createElement("div",{className:"input-container"},React.createElement(s.default,{key:"TypeInputField-"+this.props.resultsKey,onSelect:this.props.onSelect,specialtyIds:this.props.apptSelectSpecialty,providerIds:this.props.apptSelectProvider,location:this.props.location,radius:this.props.apptSelectRadius,inputName:"appointment-type",typeAheadOptions:this.props.typeAheadOptions})),React.createElement("div",{class:"placeholder-container d-lg-none"},React.createElement("div",{className:"button-primary"},React.createElement("span",null)),React.createElement("div",{className:"button-primary"},React.createElement("span",null)),React.createElement("div",{className:"button-primary"},React.createElement("span",null)),React.createElement("div",{className:"button-primary"},React.createElement("span",null))),React.createElement("div",{class:"placeholder-container d-none d-lg-flex"},React.createElement("div",{className:"appt-booking-schedule-day col column-0"},React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"})),React.createElement("div",{className:"appt-booking-schedule-day col column-1"},React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"})),React.createElement("div",{className:"appt-booking-schedule-day col column-2"},React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"})),React.createElement("div",{className:"appt-booking-schedule-day col column-3"},React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}),React.createElement("div",{className:"button-primary"}))))}}]),t}();t.default=i},3054:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}();function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.buildTimeGrid=a.buildTimeGrid.bind(a),a.updateSlider=a.updateSlider.bind(a),a.createMobileSlider=a.createMobileSlider.bind(a),a.createDesktopGrid=a.createDesktopGrid.bind(a),a.getFormattedDate=a.getFormattedDate.bind(a),a.showMoreSchedules=a.showMoreSchedules.bind(a),a.state={hasOnlineScheduling:!0,rowsToShow:5,columnsToShow:4,gridResults:null,scheduleControl:null,showGrid:!1,startDate:a.props.startDate,totalRows:0,calculatedRows:5,showMoreSchedules:!0,moreMsg:"More",lessMsg:"Hide",init:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidMount",value:function(){this.buildTimeGrid()}},{key:"componentDidUpdate",value:function(e,t){this.props.activeScheduleDays!=e.activeScheduleDays||this.props.appointmentType!=e.appointmentType||this.props.schedules!==e.schedules||t.showMoreSchedules!==this.state.showMoreSchedules||this.props.scheduleDays!==e.scheduleDays||this.props.startDate!==e.startDate?(this.props.useMobile&&this.removeSlider(),this.buildTimeGrid()):(this.props.useMobile&&e.useMobile!==this.props.useMobile||this.props.useMobile&&this.state.timeGrid!==t.timeGrid)&&this.updateSlider(!0)}},{key:"removeSlider",value:function(){this.refs.schedEl.classList.contains("slick-initialized")&&(this.$el=jQuery(ReactDOM.findDOMNode(this.refs.schedEl)),this.$el&&this.$el.slick("unslick"))}},{key:"getDaysInMonth",value:function(e,t){return new Date(t,e+1,0).getDate()}},{key:"showMoreSchedules",value:function(e){this.setState({showMoreSchedules:!e,calculatedRows:e?this.state.totalRows:this.state.rowsToShow})}},{key:"buildTimeGrid",value:function(){var e=this,t=[],a=this.props.schedules,n=a&&a.length>0?a.map((function(e){return e.times?e.times.length:0})):[0],r=Math.max.apply(Math,n);r=Math.max(r,this.state.rowsToShow);for(var s=function(n){for(var s=e.props.activeScheduleDays[n],i=[],o={},l=0,c=a.find((function(e){return e.date.valueOf()==s.valueOf()})),u=0;u<r;u++){var p={};if(null!=c&&u<c.times.length){p.Index=u;var d=c.times[u].time,h=moment.utc(d,"YYYY-MM-DD HH:mm"),f=h.parseZone(d).format();p.Time=h.parseZone(d).format("LT"),p.Date=c.date,p.Link=e.props.location.schedule.registrationUrl+"?appointment_type="+e.props.appointmentType+"&at="+f,++l}else p.Index=u,p.Time=null,p.Date=null,p.Link="";i.push(p)}o.Date=s,o.ColumnHasTimes=l>0;var m=r>e.state.rowsToShow+1&&e.state.showMoreSchedules?i.slice(e.state.rowsToShow,i.length-1):null;o.Times=e.state.showMoreSchedules?i.slice(0,e.state.rowsToShow-1):i,o.columnHasMore=!!m&&m.filter((function(e){return null!=e.Time})).length>0,t.push(o)},i=0;i<this.props.activeScheduleDays.length;i++)s(i);this.setState({timeGrid:t,totalRows:"number"==typeof r?r:rows})}},{key:"updateSlider",value:function(e){var t=this;this.$el=jQuery(ReactDOM.findDOMNode(this.refs.schedEl)),this.$lArrowEl=jQuery(ReactDOM.findDOMNode(this.refs.schedLArrowEl)),this.$rArrowEl=jQuery(ReactDOM.findDOMNode(this.refs.schedRArrowEl)),this.$el&&(this.state.init&&!e||(this.$el.slick({arrows:!1,infinite:this.props.infinite,speed:this.props.speed,slidesToShow:this.props.slidesToShow,slidesToScroll:this.props.slidesToScroll,variableWidth:this.props.variableWidth}),this.$rArrowEl.click((function(e){t.$el.slick("slickNext")})),this.$lArrowEl.click((function(e){t.$el.slick("slickPrev")})))),this.state.init||this.setState({init:!0})}},{key:"getFormattedDate",value:function(e){var t=globalThis.moment?moment.utc(e):null;return React.createElement(React.Fragment,null,React.createElement("div",null,t.format("ddd").toString()),React.createElement("div",null,t.format("MMM").toString()," ",t.format("Do").toString()))}},{key:"createDesktopGrid",value:function(){var e=this,t=this.state.timeGrid;return this.props.useMobile?null:React.createElement(React.Fragment,null,React.createElement("div",{className:"appt-booking-result-schedule-content",ref:"schedEl"},t&&this.isTimeAvailable()?t.map((function(t,a){return React.createElement("div",{className:"appt-booking-schedule-day col column-"+a},t.Times.map((function(e){return React.createElement("div",{className:"button-primary"},React.createElement("a",{className:e.Link?null:"disabled",target:"_blank",role:"button",href:e.Link?e.Link:null,"aria-disabled":!e.Link},e.Time?e.Time:"—"))})),t.ColumnHasTimes&&e.state.showMoreSchedules&&t.columnHasMore&&(e.state.totalRows>e.state.calculatedRows||e.state.totalRows>e.state.rowsToShow)?React.createElement("div",{className:"button-primary "+(e.props.showMoreSchedule?"d-none":"")},React.createElement("a",{role:"button",onClick:function(){return e.showMoreSchedules(e.state.showMoreSchedules)}},e.state.showMoreSchedules?e.props.showMoreLabel:e.props.showLessLabel)):null)})):null))}},{key:"createMobileSlider",value:function(){var e=this,t=this.state.timeGrid;return this.props.useMobile&&t?React.createElement(React.Fragment,null,React.createElement("div",{className:"appt-booking-day-slider mobile "+(this.isTimeAvailable()?"":"d-none")},React.createElement("i",{className:"fa fa-angle-left prev",ref:"schedLArrowEl"}),React.createElement("div",{className:"appt-booking-result-days",ref:"schedEl"},t?t.map((function(t,a,r){return t.Times.map((function(t,a){var r;return t.Time&&null!=t.Time[a]?React.createElement(React.Fragment,null,0==a?React.createElement("div",{className:"button-primary day"},React.createElement("a",(n(r={role:"button"},"role","button"),n(r,"aria-disabled","true"),r),e.getFormattedDate(t.Date))):null,React.createElement("div",{className:"button-primary"},React.createElement("a",{href:t.Link,role:"button"},t.Time))):null}))})):null),React.createElement("i",{className:"fa fa-angle-right next",ref:"schedRArrowEl"}))):null}},{key:"isTimeAvailable",value:function(){if(this.state.timeGrid&&this.state.timeGrid.length)return this.state.timeGrid.some((function(e){return e.ColumnHasTimes}))}},{key:"render",value:function(){return React.createElement("div",{className:this.isTimeAvailable()?"appt-booking-result-schedule":"appt-booking-result-placeholder-schedule"},this.createMobileSlider(),this.createDesktopGrid())}}]),t}();t.default=r},9433:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=o(a(1751)),s=o(a(3707)),i=o(a(3353));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.handleLocationChange=a.handleLocationChange.bind(a),a.handleFilterChange=a.handleFilterChange.bind(a),a.buildQueryAndSubmit=a.props.buildQueryAndSubmitCallback,a.handleDistanceChange=a.handleDistanceChange.bind(a),a.buildFilters=a.props.buildFiltersCallback,a.handleAppointmentChange=a.handleAppointmentChange.bind(a),a.searchFormSubmitBtn=React.createRef(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"handleFilterChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments[3],n=t||e.type;this.buildFilters(n,e.id,null,a)}},{key:"handleAppointmentChange",value:function(e,t){this.buildFilters("appointmentType",e,null,!1)}},{key:"handleLocationChange",value:function(e){this.buildFilters("location",e,null,!1)}},{key:"handleDistanceChange",value:function(e){var t=e.target[e.target.selectedIndex];this.buildFilters(e.target.name,t.value,null,!1)}},{key:"removeFocus",value:function(){this.searchFormSubmitBtn.current.blur()}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"section-container appt-booking-container"},React.createElement("div",{className:"asc-search-box-container row"},React.createElement("div",{className:"asc-search-box"},React.createElement("form",{className:"asc-input",onSubmit:this.buildQueryAndSubmit},React.createElement("div",{className:"asc-search-row form-row"},React.createElement("div",{className:"asc-search-col"},React.createElement("label",{htmlFor:"location-distance"},this.props.locationInputLabel),React.createElement(r.default,{defaultLocation:this.props.location,onSubmitCallback:this.handleLocationChange,inputName:"location",isNotValid:this.props.isNotValid,validTermsCache:[{offset:0,value:this.props.location}]})),React.createElement("div",{className:"asc-search-col"},React.createElement("label",{htmlFor:"specialty-or-doctor"},this.props.specialtyDoctorInputLabel," ",React.createElement("span",null,this.props.optionalInputLabel)),React.createElement(s.default,{onSpecialtySelect:this.buildFilters,onProviderSelect:this.buildFilters,location:this.props.location,radius:this.props.distance,geospatialFilter:!0,allSpecialties:this.props.allSpecialties,inputLabel:this.props.inputLabel,placeholder:"Select Specialty or Name",type:0})),React.createElement("div",{className:"asc-search-col"},React.createElement("label",{htmlFor:"appointment-type"},this.props.appointmentInputLabel," ",React.createElement("span",null,this.props.optionalInputLabel)),React.createElement(i.default,{onSelect:this.handleAppointmentChange,specialtyIds:this.props.specialtyId?[this.props.specialtyId]:null,providerIds:this.props.providerId?[this.props.providerId]:null,location:this.props.location,radius:this.props.distance,appointmentType:this.props.appointmentType,appointmentTypeText:this.props.appointmentTypeText})),React.createElement("div",{className:"asc-search-col-button"},React.createElement("div",{className:"button-primary"},React.createElement("input",{type:"submit",value:this.props.searchButtonLabel,className:this.props.location?"":"disabled","aria-disabled":!this.props.location,onMouseUp:function(){return e.removeFocus()},ref:this.searchFormSubmitBtn}))))))))}}]),t}();t.default=l},2162:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=i(a(6564)),s=i(a(9609));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.handleFilterChange=a.handleFilterChange.bind(a),a.toggleMobileFilters=a.toggleMobileFilters.bind(a),a.setSchedulingOptions=a.props.setSchedulingOptionsCallback,a.buildFilters=a.props.buildFiltersCallback,a.shouldDisplayFilters=a.shouldDisplayFilters.bind(a),a.state={languageLabel:a.props.filters.language?a.props.filters.language[0].charAt(0).toUpperCase()+a.props.filters.language[0].slice(1):t.Any,genderLabel:a.props.filters.gender?a.props.filters.gender[0].charAt(0).toUpperCase()+a.props.filters.gender[0].slice(1):t.Any,showMoreFilters:!(!a.props.filters.hasOnlineScheduling&&!a.props.filters.hasProfilePicture),showMobileFilters:!1,gender:a.props.filters.gender?a.props.filters.gender[0].toLowerCase():null,language:a.props.filters.language?a.props.filters.language[0].toLowerCase():null,schedulingOptions:null},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"handleFilterChange",value:function(e){var a=this;if(e){var n=e.target;switch(n.name){case"schedulingOptions":var r=this.props.options.schedulingOptions;(r=r.map((function(e){return e.value===t.Any&&(e.checked=!1),n.value===t.Any&&e.value!==t.Any&&(e.checked=!1),e.value===n.value&&(e.checked=n.checked),e}))).every((function(e){return!1===e.checked}))&&(r=r.map((function(e){return e.value===t.Any&&(e.checked=!0),e}))),this.setState({schedulingOptions:r},(function(){return a.setSchedulingOptions(r)}));break;default:var s=null;if("checkbox"===n.type)s=n.checked;else if("radio"===n.type){var i=n.getAttribute("data-display-name");this.setState(function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}({},n.name+"Label",i)),s=n.value}else if("select-one"===n.type)s=n[n.selectedIndex].value;else if("select-multiple"===n.type){var o=n.value,l=this.props[n.name];l.includes(o)?l.push(o):l.slice(l.indexOf(o),1),s=l}else s=n.value;var c=n.getAttribute("filterValue")?n.getAttribute("filterValue"):s;this.buildFilters(n.name,c)}}}},{key:"toggleMobileFilters",value:function(){this.setState({showMobileFilters:!this.state.showMobileFilters})}},{key:"shouldDisplayFilters",value:function(){return this.props.results.length>0||this.props.filteredSearch}},{key:"render",value:function(){var e=this;if(this.shouldDisplayFilters()){var a=this.state.schedulingOptions?this.state.schedulingOptions:this.props.options.schedulingOptions;return React.createElement("div",{className:"section-container large"},React.createElement("div",{className:"asc-search-filters appt-booking-filters"},React.createElement("div",{className:"asc-search-accordion "+(this.state.showMobileFilters?"expanded":"")},React.createElement("button",{type:"button",className:"asc-search-accordion-trigger","aria-expanded":this.state.showMobileFilters,"aria-controls":"apptBookingFilterAccordion",onClick:this.toggleMobileFilters},React.createElement("span",null,this.props.filtersLabel))),React.createElement("div",{className:"asc-search-filter-accordion",id:"apptBookingFilterAccordion"},React.createElement("div",{className:"appt-booking-filters-base"},React.createElement("span",{className:"align-items-center asc-search-label-text-info"},"Filters"),React.createElement("div",{className:"asc-search-filter align-items-center custom-checkbox"},React.createElement("input",{className:"form-check-input",type:"checkbox",id:"asc-search-filter-allAmgFilter",name:"employerAffiliation",filterValue:this.props.filters.employerAffiliation&&this.props.filters.employerAffiliation.indexOf("Ascension Medical Group")>-1?"":"Ascension Medical Group",checked:!(!this.props.filters||!this.props.filters.employerAffiliation)&&this.props.filters.employerAffiliation.indexOf("Ascension Medical Group")>-1,onChange:this.handleFilterChange}),React.createElement("label",{className:"asc-search-label-checkbox",htmlFor:"asc-search-filter-allAmgFilter"},this.props.employerAffiliationLabel),React.createElement(s.default,{message:this.props.amgToolTip,position:"top"},React.createElement("i",{className:"fa fa-info-circle","aria-hidden":"true"}))),React.createElement("div",{className:"divider-select-wrapper"},React.createElement("div",{className:"divider-select"})),React.createElement("div",{className:"asc-search-filter align-items-center"},React.createElement("label",{className:"asc-search-label-select"},this.props.languageFilterLabel),React.createElement(r.default,{closeOnPropChange:this.props.searchContext,containerClass:"appt-booking-filter-dropdown",containerId:"languageOptionsDropdownMenu",dropdownButtonContent:this.props.filters&&this.props.filters.language?this.state.languageLabel:"Any",dropdownContent:this.props.options.languageOptions.languages.map((function(t,a){var n="languageOptions"+t.displayName,r=t.displayName.toLowerCase()==e.state.language||0===a;return React.createElement("div",{key:t.id,className:"asc-dropdown-item"},React.createElement("div",{className:"asc-dropdown-item-checkbox custom-checkbox small"},React.createElement("input",{className:"form-check-input",type:"radio",name:"language",value:t.value,id:n,onChange:e.handleFilterChange,"data-display-name":t.displayName,defaultChecked:r}),React.createElement("label",{className:"asc-search-label-radio",htmlFor:n},t.displayName)))}))})),React.createElement("div",{className:"divider-select-wrapper medium-full"},React.createElement("div",{className:"divider-select"})),React.createElement("div",{className:"asc-search-filter align-items-center"},React.createElement("label",{className:"asc-search-label-select",htmlFor:"asc-filter-sort"},this.props.genderFilterLabel),React.createElement(r.default,{closeOnPropChange:this.props.searchContext,containerClass:"appt-booking-filter-dropdown",containerId:"genderOptionsDropdownMenu",dropdownButtonContent:this.state.genderLabel,dropdownContent:this.props.options.genderOptions.map((function(t,a){var n="genderOptions"+t.displayName,r=t.displayName.toLowerCase()==e.state.gender||0===a;return React.createElement("div",{key:t.id,className:"asc-dropdown-item"},React.createElement("div",{className:"asc-dropdown-item-checkbox custom-checkbox small"},React.createElement("input",{className:"form-check-input",type:"radio",name:"gender",value:t.value,id:n,onChange:e.handleFilterChange,"data-display-name":t.displayName,defaultChecked:r}),React.createElement("label",{className:"asc-search-label-radio",htmlFor:n},t.displayName)))}))})),React.createElement("div",{className:"divider-select-wrapper"},React.createElement("div",{className:"divider-select"})),React.createElement("div",{className:"asc-search-filter align-items-center"},React.createElement("label",{className:"asc-search-label-select",htmlFor:"asc-filter-schedule"},this.props.schedulingOptionsLabel),React.createElement(r.default,{containerClass:"appt-booking-filter-dropdown",containerId:"schedulingOptionsDropdownMenu",dropdownButtonContent:a.filter((function(e){return!0===e.checked})).map((function(e){return e.value})).join(", "),dropdownContent:a.map((function(a){var n="schedulingOptions"+a.id;return React.createElement("div",{key:a.id,className:"asc-dropdown-item"},React.createElement("div",{className:"asc-dropdown-item-checkbox custom-checkbox small"},React.createElement("input",{className:"form-check-input",type:"checkbox",name:"schedulingOptions",value:a.value,id:n,checked:a.checked,onChange:e.handleFilterChange}),React.createElement("label",{className:"asc-search-label-checkbox",htmlFor:n},a.text)),a.value===t.Any?React.createElement("div",{className:"dropdown-divider"}):null)}))}))),React.createElement("div",{className:"appt-booking-filters-more show"},React.createElement("div",{className:"appt-booking-filters-more-content"},React.createElement("span",{className:"filter-more-label"},this.props.filterMoreLabel),React.createElement("div",{className:"asc-search-filter align-items-center custom-checkbox small"},React.createElement("input",{className:"form-check-input",type:"checkbox",id:"asc-search-filter-hasProfilePicture",name:"hasProfilePicture",checked:this.props.filters.hasProfilePicture,onChange:this.handleFilterChange}),React.createElement("label",{className:"asc-search-label-checkbox",htmlFor:"asc-search-filter-hasProfilePicture"},this.props.hasProfilePictureFilterLabel)),React.createElement("div",{className:"asc-search-filter align-items-center custom-checkbox small"},React.createElement("input",{className:"form-check-input",type:"checkbox",id:"asc-search-filter-hasOnlineScheduling",name:"hasOnlineScheduling",checked:!!this.props.filters.hasOnlineScheduling,onChange:this.handleFilterChange}),React.createElement("label",{className:"asc-search-label-checkbox",htmlFor:"asc-search-filter-hasOnlineScheduling"},this.props.hasOnlineSchedulingFilterLabel)),React.createElement("span",{className:"divider"}))))))}return null}}]),t}();o.Any="Any",t.default=o},5682:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=l(a(6943)),s=l(a(1713)),i=l(a(8370)),o=l(a(2927));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.getPin=a.props.getPinCallback,a.showMoreLocations=a.showMoreLocations.bind(a),a.filterDates=a.filterDates.bind(a),a.showMoreScheduleCallback=a.showMoreScheduleCallback.bind(a),a.convertToUTC=a.convertToUTC.bind(a),a.hasUnselectedAppointments=a.hasUnselectedAppointments.bind(a),a.buildFilters=a.props.buildFiltersCallback,a.filterSchedulesByAppointmentType=a.filterSchedulesByAppointmentType.bind(a),a.FormatPhoneNumberForTelURI=a.FormatPhoneNumberForTelURI.bind(a),a.handleAppointmentChange=a.handleAppointmentChange.bind(a),a.setDateRangeCallback=a.props.setDateRangeCallback,a.state={showMore:!1,showPins:!0,locations:a.props.item.Locations,columnsToShow:4,showMoreSchedule:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"handleAppointmentChange",value:function(e,t){this.buildFilters("appointmentType",e,null,!1)}},{key:"showMoreLocations",value:function(){var e=this.state.showMore;this.setState({showMore:!e})}},{key:"showMoreScheduleCallback",value:function(){this.setState({showMoreSchedule:!0})}},{key:"convertToUTC",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;e="string"==typeof e?new Date(e):e;var t=new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate());return new Date(t)}},{key:"filterDates",value:function(e){var t=this;return e.filter((function(e){return t.props.activeScheduleDays.findIndex((function(t){return t.valueOf()==moment.utc(e.date).format("YYYY-MM-DD").toString().valueOf()}))>-1}))}},{key:"filterSchedulesByAppointmentType",value:function(e){var t=this;return null==this.props.appointmentType||null==this.props.appointmentType?[]:e.map((function(e){return{date:moment.utc(e.date).format("YYYY-MM-DD"),day:moment.utc(e.date).day(),times:e.times.filter((function(e){return 1==e.appointmentTypes.some((function(e){return e.id.toString().toLowerCase()==t.props.appointmentType.toString().toLowerCase()}))})),appointmentType:t.props.appointmentType}})).filter((function(e){return null!=e.times&&e.times.length>0}))}},{key:"hasUnselectedAppointments",value:function(e){var t=this,a=e.filter((function(e){return t.props.activeScheduleDays.some((function(t){return t.valueOf()==moment.utc(e.date).format("YYYY-MM-DD").toString().valueOf()}))})),n=this.filterSchedulesByAppointmentType(a);return a.length>0&&0==n.length}},{key:"FormatPhoneNumberForTelURI",value:function(e){if(e){var t=e.replace(/[\(\)\.\s]/g,"-");return"+1"+(t=t.replace(/-+/g,"-")).replace(/^(\+?1-)/,"")}return null}},{key:"render",value:function(){var e=this,t=this.props.item.locations.length>0?this.state.showMore?this.props.item.locations:[this.props.item.locations[0]]:null,a=this.props.item.provider.url;return React.createElement("div",{className:"asc-search-result"},t?t.map((function(n,l){var u,p=n.location.schedule&&n.location.schedule.availableTimes?e.filterDates(n.location.schedule.availableTimes):null;return React.createElement("div",{className:"row"},React.createElement("div",{className:"appt-booking-provider "+(0==l?"featured":"")},React.createElement("div",{className:"appt-booking-provider-content"},React.createElement("div",{className:"row"},0==l?React.createElement(r.default,{key:"ProviderThumbnailControl-"+e.props.resultsKey,amgIcon:e.props.amgIcon,profileImage:e.props.profileImage,local:!1,item:e.props.item,providerProfileUrl:a}):null,React.createElement("div",{className:"asc-search-result-contact"},React.createElement("p",{className:"asc-search-result-distance"},0==n.distance?"0":n.distance?n.distance.toFixed(2):null," miles from ",React.createElement("span",{className:"location"},e.props.location)),0==l?React.createElement(s.default,{key:"ProviderControl-"+e.props.resultsKey,item:e.props.item,location:n.location,providerProfileUrl:a}):null,React.createElement(i.default,{key:"LocationControl-"+e.props.resultsKey,location:n.location,FormatPhoneNumberForTelURI:e.FormatPhoneNumberForTelURI,showMoreLocationsCallback:e.showMoreLocations,count:e.props.item.locations.length,index:l,currentLocationCount:t.length,moreMessage:e.props.showMoreLocationsLabel,lessMessage:e.props.showFewerLocationsLabel,showMoreActive:e.state.showMore,showLocationPin:e.state.showPins,getPinCallback:e.getPin,setDateRangeCallback:e.props.setDateRangeCallback,hasOnlineAppointments:e.props.hasOnlineAppointments,locationDirectionsUrl:e.props.locationDirectionsUrl,futureDateLabel:e.props.futureDateLabel,addressLabel:e.props.addressLabel,locationPhoneLabel:e.props.locationPhoneLabel,locationHoursLabel:e.props.locationHoursLabel,navigator:e.props.navigator,setCalendarStateCallback:e.props.setCalendarStateCallback}))))),React.createElement(o.default,(c(u={resultsKey:e.props.resultsKey,key:"SchedulePlaceholder-"+e.props.resultsKey,buildFilters:e.props.buildFiltersCallback,apptSelectSpecialty:e.props.apptSelectSpecialty,apptSelectProvider:e.props.apptSelectProvider,location:e.props.location,apptSelectRadius:e.props.apptSelectRadius,inputName:"appointment-type",schedules:p,phoneNumber:n.location.phoneNumber,callForAppointmentLabel:e.props.callForAppointmentLabel,activeScheduleDays:e.props.activeScheduleDays,FormatPhoneNumberForTelURI:e.FormatPhoneNumberForTelURI,onSelect:e.handleAppointmentChange},"location",n),c(u,"index",l),c(u,"dates",e.state.dates),c(u,"useMobile",e.props.useMobile),c(u,"startDate",e.props.startDate),c(u,"appointmentType",e.props.appointmentType),c(u,"scheduleDays",e.props.scheduleDays),c(u,"showMoreSchedule",e.state.showMoreSchedule),c(u,"showMoreScheduleCallback",e.showMoreScheduleCallback),c(u,"slidesToShow",4),c(u,"showMoreLabel",e.props.showMoreLabel),c(u,"showLessLabel",e.props.showLessLabel),c(u,"setGotoDate",e.props.setGotoDate),u)),e.props.item.locations.length>1?React.createElement("button",{className:"button btn-link appt-booking-locations-more d-lg-none",onClick:e.showMoreLocations},e.props.item.locations.length>1&&e.state.showMore?"Show Fewer Locations":"Show More Locations"):null)}),this):null)}}]),t}();t.default=u},5668:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=c(a(5682)),s=c(a(807)),i=c(a(9580)),o=c(a(2190)),l=c(a(8628));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={highlightItemIndex:a.props.highlightIndex,mapContainerWidth:0},a.onLocationClick=a.onLocationClick.bind(a),a.mapWidthCalc=a.mapWidthCalc.bind(a),a.getPin=a.props.getPinCallback,a.moveProviderToTop=a.props.moveProviderToTopCallback,a.scrolltoMapTop=a.props.scrolltoMapTop,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.mapWidthCalc)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.mapWidthCalc)}},{key:"mapWidthCalc",value:function(){if(this.props.searchPerformed&&this.props.results.length){var e=this.mapDiv.clientWidth-24;this.setState({mapContainerWidth:e})}}},{key:"onLocationClick",value:function(e){this.moveProviderToTop(e.providerIds,e.locationId,e.Pinlabel)}},{key:"render",value:function(){var e=this;return this.props.searchPerformed?!this.props.searchPerformed||this.props.results&&this.props.results.length?React.createElement("div",{className:"section-container large"},React.createElement("div",{className:"asc-search-results row appt-booking-row"},React.createElement("div",{className:"col-lg-8 asc-search-results-content-col"},this.props.useMobile&&React.createElement("span",{id:"paginationScrollAnchor"}),React.createElement("ol",{className:"asc-search-results-list"},this.props.isLoading?React.createElement(o.default,{isLoading:this.props.isLoading}):this.props.results.map((function(t,a){return React.createElement("li",{className:"asc-search-results-item"},React.createElement(r.default,{item:t.data,index:a,key:"SearchResults-"+t.data.provider.id,resultsKey:t.data.provider.id,highlightItemIndex:e.state.highlightItemIndex,location:e.props.location,onLocationClick:e.onLocationClick,profileImage:e.props.profileImage||null,amgIcon:e.props.amgIcon,getPinCallback:e.getPin,hasOnlineAppointments:t.data.provider.hasOnlineScheduling,useMobile:e.props.useMobile,startDate:e.props.startDate,appointmentType:e.props.appointmentType,scheduleDays:e.props.scheduleDays,setDateRangeCallback:e.props.setDateRangeCallback,activeScheduleDays:e.props.activeScheduleDays,apptSelectSpecialty:e.props.apptSelectSpecialty,apptSelectProvider:e.props.apptSelectProvider,apptSelectLocation:e.props.apptSelectLocation,apptSelectRadius:e.props.apptSelectRadius,buildFiltersCallback:e.props.buildFiltersCallback,locationDirectionsUrl:e.props.locationDirectionsUrl,futureDateLabel:e.props.futureDateLabel,addressLabel:e.props.addressLabel,locationPhoneLabel:e.props.locationPhoneLabel,locationHoursLabel:e.props.locationHoursLabel,providerProfileUrl:e.props.providerProfileUrl,showMoreLabel:e.props.showMoreLabel,showLessLabel:e.props.showLessLabel,callForAppointmentLabel:e.props.callForAppointmentLabel,showMoreLocationsLabel:e.props.showMoreLocationsLabel,showFewerLocationsLabel:e.props.showFewerLocationsLabel,relativeUrls:e.props.relativeUrls,navigator:e.props.navigator,setCalendarStateCallback:e.props.setCalendarStateCallback,setGotoDate:e.props.setGotoDate}))}))),React.createElement("div",{id:"stop-sticky-map"}),this.props.totalPages>1?React.createElement(s.default,{key:"PagingControl",nextPageCallback:this.props.nextPageCallback,totalResults:this.props.totalResults,searchResults:this.props.searchResults,pageSize:this.props.pageSize,currentPage:this.props.currentPage,useMobile:this.props.useMobile,sortBy:this.props.sortBy,isLoading:this.props.isLoading,pagesToDisplayMobile:this.props.pagesToDisplayMobile,pagesToDisplay:this.props.pagesToDisplay,pageSizeMobile:this.props.pageSizeMobile,totalPages:this.props.totalPages}):null),React.createElement("div",{className:"col-lg-4 order-first order-lg-last asc-search-results-map-col",ref:function(t){e.mapDiv=t}},React.createElement("div",{className:"sticky-wrapper "+(this.props.isFilterBarSticky?" sticky-map":"")+" "+(!this.props.useMobile&&this.props.isMapNearFooter?"map-near-footer-position":""),style:{top:this.props.useMobile||this.props.isMapNearFooter?"":this.props.stickyHeight,width:this.props.isFilterBarSticky&&!this.props.useMobile?this.state.mapContainerWidth:"100%"},ref:this.props.innerRef},React.createElement(i.default,{key:"MapControl",locations:this.props.mapPins,onLocationClickCallback:this.onLocationClick,useLetters:this.props.useLetters,overlapLevel:.0023,featureToggles:this.props.featureToggles,marketClusteringImageUrl:this.props.marketClusteringImageUrl,marketClusteringJSUrl:this.props.marketClusteringJSUrl,scrolltoMapTop:this.props.scrolltoMapTop}),React.createElement("div",{className:"appt-booking-sort-control mobile"},React.createElement("div",{className:"d-flex align-items-end"},React.createElement("span",{className:"results-summary"},this.props.totalResults," ",this.props.resultsFoundLabel)),React.createElement("div",{className:"d-flex align-items-end"},React.createElement(l.default,{key:"SortingControl",buildFiltersCallback:this.props.buildFiltersCallback,sortFields:this.props.sortFields.filter((function(e){return"radius"!=e.FilterName})),recordCount:this.props.totalResults,sortLabel:this.props.sortLabel}))))))):React.createElement("div",{className:"section-container"},React.createElement("div",{className:"appt-booking-results asc-search-no-results-msg",dangerouslySetInnerHTML:{__html:this.props.noResultsMessage}})):React.createElement("div",{className:"section-container"},React.createElement("div",{className:"appt-booking-results initial"}))}}]),t}();t.default=u},8628:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.buildFilters=a.props.buildFiltersCallback,a.checkForSeperator=a.checkForSeperator.bind(a),a.distanceSelectInputRef=React.createRef(),a.hiddenDistanceSelectInputRef=React.createRef(),a.hiddenDistanceOptionInputRef=React.createRef(),a.state={selectFields:a.props.selectFields,distanceInputWidth:a.props.radius&&a.props.radius<=100?"75px":"105px"},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidUpdate",value:function(e){this.props.selectFields!=e.selectFields&&this.handleDistanceWidthChange()}},{key:"checkForSeperator",value:function(e){var t=this.props.sortFields?this.props.sortFields.filter((function(e){return 0==e.Select})):null;return t.length>t.findIndex((function(t){return t.SortLabel===e}))+1?"separator":""}},{key:"handleDistanceWidthChange",value:function(){if(this.state.selectFields){var e=this.distanceSelectInputRef.current.selectedIndex,t=this.distanceSelectInputRef.current.childNodes[e];this.hiddenDistanceOptionInputRef.current.innerHTML=t.innerText,this.setState({distanceInputWidth:this.hiddenDistanceSelectInputRef.current.offsetWidth+20,selectFields:this.props.selectFields})}}},{key:"isSortActive",value:function(e){var t=this;return e.Active?React.createElement("a",{className:"sort-active"},e.SortLabel):React.createElement("a",{className:"sort-inactive",onClick:function(a){return t.buildFilters(e.FilterName,e.Name,a)}},e.SortLabel)}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"sort-control"},this.state.selectFields?this.state.selectFields.map((function(t){return React.createElement(React.Fragment,null,React.createElement("div",{className:"label-select asc-search-distance"},React.createElement("label",{className:"asc-search-label-select"},t.SortLabel),React.createElement("select",{ref:e.distanceSelectInputRef,title:t.SortLabel,className:"sort-list-field asc-search-select sort-list-field",onChange:function(a){e.buildFilters(t.FilterName,a.target.value,a),e.handleDistanceWidthChange()},style:{width:e.state.distanceInputWidth}},t.SelectItems.map((function(e){if(e.Enabled)return e.Selected?React.createElement("option",{key:e.Value,value:e.Value,selected:!0},e.Label):React.createElement("option",{key:e.Value,value:e.Value},e.Label)})))),React.createElement("select",{ref:e.hiddenDistanceSelectInputRef,className:"label-select-hidden",style:{visibility:"hidden"},"aria-hidden":"true"},React.createElement("option",{ref:e.hiddenDistanceOptionInputRef})))})):null,this.props.sortFields?this.props.sortFields.map((function(t,a){return React.createElement(React.Fragment,null,0==a?e.props.sortLabel:null,React.createElement("div",{className:"sort-control-item "+e.checkForSeperator(t.SortLabel)},e.isSortActive(t)))})):null)}}]),t}();t.default=n},3353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.handleSelect=a.handleSelect.bind(a),a.generateQueryData=a.generateQueryData.bind(a),a.isInputEnabled=a.isInputEnabled.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidMount",value:function(){this.$elSelect2=jQuery(this.elSelect2),this.$elSelect2.select2({disabled:!this.isInputEnabled(),placeholder:"Select Appointment Type",allowClear:!0,width:"resolve",dropdownCssClass:"appt-type-dropdown",dropdownParent:jQuery(this.elSelect2).parent(),ajax:this.props.typeAheadOptions?null:{url:"/api/v2/appointmenttypes/typeahead",dataType:"json",method:"POST",contentType:"application/json",data:this.generateQueryData}}),this.$elSelect2.on("select2:select",this.handleSelect),this.$elSelect2.on("select2:clear",this.handleSelect),this.$elSelect2.one("select2:open",(function(e){jQuery("input.select2-search__field").prop("placeholder","Search Type of Appointment")}))}},{key:"componentDidUpdate",value:function(e,t,a){if(this.isInputEnabled()?this.$elSelect2.prop("disabled",!1):(this.$elSelect2.prop("disabled",!0),this.$elSelect2.val(null).trigger("change")),this.props.appointmentType!==e.appointmentType&&this.props.appointmentTypeText){var n=this.props.appointmentType&&Array.isArray(this.props.appointmentType)?this.props.appointmentType[0]:this.props.appointmentType,r=this.props.appointmentTypeText&&Array.isArray(this.props.appointmentTypeText)?this.props.appointmentTypeText[0]:this.props.appointmentTypeText;this.$elSelect2=jQuery(this.elSelect2);var s=new Option(r,n,!0,!0);this.$elSelect2.append(s).trigger("change")}}},{key:"componentWillUnmount",value:function(){this.$elSelect2.select2("destroy"),this.$elSelect2.off("select2:select"),this.$elSelect2.off("select2:clear")}},{key:"isInputEnabled",value:function(){return this.props.location||!1}},{key:"generateQueryData",value:function(e){var t={term:e.term,page:e.page||1,pageSize:15,geoDistanceOptions:{location:this.props.location,radius:this.props.radius},appointmentTypesOptions:{specialtyIds:this.props.specialtyIds,providerIds:this.props.providerIds}};return JSON.stringify(t)}},{key:"handleSelect",value:function(e){e.preventDefault(),this.props.onSelect(e.params,"appointmentType",null,!1)}},{key:"render",value:function(){var e=this,t=this.props.appointmentTypeText?"selected":"";return React.createElement(React.Fragment,null,React.createElement("select",{ref:function(t){return e.elSelect2=t},className:"form-control",style:{width:"100%"},value:t},React.createElement("option",{value:"",selected:t},this.props.appointmentTypeText),this.props.typeAheadOptions&&this.props.typeAheadOptions.map((function(e){return React.createElement("option",{value:e.id},e.name||e.text)}))))}}]),t}();t.default=n},1088:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={hasScrolled:!1},a.onScroll=function(){var e=jQuery("footer").position().top,t=jQuery(document).scrollTop()+window.innerHeight,n=t-e+20;t>e?jQuery("#backToTop").css({bottom:n}):jQuery("#backToTop").css({bottom:20}),window.pageYOffset>100?a.setState({hasScrolled:!0}):window.pageYOffset<100&&a.setState({hasScrolled:!1})},a.scrollToTop=function(){window.scrollTo({top:0,behavior:"smooth"}),a.setState({hasScrolled:!1})},a.onScroll=a.onScroll.bind(a),a.scrollToTop=a.scrollToTop.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidMount",value:function(){document.addEventListener("scroll",this.onScroll)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.onScroll)}},{key:"render",value:function(){return React.createElement(React.Fragment,null,this.state.hasScrolled&&React.createElement("div",{className:"back-to-top-container",id:"backToTop",onClick:this.scrollToTop},React.createElement("svg",{id:"icon-back-to-top-w-bg",viewBox:"0 0 40 40"},React.createElement("path",{d:"M20 38c-9.9 0-18-8.1-18-18S10.1 2 20 2s18 8.1 18 18-8.1 18-18 18z",fill:"#fff"}),React.createElement("path",{d:"M20 0C9 0 0 9 0 20s9 20 20 20 20-9 20-20S31 0 20 0zm0 38c-9.9 0-18-8.1-18-18S10.1 2 20 2s18 8.1 18 18-8.1 18-18 18zm.2-24.6l8.8 11-1.6 1.2-7.2-9-7.2 9-1.6-1.2 8.8-11z"}))))}}]),t}();t.default=n},5039:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.getMonthName=a.getMonthName.bind(a),a.getDay=a.getDay.bind(a),a.createCalendar=a.createCalendar.bind(a),a.handleCalendarClick=a.handleCalendarClick.bind(a),a.handleClickOutside=a.handleClickOutside.bind(a),a.clickOutsideCalendarCallback=a.props.clickOutsideCalendarCallback,a.setDate=a.props.setDateCallback,a.state={currDate:a.props.startDate},a.calendarRef=React.createRef(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleClickOutside),document.removeEventListener("touchend",this.handleClickOutside)}},{key:"handleClickOutside",value:function(e){this.calendarRef.current&&!this.calendarRef.current.contains(e.target)&&this.clickOutsideCalendarCallback()}},{key:"componentDidMount",value:function(){this.createCalendar(this.state.currDate),document.addEventListener("mousedown",this.handleClickOutside),document.addEventListener("touchend",this.handleClickOutside)}},{key:"handleCalendarClick",value:function(e){this.setDate(new Date(e.date),!0)}},{key:"getMonthName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=new Array(12);return a[0]=t?"Jan":"January",a[1]=t?"Feb":"February",a[2]=t?"Mar":"March",a[3]=t?"Apr":"April",a[4]="May",a[5]=t?"Jun":"June",a[6]=t?"Jul":"July",a[7]=t?"Aug":"August",a[8]=t?"Sep":"September",a[9]=t?"Oct":"October",a[10]=t?"Nov":"November",a[11]=t?"Dec":"December",a[e.getMonth()]}},{key:"getDay",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=new Array(7);return a[0]=t?"Sun":"Sunday",a[1]=t?"Mon":"Monday",a[2]=t?"Tue":"Tuesday",a[3]=t?"Wed":"Wednesday",a[4]=t?"Thu":"Thursday",a[5]=t?"Fri":"Friday",a[6]=t?"Sat":"Saturday",a[e.getDay()]}},{key:"getDaysInMonth",value:function(e,t){return new Date(t,e+1,0).getDate()}},{key:"createCalendar",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=new Date,n=new Date(e),r="next"==t?new Date(n.setMonth(n.getMonth()+1)):"previous"==t?new Date(n.setMonth(n.getMonth()-1)):new Date(this.state.currDate),s=r.getMonth(),i=r.getFullYear(),o=new Date(i,s,1),l=o.getDay(),c=this.getDaysInMonth(s,i),u=new Date(i,s,0),p=Math.ceil((l+c)/7),d=[],h=1,f=u.getDate()-l+1,m=1,b=1,y=this.getMonthName(new Date)==this.getMonthName(n)&&a.getFullYear()==i,g=function(e){return e.setHours(0,0,0,0)>=(new Date).setHours(0,0,0,0)},v=0;v<p;v++){var R=[],E=0;if(0==v){for(;E<l;)R.push({index:E,enabled:"disabled",date:new Date(i,s,f),day:this.getDay(new Date(i,s,f)),number:f}),E++,f++;for(var S=E;S<7;S++)R.push({index:S,enabled:g(new Date(i,s,h))?null:"disabled",date:new Date(i,s,h),day:this.getDay(new Date(i,s,h)),number:h}),b=h+1,h++}else for(var w=0;w<7;w++)b<c+1?R.push({index:w+7*v,enabled:g(new Date(i,s,b))?null:"disabled",date:new Date(i,s,b),day:this.getDay(new Date(i,s,b)),number:b}):(R.push({index:w+7*v,enabled:"disabled",date:new Date(i,s,m),day:this.getDay(new Date(i,s,m)),number:m}),m++),b++;d.push({days:R})}this.setState({calendar:{month:{weeks:d,name:this.getMonthName(n),year:i,date:o,disablePrevMonth:y}}})}},{key:"render",value:function(){var e=this;return this.props.showCalendar&&this.state.calendar?React.createElement("div",{className:"calendar-overlay"},React.createElement("div",{className:"calendar",ref:this.calendarRef},React.createElement("table",null,React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",{colspan:"7",className:"datepicker-title"})),React.createElement("tr",{className:"title-row"},React.createElement("th",{className:"leftNav "+(this.state.calendar.month.disablePrevMonth?"disabled":"")},React.createElement("div",{onClick:function(){return e.createCalendar(e.state.calendar.month.date,"previous")}},React.createElement("i",{class:"fa fa-angle-left","aria-hidden":"true"}))),React.createElement("th",{className:"month-title",colspan:"5"},this.state.calendar.month.name," ",this.state.calendar.month.year),React.createElement("th",{className:"rightNav"},React.createElement("div",{onClick:function(){return e.createCalendar(e.state.calendar.month.date,"next")}},React.createElement("i",{class:"fa fa-angle-right","aria-hidden":"true"})))),React.createElement("tr",{className:"dow-row"},React.createElement("th",{className:"day-title"},"Sun"),React.createElement("th",{className:"day-title"},"Mon"),React.createElement("th",{className:"day-title"},"Tue"),React.createElement("th",{className:"day-title"},"Wed"),React.createElement("th",{className:"day-title"},"Thur"),React.createElement("th",{className:"day-title"},"Fri"),React.createElement("th",{className:"day-title"},"Sat"))),React.createElement("tbody",null,this.state.calendar.month.weeks.map((function(t){return React.createElement("tr",{className:"calendar-week-row"},t.days.map((function(t){return React.createElement("td",{className:"day-column "+t.enabled,ref:"tile"+t.index,onClick:function(a){a.preventDefault(),e.handleCalendarClick(t)}},t.number)})))})))))):null}}]),t}();t.default=n},6564:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={showDropdown:!1},a.toggleDropdown=a.toggleDropdown.bind(a),a.collapseDropdown=a.collapseDropdown.bind(a),a.handleClickOutside=a.handleClickOutside.bind(a),a.setRef=a.setRef.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidUpdate",value:function(e,t){this.props.closeOnPropChange&&this.props.closeOnPropChange!=e.closeOnPropChange&&this.setState({showDropdown:!1})}},{key:"toggleDropdown",value:function(){this.setState({showDropdown:!this.state.showDropdown})}},{key:"collapseDropdown",value:function(){this.setState({showDropdown:!1})}},{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"setRef",value:function(e){this.Ref=e}},{key:"handleClickOutside",value:function(e){this.Ref&&!this.Ref.contains(e.target)&&this.setState({showDropdown:!1})}},{key:"render",value:function(){return React.createElement("div",{className:"asc-dropdown "+(this.props.containerClass||""),ref:this.setRef},React.createElement("button",{className:"btn btn-link dropdown-toggle",type:"button",id:this.props.containerId,"aria-haspopup":"true","aria-expanded":!!this.state.showDropdown,onClick:this.toggleDropdown},this.props.dropdownButtonContent),React.createElement("div",{className:this.state.showDropdown?"asc-dropdown-menu show":"asc-dropdown-menu","aria-labelledby":this.props.containerId},this.props.dropdownContent))}}]),t}();t.default=n},3636:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.removeFilters=a.props.removeFiltersCallback,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"showCloseIcon",value:function(){return React.createElement("svg",{x:"0px",y:"0px",width:"18px",height:"18px",viewBox:"0 0 24 24",class:"icon",focusable:"false","aria-hidden":"true"},React.createElement("path",{d:"M12.7,12l7.1-7.1c0.2-0.2,0.2-0.5,0-0.7c-0.2-0.2-0.5-0.2-0.7,0L12,11.3L4.9,4.1C4.7,4,4.3,4,4.1,4.1C4,4.3,4,4.7,4.1,4.9\r l7.2,7.2l-7.1,7.1c-0.2,0.2-0.2,0.5,0,0.7C4.3,20,4.4,20,4.5,20c0.1,0,0.3,0,0.4-0.1l7.1-7.1l7.1,7.1c0.1,0.1,0.2,0.1,0.4,0.1\r s0.3,0,0.4-0.1c0.2-0.2,0.2-0.5,0-0.7L12.7,12z"}))}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"col"},React.createElement("div",{className:"remove-filter"},React.createElement("div",{className:"filtered"},React.createElement("h3",null,"Selected filters:")),React.createElement("ul",{class:"filtered-by-list"},this.props.filters.length>0?this.props.filters.map((function(t){return"hasOnlineScheduling"==t.filterName?React.createElement("li",null,React.createElement("button",{className:"filter-button-pill",rel:"nofollow",onClick:function(a){e.removeFilters(a,t.filterName)}},"Online Scheduling ",e.showCloseIcon())):React.createElement("li",null,React.createElement("button",{className:"filter-button-pill",rel:"nofollow",onClick:function(a){e.removeFilters(a,t.filterName)}},t.filterValue," ",e.showCloseIcon()))})):null,this.props.filters.length>1?React.createElement("li",null,React.createElement("button",{className:"filter-button-pill",rel:"nofollow",onClick:this.removeFilters},"Clear All Filters ",this.showCloseIcon())):null)))}}]),t}();t.default=n},2190:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){return React.createElement("div",null,this.props.isLoading?React.createElement("div",{id:"",className:"showbox loading-animation"},React.createElement("div",{className:"loader"},React.createElement("svg",{className:"circular",viewBox:"25 25 50 50"},React.createElement("circle",{className:"path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3","stroke-miterlimit":"10"})))):null)}}]),t}();t.default=n},6749:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"convertToLetter",value:function(e){var t="A".charCodeAt(0),a="";do{e-=1,a=String.fromCharCode(t+e%26)+a,e=e/26>>0}while(e>0);return a}},{key:"render",value:function(){return this.props.showPin?React.createElement("div",{className:"asc-search-result-pin-section"},React.createElement("div",{className:"asc-search-result-pin"},React.createElement("svg",{className:"asc-search-result-pin-icon",focusable:"false","aria-hidden":"true",viewBox:"0 0 22.7 30.5",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M11.3 30.5L1.7 17.4C.7 15.7 0 13.6 0 11.3 0 5.1 5.1 0 11.3 0s11.3 5.1 11.3 11.3c0 2.3-.7 4.4-1.8 6.1l-9.5 13.1z"})),React.createElement("span",{className:"asc-search-result-pin-number"},this.props.useLetters?this.convertToLetter(this.props.pinLabel):this.props.pinLabel))):null}}]),t}();t.default=n},3707:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}();function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.xhrRequests=[],a.state={listOpen:!1,selectedValue:a.props.inputLabel,selectedId:null,filterInputValue:null,term:null,type:a.props.type&&a.props.type<3?a.props.type:0,provider:[],specialty:[],providersPageSize:15,specialtiesPageSize:15,selectedSpecialtyIndex:null,selectedProviderIndex:null,specialties:a.props.allSpecialties},a.closeDropdown=a.closeDropdown.bind(a),a.isInputEnabled=a.isInputEnabled.bind(a),a.generateProviderSpecialtyQueryData=a.generateProviderSpecialtyQueryData.bind(a),a.selectInput=React.createRef(),a.termBox=React.createRef(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidMount",value:function(){if(window.addEventListener("click",this.closeDropdown),this.props.location||this.props.inputLabel?this.selectInput.current.classList.remove("disabled"):this.selectInput.current.classList.add("disabled"),this.props.location){var e=this.generateProviderSpecialtyQueryData(null,this.props.type,"");this.performProviderSpecialtySearch(e)}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("click",this.closeDropdown)}},{key:"componentDidUpdate",value:function(e){var t=this.state,a=(t.listOpen,t.selectedValue);if(this.props.location&&e.location!=this.props.location||this.props.radius&&this.props.radius!=e.radius){var n=this.generateProviderSpecialtyQueryData(15,this.props.type);this.performProviderSpecialtySearch(n)}this.props.location||this.props.inputLabel?(this.selectInput.current.classList.remove("disabled"),this.props.location!=e.location&&this.setState({selectedValue:null})):(this.selectInput.current.classList.add("disabled"),a&&a.length&&this.setState({selectedValue:null}))}},{key:"isInputEnabled",value:function(){return this.props.location||!1}},{key:"closeDropdown",value:function(e){this.selectInput&&!this.selectInput.current.contains(e.target)&&this.setState({listOpen:!1,selectedSpecialtyIndex:null,selectedProviderIndex:null,filterInputValue:null})}},{key:"toggleList",value:function(){var e=this;this.isInputEnabled()&&this.setState((function(e){return{listOpen:!e.listOpen}}),(function(){e.state.listOpen&&(e.termBox.current.focus(),e.termBox.current.value="")}))}},{key:"handleClear",value:function(e){var t=this;switch(e.stopPropagation(),this.props.type){case 1:this.props.onProviderSelect("specialties","",null,!1);break;case 2:this.props.onProviderSelect("providerId","",null,!1);break;default:this.props.onProviderSelect("specialties","",null,!1),this.props.onProviderSelect("providerId","",null,!1)}this.setState({selectedValue:null,listOpen:!0,filterInputValue:null,selectedSpecialtyIndex:null,selectedProviderIndex:null},(function(){t.termBox.current.value="",t.termBox.current.focus()}))}},{key:"handleSelectItem",value:function(e,t,a){var r,s=JSON.parse(JSON.stringify(this.state[a]));switch(s.map((function(e){return e.id==t?e.selected=!0:e.selected=!1})),this.setState((n(r={},a,s),n(r,"selectedValue",e),n(r,"selectedId",t),n(r,"listOpen",!1),n(r,"filterInputValue",null),r)),a){case"provider":this.props.onProviderSelect("providerId",t,null,!1);break;case"specialty":this.props.onSpecialtySelect("specialties",e,null,!1)}}},{key:"handleDropdownScroll",value:function(e){var t;if(t=e.target,Math.round(t.scrollHeight)-Math.round(t.scrollTop)===Math.round(t.clientHeight)){var a=this.termBox.current.value,n="specialtyResults"==e.target.id?this.state.specialtiesPageSize+15:this.state.providersPageSize+15,r="specialtyResults"==e.target.id?1:2,s=this.generateProviderSpecialtyQueryData(n,r,a);this.performProviderSpecialtySearch(s,e.target.id)}}},{key:"handleInputChange",value:function(e){e.preventDefault();var t=this.generateProviderSpecialtyQueryData(15,this.props.type,e.target.value);this.performProviderSpecialtySearch(t),this.setState({filterInputValue:e.target.value})}},{key:"generateProviderSpecialtyQueryData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n={term:a,page:1,pageSize:e,include:0==t?"providers,specialties":1==t?"specialties":"providers",geoSpatialFilter:"providers",geoDistanceOptions:this.props.geospatialFilter?{location:this.props.location,radius:this.props.radius}:null,providerOptions:{matchType:"contains",matchAgainst:"displayName",sortBy:"lastName"}};return n}},{key:"mapSpecialtiesDataWithType",value:function(e,t,a,n){var r=!!a,s=n.map((function(e){return{id:e.id||e.Id,text:e.name||e.Name||e.text||e.Text,type:t,disabled:r,selected:!1}}));return r&&(a=a.toLowerCase(),s=s.filter((function(e){return e.text.toLowerCase().includes(a)}))),r&&e&&e.results&&e.results.length?s.map((function(t){return e.results.find((function(e){return e.id===t.id}))&&(t.disabled=!1),t})):s}},{key:"mapDataWithType",value:function(e,t){return e&&e.results&&e.results.length?e.results.map((function(e){return e.type=t,e.selected=!1,e})):[]}},{key:"processResults",value:function(e){var t=[];0!=this.props.type&&1!=this.props.type||t.push({text:"Specialties",children:this.props.geospatialFilter?this.mapSpecialtiesDataWithType(e.specialties,"specialty",this.state.term,this.props.allSpecialties):this.mapDataWithType(e.specialties,"specialty")}),0!=this.props.type&&2!=this.props.type||t.push({text:"Doctors",children:this.mapDataWithType(e.providers,"provider")});var a={};return a.results=t,a}},{key:"performProviderSpecialtySearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.setState({isLoading:!0},(function(){var a=this,n=this.state;this.xhrRequests.forEach((function(e){return e.abort()})),this.xhrRequests=[];var r=jQuery.ajax({type:"POST",url:"/api/v2/typeahead",data:JSON.stringify(e),contentType:"application/json",dataType:"json",success:function(r){var s=a.processResults(r),i={specialty:0==a.props.type||1==a.props.type?"doctorResults"==t?n.specialty:s.results[0].children:null,provider:0==a.props.type?"specialtyResults"==t?n.provider:s.results[1].children:2==a.props.type?1==t?n.provider:s.results[0].children:null,specialtiesPageSize:0==a.props.type||1==a.props.type?"specialtyResults"==t?e.pageSize:n.specialtiesPageSize:0,providersPageSize:0==a.props.type||2==a.props.type?"doctorResults"==t?e.pageSize:n.providersPageSize:0,isLoading:!1};a.setState(i)}.bind(this)});this.xhrRequests.push(r)}))}},{key:"onItemSelect",value:function(e,t){var a=JSON.parse(JSON.stringify(this.state[t]));a.map((function(t){return t.id==e?t.selected=!0:t.selected=!1})),this.setState(n({},t,a))}},{key:"handleKeyDown",value:function(e,t,a){var n=this;switch(e.key){case"Esc":case"Escape":case"Enter":e.preventDefault(),null===this.state.selectedProviderIndex?this.handleSelectItem(this.state.selectedValue,this.state.selectedValue,"specialty"):null===this.state.selectedSpecialtyIndex?this.handleSelectItem(this.state.selectedValue,this.state.selectedId,"provider"):(this.handleSelectItem("","","specialty"),this.handleSelectItem("","","provider"));break;case"Home":e.preventDefault(),null===this.state.selectedProviderIndex?this.setState({selectedSpecialtyIndex:0,selectedValue:t[0].text}):this.setState({selectedProviderIndex:0,selectedValue:a[0].text,selectedId:a[0].id});break;case"Up":case"ArrowUp":e.preventDefault();var r=0,s=function(e){null!==n.state[e]&&(r=n.state[e]>=1?n.state[e]-1:0)};null===this.state.selectedProviderIndex?(s("selectedSpecialtyIndex"),this.setState({selectedSpecialtyIndex:r,selectedValue:t[r].text})):(s("selectedProviderIndex"),this.setState({selectedProviderIndex:r,selectedValue:a[r].text,selectedId:a[r].id}));break;case"Down":case"ArrowDown":e.preventDefault();var i=0,o=function(e,t){null!==n.state[e]&&(i=n.state[e]<t.length-1?n.state[e]+1:t.length-1)};null===this.state.selectedProviderIndex?(o("selectedSpecialtyIndex",t),this.setState({selectedSpecialtyIndex:i,selectedValue:t[i].text})):(o("selectedProviderIndex",a),this.setState({selectedProviderIndex:i,selectedValue:a[i].text,selectedId:a[i].id}));break;case"End":if(e.preventDefault(),null===this.state.selectedProviderIndex){var l=t.length-1;this.setState({selectedSpecialtyIndex:l,selectedValue:t[l].text})}else{var c=a.length-1;this.setState({selectedProviderIndex:c,selectedValue:a[c].text,selectedId:a[c].Id})}break;case"Tab":e.preventDefault(),null!==this.state.selectedSpecialtyIndex&&this.setState({selectedProviderIndex:0,selectedSpecialtyIndex:null});break;default:return}}},{key:"handleInputHeaderKeyDown",value:function(e){switch(e.key){case"Enter":e.preventDefault(),this.setState({listOpen:!0});break;default:return}}},{key:"render",value:function(){var e=this,t=this.state,a=t.listOpen,n=t.selectedValue,r=t.filterInputValue,s=t.specialty,i=t.provider,o=t.selectedSpecialtyIndex,l=t.selectedProviderIndex,c=s,u=i,p=0==this.props.type||1==this.props.type?r?c.filter((function(e){return e.text.toLowerCase().includes(r.toLowerCase())})):c:null,d=0==this.props.type||2==this.props.type?u:null;return React.createElement("div",{className:"asc-select-dropdown-input-wrapper",ref:this.selectInput},React.createElement("select",{className:"asc-select-dropdown-hidden",tabindex:"-1","aria-hidden":"true"},n?React.createElement("option",{value:n},n):""),React.createElement("div",{className:"asc-select-dropdown-input-header",onClick:function(){return e.toggleList()},tabIndex:"0",role:"combobox",onKeyDown:function(t){return e.handleInputHeaderKeyDown(t)}},React.createElement("div",{className:"asc-select-dropdown-input-header-title "+(n?"":"placeholder")},n||this.props.placeholder,n?React.createElement("span",{class:"clear",title:"Remove item",onClick:function(t){return e.handleClear(t)}},"×"):""),n?"":a?React.createElement("span",{className:"asc-select-dropdown-selection-arrow angle-up",role:"presentation"},React.createElement("i",{role:"presentation"})):React.createElement("span",{className:"asc-select-dropdown-selection-arrow angle-down",role:"presentation"},React.createElement("i",{role:"presentation"}))),a&&React.createElement("div",{className:"asc-select-dropdown-results",onClick:function(e){return e.stopPropagation()}},React.createElement("div",{className:"asc-select-dropdown-search-input"},React.createElement("input",{className:"asc-select-dropdown-search-field",type:"search",tabindex:"0",autocomplete:"off",autocorrect:"off",autocapitalize:"none",spellcheck:"false",role:"searchbox","aria-autocomplete":"list",onChange:function(t){return e.handleInputChange(t)},onKeyDown:function(t){return e.handleKeyDown(t,p,d)},value:r,ref:this.termBox})),0==this.props.type||1==this.props.type?React.createElement(React.Fragment,null,React.createElement("div",{className:"asc-select-dropdown-group"},React.createElement("label",{className:"group-name"},"Specialties"),React.createElement("ul",{id:"specialtyResults",onScroll:function(t){return e.handleDropdownScroll(t)},role:"listbox",tabindex:"0"},p?p.map((function(t,a){return React.createElement("li",{className:"asc-select-dropdown-input-list-item asc-select-results-option","aria-selected":o===a,role:"option",key:t.id,onClick:function(){return e.handleSelectItem(t.text,t.id,t.type)}},t.text)})):null))):null,0==this.props.type||2==this.props.type?React.createElement(React.Fragment,null,React.createElement("div",{className:"asc-select-dropdown-group"},React.createElement("label",{className:"group-name"},"Doctors"),React.createElement("ul",{id:"doctorResults",onScroll:function(t){return e.handleDropdownScroll(t)},role:"listbox",tabindex:"0"},d?d.map((function(t,a){return React.createElement("li",{className:"asc-select-dropdown-input-list-item asc-select-results-option","aria-selected":l===a,role:"option",key:t.id,onClick:function(){return e.handleSelectItem(t.text,t.id,t.type)}},t.text)})):null))):null))}}]),t}();t.default=r},1318:(e,t,a)=>{var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=p(a(9915)),i=p(a(1860)),o=p(a(9835)),l=p(a(3636)),c=p(a(7393)),u=p(a(1088));function p(e){return e&&e.__esModule?e:{default:e}}function d(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleMobileFilter=function(){a.setState({mobileFilterIsHidden:!a.state.mobileFilterIsHidden})},a.getFacetUrl=a.getFacetUrl.bind(a),a.submitSearch=a.submitSearch.bind(a),a.isFacetSelected=a.isFacetSelected.bind(a),a.isAnyFacetSelected=a.isAnyFacetSelected.bind(a),a.changeQuery=a.changeQuery.bind(a),a.nextPage=a.nextPage.bind(a),a.removeFilters=a.removeFilters.bind(a),a.performSearch=a.performSearch.bind(a),a.buildUrl=a.buildUrl.bind(a),a.getFeatureTogglesFromQueryParams=a.getFeatureTogglesFromQueryParams.bind(a),a.state={isLoading:!1,query:a.props.data?a.props.data.Request:null,results:a.props.data.results?a.props.data.results.results:null,facets:a.props.data.results?a.props.data.results.facets:null,specialties:a.props.data?a.props.data.Specialties:null,enableAjax:a.props.data?a.props.data.EnableAjax:null,resultsPageUrl:a.props.data?a.props.data.ResultsPageUrl:null,amgIcon:a.props.data?a.props.data.AscensionMedicalGroupOverlayIconUrl:null,profileImage:a.props.data?a.props.data.Settings.ProfileImageUrl:null,amgText:a.props.data?a.props.data.Settings.AscensionMedicalGroupBannerText:null,isEnd:!(!a.props.data.results||a.props.data.results.pagination.currentPage!=a.props.data.results.pagination.totalPages),mobileFilterIsHidden:!0,removeFilterIsHidden:!0,selectedFilters:a.props.data.selectedFilters?a.props.data.selectedFilters:[],shouldSearch:a.props.data.ShouldSearch,request:a.props.data?a.props.data.request:null,settings:a.props.data?a.props.data.Settings:null,pagination:a.props.data.results?a.props.data.results.pagination:null,specialtyLabel:a.props.data.request&&Array.isArray(a.props.data.request.filters.specialties)?a.props.data.request.filters.specialties[0]:a.props.data?a.props.data.Settings.SpecialtyInputLabel:null,lastNameLabel:a.props.data.request&&Array.isArray(a.props.data.request.filters.displayName)?a.props.data.request.filters.displayName[0]:a.props.data?a.props.data.Settings.LastNameInputLabel:null,clearFilters:a.props.data.ClearFilters,location:a.props.data.request.geoDistanceOptions?a.props.data.request.geoDistanceOptions.location:null},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"getFeatureTogglesFromQueryParams",value:function(){return window.location.search.slice(1).split("&").filter((function(e){return 0===e.indexOf("feature.")})).map((function(e){return e.split("=")})).reduce((function(e,t){var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,s=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(a.push(i.value),!t||a.length!==t);n=!0);}catch(e){r=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw s}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(t.map(decodeURIComponent),2),r=a[0],s=a[1];return r=r.replace("feature.",""),n({},e,function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}({},r,s=s||!0))}),{})}},{key:"nextPage",value:function(e){e.preventDefault();var t=parseInt(this.state.request.page?this.state.request.page:0)>0?parseInt(this.state.request?this.state.request.page:0)+1:0;this.changeQuery("page",t)}},{key:"isFacetSelected",value:function(e,t){return!!this.state.request.filters[e]&&this.state.request.filters[e].indexOf(t.displayName)>-1}},{key:"isAnyFacetSelected",value:function(e,t){var a=this,n=!1;return t.map((function(t){a.isFacetSelected(e,t)&&(n=!0)})),n}},{key:"removeFilters",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.preventDefault();var a=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};t?delete a.filters[t]:a.filters=this.state.request.filters.employerAffiliation?{employerAffiliation:this.state.request.filters.employerAffiliation}:{},this.setState({removeFilterIsHidden:!0,results:[]},(function(){this.performSearch(a)}))}},{key:"getSelectedFilters",value:function(e){var t=["specialties","language","hasOnlineScheduling","gender"],a=[];return Object.keys(e).forEach((function(n){t.indexOf(n)>-1&&a.push({filterName:n,filterValue:e[n]})})),a}},{key:"getFacetUrl",value:function(e,t){var a=this.changeQuery(e,t);return this.buildUrl(a)}},{key:"buildArrayQueries",value:function(e){var t="",a="";return Object.keys(e).forEach((function(n){Array.isArray(e[n])&&e[n].length>1?(a=e[n].map((function(e,t){return e.length>0?"&"+n+t+"="+encodeURIComponent(e):""})),t+=a):(a=e[n].length>0&&Array.isArray(e[n])?"&"+n+"="+encodeURIComponent(e[n][0]):"number"==typeof e[n]?"&"+n+"="+e[n].toString():e[n].length>0?"&"+n+"="+encodeURIComponent(e[n]):"",t+=a)})),t}},{key:"buildUrl",value:function(e){var t=e?JSON.parse(JSON.stringify(e)):{},a=t.filters.employerAffiliation?"":"&employerAffiliation=All",n="";return t&&(n="?page="+encodeURIComponent(t.page)+"&sortBy="+encodeURIComponent(t.sortBy),n+=this.buildArrayQueries(t.geoDistanceOptions),n+=this.buildArrayQueries(t.filters),n+=a),n}},{key:"submitSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.setState({results:[]},(function(){this.performSearch(e)}))}},{key:"changeQuery",value:function(e,t){var a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n&&n.preventDefault();var s=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{},i=void 0;switch(e){case"sortBy":s[e]!=t&&(s.page=1,s[e]=t,this.setState({request:s},r?function(){return a.performSearch(null,!1,i)}:null));break;case"page":s[e]=t,this.setState({request:s},r?function(){return a.performSearch(null,!1,i)}:null);break;case"radius":case"location":s.geoDistanceOptions[e]=t,this.setState({request:s});break;default:delete s.filters[e],t&&"any"!=t&&(s.filters[e]=Array.isArray(t)?[].concat(d(t)):[t]),i=!s.filters.length>0,this.setState({request:s},r?function(){return a.performSearch(null,!0,i)}:null)}}},{key:"performSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setState({isLoading:!0},(function(){var n=this,r=this.state.results,s=this.state.facets,i=e||this.state.request;t&&(i.page=1),i.geoDistanceOptions.location!=this.state.location&&(i.filters.updateSearch=[!0]),jQuery.ajax({type:"POST",url:"/api/v2/providers/search",data:JSON.stringify(i),success:function(e){var o={isLoading:!1,results:!t&&e.response&&i.page>1?r.concat(e.response.results):e.response?e.response.results:null,request:e.request,pagination:e.response.pagination,facets:a?e.response.facets:s,page:t?1:e.request.page,pageSize:e.request.pageSize,isEnd:i.page==e.response.pagination.totalPages,shouldSearch:!0,removeFilterIsHidden:!t,settings:e.settings,selectedFilters:n.getSelectedFilters(i.filters),clearFilters:!0,profileImage:e.settings.ProfileImageUrl,amgText:e.settings.AscensionMedicalGroupBannerText,specialtyLabel:Array.isArray(e.request.filters.specialties)?e.request.filters.specialties[0]:e.settings.SpecialtyInputLabel,lastNameLabel:Array.isArray(e.request.filters.displayName)?e.request.filters.displayName[0]:e.settings.LastNameInputLabel,location:i.geoDistanceOptions.location};n.setState(o,(function(){var t=e&&e.request?n.buildUrl(e.request)+"&shouldSearch=true":null;window.history.pushState(t,"",t)}))}.bind(this),contentType:"application/json",dataType:"json"})}))}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"col-12 doctor-search-component"},React.createElement(s.default,{bannerTitle:this.props.data.BannerTitle,bannerSubTitle:this.props.data.BannerSubTitle,isCollapsed:this.state.shouldSearch,className:"appt-booking"}),React.createElement("div",{className:"col-12"},React.createElement(i.default,{query:this.state.query,clearFilters:this.state.clearFilters,filters:this.state.request.filters,submitSearchCallback:this.submitSearch,amgIcon:this.props.data.AscensionMedicalGroupOverlayIconUrl,amgText:this.props.data.AscensionMedicalGroupBannerText,changeQueryCallback:this.changeQuery,specialties:this.state.specialties,location:this.state.request.geoDistanceOptions.location,radiusLabelBefore:this.props.data.RadiusLabelBefore,radiusLabelAfter:this.props.data.RadiusLabelAfter,lastNameLabel:this.props.data.LastNameLabel,specialtyLabel:this.props.data.SpecialtyLabel,specialtyInputLabel:this.props.data.request.filters&&this.props.data.request.filters.specialties?this.props.data.request.filters.specialties:this.props.data.SpecialtyInputLabel,lastNameInputLabel:this.props.data.request&&this.props.data.request.filters&&this.props.data.request.filters.providerId&&this.props.data.results.results&&this.props.data.results.results.length>0?this.props.data.results.results[0].data.provider.displayName:this.props.data.LastNameInputLabel,searchButtonLabel:this.props.data.SearchButtonLabel,optionalInputLabel:this.props.data.OptionalInputLabel,request:this.state.request,radius:this.state.request.geoDistanceOptions.radius}),this.state.shouldSearch&&this.state.request.geoDistanceOptions&&this.state.request.geoDistanceOptions.location?React.createElement(React.Fragment,null,React.createElement("div",{className:"mobile-filter-bar container-fluid d-block d-md-none"},React.createElement("div",{className:"row"},React.createElement("div",{className:"col"},React.createElement("button",{onClick:this.toggleMobileFilter,className:this.state.mobileFilterIsHidden?"filter-toggle closed":"filter-toggle open"},"Filters ",React.createElement("i",{className:"search-icon","aria-hidden":"true"}))))),React.createElement("div",{className:"section-container"},React.createElement("div",{className:"row"},React.createElement("div",{className:this.state.mobileFilterIsHidden?"facets-container closed":"facets-container open"},React.createElement("div",{className:"filter-facets"},React.createElement("div",{className:"filter-head d-none d-md-block"},React.createElement("h3",null,this.props.data.FiltersLabel)),React.createElement("div",{id:"refineAccordion",className:"panel-group"},React.createElement(o.default,{Label:this.props.data.LanguageFilterLabel,ClearFilterLabel:this.props.data.ClearFilterLabel,QueryParameter:"language",FilterOptions:Array.isArray(this.state.facets)&&this.state.facets.length>=1?this.state.facets[0].values.sort((function(e,t){return e.displayName<t.displayName?-1:e.displayName>t.displayName?1:0})):null,FilterProperty:"Languages",ApplyFilterCallback:this.changeQuery,GetFacetUrl:this.getFacetUrl,IsFacetSelectedCallback:this.isFacetSelected,isAnyFacetSelectedCallback:this.isAnyFacetSelected}),React.createElement(o.default,{Label:this.props.data.SpecialtiesFilterLabel,ClearFilterLabel:this.props.data.ClearFilterLabel,QueryParameter:"specialties",FilterOptions:Array.isArray(this.state.facets)&&this.state.facets.length>1?this.state.facets[1].values.sort((function(e,t){return e.displayName<t.displayName?-1:e.displayName>t.displayName?1:0})):null,FilterProperty:"specialities_labels",ApplyFilterCallback:this.changeQuery,GetFacetUrl:this.getFacetUrl,IsFacetSelectedCallback:this.isFacetSelected,isAnyFacetSelectedCallback:this.isAnyFacetSelected}),React.createElement(o.default,{Label:this.props.data.GenderFilterLabel,ClearFilterLabel:this.props.data.ClearFilterLabel,QueryParameter:"gender",FilterOptions:Array.isArray(this.state.facets)&&this.state.facets.length>2?this.state.facets[2].values.sort((function(e,t){return e.displayName<t.displayName?-1:e.displayName>t.displayName?1:0})):null,FilterProperty:"gender",ApplyFilterCallback:this.changeQuery,GetFacetUrl:this.getFacetUrl,IsFacetSelectedCallback:this.isFacetSelected,isAnyFacetSelectedCallback:this.isAnyFacetSelected}),React.createElement(o.default,{Label:this.props.data.SchedulingOptionsLabel,ClearFilterLabel:this.props.data.ClearFilterLabel,QueryParameter:"hasOnlineScheduling",FilterOptions:[{displayName:this.props.data.OnlineSchedulingLabel,value:!0}],FilterProperty:"hasOnlineScheduling",ApplyFilterCallback:this.changeQuery,GetFacetUrl:this.getFacetUrl,IsFacetSelectedCallback:this.isFacetSelected,isAnyFacetSelectedCallback:this.isAnyFacetSelected})))),React.createElement("div",{className:"fad-search-results-container"},React.createElement("div",{className:this.state.selectedFilters.length>0?"fad-applied-filters row open":"fad-applied-filters row closed"},React.createElement(l.default,{removeFiltersCallback:this.removeFilters,filters:this.state.selectedFilters})),React.createElement("div",{className:"fad-provider-tabs"},React.createElement("ul",{className:"nav nav-tabs"},React.createElement("li",{className:this.state.request.filters.employerAffiliation?"fad-not-active-tab":"fad-active-tab"},React.createElement("a",{className:"fad-tab",onClick:function(t){return e.changeQuery("employerAffiliation","any",t,!0)}},"All Providers")),React.createElement("li",{className:this.state.request.filters.employerAffiliation?"fad-active-tab":"fad-not-active-tab"},React.createElement("a",{className:"fad-tab",onClick:function(t){return e.changeQuery("employerAffiliation","Ascension Medical Group",t,!0)}},"Ascension Medical Group"))),React.createElement("div",{id:"fad-search-summary"},this.state.results?React.createElement("span",{className:"results-summary"},this.state.pagination?this.state.pagination.totalResults:null," Results within ",this.state.request.geoDistanceOptions.radius," miles of ",this.state.request.geoDistanceOptions.location):null),React.createElement("div",{className:"fad-sort"},React.createElement("div",{className:"sortOptions"},"Sort by:",React.createElement("a",{className:this.state.request&&"distance"===this.state.request.sortBy?"fad-sort-active":"fad-sort-inactive",onClick:function(t){return e.changeQuery("sortBy","distance",t)}},"Distance"),"|",React.createElement("a",{id:"FADLinkSortByName",className:this.state.request&&"lastName"===this.state.request.sortBy?"fad-sort-active":"fad-sort-inactive",onClick:function(t){return e.changeQuery("sortBy","lastName",t)}},"Name A-Z")))),React.createElement(c.default,{isLoading:this.state.isLoading,searchResults:this.state.results,recordCount:this.state.pagination?this.state.pagination.totalResults:null,pageSize:parseInt(this.state.request?this.state.request.pageSize:0),currentPage:parseInt(this.state.request?this.state.request.page:0),searchLocation:this.state.request?this.state.request.geoDistanceOptions.location:null,profileImage:this.state.profileImage,amgIcon:this.state.amgIcon,nextPageCallback:this.nextPage,isEnd:this.state.isEnd,noResultsMessage:this.props.data.NoResultsFound,problemMessage:this.props.data.ProblemWithSearch,noMoreResultsTitle:this.props.data.NoMoreResultsTitleMessage,noResultsTitle:this.props.data.NoResultsTitleMessage,addressTitle:this.props.data.ProviderAddressLabel,viewProfileLabel:this.props.data.ViewProfileLabel,scheduleAppointmentButtonLabel:this.props.data.ScheduleAppointmentButtonLabel,callForAppointmentButtonLabel:this.props.data.CallForAppointmentButtonLabel,scheduleFullButtonLabel:this.props.data.ScheduleFullButtonLabel,loadMoreLabel:this.props.data.LoadMoreReultsButtonLabel,contactLabel:this.props.data.ProviderContactLabel,directionsLink:this.state.settings.DirectionsLink,scheduleAnAppointmentReultsPage:this.props.data.ScheduleAnAppointmentReultsPage,hospitalAffiliationLabel:this.props.data.HospitalAffiliationLabel})))),React.createElement(u.default,null)):null))}}]),t}();t.Z=h},9835:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleSection=a.toggleSection.bind(a),a.applyFilter=a.props.ApplyFilterCallback,a.getFacetUrl=a.props.getFacetUrl,a.isFacetSelected=a.props.IsFacetSelectedCallback,a.isAnyFacetSelected=a.props.isAnyFacetSelectedCallback,a.state={isFacetPanelOpen:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"toggleSection",value:function(){this.setState({isFacetPanelOpen:!this.state.isFacetPanelOpen})}},{key:"render",value:function(){var e=this,t=this.props.FilterOptions;return React.createElement("div",{className:"facets-section facet-panel"},React.createElement("h4",{className:this.state.isFacetPanelOpen?"facets-section-title facet-panel-head active":"facets-section-title facet-panel-head",onClick:this.toggleSection,"data-target":"#"+this.props.Label},this.props.Label,React.createElement("span",{className:"facets-section-expander"},React.createElement("i",{className:"fa fa-chevron-down",role:"button","aria-expanded":"false"}))),React.createElement("ul",{id:this.props.Label,className:this.state.isFacetPanelOpen?"facets-section-values facet-panel-content":"facets-section-values facet-panel-content closed"},t?t.map((function(a){return e.isFacetSelected(e.props.QueryParameter,a)?React.createElement(React.Fragment,null,React.createElement("li",null,React.createElement("button",{className:"filter-button-pill button-pill-secondary",onClick:function(t){return e.applyFilter(e.props.QueryParameter,null,t,!0)}},e.props.ClearFilterLabel,React.createElement("svg",{x:"0px",y:"0px",width:"18px",height:"18px",viewBox:"0 0 24 24",className:"icon",focusable:"false","aria-hidden":"true"},React.createElement("path",{d:"M12.7,12l7.1-7.1c0.2-0.2,0.2-0.5,0-0.7c-0.2-0.2-0.5-0.2-0.7,0L12,11.3L4.9,4.1C4.7,4,4.3,4,4.1,4.1C4,4.3,4,4.7,4.1,4.9\r l7.2,7.2l-7.1,7.1c-0.2,0.2-0.2,0.5,0,0.7C4.3,20,4.4,20,4.5,20c0.1,0,0.3,0,0.4-0.1l7.1-7.1l7.1,7.1c0.1,0.1,0.2,0.1,0.4,0.1\r s0.3,0,0.4-0.1c0.2-0.2,0.2-0.5,0-0.7L12.7,12z"})))),React.createElement("li",null,a.displayName," ",a.count?"("+a.count+")":null)):e.isAnyFacetSelected(e.props.QueryParameter,t)?null:React.createElement("li",null,React.createElement("a",{onClick:function(t){return e.applyFilter(e.props.QueryParameter,a.displayName,t,!0)}},a.displayName," ",a.count?"("+a.count+")":null))})):null))}}]),t}();t.default=n},9460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.isAMG=a.isAMG.bind(a),a.listSpecialties=a.listSpecialties.bind(a),a.getAddressInfo=a.getAddressInfo.bind(a),a.imgError=a.imgError.bind(a),a.getDistance=a.getDistance.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"isAMG",value:function(e){if("Ascension Medical Group"===e.employerAffiliation)return React.createElement("span",{className:"tooltip-dark","data-title":"Ascension Medical Group"},React.createElement("img",{src:this.props.amgIcon,className:"AMG_Bug list",alt:"Ascension Medical Group"}))}},{key:"listSpecialties",value:function(e){for(var t=[],a=0;a<e.length;a++)t.push(React.createElement("li",null,e[a].Label));return{specialtiesList:t}}},{key:"getDistance",value:function(e){return e&&e.length>0?e[0].distance.toFixed(2):null}},{key:"getAddressInfo",value:function(e,t){var a=e&&e.length>0?e[0].location:null;if(a){var n=a.address.street+" "+a.address.street2+" "+a.address.city+" "+a.address.stateAbbreviation+" "+a.address.zip;return React.createElement("div",{className:"fad-results-address"},React.createElement("div",{className:"provider-contact-info"},React.createElement("div",{className:"provider-info-label"},this.props.addressTitle),React.createElement("div",{className:"provider-results-item-address"},React.createElement("a",{href:""+this.props.directionsLink+n,target:"_blank",className:"directions-link",title:"Directions"},React.createElement("div",{className:"fad-results-location-name"},a.displayName),React.createElement("div",{className:"fad-results-address"},a.address.street),React.createElement("div",{className:"fad-results-address"},a.address.street2),React.createElement("div",{className:"fad-results-city-state"},React.createElement("span",null,a.address.city+", "+a.address.stateAbbreviation+" "+a.address.zip))))),React.createElement("div",{className:"provider-phone"},React.createElement("div",{className:"LG_Eyebrow"},this.props.contactLabel),React.createElement("div",{className:"spaceBefore"}),React.createElement("div",null,React.createElement("a",{href:"tel:"+a.phoneNumber},a.phoneNumber))),t.length>0?React.createElement("div",{className:"LG_Eyebrow"},this.props.hospitalAffiliationLabel):null,React.createElement("div",{className:"hospital-affiliations"},t?t.map((function(e,t){var a=t>0?React.createElement("span",null,", "):"";return React.createElement("span",{class:"hospital-affiliation"},a,e.name)})):null))}}},{key:"imgError",value:function(e){return e.target.onerror="",e.target.src=this.props.profileImage,!0}},{key:"render",value:function(){var e=this.props.searchResultsItem.data.provider,t=this.props.searchResultsItem.data.locations,a=this.props.searchLocation,n=this.props.profileImage,r=this.props.searchResultsItem.data.provider.url,s=this.isAMG(e);return React.createElement("div",{className:"Ascension Medical Group"==e.employerAffiliation?"amg-provider":""},React.createElement("div",{className:"provider-list-result"},React.createElement("div",{className:"provider-holder row"},React.createElement("div",{className:"columnPhoto col-md-2 col-sm-3"},React.createElement("div",{className:"photoHolder square text-center"},React.createElement("div",{className:"relativePhotoHolder"},React.createElement("a",{href:r},React.createElement("img",{src:e.photoUrl?e.photoUrl:n,title:e.displayName,alt:e.displayName,onError:this.imgError,className:"profile-photo"})))),s),React.createElement("div",{className:"provider-column col-md-10 col-sm-9"},React.createElement("div",{className:"provider-row col-lg-7"},React.createElement("div",{className:"col"},a?React.createElement("div",{className:"provider-distance"},this.getDistance(t)," miles from ",React.createElement("span",{className:"location"},a)," "):null,React.createElement("h1",{className:"nameHead provider-results-item-name"},React.createElement("a",{href:r},e.displayName)),React.createElement("h4",{className:"sr-only"},"Specialties:"),React.createElement("div",{className:"specialties-list provider-results-item-specialities"},e.specialities?e.specialities.map((function(e,t){var a=t>0?React.createElement("span",null,", "):"";return React.createElement("span",{class:"listSpecialties"},a,e.speciality.name)})):null),this.getAddressInfo(t,e.hospitalAffiliations))),React.createElement("div",{className:"provider-contact-row col-lg-5"},React.createElement("div",{class:"provider-links"},React.createElement("div",{className:"gap10 visible-xs"}),React.createElement("div",{className:"LG_Eyebrow"}),React.createElement("div",{className:"doctor-buttons"},null!=s&&e.hasAvailableAppointments&&e.hasOnlineScheduling&&e.inQuickerUrl?React.createElement("div",{class:"button-primary"},React.createElement("a",{href:e.inQuickerUrl,target:"_blank"},this.props.scheduleAppointmentButtonLabel)):null!=s&&e.hasAvailableAppointments&&!e.hasOnlineScheduling?React.createElement("div",{class:"button-secondary"},React.createElement("a",{href:r+"#location-container",class:"button appt-btn"},this.props.scheduleFullButtonLabel?this.props.scheduleFullButtonLabel:this.props.callForAppointmentButtonLabel)):null!=s?React.createElement("div",{class:"button-secondary"},React.createElement("a",{href:r+"#location-container"},this.props.callForAppointmentButtonLabel)):null,React.createElement("div",{class:"view-profile-link"},React.createElement("a",{href:r},this.props.viewProfileLabel))),React.createElement("div",{className:"spaceBefore"})))),React.createElement("div",{className:"clearfix"}))))}}]),t}();t.default=n},7393:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=i(a(9460)),s=i(a(2190));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.nextPage=a.props.nextPageCallback,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"render",value:function(){var e=this;return React.createElement("div",{className:"provider-results"},this.props.searchResults&&this.props.searchResults.length>0?this.props.searchResults.map((function(t){return React.createElement(r.default,{key:t.data.provider.id,searchLocation:e.props.searchLocation,searchResultsItem:t,amgIcon:e.props.amgIcon,profileImage:e.props.profileImage,addressTitle:e.props.addressTitle,viewProfileLabel:e.props.viewProfileLabel,callForAppointmentButtonLabel:e.props.callForAppointmentButtonLabel,scheduleAppointmentButtonLabel:e.props.scheduleAppointmentButtonLabel,scheduleFullButtonLabel:e.props.scheduleFullButtonLabel,contactLabel:e.props.contactLabel,directionsLink:e.props.directionsLink,scheduleAnAppointmentReultsPage:e.props.scheduleAnAppointmentReultsPage,hospitalAffiliationLabel:e.props.hospitalAffiliationLabel})}),this):null,this.props.isLoading?React.createElement(s.default,{isLoading:this.props.isLoading}):0===this.props.recordCount||this.props.isEnd?React.createElement("div",{className:"asc-search-no-results-msg"},0===e.props.recordCount?React.createElement("h3",null,e.props.noResultsTitle):React.createElement("h3",null,e.props.noMoreResultsTitle),React.createElement("div",{dangerouslySetInnerHTML:{__html:e.props.noResultsMessage}})):this.props.isEnd?React.createElement("div",{dangerouslySetInnerHTML:{__html:e.props.problemMessage}}):React.createElement("div",{className:"more-results"},React.createElement("a",{href:"javascript:void(0);",onClick:function(t){return e.nextPage(t)}},e.props.loadMoreLabel)))}}]),t}();t.default=o},9160:(e,t,a)=>{var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(3102))&&n.__esModule?n:{default:n},i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={results:a.props.data.results?a.props.data.results.results:null,amgIcon:a.props.data?a.props.data.AscensionMedicalGroupOverlayIconUrl:null,profileImage:a.props.data?a.props.data.Settings.ProfileImageUrl:null,settings:a.props.data?a.props.data.Settings:null,request:a.props.data?a.props.data.request:null},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"render",value:function(){return React.createElement("div",{className:"col-12 nearby-doctors"},React.createElement("div",{className:"nearby-doctors-headline section-container col-12"},React.createElement("h1",null,this.props.data.ProvidersNearMeHeading)),React.createElement("div",{className:"col-12"},this.state.request.geoDistanceOptions&&this.state.request.geoDistanceOptions.location?React.createElement(React.Fragment,null,React.createElement("div",{className:"row"},React.createElement("div",{className:"nearby-doctors-search-results-container section-container"},React.createElement(s.default,{searchResults:this.state.results,amgIcon:this.state.amgIcon,searchLocation:this.state.request?this.state.request.geoDistanceOptions.location:null,profileImage:this.state.profileImage,viewProfileLabel:this.props.data.ViewProfileLabel,scheduleAppointmentButtonLabel:this.props.data.ScheduleAppointmentButtonLabel,contactLabel:this.props.data.ProviderContactLabel,scheduleAppointmentResultsPage:this.props.data.ScheduleAppointmentResultsPage,lessResultsLabel:this.props.data.LessResultsLabel,moreResultsLabel:this.props.data.MoreResultsLabel,allResultsLabel:this.props.data.AllResultsLabel})))):null))}}]),t}();t.Z=i},5618:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.isAMG=a.isAMG.bind(a),a.getAddressInfo=a.getAddressInfo.bind(a),a.imgError=a.imgError.bind(a),a.getDistance=a.getDistance.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"isAMG",value:function(e){return"Ascension Medical Group"===e.employerAffiliation?React.createElement("span",{className:"tooltip-dark","data-title":"Ascension Medical Group"},React.createElement("img",{src:this.props.amgIcon,className:"AMG_Bug list",alt:"Ascension Medical Group"})):null}},{key:"getDistance",value:function(e){return e&&e.length>0?e[0].distance.toFixed(2):null}},{key:"getAddressInfo",value:function(e,t){var a=e&&e.length>0?e[0].location:null;if(a){var n=a.address.street+" "+a.address.street2+" "+a.address.city+" "+a.address.stateAbbreviation+" "+a.address.zip;return React.createElement("div",{className:"fad-results-address"},React.createElement("div",{className:"provider-contact-info"},React.createElement("div",{className:"provider-info-label"},"ADDRESS"),React.createElement("div",{className:"provider-results-item-address"},React.createElement("a",{href:""+this.props.directionsLink+n,target:"_blank",className:"directions-link",title:"Directions"},React.createElement("div",{className:"fad-results-location"},a.address.street+", "+a.address.street2+", "+a.address.city+", "+a.address.stateAbbreviation+" "+a.address.zip)))),React.createElement("div",{className:"provider-phone"},React.createElement("div",{className:"LG_Eyebrow"},"PHONE"),React.createElement("div",{className:"spaceBefore"}),React.createElement("div",null,React.createElement("a",{href:"tel:"+a.phoneNumber},a.phoneNumber))),t.length>0?React.createElement("div",{className:"hospital-affiliations"},React.createElement("div",{className:"LG_Eyebrow"},"HOSPITAL/MEDICAL CENTER AFFILIATIONS"),t?t.map((function(e,t){var a=t>0?React.createElement("span",null,", "):"";return React.createElement("span",{class:"hospital-affiliation"},a,e.name)})):null):null)}return null}},{key:"imgError",value:function(e){return console.log("default img: "+this.props.profileImage),e.target.onerror="",e.target.src=this.props.profileImage,!0}},{key:"render",value:function(){var e=this.props.searchResultsItem.data.provider,t=this.props.searchResultsItem.data.locations,a=this.props.profileImage,n=this.props.searchLocation,r=this.props.searchResultsItem.data.provider.url;return React.createElement("div",{className:"Ascension Medical Group"==e.employerAffiliation?"amg-provider":""},React.createElement("div",{className:"provider-near-me-list-result"},React.createElement("div",{className:"provider-holder row"},React.createElement("div",{className:"columnPhoto col-sm-12"},React.createElement("div",{className:"photoHolder square text-center"},React.createElement("div",{className:"relativePhotoHolder"},React.createElement("a",{href:r},React.createElement("img",{src:e.photoUrl?e.photoUrl:a,title:e.displayName,alt:e.displayName,onError:this.imgError,className:"profile-photo"})))),this.isAMG(e)),React.createElement("div",{className:"provider-column col-sm-12"},React.createElement("div",{className:"provider-row col-sm-12"},React.createElement("div",{className:"col"},n?React.createElement("div",{className:"provider-distance"},this.getDistance(t)," miles from ",React.createElement("span",{className:"location"},n)," "):null,React.createElement("h1",{className:"nameHead provider-results-item-name"},React.createElement("a",{href:r},e.displayName)),React.createElement("div",{className:"specialties-list provider-results-item-specialities"},e.specialities?e.specialities.map((function(e,t){var a=t>0?React.createElement("span",null,", "):"";return React.createElement("span",{class:"listSpecialties"},a,e.speciality.name)})):null),this.getAddressInfo(t,e.hospitalAffiliations))),React.createElement("div",{className:"provider-contact-row col-sm-12"},React.createElement("div",{class:"provider-links"},React.createElement("div",{className:"gap10 visible-xs"}),React.createElement("div",{className:"LG_Eyebrow"}),React.createElement("div",{className:"doctor-buttons"},e.hasAvailableAppointments&&e.hasOnlineScheduling?React.createElement("div",{class:"button-primary"},React.createElement("a",{href:this.props.scheduleAppointmentResultsPage+"?providerId="+e.id+"&shouldSearch=true"},this.props.scheduleAppointmentButtonLabel)):null,React.createElement("div",{className:"view-profile-link"},React.createElement("a",{href:r},this.props.viewProfileLabel))),React.createElement("div",{className:"spaceBefore"})))),React.createElement("div",{className:"clearfix"}))))}}]),t}();t.default=n},3102:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(5618))&&n.__esModule?n:{default:n},i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.removeRows=a.removeRows.bind(a),a.addRows=a.addRows.bind(a),a.addAll=a.addAll.bind(a),a.getResults=a.getResults.bind(a),a.results=a.props.searchResults,a.state={mobileCount:1,mobileResults:a.props.searchResults.slice(0,1),tabletCount:2,tabletResults:a.props.searchResults.slice(0,2),desktopCount:4,desktopResults:a.props.searchResults.slice(0,4)},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"removeRows",value:function(e){e.preventDefault();var t=this.state.mobileCount>3?this.state.mobileCount-2:1,a=this.state.tabletCount>6?this.state.tabletCount-4:2,n=this.state.desktopCount>12?this.state.desktopCount-8:4;console.log("New mobile "+t+" new tablet "+a+" new desktop "+n),this.setState({mobileCount:t,mobileResults:this.props.searchResults.slice(0,t),tabletCount:a,tabletResults:this.props.searchResults.slice(0,a),desktopCount:n,desktopResults:this.props.searchResults.slice(0,n)})}},{key:"addRows",value:function(e){e.preventDefault();var t=this.state.mobileCount<this.props.searchResults.length?this.state.mobileCount+2:this.props.searchResults.length,a=this.state.tabletCount<this.props.searchResults.length?this.state.tabletCount+4:this.props.searchResults.length,n=this.state.desktopCount<this.props.searchResults.length?this.state.desktopCount+8:this.props.searchResults.length;console.log("New mobile "+t+" new tablet "+a+" new desktop "+n),this.setState({mobileCount:t,mobileResults:this.props.searchResults.slice(0,t),tabletCount:a,tabletResults:this.props.searchResults.slice(0,a),desktopCount:n,desktopResults:this.props.searchResults.slice(0,n)})}},{key:"addAll",value:function(e){e.preventDefault(),this.setState({mobileCount:this.props.searchResults.length,mobileResults:this.props.searchResults,tabletCount:this.props.searchResults.length,tabletResults:this.props.searchResults,desktopCount:this.props.searchResults.length,desktopResults:this.props.searchResults})}},{key:"getResults",value:function(e,t){var a=this;return React.createElement(React.Fragment,null,React.createElement("div",{className:"provider-results "+e},t&&t.length>0?t.map((function(e){return React.createElement(s.default,{key:e.data.provider.id,searchResultsItem:e,amgIcon:a.props.amgIcon,searchLocation:a.props.searchLocation,profileImage:a.props.profileImage,viewProfileLabel:a.props.viewProfileLabel,scheduleAppointmentButtonLabel:a.props.scheduleAppointmentButtonLabel,contactLabel:a.props.contactLabel,scheduleAppointmentResultsPage:a.props.scheduleAppointmentResultsPage})}),this):null))}},{key:"render",value:function(){var e=this;return React.createElement(React.Fragment,null,this.getResults("mobile",this.state.mobileResults),this.getResults("tablet",this.state.tabletResults),this.getResults("desktop",this.state.desktopResults),React.createElement("div",{id:"fad-search-summary",className:"section-container"},React.createElement("span",{class:"results-summary"},this.props.searchResults.length," Doctors within this location")),React.createElement("div",{className:"sortOptions section-container"},React.createElement("a",{className:"fad-sort-active",onClick:function(t){return e.removeRows(t)}},this.props.lessResultsLabel),"|",React.createElement("a",{className:"fad-sort-inactive",onClick:function(t){return e.addRows(t)}},this.props.moreResultsLabel)))}}]),t}();t.default=i},1860:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=i(a(1751)),s=i(a(3707));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={distanceInputWidth:a.props.radius&&a.props.radius<=100?"73px":"99px",request:a.props.request},a.handleSubmit=a.handleSubmit.bind(a),a.submitSearch=a.props.submitSearchCallback,a.changeQuery=a.props.changeQueryCallback,a.handleLocationChange=a.handleLocationChange.bind(a),a.changeFilters=a.changeFilters.bind(a),a.scroll=a.scroll.bind(a),a.distanceSelectItems=[{Label:"25 Miles",Value:25,Selected:!1},{Label:"50 Miles",Value:50,Selected:!1},{Label:"100 Miles",Value:100,Selected:!1},{Label:"All Distances",Value:4e3,Selected:!1}],a.selectInputRef=React.createRef(),a.hiddenSelectInputRef=React.createRef(),a.hiddenOptionInputRef=React.createRef(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"handleLocationChange",value:function(e){this.changeFilters("location",e)}},{key:"changeFilters",value:function(e,t){var a=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};switch(e){case"radius":a.geoDistanceOptions[e]=t,this.setState({request:a});break;case"location":a.geoDistanceOptions[e]=t,this.props.clearFilters&&(a.filters={}),this.setState({request:a});break;case"clear":delete a.filters.providerId,delete a.filters.specialties,this.setState({request:a});break;default:delete a.filters[e],t&&(a.filters[e]=Array.isArray(t)?[].concat(function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}(t)):[t]),this.setState({request:a})}}},{key:"scroll",value:function(){window.scrollTo(0,150)}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};this.props.request.filters.employerAffiliation&&(t.filters.employerAffiliation=this.props.request.filters.employerAffiliation),t.filters.providerId&&t.filters.providerId.length>0&&delete t.filters.employerAffiliation,this.submitSearch(t,!0),this.scroll()}},{key:"handleDistanceWidthChange",value:function(e){var t=this.selectInputRef.current.selectedIndex,a=this.selectInputRef.current.childNodes[t];this.hiddenOptionInputRef.current.innerHTML=a.innerText,this.setState({distanceInputWidth:this.hiddenSelectInputRef.current.offsetWidth+20})}},{key:"isDistanceSelected",value:function(e,t){return t==e}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"section-container doctor-search-container"},React.createElement("div",{className:"asc-search-box-container row"},React.createElement("div",{className:"asc-search-box"},React.createElement("form",{onSubmit:this.handleSubmit,className:"asc-input"},React.createElement("div",{className:"asc-search-row form-row"},React.createElement("div",{className:"asc-search-col"},React.createElement("label",{for:"fadLocationTypeaheadDropdown"},this.props.radiusLabelBefore,React.createElement("span",{className:"distance-options"},React.createElement("div",{className:"label-select"},React.createElement("select",{id:"fadDistance",className:"asc-distance-select",name:"fadDistance",title:"Select Distance Within",onChange:function(t){e.changeFilters("radius",t.target[t.target.selectedIndex].value),e.handleDistanceWidthChange(t)},style:{width:this.state.distanceInputWidth},ref:this.selectInputRef},this.distanceSelectItems.map((function(t){return React.createElement("option",{key:t.Value,value:t.Value,selected:e.isDistanceSelected(t.Value,e.props.radius)},t.Label)}))),React.createElement("div",{className:"selectedOptionHiddenWrapper"},React.createElement("select",{ref:this.hiddenSelectInputRef,className:"selectedOptionHidden",style:{visibility:"hidden"},"aria-hidden":"true"},React.createElement("option",{ref:this.hiddenOptionInputRef})))),this.props.radiusLabelAfter),React.createElement("div",{ref:this.setWrapperRef,className:"input-reset-container"},React.createElement(r.default,{defaultLocation:this.state.request.geoDistanceOptions.location,onSubmitCallback:this.handleLocationChange,inputName:"location",inputId:"fadLocationTypeahead",dropdownId:"fadLocationTypeaheadDropdown",validTermsCache:[{offset:0,value:this.state.request.geoDistanceOptions.location}]})))),React.createElement("div",{className:"asc-search-col"},React.createElement("label",{for:"fadDoctorName"},this.props.lastNameLabel," ",this.props.optionalInputLabel),React.createElement("div",{className:"input-reset-container"},React.createElement(s.default,{onSpecialtySelect:this.changeFilters,onProviderSelect:this.changeFilters,location:this.state.request.geoDistanceOptions.location,radius:this.state.request.geoDistanceOptions.radius,geospatialFilter:!0,allSpecialties:null,inputLabel:this.state.request.filters&&this.state.request.filters&&this.state.request.filters.providerId?this.props.lastNameInputLabel:null,selectedInputLabel:this.state.request.filters.displayName?this.state.request.filters.displayName[0]:null,placeholder:this.state.request.filters&&this.state.request.filters&&this.state.request.filters.displayName?this.props.lastNameInputLabel:this.props.lastNameLabel,type:2}))),React.createElement("div",{className:"asc-search-col"},React.createElement("label",{for:"specialty"},this.props.specialtyLabel," ",this.props.optionalInputLabel),React.createElement(s.default,{onSpecialtySelect:this.changeFilters,onProviderSelect:this.changeFilters,location:this.state.request.geoDistanceOptions.location,radius:this.state.request.geoDistanceOptions.radius,geospatialFilter:!0,allSpecialties:this.props.specialties,inputLabel:this.state.request.filters&&this.state.request.filters&&this.state.request.filters.specialties?this.props.specialtyInputLabel:null,selectedInputLabel:this.state.request.filters.specialties?this.state.request.filters.specialties[0]:null,placeholder:this.state.request.filters&&this.state.request.filters&&this.state.request.filters.specialties?this.props.specialtyInputLabel:this.props.specialtyLabel,type:1})),React.createElement("div",{className:"asc-search-col-button"},React.createElement("div",{className:"button-primary"},React.createElement("input",{type:"submit",className:this.state.request.geoDistanceOptions.location?"":"disabled","aria-disabled":!this.state.request.geoDistanceOptions.location,value:this.props.searchButtonLabel})))))),React.createElement("div",{className:"amg-search-message"},React.createElement("div",{className:"amg-logo"},React.createElement("img",{src:this.props.amgIcon,className:"AMG_Bug list"}),React.createElement("span",null,"Ascension Medical Group")),React.createElement("p",null,this.props.amgText))))}}]),t}();t.default=o},9915:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){return React.createElement("div",{className:"banner default-banner search-banner col-12 banner-bottom-padding "+(this.props.className?this.props.className:"")+" "+(this.props.isCollapsed?"banner-collapsed":"")},React.createElement("div",{className:"grid-container"},React.createElement("div",{className:"col-12 banner-column"},this.props.bannerTitle?React.createElement("h2",{className:"banner-title",dangerouslySetInnerHTML:{__html:this.props.bannerTitle}}):null,this.props.bannerSubTitle?React.createElement("div",{className:"banner-subtitle",dangerouslySetInnerHTML:{__html:this.props.bannerSubTitle}}):null)))}}]),t}();t.default=n},9609:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={tooltipIsActive:!1},a.hideTooltip=a.hideTooltip.bind(a),a.showTooltip=a.showTooltip.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"hideTooltip",value:function(){this.setState({tooltipIsActive:!1})}},{key:"showTooltip",value:function(){this.setState({tooltipIsActive:!0})}},{key:"render",value:function(){var e=this.props.message,t=this.props.position;return React.createElement("span",{className:"asc-tooltip",onMouseLeave:this.hideTooltip},this.state.tooltipIsActive&&React.createElement("div",{className:"asc-tooltip-bubble "+t,role:"tooltip"},React.createElement("div",{className:"asc-tooltip-inner"},e)),React.createElement("span",{className:"asc-tooltip-trigger",onMouseOver:this.showTooltip},this.props.children))}}]),t}();t.default=n},1751:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={locationSuggestions:t.DefaultLocationSuggestions,locationText:a.props.defaultLocation,selectedLocationIndex:null,showLocationSuggestions:!1,isValidLocation:!a.props.isNotValid,validLocationsCache:a.props.defaultLocation?[a.props.defaultLocation.trim()]:[],validTermsCache:a.props.defaultLocation},a.handleLocationChange=a.handleLocationChange.bind(a),a.handleLocationSelection=a.handleLocationSelection.bind(a),a.handleKeyDown=a.handleKeyDown.bind(a),a.handleOnBlur=a.handleOnBlur.bind(a),a.handleSubmit=a.handleSubmit.bind(a),a.handleInputClear=a.handleInputClear.bind(a),a.closeDropdown=a.closeDropdown.bind(a),a.locationInputRef=React.createRef(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentDidMount",value:function(){window.addEventListener("click",this.closeDropdown)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("click",this.closeDropdown)}},{key:"componentDidUpdate",value:function(e){e.isNotValid!==this.props.isNotValid&&!0===this.props.isNotValid&&this.setState({isValidLocation:!1})}},{key:"handleSubmit",value:function(e){var t=this;e.preventDefault(),null==this.state.validTermsCache||this.state.validLocationsCache.length<1||-1===this.state.validLocationsCache.findIndex((function(e){return e.trim().toUpperCase()===t.state.locationText.trim().toUpperCase()}))?this.setState({isValidLocation:!1},(function(){return t.props.onSubmitCallback(null,e)})):this.setState({isValidLocation:!0},(function(){return t.props.onSubmitCallback(t.state.locationText,e)}))}},{key:"handleLocationSelection",value:function(e,t){this.setState({locationText:e,selectedLocationIndex:t,showLocationSuggestions:!1})}},{key:"handleLocationChange",value:function(e){var t=this;if(this.setState({locationText:e.target.value}),e.target.value.length>2){var a="/api/localization/locationsuggestions/?query="+e.target.value;jQuery.getJSON(a,(function(e){var a=Array.isArray(e.predictions)&&e.predictions.length>0?e.predictions[0].terms:null,n=e.predictions.map((function(e){return(e.terms[0].value+", "+e.terms[1].value+"  "+(e.terms[2]&&!isNaN(parseInt(e.terms[2].value))?e.terms[2].value:"")).trim()})),r=t.state.validLocationsCache;r=r.concat(n.filter((function(e){return r.indexOf(e)<0}))),t.setState({validLocationsCache:r,locationSuggestions:n,selectedLocationIndex:null,showLocationSuggestions:!0,validTermsCache:a})}))}else e.target.value.length||this.handleInputClear(e)}},{key:"handleInputClear",value:function(e){var a=this;this.setState({locationSuggestions:t.DefaultLocationSuggestions,selectedLocationIndex:null,showLocationSuggestions:!1,locationText:""},(function(){return a.handleSubmit(e)}))}},{key:"handleOnBlur",value:function(e){var t=this;e.preventDefault(),this.setState({showLocationSuggestions:!1},(function(){return t.handleSubmit(e)}))}},{key:"handleKeyDown",value:function(e){switch(e.key){case"Esc":case"Escape":case"Enter":this.props.allowEnter||e.preventDefault(),this.setState({showLocationSuggestions:!1});break;case"Home":e.preventDefault(),this.setState({selectedLocationIndex:0,locationText:this.state.locationSuggestions[0],isValidLocation:!0});break;case"Up":case"ArrowUp":e.preventDefault();var t=0;null!==this.state.selectedLocationIndex&&(t=this.state.selectedLocationIndex>=1?this.state.selectedLocationIndex-1:0),this.setState({selectedLocationIndex:t,locationText:this.state.locationSuggestions[t],isValidLocation:!0});break;case"Down":case"ArrowDown":e.preventDefault();var a=0;null!==this.state.selectedLocationIndex&&(a=this.state.selectedLocationIndex<this.state.locationSuggestions.length-1?this.state.selectedLocationIndex+1:this.state.locationSuggestions.length-1),this.setState({selectedLocationIndex:a,locationText:this.state.locationSuggestions[a],isValidLocation:!0});break;case"End":e.preventDefault();var n=this.state.locationSuggestions.length-1;this.setState({selectedLocationIndex:n,locationText:this.state.locationSuggestions[n],isValidLocation:!0});break;default:return}}},{key:"closeDropdown",value:function(e){this.locationInputRef&&!this.locationInputRef.current.contains(e.target)&&this.setState({showLocationSuggestions:!1})}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"location-type-ahead",ref:this.locationInputRef},React.createElement("div",{className:"location-type-ahead-input-group location-clear-container"},React.createElement("input",{className:"location-type-ahead-input "+(this.state.isValidLocation?"is-valid":"is-invalid"),type:"text",name:this.props.fieldName?this.props.fieldName:"get-care-now-filter-location",title:"Search By Location",placeholder:"City and State, or ZIP Code","aria-label":"City and State, or ZIP Code","aria-required":"true",autoComplete:"off",value:this.state.locationText,onKeyDown:this.handleKeyDown,onChange:this.handleLocationChange,onBlur:this.handleOnBlur,inputId:this.props.inputId}),""!==this.state.locationText?React.createElement("button",{type:"button",className:"clear-input",role:"button","aria-label":"clear",onClick:this.handleInputClear},"X"):null),this.state.isValidLocation?null:React.createElement("div",{className:"invalid-feedback"},"Enter a valid City and State, or ZIP code."),React.createElement("div",{className:"location-type-ahead-suggestions "+(this.state.showLocationSuggestions?"show":"")},React.createElement("ul",{role:"listbox","aria-expanded":"true",className:"location-type-ahead-list",id:this.props.dropdownId},this.state.locationSuggestions.map((function(a,n){var r=a.trim().toUpperCase()===t.CurrentLocationSuggestion.trim().toUpperCase()?"location-type-ahead-suggestion-current-loc":"";return React.createElement("li",{className:"location-type-ahead-suggestion "+r,"aria-selected":e.state.selectedLocationIndex===n,role:"option",onMouseDown:function(t){return e.handleLocationSelection(a.trim(),n)},key:n},React.createElement("span",null,a.trim()))})))))}}]),t}();n.CurrentLocationSuggestion="Current Location",n.DefaultLocationSuggestions=[],t.default=n},9580:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.renderMap=a.renderMap.bind(a),a.addMarker=a.addMarker.bind(a),a.showInfoWindow=a.showInfoWindow.bind(a),a.markerHoverIn=a.markerHoverIn.bind(a),a.markerHoverOut=a.markerHoverOut.bind(a),a.onLocationClick=a.props.onLocationClickCallback,a.scrolltoMapTop=a.props.scrolltoMapTop,a.state={markers:[]},a.pinMarkers=[],a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"fixOverlapping",value:function(e){var t=this;return jQuery.each(e,(function(a){jQuery.each(e,(function(n){a!==n&&e[a].Lat===e[n].Lat&&e[a].Lon===e[n].Lon&&(e[n].Lon=e[a].Lon+t.props.overlapLevel)}))})),e}},{key:"componentDidMount",value:function(){if(google)if(this.props.featureToggles&&this.props.featureToggles.markerclustering&&!window.MarkerClusterer){var e=document.createElement("script");e.type="text/javascript",e.src=this.props.marketClusteringJSUrl;var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),e.addEventListener("load",function(e){this.renderMap()}.bind(this))}else this.renderMap();document.addEventListener("resize",this.renderMap)}},{key:"componentDidUpdate",value:function(e,t){e.locations!=this.props.locations&&google&&this.renderMap(),e.selectedPin!=this.props.selectedPin&&(null!==this.props.selectedPin?this.markerHoverIn(this.props.selectedPin):this.markerHoverOut(e.selectedPin)),google.maps.event.trigger(this.map,"resize")}},{key:"componentWillUnmount",value:function(){document.removeEventListener("resize",this.renderMap)}},{key:"convertToLetter",value:function(e){var t="A".charCodeAt(0),a="";do{e-=1,a=String.fromCharCode(t+e%26)+a,e=e/26>>0}while(e>0);return a}},{key:"pinSymbol",value:function(e,t){return{path:"M11.3 30.5L1.7 17.4C.7 15.7 0 13.6 0 11.3 0 5.1 5.1 0 11.3 0s11.3 5.1 11.3 11.3c0 2.3-.7 4.4-1.8 6.1l-9.5 13.1z",fillColor:e,fillOpacity:1,anchor:new google.maps.Point(12,34),strokeWeight:1,scale:t,strokeColor:"#f2f2f2",labelOrigin:new google.maps.Point(11,12)}}},{key:"restoreColors",value:function(){for(var e=0;e<this.pinMarkers.length;e++)this.pinMarkers[e].setIcon(this.pinSymbol("#057262",1))}},{key:"addMarker",value:function(e){var t=this,a=new google.maps.Marker({position:{lat:e.Lat,lng:e.Lon},icon:this.pinSymbol("#057262",1),label:{text:""+(this.props.useLetters?this.convertToLetter(e.Index):e.Index),color:"white",fontFamily:"sans-serif",fontSize:"12px"},title:e.PopupLabel+"\n"+e.mapStreet+"\n"+e.mapCity+", "+e.mapState+"  "+e.mapZip,map:this.map}),n=new google.maps.InfoWindow({content:'<div id="content">'+e.OfficeName+"</div>"});return a.addListener("click",(function(){t.showInfoWindow(e),t.restoreColors(),a.setIcon(t.pinSymbol("#057262",1.2)),void 0!==t.scrolltoMapTop&&t.scrolltoMapTop()})),a.addListener("mouseover",(function(){t.props.onMarkerHoverCallback&&t.props.onMarkerHoverCallback(e),a.setIcon(t.pinSymbol("#057262",1.2))})),a.addListener("mouseout",(function(){t.props.onMarkerHoverCallback&&t.props.onMarkerHoverCallback(null),t.restoreColors()})),this.pinMarkers.push(a),{index:this.props.useLetters?this.convertToLetter(e.Index):e.Index,location:e,marker:a,infoWindow:n}}},{key:"showInfoWindow",value:function(e){var t=this;this.props.onLocationClickCallback&&this.onLocationClick(e),this.state.markers.map((function(a){a.location!==e?a.infoWindow.close():(a.infoWindow.setContent('<div class="asc-info-window"><a class="location-label" target="_blank" href="'+e.mapUrl+'">'+e.PopupLabel+'<div class="address-label">'+e.mapStreet+'</div><div class="address-label">'+e.mapCity+", "+e.mapState+"  "+e.mapZip+"</div></div></a>"),a.infoWindow.open(t.map,a.marker))}))}},{key:"markerHoverIn",value:function(e){this.restoreColors(),this.pinMarkers[e]&&this.pinMarkers[e].setIcon(this.pinSymbol("#057262",1.2))}},{key:"markerHoverOut",value:function(){this.restoreColors()}},{key:"renderMap",value:function(){var e=this;this.map=new google.maps.Map(this.refs.map,{zoom:8,scrollwheel:!1,disableDoubleClickZoom:!1,streetViewControl:!1,fullscreenControl:!1,streetViewControlOptions:!1,mapTypeControl:!1,mapTypeId:"roadmap",styles:[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#444444"}]},{featureType:"administrative.country",elementType:"geometry.fill",stylers:[{visibility:"on"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#4b87db"},{visibility:"on"}]}]});var t=(this.props.locations&&this.props.locations.length>1?this.fixOverlapping(this.props.locations):this.props.locations).map((function(t){return e.addMarker(t)})),a=new google.maps.LatLngBounds;t.map((function(e){a.extend(e.marker.getPosition())})),this.props.featureToggles&&this.props.featureToggles.markerclustering&&new MarkerClusterer(this.map,t.map((function(e){return e.marker})),{imagePath:this.props.marketClusteringImageUrl});var n=t.length;this.setState({markers:t},function(){n>1?e.map.fitBounds(a):1==n&&(e.map.setCenter(a.getCenter()),e.map.setZoom(11))}.bind(this))}},{key:"render",value:function(){return React.createElement("div",{className:"asc-search-results-map-container"},React.createElement("div",{className:"asc-search-results-map",ref:"map"}))}}]),t}();t.default=n},3237:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.renderSitecore=a.renderSitecore.bind(a),a.renderFED=a.renderFED.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){return this.props.hasOwnProperty("placeholder")&&null!=this.props.placeholder?this.renderSitecore():this.renderFED()}},{key:"renderSitecore",value:function(){return this.props.isDynamic?React.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.placeholder.$Id[this.props.placeholderKey]}}):React.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.placeholder[this.props.placeholderKey]}})}},{key:"renderFED",value:function(){var e=this;if(this.props.content){var t=[];return"string"==typeof this.props.content?React.createElement("span",null,this.props.content):(React.Children.count(this.props.content)>0&&(t=React.Children.map(this.props.content,(function(t,a){if(t.props.hasOwnProperty("placeholderKey")&&t.props.placeholderKey==e.props.placeholderKey)return t}))),t.length>0?React.createElement("div",null,t):React.createElement("h2",null,"No Content"))}if(this.props.children){var a=[];return React.Children.count(this.props.children)>0&&(a=React.Children.map(this.props.children,(function(t,a){if(t.props.hasOwnProperty("placeholderKey")&&t.props.placeholderKey==e.props.placeholderKey)return t}))),a.length>0?React.createElement("div",null,a):this.props.children}return React.createElement("h2",null,"No content")}}]),t}();n.defaultProps={placeholder:null,isSitecore:!1,isEditing:!1,placeholderKey:"not set",isDynamic:!1},t.default=n},3554:(e,t,a)=>{var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=c(a(4955)),s=c(a(5279)),i=c(a(885)),o=c(a(1155)),l=c(a(8647));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.applyFacet=a.applyFacet.bind(a),a.applyPage=a.applyPage.bind(a),a.getFacetUrl=a.getFacetUrl.bind(a),a.submitSearch=a.submitSearch.bind(a),a.getQueryUrl=a.getQueryUrl.bind(a),a.getPageUrl=a.getPageUrl.bind(a),a.hasSearchResults=a.hasSearchResults.bind(a),a.isFacetSelected=a.isFacetSelected.bind(a);var n=new Date;return a.state={searchContext:n,isLoading:!1,request:a.props.data.Request,results:a.props.data.Results,allFacets:a.props.data.AllFacets,defaultRequest:a.props.data.DefaultRequest,isHidden:!1,featuredText:a.props.data.FeaturedText},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),n(t,[{key:"hasSearchResults",value:function(){return this.state.results.TotalHits}},{key:"applyFacet",value:function(e,t){t.preventDefault(),this.performSearch(e,this.state.request.Query,this.state.defaultRequest.Page,this.state.request.PageSize)}},{key:"applyPage",value:function(e,t){t.preventDefault(),this.performSearch(this.state.request.Filter,this.state.request.Query,e,this.state.request.PageSize)}},{key:"getFacetUrl",value:function(e){return this.getQueryUrl(e,this.state.request.Query,this.state.request.Page,this.state.request.PageSize)}},{key:"getPageUrl",value:function(e){return this.getQueryUrl(this.state.request.Filter,this.state.request.Query,e,this.state.request.PageSize)}},{key:"getQueryUrl",value:function(e,t,a,n){var r={filter:e&&e!==this.state.defaultRequest.Filter?e:null,query:t&&t!==this.state.defaultRequest.Query?t:null,page:a&&a!==this.state.defaultRequest.Page?a:null,pageSize:n&&n!==this.state.defaultRequest.PageSize?n:10},s=encodeURIComponent;return"?"+Object.keys(r).reduce((function(e,t){return null!==r[t]&&e.push(s(t)+"="+s(r[t])),e}),[]).join("&")}},{key:"submitSearch",value:function(e){this.performSearch(this.state.request.Filter,e,this.state.request.Page,this.state.request.PageSize)}},{key:"performSearch",value:function(e,t,a,n){this.setState({isLoading:!0,request:{Query:t}},(function(){window.scrollTo({top:0,left:0,behavior:"smooth"});var r=this.getQueryUrl(e,t,a,n);jQuery.get("/api/search"+r,function(s){var i={searchContext:new Date,isLoading:!1,request:{Query:t,Filter:e,Page:a,PageSize:n},results:s};this.setState(i,(function(){window.history.pushState(i,"",r)}))}.bind(this))}))}},{key:"isFacetSelected",value:function(e){return this.state.request.Filter===e}},{key:"toggleFilter",value:function(){this.setState({isHidden:!this.state.isHidden})}},{key:"render",value:function(){return React.createElement("div",{className:"col-12 site-search-component"},React.createElement(r.default,{query:this.state.request.Query,submitSearchCallback:this.submitSearch}),React.createElement(s.default,{totalResults:this.state.results.TotalHits,query:this.state.request.Query}),React.createElement("div",{className:"row"},React.createElement("div",{className:"col-md-3 search-filter"},React.createElement("div",{className:"d-md-none sm-filter"},React.createElement("button",{onClick:this.toggleFilter.bind(this),className:this.state.isHidden?"filter-toggle closed":"filter-toggle open"},"Filters ",React.createElement("i",{className:"search-icon","aria-hidden":"true"})),!this.state.isHidden&&React.createElement(i.default,{facets:this.state.results.Facets,applyFacetCallback:this.applyFacet,getFacetUrl:this.getFacetUrl,isFacetSelected:this.isFacetSelected})),React.createElement("div",{className:"d-none d-md-block md-filter"},React.createElement(i.default,{facets:this.state.results.Facets,applyFacetCallback:this.applyFacet,getFacetUrl:this.getFacetUrl,isFacetSelected:this.isFacetSelected,selectedFilter:this.state.request.Filter}))),React.createElement("div",{className:"col-md-9"},React.createElement(o.default,{totalResults:this.state.results.TotalHits,searchResults:this.state.results.Results,selectedFilter:this.state.request.Filter,featuredText:this.state.results.FeaturedText}),React.createElement(l.default,{key:this.state.searchContext,totalResults:this.state.results.TotalHits,currentPage:this.state.request.Page,pageSize:this.state.request.PageSize,applyPageCallback:this.applyPage,getPageUrl:this.getPageUrl}))))}}]),t}();t.Z=u},4955:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={query:a.props.query},a.handleSubmit=a.handleSubmit.bind(a),a.handleQueryChange=a.handleQueryChange.bind(a),a.submitSearch=a.props.submitSearchCallback,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({query:e.query})}},{key:"handleQueryChange",value:function(e){this.setState({query:e.target.value})}},{key:"handleSubmit",value:function(e){e.preventDefault(),this.submitSearch(this.state.query)}},{key:"render",value:function(){return React.createElement("div",{className:"row"},React.createElement("div",{className:"col-12"},React.createElement("form",{onSubmit:this.handleSubmit,className:"find-site-form"},React.createElement("div",{className:""},React.createElement("div",{className:"form-group"},React.createElement("label",{htmlFor:"siteSearchInput"},"SEARCH"),React.createElement("input",{type:"text",className:"form-control find-site-input-field",id:"siteSearchInput","data-info":"ignore",placeholder:"Search",value:this.state.query,onChange:this.handleQueryChange}),React.createElement("button",{className:"find-site-input-submit",type:"submit","aria-label":"Submit"},React.createElement("i",{id:"filtersubmit",className:"fa fa-search"})))))))}}]),t}();t.default=n},885:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.applyFacet=a.props.applyFacetCallback,a.getFacetUrl=a.props.getFacetUrl,a.isFacetSelected=a.props.isFacetSelected,a.selectedFilter=a.props.selectedFilter,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){var e=this;return React.createElement("div",{className:"facets refine-search"},this.props.facets.map((function(t){if(!Array.isArray(t.FacetValues)||0===t.FacetValues.length)return null;var a="facets-section__"+t.Name;return React.createElement("div",{className:"facets-section facet-panel"},React.createElement("div",null,React.createElement("h2",{className:"filter-heading"},"Filter By")),React.createElement("ul",{id:a,className:"facets-section-values filter-list"},t.FacetValues.map((function(t){return React.createElement("li",null,React.createElement("a",{href:e.getFacetUrl(t.Key),onClick:function(a){return e.applyFacet(t.Key,a)},className:e.isFacetSelected(t.Name)||e.isFacetSelected(null)&&"All"===t.Name?"disabled":""},React.createElement("div",{className:"sitesearch-details"},React.createElement("span",{className:"sitesearch-state-card-name"},t.Name,"All"===t.Name?"":" ("+t.AggregateCount+")"))))}),e)))}),this))}}]),t}();t.default=n},5279:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){var e=this.props.totalResults,t=this.props.query;return React.createElement("div",{className:"search-heading"},React.createElement("h1",null,t),React.createElement("span",null,e," Results Found"))}}]),t}();t.default=n},8647:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.applyPage=a.props.applyPageCallback,a.getPageUrl=a.props.getPageUrl,a.pageSize=a.props.pageSize||10,a.totalResults=a.props.totalResults,a.currentPage=a.props.currentPage,a.totalPages=Math.ceil(a.totalResults/a.pageSize),a.currentPage<1?a.currentPage=1:a.currentPage>a.totalPages&&(a.currentPage=a.totalPages),a.pageChange=a.props.pageChangeCallback,a.defaultMaxPagesToDisplay=10,a.maxPagesToDisplay=a.totalPages<=a.defaultMaxPagesToDisplay?a.totalPages:a.defaultMaxPagesToDisplay,a.defaultPrevPagesToDisplay=5,a.startPage=a.currentPage-a.defaultPrevPagesToDisplay,a.startPage=a.startPage<1?1:a.startPage,a.endPage=a.startPage+a.maxPagesToDisplay-1,a.endPage>a.totalResults&&(a.endPage=a.totalResults,a.startPage=a.endPage-a.maxPagesToDisplay+1),a.getDisplayPageNumbers=a.getDisplayPageNumbers.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"getDisplayPageNumbers",value:function(){for(var e=this,t=[],a=function(a){var n=a==e.currentPage?React.createElement("span",null,a):React.createElement("a",{href:e.getPageUrl(a),onClick:function(t){return e.applyPage(a,t)}},React.createElement("span",null,a));t.push(React.createElement("li",null,n))},n=this.startPage;n<=this.endPage;n++)a(n);return t}},{key:"getPreviousPage",value:function(){var e=this;return this.currentPage>1?React.createElement("a",{href:this.getPageUrl(this.currentPage-1),onClick:function(t){return e.applyPage(e.currentPage-1,t)},"aria-label":"previous",className:"prev"},React.createElement("i",{className:"fa fa-angle-left","aria-hidden":"true"})):React.createElement("a",{className:"prev disabled","aria-disabled":"true","aria-label":"previous"},React.createElement("i",{className:"fa fa-angle-left","aria-hidden":"true"}))}},{key:"getNextPage",value:function(){var e=this;return this.currentPage<this.totalPages?React.createElement("a",{href:this.getPageUrl(this.currentPage+1),onClick:function(t){return e.applyPage(e.currentPage+1,t)},"aria-label":"next",className:"next"},React.createElement("i",{className:"fa fa-angle-right","aria-hidden":"true"})):React.createElement("a",{className:"next disabled","aria-label":"next","aria-disabled":"true"},React.createElement("i",{className:"fa fa-angle-right","aria-hidden":"true"}))}},{key:"render",value:function(){return 0===this.totalResults||this.totalPages<=1?null:React.createElement("div",{className:"sitesearch asc-search-pagination"},this.getPreviousPage(),React.createElement("ul",null,this.getDisplayPageNumbers()),this.getNextPage())}}]),t}();t.default=n},1155:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=(n=a(1026))&&n.__esModule?n:{default:n},i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={selectedFilter:a.props.selectedFilter||"All Results"},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),r(t,[{key:"componentDidUpdate",value:function(e){void 0!==this.props.selectedFilter&&this.props.selectedFilter!==e.selectedFilter&&this.setState({selectedFilter:this.props.selectedFilter||"All Results"})}},{key:"render",value:function(){var e=[];return this.props.totalResults?this.props.searchResults.map((function(t){return e.push(React.createElement(s.default,{searchResultsItem:t}))})):e=React.createElement("p",null,"No Results Found"),React.createElement("div",{className:"result-listings"},React.createElement("h3",{className:"result-heading"},this.state.selectedFilter),React.createElement("div",{className:"result-block-container"},React.createElement("div",{className:"result-block"},React.createElement("div",{classname:"result-block featured-result",dangerouslySetInnerHTML:{__html:this.props.featuredText}}),e)))}}]),t}();t.default=i},1026:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,React.Component),a(t,[{key:"render",value:function(){var e=this.props.searchResultsItem;return React.createElement("div",{className:"sitesearch-results-item"},React.createElement("div",{className:"sitesearch-holder"},React.createElement("div",{className:"col-name-specs flex-grow-1"},React.createElement("div",{className:"row"},React.createElement("div",{className:"col"},null!==e.Score&&React.createElement("span",null,e.Score),React.createElement("h3",{className:"sitesearch-results-item-name"},React.createElement("a",{href:e.Url},e.Title)))),React.createElement("div",{className:"row"},React.createElement("div",{className:"col"},React.createElement("h3",{className:"sitesearch-results-item-description"},e.Description))))))}}]),t}();t.default=n},674:(e,t,a)=>{e.exports={AppointmentBooking:a(8329).Z,AppointmentBookingDayControl:a(8973).default,AppointmentBookingErrorBoundary:a(2332).default,AppointmentBookingLocationControl:a(8370).default,AppointmentBookingPagingControl:a(807).default,AppointmentBookingProviderControl:a(1713).default,AppointmentBookingProviderThumbnailControl:a(6943).default,AppointmentBookingScheduleFirstAvailable:a(8329).Z,AppointmentBookingSchedulePlaceholder:a(1897).default,AppointmentBookingSchedulesControl:a(3054).default,AppointmentBookingScheduleUnselectedAvailable:a(4727).default,AppointmentBookingSearchControl:a(9433).default,AppointmentBookingSearchFilters:a(2162).default,AppointmentBookingSearchResultItem:a(5682).default,AppointmentBookingSearchResults:a(5668).default,AppointmentBookingSortControl:a(8628).default,AppointmentTypeInputField:a(3353).default,BackToTop:a(1088).default,BlogSearch:a(4698).Z,BlogSearchFacetList:a(1649).default,BlogSearchFilter:a(9073).default,BlogSearchPagination:a(4212).default,BlogSearchResults:a(5808).default,BlogSearchTypeahead:a(8419).default,CalendarControl:a(5039).default,CommunitySearchBox:a(4192).Z,CommunitySearchMain:a(9045).Z,Dropdown:a(6564).default,EventsSearch:a(5887).Z,EventsListResultItem:a(5376).default,EventsSearchBanner:a(723).default,EventsSearchControl:a(9779).default,EventsSearchFilter:a(5328).default,EventsSearchListResults:a(4735).default,EventsSearchPagination:a(3761).default,EventsSearchSelectedFilters:a(3886).default,FilterListControl:a(3636).default,FoundationSearch:a(964).Z,FoundationSearchBox:a(9196).default,FoundationSearchFacets:a(5631).default,FoundationSearchInformation:a(3675).default,FoundationSearchResults:a(986).default,FoundationSearchResultsItem:a(6204).default,GetCareNow:a(120).Z,GetCareNowSearch:a(6033).default,GetCareNowSearchFilters:a(5612).default,GetCareNowSearchResultItem:a(3769).default,GetCareNowSearchResults:a(8491).default,GetCareNowSearchResultsMap:a(3038).Z,GetCareNowTab:a(4508).default,GetCareNowTimeSliderControl:a(5220).default,LocationPin:a(6749).default,LocationsTypeAheadInputField:a(1751).default,LocationsSearchExpandedControl:a(7281).Z,LocationsSearch:a(9048).Z,LocationsSearchControl:a(4590).default,LocationsSearchFilter:a(8854).default,LocationsSearchPagination:a(5685).default,LocationsSearchResultItem:a(6575).default,LocationsSearchResults:a(1930).default,LocationsSearchResultsMap:a(5248).Z,LocationsSearchSchedule:a(7793).default,LoadingControl:a(2190).default,MapControl:a(9580).default,Placeholder:a(3237).default,Providers:a(1318).Z,ProvidersFacetList:a(9835).default,ProvidersListResultItem:a(9460).default,ProvidersListResults:a(7393).default,ProvidersNearMe:a(9160).Z,ProvidersNearMeListResultItem:a(5618).default,ProvidersNearMeListResults:a(3102).default,ProviderSpecialtyDropdown:a(3707).default,ProvidersSearchControl:a(1860).default,SearchBanner:a(9915).default,SiteSearch:a(3554).Z,SiteSearchBox:a(4955).default,SiteSearchFacets:a(885).default,SiteSearchInformation:a(5279).default,SiteSearchPagination:a(8647).default,SiteSearchResults:a(1155).default,SiteSearchResultsItem:a(1026).default,ToolTip:a(9609).default}},3804:e=>{e.exports=React}},t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var e=n(a(3804)),t=n(a(674));function n(e){return e&&e.__esModule?e:{default:e}}a.g.React=e.default,a.g.Components={RootComponent:t.default}})()})();
