/*! For license information please see react.bundle.js.LICENSE.txt */
(()=>{"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,searchSettings:this.state.settings,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={isMobile:!1,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:"componentDidMount",value:function(){this.props.totalResults&&this.props.totalResults>0&&(window.addEventListener("resize",this.resize.bind(this)),this.resize())}},{key:"componentDidUpdate",value:function(e,t){this.props.totalResults!==e.totalResults&&this.setPage(1),this.state.isMobile!==t.isMobile&&this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize.bind(this))}},{key:"resize",value:function(){(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<=1024?this.setState({isMobile:!0}):this.setState({isMobile:!1}),this.setPage(this.props.currentPage)}},{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),i=this.state.isMobile?5:10,o=Math.ceil(i/2),l=o-1;s<=i?(n=1,r=s):t<=o?(n=1,r=i):t>o&&t<s-l?(n=t-l,r=i%2?t+l:t+l+1):(n=s-i+1,r=s);var c=(t-1)*a,u=Math.min(c+a-1,e-1),p=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:c,endIndex:u,pages:p}}},{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.noResultsTitle=a.props.searchSettings.NoResultsTitle,a.noResultsMessage=a.props.searchSettings.NoResultsMessage,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 e.length>0?React.createElement("ul",{className:"row"},e):React.createElement("div",{className:"blog-no-results"},React.createElement("h3",null,this.noResultsTitle),React.createElement("h2",null,this.noResultsMessage))}}]),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.forEach((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)return;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=this,n=a({},this.state.states);this.handleFacetClick(e,n),this.setState({state:n,page:0},(function(){t.doSearch(),t.setState({page:0})}))}},{key:"onLivingChoicesClick",value:function(e){var t=this,n=a({},this.state.livingChoices);this.handleFacetClick(e,n),this.setState({livingChoices:n,page:0},(function(){t.doSearch(),t.setState({page:0})}))}},{key:"onFeatureClick",value:function(e){var t=this,n=a({},this.state.features);this.handleFacetClick(e,n),this.setState({features:n,page:0},(function(){t.doSearch(),t.setState({page:0})}))}},{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 e.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 e.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.searchBoxRef=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:"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}),this.searchBoxRef.current.handleQueryErrorStateChange()}},{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,{ref:this.searchBoxRef,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:"handleQueryErrorStateChange",value:function(){this.setState({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||0===e.distance?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+"&saddr=My%20Location",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(9915)),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,page:1,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(){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="";return Object.keys(e).forEach((function(a){Array.isArray(e[a])?t+=e[a].map((function(t,n){var r=n>0?n.toString():"",s="number"==typeof e[a]?t.toString():encodeURIComponent(t);return t.length>0?"&"+a+r+"="+s:""})):t+="number"==typeof e[a]?"&"+a+"="+e[a].toString():"&"+a+"="+encodeURIComponent(e[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(t){var r={isLoading:!1,results:t&&t.response?t.response.results:null,request:t.request,pagination:t.response.pagination,facets:t.response.facets,page:n.page,pageSize:t.request.pageSize,isEnd:n.page===t.response.pagination.totalPages,settings:t.settings,selectedFilters:a.getSelectedFilters(n.filters),clearFilters:!0,location:n.geoDistanceOptions.location,searchTerm:a.state.request.filters.title,recordCount:t.response.pagination?t.response.pagination.totalResults:0};a.setState(r,(function(){var n=t&&t.request?a.buildUrl(t.request):null;window.history.pushState(n,"",n),e&&e.geoDistanceOptions.location&&window.scrollTo({behavior:"smooth",top:a.searchMain.current.offsetTop})}))}.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,isCollapsed:this.state.recordCount>0}),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,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)=>{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.Z=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.changeLocationFilterSubmit=a.changeLocationFilterSubmit.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?this.state.request:{};t.geoDistanceOptions.location=e,this.props.clearFilters&&(t.filters={}),this.setState({request:t})}},{key:"changeLocationFilterSubmit",value:function(e,t){var a=this,n=this.state.request?this.state.request:{};n.geoDistanceOptions.location=e,this.props.clearFilters&&(n.filters={}),this.setState({request:n},(function(){e&&a.handleSubmit(t)}))}},{key:"handleInputClear",value:function(){this.setState({facilityName:""})}},{key:"handleSubmit",value:function(e){e&&e.preventDefault();var t=this.state.request?this.state.request:{};this.submitSearch(t,!0)}},{key:"render",value:function(){var e=this,t=""!==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;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.changeLocationFilterSubmit,onLocationChangeCallback:this.changeLocationFilter,inputName:"location",inputId:"eventLocationTypeahead"})))),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}}),t)),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.handleSubmit=a.handleSubmit.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.getElementById("wrapper").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){t&&t.preventDefault();var a=JSON.parse(JSON.stringify(this.state.query));a.geoDistanceOptions.location=e,this.setState({query:a})}},{key:"handleSubmit",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.getElementById("wrapper").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,handleSubmit:this.handleSubmit,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.handleSubmit=a.props.handleSubmit,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,handleSubmit:this.handleSubmit,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.handleSubmit=a.handleSubmit.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,a){var n=this;this.setState({location:e},(function(){return a?n.props.handleSubmit(n.state.location,t):n.props.handleLocationChange(n.state.location,t)}))}},{key:"handleSubmit",value:function(e,t){var a=this;this.setState({location:e},(function(){a.props.handleSubmit(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.handleSubmit,onLocationChangeCallback: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+"&saddr=My%20Location";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:"_self"},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.pinRef=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:"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,r=e.length;n<r;){var s={},i=e[n].data.location.address.street+", "+e[n].data.location.address.city+", "+e[n].data.location.address.stateAbbreviation+"  "+e[n].data.location.address.zip;s.Index=a,s.Lat=e[n].data.location.address.latitude,s.Lon=e[n].data.location.address.longitude,s.PopupLabel=e[n].data.location.displayName?e[n].data.location.displayName:"",s.mapStreet=e[n].data.location.address.street,s.mapCity=e[n].data.location.address.city,s.mapState=e[n].data.location.address.state,s.mapZip=e[n].data.location.address.zip,s.mapUrl=""+this.props.labels.DirectionsLink+i.replace(","," ")+"&amp;saddr=My%20Location",s.providerIds=[e[n].id],s.locationId=e[n].data.location.id,t.push(s),a++,n++}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],onMouseEnter:function(){return e.pinRef.current.markerHoverIn(a)},onMouseLeave:function(){return e.pinRef.current.markerHoverOut()}},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,ref:this.pinRef}))):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.forEach((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.parseZone(e).utcOffset(),a=moment(e).utcOffset(t);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"},a.format("ddd")),React.createElement("p",{className:"get-care-now-online-scheduling-month"},a.format("MMM Do"))))}},{key:"getFormattedTime",value:function(e){var t=moment.parseZone(e).utcOffset();return moment(e).utcOffset(t).format("LT")}},{key:"getDate",value:function(e){var t=moment.parseZone(e).utcOffset();return moment(e).utcOffset(t).format("YYYY-MM-DD HH:mm")}},{key:"showTime",value:function(e){var t=moment.parseZone(e).utcOffset(),a=moment().utcOffset(t).format("YYYY-MM-DD HH:mm"),n=moment(e).utcOffset(t).format("YYYY-MM-DD HH:mm");return null!=this.props.currentTime&&(a=moment(this.props.currentTime).utcOffset(t).format("YYYY-MM-DD HH:mm")),moment(n).diff(moment(a),"hours",!0)>1}},{key:"createSlider",value:function(e){var t=this;return React.createElement(React.Fragment,null,React.createElement("div",{className:"getCareNowOnlineScheduleItem-"+this.props.index,ref:"gcnEl"},this.props.schedules[0]&&this.props.schedules[0].registrationUrl?this.props.schedules[0].availableTimes.map((function(a,n,r){var s=a.times.filter((function(a){return a.appointmentTypes.some((function(t){return t.id==e}))&&1==t.showTime(a.time)}));if(s.length>0)return s.map((function(a,n){return a.time?React.createElement(React.Fragment,null,0==n?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:t.props.schedules[0].registrationUrl+"?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.scrollOnReturn=a.scrollOnReturn.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:l.specialty?l.specialty:"",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,t){var a=this;t&&t.preventDefault(),this.setState({location:e||""},(function(){return a.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.state.location||t.state.stateCode)&&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(),this.scrollOnReturn()}},{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:"scrollOnReturn",value:function(){window.addEventListener("unload",(function(e){window.scrollTo(0,0)}))}},{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.onSubmitCallback,onLocationChangeCallback:this.props.onLocationChangeCallback,inputId:"falLocationTypeahead"})),this.props.isVolunteer?React.createElement("div",{className:"asc-search-col"},React.createElement("label",{for:"falLocationName"},"FIND BY FACILITY ",React.createElement("span",null,"(optional)")),React.createElement("div",{className:"input-reset-container"},React.createElement("input",{type:"text",className:"form-control",id:"falLocationName",placeholder:"Hospital or Doctor's Office",value:this.props.facilityName,onChange:this.props.onFacilityNameChangeCallback}))):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:function(){return e.props.onSubmitCallback(e.props.location,event)},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(){this.calculateInitialWidth()}},{key:"calculateInitialWidth",value:function(){var e=this.hiddenSelectInputRef.current.offsetWidth;console.log("width",e);var t="distance"===this.props.filterName?"5500"==this.props.selectedValue?70:50:15;console.log("offset",t),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+"&saddr=My%20Location"}},{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:"_self"},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)))),React.createElement("div",{className:"asc-search-result-phone-appointment"},null!==this.props.item.Data.Location.AppointmentPhoneNumber&&this.props.item.Data.Location.AppointmentPhoneNumber!==this.props.item.Data.Location.PhoneNumber&&""!==this.props.item.Data.Location.AppointmentPhoneNumber?React.createElement(React.Fragment,null,React.createElement("h3",null,"Appointments"),React.createElement("p",null,React.createElement("a",{href:"tel:"+t.FormatPhoneNumberForTelURI(this.props.item.Data.Location.AppointmentPhoneNumber)},this.props.item.Data.Location.AppointmentPhoneNumber))):null)),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:24e-5,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.forEach((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:[]),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,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,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,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")))):"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&&"other"===a.AppointmentType.toLowerCase()&&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.AppointmentType&&"other"!==a.AppointmentType.toLowerCase()&&""!==a.AppointmentLink&&t.push(React.createElement("a",{href:a.AppointmentLink,target:"_blank",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))})),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},2997:(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(6118)),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.scrollOnReturn=a.scrollOnReturn.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,isVolunteer:!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){var a=this;t&&t.preventDefault(),this.setState({location:e||""},(function(){return a.handleSubmit(e,t)}))}},{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,t){t&&t.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(),this.scrollOnReturn()}},{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:"scrollOnReturn",value:function(){window.addEventListener("unload",(function(e){window.scrollTo(0,0)}))}},{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,onlyVolunteer:!0};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}),document.title.includes("Results Found")?document.title=a.Pagination.TotalResults+" Results Found | "+document.title.split("|")[1]+" | "+document.title.split("|")[2]:document.title=a.Pagination.TotalResults+" Results Found | "+document.title;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:"blue-banner"}),React.createElement("div",{className:"col-12 locations-control-results volunteer-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,isVolunteer:this.state.isVolunteer}),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},1759:(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={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),a(t,null,[{key:"FormatPhoneNumberForTelURI",value:function(e){return e?"+1-"+e.replace(/\D/g,""):null}}]),a(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+"&saddr=My%20Location"}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"asc-search-result volunteer-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+"/"+this.props.item.Data.Location.VolunteerPageName,target:"_self"},this.props.item.Data.Location.DisplayName)),React.createElement("ul",{className:"asc-search-result-services"},this.props.item.Data.Location.LocationTypeTags.map((function(t,a){return React.createElement("li",null,t,e.props.item.Data.Location.LocationTypeTags.length-1===a?null:React.createElement("span",null," | "))}))),React.createElement("div",{className:"asc-search-result-details"},React.createElement("div",{className:"asc-search-result-address"},React.createElement("p",null,React.createElement("a",{href:""+this.state.locationDirectionsUrl+this.getAddress(),target:"_blank"},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," ")))),React.createElement("div",{className:"asc-search-result-lead-copy"},React.createElement("p",null,this.props.item.Data.Location.VolunteerLeadBodyCopy)),React.createElement("div",{class:"doctor-buttons"},React.createElement("div",{class:"view-profile-link"},React.createElement("a",{href:this.props.item.Data.Location.Url+"/"+this.props.item.Data.Location.VolunteerPageName},"See Details",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.default=n},6118:(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(1759));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:24e-5,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 volunteer-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},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 y=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.setScrollHandler=function(e){a.setState({isScrollActive:e})},a.setScrollHandler=a.setScrollHandler.bind(a),a.alignMapsToPosition=a.alignMapsToPosition.bind(a),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.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.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={isScrollActive:!1,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,isValidLocation:a.props.data.request.geoDistanceOptions&&void 0!==a.props.data.request.geoDistanceOptions.location,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,enableInitialSearch:a.props.data.EnableInitialSearch,isArrow:!0,isInitialSearch:!0},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(){var e=this;this.featureToggles=this.getFeatureTogglesFromQueryParams(),window.addEventListener("resize",this.resize.bind(this)),window.addEventListener("scroll",this.handleScroll,{passive:!0}),window.addEventListener("popstate",(function(t){return e.handlePopState(t)})),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),window.removeEventListener("popstate",this.handlePopState)}},{key:"handlePopState",value:function(e){var t=this,a=this.state.request,n=new URLSearchParams(location.search).get("page");a.page=n,this.setState({page:n,request:a},(function(){return t.nextPage(n,!1)}))}},{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;if(this.state.totalResults>0&&t!==a){var 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})}else 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(t).format("YYYY-MM-DD").toString().valueOf()==moment(e).format("YYYY-MM-DD").toString().valueOf()}));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;if(a.length<n+4){var s=a.slice(a.length-4,a.length),i=moment(e).diff(moment(moment().format("YYYY-MM-DD")),"days")>4;this.setState({gotoDate:a.length-4,isArrow:i,activeScheduleDays:s,isLoading:!1})}else{var o=a.slice(n,n+4),l=!(moment(a[n]).diff(moment(moment().format("YYYY-MM-DD")),"days")>3);this.setState({gotoDate:n,isArrow:l,activeScheduleDays:o,isLoading:!1})}}},{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;){for(var i=e[s].data.locations.length,o=0,l=function(){var i={},l=t.stringToHash(e[s].data.locations[o].location.address.street+e[s].data.locations[o].location.address.city+e[s].data.locations[o].location.address.stateAbbreviation+e[s].data.locations[o].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[o].location.address.street+", "+e[s].data.locations[o].location.address.city+", "+e[s].data.locations[o].location.address.stateAbbreviation+"  "+e[s].data.locations[o].location.address.zip;i.hash=l,i.Index=n,i.Lat=e[s].data.locations[o].location.address.latitude,i.Lon=e[s].data.locations[o].location.address.longitude,i.PopupLabel=e[s].data.locations[o].location.displayName?e[s].data.locations[o].location.displayName:"",i.mapStreet=e[s].data.locations[o].location.address.street,i.mapCity=e[s].data.locations[o].location.address.city,i.mapState=e[s].data.locations[o].location.address.state,i.mapZip=e[s].data.locations[o].location.address.zip,i.mapUrl=""+r+u+"&amp;saddr=My%20Location",i.providerIds=[e[s].id],i.locationId=e[s].data.locations[o].location.id,a.push(i),n++}o++};o<i;)l();s++}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,n=e.length;a<n;)t=(t<<5)-t+e.charCodeAt(a),t&=t,a++;return t}},{key:"buildQueryAndSubmit",value:function(e){var t=this;e&&e.preventDefault();var a=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};a.scheduleOptions.startDate=moment().format("YYYY-MM-DD"),a.scheduleOptions.endDate=moment(a.scheduleOptions.startDate).add(31,"days").format("YYYY-MM-DD"),!this.state.clearFilters&&this.props.data.request.filters&&this.props.data.request.filters.specialties&&(a.filters.specialties=this.props.data.request.filters.specialties),a.geoDistanceOptions.location&&(this.props.data.request.filters.employerAffiliation&&!this.state.request.filters.providerId&&(a.filters.employerAffiliation=this.props.data.request.filters.employerAffiliation),this.props.data.request.geoDistanceOptions.radius&&!this.state.request.filters.providerId&&(a.geoDistanceOptions.radius=this.props.data.request.geoDistanceOptions.radius),this.state.daySliderDays?this.performSearch(a,!0):this.setState(this.setSchedulingOptions(),(function(){return t.performSearch(a,!0)})))}},{key:"buildArrayQueries",value:function(e){var t="";return Object.keys(e).forEach((function(a){Array.isArray(e[a])?t+=e[a].map((function(t,n){var r=n>0?n.toString():"",s="number"==typeof e[a]?t.toString():encodeURIComponent(t);return t&&t.length>0?"&"+a+r+"="+s:""})):t+="number"==typeof e[a]?"&"+a+"="+e[a].toString():"&"+a+"="+encodeURIComponent(e[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().format("YYYY-MM-DD"),a=e.scheduleOptions.startDate&&"0001-01-01"!==e.scheduleOptions.startDate?moment(this.createFilteredStartDate(moment(e.scheduleOptions.startDate))):t;return e.scheduleOptions.startDate=moment(a).format("YYYY-MM-DD").toString(),e.scheduleOptions.endDate=moment(a).add(88,"days").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(e).add(this.state.gotoDate,"days"):e,n=[],r=0;r<t;)n.push(moment(a).add(r,"days").format("YYYY-MM-DD").toString()),r++;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,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.state.request.geoDistanceOptions.location?this.setState({isLoading:!0,isInitialSearch:!1},(function(){var r=this,s=this.state.useMobile?this.state.pageSizeMobile:this.state.pageSize,i=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{},o=e?this.formatDatesForApi(e):this.formatDatesForApi(i),l=!!(this.state.providerId||o.filters&&o.filters.providerId),c=!1;o.pageSize=s,t&&(o.page=1);var u=a||this.buildDaysFromStartDate(o.scheduleOptions.startDate,this.props.data.Settings.SlidesToShow);o.geoDistanceOptions.location!=this.state.location?(o.filters.updateSearch=[!0],c=!0):delete o.filters.updateSearch,jQuery.ajax({type:"POST",url:"/api/v2/providers/search",data:JSON.stringify(o),async:!0,success:function(e){var t=e.response?e.response:null,a=e.settings?e.settings:r.props.data.Settings,i=t.geoDistanceOptions?t.geoDistanceOptions:o.geoDistanceOptions,p=t?t.results:null,d=i.radius;o.geoDistanceOptions=i;var h=r.buildSortFields(a.EnableSort,a.Sort,o),f=r.buildSelectFields(o,d),m={isLoading:!1,searchPerformed:!0,results:p,request:o||r.props.data.request,pagination:p&&p.pagination?p.pagination:[],facets:p&&p.facets?p.facets:[],page:o.page,totalPages:t&&t.pagination?Math.ceil(t.pagination.totalResults/s):0,totalResults:t&&t.pagination?t.pagination.totalResults:1,searchContext:(new Date).getTime(),marketId:e.marketId,mapPins:p?r.updatePins(p):null,showDaysControl:!!p,highlightItemIndex:0,settings:e.settings,activeScheduleDays:u,isValidLocation:!0,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:i.location,sortFields:h,selectFields:f,initialRadius:c&&f[0]?f[0].SelectItems.find((function(e){return e.Enabled})).Value:r.state.initialRadius,enableInitialSearch:!0};return r.setState(m,(function(){var t=o||r.props.data.request,a=window.location.href.match(/[?&]scheduleDays=[^&#]*/gi);a=Array.isArray(a)?a.join(""):a;var s=e&&e.request?r.buildUrl(t,l)+"&pageType="+m.settings.PageType+"&shouldSearch=true":null;s=a?s+=a:s,n&&window.history.pushState(s,"",s)})),r.state.useMobile&&r.scrollToTop(2),!0}.bind(this),check:!0,contentType:"application/json",dataType:"json"})})):this.setState({isValidLocation:!1})}},{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=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this.state.request?JSON.parse(JSON.stringify(this.state.request)):{};a.page=e,this.scrollToTop(e),this.performSearch(a,!1,null,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=n.length,s=this.state?this.state.settings:this.props.data.Settings,i=s.SlidesToShow>0?s.SlidesToShow:4,o="",l=0,c=t?window.location.href:"";for(c=t?c.replace(/[&?]scheduleDays=[^&#]*/gi,""):"";l<r;)a.push(n[l].id),8!=n[l].id&&(o+=(0==l?"":"&")+"scheduleDays="+n[l].id),l++;var u=this.generateDays(a),p=u.length%i;if(p>0){var d=u.length-p;u=u.slice(0,d)}t&&(c+=(c.includes("?")?"&":"?")+(""!=o?o:"scheduleDays=8"),window.history.pushState({path:c},"",c));var h=u?u.slice(0,i):null;if(!t)return{schedulingOptions:e,isArrow:globalThis.moment&&moment(h[0]).isSameOrBefore(moment(moment().format("YYYY-DD-MM"))),scheduleDays:a,daySliderDays:u,showCalendar:!1,activeScheduleDays:h};this.setState({schedulingOptions:e,isArrow:globalThis.moment&&moment(h[0]).isSameOrBefore(moment(moment().format("YYYY-DD-MM"))),scheduleDays:a,daySliderDays:u,showCalendar:!1,activeScheduleDays:h,gotoDate:0})}},{key:"deleteItems",value:function(e,t){return e.forEach((function(e){delete t.filters[e]})),t}},{key:"setRadius",value:function(e,t){var a=this;if(e.geoDistanceOptions.radius=t,e.geoDistanceOptions.dynamicRadius=!1,t>4999){var n=this.state.sortFields.map((function(e){return"distance"===e.Name?e.Active=!0:e.Active=!1,e}));e.sortBy="distance",this.setState({sortFields:n},(function(){return a.performSearch(e)}))}else this.performSearch(e)}},{key:"setLocation",value:function(e,t){var a=this.state.options?JSON.parse(JSON.stringify(this.state.options)):this.props.data.options;e.geoDistanceOptions.location=t,e.filters.hasOnlineScheduling=["True"],e=this.deleteItems(["appointmentType","displayName","gender","hasProfilePicture","language","providerId","specialties"],e),a.languageOptions.languages.forEach((function(e){e.selected="any"===e.value})),a.genderOptions.forEach((function(e){e.selected="any"===e.value})),a.schedulingOptions.forEach((function(e,t){e.checked=0===t}));var n=this.state.scheduleDays&&8!==this.state.scheduleDays[0]?this.setSchedulingOptions(a.schedulingOptions,!1):{},s=r({},{request:e,appointmentTypeText:null,options:a},n,{isValidLocation:t&&t.length>0});this.setState(s)}},{key:"setSpecialties",value:function(e,t){delete e.filters.specialties,t&&(e.filters.specialties=Array.isArray(t)?[].concat(f(t)):[t]),this.setState({request:e})}},{key:"setToFilterByProvider",value:function(e,t){e=this.deleteItems(["employerAffiliation","providerId","specialties"],e),t&&(e.filters.providerId=Array.isArray(t)?[].concat(f(t)):[t]),this.setState({request:e})}},{key:"setSort",value:function(e,t){var a=this;e.geoDistanceOptions.dynamicRadius=!1;var n=this.state.sortFields.map((function(e){return e.Name===t?e.Active=!0:e.Active=!1,e}));e.sortBy=t,this.setState({sortFields:n},(function(){return a.performSearch(e)}))}},{key:"setAppointmentType",value:function(e,t){var a=window.location.href;if(a=a.replace(/[&?]appointmentType=[^&#]*/gi,""),t){""==t?delete e.filters.appointmentType:e.filters.appointmentType=Array.isArray(t.data.id)?[].concat(f(t.data.id)):[t.data.id];var r=t.data.text;""!=t&&"undefined"!=n(t.data.id)&&(a+=(a.includes("?")?"&":"?")+"appointmentType="+t.data.id),window.history.pushState(a,"",a),this.setState({request:e,appointmentTypeText:r})}else e.filters.appointmentType=null,window.history.pushState(a,"",a),this.setState({request:e,appointmentTypeText:null})}},{key:"setHasOnlineScheduling",value:function(e,t){var a=this;0==t&&(e.filters.appointmentType=[""]),e.sortBy=0==t?"distance":t?"availability":e.sortBy,e.filters.hasOnlineScheduling=t?["True"]:["False"],this.setState({request:e},(function(){return a.performSearch()}))}},{key:"setEmployerAffiliation",value:function(e,t){var a=this;0==t?(e.filters.appointmentType=[""],delete e.filters.employerAffiliation,e.filters.hasOnlineScheduling=["False"],e.sortBy="distance"):e.filters.employerAffiliation=["Ascension Medical Group"],this.setState({request:e},(function(){return a.performSearch()}))}},{key:"setFilters",value:function(e,t,a,n){var r=this,s=["radius","location","specialties","displayName","sortBy","appointmentType"],i=this.state.options?JSON.parse(JSON.stringify(this.state.options)):this.props.data.options;!1===t||""==t||"any"==t||void 0===t?delete e.filters[a]:e.filters[a]=Array.isArray(t)?[].concat(f(t)):[t],"language"===a&&i.languageOptions.languages.forEach((function(e){e.selected=e.value==t})),"gender"===a&&i.genderOptions.forEach((function(e){e.selected=e.value==t})),e.geoDistanceOptions.dynamicRadius=this.state.settings.DynamicRadius;var o=null!=e.filters&&Object.keys(e.filters).some((function(t){return!s.includes(t)||!e.filters[t]})),l=this.state.daySliderDays?this.state.daySliderDays.slice(0,this.state.slidesToShow):null;this.setState({request:e,filteredSearch:o,options:i,gotoDate:0},n?function(){return r.performSearch(null,!1,l)}:null)}},{key:"buildFilters",value:function(e,t){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=this.state.request?this.state.request:{};switch(a&&(n.page=1),e){case"radius":this.setRadius(n,t);break;case"location":this.setLocation(n,t);break;case"specialties":this.setSpecialties(n,t);break;case"providerId":this.setToFilterByProvider(n,t);break;case"sortBy":this.setSort(n,t);break;case"appointmentType":this.setAppointmentType(n,t);break;case"hasOnlineScheduling":this.setHasOnlineScheduling(n,t);break;case"employerAffiliation":this.setEmployerAffiliation(n,t);break;default:this.setFilters(n,t,e,a)}}},{key:"generateDays",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;if(!globalThis.moment)return[];for(var a=[],n=this.state?this.formatDatesForApi(this.state.request):this.formatDatesForApi(this.props.data.request),r=t?moment(t).format("YYYY-MM-DD"):n.scheduleOptions.startDate,s=88,i=null!=globalThis.moment?moment(r).format("YYYY-MM-DD"):null,o=0,l=0;o<s;){var c=moment(i).add(l,"days"),u=null==e||void 0===e||e.indexOf(8)>-1,p=!u&&e.indexOf(c.day())>-1;(p||u)&&(a.push(c.format("YYYY-MM-DD").toString()),o++),o=++l>88?88:o}for(;a.length>4&&a.length%2!=0;)a.pop();return a}},{key:"setCalendarState",value:function(e){e.preventDefault();var t=!this.state.showCalendar;this.setState({showCalendar:t})}},{key:"alignMapsToPosition",value:function(){window.scrollTo(0,this.mapRef.current.offsetHeight)}},{key:"handleScroll",value:function(){if(this.state.searchPerformed){var e=window.scrollY,t=document.getElementById("stop-sticky-map")?document.getElementById("stop-sticky-map").getBoundingClientRect().top:0,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,isMapNearFooter:!1},(function(){return e.scrollIntoView()}))}},{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!0===e.Enabled&&!0===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,{setScrollHandler:this.setScrollHandler,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,appointmentDropDownSearchLabel:this.props.data.AppointmentDropDownSearchLabel,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,isValidLocation:this.state.isValidLocation}),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,languageCheck:this.state.request.filters.language?this.state.request.filters.language[0].toLowerCase():"any",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,isArrow:this.state.isArrow,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,gotoDate:this.state.gotoDate,setGotoDate:this.setGotoDate,isLoading:this.state.isLoading,location:this.state.request.geoDistanceOptions.location?this.state.request.geoDistanceOptions.location:null})),React.createElement("div",{className:"appt-booking-distance-control"},this.state.totalResults>0?React.createElement(u.default,{buildFiltersCallback:this.buildFilters,selectFields:this.state.selectFields,radius:this.state.request.geoDistanceOptions.radius,recordCount:this.state.totalResults}):null)))),!this.state.useMobile&&React.createElement("span",{id:"paginationScrollAnchor"}),React.createElement(p.default,(m(e={isScrollActive:this.state.isScrollActive,alignMapsToPosition:this.alignMapsToPosition,setScrollHandler:this.setScrollHandler,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,"setGotoDateCallback",this.setGotoDate),m(e,"slidesToScroll",this.state.settings.SlidesToScroll),m(e,"slidesToShow",this.state.slidesToShow),m(e,"infinite",this.state.settings.InfiniteScroll),m(e,"enableInitialSearch",this.state.enableInitialSearch),m(e,"isInitialSearch",this.state.isInitialSearch),m(e,"handleScroll",this.handleScroll),e))))}}]),t}();t.Z=y},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.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.slideDates=a.slideDates.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.days!=this.props.days&&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){var t=this;if(this.props.isLoading||!this.props.activeScheduleDays||!this.props.days||!this.props.slidesToShow)return null;var a=e?this.props.days.findIndex((function(e){return e===moment(t.props.activeScheduleDays[t.props.slidesToShow-1]).format("YYYY-MM-DD")}))+1:this.props.days.findIndex((function(e){return e===moment(t.props.activeScheduleDays[0]).format("YYYY-MM-DD")}))-this.props.slidesToShow;this.props.setGotoDate(moment(this.props.days[a]).format("YYYY-MM-DD"))}},{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.$el.on("swipe",(function(t,a,n){"left"===n?e.slideDates(!0):e.slideDates(!1)})),this.$rArrowEl.click((function(t){e.slideDates(!0)})),this.$lArrowEl.click((function(t){e.slideDates(!1)})))),this.state.init||this.setState({init:!0})}},{key:"removeSlider",value:function(){this.refs.el&&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){this.props.clickOutsideCalendarCallback(),this.props.setGotoDate(moment(e).format("YYYY-MM-DD"))}},{key:"render",value:function(){var e=this;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 "+(this.props.isArrow?"disable-arrow":""),ref:"lArrowEl"}),React.createElement("div",{className:"appt-booking-result-days",ref:"el"},this.props.days?this.props.days.map((function(t){return React.createElement("button",{className:"appt-booking-schedule-day-list button btn-link"},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.handleScroll=a.props.handleScroll,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(){this.props.showMoreActive&&window.addEventListener("click",this.handleScroll,{passive:!0})}},{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+"&saddr=My%20Location"}},{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=parseInt(this.props.useMobile?this.props.pagesToDisplayMobile:this.props.pagesToDisplay),t=this.props.useMobile?this.props.pageSizeMobile:this.props.pageSize,a=parseInt(this.props.totalPages),n=parseInt(this.props.totalResults),r=parseInt(this.props.currentPage),s=Math.ceil(e/2)+1,i=this.props.useMobile?2:3,o=void 0,l=void 0;a<=e?(o=1,l=a):r<=s?(o=1,l=e):r+i>=a?(o=a-(t-1),l=a):(o=r-((a-1)%2?i+1:i),l=r+i);var c=(r-1)*t,u=Math.min(c+t-1,n-1),p=Array.from(Array(l+1-o).keys()).map((function(e){return o+e}));return{currentPage:r,pageSize:t,totalPages:a,startPage:o,endPage:l,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(e).diff(moment(moment(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(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(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){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.state.availableTimes?this.state.availableTimes.filter((function(t){return e.props.activeScheduleDays.findIndex((function(e){return e.valueOf()===moment(t.date).format("YYYY-MM-DD").toString().valueOf()}))>-1})):[],n=a,r=this.state.availableTimes&&this.state.availableTimes.length>0?this.state.availableTimes:null,s=this.props.scheduleDays?this.props.scheduleDays:null,i=r&&s&&s.indexOf(8)<0?r.filter((function(e){return s.indexOf(moment(e.date).day())>-1})):r,o=a?this.filterSchedulesByAppointmentType(a):null,l=i&&this.props.appointmentType?i.filter((function(t){return null!=t&&1==t.times.some((function(t){return 1==t.appointmentTypes.some((function(t){return t.id==e.props.appointmentType[0]}))}))})):i,c=(t&&null!=l&&l.length>0||null!=l&&l.length>0)&&moment(l[0].date).diff(moment(this.props.activeScheduleDays[this.props.slidesToShow-1]),"days")>1;this.setState({hasUnselectedAppointments:!1===c&&n.length>0&&0===o.length,schedules:o,firstAvailable:null!=l&&l.length>0?l[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(e.date).format("YYYY-MM-DD"),day:moment(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,"rowsToShow",5),l(e,"setGotoDate",this.props.setGotoDate),l(e,"slidesToScroll",this.props.slidesToScroll),l(e,"slidesToShow",this.props.slidesToShow),l(e,"infinite",this.props.infinite),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(e).diff(moment(moment(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={totalRows:0,calculatedRows:5,showMoreSchedules:!0,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&&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.props.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.props.rowsToShow);for(var s=0,i=this.props.activeScheduleDays.length,o=function(){for(var n=e.props.activeScheduleDays[s],i=[],o={},l=0,c=a.find((function(e){return e.date.valueOf()==n.valueOf()})),u=c?c.times.find((function(e){return e.time.length>0})):null,p=u?moment.parseZone(u.time).utcOffset():null;l<r;){var d={},h=null!=c&&l<c.times.length?moment(c.times[l].time).utcOffset(p).format("YYYY-MM-DD HH:mm"):null,f=moment(h).format("YYYY-MM-DD HH:mm");d.Index=l,d.Time=h?moment(h).format("LT"):null,d.Date=h?c.date:null,d.Link=h?e.props.location.schedule.registrationUrl+"?appointment_type="+e.props.appointmentType+"&at="+f:"",i.push(d),++l}o.Date=n,o.ColumnHasTimes=l>0;var m=r>e.props.rowsToShow+1&&e.state.showMoreSchedules?i.slice(e.props.rowsToShow,i.length-1):null;o.Times=e.state.showMoreSchedules?i.slice(0,e.props.rowsToShow-1):i,o.columnHasMore=!!m&&m.filter((function(e){return null!=e.Time})).length>0,t.push(o),s++};s<i;)o();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(){var e=t.props.activeScheduleDays[t.props.activeScheduleDays.length-1];t.props.setGotoDate(moment(e).add(1,"days").format("YYYY-MM-DD").toString()),t.$el.slick("slickNext")})),this.$lArrowEl.click((function(){var e=t.props.activeScheduleDays[0],a=moment(e).diff(moment(),"days")>-5?moment(e).subtract(t.props.slidesToShow,"days").format("YYYY-MM-DD").toString():null;t.props.setGotoDate(a),t.$el.slick("slickPrev")})))),this.state.init||this.setState({init:!0})}},{key:"getFormattedDate",value:function(e){var t=globalThis.moment?moment(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.props.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.state={isValidLocation:!0,isEditing:!1},a.handleLocationChange=a.handleLocationChange.bind(a),a.handleLocationSubmit=a.handleLocationSubmit.bind(a),a.buildQueryAndSubmit=a.props.buildQueryAndSubmitCallback,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:"handleAppointmentChange",value:function(e,t){this.buildFilters("appointmentType",e,null,!1)}},{key:"handleLocationChange",value:function(e,t,a,n){var r=this;this.setState({isValidLocation:a,isEditing:n},(function(){return r.buildFilters("location",e,t,!1)}))}},{key:"handleLocationSubmit",value:function(e,t,a){var n=this;this.buildFilters("location",e,t,!1),this.setState({isValidLocation:a,isEditing:!1},(function(){return n.buildQueryAndSubmit(t)}))}},{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.handleLocationSubmit,onLocationChangeCallback:this.handleLocationChange,inputName:"location",isValidLocation:this.props.isValidLocation,validTermsCache:[{offset:0,value:this.props.location}],setFocus:!0,nextTabClass:"asc-select-dropdown-input-header"})),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,isValidLocation:this.props.isValidLocation,isEditing:this.state.isEditing})),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,appointmentInputLabel:this.props.appointmentInputLabel,appointmentDropDownSearchLabel:this.props.appointmentDropDownSearchLabel,isValidLocation:this.props.isValidLocation,isEditing:this.state.isEditing,nextTabClass:"asc-search-col-button"})),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.isValidLocation&&""!==this.props.location?"":"disabled","aria-disabled":!this.props.isValidLocation||""===this.props.location,onMouseUp:function(){return e.removeFocus()},ref:this.searchFormSubmitBtn,onClick:function(){return e.props.isValidLocation?e.props.setScrollHandler(e.props.location):null}}))))))))}}]),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.toggleMobileFilters=a.toggleMobileFilters.bind(a),a.setSchedulingOptions=a.props.setSchedulingOptionsCallback,a.buildFilters=a.props.buildFiltersCallback,a.shouldDisplayFilters=a.shouldDisplayFilters.bind(a),a.changeScheduling=a.changeScheduling.bind(a),a.changeGender=a.changeGender.bind(a),a.changeLanguage=a.changeLanguage.bind(a),a.handleFilterChange=a.handleFilterChange.bind(a),a.state={showMoreFilters:!(!a.props.filters.hasOnlineScheduling&&!a.props.filters.hasProfilePicture),showMobileFilters:!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:"changeScheduling",value:function(e){if(e){var a=e.target,n=this.props.options.schedulingOptions;(n=n.map((function(e){return e.value===t.Any&&(e.checked=!1),a.value===t.Any&&e.value!==t.Any&&(e.checked=!1),e.value===a.value&&(e.checked=a.checked),e}))).every((function(e){return!1===e.checked}))&&(n=n.map((function(e){return e.value===t.Any&&(e.checked=!0),e}))),this.setSchedulingOptions(n)}}},{key:"changeGender",value:function(e){var t=this;if(e){var a=this.props.options,n=e.target.value;a.genderOptions.forEach((function(e){e.selected=e.value==n})),this.setState({options:a},(function(){return t.buildFilters("gender",n)}))}}},{key:"changeLanguage",value:function(e){var t=this;if(e){var a=this.props.options,n=e.target.value;a.languageOptions.languages.forEach((function(e){e.selected=e.value==n})),this.setState({options:a},(function(){return t.buildFilters("language",n)}))}}},{key:"handleFilterChange",value:function(e){var t=e.target.checked,a=e.target.getAttribute("filterValue")?e.target.getAttribute("filterValue"):t;this.buildFilters(e.target.name,a)}},{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(){return this.shouldDisplayFilters()?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.options.languageOptions.languages.filter((function(e){return!0===e.selected})).map((function(e){return e.value})),items:this.props.options.languageOptions.languages,itemLabel:"languageOptions",itemType:"radio",name:"language",changeFunction:this.changeLanguage})),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.props.options.genderOptions.filter((function(e){return!0===e.selected})).map((function(e){return e.value})),items:this.props.options.genderOptions,itemLabel:"genderOptions",itemType:"radio",name:"gender",changeFunction:this.changeGender})),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:this.props.options.schedulingOptions?this.props.options.schedulingOptions.filter((function(e){return!0===e.checked})).map((function(e){return e.value})).join(", "):"Any",items:this.props.options.schedulingOptions,itemLabel:"schedulingOptions",itemType:"check",name:"scheduling",changeFunction:this.changeScheduling}))),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"})))))):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.buildFilters=a.props.buildFiltersCallback,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:"filterDates",value:function(e){var t=this;return e.filter((function(e){return t.props.activeScheduleDays.findIndex((function(t){return t.valueOf()==moment(e.date).format("YYYY-MM-DD").toString().valueOf()}))>-1}))}},{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,handleScroll:e.props.handleScroll}))))),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,"showMoreLabel",e.props.showMoreLabel),c(u,"showLessLabel",e.props.showLessLabel),c(u,"setGotoDate",e.props.setGotoDate),c(u,"slidesToScroll",e.props.slidesToScroll),c(u,"slidesToShow",e.props.slidesToShow),c(u,"infinite",e.props.infinite),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.searchRef=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)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.mapWidthCalc)}},{key:"componentDidUpdate",value:function(){this.props.isScrollActive&&this.props.results.length&&this.executeScroll()}},{key:"executeScroll",value:function(){null!=this.searchRef.current&&this.props.results.length>0&&this.searchRef.current.scrollIntoView({behavior:"smooth"}),this.props.setScrollHandler(!1),this.props.alignMapsToPosition()}},{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.isLoading||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",ref:this.searchRef},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.setGotoDateCallback,slidesToScroll:e.props.slidesToScroll,slidesToShow:e.props.slidesToShow,infinite:e.props.infinite,handleScroll:e.props.handleScroll}))}))),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},this.props.isLoading?null: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.isInitialSearch?"":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={distanceInputWidth:a.props.radius&&a.props.radius<=25?"69px":a.props.radius&&a.props.radius<=50?"70px":a.props.radius&&a.props.radius<=75?"68px":a.props.radius&&a.props.radius<=100?"75px":"103px"},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(),this.setState({distanceInputWidth:this.props.radius&&this.props.radius<=25?"69px":this.props.radius&&this.props.radius<=50?"70px":this.props.radius&&this.props.radius<=75?"68px":this.props.radius&&this.props.radius<=100?"75px":"103px"}))}},{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.props.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.props.selectFields?this.props.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}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(){var e=this;this.$elSelect2=jQuery(this.elSelect2),this.$elSelect2.select2({disabled:!this.isLocation(),placeholder:this.props.appointmentInputLabel||"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}}),jQuery(document).on("keydown",".select2-selection.select2-selection--single",(function(e){"Tab"!=e.code&&(jQuery(this).closest(".select2-container").siblings("select:enabled").select2("open"),jQuery(".select2-search__field")[0].focus())})),jQuery(document).keyup((function(t){return e.deleteValue(t)})),this.$elSelect2.on("select2:select",this.handleSelect),this.$elSelect2.on("select2:clear",this.handleSelect);var t=this.props.appointmentDropDownSearchLabel||"Search Type of Appointment";this.$elSelect2.on("select2:open",(function(){jQuery("input.select2-search__field").attr("maxlength","50").prop("placeholder",t)})),this.$elSelect2.on("select2-loaded",(function(e){jQuery("input.select2-search__field").focus()})),this.setSelectedItem()}},{key:"componentDidUpdate",value:function(e,t,a){this.isLocation()?this.$elSelect2.prop("disabled",!1):(this.$elSelect2.prop("disabled",!0),this.$elSelect2.val(null).trigger("change")),this.props.appointmentType!==e.appointmentType&&this.setSelectedItem()}},{key:"deleteValue",value:function(e){46!==e.keyCode&&27!==e.keyCode||"select2-search__field"!==e.target.className||this.$elSelect2.val(null).trigger("change")}},{key:"setSelectedItem",value:function(){if(this.props.appointmentTypeText){var e=this.props.appointmentType&&Array.isArray(this.props.appointmentType)?this.props.appointmentType[0]:this.props.appointmentType,t=this.props.appointmentTypeText&&Array.isArray(this.props.appointmentTypeText)?this.props.appointmentTypeText[0]:this.props.appointmentTypeText;this.$elSelect2=jQuery(this.elSelect2);var a=new Option(t,e,!0,!0);this.$elSelect2.append(a).trigger("change")}}},{key:"componentWillUnmount",value:function(){this.$elSelect2.select2("destroy"),this.$elSelect2.off("select2:select"),this.$elSelect2.off("select2:clear")}},{key:"isLocation",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,maxDays:a.props.maxDays?a.props.maxDays:88},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))}},{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=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=new Date,r=new Date(e),s="next"==a?new Date(r.setMonth(r.getMonth()+1)):"previous"==a?new Date(r.setMonth(r.getMonth()-1)):new Date(this.state.currDate),i=s.getMonth(),o=s.getFullYear(),l=new Date(o,i,1),c=l.getDay(),u=this.getDaysInMonth(i,o),p=new Date(o,i,0),d=Math.ceil((c+u)/7),h=[],f=moment(moment(r).endOf("month").format("YYYY-MM-DD")).diff(moment(moment().format("YYYY-MM-DD")),"days")>this.state.maxDays,m=this.getMonthName(new Date)==this.getMonthName(r)&&n.getFullYear()==o,y=function(e){return e.setHours(0,0,0,0)>=(new Date).setHours(0,0,0,0)&&moment(moment(e).format("YYYY-MM-DD")).diff(moment(moment().format("YYYY-MM-DD")),"days")<t.state.maxDays},b=1,g=p.getDate()-c+1,v=1,R=1,S=0;S<d;){var E=[],w=0;if(0==S){for(;w<c;)E.push({index:w,enabled:"disabled",date:new Date(o,i,g),day:this.getDay(new Date(o,i,g)),number:g}),w++,g++;for(var k=w;k<7;k++)E.push({index:k,enabled:y(new Date(o,i,b))?null:"disabled",date:new Date(o,i,b),day:this.getDay(new Date(o,i,b)),number:b}),R=b+1,b++}else for(var N=0;N<7;N++)R<u+1?E.push({index:N+7*S,enabled:y(new Date(o,i,R))?null:"disabled",date:new Date(o,i,R),day:this.getDay(new Date(o,i,R)),number:R}):(E.push({index:N+7*S,enabled:"disabled",date:new Date(o,i,v),day:this.getDay(new Date(o,i,v)),number:v}),v++),R++;h.push({days:E}),S++}this.setState({calendar:{month:{weeks:h,name:this.getMonthName(r),year:o,date:l,disablePrevMonth:m,disableNextMonth:f}}})}},{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 "+(this.state.calendar.month.disableNextMonth?"disabled":"")},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,items:a.props.items},a.toggleDropdown=a.toggleDropdown.bind(a),a.collapseDropdown=a.collapseDropdown.bind(a),a.handleClickOutside=a.handleClickOutside.bind(a),a.changeFunction=a.props.changeFunction,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}),e.items!=this.props.items&&this.setState({items:this.props.items})}},{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(){var e=this;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},"radio"==this.props.itemType?this.state.items.map((function(t,a){var n=""+e.props.itemLabel+t.displayName;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:e.props.itemLabel,value:t.value,id:n,onChange:e.changeFunction,"data-display-name":t.displayName,defaultChecked:t.selected,checked:t.selected}),React.createElement("label",{className:"asc-search-label-radio",htmlFor:n},t.displayName)))})):this.state.items.map((function(t){var a=""+e.props.itemLabel+t.id;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:"checkbox",name:e.props.itemLabel,value:t.value,id:a,checked:t.checked,onChange:e.changeFunction}),React.createElement("label",{className:"asc-search-label-checkbox",htmlFor:a},t.text)),"any"===t.value?React.createElement("div",{className:"dropdown-divider"}):null)}))))}}]),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())):Array.isArray(t.filterValue)?t.filterValue.map((function(a){return React.createElement("li",null,React.createElement("button",{className:"filter-button-pill",rel:"nofollow",onClick:function(n){e.removeFilters(n,t.filterName,a)}},a," ",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)}},t.filterValue," ",e.showCloseIcon()))})):null,this.props.filters.length>1||this.props.filters.findIndex((function(e){return Array.isArray(e.filterValue)&&e.filterValue.length>1}))>-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.inputHeader=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.isEditing||this.props.isValidLocation||this.props.inputLabel?this.selectInput.current.classList.remove("disabled"):this.selectInput.current.classList.add("disabled"),this.isInputEnabled()){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.isInputEnabled()&&!this.props.isEditing&&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.isEditing||this.props.isValidLocation||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&&this.props.isValidLocation}},{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(e){var t=this;"Tab"!==e.key&&this.isInputEnabled()&&this.setState((function(e){return{listOpen:!e.listOpen}}),(function(){t.state.listOpen&&(t.termBox.current.focus(),t.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=this;this.inputHeader.current.focus();var i=JSON.parse(JSON.stringify(this.state[a])),o=i?i.findIndex((function(e){return e.id===t})):-1,l=e;o>-1&&(i[o].selected=!0,l=i[o].text),this.setState((n(r={},a,i),n(r,"selectedValue",l),n(r,"selectedId",t),n(r,"listOpen",!1),n(r,"filterInputValue",null),r),(function(){switch(a){case"provider":s.props.onProviderSelect("providerId",t,null,!1);break;case"specialty":s.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){var t=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.preventDefault(),e.target.value&&e.target.value.length>50&&(e.target.value=e.target.value.substring(0,50));var n=this.generateProviderSpecialtyQueryData(15,this.props.type,e.target.value);this.performProviderSpecialtySearch(n),a?this.setState({filterInputValue:e.target.value,listOpen:!0},(function(){return t.termBox.current.focus()})):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]:"";return{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"}}}},{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"Delete":this.handleSelectItem("","","specialty"),this.handleSelectItem("","","provider");break;case"Esc":case"Escape":case"Enter":e.preventDefault();var r=this.state.selectedValue||e.target.value;if(void 0!==r&&""!==r&&null!==r){var s=t?t.findIndex((function(e){return e.text===r})):-1,i=s>-1?[t[s]]:t&&void 0!==t?t.filter((function(e){return e.text.indexOf(r)})):null,o=i&&i.length>0?i[0]:null,l=a?a.findIndex((function(e){return e.text===r})):-1,c=l>-1?[a[l]]:a&&void 0!==a?a.filter((function(e){return e.text.indexOf(r)})):null,u=c&&c.length>0?c[0]:null,p=o||u||"",d=o?"specialty":u?"provider":null;this.handleSelectItem(p.text,p.id,d)}else 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 h=0,f=function(e){null!==n.state[e]&&(h=n.state[e]>=1?n.state[e]-1:0)};t&&t.length>0&&null===this.state.selectedProviderIndex?(f("selectedSpecialtyIndex"),this.setState({selectedSpecialtyIndex:h,selectedValue:t[h].text})):(f("selectedProviderIndex"),this.setState({selectedProviderIndex:h,selectedValue:a[h].text,selectedId:a[h].id}));break;case"Down":case"ArrowDown":e.preventDefault();var m=0,y=function(e,t){null!==n.state[e]&&(m=n.state[e]<t.length-1?n.state[e]+1:t.length-1)};t&&t.length>0&&null===this.state.selectedProviderIndex?(y("selectedSpecialtyIndex",t),this.setState({selectedSpecialtyIndex:m,selectedValue:t[m].text})):(y("selectedProviderIndex",a),this.setState({selectedProviderIndex:m,selectedValue:a[m].text,selectedId:a[m].id}));break;case"End":if(e.preventDefault(),null===this.state.selectedProviderIndex){var b=t.length-1;this.setState({selectedSpecialtyIndex:b,selectedValue:t[b].text})}else{var g=a.length-1;this.setState({selectedProviderIndex:g,selectedValue:a[g].text,selectedId:a[g].Id})}break;case"Tab":e.preventDefault(),(null!==this.state.selectedSpecialtyIndex||t&&0==t.length)&&this.setState({selectedProviderIndex:0,selectedSpecialtyIndex:null});break;default:return}}},{key:"render",value:function(){var e=this,t=this.state,a=t.listOpen,n=t.filterInputValue,r=t.specialty,s=t.provider,i=t.selectedSpecialtyIndex,o=t.selectedProviderIndex,l=this.state.selectedValue,c=r,u=s,p=0===this.props.type||1===this.props.type?n?c.filter((function(e){return e.text.toLowerCase().includes(n.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:"6","aria-hidden":"true"},l?React.createElement("option",{value:l},l):""),React.createElement("div",{className:"asc-select-dropdown-input-header",ref:this.inputHeader,tabIndex:"0",role:"combobox",onClick:function(t){return e.toggleList(t)},onKeyDown:function(t){return e.toggleList(t)}},React.createElement("div",{className:"asc-select-dropdown-input-header-title "+(l?"":"placeholder")},l||this.props.placeholder,l?React.createElement("span",{className:"clear",title:"Remove item",onClick:function(t){return e.handleClear(t)}},"×"):""),l?"":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:n,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":i===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":o===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.topArrowRef=React.createRef(),a.changeFilters=a.changeFilters.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:"componentDidUpdate",value:function(){!this.isLoading&&this.topArrowRef&&this.topArrowRef.current&&this.topArrowRef.current.onScroll()}},{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]&&("hasOnlineScheduling"===e?this.state.request.filters[e].indexOf(t.displayName):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(),this.changeFilters(t,null,!0)}},{key:"changeFilters",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.state.request?this.state.request:{};switch(e){case"radius":r.geoDistanceOptions[e]=a;break;case"location":r.geoDistanceOptions[e]=a,r.filters=this.props.clearFilters?{}:r.filters;break;case"clear":delete r.filters.providerId,delete r.filters.specialties;break;default:delete r.filters[e],a&&(r.filters[e]=Array.isArray(a)?[].concat(d(a)):[a])}this.setState({request:r},(function(){n&&t.performSearch(r)}))}},{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="";return Object.keys(e).forEach((function(a){Array.isArray(e[a])?t+=e[a].map((function(t,n){var r=n>0?n.toString():"",s="number"==typeof e[a]?t.toString():encodeURIComponent(t);return t.length>0?"&"+a+r+"="+s:""})):t+="number"==typeof e[a]?"&"+a+"="+e[a].toString():"&"+a+"="+encodeURIComponent(e[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;case"hasOnlineScheduling":delete s.filters[e],t&&"any"!==t&&(s.filters[e]=["true"]),i=!s.filters.length>0,this.setState({request:s},r?function(){return a.performSearch(null,!0,i)}:null);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;i.page=t?1:i.page,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?e.response.pagination:null,facets:a&&e.response?e.response.facets:s,page:t?1:e.request.page,pageSize:e.request.pageSize,isEnd:!e.response||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,{changeFilters:this.changeFilters,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&&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.results&&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,{ref:this.topArrowRef})):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+"&saddr=My%20Location",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,viewMoreResultsLabel:this.props.data.ViewMoreResultsLabel,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)))),null!=a.phoneNumber?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))):null,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 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.screenResolution=null,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),hideMoreLabel:!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:"componentDidMount",value:function(){var e=this;this.screenResolution=window.screen.width,window.addEventListener("resize",(function(){e.screenResolution=window.screen.width})),this.screenResolution<=693&&this.props.searchResults.length<=1&&this.setState({hideMoreLabel:!0}),this.screenResolution>693&&this.screenResolution<=1024&&this.props.searchResults.length<=2&&this.setState({hideMoreLabel:!0}),this.screenResolution>1024&&this.props.searchResults.length<=4&&this.setState({hideMoreLabel:!0})}},{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;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){if(e.preventDefault(),this.screenResolution<=693){var t=this.state.mobileCount<this.props.searchResults.length?this.state.mobileCount+2:this.props.searchResults.length;t>=this.props.searchResults.length&&this.setState({hideMoreLabel:!0})}if(this.screenResolution>693&&this.screenResolution<=1024){var a=this.state.tabletCount<this.props.searchResults.length?this.state.tabletCount+4:this.props.searchResults.length;a>=this.props.searchResults.length&&this.setState({hideMoreLabel:!0})}if(this.screenResolution>1024){var n=this.state.desktopCount<this.props.searchResults.length?this.state.desktopCount+8:this.props.searchResults.length;n>=this.props.searchResults.length&&this.setState({hideMoreLabel:!0})}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",{className:"results-summary"},this.props.searchResults.length," Doctors within this location")),React.createElement("div",{className:(1==this.state.hideMoreLabel?"hide-label":"")+" sortOptions section-container"},React.createElement("a",{className:"fad-sort-inactive",onClick:function(t){return e.addRows(t)}},this.props.viewMoreResultsLabel)))}}]),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",isValidLocation:!0,request:a.props.request,isEditing:!1},a.submitSearch=a.props.submitSearchCallback,a.changeQuery=a.props.changeQueryCallback,a.handleSubmit=a.handleSubmit.bind(a),a.handleLocationChange=a.handleLocationChange.bind(a),a.handleLocationSubmit=a.handleLocationSubmit.bind(a),a.changeFilters=a.props.changeFilters,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,t,a,n){var r=this;this.setState({isValidLocation:a,isEditing:n},(function(){return r.changeFilters("location",e)}))}},{key:"handleLocationSubmit",value:function(e,t,a){var n=this;this.setState({isValidLocation:a,isEditing:!1},(function(){n.changeFilters("location",e),n.handleSubmit(t)}))}},{key:"scroll",value:function(){window.scrollTo(0,150)}},{key:"handleSubmit",value:function(e){e&&e.preventDefault();var t=this.props.request?JSON.parse(JSON.stringify(this.props.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,t.geoDistanceOptions.location&&this.state.isValidLocation&&(this.submitSearch(t,!0),this.scroll())}},{key:"handleDistanceWidthChange",value:function(){var e=this.selectInputRef.current.selectedIndex,t=this.selectInputRef.current.childNodes[e];this.hiddenOptionInputRef.current.innerHTML=t.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.props.request.geoDistanceOptions.location,onSubmitCallback:this.handleLocationSubmit,onLocationChangeCallback:this.handleLocationChange,inputName:"location",inputId:"fadLocationTypeahead",dropdownId:"fadLocationTypeaheadDropdown",validTermsCache:[{offset:0,value:this.props.request.geoDistanceOptions.location}],isValidLocation:this.state.isValidLocation})))),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.props.request.geoDistanceOptions.location,radius:this.props.request.geoDistanceOptions.radius,geospatialFilter:!0,allSpecialties:null,inputLabel:this.props.request.filters&&this.props.request.filters&&this.props.request.filters.providerId?this.props.lastNameInputLabel:null,selectedInputLabel:this.props.request.filters.displayName?this.props.request.filters.displayName[0]:null,placeholder:this.props.request.filters&&this.props.request.filters&&this.props.request.filters.displayName?this.props.lastNameInputLabel:this.props.lastNameLabel,type:2,isValidLocation:this.state.isValidLocation,isEditing:this.state.isEditing}))),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.props.request.geoDistanceOptions.location,radius:this.props.request.geoDistanceOptions.radius,geospatialFilter:!0,allSpecialties:this.props.specialties,inputLabel:this.props.request.filters&&this.props.request.filters&&this.props.request.filters.specialties?this.props.specialtyInputLabel:null,selectedInputLabel:this.props.specialtyInputLabel,placeholder:this.props.specialtyInputLabel,type:1,isValidLocation:this.state.isValidLocation,isEditing:this.state.isEditing})),React.createElement("div",{className:"asc-search-col-button"},React.createElement("div",{className:"button-primary"},React.createElement("input",{type:"submit",className:this.state.isValidLocation&&""!==this.props.request.geoDistanceOptions.location?"":"disabled",disabled:!this.state.isValidLocation||""===this.props.request.geoDistanceOptions.location,"aria-disabled":!this.state.isValidLocation||""===this.props.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},3588:(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=l(a(3560)),s=(l(a(8058)),l(a(38))),i=l(a(632)),o=(l(a(7687)),l(a(7454)));function l(e){return e&&e.__esModule?e:{default:e}}a(2258);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.increaseDoctorLimit=function(){a.setState({doctorLimit:a.state.doctorLimit+10<a.state.results.length?a.state.doctorLimit+10:a.state.results.length})},a.increaseLocationLimit=function(){a.setState({locationLimit:a.state.locationLimit+10<a.state.locationResults.length?a.state.locationLimit+10:a.state.locationResults.length})},a.getQueryUrl=a.getQueryUrl.bind(a),a.doctorTypeAheadHandler=a.doctorTypeAheadHandler.bind(a),a.facilityTypeAheadHandler=a.facilityTypeAheadHandler.bind(a),a.specialtiesTypeAheadHandler=a.specialtiesTypeAheadHandler.bind(a),a.servicesTypeAheadHandler=a.servicesTypeAheadHandler.bind(a),a.changeRadiusHandler=a.changeRadiusHandler.bind(a),a.checkboxFilterHandler=a.checkboxFilterHandler.bind(a),a.setSearchValue=a.setSearchValue.bind(a),a.performProviderSearch=a.performProviderSearch.bind(a),a.performLocationSearch=a.performLocationSearch.bind(a),a.addFilterBysToCachedSearchRequest=a.addFilterBysToCachedSearchRequest.bind(a),a.addFilterDropdownsToCachedSearchRequest=a.addFilterDropdownsToCachedSearchRequest.bind(a),a.updateCachedRadius=a.updateCachedRadius.bind(a),a.searchMain=React.createRef(),a.state={isLoading:!1,data:a.props.data.PhysicianSearchResults,locationData:a.props.data.AncillarySearchResults,query:a.props.data.Request,defaultRequest:a.props.data.DefaultRequest,results:[],locationResults:[],facets:a.props.data.PhysicianSearchResults.Facets,filterCategoriesFolder:a.props.data.FilterCategoriesFolder,radius:a.props.data.radius,searchValueState:"",searchValueCity:"",searchValueZip:"",heldRadius:a.props.data.radius,heldState:"",heldCity:"",heldZip:"",physicianNamesList:[],facilityNamesList:[],PhysicianSpecialties:a.props.data.PhysicianSpecialties,FacilityServices:a.props.data.FacilityServices,doctorTypeAheadValue:null===a.props.data.filterNameString?"":a.props.data.filterNameString,facilityTypeAheadValue:null===a.props.data.filterFacilityString?"":a.props.data.filterFacilityString,specialtiesTypeAheadValue:null===a.props.data.filterSpecialtyString?"":a.props.data.filterSpecialtyString,servicesTypeAheadValue:null===a.props.data.filterServiceString?"":a.props.data.filterServiceString,doctorLimit:10,locationLimit:10,limitHasChanged:!1,hasSearched:!1,filterLanguageList:a.props.data.filterLanguageList,filterGenderList:a.props.data.filterGenderList,filterSchedulingOptionsList:a.props.data.filterSchedulingOptionsList,filterAcceptingNewPatientsBoolean:a.props.data.filterAcceptingNewPatientsBoolean,filterDisabilityAccommodationBoolean:a.props.data.filterDisabilityAccommodationBoolean,initialLoad:!0,sort:a.props.data.sort,isDistanceActive:!0,isAlphabeticalActive:!1,autocomplete:null,autocompleteIsInitialized:!1,doctorProfileDefault:a.props.data.Settings.DoctorProfileUrl,textboxValue:"",heldTextboxValue:"",latLng:{},isCached:a.props.data.IsCached},null!==a.props.data.AncillarySearchResults.results&&a.setState({locationResults:a.props.data.AncillarySearchResults.results}),null!==a.props.data.PhysicianSearchResults.results&&a.setState({results:a.props.data.PhysicianSearchResults.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),n(t,[{key:"componentDidMount",value:function(){var e=this;console.log("start function ComponentDidMount");var t=document.createElement("script");if(t.src="https://maps.googleapis.com/maps-api-v3/api/js/44/14/places.js",t.async=!0,document.body.appendChild(t),this.state.isCached){console.log("search is cached"),this.setState({results:this.props.data.PhysicianSearchResults.results,locationResults:this.props.data.AncillarySearchResults.results});var a={lat:this.props.data.Request.latitude,lng:this.props.data.Request.longitude};(new google.maps.Geocoder).geocode({latLng:a},(function(t,n){if(n===google.maps.GeocoderStatus.OK&&t[0]){for(var r=t[1].address_components,s="",i="",o="",l=0;l<r.length;l++)r[l].types.includes("locality")?s=r[l].long_name:r[l].types.includes("administrative_area_level_1")?i=r[l].short_name:r[l].types.includes("postal_code")&&(o=r[l].short_name);var c=""!=s&&""!=i;c&&jQuery("#city-search-ready-status").val("true");var u=c?s+", "+i+" "+o:EmptyStr;jQuery(".tab-panel").find(".input-text input").val(u),e.setSearchValue(u),e.setState({latLng:a,heldTextboxValue:u})}}))}else console.log("search is not cached"),navigator.geolocation.getCurrentPosition((function(t){var a={lat:t.coords.latitude,lng:t.coords.longitude};(new google.maps.Geocoder).geocode({latLng:a},(function(t,n){if(n===google.maps.GeocoderStatus.OK)if(t[0]){for(var r=t[1].address_components,s="",i="",o="",l=0;l<r.length;l++)r[l].types.includes("locality")?s=r[l].long_name:r[l].types.includes("administrative_area_level_1")?i=r[l].short_name:r[l].types.includes("postal_code")&&(o=r[l].short_name);var c=""!=s&&""!=i;c&&jQuery("#city-search-ready-status").val("true");var u=c?s+", "+i+" "+o:EmptyStr;jQuery(".tab-panel").find(".input-text input").val(u),e.setSearchValue(u),e.setState({heldTextboxValue:u}),e.setState({latLng:a},(function(){e.performProviderSearch(),e.performLocationSearch()}))}else console.log("Geocoder returned no results");else console.log("Geocoder failed due to: "+n)}))}));window.addEventListener("beforeunload",this.addFilterBysToCachedSearchRequest)}},{key:"getGoogleGeocode",value:function(e){var t=this;console.log("start function getGoogleGeocode");var a=null;(new google.maps.Geocoder).geocode({address:e},(function(e,n){n===google.maps.GeocoderStatus.OK?a={lat:e[0].geometry.location.lat(),lng:e[0].geometry.location.lng()}:console.log("No results found"),console.log("Geocoder results: ",a),t.setState({latLng:a},(function(){t.performProviderSearch(),t.performLocationSearch()}))}))}},{key:"getQueryUrl",value:function(e){var t=this;console.log("start function getQueryUrl");var 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:"performProviderSearch",value:function(){console.log("start function performProviderSearch");var e=jQuery(".find-a-doctor-component #hidden-states #is-doctor-search-loading");e.text("true");var t={latitude:this.state.latLng.lat,longitude:this.state.latLng.lng,radius:this.state.radius,sort:this.state.sort,filterLanguageList:this.state.filterLanguageList,filterGenderList:this.state.filterGenderList,filterSchedulingOptionsList:this.state.filterSchedulingOptionsList,filterAcceptingNewPatientsBoolean:this.state.filterAcceptingNewPatientsBoolean,filterDisabilityAccommodationBoolean:this.state.filterDisabilityAccommodationBoolean,filterNameString:this.state.doctorTypeAheadValue,filterFacilityString:this.state.facilityTypeAheadValue,filterSpecialtyString:this.state.specialtiesTypeAheadValue,filterServiceString:this.state.servicesTypeAheadValue};this.setState({heldRadius:this.state.radius}),this.setState({isLoading:!0},(function(){var a=this,n=this.getQueryUrl(t);jQuery.ajax({type:"POST",url:"/findadoctorsearch/getdoctordata",data:JSON.stringify(t),success:function(r){console.log("Success: Ajax call for doctor search");var s={isLoading:!1,query:t,results:r.PhysicianSearchResults.results,data:r.PhysicianSearchResults,facets:r.Facets,doctorLimit:10,locationLimit:10};a.setState(s,(function(){window.history.pushState(s,"",n)})),e.text("false")}.bind(this),error:function(t){console.log("Error: Ajax call for doctor search"),e.text("false")}.bind(this),contentType:"application/json",dataType:"json"})}))}},{key:"performLocationSearch",value:function(){console.log("start function performLocationSearch");var e=jQuery(".find-a-doctor-component #hidden-states #is-location-search-loading");e.text("true");var t={latitude:this.state.latLng.lat,longitude:this.state.latLng.lng,radius:this.state.radius,sort:this.state.sort};this.setState({isLoading:!0},(function(){var a=this,n=this.getQueryUrl(t);jQuery.ajax({type:"POST",url:"/findadoctorsearch/getlocationdata",data:JSON.stringify(t),success:function(r){console.log("Success: Ajax call for location search");var s={isLoading:!1,query:t,locationResults:r.AncillarySearchResults.results,locationData:r.AncillarySearchResults,facets:r.Facets,doctorLimit:10,locationLimit:10};a.setState(s,(function(){window.history.pushState(s,"",n)})),e.text("false")}.bind(this),error:function(t){console.log("Error: Ajax call for location search"),e.text("false")}.bind(this),contentType:"application/json",dataType:"json"})}))}},{key:"addFilterBysToCachedSearchRequest",value:function(){console.log("start function addFilterBysToCachedSearchRequest");var e={filterLanguageList:this.state.filterLanguageList,filterGenderList:this.state.filterGenderList,filterSchedulingOptionsList:this.state.filterSchedulingOptionsList,filterAcceptingNewPatientsBoolean:this.state.filterAcceptingNewPatientsBoolean,filterDisabilityAccommodationBoolean:this.state.filterDisabilityAccommodationBoolean};jQuery.ajax({type:"POST",url:"/findadoctorsearch/addfilterbystocachedsearchrequestcookie",data:JSON.stringify(e),success:function(e){console.log("Success: Ajax call addFilterBysToCachedSearchRequest")}.bind(this),error:function(e,t){console.log("Error: Ajax call addFilterBysToCachedSearchRequest"),console.log(e),console.log(t)}.bind(this),contentType:"application/json"})}},{key:"addFilterDropdownsToCachedSearchRequest",value:function(){console.log("start function addFilterDropdownsToCachedSearchRequest");var e={filterNameString:this.state.doctorTypeAheadValue,filterFacilityString:this.state.facilityTypeAheadValue,filterSpecialtyString:this.state.specialtiesTypeAheadValue,filterServiceString:this.state.servicesTypeAheadValue};jQuery.ajax({type:"POST",url:"/findadoctorsearch/addfilterdropdownstocachedsearchrequestcookie",data:JSON.stringify(e),success:function(e){console.log("Success: Ajax call addFilterDropdownsToCachedSearchRequest")}.bind(this),error:function(e,t){console.log("Error: Ajax call addFilterDropdownsToCachedSearchRequest"),console.log(e),console.log(t)}.bind(this),contentType:"application/json"})}},{key:"updateCachedRadius",value:function(){console.log("start function updateCachedRadius");var e={radius:this.state.radius};jQuery.ajax({type:"POST",url:"/findadoctorsearch/updatecachedradius",data:JSON.stringify(e),success:function(e){console.log("Success: Ajax call updateCachedRadius")}.bind(this),error:function(e,t){console.log("Error: Ajax call updateCachedRadius"),console.log(e),console.log(t)}.bind(this),contentType:"application/json"})}},{key:"getPhysicianFullName",value:function(e){var t=e.firstName,a=e.middleName,n=e.lastName,r=0==t.length||0==n.length,s=null==e.credential.description?"":e.credential.description,i=r?"N/A":(t+" "+a).trim()+" "+n;return(r?"N/A":i+(s.length>0?", "+s:"")).trim()}},{key:"getPhysicianNamesList",value:function(e){return e.map((function(e){var t=e.firstName,a=e.middleName,n=e.lastName,r=0==t.length||0==n.length,s=null==e.credential.description?"":e.credential.description,i=r?"N/A":(t+" "+a).trim()+" "+n;return(r?"N/A":i+(s.length>0?", "+s:"")).trim()}))}},{key:"getFacilityNamesList",value:function(e){return e.map((function(e){return e.dbaName}))}},{key:"setSearchValue",value:function(e){this.setState({textboxValue:e}),this.state.initialLoad=!1}},{key:"doctorTypeAheadHandler",value:function(e){this.setState({doctorTypeAheadValue:e})}},{key:"facilityTypeAheadHandler",value:function(e){this.setState({facilityTypeAheadValue:e})}},{key:"specialtiesTypeAheadHandler",value:function(e){this.setState({specialtiesTypeAheadValue:e})}},{key:"servicesTypeAheadHandler",value:function(e){this.setState({servicesTypeAheadValue:e})}},{key:"changeRadiusHandler",value:function(e){var t=this;this.setState({radius:e.target.getAttribute("distance")},(function(){t.updateCachedRadius()}))}},{key:"checkboxFilterHandler",value:function(e,t,a){var n=this,r=void 0;if(a.target.checked)switch(e.toLowerCase()){case"language":r=this.state.filterLanguageList.concat(t),this.setState({filterLanguageList:r},(function(){n.addFilterBysToCachedSearchRequest()}));break;case"gender":r=this.state.filterGenderList.concat(t),this.setState({filterGenderList:r},(function(){n.addFilterBysToCachedSearchRequest()}));break;case"scheduling options":r=this.state.filterSchedulingOptionsList.concat(t),this.setState({filterSchedulingOptionsList:r},(function(){n.addFilterBysToCachedSearchRequest()}));break;case"accepting new patients":r=this.state.filterSchedulingOptionsList.concat(t),this.setState({filterAcceptingNewPatientsBoolean:r},(function(){n.addFilterBysToCachedSearchRequest()}));break;case"disability accommodation":r=this.state.filterSchedulingOptionsList.concat(t),this.setState({filterDisabilityAccommodationBoolean:r},(function(){n.addFilterBysToCachedSearchRequest()}))}else{var s=void 0;switch(e.toLowerCase()){case"language":s=this.state.filterLanguageList.indexOf(t),(r=this.state.filterLanguageList).splice(s,1),s>-1&&this.setState({filterLanguageList:r},(function(){n.addFilterBysToCachedSearchRequest()}));break;case"gender":s=this.state.filterGenderList.indexOf(t),(r=this.state.filterGenderList).splice(s,1),s>-1&&this.setState({filterGenderList:r},(function(){n.addFilterBysToCachedSearchRequest()}));break;case"scheduling options":s=this.state.filterSchedulingOptionsList.indexOf(t),(r=this.state.filterSchedulingOptionsList).splice(s,1),s>-1&&this.setState({filterSchedulingOptionsList:r},(function(){n.addFilterBysToCachedSearchRequest()}));break;case"accepting new patients":s=this.state.filterAcceptingNewPatientsBoolean.indexOf(t),(r=this.state.filterAcceptingNewPatientsBoolean).splice(s,1),this.setState({filterAcceptingNewPatientsBoolean:r},(function(){n.addFilterBysToCachedSearchRequest()}));break;case"disability accommodation":s=this.state.filterDisabilityAccommodationBoolean.indexOf(t),(r=this.state.filterDisabilityAccommodationBoolean).splice(s,1),this.setState({filterDisabilityAccommodationBoolean:r},(function(){n.addFilterBysToCachedSearchRequest()}))}}}},{key:"locationAutocompleteSuggestions",value:function(e){var t=this;this.state.autocompleteIsInitialized||this.setState({autocomplete:new google.maps.places.Autocomplete(document.getElementById("search-box"),{componentRestrictions:{country:"us"},types:["geocode"],fields:["address_components","geometry"],componentForm:{street_number:"short_name",route:"long_name",sublocality_level_1:"long_name",premise:"long_name"}}),autocompleteIsInitialized:!0},(function(){t.state.autocomplete.addListener("place_changed",(function(){var e=jQuery("#search-box").val();t.setState({textboxValue:e})}))}))}},{key:"toggleSortActive",value:function(e){e?this.state.isDistanceActive||this.setState({isDistanceActive:!0,isAlphabeticalActive:!1}):this.state.isAlphabeticalActive||this.setState({isDistanceActive:!1,isAlphabeticalActive:!0})}},{key:"render",value:function(){var e=this;this.state.physicianNamesList=this.getPhysicianNamesList(this.state.results),this.state.facilityNamesList=this.getFacilityNamesList(this.state.locationResults),this.state.results,this.state.locationResults;for(var t=this.state.filterCategoriesFolder,a=0;a<t.filterCategories.length;a++)for(var n=0;n<t.filterCategories[a].filterValues.length;n++)React.createElement("div",{className:"filter-option"},t.filterCategories[a].filterValues[n].value);for(var l=[],c=[],u=0,p=[],d=[],h=0,f=function(e){return!e||null!==e||0===e.trim().length},m=function(e){return null==e||null==e.description},y=function(e,t){return e.some((function(e){return t.includes(e)}))},b=function(e,t){return e.some((function(e){return e.toLowerCase()===t.toLowerCase()}))},g=function(e){return null==e||null==e.value},v=function(e){return e.replace(/\w[\w]*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},R=function(e){var t=(e=e.replace(/(|)|\s/g,"")).match(/^(\d{3})(\d{3})(\d{4})$/);return t&&(e="("+t[1]+") "+t[2]+"-"+t[3]),e},S=function(t){return(Number(t.toFixed(1))+" mi from "+e.state.heldTextboxValue).toUpperCase()},E=function(e){if(""!==e)return React.createElement("div",{className:"result-gender"},React.createElement("h3",null,"Gender"),React.createElement("p",{className:"text-blue"},e))},w=function(e){return e.replace(/[^a-zA-Z-]+/g,"")},k=function(e,t,a,n){return"/find-a-doctor/doctors/"+((e=w(e).toLowerCase()+"-")+(t=""===t?"":w(t).toLowerCase()+"-")+(a=w(a).toLowerCase())).replace(" ","")+"_"+n},N=0;N<this.state.results.length;N++){for(var O=this.state.results[N],C=null==O.firstName?"":w(O.firstName),T=null==O.middleName?"":w(O.middleName),L=null==O.lastName?"":w(O.lastName),P=O.providerId,_=0==C.length||0==L.length,F=m(O.credential)?"":O.credential.description.trim(),D=m(O.gender)?"":O.gender.description.trim(),j=null==O.headshotUrl?this.state.doctorProfileDefault:O.headshotUrl.trim(),x=k(C,T,L,P),I=O.acceptingNewPatients,M=O.reservationUrl,A=null!=O.reservationUrl&&O.reservationUrl.length>0,q=_?"N/A":v((C+" "+T).trim()+" "+v(L).replace(" ","")),B=_?"N/A":q+(F.length>0?", "+F:""),U=A?"Schedule Appointment Online":"",H=A?"link-button-blue":"link-button-empty",V="View Profile",z=[],Q=0;Q<O.specialties.length;Q++)m(O.specialties[Q].specialty)||z.push(O.specialties[Q].specialty.description);for(var W=v(z.join(", ")),G=I?React.createElement("div",{className:"new-patients result-new-patients"},React.createElement("span",{className:"new-patients-icon icon far fa-check-circle"}),React.createElement("span",{className:"new-patients-text"},"Accepting new patients")):React.createElement("div",{className:"d-none result-new-patients"}),Y=0;Y<O.physicianPractices.length;Y++){var $=O.physicianPractices[Y];if("undefined"!==$.address.distance&&$.address.distance<=this.state.radius&&this.getPhysicianFullName(O).toLowerCase().includes(this.state.doctorTypeAheadValue.toLowerCase())&&W.toLowerCase().includes(this.state.specialtiesTypeAheadValue.toLowerCase())&&(this.state.filterLanguageList.length<1||y(this.state.filterLanguageList,O.languages))&&(this.state.filterGenderList.length<1||!m(O.gender)&&b(this.state.filterGenderList,O.gender.description))&&(b(this.state.filterAcceptingNewPatientsBoolean,"Is Accepting New Patients")||O.acceptingNewPatients)&&(b(this.state.filterDisabilityAccommodationBoolean,"Accommodates Disabilities")||O.disabilityAccommodations)&&(this.state.filterSchedulingOptionsList.length<1||O.reservationUrl&&b(this.state.filterSchedulingOptionsList,"Online Scheduling"))){var Z=$.address,J=f(Z.suite)?"":", "+Z.suite,K=Z.line1,X="";f(X)?K+=J:X=Z.line2+J+", ";var ee="";m(Z.state)||(ee=Z.city+", "+Z.state.description+", "+Z.zipCode);var te=K+", "+X+ee;te=v(te.replace(",,",","));var ae=g($.phoneNumber)?"N/A":R($.phoneNumber.value);g($.phoneNumber)&&Z.contactInfo.forEach((function(e){"phone"===e.type.code&&(ae=R(e.value))}));var ne="doctorListCard"+u,re=ne+"Lat",se=ne+"Lng",ie=ne+"Dist",oe=ne+"Name",le="doctorMapCard"+u,ce=le+"Lat",ue=le+"Lng",pe=le+"Dist",de=le+"Name",he=Z.latitude+"",fe=Z.longitude+"",me=S(Z.distance),ye=React.createElement("div",{className:"doctor-card d-block d-sm-flex doctor list-card",id:ne},React.createElement("input",{type:"hidden",id:se,value:fe,className:"result-lng"}),React.createElement("input",{type:"hidden",id:re,value:he,className:"result-lat"}),React.createElement("input",{type:"hidden",id:oe,value:B,className:"result-name-sort"}),React.createElement("input",{type:"hidden",id:ie,value:me,className:"result-dist-sort"}),React.createElement("div",{className:"doctor-image result-image"},React.createElement("img",{src:j,alt:B})),React.createElement("div",{className:"doctor-card-content d-block d-xl-flex"},React.createElement("div",{className:"doctor-information"},React.createElement("div",{className:"doctor-description result-header"},React.createElement("p",{className:"location-text primary result-distance"},me),React.createElement("h3",{className:"doctor-name result-title"},B),React.createElement("div",{class:"truncated-text-container"},React.createElement("div",{class:"truncated-text text-grey-dark result-specialties"},W),React.createElement("div",{class:"truncated-text-control"},React.createElement("a",null,"Show More")))),React.createElement("div",{className:"row no-gutters result-contact"},React.createElement("div",{className:"col-md-7 col-sm-8 col-7 doctor-card-section result-address"},React.createElement("h3",null,"Address"),React.createElement("p",{className:"text-blue address"},te)),React.createElement("div",{className:"col-md-5 col-sm-4 col-5 doctor-card-section"},React.createElement("h3",null,"Phone"),React.createElement("p",{className:"text-blue result-phone"},ae)),React.createElement("div",{className:"col-md-12 doctor-card-section d-flex justify-content-between"},E(D),React.createElement("div",{className:"new-patient-container d-flex d-xl-none"},G)))),React.createElement("div",{className:"link-container result-links"},React.createElement("div",{className:"primary-link-container result-schedule-appointment"},React.createElement("a",{className:H,href:M},U)),React.createElement("div",{className:"secondary-link-container result-view-profile"},React.createElement("a",{href:x},V,React.createElement("span",{className:"icon fas fa-chevron-right"}))),React.createElement("div",{className:"new-patient-container d-none d-xl-flex"},G))));l.push(ye);var be=React.createElement("div",{className:"doctor-card d-block doctor map-card",id:le},React.createElement("input",{type:"hidden",id:ue,value:fe,className:"result-lng"}),React.createElement("input",{type:"hidden",id:ce,value:he,className:"result-lat"}),React.createElement("input",{type:"hidden",id:de,value:B,className:"result-name-sort"}),React.createElement("input",{type:"hidden",id:pe,value:me,className:"result-dist-sort"}),React.createElement("div",{className:"doctor-card-header"},React.createElement("div",{className:"doctor-image result-image"},React.createElement("img",{src:j,alt:B})),React.createElement("div",{className:"doctor-description result-header"},React.createElement("p",{className:"location-text primary result-distance"},me),React.createElement("h3",{className:"doctor-name result-title"},B),React.createElement("div",{class:"truncated-text-container"},React.createElement("div",{class:"truncated-text text-grey-dark result-specialties"},W),React.createElement("div",{class:"truncated-text-control"},React.createElement("a",null,"Show More"))))),React.createElement("div",{className:"doctor-card-content d-block"},React.createElement("div",{className:"doctor-information result-contact"},React.createElement("div",{className:"row no-gutters"},React.createElement("div",{className:"col-md-7 col-sm-8 col-7 doctor-card-section result-address"},React.createElement("h3",null,"Address"),React.createElement("p",{className:"text-blue address"},te)),React.createElement("div",{className:"col-md-5 col-sm-4 col-5 doctor-card-section result-phone"},React.createElement("h3",null,"Phone"),React.createElement("p",{className:"text-blue"},ae)),React.createElement("div",{className:"col-md-12 doctor-card-section d-flex justify-content-between"},E(D),React.createElement("div",{className:"new-patient-container d-flex"},G)))),React.createElement("div",{className:"link-container result-links"},React.createElement("div",{className:"primary-link-container result-schedule-appointment"},React.createElement("a",{className:H,href:M},U)),React.createElement("div",{className:"secondary-link-container result-view-profile"},React.createElement("a",{href:x},V,React.createElement("span",{className:"icon fas fa-chevron-right"}))))));c.push(be),u++;break}}}for(var ge=0;ge<this.state.locationResults.length;ge++){for(var ve=this.state.locationResults[ge],Re=[],Se=0;Se<ve.services.length;Se++)Re.push(ve.services[Se].attribute.description);for(var Ee=v(Re.join(", ")),we=0;we<ve.addresses.length;we++){var ke=ve.addresses[we];if(("undefined"!==ve.addresses[we].distance||0!==ve.addresses[we].distance)&&ve.addresses[we].distance<=this.state.radius&&ve.dbaName.toLowerCase().includes(this.state.facilityTypeAheadValue.toLowerCase())&&Ee.toLowerCase().includes(this.state.servicesTypeAheadValue.toLowerCase())){var Ne=v(ve.dbaName),Oe=ve.addresses[we],Ce=f(Oe.suite)?"":", "+Oe.suite,Te=Oe.line1,Le="";f(Le)?Te+=Ce:Le=Oe.line2+Ce+", ";var Pe=Te+", "+Le+Oe.city+", "+Oe.state.description+", "+Oe.zipCode;Pe=v(Pe.replace(",,",","));var _e=g(ke.phoneNumber)?"N/A":R(ke.phoneNumber.value);g(ke.phoneNumber)&&Oe.contactInfo.forEach((function(e){"phone"===e.type.code&&(_e=R(e.value))}));var Fe="locationListCard"+h,De=Fe+"Map",je=Fe+"Lat",xe=Fe+"Lng",Ie=Fe+"Dist",Me=Fe+"Name",Ae="locationMapCard"+h,qe=Ae+"Lat",Be=Ae+"Lng",Ue=Ae+"Dist",He=Ae+"Name",Ve=Oe.latitude+"",ze=Oe.longitude+"",Qe=S(Oe.distance),We=React.createElement("div",{className:"doctor-card d-block d-sm-flex location list-card",id:Fe},React.createElement("input",{type:"hidden",id:xe,value:ze,className:"result-lng"}),React.createElement("input",{type:"hidden",id:je,value:Ve,className:"result-lat"}),React.createElement("input",{type:"hidden",id:Me,value:Ne,className:"result-name-sort"}),React.createElement("input",{type:"hidden",id:Ie,value:Qe,className:"result-dist-sort"}),React.createElement("div",{className:"doctor-image map",id:De}),React.createElement("div",{className:"doctor-card-content d-block d-xl-flex"},React.createElement("div",{className:"doctor-information"},React.createElement("div",{className:"doctor-description result-header"},React.createElement("p",{className:"location-text primary result-distance"},Qe),React.createElement("h3",{className:"doctor-name result-title"},Ne),React.createElement("div",{class:"truncated-text-container"},React.createElement("div",{class:"truncated-text text-grey-dark result-specialties"},Ee),React.createElement("div",{class:"truncated-text-control"},React.createElement("a",null,"Show More")))),React.createElement("div",{className:"row no-gutters result-contact"},React.createElement("div",{className:"col-md-7 col-sm-8 col-7 doctor-card-section result-address"},React.createElement("h3",null,"Address"),React.createElement("p",{className:"text-blue address"},Pe)),React.createElement("div",{className:"col-md-5 col-sm-4 col-5 doctor-card-section result-phone"},React.createElement("h3",null,"Phone"),React.createElement("p",{className:"text-blue"},_e))))));p.push(We);var Ge=React.createElement("div",{className:"doctor-card d-block location map-card",id:Ae},React.createElement("input",{type:"hidden",id:Be,value:ze,className:"result-lng"}),React.createElement("input",{type:"hidden",id:qe,value:Ve,className:"result-lat"}),React.createElement("input",{type:"hidden",id:He,value:Ne,className:"result-name-sort"}),React.createElement("input",{type:"hidden",id:Ue,value:Qe,className:"result-dist-sort"}),React.createElement("div",{className:"doctor-card-header"},React.createElement("div",{className:"doctor-description result-header"},React.createElement("p",{className:"location-text primary result-distance"},Qe),React.createElement("h3",{className:"doctor-name result-title"},Ne),React.createElement("div",{class:"truncated-text-container"},React.createElement("div",{class:"truncated-text text-grey-dark result-specialties"},Ee),React.createElement("div",{class:"truncated-text-control"},React.createElement("a",null,"Show More"))))),React.createElement("div",{className:"doctor-card-content d-block"},React.createElement("div",{className:"doctor-information"},React.createElement("div",{className:"row no-gutters result-contact"},React.createElement("div",{className:"col-md-7 col-sm-8 col-7 doctor-card-section result-address"},React.createElement("h3",null,"Address"),React.createElement("p",{className:"text-blue address"},Pe)),React.createElement("div",{className:"col-md-5 col-sm-4 col-5 doctor-card-section result-phone"},React.createElement("h3",null,"Phone"),React.createElement("p",{className:"text-blue"},_e))))));d.push(Ge),h++}}}var Ye=u+" result"+(1===u?"":"s")+" within "+this.state.radius+" miles of "+this.state.heldTextboxValue,$e=h+" result"+(1===h?"":"s")+" within "+this.state.heldRadius+" miles of "+this.state.heldTextboxValue,Ze=function(t,a){var n=void 0,s=void 0;return a?(t=t.slice(0,e.state.doctorLimit),n=Ye,s=e.state.doctorLimit):(t=t.slice(0,e.state.locationLimit),n=$e,s=e.state.locationLimit),React.createElement("div",{className:"list-view-panel"},React.createElement("div",{className:"row no-gutters"},React.createElement("div",{className:a?"col-lg-3":"d-none"},React.createElement("div",{className:"panel-left"},a?React.createElement(r.default,{doctorFilterCategoryList:e.state.filterCategoriesFolder,checkboxFilterHandler:e.checkboxFilterHandler,filterLanguageList:e.state.filterLanguageList,filterGenderList:e.state.filterGenderList,filterSchedulingOptionsList:e.state.filterSchedulingOptionsList,filterAcceptingNewPatientsBoolean:e.state.filterAcceptingNewPatientsBoolean,filterDisabilityAccommodationBoolean:e.state.filterDisabilityAccommodationBoolean}):"")),React.createElement("div",{className:"col"},React.createElement("div",{className:"panel-right"},React.createElement("div",{className:"result-panel"},React.createElement("div",{className:"result-panel-text"},React.createElement("p",null,n),React.createElement("div",null,React.createElement("span",{className:"result-sort-by"},"Sort By: "),React.createElement("span",{id:"distance-sort",className:"distance"===e.state.sort?"result-sort-by-option active":"result-sort-by-option",onClick:function(){e.setState({sort:"distance"},(function(){e.performProviderSearch(),e.performLocationSearch()})),e.toggleSortActive(!0)}},"Distance"),React.createElement("span",{id:"alphabetical-sort",className:"alphabetical"===e.state.sort?"result-sort-by-option active":"result-sort-by-option",onClick:function(){e.setState({sort:"alphabetical"},(function(){e.performProviderSearch(),e.performLocationSearch()})),e.toggleSortActive(!1)}},"Name A-Z"))),React.createElement("div",{className:"icon-container"},React.createElement("span",{className:"list-view icon fas fa-list-ul"}),React.createElement("span",{className:"map-view icon fas fa-map"}))),React.createElement("div",{className:"result-list"},t),React.createElement(o.default,{increaseDoctorLimit:e.increaseDoctorLimit,increaseLocationLimit:e.increaseLocationLimit,isDoctorSearch:a,limit:s,doctorResultsLength:u,locationResultsLength:h})))))},Je=function(t,a){var n=a?"doctorMapContainer":"locationMapContainer",s=a?"doctorMap":"locationMap",i=a?"map-modal-content doctor":"map-modal-content location",l=void 0,c=void 0;a?(t=t.slice(0,e.state.doctorLimit),l=Ye,c=e.state.doctorLimit):(t=t.slice(0,e.state.locationLimit),l=$e,c=e.state.locationLimit);var p=React.createElement("div",{className:"map-container",id:n},React.createElement("div",{className:"map",id:s}),React.createElement("div",{className:"map-result-card-container flex-lg-column"},React.createElement("div",{className:"triangle left d-block d-lg-none"}),React.createElement("div",{className:"map-result-card"},React.createElement("div",{className:i},React.createElement("div",{className:"modal-row-1"}),React.createElement("div",{className:"modal-row-2"}))),React.createElement("div",{className:"triangle down d-none d-lg-block"})));return React.createElement("div",{className:"map-view-panel"},React.createElement("div",{className:"row no-gutters"},React.createElement("div",{className:"col-12"},React.createElement("div",{className:"panel-top"},a?React.createElement(r.default,{doctorFilterCategoryList:e.state.filterCategoriesFolder,checkboxFilterHandler:e.checkboxFilterHandler,filterLanguageList:e.state.filterLanguageList,filterGenderList:e.state.filterGenderList,filterSchedulingOptionsList:e.state.filterSchedulingOptionsList,filterAcceptingNewPatientsBoolean:e.state.filterAcceptingNewPatientsBoolean,filterDisabilityAccommodationBoolean:e.state.filterDisabilityAccommodationBoolean}):"")),React.createElement("div",{className:"col-lg-4 order-2 order-lg-1"},React.createElement("div",{className:"panel-left"},React.createElement("div",{className:"result-panel"},React.createElement("div",{className:"result-panel-text"},React.createElement("p",null,l),React.createElement("div",null,React.createElement("span",{className:"result-sort-by"},"Sort By: "),React.createElement("span",{id:"distance-sort",className:"distance"===e.state.sort?"result-sort-by-option active":"result-sort-by-option",onClick:function(){e.setState({sort:"distance"},(function(){e.performProviderSearch(),e.performLocationSearch()})),e.toggleSortActive(!0)}},"Distance"),React.createElement("span",{id:"alphabetical-sort",className:"alphabetical"===e.state.sort?"result-sort-by-option active":"result-sort-by-option",onClick:function(){e.setState({sort:"alphabetical"},(function(){e.performProviderSearch(),e.performLocationSearch()})),e.toggleSortActive(!1)}},"Name A-Z")))),React.createElement("div",{className:"result-list"},t),React.createElement(o.default,{increaseDoctorLimit:e.increaseDoctorLimit,increaseLocationLimit:e.increaseLocationLimit,isDoctorSearch:a,limit:c,doctorResultsLength:u,locationResultsLength:h}))),React.createElement("div",{className:"col-lg-8 order-1 order-lg-2"},React.createElement("div",{className:"icon-container"},React.createElement("span",{className:"list-view icon fas fa-list-ul"}),React.createElement("span",{className:"map-view icon fas fa-map"})),React.createElement("div",{className:"panel-right"},p))))};return React.createElement("div",{className:"find-a-doctor-component"},React.createElement("div",{className:"background"}),React.createElement("div",{className:"foreground"},React.createElement("div",{className:"tab-panel"},React.createElement("div",{className:"tabs"},React.createElement("div",{className:"tab doctor active"},"Find a doctor"),React.createElement("div",{className:"tab location"},"Find a location")),React.createElement("div",{className:"search-form d-lg-flex d-block row no-gutters"},React.createElement("div",{className:"col row no-gutters"},React.createElement("div",{className:"search-query col-lg"},React.createElement("div",{className:"search-query-text"},React.createElement("span",null,"find within"),React.createElement("div",{className:"radius-select",id:"radius-select"},React.createElement("div",{className:"selected-option default"},React.createElement("span",null,this.state.radius," miles"),React.createElement("span",{className:"icon show-more fas fa-chevron-down"}),React.createElement("span",{className:"icon show-less fas fa-chevron-up"})),React.createElement("div",{className:"select-dropdown"},React.createElement("div",{className:"radius-select-option",distance:"5",onClick:this.changeRadiusHandler},"5 miles"),React.createElement("div",{className:"radius-select-option",distance:"10",onClick:this.changeRadiusHandler},"10 miles"),React.createElement("div",{className:"radius-select-option active",distance:"25",onClick:this.changeRadiusHandler},"25 miles"),React.createElement("div",{className:"radius-select-option",distance:"50",onClick:this.changeRadiusHandler},"50 miles"),React.createElement("div",{className:"radius-select-option",distance:"100",onClick:this.changeRadiusHandler},"100 miles"))),React.createElement("span",null,"of:")),React.createElement("div",{className:"input-text"},React.createElement("input",{id:"search-box",type:"text",name:"",onKeyUp:function(t){e.setSearchValue(t.target.value),e.locationAutocompleteSuggestions(t),13===t.keyCode&&e.setState({limitHasChanged:!1,hasSearched:!0,heldTextboxValue:e.state.textboxValue},(function(){e.getGoogleGeocode(e.state.textboxValue)}))}}),React.createElement("span",{className:"icon delete-input fal fa-times",onClick:function(){jQuery("#search-box").val("")}}))),React.createElement("div",{className:"search-query col-lg"},React.createElement("div",{className:"search-query-text"},React.createElement("span",{className:"physician"},"Find by last name (optional)"),React.createElement("span",{className:"facility"},"Find by facility name (optional)")),React.createElement(s.default,{doctorTypeAheadHandler:this.doctorTypeAheadHandler,facilityTypeAheadHandler:this.facilityTypeAheadHandler,physicianNamesList:this.state.physicianNamesList,facilityNamesList:this.state.facilityNamesList,doctorTypeAheadValue:this.state.doctorTypeAheadValue,facilityTypeAheadValue:this.state.facilityTypeAheadValue,addFilterDropdownsToCachedSearchRequest:this.addFilterDropdownsToCachedSearchRequest})),React.createElement("div",{className:"search-query col-lg"},React.createElement("div",{className:"search-query-text"},React.createElement("span",{className:"physician"},"Find By Specialty (optional)"),React.createElement("span",{className:"facility"},"Find By Services (optional)")),React.createElement(i.default,{specialtiesTypeAheadHandler:this.specialtiesTypeAheadHandler,servicesTypeAheadHandler:this.servicesTypeAheadHandler,PhysicianSpecialties:this.state.PhysicianSpecialties,FacilityServices:this.state.FacilityServices,specialtiesTypeAheadValue:this.state.specialtiesTypeAheadValue,servicesTypeAheadValue:this.state.servicesTypeAheadValue,addFilterDropdownsToCachedSearchRequest:this.addFilterDropdownsToCachedSearchRequest}))),React.createElement("div",{className:" search-button"},React.createElement("a",{href:"#",onClick:function(){e.setState({limitHasChanged:!1,hasSearched:!0,heldTextboxValue:e.state.textboxValue},(function(){e.getGoogleGeocode(e.state.textboxValue)}))}},"search")),React.createElement("input",{type:"hidden",id:"city-search-ready-status",value:"false"}))),React.createElement("div",{className:"tab-content doctor"},Ze(l,!0),Je(c,!0)),React.createElement("div",{className:"tab-content location"},Ze(p,!1),Je(d,!1))),React.createElement("div",{id:"hidden-states",className:"d-none"},React.createElement("div",{id:"mobile-marker",className:"d-block d-lg-none"}),React.createElement("div",{id:"is-doctor-search-loading",className:"d-none"}),React.createElement("div",{id:"is-location-search-loading",className:"d-none"}),React.createElement("div",{id:"search-query-lat",className:"d-none"},this.state.latLng.lat),React.createElement("div",{id:"search-query-lng",className:"d-none"},this.state.latLng.lng),React.createElement("input",{type:"hidden",id:"is-search-cached",value:this.state.isCached})))}}]),t}();t.Z=c},3560:(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(){for(var e=this,t=[],a=this.props.filterLanguageList+this.props.filterGenderList+this.props.filterSchedulingOptionsList+this.props.filterAcceptingNewPatientsBoolean+this.props.filterDisabilityAccommodationBoolean,n=function(n){var r=React.createElement("div",{className:"filter-list-entry"},React.createElement("div",{className:"filter-entry-title"},React.createElement("span",null,e.props.doctorFilterCategoryList.filterCategories[n].value),React.createElement("span",{className:"icon show-more fas fa-chevron-down"}),React.createElement("span",{className:"icon show-less fas fa-chevron-up"})),React.createElement("div",{className:"filter-option-slider"},e.props.doctorFilterCategoryList.filterCategories[n].filterValues.map((function(t){return React.createElement("div",{className:"filter-option"},React.createElement("input",{type:"checkbox",id:t.value,checked:a.includes(t.value),onChange:function(a){e.props.checkboxFilterHandler(e.props.doctorFilterCategoryList.filterCategories[n].value,t.value,a)}}),React.createElement("label",{for:t.value},t.value))}))));t.push(r)},r=0;r<this.props.doctorFilterCategoryList.filterCategories.length;r++)n(r);return React.createElement("div",{className:"filter-panel"},React.createElement("div",{className:"filter-mobile d-flex d-lg-none"},React.createElement("span",null,"Filters"),React.createElement("span",{className:"icon show-more fas fa-plus"}),React.createElement("span",{className:"icon show-less fas fa-minus"})),React.createElement("div",{className:"filter-slider"},React.createElement("div",{className:"filter-list"},React.createElement("div",{className:"filter-list-title"},"Filter By:"),t)))}}]),t}();t.default=n},7454:(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,t=void 0;return(this.props.limit<this.props.doctorResultsLength&&this.props.isDoctorSearch||this.props.limit<this.props.locationResultsLength&&!this.props.isDoctorSearch)&&(t=React.createElement("div",null,React.createElement("span",{className:"text"},"More results"),React.createElement("span",{className:"icon show-more fas fa-chevron-down"}),React.createElement("span",{className:"icon show-less fas fa-chevron-up"}))),React.createElement("div",{className:"more-results",onClick:function(t){e.props.isDoctorSearch?e.props.increaseDoctorLimit():e.props.increaseLocationLimit()}},t)}}]),t}();t.default=n},7687:(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.noResultsTitle=a.props.searchSettings.NoResultsTitle,a.noResultsMessage=a.props.searchSettings.NoResultsMessage,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 e.length>0?React.createElement("ul",{className:"row"},e):React.createElement("div",{className:"blog-no-results"},React.createElement("h3",null,this.noResultsTitle),React.createElement("h2",null,this.noResultsMessage))}}]),t}();t.default=n},38:(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={doctorSearchAndTypeAheadIntersection:a.props.physicianNamesList,facilitySearchAndTypeAheadIntersection:a.props.facilityNamesList},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(){jQuery("#physician-name-search").val(this.props.doctorTypeAheadValue),jQuery("#facility-name-search").val(this.props.facilityTypeAheadValue)}},{key:"setDoctorTypeAheadValue",value:function(e){this.props.doctorTypeAheadHandler(e),this.setState({doctorSearchAndTypeAheadIntersection:this.props.physicianNamesList.filter((function(t){return t.toLowerCase().includes(e.toLowerCase())}))})}},{key:"setFacilityTypeAheadValue",value:function(e){this.props.facilityTypeAheadHandler(e),this.setState({facilitySearchAndTypeAheadIntersection:this.props.facilityNamesList.filter((function(t){return t.toLowerCase().includes(e.toLowerCase())}))})}},{key:"render",value:function(){var e=this;return React.createElement("div",{class:"input-select "},React.createElement("div",{class:"selected-option default",onClick:function(){e.setDoctorTypeAheadValue(jQuery(".dropdown-search.physician").val()),e.setFacilityTypeAheadValue(jQuery(".dropdown-search.facility").val())}},React.createElement("input",{type:"text",name:"name",class:"dropdown-search physician",id:"physician-name-search",placeholder:"Search by name",autocomplete:"off",onBlur:function(){console.log("out of focus"),e.props.addFilterDropdownsToCachedSearchRequest()},onKeyUp:function(t){e.setDoctorTypeAheadValue(t.target.value)}}),React.createElement("input",{type:"text",name:"name",class:"dropdown-search facility",id:"facility-name-search",placeholder:"Search by facility",autocomplete:"off",onBlur:function(){console.log("out of focus"),e.props.addFilterDropdownsToCachedSearchRequest()},onKeyUp:function(t){e.setFacilityTypeAheadValue(t.target.value)}}),React.createElement("span",{class:"icon show-more fas fa-chevron-down"}),React.createElement("span",{class:"icon show-less fas fa-chevron-up"})),React.createElement("div",{class:"select-dropdown",id:"physician-facility-dropdown"},React.createElement("div",{class:"dropdown-scroll"},React.createElement("div",{class:"dropdown-group physician"},React.createElement("p",{class:"group-header"},"Doctors"),React.createElement("ul",null,this.state.doctorSearchAndTypeAheadIntersection.map((function(t){return React.createElement("li",{id:"lastName"},React.createElement("a",{onClick:function(t){jQuery("#physician-name-search").val(t.target.innerText),e.setDoctorTypeAheadValue(t.target.innerText)}},t))}))))),React.createElement("div",{class:"dropdown-scroll"},React.createElement("div",{class:"dropdown-group facility"},React.createElement("p",{class:"group-header"},"Facilities"),React.createElement("ul",null,this.state.facilitySearchAndTypeAheadIntersection.map((function(t){return React.createElement("li",{id:"lastName"},React.createElement("a",{onClick:function(t){jQuery("#facility-name-search").val(t.target.innerText),e.setFacilityTypeAheadValue(t.target.innerText)}},t))})))))))}}]),t}();t.default=n},8058:(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},632:(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={PhysicianSpecialtiesAndTypeAheadIntersection:a.props.PhysicianSpecialties,FacilityServicesAndTypeAheadIntersection:a.props.FacilityServices},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(){jQuery("#specialty-search").val(this.props.specialtiesTypeAheadValue),jQuery("#service-search").val(this.props.servicesTypeAheadValue)}},{key:"setSpecialtiesTypeAheadValue",value:function(e){this.props.specialtiesTypeAheadHandler(e),this.setState({PhysicianSpecialtiesAndTypeAheadIntersection:this.props.PhysicianSpecialties.filter((function(t){return t.description.toLowerCase().includes(e.toLowerCase())}))})}},{key:"setServicesTypeAheadValue",value:function(e){this.props.servicesTypeAheadHandler(e),this.setState({FacilityServicesAndTypeAheadIntersection:this.props.FacilityServices.filter((function(t){return t.description.toLowerCase().includes(e.toLowerCase())}))})}},{key:"render",value:function(){var e=this;return React.createElement("div",{class:"input-select "},React.createElement("div",{class:"selected-option default"},React.createElement("input",{type:"text",name:"name",class:"dropdown-search physician",id:"specialty-search",placeholder:"Search by specialty",autocomplete:"off",onBlur:function(){console.log("out of focus"),e.props.addFilterDropdownsToCachedSearchRequest()},onKeyUp:function(t){console.log("event value: "+t.target.value),e.setSpecialtiesTypeAheadValue(t.target.value)}}),React.createElement("input",{type:"text",name:"name",class:"dropdown-search facility",id:"service-search",placeholder:"Search by service",autocomplete:"off",onBlur:function(){console.log("out of focus"),e.props.addFilterDropdownsToCachedSearchRequest()},onKeyUp:function(t){console.log("event value: "+t.target.value),e.setServicesTypeAheadValue(t.target.value)}}),React.createElement("span",{class:"icon show-more fas fa-chevron-down"}),React.createElement("span",{class:"icon show-less fas fa-chevron-up"})),React.createElement("div",{class:"select-dropdown",id:"specialty-service-dropdown"},React.createElement("div",{class:"dropdown-scroll"},React.createElement("div",{class:"dropdown-group physician"},React.createElement("p",{class:"group-header"},"Specialties"),React.createElement("ul",null,this.state.PhysicianSpecialtiesAndTypeAheadIntersection.map((function(t){return React.createElement("li",{id:"lastName"},React.createElement("a",{onClick:function(t){jQuery("#specialty-search").val(t.target.innerText),e.setSpecialtiesTypeAheadValue(t.target.innerText)}},t.description))}))))),React.createElement("div",{class:"dropdown-scroll"},React.createElement("div",{class:"dropdown-group facility"},React.createElement("p",{class:"group-header"},"Services"),React.createElement("ul",null,this.state.FacilityServicesAndTypeAheadIntersection.map((function(t){return React.createElement("li",{id:"lastName"},React.createElement("a",{onClick:function(t){jQuery("#service-search").val(t.target.innerText),e.setServicesTypeAheadValue(t.target.innerText)}},t.description))})))))))}}]),t}();t.default=n},2584:(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(4882)),s=c(a(6138)),i=c(a(2405)),o=c(a(9112)),l=c(a(2190));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.scrollOnReturn=a.scrollOnReturn.bind(a),a.handleAlphaChange=a.handleAlphaChange.bind(a),a.handleFacilityNameChange=a.handleFacilityNameChange.bind(a),a.handleSubmit=a.handleSubmit.bind(a),a.clearSearch=a.clearSearch.bind(a),a.stickyRef=React.createRef(),a.state={isLoading:!0,results:null,alphaPagination:null,totalResults:0,specialty:"",specialtySearch:!1,featureSpecialties:a.props.data.FeatureSpecialties,facilityName:"",alphaPage:"all",query:null,activeIndex:0},a.specialtySearchBar=React.createRef(),a.alphaPager=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(){this.performSearch(),this.scrollOnReturn()}},{key:"scrollOnReturn",value:function(){window.addEventListener("unload",(function(){window.scrollTo(0,0)}))}},{key:"handleAlphaChange",value:function(e,t,a){this.setState({alphaPage:e,activeIndex:t}),this.performSearch()}},{key:"handleFacilityNameChange",value:function(e,t){this.setState({facilityName:e})}},{key:"clearSearch",value:function(){this.setState({facilityName:""}),this.performSearch()}},{key:"handleSubmit",value:function(e,t){var a=this;t&&t.preventDefault(),this.setState({facilityName:e||""},(function(){return a.performSearch()}))}},{key:"performSearch",value:function(){this.setState({isLoading:!0},(function(){var e=this,t={alphaPage:this.state.alphaPage,facilityName:this.state.facilityName},a={data:JSON.stringify(t),contentType:"application/json; charset=UTF-8",type:"POST",url:"/api/specialty/search"};jQuery.ajax(a).done((function(t){e.setState({isLoading:!1,results:t.Results,alphaPagination:t.AlphaPagination,totalResults:t.Pagination.TotalResults})}))}))}},{key:"render",value:function(){return React.createElement("div",{className:"specialties-search-component"},React.createElement(r.default,{specialtyName:this.state.facilityName,onSubmitCallback:this.handleSubmit,onFacilityNameChangeCallback:this.handleFacilityNameChange}),""==this.state.facilityName&&React.createElement(s.default,{featureSpecialties:this.state.featureSpecialties}),React.createElement("div",{className:"specialty-care-listing "},React.createElement("div",{className:"sticky-container"},React.createElement("div",{className:"position-relative"},React.createElement("div",{className:"a-z-container"},React.createElement("div",{className:"grid-container"},null!=this.state.alphaPagination&&""==this.state.facilityName&&React.createElement(i.default,{alphaPage:this.state.alphaPage,activeIndex:this.state.activeIndex,alphaPagination:this.state.alphaPagination,onAlphaClick:this.handleAlphaChange}),""!=this.state.facilityName&&React.createElement("h3",null,this.state.totalResults," Results Found",React.createElement("span",null,React.createElement("a",{onClick:this.clearSearch},"Clear Search"))))),React.createElement("div",{className:"results-container"},React.createElement("div",{className:"grid-container"},this.state.isLoading?React.createElement(l.default,{isLoading:this.state.isLoading}):React.createElement(o.default,{alpha:this.state.alpha,results:this.state.results,totalResults:this.state.totalResults,handleSubmitCallback:this.handleSubmit})))))))}}]),t}();t.Z=u},2405:(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:"a-z-col"},React.createElement("ul",{className:"a-z-list"},this.props.alphaPagination.map((function(t,a){return React.createElement("li",{className:"a-z-item"},t.Count>0?React.createElement("a",{"aria-label":"Skip to letter {result.Alpha}",key:"index",className:e.props.activeIndex===a?"active":"",onClick:function(){return e.props.onAlphaClick(t.Alpha,a,event)}},t.Alpha):React.createElement("span",{"aria-disabled":"true"},t.Alpha))}))))}}]),t}();t.default=n},4882:(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(9052))&&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:"specialties-search-bar "},React.createElement("div",{className:"asc-search-box-container"},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(s.default,{defaultSpecialty:this.props.specialtyName,onSubmitCallback:this.props.onSubmitCallback,onSpecialtyNameChangeCallback:this.props.onFacilityNameChangeCallback,inputId:"falSpecialtyTypeahead"})),React.createElement("div",{className:"asc-search-col-button"},React.createElement("div",{className:"button-primary theme-light"},React.createElement("input",{type:"submit",value:"Search",onClick:function(){return e.props.onSubmitCallback(e.props.specialtyName,event)},onMouseUp:function(){return e.removeFocus()},ref:this.searchFormSubmitBtn}))))))))}}]),t}();t.default=i},6138:(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:"featured-specialty-areas"},React.createElement("div",null,React.createElement("h5",null,"Featured Specialty Areas"),React.createElement("div",{className:" panels cards-grid dark-panel-cards"},React.createElement("div",{className:"component-content"},React.createElement("ul",{className:"items"},this.props.featureSpecialties.map((function(e,t){return React.createElement("li",{className:"items"},React.createElement("div",{className:"card field-title"},React.createElement("a",{title:e.Name,href:e.Url}," ",e.Name)))})))))))}}]),t}();t.default=n},8535:(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={},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 React.createElement("div",{className:"specialty-block"},React.createElement("h3",null,React.createElement("a",{className:"heading-sub",href:this.props.specialtyLink},this.props.specialtyHeading)),React.createElement("p",null,this.props.specialtySubHead),React.createElement("a",{className:"button-tertiary","aria-label":"",href:this.props.specialtyCtaLink},React.createElement("span",null,"Find a Doctor")),React.createElement("div",{className:"related-specialties"},0!=this.props.relatedSpecialties.length&&React.createElement("span",null,"Related Specialties: "),this.props.relatedSpecialties.map((function(e){return React.createElement("a",{href:e.Url},e.Title," ")}))))}}]),t}();t.default=n},9112:(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(8535))&&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={},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:"results-col"},this.props.results.map((function(e){return React.createElement("div",{className:"letter-heading"},React.createElement(s.default,{specialtyHeading:e.Data.Title,specialtySubHead:e.Data.SubHead,specialtyCtaLink:e.Data.CtaDoctorsLink,specialtyLink:e.Data.SpecialtyLink,relatedSpecialties:e.Data.RelatedSpecialties}))})))}}]),t}();t.default=i},9052:(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={specialtySuggestions:t.DefaultSpecialtySuggestions,specialtyText:a.props.defaultSpecialty,selectedSpecialtyIndex:null,specialtyEventText:"",showSpeacialtySuggestions:!1,isEditing:!1},a.handleSpecialtyChange=a.handleSpecialtyChange.bind(a),a.handleSpecialtySelection=a.handleSpecialtySelection.bind(a),a.handleKeyDown=a.handleKeyDown.bind(a),a.handleSubmit=a.handleSubmit.bind(a),a.handleInputFocus=a.handleInputFocus.bind(a),a.handleInputClear=a.handleInputClear.bind(a),a.closeDropdown=a.closeDropdown.bind(a),a.specialtyInputContainerRef=React.createRef(),a.specialtyInputRef=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(){var e=this;window.addEventListener("click",this.closeDropdown),this.setState({isEditing:!0},(function(){return e.specialtyInputRef.current.focus()}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("click",this.closeDropdown)}},{key:"handleSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.setState({isEditing:!1},(function(){return t.props.onSubmitCallback(valid?t.state.specialtyText:null,e,valid)}))}},{key:"handleSpecialtySelection",value:function(e,t,a){var n=this;this.setState({specialtyText:e,specialtyEventText:e,selectedSpecialtyIndex:t,isEditing:!1},(function(){n.props.onSpecialtyNameChangeCallback(e,t),n.props.onSubmitCallback(e,a),n.setState({showSpeacialtySuggestions:!1})}))}},{key:"handleSpecialtyChange",value:function(e){var t=this,a=e.target.value;this.setState({specialtyText:a,specialtyEventText:a,showSpeacialtySuggestions:!0},(function(){t.props.onSpecialtyNameChangeCallback&&t.props.onSpecialtyNameChangeCallback(a,e)}));var n={term:a,page:1,pageSize:15,include:"specialties"};jQuery.ajax({type:"POST",data:JSON.stringify(n),url:"/api/v2/specialities",contentType:"application/json",success:function(e){var a=e.results;t.setState({specialtySuggestions:a,selectedSpecialtyIndex:null,showSpeacialtySuggestions:!0})}.bind(this)})}},{key:"handleInputFocus",value:function(){var e=this;this.setState({showSpeacialtySuggestions:!!event.target.value},(function(){return e.specialtyInputRef.current.focus()}))}},{key:"handleInputClear",value:function(){this.handleSpecialtySelection("",null)}},{key:"handleKeyDown",value:function(e){var t=this,a=0;null!==this.state.selectedSpecialtyIndex&&(a=this.state.selectedSpecialtyIndex);var n=this.state.specialtySuggestions[a]?this.state.specialtySuggestions[a]:this.state.specialtyText,r=/^\d+$/.test(this.state.specialtyEventText)&&this.state.specialtyEventText.length>0&&5!==this.state.specialtyEventText.length;switch(e.key){case"Esc":case"Escape":e.preventDefault(),this.setState({showSpeacialtySuggestions:!1,isEditing:!0});break;case"Enter":e.preventDefault(),r?this.setState({showSpeacialtySuggestions:!1},(function(){return t.handleSpecialtySelection(t.state.specialtyText,t.state.selectedSpecialtyIndex)})):this.setState({selectedSpecialtyIndex:a,specialtyText:n,specialtyEventText:n,showSpeacialtySuggestions:!1,isEditing:!1},(function(){return t.handleSubmit(e)}));break;case"Home":e.preventDefault(),this.setState({selectedSpecialtyIndex:a,specialtyText:n,specialtyEventText:n,isEditing:!0});break;case"Up":case"ArrowUp":e.preventDefault(),null!==this.state.selectedSpecialtyIndex&&(a=this.state.selectedSpecialtyIndex>=1?this.state.selectedSpecialtyIndex-1:0),this.setState({selectedSpecialtyIndex:a,specialtyText:n,specialtyEventText:n,isEditing:!0});break;case"Tab":this.props.nextTabClass&&e.preventDefault(),r?this.setState({showSpeacialtySuggestions:!1},(function(){return t.handleSpecialtySelection(t.state.specialtyText,t.state.selectedSpecialtyIndex)})):this.setState({selectedSpecialtyIndex:a,specialtyText:n,specialtyEventText:n,isEditing:!1},(function(){return t.handleSpecialtySelection(t.state.specialtyText,t.state.selectedSpecialtyIndex)}));break;case"Down":case"ArrowDown":e.preventDefault(),null!==this.state.selectedSpecialtyIndex&&(a=this.state.selectedSpecialtyIndex<this.state.specialtySuggestions.length-1?this.state.selectedSpecialtyIndex+1:this.state.specialtySuggestions.length-1),this.setState({selectedSpecialtyIndex:a,specialtyText:n,isEditing:!0});break;case"End":e.preventDefault(),a=this.state.specialtySuggestions.length-1,this.setState({selectedSpecialtyIndex:a,specialtyText:n,isEditing:!0});break;default:return void this.setState({isEditing:!0})}}},{key:"closeDropdown",value:function(e){this.specialtyInputContainerRef&&!this.specialtyInputContainerRef.current.contains(e.target)&&this.setState({showSpeacialtySuggestions:!1})}},{key:"render",value:function(){var e=this;return React.createElement("div",{className:"location-type-ahead",ref:this.specialtyInputContainerRef},React.createElement("div",{className:"location-type-ahead-input-group location-clear-container"},React.createElement("input",{className:"location-type-ahead-input is-valid",type:"text",name:"get-care-now-filter-location",title:"Search By Specialty",placeholder:"Select Speciality","aria-label":"Select Speciality","aria-required":"true",autoComplete:"off",value:this.props.defaultSpecialty,onKeyDown:this.handleKeyDown,onChange:this.handleSpecialtyChange,inputId:this.props.inputId,ref:this.specialtyInputRef}),this.state.specialtyText?React.createElement("button",{type:"button",className:"clear-input",role:"button","aria-label":"clear",onClick:this.handleInputClear,tabindex:"-1"},"X"):null),React.createElement("div",{className:"location-type-ahead-suggestions "+(this.state.showSpeacialtySuggestions?"show":"")},React.createElement("ul",{role:"listbox","aria-expanded":"true",className:"location-type-ahead-list",id:this.props.dropdownId},this.state.specialtySuggestions.map((function(t,a){return React.createElement("li",{className:"location-type-ahead-suggestion","aria-selected":e.state.selectedSpecialtyIndex===a,role:"option",onMouseDown:function(){return e.handleSpecialtySelection(t.text,a)},key:a},React.createElement("span",null,t.text))})))))}}]),t}();n.DefaultSpecialtySuggestions=[],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.apiCalls=[],a.state={locationSuggestions:t.DefaultLocationSuggestions,locationText:a.props.defaultLocation,selectedLocationIndex:null,showLocationSuggestions:!1,isValidLocation:void 0===a.props.isValidLocation||null===a.props.isValidLocation||""===a.props.isValidLocation||a.props.isValidLocation,validLocationsCache:a.props.defaultLocation?[a.props.defaultLocation.trim()]:[],validTermsCache:a.props.defaultLocation,locationEventText:"",isEditing:!1},a.handleLocationChange=a.handleLocationChange.bind(a),a.handleLocationSelection=a.handleLocationSelection.bind(a),a.handleKeyDown=a.handleKeyDown.bind(a),a.handleSubmit=a.handleSubmit.bind(a),a.handleInputFocus=a.handleInputFocus.bind(a),a.handleInputClear=a.handleInputClear.bind(a),a.closeDropdown=a.closeDropdown.bind(a),a.isValidLocation=a.isValidLocation.bind(a),a.locationInputContainerRef=React.createRef(),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(){var e=this;window.addEventListener("click",this.closeDropdown),this.setState({isValidLocation:!0,isEditing:!0},(function(){return e.locationInputRef.current.focus()}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("click",this.closeDropdown)}},{key:"componentDidUpdate",value:function(e,t){this.state.isValidLocation&&1!=this.state.isEditing&&this.props.nextTabClass&&JSON.stringify(t)!=JSON.stringify(this.state)&&document.getElementsByClassName(this.props.nextTabClass)[0].focus()}},{key:"handleSubmit",value:function(e){var t=this;e&&e.preventDefault();var a=this.isValidLocation();this.setState({isValidLocation:a,isEditing:!1},(function(){return t.props.onSubmitCallback(a?t.state.locationText:null,e,a)}))}},{key:"isValidLocation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e?e.trim().toUpperCase():this.locationInputRef.current.value.trim().toUpperCase();return null!=this.state.validTermsCache&&this.state.validLocationsCache.length&&-1!==this.state.validLocationsCache.findIndex((function(e){return e.trim().toUpperCase()===t}))}},{key:"handleLocationSelection",value:function(e,t){var a=this,n=this.isValidLocation(e);this.setState({locationText:e,locationEventText:e,selectedLocationIndex:t,isEditing:!1,showLocationSuggestions:!1,isValidLocation:n},(function(){a.props.onLocationChangeCallback&&a.props.onLocationChangeCallback(e,event,n,a.state.isEditing)}))}},{key:"handleLocationChange",value:function(e){var t=this,a=e.target.value;if(this.setState({locationText:a,locationEventText:a,showLocationSuggestions:!0},(function(){return t.props.onLocationChangeCallback?t.props.onLocationChangeCallback(a,e,t.state.isValidLocation,t.state.isEditing):null})),a.length>2){this.apiCalls.forEach((function(e){return e.abort()})),this.apiCalls=[];var n=jQuery.ajax({type:"GET",url:"/api/localization/locationsuggestions/?query="+a,contentType:"application/json",dataType:"json",success: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})}.bind(this)});this.apiCalls.push(n)}else a.length||this.handleInputClear()}},{key:"handleInputFocus",value:function(){var e=this;this.setState({showLocationSuggestions:!!event.target.value,isValidLocation:!0},(function(){return e.locationInputRef.current.focus()}))}},{key:"handleInputClear",value:function(){this.handleLocationSelection("",null)}},{key:"handleKeyDown",value:function(e){var t=this,a=0;null!==this.state.selectedLocationIndex&&(a=this.state.selectedLocationIndex);var n=this.state.locationSuggestions[a]?this.state.locationSuggestions[a]:this.state.locationText,r=/^\d+$/.test(this.state.locationEventText)&&this.state.locationEventText.length>0&&5!==this.state.locationEventText.length;switch(e.key){case"Esc":case"Escape":e.preventDefault(),this.setState({showLocationSuggestions:!1,isEditing:!0});break;case"Enter":e.preventDefault(),r?this.setState({showLocationSuggestions:!1,isValidLocation:!1},(function(){return t.handleLocationSelection(t.state.locationText,t.state.selectedLocationIndex)})):this.setState({selectedLocationIndex:a,locationText:n,locationEventText:n,showLocationSuggestions:!1,isEditing:!1},(function(){return t.handleSubmit(e)}));break;case"Home":e.preventDefault(),this.setState({selectedLocationIndex:a,locationText:n,locationEventText:n,isEditing:!0});break;case"Up":case"ArrowUp":e.preventDefault(),null!==this.state.selectedLocationIndex&&(a=this.state.selectedLocationIndex>=1?this.state.selectedLocationIndex-1:0),this.setState({selectedLocationIndex:a,locationText:n,locationEventText:n,isEditing:!0});break;case"Tab":this.props.nextTabClass&&e.preventDefault(),r?this.setState({showLocationSuggestions:!1,isValidLocation:!1},(function(){return t.handleLocationSelection(t.state.locationText,t.state.selectedLocationIndex)})):this.setState({selectedLocationIndex:a,locationText:n,locationEventText:n,isEditing:!1},(function(){return t.handleLocationSelection(t.state.locationText,t.state.selectedLocationIndex)}));break;case"Down":case"ArrowDown":e.preventDefault(),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:n,isEditing:!0});break;case"End":e.preventDefault(),a=this.state.locationSuggestions.length-1,this.setState({selectedLocationIndex:a,locationText:n,isEditing:!0});break;default:return void this.setState({isValidLocation:!0,isEditing:!0})}}},{key:"closeDropdown",value:function(e){this.locationInputContainerRef&&!this.locationInputContainerRef.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.locationInputContainerRef},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:function(){return e.setState({isValid:!1},(function(){return e.handleLocationSelection(e.locationInputRef.current.value.trim(),null)}))},inputId:this.props.inputId,ref:this.locationInputRef}),this.state.locationText?React.createElement("button",{type:"button",className:"clear-input",role:"button","aria-label":"clear",onClick:this.handleInputClear,tabindex:"-1"},"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(){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.forEach((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},7738:(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={term:"",type:a.props.type&&"number"==typeof a.props.type&&a.props.type<3?a.props.type:0},a.handleSelect=a.handleSelect.bind(a),a.handleClear=a.handleClear.bind(a),a.generateQueryData=a.generateQueryData.bind(a),a.processResults=a.processResults.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(){if(this.$elSelect2=jQuery(this.elSelect2),this.$elSelect2.select2({disabled:!this.isInputEnabled(),placeholder:this.props.inputLabel||(0==this.props.type?"Select Specialty or Name":1==this.props.type?"Select Specialty":"Select Name"),allowClear:!0,width:"resolve",dropdownCssClass:"doctor-specialty-dropdown",dropdownParent:jQuery(this.elSelect2).parent(),ajax:{url:"/api/v2/typeahead",dataType:"json",method:"POST",contentType:"application/json",data:this.generateQueryData,processResults:this.processResults}}),this.$elSelect2.on("select2:select",this.handleSelect),this.$elSelect2.on("select2:clear",this.handleClear),this.props.selectedInputLabel){var e=new Option(this.props.selectedInputLabel,this.props.selectedInputLabel,!0,!0);this.$elSelect2.append(e).trigger("change")}}},{key:"componentDidUpdate",value:function(e,t,a){this.isInputEnabled()?this.$elSelect2.prop("disabled",!1):(this.$elSelect2.prop("disabled",!0),this.$elSelect2.val(null).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,include:"providers,specialties",geoSpatialFilter:"providers",geoDistanceOptions:this.props.geospatialFilter?{location:this.props.location,radius:this.props.radius}:null,providerOptions:{matchType:"contains",matchAgainst:"displayName",sortBy:"displayName"}};return this.setState({term:e.term}),JSON.stringify(t)}},{key:"processResults",value:function(e){var t,a,n,r,s,i,o=function(e,t){return e&&e.results&&e.results.length?e.results.map((function(e){return e.type=t,e})):[]},l={results:[]};return 0!=this.state.type&&1!=this.state.type||l.results.push({text:"Specialties",children:this.props.geospatialFilter?(t=e.specialties,a=ProviderSpecialtyInputField.Specialty,n=this.state.term,r=this.props.allSpecialties,s=!!n,i=r.map((function(e){return{id:e.id||e.Id,text:e.name||e.Name||e.text||e.Text,type:a,disabled:s}})),s&&(n=n.toLowerCase(),i=i.filter((function(e){return e.text.toLowerCase().includes(n)}))),s&&t&&t.results&&t.results.length?i.map((function(e){return t.results.find((function(t){return t.id===e.id}))&&(e.disabled=!1),e})):i):o(e.specialties,ProviderSpecialtyInputField.Specialty)}),0!=this.state.type&&2!=this.state.type||l.results.push({text:"Doctors",children:o(e.providers,ProviderSpecialtyInputField.Provider)}),l}},{key:"handleClear",value:function(e){switch(e.preventDefault(),this.$elSelect2.val(null).trigger("change"),this.state.type){case 1:this.props.onSpecialtySelect("specialties",null);break;case 2:this.props.onProviderSelect("displayName",null);break;default:this.props.onSpecialtySelect("clear",null)}}},{key:"handleSelect",value:function(e){switch(e.preventDefault(),e.params.data.type){case ProviderSpecialtyInputField.Provider:this.props.onProviderSelect("displayName",e.params.data.text);break;case ProviderSpecialtyInputField.Specialty:this.props.onSpecialtySelect("specialties",e.params.data.text)}}},{key:"render",value:function(){var e=this,t=this.props.inputLabel?"selected":"";return React.createElement(React.Fragment,null,React.createElement("select",{ref:function(t){return e.elSelect2=t},className:"asc-select2",style:{width:"100%"}},React.createElement("option",{value:"",selected:t},this.props.inputLabel)))}}]),t}();n.Provider="provider",n.Specialty="specialty",t.Z=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),a.changePage=a.changePage.bind(a),a.pagerStateHandler=a.pagerStateHandler.bind(a),a.searchMain=React.createRef(),a.paginationRef=React.createRef();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,pager:{},pagesToDisplay:10,pagesToDisplayTablet:7,pagesToDisplayMobile:5,pagination:a.props.data.Results.pagination,useMobile:!1,useTabletLarge:!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:"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({page:e,updatePager:!1},(function(){window.scrollTo({behavior:"smooth",top:t.searchMain.current.offsetTop}),t.performSearch(t.state.request.Filter,t.state.request.Query,e,t.state.request.PageSize)}))}},{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),this.paginationRef&&this.paginationRef.current&&this.paginationRef.current.setPage(1)}},{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:"pagerStateHandler",value:function(e){this.setState({pager:e})}},{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("div",{className:"col-12 ",ref:this.searchMain}),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,{currentPage:this.state.request.Page,totalResults:this.state.results.TotalHits,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.request.PageSize,pagerStateHandlerCallback:this.pagerStateHandler,ref:this.paginationRef}))))}}]),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.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.pager.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=10|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,a=1===t.currentPage?"prev disabled":"prev",n=t.currentPage===t.totalPages?"next disabled":"next",r=t.currentPage===t.totalPages,s=1===t.currentPage;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:a,onClick:function(){return e.setPage(t.currentPage-1)},"aria-disabled":'"'+s+'"'},React.createElement("i",{className:"fa fa-angle-left","aria-hidden":"true"})),React.createElement("a",{className:n,onClick:function(){return e.setPage(t.currentPage+1)},"aria-disabled":'"'+r+'"'},React.createElement("i",{className:"fa fa-angle-right","aria-hidden":"true"})))):React.createElement(React.Fragment,null,React.createElement("a",{className:a,onClick:function(){return e.setPage(t.currentPage-1)},"aria-disabled":'"'+s+'"'},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:n,onClick:function(){return e.setPage(t.currentPage+1)},"aria-disabled":'"'+r+'"'},React.createElement("i",{className:"fa fa-angle-right","aria-hidden":"true"}))))}}]),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).Z,EventsSearchControl:a(9779).default,EventsSearchFilter:a(5328).default,EventsSearchListResults:a(4735).default,EventsSearchPagination:a(3761).default,EventsSearchSelectedFilters:a(3886).default,FilterListControl:a(3636).default,FindADoctorSearch:a(3588).Z,FindADoctorSearchTabPanelDropdownMarkup:a(38).default,FindADoctorSpecialtyServicePanelDropdownMarkup:a(632).default,FindADoctorSearchFilters:a(3560).default,FindADoctorSearchMoreResults:a(7454).default,FindADoctorSearchResults:a(7687).default,FindADoctorSearchTypeahead:a(8058).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,SpecialtiesSearch:a(2584).Z,SpecialtiesSearchAlphaPager:a(2405).default,SpecialtiesSearchControl:a(4882).default,SpecialtiesSearchFeaturedSpecialties:a(6138).default,SpecialtiesSearchResults:a(9112).default,SpecialtiesSearchResultItem:a(8535).default,SpecialtiesTypeAheadInputField:a(9052).default,SpecialtyTypeaheadInputField:a(7738).Z,ToolTip:a(9609).default,VolunteerSearch:a(2997).Z,VolunteerSearchResults:a(6118).default,VolunteerSearchResultItem:a(1759).default}},2258:(e,t,a)=>{a.r(t),a.d(t,{ErrorMessage:()=>Ma,FastField:()=>Aa,Field:()=>Oa,FieldArray:()=>Ia,Form:()=>Ca,Formik:()=>ga,FormikConsumer:()=>da,FormikContext:()=>ua,FormikProvider:()=>pa,connect:()=>La,getActiveElement:()=>ia,getIn:()=>oa,insert:()=>Fa,isEmptyArray:()=>Jt,isEmptyChildren:()=>na,isFunction:()=>Kt,isInputEvent:()=>sa,isInteger:()=>ea,isNaN:()=>aa,isObject:()=>Xt,isPromise:()=>ra,isString:()=>ta,move:()=>Pa,prepareDataForValidation:()=>Sa,replace:()=>Da,setIn:()=>la,setNestedObjectValues:()=>ca,swap:()=>_a,useField:()=>Na,useFormik:()=>ba,useFormikContext:()=>ha,validateYupSchema:()=>Ra,withFormik:()=>Ta,yupToFormErrors:()=>va});var n=a(3804),r=a(9590),s=a.n(r),i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((a=e,Array.isArray(a)?[]:{}),e,t):e;var a}function c(e,t,a){return e.concat(t).map((function(e){return l(e,a)}))}function u(e,t,a){(a=a||{}).arrayMerge=a.arrayMerge||c,a.isMergeableObject=a.isMergeableObject||i;var n=Array.isArray(t);return n===Array.isArray(e)?n?a.arrayMerge(e,t,a):function(e,t,a){var n={};return a.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=l(e[t],a)})),Object.keys(t).forEach((function(r){a.isMergeableObject(t[r])&&e[r]?n[r]=u(e[r],t[r],a):n[r]=l(t[r],a)})),n}(e,t,a):l(t,a)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,a){return u(e,a,t)}),{})};const p=u;var d=a(6169);const h=d.Z.Symbol;var f=Object.prototype,m=f.hasOwnProperty,y=f.toString,b=h?h.toStringTag:void 0;var g=Object.prototype.toString;var v=h?h.toStringTag:void 0;const R=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?function(e){var t=m.call(e,b),a=e[b];try{e[b]=void 0;var n=!0}catch(e){}var r=y.call(e);return n&&(t?e[b]=a:delete e[b]),r}(e):function(e){return g.call(e)}(e)},S=function(e,t){return function(a){return e(t(a))}},E=S(Object.getPrototypeOf,Object),w=function(e){return null!=e&&"object"==typeof e};var k=Function.prototype,N=Object.prototype,O=k.toString,C=N.hasOwnProperty,T=O.call(Object);const L=function(e){if(!w(e)||"[object Object]"!=R(e))return!1;var t=E(e);if(null===t)return!0;var a=C.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&O.call(a)==T},P=function(e,t){return e===t||e!=e&&t!=t},_=function(e,t){for(var a=e.length;a--;)if(P(e[a][0],t))return a;return-1};var F=Array.prototype.splice;function D(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}D.prototype.clear=function(){this.__data__=[],this.size=0},D.prototype.delete=function(e){var t=this.__data__,a=_(t,e);return!(a<0||(a==t.length-1?t.pop():F.call(t,a,1),--this.size,0))},D.prototype.get=function(e){var t=this.__data__,a=_(t,e);return a<0?void 0:t[a][1]},D.prototype.has=function(e){return _(this.__data__,e)>-1},D.prototype.set=function(e,t){var a=this.__data__,n=_(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this};const j=D,x=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},I=function(e){if(!x(e))return!1;var t=R(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},M=d.Z["__core-js_shared__"];var A,q=(A=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"";var B=Function.prototype.toString;const U=function(e){if(null!=e){try{return B.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var H=/^\[object .+?Constructor\]$/,V=Function.prototype,z=Object.prototype,Q=V.toString,W=z.hasOwnProperty,G=RegExp("^"+Q.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Y=function(e){return!(!x(e)||(t=e,q&&q in t))&&(I(e)?G:H).test(U(e));var t},$=function(e,t){var a=function(e,t){return null==e?void 0:e[t]}(e,t);return Y(a)?a:void 0},Z=$(d.Z,"Map"),J=$(Object,"create");var K=Object.prototype.hasOwnProperty;var X=Object.prototype.hasOwnProperty;function ee(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}ee.prototype.clear=function(){this.__data__=J?J(null):{},this.size=0},ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ee.prototype.get=function(e){var t=this.__data__;if(J){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return K.call(t,e)?t[e]:void 0},ee.prototype.has=function(e){var t=this.__data__;return J?void 0!==t[e]:X.call(t,e)},ee.prototype.set=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=J&&void 0===t?"__lodash_hash_undefined__":t,this};const te=ee,ae=function(e,t){var a,n,r=e.__data__;return("string"==(n=typeof(a=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==a:null===a)?r["string"==typeof t?"string":"hash"]:r.map};function ne(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}ne.prototype.clear=function(){this.size=0,this.__data__={hash:new te,map:new(Z||j),string:new te}},ne.prototype.delete=function(e){var t=ae(this,e).delete(e);return this.size-=t?1:0,t},ne.prototype.get=function(e){return ae(this,e).get(e)},ne.prototype.has=function(e){return ae(this,e).has(e)},ne.prototype.set=function(e,t){var a=ae(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this};const re=ne;function se(e){var t=this.__data__=new j(e);this.size=t.size}se.prototype.clear=function(){this.__data__=new j,this.size=0},se.prototype.delete=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a},se.prototype.get=function(e){return this.__data__.get(e)},se.prototype.has=function(e){return this.__data__.has(e)},se.prototype.set=function(e,t){var a=this.__data__;if(a instanceof j){var n=a.__data__;if(!Z||n.length<199)return n.push([e,t]),this.size=++a.size,this;a=this.__data__=new re(n)}return a.set(e,t),this.size=a.size,this};const ie=se,oe=function(){try{var e=$(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),le=function(e,t,a){"__proto__"==t&&oe?oe(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a};var ce=Object.prototype.hasOwnProperty;const ue=function(e,t,a){var n=e[t];ce.call(e,t)&&P(n,a)&&(void 0!==a||t in e)||le(e,t,a)},pe=function(e,t,a,n){var r=!a;a||(a={});for(var s=-1,i=t.length;++s<i;){var o=t[s],l=n?n(a[o],e[o],o,a,e):void 0;void 0===l&&(l=e[o]),r?le(a,o,l):ue(a,o,l)}return a},de=function(e){return w(e)&&"[object Arguments]"==R(e)};var he=Object.prototype,fe=he.hasOwnProperty,me=he.propertyIsEnumerable;const ye=de(function(){return arguments}())?de:function(e){return w(e)&&fe.call(e,"callee")&&!me.call(e,"callee")},be=Array.isArray;var ge=a(9710),ve=/^(?:0|[1-9]\d*)$/;const Re=function(e,t){var a=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==a||"symbol"!=a&&ve.test(e))&&e>-1&&e%1==0&&e<t},Se=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ee={};Ee["[object Float32Array]"]=Ee["[object Float64Array]"]=Ee["[object Int8Array]"]=Ee["[object Int16Array]"]=Ee["[object Int32Array]"]=Ee["[object Uint8Array]"]=Ee["[object Uint8ClampedArray]"]=Ee["[object Uint16Array]"]=Ee["[object Uint32Array]"]=!0,Ee["[object Arguments]"]=Ee["[object Array]"]=Ee["[object ArrayBuffer]"]=Ee["[object Boolean]"]=Ee["[object DataView]"]=Ee["[object Date]"]=Ee["[object Error]"]=Ee["[object Function]"]=Ee["[object Map]"]=Ee["[object Number]"]=Ee["[object Object]"]=Ee["[object RegExp]"]=Ee["[object Set]"]=Ee["[object String]"]=Ee["[object WeakMap]"]=!1;const we=function(e){return function(t){return e(t)}};var ke=a(9730),Ne=ke.Z&&ke.Z.isTypedArray;const Oe=Ne?we(Ne):function(e){return w(e)&&Se(e.length)&&!!Ee[R(e)]};var Ce=Object.prototype.hasOwnProperty;const Te=function(e,t){var a=be(e),n=!a&&ye(e),r=!a&&!n&&(0,ge.Z)(e),s=!a&&!n&&!r&&Oe(e),i=a||n||r||s,o=i?function(e,t){for(var a=-1,n=Array(e);++a<e;)n[a]=t(a);return n}(e.length,String):[],l=o.length;for(var c in e)!t&&!Ce.call(e,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Re(c,l))||o.push(c);return o};var Le=Object.prototype;const Pe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)},_e=S(Object.keys,Object);var Fe=Object.prototype.hasOwnProperty;const De=function(e){return null!=e&&Se(e.length)&&!I(e)},je=function(e){return De(e)?Te(e):function(e){if(!Pe(e))return _e(e);var t=[];for(var a in Object(e))Fe.call(e,a)&&"constructor"!=a&&t.push(a);return t}(e)};var xe=Object.prototype.hasOwnProperty;const Ie=function(e){if(!x(e))return function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}(e);var t=Pe(e),a=[];for(var n in e)("constructor"!=n||!t&&xe.call(e,n))&&a.push(n);return a},Me=function(e){return De(e)?Te(e,!0):Ie(e)};var Ae=a(2896);const qe=function(e,t){var a=-1,n=e.length;for(t||(t=Array(n));++a<n;)t[a]=e[a];return t},Be=function(){return[]};var Ue=Object.prototype.propertyIsEnumerable,He=Object.getOwnPropertySymbols;const Ve=He?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var a=-1,n=null==e?0:e.length,r=0,s=[];++a<n;){var i=e[a];t(i,a,e)&&(s[r++]=i)}return s}(He(e),(function(t){return Ue.call(e,t)})))}:Be,ze=function(e,t){for(var a=-1,n=t.length,r=e.length;++a<n;)e[r+a]=t[a];return e},Qe=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ze(t,Ve(e)),e=E(e);return t}:Be,We=function(e,t,a){var n=t(e);return be(e)?n:ze(n,a(e))},Ge=function(e){return We(e,je,Ve)},Ye=function(e){return We(e,Me,Qe)},$e=$(d.Z,"DataView"),Ze=$(d.Z,"Promise"),Je=$(d.Z,"Set"),Ke=$(d.Z,"WeakMap");var Xe="[object Map]",et="[object Promise]",tt="[object Set]",at="[object WeakMap]",nt="[object DataView]",rt=U($e),st=U(Z),it=U(Ze),ot=U(Je),lt=U(Ke),ct=R;($e&&ct(new $e(new ArrayBuffer(1)))!=nt||Z&&ct(new Z)!=Xe||Ze&&ct(Ze.resolve())!=et||Je&&ct(new Je)!=tt||Ke&&ct(new Ke)!=at)&&(ct=function(e){var t=R(e),a="[object Object]"==t?e.constructor:void 0,n=a?U(a):"";if(n)switch(n){case rt:return nt;case st:return Xe;case it:return et;case ot:return tt;case lt:return at}return t});const ut=ct;var pt=Object.prototype.hasOwnProperty;const dt=d.Z.Uint8Array,ht=function(e){var t=new e.constructor(e.byteLength);return new dt(t).set(new dt(e)),t};var ft=/\w*$/;var mt=h?h.prototype:void 0,yt=mt?mt.valueOf:void 0;const bt=function(e,t,a){var n,r,s,i=e.constructor;switch(t){case"[object ArrayBuffer]":return ht(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var a=t?ht(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}(e,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var a=t?ht(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}(e,a);case"[object Map]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(s=new(r=e).constructor(r.source,ft.exec(r))).lastIndex=r.lastIndex,s;case"[object Set]":return new i;case"[object Symbol]":return n=e,yt?Object(yt.call(n)):{}}};var gt=Object.create;const vt=function(){function e(){}return function(t){if(!x(t))return{};if(gt)return gt(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();var Rt=ke.Z&&ke.Z.isMap;const St=Rt?we(Rt):function(e){return w(e)&&"[object Map]"==ut(e)};var Et=ke.Z&&ke.Z.isSet;const wt=Et?we(Et):function(e){return w(e)&&"[object Set]"==ut(e)};var kt="[object Arguments]",Nt="[object Function]",Ot={};Ot[kt]=Ot["[object Array]"]=Ot["[object ArrayBuffer]"]=Ot["[object DataView]"]=Ot["[object Boolean]"]=Ot["[object Date]"]=Ot["[object Float32Array]"]=Ot["[object Float64Array]"]=Ot["[object Int8Array]"]=Ot["[object Int16Array]"]=Ot["[object Int32Array]"]=Ot["[object Map]"]=Ot["[object Number]"]=Ot["[object Object]"]=Ot["[object RegExp]"]=Ot["[object Set]"]=Ot["[object String]"]=Ot["[object Symbol]"]=Ot["[object Uint8Array]"]=Ot["[object Uint8ClampedArray]"]=Ot["[object Uint16Array]"]=Ot["[object Uint32Array]"]=!0,Ot["[object Error]"]=Ot[Nt]=Ot["[object WeakMap]"]=!1;const Ct=function e(t,a,n,r,s,i){var o,l=1&a,c=2&a,u=4&a;if(n&&(o=s?n(t,r,s,i):n(t)),void 0!==o)return o;if(!x(t))return t;var p=be(t);if(p){if(o=function(e){var t=e.length,a=new e.constructor(t);return t&&"string"==typeof e[0]&&pt.call(e,"index")&&(a.index=e.index,a.input=e.input),a}(t),!l)return qe(t,o)}else{var d=ut(t),h=d==Nt||"[object GeneratorFunction]"==d;if((0,ge.Z)(t))return(0,Ae.Z)(t,l);if("[object Object]"==d||d==kt||h&&!s){if(o=c||h?{}:function(e){return"function"!=typeof e.constructor||Pe(e)?{}:vt(E(e))}(t),!l)return c?function(e,t){return pe(e,Qe(e),t)}(t,function(e,t){return e&&pe(t,Me(t),e)}(o,t)):function(e,t){return pe(e,Ve(e),t)}(t,function(e,t){return e&&pe(t,je(t),e)}(o,t))}else{if(!Ot[d])return s?t:{};o=bt(t,d,l)}}i||(i=new ie);var f=i.get(t);if(f)return f;i.set(t,o),wt(t)?t.forEach((function(r){o.add(e(r,a,n,r,t,i))})):St(t)&&t.forEach((function(r,s){o.set(s,e(r,a,n,s,t,i))}));var m=u?c?Ye:Ge:c?keysIn:je,y=p?void 0:m(t);return function(e,t){for(var a=-1,n=null==e?0:e.length;++a<n&&!1!==t(e[a],a,e););}(y||t,(function(r,s){y&&(r=t[s=r]),ue(o,s,e(r,a,n,s,t,i))})),o},Tt=function(e){return Ct(e,4)},Lt=function(e,t){for(var a=-1,n=null==e?0:e.length,r=Array(n);++a<n;)r[a]=t(e[a],a,e);return r},Pt=function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==R(e)};function _t(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],s=a.cache;if(s.has(r))return s.get(r);var i=e.apply(this,n);return a.cache=s.set(r,i)||s,i};return a.cache=new(_t.Cache||re),a}_t.Cache=re;var Ft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dt=/\\(\\)?/g;const jt=(xt=_t((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ft,(function(e,a,n,r){t.push(n?r.replace(Dt,"$1"):a||e)})),t}),(function(e){return 500===It.size&&It.clear(),e})),It=xt.cache,xt);var xt,It;const Mt=function(e){if("string"==typeof e||Pt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var At=h?h.prototype:void 0,qt=At?At.toString:void 0;const Bt=function e(t){if("string"==typeof t)return t;if(be(t))return Lt(t,e)+"";if(Pt(t))return qt?qt.call(t):"";var a=t+"";return"0"==a&&1/t==-1/0?"-0":a},Ut=function(e){return null==e?"":Bt(e)},Ht=function(e){return be(e)?Lt(e,Mt):Pt(e)?[e]:qe(jt(Ut(e)))};var Vt=a(3840),zt=a(8679),Qt=a.n(zt);const Wt=function(e){return Ct(e,5)};function Gt(){return(Gt=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}).apply(this,arguments)}function Yt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function $t(e,t){if(null==e)return{};var a,n,r={},s=Object.keys(e);for(n=0;n<s.length;n++)a=s[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}function Zt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Jt=function(e){return Array.isArray(e)&&0===e.length},Kt=function(e){return"function"==typeof e},Xt=function(e){return null!==e&&"object"==typeof e},ea=function(e){return String(Math.floor(Number(e)))===e},ta=function(e){return"[object String]"===Object.prototype.toString.call(e)},aa=function(e){return e!=e},na=function(e){return 0===n.Children.count(e)},ra=function(e){return Xt(e)&&Kt(e.then)},sa=function(e){return e&&Xt(e)&&Xt(e.target)};function ia(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function oa(e,t,a,n){void 0===n&&(n=0);for(var r=Ht(t);e&&n<r.length;)e=e[r[n++]];return void 0===e?a:e}function la(e,t,a){for(var n=Tt(e),r=n,s=0,i=Ht(t);s<i.length-1;s++){var o=i[s],l=oa(e,i.slice(0,s+1));if(l&&(Xt(l)||Array.isArray(l)))r=r[o]=Tt(l);else{var c=i[s+1];r=r[o]=ea(c)&&Number(c)>=0?[]:{}}}return(0===s?e:r)[i[s]]===a?e:(void 0===a?delete r[i[s]]:r[i[s]]=a,0===s&&void 0===a&&delete n[i[s]],n)}function ca(e,t,a,n){void 0===a&&(a=new WeakMap),void 0===n&&(n={});for(var r=0,s=Object.keys(e);r<s.length;r++){var i=s[r],o=e[i];Xt(o)?a.get(o)||(a.set(o,!0),n[i]=Array.isArray(o)?[]:{},ca(o,t,a,n[i])):n[i]=t}return n}var ua=(0,n.createContext)(void 0),pa=ua.Provider,da=ua.Consumer;function ha(){var e=(0,n.useContext)(ua);return e}function fa(e,t){switch(t.type){case"SET_VALUES":return Gt({},e,{values:t.payload});case"SET_TOUCHED":return Gt({},e,{touched:t.payload});case"SET_ERRORS":return s()(e.errors,t.payload)?e:Gt({},e,{errors:t.payload});case"SET_STATUS":return Gt({},e,{status:t.payload});case"SET_ISSUBMITTING":return Gt({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Gt({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Gt({},e,{values:la(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Gt({},e,{touched:la(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Gt({},e,{errors:la(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Gt({},e,{},t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Gt({},e,{touched:ca(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Gt({},e,{isSubmitting:!1});default:return e}}var ma={},ya={};function ba(e){var t=e.validateOnChange,a=void 0===t||t,r=e.validateOnBlur,i=void 0===r||r,o=e.validateOnMount,l=void 0!==o&&o,c=e.isInitialValid,u=e.enableReinitialize,d=void 0!==u&&u,h=e.onSubmit,f=$t(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),m=Gt({validateOnChange:a,validateOnBlur:i,validateOnMount:l,onSubmit:h},f),y=(0,n.useRef)(m.initialValues),b=(0,n.useRef)(m.initialErrors||ma),g=(0,n.useRef)(m.initialTouched||ya),v=(0,n.useRef)(m.initialStatus),R=(0,n.useRef)(!1),S=(0,n.useRef)({});(0,n.useEffect)((function(){return R.current=!0,function(){R.current=!1}}),[]);var E=(0,n.useReducer)(fa,{values:m.initialValues,errors:m.initialErrors||ma,touched:m.initialTouched||ya,status:m.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),w=E[0],k=E[1],N=(0,n.useCallback)((function(e,t){return new Promise((function(a,n){var r=m.validate(e,t);null==r?a(ma):ra(r)?r.then((function(e){a(e||ma)}),(function(e){n(e)})):a(r)}))}),[m.validate]),O=(0,n.useCallback)((function(e,t){var a=m.validationSchema,n=Kt(a)?a(t):a,r=t&&n.validateAt?n.validateAt(t,e):Ra(e,n);return new Promise((function(e,t){r.then((function(){e(ma)}),(function(a){"ValidationError"===a.name?e(va(a)):t(a)}))}))}),[m.validationSchema]),C=(0,n.useCallback)((function(e,t){return new Promise((function(a){return a(S.current[e].validate(t))}))}),[]),T=(0,n.useCallback)((function(e){var t=Object.keys(S.current).filter((function(e){return Kt(S.current[e].validate)})),a=t.length>0?t.map((function(t){return C(t,oa(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(a).then((function(e){return e.reduce((function(e,a,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===a||a&&(e=la(e,t[n],a)),e}),{})}))}),[C]),L=(0,n.useCallback)((function(e){return Promise.all([T(e),m.validationSchema?O(e):{},m.validate?N(e):{}]).then((function(e){var t=e[0],a=e[1],n=e[2];return p.all([t,a,n],{arrayMerge:Ea})}))}),[m.validate,m.validationSchema,T,N,O]),P=ka((function(e){return void 0===e&&(e=w.values),(0,Vt.unstable_runWithPriority)(Vt.unstable_LowPriority,(function(){return L(e).then((function(e){return R.current&&k({type:"SET_ERRORS",payload:e}),e})).catch((function(e){}))}))})),_=ka((function(e){return void 0===e&&(e=w.values),k({type:"SET_ISVALIDATING",payload:!0}),L(e).then((function(e){return R.current&&(k({type:"SET_ISVALIDATING",payload:!1}),s()(w.errors,e)||k({type:"SET_ERRORS",payload:e})),e}))})),F=(0,n.useCallback)((function(e){var t=e&&e.values?e.values:y.current,a=e&&e.errors?e.errors:b.current?b.current:m.initialErrors||{},n=e&&e.touched?e.touched:g.current?g.current:m.initialTouched||{},r=e&&e.status?e.status:v.current?v.current:m.initialStatus;y.current=t,b.current=a,g.current=n,v.current=r;var s=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:a,touched:n,status:r,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var i=m.onReset(w.values,J);ra(i)?i.then(s):s()}else s()}),[m.initialErrors,m.initialStatus,m.initialTouched]);(0,n.useEffect)((function(){!0!==R.current||s()(y.current,m.initialValues)||(y.current=m.initialValues,d&&F(),l&&P(y.current))}),[d,m.initialValues,F,l,P]),(0,n.useEffect)((function(){d&&!0===R.current&&!s()(b.current,m.initialErrors)&&(b.current=m.initialErrors||ma,k({type:"SET_ERRORS",payload:m.initialErrors||ma}))}),[d,m.initialErrors]),(0,n.useEffect)((function(){d&&!0===R.current&&!s()(g.current,m.initialTouched)&&(g.current=m.initialTouched||ya,k({type:"SET_TOUCHED",payload:m.initialTouched||ya}))}),[d,m.initialTouched]),(0,n.useEffect)((function(){d&&!0===R.current&&!s()(v.current,m.initialStatus)&&(v.current=m.initialStatus,k({type:"SET_STATUS",payload:m.initialStatus}))}),[d,m.initialStatus,m.initialTouched]);var D=ka((function(e){if(Kt(S.current[e].validate)){var t=oa(w.values,e),a=S.current[e].validate(t);return ra(a)?(k({type:"SET_ISVALIDATING",payload:!0}),a.then((function(e){return e})).then((function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),k({type:"SET_ISVALIDATING",payload:!1})}))):(k({type:"SET_FIELD_ERROR",payload:{field:e,value:a}}),Promise.resolve(a))}return m.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),O(w.values,e).then((function(e){return e})).then((function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),k({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),j=(0,n.useCallback)((function(e,t){var a=t.validate;S.current[e]={validate:a}}),[]),x=(0,n.useCallback)((function(e){delete S.current[e]}),[]),I=ka((function(e,t){return k({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?P(w.values):Promise.resolve()})),M=(0,n.useCallback)((function(e){k({type:"SET_ERRORS",payload:e})}),[]),A=ka((function(e,t){return k({type:"SET_VALUES",payload:e}),(void 0===t?a:t)?P(e):Promise.resolve()})),q=(0,n.useCallback)((function(e,t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),B=ka((function(e,t,n){return k({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?a:n)?P(la(w.values,e,t)):Promise.resolve()})),U=(0,n.useCallback)((function(e,t){var a,n=t,r=e;if(!ta(e)){e.persist&&e.persist();var s=e.target?e.target:e.currentTarget,i=s.type,o=s.name,l=s.id,c=s.value,u=s.checked,p=(s.outerHTML,s.options),d=s.multiple;n=t||o||l,r=/number|range/.test(i)?(a=parseFloat(c),isNaN(a)?"":a):/checkbox/.test(i)?function(e,t,a){if("boolean"==typeof e)return Boolean(t);var n=[],r=!1,s=-1;if(Array.isArray(e))n=e,r=(s=e.indexOf(a))>=0;else if(!a||"true"==a||"false"==a)return Boolean(t);return t&&a&&!r?n.concat(a):r?n.slice(0,s).concat(n.slice(s+1)):n}(oa(w.values,n),u,c):d?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(p):c}n&&B(n,r)}),[B,w.values]),H=ka((function(e){if(ta(e))return function(t){return U(t,e)};U(e)})),V=ka((function(e,t,a){return void 0===t&&(t=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===a?i:a)?P(w.values):Promise.resolve()})),z=(0,n.useCallback)((function(e,t){e.persist&&e.persist();var a=e.target,n=a.name,r=a.id,s=(a.outerHTML,t||n||r);V(s,!0)}),[V]),Q=ka((function(e){if(ta(e))return function(t){return z(t,e)};z(e)})),W=(0,n.useCallback)((function(e){Kt(e)?k({type:"SET_FORMIK_STATE",payload:e}):k({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),G=(0,n.useCallback)((function(e){k({type:"SET_STATUS",payload:e})}),[]),Y=(0,n.useCallback)((function(e){k({type:"SET_ISSUBMITTING",payload:e})}),[]),$=ka((function(){return k({type:"SUBMIT_ATTEMPT"}),_().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var a;try{if(void 0===(a=K()))return}catch(e){throw e}return Promise.resolve(a).then((function(e){return R.current&&k({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(R.current)throw k({type:"SUBMIT_FAILURE"}),e}))}if(R.current&&(k({type:"SUBMIT_FAILURE"}),t))throw e}))})),Z=ka((function(e){e&&e.preventDefault&&Kt(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Kt(e.stopPropagation)&&e.stopPropagation(),$().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),J={resetForm:F,validateForm:_,validateField:D,setErrors:M,setFieldError:q,setFieldTouched:V,setFieldValue:B,setStatus:G,setSubmitting:Y,setTouched:I,setValues:A,setFormikState:W,submitForm:$},K=ka((function(){return h(w.values,J)})),X=ka((function(e){e&&e.preventDefault&&Kt(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Kt(e.stopPropagation)&&e.stopPropagation(),F()})),ee=(0,n.useCallback)((function(e){return{value:oa(w.values,e),error:oa(w.errors,e),touched:!!oa(w.touched,e),initialValue:oa(y.current,e),initialTouched:!!oa(g.current,e),initialError:oa(b.current,e)}}),[w.errors,w.touched,w.values]),te=(0,n.useCallback)((function(e){return{setValue:function(t,a){return B(e,t,a)},setTouched:function(t,a){return V(e,t,a)},setError:function(t){return q(e,t)}}}),[B,V,q]),ae=(0,n.useCallback)((function(e){var t=Xt(e),a=t?e.name:e,n=oa(w.values,a),r={name:a,value:n,onChange:H,onBlur:Q};if(t){var s=e.type,i=e.value,o=e.as,l=e.multiple;"checkbox"===s?void 0===i?r.checked=!!n:(r.checked=!(!Array.isArray(n)||!~n.indexOf(i)),r.value=i):"radio"===s?(r.checked=n===i,r.value=i):"select"===o&&l&&(r.value=r.value||[],r.multiple=!0)}return r}),[Q,H,w.values]),ne=(0,n.useMemo)((function(){return!s()(y.current,w.values)}),[y.current,w.values]),re=(0,n.useMemo)((function(){return void 0!==c?ne?w.errors&&0===Object.keys(w.errors).length:!1!==c&&Kt(c)?c(m):c:w.errors&&0===Object.keys(w.errors).length}),[c,ne,w.errors,m]);return Gt({},w,{initialValues:y.current,initialErrors:b.current,initialTouched:g.current,initialStatus:v.current,handleBlur:Q,handleChange:H,handleReset:X,handleSubmit:Z,resetForm:F,setErrors:M,setFormikState:W,setFieldTouched:V,setFieldValue:B,setFieldError:q,setStatus:G,setSubmitting:Y,setTouched:I,setValues:A,submitForm:$,validateForm:_,validateField:D,isValid:re,dirty:ne,unregisterField:x,registerField:j,getFieldProps:ae,getFieldMeta:ee,getFieldHelpers:te,validateOnBlur:i,validateOnChange:a,validateOnMount:l})}function ga(e){var t=ba(e),a=e.component,r=e.children,s=e.render,i=e.innerRef;return(0,n.useImperativeHandle)(i,(function(){return t})),(0,n.createElement)(pa,{value:t},a?(0,n.createElement)(a,t):s?s(t):r?Kt(r)?r(t):na(r)?null:n.Children.only(r):null)}function va(e){var t={};if(e.inner){if(0===e.inner.length)return la(t,e.path,e.message);var a=e.inner,n=Array.isArray(a),r=0;for(a=n?a:a[Symbol.iterator]();;){var s;if(n){if(r>=a.length)break;s=a[r++]}else{if((r=a.next()).done)break;s=r.value}var i=s;oa(t,i.path)||(t=la(t,i.path,i.message))}}return t}function Ra(e,t,a,n){void 0===a&&(a=!1),void 0===n&&(n={});var r=Sa(e);return t[a?"validateSync":"validate"](r,{abortEarly:!1,context:n})}function Sa(e){var t=Array.isArray(e)?[]:{};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var n=String(a);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||L(e)?Sa(e):""!==e?e:void 0})):L(e[n])?t[n]=Sa(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function Ea(e,t,a){var n=e.slice();return t.forEach((function(t,r){if(void 0===n[r]){var s=!1!==a.clone&&a.isMergeableObject(t);n[r]=s?p(Array.isArray(t)?[]:{},t,a):t}else a.isMergeableObject(t)?n[r]=p(e[r],t,a):-1===e.indexOf(t)&&n.push(t)})),n}var wa="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function ka(e){var t=(0,n.useRef)(e);return wa((function(){t.current=e})),(0,n.useCallback)((function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return t.current.apply(void 0,a)}),[])}function Na(e){var t=ha(),a=t.getFieldProps,r=t.getFieldMeta,s=t.getFieldHelpers,i=t.registerField,o=t.unregisterField,l=Xt(e)?e:{name:e},c=l.name,u=l.validate;return(0,n.useEffect)((function(){return c&&i(c,{validate:u}),function(){c&&o(c)}}),[i,o,c,u]),[a(l),r(c),s(c)]}function Oa(e){var t=e.validate,a=e.name,r=e.render,s=e.children,i=e.as,o=e.component,l=$t(e,["validate","name","render","children","as","component"]),c=$t(ha(),["validate","validationSchema"]),u=c.registerField,p=c.unregisterField;(0,n.useEffect)((function(){return u(a,{validate:t}),function(){p(a)}}),[u,p,a,t]);var d=c.getFieldProps(Gt({name:a},l)),h=c.getFieldMeta(a),f={field:d,form:c};if(r)return r(Gt({},f,{meta:h}));if(Kt(s))return s(Gt({},f,{meta:h}));if(o){if("string"==typeof o){var m=l.innerRef,y=$t(l,["innerRef"]);return(0,n.createElement)(o,Gt({ref:m},d,{},y),s)}return(0,n.createElement)(o,Gt({field:d,form:c},l),s)}var b=i||"input";if("string"==typeof b){var g=l.innerRef,v=$t(l,["innerRef"]);return(0,n.createElement)(b,Gt({ref:g},d,{},v),s)}return(0,n.createElement)(b,Gt({},d,{},l),s)}var Ca=(0,n.forwardRef)((function(e,t){var a=e.action,r=$t(e,["action"]),s=a||"#",i=ha(),o=i.handleReset,l=i.handleSubmit;return(0,n.createElement)("form",Object.assign({onSubmit:l,ref:t,onReset:o,action:s},r))}));function Ta(e){var t=e.mapPropsToValues,a=void 0===t?function(e){var t={};for(var a in e)e.hasOwnProperty(a)&&"function"!=typeof e[a]&&(t[a]=e[a]);return t}:t,r=$t(e,["mapPropsToValues"]);return function(e){var t=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",s=function(t){function s(){var a;return(a=t.apply(this,arguments)||this).validate=function(e){return r.validate(e,a.props)},a.validationSchema=function(){return Kt(r.validationSchema)?r.validationSchema(a.props):r.validationSchema},a.handleSubmit=function(e,t){return r.handleSubmit(e,Gt({},t,{props:a.props}))},a.renderFormComponent=function(t){return(0,n.createElement)(e,Object.assign({},a.props,t))},a}return Yt(s,t),s.prototype.render=function(){var e=$t(this.props,["children"]);return(0,n.createElement)(ga,Object.assign({},e,r,{validate:r.validate&&this.validate,validationSchema:r.validationSchema&&this.validationSchema,initialValues:a(this.props),initialStatus:r.mapPropsToStatus&&r.mapPropsToStatus(this.props),initialErrors:r.mapPropsToErrors&&r.mapPropsToErrors(this.props),initialTouched:r.mapPropsToTouched&&r.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,children:this.renderFormComponent}))},s}(n.Component);return s.displayName="WithFormik("+t+")",Qt()(s,e)}}function La(e){var t=function(t){return(0,n.createElement)(da,null,(function(a){return(0,n.createElement)(e,Object.assign({},t,{formik:a}))}))},a=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+a+")",Qt()(t,e)}Ca.displayName="Form";var Pa=function(e,t,a){var n=ja(e),r=n[t];return n.splice(t,1),n.splice(a,0,r),n},_a=function(e,t,a){var n=ja(e),r=n[t];return n[t]=n[a],n[a]=r,n},Fa=function(e,t,a){var n=ja(e);return n.splice(t,0,a),n},Da=function(e,t,a){var n=ja(e);return n[t]=a,n},ja=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Gt({},e,{length:t+1}))}return[]},xa=function(e){function t(t){var a;return(a=e.call(this,t)||this).updateArrayField=function(e,t,n){var r=a.props,s=r.name;(0,r.formik.setFormikState)((function(a){var r="function"==typeof n?n:e,i="function"==typeof t?t:e,o=la(a.values,s,e(oa(a.values,s))),l=n?r(oa(a.errors,s)):void 0,c=t?i(oa(a.touched,s)):void 0;return Jt(l)&&(l=void 0),Jt(c)&&(c=void 0),Gt({},a,{values:o,errors:n?la(a.errors,s,l):a.errors,touched:t?la(a.touched,s,c):a.touched})}))},a.push=function(e){return a.updateArrayField((function(t){return[].concat(ja(t),[Wt(e)])}),!1,!1)},a.handlePush=function(e){return function(){return a.push(e)}},a.swap=function(e,t){return a.updateArrayField((function(a){return _a(a,e,t)}),!0,!0)},a.handleSwap=function(e,t){return function(){return a.swap(e,t)}},a.move=function(e,t){return a.updateArrayField((function(a){return Pa(a,e,t)}),!0,!0)},a.handleMove=function(e,t){return function(){return a.move(e,t)}},a.insert=function(e,t){return a.updateArrayField((function(a){return Fa(a,e,t)}),(function(t){return Fa(t,e,null)}),(function(t){return Fa(t,e,null)}))},a.handleInsert=function(e,t){return function(){return a.insert(e,t)}},a.replace=function(e,t){return a.updateArrayField((function(a){return Da(a,e,t)}),!1,!1)},a.handleReplace=function(e,t){return function(){return a.replace(e,t)}},a.unshift=function(e){var t=-1;return a.updateArrayField((function(a){var n=a?[e].concat(a):[e];return t<0&&(t=n.length),n}),(function(e){var a=e?[null].concat(e):[null];return t<0&&(t=a.length),a}),(function(e){var a=e?[null].concat(e):[null];return t<0&&(t=a.length),a})),t},a.handleUnshift=function(e){return function(){return a.unshift(e)}},a.handleRemove=function(e){return function(){return a.remove(e)}},a.handlePop=function(){return function(){return a.pop()}},a.remove=a.remove.bind(Zt(a)),a.pop=a.pop.bind(Zt(a)),a}Yt(t,e);var a=t.prototype;return a.componentDidUpdate=function(e){!s()(oa(e.formik.values,e.name),oa(this.props.formik.values,this.props.name))&&this.props.formik.validateOnChange&&this.props.formik.validateForm(this.props.formik.values)},a.remove=function(e){var t;return this.updateArrayField((function(a){var n=a?ja(a):[];return t||(t=n[e]),Kt(n.splice)&&n.splice(e,1),n}),!0,!0),t},a.pop=function(){var e;return this.updateArrayField((function(t){var a=t;return e||(e=a&&a.pop&&a.pop()),a}),!0,!0),e},a.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,a=t.component,r=t.render,s=t.children,i=t.name,o=Gt({},e,{form:$t(t.formik,["validate","validationSchema"]),name:i});return a?(0,n.createElement)(a,o):r?r(o):s?"function"==typeof s?s(o):na(s)?null:n.Children.only(s):null},t}(n.Component);xa.defaultProps={validateOnChange:!0};var Ia=La(xa),Ma=La(function(e){function t(){return e.apply(this,arguments)||this}Yt(t,e);var a=t.prototype;return a.shouldComponentUpdate=function(e){return oa(this.props.formik.errors,this.props.name)!==oa(e.formik.errors,this.props.name)||oa(this.props.formik.touched,this.props.name)!==oa(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},a.render=function(){var e=this.props,t=e.component,a=e.formik,r=e.render,s=e.children,i=e.name,o=$t(e,["component","formik","render","children","name"]),l=oa(a.touched,i),c=oa(a.errors,i);return l&&c?r?Kt(r)?r(c):null:s?Kt(s)?s(c):null:t?(0,n.createElement)(t,o,c):c:null},t}(n.Component)),Aa=La(function(e){function t(t){var a;a=e.call(this,t)||this;var n=t.render,r=t.children,s=t.component,i=t.as;return t.name,i&&r&&Kt(r),s&&r&&Kt(r),n&&r&&na(r),a}Yt(t,e);var a=t.prototype;return a.shouldComponentUpdate=function(e){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):e.name!==this.props.name||oa(e.formik.values,this.props.name)!==oa(this.props.formik.values,this.props.name)||oa(e.formik.errors,this.props.name)!==oa(this.props.formik.errors,this.props.name)||oa(e.formik.touched,this.props.name)!==oa(this.props.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||e.formik.isSubmitting!==this.props.formik.isSubmitting},a.componentDidMount=function(){this.props.formik.registerField(this.props.name,{validate:this.props.validate})},a.componentDidUpdate=function(e){this.props.name!==e.name&&(this.props.formik.unregisterField(e.name),this.props.formik.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.props.formik.registerField(this.props.name,{validate:this.props.validate})},a.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},a.render=function(){var e=this.props,t=e.name,a=e.render,r=e.as,s=e.children,i=e.component,o=e.formik,l=$t(e,["validate","name","render","as","children","component","shouldUpdate","formik"]),c=$t(o,["validate","validationSchema"]),u={value:"radio"===l.type||"checkbox"===l.type?l.value:oa(o.values,t),name:t,onChange:o.handleChange,onBlur:o.handleBlur},p={field:u,meta:{value:oa(o.values,t),error:oa(o.errors,t),touched:!!oa(o.touched,t),initialValue:oa(o.initialValues,t),initialTouched:!!oa(o.initialTouched,t),initialError:oa(o.initialErrors,t)},form:c};if(a)return a(p);if(Kt(s))return s(p);if(i){if("string"==typeof i){var d=l.innerRef,h=$t(l,["innerRef"]);return(0,n.createElement)(i,Gt({ref:d},u,{},h),s)}return(0,n.createElement)(i,Gt({field:u,form:o},l),s)}var f=r||"input";if("string"==typeof f){var m=l.innerRef,y=$t(l,["innerRef"]);return(0,n.createElement)(f,Gt({ref:m},u,{},y),s)}return(0,n.createElement)(f,Gt({},u,{},l),s)},t}(n.Component))},8679:(e,t,a)=>{var n=a(9864),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return n.isMemo(e)?i:o[e.$$typeof]||r}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,a,n){if("string"!=typeof a){if(f){var r=h(a);r&&r!==f&&e(t,r,n)}var i=u(a);p&&(i=i.concat(p(a)));for(var o=l(t),m=l(a),y=0;y<i.length;++y){var b=i[y];if(!(s[b]||n&&n[b]||m&&m[b]||o&&o[b])){var g=d(a,b);try{c(t,b,g)}catch(e){}}}}return t}},2896:(e,t,a)=>{a.d(t,{Z:()=>l});var n=a(6169);e=a.hmd(e);var r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&e&&!e.nodeType&&e,i=s&&s.exports===r?n.Z.Buffer:void 0,o=i?i.allocUnsafe:void 0;const l=function(e,t){if(t)return e.slice();var a=e.length,n=o?o(a):new e.constructor(a);return e.copy(n),n}},8277:(e,t,a)=>{a.d(t,{Z:()=>n});const n="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g},9730:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(8277);e=a.hmd(e);var r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&e&&!e.nodeType&&e,i=s&&s.exports===r&&n.Z.process;const o=function(){try{return s&&s.require&&s.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}()},6169:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(8277),r="object"==typeof self&&self&&self.Object===Object&&self;const s=n.Z||r||Function("return this")()},9710:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(6169);e=a.hmd(e);var r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&e&&!e.nodeType&&e,i=s&&s.exports===r?n.Z.Buffer:void 0;const o=(i?i.isBuffer:void 0)||function(){return!1}},9590:e=>{var t=Array.isArray,a=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function s(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var o,l,c,u=t(e),p=t(i);if(u&&p){if((l=e.length)!=i.length)return!1;for(o=l;0!=o--;)if(!s(e[o],i[o]))return!1;return!0}if(u!=p)return!1;var d=e instanceof Date,h=i instanceof Date;if(d!=h)return!1;if(d&&h)return e.getTime()==i.getTime();var f=e instanceof RegExp,m=i instanceof RegExp;if(f!=m)return!1;if(f&&m)return e.toString()==i.toString();var y=a(e);if((l=y.length)!==a(i).length)return!1;for(o=l;0!=o--;)if(!n.call(i,y[o]))return!1;if(r&&e instanceof Element&&i instanceof Element)return e===i;for(o=l;0!=o--;)if(!("_owner"===(c=y[o])&&e.$$typeof||s(e[c],i[c])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return s(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},9921:(e,t)=>{var a="function"==typeof Symbol&&Symbol.for,n=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,s=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,l=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,p=a?Symbol.for("react.concurrent_mode"):60111,d=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,f=a?Symbol.for("react.suspense_list"):60120,m=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,b=a?Symbol.for("react.block"):60121,g=a?Symbol.for("react.fundamental"):60117,v=a?Symbol.for("react.responder"):60118,R=a?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case p:case s:case o:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case y:case m:case l:return e;default:return t}}case r:return t}}}function E(e){return S(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=s,t.Lazy=y,t.Memo=m,t.Portal=r,t.Profiler=o,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||S(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===s},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===r},t.isProfiler=function(e){return S(e)===o},t.isStrictMode=function(e){return S(e)===i},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===p||e===o||e===i||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===R||e.$$typeof===b)},t.typeOf=S},9864:(e,t,a)=>{e.exports=a(9921)},53:(e,t)=>{var a,n,r,s,i;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var o=null,l=null,c=function(){if(null!==o)try{var e=t.unstable_now();o(!0,e),o=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},a=function(e){null!==o?setTimeout(a,0,e):(o=e,setTimeout(c,0))},n=function(e,t){l=setTimeout(e,t)},r=function(){clearTimeout(l)},s=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,h=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var y=d.now();t.unstable_now=function(){return d.now()-y}}var b=!1,g=null,v=-1,R=5,S=0;s=function(){return t.unstable_now()>=S},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):R=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,w=E.port2;E.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();S=e+R;try{g(!0,e)?w.postMessage(null):(b=!1,g=null)}catch(e){throw w.postMessage(null),e}}else b=!1},a=function(e){g=e,b||(b=!0,w.postMessage(null))},n=function(e,a){v=h((function(){e(t.unstable_now())}),a)},r=function(){f(v),v=-1}}function k(e,t){var a=e.length;e.push(t);e:for(;;){var n=Math.floor((a-1)/2),r=e[n];if(!(void 0!==r&&0<C(r,t)))break e;e[n]=t,e[a]=r,a=n}}function N(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var a=e.pop();if(a!==t){e[0]=a;e:for(var n=0,r=e.length;n<r;){var s=2*(n+1)-1,i=e[s],o=s+1,l=e[o];if(void 0!==i&&0>C(i,a))void 0!==l&&0>C(l,i)?(e[n]=l,e[o]=a,n=o):(e[n]=i,e[s]=a,n=s);else{if(!(void 0!==l&&0>C(l,a)))break e;e[n]=l,e[o]=a,n=o}}}return t}return null}function C(e,t){var a=e.sortIndex-t.sortIndex;return 0!==a?a:e.id-t.id}var T=[],L=[],P=1,_=null,F=3,D=!1,j=!1,x=!1;function I(e){for(var t=N(L);null!==t;){if(null===t.callback)O(L);else{if(!(t.startTime<=e))break;O(L),t.sortIndex=t.expirationTime,k(T,t)}t=N(L)}}function M(e){if(x=!1,I(e),!j)if(null!==N(T))j=!0,a(A);else{var t=N(L);null!==t&&n(M,t.startTime-e)}}function A(e,a){j=!1,x&&(x=!1,r()),D=!0;var i=F;try{for(I(a),_=N(T);null!==_&&(!(_.expirationTime>a)||e&&!s());){var o=_.callback;if(null!==o){_.callback=null,F=_.priorityLevel;var l=o(_.expirationTime<=a);a=t.unstable_now(),"function"==typeof l?_.callback=l:_===N(T)&&O(T),I(a)}else O(T);_=N(T)}if(null!==_)var c=!0;else{var u=N(L);null!==u&&n(M,u.startTime-a),c=!1}return c}finally{_=null,F=i,D=!1}}function q(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=i;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=F;F=e;try{return t()}finally{F=a}},t.unstable_next=function(e){switch(F){case 1:case 2:case 3:var t=3;break;default:t=F}var a=F;F=t;try{return e()}finally{F=a}},t.unstable_scheduleCallback=function(e,s,i){var o=t.unstable_now();if("object"==typeof i&&null!==i){var l=i.delay;l="number"==typeof l&&0<l?o+l:o,i="number"==typeof i.timeout?i.timeout:q(e)}else i=q(e),l=o;return e={id:P++,callback:s,priorityLevel:e,startTime:l,expirationTime:i=l+i,sortIndex:-1},l>o?(e.sortIndex=l,k(L,e),null===N(T)&&e===N(L)&&(x?r():x=!0,n(M,l-o))):(e.sortIndex=i,k(T,e),j||D||(j=!0,a(A))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=F;return function(){var a=F;F=t;try{return e.apply(this,arguments)}finally{F=a}}},t.unstable_getCurrentPriorityLevel=function(){return F},t.unstable_shouldYield=function(){var e=t.unstable_now();I(e);var a=N(T);return a!==_&&null!==_&&null!==a&&null!==a.callback&&a.startTime<=e&&a.expirationTime<_.expirationTime||s()},t.unstable_requestPaint=B,t.unstable_continueExecution=function(){j||D||(j=!0,a(A))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return N(T)},t.unstable_Profiling=null},3840:(e,t,a)=>{e.exports=a(53)},3804:e=>{e.exports=React}},t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={id:n,loaded:!1,exports:{}};return e[n](r,r.exports,a),r.loaded=!0,r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{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}})()})();
