PageSourceSearch

https://cake.jp/js/assets/Shop-BuuoDm8b.js

js cake.jp collected 2026-10-03 21:32:46 UTC 39,749 bytes, 1 lines download raw bytes

1import{j as r,r as i,g as Pe,R as b,a as Ee,c as Ae}from"./client-M7yXs6U8.js";import{n as R}from"./index-g4z370MD.js";import{u as ee}from"./useSmartPhone-BNMTIBas.js";import{u as Ie}from"./index-BCDxBHqt.js";import{s as ke}from"./Gtag-DOjOSDnp.js";const me=11,X=11,Oe=22,T={lat:35.690921,lng:139.70025799999996},he=e=>async()=>{e.currentLocation===T&&await e.initNearbySearch(),e.toggleMapVisible()},De=e=>{const t=he(e);return r.jsx("div",{className:"p-shops-side-map-trigger",children:r.jsx("button",{type:"button",className:"p-shops-side-map-trigger__bg","aria-label":"地図から探す",onClick:t,children:r.jsx("span",{className:"p-shops-side-map-trigger__button ds-button-tertiary ds-button-tertiary--s",children:"地図から探す"})})})},Te=({region:e})=>{var s;const n=((s=new URLSearchParams(window.location.search).get("area"))==null?void 0:s.trim())||"";return r.jsxs("section",{className:"p-shops-side__section",children:[r.jsx("h3",{className:"p-shops-side__heading",children:e.title}),r.jsx("ul",{className:"p-shops-side__list",children:e.pref.map(a=>{const o=n===a.name;return r.jsx("li",{children:r.jsx("a",{className:`p-shops-side__button ds-button-tertiary ds-button-tertiary--s ${o?"is-active":""}`,href:a.url,children:a.name})},a.name)})})]})},ze=e=>r.jsx("nav",{id:"search_box",className:"p-shops-side",children:e.regions.filter(t=>t.pref.length>0).map(t=>r.jsx(Te,{region:t}))}),Fe=i.createContext({data:void 0,setter:R}),Re=i.createContext({data:!1,setter:R}),Ue=i.createContext({data:"",setter:R}),Be=e=>{const t=e.categoryLinkListArr.filter(n=>n.linkData.length>0);return r.jsx(r.Fragment,{children:r.jsx("div",{className:"p-page-footer-link",children:r.jsx("div",{className:"p-page-footer-link__inner",children:t.map(n=>r.jsx(r.Fragment,{children:r.jsx("section",{className:"p-page-footer-link__section",children:r.jsxs("div",{className:"p-category-module",children:[r.jsx("div",{className:"p-category-module__header c-section-header",children:r.jsx("div",{className:"c-section-header__main",children:r.jsx("h2",{className:"cj-heading -lv3",children:n.title})})}),r.jsx("div",{className:"p-category-module__container",children:r.jsx("ul",{className:"p-category-module__categories",children:n.linkData.map(s=>r.jsx("li",{children:r.jsx("a",{className:"c-category-label",href:s.url,children:s.name})}))})})]})})}))})})})},He=e=>r.jsx("li",{children:r.jsx("a",{href:e.url,className:"arrow",children:r.jsx("i",{className:e.arrowClassName})})}),Ze=e=>r.jsx("li",{className:"arrow is-disabled",children:r.jsx("i",{className:e.arrowClassName})}),ce=e=>{const t=e.arrowDirection=="right"?"icon-arrow_right":"icon-arrow";return e.isActive?r.jsx(He,{url:e.url,arrowClassName:t}):r.jsx(Ze,{arrowClassName:t})},V=e=>{const t=e.baseUrl+"page:"+e.pageNumber.toString()+"/";return e.searchParams.toString()?`${t}?${e.searchParams.toString()}`:t},z=e=>{const t=new URLSearchParams;return e.options.area&&t.set("area",e.options.area),e.options.category&&t.set("category",e.options.category),e.options.lat&&t.set("lat",e.options.lat),e.options.lng&&t.set("lng",e.options.lng),e.options.zoomLevel&&t.set("zoomLevel",e.options.zoomLevel),e.options.howToReceive&&t.set("how_to_receive",e.options.howToReceive),t},$e=e=>r.jsx("li",{className:"current",children:e.num}),Ve=e=>r.jsx("li",{children:r.jsx("a",{href:e.url,className:"num",children:e.num})}),Ge=e=>{const n=(()=>{const s=e.paginator.pageCount,a=e.paginator.page,o=e.modulus+1;let l=Math.max(1,a-Math.floor(o/2)),c=l+o-1;return c>s&&(c=s,l=Math.max(1,c-o+1)),Array.from({length:c-l+1},(d,g)=>l+g)})();return r.jsx(r.Fragment,{children:n.map(s=>{const a=V({pageNumber:s,searchParams:e.parameters,baseUrl:e.baseUrl});return e.paginator.page==s?r.jsx($e,{num:s},s):r.jsx(Ve,{num:s,url:a},s)})})},Ke=e=>{if(e.paginator.pageCount==0)return r.jsx(r.Fragment,{});const t=z(e.paginator),n=V({baseUrl:e.baseUrl,pageNumber:e.paginator.page-1,searchParams:t}),s=V({baseUrl:e.baseUrl,pageNumber:e.paginator.page+1,searchParams:t});return r.jsx(r.Fragment,{children:r.jsx("div",{className:"c-pagenation",children:r.jsx("div",{className:"c-pagenation__inner",children:r.jsxs("ul",{className:"c-pagenation__list",children:[r.jsx(ce,{arrowDirection:"left",isActive:e.paginator.prevPage,url:n}),r.jsx(Ge,{paginator:e.paginator,parameters:t,modulus:e.modules,baseUrl:e.baseUrl}),r.jsx(ce,{arrowDirection:"right",isActive:e.paginator.nextPage,url:s})]})})})})},k=i.createContext({data:0,setter:R}),Q={ALL:0,STORE_PICKUP:2},te=e=>e?Q.STORE_PICKUP:Q.ALL,fe=e=>{var s;const t=new URLSearchParams(window.location.search);return{page:(()=>{const o=window.location.href.match(/page:(\d+)/);return o?parseInt(o[1]):1})(),prevPage:!1,nextPage:!1,pageCount:0,options:{area:t.get("area")??void 0,category:t.get("category")??void 0,howToReceive:(s=e==null?void 0:e.howToReceive)==null?void 0:s.toString()}}},pe=(e,t,n)=>({page:1,prevPage:!1,nextPage:!1,pageCount:0,options:{category:new URLSearchParams(window.location.search).get("category")??void 0,lat:e.lat.toString(),lng:e.lng.toString(),zoomLevel:t.toString(),howToReceive:n.toString()}}),ve=(e,t,n,s,a)=>{s();const o=pe(e,t,te(n)),l=z(o);a(l)},xe=(e,t,n)=>{t(),n(e)},G=i.createContext({data:0,setter:R}),Je=e=>{const{setter:t}=i.useContext(k),{setter:n}
1=i.useContext(G),s=()=>t(0);return r.jsx("li",{className:"arrow",children:r.jsx("button",{onClick:()=>xe(e.pageNumber,s,n),children:r.jsx("i",{className:e.arrowClassName})})})},qe=e=>r.jsx("li",{className:"arrow is-disabled",children:r.jsx("i",{className:e.arrowClassName})}),ue=e=>{const t=e.arrowDirection=="right"?"icon-arrow_right":"icon-arrow";return e.isActive?r.jsx(Je,{pageNumber:e.pageNumber,arrowClassName:t}):r.jsx(qe,{arrowClassName:t})},We=e=>r.jsx("li",{className:"current",children:e.num}),Ye=e=>{const{setter:t}=i.useContext(G),{setter:n}=i.useContext(k),s=()=>n(0);return r.jsx("li",{className:"num",children:r.jsx("button",{onClick:()=>xe(e.num,s,t),children:e.num})})},Xe=e=>{const n=(()=>{const s=e.paginator.pageCount,a=e.paginator.page,o=e.modulus+1;let l=Math.max(1,a-Math.floor(o/2)),c=l+o-1;return c>s&&(c=s,l=Math.max(1,c-o+1)),Array.from({length:c-l+1},(d,g)=>l+g)})();return r.jsx(r.Fragment,{children:n.map(s=>e.paginator.page==s?r.jsx(We,{num:s},s):r.jsx(Ye,{num:s},s))})},Qe=e=>{if(e.paginator.pageCount==0)return r.jsx(r.Fragment,{});const t=e.paginator.page-1,n=e.paginator.page+1;return r.jsx(r.Fragment,{children:r.jsx("div",{className:"c-pagenation",children:r.jsx("div",{className:"c-pagenation__inner",children:r.jsxs("ul",{className:"c-pagenation__list",children:[r.jsx(ue,{arrowDirection:"left",isActive:e.paginator.prevPage,pageNumber:t}),r.jsx(Xe,{paginator:e.paginator,modulus:e.modules}),r.jsx(ue,{arrowDirection:"right",isActive:e.paginator.nextPage,pageNumber:n})]})})})})},et=e=>{if(e.isMapVisible)return r.jsx(r.Fragment,{});const t=he({toggleMapVisible:e.toggleMapVisible,currentLocation:e.currentLocation,initNearbySearch:e.initNearbySearch});return r.jsx("div",{className:"p-shops__fab",children:r.jsx("button",{id:"shops-map-open",type:"button",className:"p-shops-fab",onClick:t,children:"マップを表示"})})};var tt=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var s,a,o;if(Array.isArray(t)){if(s=t.length,s!=n.length)return!1;for(a=s;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),s=o.length,s!==Object.keys(n).length)return!1;for(a=s;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=s;a--!==0;){var l=o[a];if(!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n};const nt=Pe(tt);function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},P.apply(null,arguments)}function D(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.includes(s))continue;n[s]=e[s]}return n}function rt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function st(e){var t=rt(e,"string");return typeof t=="symbol"?t:t+""}const E={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},at="https://maps.googleapis.com/maps/api/js";class F{static async load(t,n){var s;const a=t.libraries?t.libraries.split(","):[],o=this.serializeParams(t);this.listeners.push(n),(s=window.google)!=null&&(s=s.maps)!=null&&s.importLibrary?(this.serializedApiParams||(this.loadingStatus=E.LOADED),this.notifyLoadingStatusListeners()):(this.serializedApiParams=o,this.initImportLibrary(t)),this.serializedApiParams&&this.serializedApiParams!==o&&console.warn("[google-maps-api-loader] The maps API has already been loaded with different parameters and will not be loaded again. Refresh the page for new values to have effect.");const l=["maps",...a];await Promise.all(l.map(c=>google.maps.importLibrary(c)))}static serializeParams(t){return[t.v,t.key,t.language,t.region,t.authReferrerPolicy,t.solutionChannel].join("/")}static initImportLibrary(t){if(window.google||(window.google={}),window.google.maps||(window.google.maps={}),window.google.maps.importLibrary){console.error("[google-maps-api-loader-internal]: initImportLibrary must only be called once");return}let n=null;const s=()=>n||(n=new Promise((a,o)=>{var l;const c=document.createElement("script"),d=new URLSearchParams;for(const[g,m]of Object.entries(t)){const p=g.replace(/[A-Z]/g,v=>"_"+v[0].toLowerCase());d.set(p,String(m))}d.set("loading","async"),d.set("callback","__googleMapsCallback__"),c.async=!0,c.src=at+"?"+d.toString(),c.nonce=((l=document.querySelector("script[n
1once]"))==null?void 0:l.nonce)||"",c.onerror=()=>{this.loadingStatus=E.FAILED,this.notifyLoadingStatusListeners(),o(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=E.LOADED,this.notifyLoadingStatusListeners(),a()},window.gm_authFailure=()=>{this.loadingStatus=E.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=E.LOADING,this.notifyLoadingStatusListeners(),document.head.append(c)}),n);google.maps.importLibrary=a=>s().then(()=>google.maps.importLibrary(a))}static notifyLoadingStatusListeners(){for(const t of this.listeners)t(this.loadingStatus)}}F.loadingStatus=E.NOT_LOADED;F.serializedApiParams=void 0;F.listeners=[];const ot=["onLoad","onError","apiKey","version","libraries"],it=["children"],lt="GMP_visgl_rgmlibrary_v1_default",U=b.createContext(null);function ct(){const[e,t]=i.useState({});return{mapInstances:e,addMapInstance:(o,l="default")=>{t(c=>P({},c,{[l]:o}))},removeMapInstance:(o="default")=>{t(l=>D(l,[o].map(st)))},clearMapInstances:()=>{t({})}}}function ut(e){const{onLoad:t,onError:n,apiKey:s,version:a,libraries:o=[]}=e,l=D(e,ot),[c,d]=i.useState(F.loadingStatus),[g,m]=i.useReducer((u,f)=>u[f.name]?u:P({},u,{[f.name]:f.value}),{}),p=i.useMemo(()=>o==null?void 0:o.join(","),[o]),v=i.useMemo(()=>JSON.stringify(P({apiKey:s,version:a},l)),[s,a,l]),h=i.useCallback(async u=>{var f;if(g[u])return g[u];if(!((f=google)!=null&&(f=f.maps)!=null&&f.importLibrary))throw new Error("[api-provider-internal] importLibrary was called before google.maps.importLibrary was defined.");const _=await window.google.maps.importLibrary(u);return m({name:u,value:_}),_},[g]);return i.useEffect(()=>{(async()=>{try{const u=P({key:s},l);a&&(u.v=a),(p==null?void 0:p.length)>0&&(u.libraries=p),(u.channel===void 0||u.channel<0||u.channel>999)&&delete u.channel,u.solutionChannel===void 0?u.solutionChannel=lt:u.solutionChannel===""&&delete u.solutionChannel,await F.load(u,f=>d(f));for(const f of["core","maps",...o])await h(f);t&&t()}catch(u){n?n(u):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",u)}})()},[s,p,v]),{status:c,loadedLibraries:g,importLibrary:h}}const dt=e=>{const{children:t}=e,n=D(e,it),{mapInstances:s,addMapInstance:a,removeMapInstance:o,clearMapInstances:l}=ct(),{status:c,loadedLibraries:d,importLibrary:g}=ut(n),m=i.useMemo(()=>({mapInstances:s,addMapInstance:a,removeMapInstance:o,clearMapInstances:l,status:c,loadedLibraries:d,importLibrary:g}),[s,a,o,l,c,d,g]);return b.createElement(U.Provider,{value:m},t)};function gt(e,t){for(const n of pt){const s=t[n],a=_e[n];i.useEffect(()=>{if(!e||!s)return;const o=google.maps.event.addListener(e,a,l=>{s(mt(a,e,l))});return()=>o.remove()},[e,a,s])}}function mt(e,t,n){const s={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(ht.includes(e)){const o=s,l=t.getCenter(),c=t.getZoom(),d=t.getHeading()||0,g=t.getTilt()||0,m=t.getBounds();return(!l||!m||!Number.isFinite(c))&&console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),o.detail={center:(l==null?void 0:l.toJSON())||{lat:0,lng:0},zoom:c||0,heading:d,tilt:g,bounds:(m==null?void 0:m.toJSON())||{north:90,east:180,south:-90,west:-180}},o}else if(ft.includes(e)){var a;if(!n)throw new Error("[createEvent] mouse events must provide a srcEvent");const o=s;return o.domEvent=n.domEvent,o.stoppable=!0,o.stop=()=>n.stop(),o.detail={latLng:((a=n.latLng)==null?void 0:a.toJSON())||null,placeId:n.placeId},o}return s}const _e={onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onContextmenu:"contextmenu",onDblclick:"dblclick",onDrag:"drag",onDragend:"dragend",onDragstart:"dragstart",onHeadingChanged:"heading_changed",onIdle:"idle",onIsFractionalZoomEnabledChanged:"isfractionalzoomenabled_changed",onMapCapabilitiesChanged:"mapcapabilities_changed",onMapTypeIdChanged:"maptypeid_changed",onMousemove:"mousemove",onMouseout:"mouseout",onMouseover:"mouseover",onProjectionChanged:"projection_changed",onRenderingTypeChanged:"renderingtype_changed",onTilesLoaded:"tilesloaded",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed",onCameraChanged:"bounds_changed"},ht=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_
1changed"],ft=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],pt=Object.keys(_e);function vt(e,t){const n=i.useRef(void 0);(!n.current||!nt(t,n.current))&&(n.current=t),i.useEffect(e,n.current)}const xt=new Set(["backgroundColor","clickableIcons","controlSize","disableDefaultUI","disableDoubleClickZoom","draggable","draggableCursor","draggingCursor","fullscreenControl","fullscreenControlOptions","gestureHandling","headingInteractionEnabled","isFractionalZoomEnabled","keyboardShortcuts","mapTypeControl","mapTypeControlOptions","mapTypeId","maxZoom","minZoom","noClear","panControl","panControlOptions","restriction","rotateControl","rotateControlOptions","scaleControl","scaleControlOptions","scrollwheel","streetView","streetViewControl","streetViewControlOptions","styles","tiltInteractionEnabled","zoomControl","zoomControlOptions"]);function _t(e,t){const n={},s=Object.keys(t);for(const a of s)xt.has(a)&&(n[a]=t[a]);vt(()=>{e&&e.setOptions(n)},[n])}function be(){var e;return((e=i.useContext(U))==null?void 0:e.status)||E.NOT_LOADED}function bt(e,t){const{viewport:n,viewState:s}=t,a=!!n;return i.useLayoutEffect(()=>{if(!e||!s)return;const{latitude:o,longitude:l,bearing:c,pitch:d,zoom:g}=s;e.moveCamera({center:{lat:o,lng:l},heading:c,tilt:d,zoom:g+1})},[e,s]),a}function yt(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function ye(e){return yt(e)?e:e.toJSON()}function Ct(e,t,n){const s=n.center?ye(n.center):null;let a=null,o=null;s&&Number.isFinite(s.lat)&&Number.isFinite(s.lng)&&(a=s.lat,o=s.lng);const l=Number.isFinite(n.zoom)?n.zoom:null,c=Number.isFinite(n.heading)?n.heading:null,d=Number.isFinite(n.tilt)?n.tilt:null;i.useLayoutEffect(()=>{if(!e)return;const g={};let m=!1;a!==null&&o!==null&&(t.current.center.lat!==a||t.current.center.lng!==o)&&(g.center={lat:a,lng:o},m=!0),l!==null&&t.current.zoom!==l&&(g.zoom=l,m=!0),c!==null&&t.current.heading!==c&&(g.heading=c,m=!0),d!==null&&t.current.tilt!==d&&(g.tilt=d,m=!0),m&&e.moveCamera(g)})}const jt=()=>{const e={position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:999,display:"flex",flexFlow:"column nowrap",textAlign:"center",justifyContent:"center",fontSize:".8rem",color:"rgba(0,0,0,0.6)",background:"#dddddd",padding:"1rem 1.5rem"};return b.createElement("div",{style:e},b.createElement("h2",null,"Error: AuthFailure"),b.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",b.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function Lt(){const[e,t]=i.useState(null),n=i.useCallback(s=>t(s),[t]);return[e,n]}function Ce(){return be()===E.LOADED}function Nt(){const[,e]=i.useReducer(t=>t+1,0);return e}function St(e,t){const n=e.getCenter(),s=e.getZoom(),a=e.getHeading()||0,o=e.getTilt()||0,l=e.getBounds();(!n||!l||!Number.isFinite(s))&&console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),Object.assign(t.current,{center:(n==null?void 0:n.toJSON())||{lat:0,lng:0},zoom:s||0,heading:a,tilt:o})}function wt(e){const t=Nt(),n=i.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return i.useEffect(()=>{if(!e)return;const s=google.maps.event.addListener(e,"bounds_changed",()=>{St(e,n),t()});return()=>s.remove()},[e,t]),n}const Mt=["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"],Pt=["padding"];class ${static has(t){return this.entries[t]&&this.entries[t].length>0}static pop(t){return this.entries[t]&&this.entries[t].pop()||null}static push(t,n){this.entries[t]||(this.entries[t]=[]),this.entries[t].push(n)}}$.entries={};function Et(e,t){const n=Ce(),[s,a]=i.useState(null),[o,l]=Lt(),c=wt(s),{id:d,defaultBounds:g,defaultCenter:m,defaultZoom:p,defaultHeading:v,defaultTilt:h,reuseMaps:u,renderingType:f,colorScheme:_}=e,x=D(e,Mt),S=e.zoom!==void 0||e.defaultZoom!==void 0,j=e.center!==void 0||e.defaultCenter!==void 0;!g&&(!S||!j)&&console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"),!x.center&&m&&(x.center=m),!x.zoom&&Number.isFinite(p)&&(x.zoom=p),!x.heading&&Number.isFinite(v)&&(x.heading=v),!x.tilt&&Number.isFinite(h)&&(x.tilt=h);for(const y of Object.keys(x))x[y]===void 0&&delete x[y];const M=i.useRef(void 0);return i.useEffect(()=>{if(!o||!n)return;const{addMapInstance:y,removeMapInstance:L}=t,{mapId:N}=e,A=`${N||"default"}:${f||"default"}:${_||"LIGHT"}`;let w,C;if(u&&$.has(A)?(C=$.pop(A),w=C.getDiv(),o.appendChild(w),C.setOptions(x),setTimeout(()=>C.setCenter(C.getCenter()),0)):(w=document.createElement("div"),w.style.height="100%",o.appendChild(w),C=new google.maps.Map(w,P({},x,f?{renderingType:f}:{},_?{colorScheme:_}:{}))),a(C),y(C,d),g){const{padding:O}=g,I=D(g,Pt);C.fitBounds(I,O)}else(!S||!j)&&C.fitBounds({east:180,west:-180,south:-90,north:90});if(M.current){const{mapId:O,cameraState:I}=M.current;O!==N&&C.setOptions(I)}return()=>
1{M.current={mapId:N,cameraState:c.current},w.remove(),u?$.push(A,C):google.maps.event.clearInstanceListeners(C),a(null),L(d)}},[o,n,d,e.mapId,e.renderingType,e.colorScheme]),[s,l,c]}const je=b.createContext(null),Le=e=>{const{children:t,id:n,className:s,style:a}=e,o=i.useContext(U),l=be();if(!o)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[c,d,g]=Et(e,o);Ct(c,g,e),gt(c,e),_t(c,e);const m=bt(c,e),p=!!e.controlled;i.useEffect(()=>{if(c)return m&&c.setOptions({disableDefaultUI:!0}),(m||p)&&c.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{c.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}},[c,m,p,e.gestureHandling,e.keyboardShortcuts]);const v=e.center?ye(e.center):null;let h=null,u=null;v&&Number.isFinite(v.lat)&&Number.isFinite(v.lng)&&(h=v.lat,u=v.lng);const f=i.useMemo(()=>{var S,j,M,y,L;return{center:{lat:(S=h)!=null?S:0,lng:(j=u)!=null?j:0},zoom:(M=e.zoom)!=null?M:0,heading:(y=e.heading)!=null?y:0,tilt:(L=e.tilt)!=null?L:0}},[h,u,e.zoom,e.heading,e.tilt]);i.useLayoutEffect(()=>{if(!c||!p)return;c.moveCamera(f);const S=c.addListener("bounds_changed",()=>{c.moveCamera(f)});return()=>S.remove()},[c,p,f]);const _=i.useMemo(()=>P({width:"100%",height:"100%",position:"relative",zIndex:m?-1:0},a),[a,m]),x=i.useMemo(()=>({map:c}),[c]);return l===E.AUTH_FAILURE?b.createElement("div",{style:P({position:"relative"},s?{}:_),className:s},b.createElement(jt,null)):b.createElement("div",P({ref:d,"data-testid":"map",style:s?void 0:_,className:s},n?{id:n}:{}),c?b.createElement(je.Provider,{value:x},t):null)};Le.deckGLViewProps=!0;const de=new Set;function At(...e){const t=JSON.stringify(e);de.has(t)||(de.add(t),console.error(...e))}const Ne=(e=null)=>{const t=i.useContext(U),{map:n}=i.useContext(je)||{};if(t===null)return At("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."),null;const{mapInstances:s}=t;return e!==null?s[e]||null:n||s.default||null};function It(e){const t=Ce(),n=i.useContext(U);return i.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function H(e,t,n){i.useEffect(()=>{if(!e||!t||!n)return;const s=google.maps.event.addListener(e,t,n);return()=>s.remove()},[e,t,n])}function Z(e,t,n){i.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function ge(e,t,n){i.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}function kt(e){return e.nodeType===Node.ELEMENT_NODE}const Ot=b.createContext(null),Dt={BOTTOM:["50%","100%"]},Tt=({children:e,styles:t,className:n,anchorPoint:s})=>{const[a,o]=s??Dt.BOTTOM,l=`translate(50%, 100%) translate(-${a}, -${o})`;return b.createElement("div",{style:{transform:l}},b.createElement("div",{className:n,style:t},e))};function zt(e){const[t,n]=i.useState(null),[s,a]=i.useState(null),o=Ne(),l=It("marker"),{children:c,onClick:d,className:g,onMouseEnter:m,onMouseLeave:p,onDrag:v,onDragStart:h,onDragEnd:u,collisionBehavior:f,clickable:_,draggable:x,position:S,title:j,zIndex:M}=e,y=i.Children.count(c);return i.useEffect(()=>{if(!o||!l)return;const L=new l.AdvancedMarkerElement;L.map=o,n(L);let N=null;return y>0&&(N=document.createElement("div"),N.isCustomMarker=!0,L.content=N,a(N)),()=>{var A;L.map=null,(A=N)==null||A.remove(),n(null),a(null)}},[o,l,y]),i.useEffect(()=>{!t||!t.content||y>0||(t.content.className=g||"")},[t,g,y]),Z(t,"position",S),Z(t,"title",j??""),Z(t,"zIndex",M),Z(t,"collisionBehavior",f),i.useEffect(()=>{t&&(x!==void 0?t.gmpDraggable=x:v||h||u?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,x,v,u,h]),i.useEffect(()=>{if(!t)return;const L=_!==void 0||!!d||!!m||!!p;t.gmpClickable=L,L&&t!=null&&t.content&&kt(t.content)&&(t.content.style.pointerEvents="none",t.content.firstElementChild&&(t.content.firstElementChild.style.pointerEvents="all"))},[t,_,d,m,p]),H(t,"click",d),H(t,"drag",v),H(t,"dragstart",h),H(t,"dragend",u),ge(t==null?void 0:t.element,"mouseenter",m),ge(t==null?void 0:t.element,"mouseleave",p),[t,s]}const Ft=i.forwardRef((e,t)=>
1{const{children:n,style:s,className:a,anchorPoint:o}=e,[l,c]=zt(e),d=i.useMemo(()=>l?{marker:l}:null,[l]);return i.useImperativeHandle(t,()=>l,[l]),c?b.createElement(Ot.Provider,{value:d},Ee.createPortal(b.createElement(Tt,{anchorPoint:o,styles:s,className:a},n),c)):null}),Rt=["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"];function Ut(e){const[t,n]=i.useState(null),s=Ne(),{onClick:a,onDrag:o,onDragStart:l,onDragEnd:c,onMouseOver:d,onMouseOut:g}=e,m=D(e,Rt),{position:p,draggable:v}=m;return i.useEffect(()=>{if(!s){s===void 0&&console.error("<Marker> has to be inside a Map component.");return}const h=new google.maps.Marker(m);return h.setMap(s),n(h),()=>{h.setMap(null),n(null)}},[s]),i.useEffect(()=>{if(!t)return;const h=t,u=google.maps.event;return a&&u.addListener(h,"click",a),o&&u.addListener(h,"drag",o),l&&u.addListener(h,"dragstart",l),c&&u.addListener(h,"dragend",c),d&&u.addListener(h,"mouseover",d),g&&u.addListener(h,"mouseout",g),t.setDraggable(!!v),()=>{u.clearInstanceListeners(h)}},[t,v,a,o,l,c,d,g]),i.useEffect(()=>{t&&m&&t.setOptions(m)},[t,m]),i.useEffect(()=>{v||!p||!t||t.setPosition(p)},[v,p,t]),t}i.forwardRef((e,t)=>{const n=Ut(e);return i.useImperativeHandle(t,()=>n,[n]),b.createElement(b.Fragment,null)});const Bt="https://resized-assets.cake.jp/bp/img/parts/img_item_empty.png?h=120",Ht=e=>{if(e.shopModel.latLng.lat==null||e.shopModel.latLng.lng==null)return r.jsx(r.Fragment,{});const t=e.shopModel.latLng,{data:n,setter:s}=i.useContext(k),[a,o]=i.useState(!1),l=v=>{s(v)},c=()=>{o(!0)},d=()=>{o(!1)},g=e.shopModel.id===n,p=g||a?2:1;return r.jsx(Ft,{position:t,onClick:()=>l(e.shopModel.id),zIndex:p,children:r.jsx("div",{className:`p-shops-map__marker ${g?"is-active":""}`,"data-shop-id":e.shopModel.id,onMouseEnter:c,onMouseLeave:d,children:r.jsx("img",{src:e.shopModel.displayListImage||e.shopModel.displayShopImage||Bt,alt:e.shopModel.title,className:"p-shops-map__marker-image"})})})},Zt=()=>r.jsx("i",{className:"c-star is-active"}),$t=()=>r.jsx("i",{className:"c-star-half is-active"}),Vt=()=>r.jsx("i",{className:"c-star"}),Gt=e=>{const n=(s=>{const a=[];for(let o=0;o<5;o++)s>=1?a.push(r.jsx(Zt,{})):1>s&&s>=.5?a.push(r.jsx($t,{})):a.push(r.jsx(Vt,{})),s--;return a})(e.reviewModel.average);return r.jsx("div",{className:"m-review-stars",children:n.map(s=>s)})},Kt=e=>e.reviewModel.total===0?r.jsx(r.Fragment,{}):r.jsxs("div",{className:"m-review",children:[r.jsx("div",{className:"m-review__star",children:r.jsx(Gt,{reviewModel:e.reviewModel})}),r.jsxs("p",{className:"m-review__score",children:[r.jsx("span",{className:"m-review__num",children:e.reviewModel.average}),r.jsx("span",{className:"m-review__count",children:e.reviewModel.displayTotal})]})]}),Se=e=>{const t="/shops/"+e.shopModel.domain+"/";return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"p-shops-card__header",children:r.jsxs("div",{className:"p-shops-card__cover",children:[r.jsx("picture",{className:"p-shops-card__image",children:r.jsx("img",{loading:"lazy",src:e.shopModel.displayListImage,alt:e.shopModel.displayListImageAlt})}),r.jsx("picture",{className:"p-shops-card__image",children:r.jsx("img",{loading:"lazy",src:e.shopModel.displayShopImage,alt:e.shopModel.displayShopImageAlt})})]})}),r.jsxs("div",{className:"p-shops-card__body",children:[r.jsx("h3",{className:"p-shops-card__name",children:r.jsx("span",{children:e.shopModel.title})}),r.jsxs("div",{className:"p-shops-card__detail",children:[r.jsxs("div",{className:"p-shops-card__info",children:[r.jsx("p",{className:"p-shops-card__address",children:e.shopModel.address}),r.jsxs("div",{className:"p-shops-card__meta",children:[e.shopModel.review.total>0&&r.jsx("div",{className:"p-shops-card__review",children:r.jsx(Kt,{reviewModel:e.shopModel.review})}),r.jsx("p",{className:"p-shops-card__delivery",children:e.shopModel.displayShortestDate})]})]}),r.jsx("div",{className:"p-shops-card__bookmark"})]})]}),r.jsx("a",{className:"p-shops-card__link",href:t})]})},Jt=e=>{if(e.shopModel===void 0)return r.jsx(r.Fragment,{});const{data:t}=i.useContext(k);return r.jsx("div",{id:"shops-map-card",className:`p-shops-map__card ${t!==0?"is-active":""}`,children:t!==0&&r.jsx("div",{className:"p-shops-card",children:r.jsx(Se,{shopModel:e.shopModel,customer:e.customer})})})},qt=e=>{if(!e.isMapVisible)return r.jsx(r.Fragment,{});const{setter:t}=i.useContext(G),{data:n,setter:s}=i.useContext(k),[a,o]=i.useState(e.shops[0]),l=i.useRef(null),c=(u,f)=>u.filter(x=>x.id==f).pop();i.useEffect(()=>{if(n===0)return;const u=c(e.shops,n);o(u)},[n]),i.useEffect(()=>{if(l.current){const u=new google.maps.LatLng(e.currentLocation.lat,e.currentLocation.lng);l.current.panTo(u)}},[e.currentLocation]);const d=ee(),g=i.useMemo(()=>[...e.shops].reverse(),[e.shops]),m=()=>{s(0),t(1)},p=i.useCallback(()=>{m()},[]),v=u=>{const f=u.getCenter();if(f!==void 0){const _={lat:f.lat(),lng:f.lng()};(_.lat!==e.currentLocation.lat||_.lng!==e.currentLocation.lng)&&e.setCurrentLocation(_)}},h={zoomControl:!0,defaultCenter:e.currentLocation,defaultZoom:e.zoomLevel,minZoom:X,maxZoom:Oe,disableDefaultUI:!0,reuseMaps:!0,mapId:"DEMO_MAP_ID",clickableIcons:!1};return r.jsx("div",{className:"l-grid-shops__map",children:r.jsx("div",{id:"shops-map",className:"p-shops-map",children:r.jsx(dt,{apiKey:e.apiKey,children:r.jsxs(Le,{onClick:p,onIdle:u=>{l.current=u.map,v(u.map)},onZoomChanged:u=>e.setZoomLevel(u.map.getZoom()),...h,children:[g.map(u=>r.jsx(Ht,{shopModel:u},u.id)),r.jsx("div",{className:"p-shops-map__reload",onClick:()=>ve(e.currentLocation,e.zoomLevel,e.isStorePickupActive,m,e.setUrlSearchParams),children:"この範囲を検索"}),r.jsx("button",{type:"button",className:"p-shops-map__close",onClick:()=>e.toggleMapVisible()}),d&&r.jsx(Jt,{shopModel:a,customer:e.customer})]})})})})},Wt=e=>{const[t,n]=i.useState(e),s=l=>{l?document.body.classList.add("is-show-map"):document.body.classList.remove("is-show-map")},a=l=>{const c=document.querySelector("#header-ec-mo-toggle #mo");c&&(l?c.checked=!0:c.checked=!1)},o=()=>{n(l=>(s(!l),!l))};return s(t),a(t),[t,o]};
1class ne{constructor(t,n){this.total=t,this.average=n}static build(t){return new ne(t.total,t.average)}get displayTotal(){return"("+this.total+")"}}class re{constructor(t,n,s,a,o,l,c,d,g,m){this.id=t,this.title=n,this.address=s,this.listImage=a,this.shopImage=o,this.domain=l,this.review=c,this.shortestDate=d,this.bookmarked=g,this.latLng=m}static build(t){return new re(t.id,t.title,t.address,t.listImage,t.shopImage,t.domain,ne.build(t.review),new Date(t.shortestDate),t.bookmarked,t.latLng)}get displayListImage(){return this.listImage.replace("assets.cake.jp","resized-assets.cake.jp")+"?h=320"}get displayListImageAlt(){return this.title+"の画像"}get displayShopImage(){return this.shopImage.replace("assets.cake.jp","resized-assets.cake.jp")+"?h=320"}get displayShopImageAlt(){return this.title+"の店舗画像"}get displayShortestDate(){return"最短"+this.displayDeliveryDate+"お届け"}get displayDeliveryDate(){return String(this.shortestDate.getMonth()+1)+"/"+String(this.shortestDate.getDate())}}const Yt=e=>e===void 0?{shops:[],paginator:fe()}:{shops:e.shops.map(t=>re.build(t)),paginator:e.paginator},Xt=e=>fetch(e).then(t=>t.json()),Qt=(e,t,n)=>{const s=V({baseUrl:n,pageNumber:t,searchParams:e}),{data:a,error:o,isLoading:l,mutate:c}=Ie(s,Xt),d=Yt(a),g=d.shops,m=d.paginator;return{shopModelList:g,paginator:m,isLoading:l,isError:o,mutate:c}},en=e=>{const{data:t}=i.useContext(k);return r.jsx("div",{className:`p-shops-card ${e.shopModel.id==t?"is-active":""}`,children:r.jsx(Se,{shopModel:e.shopModel,customer:e.customer})})},tn=e=>{const{data:t,setter:n}=i.useContext(k),s=i.useRef([]);e.shops.forEach(c=>{s.current[c.id]=i.createRef()});const a=i.useRef(null),o=c=>{var h;const d=document.getElementById("fixed-nav"),g=(d==null?void 0:d.getBoundingClientRect().height)??0,v=(((h=s.current[c].current)==null?void 0:h.getBoundingClientRect().top)??0)-g;window.scrollBy({top:Math.ceil(v),behavior:"smooth"})},l=ee();return i.useEffect(()=>{!l&&t!==0&&t!==a.current&&o(t),a.current=null},[t,l]),r.jsx("ul",{className:"p-shops__list",children:e.shops.map(c=>r.jsx("li",{ref:s.current[c.id],onMouseEnter:()=>{a.current=c.id,n(c.id)},onMouseLeave:()=>{a.current=0,n(0)},children:r.jsx(en,{shopModel:c,customer:e.customer})},c.id))})},nn=()=>r.jsxs("div",{className:"c-empty",children:[r.jsx("p",{className:"c-empty__title",children:"検索結果がありません"}),r.jsx("p",{className:"c-empty__text",children:"条件を変えてお探しください。"})]}),rn=({isLoading:e,shopModelList:t,customer:n})=>e?r.jsx("p",{children:"データを取得中..."}):t.length>0?r.jsx(tn,{shops:t,customer:n}):r.jsx(nn,{}),sn=e=>{const t=()=>{const n=!e.isStorePickupActive;e.setIsStorePickupActive(n),ke({action:"店舗受取予約対応 絞り込み メニュー クリック",category:"店舗一覧ページ",label:n?"店舗受取予約対応":"店舗受取予約対応解除"})};return r.jsx("nav",{id:"filter-storepickup",className:"p-shops__filter p-search-filter-storepickup is-sticky",children:r.jsx("div",{className:"p-search-filter-storepickup__inner",children:r.jsx("p",{className:`p-search-filter-storepickup__button ${e.isStorePickupActive?"is-active":""}`,"data-section-target":"storepickup",onClick:()=>t(),children:"店舗受取予約対応"})})})},an=[{prefecture:"北海道",latitude:43.0621,longitude:141.3544},{prefecture:"青森県",latitude:40.8222,longitude:140.7475},{prefecture:"岩手県",latitude:39.702,longitude:141.1527},{prefecture:"宮城県",latitude:38.2682,longitude:140.8694},{prefecture:"秋田県",latitude:39.72,longitude:140.1035},{prefecture:"山形県",latitude:38.2554,longitude:140.3396},{prefecture:"福島県",latitude:37.7607,longitude:140.4735},{prefecture:"茨城県",latitude:36.3659,longitude:140.4728},{prefecture:"栃木県",latitude:36.5658,longitude:139.8836},{prefecture:"群馬県",latitude:36.3895,longitude:139.0634},{prefecture:"埼玉県",latitude:35.8617,longitude:139.6455},{prefecture:"千葉県",latitude:35.6073,longitude:140.1229},{prefecture:"東京都",latitude:35.6895,longitude:139.6917},{prefecture:"神奈川県",latitude:35.4437,longitude:139.638},{prefecture:"新潟県",latitude:37.9161,longitude:139.0364},{prefecture:"富山県",latitude:36.6959,longitude:137.2137},{prefecture:"石川県",latitude:36.5611,longitude:136.6566},{prefecture:"福井県",latitude:36.0641,longitude:136.2196},{prefecture:"山梨県",latitude:35.662,longitude:138.5683},{prefecture:"長野県",latitude:36.6513,longitude:138.1812},{prefecture:"岐阜県",latitude:35.4235,longitude:136.7606},{prefecture:"静岡県",latitude:34.9756,longitude:138.3828},{prefecture:"愛知県",latitude:35.1815,longitude:136.9066},{prefecture:"三重県",latitude:34.7303,longitude:136.5087},{prefecture:"滋賀県",latitude:35.0045,longitude:135.8686},{prefecture:"京都府",latitude:35.0116,longitude:135.7681},{prefecture:"大阪府",latitude:34.6937,longitude:135.5023},{prefecture:"兵庫県",latitude:34.6901,longitude:135.1955},{prefecture:"奈良県",latitude:34.6851,longitude:135.8047},{prefecture:"和歌山県",latitude:34.2304,longitude:135.1707},{prefecture:"鳥取県",latitude:35.503,longitude:134.2358},{prefecture:"島根県",latitude:35.4682,longitude:133.048},{prefecture:"岡山県",latitude:34.6617,longitude:133.9349},{prefecture:"広島県",latitude:34.3853,longitude:132.4553},{prefecture:"山口県",latitude:34.1859,longitude:131.4706},{prefecture:"徳島県",latitude:34.0704,longitude:134.5548},{prefecture:"香川県",latitude:34.3424,longitude:134.0463},{prefecture:"愛媛県",latitude:33.8394,longitude:132.7653},{prefecture:"高知県",latitude:33.559,longitude:133.5311},{prefecture:"福岡県",latitude:33.5904,longitude:130.4017},{prefecture:"佐賀県",latitude:33.2642,longitude:130.3005},{prefecture:"長崎県",latitude:32.7503,longitude:129.8779},{prefecture:"熊本県",latitude:32.8032,longitude:130.7079},{prefecture:"大分県",latitude:33.2382,longitude:131.6126},{prefecture:"宮崎県",latitude:31.9076,longitude:131.4208},{prefecture:"鹿児島県",latitude:31.5969,longitude:130.5571},{prefecture:"沖縄県",latitude:26.2123,longitude:127.6792}],on=async()=>
1{if(!navigator.geolocation)return T;try{const e=await new Promise((t,n)=>{navigator.geolocation.getCurrentPosition(s=>t(s),s=>n(s))});return{lat:e.coords.latitude,lng:e.coords.longitude}}catch{return T}},ln=e=>{const t=an.find(n=>n.prefecture===e);return t||{prefecture:null,latitude:null,longitude:null}},cn=e=>{const t=a=>{const o=ln(a);return o.prefecture!==null?{lat:o.latitude,lng:o.longitude}:T},n=async()=>await on();return{initNearbySearch:async a=>{const o=a.length>0?t(a):await n();a.length>0&&e.setZoomLevel(X);const l=a.length>0?X:me;e.setCurrentLocation(o),e.setPageNumber(1);const c=pe(o,l,te(e.isStorePickupActive)),d=z(c);e.setEndPoint("/shops_v2/nearby/"),e.setUrlSearchParams(d)}}},un=e=>{const t=JSON.parse(e.props),n=t.google_maps_api_key,s=t.region,a=t.category,o=t.customer,l=t.selectedArea,c=t.h1Text,g=ee()?!1:!!t.map.visible,m=parseInt(t.conditions.how_to_receive),[p,v]=i.useState(l),[h,u]=i.useState(void 0),[f,_]=i.useState(!1),[x,S]=i.useState(0),[j,M]=i.useState(m===Q.STORE_PICKUP),y=fe({howToReceive:m}),[L,N]=i.useState(y.page),[A,w]=i.useState(z(y)),[C,O]=i.useState("/shops_v2/list/"),[I,se]=i.useState(T),[ae,oe]=i.useState(me),{initNearbySearch:K}=cn({setCurrentLocation:se,setEndPoint:O,setUrlSearchParams:w,setZoomLevel:oe,setPageNumber:N,isStorePickupActive:j});i.useEffect(()=>{g&&K(l)},[]);const{shopModelList:ie,isLoading:J,paginator:q}=Qt(A,L,C),[W,B]=Wt(g),[we,Me]=i.useState(y);return i.useEffect(()=>{J||Me(q)},[q]),i.useEffect(()=>{if(!J)if(W)O("/shops_v2/nearby/"),ve(I,ae,j,()=>{S(0),N(1)},w);else{O("/shops_v2/list/"),N(1);const le={...y,options:{...y.options,howToReceive:te(j).toString()}};w(z(le))}},[j]),r.jsx(r.Fragment,{children:r.jsx(Fe.Provider,{value:{data:h,setter:u},children:r.jsx(Re.Provider,{value:{data:f,setter:_},children:r.jsx(Ue.Provider,{value:{data:p,setter:v},children:r.jsx(k.Provider,{value:{data:x,setter:S},children:r.jsx(G.Provider,{value:{data:L,setter:N},children:r.jsxs("div",{className:"l-grid-shops p-shops",children:[r.jsx("header",{className:"l-grid-shops__header",children:r.jsx("div",{className:"m-title-page-header",children:r.jsxs("div",{className:"m-title-page-header__inner",children:[r.jsxs("h1",{className:"m-title-page-header__title",children:[r.jsx("span",{className:"p-shops__title-back",onClick:()=>B(),children:r.jsx("i",{className:"icon-arrow"})}),c]}),r.jsx("p",{className:"m-title-page-header__description",children:"誕生日や記念日のケーキを、近くの店舗から店舗受取で簡単予約。スマホで注文して当日スムーズに受け取れます。"})]})})}),r.jsxs("aside",{className:"l-grid-shops__side",children:[r.jsx(De,{toggleMapVisible:B,currentLocation:I,initNearbySearch:()=>K(l)}),r.jsx(ze,{regions:s})]}),r.jsxs("main",{className:"l-grid-shops__main",children:[r.jsx(sn,{isStorePickupActive:j,setIsStorePickupActive:M}),r.jsxs("div",{className:"p-shops__inner",children:[r.jsx(rn,{isLoading:J,shopModelList:ie,customer:o}),r.jsx(et,{isMapVisible:W,toggleMapVisible:B,currentLocation:I,initNearbySearch:()=>K(l)})]}),C==="/shops_v2/list/"?r.jsx(Ke,{paginator:q,baseUrl:"/shops/",modules:4}):r.jsx(Qe,{paginator:we,modules:4})]}),r.jsx(qt,{isMapVisible:W,toggleMapVisible:B,apiKey:n,shops:ie,customer:o,setUrlSearchParams:w,currentLocation:I,setCurrentLocation:se,zoomLevel:ae,setZoomLevel:oe,isStorePickupActive:j}),r.jsx("footer",{className:"l-grid-shops__footer",children:r.jsx(Be,{categoryLinkListArr:a})})]})})})})})})})},Y=document.getElementById("app");Y!==null&&Ae.createRoot(Y).render(r.jsx(b.StrictMode,{children:r.jsx(un,{props:Y.dataset.args??""})}));

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.