PageSourceSearch

https://www.gap.at/_next/static/chunks/9907.da3872aadefbfed5.js

js gap.at collected 2026-10-06 13:20:35 UTC 21,485 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9907],{8918:(e,t,s)=>{s.d(t,{Zl:()=>n,aE:()=>a,x5:()=>r});let r=e=>{let t=new Intl.DateTimeFormat("en-GB",{timeZone:"Europe/Prague",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(new Date(e)),s=Number(t.find(e=>"hour"===e.type)?.value??"0"),r=t.find(e=>"minute"===e.type)?.value??"00";return`${s}:${r}`},a=e=>e.filter(e=>e.day===new Date().getDay()).map(e=>`${r(e.openFrom)} - ${r(e.openTo)}`),n=e=>{let t=e.filter(e=>e.day===new Date().getDay()),s=!1,r=e=>Date.parse(`1/1/2000 ${new Date(e).getUTCHours()}:${new Date(e).getMinutes()}`);return t.map(e=>{let t=r(e.openFrom),a=r(e.openTo),n=r(new Date);n>=t&&n<=a&&(s=!0)}),s}},21705:(e,t,s)=>{s.d(t,{Gj:()=>o,z6:()=>l});var r=s(26514),a=s(75834),n=s(75406);let i=(0,a.createContext)(void 0),l=({name:e,value:t,onChange:s,disabled:l=!1,children:o,className:c,...d})=>{let m=(0,a.useRef)(null),u=(0,a.useCallback)(e=>{l||("ArrowDown"===e.key||"ArrowRight"===e.key?(e.preventDefault(),g("next")):"ArrowUp"===e.key||"ArrowLeft"===e.key?(e.preventDefault(),g("prev")):("Enter"===e.key||" "===e.key)&&(e.preventDefault(),x()))},[l]),g=e=>{let t;if(!m.current)return;let s=Array.from(m.current.querySelectorAll('input[type="radio"]:not(:disabled)'));if(0===s.length)return;let r=s.findIndex(e=>document.activeElement===e);t="next"===e?-1===r||r===s.length-1?0:r+1:r<=0?s.length-1:r-1,s[t].focus()},x=()=>{if(!m.current)return;let e=m.current.querySelector('input[type="radio"]:focus:not(:disabled)');e&&e.click()};return(0,r.jsx)(i.Provider,{value:{name:e,value:t,onChange:s,disabled:l},children:(0,r.jsx)("div",{role:"radiogroup",ref:m,onKeyDown:u,className:(0,n.cn)({[`${c}`]:c}),"aria-labelledby":`${e}-label`,...d,children:o})})},o=({value:e,disabled:t=!1,disabledClassName:s,checkedClassName:l,children:o,className:c,...d})=>{let{name:m,value:u,onChange:g,disabled:x}=(()=>{let e=(0,a.useContext)(i);if(!e)throw Error("RadioGroup components must be used within a RadioGroup");return e})(),p=t||x||!1,h=u===e,v=(0,a.useRef)(null),f=(0,a.useCallback)(()=>{p||h||(g(e),v.current&&v.current.focus())},[p,h,g,e]),_="function"==typeof o?o({active:h,checked:h,disabled:p}):o;return(0,r.jsxs)("div",{className:(0,n.cn)({"cursor-pointer":!p,[`${c}`]:c,[`${l}`]:l&&h,[`${s}`]:s&&p}),onClick:f,"data-active":h,"data-disabled":p,role:"region","aria-label":m,...d,children:[(0,r.jsx)("input",{ref:v,type:"radio",id:`${m}-${e}`,name:m,value:e,checked:h,disabled:p,className:"sr-only",onChange:()=>g(e),"aria-checked":h,tabIndex:-1}),(0,r.jsx)("label",{htmlFor:`${m}-${e}`,className:"sr-only",children:e}),_]})}},39034:(e,t,s)=>{s.d(t,{C2:()=>d,T5:()=>v});var r=s(26514),a=s(81586),n=s(46225),i=s(75834),l=s(14205),o=s(49421);let c=({children:e})=>{let t=(0,l.kU)(),s=t===l.LY.FAILED||t===l.LY.AUTH_FAILURE;return((0,i.useEffect)(()=>{s&&console.error(`Google Maps API failed to load (${t}) — check settings.googleMapsApiKey and the network.`)},[s,t]),t===l.LY.LOADED)?(0,r.jsx)(r.Fragment,{children:e}):s?null:(0,r.jsx)(o.a,{isActive:!0})},d=({children:e})=>{let{settings:t}=(0,a.Pj)();return t.googleMapsApiKey?(0,r.jsx)(l.c4,{apiKey:t.googleMapsApiKey,children:(0,r.jsx)(c,{children:e})}):null},m={lat:Number("47.2")||49.8,lng:Number("13.2")||15.5},u=Number("7")||7,g={width:40,height:40},x={width:56,height:56},p=({lat:e,lng:t,zoom:s,fitTarget:r})=>{let a=(0,l.ko)(),n=r?.lat,o=r?.lng;return(0,i.useEffect)(()=>{if(a){if(void 0!==n&&void 0!==o){let s=new google.maps.LatLngBounds;s.extend({lat:e,lng:t}),s.extend({lat:n,lng:o}),a.fitBounds(s,48);return}a.panTo({lat:e,lng:t}),a.setZoom(s)}},[a,e,t,s,n,o]),null},h=({marker:e,iconSize:t})=>{let s=(0,n.useRouter)();return(0,r.jsx)(l.J8,{position:e.position,title:e.title,onClick:e.url?()=>s.push(e.url):void 0,children:(0,r.jsx)("img",{src:"/images/icons/map-marker.png",width:t.width,height:t.height,alt:""})})},v=({className:e,lat:t,lng:s,markers:n=[],mapZoom:i=u,largeMarker:o=!1,fitNearestMarker:c=!1})=>{var d,v;let f,_,{settings:j}=(0,a.Pj)(),b={lat:t??m.lat,lng:s??m.lng}
1,y=o?x:g,w=c?(d=b.lat,v=b.lng,f=null,_=1/0,n.forEach(({position:e})=>{let t=e.lat-d,s=(e.lng-v)*Math.cos(d*Math.PI/180),r=t*t+s*s;r<_&&(_=r,f=e)}),f):null;return(0,r.jsx)("div",{className:e,children:(0,r.jsxs)(l.T5,{defaultCenter:b,defaultZoom:i,mapId:j.googleMapsApiKey,style:{width:"100%",height:"100%"},children:[(0,r.jsx)(p,{lat:b.lat,lng:b.lng,zoom:i,fitTarget:w}),n.map((e,t)=>(0,r.jsx)(h,{marker:e,iconSize:y},`marker-${t}`))]})})}},66487:(e,t,s)=>{s.r(t),s.d(t,{SignIn:()=>A});var r=s(26514),a=s(55047),n=s(87754),i=s(46225),l=s(69316),o=s(59429),c=s(14163),d=s(80254),m=s(60269),u=s(51973),g=s(33862),x=s(14366),p=s(16074),h=s(24676),v=s(81586),f=s(49421),_=s(94560),j=s(78519),b=s(56975),y=s(23469),w=s.n(y),N=s(77767);let S=w()(()=>Promise.all([s.e(1828),s.e(4627)]).then(s.bind(s,4627)).then(e=>e.ThirdPartyLoginList),{loadableGenerated:{webpack:()=>[4627]},ssr:!1}),I=(0,o.PA)(({redirectToProfile:e=!0,stayOnSamePage:t=!1,stopFormSubmitPropagation:s=!1})=>{let{t:o}=(0,a.Bd)("common"),b=(0,i.useRouter)(),{settings:y,user:w,alert:I,dataLayer:A}=(0,v.Pj)(),{executeRecaptcha:P}=(0,c._Y)(),k=(0,h.D2)(o,"userSignIn"),C=async e=>{if(e){I.removeAlert("notVerifiedUserEmailAlert");let[t,s]=await (0,_.v1)("/"+e);s?I.handleError(s):I.addAlert({title:t.titles||o("signing-pages__email-sent__success__modal__title"),message:(0,r.jsx)("div",{"data-testid":d.Q.SignInFormEmailResentSuccessDiv,children:t.messages||o("signing-pages__email-sent__success__modal__message")})})}},{register:L,handleSubmit:R,formState:{errors:$}}=(0,n.mN)({mode:"onChange",resolver:(0,l.t)(k)}),E=async s=>{let a=await k.validate(s);if(!a)return;if(!await (0,j.HT)("signInForm",P,a.email))return void(0,j.W5)(o);w.setIsLoading(!0);let[n,i]=await w.signIn(a,void 0);if(w.setIsLoading(!1),i){let e=null;Array.isArray(i)&&(e=i.find(e=>"notVerifiedUserEmail"===e.id)),e?I.setAlerts([{id:"notVerifiedUserEmailAlert",message:(0,r.jsxs)("div",{className:"max-w-md","data-testid":d.Q.SignInFormAccountNotActivatedDiv,children:[(0,r.jsx)(x.I,{icon:"/images/icons/unfinished.svg",className:"w-16 h-16 mx-auto mb-8"}),(0,r.jsx)(p.h,{className:"!mt-0 !text-2xl text-center whitespace-pre-line md:whitespace-normal",children:o("sign-in__error__title")}),(0,r.jsx)("p",{className:"mb-8 md:mb-12 text-center md:text-left",children:o("sign-in__not-verified-user-email")}),(0,r.jsx)(m.S,{variant:"light",className:"w-full mb-4 active:!shadow-xl","data-testid":d.Q.SignInFormAccountNotActivatedSendAgainButton,onClick:()=>{e&&C(e.message)},children:o("sign-in__send-email-again")}),(0,r.jsx)(m.S,{className:"w-full text-base md:text-sm","data-testid":d.Q.SignInFormAccountNotActivatedCloseButton,onClick:()=>{I.removeAlert("notVerifiedUserEmailAlert")},children:o("sign-in__close")})]})}]):I.handleError(i);return}n&&(A.signInSuccess(n.email),e?y.routes.userOverview&&b.push(y.routes.userOverview):t?b.reload():b.push("/"))};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"max-w-form-group w-full relative text-base",children:[(0,r.jsx)(f.a,{isActive:w.isLoading}),y.isOrsay()&&(0,r.jsx)(p.h,{heading:1,variant:p.Z.Alpha,className:"!mt-0 !mb-7.5",children:o("signing-pages__sign-in__title")}),y.hasThirdPartyLogins&&(0,r.jsx)(S,{mode:"log-in",destinationLogin:e&&y.routes.userOverview?y.routes.userOverview:t?b.asPath:null,destinationSignup:y.routes.userRegistrationStep2,className:"mb-7.5"}),(0,r.jsxs)("form",{name:"signInForm",onSubmit:e=>{s&&e.stopPropagation(),R(E)(e)},style:{userSelect:"none",WebkitUserSelect:"none"},children:[(0,r.jsx)(g.g,{label:o("email"),name:"email",type:"email",register:L,error:$.email,defaultValue:"",className:"!mt-2",autoComplete:"username"}),(0,r.jsx)(g.g,{label:o("password"),type:"password",name:"password",register:L,error:$.password,defaultValue:"",autoComplete:"current-password"}),(0,r.jsxs)(N.I,{className:"text-xs mt-4 lg:mt-7.5 text-gray-700",children:[(0,r.jsx)(m.S,{type:"submit",className:"w-full",size:"lg",children:o("signing-pages__sign-in__btn")}),y.routes.userForgottenPassword&&(0,r.jsx)("div",{className:"mt-2.5 mb-8",children:(0,r.jsx)(u.A,{href:y.routes.userForgottenPassword,className:"underline text-sm","data-testid":d.Q.Sign
1InForgottenPasswordLink,children:o("forgotten-password")})}),y.routes.userRegistration&&(0,r.jsx)(m.S,{as:u.A,variant:"inverted",className:"w-full",size:"lg",href:y.routes.userRegistration,"data-testid":d.Q.SignInCreateNewAccountLink,children:o("create-new-account")}),y.routes.lpLoyaltyProgramPage&&(0,r.jsx)("p",{className:"my-4 lg:mb-8 text-center",children:(0,r.jsx)(u.A,{href:y.routes.lpLoyaltyProgramPage,className:"underline pl-1","data-testid":d.Q.SignInLoyaltyProgramPageLink,children:o("club-points__info__link-label")})})]})]})]})})}),A=({redirectToProfile:e=!0,stayOnSamePage:t=!1,stopFormSubmitPropagation:s=!1})=>(0,r.jsx)(b.X,{children:(0,r.jsx)(I,{redirectToProfile:e,stayOnSamePage:t,stopFormSubmitPropagation:s})})},89907:(e,t,s)=>{s.r(t),s.d(t,{ReservationProductDetail:()=>z});var r=s(26514),a=s(59429),n=s(81586),i=s(14366),l=s(75406),o=s(55047),c=s(75834);let d=({className:e,number:t,onClick:s,...a})=>{let{t:d}=(0,o.Bd)("common"),{dataLayer:m,productDetail:u}=(0,n.Pj)(),g=(0,c.useMemo)(()=>"number"==typeof t&&t>=1?d("reservation__product-detail__available-in-stores__button__selected-size",{count:t}):d("reservation__product-detail__available-in-stores__button__no-selected-size"),[t,d]);return(0,r.jsxs)("button",{type:"button",className:(0,l.cn)({"text-green-500 text-base flex items-end gap-2 font-semibold text-left":!0,[`${e}`]:e}),onClick:e=>{m?.storeReservationOpen(g,u?.product?.title),s?.(e)},...a,children:[(0,r.jsx)(i.I,{icon:"/images/icons/pin.svg",className:"h-[1.125rem] w-[1.125rem] fill-current"}),(0,r.jsx)("span",{className:"underline",children:g})]})};var m=s(80254),u=s(92096),g=s(49421),x=s(84775),p=s(60269),h=s(68606),v=s(21705),f=s(8918);let _=(0,a.PA)(({store:e,selectedStoreId:t,selectedVariantId:s,selectedVariantPrice:a,handleOpenStore:l,handleSelectVariant:c,className:d})=>{let{t:u}=(0,o.Bd)("common"),{settings:g}=(0,n.Pj)(),x=g.reservation?.isViewOnly===!0;return(0,r.jsxs)(h.EN,{isOpen:e.ecomId===t,className:d,children:[(0,r.jsx)(h.$Z,{onClick:t=>{t.preventDefault(),l(e)},className:"font-semibold",children:e.name}),(0,r.jsxs)(h.Ql,{children:[(0,r.jsxs)("div",{className:"text-sm text-gray-800 flex items-center gap-x-2 mb-4",children:[(0,r.jsxs)("p",{children:[e.street,", ",e.zipCode," ",e.city]}),e.distanceFormated&&(0,r.jsxs)("div",{className:"flex items-center gap-x-1 ",children:[(0,r.jsx)(i.I,{icon:"/images/icons/pin.svg",className:"w-4 h-4"}),(0,r.jsx)("div",{children:e.distanceFormated})]})]}),(0,r.jsxs)("a",{href:e.url,target:"_blank",className:"flex items-center gap-x-4 mb-6",title:e.name,children:[(0,f.Zl)(e.openingHours)?(0,r.jsx)("span",{className:"bg-green-500 text-green-500 flex lowercase text-sm justify-center w-18 h-[26px] bg-opacity-10 font-normal",children:u("reservation-store__is_open")}):(0,r.jsx)("span",{className:"bg-red-500 text-red-500 flex lowercase justify-center w-18 h-[28px] bg-opacity-10",children:u("reservation-store__is_closed")}),(0,f.aE)(e.openingHours).map((e,t)=>(0,r.jsx)("span",{children:e},t)),(0,r.jsx)(i.I,{icon:"/images/icons/arrow-right.svg",className:"w-4 h-4"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-success-600 mb-2",children:u(x?"reservation-store__select_size-view-only":"reservation-store__select_size")}),x?(0,r.jsx)("ul",{className:"flex flex-wrap",children:e.sizes.map(t=>(0,r.jsx)("li",{className:"border border-neutral-500 rounded px-3 py-2 text-sm mr-2 mb-2 rounded-[2px]","aria-label":`${u("size")} ${t.title}`,children:t.title},`${t.variantId}_${e.ecomId}`))}):(0,r.jsx)(v.z6,{name:"size",value:`${s}_${e.ecomId}_${a}`,onChange:e=>{let[t,,s]=e.split("_");c(Number(t),Number(s))},className:"flex flex-wrap","data-testid":m.Q.ReservationStoreRadioGroupSizes,role:"radiogroup",children:e.sizes.map(t=>{let n=`${t.variantId}_${e.ecomId}_${t.prices.selling}`==`${s}_${e.ecomId}_${a}`;return(0,r.jsx)(v.Gj,{value:`${t.variantId}_${e.ecomId}_${t.prices.selling}`,checkedClassName:"border-success-500 bg-success-500 text-white",className:"border border-neutral-500 rounded px-3 py-2 text-sm mr-2 mb-2 focus:outline focus-within:outline rounded-[2px]","aria-label":`${u("size")} ${t.title}`,tabIndex:n?0:-1,role:"radio","aria-checked":n,children:t.title},`${t.variantId}_${e.ecomId}`)})})]})]})]},e.ecomId)});var j=s(52661),b=s(95920),y=s(39034),w=s(28590);let N=()=>(0,r.jsx)(y.C2,{children:(0,r.jsx)(S,{})}),S=(0,a.PA)(()=>{let{t:e}=(0,o.Bd)("common"),{location:t,calculateDistance:s,geometryReady:a,placeAutocompleteParentElementRef:i,createPlaceAutocompleteInstance:l}=(0,b.l)(),[d,u]=(0,c.useState)(null),[h,v]=(0,c.useState)(null),[f,y]=(0,c.useState)(null),{reservation:N,productDetail:S,settings:I}
1=(0,n.Pj)(),A=I.reservation?.isViewOnly===!0,P=e=>{(0,j.h5)(()=>{if(f===e.ecomId){y(null),u(null),v(null);return}y(e.ecomId),e.sizes.some(e=>e.variantId===d)||(u(null),v(null))})},k=(e,t)=>{d!==e&&(u(e),v(t))};return(0,c.useEffect)(()=>{t&&a&&N?.stores&&N.setStoresDistance(s)},[t,a,N,N?.stores?.length,s]),(0,c.useEffect)(()=>{l(e("reservation-store__location-label"))},[l,e]),(0,r.jsxs)("div",{children:[N?.isLoading&&(0,r.jsx)(g.a,{isActive:!0}),(0,r.jsx)(w.Lx,{children:(0,r.jsx)("h2",{className:"text-2xl font-bold mb-3",children:e(A?"reservation-store__title-view-only":"reservation-store__title")})}),(A||!!I.reservation?.reservationWindowDays)&&(0,r.jsx)("p",{className:"my-3 text-sm text-gray-800",children:A?e("reservation-store__window_days_info-view-only"):e("reservation-store__window_days_info",{count:I.reservation?.reservationWindowDays})}),(0,r.jsx)("div",{ref:i,className:"mb-6"}),N?.stores.slice().sort((e,t)=>(e.distance||0)>(t.distance||0)?1:-1).map(e=>(0,r.jsx)(_,{store:e,selectedStoreId:f,selectedVariantId:d,selectedVariantPrice:h,handleOpenStore:P,handleSelectVariant:k,className:"text-black py-4 border-t last-of-type:border-b border-neutral-500","data-testid":m.Q.ReservationStoreOpen},e.ecomId)),!A&&h&&(0,r.jsxs)("div",{className:"text-sm mt-4",children:[S?.product?.title,(0,r.jsx)(x.j,{className:"font-bold",value:h})]}),!A&&(0,r.jsx)(p.S,{disabled:!d||!f,onClick:e=>{e.preventDefault(),f&&d&&N?.selectStoreAndVariant(f,d)},className:"w-full mt-4",variant:"primary","data-testid":m.Q.ReservationStoresSubmit,children:e("reservation-store-submit__title")})]})});var I=s(87754),A=s(69316),P=s(24676),k=s(33862);let C=(0,a.PA)(()=>{let[e,t]=(0,c.useState)(!0),[s,a]=(0,c.useState)(null),{t:i}=(0,o.Bd)("common"),{reservation:l,productDetail:d,user:u}=(0,n.Pj)(),x=(0,P.D2)(i,"reservationContact"),{register:h,handleSubmit:v,control:f,formState:{errors:_}}=(0,I.mN)({mode:"onBlur",resolver:(0,A.t)(x)}),b=async e=>{let t=await l?.createReservation(e);t&&t.message?a(t.message):a(null)};return(0,c.useEffect)(()=>{(0,j.h5)(()=>{t(l?.isLoading||u.isLoading||!1)})},[l?.isLoading,u.isLoading]),(0,c.useEffect)(()=>{(0,j.h5)(()=>{l&&l.token&&(!l.selectedStore||!l.selectedVariant)&&l.redirectToStores()})},[l]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Lx,{children:(0,r.jsx)("h2",{className:"text-2xl font-bold mb-2 text-center",children:i("reservation-contact__title")})}),e&&(0,r.jsx)(g.a,{isActive:!0}),(0,r.jsxs)("p",{className:"text-sm text-center mb-2",children:[d.product?.title,","," ",l?.selectedVariant?.title," ",i("reservation-contact-at__branch")," ",(0,r.jsx)("strong",{children:l?.selectedStore?.name})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("form",{id:"form-contacts",onSubmit:e=>{e.stopPropagation(),v(b)(e)},name:"checkoutContactsForm",children:[(0,r.jsx)("fieldset",{className:"text-center",children:(0,r.jsxs)("div",{className:"lg:max-w-[327px]",children:[(0,r.jsx)(k.g,{label:i("firstname"),name:"firstname",type:"text",register:h,error:_.firstname,defaultValue:u?.user?.firstname}),(0,r.jsx)(k.g,{label:i("lastname"),name:"lastname",type:"text",register:h,error:_.lastname,defaultValue:u?.user?.lastname}),(0,r.jsx)(k.g,{label:i("email"),name:"email",type:"email",register:h,error:_.email,defaultValue:u?.user?.email}),(0,r.jsx)(k.g,{label:i("phoneNumber"),name:"phoneNumber",variant:"phoneNumber",control:f,register:h,error:_.phoneNumber,defaultValue:u?.user?.phoneNumber})]})}),s&&(0,r.jsx)("p",{className:"text-danger-500",children:s}),(0,r.jsx)("div",{children:(0,r.jsx)(p.S,{type:"submit",className:"w-full mt-4","data-testid":m.Q.ReservationContactFinishSubmit,children:i("reservation-contact-submit__title")})})]})})]})});var L=s(66487),R=s(78471);let $=(0,a.PA)(()=>{let[e,t]=(0,c.useState)(!0),{user:s,reservation:a}=(0,n.Pj)(),{t:i}=(0,o.Bd)("common");return(0,c.useEffect)(()=>{s.isLoading?t(!0):s.isLoggedIn?a?.redirectToContact():t(!1)},[s.isLoading,s.isLoggedIn,a]),(0,r.jsxs)(r.Fragment,{children:[e&&(0,r.jsx)(g.a,{isActive:!0}),(0,r.jsx)(w.Lx,{children:(0,r.jsx)("h2",{className:"text-center text-2xl font-bold mb-6",children:i("sign-in")})}),(0,R.k)(i("reservation-login__info"),"reservation-login__info")&&(0,r.jsx)("p",{className:"mb-6 text-center",dangerouslySetInnerHTML:{__html:i("reservation-login__info")}}),(0,r.jsx)(L.SignIn,{redirectToProfile:!1,stayOnSamePage:!0,stopFormSubmitPropagation:!0})]})});var E=s(2981);let D=(0,a.PA)(()=>{let{t:e}=(0,o.Bd)("common"),{reservation:t,dataLayer:s,productDetail:a}=(0,n.Pj)();return((0,c.useEffect)(()=>{t&&!t.completedReservation&&t.close()},[t,t?.completedReservation]),(0,c.useEffect)(()=>{t?.completedReservation&&s&&a?.product?.title&&s.storeReservationSummary(t.completedReservation.store.name,a.product.title)},[t?.completedReservation,s,a?.product?.title]),t?.completedReservation)?(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(w.Lx,{children:(0,r.jsx)("h2",{className:"text-2xl font-bold mb-3",children:e("reservation-summary__title")})}),t.completedReservation.products.map((e,t)=>(0,r.jsxs)("p",{className:"text-sm pb-8",children:[e.name,", ",e.size]},`p-${t}`)),(0,r.jsx)(i.I,{icon:"/images/icons/success.svg",className:"w-16 h16 mx-auto text-green-500"}),(0,r.jsxs)("p",{className:"pt-4",children:[e("reservation-summary-info__1")," ",e("reservation-summary-info__2")," ",(0,r.jsxs)("strong",{children:[e("reservation-summary__window_days",{count:t.completedReservation.reservationWindowDays})," "]}),e("reservation-summary-at__branch")," ",(0,r.jsxs)("strong",{children:[t.completedReservation.store.name,"."]})]}),(0,r.jsx)("p",{className:"pt-8 pb-10",children:e("reservation-summary-email__info")}),(0,r.jsx)(p.S,{onClick:()=>{t.close()},variant:"primary",className:"w-full","data-testid":m.Q.ReservationSummaryContinueShoppingButton,children:e("reservation-summary-button__close")})]}):null}),F=(0,a.PA)(({productId:e,variantId:t=null})=>{let{reservation:s,settings:a}
1=(0,n.Pj)(),i=a.reservation?.isViewOnly===!0,l=!!s?.isOpen&&i&&s.reservationPage!==u.k.STORES;if((0,c.useEffect)(()=>{(0,j.h5)(()=>{!s||s.stores&&s.token||s.initialize(e,t)})},[e,t,s]),(0,c.useEffect)(()=>{l&&s?.redirectToStores()},[l,s]),!s?.isOpen)return null;let o=(e=>{switch(e){case u.k.LOGIN:return $;case u.k.CONTACT:return C;case u.k.SUMMARY:return D;default:return N}})(l?u.k.STORES:s.reservationPage);return(0,r.jsx)(E.I,{isOpen:s.isOpen,setIsOpen:e=>{e||s.close()},isButtonClosable:!0,dialogPanelClassName:"w-[min(24.5rem,_100%)]",dialogPanelContentClassName:"min-h-[31.25rem] !p-8",children:(0,r.jsx)(o,{})})}),z=(0,a.PA)(({productDetail:e})=>{let{reservation:t}=(0,n.Pj)(),s=(0,c.useMemo)(()=>{if(e.isAvailable&&e.selectedSizeId){let t=e.sizes.find(t=>t.id===e.selectedSizeId);return t?.stockedStoresCount}},[e]),a=(0,c.useMemo)(()=>{if(e.isAvailable)return e.selectedSizeId},[e.selectedSizeId,e.isAvailable]),i=(0,c.useMemo)(()=>a?m.Q.ReservationProductDetailButtonWithSize:m.Q.ReservationProductDetailButtonNoSize,[a]),l=(0,c.useCallback)(()=>{t?.startReservation()},[t]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{number:s,onClick:l,"data-testid":i}),t?.isOpen&&(0,r.jsx)(F,{productId:e.id,variantId:s?a:null})]})})},95920:(e,t,s)=>{s.d(t,{l:()=>i});var r=s(75834),a=s(81586),n=s(14205);let i=()=>{let{settings:e}=(0,a.Pj)(),t=(0,n.ST)("places"),s=(0,n.ST)("geometry"),[i,l]=(0,r.useState)(null),[o,c]=(0,r.useState)(null),d=(0,r.useRef)(null);(0,r.useEffect)(()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(e=>{l(t=>t??{lat:e.coords.latitude,lng:e.coords.longitude,source:"geolocation"})},e=>
1{console.warn("Geolocation denied or failed",e.code,e.message)},{enableHighAccuracy:!0,maximumAge:3e5,timeout:1e4})},[]);let m=(0,r.useCallback)(e=>{if(!i||!s)return{distance:null,distanceFormated:null};let t=new google.maps.LatLng(i.lat,i.lng),r=new google.maps.LatLng(Number(e.latitude),Number(e.longitude)),a=s.spherical.computeDistanceBetween(t,r),n=a>500?(a/1e3).toFixed(1)+" km":a.toFixed(0)+" m";return{distance:a,distanceFormated:n}},[i,s]),u=(0,r.useCallback)(async s=>{if(!t||!d.current||o)return;let r=new t.PlaceAutocompleteElement({includedRegionCodes:[e.defaultCountryISO],placeholder:s});r.style.background="#f0f0f0",r.style.colorScheme="light",d.current.appendChild(r),r.addEventListener("gmp-select",async e=>{let t=e.placePrediction.toPlace();await t.fetchFields({fields:["location"]});let s=t.location?.lat(),r=t.location?.lng();s&&r&&l({lat:s,lng:r,source:"search"})}),c(r)},[e.defaultCountryISO,t,o]);return{location:i,calculateDistance:m,geometryReady:!!s,placeAutocompleteParentElementRef:d,createPlaceAutocompleteInstance:u}}}}]);

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.