1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2990],{621:(e,t,s)=>{"use strict";s.d(t,{Y:()=>r});let r=(e,t=!1,s=null,r,a)=>{if(!e)return"";let l=new Date(e),n="";return l&&(n=l.toLocaleDateString(r,{timeZone:a})),l&&t&&(n+=`${s||" "}${l.toLocaleTimeString(r,{hour:"2-digit",minute:"2-digit",timeZone:a})}`),n}},12990:(e,t,s)=>{"use strict";s.r(t),s.d(t,{MyAccount:()=>O});var r=s(26514),a=s(75834),l=s(73064),n=s(55047),i=s(59429),o=s(81586),c=s(16074),d=s(51973),u=s(80254),m=s(78471),h=s(49421),g=s(60269),p=s(62537),_=s(75406),x=s(39285);let b=({className:e,...t})=>{let s,{t:a}=(0,n.Bd)("common");return(0,r.jsx)(c.h,{className:(0,_.cn)({"[overflow-wrap:anywhere] [word-break:normal] text-balance":!0,...(0,x.H)({base:"!text-5xl lg:!text-6xl !leading-tight",orsay:"!text-6xl lg:!text-7xl"}),[`${e}`]:e}),suppressHydrationWarning:!0,...t,children:(s=new Date().getHours())>=2&&s<10?a("account__greeting__morning"):s>=10&&s<12?a("account__greeting__day"):s>=12&&s<18?a("account__greeting__afternoon"):a("account__greeting__evening")})};var f=s(70948),v=s(86750),j=s(18420),y=s(67301);let w=({passMachineCardUrl:e})=>{let{t}=(0,n.Bd)("common"),{settings:s}=(0,o.Pj)(),[l,i]=(0,a.useState)(!1),[c,m]=(0,a.useState)(!1),h={apple:`/images/wallet-badges/apple/${s.defaultLocale}.svg`,google:`/images/wallet-badges/google/${s.defaultLocale}.svg`},{isDesktop:g}=(0,y.U)();return(0,a.useEffect)(()=>{let e=(0,j.G)()||(0,j.h)();i(g||e),m(g||!e)},[g]),(0,r.jsxs)("div",{className:"mt-8 flex flex-col items-center gap-3 relative","data-testid":u.Q.AccountWalletCardDownload,children:[l&&(0,r.jsx)("div",{className:(0,_.cn)({"lg:w-[12.5rem]":!0,"mb-3":c}),children:(0,r.jsx)(d.A,{type:"standardHtml",href:e,target:"_blank",title:t("account__my-account__wallet_card_download__apple"),"data-testid":u.Q.AccountWalletCardDownloadApple,children:(0,r.jsx)(v.$,{alt:t("account__my-account__wallet_card_download__apple"),src:h.apple,unoptimized:!0,width:268,height:70})})}),c&&(0,r.jsx)("div",{className:"lg:w-[12.5rem]",children:(0,r.jsx)(d.A,{type:"standardHtml",href:e,target:"_blank",title:t("account__my-account__wallet_card_download__google"),"data-testid":u.Q.AccountWalletCardDownloadGoogle,children:(0,r.jsx)(v.$,{alt:t("account__my-account__wallet_card_download__google"),src:h.google,unoptimized:!0,width:268,height:70})})})]})},N=({firstname:e,lastname:t,erpNumber:s,passMachineCardUrl:a,className:l,...i})=>{let{t:o}=(0,n.Bd)("common"),c=!s;return(0,r.jsxs)("div",{className:(0,_.cn)({"text-center content-center text-white p-10":!0,...(0,x.H)({base:"bg-gray-800",orsay:"bg-blue-500"}),[`${l}`]:l}),"data-testid":u.Q.AccountMyAccountDiv,...i,children:[(0,r.jsx)("div",{className:"text-2xl","data-testid":u.Q.AccountMyAccountUserNameDiv,children:(0,r.jsxs)("strong",{children:[e," ",t]})}),(0,r.jsx)("div",{className:"my-1 text-lg","data-testid":u.Q.AccountMyAccountUserNumberDiv,children:c?(0,r.jsx)("div",{className:"h-6 w-32 bg-white/20 rounded mx-auto animate-pulse","aria-label":o("account__my-account__loading")}):s}),(0,r.jsx)("div",{className:(0,_.cn)({"relative overflow-hidden rounded-2xl lg:rounded-lg p-4 lg:p-2 w-[min(65vw,16.25rem)] h-[min(65vw,16.25rem)] lg:w-[8.125rem] lg:h-[8.125rem] inline-block mt-5":!0,"bg-white":!c,"bg-white/20":c}),"data-testid":u.Q.AccountMyAccountQRCodeDiv,"aria-label":o("account__my-account__qr-code-label"),children:c?(0,r.jsx)(h.a,{isActive:!0}):(0,r.jsx)(f.h,{value:s,className:"w-full h-full",title:o("account__my-account__qr-code-title")})}),a&&(0,r.jsx)(w,{passMachineCardUrl:a})]})};var k=s(45640),A=s(80766);let P=({value:e,label:t,className:s,tooltip:l,...n})=>{let i=(0,a.useId)(),o=(0,a.useId)(),c=(0,a.useMemo)(()=>"number"==typeof e?(0,k.Z)(e):String(e),[e]);return(0,r.jsxs)("figure",{className:(0,_.cn)({"block lg:w-[11.875rem] lg:aspect-square text-center py-5 px-7.5 flex gap-2.5 items-center lg:flex-col lg:justify-center text-start lg:text-center":!0,"[--tooltip-button__background-color:transparent]":!!l,[`${s}`]:s}),"aria-labelledby":`${i} ${o}`,...n,children:[(0,r.jsx)("data",{id:i,value:String(e),className:"text-5xl",children:c}),(0,r.jsx)("figcaption",{id:o,children:l?(0,r.jsxs)(A.m_,{children:[(0,r.jsx)(A.Si,{className:"underline decoration-dotted underline-offset-2",children:(0,r.jsx)(r.Fragment,{children:t})}),(0,r.jsx)(A.cS,{children:(0,r.jsx)("div",{className:"px-4",children:l})})]}):t})]})};var $=s(14366),M=s(84775);let S=({points:e,price:t,activePoints:s,prevPoints:l,nextPoints:i})=>{let{t:o}=(0,n.Bd)("common"),c=(0,a.useMemo)(()=>l?e-(e-l)/2:i&&i>e?e-(i-e)/2:0,[l,e,i]),d=(0,a.useMemo)(()=>i?e+(i-e)/2:c>0?e+(e-c):e,[i,e,c]),u=(0,a.useMemo)(()=>!!s&&s>=e,[s,e]),m=(0,a.useMemo)(()=>
1{if(!s)return"0%";let e=Math.min(Math.max((s-c)/(d-c)*100,0),100);return`${e}%`},[s,c,d]),h=(0,a.useMemo)(()=>"number"!=typeof s||u?0:Math.max(e-s,0),[s,e,u]),g=(0,a.useMemo)(()=>u?o("club-points-milestones__milestone-reached",{points:(0,k.Z)(e),price:t}):o("club-points-milestones__milestone-not-reached","Miln\xedk: {{points}} bodů za poukaz v hodnotÄ {{price}} KÄ. NesplnÄno, chyb\xed jeÅ¡tÄ {{pointsNeeded}} bodů",{points:(0,k.Z)(e),price:t,pointsNeeded:(0,k.Z)(h)}),[u,e,t,h,o]);return(0,r.jsxs)("li",{className:"relative text-center grid [grid-template-columns:auto] gap-2.5","data-state":u?"active":"inactive",style:{gridTemplateRows:"[start] 1fr [range-start] auto [range-end] 1fr [end]"},role:"listitem","aria-label":g,children:[(0,r.jsx)("div",{className:"w-full h-[3px] bg-[--club-points-milestone__base__bg-color] [grid-row:range-start_/_range-end] [grid-column:1] self-center","aria-hidden":"true",children:(0,r.jsx)("div",{className:(0,_.cn)({"h-full bg-[--club-points-milestone__active__bg-color] transition-all":!0}),style:{width:`${m}`}})}),(0,r.jsx)("div",{className:(0,_.cn)({"w-7.5 h-7.5 rounded-full text-white [grid-row:range-start_/range-end] [grid-column:1] self-center justify-self-center":!0,"flex items-center justify-center transition-colors":!0,"bg-[--club-points-milestone__active__bg-color] [color:--club-points-milestone__active__color]":u,"bg-[--club-points-milestone__base__bg-color] [color:--club-points-milestone__base__color]":!u}),role:"img","aria-hidden":"true",children:(0,r.jsx)($.I,{icon:"/images/icons/check.svg",className:"w-3.5 h-3.5 fill-current","aria-hidden":"true"})}),(0,r.jsx)("div",{className:"[grid-row:start_/_range-start] [grid-column:1]","aria-hidden":"true",children:(0,r.jsx)(n.x6,{i18nKey:"club-points-short",defaults:"{{points}} b.",values:{points:(0,k.Z)(e)}})}),(0,r.jsx)("div",{className:"[grid-row:range-end_/_end] [grid-column:1]","aria-hidden":"true",children:(0,r.jsx)(M.j,{value:t})})]})},C=({className:e,activePoints:t,milestones:s,...l})=>{let{t:i}=(0,n.Bd)("common"),o=(0,a.useMemo)(()=>t||0,[t]),c=(0,a.useMemo)(()=>s[s.length-1]?.points||0,[s]),d=(0,a.useMemo)(()=>t?Math.min(t/c*100,100):0,[t,c]);return(0,r.jsx)("div",{className:(0,_.cn)({"overflow-x-scroll md:overflow-auto":!0,[`${e}`]:e}),"data-component":"ClubPointsMilestones",role:"region","aria-label":i("club-points-milestones__aria-label","PÅehled klubov\xfdch bodů a odmÄn"),"data-testid":u.Q.VouchersClubMyAccountClubPointsMeterDiv,...l,children:(0,r.jsx)("ol",{className:"grid grid-flow-col [grid-auto-columns:minmax(10rem,_1fr)] lg:[grid-auto-columns:minmax(7rem,_1fr)] list-none m-0 p-0",role:"list","aria-label":i("club-points-milestones__list__aria-label","Miln\xedky odmÄn. Aktu\xe1lnÄ m\xe1te {{points}} bodů, progress: {{progress}}%",{progress:Math.round(d),points:o?.toLocaleString()}),children:s&&s.map((e,t)=>(0,r.jsx)(S,{points:e.points,price:e.price,activePoints:o,prevPoints:s[t-1]?s[t-1].points:null,nextPoints:s[t+1]?s[t+1].points:null},t))})})};var L=s(52661);let E=(0,i.PA)(({className:e,...t})=>{let{user:s,settings:a}=(0,o.Pj)();if(!s?.clubPoints||!a.club)return null;let{activePoints:l,nextVoucherPrice:i,nextVoucherRemainPoints:c,nextVoucherRemainPrice:d,currentVoucherPrice:u}=s.clubPoints;return(l||0)<a.club.pointsToVoucherPrices[0].points?(0,r.jsx)("p",{className:e,...t,children:(0,r.jsx)(n.x6,{i18nKey:"club-points__info__no-voucher",values:{nextVoucherPrice:i,nextVoucherRemainPoints:c?.toLocaleString(),nextVoucherRemainPrice:d,currency:a.defaultCurrency}})}):i?(0,r.jsx)("p",{className:e,...t,children:(0,r.jsx)(n.x6,{i18nKey:"club-points__info__voucher",values:{currentVoucherPrice:u,nextVoucherRemainPoints:c?.toLocaleString(),nextVoucherRemainPrice:d,nextVoucherPrice:i,currency:a.defaultCurrency}})}):(0,r.jsx)("p",{className:e,...t,children:(0,r.jsx)(n.x6,{i18nKey:"club-points__info__voucher__no-next",values:{currentVoucherPrice:u,currency:a.defaultCurrency}})})}),D=({className:e,...t})=>{let{user:s}=(0,o.Pj)();if(!s?.clubPoints?.currentVoucherPrice)return null;let{currentVoucherPrice:a}=s.clubPoints;return(0,r.jsxs)("div",{className:(0,_.cn)({"bg-orange-300 p-6 lg:p-8":!0,[`${e}`]:e}
1),"data-component":"ClubAvailableVoucher","data-testid":u.Q.ShowAvailableVoucherClubPointsDialogDiv,...t,children:[(0,r.jsx)("h3",{className:"my-0 text-2xl font-bold mb-2.5",children:(0,r.jsx)(n.x6,{i18nKey:"club-available-voucher__title",defaults:"Gratulujeme, m\xe1te n\xe1rok na <Price /> pouk\xe1zku",components:{Price:(0,r.jsx)(M.j,{value:a,className:"inline"})}})}),(0,r.jsx)("p",{className:"mt-2.5",children:(0,r.jsx)(n.x6,{i18nKey:"club-available-voucher__body",defaults:"TiÅ¡tÄn\xfd Å¡ek si můžete vyzvednout osobnÄ na jak\xe9koli z naÅ¡ich prodejen nebo si můžete <a href='#'>online vygenerovat pouk\xe1zku</a> pro použit\xed na e-shopu. Body si lze tak\xe9 Å¡etÅit.",components:{a:(0,r.jsx)("a",{className:"underline"})}})})]})},K=(0,i.PA)(()=>{let{user:e,settings:t}=(0,o.Pj)();if("number"!=typeof e?.clubPoints?.activePoints||!t.club)return null;let{activePoints:s}=e.clubPoints;if(0===s)return(0,r.jsx)(n.x6,{i18nKey:"club-points__points__0points"});let a=t.club.pointsToVoucherPrices[0];if(s<a.points)return(0,r.jsx)(n.x6,{i18nKey:"club-points__points__before-voucher",values:{firstVoucherReward:(0,k.Z)(a.points)}});let l=t.club.pointsToVoucherPrices[t.club.pointsToVoucherPrices.length-1];return s>=l.points?(0,r.jsx)(n.x6,{i18nKey:"club-points__points__maximum-points",values:{maxVoucherPrice:(0,k.Z)(l.price)}}):(0,r.jsx)(n.x6,{i18nKey:"club-points__points__voucher"})}),O=(0,i.PA)(()=>{let{user:e,settings:t}=(0,o.Pj)(),{t:s}=(0,n.Bd)("common");return(()=>{let{user:e}=(0,o.Pj)(),t=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!e.user?.erpNumber)return t.current=setInterval(()=>{(0,L.h5)(()=>{e.user?.erpNumber?(clearInterval(t.current??void 0),t.current=null):e.fetchUser()})},5e3),()=>{clearInterval(t.current??void 0),t.current=null}},[e.user?.erpNumber])})(),(0,a.useEffect)(()=>{(0,L.h5)(()=>{e.orders?.length>=3||e.fetchOrders(3)})},[e]),(0,a.useEffect)(()=>{(0,L.h5)(()=>{t.club?.isActive&&e.fetchVoucherClubPoints()})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("section",{className:"lg:flex lg:gap-[4.375rem] mb-10 lg:mb-[5.625rem]","aria-labelledby":"account-greeting",children:[(0,r.jsxs)("div",{className:"flex-initial text-pretty mb-5 lg:mb-0",children:[(0,r.jsx)(b,{id:"account-greeting",className:(0,_.cn)({"!mt-0":!0,...(0,x.H)({base:"!mb-4",orsay:"!mb-2.5"})})}),t.isOrsay()?(0,r.jsx)("p",{className:"mb-4",children:(0,r.jsx)(n.x6,{i18nKey:"account__my-account__message"})}):null,(0,m.k)(s("account__my-account__message2"),"account__my-account__message2")&&(0,r.jsxs)("p",{className:"mb-4",children:[(0,r.jsx)(n.x6,{i18nKey:"account__my-account__message2"}),t.routes.goodsReturnPage&&t.isUa()&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(d.A,{className:"hover:underline",href:t.routes.goodsReturnPage,children:`${window&&window.location.origin}${t.routes.goodsReturnPage}`}),"."]})]}),t.routes.goodsReturnPage&&t.isGap()&&(0,r.jsxs)("p",{className:"mb-4",children:[(0,r.jsx)(n.x6,{i18nKey:"account__my-account__free-return"})," ",(0,r.jsx)(d.A,{className:"font-medium hover:underline",href:t.routes.goodsReturnPage,children:(0,r.jsx)(n.x6,{i18nKey:"account__my-account__free-return-here"})})]}),(t.androidBadgeImage||t.appleBadgeImage)&&(0,r.jsx)(p.C,{badges:t,className:"my-6 lg:my-7.5"}),t.routes.userOrders&&(0,r.jsx)("div",{className:"mt-7.5 lg:mt-10",children:(0,r.jsx)(g.S,{href:t.routes.userOrders,"data-testid":u.Q.AccountMyAccountOrdersLink,as:d.A,variant:"inverted",className:"w-full lg:max-w-[18rem] [overflow-wrap:anywhere] [word-break:normal] text-balance",children:(0,r.jsx)("span",{children:(0,r.jsx)(n.x6,{i18nKey:"account__my-account__button-order-history"})})})})]}),e.user&&(0,r.jsx)("aside",{className:"lg:w-[19.5rem] grid flex-none","aria-label":s("account__my-account__membership-card-label"),children:(0,r.jsx)(N,{firstname:e.user.firstname,lastname:e.user.lastname,erpNumber:e.user.erpNumber,passMachineCardUrl:e.user.passMachineCardUrl})})]}),t.club?.isActive&&(0,r.jsx)("div",{className:(0,_.cn)({"my-10 lg:my-[5.625rem]":!0,"lg:grid lg:gap-4 lg:justify-between lg:grid-cols-2 lg:[&>*:nth-child(even)]:[justify-self:end]":t.club?.isActive}),children:t.club?.isActive&&(0,r.jsxs)("section",{"aria-labelledby":"account__my-account__club-points",children:[(0,r.jsx)(c.h,{id:"account__my-account__club-points",className:"mb-4 lg:!mt-0",heading:2,children:(0,r.jsx)(n.x6,{i18nKey:"club-points__title",defaults:"Klubov\xe9 body"})}),(0,r.jsxs)("div",{className:"lg:flex lg:gap-4 lg:flex-wrap [&>*+*]:mt-4 lg:[&>figure]:mt-0",children:[(0,r.jsx)(P,{value:e.clubPoints?.activePoints||0,label:(0,r.jsx)(n.x6,{i18nKey:"account__my-account__active-points"}),className:"bg-orange-300",tooltip:(0,r.jsx)(K,{}),"data-testid":u.Q.VouchersClubMyAccountClubPointsBalanceActiveDiv}),(0,r.jsx)(P,{value:e.clubPoints?.inactivePoints||0,label:(0,r.jsx)(n.x6,{i18nKey:"club-points__inactive-points"}),className:"bg-orange-300",tooltip:(0,r.jsx)(n.x6,{i18nKey:"club-points__inactive-points__text"}),"data-testid":u.Q.VouchersClubMyAccountClubPointsBalanceInactiveDiv})]})]})}),t.club?.isActive&&(0,r.jsxs)("section",{className:"my-10 lg:my-[5.625rem]","aria-labelledby":"account__my-account__vouchers","data-testid":u.Q.VouchersClubMyAccountVouchersClubSection,children:[(0,r.jsx)(c.h,{id:"account__my-account__vouchers",className:"!mt-0 !mb-2.5",heading:2,children:(0,r.jsx)(n.x6,{i18nKey:"account__my-account__vouchers-title",defaults:"Pouk\xe1zky"})}),(0,r.jsx)(E,{className:"mb-10"}),(0,r.jsx)(C,{activePoints:e.clubPoints?.activePoints||0,milestones:t.club.pointsToVoucherPrices}),(0,r.jsx)(D,{className:"my-5 lg:my-10"}),t.routes.userVouchers&&(0,r.jsx)("div",{className:"my-8",children:(0,r.jsx)(g.S,{as:d.A,className:"w-full lg:max-w-[18rem]",href:t.routes.userVouchers,"data-testid":u.Q.VouchersClubMyAccountVouchersClubLink,children:s("club-points__info__vouchers__button")})})]}),e.orders&&e.orders.length>0&&(0,r.jsxs)("section",{className:"my-10 lg:my-[5.625rem]","data-testid":u.Q.AccountMyOrdersSection,children:[(0,r.jsx)(c.h,{heading:2,className:"!mt-0 !mb-2.5",children:(0,r.jsx)(n.x6,{i18nKey:"account__my-account__last-orders"})}),(0,r.jsx)("div",{children:e.orders&&e.orders.slice(0,3).map((e,t)=>(0,r.jsx)(l.V,{order:e},`order-${t}`))}),t.routes.userOrders&&(0,r.jsx)("div",{className:"my-8",children:(0,r.jsx)(g.S,{as:d.A,className:"w-full lg:max-w-[18rem]",href:t.routes.userOrders,"data-testid":u.Q.AccountMyAccountOrdersLink,children:s("account__my-account__all-orders")})})]}),e.isLoadingOrders&&e.orders?.length<1&&(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)(h.a,{isActive:!0})})]})})},16074:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o,h:()=>c});var r,a=s(26514),l=s(75406),n=s(26843),i=s.n(n),o=((r={}).Alpha="alpha",r.Beta="beta",r.Gamma="gamma",r.None="none",r);let c=({heading:e=1,variant:t="alpha",weight:s,children:r,className:n,...o})=>{let c=e?`h${e}`:"div";return(0,a.jsx)(c,{className:(0,l.cn)({[i()[t]]:i()[t],[`!font-${s}`]:s,[`${n}`]:n}),...o,children:r})}},18420:(e,t,s)=>{"use strict";s.d(t,{G:()=>r,h:()=>a});let r=()=>{if("u"<typeof navigator)throw Error("This function must be called in a browser environment, use it inside a useEffect or other client-side only code.");return/iPhone/.test(navigator.userAgent)},a=()=>
1{if("u"<typeof navigator)throw Error("This function must be called in a browser environment, use it inside a useEffect or other client-side only code.");return navigator.userAgent.toLowerCase().includes("ipad")||navigator.userAgent.includes("Macintosh")&&"ontouchend"in document}},26843:e=>{e.exports={alpha:"Title_alpha__RS3in",beta:"Title_beta__DjMos",gamma:"Title_gamma__KEwR8"}},39285:(e,t,s)=>{"use strict";s.d(t,{H:()=>a});var r=s(81586);let a=({base:e="",celio:t,gap:s,geox:a,orsay:l,ua:n})=>{let{settings:i}=(0,r.Pj)(),o=e;return i.isCelio()&&"string"==typeof t&&(o=t),i.isGap()&&"string"==typeof s&&(o=s),i.isGeox()&&"string"==typeof a&&(o=a),i.isOrsay()&&"string"==typeof l&&(o=l),i.isUa()&&"string"==typeof n&&(o=n),{[o.trim()]:!!o.trim()}}},45640:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});let r=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,"\xa0")},51973:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var r=s(26514),a=s(81586),l=s(52661),n=s(96456),i=s.n(n),o=s(46225),c=s(75834),d=s(71557);let u="prefetched",m="timeout",h="clicked",g=(e,t)=>{switch(t.type){case u:return{...e,prefetched:t.value};case m:return{...e,timeout:t.value};case h:return{...e,clicked:t.value}}},p=({testId:e,href:t,type:s="customLink",children:n,className:p="",prefetch:_=!0,onMouseEnter:x,onClick:b,target:f="_self",shallow:v=!1,as:j,preventRouterNavigation:y=!1,scroll:w=!0,replace:N=!1,...k})=>{let{ui:A}=(0,a.Pj)(),P=(0,o.useRouter)(),[$,M]=(0,c.useReducer)(g,{prefetched:!1,timeout:null,clicked:!1});switch(s){case"customLink":return(0,r.jsx)("a",{"data-testid":e,onClick:e=>{if(!e.ctrlKey&&!e.metaKey&&(M({type:h,value:!0}),e.preventDefault(),b&&b instanceof Function&&b(e),!y)){if(N)return void P.replace(t,j,{shallow:v,scroll:w});P.push(t,j,{shallow:v,scroll:w})}},onMouseEnter:e=>{x&&x instanceof Function&&(0,l.h5)(()=>{A.isDesktop&&x(e)}),!_||$.prefetched||t.startsWith("http")||M({type:m,value:setTimeout(()=>{!$.clicked&&t&&P.prefetch(t),M({type:u,value:!0})},500)})},onMouseLeave:()=>{_&&$.timeout&&clearTimeout($.timeout)},href:(0,d.o)(t),className:p,target:f,...k,children:n});case"nextLink":return(0,r.jsx)(i(),{href:(0,d.o)(t),prefetch:_,target:f,className:p,scroll:w,replace:N,...k,children:n});case"nextLinkWithoutA":return(0,r.jsx)(i(),{href:(0,d.o)(t),prefetch:_,scroll:w,replace:N,...k,children:n});case"standardHtml":return(0,r.jsx)("a",{"data-testid":e,target:f,href:(0,d.o)(t),className:p,...k,onClick:b,children:n})}}},62537:(e,t,s)=>{"use strict";s.d(t,{C:()=>c});var r=s(26514),a=s(51973),l=s(86750),n=s(80254),i=s(75406),o=s(55047);let c=({badges:e,className:t})=>{let{t:s}=(0,o.Bd)("common");return(0,r.jsxs)("div",{className:(0,i.cn)({"flex lg:gap-2":!0,[`${t}`]:t}),"data-testid":n.Q.FooterAppStoresDiv,children:[e.androidBadgeImage&&(0,r.jsx)(a.A,{href:e.androidStoreUrl,type:"standardHtml",target:"_blank",className:"shrink-0",title:s("footer__app-stores__android"),"aria-label":s("footer__app-stores__android"),children:(0,r.jsx)(l.$,{src:e.androidBadgeImage?.path,width:135,height:40,className:"mr-2 lg:mr-0"})}),e.appleBadgeImage&&(0,r.jsx)(a.A,{href:e.appleStoreUrl,type:"standardHtml",target:"_blank",className:"shrink-0",title:s("footer__app-stores__apple"),"aria-label":s("footer__app-stores__apple"),children:(0,r.jsx)(l.$,{src:e.appleBadgeImage?.path,width:120,height:40})})]})}},67301:(e,t,s)=>{"use strict";s.d(t,{U:()=>l});var r=s(75834);let a=(e,t)=>{let[s,a]=(0,r.useState)(t),l=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{let t=e=>{a(e.matches)};return l.current=window.matchMedia(e),l.current.addEventListener("change",t),a(l.current.matches),()=>{l.current?.removeEventListener("change",t)}},[]),s},l=()=>{let e=a("(max-width: 600px)",!0);return{isMobile:e,isTablet:a("(max-width: 1023px)",!1),isDesktop:a("(min-width: 1024px)",!1)}}},73064:(e,t,s)=>{"use strict";s.d(t,{V:()=>g});var r=s(26514),a=s(55047),l=s(59429),n=s(621),i=s(14366),o=s(84775),c=s(51973),d=s(86750),u=s(81586),m=s(80254),h=s(75406);let g=(0,l.PA)(({order:e,className:t})=>{let{settings:s}=(0,u.Pj)(),{t:l}=(0,a.Bd)("common");return(0,r.jsx)("div",{className:(0,h.cn)({"border-t last:border-b border-gray-500":!0,[`${t}`]:t}),children:(0,r.jsx)(c.A,{href:e.url?e.url:"#","data-testid":m.Q.AccountOrderLink,className:"text-sm",title:`${l("order")} ${e.number}`,children:(0,r.jsxs)("article",{"aria-labelledby":`order-${e.id}`,className:"grid grid-rows-[1fr_1fr] gap-x-4 lg:gap-x-6 grid-cols-[6.75rem_1fr_2.5rem] py-5 transition-colors duration-300 hover:bg-gray-300 lg:grid-cols-[9.875rem_1fr_1fr_1fr_3rem]",children:[(0,r.jsx)("div",{className:"grid grid-cols-[3.25rem_3.25rem] lg:grid-cols-[4.688rem_4.688rem] row-span-2 gap-x-1 lg:gap-x-2","data-testid":m.Q.AccountOrderImgDiv,children:e.items&&e.items[0]&&(0,r.jsxs)(r.Fragment,{children:[e.items[0].media?.length>0?(0,r.jsx)(d.$,{width:s.productMediaSizes.myOrderList.width,height:s.productMediaSizes.myOrderList.height,src:e.items[0].media[0].path,alt:`${e.items[0].title} - ${String(1).padStart(3,"0")}`}):null,e.items[1]&&e.items[1].media?.length>0?(0,r.jsxs)("div",{className:"relative",style:{aspectRatio:`${s.productMediaSizes.myOrderList.width} / ${s.productMediaSizes.myOrderList.height}`},children:[(0,r.jsx)(d.$,{width:s.productMediaSizes.myOrderList.width,height:s.productMediaSizes.myOrderList.height,src:e.items[1].media[0].path,alt:`${e.items[1].title} - ${String(2).padStart(3,"0")}`}),e.items.length>2?(0,r.jsxs)("div",{className:"absolute inset-0 bg-black/40 text-white flex items-center justify-center text-base",children:["+",e.items.length-2]}):null]}):null]})}),(0,r.jsxs)("div",{className:"self-center flex flex-col lg:row-span-2","data-testid":m.Q.AccountOrderDe
1scriptionDiv,children:[(0,r.jsxs)("span",{id:`order-${e.id}`,children:[l("order")," ",e.number||"number not found"]}),(0,r.jsx)("span",{className:"hidden lg:inline text-gray-700",children:(0,n.Y)(e.createdAt,!1)})]}),(0,r.jsxs)("div",{className:"self-center hidden lg:inline lg:row-span-2","data-testid":m.Q.AccountOrderPlaceDiv,children:[(0,r.jsx)("span",{children:e.isEshop?l("place_eshop"):e.warehouse}),(0,r.jsx)(o.j,{value:e.prices.total,suffix:e.prices.currency,className:"font-semibold"})]}),(0,r.jsx)("div",{className:(0,h.cn)({"self-center col-start-2 row-start-2 lg:row-auto lg:col-start-4 lg:row-span-2 font-semibold":!0,"text-red-500":e.isCancelled}),"data-testid":m.Q.AccountOrderStatusDiv,children:e.status&&l(`order_status_${e.status}`)}),(0,r.jsx)("div",{className:"w-10 h-10 lg:w-12 lg:h-12 border border-gray-500 col-start-3 lg:col-start-5 row-span-2 self-center relative",children:(0,r.jsx)(i.I,{icon:"/images/icons/chevron-right.svg",className:"w-4 h-6 absolute left-[40%] top-[12px] lg:top-[35%]","data-testid":m.Q.AccountOrderIconDiv})})]})})})})},78471:(e,t,s)=>{"use strict";s.d(t,{k:()=>r});let r=(e,t)=>!!e&&""!==e&&e!==t},80766:(e,t,s)=>{"use strict";s.d(t,{Si:()=>h,cS:()=>p,m_:()=>m,wZ:()=>g});var r=s(26514),a=s(75834),l=s(75406),n=s(95945),i=s(88316),o=s(67301),c=s(55047);let d=(0,a.createContext)(void 0),u=()=>{let e=(0,a.useContext)(d);if(void 0===e)throw Error("useTooltip must be used within a Tooltip component");return e},m=({children:e,className:t,...s})=>{let[i,o]=(0,a.useState)(!1),c=(0,a.useRef)(`tooltip-${(0,n.u)(6)}`).current,u=(0,a.useRef)(null),m=(0,a.useCallback)(()=>{o(e=>!e)},[]),h=(0,a.useCallback)(()=>{o(!1)},[]);(0,a.useEffect)(()=>{let e=e=>{i&&u.current&&!u.current.contains(e.target)&&h()},t=e=>{i&&"Escape"===e.key&&h()};return document.addEventListener("mousedown",e),window.addEventListener("scroll",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("scroll",e),document.removeEventListener("keydown",t)}},[i,h]);let g=(0,a.useMemo)(()=>({isOpen:i,toggleTooltip:m,closeTooltip:h,tooltipId:c}),[i,m,h,c]);return(0,r.jsx)(d.Provider,{value:g,children:(0,r.jsx)("div",{ref:u,className:(0,l.cn)({"relative inline-flex":!0,[`${t}`]:t}),...s,children:e})})},h=({children:e,className:t,...s})=>{let{t:a}=(0,c.Bd)(),{toggleTooltip:n,tooltipId:i}=u();return(0,r.jsx)("button",{onClick:n,"aria-describedby":`${i}-panel`,className:(0,l.cn)({"w-full grid grid-flow-col gap-3 justify-center items-center bg-[--tooltip-button__background-color]":!0,[`${t}`]:t}),type:"button","aria-label":a("tooltip__toggle__aria-label"),...s,children:e})},g=({className:e,...t})=>{let{closeTooltip:s}=u(),{t:a}=(0,c.Bd)();return(0,r.jsx)(i.J,{onClick:s,className:(0,l.cn)({"!flex justify-self-end":!0,[`${e}`]:e}),type:"button","aria-label":a("tooltip__close__aria-label"),title:a("tooltip__close__aria-label"),...t,icon:"/images/icons/cross.svg",iconClassName:"w-4 h-4"})},p=({children:e,className:t,verticalGap:s=16,horizontalMargin:n=24,...i})=>{let{isOpen:c,tooltipId:d}=u(),m=(0,a.useRef)(null),[h,g]=(0,a.useState)({}),{isMobile:p}=(0,o.U)(),_=(0,a.useCallback)(()=>{if(!c||!m.current)return;let e=m.current,t=e.parentElement;if(!t)return;let r=t.getBoundingClientRect(),a=e.getBoundingClientRect(),l=window.innerWidth,i=window.innerHeight,o=r.left-a.left+r.width/2,d=r.left+r.width/2-a.width/2,u=r.bottom+s,h="bottom";u+a.height>i&&(u=r.top-a.height-s,h="top"),d+a.width>l&&(d=l-a.width-10),d<0&&(d=10),p&&(d=n),u+a.height>i&&(u=r.top-a.height-s),g({top:u,left:d,placement:h,arrowPosition:o})},[n,p,c,s]);return((0,a.useEffect)(()=>{let e=setTimeout(_,0);return()=>clearTimeout(e)},[c,_]),(0,a.useEffect)(()=>(_(),window.addEventListener("resize",_),window.addEventListener("scroll",_),()=>{window.removeEventListener("resize",_),window.removeEventListener("scroll",_)}),[c,_]),c)?(0,r.jsxs)("div",{ref:m,id:`${d}-panel`,role:"dialog","aria-modal":"true",style:{position:"fixed",top:`${h.top}px`,left:`${h.left}px`,width:`${p}`?`calc(100% - ${2*n}px)`:"100%"},className:(0,l.cn)({"z-50 bg-[--tooltip-panel__background-color] p-2":!0,"max-w-[--tooltip-panel__max-width]":!p,[`${t}`]:t}),...i,children:[(0,r.jsx)("div",{className:(0,l.cn)({"z-50 absolute bg-[--tooltip-panel__background-color] rotate-45 w-4 h-4 -translate-x-1/2":!0,"-top-2":"bottom"===h.placement,"-bottom-2":"bottom"!==h.placement}),style:{left:`${h.arrowPosition}px`}}),e]}):null}},84775:(e,t,s)=>{"use strict";s.d(t,{j:()=>c,s:()=>o});var r=s(26514),a=s(81586),l=s(73700),n=s(75406),i=s(75834);let o=(e="")=>e.replaceAll(" ","\xa0"),c=({testId:e,value:t,suffix:s,prefix:c,decimalScale:d,className:u,affix:m})=>{let{settings:h}=(0,a.Pj)(),g=(0,i.useMemo)(()=>!("string"==typeof c&&c.startsWith("-")),[c]);return(0,r.jsxs)("div",{className:(0,n.cn)({[`${u}`]:u,"whitespace-nowrap":!0}
1),children:[(0,r.jsx)(l.HG,{"data-testid":e,value:t,thousandSeparator:h.numberFormat?.thousandsSeparator?o(h.numberFormat?.thousandsSeparator):"\xa0",decimalSeparator:h.numberFormat?.decimalSeparator?o(h.numberFormat?.decimalSeparator):",",decimalScale:null==d?h.numberFormat?.decimals:d,prefix:c,suffix:s?` ${s}`:` ${h.defaultCurrency}`,fixedDecimalScale:!0,displayType:"text",allowNegative:g}),m]})}},86750:(e,t,s)=>{"use strict";s.d(t,{$:()=>o,C:()=>d});var r=s(26514),a=s(58245),l=s.n(a),n=s(41179),i=s(81586);let o=({alt:e,aspectRatio:t=null,className:s,height:a,placeholder:i,sizes:o,src:d,unoptimized:u,width:m,onClick:h,style:g,priority:p,..._})=>{let x=c(o);return(null===t&&m&&a&&(t=m/a),d)?(0,r.jsx)("div",{className:"c-media max-w-full",onClick:h,children:(0,r.jsx)(l(),{loader:({src:e,width:s,quality:r})=>(0,n.T)({src:e,width:s,quality:r,height:t?Math.round(s/t):0}),sizes:x,width:m,height:a,src:d,placeholder:i,className:s,unoptimized:u,style:g,priority:p,alt:e||"",..._})}):(0,r.jsx)("div",{className:"c-media max-w-full",children:(0,r.jsx)("div",{className:s,style:{aspectRatio:t||void 0,...g}})})},c=e=>{let{screens:t}=(0,i.Pj)();if(!e)return;if(e.custom)return e.custom;let s="";return Object.entries(t).forEach(t=>{let[r,a]=t;e[r]&&(s+=`(max-width: ${a}) ${e[r]},`)}),e.default&&(s+=`${e.default}`),s||void 0},d=({src:e,autoPlay:t=!0,width:s,controls:a=!1,ref:l,...i})=>e?(0,r.jsx)("video",{ref:l,preload:"metadata",autoPlay:t,loop:!0,muted:!0,controls:a,playsInline:!0,width:s,...i,children:(0,r.jsx)("source",{src:(0,n.f)(e),type:"video/mp4"})},e):null},95945:(e,t,s)=>{"use strict";s.d(t,{u:()=>r});let r=(e=10)=>{let t="";for(;t.length<e;)t+=Math.random().toString(36).substring(2);return t.slice(0,e)}}}]);
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.