1(()=>{var e={973(e,t,n){e.exports={...n(174)}},331(e,t,n){e.exports={...n(335)}},288(e,t,n){e.exports={...n(742)}},846(e,t,n){"use strict";n.d(t,{A:()=>o});const o={mapsApiKey:n(805).Ay}},805(e,t,n){"use strict";n.d(t,{Ay:()=>l,Oe:()=>i});var o=n(198),a=n(40);const s=(0,o.createSlice)({name:"mapsApiKey",initialState:{value:null},reducers:{mapsApiKeyAdded(e,t){e.value=t.payload}}}),{mapsApiKeyAdded:r}=s.actions,i=()=>(0,a.useSelector)(e=>e.mapsApiKey?.value),l=s.reducer},606(e){var t,n,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function r(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var i,l=[],c=!1,u=-1;function d(){c&&i&&(c=!1,i.length?l=i.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=r(d);c=!0;for(var t=l.length;t;){for(i=l,l=[];++u<t;)i&&i[u].run();u=-1,t=l.length}i=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new g(e,t)),1!==l.length||c||r(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},743(e){e.exports={isNode:!1,isBrowser:!0,enforceServerSide:()=>{throw new Error("You are attempting to use code in the browser that has been designated server-side only. Such activity is known by the state of California to lead to usage of the dark side of the Force.")}}},335(e,t,n){e.exports=n(743)},742(e,t,n){const{log:o}=n(437);e.exports={fatal:(e,t=null)=>{o("FATAL",e,t)},error:(e,t=null)=>{o("ERROR",e,t)},warn:(e,t=null)=>{o("WARN",e,t)},info:(e,t=null)=>{o("INFO",e,t)},debug:(e,t=null)=>{o("DEBUG",e,t)},trace:(e,t=null)=>{o("TRACE",e,t)}}},437(e,t,n){const{levels:o,colors:a,logLevel:s,stderrLevels:r}=n(812);o[s];e.exports={log:(e,t,n)=>{false}}},812(e,t,n){const o=n(606).env.LOG_LEVEL||"INFO",a={FATAL:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,TRACE:5},s=new Set;Object.keys(a).forEach(e=>{a[e]<a.INFO&&s.add(e)});e.exports={levels:a,logLevel:o,stderrLevels:s,colors:{FATAL:"red bold",ERROR:"red",WARN:"yellow",INFO:"green",DEBUG:"cyan",TRACE:"blue"}}},174(e){"use strict";e.exports=DDC.WsmCommonData},198(e){"use strict";e.exports=RTK},40(e){"use strict";e.exports=ReactRedux}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=ReactDOM,t=React;var o=n.n(t),a=n(40),s=n(973);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r.apply(null,arguments)}class i extends o().Component{constructor(e){super(e),this.renderDelegate=this.renderDelegate.bind(this)}renderDelegate({labels:e}){const{HeadingTag:t,headingText:n,widgetId:a,toggleCollapse:s,showIcon:i,headingClasses:l,iconClasses:c}=this.props,u=[...c];let d={};if(s){const e="ddc-icon-expand";u.push(e),u.push("icon-style-collapse"),d={role:"button","data-toggle":"collapse","data-target":`#${a}-collapse`,"data-expand-icon-class":`${e}`,"data-collapse-icon-class":"ddc-icon-collapse","aria-expanded":"false","aria-controls":`${a}-collapse`}}return o().createElement(t,r({className:l.join(" ")},d),i&&o().createElement(o().Fragment,null,o().createElement("i",{className:u.join(" ")})," "),e.getHTML(n))}render(){return this.props.headingText&&"FALSE"!==this.props.headingText.toUpperCase()?o().createElement(s.Common,{render:this.renderDelegate}):null}}i.defaultProps={HeadingTag:"h3",headingText:""};const l=i,c=e=>{const{id:t,children:n,toggleCollapse:a}=e;return a?o().createElement("div",{id:`${t}-collapse`,className:"collapse collapse-content"},n):n};c.defaultProps={toggleCollapse:!1};const u=c;var d=n(174),p=n(288),g=n.n(p),m=n(805);const f=(e,n,o)=>{const[a,s]=(0,t.useState)([]),r=(0,t.useMemo)(()=>((e,t=300)=>{let n=null;const o=()=>{null!==n&&(clearTimeout(n),n=null)};return{run:(...a)=>{o(),n=setTimeout(()=>{e(...a)},t)},cancel:o}})(async(e,t)=>{try{const{AutocompleteSuggestion:n}=window.google.maps.places,o={input:e.trim(),language:"en-US",includedPrimaryTypes:["(cities)"],includedReg
1ionCodes:["us"],sessionToken:t},{suggestions:a}=await n.fetchAutocompleteSuggestions(o);s(a||[])}catch(e){g().error("[ws-locations-control][useFetchLocationSuggestions] Failed to fetch suggestions:",e),s([])}}),[]);return(0,t.useEffect)(()=>o&&n?(r.run(e,n),()=>{r.cancel()}):(s([]),null),[e,o,n,r]),{suggestions:a}};var h=n(331);const w="[ws-locations-control][useLocationsFilter]",b=({suggestion:e,index:t,isActive:n,onSelect:a,onMouseEnter:s,onMouseLeave:r})=>o().createElement("li",{key:e.placePrediction.placeId||t},o().createElement("button",{type:"button",className:"btn btn-link px-0 py-2 text-decoration-none text-body suggestion-item text-truncate w-100 text-left "+(n?"active":""),onClick:()=>a(t),onTouchStart:e=>e.preventDefault(),onTouchEnd:e=>{e.preventDefault(),e.stopPropagation(),a(t)},onMouseEnter:()=>s(t),onMouseLeave:r,role:"option","aria-selected":n},e.placePrediction.text.text)),S=({suggestions:e,isVisible:t,suggestionsLabel:n,onSelect:a,highlightedIndex:s,onMouseEnter:r,onMouseLeave:i})=>t&&e&&0!==e.length?o().createElement("div",{className:"position-absolute h-auto form-control shadow suggestion-dropdown",role:"listbox",tabIndex:-1,onMouseDown:e=>e.preventDefault()},o().createElement("small",{className:"text-muted text-uppercase"},n),o().createElement("ul",{className:"list-unstyled mb-0"},e.map((e,t)=>{const n=t===s;return o().createElement(b,{key:e.placePrediction.placeId||t,suggestion:e,index:t,isActive:n,onSelect:a,onMouseEnter:r,onMouseLeave:i})}))):null,E=PropTypes;var y=n.n(E);const v=o().forwardRef(({value:e,onChange:t,onFocus:n,onKeyDown:a,onClear:s},r)=>o().createElement(o().Fragment,null,o().createElement("input",{ref:r,type:"text",className:"form-control pr-7",value:e,"aria-label":"Search Input",onChange:t,onFocus:n,autoComplete:"off",onKeyDown:a,"aria-autocomplete":"list"}),e&&o().createElement("button",{className:"clear-button mt-1",onClick:s,"aria-label":"Clear search",type:"button"},o().createElement("i",{className:"ddc-icon ddc-icon-close text-muted"}))));v.displayName="SearchInput",v.propTypes={value:y().string.isRequired,onChange:y().func.isRequired,onFocus:y().func.isRequired,onKeyDown:y().func.isRequired,onClear:y().func.isRequired};const L=v,C=({suggestions:e,inputString:n,setInputString:a,setSelectedPlaceId:s})=>{const r=(0,d.useLabels)(),[i,l]=(0,t.useState)(!1),[c,u]=(0,t.useState)(-1),p=(0,t.useRef)(null),g=(0,t.useRef)(null),m=(0,t.useCallback)(t=>{l(t),t?e&&e.length>0&&u(0):u(-1)},[e]);var f,h;f=p,h=()=>{m(!1)},(0,t.useEffect)(()=>{const e=f.current;if(!e)return null;const t=t=>{e.contains(t.target)||h()},n=t=>{const n=t.relatedTarget||document.activeElement;e.contains(n)||h()};return document.addEventListener("mousedown",t),e.addEventListener("focusout",n),()=>{document.removeEventListener("mousedown",t),e.removeEventListener("focusout",n)}},[f,h]);const w=(0,t.useCallback)(e=>{const{text:t,placeId:n}=e.placePrediction;a(t.text),m(!1),s(n),g.current?.blur()},[a,s,m]),b=(0,t.useCallback)(t=>{if(!i||!e||0===e.length)return;const n={ArrowDown:()=>{u(t=>(t+1)%e.length)},ArrowUp:()=>{u(t=>(t-1+e.length)%e.length)},Enter:()=>{c>=0&&w(e[c])},Escape:()=>{m(!1)}}[t.key];n&&(t.preventDefault(),n())},[i,e,c,w,m]);return o().createElement("form",{onSubmit:e=>{e.preventDefault(),m(!1)},name:"location-autocomplete-search",className:"center-block autocomplete-search-form",ref:p},o().createElement("strong",{className:"text-muted"},r.get("SEARCH_BY_LOCATION")),o().createElement("div",{role:"combobox",className:"form-group position-relative","aria-expanded":i,"aria-haspopup":"listbox","aria-controls":"location-suggestion-list"},o().createElement(L,{ref:g,value:n,onChange:e=>{const{value:t}=e.target,n=t.trim();n||s(null),m(n.length>=3),a(t)},onFocus:()=>{n&&n.trim().length>=3&&m(!0)},onKeyDown:b,onClear:()=>{a(""),m(!1),s(null)}}),o().createElement(S,{suggestions:e,isVisible:i,suggestionsLabel:r.get("SUGGESTIONS"),onSelect:t=>w(e[t]),highlightedIndex:c,onMouseEnter:e=>u(e),onMouseLeave:()=>u(-1)})))},D="A zip code could not be determined for this location.",T="Failed to fetch place details",x=(e,n,o,a)=>{const[s,r]=(0,t.useState)(null),[i,l]=(0,t.useState)(null),[c,u]=(0,t.useState)(!1),d=(0,t.useRef)(n);return(0,t.useEffect)(()=>{d.current=n},[n]),(0,t.useEffect)(()=>
1{if(!a||!e)return r(null),l(null),void u(!1);u(!0);(async()=>{try{const{lat:e,lng:t}=await(async(e,t)=>{const{Place:n}=window.google.maps.places,o=new n({id:e});if(await o.fetchFields({fields:["location"],sessionToken:t}),!o.location)throw new Error("Error in finding coordinates for the selected location.");return{lat:o.location.lat(),lng:o.location.lng()}})(a,d.current),n=await((e,t)=>new Promise((n,o)=>{const a=new window.google.maps.Geocoder,s={lat:e,lng:t};a.geocode({location:s},(e,t)=>{if("OK"===t){const t=(e=>{if(!e?.length)return null;const t=e.flatMap(e=>e.address_components).find(e=>e.types.includes("postal_code"));return t?.long_name||null})(e);t?n(t):o(new Error(D))}else o(new Error(D))})}))(e,t);r(n),l(null)}catch(e){l(e.message||T),r(null)}finally{o?.(),u(!1)}})()},[a,e,o]),{zipcode:s,isLoading:c,error:i}};const R=e=>e?"function"==typeof e.hasActiveFilters&&e.hasActiveFilters()?e.getFilteredLocations()||[]:e.getLocations()||[]:[],A="[ws-locations-control][useLocationsDataReady]",I="DDC:LocationsDataReady",N="[ws-locations-control][useLocationsData]",O=()=>{const[e,n]=(0,t.useState)([]),[o,a]=(0,t.useState)(null),[s,r]=(0,t.useState)(!1),[i,l]=(0,t.useState)(null),{isReady:c,error:u}=(()=>{const[e,n]=(0,t.useState)(!1),[o,a]=(0,t.useState)(null);return(0,t.useEffect)(()=>{if(!h.isBrowser)return()=>{};if(window.DDC?.LocationsData)return g().debug(`${A} LocationsData already available`),n(!0),()=>{};const e=()=>{g().debug(`${A} LocationsDataReady event received`),n(!0),a(null)};window.addEventListener(I,e),g().debug(`${A} Listening for LocationsDataReady event`);const t=setTimeout(()=>{window.DDC?.LocationsData||(g().error(`${A} LocationsData initialization timeout`),a("Location service not available"))},5e3);return()=>{window.removeEventListener(I,e),clearTimeout(t)}},[]),{isReady:e,error:o}})();(0,t.useEffect)(()=>{u&&(a(u),r(!1))},[u]),(0,t.useEffect)(()=>{if(!c)return g().debug(`${N} Not subscribing - isReady: ${c}`),()=>{};const e=window.DDC.LocationsData;g().debug(`${N} Registering for location notifications`);const t=e.registerLocationsNotification(()=>{g().debug(`${N} Received locations update`);const t=R(e),o=e.getError();n(t),a(o),r(!1),g().debug(`${N} Updated state - count: ${t.length}, hasError: ${!!o}`)}),o=e.registerFilteredLocationsNotification(()=>{g().debug(`${N} Received filtered-locations update`);const t=R(e),o=e.getError();n(t),a(o),r(!1),g().debug(`${N} Updated state (filtered) - count: ${t.length}`)});return()=>{g().debug(`${N} Unsubscribing from notifications`),t&&t(),o&&o()}},[c]);const d=(0,t.useCallback)(({postalCode:e,range:t,excludeByRange:n,useDefaultTileCount:o=!1})=>{c&&window.DDC?.LocationsData?(g().debug(`${N} Setting postal code: ${e}`,{range:t,excludeByRange:n}),r(!0),a(null),l(e),window.DDC.LocationsData.setSearchParams(e,t,n,o)):g().warn(`${N} Cannot set postal code - LocationsData not ready`)},[c]);return{locations:e,locationCount:e.length,error:o,isReady:c,isLoading:s,currentPostalCode:i,setSearchParams:d}},F=()=>{try{const e=sessionStorage.getItem("locationSearchRange");if(e){const t=parseInt(e,10);if(!Number.isNaN(t)&&t>0)return t}}catch(e){}return 50},k=({isApiReady:e,sessionToken:n,resetSession:o,selectedPlaceId:a,onLocationStatusChange:s})=>{const{locationCount:r,geoError:i,locationError:l,isLoading:c}=(({isApiReady:e,sessionToken:n,resetSession:o,selectedPlaceId:a})=>{const{zipcode:s,isLoading:r,error:i}=x(e,n,o,a),{locationCount:l,error:c,isLoading:u,isReady:d,setSearchParams:p}=O();g().debug("[ws-locations-control][useLocationSearch] State",{isReady:d,count:l,geoZip:s});const m=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{if(d&&!r){if(null!==s)m.current=!0;else if(!m.current)return;p({postalCode:s,range:F(),excludeByRange:!0,useDefaultTileCount:null===s})}},[d,s,p,r]),{locationCount:l,geoError:i,locationError:c,isLoading:r||u}})({isApiReady:e,sessionToken:n,resetSession:o,selectedPlaceId:a}),{locationCountString:u,isHidden:p,locationLabel:m}=(({locationCount:e,error:n,isLoading:o,onLocationStatusChange:a})=>{const s=(0,d.useLabels)(),[r,i]=(0,t.useState)("");(0,t.useEffect)(()=>{const t=!n&&e>0;i(n?"":e||s.get("NO")),a&&a(t)},[e,n,s,a]);const l=o||""===r,c=r?s.get("LOCATIONS_NEAR_YOU").toLowerCase():"";return g().debug(`[ws-locations-control][useLocationCountDisplay] Returning count: ${r}`),{locationCountString:r,isHidden:l,locationLabel:c}})({locationCount:r,error:l,isLoading:c,onLocationStatusChange:s});return{locationCountString:u,isHidden:p,locationLabel:m,error:i||l}},P=({isApiReady:e,sessionToken:t,resetSession:n,selectedPlaceId:a,onLocationStatusChange:s})=>{const{locationCountString:r,isHidden:i,locationLabel:l}=k({isApiReady:e,sessionToken:t,resetSession:n,selectedPlaceId:a,onLocationStatusChange:s}),{deviceType:c}=(0,d.useRequestData)(),u=(e=>[...new Set(e)].filter(e=>e).join(" ")||null)(["location-count","text-body",i?"visibility-hidden":"","MOBILE"===c?"text-nowrap":""]);return o().createElement("h3",{className:u},`${r} ${l}`)},_=()=>{const e=(0,d.useLabels)(),t=(0,d.useSitemap)(),n=e.get("LIST_ALL_LOCATIONS")||"List all locations";return o().createElement("a",{href:t.get("LOCATIONS_LIST")||"/locations-list.htm",className:"px-0 my-2 text-nowrap"},n,o().createElement("i",{className:"ddc-icon ddc-icon-arrow4-right ddc-icon-size-small ml-2"}))},$="showMap",M=()=>{const e=(0,d.useLabels)(),[n,a]=(0,t.useState)(!1);(0,t.useEffect)(()=>{const e=new URLSearchParams(window.location.search);a("true"===e.get($))},[]);const s=(0,t.useCallback)(e=>{try{const t=new URL(window.location);t.searchParams.set($,e.toString()),window.history.replaceState({},"",t),window.dispatchEvent(new Event("showMapChange"))}catch(e){p.logger.error("MapToggleButton","updateUrlParameter","Failed to update URL parameter",e)}},[]);return o().createElement("button",{className:"btn btn-default mt-3",onClick:e=>{e.preventDefault();const t=!n;a(t),s(t)},type:"button","aria-pressed":n,"aria-label":n?"Hide map view":"Show map view"},n?e.get("HIDE_MAP")||"Hide Map":e.get("SHOW_MAP")||"Show Map")},U="[ws-locations-control][useFilterVisibility]",H="ws-locations-data/filter-visibility",W=()=>{const e=(0,d.useLabels)(),{publishVisibility:n}={publishVisibility:(0,t.useCallback)(e=>{try{const t=window.DDC?.pubsub;if(!t)return void g().warn(`${U} DDC.pubsub not available`);t.publish(H,{visible:e})}catch(e){g().error(`${U} Failed to publish filter visibility:`,e)}},[])},{subscribeToVisibility:o}={subscribeToVisibility:(0,t.useCallback)(e=>{try{const t=window.DDC?.pubsub;if(!t)return g().warn(`${U} DDC.pubsub not available`),()=>{};const n=t.subscribe(H,t=>{t&&"boolean"==typeof t.visible&&e(t.visible)});return()=>t.unsubscribe(n)}catch(e){return g().error(`${U} Failed to subscribe to filter visibility:`,e),()=>{}}},[])},[a,s]=(0,t.useState)(!1);(0,t.useEffect)(()=>()=>n(!1),[n]),(0,t.useEffect)(()=>o(e=>{s(e)}),[o]);const r=e.get("A_FILTER")||"Filter",i=e.get("HIDE_LOCATION_FILTERS")||"Hide location filters",l=e.get("SHOW_LOCATION_FILTERS")||"Show location filters";return React.createElement("button",{className:"btn btn-default mt-3",onClick:e=>{e.preventDefault();n(!a)},type:"button","aria-pressed":a,"aria-label":a?i:l},React.createElement("i",{className:"ddc-icon ddc-icon-filter-list-control
1s mr-2","aria-hidden":"true"}),r)},B=()=>{const e=(0,d.useLabels)(),[n,a]=(0,t.useState)(""),[s,r]=(0,t.useState)(null),[i,l]=(0,t.useState)(!1),{isApiReady:c,sessionToken:u,resetSession:p}=(e=>{const[n,o]=(0,t.useState)(!1),a=(0,t.useRef)(null),s=(0,m.Oe)(),r=e&&e.trim().length>=3,i=(0,t.useCallback)(()=>{a.current=null},[]);return(0,t.useEffect)(()=>{if(window.google?.maps?.places)return o(!0),null;let e=document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');if(!e){e=document.createElement("script");const t=new URLSearchParams({language:"en",libraries:"places,geocoding",channel:"ddc-web-platform",key:s||""});e.src=`https://maps.googleapis.com/maps/api/js?${t.toString()}`,e.async=!0,e.defer=!0,document.head.appendChild(e)}let t=0;const n=setInterval(()=>{t+=1,window.google?.maps?(clearInterval(n),o(!0)):t>=15&&(clearInterval(n),g().error("[ws-locations-control][useGoogleApiSession] Google Maps API failed to load after 15 attempts"),o(!1))},200);return()=>{clearInterval(n)}},[s]),(0,t.useEffect)(()=>{n&&(r&&!a.current?a.current=new window.google.maps.places.AutocompleteSessionToken:r||i())},[r,n,i,e]),{isApiReady:n,sessionToken:a.current,resetSession:i}})(n),{suggestions:b}=f(n,u,c);return(e=>{const n=(0,t.useRef)(e);(0,t.useEffect)(()=>{const t=""!==n.current.trim();if(n.current=e,!t||""!==e.trim())return;if(!h.isBrowser)return;const o=window.DDC?.LocationsData;o?.resetMakeFilter?o.hasActiveFilters?.()?(o.resetMakeFilter(),g().debug(`${w} Called LocationsData.resetMakeFilter()`)):g().debug(`${w} Skipping resetMakeFilter â no active make filter`):g().warn(`${w} LocationsData.resetMakeFilter not available`)},[e])})(n),o().createElement("div",{className:"pb-4 mx-1"},o().createElement("div",{className:"row"},o().createElement("h2",{className:"col-xs-6 col-sm-4 text-left text-body px-3 px-md-3"},e.get("LOCATIONS")),o().createElement("div",{className:"col-xs-6 col-sm-4 col-sm-push-4 text-right mt-5 px-3 px-md-3"},o().createElement(_,null)),o().createElement("div",{className:"col-xs-12 col-sm-4 col-sm-pull-4 mt-md-5 mt-2 px-0 px-md-3"},o().createElement(C,{suggestions:b,inputString:n,setInputString:a,setSelectedPlaceId:r}))),o().createElement("div",{className:"row d-flex align-items-center px-2"},o().createElement("div",{className:"col-xs-8 col-sm-4 text-center col-sm-push-4 px-md-3"},o().createElement(P,{isApiReady:c,sessionToken:u,resetSession:p,selectedPlaceId:s,onLocationStatusChange:l})),o().createElement("div",{className:"col-xs-4 col-sm-4 col-sm-pull-4 text-right text-md-left px-md-3"},i&&o().createElement(W,null)),o().createElement("div",{className:"col-xs-4 col-sm-4 hidden-xs hidden-sm text-right"},i&&o().createElement(M,null))))},j=(e,t,n)=>{const o=["ddc-content",t];return e&&o.push(e),n&&o.push("collapse-container"),o},K=(e,t,n)=>{const o=[],{widgetHeading:a,headingIconClasses:s,headingIconSize:r,headingIconStyle:i}=e;return a&&t&&(o.push("ddc-icon"),n||o.push(`ddc-icon-${i}`),r&&o.push(`ddc-icon-size-${r}`),s&&o.push(s)),o},q=(e,t,n)=>{const o=[],{headingSize:a,headingStyles:s,headingClasses:r}=e;return o.push("widget-heading"),"MOBILE"===t&&o.push("ddc-heading"),r&&o.push(r),a&&o.push(a),s&&o.push(`ddc-heading-${s}`),n&&o.push("collapse-heading"),o},G=({outputWrapperDiv:e,store:t,widgetId:n,widgetName:s})=>{const r=t.getState(),i=r.prefs||{},c=i.widgetHeading&&"true"===i.toggleCollapse||!1,d=!!i.headingIconStyle||c;const p=o().createElement(a.Provider,{store:t},o().createElement(l,{HeadingTag:i.headingTag,headingText:i.widgetHeading,widgetId:n,toggleCollapse:c,showIcon:d,headingClasses:q(i,r.requestData.deviceType,c),iconClasses:K(i,d,c)}),o().createElement(u,{id:n,toggleCollapse:c},o().createElement(B,null)));if(e){if(!s)throw new Error("widgetName is required if outputWrapperDiv is true.");return o().createElement("div",{id:`${n}-app-root`,className:j(i.widgetClasses,s,c).join(" "),"data-widget-name":s,"data-widget-id":n},p)}return p};var z=n(198);const V=[],Y={requestData:function(e={},t=null){return!t.error&&t.payload&&"WS_SCRIPTS_SET_REQUEST_DATA"===t.type?t.payload:e},prefs:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_SET_PREFS"!==t.type?e:t.payload},labels:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_ADD_LABELS"!==t.type?e:{...e,...t.payload}},sitemap:function(e={}
1,t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_ADD_SITEMAP"!==t.type?e:{...e,...t.payload}},flags:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_SET_FEATURE_FLAGS"!==t.type?e:t.payload}};function J(e){const[t,o]=(()=>{let e={},t={};const o=[];try{e=Object(function(){var e=new Error("Cannot find module '../reducers'");throw e.code="MODULE_NOT_FOUND",e}()),o.push("../reducers")}catch(e){}try{t=n(846).A,o.push("../features")}catch(e){}return[{...e,...t},o]})();return(0,z.configureStore)({reducer:{...t,...Y},middleware:e=>e().concat(V),preloadedState:e})}const Q={};(()=>{const t=(n="ws-locations-control",window.DDC&&window.DDC.WS&&window.DDC.WS.state&&window.DDC.WS.state[n]?window.DDC.WS.state[n]:{});var n;Object.keys(t).forEach(n=>{const o=J(((e,t)=>{let n=e[t];return"string"==typeof n&&(n=JSON.parse(n)),n})(t,n));Q[n]=o,(0,e.hydrate)(React.createElement(G,{outputWrapperDiv:!1,store:o,widgetId:n}),document.getElementById(`${n}-app-root`)),delete t[n]})})()})()})(); 2//# sourceMappingURL=bundle.92c7fb4026372a1ee25b45bdd08952b1.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.