PageSourceSearch

https://publixcharities.org/_next/static/chunks/5306.2cd30a540b33b610.js

js publixcharities.org collected 2026-10-02 04:57:23 UTC 34,153 bytes, 12 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5306],{5306:(e,r,i)=>{i.r(r),i.d(r,{StoreLocations:()=>ef,default:()=>ex});var t,s=i(6811),o=i(639),n=i(5834),a=i(8208),l=i.n(a);i(807);var c=i(5608),d=i(7432),p=i(7573);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(null,arguments)}let g=e=>n.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),t||(t=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.697 15.95c1.046 0 1.867.672 2.166 1.568v-.075h2.39c.448 0 .747.299.747.747s-.299.747-.747.747h-2.39a2.18 2.18 0 0 1-2.091 1.494 2.265 2.265 0 0 1-2.166-1.568l.075.149-9.934-.075c-.448 0-.747-.299-.747-.747s.299-.747.747-.747h9.859a2.18 2.18 0 0 1 2.091-1.494zm0 1.344a.91.91 0 0 0-.896.896c0 .448.448.896.896.896s.896-.448.896-.896a.91.91 0 0 0-.896-.896M8.228 9.975c1.046 0 1.867.672 2.166 1.569v-.075h9.859c.448 0 .747.299.747.747s-.299.747-.747.747h-9.859c-.299.896-1.12 1.494-2.091 1.494s-1.793-.598-2.091-1.494H3.747c-.448 0-.747-.299-.747-.747s.299-.747.747-.747h2.315c.373-.822 1.195-1.494 2.166-1.494m0 1.344a.91.91 0 0 0-.896.896c0 .448.448.896.896.896s.896-.448.896-.896a.91.91 0 0 0-.896-.896M15.697 4c1.046 0 1.867.672 2.166 1.568v-.075h2.39c.448 0 .747.299.747.747s-.299.747-.747.747h-2.39a2.18 2.18 0 0 1-2.091 1.494 2.265 2.265 0 0 1-2.166-1.568v.075H3.747c-.448 0-.747-.299-.747-.747s.299-.747.747-.747h9.859A2.18 2.18 0 0 1 15.697 4m0 1.344a.91.91 0 0 0-.896.896c0 .448.448.896.896.896s.896-.448.896-.896a.91.91 0 0 0-.896-.896"})));i.p;var _=i(8298),h=i(4560);let b=(0,o.AH)("	padding:",c.w.space.s," ",c.w.space.s," ",c.w.space.xs," ",c.w.space.s,";background:",c.w.color.white,";z-index:10;border-bottom:1px solid ",c.w.color["grey-500"],";[class*='--SearchIcon'],[class*='--ActionIcon']{display:none;}[class*='--SearchBox']{box-shadow:none;}@media ",c.w.bp.bpLg,"{padding:",c.w.space.l," ",c.w.space.l," ",c.w.space.xs," 0;margin-left:calc(var(--grid-gap) / 2);position:sticky;top:0;}"),m=(0,o.AH)("	",c.w.font.ms,"	color:var(--color-1);margin:0;"),w=(0,o.AH)("	display:flex;align-items:center;justify-content:space-between;margin-top:",c.w.space.xs,";min-height:34px;"),f=(0,o.AH)("	position:relative;margin-top:",c.w.space.xs,";"),x=(0,o.AH)("	input{",c.w.font.xs,"		font-weight:400;width:100%;padding:28px 104px 28px 8px;background:",c.w.color.white,";border:1px solid ",c.w.color["grey-900"],";border-radius:",c.w.space.micro,";box-shadow:none;color:",c.w.color["grey-900"],";box-shadow:none;line-height:38px;&:disabled{background:",c.w.color["grey-300"],";}&:focus{border:1px solid;outline:2px solid ",c.w.color["focus-blue-700"],";}@media ",c.w.bp.bpMed,"{padding:28px 112px 28px 16px;}}"),y=(0,o.AH)("	position:absolute;top:",c.w.space.xxs,";right:64px;@media ",c.w.bp.bpMed,"{right:72px;}"),v=(0,o.AH)("	border:0;margin:0;background:none;padding:",c.w.space.xxs,";cursor:pointer;color:",c.w.color["grey-900"],";"),R=(0,o.AH)("	position:absolute;top:50%;transform:translateY(-50%);right:",c.w.space.xxs,";@media ",c.w.bp.bpMed,"{right:",c.w.space.xs,";}"),q=(0,o.AH)("	",c.w.font.xxs,"	font-weight:400;color:",c.w.color["grey-900"],";"),k=(0,o.AH)("	",c.w.font.xxs,"	font-weight:400;background:none;border:none;display:flex;align-items:center;padding:0;text-decoration-line:underline;color:",c.w.color["grey-900"],";cursor:pointer;"),A=(0,o.AH)("	margin-right:",c.w.space.xxs,";"),L=(0,o.AH)("	margin-left:",c.w.space.xxs,";"),C=(0,o.AH)("	position:fixed;top:0;right:0;bottom:0;left:0;background:",c.w.color.white,";padding:",c.w.space.xs,";z-index:100;@media ",c.w.bp.bpMed,"{position:relative;padding:0;}"),H=(0,o.AH)("	display:flex;align-items:flex-end;justify-content:flex-end;@media ",c.w.bp.bpMed,"{display:none;}"),Y=(0,o.AH)("	border:0;padding:0;background:none;cursor:pointer;"),S=(0,o.AH)("	display:flex;justify-content:space-between;align-items:center;margin-top:",c.w.space.s,";@media ",c.w.bp.bpMed,"{display:none;}"),F=(0,o.AH)("	",c.w.font.ms,"	color:",c.w.color["color-1"],";margin:0;"),E=(0,o.AH)("	width:100%;margin-top:",c.w.space.xs,";@media ",c.w.bp.bpMed,"{display:none;}"),D=(0,o.AH)("	",c.w.font.xxs,"	font-weight:400;cursor:pointer;display:flex;align-items:center;border:0;padding:0;background:none;text-decoration-line:underline;color:",c.w.color["grey-900"],";"),T=(0,o.AH)("	display:none;@media ",c.w.bp.bpMed,"{display:flex;}"),O=(0,o.AH)("	margin-left:",c.w.space.micro,";margin-right:",c.w.space.micro,";"),M=(0,o.AH)("	margin-top:",c.w.space.s,";display:flex;gap:",c.w.space.xxs,";flex-wrap:wrap;"),N=({filters:e,locations:r,accessToken:i,title:t,onSubmit:a,value:l,setValue:u,coordinates:N,setCoordinates:z,setLocations:B,showFilters:j,toggleFilters:$,input_placeholder:P,current_location_button_label:Z,current_location_input_value:U,show_filters:I,filters_open_button_label:K,filters_close_button_label:W,filters_title:G,filters_clear_button_label:J,filters_apply_button_label:V,locations_length_label:Q,reset_search_label:X,submit_search_label:ee,show_filters_label:er,hide_filters_label:ei,enable_filter_button_label:et,disable_filter_button_label:es})=>{let eo="search",en=(0,n.useRef)(null),ea=(0,n.useRef)(),[el,ec]=(0,n.use
1State)(e),ed=el.filter(e=>!0===e.active),ep=()=>{let e=[...el];e.forEach((r,i)=>{e[i].active=!1}),ec(e)};return(0,n.useEffect)(()=>{en.current&&(en.current.options={language:"en",country:"US"},en.current.theme={variables:{fontFamily:'"Mr George", Arial, Helvetica, sans-serif'}},en.current.input.placeholder=P,en.current.input.id=eo,en.current.input.value=l,en.current.input.disabled=l===U,en.current.input.ariaRequired=!0,en.current.input.autocomplete="off",en.current.input.ariaExpanded=!1,ea.current||(ea.current=!0,en.current.addEventListener("input",e=>{e.target===e.currentTarget&&(u(e.detail),z([]))}),en.current.addEventListener("retrieve",async e=>{u(e.detail.features[0].properties.name),z(e.detail.features[0].geometry.coordinates),await a(e.detail.features[0].geometry.coordinates,el,e.detail.features[0].properties.name)})))},[el,U,P,a,en,z,u,l]),(0,s.FD)("div",{css:b,children:[""!==t&&(0,s.Y)("h2",{css:m,children:t}),(0,s.FD)("div",{css:f,children:[(0,s.Y)("label",{htmlFor:eo,css:x,children:(0,s.Y)("mapbox-search-box",{ref:en,"access-token":i})}),l.length>0&&(0,s.Y)("div",{css:y,children:(0,s.Y)("button",{type:"button",onClick:()=>{u(""),z([]),B(void 0)},css:v,"aria-label":X,children:(0,s.Y)(_.h,{})})}),(0,s.Y)("div",{css:R,children:(0,s.Y)(d.$,{className:"is-style-primary",isButton:!0,onClick:()=>a(N,el,l),disabled:2!==N.length,iconSlug:"search",children:(0,s.Y)(h.s,{children:ee})})})]}),(0,s.FD)("div",{css:w,children:[r&&l?(0,s.Y)("div",{css:q,children:Q.replace("{length}",String(r.length))}):(0,s.FD)("button",{type:"button",css:k,onClick:()=>{navigator.geolocation.getCurrentPosition(async e=>{let r=[e.coords.longitude,e.coords.latitude];u(U),z(r),await a(r,el,U)})},children:[(0,s.Y)(p.h,{css:A}),Z]}),I&&(0,s.FD)("button",{type:"button",css:(({showFilters:e})=>(0,o.AH)("	",c.w.font.xxs,"	font-weight:400;background:none;display:flex;align-items:center;padding:",c.w.space.micro," ",c.w.space.xxs,";color:",c.w.color["color-2"],";border:1px solid ",e?c.w.color["color-2"]:c.w.color.white,";cursor:pointer;border-radius:4px;"))({showFilters:j}),onClick:$,"aria-label":j?ei:er,children:[j?W.replace("{count}",ed.length>0?`(${ed.length})`:""):K.replace("{count}",ed.length>0?`(${ed.length})`:""),(0,s.Y)(g,{css:L})]})]}),I&&j&&(0,s.FD)("div",{css:C,children:[(0,s.Y)("div",{css:H,children:(0,s.Y)("button",{type:"button",onClick:$,css:Y,"aria-label":ei,children:(0,s.Y)(_.h,{})})}),(0,s.FD)("div",{css:S,children:[(0,s.Y)("h3",{css:F,children:G}),ed.length>0&&(0,s.FD)("button",{type:"button",onClick:ep,css:D,children:[J,(0,s.Y)(_.h,{css:O,viewBox:"0 0 24 24",width:"16",height:"16"})]})]}),(0,s.FD)("div",{css:M,children:[el.map(({name:e,slug:r,active:i})=>(0,s.Y)("button",{type:"button",onClick:()=>(e=>{let r=[...el];r.forEach((i,t)=>{i.slug===e&&(r[t].active=!r[t]?.active)}),ec(r)})(r),css:(({active:e})=>(0,o.AH)("	",c.w.font.xxxs,"	font-weight:400;border-radius:100px;padding:",c.w.space.xxs," 20px 10px;border:",e?`1px solid ${c.w.color["grey-300"]}`:`1px solid ${c.w.color["grey-500"]}`,";background:",e?c.w.color["grey-300"]:c.w.color.white,";cursor:pointer;color:",c.w.color["color-2"],";",!e&&`
2		:hover {
3			text-decoration: underline;
4		}
5
6		:focus {
7			outline: 1px solid ${c.w.color["grey-500"]};
8		}
9	`))({active:!!i}),"aria-label":i?es.replace("{name}",e):et.replace("{name}",e),children:e},r)),ed.length>0&&(0,s.FD)("button",{type:"button",onClick:ep,css:[D,T],children:[J,(0,s.Y)(_.h,{css:O,viewBox:"0 0 24 24",width:"16",height:"16"})]})]}),(0,s.Y)(d.$,{className:"is-style-primary",label:V,isButton:!0,css:E,onClick:()=>{a(N,el,l),$()},children:(0,s.Y)(h.s,{children:ee})})]})]})};N.propTypes={filters:l().arrayOf(l().exact({name:l().string.isRequired,slug:l().string.isRequired,active:l().bool})).isRequired,locations:l().arrayOf(l().exact({address:l().string.isRequired,distance:l().string.isRequired,grand_opening_date:l().string.isRequired,id:l().number.isRequired,latitude:l().number.isRequired,longitude:l().number.isRequired,opening_times:l().arrayOf(l().object).isRequired,opening_times_toggle:l().string.isRequired,phone_numbers:l().arrayOf(l().string).isRequired,primary_cta_label:l().string.isRequired,primary_cta_link:l().string.isRequired,secondary_cta_label:l().string.isRequired,secondary_cta_link:l().string.isRequired,store_services:l().arrayOf(l().exact({id:l().number.isRequired,name:l().string.isRequired,slug:l().string.isRequired})).isRequired,store_services_toggle:l().string.isRequired,title:l().string.isRequired})),accessToken:l().string.isRequired,title:l().string.isRequired,input_placeholder:l().string.isRequired,current_location_button_label:l().string.isRequired,current_location_input_value:l().string.isRequired,show_filters:l().bool.isRequired,filters_open_button_label:l().string.isRequired,filters_close_button_label:l().string.isRequired,filters_title:l().string.isRequired,filters_clear_button_label:l().string.isRequired,filters_apply_button_label:l().string.isRequired,submit_search_label:l().string.isRequired,show_filters_label:l().string.isRequired,hide_filters_label:l().string.isRequired,locations_length_label:l().string.isRequired,onSubmit:l().func.isRequired,value:l().string.isRequired,setValue:l().func.isRequired,coordinates:l().arrayOf(l().number).isRequired,setCoordinates:l().func.isRequired,setLocations:l().func.isRequired};var z=i(4474),B=i(7039),j=i(7782);let $=({active:e})=>{let r=(0,o.AH)("		fill:currentcolor;"),i=(0,o.AH)("		transform:rotate(",180*!!e,"deg);transform-origin:center center;transition:transform ease 0.3s;");return(0,s.Y)("svg",{width:"32",height:"33",viewBox:"0 0 32 33",xmlns:"http://www.w3.org/2000/svg",css:r,"aria-hidden":"true",children:(0,s.Y)("path",{css:i,fillRule:"evenodd",clipRule:"evenodd",d:"M23.7071 13.2101C23.3166 12.8196 22.6834 12.8196 22.2929 13.2101L15.6951 19.8079L9.09733 13.2101C8.70681 12.8196 8.07364 12.8196 7.68312 13.2101C7.29259 13.6007 7.29259 14.2338 7.68312 14.6243L14.988 21.9292C15.3785 22.3198 16.0117 22.3198 16.4022 21.9292L23.7071 14.6243C24.0976 14.2338 24.0976 13.6007 23.7071 13.2101Z"})})};$.propTypes={active:l().bool};let P=(0,o.AH)("	position:relative;"),Z=(0,o.AH)("	position:absolute;width:100%;height:",c.w.space[24],";left:0;top:0;background:linear-gradient(180deg,",c.w.color.white," 0%,rgba(255,255,255,0) 100%);border-radius:",c.w.space[4]," ",c.w.space[4]," 0px 0px;z-index:10;"),U=(0,o.AH)("	align-items:center;display:flex;font-size:12px;gap:var(--spacer-xxs);line-height:",c.w.space[16],";margin-bottom:",c.w.space[8],";@media ",c.w.bp.bpLg,"{margin-bottom:",c.w.space[16],";}"),I=(0,o.AH)("	background-color:",c.w.color["color-3"],";border-radius:3px;color:var(--color-1);padding:var(--spacer-micro) var(--spacer-xxs);"),K=(0,o.AH)("	",c.w.font.s,";color:var(--color-1);font-weight:900;"),W=(0,o.AH)("	font-style:normal;@media ",c.w.bp.bpLg,"{margin-bottom:",c.w.space[4],";}"),G=(0,o.AH)("	color:",c.w.color["color-2"],";display:flex;gap:var(--spacer-xs);margin-bottom:",c.w.space[8],";a{font-weight:400;}a:focus{outline:1px dashed;}@media ",c.w.bp.bpLg,"{margin-bottom:",c.w.space[16],";}"),J=(0,o.AH)("	display:flex;flex-direction:column;gap:",c.w.space[8],";margin-bottom:",c.w.space[8],";"),V=(0,o.AH)("	",c.w.font.xxs,"	align-items:center;background:transparent;border:none;color:",c.w.color["color-1"],";cursor:pointer;display:flex;font-weight:900;padding:0;line-height:14px;svg{margin-left:",c.w.space[4],";width:",c.w.space[24],";height:",c.w.space[24],";}&[aria-expanded='true'] svg{transform:rotate(180deg);}&:focus{outline:1px dashed;}"),Q=(0,o.AH)("	margin-top:",c.w.space[4],";margin-bottom:",c.w.space[8],";display:flex;flex-direction:column;gap:",c.w.space[4],";"),X=(0,o.AH)("	display:flex;flex-wrap:wrap;gap:",c.w.space[8],";margin-bottom:",c.w.space[8],";margin-top:",c.w.space[8],";"),ee=({id:e,address:r,className:i,distance:t,grand_opening_date:a,latitude:l,longitude:d,opening_times:p,opening_times_toggle:u,ph
9one_numbers:g,primary_cta_label:_,primary_cta_link:h,secondary_cta_label:b,secondary_cta_link:m,store_services_toggle:w,store_services:f,title:x,grand_opening_label:y,map:v,selected:R,setSelected:q,isPopUp:k=!1,show_grand_opening:A,show_title:L,show_distance:C,show_address:H,show_phone_numbers:Y,show_opening_hours:S,show_services:F,show_primary_cta:E,show_secondary_cta:D,expand_hours:T,expand_services:O})=>{let[M,N]=(0,n.useState)(T),[ee,er]=(0,n.useState)(O),ei=(0,z.yr)(),et=()=>{if(!v)return;v.current.flyTo({center:[d,l],zoom:15});let r=document.getElementsByClassName("mapboxgl-popup");r[0]&&r[0].remove(),ei("locator.detail_modal_select",{store:e}),q(e)};return(0,s.FD)("div",{css:P,children:[k&&(0,s.Y)("div",{css:Z}),(0,s.FD)("div",{"data-id":e,css:(({selected:e,isPopUp:r})=>(0,o.AH)("	",c.w.font.xxs,";width:100%;color:",c.w.color["grey-900"],";background:",c.w.color.white,";cursor:pointer;border-radius:",c.w.space[4],";text-align:left;position:relative;border:0;padding:0;user-select:text;",r&&`
10		overflow-y: auto;
11		padding: ${c.w.space.s} ${c.w.space.xs} ${c.w.space.xs} ${c.w.space.xs};
12	`,"	@media ",c.w.bp.bpLg,"{border:2px solid ",e?c.w.color["color-2"]:c.w.color.white,";padding:",c.w.space.m," ",c.w.space.xs," ",c.w.space.m," 18px;&:focus{outline:1px solid ",c.w.color["color-2"],";}}"))({selected:R===e,isPopUp:k}),className:i,role:"link",tabIndex:0,onClick:et,onKeyUp:et,children:[A&&a.length>0?(0,s.FD)("div",{css:U,children:[(0,s.Y)("span",{css:I,children:y})," ",a]}):null,(L||C)&&(0,s.FD)("div",{css:(({hasGrandOpening:e,isPopUp:r})=>(0,o.AH)("	align-items:center;display:flex;font-size:12px;justify-content:space-between;line-height:",c.w.space[16],";margin-bottom:0;margin-top:",r&&!e?"var(--spacer-m)":0,";@media ",c.w.bp.bpLg,"{margin-bottom:",c.w.space[4],";}"))({hasGrandOpening:A&&a.length>0,isPopUp:k}),children:[L&&(0,s.Y)("span",{css:K,children:x}),C&&t]}),H&&r?(0,s.Y)("address",{css:W,children:r}):null,Y&&g&&g.length?(0,s.Y)("div",{css:G,children:g.map(e=>(0,s.Y)("a",{href:`tel:${e}`,children:e},e))}):null,(0,s.FD)("div",{css:J,children:[S&&p&&p.length?(0,s.FD)("div",{children:[(0,s.FD)("button",{"aria-expanded":M,css:V,onClick:()=>N(!M),type:"button",children:[u," ",(0,s.Y)($,{})]}),M?(0,s.Y)("div",{css:Q,children:p.map(e=>(0,s.FD)("span",{children:[e.day,": ",e.hours[0]," - ",e.hours[1]]},e.day))}):null]}):null,F&&f&&f.length?(0,s.FD)("div",{children:[(0,s.FD)("button",{"aria-expanded":ee,css:V,onClick:()=>er(!ee),type:"button",children:[w," ",(0,s.Y)($,{})]}),ee?(0,s.Y)("div",{css:X,children:f.map(({id:e,name:r})=>(0,s.Y)(j.a,{children:r},e))}):null]}):null]}),E&&_&&h||D&&b&&m?(0,s.Y)(B.A,{primary_cta_label:E&&_,primary_cta_link:E&&h,secondary_cta_label:D&&b,secondary_cta_link:D&&m,context:{component:"storelisting",store:e}}):null]})]})};ee.propTypes={address:l().string,className:l().string,distance:l().string,grand_opening_date:l().string,latitude:l().number,longitude:l().number,opening_times:l().arrayOf(l().object),opening_times_toggle:l().string,phone_numbers:l().array,primary_cta_link:l().string,primary_cta_label:l().string,secondary_cta_link:l().string,secondary_cta_label:l().string,store_services:l().arrayOf(l().exact({id:l().number.isRequired,name:l().string.isRequired,slug:l().string.isRequired})).isRequired,store_services_toggle:l().string,title:l().string.isRequired,grand_opening_label:l().string.isRequired,show_grand_opening:l().bool.isRequired,show_title:l().bool.isRequired,show_distance:l().bool.isRequired,show_address:l().bool.isRequired,show_phone_numbers:l().bool.isRequired,show_opening_hours:l().bool.isRequired,show_services:l().bool.isRequired,show_primary_cta:l().bool.isRequired,show_secondary_cta:l().bool.isRequired,expand_hours:l().bool.isRequired,expand_services:l().bool.isRequired};var er=i(4758),ei=i.n(er);i(8423);var et=i(1014),es=i(6154);let eo=({viewBox:e,width:r,height:i,paths:t,fill:s="none"})=>{let o=document.createElementNS("http://www.w3.org/2000/svg","svg");return o.setAttributeNS(null,"viewBox",e),o.setAttributeNS(null,"width",r),o.setAttributeNS(null,"height",i),o.setAttributeNS(null,"fill",s),t.forEach(e
12=>{let r=document.createElementNS("http://www.w3.org/2000/svg","path");Object.keys(e).forEach(function(i){let t=e[i];r.setAttributeNS(null,i,t)}),o.appendChild(r)}),o},en={viewBox:"0 0 24 24",width:"50",height:"50",paths:[{d:"M11.75 3C8 3 5 5.85 5 9.3 5 14.025 11.75 21 11.75 21s6.75-6.975 6.75-11.7c0-3.45-3-6.3-6.75-6.3zm0 8.55c-1.35 0-2.4-.975-2.4-2.25s1.05-2.25 2.4-2.25 2.4.975 2.4 2.25-1.05 2.25-2.4 2.25z",fill:"currentColor"}]},ea={viewBox:"0 0 40 56",width:"40",height:"56",fill:"none",paths:[{d:"M20 3C10.556 3 3 10.6 3 19.8 3 32.4 20 51 20 51s17-18.6 17-31.2C37 10.6 29.444 3 20 3Zm0 22.8c-3.4 0-6.044-2.6-6.044-6s2.644-6 6.044-6c3.4 0 6.044 2.6 6.044 6s-2.644 6-6.044 6Z",fill:"#2D810E"},{d:"m20 51-1.107 1.012L20 53.223l1.107-1.211L20 51Zm0 0c1.107 1.012 1.107 1.012 1.108 1.011l.004-.004.01-.011.04-.044.147-.164a103.707 103.707 0 0 0 2.506-2.939 113.204 113.204 0 0 0 5.924-7.878c2.153-3.155 4.33-6.74 5.97-10.361 1.634-3.602 2.791-7.353 2.791-10.81C38.5 9.763 30.264 1.5 20 1.5S1.5 9.763 1.5 19.8c0 3.457 1.157 7.208 2.79 10.81 1.642 3.622 3.818 7.206 5.971 10.36a113.204 113.204 0 0 0 7.878 10.192 67.269 67.269 0 0 0 .7.79l.039.044.01.011.003.003.001.001L20 51Z",stroke:"#52A000","stroke-width":"3"}]},el=({accessToken:e,coordinates:r,locations:i,grand_opening_label:t,mapContainer:a,map:l,popup:d,popupContent:p,setPopupContent:u,markersRef:g,selected:_,setSelected:h,list:b,showMap:m,show_grand_opening:w,show_title:f,show_distance:x,show_address:y,show_phone_numbers:v,show_opening_hours:R,show_services:q,show_primary_cta:k,show_secondary_cta:A,longitude:L,latitude:C,expand_hours:H,expand_services:Y})=>{ei().accessToken=e;
12let S=(0,es.y)(),[F,E]=(0,n.useState)(),[D,T]=(0,n.useState)(15),[O,M]=(0,n.useState)(!0);(0,n.useEffect)(()=>{if(l.current)return;let e=()=>{T(l.current.getZoom());let e=l?.current&&l.current.getBounds();E(e?[e._sw.lng,e._sw.lat,e._ne.lng,e._ne.lat]:null)};return l.current=new(ei()).Map({container:a.current,style:"mapbox://styles/mapbox/light-v11",center:[L,C],zoom:4}),l.current.on("zoomend",e),()=>{l.current.off("zoomend",e),l.current.remove()}},[C,L,l,a]);let N=(0,n.useMemo)(()=>i?.length?i.map(e=>({type:"Feature",properties:{cluster:!1,address:e.address,distance:e.distance,grandOpening:e.grand_opening_date,id:e.id,openingTimes:e.opening_times,openingTimesToggle:e.opening_times_toggle,phoneNumbers:e.phone_numbers,primaryCtaLabel:e.primary_cta_label,primaryCtaLink:e.primary_cta_link,secondaryCtaLabel:e.secondary_cta_label,secondaryCtaLink:e.secondary_cta_link,storeServices:e.store_services,storeServicesToggle:e.store_services_toggle,title:e.title},geometry:{type:"Point",coordinates:[parseFloat(e.longitude),parseFloat(e.latitude)]}})):[],[i]);(0,n.useEffect)(()=>{M(!0)},[N]);let{clusters:z,supercluster:B}=(0,et.A)({points:N,bounds:F,zoom:D,options:{radius:75,maxZoom:14}}),j=z?.length?z:N,$=(0,n.useRef)(),P=(0,n.useRef)();return P.current=[0,-8],(0,n.useEffect)(()=>{l.current&&m&&l.current.resize()},[l,m]),(0,n.useEffect)(()=>{if(!l.current||JSON.stringify($.current)===JSON.stringify(j))return;let e=new(ei()).LngLatBounds,i=[];if(g?.current?.forEach(e=>e.remove()),2!==r.length||j&&0!==j.length||(l.current.setCenter(r),l.current.setZoom(D)),j&&j.length>0){let r=!1;j.forEach(o=>{let n=document.createElement("div");n.style.cursor="pointer";let[a,c]=o.geometry.coordinates,{cluster:p,point_count:g}=o.properties;if(p){P.current=[0,-12];let e=document.createElement("div");e.textContent=g,e.classList.add("cluster"),n.appendChild(e),n.addEventListener("click",()=>{S("locator.combined_pin_click",{store:B.getLeaves(o.id,g).map(e=>e.properties.id)}),l.current.easeTo({center:[a,c],zoom:B.getClusterExpansionZoom(o.id)})})}else{let e=o.properties.id===_,i=e?eo(ea):eo(en);n.appendChild(i),n.dataset.id=o.properties.id,r||(r=o,n.classList.add("marker--closest")),e||(n.classList.add("marker"),n.addEventListener("mouseover",()=>{n.classList.add("marker--active")}),n.addEventListener("mouseout",()=>{n.classList.remove("marker--active")})),n.addEventListener("click",()=>{S("locator.pin_click",{store:o.properties.id}),l.current.easeTo({center:[a,c],zoom:15,...window.innerWidth<993?{offset:[-(window.innerWidth/2-40),-175]}:{}});let e=document.getElementsByClassName("mapboxgl-popup");e[0]&&e[0].remove(),u((0,s.Y)(ee,{isPopUp:!0,grand_opening_label:t,show_grand_opening:w,show_title:f,show_distance:x,show_address:y,show_phone_numbers:v,show_opening_hours:R,show_services:q,show_primary_cta:k,show_secondary_cta:A,grand_opening_date:o.properties.grandOpening,opening_times:o.properties.openingTimes,opening_times_toggle:o.properties.openingTimesToggle,phone_numbers:o.properties.phoneNumbers,primary_cta_label:o.properties.primaryCtaLabel,primary_cta_link:o.properties.primaryCtaLink,secondary_cta_label:o.properties.secondaryCtaLabel,secondary_cta_link:o.properties.secondaryCtaLink,store_services_toggle:o.properties.storeServicesToggle,store_services:o.properties.storeServices,title:o.properties.title,distance:o.properties.distance,expand_hours:H,expand_services:Y},o.properties.id)),h(o.properties.id),new(ei()).Popup({closeOnClick:!1,anchor:"top",offset:[110,-24]}).setLngLat([a,c]).setDOMContent(d.current).addTo(l.current).on("close",()=>{u(null),h(null)});let r=b.current.querySelector(`[data-id="${o.properties.id}"]`);if(r){let e=b.current.getBoundingClientRect().top,i=r.getBoundingClientRect().top,t=b.current.scrollTop;b.current.scrollTo({top:i-e+t,behavior:"smooth"})}})}i.push(new(ei()).Marker(n,{offset:P.current,anchor:"bottom"}).setLngLat([a,c]).addTo(l.current)),e.extend([a,c])}),O&&(l.current.fitBounds(e,{padding:100,maxZoom:15}),M(!1))}g.current=i,$.current=j},[O,z,j,r,H,Y,t,S,b,l,g,N,d,_,u,h,y,x,w,R,v,k,A,q,f,B,D]),(0,s.FD)(s.FK,{children:[(0,s.Y)("div",{ref:d,children:p}),(0,s.Y)("div",{ref:a,css:(({showMap:e})=>(0,o.AH)("	display:",e?"block":"none",";height:100%;min-height:400px;width:100%;.mapboxgl-canvas-container{position:relative;}.mapboxgl-popup{display:block;}.mapboxgl-popup-content{width:344px;padding:0;border-radius:0;box-shadow:none;}.marker svg{color:var(--color-2);display:block;transition:transform 0.2s ease;transform:scale(1) translateY(0);}.marker--closest svg{color:var(--color-1);}.marker--active svg{transform:scale(1.2) translateY(-4px);}.cluster{background-color:var(--color-2);border-radius:50%;box-shadow:0 0 0 3px var(--green-300) inset;color:var(--white);display:flex;align-items:center;font-size:1rem;font-weight:900;height:46px;justify-content:center;width:46px;}@media ",c.w.bp.bpLg,'{margin-right:calc(var(--grid-gap) / 2);max-height:700px;.mapboxgl-popup{display:none;}}.mapboxgl-popup-close-button{visibility:hidden;}.mapboxgl-popup-close-button::after{z-index:150;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" xmlns:v="https://vecta.io/nano"><path fill-rule="evenodd" d="M18.667 17.185c.445.444.445 1.037 0 1.481s-1.037.445-1.482 0L12 13.482l-5.185 5.185c-.444.445-1.037.445-1.481 0s-.444-1.037 0-1.481L10.519 12 5.333 6.815c-.444-.444-.444-1.037 0-1.481s1.037-.444 1.481 0L12 10.519l5.185-5.185c.444-.444 1.037-.444 1.481 0s.445 1.037 0 1.481L13.482 12l5.185 5.185z" fill="currentColor"/></svg>\');visibility:visible;display:block;position:absolute;top:10px;right:15px;color:',c.w.color["grey-900"],";}"))({showMap:m}),className:"mapboxgl-map"})]})};el.propTypes={accessToken:l().string.isRequired,coordinates:l().arrayOf(l().number).isRequired,locations:l().arrayOf(l().exact({address:l().string.isRequired,distance:l().string.isRequired,grand_opening_date:l().string.isRequired,id:l().number.isRequired,latitude:l().number.isRequired,longitude:l().number.isRequired,opening_times:l().arrayOf(l().object).isRequired,opening_times_toggle:l().string.isRequired,phone_numbers:l().arrayOf(l().string).isRequired,primary_cta_label:l().string.isRequired,primary_cta_link:l().string.isRequired,secondary_cta_label:l().string.isRequired,secondary_cta_link:l().string.isRequired,store_services:l().arrayOf(l().exact({id:l().number.isRequired,name:l().string.isRequired,slug:l().string.isRequired})).isRequired,store_services_toggle:l().string.isRequired,title:l().string.isRequired})),showMap:l().bool.isRequired,grand_opening_label:l().string.isRequired,show_grand_opening:l().bool.isRequired,show_title:l().bool.isRequired,show_distance:l().bool.isRequired,show_address:l().bool.isRequired,show_phone_numbers:l().bool.isRequired,show_opening_hours:l().bool.isRequired,show_services:l().bool.isRequired,show_primary_cta:l().bool.isRequired,show_secondary_cta:l().bool.isRequired,longitude:l().string.isRequired,latitude:l().string.isRequired};let ec=(0,o.AH)("	@media ",c.w.bp.bpLg,"{display:flex;flex-direction:column;height:100%;overflow:hidden;width:564px;}"),ed=(0,o.AH)("	@media ",c.w.bp.bpLg,"{flex:auto;}"),ep=(0,o.AH)("	border-bottom:1px solid ",c.w.color["grey-500"],";padding:",c.w.space.l,";margin-left:18px;"),eu=(0,o.AH)("	",c.w.font.s,"	text-align:center;color:",c.w.color["color-1"],";margin:0 auto;"),eg=(0,o.AH)("	",c.w.font.xs,"	text-align:center;color:",c.w.color["grey-900"],";margin:",c.w.space.xs," 0 0 0;"),e_=(0,o.AH)("	margin:0 ",c.w.space.s," 0 ",c.w.space.xs,";padding-top:",c.w.space.s,";@media ",c.w.bp.bpLg,"{margin:0 32px 0 0;padding:0;}"),eh=(0,o.AH)("	background:",c.w.color["grey-500"],";border:0;height:1px;margin:",c.w.space.xxs," 0 0 0;@media ",c.w.bp.bpLg,"{margin:0 ",c.w.space.xs," 0 19px;}"),eb=(0,o.AH)("	display:flex;gap:",c.w.space.xs,";padding:",c.w.space.xs,";@media ",c.w.bp.bpLg,"{display:none;}"),em=({active:e})=>(0,o.AH)("	background:",c.w.color.white,";padding:0;border:0;border-bottom:1px solid ",e?c.w.color["color-2"]:c.w.color["grey-900"],";",c.w.font.xs,"	font-weight:900;color:",e?c.w.color["color-2"]:c.w.color["grey-900"],";"),ew=(0,o.AH)("	margin:0;padding:1px 0 0 0;list-style:none;@media ",c.w.bp.bpLg,"{padding:9px 0 0 0;}"),ef=({filters:e,apiEndpoint:r,mapBoxAccessToken:i,title:t,placeholder_heading:a,no_locations_foun
12d_heading:l,no_locations_found_text:d,input_placeholder:p,current_location_button_label:u,current_location_input_value:g,show_filters:_,filters_open_button_label:h,filters_close_button_label:b,filters_title:m,filters_clear_button_label:w,filters_apply_button_label:f,locations_length_label:x,grand_opening_label:y,reset_search_label:v,submit_search_label:R,show_filters_label:q,hide_filters_label:k,enable_filter_button_label:A,disable_filter_button_label:L,show_grand_opening:C,show_title:H,show_distance:Y,show_address:S,show_phone_numbers:F,show_opening_hours:E,show_services:D,show_primary_cta:T,show_secondary_cta:O,longitude:M,latitude:B,import_group:j,expand_hours:$,expand_services:P})=>{let[Z,U]=(0,n.useState)(),[I,K]=(0,n.useState)(""),[W,G]=(0,n.useState)([]),J=(0,n.useRef)(null),V=(0,n.useRef)(null),Q=(0,n.useRef)(),[X,er]=(0,n.useState)(!1),[ei,et]=(0,n.useState)(),es=e=>{et(e),er(!1)},[eo,en]=(0,n.useState)(),ea=(0,n.useRef)(),ef=(0,n.useRef)(null),[ex,ey]=(0,n.useState)(!0),[ev,eR]=(0,n.useState)(!0),{width:eq}=(0,z.lW)(),ek=(0,z.yr)();(0,n.useEffect)(()=>{let e=eq<c.w.bp.large;ey(!0),eR(!e)},[eq]);let eA=async(e,i,t)=>{if(""===r)return;let s=eq<c.w.bp.large,o=new URL(r);o.searchParams.set("_embed","1"),o.searchParams.set("longitude",e[0]),o.searchParams.set("latitude",e[1]),o.searchParams.set("per_page",100),o.searchParams.set("store_import_group",j);let n=i.filter(({active:e})=>!0===e).map(({slug:e})=>e);n.length>0&&o.searchParams.set("store_service",n.join(","));try{let e=await fetch(o),r=await e.json();en(null),es(null),U(r.map(e=>({address:e.meta.address,distance:e.meta.distance,grand_opening_date:e.meta.grand_opening_date,id:e.id,latitude:e.meta.latitude,longitude:e.meta.longitude,opening_times:e.meta.opening_times,opening_times_toggle:e.meta.opening_times_toggle,phone_numbers:e.meta.phone_numbers,primary_cta_label:e.meta.primary_cta_label,primary_cta_link:e.meta.primary_cta_link,secondary_cta_label:e.meta.secondary_cta_label,secondary_cta_link:e.meta.secondary_cta_link,store_services:((function(e){let r={};return void 0===e?._embedded||void 0===e._embedded["wp:term"]||e._embedded["wp:term"].forEach(e=>{e.forEach(e=>{let i=e.taxonomy;void 0===r[i]&&(r[i]=[]),r[i].push(e)})}),r})(e).store_service||[]).map(({id:e,name:r,slug:i})=>({id:e,name:r,slug:i})),store_services_toggle:e.meta.store_services_toggle,title:e.title.rendered}))),ey(!0),eR(!s),er(!1),ek("locator.search_performed",{search_term:t,search_options:i.map(({name:e})=>e),number_results:r.length,store_results:r.map(e=>e.id)})}catch(e){console.error(e)}};return(0,s.FD)(s.FK,{children:[(0,s.FD)("div",{css:ec,children:[(0,s.Y)(N,{filters:e,locations:Z,accessToken:i,title:t,onSubmit:eA,value:I,setValue:K,coordinates:W,setCoordinates:G,setLocations:U,showFilters:X,toggleFilters:()=>er(!X),input_placeholder:p,current_location_button_label:u,current_location_input_value:g,show_filters:_,filters_open_button_label:h,filters_close_button_label:b,filters_title:m,filters_clear_button_label:w,filters_apply_button_label:f,locations_length_label:x,reset_search_label:v,submit_search_label:R,show_filters_label:q,hide_filters_label:k,enable_filter_button_label:A,disable_filter_button_label:L}),(0,s.FD)("div",{css:eb,children:[(0,s.Y)("button",{css:em({active:ex}),type:"button",onClick:()=>{ey(!0),eR(!1)},children:"List"}),(0,s.Y)("button",{css:em({active:ev}),type:"button",onClick:()=>{ey(!1),eR(!0)},children:"Map"})]}),(0,s.FD)("div",{css:(0,o.AH)("						display:",ex?"block":"none",";@media ",c.w.bp.bpLg,"{flex:auto;overflow-y:scroll;}"),ref:ef,children:[!Z&&(0,s.Y)("div",{css:ep,children:(0,s.Y)("h3",{css:eu,children:a})}),Z&&0===Z.length&&(0,s.FD)("div",{role:"region",css:ep,"aria-live":"polite",children:[(0,s.Y)("h3",{css:eu,children:l}),(0,s.Y)("p",{css:eg,children:d})]}),Z&&Z.length>0&&(0,s.Y)("ul",{css:ew,children:Z.map(e=>(0,s.FD)("li",{css:e_,children:[(0,s.Y)(ee,{grand_opening_label:y,map:V,selected:ei,setSelected:es,show_grand_opening:C,show_title:H,show_distance:Y,show_address:S,show_phone_numbers:F,show_opening_hours:E,show_services:D,show_primary_cta:T,show_secondary_cta:O,expand_hours:$,expand_services:P,id:e.id,address:e.address,distance:e.distance,grand_opening_date:e.grand_opening_date,latitude:e.latitude,longitude:e.longitude,opening_times:e.opening_times,opening_times_toggle:e.opening_times_toggle,phone_numbers:e.phone_numbers,primary_cta_label:e.primary_cta_label,primary_cta_link:e.primary_cta_link,secondary_cta_label:e.secondary_cta_label,secondary_cta_link:e.secondary_cta_link,store_services_toggle:e.store_services_toggle,store_services:e.store_services,title:e.title}),(0,s.Y)("hr",{css:eh})]},e.id))})]})]}),(0,s.Y)("div",{css:(0,o.AH)("					display:",ev?"block":"none",";",ed,"				"),children:(0,s.Y)(el,{accessToken:i,coordinates:W,setCoordinates:G,locations:Z,grand_opening_label:y,mapContainer:J,map:V,popup:Q,popupContent:eo,setPopupContent:en,markersRef:ea,selected:ei,setSelected:es,showMap:ev,list:ef,show_grand_opening:C,show_title:H,show_distance:Y,show_address:S,show_phone_numbers:F,show_opening_hours:E,show_services:D,show_primary_cta:T,show_secondary_cta:O,longitude:M,latitude:B,expand_hours:$,expand_services:P})})]})};
12ef.propTypes={filters:l().arrayOf(l().exact({name:l().string.isRequired,slug:l().string.isRequired,active:l().bool})).isRequired,apiEndpoint:l().string.isRequired,mapBoxAccessToken:l().string.isRequired,title:l().string.isRequired,placeholder_heading:l().string.isRequired,no_locations_found_heading:l().string.isRequired,no_locations_found_text:l().string.isRequired,input_placeholder:l().string.isRequired,current_location_button_label:l().string.isRequired,current_location_input_value:l().string.isRequired,show_filters:l().bool.isRequired,filters_open_button_label:l().string.isRequired,filters_close_button_label:l().string.isRequired,filters_title:l().string.isRequired,filters_clear_button_label:l().string.isRequired,filters_apply_button_label:l().string.isRequired,locations_length_label:l().string.isRequired,grand_opening_label:l().string.isRequired,reset_search_label:l().string.isRequired,submit_search_label:l().string.isRequired,show_filters_label:l().string.isRequired,hide_filters_label:l().string.isRequired,enable_filter_button_label:l().string.isRequired,disable_filter_button_label:l().string.isRequired,show_grand_opening:l().bool.isRequired,show_title:l().bool.isRequired,show_distance:l().bool.isRequired,show_address:l().bool.isRequired,show_phone_numbers:l().bool.isRequired,show_opening_hours:l().bool.isRequired,show_services:l().bool.isRequired,show_primary_cta:l().bool.isRequired,show_secondary_cta:l().bool.isRequired,expand_hours:l().bool.isRequired,expand_services:l().bool.isRequired,longitude:l().string.isRequired,latitude:l().string.isRequired};let ex=ef}}]);

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.