(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[349],{36944:function(e,t,l){"use strict";l.d(t,{_:function(){return s}});var n=l(77617),i=l(92964),r=l(9654),o=l(31549);function s(e){let{pageName:t,message:l,children:s}=e,{t:a}=(0,i.$G)(),{signIn:c}=(0,r.aC)(),{user:d}=(0,r.aF)();return d?(0,o.jsx)(o.Fragment,{children:s}):(0,o.jsxs)("div",{className:"w-full h-full flex flex-col flex-grow items-center justify-center",children:[(0,o.jsx)("p",{className:"mt-8 type-headline-l text-center",children:l||(0,o.jsx)(i.cC,{i18nKey:"user-login-prompt",values:{pageName:t}})}),(0,o.jsx)("button",{type:"button",className:"btn bg-primary text-button-text text-button-m my-8",onClick:()=>c(),"data-testid":n.Sbz,children:a("Sign In")})]})}},63836:function(e,t,l){"use strict";l.d(t,{IT:function(){return a},tY:function(){return s},uD:function(){return o}});var n=l(44194),i=l(36930),r=l(31549);let o=(0,n.createContext)(-1),s=(0,n.createContext)(()=>{throw Error("No Countdown Provider")});function a(e){let{endDate:t,onDone:l,children:a}=e,{0:c,1:d}=(0,n.useState)(()=>(0,i.fm)()>t);(0,n.useEffect)(()=>{d((0,i.fm)()>t)},[t]);let u=(0,n.useCallback)(()=>{d(!0),l&&l()},[l]);return(0,r.jsx)(o.Provider,{value:t,children:(0,r.jsx)(s.Provider,{value:u,children:c?null:a})})}},90805:function(e,t,l){"use strict";l.d(t,{I:function(){return n.IT},T:function(){return x}});var n=l(63836),i=l(21731),r=l(87494),o=l(44194),s=l(3752),a=l(92964),c=l(87072),d=l(31549);function u(e){let{endDate:t,daysHoursOnly:l,className:i}=e,{days:r,hours:u,minutes:m,seconds:p,isComplete:v}=(0,s.a)(t,c.fm),x=(0,o.useContext)(n.tY),{t:h}=(0,a.$G)();(0,o.useEffect)(()=>{v&&x(!0)},[v,x]);let f="";if(l&&r>0){let e="00".concat(u).slice(-2);f=h("countdown-days-hours",{days:"".concat(r),hours:e})}else if(r>0){let e="".concat(r),t="00".concat(u).slice(-2),l="00".concat(m).slice(-2),n="00".concat(p).slice(-2);f="".concat(e,":").concat(t,":").concat(l,":").concat(n)}else if(0===r&&u>0){let e="00".concat(m).slice(-2),t="00".concat(p).slice(-2);f="".concat(u,":").concat(e,":").concat(t)}else{let e="00".concat(p).slice(-2);f="".concat(m,":").concat(e)}return(0,d.jsx)("span",{className:i,"data-testid":"ticking-countdown",children:f})}let m=["children"];function p(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function v(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?p(Object(l),!0).forEach(function(t){(0,i.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):p(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function x(e){let{children:t}=e,l=(0,r.Z)(e,m),i=(0,o.useContext)(n.uD);if(-1===i||null==i)throw Error("Cannot use <CountdownDisplay /> outside of a <Countdown /> component");return t&&l.forceChildren?(0,d.jsx)(d.Fragment,{children:t}):(0,d.jsx)(u,v(v({},l),{},{endDate:i}))}},22415:function(e,t,l){"use strict";l.d(t,{c:function(){return d}});var n,i=l(77052),r=l(81963),o=l(8279),s=l(61865),a=l(93384);let c=(0,r.iv)(n||(n=(0,i.Z)(["\n  > img {\n    ","\n  }\n"])),{display:"inline",height:"100%",width:"100%",borderRadius:"0.25rem",objectFit:"cover"});function d(e){let{image:t}=e;return t?(0,a.tZ)(o.t,{css:c,src:(0,s.Jn)(t),alt:(0,s.EQ)(t)}):null}},49818:function(e,t,l){"use strict";l.d(t,{O:function(){return c}});var n=l(77617),i=l(79901),r=l(44194),o=l(36930),s=l(83511),a=l(31549);function c(e){let{item:t}=e,{header:l,iframeUrl:c,longUrl:d,iframeHeight:u,sys:m}=t,p=(0,r.useRef)(null),v=(null==l?void 0:l.text)||(null==m?void 0:m.id)||"",x=d||c;return(0,a.jsx)(s.P,{slug:(0,i.U)(t.id||(null==l?void 0:l.text)),title:null==l?void 0:l.text,"data-testid":n.uCY,fullScreen:!u,hideHeader:!u,children:x&&(0,o.jv)(x)&&(0,a.jsx)("iframe",{id:v,name:v,ref:p,className:"w-full border-none",title:(null==l?void 0:l.text)||"",height:u||void 0,style:u?void 0:{height:"100svh",width:"100svw"},src:x,allowFullScreen:!0,onLoad:()=>{var e,t;!(0,o.yF)()&&null!==(e=window)&&void 0!==e&&e.onFrameLoad&&(null===(t=window)||void 0===t||t.onFrameLoad(p.current))}})})}},23155:function(e,t,l){"use strict";l.d(t,{V:function(){return eP}});var n,i=l(66436),r=l(21731);function o(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function s(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?o(Object(l),!0).forEach(function(t){(0,r.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):o(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let a={backgroundColor:"background-color",backgroundGradient:"background-image",backgroundScaleMode:"object-fit",customOverrides:"custom-overrides"},c=["background-color","background-image","object-position","object-fit","transform","custom-overrides"],d=e=>/^[a-z]+(?:[A-Z][a-z]*)*$/.test(e),u=e=>{let t={};return e&&e.forEach(e=>{if(null!=e&&e.key){let l={},n=[];Object.entries(e).forEach(t=>{var i;let[r,o]=t,s=null!==(i=a[r])&&void 0!==i?i:r;"custom-overrides"===s&&o&&Object.entries(o).forEach(t=>{let[l]=t;if(!d(l)){let t=l.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());e.customOverrides[t]=e.customOverrides[l],delete e.customOverrides[l]}}),"backgroundHorizontalAlignment"===r||"backgroundVerticalAlignment"===r?n=[...n,o]:"key"!==r&&(l[s]=o)}),l["object-position"]=n.join(" ").trim(),t[e.key]=l}}),t},m=(e,t)=>c.reduce((l,n)=>{var i;return s(s({},l),{},{[n]:(null===(i=t[e])||void 0===i?void 0:i[n])||""})},{}),p=(e,t,l)=>e[l]?{[t]:e[l]}:{},v=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=m(e,t);return{background:s(s({},p(n,"backgroundColor","background-color")),p(n,"backgroundImage","background-image")),container:s(s(s({},l?s({},p(n,"objectPosition","object-position")):s({},p(n,"backgroundPosition","object-position"))),l?s({},p(n,"objectFit","object-fit")):s({},p(n,"backgroundSize","object-fit"))),p(n,"transform","transform")),custom:n["custom-overrides"]}},x=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=v(e,t,l);return s(s(s({},n.background&&s({},n.background)),n.container&&s({},n.container)),n.custom&&s({},n.custom))};var h=l(14438),f=l(40205),b=l(79852),g=l(5767),j=l(32435),y=l(7829),w=l(44194),O=l(98378);let N=()=>{let[e,t]=(0,O.YD)({threshold:.6});return[e,t]},k=(e,t)=>{var l;let n=null==e||null===(l=e.position)||void 0===l?void 0:l.find(e=>t in e);return n&&n[t]?"self-".concat(n[t]):"self-center"},P=e=>null!=e&&e.position?null==e?void 0:e.position.reduce((e,t)=>[...e,Object.keys(t)[0]],[]):["logo","heading","subheading","description","extendedDescription","ctaButtons","foregroundImage","storeLinks","socialLinks"],C=function(){let{logo:e,heading:t,subheading:l="",description:n,list:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{logo:(0,y.Z)("h-auto max-h-24 min-h-[3rem] my-0 mx-auto transition-[filter] drop-shadow-lg object-contain overflow-hidden",e),heading:(0,y.Z)("font-semibold text-center drop-shadow-lg",t),subheading:l,description:(0,y.Z)("text-center text-base font-normal normal-case tracking-normal w-full md:w-3/4 drop-shadow-lg",n),list:(0,y.Z)("flex flex-wrap gap-4 layout-content justify-center items-center mt-4 mb-0",i)}};var Z=l(60028),S=l(77617),D=l(59591),_=l(3752),E=l(11389),I=l(84658),T=l(92964),L=l(43423),A=l(79178),G=l(36930),M=l(61865),B=l(77052),R=l(45092),H=l(81963),F=l(50488),V=l(93384);function U(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function z(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?U(Object(l),!0).forEach(function(t){(0,r.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):U(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let W=(0,H.iv)(n||(n=(0,B.Z)(["\n  &:hover button::before {\n    ","\n    content: ''\n  }\n\n  &:hover button > div {\n    ","\n  }\n"])),{position:"absolute",left:"0px",top:"0px",display:"inline-block",height:"100%",width:"100%",borderRadius:"0.25rem",backgroundColor:"var(--color-black)",opacity:"0.2"},{opacity:"0.7"});function q(e){var t,l,n;let{title:i,appleLabel:r,appleIcsFile:o,googleLabel:s,googleUrl:a,outlookLabel:c,outlookIcsFile:d,palette:u,className:m,analyticsData:p}=e,{trackAnalyticsData:v}=(0,D.z)(),x=[],h={className:(0,y.Z)(m)};if(null!=o&&o.url&&x.push({label:r,value:null==o?void 0:o.url,key:"Apple"}),null!=a&&a.url){let e=(0,R.a)(null==a||null===(n=a.label)||void 0===n?void 0:n.json);x.push({label:s,value:e?a.url.concat(e):null==a?void 0:a.url,key:"Google"})}return null!=d&&d.url&&x.push({label:c,value:null==d?void 0:d.url,key:"Outlook"}),x.length>0?(0,V.tZ)(F.L,z({small:!0,css:W,title:i,selectedItem:null,items:x,onClick:()=>{if(p&&p.action){let e="".concat(p.action,"_button");v({metadata:z(z({},p),{},{action:e})})}},onItemSelected:e=>{if(p&&p.action){let t=e.key,l="".concat(p.action,"_").concat(t.toLowerCase());v({metadata:z(z({},p),{},{action:l})})}window.open(e.value.toString())},"data-testid":S.xKB,"data-theme":null!==(t=null==u||null===(l=u.sys)||void 0===l?void 0:l.id)&&void 0!==t?t:"none"},h)):null}var J=l(90805),X=l(63836),Q=l(95195),$=l.n(Q),K=l(14165),Y=l(31549);function ee(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function et(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(l),!0).forEach(function(t){(0,r.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):ee(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let el={listOverride:"!px-0"},en={"self-start":et(et({},el),{},{listOverride:"self-center lg:self-start !px-0",logoOverride:"self-center lg:self-start",headerOverride:"self-center text-2xl lg:self-start",subheaderOverride:"self-center lg:self-start",descriptionOverride:"!w-full lg:!text-left lg:!max-w-lg",countdownTimer:"self-center lg:self-start",ageRating:"lg:absolute",foregroundImage:"self-center lg:self-start"}),"self-end":et(et({},el),{},{logoOverride:"self-center lg:self-end",headerOverride:"self-center text-2xl lg:self-end",subheaderOverride:"self-end lg:self-end",descriptionOverride:"!w-full lg:!text-right lg:!max-w-lg",countdownTimer:"self-center lg:self-end",ageRating:"lg:absolute",foregroundImage:"self-center lg:self-end"}),"self-center":{listOverride:"",logoOverride:"",headerOverride:"text-4xl",subheaderOverride:"",descriptionOverride:"",countdownTimer:"self-center",ageRating:"",foregroundImage:""}};function ei(e){var t,l;let{logo:n,position:i,classStyles:r,styles:o}=e;return(0,Y.jsx)("span",{className:en[i].logoOverride,children:(0,Y.jsx)(f.E,{className:r,src:null!==(t=n.url)&&void 0!==t?t:"",alt:null!==(l=n.title)&&void 0!==l?l:"",style:o})})}function er(e){let{text:t,position:l,classStyles:n,styles:i}=e,r=$().header;return(0,Y.jsx)("div",{className:(0,y.W)(n,en[l].headerOverride,r),style:i,children:(0,Y.jsx)("h1",{children:t})})}function eo(e){let{text:t,position:l,classStyles:n,styles:i}=e,r=$().header;return(0,Y.jsx)("div",{className:(0,y.W)(n,en[l].subheaderOverride,r),style:i,children:(0,Y.jsx)("p",{children:t})})}function es(e){let{text:t,position:l,classStyles:n,styles:i}=e,r=$().mobileFullWidthDescription;return(0,Y.jsx)("div",{className:(0,y.W)(n,l,en[l].descriptionOverride,r),style:i,children:(0,Y.jsx)(L.D,{children:t})})}function ea(e){let{data:t}=e,l=$().addToCalendarDropdown;return(0,Y.jsx)(q,et(et({},t),{},{className:l}))}function ec(e){let{text:t,image:l,paletteId:n,showExternalLinkIcon:i,styles:r,data:o}=e,{trackAnalyticsData:s}=(0,D.z)(),a=$().mobileFullWidthButton;if(l){var c,d;return(0,Y.jsx)(f.E,{className:(0,y.W)("p-0 m-0 border-0"),src:null!==(c=l.url)&&void 0!==c?c:"",alt:null!==(d=l.title)&&void 0!==d?d:"",style:r})}return(0,Y.jsxs)("button",{className:(0,y.W)("inline-flex relative text-center font-bold text-base uppercase overflow-hidden align-middle items-center justify-center cursor-pointer align-start min-w-[8rem] min-h-[3rem] leading-[150%]",a),style:r,"data-theme":n,type:"button",onClick:()=>{o&&s({metadata:o})},children:[(0,Y.jsx)("div",{children:t}),i&&(0,Y.jsxs)(Y.Fragment,{children:["\xa0",(0,Y.jsx)(Z.Z,{className:"ml-2"})]}),(0,Y.jsx)("span",{className:"absolute w-full h-full hover:bg-black hover:opacity-20"})]})}function ed(e){var t;let{links:l,position:n,classStyles:i,groupStyles:r,ctaStyles:o}=e;return(0,Y.jsx)("ul",{className:(0,y.W)(i,en[n].listOverride),style:r,children:null==l||null===(t=l.items)||void 0===t?void 0:t.map(e=>{var t,l,n,i,r,s,a;return(null==e?void 0:e.__typename)==="CalendarEvent"?(0,Y.jsx)("li",{children:(0,Y.jsx)(ea,{data:e},"cta-li-dpdn-".concat(null===(l=e.sys)||void 0===l?void 0:l.id))},"cta-li-".concat(null===(t=e.sys)||void 0===t?void 0:t.id)):(null==e?void 0:e.__typename)==="Button"?(0,Y.jsx)(K.n,{item:e,children:(0,Y.jsx)(ec,{text:e.text||"",image:e.image||void 0,paletteId:null!==(i=null===(r=e.palette)||void 0===r||null===(r=r.sys)||void 0===r?void 0:r.id)&&void 0!==i?i:"none",showExternalLinkIcon:null!==(a=e.showExternalLinkIcon)&&void 0!==a&&a,styles:o,data:e.analyticsData},"cta-li-p-".concat(null===(s=e.sys)||void 0===s?void 0:s.id))},"cta-li-".concat(null===(n=e.sys)||void 0===n?void 0:n.id)):null})})}function eu(e){var t,l;let{image:n,position:i,ctaStyles:r}=e;return(0,Y.jsx)("span",{className:en[i].foregroundImage,children:(0,Y.jsx)(f.E,{src:null!==(t=n.url)&&void 0!==t?t:"",alt:null!==(l=n.title)&&void 0!==l?l:"",style:r})})}function em(e){let{links:t,position:l,classStyles:n,styles:i}=e;return(0,Y.jsx)("ul",{className:(0,y.W)(n,en[l].listOverride),style:i,children:(0,I.E)(null==t?void 0:t.items).map(e=>e.label&&(0,Y.jsx)(K.k,{item:e,testId:S.$bO,imageStyle:"h-12 hover:drop-shadow-lg transition-[filter]"}))})}function ep(e){let{endDate:t,className:l}=e,{t:n}=(0,T.$G)(),{days:i,hours:r,minutes:o,seconds:s,isComplete:a}=(0,_.a)(t,G.fm),c=(0,w.useContext)(X.tY);(0,w.useEffect)(()=>{a&&c(!0)},[a,c]);let d="flex flex-col items-center",u="text-4xl lg:text-6xl tabular-nums",m="text-[0.65rem]",p="text-4xl lg:text-6xl mb-8";return(0,Y.jsxs)("div",{className:(0,y.W)("flex flex-wrap justify-center items-center text-2xl font-bold gap-2 text-white",l),children:[(0,Y.jsxs)("div",{className:d,children:[(0,Y.jsx)("span",{className:u,children:"00".concat(i).slice(-2)}),(0,Y.jsx)("span",{className:m,children:n("days")})]}),(0,Y.jsx)("span",{className:p,children:":"}),(0,Y.jsxs)("div",{className:d,children:[(0,Y.jsx)("span",{className:u,children:"00".concat(r).slice(-2)}),(0,Y.jsx)("span",{className:m,children:n("hours")})]}),(0,Y.jsx)("span",{className:p,children:":"}),(0,Y.jsxs)("div",{className:d,children:[(0,Y.jsx)("span",{className:u,children:"00".concat(o).slice(-2)}),(0,Y.jsx)("span",{className:m,children:n("minutes")})]}),(0,Y.jsx)("span",{className:p,children:":"}),(0,Y.jsxs)("div",{className:d,children:[(0,Y.jsx)("span",{className:u,children:"00".concat(s).slice(-2)}),(0,Y.jsx)("span",{className:m,children:n("seconds")})]})]})}function ev(e){var t;let{calendar:l,position:n}=e,i=new Date(l.eventDate).valueOf();return(0,Y.jsx)(J.I,{endDate:i,children:(0,Y.jsx)(J.T,{forceChildren:!0,children:(0,Y.jsx)(ep,{className:en[n].countdownTimer,endDate:i})})},"countdown-".concat(null===(t=l.sys)||void 0===t?void 0:t.id))}function ex(e){let{position:t}=e,{t:l}=(0,T.$G)(),n=(0,A.Z)().rating;if(!n)return null;let{icon:i,descriptors:r,imageDescriptors:o,ratingInfoLink:s}=n,a={iconSrc:(0,M.Jn)(i),iconAlt:(0,M.EQ)(i),descriptors:(0,I.E)(r).map(e=>l(e)),imageDescriptors:(0,I.E)(o).map(e=>({src:(0,M.Jn)(e),alt:(0,M.EQ)(e)})),ratingInfoLink:s};return(0,Y.jsx)("div",{className:(0,y.W)("text-left text-xs max-w-[16rem] [&>div>img]:max-h-[5rem] mt-6 lg:bottom-16 lg:right-8 xl:right-24",en[t].ageRating),children:(0,Y.jsx)(E.d,et({},a))})}let eh=(e,t,l,n)=>{var i,r,o,s,a;if(!e)return{};let c=null===(i=e.sys)||void 0===i?void 0:i.id,d=e.logo?(0,Y.jsx)(ei,{logo:e.logo,position:k(t,"logo"),classStyles:l.logo,styles:x("logo",n,!0)},"hero-layout-logo-".concat(c)):null,u=e.heading?(0,Y.jsx)(er,{text:e.heading,position:k(t,"heading"),classStyles:l.heading,styles:x("heading",n)},"hero-layout-heading-".concat(c)):null,m=e.subheading?(0,Y.jsx)(eo,{text:e.subheading,position:k(t,"subheading"),classStyles:l.subheading,styles:x("subheading",n)},"hero-layout-subheading-".concat(c)):null,p=e.description?(0,Y.jsx)(es,{text:e.description,position:k(t,"description"),classStyles:l.description,styles:x("description",n)},"hero-layout-description-".concat(c)):null,v=e.extendedDescription?(0,Y.jsx)(es,{text:e.extendedDescription,position:k(t,"extendedDescription"),classStyles:l.description,styles:x("extendedDescription",n)},"hero-layout-extended-description-".concat(c)):null,h=e.ctaButtonsCollection&&(null===(r=e.ctaButtonsCollection.items)||void 0===r?void 0:r.length)!==0?(0,Y.jsx)(ed,{links:e.ctaButtonsCollection,position:k(t,"ctaButtons"),classStyles:l.list,groupStyles:x("ctaButtons",n),ctaStyles:x("ctaButtons.button",n)},"hero-layout-cta-btns-".concat(c)):null,f=e.storeLinksCollection&&(null===(o=e.storeLinksCollection.items)||void 0===o?void 0:o.length)!==0?(0,Y.jsx)(em,{links:e.storeLinksCollection,position:k(t,"storeLinks"),classStyles:l.list,styles:x("storeLinks",n)},"hero-layout-store-links-".concat(c)):null,b=null!=e&&e.socialLinksCollection&&(null==e||null===(s=e.socialLinksCollection.items)||void 0===s?void 0:s.length)!==0?(0,Y.jsx)(em,{links:e.socialLinksCollection,position:k(t,"socialLinks"),classStyles:l.list,styles:x("socialLinks",n)},"hero-layout-social-links-".concat(c)):null,g=null!=e&&e.calendarEvent?(0,Y.jsx)(ea,{data:e.calendarEvent},null===(a=e.sys)||void 0===a?void 0:a.id):null,j=(null==e?void 0:e.calendarEvent)&&e.calendarEvent.eventDate&&(0,Y.jsx)(ev,{calendar:e.calendarEvent,position:k(t,"countdownTimer")},"hero-layout-countdown-timer-".concat(c)),y=(0,Y.jsx)(ex,{position:k(t,"ageRating")},"hero-layout-age-rating-".concat(c));return{logo:d,heading:u,subheading:m,description:p,extendedDescription:v,ctaButtons:h,foregroundImage:null!=e&&e.foregroundImage?(0,Y.jsx)(eu,{image:e.foregroundImage,position:k(t,"foregroundImage"),ctaStyles:x("foregroundImage",n)},"hero-layout-cta-image-".concat(c)):null,storeLinks:f,socialLinks:b,addToCalendarDropdown:g,countdownTimer:j,ageRating:y}};function ef(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function eb(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(l),!0).forEach(function(t){(0,r.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):ef(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function eg(e){var t,l,n,i,r,o,s,a,c;let{heroData:d,maxWidth:m}=e,{data:p,positionOverride:x,styleCollection:h}=d,O=u(null==h?void 0:h.items),k=v("bg",O,!0),P=v("fg",O),Z=(0,b.d)("".concat(g.Fg,"px")),[S,D]=N(),_=eh(p,x,C({logo:"lg:max-h-32",heading:"text-left text-4 lg:text-[3.5rem] lg:leading-[4.5rem] font-bold tracking-wider pb-8 pr-8",subheading:"text-left",description:"text-left",list:"py-4 justify-left items-left mt-0"}),O),E=(0,w.useMemo)(()=>null!=x&&x.left&&null!=x&&x.right?x:{left:["logo","heading","subheading","socialLinks"],right:["description","extendedDescription","storeLinks"]},[x]),I=(0,w.useMemo)(()=>E.left.map(e=>_[e]),[E,_]),T=(0,w.useMemo)(()=>E.right.map(e=>_[e]),[E,_]),L=null!=p&&null!==(t=p.video)&&void 0!==t&&t.url?{className:(0,y.Z)("block absolute inset-0 w-full h-full object-cover object-center -z-10",$().animatedFadeIn),style:k.container&&k.container}:{};return(0,Y.jsxs)("div",{className:(0,y.Z)("grid grid-cols-1 justify-items-center relative mx-auto z-10"),style:{maxWidth:m},children:[(0,Y.jsxs)("div",{className:(0,y.Z)("my-0 mx-auto overflow-hidden inset-0","absolute"),ref:S,children:[(null==p||null===(l=p.image)||void 0===l?void 0:l.url)&&(0,Y.jsx)(f.E,{className:(0,y.Z)("block absolute inset-0 w-full h-full object-cover -z-10","object-center"),style:eb({},k.container),src:null!==(n=p.image.url)&&void 0!==n?n:"",alt:null!==(i=p.image.title)&&void 0!==i?i:""}),(null==p||null===(r=p.video)||void 0===r?void 0:r.url)&&(0,Y.jsx)(j.n,eb({allowMultiple:!1,id:"hero-layout-video",play:D,loop:!0,muted:!0,poster:null!==(o=null==p||null===(s=p.image)||void 0===s?void 0:s.url)&&void 0!==o?o:"",src:null!==(a=null==p||null===(c=p.video)||void 0===c?void 0:c.url)&&void 0!==a?a:""},L)),(0,Y.jsx)("span",{className:(0,y.Z)("w-full h-full absolute"),style:eb({},k.background)})]}),(0,Y.jsxs)("div",{className:(0,y.Z)("inline-flex flex-row w-full justify-center items-start p-24 relative"),style:eb(eb({},P.container),P.custom),children:[(0,Y.jsx)("span",{className:"w-full h-full absolute top-0 -z-20",style:eb({},P.background)}),Z?(0,Y.jsxs)("div",{className:"flex flex-col",children:[I,T]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{className:"basis-1/2",children:I}),(0,Y.jsx)("div",{className:"basis-1/2",children:T})]})]})]})}function ej(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function ey(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?ej(Object(l),!0).forEach(function(t){(0,r.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):ej(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function ew(e){var t,l,n,i,r,o,s,a;let{heroData:c,maxWidth:d}=e,{data:m,positionOverride:p,styleCollection:x}=c,h=(0,b.d)("".concat(g.Fg,"px")),[w,O]=N(),k="Contained"!==c.mobileVariant,Z=!k&&h,S=u(null==x?void 0:x.items),D=v("bg",S,!0),_=v("bgMobileContained",S,!0),E=v("fg",S),I=v("fgMobileContained",S),T=eh(m,p,C({logo:"min-h-[6rem] lg:max-h-32",description:"2xl:w-2/4"}),S),L=P(p),A={className:(0,y.Z)("block absolute inset-0 w-full h-full object-cover object-center -z-10",$().animatedFadeIn),style:ey(ey({},D.container),D.custom)};return(0,Y.jsxs)("div",{className:(0,y.Z)("grid grid-cols-1 justify-items-center relative mx-auto z-10"),style:{maxWidth:d},children:[(0,Y.jsxs)("div",{className:(0,y.Z)("my-0 mx-auto overflow-hidden inset-0",k?"absolute":"relative w-full pb-[56.25%] lg:absolute lg:pb-0"),ref:w,children:[(null==m||null===(t=m.image)||void 0===t?void 0:t.url)&&(0,Y.jsx)(f.E,{className:(0,y.Z)("block absolute inset-0 w-full h-full object-cover -z-10",k?"object-center":"object-right"),style:ey(ey({},D.container),D.custom),src:null!==(l=m.image.url)&&void 0!==l?l:"",alt:null!==(n=m.image.title)&&void 0!==n?n:""}),(null==m||null===(i=m.video)||void 0===i?void 0:i.url)&&(0,Y.jsx)(j.n,ey({allowMultiple:!1,id:"hero-layout-video",play:O,loop:!0,muted:!0,poster:null!==(r=null==m||null===(o=m.image)||void 0===o?void 0:o.url)&&void 0!==r?r:"",src:null!==(s=null==m||null===(a=m.video)||void 0===a?void 0:a.url)&&void 0!==s?s:""},A)),(0,Y.jsx)("span",{className:"w-full h-full absolute",style:ey(ey({},Z?{backgroundImage:_.background.backgroundImage}:D.background&&D.background),D.custom)})]}),(0,Y.jsx)("div",{className:(0,y.Z)("inline-flex flex-col w-full items-center text-center pt-8 pb-16 px-4 gap-4 relative lg:px-16 xl:px-24 3xl:px-32",k?"justify-center min-h-[640px]":"justify-center lg:min-h-[640px]"),style:Z?ey(ey(ey({},I.container),I.background),I.custom):ey(ey(ey({},E.container),E.background),E.custom),children:L.map(e=>T[e])})]})}function eO(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function eN(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?eO(Object(l),!0).forEach(function(t){(0,r.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):eO(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function ek(e){var t,l,n,i,r,o,s,a;let{heroData:c,maxWidth:d}=e,{data:m,positionOverride:p,styleCollection:x}=c,h=u(null==x?void 0:x.items),b=v("bg",h,!0),g=v("fg",h),[w,O]=N(),k=eh(m,p,C(),h),Z=P(p),S={className:(0,y.Z)("block absolute inset-0 w-full h-full object-cover object-center -z-10",$().animatedFadeIn),style:eN(eN({},b.container),b.custom)};return(0,Y.jsxs)("div",{className:"flex flex-row-reverse mx-auto",style:{maxWidth:d},children:[(0,Y.jsxs)("div",{className:"inline-flex flex-col relative w-[65%]",style:b.background&&b.background,ref:w,children:[(null==m||null===(t=m.image)||void 0===t?void 0:t.url)&&(0,Y.jsx)(f.E,{className:"block absolute inset-0 w-full h-full object-cover object-center -z-10",style:eN(eN({},b.container),b.custom),src:null!==(l=m.image.url)&&void 0!==l?l:"",alt:null!==(n=m.image.title)&&void 0!==n?n:""}),(null==m||null===(i=m.video)||void 0===i?void 0:i.url)&&(0,Y.jsx)(j.n,eN({allowMultiple:!1,id:"hero-layout-video",play:O,loop:!0,muted:!0,poster:null!==(r=null==m||null===(o=m.image)||void 0===o?void 0:o.url)&&void 0!==r?r:"",src:null!==(s=null==m||null===(a=m.video)||void 0===a?void 0:a.url)&&void 0!==s?s:""},S))]}),(0,Y.jsx)("div",{className:"inline-flex flex-col relative items-center justify-center pt-8 pb-16 px-4 gap-4 relative min-h-[640px] w-[35%] bg-black lg:px-16 xl:px-24",style:eN(eN(eN({},g.background),g.container),g.custom),children:Z.map(e=>k[e])})]})}function eP(e){var t,l;let{item:n}=e,r=null==n?void 0:n.variant,o=v("bg",u(null==n||null===(t=n.styleCollection)||void 0===t?void 0:t.items)).background,s=null!==(l=null==o?void 0:o.backgroundColor)&&void 0!==l?l:"transparent";return(0,Y.jsxs)("section",{style:{backgroundColor:s},children:[(0,Y.jsx)(h.p,{id:n.id}),"mobile-full-width"===r&&(0,Y.jsx)(ew,{heroData:n,maxWidth:i.Eq}),"partial-width"===r&&(0,Y.jsx)(ek,{heroData:n,maxWidth:i.Eq}),"half-width"===r&&(0,Y.jsx)(eg,{heroData:n,maxWidth:i.Eq})]})}},73582:function(e,t,l){"use strict";l.d(t,{$:function(){return O}});var n=l(77617),i=l(8279),r=l(12302),o=l(13186),s=l(7829),a=l(92964),c=l(44194),d=l(43423),u=l(23463),m=l(61865),p=l(6725),v=l(14438),x=l(31549);function h(e){let{children:t,backgroundImage:l,textAlignment:n,bgScaleMode:r}=e,o=null!=n?n:"Left";return(0,x.jsxs)("div",{className:(0,s.Z)("max-w-layout mx-auto relative h-full","lg:min-h-[20rem] 2xl:min-h-[25rem] 3xl:min-h-[30rem]","grid grid-cols-1 grid-rows:2 lg:grid-rows-1 [&>*]:col-start-1"),children:[(0,x.jsx)("div",{className:"relative h-[12.5rem] lg:h-[unset] row-start-1",children:(0,x.jsx)(i.t,{className:(0,s.Z)("[&>img]:[object-position:var(--bg-pos)]","[&>img]:absolute [&>img]:inset-0 [&>img]:w-full [&>img]:h-full select-none","[&>img]:object-cover","contain"===(null!=r?r:"cover")&&"lg:[&>img]:object-contain"),src:(0,m.Jn)(l),alt:(0,m.EQ)(l)})}),(0,x.jsx)("div",{className:(0,s.Z)("relative hidden lg:block row-start-1 promo-banner-scrim-[var(--promo-gradient-rgb)]","lg:rtl:scale-[-1]","Right"===o&&"scale-[-1]")}),(0,x.jsx)("div",{className:(0,s.Z)("relative block lg:hidden 3xl:block row-start-1 from-[rgb(var(--promo-gradient-rgb))] to-transparent","bg-gradient-to-t w-full h-1/2 self-end","3xl:w-32 3xl:bg-gradient-to-l 3xl:h-full 3xl:col-start-1","lg:rtl:scale-[-1]","Right"===o?"scale-[-1]":"justify-self-end")}),(0,x.jsx)("div",{className:(0,s.Z)("layout-content relative h-full w-full row-start-2 lg:row-start-1","!text-text-primary flex items-center justify-center","Right"===o?"lg:justify-end":"lg:justify-start"),children:(0,x.jsx)("section",{className:(0,s.Z)("w-full gap-y-4 py-8 flex flex-col items-center lg:items-start justify-end lg:justify-center","max-w-[30rem] lg:max-w-[33%] 2xl:max-w-[25%]"),children:t})})]})}var f=l(15046),b=l(42335);function g(e){let{slug:t,children:l,onClick:n}=e;return(0,x.jsx)("a",{rel:"noreferrer",target:"_blank",href:t||"#",onClick:n,children:l})}function j(e){let{children:t,promotionId:l,buttonStyle:n,href:i,typename:r,sysId:o,creativeId:a,onClick:d,activateLinkOnFirstImpression:u,isFile:m}=e;(0,c.useEffect)(()=>{i&&m&&u&&(window.location.href=i)},[u,i,m]);let v=(0,c.useCallback)(e=>{e.stopPropagation(),e.preventDefault(),i&&(window.location.href=i)},[i]),h="ProductDetailPage"===r&&f.J||"StorePage"===r&&b.E||"ExternalLink"===r&&g||null;return h?(0,x.jsx)(h,{slug:i,onClick:e=>{if(null!=d&&d()){null==e||e.preventDefault();return}(0,p.On)(l,o,a,i,!0)},className:"w-full",children:(0,x.jsx)("button",{type:"button",onClick:m?v:void 0,className:(0,s.Z)("btn w-full text-button-m flex-nowrap",n&&"outline"!==n?"bg-[--color-button-bg]":"btn-outline","text-[--color-button-text]"),children:t})}):null}function y(e){let{children:t,backgroundImage:l,textAlignment:n}=e;return(0,x.jsxs)("div",{className:(0,s.Z)("max-w-layout mx-auto relative min-h-[20rem] 2xl:min-h-[25rem] 3xl:min-h-[30rem] overflow-hidden flex flex-col lg:flex-row","Left"===n&&"lg:flex-row-reverse"),children:[(0,x.jsx)("div",{className:"relative w-full h-[12.5rem] lg:h-[unset]",children:(0,x.jsx)(i.t,{src:(0,m.Jn)(l),alt:(0,m.EQ)(l),className:(0,s.Z)("[&>img]:w-full [&>img]:h-full","lg:[&>img]:absolute lg:[&>img]:inset-0","[&>img]:object-cover")})}),(0,x.jsx)("div",{className:(0,s.Z)("layout-content pe-8 w-full flex justify-center items-center mx-auto lg:mx-0","max-w-[30rem] lg:max-w-[50%] 2xl:max-w-[35%]"),children:(0,x.jsx)("section",{className:"flex flex-col gap-y-4 py-4 lg:py-8 items-center lg:items-start justify-center w-full",children:t})})]})}let w="Promo Banner";function O(e){var t,l;let{item:f,children:b}=e,{id:g,backgroundImage:O,gradientColor:N,title:k,description:P,product:C,bgX:Z,bgY:S,themePrimary:D,buttonVariant:_,buttonTextColor:E,textColor:I,logo:T,backgroundStyle:L,sys:A}=f,G=L===u.CH.PartialWidth,M=(null==C?void 0:C.__typename)==="ExternalLink"&&C.url||(null==C?void 0:C.__typename)==="ProductDetailPage"&&C.slug||(null==C?void 0:C.__typename)==="StorePage"&&C.slug||null,B=(null==C?void 0:C.__typename)==="ExternalLink"&&C.isFile,R=(null==C?void 0:C.__typename)==="ExternalLink"&&C.activateLinkOnFirstImpression,{t:H}=(0,a.$G)(),F=(null==A?void 0:A.id)||"unknown",V=(0,m.Jn)(O)||"unknown";(0,c.useEffect)(()=>{((null==C?void 0:C.__typename)==="ProductDetailPage"||(null==C?void 0:C.__typename)==="StorePage")&&(0,p.On)(w,F,V,null==C?void 0:C.slug)},[O,V,C,F]);let U="".concat(null!=Z?Z:50,"% ").concat(null!=S?S:50,"%"),z=(0,x.jsxs)(x.Fragment,{children:[T&&(0,x.jsx)(i.t,{className:(0,s.Z)("[&>img]:w-full [&>img]:object-contain","[&>img]:h-[96px] [&>img]:max-h-[128px] lg:[&>img]:h-full [&>img]:max-w-[16rem]"),src:(0,m.Jn)(T),alt:(0,m.EQ)(T),transparent:!0,loading:"eager"}),k&&(0,x.jsx)(r.H,{className:"type-headline-l",children:k}),P&&(0,x.jsx)(d.D,{className:(0,s.Z)("type-body-s relative flex w-full flex-col items-center lg:items-start justify-end lg:justify-center","prose-headings:type-headline-l prose-headings:md:type-headline-xl prose-headings:mb-2 prose-p:mb-2"),linkTarget:"_blank",children:P||""}),b,M&&(0,x.jsx)("div",{className:"max-w-[30rem] w-full lg:w-fit",children:(0,x.jsx)(j,{isFile:B||!1,activateLinkOnFirstImpression:R||!1,promotionId:w,sysId:F,creativeId:V,buttonStyle:_,href:M,typename:null==C?void 0:C.__typename,children:(null===(t=f.buttonCopy)||void 0===t?void 0:t.text)||H("Learn More (Button)")})})]});return(0,x.jsxs)("div",{"data-testid":n.Jon,className:"bg-[rgb(var(--promo-gradient-rgb))] w-full",style:{"--bg-pos":U,"--promo-gradient-rgb":N?(0,o.$)(null!=N?N:""):"var(--color-black-rgb)","--text-color-primary-rgb":null!==(l=(0,o.$)(null!=I?I:""))&&void 0!==l?l:void 0,"--color-button-bg":null!=D?D:void 0,"--color-button-text":null!=E?E:void 0},children:[(0,x.jsx)(v.p,{id:g}),G&&(0,x.jsx)(y,{bgScaleMode:f.bgScaleMode,textAlignment:f.textAlignment,backgroundImage:f.backgroundImage,children:z}),!G&&(0,x.jsx)(h,{bgScaleMode:f.bgScaleMode,textAlignment:f.textAlignment,backgroundImage:f.backgroundImage,children:z})]})}},89349:function(e,t,l){"use strict";l.d(t,{O:function(){return sf}});var n,i,r,o,s,a,c,d,u,m,p,v,x,h,f,b,g,j,y,w,O,N,k,P,C,Z,S,D,_=l(21731),E=l(87494),I=l(90521),T=l(7829),L=l(44194),A=l(73329),G=l(61865),M=l(45955),B=l.n(M),R=l(31549);let H=B()(()=>l.e(848).then(l.bind(l,73848)).then(e=>e.InvestorRelationsInfoPrivate),{loadableGenerated:{webpack:()=>[73848]}});var F=l(77052),V=l(81963),U=l(77617),z=l(5767),W=l(36194),q=l(77067),J=l(12302),X=l(18995),Q=l(50488),$=l(81682),K=l(53745),Y=l(33897),ee=l(43821),et=l(8279),el=l(79901),en=l(84658),ei=l(92964),er=l(43423),eo=l(73894),es=l(36930),ea=l(83511),ec=l(93384);let ed=(0,V.iv)(o||(o=(0,F.Z)(["\n  ","\n\n  @media (min-width: ","px) {\n    min-width: 34rem;\n  }\n"])),{marginTop:"1rem",width:"100%",fontWeight:"normal",fontSize:"1rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.6)",textTransform:"none",letterSpacing:"normal"},z.rG);function eu(e){let{successMessage:t}=e,{t:l}=(0,ei.$G)();return null!=t&&t.json?(0,ec.tZ)(ee.H,{css:ed,includeContainer:!0,document:null==t?void 0:t.json}):(0,ec.tZ)("p",{css:ed,children:l("subscribe-success")})}function em(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function ep(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?em(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):em(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let ev={maxWidth:"100%",backgroundColor:"var(--color-neutral-200)",paddingTop:"3rem",paddingBottom:"3rem"},ex={display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gridTemplateRows:"repeat(1, minmax(0, 1fr))",alignItems:"center",columnGap:"3rem","@media (min-width: 768px)":{gridTemplateColumns:"2fr 3fr"}},eh={display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",rowGap:"1rem"},ef={display:"none",height:"100%",maxHeight:"32rem",width:"100%","@media (min-width: 768px)":{display:"block"}},eb=(0,V.iv)(s||(s=(0,F.Z)(["\n  img {\n    ","\n  }\n"])),{height:"100%",maxWidth:"100%",objectFit:"cover",objectPosition:"left top"}),eg={display:"flex",alignItems:"center",columnGap:"0.5rem"},ej={margin:"0px"},ey={fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.6)",textTransform:"none",letterSpacing:"normal"},ew=(0,V.iv)(a||(a=(0,F.Z)(["\n  ","\n  padding-inline-start: 1rem;\n\n  &::placeholder {\n    color: rgba(var(--text-color-primary-rgb), 0.5);\n  }\n"])),{width:"100%",appearance:"none",borderRadius:"0.25rem",borderWidth:"1px",backgroundColor:"var(--color-neutral-100)",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.75rem",paddingBottom:"0.75rem",borderColor:"rgba(var(--color-neutral-999-rgb), 0.2)",fontWeight:"normal",fontSize:"1rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"}),eO=(0,V.iv)(c||(c=(0,F.Z)(["\n  ","\n  border-color: rgba(var(--color-error-rgb), 0.8);\n"])),{borderLeftWidth:"4px",borderColor:"var(--color-error)"}),eN={width:"100%",fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.6)",textTransform:"none",letterSpacing:"normal"},ek={width:"100%",fontWeight:"normal",color:"rgba(var(--text-color-primary-rgb), 0.6)",fontSize:".688rem",lineHeight:"150%",textTransform:"none",letterSpacing:"0.05rem"},eP={fontWeight:"600",fontFamily:"var(--font-secondary)",fontSize:"1.5rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"},eC=(0,V.iv)(d||(d=(0,F.Z)(["\n  ","\n  color: var(--text-color-primary-rgb);\n  background-color: rgba(var(--color-error-rgb));\n  min-height: 1rem;\n"])),{marginTop:"0.5rem",display:"flex",width:"100%",alignItems:"center",borderRadius:"0.125rem",padding:"0.5rem",fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"}),eZ=(0,V.iv)(u||(u=(0,F.Z)(["\n  ","\n\n  svg {\n    ","\n    margin-inline-end: 0.5rem;\n    stroke: var(--color-error);\n    fill: none;\n  }\n"])),eC,{display:"inline-block",height:"1.25rem",width:"1.25rem"}),eS=(0,V.iv)(m||(m=(0,F.Z)(["\n  ","\n  min-width: 8rem;\n\n  &:first-of-type {\n    margin-inline-end: 0.5rem;\n  }\n"])),{width:"100%"}),eD=(0,V.iv)(p||(p=(0,F.Z)(["\n  ","\n\n  @media (min-width: ","px) {\n    min-width: 16.5rem;\n  }\n"])),{width:"100%"},z.H6),e_={width:"100%"},eE={display:"flex",width:"100%",flexDirection:"column",rowGap:"1rem","@media (min-width: 640px)":{flexDirection:"row"}},eI={display:"flex",width:"100%",flexDirection:"column","@media (min-width: 640px)":{flexDirection:"row"}},eT=(0,V.iv)(v||(v=(0,F.Z)(["\n  ","\n  margin-inline-end: 0;\n  @media (min-width: ","px) {\n    margin-inline-end: 1rem;\n  }\n"])),{flexGrow:"1"},z.H6),eL={display:"flex"},eA={email:"",isEmailValid:!1,isAgeValid:!1,subscribeFailed:!1,subscribeSuccess:!1,isLoading:!1},eG={SET_EMAIL:"SET_EMAIL",SET_EMAIL_VALID:"SET_EMAIL_VALID",SET_EMAIL_INVALID:"SET_EMAIL_INVALID",SET_SUBSCRIBE_SUCCESS:"SET_SUBSCRIBE_SUCCESS",SET_SUBSCRIBE_FAILED:"SET_SUBSCRIBE_FAILED",SET_LOADING:"SET_LOADING",SET_AGE_INVALID:"SET_AGE_INVALID",SET_AGE_VALID:"SET_AGE_VALID",RESET:"RESET"},eM=(e,t)=>{switch(t.type){case eG.SET_EMAIL:return ep(ep({},e),{},{email:t.payload||"",isEmailValid:!0,subscribeFailed:!1,isLoading:!1});case eG.SET_EMAIL_VALID:return ep(ep({},e),{},{isEmailValid:!0,isLoading:!1});case eG.SET_EMAIL_INVALID:return ep(ep({},e),{},{isEmailValid:!1,isLoading:!1});case eG.SET_SUBSCRIBE_SUCCESS:return ep(ep({},e),{},{subscribeSuccess:!0,subscribeFailed:!1,isLoading:!1});case eG.SET_SUBSCRIBE_FAILED:return ep(ep({},e),{},{subscribeSuccess:!1,subscribeFailed:!0,isLoading:!1});case eG.SET_LOADING:return ep(ep({},e),{},{isLoading:!0});case eG.RESET:return eA;case eG.SET_AGE_VALID:return ep(ep({},e),{},{isAgeValid:!0,isLoading:!1});case eG.SET_AGE_INVALID:return ep(ep({},e),{},{isAgeValid:!1,isLoading:!1});default:throw Error()}};var eB=l(40205),eR=l(94905),eH=l(94305),eF=l(79266),eV=l.n(eF),eU=l(18066),ez=l(951),eW=l(9654),eq=l(3441),eJ=l(14438),eX=l(13671),eQ=l.n(eX);function e$(e){let t={};return null==e||e.content.forEach(e=>{e.content.forEach(e=>{var l;t[e.data.uri]=null===(l=e.content)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.value})}),t}function eK(e){var t,l,n,i;let{item:r}=e,{buttonCopy:o,includeFinalReward:s,text:a,stampImage:c,stampOutlineImage:d,stampSilhouetteImage:u}=r,m=(0,ez.TA)(),p=m&&Object.values(m).filter(e=>{var t;return(null==e||null===(t=e[0])||void 0===t||null===(t=t.inGroup)||void 0===t?void 0:t.groupType)===eR.YT.dailyStreak}),v=null==p?void 0:p.some(e=>{var t;return(null==e||null===(t=e[0])||void 0===t||null===(t=t.inGroup)||void 0===t?void 0:t.state)===eR.Aw.hidden}),{punchCardConnectDifferentFromBanner:x}=(0,A.H)(),h=null!==(t=null==p?void 0:p.length)&&void 0!==t?t:0,f=null!==(l=null==p||null===(n=p[0])||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.inGroup)||void 0===n?void 0:n.groupUsedCount)&&void 0!==l?l:0,b=f===h,g=(null==p?void 0:p.find(e=>{var t;return(null==e||null===(t=e[0])||void 0===t||null===(t=t.inGroup)||void 0===t?void 0:t.state)===eR.Aw.purchasable}))&&f===h-1,j=(0,L.useMemo)(()=>Object.values(null!=p?p:{}).sort((e,t)=>{var l,n,i,r;return(null!==(l=null==e||null===(n=e[0])||void 0===n||null===(n=n.inGroup)||void 0===n?void 0:n.orderInGroup)&&void 0!==l?l:0)-(null!==(i=null==t||null===(r=t[0])||void 0===r||null===(r=r.inGroup)||void 0===r?void 0:r.orderInGroup)&&void 0!==i?i:0)}),[p]),{setIsModalOpen:y}=(0,eW.Dc)(),w=(0,eH.M)(),O=eV().mobile,{signIn:N}=(0,eW.aC)(),{0:k,1:P}=(0,L.useState)({});(0,L.useEffect)(()=>{P({userId:(0,eq.Do)(eq.M2.userid)||(0,eq.Do)(eq.M2.token)||""})},[]),(0,L.useEffect)(()=>{P({userId:(0,eq.Do)(eq.M2.userid)||(0,eq.Do)(eq.M2.token)||""})},[m]),!s&&(h-=1,j.pop(),b&&(f-=1));let C=e$(null==a?void 0:a.json),Z="";return(0!==f||v?!(f>0)||g||v||b?g?Z=C.claim_final_reward:b?Z=C.final_reward_claimed:v&&(Z=C.missed):Z=C.on_track:Z=C.unclaimed,k.userId&&p&&p.length<=0)?null:(0,R.jsxs)("section",{"data-theme":(null===(i=r.palette)||void 0===i||null===(i=i.sys)||void 0===i?void 0:i.id)||"none!",className:(0,T.Z)("layout layout-content max-w-layout items-center mx-auto"),children:[(0,R.jsx)(eJ.p,{id:r.id}),(0,R.jsx)("div",{className:(0,T.Z)("rounded-xl mt-8 p-5",eQ().main),children:k.userId?(0,R.jsxs)("div",{children:[(0,R.jsxs)("div",{className:"flex flex-col items-start max-w-screen-3xl mx-auto mb-2",children:[(0,R.jsx)("div",{className:"text-m font-bold me-0 sm:me-4",children:Z}),(0,R.jsx)("div",{className:"text-body-s mt-2",children:"".concat(f,"/").concat(h," ").concat(C.rewards_claimed)})]}),(0,R.jsx)("div",{className:"flex flex-wrap [&>picture]:me-2 [&>picture]:mt-2",children:j.map(e=>{var t,l,n,i,r;let o="";switch(null==e||null===(t=e[0])||void 0===t||null===(t=t.inGroup)||void 0===t?void 0:t.state){case eR.Aw.owned:o=null!==(l=null==c?void 0:c.url)&&void 0!==l?l:"";break;case eR.Aw.hidden:o=null!==(n=null==u?void 0:u.url)&&void 0!==n?n:"";break;default:o=null!==(i=null==d?void 0:d.url)&&void 0!==i?i:""}return(0,R.jsx)(eB.E,{sizes:"37.5px",src:o,alt:""},null==e||null===(r=e[0])||void 0===r?void 0:r.skuId)})})]}):(0,R.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center max-w-screen-3xl mx-auto",children:[(0,R.jsx)("div",{className:"text-m font-bold mb-5 sm:mb-0 me-0 sm:me-4",children:C.anonymous}),(0,R.jsx)("div",{className:"w-full sm:flex sm:flex-1 sm:justify-end",children:(0,R.jsx)("button",{type:"button",onClick:()=>{x?y(!0):O?N():w()},className:(0,T.Z)(eQ().button,"btn w-full sm:w-fit text-button-text text-button-m uppercase"),children:null==o?void 0:o.text})})]})})]})}function eY(e){let{item:t}=e;return(0,R.jsx)(eU.R,{children:(0,R.jsx)(eK,{item:t})})}function e0(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function e1(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?e0(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):e0(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}var e2=e=>(0,R.jsx)("svg",e1(e1({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,R.jsx)("path",{fill:"currentColor",d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8Zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24a.71.71 0 0 0-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72Z"})})),e5=l(85091),e4=l(87072),e3=l(90805);function e9(e){var t,l,n,i,r,o,s,a,c,d,u,m,p,v,x,h,f,b,g,j;let{item:y}=e,{user:w}=(0,eW.aF)(),{text:O,id:N,palette:k,stampImage:P,stampSilhouetteImage:C}=y,Z=(0,e5.J)(),{t:S}=(0,ei.$G)(),D=Array.from({length:(null==w||null===(t=w.punchCard)||void 0===t?void 0:t.maxPurchases)||0},(e,t)=>{var l;return((null==w||null===(l=w.punchCard)||void 0===l?void 0:l.maxPurchases)||0)-t}),_=(null==w||null===(l=w.punchCard)||void 0===l?void 0:l.remainingPurchases)!==0&&(null==w||null===(n=w.punchCard)||void 0===n?void 0:n.remainingPurchases)!==(null==w||null===(i=w.punchCard)||void 0===i?void 0:i.maxPurchases),E=null!==(r=null==w?void 0:w.punchCard)&&void 0!==r?r:null,I=(null==w||null===(o=w.punchCard)||void 0===o?void 0:o.remainingPurchases)===0,L=Number(null==w||null===(s=w.punchCard)||void 0===s?void 0:s.timeLeft),A=(0,e4.i8)(null!==(a=null==w||null===(c=w.punchCard)||void 0===c?void 0:c.duration)&&void 0!==a?a:""),G=e=>{var t;return e.replace("{{maxPurchases}}",(null==w||null===(t=w.punchCard)||void 0===t||null===(t=t.maxPurchases)||void 0===t?void 0:t.toString())||"").replace("{{duration}}",A.toString())},M=e$(null==O?void 0:O.json),B=G((null==M?void 0:M.description_empty)||""),H=G((null==M?void 0:M.description_active)||"");return w&&E&&(0,R.jsxs)("div",{"data-theme":null==k||null===(d=k.sys)||void 0===d?void 0:d.id,className:"layout layout-content max-w-layout p-4",children:[(0,R.jsx)(eJ.p,{id:N}),(0,R.jsxs)("div",{className:(0,T.Z)(eQ().main,"p-4 rounded-lg border-1"),children:[(0,R.jsx)("p",{className:(0,T.Z)("text-body-s font-normal",_&&"mb-2"),children:(null==w||null===(u=w.punchCard)||void 0===u?void 0:u.remainingPurchases)!==(null==w||null===(m=w.punchCard)||void 0===m?void 0:m.maxPurchases)?H:B}),_&&(0,R.jsxs)("div",{className:(0,T.Z)(eQ().timer,"text-body-s font-bold"),children:[(0,R.jsx)(e2,{className:"h-4 w-4 min-w-[1rem] inline me-1"}),(0,R.jsx)(e3.I,{endDate:(0,e4.W9)(L),onDone:Z,children:(0,R.jsx)(e3.T,{className:"align-middle uppercase",daysHoursOnly:!0})})]}),(0,R.jsx)("div",{className:"flex flex-row items-start py-2",children:D.map((e,t)=>{var l,n,i,r,o,s,a,c;return e>(null!==(l=null!==(n=null==w||null===(i=w.punchCard)||void 0===i?void 0:i.remainingPurchases)&&void 0!==n?n:null==w||null===(r=w.punchCard)||void 0===r?void 0:r.maxPurchases)&&void 0!==l?l:0)?(0,R.jsx)("div",{children:(0,R.jsx)(eB.E,{sizes:"38px",quality:100,title:null==P?void 0:P.url,alt:null==P?void 0:P.url,src:null==P?void 0:P.url})},"punch-card-image-".concat(t)):(0,R.jsxs)("div",{className:"relative grid grid-cols-1 items-center justify-items-center",children:[(0,R.jsx)("div",{className:"absolute col-start-1 font-bold",children:t+1}),(0,R.jsx)(eB.E,{sizes:"38px",quality:100,className:"col-start-1",title:null!==(o=null==y||null===(s=y.stampSilhouetteImage)||void 0===s?void 0:s.url)&&void 0!==o?o:"",alt:null!==(a=null==C?void 0:C.url)&&void 0!==a?a:"",src:null!==(c=null==C?void 0:C.url)&&void 0!==c?c:""})]},"punch-card-empty-".concat(t))})}),I&&(0,R.jsx)("p",{className:"font-bold mb-2",children:S("punchcard-completed")}),(0,R.jsxs)("div",{className:"font-bold flex flex-row items-center",children:[I?S("you-won-amount",{chipAmount:Number(null==w||null===(p=w.punchCard)||void 0===p?void 0:p.rewardQuantity).toLocaleString()}):S("win-amount",{chipAmount:Number(null==w||null===(v=w.punchCard)||void 0===v?void 0:v.rewardQuantity).toLocaleString()}),(0,R.jsx)(eB.E,{sizes:"12px",className:"w-6 align-bottom pl-1",title:null!==(x=null==w||null===(h=w.punchCard)||void 0===h?void 0:h.rewardIcon)&&void 0!==x?x:"",alt:null!==(f=null==w||null===(b=w.punchCard)||void 0===b?void 0:b.rewardIcon)&&void 0!==f?f:"",src:null!==(g=null==w||null===(j=w.punchCard)||void 0===j?void 0:j.rewardIcon)&&void 0!==g?g:""})]})]})]})}var e8=l(79769),e6=l(68390),e7=l(62756),te=l.n(e7),tt=l(23463),tl=l(42143),tn=l(92908),ti=l(54378),tr=l(15046),to=l(51734),ts=l(11101),ta=l(72263),tc=l(38303);let td=(0,V.iv)(x||(x=(0,F.Z)(["\n  ","\n  ","\n  \n  > h3 {\n    ","\n  }\n"])),{marginBottom:"2rem",fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"},(0,tc.c)(),{fontWeight:"bold",fontFamily:"var(--font-secondary)",fontSize:"2rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"}),tu={textAlign:"center"},tm=(0,V.iv)(h||(h=(0,F.Z)(["\n  text-align: end;\n"])));function tp(e){let{json:t,alignment:l}=e;return t?(0,ec.tZ)("section",{css:[td,"CENTER"===l&&tu,"RIGHT"===l&&tm],children:(0,ec.tZ)(ee.H,{document:t})}):null}function tv(e){let{nextPageTitle:t,searchQuery:l}=e,{t:n}=(0,ei.$G)(),i=(0,e7.useRouter)();return(0,R.jsxs)("button",{className:"ms-auto hover:[text-decoration:none] flex items-center type-body-s-bold uppercase type-link hover:type-link-hover",type:"button",onClick:()=>{i.push("/search?".concat(l).concat(t?"&title=".concat(t):""),void 0,{shallow:!1})},children:[n("See all"),(0,R.jsx)(e6.J,{className:"w-4 h-4 ms-2 [margin-block-end:0.125rem]"})]})}function tx(e){var t,l,n,i,r,o,s,a,c;let{item:d,layoutStyle:u,layoutItems:m,backgroundUrl:p}=e,v=d.searchQuery||"",x="".concat(v,"&").concat(tt.bc.size,"=").concat(6),{data:h}=(0,tn.R)(x),f=null==h?void 0:h.results[0],b=(null==f||null===(t=f.contentType)||void 0===t?void 0:t[0])===tt.kc,g=(null!==(l=null==h?void 0:h.total.value)&&void 0!==l?l:0)>6,j=b?ti.O:tr.J,y=(0,L.useMemo)(()=>(0,en.E)(null==h?void 0:h.results),[null==h?void 0:h.results]);return(0,R.jsxs)(ea.v,{backgroundImageUrl:p,slug:(0,el.U)(d.id||(null==d||null===(n=d.header)||void 0===n?void 0:n.text)),title:null==d||null===(i=d.header)||void 0===i?void 0:i.text,"data-testid":U.OmU,link:g&&(0,R.jsx)(tv,{nextPageTitle:(null===(r=d.header)||void 0===r?void 0:r.text)||"",searchQuery:v}),children:[(0,R.jsx)(tp,{json:null==d||null===(o=d.text)||void 0===o?void 0:o.json}),(0,R.jsx)(ez.jW,{value:null==h?void 0:h.skus,children:(0,R.jsx)(ta.K,{id:"list-".concat(null===(s=d.sys)||void 0===s?void 0:s.id),"aria-label":null==d||null===(a=d.header)||void 0===a?void 0:a.text,title:null==d||null===(c=d.header)||void 0===c?void 0:c.text,peek:!1===d.peek?"never":"mobile",bleed:!0,layoutItems:m,layoutStyle:u,children:y.map(e=>{var t;return(0,R.jsx)(tl.nW,{value:e,children:(0,R.jsxs)(j,{slug:e.slug,children:[b&&(0,R.jsx)(to.O,{maxImageWidth:tt.QK}),!b&&(0,R.jsx)(ts.o,{})]})},null===(t=e.sys)||void 0===t?void 0:t.id)})})})]})}var th=l(74884),tf=l(12566);function tb(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function tg(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?tb(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):tb(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function tj(e){var t,l,n,i,r;let{item:o,layoutItems:s,layoutStyle:a,backgroundUrl:c}=e,{productCollection:d,merchProductsCollection:u}=o,m=(0,ez.TA)(),{t:p}=(0,ei.$G)(),{StoreBrowseGame:v}=(0,th.l)(),x=(0,tf.s)(),h=(0,L.useMemo)(()=>{var e,t;let l=!!(null!==(e=null==u||null===(t=u.items)||void 0===t?void 0:t.length)&&void 0!==e?e:0),n=l?(0,en.E)(null==u?void 0:u.items):(0,en.E)(null==d?void 0:d.items),i=null==n?void 0:n.map(e=>{var t,n,i,r,o,s,a;let c;let d="PromoTile"===e.__typename?ez.jW:L.Fragment,u=(null==v?void 0:v.TileWrapper)||(l?ti.O:tr.J),x="PromoTile"===e.__typename&&e.productDetailPage||"MerchandiseProductDetailPage"===e.__typename&&e||"ProductDetailPage"===e.__typename&&e||null;if(null===x)return null;let h={},f="",b=null===(t=x.item)||void 0===t||null===(t=t.sys)||void 0===t?void 0:t.id;if("PromoTile"===e.__typename){let t=null!==(n=null==x||null===(i=x.item)||void 0===i||null===(i=i.sys)||void 0===i?void 0:i.id)&&void 0!==n?n:"",l=null===(r=e.displaySkusCollection)||void 0===r||null===(r=r.items)||void 0===r?void 0:r.map(e=>{var l;return null==m||null===(l=m[t])||void 0===l?void 0:l.find(t=>{var l;return(null==e||null===(l=e.sys)||void 0===l?void 0:l.id)===(null==t?void 0:t.skuId)})});if((null===(o=(0,en.E)(l))||void 0===o?void 0:o.length)===0)return null;null!=v&&v.filterOwnedTiles&&(null==l||null===(s=l[0])||void 0===s?void 0:s.purchaseState)===eR.Aw.owned&&(c=p("you-own-this")),f=(null==l||null===(a=l[0])||void 0===a?void 0:a.drm)||"",b="".concat(b,"-promotile"),h.value={[t]:l}}return(0,R.jsx)(d,tg(tg({},h),{},{children:(0,R.jsx)(tl.nW,{value:null==x?void 0:x.item,children:(0,R.jsxs)(u,{slug:null==x?void 0:x.slug,drm:f,children:[l&&(0,R.jsx)(to.O,{maxImageWidth:tt.QK}),!l&&(0,R.jsx)(ts.o,{maxImageWidth:tt.QK,entitledLabel:c})]})})}),b)});return(0,en.E)(i)},[null==u?void 0:u.items,null==d?void 0:d.items,null==v?void 0:v.TileWrapper,null==v?void 0:v.filterOwnedTiles,p,m]);return h&&h.length<1?null:(0,R.jsxs)(ea.v,{backgroundImageUrl:c,alignment:o.alignment,slug:(0,el.U)(o.id||(null===(t=o.header)||void 0===t?void 0:t.text)),title:null===(l=o.header)||void 0===l?void 0:l.text,"data-testid":U.OmU,children:[(0,R.jsx)(tp,{alignment:o.alignment,json:null==o||null===(n=o.text)||void 0===n?void 0:n.json}),(0,R.jsx)(ta.K,{bleed:!0,peek:!1===o.peek?"never":"mobile",peekSize:x,alignment:o.alignment,id:"list-".concat(null===(i=o.sys)||void 0===i?void 0:i.id),title:null===(r=o.header)||void 0===r?void 0:r.text,layoutItems:s,layoutStyle:a,children:h})]})}var ty=l(30875),tw=l(83608),tO=l(52982),tN=l(59751),tk=l(52582),tP=l(37138),tC=l(19236),tZ=l(38756),tS=l(6669),tD=l(42335);let t_={Action:tw.Q,Arcade:tO.L,Roleplaying:tN.i,Shooting:tk.W,Sports:tP.h,Strategy:tC.q},tE=e=>{let{category:t,label:l,icon:n,backgroundImage:i}=e,r=(null==t?void 0:t.slug)||"";return{key:r,Icon:t_[n||""],label:l,value:r,background:(null==i?void 0:i.url)||""}};function tI(e){let{item:t}=e;return(0,ec.tZ)(tD.E,{slug:t.value,children:(0,ec.tZ)(tZ.P,{item:t})})}var tT=l(48625),tL=l(41013),tA=l(31315),tG=l(24853),tM=l(58660),tB=l(85942),tR=l(18851),tH=l(61964),tF=l(9023),tV=l(78085);function tU(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function tz(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?tU(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):tU(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let tW=(0,V.iv)(f||(f=(0,F.Z)(["\n  --color-success: var(--color-secondary);\n\n  ","\n\n  /* TODO: Set a variable in UI-Lib and override that, instead of adding backfill here. */\n  > div {\n    padding-bottom: var(--comparison-table-boxart-aspect-ratio, 56.25%);\n  }\n\n  section > div {\n    ","\n\n    button {\n      ","\n    }\n  }\n"])),{".light &":{"--tw-shadow":"0px 2px 4px rgba(var(--color-black-rgb), 0.24)","--tw-shadow-colored":"0px 2px 4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{width:"100%"},{width:"100%"}),tq={display:"flex"},tJ=(0,V.iv)(b||(b=(0,F.Z)(["\n  /* This is needed so that GTM captures the ID on button when clicked */\n  ","\n"])),tB.D);function tX(e){let t=Object.assign({},((0,tA.Z)(e),e)),{discountPercentage:l,isPromoActive:n}=(0,eW.kc)(),{title:i,drm:r}=t,o=(0,eW.Yv)(r),s=(0,tV.p)([]),a=i.toLowerCase().replace(/[^A-Z0-9]+/gi,"-"),c=(0,es.fm)()<((null==o?void 0:o.releaseDate)||0),d=!!(null!=o&&o.externalSiteLink);return(0,ec.tZ)(tG.A,tz(tz({},t),{},{css:tW,discountLabel:n&&l,purchaseButton:(null==o?void 0:o.purchaseState)===eR.Aw.owned&&(0,ec.tZ)("span",{css:tq,children:(0,ec.tZ)(tF.f,{isPreOrder:c,sku:o})})||(null==o?void 0:o.purchaseState)===eR.Aw.purchasable&&(0,ec.BX)("div",{className:"w-full flex flex-col gap-4",children:[(0,ec.tZ)(tR.i,{css:tJ,id:"".concat(tM.fd,"-").concat(a),"data-skuid":null==o?void 0:o.skuId,children:(0,ec.tZ)(tH.d,{showBuyPriceLabel:!0,isExternalLink:d})}),(0,ec.tZ)(tR.a,{id:"".concat(tM.Ro,"-").concat(a),"data-skuid":null==o?void 0:o.skuId})]}),ctaMessages:s,"data-testid":"".concat(U.XPk,"-").concat(i)}))}function tQ(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function t$(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?tQ(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):tQ(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}var tK=l(4990),tY=l(87899);function t0(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function t1(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?t0(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):t0(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let t2=(e,t)=>(0,tY.r7)(e,t1(t1({},{isLauncher:!1}),t));var t5=l(7906),t4=l(66436),t3=l(24182);function t9(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function t8(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?t9(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):t9(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let t6={maxWidth:"100%",paddingLeft:"0px !important",paddingRight:"0px !important"},t7=(0,V.iv)(g||(g=(0,F.Z)(["\n  ","\n  ",";\n  max-width: ",";\n"])),tK.u,{marginLeft:"auto",marginRight:"auto",width:"100%"},t4.Eq),le=(0,V.iv)(j||(j=(0,F.Z)(["\n  ",";\n\n  max-width: ",";\n\n  > div {\n    ","\n  }\n\n  > div > button {\n    ","\n  }\n\n  > ul {\n    ","\n  }\n\n  > ul > li > p {\n    ","\n  }\n"])),{marginLeft:"auto",marginRight:"auto",width:"100%"},t4.Eq,{borderRadius:"0px",paddingLeft:"0px",paddingRight:"0px"},{marginRight:"1rem","@media (min-width: 1024px)":{marginRight:"2rem"},"@media (min-width: 1280px)":{marginRight:"4rem"},"@media (min-width: 1920px)":{marginRight:"6rem"}},{listStylePosition:"inside",listStyleType:"disc"},{display:"inline"});var lt=l(65753),ll=l(40232),ln=l(26326),li=l.n(ln),lr=l(82338),lo=l(79178),ls=l(49818),la=l(24241),lc=l(69852),ld=l(74433),lu=l(48953),lm=l(77486),lp=l(9092),lv=l(60028),lx=l(59591),lh=l(87529),lf=l(15908),lb=l.n(lf);function lg(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function lj(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?lg(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):lg(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function ly(e){var t;let{text:l,palette:n,target:i,openInNewTab:r,showExternalLinkIcon:o,video:s,analyticsData:a}=e,{0:c,1:d}=(0,L.useState)(!1),{trackAnalyticsData:u}=(0,lx.z)(),m=(0,e7.useRouter)(),{searchParams:p}=(0,lc.j)(),v=(0,L.useMemo)(()=>s?[lj(lj({},s),{},{key:(0,G.km)(s)})]:[],[s]);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("button",{className:(0,T.Z)("inline-flex relative sm:w-fit w-full mt-4 text-center font-bold text-base uppercase overflow-hidden align-middle items-center justify-center cursor-pointer align-start",lb().button),"data-link":i,"data-theme":null==n||null===(t=n.sys)||void 0===t?void 0:t.id,onClick:e=>{s?(e.preventDefault(),d(!0)):i&&(u({metadata:a}),r?(0,lu.x)(i):m.push({pathname:i,query:p}))},type:"button",children:[(0,R.jsx)("div",{children:l}),o&&(0,R.jsxs)(R.Fragment,{children:["\xa0",(0,R.jsx)(lv.Z,{className:"ml-2"})]}),(0,R.jsx)("span",{className:"absolute w-full h-full hover:bg-black hover:opacity-20"})]}),s&&c&&(0,R.jsx)(lh.e,{media:v,initialSelectedItem:0,requestClose:()=>{d(!1)},labelClose:"close",AgeGate:lm.m})]})}let lw=["sys","articleCollection","__typename"];function lO(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function lN(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?lO(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):lO(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let lk=(0,V.iv)(y||(y=(0,F.Z)(["\n  /* Special use case: we need to go full screen for this key feature layout */\n  ","\n\n  div& {\n    ","\n  }\n\n  /* since we're using full screen width, we need the section header and key feature pre/post-text to follow other containers */\n  > section > header,\n  > section > section > header,\n  > section > section > footer {\n    ","\n  }\n"])),{maxWidth:"100%"},{paddingLeft:"0px",paddingRight:"0px"},tS.FG),lP=(0,V.iv)(w||(w=(0,F.Z)(["\n  @media (min-width: ","px) {\n    > div:first-of-type {\n      padding-top: 3rem;\n    }\n\n    > div:last-of-type {\n      padding-bottom: 3rem;\n    }\n  }\n"])),z.rG),lC=(0,V.iv)(O||(O=(0,F.Z)(["\n  > div > div > div:first-of-type {\n    width: 100%;\n    height: 15.5rem;\n  }\n"])));var lZ=l(36944),lS=l(45092),lD=l(38712),l_=l(56013),lE=l(46219),lI=l(72956);let lT=(e,t)=>{var l,n;return"order-history"===e?"account/order-history":(0,lI.BD)(t)?null!==(l=t.slug)&&void 0!==l?l:"":(0,lI.tS)(t)&&null!==(n="game/".concat(t.slug))&&void 0!==n?n:""};function lL(e){let{title:t,subtitle:l,buttonLabel:n,buttonTestId:i,onButtonClick:r,children:o}=e;return(0,ec.BX)("div",{className:"p-8 flex flex-col items-start bg-neutral-100-40 rounded min-h-[245px]",children:[(0,ec.BX)(J.H,{className:"type-headline-m",children:[" ",t," "]}),(0,ec.BX)("span",{className:"type-body-s my-2",children:[" ",l," "]}),o,n&&(0,ec.tZ)("button",{type:"button",className:"btn bg-primary text-button-text text-button-m mt-auto",onClick:r,"data-testid":i,children:n})]})}function lA(e){let{layout:t}=e,l=(0,eo.b)(),n=(0,e7.useRouter)(),{getValidAccessToken:i}=(0,eW.aC)(),{0:r,1:o}=(0,L.useState)(""),{0:s,1:a}=(0,L.useState)(!1),{user:c}=(0,eW.aF)(),d=function(e,t){let l=(null==t?void 0:t.subscription)&&"active"===t.subscription.status;return(0,L.useMemo)(()=>{var t;return null===(t=e.cardsCollection)||void 0===t||null===(t=t.items)||void 0===t?void 0:t.filter(e=>{var t,n;let i=null==e||null===(t=e.buttonsCollection)||void 0===t||null===(t=t.items)||void 0===t?void 0:t[0],r=null!==(n=null==i?void 0:i.target)&&void 0!==n?n:"";return("join"!==r||!l)&&("manage"!==r||!!l)})},[e,l])}(t,c),u=(0,L.useCallback)(async()=>{a(!0);let e=l?tt.U7[l]||l:"en",t=await i(),{url:n}=await(0,l_.ip)((null==c?void 0:c.userId)||"",t,e);o(n)},[i,l,null==c?void 0:c.userId]),m=(e,t)=>{"edit-physical"===e?u():"edit-digital"===e?n.push({pathname:"/update-payment",query:{stripe:"true",payments_test:"true"}}):t&&n.push({pathname:t})};return(0,ec.BX)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:[null==d?void 0:d.map(e=>{var t,l,n;if(!e)return null;let{title:i,content:r,buttonsCollection:o}=e,s=(0,lS.a)(null==r?void 0:r.json),a=null==o||null===(t=o.items)||void 0===t?void 0:t[0],c=null!==(l=null==a?void 0:a.target)&&void 0!==l?l:"",d=null==a?void 0:a.targetReference,u=null!==(n=null==a?void 0:a.text)&&void 0!==n?n:"",p=lT(c,d);return(0,ec.tZ)(lL,{title:i,subtitle:(0,ec.tZ)(er.D,{className:"[&_a]:type-link hover:[&_a]:type-link-hover",linkTarget:"_blank",children:s}),buttonLabel:u,onButtonClick:()=>m(c,p)})}),(0,ec.tZ)(lD.e,{isOpen:s,requestClose:()=>{o(""),a(!1)},labelClose:"Close",css:lE.E,children:r?(0,ec.tZ)("iframe",{className:"flex flex-col flex-grow",title:"Checkout",src:r,frameBorder:"0",allowFullScreen:!0}):(0,ec.tZ)("div",{className:"flex flex-grow items-center justify-center",children:(0,ec.tZ)(K.T,{})})})]})}function lG(e){let{layoutCardList:t}=e,{t:l}=(0,ei.$G)();return(0,R.jsx)("section",{className:"layout py-16",children:(0,R.jsx)("div",{className:"layout-content max-w-layout mx-auto",children:(0,R.jsxs)(lZ._,{pageName:l("my-account-inline"),children:[(0,R.jsx)(J.H,{className:"type-headline-xl pb-4 w-full mb-8 border-0 border-b border-neutral-999-20",children:t.title}),(0,R.jsx)(lA,{layout:t})]})})})}var lM=l(11389);function lB(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function lR(){let{t:e}=(0,ei.$G)(),t=(0,lo.Z)().rating;if(!t)return null;let{icon:l,descriptors:n,imageDescriptors:i,ratingInfoLink:r}=t,o={iconSrc:(0,G.Jn)(l),iconAlt:(0,G.EQ)(l),descriptors:(0,en.E)(n).map(t=>e(t)),imageDescriptors:(0,en.E)(i).map(e=>({src:(0,G.Jn)(e),alt:(0,G.EQ)(e)})),ratingInfoLink:r};return(0,R.jsx)("div",{className:(0,T.Z)("flex flex-col w-fit h-full"),children:(0,R.jsx)(lM.d,function(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?lB(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):lB(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}({},o))})}var lH=l(95370),lF=l.n(lH);function lV(e){var t;return null==e||null===(t=e.items)||void 0===t?void 0:t.map(e=>{var t,l,n;return(null==e?void 0:e.target)&&(0,R.jsx)("a",{target:"_blank",className:(0,T.Z)("mt-auto"),href:e.target,rel:"noopener noreferrer",children:(0,R.jsx)("button",{type:"button",className:(0,T.Z)(lF().cardButton,"mt-1"),"data-testid":U.t8H,"data-theme":null!==(l=null==e||null===(n=e.palette)||void 0===n||null===(n=n.sys)||void 0===n?void 0:n.id)&&void 0!==l?l:"none",children:null==e?void 0:e.text})},"button-".concat(null===(t=e.sys)||void 0===t?void 0:t.id))})}function lU(e){var t,l;let{buttonsCollection:n,title:i,content:r,palette:o}=e;return(0,R.jsxs)("div",{className:(0,T.Z)(lF().card,"flex flex-col h-full px-3 py-5"),"data-theme":null!==(t=null==o||null===(l=o.sys)||void 0===l?void 0:l.id)&&void 0!==t?t:"none",children:[(0,R.jsx)("span",{className:lF().cardTitle,children:i}),(0,R.jsx)("div",{className:(0,T.Z)(lF().cardContent,"my-1"),children:r&&(0,R.jsx)(ee.H,{document:null==r?void 0:r.json})}),n&&lV(n)]})}function lz(e){var t,l,n,i,r;let{buttonsCollection:o,title:s,content:a,palette:c,image:d}=e,u=s||(null==a?void 0:a.json.content.length)>0||!!(null!=o&&null!==(t=o.items)&&void 0!==t&&t.length);return(0,R.jsxs)("div",{className:(0,T.Z)(lF().card,"rounded m-auto max-w-[176px] sm:max-w-[234px]",u?"h-full":""),"data-theme":null!==(l=null==c||null===(n=c.sys)||void 0===n?void 0:n.id)&&void 0!==l?l:"none",children:[(0,R.jsx)(eB.E,{className:(0,T.Z)("rounded-t w-full"),src:null!==(i=null==d?void 0:d.url)&&void 0!==i?i:"",alt:null!==(r=null==d?void 0:d.title)&&void 0!==r?r:""}),u&&(0,R.jsxs)("div",{className:(0,T.Z)("px-3 py-5"),children:[(0,R.jsx)("span",{className:lF().cardTitle,children:s}),(0,R.jsx)("div",{className:(0,T.Z)(lF().cardContent,"my-1"),children:a&&(0,R.jsx)(ee.H,{document:null==a?void 0:a.json})}),o&&lV(o)]})]})}function lW(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function lq(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?lW(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):lW(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let lJ={CtaCard:"cta-card",PictureCard:"picture-card",AgeRating:"age-rating",Account:"account"},lX=(0,L.createContext)({code:"",setCode:()=>null}),lQ=(0,L.createContext)({redeemState:null,setRedeemState:()=>null}),l$=(0,L.createContext)({skuId:"",setSkuId:()=>null}),lK=(0,L.createContext)({listViewItem:{legalText:{},promotionUIs:[]},setListViewItem:()=>null});function lY(e){let{children:t}=e,{0:l,1:n}=(0,L.useState)(null),{0:i,1:r}=(0,L.useState)(""),{0:o,1:s}=(0,L.useState)(""),{0:a,1:c}=(0,L.useState)({legalText:{},promotionUIs:[]}),d=(0,L.useMemo)(()=>({code:i,setCode:r}),[i,r]),u=(0,L.useMemo)(()=>({redeemState:l,setRedeemState:n}),[l,n]),m=(0,L.useMemo)(()=>({skuId:o,setSkuId:s}),[o,s]),p=(0,L.useMemo)(()=>({listViewItem:a,setListViewItem:c}),[a,c]);return(0,R.jsx)(lX.Provider,{value:d,children:(0,R.jsx)(lQ.Provider,{value:u,children:(0,R.jsx)(l$.Provider,{value:m,children:(0,R.jsx)(lK.Provider,{value:p,children:t})})})})}let l0=()=>{let e=(0,L.useContext)(lX),t=(0,L.useContext)(lQ),l=(0,L.useContext)(l$),n=(0,L.useContext)(lK);return(0,L.useMemo)(()=>({code:null==e?void 0:e.code,setCode:null==e?void 0:e.setCode,redeemState:null==t?void 0:t.redeemState,setRedeemState:null==t?void 0:t.setRedeemState,skuId:null==l?void 0:l.skuId,setSkuId:null==l?void 0:l.setSkuId,listViewItem:null==n?void 0:n.listViewItem,setListViewItem:null==n?void 0:n.setListViewItem}),[e,t,l,n])};function l1(e){var t,l;let{item:n}=e,{t:i}=(0,ei.$G)(),{setCode:r,setListViewItem:o,setSkuId:s,setRedeemState:a}=l0();return(0,R.jsxs)(ea.P,{children:[(0,R.jsx)(J.H,{className:"type-headline-l 3xl:type-headline-xl pb-2 w-full",children:null===(t=n.errorTitle)||void 0===t?void 0:t.text}),(0,R.jsx)("div",{children:null===(l=n.errorDescription)||void 0===l?void 0:l.text}),(0,R.jsx)("div",{className:"mt-3 flex-col space-y-7",children:(0,R.jsx)("button",{onClick:()=>{r(""),a(null),o({legalText:{},promotionUIs:[]}),s("")},type:"button",className:"btn bg-primary text-button-text text-button-m mt-5 w-full lg:w-fit",children:i("Back")})})]})}var l2=l(70392),l5=l(99927);async function l4(e){let t=await fetch("/api/promo/".concat(e),{});if(!t.ok)throw new l5.V(t);return t.json()}var l3=l(19979),l9=l(6725);let l8=["error"];function l6(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function l7(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?l6(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):l6(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let ne=(0,V.iv)(N||(N=(0,F.Z)(["\n  ","\n"])),{position:"relative",height:"3rem",width:"100%",borderRadius:"0.25rem",borderWidth:"1px",backgroundColor:"var(--color-neutral-100)",borderColor:"rgba(var(--color-neutral-999-rgb), 0.2)"}),nt=(0,V.iv)(k||(k=(0,F.Z)(["\n  &::before {\n    ","\n    content: ''\n  }\n"])),{position:"absolute",left:"0px",top:"0px",display:"inline-block",height:"3rem",width:"0.25rem",borderBottomLeftRadius:"0.25rem",borderTopLeftRadius:"0.25rem",backgroundColor:"var(--color-error)"}),nl=L.forwardRef((e,t)=>{let{error:l}=e,n=(0,E.Z)(e,l8);return(0,ec.BX)(ec.HY,{children:[(0,ec.tZ)("div",{css:[ne,...l?[nt]:[]],children:(0,ec.tZ)("input",l7(l7({},n),{},{ref:t,className:"bg-transparent text-body-m h-full w-full px-4 text-neutral-999 placeholder:text-neutral-999-60"}))}),l&&(0,ec.tZ)("p",{className:"bg-error mt-2 rounded w-full h-12 px-3 flex items-center text-white",children:l})]})});function nn(e){var t,l,n,i;let{item:r}=e,{t:o}=(0,ei.$G)(),{user:s}=(0,eW.aF)(),{getValidAccessToken:a}=(0,eW.aC)(),{code:c,setCode:d,setListViewItem:u,setSkuId:m,setRedeemState:p}=l0(),v=(0,ez.aW)(),x=(0,eH.M)(),h=(0,e7.useRouter)(),{applicationId:f}=(0,A.H)(),{code:b}=h.query,g=(null==s?void 0:s.userId)||(0,eq.Do)(eq.M2.userid),{0:j,1:y}=(0,L.useState)(""),{0:w,1:O}=(0,L.useState)(o("Redeem"));(0,L.useEffect)(()=>{let e=e=>{e!==h.pathname&&localStorage.removeItem(l3.WQ)};return h.events.on("routeChangeStart",e),()=>{h.events.off("routeChangeStart",e)}},[h]),(0,L.useEffect)(()=>{if(g)O(o("Redeem"));else{var e;O((null===(e=r.anonymousButtonText)||void 0===e?void 0:e.text)||"")}},[g,r,o]),(0,L.useEffect)(()=>{let e=localStorage.getItem(l3.WQ);b&&"string"==typeof b?d((0,l3.sJ)(b,l3.IJ,l3.T9)):e?d((0,l3.sJ)(e,l3.IJ,l3.T9)):d("")},[b]);let N=(0,L.useCallback)(async e=>{var t,l,n,i,o,d,h,b,j,w;if(e.preventDefault(),e.stopPropagation(),!s&&!g){localStorage.setItem(l3.WQ,(0,l3.sJ)(c,l3.IJ,l3.T9)),(0,l9.s1)(l9.H7.CLICK_ON_CONNECT_AND_REDEEM),x();return}if((0,l9.s1)(l9.H7.CLICK_ON_REDEEM),!c){(0,l9.s1)(l9.H7.INVALID_CODE),y((null===(t=r.invalidCodeText)||void 0===t?void 0:t.text)||"");return}try{let e=null;if(s){localStorage.removeItem(l3.WQ);let t=await a();e=await(0,l2.CZ)(t,s.userId,c,f)}else g&&(e=await(0,l2.CZ)("",g,c,f));if(null!==(l=e)&&void 0!==l&&l.ok&&200===e.status){let{promotionId:t,skuId:l,eligible:n,redeemed:i}=await e.json();if(n&&!i){let e=await l4(t),n=await a(),i=null!==(h=e.promotionUIs[0].itemsCollection.items[0].sys.id)&&void 0!==h?h:"",r=await(0,l2.u3)(n,i);v(r),u(e),m(l),(0,l9.s1)(l9.H7.VALID_CODE),p(l2._w.Eligible)}else i?((0,l9.s1)(l9.H7.INVALID_CODE),p(l2._w.Redeemed),y((null===(b=r.usedCodeText)||void 0===b?void 0:b.text)||"")):((0,l9.s1)(l9.H7.INVALID_CODE),p(l2._w.Invalid),y((null===(j=r.invalidCodeText)||void 0===j?void 0:j.text)||""))}else(null!==(n=null===(i=e)||void 0===i?void 0:i.status)&&void 0!==n?n:0)>=400&&(null!==(o=null===(d=e)||void 0===d?void 0:d.status)&&void 0!==o?o:0)<=499?((0,l9.s1)(l9.H7.INVALID_CODE),p(l2._w.Invalid),y((null===(w=r.invalidCodeText)||void 0===w?void 0:w.text)||"")):((0,l9.s1)(l9.H7.INVALID_CODE),p(l2._w.Failed))}catch(e){(0,l9.s1)(l9.H7.INVALID_CODE),p(l2._w.Failed)}},[s,g,c,x,o]);return(0,ec.BX)(ea.P,{children:[(0,ec.tZ)(J.H,{className:"type-headline-l 3xl:type-headline-xl pb-2 w-full",children:null===(t=r.title)||void 0===t?void 0:t.text}),(0,ec.tZ)("div",{children:null===(l=r.description)||void 0===l?void 0:l.text}),(0,ec.BX)("div",{className:"mt-5",children:[(0,ec.tZ)("div",{className:"my-2 font-bold",children:null===(n=r.inputText)||void 0===n?void 0:n.text}),(0,ec.tZ)("div",{className:"w-full lg:w-2/5",children:(0,ec.BX)("form",{onSubmit:N,children:[(0,ec.tZ)(nl,{className:"border-l-2 border",placeholder:(null===(i=r.inputPlaceholder)||void 0===i?void 0:i.text)||"",onChange:e=>{d((0,l3.sJ)(e.target.value,l3.IJ,l3.T9)),y("")},error:j,value:c,maxLength:l3.T9}),(0,ec.tZ)("button",{type:"submit",className:"btn bg-primary text-button-text text-button-m mt-4 w-full lg:w-fit",children:w})]})})]})]})}nl.displayName="Input";var ni=l(56009),nr=l(17478),no=l(22379),ns=l(85061),na=l(51581),nc=l(10039),nd=l(5575),nu=l(46504),nm=l(88275);let np=(0,L.createContext)(()=>void 0);var nv=l(94439);function nx(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function nh(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?nx(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):nx(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}var nf=e=>(0,R.jsxs)("svg",nh(nh({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:[(0,R.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,R.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"})]})),nb=l(77759),ng=l(3752),nj=l(14547),ny=l(45723),nw=l(92688);let nO=(0,L.createContext)(null);var nN=l(64929),nk=l.n(nN);let nP=["children","className"];function nC(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function nZ(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?nC(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):nC(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function nS(e){let{children:t,className:l}=e,n=(0,E.Z)(e,nP);return(0,R.jsx)("span",nZ(nZ({className:(0,T.Z)("h-4 text-title inline align-middle tabular-nums !leading-none","[&>*]:align-middle [&>*]:inline","[&>svg]:h-4 [&>svg]:w-4",l,nk().main)},n),{},{children:t}))}function nD(){var e,t,l,n,i;let{t:r}=(0,ei.$G)(),o=(0,ny.X)(),{hideAttribute:s}=(0,nj.u)({itemId:null==o?void 0:o.itemId});if(!o||null!==(e=o.promotion)&&void 0!==e&&e.linkedStock)return null;let a=null!==(t=o.offerTagsArray)&&void 0!==t?t:[],c=null!==(l=o.promoLimitCount)&&void 0!==l?l:0,d=null!==(n=o.promoLimitUsed)&&void 0!==n?n:0,u=null;return((a.includes(eR.nb.Discount)||a.includes(eR.nb.CustomResetCadence)&&!a.includes(eR.nb.FreeItem))&&c>0?u=d<c?c-d:null:0===d&&a.includes(eR.nb.FreeItem)&&((null===(i=o.promotion)||void 0===i?void 0:i.reason)===tt.Fh.ClaimGiftOnce||a.includes(eR.nb.OneTime))?u=1:a.includes(eR.nb.FreeItem)&&(a.includes(eR.nb.CustomResetCadence)||a.includes(eR.nb.Daily)||a.includes(eR.nb.Weekly))&&c>0&&(u=d<c?c-d:null),null===u||s===nc.z.All)?null:(0,R.jsx)(nS,{"data-testid":U.aG1,children:(0,R.jsx)("span",{children:r("in-stock-quantity",{quantity:u})})})}function n_(e){var t;let{showIcon:l}=e,{t:n}=(0,ei.$G)(),i=(0,ny.X)();return(null==i||null===(t=i.promotion)||void 0===t?void 0:t.reason)!==tt.Fh.JustForYou?null:(0,R.jsxs)(nS,{"data-tileattr":"just-for-you",className:"!capitalize",children:[l&&(0,R.jsx)(nf,{})," ",n("rockstar-promo-just-for-you")]})}function nE(e){var t,l,n,i,r;let{showIcon:o}=e,s=(0,ny.X)(),a=null!==(t=null==s?void 0:s.offerTagsArray)&&void 0!==t?t:[],c=(0,L.useContext)(nO),{hideAttribute:d}=(0,nj.u)({itemId:null==s?void 0:s.itemId});if(!s||null!==(l=s.offerTagsArray)&&void 0!==l&&l.includes(eR.nb.HideCountdown)||!a.some(e=>e===eR.nb.Daily||e===eR.nb.Weekly||e===eR.nb.CustomResetCadence)||d===nc.z.All||d===nc.z.Countdown)return null;let u=null!==(n=s.promoLimitCount)&&void 0!==n?n:0,m=null!==(i=s.promoLimitUsed)&&void 0!==i?i:0,p=u>0&&m>=u||s.purchaseState===eR.Aw.owned||(null===(r=s.inGroup)||void 0===r?void 0:r.state)===eR.Aw.owned,v=Number(s.promoLimitResetDate);return(0,R.jsx)(e3.I,{onDone:()=>{var e,t;return null==c?void 0:c(null!==(e=null==s||null===(t=s.promotion)||void 0===t?void 0:t.id)&&void 0!==e?e:"recurring")},endDate:v,children:p?(0,R.jsxs)(nS,{"data-tileattr":"recurring","data-testid":U.xB,className:"whitespace-nowrap",children:[o&&(0,R.jsx)(e2,{})," ",(0,R.jsx)("span",{className:"whitespace-pre-wrap",children:(0,R.jsxs)(ei.cC,{i18nKey:"available-again-in-timer",children:["Available again in",(0,R.jsx)(e3.T,{daysHoursOnly:!0})]})})]}):(0,R.jsxs)(nS,{"data-tileattr":"recurring","data-testid":U.qfe,children:[o&&(0,R.jsx)(e2,{})," ",(0,R.jsx)(e3.T,{daysHoursOnly:!0})]})})}function nI(e){let{showIcon:t,releaseDate:l}=e,n=(0,ny.X)(),i=(0,L.useContext)(nO),r=l||(null==n?void 0:n.releaseDate)||0,o=(0,e4.fm)();return!n||r<=o?null:(0,R.jsx)(e3.I,{onDone:()=>{var e,t;return null==i?void 0:i(null!==(e=null==n||null===(t=n.promotion)||void 0===t?void 0:t.id)&&void 0!==e?e:"pre-release")},endDate:Number(r),children:(0,R.jsxs)(nS,{"data-tileattr":"prerelease",children:[t&&(0,R.jsx)(e2,{})," ",(0,R.jsx)("span",{children:(0,R.jsxs)(ei.cC,{i18nKey:"unlocks-in",children:["Unlocks in",(0,R.jsx)(e3.T,{daysHoursOnly:!0})]})})]})})}function nT(e){var t,l,n,i,r,o;let{showIcon:s,showBackground:a}=e,c=(0,ny.X)(),d=(0,L.useContext)(nO),{hideAttribute:u}=(0,nj.u)({itemId:null==c?void 0:c.itemId}),{days:m}=(0,ng.a)(null!==(t=null==c||null===(l=c.promotion)||void 0===l?void 0:l.end)&&void 0!==t?t:0,e4.fm),p=(0,L.useMemo)(()=>0===m&&a?(0,T.Z)("rounded py-0.5 !ps-1.5 !pe-1.5",nk().twentyFourHrsCountdownBg,nk().twentyFourHrsCountdownText):"",[m,a]),v=null!==(n=null==c?void 0:c.offerTagsArray)&&void 0!==n?n:[],x=null!==(i=null==c?void 0:c.promoLimitCount)&&void 0!==i?i:0,h=null!==(r=null==c?void 0:c.promoLimitUsed)&&void 0!==r?r:0;return!c||!(null!==(o=c.promotion)&&void 0!==o&&o.end)||c.promoLimitResetDate||v.includes(eR.nb.HideCountdown)||v.includes(eR.nb.OneTime)&&v.includes(eR.nb.FreeItem)&&1===x&&1===h||u===nc.z.All||u===nc.z.Countdown?null:(0,R.jsx)(e3.I,{onDone:()=>{var e,t;return null==d?void 0:d(null!==(e=null==c||null===(t=c.promotion)||void 0===t?void 0:t.id)&&void 0!==e?e:"active-promo")},endDate:c.promotion.end,children:(0,R.jsxs)(nS,{"data-tileattr":"active-sale","data-testid":U.qfe,className:p,children:[s&&(0,R.jsx)(e2,{})," ",(0,R.jsx)(e3.T,{daysHoursOnly:!0})]})})}function nL(){let{t:e}=(0,ei.$G)(),t=(0,L.useContext)(ns.V);return(0,R.jsx)(nv.h_,{children:(0,R.jsx)(nv.VY,{style:{zIndex:10},"data-theme":t,className:(0,T.Z)("data-[state=open]:animate-appear data-[state=closed]: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",nk().popup),children:(0,R.jsx)(er.D,{children:e("shared-stock-description")})})})}function nA(){var e,t,l;let n=(0,ny.X)(),{t:i}=(0,ei.$G)();if(!n||!(null!=n&&null!==(e=n.promotion)&&void 0!==e&&e.linkedStock))return null;let r=null!==(t=n.promoLimitCount)&&void 0!==t?t:0,o=null!==(l=n.promoLimitUsed)&&void 0!==l?l:0;return(0,R.jsxs)(nw.jz,{children:[(0,R.jsx)(nw.Qz,{className:"select-none",children:(0,R.jsx)(nS,{children:(0,R.jsxs)("span",{className:"whitespace-nowrap",children:[(0,R.jsx)("span",{className:"inline-block pe-1",children:i("in-stock-quantity",{quantity:r-o})}),(0,R.jsx)("span",{className:"align-middle mx-[0.125rem]",children:(0,R.jsx)("span",{className:(0,T.Z)(nk().icon,"inline-block rounded-full w-3 h-3"),children:(0,R.jsx)(nb.Z,{className:"text-xs"})})})]})})}),(0,R.jsx)(nL,{})]})}function nG(e){let{children:t,className:l}=e;return(0,R.jsx)("div",{className:(0,T.Z)("empty:hidden","divide-x [&>*]:border-white-20","[&>*]:px-2 [&>*:first-child]:ps-0 [&>*:last-child]:pe-0",l),children:t})}var nM=l(86774),nB=l(89586),nR=l(5870);function nH(){var e,t;let{t:l}=(0,ei.$G)(),n=(0,eW.XR)(),{discountedPrice:i,displayPrice:r}=(0,eW.kc)(),{user:o}=(0,eW.aF)(),s=(null==o?void 0:o.userId)||(0,eq.Do)(eq.M2.userid),a=(null==n||null===(e=n.promotion)||void 0===e?void 0:e.reason)===tt.Fh.ClaimGiftOnce||(null==n||null===(t=n.offerTagsArray)||void 0===t?void 0:t.includes(eR.nb.FreeItem));if(!n)return null;let c=r;return null!=n&&n.externalSiteLink||a?c=l("claim-gift"):!r&&s?c="":s||void 0!==r?i&&(c=i):c=l("connect-id"),(0,R.jsxs)("span",{"data-testid":U.qRy,children:[(0,R.jsx)("span",{className:"text-body-m !leading-none",children:c}),i&&!a&&(0,R.jsx)("s",{className:"line-through text-body-s font-normal !leading-none opacity-60 ms-2",children:r})]})}var nF=l(67957),nV=l.n(nF);function nU(e){var t,l,n,i,r,o,s,a,c,d,u;let{title:m,closedChestImage:p,openChestImage:v,currencyIcon:x,description:h,minPurchaseDescription:f,delayState:b}=e,{t:g}=(0,ei.$G)(),j=(0,L.useContext)(ns.V),{user:y}=(0,eW.aF)(),w=(0,L.useContext)(np),O=(0,eH.M)(),N=(null==b||null===(t=b.richText)||void 0===t||null===(t=t.json.content)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.content)||void 0===t?void 0:t[0].value)==="true",k=null!==(l=null==y||null===(n=y.chestInfo)||void 0===n||null===(n=n.bonus)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.amount)&&void 0!==l?l:y?0:"-",P=(null==y||null===(i=y.chestInfo)||void 0===i||null===(i=i.minToQualify)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.amount)||1,C=P>((null==y||null===(r=y.chestInfo)||void 0===r||null===(r=r.bonus)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.amount)||0),Z=(0,R.jsxs)(nR.l,{disabled:!!((C||N)&&y),onClick:()=>{O(),w()},children:[!!(C&&y)&&(0,R.jsx)(nM.Z,{className:"mr-2 text-2xl"}),(C||!N)&&(0,R.jsx)(nH,{})]});return(0,R.jsxs)("div",{"data-theme":j||"none",className:(0,T.Z)(nV().main,"w-full h-full flex flex-col px-7 py-11 rounded-lg overflow-auto [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar-track]:!bg-transparent gap-y-4","data-[state=open]:animate-content-show data-[state=closed]:animate-content-hide"),children:[(0,R.jsxs)("section",{className:"flex flex-col items-center gap-y-4",children:[(0,R.jsx)("button",{onClick:w,type:"button",className:"absolute top-0 right-0 p-2",children:(0,R.jsx)(nB.Z,{className:"text-2xl"})}),(0,R.jsx)(J.H,{className:"text-xl font-bold whitespace-pre-wrap text-center",children:null==m?void 0:m.locText}),(0,R.jsxs)(nG,{children:[(0,R.jsx)(nT,{showIcon:!0,showBackground:!0}),(0,R.jsx)(nE,{})]}),C||N?(0,R.jsx)(eB.E,{sizes:"100px",src:(null==p||null===(o=p.image)||void 0===o?void 0:o.url)||"",alt:(null==p||null===(s=p.image)||void 0===s?void 0:s.title)||""}):(0,R.jsx)(eB.E,{sizes:"120px",src:(null==v||null===(a=v.image)||void 0===a?void 0:a.url)||"",alt:(null==v||null===(c=v.image)||void 0===c?void 0:c.title)||""})]}),(0,R.jsx)("section",{className:"flex items-center justify-center",children:(0,R.jsxs)("div",{className:"px-2 py-1 bg-black-20 h-fit w-fit gap-y-1 rounded-md flex flex-row items-center",children:[(0,R.jsx)(eB.E,{sizes:"30px",src:(null==x||null===(d=x.image)||void 0===d?void 0:d.url)||"",alt:(null==x||null===(u=x.image)||void 0===u?void 0:u.url)||""}),(0,R.jsx)("span",{className:"text-base font-bold",children:k})]})}),(0,R.jsx)("p",{className:"text-body-m whitespace-pre-wrap",children:null==h?void 0:h.locText}),Z,(0,R.jsx)("p",{className:"text-body-s whitespace-pre-wrap",children:y&&g((null==f?void 0:f.locText)||"",{minGemsAmount:P})})]})}var nz=l(99418),nW=l.n(nz);function nq(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function nJ(e){var t,l,n,i,r,o,s,a,c,d,u,m,p,v,x;let{additionalData:h}=e,f=(0,eW.XR)(),{t:b}=(0,ei.$G)(),{0:g,1:j}=(0,L.useState)(!1),y=(0,nd.M)(h),{user:w}=(0,eW.aF)(),O=(0,L.useCallback)(()=>j(!1),[j]);if(!y)return null;let{widgetPalette:N,backgroundImage:k,closedChestImage:P,openChestImage:C,currencyIcon:Z}=y,S=null!==(t=null==w||null===(l=w.chestInfo)||void 0===l||null===(l=l.bonus)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.amount)&&void 0!==t?t:w?0:"-",D=((null==w||null===(n=w.chestInfo)||void 0===n||null===(n=n.minToQualify)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.amount)||1)>((null==w||null===(i=w.chestInfo)||void 0===i||null===(i=i.bonus)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.amount)||0),E=(null==f?void 0:f.promoLimitResetDate)||(null==f||null===(r=f.promotion)||void 0===r?void 0:r.end);return(0,R.jsxs)("div",{children:[(0,R.jsxs)("div",{className:"relative",children:[!D&&(0,R.jsx)(eB.E,{sizes:"150px",className:(0,T.Z)("absolute min-w-[150px] min-h-[150px] select-none left-[-25px] top-[-130px]"),src:(null==k||null===(s=k.image)||void 0===s?void 0:s.url)||"",alt:(null==k||null===(a=k.image)||void 0===a?void 0:a.title)||""}),(0,R.jsxs)("button",{"data-theme":(null==N||null===(c=N.sys)||void 0===c?void 0:c.id)||"none",onClick:()=>j(!0),className:"relative w-20",type:"button",children:[(0,R.jsx)("div",{className:(0,T.Z)(nW().floating,"flex justify-center items-center p-0 rounded-[50%] w-full h-20 absolute bottom-6 z-widgetCircle",!D&&"animate-glow"),children:D?(0,R.jsx)(eB.E,{sizes:"60px",src:(null==P||null===(d=P.image)||void 0===d?void 0:d.url)||"",alt:(null==P||null===(u=P.image)||void 0===u?void 0:u.title)||""}):(0,R.jsx)(eB.E,{sizes:"60px",src:(null==C||null===(m=C.image)||void 0===m?void 0:m.url)||"",alt:(null==C||null===(p=C.image)||void 0===p?void 0:p.title)||""})}),(0,R.jsx)("div",{className:(0,T.Z)(nW().floating,E?"bottom-[-10px] min-w-[5rem]":"bottom-0 min-w-[4rem]","absolute px-1 left-1/2 rounded-full w-fit translate-x-[-50%] z-widgetCounter"),children:(0,R.jsxs)("div",{className:(0,T.Z)(E&&"p-1","flex flex-col items-center"),children:[(0,R.jsxs)("div",{className:"flex flex-row items-center",children:[(0,R.jsx)(eB.E,{sizes:"18px",className:"min-w-[18px] me-1",src:(null==Z||null===(v=Z.image)||void 0===v?void 0:v.url)||"",alt:(null==Z||null===(x=Z.image)||void 0===x?void 0:x.title)||""}),(0,R.jsx)("span",{className:(0,T.Z)(E&&"leading-[1]","text-[1rem] font-bold"),children:S})]}),(0,R.jsx)("div",{className:"leading-[1] whitespace-nowrap",children:(0,R.jsxs)(nG,{children:[(0,R.jsx)(nE,{showIcon:!0}),(0,R.jsx)(nT,{showIcon:!0})]})})]})})]})]}),(0,R.jsx)(np.Provider,{value:O,children:(0,R.jsx)(lD.e,{style:{overlay:{zIndex:99}},centered:!0,isOpen:g,requestClose:O,labelClose:b("Close"),children:(0,R.jsx)("div",{className:"w-4/5 min-h-fit h-[calc(100%-2rem)] sm:h-auto sm:w-5/12 top-[50%] left-[50%] -translate-x-2/4 -translate-y-2/4 rounded-lg fixed z-widgetModal",children:(0,R.jsx)(nU,function(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?nq(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):nq(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}({},y))})})})]},null==h||null===(o=h.sys)||void 0===o?void 0:o.id)}var nX=l(30117);function nQ(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function n$(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?nQ(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):nQ(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function nK(e){let{children:t}=e,l=L.Children.toArray(t),n=l.pop(),i=(0,ez.TA)(),{user:r,zTrackInitialized:o}=(0,eW.aF)();return(0,L.useEffect)(()=>{if(i&&r)try{let e=Object.keys(i).map(e=>{var t;let l=null==i||null===(t=i[e])||void 0===t?void 0:t[0];return n$(n$({},null==l?void 0:l.inGroup),{},{skuId:(null==l?void 0:l.skuId)||"undefined"})}).filter(e=>"daily-streak"===e.groupType);(0,nX.fL)("DailyStreak","PageView",{state:e,user_id:null==r?void 0:r.userId})}catch(e){}},[]),(0,L.useEffect)(()=>{o&&nu.fQ&&nu.fQ.count(nu.XP.page_view,{phylum:"streak",attribute:"active"})},[o]),(0,R.jsxs)("section",{"data-testid":U.AqI,className:"grid grid-cols-1 md:grid-cols-2 gap-5 max-w-6xl",children:[!!l.length&&(0,R.jsx)("div",{className:"grid grid-cols-1 gap-1 h-fit",children:l}),(0,R.jsx)("div",{className:"[&>*]:h-auto",children:n})]})}var nY=l(10512),n0=l(79017),n1=l(82760),n2=l(87187),n5=l(38319),n4=l(24230),n3=l.n(n4);function n9(e){var t,l,n,i,r,o;let{isOpen:s,requestClose:a}=e,c=(0,tl.YM)(),d=(0,eH.M)(),u=(0,eW.XR)(),m=null!==(t=null==c?void 0:c.lootContents)&&void 0!==t?t:{},p=(0,L.useContext)(ns.V),v=null!==(l=null===(n=m.drops)||void 0===n?void 0:n.filter(e=>(null==e?void 0:e.image)&&(null==e?void 0:e.name)).sort((e,t)=>{var l,n;let i=null!==(l=null==e?void 0:e.dropRate)&&void 0!==l?l:0,r=null!==(n=null==t?void 0:t.dropRate)&&void 0!==n?n:0;return i>r?1:r>i?-1:0}))&&void 0!==l?l:[];return(0,R.jsx)(n2.Vq,{onOpenChange:a,open:s,children:(0,R.jsxs)(n5.c,{"data-theme":p||"none",className:(0,T.Z)(n3().popup,"flex flex-col gap-6 flex-grow p-8"),children:[(0,R.jsx)("h1",{className:"text-headline-l",children:null==c?void 0:c.title}),(0,R.jsx)("p",{children:(0,R.jsx)(er.D,{className:(0,T.Z)("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===(i=m.ui)||void 0===i?void 0:i.description})}),(0,R.jsxs)("section",{className:"flex flex-col gap-10",children:[null===(r=m.groups)||void 0===r?void 0:r.map(e=>(0,R.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,R.jsx)("h2",{className:"text-headline-m",children:null==e?void 0:e.title}),(0,R.jsx)("div",{className:"grid grid-cols-4 xl:grid-cols-5 gap-4",children:v.filter(t=>(null==t?void 0:t.group)===(null==e?void 0:e.id)).map(e=>(0,R.jsxs)("div",{className:"flex flex-col items-center min-h-[6rem]",children:[(0,R.jsx)(eB.E,{title:null==e?void 0:e.name,alt:null==e?void 0:e.name,src:null==e?void 0:e.image}),(0,R.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,R.jsx)("p",{className:"whitespace-pre-wrap",children:null===(o=m.ui)||void 0===o?void 0:o.footer})]}),u&&(0,R.jsx)("div",{className:"mt-auto",children:(0,R.jsx)(nR.l,{className:nV().button,onClick:()=>{a(),d()}})})]})})}function n8(e){let{children:t}=e,l=(0,tl.YM)(),{0:n,1:i}=(0,L.useState)(!1);return null!=l&&l.lootContents?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("button",{className:"align-top -me-[100%]",type:"button","data-testid":U.z_,onClick:()=>i(!0),children:t}),(0,R.jsx)(n9,{isOpen:n,requestClose:()=>i(!1)})]}):null}var n6=l(64180);function n7(e){let{messages:t,overrideAlignment:l}=e;if(!(null!=t&&t.length))return null;let n=t[0],i=l||((null==n?void 0:n.placement)==="Left"?"Left":"Right")||"Left",r=(null==n?void 0:n.tagStyle)==="Pointy"&&"Pointy"||(null==n?void 0:n.tagStyle)==="Large"&&"Large"||(null==n?void 0:n.tagStyle)==="Small"&&"Small"||"Standard";return(0,R.jsx)("div",{className:(0,T.Z)("absolute z-marketingMessage flex flex-col top-0 mt-2 gap-1 max-w-none","Left"===i&&"-left-2 items-start","Right"===i&&"-right-2 items-end"),children:t.map(e=>{var t,l,n,o;return(0,R.jsx)(n6.G,{alignment:i,tagStyle:r,paletteId:null==e||null===(l=e.palette)||void 0===l||null===(l=l.sys)||void 0===l?void 0:l.id,description:null===(n=e.description)||void 0===n?void 0:n.text,className:"w-fit px-2",children:null==e||null===(o=e.message)||void 0===o||null===(o=o.text)||void 0===o?void 0:o.trim()},null===(t=e.sys)||void 0===t?void 0:t.id)})})}var ie=l(68430);function it(){var e,t;let l=(0,eW.XR)(),{discountedPrice:n,percentageOff:i}=(0,eW.kc)(),r=(null==l||null===(e=l.promotion)||void 0===e?void 0:e.reason)===tt.Fh.ClaimGiftOnce||(null==l||null===(t=l.offerTagsArray)||void 0===t?void 0:t.includes(eR.nb.FreeItem));return l&&n&&i&&!r?(0,R.jsx)("span",{"data-testid":U.rW8,className:"badge bg-success text-white font-bold text-sm leading-normal",children:"-".concat(i,"%")}):null}let il=((n={}).List="list",n.ListDailyStreak="listDailyStreak",n.GiganticDailyStreak="giganticDailyStreak",n.Large="large",n.Medium="medium",n.BoxArt="boxart",n.Gigantic="gigantic",n.GiganticShort="gigantic-short",n.Event="event",n.Table="table",n.Progression="progression",n.ProgressivePack="progressive-pack",n.DailyStreak="daily-streak",n.DailyStreakStatic="daily-streak-static",n.ProgressionTable="progression-table",n.RedeemCode="redeem-code",n.Floating="floating",n.BattlePass="battle-pass",n.Calendar="calendar",n.IconHeader="icon-header",n.SelectorOffer="selector-offer",n);function ii(e){var t,l,n;let{imageType:i,item:r,pkgVariant:o,marketingMessages:s}=e,a=(0,eH.M)(),c="transparent"===i,d=(0,L.useContext)(ns.V),{t:u}=(0,ei.$G)(),m=(0,n1.H8)(r),p=null!==(t=null==m||null===(l=m.find(e=>null==e?void 0:e.primary))||void 0===l?void 0:l.previousAmount)&&void 0!==t?t:null,v=p&&(0,es.D)(p),x=m.find(n1.Au),h="boxed"===o&&(null==x||null===(n=x.quantity)||void 0===n?void 0:n.toLocaleString());return(0,R.jsxs)("div",{"data-tile":il.BoxArt,"data-testid":U.U8P,"data-theme":d||"none",className:(0,T.Z)("rounded-lg h-full w-full shadow-xnear relative",c&&"p-2 md:p-4",nV().main),children:[s&&(0,R.jsx)(n7,{messages:s}),(0,R.jsxs)("div",{className:(0,T.Z)("flex flex-col gap-y-2 h-full"),children:[(0,R.jsx)(eB.E,{onClick:a,sizes:"50vw md:20vw lg:17vw",className:(0,T.Z)("w-full rounded-t-lg",c?"object-contain aspect-[1/1]":"square"===i?"aspect-square":"aspect-[1/1.4]"),src:(0,G.Jn)(null==r?void 0:r.boxart),alt:(0,G.EQ)(r)}),(0,R.jsxs)("section",{className:(0,T.Z)("w-full h-full text-body-s text-left break-spaces","flex flex-col items-start gap-y-2",!c&&"px-4 pb-4"),children:[(0,R.jsxs)("span",{className:(0,T.Z)("align-bottom inline-block text-body-m font-bold",nV().title,h&&"break-all"),children:[h||(null==r?void 0:r.title),(0,R.jsx)(n8,{children:(0,R.jsx)(n0.Z,{})})]}),!!v&&(0,R.jsx)("span",{className:"text-body-s",children:u("previous-amount-chips",{amount:v.toLocaleString()})}),(null==r?void 0:r.longDescription)&&(0,R.jsx)("p",{className:(0,T.Z)("text-body-s -mt-2",nV().description),children:null==r?void 0:r.longDescription}),(0,R.jsx)(ie.A,{type:o||"inline",items:m}),(0,R.jsxs)(nG,{children:[(0,R.jsx)(nT,{showIcon:!0}),(0,R.jsx)(nE,{showIcon:!0}),(0,R.jsx)(nD,{}),(0,R.jsx)(n_,{showIcon:!0}),(0,R.jsx)(nA,{})]}),(0,R.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto w-full break-normal",children:[(0,R.jsx)(it,{}),(0,R.jsx)(nR.l,{className:"break-all min-[320px]:min-w-max w-full",children:(0,R.jsx)(nH,{})})]})]})]})]})}function ir(e){var t;let{imageType:l,item:n,pkgVariant:i,additionalData:r,marketingMessages:o}=e,s=(0,eH.M)(),a=(0,nd.M)(r),c=(0,L.useContext)(ns.V),d="transparent"===l,u=(0,n1.H8)(n);return(0,R.jsxs)("div",{"data-tile":il.Gigantic,"data-testid":U.U8P,"data-theme":c||"none",className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear relative",d&&"p-4",nV().main),children:[(0,R.jsx)(n7,{messages:null!=o?o:[]}),(0,R.jsxs)("div",{className:(0,T.Z)("h-full flex flex-col gap-4 relative"),children:[(0,R.jsx)(eB.E,{onClick:s,sizes:"100vw sm:50vw md:25vw",className:(0,T.Z)("w-full rounded-t-lg",d?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,G.Jn)(null==n?void 0:n.largeTile),alt:(0,G.EQ)(n)}),(0,R.jsxs)("section",{className:(0,T.Z)("h-full w-full flex flex-col gap-y-2",!d&&"px-4 pb-4"),children:[(0,R.jsxs)("span",{className:(0,T.Z)("inline-block text-body-m font-bold",nV().title),children:[(0,R.jsx)("span",{className:"align-middle",children:null==n?void 0:n.title}),(0,R.jsx)(n8,{children:(0,R.jsx)(n0.Z,{})})]}),(0,R.jsx)(nG,{children:(0,R.jsx)(n_,{showIcon:!0})}),(0,R.jsxs)(nG,{children:[(0,R.jsx)(nT,{showIcon:!0}),(0,R.jsx)(nE,{showIcon:!0}),(0,R.jsx)(nD,{}),(0,R.jsx)(nA,{})]}),(null==n?void 0:n.longDescription)&&(0,R.jsx)(er.D,{className:(0,T.Z)(nV().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":U.KxA,children:null==n?void 0:n.longDescription}),(0,R.jsx)(ie.A,{type:i||"list",className:"max-h-[12rem] lg:max-h-[11.5rem]",items:u,legalText:null==a||null===(t=a.chestLegalText)||void 0===t?void 0:t.locText}),(0,R.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto w-full",children:[(0,R.jsx)(it,{}),(0,R.jsx)(nR.l,{children:(0,R.jsx)(nH,{})})]})]})]})]})}function io(e){var t,l;let{imageType:n,item:i,pkgVariant:r,marketingMessages:o}=e,s=(0,eH.M)(),a="transparent"===n,{t:c}=(0,ei.$G)(),d=(0,L.useContext)(ns.V),u=(0,n1.H8)(i),m=null!==(t=null==u||null===(l=u.find(e=>null==e?void 0:e.primary))||void 0===l?void 0:l.previousAmount)&&void 0!==t?t:null,p=m&&(0,es.D)(m);return(0,R.jsxs)("div",{"data-tile":il.Large,"data-testid":U.U8P,"data-theme":d||"none",className:(0,T.Z)("rounded-lg h-full w-full overflow-visible shadow-xnear relative",a&&"p-4",nV().main),children:[(0,R.jsx)(n7,{messages:null!=o?o:[]}),(0,R.jsxs)("div",{className:(0,T.Z)("flex flex-col gap-y-4 h-full"),children:[(0,R.jsx)(eB.E,{onClick:s,className:(0,T.Z)(a&&"object-contain","relative w-full rounded-t-lg aspect-video"),src:(0,G.Jn)(null==i?void 0:i.largeTile),alt:(0,G.EQ)(i)}),(0,R.jsxs)("section",{className:(0,T.Z)("flex flex-col gap-2 w-full h-full text-body-s",!a&&"px-4 pb-4"),children:[(0,R.jsxs)("span",{className:(0,T.Z)("inline-block text-body-m font-bold",nV().title),children:[(0,R.jsx)("span",{className:"align-middle",children:null==i?void 0:i.title}),(0,R.jsx)(n8,{children:(0,R.jsx)(n0.Z,{})})]}),!!p&&(0,R.jsx)("span",{className:"text-body-s",children:c("previous-amount-chips",{amount:p.toLocaleString()})}),(null==i?void 0:i.description)&&(0,R.jsx)("div",{className:(0,T.Z)(nV().description),children:null==i?void 0:i.description}),(0,R.jsx)(ie.A,{type:r||"inline",items:u}),(0,R.jsx)(nG,{children:(0,R.jsx)(n_,{showIcon:!0})}),(0,R.jsxs)(nG,{children:[(0,R.jsx)(nT,{showIcon:!0}),(0,R.jsx)(nE,{showIcon:!0}),(0,R.jsx)(nD,{}),(0,R.jsx)(nA,{})]}),(0,R.jsxs)("div",{className:"flex flex-col gap-2 w-full mt-auto",children:[(0,R.jsx)(it,{}),(0,R.jsx)(nR.l,{children:(0,R.jsx)(nH,{})})]})]})]})]})}let is=["children","className"],ia=["children"],ic=["children"],id=["children"];function iu(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function im(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):iu(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let ip=(0,L.createContext)(null);function iv(e){let{children:t,className:l}=e,n=(0,E.Z)(e,is),{0:i,1:r}=(0,L.useState)(!1),o=(0,L.useMemo)(()=>[i,r],[i]);if(2!==L.Children.count(t))throw Error("<FlipRoot> must have 2 children");return(0,R.jsx)("div",im(im({style:{transformStyle:"preserve-3d",transform:i?"rotateX(-180deg)":void 0},className:(0,T.Z)("grid transition-all duration-500 ease-in-out","[&>*]:[backface-visibility:hidden] [&>*]:col-span-full [&>*]:row-span-full",l)},n),{},{children:(0,R.jsx)(ip.Provider,{value:o,children:t})}))}function ix(e){let{children:t}=e,l=(0,E.Z)(e,ia),[,n]=function(){let e=(0,L.useContext)(ip);if(null===e)throw Error("Missing Flip Context");return e}();return(0,R.jsx)("button",im(im({type:"button",onClick:()=>n(e=>!e)},l),{},{children:t}))}function ih(e){let{children:t}=e,l=(0,E.Z)(e,ic);return(0,R.jsx)("div",im(im({},l),{},{style:{transform:"rotateX(0deg)"},children:t}))}function ib(e){let{children:t}=e,l=(0,E.Z)(e,id),{0:n,1:i}=(0,L.useState)(0),r=(0,L.useRef)(null);return(0,L.useEffect)(()=>{var e,t;i(null!==(e=null===(t=r.current)||void 0===t||null===(t=t.parentElement)||void 0===t?void 0:t.getBoundingClientRect().height)&&void 0!==e?e:0)},[]),(0,R.jsx)("div",im(im({},l),{},{ref:r,style:{maxHeight:n,transform:"rotateX(180deg)"},children:t}))}function ig(e){var t,l;let{item:n,shouldTileFlip:i,pkgVariant:r,marketingMessages:o}=e,s=(0,eH.M)(),a=(0,eW.XR)(),c=(0,L.useContext)(ns.V),d=r||"inline",u=(0,n1.H8)(n),m=null==u?void 0:u.filter(e=>!(null!=e&&e.primary)),p=null!==(t=null==u||null===(l=u.find(e=>null==e?void 0:e.primary))||void 0===l?void 0:l.quantity)&&void 0!==t?t:null;return(0,R.jsxs)(iv,{"data-tile":il.List,"data-testid":U.U8P,"data-theme":c||"none",className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear relative",nV().main),children:[(0,R.jsxs)(ih,{className:"flex p-3 gap-x-3 h-full",children:[(0,R.jsx)(n7,{messages:null!=o?o:[],overrideAlignment:"Right"}),(0,R.jsx)("div",{className:"shrink-0",children:(0,R.jsx)(eB.E,{onClick:null!=a&&a.purchasable?s:()=>null,className:"h-auto w-20 md:w-24",sizes:"10vw",src:(0,G.Jn)(null==n?void 0:n.square)||(0,G.Jn)(null==n?void 0:n.boxart)||"",alt:(0,G.EQ)(n)})}),(0,R.jsxs)("section",{className:"flex-grow flex flex-col gap-y-2",children:[(0,R.jsxs)("span",{className:"inline text-body-m font-bold",children:[(0,R.jsx)("span",{className:(0,T.Z)("align-middle",nV().title),children:null==n?void 0:n.title}),!!u.length&&i&&(0,R.jsx)(ix,{className:"inline align-middle ps-2",children:(0,R.jsx)(n0.Z,{className:"h-7"})})]}),p&&(0,R.jsx)("span",{className:(0,T.Z)("text-headline-l font-bold !leading-none",nV().description),children:p.toLocaleString()}),(0,R.jsx)(ie.A,{type:r||"inline",items:m,className:(0,T.Z)("inline"===d&&"[&>*]:first:font-bold")}),(0,R.jsxs)(nG,{children:[(0,R.jsx)(nT,{showIcon:!0}),(0,R.jsx)(nE,{showIcon:!0}),(0,R.jsx)(nD,{}),(0,R.jsx)(n_,{showIcon:!0}),(0,R.jsx)(nA,{})]}),(null==n?void 0:n.longDescription)&&(0,R.jsx)("p",{className:"text-body-s",children:null==n?void 0:n.longDescription}),(0,R.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto md:max-w-[16rem]",children:[(0,R.jsx)(it,{}),(0,R.jsx)(nR.l,{children:(0,R.jsx)(nH,{})})]})]})]}),(0,R.jsxs)(ib,{className:(0,T.Z)("relative rounded-lg p-4 pe-8 space-y-2 overflow-hidden",n3().main),children:[(0,R.jsx)("div",{className:"space-y-2 overflow-y-auto h-full [&::-webkit-scrollbar-track]:!bg-transparent ",children:u.map(e=>{var t,l,n,i;return(0,R.jsxs)("div",{className:"flex items-center gap-2",children:[(0,R.jsx)(eB.E,{className:"w-8 inline",alt:null!==(l=null==e?void 0:e.detailName)&&void 0!==l?l:"",src:null!==(n=null==e||null===(i=e.staticDetailItem)||void 0===i||null===(i=i.art)||void 0===i?void 0:i.url)&&void 0!==n?n:""}),(0,R.jsx)("span",{children:(0,n1.Pq)(e,"text")})]},null==e||null===(t=e.sys)||void 0===t?void 0:t.id)})}),(0,R.jsx)(ix,{className:"absolute top-0 right-0 p-2",children:(0,R.jsx)(nB.Z,{className:"h-6 w-6"})})]})]})}function ij(e){var t;let{imageType:l,item:n,pkgVariant:i,marketingMessages:r}=e,o=(0,eH.M)(),s="transparent"===l,a=(0,L.useContext)(ns.V),c=(0,n1.H8)(n),d=c.find(n1.Au),u="boxed"===i&&(null==d||null===(t=d.quantity)||void 0===t?void 0:t.toLocaleString());return(0,R.jsxs)("div",{"data-tile":il.Medium,"data-testid":U.U8P,"data-theme":a||"none",className:(0,T.Z)("rounded-lg h-full w-full relative overflow-visible shadow-xnear",s&&"p-4",nV().main),children:[(0,R.jsx)(n7,{messages:null!=r?r:[]}),(0,R.jsxs)("div",{className:(0,T.Z)("flex flex-col h-full gap-y-2 items-stretch"),children:[(0,R.jsx)(eB.E,{onClick:o,className:(0,T.Z)("aspect-[2.5/1] w-full rounded-t-lg",s&&"object-contain"),src:(0,G.Jn)(null==n?void 0:n.mediumTile),alt:(0,G.EQ)(n)}),(0,R.jsxs)("section",{className:(0,T.Z)("flex flex-col gap-y-2 h-full w-full text-body-s text-text-primary text-left",!s&&"px-4 pb-4"),children:[(0,R.jsxs)("span",{className:(0,T.Z)("inline-block text-body-m font-bold",nV().title),children:[u||(null==n?void 0:n.title),(0,R.jsx)(n8,{children:(0,R.jsx)(n0.Z,{})})]}),(null==n?void 0:n.description)&&(0,R.jsx)("div",{className:(0,T.Z)(nV().description),children:null==n?void 0:n.description}),(0,R.jsx)(ie.A,{type:i||"inline",items:c}),(0,R.jsxs)(nG,{children:[(0,R.jsx)(nT,{showIcon:!0}),(0,R.jsx)(nE,{showIcon:!0}),(0,R.jsx)(nD,{}),(0,R.jsx)(n_,{showIcon:!0}),(0,R.jsx)(nA,{})]}),(0,R.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto",children:[(0,R.jsx)(it,{}),(0,R.jsx)(nR.l,{children:(0,R.jsx)(nH,{})})]})]})]})]})}function iy(e){return(0,L.useMemo)(()=>{var t,l;let n=null!==(t=null==e?void 0:e.tileToPaletteLink)&&void 0!==t?t:[],i=null!==(l=null==e?void 0:e.themeToPersonalizedItemLink)&&void 0!==l?l:[];return Array.isArray(n)||(n=[]),Array.isArray(i)||(i=[]),new Map([...n.map(e=>[e.from,e.to]),...i.map(e=>[e.from,e.to])])},[null==e?void 0:e.tileToPaletteLink,null==e?void 0:e.themeToPersonalizedItemLink])}function iw(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function iO(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?iw(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):iw(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function iN(e){var t,l,n,i,r,o,s,a;let{item:c,children:d}=e,u=iy(c),m=null!==(t=c.itemData)&&void 0!==t?t:{},p=c.mktMsgToPersonalizedItemLink||[],v=(null===(l=c.marketingMessagesCollection)||void 0===l?void 0:l.items)||[],x="list"===c.packageContentsVariant&&"list"||"boxed"===c.packageContentsVariant&&"boxed"||"inline"===c.packageContentsVariant&&"inline"||null,h="transparent"===c.tileImageType&&"transparent"||"opaque"===c.tileImageType&&"opaque"||"opaque",f=[],b=null!==(n=null===(i=c.itemsCollection)||void 0===i?void 0:i.items)&&void 0!==n?n:[],g=L.Children.toArray(d);for(let e=0;e<b.length;e+=1){let t=b[e],l=null!==(r=null==t||null===(o=t.sys)||void 0===o?void 0:o.id)&&void 0!==r?r:"",n=m[l]||m["".concat(e)]||null;if(!n){f.push(g[e]);continue}let i=(null==t||null===(s=t.marketingMessagesCollection)||void 0===s?void 0:s.items)||p.filter(l=>{var n;return l.from==="".concat(e)||l.from===(null==t||null===(n=t.sys)||void 0===n?void 0:n.id)}).map(e=>v.find(t=>{var l;return(null==t||null===(l=t.sys)||void 0===l?void 0:l.id)===e.to})),d={pkgVariant:x,item:t,imageType:h,marketingMessages:(0,en.E)(i)},j=n===il.List&&(0,R.jsx)(ig,iO({},d))||n===il.Medium&&(0,R.jsx)(ij,iO({},d))||n===il.BoxArt&&(0,R.jsx)(ii,iO({},d))||n===il.Large&&(0,R.jsx)(io,iO({},d))||n===il.Gigantic&&(0,R.jsx)(ir,iO({},d))||null,y=(0,T.Z)("block sm:hidden",n===il.BoxArt?"!col-span-1":"!col-span-full"),w=(0,R.jsx)("div",{"data-mixed-tile":!0,className:"hidden sm:block",children:g[e]}),O=(0,R.jsx)("div",{"data-mixed-tile":!0,className:y,children:j}),N=u.get(l)||u.get("".concat(e))||(null==c||null===(a=c.layoutPalette)||void 0===a||null===(a=a.sys)||void 0===a?void 0:a.id)||"";f.push((0,R.jsxs)(L.Fragment,{children:[w,(0,R.jsx)(ns.V.Provider,{value:N,children:(0,R.jsx)(tl.nW,{value:t,children:(0,R.jsx)(eU.R,{children:O})})})]},l+n))}return(0,R.jsx)("div",{"data-testid":nY.Aq,className:(0,T.Z)("grid gap-4 grid-cols-2",c.defaultViewType!==il.BoxArt&&"[&>*]:col-span-full [&>*]:sm:col-span-1",c.defaultViewType===il.BoxArt?"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 3xl:grid-cols-6":"sm:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4"),children:f})}var ik=l(79852);function iP(e){var t,l,n,i,r,o,s,a,c;let{item:d,displayAttr:u,children:m}=e,p=(0,ez.TA)(),v=(0,L.useContext)(nO),x=(0,ik.d)("".concat(z.Fg,"px")),h=!!(null!=d&&null!==(t=d.headerImageDesktop)&&void 0!==t&&t.url)&&!!(null!=d&&null!==(l=d.headerImageMobile)&&void 0!==l&&l.url),f=(0,L.useMemo)(()=>{var e,t,l,n,i,r,o;let s=(0,es.fm)(),a=(null===(e=d.itemsCollection)||void 0===e?void 0:e.items)||[],c=new Map(Object.values(null!=p?p:{}).filter(e=>{var t;return null==e||null===(t=e[0])||void 0===t?void 0:t.itemId}).map(e=>{var t;return[(null==e||null===(t=e[0])||void 0===t?void 0:t.itemId)||"",null==e?void 0:e[0]]})),u=c.get((null==a||null===(t=a[0])||void 0===t||null===(t=t.sys)||void 0===t?void 0:t.id)||"");if((null!==(l=null==u||null===(n=u.promotion)||void 0===n?void 0:n.end)&&void 0!==l?l:0)<s||(null!==(i=null==u||null===(r=u.promotion)||void 0===r?void 0:r.start)&&void 0!==i?i:0)>s)return 0;let m=a.every(e=>{var t,l,n;return(null===(t=c.get((null==e||null===(l=e.sys)||void 0===l?void 0:l.id)||""))||void 0===t||null===(t=t.promotion)||void 0===t?void 0:t.end)===(null==u||null===(n=u.promotion)||void 0===n?void 0:n.end)});return null!=u&&null!==(o=u.promotion)&&void 0!==o&&o.end&&m?null==u?void 0:u.promotion.end:0},[p,null===(n=d.itemsCollection)||void 0===n?void 0:n.items]);return(0,R.jsxs)(R.Fragment,{children:[u===nc.z.None&&!!f&&(0,R.jsx)("div",{className:"flex flex-row mb-6",children:(0,R.jsx)(e3.I,{onDone:()=>{var e,t;return null==v?void 0:v(null!==(e=null==d||null===(t=d.sys)||void 0===t?void 0:t.id)&&void 0!==e?e:"table-list")},endDate:f,children:(0,R.jsxs)(nS,{className:"!uppercase mb-1 flex h-full",children:[(0,R.jsx)(e2,{className:"ms-1"}),(0,R.jsx)("span",{className:"ms-1",children:(0,R.jsxs)(ei.cC,{i18nKey:"availability-ends-in",children:["Availability ends in",(0,R.jsx)(e3.T,{className:"font-bold",daysHoursOnly:!0})]})})]})})}),(0,R.jsxs)("div",{className:"md:grid md:gap-8 md:grid-cols-2",children:[(0,R.jsxs)("section",{"data-testid":U.AqI,className:(0,T.Z)("md:h-max rounded-lg",nW().table),children:[h&&(0,R.jsx)("div",{"data-tile":il.Table,"data-testid":U.U8P,className:"w-full first:rounded-t-lg overflow-hidden",children:(0,R.jsx)(eB.E,{className:(0,T.Z)("w-full"),src:null!==(i=x?null===(r=d.headerImageMobile)||void 0===r?void 0:r.url:null===(o=d.headerImageDesktop)||void 0===o?void 0:o.url)&&void 0!==i?i:"",alt:null!==(s=x?null===(a=d.headerImageMobile)||void 0===a?void 0:a.title:null===(c=d.headerImageDesktop)||void 0===c?void 0:c.title)&&void 0!==s?s:""})}),m]}),(null==d?void 0:d.desktopInlineImage)&&(0,R.jsx)("section",{className:"hidden md:block m-auto",children:(0,R.jsx)(eB.E,{sizes:"50vw",src:(0,G.Jn)(null==d?void 0:d.desktopInlineImage),alt:(0,G.EQ)(d.desktopInlineImage)})})]})]})}function iC(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function iZ(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?iC(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):iC(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}var iS=e=>(0,R.jsx)("svg",iZ(iZ({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,R.jsx)("path",{fill:"currentColor",d:"M20.25 6.75h-1.796c.18-.357.282-.75.296-1.15A2.7 2.7 0 0 0 16 3a4.66 4.66 0 0 0-4 2.638 4.637 4.637 0 0 0-3.975-2.637h-.086A2.696 2.696 0 0 0 5.25 5.6v.05c.015.382.112.757.284 1.1H3.75A.75.75 0 0 0 3 7.5v2.25a.75.75 0 0 0 .75.75h16.5a.75.75 0 0 0 .75-.75V7.5a.75.75 0 0 0-.75-.75ZM16.023 4.5a1.2 1.2 0 0 1 1.227 1.1 1.191 1.191 0 0 1-1.181 1.15h-2.96c.466-.944 1.394-2.25 2.914-2.25ZM6.75 5.625A1.2 1.2 0 0 1 7.96 4.5c1.552.006 2.461 1.299 2.933 2.25H7.968A1.212 1.212 0 0 1 6.75 5.625ZM13.5 12v9h3.75a2.25 2.25 0 0 0 2.25-2.25V12h-6Zm-3 0h-6v6.75A2.25 2.25 0 0 0 6.75 21h3.75v-9Z"})})),iD=l(68927),i_=l.n(iD);function iE(e){var t,l;let{tracker:n}=e,{title:i,unauthenticatedTitle:r,description:o,unauthenticatedDescription:s,currentDay:a,milestoneDay:c,milestoneMaxDay:d,rewardBonusLabel:u,rewardBonusValue:m}=n,{t:p}=(0,ei.$G)(),{user:v}=(0,t5.a)();return(0,R.jsx)("div",{className:"grid gap-4 h-full grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4","data-theme":null!==(t=null===(l=n.palette)||void 0===l||null===(l=l.sys)||void 0===l?void 0:l.id)&&void 0!==t?t:"none",children:(0,R.jsx)("section",{className:"flex-grow flex flex-col",children:(0,R.jsxs)("div",{className:(0,T.Z)("flex flex-col mt-auto mb-4 rounded",i_().trackerContainer),children:[(0,R.jsx)("div",{className:(0,T.Z)("flex flex-col py-4 px-6 rounded-t",i_().trackerHeader),children:(0,R.jsxs)("div",{className:"flex flex-col justify-between font-bold",children:[(0,R.jsx)("p",{className:(0,T.Z)("content-end text-2xl",i_().trackerHeaderDescription),children:v?i:r}),v&&(0,R.jsx)("p",{className:(0,T.Z)("text-5xl",i_().trackerHeaderCounter),children:a})]})}),v&&(0,R.jsx)("div",{className:(0,T.Z)("text-body-m text-center font-bold uppercase py-1 px-4",i_().trackerBonusCaption),children:(0,R.jsx)("p",{children:"".concat(u," ").concat(m)})}),(0,R.jsxs)("div",{className:(0,T.Z)("flex flex-col gap-y-2 py-4 px-6 rounded-b",i_().trackerSecondary),children:[(0,R.jsx)("p",{className:"text-body-s",children:v?o:s}),v&&(0,R.jsx)("p",{className:"text-body-s pb-4",children:p("progressive-streak-days-claimed",{progress:c,milestoneMaxDay:d})}),v&&(0,R.jsx)("div",{className:"flex flex-col items-center space-y-4 py-2",children:(0,R.jsxs)("div",{className:(0,T.Z)("relative w-full rounded-full h-4",i_().progressBarContainer),children:[(0,R.jsx)("div",{className:(0,T.Z)("absolute w-full rounded-full h-[0.9rem]",i_().progressBar),style:{width:"".concat((null!=c?c:0)/(null!=d?d:1)*100,"%")}}),(0,R.jsx)("span",{className:(0,T.Z)("absolute flex items-center justify-center -top-1/2 -right-2 h-8 w-8 rounded-2xl",i_().trackerGift),children:(0,R.jsx)(iS,{className:"h-6 w-6"})})]})})]})]})})})}function iI(e){var t,l,n,i,r;let{preText:o,firstTileId:s,displayAttr:a}=e,c=(0,ez.TA)(),{t:d}=(0,ei.$G)(),u=(0,L.useContext)(nO),m=()=>null==u?void 0:u("tile-attrs"),p=a===nc.z.All;if(!s||!c)return null;let v=null===(t=c[s])||void 0===t?void 0:t[0],x=(null==v||null===(l=v.promotion)||void 0===l?void 0:l.end)||0,h=(null==v?void 0:v.promoLimitResetDate)||0,f=(null!==(n=null==v?void 0:v.promoLimitCount)&&void 0!==n?n:0)-(null!==(i=null==v?void 0:v.promoLimitUsed)&&void 0!==i?i:0),b=p&&Math.ceil((h-(0,es.fm)())/1e3/3600),g=p&&(null==o||null===(r=o.json)||void 0===r||null===(r=r.content)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.content)||void 0===r?void 0:r[0].value.replace("{{hours}}",b.toString())),j=!p&&(0,R.jsx)(ee.H,{document:null==o?void 0:o.json});return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:"mb-6 -mt-4 text-body-s text-text-primary-80 [&_a]:text-link",children:g||j}),(0,R.jsxs)("div",{className:"flex flex-row mb-6",children:[(0,R.jsxs)("div",{className:"flex flex-col mr-4",children:[(0,R.jsx)(e3.I,{onDone:m,endDate:x,children:(0,R.jsxs)(nS,{className:"!uppercase mb-1 flex h-full",children:[(0,R.jsx)(e2,{className:"ms-1"}),(0,R.jsx)("span",{className:"ms-1",children:(0,R.jsxs)(ei.cC,{i18nKey:"availability-ends-in",children:["Availability ends in",(0,R.jsx)(e3.T,{className:"font-bold",daysHoursOnly:!0})]})})]})}),p&&f>0&&(0,R.jsxs)(nS,{className:"!uppercase flex h-full",children:[(0,R.jsx)(nf,{className:"ms-1"}),(0,R.jsxs)("span",{className:"ms-1",children:[f," ",d(f>1?"purchases-available":"purchase-available-singular")]})]})]}),p&&0===f&&(0,R.jsx)("div",{className:"flex flex-col",children:(0,R.jsx)(e3.I,{onDone:m,endDate:h,children:(0,R.jsxs)(nS,{className:"!uppercase flex h-full",children:[(0,R.jsx)(e2,{className:"ms-1"}),(0,R.jsxs)("span",{className:"ms-1",children:[(0,R.jsx)(e3.T,{daysHoursOnly:!0})," ",d("until-purchasable")]})]})})})]})]})}var iT=l(73931),iL=l(30627);function iA(e){var t,l;let{pkgVariant:n}=e,i=(0,tl.YM)(),r=(0,eW.XR)(),{t:o}=(0,ei.$G)(),s=(0,n1.H8)(i),a=r&&(null!==(t=null==r?void 0:r.promoLimitCount)&&void 0!==t?t:1)-(null!==(l=null==r?void 0:r.promoLimitUsed)&&void 0!==l?l:0)==0;return(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:"text-title mt-2 pb-1",children:(0,R.jsx)("p",{children:null==i?void 0:i.title})}),(0,R.jsxs)("div",{className:(0,T.Z)("w-full flex-col h-auto p-2 rounded-lg text-body-s [&::-webkit-scrollbar-track]:!bg-transparent flex",nV().tileGroupContent),children:[(null==i?void 0:i.longDescription)&&(0,R.jsx)("p",{className:"text-body-s","data-testid":null,children:null==i?void 0:i.longDescription}),(0,R.jsx)("div",{className:"flex flex-col [&>ul]:overflow-y-auto mb-2",children:(0,R.jsx)(iL.A,{type:n||"grid",items:s,className:"max-h-[12rem] lg:max-h-[11.5rem]"})}),(0,R.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,R.jsx)(it,{}),a?(0,R.jsxs)("div",{className:"flex gap-y-2 w-full font-bold text-sm",children:[(0,R.jsx)(iT.Z,{className:"me-1 w-4 h-4"}),o("claimed")]}):(0,R.jsx)(nR.l,{children:(0,R.jsx)(nH,{})})]})]})]})}var iG=l(82626),iM=l(14230),iB=l(69221),iR=l(48225),iH=l(1161),iF=l(3391),iV=l(84307),iU=l(76868);let iz=["className","children"];function iW(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function iq(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?iW(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):iW(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function iJ(e){if("gregory"===e)return new iH.IQ;throw Error("Only Gregorian Calendars are supported")}function iX(e){let{className:t,children:l}=e,n=(0,E.Z)(e,iz),i=(0,iU.F)(iq(iq({},n),{},{createCalendar:iJ})),{calendarProps:r}=(0,iF.G)(n,i);return(0,R.jsx)("div",iq(iq({},r),{},{className:t,"data-disabled":i.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0,children:(0,R.jsx)(iV.Ah.Provider,{value:n,children:(0,R.jsx)(iV.YQ.Provider,{value:i,children:l})})}))}let iQ=["minValue","maxValue","children","timeZone","locale"];function i$(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function iK(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?i$(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):i$(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function iY(e){let{minValue:t,maxValue:l,children:n,timeZone:i,locale:r="en"}=e,o=(0,E.Z)(e,iQ),s=null===i?Intl.DateTimeFormat("en-US").resolvedOptions().timeZoneName:i,a=t.substring(0,23),c=l.substring(0,23),d=(0,iB.v0)("".concat(a,"[").concat(s,"]")),u=(0,iB.v0)("".concat(c,"[").concat(s,"]"));return(0,iR.Z)(u.compare(d)>0||(0,iM.KC)(u,d),'"maxValue" must after "minValue"'),(0,R.jsx)(iX,iK(iK({locale:r,value:d,minValue:d,maxValue:u,isReadOnly:!0},o),{},{children:n}))}var i0=l(5796),i1=l(51372);let i2=["date","children","className"];function i5(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function i4(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?i5(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):i5(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let i3=(0,L.forwardRef)((e,t)=>{let{date:l,children:n,className:i}=e,r=(0,E.Z)(e,i2),o=(0,L.useContext)(iV.YQ);(0,iR.Z)(o.minValue&&o.timeZone,'<Calendar /> requires "minValue", including a timezone');let s=(0,L.useRef)(null),{cellProps:a}=(0,i0.J)({date:l},o,s),c=(0,iM.Lg)(o.timeZone),d=(0,iM.KC)(c,l),u={"data-past":!d&&0>l.compare(c)||void 0,"data-today":d||void 0,"data-outside-month":!(0,iM.xj)(c,l)||void 0};return Object.entries(r).forEach(e=>{let[t,l]=e;t.startsWith("data-")&&null!=l&&("string"==typeof l||"boolean"==typeof l)&&(u[t]=l)}),(0,R.jsx)("td",i4(i4({},a),{},{ref:t,children:(0,R.jsx)("div",i4(i4({},(0,i1.d)(u,{className:i})),{},{ref:s,children:n?(0,R.jsx)(R.Fragment,{children:n}):(0,R.jsx)(R.Fragment,{children:l.day})}))}))});var i9=l(18352);let i8=["className","weekLength","children"];function i6(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function i7(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?i6(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):i6(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function re(e){let{className:t,weekLength:l=7,children:n}=e,i=(0,E.Z)(e,i8),r=(0,L.useContext)(iV.YQ),{gridProps:o}=(0,i9.Q)(i,r);(0,iR.Z)(!!r.minValue&&!!r.maxValue&&!!r.timeZone,"Weekly Calendars must have a `minValue` and `maxValue`");let s=[],a=r.minValue.copy();for(;0>a.compare(r.maxValue);)s.push(a),a=a.add({days:1});s.push(r.maxValue);let c=[];for(let e=0;e<s.length;e+=l)c.push(s.slice(e,e+l));return(0,R.jsx)("table",i7(i7({},(0,i1.d)(o,{className:t})),{},{children:(0,R.jsx)("tbody",{children:c.map((e,t)=>(0,R.jsx)("tr",{children:e.map((e,t)=>e?(0,L.cloneElement)(n((0,iG.WG)(e),e),{key:t}):(0,R.jsx)("td",{},t))},t))})}))}function rt(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function rl(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):rt(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}var rn=e=>(0,R.jsxs)("svg",rl(rl({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:[(0,R.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,R.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 ri(e){let{children:t}=e,l=(0,L.useContext)(ns.V)||"none";return(0,R.jsx)(nv.VY,{style:{zIndex:100},className:(0,T.Z)('data-[state="open"]:animate-appear data-[state="closed"]:animate-disappear',"p-5 rounded flex items-center justify-start shadow-near",n3().popup),"data-theme":l,children:t})}var rr=l(38506);function ro(e){let{timeout:t,onDone:l,children:n}=e,{0:i,1:r}=(0,L.useState)(!1),{0:o,1:s}=(0,L.useState)();return(0,L.useEffect)(()=>{i&&l&&(l(),r(!1),o&&window.clearTimeout(o))},[o,i,l]),(0,L.useEffect)(()=>{if(o&&clearTimeout(o),t)return s(window.setTimeout(()=>{r(!0)},t)),()=>{if(o)return window.clearTimeout(o)}},[t]),(0,R.jsx)(L.Fragment,{children:n},"timeout-".concat(i))}function rs(e){var t;let{releaseDate:l,isActiveTab:n,onClick:i,tileGroup:r}=e,o=(null!=l?l:0)>(0,es.fm)();return(0,R.jsx)("button",{type:"button",className:(0,T.Z)("w-12 rounded",n&&nV().tab),onClick:()=>i(),children:(null===(t=r.icon)||void 0===t?void 0:t.url)&&(0,R.jsx)(eB.E,{sizes:"48px",className:(0,T.Z)("w-12 p-0.5",!o&&"drop-shadow-[0_0_4px_rgb(255_255_255/.8)]",o&&"grayscale contrast-75 brightness-75"),alt:r.icon.title||"Tab",src:r.icon.url})})}function ra(e){var t,l,n;let{pkgVariant:i}=e,r=(0,tl.YM)(),o=(0,eW.XR)(),s=(null!==(t=null==o?void 0:o.releaseDate)&&void 0!==t?t:0)>(0,es.fm)(),{t:a}=(0,ei.$G)(),c=(0,n1.H8)(r),d=o&&(null!==(l=null==o?void 0:o.promoLimitCount)&&void 0!==l?l:1)-(null!==(n=null==o?void 0:o.promoLimitUsed)&&void 0!==n?n:0)==0;return(0,R.jsxs)("div",{className:(0,T.Z)("w-full flex-col h-auto p-2 rounded-lg text-body-s [&::-webkit-scrollbar-track]:!bg-transparent flex",nV().tileGroupContent),children:[(null==r?void 0:r.longDescription)&&(0,R.jsx)("p",{className:"text-body-s","data-testid":null,children:null==r?void 0:r.longDescription}),(0,R.jsx)("div",{className:"flex flex-col [&>ul]:overflow-y-auto mb-2",children:s?(0,R.jsx)("p",{className:"text-body-s m-4",children:a("content-offer-revealed-soon")}):(0,R.jsx)(ie.A,{type:i||"list",ignorePalette:!0,className:"max-h-[10.5rem] bg-transparent shadow-none",items:c,transparent:!0})}),(0,R.jsxs)("div",{className:"flex flex-col gap-y-1 px-2",children:[(0,R.jsx)(it,{}),d?(0,R.jsxs)("div",{className:"flex gap-y-2 w-full font-bold text-sm",children:[(0,R.jsx)(iT.Z,{className:"me-1 w-4 h-4"}),a("claimed")]}):(0,R.jsx)(nR.l,{disabled:s,children:s?(0,R.jsx)(rr.F,{}):(0,R.jsx)(nH,{})}),(0,R.jsxs)(nG,{children:[(0,R.jsx)(nI,{showIcon:!0}),!s&&(0,R.jsx)(nT,{showIcon:!0}),!s&&(0,R.jsx)(nD,{}),!s&&(0,R.jsx)(nA,{})]})]})]})}var rc=l(66641);function rd(e){var t,l;let n;let{item:i,pkgVariant:r,showLockWithPrice:o,marketingMessages:s}=e,a=(0,eH.M)(),c=(0,L.useContext)(ns.V),d=(0,n1.H8)(i),u=!!d.filter(e=>!e.primary).length,m=(0,eW.XR)(),p=(0,es.fm)(),v=null==m||null===(t=m.promotion)||void 0===t?void 0:t.end,x=null==m||null===(l=m.promotion)||void 0===l?void 0:l.start,h=d&&d.find(e=>null==e?void 0:e.primary);if(h){let e=h.presaleQuantity?h.presaleQuantity.toLocaleString():h.presaleQuantityText,t=h.quantity?h.quantity.toLocaleString():h.quantityText;n=e&&m&&v&&p<v&&x&&p>x?(0,ec.BX)(ec.HY,{children:[(0,ec.tZ)("p",{"data-testid":"presale-quantity-p",className:"text-body-s line-through text-text-primary-60 font-normal",children:e}),(0,ec.tZ)("p",{children:t})]}):e||t}return(0,ec.BX)("div",{"data-tile":il.Table,"data-testid":U.U8P,"data-theme":c||"none",className:(0,T.Z)("h-full w-full relative","first:rounded-t-lg last:rounded-b-lg","first:!border-t-0 last:!border-b-0 !border-b-0 !border-x-0",nV().main),children:[(0,ec.tZ)(n7,{messages:s||[],overrideAlignment:"Right"}),(0,ec.BX)("div",{className:"flex flex-col w-full px-4 pb-2",children:[(0,ec.BX)("section",{className:"flex items-center gap-x-2",children:[(0,ec.tZ)(eB.E,{sizes:"80px",className:"w-screen max-w-[5rem]",onClick:a,src:(0,G.Jn)(null==i?void 0:i.square),alt:(0,G.EQ)(i)}),(0,ec.BX)("span",{className:(0,T.Z)("text-headline-m font-bold inline-block",nV().title),children:[(0,ec.tZ)("span",{className:"align-middle",children:n||(null==i?void 0:i.title)}),(0,ec.tZ)(n8,{children:(0,ec.tZ)(n0.Z,{})})]})]}),(0,ec.BX)("section",{className:"flex space-x-2 w-full h-full text-body-s text-left",children:[u&&(0,ec.tZ)(ie.A,{className:"flex-[2]",type:r||"boxed",items:d}),(0,ec.BX)("div",{className:(0,T.Z)("flex flex-col space-y-2 h-full",!u&&"grow"),children:[(0,ec.tZ)(it,{}),(0,ec.BX)(nR.l,{forceChildren:o,className:"min-[320px]:min-w-max w-full",children:[o&&(0,ec.BX)("span",{className:"flex items-center justify-center gap-x-2",children:[(0,ec.tZ)(rr.F,{}),(0,ec.tZ)(nH,{})]}),!o&&(0,ec.tZ)(nH,{})]})]})]})]})]})}var ru=l(95105),rm=l(78);function rp(e){let{skuCount:t,claimedCount:l,onClick:n}=e,i=(0,eW.XR)(),r=(0,eH.M)(),{t:o}=(0,ei.$G)(),{user:s}=(0,eW.aF)();if(!i)return null;let a=e=>{if(!s){var t;null==e||e.stopPropagation(),null==e||null===(t=e.nativeEvent)||void 0===t||t.stopImmediatePropagation(),(0,es.vm)(rm.lg)}n?n():r()};return(0,R.jsx)("button",{type:"button",className:"btn min-h-0 text-button-m w-full min-w-0 bg-none border border-white",onClick:e=>{a(e)},"data-testid":nY.q6,children:0===l?o("buy-all-n",{n:t}):o("buy-remaining-n",{n:(null!=t?t:0)-(null!=l?l:0)})})}function rv(e){var t,l,n,i,r,o,s,a,c,d,u,m,p,v,x,h,f,b,g,j;let{tileGroup:y,tileItems:w,imageType:O}=e,{t:N}=(0,ei.$G)(),k=(0,L.useContext)(ns.V),P="transparent"===O,C=(0,ez.TA)(),Z=C&&C[(null===(t=w[0])||void 0===t||null===(t=t.sys)||void 0===t?void 0:t.id)||""],S=Z&&(null===(l=Z[0])||void 0===l||null===(l=l.promotion)||void 0===l?void 0:l.end),{0:D,1:_}=(0,L.useState)(null===(n=w[0])||void 0===n||null===(n=n.sys)||void 0===n?void 0:n.id),E=w.find(e=>{var t;return(null==e||null===(t=e.sys)||void 0===t?void 0:t.id)===D}),I=(0,n1.H8)(E),A=null==C||null===(i=C[null!=D?D:""])||void 0===i?void 0:i[0],M=null!==(r=null==A||null===(o=A.inGroup)||void 0===o?void 0:o.groupSkusCount)&&void 0!==r?r:0,B=null!==(s=null==A||null===(a=A.inGroup)||void 0===a?void 0:a.groupUsedCount)&&void 0!==s?s:0,H="(".concat((null!==(c=null==A||null===(d=A.inGroup)||void 0===d?void 0:d.orderInGroup)&&void 0!==c?c:0)+1,"/").concat(M,")"),{0:F,1:V}=(0,L.useState)("");(0,L.useEffect)(()=>{V((0,eq.Do)(eq.M2.userid)||(0,eq.Do)(eq.M2.token)||"")},[C]);let{0:U,1:z}=(0,L.useState)(void 0);(0,L.useEffect)(()=>{z(!!(eV().mobile||eV().tablet))},[]);let W=F?(null==A||null===(u=A.inGroup)||void 0===u?void 0:u.state)===eR.Aw.purchasable:(null==A||null===(m=A.inGroup)||void 0===m?void 0:m.orderInGroup)===0,q=(0,ru.V)(null!==(p=null==y||null===(v=y.description)||void 0===v?void 0:v.text)&&void 0!==p?p:"",{number:M,contents:null!==(x=null===(h=w[w.length-1])||void 0===h?void 0:h.title)&&void 0!==x?x:""}),J=(0,R.jsx)(eB.E,{sizes:"100vw sm:50vw md:25vw",className:(0,T.Z)("w-full rounded-t-lg",P?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,G.Jn)(y.headerImage),alt:(0,G.EQ)({title:null===(f=y.title)||void 0===f?void 0:f.text})}),X=(null===(b=y.title)||void 0===b?void 0:b.text)&&(0,R.jsxs)("h3",{className:"text-body-m font-bold",children:[null===(g=y.title)||void 0===g?void 0:g.text," ",H]}),Q=!!S&&(0,R.jsx)(e3.I,{endDate:S,children:(0,R.jsxs)("span",{className:"text-[rgb(var(--color-promo-attribute-rgb))] font-bold",children:[(0,R.jsx)(e2,{className:"inline me-1"}),(0,R.jsx)(e3.T,{className:"align-middle",daysHoursOnly:!0})]})}),$=(null==y?void 0:y.description)&&(0,R.jsx)(er.D,{className:"text-body-s pb-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",children:q}),K=(0,R.jsx)("div",{className:(0,T.Z)(nV().tileGroupContent,!U&&nV().desktop,"overflow-x-auto flex rounded-lg px-2 py-2"),children:(0,R.jsx)(rv.Items,{tileItems:w,selectedId:null!=D?D:"",skus:C,userId:F,onItemClick:e=>{var t;return _(null==e||null===(t=e.sys)||void 0===t?void 0:t.id)}})}),Y=(0,R.jsx)(ie.A,{type:"list",className:"max-h-40",items:I}),ee=(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(tl.nW,{value:E,children:(0,R.jsx)(eU.R,{children:(0,R.jsx)(nR.l,{forceChildren:!W,disabled:!W,children:W?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("span",{className:"me-1",children:N("Buy")}),(0,R.jsx)(nH,{})]}):(0,R.jsx)(rr.F,{className:"w-6 h-6"})})})}),F&&B<M-1&&(0,R.jsx)(tl.nW,{value:w[w.length-1],children:(0,R.jsx)(eU.R,{children:(0,R.jsx)(rp,{claimedCount:B,skuCount:M})})})]}),et=(0,R.jsxs)("div",{className:"flex items-center align-middle",children:[(0,R.jsx)(iT.Z,{className:"w-5 h-5"}),(0,R.jsx)("p",{className:"ms-1 font-bold",children:N("claimed")})]});return void 0===U?null:(0,R.jsx)("div",{"data-theme":k||"none",className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear",P&&"p-4",nV().main),children:(0,R.jsxs)("div",{className:"h-full flex flex-col gap-4",children:[J,(0,R.jsxs)("section",{className:(0,T.Z)("h-full w-full flex flex-col gap-y-2",!P&&"px-4 pb-4"),children:[X,Q,$,K,Y,(null==A||null===(j=A.inGroup)||void 0===j?void 0:j.state)!==eR.Aw.owned?ee:et]})]})})}function rx(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function rh(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?rx(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):rx(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}rv.Items=function(e){let{tileItems:t,selectedId:l,skus:n,userId:i,onItemClick:r}=e;return(0,R.jsx)("div",{className:(0,T.Z)(nV().tileGroupContent,"flex w-fit"),children:t.map((e,t)=>{var o,s,a,c,d,u,m,p,v;let x=null==n||null===(o=n[null!==(s=null==e||null===(a=e.sys)||void 0===a?void 0:a.id)&&void 0!==s?s:""])||void 0===o?void 0:o[0];if(!x)return null;let h=null===(c=x.inGroup)||void 0===c?void 0:c.state,f=(null==e||null===(d=e.sys)||void 0===d?void 0:d.id)===l&&(0,R.jsx)("div",{"aria-hidden":!0,className:(0,T.Z)(nV().activePromotionGlow,"top-3.5 left-1.5 absolute w-5 h-5 rounded-full")}),b=i?h===eR.Aw.purchasable||h===eR.Aw.owned:0===t,g=(0,R.jsx)(eB.E,{className:(0,T.Z)("relative",b?"":"grayscale"),sizes:"30px",src:(0,G.Jn)(e.boxart),alt:(0,G.EQ)({title:e.description})}),j=(0,R.jsx)(iT.Z,{className:(0,T.Z)((null==e||null===(u=e.sys)||void 0===u?void 0:u.id)===l?"bottom-0":"bottom-px",nV().checkIcon,"absolute rounded-full -right-1.5 w-5 h-5")});return(0,R.jsx)("div",{"data-selected":(null==e||null===(p=e.sys)||void 0===p?void 0:p.id)===l,className:(0,T.Z)("w-[45px] h-[45px] flex justify-center align-middle",(null==e||null===(v=e.sys)||void 0===v?void 0:v.id)===l&&"rounded border border-solid border-1 ".concat(nV().activePromotionTile)),children:(0,R.jsxs)("button",{type:"button",className:"relative",onClick:()=>{r(e)},children:[f,g,h===eR.Aw.owned?j:null]})},null==e||null===(m=e.sys)||void 0===m?void 0:m.id)})})};let rf=(e,t)=>!!e&&e===t,rb=(e,t)=>{if((null==e?void 0:e.key)==="list-view-floating"){var l;let n=(0,nd.M)(e);return rf(null==n||null===(l=n.referenceItem)||void 0===l||null===(l=l.sys)||void 0===l?void 0:l.id,t)}},rg={[il.Event]:function(e){var t,l,n,i,r;let{tileGroup:o,tileItems:s,imageType:a,pkgVariant:c}=e,d=(0,ez.TA)(),u="transparent"===a,m=(0,L.useContext)(ns.V),p=(0,L.useMemo)(()=>{if(!d||!s)return[];let e={};for(let i of s){var t,l,n;let r=d&&d[null!==(t=null==i||null===(l=i.sys)||void 0===l?void 0:l.id)&&void 0!==t?t:""];if(r){let t=(null===(n=r[0])||void 0===n?void 0:n.releaseDate)||0;e[t]?e[t].push(i):e[t]=[i]}}return Object.entries(e).map(e=>{let[t,l]=e;return{releaseDate:+t,items:l}})},[s,d]),{0:v,1:x}=(0,L.useState)(()=>{let e=0,t=0;return p.forEach((l,n)=>{l.releaseDate>=t&&l.releaseDate<=(0,es.fm)()&&(t=l.releaseDate,e=n)}),e});return null!=s&&s.length&&o?(0,R.jsx)("div",{"data-theme":m||"none","data-testid":U.U8P,className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear",u&&"p-4",nV().main),children:(0,R.jsxs)("div",{className:(0,T.Z)("h-full flex flex-col gap-4"),children:[(0,R.jsx)("div",{className:"w-full aspect-[3.28/1] grow-0 overflow-hidden",children:(0,R.jsx)(eB.E,{sizes:"100vw sm:50vw md:25vw",className:(0,T.Z)("h-full w-full rounded-t-lg",u?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,G.Jn)(o.headerImage),alt:(0,G.EQ)({title:null===(t=o.title)||void 0===t?void 0:t.text})})}),(0,R.jsxs)("section",{className:(0,T.Z)("w-full flex flex-col gap-y-2",!u&&"px-4 pb-4"),children:[(null===(l=o.title)||void 0===l?void 0:l.text)&&(0,R.jsx)("h3",{className:(0,T.Z)("text-body-m font-bold",nV().title),children:null===(n=o.title)||void 0===n?void 0:n.text}),(null==o?void 0:o.description)&&(0,R.jsx)("p",{className:(0,T.Z)("text-body-s pb-2",nV().description),children:null==o||null===(i=o.description)||void 0===i?void 0:i.text}),p.length>0&&(0,R.jsxs)(R.Fragment,{children:[p.some(e=>e.releaseDate)&&(0,R.jsx)("div",{className:(0,T.Z)("w-full h-auto p-2 rounded-lg text-body-s space-x-0.5 [&::-webkit-scrollbar-track]:!bg-transparent flex",nV().tileGroupContent),children:p.map((e,t)=>(0,R.jsx)(ro,{timeout:e.releaseDate>=(0,es.fm)()?e.releaseDate-(0,es.fm)():0,children:(0,R.jsx)(rs,{isActiveTab:v===t,onClick:()=>x(t),releaseDate:e.releaseDate,tileGroup:o})},e.releaseDate))}),null===(r=p[v].items)||void 0===r?void 0:r.map(e=>{var t;return(0,R.jsx)(tl.nW,{value:e,children:(0,R.jsx)(eU.R,{children:(0,R.jsx)(ro,{timeout:p[v].releaseDate>=(0,es.fm)()?p[v].releaseDate-(0,es.fm)():0,children:(0,R.jsx)(ra,{pkgVariant:c})})})},null===(t=e.sys)||void 0===t?void 0:t.id)})]})]})]})}):null},[il.Calendar]:function(e){var t,l,n,i,r,o,s,a;let{tileGroup:c,tileItems:d,calendar:u,pkgVariant:m}=e,{t:p}=(0,ei.$G)(),v=(0,L.useContext)(ns.V),x=(0,ez.TA)(),h=(0,en.E)(Object.values(x||{}).flat()),f=(0,e5.J)(),b=new Map(d.map(e=>{var t;return[null===(t=e.sys)||void 0===t?void 0:t.id,e]}));if(!(null!=u&&u.minDate)||!u.maxDate||!u.timeZone)return null;let g=new Date((0,es.fm)()).getTime(),j=(0,iG.FD)(g,u.timeZone),y=null,w=new Set,O=[];for(let e of(null==u||null===(o=u.eventsCollection)||void 0===o?void 0:o.items)||[]){if("string"!=typeof(null==e?void 0:e.eventDate))continue;let t=e.eventDate.split("T")[0],l=null===(s=e.itemsCollection)||void 0===s?void 0:s.items,n=(0,en.E)(null==l?void 0:l.map(e=>{var t;return b.get(null==e||null===(t=e.sys)||void 0===t?void 0:t.id)}));n.find(e=>"Item"===e.__typename&&h.find(t=>{var l,n;return t.itemId===(null===(l=e.sys)||void 0===l?void 0:l.id)&&(null===(n=t.offerTagsArray)||void 0===n?void 0:n.includes(eR.nb.FreeItem))}))&&w.add(t);let i=e.eventDate.substring(0,23),r=(0,iB.v0)("".concat(i,"[").concat(u.timeZone,"]")),o=r.compare(j);(0,iM.KC)(j,r)&&O.push(...n),y&&o>0&&(y=null===y?r:null!==(a=(0,iM.Mb)(r,y))&&void 0!==a?a:null)}let N=(null===(t=y)||void 0===t||null===(t=t.toDate())||void 0===t?void 0:t.getTime())||0,k=O.map(e=>{var t,l,n;let i=h.find(t=>{var l;return t.itemId===(null===(l=e.sys)||void 0===l?void 0:l.id)});if(!i)return null;let{purchaseState:r}=i,o=(0,n1.H8)(e),s=null!==(t=null==i?void 0:i.promoLimitCount)&&void 0!==t?t:0,a=null!==(l=null==i?void 0:i.promoLimitUsed)&&void 0!==l?l:0,d=r===eR.Aw.owned,u=a>0&&s>0&&a>=s;return(0,R.jsx)("div",{className:(0,T.Z)(n3().main,"p-2 rounded-md"),children:(0,R.jsxs)(tl.nW,{value:e,children:[(0,R.jsx)(ie.A,{type:m||"grid",className:"max-h-[10.5rem]",transparent:!0,items:o}),d||u?(0,R.jsxs)("div",{className:"pl-2 flex gap-y-2 w-full font-bold text-base items-center",children:[(0,R.jsx)(iT.Z,{className:"me-1 w-4 h-4"}),d&&"".concat(p("claimed"),"!"),u&&"".concat(p("purchased"),"!")]}):(0,R.jsxs)(eU.R,{children:[!(null!=c&&c.hideStockCount)&&(0,R.jsxs)(nG,{className:"py-1 px-2",children:[(0,R.jsx)(nD,{}),(0,R.jsx)(nA,{})]}),(0,R.jsx)(nR.l,{className:"w-full",children:(0,R.jsx)(nH,{})})]})]})},null===(n=e.sys)||void 0===n?void 0:n.id)});return(0,R.jsxs)("div",{"data-theme":v||"none","data-testid":U.U8P,className:(0,T.Z)("relative rounded-lg w-full h-full shadow-xnear overflow-hidden",nV().main),children:[(0,R.jsx)(eB.E,{sizes:"100vw sm:50vw md:25vw",className:"absolute inset-0 w-full z-0 object-cover object-top",src:(0,G.Jn)(c.headerImage),alt:(0,G.EQ)({title:null===(l=c.title)||void 0===l?void 0:l.text})}),(0,R.jsx)("div",{className:(0,T.Z)(nV().overlay,"absolute inset-0")}),(0,R.jsxs)("div",{className:"relative",children:[(0,R.jsxs)("div",{className:"p-4 pb-0",children:[(null===(n=c.title)||void 0===n?void 0:n.text)&&(0,R.jsx)("h3",{className:(0,T.Z)("text-headline-l font-bold mb-1",nV().title),children:null===(i=c.title)||void 0===i?void 0:i.text}),!!N&&(0,R.jsxs)("span",{className:(0,T.Z)(nV().info,"font-bold"),children:[(0,R.jsx)(e2,{className:"inline me-2"}),(0,R.jsx)(e3.I,{endDate:N,onDone:f,children:(0,R.jsxs)(ei.cC,{i18nKey:"calendar-timer",children:["next ...",(0,R.jsx)(e3.T,{className:"align-middle uppercase",daysHoursOnly:!0})]})})]})]}),(0,R.jsx)(iY,{timeZone:u.timeZone,className:(0,T.Z)("w-full px-3"),minValue:u.minDate,maxValue:u.maxDate,children:(0,R.jsx)(re,{className:"table-fixed border-spacing-1 border-separate w-full h-full",children:e=>{let t=e.toString(),l=w.has(t),n=(0,iM.KC)(j,e),i=!n&&0>e.compare(j);return(0,R.jsx)(i3,{"data-past":i||void 0,"data-today":n||void 0,"data-event":!!l||void 0,date:e,className:(0,T.Z)(nV().calendarCell,"w-full h-full rounded outline-none"),children:(0,R.jsxs)(nv.fC,{children:[(0,R.jsxs)(nv.xz,{disabled:n,className:(0,T.Z)("relative flex flex-col items-center justify-end font-bold overflow-hidden","h-full w-full aspect-square","disabled:cursor-default select-none"),children:[l&&(0,R.jsx)("div",{className:"relative w-full h-full grow",children:(0,R.jsx)("div",{className:"absolute inset-0",children:(0,R.jsx)(rn,{width:"80%",height:"unset",className:(0,T.Z)(nV().calendarEvent,"!h-[unset] translate-x-[10%] -translate-y-1")})})}),(0,R.jsx)("span",{className:"shrink",children:e.day})]}),(0,R.jsx)(ri,{children:p(0>j.compare(e)?"calendar-future-offers":"calendar-past-offers")})]})},t)}})})]}),(0,R.jsxs)("div",{className:"relative flex flex-col gap-2 p-4",children:[(0,R.jsx)("span",{children:p("calendar-todays-offers")}),(0,R.jsxs)("section",{className:"w-full flex flex-col gap-y-2",children:[(null==c?void 0:c.description)&&(0,R.jsx)("p",{className:(0,T.Z)("text-body-s pb-2",nV().description),children:null==c||null===(r=c.description)||void 0===r?void 0:r.text}),k]})]})]})},[il.Progression]:function(e){var t,l,n,i,r,o;let{tileGroup:s,tileItems:a,imageType:c}=e,{t:d}=(0,ei.$G)(),u=(0,L.useContext)(ns.V),m="transparent"===c,p=(0,ez.TA)(),{user:v}=(0,eW.aF)(),x=p&&p[(null===(t=a[0])||void 0===t||null===(t=t.sys)||void 0===t?void 0:t.id)||""],h=x&&(null===(l=x[0])||void 0===l||null===(l=l.promotion)||void 0===l?void 0:l.end),f=a.map((e,t)=>{var l,n,i,r;let o=null==p||null===(l=p[null!==(n=null==e||null===(i=e.sys)||void 0===i?void 0:i.id)&&void 0!==n?n:""])||void 0===l?void 0:l[0];if(!o)return null;let{purchaseState:a}=o,c=(0,n1.H8)(e);return(0,R.jsx)("div",{className:(0,T.Z)("w-full h-auto p-2 rounded-lg text-body-s space-x-0.5 [&::-webkit-scrollbar-track]:!bg-transparent",nV().tileGroupContent),children:(0,R.jsxs)(tl.nW,{value:e,children:[(0,R.jsx)(ie.A,{type:"list",className:"max-h-[10.5rem]",items:c}),(0,R.jsx)("hr",{className:"bg-current h-px opacity-20 w-full"}),a===eR.Aw.owned&&(0,R.jsxs)("div",{className:"pl-2 flex gap-y-2 w-full font-bold text-base items-center",children:[(0,R.jsx)(iT.Z,{className:"me-1 w-4 h-4"}),"".concat(d("claimed"),"!")]}),a!==eR.Aw.owned&&(0,R.jsxs)(eU.R,{children:[!(null!=s&&s.hideStockCount)&&(0,R.jsx)("div",{className:"py-1",children:(0,R.jsxs)(nG,{children:[(0,R.jsx)(nD,{}),(0,R.jsx)(nA,{})]})}),!v&&0===t&&(0,R.jsx)(nR.l,{className:"w-full",children:(0,R.jsx)(nH,{})}),!v&&t>0&&(0,R.jsx)(nR.l,{className:"w-full",disabled:!0,children:(0,R.jsx)("span",{className:"flex items-center",children:(0,R.jsx)(rr.F,{})})}),v&&a===eR.Aw.unavailable&&(0,R.jsx)(nR.l,{className:"w-full",disabled:!0,children:(0,R.jsxs)("span",{className:"flex items-center",children:[(0,R.jsx)(rr.F,{}),(0,R.jsx)(nH,{})]})}),v&&a===eR.Aw.purchasable&&(0,R.jsx)(nR.l,{className:"w-full",children:(0,R.jsx)(nH,{})})]})]})},null==e||null===(r=e.sys)||void 0===r?void 0:r.id)});return(0,R.jsx)("div",{"data-theme":u||"none","data-testid":U.U8P,className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear",m&&"p-4",nV().main),children:(0,R.jsxs)("div",{className:"h-full flex flex-col gap-4",children:[(0,R.jsx)(eB.E,{sizes:"100vw sm:50vw md:25vw",className:(0,T.Z)("w-full rounded-t-lg",m?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,G.Jn)(s.headerImage),alt:(0,G.EQ)({title:null===(n=s.title)||void 0===n?void 0:n.text})}),(0,R.jsxs)("section",{className:(0,T.Z)("h-full w-full flex flex-col gap-y-2",!m&&"px-4 pb-4"),children:[(null===(i=s.title)||void 0===i?void 0:i.text)&&(0,R.jsx)("h3",{className:(0,T.Z)("text-body-m font-bold",nV().title),children:null===(r=s.title)||void 0===r?void 0:r.text}),!!h&&(0,R.jsx)(e3.I,{endDate:h,children:(0,R.jsxs)("span",{className:"text-[rgb(var(--color-promo-attribute-rgb))] font-bold",children:[(0,R.jsx)(e2,{className:"inline me-1"}),(0,R.jsx)(e3.T,{className:"align-middle uppercase",daysHoursOnly:!0})]})}),(null==s?void 0:s.description)&&(0,R.jsx)("p",{className:(0,T.Z)("text-body-s pb-2",nV().description),children:null==s||null===(o=s.description)||void 0===o?void 0:o.text}),f]})]})})},[il.ProgressivePack]:rv,[il.ProgressionTable]:function(e){var t,l;let{tileGroup:n,tileItems:i,imageType:r,paletteMap:o,marketingMessages:s,msgLink:a}=e,c="transparent"===r,{t:d}=(0,ei.$G)(),u=(0,ez.TA)(),m=i.map(e=>{var t;return(null==u?void 0:u[(null===(t=e.sys)||void 0===t?void 0:t.id)||""])||[]}).flat().every(e=>(null==e?void 0:e.purchaseState)===eR.Aw.owned);return(0,R.jsxs)("section",{className:(0,T.Z)("md:h-max rounded-lg",nV().main),children:[(0,R.jsx)(eB.E,{src:null!==(t=null===(l=n.headerImage)||void 0===l?void 0:l.url)&&void 0!==t?t:"",alt:"",sizes:"100vw sm:50vw md:25vw",className:(0,T.Z)("w-full rounded-t-lg",c?"object-contain w-auto":"object-cover")}),m&&(0,R.jsxs)("div",{className:(0,T.Z)("h-12 w-full flex items-center justify-center text-lg font-bold",nV().banner),children:[(0,R.jsx)(iT.Z,{className:"-mt-1 me-1"}),(0,R.jsx)("span",{children:d("all-deals-claimed")})]}),(0,R.jsx)("div",{className:(0,T.Z)("[&>*]:border-t","[&>*]:!border-b-0","[&>*:last-child]:rounded-b-lg"),children:i.map((e,t)=>{var l,n,i,c,d;let m=null!==(l=e.sys)&&void 0!==l&&l.id?null==u?void 0:u[null===(n=e.sys)||void 0===n?void 0:n.id]:[],p=(0,en.E)((null!=a?a:[]).filter(t=>{var l;return t.from===(null===(l=e.sys)||void 0===l?void 0:l.id)}).map(e=>null==s?void 0:s.find(t=>{var l;return(null==t||null===(l=t.sys)||void 0===l?void 0:l.id)===e.to})));return(0,R.jsx)(tl.nW,{value:e,children:(0,R.jsx)(eU.R,{children:(0,R.jsx)(ns.V.Provider,{value:o.get((null===(c=e.sys)||void 0===c?void 0:c.id)||"")||o.get("".concat(t)||"")||"",children:(0,R.jsx)(rd,{showLockWithPrice:(null==m||null===(d=m[0])||void 0===d||null===(d=d.inGroup)||void 0===d?void 0:d.state)===eR.Aw.unavailable,item:e,imageType:r,marketingMessages:p})})})},(null===(i=e.sys)||void 0===i?void 0:i.id)||"")})})]})},[il.BattlePass]:function(e){var t,l,n,i;let{tileGroup:r,tileItems:o,imageType:s,pkgVariant:a,marketingMessages:c}=e,d="transparent"===s,u=(0,L.useContext)(ns.V);return(0,R.jsxs)("div",{"data-theme":u||"none","data-testid":U.U8P,className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear relative",d&&"p-4",nV().main),children:[(0,R.jsx)(n7,{messages:c||[]}),(0,R.jsxs)("div",{className:(0,T.Z)("h-full flex flex-col gap-4"),children:[(0,R.jsxs)("div",{className:"w-full aspect-[3.28/1] grow-0 overflow-hidden",children:[(0,R.jsx)(eB.E,{sizes:"100vw sm:50vw md:25vw",className:(0,T.Z)("h-full w-full rounded-t-lg",d?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,G.Jn)(r.headerImage),alt:(0,G.EQ)({title:null===(t=r.title)||void 0===t?void 0:t.text})}),(0,R.jsx)(tl.nW,{value:null==o?void 0:o[0],children:(0,R.jsx)(nG,{className:(0,T.Z)("absolute top-1.5 left-1.5 rounded py-0.5 px-1 leading-none rtl:left-[unset] rtl:right-1.5",nV().tilePromo),children:(0,R.jsx)(nT,{showIcon:!0})})})]}),(0,R.jsxs)("section",{className:(0,T.Z)("w-full flex flex-col gap-y-2",!d&&"px-4 pb-4"),children:[(0,R.jsxs)("div",{children:[(null===(l=r.title)||void 0===l?void 0:l.text)&&(0,R.jsx)("h3",{className:(0,T.Z)("text-body-m font-bold [float:inline-start]",nV().title),children:null===(n=r.title)||void 0===n?void 0:n.text}),(0,R.jsx)(tl.nW,{value:null==o?void 0:o[0],children:(0,R.jsxs)("span",{className:"[float:inline-end]",children:[(0,R.jsx)(nD,{}),(0,R.jsx)(nA,{})]})})]}),(null==r?void 0:r.description)&&(0,R.jsx)("p",{className:(0,T.Z)("text-body-s pb-2",nV().description),children:null==r||null===(i=r.description)||void 0===i?void 0:i.text}),o.length>0&&(0,R.jsx)(R.Fragment,{children:o.map(e=>{var t;return(0,R.jsx)(tl.nW,{value:e,children:(0,R.jsx)(eU.R,{children:(0,R.jsx)(iA,{pkgVariant:a})})},null===(t=e.sys)||void 0===t?void 0:t.id)})})]})]})]})}},rj={[il.Table]:rd,[il.List]:ig,[il.Medium]:ij,[il.BoxArt]:ii,[il.Large]:io,[il.Gigantic]:ir,[il.GiganticShort]:function(e){var t;let{imageType:l,pkgVariant:n,item:i,additionalData:r,marketingMessages:o}=e,s=(0,eH.M)(),a=(0,nd.M)(r),c=(0,n1.H8)(i),d=(0,L.useContext)(ns.V),u="transparent"===l;return(0,R.jsxs)("div",{"data-tile":il.GiganticShort,"data-testid":U.U8P,"data-theme":d||"none",className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear relative",u&&"p-4",nV().main),children:[(0,R.jsx)(n7,{messages:o||[]}),(0,R.jsxs)("div",{className:"flex flex-col gap-4 relative h-full",children:[(0,R.jsxs)("div",{className:"relative w-full aspect-[3.28/1] grow-0 overflow-hidden",children:[(0,R.jsx)(eB.E,{onClick:s,sizes:"100vw sm:50vw md:25vw",className:(0,T.Z)("w-full rounded-t-lg absolute top-0 left-0",u?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,G.Jn)(null==i?void 0:i.largeTile),alt:(0,G.EQ)(i)}),(0,R.jsxs)(nG,{className:(0,T.Z)("absolute top-1.5 left-1.5 rounded py-0.5 px-1 leading-none rtl:left-[unset] rtl:right-1.5",nV().tilePromo),children:[(0,R.jsx)(nT,{showIcon:!0}),(0,R.jsx)(nE,{showIcon:!0})]})]}),(0,R.jsxs)("section",{className:(0,T.Z)("w-full flex flex-col gap-y-2 grow",!u&&"px-4 pb-4"),children:[(0,R.jsxs)("span",{className:(0,T.Z)("inline-block text-body-m font-bold",nV().title),children:[(0,R.jsx)("span",{className:"align-middle",children:null==i?void 0:i.title}),(0,R.jsx)(n8,{children:(0,R.jsx)(n0.Z,{})}),(0,R.jsxs)("span",{className:"align-middle [float:inline-end]",children:[(0,R.jsx)(nD,{}),(0,R.jsx)(nA,{})]})]}),(0,R.jsx)(nG,{children:(0,R.jsx)(n_,{showIcon:!0})}),(null==i?void 0:i.longDescription)&&(0,R.jsx)(er.D,{className:(0,T.Z)(nV().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":U.KxA,children:null==i?void 0:i.longDescription}),(0,R.jsx)(ie.A,{type:n||"grid",items:c,className:"max-h-[12rem] lg:max-h-[11.5rem]",legalText:null==a||null===(t=a.chestLegalText)||void 0===t?void 0:t.locText}),(0,R.jsxs)("div",{className:"flex flex-col gap-y-2 mt-auto w-full",children:[(0,R.jsx)(it,{}),(0,R.jsx)(nR.l,{children:(0,R.jsx)(nH,{})})]})]})]})]})},[il.ListDailyStreak]:function(e){var t,l,n;let{item:i,pkgVariant:r,marketingMessages:o}=e,s=(0,eH.M)(),a=(0,e5.J)(),c=(0,eW.XR)(),d=(0,ez.TA)(),{user:u}=(0,eW.aF)(),{t:m}=(0,ei.$G)(),p=(0,L.useRef)(null),v=null==c?void 0:c.inGroup,x=null==v?void 0:v.groupId,h=(null!==(t=null==v?void 0:v.orderInGroup)&&void 0!==t?t:0)+1,f=c&&(null==v?void 0:v.state),b=f===eR.Aw.purchasable,g=f===eR.Aw.owned,j=f===eR.Aw.hidden,y=f===eR.Aw.unavailable,w=0,{0:O,1:N}=(0,L.useState)(!1),k=(0,L.useContext)(ns.V),P=(0,n1.H8)(i),C=(0,L.useContext)(nm.B).staticStreak,Z=C&&!O;if((0,L.useEffect)(()=>{if(!x)return;let e=(0,es.fm)(),t=Object.values(d||{}).flat().filter(t=>{var l;let{start:n=1/0,end:i=0}=(null==t?void 0:t.promotion)||{};return(null==t||null===(l=t.inGroup)||void 0===l?void 0:l.groupId)===x&&n<e&&i>e}),l=t.map(e=>{var t;return(null==e||null===(t=e.promotion)||void 0===t?void 0:t.end)||1/0});if(t[l.indexOf(Math.min(...l))]===c){var n;null===(n=p.current)||void 0===n||n.scrollIntoView({block:"center",behavior:"smooth"})}},[x]),(0,L.useEffect)(()=>{let e=(0,eq.Do)(eq.M2.userid)||(0,eq.Do)(eq.M2.token)||"";N(!!u||e.replace(/<|>/g,"").length>0)},[c,u]),!(null!=c&&c.promotion))return null;let S=(0,es.fm)();w=y?null!==(l=c.promotion)&&void 0!==l&&l.start?c.promotion.start-S:0:null!==(n=c.promotion)&&void 0!==n&&n.end?c.promotion.end-S:0;let D=()=>{if(u){var e;let t=(null===(e=c.inGroup)||void 0===e?void 0:e.orderInGroup)!==void 0?c.inGroup.orderInGroup+1:void 0;(0,es.$B)(es.vJ.DAILY_STREAK,t)}else(0,es.$B)(es.vJ.NOT_LOGGED_IN);s()};return(0,R.jsx)("div",{"data-testid":nY.U8,"data-theme":k||"none",className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear relative",nV().main,b&&nV().activePromotionTile),children:(0,R.jsxs)(ro,{timeout:w>0?w:0,onDone:a,children:[(0,R.jsx)(n7,{messages:null!=o?o:[],overrideAlignment:"Right"}),(0,R.jsxs)("div",{className:"flex p-3 gap-x-3 h-full",children:[(0,R.jsx)("div",{className:"shrink-0",children:(0,R.jsx)(eB.E,{onClick:s,className:(0,T.Z)("h-auto w-20 md:w-24"),sizes:"10vw",src:(0,G.Jn)(null==i?void 0:i.square)||(0,G.Jn)(null==i?void 0:i.boxart)||"",alt:(0,G.EQ)(i)})}),(0,R.jsxs)("section",{className:"flex-grow flex flex-col gap-y-2",children:[(0,R.jsx)("span",{className:(0,T.Z)("text-body-m font-bold",nV().title),children:C&&O?m("static-daily-streak-tile-title",{day:h}):null==i?void 0:i.title}),(0,R.jsxs)(nG,{children:[b&&(0,R.jsx)(nT,{showIcon:!0}),(0,R.jsx)(nI,{showIcon:!0,releaseDate:c.promotion.start})]}),(null==i?void 0:i.longDescription)&&(0,R.jsx)(er.D,{className:(0,T.Z)("text-body-s",(g||j)&&"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"),children:null==i?void 0:i.longDescription}),(0,R.jsxs)("div",{ref:p,className:"flex flex-col gap-y-2 mt-auto md:max-w-[16rem] empty:hidden",children:[!!P.length&&(0,R.jsx)(ie.A,{type:r||"list",className:"max-h-[12rem] lg:max-h-[11.5rem]",items:P}),(0,R.jsx)(it,{}),O&&g&&(0,R.jsxs)("div",{className:"flex gap-y-2 w-full font-bold text-sm uppercase",children:[(0,R.jsx)(iT.Z,{className:"me-2 w-5 h-5"}),m("claimed")]}),Z&&(0,R.jsx)(nR.l,{onClick:D,children:m("connect-id")}),Z||j||g?null:(0,R.jsxs)(nR.l,{onClick:D,disabled:!b,forceChildren:!0,children:[y&&(0,R.jsx)(rr.F,{}),b&&m("claim")]}),O&&j&&(0,R.jsxs)("div",{className:(0,T.Z)("flex font-bold items-center text-sm uppercase",nV().info),children:[(0,R.jsx)(rc.Z,{className:"text-xl me-2"}),(0,R.jsx)("span",{children:m("missed")})]})]})]})]})]})})},[il.GiganticDailyStreak]:function(e){var t,l,n;let{imageType:i,item:r,pkgVariant:o,marketingMessages:s}=e,a=(0,eH.M)(),c=(0,eW.aF)(),d=(0,eW.XR)(),{t:u}=(0,ei.$G)(),m=(0,e5.J)(),{0:p,1:v}=(0,L.useState)(!!c.user),x=d&&(null==d||null===(t=d.inGroup)||void 0===t?void 0:t.state),h=x===eR.Aw.purchasable,f=x===eR.Aw.owned,b=x===eR.Aw.hidden,g=x===eR.Aw.unclaimable,j=x===eR.Aw.unavailable,y=d&&(null===(l=d.inGroup)||void 0===l?void 0:l.autoClaimBonus)&&p,w=!g&&!b&&!f,O=b||g,N=(0,L.useContext)(ns.V),k="transparent"===i,P=(0,es.fm)(),C=0;h&&(C=null!=d&&null!==(n=d.promotion)&&void 0!==n&&n.end?d.promotion.end-P:0);let Z=(0,n1.H8)(r),S=(0,L.useContext)(nm.B).staticStreak,D=S&&!p;return(0,L.useEffect)(()=>{let e=(0,eq.Do)(eq.M2.userid)||(0,eq.Do)(eq.M2.token)||"";v(!!c.user||e.replace(/<|>/g,"").length>0)},[d,c]),(0,R.jsx)("div",{"data-testid":U.U8P,id:tt.vG,"data-theme":N||"none",className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear relative",k&&"p-4",nV().main,(f||b||g)&&"opacity-60",h&&nV().activePromotionTile),children:(0,R.jsxs)(ro,{timeout:C,onDone:m,children:[(0,R.jsx)(n7,{messages:null!=s?s:[]}),(0,R.jsxs)("div",{className:(0,T.Z)("h-full flex flex-col space-y-4 relative"),children:[(0,R.jsx)(eB.E,{onClick:a,sizes:"100vw sm:50vw md:25vw",className:(0,T.Z)("w-full rounded-t-lg",k?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,G.Jn)(null==r?void 0:r.largeTile),alt:(0,G.EQ)(r)}),(0,R.jsxs)("section",{className:(0,T.Z)("h-full w-full flex flex-col space-y-2",!k&&"px-4 pb-4"),children:[(0,R.jsx)("h3",{className:(0,T.Z)("text-body-m font-bold",nV().title),children:S?u("static-daily-streak-bonus-tile-title"):null==r?void 0:r.title}),(0,R.jsxs)(nG,{children:[(j||D)&&(0,R.jsx)(nS,{children:u("daily-streak-claim")}),h&&(0,R.jsx)(nT,{showIcon:!0}),g&&(0,R.jsx)(nS,{className:"opacity-60 !text-[inherit]",children:u("daily-streak-claim-failed")}),b&&(0,R.jsx)(nS,{className:"opacity-60 !text-[inherit]",children:u("daily-streak-bonus-missed")})]}),(null==r?void 0:r.longDescription)&&(0,R.jsx)(er.D,{className:(0,T.Z)("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",nV().description),"data-testid":U.KxA,children:null==r?void 0:r.longDescription}),(0,R.jsxs)("div",{className:"flex flex-col space-y-2 mt-auto w-full empty:hidden",children:[!!Z.length&&(0,R.jsx)(ie.A,{type:o||"list",className:"max-h-[12rem] lg:max-h-[11.5rem]",items:Z}),(0,R.jsx)(it,{}),p&&f&&(0,R.jsxs)("div",{className:"flex space-y-2 w-full font-bold text-sm uppercase",children:[(0,R.jsx)(iT.Z,{className:"me-2 w-5 h-5"}),u("claimed")]}),w&&!D&&(y&&j?(0,R.jsxs)("div",{className:(0,T.Z)("flex font-bold items-center text-sm uppercase",nV().info),children:[(0,R.jsx)(rr.F,{className:"text-xl me-2"}),(0,R.jsx)("span",{children:u("daily-streak-on-track")})]}):(0,R.jsxs)(nR.l,{onClick:()=>{if(p){var e;let t=(null==d||null===(e=d.inGroup)||void 0===e?void 0:e.orderInGroup)!==void 0?d.inGroup.orderInGroup+1:void 0;(0,es.$B)(es.vJ.DAILY_STREAK,t)}else(0,es.$B)(es.vJ.NOT_LOGGED_IN);a()},disabled:!h,forceChildren:!0,children:[j&&(0,R.jsx)(rr.F,{}),h&&u("claim")]})),O&&(0,R.jsxs)("div",{className:(0,T.Z)("flex font-bold items-center text-sm uppercase",nV().info),children:[(0,R.jsx)(rc.Z,{className:"text-xl me-2"}),(0,R.jsx)("span",{children:u("missed")})]})]})]})]})]})})},[il.RedeemCode]:function(e){let{imageType:t,pkgVariant:l,item:n,marketingMessages:i}=e,{redeemState:r}=l0(),o=(0,L.useContext)(ns.V),{t:s}=(0,ei.$G)(),a="transparent"===t,c=(0,n1.H8)(n);return(0,R.jsxs)("div",{"data-testid":U.U8P,"data-theme":o||"none",className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear relative",a&&"p-4",nV().main),children:[(0,R.jsx)(n7,{messages:null!=i?i:[]}),(0,R.jsxs)("div",{className:(0,T.Z)("h-full flex flex-col space-y-4 relative"),children:[(0,R.jsx)(eB.E,{sizes:"100vw sm:50vw md:25vw",className:(0,T.Z)("w-full rounded-t-lg",a?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,G.Jn)(null==n?void 0:n.largeTile),alt:(0,G.EQ)(n)}),(0,R.jsxs)("section",{className:(0,T.Z)("h-full w-full flex flex-col space-y-2",!a&&"px-4 pb-4"),children:[(0,R.jsx)("h3",{className:"text-body-m font-bold",children:null==n?void 0:n.title}),(null==n?void 0:n.longDescription)&&(0,R.jsx)(er.D,{className:"text-body-s [&>:nth-child(2)]:mt-2","data-testid":U.KxA,children:null==n?void 0:n.longDescription}),(0,R.jsx)("div",{className:(0,T.Z)("w-full flex-col h-auto rounded-lg text-body-s [&::-webkit-scrollbar-track]:!bg-transparent flex empty:hidden",nV().tileGroupContent),children:(0,R.jsx)(ie.A,{type:l||"list",className:"max-h-[10.5rem]",items:c})}),(0,R.jsxs)("div",{className:"flex flex-col space-y-2 mt-auto w-full empty:hidden",children:[(0,R.jsx)(it,{}),r===l2._w.Succeeded&&(0,R.jsxs)("div",{className:"flex space-y-2 w-full font-bold text-sm uppercase",children:[(0,R.jsx)(iT.Z,{className:"me-2 w-5 h-5"}),s("claimed")]})]})]})]})]})},[il.IconHeader]:function(e){var t;let{imageType:l,pkgVariant:n,item:i,additionalData:r,marketingMessages:o}=e,s=(0,eH.M)(),a=(0,nd.M)(r),c=(0,n1.H8)(i),d=(0,L.useContext)(ns.V),u="transparent"===l,m=(null==i?void 0:i.description)||(null==i?void 0:i.longDescription);return(0,R.jsxs)("div",{"data-tile":il.IconHeader,"data-testid":U.U8P,"data-theme":d||"none",className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear relative",u&&"p-4",nV().main),children:[(0,R.jsx)(n7,{messages:o||[]}),(0,R.jsxs)("div",{className:"flex flex-col h-full rounded-lg overflow-hidden",children:[(0,R.jsxs)("div",{className:"w-full grow-0",children:[(0,R.jsx)(eB.E,{onClick:s,sizes:"100vw",className:"absolute rounded-t-lg top-0 w-full",src:(0,G.Jn)(null==i?void 0:i.largeTile),alt:(0,G.EQ)(null==i?void 0:i.largeTile)}),(0,R.jsx)("div",{className:"relative w-full h-full pointer-events-none",children:(0,R.jsxs)("div",{className:(0,T.Z)(nV().header,"flex flex-row w-full h-full px-4 py-6 content-between overflow-hidden gap-x-4"),children:[(0,R.jsxs)("div",{className:"flex flex-col w-full h-full justify-center",children:[(0,R.jsx)("p",{className:(0,T.Z)("text-headline-m font-bold pb-1",nV().title),children:null==i?void 0:i.title}),m&&(0,R.jsx)(er.D,{className:(0,T.Z)(nV().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":U.MXP,children:m}),(0,R.jsxs)(nG,{className:(0,T.Z)("rounded py-0.5 leading-none rtl:left-[unset] rtl:right-1.5"),children:[(0,R.jsx)(n_,{showIcon:!0}),(0,R.jsx)(nT,{showIcon:!0}),(0,R.jsx)(nE,{showIcon:!0}),(0,R.jsx)(nD,{}),(0,R.jsx)(nA,{})]})]}),(null==i?void 0:i.logo)&&(0,R.jsx)("div",{className:"self-center",children:(0,R.jsx)(eB.E,{className:"max-w-[100px] min-h-[60px] aspect-auto",sizes:"100px",src:(0,G.Jn)(null==i?void 0:i.logo),alt:(0,G.EQ)(null==i?void 0:i.logo)})})]})})]}),(0,R.jsxs)("section",{className:(0,T.Z)("w-full flex flex-col gap-y-2 grow pt-4 relative",!u&&"px-4 pb-4",nV().headerSection),children:[(0,R.jsx)(ie.A,{type:n||"grid",items:c,className:"max-h-[12rem] lg:max-h-[11.5rem]",legalText:null==a||null===(t=a.chestLegalText)||void 0===t?void 0:t.locText}),(0,R.jsx)("div",{className:"flex flex-col gap-y-2 mt-auto w-full",children:(0,R.jsx)(nR.l,{children:(0,R.jsx)(nH,{})})})]})]})]})},[il.SelectorOffer]:function(e){var t;let{imageType:l,item:n,additionalData:i,marketingMessages:r}=e,{t:o}=(0,ei.$G)(),s=(0,eH.M)(),a=(0,nd.M)(i),c=(0,L.useContext)(ns.V),d="transparent"===l,u=(0,n1.H8)(n),{0:m,1:p}=(0,L.useState)(!1),v=(0,L.useCallback)(e=>{p(!!e)},[p]);return(0,R.jsxs)("div",{"data-tile":il.GiganticShort,"data-testid":U.U8P,"data-theme":c||"none",className:(0,T.Z)("rounded-lg w-full h-full shadow-xnear relative",d&&"p-4",nV().main),children:[(0,R.jsx)(n7,{messages:r||[]}),(0,R.jsxs)("div",{className:"flex flex-col gap-4 relative h-full",children:[(0,R.jsx)("div",{className:"relative w-full aspect-[3.28/1] grow-0 overflow-hidden",children:(0,R.jsx)(eB.E,{onClick:s,sizes:"100vw sm:50vw md:25vw",className:(0,T.Z)("w-full rounded-t-lg absolute top-0 left-0",d?"object-contain max-h-[255px] w-auto":"object-cover"),src:(0,G.Jn)(null==n?void 0:n.largeTile),alt:(0,G.EQ)(n)})}),(0,R.jsxs)("section",{className:(0,T.Z)("w-full flex flex-col grow",!d&&"px-4 pb-4"),children:[(0,R.jsx)("span",{className:(0,T.Z)("inline-block text-body-m font-bold",nV().title),children:(0,R.jsx)("span",{className:"align-middle",children:null==n?void 0:n.title})}),(0,R.jsxs)(nG,{children:[(0,R.jsx)(nT,{showIcon:!0}),(0,R.jsx)(nD,{})]}),(null==n?void 0:n.longDescription)&&(0,R.jsx)(er.D,{className:(0,T.Z)(nV().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":U.mAl,children:null==n?void 0:n.longDescription}),(0,R.jsx)(ie.A,{item:n,type:"selector",items:u,className:(0,T.Z)("max-h-[12rem] lg:max-h-[11.5rem]"),legalText:null==a||null===(t=a.chestLegalText)||void 0===t?void 0:t.locText,onSelect:v}),(0,R.jsxs)("div",{className:"flex flex-col gap-y-2 w-full mt-2",children:[(0,R.jsx)(it,{}),(0,R.jsx)(nR.l,{disabled:!m,children:m?(0,R.jsx)(nH,{}):o("choose-your-item")})]})]})]})]})}};function ry(e){var t,l,n,i,r,o,s,a,c,d,u,m,p,v,x,h,f,b,g,j,y,w,O,N,k,P,C,Z;let{item:S}=e,D=(0,ez.TA)(),_=(0,e5.J)(),{env:E}=(0,A.H)(),I=E.showTilesWithUnavailableSkus,M=(0,L.useCallback)(()=>{document.getElementsByClassName("xpaystation-widget-lightbox-content-iframe").length>0||_()},[_]),{user:B,zTrackInitialized:R}=(0,eW.aF)(),H=null===(t=S.header)||void 0===t?void 0:t.text,F="list"===S.packageContentsVariant&&"list"||"boxed"===S.packageContentsVariant&&"boxed"||"inline"===S.packageContentsVariant&&"inline"||"grid"===S.packageContentsVariant&&"grid"||"selector"===S.packageContentsVariant&&"selector"||null,V="transparent"===S.tileImageType&&"transparent"||"opaque"===S.tileImageType&&"opaque"||"square"===S.tileImageType&&"square"||"opaque",z=[il.BoxArt,il.List,il.Gigantic,il.GiganticShort,il.Medium],W=iy(S),q=(null===(l=S.marketingMessagesCollection)||void 0===l?void 0:l.items)||[],{preText:J,postText:X,bg:Q}=S,$=(0,L.useMemo)(()=>(0,G.Jn)(Q),[Q]),K=$?"url('".concat($,"')"):"",Y=[],et=S.defaultViewType,ei=null==S?void 0:S.packageContentsVariant,er=null!==(n=S.tileGroupsCollection)&&void 0!==n&&null!==(n=n.items)&&void 0!==n&&n.length?null===(i=S.tileGroupsCollection)||void 0===i?void 0:i.items:null===(r=S.itemsCollection)||void 0===r?void 0:r.items;er=er||[];let eo=(0,L.useMemo)(()=>({tiles:er,staticStreak:et===il.DailyStreakStatic}),[er,et]);(0,L.useEffect)(()=>{R&&nu.fQ&&(et===il.DailyStreak||et===il.DailyStreakStatic)&&0===Y.length&&nu.fQ.count(nu.XP.page_view,{phylum:"streak",attribute:"empty"})},[R]);let{displayAttr:es,displayListView:ed}=(0,nc.Z)({tiles:er});if(!ed)return null;for(let e=0;e<er.length;e+=1){let t=er[e],l=null!==(c=null==t||null===(d=t.sys)||void 0===d?void 0:d.id)&&void 0!==c?c:"",n=null,i=S.defaultViewType||"",r=W.get(l)||W.get("".concat(e))||(null==S||null===(u=S.layoutPalette)||void 0===u||null===(u=u.sys)||void 0===u?void 0:u.id)||"";if((null==t?void 0:t.__typename)==="TileGroup"){let e=new Set(null!==(p=(null!==(m=S.tileGroupsToItems)&&void 0!==m?m:{})[l])&&void 0!==p?p:[]),r=(0,en.E)(null===(v=S.itemsCollection)||void 0===v||null===(v=v.items)||void 0===v?void 0:v.filter(t=>{var l,n,i;return(null==t||null===(l=t.sys)||void 0===l?void 0:l.id)&&e.has(t.sys.id)&&(null==D?void 0:D[null!==(n=null===(i=t.sys)||void 0===i?void 0:i.id)&&void 0!==n?n:""])}));if(t&&r.length||t.calendar){let e=null!==(x=(0,en.E)(null==S||null===(h=S.marketingMessagesCollection)||void 0===h?void 0:h.items))&&void 0!==x?x:[],l={tileGroup:t,tileItems:r,imageType:V,paletteMap:W,pkgVariant:F,calendar:t.calendar,marketingMessages:e,msgLink:null!==(f=null==S?void 0:S.mktMsgToPersonalizedItemLink)&&void 0!==f?f:[]},o=rg[i];n=o?(0,ec.tZ)(o,rh({},l)):null}}if((null==t?void 0:t.__typename)==="Item"){let r=null==D||null===(b=D[(null===(g=t.sys)||void 0===g?void 0:g.id)||""])||void 0===b?void 0:b[0],o=null==r?void 0:r.purchaseState,s=null==r||null===(j=r.promotion)||void 0===j?void 0:j.reason,a=(null==r?void 0:r.purchaseState)===eR.Aw.owned,c=null==r||null===(y=r.offerTagsArray)||void 0===y?void 0:y.some(e=>e===eR.nb.Daily||e===eR.nb.Weekly||e===eR.nb.CustomResetCadence),d=null==r||null===(w=r.offerTags)||void 0===w?void 0:w.includes(eR.nb.HideCooldown),u=!!z.includes(et||"");if(s===tt.Fh.HideWhenAnonymous&&!B||(null==r?void 0:r.purchaseState)!==eR.Aw.purchasable&&(null==r||null===(O=r.inGroup)||void 0===O?void 0:O.groupType)!==eR.YT.dailyStreak&&(!r||a&&s===tt.Fh.Cooldown&&d||a&&!c&&u||o===eR.Aw.unavailable&&!I||o===eR.Aw.hidden))continue;let m=S.mktMsgToPersonalizedItemLink||[],p=(null===(N=t.marketingMessagesCollection)||void 0===N?void 0:N.items)||[],v=(0,en.E)(m.filter(l=>{var n;return l.from==="".concat(e)||l.from===(null===(n=t.sys)||void 0===n?void 0:n.id)}).map(e=>q.find(t=>{var l;return(null==t||null===(l=t.sys)||void 0===l?void 0:l.id)===e.to}))),x=0===p.length?v:p,h={pkgVariant:F,item:t,imageType:V,shouldTileFlip:!!S.shouldTileFlip,additionalData:null==S||null===(k=S.additionalDataCollection)||void 0===k||null===(k=k.items)||void 0===k?void 0:k[0],marketingMessages:(0,en.E)(x)};(et===il.DailyStreak||et===il.DailyStreakStatic)&&(i=e<er.length-1?il.ListDailyStreak:il.GiganticDailyStreak),et===il.Table&&(i=il.Table);let f=rj[i];if(n=f?(0,ec.tZ)(f,rh({},h)):null,i===il.Floating){let e={additionalData:null==S||null===(P=S.additionalDataCollection)||void 0===P||null===(P=P.items)||void 0===P?void 0:P.find(e=>rb(e,l))};n=(0,ec.tZ)(nJ,rh({},e))}n&&(n=(0,ec.tZ)(no.O,{showAgeGate:(null==t||null===(C=t.regionalRating)||void 0===C?void 0:C.showAgeGate)||!1,minimumAge:(null==t||null===(Z=t.regionalRating)||void 0===Z?void 0:Z.minimumAge)||0,children:(0,ec.tZ)(tl.nW,{value:t,children:(0,ec.tZ)(na.A,{children:(0,ec.tZ)(eU.R,{children:n})})})}))}n&&Y.push((0,ec.tZ)(ns.V.Provider,{value:r,children:n},l))}let eu=(et===il.DailyStreak||et===il.DailyStreakStatic)&&"daily-streak-view"||et===il.ProgressionTable&&"table-view"||et===il.Table&&"table-view"||!!S.itemData&&Object.keys(S.itemData).length&&"mixed-view"||et===il.Floating&&"floating-view"||"default-view";return 0===Y.length?null:(0,ec.BX)(ea.P,{"data-theme":null!==(o=null===(s=S.layoutPalette)||void 0===s||null===(s=s.sys)||void 0===s?void 0:s.id)&&void 0!==o?o:"none",slug:(0,el.U)(S.id)||S.slug||(0,el.U)(H),title:S.headerH1&&H?(0,ec.tZ)("h1",{children:H}):H,style:K?{backgroundImage:K}:void 0,css:Q&&tS.mu,children:[es===nc.z.None&&(0,ec.tZ)("div",{className:"mb-6 -mt-4 text-body-s text-text-primary-80 [&_a]:text-link",children:(0,ec.tZ)(ee.H,{document:null==J?void 0:J.json})}),S.streakTracker&&(0,ec.tZ)(iE,{tracker:S.streakTracker}),(0,ec.BX)(nO.Provider,{value:M,children:[es!==nc.z.None&&(0,ec.tZ)(iI,{preText:J,firstTileId:null===(a=er)||void 0===a||null===(a=a[0])||void 0===a||null===(a=a.sys)||void 0===a?void 0:a.id,displayAttr:es}),"floating-view"===eu&&(0,ec.tZ)("div",{className:"fixed bottom-3 left-2 rtl:left-[unset] rtl:right-2",children:(0,ec.tZ)("div",{className:"flex flex-row gap-x-1",children:Y})}),"table-view"===eu&&(0,ec.tZ)(iP,{item:S,displayAttr:es,children:Y}),"daily-streak-view"===eu&&(0,ec.tZ)(nm.B.Provider,{value:eo,children:(0,ec.tZ)(nK,{item:S,children:Y})}),"mixed-view"===eu&&(0,ec.tZ)(iN,{item:S,packageContentsVariant:ei,children:Y}),"default-view"===eu&&(0,ec.tZ)("div",{"data-testid":U.AqI,className:(0,T.Z)("grid gap-4 h-full",et===il.BoxArt?"grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 3xl:grid-cols-6":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4"),children:Y})]}),X&&(0,ec.tZ)("div",{className:"mt-6 text-body-s",children:(0,ec.tZ)(ee.H,{document:null==X?void 0:X.json})})]})}function rw(e){var t,l,n;let{item:i}=e,{t:r}=(0,ei.$G)(),{0:o,1:s}=(0,L.useState)(!1),{user:a}=(0,eW.aF)(),c=(null==a?void 0:a.userId)||(0,eq.Do)(eq.M2.userid),{getValidAccessToken:d}=(0,eW.aC)(),{code:u,listViewItem:m,skuId:p,setRedeemState:v}=l0(),x=(0,L.useCallback)(async()=>{var e;let t="";(0,l9.s1)(l9.H7.CLICK_ON_CONFIRM),a&&(t=await d()),null!==(e=await(0,l2.AC)(t,c||"",p,u))&&void 0!==e&&e.ok?v(l2._w.Succeeded):v(l2._w.Failed)},[u,d,p,a,c,v]);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(ea.P,{children:(0,R.jsx)(J.H,{className:"type-headline-l 3xl:type-headline-xl pb-2 w-full",children:null===(t=i.confirmTitle)||void 0===t?void 0:t.text})}),(0,R.jsxs)("div",{className:"mt-3 flex-col space-y-7",children:[m.promotionUIs.map(e=>(0,R.jsx)(ry,{item:e},e.sys.id)),(0,R.jsxs)(ea.P,{children:[(0,R.jsxs)("div",{className:"flex items-center cursor-pointer",children:[(0,R.jsx)(ni.fC,{id:"legal",className:"shrink-0 me-2 h-6 w-6 appearance-none flex items-center justify-center rounded border-current border-2 outline-none",checked:o,onCheckedChange:()=>s(!o),children:(0,R.jsx)(ni.z$,{children:(0,R.jsx)(nr.Z,{className:"text-current text-3xl"})})}),(0,R.jsx)("label",{className:"select-none cursor-pointer text-sm",htmlFor:"legal",children:(0,R.jsx)(er.D,{children:null===(l=m.legalText)||void 0===l?void 0:l.text})})]}),(0,R.jsx)("button",{onClick:x,type:"button",disabled:!o,className:"btn bg-primary text-button-text text-button-m mt-5 w-full lg:w-fit",children:c?null===(n=i.confirmButtonText)||void 0===n?void 0:n.text:r("connect-id")})]})]})]})}function rO(e){var t,l;let{item:n}=e,{t:i}=(0,ei.$G)(),{setCode:r,listViewItem:o,setListViewItem:s,setSkuId:a,setRedeemState:c}=l0(),d=(0,A.H)(),u=async()=>{(0,l9.s1)(l9.H7.CLICK_ON_BACK_TO_STORE),await te().push({pathname:d.storeRoot}),r(""),c(null),s({legalText:{},promotionUIs:[]}),a("")};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(ea.P,{children:[(0,R.jsx)(J.H,{className:"type-headline-l 3xl:type-headline-xl pb-2 w-full",children:i("offer-success")}),(0,R.jsx)("div",{children:null===(t=n.successDescription)||void 0===t?void 0:t.text})]}),(0,R.jsxs)("div",{className:"mt-3 flex-col space-y-7",children:[o.promotionUIs.map(e=>(0,R.jsx)(ry,{item:e},e.sys.id)),(0,R.jsx)(ea.P,{children:(0,R.jsx)("button",{onClick:u,type:"button",className:"btn bg-primary text-button-text text-button-m mt-5 w-full lg:w-fit",children:null===(l=n.successButtonText)||void 0===l?void 0:l.text})})]})]})}function rN(e){let{item:t}=e,{redeemState:l}=l0();return(0,R.jsx)("main",{children:(0,R.jsx)("div",{className:"mx-auto mt-5",children:(0,R.jsxs)(eU.R,{children:[l===l2._w.Eligible&&(0,R.jsx)(rw,{item:t}),l===l2._w.Succeeded&&(0,R.jsx)(rO,{item:t}),l===l2._w.Failed&&(0,R.jsx)(l1,{item:t}),(l===l2._w.Redeemed||l===l2._w.Invalid||!l)&&(0,R.jsx)(nn,{item:t})]})})})}var rk=l(39460),rP=l(95922),rC=l(11945),rZ=l(84430);function rS(){return(0,R.jsx)("div",{className:(0,T.Z)("w-5 h-5 border-2 rounded"),"aria-hidden":"true",children:(0,R.jsx)("svg",{className:(0,T.Z)("w-4 h-4"),viewBox:"0 0 18 18",children:(0,R.jsx)("polyline",{stroke:"white",strokeWidth:"2",points:"1 9 7 14 15 4"})})})}function rD(){return(0,R.jsx)("div",{className:(0,T.Z)("w-5 h-5 border-2 rounded"),"aria-hidden":"true"})}function r_(e){let{label:t,description:l,items:n,required:i,onClick:r}=e,{0:o,1:s}=(0,L.useState)([]);return(0,R.jsxs)(rk.cO,{className:(0,T.Z)("flex flex-col gap-[0.571rem] text-slate-600 "),isRequired:!!i,value:o,onChange:e=>{s(e),r&&r(null!=t?t:"",e)},children:[(0,R.jsx)(rP._,{children:t}),(0,R.jsx)(rC.x,{slot:"description",children:l}),null==n?void 0:n.map(e=>(0,R.jsx)(rk.XZ,{className:(0,T.Z)("flex"),value:e,children:t=>{let{isSelected:l}=t;return(0,R.jsxs)(R.Fragment,{children:[l?(0,R.jsx)(rS,{}):(0,R.jsx)(rD,{}),e]})}})),(0,R.jsx)(rZ.c,{})]})}function rE(e){var t;let{title:l,description:n,fieldType:i,valuesCollection:r,required:o,onClick:s}=e,a=null==r||null===(t=r.items)||void 0===t?void 0:t.map(e=>e&&e.text||"");return(0,R.jsx)(R.Fragment,{children:"checkbox"===i&&(0,R.jsx)(r_,{label:l,description:n,items:a,required:o,onClick:s})})}var rI=l(3640),rT=l.n(rI);function rL(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function rA(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?rL(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):rL(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}var rG=l(23155),rM=l(73348),rB=l(75967),rR=l(40539);let rH=(0,V.iv)(P||(P=(0,F.Z)(["\n  ","\n\n  picture {\n    padding-bottom: ","%;\n\n    img {\n      ","\n    }\n  }\n"])),{height:"100%",backgroundColor:"rgba(var(--color-neutral-100-rgb), 0.7)"},87.5,{objectFit:"fill"});function rF(e){let{item:t}=e,l=(0,G.Jn)(null==t?void 0:t.primaryArt);return(0,ec.BX)(rR.n,{backgroundUrl:l,css:rH,children:[(0,ec.tZ)(J.H,{className:"mb-1",children:null==t?void 0:t.title}),(0,ec.tZ)("section",{className:"type-body-s",children:(0,ec.tZ)("span",{children:null==t?void 0:t.description})})]})}let rV=(0,tc.c)(),rU={marginTop:"1rem",fontWeight:"normal",color:"rgba(var(--text-color-primary-rgb), 0.8)",fontSize:".688rem",lineHeight:"150%",textTransform:"none",letterSpacing:"0.05rem"};var rz=l(81953),rW=l(31539);let rq=((i={}).Active="Active",i.Canceled="Canceled",i.Deactivated="Deactivated",i.Expired="Expired",i.Grace="Grace",i.NonMember="NonMember",i.PendingCancellation="PendingCancellation",i.Suspended="Suspended",i),rJ={active:rq.Active,"cancel-requested":rq.PendingCancellation,deactivated:rq.Deactivated,canceled:rq.Canceled,suspended:rq.Suspended,grace:rq.Grace,unpaid:rq.Expired,"non-member":rq.NonMember};var rX=l(33471),rQ=l(12453),r$=l(22277),rK=l.n(r$),rY=l(18109);l(73656);let r0=(0,es.dU)("T2GP_PUBLIC_RUNTIME_CLIENT_PRODUCT_API_BASEURL"),r1=(0,es.dU)("T2GP_PUBLIC_RUNTIME_AUTH_ENV"),r2=(0,es.dU)("T2GP_PUBLIC_RUNTIME_AUTH_PROVIDER");async function r5(e,t,l){try{let n=await fetch("".concat(r0,"/subscriptions/").concat(t,"/").concat(l,"?debug=1"),{method:"DELETE",headers:{"Content-Type":"application/json","X-Game-Platform":r2,"X-Rockstar-Env":r1,"X-Rockstar-Access-Token":e}});if(!n.ok)throw new es.oo(n.statusText,n.status);return n}catch(e){(0,es.OO)(e)}}async function r4(e,t,l){try{let n=await fetch("".concat(r0,"/subscriptions/").concat(t,"/").concat(l,"?debug=1"),{method:"PATCH",headers:{"Content-Type":"application/json","X-Game-Platform":r2,"X-Rockstar-Env":r1,"X-Rockstar-Access-Token":e},body:JSON.stringify({cancelAtPeriodEnd:!1})});if(!n.ok)throw new es.oo(n.statusText,n.status);return n}catch(e){(0,es.OO)(e)}}function r3(e){let{btn:t,btnClass:l,onClick:n}=e;return t?(0,R.jsxs)("button",{type:"button",className:l,onClick:()=>n(t),children:[t.text,t.showExternalLinkIcon&&(0,R.jsxs)(R.Fragment,{children:["\xa0",(0,R.jsx)(lv.Z,{className:"ml-2"})]})]}):null}function r9(e){let{status:t,subscription:l,cancelButton:n,csButton:i,historyButton:r,resumeButton:o,updateButton:s,setUserStatus:a}=e,{0:c,1:d}=(0,L.useState)(!1),{0:u,1:m}=(0,L.useState)(!1),{t:p}=(0,ei.$G)(),v=(0,e7.useRouter)(),{track:x}=(0,lx.z)(),h=t===rq.Canceled||t===rq.PendingCancellation||t===rq.Expired||t===rq.NonMember,f=h||t===rq.Deactivated,b="btn text-body-m font-bold mt-4 py-3 px-6 after:hover:opacity-10 after:hover:bg-white after:absolute after:size-full after:rounded",g=(0,T.Z)(b,"text-button-text bg-primary"),j=(0,L.useCallback)((e,l)=>{x("click",{event:"".concat(e,"_button"),clickTarget:l,metadata:{status:t}})},[t,x]),y=(0,L.useCallback)(e=>{var t;if(!e)return;let l=null!==(t=null==e?void 0:e.target)&&void 0!==t?t:"";j("subscription",l),null!=e&&e.openInNewTab?window.open(l,"_blank"):v.push(l)},[j,v]),w=async e=>{if(l&&e)try{let t=(0,eq.Do)(eq.M2.token);switch(m(!0),e){case"cancel":j(e),await r5(t,l.userId,l.subscriptionId),a(rq.PendingCancellation);break;case"resume":j(e),await r4(t,l.userId,l.subscriptionId),a(rq.Active);break;case"update":j(e,"/update-payment"),v.push({pathname:"/update-payment",query:{stripe:"true",payments_test:"true"}});return}}catch(e){}d(!1),m(!1)},O=(0,L.useCallback)(()=>{t===rq.PendingCancellation?w("resume"):t!==rq.Deactivated&&w("update")},[t]);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(n5.V,{open:c,onOpenChange:()=>d(!1),children:(0,R.jsx)(n5.c,{children:(0,R.jsxs)("div",{className:(0,T.Z)("flex flex-col rounded-lg border-base-content-800 h-[28rem] p-12 justify-between",rK().dialog),children:[u&&(0,R.jsx)(rY.T,{}),(0,R.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,R.jsx)("p",{className:"text-headline-m",children:p("Cancel your subscription?")}),(0,R.jsx)("p",{className:(0,T.Z)("text-body-s",rK().subheading),children:"Are you sure you want to cancel your subscription? You'll lose access to:"})]}),(0,R.jsx)("div",{className:"",children:(0,R.jsx)("span",{children:"Some Content"})}),(0,R.jsxs)("div",{className:"flex flex-row gap-4 justify-end",children:[(0,R.jsx)("button",{type:"button",onClick:()=>w("cancel"),className:"btn border-white text-body-m font-bold text-white",children:null==n?void 0:n.text}),(0,R.jsx)("button",{type:"button",onClick:()=>d(!1),className:"btn text-button-text bg-primary text-body-m font-bold",children:"Keep my Subscription"})]})]})})}),u&&(0,R.jsx)(rY.T,{}),(0,R.jsxs)("div",{className:"flex justify-end gap-2 sm:gap-4 mt-2 flex-col-reverse sm:flex-row",children:[!f&&(0,R.jsx)("button",{type:"button",className:(0,T.Z)("btn xxs:mt-4 px-2 hover:filter hover:brightness-105",rK().secondaryButton),onClick:()=>d(!0),children:null==n?void 0:n.text}),t!==rq.NonMember&&r&&(0,R.jsx)(r3,{btn:r,btnClass:(0,T.Z)(b,"border-white text-white bg-black"),onClick:y}),t===rq.Deactivated&&i&&(0,R.jsx)(r3,{btn:i,btnClass:g,onClick:y}),t===rq.Canceled&&o&&(0,R.jsx)(r3,{btn:o,btnClass:g,onClick:y}),h&&t!==rq.NonMember&&t!==rq.Canceled&&o&&(0,R.jsx)("button",{type:"button",className:g,onClick:O,children:o.text}),!h&&t!==rq.Deactivated&&s&&(0,R.jsx)("button",{type:"button",className:g,onClick:O,children:s.text})]})]})}function r8(e){let{header:t,data:{value:l,taxAmount:n,taxRate:i,taxType:r,subtotal:o,discount:s},isLast:a=!1,formatPrice:c}=e,{t:d}=(0,ei.$G)(),u="vat"===r,m=u?"VAT (".concat(i,")"):"".concat(d("payments-exclusive-tax")," (").concat(i,")"),p=[{label:d("cart-subtotal"),amount:o},{label:m,amount:n},{label:d("promotional-discount"),amount:s}].filter(e=>e.amount),v=u&&!!o||!u&&0!==p.length;return(0,R.jsxs)("div",{className:(0,T.Z)("flex flex-col justify-start h-full p-8",{"border-b md:border-r":!a,[rK().border]:!a}),children:[(0,R.jsx)("div",{className:(0,T.Z)("mb-4 text-body-m",rK().subheading),children:d(t)}),(0,R.jsx)("div",{className:"mb-4 text-headline-xl font-bold text-white capitalize",children:d(l)}),"vat"===r&&(0,R.jsx)("div",{className:"text-body-m",children:d("includes-vat",{taxRate:i})}),v&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("hr",{className:"mt-4 mb-4 opacity-20"}),p.map((e,t)=>{var l;return(0,R.jsxs)("div",{className:(0,T.Z)("flex flex-row justify-between text-body-m",{"mb-2":t!==p.length-1}),children:[(0,R.jsx)("div",{children:e.label}),(0,R.jsx)("div",{children:c(null!==(l=e.amount)&&void 0!==l?l:0)})]},e.label)})]})]})}function r6(e){let{statusString:t,isDunning:l}=e,{t:n}=(0,ei.$G)();return(0,R.jsxs)("div",{className:(0,T.Z)("border-b  p-2 flex flex-col xxs:flex-row justify-between items-start xxs:items-center rounded-t-lg",rK().border,rK().tableHeader),children:[(0,R.jsx)("p",{className:"text-headline-m text-white my-4 mx-6",children:n("subscription-details")}),(0,R.jsxs)("div",{className:"flex items-center mb-4 mx-6 text-body-s text-right xxs:mb-0",children:[(0,R.jsxs)("span",{children:[n("member-status"),":\xa0",(0,R.jsx)("span",{className:"font-bold",children:t})]}),l&&(0,R.jsx)("span",{className:(0,T.Z)("inline-flex justify-center items-center h-6 w-6 min-w-6 ml-4 pb-0.5 rounded-full text-white",rK().dunningIcon),children:(0,R.jsx)(rc.Z,{})})]})]})}function r7(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}let oe={Active:"active",Canceled:"canceled",Deactivated:"deactivated",Expired:"inactive",Grace:"payment-pending-active",PendingCancellation:"canceled",NonMember:"inactive",Suspended:"payment-pending-suspended"};var ot=l(75072),ol=l(55947),on=l(70989),oi=l(90306),or=l(37672),oo=l(85892),os=l(48900),oa=l(98378);let oc=["item","idx","imagePerRow","onItemClick","visibleItems"];function od(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function ou(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?od(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):od(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let om=(0,V.iv)(C||(C=(0,F.Z)(["\n  ","\n  padding-bottom: ","%;\n\n  img {\n    ","\n  }\n\n  /* TODO: check with design on color-neutral and find a color for play icon which best suits here..\n  * for now we are overriding to be black for both light and dark themes.\n  */\n  div {\n    background-color: rgba(var(--color-black-rgb), 0.5);\n  }\n"])),{position:"static",height:"0px"},9/16*100,{position:"absolute",inset:"0px"});function op(e){let{item:t,idx:l,imagePerRow:n,onItemClick:i,visibleItems:r}=e,o=(0,E.Z)(e,oc),{0:s,1:a}=(0,L.useState)(l<r),{ref:c,inView:d}=(0,oa.YD)({fallbackInView:!1,initialInView:s,skip:s});return(0,L.useEffect)(()=>{d&&a(!0)},[d]),(0,ec.tZ)("div",ou(ou({css:(0,oo.l)()},o),{},{children:(0,ec.tZ)("button",{ref:c,className:"bg-neutral-100 relative w-full h-full overflow-hidden rounded-lg",type:"button",onClick:i,"data-index":l,children:(0,ec.tZ)(os.b,{css:om,media:t,isLowRes:!s&&!d,imagePerRow:n})})}))}var ov=l(21661);function ox(e){var t,l,n,i;let{media:r,center:o}=e;return(0,R.jsxs)("div",{className:(0,T.Z)("xl:w-3/4 [&>div>figure]:px-0",{"mx-auto":o}),children:[(null==r?void 0:r.__typename)==="ExternalVideo"&&(0,R.jsx)(ov.q,{entry:r}),(null==r?void 0:r.__typename)==="Screenshot"&&(0,R.jsx)(eB.E,{alt:null!==(t=null==r||null===(l=r.asset)||void 0===l?void 0:l.title)&&void 0!==t?t:"",src:null!==(n=null==r||null===(i=r.asset)||void 0===i?void 0:i.url)&&void 0!==n?n:""})]})}function oh(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function of(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?oh(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):oh(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}var ob=((r=ob||{}).carousel="CAROUSEL",r.mosaic="MOSAIC",r.standard="STANDARD",r.single="SINGLE",r);let og=(0,V.iv)(Z||(Z=(0,F.Z)(["\n  > div > section > div:first-of-type {\n    @media (max-width: ","px) {\n      width: calc(75% + 4rem + (32px));\n    }\n  }\n"])),z.Tt-1);var oj=l(53084),oy=l(7114),ow=l.n(oy),oO=l(75910),oN=l(90183),ok=l(1481),oP=l(36790),oC=l(63961),oZ=l(35346),oS=l(86351);let oD=["className","isOpen","isErrored","isLoading","close","labelClose","article","message","buttonLabel","retry","locale"];function o_(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function oE(e){var t;let{className:l,isOpen:n,isErrored:i,isLoading:r,close:o,labelClose:s,article:a,message:c,buttonLabel:d,retry:u,locale:m}=e,p=(0,E.Z)(e,oD),v=(0,ld.sZ)(a,m);return(0,R.jsx)(lD.e,{className:l,isOpen:r||n,requestClose:o,labelClose:s,children:(0,R.jsxs)("section",{className:"overflow-y-scroll overflow-x-hidden h-full py-12",children:[(i||r)&&(0,R.jsx)("div",{className:"h-full w-full flex items-center justify-center flex-col",children:(0,R.jsx)("div",{className:"fill-current mb-1",children:(0,R.jsx)(oC.d,{fetching:r,error:i,errorMessage:c,errorActionLabel:d,errorAction:u})})}),!i&&!r&&(0,R.jsx)(oZ.d,function(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?o_(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):o_(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}({article:v,info:(0,R.jsx)(oS.r,{className:"mt-8",tags:null==v?void 0:v.tags}),AgeGate:lm.m},p),(null==a||null===(t=a.sys)||void 0===t?void 0:t.id)||"")]})})}var oI=l(39301),oT=l(74985),oL=l(42914);let oA=["title","date","isVideoPreview","backgroundUrl","onItemClick","item","tileStyle"];function oG(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function oM(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?oG(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):oG(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function oB(e){let{title:t,date:l,isVideoPreview:n,backgroundUrl:i,onItemClick:r,item:o,tileStyle:s}=e,a=(0,E.Z)(e,oA),c=(0,eo.b)(),d=(0,ld.sZ)(o,c),u=(0,L.useMemo)(()=>"/".concat((0,ok.$d)(o.slug||"","news")).concat(null==o?void 0:o.slug),[o.slug]);return(0,R.jsxs)("div",{children:[(0,R.jsx)("a",oM(oM({href:u,className:"!appearance-none block cursor-pointer text-left [&>div]:h-min [&>div]:min-h-min",type:"button",onClick:r,"data-article":null==o?void 0:o.slug},a),{},{"data-testid":"".concat(U.Ysc,"-").concat((0,G.km)(o)),children:(0,R.jsx)(oT.l,{maxImageWidth:tt.vw,title:t,date:l,isVideoPreview:n,backgroundUrl:i,tileStyle:s})})),(0,R.jsx)(oL.r,{className:"mb-4 [&>a]:max-w-[20rem] xs:[&>a]:max-w-[12rem] [&>a]:overflow-hidden [&>a]:text-ellipsis",tags:null==d?void 0:d.tags,limit:2})]})}function oR(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function oH(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?oR(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):oR(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let oF={display:"flex",alignItems:"center"},oV=(0,V.iv)(S||(S=(0,F.Z)(["\n  /* Need to override the button color to match the theme */\n  button {\n    --color-button-text: var(--color-button-text-override, var(--color-white));\n  }\n"])));var oU=l(90861),oz=l(653),oW=l(47635),oq=l(66623),oJ=l(88208),oX=l(286),oQ=l(22415),o$=l(23032),oK=l.n(o$);function oY(e){var t,l;let{item:n,iPad:i,onClose:r}=e;return(0,R.jsx)("div",{"data-theme":null!==(t=null==n||null===(l=n.palette)||void 0===l||null===(l=l.sys)||void 0===l?void 0:l.id)&&void 0!==t?t:"none",children:(0,R.jsxs)("div",{className:(0,T.Z)("flex m-4 p-4 rounded !fixed",oK().popup,i?oK().popupTop:oK().popupBottom),children:[(0,R.jsx)("button",{type:"button",className:"absolute right-3 top-2 text-sm",onClick:r,children:"✕"}),(0,R.jsx)("div",{className:"h-14 mr-4 place-self-center aspect-square",children:(0,R.jsx)(oQ.c,{image:null==n?void 0:n.popupImage})}),(0,R.jsx)(er.D,{className:"[&_img]:inline [&_img]:px-1",children:(null==n?void 0:n.popupText)||""})]})})}var o0=l(67589);let o1="push_notification",o2=e=>{let t={};t.counter=nu.Wn.zyngaWebPush,null===nu.fQ||void 0===nu.fQ||nu.fQ.count(e,t)};function o5(e){var t,l,n;let{item:i}=e,{0:r,1:o}=(0,L.useState)(!1),{0:s,1:a}=(0,L.useState)(!1),{0:c,1:d}=(0,L.useState)(!1);(0,L.useEffect)(()=>{o((0,oJ.H)()&&eV().mac||eV().ipad)},[]);let u=(0,o0.jZ)(),{setContent:m,setIsOpen:p}=(0,L.useContext)(oq.t),{enableNotificationTitle:v,rewardClaimTitle:x,rewardClaimBody:h,addToHomeScreenButton:f,popupImage:b,repromptTimeout:g}=i;(0,L.useEffect)(()=>{let{ios:e,android:t,mobile:l}=eV();a((l&&(e||t&&u.prompt)||r)&&!(0,lu.Ee)()&&!(0,lu.go)("add-to-home-prompt-dismissed"))},[u,r]);let j=(0,L.useCallback)(()=>{(0,l9.l)(o1,o1,"dismiss_main_banner"),o2(nu.XP.push_notification_dismiss_add_to_home_banner),(0,lu.CC)("add-to-home-prompt-dismissed",g),a(!1)},[g]),{t:y}=(0,ei.$G)(),w=(0,L.useCallback)(()=>{(0,l9.l)(o1,o1,"click_add_to_home"),o2(nu.XP.push_notification_add_to_home);let{ios:e,android:t,safari:l}=eV();if(e||r){if(l)d(!0),(0,lu.CC)("add-to-home-prompt-dismissed",g);else{var n,o;let e=(0,R.jsx)(rX.P,{hideHeader:!0,children:(0,R.jsxs)("div",{"data-theme":null!==(n=null==i||null===(o=i.palette)||void 0===o||null===(o=o.sys)||void 0===o?void 0:o.id)&&void 0!==n?n:"none",className:(0,T.Z)("p-4 rounded-lg relative",oK().modal),children:[(0,R.jsx)("div",{className:"grow mb-5",children:(0,R.jsx)("div",{className:"flex mb-5 lg:mb-0",children:(0,R.jsx)("div",{className:"text-xl font-bold place-self-center mr-3",children:null!=x?x:""})})}),(0,R.jsxs)("div",{className:"mb-5",children:[" ",null!=h?h:""]}),f&&(0,R.jsx)("div",{className:"place-self-center lg:mr-5",children:(0,R.jsx)("button",{type:"button",className:(0,T.Z)("btn text-button-m w-full",oK().button),onClick:()=>{null==p||p(!1)},children:y("Close")})})]})});null==m||m(e),null==p||p(!0)}}t&&u&&u.prompt&&u.prompt().then(e=>{"accepted"===e.outcome?((0,lu.CC)("add-to-home-prompt-dismissed",-1),a(!1)):j()})},[r,null==i||null===(t=i.palette)||void 0===t||null===(t=t.sys)||void 0===t?void 0:t.id,x,h,f,y,m,p,u,j,g]);return s?(0,R.jsxs)("div",{children:[(0,R.jsx)(rX.P,{hideHeader:!0,slug:(0,el.U)(i.id),children:(0,R.jsxs)("div",{"data-theme":null!==(l=null==i||null===(n=i.palette)||void 0===n||null===(n=n.sys)||void 0===n?void 0:n.id)&&void 0!==l?l:"none",className:(0,T.Z)("p-4 rounded-lg sm:flex relative",oK().main),children:[(0,R.jsxs)("div",{className:"grow mb-5",children:[(0,R.jsx)("button",{type:"button",className:"absolute top-2 right-3 cursor",onClick:j,children:"✕"}),(0,R.jsxs)("div",{className:"flex mb-5 lg:mb-0",children:[(0,R.jsx)("div",{className:"h-14 w-14 aspect-square mr-4 [&_img]place-self-center place-self-center",children:(0,R.jsx)(oQ.c,{image:b})}),(0,R.jsx)("div",{className:"text-xl font-bold place-self-center mr-3",children:v})]})]}),f&&(0,R.jsx)("div",{className:"place-self-center lg:mr-5",children:(0,R.jsx)("button",{type:"button",className:(0,T.Z)("btn text-button-m w-full",oK().button),onClick:w,children:f})})]})}),c&&(0,R.jsx)(oY,{item:i,iPad:r,onClose:()=>{d(!1),(0,l9.l)(o1,o1,"dismiss_add_to_home_popup"),o2(nu.XP.push_notification_dismiss_add_to_home_popup)}})]}):null}function o4(e){let{item:t}=e;return(0,R.jsx)(o5,{item:t})}var o3=l(27614);function o9(e){var t,l,n;let{item:i,onClose:r,onRedeemed:o,onError:s}=e,{t:a}=(0,ei.$G)(),{user:c}=(0,eW.aF)(),{getValidAccessToken:d}=(0,eW.aC)(),{0:u,1:m}=(0,L.useState)(""),{0:p,1:v}=(0,L.useState)(""),{setIsOpen:x}=(0,L.useContext)(oq.t),{0:h,1:f}=(0,L.useState)(!1),{isError:b,isFetching:g,error:j}=(0,oO.useQuery)(["item",i],async()=>{var e,t,l,n;let r=(null===(e=i.reward)||void 0===e||null===(e=e.sys)||void 0===e?void 0:e.id)||"",u=await d(),p=await(0,l2.s)(u,r),x=await(0,l2.AC)(u,(null==c?void 0:c.userId)||"",p);if(x.ok)m(i.rewardPopupClaimedTitle||a("claim-offer-title-success")),v((i.rewardPopupClaimedBody||"").replace("{{player_id}}",(null==c?void 0:c.displayName)||"").replace("{{account_id}}",(null==c?void 0:c.gamePlayerId)||(null==c?void 0:c.userId)||"")),o(),(0,l9.l)("push_notification","push_notification","reward_claim_succeeded",(null===(n=i.reward)||void 0===n?void 0:n.internalName)||""),f(!0);else if(403===x.status)m(a("offer-claimed")),v(a("offer-claimed-desc")),(0,l9.l)("push_notification","push_notification","reward_already_claimed",(null===(t=i.reward)||void 0===t?void 0:t.internalName)||"");else{let e="Failed to claim offer ".concat(p,": ").concat(x.status,": ").concat(await x.text());s?s(Error(e)):(m(a("offer-error")),v(a("offer-error-desc"))),(0,l9.l)("push_notification","push_notification","reward_claim_failed",(null===(l=i.reward)||void 0===l?void 0:l.internalName)||"")}},{enabled:!0,retry:!1,refetchOnWindowFocus:!1});return(0,R.jsx)("section",{"data-theme":null!==(t=null==i||null===(l=i.palette)||void 0===l||null===(l=l.sys)||void 0===l?void 0:l.id)&&void 0!==t?t:"none",className:(0,T.Z)("modal",oK().modal),children:(0,R.jsxs)("div",{className:"h-full w-full flex items-center justify-center flex-col",children:[(g||b)&&(0,R.jsx)("div",{className:"fill-current px-20",children:(0,R.jsx)(oC.d,{fetching:g,error:b,errorHeader:a("offer-error"),errorIcon:(0,R.jsx)(o3.F,{}),errorActionLabel:a("confirm"),errorAction:()=>{null==x||x(!1),null==s||s(j)},errorMessage:a("offer-error-desc")})}),!g&&!b&&(0,R.jsxs)("div",{className:"px-10 py-12 text-center",children:[(0,R.jsx)("h2",{className:"text-2xl my-5",children:u}),(0,R.jsx)(er.D,{className:"my-3",children:p}),(0,R.jsx)("div",{className:"w-32 aspect-square mx-auto my-6",children:(0,R.jsx)(oQ.c,{image:null===(n=i.reward)||void 0===n?void 0:n.boxart})}),(0,R.jsx)("button",{type:"button",className:(0,T.Z)("btn text-button-m w-full my-5",oK().button),onClick:()=>{null==x||x(!1),null==r||r(),h&&o6(nu.XP.push_notification_return_after_claim)},children:i.returnToGameButton||a("confirm")})]})]})})}let o8={content:{width:"42rem",height:"max-content",position:"relative"},overlay:{display:"flex",justifyContent:"center",alignItems:"center"}},o6=e=>{let t={};t.counter=nu.Wn.zyngaWebPush,null===nu.fQ||void 0===nu.fQ||nu.fQ.count(e,t)};function o7(e){let{children:t}=e;return t?(0,R.jsx)(er.D,{className:"[&_a]:type-link hover:[&_a]:type-link-hover",children:t}):null}function se(e){return e?(0,R.jsx)("div",{className:"mr-3",children:(0,R.jsx)(oU.B,{})}):(0,R.jsx)("div",{className:"mr-3",children:(0,R.jsx)(oz.X,{})})}function st(e){var t,l,n,i,r,o,s;let{item:a}=e,c=(0,eW.Ng)(),{user:d}=(0,eW.aF)(),{0:u,1:m}=(0,L.useState)("none"),{setContent:p,setIsOpen:v}=(0,L.useContext)(oq.t),{0:x,1:h}=(0,L.useState)(!1),f=(0,eH.M)(),{0:b,1:g}=(0,L.useState)(!0),j=((0,A.H)().applicationId||"").toLowerCase(),y=(0,e7.useRouter)(),{1:w}=(0,L.useState)(!1),{bpId:O,bpKey:N}=y.query,{0:k,1:P}=(0,L.useState)(!1),{0:C,1:Z}=(0,L.useState)(!1),{0:S,1:D}=(0,L.useState)(!1),_=(0,L.useCallback)(async(e,t)=>{let l="".concat(window.location.origin,"/bounce-poll/app/").concat(j,"/").concat(e,"?bpTime=").concat(t),n=await fetch(l);if(200===n.status){let{token:t}=await n.json(),l=await(0,oX.jQ)(),i=await(0,oX.jl)(t,l),r=JSON.stringify({bpId:e,bpTime:Date.now()});localStorage.setItem("bpContext",r),t&&(document.cookie=(0,eq.ln)(eq.M2.token,"".concat(i)),w(!0))}},[j]),E=(0,L.useCallback)(async()=>{if(null!=d&&d.userId){var e;let t=null==d?void 0:d.authToken,l=await(0,l2.s)(t,(null===(e=a.reward)||void 0===e||null===(e=e.sys)||void 0===e?void 0:e.id)||""),n=await(0,l2.zk)(t,d.userId,l);if(n.ok&&200===n.status){let e=await n.json();if(e.eligible&&!e.redeemed)return!0}return!1}},[null===(t=a.reward)||void 0===t||null===(t=t.sys)||void 0===t?void 0:t.id,d]),I=(0,L.useCallback)(e=>{var t;(0,l9.l)("push_notification","push_notification",e,(null===(t=a.reward)||void 0===t?void 0:t.internalName)||"")},[a]),G=(0,L.useCallback)(async()=>{let{ios:e,safari:t,android:l,chrome:n,mobile:i}=eV();if(!d||!(e&&t||k&&!i&&t||l&&i&&n)||(0,lu.go)("notification-prompt-dismissed")){m("none");return}if(!i&&!k){m("desktop-browser");return}let r=(0,lu.Ee)();if(((e||k)&&r||l&&n)&&!c){m("none");return}let o=await E(),s=void 0!==o,a=(0,lu.go)("notification-reward-claimed"),[u,p]=await Promise.all([null==c?void 0:c.canPropmt(),null==c?void 0:c.isSubscribed()]);if(null!=d&&d.userId&&j&&p&&(null==c||c.aliasSubscription(j,d.userId)),e||k){if(r&&p){var v;v={notificationSubscribed:!0},localStorage.setItem("meta",JSON.stringify(v))}let e=p;r||!0!==function(){try{return JSON.parse(localStorage.getItem("meta")||"{}")}catch(e){return{}}}().notificationSubscribed||(e=!0),r||e?r&&u&&!e?m("ios-enable-notification"):!r||u||e?o&&s?m("redeem-reward"):!o&&s&&a?m("redeemed-reward"):m("none"):m("notification-blocked"):(m("ios-install-pwa"),d&&I("notification_banner_impression"))}else l&&(u&&!p?(m("enable-notification"),d&&I("notification_banner_impression")):u||p?o&&s?m("redeem-reward"):!o&&s&&a?m("redeemed-reward"):m("none"):m("notification-blocked"))},[c,k,E,d,j,I]);(0,L.useEffect)(()=>{P(!0===((0,oJ.H)()&&eV().mac||eV().ipad)),G()},[G]),(0,L.useEffect)(()=>{let{ios:e,safari:t,android:l,chrome:n,mobile:i}=eV();if(b&&(e&&t||k&&!i&&t||l&&i&&n)&&(0,lu.Ee)()){N&&"string"==typeof N&&localStorage.setItem("bpKey",N);try{var r;let{bpId:e,bpTime:t}=JSON.parse(null!==(r=localStorage.getItem("bpContext"))&&void 0!==r?r:"{}");if(!e){if(!O||Array.isArray(O))throw Error();e=O,localStorage.setItem("bpContext",JSON.stringify({bpId:O}))}t||(t=0),_(e,t)}catch(e){}}},[b,_,O,N,k]),(0,L.useEffect)(()=>{d&&c&&(null==c||c.bindUser(d),C||(null==c||c.onPermChangeCallback(e=>{switch(e){case"denied":I("click_dont_allow"),o6(nu.XP.push_notification_dont_allow);break;case"granted":I("click_allow"),o6(nu.XP.push_notification_allow)}G(),D(!1)}),Z(!0)))},[a,I,C,G,d,c]);let M=(0,L.useCallback)(async()=>{if(!S){if(eV().mobile||k)switch(-1!==["ios-enable-notification","enable-notification","redeem-reward"].indexOf(u)&&D(!0),u){case"ios-enable-notification":case"enable-notification":null==c||c.prompt(),I("click_enable_notification"),o6(nu.XP.push_notification_enable_notification);break;case"ios-install-pwa":h(!0),I("click_add_to_home"),o6(nu.XP.push_notification_add_to_home);break;case"redeem-reward":{let e=(0,R.jsx)(o9,{item:a,onRedeemed:()=>{(0,lu.CC)("notification-reward-claimed",void 0)},onClose:()=>{(0,lu.CC)("notification-prompt-dismissed",a.repromptTimeout),G(),I("dismiss_thank_you_modal")}});null==p||p(e),null==v||v(!0),I("click_claim_now"),o6(nu.XP.push_notification_claim_now)}}else f()}},[u,k,a,S,I,p,v,f,G,c]),B=(0,L.useCallback)(()=>{(0,lu.CC)("notification-prompt-dismissed",a.repromptTimeout),m("none"),I("ios-install-pwa"===u?"dismiss_iOS_add_to_home_banner":"dismiss_main_banner"),o6("ios-install-pwa"===u?nu.XP.push_notification_dismiss_add_to_home_banner:nu.XP.push_notification_dismiss_notification_banner)},[u,a.repromptTimeout,I]),{body:H,title:F,buttonText:V,disclaimer:U}=function(e,t){let l,n,i,r;switch(e){case"desktop-browser":case"enable-notification":case"redeem-reward":"desktop-browser"===e?(l=t.enableNotificationBrowserTitle,i=t.connectToClaimButton,n=(0,R.jsx)(o7,{children:t.enableNotificationBody})):"enable-notification"===e?(l=t.enableNotificationTitle,i=t.enableNotificationButton,n=(0,R.jsx)(o7,{children:t.enableNotificationBody})):(l=t.rewardClaimTitle,i=t.claimNowButton,n=(0,R.jsx)(o7,{children:t.rewardClaimBody})),r=t.rewardLimitText;break;case"ios-install-pwa":case"ios-enable-notification":l=t.enableNotificationTitle,i="ios-install-pwa"===e?t.addToHomeScreenButton:t.enableNotificationButton,n=(0,R.jsxs)("div",{className:"[&_div]:mb-5",children:[(0,R.jsx)(o7,{children:t.enableNotificationBody}),(0,R.jsxs)("div",{className:"flex",children:[se((0,lu.Ee)())," ",t.enableNotificationStep1]}),(0,R.jsxs)("div",{className:"flex",children:[se(!1)," ",t.enableNotificationStep2]})]}),r=t.rewardLimitText;break;case"notification-blocked":case"redeemed-reward":l="notification-blocked"===e?t.enableNotificationTitle:t.rewardAlreadyClaimedTitle,i="",n="notification-blocked"===e?(0,R.jsx)(o7,{children:t.enableNotificationDisabledText}):(0,R.jsx)(o7,{children:t.rewardClaimBody})}return{title:l,body:n,buttonText:i,disclaimer:r}}(u,a);return a?(["redeemed-reward","redeem-reward"].find(e=>e===u)&&S&&D(!1),"none"!==u&&d)?(0,R.jsx)(oW.Z,{onChange:g,children:(0,R.jsxs)("div",{children:[(0,R.jsx)(rX.P,{hideHeader:!0,slug:(0,el.U)(a.id),children:eV().mobile?(0,R.jsxs)("div",{"data-theme":null!==(l=null==a||null===(n=a.palette)||void 0===n||null===(n=n.sys)||void 0===n?void 0:n.id)&&void 0!==l?l:"none",className:(0,T.Z)("p-4 rounded-lg sm:flex relative",oK().main),children:[(0,R.jsxs)("div",{className:"grow mb-5",children:[(0,R.jsx)("button",{className:"absolute top-2 right-3 cursor",onClick:B,children:"✕"}),(0,R.jsxs)("div",{className:"flex mb-5 lg:mb-0",children:[(0,R.jsx)("div",{className:"h-14 w-14 aspect-square mr-4 [&_img]place-self-center place-self-center",children:(0,R.jsx)(oQ.c,{image:null===(i=a.reward)||void 0===i?void 0:i.boxart})}),(0,R.jsx)("div",{className:"text-xl font-bold place-self-center mr-3",children:F})]}),H]}),V&&(0,R.jsx)("div",{className:"place-self-center lg:mr-5 relative",children:(0,R.jsx)("button",{type:"button",className:(0,T.Z)("btn text-button-m w-full",oK().button,S&&"loading"),onClick:M,children:!S&&V})}),(0,R.jsx)("div",{className:"mt-3 text-xs",children:a.rewardLimitText})]}):(0,R.jsxs)("div",{"data-theme":null!==(r=null==a||null===(o=a.palette)||void 0===o||null===(o=o.sys)||void 0===o?void 0:o.id)&&void 0!==r?r:"none",className:(0,T.Z)("p-10 rounded-lg flex flex-wrap relative",oK().main),children:[(0,R.jsx)("div",{className:"lg:h-32 lg:w-32 lg:p-5 w-14 aspect-square mr-4 place-self-center",children:(0,R.jsx)(oQ.c,{image:null===(s=a.reward)||void 0===s?void 0:s.boxart})}),(0,R.jsx)("button",{className:"absolute top-2 right-3 cursor",onClick:B,children:"✕"}),(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:"text-xl font-bold place-self-center mb-3",children:F}),(0,R.jsx)("div",{className:"mb-5",children:H}),V&&(0,R.jsx)("button",{type:"button",className:(0,T.Z)("btn text-button-m w-full sm:w-fit",oK().button),onClick:M,children:V}),(0,R.jsx)("div",{className:"mt-3 text-xs",children:U})]})]})}),x&&(0,R.jsx)(oY,{item:a,iPad:k,onClose:()=>{h(!1),I("dismiss_add_to_home_popup"),o6(nu.XP.push_notification_dismiss_add_to_home_popup)}})]})}):(0,R.jsx)(oW.Z,{onChange:g}):null}var sl=l(73582);let sn={height:"100%"};function si(e){let{product:t}=e;return(0,ec.tZ)(tl.nW,{value:t.item,children:(0,ec.tZ)(tr.J,{slug:t.slug,children:(0,ec.tZ)(ts.o,{css:sn,width:z.sl,maxImageWidth:400})})})}let sr=(0,V.iv)(D||(D=(0,F.Z)(["\n  /* Shadow gets hidden on left and bottom so adding 4px extra padding to show shadow */\n  [data-carousel-slider] {\n    ","\n  }\n"])),{paddingBottom:"0.25rem",paddingLeft:"0.25rem"});var so=l(45340);function ss(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function sa(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):ss(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}var sc=l(22941);let sd=["__typename","linkedFrom","platform","headerText","sys"],su=["layout"];function sm(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function sp(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?sm(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):sm(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}let sv={overflow:"hidden"},sx={Expansion:function(e){let{item:t}=e,{id:l,header:n,expansionsCollection:i}=t,r="related-products-list",o=(0,tf.s)();return(0,ec.tZ)(ea.P,{slug:(0,el.U)(l||(null==n?void 0:n.text)),title:null==n?void 0:n.text,"data-testid":U.T6n,children:(0,ec.tZ)(ol.a,{css:[tS.Gf,sr],id:r,"aria-label":null==n?void 0:n.text,carouselControls:(0,ec.tZ)(oi.J,{carouselId:r}),carouselDots:(0,ec.tZ)(or.T,{}),layoutStyle:"CAROUSEL",peekSize:o,children:(0,en.E)(null==i?void 0:i.items).map(e=>(0,ec.tZ)(si,{product:e},(0,G.km)(e)))})})},ScreenShotsVideos:function(e){var t,l,n,i,r,o;let{item:s}=e,{t:a}=(0,ei.$G)(),{0:c,1:d}=(0,L.useState)(),u=(0,L.useCallback)(()=>d(void 0),[]),m=(0,ik.d)(),{0:p,1:v}=(0,L.useState)(void 0),x=(0,ot.Ei)(ot.Jw,2),h=(0,L.useCallback)(e=>{let{index:t}=e.currentTarget.dataset;t&&(e.currentTarget.focus(),d(parseInt(t,10)))},[]),f=(0,L.useMemo)(()=>({[z.sl]:"40%",[z.Tt]:"26%",[z.H6]:"24%",[z.rG]:"22%",[z.Fg]:"16%",[z.uK]:"12%",[z.ux]:"10%",[z.pd]:"10%"}),[]),b=(0,en.E)(null===(t=s.playListCollection)||void 0===t?void 0:t.items).map(e=>of(of({},e),{},{key:(0,G.km)(e)})),g=(m?ob.standard:s.layoutStyle||ob.standard)===ob.mosaic,j=s.layoutStyle===ob.single,y=g?8:x,w="center"===s.textAlignment,O="media-".concat(null===(l=s.sys)||void 0===l?void 0:l.id);return(0,L.useEffect)(()=>{let e=(0,on.P)(250,()=>{let e=Object.keys(f);for(let t=0;t<e.length;t+=1)if(window.innerWidth<=parseInt(e[t],10)){v(f[parseInt(e[t],10)]);break}(window.innerWidth>z.pd||g)&&v(void 0)});return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),(0,ec.BX)(ea.P,{slug:(0,el.U)(s.id||(null===(n=s.header)||void 0===n?void 0:n.text)),title:null===(i=s.header)||void 0===i?void 0:i.text,headerStyle:{textAlign:w?"center":"unset"},"data-testid":U.pmt,children:[(0,ec.tZ)("div",{className:(0,T.Z)("mb-6 -mt-4 type-body-s",{"text-center":w}),children:(0,ec.tZ)(ee.H,{document:null===(r=s.preText)||void 0===r?void 0:r.json})}),j&&b.length>0?(0,ec.tZ)(ox,{media:b[0],center:w}):(0,ec.BX)(ec.HY,{children:[(0,ec.tZ)(ol.a,{css:tS.Gf,id:O,peekSize:p,"aria-label":null===(o=s.header)||void 0===o?void 0:o.text,carouselControls:(0,ec.tZ)(oi.J,{carouselId:O}),carouselDots:(0,ec.tZ)(or.T,{}),layoutStyle:g?ob.mosaic:ob.carousel,children:b.map((e,t)=>(0,ec.tZ)(op,{"aria-label":e.title,item:e,idx:t,visibleItems:y,imagePerRow:g?0===t?2:y/2:y,onItemClick:h},(0,G.km)(e)))}),void 0!==c&&(0,ec.tZ)(lh.e,{css:og,media:b,initialSelectedItem:c,requestClose:u,labelClose:a("Close"),AgeGate:lm.m,nextLabel:a("next"),backLabel:a("Back"),carouselDots:(0,ec.tZ)(or.T,{})})]})]})},ProductDetailSystemRequirements:function(e){var t,l,n;let{item:i}=e,{t:r}=(0,ei.$G)(),o=(0,en.E)(null===(t=i.requirementsCollection)||void 0===t?void 0:t.items),{otherRequirements:s}=i,a=Object.entries(o.reduce((e,t)=>{if(t.platform){let l=e[t.platform]||[];e[t.platform]=l,l.push(t)}return e},{})).map(e=>{let[t,l]=e;return{key:t,title:r(t),requirements:l.map(e=>{let{__typename:t,linkedFrom:l,platform:n,headerText:i,sys:o}=e,s=(0,E.Z)(e,sd);return{key:(0,G.km)({sys:o}),title:i?r(i):"",terms:Object.keys(s).reduce((e,t)=>(e[r(t)]=s[t],e),{})}})}});return(0,R.jsx)(ea.P,{slug:(0,el.U)(i.id||(null===(l=i.header)||void 0===l?void 0:l.text)),title:null===(n=i.header)||void 0===n?void 0:n.text,"data-testid":U.t4K,children:(0,R.jsx)(sc.B,{platforms:a,otherRequirements:null==s?void 0:s.json})})},GameDetails:function(e){var t,l,n,i,r,o;let{item:s}=e,{t:a}=(0,ei.$G)(),c=(0,eo.b)(),d=(0,tl.YM)(),u=(0,eW.XR)(),{rating:m,layoutStyle:p}=(0,lo.Z)(),v=p===tt.CH.PartialWidth,{icon:x,descriptors:h,imageDescriptors:f,ratingInfoLink:b}=m||{},g={iconSrc:(0,G.Jn)(x),iconAlt:(0,G.EQ)(x),descriptors:(0,en.E)(h).map(e=>a(e)),imageDescriptors:(0,en.E)(f).map(e=>({src:(0,G.Jn)(e),alt:(0,G.EQ)(e)})),ratingInfoLink:b};return(0,R.jsx)(ea.P,{slug:(0,el.U)(s.id||(null===(t=s.header)||void 0===t?void 0:t.text)),title:null===(l=s.header)||void 0===l?void 0:l.text,"data-testid":U.S18,children:(0,R.jsx)(lr.Z,{labelGenre:a("Genre"),labelDeveloper:a("Developer"),labelPublisher:a("Publisher"),labelReleaseDate:a("Release Date"),labelLinks:a("Links"),longDescription:null==d?void 0:d.longDescription,genre:null==d||null===(n=d.genres)||void 0===n?void 0:n.join(", "),developer:null==d||null===(i=d.developers)||void 0===i?void 0:i.join(", "),publisher:null==d||null===(r=d.publishers)||void 0===r?void 0:r.join(", "),releaseDate:null!=u&&u.releaseDate&&!(0,e4.z5)(u.releaseDate)?u.releaseDate:void 0,links:null==s||null===(o=s.links)||void 0===o?void 0:o.json,language:c,rating:v?g:void 0})})},SupportedLanguages:function(e){let{item:t}=e,{t:l}=(0,ei.$G)(),{header:n,supportedLanguageTable:i}=t,r=(0,L.useMemo)(()=>(i||[]).map(e=>sa(sa({},e),{},{language:l("".concat(e.language).trim())})),[l,i]);return r.length>0?(0,R.jsx)(ea.P,{slug:(0,el.U)(t.id||(null==n?void 0:n.text)),title:null==n?void 0:n.text,"data-testid":U.fs2,children:(0,R.jsx)(so.i,{labelInterface:l("interface"),labelAudio:l("full-audio"),labelSubtitles:l("subtitles"),labelViewAll:l("view-all-supported-languages",{length:r.length}),languages:r,labelSupported:l("supported"),labelUnsupported:l("unsupported")})}):null},ComparisonTable:function(e){let{item:t}=e,l=(0,tL.q)()||t.defaultDrm||eR.f9.NotApplicable,{header:n,skuListCollection:i,featuresCollection:r,comparisonTableData:o}=t,s=(0,ez.TA)(),{user:a}=(0,eW.aF)(),c=(0,en.E)(null==i?void 0:i.items).map(e=>{var t;return{key:null==e||null===(t=e.sys)||void 0===t?void 0:t.id,item:e,comparisonItem:{image:(0,G.Jn)(null==e?void 0:e.landscapeArt),title:(null==e?void 0:e.title)||"",features:(0,en.E)((0,en.E)(null==r?void 0:r.items).map(t=>{var l,n,i;let r=(null==e||null===(l=e.sys)||void 0===l?void 0:l.id)&&(null==o||null===(n=o[null==e||null===(i=e.sys)||void 0===i?void 0:i.id])||void 0===n||null===(n=n.features)||void 0===n?void 0:n[(null==t?void 0:t.id)||""]);return{description:(null==t?void 0:t.description)||"",type:(null==r?void 0:r.type)||"",value:(null==r?void 0:r.value)||!1}}))}}}).filter(e=>{var t;let{key:n,item:i}=e;return null!=a&&a.userId?!!(null!=s&&null!==(t=s[n||""])&&void 0!==t&&t.find(e=>(null==e?void 0:e.drm)===l&&e.purchaseState!==eR.Aw.hidden)):!i.upsell});return 0===c.length?null:(0,R.jsx)(ea.P,{slug:(0,el.U)(t.id||(null==n?void 0:n.text)),title:null==n?void 0:n.text,"data-testid":U.IHH,children:(0,R.jsx)(tT.R,{children:c.map(e=>{let{key:t,item:n,comparisonItem:i}=e;return(0,R.jsx)(tl.nW,{value:n,children:(0,R.jsx)(eU.R,{children:(0,R.jsx)(tX,t$(t$({},i),{},{drm:l}))})},t)})})})},ProductDetailPageKeyFeatureContainer:function(e){var t,l,n,i,r;let{item:o}=e,{t:s}=(0,ei.$G)(),a=(0,eo.b)(),c=(0,e7.useRouter)(),{searchParams:d}=(0,lc.j)(),u=null===(t=o.header)||void 0===t?void 0:t.text,m=(0,eW.XR)();if(o.internalName&&o.internalName.indexOf("__COUPON__ONLY__")>-1&&(null==m||null===(l=m.promotion)||void 0===l?void 0:l.reason)!==tt.Fh.Coupon)return null;let p="PW_CUST_NO_CAROUSEL"===o.layoutStyle&&(null===(n=o.keyfeaturesCollection)||void 0===n||null===(n=n.items)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.verticalTextAlignment)!=="Bottom",v="PW_CUST_NO_CAROUSEL"===o.layoutStyle&&(null===(i=o.keyfeaturesCollection)||void 0===i||null===(i=i.items)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.verticalTextAlignment)==="Bottom",x=e=>{let{link:t}=e.currentTarget.dataset;t&&(t.startsWith("http")?(0,lu.x)(t):c.push({pathname:t,query:d}))},h=e=>(0,ec.tZ)(ly,lN({},e));return(0,ec.tZ)(ea.P,{slug:(0,el.U)(o.id||u),title:u,hideHeader:!o.showHeader,css:lk,"data-testid":U.zZC,children:(0,ec.tZ)(I.C,{css:[p&&lP,v&&lC],layoutStyle:o.layoutStyle,preTextContent:o.preTextContent,postTextContent:o.postTextContent,items:(0,en.E)(null===(r=o.keyfeaturesCollection)||void 0===r?void 0:r.items).map(e=>{var t;let{sys:l,articleCollection:n,__typename:i}=e,r=(0,E.Z)(e,lw);return lN(lN({},r),{},{button:r.button?h(r.button):void 0,key:(0,G.km)({sys:l}),articles:(0,en.E)(null==n?void 0:n.items).map(e=>e.slug||""),buttonCopy:null===(t=r.buttonCopy)||void 0===t?void 0:t.text,onButtonClick:x})}),labelRetry:s("try-again"),labelShowMore:s("show-more"),labelShowLess:s("show-less"),labelError:s("fetching-data-error",{errorSource:s("articles")}),labelClose:s("Close"),entryTags:lp.H,AgeGate:lm.m,maxWidth:t4.Eq,locale:a,getArticles:e=>(0,ld.bv)(e,a)})})},FaqContainer:function(e){var t;let{item:l}=e,{header:n,faqItemsCollection:i,palette:r}=l;return(0,R.jsxs)("section",{className:"relative py-8",children:[(0,R.jsx)("div",{"data-theme":(null==r||null===(t=r.sys)||void 0===t?void 0:t.id)||"none",className:(0,T.Z)("absolute h-full w-full inset-0 -z-[1]",li().main)}),(0,R.jsx)(ea.P,{slug:(0,el.U)(l.id||(null==n?void 0:n.text)),title:null==n?void 0:n.text,"data-testid":U.E33,children:(0,R.jsx)(lt.U,{allowMultipleOpen:!0,children:(0,en.E)(null==i?void 0:i.items).map(e=>{var t;return(0,R.jsx)(ll.Z,{id:(0,G.km)(e),label:e.userFacingTitle||e.title,document:null===(t=e.richText)||void 0===t?void 0:t.json},(0,G.km)(e))})})})]})},PdpLayoutNewsArticles:function(e){var t,l,n,i,r,o,s,a,c,d,u,m;let{item:p}=e,{t:v}=(0,ei.$G)(),x=(0,eo.b)(),h=(0,e7.useRouter)(),{0:f,1:b}=(0,L.useState)(""),{0:g,1:j}=(0,L.useState)(!1),y="news-".concat(null===(t=p.sys)||void 0===t?void 0:t.id),{searchParams:w}=(0,lc.j)(),{preText:O,postText:N,bg:k}=p,P=(0,L.useMemo)(()=>(0,G.Jn)(k),[k]),C=P?"url('".concat(P,"')"):"",Z=null===(l=p.header)||void 0===l?void 0:l.text,S=p.headerH1&&Z,{data:D,isError:_,isFetching:E,refetch:I}=(0,oO.useQuery)(["articleId",f],()=>(0,oN.f)(f,x),{keepPreviousData:!0,enabled:""!==f,retry:!1,refetchOnWindowFocus:!1}),T=(0,L.useCallback)(e=>t=>{t.stopPropagation(),t.preventDefault(),e.showInFullPage&&e.slug?h.push({pathname:"/".concat((0,ok.$d)(e.slug,"news")).concat(e.slug),query:oH({},w)},void 0,{shallow:!1}):(t.currentTarget.focus(),j(!0),b(e.slug||""))},[w,h]),A=(0,en.E)(null===(n=p.newsArticlesCollection)||void 0===n?void 0:n.items),M=Math.ceil((null!==(i=null===(r=p.newsArticlesCollection)||void 0===r?void 0:r.total)&&void 0!==i?i:0)/tt.qQ),B="Light"===p.paginationStyle,R=e=>t=>{t.stopPropagation(),t.preventDefault(),window.open(e.externalLink||"","_blank")},H=(0,L.useMemo)(()=>(0,e8.H)(p.layoutStyle,["CAROUSEL","GRID","DETAIL"]),[p.layoutStyle]),F=null!==(o=p.externalLink)&&void 0!==o&&null!==(o=o.label)&&void 0!==o&&o.json?(0,ec.tZ)(ee.H,{entryTags:lp.H,document:null===(s=p.externalLink)||void 0===s||null===(s=s.label)||void 0===s?void 0:s.json,links:null===(a=p.externalLink)||void 0===a||null===(a=a.label)||void 0===a?void 0:a.links}):null,V=(0,tf.s)();return(0,ec.BX)(ea.P,{slug:(0,el.U)(p.id||(null===(c=p.header)||void 0===c?void 0:c.text)),title:S?(0,ec.tZ)("h1",{children:S}):Z,headerStyle:oF,"data-testid":U.t8G,style:C?{backgroundImage:C}:void 0,css:k&&tS.mu,link:(null===(d=p.externalLink)||void 0===d?void 0:d.url)&&(p.externalLink.url.startsWith("http")?(0,ec.BX)("a",oH(oH({className:"flex items-center type-body-s uppercase type-link hover:type-link-hover ms-auto",href:p.externalLink.url},(null===(u=p.externalLink)||void 0===u?void 0:u.openInNewTab)&&{target:"_blank",rel:"noreferrer noopener"}),{},{children:[F||v("See all"),(0,ec.tZ)(e6.J,{className:"w-4 h-4 ms-1 [margin-block-end:0.125rem]"})]})):(0,ec.tZ)(ow(),{prefetch:!1,href:p.externalLink.url,legacyBehavior:!0,children:(0,ec.tZ)("button",{type:"button",className:"flex items-center type-body-s uppercase type-link hover:type-link-hover ms-auto",children:F||v("See all")})})),children:[(0,ec.tZ)("div",{className:"mb-6 -mt-4 type-body-s",children:(0,ec.tZ)(ee.H,{document:null==O?void 0:O.json})}),"DETAIL"===H?(0,ec.tZ)("div",{children:A.map(e=>(0,ec.tZ)(oP.V,{article:e},(0,G.km)(e)))}):(0,ec.tZ)(ol.a,{css:"CAROUSEL"===H&&tS.Gf,"aria-label":p.title,id:y,carouselControls:(0,ec.tZ)(oi.J,{carouselId:y}),carouselDots:(0,ec.tZ)(or.T,{}),layoutStyle:H,layoutItems:"few",minCol:1,peekSize:V,children:A.map(e=>{var t;return(0,ec.tZ)(oB,{item:e,onItemClick:e.externalLink?R(e):T(e),tileStyle:p.tileStyle,title:(null==e?void 0:e.title)||"",backgroundUrl:null==e||null===(t=e.doubleWidthImage)||void 0===t?void 0:t.url,date:e.releaseDate&&(0,ec.tZ)(oj.r,{date:null==e?void 0:e.releaseDate,language:x,timeZone:"UTC"}),isVideoPreview:!!(null!=e&&e.useVideoPreview)},(0,G.km)(e))})}),(0,ec.tZ)("div",{css:{marginTop:"1.5rem",fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"},children:(0,ec.tZ)(ee.H,{document:null==N?void 0:N.json})}),(0,ec.tZ)(oE,{css:oV,isOpen:g,isErrored:_,isLoading:E,article:(null==D||null===(m=D.model)||void 0===m?void 0:m.article)||{},close:()=>j(!1),labelClose:v("Close"),message:v("fetching-data-error",{errorSource:v("articles")}),buttonLabel:v("try-again"),retry:I,locale:x,entryTags:lp.H}),"CAROUSEL"!==H&&1!==M&&(0,ec.tZ)(oI.e,{lightMode:B,pageCount:M})]})},StoreBrowseGame:function(e){let{item:t}=e,{searchQuery:l}=t,n=(0,L.useMemo)(()=>(0,G.Jn)(null==t?void 0:t.bg),[null==t?void 0:t.bg]),i=(null==t?void 0:t.tileSize)==="LARGE"?"few":"many",r=(0,L.useMemo)(()=>(0,e8.H)(t.layoutStyle,["GRID","CAROUSEL"]),[t.layoutStyle]);return l?(0,R.jsx)(tx,{item:t,layoutStyle:r,layoutItems:i,backgroundUrl:n}):(0,R.jsx)(tj,{item:t,layoutStyle:r,layoutItems:i,backgroundUrl:n})},CtaStripe:function(e){var t;let{item:l}=e,{backgroundColor:n,showFullWidth:i,richText:r,id:o}=l,s=n||void 0,a=(0,e7.useRouter)(),c=(null==l?void 0:l.buttonLink)||"",d=async()=>{(0,t3.T)(c,a)()},{user:u}=(0,t5.a)(),m=(null===(t=l.segmentsCollection)||void 0===t?void 0:t.items)&&l.segmentsCollection.items;return t2(null!=m?m:[],{isLoggedIn:!!u})?(0,ec.tZ)(ea.P,{style:{backgroundColor:i&&s||void 0},css:i&&t6,slug:(0,el.U)(o),sectionStyle:i&&t7,hideHeader:!0,"data-testid":U.vWo,children:(0,ec.tZ)(t3.f,t8(t8({},l),{},{richTextCss:le,backgroundColor:n||"var(--color-primary-rgb)",onClick:d,children:r&&(0,ec.tZ)(ee.H,{document:null==r?void 0:r.json,decorateLinks:!0})}))}):null},IframeEmbed:ls.O,LayoutPromoBanner:sl.$,LayoutCardList:function(e){var t,l,n,i,r;let{item:o}=e,s=null!==(t=null===(l=o.cardsCollection)||void 0===l||null===(l=l.items)||void 0===l?void 0:l.length)&&void 0!==t?t:0;return o&&o.variant===lJ.Account?(0,ec.tZ)(lG,{layoutCardList:o}):(0,ec.BX)(ea.P,{headerStyle:{marginBottom:"0.5rem",justifyContent:"center",textAlign:"center"},title:o.title,slug:(0,el.U)(o.id||o.title),children:[o.text&&(0,ec.tZ)("div",{className:(0,T.Z)("mb-6 mx-auto w-full justify-center text-center"),children:(0,ec.tZ)(ee.H,{document:null===(n=o.text)||void 0===n?void 0:n.json})}),s>0&&o.variant===lJ.CtaCard&&(0,ec.tZ)("ul",{className:(0,T.Z)("grid gap-4 grid-cols-1 justify-center mt-4 mb-0",s>=0&&s<=3&&"sm:grid-cols-2 lg:grid-cols-3",s>=4&&s<=10&&"sm:grid-cols-2 lg:grid-cols-4"),children:null===(i=o.cardsCollection)||void 0===i||null===(i=i.items)||void 0===i?void 0:i.map(e=>{var t;return(0,ec.tZ)("li",{children:(0,ec.tZ)(lU,lq({},e))},"card-".concat(null==e||null===(t=e.sys)||void 0===t?void 0:t.id))})}),s>0&&o.variant===lJ.PictureCard&&(0,ec.tZ)("ul",{className:(0,T.Z)("grid gap-4 grid-cols-2 justify-center mt-4 mb-0 mx-auto",s>=0&&s<=4&&"sm:grid-cols-2 md:grid-cols-4 sm:w-9/12 3xl:w-7/12",s>=5&&s<=10&&"sm:grid-cols-2 md:grid-cols-5 2xl:w-10/12 3xl:w-9/12"),children:null===(r=o.cardsCollection)||void 0===r||null===(r=r.items)||void 0===r?void 0:r.map(e=>{var t;return(0,ec.tZ)("li",{children:(0,ec.tZ)(lz,lq({},e))},"card-".concat(null==e||null===(t=e.sys)||void 0===t?void 0:t.id))})}),o.variant===lJ.AgeRating&&(0,ec.tZ)(lR,{})]})},LayoutCategoryStripe:function(e){var t;let{item:l}=e,n=(0,L.useMemo)(()=>{var e;return(0,en.E)(null==l||null===(e=l.itemCollection)||void 0===e?void 0:e.items).map(tE)},[null==l||null===(t=l.itemCollection)||void 0===t?void 0:t.items]);return(0,ec.BX)("section",{className:"flex bg-neutral-100-70","data-testid":U.y27,children:[(0,ec.tZ)(eJ.p,{id:l.id}),(0,ec.tZ)(tZ.Z,{css:tS.FG,items:n,itemComponent:tI})]})},LayoutImageLinks:la.g,LayoutText:function(e){let{item:t}=e;return(0,R.jsxs)("section",{className:(0,T.Z)("relative layout-content w-full mx-auto","max-w-[".concat(t4.Eq,"]")),children:[(0,R.jsx)(eJ.p,{id:t.id}),(0,R.jsx)("div",{className:"type-body-s",children:(0,R.jsx)(er.D,{className:"prose-p:my-2 prose-strong:text-text-primary prose-p:type-body-s text-text-primary max-w-full prose prose-a:type-link hover:prose-a:type-link-hover prose-headings:text-text-primary",linkTarget:"_blank",children:t.rtfText||""})})]})},LayoutCodeRedemption:function(e){let{item:t}=e;return t?(0,R.jsx)(lY,{children:(0,R.jsx)(rN,{item:t})}):null},LayoutCurrency:ty.d,LayoutIrInfo:function(e){let{item:t}=e;return(0,R.jsx)(H,{item:t})},LayoutPreorderBonus:function(e){var t,l,n;let{item:i}=e,{id:r,backgroundImage:o,header:s}=i,a=(0,G.Jn)(o),c="preorder-bonus-".concat(null===(t=i.sys)||void 0===t?void 0:t.id);return(0,ec.BX)(rB.v,{slug:(0,el.U)(r||(null==s?void 0:s.text))||"",title:null==s?void 0:s.text,backgroundImageUrl:a,children:[i.description&&(0,ec.tZ)("section",{css:[rV,rM.f],children:(0,ec.tZ)("span",{children:i.description})}),(0,ec.tZ)(ta.K,{bleed:!0,id:c,title:null==s?void 0:s.text,children:(0,en.E)(null===(l=i.itemsCollection)||void 0===l?void 0:l.items).map(e=>(0,ec.tZ)(rF,{item:e},(0,G.km)(e)))}),(null===(n=i.footer)||void 0===n?void 0:n.text)&&(0,ec.tZ)("section",{css:[rV,rU],children:(0,ec.tZ)("span",{children:i.footer.text})})]})},LayoutForm:function(e){var t,l;let{item:n}=e,{id:i,title:r,description:o,postText:s,submitButton:a,fieldsCollection:c}=n,{trackAnalyticsData:d}=(0,lx.z)(),u=(0,e7.useRouter)(),{searchParams:m}=(0,lc.j)(),{0:p,1:v}=(0,L.useState)([]),x=(0,L.useCallback)((e,t)=>{v(rA(rA({},p),{},{[e]:t}))},[p]);return(0,R.jsxs)(ea.P,{title:r,slug:(0,el.U)(i),"data-testid":U.PLZ,children:[o&&(0,R.jsx)(ee.H,{document:null==o?void 0:o.json}),null==c||null===(t=c.items)||void 0===t?void 0:t.map(e=>(0,R.jsx)(rE,{title:null==e?void 0:e.title,fieldType:null==e?void 0:e.fieldType,valuesCollection:null==e?void 0:e.valuesCollection,onClick:x})),s&&(0,R.jsx)(ee.H,{document:null==s?void 0:s.json}),a&&(0,R.jsx)("div",{className:(0,T.W)("flex flex-row-reverse my-6"),children:(0,R.jsx)("button",{type:"button",onClick:()=>{null!=a&&a.analyticsData&&d({metadata:null==a?void 0:a.analyticsData}),null!=a&&a.target&&u.push({pathname:a.target,query:m})},className:(0,T.W)("btn",rT().submitButton),"data-theme":null==a||null===(l=a.palette)||void 0===l||null===(l=l.sys)||void 0===l?void 0:l.id,children:(0,R.jsx)("div",{children:null==a?void 0:a.text})})})]})},LayoutHero:rG.V,LayoutListView:ry,LayoutSubscription:function(e){var t,l;let{item:n}=e,{t:i}=(0,ei.$G)(),{track:r}=(0,lx.z)(),{user:o}=(0,t5.a)(),s=(0,eo.b)(),a=null==o?void 0:o.subscription,{paymentMethod:c,status:d,taxInformation:u}={paymentMethod:function(e){if(!e)return"";let{paymentMethodType:t,paymentMethodDetails:l}=e;switch(t){case"card":return"".concat(l.brand," ").concat(l.last4);case"PayPalAccount":return"PayPal";default:return""}}(a),status:rJ[null!==(l=null==a?void 0:a.uiState)&&void 0!==l?l:"non-member"],taxInformation:function(e,t){if(!e)return{amountDue:0,currency:"USD",discount:0,expiryDate:"",subtotal:0,taxAmount:0,taxRate:0,taxType:"sales"};let{price:l}=e;return{amountDue:l.total,currency:l.currency,discount:0,expiryDate:(0,e4.SJ)(t,e.currentPeriodEnd),subtotal:l.subtotal,taxAmount:l.taxAmount,taxRate:l.taxRate,taxType:l.taxType}}(a,s)},{0:m,1:p}=(0,L.useState)(d),v=i(oe[m]),x=m===rq.Grace||m===rq.Suspended,h=m===rq.Expired,f=m===rq.NonMember,b=(0,rz.n)(s,u.currency),g=function(e,t,l,n,i){let{expiryDate:r,subtotal:o,taxAmount:s,taxType:a,discount:c}=t,d={header:"payment-method",data:{value:i}};switch(e){case rq.Active:return[{header:"renews-on",data:{value:r}},{header:"amount-due",data:{value:l,taxType:a,taxRate:n,subtotal:o,taxAmount:s,discount:c}},d];case rq.Grace:return[{header:"suspending-on",data:{value:r}},{header:"amount-due",data:{value:l}},d];case rq.Suspended:return[{header:"suspended-on",data:{value:r}},{header:"amount-due",data:{value:l}},d];case rq.Expired:case rq.Canceled:return[{header:"expired-on",data:{value:r}}];case rq.Deactivated:return[{header:"deactivated-on",data:{value:r}}];case rq.NonMember:return[{header:"",data:{value:"no-active-membership"}}];case rq.PendingCancellation:return[{header:"expiring-on",data:{value:r}},d];default:return[]}}(m,u,b(u.amountDue),(0,rW.T3)(u.taxRate/100,s),c),j=g.length;(0,L.useEffect)(()=>{r("page_view",{path:rm.r9,title:"Entered Manage Subscription",locale:s,metadata:{state:d}})},[s]);let{cancelButton:y,ctaStripe:w,customerSupportButton:O,header:N,orderHistoryButton:k,resumeButton:P,updateButton:C}=n;return(0,R.jsxs)(rX.P,{children:[(0,R.jsx)("h1",{className:"text-headline-xl font-bold text-white",children:N}),(0,R.jsx)("hr",{className:"mt-4 mb-8 opacity-20"}),f&&w&&(0,R.jsx)("div",{className:"mb-8",children:(0,R.jsx)(rQ.mV,function(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?r7(Object(l),!0).forEach(function(t){(0,_.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):r7(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}({},w))}),(0,R.jsxs)("div",{className:(0,T.Z)("rounded-lg border",rK().border),"data-theme":(null===(t=n.palette)||void 0===t||null===(t=t.sys)||void 0===t?void 0:t.id)||"none",children:[(0,R.jsx)(r6,{statusString:v,isDunning:x}),(x||h)&&(0,R.jsx)("div",{className:(0,T.Z)("py-8 px-7 text-white",rK().dunningBanner),children:i(h?"subscription-error-expired":"subscription-error-payment")}),(0,R.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-".concat(j),children:g.map((e,t)=>(0,R.jsx)(r8,{header:e.header,data:e.data,isLast:t===j-1,formatPrice:b},e.header))})]}),(0,R.jsx)(r9,{status:m,subscription:a,cancelButton:y,csButton:O,historyButton:k,resumeButton:P,updateButton:C,setUserStatus:p})]})},Newsletter:function(e){var t;let{item:l}=e,{id:n,title:i,image:r,description:o,disclaimer:s,agreement:a,source:c,locationsJson:d,platforms:u,successMessage:m}=l,{t:p}=(0,ei.$G)(),v=(0,eo.b)(),x=(0,W.r)(v),h=(0,q.Y)((0,es.fm)(),!1),f=(0,el.U)(i),{0:b,1:g}=(0,L.useState)(),{0:j,1:y}=(0,L.useState)(),{0:w,1:O}=(0,L.useState)(),{0:N,1:k}=(0,L.useState)(),{0:P,1:C}=(0,L.useState)(!1),Z=(0,en.E)(d).map(e=>({key:e.country||"",label:e.country||"",value:e}))||[],S=(0,en.E)(u).map(e=>({key:e,label:p(e),value:e}))||[],{0:{email:D,isEmailValid:_,isAgeValid:E,subscribeFailed:I,subscribeSuccess:T,isLoading:A},1:M}=(0,L.useReducer)(eM,eA),B=!!(null!=w&&null!==(t=w.value)&&void 0!==t&&t.age&&null!=b&&b.value&&null!=j&&j.value),R=(e,t,l)=>{var n;let i=null==e||null===(n=e.value)||void 0===n?void 0:n.age,r=null==t?void 0:t.value,o=null==l?void 0:l.value;if(i&&r&&o){let e=Math.abs(new Date((0,es.fm)()-new Date(o,r).getTime()).getUTCFullYear()-1970);i>0&&e>=i?M({type:eG.SET_AGE_VALID}):M({type:eG.SET_AGE_INVALID})}},H=async()=>{let e=setTimeout(()=>M({type:eG.SET_LOADING}),500);try{(await function(e){var t;let{email:l,month:n,year:i,location:r,locale:o,source:s,platform:a}=e;return fetch("".concat(null===(t=window.t2gp)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.T2GP_PUBLIC_RUNTIME_NEWSLETTER_API_BASE,"/optin"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,source:s,locale:o,month:n,year:i,location:r,platform:a})})}({email:D,source:c||"",locale:v,month:(null==b?void 0:b.value)||0,year:(null==j?void 0:j.value)||0,location:(null==w?void 0:w.value.country)||"",platform:(null==N?void 0:N.value)||""})).ok?M({type:eG.SET_SUBSCRIBE_SUCCESS}):M({type:eG.SET_SUBSCRIBE_FAILED})}catch(e){M({type:eG.SET_SUBSCRIBE_FAILED})}finally{e&&clearTimeout(e)}},F=async()=>{_&&E&&await H()};return(0,ec.tZ)("div",{css:ev,"data-testid":U.rds,children:(0,ec.tZ)(ea.P,{slug:(0,el.U)(n)||f,children:(0,ec.BX)("div",{css:[ex],children:[T?(0,ec.tZ)(eu,{successMessage:m}):(0,ec.BX)("div",{css:eh,children:[(0,ec.tZ)(J.H,{css:eP,children:i}),(0,ec.tZ)("div",{children:o&&(0,ec.tZ)(er.D,{css:eN,children:o})}),(0,ec.tZ)("div",{css:e_,children:(0,ec.BX)(X.A,{label:p("email-label"),children:[(0,ec.tZ)("input",{css:[ew,!_&&D&&eO],type:"text",value:D,placeholder:p("email-enter-placeholder"),onChange:e=>{M({type:eG.SET_EMAIL,payload:e.target.value})},onBlur:()=>{(0,es.oH)(D)||M({type:eG.SET_EMAIL_INVALID})},"data-testid":U.Rrf}),!_&&D&&(0,ec.tZ)("div",{css:eC,children:p("email-format-error")})]})}),(0,ec.BX)("div",{css:eE,children:[(0,ec.BX)("div",{css:eT,children:[(0,ec.tZ)(X.A,{id:"dob-label",label:p("dob-label")}),(0,ec.BX)("div",{css:eL,children:[(0,ec.tZ)(Q.L,{"aria-describedby":"dob-label",css:[eS,B&&!E&&eO],cssList:eS,title:p("Month"),selectedItem:b,onItemSelected:e=>{g(e),R(w,e,j)},items:x,"data-testid":U.sBq}),(0,ec.tZ)(Q.L,{"aria-describedby":"dob-label",css:[eS,B&&!E&&eO],cssList:eS,title:p("Year"),selectedItem:j,onItemSelected:e=>{y(e),R(w,b,e)},items:h,"data-testid":U.Cxz})]})]}),(0,ec.tZ)("div",{children:(0,ec.tZ)(X.A,{label:p("location-label"),children:(0,ec.tZ)(Q.L,{css:eD,cssList:eD,title:p("select-location"),selectedItem:w,onItemSelected:e=>{O(e),R(e,b,j)},items:Z,"data-testid":U.Iy})})})]}),S.length>0&&(0,ec.tZ)("div",{css:eI,children:(0,ec.tZ)(X.A,{label:p("platform-label"),children:(0,ec.tZ)(Q.L,{css:eD,cssList:eD,title:p("select-platform"),selectedItem:N,onItemSelected:e=>{k(e)},items:S,"data-testid":U.trY})})}),B&&!E&&(0,ec.tZ)("div",{css:eC,children:p("cannot-signup")}),(0,ec.BX)("div",{css:eg,children:[(0,ec.tZ)($.J,{id:"".concat(f,"-agreementCheckBox"),checked:P,onClick:()=>{C(!P)},css:ej}),(0,ec.tZ)("label",{css:ey,htmlFor:"".concat(f,"-agreementCheckBox"),children:a&&(0,ec.tZ)(er.D,{children:a})})]}),(0,ec.tZ)("button",{type:"submit",className:"btn text-button-text text-button-m bg-primary",onClick:F,"data-testid":U.Jwv,disabled:!(_&&E&&P&&(S.length>0&&N||0===S.length)),children:(0,ec.tZ)(K.T,{loading:A,size:20,children:p("subscribe")})}),I&&(0,ec.BX)("p",{css:eZ,children:[(0,ec.tZ)(Y.a,{}),p("email-submitting-error")]}),s&&(0,ec.tZ)(ee.H,{includeContainer:!0,css:ek,document:null==s?void 0:s.json})]}),(0,ec.tZ)("div",{css:ef,children:(0,ec.tZ)(et.t,{css:eb,src:(0,G.Jn)(r),alt:(0,G.EQ)(r)})})]})})})},PunchCard:function(e){let{item:t}=e;return"Daily Streak"===t.defaultViewType?(0,R.jsx)(eY,{item:t}):(0,R.jsx)(e9,{item:t})},NotificationSubscription:function(e){var t;let{item:l}=e,n=(null!==(t=l.displayMode)&&void 0!==t?t:"")==="addHome"?(0,R.jsx)(o4,{item:l}):(0,R.jsx)(tl.nW,{value:l.reward,children:(0,R.jsx)(st,{item:l})});return l.displayMode?(0,R.jsx)(eU.R,{children:(0,R.jsx)(oq.D,{style:o8,children:n})}):null}},sh=e=>{let t=e.findIndex(e=>(null==e?void 0:e.__typename)==="LayoutListView"&&(null==e?void 0:e.defaultViewType)===il.Floating);return-1!==t&&e.push(e.splice(t,1)[0]),e};function sf(e){let{layout:t}=e,l=(0,E.Z)(e,su),n=(0,A.H)(),i=(0,L.useMemo)(()=>sh(t),[t]);return(0,ec.tZ)("div",sp(sp({},l),{},{css:sv,children:i.filter(e=>null==e?void 0:e.__typename).map((e,t,l)=>{let i="small"===n.layoutSpacing&&"sm"||"md",r=t>0?l[t-1].__typename:"",o=t>0&&l[t+1]?l[t+1].__typename:"",s=e.__typename;if(!s)return null;if("ProductDetailPageKeyFeatureContainer"===s){var a;let{layoutStyle:l}=e,n=l===I.S.TEXT_FOCUS,o=null==e||null===(a=e.keyfeaturesCollection)||void 0===a||null===(a=a.items)||void 0===a?void 0:a[0],s=null==o?void 0:o.textAlignment;i=n&&!!(null!=o&&o.image)&&"none"||n&&"Bottom"===s&&"none"||n&&0===t&&"xs"||n&&i||e.header&&e.showHeader&&i||e.disablePadding&&"none"||"ProductDetailPageKeyFeatureContainer"===r&&"none"||"LayoutHero"===r&&"none"||0===t&&"none"||i}0===t&&"LayoutListView"===s&&(i="xxs"),(0===t&&"CtaStripe"===s&&e.showFullWidth||0===t&&["LayoutCategoryStripe","Container"].includes(s))&&(i="none"),"StoreBrowseGame"===s&&e.bg&&(i="none"),("LayoutHero"===s||"LayoutImageLinks"===s||"LayoutPromoBanner"===s||"LayoutIrInfo"===s)&&(i="none"),"CtaStripe"===s&&("CtaStripe"===r||"CtaStripe"===o)&&(i="xxs"),"PunchCard"===s&&(i="none"),"IframeEmbed"!==s||e.iframeHeight||(i="none-fullscreen"),"LayoutCardList"===s&&"account"===e.variant&&(i="none");let c=sx[s];return c&&(0,ec.tZ)("div",{"data-testid":"".concat(s,"-").concat(i),className:(0,T.Z)("none-fullscreen"!==i&&"empty:hidden last-of-type:mb-16","xxs"===i&&"my-4","xs"===i&&"my-8 lg:my-8","sm"===i&&"my-12 lg:my-16","md"===i&&"my-16 lg:my-24"),children:(0,ec.tZ)(c,{item:e})},(0,G.km)(e))})}))}},14438:function(e,t,l){"use strict";l.d(t,{p:function(){return u}});var n,i=l(77052),r=l(81963),o=l(5767),s=l(79901),a=l(23463),c=l(93384);let d=(0,r.iv)(n||(n=(0,i.Z)(["\n  top: ","px;\n  height: 0;\n  width: 0;\n  visibility: hidden;\n  ","\n\n  @media (min-width: ","px) {\n    top: ","px;\n  }\n"])),-a.RB-a.rZ,{position:"relative",display:"block"},o.Fg,-a.Tt-a.rZ);function u(e){let{id:t}=e;return(0,c.tZ)("span",{css:d,id:t?(0,s.U)(t):"",children:"\xa0"})}},36790:function(e,t,l){"use strict";l.d(t,{V:function(){return m}});var n=l(53084),i=l(43821),r=l(7114),o=l.n(r),s=l(73894),a=l(1481),c=l(22415),d=l(86351),u=l(31549);function m(e){var t,l;let{article:r}=e,m="/".concat((0,a.$d)(r.slug||"","news")).concat(r.slug),p=(0,s.b)();return(0,u.jsxs)("section",{className:"mx-auto mb-20 mt-8 max-w-7xl md:flex",children:[(0,u.jsx)("div",{className:"md:flex-none mx-auto mb-5 flex-wrap rounded object-contain w-48 h-48 cursor-pointer",children:(0,u.jsx)(o(),{prefetch:!1,href:m,legacyBehavior:!0,children:(0,u.jsx)(c.c,{image:r.doubleWidthImage})})}),(0,u.jsxs)("div",{className:"md:flex-1 pl-5",children:[(0,u.jsx)("div",{className:"py-3 text-4xl font-bold hover:underline",children:(0,u.jsx)(o(),{prefetch:!1,href:m,legacyBehavior:!0,children:r.title})}),(0,u.jsx)("div",{className:"font-bold mb-2",children:(0,u.jsx)(n.r,{date:r.releaseDate,language:p,timeZone:"UTC"})}),(0,u.jsx)(i.H,{document:null===(t=r.preview)||void 0===t?void 0:t.json}),(0,u.jsx)(d.r,{className:"mt-4",tags:null===(l=r.tagsCollection)||void 0===l?void 0:l.items})]})]})}},39301:function(e,t,l){"use strict";l.d(t,{e:function(){return b}});var n=l(21731),i=l(21317),r=l(31549);function o(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function s(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?o(Object(l),!0).forEach(function(t){(0,n.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):o(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}var a=e=>(0,r.jsx)("svg",s(s({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,r.jsx)("path",{fill:"currentColor",d:"M9.29 15.88 13.17 12 9.29 8.12a.996.996 0 1 1 1.41-1.41l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3a.996.996 0 0 1-1.41 0c-.38-.39-.39-1.03 0-1.42Z"})})),c=l(79852),d=l(7829),u=l(7114),m=l.n(u),p=l(62756),v=l(44194);function x(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function h(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?x(Object(l),!0).forEach(function(t){(0,n.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):x(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function f(e){let{children:t,buttonClasses:l,disabled:n,lightMode:i=!1,nextPage:o,router:s,selected:a,setPage:c}=e;return(0,r.jsx)(m(),{href:{pathname:s.pathname,query:h(h({},s.query),{},{page:o})},scroll:!0,children:(0,r.jsx)("button",{className:(0,d.Z)("flex flex-col w-10 h-10 justify-center items-center font-bold border rounded",{"border-black-50 text-black":i,"border-white-50 text-white":!i,"hover:bg-black-10":i&&!n,"hover:bg-white-10":!i&&!n,"opacity-40":n&&!a},l),type:"button",disabled:n,onClick:()=>c(o),children:t})})}function b(e){var t;let{lightMode:l=!1,pageCount:n}=e,o=(0,p.useRouter)(),{0:s,1:u}=(0,v.useState)(o.query.page?parseInt(null==o||null===(t=o.query)||void 0===t?void 0:t.page[0],10):1),m=Math.min(n,(0,c.d)("480px")?3:5),x=1===s,h=s===n,b=(0,v.useMemo)(()=>{let e=Math.floor(m/2),t=Math.max(1,s-e);return s+e>n&&(t=Math.max(1,n-m+1)),t},[s,n,m]),g=(0,v.useMemo)(()=>Array.from({length:m},(e,t)=>{let n=b+t,i=s===n;return(0,r.jsx)(f,{buttonClasses:i?(0,d.Z)("border-opacity-40",l?"bg-black-20":"bg-white-20"):"",disabled:i,lightMode:l,nextPage:n,router:o,selected:i,setPage:u,children:n})}),[l,s,b,o,m]);return(0,r.jsxs)("div",{className:"flex flex-row justify-center gap-3",children:[(0,r.jsx)(f,{disabled:x,lightMode:l,nextPage:s-1,router:o,selected:!1,setPage:u,children:(0,r.jsx)("span",{className:(0,d.Z)("text-2xl",{"opacity-40":x}),children:(0,r.jsx)(i.Z,{})})}),g,(0,r.jsx)(f,{disabled:h,lightMode:l,nextPage:s+1,router:o,selected:!1,setPage:u,children:(0,r.jsx)("span",{className:(0,d.Z)("text-2xl",{"opacity-40":h}),children:(0,r.jsx)(a,{})})})]})}},9023:function(e,t,l){"use strict";l.d(t,{f:function(){return s}});var n=l(92964),i=l(73329),r=l(73894),o=l(31549);function s(e){let{isPreOrder:t,sku:l}=e,{t:s}=(0,n.$G)(),a=(0,r.b)(),{drmExternalLinks:c}=(0,i.H)(),{releaseDate:d}=l,u=null==c?void 0:c[l.drm||""];if(!u)return(0,o.jsx)("span",{className:"type-body-s",children:s("you-own-this")});if(t&&void 0!==d){let e=new Date(d).toLocaleDateString(a,{year:"numeric",month:"long",day:"numeric"});return(0,o.jsx)("span",{className:"type-body-s",children:(0,o.jsxs)(n.cC,{i18nKey:"you-own-this-preordered",values:{drm:l.drm,releaseDate:e},children:["you own this. Launch via",(0,o.jsx)("a",{className:"underline",href:u,children:"drm"}),"available",(0,o.jsx)("span",{children:"date"})]})})}return(0,o.jsx)("span",{className:"type-body-s",children:(0,o.jsxs)(n.cC,{i18nKey:"you-own-this-open-in-launcher",values:{drm:l.drm},children:["you own this. Go to",(0,o.jsx)("a",{className:"underline",href:u,children:"drm"}),"to download"]})})}},78085:function(e,t,l){"use strict";l.d(t,{p:function(){return O}});var n=l(94905),i=l(84658),r=l(92964),o=l(62756),s=l(44194),a=l(23463),c=l(27940),d=l(9654),u=l(81953),m=l(73894),p=l(41196),v=l(36930),x=l(61865),h=l(90805),f=l(31549);function b(e){let{influencer:t,customMessage:l}=e;return(0,f.jsxs)(r.cC,{values:{influencer:t},defaults:l||"",i18nKey:l?"":"influencer-stripe-body",children:["Purchases from this site will support ",(0,f.jsx)("em",{children:"influencer"})]})}var g=l(87072),j=l(63836);function y(){let e=(0,s.useContext)(j.uD),t=(0,m.b)(),l=(0,s.useMemo)(()=>(0,g.dJ)(e),[e]);if(l>30){let l=new Date(e||0).toLocaleDateString(t,{year:"numeric",month:"long",day:"numeric"});return(0,f.jsxs)(r.cC,{i18nKey:"Available On Date",values:{displayReleaseDate:l},children:["Available on",(0,f.jsx)("span",{className:"font-bold",children:"Localized Date"})]})}return 0===l?(0,f.jsxs)(r.cC,{i18nKey:"game-launching-in-hours",children:["Game launching in...",(0,f.jsx)(h.T,{className:"font-bold"})]}):(0,f.jsxs)(r.cC,{i18nKey:"game-launching-in-days",values:{count:l},children:["Game launching in...",(0,f.jsx)("span",{className:"font-bold",children:"days!"})]})}function w(){let e=(0,s.useContext)(j.uD),t=(0,s.useMemo)(()=>(0,g.dJ)(e),[e]);return 0===t?(0,f.jsxs)(r.cC,{i18nKey:"sale-ends-in-hours",children:["sale ends in timer",(0,f.jsx)(h.T,{className:"font-bold"})]}):(0,f.jsxs)(r.cC,{i18nKey:"sale-ends-in-days",values:{count:t},children:["sale ends in days...",(0,f.jsx)("span",{className:"font-bold",children:"days!"})]})}function O(e,t){var l;let{t:g}=(0,r.$G)(),j=(0,m.b)(),O=(0,o.useRouter)(),N=(0,d.XR)(),k=null!==(l=null==N?void 0:N.releaseDate)&&void 0!==l?l:0,P=(0,v.fm)(),{isDiscountTimerActive:C,discountEndDate:Z}=(0,p.kc)(),S=Array.isArray(O.query.refn)?O.query.refn[0]:O.query.refn,D=!!(null!=N&&N.isPhysical),_=(0,u.n)(j,null==N?void 0:N.currency),{hasTable:E}=(0,c.V)(),{0:I,1:T}=(0,s.useState)(!C),{0:L,1:A}=(0,s.useState)(()=>k<P);(0,s.useEffect)(()=>{A(k<P)},[k,P]);let G=(0,s.useMemo)(()=>!!D&&(!t||!E),[D,t,E]),M=a.JD&&(null==N?void 0:N.amountToGetFreeShipping)&&(null==N?void 0:N.amountToGetFreeShipping)>0;return t&&E&&(M=!1),(0,s.useMemo)(()=>{let t=[];if((null==N?void 0:N.purchaseState)===n.Aw.owned)return[];if(G&&t.unshift({key:"physical-sku",icon:"IconInfo",children:(0,f.jsx)("span",{children:g("purchasing-physical-copy")})}),C&&Z&&!I&&t.push({key:"discount-countdown",icon:"IconClock",children:(0,f.jsx)(h.I,{onDone:()=>T(!0),endDate:Z,children:(0,f.jsx)(w,{})},null==N?void 0:N.skuId)}),N&&M){let e=_(N.amountToGetFreeShipping||0);(0,v.Fc)(N)||(0,v.W7)(N)||v.G5?t.unshift({key:"free-shipping-message",icon:"IconShipping",children:(0,f.jsx)("span",{children:g("qualified-for-free-shipping")})}):t.unshift({key:"amount-to-shipping-message",icon:"IconShipping",children:(0,f.jsxs)(r.cC,{i18nKey:"threshold-free-shipping",values:{amount:e},children:["Get FREE shipping with orders over ",(0,f.jsx)("span",{children:"amount"})]})})}let l=(0,i.E)(e).reduce((e,t)=>((null==t?void 0:t.type)==="Influencer"?S&&e.push({key:(0,x.km)(t),icon:"IconSale",children:(0,f.jsx)(b,{customMessage:null==t?void 0:t.customMessage,influencer:S.replace(/<|>/g,"")})}):(null==t?void 0:t.type)==="Release Info"&&k&&!L?e.push({key:(0,x.km)(t),icon:"IconClock",children:(0,f.jsx)(h.I,{onDone:()=>A(!0),endDate:k,children:(0,f.jsx)(y,{})},null==N?void 0:N.skuId)}):e.push({key:(0,x.km)(t),icon:(t.icon||"").replace(/(\w+)SVG/,"Icon$1"),children:t.customMessage}),e),[]);return t.push(...l),0===t.length&&t.push({key:"placeholder",icon:"",children:(0,f.jsx)(f.Fragment,{})}),t},[N,G,C,Z,M,e,g,_,S,I,L,k])}},66623:function(e,t,l){"use strict";l.d(t,{D:function(){return a},t:function(){return s}});var n=l(38712),i=l(92964),r=l(44194),o=l(31549);let s=(0,r.createContext)({});function a(e){let{children:t,style:l}=e,{t:a}=(0,i.$G)(),{0:c,1:d}=(0,r.useState)(null),{0:u,1:m}=(0,r.useState)(!1),p=(0,r.useMemo)(()=>({setContent:d,setIsOpen:m}),[d,m]);return(0,o.jsxs)(s.Provider,{value:p,children:[t,(0,o.jsx)(n.e,{isOpen:u,labelClose:a("Close"),requestClose:()=>m(!1),style:l,children:c})]})}s.displayName="ModalContext"},79178:function(e,t,l){"use strict";l.d(t,{V:function(){return n},Z:function(){return i}});let{Provider:n,useState:i}=(0,l(69684).l)({})},95105:function(e,t,l){"use strict";function n(e,t){let l=e;for(let e in t)l=l.replace("{{".concat(e,"}}"),"".concat(t[e]));return l}l.d(t,{V:function(){return n}})},56013:function(e,t,l){"use strict";l.d(t,{ip:function(){return u}});var n,i=l(21731),r=l(99927),o=l(23463),s=l(36930);function a(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}l(73656);let c=((n={}).Info="info",n.History="history",n.PaymentMethods="payment_methods",n),d=async(e,t,l,n,c,d)=>{let u=function(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?a(Object(l),!0).forEach(function(t){(0,i.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):a(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}({"Content-Type":"application/json","Accept-Language":n},(0,s.jP)(l)),m=await fetch("".concat(o.Vw,"/checkout/token/user-account"),{method:"POST",body:JSON.stringify({userId:t,ui_opts:{mode:e,theme:c||"take2",size:d},language:n}),headers:u});if(!m.ok)throw new r.V(m);return m.json()},u=async function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return d(c.PaymentMethods,...t)}},21317:function(e,t,l){"use strict";var n=l(21731),i=l(31549);function r(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function o(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?r(Object(l),!0).forEach(function(t){(0,n.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):r(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}t.Z=e=>(0,i.jsx)("svg",o(o({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,i.jsx)("path",{fill:"currentColor",d:"M14.71 15.88 10.83 12l3.88-3.88a.996.996 0 1 0-1.41-1.41L8.71 11.3a.996.996 0 0 0 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42Z"})}))},17478:function(e,t,l){"use strict";var n=l(21731),i=l(31549);function r(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function o(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?r(Object(l),!0).forEach(function(t){(0,n.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):r(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}t.Z=e=>(0,i.jsx)("svg",o(o({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,i.jsx)("path",{fill:"currentColor",d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-8.29 13.29a.996.996 0 0 1-1.41 0L5.71 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.58 7.59Z"})}))},79017:function(e,t,l){"use strict";var n=l(21731),i=l(31549);function r(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function o(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?r(Object(l),!0).forEach(function(t){(0,n.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):r(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}t.Z=e=>(0,i.jsx)("svg",o(o({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,i.jsx)("path",{fill:"currentColor",d:"M11 7h2v2h-2V7Zm0 4h2v6h-2v-6Zm1-9C6.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 8Z"})}))},66641:function(e,t,l){"use strict";var n=l(21731),i=l(31549);function r(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function o(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?r(Object(l),!0).forEach(function(t){(0,n.Z)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):r(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}t.Z=e=>(0,i.jsx)("svg",o(o({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,i.jsx)("path",{fill:"currentColor",d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3ZM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1Zm1 4h-2v-2h2v2Z"})}))},18109:function(e,t,l){"use strict";l.d(t,{T:function(){return i}});var n=l(31549);function i(){return(0,n.jsx)("div",{className:"z-[99] bg-[rgb(0_0_0_/_.3)] w-full h-full fixed inset-0 flex items-center justify-center",children:(0,n.jsx)("div",{className:"absolute right-1/2 bottom-1/2  transform translate-x-1/2 translate-y-1/2 ",children:(0,n.jsx)("div",{className:"border-t-transparent border-solid animate-spin rounded-full border-white border-8 h-24 w-24"})})})}},95370:function(e){e.exports={card:"card_card__fYlLW",cardTitle:"card_cardTitle__yG8ga",cardContent:"card_cardContent__3gWp5",cardButton:"card_cardButton__To066"}},26326:function(e){e.exports={main:"faq_main__SpV48"}},15908:function(e){e.exports={button:"keyFeature_button__9QWQk"}},3640:function(e){e.exports={submitButton:"layoutForm_submitButton__6_23M"}},95195:function(e){e.exports={animatedFadeIn:"layoutHero_animatedFadeIn__tH03_",fadeIn:"layoutHero_fadeIn__30kCX",header:"layoutHero_header__1YnP1",mobileFullWidthDescription:"layoutHero_mobileFullWidthDescription__4KYAu",mobileFullWidthButton:"layoutHero_mobileFullWidthButton__t1VDv",addToCalendarDropdown:"layoutHero_addToCalendarDropdown__ibsb3"}},22277:function(e){e.exports={secondaryButton:"subscription_secondaryButton__Yaalu",border:"subscription_border__WweMx",subheading:"subscription_subheading__dLBfZ",tableHeader:"subscription_tableHeader__4n__9",dunningBanner:"subscription_dunningBanner__0FDJQ",dunningIcon:"subscription_dunningIcon__wcbtU",dialog:"subscription_dialog___8KR_"}},68927:function(e){e.exports={trackerContainer:"streakTracker_trackerContainer__lAVbl",trackerHeader:"streakTracker_trackerHeader__lXs6n",trackerHeaderDescription:"streakTracker_trackerHeaderDescription__xor9G",trackerHeaderCounter:"streakTracker_trackerHeaderCounter__AFScp",trackerBonusCaption:"streakTracker_trackerBonusCaption__69lFq",trackerSecondary:"streakTracker_trackerSecondary__Py6d1",progressBarContainer:"streakTracker_progressBarContainer__FX4Xq",progressBar:"streakTracker_progressBar__4_gZy",trackerGift:"streakTracker_trackerGift__gpotG"}},64929:function(e){e.exports={main:"tileattribute_main__mS9nx",icon:"tileattribute_icon__6jsUJ",popup:"tileattribute_popup__CAuxS",twentyFourHrsCountdownBg:"tileattribute_twentyFourHrsCountdownBg__S7_xh",twentyFourHrsCountdownText:"tileattribute_twentyFourHrsCountdownText___fVw2"}},99418:function(e){e.exports={main:"listview_main__SH8WP",title:"listview_title__iN_Mi",table:"listview_table__UDLS9",floating:"listview_floating__yat4F"}},23032:function(e){e.exports={main:"notificationSubscription_main__IQxmp",modal:"notificationSubscription_modal__zbyAN",popup:"notificationSubscription_popup__5NzaQ",popupTop:"notificationSubscription_popupTop__Rz9NL",popupBottom:"notificationSubscription_popupBottom__CnETc",button:"notificationSubscription_button__GJ6eW"}},13671:function(e){e.exports={main:"punchCard_main__CDy69",button:"punchCard_button__ODLax",timer:"punchCard_timer__8JbvA"}}}]);