PageSourceSearch

https://www.chocolatehill.cz/shop/react/dist/index-fWb49I9X.js

js chocolatehill.cz collected 2026-09-25 09:35:36 UTC 56,321 bytes, 1 lines download raw bytes

1import{C as pe,o as _,s as i,x as O,k as N,u as We,E as Ve,l as ee,n as C,y as Ue,m as g,j as e,q as G,p as m,B as T,h as ze,F as Ye,I as me,e as he,d as ge,v as xe,f as Ze,g as fe,i as qe,c as Xe,Q as Qe,a as $e,b as Ke,A as Je}from"./chunks/validation-D5yVyM46.js";import{n as se,u as Re,N as z,F as I,S as x,P as en,E as nn,a as tn,A as an}from"./chunks/Form-CVwfLtJw.js";import{c as U,a as Se}from"./chunks/exports-zm1XDUfY.js";import{a as F,b as ne,c as E,H}from"./chunks/Heading-DTirDipI.js";import{u as rn}from"./chunks/useQuery-Cv7S6gRG.js";import{i as on}from"./chunks/sdk-P66MGAts.js";async function ln({controller:n,schema:t,signal:a,orderCode:r,timeoutCallback:o}){const s=new AbortController,l=()=>s.abort();a.addEventListener("abort",l);const u=setTimeout(()=>{l(),U(`Fetch timeout [${n.endpoint}].`,{level:"info"}),o?.()},pe);try{const p=await fetch(`/action/${n.name}/${n.endpoint}/?orderCode=${encodeURIComponent(r)}`,{method:"GET",signal:s.signal});if(!p.ok)return U(`Failed to fetch data from endpoint [${n.endpoint}]. Status: ${p.status}`,{level:"info"}),null;const d=await p.json();return t.parse(d)}catch(p){return Se(p),null}finally{clearTimeout(u),a.removeEventListener("abort",l)}}async function be({controller:n,schema:t,config:a,timeoutCallback:r}){const o=new AbortController,s=setTimeout(()=>{o.abort(),U(`Fetch timeout [${n.endpoint}].`,{level:"info"}),r?.()},pe);try{const l=await fetch(`/action/${n.name}/${n.endpoint}/`,{...a,method:"POST",signal:o.signal});if(!l.ok)return U(`Failed to post data to endpoint [${n.endpoint}]. Status: ${l.status}`,{level:"info"}),null;const u=await l.json();return t.parse(u)}catch(l){return Se(l),null}finally{clearTimeout(s)}}const Ee=["product","product-set","bazar","service","generic-item"],ye=["gift","gift-certificate","xy-gift"],Oe=["shipping","billing"],Te=["volume-discount","discount-coupon"],sn=[...Ee,...ye,...Oe,...Te];function Y(n,t){return t.includes(n)}function X(n){return Y(n.itemType,Ee)}function ve(n){return Y(n.itemType,ye)}function dn(n){return n.itemType==="gift-certificate"}function Q(n){return Y(n.itemType,Oe)}function M(n){return Y(n.itemType,Te)}const cn=_({orderCode:i(),email:i()}),un=O(["expired"]),_n=O(["form","valid","cancelled"]),pn=_({bankAccount:i(),bicSwift:i(),iban:i(),ownerName:i()}),mn=O(["NOT_PAID","PAID","PENDING","CREATED","REDIRECT_ACCEPTED","CANCELLED","ERROR","FINISHED"]),hn=_({varSymbol:i().nullable(),billingMethodCode:i().nullable(),paymentStatus:mn.nullable(),totalToPayFormatted:i().nullable(),bankAccount:pn.nullable(),qrCode:i().nullable(),suspendAutoRedirect:N().nullable(),shoptetPayGatewayUnavailable:N().nullable(),redirectUrl:i().nullable(),isPossibleTaxAdjustment:N(),isShoptetPay:N()}),gn=We([_({state:_n,resendData:Ve()}),_({state:un,resendData:cn.nullable()})]).and(_({orderCode:i(),thankYouPage:hn.nullable().default(null)})),xn=_({alreadyWithdrawnQuantity:se(),amount:se(),stockDecimalCount:C().nullable(),unit:i().nullable(),code:i().nullable(),isWithdrawable:N(),notWithdrawableReason:O(["notReturnable"]).nullable(),withdrawalPeriodDays:C().nullable(),termsUrl:i().nullable(),itemId:C(),itemPrice:_({vatRate:i(),withVat:i(),withVatFormatted:i(),withoutVat:i(),withoutVatFormatted:i(),vat:i()}),itemType:O(sn),mainImage:_({url:i()}),name:i(),pickupPoint:_({branchId:i(),name:i(),note:i().nullable(),street:i(),city:i().nullable(),zipCode:i().nullable(),latitude:i().nullable(),longitude:i().nullable()}).nullable(),variantName:i().nullable(),withdrawals:ee(_({quantity:C(),state:i()}))}),de=_({company:i().nullable(),fullName:i().nullable(),email:i().nullable(),phone:i().nullable(),street:i().nullable(),house
1Number:i().nullable(),city:i().nullable(),district:i().nullable(),additional:i().nullable(),zip:i().nullable(),countryCode:i(),countryName:i(),regionName:i().nullable(),regionShortcut:i().nullable(),companyId:i().nullable(),vatId:i().nullable(),vatIdValidationStatus:C().nullable(),taxId:i().nullable()}),fn=_({code:i(),creationTime:i(),items:ee(xn),price:_({currencyCode:i(),rounding:i(),roundingFormatted:i(),toPay:i(),toPayFormatted:i(),vat:i(),withVat:i(),withVatFormatted:i(),withoutVat:i(),withoutVatFormatted:i()}).nullable(),status:_({code:i().nullable(),bgColor:i().nullable(),color:i().nullable(),name:i(),canceled:N().optional()}),billingAddress:de.nullable(),shippingAddress:de.nullable(),billingMethod:_({name:i()}).nullable(),shipping:_({name:i()}).nullable(),paymentStatus:O(["paid","unpaid","badAmount","overPaid",""]).nullable()}),Rn=O(["order","invoice","proformaInvoice","creditNote","deliveryNote","proofPayment"]),Sn=_({code:i(),issueDate:i(),downloadUrl:i(),type:Rn}),bn=O(["cancelled","deadline_exceeded","not_eligible_business","no_remaining_items"]),En=_({bankAccountRequired:N(),deadlineAt:i().nullable(),eligible:N(),reason:bn.nullable()}),yn=_({email:i().nullable(),phone:i().nullable(),name:i().nullable()}),On=_({order:fn,documents:ee(Sn),withdrawalEligibility:En,eshopContact:yn}),Tn=_({status:O(["sent","error"])});_({orderContentId:C(),quantity:C()});const vn=_({caseId:C()});function Nn(n){return _({orderCode:i().trim().nonempty(n`_FORM_ORDER_CODE_MESSAGE_ERROR_REQUIRED`),email:i().trim().pipe(Ue(n`_FORM_EMAIL_MESSAGE_ERROR_REQUIRED`))})}function Cn(n,t){const a=i().trim().max(255,n`_STOREFRONT_ORDER_RETURNS_BANK_ACCOUNT_ERROR`);return _({bankAccountNumber:t?a.nonempty(n`_STOREFRONT_ORDER_RETURNS_BANK_ACCOUNT_ERROR`):a.optional()})}function Ne(){return Re({mutationFn:n=>be({controller:{name:"MyOrder",endpoint:"requestAccess"},schema:Tn,config:{body:new URLSearchParams(n)}})})}function te({children:n,className:t,...a}){return g.useLayoutEffect(()=>{requestAnimationFrame(()=>{document.dispatchEvent(new CustomEvent("OrderWithdrawDataLoaded"))})},[]),e.jsx("div",{...a,className:G("layout","layout__login",t),children:n})}function S({children:n,...t}){return e.jsx("p",{...t,children:n})}function P({children:n,...t}){return e.jsx("strong",{...t,children:n})}function Ce({onResendEmail:n,...t}){const{t:a}=m();return e.jsxs(te,{...t,className:"layout__login--sent",children:[e.jsx(F,{children:a`_STOREFRONT_ORDER_ACCESS_PAGE_CHECK_EMAIL`}),e.jsx(S,{children:a`_STOREFRONT_ORDER_ACCESS_PAGE_CHECK_EMAIL_DESCRIPTION`}),e.jsxs(S,{children:[e.jsx(P,{children:a`_STOREFRONT_ORDER_ACCESS_PAGE_CHECK_EMAIL_DESCRIPTION_2`}),e.jsx("br",{}),a`_STOREFRONT_ORDER_ACCESS_PAGE_CHECK_EMAIL_DESCRIPTION_3`]}),e.jsx(T,{label:a`STOREFRONT_ORDER_ACCESS_PAGE_BUTTON_NEW_EMAIL`,type:"button",onClick:n,variant:"outline",width:"full"})]})}const h=ze()(n=>({itemsToReturn:null,notification:null,showEmailSentPage:!1,showReturnsPage:!1,updateItemsToReturn:t=>n({itemsToReturn:t}),updateNotification:t=>n({notification:t}),updateShowEmailSentPage:t=>n({showEmailSentPage:t}),updateShowReturnsPage:t=>n({showReturnsPage:t})}));function wn(){const[n,t]=g.useState(""),a=h(c=>c.showEmailSentPage),r=h(c=>c.updateShowEmailSentPage),{t:o}=m(),{mutate:s,isPending:l}=Ne(),u=Nn(o),p=c=>{t(""),s(c,{onSuccess:b=>{b?.status==="sent"?r(!0):t(o`_STOREFRONT_ORDER_ACCESS_PAGE_ERROR`)},onError:()=>{t(o`_STOREFRONT_ORDER_UNKNOWN_ERROR`)}})},d=()=>{r(!1)};return a?e.jsx(Ce,{onResendEmail:d}):e.jsxs(te,{children:[e.jsx(F,{children:o`_STOREFRONT_ORDER_ACCESS_PAGE_HEADLINE`}),e.jsx(S,{children:o`_STOREFRONT_ORDER_ACCESS_PAGE_DESCRIPTION`}),n!==""&&e.jsx(z,{type:"critical",message:n}),e.jsxs(I,{noValidate:!0,schema:u,isLoading:l,onSuccess:p,children:[e.jsx(I.TextField,{name:"orderCode",label:o`_STOREFRONT_ORDER_ACCESS_PAGE_ORDER_NUMBER`,placeholder:o`_STOREFRONT_ORDER_ACCESS_PAGE_ORDER_NUMBER_PLACEHODLER`}),e.jsx(I.EmailField,{name:"email",label:o`_STOREFRONT_ORDER_ACCESS_PAGE_EMAIL`,placeholder:o`_STOREFRONT_ORDER_ACCESS_PAGE_EMAIL_PLACEHOLDER`,description:o`_STOREFRONT_ORDER_ACCESS_PAGE_EMAIL_HINT`}),e.jsx(I.SubmitField,{label:o`_STOREFRONT_ORDER_ACCESS_PAGE_BUTTON_SHOW`,width:"full"})]})]})}const we=g.createContext(null),y=()=>{const n=g.useContext(we);if(!n)throw new Error("useWidgetContext must be used within WidgetProvider");return n};function v(){const n={name:"MyOrder",endpoint:"data"},{orderCode:t}=y();return rn({queryKey:[n,t],queryFn:({signal:a})=>ln({controller:n,schema:On,signal:a,orderCode:t})})}function je(n,t,a){return n.eligible&&t===0?a`_STOREFRONT_ORDER_RETURNABLE_TODAY`:n.eligible&&t!==null?t===1?a`_STOREFRONT_ORDER_RETURNABLE_DAY_ONE`:t>4?a("_STOREFRONT_ORDER_RETURNABLE_DAYS_PLURAL_%1",[t]):a("_STOREFRONT_ORDER_RETURNABLE_DAYS_FEW_%1",[t]):n.reason==="deadline_exceeded"?a`_STOREFRONT_ORDER_RETURNS_EXPIRED`:n.reason==="no_remaining_items"?a`_STOREFRONT_ORDER_ALL_PRODUCTS_RETURNED`:n.reason==="not_eligible_business"?a`_STOREFRONT_ORDER_NOT_ELIGIBLE_BUSINESS`:n.eligible?"":null}function ae(){const{data:n}=v(),t=g.useMemo(()=>n?.order.items.filter(l=>X(l)),[n?.order.items]),a=g.useMemo(()=>n?.order.items.filter(l=>ve(l)),[n?.order.items]),r=g.useMemo(()=>n?.order.items.filter(l=>Q(l)),[n?.order.items]),o=g.useMemo(()=>n?.order.items.filter(l=>M(l)),[n?.order.items]),s=g.useMemo(()=>n?.order.items.filter(l=>l.isWithdrawable),[n?.order.items]);return{products:t,gifts:a,shippingBillingItems:r,discounts:o,withdrawableProducts:s}}const jn=1e3*60*60*24;function In(n){const[t=n]=n.split("T"),[a,r,o]=t.split("-"),s=Number(a),l=Number(r),u=Number(o);return new Date(s,l-1,u)}function Dn(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate())}function Ie(n){if(n===null)return null;const t=Dn(new Date),a=In(n),r=Math.round((a.getTime()-t.getTime())/jn);return r<0?null:r}function W(n,t){return Number(n.toFixed(t))}function re(n,t,a){return W(n-t,a)}function De(n){return 10**-n}function k(n,t){return Math.min(Math.max(0,n),t)}function ce(n){if(n===""||n.endsWith(".")||n.endsWith(","))return null;const t=Number(n.replace(",","."));return Number.isNaN(t)?null:t}function Fn(n,t,a){return n?.find(r=>r.orderContentId===t)?a===0?n.filter(r=>r.orderContentId!==t):n.map(r=>r.orderContentId===t?{...r,quantity:a}:r):a>0?[...n??[],{orderContentId:t,quantity:a}]:n}function oe({children:n,...t}){return e.jsx("div",{...t,className:"flags",children:n})}function D({color:n,bgColor:t,label:a,state:r,...o}){return e.jsx("span",{...o,className:G("flag",{"flag--success":r==="success","flag--info":r==="info","flag--warning":r==="warning"}),style:{backgroundColor:t??void 0,color:n??void 0},children:a})}function Ln(){const{language:n}=Ye(),{state:t}=y(),{t:a}=m(),{data:r}=v();if(r===void 0)return e.jsx(An,{});if(r===null)return e.jsx(Pn,{});const o=je(r.withdrawalEligibility,Ie(r.withdrawalEligibility.deadlineAt),a);return e.jsxs("header",{className:"orderHeader",children:[e.jsxs("div",{className:"orderHeader__wrapper",children:[e.jsxs(F,{children:[a`_STOREFRONT_ORDER`," #",r.order.code]}),e.jsxs("div",{children:[a`_ORDER_STOREFRONT_CREATED`," ",new Date(r.order.creationTime).toLocaleDateString(n)]}),e.jsxs(oe,{children:[r.order.paymentStatus==="paid"&&e.jsx(D,{label:a`_STOREFRONT_ORDER_PAID`,state:"success"}),r.order.paymentStatus==="badAmount"&&e.jsx(D,{label:a`_STOREFRONT_ORDER_BAD_AMOUNT`,state:"warning"}),r.order.paymentStatus==="overPaid"&&e.jsx(D,{label:a`_STOREFRONT_ORDER_OVER_PAID`,state:"warning"}),t==="cancelled"&&e.jsx(D,{label:a`_STOREFRONT_ORDER_CANCELLED`,state:"info"})]})]}),o!==null&&e.jsx(Fe,{})]})}function Fe(){const n=h(d=>d.updateNotification),t=h(d=>d.updateShowReturnsPage),a=h(d=>d.updateItemsToReturn),{t:r}=m(),{data:o}=v(),{withdrawableProducts:s}=ae();if(o===void 0)return e.jsx(Gn,{});if(o===null)return null;const l=o.withdrawalEligibility.eligible,u=je(o.withdrawalEligibility,Ie(o.withdrawalEligibility.deadlineAt),r),p=()=>
1{if(!l)return;const d=s?.[0];if(d){const c=d.stockDecimalCount??0,b=re(d.amount,d.alreadyWithdrawnQuantity,c);s.length===1&&b===De(c)&&a([{orderContentId:d.itemId,quantity:b}])}n(null),t(!0)};return e.jsxs("div",{className:"orderHeader__returnButtonWrapper",children:[e.jsx(T,{label:r`RETURN PRODUCTS`,variant:"outline",width:"full",disabled:!l,onClick:p,className:"orderHeader__returnButton"}),!!u&&e.jsx("div",{className:"orderHeader__remainingDays",children:u})]})}function An(){const{state:n}=y();return e.jsxs("header",{className:"orderHeader",children:[e.jsxs("div",{className:"orderHeader__wrapper",children:[e.jsx(x,{name:"heading"}),e.jsx(x,{name:"paragraph"}),e.jsx(x,{name:"flags"})]}),n!=="cancelled"&&e.jsx(Fe,{})]})}function Gn(){return e.jsxs("div",{className:"orderHeader__returnButtonWrapper",children:[e.jsx(x,{name:"button"}),e.jsx(x,{name:"message"})]})}function Pn(){const{orderCode:n}=y(),{t}=m();return e.jsx("header",{className:"orderHeader",children:e.jsx("div",{className:"orderHeader__wrapper",children:e.jsxs(F,{children:[t`_STOREFRONT_ORDER`," #",n]})})})}function $({address:n,headline:t,...a}){return e.jsxs("div",{...a,children:[t&&e.jsx(ne,{children:t}),(!!n.company||!!n.companyId||!!n.vatId)&&e.jsxs("ul",{className:"companyAddress__list",children:[!!n.company&&e.jsx("li",{children:n.company}),!!n.companyId&&e.jsx("li",{children:n.companyId}),!!n.vatId&&e.jsx("li",{children:n.vatId})]}),e.jsxs("ul",{children:[!!n.fullName&&e.jsx("li",{children:n.fullName}),!!n.street&&e.jsx("li",{children:[n.street,n.houseNumber].filter(Boolean).join(" ")}),!!n.city&&e.jsx("li",{children:n.city}),!!n.zip&&e.jsx("li",{children:n.zip}),!!n.countryName&&e.jsx("li",{children:n.countryName})]})]})}function Hn({...n}){return e.jsxs("svg",{...n,width:"32",height:"40",viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[e.jsx("path",{d:"M0.75 6.75C0.75 3.43629 3.43629 0.75 6.75 0.75H20.9216C21.452 0.75 21.9607 0.960714 22.3358 1.33579L30.6642 9.66421C31.0393 10.0393 31.25 10.548 31.25 11.0784V33.25C31.25 36.5637 28.5637 39.25 25.25 39.25H6.75C3.43629 39.25 0.75 36.5637 0.75 33.25V6.75Z"}),e.jsx("path",{d:"M13.75 20.75H16C17.7949 20.75 19.25 22.2051 19.25 24C19.25 25.7949 17.7949 27.25 16 27.25H13.75V20.75Z"}),e.jsx("path",{d:"M6.75 20.75V25.25H9C10.2426 25.25 11.25 24.2426 11.25 23C11.25 21.7574 10.2426 20.75 9 20.75H6.75Z"}),e.jsx("path",{d:"M22.3358 1.33579L21.8055 1.86612V1.86612L22.3358 1.33579ZM30.6642 9.66421L30.1339 10.1945L30.6642 9.66421ZM13.75 20.75V20C13.3358 20 13 20.3358 13 20.75H13.75ZM13.75 27.25H13C13 27.6642 13.3358 28 13.75 28V27.25ZM6 27.25C6 27.6642 6.33579 28 6.75 28C7.16421 28 7.5 27.6642 7.5 27.25H6.75H6ZM6.75 20.75V20C6.33579 20 6 20.3358 6 20.75H6.75ZM21 27.25C21 27.6642 21.3358 28 21.75 28C22.1642 28 22.5 27.6642 22.5 27.25H21.75H21ZM21.75 20.75V20C21.3358 20 21 20.3358 21 20.75H21.75ZM25.25 21.5C25.6642 21.5 26 21.1642 26 20.75C26 20.3358 25.6642 20 25.25 20V20.75V21.5ZM25.25 25C25.6642 25 26 24.6642 26 24.25C26 23.8358 25.6642 23.5 25.25 23.5V24.25V25ZM0.75 6.75H1.5C1.5 3.85051 3.85051 1.5 6.75 1.5V0.75V0C3.02208 0 0 3.02208 0 6.75H0.75ZM6.75 0.75V1.5H20.9216V0.75V0H6.75V0.75ZM20.9216 0.75V1.5C21.2531 1.5 21.571 1.6317 21.8055 1.86612L22.3358 1.33579L22.8661 0.805457C22.3504 0.289731 21.6509 0 20.9216 0V0.75ZM22.3358 1.33579L21.8055 1.86612L30.1339 10.1945L30.6642 9.66421L31.1945 9.13388L22.8661 0.805456L22.3358 1.33579ZM30.6642 9.66421L30.1339 10.1945C30.3683 10.429 30.5 10.7469 30.5 11.0784H31.25H32C32 10.3491 31.7103 9.64961 31.1945 9.13388L30.6642 9.66421ZM31.25 11.0784H30.5V33.25H31.25H32V11.0784H31.25ZM31.25 33.25H30.5C30.5 36.1495 28.1495 38.5 25.25 38.5V39.25V40C28.9779 40 32 36.9779 32 33.25H31.25ZM25.25 39.25V38.5H6.75V39.25V40H25.25V39.25ZM6.75 39.25V38.5C3.85051 38.5 1.5 36.1495 1.5 33.25H0.75H0C0 36.9779 3.02208 40 6.75 40V39.25ZM0.75 33.25H1.5V6.75H0.75H0V33.25H0.75ZM13.75 20.75V21.5H16V20.75V20H13.75V20.75ZM16 27.25V26.5H13.75V27.25V28H16V27.25ZM13.75 27.25H14.5V20.75H13.75H13V27.25H13.75ZM19.25 24H18.5C18.5 25.3807 17.3807 26.5 16 26.5V27.25V28C18.2091 28 20 26.2091 20 24H19.25ZM16 20.75V21.5C17.3807 21.5 18.5 22.6193 18.5 24H19.25H20C20 21.7909 18.2091 20 16 20V20.75ZM6.75 27.25H7.5V25.25H6.75H6V27.25H6.75ZM6.75 25.25H7.5V20.75H6.75H6V25.25H6.75ZM6.75 20.75V21.5H9V20.75V20H6.75V20.75ZM9 25.25V24.5H6.75V25.25V26H9V25.25ZM11.25 23H10.5C10.5 23.8284 9.82843 24.5 9 24.5V25.25V26C10.6569 26 12 24.6569 12 23H11.25ZM9 20.75V21.5C9.82843 21.5 10.5 22.1716 10.5 23H11.25H12
1C12 21.3431 10.6569 20 9 20V20.75ZM21.75 27.25H22.5V24.25H21.75H21V27.25H21.75ZM21.75 24.25H22.5V20.75H21.75H21V24.25H21.75ZM21.75 20.75V21.5H25.25V20.75V20H21.75V20.75ZM25.25 24.25V23.5H21.75V24.25V25H25.25V24.25Z",fill:"#C53434"})]})}function Z({children:n,title:t,...a}){return e.jsxs("div",{...a,className:"sidebarSection",children:[e.jsx(E,{children:t}),n]})}function kn({children:n,...t}){return e.jsxs("div",{...t,className:"sidebarSection",children:[e.jsx(x,{name:"heading"}),n]})}function Bn(){const{state:n}=y(),{t}=m(),{data:a}=v(),r=g.useMemo(()=>a?.documents.filter(o=>o.type!=="order"),[a?.documents]);return a?e.jsxs("aside",{className:"orderDetail__sidebar",children:[e.jsx(H,{srOnly:!0,children:t`_STOREFRONT_ORDER_ADDITIONAL_INFORMATION`}),e.jsx(Mn,{state:n,documents:r}),e.jsx(Wn,{state:n,order:a.order}),e.jsx(Vn,{eshopContact:a.eshopContact})]}):e.jsx(Un,{})}function Mn({state:n,documents:t}){const{t:a}=m();if(n==="cancelled"||!t||t.length===0)return null;const r={order:a`_STOREFRONT_ORDER`,invoice:a`_STOREFRONT_ORDER_INVOICE`,proformaInvoice:a`_STOREFRONT_ORDER_PROFORMA_INVOICE`,creditNote:a`_STOREFRONT_ORDER_CREDIT_NOTE`,deliveryNote:a`_STOREFRONT_ORDER_DELIVERY_NOTE`,proofPayment:a`_STOREFRONT_ORDER_PROOF_PAYMENT`};return e.jsx(Z,{title:a`_STOREFRONT_ORDER_DOCUMENTS`,children:e.jsx("ul",{className:"documentList",children:t.map(o=>e.jsxs("li",{children:[e.jsxs("span",{className:"documentList__contentWrapper",children:[e.jsx("span",{className:"documentList__icon",children:e.jsx(Hn,{})}),e.jsxs("span",{className:"documentList__content",children:[e.jsx("span",{className:"documentList__contentLabel",children:r[o.type]}),e.jsxs("span",{className:"documentList__contentCode",children:[a`_STOREFRONT_ORDER_DOCUMENT_NUMBER`," ",o.code]})]})]}),e.jsx("span",{className:"documentList__action",children:e.jsx("a",{href:o.downloadUrl,children:a`DOWNLOAD`})})]},o.code))})})}function Wn({state:n,order:t}){const{t:a}=m(),r=t.billingAddress,o=t.shippingAddress;return n==="cancelled"||!r?null:e.jsxs(Z,{title:a`_STOREFRONT_ORDER_CUSTOMER`,children:[e.jsxs("ul",{className:"customerInfo__list",children:[!!r.fullName&&e.jsx("li",{children:r.fullName}),!!r.phone&&e.jsx("li",{children:e.jsx("a",{href:`tel:${r.phone.replaceAll(" ","")}`,children:r.phone})}),!!r.email&&e.jsx("li",{children:e.jsx("a",{href:`mailto:${r.email}`,children:r.email})})]}),e.jsx($,{address:r,headline:o?a`_STOREFRONT_ORDER_BILLING_ADDRESS`:a`_STOREFRONT_ORDER_ADDRESS`}),o&&e.jsx($,{address:o,headline:a`_STOREFRONT_ORDER_SHIPPING_ADDRESS`})]})}function Vn({eshopContact:n}){const{t}=m();return!!n.email||!!n.phone||!!n.name?e.jsx(Z,{title:t`_STOREFRONT_ORDER_HELP`,children:e.jsxs("ul",{className:"helpInfo__list",children:[!!n.name&&e.jsx("li",{children:e.jsx(P,{children:n.name})}),!!n.phone&&e.jsx("li",{children:e.jsxs("a",{href:`tel:${n.phone.replaceAll(" ","")}`,children:[e.jsx("span",{children:e.jsx(en,{})}),n.phone]})}),!!n.email&&e.jsx("li",{children:e.jsxs("a",{href:`mailto:${n.email}`,children:[e.jsx("span",{children:e.jsx(nn,{})}),n.email]})})]})}):null}function Un(){return e.jsx("aside",{className:"orderDetail__sidebar",children:e.jsx(kn,{children:e.jsxs("div",{children:[e.jsx(x,{name:"name"}),e.jsx(x,{name:"phone"}),e.jsx(x,{name:"email"})]})})})}function Le(n){return n==="PAID"||n==="FINISHED"}function zn(){const{orderCode:n,thankYouPage:t}=y(),{t:a}=m();if(!t)throw new Error("Thank you page data is required");return e.jsx("header",{className:"thankYouPageHeader",children:e.jsxs("div",{className:"thankYouPageHeader__wrapper",children:[e.jsx(F,{children:a`Order sent`}),e.jsxs(S,{children:[a`Thank you for your order number`," ",e.jsx(P,{children:n}),"."," ",a`You will receive order recapitulation by e-mail.`]}),(t.isShoptetPay||t.billingMethodCode==="transfer")&&!t.isPossibleTaxAdjustment&&e.jsxs("div",{className:"thankYouPageHeader__paymentSection",children:[e.jsx(H,{srOnly:!0,children:a`Payment status`}),e.jsxs("div",{className:"thankYouPageHeader__paymentSectionContent",children:[e.jsx(oe,{children:Le(t.paymentStatus)?e.jsx(D,{label:a`_STOREFRONT_ORDER_PAID`,state:"success"}):e.jsx(D,{label:a`Waiting for payment`,state:"warning"})}),t.isShoptetPay&&e.jsx(Yn,{thankYouPage:t}),t.billingMethodCode==="transfer"&&e.jsx(qn,{thankYouPage:t})]}),t.billingMethodCode==="transfer"&&t.qrCode&&e.jsx("div",{className:"thankYouPageHeader__paymentSectionQrCode",children:e.jsx("img",{src:t.qrCode,alt:a`QR code`,width:150,height:150,fetchPriority:"low",loading:"lazy"})})]})]})})}function Yn({thankYouPage:n}){const{t}=m(),{paymentStatus:a,shoptetPayGatewayUnavailable:r,suspendAutoRedirect:o}=n;return Le(a)?e.jsx(E,{children:t`_ORDERING-PROCESS_ONLINE-PAYMENT-SUCCESFULL-MESSAGE`}):a==="PENDING"?e.jsx(E,{children:t`Your order is waiting for pending payments`}):a==="CANCELLED"||a==="ERROR"?e.jsxs(e.Fragment,{children:[e.jsx(E,{children:t`Online payment was not realized.`}),e.jsx(S,{children:t`There can be a technical issue with your credit card or you have not needed credit on you account.`}),e.jsx(S,{children:t`Please, contact us by e-mail or by phone for check your payment status.`})]}):a==="NOT_PAID"?r?e.jsxs(e.Fragment,{children:[e.jsx(E,{children:t`Your order is waiting for pending payments`}),e.jsx(S,{children:t`Your order has been saved. Online payment is temporarily unavailable. You can complete the payment in a few minutes.`})]}):e.jsxs(e.Fragment,{children:[e.jsx(E,{children:t`Your order is waiting for pending payments`}),e.jsx(S,{children:t`For online payment continue by button or form bellow`}),e.jsx(Zn,{thankYouPage:n}),!o&&e.jsx(S,{children:t`or you'll be redirected automatically after 5 seconds`})]}):e.jsx(E,{children:t`Your payment is being processed.`})}function Zn({thankYouPage:n}){const{t}=m(),a=g.useCallback(()=>{n.redirectUrl&&(window.location.href=n.redirectUrl)},[n.redirectUrl]);return g.useEffect(()=>{if(!n.suspendAutoRedirect&&n.redirectUrl){const r=setTimeout(()=>{a()},5e3);return()=>clearTimeout(r)}},[n.suspendAutoRedirect,n.redirectUrl,a]),n.redirectUrl?e.jsx(T,{label:`${t`Pay`} ${n.totalToPayFormatted??""}`.trim(),onClick:a,size:"large"}):null}function qn({thankYouPage:n}){const{t}=m();return e.jsxs(e.Fragment,{children:[e.jsx(E,{children:t`Complete payment by bank transfer`}),e.jsxs("ul",{children:[e.jsx(L,{label:t`Bank account`,value:n.bankAccount?.bankAccount}),e.jsx(L,{label:t`IBAN`,value:n.bankAccount?.iban}),e.jsx(L,{label:t`BIC (SWIFT)`,value:n.bankAccount?.bicSwift}),e.jsx(L,{label:t`Variable symbol`,value:n.varSymbol}),e.jsx(L,{label:t`_SETTINGS_BASIC_CURRENCIES_DETAIL_BANK-ACCOUNT-OWNER-NAME`,value:n.bankAccount?.ownerName}),e.jsx(L,{label:t`Total to pay`,value:n.totalToPayFormatted})]})]})}function L({label:n,value:t}){return!t||t===""?null:e.jsxs("li",{children:[e.jsxs("span",{className:"thankYouPageHeader__bankTransferDetailsLabel",children:[n,":"]})," ",e.jsx("span",{className:"thankYouPageHeader__bankTransferDetailsValue",children:t})]})}function K({children:n,className:t,...a}){const{thankYouPage:r}=y(),o=h(d=>d.notification),s=h(d=>d.updateNotification),{data:l,status:u}=v(),{t:p}=m();return g.useEffect(()=>{l===null&&s({type:"critical",message:p`_STOREFRONT_ORDER_MISSING_DATA_ERROR`})},[l,s,p]),g.useLayoutEffect(()=>{requestAnimationFrame(()=>{(u==="success"||u==="error")&&document.dispatchEvent(new CustomEvent("OrderWithdrawDataLoaded"))})},[u]),e.jsxs("div",{...a,className:G("layout","layout__order",t),children:[r===null?e.jsx(Ln,{}):e.jsx(zn,{}),!!o&&e.jsx(z,{...o}),e.jsxs("div",{className:"layout__container",children:[n,e.jsx(Bn,{})]})]})}function Xn(n,t){return n.notWithdrawableReason!=="notReturnable"?null:n.withdrawalPeriodDays!==null?n.withdrawalPeriodDays===1?t`_STOREFRONT_ORDER_ITEM_NOT_RETURNABLE_DAY_ONE`:n.withdrawalPeriodDays>4?t("_STOREFRONT_ORDER_ITEM_NOT_RETURNABLE_DAYS_PLURAL_%1",[n.withdrawalPeriodDays]):t("_STOREFRONT_ORDER_ITEM_NOT_RETURNABLE_DAYS_FEW_%1",[n.withdrawalPeriodDays]):t`_STOREFRONT_ORDER_ITEM_NOT_RETURNABLE`}function Qn(n){return e.jsx(me,{...n,iconName:"minus",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 10C4 9.58579 4.33579 9.25 4.75 9.25H15.25C15.6642 9.25 16 9.58579 16 10C16 10.4142 15.6642 10.75 15.25 10.75H4.75C4.33579 10.75 4 10.4142 4 10Z",fill:"currentColor"})})}function $n(n){return e.jsx(me,{...n,iconName:"plus",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4C10.4142 4 10.75 4.33579 10.75 4.75V9.25012H15.25C15.6642 9.25012 16 9.58591 16 10.0001C16 10.4143 15.6642 10.7501 15.25 10.7501H10.75V15.25C10.75 15.6642 10.4142 16 10 16C9.58579 16 9.25 15.6642 9.25 15.25V10.7501H4.75C4.33579 10.7501 4 10.4143 4 10.0001C4 9.58591 4.33579 9.25012 4.75 9.25012H9.25V4.75C9.25 4.33579 9.58579 4 10 4Z",fill:"currentColor"})})}function Kn({item:n,...t}){const a=g.useRef(null),[r,o]=g.useState(null),s=h(f=>f.itemsToReturn),l=h(f=>f.updateItemsToReturn),{t:u}=m(),p=n.stockDecimalCount??0,d=g.useMemo(()=>
1s?.find(f=>f.orderContentId===n.itemId)?.quantity??0,[s,n.itemId]),c=g.useMemo(()=>re(n.amount,n.alreadyWithdrawnQuantity,p),[n.amount,n.alreadyWithdrawnQuantity,p]),b=g.useMemo(()=>De(p),[p]);function j(f){l(Fn(s,n.itemId,f))}const R=()=>{o(null),j(k(W(d+b,p),c))},q=()=>{o(null),j(k(W(d-b,p),c))},ke=f=>{const ie=f.target.value;o(ie);const le=ce(ie);le!==null&&j(k(le,c))},Be=()=>{if(r===""||r===null||ce(r)===null){o(null),j(0);return}j(k(W(Number(r.replace(",",".")),p),c)),o(null)},Me=()=>{const f=a.current;f&&setTimeout(()=>{f.select()},10)};return e.jsxs("span",{...t,className:"quantity",children:[e.jsx(T,{className:"quantity__button quantity__button--decrease",variant:!1,size:!1,label:u`_STOREFRONT_ORDER_QUANTITY_DECREASE`,onClick:q,children:e.jsx(Qn,{})}),e.jsx("input",{ref:a,"aria-label":u`_STOREFRONT_ORDER_QUANTITY`,className:"quantity__input",type:"number",autoComplete:"off",min:0,max:c,step:b,value:r??d,onChange:ke,onFocus:Me,onBlur:Be}),e.jsx(T,{className:"quantity__button quantity__button--increase",variant:!1,size:!1,label:u`_STOREFRONT_ORDER_QUANTITY_INCREASE`,onClick:R,children:e.jsx($n,{})})]})}function w({children:n,headline:t,...a}){return e.jsxs("div",{...a,className:"orderItems",children:[t&&e.jsx(ne,{children:t}),e.jsx("ul",{className:"orderItems__list",children:n})]})}function A({item:n,showQuantityInput:t,...a}){const{t:r}=m(),o=Q(n)||M(n)||dn(n),s=Xn(n,r);return e.jsxs("li",{...a,className:G("orderItem",{"orderItem--shippingBilling":Q(n),"orderItem--discount":M(n),"orderItem--gift":ve(n),"orderItem--product":X(n)}),children:[e.jsxs("span",{className:"orderItem__wrapper",children:[e.jsx("span",{className:"orderItem__image",children:M(n)?e.jsx(tn,{size:24}):e.jsx("img",{src:n.mainImage.url,alt:n.name,loading:"lazy",fetchPriority:"low",width:48,height:48})}),e.jsxs("span",{className:"orderItem__content",children:[e.jsxs("span",{className:"orderItem__nameWrapper",children:[e.jsx("span",{className:"orderItem__name",children:n.name}),n.variantName&&e.jsx("span",{className:"orderItem__variantName",children:n.variantName}),n.pickupPoint&&e.jsx("span",{className:"orderItem__pickupPoint",children:n.pickupPoint.name})]}),(!o||n.withdrawals.length>0)&&e.jsx(ue,{item:n,hideAmount:o,location:"desktop"})]}),(!o||n.withdrawals.length>0)&&e.jsx(ue,{item:n,hideAmount:o,location:"mobile"}),e.jsx("span",{className:"orderItem__price",children:n.itemPrice.withVatFormatted})]}),t&&n.isWithdrawable&&e.jsx("span",{className:"orderItem__quantityInput",children:e.jsx(Kn,{item:n})}),X(n)&&s!==null&&e.jsxs("span",{className:"orderItem__notReturnable",children:[s,n.termsUrl!==null&&e.jsxs(e.Fragment,{children:[" ",e.jsx("a",{href:n.termsUrl,target:"_blank",rel:"noreferrer",children:r`_STOREFRONT_ORDER_NOT_RETURNABLE_TERMS_LINK`})]})]})]})}function ue({item:n,hideAmount:t,location:a,...r}){const{t:o}=m();return e.jsxs("span",{...r,className:G("orderItem__amountWrapper",{"orderItem__amountWrapper--mobile":a==="mobile","orderItem__amountWrapper--desktop":a==="desktop"}),children:[!t&&e.jsxs("span",{className:"orderItem__amount",children:[n.amount," ",n.unit]}),n.withdrawals.length>0&&e.jsx(oe,{children:e.jsx(D,{label:`${o`_ORDER_STOREFRONT_RETURN_STATUS_REQUESTED`}${n.alreadyWithdrawnQuantity<n.amount?` ${n.alreadyWithdrawnQuantity}${n.unit?` ${n.unit}`:""}`:""}`,state:"warning"})})]})}function Ae(){return e.jsx("li",{className:"orderItem orderItem--product",children:e.jsxs("span",{className:"orderItem__wrapper",children:[e.jsx("span",{className:"orderItem__image",children:e.jsx(x,{name:"image"})}),e.jsxs("span",{className:"orderItem__content",children:[e.jsx("span",{className:"orderItem__name",children:e.jsx(x,{name:"name"})}),e.jsx("span",{className:"orderItem__amountWrapper orderItem__amountWrapper--desktop",children:e.jsx(x,{name:"amount"})})]}),e.jsx("span",{className:"orderItem__amountWrapper orderItem__amountWrapper--mobile",children:e.jsx(x,{name:"amount"})}),e.jsx("span",{className:"orderItem__price",children:e.jsx(x,{name:"price"})})]})})}function Jn(){const{t:n}=m(),{data:t}=v(),{products:a,gifts:r,shippingBillingItems:o,discounts:s}=ae();return t===void 0?e.jsx(et,{}):t===null?e.jsx(K,{}):e.jsxs(K,{children:[e.jsx(H,{srOnly:!0,children:n`_STOREFRONT_ORDER_HEADLINE`}
1),e.jsxs("section",{className:"orderDetail__content",children:[e.jsx("div",{className:"orderDetail__contentHeader",children:e.jsx(E,{children:n`_STOREFRONT_ORDER_SUMMARY`})}),a&&a.length>0&&e.jsx(w,{children:a.map(l=>e.jsx(A,{item:l},l.itemId))}),r&&r.length>0&&e.jsx(w,{headline:n`_STOREFRONT_ORDER_GIFTS`,children:r.map(l=>e.jsx(A,{item:l},l.itemId))}),o&&o.length>0&&e.jsx(w,{headline:n`_STOREFRONT_ORDER_SHIPPING_PAYMENTS`,children:o.map(l=>e.jsx(A,{item:l},l.itemId))}),s&&s.length>0&&e.jsx(w,{headline:n`_STOREFRONT_ORDER_DISCOUNTS`,children:s.map(l=>e.jsx(A,{item:l},`${l.itemId}-${l.itemPrice.vatRate}`))}),t.order.price&&e.jsxs("div",{className:"orderDetail__summary",children:[e.jsx(P,{children:n`_STOREFRONT_TOTAL_AMOUNT`}),e.jsx(P,{children:t.order.price.toPayFormatted})]})]})]})}function et(){return e.jsx(K,{children:e.jsxs("section",{className:"orderDetail__content",children:[e.jsx("div",{className:"orderDetail__contentHeader",children:e.jsx(x,{name:"heading"})}),e.jsx(w,{children:Array.from({length:3}).map((n,t)=>e.jsx(Ae,{},t))})]})})}function nt(){const{t:n}=m(),t=h(s=>s.updateItemsToReturn),a=h(s=>s.updateNotification),r=h(s=>s.updateShowReturnsPage),o=()=>{t(null),a(null),r(!1)};return e.jsx("header",{className:"orderHeader",children:e.jsxs("div",{className:"orderHeader__wrapper",children:[e.jsxs(T,{variant:"link",size:!1,onClick:o,label:n`_STOREFRONT_ORDER_BACK_TO_ORDER`,children:[e.jsx(an,{size:14}),e.jsx(T.Label,{children:n`_STOREFRONT_ORDER_BACK_TO_ORDER`})]}),e.jsx(F,{children:n`_STOREFRONT_RETURN_PRODUCTS_H1`})]})})}function tt(){const{orderCode:n}=y();return Re({mutationFn:t=>be({controller:{name:"OrderWithdraw",endpoint:"create"},schema:vn,config:{headers:{"Content-Type":"application/json"},body:JSON.stringify({orderCode:n,...t})}})})}function at(){const n=h(R=>R.itemsToReturn),t=h(R=>R.updateItemsToReturn),a=h(R=>R.updateNotification),r=h(R=>R.updateShowReturnsPage),{t:o}=m(),{data:s,refetch:l}=v(),{mutate:u,isPending:p}=tt();if(!s)return e.jsx("aside",{className:"orderDetail__sidebar"});const d=s.order.billingAddress,c=s.order.billingAddress?.email,b=Cn(o,s.withdrawalEligibility.bankAccountRequired),j=R=>{n?.length&&(a(null),u({items:n,bankAccountNumber:R.bankAccountNumber??""},{onSuccess:async q=>{q?.caseId?(await l(),t(null),r(!1),a({type:"success",message:e.jsxs(e.Fragment,{children:[o("_ORDER_STOREFRONT_WITHDRAWAL_SUCCESS_INFO_%1",[s.order.code]),!!c&&e.jsxs(e.Fragment,{children:[" ",o("_ORDER_STOREFRONT_SUCCESS_INFO_NOTIFICATION_%1",{parse:!0,variables:[c]})]})]}),onClose:()=>a(null)})):a({type:"critical",message:o`_ORDER_STOREFRONT_ERROR_INFO`})},onError:()=>{a({type:"critical",message:o`_STOREFRONT_ORDER_UNKNOWN_ERROR`})}}))};return e.jsxs("aside",{className:"orderDetail__sidebar",children:[e.jsx(H,{srOnly:!0,children:o`_STOREFRONT_ORDER_ADDITIONAL_INFORMATION`}),e.jsxs(Z,{title:`${o`_STOREFRONT_ORDER`} #${s.order.code}`,children:[!!d&&e.jsx($,{address:d,headline:o`_STOREFRONT_ORDER_CUSTOMER`}),e.jsxs(I,{noValidate:!0,schema:b,isLoading:p,onSuccess:j,children:[e.jsx(I.TextField,{name:"bankAccountNumber",label:o`_STOREFRONT_ORDER_RETURNS_BANK_ACCOUNT`}),e.jsx(I.SubmitField,{width:"full",label:o`SUBMIT A RETURN REQUEST`,disabled:!n?.length})]})]})]})}function J({children:n,className:t,...a}){const r=h(u=>u.notification),o=h(u=>u.updateNotification),{data:s}=v(),{t:l}=m();return g.useEffect(()=>{s===null&&o({type:"critical",message:l`_STOREFRONT_ORDER_MISSING_DATA_ERROR`})},[s,o,l]),e.jsxs("div",{...a,className:G("layout","layout__returns",t),children:[e.jsx(nt,{}),!!r&&e.jsx(z,{...r}),e.jsxs("div",{className:"layout__container",children:[n,e.jsx(at,{})]})]})}function rt(){const n=h(l=>l.updateItemsToReturn),{t}=m(),{data:a}=v(),{products:r,gifts:o}=ae();if(a===void 0)return e.jsx(ot,{});if(a===null)return e.jsx(J,{});const s=()=>{n(a.order.items.filter(l=>l.isWithdrawable).map(l=>({orderContentId:l.itemId,quantity:re(l.amount,l.alreadyWithdrawnQuantity,l.stockDecimalCount??0)})))};return e.jsxs(J,{children:[e.jsx(H,{srOnly:!0,children:t`_STOREFRONT_ORDER_RETURNS_HEADLINE`}
1),e.jsxs("section",{className:"orderDetail__content",children:[e.jsxs("div",{className:"orderDetail__contentHeader",children:[e.jsx(E,{children:t`_STOREFRONT_ORDER_ITEMS_SELECT`}),e.jsx(T,{variant:"outline",label:t`_STOREFRONT_ORDER_SELECT_ALL_ITEMS`,onClick:s})]}),r&&r.length>0&&e.jsx(w,{children:r.map(l=>e.jsx(A,{item:l,showQuantityInput:!0},l.itemId))}),o&&o.length>0&&e.jsxs("div",{children:[e.jsx(ne,{children:t`_STOREFRONT_ORDER_GIFTS`}),e.jsx(S,{children:t`_STOREFRONT_ORDER_GIFTS_RETURNS`}),e.jsx(w,{children:o.map(l=>e.jsx(A,{item:l},l.itemId))})]})]})]})}function ot(){return e.jsx(J,{children:e.jsxs("section",{className:"orderDetail__content",children:[e.jsx("div",{className:"orderDetail__contentHeader",children:e.jsx(x,{name:"heading"})}),e.jsx(w,{children:Array.from({length:3}).map((n,t)=>e.jsx(Ae,{},t))})]})})}function it(){const[n,t]=g.useState(""),{resendData:a}=y(),r=h(c=>c.showEmailSentPage),o=h(c=>c.updateShowEmailSentPage),{t:s}=m(),{mutate:l,isPending:u}=Ne(),p=()=>{if(!a){const c=window.location.pathname;window.location.href=c;return}t(""),l({orderCode:a.orderCode,email:a.email},{onSuccess:c=>{c?.status==="sent"?o(!0):t(s`_STOREFRONT_ORDER_ACCESS_PAGE_EXPIRED_EMAIL_ERROR`)},onError:()=>{t(s`_STOREFRONT_ORDER_UNKNOWN_ERROR`)}})},d=()=>{const c=window.location.pathname;window.location.href=c};return r?e.jsx(Ce,{onResendEmail:d}):e.jsxs(te,{children:[e.jsx(F,{children:s`_STOREFRONT_ORDER_ACCESS_PAGE_EXPIRED_LINK`}),e.jsx(S,{children:s`_STOREFRONT_ORDER_ACCESS_PAGE_EXPIRED_DESCRIPTION`}),n!==""&&e.jsx(z,{type:"critical",message:n}),e.jsx(T,{label:s`STOREFRONT_ORDER_ACCESS_PAGE_BUTTON_NEW_LINK`,type:"button",onClick:p,loading:u,width:"full"})]})}function lt(){const{state:n}=y(),t=h(a=>a.showReturnsPage);return n==="expired"?e.jsx(it,{}):n==="form"?e.jsx(wn,{}):t?e.jsx(rt,{}):e.jsx(Jn,{})}const st="#order-withdraw",dt=".reactWidget-orderWithdraw__wrapper",ct=".reactWidget-orderWithdraw",B={};function ut(n){if(B[n])return B[n];const t=document.querySelector(n);if(!t?.shadowRoot)throw new Error(`Shadow root not found on <${n}>`);return B[n]=t.shadowRoot,B[n]}const _e=':root,:host{--Global-Foregrounds-Content-White: #ffffff;--Global-Foregrounds-Content-Primary: #1f1f1f;--Global-Foregrounds-Content-Secondary: #4d4d4d;--Global-Foregrounds-Content-Tertiary: #767676;--Global-Foregrounds-Content-Muted: #555f6d;--Global-Foregrounds-Content-Disabled: #8c887d;--Global-Foregrounds-Content-Critical: #d33a36;--Global-Foregrounds-Content-Success: #006736;--Global-Foregrounds-Content-Informative: #3062d4;--Global-Foregrounds-Content-Warning: #6d4803;--Global-Foregrounds-Content-Link: #3062d4;--Global-Foregrounds-Borders-Primary: #919191;--Global-Foregrounds-Borders-Secondary: #cfd6dd;--Global-Foregrounds-Borders-Activated: #3f7e88;--Global-Foregrounds-Icons-Primary: #7b7575;--Global-Backgrounds-Content-Primary: #ffffff;--Global-Backgrounds-Content-Secondary: #f6f6f6;--Global-Backgrounds-Content-Disabled: #ebebeb;--Global-Backgrounds-Button-Primary: #000000;--Global-Backgrounds-Button-Primary_Hover: #343434;--Global-Backgrounds-Button-Tertiary: #885793;--Global-Backgrounds-Selected: #fff5de;--Corner-Radius: 3px;--Corner-Radius_Bigger: 6px;--Corner-Radius_Full: 9999em;--Text-Font: "AtkinsonHyperlegibleNext", Inter, Arial, sans-serif;--Text-Body_Small: 14px;--Line-Height-Body_Small: 1.28571;--Letter-Spacing-Body_Small: .28px;--Font-Weight-Body_Small: 500;--Text-Body_Base: 16px;--Line-Height-Body_Base: 1.25;--Letter-Spacing-Body_Base: .16px;--Font-Weight-Body_Base: 400;--Text-Body_Large: 18px;--Line-Height-Body_Large: 1.333333;--Letter-Spacing-Body_Large: 0;--Font-Weight-Body_Large: 600;--Spacing-Gap_XS: 4px;--Spacing-Gap_S: 8px;--Spacing-Gap_M: 12px;--Spacing-Gap_L: 16px;--Spacing-Gap_XL: 24px;--Elevation_Default: 1;--Elevation_Top: 10;--Elevation_ModalCloseButton: 9997;--Elevation_BranchList: 9998;--Elevation_Overlay: 9999;--Elevation_BranchDetail: 10000;--Elevation_Filters-Expanded: 10001;--Elevation_Gallery-Visible: 10002}*,:before,:after{box-sizing:border-box}body,p,h1,h2,h3,h4,h5,h6{margin:0}ul{list-style:none;padding:0;margin:0}button{font-size:inherit;font-family:inherit;background:none;border:none;padding:0;margin:0;cursor:pointer;color:inherit}button *{pointer-events:none}form{margin:0}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}:focus-visible,label:has(input[type=radio]:focus-visible),label:has(input[type=checkbox]:focus-visible),input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex="0"]:focus-visible{outline:3px solid #09367eff;outline-offset:2px;box-shadow:0 0 0 8px #fff;z-index:1}.reactWidget-orderWithdraw{color:var(--Global-Foregrounds-Content-Primary);font-family:var(--Text-Font);font-size:var(--Text-Body_Base);font-weight:var(--Font-Weight-Body_Base);line-height:var(--Line-Height-Body_Base);letter-spacing:var(--Letter-Spacing-Body_Base);padding:24px 24px 40px}@media(min-width:1200px){.reactWidget-orderWithdraw{padding:64px 64px 80px}}.reactWidget-orderWithdraw a{color:var(--Global-Foregrounds-Content-Link);text-decoration:none}.reactWidget-orderWithdraw a:hover{text-decoration:underline}h1{font-size:24px;line-height:1.2;font-weight:600;color:var(--Global-Foregrounds-Content-Primary);letter-spacing:var(--Letter-Spacing-Body_Large);margin:0 0 var(--Spacing-Gap_XL)}@media(min-width:768px){h1{font-size:32px}}h2{font-size:var(--Text-Body_Large);line-height:var(--Line-Height-Body_Large);font-weight:var(--Font-Weight-Body_Large);color:var(--Global-Foregrounds-Content-Primary);letter-spacing:var(--Letter-Spacing-Body_Large);margin:0 0 var(--Spacing-Gap_L)}h3{font-size:var(--Text-Body_Large);line-height:var(--Line-Height-Body_Large);font-weight:var(--Font-Weight-Body_Large);color:var(--Global-Foregrounds-Content-Primary);letter-spacing:var(--Letter-Spacing-Body_Large);margin:0 0 var(--Spacing-Gap_M)}h4{font-size:var(--Text-Body_Small);line-height:var(--Line-Height-Body_Small);font-weight:var(--Font-Weight-Body_Small);color:var(--Global-Foregrounds-Content-Tertiary);letter-spacing:var(--Letter-Spacing-Body_Small);margin:0 0 var(--Spacing-Gap_S)}p{margin-bottom:var(--Spacing-Gap_XL);color:var(--Global-Foregrounds-Content-Secondary)}
1.form-field{display:flex;flex-direction:column;gap:var(--Spacing-Gap_S);margin-bottom:var(--Spacing-Gap_XL)}.form-field:last-child{margin-bottom:0}.form-field--invalid .form-input{border-color:var(--Global-Foregrounds-Content-Critical)}.form-input{box-sizing:border-box;width:100%;height:40px;padding:var(--Spacing-Gap_S) var(--Spacing-Gap_L);font-family:var(--Text-Font);font-size:var(--Text-Body_Base);color:var(--Global-Foregrounds-Content-Primary);background-color:var(--Global-Backgrounds-Content-Primary);border:1px solid var(--Global-Foregrounds-Borders-Primary);border-radius:var(--Corner-Radius_Bigger);outline:none;transition:border-color .3s ease}.form-input::-moz-placeholder{color:var(--Global-Foregrounds-Content-Tertiary)}.form-input::placeholder{color:var(--Global-Foregrounds-Content-Tertiary)}.form-input--invalid{border-color:var(--Global-Foregrounds-Content-Critical)}.form-label{font-size:var(--Text-Body_Small);font-weight:var(--Font-Weight-Body_Small);line-height:var(--Line-Height-Body_Small);color:var(--Global-Foregrounds-Content-Secondary);letter-spacing:var(--Letter-Spacing-Body_Small)}.form-label__asterisk{margin-left:var(--Spacing-Gap_XS);color:var(--Global-Foregrounds-Content-Critical)}.form-description{font-size:var(--Text-Body_Small);line-height:var(--Line-Height-Body_Small);color:var(--Global-Foregrounds-Content-Secondary);letter-spacing:var(--Letter-Spacing-Body_Small)}.form-error{display:flex;gap:var(--Spacing-Gap_XS);align-items:flex-start;font-size:var(--Text-Body_Small);line-height:var(--Line-Height-Body_Small);color:var(--Global-Foregrounds-Content-Critical);letter-spacing:var(--Letter-Spacing-Body_Small)}.form-error svg{flex-shrink:0}.phoneCode__wrapper{position:relative;display:flex;flex:1 0 auto}.phoneCode__wrapper .phoneCode__value{pointer-events:none;z-index:1;display:flex;gap:var(--Spacing-Gap_XS);align-items:center;justify-content:space-between;width:100%;background:var(--Global-Backgrounds-Content-Primary)}.phoneCode__wrapper .phoneCode__select{cursor:pointer;position:absolute;inset:0;font-size:0;line-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none}.phoneField--withPhoneCode{display:flex}.button{border-radius:var(--Corner-Radius);letter-spacing:1%;position:relative;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:var(--Spacing-Gap_XS)}.button__full{width:100%}.button__small{font-size:var(--Text-Body_Small);line-height:1;font-weight:600;padding:var(--Spacing-Gap_S) var(--Spacing-Gap_M)}.button__medium{font-size:var(--Text-Body_Base);line-height:1;font-weight:500;padding:var(--Spacing-Gap_M) var(--Spacing-Gap_L)}.button__large{font-size:var(--Text-Body_Large);line-height:1.1;font-weight:400;padding:var(--Spacing-Gap_M) var(--Spacing-Gap_L);text-transform:uppercase}.button__primary{background-color:var(--Global-Backgrounds-Button-Primary);color:var(--Global-Foregrounds-Content-White);border:1px solid var(--Global-Foregrounds-Button-Primary)}.button__primary:hover{background-color:var(--Global-Backgrounds-Button-Primary_Hover);border-color:var(--Global-Foregrounds-Button-Primary_Hover)}.button__outline{background-color:var(--Global-Foregrounds-Content-White);color:var(--Global-Foregrounds-Content-Primary);border:1px solid var(--Global-Backgrounds-Button-Primary)}.button__outline:hover{color:var(--Global-Foregrounds-Content-White);background-color:var(--Global-Backgrounds-Button-Primary);border-color:var(--Global-Backgrounds-Button-Primary)}.button__link{color:var(--Global-Foregrounds-Content-Link)}.button__link:hover{text-decoration:underline}.button:disabled{opacity:.5;pointer-events:none}.button.button--loading{opacity:.5;cursor:wait}.button.button--loading .button__label{visibility:hidden;opacity:0}.button .icon__loader{position:absolute;inset:0;margin:auto}.message{display:flex;gap:var(--Spacing-Gap_XS);margin:var(--Spacing-Gap_M) 0}.message__icon{flex-shrink:0}.message__text{margin:0}.message--info{color:var(--Global-Foregrounds-Content-Informative)}.notification{padding:var(--Spacing-Gap_M);border-radius:var(--Corner-Radius_Bigger);margin-bottom:var(--Spacing-Gap_XL);line-height:1.5}.notification__content{padding:var(--Spacing-Gap_XS);display:flex;align-items:flex-start;gap:var(--Spacing-Gap_M)}.notification__icon,.notification__close{flex-shrink:0;margin-top:1px;line-height:0}.notification__close{margin-left:auto}.notification--critical{background-color:var(--Global-Foregrounds-Content-Critical);color:var(--Global-Foregrounds-Content-White)}.notification--success{background-color:var(--Global-Foregrounds-Content-Success);color:var(--Global-Foregrounds-Content-White)}.notification--info{background-color:var(--Global-Foregrounds-Content-Informative);color:var(--Global-Foregrounds-Content-White)}.notification--warning{background-color:var(--Global-Foregrounds-Content-Warning);color:var(--Global-Foregrounds-Content-White)}.flags{display:flex;flex-wrap:wrap;flex-direction:row;gap:var(--Spacing-Gap_XS);overflow:hidden}.flag{padding:var(--Spacing-Gap_XS) var(--Spacing-Gap_S);border-radius:var(--Corner-Radius_Full);color:#113997;background-color:#d7e4ff;font-size:12px;line-height:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.flag--success{color:#135333;background-color:#e0f6eb}.flag--info{color:var(--Global-Foregrounds-Content-Muted);background-color:#ebeef1}.flag--warning{color:#6d4803;background-color:#feefc4}.skeleton{border-radius:var(--Corner-Radius_Full);
1background:linear-gradient(90deg,var(--Global-Backgrounds-Content-Disabled) 0%,var(--Global-Backgrounds-Content-Secondary) 50%,var(--Global-Backgrounds-Content-Disabled) 100%);background-size:200% 100%;animation:shimmer 2s infinite}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.spinner{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.spinner--overlay{position:fixed;z-index:100;inset:0;background:#fff9}.spinner .icon__loader{animation:spin .7s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.orderHeader{display:flex;justify-content:space-between;margin-bottom:var(--Spacing-Gap_L);flex-direction:column;gap:var(--Spacing-Gap_L);color:var(--Global-Foregrounds-Content-Muted)}@media(min-width:768px){.orderHeader{flex-direction:row}}.orderHeader__wrapper{display:flex;flex-direction:column;align-items:flex-start;gap:var(--Spacing-Gap_S)}.orderHeader__wrapper h1,.orderHeader__wrapper p{margin:0}.orderHeader__returnButtonWrapper{display:flex;flex-direction:column;gap:var(--Spacing-Gap_S)}@media(min-width:768px){.orderHeader__returnButtonWrapper{flex:1 0 360px;align-items:flex-end}}@media(min-width:768px){.orderHeader__returnButton{max-width:240px}}@media(min-width:768px){.orderHeader__remainingDays{text-align:right}}.orderHeader .skeleton--heading{width:200px;height:28px}@media(min-width:992px){.orderHeader .skeleton--heading{width:400px;height:38px}}.orderHeader .skeleton--paragraph{width:150px;height:20px}.orderHeader .skeleton--flags{width:100px;height:20px}.orderHeader .skeleton--button{width:100%;max-width:240px;height:42px}.orderHeader .skeleton--message{width:300px;height:20px}@media(min-width:768px){.orderHeader .skeleton--message{margin-left:auto}}.orderDetail__content{display:flex;flex-direction:column;gap:var(--Spacing-Gap_XL);flex:1 1 auto;background-color:var(--Global-Backgrounds-Content-Primary);border-radius:var(--Corner-Radius_Bigger);padding:var(--Spacing-Gap_L)}@media(min-width:768px){.orderDetail__content{padding:var(--Spacing-Gap_XL)}}.orderDetail__content h3{margin-bottom:0}.orderDetail__summary{display:flex;justify-content:space-between;align-items:center;gap:var(--Spacing-Gap_L);font-size:var(--Text-Body_Large);padding-top:var(--Spacing-Gap_XL);border-top:1px solid #eaedf0}.orderDetail__contentHeader{display:flex;flex-direction:column;gap:var(--Spacing-Gap_L)}@media(min-width:768px){.orderDetail__contentHeader{flex-direction:row;align-items:center;justify-content:space-between}}.orderDetail__content .skeleton--heading{width:200px;height:23px}.orderDetail__sidebar{display:flex;flex-direction:column;gap:var(--Spacing-Gap_L)}@media(min-width:992px){.orderDetail__sidebar{flex:0 0 360px;width:360px}}.documentList{display:flex;flex-direction:column;gap:var(--Spacing-Gap_XL)}@media(min-width:480px){.documentList{gap:var(--Spacing-Gap_L)}}.documentList li{display:flex;align-items:flex-start;gap:var(--Spacing-Gap_XS) var(--Spacing-Gap_L)}@media(min-width:480px){.documentList li{flex-wrap:nowrap}}.documentList__contentWrapper{display:flex;width:100%;overflow:hidden;align-items:flex-start;gap:var(--Spacing-Gap_L)}.documentList__icon{flex-shrink:0}.documentList__content{display:flex;flex-direction:column;overflow:hidden}.documentList__contentLabel,.documentList__contentCode{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.documentList__action{margin-left:auto;flex:0}.helpInfo__list{display:flex;flex-direction:column;gap:var(--Spacing-Gap_S)}.helpInfo__list a{display:flex;gap:var(--Spacing-Gap_S);align-items:center}.helpInfo__list span{display:flex;align-items:center;color:var(--Global-Foregrounds-Content-Primary)}.orderDetail__sidebar .skeleton--name{width:120px;height:20px}.orderDetail__sidebar .skeleton--phone{width:180px;height:20px}.orderDetail__sidebar .skeleton--email{width:240px;height:20px}.thankYouPageHeader{display:flex;flex-direction:column;gap:var(--Spacing-Gap_L);justify-content:space-between;margin-bottom:var(--Spacing-Gap_L);color:var(--Global-Foregrounds-Content-Muted)}@media(min-width:768px){.thankYouPageHeader{flex-direction:row}}.thankYouPageHeader__wrapper{display:flex;flex-direction:column;gap:var(--Spacing-Gap_S);align-items:flex-start;width:100%}.thankYouPageHeader__wrapper h1,.thankYouPageHeader__wrapper p,.thankYouPageHeader__paymentSectionContent h3{margin:0}
1.thankYouPageHeader__paymentSection{display:flex;flex-direction:column;gap:var(--Spacing-Gap_XL);width:100%;margin-top:var(--Spacing-Gap_L);padding:var(--Spacing-Gap_L);color:var(--Global-Foregrounds-Content-Muted);background-color:var(--Global-Backgrounds-Content-Primary);border-radius:var(--Corner-Radius_Bigger)}@media(min-width:768px){.thankYouPageHeader__paymentSection{flex-direction:row;align-items:center;justify-content:space-between;padding:var(--Spacing-Gap_XL)}}.thankYouPageHeader__paymentSectionContent{display:flex;flex-direction:column;gap:var(--Spacing-Gap_M);align-items:flex-start}.thankYouPageHeader__paymentSectionContent button{text-transform:none}.thankYouPageHeader__paymentSectionQrCode{line-height:0}@media(min-width:768px){.thankYouPageHeader__paymentSectionQrCode{padding-right:var(--Spacing-Gap_XL)}}.thankYouPageHeader__paymentSectionContent ul li{display:flex;flex-direction:column;gap:var(--Spacing-Gap_XS);margin:0 0 var(--Spacing-Gap_S) 0}.thankYouPageHeader__paymentSectionContent ul li:last-child{margin-bottom:0}@media(min-width:768px){.thankYouPageHeader__paymentSectionContent ul li{flex-direction:row}}.thankYouPageHeader__bankTransferDetailsLabel{display:inline-block;min-width:12rem;font-size:var(--Text-Body_Small)}.thankYouPageHeader__bankTransferDetailsValue{font-size:var(--Text-Body_Large);font-weight:var(--Font-Weight-Body_Large);line-height:var(--Line-Height-Body_Large);color:var(--Global-Foregrounds-Content-Primary);letter-spacing:var(--Letter-Spacing-Body_Large)}.companyAddress__list{margin-bottom:var(--Spacing-Gap_S)}.layout__login{display:flex;flex-direction:column;max-width:400px;margin:0 auto;padding:var(--Spacing-Gap_XL);border-radius:var(--Corner-Radius_Bigger);background-color:var(--Global-Backgrounds-Content-Primary)}.layout__login h1{font-size:24px}.layout__order .layout__container,.layout__returns .layout__container{display:flex;flex-direction:column;gap:var(--Spacing-Gap_L)}@media(min-width:992px){.layout__order .layout__container,.layout__returns .layout__container{align-items:flex-start;flex-direction:row}}.layout__returns .notification{position:sticky;top:20px;z-index:60}.orderItems__list{display:flex;flex-direction:column;gap:var(--Spacing-Gap_L)}.orderItem__wrapper{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--Spacing-Gap_M)}@media(min-width:480px){.orderItem__wrapper{flex-wrap:nowrap}}.orderItem--product,.orderItem--gift{border-bottom:1px solid #eaedf0;padding-bottom:var(--Spacing-Gap_L)}.orderItem--product:last-child,.orderItem--gift:last-child{border-bottom:none;padding-bottom:0}.orderItem__image{flex:0 0 48px;width:48px;height:48px;border-radius:var(--Corner-Radius_Bigger);overflow:hidden;display:flex;align-items:center;justify-content:center}.orderItem--discount .orderItem__image,.orderItem--shippingBilling .orderItem__image{height:22px}.orderItem--discount .orderItem__image img,.orderItem--shippingBilling .orderItem__image img{height:auto;width:auto;max-width:100%;max-height:100%}.orderItem__content{display:flex;flex-direction:column;gap:var(--Spacing-Gap_M);max-width:500px;flex-basis:100%}@media(min-width:480px){.orderItem__content{flex-basis:auto}}.orderItem__nameWrapper{display:flex;flex-direction:column;gap:var(--Spacing-Gap_XS)}.orderItem__name{font-size:var(--Text-Body_Large);line-height:var(--Line-Height-Body_Large);font-weight:var(--Font-Weight-Body_Large)}.orderItem__variantName,.orderItem__pickupPoint,.orderItem__amount{color:var(--Global-Foregrounds-Content-Muted)}.orderItem__amountWrapper{display:flex;flex-wrap:wrap;align-items:center;gap:var(--Spacing-Gap_XS) var(--Spacing-Gap_S);flex:1}@media(min-width:480px){.orderItem__amountWrapper--mobile{display:none}}.orderItem__amountWrapper--desktop{display:none}@media(min-width:480px){.orderItem__amountWrapper--desktop{display:flex}}.orderItem__price{margin-left:auto;white-space:nowrap;font-size:var(--Text-Body_Large);line-height:var(--Line-Height-Body_Large);font-weight:var(--Font-Weight-Body_Large);text-align:right}.orderItem__quantityInput{display:inline-block;margin-top:var(--Spacing-Gap_XS)}@media(min-width:480px){.orderItem__quantityInput{margin-left:60px}}.orderItem__notReturnable{display:inline-block;margin-top:var(--Spacing-Gap_XS);color:var(--Global-Foregrounds-Content-Muted)}@media(min-width:480px){.orderItem__notReturnable{margin-left:60px}}
1.orderDetail__content .skeleton--image{width:48px;height:48px}.orderDetail__content .skeleton--name{width:230px;height:23px}.orderDetail__content .skeleton--amount{width:50px;height:20px}.orderDetail__content .skeleton--price{width:100px;height:23px;margin-left:auto}.quantity{display:inline-flex;align-items:center;justify-content:center}.quantity__button{min-width:36px;min-height:32px;color:var(--Global-Foregrounds-Content-Secondary);font-size:20px;border:1px solid var(--Global-Foregrounds-Borders-Secondary);border-radius:var(--Corner-Radius_Bigger)}.quantity__button--decrease{border-top-right-radius:0;border-bottom-right-radius:0}.quantity__button--increase{border-top-left-radius:0;border-bottom-left-radius:0}.quantity__input{text-align:center;width:50px;min-height:32px;border:none;border-top:1px solid var(--Global-Foregrounds-Borders-Secondary);border-bottom:1px solid var(--Global-Foregrounds-Borders-Secondary);font-size:16px;font-weight:400;line-height:1;color:var(--Global-Foregrounds-Content-Primary);background-color:transparent;padding:0;margin:0;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.quantity__input::-webkit-outer-spin-button,.quantity__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.quantity__input[type=number]{-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}.sidebarSection{background-color:var(--Global-Backgrounds-Content-Primary);border-radius:var(--Corner-Radius_Bigger);display:flex;flex-direction:column;gap:var(--Spacing-Gap_XL);color:var(--Global-Foregrounds-Content-Muted);padding:var(--Spacing-Gap_L)}@media(min-width:768px){.sidebarSection{padding:var(--Spacing-Gap_XL)}}.sidebarSection h3{margin:0}.sidebarSection .skeleton--heading{width:150px;height:23px}';on({dsn:"https://[email protected]/4511535424667648",environment:"production",allowUrls:["/shop/react/dist/"],denyUrls:[".test","localhost"],ignoreErrors:["AbortError"]});const V=ut(st);if(typeof CSSStyleSheet<"u"&&"adoptedStyleSheets"in V){const t=new CSSStyleSheet;t.replaceSync(_e),V.adoptedStyleSheets=[t]}else{const t=document.createElement("style");t.textContent=_e,V.prepend(t)}const Ge=he(V.querySelector(dt),ge),Pe=he(Ge.querySelector(ct),ge),He=xe(fe(Ge,"common"),Ze),_t=xe(fe(Pe,"widget"),gn);qe(He.localization.locale);const pt=Xe.createRoot(Pe),mt=new Qe($e);pt.render(e.jsx(Ke,{client:mt,children:e.jsx(Je,{appState:He,children:e.jsx(we.Provider,{value:_t,children:e.jsx(lt,{})})})}));

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.