PageSourceSearch

https://www.monsterlegendsgame.com/_next/static/chunks/2544.396c4455984c9f31.js

js monsterlegendsgame.com collected 2026-10-02 15:46:47 UTC 211,631 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2544],{7413:e=>{e.exports={content:"DailyStreakClaimSuccessModal_content__07hnt",stack:"DailyStreakClaimSuccessModal_stack__6XltI",dsClaimContentIn:"DailyStreakClaimSuccessModal_dsClaimContentIn__maFfH",dsClaimContentOut:"DailyStreakClaimSuccessModal_dsClaimContentOut__TJ82v",title:"DailyStreakClaimSuccessModal_title__cP3UZ",body:"DailyStreakClaimSuccessModal_body__Be4hu",rewardStage:"DailyStreakClaimSuccessModal_rewardStage__aitrA",rays:"DailyStreakClaimSuccessModal_rays____GT8",rewardImage:"DailyStreakClaimSuccessModal_rewardImage__d_o_u",quantityBadge:"DailyStreakClaimSuccessModal_quantityBadge__22dcI",quantityMultiplier:"DailyStreakClaimSuccessModal_quantityMultiplier__42pJB"}},20771:e=>{e.exports={content:"DailyStreakUpsellModal_content__vhZNC"}},42120:e=>{e.exports={price:"TilePrice_price__JXtSm",strikethrough:"TilePrice_strikethrough__dY0hM"}},45308:e=>{e.exports={stageShadow:"AllInOneBundleV3_stageShadow__j0azk",stage:"AllInOneBundleV3_stage__XmDw9",carouselInset:"AllInOneBundleV3_carouselInset__elryV",bundleButton:"AllInOneBundleV3_bundleButton__DYBAC",bundleButtonPrice:"AllInOneBundleV3_bundleButtonPrice__hgYkN",bundleBadge:"AllInOneBundleV3_bundleBadge__bAYaA"}},50165:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var n=t(49717),s=t(30469);function i(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function r(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?i(Object(t),!0).forEach(function(l){(0,n.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}let a=e=>(0,s.jsx)("svg",r(r({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,s.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 2ZM9.29 16.29 5.7 12.7a.996.996 0 1 1 1.41-1.41L10 14.17l6.88-6.88a.996.996 0 1 1 1.41 1.41l-7.59 7.59a.996.996 0 0 1-1.41 0Z"})}))},51244:e=>{e.exports={main:"upsell_main__DGi3S",button:"upsell_button__7bxAo",title:"upsell_title__ERiwQ",description:"upsell_description__idely",divider:"upsell_divider__PsLO8",copy:"upsell_copy__nX7Y9"}},62544:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TileUpsellRenderer:()=>s0});var n,s,i,r,a,o=t(13217),d=t(64422),u=t(8505),c=t(45747),m=t(92744),x=t(30469);let p=(0,o.createContext)(void 0);function f(e){let{children:l,layouts:t,banners:n}=e,{0:s}=(0,o.useState)(t||[]),{0:i}=(0,o.useState)(n||[]),r=(0,o.useMemo)(()=>({layoutItems:s,bannerItems:i}),[s,i]);return(0,x.jsx)(p.Provider,{value:r,children:l})}var v=t(28138),h=t(63480),j=t(19572),g=t(26937),y=t(61145),b=t(96302),w=t(97762),N=t(71933),k=t(36544);let C=((n={}).dailyStreak="daily-streak",n.progressivePack="progressive-pack",n.groupSaleMin="group-sale-min",n.groupSaleStock="group-sale-stock",n.allInOneBundle="all-in-one-bundle",n.endless="endless",n.progressiveBundle="progressive-bundle",n),A=((s={}).OneTime="One-Time",s.Daily="Daily",s.Weekly="Weekly",s.FreeItem="Free Item",s.Discount="Discount",s.HideCountdown="Hide-Countdown",s.PaidMedia="Paid-Media",s.CustomResetCadence="Custom Reset Cadence",s.KeepState="Keep-State",s.HideCooldown="Hide-Cooldown",s),O=((i={})[i.purchasable=1]="purchasable",i[i.owned=2]="owned",i[i.unavailable=3]="unavailable",i[i.hidden=4]="hidden",i[i.unclaimable=5]="unclaimable",i);var _=t(50110),I=t(24964),S=t(68817),P=t(83509),T=t(47355),D=t(1541);let G=(0,o.createContext)(null);function B(e){let{children:l,onPurchaseStart:t}=e;return(0,x.jsx)(G.Provider,{value:null!=t?t:null,children:l})}var M=t(99677);let E=(0,o.createContext)([]);var V=t(70638),U=t(54938),L=t(24646);let R=e=>"StorePage"===e&&"/"||"NewsArticle"===e&&"/news/"||"";function F(e,l){var t,n;let s=(0,o.useContext)(E).find(t=>{var n;return"post-purchase"===t.showModal&&((null==(n=t.itemsCollection)?void 0:n.items)||[]).find(t=>{var n,s,i;return!!t&&"Item"===t.__typename&&(null==(n=t.sys)?void 0:n.id)&&((null==(s=t.sys)?void 0:s.id)===e||(null==(i=t.product)?void 0:i.externalId)===l)})}),i=null==s?void 0:s.removeBackToStoreButton,r=null!=(t=null==s||null==(n=s.buttonsCollection)?void 0:n.items)?t:[],a=[],d="/",u=+!i;for(let e of r){let l=null==e?void 0:e.targetReference;switch(null==l?void 0:l.__typename){case"ExternalLink":a.push({buttonType:l.__typename,openInNewTab:!!l.openInNewTab,route:(null==l?void 0:l.url)||"/",buttonText:(null==e?void 0:e.text)||""}),0===u&&(d=l.url||"/"),u+=1;break;case"StorePage":case"NewsArticle":a.push({buttonType:l.__typename,route:"".concat(R(l.__typename)).concat(l.slug),buttonText:(null==e?void 0:e.text)||""}),0===u&&(d="".concat(R(l.__typename)).concat(l.slug)),u+=1}}return{additionalButtonsObj:a,removeBackToStoreButton:i,newRouteOnClose:d}}var z=t(69175),Y=t(11354);function J(){let e=(0,g.useRouter)();return(0,o.useCallback)(l=>{let t=()=>e.asPath.includes("#")&&l?(e.reload(),Promise.resolve(!0)):e.replace(e.asPath,void 0,{scroll:!1});return document.hidden?new Promise(e=>{let l=()=>{document.removeEventListener("visibilitychange",l);let n=t();!document.hidden&&n&&n.then(e)};document.addEventListener("visibilitychange",l)}):t()},[e])}var q=t(95348),Z=t(30561);function H(){let e=(0,Z.z)(),l=(0,q.h)(),t=(0,M.YY)(),n=(0,M.S3)(),s=(0,o.useMemo)(()=>{var e;return n&&null!=(e=Object.values(t||{}).flat().find(e=>(null==e?void 0:e.skuId)===n))?e:null},[t,n]),i=(0,o.useMemo)(()=>e.find(e=>e.drm===l),[e,l]);return s||i}var Q=t(49717);function W(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function $(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};
1l%2?W(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}var K=t(24995);class X extends Error{constructor(e){super("".concat(e.status,": ").concat(e.statusText," - ").concat(e.url)),this.statusCode=e.status}}var ee=t(80736),el=t(24814),et=t(68602);let en=(0,el.f)()?et.env.CONTENTFUL_SPACE_ID:ee.s;function es(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function ei(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?es(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):es(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}let er=((r={}).Redeemed="redeemed",r.Eligible="eligible",r.Invalid="invalid",r.Failed="failed",r.Succeeded="succeeded",r),ea=(e,l,t,n)=>{let s,i,r=ei(ei({"cf-ipcountry":"US","cloudfront-viewer-country":"US"},(s={"x-game-platform":ee.nh,["x-".concat(ee.nh,"-env")]:ee.jE||""},e&&(s["x-".concat(ee.nh,"-access-token")]=e),ee.IU&&(s["x-".concat(ee.nh,"-game-id")]=ee.IU),s)),(i={"Content-Type":"application/json"},en&&(i["X-Contentful-Space"]=en),i));return n&&(r["x-voucher-code"]=n),fetch("".concat(ee.XF,"/offer/redeem/userid/").concat(l,"/sku/").concat(t),{headers:r,method:"POST"})};var eo=t(21480);function ed(e,l){try{!(0,el.f)()&&window.Helpshift&&window.Helpshift("setCustomIssueFields",{mds_error_type:{type:"mds_error_type",value:l?"".concat(e," - ").concat(l):e}})}catch(e){}}function eu(e){let l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n="/";try{n=new URL(e,"https://store.local").pathname}catch(l){n=e.split(/[?#]/)[0]||"/"}let s=((l=n.replace(/\/+/g,"/")).startsWith("/")&&(l=l.slice(1)),l.endsWith("/")&&(l=l.slice(0,-1)),l),[i,...r]=s.split("/");return i&&t.includes(i)?r.join("/"):s}var ec=t(78675),em=t(9354),ex=t(31283),ep=t(58739),ef=t.n(ep),ev=t(72429);function eh(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function ej(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?eh(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eh(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}let eg=e=>(0,x.jsx)("svg",ej(ej({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 46 46"},e),{},{children:(0,x.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.26667,d:"M30.2223 30.2223C30.2223 30.2223 27.3889 26.4445 22.6667 26.4445C17.9445 26.4445 15.1112 30.2223 15.1112 30.2223M28.3334 17.0001H28.3523M17.0001 17.0001H17.0189M41.5556 22.6667C41.5556 33.0988 33.0988 41.5556 22.6667 41.5556C12.2347 41.5556 3.77783 33.0988 3.77783 22.6667C3.77783 12.2347 12.2347 3.77783 22.6667 3.77783C33.0988 3.77783 41.5556 12.2347 41.5556 22.6667ZM29.2778 17.0001C29.2778 17.5217 28.855 17.9445 28.3334 17.9445C27.8118 17.9445 27.3889 17.5217 27.3889 17.0001C27.3889 16.4785 27.8118 16.0556 28.3334 16.0556C28.855 16.0556 29.2778 16.4785 29.2778 17.0001ZM17.9445 17.0001C17.9445 17.5217 17.5217 17.9445 17.0001 17.9445C16.4785 17.9445 16.0556 17.5217 16.0556 17.0001C16.0556 16.4785 16.4785 16.0556 17.0001 16.0556C17.5217 16.0556 17.9445 16.4785 17.9445 17.0001Z"})}));var ey=t(82581),eb=t(77656),ew=t(85693),eN=t.n(ew),ek=t(76015),eC=t.n(ek),eA=t(91374),eO=t.n(eA);function e_(e){let{open:l,isRetrying:t=!1,paletteId:n,onClose:s,onRetry:i}=e,{t:r}=(0,j.Bd)(),a=r("daily-streak-claim-error-title"),o=r("daily-streak-claim-error-body"),u=r("daily-streak-claim-error-retry");return(0,x.jsx)(eb.lG,{open:l,overlayClassName:"bg-black-90",onOpenChange:e=>{e||s()},children:(0,x.jsxs)(eb.Cf,{a11yTitle:a,hideClose:!0,"data-theme":n||"none",fullscreen:!0,className:(0,d.A)("bg-transparent p-0 text-white",eO().content),children:[(0,x.jsx)("button",{type:"button","aria-label":r("Close"),onClick:s,className:(0,d.A)("absolute right-4 top-4 z-20 flex h-9 w-9 items-center justify-center","rtl:left-4 rtl:right-auto","border-0 bg-transparent p-0 outline-none transition-transform active:scale-95","focus-visible:outline focus-visible:outline-2 focus-visible:outline-current focus-visible:outline-offset-2",eO().closeButton),children:(0,x.jsx)(ev.A,{className:"h-5 w-5"})}),(0,x.jsx)("div",{className:"flex min-h-full w-full flex-col items-center justify-center px-6 text-center",children:(0,x.jsxs)("div",{className:"flex flex-col items-center",children:[(0,x.jsx)(eg,{"aria-hidden":!0,
1className:(0,d.A)("size-12 opacity-90",eO().icon)}),(0,x.jsx)("h2",{className:(0,d.A)("m-0 mt-5 text-[32px] not-italic normal-case leading-none tracking-normal antialiased",eO().title),children:a}),(0,x.jsx)("p",{className:(0,d.A)("mt-4 w-full max-w-sm whitespace-pre-line text-center text-lg font-normal uppercase leading-snug tracking-normal",eO().body),children:o}),(0,x.jsx)("button",{type:"button","aria-label":u,disabled:t,onClick:i,className:(0,d.A)(eC().button,eN().claimButton,"btn mt-24 flex w-full max-w-52 min-h-0 min-w-0 items-center justify-center font-bold uppercase leading-6","focus-visible:outline focus-visible:outline-2 focus-visible:outline-current focus-visible:outline-offset-2",eO().retryButton),children:t?(0,x.jsx)(ey.A,{className:"h-5 w-5 animate-spin"}):u})]})})]})})}var eI=t(71826);t(52754);var eS=t(16077);t(97618),t(7413),t(36138),t(98295),t(82150),t(20771);let eP=(0,o.createContext)(null),eT={openClaimOverlay:()=>void 0,closeClaimOverlay:()=>void 0,captureStreakPaletteId:()=>void 0,claimPaletteId:null};function eD(){var e;return null!=(e=(0,o.useContext)(eP))?e:eT}var eG=t(28972),eB=t(77888);let eM="160px";function eE(e,l){var t;return(null==l||null==(t=l.staticDetailItem)||null==(t=t.art)?void 0:t.url)||(0,eG.VG)(null==e?void 0:e.square)||(0,eG.VG)(null==e?void 0:e.boxart)||""}let eV=(0,o.createContext)(null);var eU=t(30376);let eL=(0,o.createContext)(()=>Promise.resolve(void 0));function eR(e){var l,t,n,s,i,r,a;let o=null!=(l=null==(t=e.inGroup)?void 0:t.groupSkusCount)?l:0,d=null!=(n=null==(s=e.inGroup)?void 0:s.groupUsedCount)?n:0;return(null==(i=e.inGroup)?void 0:i.groupType)===C.dailyStreak&&(null==(r=e.inGroup)?void 0:r.orderInGroup)===o-2&&(d===o-1||d===o-2&&(null==(a=e.inGroup)?void 0:a.state)===O.purchasable)}let eF=(0,o.createContext)({tiles:[],staticStreak:!1});var ez=t(53755),eY=t(2033),eJ=t(70981),eq=t.n(eJ),eZ=t(55071),eH=t(59491),eQ=t(75584);function eW(e){var l,t,n,s;let{item:i,imageStyle:r,testId:a,onClick:o}=e,{trackAnalyticsData:u}=(0,_.s)(),c=i.url,m=i.analyticsData,p=i.openInNewTab?"_blank":void 0;return(0,x.jsx)("li",{children:(0,x.jsx)("a",{className:(0,d.A)(c?"cursor-pointer":"cursor-default"),href:c||void 0,target:p,rel:"noopener noreferrer","data-testid":"".concat(a||"","-").concat(null==(t=i.sys)?void 0:t.id),onClick:()=>{o&&o(),u({metadata:m})},children:(0,x.jsx)(eQ.s,{document:null==i||null==(n=i.label)?void 0:n.json,links:null==i||null==(s=i.label)?void 0:s.links,renderNode:{[eH.BLOCKS.PARAGRAPH]:(e,l)=>(0,x.jsx)("p",{children:l}),[eH.BLOCKS.EMBEDDED_ASSET]:e=>{var l,t,n;let s=(null==(l=i.label)||null==(l=l.links)||null==(l=l.assets)?void 0:l.block)&&(null==(t=i.label)||null==(t=t.links)||null==(t=t.assets)||null==(t=t.block)?void 0:t.find(l=>{var t,n;return(null==l||null==(t=l.sys)?void 0:t.id)===(null==e||null==(n=e.data)||null==(n=n.target)||null==(n=n.sys)?void 0:n.id)}));if(s){let{url:e,title:l}=s;return(0,x.jsx)(eS._,{className:r,src:null!=e?e:"",alt:null!=l?l:""},"link-group-img-".concat(null==(n=i.sys)?void 0:n.id))}}}})})},"".concat(null==(l=i.sys)?void 0:l.id))}var e$=t(51244),eK=t.n(e$),eX=((a=eX||{}).cta_button="cta_button",a.close="close",a.image_link_click="image_link_click",a);function e0(e){var l;let{items:t,mobileDetailItems:n,productTrackingCode:s,paletteId:i}=e,r=null==(l=t.find(e=>(null==e?void 0:e.__typename)==="Button"))||null==(l=l.sys)?void 0:l.id,{trackAnalyticsData:a}=(0,_.s)(),{zTrackInitialized:u}=(0,K.J)(),{0:c,1:m}=(0,o.useState)(!1);(0,o.useEffect)(()=>{u&&ex.CC&&ex.CC.count(ex.zh.claim_modal,{counter:ex.uU.zyngaStore,phylum:"streak",class:null!=s?s:"",genus:"view"})},[s,u]);let p=(0,o.useCallback)((e,l,t)=>{if(l&&a({metadata:l}),ex.CC){let l=e.toString();e===eX.cta_button&&(l=t===r?"cta_primary":"cta_secondary"),ex.CC.count(ex.zh.claim_modal,{counter:ex.uU.zyngaStore,phylum:"streak",class:null!=s?s:"",genus:l})}},[r,s,a]),f=(0,o.useCallback)(()=>p(eX.image_link_click),[p]),v=(0,o.useCallback)((e,l)=>()=>p(e,l),[p]);return(0,x.jsxs)("div",{"data-theme":i||"none",className:"flex flex-col gap-y-4 overflow-y-auto w-full mx-auto [&>a]:-mt-2",children:[c&&(0,x.jsx)("div",{className:"bg-[rgb(0_0_0_/_.3)] w-full h-full fixed inset-0 flex items-center justify-center z-dialog",children:(0,x.jsx)(I.k,{})}),null==t?void 0:t.map(e=>{var l,t,s,i,r,a,u;switch(null==e?void 0:e.__typename){case"LocalizedCopy":return(0,x.jsx)(o.Fragment,{children:e.text&&(0,x.jsx)(eZ.$,{className:(0,d.A)("text-center prose-headings:font-bold prose-headings:!leading-tight prose-p:!leading-tight prose-h1:text-2xl prose-h2:text-2xl prose-h3:text-xl prose-p:text-base [&>*:not(:last-child)]:mb-2",eK().copy),children:e.text})},"".concat(null==(l=e.sys)?void 0:l.id));case"DynamicDetailItem":return(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:"pb-4",children:(0,x.jsx)(ez.v,{type:"list",items:n})}),(0,x.jsx)("hr",{className:(0,d.A)("my-2 opacity-20",eK().divider)})]},"".concat(null==(t=e.sys)?void 0:t.id));case"ExternalLink":return(0,x.jsx)("ul",{children:(0,x.jsx)(eW,{item:e,imageStyle:"w-full h-auto object-cover rounded-lg",onClick:f})},"".concat(null==(s=e.sys)?void 0:s.id));case"Button":let c,h,j,g;return(0,x.jsx)(o.Fragment,{children:e.text&&(0,x.jsx)(x.Fragment,{children:e.target?(0,x.jsx)(eq(),{"data-theme":(null==(a=e.palette)||null==(a=a.sys)?void 0:a.id)||"none",href:e.target,target:null!=e&&e.openInNewTab?"_blank":void 0,rel:null!=e&&e.openInNewTab?"noreferrer noopener":"",className:(0,d.A)("bt
1n w-full text-button-m first-of-type:mt-0",eK().button),onClick:(c=eX.cta_button,h=null==e?void 0:e.target,j=null==e?void 0:e.analyticsData,g=null==e||null==(u=e.sys)?void 0:u.id,e=>{e.preventDefault(),m(!0),p(c,j,g),window.location.href=h}),children:e.text}):(0,x.jsx)(eY.bm,{"data-theme":(null==(r=e.palette)||null==(r=r.sys)?void 0:r.id)||"none",className:(0,d.A)("btn w-full text-button-m",eK().button),onClick:v(eX.close,null==e?void 0:e.analyticsData),children:e.text})})},"".concat(null==(i=e.sys)?void 0:i.id));default:return null}})]})}function e1(e){var l,t,n,s,i,r,a,u,c,p,f,v,h,y,b,w,N,k,A;let _,{setIsLoading:I,isLoading:S,close:T,useUpsellLayout:D}=e,{t:G}=(0,j.Bd)(),{user:B}=(0,K.J)(),V=J(),{gotoStoreAfterDailyStreakClaim:U,env:L={},rewardStreakSlug:R,storeRoot:z}=(0,P.I)(),Y=(0,m.H)(),q=(0,o.useContext)(eF).tiles,Z=(0,M.YY)(),Q=H(),W=(0,o.use)(eL),$=(0,m.fo)(),{0:X,1:ee}=(0,o.useState)(!1),{additionalButtonsObj:el,removeBackToStoreButton:et}=F(null==Y||null==(l=Y.sys)?void 0:l.id,null==Q?void 0:Q.externalId),en=function(e){let{freeClaimObjectList:l,removeBackToStoreButton:t,primaryClassName:n,secondaryClassName:s}=e,i=[],r=+!t;for(let e of l)switch(e.buttonType){case"ExternalLink":i.push((0,x.jsx)("a",{className:0===r?n:s,target:e.openInNewTab?"_blank":void 0,rel:e.openInNewTab?"noreferrer noopener":void 0,href:e.route,children:e.buttonText},"close-btn")),r+=1;break;case"StorePage":case"NewsArticle":i.push((0,x.jsx)(eq(),{href:e.route,children:(0,x.jsx)("span",{className:0===r?n:s,children:e.buttonText})},"close-btn")),r+=1}return i}({freeClaimObjectList:el,removeBackToStoreButton:!!et,primaryClassName:(0,d.A)("btn min-h-[3rem] h-fit text-button-m w-full",ef().button),secondaryClassName:"w-full btn btn-outline text-button-m"}),es=[],ei=Z&&null!=Y&&null!=(t=Y.sys)&&t.id?Z[Y.sys.id]:null,er=Z&&Object.values(Z).find(e=>{var l,t,n;return(null==e||null==(l=e[0])||null==(l=l.inGroup)?void 0:l.orderInGroup)===(null!=(t=null==e||null==(n=e[0])||null==(n=n.inGroup)?void 0:n.groupSkusCount)?t:0)-1}),ea=null==er||null==(n=er[0])||null==(n=n.inGroup)?void 0:n.state,ed=(null==ei||null==(s=ei[0])||null==(s=s.inGroup)?void 0:s.groupType)===C.dailyStreak,eu=(null==er||null==(i=er[0])||null==(i=i.inGroup)?void 0:i.groupType)===C.dailyStreak&&ea===O.owned,ec=eR(null!=(r=eu?null==er?void 0:er[0]:null==ei?void 0:ei[0])?r:{}),em=q.find(e=>{var l,t;return(null==e||null==(l=e.sys)?void 0:l.id)===(null==er||null==(t=er[0])?void 0:t.itemId)});ec&&null!=er&&null!=(a=er[0])&&a.inGroup&&(null==er||null==(k=er[0])||null==(k=k.inGroup)?void 0:k.state)===O.unavailable&&(er[0].inGroup.state=O.purchasable);let ex=ec||eu,ep=(null==ei||null==(u=ei[0])||null==(u=u.inGroup)?void 0:u.autoClaimBonus)||D,ev=(0,eB.Qx)(Y),eh=(0,eB.Qx)(em);_=ex?ep?[...ev,...eh]:eh:ev;let ej=ex?null!=(c=null==em||null==(p=em.square)?void 0:p.url)?c:"":null!=(f=(null==Y||null==(v=Y.square)?void 0:v.url)||(null==ei||null==(h=ei[0])?void 0:h.boxArt))?f:"",eg=async e=>{e.preventDefault(),await g.default.push({pathname:z}),T()},ey=async e=>{e.preventDefault(),I(!0),T(),V(!0).finally(()=>I(!1))},ew=(0,x.jsx)(eb.bm,{className:(0,d.A)("btn w-full text-button-m",ef().button),onClick:()=>(0,eo.UC)(eo.It.BACK_TO_STORE),children:G("back-to-store")},"back-to-store-btn"),eN=(0,x.jsx)(eb.bm,{className:"btn w-full text-button-m btn-outline",children:G("back-to-".concat(R))},"close-btn"),ek=(0,x.jsx)(eb.bm,{className:"btn btn-outline w-full text-button-m",onClick:()=>(0,eo.UC)(eo.It.BACK_TO_STORE),children:G("back-to-store")},"close-btn"),eC=(0,x.jsx)("button",{type:"button",onClick:()=>{ee(!0),$(em)},className:(0,d.A)("btn w-full text-button-m",ef().button),children:G("claim-final-reward-btn-copy")});ed?(es=[ew],U||(es=[ew,eN]),ec&&!ep?(es=[eC],U?es.push(ek):es.push(eN)):et?es=[...en]:es.push(...en)):es=et?[...en]:(null==Q||null==(y=Q.inGroup)?void 0:y.groupType)==="endless"?[(0,x.jsx)(eb.bm,{disabled:S,onClick:e=>{ey(e)},className:(0,d.A)("btn w-full text-button-m",ef().button),children:G("back-to-store")},"close-btn"),...en]:(null==Q||null==(b=Q.display)||null==(b=b.group)?void 0:b.type)===C.progressiveBundle||(null==Q||null==(w=Q.inGroup)?void 0:w.groupType)===C.progressiveBundle?[(0,x.jsx)(eb.bm,{className:(0,d.A)("bt
1n w-full text-button-m",ef().button),children:G("back-to-store")},"close-btn"),...en]:[(0,x.jsx)(eb.bm,{onClick:e=>{eg(e),V(!0)},className:(0,d.A)("btn w-full text-button-m",ef().button),children:G("back-to-store")},"close-btn"),...en],(0,o.useEffect)(()=>{X&&W()},[X]);let eA=(0,o.useContext)(E).find(e=>"post-purchase"===e.showModal);if(null!=eA&&null!=(N=eA.layoutCollection)&&null!=(N=N.items)&&N.length){let{items:e}=eA.layoutCollection;return(0,x.jsx)(e0,{items:e,mobileDetailItems:_,productTrackingCode:(null==Q?void 0:Q.trackingCode)||(null==Q?void 0:Q.externalId),paletteId:null==eA||null==(A=eA.palette)||null==(A=A.sys)?void 0:A.id})}return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"flex portrait:flex-col landscape:flex-row landscape:justify-between gap-y-4",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,x.jsx)("h1",{className:"font-bold portrait:text-xl landscape:text-2xl portrait:text-center landscape:text-start mb-2 capitalize portrait:mt-6",children:G("claim-offer-title-success")}),(0,x.jsxs)("span",{className:"flex flex-col portrait:items-center font-normal text-base portrait:text-center text-[var(--t2-checkout-main-text-color,var(--text-color-primary))]",children:[(0,x.jsx)("p",{children:G(ec?"claim-final-reward-success-message":"claim-offer-success-text")}),(null==B?void 0:B.displayName)&&(0,x.jsx)("p",{children:(0,x.jsx)(j.x6,{i18nKey:"player-name",values:{playerName:null==B?void 0:B.displayName}})}),(0,x.jsx)("p",{children:(0,x.jsx)(j.x6,{i18nKey:"player-account",values:{accountId:L.showGamePlayerId?null==B?void 0:B.gamePlayerId:null==B?void 0:B.userId}})})]})]}),(0,x.jsx)("div",{className:"flex flex-col",children:(0,x.jsx)("div",{className:"mx-auto my-0 portrait:bg-black-20 rounded-lg",children:(0,x.jsx)(eS._,{sizes:"90vw lg:50vw",src:ej,className:"aspect-square max-w-36 sm:max-w-48 min-w-36 rounded-lg",alt:""})})})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-4 landscape:justify-center",children:[(0,x.jsx)("div",{className:"max-h-[10.5rem] overflow-auto [&::-webkit-scrollbar-track]:!bg-transparent",children:(0,x.jsx)(ez.v,{type:"list",items:_})}),(0,x.jsx)("div",{"aria-hidden":!0,className:"flex flex-col gap-4",onClick:e=>{var l;let t=e.target;(t.id.startsWith("buy-button")||t.id.startsWith("buy-button-content"))&&null!=er&&null!=(l=er[0])&&l.inGroup&&(er[0].inGroup.state=O.owned)},children:es})]})]})}function e2(e){let{title:l,message:t}=e,{t:n}=(0,j.Bd)(),{errorIconUrl:s}=(0,P.I)();return(0,x.jsxs)(x.Fragment,{children:[s?(0,x.jsx)(eS._,{className:"mx-auto py-4",loading:"eager",sizes:"80px",src:s,alt:"brand icon"}):null,(0,x.jsx)("h1",{className:"font-bold text-xl text-center mb-2 capitalize",children:l}),(0,x.jsx)("p",{className:"flex flex-col font-normal text-base text-center lg:flex-grow",children:(0,x.jsx)("p",{children:t})}),(0,x.jsx)(eb.bm,{className:(0,d.A)("btn w-full text-button-m",ef().button),children:n("back-to-store")})]})}var e5=t(14390);let e4=(0,o.createContext)(null);function e3(e){var l,t,n,s,i,r,a,u;let c,p,{children:f}=e,{user:v}=(0,K.J)(),{signIn:h}=(0,V.A)(),B=(0,U.Y)(),R=H(),q=(0,M.YY)(),Z=(0,m.H)(),Q=(0,o.useContext)(D.Q),W=(0,o.useContext)(G),ee=(0,Y.Y)(),el=(0,g.useRouter)(),et=(0,P.I)(),{t:en}=(0,j.Bd)(),es=(0,o.useRef)(!1),ei=J(),er=null!=(l=null==R?void 0:R.promoLimitCount)?l:0,ep=null!=(t=null==R?void 0:R.promoLimitUsed)?t:0,ev=er>0&&ep>=er,{track:eh}=(0,_.s)(),ej=(0,eI.O)(),eg="true"===(0,ec._)("T2GP_PUBLIC_RUNTIME_ZYNGA_CONTROL_FREE_CLAIM"),{0:ey,1:ew}=(0,o.useState)(null),{0:eN,1:ek}=(0,o.useState)(!1),{0:eC,1:eA}=(0,o.useState)(),{0:eO,1:eS}=(0,o.useState)(!1),eP=(0,o.useRef)(null),{checkout:eT}=(0,T.JJ)(),eM=(c=(0,M.YY)(),p=(0,M.UK)(),(0,o.useCallback)((e,l)=>{if(!c)return;let t=c[e];if(!t)return;let n=t.map(e=>{if(!e||e.skuId!==l)return e;let t=void 0!==e.promoLimitUsed?e.promoLimitUsed+1:void 0,n=void 0!==t&&void 0!==e.promoLimitCount&&e.promoLimitCount>0&&t>=e.promoLimitCount;return $($($({},e),void 0!==t&&{promoLimitUsed:t}),n?{purchaseState:O.owned}:{})});p($($({},c),{},{[e]:n}))},[c,p])),{0:eF}=(0,o.useState)(()=>(0,y.A)()),ez=(0,z.N)(),eY=(null==R||null==(n=R.inGroup)?void 0:n.groupType)===C.dailyStreak,eJ=(null==R||null==(s=R.display)||null==(s=s.group)?void 0:s.type)===C.progressiveBundle||(null==R||null==(i=R.inGroup)?void 0:i.groupType)===C.progressiveBundle,eq=(0,o.useContext)(eV),eZ=(0,o.useRef)(null),eH=(0,o.useRef)(!1);(0,o.useEffect)(()=>{var e;
1if(null!=ej&&null!=(e=ej.modals)&&e.welcomeGiftOpen)eH.current=!0;else if(eH.current){let e=setTimeout(()=>{eH.current=!1},300);return()=>clearTimeout(e)}},[null==ej||null==(r=ej.modals)?void 0:r.welcomeGiftOpen]),(0,o.useEffect)(()=>()=>{eZ.current&&clearTimeout(eZ.current)},[]);let{removeBackToStoreButton:eQ,newRouteOnClose:eW}=F(null==R?void 0:R.itemId,null==R?void 0:R.externalId),e$=(0,o.useCallback)(()=>ek(!1),[]),eK=(0,o.useCallback)(async()=>{if(es.current=!1,eA(void 0),eS(!1),eZ.current&&(clearTimeout(eZ.current),eZ.current=null),"free-item-error"===ey||"free-item-error-claimed"===ey){ew(null),ei();return}if("free-item-success"===ey){var e;if(eY){let e=(null==ej?void 0:ej.data)&&(0,eU.bI)(ej.data);"v2"!==eC&&ek(!0),et.gotoStoreAfterDailyStreakClaim?el.push({pathname:et.storeRoot}).finally(e$):(ew(null),e&&ej.openModal("welcomeGiftOpen"),ei().finally(e$))}else eQ?eW.startsWith("/")?el.push({pathname:eW}):window.location.href=eW:eJ?(ew(null),eq?(eq.startSpinner(),ei(!0).finally(()=>eq.stopSpinner())):ei(!0)):eg?ei(!0):null!=R&&R.forceExternalRedeem&&(null==R||null==(e=R.inGroup)?void 0:e.groupType)==="endless"?(ek(!0),ew(null),ei(!0).finally(e$)):(ew(null),ei(!0))}es.current=!1,ew(null)},[ey,eC,ei,eY,eJ,eq,ej,eQ,eg,null==R?void 0:R.forceExternalRedeem,null==R||null==(a=R.inGroup)?void 0:a.groupType,et.gotoStoreAfterDailyStreakClaim,et.storeRoot,el,eW,e$]),eX=(0,o.useContext)(E),{openClaimOverlay:e0,closeClaimOverlay:e3,claimPaletteId:e7}=eD(),e6=eX.find(e=>"post-purchase"===e.showModal),e8=!!(null!=e6&&null!=(u=e6.layoutCollection)&&null!=(u=u.items)&&u.length),e9=()=>{var e,l;let t=q&&(null==(e=Object.values(q).find(e=>{var l,t;let n=null==e||null==(l=e[0])?void 0:l.inGroup;return(null==n?void 0:n.orderInGroup)===(null!=(t=null==n?void 0:n.groupSkusCount)?t:0)-1}))?void 0:e[0]),n=null==t?void 0:t.inGroup,s=(null==n?void 0:n.autoClaimBonus)||e8,i=eR(null!=(l=(null==n?void 0:n.groupType)===C.dailyStreak&&n.state===O.owned?t:R)?l:{});return i&&(null==n?void 0:n.state)===O.unavailable&&(n.state=O.purchasable),{isAutoClaim:s&&i,bonusSku:t}},le=async(e,l,t,n)=>{await (0,k.ao)({config:e,productId:t,requestId:l,metaData:n||{},freeItem:!0}),await (0,k.jm)(e,{requestId:l,productId:t,vendor:"FREE",metadata:n||{}})},ll=async e=>{var l,t,n,s,i,r,a,o,d,u,c,m,x,p,f,j,g,k,_,I,P,T,D,G,M,E,V,U,F,z,Y,J,q,H,$,K,en,er,ep,ef,eh,ey,eb,eN;if(es.current)return;es.current=!0;let ek=null!=(l=null!=(t=null!=(n=null==Z||null==(s=Z.product)?void 0:s.externalId)?n:null==R?void 0:R.externalId)?t:null==R?void 0:R.skuId)?l:null==R?void 0:R.trackingCode;ek&&(null==W||W(ek));let eC=e&&"dailyStreakVariant"in e?e.dailyStreakVariant:void 0;if(eA(eC),((null==R||null==(i=R.inGroup)?void 0:i.groupType)===C.groupSaleMin||(null==R||null==(r=R.inGroup)?void 0:r.groupType)===C.groupSaleStock)&&(null==R||null==(a=R.inGroup)?void 0:a.state)===O.unavailable||null!=R&&null!=(o=R.offerTagsArray)&&o.find(e=>e===A.FreeItem||e===A.OneTime||e===A.CustomResetCadence)&&ev||null!=R&&null!=(d=R.inGroup)&&d.state&&(null==R||null==(u=R.inGroup)?void 0:u.state)!==O.purchasable){es.current=!1;return}if(!v)return(es.current=!1,et.disableBounceModal&&ez)?h():void ew("sign-in");if((0,eo.PR)(1,1,R),null!=R&&R.skuId&&null!=R&&null!=(c=R.offerTagsArray)&&c.includes(A.FreeItem)){let e={class:null!=(m=null!=(x=null==R?void 0:R.trackingCode)?x:null==Z||null==(p=Z.product)?void 0:p.externalId)?m:"",phylum:eY?"streak":"gift"};if(eY&&(e.attribute=(0,em._Y)(R),eP.current="v2"===eC?(0,em.LF)(R,Z):null),ex.CC&&ex.CC.count(ex.zh.redeem,e),v&&null!=R&&R.externalSiteLink){window.open(R.externalSiteLink,"blank"),es.current=!1;return}(0,eo.IJ)(S.WR,"Product Redeem Initiated",ee),(0,eo.tC)(R.externalId||(null==R?void 0:R.skuId),"Product Redeem Initiated");try{if(eg||R.forceExternalRedeem){(0,b.Vv)()&&(null==(D=sessionStorage)||D.setItem("scrollposition",window.scrollY.toString()));let l={appId:null!=(f=null==v?void 0:v.appId)?f:(0,ec._)("T2GP_PUBLIC_RUNTIME_MOBILE_GAME_ID"),clientId:B,locale:ee,currency:null!=(j=null==R?void 0:R.currency)?j:"",vendors:[],store:"zynga_store",networkId:"".concat(null==v?void 0:v.networkId),playerId:null!=(g=null==v?void 0:v.userId)?g:"",networkUserId:null!=(k=null==v?void 0:v.networkUserId)?k:"",authToken:null==v?void 0:v.authToken,iapUrl:null==(_=(0,ec._)("T2GP_PUBLIC_RUNTIME_ZYNGA_IAP_URL"))?void 0:_.replace(/\/$/,""),returnUrl:"",game_data:et.gameData};if(null!=(I=et.env)&&I.T2GP_PUBLIC_RUNTIME_REMOVE_USERID_FROM_CHECKOUT_CONFIG&&(delete l.playerId,delete l.networkUserId),await le(l,eF,null!=(P=null==R?void 0:R.externalId)?P:"",null==R?void 0:R.metadata),(null==(T=R.inGroup)?void 0:T.groupType)==="endless"&&b.RY.setItem(L.No,R.externalId||R.skuId),eY){let{isAutoClaim:t,bonusSku:n}=e9();if(t){let t={class:null!=(G=null!=(M=null!=(E=null==n?void 0:n.trackingCode)?E:null==n?void 0:n.externalId)?M:null==n?void 0:n.skuId)?G:"",phylum:"streak",attribute:"bonus"};ex.CC&&ex.CC.count(ex.zh.redeem,t);let s=e;e=t;let i=(0,y.A)();await le(l,i,null!=(V=null==n?void 0:n.externalId)?V:"",null==n?void 0:n.metadata),e=s,ex.CC&&ex.CC.count(ex.zh.redeem_success,t)}}}else{let e=await ea(v.authToken,v.userId,null==R?void 0:R.skuId);if(!e.ok){let l=await e.text(),t=new X(e);throw l&&(t.message=l),t}if(eY){let{isAutoClaim:e,bonusSku:l}=e9();if(e){let e={class:null!=(U=null!=(F=null!=(z=null==l?void 0:l.trackingCode)?z:null==l?void 0:l.externalId)?F:null==l?void 0:l.skuId)?U:"",phylum:"streak",attribute:"bonus"};ex.CC&&ex.CC.count(ex.zh.redeem,e);let t=await ea(v.authToken,v.userId,null!=(Y=null==l?void 0:l.skuId)?Y:"");if(ex.CC)if(t.ok)ex.CC.count(ex.zh.redeem_success,e);else{let l=await t.text();
1l||(l=new X(t).message),e.family=l,ex.CC.count(ex.zh.redeem_error,e)}}}}if(ex.CC&&ex.CC.count(ex.zh.redeem_success,e),(0,eo.IJ)(S.kZ,"Product Redeem Success",ee),(0,eo.tC)(R.externalId||(null==R?void 0:R.skuId),"Product Redeem Success"),eY&&"v2"===eC){let e,l,t,n;e=et.storeRoot||"/",e0({reward:(l=(0,eB.Qx)(Z)[0],{imageAlt:(null==l?void 0:l.detailName)||(null==l||null==(eb=l.staticDetailItem)?void 0:eb.detailName)||(0,eG.GT)(Z),imageSrc:eE(Z,l)||(null==R?void 0:R.boxArt)||"",quantity:l?(0,eB.kW)(l,"quantity"):""}),storePath:e,event:eP.current}),es.current=!1,eA(void 0),ew(null),t=null==(ef=el.asPath)?void 0:ef.split("?")[1],el.push(t?"".concat(e,"?").concat(t):e).catch(()=>void 0),n=null!=(eh=el.locales)?eh:[],eu(null!=(ey=el.asPath)?ey:"",n)===eu(e,n)&&ei()}else ew("free-item-success");eN=null==ej?void 0:ej.data,eY&&"v2"!==eC&&eN&&(0,eU.bI)(eN)&&(eZ.current&&clearTimeout(eZ.current),eZ.current=setTimeout(()=>{var e;null==ej||null==(e=ej.openModal)||e.call(ej,"welcomeGiftOpen")},1500))}catch(l){if(l instanceof w.b&&"availability"===l.type||l instanceof X&&403===l.statusCode)(0,eo.IJ)(S.Iz,"Product Gift Already Claimed",ee),ed("MDS_FREE_ITEM_ALREADY_CLAIMED_ERROR"),ew("free-item-error-claimed"),ex.CC&&(e.family=null!=(J=l.message)?J:"Product Gift Already Claimed",ex.CC.count(ex.zh.redeem_initiate_error,e));else if((0,eo.IJ)(S.Pr,"Product Redeem Error",ee),(0,eo.tC)(R.externalId||(null==R?void 0:R.skuId),"Product Redeem Error"),ed("MDS_FREE_ITEM_ATTEMPT_GENERIC_ERROR"),ew("free-item-error"),ex.CC){let t=ex.zh.redeem_error;l instanceof w.b&&["init","suspended","authentication","availability"].includes(l.type)&&(t=ex.zh.redeem_initiate_error),l instanceof w.b||l instanceof X||l instanceof N.c||l instanceof Error?e.family=null!=(q=l.message)?q:t:e.family=t,ex.CC.count(t,e)}eY&&"v2"===eC&&(0,em.Qe)("error","view",null==(H=eP.current)?void 0:H.productId,null==($=eP.current)?void 0:$.streakDay)}finally{es.current=!1}return}if(Z&&R){let e=null==(K=Z.sys)?void 0:K.id,l=R.skuId,t=null!=(en=null==(er=R.display)?void 0:er.currency_amount)?en:0;return eT(Z,R,null!=(ep=null==Q?void 0:Q.metaData)?ep:null,()=>{es.current=!1,e3()},e&&l?()=>{eM(e,l),null==ej||ej.creditLpBalance(t)}:void 0)}es.current=!1},lt=eY&&"v2"===eC&&("free-item-error"===ey||"free-item-error-claimed"===ey),ln=function(){var e,l;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"manual";(0,em.Qe)(t,"close",null==(e=eP.current)?void 0:e.productId,null==(l=eP.current)?void 0:l.streakDay),eP.current=null,es.current=!1,eS(!1),eA(void 0),eZ.current&&(clearTimeout(eZ.current),eZ.current=null),ew(null),ei()},ls=async()=>{var e,l;if(!eO){if((0,em.Qe)("error","retry",null==(e=eP.current)?void 0:e.productId,null==(l=eP.current)?void 0:l.streakDay),"free-item-error-claimed"===ey)return void ln("auto");eS(!0);try{await ll({dailyStreakVariant:"v2"})}finally{eS(!1)}}},li=(0,o.useMemo)(()=>({modal:ey,setModal:ew,isLoading:eN,setIsLoading:ek}),[ey,eN]);return(0,x.jsx)(e4.Provider,{value:li,children:(0,x.jsxs)(eL,{value:ll,children:[f,eN&&(0,x.jsx)("div",{className:"bg-[rgb(0_0_0_/_.3)] w-full h-full fixed inset-0 flex items-center justify-center z-dialog",children:(0,x.jsx)(I.k,{})}),(0,x.jsx)(e5.$,{showModal:"sign-in"===ey,closeModal:eK}),(0,x.jsx)(eb.lG,{open:!!(ey&&"sign-in"!==ey)&&!lt,onOpenChange:()=>{var e;null!=ej&&null!=(e=ej.modals)&&e.welcomeGiftOpen||eH.current||eK()},children:(0,x.jsxs)(eb.Cf,{"data-theme":et.checkoutPaletteId||"none",className:(0,d.A)(ef().main,"flex flex-col !justify-center lg:justify-normal !w-full !max-w-full !h-full !max-h-full min-h-[50vh] lg:!max-w-[50%] lg:!h-fit !py-8 md:py-10 px-6 gap-y-4"),onClickClose:eY?()=>{eh("click",{event:"daily_streak",action:"dismiss_modal"})}:void 0,children:["free-item-success"===ey&&(0,x.jsx)(e1,{setIsLoading:ek,isLoading:eN,close:()=>ew(null),useUpsellLayout:e8}),"free-item-error"===ey&&(0,x.jsx)(e2,{title:en("something-went-wrong"),message:en("offer-error-desc")}),"free-item-error-claimed"===ey&&(0,x.jsx)(e2,{title:en("offer-claimed"),message:en("offer-claimed-desc")})]})}),(0,x.jsx)(e_,{open:lt,isRetrying:eO,paletteId:e7,onClose:()=>ln("manual"),onRetry:ls})]})})}function e7(e){let{children:l}=e;return(0,x.jsx)(e3,{children:l})}
1var e6=t(4319),e8=t(22228),e9=t(13444),le=t(75092);function ll(e){return e.toString()}function lt(e){var l,t,n,s,i;let{t:r}=(0,j.Bd)(),a=(0,Y.Y)(),o=(null==e||null==(l=e.promotion)?void 0:l.percent)&&e.promotion.percent.toFixed()||0,d=(i=null==e?void 0:e.currency)?Intl.NumberFormat(a,{style:"currency",currency:i}).format:ll,u=(null==e||null==(t=e.promotion)?void 0:t.reason)||"",c=null!=(n=null==e?void 0:e.promoLimitCount)?n:0,m=null!=(s=null==e?void 0:e.promoLimitUsed)?s:0,x=u===ee.$J.IntroPrice&&r(ee.$J.IntroPrice)||u.startsWith("vc-")&&r(u,{percentage:o})||o&&r("discount-percentage",{percentage:o})||void 0,p=null!=e&&e.discountEndDate?e.discountEndDate>(0,le.gZ)():void 0,f=null!=e&&e.originalPrice?d(null==e?void 0:e.originalPrice):void 0,v="100"===o&&r("free")||(null==e?void 0:e.salePrice)!==(null==e?void 0:e.originalPrice)&&d((null==e?void 0:e.salePrice)||0)||void 0,h=!!(null!=e&&e.marketingPrice)&&!!(null!=e&&e.originalPrice)&&e.originalPrice<(null==e?void 0:e.marketingPrice)&&d(null==e?void 0:e.marketingPrice)||void 0,g=p||u===ee.$J.Coupon,y=(null==e?void 0:e.discountEndDate)||void 0;return u===ee.$J.HidePromo&&(v=void 0,x=void 0,g=!1,p=void 0,y=void 0),{formatPrice:d,currency:(null==e?void 0:e.currency)||"",price:(null==e?void 0:e.originalPrice)||0,displayPrice:f,discountedPrice:v,discountPercentage:x,discountEndDate:y,drm:null==e?void 0:e.drm,isPromoActive:g,isDiscountTimerActive:p,releaseDate:null==e?void 0:e.releaseDate,stockAvailable:null==e?void 0:e.stockAvailable,percentageOff:o,promotionReason:u,isLimitedQuantityClaimed:c>0&&m>=c,marketingPrice:h}}function ln(){let e=H(),l=(0,Z.z)();return e||([e]=l.slice().filter(e=>(e.salePrice||0)>0).sort((e,l)=>{let{salePrice:t}=e,{salePrice:n}=l;return t-n})),lt(e)}function ls(){let e=H(),{isLimitedQuantityClaimed:l}=lt(e),t=(null==e?void 0:e.purchaseState)===O.purchasable&&l;return(null==e?void 0:e.purchaseState)===O.unavailable||t}function li(e){var l,t,n,s,i,r,a,o;let d=(0,le.cW)(null==e||null==(l=e.promotion)?void 0:l.end),u=(0,le.gZ)(),c=null!=(t=null==e?void 0:e.offerTagsArray)?t:[],m=null!=(n=null==e?void 0:e.promoLimitCount)?n:0,x=null!=(s=null==e?void 0:e.promoLimitUsed)?s:0;return{shouldShow:e&&d>0&&d!==1/0&&d>u&&!e.promoLimitResetDate&&!c.includes(A.HideCountdown)&&!(c.includes(A.OneTime)&&c.includes(A.FreeItem)&&1===m&&1===x)&&(null==(i=e.inGroup)?void 0:i.groupType)!==C.groupSaleMin&&(null==(r=e.inGroup)?void 0:r.groupType)!==C.groupSaleStock,endDate:d,timerId:null!=(a=null==e||null==(o=e.promotion)?void 0:o.id)?a:"active-promo"}}function lr(e){var l,t,n,s,i,r;if(!e||null!=(l=e.promotion)&&l.linkedStock)return{show:!1,remaining:null};let a=null!=(t=e.offerTagsArray)?t:[],o=null!=(n=e.promoLimitCount)?n:0,d=null!=(s=e.promoLimitUsed)?s:0,u=null;return(a.includes(A.Discount)||a.includes(A.CustomResetCadence)&&!a.includes(A.FreeItem))&&o>0?u=d<o?o-d:null:0===d&&a.includes(A.FreeItem)&&((null==(i=e.promotion)?void 0:i.reason)===ee.$J.ClaimGiftOnce||a.includes(A.OneTime))?u=1:a.includes(A.FreeItem)&&(a.includes(A.CustomResetCadence)||a.includes(A.Daily)||a.includes(A.Weekly))&&o>0&&(u=d<o?o-d:null),{show:null!==u&&(null==(r=e.inGroup)?void 0:r.groupType)!==C.groupSaleStock,remaining:u}}var la=t(89756);let lo=(0,o.createContext)(-1),ld=(0,o.createContext)(()=>{});function lu(e){let{endDate:l,onDone:t,children:n}=e,{0:s,1:i}=(0,o.useState)(!1);(0,o.useEffect)(()=>{i((0,le.gZ)()>l)},[l]);let r=(0,o.useCallback)(()=>{i(!0),t&&t()},[t]);return(0,x.jsx)(lo.Provider,{value:l,children:(0,x.jsx)(ld.Provider,{value:r,children:s?null:n})})}function lc(e){let{endDate:l,daysHoursOnly:t,className:n}=e,{days:s,hours:i,minutes:r,seconds:a,isComplete:d}=(0,la.L)(l,le.gZ),u=(0,o.useContext)(ld),{t:c}=(0,j.Bd)(),m=(0,o.useRef)(d);(0,o.useEffect)(()=>{let e=d&&!m.current;m.current=d,e&&u(!0)},[d,u]);let p="";if(t&&s>0){let e="00".concat(i).slice(-2);p=c("countdown-days-hours",{days:"".concat(s),hours:e})}else if(s>0){let e="".concat(s),l="00".concat(i).slice(-2),t="00".concat(r).slice(-2),n="00".concat(a).slice(-2);p="".concat(e,":").concat(l,":").concat(t,":").concat(n)}else if(0===s&&i>
10){let e="00".concat(r).slice(-2),l="00".concat(a).slice(-2);p="".concat(i,":").concat(e,":").concat(l)}else{let e="00".concat(a).slice(-2);p="".concat(r,":").concat(e)}return(0,x.jsx)("span",{className:n,"data-testid":"ticking-countdown",children:p})}function lm(e){let{daysHoursOnly:l,className:t}=e,n=(0,o.useContext)(h.r),{t:s}=(0,j.Bd)(),i=H(),{shouldShow:r,endDate:a}=li(i),{show:u,remaining:c}=lr(i);if(!r&&!u)return null;let m=r&&u;return(0,x.jsxs)("span",{"data-theme":n||"none",className:(0,d.A)("flex rounded-2xl justify-center items-center px-6 xs:px-5 whitespace-nowrap",m?"flex-col h-auto py-1 gap-1 xs:flex-row xs:h-8 xs:py-0 xs:gap-2.5":"h-8",eC().countdownWithStock,t),children:[r&&(0,x.jsxs)("span",{className:"flex items-center gap-[0.2rem] h-8",children:[(0,x.jsx)("span",{className:(0,d.A)(eC().countdownWithStockIcon)}),(0,x.jsx)(lc,{endDate:a,daysHoursOnly:l})]}),m&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{className:"hidden xs:inline",children:"|"}),(0,x.jsx)("span",{className:"block xs:hidden w-full border-t border-current"})]}),u&&(0,x.jsx)("span",{children:s("left-quantity",{quantity:c})})]})}function lx(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function lp(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?lx(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lx(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}let lf=e=>(0,x.jsx)("svg",lp(lp({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,x.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 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Zm-1-4h2v2h-2v-2Zm1.61-9.96c-2.06-.3-3.88.97-4.43 2.79-.18.58.26 1.17.87 1.17h.2c.41 0 .74-.29.88-.67.32-.89 1.27-1.5 2.3-1.28.95.2 1.65 1.13 1.57 2.1-.1 1.34-1.62 1.63-2.45 2.88 0 .01-.01.01-.01.02-.01.02-.02.03-.03.05-.09.15-.18.32-.25.5-.01.03-.03.05-.04.08-.01.02-.01.04-.02.07-.12.34-.2.75-.2 1.25h2c0-.42.11-.77.28-1.07.02-.03.03-.06.05-.09.08-.14.18-.27.28-.39.01-.01.02-.03.03-.04.1-.12.21-.23.33-.34.96-.91 2.26-1.65 1.99-3.56-.24-1.74-1.61-3.21-3.35-3.47Z"})}));var lv=t(15137);function lh(e){let{children:l,className:t}=e,n=(0,o.use)(h.r);return(0,x.jsxs)(lv.yt,{children:[(0,x.jsx)(lv.ut,{className:"outline-none focus:outline-none group px-2",children:(0,x.jsx)(lf,{})}),(0,x.jsx)(lv.AM,{"data-theme":n||"none",className:(0,d.A)(t,"data-[entering]:animate-appear data-[exiting]:animate-disappear","text-sm p-2 rounded-md max-w-xs"),children:l})]})}var lj=t(50165),lg=t(5812);function ly(e){var l,t;let{className:n}=e,s=(0,P.I)();return null!=s&&null!=(l=s.iconsMap)&&l.lock?(0,x.jsx)(eS._,{"data-testid":e8.Od,sizes:"256px",className:n,alt:"",src:null==s||null==(t=s.iconsMap)?void 0:t.lock}):(0,x.jsx)(lg.A,{"data-testid":e8.Od,className:n})}function lb(){let e=H(),{isLimitedQuantityClaimed:l}=lt(e),{t}=(0,j.Bd)();if((null==e?void 0:e.purchaseState)===O.purchasable&&l)return(0,x.jsx)("span",{children:t("purchased")})}function lw(e){var l,t;let{freeText:n}=e,s=H(),{t:i}=(0,j.Bd)();if((null==s||null==(l=s.promotion)?void 0:l.reason)===ee.$J.ClaimGiftOnce||(null==s||null==(t=s.offerTags)?void 0:t.includes(A.FreeItem))||(null==s?void 0:s.externalSiteLink))return(0,x.jsx)("span",{className:eC().claimGift,children:n||i("claim-gift")})}function lN(){var e;let l=H(),{user:t}=(0,K.J)();if(t&&((null==l?void 0:l.purchaseState)===O.unavailable||(null==l||null==(e=l.inGroup)?void 0:e.state)===O.unavailable))return(0,x.jsx)(ly,{})}function lk(e){let{className:l}=e,{t}=(0,j.Bd)();return(0,x.jsxs)("div",{className:(0,d.A)(l,"flex gap-y-2 font-bold text-base items-center justify-start",eC().claimed),children:[(0,x.jsx)(lj.A,{className:"me-1 w-4 h-4"}),t("claimed")]})}function lC(e){let{children:l,onClick:t,disabled:n,className:s,ariaLabel:i}=e,r=H(),{t:a}=(0,j.Bd)(),{modal:u}=function(){let e=(0,o.useContext)(e4);if(!e)throw Error("usePurchaseModal must be used within ZyngaPurchaseContext");return e}(),{isOpen:c}=(0,T.JJ)(),{0:m,1:p}=(0,o.useState)(!1),f=(0,o.useRef)(!1);return((0,o.useEffect)(()=>{c?f.current=!0:f.current&&(f.current=!1,p(!1))},[c]),(0,o.useEffect)(()=>{m&&u&&p(!1)},[u,m]),r)?(0,x.jsx)("button",{id:"buy-button-".concat(r.itemId),"data-rum-action-name":"Buy Button",type:"button",className:(0,d.A)(s,eC().button,"btn min-h-0 min-w-0 leading-6 font-bold uppercase","[&>*>
1*:not(:first-child)]:hidden"),disabled:n||m,onClick:e=>{e.stopPropagation(),requestAnimationFrame(()=>{p(!0),requestAnimationFrame(()=>{t(e)})})},"data-testid":e8.aE,"aria-label":i,children:m?(0,x.jsx)("span",{className:"flex items-center justify-center w-full",children:(0,x.jsx)(ey.A,{className:"size-6 animate-spin"})}):(0,x.jsx)("span",{className:"inline-block",children:l||a("Buy")})}):null}function lA(){var e,l;let t=H();return!!((null==t||null==(e=t.promotion)?void 0:e.reason)===ee.$J.ClaimGiftOnce||(null==t||null==(l=t.offerTags)?void 0:l.includes(A.FreeItem)))}function lO(){let e=lA(),{user:l}=(0,K.J)(),t=(0,o.use)(eL),{track:n}=(0,_.s)(),s=(0,P.I)(),i=H();return r=>{null==r||r.stopPropagation(),l||(e?(0,eo.VR)(S.RQ):((0,eo.VR)(S._l),n("click",{action:"purchase_button",metadata:{applicationId:s.applicationId,skuId:(null==i?void 0:i.itemSkuId)||(null==i?void 0:i.skuId),itemId:null==i?void 0:i.itemId,itemTitle:null==i?void 0:i.itemTitle}}))),t()}}let l_=["children"];function lI(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function lS(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?lI(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lI(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}function lP(e){let{children:l}=e,t=(0,e6.A)(e,l_),n=lO();return(0,x.jsx)(lC,lS(lS({onClick:n},t),{},{children:l}))}var lT=t(65853),lD=t(94632),lG=t.n(lD);function lB(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function lM(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?lB(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lB(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}let lE=e=>(0,x.jsxs)("svg",lM(lM({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:[(0,x.jsx)("path",{fill:"currentColor",d:"m22.41 12.58-9-9C13.05 3.22 12.55 3 12 3H5c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42ZM14 21.01 5 12V5h7v-.01l9 9-7 7.02Z"}),(0,x.jsx)("path",{fill:"currentColor",d:"M7.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})]}));var lV=t(24687);function lU(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function lL(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?lU(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lU(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}let lR=e=>(0,x.jsx)("svg",lL(lL({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,x.jsx)("path",{fill:"currentColor",d:"M14 1h-4c-.55 0-1 .45-1 1s.45 1 1 1h4c.55 0 1-.45 1-1s-.45-1-1-1Zm-2 13c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1Zm7.03-6.61.75-.75a.993.993 0 0 0 0-1.4l-.01-.01a.993.993 0 0 0-1.4 0l-.75.75A8.962 8.962 0 0 0 12 4c-4.8 0-8.88 3.96-9 8.76A8.998 8.998 0 0 0 12 22a8.994 8.994 0 0 0 7.03-14.61ZM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7Z"})}));var lF=t(33361),lz=t(14639);function lY(e,l){var t,n;let s=(0,o.use)(h.r),i="";(0,lz.Kg)(l)?i=l:(0,lz.Gv)(l)?i=(null==(t=l.sys)?void 0:t.id)||"":s&&(i=s),i||(i="empty");let[r="unknown",a="unknown"]=e.split(".");return n=i,"".concat("plt-".concat(n)," ").concat(r,"-").concat(a)}let lJ=["children"];function lq(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function lZ(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};
1l%2?lq(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lq(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}function lH(e){let{children:l}=e,t=(0,e6.A)(e,lJ),n=(0,o.useContext)(lo);if(-1===n||null==n)throw Error("Cannot use <CountdownDisplay /> outside of a <Countdown /> component");return l&&t.forceChildren?(0,x.jsx)(x.Fragment,{children:l}):(0,x.jsx)(lc,lZ(lZ({},t),{},{endDate:n}))}var lQ=t(18421);let lW=(0,o.createContext)(null),l$=["children","className"];function lK(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function lX(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?lK(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lK(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}function l0(e){let{children:l,className:t}=e,n=(0,e6.A)(e,l$),s=lY("tileAttribute.main");return(0,x.jsx)("span",lX(lX({className:(0,d.A)("text-promo-attribute text-title inline align-middle tabular-nums !leading-none","[&>*]:align-middle [&>*]:inline [&>*]:content-center",t,s)},n),{},{children:l}))}function l1(){let{t:e}=(0,j.Bd)(),{show:l,remaining:t}=lr(H());return l&&null!=t?(0,x.jsx)(l0,{"data-tile-attr-type":"stock","data-testid":e8.v3,children:(0,x.jsx)("span",{children:e("in-stock-quantity",{quantity:t})})}):null}function l2(e){var l;let{showIcon:t}=e,{t:n}=(0,j.Bd)(),s=H();return(null==s||null==(l=s.promotion)?void 0:l.reason)!==ee.$J.JustForYou?null:(0,x.jsxs)(l0,{"data-tileattr":"just-for-you",className:"!capitalize",children:[t&&(0,x.jsx)(lE,{})," ",n("rockstar-promo-just-for-you")]})}function l5(e){var l,t,n,s,i,r,a,d,u;let{showIcon:c}=e,m=H(),p=null!=(l=null==m?void 0:m.offerTagsArray)?l:[],f=(0,o.useContext)(lW);if(!m||null!=(t=m.offerTagsArray)&&t.includes(A.HideCountdown)||!p.some(e=>e===A.Daily||e===A.Weekly||e===A.CustomResetCadence)||(null==m||null==(n=m.inGroup)?void 0:n.groupType)===C.groupSaleMin||(null==m||null==(s=m.inGroup)?void 0:s.groupType)===C.groupSaleStock)return null;let v=null!=(i=m.promoLimitCount)?i:0,h=null!=(r=m.promoLimitUsed)?r:0,g=v>0&&h>=v||m.purchaseState===O.owned||(null==(a=m.inGroup)?void 0:a.state)===O.owned,y=(0,le.cW)(null!=(d=m.promoLimitResetDate)?d:null==(u=m.promotion)?void 0:u.end);return(0,x.jsx)(lu,{onDone:()=>{var e,l;return null==f?void 0:f(null!=(e=null==m||null==(l=m.promotion)?void 0:l.id)?e:"recurring")},endDate:y,children:g?(0,x.jsxs)(l0,{"data-tileattr":"recurring","data-testid":e8.VL,className:"whitespace-nowrap",children:[c&&(0,x.jsx)(lV.A,{})," ",(0,x.jsx)("span",{className:"whitespace-pre-wrap",children:(0,x.jsxs)(j.x6,{i18nKey:"available-again-in-timer",children:["Available again in",(0,x.jsx)(lH,{daysHoursOnly:!0})]})})]}):(0,x.jsxs)(l0,{"data-tileattr":"recurring","data-testid":e8.LM,children:[c&&(0,x.jsx)(lV.A,{})," ",(0,x.jsx)(lH,{daysHoursOnly:!0})]})})}function l4(e){let{showIcon:l,releaseDate:t,className:n}=e,s=H(),i=(0,o.useContext)(lW),r=(0,le.cW)(t||(null==s?void 0:s.releaseDate)||0),a=(0,le.gZ)();return s&&r&&!(r<=a)?(0,x.jsx)(lu,{onDone:()=>{var e,l;return null==i?void 0:i(null!=(e=null==s||null==(l=s.promotion)?void 0:l.id)?e:"pre-release")},endDate:r,children:(0,x.jsxs)(l0,{"data-tileattr":"prerelease","data-testid":e8.s7,className:n,children:[l&&(0,x.jsx)(lV.A,{})," ",(0,x.jsx)("span",{children:(0,x.jsxs)(j.x6,{i18nKey:"unlocks-in",children:["Unlocks in",(0,x.jsx)(lH,{daysHoursOnly:!0})]})})]})}):null}function l3(e){var l,t,n,s,i,r,a;let{showIcon:d,tileItemIds:u,className:p}=e,{t:f}=(0,j.Bd)(),v=(0,M.YY)(),h=H(),g=(0,m.H)(),y=(0,o.useContext)(lW),b=Math.min(...(0,c.U)(u.map(e=>{var l;let t=null==v?void 0:v[e];return(null==t||null==(l=t[0])||null==(l=l.inGroup)?void 0:l.passEndDate)||0}))),w=null==h||null==(l=h.inGroup)?void 0:l.passInUse,N=((null==h||null==(t=h.inGroup)?void 0:t.passEndDate)||b)-b,{days:k,hours:C}=(0,le.iw)(N||0);return(0,x.jsx)(lu,{onDone:()=>null==y?void 0:y("vip-pass-end-date"),endDate:(null==h||null==(n=h.inGroup)?void 0:n.passEndDate)||0,children:(0,x.jsxs)(l0,{"data-testid":e8.Uw,className:p,children:[d&&(0,x.jsx)(lR,{})," ",w&&(0,x.jsx)("span",{children:(0,x.jsxs)(j.x6,{i18nKey:"item-time-left",values:{itemTitle:null!=(s=null==g||null==(i=g.displayProductName)?void 0:i.text)?s:null==g?void 0:g.title},children:[(0,x.jsx)(lH,{daysHoursOnly:!0}),(0,x.jsx)("span",{children:"TIME LEFT"})]})}),!w&&(0,x.jsxs)("span",{children:[null!=(r=null==g||null==(a=g.displayProductName)?void 0:a.text)?r:null==g?void 0:g.title," ",f("countdown-days-hours",{days:k,hours:C})," (",f("inactive"),") "]})]})})}function l7(e){var l;let{showIcon:t,className:n}=e,s=H(),i=(0,o.useContext)(lW),{shouldShow:r,endDate:a,timerId:u}=li(s);return!r||null!=s&&null!=(l=s.offerTagsArray)&&l.includes(A.HideCountdown)?null:(0,x.jsx)(lu,{onDone:()=>null==i?void 0:i(u),endDate:a,children:(0,x.jsxs)(l0,{"data-testid":e8.LM,className:(0,d.A)(n),children:[t&&(0,x.jsx)(lV.A,{})," ",(0,x.jsx)(lH,{daysHoursOnly:!0})]})})}function l6(){let{t:e}=(0,j.Bd)(),l=lY("tileAttribute.popup");return(0,x.jsx)(lv.AM,{className:(0,d.A)("bg-neutral-300 text-text-primary","data-[entering]:animate-appear data-[exiting]:animate-disappear","w-full max-w-[60vw] md:w-10/12 lg:w-96 mx-4 z-50 overflow-hidden rounded-md shadow-far outline-none p-3",l),children:(0,x.jsx)(eZ.$,{children:e("shared-stock-description")})})}function l8(){var e,l,t;let n=H(),{t:s}=(0,j.Bd)(),i=lY("tileAttribute.icon");if(!n||!(null!=n&&null!=(e=n.promotion)&&e.linkedStock))return null;let r=null!=(l=n.promoLimitCount)?l:0,a=null!=(t=n.promoLimitUsed)?t:0;return(0,x.jsxs)(lQ.Kg,{children:[(0,x.jsx)(lQ.Uz,{className:"select-none",children:(0,x.jsx)(l0,{children:(0,x.jsxs)("span",{className:"whitespace-nowrap",children:[(0,x.jsx)("span",{className:"inline-block pe-1",children:s("in-stock-quantity",{quantity:r-a})}),(0,x.jsx)("span",{className:"align-middle mx-[0.125rem]",children:(0,x.jsx)("span",{className:(0,d.A)(i,"bg-promo-attribute text-black inline-block rounded-full size-3"),children:(0,x.jsx)(lF.A,{className:"text-xs"})})})]})})}),(0,x.jsx)(l6,{})]})}function l9(e){let{children:l,className:t}=e;return(0,x.jsx)("div",{className:(0,d.A)("empty:hidden","divide-x [&>*]:border-white-20","[&>*]:px-2 [&>*:first-child]:ps-0 [&>*:last-child]:pe-0",t),children:l})}var te=t(22573),tl=t(42120),tt=t.n(tl);function tn(){var e,l;let{t}=(0,j.Bd)(),n=H(),{discountedPrice:s,displayPrice:i,marketingPrice:r}=ln(),{user:a}=(0,K.J)(),o=(null==a?void 0:a.userId)||(0,te.UM)(te.Re.userid),u=(null==n||null==(e=n.promotion)?void 0:e.reason)===ee.$J.ClaimGiftOnce||(null==n||null==(l=n.offerTagsArray)?void 0:l.includes(A.FreeItem));if(!n||u)return null;
1let c=i;return!i&&o?c="":(o||void 0!==i)&&a?s?c=s:r&&(c=(0,x.jsxs)("span",{className:"flex gap-2 items-center justify-center flex-wrap",children:[(0,x.jsx)("span",{children:i}),(0,x.jsxs)("span",{className:"relative",children:[r,(0,x.jsx)("span",{className:(0,d.A)(tt().strikethrough,"absolute w-full left-0 top-[40%]")})]})]})):c=t("connect-id"),(0,x.jsxs)("span",{"data-testid":e8.Lf,children:[(0,x.jsx)("span",{className:(0,d.A)(!r&&"!leading-none",tt().price),children:c}),s&&!u&&(0,x.jsx)("s",{className:"line-through text-body-s font-normal !leading-none opacity-60 ms-2",children:i})]})}var ts=t(15906);function ti(e){var l,t;let{user:n}=(0,K.J)(),{layoutItems:s}=(()=>{let e=(0,o.useContext)(p);if(!e)throw Error("useLayoutContext must be used within a LayoutProvider");return e})(),i=(0,M.YY)(),r=(0,o.useRef)(!1),a="tileGroup"in e,d=a?null==(l=e.tileGroup)||null==(l=l.sys)?void 0:l.id:null==(t=e.item)||null==(t=t.sys)?void 0:t.id,u=a?e.tileItems:void 0,c=(0,o.useMemo)(()=>null==s?void 0:s.find(e=>{var l,t;return(null==e?void 0:e.__typename)==="LayoutListView"&&((null==(l=e.itemsCollection)||null==(l=l.items)?void 0:l.some(e=>{var l;return(null==e||null==(l=e.sys)?void 0:l.id)===d}))||(null==e?void 0:e.externalId)===d||d&&(null==e||null==(t=e.tileGroupsToItems)?void 0:t[d]))}),[s,d]),m=e.sectionSlugOverride||(null==c?void 0:c.slug)||(null==c?void 0:c.placementKey)||"store",x=(0,o.useMemo)(()=>{var e,l;if(!d)return[];if(a&&u){let l=[];for(let t of u){let n=null==t||null==(e=t.sys)?void 0:e.id;if(!n)continue;let s=null==i?void 0:i[n],r=null==s?void 0:s[0];null!=r&&r.trackingCode&&l.push(r.trackingCode)}return l}if(!a){let e=null==i?void 0:i[d],t=null==e?void 0:e[0];if(null!=t&&t.trackingCode)return[t.trackingCode];if(null!=c&&null!=(l=c.tileGroupsToItems)&&l[d]){let e=c.tileGroupsToItems[d],l=[];for(let t of e){let e=null==i?void 0:i[t],n=null==e?void 0:e[0];null!=n&&n.trackingCode&&l.push(n.trackingCode)}return l}}return[]},[d,c,i,a,u]),[f,v]=(0,ts.Wx)({threshold:[.5,.7,.9],triggerOnce:!0,skip:!1});return(0,o.useEffect)(()=>{!v||r.current||0===x.length||x.every(e=>{var l;return(0,em.w2)({productId:e,sectionSlug:null!=m?m:"store",segments:null!=(l=null==n?void 0:n.segments)?l:[]})})&&(r.current=!0)},[v,x,m,null==n?void 0:n.segments]),[f,v]}var tr=t(55139);function ta(){var e,l;let t=H(),n=lA(),{isLimitedQuantityClaimed:s}=lt(t);return(void 0!==(null==t||null==(e=t.inGroup)?void 0:e.state)?(null==(l=t.inGroup)?void 0:l.state)===O.owned:(null==t?void 0:t.purchaseState)===O.owned)||n&&s}var to=t(70693),td=t.n(to);function tu(e){let{children:l,as:t="span",maxFontSizeRem:n,className:s}=e;return(0,x.jsxs)(t,{className:(0,d.A)(td().root,s,"flex w-full"),style:{"--fit-text-max-font-size":"".concat(n,"rem")},children:[(0,x.jsx)("span",{className:(0,d.A)("flex-grow",td().container),children:(0,x.jsx)("span",{className:(0,d.A)("block",td().display),children:l})}),(0,x.jsx)("span",{className:td().reference,"aria-hidden":"true",children:l})]})}let tc=o.useLayoutEffect;function tm(e){var l,t;let{children:n,className:s}=e,i=(0,o.useRef)(null),{0:r,1:a}=(0,o.useState)();tc(()=>{var e;let l=()=>{try{i.current&&a(i.current.getBBox())}catch(e){}};l(),null==(e=document.fonts)||e.ready.then(l).catch(()=>{})},[n]);let d=!!r,u=(null==r?void 0:r.width)||.55*n.length,c=(null==r?void 0:r.height)||1,m=null!=(l=null==r?void 0:r.x)?l:0,p=null!=(t=null==r?void 0:r.y)?t:0;return(0,x.jsx)("svg",{role:"img","aria-label":n,viewBox:"".concat(m," ").concat(p," ").concat(u," ").concat(c),preserveAspectRatio:"xMidYMid meet",className:s,style:{display:"block",marginInline:"auto",maxWidth:"100%",height:"auto",width:d?"".concat(u,"px"):"".concat(u,"em")},children:(0,x.jsx)("text",{ref:i,fill:"currentColor",children:n})})}let tx=["children","className"];function tp(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function tf(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};
1l%2?tp(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tp(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}function tv(e){let{children:l,className:t}=e,n=(0,e6.A)(e,tx),{0:s,1:i}=(0,o.useState)(!0);return((0,o.useEffect)(()=>{i("u">typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("at-rule(@property)"))},[]),l)?s?(0,x.jsx)(tu,tf(tf({className:t},n),{},{children:l})):(0,x.jsx)(tm,{className:t,children:l}):null}let th=["children","className","flipAxis"],tj=["children"],tg=["children","className"],ty=["children","className"];function tb(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function tw(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?tb(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tb(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}let tN=(0,o.createContext)(null);function tk(){let e=(0,o.useContext)(tN);if(null===e)throw Error("Missing Flip Context");return e}function tC(e){let l,{children:t,className:n,flipAxis:s="x"}=e,i=(0,e6.A)(e,th),{0:r,1:a}=(0,o.useState)(!1),{0:u,1:c}=(0,o.useState)(0),m=(0,o.useRef)(null),p=(0,o.useMemo)(()=>({flipped:r,setFlipped:a,rootRef:m,flipHeight:u,setFlipHeight:c,flipAxis:s}),[r,u,s]);if(2!==o.Children.count(t))throw Error("<FlipRoot> must have 2 children");return l=r?"y"===s?"[transform:rotateY(180deg)]":"[transform:rotateX(180deg)]":"y"===s?"[transform:rotateY(0deg)]":"[transform:rotateX(0deg)]",(0,x.jsx)("div",tw(tw({ref:m,className:"[perspective:1000px] w-full"},i),{},{children:(0,x.jsx)(tN.Provider,{value:p,children:(0,x.jsx)("div",{className:(0,d.A)("grid [&>*]:col-span-full [&>*]:row-span-full h-full","[transform-style:preserve-3d] transition-transform duration-500 ease-in-out",l,n),children:t})})}))}function tA(e){let{children:l}=e,t=(0,e6.A)(e,tj),{setFlipped:n,rootRef:s,setFlipHeight:i}=tk();return(0,x.jsx)("button",tw(tw({type:"button",onClick:()=>{s.current&&i(s.current.getBoundingClientRect().height),n(e=>!e)}},t),{},{children:l}))}function tO(e){let{children:l,className:t}=e,n=(0,e6.A)(e,tg),{flipped:s}=tk();return(0,x.jsx)("div",tw(tw({},n),{},{className:(0,d.A)(t,"[backface-visibility:hidden] [-webkit-backface-visibility:hidden]",s?"invisible [transition-delay:250ms]":"visible [transition-delay:100ms]","[transition-property:visibility]","[&>.absolute]:transition-opacity [&>.absolute]:duration-200 [&>.absolute]:ease-out",s?"[&>.absolute]:opacity-0":"[&>.absolute]:opacity-100",s&&"pointer-events-none"),children:l}))}function t_(e){let{children:l,className:t}=e,n=(0,e6.A)(e,ty),{flipped:s,flipHeight:i,flipAxis:r}=tk(),a=(0,o.useRef)(null);return(0,o.useEffect)(()=>{a.current&&(a.current.style.maxHeight=i?"".concat(i,"px"):"")},[i]),(0,x.jsx)("div",tw(tw({ref:a},n),{},{className:(0,d.A)(t,"[backface-visibility:hidden] [-webkit-backface-visibility:hidden]",s?"visible [transition-delay:100ms]":"invisible [transition-delay:250ms]","[transition-property:visibility]","[&>.absolute]:transition-opacity [&>.absolute]:duration-200 [&>.absolute]:ease-out",s?"[&>.absolute]:opacity-100":"[&>.absolute]:opacity-0","y"===r?"[transform:rotateY(180deg)]":"[transform:rotateX(180deg)]",!s&&"pointer-events-none"),children:l}))}function tI(){var e,l;let t=H(),{discountedPrice:n,percentageOff:s}=ln(),i=(null==t||null==(e=t.promotion)?void 0:e.reason)===ee.$J.ClaimGiftOnce||(null==t||null==(l=t.offerTagsArray)?void 0:l.includes(A.FreeItem));return t&&n&&s&&!i?(0,x.jsx)("span",{"data-testid":e8.uD,className:"badge bg-success text-white font-bold text-sm leading-normal",children:"-".concat(s,"%")}):null}var tS=t(41325);function tP(e){var l,t,n,s,i,r;let{item:a,shouldTileFlip:u,pkgVariant:m,marketingMessages:p,hideAttribute:f,showCountdownWithStock:v}=e,{t:g}=(0,j.Bd)(),y=ta(),b=lO(),w=ls(),N=(0,o.use)(eL),k=H(),C=(0,o.useContext)(h.r),{getDynamicMarketingMessages:A}=(0,e9.V)(),O=m||"inline",_=(0,eB.Qx)(a),I=null==_?void 0:_.filter(e=>!(null!=e&&e.primary)),S=null!=(l=null==_||null==(t=_.find(e=>null==e?void 0:e.primary))?void 0:t.quantity)?l:null,P=null==_||null==(n=_.find(e=>null==e?void 0:e.previousAmount))?void 0:n.previousAmount,T=(null==p||null==(s=p[0])?void 0:s.placement)==="Left",D=A(e9.k.tile),G=A(e9.k.aboveBuyButton,{items:(0,c.U)([a])}),[B]=ti({item:a});
1return(0,x.jsxs)(tC,{ref:B,title:(null==a||null==(i=a.displayProductName)?void 0:i.text)||(null==a?void 0:a.title)||"","data-tile":tS.Us.List,"data-testid":e8.Vy,"data-theme":C||"none",className:(0,d.A)("rounded-lg w-full h-full shadow-xnear relative",eC().main),children:[(0,x.jsxs)(tO,{className:"flex p-3 gap-x-3 h-full",children:[(0,x.jsx)(lT.J,{messages:(p||[]).concat(D)}),(0,x.jsx)("div",{className:(0,d.A)("shrink-0",{"self-center":T}),children:(0,x.jsx)(eS._,{onClick:null!=k&&k.purchasable?N:()=>null,className:"h-auto w-20 md:w-24",sizes:"10vw",src:(0,eG.VG)(null==a?void 0:a.square)||(0,eG.VG)(null==a?void 0:a.boxart)||"",alt:(0,eG.GT)(a)})}),(0,x.jsxs)("section",{className:"flex-grow flex flex-col gap-y-2",children:[(0,x.jsxs)("span",{className:"inline text-body-m font-bold",children:[(0,x.jsx)("span",{className:(0,d.A)("align-middle",eC().title),children:(null==a||null==(r=a.displayProductName)?void 0:r.text)||(null==a?void 0:a.title)}),!!_.length&&u&&(0,x.jsx)(tA,{className:"inline align-middle ps-2",children:(0,x.jsx)(tr.A,{className:"h-7"})})]}),P&&(0,x.jsxs)("span",{className:(0,d.A)("text-body-m",eC().description),children:[(0,x.jsx)("span",{className:"line-through",children:P.toLocaleString()}),(0,x.jsxs)("span",{children:[" ",g("in-game")]})]}),S&&(0,x.jsx)(tv,{as:"span",maxFontSizeRem:1.5,className:(0,d.A)("font-bold !leading-none",eC().description),children:S.toLocaleString()}),(0,x.jsx)(ez.v,{type:m||"inline",items:I,className:(0,d.A)("inline"===O&&"[&>*]:first:font-bold")}),!f&&(0,x.jsxs)(l9,{children:[!v&&(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l5,{showIcon:!0}),!v&&(0,x.jsx)(l1,{}),(0,x.jsx)(l2,{showIcon:!0}),(0,x.jsx)(l8,{})]}),(null==a?void 0:a.longDescription)&&(0,x.jsx)("p",{className:"text-body-s",children:null==a?void 0:a.longDescription}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto",children:[!!G.length&&(0,x.jsx)(lT.J,{messages:G,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),y?(0,x.jsx)(lk,{}):(0,x.jsxs)(lC,{className:"break-words",disabled:w,onClick:b,children:[(0,x.jsx)(lb,{}),(0,x.jsx)(lw,{}),(0,x.jsx)(lN,{}),(0,x.jsx)(tn,{})]})]}),v&&(0,x.jsx)("div",{className:"flex justify-center",children:(0,x.jsx)(lm,{daysHoursOnly:!0})})]})]}),(0,x.jsxs)(t_,{className:(0,d.A)("relative rounded-lg p-4 pe-8 space-y-2 overflow-hidden",lG().main),children:[(0,x.jsx)("div",{className:"space-y-2 overflow-y-auto h-full [&::-webkit-scrollbar-track]:!bg-transparent ",children:_.map(e=>{var l,t,n,s;return(0,x.jsxs)("div",{className:"flex items-center gap-2",children:[(0,x.jsx)(eS._,{className:"w-8 inline",alt:null!=(t=null==e?void 0:e.detailName)?t:"",src:null!=(n=null==e||null==(s=e.staticDetailItem)||null==(s=s.art)?void 0:s.url)?n:""}),(0,x.jsx)("span",{children:(0,eB.kW)(e,"text")})]},null==e||null==(l=e.sys)?void 0:l.id)})}),(0,x.jsx)(tA,{className:"absolute top-0 right-0 p-2",children:(0,x.jsx)(ev.A,{className:"h-6 w-6"})})]})]})}let tT=["item"];function tD(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function tG(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?tD(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tD(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}function tB(e){let l=(0,M.YY)(),t=(0,c.U)(Object.values(l||{}).flat());return e.find(e=>"Item"===e.__typename&&t.find(l=>{var t,n;return l.itemId===(null==(t=e.sys)?void 0:t.id)&&(null==(n=l.inGroup)?void 0:n.orderInGroup)===0}))||e[0]}function tM(e){var l;let{bundleItem:t,msgLink:n,marketingMessages:s,includeBundleItemMarketingMessages:i=!1}=e,r=(0,c.U)((null!=n?n:[]).filter(e=>{var l;return e.from===(null==t||null==(l=t.sys)?void 0:l.id)}).map(e=>null==s?void 0:s.find(l=>{var t;return(null==l||null==(t=l.sys)?void 0:t.id)===e.to})));return i?[...r,...(null==t||null==(l=t.marketingMessagesCollection)?void 0:l.items)||[]].filter(
1Boolean):r}function tE(e){let{marketingMessageList:l,className:t}=e,{t:n}=(0,j.Bd)();return 0===l.length?null:(0,x.jsxs)("div",{className:t,children:[(0,x.jsx)("span",{children:n("get-all-for")}),(0,x.jsx)(lT.J,{messages:l,className:"relative !mt-0 left-0"})]})}function tV(e){let l,{className:t,wrapperClassName:n,label:s,priceClassName:i,badge:r}=e,{t:a}=(0,j.Bd)(),o=H(),u=!!o&&(null==o?void 0:o.purchaseState)===O.purchasable,c=ls(),m=i?(0,x.jsx)("span",{className:i,children:(0,x.jsx)(tn,{})}):(0,x.jsx)(tn,{}),p=null!=s?s:a("get-all-for");l=!u||c?a("out-of-stock"):i?(0,x.jsxs)("span",{className:"flex min-w-0 w-full items-center gap-1",children:[r,(0,x.jsx)("span",{className:"min-w-0 flex-1 truncate text-center",children:p}),m]}):(0,x.jsxs)(x.Fragment,{children:[p," ",m]});let f=(0,x.jsx)(lP,{className:(0,d.A)("w-full gap-1 disabled:[text-shadow:none]",t),disabled:c,children:l});return n?(0,x.jsx)("div",{className:n,children:f}):f}function tU(e){let{item:l}=e,t=(0,e6.A)(e,tT);return(0,x.jsx)(m.px,{value:l,children:(0,x.jsx)(e7,{children:(0,x.jsx)(tV,tG({},t))})})}function tL(e){let{title:l,itemId:t,item:n,showAttribute:s,showCountdownWithStock:i}=e,{t:r}=(0,j.Bd)(),a=(0,eB.Qx)(n),{getDynamicMarketingMessages:o}=(0,e9.V)(),d=o(e9.k.aboveBuyButton,{items:(0,c.U)([n])});return(0,x.jsxs)(x.Fragment,{children:[l&&(0,x.jsxs)("div",{className:"flex justify-center",children:[(0,x.jsx)("h3",{className:"text-headline-m",children:l}),a.length>0&&(0,x.jsxs)(lh,{className:"".concat(lG().popup," px-4 py-2 w-full max-w-52 shadow-far"),children:[(0,x.jsx)("p",{className:"text-xl font-bold leading-[1.5] mb-2",children:r("you-will-get")}),(0,x.jsx)("ul",{className:"list-disc list-inside text-body-m",children:a.map(e=>{var l;return(0,x.jsxs)("li",{children:[(0,eB.kW)(e,"text")," ",e.detailName]},null==(l=e.sys)?void 0:l.id)})})]})]}),!!d.length&&(0,x.jsx)(lT.J,{messages:d,className:"relative !left-0 mb-1"}),(0,x.jsx)(m.px,{value:n,children:(0,x.jsxs)(e7,{children:[s&&!i&&(0,x.jsxs)(l9,{children:[(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l1,{})]}),(0,x.jsx)(tV,{}),i&&(0,x.jsx)("div",{className:"flex justify-center",children:(0,x.jsx)(lm,{daysHoursOnly:!0})})]})},t)]})}function tR(e){var l,t,n,s,i,r,a,u;let{tileGroup:c,tileItems:p,marketingMessages:f,paletteMap:v,shouldTileFlip:j,msgLink:g,pkgVariant:y,showCountdownWithStock:b,imageType:w,className:N,renderTitle:k,hideHeaderImage:C=!1,groupItemTileComponent:A,groupItemsContainerClassName:O="grid gap-y-2 grid-cols-1",groupItemsWrapperClassName:_,buyAllButton:I,countdownInHeader:S=!1,marketingMessageConfig:P={includeBundleItemMarketingMessages:!1,position:"before",className:"relative flex justify-center items-end gap-2 text-body-s"},hideDescription:T=!1,contentClassName:D="p-3 grid grid-cols-1 gap-2",hideGroupItemProductName:G=!1,compactGroupItems:B=!1,fitGroupItemsToSlide:M=!1,renderGroupItemsContainer:E}=e,{includeBundleItemMarketingMessages:V=!1,position:U="before",className:L="relative flex justify-center items-end gap-2 text-body-s"}=P,{getDynamicMarketingMessages:R}=(0,e9.V)(),F=tB(p),[z]=ti({tileGroup:c,tileItems:p}),Y=p.filter(e=>{var l,t;return(null==e||null==(l=e.sys)?void 0:l.id)!==(null==F||null==(t=F.sys)?void 0:t.id)}),J=R(e9.k.tile),q=tM({bundleItem:F,msgLink:g,marketingMessages:f,includeBundleItemMarketingMessages:V}),Z=(0,o.useContext)(h.r);if(!(null!=p&&p.length)||!c||!(null!=Y&&Y.length))return null;let H=A||tP,Q=!A,W=Y.map((e,l)=>{var t,n;return(0,x.jsx)(m.px,{value:e,children:(0,x.jsx)(e7,{children:(0,x.jsx)(h.r.Provider,{value:v.get((null==(n=e.sys)?void 0:n.id)||"")||v.get("".concat(l+1)||"")||"",children:(0,x.jsx)(H,tG({item:e,shouldTileFlip:j,pkgVariant:y,imageType:w,hideProductName:G,fitSlide:M,compact:B},Q&&{hideAttribute:!0}))})})},null==(t=e.sys)?void 0:t.id)}),$=E?E(W,Y.length):(0,x.jsx)("div",{"data-testid":"all-in-one-group-items",className:O,children:W});return(0,x.jsx)("div",{ref:z,"data-theme":Z||"none","data-testid":e8.Vy,className:(0,d.A)("rounded-lg w-full h-full shadow-xnear",eC().main,N),children:(0,x.jsxs)("div",{className:"h-full relative",children:[J.length>0&&(0,x.jsx)(lT.J,{messages:J}),!C&&(null==c||null==(l=c.headerImage)?void 0:l.url)&&(0,x.jsx)("div",{"data-testid":"all-in-one-header-banner",className:"w-full aspect-[3.25/1] grow-0 overflow-hidden rounded-t-lg",children:(0,x.jsx)(eS._,{sizes:"100vw sm:50vw md:25vw",className:"h-full w-full",src:(0,eG.VG)(c.headerImage),alt:(0,eG.GT)({title:null==(t=c.title)?void 0:t.text})})}),(0,x.jsxs)("section",{className:D,children:[k?k(null==(n=c.title)?void 0:n.text):(0,x.jsx)("div",{className:(0,d.A)("grid gap-1 text-center",eC().title),children:(0,x.jsx)(tL,{title:null==(s=c.title)?void 0:s.text,itemId:null==F||null==(i=F.sys)?void 0:i.id,item:F,showAttribute:!0,showCountdownWithStock:b})}),S&&b&&(0,x.jsx)(m.px,{value:F,children:(0,x.jsx)(e7,{children:(0,x.jsx)("div",{className:"flex justify-center",children:(0,x.jsx)(lm,{daysHoursOnly:!0})})})}),_?(0,x.jsx)("div",{"data-testid":"all-in-one-group-items-wrapper",className:_,children:$}):$,(0,x.jsxs)("div",{className:"grid gap-2 text-center",children:[!I&&"before"===U&&(0,x.jsx)(tE,{marketingMessageList:q,className:L}),null!=I?I:(0,x.jsx)(tL,{itemId:null==F||null==(r=F.sys)?void 0:r.id,item:F,showCountdownWithStock:!S&&b}),!I&&"after"===U&&(0,x.jsx)(tE,{marketingMessageList:q,className:L}),!T&&(null==c||null==(a=c.description)?void 0:a.text)&&(0,x.jsx)("p",{className:(0,d.A)("text-xs",eC().description),children:null==c||null==(u=c.description)?void 0:u.text})]})]})]})})}function tF(e){var l,t;let{item:n,shouldTileFlip:s,pkgVariant:i,marketingMessages:r}=e,{t:a}=(0,j.Bd)(),u=ta(),c=lO(),m=ls(),{remaining:p}=lr(H()),f=(0,o.useContext)(h.r),{getDynamicMarketingMessages:v}=(0,e9.V)(),g=i||"inline",y=(0,eB.Qx)(n),b=null==y?void 0:y.filter(e=>!(null!=e&&e.primary)),w=null!=(l=null==y||null==(t=y.find(e=>null==e?void 0:e.primary))?void 0:t.quantity)?l:null,N=v(e9.k.tile),[k]=ti({item:n});
1return(0,x.jsxs)(tC,{ref:k,title:(null==n?void 0:n.title)||"","data-tile":tS.Us.List,"data-testid":e8.Vy,"data-theme":f||"none",className:(0,d.A)("rounded-lg w-full h-full shadow-xnear relative",eC().main),children:[(0,x.jsxs)(tO,{className:"flex p-3 h-full",children:[(0,x.jsx)(lT.J,{messages:(r||[]).concat(N)}),(0,x.jsxs)("section",{className:"flex-grow flex flex-col gap-y-2 sm:justify-end",children:[(0,x.jsxs)("span",{className:"inline text-body-m font-bold text-center sm:mb-auto",children:[(0,x.jsx)("span",{className:(0,d.A)("align-middle text-[1.75rem] sm:text-[1.5rem]",eC().title),children:null==n?void 0:n.title}),!!y.length&&s&&(0,x.jsx)(tA,{className:"inline align-middle ps-2",children:(0,x.jsx)(tr.A,{className:"h-7"})})]}),w&&(0,x.jsx)("span",{className:(0,d.A)("text-headline-l font-bold !leading-none",eC().description),children:w.toLocaleString()}),(0,x.jsx)(ez.v,{type:i||"inline",items:b,className:(0,d.A)("inline"===g&&"[&>*]:first:font-bold"),previousAmountOnRight:!0}),(null==n?void 0:n.longDescription)&&(0,x.jsx)("p",{className:"text-body-s",children:null==n?void 0:n.longDescription}),(0,x.jsxs)("div",{className:"flex flex-row gap-x-2 items-center justify-center sm:flex-col-reverse sm:gap-2 relative",children:[(0,x.jsx)("span",{className:(0,d.A)("absolute sm:relative z-10 left-0 text-[0.8rem] w-14 py-[1px] rounded-2xl px-3 leading-4 text-center",eC().leftQuantity),children:a("left-quantity",{quantity:p})}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto md:max-w-[16rem] max-w-[180px] w-full",children:[(0,x.jsx)(tI,{}),u?(0,x.jsx)(lk,{}):(0,x.jsxs)(lC,{className:"break-all",disabled:m,onClick:c,children:[(0,x.jsx)(lb,{}),(0,x.jsx)(lw,{}),(0,x.jsx)(lN,{}),(0,x.jsx)(tn,{})]})]})]})]})]}),(0,x.jsxs)(t_,{className:(0,d.A)("relative rounded-lg p-4 pe-8 space-y-2 overflow-hidden",lG().main),children:[(0,x.jsx)("div",{className:"space-y-2 overflow-y-auto h-full [&::-webkit-scrollbar-track]:!bg-transparent ",children:y.map(e=>{var l,t,n,s;return(0,x.jsxs)("div",{className:"flex items-center gap-2",children:[(0,x.jsx)(eS._,{className:"w-8 inline",alt:null!=(t=null==e?void 0:e.detailName)?t:"",src:null!=(n=null==e||null==(s=e.staticDetailItem)||null==(s=s.art)?void 0:s.url)?n:""}),(0,x.jsx)("span",{children:(0,eB.kW)(e,"text")})]},null==e||null==(l=e.sys)?void 0:l.id)})}),(0,x.jsx)(tA,{className:"absolute top-0 right-0 p-2",children:(0,x.jsx)(ev.A,{className:"h-6 w-6"})})]})]})}var tz=t(31190),tY=t(45308),tJ=t.n(tY),tq=t(20925),tZ=t(98467);function tH(e){let{className:l}=e;return(0,x.jsx)(tA,{className:l,children:(0,x.jsx)(tr.A,{className:"h-7 text-white-80"})})}function tQ(e){var l,t,n,s,i,r,a,u;let m,{imageType:p,item:f,pkgVariant:j,marketingMessages:g,highlightFirstItem:y,shouldTileFlip:b,showCountdownWithStock:w,hideProductName:N,compact:k}=e,{t:C}=(0,tq.B)(),A=(0,o.use)(eL),O=ta(),_=lO(),I=ls(),S="transparent"===p,P=(0,o.useContext)(h.r),T=(0,eB.Qx)(f),D=!!T.length&&b,G=H(),B=(0,le.gZ)(),M=(null==G||null==(l=G.promotion)?void 0:l.end)&&(null==G||null==(t=G.promotion)?void 0:t.start)&&B<G.promotion.end&&B>G.promotion.start,E=T.find(e=>null==e?void 0:e.primary),V=null!=(n=null==T||null==(s=T.find(e=>null==e?void 0:e.primary))?void 0:s.previousAmount)?n:null,U=V&&(0,tZ.wk)(V);if(E){let e=String(null!=(a=E.quantity?E.quantity.toLocaleString():E.quantityText)?a:""),l=(null==(u=E.previousAmount)?void 0:u.toLocaleString())||"",t=(0,x.jsx)(tv,{maxFontSizeRem:1.25,as:"span",className:"text-center",children:e});m=M&&(0,x.jsxs)(x.Fragment,{children:[t,!!U&&(0,x.jsx)(tv,{as:"p",maxFontSizeRem:.75,className:"!font-normal text-center",children:C("previous-amount-chips",{amount:U.toLocaleString()})})]})||l&&(0,x.jsxs)(x.Fragment,{children:[t,(0,x.jsx)(tv,{as:"p",maxFontSizeRem:.75,className:(0,d.A)("line-through text-opacity-75 font-normal text-center",eC().strikeThrough),children:l})]})||t}let{getDynamicMarketingMessages:L}=(0,v.V)(),R=L(e9.k.tile),F=L(e9.k.aboveBuyButton,{items:(0,c.U)([f])}),[z]=ti({item:f}),Y=!!((null==g?void 0:g.length)||R.length);return(0,x.jsxs)(tC,{ref:z,flipAxis:"y",title:(null==f||null==(i=f.displayProductName)?void 0:i.text)||(null==f?void 0:f.title)||"","data-tile":k?tS.Us.AnimatedBoxartCompact:tS.Us.AnimatedBoxart,"data-testid":e8.Vy,"data-theme":P||"none","data-flip-overflow":D||void 0,className:"h-full w-full relative",children:[(0,x.jsxs)(tO,{className:(0,d.A)("flex flex-col !h-full items-center rounded-lg shadow-xnear",k?"gap-y-0.5":"gap-y-1",S&&(k?"px-2 py-1 md:py-1.5 [--mm-bleed:0.5rem]":"px-2 py-2 md:py-3 [--mm-bleed:0.5rem]"),e
1C().main),children:[(g||R)&&(0,x.jsx)(lT.J,{messages:(g||[]).concat(R)}),(0,x.jsx)(eS._,{onClick:A,sizes:"100vw",pictureClassName:(0,d.A)("w-full shrink-0",!S&&!k&&"pt-2"),className:(0,d.A)("mx-auto rounded-t-lg aspect-square object-contain max-w-20",{"w-full":S,"w-2/5":!S&&Y,"w-7/12":!S&&!Y}),src:(0,eG.VG)(null==f?void 0:f.boxart),alt:(0,eG.GT)(f)}),(0,x.jsxs)("section",{className:(0,d.A)("w-full h-full text-lg text-left break-spaces","flex flex-col items-center",k?"gap-y-0.5":"gap-y-2",!S&&(k?"px-2 pb-2":"px-2 pb-4")),children:[(0,x.jsx)("span",{className:(0,d.A)("align-bottom flex w-full min-w-0 flex-col items-center text-base !font-semibold",k&&"mt-auto",eC().title),children:m||!N&&((null==f||null==(r=f.displayProductName)?void 0:r.text)||(null==f?void 0:f.title))}),(null==f?void 0:f.longDescription)&&(0,x.jsx)("p",{className:(0,d.A)("text-body-s",!k&&"-mt-2",eC().description),children:null==f?void 0:f.longDescription}),(0,x.jsxs)("div",{className:(0,d.A)("flex flex-col items-center w-full",!k&&"mt-auto",k?"gap-y-0.5":"gap-y-2"),children:[(0,x.jsx)(ez.v,{type:j||"inline",items:T.filter(e=>!(null!=e&&e.primary)),highlightFirstItem:!!y,className:(0,d.A)("list"===j&&"flex-col !text-xs [&>button>picture>img]:!min-w-4 [&>button>picture>img]:!min-h-4 [&>button>picture>img]:!max-h-4 [&>button>picture>img]:!max-w-4 [&>button>picture>img]:!aspect-square","w-full flex justify-center [&>li>span]:!text-sm [&>li>span]:!font-bold [&>li>picture>img]:!min-h-4 [&>li>picture>img]:!max-h-4 [&>li>picture>img]:!min-w-4 [&>li>picture>img]:!max-w-4 [&>li>picture>img]:!aspect-square",k?"!p-0.5":"!p-1")}),(0,x.jsxs)(l9,{children:[!w&&(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l5,{showIcon:!0}),!w&&(0,x.jsx)(l1,{}),(0,x.jsx)(l2,{showIcon:!0}),(0,x.jsx)(l8,{})]}),(0,x.jsxs)("div",{className:(0,d.A)("flex flex-col w-full break-normal content-center",k?"gap-y-0.5":"gap-y-2"),children:[!!F.length&&(0,x.jsx)(lT.J,{messages:F,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),O?(0,x.jsx)(lk,{}):(0,x.jsxs)(lC,{className:(0,d.A)("break-all w-full px-0 !font-secondary !text-base",k?"!py-0.5":"!py-1"),disabled:I,onClick:_,children:[(0,x.jsx)(lb,{}),(0,x.jsx)(lw,{}),(0,x.jsx)(lN,{}),(0,x.jsx)(tn,{})]})]}),w&&(0,x.jsx)("div",{className:"flex justify-center w-full",children:(0,x.jsx)(lm,{daysHoursOnly:!0})})]})]}),D&&(0,x.jsx)(tH,{className:"absolute top-1 right-1"})]}),(0,x.jsxs)(t_,{className:(0,d.A)("relative rounded-lg p-2 overflow-hidden h-full",lG().main),children:[(0,x.jsx)("div",{className:"space-y-2 overflow-y-auto flex flex-col justify-center break-all h-full [&::-webkit-scrollbar-track]:!bg-transparent",children:T.map(e=>{var l,t,n,s;return(0,x.jsxs)("div",{className:"flex items-center gap-2 bg-white-30 w-full p-1.5 text-sm",children:[(0,x.jsx)(eS._,{className:"w-4 inline",alt:null!=(t=null==e?void 0:e.detailName)?t:"",src:null!=(n=null==e||null==(s=e.staticDetailItem)||null==(s=s.art)?void 0:s.url)?n:""}),(0,x.jsx)(tv,{as:"span",maxFontSizeRem:1,children:(0,eB.kW)(e,"text")})]},null==e||null==(l=e.sys)?void 0:l.id)})}),(0,x.jsx)(tA,{className:"absolute top-0 right-0 p-2",children:(0,x.jsx)(ev.A,{className:"h-4 w-4"})})]})]})}function tW(e,l){return(0,x.jsx)("div",{"data-testid":"all-in-one-stage",className:(0,d.A)(tJ().stage,"relative z-[1] pt-0 pb-0"),children:(0,x.jsx)(tz.Y,{showControlsOn:"none",align:"start",slidesInView:{default:Math.min(2.1,l),sm:Math.min(3.3,l)},gap:{default:"1rem"},containScroll:"trimSnaps",disableDragWhenStatic:!0,viewportClassName:tJ().carouselInset,children:e})})}var t$=t(98541),tK=t(53010);function tX(e){var l,t,n,s;let{pkgVariant:i}=e,r=(0,m.H)(),a=H(),{t:o}=(0,j.Bd)(),u=(0,eB.Qx)(r),p=lO(),f=ls(),{getDynamicMarketingMessages:v}=(0,e9.V)(),h=v(e9.k.aboveBuyButton,{items:(0,c.U)([r])}),g=a&&(null!=(l=null==a?void 0:a.promoLimitCount)?l:1)-(null!=(t=null==a?void 0:a.promoLimitUsed)?t:0)==0;return(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:"text-title mt-2 pb-1",children:(0,x.jsx)("p",{children:null!=(n=null==r||null==(s=r.displayProductName)?void 0:s.text)?n:null==r?void 0:r.title})}),(0,x.jsxs)("div",{className:(0,d.A)("w-full flex-col h-auto p-2 rounded-lg text-body-s [&::-webkit-scrollbar-track]:!bg-transparent flex",eC().tileGroupContent),children:[(null==r?void 0:r.longDescription)&&(0,x.jsx)("p",{className:"text-body-s","data-testid":null,children:null==r?void 0:r.longDescription}),(0,x.jsx)("div",{className:"flex flex-col [&>ul]:overflow-y-auto mb-2",children:(0,x.jsx)(tK.v,{type:i||"grid",
1items:u,className:"max-h-[12rem] lg:max-h-[11.5rem]"})}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-1",children:[!!h.length&&(0,x.jsx)(t$.J,{messages:h,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),g?(0,x.jsxs)("div",{className:"flex gap-y-2 w-full font-bold text-sm",children:[(0,x.jsx)(lj.A,{className:"me-1 w-4 h-4"}),o("claimed")]}):(0,x.jsxs)(lC,{disabled:f,onClick:p,children:[(0,x.jsx)(lw,{}),(0,x.jsx)(tn,{})]})]})]})]})}var t0=t(5758),t1=t(83436);function t2(e){var l,t,n,s,i,r,a,u;let{isOpen:c,requestClose:p}=e,f=(0,m.H)(),v=H(),j=lO(),g=null!=(l=null==f?void 0:f.lootContents)?l:{},y=(0,o.useContext)(h.r),b=null!=(t=null==(n=g.drops)?void 0:n.filter(e=>(null==e?void 0:e.image)&&(null==e?void 0:e.name)).sort((e,l)=>{var t,n;let s=null!=(t=null==e?void 0:e.dropRate)?t:0,i=null!=(n=null==l?void 0:l.dropRate)?n:0;return s>i?1:i>s?-1:0}))?t:[];return(0,x.jsx)(eb.lG,{onOpenChange:p,open:c,children:(0,x.jsxs)(t1.C,{"data-theme":y||"none",className:(0,d.A)(lG().popup,"flex flex-col gap-6 flex-grow p-8"),children:[(0,x.jsx)("h1",{className:"text-headline-l",children:null!=(s=null==f||null==(i=f.displayProductName)?void 0:i.text)?s:null==f?void 0:f.title}),(0,x.jsx)("p",{children:(0,x.jsx)(eZ.$,{className:(0,d.A)("text-body-s","whitespace-pre-wrap prose-p:my-2 prose-strong:text-text-primary text-text-primary max-w-full prose prose-a:type-link hover:prose-a:type-link-hover prose-headings:text-text-primary prose-li:-my-1","prose-ul:my-0 prose-ol:my-0 prose-blockquote:leading-3 prose-blockquote:my-0 prose-blockquote:text-text-primary"),children:null==(r=g.ui)?void 0:r.description})}),(0,x.jsxs)("section",{className:"flex flex-col gap-10",children:[null==(a=g.groups)?void 0:a.map(e=>(0,x.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,x.jsx)("h2",{className:"text-headline-m",children:null==e?void 0:e.title}),(0,x.jsx)("div",{className:"grid grid-cols-4 xl:grid-cols-5 gap-4",children:b.filter(l=>(null==l?void 0:l.group)===(null==e?void 0:e.id)).map(e=>(0,x.jsxs)("div",{className:"flex flex-col items-center min-h-[6rem]",children:[(0,x.jsx)(eS._,{title:null==e?void 0:e.name,alt:null==e?void 0:e.name,src:null==e?void 0:e.image}),(0,x.jsxs)("span",{className:"font-bold",children:[null==e?void 0:e.dropRate,"%"]})]},null==e?void 0:e.name))})]},null==e?void 0:e.id)),(0,x.jsx)("p",{className:"whitespace-pre-wrap",children:null==(u=g.ui)?void 0:u.footer})]}),v&&(0,x.jsx)("div",{className:"mt-auto",children:(0,x.jsx)(lC,{onClick:e=>{p(),j(e)}})})]})})}function t5(e){let{children:l}=e,t=(0,m.H)(),{0:n,1:s}=(0,o.useState)(!1);return null!=t&&t.lootContents?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("button",{className:"align-top -me-[100%]",type:"button","data-testid":e8.Yk,onClick:()=>s(!0),children:l}),(0,x.jsx)(t2,{isOpen:n,requestClose:()=>s(!1)})]}):null}function t4(e){var l,t,n,s,i;let{imageType:r,item:a,pkgVariant:u,marketingMessages:m,highlightFirstItem:p,showCountdownWithStock:f}=e,g=(0,o.use)(eL),y=ta(),b=lO(),w=ls(),N="transparent"===r,k=(0,o.useContext)(h.r),{t:C}=(0,j.Bd)(),{getDynamicMarketingMessages:A}=(0,v.V)(),O=(0,eB.Qx)(a),_=null!=(l=null==O||null==(t=O.find(e=>null==e?void 0:e.primary))?void 0:t.previousAmount)?l:null,I=_&&(0,tZ.wk)(_),S=O.find(eB.Dn),P="boxed"===u&&(null==S||null==(n=S.quantity)?void 0:n.toLocaleString()),T="grid-centered"===u,D=A(e9.k.tile),G=A(e9.k.aboveBuyButton,{items:(0,c.U)([a])}),B=(0,t0.W)(),[M]=ti({item:a});return(0,x.jsxs)("div",{ref:M,title:(null==a||null==(s=a.displayProductName)?void 0:s.text)||(null==a?void 0:a.title)||"","data-tile":tS.Us.BoxartLegacy,"data-testid":e8.Vy,"data-theme":k||"none",className:(0,d.A)("rounded-lg h-full w-full shadow-xnear relative",N&&"p-2 md:p-4",eC().main),children:[(m||D)&&(0,x.jsx)(lT.J,{messages:(m||[]).concat(D)}),(0,x.jsxs)("div",{className:(0,d.A)("flex flex-col gap-y-2 h-full"),children:[(0,x.jsx)(eS._,{onClick:g,sizes:"50vw md:20vw lg:17vw",className:(0,d.A)("w-full rounded-t-lg",N?"object-contain aspect-[1/1]":"square"===r?"aspect-square":"aspect-[1/1.4]"),src:(0,eG.VG)(null==a?void 0:a.boxart),alt:(0,eG.GT)(a)}),(0,x.jsxs)("section",{className:(0,d.A)("w-full h-full text-body-s break-spaces","flex flex-col items-start gap-y-2",!N&&"px-4 pb-4",B?"text-right":"text-left"),children:[(0,x.jsxs)("span",{className:(0,d.A)("align-bottom inline-block text-body-m font-bold",eC().title,P&&"break-all",T?"self-center text-center":"self-start text-left"),children:[P||(null==a||null==(i=a.displayProductName)?void 0:i.text)||(null==a?void 0:a.title),(0,x.jsx)(t5,{children:(0,x.jsx)(tr.A,{})})]}),!!I&&(0,x.jsx)("span",{className:"text-body-s",children:C("previous-amount-chips",{amount:I.toLocaleStr
1ing()})}),(null==a?void 0:a.longDescription)&&(0,x.jsx)("p",{className:(0,d.A)("text-body-s -mt-2",eC().description),children:null==a?void 0:a.longDescription}),(0,x.jsx)(ez.v,{type:u||"inline",items:O,highlightFirstItem:!!p}),(0,x.jsxs)(l9,{children:[!f&&(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l5,{showIcon:!0}),!f&&(0,x.jsx)(l1,{}),(0,x.jsx)(l2,{showIcon:!0}),(0,x.jsx)(l8,{})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto w-full break-normal",children:[!!G.length&&(0,x.jsx)(lT.J,{messages:G,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),y?(0,x.jsx)(lk,{}):(0,x.jsxs)(lC,{className:"break-all min-[320px]:min-w-max w-full px-0",disabled:w,onClick:b,children:[(0,x.jsx)(lb,{}),(0,x.jsx)(lw,{}),(0,x.jsx)(lN,{}),(0,x.jsx)(tn,{})]})]}),f&&(0,x.jsx)("div",{className:"flex justify-center w-full",children:(0,x.jsx)(lm,{daysHoursOnly:!0})})]})]})]})}var t3=t(41746),t7=t(82963),t6=t(56787),t8=t(28988),t9=t(14401),ne=t(68759),nl=t(50388);let nt=["className","children"];function nn(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function ns(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?nn(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nn(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}function ni(e){if("gregory"===e)return new t8.FG;throw Error("Only Gregorian Calendars are supported")}function nr(e){let{className:l,children:t}=e,n=(0,e6.A)(e,nt),s=(0,nl.T)(ns(ns({},n),{},{createCalendar:ni})),{calendarProps:i}=(0,ne._)(n,s);return(0,x.jsx)("div",ns(ns({},i),{},{className:l,"data-disabled":s.isDisabled||void 0,"data-invalid":s.isValueInvalid||void 0,children:(0,x.jsx)(t9.Yi.Provider,{value:n,children:(0,x.jsx)(t9.f2.Provider,{value:s,children:t})})}))}let na=["minValue","maxValue","children","timeZone","locale"];function no(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function nd(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?no(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):no(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}function nu(e){let{minValue:l,maxValue:t,children:n,timeZone:s,locale:i="en"}=e,r=(0,e6.A)(e,na),a=null===s?Intl.DateTimeFormat("en-US").resolvedOptions().timeZoneName:s,o=l.substring(0,23),d=t.substring(0,23),u=(0,t3.LG)("".concat(o,"[").concat(a,"]")),c=(0,t3.LG)("".concat(d,"[").concat(a,"]"));return(0,t6.A)(c.compare(u)>0||(0,t7.ro)(c,u),'"maxValue" must after "minValue"'),(0,x.jsx)(nr,nd(nd({locale:i,value:u,minValue:u,maxValue:c,isReadOnly:!0},r),{},{children:n}))}var nc=t(68609),nm=t(18589);let nx=["date","children","className"];function np(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function nf(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?np(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):np(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}let nv=(0,o.forwardRef)((e,l)=>{let{date:t,children:n,className:s}=e,i=(0,e6.A)(e,nx),r=(0,o.useContext)(t9.f2);(0,t6.A)(r&&r.minValue&&r.timeZone,'<Calendar /> requires "minValue", including a timezone');let a=(0,o.useRef)(null),{cellProps:d}=(0,nm.E)({date:t}
1,r,a),u=(0,t7.Ec)(r.timeZone),c=(0,t7.ro)(u,t),m={"data-past":!c&&0>t.compare(u)||void 0,"data-today":c||void 0,"data-outside-month":!(0,t7.tF)(u,t)||void 0};return Object.entries(i).forEach(e=>{let[l,t]=e;l.startsWith("data-")&&null!=t&&("string"==typeof t||"boolean"==typeof t)&&(m[l]=t)}),(0,x.jsx)("td",nf(nf({},d),{},{ref:l,children:(0,x.jsx)("div",nf(nf({},(0,nc.v)(m,{className:s})),{},{ref:a,children:n?(0,x.jsx)(x.Fragment,{children:n}):(0,x.jsx)(x.Fragment,{children:t.day})}))}))});var nh=t(71695),nj=t(84333);let ng=["className","weekLength","children"];function ny(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function nb(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?ny(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ny(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}function nw(e){let{className:l,weekLength:t=7,children:n}=e,s=(0,e6.A)(e,ng),i=(0,o.useContext)(t9.f2);(0,t6.A)(i&&!!i.minValue&&!!i.maxValue&&!!i.timeZone,"Weekly Calendars must have a `minValue` and `maxValue`");let{gridProps:r}=(0,nj.g)(s,i),a=[],d=i.minValue.copy();for(;0>d.compare(i.maxValue);)a.push(d),d=d.add({days:1});a.push(i.maxValue);let u=[];for(let e=0;e<a.length;e+=t)u.push(a.slice(e,e+t));return(0,x.jsx)("table",nb(nb({},(0,nc.v)(r,{className:l})),{},{children:(0,x.jsx)("tbody",{children:u.map((e,l)=>(0,x.jsx)("tr",{children:e.map((e,l)=>e?(0,o.cloneElement)(n((0,nh.gw)(e),e),{key:l}):(0,x.jsx)("td",{},l))},l))})}))}function nN(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function nk(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?nN(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nN(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}let nC=e=>(0,x.jsxs)("svg",nk(nk({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:[(0,x.jsx)("path",{fill:"currentColor",d:"M10.968 10.318h.313c.192 0 .348.025.469.074.12.05.208.121.263.214a.595.595 0 0 1 .082.321.79.79 0 0 1-.107.436.624.624 0 0 1-.296.23c-.12.045-.263.067-.428.067h-.296v-1.342Z"}),(0,x.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.192 6.8h17.003c.38 0 .772.148 1.063.439.291.291.44.672.434 1.058v7.406c.005.386-.143.767-.434 1.058-.29.29-.671.439-1.052.439H5.203a1.49 1.49 0 0 1-1.064-.44L.436 13.059a1.5 1.5 0 0 1 0-2.116L4.14 7.239c.291-.29.672-.439 1.053-.439Zm-2.904 5.994a1.12 1.12 0 0 0 1.587 0 1.12 1.12 0 0 0 0-1.588 1.12 1.12 0 0 0-1.587 0 1.12 1.12 0 0 0 0 1.588Zm3.067 2.198H6.92v-2.205h1.76v-1.276H6.92v-1.119h1.909V9.117H5.355v5.875Zm7.275-5.678c-.35-.131-.793-.197-1.325-.197H9.38v5.875h1.588v-2.14h.403l1.243 2.14h1.802l-1.712-2.559a2.24 2.24 0 0 0 .535-.403 1.676 1.676 0 0 0 .461-1.177c0-.384-.09-.702-.271-.954-.176-.258-.442-.453-.799-.585Zm5.397 5.678h-3.49V9.117h3.49v1.275h-1.901v.922h1.76v1.275h-1.76V13.7h1.9v1.293Zm.615 0h3.49V13.7H20.23v-1.11h1.76v-1.276h-1.76v-.922h1.9V9.117h-3.489v5.875Z",clipRule:"evenodd"})]}));function nA(e){let{children:l}=e,t=(0,o.useContext)(h.r)||"none";return(0,x.jsx)(lv.AM,{style:{zIndex:10},className:(0,d.A)("data-[entering]:animate-appear data-[exiting]:animate-disappear","p-5 rounded flex items-center justify-start shadow-near",lG().popup),"data-theme":t,children:l})}function nO(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function n_(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};
1l%2?nO(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nO(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}let nI=e=>(0,x.jsx)("svg",n_(n_({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,x.jsx)("path",{fill:"currentColor",d:"M10.435.501a.5.5 0 0 1 .854-.353l11.84 11.84-11.84 11.843a.5.5 0 0 1-.854-.354V18.5H1.5A.5.5 0 0 1 1 18V6a.5.5 0 0 1 .5-.5h8.935V.501Z"})}));function nS(e){let{timeout:l,onDone:t,children:n}=e,{0:s,1:i}=(0,o.useState)(!1),r=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(r.current=!1,i(!1),!l||l<=0)return;let e=window.setTimeout(()=>{i(!0)},l);return()=>window.clearTimeout(e)},[l]),(0,o.useEffect)(()=>{s&&t&&!r.current&&(r.current=!0,t())},[s,t]),(0,x.jsx)(o.Fragment,{children:n},"timeout-".concat(s))}function nP(e){var l,t;let{allClaimed:n,releaseDate:s,displayItem:i,claimed:r,total:a}=e,{t:o}=(0,tq.B)(),u=s>(0,le.gZ)(),c=s<=(0,le.gZ)();return(0,x.jsxs)("div",{"data-testid":"EndlessBanner",className:(0,d.A)(" w-full px-4 py-2 flex flex-row",(n||u)&&"items-center justify-center",!n&&c&&"justify-between",n?eC().bannerClaimed:eC().banner),children:[n&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(lj.A,{className:"me-1"}),(0,x.jsx)("span",{"data-testid":"all-deals-claimed",children:o("all-deals-claimed")})]}),!n&&c&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{children:o("endless-banner-text",{claimed:r,total:a})}),(0,x.jsx)(m.px,{value:i,children:(0,x.jsx)(l9,{children:(0,x.jsx)(l7,{showIcon:!0,className:(0,d.A)(eC().banner)})})},null==i||null==(l=i.sys)?void 0:l.id)]}),!n&&u&&(0,x.jsx)(m.px,{value:i,children:(0,x.jsx)(l9,{children:(0,x.jsx)(l4,{showIcon:!0,className:(0,d.A)(eC().banner),releaseDate:s})})},null==i||null==(t=i.sys)?void 0:t.id)]})}function nT(){let{t:e}=(0,tq.B)(),l=lO();return(0,x.jsxs)("div",{"data-testid":"EndlessTileUnreleasedItem",className:(0,d.A)(eC().tileGroupContent,"relative flex flex-col justify-between p-2 rounded-lg text-body-s"),children:[(0,x.jsx)("p",{className:"text-body-s m-4 flex text-center",children:e("content-offer-revealed-soon")}),(0,x.jsx)(lC,{onClick:l,disabled:!0,children:(0,x.jsx)(ly,{})})]})}function nD(e){var l,t,n,s,i,r,a;let{tileItems:o,releaseDate:u,tileGroup:c}=e,m=(0,M.YY)(),[p,f]=ti({tileGroup:c,tileItems:o}),v=nG(o,m),h=nB(v,m),j=nM(h,m),g=nE(h,j,Math.min(o.length,6)),y=nR(h,j),{animate:b,arrowsAppear:w,startAnimation:N}=(0,L.wm)(f,(null==y||null==(l=y.product)?void 0:l.externalId)||"");y&&b&&(g=[y,...g]);let k=nV(g);if(0===v.length)return null;let C=null!=(t=null==m||null==(n=m[(null==o||null==(s=o[0])||null==(s=s.sys)?void 0:s.id)||""])||null==(n=n[0])||null==(n=n.inGroup)?void 0:n.groupUsedCount)?t:0,A=null!=(i=null==m||null==(r=m[(null==o||null==(a=o[0])||null==(a=a.sys)?void 0:a.id)||""])||null==(r=r[0])||null==(r=r.inGroup)?void 0:r.groupSkusCount)?i:0;return(0,x.jsxs)("div",{ref:p,"data-testid":e8.MT,children:[(0,x.jsx)("div",{className:(0,d.A)("h-fit w-[calc(100%+2rem)] flex items-center justify-center text-xs font-bold uppercase mb-2 -ms-4",eC().banner),children:(0,x.jsx)(nS,{timeout:(null!=u?u:0)>=(0,le.gZ)()?(null!=u?u:0)-(0,le.gZ)():0,children:(0,x.jsx)(nP,{allClaimed:0!==C&&0!==A&&C===A,releaseDate:null!=u?u:0,displayItem:null==k?void 0:k[0],claimed:C,total:A})},u)}),(0,x.jsx)("div",{"data-testid":"EndlessEventTileItems",className:"relative grid grid-cols-2 grid-rows-[repeat(3,1fr)] gap-x-3 gap-y-3",children:k.map((e,l)=>{var t;return(0,x.jsx)(nH,{animate:b,arrowsAppear:w,displayItemsLength:k.length,index:l,item:e,startAnimation:N,tileGroup:c,visibleItems:g,releaseDate:u},null==e||null==(t=e.sys)?void 0:t.id)})})]})}let nG=(e,l)=>e.filter(e=>{var t,n;return!!(null!=l&&null!=(t=l[(null==e||null==(n=e.sys)?void 0:n.id)||""])&&t[0])}),nB=(e,l)=>e.sort((e,t)=>{var n,s,i,r;return((null==l||null==(n=l[(null==e||null==(s=e.sys)?void 0:s.id)||""])||null==(n=n[0])||null==(n=n.inGroup)?void 0:n.orderInGroup)||0)-((null==l||null==(i=l[(null==t||null==(r=t.sys)?void 0:r.id)||""])||null==(i=i[0])||null==(i=i.inGroup)?void 0:i.orderInGroup)||0)}),nM=(e,l)=>{let t=e.findIndex(e=>{var t,n;return(null==l||null==(t=l[(null==e||null==(n=e.sys)?void 0:n.id)||""])||null==(t=t[0])?void 0:t.purchaseState)===O.purchasable});return t>=0?t:0},nE=(e,l,t)=>{if(0===e.length)return[];let n=[];for(let s=0;s<Math.min(t,e.length);s+=1){let t=(l+s)%e.length;n.push(e[t])}return n},nV=e=>{let l=[];for(let t=0;t<e.length;t+=4){let n=e.slice(t,t+4),s=[,,,,];
1s[0]=n[0],s[1]=n[1],s[2]=n[3],s[3]=n[2],l.push(...s.filter(Boolean))}return l},nU=[1,1,2,0],nL=(e,l)=>{let t=e%4;return e-t+3<l?e+nU[t]:e+1},nR=(e,l)=>0===l?e[e.length-1]:e[l-1],nF={0:"right",1:"down",2:"down",3:"left"},nz={0:"down",1:"right",2:"left",3:"down"},nY=["animate-endless-disappear","animate-sliding-left","animate-sliding-right","animate-sliding-up","animate-sliding-up","animate-sliding-left","animate-endless-appear"],nJ={0:"EndlessItemAnimate-1",1:"EndlessItemAnimate-3",2:"EndlessItemAnimate-4",3:"EndlessItemAnimate-2",4:"EndlessItemAnimate-5",5:"EndlessItemAnimate-6"};function nq(e){let{direction:l,imageUrl:t,isRTL:n}=e,{0:s,1:i}=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=requestAnimationFrame(()=>i(!0));return()=>cancelAnimationFrame(e)},[]);let r={right:"top-1/2 left-[calc(100%+0.25rem)]",left:"top-1/2 right-[calc(100%-1.25rem)]",down:"left-1/2 top-[calc(100%+0.25rem)]"},a=l;n&&"right"===l?a="left":n&&"left"===l&&(a="right");let u={right:n?"rotate-180":"rotate-0",left:n?"rotate-0":"rotate-180",down:"rotate-90"},c=s?"opacity-100":"opacity-0";return t?(0,x.jsx)(eS._,{sizes:"24px",src:t,alt:"Arrow ".concat(l),className:(0,d.A)("absolute -translate-x-1/2 -translate-y-1/2 z-10 w-6","transition-opacity duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",c,r[a],u[l])}):(0,x.jsx)(nI,{className:(0,d.A)(eC().arrow,"absolute -translate-x-1/2 -translate-y-1/2 z-10 h-6 w-6","transition-opacity duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",c,u[l],r[a])})}function nZ(e){var l,t,n,s,i;let{releaseDate:r}=e,a=(0,m.H)(),o=H(),u=(0,eB.Qx)(a),p=lO(),f=ls(),{getDynamicMarketingMessages:v}=(0,e9.V)(),h=v(e9.k.aboveBuyButton,{items:(0,c.U)([a])}),{t:g}=(0,j.Bd)(),y=(null==o||null==(l=o.promotion)?void 0:l.reason)===ee.$J.ClaimGiftOnce||(null==o||null==(t=o.offerTags)?void 0:t.includes(A.FreeItem))||(null==o?void 0:o.externalSiteLink),b=(null==o?void 0:o.purchaseState)===O.purchasable,w=o&&(null!=(n=null==o?void 0:o.promoLimitCount)?n:1)-(null!=(s=null==o?void 0:o.promoLimitUsed)?s:0)==0;return r&&r>(0,le.gZ)()?(0,x.jsx)(nT,{}):(0,x.jsxs)("div",{className:(0,d.A)(b&&eC().tileItemActive,(null==o?void 0:o.purchaseState)===O.owned&&eC().tileItemClaimed,eC().tileGroupContent,"relative h-full flex flex-col justify-between p-2 rounded-lg text-body-s"),children:[(null==o?void 0:o.purchaseState)===O.purchasable&&(0,x.jsx)("div",{className:"absolute w-full h-full left-0 flex top-[calc(40%)] justify-center",children:(0,x.jsx)("div",{className:(0,d.A)("w-px h-px",eC().tileItemGlow)})}),u.length>0&&(0,x.jsx)(ez.v,{type:"grid",items:u,isSingleItemLayout:!0,ignorePalette:!0,hideMarketingMessages:!0}),(0,x.jsxs)("div",{className:"flex flex-col w-full",children:[!!h.length&&(0,x.jsx)(t$.J,{messages:h,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),w?(0,x.jsxs)("div",{className:(0,d.A)(eC().claimed,"flex gap-y-2 w-full font-bold text-base items-center justify-center p-2"),children:[(0,x.jsx)(lj.A,{className:"me-1 w-4 h-4"}),g("claimed")]}):(0,x.jsx)(lC,{className:(0,d.A)(y&&b&&eC().secondaryButton),onClick:p,disabled:f,children:(0,x.jsxs)("div",{className:"flex flex-row flex-wrap justify-center items-center gap-1",children:[f&&(0,x.jsx)(ly,{}),(0,x.jsx)(lw,{freeText:g("free")}),(0,x.jsx)(tn,{})]})})]})]},null==a||null==(i=a.sys)?void 0:i.id)}function nH(e){var l,t,n,s,i,r,a,o;let{item:u,index:c,tileGroup:p,animate:f,arrowsAppear:v,startAnimation:h,displayItemsLength:j,visibleItems:g,releaseDate:y=0}=e,b=(0,t0.W)(),w=(0,M.YY)();return(0,x.jsx)(m.px,{value:u,children:(0,x.jsx)(e7,{children:(0,x.jsxs)("div",{"data-testid":"EndlessItemTile-".concat(null==u||null==(t=u.sys)?void 0:t.id),onAnimationEnd:()=>{var e;return((e,l)=>{if(!e)return;let t=document.getElementById("".concat(e,"-").concat(l));t&&t.classList.add(eC().endlessAnimationRunning)})(nJ[c],(null==(e=p.sys)?void 0:e.id)||"")},style:{"--shift-x":b?"calc(-100% - 0.75rem)":"calc(100% + 0.75rem)","--shift-y":"calc(100% + 0.75rem)","--animation-duration":"".concat(L.yj,"ms"),zIndex:j-c+(null!=(n=[0,0,-1,1][c%4])?n:0)},id:"EndlessItemAnimate-".concat(c,"-").concat((null==(s=p.sys)?void 0:s.id)||""),className:(0,d.A)(eC().endlessAnimatedItem,"h-full flex flex-col grid-flow-row",c%2==0?"col-start-1":"col-start-2",5===c&&f&&"row-start-3 col-start-2",6===c&&f&&"row-start-3 !col-start-2",f&&nY[c],f&&0===c&&"pointer-events-none",h&&0===c?eC().endlessAnimationRunning:eC().endlessAnimationPaused),children:[y?(0,x.jsx)(nS,{timeout:(null!=y?y:0)>=(0,le.gZ)()?(null!=y?y:0)-(0,le.gZ)():0,children:(0,x.jsx)(nZ,{releaseDate:y}
1)},y):(0,x.jsx)(nZ,{}),(!f||v)&&!!(null!=g&&g[nL(c,g.length)])&&(r=null==g?void 0:g[nL(c,g.length)],(null==w||null==(a=w[(null==r||null==(o=r.sys)?void 0:o.id)||""])||null==(a=a[0])?void 0:a.purchaseState)!==O.owned)&&(0,x.jsx)(nq,{direction:f?nz[c%4]:nF[c%4],imageUrl:(null==p||null==(i=p.arrow)?void 0:i.url)||"",isRTL:b})]})})},null==u||null==(l=u.sys)?void 0:l.id)}var nQ=t(20861);function nW(e){var l;let{releaseDate:t,isActiveTab:n,onClick:s,tileGroup:i}=e,r=(null!=t?t:0)>(0,le.gZ)();return(0,x.jsx)("button",{type:"button",className:(0,d.A)("w-12 rounded",n&&eC().tab),onClick:()=>s(),children:(null==(l=i.icon)?void 0:l.url)&&(0,x.jsx)(eS._,{sizes:"48px",className:(0,d.A)("w-12 p-0.5",!r&&"drop-shadow-[0_0_4px_rgb(255_255_255/.8)]",r&&"grayscale contrast-75 brightness-75"),alt:i.icon.title||"Tab",src:i.icon.url})})}function n$(e){var l,t,n;let{item:s,pkgVariant:i,marketingMessages:r,paletteId:a}=e,o=H(),{user:u}=(0,K.J)(),m=(null==o?void 0:o.purchaseState)===O.unavailable,p=(null!=(l=null==o?void 0:o.releaseDate)?l:0)>(0,le.gZ)(),f=lO(),{t:h}=(0,j.Bd)(),g=(0,eB.Qx)(s),{getDynamicMarketingMessages:y}=(0,v.V)(),b=y(e9.k.aboveBuyButton,{items:(0,c.U)([s])});r&&0===b.length&&(b=r);let w=!!u&&o&&(null!=(t=null==o?void 0:o.promoLimitCount)?t:1)-(null!=(n=null==o?void 0:o.promoLimitUsed)?n:0)==0;return(0,x.jsxs)("div",{"data-testid":e8.XH,"data-theme":a||"none",className:(0,d.A)("w-full flex-col h-auto p-2 rounded-lg text-body-s [&::-webkit-scrollbar-track]:!bg-transparent flex",eC().tileGroupContent),children:[(null==s?void 0:s.longDescription)&&(0,x.jsx)("p",{className:"text-body-s","data-testid":null,children:null==s?void 0:s.longDescription}),(0,x.jsx)("div",{className:"flex flex-col [&>ul]:overflow-y-auto mb-2",children:p?(0,x.jsx)("p",{className:"text-body-s m-4",children:h("content-offer-revealed-soon")}):(0,x.jsx)(ez.v,{type:i||"list",className:"max-h-[10.5rem] bg-transparent shadow-none",items:g})}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-1 px-2",children:[!!b.length&&(0,x.jsx)(lT.J,{className:"relative !left-0 mb-1",messages:b}),(0,x.jsx)(tI,{}),w?(0,x.jsxs)("div",{className:"flex gap-y-2 w-full font-bold text-sm",children:[(0,x.jsx)(lj.A,{className:"me-1 w-4 h-4"}),h("claimed")]}):(0,x.jsxs)(x.Fragment,{children:[m&&(0,x.jsx)("p",{className:"text-body-s font-bold mb-1",children:h("currently-unavailable")}),(0,x.jsx)(lC,{disabled:p||m,onClick:f,children:p?(0,x.jsx)(ly,{}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(lw,{}),(0,x.jsx)(tn,{})]})})]}),(0,x.jsxs)(l9,{children:[(0,x.jsx)(l4,{showIcon:!0}),!p&&(0,x.jsx)(l7,{showIcon:!0}),!p&&(0,x.jsx)(l1,{}),!p&&(0,x.jsx)(l8,{})]})]})]})}var nK=t(10925);function nX(){var e;let l=(0,o.use)(eL),t=(0,o.use)(h.r),{captureStreakPaletteId:n}=eD(),s=H(),{user:i}=(0,K.J)(),r=null==s?void 0:s.inGroup,a=(null!=(e=null==r?void 0:r.orderInGroup)?e:0)+1,d=s&&(null==r?void 0:r.state),u=d===O.purchasable,c=d===O.owned,m=d===O.hidden,x=d===O.unclaimable;return{sku:s,orderInGroup:a,user:i,isAvailable:u,isClaimed:c,isMissedState:m||x,isLocked:d===O.unavailable,handleClick:e=>{if(e){let e=(null==r?void 0:r.orderInGroup)!==void 0?r.orderInGroup+1:void 0;(0,eo.UC)(eo.It.DAILY_STREAK,e)}else(0,eo.UC)(eo.It.NOT_LOGGED_IN);n(t),l({dailyStreakVariant:"v2"})}}}function n0(){var e;let l=H(),t=(0,M.YY)(),n=(0,o.useRef)(null),s=null==l||null==(e=l.inGroup)?void 0:e.groupId;return(0,o.useEffect)(()=>{if(!s)return;let e=(0,le.gZ)();if(Object.values(t||{}).flat().filter(l=>{var t;let{start:n=1/0,end:i=0}=(null==l?void 0:l.promotion)||{};return(null==l||null==(t=l.inGroup)?void 0:t.groupId)===s&&n<e&&i>e}).reduce((e,l)=>{var t,n,s,i;return(null!=(t=null==l||null==(n=l.promotion)?void 0:n.end)?t:1/0)<(null!=(s=null==e||null==(i=e.promotion)?void 0:i.end)?s:1/0)?l:e},void 0)===l){var i;null==(i=n.current)||i.scrollIntoView({block:"center",behavior:"smooth"})}},[s]),n}let n1="inline-block not-italic leading-none tracking-normal normal-case antialiased";function n2(){return(0,x.jsxs)("span",{className:"inline-flex items-center gap-0.5",children:[(0,x.jsx)(lV.A,{className:(0,d.A)("shrink-0",eN().dayCountdownIcon),"aria-hidden":!0}),(0,x.jsx)(lH,{daysHoursOnly:!0})]})}function n5(e){let{targetMs:l,event:t,children:n}=e,s=(0,o.useContext)(lW);return(0,x.jsx)(lu,{endDate:l,onDone:()=>null==s?void 0:s(t),children:(0,x.jsx)("span",{className:(0,d.A)("inline-flex items-center gap-0.5 leading-none whitespace-nowrap",eN().dayCountdown),"data-testid":e8.K,children:n})})}function n4(e){var l;let{active:t,locked:n=!1,startDate:s,endDate:i}=e,r=H(),a=null==r||null==(l=r.offerTagsArray)?void 0:l.includes(A.HideCountdown);return t&&i&&!a?(0,x.jsxs)(n5,{targetMs:(0,le.cW)(i),event:"daily-streak-active",children:[(0,x.jsx)(lV.A,{className:(0,d.A)("shrink-0",eN().dayCountdownIcon),"aria-hidden":!0}),(0,x.jsx)("span",{className:"inline-flex items-center leading-none tracking-normal tabular-nums uppercase",children:(0,x.jsx)(lH,{daysHoursOnly:!0})})]}):n&&s?(0,x.jsx)(n5,{targetMs:(0,le.cW)(s),event:"daily-streak-unlock",children:(0,x.jsx)("span",{className:"inline-flex items-center gap-0.5 leading-none tracking-normal tabular-nums uppercase",children:(0,x.jsxs)(j.x6,{i18nKey:"unlocks-in",children:["Unlocks in",(0,x.jsx)(n2,{})]})})}):null}function n3(e){let{orderInGroup:l,active:t,locked:n,startDate:s,endDate:i}=e,{t:r}=(0,j.Bd)();return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"relative pt-5 px-3 pb-1 text-center",children:(0,x.jsx)("span",{className:(0,d.A)(n1,eN().dayCounterTitle),children:r("static-daily-streak-day-title",{day:l,defaultValue:"Day {{day}}"})})}),(0,x.jsx)("div",{className:"flex justify-end px-3 pb-1.5 min-h-4",children:(0,x.jsx)(n4,{active:t,locked:n,startDate:s,endDate:i})})]})}var n7=t(86537);function n6(e){let{className:l}=e;return(0,x.jsx)(ly,{className:(0,d.A)("h-6 w-6 object-contain",l)})}function n8(e){let{active:l,children:t}=e;return(0,x.jsxs)("div",{className:(0,d.A)("relative flex min-w-0 grow-0 basis-auto w-full max-w-80",eN().claimButtonWrap),children:[t,l&&(0,x.jsx)("svg",{"aria-hidden":!0,
1className:(0,d.A)("absolute inset-0 h-full w-full overflow-visible pointer-events-none z-[1]",eN().claimOutline),children:Array.from({length:6},(e,l)=>(0,x.jsx)("rect",{className:eN().claimOutlineRect,x:"0",y:"0",width:"100%",height:"100%",rx:6,pathLength:100,style:{"--i":l,opacity:1-l/6}},"claim-outline-segment-".concat(l)))})]})}function n9(e){let{icon:l,children:t}=e;return(0,x.jsxs)("span",{className:"inline-flex flex-col items-center gap-1 leading-none",children:[l,(0,x.jsx)("span",{className:(0,d.A)(n1,"transform-none",eN().statusLabel),children:t})]})}function se(){let{t:e}=(0,j.Bd)();return(0,x.jsx)(n9,{icon:(0,x.jsx)(n7.A,{className:(0,d.A)("h-7 w-7 text-[#3cf400]",eN().stateIconShadow)}),children:e("daily-streak-v2-collected-status",{defaultValue:"Collected"})})}function sl(){let{t:e}=(0,j.Bd)();return(0,x.jsx)(n9,{icon:(0,x.jsx)(ev.A,{className:(0,d.A)("h-9 w-9 text-[#e53935]",eN().stateIconShadow)}),children:e("daily-streak-v2-missed-status",{defaultValue:"Missed"})})}function st(e){var l;let{item:t,hasUserId:n,isAvailable:s,isClaimed:i,isMissed:r,isLocked:a,onClick:o}=e,{t:u}=(0,j.Bd)();return(0,x.jsxs)(x.Fragment,{children:[n&&i&&(0,x.jsx)(se,{}),r&&(0,x.jsx)(sl,{}),!i&&!r&&(0,x.jsx)(n8,{active:s,children:(0,x.jsxs)(lC,{className:(0,d.A)("flex-none w-full max-w-full px-6 py-2.5 min-h-11 box-border",eN().claimButton),onClick:o,disabled:!s,ariaLabel:a?"".concat((null==t||null==(l=t.displayProductName)?void 0:l.text)||(null==t?void 0:t.title)," ").concat(u("locked")):void 0,children:[a&&(0,x.jsx)(n6,{}),s&&(0,x.jsx)("span",{children:u("claim")})]})})]})}var sn=t(63392),ss=t(99764),si=t.n(ss);function sr(e){let{quantity:l,variant:t="default"}=e;if(!l)return null;let n="default"!==t,s="header"===t,i=(0,d.A)(n1,si().finalRewardTitle,s&&si().headerTitle);return(0,x.jsxs)("div",{className:(0,d.A)("flex items-center gap-0.5 leading-none",n&&si().finalRewardQuantity),children:[(0,x.jsx)("span",{className:n?(0,d.A)(i,s?si().headerMultiplier:si().finalRewardMultiplier):si().multiplier,children:"x"}),(0,x.jsx)("span",{className:n?i:si().quantity,children:l})]})}let sa={popup:(0,d.A)("rounded-xl",eN().tooltipPopup),arrowIcon:eN().tooltipArrowIcon,content:eN().tooltipContent,title:(0,d.A)("font-bold",eN().tooltipTitle),subtitle:eN().tooltipSubtitle,description:(0,d.A)("text-body-s",eN().tooltipDescription)};function so(e){var l;let{item:t,detailItem:n,imageClassName:s,imageSizes:i,triggerClassName:r,drawerOffset:a,includeQuantityInTrigger:o=!0,quantityVariant:d="default"}=e,u=(0,eB.kW)(n,"quantity"),c=n.detailName||(null==(l=n.staticDetailItem)?void 0:l.detailName)||(0,eG.GT)(t),m=eE(t,n),p=(0,x.jsx)(sr,{quantity:u,variant:d});return(0,x.jsxs)("div",{className:"flex items-center gap-2",children:[(0,x.jsxs)(lQ.Kg,{children:[(0,x.jsxs)(lQ.Uz,{className:r,"aria-label":c,children:[(0,x.jsx)(eS._,{className:s,sizes:i,src:m,alt:c}),o&&p]}),(0,x.jsx)(sn.f,{item:n,placement:"right",showArrow:!0,offset:a,classNames:sa,closeOnEscape:!0})]}),!o&&p]})}let sd=(0,o.createContext)({code:"",setCode:()=>null}),su=(0,o.createContext)({redeemState:null,setRedeemState:()=>null}),sc=(0,o.createContext)({listViewItem:{legalText:{},promotionUIs:[]},setListViewItem:()=>null});var sm=t(80653),sx=t(42276),sp=t(19312);let sf=(0,o.createContext)({reserveMarketingColumn:!1,hasHeaderBanner:!1});var sv=t(49576);function sh(e){var l,t,n,s,i,r;let a,{item:u,pkgVariant:m,showLockWithPrice:x,marketingMessages:p,reserveMarketingColumn:f}=e,{reserveMarketingColumn:v,hasHeaderBanner:j}=(0,o.useContext)(sf),g=(0,o.use)(eL),y=(0,o.useContext)(h.r),{getDynamicMarketingMessages:b}=(0,e9.V)(),w=(0,eB.Qx)(u),N=lO(),k=(0,sx.a)("".concat(sp.cJ,"px")),C=(0,t0.W)(),A=k||C?"Right":"Left",_=!!w.filter(e=>!e.primary).length,I=null==w?void 0:w.filter(e=>!(null!=e&&e.primary)),S=b(e9.k.tile),P=b(e9.k.aboveBuyButton,{items:(0,c.U)([u])}),T=(p||[]).concat(S),D=(null!=f?f:v)||T.length>0,G=H(),B=ta(),M=(0,le.gZ)(),E=null==G||null==(l=G.promotion)?void 0:l.end,V=null==G||null==(t=G.promotion)?void 0:t.start,{show:U,remaining:L}=lr(G),[R]=ti({item:u}),F=G&&E&&M<E&&V&&M>V,z=w&&w.find(e=>null==e?void 0:e.primary),Y=B?(0,sv.Y)(lk,{}):(0,sv.Y)(lC,{className:"min-[320px]:min-w-max w-full md:min-w-[7rem] md:shrink-0 py-[.75rem] pr-[1.5rem] pl-[.75rem]",disabled:!0,onClick:N,children:(0,sv.FD)("span",{className:"flex items-center justify-center gap-x-2",children:[(0,sv.Y)(ly,{
1className:"w-6"}),(0,sv.Y)(lw,{}),(0,sv.Y)(tn,{})]})}),J=B?(0,sv.Y)(lk,{}):(0,sv.FD)(lC,{disabled:(null==G||null==(n=G.inGroup)?void 0:n.state)===O.unavailable||(null==G?void 0:G.purchaseState)===O.unavailable,onClick:N,className:"min-[320px]:min-w-max w-full md:min-w-[7rem] md:shrink-0",children:[(0,sv.Y)(lw,{}),(0,sv.Y)(tn,{})]});if(z){let e=z.presaleQuantity?z.presaleQuantity.toLocaleString():z.presaleQuantityText,l=z.quantity?z.quantity.toLocaleString():z.quantityText,t=(null==(r=z.previousAmount)?void 0:r.toLocaleString())||"";a=e&&F&&(0,sv.FD)(sv.FK,{children:[(0,sv.Y)("p",{"data-testid":"presale-quantity-p",className:(0,d.A)("text-body-s line-through text-opacity-75 font-normal",eC().strikeThrough),children:e}),(0,sv.Y)(tv,{as:"p",maxFontSizeRem:1.25,children:l})]})||e&&e||t&&(0,sv.FD)(sv.FK,{children:[(0,sv.Y)("p",{className:(0,d.A)("text-body-s line-through text-opacity-75 font-normal",eC().strikeThrough),children:t}),(0,sv.Y)("p",{children:l})]})||l}return(0,sv.Y)("div",{ref:R,title:(null==u||null==(s=u.displayProductName)?void 0:s.text)||(null==u?void 0:u.title)||"","data-tile":tS.Us.Table,"data-testid":e8.Vy,"data-theme":y||"none",className:(0,d.A)("h-full w-full relative",j?"":"first:rounded-t-lg","last:rounded-b-lg","first:!border-t-0 last:!border-b-0 !border-b-0 !border-x-0",eC().main),children:(0,sv.FD)("div",{className:"grid w-full min-w-0 grid-cols-1 px-4 pb-2 md:px-8 md:pb-0 md:grid-cols-[1fr_minmax(0,1fr)] md:items-center md:gap-x-4",children:[(0,sv.FD)("div",{className:"flex flex-col md:flex-row",children:[D&&(0,sv.Y)("div",{className:"flex flex-col items-start overflow-visible md:relative md:pt-2 md:min-h-0 md:w-12 md:min-w-0 md:shrink-0",children:(0,sv.Y)(lT.J,{messages:T,overrideAlignment:A,className:(0,d.$)("overflow-visible md:relative md:inset-x-auto md:top-auto md:mt-0 md:mx-0 md:items-start md:self-start md:shrink-0","md:-translate-x-10 md:rtl:translate-x-10 [&_.type-title]:md:!whitespace-nowrap")})}),!D&&T.length>0&&(0,sv.Y)(lT.J,{messages:T,overrideAlignment:A,className:(0,d.$)("md:relative md:inset-x-auto md:top-auto md:pt-2 md:mt-0 md:mx-0 md:items-start md:self-start md:shrink-0","md:-translate-x-10 md:rtl:translate-x-10 [&_.type-title]:md:!whitespace-nowrap")}),(0,sv.FD)("section",{className:(0,d.$)("flex flex-1 items-center gap-x-2",{"pt-7 md:pt-0":T.length>0}),children:[(0,sv.Y)(eS._,{sizes:"80px",className:"relative z-0 w-screen max-w-[5rem] shrink-0 md:min-w-0",onClick:g,src:(0,eG.VG)(null==u?void 0:u.square),alt:(0,eG.GT)(u)}),(0,sv.FD)("div",{className:"flex min-w-[13.5rem] flex-1 flex-col",children:[(0,sv.FD)("span",{className:(0,d.A)("text-headline-m font-bold inline-block",eC().title),children:[(0,sv.Y)("span",{className:"align-middle break-word",children:a||(null==u||null==(i=u.displayProductName)?void 0:i.text)||(null==u?void 0:u.title)}),(0,sv.Y)(t5,{children:(0,sv.Y)(tr.A,{})})]}),(0,sv.FD)("div",{className:(0,d.$)("w-full flex flex-row flex-wrap items-center",(U||null!=L)&&"justify-between"),children:[(U||null!=L)&&(0,sv.Y)("div",{children:(0,sv.Y)(l9,{className:"[&>span>span]:text-caption",children:(0,sv.Y)(l1,{})})}),!!P.length&&!B&&(0,sv.Y)(lT.J,{messages:P,className:"relative !left-0 mb-1 [&_.type-title]:md:!whitespace-nowrap [&_span.text-title]:md:!whitespace-nowrap [&_.text-title]:md:!whitespace-nowrap"})]})]})]})]}),(0,sv.FD)("section",{className:(0,d.$)("flex w-full min-w-0 flex-row items-center gap-2 text-body-s text-left md:gap-x-4"),children:[_&&(0,sv.Y)(ez.v,{className:"min-w-0 flex-[2] md:min-w-0 md:flex-1 md:basis-0",type:m||"boxed",items:I}),(0,sv.FD)("div",{className:(0,d.A)("flex min-w-0 flex-col space-y-2 md:shrink-0 md:flex-none md:ml-auto",!_&&"grow md:grow-0"),children:[(0,sv.Y)(tI,{}),x?Y:J]})]})]})})}var sj=t(961),sg=t.n(sj);function sy(e,l){let t=e;for(let e in l)t=t.replace("{{".concat(e,"}}"),"".concat(l[e]));return t}function sb(e){var l;return null!=e&&((null==(l=e.inGroup)?void 0:l.state)===O.purchasable||!!e.purchasable&&e.purchaseState===O.purchasable)}function sw(e,l){return(0,o.useMemo)(()=>{if(!e||0===l.length)return 0;for(let i=0;i<l.length;i+=1){var t,n,s;if(sb(null==(t=e[null!=(n=null==(s=l[i])||null==(s=s.sys)?void 0:s.id)?n:""])?void 0:t[0]))return i}return 0},[e,l])}var sN=t(18220),sk=t(72605);function sC(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function sA(e){return(0,x.jsx)(u.DO,{children:(0,x.jsx)(u.DP,function(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};
1l%2?sC(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):sC(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}({},e))})}function sO(e){let{tileItems:l,selectedId:t,selectedStepIndex:n,skus:s,paletteMap:i,onItemClick:r}=e,{t:a}=(0,j.Bd)(),u=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{if(!t)return;let e=()=>{let e=u.current;!e||(e=>{let l=e.parentElement,t=null==l?void 0:l.parentElement;if(!(t instanceof HTMLElement))return!1;let{overflowX:n}=getComputedStyle(t);if("auto"!==n&&"scroll"!==n&&"overlay"!==n)return!1;let s=e.getBoundingClientRect(),i=t.getBoundingClientRect();return s.left>=i.left-.5&&s.right<=i.right+.5})(e)||e.scrollIntoView({block:"nearest",inline:"center"})};e(),u.current||requestAnimationFrame(()=>{e()})},[t,n,s,l]),(0,x.jsx)("div",{className:(0,d.A)("inline-flex flex-nowrap gap-2"),children:l.map((e,l)=>{var o,c,m,p,f,v,h,j,g,y;let b=null==s||null==(o=s[null!=(c=null==e||null==(m=e.sys)?void 0:m.id)?c:""])?void 0:o[0];if(!b)return null;let w=null!=(p=null==e||null==(f=e.sys)?void 0:f.id)?p:"",N=l===n&&String(w)===String(t),k=(0,sN.WZ)(e)&&null!=(v=null==(h=e.product)?void 0:h.externalId)?v:"",C=i.get(w)||i.get(k)||i.get("".concat(l))||"",_=(null==(j=b.inGroup)?void 0:j.state)||b.purchaseState,I=(null==b||null==(g=b.promotion)?void 0:g.reason)===ee.$J.ClaimGiftOnce||(null==b||null==(y=b.offerTags)?void 0:y.includes(A.FreeItem))||(null==b?void 0:b.externalSiteLink),S=_&&_===O.owned?"".concat(eC().progBundlePurchased):"".concat(eC().progBundleUnPurchased);return(0,x.jsx)("div",{ref:N?u:void 0,"data-theme":C,"data-selected":N,className:(0,d.A)("w-11 h-11 flex justify-center items-center"),children:(0,x.jsxs)("button",{type:"button",className:"relative",onClick:()=>{r(e,l)},children:[(0,x.jsx)("div",{className:(0,d.A)("relative","flex justify-center items-center","h-9","w-11","align-middle","text-sm","rounded","font-bold",N?"".concat(eC().progBundleActive):S),children:I?a("short-free"):l+1}),_===O.owned?(0,x.jsx)(lj.A,{className:(0,d.A)("".concat(eC().checkIcon),"absolute rounded-full -right-0 -bottom-0 w-3 h-3")}):null]})},"".concat(l,"-").concat(String(w)))})})}let s_={right:"0deg",down:"90deg",left:"180deg",up:"270deg"},sI={right:"left",left:"right",up:"up",down:"down"};function sS(e,l){return Array.from({length:Math.max(e,1)},()=>l).join(" ".concat("1.5rem"," "))}function sP(e,l,t){let n=e.col===l.col?l.row>e.row?"down":"up":l.col>e.col?"right":"left";return t?sI[n]:n}function sT(e,l){return 2*Math.min(e,l)+2}function sD(e,l){return e.col===l.col?{col:2*e.col+1,row:sT(e.row,l.row)}:{col:sT(e.col,l.col),row:2*e.row+1}}let sG="rotate-[--sn-rot-p] landscape:rotate-[--sn-rot-l]";function sB(e){let{children:l,arrowUrl:t,className:n}=e,s=o.Children.toArray(l),i=(0,t0.W)(),r=function(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e<1)return null;let t=Array.from({length:e},(e,l)=>{let t=Math.floor(l/2),n=l%2;return{row:t,col:t%2==0?n:1-n}}),n=Math.ceil(e/3),s=Array.from({length:e},(e,l)=>{let t=Math.floor(l/n),s=l%n;return{col:t,row:t%2==0?s:n-1-s}}),i=t.map((e,l)=>({pCol:2*e.col+1,pRow:2*e.row+1,lCol:2*s[l].col+1,lRow:2*s[l].row+1})),r=t.slice(0,-1).map((e,n)=>{let i=sP(t[n],t[n+1],l),r=sP(s[n],s[n+1],l),a=sD(t[n],t[n+1]),o=sD(s[n],s[n+1]);return{pCol:a.col,pRow:a.row,lCol:o.col,lRow:o.row,pDir:i,lDir:r,pRot:s_[i],lRot:s_[r]}}),a=Math.min(e,2),o=Math.ceil(e/2),d=Math.ceil(e/n);return{cells:i,arrows:r,pTemplateCols:sS(a,"minmax(0,1fr)"),pTemplateRows:sS(o,"auto"),lTemplateCols:sS(d,"minmax(0,1fr)"),lTemplateRows:sS(n,"auto")}}(s.length,i);return r?(0,x.jsxs)("ol",{className:(0,d.A)("grid w-full list-none p-0 m-0 items-stretch justify-items-stretch","grid-cols-[--sn-cols-p] grid-rows-[--sn-rows-p]","landscape:grid-cols-[--sn-cols-l] landscape:grid-rows-[--sn-rows-l]",n),style:{"--sn-cols-p":r.pTemplateCols,"--sn-rows-p":r.pTemplateRows,"--sn-cols-l":r.lTemplateCols,"--sn-rows-l":r.lTemplateRows},children:[s.map((e,l)=>{let t=r.cells[l];return(0,x.jsx)("li",{className:"flex items-stretch justify-center col-[--sn-c-p] row-[--sn-r-p] landscape:col-[--sn-c-l] landscape:row-[--sn-r-l]",style:{"--sn-c-p":t.pCol,"--sn-r-p":t.pRow,"--sn-c-l":t.lCol,"--sn-r-l":t.lRow},children:e},e.key)}),r.arrows.map(e=>{let l={"--sn-rot-p":e.pRot,"--sn-rot-l":e.lRot};
1return(0,x.jsx)("li",{"aria-hidden":!0,className:(0,d.A)("grid place-items-center","col-[--sn-c-p] row-[--sn-r-p] landscape:col-[--sn-c-l] landscape:row-[--sn-r-l]"),style:{"--sn-c-p":e.pCol,"--sn-r-p":e.pRow,"--sn-c-l":e.lCol,"--sn-r-l":e.lRow},children:t?(0,x.jsx)(eS._,{sizes:"24px",src:t,alt:"",className:(0,d.A)("max-w-full max-h-full object-contain",sG),style:l}):(0,x.jsx)(nI,{className:(0,d.A)("w-3 h-3",sG),style:l})},"arrow-".concat(e.pCol,"-").concat(e.pRow))})]}):null}function sM(e){var l,t,n,s,i,r;let{item:a,pkgVariant:u,marketingMessages:m,hideAttribute:p,showCountdownWithStock:f,stepIndex:v=0}=e,{t:g}=(0,j.Bd)(),y=ta(),b=lO(),w=ls(),N=(0,o.use)(eL),k=H(),{user:C}=(0,K.J)(),A=(0,o.useContext)(h.r),{getDynamicMarketingMessages:_}=(0,e9.V)(),I=null!=(l=null==k||null==(t=k.inGroup)?void 0:t.state)?l:null==k?void 0:k.purchaseState,S=!y&&(C?I!==O.purchasable:0!==v),P=u||"inline",T=(0,eB.Qx)(a),D=null==T?void 0:T.filter(e=>!(null!=e&&e.primary)),G=null!=(n=null==T||null==(s=T.find(e=>null==e?void 0:e.primary))?void 0:s.quantity)?n:null,B=null==T||null==(i=T.find(e=>null==e?void 0:e.previousAmount))?void 0:i.previousAmount,M=_(e9.k.tile),E=_(e9.k.aboveBuyButton,{items:(0,c.U)([a])}),[V]=ti({item:a});return(0,x.jsxs)("div",{"data-tile":tS.Us.ProgressiveSnakeList,"data-testid":e8.BY,ref:V,title:(null==a||null==(r=a.displayProductName)?void 0:r.text)||(null==a?void 0:a.title)||"","data-theme":A||"none",className:(0,d.A)("flex flex-col rounded-b-lg w-full h-full shadow-xnear relative",eC().main),children:[(0,x.jsx)(lT.J,{messages:(m||[]).concat(M)}),(0,x.jsx)("div",{className:"flex px-3 pt-3 pb-1 gap-x-3 flex-1 min-h-0",children:(0,x.jsxs)("section",{className:"flex-grow flex flex-col gap-y-1",children:[(0,x.jsxs)("div",{className:"flex place-content-between",children:[(0,x.jsxs)("div",{className:"flex flex-col",children:[B&&(0,x.jsxs)("span",{className:(0,d.A)("text-body-m",eC().description),children:[(0,x.jsx)("span",{className:"line-through",children:B.toLocaleString()}),(0,x.jsxs)("span",{children:[" ",g("in-game")]})]}),G&&(0,x.jsx)("span",{className:(0,d.A)("landscape:text-sm portrait:text-xs font-bold !leading-none",eC().description),children:G.toLocaleString()}),(0,x.jsx)(ez.v,{type:u||"inline",items:D,className:(0,d.A)("inline"===P&&"[&>*]:first:font-bold")}),!p&&(0,x.jsxs)(l9,{className:"[&>*]:!text-xs [&>*]:font-normal",children:[(0,x.jsx)(l5,{showIcon:!0}),!f&&(0,x.jsx)(l1,{}),(0,x.jsx)(l2,{showIcon:!0}),(0,x.jsx)(l8,{})]}),(null==a?void 0:a.longDescription)&&(0,x.jsx)("p",{className:"text-body-s",children:null==a?void 0:a.longDescription})]}),(0,x.jsx)("div",{className:"shrink-0",children:(0,x.jsx)(eS._,{onClick:S||w||null==k||!k.purchasable?()=>null:N,className:"h-auto w-10",sizes:"10vw",src:(0,eG.VG)(null==a?void 0:a.square)||(0,eG.VG)(null==a?void 0:a.boxart)||"",alt:(0,eG.GT)(a)})})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto",children:[!!E.length&&(0,x.jsx)(lT.J,{messages:E,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),y?(0,x.jsx)(lk,{}):(0,x.jsx)(lC,{className:"break-words !p-1 !font-primary !text-xs",disabled:S||w,onClick:b,children:S?(0,x.jsxs)("span",{className:"flex items-center",children:[(0,x.jsx)(ly,{className:"mr-1"}),(0,x.jsx)("span",{className:"sr-only",children:g("locked")}),(0,x.jsx)(lw,{}),!!C&&(0,x.jsx)(tn,{})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(lw,{}),(0,x.jsx)(tn,{})]})})]}),f&&(0,x.jsx)("div",{className:"flex justify-center",children:(0,x.jsx)(lm,{daysHoursOnly:!0})})]})})]})}function sE(e){var l,t,n,s,i,r,a,u,c,p,f,v,g,y,b,w;let{tileGroup:N,tileItems:k,imageType:C,paletteMap:_}=e,{t:I}=(0,j.Bd)(),{user:S}=(0,K.J)(),P=(0,o.useContext)(h.r),T="transparent"===C,D=(0,M.YY)(),G=D&&D[(null==(l=k[0])||null==(l=l.sys)?void 0:l.id)||""],B=G&&(null==(t=G[0])||null==(t=t.promotion)?void 0:t.end),E=sw(D,k),{0:V,1:U}=(0,o.useState)(null==(n=k[E])||null==(n=n.sys)?void 0:n.id),L=k.findIndex(e=>{var l;return(null==e||null==(l=e.sys)?void 0:l.id)===V}),R=k[L],F=(0,eB.Qx)(R),z=null==D||null==(s=D[null!=V?V:""])?void 0:s[0],Y=k.length,{0:J,1:q}=(0,o.useState)(void 0);(0,o.useEffect)(()=>{q(!!(sg().mobile||sg().tablet))},[]);let Z=S?sb(z):0===L,H=(null==z||null==(i=z.promotion)?void 0:i.reason)===ee.$J.ClaimGiftOnce||(null==z||null==(r=z.offerTags)?void 0:r.includes(A.FreeItem))||(null==z?void 0:z.externalSiteLink),Q=sy(null!=(a=null==N||null==(u=N.description)?void 0:u.text)?a:"",{number:Y,contents:null!=(c=null!=(p=null==(f=k[k.length-1])||null==(f=f.displayProductName)?void 0:f.text)?p:null==(v=k[k.length-1])?void 0:v.title)?c:""}),[W]=ti({tileGroup:N,tileItems:k}),$=(0,x.jsx)(eS._,{sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("w-full rounded-t-lg",T?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,eG.VG)(N.headerImage),alt:(0,eG.GT)({title:null==(g=N.title)?void 0:g.text})}),X=(null==(y=N.title)?void 0:y.text)&&(0,x.jsx)("h3",{className:"text-body-m font-bold",children:null==(b=N.title)?void 0:b.text}),el=!!B&&(0,x.jsx)(lu,{endDate:B,children:(0,x.jsxs)("span",{className:"text-[rgb(var(--color-promo-attribute-rgb))] font-bold",children:[(0,x.jsx)(lV.A,{className:"inline me-1"}),(0,x.jsx)(lH,{className:"align-middle",daysHoursOnly:!0})]})}),et=(null==N?void 0:N.description)&&(0,x.jsx)(eZ.$,{className:(0,d.A)("text-body-s pb-2",eC().description),children:Q}),en=(0,x.jsx)("div",{className:(0,d.A)(eC().tileGroupContent,!J&&eC().desktop,"overflow-x-auto flex rounded-lg px-2 py-2"),children:(0,x.jsx)(sE.Items,{tileItems:k,selectedId:null!=V?V:"",skus:D,paletteMap:_,onItemClick:e=>{var l;return U((null==e||null==(l=e.sys)?void 0:l.id)||"")}})}),es=(0,x.jsx)(ez.v,{type:"list",className:"max-h-40",items:F}),ei=(0,x.jsx)(m.px,{value:R,children:(0,x.jsx)(e7,{children:Z?(0,x.jsxs)(lP,{className:(0,d.A)(H&&eC().secondaryButton),children:[(0,x.jsx)(lw,{}),(0,x.jsx)(tn,{})]}):(0,x.jsx)(lP,{disabled:!0,children:(0,x.jsx)(ly,{className:"w-6 h-6"})})})}),er=(0,x.jsxs)("div",{className:"flex items-center align-middle",children:[(0,x.jsx)(lj.A,{className:"w-5 h-5"}),(0,x.jsx)("p",{className:"ms-1 font-bold",children:I("claimed")})]});return void 0===J?null:(0,x.jsx)("div",{ref:W,"data-theme":P||"none",className:(0,d.A)("roun
1ded-lg w-full h-full shadow-xnear",T&&"p-4",eC().main),children:(0,x.jsxs)("div",{className:"h-full flex flex-col gap-4",children:[$,(0,x.jsxs)("section",{className:(0,d.A)("w-full flex flex-col gap-y-2",!T&&"px-4 pb-4"),children:[X,el,et,en,es,(null==z||null==(w=z.inGroup)?void 0:w.state)!==O.owned&&(null==z?void 0:z.purchaseState)!==O.owned?ei:er]})]})})}sE.Items=function(e){let{tileItems:l,selectedId:t,skus:n,paletteMap:s,onItemClick:i}=e,{t:r}=(0,j.Bd)();return(0,x.jsx)("div",{className:(0,d.A)("flex w-fit"),children:l.map((e,l)=>{var a,o,u,c,m,p,f,v,h,j,g,y,b,w,N;let k=null==n||null==(a=n[null!=(o=null==e||null==(u=e.sys)?void 0:u.id)?o:""])?void 0:a[0];if(!k)return null;let C=null!=(c=null==e||null==(m=e.sys)?void 0:m.id)?c:"",_=(0,sN.WZ)(e)&&null!=(p=null==(f=e.product)?void 0:f.externalId)?p:"",I=s.get(C)||s.get(_)||s.get("".concat(l))||"",S=(null==(v=k.inGroup)?void 0:v.state)||k.purchaseState,P=(null==k||null==(h=k.promotion)?void 0:h.reason)===ee.$J.ClaimGiftOnce||(null==k||null==(j=k.offerTags)?void 0:j.includes(A.FreeItem))||(null==k?void 0:k.externalSiteLink),T=S?S===O.purchasable||S===O.owned:0===l;return(0,x.jsx)("div",{"data-theme":I,"data-selected":(null==e||null==(y=e.sys)?void 0:y.id)===t,className:(0,d.A)("w-11 h-11 flex justify-center items-center"),children:(0,x.jsxs)("button",{type:"button",className:"relative",onClick:()=>{i(e)},children:[null!=(b=e.boxart)&&b.url?(0,x.jsx)(eS._,{className:(0,d.A)("relative",T?"":"grayscale","h-9","rounded border border-solid",(null==e||null==(w=e.sys)?void 0:w.id)===t?"".concat(eC().activePromotionTile):"border-transparent"),sizes:"30px",src:(0,eG.VG)(e.boxart),alt:(0,eG.GT)({title:e.description})}):(0,x.jsx)("div",{className:(0,d.A)("relative","flex justify-center items-center",T?"":"grayscale","h-9","w-9","align-middle","text-sm","rounded border border-solid",(null==e||null==(N=e.sys)?void 0:N.id)===t?"".concat(eC().activePromotionTile):"border-transparent"),children:P?r("free"):l+1}),S===O.owned?(0,x.jsx)(lj.A,{className:(0,d.A)("".concat(eC().checkIcon),"absolute rounded-full -right-0 -bottom-0 w-3 h-3")}):null]})},null==e||null==(g=e.sys)?void 0:g.id)})})};let sV=["item","onClick","isActiveTab"];function sU(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function sL(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{};l%2?sU(Object(t),!0).forEach(function(l){(0,Q.A)(e,l,t[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):sU(Object(t)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(t,l))})}return e}function sR(e){var l,t;let{item:n,onClick:s,isActiveTab:i}=e,r=(0,e6.A)(e,sV);return(0,x.jsxs)("button",sL(sL({type:"button",className:(0,d.A)("flex flex-col justify-center items-center grow rounded-lg relative",lG().main,i&&eC().selector),onClick:s},r),{},{children:[i&&(0,x.jsx)("div",{className:"absolute w-full h-full flex items-center justify-center",children:(0,x.jsx)("div",{className:(0,d.A)("w-px h-px",eC().selectorInner)})}),(0,x.jsx)("div",{className:"z-0 relative",children:(0,x.jsx)(eS._,{sizes:"48px",className:"py-2",src:(null==n||null==(l=n.square)?void 0:l.url)||(null==n||null==(t=n.product)||null==(t=t.boxArt)?void 0:t.url)||""})})]}))}function sF(e){var l;let{item:t,isActiveItem:n}=e,s=ls(),i=ta(),r=(0,eB.Qx)(t),{getDynamicMarketingMessages:a}=(0,e9.V)(),o=a(e9.k.aboveBuyButton,{items:(0,c.U)([t])});return(0,x.jsx)("div",{className:(0,d.A)("w-full h-full",n?"":"absolute top-0 left-0 invisible"),children:(0,x.jsx)(m.px,{value:t,children:(0,x.jsxs)(e7,{children:[(0,x.jsx)(ez.v,{type:"grid",items:r}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 w-full mt-2",children:[!!o.length&&(0,x.jsx)(lT.J,{messages:o,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),i?(0,x.jsx)(lk,{}):(0,x.jsxs)(lP,{disabled:s,children:[(0,x.jsx)(lw,{}),(0,x.jsx)(tn,{})]})]})]})},null==t||null==(l=t.sys)?void 0:l.id)})}function sz(e){var l,t;let{pkgVariant:n}=e,s=(0,m.H)(),i=H(),r=ls(),a=lO(),{getDynamicMarketingMessages:o}=(0,e9.V)(),u=o(e9.k.aboveBuyButton,{items:(0,c.U)([s])}),{t:p}=(0,j.Bd)(),f=(0,eB.Qx)(s),v=i&&(null!=(l=null==i?void 0:i.promoLimitCount)?l:1)-(null!=(t=null==i?void 0:i.promoLimitUsed)?t:0)==0;return(0,x.jsxs)("div",{className:(0,d.A)("w-full flex-col h-auto rounded-lg text-body-s [&::-webkit-scrollbar-track]:!bg-transparent flex"),children:[(0,x.jsx)("div",{className:"flex flex-col [&>ul]:overflow-y-auto mb-4",children:(0,x.jsx)(tK.v,{type:n||"grid",
1items:f,className:"max-h-[12rem] lg:max-h-[11.5rem]",groupHeaderClassName:"!ps-0 my-2"})}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-1",children:[!!u.length&&(0,x.jsx)(lT.J,{messages:u,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),v?(0,x.jsxs)("div",{className:"flex gap-y-2 w-full font-bold text-sm",children:[(0,x.jsx)(lj.A,{className:"me-1 w-4 h-4"}),p("claimed")]}):(0,x.jsx)(lC,{onClick:a,disabled:r,children:(0,x.jsx)(tn,{})})]})]})}function sY(e){let{tileItems:l,onClick:t,activeIndex:n}=e;return(0,x.jsx)("div",{className:(0,d.A)("rounded-lg flex",lG().main),children:l.map((e,l)=>{var s,i;return(0,x.jsx)("button",{className:(0,d.A)("py-3 rounded-lg text-body-s font-bold grow basis-0",n===l?eC().toggleButton:"opacity-60"),type:"button",onClick:()=>t(l),children:(null==(i=e.displayProductName)?void 0:i.text)||e.title},null==(s=e.sys)?void 0:s.id)})})}function sJ(){var e,l;let t=(0,m.H)(),n=H(),s=(0,eB.Qx)(t),i=lO(),r=ls(),{getDynamicMarketingMessages:a}=(0,e9.V)(),o=a(e9.k.aboveBuyButton,{items:(0,c.U)([t])}),{t:u}=(0,j.Bd)(),p=n&&(null!=(e=null==n?void 0:n.promoLimitCount)?e:1)-(null!=(l=null==n?void 0:n.promoLimitUsed)?l:0)==0;return(0,x.jsx)("div",{children:(0,x.jsxs)("div",{className:(0,d.A)("w-full flex-col h-full justify-between p-2 rounded-lg text-body-s [&::-webkit-scrollbar-track]:!bg-transparent flex items-center",eC().tileGroupContent),children:[s.length&&(0,x.jsx)(ez.v,{type:"grid",items:s,isSingleItemLayout:!0,ignorePalette:!0}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-1 w-full",children:[!!o.length&&(0,x.jsx)(t$.J,{messages:o,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),p?(0,x.jsxs)("div",{className:"flex gap-y-2 w-full font-bold text-sm",children:[(0,x.jsx)(lj.A,{className:"me-1 w-4 h-4"}),u("claimed")]}):(0,x.jsxs)(lC,{onClick:i,disabled:r,children:[(0,x.jsx)(lw,{}),(0,x.jsx)(tn,{})]})]})]})})}let sq={[tS.Us.Table]:sh,[tS.Us.List]:tP,[tS.Us.Medium]:function(e){var l,t,n,s,i;let{imageType:r,item:a,pkgVariant:u,marketingMessages:m}=e,p=ta(),f=lO(),v=ls(),g=(0,o.use)(eL),y="transparent"===r,b=(0,o.useContext)(h.r),{getDynamicMarketingMessages:w}=(0,e9.V)(),{t:N}=(0,j.Bd)(),k=(0,eB.Qx)(a),C=null!=(l=null==k||null==(t=k.find(e=>null==e?void 0:e.primary))?void 0:t.previousAmount)?l:null,A=C&&(0,tZ.wk)(C),O=k.find(eB.Dn),_="boxed"===u&&(null==O||null==(n=O.quantity)?void 0:n.toLocaleString()),I=w(e9.k.tile),S=w(e9.k.aboveBuyButton,{items:(0,c.U)([a])}),[P]=ti({item:a});return(0,x.jsxs)("div",{ref:P,title:(null==a||null==(s=a.displayProductName)?void 0:s.text)||(null==a?void 0:a.title)||"","data-tile":tS.Us.Medium,"data-testid":e8.Vy,"data-theme":b||"none",className:(0,d.A)("rounded-lg h-full w-full relative overflow-visible shadow-xnear",y&&"p-4",eC().main),children:[(0,x.jsx)(lT.J,{messages:(m||[]).concat(I)}),(0,x.jsxs)("div",{className:(0,d.A)("flex flex-col h-full gap-y-2 items-stretch"),children:[(0,x.jsx)(eS._,{onClick:g,className:(0,d.A)("aspect-[2.5/1] w-full rounded-t-lg",y&&"object-contain"),src:(0,eG.VG)(null==a?void 0:a.mediumTile),alt:(0,eG.GT)(a)}),(0,x.jsxs)("section",{className:(0,d.A)("flex flex-col gap-y-2 h-full w-full text-body-s text-text-primary text-left",!y&&"px-4 pb-4"),children:[(0,x.jsxs)("span",{className:(0,d.A)("inline-block text-body-m font-bold",eC().title),children:[_||(null==a||null==(i=a.displayProductName)?void 0:i.text)||(null==a?void 0:a.title),(0,x.jsx)(t5,{children:(0,x.jsx)(tr.A,{})})]}),!!A&&(0,x.jsx)("span",{className:"text-body-s",children:N("previous-amount-chips",{amount:A.toLocaleString()})}),(null==a?void 0:a.description)&&(0,x.jsx)("div",{className:(0,d.A)(eC().description),children:null==a?void 0:a.description}),(0,x.jsx)(ez.v,{type:u||"inline",items:k}),(0,x.jsxs)(l9,{children:[(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l5,{showIcon:!0}),(0,x.jsx)(l1,{}),(0,x.jsx)(l2,{showIcon:!0}),(0,x.jsx)(l8,{})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto",children:[!!S.length&&(0,x.jsx)(lT.J,{messages:S,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),p?(0,x.jsx)(lk,{}):(0,x.jsxs)(lC,{className:"break-all",disabled:v,onClick:f,children:[(0,x.jsx)(lb,{}),(0,x.jsx)(lw,{}),(0,x.jsx)(lN,{}),(0,x.jsx)(tn,{})]})]})]})]})]})},[tS.Us.BoxArt]:function(e){var l,t,n,s,i;let{imageType:r,item:a,pkgVariant:u,marketingMessages:m,highlightFirstItem:p,showCountdownWithStock:f}=e,g=(0,o.use)(eL),y=ta(),b=lO(),w=ls(),N="transparent"===r,k=(0,o.useContext)(h.r),{t:C}=(0,j.Bd)(),{getDynamicMarketingMessages:A}=(0,v.V)(),O=(0,eB.Qx)(a),_=null!=(l=null==O||null==(t=O.find(e=>null==e?void 0:e.primary))?void 0:t.previousAmount)?l:null,I=_&&(0,tZ.wk)(_),S=O.find(eB.Dn),P="boxed"===u&&(null==S||null==(n=S.quantity)?void 0:n.toLocaleStr
1ing()),T="grid-centered"===u,D=A(e9.k.tile),G=A(e9.k.aboveBuyButton,{items:(0,c.U)([a])}),B=(0,t0.W)(),[M]=ti({item:a}),E=!!((null==m?void 0:m.length)||D.length);return(0,x.jsxs)("div",{ref:M,title:(null==a||null==(s=a.displayProductName)?void 0:s.text)||(null==a?void 0:a.title)||"","data-tile":tS.Us.BoxArt,"data-testid":e8.Vy,"data-theme":k||"none",className:(0,d.A)("rounded-lg h-full w-full shadow-xnear relative",N&&"p-4",eC().main),children:[E&&(0,x.jsx)(lT.J,{messages:(m||[]).concat(D)}),(0,x.jsxs)("div",{className:(0,d.A)("flex flex-col gap-y-2 h-full"),children:[(0,x.jsx)(eS._,{onClick:g,sizes:"50vw md:20vw lg:17vw",className:(0,d.A)("rounded-t-lg",N?"w-24 lg:w-32 3xl:w-40 mx-auto object-contain aspect-[1/1] mt-4":"square"===r?"w-full aspect-square":"w-full aspect-[1/1.4]"),src:(0,eG.VG)(null==a?void 0:a.boxart),alt:(0,eG.GT)(a)}),(0,x.jsxs)("section",{className:(0,d.A)("w-full h-full text-body-s break-spaces","flex flex-col items-start gap-y-2",!N&&"px-4 pb-4",B?"text-right":"text-left"),children:[(0,x.jsxs)("span",{className:(0,d.A)("align-bottom inline-block text-body-m font-bold",eC().title,P&&"break-all",T?"self-center text-center":"self-start text-left"),children:[P||(null==a||null==(i=a.displayProductName)?void 0:i.text)||(null==a?void 0:a.title),(0,x.jsx)(t5,{children:(0,x.jsx)(tr.A,{})})]}),!!I&&(0,x.jsx)("span",{className:"text-body-s",children:C("previous-amount-chips",{amount:I.toLocaleString()})}),(null==a?void 0:a.longDescription)&&(0,x.jsx)("p",{className:(0,d.A)("text-body-s -mt-2",eC().description),children:null==a?void 0:a.longDescription}),(0,x.jsxs)("div",{className:"flex flex-col items-start gap-y-2 mt-auto w-full",children:[(0,x.jsx)(ez.v,{type:u||"inline",items:O,highlightFirstItem:!!p}),(0,x.jsxs)(l9,{children:[!f&&(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l5,{showIcon:!0}),!f&&(0,x.jsx)(l1,{}),(0,x.jsx)(l2,{showIcon:!0}),(0,x.jsx)(l8,{})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 w-full break-normal",children:[!!G.length&&(0,x.jsx)(lT.J,{messages:G,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),y?(0,x.jsx)(lk,{}):(0,x.jsxs)(lC,{className:"break-all min-[320px]:min-w-max w-full px-0",disabled:w,onClick:b,children:[(0,x.jsx)(lb,{}),(0,x.jsx)(lw,{}),(0,x.jsx)(lN,{}),(0,x.jsx)(tn,{})]})]}),f&&(0,x.jsx)("div",{className:"flex justify-center w-full",children:(0,x.jsx)(lm,{daysHoursOnly:!0})})]})]})]})]})},[tS.Us.BoxartLegacy]:t4,[tS.Us.BoxartRevamp]:t4,[tS.Us.Gigantic]:function(e){var l,t,n;let{imageType:s,item:i,pkgVariant:r,additionalData:a,marketingMessages:u,highlightFirstItem:m,showCountdownWithStock:p}=e,f=ta(),v=lO(),j=ls(),g=(0,o.use)(eL),y=(0,sm.w)(a),b=(0,o.useContext)(h.r),{getDynamicMarketingMessages:w}=(0,e9.V)(),N="transparent"===s,k=(0,eB.Qx)(i),C=w(e9.k.tile),A=w(e9.k.aboveBuyButton,{items:(0,c.U)([i])}),[O]=ti({item:i});return(0,x.jsxs)("div",{ref:O,title:(null==i||null==(l=i.displayProductName)?void 0:l.text)||(null==i?void 0:i.title)||"","data-tile":tS.Us.Gigantic,"data-testid":e8.Vy,"data-theme":b||"none",className:(0,d.A)("rounded-lg w-full h-full shadow-xnear relative",eC().main,N?eC().transparenTilePadding:eC().tilePadding),children:[(0,x.jsx)(lT.J,{messages:(u||[]).concat(C)}),(0,x.jsxs)("div",{className:(0,d.A)("h-full flex flex-col gap-4 relative"),children:[(0,x.jsx)(eS._,{onClick:g,sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("w-full rounded-t-lg",N?["object-contain",eC().giganticTileImage,"w-auto"]:"object-cover"),src:(0,eG.VG)(null==i?void 0:i.largeTile),alt:(0,eG.GT)(i)}),(0,x.jsxs)("section",{className:(0,d.A)("h-full w-full flex flex-col",!N&&"px-4 pb-4",eC().section),children:[(0,x.jsxs)("span",{className:(0,d.A)("inline-block text-body-m font-bold","grid-centered"===r&&"text-center",eC().title),children:[(0,x.jsx)("span",{className:"align-middle",children:(null==i||null==(t=i.displayProductName)?void 0:t.text)||(null==i?void 0:i.title)}),(0,x.jsx)(t5,{children:(0,x.jsx)(tr.A,{})})]}),(0,x.jsx)(l9,{children:(0,x.jsx)(l2,{showIcon:!0})}),(0,x.jsxs)(l9,{children:[!p&&(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l5,{showIcon:!0}),!p&&(0,x.jsx)(l1,{}),(0,x.jsx)(l8,{})]}),(null==i?void 0:i.longDescription)&&(0,x.jsx)(eZ.$,{className:(0,d.A)(eC().description,"text-body-s","prose-p:my-2 prose-strong:text-text-primary text-text-primary max-w-full prose prose-a:type-link hover:prose-a:type-link-hover prose-headings:text-text-primary prose-blockquote:text-text-primary"),"data-testid":e8.eL,children:null==i?void 0:i.longDescription}),(0,x.jsx)(ez.v,{type:r||"list",className:"max-h-[12rem] lg:max-h-[11.5rem]",items:k,legalText:null==y||null==(n=y.chestLegalText)?void 0:n.locText,highlightFirstItem:!!m}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto w-full",children:[!!A.length&&(0,x.jsx)(lT.J,{messages:A,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),f?(0,x.jsx)(lk,{}):(0,x.jsxs)(lC,{disabled:j,onClick:v,children:[(0,x.jsx)(lb,{}),(0,x.jsx)(lw,{}),(0,x.jsx)(lN,{}),(0,x.jsx)(tn,{})]})]}),p&&(0,x.jsx)("div",{className:"flex justify-center",children:(0,x.jsx)(lm,{daysHoursOnly:!0})})]})]})]})},[tS.Us.GiganticShort]:function(e){var l,t,n;let{imageType:s,pkgVariant:i,item:r,additionalData:a,marketingMessages:u,showCountdownWithStock:m}=e,p=ta(),f=lO(),j=ls(),g=(0,o.use)(eL),y=(0,sm.w)(a),b=(0,eB.Qx)(r),w=(0,o.useContext)(h.r),N="transparent"===s,{getDynamicMarketingMessages:k}=(0,v.V)(),C=k(e9.k.tile),A=k(e9.k.aboveBuyButton,{items:(0,c.U)([r])}),[O]=ti({item:r});return(0,x.jsxs)("div",{title:(null==r||null==(l=r.displayProductName)?void 0:l.text)||(null==r?void 0:r.title)||"",ref:O,"data-tile":tS.Us.GiganticShort,"data-testid":e8.Vy,"data-theme":w||"none",className:(0,d.A)("roun
1ded-lg w-full h-full shadow-xnear relative",N&&"p-4",eC().main),children:[(0,x.jsx)(lT.J,{messages:(u||[]).concat(C)}),(0,x.jsxs)("div",{className:"flex flex-col gap-4 relative h-full",children:[(0,x.jsxs)("div",{className:"relative w-full aspect-[3.28/1] grow-0 overflow-hidden",children:[(0,x.jsx)(eS._,{onClick:g,sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("w-full rounded-t-lg absolute top-0 left-0",N?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,eG.VG)(null==r?void 0:r.largeTile),alt:(0,eG.GT)(r)}),(0,x.jsxs)(l9,{className:(0,d.A)("absolute top-1.5 left-1.5 rounded py-0.5 px-1 leading-none rtl:left-[unset] rtl:right-1.5",eC().tilePromo),children:[!m&&(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l5,{showIcon:!0})]})]}),(0,x.jsxs)("section",{className:(0,d.A)("w-full flex flex-col gap-y-2 grow",!N&&"px-4 pb-4"),children:[(0,x.jsxs)("span",{className:(0,d.A)("inline-block text-body-m font-bold",eC().title),children:[(0,x.jsx)("span",{className:"align-middle",children:(null==r||null==(t=r.displayProductName)?void 0:t.text)||(null==r?void 0:r.title)}),(0,x.jsx)(t5,{children:(0,x.jsx)(tr.A,{})}),(0,x.jsxs)("span",{className:"align-middle [float:inline-end]",children:[!m&&(0,x.jsx)(l1,{}),(0,x.jsx)(l8,{})]})]}),(0,x.jsx)(l9,{children:(0,x.jsx)(l2,{showIcon:!0})}),(null==r?void 0:r.longDescription)&&(0,x.jsx)(eZ.$,{className:(0,d.A)(eC().description,"text-body-s","prose-p:my-2 prose-strong:text-text-primary text-text-primary max-w-full prose prose-a:type-link hover:prose-a:type-link-hover prose-headings:text-text-primary prose-blockquote:text-text-primary"),"data-testid":e8.eL,children:null==r?void 0:r.longDescription}),(0,x.jsx)(ez.v,{type:i||"grid",items:b,className:"max-h-[12rem] lg:max-h-[11.5rem]",legalText:null==y||null==(n=y.chestLegalText)?void 0:n.locText}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto w-full",children:[!!A.length&&(0,x.jsx)(lT.J,{messages:A,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),p?(0,x.jsx)(lk,{}):(0,x.jsxs)(lC,{onClick:f,disabled:j,children:[(0,x.jsx)(lb,{}),(0,x.jsx)(lw,{}),(0,x.jsx)(lN,{}),(0,x.jsx)(tn,{})]})]}),m&&(0,x.jsx)("div",{className:"flex justify-center",children:(0,x.jsx)(lm,{daysHoursOnly:!0})})]})]})]})},[tS.Us.ListDailyStreak]:function(e){var l,t,n,s;let{item:i,pkgVariant:r,marketingMessages:a}=e,u=(0,o.use)(eL),c=H(),m=(0,M.YY)(),{user:p}=(0,K.J)(),{t:f}=(0,j.Bd)(),v=(0,o.useRef)(null),g=null==c?void 0:c.inGroup,y=null==g?void 0:g.groupId,b=(null!=(l=null==g?void 0:g.orderInGroup)?l:0)+1,w=c&&(null==g?void 0:g.state),N=w===O.purchasable,k=w===O.owned,C=w===O.hidden,A=w===O.unavailable,{0:_,1:I}=(0,o.useState)(!1),S=(0,o.useContext)(h.r),P=(0,eB.Qx)(i),T=(0,o.useContext)(eF).staticStreak,D=T&&!_;if((0,o.useEffect)(()=>{if(!y)return;let e=(0,le.gZ)(),l=Object.values(m||{}).flat().filter(l=>{var t;let{start:n=1/0,end:s=0}=(null==l?void 0:l.promotion)||{};return(null==l||null==(t=l.inGroup)?void 0:t.groupId)===y&&n<e&&s>e}),t=l.map(e=>{var l;return(null==e||null==(l=e.promotion)?void 0:l.end)||1/0});if(l[t.indexOf(Math.min(...t))]===c){var n;null==(n=v.current)||n.scrollIntoView({block:"center",behavior:"smooth"})}},[y]),(0,o.useEffect)(()=>{let e=(0,te.UM)(te.Re.userid)||(0,te.UM)(te.Re.token)||"";I(!!p||e.replace(/<|>/g,"").length>0)},[c,p]),!(null!=c&&c.promotion))return null;let G=()=>{if(p){var e;let l=(null==(e=c.inGroup)?void 0:e.orderInGroup)!==void 0?c.inGroup.orderInGroup+1:void 0;(0,eo.UC)(eo.It.DAILY_STREAK,l)}else(0,eo.UC)(eo.It.NOT_LOGGED_IN);u()},B=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(lT.J,{messages:null!=a?a:[],overrideAlignment:"Right"}),(0,x.jsxs)("div",{className:"flex p-3 gap-x-3 h-full",children:[(0,x.jsx)("div",{className:"shrink-0",children:(0,x.jsx)(eS._,{onClick:u,className:(0,d.A)("h-auto w-20 md:w-24"),sizes:"10vw",src:(0,eG.VG)(null==i?void 0:i.square)||(0,eG.VG)(null==i?void 0:i.boxart)||"",alt:(0,eG.GT)(i)})}),(0,x.jsxs)("section",{className:"flex-grow flex flex-col gap-y-2",children:[(0,x.jsx)("span",{className:(0,d.A)("text-body-m font-bold",eC().title),children:T&&_?f("static-daily-streak-tile-title",{day:b}):(null==i||null==(t=i.displayProductName)?void 0:t.text)||(null==i?void 0:i.title)}),(0,x.jsxs)(l9,{children:[N&&(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l4,{showIcon:!0,releaseDate:c.promotion.start})]}),(null==i?void 0:i.longDescription)&&(0,x.jsx)(eZ.$,{className:(0,d.A)("text-body-s",(k||C)&&"opacity-50","prose-p:my-2 prose-strong:text-text-primary text-text-primary max-w-full prose prose-a:type-link hover:prose-a:type-link-hover prose-headings:text-text-primary prose-blockquote:text-text-primary",eC().description),children:null==i?void 0:i.longDescription}),(0,x.jsxs)("div",{ref:v,className:"flex flex-col gap-y-2 mt-auto md:max-w-[16rem] empty:hidden",children:[!!P.length&&(0,x.jsx)(ez.v,{type:r||"list",className:"max-h-[12rem] lg:max-h-[11.5rem]",items:P}),(0,x.jsx)(tI,{}),_&&k&&(0,x.jsxs)("div",{className:"flex gap-y-2 w-full font-bold text-sm uppercase",children:[(0,x.jsx)(lj.A,{className:"me-2 w-5 h-5"}),f("claimed")]}),D&&(0,x.jsx)(lC,{onClick:G,children:f("connect-id")}),D||C||k?null:(0,x.jsxs)(lC,{onClick:G,disabled:!N,ariaLabel:A?"".concat((null==i||null==(n=i.displayProductName)?void 0:n.text)||(null==i?void 0:i.title)," ").concat(f("locked")):void 0,children:[A&&(0,x.jsx)(ly,{}),N&&(0,x.jsx)("span",{children:f("claim")})]}),_&&C&&(0,x.jsxs)("div",{className:(0,d.A)("flex font-bold items-center text-sm uppercase",eC().info),children:[(0,x.jsx)(nK.A,{className:"text-xl me-2"}),(0,x.jsx)("span",{children:f("missed")})]})]})]})]})]});return(0,x.jsx)("div",{title:(null==i||null==(s=i.displayProductName)?void 0:s.text)||(null==i?void 0:i.title)||"","data-testid":e8.Vy,"data-theme":S||"none",className:(0,d.A)("roun
1ded-lg w-full h-full shadow-xnear relative",eC().main,N&&eC().activePromotionTile),children:B})},[tS.Us.GiganticDailyStreak]:function(e){var l,t,n,s,i;let{imageType:r,item:a,pkgVariant:u,marketingMessages:c}=e,m=(0,o.use)(eL),p=(0,K.J)(),f=H(),{t:v}=(0,j.Bd)(),{0:g,1:y}=(0,o.useState)(!!p.user),b=f&&(null==f||null==(l=f.inGroup)?void 0:l.state),w=b===O.purchasable,N=b===O.owned,k=b===O.hidden,C=b===O.unclaimable,A=b===O.unavailable,_=f&&(null==(t=f.inGroup)?void 0:t.autoClaimBonus)&&g,I=!C&&!k&&!N,S=k||C,P=(0,o.useContext)(h.r),T="transparent"===r,D=(0,eB.Qx)(a),G=(0,o.useContext)(eF).staticStreak,B=G&&!g;(0,o.useEffect)(()=>{let e=(0,te.UM)(te.Re.userid)||(0,te.UM)(te.Re.token)||"";y(!!p.user||e.replace(/<|>/g,"").length>0)},[f,p]);let[M]=ti({item:a}),E=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(lT.J,{messages:null!=c?c:[]}),(0,x.jsxs)("div",{className:(0,d.A)("h-full flex flex-col space-y-4 relative"),children:[(0,x.jsx)(eS._,{onClick:m,sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("w-full rounded-t-lg",T?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,eG.VG)(null==a?void 0:a.largeTile),alt:(0,eG.GT)(a)}),(0,x.jsxs)("section",{className:(0,d.A)("h-full w-full flex flex-col space-y-2",!T&&"px-4 pb-4"),children:[(0,x.jsx)("h3",{className:(0,d.A)("text-body-m font-bold",eC().title),children:G?v("static-daily-streak-bonus-tile-title"):(null==a||null==(n=a.displayProductName)?void 0:n.text)||(null==a?void 0:a.title)}),(0,x.jsxs)(l9,{children:[(A||B)&&(0,x.jsx)(l0,{children:v("daily-streak-claim")}),w&&(0,x.jsx)(l7,{showIcon:!0}),C&&(0,x.jsx)(l0,{className:"opacity-60 !text-[inherit]",children:v("daily-streak-claim-failed")}),k&&(0,x.jsx)(l0,{className:"opacity-60 !text-[inherit]",children:v("daily-streak-bonus-missed")})]}),(null==a?void 0:a.longDescription)&&(0,x.jsx)(eZ.$,{className:(0,d.A)("text-body-s [&>:nth-child(2)]:mt-2 prose-p:my-2 prose-strong:text-text-primary text-text-primary max-w-full prose prose-a:type-link hover:prose-a:type-link-hover prose-headings:text-text-primary prose-blockquote:text-text-primary",eC().description),"data-testid":e8.eL,children:null==a?void 0:a.longDescription}),(0,x.jsxs)("div",{className:"flex flex-col space-y-2 mt-auto w-full empty:hidden",children:[!!D.length&&(0,x.jsx)(ez.v,{type:u||"list",className:"max-h-[12rem] lg:max-h-[11.5rem]",items:D}),(0,x.jsx)(tI,{}),g&&N&&(0,x.jsxs)("div",{className:"flex space-y-2 w-full font-bold text-sm uppercase",children:[(0,x.jsx)(lj.A,{className:"me-2 w-5 h-5"}),v("claimed")]}),I&&!B&&(_&&A?(0,x.jsxs)("div",{className:(0,d.A)("flex font-bold items-center text-sm uppercase",eC().info),children:[(0,x.jsx)(ly,{className:"text-xl me-2"}),(0,x.jsx)("span",{children:v("daily-streak-on-track")})]}):(0,x.jsxs)(lC,{disabled:!w,onClick:()=>{if(g){var e;let l=(null==f||null==(e=f.inGroup)?void 0:e.orderInGroup)!==void 0?f.inGroup.orderInGroup+1:void 0;(0,eo.UC)(eo.It.DAILY_STREAK,l)}else(0,eo.UC)(eo.It.NOT_LOGGED_IN);m()},ariaLabel:A?"".concat((null==a||null==(s=a.displayProductName)?void 0:s.text)||(null==a?void 0:a.title)," ").concat(v("locked")):void 0,children:[A&&(0,x.jsx)(ly,{}),w&&v("claim")]})),S&&(0,x.jsxs)("div",{className:(0,d.A)("flex font-bold items-center text-sm uppercase",eC().info),children:[(0,x.jsx)(nK.A,{className:"text-xl me-2"}),(0,x.jsx)("span",{children:v("missed")})]})]})]})]})]});return(0,x.jsx)("div",{ref:M,title:(null==a||null==(i=a.displayProductName)?void 0:i.text)||(null==a?void 0:a.title)||"","data-testid":e8.Vy,id:ee.nf,"data-theme":P||"none",className:(0,d.A)("rounded-lg w-full h-full shadow-xnear relative",T&&"p-4",eC().main,(N||k||C)&&"opacity-60",w&&eC().activePromotionTile),children:E})},[tS.Us.ListDailyStreakV2]:function(e){var l;let{item:t,marketingMessages:n}=e,s=(0,o.useContext)(h.r),i=n0(),{sku:r,orderInGroup:a,user:u,isAvailable:c,isClaimed:m,isMissedState:p,isLocked:f,handleClick:v}=nX(),j=(0,eB.Qx)(t);if(!(null!=r&&r.promotion))return null;let g=j.length>0,y=j.length>1;return(0,x.jsxs)("div",{className:(0,d.A)("w-full",eN().tileRoot),children:[(0,x.jsx)(n3,{orderInGroup:a,active:c,locked:f,startDate:r.promotion.start,endDate:r.promotion.end}),(0,x.jsxs)("div",{title:(null==t||null==(l=t.displayProductName)?void 0:l.text)||(null==t?void 0:t.t
1itle)||"","data-testid":e8.Vy,"data-theme":s||"none",className:(0,d.A)("rounded-lg w-full relative overflow-visible",eC().main,eN().cardBackground,c&&eN().activeTile),children:[(0,x.jsx)(lT.J,{messages:null!=n?n:[],overrideAlignment:"Right"}),(0,x.jsxs)("div",{ref:i,className:"flex items-center gap-x-3 overflow-visible py-3 ps-3 box-border h-20",children:[g?(0,x.jsx)("div",{className:(0,d.A)("flex flex-wrap items-center gap-x-3 gap-y-2 min-w-0",!y&&["overflow-visible",eN().rewardDetailsSlot]),children:j.map((e,l)=>{var n,s;return(0,x.jsx)(so,{item:t,detailItem:e,imageClassName:"h-auto w-14 pointer-events-none",imageSizes:eM,triggerClassName:"flex min-w-0 shrink-0 cursor-pointer items-center gap-x-3 border-0 bg-transparent p-0 text-start"},null!=(n=null==(s=e.sys)?void 0:s.id)?n:"".concat(e.detailName,"-").concat(l))})}):(0,x.jsx)("div",{className:(0,d.A)("min-w-0 overflow-visible",eN().rewardDetailsSlot),children:(0,x.jsx)(eS._,{className:"h-auto w-14",sizes:eM,src:eE(t),alt:(0,eG.GT)(t)})}),(0,x.jsx)("div",{className:(0,d.A)("flex flex-1 items-center justify-end gap-1 min-w-0 ms-6 overflow-visible",eN().claimButtonSlot),children:(0,x.jsx)(st,{item:t,hasUserId:!!u,isAvailable:c,isClaimed:m,isMissed:p,isLocked:f,onClick:()=>v(!!u)})})]})]})]})},[tS.Us.GiganticDailyStreakV2]:function(e){var l,t;let{item:n,marketingMessages:s}=e,{t:i}=(0,j.Bd)(),r=(0,o.useContext)(h.r),{sku:a,user:u,isAvailable:c,isClaimed:m,isMissedState:p,isLocked:f,handleClick:v}=nX(),g=(0,eB.Qx)(n),[y]=ti({item:n}),b=n0(),w=g.length>0,N=eE(n),k=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(lT.J,{messages:null!=s?s:[]}),(0,x.jsxs)("section",{className:"relative z-[1] flex h-full w-full flex-col items-center gap-4 px-4 py-5 text-center",children:[(0,x.jsx)("h3",{className:(0,d.A)(n1,si().finalRewardTitle),children:i("daily-streak-v2-final-reward-title",{defaultValue:"Final Reward!"})}),w?(0,x.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:g.map((e,l)=>{var t,s;return(0,x.jsx)(so,{item:n,detailItem:e,imageClassName:"h-auto w-32 pointer-events-none",imageSizes:eM,triggerClassName:"flex cursor-pointer items-center justify-center border-0 bg-transparent p-0",drawerOffset:0,includeQuantityInTrigger:!1,quantityVariant:"finalReward"},null!=(t=null==(s=e.sys)?void 0:s.id)?t:"".concat(e.detailName,"-").concat(l))})}):(0,x.jsx)("div",{className:"flex items-center justify-center",children:(0,x.jsx)(eS._,{sizes:eM,className:"h-auto w-32",src:N,alt:(0,eG.GT)(n)})}),(0,x.jsx)("div",{className:"mt-auto flex w-full flex-col items-center justify-center gap-2 min-h-14 empty:hidden",children:(0,x.jsx)(st,{item:n,hasUserId:!!u,isAvailable:c,isClaimed:m,isMissed:p,isLocked:f,onClick:()=>v(!!u)})})]})]});return(0,x.jsxs)("div",{ref:b,className:(0,d.A)("w-full",eN().tileRoot),children:[(0,x.jsx)("div",{className:"flex justify-end px-3 pt-2 pb-1.5 min-h-4",children:(0,x.jsx)(n4,{active:c,endDate:null==a||null==(l=a.promotion)?void 0:l.end})}),(0,x.jsxs)("div",{ref:y,title:(null==n||null==(t=n.displayProductName)?void 0:t.text)||(null==n?void 0:n.title)||"","data-testid":e8.Vy,id:ee.nf,"data-theme":r||"none",className:(0,d.A)("relative h-full w-full rounded-lg overflow-hidden",eN().finalRewardCard,c&&eN().activeTile),children:[(f||p)&&(0,x.jsx)("div",{className:"absolute inset-0 z-[2] rounded-[inherit] bg-black-40 pointer-events-none","aria-hidden":!0}),k]})]})},[tS.Us.RedeemCode]:function(e){var l,t;let n,s,i,{imageType:r,pkgVariant:a,item:u,marketingMessages:c}=e,{redeemState:m}=(n=(0,o.useContext)(sd),s=(0,o.useContext)(su),i=(0,o.useContext)(sc),(0,o.useMemo)(()=>({code:null==n?void 0:n.code,setCode:null==n?void 0:n.setCode,redeemState:null==s?void 0:s.redeemState,setRedeemState:null==s?void 0:s.setRedeemState,listViewItem:null==i?void 0:i.listViewItem,setListViewItem:null==i?void 0:i.setListViewItem}),[n,s,i])),p=(0,o.useContext)(h.r),{t:f}=(0,j.Bd)(),v="transparent"===r,g=(0,eB.Qx)(u),[y]=ti({item:u});return(0,x.jsxs)("div",{ref:y,title:(null==u||null==(l=u.displayProductName)?void 0:l.text)||(null==u?void 0:u.title)||"","data-testid":e8.Vy,"data-theme":p||"none",className:(0,d.A)("roun
1ded-lg w-full h-full shadow-xnear relative",v&&"p-4",eC().main),children:[(0,x.jsx)(lT.J,{messages:null!=c?c:[]}),(0,x.jsxs)("div",{className:(0,d.A)("h-full flex flex-col space-y-4 relative"),children:[(0,x.jsx)(eS._,{sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("w-full rounded-t-lg",v?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,eG.VG)(null==u?void 0:u.largeTile),alt:(0,eG.GT)(u)}),(0,x.jsxs)("section",{className:(0,d.A)("h-full w-full flex flex-col space-y-2",!v&&"px-4 pb-4"),children:[(0,x.jsx)("h3",{className:"text-body-m font-bold",children:(null==u||null==(t=u.displayProductName)?void 0:t.text)||(null==u?void 0:u.title)}),(null==u?void 0:u.longDescription)&&(0,x.jsx)(eZ.$,{className:"text-body-s [&>:nth-child(2)]:mt-2","data-testid":e8.eL,children:null==u?void 0:u.longDescription}),(0,x.jsx)("div",{className:(0,d.A)("w-full flex-col h-auto rounded-lg text-body-s [&::-webkit-scrollbar-track]:!bg-transparent flex empty:hidden",eC().tileGroupContent),children:(0,x.jsx)(ez.v,{type:a||"list",className:"max-h-[10.5rem]",items:g})}),(0,x.jsxs)("div",{className:"flex flex-col space-y-2 mt-auto w-full empty:hidden",children:[(0,x.jsx)(tI,{}),m===er.Succeeded&&(0,x.jsxs)("div",{className:"flex space-y-2 w-full font-bold text-sm uppercase",children:[(0,x.jsx)(lj.A,{className:"me-2 w-5 h-5"}),f("claimed")]})]})]})]})]})},[tS.Us.IconHeader]:function(e){var l,t,n;let{pkgVariant:s,item:i,additionalData:r,marketingMessages:a}=e,u=(0,o.use)(eL),m=(0,sm.w)(r),p=(0,eB.Qx)(i),f=(0,o.useContext)(h.r),v=ta(),j=lO(),g=ls(),y=(null==i?void 0:i.description)||(null==i?void 0:i.longDescription),{getDynamicMarketingMessages:b}=(0,e9.V)(),w=b(e9.k.tile),N=b(e9.k.aboveBuyButton,{items:(0,c.U)([i])}),[k]=ti({item:i});return(0,x.jsxs)("div",{ref:k,title:(null==i||null==(l=i.displayProductName)?void 0:l.text)||(null==i?void 0:i.title)||"","data-tile":tS.Us.IconHeader,"data-testid":e8.Vy,"data-theme":f||"none",className:(0,d.A)("rounded-lg w-full h-full shadow-xnear relative",eC().main),children:[(0,x.jsx)(lT.J,{messages:(a||[]).concat(w)}),(0,x.jsxs)("div",{className:"flex flex-col h-full rounded-lg overflow-hidden",children:[(0,x.jsxs)("div",{className:"w-full grow-0",children:[(0,x.jsx)(eS._,{onClick:u,sizes:"100vw",className:"absolute rounded-t-lg top-0 w-full",src:(0,eG.VG)(null==i?void 0:i.largeTile),alt:(0,eG.GT)(null==i?void 0:i.largeTile)}),(0,x.jsx)("div",{className:"relative w-full h-full pointer-events-none",children:(0,x.jsxs)("div",{className:(0,d.A)(eC().header,"flex flex-row w-full h-full px-4 py-6 content-between overflow-hidden gap-x-4"),children:[(0,x.jsxs)("div",{className:"flex flex-col w-full h-full justify-center",children:[(0,x.jsx)("p",{className:(0,d.A)("text-headline-m font-bold pb-1",eC().title),children:(null==i||null==(t=i.displayProductName)?void 0:t.text)||(null==i?void 0:i.title)}),y&&(0,x.jsx)(eZ.$,{className:(0,d.A)(eC().description,"text-body-s","prose-strong:text-text-primary text-text-primary max-w-full prose prose-a:type-link hover:prose-a:type-link-hover prose-headings:text-text-primary prose-blockquote:text-text-primary"),"data-testid":e8.lo,children:y}),(0,x.jsxs)(l9,{className:(0,d.A)("rounded py-0.5 leading-none rtl:left-[unset] rtl:right-1.5"),children:[(0,x.jsx)(l2,{showIcon:!0}),(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l5,{showIcon:!0}),(0,x.jsx)(l1,{}),(0,x.jsx)(l8,{})]})]}),(null==i?void 0:i.logo)&&(0,x.jsx)("div",{className:"self-center",children:(0,x.jsx)(eS._,{className:"max-w-[100px] min-h-[60px] aspect-auto",sizes:"100px",src:(0,eG.VG)(null==i?void 0:i.logo),alt:(0,eG.GT)(null==i?void 0:i.logo)})})]})})]}),(0,x.jsxs)("section",{className:(0,d.A)("w-full flex flex-col gap-y-2 grow pt-4 relative px-4 pb-4",eC().headerSection),children:[(0,x.jsx)(ez.v,{type:s||"grid",items:p,className:"max-h-[12rem] lg:max-h-[11.5rem]",legalText:null==m||null==(n=m.chestLegalText)?void 0:n.locText}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto w-full",children:[!!N.length&&(0,x.jsx)(lT.J,{messages:N,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),v?(0,x.jsx)(lk,{}):(0,x.jsxs)(lC,{className:"break-all min-[320px]:min-w-max w-full",disabled:g,onClick:j,children:[(0,x.jsx)(lb,{}),(0,x.jsx)(lw,{}),(0,x.jsx)(lN,{}),(0,x.jsx)(tn,{})]})]})]})]})]})},[tS.Us.SelectorOffer]:function(e){var l,t,n;let{imageType:s,item:i,additionalData:r,marketingMessages:a}=e,{t:u}=(0,j.Bd)(),m=(0,o.use)(eL),p=(0,sm.w)(r),f=(0,o.useContext)(h.r),v="transparent"===s,g=(0,eB.Qx)(i),{0:y,1:b}=(0,o.useState)(!1),w=ta(),{getDynamicMarketingMessages:N}=(0,e9.V)(),k=(0,o.useCallback)(e=>{b(!!e)},[b]),C=N(e9.k.tile),A=N(e9.k.aboveBuyButton,{items:(0,c.U)([i])}),[O]=ti({item:i});return(0,x.jsxs)("div",{ref:O,title:(null==i||null==(l=i.displayProductName)?void 0:l.text)||(null==i?void 0:i.title)||"","data-tile":tS.Us.SelectorOffer,"data-testid":e8.Vy,"data-theme":f||"none",className:(0,d.A)("roun
1ded-lg w-full h-full shadow-xnear relative",v&&"p-4",eC().main),children:[(0,x.jsx)(lT.J,{messages:(a||[]).concat(C)}),(0,x.jsxs)("div",{className:"flex flex-col gap-4 relative h-full",children:[(0,x.jsx)("div",{className:"relative w-full aspect-[3.28/1] grow-0 overflow-hidden",children:(0,x.jsx)(eS._,{onClick:m,sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("w-full rounded-t-lg absolute top-0 left-0",v?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,eG.VG)(null==i?void 0:i.largeTile),alt:(0,eG.GT)(i)})}),(0,x.jsxs)("section",{className:(0,d.A)("w-full flex flex-col grow",!v&&"px-4 pb-4"),children:[(0,x.jsx)("span",{className:(0,d.A)("inline-block text-body-m font-bold",eC().title),children:(0,x.jsx)("span",{className:"align-middle",children:(null==i||null==(t=i.displayProductName)?void 0:t.text)||(null==i?void 0:i.title)})}),(0,x.jsxs)(l9,{children:[(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l1,{}),(0,x.jsx)(l8,{})]}),(null==i?void 0:i.longDescription)&&(0,x.jsx)(eZ.$,{className:(0,d.A)(eC().description,"text-body-s","prose-p:my-2 prose-strong:text-text-primary text-text-primary max-w-full prose prose-a:type-link hover:prose-a:type-link-hover prose-headings:text-text-primary prose-blockquote:text-text-primary"),"data-testid":e8.Jq,children:null==i?void 0:i.longDescription}),(0,x.jsx)(ez.v,{item:i,type:"selector",items:g,className:(0,d.A)("h-[7rem]"),legalText:null==p||null==(n=p.chestLegalText)?void 0:n.locText,onSelect:k}),(0,x.jsxs)("div",{className:"flex flex-col gap-y-2 w-full mt-2",children:[!!A.length&&(0,x.jsx)(lT.J,{messages:A,className:"relative !left-0 mb-1"}),(0,x.jsx)(tI,{}),w?(0,x.jsx)(lk,{}):(0,x.jsx)(lP,{disabled:!y,children:y?(0,x.jsx)(tn,{}):u("choose-your-item")})]})]})]})]})},[tS.Us.AnimatedBoxart]:tQ,[tS.Us.AnimatedBoxartCompact]:tQ},sZ={[tS.Us.Event]:function(e){var l,t,n,s,i,r,a,u;let c,{tileGroup:p,tileItems:f,imageType:j,pkgVariant:g,paletteMap:y,msgLink:b,marketingMessages:w}=e,N=(0,M.YY)(),k="transparent"===j,C=(0,o.useContext)(h.r),A=(0,o.useMemo)(()=>null!=p&&p.showEndlessOnEventTile?(0,nQ.E)(N,f):(0,nQ.E)(N,f).filter(e=>{let{items:l}=e;return(0,nQ.q)(N,l)}),[N,null==p?void 0:p.showEndlessOnEventTile,f]),[O]=ti({tileGroup:p,tileItems:f}),{getDynamicMarketingMessages:_}=(0,v.V)(),I=_(e9.k.tile),{0:S,1:P}=(0,o.useState)(()=>{let e=0,l=0;return A.forEach((t,n)=>{t.releaseDate>=l&&t.releaseDate<=(0,le.gZ)()&&(l=t.releaseDate,e=n)}),e});if(!(null!=f&&f.length)||!p)return null;let T=f.some(e=>{var l,t,n;let s=null==N||null==(l=N[(null==e||null==(t=e.sys)?void 0:t.id)||""])?void 0:l[0];return(null==s||null==(n=s.inGroup)?void 0:n.groupType)==="endless"}),D={};for(let e of w||[]){let l;if(b&&e){for(let t of b.filter(l=>{var t;return l.to===(null==(t=e.sys)?void 0:t.id)}))l=l||f.find(e=>{var l;return(null==(l=e.sys)?void 0:l.id)===t.from});null!=(u=l)&&null!=(u=u.sys)&&u.id&&(D[l.sys.id]=[e])}}return(0,x.jsx)("div",{ref:O,title:(null==(l=p.title)?void 0:l.text)||"","data-tile":tS.Us.Event,"data-theme":C||"none","data-testid":e8.Vy,className:(0,d.A)("rounded-lg w-full h-full shadow-xnear",k&&"p-4",eC().main),children:(0,x.jsxs)("div",{className:(0,d.A)("h-full flex flex-col gap-4 relative"),children:[(0,x.jsxs)("div",{className:"w-full aspect-[3.28/1] grow-0 overflow-hidden",children:[I.length>0&&(0,x.jsx)(lT.J,{messages:I}),(0,x.jsx)(eS._,{sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("h-full w-full rounded-t-lg",k?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,eG.VG)(p.headerImage),alt:(0,eG.GT)({title:null==(t=p.title)?void 0:t.text})})]}),(0,x.jsxs)("section",{className:(0,d.A)("w-full flex flex-col gap-y-2",!k&&"px-4 pb-4"),children:[(null==(n=p.title)?void 0:n.text)&&(0,x.jsx)("h3",{className:(0,d.A)("text-body-m font-bold",eC().title),children:null==(s=p.title)?void 0:s.text}),(null==p?void 0:p.description)&&(0,x.jsx)("p",{className:(0,d.A)("text-body-s pb-2",eC().description),children:null==p||null==(i=p.description)?void 0:i.text}),A.length>0&&(0,x.jsxs)(x.Fragment,{children:[A.length>1&&A.some(e=>e.releaseDate)&&(0,x.jsx)("div",{className:(0,d.A)("w-full h-auto p-2 rounded-lg text-body-s space-x-0.5 [&::-webkit-scrollbar-track]:!bg-transparent flex",T&&eC().tabGroup,eC().tileGroupContent),children:A.map((e,l)=>(0,x.jsx)(nS,{timeout:e.releaseDate>=(0,le.gZ)()?e.releaseDate-(0,le.gZ)():0,children:(0,x.jsx)(nW,{isActiveTab:S===l,onClick:()=>P(l),releaseDate:e.releaseDate,tileGroup:p})},e.releaseDate))}),(c=null==(r=A[S])?void 0:r.items,null==c?void 0:c.reduce((e,l)=>{var t,n,s;let i=null==N||null==(t=N[(null==l||null==(n=l.sys)?void 0:n.id)||""])?void 0:t[0],r=(null==i||null==(s=i.inGroup)?void 0:s.groupType)==="endless";return e&&r},!0))?(0,x.jsx)(nD,{tileGroup:p,tileItems:A[S].items,releaseDate:A[S].releaseDate}):null==(a=A[S])||null==(a=a.items)?void 0:a.map(e=>{var l,t,n;return(0,x.jsx)(m.px,{value:e,children:(0,x.jsx)(e7,{children:(0,x.jsx)(nS,{timeout:A[S].releaseDate>=(0,le.gZ)()?A[S].releaseDate-(0,le.gZ)():0,children:(0,x.jsx)(n$,{item:e,pkgVariant:g,paletteId:y.get((null==e||null==(t=e.sys)?void 0:t.id)||""),marketingMessages:(null==(n=e.sys)?void 0:n.id)&&D[e.sys.id]||[]})})})},null==(l=e.sys)?void 0:l.id)})]})]})]})})},[tS.Us.Calendar]:function(e){var l,t,n,s,i,r,a,u;let{tileGroup:p,tileItems:f,calendar:v,pkgVariant:g,marketingMessages:y}=e,{t:b}=(0,j.Bd)(),w=(0,o.useContext)(h.r),N=(0,M.YY)(),k=(0,c.U)(Object.values(N||{}).flat()),C=J(),{getDynamicMarketingMessages:_}=(0,e9.V)(),I=_(e9.k.tile),[S]=ti({tileGroup:p,tileItems:f}),P=new Map(f.map(e=>{var l;return[null==(l=e.sys)?void 0:l.id,e]}));if(!(null!=v&&v.minDate)||!v.maxDate||!v.timeZone)return null;let T=new Date((0,le.gZ)()).getTime(),D=(0,nh.Yd)(T,v.timeZone),G=null,B=new Set,E=[];for(let e of(null==v||null==(r=v.eventsCollection)?void 0:r.items)||[]){if("string"!=typeof(null==e?void 0:e.eventDate))continue;let l=e.eventDate.split("T")[0],t=null==(a=e.itemsCollection)?void 0:a.items,n=(0,c.U)(null==t?void 0:t.map(e=>{var l;return P.get(null==e||null==(l=e.sys)?void 0:l.id)}
1));n.find(e=>"Item"===e.__typename&&k.find(l=>{var t,n;return l.itemId===(null==(t=e.sys)?void 0:t.id)&&(null==(n=l.offerTagsArray)?void 0:n.includes(A.FreeItem))}))&&B.add(l);let s=e.eventDate.substring(0,23),i=(0,t3.LG)("".concat(s,"[").concat(v.timeZone,"]")),r=i.compare(D);(0,t7.ro)(D,i)&&E.push(...n),r>0&&(G=null===G?i:null!=(u=(0,t7.Py)(i,G))?u:null)}let V=(null==(l=G)||null==(l=l.toDate())?void 0:l.getTime())||0,U=E.map(e=>{var l,t,n,s,i;let r=k.find(l=>{var t;return l.itemId===(null==(t=e.sys)?void 0:t.id)}),a=_(e9.k.aboveBuyButton,{items:(0,c.U)([e])});if(!r)return null;let{purchaseState:o}=r,u=(0,eB.Qx)(e),f=null!=(l=null==r?void 0:r.promoLimitCount)?l:0,v=null!=(t=null==r?void 0:r.promoLimitUsed)?t:0,h=v>0&&f>0&&v>=f,j=h&&!(null!=r&&null!=(n=r.offerTags)&&n.includes(A.FreeItem)),y=o===O.owned||(null==r||null==(s=r.offerTags)?void 0:s.includes(A.FreeItem))&&h;return(0,x.jsx)("div",{className:(0,d.A)(lG().main,"p-2 rounded-md"),children:(0,x.jsxs)(m.px,{value:e,children:[(0,x.jsx)(ez.v,{type:g||"grid",className:"max-h-[10.5rem]",transparent:!0,items:u}),y||j?(0,x.jsxs)("div",{className:"pl-2 flex gap-y-2 w-full font-bold text-base items-center",children:[(0,x.jsx)(lj.A,{className:"me-1 w-4 h-4"}),y&&"".concat(b("claimed"),"!"),j&&"".concat(b("purchased"),"!")]}):(0,x.jsxs)(e7,{children:[!(null!=p&&p.hideStockCount)&&(0,x.jsxs)(l9,{className:"py-1 px-2",children:[(0,x.jsx)(l1,{}),(0,x.jsx)(l8,{})]}),!!a.length&&(0,x.jsx)(lT.J,{messages:a,className:"relative !left-0 !mt-0 mb-1"}),(0,x.jsxs)(lP,{className:"w-full",children:[(0,x.jsx)(lw,{}),(0,x.jsx)(lN,{}),(0,x.jsx)(tn,{})]})]})]})},null==(i=e.sys)?void 0:i.id)});return(0,x.jsxs)("div",{"data-theme":w||"none","data-testid":e8.Vy,className:(0,d.A)("relative rounded-lg w-full h-full shadow-xnear",eC().main),ref:S,children:[(0,x.jsx)(lT.J,{messages:(y||[]).concat(I)}),(0,x.jsx)(eS._,{sizes:"100vw sm:50vw md:25vw",className:"absolute inset-0 w-full h-full z-0 object-cover object-top rounded-lg",src:(0,eG.VG)(p.headerImage),alt:(0,eG.GT)({title:null==(t=p.title)?void 0:t.text})}),(0,x.jsx)("div",{className:(0,d.A)(eC().overlay,"absolute inset-0")}),(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsxs)("div",{className:"p-4 pb-0",children:[(null==(n=p.title)?void 0:n.text)&&(0,x.jsx)("h3",{className:(0,d.A)("text-headline-l font-bold mb-1",eC().title),children:null==(s=p.title)?void 0:s.text}),!!V&&(0,x.jsxs)("span",{className:(0,d.A)(eC().info,"font-bold"),children:[(0,x.jsx)(lV.A,{className:"inline me-2"}),(0,x.jsx)(lu,{endDate:V,onDone:C,children:(0,x.jsxs)(j.x6,{i18nKey:"calendar-timer",children:["next ...",(0,x.jsx)(lH,{className:"align-middle uppercase",daysHoursOnly:!0})]})})]})]}),(0,x.jsx)(nu,{timeZone:v.timeZone,className:(0,d.A)("w-full px-3"),minValue:v.minDate,maxValue:v.maxDate,children:(0,x.jsx)(nw,{className:"table-fixed border-spacing-1 border-separate w-full h-full",children:e=>{let l=e.toString(),t=B.has(l),n=(0,t7.ro)(D,e),s=!n&&0>e.compare(D);return(0,x.jsx)(nv,{"data-past":s||void 0,"data-today":n||void 0,"data-event":!!t||void 0,date:e,className:(0,d.A)(eC().calendarCell,"w-full h-full rounded outline-none"),children:(0,x.jsxs)(lv.yt,{children:[(0,x.jsxs)(lv.ut,{isDisabled:n,className:(0,d.A)("relative flex flex-col items-center justify-end font-bold overflow-hidden","h-full w-full aspect-square","disabled:cursor-default select-none"),children:[t&&(0,x.jsx)("div",{className:"relative w-full h-full grow",children:(0,x.jsx)("div",{className:"absolute inset-0",children:(0,x.jsx)(nC,{width:"80%",height:"unset",className:(0,d.A)(eC().calendarEvent,"!h-[unset] translate-x-[10%] -translate-y-1")})})}),(0,x.jsx)("span",{className:"shrink",children:e.day})]}),(0,x.jsx)(nA,{children:b(0>D.compare(e)?"calendar-future-offers":"calendar-past-offers")})]})},l)}})})]}),(0,x.jsxs)("div",{className:"relative flex flex-col gap-2 p-4",children:[(0,x.jsx)("span",{children:b("calendar-todays-offers")}),(0,x.jsxs)("section",{className:"w-full flex flex-col gap-y-2",children:[(null==p?void 0:p.description)&&(0,x.jsx)("p",{className:(0,d.A)("text-body-s pb-2",eC().description),children:null==p||null==(i=p.description)?void 0:i.text}),U]})]})]})},[tS.Us.Progression]:function(e){var l,t,n,s,i,r,a;let{tileGroup:u,tileItems:p,imageType:f,pkgVariant:v,showCountdownWithStock:g}=e,{t:y}=(0,j.Bd)(),b=(0,o.useContext)(h.r),{getDynamicMarketingMessages:w}=(0,e9.V)(),N="transparent"===f,k=(0,M.YY)(),{user:C}=(0,K.J)(),A=k&&k[(null==(l=p[0])||null==(l=l.sys)?void 0:l.id)||""],_=A&&(null==(t=A[0])||null==(t=t.promotion)?void 0:t.end)||void 0,I=w(e9.k.tile),[S]=ti({tileGroup:u,tileItems:p}),P=p.map((e,l)=>{var t,n,s,i;let r=null==k||null==(t=k[null!=(n=null==e||null==(s=e.sys)?void 0:s.id)?n:""])?void 0:t[0],a=w(e9.k.aboveBuyButton,{items:(0,c.U)([e])});if(!r)return null;let{purchaseState:o}=r,p=(0,eB.Qx)(e);return(0,x.jsx)("div",{ref:S,className:(0,d.A)("w-full h-auto p-2 rounded-lg text-body-s space-x-0.5 [&::-webkit-scrollbar-track]:!bg-transparent",eC().tileGroupContent,o===O.unavailable||!C&&l>0?eC().unavailableOffer:""),children:(0,x.jsxs)(m.px,{value:e,children:[(0,x.jsx)(ez.v,{type:v||"list",className:"max-h-[10.5rem]",items:p,showRarityBadge:!!u.showRarityBadge}),u.showSeparatorInGroups&&(0,x.jsx)("hr",{className:"bg-current h-px opacity-20 w-full"}),o===O.owned&&(0,x.jsxs)("div",{className:(0,d.A)("pl-2 flex gap-y-2 w-full font-bold text-base items-center",eC().progressionClaimedBtn),children:[(0,x.jsx)(lj.A,{className:"me-1 w-4 h-4"}),"".concat(y("claimed"),"!")]}),o!==O.owned&&(0,x.jsxs)(e7,{children:[!(null!=u&&u.hideStockCount)&&(0,x.jsx)("div",{className:"py-1",children:(0,x.jsxs)(l9,{children:[!g&&(0,x.jsx)(l1,{}),(0,x.jsx)(l8,{})]})}),!!a.length&&C&&(o===O.unavailable||o===O.purchasable)&&(0,x.jsx)(lT.J,{messages:a,className:"relative !left-0 !mt-0 mb-1"}),!C&&0===l&&(0,x.jsxs)(lP,{className:"w-full",children:[(0,x.jsx)(lw,{}),(0,x.jsx)(tn,{})]}),!C&&l>0&&(0,x.jsx)(lP,{className:"w-full flex items-center",disabled:!0,children:(0,x.jsx)(ly,{})}),C&&o===O.unavailable&&(0,x.jsx)(lP,{className:"w-full",disabled:!0,children:(0,x.jsxs)("span",{className:"flex items-center",children:[(0,x.jsx)(ly,{className:"mr-1"}),(0,x.jsx)(tn,{})]})}),C&&o===O.purchasable&&(0,x.jsx)(lP,{className:"w-full",children:(0,x.jsx)(tn,{})})]})]})},null==e||null==(i=e.sys)?void 0:i.id)});return 0===P.length||null===u?null:(0,x.jsx)("div",{"data-tile":tS.Us.Progression,title:(null==u||null==(n=u.title)?void 0:n.text)||"","data-theme":b||"none","data-testid":e8.Vy,className:(0,d.A)("roun
1ded-lg w-full h-full shadow-xnear",N&&"p-4",eC().main),children:(0,x.jsxs)("div",{className:"h-full flex flex-col gap-4 relative",children:[I.length>0&&(0,x.jsx)(lT.J,{messages:I}),(0,x.jsx)(eS._,{sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("w-full rounded-t-lg",N?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,eG.VG)(u.headerImage),alt:(0,eG.GT)({title:null==(s=u.title)?void 0:s.text})}),(0,x.jsxs)("section",{className:(0,d.A)("h-full w-full flex flex-col gap-y-2",!N&&"px-4 pb-4"),children:[(null==(i=u.title)?void 0:i.text)&&(0,x.jsx)("h3",{className:(0,d.A)("text-body-m font-bold",eC().title),children:null==(r=u.title)?void 0:r.text}),!g&&!!_&&(0,x.jsx)(lu,{endDate:_,children:(0,x.jsxs)("span",{className:"text-[rgb(var(--color-promo-attribute-rgb))] font-bold",children:[(0,x.jsx)(lV.A,{className:"inline me-1"}),(0,x.jsx)(lH,{className:"align-middle uppercase",daysHoursOnly:!0})]})}),(null==u?void 0:u.description)&&(0,x.jsx)("p",{className:(0,d.A)("text-body-s pb-2",eC().description),children:null==u||null==(a=u.description)?void 0:a.text}),g&&(0,x.jsx)("div",{className:"flex justify-center mb-4",children:(0,x.jsx)(lm,{daysHoursOnly:!0,className:(0,d.A)("w-3/4 h-8")})}),P]})]})})},[tS.Us.ProgressivePack]:sE,[tS.Us.ProgressionTable]:function(e){var l,t;let{tileGroup:n,tileItems:s,imageType:i,paletteMap:r,marketingMessages:a,msgLink:u}=e,p="transparent"===i,{t:f}=(0,j.Bd)(),v=(0,M.YY)(),g=s.map(e=>{var l;return(null==v?void 0:v[(null==(l=e.sys)?void 0:l.id)||""])||[]}).flat().every(e=>(null==e?void 0:e.purchaseState)===O.owned),[y]=ti({tileGroup:n,tileItems:s}),b=(0,o.useMemo)(()=>s.some(e=>{var l;let t=null!=u?u:[];if((0,c.U)(t.filter(l=>{var t;return l.from===(null==(t=e.sys)?void 0:t.id)}).map(e=>null==a?void 0:a.find(l=>{var t;return(null==l||null==(t=l.sys)?void 0:t.id)===e.to}))).length>0)return!0;let n=(null==(l=e.marketingMessagesCollection)?void 0:l.items)||[];return(0,c.U)(n).length>0}),[s,u,a]);return(0,x.jsxs)("section",{className:(0,d.A)("md:h-max"),children:[(0,x.jsx)(eS._,{src:null!=(l=null==(t=n.headerImage)?void 0:t.url)?l:"",alt:"",sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("w-full rounded-t-lg",p?"object-contain w-auto":"object-cover")}),g&&(0,x.jsxs)("div",{className:(0,d.A)("h-12 w-full flex items-center justify-center text-lg font-bold",eC().banner),children:[(0,x.jsx)(lj.A,{className:"-mt-1 me-1"}),(0,x.jsx)("span",{children:f("all-deals-claimed")})]}),(0,x.jsx)("div",{ref:y,className:(0,d.A)("[&>*]:border-t","[&>*]:!border-b-0","[&>*:last-child]:rounded-b-lg"),children:s.map((e,l)=>{var t,n,s,o,d;let p=null!=(t=e.sys)&&t.id?null==v?void 0:v[null==(n=e.sys)?void 0:n.id]:[],f=null!=u?u:[],j=(0,c.U)(f.filter(l=>{var t;return l.from===(null==(t=e.sys)?void 0:t.id)}).map(e=>null==a?void 0:a.find(l=>{var t;return(null==l||null==(t=l.sys)?void 0:t.id)===e.to})));return(0,x.jsx)(m.px,{value:e,children:(0,x.jsx)(e7,{children:(0,x.jsx)(h.r.Provider,{value:r.get((null==(o=e.sys)?void 0:o.id)||"")||r.get("".concat(l)||"")||"",children:(0,x.jsx)(sh,{showLockWithPrice:(null==p||null==(d=p[0])||null==(d=d.inGroup)?void 0:d.state)===O.unavailable,item:e,imageType:i,marketingMessages:j,reserveMarketingColumn:b})})})},(null==(s=e.sys)?void 0:s.id)||"")})})]})},[tS.Us.BattlePass]:function(e){var l,t,n,s;let{tileGroup:i,tileItems:r,imageType:a,pkgVariant:u,marketingMessages:c}=e,p="transparent"===a,f=(0,o.useContext)(h.r),{getDynamicMarketingMessages:v}=(0,e9.V)(),j=v(e9.k.tile),[g]=ti({tileGroup:i,tileItems:r});return(0,x.jsxs)("div",{ref:g,"data-tile":tS.Us.BattlePass,"data-theme":f||"none","data-testid":e8.Vy,className:(0,d.A)("rounded-lg w-full h-full shadow-xnear relative",p&&"p-4",eC().main),children:[(0,x.jsx)(t$.J,{messages:(c||[]).concat(j)}),(0,x.jsxs)("div",{className:(0,d.A)("h-full flex flex-col gap-4"),children:[(0,x.jsxs)("div",{className:"w-full aspect-[3.28/1] grow-0 overflow-hidden",children:[(0,x.jsx)(eS._,{sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("h-full w-full rounded-t-lg",p?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,eG.VG)(i.headerImage),alt:(0,eG.GT)({title:null==(l=i.title)?void 0:l.text})}),(0,x.jsx)(m.px,{value:null==r?void 0:r[0],children:(0,x.jsx)(l9,{className:(0,d.A)("absolute top-1.5 left-1.5 rounded py-0.5 px-1 leading-none rtl:left-[unset] rtl:right-1.5",eC().tilePromo),children:(0,x.jsx)(l7,{showIcon:!0})})})]}),(0,x.jsxs)("section",{className:(0,d.A)("w-full flex flex-col gap-y-2",!p&&"px-4 pb-4"),children:[(0,x.jsxs)("div",{children:[(null==(t=i.title)?void 0:t.text)&&(0,x.jsx)("h3",{className:(0,d.A)("text-body-m font-bold [float:inline-start]",eC().title),children:null==(n=i.title)?void 0:n.text}),(0,x.jsx)(m.px,{value:null==r?void 0:r[0],children:(0,x.jsxs)("span",{className:"[float:inline-end]",children:[(0,x.jsx)(l1,{}),(0,x.jsx)(l8,{})]})})]}),(null==i?void 0:i.description)&&(0,x.jsx)("p",{className:(0,d.A)("text-body-s pb-2",eC().description),children:null==i||null==(s=i.description)?void 0:s.text}),r.length>0&&(0,x.jsx)(x.Fragment,{children:r.map(e=>{var l;return(0,x.jsx)(m.px,{value:e,children:(0,x.jsx)(e7,{children:(0,x.jsx)(tX,{pkgVariant:u})})},null==(l=e.sys)?void 0:l.id)})})]})]})]})},[tS.Us.AllInOneBundle]:tR,[tS.Us.AllInOneBundleV2]:function(e){let{tileGroup:l,tileItems:t,marketingMessages:n,paletteMap:s,shouldTileFlip:i,msgLink:r,pkgVariant:a,showCountdownWithStock:o}=e;return(0,x.jsx)(tR,{tileGroup:l,tileItems:t,marketingMessages:n,paletteMap:s,shouldTileFlip:i,msgLink:r,pkgVariant:a,showCountdownWithStock:o,renderTitle:e=>(0,x.jsx)("div",{className:"text-center text-4xl font-bold",children:e}),groupItemTileComponent:tF,groupItemsContainerClassName:"grid gap-y-2 grid-cols-1 sm:flex sm:gap-4",marketingMessageConfig:{includeBundleItemMarketingMessages:!0,position:"after",className:"relative flex justify-center gap-2 text-body-l font-bold items-center"}})},[tS.Us.AllInOneBundleV3]:function(e){var l;let{tileGroup:t,tileItems:n,marketingMessages:s,paletteMap:i,shouldTileFlip:r,msgLink:a,pkgVariant:o,showCountdownWithStock:u,imageType:c}=e,{t:m}=(0,j.Bd)(),p=tB(n),f=null==(l=tM({bundleItem:p,msgLink:a,marketingMessages:s,includeBundleItemMarketingMessages:!0})[0])||null==(l=l.message)||null==(l=l.text)?void 0:l.trim();return(0,x.jsx)(tR,{className:"mx-auto min-w-0 max-w-xl",tileGroup:t,tileItems:n,marketingMessages:s,paletteMap:i,shouldTileFlip:r,msgLink:a,pkgVariant:o,showCountdownWithStock:u,imageType:c,countdownInHeader:!0,hideHeaderImage:!0,renderTitle:()=>null,groupItemTileComponent:tQ,compactGroupItems:!0,hideGroupItemProductName:!0,fitGroupItemsToSlide:!0,groupItemsWrapperClassName:(0,d.A)(tJ().stageShadow,"relative min-w-0"),renderGroupItemsContainer:tW,contentClassName:"grid min-w-0 grid-cols-1 gap-2 px-3 pb-3 pt-1",hideDescription:!0,buyAllButton:(0,x.jsx)(tU,{item:p,label:m("all-in-one-buy-all"),wrapperClassName:"relative z-10 mx-auto mt-0 w-full min-w-0 max-w-xs",className:(0,d.A)(tJ().bundleButton,"w-full min-w-0 overflow-visible py-1.5 ps-2 pe-1"),priceClassName:(0,d.A)(tJ().bundleButtonPrice,"flex shrink-0 items-center justify-center self-stretch rounded-md px-3 py-1 text-base sm:px-3 md:px-4 lg:px-5"),badge:f?(0,x.jsx)("span",{className:"relative h-0 
1w-12 shrink-0 self-center -ms-4",children:(0,x.jsx)("span",{className:(0,d.A)(tJ().bundleBadge,"text-caption absolute left-1/2 top-1/2 z-10 flex size-12 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full px-1 text-center uppercase"),children:f})}):null})})},[tS.Us.TwoColumns]:function(e){var l,t,n,s,i,r;let{tileGroup:a,tileItems:u,imageType:c,marketingMessages:p}=e,f="transparent"===c,v=(0,o.useContext)(h.r),{getDynamicMarketingMessages:j}=(0,e9.V)(),g={backgroundImage:"url(".concat(null!=(l=null==(t=a.headerImage)?void 0:t.url)?l:"",")")},y=j(e9.k.tile),[b]=ti({tileGroup:a,tileItems:u});return(0,x.jsxs)("div",{ref:b,"data-tile":tS.Us.TwoColumns,"data-theme":v||"none","data-testid":e8.Vy,className:(0,d.A)("rounded-lg w-full h-full shadow-xnear relative",f&&"p-4",eC().main),children:[(0,x.jsx)(t$.J,{messages:(p||[]).concat(y)}),(0,x.jsxs)("div",{className:(0,d.A)("h-full flex flex-col gap-4 "),children:[(0,x.jsx)("div",{className:"w-full grow-0 overflow-hidden bg-no-repeat bg-cover bg-center rounded-t-lg",style:g,children:(0,x.jsxs)("div",{className:"px-4 py-6",children:[(null==(n=a.title)?void 0:n.text)&&(0,x.jsx)("h3",{className:(0,d.A)("text-body-m font-bold",eC().title),children:null==(s=a.title)?void 0:s.text}),(null==a?void 0:a.description)&&(0,x.jsx)("p",{className:(0,d.A)("text-body-s",eC().description),children:null==a||null==(i=a.description)?void 0:i.text}),(0,x.jsx)(m.px,{value:null==u?void 0:u[0],children:(0,x.jsxs)(l9,{children:[(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l8,{})]})},null==u||null==(r=u[0])||null==(r=r.sys)?void 0:r.id)]})}),(0,x.jsx)("section",{className:(0,d.A)("w-full flex flex-col gap-y-2",!f&&"px-4 pb-4"),children:u.length>0&&(0,x.jsx)("div",{className:"grid grid-cols-2 gap-2",children:u.map(e=>{var l;return(0,x.jsx)(m.px,{value:e,children:(0,x.jsx)(e7,{children:(0,x.jsx)(sJ,{})})},null==(l=e.sys)?void 0:l.id)})})})]})]})},[tS.Us.SelectorOfferBundle]:function(e){var l,t,n;let{imageType:s,tileItems:i,marketingMessages:r,tileGroup:a}=e,{0:u,1:c}=(0,o.useState)(0),p=(0,o.useContext)(h.r),f="transparent"===s,[v]=ti({tileGroup:a,tileItems:i});return(0,x.jsxs)("div",{ref:v,"data-tile":tS.Us.SelectorOfferBundle,"data-testid":e8.Vy,"data-theme":p||"none",className:(0,d.A)("rounded-lg w-full h-full shadow-xnear relative",f&&"p-4",eC().main),children:[(0,x.jsx)(lT.J,{messages:r||[]}),(0,x.jsxs)("div",{className:"flex flex-col gap-4 relative h-full",children:[(0,x.jsx)("div",{className:"relative w-full aspect-[3.28/1] grow-0 overflow-hidden",children:(0,x.jsx)(eS._,{sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("w-full rounded-t-lg absolute top-0 left-0",f?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,eG.VG)(a.headerImage),alt:(0,eG.GT)({title:null==(l=a.title)?void 0:l.text})})}),(0,x.jsxs)("section",{className:(0,d.A)("w-full flex flex-col grow",!f&&"px-4 pb-4"),children:[(0,x.jsx)("span",{className:(0,d.A)("inline-block text-body-m font-bold",eC().title),children:(0,x.jsx)("span",{className:"align-middle",children:null==a||null==(t=a.title)?void 0:t.text})}),(0,x.jsx)(m.px,{value:null==i?void 0:i[u],children:(0,x.jsxs)(l9,{children:[(0,x.jsx)(l7,{showIcon:!0}),(0,x.jsx)(l1,{}),(0,x.jsx)(l8,{})]})}),(null==a?void 0:a.description)&&(0,x.jsx)("p",{className:(0,d.A)("pb-2 text-body-s prose-p:my-2 prose-strong:text-text-primary text-text-primary max-w-full prose prose-a:type-link hover:prose-a:type-link-hover prose-headings:text-text-primary prose-blockquote:text-text-primary",eC().description),children:null==a||null==(n=a.description)?void 0:n.text}),(0,x.jsxs)("div",{className:"w-full flex flex-col gap-y-2 grow",children:[(0,x.jsx)("section",{className:(0,d.A)("w-full flex gap-x-2 grow"),children:i.map((e,l)=>{var t;return(0,x.jsx)(sR,{item:e,onClick:()=>c(l),isActiveTab:u===l},(null==e||null==(t=e.sys)?void 0:t.id)||"")})}),(0,x.jsx)("div",{className:"relative",children:i.map((e,l)=>(0,x.jsx)(sF,{item:e,isActiveItem:l===u}))})]})]})]})]})},[tS.Us.Toggle]:function(e){var l,t;let{tileGroup:n,tileItems:s,imageType:i,pkgVariant:r,marketingMessages:a}=e,u=(0,M.YY)(),p=[...s];p.sort((e,l)=>{var t,n,s,i,r,a;let o=null==u?void 0:u[(null==(t=e.sys)?void 0:t.id)||""],d=null==u?void 0:u[(null==(n=l.sys)?void 0:n.id)||""];return((null==o||null==(s=o[0])||null==(s=s.inGroup)?void 0:s.passEndDate)||0)>((null==d||null==(i=d[0])||null==(i=i.inGroup)?void 0:i.passEndDate)||0)?1:((null==o||null==(r=o[0])||null==(r=r.inGroup)?void 0:r.passEndDate)||0)<((null==d||null==(a=d[0])||null==(a=a.inGroup)?void 0:a.passEndDate)||0)?-1:0});let f=(0,c.U)(s.map(e=>{var l;return null==(l=e.sys)?void 0:l.id})),v=f.reduce((e,l)=>{var t;let n=null==u?void 0:u[l];return e||!!(null!=n&&null!=(t=n[0])&&null!=(t=t.inGroup)&&t.passInUse)},!1),j="transparent"===i,g=(0,o.useContext)(h.r),{0:y,1:b}=(0,o.useState)(0),w=(0,o.useMemo)(()=>s[y],[y,s]),{getDynamicMarketingMessages:N}=(0,e9.V)(),k=N(e9.k.tile),[C]=ti({tileGroup:n,tileItems:s});return(0,x.jsxs)("div",{ref:C,"data-tile":tS.Us.Toggle,"data-testid":e8.Vy,"data-theme":g||"none",className:(0,d.A)("roun
1ded-lg w-full h-full shadow-xnear relative",j&&"p-4",eC().main),children:[(0,x.jsx)(lT.J,{messages:(a||[]).concat(k)}),(0,x.jsxs)("div",{className:"flex flex-col h-full rounded-lg overflow-hidden",children:[(0,x.jsxs)("div",{className:"w-full grow-0 relative",children:[(0,x.jsx)(eS._,{sizes:"100vw",className:"absolute rounded-t-lg top-0 w-full h-full object-cover",src:(0,eG.VG)(n.headerImage),alt:(0,eG.GT)(n.headerImage)}),(0,x.jsx)("div",{className:"relative w-full h-full pointer-events-none",children:(0,x.jsxs)("div",{className:"flex flex-row w-full h-full px-4 py-6 content-between overflow-hidden gap-x-4",children:[(0,x.jsxs)("div",{className:"flex flex-col w-full h-full justify-center",children:[(null==n||null==(l=n.title)?void 0:l.text)&&(0,x.jsx)("p",{className:(0,d.A)("text-headline-m font-bold pb-1",eC().title),children:n.title.text}),(null==n?void 0:n.description)&&(0,x.jsx)("p",{className:(0,d.A)(eC().description,"text-body-s","prose-strong:text-text-primary text-text-primary max-w-full prose prose-a:type-link hover:prose-a:type-link-hover prose-headings:text-text-primary prose-blockquote:text-text-primary"),"data-testid":e8.Su,children:null==n||null==(t=n.description)?void 0:t.text}),v&&p.map(e=>(0,x.jsx)(m.px,{value:e,children:(0,x.jsx)(l9,{className:(0,d.A)("rounded py-0.5 leading-none rtl:left-[unset] rtl:right-1.5"),children:(0,x.jsx)(l3,{showIcon:!0,tileItemIds:f})})}))]}),(null==w?void 0:w.square)&&(0,x.jsx)("div",{className:"self-center",children:(0,x.jsx)(eS._,{className:"max-w-[100px] min-h-[60px] aspect-auto",sizes:"100px",src:(0,eG.VG)(null==w?void 0:w.square),alt:(0,eG.GT)(null==w?void 0:w.square)})})]})})]}),(0,x.jsx)("div",{className:"px-4 mt-4 mb-2",children:(0,x.jsx)(sY,{tileItems:s,activeIndex:y,onClick:e=>b(e)})}),(0,x.jsx)("section",{className:(0,d.A)("w-full flex flex-col gap-y-2",!j&&"px-4 pb-4"),children:s.length>0&&(0,x.jsx)(x.Fragment,{children:s.map((e,l)=>{var t;return(0,x.jsx)(m.px,{value:e,children:(0,x.jsx)(e7,{children:(0,x.jsx)("div",{className:y===l?void 0:"hidden",children:(0,x.jsx)(sz,{pkgVariant:r})})})},null==(t=e.sys)?void 0:t.id)})})})]})]})},[tS.Us.Endless]:function(e){var l,t,n,s,i,r,a,u,c,p,f;let{tileGroup:v,tileItems:g,marketingMessages:y}=e,b=(0,M.YY)(),w=(0,o.useContext)(h.r),{getDynamicMarketingMessages:N}=(0,e9.V)(),[k,C]=ti({tileGroup:v,tileItems:g}),{t:A}=(0,j.Bd)(),O=nG(g,b),_=nB(O,b),I=nM(_,b),S=nE(_,I,Math.min(g.length,6)),P=nR(_,I),{animate:T,arrowsAppear:D,startAnimation:G}=(0,L.wm)(C,(null==P||null==(l=P.product)?void 0:l.externalId)||"");P&&T&&(S=[P,...S]);let B=nV(S),E=N(e9.k.tile);if(0===O.length)return null;let V=null!=(t=null==b||null==(n=b[(null==g||null==(s=g[0])||null==(s=s.sys)?void 0:s.id)||""])||null==(n=n[0])||null==(n=n.inGroup)?void 0:n.groupUsedCount)?t:0,U=null!=(i=null==b||null==(r=b[(null==g||null==(a=g[0])||null==(a=a.sys)?void 0:a.id)||""])||null==(r=r[0])||null==(r=r.inGroup)?void 0:r.groupSkusCount)?i:0,R=0!==V&&0!==U&&V===U;return(0,x.jsxs)("div",{ref:k,"data-tile":tS.Us.Endless,"data-theme":w||"none","data-testid":e8.jr,className:(0,d.A)("rounded-lg w-full h-full shadow-xnear relative",eC().main),children:[(0,x.jsx)(t$.J,{messages:(y||[]).concat(E)}),(0,x.jsxs)("div",{className:"h-full flex flex-col",children:[(0,x.jsx)("div",{className:"w-full grow-0 overflow-hidden rounded-t-lg min-h-28",children:(0,x.jsx)(eS._,{sizes:"100vw sm:50vw md:25vw",className:"h-full w-full rounded-t-lg",src:(0,eG.VG)(v.headerImage)||"",alt:(0,eG.GT)(v.headerImage)||""})}),(0,x.jsx)("div",{className:(0,d.A)("h-fit w-full flex items-center justify-center text-xs font-bold uppercase mb-2",R?eC().bannerClaimed:eC().banner),children:(0,x.jsxs)("div",{className:" w-full py-2 px-4 flex flex-row justify-between",children:[R?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(lj.A,{className:"me-1"}),(0,x.jsx)("span",{children:A("all-deals-claimed")})]}):(0,x.jsx)("span",{children:A("endless-banner-text",{claimed:V,total:U})}),(0,x.jsx)(m.px,{value:null==B?void 0:B[0],children:(0,x.jsx)(l9,{children:(0,x.jsx)(l7,{showIcon:!0,className:(0,d.A)(eC().banner)})})},null==B||null==(u=B[0])||null==(u=u.sys)?void 0:u.id)]})}),(0,x.jsxs)("div",{className:"px-4 py-2 mb-2",children:[(null==(c=v.title)?void 0:c.text)&&(0,x.jsx)("h3",{className:(0,d.A)("text-body-m font-bold",eC().title),children:null==(p=v.title)?void 0:p.text}),(null==v?void 0:v.description)&&(0,x.jsx)("p",{className:(0,d.A)("text-body-s",eC().description),children:null==v||null==(f=v.description)?void 0:f.text})]}),(0,x.jsx)("section",{className:(0,d.A)("w-full px-4 pb-4"),children:(0,x.jsx)("div",{"data-testid":"EndlessTileItems",className:(0,d.A)("relative h-full grid grid-cols-2 grid-rows-[repeat(3,1fr)] gap-x-3 gap-y-3"),children:B.map((e,l)=>{var t;return(0,x.jsx)(nH,{animate:T,arrowsAppear:D,displayItemsLength:B.length,index:l,item:e,startAnimation:G,tileGroup:v,visibleItems:S},null==e||null==(t=e.sys)?void 0:t.id)})})})]})]})},[tS.Us.ProgressiveBundle]:function(e){var l,t,n,s,i,r,a,c,p,f,v;let g,{tileGroup:y,tileItems:b,imageType:w,paletteMap:N,pkgVariant:k}=e,{t:C}=(0,j.Bd)(),{user:_}=(0,K.J)(),I=(0,o.useContext)(h.r),S="transparent"===w,P=(0,M.YY)(),{0:T,1:D}=(0,o.useState)(null),G=sw(P,b),B=b.reduce((e,l)=>{var t,n;return Math.max(e,null!=(t=null==(n=(0,eB.ib)((0,eB.Qx)(l))[0])?void 0:n.length)?t:0)},0),E=(0,o.useMemo)(()=>{var e,l,t;if(!P||0===b.length)return;let n=null!=(e=null==(l=b[G])||null==(l=l.sys)?void 0:l.id)?e:null==(t=b[0])||null==(t=t.sys)?void 0:t.id;return null!=n?n:void 0},[P,b,G]),{0:V,1:U}=(0,o.useState)(void 0),L=(0,o.useMemo)(()=>{var e,l;if(!V)return null;let{entryId:t,stepIndex:n}=V;return""===t||n<0||n>=b.length||String(null!=(e=null==(l=b[n])||null==(l=l.sys)?void 0:l.id)?e:"")!==String(t)?null:n},[V,b]),R=(0,o.useMemo)(()=>V&&null!==L?V.entryId||void 0:E,[V,L,E]),F=(0,o.useMemo)(()=>
1{if(null!==L)return L;if(void 0===E||""===E)return -1;let e=String(E);return b.findIndex(l=>{var t,n;return String(null!=(t=null==l||null==(n=l.sys)?void 0:n.id)?t:"")===e})},[L,b,E]),z=null==P||null==(l=P[null!=R?R:""])?void 0:l[0],Y=null==z||null==(t=z.promotion)?void 0:t.end,J=(0,o.useMemo)(()=>b.map(e=>(0,eB.Qx)(e)),[b]),q=(0,o.useMemo)(()=>{let e=F;return e<0&&null!=R&&null!=E&&String(R)===String(E)&&(e=G),e<0&&(e=0),Math.max(0,Math.min(e,Math.max(0,b.length-1)))},[F,R,E,G,b.length]),Z=(0,o.useRef)(q);Z.current=q;let H=(0,o.useRef)(b);H.current=b;let Q=(0,o.useRef)(-1),W=(0,o.useRef)(-1),$=(0,o.useRef)(null),X=(0,o.useCallback)(e=>{W.current=e},[]),el=(0,o.useCallback)(()=>{W.current=-1},[]),et=(0,o.useRef)(()=>{});et.current=e=>{var l;if(W.current>=0){e===W.current&&requestAnimationFrame(()=>{el()});return}if(e<0||e>=b.length)return;let t=null==(l=b[e])||null==(l=l.sys)?void 0:l.id;t&&U({entryId:String(t),stepIndex:e})};let en=(0,o.useCallback)((e,l)=>{et.current(e,l)},[]),es=(0,o.useRef)(G),{0:ei,1:er}=(0,o.useState)(!1),ea=(0,o.useCallback)(()=>{er(!1)},[]),eo=(0,o.useCallback)(()=>{var e,l;let t=Z.current;Q.current=t,X(t),$.current=null!=(e=null==(l=H.current[t])||null==(l=l.sys)?void 0:l.id)?e:null,er(!0)},[X]);(0,o.useEffect)(()=>{ei&&G!==es.current&&ea(),es.current=G},[G,ei,ea]),(0,o.useEffect)(()=>{let e=Q.current;if(!ei&&e>=0){var l,t,n,s;if(G>e){let e=null==(s=b[G])||null==(s=s.sys)?void 0:s.id;e&&(Q.current=-1,X(G),$.current=null,U({entryId:String(e),stepIndex:G}));return}if(b.length<=e+1)return;let i=$.current,r=String(null!=(l=null==(t=b[e])||null==(t=t.sys)?void 0:t.id)?l:"");if(null!=i&&r!==String(i))return;let a=e+1;Q.current=-1,X(a),$.current=null;let o=null==(n=b[a])||null==(n=n.sys)?void 0:n.id;o&&U({entryId:String(o),stepIndex:a})}},[ei,b,G,X]),(0,o.useEffect)(()=>{if(!T)return;let e=Math.max(0,Math.min(q,T.slideNodes().length-1));T.selectedScrollSnap()!==e&&T.scrollTo(e,!1)},[T,q]),(0,o.useEffect)(()=>{if(!T)return;let e=()=>{let e=T.slideNodes().length,l=Math.max(0,Math.min(Z.current,e-1));T.scrollTo(l,!1)};return T.on("reInit",e),()=>{T.off("reInit",e)}},[T]);let ed=(0,o.useMemo)(()=>({startSpinner:eo,stopSpinner:ea}),[eo,ea]),eu=null!=E,ec=b.length,{0:em,1:ex}=(0,o.useState)(void 0);(0,o.useEffect)(()=>{ex(!!(sg().mobile||sg().tablet))},[]);let ep=sy(null!=(n=null==y||null==(s=y.description)?void 0:s.text)?n:"",{number:ec,contents:null!=(i=null!=(r=null==(a=b[b.length-1])||null==(a=a.displayProductName)?void 0:a.text)?r:null==(c=b[b.length-1])?void 0:c.title)?i:""}),[ef]=ti({tileGroup:y,tileItems:b}),ev=(null==z?void 0:z.promoLimitCount)!==void 0&&(null==z?void 0:z.promoLimitUsed)!==void 0?z.promoLimitCount-z.promoLimitUsed:0,eh=ev>0?"".concat(C("in-stock-quantity",{quantity:ev})):"",ej=(0,x.jsx)(eS._,{sizes:"100vw sm:50vw md:25vw",className:(0,d.A)("w-full rounded-t-lg",S?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,eG.VG)(y.headerImage),alt:(0,eG.GT)({title:null==(p=y.title)?void 0:p.text})}),eg=(null==(f=y.title)?void 0:f.text)&&(0,x.jsx)("h3",{className:(0,d.A)("text-headline-xl font-bold flex justify-center items-center pt-2",eC().title),children:null==(v=y.title)?void 0:v.text});g=Y?(0,x.jsx)(lu,{endDate:Y,children:(0,x.jsxs)("div",{className:"inline-flex flex-row flex-wrap items-center justify-center gap-x-2 gap-y-1 font-bold text-xs uppercase",children:[(0,x.jsxs)("span",{className:"inline-flex gap-x-1",children:[(0,x.jsx)(lV.A,{className:"h-4 w-4 shrink-0","aria-hidden":!0}),(0,x.jsx)(lH,{className:"mt-px",daysHoursOnly:!0})]}),eh&&(0,x.jsx)("span",{className:"border-l border-solid border-[#FFFFFF33] ps-2 mt-px",children:eh})]})}):!Y&&ev>0?(0,x.jsx)("div",{className:"flex flex-row flex-wrap items-center justify-center",children:(0,x.jsx)("span",{className:"font-bold text-xs uppercase",children:eh})}):(0,x.jsx)("div",{className:"flex flex-row flex-wrap items-center justify-center h-5"});let ey=(null==y?void 0:y.description)&&(0,x.jsx)(eZ.$,{className:(0,d.A)("text-body-m pb-2 text-center px-4",eC().description),children:ep}),eb=(0,x.jsx)("div",{className:(0,d.A)(eC().tileGroupContent,!em&&eC().desktop,"w-full min-w-0 text-center overflow-x-auto overflow-y-hidden rounded-lg px-2 py-2"),children:(0,x.jsx)(sO,{tileItems:b,selectedId:null!=R?R:"",selectedStepIndex:q,skus:P,paletteMap:N,onItemClick:(e,l)=>{var t;let n=(null==e||null==(t=e.sys)?void 0:t.id)||"";n&&(null==T||T.scrollTo(l),(0,o.startTransition)(()=>{U({entryId:n,stepIndex:l})}))}})});if(0!==b.length)return(0,x.jsx)(eV.Provider,{value:ed,children:(0,x.jsxs)("div",{ref:ef,"data-theme":I||"none",className:(0,d.A)("relative rounded-lg w-full h-full shadow-xnear",S&&"p-4",eC().main),children:[ei&&(0,x.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center rounded-lg bg-black-40 cursor-wait","aria-hidden":!0,
1children:(0,x.jsx)(sk.k,{size:"2xl",className:"text-white"})}),(0,x.jsxs)("div",{className:"h-full flex flex-col",children:[ej,(0,x.jsxs)("section",{className:(0,d.A)("w-full flex flex-col",!S&&"pt-4 text-center"),children:[eg,ey,eb,(0,x.jsx)("div",{className:"w-full",children:eu?(0,x.jsx)(sA,{getEmblaInstance:D,align:"center",slidesInView:{default:1.14},slidesToScroll:1,className:"px-4",gap:{default:"1rem"},onSlideChange:en,children:(0,x.jsx)(u.Wk,{role:"region","aria-label":"Bundle offers, step ".concat(q+1," of ").concat(b.length),children:b.map((e,l)=>{var t,n,s,i,r,a,o,u,c;let p,f=null==P||null==(t=P[null!=(n=null==e||null==(s=e.sys)?void 0:s.id)?n:""])?void 0:t[0],v=_?sb(f):0===l,h=(null==f||null==(i=f.promotion)?void 0:i.reason)===ee.$J.ClaimGiftOnce||(null==f||null==(r=f.offerTags)?void 0:r.includes(A.FreeItem))||(null==f?void 0:f.externalSiteLink),j=(null==f||null==(a=f.inGroup)?void 0:a.state)===O.owned||(null==f?void 0:f.purchaseState)===O.owned;return p=j?(0,x.jsxs)("div",{className:(0,d.A)("flex justify-center items-center align-middle h-12",eC().progBundleTileItem
1Claimed),children:[(0,x.jsx)(lj.A,{className:"w-5 h-5"}),(0,x.jsx)("p",{className:"ms-1 font-bold",children:C("claimed")})]}):v?(0,x.jsxs)(lP,{className:(0,d.A)("px-4",h&&eC().secondaryButton),children:[(0,x.jsx)(lw,{freeText:C("claim-free")}),(0,x.jsx)(tn,{})]}):(0,x.jsx)(lP,{disabled:!0,children:(0,x.jsx)("div",{className:"flex flex-row flex-wrap items-center align-middle justify-center gap-2",children:(0,x.jsx)(ly,{className:"w-6 h-6 items-center"})})}),(0,x.jsx)("div",{className:"box-border shrink-0 flex min-h-0 flex-col",children:(0,x.jsxs)("div",{className:(0,d.A)("border-2 border-solid rounded-lg h-full grid grid-rows-[1fr_auto]",h?"".concat(eC().progBundleCarouselSecondary):"".concat(eC().progBundleCarousel)),children:[(0,x.jsx)(ez.v,{type:k||"decorated",items:null!=(c=J[l])?c:[],maxDetailItemLength:B}),(0,x.jsxs)("div",{className:(0,d.A)("flex flex-col",!S&&"pb-4 px-4 text-center mt-auto"),children:[(0,x.jsx)("div",{className:"min-h-6",children:(0,x.jsx)("span",{className:"text-xs font-bold ![text-shadow:none] uppercase",children:j||v||!(l>0)?"":C("complete-level-to-unlock",{quantity:l})})}),(0,x.jsx)(m.px,{value:e,children:(0,x.jsx)(e7,{children:p})})]})]})},"".concat(l,"-").concat(String(null!=(o=null==e||null==(u=e.sys)?void 0:u.id)?o:"")))})})}):(0,x.jsx)("div",{className:"min-h-96 w-full rounded-lg bg-black/5","aria-hidden":!0})})]}),(0,x.jsx)("section",{className:(0,d.A)("w-full flex flex-col text-xs",!S&&"pt-2 pb-4 px-4 text-center"),children:g})]})]})})},[tS.Us.ProgressiveSnakeList]:function(e){var l;let{tileGroup:t,tileItems:n,paletteMap:s,marketingMessages:i,msgLink:r,imageType:a,pkgVariant:u,shouldTileFlip:p,highlightFirstItem:f,showCountdownWithStock:v}=e,j=(0,M.YY)(),g=(0,o.useContext)(h.r),y=(0,o.useMemo)(()=>nB([...n],j),[n,j]);return y.length?(0,x.jsx)("div",{"data-theme":g||"none",className:(0,d.A)("relative w-full"),children:(0,x.jsx)(sB,{arrowUrl:null==t||null==(l=t.arrow)?void 0:l.url,children:y.map((e,l)=>{var n,o,d;return(0,x.jsx)(m.px,{value:e,children:(0,x.jsx)(e7,{children:(0,x.jsx)(h.r.Provider,{value:s.get((null==(o=e.sys)?void 0:o.id)||"")||s.get((null==(d=e.product)?void 0:d.externalId)||"")||s.get("".concat(l+1))||g,children:(0,x.jsx)(sM,{item:e,stepIndex:l,imageType:a,pkgVariant:u,shouldTileFlip:p,highlightFirstItem:f,showCountdownWithStock:v,hideAttribute:!!(null!=t&&t.hideStockCount),marketingMessages:(e=>{var l,t;let n=(0,c.U)(null!=(l=null==(t=e.marketingMessagesCollection)?void 0:t.items)?l:[]);if(n.length)return n;let s=(null!=r?r:[]).filter(l=>{var t;return l.from===(null==(t=e.sys)?void 0:t.id)}).map(e=>e.to);return(0,c.U)(s.map(e=>null==i?void 0:i.find(l=>{var t;return(null==l||null==(t=l.sys)?void 0:t.id)===e})))})(e)})})})},null==(n=e.sys)?void 0:n.id)})})}):null}};var sH=t(26172),sQ=t(76789),sW=t.n(sQ);let s$={default:1.1},sK=["list","inline","boxed","grid","grid-centered","selector","grid-inline-header","carousel","decorated"];function sX(e,l){return e.find(e=>{var t,n;return(null==(t=e.sys)?void 0:t.id)===l.hash||(null==(n=e.sys)?void 0:n.id)===l.product_id})}function s0(e){var l,t,n,s,i,r,a,p;let{entry:j,products:g,onPurchaseStart:y}=e,{groups:b,items:w}=(0,sH.p)(),N=(0,M.YY)(),k=(null==(l=j.upsellUi)?void 0:l.__typename)==="TileUpsell"?j.upsellUi:null,C=null!=(t=null==k||null==(n=k.palette)||null==(n=n.sys)?void 0:n.id)?t:"none",A=(a=null==k?void 0:k.packageContentsVariant,null!=(p=sK.find(e=>e===a))?p:null),O=null!=(s=null==k?void 0:k.tileVariant)?s:"",_=null==k||null==(i=k.upsellTitle)?void 0:i.text,I=null==k||null==(r=k.upsellDescription)?void 0:r.text,S=O&&sq[O]||void 0,P=O&&sZ[O]||void 0,T=(0,o.useMemo)(()=>S?(0,c.U)(g.map(e=>{var l;let t=sX(w,e),n=null==t||null==(l=t.sys)?void 0:l.id;if(!t||!n)return null;let s=null!=N&&N[n]?{[n]:N[n]}:{};return(0,x.jsx)(h.r.Provider,{value:C,children:(0,x.jsx)(m.px,{value:t,children:(0,x.jsx)(D.F,{children:(0,x.jsx)(e7,{children:(0,x.jsx)(v.Q,{dynamicMarketingMessages:[],viewType:O,items:[t],skus:s,children:(0,x.jsx)(S,{item:t,pkgVariant:A,imageType:"opaque"})})})})})},n)})):[],[S,g,w,N,C,A,O]),G=(0,o.useMemo)(()=>{if(!P)return[];let e=[...new Set((0,c.U)(g.map(e=>{var l;return null==(l=e.display)?void 0:l.groupId})))];return(0,c.U)(e.map(e=>{var l,t;let n=b.find(l=>l.externalId===e);if(!n)return null;let s=g.filter(l=>{var t;return(null==(t=l.display)?void 0:t.groupId)===e}),i=(0,c.U)(s.map(e=>sX(w,e)));if(i.length!==s.length)return null;let r=i.reduce((e,l)=>{var t;let n=null==(t=l.sys)?void 0:t.id;return n&&e.set(n,C),e},new Map),a=null!=(l=null==(t=n.sys)?void 0:t.id)?l:e;return(0,x.jsx)(h.r.Provider,{value:C,children:(0,x.jsx)(v.Q,{dynamicMarketingMessages:[],viewType:O,items:i,skus:N,children:(0,x.jsx)(P,{tileGroup:n,tileItems:i,imageType:"opaque",pkgVariant:A,calendar:n.calendar,paletteMap:r,marketingMessages:[],msgLink:[]})})},a)}))},[P,N,C,A,g,O,b,w]),E=T.length>0?T:G,V=E.length>1;return 0===E.length?null:(0,x.jsx)(B,{onPurchaseStart:y,children:(0,x.jsx)(f,{layouts:[],banners:[],children:(0,x.jsxs)("div",{className:(0,d.A)("flex w-full flex-col",V?"gap-4 landscape-sm:gap-2":"gap-16 landscape-sm:gap-4"),children:[(_||I)&&(0,x.jsxs)("div",{className:"flex flex-col gap-1 landscape-sm:gap-0",children:[_&&(0,x.jsx)("h2",{className:(0,d.A)("m-0 text-center align-middle uppercase leading-tight tracking-normal",sW().title),children:_}),I&&(0,x.jsx)("p",{className:(0,d.A)("m-0 text-center align-middle leading-normal tracking-normal",sW().description),children:I})]}),V?(0,x.jsxs)(u.DO,{children:[(0,x.jsx)(u.DP,{slidesToScroll:"auto",slidesInView:s$,align:"center",className:"landscape-sm:[--slide-size:75%]",children:(0,x.jsx)(u.Wk,{children:E})}),(0,x.jsx)("div",{className:"empty:hidden flex gap-2 my-4 justify-center w-full landscape-sm:my-2",children:(0,x.jsx)(u.Dz,{className:"block relative h-1 w-10 rounded-sm bg-white-20 data-[active]:bg-white after:absolute after:-inset-y-4 after:inset-x-0"})})]}):E[0]]})})})}},70693:e=>{e.exports={root:"fit-text_root__YfMLE",reference:"fit-text_reference__f0Azi",container:"fit-text_container__vRI_c",display:"fit-text_display__GA9IA"}},76789:e=>{e.exports={title:"TileUpsellRenderer_title__B_kp7",description:"TileUpsellRenderer_description__fsCFn"}},85693:e=>{e.exports={tileRoot:"streakTileV2_tileRoot__lNEq0",cardBackgroun
1d:"streakTileV2_cardBackground__EfZTH",activeTile:"streakTileV2_activeTile__2vSnv",finalRewardCard:"streakTileV2_finalRewardCard__2AhVf",stateIconShadow:"streakTileV2_stateIconShadow___CFm1",dayCounterTitle:"streakTileV2_dayCounterTitle__GWIBv",dayCountdown:"streakTileV2_dayCountdown__z1JBZ",dayCountdownIcon:"streakTileV2_dayCountdownIcon__i9anu",rewardDetailsSlot:"streakTileV2_rewardDetailsSlot__3_yLY",claimButtonSlot:"streakTileV2_claimButtonSlot__z1a3P",statusLabel:"streakTileV2_statusLabel__W3xLb",claimButton:"streakTileV2_claimButton__EVkcr",claimButtonWrap:"streakTileV2_claimButtonWrap__XBcvK",claimOutline:"streakTileV2_claimOutline__QCtEf",claimOutlineRect:"streakTileV2_claimOutlineRect__UhC1m",streakClaimOutlineTravel:"streakTileV2_streakClaimOutlineTravel__nMQrp",tooltipPopup:"streakTileV2_tooltipPopup__Oz_Wn",tooltipArrowIcon:"streakTileV2_tooltipArrowIcon__HA_hv",tooltipContent:"streakTileV2_tooltipContent__3QqIj",tooltipTitle:"streakTileV2_tooltipTitle__mqeUC",tooltipSubtitle:"streakTileV2_tooltipSubtitle__ZSoIm",tooltipDescription:"streakTileV2_tooltipDescription__Bkw3r"}},91374:e=>{e.exports={content:"DailyStreakClaimErrorModal_content__Qjkrq",closeButton:"DailyStreakClaimErrorModal_closeButton__AagdM",icon:"DailyStreakClaimErrorModal_icon__aNQl4",title:"DailyStreakClaimErrorModal_title__ZqYOd",body:"DailyStreakClaimErrorModal_body__9z0Hi"}},97618:e=>{e.exports={content:"claimOverlayFade_content__Eyzli",dsClaimOverlayIn:"claimOverlayFade_dsClaimOverlayIn__jogQ_",dsClaimOverlayOut:"claimOverlayFade_dsClaimOverlayOut__nrSyb",overlay:"claimOverlayFade_overlay__XVMhq",overlayHandoffOut:"claimOverlayFade_overlayHandoffOut__Md5KM",overlayHandoffIn:"claimOverlayFade_overlayHandoffIn__NXQas"}},98295:e=>{e.exports={content:"DailyStreakClaimTransitionModal_content__RLsUt",closeButton:"DailyStreakClaimTransitionModal_closeButton__ZKJDC",stack:"DailyStreakClaimTransitionModal_stack__sEnUE",dsClaimUpsellSlideIn:"DailyStreakClaimTransitionModal_dsClaimUpsellSlideIn__QacDM",dsClaimUpsellFadeIn:"DailyStreakClaimTransitionModal_dsClaimUpsellFadeIn__MWXxI",dsClaimUpsellSlideOut:"DailyStreakClaimTransitionModal_dsClaimUpsellSlideOut__eX1yd",imageCard:"DailyStreakClaimTransitionModal_imageCard__bQVk5",imageFrame:"DailyStreakClaimTransitionModal_imageFrame__5_GiV",dsClaimArtworkIn:"DailyStreakClaimTransitionModal_dsClaimArtworkIn__GrCAA",sparkles:"DailyStreakClaimTransitionModal_sparkles__sOHBQ",dsClaimSparklesIn:"DailyStreakClaimTransitionModal_dsClaimSparklesIn__D_7NC",imageTitle:"DailyStreakClaimTransitionModal_imageTitle__7OEOZ",copy:"DailyStreakClaimTransitionModal_copy__8Qzye",ctaButton:"DailyStreakClaimTransitionModal_ctaButton__V_L2L",timer:"DailyStreakClaimTransitionModal_timer__CCq8x",progressFill:"DailyStreakClaimTransitionModal_progressFill__POBCM",dailyStreakClaimProgress:"DailyStreakClaimTransitionModal_dailyStreakClaimProgress__yYQw9",progressFillComplete:"DailyStreakClaimTransitionModal_progressFillComplete__9xGnq",dailyStreakClaimProgressComplete:"DailyStreakClaimTransitionModal_dailyStreakClaimProgressComplete__GzbbR",textColumn:"DailyStreakClaimTransitionModal_textColumn__kq9kQ"}},99764:e=>{e.exports={multiplier:"shared_multiplier__R61Y3",quantity:"shared_quantity__Em5bK",finalRewardQuantity:"shared_finalRewardQuantity__swmy_",finalRewardTitle:"shared_finalRewardTitle__8ZHWH",finalRewardMultiplier:"shared_finalRewardMultiplier__Zb0ad",headerTitle:"shared_headerTitle__7XdPX",headerMultiplier:"shared_headerMultiplier__kj2iZ"}}}]);

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.