1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6442],{51677:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>$,default:()=>W});var s=r(10833),l=r(1946),n=r.n(l),c=r(63403),a=r(62544),i=r(97413),o=r(76577),d=r(44296),u=r(57939),p=r(78713),m=r(10940);function x(e){let{pageName:t,message:r,children:l}=e,{t:n}=(0,s.useTranslation)(),{signIn:c}=(0,p.A)(),{user:a}=(0,d.J)();return a?(0,m.jsx)(m.Fragment,{children:l}):(0,m.jsxs)("div",{className:"w-full h-full flex flex-col flex-grow items-center justify-center",children:[(0,m.jsx)("p",{className:"mt-8 type-headline-l text-center",children:r||(0,m.jsx)(s.Trans,{i18nKey:"user-login-prompt",values:{pageName:t}})}),(0,m.jsx)("button",{type:"button",className:"btn bg-primary text-button-text text-button-m my-8",onClick:()=>c(),"data-testid":u.KxK,children:n("Sign In")})]})}var h=r(20370),j=r(80266),f=r(3638);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let g=e=>(0,m.jsx)("svg",y(y({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,m.jsx)("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1Zm1-8h-2V7h2v2Z"})}));var v=r(41242),w=r(52738),O=r(84382),N=r(88203),P=r(68331),k=r(82188),S=r(90865),D=r(16907),E=r(97210),T=r(60269),_=r(35265),A=r(70769),C=r(87562),Z=r(67172);function I(e){let{children:t,warning:r}=e;return(0,m.jsxs)("div",{className:(0,f.A)("rounded flex items-center py-2.5 pl-2.5 pr-4 type-body-s gap-x-2.5 justify-start",r?"bg-warning":"bg-error"),"data-testid":u.ITI,children:[(0,m.jsx)("span",{children:r?(0,m.jsx)(C.A,{className:"text-2xl"}):(0,m.jsx)(Z.A,{className:"text-2xl"})}),t]})}function F(e){var t,r,l;let{skuId:n,slug:c,quantity:d,contentType:p,isPreorder:x,isOutOfStock:h,isLowStock:j,isInsufficient:f}=e,b=(0,o._)(),{t:y}=(0,s.useTranslation)(),C=(0,S.Y)(),Z=null==b||null==(t=b.cartState)?void 0:t.skus[n],{discountPercentage:F,isPromoActive:M,formatPrice:G}=(0,k.eY)(Z),K=(0,a.useMemo)(()=>M&&F,[F,M]);if(!Z)return null;let{salePrice:z,originalPrice:J,drm:V,thumbnail:H,itemTitle:L,itemTitleLocalized:q,maxQuantity:B,merchandiseAttributes:R,releaseDate:X=0}=Z,Y=[];for(let e=0;e<(B||4);e+=1){let t=e+1;Y.push({key:"".concat(t),label:y("quantity-number",{number:t}),value:t})}let Q=R&&Object.keys(R).map(e=>y(null==R?void 0:R[e])).join(", ")||"",U=G((null!=z?z:0)*d),$=G(null!=z?z:0),W=G((null!=J?J:0)*d),ee=p===i.C1.Merch&&V===v.kU.NotApplicable?_.z:A.S,{month:et,day:er,year:es}=(0,T.ew)(X,C),el=(0,E.Kl)(V);return(0,m.jsx)("section",{className:"flex justify-between py-4","data-testid":"".concat(u.MJK,"-").concat(n),children:(0,m.jsxs)("div",{className:"flex flex-grow",children:[(0,m.jsx)(ee,{slug:c,className:"self-start",children:(0,m.jsxs)("div",{className:"relative",children:[(0,m.jsx)(w.V,{className:"[&>img]:w-40 [&>img]:h-auto [&>img]:mx-auto [&>img]:block [&>img]:object-contain [&>img]:rounded xxs:[&>img]:min-w-[8rem] xs:[&>img]:min-w-[10rem]",src:H,alt:null!=L?L:""}),K&&(0,m.jsx)(O.n,{className:"[--color-success:var(--color-secondary)] absolute left-4 bottom-4 max-w-[6rem] xs:max-w-[8rem]",style:{color:"white"},children:F}),(null==b||null==(r=b.asyncState)?void 0:r.fetching)&&(null==b||null==(l=b.asyncState)?void 0:l.skuId)===n&&(0,m.jsx)("div",{className:"absolute inset-0 bg-black-60 flex items-center justify-center",children:(0,m.jsx)(N.k,{size:40})})]})}),(0,m.jsxs)("div",{className:"px-4 flex flex-col justify-between items-start flex-grow",children:[(0,m.jsxs)("div",{className:"type-headline-l w-full",children:[(0,m.jsxs)("div",{className:"flex flex-col sm:flex-row",children:[(0,m.jsxs)("section",{children:[(0,m.jsx)(ee,{slug:c,className:"type-headline-l hover:type-link-hover",children:q}),Q&&(0,m.jsx)("div",{className:"type-body-s capitalize pt-2",children:Q}),el&&(0,m.jsx)("div",{className:"type-body-s capitalize pt-2",children:y(el)})]}),(0,m.jsxs)("section",{className:"flex flex-col items-start sm:items-end py-2 sm:py-0 sm:ms-auto",children:[(0,m.jsx)("span",{className:"type-headline-m sm:type-headline-l whitespace-nowrap",children:U}),K&&(0,m.jsx)("span",{className:"line-through type-body-s text-[inherit] opacity-[0.6]",children:W}),d>1&&(0,m.jsx)("span",{className:"type-body-s whitespace-nowrap opacity-[0.6]",children:y("each-price",{eachprice:$})})]})]}),(0,m.jsxs)("div",{className:"flex items-center flex-wrap",children:[(0,m.jsx)(P.ms,{className:"me-2.5 py-2",disabled:h,items:Y,onItemSelected:e=>{d!==e.value&&(null==b||b.updateItemQuantity(n,e.value))},selectedItem:{key:"".concat(d),label:y("quantity-number",{number:d}),value:d},"data-testid":u.CF3}),(h||j||f)&&(0,m.jsxs)(I,{warning:j,children:[h&&y("out-of-stock"),f&&y("stock-unavailable"),!f&&j&&y("low-stock")]})]}),x&&(0,m.jsxs)("div",{className:"rounded flex items-center py-2.5 pl-4 sm:pl-1 pr-4 type-body-m bg-info w-fit",children:[(0,m.jsx)(g,{className:"text-text-primary hidden sm:block me-1 text-2xl"}),y("preorder-game-charge-info",{month:et,day:er,year:es})]})]}),(0,m.jsx)("button",{className:"text-left pt-2 bg-opacity-0 underline mt-auto",type:"button",onClick:()=>{null==b||b.deleteItem(n),(0,D.oC)(D.MJ.Remove,D.ev.RemoveFromCart,Z)},"data-testid":u.$QO,children:y("cart-remove")})]})]})})}let M=["sku"];function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}let K="border-b border-neutral-999-20";function z(){var e,t,r;let l=(0,o._)(),{t:n}=(0,s.useTranslation)();return(0,m.jsxs)("section",{children:[(0,m.jsx)("h3",{className:(0,f.A)("hidden lg:block type-headline-xl pb-4",K),children:n("my-cart")}),null!=l&&null!=(e=l.cartState)&&e.items&&(null==l||null==(t=l.cartState)?void 0:t.items.length)>0?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("ul",{"data-testid":u.VgJ,children:null==l||null==(r=l.cartState)?void 0:r.items.map(e=>{let{sku:t}=e,r=(0,j.A)(e,M);return(0,m.jsx)("li",{className:K,children:(0,m.jsx)(F,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?G(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({skuId:t},r),t)},t)})}),(0,m.jsxs)("div",{className:"flex pt-4 justify-end items-center gap-x-1","data-testid":u.lDp,children:[(0,m.jsx)("span",{className:"type-body-l text-text-primary-80",children:n("cart-subtotal")}),(0,m.jsxs)("span",{className:"type-body-m me-1",children:["(",n("cartItems",{count:l.itemCount}),"):"]}),(0,m.jsx)("span",{className:"type-body-m-bold text-text-primary-80",children:"0"===l.subTotalPrice?"0.00":l.subTotalPrice})]})]}):(0,m.jsx)("p",{className:"mt-4 type-body-m-bold",children:n("cart-empty")})]})}function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let H=e=>(0,m.jsx)("svg",V(V({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,m.jsx)("path",{fill:"currentColor",d:"M19.5 8H17V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2 0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h1c.55 0 1-.45 1-1v-3.33c0-.43-.14-.85-.4-1.2L20.3 8.4c-.19-.25-.49-.4-.8-.4ZM6 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm13.5-8.5 1.96 2.5H17V9.5h2.5ZM18 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Z"})}));var L=r(31249),q=r(60279),B=r(74847),R=r.n(B);let X="border-b border-neutral-999-20";function Y(){var e,t;let{t:r}=(0,s.useTranslation)(),l=(0,o._)(),{user:n}=(0,d.J)(),c=(0,S.Y)(),a=null==l||null==(e=l.cartState)||null==(e=e.skus[null==l||null==(t=l.cartState)||null==(t=t.items)||null==(t=t[0])?void 0:t.sku])?void 0:e.currency,{summary:i,validation:p,items:x}=(null==l?void 0:l.cartState)||{},h=(0,q.a)(c,a||(null==i?void 0:i.currency)),j=h((null==i?void 0:i.itemsTotal)||0),b=h((null==i?void 0:i.discount)||0),y=h((null==i?void 0:i.coupon)||0),g=h((null==i?void 0:i.amountToGetFreeShipping)||0),v=!!(null!=p&&p.preorderExceededLimit||null!=p&&p.insufficientStock||null!=p&&p.outOfStock||x&&x.length<1);return i?(0,m.jsxs)("div",{className:(0,f.$)(R().cartSummary,"bg-neutral-100-70 p-8 min-w-[21rem] flex flex-col gap-y-3"),"data-testid":u.GZG,children:[(0,m.jsx)("h3",{className:(0,f.A)("type-headline-l text-text-primary-80",X,"pb-4"),children:r("cart-ordersummary")}),(0,m.jsxs)("div",{className:(0,f.A)("type-body-m",X,"pb-3"),children:[(0,m.jsxs)("div",{className:"flex justify-between","data-testid":u.A7X,children:[(0,m.jsx)("span",{className:"leading-none",children:r("cart-items-total")}),(0,m.jsx)("span",{className:"leading-none",children:"0"===j?"0.00":j})]}),i.discount>0&&(0,m.jsxs)("div",{className:"flex justify-between","data-testid":u.rHz,children:[(0,m.jsx)("span",{children:r("cart-discount")}),(0,m.jsx)("span",{children:"0"===b?"0.00":"-".concat(b)})]}),i.couponId&&(0,m.jsxs)("div",{className:"flex justify-between","data-testid":u.aoU,children:[(0,m.jsx)("span",{children:r("cart-coupon")}),(0,m.jsx)("span",{children:"0"===y?"0.00":"-".concat(y)})]})]}),(0,m.jsxs)("div",{"data-testid":u.lDp,className:(0,f.A)("w-full flex justify-between items-center type-body-m",X,"pb-4 pt-1"),children:[(0,m.jsxs)("span",{children:[(0,m.jsx)("span",{className:"[font-weight:bold] text-text-primary",children:r("cart-subtotal")})," ",(0,m.jsxs)("span",{className:"whitespace-nowrap me-1",children:["(",r("cartItems",{count:null==l?void 0:l.itemCount}),")"]})]}),(0,m.jsx)("span",{className:"[font-weight:bold] text-text-primary",children:(null==l?void 0:l.subTotalPrice)==="0"?"0.00":null==l?void 0:l.subTotalPrice})]}),i.freeShipping?(0,m.jsxs)("span",{className:"flex items-center my-4 gap-x-4 justify-start",children:[(0,m.jsx)("span",{children:(0,m.jsx)(H,{className:"text-2xl"})}),(0,m.jsx)("div",{children:r("qualified-for-free-shipping")})]}):null,i.amountToGetFreeShipping&&i.amountToGetFreeShipping>0?(0,m.jsxs)("span",{className:"flex items-center gap-x-4 mt-1 mb-6 justify-start",children:[(0,m.jsx)("span",{children:(0,m.jsx)(H,{className:"text-2xl"})}),(0,m.jsx)("span",{children:x&&x.length>0?(0,m.jsxs)(s.Trans,{i18nKey:"amount-to-free-shipping",values:{amount:g},children:["Add ",(0,m.jsx)("span",{children:"amount"})," to this order to qualify for FREE standard shipping."]}):(0,m.jsxs)(s.Trans,{i18nKey:"threshold-free-shipping",values:{amount:g},children:["Get FREE shipping with orders over ",(0,m.jsx)("span",{children:"amount"})]})})]}):null,(null==p?void 0:p.preorderExceededLimit)&&(0,m.jsx)(I,{children:r("preorder-limit-reached-detail")}),(null==p?void 0:p.insufficientStock)&&(0,m.jsx)(I,{children:r("stock-unavailable-detail")}),(null==p?void 0:p.outOfStock)&&(0,m.jsx)(I,{children:r("out-of-stock-detail")}),(0,m.jsx)("button",{type:"button",className:"btn bg-primary text-button-text w-fit text-button-m",id:L.K4,onClick:()=>{l&&l.doCheckout(null==n?void 0:n.email)},disabled:v,children:r("cart-proceedtocheckout")}),(0,m.jsx)("section",{className:"type-body-s-60",children:r("cart-xsolla-msg")})]}):null}function Q(e){let{children:t}=e,{t:r}=(0,s.useTranslation)();return i.GT?(0,m.jsx)(m.Fragment,{children:t}):(0,m.jsx)(x,{message:r("user-login-cart"),pageName:r("my-cart"),children:t})}function U(){let{user:e}=(0,d.J)(),{t}=(0,s.useTranslation)(),r=(0,o._)();return(0,a.useEffect)(()=>{e&&r&&r.getCart()},[]),(0,m.jsx)(Q,{children:(0,m.jsx)("div",{className:"layout mx-auto max-w-layout",children:(0,m.jsxs)("section",{className:"layout-content py-16 flex flex-col flex-grow lg:flex-row",children:[(0,m.jsx)(c.H,{className:"type-headline-xl pb-4 order-1 lg:hidden border-0 border-b border-neutral-999-20",children:t("my-cart")}),(0,m.jsx)("div",{className:"order-3 lg:order-2 w-full mt-4 lg:w-8/12 lg:mt-0",children:(0,m.jsx)(z,{})}),(0,m.jsx)("div",{className:"order-2 lg:order-3 w-full lg:w-4/12 lg:ml-16 mt-4 lg:mt-0",children:(0,m.jsx)(Y,{})})]})})})}var $=!0;function W(){let{t:e}=(0,s.useTranslation)();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(n(),{children:(0,m.jsx)("title",{children:e("my-cart")})}),(0,m.jsx)(U,{})]})}},66198:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/cart",function(){return r(51677)}])},67172:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(20370),l=r(10940);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?n(Object(r),!0).forEach(function(t){(0,s.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let a=e=>(0,l.jsx)("svg",c(c({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,l.jsx)("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1Zm1 4h-2v-2h2v2Z"})}))},74847:e=>{e.exports={cartSummary:"cart_cartSummary__NftzG"}},87562:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(20370),l=r(10940);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){(0,s.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let a=e=>(0,l.jsx)("svg",c(c({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,l.jsx)("path",{fill:"currentColor",d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3ZM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1Zm1 4h-2v-2h2v2Z"})}))}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=66198)),_N_E=e.O()}]); 2//# sourceMappingURL=cart-38230059ce71ed92.js.map
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.