1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cedc3d5e-2fbb-4e73-bdc2-e75c4fcb2f8f",e._sentryDebugIdIdentifier="sentry-dbid-cedc3d5e-2fbb-4e73-bdc2-e75c4fcb2f8f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3113],{1868:(e,t,r)=>{r.d(t,{Bm:()=>s,DC:()=>i,EH:()=>a,km:()=>n,t1:()=>l});let s={LABEL:"Minderwert-Zuschlag",TOOLTIP:"Um unsere Fahrer fair zu bezahlen und die Lieferkosten niedrig zu halten, berechnen wir bei Bestellungen unter dem Mindestbestellwert die Differenz als Zuschlag.",INFO_ARIA_LABEL:"Info zum Minderwert-Zuschlag"},l={DRINK_HINT:"Hinweis: Getr\xe4nke z\xe4hlen nicht zum Mindestbestellwert.",BLOCKED_HEADING:e=>`Mindestbestellwert von ${e} ⬠noch nicht erreicht.`,BLOCKED_OPTION_FREE_BEFORE:"Noch ",BLOCKED_OPTION_FREE_AFTER:" f\xfcr eine zuzahlungsfreie Lieferung.",BLOCKED_OPTION_SURCHARGE_BEFORE:"Oder ",BLOCKED_OPTION_SURCHARGE_AFTER:", um mit Minderwert-Zuschlag zu bestellen.",SAVINGS_TIP_LABEL:"Spar-Tipp:",SAVINGS_TIP:"Tau
1sche den Zuschlag gegen echtes Essen. F\xfcge unten einen Snack hinzu, zahle fast dasselbe und bekomme mehr auf den Teller.",ORDER_BUTTON_BLOCKED:e=>`Noch ${e} ⬠bis Bestellung m\xf6glich`,MBW_NOTE:e=>`Mindestbestellwert: ${e} â¬`,MBW_ERROR:e=>`Mindestbestellwert ${e} ⬠nicht erreicht`},a={MBW_REACHED:"â MBW",MBW_TARGET:e=>`MBW ${e} â¬`,FREE_DELIVERY_REACHED:"â Frei-Haus",FREE_DELIVERY_TARGET:e=>`Frei ab ${e} â¬`},n={FREE_BADGE:"GRATIS",EFFECTIVE_COST_BADGE:e=>`effektiv ${e} â¬`},i={FREE:"â Kostenlos"}},4643:(e,t,r)=>{r.d(t,{F$:()=>x,RZ:()=>C,Rt:()=>g,ag:()=>f,j8:()=>p,zf:()=>o});var s=r(40837);let l={maxAttempts:s.Yl.MAX_ATTEMPTS,baseDelay:s.Yl.BASE_DELAY_MS,maxDelay:s.Yl.MAX_DELAY_MS},a={timeout:s.nr,retryConfig:l};function n(e,t,r){let s=Error(e);return s.name="GeocodeError",s.code=t,s.statusCode=r,s}class i extends Error{constructor(e="Request aborted"){super(e),this.name="GeocodeAbortError"}}function o(e){return e instanceof i}function d(e){return new Promise(t=>setTimeout(t,e))}function c(e,t){return Math.min(t.baseDelay*Math.pow(2,e-1),t.maxDelay)}function u(e,t,r=!1){return!(e instanceof i)&&(!!("TypeError"===e.name||e.message.includes("Failed to fetch"))||(e instanceof Error&&"code"in e&&"TIMEOUT"===e.code?r:!!t&&!!(t>=500)&&!!(t<600)))}async function h(e,t,r,s){if(s?.aborted)throw new i;let l=new AbortController,a=setTimeout(()=>l.abort(),r),o=()=>l.abort();s?.addEventListener("abort",o,{once:!0});try{return await fetch(e,{...t,signal:l.signal})}catch(e){if(s?.aborted)throw new i;if(e instanceof Error&&"AbortError"===e.name)throw n("Request timeout - please try again","TIMEOUT");throw e}finally{clearTimeout(a),s?.removeEventListener("abort",o)}}async function m(e,t,r={}){let l=r.config??a,{signal:o,retryOnTimeout:p=!1}=r,f=null;for(let r=1;r<=l.retryConfig.maxAttempts;r++)try{let a=await h(e,t,l.timeout,o),i=await a.json();if(!a.ok){let e=i.message||`Request failed with status ${a.status}`,t=a.status===s.gx.TOO_MANY_REQUESTS?"RATE_LIMIT_EXCEEDED":a.status===s.gx.SERVICE_UNAVAILABLE?"SERVICE_UNAVAILABLE":a.status===s.gx.GATEWAY_TIMEOUT?"TIMEOUT":a.status>=s.gx.INTERNAL_SERVER_ERROR?"API_ERROR":a.status===s.gx.UNPROCESSABLE_ENTITY?"INCOMPLETE_ADDRESS":a.status===s.gx.BAD_REQUEST?"INVALID_REQUEST":"UNKNOWN_ERROR",o=n(e,t,a.status);if(r<l.retryConfig.maxAttempts&&u(o,a.status,p)){let e=c(r,l.retryConfig);await d(e);continue}throw o}return i}catch(t){if(t instanceof i)throw t;if(f=t,r>=l.retryConfig.maxAttempts)break;if(!u(f,void 0,p))throw f;let e=c(r,l.retryConfig);await d(e)}if(f instanceof Error&&"code"in f)throw f;throw n(f?.message||"Request failed after multiple attempts","NETWORK_ERROR")}async function p(e,t,r="de",a="de",o=!1,d={}){if(e.length<s.p6)throw n(`Search query must be at least ${s.p6} characters`,"INVALID_REQUEST");try{return await m(s.Y.AUTOCOMPLETE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:e,sessionToken:t,language:r,country:a,streetOnly:o})},{config:{timeout:d.timeout??s.k6,retryConfig:l},signal:d.signal})}catch(e){if(e instanceof i||e instanceof Error&&"code"in e)throw e;throw n("Failed to fetch address suggestions","API_ERROR")}}async function f(e,t,r="de"){if(!e)throw n("Place ID is required","INVALID_REQUEST");try{return await m(s.Y.PLACE_DETAILS,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({placeId:e,sessionToken:t,language:r})},{config:{timeout:s.nr,retryConfig:{...l,maxAttempts:Math.max(l.maxAttempts,2)}},retryOnTimeout:!0})}catch(e){if(e instanceof i||e instanceof Error&&"code"in e)throw e;throw n("Failed to fetch address details","API_ERROR")}}async function g(e,t,r="de"){if(e<s.bP.MIN_LATITUDE||e>s.bP.MAX_LATITUDE)throw n(`Invalid latitude (must be between ${s.bP.MIN_LATITUDE} and ${s.bP.MAX_LATITUDE})`,"INVALID_REQUEST");if(t<s.bP.MIN_LONGITUDE||t>s.bP.MAX_LONGITUDE)throw n(`Invalid longitude (must be between ${s.bP.MIN_LONGITUDE} and ${s.bP.MAX_LONGITUDE})`,"INVALID_REQUEST");try{return await m(s.Y.REVERSE_GEOCODE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({lat:e,lng:t,language:r})})}catch(e){if(e instanceof Error&&"code"in e)throw e;throw n("Failed to get address from location","API_ERROR")}}function x(){return crypto.randomUUID()}function C(e){return e instanceof Error&&"code"in e&&"GeocodeError"===e.name}},13387:(e,t,r)=>{r.d(t,{BackButton:()=>d,x:()=>c});var s=r(95155),l=r(98500),a=r.n(l),n=r(12115),i=r(80723);let o="legal_page_return_to";function d({fallbackHref:e="/",className:t="inline-flex items-center gap-2 text-gray-600 hover:text-gray-900",children:r="Zur\xfcck zum Shop"}
1){let[l,c]=(0,n.useState)(e);return(0,n.useEffect)(()=>{try{let e=sessionStorage.getItem(o);e&&c(e)}catch{}},[]),(0,s.jsxs)(a(),{href:l,className:t,children:[(0,s.jsx)(i.A,{className:"w-4 h-4"}),r]})}function c({href:e,className:t,children:r,onClick:l}){return(0,s.jsx)(a(),{href:e,className:t,onClick:()=>{try{sessionStorage.setItem(o,window.location.pathname)}catch{}l?.()},children:r})}},16033:(e,t,r)=>{r.d(t,{VacationProvider:()=>c,h:()=>d});var s=r(95155),l=r(12115),a=r(1e3),n=r(92646),i=r(51096);let o=(0,l.createContext)(void 0),d=()=>{let e=(0,l.useContext)(o);if(!e)throw Error("useVacation must be used within a VacationProvider");return e},c=({children:e,serverScreenshotMode:t,serverVacationMode:r})=>{let{currentShop:d}=(0,a.q)(),c=(0,l.useMemo)(()=>{let e=e=>{if(!e)return"";try{let t=new Date(e);if(isNaN(t.getTime()))return console.error("[VacationContext] Invalid date format:",e),"";return t.toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"})}catch(e){return console.error("[VacationContext] Date formatting error:",e),""}};if(t||(0,n.MM)())return{isVacationMode:!1,startDate:null,endDate:null,message:null,isMaintenance:!1,isOrderingAllowed:!0,formatReopeningDate:e};let s=!!d?.maintenance,l=d?.vacationPeriods||[],a=(0,i.tx)(),o=l.find(e=>a>=e.startDate.slice(0,10)&&a<=e.endDate.slice(0,10)),c=void 0!==r?r:!!o,u=o??(c?l[0]:void 0);return{isVacationMode:c,startDate:u?.startDate||null,endDate:u?.endDate||null,message:u?.reason||null,isMaintenance:s,isOrderingAllowed:!c&&!s,formatReopeningDate:e}},[d,t,r]);return(0,s.jsx)(o.Provider,{value:c,children:e})}},33023:(e,t,r)=>{r.d(t,{As:()=>a,F3:()=>c,Nx:()=>d,al:()=>u,dN:()=>n,dq:()=>h,nL:()=>i,uI:()=>o});var s=r(95155);r(12115);var l=r(85253);function a({paymentMethods:e=[],className:t=""}){let r=(0,l.d)(),m=e.includes("card")&&!r,p=e.includes("paypal")&&!r,f=e.includes("cash");return(0,s.jsxs)("div",{className:`flex flex-col items-center gap-1 ${t}`,children:[(0,s.jsx)("span",{className:"text-xs text-gray-600",children:"Zahlungsmittel:"}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i,{className:"h-7 w-auto","aria-label":"Visa"}),(0,s.jsx)(o,{className:"h-7 w-auto","aria-label":"Mastercard"}),(0,s.jsx)(d,{className:"h-7 w-auto","aria-label":"American Express"}),(0,s.jsx)(u,{className:"h-7 w-auto","aria-label":"Apple Pay"}),(0,s.jsx)(h,{className:"h-7 w-auto","aria-label":"Google Pay"})]}),p&&(0,s.jsx)(c,{className:"h-7 w-auto","aria-label":"PayPal"}),f&&(0,s.jsx)(n,{className:"h-7 w-auto","aria-label":"Barzahlung"})]})]})}function n({className:e,...t}){return(0,s.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[(0,s.jsx)("circle",{cx:"40",cy:"40",r:"36",fill:"#FADC4A"}),(0,s.jsx)("circle",{cx:"40",cy:"40",r:"36",stroke:"#F7C544",strokeWidth:"3",fill:"none"}),(0,s.jsx)("circle",{cx:"40",cy:"40",r:"29",stroke:"#F7C544",strokeWidth:"1.5",fill:"none"}),(0,s.jsx)("text",{x:"40",y:"53",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontSize:"40",fontWeight:"bold",fill:"#213D62",children:"â¬"})]})}function i({className:e,...t}){return(0,s.jsxs)("svg",{width:"120",height:"80",viewBox:"0 0 120 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M86.6666 44.9375L90.3239 35.0625L92.3809 44.9375H86.6666ZM100.952 52.8375L95.8086 27.1625H88.7383C86.3525 27.1625 85.7723 29.0759 85.7723 29.0759L76.1904 52.8375H82.8868L84.2269 49.0244H92.3947L93.1479 52.8375H100.952Z",fill:"#1434CB"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M77.1866 33.5711L78.0952 28.244C78.0952 28.244 75.2896 27.1625 72.3648 27.1625C69.2031 27.1625 61.6955 28.5638 61.6955 35.3738C61.6955 41.7825 70.5071 41.8621 70.5071 45.2266C70.5071 48.5912 62.6034 47.9901 59.9955 45.8676L59.0476 51.4362C59.0476 51.4362 61.8919 52.8375 66.2397 52.8375C70.5869 52.8375 77.1467 50.5544 77.1467 44.3455C77.1467 37.8964 68.2552 37.296 68.2552 34.4921C68.2552 31.6882 74.4602 32.0484 77.1866 33.5711Z",fill:"#1434CB"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54.6517 52.8375H47.6191L52.0144 27.1625H59.0477L54.6517 52.8375Z",fill:"#1434CB"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42.3113 27.1625L35.9217 44.8213L35.1663 41.0185L35.167 41.0199L32.9114 29.4749C32.9114 29.4749 32.6394 27.1625 29.7324 27.1625H19.1709L19.0476 27.5966C19.0476 27.5966 22.2782 28.2669 26.057 30.5326L31.8793 52.8375H38.8617L49.5238 27.1625H42.3
1113Z",fill:"#1434CB"})]})}function o({className:e,...t}){return(0,s.jsxs)("svg",{width:"120",height:"80",viewBox:"0 0 120 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M97.5288 48.1562V47.2384H97.289L97.0137 47.8698L96.7378 47.2384H96.498V48.1562H96.6675V47.4637L96.9257 48.0609H97.1011L97.36 47.4624V48.1562H97.5288ZM96.0111 48.1562V47.3947H96.318V47.2397H95.5361V47.3947H95.843V48.1562H96.0111Z",fill:"#F79E1B"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.6521 52.095H70.3479V14.9044H49.6521V52.095Z",fill:"#FF5F00"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.2675 33.5003C98.2675 46.563 87.6791 57.152 74.6171 57.152C69.0996 57.152 64.0229 55.2624 60 52.0956C65.5011 47.7646 69.0339 41.0448 69.0339 33.5003C69.0339 25.9552 65.5011 19.2354 60 14.9044C64.0229 11.7376 69.0996 9.84802 74.6171 9.84802C87.6791 9.84802 98.2675 20.437 98.2675 33.5003Z",fill:"#F79E1B"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.966 33.5003C50.966 25.9552 54.4988 19.2354 59.9999 14.9044C55.977 11.7376 50.9003 9.84802 45.3828 9.84802C32.3208 9.84802 21.7324 20.437 21.7324 33.5003C21.7324 46.563 32.3208 57.152 45.3828 57.152C50.9003 57.152 55.977 55.2624 59.9999 52.0956C54.4988 47.7646 50.966 41.0448 50.966 33.5003Z",fill:"#EB001B"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.9203 69.7951V65.9251C34.9203 64.4415 34.0233 63.474 32.4855 63.474C31.7165 63.474 30.8836 63.732 30.3069 64.5705C29.8583 63.861 29.2176 63.474 28.2564 63.474C27.6157 63.474 26.9749 63.6675 26.4623 64.377V63.603H25.1167V69.7951H26.4623V66.3766C26.4623 65.28 27.039 64.764 27.936 64.764C28.8331 64.764 29.2816 65.3445 29.2816 66.3766V69.7951H30.6272V66.3766C30.6272 65.28 31.268 64.764 32.101 64.764C32.9981 64.764 33.4466 65.3445 33.4466 66.3766V69.7951H34.9203ZM54.848 63.6034H52.6694V61.7325H51.3238V63.6034H50.1064V64.8292H51.3238V67.6679C51.3238 69.0872 51.9005 69.9259 53.4384 69.9259C54.015 69.9259 54.6558 69.7324 55.1043 69.4743L54.7199 68.313C54.3354 68.5711 53.8869 68.6356 53.5665 68.6356C52.9257 68.6356 52.6694 68.2485 52.6694 67.6034V64.8292H54.848V63.6034ZM66.2536 63.474C65.4847 63.474 64.9721 63.861 64.6517 64.377V63.603H63.3061V69.7951H64.6517V66.3121C64.6517 65.28 65.1002 64.6995 65.9332 64.6995C66.1895 64.6995 66.5099 64.764 66.7662 64.8285L67.1506 63.5385C66.8943 63.474 66.5099 63.474 66.2536 63.474ZM49.0171 64.119C48.3763 63.6675 47.4793 63.474 46.5181 63.474C44.9803 63.474 43.9551 64.248 43.9551 65.4735C43.9551 66.5056 44.724 67.0861 46.0696 67.2796L46.7104 67.3441C47.4152 67.4731 47.7997 67.6666 47.7997 67.9891C47.7997 68.4406 47.287 68.7631 46.39 68.7631C45.4929 68.7631 44.7881 68.4406 44.3395 68.1181L43.6988 69.1501C44.4036 69.6661 45.3648 69.9241 46.3259 69.9241C48.12 69.9241 49.1453 69.0856 49.1453 67.9246C49.1453 66.8281 48.3123 66.2476 47.0307 66.0541L46.39 65.9896C45.8133 65.9251 45.3648 65.7961 45.3648 65.409C45.3648 64.9575 45.8133 64.6995 46.5181 64.6995C47.287 64.6995 48.056 65.022 48.4404 65.2155L49.0171 64.119ZM84.7716 63.474C84.0027 63.474 83.4901 63.861 83.1697 64.377V63.603H81.8241V69.7951H83.1697V66.3121C83.1697 65.28 83.6182 64.6995 84.4512 64.6995C84.7075 64.6995 85.0279 64.764 85.2842 64.8285L85.6686 63.5385C85.4123 63.474 85.0279 63.474 84.7716 63.474ZM67.5992 66.6991C67.5992 68.5696 68.8807 69.9241 70.8671 69.9241C71.7641 69.9241 72.4049 69.7306 73.0456 69.2146L72.4049 68.1181C71.8923 68.5051 71.3797 68.6986 70.803 68.6986C69.7137 68.6986 68.9448 67.9246 68.9448 66.6991C68.9448 65.5381 69.7137 64.764 70.803 64.6995C71.3797 64.6995 71.8923 64.893 72.4049 65.28L73.0456 64.1835C72.4049 63.6675 71.7641 63.474 70.8671 63.474C68.8807 63.474 67.5992 64.8285 67.5992 66.6991ZM80.0299 63.603H78.6843V64.377C78.2358 63.7965 77.5951 63.474 76.7621 63.474C75.032 63.474 73.6864 64.8285 73.6864 66.6991C73.6864 68.5696 75.032 69.9241 76.7621 69.9241C77.6591 69.9241 78.2999 69.6016 78.6843 69.0211V69.7951H80.0299V63.603ZM75.0961 66.6991C75.0961 65.6026 75.8009 64.6995 76.9543 64.6995C78.0436 64.6995 78.8125 65.5381 78.8125 66.6991C78.8125 67.7956 78.0436 68.6986 76.9543 68.6986C75.8009 68.6341 75.0961 67.7956 75.0961 66.6991ZM59.013 63.474C57.2188 63.474 55.9373 64.764 55.9373 66.6991C55.9373 68.6341 57.2188 69.9241 59.077 69.9241C59.9741 69.9241 60.8712 69.6661 61.576 69.0856L60.9353 68.1181C60.4226 68.5051 59.7819 68.7631 59.1411 68.7631C58.3081 68.7631 57.4751 68.3761 57.2829 67.2796H61.8323V66.7636C61.8964 64.764 60.743 63.474 59.013 63.474ZM59.013 64.635C59.846 64.635 60.4226 65.151 60.5508 66.1186H57.347C
157.4751 65.28 58.0518 64.635 59.013 64.635ZM92.3966 61.152H91.051V64.377C90.6025 63.7965 89.9617 63.474 89.1288 63.474C87.3987 63.474 86.0531 64.8285 86.0531 66.6991C86.0531 68.5696 87.3987 69.9241 89.1288 69.9241C90.0258 69.9241 90.6666 69.6016 91.051 69.0211V69.7951H92.3966V61.152ZM87.4628 66.6991C87.4628 65.6026 88.1676 64.6995 89.321 64.6995C90.4103 64.6995 91.1792 65.5381 91.1792 66.6991C91.1792 67.7956 90.4103 68.6986 89.321 68.6986C88.1676 68.6341 87.4628 67.7956 87.4628 66.6991ZM42.4813 63.603H41.1357V64.377C40.6872 63.7965 40.0464 63.474 39.2134 63.474C37.4834 63.474 36.1378 64.8285 36.1378 66.6991C36.1378 68.5696 37.4834 69.9241 39.2134 69.9241C40.1105 69.9241 40.7513 69.6016 41.1357 69.0211V69.7951H42.4813V63.603ZM37.4834 66.6991C37.4834 65.6026 38.1882 64.6995 39.3416 64.6995C40.4309 64.6995 41.1998 65.5381 41.1998 66.6991C41.1998 67.7956 40.4309 68.6986 39.3416 68.6986C38.1882 68.6341 37.4834 67.7956 37.4834 66.6991Z",fill:"black"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.3102 69.5156V69.6371H94.4202C94.4455 69.6371 94.4653 69.632 94.4805 69.6221C94.4952 69.6123 94.5028 69.5968 94.5028 69.5756C94.5028 69.5559 94.4952 69.5409 94.4805 69.5306C94.4653 69.5207 94.4455 69.5156 94.4202 69.5156H94.3102ZM94.4212 69.4302C94.479 69.4302 94.5231 69.4431 94.5541 69.469C94.5855 69.4954 94.6007 69.5306 94.6007 69.5756C94.6007 69.6133 94.5885 69.6449 94.5637 69.6692C94.5388 69.6935 94.5039 69.7086 94.4577 69.7142L94.6042 69.8865H94.4897L94.3543 69.7158H94.3102V69.8865H94.2149V69.4302H94.4212ZM94.3928 70.0433C94.445 70.0433 94.4932 70.0335 94.5383 70.0133C94.5835 69.9931 94.6225 69.9657 94.6565 69.9316C94.6904 69.8969 94.7168 69.856 94.7361 69.8094C94.7553 69.7629 94.765 69.7132 94.765 69.6599C94.765 69.6071 94.7553 69.5575 94.7361 69.5109C94.7168 69.4643 94.6904 69.4235 94.6565 69.3888C94.6225 69.3546 94.5835 69.3277 94.5383 69.3076C94.4932 69.2879 94.445 69.2781 94.3928 69.2781C94.3401 69.2781 94.2909 69.2879 94.2448 69.3076C94.1986 69.3277 94.1591 69.3546 94.1251 69.3888C94.0912 69.4235 94.0648 69.4643 94.0455 69.5109C94.0263 69.5575 94.0166 69.6071 94.0166 69.6599C94.0166 69.7132 94.0263 69.7629 94.0455 69.8094C94.0648 69.856 94.0912 69.8969 94.1251 69.9316C94.1591 69.9657 94.1986 69.9931 94.2448 70.0133C94.2909 70.0335 94.3401 70.0433 94.3928 70.0433ZM94.3928 69.1684C94.4608 69.1684 94.5241 69.1813 94.584 69.2072C94.6433 69.233 94.695 69.2677 94.7396 69.3127C94.7837 69.3572 94.8192 69.4095 94.8446 69.469C94.8699 69.529 94.8831 69.5927 94.8831 69.6599C94.8831 69.7277 94.8699 69.7913 94.8446 69.8508C94.8192 69.9098 94.7837 69.9621 94.7396 70.0066C94.695 70.0511 94.6433 70.0863 94.584 70.1127C94.5241 70.1385 94.4608 70.152 94.3928 70.152C94.3239 70.152 94.259 70.1385 94.1986 70.1127C94.1388 70.0863 94.0866 70.0511 94.0425 70.0066C93.9984 69.9621 93.9634 69.9098 93.938 69.8508C93.9122 69.7913 93.8995 69.7277 93.8995 69.6599C93.8995 69.5927 93.9122 69.529 93.938 69.469C93.9634 69.4095 93.9984 69.3572 94.0425 69.3127C94.0866 69.2677 94.1388 69.233 94.1986 69.2072C94.259 69.1813 94.3239 69.1684 94.3928 69.1684Z",fill:"black"})]})}function d({className:e,...t}){return(0,s.jsx)("svg",{width:"120",height:"80",version:"1.1",viewBox:"0 0 120 80",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:(0,s.jsx)("path",{d:"m120 76v-8.6763h-9.651l-4.969-5.4944-4.994 5.4944h-31.822v-25.607h-10.27l12.74-28.831h12.286l4.3857 9.877v-9.877h15.208l2.64 7.4429 2.658-7.4429h11.789v-8.8854c0-2.2091-1.7909-4-4-4h-112c-2.2091 4.4409e-16 -4 1.7909-4 4v72c4.4409e-16 2.2091 1.7909 4 4 4h112c2.2091 0 4-1.7909 4-4zm-8.026-11.882h8.026l-10.616-11.258 10.616-11.13h-7.898l-6.556 7.1645-6.4935-7.1645h-8.0275l10.554 11.194-10.554 11.194h7.8041l6.5889-7.2283 6.556 7.2283zm1.878-11.249 6.148 6.5406v-13.027l-6.148 6.4861zm-35.78 6.0675v-3.4864h12.633v-5.0534h-12.633v-3.4859h12.953l5e-4 -5.1815h-19.062v22.388h19.062l-5e-4 -5.1813h-12.953zm35.883-20.456h6.045v-22.388h-9.403l-5.022 13.944-4.989-13.944h-9.5631v22.388h6.0446v-15.672l5.7575 15.672h5.373l5.757-15.704v15.704zm-29.809 0h6.8765l-9.8824-22.388h-7.8682l-9.8833 22.388h6.7166l1.8554-4.4776h10.298l1.887 4.4776zm-3.9976-9.4992h-6.0773l3.0387-7.3242 3.0386 7.3242z",fill:"#0690FF"})})}function c({className:e,...t}){return(0,s.jsxs)("svg",{width:"120",height:"80",viewBox:"0 0 120 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.2315 34.67C75.8559 37.1343 73.9727 37.1343 72.1505 37.1343H71.1141L71.8414 32.5332C71.8848 32.2553 72.1248 32.0508 72.4065 32.0508H72.8822C74.1224 32.0508 75.2934 32.0508 75.8975 32.7563C76.2589 33.1785 76.3679 33.8052 76.2315 34.67ZM75.4387 28.2401H68.5683C68.0979 28.2401 67.6984 28.5818 67.6249 29.0456L64.847 46.6499C64.7921 46.9969 65.0613 47.3112 65.4121 47.3112H68.9377C69.2663 47.3112 69.5462 47.0722 69.5976 46.7482L70.386 41.7567C70.4586 41.2929 70.859 40.9512 71.3285 40.9512H73.5023C78.0279 40.9512 80.6402 38.7631 81.3223 34.4248C81.6297 32.5288 81.3347 31.0382 80.4462 29.9945C79.4692 28.8474 77.7374 28.2401 75.4387 28.2401Z",fill:"#009CDE"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.2281 34.67C26.8525 37.1343 24.9693 37.1343 23.1471 37.1343H22.1107L22.838 32.5332C22.8814 32.2553 23.1214 32.0508 23.4031 32.0508H23.8788C25.119 32.0508 26.29 32.0508 26.8941 32.7563C27.2556 33.1785 27.3645 33.8052 27.2281 34.67ZM26.4353 28.2401H19.5649C19.0945 28.2401 18.695 28.5818 18.6215 29.0456L15.8436 46.6499C15.7887 46.9969 16.0571 47.3112 16.4087 47.3112H19.6898
1C20.1593 47.3112 20.5588 46.9695 20.6323 46.5065L21.3826 41.7567C21.4552 41.2929 21.8556 40.9512 22.3251 40.9512H24.4989C29.0245 40.9512 31.6368 38.7631 32.3189 34.4248C32.6263 32.5288 32.3313 31.0382 31.4428 29.9945C30.4658 28.8474 28.734 28.2401 26.4353 28.2401Z",fill:"#003087"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42.3858 40.9899C42.0678 42.8683 40.5761 44.1296 38.6724 44.1296C37.7184 44.1296 36.954 43.8225 36.4632 43.2418C35.9769 42.6665 35.7935 41.8459 35.9477 40.9333C36.2435 39.0709 37.7601 37.7697 39.6344 37.7697C40.569 37.7697 41.3272 38.0795 41.8277 38.6655C42.3317 39.2559 42.5302 40.0809 42.3858 40.9899ZM46.9708 34.591H43.6808C43.3992 34.591 43.1591 34.7955 43.1148 35.0743L42.9704 35.9931L42.741 35.6603C42.0279 34.6273 40.4396 34.2812 38.854 34.2812C35.2195 34.2812 32.1147 37.0341 31.5106 40.8943C31.1961 42.8205 31.6426 44.6607 32.7357 45.9451C33.7393 47.1251 35.1717 47.6163 36.8787 47.6163C39.8089 47.6163 41.4335 45.7362 41.4335 45.7362L41.2865 46.6497C41.2316 46.9967 41.5 47.311 41.8525 47.311H44.8147C45.2851 47.311 45.6846 46.9702 45.7581 46.5063L47.5368 35.2523C47.5917 34.9053 47.3224 34.591 46.9708 34.591Z",fill:"#003087"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M91.3887 40.9899C91.0707 42.8683 89.579 44.1296 87.6754 44.1296C86.7213 44.1296 85.9569 43.8225 85.4661 43.2418C84.9789 42.6665 84.7965 41.8459 84.9506 40.9333C85.2465 39.0709 86.763 37.7697 88.6374 37.7697C89.5719 37.7697 90.3302 38.0795 90.8306 38.6655C91.3347 39.2559 91.5331 40.0809 91.3887 40.9899ZM95.9737 34.591H92.6838C92.4021 34.591 92.162 34.7955 92.1177 35.0743L91.9734 35.9931L91.743 35.6603C91.0308 34.6273 89.4426 34.2812 87.857 34.2812C84.2225 34.2812 81.1177 37.0341 80.5135 40.8943C80.1991 42.8205 80.6455 44.6607 81.7386 45.9451C82.7423 47.1251 84.1746 47.6163 85.8816 47.6163C88.8119 47.6163 90.4365 45.7362 90.4365 45.7362L90.2894 46.6497C90.2345 46.9967 90.5029 47.311 90.8555 47.311H93.8176C94.288 47.311 94.6875 46.9702 94.761 46.5063L96.5397 35.2523C96.5947 34.9053 96.3254 34.591 95.9737 34.591Z",fill:"#009CDE"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.4927 34.5911H61.186C60.8697 34.5911 60.5739 34.7478 60.3967 35.0098L55.8347 41.7229L53.9019 35.2718C53.7805 34.8682 53.4085 34.5911 52.9868 34.5911H49.7368C49.3444 34.5911 49.068 34.977 49.1947 35.3479L52.8354 46.0284L49.4108 50.857C49.1424 51.2359 49.4135 51.7599 49.8785 51.7599H53.1817C53.4944 51.7599 53.7876 51.6068 53.9665 51.3501L64.9631 35.4896C65.2262 35.1098 64.9551 34.5911 64.4927 34.5911Z",fill:"#003087"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.8516 28.7239L97.0321 46.6504C96.9771 46.9973 97.2455 47.3116 97.5972 47.3116H100.434C100.903 47.3116 101.303 46.9699 101.376 46.5061L104.157 28.9018C104.212 28.5548 103.943 28.2406 103.591 28.2406H100.418C100.135 28.2406 99.895 28.445 99.8516 28.7239Z",fill:"#009CDE"})]})}function u({className:e,...t}){return(0,s.jsxs)("svg",{width:"120",height:"80",viewBox:"0 0 165.52107 105.9651",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[(0,s.jsx)("path",{d:"M150.69807 0H14.82318c-0.5659 0-1.1328 0-1.69769 0.0033-0.47751 0.0034-0.95391 0.0087-1.43031 0.0217-1.039 0.0281-2.0869 0.0894-3.1129 0.2738-1.0424 0.1876-2.0124 0.4936-2.9587 0.9754-0.9303 0.4731-1.782 1.0919-2.52009 1.8303-0.73841 0.7384-1.35721 1.5887-1.83021 2.52C0.4819 6.5763 0.1757 7.5466-0.0106 8.5898c-0.18539 1.0263-0.2471 2.074-0.2751 3.1119-0.0128 0.4764-0.01829 0.9528-0.0214 1.4291C-0.3104 13.6969-0.3093 14.2626-0.3093 14.8297V91.142c0 0.5671-0.0011 1.13181 0.0022 1.69901 0.00311 0.4763 0.0086 0.9527 0.0214 1.4291 0.028 1.03699 0.08971 2.08469 0.2751 3.11069 0.1863 1.0436 0.4925 2.0135 0.9744 2.9599 0.473 0.9313 1.0918 1.7827 1.83021 2.52 0.73809 0.7396 1.58979 1.3583 2.52009 1.8302 0.9463 0.4831 1.9163 0.7892 2.9587 0.9767 1.026 0.1832 2.0739 0.2456 3.1129 0.2737 0.4764 0.0108 0.9528 0.0172 1.43031 0.0194 0.56489 0.0044 1.13179 0.0044 1.69769 0.0044h135.87489c0.5649 0 1.13181 0 1.69659-0.0044 0.47641-0.0022 0.95282-0.0086 1.4314-0.0194 1.0368-0.0281 2.0845-0.0905 3.11301-0.2737 1.041-0.1875 2.0112-0.4936 2.9576-0.9767 0.9313-0.4719 1.7805-1.0906 2.52011-1.8302 0.7372-0.7373 1.35599-1.5887 1.8302-2.52 0.48299-0.9464 0.78889-1.9163 0.97429-2.9599 0.1855-1.026 0.2457-2.0737 0.2738-3.11069 0.013-0.4764 0.01941-0.9528 0.02161-1.4291 0.00439-0.5672 0.00439-1.1319 0.00439-1.69901V14.8242c0-0.5671 0-1.1328-0.00439-1.6989-0.0022-0.4763-0.
100861-0.9527-0.02161-1.4291-0.02811-1.0379-0.0883-2.0856-0.2738-3.1119-0.18539-1.0432-0.4913-2.0135-0.97429-2.9598-0.47421-0.9313-1.093-1.7816-1.8302-2.52-0.73961-0.7384-1.58881-1.3572-2.52011-1.8303-0.9464-0.4818-1.9166-0.7878-2.9576-0.9754-1.0285-0.1844-2.0762-0.2457-3.11301-0.2738-0.47858-0.013-0.95499-0.0183-1.4314-0.0217C151.82988 0 151.26297 0 150.69807 0z"}),(0,s.jsx)("path",{fill:"#FFFFFF",d:"M150.69807 3.532l1.67149 0.0032c0.4528 0.0032 0.90561 0.0081 1.36092 0.0205 0.79201 0.0214 1.71849 0.0643 2.58209 0.2191 0.7507 0.1352 1.38029 0.3408 1.9845 0.6484 0.5965 0.3031 1.14301 0.7003 1.62019 1.1768 0.479 0.4797 0.87671 1.0271 1.18381 1.6302 0.30589 0.5995 0.51019 1.2261 0.64459 1.9823 0.1544 0.8542 0.1971 1.7832 0.21881 2.5801 0.01219 0.4498 0.01819 0.8996 0.0204 1.3601 0.00429 0.5569 0.0042 1.1135 0.0042 1.6715V91.142c0 0.558 0.00009 1.1136-0.0043 1.6824-0.00211 0.4497-0.0081 0.8995-0.0204 1.3501-0.02161 0.7957-0.0643 1.7242-0.2206 2.5885-0.13251 0.7458-0.3367 1.3725-0.64429 1.975-0.30621 0.6016-0.70331 1.1484-1.18022 1.6251-0.47989 0.48-1.0246 0.876-1.62819 1.1819-0.5997 0.3061-1.22821 0.51151-1.97151 0.6453-0.88109 0.157-1.84639 0.2002-2.57339 0.2199-0.4574 0.0103-0.9126 0.01649-1.37889 0.0187-0.55571 0.0043-1.1134 0.0042-1.6692 0.0042H14.82318c-0.0074 0-0.0146 0-0.0221 0-0.5494 0-1.0999 0-1.6593-0.0043-0.4561-0.00211-0.9112-0.0082-1.3512-0.0182-0.7436-0.0201-1.7095-0.0632-2.5834-0.2193-0.74969-0.1348-1.3782-0.3402-1.9858-0.6503-0.59789-0.3032-1.1422-0.6988-1.6223-1.1797-0.4764-0.4756-0.8723-1.0207-1.1784-1.6232-0.3064-0.6019-0.5114-1.2305-0.64619-1.9852-0.15581-0.8626-0.19861-1.7874-0.22-2.5777-0.01221-0.4525-0.01731-0.9049-0.02021-1.3547l-0.0022-1.3279 0.0001-0.3506V14.8242l-0.0001-0.3506 0.0021-1.3251c0.003-0.4525 0.0081-0.9049 0.02031-1.357 0.02139-0.7911 0.06419-1.7163 0.22129-2.5861 0.1336-0.7479 0.3385-1.3765 0.6465-1.9814 0.3037-0.5979 0.7003-1.1437 1.17921-1.6225 0.477-0.4772 1.02309-0.8739 1.62479-1.1799 0.6011-0.3061 1.2308-0.5116 1.9805-0.6465 0.8638-0.1552 1.7909-0.198 2.5849-0.2195 0.4526-0.0123 0.9052-0.0172 1.3544-0.0203l1.6771-0.0033H150.69807"}),(0,s.jsx)("path",{d:"M45.1862 35.64053c1.41724-1.77266 2.37897-4.15282 2.12532-6.58506-2.07464 0.10316-4.60634 1.36871-6.07207 3.14276-1.31607 1.5192-2.4809 3.99902-2.17723 6.3293C41.39111 38.72954 43.71785 37.36345 45.1862 35.64053"}),(0,s.jsx)("path",{d:"M47.28506 38.98252c-3.38211-0.20146-6.25773 1.91951-7.87286 1.91951-1.61602 0-4.08931-1.81799-6.76438-1.76899-3.48177 0.05114-6.71245 2.01976-8.4793 5.15079-3.63411 6.2636-0.95904 15.55471 2.57494 20.65606 1.71618 2.5238 3.78447 5.30269 6.50976 5.20287 2.57494-0.10104 3.58421-1.66732 6.71416-1.66732 3.12765 0 4.03679 1.66732 6.76252 1.61681 2.82665-0.05054 4.59381-2.52506 6.30997-5.05132 1.96878-2.877 2.77473-5.65498 2.82542-5.80748-0.0507-0.05051-5.45058-2.12204-5.50065-8.33358-0.05098-5.20101 4.23951-7.6749 4.44144-7.82832C52.3832 39.4881 48.5975 39.08404 47.28506 38.98252"}),(0,s.jsx)("path",{d:"M76.73385 31.94381c7.35096 0 12.4697 5.06708 12.4697 12.44437 0 7.40363-5.22407 12.49704-12.65403 12.49704h-8.13892v12.94318h-5.88037v-37.8846H76.73385zM68.41059 51.9493h6.74732c5.11975 0 8.0336-2.75636 8.0336-7.53479 0-4.77792-2.91385-7.50845-8.00727-7.50845h-6.77365V51.9493z"}),(0,s.jsx)("path",{d:"M90.73997 61.97864c0-4.8311 3.70182-7.79761 10.26583-8.16526l7.56061-0.44614v-2.12639c0-3.07185-2.07423-4.90959-5.53905-4.90959-3.28251 0-5.33041 1.57492-5.82871 4.04313h-5.35574c0.31499-4.98859 4.56777-8.66407 11.3941-8.66407 6.69466 0 10.97377 3.54432 10.97377 9.08388v19.03421h-5.43472v-4.54194h-0.13065c-1.
160125 3.07185-5.09341 5.01441-8.71623 5.01441C94.52078 70.30088 90.73997 66.94038 90.73997 61.97864zM108.56641 59.4846v-2.17905l-6.8 0.41981c-3.38683 0.23649-5.30306 1.73291-5.30306 4.09579 0 2.41504 1.99523 3.99046 5.04075 3.99046C105.46823 65.81161 108.56641 63.08108 108.56641 59.4846z"}),(0,s.jsx)("path",{d:"M119.34167 79.9889v-4.5946c0.4193 0.10483 1.36425 0.10483 1.83723 0.10483 2.6252 0 4.04313-1.10245 4.90908-3.9378 0-0.05267 0.49931-1.68025 0.49931-1.70658l-9.97616-27.64562h6.14268l6.98432 22.47371h0.10432l6.98433-22.47371h5.9857l-10.34483 29.06304c-2.36186 6.69517-5.0924 8.84789-10.81577 8.84789C121.17891 80.12006 119.76098 80.06739 119.34167 79.9889z"})]})}function h({className:e,...t}){return(0,s.jsxs)("svg",{viewBox:"166 166 761 408",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[(0,s.jsx)("path",{fill:"#FFFFFF",d:"M722.7,170h-352c-110,0-200,90-200,200l0,0c0,110,90,200,200,200h352c110,0,200-90,200-200l0,0 C922.7,260,832.7,170,722.7,170z"}),(0,s.jsx)("path",{fill:"#3C4043",d:"M722.7,186.2c24.7,0,48.7,4.9,71.3,14.5c21.9,9.3,41.5,22.6,58.5,39.5 c16.9,16.9,30.2,36.6,39.5,58.5c9.6,22.6,14.5,46.6,14.5,71.3s-4.9,48.7-14.5,71.3c-9.3,21.9-22.6,41.5-39.5,58.5 c-16.9,16.9-36.6,30.2-58.5,39.5c-22.6,9.6-46.6,14.5-71.3,14.5h-352c-24.7,0-48.7-4.9-71.3-14.5c-21.9-9.3-41.5-22.6-58.5-39.5 c-16.9-16.9-30.2-36.6-39.5-58.5c-9.6-22.6-14.5-46.6-14.5-71.3s4.9-48.7,14.5-71.3c9.3-21.9,22.6-41.5,39.5-58.5 c16.9-16.9,36.6-30.2,58.5-39.5c22.6-9.6,46.6-14.5,71.3-14.5L722.7,186.2 M722.7,170h-352c-110,0-200,90-200,200l0,0 c0,110,90,200,200,200h352c110,0,200-90,200-200l0,0C922.7,260,832.7,170,722.7,170L722.7,170z"}),(0,s.jsx)("path",{fill:"#3C4043",d:"M529.3,384.2v60.5h-19.2V295.3H561c12.9,0,23.9,4.3,32.9,12.9 c9.2,8.6,13.8,19.1,13.8,31.5c0,12.7-4.6,23.2-13.8,31.7c-8.9,8.5-19.9,12.7-32.9,12.7h-31.7V384.2z M529.3,313.7v52.1h32.1 c7.6,0,14-2.6,19-7.7c5.1-5.1,7.7-11.3,7.7-18.3c0-6.9-2.6-13-7.7-18.1c-5-5.3-11.3-7.9-19-7.9h-32.1V313.7z"}),(0,s.jsx)("path",{fill:"#3C4043",d:"M657.9,339.1c14.2,0,25.4,3.8,33.6,11.4c8.2,7.6,12.3,18,12.3,31.2v63h-18.3v-14.2h-0.8 c-7.9,11.7-18.5,17.5-31.7,17.5c-11.3,0-20.7-3.3-28.3-10s-11.4-15-11.4-25c0-10.6,4-19,12-25.2c8-6.3,18.7-9.4,32-9.4 c11.4,0,20.8,2.1,28.1,6.3v-4.4c0-6.7-2.6-12.3-7.9-17c-5.3-4.7-11.5-7-18.6-7c-10.7,0-19.2,4.5-25.4,13.6l-16.9-10.6 C625.9,345.8,639.7,339.1,657.9,339.1z M633.1,413.3c0,5,2.1,9.2,6.4,12.5c4.2,3.3,9.2,5,14.9,5c8.1,0,15.3-3,21.6-9 s9.5-13,9.5-21.1c-6-4.7-14.3-7.1-25-7.1c-7.8,0-14.3,1.9-19.5,5.6C635.7,403.1,633.1,407.8,633.1,413.3z"}),(0,s.jsx)("path",{fill:"#3C4043",d:"M808.2,342.4l-64,147.2h-19.8l23.8-51.5L706,342.4h20.9l30.4,73.4h0.4l29.6-73.4H808.2z"}),(0,s.jsx)("path",{fill:"#4285F4",d:"M452.93,372c0-6.26-0.56-12.25-1.6-18.01h-80.48v33L417.2,387 c-1.88,10.98-7.93,20.34-17.2,26.58v21.41h27.59C443.7,420.08,452.93,398.04,452.93,372z"}),(0,s.jsx)("path",{fill:"#34A853",d:"M400.01,413.58c-7.68,5.18-17.57,8.21-29.14,8.21c-22.35,0-41.31-15.06-48.1-35.36 h-28.46v22.08c14.1,27.98,43.08,47.18,76.56,47.18c23.14,0,42.58-7.61,56.73-20.71L400.01,413.58z"}),(0,s.jsx)("path",{fill:"#FABB05",d:"M320.09,370.05c0-5.7,0.95-11.21,2.68-16.39v-22.08h-28.46 c-5.83,11.57-9.11,24.63-9.11,38.47s3.29,26.9,9.11,38.47l28.46-22.08C321.04,381.26,320.09,375.75,320.09,370.05z"}),(0,s.jsx)("path",{fill:"#E94235",d:"M370.87,318.3c12.63,0,23.94,4.35,32.87,12.85l24.45-24.43 c-14.85-13.83-34.21-22.32-57.32-22.32c-33.47,0-62.46,19.2-76.56,47.18l28.46,22.08C329.56,333.36,348.52,318.3,370.87,318.3z"})]})}},33665:(e,t,r)=>{r.d(t,{Hi:()=>d,Ij:()=>o,tH:()=>c,xt:()=>n});var s=r(6162);let l=".payments";function a(){if("u"<typeof navigator)return null;let e=navigator.userAgent.match(RegExp(`${s.mX}/([\\d.]+)`));return e?e[1]:null}function n(e,t){let r=e.split(".").map(Number),s=t.split(".").map(Number);for(let e=0;e<Math.max(r.length,s.length);e++){let t=r[e]??0,l=s[e]??0;if(t>l)break;if(t<l)return!1}return!0}function i(){if("u"<typeof navigator)return null;let e=navigator.userAgent;return e.includes(s.mX)?e.includes("Android")?"android":"ios":null}function o(){if("android"!==i())return!1;let e=a();return!e||!n(e,"2.0.8")}function d(e,t){let r=a();if(!r||!n(r,"2.0.4"))return null;let s=i();return"ios"===s&&e?`${e}${l}`:"android"===s&&t?`${t}${l}`:null}function c(e,t,r){let{sessionId:s,...l}=t;if(s){let t=new URLSearchParams({scheme:r,...l});return`${e}/api/payment-return?${t.toString()}&sessionId=${s}`}
1let a=btoa(JSON.stringify({scheme:r,...l,_t:Date.now()})).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");return`${e}/api/payment-return/p/${a}`}},40837:(e,t,r)=>{r.d(t,{Ef:()=>u,Y:()=>h,Yl:()=>a,bP:()=>c,f_:()=>o,gx:()=>m,hj:()=>i,k6:()=>l,nS:()=>d,nr:()=>s,p6:()=>n});let s=1e4,l=4e3,a={MAX_ATTEMPTS:3,BASE_DELAY_MS:1e3,MAX_DELAY_MS:5e3},n=3,i=200,o=800,d={POSTAL_CODE_LENGTH:5,POSTAL_CODE_PATTERN:"[0-9]{5}"},c={MAX_LATITUDE:90,MIN_LATITUDE:-90,MAX_LONGITUDE:180,MIN_LONGITUDE:-180},u=200,h={AUTOCOMPLETE:"/api/geocode/autocomplete",PLACE_DETAILS:"/api/geocode/place-details",REVERSE_GEOCODE:"/api/geocode/reverse"},m={OK:200,BAD_REQUEST:400,NOT_FOUND:404,UNPROCESSABLE_ENTITY:422,TOO_MANY_REQUESTS:429,INTERNAL_SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504}},44636:(e,t,r)=>{r.d(t,{fZ:()=>l,pp:()=>s});function s(e,t=0){if(!e||0===e.length)return t;let r=e.map(e=>e.minOrderValue).filter(e=>"number"==typeof e&&!isNaN(e));return 0===r.length?t:Math.min(...r)}function l(e,t){return!t||0===t.length||t.some(t=>t.postalCode===e)}},50216:(e,t,r)=>{function s(e){let t=[e?.deliveryTime,e?.pickupTime].filter(e=>void 0!==e&&e>0);if(0===t.length)return"â";let r=Math.min(...t),s=Math.max(...t);return r===s?`${r} Min.`:`${r} - ${s} Min.`}r.d(t,{B3:()=>o,LE:()=>s,So:()=>u,Zj:()=>h,aG:()=>d,pb:()=>c,pn:()=>a});let l=[7,1,2,3,4,5,6],a=6e4;function n(e){let[t,r]=e.split(":").map(Number);return 60*t+r}function i(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function o(e,t=new Date,r,s){let a,d=60*t.getHours()+t.getMinutes(),c=[],u=!1,m=r?.find(e=>e.date===i(t));if(m)"00:00"!==m.from||"00:00"!==m.to?(c=[{from:n(m.from),to:n(m.to),fromStr:m.from,toStr:m.to}],u=!0):u=!1;else if(e&&e.length>0){let r=l[t.getDay()];u=(c=e.filter(e=>e.day===r).map(e=>({from:n(e.from),to:n(e.to),fromStr:e.from,toStr:e.to})).sort((e,t)=>e.from-t.from)).length>0}let p=!1,f=null,g=null;for(let e of c){var x,C;if(x=e.from,C=e.to,d>=x&&d<C){p=!0,f=e.toStr;break}d<e.from&&!g&&(g=e.fromStr)}let y=p;if(void 0!==s&&e&&e.length>0)a=h(e,s,r,t).slots.length>0;else if(!(a=p||null!==g)&&e&&e.length>0){for(let r=1;r<3;r++)if(function(e,t,r){let s=new Date(t);s.setDate(s.getDate()+r);let a=l[s.getDay()];return e.some(e=>e.day===a)}(e,t,r)){a=!0;break}}let v=null;return p||(v=m&&g?`\xd6ffnet um ${g}`:g?`Das Restaurant \xf6ffnet heute um ${g} Uhr`:u?"Das Restaurant hat heute bereits geschlossen":"Das Restaurant hat heute geschlossen"),{isCurrentlyOpen:p,isOpenToday:u,canOrderAsap:y,canOrderScheduled:a,nextOpeningToday:g,closingTime:f,closedMessage:v}}function d(e){return!e.canOrderAsap&&e.canOrderScheduled}function c(e,t,r=new Date){if(!e||0===e.length)return null;for(let s=0;s<3;s++){let a=new Date(r);a.setDate(a.getDate()+s);let i=l[a.getDay()],o=0===s,d=o?60*r.getHours()+r.getMinutes():0;for(let r of e.filter(e=>e.day===i).sort((e,t)=>n(e.from)-n(t.from))){let e,s=n(r.from),l=n(r.to),a=l-15;if(o&&d>=s&&d<l)e=d+t;else{if(!(d<s))continue;e=s+t}let i=15*Math.ceil(e/15);if(i<=a)return function(e){let t=Math.floor(e/60);return`${String(t).padStart(2,"0")}:${String(e%60).padStart(2,"0")}`}(i)}}return null}function u(e,t,r,s,l=new Date){if(!e||0===e.length)return[];let a=new Date(l);a.setDate(l.getDate()+r);let n=function(e,t,r){let s=r?.find(e=>e.date===i(t));if(s)return"00:00"===s.from&&"00:00"===s.to?[]:[{from:s.from,to:s.to}];let l=t.getDay(),a=0===l?7:l;return e.filter(e=>e.day===a).map(e=>({from:e.from,to:e.to}))}(e,a,s);if(0===n.length)return[];let o=60*l.getHours()+l.getMinutes(),d=[];return n.forEach(e=>{let s,[l,a]=e.from.split(":").map(Number),[n,i]=e.to.split(":").map(Number),c=60*l+a,u=60*n+i,h=15*Math.floor((u-1)/15);if(0===r)if(o>=c&&o<u)s=o+t;else{if(!(o<c))return;s=c+t}else s=c+t;let m=15*Math.ceil(s/15);for(let e=m;e<=h;e+=15){let t=Math.floor(e/60),r=e%60;d.push(`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`)}}),d.sort()}function h(e,t,r,s=new Date){for(let l=0;l<3;l++){let a=u(e,t,l,r,s);if(a.length>0)return{dayOffset:l,slots:a}}return{dayOffset:0,slots:[]}}},50690:(e,t,r)=>{r.d(t,{Ay:()=>n,K$:()=>a});var s=r(12115);let l=0,a=e=>{let t=(0,s.useRef)(!1);(0,s.useEffect)(()=>(e&&(l++,t.current=!0,1===l&&(document.documentElement.style.overflow="clip")),()=>{t.current&&(l--,t.current=!1,0===l&&(document.documentElement.style.overflow=""))}),[e])},n=a},51790:(e,t,r)=>{r.d(t,{P:()=>n});var s=r(95155),l=r(12115),a=r(1868);function n({amount:e,variant:t="cart"}){let[r,i]=(0,l.useState)(!1);if(e<=0)return null;let o="checkout"===t;return(0,s.jsxs)("div",{className:o?"flex justify-between text-sm":"flex justify-between items-center text-sm",children:[(0,s.jsxs)("span",{className:"text-amber-700 flex items-center gap-1",children:[a.Bm.LABEL,(0,s.jsxs)("button",{type:"button",className:"relative text-amber-500 hover:text-amber-700 transition-colors",onClick:()=>i(!r),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),"aria-label":a.Bm.INFO_ARIA_LABEL,children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})}),r&&(0,s.jsxs)("div",{className:"absolute z-50 bottom-full left-1/2 -translate-x-1/2 mb-2 w-56 p-2.5 text-xs text-gray-700 bg-white rounded-lg shadow-lg border border-gray-200 leading-relaxed",children:[a.Bm.TOOLTIP,(0,s.jsx)("div",{className:"absolute top-full left-1/2 -translate-x-1/2 -mt-px",children:(0,s.jsx)("div",{className:"border-4 border-transparent border-t-white"})})]})]})]}),(0,s.jsxs)("span",{className:o?"text-amber-700":"font-semibold text-amber-700",style:o?void 0:{fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap"},children:[e.toFixed(2)," â¬"]})]})}},51902:(e,t,r)=>{r.d(t,{z:()=>a});var s=r(95155);r(12115);var l=r(31864);let a=({deliveryType:e,onDeliveryTypeChange:t,showSlidingBackgroun
1d:r=!0,pickupDiscountLabel:a,deliveryEnabled:n=!0,pickupEnabled:i=!0})=>!n&&i?(0,s.jsx)("div",{className:"flex bg-gray-100 rounded-lg p-1",children:(0,s.jsx)("div",{className:"flex-1 py-2 px-4 text-sm font-medium rounded-md text-center",style:{backgroundColor:"var(--color-primary)",color:"white"},children:(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)(l.Nw,{className:"w-5 h-5"}),"Nur Abholung"]})})}):!i&&n?(0,s.jsx)("div",{className:"flex bg-gray-100 rounded-lg p-1",children:(0,s.jsx)("div",{className:"flex-1 py-2 px-4 text-sm font-medium rounded-md text-center",style:{backgroundColor:"var(--color-primary)",color:"white"},children:(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)(l.eM,{className:"w-5 h-5"}),"Nur Lieferung"]})})}):(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"relative flex bg-gray-100 rounded-lg p-1",children:[r&&(0,s.jsx)("div",{className:"absolute top-1 bottom-1 left-1 rounded-md transition-transform duration-300 ease-in-out",style:{backgroundColor:"var(--color-primary)",width:"calc(50% - 4px)",transform:"delivery"===e?"translateX(0)":"translateX(calc(100% + 8px))"}}),(0,s.jsx)("button",{onClick:()=>t("delivery"),className:`relative z-10 flex-1 py-2 px-4 text-sm font-medium rounded-md transition-colors duration-300 focus:outline-none ${"delivery"===e?"text-white":"text-gray-600 hover:text-gray-900"}`,children:(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)(l.eM,{className:"w-5 h-5"}),"Lieferung"]})}),(0,s.jsx)("button",{onClick:()=>t("pickup"),className:`relative z-10 flex-1 py-2 px-4 text-sm font-medium rounded-md transition-colors duration-300 focus:outline-none ${"pickup"===e?"text-white":"text-gray-600 hover:text-gray-900"}`,children:(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)(l.Nw,{className:"w-5 h-5"}),"Abholung"]})})]}),a&&(0,s.jsx)("div",{className:"mt-2 flex justify-center",children:(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-semibold",style:{backgroundColor:"#FEF3C7",color:"#B45309"},children:[a," bei Abholung"]})})]})},82002:(e,t,r)=>{r.d(t,{t:()=>m});var s=r(12115),l=r(31492),a=r(1e3),n=r(44636);function i(e,t){let r=e.filter(e=>e.postalCode===t);if(!(r.length<=1)&&1!==new Set(r.map(e=>`${e.minOrderValue}-${e.deliveryFee}`)).size)return r}function o(e,t){if(t.sublocality){let r=t.sublocality.toLowerCase(),s=e.filter(e=>e.city.toLowerCase()===r);if(1===s.length)return{area:s[0],method:"tier1a-sublocality"};let l=e.filter(e=>{var r,s;let l,a;return r=e.city,s=t.sublocality,l=r.toLowerCase(),!!(l===(a=s.toLowerCase())||l.split(/\s+/).some(e=>e===a)||l.endsWith(" "+a))});if(1===l.length)return{area:l[0],method:"tier1a-sublocality"}}if(t.locality){let r=t.locality.toLowerCase(),s=e.filter(e=>e.city.toLowerCase()===r);if(1===s.length)return{area:s[0],method:"tier1b-locality"}}if(t.coordinates?.lat!=null&&t.coordinates?.lng!=null){let r=function(e,t,r){let s=e.filter(e=>e.coordinates?.lat!=null&&e.coordinates?.lng!=null);if(0===s.length)return;let l=s.map(e=>{var s;let l;return{area:e,dist:12742*Math.atan2(Math.sqrt(l=Math.sin(((s=e.coordinates.lat)-t)*Math.PI/180/2)**2+Math.cos(t*Math.PI/180)*Math.cos(s*Math.PI/180)*Math.sin((e.coordinates.lng-r)*Math.PI/180/2)**2),Math.sqrt(1-l))}}).sort((e,t)=>e.dist-t.dist),a=l[0];if(1===l.length)return a.area;let n=l[1];if(`${a.area.minOrderValue}-${a.area.deliveryFee}`==`${n.area.minOrderValue}-${n.area.deliveryFee}`||n.dist-a.dist>=.5)return a.area}(e,t.coordinates.lat,t.coordinates.lng);if(r)return{area:r,method:"tier1.3-distance"}}}var d=r(4643),c=r(29734),u=r(21123),h=r(9306);function m(){let{cart:e,deliveryAddress:t,setDeliveryAddress:r,calculateDeliveryCost:m,addSavedAddress:p,loadSavedAddress:f,removeSavedAddress:g,savedAddresses:x,showAddressModal:C,setShowAddressModal:y}=(0,l._$)(),{shop:v}=(0,a.q)(),{trackEvent:b}=(0,c.z1)(),[N,E]=(0,s.useState)(""),[w,j]=(0,s.useState)(!1),[A,k]=(0,s.useState)(null),[L,M]=(0,s.useState)(!0),[S,T]=(0,s.use
1State)(null),[R,_]=(0,s.useState)(e.deliveryCost),[I,O]=(0,s.useState)(null),[D,$]=(0,s.useState)(null),[P,z]=(0,s.useState)("autocomplete");(0,s.useEffect)(()=>{t?_(m(t.postalCode,t.coordinates,e.subtotal,t)):_(e.deliveryCost)},[t,e.deliveryCost,e.subtotal,m]);let F=(0,s.useCallback)(()=>{t||b({category:"Address",action:"Modal Close"}),E(""),k(null),O(null),$(null),y(!1)},[t,b,y]);(0,s.useEffect)(()=>{if(!C)return;let e=e=>{"Escape"===e.key&&F()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[C,F]);let H=(0,s.useCallback)((e,t,s,l)=>{if(void 0===t.legacyPlzId){u.wd("Delivery area missing legacyPlzId â address rejected",{level:"error",tags:{source:"address-matching"},extra:{city:t.city,postalCode:t.postalCode}}),T("Liefergebiet konnte nicht zugeordnet werden. Bitte erneut versuchen.");return}let a={...e,plzid:t.legacyPlzId,matchMethod:s,matchSource:l};M(!0),T(null),r(a),a.street&&a.houseNumber&&p(a),O(null),$(null),y(!1)},[r,p,y]),B=(0,s.useCallback)((e,s="autocomplete")=>{let l=e;if(!(0,n.fZ)(l.postalCode,v?.deliveryAreas)){M(!1),T(`Wir liefern aktuell nur im Raum ${v?.address?.city||"unserer Region"}.`),t?.plzid===void 0&&r(null),b({category:"Address",action:"Outside Area",name:l.postalCode});return}if(void 0!==l.plzid){let e=v?.deliveryAreas?.find(e=>e.legacyPlzId===l.plzid);if(e&&function(e,t,r){if(!t.sublocality)return!0;let s=i(r?.filter(e=>e.postalCode===t.postalCode)??[],t.postalCode);if(!s)return!0;let{plzid:l,...a}=t,n=o(s,a);return!n||n.area.legacyPlzId===e.legacyPlzId}(e,l,v?.deliveryAreas)){H(l,e,l.matchMethod||"tier0-plzid",s),b({category:"Address",action:"Selected",name:s});return}if(e){let{plzid:e,...t}=l;l=t}}let a=v?.deliveryAreas?i(v.deliveryAreas,l.postalCode):void 0;if(!a){let e=v?.deliveryAreas?.filter(e=>e.postalCode===l.postalCode),t=e?.[0];if(!t){u.wd("No delivery area found for non-ambiguous PLZ",{level:"error",tags:{source:"address-matching"},extra:{postalCode:l.postalCode,areaCount:v?.deliveryAreas?.length}}),T("Liefergebiet konnte nicht zugeordnet werden. Bitte erneut versuchen.");return}let r=1===(v?.deliveryAreas?.filter(e=>e.postalCode===l.postalCode)||[]).length?"unambiguous":"same-price";H(l,t,r,s),b({category:"Address",action:"Selected",name:s});return}let d=o(a,l);if(d){H(l,d.area,d.method,s),b({category:"Address",action:"Auto-Matched",name:`${l.postalCode} ${d.area.city}`});return}O(l),$(a),z(s);let c=!!l.sublocality,h=l.coordinates?.lat!=null;b({category:"Address",action:"Picker Shown",name:`${l.postalCode} sub=${c} coords=${h}`,value:a.length})},[v?.deliveryAreas,v?.address?.city,r,H,t?.plzid,b]),V=(0,s.useCallback)((e,t,r)=>{let s={postalCode:t,city:e.city};if("plz-first"===r){let r=v?.deliveryAreas?.filter(e=>e.postalCode===t)??[];O(s),$(r.length>0?r:[e]),z("plz-input"),b({category:"Address",action:"Picker Shown",name:`${t} plz-first`,value:r.length})}else h.Z({category:"address",message:`PLZ selected: ${t} ${e.city} (${r})`,level:"info",data:{postalCode:t,city:e.city,method:r,deliveryFee:e.deliveryFee}}),H(s,e,r,"plz-input"),b({category:"Address",action:"PLZ Selected",name:`${t} ${r}`})},[v?.deliveryAreas,H,b]),Z=(0,s.useCallback)(e=>{I&&(H(I,e,"picker",P),b({category:"Address",action:"Picker Selected",name:`${I.postalCode} ${e.city}`}))},[I,P,H,b]),U=(0,s.useCallback)(()=>{O(null),$(null),b({category:"Address",action:"Picker Cancelled"})},[b]),G=(0,s.useMemo)(()=>{if(!t?.postalCode||!v?.deliveryAreas)return null;if(void 0!==t.plzid){let e=v.deliveryAreas.find(e=>e.legacyPlzId===t.plzid);if(e)return e.freeDeliveryFrom??null}let e=v.deliveryAreas.find(e=>e.postalCode===t.postalCode);return e?.freeDeliveryFrom??null},[t,v?.deliveryAreas]),W=(0,s.useCallback)(()=>{if(b({category:"Address",action:"GPS Clicked"}),!navigator.geolocation){b({category:"Address",action:"GPS Unsupported"}),k("Geolocation wird von Ihrem Browser nicht unterst\xfctzt");return}j(!0),k(null),navigator.geolocation.getCurrentPosition(async e=>{try{let{latitude:s,longitude:l}=e.coords,a=await (0,d.Rt)(s,l);if(a.success&&a.address){let{postalCode:e,city:n}=a.address,o=v?.deliveryAreas?.filter(t=>t.postalCode===e)??[];if(0===o.length){T(`Wir liefern aktuell nicht nach ${n||e}.`),t?.plzid===void 0&&r(null),b({category:"Address",action:"Outside Area",name:e});return}let d={postalCode:e,city:n,coordinates:{lat:s,lng:l},sublocality:a.address.sublocality,locality:a.address.locality},c=i(o,e);if(c)O(d),$(c),z("gps"),b({category:"Address",action:"Picker Shown",name:`${e} gps`,value:c.length});
1else{let t=1===o.length?"unambiguous":"same-price";H(d,o[0],t,"gps"),b({category:"Address",action:"PLZ Selected",name:`${e} gps`})}}else k("Adresse konnte nicht ermittelt werden")}catch{k("Adresse konnte nicht ermittelt werden")}finally{j(!1)}},e=>{e.code===e.PERMISSION_DENIED?k('Standortzugriff verweigert. Bitte in den Browser-Einstellungen unter "Datenschutz â Ortungsdienste" erlauben.'):e.code===e.TIMEOUT?k("Standortermittlung dauert zu lange. Bitte versuche es erneut."):k("Standort konnte nicht ermittelt werden."),j(!1)},{enableHighAccuracy:!0,timeout:1e4,maximumAge:0})},[v?.deliveryAreas,H,r,t?.plzid,b]),K=(0,s.useCallback)((e,t="unknown")=>{!1===e?y(!1):(b({category:"Address",action:"Modal Open",name:t}),y(!0))},[b,y]),Y=(0,s.useCallback)(e=>{let t=x.find(t=>t.id===e);if(t){if(void 0!==t.address.plzid){b({category:"Address",action:"Selected",name:"saved"}),r({...t.address,matchMethod:"tier0-plzid",matchSource:"saved"}),y(!1);return}B(t.address,"saved")}},[x,b,r,B,y]),X=null!==t&&!t.street&&!t.houseNumber;return{showAddressModal:C,setShowAddressModal:K,addressInput:N,setAddressInput
1:E,isGpsLoading:w,isResolvingArea:!1,addressError:A,isDeliveryAreaValid:L,deliveryAreaError:S,calculatedDeliveryCost:R,freeDeliveryFrom:G,handleCloseAddressModal:F,handleAddressSelected:B,handlePostalCodeSelected:V,handleGpsClick:W,savedAddresses:x,loadSavedAddress:Y,removeSavedAddress:g,deliveryAddress:t,postalCodeOnly:X,pickerAddress:I,pickerAreas:D,handleZoneSelected:Z,handlePickerCancel:U}}},83511:(e,t,r)=>{r.d(t,{vF:()=>o});var s=r(41463);let l={database:{uri:s.env.MONGODB_URI||"",dbName:s.env.MONGODB_DB_NAME||"",options:{maxPoolSize:parseInt(s.env.MONGODB_MAX_POOL_SIZE||"100"),minPoolSize:parseInt(s.env.MONGODB_MIN_POOL_SIZE||"5"),maxIdleTimeMS:parseInt(s.env.MONGODB_MAX_IDLE_TIME||"120000"),serverSelectionTimeoutMS:parseInt(s.env.MONGODB_SERVER_SELECTION_TIMEOUT||"5000")}},security:{jwtSecret:s.env.JWT_SECRET||"",jwtExpiresIn:s.env.JWT_EXPIRES_IN||"7d",corsOrigin:s.env.CORS_ORIGIN||"http://localhost:3000"},rateLimit:{max:parseInt(s.env.RATE_LIMIT_MAX||"1000"),windowMs:parseInt(s.env.RATE_LIMIT_WINDOW||"900000")},externalApis:{paymentApiKey:s.env.PAYMENT_API_KEY,mapsApiKey:s.env.MAPS_API_KEY,emailApiKey:s.env.EMAIL_API_KEY,stripeSecretKey:s.env.STRIPE_SECRET_KEY,paypalClientSecret:s.env.PAYPAL_CLIENT_SECRET},email:{smtpHost:s.env.SMTP_HOST,smtpPort:parseInt(s.env.SMTP_PORT||"587"),smtpUser:s.env.SMTP_USER,smtpPass:s.env.SMTP_PASS,fromEmail:s.env.FROM_EMAIL||"[email protected]"},shop:{defaultShopId:s.env.DEFAULT_SHOP_ID||"",cacheTtl:parseInt(s.env.SHOP_CACHE_TTL||"300"),cacheMaxSize:parseInt(s.env.SHOP_CACHE_MAX_SIZE||"1000")},cache:{revalidateSecret:s.env.REVALIDATE_SECRET||"",staticCacheTtl:parseInt(s.env.STATIC_CACHE_TTL||"3600")},logging:{level:s.env.LOG_LEVEL||"debug",enableMonitoring:"true"===s.env.ENABLE_MONITORING},development:{debug:"true"===s.env.DEBUG,mockExternalApis:"true"===s.env.MOCK_EXTERNAL_APIS,tlsRejectUnauthorized:"0"!==s.env.NODE_TLS_REJECT_UNAUTHORIZED},healthCheck:{timeout:parseInt(s.env.HEALTH_CHECK_TIMEOUT||"5000")},api:{adminSecret:s.env.ADMIN_SECRET||""},features:{analytics:"true"===s.env.FEATURE_ANALYTICS,abTesting:"true"===s.env.FEATURE_AB_TESTING,maintenanceMode:"true"===s.env.FEATURE_MAINTENANCE_MODE}};var a=r(21123);let n={errors:[],maxEntries:1e3};function i(e,t,r){let s=l.logging.level,i=["error","warn","info","debug"];if(i.indexOf(e)>i.indexOf(s))return;let o={timestamp:new Date().toISOString(),level:e,message:t,...r};if(r?.error&&(o.stack=r.error.stack),"debug"===l.logging.level){let t=function(e){let t=e.timestamp,r=e.level.toUpperCase().padEnd(5),s=e.message,l="";e.context&&(l=` | ${JSON.stringify(e.context)}`);let a="";if(e.endpoint||e.requestId){let t=[];e.requestId&&t.push(`req:${e.requestId}`),e.endpoint&&t.push(`${e.method||"GET"} ${e.endpoint}`),e.statusCode&&t.push(`${e.statusCode}`),e.responseTime&&t.push(`${e.responseTime}ms`),a=` [${t.join(" | ")}]`}return`${t} ${r} ${s}${a}${l}`}(o);switch(e){case"error":console.error(t),o.stack&&console.error(o.stack);break;case"warn":console.warn(t);break;case"info":console.info(t);break;case"debug":console.debug(t)}}("error"===e||"warn"===e)&&(n.errors.push(o),n.errors.length>n.maxEntries&&(n.errors=n.errors.slice(-n.maxEntries))),"error"===e&&a.wd(t,{level:"error",extra:r})}let o={error:(e,t)=>i("error",e,t),warn:(e,t)=>i("warn",e,t),info:(e,t)=>i("info",e,t),debug:(e,t)=>i("debug",e,t)}},85253:(e,t,r)=>{r.d(t,{d:()=>a});var s=r(12115),l=r(33665);function a(){let[e,t]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{t((0,l.Ij)())},[]),e}},89288:(e,t,r)=>{r.d(t,{g:()=>w});var s=r(95155),l=r(12115),a=r(29734);let n=/\b(\d{5})\b/,i=/^\d{5}$/,o=({deliveryAreas:e,onAreaSelected:t,onOutsideArea:r,isOpen:o=!1,savedAddresses:d=[],currentPostalCode:c=null,onSavedAddressSelect:u,onSavedAddressDelete:h,onGpsClick:m,isGpsLoading:p})=>{let{trackEvent:f}=(0,a.z1)(),[g,x]=(0,l.useState)(""),[C,y]=(0,l.useState)(!1),v=(0,l.useRef)(null),b=(0,l.useRef)(!1),N=(0,l.useRef)(null),E=(0,l.useMemo)(()=>(function(e){let t=new Map;for(let r of e){let e=t.get(r.postalCode);e?e.push(r):t.set(r.postalCode,[r])}let r=[];for(let[e,s]of t.entries()){let t,l=[...new Set(s.map(e=>e.city))],a=s.map(e=>e.deliveryFee),n=Math.min(...a),i=Math.max(...a),o=n===i&&s.every(e=>e.minOrderValue===s[0].minOrderValue);if(o)t=0===n?"Kostenlose Lieferung":`${n.toFixed(2).replace(".",",")} â¬`;else{let e=0===n?"0":n.toFixed(2).replace(".",","),r=i.toFixed(2).replace(".",",");t=`${e}â${r} â¬`}let d=s.map(e=>e.minOrderValue),c=Math.min(...d),u=Math.max(...d),h=c===u?`ab ${c.toFixed(2).replace(".",",")} â¬`:`ab ${c.toFixed(2).replace(".",",")}â${u.toFixed(2).replace(".",",")} â¬`;r.push({postalCode:e,areas:s,cityNames:l,hasUniformPricing:o,feeLabel:t,minOrderLabel:h})}return r})(e),[e]),w=(0,l.useMemo)(()=>(function(e,t){if(t.length<2)return[];let r=t.trim(),s=r.toLowerCase(),l=r.match(n),a=l?l[1]:r;return e.filter(e=>e.postalCode.startsWith(a)||e.cityNames.some(e=>e.toLowerCase().includes(s))).slice(0,8)})(E,g),[E,g]),j=(0,l.useMemo)(()=>{let e=[];for(let t of w)if(t.hasUniformPricing)e.push({key:t.postalCode,postalCode:t.postalCode,area:t.areas[0],displayName:t.cityNames.join(", "),method:1===t.areas.length?"unambiguou
1s":"same-price"});else for(let r of t.areas)e.push({key:`${t.postalCode}-${r.legacyPlzId}`,postalCode:t.postalCode,area:r,displayName:r.city,method:"picker"});return e},[w]);(0,l.useMemo)(()=>new Set(j.map(e=>e.postalCode)).size>1,[j]),(0,l.useEffect)(()=>{o&&(b.current=!1)},[o]),(0,l.useEffect)(()=>{if(o&&window.innerWidth>=768){let e=setTimeout(()=>{v.current?.focus()},100);return()=>clearTimeout(e)}},[o]),(0,l.useEffect)(()=>{g.length>=2&&0===w.length&&!b.current&&(b.current=!0,f({category:"Address",action:"PLZ No Match",name:g.trim()}))},[g,w.length,f]);let A=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=j.filter(e=>"picker"===e.method);if(e.length>=2&&C){let t=e[0].postalCode;A.current!==t&&(A.current=t,f({category:"Address",action:"Zone Cards Shown",name:t,value:e.length}))}},[j,C,f]);let k=(0,l.useCallback)(e=>{let t=e.target.value.replace(/[\x00-\x1F\x7F-\x9F]/g,"").replace(/<[^>]*>/g,"").slice(0,60);x(t),y(t.length>=2),N.current&&(clearTimeout(N.current),N.current=null),t.length>=2&&(N.current=setTimeout(()=>{f({category:"Address",action:"PLZ Search",name:t})},800))},[f]),L=(0,l.useCallback)((e,r=!1)=>{y(!1),x(`${e.postalCode} ${e.displayName}`),f({category:"Address",action:"picker"===e.method?"Zone Card Selected":"PLZ Selected",name:`${e.postalCode} ${e.area.city}${r?" (auto)":""}`,value:e.area.deliveryFee}),t(e.area,e.postalCode,e.method)},[t,f]),M=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=g.trim();if(!i.test(e)){M.current=null;return}if(1!==j.length)return;let t=j[0];if("picker"===t.method||t.postalCode!==e||M.current===e)return;let r=setTimeout(()=>{M.current=e,L(t,!0)},350);return()=>clearTimeout(r)},[g,j,L]);let S=(0,l.useCallback)(e=>{if("Enter"!==e.key||1!==j.length)return;let t=j[0];"picker"!==t.method&&(e.preventDefault(),L(t))},[j,L]),T=(0,l.useCallback)(()=>{w.length>0&&y(!0)},[w.length]),R=(0,l.useCallback)(()=>{x(""),y(!1),b.current=!1,N.current&&(clearTimeout(N.current),N.current=null)},[]);(0,l.useEffect)(()=>()=>{N.current&&clearTimeout(N.current)},[]);let _=(0,l.useMemo)(()=>[...d].sort((e,t)=>e.isDefault?-1:t.isDefault?1:(t.lastUsed||t.createdAt)-(e.lastUsed||e.createdAt)),[d]),I=(0,l.useCallback)(e=>!!c&&e.address.postalCode===c,[c]),O=g.length>=2&&0===w.length,D=d.length>0;return(0,s.jsxs)("div",{className:"relative",children:[D&&(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("h4",{className:"text-base font-bold text-gray-900 mb-2",children:"Gespeicherte Liefergebiete"}),(0,s.jsx)("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:_.map(e=>(0,s.jsxs)("div",{onClick:()=>u?.(e.id),className:`flex items-center justify-between p-3 border rounded-lg cursor-pointer transition-all ${I(e)?"border-green-500 bg-green-50":"border-gray-200 bg-white hover:border-gray-300 hover:bg-gray-50"}`,"data-testid":`saved-address-${e.id}`,children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)("span",{className:"font-medium text-gray-900 truncate",children:e.firstName||e.lastName?[e.firstName,e.lastName].filter(Boolean).join(" "):e.label?e.label:"Gespeichertes Liefergebiet"})}),(0,s.jsxs)("p",{className:"text-sm text-gray-600 truncate",children:[e.address.street?`${e.address.street} ${e.address.houseNumber??""}, `:"",e.address.postalCode," ",e.address.city]})]}),h&&(0,s.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),h(e.id)},className:"ml-2 p-1.5 text-red-500 hover:text-red-700 hover:bg-red-50 rounded transition-colors",title:"Liefergebiet l\xf6schen","aria-label":"Liefergebiet l\xf6schen","data-testid":`delete-saved-address-${e.id}`,children:(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]},e.id))}),(0,s.jsx)("div",{className:"mt-3 border-t pt-3",children:(0,s.jsx)("p",{className:"text-sm text-gray-500 mb-2",children:"Oder neue PLZ eingeben:"})})]}),!D&&(0,s.jsx)("label",{htmlFor:"postal-code-input",className:"block text-base font-bold text-gray-900 mb-2",children:"PLZ oder Ort eingeben"}),(0,s.jsxs)("div",{className:"pb-2 relative",children:[(0,s.jsx)("button",{type:"button",onClick:m,disabled:p,className:"absolute left-2 top-1/2 -translate-y-1/2 w-9 h-9 flex items-center justify-center rounded-full text-gray-400 hover:text-theme-primary hover:bg-theme-primary/10 active:scale-95 transition-all disabled:opacity-40 disabled:cursor-not-allowed",title:"Standort verwenden","aria-label":"Aktuellen Standort verwenden","data-testid":"gps-button",children:p?(0,s.jsxs)("svg",{className:"w-5 h-5 animate-spin",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):(0,s.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"}),(0,s.jsx)("circle",{cx:"12",cy:"10",r:"3"})]})}),(0,s.jsx)("input",{ref:v,id:"postal-code-input",type:"text",value:g,onChange:k,onFocus:T,onKeyDown:S,placeholder:"z.B. 85084 oder Reichertshofen",className:"w-full pl-12 pr-10 py-4 border-2 border-gray-200 rounded-lg focus:ring-2 focus:ring-theme-primary focus:border-theme-primary text-base font-medium hover:border-gray-300 hover:bg-gray-50 transition-all","aria-label":"PLZ oder Ort eingeben","aria-autocomplete":"list","aria-expanded":C&&w.length>0,"aria-haspopup":"listbox",autoComplete:"off","data-testid":"postal-code-input"}),g&&(0,s.jsx)("button",{type:"button",onClick:R,className:"absolute right-3 top-1/2 -translate-y-1/2 w-6 h-6 rounded-full bg-gray-200 hover:bg-gray-300 flex items-center justify-center transition-colors",title:"Eingabe l\xf6schen","aria-label":"Eingabe l\xf6schen","data-testid":"clear-plz-button",children:(0,s.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),C&&j.length>0&&(0,s.jsx)("div",{className:"mt-3 space-y-2",role:"listbox","aria-label":"Liefergebiete","data-testid":"plz-suggestions",children:j.map(e=>{let t=e.area.deliveryFee,r=e.area.minOrderValue,l=t>0?`Lieferkosten ${t.toFixed(2).replace(".",",")} \u20AC`:"Kostenlose Lieferung";return(0,s.jsxs)("button",{type:"button",role:"option","aria-selected":!1,onMouseDown:e=>e.preventDefault(),onClick:()=>L(e),className:"w-full flex items-center gap-2 px-3 py-2 text-left rounded-md border border-gray-200 bg-white hover:bg-theme-primary/5 active:scale-[0.98] transition-[border-color,background-color,transform] duration-150 group cursor-pointer","data-testid":`plz-suggestion-${e.postalCode}`,children:[(0,s.jsxs)("svg",{className:"w-4 h-4 text-gray-400 group-hover:text-theme-primary flex-shrink-0 transition-colors",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"}),(0,s.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("span",{className:"text-sm font-medium text-gray-900 block",children:[(0,s.jsxs)("span",{className:"text-gray-500 font-normal",children:[e.postalCode," "]}),e.displayName]}),(0,s.jsxs)("span",{className:"text-xs text-gray-500 block",children:[l," \xb7 Mindestbestellwert ",r.toFixed(2).replace(".",","),"â¬"]})]})]},e.key)})}),O&&(0,s.jsx)("div",{className:"mt-3 p-3 bg-orange-50 border border-orange-200 rounded-lg",role:"status","data-testid":"plz-no-match",children:(0,s.jsxs)("p",{className:"text-sm text-orange-800",children:[(0,s.jsx)("span",{className:"font-medium",children:"Kein Liefergebiet gefunden."})," ","Wir liefern aktuell nicht in diesen Ort. Bitte eine andere PLZ eingeben."]})})]})},d=({suggestions:e,onSelect:t,isLoading:r})=>{if(r)return(0,s.jsx)("div",{className:"mt-3 bg-white rounded-lg border border-gray-200 shadow-sm flex items-center justify-center p-6",children:(0,s.jsxs)("div",{className:"text-center text-gray-500",children:[(0,s.jsxs)("svg",{className:"animate-spin h-5 w-5 mx-auto mb-2",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Lade Vorschl\xe4ge..."]})});if(0===e.length)return null;let l=e.slice(0,5);return(0,s.jsx)("div",{className:"mt-3 bg-white rounded-lg","data-testid":"address-suggestions",children:l.map((e,r)=>(0,s.jsxs)("button",{onClick:()=>t(e),className:"w-full flex items-center gap-3 p-4 rounded-lg hover:bg-gray-100 active:bg-gray-200 transition-colors cursor-pointer text-left first:rounded-t-lg last:rounded-b-lg","data-testid":`suggestion-${r}`,children:[e.isGps&&(0,s.jsxs)("svg",{className:"w-6 h-6 text-gray-900 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("div",{className:"font-medium text-gray-900",children:e.mainText}),(0,s.jsx)("div",{className:"text-sm text-gray-600 mt-0.5",children:e.secondaryText})]})]},e.id))})};var c=r(4643),u=r(40837),h=r(21123),m=r(83511);let p="gpg_gps_address_cache",f="Bitte noch die Hausnummer erg\xe4nzen.",g=new Set(["INCOMPLETE_ADDRESS","INVALID_REQUEST","TIMEOUT","NETWORK_E
1RROR"]),x=new Set(["TIMEOUT","NETWORK_ERROR"]),C=({value:e,onChange:t,onAddressSelected:r,onGpsClick:n,isGpsLoading:i,placeholder:o="Stra\xdfe eingeben...",isOpen:C=!1,savedAddresses:y=[],currentAddress:v=null,onSavedAddressSelect:b,onSavedAddressDelete:N,isResolvingArea:E=!1,searchScope:w,rightSlot:j})=>{let{trackEvent:A}=(0,a.z1)(),[k,L]=(0,l.useState)([]),[M,S]=(0,l.useState)(!1),[T,R]=(0,l.useState)(!1),[_,I]=(0,l.useState)(!1),[O,D]=(0,l.useState)(null),[$,P]=(0,l.useState)(!1),[z,F]=(0,l.useState)(null),[H,B]=(0,l.useState)(null),V=(0,l.useRef)(new Set),Z=(0,l.useRef)(null),U=(0,l.useRef)((0,c.F$)()),G=(0,l.useRef)(null),W=(0,l.useRef)(null),K=(0,l.useRef)(0),Y=(0,l.useMemo)(()=>{let t=[];return O&&$&&e.length<u.p6&&t.push({id:"gps",placeId:"gps",mainText:`${O.street} ${O.houseNumber}`,secondaryText:`${O.postalCode} ${O.city}`,fullAddress:`${O.street} ${O.houseNumber}, ${O.postalCode} ${O.city}`,isGps:!0}),t.push(...k),t},[O,$,k,e.length]),X=(0,l.useCallback)(async e=>{if(e.length<u.p6){L([]),I(!1),S(!1);return}W.current?.abort();let t=new AbortController;W.current=t;let r=++K.current;S(!0),F(null);try{let s=w?`${e}, ${w}`:e,l=await (0,c.j8)(s,U.current,"de","de",!!w,{signal:t.signal});if(r!==K.current)return;if(l.success&&l.suggestions){let e=l.suggestions.map(e=>({id:e.placeId,placeId:e.placeId,mainText:e.mainText,secondaryText:e.secondaryText,fullAddress:e.description,isGps:!1}));L(e),I(!0),0!==e.length||V.current.has("No Results")||(V.current.add("No Results"),A({category:"Address",action:"No Results"}))}else L([]),l.error&&F(l.message||"Fehler beim Laden der Vorschl\xe4ge")}catch(t){if((0,c.zf)(t)||r!==K.current)return;let e=(0,c.RZ)(t)?t.code:"UNKNOWN_ERROR";if(V.current.has(`API Error:${e}`)||(V.current.add(`API Error:${e}`),A({category:"Address",action:"API Error",name:e})),x.has(e))return void L([]);g.has(e)||h.Cp(t,{tags:{endpoint:"geocode/autocomplete",errorCode:e},level:"error"}),m.vF.warn("[AddressInput] Autocomplete error",{context:{errorCode:e}}),(0,c.RZ)(t)?F(t.message):F("Fehler beim Laden der Vorschl\xe4ge"),L([])}finally{r===K.current&&S(!1)}},[A,w]),q=(0,l.useCallback)(e=>{let r=e.target.value.normalize("NFKC").replace(/[\x00-\x1F\x7F-\x9F]/g,"").replace(/<[^>]*>/g,"").slice(0,u.hj);B(null),t(r),G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{X(r)},u.f_)},[t,X]),Q=(0,l.useCallback)(async e=>{if(t(w?e.mainText:e.fullAddress),I(!1),e.isGps&&O)return void r(O,"gps");F(null),B(null),R(!0);try{let t=await (0,c.ag)(e.placeId,U.current);if(t.success&&t.address){let e=t.address;if(!e.postalCode){let t=function(e){if(!e)return null;let t=e.trim().match(RegExp(`^(\\d{${u.nS.POSTAL_CODE_LENGTH}})(?:\\D|$)`));return t?t[1]:null}(w);t&&(e={...e,postalCode:t})}r(e,"autocomplete"),e.houseNumber?B(null):(B(f),Z.current?.focus()),U.current=(0,c.F$)()}else F(t.message||"Fehler beim Laden der Adresse")}catch(t){if((0,c.zf)(t))return;let e=(0,c.RZ)(t)?t.code:"UNKNOWN_ERROR";if(V.current.has(`Place Details Error:${e}`)||(V.current.add(`Place Details Error:${e}`),A({category:"Address",action:"Place Details Error",name:e})),"INCOMPLETE_ADDRESS"===e){B(f),Z.current?.focus();return}"INVALID_REQUEST"!==e&&h.Cp(t,{tags:{endpoint:"geocode/place-details",errorCode:e},level:"error"}),m.vF.warn("[AddressInput] Place details error",{context:{errorCode:e}}),(0,c.RZ)(t)?F(t.message):F("Fehler beim Laden der Adresse")}finally{R(!1)}L([])},[t,r,O,w,A]),J=(0,l.useCallback)(()=>{setTimeout(()=>{I(!1)},u.Ef)},[]),ee=(0,l.useCallback)(()=>{Y.length>0&&I(!0)},[Y.length]),et=(0,l.useCallback)(()=>{t(""),L([]),I(!1),F(null),B(null)},[t]),er=(0,l.useCallback)(()=>{try{let e=sessionStorage.getItem(p);if(!e)return null;let{address:t,timestamp:r}=JSON.parse(e);if(Date.now()-r>3e5)return sessionStorage.removeItem(p),null;return t}catch{return null}},[]);(0,l.useEffect)(()=>{if(!C)return;V.current.clear();let e=er();if(e){D(e),P(!0);return}"u">typeof navigator&&navigator.permissions&&navigator.permissions.query({name:"geolocation"}).then(e=>{P("granted"===e.state)}).catch(()=>{P(!1)})},[C,er]),(0,l.useEffect)(()=>()=>{G.current&&clearTimeout(G.current),W.current?.abort()},[]),(0,l.useEffect)(()=>
1{if(C&&window.innerWidth>=768){let e=setTimeout(()=>{Z.current?.focus()},100);return()=>{clearTimeout(e)}}},[C]);let es=(0,l.useCallback)(e=>!!v&&e.address.street===v.street&&e.address.houseNumber===v.houseNumber&&e.address.postalCode===v.postalCode&&e.address.city===v.city,[v]),el=(0,l.useMemo)(()=>[...y].sort((e,t)=>e.isDefault?-1:t.isDefault?1:(t.lastUsed||t.createdAt)-(e.lastUsed||e.createdAt)),[y]);return(0,s.jsxs)("div",{className:"relative",children:[y.length>0&&(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("h4",{className:"text-sm font-medium text-gray-700 mb-2",children:"Gespeicherte Adressen"}),(0,s.jsx)("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:el.map(e=>(0,s.jsxs)("div",{onClick:()=>b?.(e.id),className:`flex items-center justify-between p-3 border rounded-lg cursor-pointer transition-all ${es(e)?"border-green-500 bg-green-50":"border-gray-200 bg-white hover:border-gray-300 hover:bg-gray-50"}`,children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)("span",{className:"font-medium text-gray-900 truncate",children:e.firstName||e.lastName?[e.firstName,e.lastName].filter(Boolean).join(" "):e.label?e.label:"Gespeicherte Adresse"})}),(0,s.jsxs)("p",{className:"text-sm text-gray-600 truncate",children:[e.address.street," ",e.address.houseNumber,", ",e.address.postalCode," ",e.address.city]})]}),N&&(0,s.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),N(e.id)},className:"ml-2 p-1.5 text-red-500 hover:text-red-700 hover:bg-red-50 rounded transition-colors",title:"Adresse l\xf6schen",children:(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]},e.id))}),(0,s.jsx)("div",{className:"mt-3 border-t pt-3",children:(0,s.jsx)("p",{className:"text-sm text-gray-500 mb-2",children:"Oder neue Adresse eingeben:"})})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)("div",{className:"relative flex-1 min-w-0",children:[(0,s.jsx)("button",{type:"button",onClick:n,disabled:i,className:"absolute left-2 top-1/2 -translate-y-1/2 w-9 h-9 flex items-center justify-center rounded-full text-gray-400 hover:text-theme-primary hover:bg-theme-primary/10 active:scale-95 transition-all disabled:opacity-40 disabled:cursor-not-allowed",title:"Standort verwenden","data-testid":"gps-button",children:i?(0,s.jsxs)("svg",{className:"w-5 h-5 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):(0,s.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"}),(0,s.jsx)("circle",{cx:"12",cy:"10",r:"3"})]})}),(0,s.jsx)("input",{ref:Z,type:"text",value:e,onChange:q,onFocus:ee,onBlur:J,placeholder:o,className:"w-full pl-12 pr-10 py-4 border-2 border-gray-200 rounded-lg focus:ring-2 focus:ring-theme-primary focus:border-theme-primary text-base font-medium hover:border-gray-300 hover:bg-gray-50 transition-all","data-testid":"address-input"}),e&&(0,s.jsx)("button",{type:"button",onClick:et,className:"absolute right-3 top-1/2 -translate-y-1/2 w-6 h-6 rounded-full bg-gray-200 hover:bg-gray-300 flex items-center justify-center transition-colors",title:"Eingabe l\xf6schen","data-testid":"clear-button",children:(0,s.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),j]}),(T||E)&&(0,s.jsxs)("div",{className:"mt-3 flex items-center gap-2 px-1 text-gray-500",children:[(0,s.jsxs)("svg",{className:"animate-spin h-4 w-4 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),(0,s.jsx)("span",{className:"text-sm",children:T?"Adresse wird geladen...":"Liefergebiet wird ermittelt..."})]}),z&&(0,s.jsx)("div",{className:"mt-2 p-2 bg-red-50 border border-red-200 rounded-lg",children:(0,s.jsx)("p",{className:"text-sm text-red-800",children:z})}),H&&!z&&(0,s.jsx)("div",{className:"mt-2 p-2 bg-blue-50 border border-blue-200 rounded-lg",role:"status","aria-live":"polite",children:(0,s.jsx)("p",{className:"text-sm text-blue-800",children:H})}),(_||Y.length>0)&&!z&&!T&&!E&&(0,s.jsx)(d,{suggestions:Y,onSelect:Q,isLoading:M})]})};
1function y({address:e,deliveryAreas:t,onZoneSelected:r,onSwitchToStreetInput:n}){let[i,o]=(0,l.useState)(null),{trackEvent:d}=(0,a.z1)(),c=(0,l.useMemo)(()=>{let e=new Map;for(let r of t){let t=`${r.minOrderValue}-${r.deliveryFee}`,s=e.get(t);s?s.push(r):e.set(t,[r])}let r=Array.from(e.entries()).map(([e,t])=>{let r=function(e){if(e.length<=1)return e;let t=e.map(e=>e.split(" ")),r=t.map(e=>e[0]);if(!r.every(e=>e===r[0]))return e;let s=t.map(e=>e.slice(1).join(" ")).filter(e=>e.length>0);return s.length!==e.length?e:s}(t.map(e=>e.city));return{key:e,areas:t,displayNames:r}});return r.sort((e,t)=>t.areas.length-e.areas.length),r},[t]),u=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{u.current||0===c.length||(u.current=!0,d({category:"Address",action:"Picker Zones Rendered",name:e.postalCode,value:c.length}))},[c,e.postalCode,d]),(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,s.jsxs)("svg",{className:"w-4 h-4 text-gray-500 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),(0,s.jsx)("p",{className:"text-sm font-medium text-gray-900",children:"In welchem Ortsteil liefern wir zu Ihnen?"})]}),(0,s.jsx)("div",{className:"space-y-2",children:c.map(e=>{let t=e.areas[0],l=t.deliveryFee,a=t.minOrderValue,n=l>0?`Lieferkosten ${l.toFixed(2).replace(".",",")} \u20AC`:"Kostenlose Lieferung",u=i===e.key,h=e.displayNames.length>6;return(0,s.jsxs)("div",{className:"rounded-md border border-gray-200 bg-white overflow-hidden",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>r(t),"data-testid":"zone-picker-option",className:"w-full flex items-center gap-2 px-3 py-2 text-left active:scale-[0.98] group cursor-pointer transition-[border-color,background-color,transform] duration-150 hover:bg-theme-primary/5",children:[(0,s.jsxs)("svg",{className:"w-4 h-4 text-gray-400 group-hover:text-theme-primary flex-shrink-0 transition-colors",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"}),(0,s.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-gray-900 block",children:h&&!u?e.displayNames.slice(0,6).join(", "):e.displayNames.join(", ")}),(0,s.jsxs)("span",{className:"text-xs text-gray-500 block",children:[n," \xb7 Mindestbestellwert ",a.toFixed(2).replace(".",","),"â¬"]})]})]}),h&&(0,s.jsxs)("button",{type:"button",onClick:t=>{var r;let s;t.stopPropagation(),s=i!==(r=e.key),o(e=>e===r?null:r),d({category:"Address",action:s?"Picker Zone Expand":"Picker Zone Collapse",name:r,value:c.find(e=>e.key===r)?.displayNames.length})},className:"w-full flex items-center justify-center gap-1 px-3 py-1.5 text-xs text-gray-400 hover:text-gray-600 border-t border-gray-100 transition-colors cursor-pointer",children:[(0,s.jsx)("span",{children:u?"Weniger anzeigen":`Alle ${e.displayNames.length} Ortsteile anzeigen`}),(0,s.jsx)("svg",{className:`w-3 h-3 transition-transform duration-200 ${u?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]},e.key)})}),n&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsxs)("button",{type:"button",onClick:()=>{d({category:"Address",action:"Street Fallback Shown",name:e.postalCode}),n()},className:"flex items-center gap-1.5 text-xs text-gray-500 hover:text-theme-primary transition-colors cursor-pointer group","data-testid":"street-fallback-link",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5 flex-shrink-0 group-hover:text-theme-primary transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,s.jsx)("span",{children:"Nicht sicher? Stra\xdfe eingeben, um Gebiet zu pr\xfcfen."})]})})]})}var v=r(51902);let b=0,N=0,E=null;function w({isOpen:e,onClose:t,addressError:r,deliveryAreaError:n,deliveryAreas:i,onPostalCodeSelected:d,onOutsideArea:c,onGpsClick:u,isGpsLoading:h,savedAddresses:m,deliveryAddress:p,onSavedAddressSelect:f,onSavedAddressDelete:g,variant:x="fullscreen",pickerAddress:j,pickerAreas:A,onZoneSelected:k,onPickerCancel:L,onPickupConfirm:M,onAddressSelected:S,addressInput
1:T="",onAddressInputChange:R=()=>{},mode:_,deliveryType:I,onDeliveryTypeChange:O,pickupEnabled:D=!1,deliveryEnabled:$=!0,shopName:P,shopAddress:z}){let F,{trackEvent:H}=(0,a.z1)(),[B,V]=(0,l.useState)(!1),[Z,U]=(0,l.useState)(""),[G,W]=(0,l.useState)(null),[K,Y]=(0,l.useState)("autocomplete"),X=(0,l.useRef)(null),q=(0,l.useCallback)(()=>{V(!0)},[]),Q=(0,l.useCallback)(()=>{V(!1)},[]),J="full-address"!==_,ee=(0,l.useCallback)((e,t)=>{if("saved"===t)return void S?.(e,t);let r=e.houseNumber||"";W({...e,houseNumber:void 0}),Y(t||"autocomplete"),U(r),e.street&&R(e.street),setTimeout(()=>X.current?.focus(),50)},[S,R]),et=(0,l.useCallback)(()=>{if(Z.trim()){if(G){let e=p?.plzid!==void 0&&G.postalCode===p.postalCode,t=!G.sublocality||!p?.sublocality||G.sublocality===p.sublocality,r={...G,houseNumber:Z.trim(),...e&&t&&{plzid:p.plzid}};S?.(r,K)}else{if(!(T.trim()&&p?.postalCode))return;let e={street:T.trim(),houseNumber:Z.trim(),postalCode:p.postalCode,city:p.city};S?.(e,"autocomplete")}W(null),U("")}},[G,Z,K,S,T,p]),er=(0,l.useCallback)(()=>{V(!1),W(null),U(""),t()},[t]);F=(0,l.useRef)(!1),(0,l.useEffect)(()=>{if(e){if(F.current=!0,0===b){let e=document.body;N=window.scrollY,E={position:e.style.position,top:e.style.top,width:e.style.width,overflow:e.style.overflow},e.style.position="fixed",e.style.top=`-${N}px`,e.style.width="100%",e.style.overflow="hidden"}b++}return()=>{if(F.current&&(F.current=!1,0==--b&&E)){let e=document.body;e.style.position=E.position,e.style.top=E.top,e.style.width=E.width,e.style.overflow=E.overflow,window.scrollTo(0,N),E=null}}},[e]);let es=(0,l.useCallback)(e=>{e!==I&&H({category:"Address",action:"Delivery Type Changed",name:e}),O?.(e)},[I,O,H]),el=(0,l.useCallback)(()=>{H({category:"Address",action:"Pickup Confirmed"}),M?M():er()},[H,M,er]);if((0,l.useEffect)(()=>{e&&(p?.houseNumber&&U(p.houseNumber),p?.street&&!T&&R(p.street))},[e]),!e)return null;let ea="bottomSheet"===x,en=(0,s.jsx)("div",{className:"w-20 flex-shrink-0",children:(0,s.jsx)("input",{ref:X,type:"text",value:Z,onChange:e=>U(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),et())},placeholder:"Nr.",className:"w-full px-3 py-4 border-2 border-gray-200 rounded-lg focus:ring-2 focus:ring-theme-primary focus:border-theme-primary text-base font-medium hover:border-gray-300 transition-all","data-testid":"house-number-input"})}),ei=J&&D&&void 0!==I&&void 0!==O,eo=J&&"pickup"===I,ed=j&&A&&k&&!B&&!eo,ec=B&&j&&S&&!eo,eu=!ed&&!ec&&J&&!eo,eh=!ed&&!ec&&!J,em=J?"Deine Bestellung":p?.postalCode?"Stra\xdfe eingeben":"Lieferadresse eingeben";return!J&&ed&&(em="Ortsteil w\xe4hlen"),!J&&ec&&(em="Adresse eingeben"),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:`fixed inset-0 z-[60] transition-opacity ${ea?"bg-black/30":"bg-black/50"}`,onClick:er,style:{touchAction:"none"}}),(0,s.jsx)("div",{className:`fixed z-[61] ${ea?"bottom-0 left-0 right-0 lg:inset-0 lg:top-[120px] lg:bottom-auto lg:flex lg:items-start lg:justify-center lg:px-4":"inset-0 lg:top-[120px] lg:bottom-auto lg:flex lg:items-start lg:justify-center lg:px-4"}`,children:(0,s.jsxs)("div",{className:`bg-white w-full flex flex-col ${ea?"max-h-[60vh] rounded-t-2xl lg:h-auto lg:max-h-none lg:w-full lg:max-w-2xl lg:rounded-lg lg:shadow-xl lg:min-h-[600px]":"h-full lg:h-auto lg:max-h-[calc(100vh-140px)] lg:w-full lg:max-w-2xl lg:rounded-lg lg:shadow-xl lg:transition-all lg:duration-200 lg:min-h-[600px]"}`,onClick:e=>e.stopPropagation(),children:[ea&&(0,s.jsx)("div",{className:"flex justify-center pt-3 pb-1 lg:hidden",children:(0,s.jsx)("div",{className:"w-10 h-1 bg-gray-300 rounded-full"})}),(0,s.jsxs)("div",{className:`flex items-center justify-between ${ea?"px-4 py-3 lg:p-6":"p-4 lg:p-6"} border-b flex-shrink-0`,children:[(0,s.jsxs)("div",{className:"flex items-center",children:[!ea&&(0,s.jsx)("button",{onClick:()=>{ec?Q():ed&&L?L():er()},className:"lg:hidden p-2 hover:bg-gray-100 rounded-full mr-3","aria-label":"Zur\xfcck","data-testid":"modal-back-button",children:(0,s.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),(0,s.jsx)("h2",{className:`font-bold text-gray-900 ${ea?"text-base lg:text-2xl":"text-lg lg:text-2xl"}`,children:em})]}),(0,s.jsx)("button",{onClick:er,className:`p-2 text-gray-400 hover:text-gray-600 rounded-lg hover:bg-gray-100 transition-colors ${ea?"":"hidden lg:block"}`,"aria-label":"Schlie\xdfen","data-testid":"modal-close-button",children:(0,s.jsx)("svg",{className:"w-5 h-5 lg:w-6 lg:h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,s.jsxs)("div",{className:"flex-1 min-h-0 overflow-y-auto overscroll-contain p-4 lg:p-6","data-testid":"address-modal",children:[ei&&(0,s.jsx)("div",{className:"mb-4","data-testid":"modal-delivery-toggle",children:(0,s.jsx)(v.z,{deliveryType:I,onDeliveryTypeChange:es,deliveryEnabled:$,pickupEnabled:D})}),!eo&&r&&(0,s.jsx)("div",{className:"mb-4 p-3 bg-red-50 border border-red-200 rounded-lg",children:(0,s.jsx)("p",{className:"text-sm text-red-800",children:r})}),!eo&&n&&(0,s.jsx)("div",{className:"mb-4 p-3 bg-orange-50 border border-orange-200 rounded-lg",children:(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)("span",{className:"text-orange-500 text-base flex-shrink-0",children:"â ï¸"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("p",{className:"text-xs font-semibold text-orange-900 mb-1",children:"Au\xdferhalb des Liefergebiets"}),(0,s.jsx)("p",{className:"text-xs text-orange-800",children:n})]})]})}),eo&&(0,s.jsxs)("div",{"data-testid":"pickup-view",children:[(0,s.jsx)("h4",{className:"text-base font-bold text-gray-900 mb-2",children:"Unsere Adresse"}),P&&(0,s.jsx)("p",{className:"text-sm font-medium text-gray-900",children:P}),z&&(0,s.jsxs)("p",{className:"text-sm text-gray-700",children:[z.street,", ",z.postalCode," ",z.city]}),(0,s.jsx)("button",{type:"button",onClick:el,className:"mt-4 w-full py-3 bg-theme-primary text-white font-medium rounded-lg hover:opacity-90 transition-opacity","data-testid":"pickup-confirm-button",children:"Abholung best\xe4tigen"})]}),ed&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-4 p-3 bg-gray-50 border border-gray-200 rounded-lg flex items-center justify-between gap-2",children:[(0,s.jsx)("div",{className:"min-w-0",children:(0,s.jsxs)("p",{className:"text-sm text-gray-700 font-medium truncate",children:[j.postalCode," ",j.city]})}),L&&(0,s.jsx)("button",{type:"button",onClick:L,className:"flex-shrink-0 p-1.5 text-gray-400 hover:text-gray-600 hover:bg-gray-200 rounded-full transition-colors","aria-label":"Andere PLZ eingeben",title:"Andere PLZ eingeben",children:(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,s.jsx)(y,{address:j,deliveryAreas:A,onZoneSelected:k,onSwitchToStreetInput:S?q:void 0})]}),ec&&j&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mb-4 p-3 bg-blue-50 border border-blue-200 rounded-lg",children:(0,s.jsxs)("p",{className:"text-sm text-blue-800",children:["Stra\xdfe eingeben f\xfcr ",(0,s.jsxs)("span",{className:"font-semibold",children:[j.postalCode," ",j.city]})," â das Liefergebiet wird automatisch erkannt."]})}),(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Stra\xdfe"}),(0,s.jsx)(C,{value:T,onChange:R,onAddressSelected:ee,onGpsClick:u,isGpsLoading:h,placeholder:`Stra\xdfe in ${j.postalCode} ${j.city}...`,searchScope:`${j.postalCode} ${j.city||""}`.trim(),isOpen:e,rightSlot:en}),Z.trim()&&(G||T.trim())&&(0,s.jsx)("button",{type:"button",onClick:et,className:"mt-3 w-full py-3 bg-theme-primary text-white font-medium rounded-lg hover:opacity-90 transition-opacity","data-testid":"confirm-ad
1dress-button",children:"Adresse best\xe4tigen"}),(0,s.jsxs)("button",{type:"button",onClick:Q,className:"mt-3 flex items-center gap-1.5 text-xs text-gray-500 hover:text-theme-primary transition-colors cursor-pointer",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),(0,s.jsx)("span",{children:"Zur\xfcck zur Ortsteil-Auswahl"})]})]}),eu&&i&&d&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o,{deliveryAreas:i,onAreaSelected:d,onOutsideArea:c,isOpen:e,savedAddresses:m,currentPostalCode:p?.postalCode??null,onSavedAddressSelect:f,onSavedAddressDelete:g,onGpsClick:u,isGpsLoading:h})}),eh&&S&&(0,s.jsx)(s.Fragment,{children:p?.postalCode?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Stra\xdfe"}),(0,s.jsx)(C,{value:T,onChange:R,onAddressSelected:ee,onGpsClick:u,isGpsLoading:h,placeholder:`Stra\xdfe in ${p.postalCode} ${p.city||""}...`,searchScope:`${p.postalCode} ${p.city||""}`.trim(),isOpen:e,savedAddresses:m,currentAddress:p,onSavedAddressSelect:f,onSavedAddressDelete:g,rightSlot:en}),Z.trim()&&(G||T.trim())&&(0,s.jsx)("button",{type:"button",onClick:et,className:"mt-3 w-full py-3 bg-theme-primary text-white font-medium rounded-lg hover:opacity-90 transition-opacity","data-testid":"confirm-ad
1dress-button",children:"Adresse best\xe4tigen"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Stra\xdfe, PLZ / Ort"}),(0,s.jsx)(C,{value:T,onChange:R,onAddressSelected:ee,onGpsClick:u,isGpsLoading:h,placeholder:"z.B. Musterstra\xdfe, 45127",isOpen:e,savedAddresses:m,currentAddress:p,onSavedAddressSelect:f,onSavedAddressDelete:g,rightSlot:en}),Z.trim()&&(G||T.trim())&&(0,s.jsx)("button",{type:"button",onClick:et,className:"mt-3 w-full py-3 bg-theme-primary text-white font-medium rounded-lg hover:opacity-90 transition-opacity","data-testid":"confirm-address-button",children:"Adresse best\xe4tigen"})]})})]})]})})]})}}}]);
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.