PageSourceSearch

https://www.monsterlegendsgame.com/_next/static/chunks/8662-6fd92b35d01e860a.js

js monsterlegendsgame.com collected 2026-09-25 03:21:10 UTC 335,285 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{3026:e=>{e.exports={main:"gridLayout_main__a66bG"}},12697:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(41371),l=n(39051),i=n(30940);function o(e){let{image:t}=e;return t?(0,i.Y)(r.V,{className:"[&>img]:rounded [&>img]:object-cover [&>img]:inline [&>img]:w-full [&>img]:h-full",src:(0,l.VG)(t),alt:(0,l.GT)(t)}):null}},13324:e=>{e.exports={main:"ApkDownloadBanner_main__whAZ8",author:"ApkDownloadBanner_author__XufzH",description:"ApkDownloadBanner_description__gwGqU",installing:"ApkDownloadBanner_installing__oOor0",button:"ApkDownloadBanner_button__omsPc"}},16668:e=>{e.exports={horizontalCategoryStripe:"HorizontalCategoryStripe_horizontalCategoryStripe__M5b1u",item:"HorizontalCategoryStripe_item__kEvnj",label:"HorizontalCategoryStripe_label__jGopH",highlighted:"HorizontalCategoryStripe_highlighted__rnY_M",active:"HorizontalCategoryStripe_active__MBV9v"}},31662: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"}},32920:e=>{e.exports={banner:"DailyStreakHeader_banner__oV71x"}},43480:e=>{e.exports={paragraph:"SectionText_paragraph__5GQWH"}},44696: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"}},46222:e=>
1{e.exports={main:"punchCard_main__CDy69",compactBackground:"punchCard_compactBackground__uuhsJ",button:"punchCard_button__ODLax",title:"punchCard_title__jN_Hu",subtitle:"punchCard_subtitle__qevNt",activeStamp:"punchCard_activeStamp__Db_Ym",timer:"punchCard_timer__8JbvA",reward:"punchCard_reward__sjXae"}},50154:(e,t,n)=>{"use strict";n.d(t,{Ni:()=>c,zA:()=>s});var r=n(4526),l=n(89303),i=n(59125);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e){let t=null==e?void 0:e.upsellUi;return(null==t?void 0:t.__typename)==="MiniGameUpsellConfig"?t:null}function c(e){var t,n,r,o,s,c,u,d,m,p;let h=null!=(t=null==e?void 0:e.renderer)?t:i.Z.spinTheWheel;if(!e)return{renderer:h};let g={renderer:h,paletteId:null!=(n=null==(r=e.palette)||null==(r=r.sys)?void 0:r.id)?n:void 0,rulesTitle:null!=(o=null==(s=e.rulesTitle)?void 0:s.text)?o:void 0,rulesTerms:function(e){if(!e)return;let t=(0,l.l)(e).split(",").map(e=>e.trim()).filter(Boolean);return t.length>0?t:void 0}(null==(c=e.rulesTerms)||null==(c=c.richText)?void 0:c.json)};if(h!==i.Z.spinTheWheel)return g;let f=null==(u=e.palette)?void 0:u.tokens;return a(a({},g),{},{renderer:i.Z.spinTheWheel,palette:function(e){if(!e)return;let t=[];for(let n=1;n<=8;n+=1){let r=e["games.slice".concat(n,".background.color")];if(!r)break;t.push(r)}return t.length>0?t:void 0}(f),topImageUrl:null!=(d=null==(m=e.topImage)?void 0:m.url)?d:void 0,spotlight:null!=(p=e.spotlight)?p:void 0})}},57682:e=>{e.exports={animatedFadeIn:"layoutHero_animatedFadeIn__tH03_",fadeIn:"layoutHero_fadeIn__30kCX",header:"layoutHero_header__1YnP1",mobileFullWidthDescription:"layoutHero_mobileFullWidthDescription__4KYAu",mobileFullWidthButton:"layoutHero_mobileFullWidthButton__t1VDv"}},59125:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>l});let l=((r={}).spinTheWheel="spin_the_wheel",r.scratchCard="scratch_card",r.mysteryBox="mystery_box",r)},63212:e=>{e.exports={text:"DecoratedHeader_text__mAq5g",headerSkin:"DecoratedHeader_headerSkin__F22V_"}},69793:e=>{e.exports={main:"faq_main__SpV48"}},70185:e=>{e.exports={button:"keyFeature_button__9QWQk"}},72027:e=>{e.exports={card:"card_card__fYlLW",cardShadow:"card_cardShadow__plvnS",cardTitle:"card_cardTitle__yG8ga",cardContent:"card_cardContent__3gWp5",cardButton:"card_cardButton__To066"}},74520:(e,t,n)=>{"use strict";n.d(t,{i:()=>ga});var r,l,i,o,a,s,c,u,d,m,p,h,g,f,v,b,x,y,w,j,O,k,A,C,P,S,N,_,D,I,E,T,L,H,Y,R,M,B,F,z,W,U,V,G,Z,J,q,K,$,Q,X,ee,et,en,er,el,ei,eo,ea,es,ec,eu,ed,em,ep,eh,eg,ef,ev,eb,ex,ey,ew,ej,eO,ek,eA,eC,eP,eS,eN,e_,eD,eI,eE,eT,eL,eH,eY,eR,eM,eB,eF,ez,eW,eU,eV,eG,eZ,eJ,eq,eK,e$,eQ,eX,e0,e1,e2,e5,e4,e3,e6,e8,e9,e7,te,tt,tn,tr,tl,ti,to,ta,ts,tc,tu,td,tm,tp,th,tg,tf,tv,tb,tx,ty,tw,tj,tO,tk,tA,tC,tP,tS,tN,t_,tD,tI,tE,tT,tL,tH,tY,tR,tM=n(4526),tB=n(65162),tF=n(58615),tz=n(11105),tW=n.n(tz),tU=n(64025),tV=n(75285),tG=n(59232),tZ=n(6917),tJ=n(50158),tq=n(6459),tK=n(94150),t$=n(72102),tQ=n(300),tX=n(83111),t0=n(71435),t1=n(33426),t2=n(4707),t5=n(30940);let t4=["children","duration","id"];function t3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t3(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let t8=(0,tQ.AH)(d||(d=(0,t$.A)(["\n  overflow: hidden;\n  height: 100%;\n\n  &::-webkit-scrollbar {\n    display: none;\n  }\n"]))),t9=(0,tQ.AH)(m||(m=(0,t$.A)(["\n  overflow-x: visible;\n  position: relative;\n  height: 100%;\n  width: 100%;\n  display: grid;\n  grid-template-areas: 'slide';\n  grid-auto-rows: minmax(min-content, max-content);\n\n  > div {\n    grid-area: slide;\n    transition-property: opacity;\n    transition-timing-function: ease-out;\n    transition-duration: 0.2s;\n    width: 100%;\n  }\n"])));function t7(e){let{children:t,duration:n,id:r}=e,l=(0,tK.A)(e,t4),{0:i,1:o}=(0,tB.useState)(0),a=(0,tB.useRef)(null),s=(0,tB.useContext)(t1.Rd),c=(0,tB.useContext)(t1.Ul),u=tB.Children.toArray(t).length;function d(e){let t=i+e%u;t<0&&(t+=u),t>u-1&&(t-=u),o(t)}function m(){d(-1)}function p(){d(1)}function h(e){e!==i&&o(e)}return(0,tB.useImperativeHandle)(s,()=>({next:p,back:m,goToPage:h,navigateBy:d})),(0,tB.useEffect)(()=>{c&&c({type:"SET_SLIDER_STATE",payload:{enableLoop:!0,totalPages:u,currentPage:i,lowestVisibleIndex:i,hasMovedOnce:!0,isFreeFlow:!1}})},[c,i,u]),(0,t2.o)(a,e=>{"right"===e&&m(),"left"===e&&p()},65),(0,t5.Y)("section",t6(t6({id:r,"aria-live":"polite","aria-relevant":"text","aria-label":"carousel opacity slider",css:[t8]},l),{},{children:(0,t5.Y)("div",{ref:a,css:t9,children:tB.Children.map(t,(e,t)=>
1(0,tB.cloneElement)(e,{"aria-hidden":t!==i||void 0,style:{transitionDuration:"".concat(n,"s"),opacity:+(t===i)}}))})}))}var ne=n(52732),nt=n(61305);function nn(){return(nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let nr=function(e){return tB.createElement("svg",nn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{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",style:{fill:"currentColor"}}))};function nl(){return(nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let ni=function(e){return tB.createElement("svg",nl({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{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",style:{fill:"currentColor"}}))},no=(0,tQ.AH)(p||(p=(0,t$.A)(["\n  ","\n  background: rgba(var(--color-neutral-200-rgb), 0.5);\n  border: solid 1px rgba(var(--color-white-rgb), 0.2);\n"])),{display:"inline-block",borderRadius:"0.25rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"1rem",paddingBottom:"1rem",color:"var(--text-color-primary)"}),na=(0,tQ.AH)(h||(h=(0,t$.A)(["\n  ","\n\n  [dir='rtl'] & {\n    transform: scaleX(-1);\n  }\n"])),{height:"1.5rem",width:"1.5rem",color:"var(--text-color-primary)"});function ns(e){let{side:t}=e;return(0,t5.Y)("div",{css:no,children:"left"===t?(0,t5.Y)(nr,{css:na}):(0,t5.Y)(ni,{css:na})})}let nc=["children","pause","onClick"],nu=["idSlider","children","maxWidth","mobileBreak","carouselDots","backLabel","nextLabel","overrideFocusStyle"],nd=["children"];function nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nm(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let nh={pointerEvents:"auto",marginLeft:"1rem",marginRight:"1rem",display:"block",padding:"0px",lineHeight:"1",opacity:"0.6",":focus":{opacity:"1",outline:"2px solid transparent",outlineOffset:"2px"}};function ng(e){let{children:t,pause:n,onClick:r}=e,l=(0,tK.A)(e,nc);return(0,t5.Y)("button",np(np({},l),{},{onFocus:n,css:nh,onClick:r,type:"button",children:t}))}let nf=(0,tQ.AH)(f||(f=(0,t$.A)(["\n  ","\n  position: relative;\n  transition: background-color 0.2s ease-out;\n"])),{position:"relative",backgroundColor:"var(--color-neutral-100)"}),nv={position:"absolute",bottom:"1rem",left:"1rem",right:"1rem",margin:"auto",display:"flex",alignItems:"center",justifyContent:"center"},nb={pointerEvents:"none",visibility:"hidden",position:"absolute",inset:"0px",display:"flex",alignItems:"center",justifyContent:"space-between","@media (min-width: 768px)":{visibility:"visible"}};function nx(e){var t;let{idSlider:n,children:r,maxWidth:l,mobileBreak:i,carouselDots:o,backLabel:a,nextLabel:s,overrideFocusStyle:c}=e,u=(0,tK.A)(e,nu),{currentPage:d,next:m,back:p,pause:h}=(0,t1.fP)(15e3),f=tB.Children.toArray(r)[d],v=(0,tB.useCallback)(()=>h(),[h]),b=null!=(t=null==f?void 0:f.props.backgroundColor)?t:void 0;return(0,t5.FD)("div",np(np({},u),{},{css:nf,style:{backgroundColor:b},children:[(0,t5.FD)("div",{css:(0,tQ.AH)(g||(g=(0,t$.A)(["\n  ",";\n\n  --text-color-primary-rgb: var(--color-white-rgb);\n  --text-color-primary: var(--color-white);\n\n  max-width: ",";\n"])),{position:"relative",marginLeft:"auto",marginRight:"auto",marginTop:"0px",marginBottom:"0px"},l),children:[(0,t5.Y)(t7,{id:n,duration:.2,children:tB.Children.map(r,e=>(0,t5.Y)(ne.q,{overrideFocusStyle:c,onFocus:v,children:(0,tB.cloneElement)(e,{maxWidth:l,mobileBreak:i})}))}),tB.Children.count(r)>1&&(0,t5.FD)("div",{css:nb,children:[(0,t5.Y)(ng,{"aria-label":a,pause:h,onClick:p,"data-testid":t0.NL,children:(0,t5.Y)(ns,{side:"left"})}),(0,t5.Y)(ng,{"aria-label":s,pause:h,onClick:m,"data-testid":t0.ZA,children:(0,t5.Y)(ns,{side:"right"})})]})]}),o&&(0,t5.Y)("div",{onFocus:h,css:nv,"data-testid":t0.Qo,children:o})]}))}function ny(e){let{children:t}=e,n=(0,tK.A)(e,nd);return(0,t5.Y)(nt.F,{children:(0,t5.Y)(nx,np(np({},n),{},{children:t}))})}var nw=n(19306);let nj=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cover";return(0,tQ.AH)(v||(v=(0,t$.A)(["\n  object-fit: ",";\n"])),e&&["cover","contain"].includes(e)?e:t)};var nO=n(95643);let nk=((r={}
1).FULL_WIDTH="Full Width",r.PARTIAL_WIDTH="Partial Width",r.MOBILE_FULL_WIDTH="Mobile Full Width",r);var nA=n(41371);function nC(e){let{logo:t,logoAlt:n,mobileBreak:r,layoutStyle:l=nk.FULL_WIDTH}=e,i=l===nk.PARTIAL_WIDTH,o=l===nk.MOBILE_FULL_WIDTH;return t?(0,t5.Y)(nA.V,{src:t,css:[(0,tQ.AH)(x||(x=(0,t$.A)(["\n  > img {\n    ","\n    max-width: 256px;\n    object-position: center bottom;\n  }\n\n  @media (min-width: ",") {\n    > img {\n      ","\n    }\n  }\n"])),{height:"100%",width:"100%",objectFit:"contain"},r||0,{objectPosition:"left bottom"}),!i&&(0,tQ.AH)(y||(y=(0,t$.A)(["\n  > img {\n    max-height: ","px;\n  }\n\n  @media (min-width: ",") {\n    > img {\n      height: ","px;\n      ","\n    }\n  }\n"])),o?160:96,r||0,128,{maxHeight:"100%"})],alt:n||"",width:256,transparent:!0,loading:"eager"}):null}var nP=n(40947),nS=n(30279);function nN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(tX.cJ,"px"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(tX.sF-1,"px");return(0,nS.Q)(["(min-width: ".concat(e,") and (max-width: ").concat(t,")")],[!0],!1)}let n_=(0,tQ.AH)(w||(w=(0,t$.A)(["\n  > img {\n    ","\n    object-position: center center;\n  }\n"])),{position:"absolute",inset:"0px",height:"100%",width:"100%",objectFit:"cover"});var nD=n(46187);let nI=(0,tQ.i7)(j||(j=(0,t$.A)(["\n  from {\n    transform: scale(1.2);\n  }\n\n  to {\n    transform: none;\n  }\n"]))),nE=(0,tQ.i7)(O||(O=(0,t$.A)(["\n  from {\n    opacity: 0\n  }\n\n  to {\n    opacity: 1\n  }\n"]))),nT=(0,tQ.AH)(k||(k=(0,t$.A)(["\n  > img {\n    animation: "," 4s ease-out 0s both;\n\n    @media (min-width: ","px) {\n      animation:\n        "," 4s ease-out 0s both,\n        "," 4s ease-out 0s both;\n    }\n  }\n"])),nE,tX.cJ,nI,nE),nL=(0,tQ.AH)(A||(A=(0,t$.A)(["\n  ","\n  object-position: center center;\n  animation: "," 2s ease-in 0.3s both;\n"])),{position:"absolute",inset:"0px",display:"block",height:"100%",width:"100%",objectFit:"cover"},nE);function nH(e){let{inView:t,backgroundColor:n,lazyLoadBackground:r,heroImage:l,heroImageMedium:i,heroVideo:o,description:a,maxWidth:s,animateImage:c=!0,mobileBreak:u,backgroundContainerStyle:d,backgroundImageStyle:m,layoutStyle:p}=e,h=(0,nP.a)(u),g=nN(u),f="linear-gradient(\n      70deg,\n      rgba(".concat(n,", 1),\n      rgba(").concat(n,", 0.7) 33%,\n      rgba(").concat(n,", 0) 66%\n    )"),v="linear-gradient(\n      -70deg,\n      rgba(".concat(n,", 1),\n      rgba(").concat(n,", 0.7) 33%,\n      rgba(").concat(n,", 0) 66%\n    )"),b="linear-gradient(\n      0deg,\n      rgba(".concat(n,", 1),\n      rgba(").concat(n,", 0.7) 40%,\n      rgba(").concat(n,", 0.2) 100%\n    )"),x=p===nk.MOBILE_FULL_WIDTH,y="".concat(g&&i||l),w=c&&(!!h||!o),j=(0,tQ.AH)(C||(C=(0,t$.A)(["\n    background-color: rgb(",");\n    position: ",";\n    height: 0;\n    padding-bottom: ","%;\n    overflow: hidden;\n    @media (min-width: ",") {\n      position: initial;\n      height: unset;\n      padding-bottom: unset;\n      transform: unset;\n    }\n\n    &::after {\n      content: '';\n      ","\n      ","\n      @media (min-width: ",") {\n        ","\n        margin-bottom: unset;\n      }\n      @media (min-width: ",") {\n        background:\n          linear-gradient(\n            to right,\n            rgba(",", 1),\n            rgba(",", 0) 12rem\n          ),\n          linear-gradient(\n            to left,\n            rgba(",", 1),\n            rgba(",", 0) 12rem\n          ),\n          ",";\n      }\n\n      [dir='rtl'] & {\n        @media (min-width: ",") {\n          ","\n        }\n        @media (min-width: ",") {\n          background:\n            linear-gradient(\n              to right,\n              rgba(",", 1),\n              rgba(",", 0) 12rem\n            ),\n            linear-gradient(\n              to left,\n              rgba(",", 1),\n              rgba(",", 0) 12rem\n            ),\n            ",";\n        }\n      }\n    }\n  "])),n,x?"unset":"relative",9/16*(x?20:100),u,{position:"absolute",inset:"0px"},x?"background: ".concat(b,";"):"",u,x?"background: ".concat(b,";"):"background: ".concat(f,";"),s,n,n,n,n,x?b:f,u,x?"background: ".concat(b,";"):"background: ".concat(v,";"),s,n,n,n,n,x?b:v);return(0,t5.FD)("div",{css:[j,d],children:[(0,t5.Y)(nA.V,{src:y,alt:a||"",css:[n_,w&&nT,m],loading:r?"lazy":"eager"}),p===nk.PARTIAL_WIDTH&&i&&(0,t5.Y)(nA.V,{src:i,alt:a||"",css:[n_,w&&nT,m,u&&(0,tQ.AH)(P||(P=(0,t$.A)(["\n                display: none;\n                @media (min-width: ",") and (max-width: ","px) {\n                  display: block;\n                }\n              "])),u,tX.sF-1)],loading:r?"lazy":"eager"}),o&&(p===nk.MOBILE_FULL_WIDTH||!h)&&(0,t5.Y)(nD.C,{allowMultiple:!0,id:"hero-".concat(o),play:t,css:nL,src:o,poster:y,muted:!0,loop:!0})]})}let nY=["className","heroImage","heroImageMedium","heroVideo","logo","logoAlt","description","backgroundColor","maxWidth","mobileBreak","desktopHeight","tag","animateImage","tagStyle","bgScaleMode","bgX","bgY","layoutStyle","children","lazyLoadBackgroun
1d"];function nR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nR(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let nB=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(tX.cJ,"px"),t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(0,tQ.AH)(N||(N=(0,t$.A)(["\n        @media (min-width: ",") {\n          display: flex;\n          flex-direction: row-reverse;\n        }\n      "])),e):void 0},nF=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(tX.cJ,"px"),t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(0,tQ.AH)(_||(_=(0,t$.A)(["\n        @media (min-width: ",") {\n          ","\n          width: 50%;\n        }\n\n        @media (min-width: ","px) {\n          width: 65%;\n        }\n\n        &::after {\n          background: unset;\n        }\n      "])),e,{position:"relative",padding:"0px"},tX.sF):void 0},nz=(0,tQ.AH)(I||(I=(0,t$.A)(["\n  position: initial;\n"]))),nW=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(tX.cJ,"px"),t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(0,tQ.AH)(E||(E=(0,t$.A)(["\n        width: 100%;\n        @media (min-width: ",") {\n          width: 50%;\n        }\n\n        @media (min-width: ","px) {\n          width: 35%;\n        }\n      "])),e,tX.sF):void 0};function nU(e){let t,n,r,{className:l,heroImage:i,heroImageMedium:o,heroVideo:a,logo:s,logoAlt:c,description:u,backgroundColor:d,maxWidth:m,mobileBreak:p,desktopHeight:h=640,tag:g,animateImage:f=!0,tagStyle:v,bgScaleMode:x,bgX:y,bgY:w,layoutStyle:j=nk.FULL_WIDTH,children:O,lazyLoadBackground:k}=e,A=(0,tK.A)(e,nY),C=d&&(0,nO.V)(d)||"var(--color-neutral-100-rgb)",[P,N]=(0,nw.Wx)({threshold:.6}),_=j===nk.PARTIAL_WIDTH;return(0,t5.FD)("div",{ref:P,className:null!=l?l:void 0,css:nB(p,_),children:[(0,t5.Y)(nH,{inView:N,backgroundColor:C,lazyLoadBackground:k,heroImage:i,heroImageMedium:o,heroVideo:a,description:u,maxWidth:m,animateImage:f,mobileBreak:p,backgroundContainerStyle:nF(p,_),backgroundImageStyle:[(t=null!=y?y:50,n=null!=w?w:50,r=null!=x?x:"",(0,tQ.AH)(D||(D=(0,t$.A)(["\n  img {\n    ","\n    ","\n    object-position: ","% ","%;\n  }\n"])),{height:"100%",width:"100%"},nj(r),t,n)),_&&nz],layoutStyle:j}),(0,t5.FD)(g,nM(nM({},A),{},{css:[(e=>{let{desktopHeight:t,mobileBreak:n,bg:r,layoutStyle:l}=e;return(0,tQ.AH)(S||(S=(0,t$.A)(["\n  ","\n  ","\n\n  @media (min-width: ",") {\n    min-height: ","px;\n    margin-top: 0;\n    ","\n    align-items: ",";\n    justify-content: ",";\n  }\n"])),{position:"relative",display:"flex",width:"100%",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"2.5rem",paddingBottom:"2.5rem",color:"var(--text-color-primary)"},(0,tQ.AH)(b||(b=(0,t$.A)(["\n  text-shadow: 0 1px 4px\n    var(--color-text-shadow, rgba(",", 0.8));\n"])),r||"var(--color-black-rgb)"),n||0,t||0,{display:"inline-flex",paddingLeft:"5rem",paddingRight:"5rem"},l===nk.MOBILE_FULL_WIDTH?"center":"start",l===nk.MOBILE_FULL_WIDTH?"center":"")})({desktopHeight:h,mobileBreak:p,bg:C,layoutStyle:j}),nW(p,_),v],children:[(0,t5.Y)(nC,{logo:s,logoAlt:c,mobileBreak:p,layoutStyle:j}),O]}))]})}function nV(){return(nV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function nG(){return(nG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let nZ=function(e){return tB.createElement("svg",nG({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{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
1-.86.59-1.41 0-.55-.23-1.06-.59-1.42ZM6.5 8C5.67 8 5 7.33 5 6.5S5.67 5 6.5 5 8 5.67 8 6.5 7.33 8 6.5 8Z",style:{fill:"currentColor"}}))};function nJ(){return(nJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function nq(){return(nq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function nK(){return(nK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function n$(){return(n$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let nQ=["icon","children"];function nX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nX(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let n1=(0,tQ.AH)(T||(T=(0,t$.A)(["\n  ","\n  min-height: 1.125rem;\n\n  em,\n  b {\n    ","\n  }\n"])),{display:"flex",maxWidth:"24rem",alignItems:"center",fontWeight:"normal",color:"rgba(var(--text-color-primary-rgb), 0.8)",fontSize:".688rem",lineHeight:"150%",textTransform:"none",letterSpacing:"0.05rem"},{fontWeight:"bold",color:"rgba(var(--text-color-primary-rgb), 1.0)",fontSize:".688rem",lineHeight:"125%",textTransform:"none",letterSpacing:"0.05rem"}),n2=(0,tQ.AH)(L||(L=(0,t$.A)(["\n  ","\n  margin-inline-end: 0.25rem;\n"])),{display:"inline-block",height:"auto",width:"1rem",flex:"none",fill:"currentColor"}),n5={IconClock:function(e){return tB.createElement("svg",nV({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{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",style:{fill:"currentColor"}}))},IconSale:nZ,IconCheckCircleOutline:function(e){return tB.createElement("svg",nJ({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Zm3.88-11.71L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0Z",style:{fill:"currentColor"}}))},IconInfo:function(e){return tB.createElement("svg",nq({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1Zm1-8h-2V7h2v2Z",style:{fill:"currentColor"}}))},IconShipping:function(e){return tB.createElement("svg",nK({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M19.5 8H17V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2 0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h1c.55 0 1-.45 1-1v-3.33c0-.43-.14-.85-.4-1.2L20.3 8.4c-.19-.25-.49-.4-.8-.4ZM6 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm13.5-8.5 1.96 2.5H17V9.5h2.5ZM18 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Z",style:{fill:"currentColor"}}))},IconInfoOutline:function(e){return tB.createElement("svg",n$({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{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",style:{fill:"currentColor"}}))}};function n4(e){let{icon:t,children:n}=e,r=(0,tK.A)(e,nQ);if(!n)return null;let l=n5[t||""];return(0,t5.FD)("div",n0(n0({css:n1},r),{},{children:[l&&(0,t5.Y)(l,{css:n2}),(0,t5.Y)("span",{children:n})]}))}let n3=["messages"];function n6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?n6(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let n9=(0,tQ.AH)(H||(H=(0,t$.A)(["\n  &:not(:first-of-type) {\n    ","\n  }\n"])),{marginTop:"0.5rem"});function n7(e){let{messages:t}=e,n=(0,tK.A)(e,n3);return t.length?(0,t5.Y)("ul",n8(n8({},n),{},{children:t.map(e=>(0,t5.Y)("li",{css:n9,children:(0,t5.Y)(n4,n8({},e))},e.key))})):null}var re=n(98771),rt=n(61363);let rn=["index","tagStyle","animateImage","heading","text","ctaMessages","promoTag","promoDescription","layoutStyle","children"];function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let ri=(0,tQ.AH)(Y||(Y=(0,t$.A)(["\n  @media (min-width: ","px) {\n    max-width: 30rem;\n  }\n\n  @media (min-width: ","px) {\n    max-width: 32rem;\n  }\n"])),tX.yc,tX.u8),ro={gap:"1rem"},ra=e=>e===nk.MOBILE_FULL_WIDTH?{textAlign:"center",fontWeight:"600",fontFamily:"var(--font-secondary)",fontSize:"1.5rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"}:{fontWeight:"600",fontFamily:"var(--font-secondary)",fontSize:"1.5rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"},rs={display:"flex",alignItems:"center"};function rc(e){let{index:t,tagStyle:n,animateImage:r=!1,heading:l,text:i,ctaMessages:o,promoTag:a,promoDescription:s,layoutStyle:c=nk.MOBILE_FULL_WIDTH,children:u}=e,d=(0,tK.A)(e,rn);return(0,t5.FD)(nU,rl(rl({tagStyle:[ro,n],layoutStyle:c,animateImage:r},d),{},{children:[(0,t5.FD)("div",{css:rs,children:[l&&(0===t?(0,t5.Y)("h1",{css:[ra(c),ri],children:l}):(0,t5.Y)(re.H,{css:[ra(c),ri],children:l})),a]}),s,i&&"string"==typeof i?(0,t5.Y)("p",{css:[c===nk.MOBILE_FULL_WIDTH?{textAlign:"center",fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"}:{fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"},ri],children:i}):i,0===t?u:(0,t5.Y)(rt.x,{children:u}),o&&o.length>0&&(0,t5.Y)(n7,{messages:o})]}))}let ru=["heroItems","mobileBreak"];function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let rp=(0,tQ.AH)(R||(R=(0,t$.A)(["\n  --color-carousel-dot-rgb: var(--color-white-rgb);\n\n  .carousel__slider-tray > li > * {\n    /* remove the padding for image element */\n    > div:first-of-type {\n      ","\n    }\n  }\n\n  .carousel__inner-slide > div > a {\n    h1,\n    h2 {\n      @media (min-width: ","px) {\n        max-width: 40%;\n      }\n    }\n  }\n"])),{paddingLeft:"0px",paddingRight:"0px","@media (min-width: 1024px)":{paddingLeft:"0px",paddingRight:"0px"}},tX.cJ);function rh(e){let{heroItems:t,mobileBreak:n}=e,r=(0,tK.A)(e,ru);return(0,t5.Y)(ny,rm(rm({css:rp,mobileBreak:n||"".concat(tX.u8,"px")},r),{},{children:t.map((e,t)=>
1(0,t5.Y)(rc,rm({lazyLoadBackground:0!==t},e),e.sysid))}))}var rg=n(72829),rf=n(73374),rv=n(86035),rb=n(51039),rx=n(54552),ry=n(22329),rw=n(72877),rj=n(15910),rO=n(26175),rk=n(49440),rA=n(75906),rC=n(95240);let rP=(0,tQ.AH)(M||(M=(0,t$.A)(["\n  /* match hero padding to layout sections */\n  [data-slide] > div > * {\n    ","\n  }\n\n  @media (min-width: ","px) {\n    padding-top: unset;\n  }\n"])),rC.G,tX.cJ),rS=(0,tQ.AH)(B||(B=(0,t$.A)(["\n  /** Anchor to target store and Div to target PDP Adjacent Sibling Selectors */\n  ","\n\n  /* TODO: temp fix for pdp hero description and title to make consistent as store hero. \n     this description style override can be removed when we remove description section from pdp\n     hero\n  */\n  [data-testid='hero-description'],\n  [data-testid='hero-title'] {\n    @media (min-width: ","px) {\n      max-width: 30rem;\n    }\n\n    @media (min-width: ","px) {\n      max-width: 32rem;\n    }\n  }\n"])),{paddingBottom:"4rem",paddingTop:"2rem"},tX.yc,tX.u8);var rN=n(39051),r_=n(93299),rD=n(46184),rI=n(23362),rE=n(26496);let rT=["selected","index","onClick","intervalMs","isPlaying"];function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rL(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let rY=(0,tQ.AH)(F||(F=(0,t$.A)(["\n  --dot-rgb: var(--color-carousel-dot-rgb, var(--color-neutral-999-rgb));\n  ",";\n  max-width: 40px;\n  min-width: 12px;\n  outline-offset: 2px;\n\n  /* add extra touch area */\n\n  &::after {\n    content: '';\n    position: absolute;\n    width: calc(40px);\n    height: calc(12px);\n  }\n"])),{position:"relative",marginLeft:"0.25rem",marginRight:"0.25rem",display:"flex",width:"100%",alignItems:"center",justifyContent:"center"}),rR=(0,tQ.AH)(z||(z=(0,t$.A)(["\n  background-color: rgb(var(--dot-rgb));\n  ",";\n"])),{height:"4px",width:"100%",borderRadius:"0.125rem",opacity:"0.6",".light &":{backgroundColor:"var(--color-primary)"}}),rM=(0,tQ.AH)(W||(W=(0,t$.A)(["\n  background-color: rgb(var(--dot-rgb));\n  ",";\n"])),{height:"4px",width:"100%",borderRadius:"0.125rem",opacity:"0.6"}),rB={opacity:"1"},rF=(0,tQ.AH)(U||(U=(0,t$.A)(["\n  transition-property: background-position-x;\n  transition-timing-function: linear;\n  background-position-x: -2.65rem;\n  background-repeat: no-repeat;\n  background-color: rgba(var(--dot-rgb), 0.6);\n  background-image: linear-gradient(\n    to right,\n    rgb(var(--dot-rgb)),\n    rgb(var(--dot-rgb))\n  );\n\n  ","\n"])),rE.l),rz=(0,tQ.AH)(V||(V=(0,t$.A)(["\n  opacity: 1;\n  background-position-x: 0;\n"]))),rW=(0,tB.memo)(e=>{let{selected:t,index:n,onClick:r,intervalMs:l,isPlaying:i}=e,o=(0,tK.A)(e,rT),{0:a,1:s}=(0,tB.useState)(!1);return(0,tB.useEffect)(()=>s(!0),[]),(0,t5.Y)("button",rH(rH({"aria-current":t,type:"button",value:n,css:rY,onClick:r,"data-testid":"".concat(t0.Gx,"-").concat(n)},o),{},{children:(0,t5.Y)("span",{css:[void 0===i?rR:rM,i&&rF,i&&t&&a&&rz,!i&&t&&rB],style:i&&t?{transitionDuration:"".concat(l,"ms")}:void 0})}))});var rU=n(4930);function rV(e){let{onNavigate:t}=e,{currentPage:n,pageCount:r,goToPage:l,isPlaying:i,interval:o}=(0,t1.gU)(),{t:a}=(0,tF.Bd)(),s=(0,tB.useCallback)(e=>{let i=Number(e.currentTarget.value);l(i),t&&t({newPage:i,currentPage:n,pageCount:r})},[l,t,n,r]);return r<=1?null:(0,rU.jsx)("div",{className:"flex w-full justify-center mt-6",role:"presentation",children:Array(r).fill(null).map((e,t)=>(0,rU.jsx)(rW,{isPlaying:i,intervalMs:o,selected:n===t,index:t,onClick:s,"aria-label":a("carousel-page-dot",{current:t+1,total:r})},"dot-".concat(t)))})}var rG=n(5817),rZ=n(3638),rJ=n(34359),rq=n(84369),rK=n(3358);function r$(){return(r$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let rQ=function(e){return tB.createElement("svg",r$({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1Zm1 4h-2v-2h2v2Z",style:{fill:"currentColor"}}))};var rX=n(86867),r0=n(69737);let r1=(0,tQ.AH)(Z||(Z=(0,t$.A)(["\n  svg {\n    ","\n  }\n\n  img {\n    max-width: 2rem;\n    max-height: 2rem;\n  }\n"])),{height:"2rem",width:"2rem"}),r2=(0,tQ.AH)(J||(J=(0,t$.A)(["\n  ","\n\n  svg {\n    ","\n  }\n\n  img {\n    max-width: 12rem;\n    max-height: 12rem;\n  }\n"])),{marginBottom:"1rem"},{height:"4rem",width:"4rem"}),r5={textTransform:"none",fontWeight:"bold",fontSize:"1rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 1.0)",letterSpacing:"normal"},r4={textAlign:"center",textTransform:"none",fontWeight:"600",fontFamily:"var(--font-secondary)",fontSize:"1.5rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",letterSpacing:"normal"},r3={whiteSpace:"pre-line",fontWeight:"normal",fontSize:"1rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"},r6={whiteSpace:"pre-line",textAlign:"center",fontWeight:"normal",fontSize:"1rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"},r8={marginTop:"0.5rem"};function r9(e){let{icon:t,header:n,message:r,actionLabel:l,action:i,buttonSmall:o,buttonOutline:a,inline:s,additionalElement:c}=e;return(0,t5.FD)(t5.FK,{children:[!!t&&(0,t5.Y)("span",{css:s?r1:r2,children:t}),!!n&&(0,t5.Y)(re.H,{css:s?r5:r4,children:n}),!!r&&(0,t5.Y)("div",{css:s?r3:r6,children:r}),i&&l&&(0,t5.Y)(r0.$,{small:o||s,outline:a,css:!s&&r8,onClick:i,children:l}),c]})}let r7=["fetching","error","count","buttonSmall","buttonOutline","children","inline","additionalElement","fetchingIcon","fetchingHeader","fetchingMessage","fetchingAction","fetchingActionLabel","errorIcon","errorHeader","errorMessage","errorAction","errorActionLabel","nullIcon","nullHeader","nullMessage","nullAction","nullActionLabel"];function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?le(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let ln={display:"flex",alignItems:"center",gap:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"},lr={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"0.5rem",padding:"2rem"};function ll(e){let{fetching:t,error:n,count:r=-1,buttonSmall:l,buttonOutline:i,children:o,inline:a,additionalElement:s,fetchingIcon:c=(0,t5.Y)(rX.k,{}),fetchingHeader:u,fetchingMessage:d,fetchingAction:m,fetchingActionLabel:p,errorIcon:h=(0,t5.Y)(rQ,{}),errorHeader:g,errorMessage:f,errorAction:v,errorActionLabel:b,nullIcon:x=(0,t5.Y)(rQ,{}),nullHeader:y,nullMessage:w,nullAction:j,nullActionLabel:O}=e,k=(0,tK.A)(e,r7);if(!t&&!n&&0!==r)return o||null;let A={buttonSmall:l,buttonOutline:i,inline:a,additionalElement:s};return t?(A.icon=c,A.header=u,A.message=d,A.action=m,A.actionLabel=p):n?(A.icon=h,A.header=g,A.message=f,A.action=v,A.actionLabel=b):0===r&&(A.icon=x,A.header=y,A.message=w,A.action=j||v,A.actionLabel=O||b),(0,t5.Y)("div",lt(lt({},k),{},{css:[a?ln:lr],children:(0,t5.Y)(r9,lt({},A))}))}var li=n(74355);let lo=["className","isOpen","isErrored","isLoading","close","labelClose","articles","message","buttonLabel","retry","locale"];function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let lc={height:"100%",overflowX:"hidden",overflowY:"scroll",paddingTop:"3rem",paddingBottom:"3rem"},lu=(0,tQ.AH)(q||(q=(0,t$.A)(["\n  ","\n\n  > * {\n    ","\n  }\n"])),{display:"flex",height:"100%",width:"100%",flexDirection:"column",alignItems:"center",justifyContent:"center"}
1,{marginBottom:"1rem",fill:"currentColor"});function ld(e){let{className:t,isOpen:n,isErrored:r,isLoading:l,close:i,labelClose:o,articles:a,message:s,buttonLabel:c,retry:u,locale:d}=e,m=(0,tK.A)(e,lo);return(0,t5.Y)(li.Y,{className:t,isOpen:l||n,requestClose:i,labelClose:o,children:(0,t5.FD)("section",{css:lc,children:[(r||l)&&(0,t5.Y)("div",{css:lu,children:(0,t5.Y)(ll,{fetching:l,error:r,errorMessage:s,errorActionLabel:c,errorAction:u})}),!r&&!l&&(0,tG.U)(a).map(e=>(0,t5.Y)(rK.n,ls({article:ls({locale:d},e)},m),e.id||""))]})})}function lm(){return(lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let lp=function(e){return tB.createElement("svg",lm({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm4 11H8c-.55 0-1-.45-1-1s.45-1 1-1h8c.55 0 1 .45 1 1s-.45 1-1 1Z",style:{fill:"currentColor"}}))};function lh(){return(lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let lg=function(e){return tB.createElement("svg",lh({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1Z",style:{fill:"currentColor"}}))},lf=["item","pageIdx","showForeground","foregroundWidth","isLowResImage","imageCount","cssTextSkrim","labelRetry","labelShowMore","labelShowLess","labelError","entryTags","labelClose","maxWidth","locale","getArticles","isTextFocus","isPartialWidth"];function lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lv(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let lx=(0,tQ.AH)(K||(K=(0,t$.A)(["\n  ","\n  text-align: inherit;\n\n  > section {\n    ","\n  }\n"])),{position:"relative",display:"flex",height:"100%",backgroundSize:"cover",backgroundRepeat:"no-repeat"},{position:"relative"}),ly=(0,tQ.AH)($||($=(0,t$.A)(["\n  ","\n  ","\n  ","\n"])),lx,{backgroundColor:"var(--color-black)",color:"var(--color-white)"},{".light &":{backgroundColor:"transparent",color:"var(--color-black)"}}),lw=(0,tQ.AH)(Q||(Q=(0,t$.A)(["\n  img {\n    ","\n  }\n"])),{height:"100%",width:"100%",objectFit:"cover",objectPosition:"center"}),lj=(0,tQ.AH)(X||(X=(0,t$.A)(["\n  ","\n  align-self: flex-start;\n\n  svg {\n    ","\n    margin-inline-end: 0.5rem;\n  }\n"])),{marginTop:"1rem",display:"flex",alignItems:"center",fontWeight:"600",fontFamily:"var(--font-secondary)",fontSize:"1.25rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"},{fill:"currentColor"}),lO=(0,tQ.AH)(ee||(ee=(0,t$.A)(["\n  @media (min-width: ","px) {\n    ",";\n    height: unset;\n\n    &::after {\n      content: unset;\n    }\n  }\n"])),tX.cJ,{position:"absolute",inset:"0px"}),lk=(0,tQ.AH)(en||(en=(0,t$.A)(["\n  ","\n\n  @media (min-width: ","px) {\n    ","\n    min-height: unset;\n  }\n"])),{height:"100%",width:"100%"},tX.cJ,{position:"absolute",inset:"0px"}),lA=(0,tQ.AH)(er||(er=(0,t$.A)(["\n  img {\n    ","\n  }\n"])),{height:"100%",width:"100%"}),lC=(0,tQ.AH)(ea||(ea=(0,t$.A)(["\n  .post-text {\n    ","\n  }\n"])),{"@media (min-width: 768px)":{paddingRight:"2rem"},"@media (min-width: 1024px)":{paddingRight:"4rem"}}),lP=(0,tQ.AH)(es||(es=(0,t$.A)(["\n  ","\n  height: unset;\n"])),{position:"absolute",inset:"0px"}),lS={marginTop:"0px",paddingTop:"1rem"};function lN(e){var t,n,r,l,i,o,a,s,c,u,d,m,p,h,g;let f,v,{item:b,pageIdx:x,showForeground:y=!1,foregroundWidth:w=300,isLowResImage:j=!1,imageCount:O,cssTextSkrim:k,labelRetry:A,labelShowMore:C,labelShowLess:P,labelError:S,entryTags:N,labelClose:_,maxWidth:D,locale:I,getArticles:E,isTextFocus:T=!1,isPartialWidth:L=!1}
1=e,H=(0,tK.A)(e,lf),{errored:Y,data:R,fetching:M,get:B}=function(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],{0:r,1:l}=(0,tB.useState)(n),{0:i,1:o}=(0,tB.useState)(!1),{0:a,1:s}=(0,tB.useState)(),c=(0,tB.useRef)(0),u=(0,tB.useCallback)(async()=>{c.current+=1;let{current:n}=c;try{l(!0),o(!1);let t=await e();n===c.current&&s(t)}catch(e){n===c.current&&(t&&t(e),o(!0))}finally{n===c.current&&l(!1)}},[e,t]);return(0,tB.useEffect)(()=>{n&&u()},[n,u]),{fetching:r,errored:i,data:a,get:u}}((0,tB.useCallback)(()=>E(b.articles),[E,b.articles]),void 0,!1),{0:F,1:z}=(0,tB.useState)(!1),W=b.gradientColor?(0,nO.V)(b.gradientColor):"var(--color-black-rgb)",U=(h="button-text",(v=(f=(g=b.buttonTextColor)&&(0,nO.V)(g))&&"--color-".concat(h,"-rgb: ").concat(f,";\n--color-").concat(h,": rgb(var(--color-").concat(h,"-rgb))"))?(0,tQ.AH)(G||(G=(0,t$.A)(["\n        ","\n      "])),v):void 0),V=(0,nP.a)(),Z=!!(null!=(t=b.articles)&&t.length),J=(0,tB.useCallback)(e=>{e.stopPropagation(),e.preventDefault(),e.currentTarget.focus(),F||B(),z(!F)},[B,F]),q=b.copyLargeHeaderColor&&(0,nO.V)(b.copyLargeHeaderColor),K=b.copySmallHeaderColor&&(0,nO.V)(b.copySmallHeaderColor),$=nj(b.bgScaleMode),Q=(null==b?void 0:b.textAlignment)===tX.hD,X=(0,nO.V)(b.buttonColor||""),ee=!b.buttonVariant||"outline"===b.buttonVariant,en=Q?{alignSelf:"center"}:"";return(0,t5.FD)(t5.FK,{children:[(0,t5.FD)("div",lb(lb({},H),{},{style:{backgroundColor:null!=(n=b.gradientColor)?n:void 0,color:null!=(r=b.textColor)?r:void 0},css:[ly,T&&lS],children:[(0,t5.Y)("div",{css:(0,tQ.AH)(eu||(eu=(0,t$.A)(["\n            ","\n            img, video {\n              object-position: ","% ","%;\n            }\n          "])),[!T&&!Q&&!L&&(0,tQ.AH)(et||(et=(0,t$.A)(["\n  ",";\n\n  /* as per the new design, for mobile we need fixed height of the media container */\n  height: 12.5rem;\n\n  &::after {\n    ","\n    background: linear-gradient(\n      to top,\n      rgba(",", 1),\n      rgba(",", 0.5) 25%,\n      rgba(",", 0.3) 50%,\n      rgba(",", 0)\n    );\n\n    /* this fixes the zoom issue on smaller mobile screens where the image bleeds underneath the gradient */\n    bottom: -1px;\n  }\n"])),{position:"relative","@media (min-width: 768px)":{overflow:"hidden"}},{position:"absolute",inset:"0px",display:"block","--tw-content":"",content:"var(--tw-content)"},W,W,W,W),!L&&lO,!L&&Q&&lP],null!=(l=b.bgX)?l:50,null!=(i=b.bgY)?i:50),children:null!=(o=b.backgroundVideo)&&o.url&&!V?(0,t5.Y)(nD.C,{allowMultiple:!1,id:"kf-".concat(String(b.key),"-").concat(x),play:!0,loop:!0,muted:!0,css:(0,tQ.AH)(ed||(ed=(0,t$.A)(["\n                ","\n                ","\n              "])),!L&&lk,$),poster:(0,rq.l)({url:(null==b||null==(a=b.image)?void 0:a.url)||"",width:1280,format:"jpg"}),src:(null==(s=b.backgroundVideo)?void 0:s.url)||""}):(null==b||null==(c=b.image)?void 0:c.url)&&(0,t5.Y)(nA.V,lb({css:(0,tQ.AH)(em||(em=(0,t$.A)(["\n                  ","\n\n                  > img {\n                    ","\n                  }\n                "])),lA,$),src:null==b||null==(u=b.image)?void 0:u.url,alt:(null==b||null==(d=b.image)?void 0:d.title)||"",imageCount:O},j&&{height:64,width:64}))}),!L&&((null==b?void 0:b.image)||(null==(m=b.backgroundVideo)?void 0:m.url))&&!b.hideTextScrim&&(0,t5.Y)("div",{css:k}),(0,t5.FD)("section",{id:"kf-content-".concat(String(b.key),"-").concat(x),css:[(0,tQ.AH)(el||(el=(0,t$.A)(["\n  ul,\n  ol {\n    ","\n    margin-inline-start: 1rem;\n    color: inherit;\n  }\n\n  ul {\n    list-style: initial;\n  }\n\n  ol {\n    list-style: decimal;\n  }\n\n  .pre-text {\n    ","\n  }\n\n  .post-text {\n    ","\n  }\n\n  /* Add custom colors to copy headers - they will override default ones  */\n  ","\n\n  ","\n"])),{fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"},{fontWeight:"bold",fontSize:"0.688rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 0.6)",textTransform:"uppercase",letterSpacing:"0.05rem"},{position:"absolute",bottom:"0px",fontWeight:"normal",color:"rgba(var(--text-color-primary-rgb), 0.6)",fontSize:".688rem",lineHeight:"150%",textTransform:"none",letterSpacing:"0.05rem"},q&&(0,tQ.AH)(ei||(ei=(0,t$.A)(["\n    h1,\n    h2 {\n      color: rgb(",") !important;\n    }\n  "])),q),K&&(0,tQ.AH)(eo||(eo=(0,t$.A)(["\n    h3,\n    h4 {\n      color: rgb(",") !important;\n    }\n  "])),K)),(null==b?void 0:b.textAlignment)===tX.So&&lC],children:[(0,t5.Y)(rJ.$,{children:b.copy||""}),b.button?b.button:b.buttonCopy&&b.buttonLink&&(0,t5.Y)(r0.$,{css:[(0,tQ.AH)(ec||(ec=(0,t$.A)(["\n  ","\n  ","\n\n  @media (min-width: ","px) {\n    ","\n  }\n"])),X&&"--color-button-bg: rgb(".concat(X,");"),{marginTop:"1rem",width:"100%"},tX.yc,{width:"min-content"}),U,en],outline:ee,onClick:b.onButtonClick,"data-link":b.buttonLink,"data-testid":"".concat(t0.JQ,"-").concat(String(b.key)),children:b.buttonCopy}),Z&&(0,t5.Y)("button",{"aria-describedby":"kf-content-".concat(String(b.key),"-").concat(x),type:"button",onClick:J,css:[lj,en],children:F?(0,t5.FD)(t5.FK,{children:[(0,t5.Y)(lp,{})," ",P]}):(0,t5.FD)(t5.FK,{children:[(0,t5.Y)(lg,{})," ",C]})})]}),y&&(null==(p=b.foregroundImage)?void 0:p.url)&&(0,t5.Y)("section",{children:(0,t5.Y)(nA.V,{css:lw,src:b.foregroundImage.url,alt:b.foregroundImage.t
1itle||"",width:w,transparent:!0})})]})),Z&&F&&(0,t5.Y)(ld,{isOpen:F,isErrored:Y,isLoading:M,articles:R,close:()=>z(!1),labelClose:_,message:S,buttonLabel:A,retry:B,locale:I,entryTags:N})]})}let l_=(0,tQ.AH)(ep||(ep=(0,t$.A)(["\n  ","\n\n  &:first-of-type {\n    ","\n    ","\n  }\n\n  h1,\n  h2 {\n    ","\n  }\n\n  h3 {\n    ","\n  }\n\n  h4 {\n    ","\n  }\n\n  p {\n    ","\n  }\n\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  p {\n    ","\n    color: inherit;\n  }\n"])),{display:"flex",minHeight:"100%",width:"100%",flexDirection:"column",justifyContent:"center"},rC.G,{marginTop:"-2rem",paddingTop:"2rem",paddingBottom:"2rem","@media (min-width: 768px)":{marginTop:"0px"}},{fontWeight:"600",fontFamily:"var(--font-secondary)",fontSize:"1.5rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal","@media (min-width: 768px)":{fontWeight:"bold",fontFamily:"var(--font-secondary)",fontSize:"2rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"}},{fontWeight:"600",fontFamily:"var(--font-secondary)",fontSize:"1.5rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"},{fontWeight:"600",fontFamily:"var(--font-secondary)",fontSize:"1.25rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"},{fontWeight:"normal",fontSize:"1rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"},{marginBottom:"0.5rem"}),lD=(0,tQ.AH)(eh||(eh=(0,t$.A)(["\n  /* as per the new figma design, we need the following variations on kf height */\n  @media (min-width: ","px) {\n    min-height: 20rem;\n  }\n\n  @media (min-width: ","px) {\n    min-height: 25rem;\n  }\n\n  @media (min-width: ","px) {\n    min-height: 30rem;\n  }\n"])),tX.cJ,tX.Km,tX.Tw),lI={marginLeft:"auto",paddingLeft:"0px","@media (min-width: 1024px)":{paddingLeft:"0px"}},lE={marginRight:"auto",paddingRight:"0px","@media (min-width: 1024px)":{paddingRight:"0px"}},lT={justifyContent:"center",textAlign:"center"},lL=(e,t)=>"Full Width"!==t&&(0,tQ.AH)(eg||(eg=(0,t$.A)(["\n    > section:first-of-type {\n      max-width: 100%;\n      @media (min-width: ","px) {\n        ",";\n        max-width: ","%;\n      }\n      @media (min-width: ","px) {\n        max-width: ","%;\n      }\n    }\n  "])),tX.cJ,(e=>{switch(e){case tX.So:return lI;case tX.hD:return lT;default:return lE}})(t),100*e[0],tX.Km,100*e[1]),lH=["item","widths","pageIdx","maxWidth","isTextFocus"];function lY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lY(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let lM=(0,tQ.AH)(ev||(ev=(0,t$.A)(["\n  ","\n\n  /* override the document text-direction in desktop mode */\n  [dir='rtl'] & {\n    ","\n  }\n\n  > section {\n    ","\n  }\n"])),{height:"100%",width:"100%",flexDirection:"column",justifyContent:"flex-start","@media (min-width: 768px)":{flexDirection:"row",justifyContent:"center"}},{"@media (min-width: 768px)":{flexDirection:"row-reverse"}},l_),lB=(0,tQ.AH)(eb||(eb=(0,t$.A)(["\n  background-color: transparent;\n\n  > section:first-of-type {\n    ","\n    ","\n  }\n"])),{margin:"0px",padding:"0px"},rC.G),lF=(0,tQ.AH)(ex||(ex=(0,t$.A)(["\n  > section:first-of-type {\n    ","\n    min-height: 16rem;\n\n    /* We need to center aligned the text in mobile mode as design request */\n    @media (max-width: ","px) {\n      min-height: unset;\n      ","\n    }\n  }\n"])),{justifyContent:"flex-end"},tX.cJ,{marginTop:"-8rem",maxWidth:"100%",justifyContent:"center",padding:"1rem",textAlign:"center","@media (min-width: 768px)":{marginTop:"0px"}}),lz=(0,tQ.AH)(ey||(ey=(0,t$.A)(["\n  > section:first-of-type {\n    @media (max-width: ","px) {\n      min-height: unset;\n      ","\n    }\n  }\n"])),tX.cJ,{marginTop:"0px",maxWidth:"100%",justifyContent:"center",padding:"1rem",textAlign:"center"});function lW(e){var t;let{item:n,widths:r=[1/3,1/4],pageIdx:l=1,maxWidth:i,isTextFocus:o}=e,a=(0,tK.A)(e,lH),s=(null==n?void 0:n.image)||(null==n||null==(t=n.backgroundVideo)?void 0:t.url),c=n.gradientColor?(0,nO.V)(n.gradientColor):"var(--color-black-rgb)",u=n.textAlignment===tX.So?"left":"right",d=(null==n?void 0:n.verticalTextAlignment)===tX.NJ,m=(null==n?void 0:n.textAlignment)===tX.hD,p="linear-gradient(\n      to ".concat(u,",\n      rgba(").concat(c,", 1),\n      rgba(").concat(c,", 0.7) 33%,\n      rgba(").concat(c,", 0) 66%\n    )\n  "),h="linear-gradient(\n    to right,\n    rgba(".concat(c,", 0.4),\n    rgba(").concat(c,", 0.1) 40%,\n    rgba(").concat(c,", 0.1) 60%,\n    rgba(").concat(c,", 0.4) 100%\n  )\n"),g=(0,tQ.AH)(ew||(ew=(0,t$.A)(["\n    ","\n    @media (min-width: ","px) {\n      ","\n      background: ",";\n    }\n  "])),{display:"none"},tX.cJ,{position:"absolute",inset:"0px",display:"block"},m?h:p),f=(0,t5.Y)(lN,lR(lR({},a),{},{css:(0,tQ.AH)(ej||(ej=(0,t$.A)(["\n        ","\n        ",";\n        ",";\n        ","\n        ","\n      "])),lM,o&&!s&&lB,lL(m?[.5,.5]:r,null==n?void 0:n.textAlignment),d&&lF,m&&lz),item:n,maxWidth:i,pageIdx:l,isTextFocus:!s,cssTextSkrim:g}));return s?(0,t5.Y)("div",{css:(0,tQ.AH)(ef||(ef=(0,t$.A)(["\n  ","\n  background-color: rgba(",");\n\n  /* scrims */\n  &::after {\n    ","\n    left: -4rem;\n    right: -4rem;\n    top: 0;\n    max-width: ",";\n    background-image:\n      linear-gradient(\n        to right,\n        rgba(",", 1),\n        rgba(",", 0) 4rem\n      ),\n      linear-gradient(\n        to left,\n        rgba(",", 1),\n        rgba(",", 0) 4rem\n      );\n  }\n"])),{position:"relative",width:"100%",overflow:"hidden"},c,{pointerEvents:"none",position:"absolute",marginLeft:"auto",marginRight:"auto",height:"100%","--tw-content":"",content:"var(--tw-content)"},i,c,c,c,c),children:f}):f}let lU=["item","pageIdx"];function lV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?lV(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let lZ=(0,tQ.AH)(eO||(eO=(0,t$.A)(["\n  > section:last-of-type:not(:first-of-type) {\n    @media (max-width: ","px) {\n      ",";\n    }\n\n    img {\n      ","\n      max-width: ","px;\n      max-height: ","px;\n\n      @media (min-width: ","px) {\n        max-width: ","px;\n        max-height: ","px;\n      }\n    }\n  }\n"])),tX.cJ-1,{position:"absolute",top:"0px",justifyContent:"flex-start",paddingTop:"2rem"},{marginLeft:"auto",marginRight:"auto",objectFit:"contain"},192,128,tX.cJ,300,200),lJ=["item","pageIdx"];function lq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lq(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let l$=(0,tQ.AH)(ek||(ek=(0,t$.A)(["\n  > div:first-of-type {\n    height: unset;\n  }\n\n  > section:last-of-type:not(:first-of-type) {\n    ","\n    @media (min-width: ","px) {\n      ","\n    }\n    @media (min-width: ","px) {\n      ","\n    }\n    @media (min-width: ","px) {\n      ","\n    }\n    @media (min-width: ","px) {\n      ","\n    }\n    @media (max-width: ","px) {\n      ",";\n    }\n\n    img {\n      ","\n\n      @media (min-width: ","px) {\n        ","\n        margin-inline-end: unset;\n      }\n    }\n  }\n"])),{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"2rem",paddingBottom:"2rem"},tX.Eb,{paddingLeft:"2rem",paddingRight:"2rem"},tX.u8,{paddingLeft:"4rem",paddingRight:"4rem"},tX.Km,{paddingLeft:"6rem",paddingRight:"6rem"},tX.Tw,{paddingLeft:"8rem",paddingRight:"8rem"},tX.cJ-1,{position:"absolute",top:"0px",justifyContent:"flex-start",paddingTop:"2rem"},{marginLeft:"auto",marginRight:"auto",objectFit:"contain"},tX.cJ,{height:"100%",width:"100%"}),lQ=(0,tQ.AH)(eA||(eA=(0,t$.A)(["\n  ","\n\n  /* override the document text-direction in desktop mode */\n  [dir='rtl'] & {\n    ","\n  }\n"])),{"@media (min-width: 768px)":{flexDirection:"row-reverse"}},{"@media (min-width: 768px)":{flexDirection:"row"}}),lX=["item","pageIdx"];function l0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l0(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let l2=(0,tQ.AH)(eS||(eS=(0,t$.A)(["\n  ","\n  ","\n\n  > section {\n    ","\n\n    /* Partial width key feature titles need to be regular as design feedback */\n    h1, h2, h3, h4 {\n      font-weight: normal;\n    }\n  }\n\n  /* Target the media container */\n  > div:first-of-type {\n    ","\n    ","\n\n    @media (min-width: ","px) {\n      padding-inline-start: 2rem;\n    }\n\n    @media (min-width: ","px) {\n      padding-inline-start: 4rem;\n    }\n\n    img,\n    video {\n      ",";\n    }\n  }\n\n  /* Target the text section */\n  > section:first-of-type {\n    ","\n  }\n"])),{height:"100%",width:"100%",flexDirection:"column",justifyContent:"flex-start",paddingTop:"2rem",paddingBottom:"2rem","@media (min-width: 768px)":{flexDirection:"row-reverse",justifyContent:"center",paddingTop:"3rem",paddingBottom:"3rem"}},rC.G,l_,{width:"100%","@media (min-width: 768px)":{alignSelf:"auto"}},lD,tX.cJ,tX.u8,{height:"100%",width:"100%"},{margin:"0px",padding:"0px",paddingTop:"1rem","@media (min-width: 768px)":{paddingTop:"0px"}}),l5=(0,tQ.AH)(eN||(eN=(0,t$.A)(["\n  ","\n\n  > div:first-of-type {\n    ","\n    padding-inline-start: unset;\n\n    @media (min-width: ","px) {\n      padding-inline-end: 2rem;\n    }\n\n    @media (min-width: ","px) {\n      padding-inline-end: 4rem;\n    }\n  }\n"])),{"@media (min-width: 768px)":{flexDirection:"row"}},{paddingLeft:"0px"},tX.cJ,tX.u8),l4=["layoutStyle","preTextContent","postTextContent","items","labelRetry","labelShowMore","labelShowLess","labelError","entryTags","labelClose","maxWidth","locale","getArticles"];function l3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?l3(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let l8=((l={}).NO_CAROUSEL="FW_CUST_NO_CAROUSEL",l.NO_CAROUSEL_LARGE="FW_CUST_NO_CAROUSEL_LARGE",l.NO_CAROUSEL_LARGE_FOREGROUND="PW_FOREGROUND_IMAGE_FOCUS_NO_CAROUSEL",l.TEXT_FOCUS="FW_TEXT_FOCUS_NO_CAROUSEL",l.PARTIAL_WIDTH="PW_CUST_NO_CAROUSEL",l),l9={[l8.NO_CAROUSEL]:lW,[l8.NO_CAROUSEL_LARGE]:function(e){let{item:t,pageIdx:n}=e,r=(0,tK.A)(e,lU);return(0,t5.Y)(lW,lG(lG({css:lZ},r),{},{item:lG(lG({},t),{},{foregroundImage:t.foregroundImage&&lG(lG({},t.foregroundImage),{},{url:t.foregroundImage.url||""})}),pageIdx:n,widths:[2/3,.5],showForeground:!0}))},[l8.TEXT_FOCUS]:lW,[l8.PARTIAL_WIDTH]:function(e){let{item:t,pageIdx:n}=e,r=(0,tK.A)(e,lX),l=(null==t?void 0:t.textAlignment)===tX.So,i=t.gradientColor?(0,nO.V)(t.gradientColor):"var(--color-black-rgb)",o=(null==t?void 0:t.verticalTextAlignment)===tX.NJ,a=(null==t?void 0:t.bgScaleMode)==="contain";return(0,t5.Y)("div",{css:(0,tQ.AH)(eP||(eP=(0,t$.A)(["\n  ",";\n  background-color: rgba(",");\n"])),{position:"relative",width:"100%",overflow:"hidden"},i),children:(0,t5.Y)(lN,l1(l1({css:[l2,lL([.5,.35],l?null==t?void 0:t.textAlignment:tX.Xc),l&&l5,o&&(0,tQ.AH)(e_||(e_=(0,t$.A)(["\n  ","\n  min-height: 16rem;\n\n  > div:first-of-type {\n    min-height: unset;\n    width: 100%;\n    height: 15.5rem;\n  }\n\n  > section:first-of-type {\n    ","\n\n    /* We need to center aligned the text in mobile mode as design request */\n    @media (max-width: ","px) {\n      ","\n    }\n  }\n\n  ","\n"])),{padding:"0px","@media (min-width: 768px)":{paddingTop:"0px",paddingBottom:"0px"},"@media (min-width: 1024px)":{paddingLeft:"0px",paddingRight:"0px"}},{justifyContent:"flex-end","@media (min-width: 768px)":{paddingBottom:"2rem"}},tX.cJ-1,{maxWidth:"100%",justifyContent:"center",padding:"1rem",textAlign:"center"},l?(0,tQ.AH)(eD||(eD=(0,t$.A)(["\n        ","\n      "])),{"@media (min-width: 768px)":{paddingRight:"2rem"},"@media (min-width: 1024px)":{paddingRight:"4rem"},"@media (min-width: 1280px)":{paddingRight:"6rem"},"@media (min-width: 1920px)":{paddingRight:"8rem"}}):(0,tQ.AH)(eI||(eI=(0,t$.A)(["\n        ","\n      "])),{"@media (min-width: 768px)":{paddingLeft:"2rem"},"@media (min-width: 1024px)":{paddingLeft:"4rem"},"@media (min-width: 1280px)":{paddingLeft:"6rem"},"@media (min-width: 1920px)":{paddingLeft:"8rem"}})),a&&(0,tQ.AH)(eE||(eE=(0,t$.A)(["\n  @media (min-width: ","px) {\n    /* If image is contained, we ignore passed in bgX and bgY and use left or right for object-position */\n    ","\n  }\n"])),tX.cJ,l?(0,tQ.AH)(eT||(eT=(0,t$.A)(["\n          picture > img {\n            object-position: left;\n          }\n        "]))):(0,tQ.AH)(eL||(eL=(0,t$.A)(["\n          picture > img {\n            object-position: right;\n          }\n        "]))))]},r),{},{item:t,pageIdx:n,isPartialWidth:!0}))})},[l8.NO_CAROUSEL_LARGE_FOREGROUND]:function(e){let{item:t,pageIdx:n}=e,r=(0,tK.A)(e,lJ);return(0,t5.Y)(lW,lK(lK({css:(0,tQ.AH)(eC||(eC=(0,t$.A)(["\n        ","\n        ","\n      "])),l$,t.textAlignment===tX.So?lQ:"")},r),{},{item:lK(lK({},t),{},{foregroundImage:t.foregroundImage&&lK(lK({},t.foregroundImage),{},{url:t.foregroundImage.url||""})}),widths:[.35,.35],pageIdx:n,showForeground:!0,foregroundWidth:900}))}},l7={position:"relative",overflow:"hidden"},ie=(0,tQ.AH)(eY||(eY=(0,t$.A)(["\n  @media (min-width: ","px) {\n    min-height: unset;\n  }\n"])),tX.cJ),it={marginBottom:"1rem"},ir={marginTop:"1rem",fontWeight:"normal",color:"rgba(var(--text-color-primary-rgb), 0.8)",fontSize:".688rem",lineHeight:"150%",textTransform:"none",letterSpacing:"0.05rem"};function il(e){var t;let{layoutStyle:n,preTextContent:r,postTextContent:l,items:i,labelRetry:o,labelShowMore:a,labelShowLess:s,labelError:c,entryTags:u,labelClose:d,maxWidth:m,locale:p,getArticles:h}=e,g=(0,tK.A)(e,l4),f=l9[n||""]||lW,v={labelRetry:o,labelShowMore:a,labelShowLess:s,labelError:c,entryTags:u,maxWidth:m,locale:p,getArticles:h},b=(0,tQ.AH)(eR||(eR=(0,t$.A)(["\n    max-width: ",";\n  "])),m),x=n===l8.PARTIAL_WIDTH&&(null==i||null==(t=i[0])?void 0:t.verticalTextAlignment)==="Bottom";return(0,t5.FD)("section",l6(l6({},g),{},{css:l7,children:[r&&(0,t5.Y)("header",{css:[it,b],children:(0,t5.Y)(rJ.$,{children:r})}),i.map((e,t)=>(0,t5.Y)(f,l6({css:[(0,tQ.AH)(eH||(eH=(0,t$.A)(["\n  ","\n  max-width: ",";\n\n  /* as per the new figma design, we need the following variations on kf height */\n  ","\n"])),{marginLeft:"auto",marginRight:"auto"},m,lD),(n===l8.TEXT_FOCUS||x)&&ie],item:e,pageIdx:t,labelClose:d,isTextFocus:n===l8.TEXT_FOCUS},v),e.key)),l&&(0,t5.Y)("footer",{css:[ir,b],children:(0,t5.Y)(rJ.$,{children:l})})]}))}var ii=n(57481),io=n.n(ii),ia=n(69795),is=n(29777),ic=n(30369),iu=n(73068),id=n(62071),im=n(75397);let ip=(0,tQ.AH)(eM||(eM=(0,t$.A)(["\n  top: ","px;\n  height: 0;\n  width: 0;\n  visibility: hidden;\n  ","\n\n  @media (min-width: ","px) {\n    top: ","px;\n  }\n"])),-rg.__-rg.wg,{position:"relative",display:"block"},tX.u8,-rg.RP-rg.wg);function ih(e){let{id:t}=e;return(0,t5.Y)("span",{css:ip,id:t?(0,im.B)(t):"",children:"\xa0"})}var ig=n(79092),iv=n(46222),ib=n.n(iv);function ix(e){let t={};
1return null==e||e.content.forEach(e=>{e.content.forEach(e=>{var n;t[e.data.uri]=null==(n=e.content)||null==(n=n[0])?void 0:n.value})}),t}function iy(e){var t,n,r,l;let{item:i}=e,{buttonCopy:o,includeFinalReward:a,text:s,stampImage:c,stampOutlineImage:u,stampSilhouetteImage:d}=i,m=(0,rx.YY)(),p=m&&Object.values(m).filter(e=>{var t;return(null==e||null==(t=e[0])||null==(t=t.inGroup)?void 0:t.groupType)===tV.MH.dailyStreak}),h=null==p?void 0:p.some(e=>{var t;return(null==e||null==(t=e[0])||null==(t=t.inGroup)?void 0:t.state)===tV.h1.hidden}),g=null!=(t=null==p?void 0:p.length)?t:0,f=null!=(n=null==p||null==(r=p[0])||null==(r=r[0])||null==(r=r.inGroup)?void 0:r.groupUsedCount)?n:0,v=f===g,b=(null==p?void 0:p.find(e=>{var t;return(null==e||null==(t=e[0])||null==(t=t.inGroup)?void 0:t.state)===tV.h1.purchasable}))&&f===g-1,x=(0,tB.useMemo)(()=>Object.values(null!=p?p:{}).sort((e,t)=>{var n,r,l,i;return(null!=(n=null==e||null==(r=e[0])||null==(r=r.inGroup)?void 0:r.orderInGroup)?n:0)-(null!=(l=null==t||null==(i=t[0])||null==(i=i.inGroup)?void 0:i.orderInGroup)?l:0)}),[p]),y=(0,tB.use)(ig.g),{isV2:w}=(0,id.ww)(),j=io().mobile,{signIn:O}=(0,ic.A)(),{0:k,1:A}=(0,tB.useState)({});(0,tB.useEffect)(()=>{A({userId:(0,iu.UM)(iu.Re.userid)||(0,iu.UM)(iu.Re.token)||""})},[]),(0,tB.useEffect)(()=>{A({userId:(0,iu.UM)(iu.Re.userid)||(0,iu.UM)(iu.Re.token)||""})},[m]),!a&&(g-=1,v&&(f-=1));let C=a?x:x.slice(0,-1),P=ix(null==s?void 0:s.json),S=e=>(null!=e?e:"").replaceAll("{{count}}",String(f)).replaceAll("{{total}}",String(g)),N="";0!==f||h?!(f>0)||b||h||v?b?N="claim_final_reward":v?N="final_reward_claimed":h&&(N="missed"):N="on_track":N="unclaimed";let _=N?S(P[N]):"",D=N?P["".concat(N,"_subtitle")]:void 0,I=D?S(D):"".concat(f,"/").concat(g," ").concat(P.rewards_claimed);return k.userId&&p&&p.length<=0?null:(0,rU.jsxs)("section",{"data-theme":(null==(l=i.palette)||null==(l=l.sys)?void 0:l.id)||"none!",className:(0,rZ.A)("layout layout-content max-w-layout items-center mx-auto"),children:[(0,rU.jsx)(ih,{id:i.id}),(0,rU.jsx)("div",{className:(0,rZ.A)("rounded-xl mt-8 p-5",w&&"mx-auto max-w-daily-streak",ib().main),children:k.userId?(0,rU.jsxs)("div",{children:[(0,rU.jsxs)("div",{className:"flex flex-col items-start max-w-screen-3xl mx-auto mb-2",children:[(0,rU.jsx)("div",{className:(0,rZ.A)("me-0 sm:me-4",ib().title),children:_}),(0,rU.jsx)("div",{className:(0,rZ.A)("mt-2",ib().subtitle),children:I})]}),(0,rU.jsx)("div",{className:"flex flex-wrap [&>picture]:me-2 [&>picture]:mt-2",children:C.map(e=>{var t,n,r,l,i;let o=null==e||null==(t=e[0])||null==(t=t.inGroup)?void 0:t.state,a="";switch(o){case tV.h1.owned:a=null!=(n=null==c?void 0:c.url)?n:"";break;case tV.h1.hidden:a=null!=(r=null==d?void 0:d.url)?r:"";break;default:a=null!=(l=null==u?void 0:u.url)?l:""}return(0,rU.jsx)(ia._,{sizes:"37.5px",src:a,alt:"",className:(0,rZ.A)(o===tV.h1.purchasable&&ib().activeStamp)},null==e||null==(i=e[0])?void 0:i.skuId)})})]}):(0,rU.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center max-w-screen-3xl mx-auto",children:[(0,rU.jsxs)("div",{className:"mb-5 sm:mb-0 me-0 sm:me-4",children:[(0,rU.jsx)("div",{className:ib().title,children:P.anonymous}),P.anonymous_subtitle&&(0,rU.jsx)("div",{className:(0,rZ.A)("mt-2",ib().subtitle),children:P.anonymous_subtitle})]}),(0,rU.jsx)("div",{className:"w-full sm:flex sm:flex-1 sm:justify-end",children:(0,rU.jsx)("button",{type:"button",onClick:()=>{j?O():y()},className:(0,rZ.A)(ib().button,"btn w-full sm:w-fit text-button-text uppercase",w?["text-[16px] leading-6 font-extrabold rounded-full h-[32px] min-h-[32px] py-0",ib().button]:"text-button-m"),children:null==o?void 0:o.text})})]})})]})}function iw(e){let{item:t}=e;return(0,rU.jsx)(is.H,{children:(0,rU.jsx)(iy,{item:t})})}var ij=n(26712),iO=n(30626),ik=n(20149),iA=n(27682);function iC(e){var t,n,r,l,i,o,a,s,c,u,d,m,p,h,g,f,v,b,x,y;let{item:w}=e,{user:j}=(0,rk.J)(),{text:O,id:k,palette:A,stampImage:C,stampSilhouetteImage:P}=w,S=(0,iO.b)(),{t:N}=(0,tF.Bd)(),_=Array.from({length:(null==j||null==(t=j.punchCard)?void 0:t.maxPurchases)||0},(e,t)=>{var n;return((null==j||null==(n=j.punchCard)?void 0:n.maxPurchases)||0)-t}),D=(null==j||null==(n=j.punchCard)?void 0:n.remainingPurchases)!==0&&(null==j||null==(r=j.punchCard)?void 0:r.remainingPurchases)!==(null==j||null==(l=j.punchCard)?void 0:l.maxPurchases),I=null!=(i=null==j?void 0:j.punchCard)?i:null,E=(null==j||null==(o=j.punchCard)?void 0:o.remainingPurchases)===0,T=Number(null==j||null==(a=j.punchCard)?void 0:a.timeLeft),L=(0,ik.GS)(null!=(s=null==j||null==(c=j.punchCard)?void 0:c.duration)?s:""),H=e=>{var t;return e.replace("{{maxPurchases}}",(null==j||null==(t=j.punchCard)||null==(t=t.maxPurchases)?void 0:t.toString())||"").replace("{{duration}}",L.toString())},Y=ix(null==O?void 0:O.json),R=H((null==Y?void 0:Y.description_empty)||""),M=H((null==Y?void 0:Y.description_active)||"");return j&&I&&(0,rU.jsxs)("div",{"data-theme":null==A||null==(u=A.sys)?void 0:u.id,className:"layout layout-content max-w-layout p-4",children:[(0,rU.jsx)(ih,{id:k}),(0,rU.jsxs)("div",{className:(0,rZ.A)(ib().main,"p-4 rounded-lg border-1"),children:[(0,rU.jsx)("p",{className:(0,rZ.A)("text-body-s font-normal",D&&"mb-2"),children:(null==j||null==(d=j.punchCard)?void 0:d.remainingPurchases)!==(null==j||null==(m
1=j.punchCard)?void 0:m.maxPurchases)?M:R}),D&&(0,rU.jsxs)("div",{className:(0,rZ.A)(ib().timer,"text-body-s font-bold"),children:[(0,rU.jsx)(ij.A,{className:"h-4 w-4 min-w-[1rem] inline me-1"}),(0,rU.jsx)(iA.G,{endDate:(0,ik.qC)(T),onDone:S,children:(0,rU.jsx)(iA.q,{className:"align-middle uppercase",daysHoursOnly:!0})})]}),(0,rU.jsx)("div",{className:"flex flex-row items-start py-2",children:_.map((e,t)=>{var n,r,l,i,o,a,s,c;return e>(null!=(n=null!=(r=null==j||null==(l=j.punchCard)?void 0:l.remainingPurchases)?r:null==j||null==(i=j.punchCard)?void 0:i.maxPurchases)?n:0)?(0,rU.jsx)("div",{children:(0,rU.jsx)(ia._,{sizes:"38px",quality:100,title:null==C?void 0:C.url,alt:null==C?void 0:C.url,src:null==C?void 0:C.url})},"punch-card-image-".concat(t)):(0,rU.jsxs)("div",{className:"relative grid grid-cols-1 items-center justify-items-center",children:[(0,rU.jsx)("div",{className:"absolute col-start-1 font-bold",children:t+1}),(0,rU.jsx)(ia._,{sizes:"38px",quality:100,className:"col-start-1",title:null!=(o=null==w||null==(a=w.stampSilhouetteImage)?void 0:a.url)?o:"",alt:null!=(s=null==P?void 0:P.url)?s:"",src:null!=(c=null==P?void 0:P.url)?c:""})]},"punch-card-empty-".concat(t))})}),E&&(0,rU.jsx)("p",{className:"font-bold mb-2",children:N("punchcard-completed")}),(0,rU.jsxs)("div",{className:"font-bold flex flex-row items-center",children:[E?N("you-won-amount",{chipAmount:Number(null==j||null==(p=j.punchCard)?void 0:p.rewardQuantity).toLocaleString()}):N("win-amount",{chipAmount:Number(null==j||null==(h=j.punchCard)?void 0:h.rewardQuantity).toLocaleString()}),(0,rU.jsx)(ia._,{sizes:"12px",className:"w-6 align-bottom pl-1",title:null!=(g=null==j||null==(f=j.punchCard)?void 0:f.rewardIcon)?g:"",alt:null!=(v=null==j||null==(b=j.punchCard)?void 0:b.rewardIcon)?v:"",src:null!=(x=null==j||null==(y=j.punchCard)?void 0:y.rewardIcon)?x:""})]})]})]})}let iP=tB.useLayoutEffect;function iS(e){let{item:t}=e,{user:n}=(0,rk.J)();return(null==n?void 0:n.punchCard)?(0,rU.jsx)(iT,{item:t,user:n}):null}let iN="min-w-0 break-words text-start text-[0.625rem] font-bold leading-tight",i_="portrait:grid portrait:grid-cols-[minmax(min-content,1fr)_auto_minmax(min-content,1fr)] portrait:items-center portrait:gap-2",iD="flex shrink-0 flex-row items-center gap-0.5",iI="flex shrink-0 flex-row items-center gap-1 rounded-full px-2 py-0.5 text-[0.6rem] font-bold leading-none",iE="w-[13px] shrink-0";function iT(e){var t,n,r,l,i,o,a;let{item:s,user:c}=e,{t:u}=(0,tF.Bd)(),{text:d,id:m,palette:p,stampImage:h,stampSilhouetteImage:g}=s,f=null!=(t=c.punchCard.maxPurchases)?t:0,v=null!=(n=c.punchCard.remainingPurchases)?n:f,b=(0,ik.GS)(null!=(r=c.punchCard.duration)?r:""),x=Array.from({length:f},(e,t)=>f-t),y=ix(null==d?void 0:d.json),w=((v!==f?null==y?void 0:y.description_active:null==y?void 0:y.description_empty)||"").replace("{{maxPurchases}}",f.toString()).replace("{{duration}}",b.toString()),j=u(0===v?"you-won-amount":"win-amount",{chipAmount:Number(c.punchCard.rewardQuantity).toLocaleString()}),{rowRef:O,textRef:k,stacked:A}=function(e){let t=(0,tB.useRef)(null),n=(0,tB.useRef)(null),{0:r,1:l}=(0,tB.useState)(!0);return iP(()=>{var e,r,i,o;let a=t.current;if(!a)return;let s=!1,c=0,u=null==(e=(r=window).matchMedia)?void 0:e.call(r,"(orientation: landscape)"),d=document.fonts,m=()=>{if(s||(null==d?void 0:d.status)==="loading")return;if(null!=u&&u.matches)return void l(!0);if(0===a.clientWidth)return;let e=a.scrollWidth>a.clientWidth+1||function(e){if(!e)return!1;let t=Number.parseFloat(getComputedStyle(e).lineHeight);return Number.isFinite(t)&&t>0?e.scrollHeight>2*t+1:e.scrollHeight>e.clientHeight+1}(n.current);l(t=>t===e?t:e)},p=()=>{s||c||(c=requestAnimationFrame(()=>{c=0,m()}))};m(),null==u||null==(i=u.addEventListener)||i.call(u,"change",p);let h="u"<typeof ResizeObserver?null:new ResizeObserver(p);return null==h||h.observe(a),d&&"function"==typeof(null==(o=d.ready)?void 0:o.then)&&d.ready.then(p).catch(()=>{}),d&&"function"==typeof d.addEventListener&&d.addEventListener("loadingdone",p),()=>{var e;s=!0,c&&cancelAnimationFrame(c),null==h||h.disconnect(),null==u||null==(e=u.removeEventListener)||e.call(u,"change",p),d&&"function"==typeof d.removeEventListener&&d.removeEventListener("loadingdone",p)}},[e]),{rowRef:t,textRef:n,stacked:r}}("".concat(w,"|").concat(x.length,"|").concat(j)),C=x.map((e,t)=>{var n,r,l;return e>v?(0,rU.jsx)(ia._,{sizes:"48px",quality:100,className:"w-full",pictureClassName:"w-5",title:null==h?void 0:h.url,alt:null==h?void 0:h.url,src:null==h?void 0:h.url},"punch-card-image-".concat(e)):(0,rU.jsxs)("div",{className:"relative grid",children:[(0,rU.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-[0.5rem] font-bold",children:t+1}),(0,rU.jsx)(ia._,{sizes:"48px",quality:100,className:"w-full",pictureClassName:"w-5",title:null!=(n=null==g?void 0:g.url)?n:"",alt:null!=(r=null==g?void 0:g.url)?r:"",src:null!=(l=null==g?void 0:g.url)?l:""})]},"punch-card-empty-".concat(e))}),P=(0,rU.jsxs)("div",{className:(0,rZ.A)(ib().reward,iI),children:[(0,rU.jsx)("span",{className:"whitespace-nowrap",children:j}),(0,rU.jsx)(ia._,{sizes:"13px",className:"w-full",pictureClassName:iE,title:null!=(l=c.punchCard.rewardIcon)?l:"",alt:null!=(i=c.punchCard.rewardIcon)?i:"",src:null!=(o=c.punchCard.rewardIcon)?o:""})]});return(0,rU.jsxs)("div",{"data-theme":null==p||null==(a=p.sys)?void 0:a.id,className:(0,rZ.A)(ib().compactBackgroun
1d,"h-full [--t2-content-buffer:16px] layout layout-content max-w-layout font-secondary"),children:[(0,rU.jsx)(ih,{id:m}),(0,rU.jsxs)("div",{"data-layout":A?"stack":"row",className:"relative flex h-full flex-col justify-center py-1 landscape:min-h-[64px] lg:landscape:min-h-[80px]",children:[(0,rU.jsxs)("div",{ref:O,"aria-hidden":!0,className:(0,rZ.A)("pointer-events-none invisible absolute inset-x-0 top-0 overflow-hidden",i_),children:[(0,rU.jsx)("p",{ref:k,className:iN,children:w}),(0,rU.jsx)("div",{className:iD,children:x.map(e=>(0,rU.jsx)("div",{className:"w-5"},"measure-pip-".concat(e)))}),(0,rU.jsxs)("div",{className:iI,children:[(0,rU.jsx)("span",{className:"whitespace-nowrap",children:j}),(0,rU.jsx)("div",{className:iE})]})]}),(0,rU.jsxs)("div",{className:(0,rZ.A)("flex flex-col gap-2",!A&&i_),children:[(0,rU.jsx)("p",{className:(0,rZ.A)(iN,"line-clamp-2 landscape:line-clamp-1"),children:w}),(0,rU.jsxs)("div",{className:(0,rZ.A)("flex flex-row flex-wrap items-center gap-x-2 gap-y-1",!A&&"portrait:contents"),children:[(0,rU.jsx)("div",{className:(0,rZ.A)(iD,!A&&"portrait:justify-center"),children:C}),(0,rU.jsx)("div",{className:(0,rZ.A)("flex shrink-0",!A&&"portrait:justify-end"),children:P})]})]})]})]})}function iL(e){let{item:t,variant:n}=e;switch(t.defaultViewType){case"Daily Streak":return(0,rU.jsx)(iw,{item:t});case"Compact":return(0,rU.jsx)(iS,{item:t});case"Standard":return(0,rU.jsx)(iC,{item:t});default:return"compact"===n?(0,rU.jsx)(iS,{item:t}):(0,rU.jsx)(iC,{item:t})}}var iH=n(47992),iY=n.n(iH),iR=n(90460),iM=n(13324),iB=n.n(iM),iF=n(87214);let iz=["items","onClick","itemComponent"];function iW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iW(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let iV={display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(var(--color-neutral-100-rgb), 0.7)"},iG=(0,tQ.AH)(eB||(eB=(0,t$.A)(["\n  ","\n\n  &::after {\n    ","\n  }\n"])),{margin:"0.5rem",borderRadius:"9999px",borderColor:"transparent",backgroundColor:"var(--color-neutral-200)",backgroundSize:"cover",backgroundPosition:"center"},{borderRadius:"9999px"});function iZ(e){let{item:{Icon:t,label:n,value:r,background:l},onClick:i}=e;return(0,t5.Y)(r0.$,{small:!0,Icon:t,value:r,onClick:i,css:[iG,(0,tQ.AH)(eF||(eF=(0,t$.A)(["\n          background-image: url('","');\n        "])),l)],children:n})}function iJ(e){let{items:t,onClick:n,itemComponent:r=iZ}=e,l=(0,tK.A)(e,iz);return(0,t5.Y)("ul",iU(iU({css:iV},l),{},{children:t.map(e=>(0,t5.Y)("li",{children:(0,t5.Y)(r,{item:e,onClick:n})},e.key))}
1))}var iq=n(77771);function iK(){return(iK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function i$(){return(i$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function iQ(){return(iQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function iX(){return(iX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function i0(){return(i0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function i1(){return(i1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let i2={Action:function(e){return tB.createElement("svg",iK({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M14.461 6.563c1.02 0 1.847-.798 1.847-1.782C16.308 3.798 15.48 3 14.46 3s-1.846.798-1.846 1.781c0 .984.827 1.782 1.846 1.782Zm-6.088 8.219-.57 1.28H5.231c-.68 0-1.231.532-1.231 1.188 0 .656.551 1.188 1.23 1.188h2.98c.74 0 1.407-.425 1.696-1.08l.338-.761-.41-.234a3.58 3.58 0 0 1-1.461-1.581Zm10.396-3.47h-1.693l-1.003-1.976a3.664 3.664 0 0 0-2.376-1.89l-2.733-.785a3.782 3.782 0 0 0-3.11.636L6.328 8.426a1.16 1.16 0 0 0-.227 1.665c.414.52 1.186.618 1.725.22l1.527-1.13c.295-.218.67-.296.972-.227l.565.162-1.44 3.243c-.486 1.094-.051 2.376 1.01 2.98l3.27 1.863-1.057 3.255c-.203.626.158 1.292.806 1.488.123.037.247.055.369.055.523 0 1.008-.326 1.173-.833l1.217-3.75c.228-.771-.11-1.6-.832-2.019l-2.355-1.341 1.204-2.905.78 1.537c.307.607.958.998 1.658.998h2.076c.68 0 1.231-.532 1.231-1.187 0-.656-.551-1.188-1.23-1.188Z",style:{fill:"currentColor"}}))},Arcade:function(e){return tB.createElement("svg",i$({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M18.002 6H6a6 6 0 1 0 4.284 10.2h3.432a5.998 5.998 0 0 0 10.257-4.765A6 6 0 0 0 18.003 6ZM9.3 12.45a.45.45 0 0 1-.45.45H6.9v1.95a.45.45 0 0 1-.45.45h-.9a.45.45 0 0 1-.45-.45V12.9H3.15a.45.45 0 0 1-.45-.45v-.9a.45.45 0 0 1 .45-.45H5.1V9.15a.45.45 0 0 1 .45-.45h.9a.45.45 0 0 1 .45.45v1.95h1.95a.45.45 0 0 1 .45.45v.9Zm8.1 2.85a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm2.4-3.6a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z",style:{fill:"currentColor"}}))},Roleplaying:function(e){return tB.createElement("svg",iQ({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M19.469 17.875H3.53a.531.531 0 0 0-.531.531v1.063c0 .293.238.531.531.531h15.94a.531.531 0 0 0 .531-.531v-1.063a.531.531 0 0 0-.531-.531ZM9.375 15.75 7.25 14.687l2.125-1.062 1.063-2.125 1.062 2.125 2.125 1.063L11.5 15.75l-.531 1.063h6.906l-2.87-6.695a2.124 2.124 0 0 1-.062-1.51L16.813 3l-6.229 3.559A4.25 4.25 0 0 0 8.81 8.523l-3.684 8.29h4.781l-.531-1.063ZM11.5 8.312l.531-1.062.531 1.063 1.063.53-1.063.532-.53 1.063-.532-1.063-1.063-.531 1.063-.531Z",style:{fill:"currentColor"}}))},Shooting:function(e){return tB.createElement("svg",iX({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M21.531 10.75h-1.186a8.443 8.443 0 0 0-7.095-7.095V2.469A.469.469 0 0 0 12.781 2H11.22a.469.469 0 0 0-.469.469v1.186a8.443 8.443 0 0 0-7.095 7.095H2.469a.469.469 0 0 0-.469.469v1.562c0 .26.21.469.469.469h1.186a8.443 8.443 0 0 0 7.095 7.095v1.186c0 .26.21.469.469.469h1.562c.26 0 .469-.21.469-.469v-1.186a8.443 8.443 0 0 0 7.095-7.095h1.186c.26 0 .469-.21.469-.469V11.22a.469.469 0 0 0-.469-.469Zm-8.281 7.056v-1.587a.469.469 0 0 0-.469-.469H11.22a.469.469 0 0 0-.469.469v1.587a5.944 5.944 0 0 1-4.556-4.556h1.587c.26 0 .469-.21.469-.469V11.22a.469.469 0 0 0-.469-.469H6.194a5.944 5.944 0 0 1 4.556-4.556v1.587c0 .26.21.469.469.469h1.562c.26 0 .469-.21.469-.469V6.194a5.944 5.944 0 0 1 4.556 4.556h-1.587a.469.469 0 0 0-.469.469v1.562c0 .26.21.469.469.469h1.587a5.944 5.944 0 0 1-4.556 4.556Zm0-5.806a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z",style:{fill:"currentColor"}}))},Sports:function(e){return tB.createElement("svg",i0({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M10.276 3.079a8.45 8.45 0 0 0-4.188 1.844l2.653 2.653c.953-1.227 1.484-2.783 1.535-4.497Zm1.224 7.256 5.412-5.412A8.471 8.471 0 0 0 11.925 3c-.041 2.19-.737 4.192-2.012 5.748l1.587 1.587ZM4.923 6.088a8.45 8.45 0 0 0-1.844 4.188c1.714-.051 3.273-.582 4.497-1.535L4.923 6.088Zm9.33 6.999c1.552-1.272 3.553-1.967 5.747-2.012a8.471 8.471 0 0 0-1.923-4.987L12.665 11.5l1.587 1.587Zm-2.753-.422-5.412 5.412A8.494 8.494 0 0 0 11.075 20c.045-2.194.74-4.195 2.012-5.748L11.5 12.665Zm6.577 4.247a8.45 8.45 0 0 0 1.844-4.188c-1.717.054-3.273.586-4.497 1.535l2.653 2.653Zm-9.33-6.999C7.193 11.188 5.19 11.887 3 11.925a8.471 8.471 0 0 0 1.923 4.987l5.412-5.412-1.587-1.587Zm3.977 10.008a8.45 8.45 0 0 0 4.188-1.844l-2.653-2.653c-.95 1.224-1.48 2.784-1.535 4.497
1Z",style:{fill:"currentColor"}}))},Strategy:function(e){return tB.createElement("svg",i1({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M18.417 3h-2.042a.578.578 0 0 0-.412.174.6.6 0 0 0-.171.42v1.781h-1.75V3.594a.6.6 0 0 0-.171-.42.578.578 0 0 0-.413-.174h-2.916a.578.578 0 0 0-.413.174.6.6 0 0 0-.17.42v1.781H8.211V3.594a.6.6 0 0 0-.17-.42A.578.578 0 0 0 7.628 3H5.583a.578.578 0 0 0-.412.174.6.6 0 0 0-.171.42v6.531l2.333 1.188c0 1.793-.056 3.525-.481 5.937h10.296c-.425-2.412-.481-4.167-.481-5.938L19 10.126V3.594a.6.6 0 0 0-.17-.42.578.578 0 0 0-.413-.174Zm-5.25 10.688h-2.334v-2.376a1.2 1.2 0 0 1 .342-.84 1.157 1.157 0 0 1 1.65 0 1.2 1.2 0 0 1 .342.84v2.376Zm5.25 4.75H5.583a.578.578 0 0 0-.412.173.6.6 0 0 0-.171.42v1.188a.6.6 0 0 0 .17.42c.11.11.259.174.413.174h12.834a.578.578 0 0 0 .412-.174.6.6 0 0 0 .171-.42V19.03a.6.6 0 0 0-.17-.42.578.578 0 0 0-.413-.174Z",style:{fill:"currentColor"}}))}};function i5(e){var t,n,r,l,i,o,a,s,c,u,d,m,p,h,g;let{link:f,category:v,label:b,icon:x,backgroundImage:y}=e,w=null!=(t=i2[x||""])?t:void 0,j=null!=(n=null==y?void 0:y.url)?n:"";return(null==f?void 0:f.__typename)==="LayoutListView"?{key:null!=(r=f.slug)?r:"",label:b,Icon:w,value:null!=(l=null!=(i=f.placementKey)?i:f.slug)?l:"",background:j,isDynamic:!0,isEmphasized:e.isEmphasized,imageIconUrl:null==(o=e.image)?void 0:o.url}:(null==f?void 0:f.__typename)==="SectionDecoratedHeader"?{key:null!=(a=f.slug||(null==(s=f.sys)?void 0:s.id))?a:"",label:b,Icon:w,value:null!=(c=f.slug||(null==(u=f.sys)?void 0:u.id))?c:"",background:j,isDynamic:!0,isEmphasized:e.isEmphasized,imageIconUrl:null==(d=e.image)?void 0:d.url}:(null==f?void 0:f.__typename)==="ExternalLink"?{key:null!=(m=f.url)?m:"",label:b,Icon:w,value:null!=(p=null==f?void 0:f.url)?p:"",background:j,isEmphasized:e.isEmphasized,imageIconUrl:null==(h=e.image)?void 0:h.url}:null!=v&&v.slug?{key:v.slug,label:b,Icon:w,value:v.slug,background:j,isEmphasized:e.isEmphasized,imageIconUrl:null==(g=e.image)?void 0:g.url}:null}var i4=n(62182),i3=n(84272),i6=n(45887),i8=n(15090),i9=n(16668),i7=n.n(i9);function oe(e){var t,n;return(null==e?void 0:e.__typename)==="SectionDecoratedHeader"?e.slug||(null==(t=e.sys)?void 0:t.id)||"":(null==e?void 0:e.__typename)==="LayoutListView"?(0,im.B)(e.placementKey)||(0,im.B)(e.id)||e.slug||(0,im.B)(null==(n=e.header)?void 0:n.text):""}function ot(e){let{item:t,pathname:n,activeId:r,onSelect:l}=e,i=(0,iq.aq)(t.value||"");if(t.isDynamic&&!i)return null;let o=t.isDynamic?"".concat(n,"#").concat(t.value):t.value,a=t.imageIconUrl?(0,rU.jsx)(ia._,{src:t.imageIconUrl,className:"w-full",alt:""}):t.Icon?(0,rU.jsx)(t.Icon,{"aria-label":t.label}):null,s=r===t.value;return(0,rU.jsxs)(i3.e,{slug:o,onClick:t.isDynamic?()=>l(t.value||""):void 0,"data-category-active":s||void 0,"aria-current":s?"location":void 0,className:(0,rZ.A)(i7().item,"px-3 py-2 bg-neutral-950/80 rounded-lg flex flex-none items-center gap-2 h-[45px] md:h-[48px] 3xl:h-[54px]",t.isEmphasized?i7().highlighted:"outline-[rgba(255,255,255,0.4)] outline outline-1 outline-offset-[-1px]",s&&i7().active),children:[a&&(0,rU.jsx)("div",{className:"w-7 h-7 relative",children:a}),(0,rU.jsx)("div",{className:(0,rZ.A)(i7().label,"max-w-20 justify-start font-bold uppercase leading-none whitespace-pre-line w-max"),children:t.label})]})}function on(e){let{items:t}=e,n=(0,iF.usePathname)(),r=(0,iq.hf)(),{layoutItems:l}=(0,rv.L)(),{0:i,1:o}=(0,tB.useState)(""),{0:a,1:s}=(0,tB.useState)(""),c=(0,tB.useMemo)(()=>new Set(t.map(e=>e.value).filter(Boolean)),[t]),u=(0,tB.useMemo)(()=>r?c.has(r)?r:function(e,t,n){var r;let l=null!=(r=null==n?void 0:n.findIndex(t=>{let n=oe(t);return!!n&&n===e}))?r:-1;for(let e=l;e>=0;e-=1){let r=null==n?void 0:n[e];if((null==r?void 0:r.__typename)==="SectionDecoratedHeader"){let e=oe(r);if(e&&t.has(e))return e}}return""}(r,c,l):"",[r,c,l]);a?r===a&&(s(""),o(a)):u&&u!==i&&o(u),(0,tB.useEffect)(()=>{if(!a)return;let e=()=>s(""),t=(0,rw.s)(250,e),n=setTimeout(e,1e3),r=()=>{clearTimeout(n),t()},l=()=>{t.cancel(),clearTimeout(n),e()};return window.addEventListener("scrollend",l),window.addEventListener("scroll",r,{passive:!0}),()=>{t.cancel(),clearTimeout(n),window.removeEventListener("scrollend",l),window.removeEventListener("scroll",r)}},[a]);let d=e=>{e&&e!==i&&s(e)},[,m]=(0,tB.use)(i8.tn);return(0,tB.useEffect)(()=>
1{if(!m||!i)return;let e=m.slideNodes().findIndex(e=>e.hasAttribute("data-category-active"));-1!==e&&m.selectedScrollSnap()!==e&&m.scrollTo(e)},[i,m]),(0,rU.jsx)(rU.Fragment,{children:t.map(e=>(0,rU.jsx)(ot,{item:e,pathname:null!=n?n:"",activeId:i,onSelect:d},e.key))})}function or(e){let{stripeItems:t,paletteId:n,onSlideChange:r}=e;return(0,t5.Y)("section",{className:(0,rZ.A)("w-full py-2",i7().horizontalCategoryStripe),"data-testid":t0.rm,"data-theme":n,children:(0,t5.Y)(i6.Y,{wrapperClassName:"px-content-buffer",alignItemsCenter:!0,slidesInView:"variable",showControlsOn:"desktop",controlsOffset:"inside",inertiaScroll:!0,containScroll:"keepSnaps",centerWhenFits:!0,slidesToScroll:1,axis:"x",onSlideChange:r,children:(0,t5.Y)(on,{items:t})})})}function ol(e){let{item:t}=e,n=(0,iq.aq)(t.value||""),r=(0,iF.usePathname)(),l=t.isDynamic?"".concat(r,"#").concat(t.value):t.value;return t.isDynamic&&!n?null:(0,t5.Y)(i3.e,{slug:l,children:(0,t5.Y)(iZ,{item:t})})}function oi(e){var t,n;let{item:r,onSlideChange:l}=e,{layoutItems:i}=(0,rv.L)(),o=(0,tB.useMemo)(()=>{var e;let t=(0,tG.U)(null==(e=r.itemCollection)?void 0:e.items),n=new Map(t.filter(e=>{var t,n;return(null==(t=e.link)?void 0:t.__typename)==="LayoutListView"||(null==(n=e.link)?void 0:n.__typename)==="SectionDecoratedHeader"}).map(e=>{var t;return[null==(t=e.link)||null==(t=t.sys)?void 0:t.id,e]})),l=[];return null==i||i.forEach(e=>{var t;let r=n.get(null==(t=e.sys)?void 0:t.id);if(r){let e=i5(r);e&&l.push(e)}}),t.forEach(e=>{var t,n,r;if((null==(t=e.link)?void 0:t.__typename)!=="LayoutListView"&&(null==(n=e.link)?void 0:n.__typename)!=="SectionDecoratedHeader"||!(null!=(r=e.link)&&null!=(r=r.sys)&&r.id)){let t=i5(e);t&&l.push(t)}}),l},[null==(t=r.itemCollection)?void 0:t.items,i]);return"carousel"===r.variant?(0,t5.Y)(or,{stripeItems:o,paletteId:null==(n=r.palette)||null==(n=n.sys)?void 0:n.id,onSlideChange:l}):(0,t5.FD)("section",{className:(0,rZ.A)("flex bg-neutral-100-70"),"data-testid":t0.rm,children:[(0,t5.Y)(ih,{id:r.id}),(0,t5.Y)(iJ,{css:i4.rw,items:o,itemComponent:ol})]})}let oo=tB.useLayoutEffect;function oa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,t=(0,tB.useRef)(null),n=(0,tB.useRef)(null),{0:r,1:l}=(0,tB.useState)(1),i=(0,tB.useCallback)(()=>{let r=t.current,i=n.current;if(!r||!i)return;let o=r.clientHeight,a=i.offsetHeight;if(o<=0||a<=0)return;let s=Math.min(1,Math.max(e,o/a));l(e=>.005>Math.abs(e-s)?e:s)},[e]);return oo(()=>{var e;let r=t.current,l=n.current;if(!r||!l||"u"<typeof ResizeObserver)return;i();let o=new ResizeObserver(i);o.observe(r),o.observe(l);let a="u">typeof document?document.fonts:void 0;return a&&"function"==typeof(null==(e=a.ready)?void 0:e.then)&&a.ready.then(i),a&&"function"==typeof a.addEventListener&&a.addEventListener("loadingdone",i),()=>{o.disconnect(),a&&"function"==typeof a.removeEventListener&&a.removeEventListener("loadingdone",i)}},[i]),{containerRef:t,contentRef:n,scale:r}}function os(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?os(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let ou={threshold:rg.aV,rootMargin:rg.WN,triggerOnce:!0,fallbackInView:!0},od=e=>{let[t,n]=(0,nw.Wx)(oc(oc({},ou),e));return[t,n]};var om=((i=om||{}).None="none",i.SlideInVertical="slide-in-vertical",i.SlideInHorizontal="slide-in-horizontal",i);function op(e){let{scrollAnimation:t,children:n}=e,[r,l]=od({rootMargin:"-5% 0%"}),i=null==t?void 0:t.animationJson;if(!i)return(0,rU.jsx)(rU.Fragment,{children:n});let{fromValue:o,delay:a,duration:s,mobile:c,desktop:u}=i;return(0,rU.jsx)("div",{ref:r,style:{"--slide-in-from-value":o,"--animation-delay":a&&"".concat(a,"s"),"--animation-duration":s&&"".concat(s,"s"),"--animation-play-state":l?"running":"paused"},className:(0,rZ.A)({"opacity-100 animate-none":c===om.None,"lg:opacity-100 lg:animate-none":u===om.None,"motion-safe:opacity-0 motion-safe:animate-custom-slide-in-vertical":c===om.SlideInVertical,"lg:motion-safe:opacity-0 lg:motion-safe:animate-custom-slide-in-vertical":u===om.SlideInVertical,"motion-safe:opacity-0 motion-safe:animate-custom-slide-in-horizontal":c===om.SlideInHorizontal,"lg:motion-safe:opacity-0 lg:motion-safe:animate-custom-slide-in-horizontal":u===om.SlideInHorizontal}),children:n})}let oh=["slug","title","hideHeader","children","headerStyle","sectionStyle","scrollAnimation","fullScreen","link"];function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?og(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let ov=(0,tQ.AH)(ez||(ez=(0,t$.A)(["\n  ","\n  position: relative;\n"])),i4.rw),ob=(0,tQ.AH)(eW||(eW=(0,t$.A)(["\n  /* prevent header from showing or taking space */\n  > section > header {\n    ","\n  }\n"])),{visibility:"hidden",margin:"0px",height:"0px"}),ox=(0,tQ.AH)(eU||(eU=(0,t$.A)(["\n  ","\n\n  .dark & {\n    text-shadow: 0 2px 4px rgba(var(--color-black-rgb), 0.24);\n  }\n\n  button {\n    ","\n  }\n"])),{marginBottom:"1.5rem",fontWeight:"bold",fontFamily:"var(--font-secondary)",fontSize:"2rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"},{textDecorationLine:"none"}),oy=(0,tQ.AH)(eV||(eV=(0,t$.A)(["\n  top: ","px;\n  height: 0;\n  width: 0;\n  visibility: hidden;\n  ","\n\n  @media (min-width: ","px) {\n    top: ","px;\n  }\n"])),-rg.__-rg.wg,{position:"relative",display:"block"},tX.u8,-rg.RP-rg.wg);function ow(e){let{slug:t,title:n,hideHeader:r,children:l,headerStyle:i,sectionStyle:o,scrollAnimation:a,fullScreen:s,link:c}=e,u=(0,tK.A)(e,oh),[d,m]=od(),[p]=(0,iq.vp)(t||"");return(0,t5.Y)("div",of(of({},u),{},{ref:d,"data-inview":m,css:[!s&&ov,(r||!n)&&ob],children:(0,t5.Y)(op,{scrollAnimation:a,children:(0,t5.FD)("section",{css:o,ref:p,"data-testid":"".concat(t0.ks,"-").concat(n),children:[(0,t5.FD)("header",{css:[ox,i],children:["string"==typeof n?(0,t5.Y)(re.H,{children:n}):(0,t5.Y)(t5.FK,{children:n}),c]}),(0,t5.Y)("span",{css:oy,id:t||"",children:"\xa0"}),(0,t5.Y)(rt.x,{children:l})]})})}))}var oj=n(81418),oO=n.n(oj);function ok(e){var t,n,r;let{children:l,item:i,className:o}=e;
1return null!=(t=i.badgeBackgroundImage)&&t.url?(0,rU.jsxs)("div",{className:o,children:[(0,rU.jsx)(ia._,{pictureClassName:"w-full",className:"w-full flex-none object-contain object-center",src:(null==(n=i.badgeBackgroundImage)?void 0:n.url)||"",alt:(null==(r=i.badgeBackgroundImage)?void 0:r.title)||""}),(0,rU.jsx)("div",{className:"absolute inset-0 flex flex-col justify-center items-center gap-2",children:l})]}):(0,rU.jsx)("div",{className:(0,rZ.A)(o),children:l})}function oA(e){var t,n,r,l,i;let{item:o,className:a}=e;return null!=(t=o.badgeHighlightedText)&&t.text||null!=(n=o.badgeText)&&n.text||null!=(r=o.badgeBackgroundImage)&&r.url?(0,rU.jsxs)(ok,{item:o,className:a,children:[(0,rU.jsx)("div",{className:(0,rZ.A)(oO().badgeHighlightedText,"text-[1.25rem] font-bold md:leading-[0.8]"),children:null==(l=o.badgeHighlightedText)?void 0:l.text}),(0,rU.jsx)("div",{className:(0,rZ.A)(oO().badgeText,"text-[0.75rem] md:leading-[0.8]"),children:null==(i=o.badgeText)?void 0:i.text})]}):null}function oC(e){var t,n,r,l,i,o,a,s,c,u;let{item:d}=e,{handleClick:m,renderWithLoading:p}=(0,iR.R)(),{containerRef:h,contentRef:g,scale:f}=oa();return(0,rU.jsx)(ow,{slug:(0,im.B)(null==(t=d.sys)?void 0:t.id),"data-theme":(null==(n=d.palette)||null==(n=n.sys)?void 0:n.id)||"none","data-testid":t0.j1,fullScreen:d.showFullWidth,children:(0,rU.jsxs)("div",{dir:"ltr",className:(0,rZ.A)("relative z-0 flex flex-row bg-game-primary max-w-layout w-full h-56 overflow-hidden md:px-6 lg:px-12 mx-auto",d.showFullWidth?"rounded-none":"rounded-lg",oO().main),children:[(null==(r=d.backgroundImage)?void 0:r.url)&&(0,rU.jsx)(rG.V,{src:d.backgroundImage.url}),(0,rU.jsxs)("div",{className:"flex flex-col flex-1 sm:flex-[2] w-full min-h-0 justify-between text-center pl-6 py-4",dir:"auto",children:[(0,rU.jsx)("div",{ref:h,className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:(0,rU.jsxs)("div",{ref:g,className:"flex flex-col items-center",style:{transform:f<1?"scale(".concat(f,")"):void 0,transformOrigin:"top center"},children:[(0,rU.jsx)("div",{className:(0,rZ.A)(oO().title,"font-bold w-full whitespace-pre-line xs:whitespace-normal"),children:null==(l=d.title)?void 0:l.text}),(0,rU.jsx)("div",{className:(0,rZ.A)(oO().description,"w-full whitespace-pre-line max-w-[220px] sm:max-w-none md:max-w-[500px]"),children:null==(i=d.description)?void 0:i.text})]})}),(0,rU.jsx)("div",{className:"flex shrink-0 items-end w-fit self-center",children:(0,rU.jsxs)("div",{className:"relative",children:[(0,rU.jsx)(ia._,{className:"absolute -top-5 xl:top-4 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full flex-none max-w-24 lg:max-w-32 xl:max-w-none object-contain object-center",src:(null==(o=d.actionImage)?void 0:o.url)||"",alt:(null==(a=d.actionImage)?void 0:a.title)||""}),(0,rU.jsx)("button",{type:"button",className:(0,rZ.A)(oO().actionButton,"bg-game-secondary w-fit rounded-full px-6 py-3.5 z-10 relative text-[1rem] xs:text-[1.25rem] md:text-[1.5rem]"),onClick:m(()=>{var e,t;null!=(e=d.actionButton)&&e.target&&tW().push(null==(t=d.actionButton)?void 0:t.target)}),children:p(null==(s=d.actionButton)?void 0:s.text)})]})})]}),(0,rU.jsx)("div",{className:"flex flex-1 w-full justify-center",children:(0,rU.jsxs)("div",{className:(0,rZ.A)(oO().primaryImage,"flex relative"),children:[(0,rU.jsx)(ia._,{pictureClassName:"flex w-full",className:"w-full flex-none object-cover object-center",src:(null==(c=d.primaryImage)?void 0:c.url)||"",alt:(null==(u=d.primaryImage)?void 0:u.title)||""}),(0,rU.jsx)(oA,{item:d,className:"absolute bottom-[20%] left-[-30%] xs:left-[-40%] sm:left-[-70%] md:left-[-80%] w-36 xs:w-40 sm:w-44 md:w-48 lg:w-52 flex flex-col justify-center items-center rotate-[15deg]"})]})})]})})}var oP=n(50237),oS=n(99153);let oN={isLauncher:!1};function o_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?o_(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let oI=eval;function oE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oE(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oL=n(79792);function oH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oH(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let oR={maxWidth:"100%",paddingLeft:"0px !important",paddingRight:"0px !important"},oM=(0,tQ.AH)(eG||(eG=(0,t$.A)(["\n  ","\n  ",";\n  max-width: ",";\n"])),rC.G,{marginLeft:"auto",marginRight:"auto",width:"100%"},rA.M),oB=(0,tQ.AH)(eZ||(eZ=(0,t$.A)(["\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%"},rA.M,{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"});function oF(e){var t,n;let r,l,{item:i}=e,{backgroundColor:o,showFullWidth:a,richText:s,id:c,palette:u}=i,d=o||void 0,{user:m}=(0,rk.J)(),p=(null==(t=i.segmentsCollection)?void 0:t.items)&&i.segmentsCollection.items;return(r=null!=p?p:[],l={isLoggedIn:!!m},!function(e,t){var n,r;let l,i=(n=Object.fromEntries(Object.entries(oD(oD({},oN),t)).map(e=>{let[t,n]=e;return[t,JSON.stringify(n)]})),r=void 0,l=(0,oS.Se)({globalvar:"throw new Error()",constants:n,functions:e=>oD(oD({},(0,oS.Cn)(e)),r)}),function(e){let{code:t}=l((0,oS.YK)(e));return!!oI(t)});return e.every(e=>{let{condition:t,fallback:n}=e;try{if(t)return i(t)}catch(e){}return!!n})}(r,oT(oT({},{isLauncher:!1}),l)))?null:(0,t5.Y)(ow,{style:{backgroundColor:a&&d||void 0},css:a&&oR,slug:(0,im.B)(c),sectionStyle:a&&oM,hideHeader:!0,"data-theme":(null==u||null==(n=u.sys)?void 0:n.id)||"none","data-testid":t0.j1,children:(0,t5.Y)(oL.x,oY(oY({},i),{},{richTextCss:oB,backgroundColor:o||"var(--color-primary-rgb)",children:s&&(0,t5.Y)(oP.s,{document:null==s?void 0:s.json,decorateLinks:!0})}))})}var oz=n(57031),oW=n(83758),oU=n(21788),oV=n.n(oU),oG=n(32920),oZ=n.n(oG),oJ=n(15680),oq=n(67642);let oK=["id","className","isOpen","label","onClick"];function o$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}let oQ=(0,tQ.AH)(eJ||(eJ=(0,t$.A)(["\n  > label {\n    ","\n  }\n"])),{fontWeight:"normal",fontSize:"1rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"}),oX={fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.6)",textTransform:"none",letterSpacing:"normal"};function o0(e){let{id:t,className:n,isOpen:r,label:l,onClick:i}=e,o=(0,tK.A)(e,oK);return(0,t5.Y)(oq.K,{css:oQ,id:t,className:n,isOpen:r,label:l,onClick:i,noScroll:!0,
1children:(0,t5.Y)(oP.s,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o$(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({includeContainer:!0,css:oX},o))})}var o1=n(69793),o2=n.n(o1);function o5(e){var t;let{item:n}=e,{header:r,faqItemsCollection:l,palette:i}=n;return(0,rU.jsxs)("section",{className:"relative py-8",children:[(0,rU.jsx)("div",{"data-theme":(null==i||null==(t=i.sys)?void 0:t.id)||"none",className:(0,rZ.A)("absolute h-full w-full inset-0",o2().main)}),(0,rU.jsx)(ow,{slug:(0,im.B)(n.id||(null==r?void 0:r.text)),title:null==r?void 0:r.text,"data-testid":t0.xu,children:(0,rU.jsx)(oJ.n,{allowMultipleOpen:!0,children:(0,tG.U)(null==l?void 0:l.items).map(e=>{var t;return(0,rU.jsx)(o0,{id:(0,rN.i7)(e),label:e.userFacingTitle||e.title,document:null==(t=e.richText)?void 0:t.json},(0,rN.i7)(e))})})})]})}var o4=n(43538),o3=n(48534);let o6={tops:new Map,clearance:0},o8=new Map,o9=new Set,o7=o6,ae=()=>{let e=[],t=0;o8.forEach((n,r)=>{if(!r.isConnected)return;let{position:l,top:i,bottom:o}=getComputedStyle(r);"sticky"===l?e.push(r):"fixed"===l&&Number.parseFloat(i)<=Number.parseFloat(o)&&(t=Math.max(t,r.getBoundingClientRect().bottom))}),e.sort(o3.yz);let n=new Map;e.forEach(e=>{var r;n.set(e,t),t+=null!=(r=o8.get(e))?r:0}),o7={tops:n,clearance:t},o9.forEach(e=>e())},at="u"<typeof ResizeObserver?null:new ResizeObserver(e=>{e.filter(e=>{let t=e.target,n=e.borderBoxSize[0].blockSize;return!!o8.has(t)&&o8.get(t)!==n&&(o8.set(t,n),!0)}).length&&ae()}),an=e=>(o9.add(e),1===o9.size&&window.addEventListener("resize",ae,{passive:!0}),()=>{o9.delete(e),0===o9.size&&window.removeEventListener("resize",ae)}),ar=e=>(o8.set(e,e.getBoundingClientRect().height),null==at||at.observe(e),ae(),()=>{o8.delete(e),null==at||at.unobserve(e),ae()}),al=()=>o7,ai=()=>o6;function ao(){let{0:e,1:t}=(0,tB.useState)(null),{tops:n,clearance:r}=(0,tB.useSyncExternalStore)(an,al,ai),l=(0,tB.useCallback)(e=>{if(t(e),!e)return;let n=ar(e);return()=>{n(),t(null)}},[]);return(0,tB.useMemo)(()=>{let t=e?n.get(e):void 0;return{ref:l,style:void 0===t?void 0:{top:t},clearance:r,stickyTop:t,cssVars:{"--sticky-stack-stickytop":"".concat(null!=t?t:0,"px"),"--sticky-stack-clearance":"".concat(r,"px")}}},[l,e,n,r])}var aa=n(3026),as=n.n(aa),ac=n(19039);function au(e,t,n){if("string"==typeof t)return""===t?n+e.split("").join(n)+n:e.split(t).join(n);if(t instanceof RegExp){let r=t;if(!t.global){let e=t.flags+(t.flags.includes("g")?"":"g");r=new RegExp(t.source,e)}return e.replace(r,n)}return e}var ad=n(33581),am=n(53452),ap=n.n(am);function ah(){let e=(0,tz.useRouter)(),{0:t,1:n}=(0,tB.useState)(!1);return(0,tB.useEffect)(()=>{let t=t=>n(t===e.asPath),r=()=>n(!1);return e.events.on("routeChangeStart",t),e.events.on("routeChangeComplete",r),()=>{e.events.off("routeChangeStart",t),e.events.off("routeChangeComplete",r)}},[e]),{isTransitioning:t}}function ag(e){var t,n,r;let{banner:l}=e,{user:i}=(0,rk.J)(),{isTransitioning:o}=ah();if(!i||!(null!=i&&null!=(t=i.balances)&&t.length))return null;let a=[...i.balances].filter(e=>"status"!==e.type&&"vip-multiplier"!==e.type);return(0,rU.jsx)("div",{id:(null==(n=l.sys)?void 0:n.id)||"","data-theme":(null==(r=l.palette)||null==(r=r.sys)?void 0:r.id)||"none",className:(0,rZ.A)("sticky top-[64px] lg:top-[80px] z-userBalance flex",ap().main),children:(0,rU.jsx)("div",{className:" mx-auto flex flex-nowrap gap-4 overflow-scroll hide-scrollbar py-3",style:{maskImage:a.length>0?au(au("\n              linear-gradient(\n                to right, \n                transparent 0%,\n                transparent calc(       var(--t2-content-buffer) - 0.9rem),\n                black                   var(--t2-content-buffer),\n                black       calc(100% - var(--t2-content-buffer)),\n                transparent calc(100% - var(--t2-content-buffer) + 0.9rem),\n                transparent 100%\n              )",/[ ]{2,}/g," "),/\n/g,""):void 0},children:a.map(e=>(0,rU.jsx)(ad.M,{balance:e,isTransitioning:o},e.key))})})}var af=n(98281),av=n(42654);let ab=["customClass","imageClassName"];function ax(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ay(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ax(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ax(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aw(e){let{customClass:t,imageClassName:n}=e,r=(0,tK.A)(e,ab);return(0,rU.jsx)(ad.M,ay(ay({},r),{},{customClass:(0,rZ.A)("py-0.5 ps-0 pe-2 gap-x-2 [&>span]:flex-1 [&>span]:text-center [&>span]:text-[0.625rem]",t),imageClassName:(0,rZ.A)("h-7 max-w-none -ms-[3px] -my-3",n)}))}function aj(e){var t,n,r;let{banner:l}=e,{user:i}=(0,rk.J)(),{isTransitioning:o}=ah(),{setBannerShowsBalances:a}=(0,af.x)(),s=[...null!=(t=null==i?void 0:i.balances)?t:[]].filter(e=>"status"!==e.type&&"vip-multiplier"!==e.type),c=!!i&&s.length>0;return((0,tB.useEffect)(()=>(a(c),()=>a(!1)),[c,a]),i)?(0,rU.jsxs)("div",{id:(null==(n=l.sys)?void 0:n.id)||"","data-theme":(null==(r=l.palette)||null==(r=r.sys)?void 0:r.id)||"none",className:(0,rZ.A)("sticky top-[64px] lg:top-[80px] z-userBalance flex items-center landscape:min-h-[64px] landscape:justify-end",ap().main),children:[(0,rU.jsx)("div",{className:(0,rZ.A)("min-w-0 flex flex-nowrap gap-3 pe-3 overflow-scroll hide-scrollbar py-3","w-full max-w-2xl mx-auto","landscape:w-auto landscape:max-w-none landscape:mx-0"),style:{maskImage:s.length>0?"linear-gradient(to right, transparent 0%, transparent calc(var(--t2-content-buffer) - 0.9rem), black var(--t2-content-buffer), black calc(100% - var(--t2-content-buffer)), transparent calc(100% - var(--t2-content-buffer) + 0.9rem), transparent 100%)":void 0},children:s.map(e=>(0,rU.jsx)(aw,{balance:e,isTransitioning:o,customClass:"grow shrink-0"},e.key))}),(0,rU.jsx)("div",{className:"hidden landscape:flex shrink-0 items-center px-1 py-3",children:(0,rU.jsx)(av.M,{hideName:!0,hideBalances:!0,avatarClassName:(0,rZ.A)(ap().avatarOutline,"!w-6 min-h-[1.5rem]")})})]}):null}function aO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ak(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aO(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let aA=e=>(0,rU.jsx)("svg",ak(ak({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,rU.jsx)("path",{fill:"currentColor",d:"M13.89 8.7 12 10.59 10.11 8.7a.996.996 0 1 0-1.41 1.41L10.59 12 8.7 13.89a.996.996 0 1 0 1.41 1.41L12 13.41l1.89 1.89a.996.996 0 1 0 1.41-1.41L13.41 12l1.89-1.89a.996.996 0 0 0 0-1.41c-.39-.38-1.03-.38-1.41 0ZM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 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"})}));function aC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aC(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let aS=e=>(0,rU.jsx)("svg",aP(aP({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,rU.jsx)("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Zm3.88-11.71L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0Z"})}));var aN=n(36725);function a_(e){var t,n,r;let{banner:l}=e,{displayConditions:i,text:o}=l,a=null==i?void 0:i.includes("Sticky"),s=(0,tB.useCallback)(e=>{if(null!==e){let t=document.documentElement;t&&(t.style.scrollPaddingTop="".concat(e.getBoundingClientRect().bottom+16,"px"))}},[]),c=(0,rx.YY)(),u=c&&Object.values(c).filter(e=>{var t;return null==e||null==(t=e[0])?void 0:t.inGroup}),d=null==u?void 0:u.filter(e=>{var t,n;return(null==e||null==(t=e[0])||null==(t=t.inGroup)?void 0:t.state)===tV.h1.owned||(null==e||null==(n=e[0])?void 0:n.promoLimitUsed)===1}),{0:m,1:p}
1=(0,tB.useState)({userId:(0,iu.UM)(iu.Re.userid)||(0,iu.UM)(iu.Re.token)||""});(0,tB.useEffect)(()=>{p({userId:(0,iu.UM)(iu.Re.userid)||(0,iu.UM)(iu.Re.token)||""})},[c]);let h=null==u?void 0:u.some(e=>{var t;return(null==e||null==(t=e[0])||null==(t=t.inGroup)?void 0:t.state)===tV.h1.hidden}),g=null!=(t=null==u?void 0:u.length)?t:0,f=(null==d?void 0:d.length)===g,v=(null==u?void 0:u.find(e=>{var t;return(null==e||null==(t=e[0])||null==(t=t.inGroup)?void 0:t.state)===tV.h1.purchasable}))&&(null==d?void 0:d.length)===g-1,b={};null==o||o.json.content.forEach(e=>{e.content.forEach(e=>{var t,n;e.value?b.main=e.value:null!=(t=e.data)&&t.uri&&(b[e.data.uri]=null==(n=e.content)||null==(n=n[0])?void 0:n.value)})});let x=h?(0,rU.jsx)(aA,{"data-testid":t0.qA,className:"me-4 text-5xl"}):f?(0,rU.jsx)(aS,{"data-testid":t0.ww,className:"me-4 text-5xl"}):(0,rU.jsx)("div",{className:(0,rZ.A)("me-4 rounded-full flex text-body-m font-bold",ap().featured),children:(0,rU.jsxs)("div",{className:"flex w-12 h-12 items-center justify-center",children:[null==d?void 0:d.length,"/",null==u?void 0:u.length]})}),y=(0,rU.jsx)("p",{className:"mb-1 md:me-auto md:mb-0 text-body-m font-bold",children:(0,aN.W)(b.main,{day:null!=(n=(null==u?void 0:u.length)&&(null==u?void 0:u.length)-1)?n:0})}),w=f&&null!=m&&m.userId?(0,rU.jsx)("p",{className:(0,rZ.A)("text-body-s font-bold",ap().secondary),children:b.final_reward_claimed}):(0,rU.jsxs)("p",{children:[h&&null!=m&&m.userId?(0,rU.jsxs)(rU.Fragment,{children:[(0,rU.jsx)("span",{className:(0,rZ.A)("text-body-s font-bold",ap().secondary),children:b.reward_missed}),(0,rU.jsx)("span",{className:"opacity-60 px-2",children:"|"})]}):null,(0,rU.jsx)("span",{className:"text-body-s font-bold",children:(0,rU.jsx)("a",{className:(0,rZ.A)(ap().button),href:"#".concat(rg.nf),children:b.view_final_reward})})]});return v?null:(0,rU.jsx)("section",{"data-theme":(null==(r=l.palette)||null==(r=r.sys)?void 0:r.id)||"none!",ref:s,className:(0,rZ.A)("layout layout-content max-w-layout items-center mx-auto py-4",a&&"sticky z-banner ".concat(ap().top),ap().main),children:(0,rU.jsxs)("div",{className:"flex items-center max-w-screen-3xl mx-auto",children:[null!=m&&m.userId?x:null,(0,rU.jsxs)("div",{className:"md:flex-1 md:flex md:flex-wrap md:justify-end",children:[y,w]})]})})}var aD=n(8883),aI=n(3678);let aE=e=>{let{text:t}=e,{user:n}=(0,rk.J)();return t?(0,rU.jsx)("div",{className:"text-start",children:(0,aD.i)(t.json,{renderText:e=>null!=n&&n.storeMultiplier&&!Number.isNaN(Number(null==n?void 0:n.storeMultiplier))?e.replace(/\d+%/,"".concat(null==n?void 0:n.storeMultiplier,"%")):e})}):null};function aT(e){var t;let{banner:n}=e,r=(0,tz.useRouter)(),{user:l}=(0,rk.J)(),{signIn:i}=(0,ic.A)(),o=(0,tB.use)(ig.g),a=(0,ry.Y)(),{text:s,buttonLink:c,btnCopy:u,displayConditions:d,analyticsData:m}=n,{trackAnalyticsData:p}=(0,tZ.s)(),h=io().mobile,g=null==d?void 0:d.includes("Sticky"),f=null==c?void 0:c.includes("<app-bounce-host>/store-open");return(0,rU.jsx)("section",{"data-theme":(null==(t=n.palette)||null==(t=t.sys)?void 0:t.id)||"none",className:(0,rZ.A)("layout",g&&"sticky z-banner top-[64px] lg:top-[80px]",ap().main),children:(0,rU.jsxs)("div",{className:"layout-content flex flex-wrap gap-x-4 gap-y-2 text-body-l font-normal py-3 items-center justify-center top-[64px] lg:top-[80px] text-center md:flex-row flex-col mx-auto",children:[(0,rU.jsx)(aE,{text:s}),c&&(null==u?void 0:u.text)&&(0,rU.jsx)("button",{type:"button",className:(0,rZ.A)("btn text-button-m !text-[1.125rem] !leading-[150%] min-h-[2rem] py-1 px-3 whitespace-normal",ap().button),"data-testid":"".concat(t0.uh,"-").concat((0,rN.i7)(n)),onClick:()=>{if(f&&!h)(0,r_.VR)(aI.kL),o();else if(c)if(f&&!l)(0,r_.VR)(aI.kL),i();else if(c.startsWith("http"))(0,o3.n2)(c),p({metadata:m});else{try{(0,r_.IJ)("".concat(a,"/layout-banner-stripe").concat(c),"Layout Banner Internal Route - ".concat(c),a)}catch(e){}r.push(c)}},children:u.text})]})})}function aL(e){let{banner:t}=e;return(0,rU.jsx)(is.H,{children:(0,rU.jsx)(aT,{banner:t})})}var aH=n(80213),aY=n(48541);function aR(e){var t,n,r;let{banner:l}=e,{displayConditions:i,text:o,btnCopy:a}=l,s=null==i?void 0:i.includes("Sticky"),c=(0,rx.YY)(),u=c&&Object.values(c).filter(e=>{var t;return null==e||null==(t=e[0])?void 0:t.inGroup}),d=null==u?void 0:u.filter(e=>{var t;return(null==e||null==(t=e[0])||null==(t=t.inGroup)?void 0:t.state)===tV.h1.owned}),m=null==u?void 0:u.find(e=>{var t;return(null==e||null==(t=e[0])||null==(t=t.inGroup)?void 0:t.state)===tV.h1.purchasable}),p=null!=(t=null==u?void 0:u.length)?t:0;return m&&(null==d?void 0:d.length)===p-1?(0,rU.jsx)("section",{"data-theme":(null==(n=l.palette)||null==(n=n.sys)?void 0:n.id)||"none!",className:(0,rZ.A)("layout layout-content max-w-layout items-center mx-auto py-4",s&&"sticky z-banner ".concat(ap().top),ap().main),children:(0,rU.jsxs)("div",{className:"w-full flex flex-col md:flex-row justify-between items-center font-bold md:text-lg",children:[(0,rU.jsx)("div",{className:"justify-start text-center md:text-left md:me-6",children:(0,aD.i)(null==o?void 0:o.json)}),(0,rU.jsx)("div",{className:"justify-end mt-4 md:mt-0 w-full sm:w-fit",children:(0,rU.jsx)(rx._m,{value:null==m||null==(r=m[0])?void 0:r.skuId,children:(0,rU.jsx)(aH.px,{value:l.item,children:(0,rU.jsx)(is.H,{children:(0,rU.jsx)(aY.Cx,{className:(0,rZ.A)("w-full",ap().button),children:(0,rU.jsx)("span",{children:null==a?void 0:a.text})})})})})})]})}):null}function aM(e){var t;let{user:n,userId:r,alignment:l,imageClass:i="w-20 h-20",hideAvatar:o,nameFontClass:a,accountFontClass:s,inlineStatus:c=!1}=e,{t:u}=(0,tF.Bd)(),{env:d={}}=(0,rf.IQ)(),{showGamePlayerId:m,accountText:p}=d,{isTransitioning:h}=ah(),g=m&&(null==n?void 0:n.gamePlayerId)||r,f=null==n||null==(t=n.balances)?void 0:t.filter(e=>"status"===e.type);
1return(0,rU.jsxs)(rU.Fragment,{children:[!o&&(null==n?void 0:n.avatarUrl)&&(0,rU.jsx)("div",{className:(0,rZ.$)("rounded-full overflow-hidden flex-shrink-0",i),children:(0,rU.jsx)("img",{className:"min-h-full",alt:null==n?void 0:n.displayName,src:null==n?void 0:n.avatarUrl})}),(0,rU.jsxs)("div",{className:(0,rZ.A)("flex flex-col space-y-1",l),children:[(0,rU.jsx)("span",{className:(0,rZ.A)(null!=a?a:null!=n&&n.avatarUrl?"text-body-l":"text-headline-l font-bold","[overflow-wrap:anywhere]",ap().primary),children:u("sign-in-welcome",{user:null==n?void 0:n.displayName})}),(0,rU.jsxs)("div",{className:(0,rZ.$)("flex items-center gap-x-2",!c&&"flex-wrap"),children:[(0,rU.jsx)("span",{className:(0,rZ.$)("flex gap-x-2",null!=s?s:"text-body-s-60",ap().secondary),children:u(p||"player-account",{accountId:g})}),null==f?void 0:f.map(e=>(0,rU.jsx)(ad.M,{balance:e,isTransitioning:h,imageClassName:"h-6 w-auto",customClass:c?"!ms-0 !me-0 first:!ms-0 last:!me-0":void 0},e.key))]})]})]})}function aB(e){var t,n;let{banner:r}=e,{user:l}=(0,rk.J)(),i=(null==l?void 0:l.userId)||(0,iu.UM)(iu.Re.userid),{isTransitioning:o}=ah();if(!l||!(null!=l&&null!=(t=l.balances)&&t.length))return null;let a=[...l.balances].filter(e=>"status"!==e.type&&"vip-multiplier"!==e.type).sort(e=>"currency"===e.type?-1:1),s=a.length<=2;return(0,rU.jsx)("div",{"data-theme":(null==(n=r.palette)||null==(n=n.sys)?void 0:n.id)||"none",className:(0,rZ.$)("layout py-3 grid",!s&&"overflow-hidden",ap().main),children:(0,rU.jsxs)("div",{className:(0,rZ.A)("flex w-full mx-auto layout-content max-w-layout overflow-hidden",s&&"justify-between",!s&&"flex-col gap-y-2 landscape:flex-row landscape:justify-between landscape:items-center"),children:[(0,rU.jsx)("div",{className:(0,rZ.$)("flex",!s&&"shrink-0"),children:(0,rU.jsx)(aM,{user:l,userId:i,hideAvatar:!0,inlineStatus:!s,nameFontClass:s?void 0:"!text-base font-bold",accountFontClass:s?void 0:"!text-xs"})}),a.length>0&&(0,rU.jsx)("div",{className:(0,rZ.$)("flex w-auto landscape:justify-end",s?"justify-end":"justify-center min-w-0"),children:s?(0,rU.jsx)("div",{className:"flex flex-row items-center flex-nowrap gap-2",children:a.map(e=>(0,rU.jsx)(ad.M,{balance:e,isTransitioning:o,overflowIcon:!!r.overflowIcon,imageClassName:r.overflowIcon?"h-9 w-auto":"h-5 w-auto",customClass:(0,rZ.$)("px-4 first:!ms-0 last:!me-0 landscape:first:!ms-auto",r.overflowIcon?"py-0":"py-1")},e.key))}):(0,rU.jsx)(i6.Y,{wrapperClassName:"w-full landscape:ms-4",inertiaScroll:!0,alignItemsCenter:!0,slidesInView:"variable",showControlsOn:"desktop",controlsOffset:"inside",indicators:{show:!0,indicatorSize:"h-1 w-1 rounded-full",containerClassName:"mt-1",gapClassName:"gap-1"},gap:{default:"8px"},children:a.map(e=>(0,rU.jsx)(ad.M,{balance:e,isTransitioning:o,overflowIcon:!!r.overflowIcon,imageClassName:r.overflowIcon?"h-9 w-auto":void 0,customClass:(0,rZ.$)("px-4 first:!ms-0 last:!me-0 landscape:first:!ms-auto",r.overflowIcon?"py-0":"py-1")},e.key))})})]})})}function aF(e){var t;let{banner:n}=e,{user:r}=(0,rk.J)(),{0:l,1:i}=(0,tB.useState)();return((0,tB.useEffect)(()=>{i((null==r?void 0:r.userId)||(0,iu.UM)(iu.Re.userid))},[i,r]),r||l)?(0,rU.jsx)("div",{"data-theme":(null==(t=n.palette)||null==(t=t.sys)?void 0:t.id)||"none",className:(0,rZ.$)("layout py-8 grid",ap().main),children:(0,rU.jsx)("div",{className:(0,rZ.A)("flex w-full space-x-4 mx-auto layout-content max-w-layout",!(null!=r&&r.avatarUrl)&&"justify-center"),children:(0,rU.jsx)(aM,{user:r,userId:l,alignment:null!=r&&r.avatarUrl?"justify-center":"items-center"})})}):null}let az=["Show When Signed In","Show When Anonymous","Show When Returning Purchaser"];function aW(e){return az.includes(e)}function aU(e,t){let n=new Set(null==e?void 0:e.filter(aW));return!!(n.has("Show When Anonymous")&&n.has("Show When Returning Purchaser")&&n.has("Show When Signed In")||n.has("Show When Anonymous")&&!(null!=t&&t.userId)&&!(0,iu.UM)(iu.Re.userid)||n.has("Show When Returning Purchaser")&&null!=t&&t.userId&&void 0!==t.firstBuyer&&(null==t?void 0:t.firstBuyer)!=="1"||n.has("Show When Signed In")&&(null!=t&&t.userId||(0,iu.UM)(iu.Re.userid))&&((null==t?void 0:t.firstBuyer)===void 0||(null==t?void 0:t.firstBuyer)==="1"))}function aV(e){var t;let{banner:n,onClick:r,bannerPalette:l}=e;return(0,rU.jsxs)("div",{"data-theme":(null==l||null==(t=l.sys)?void 0:t.id)||"none",className:(0,rZ.A)("flex relative justify-center items-center",ap().main),children:[n,(0,rU.jsx)("button",{className:"relative mb-8 mr-4 pt-3 z-[12] self-start md:absolute md:right-0 md:my-3 md:mx-8 md:pt-0",onClick:r,type:"button",children:(0,rU.jsx)(ac.A,{})})]})}function aG(e){var t,n;let r,{banner:l}=e,{user:i}=(0,rk.J)(),{0:o,1:a}=(0,tB.useState)(aU(null!=(t=l.displayConditions)?t:[],i)),{0:s,1:c}=(0,tB.useState)(!1),u=null==(n=l.sys)?void 0:n.id;if((0,tB.useEffect)(()=>{var e;c(!!(u&&tU.Ar.getItem(u))),a((!l.dismissable||!s)&&aU(null!=(e=l.displayConditions)?e:[],i))},[i,l.displayConditions,u,l.dismissable,s]),!o||s)return null;switch(l.defaultViewType){case"Daily Streak":r=(0,rU.jsx)(a_,{banner:l});break;case"Pending Final Reward Claim":r=(0,rU.jsx)(aR,{banner:l});break;case"User Balances":r=(0,rU.jsx)(ag,{banner:l});break;case"Balances And Account":r=(0,rU.jsx)(aj,{banner:l});break;case"User Profile":r=(0,rU.jsx)(aF,{banner:l});break;case"User Profile And Balances":r=(0,rU.jsx)(aB,{banner:l});break;default:r=(0,rU.jsx)(aL,{banner:l})}return l.dismissable?(0,rU.jsx)(aV,{banner:r,onClick:()=>{tU.Ar.setItem(null!=u?u:"","1"),c(!0)},bannerPalette:l.palette}):r}var aZ=n(35553);let aJ=["children","className","id"],aq=["children","className"];function aK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?aK(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aQ(e){let{children:t,className:n,id:r}=e,l=(0,tK.A)(e,aJ),[i]=(0,iq.vp)(r||"");return(0,rU.jsx)("section",a$(a$({},l),{},{ref:i,id:r,className:(0,rZ.A)(n,"relative section scroll-mt-40"),children:t}))}function aX(e){let{children:t,className:n}=e,r=(0,tK.A)(e,aq);return t?(0,rU.jsx)("header",a$(a$({},r),{},{className:(0,rZ.A)(n,"text-headline-xl text-text-primary font-secondary font-bold","dark:[text-shadow:0_2px_4px_rgba(var(--color-black-rgb),0.24)]"),children:(0,o4.Kg)(t)?(0,rU.jsx)("h1",{children:t}):(0,rU.jsx)(rU.Fragment,{children:t})})):null}var a0=n(75058),a1=n.n(a0),a2=n(13378);function a5(e){let{item:t,className:n}=e,r=(0,tB.useRef)(null);return(0,tB.useEffect)(()=>{let e=r.current;if(!e)return;let t=new IntersectionObserver(t=>{t.forEach(t=>{t.intersectionRatio<.5&&(e.querySelectorAll("video").forEach(e=>{e.paused||e.pause()}),e.querySelectorAll("iframe").forEach(e=>{var t;null==(t=e.contentWindow)||t.postMessage(JSON.stringify({event:"command",func:"pauseVideo",args:""}),"*")}))})},{threshold:[0,.5,1]});return t.observe(e),()=>{t.disconnect()}},[]),(0,rU.jsx)("div",{ref:r,className:(0,rZ.A)(n,"flex justify-center rounded-lg overflow-hidden"),children:(0,rU.jsx)(a2.F,{entry:t})})}function a4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a4(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a6(e){var t,n,r,l;let{item:i}=e,{itemsCollection:o,slidesOnView:a,palette:s,autoplay:c,autoplayDelay:u,showIndicators:d,analyticsData:m}=i,p=null==o||null==(t=o.items)?void 0:t.map(e=>{var t,n,r,l,i,o;return(0,aZ.LD)(e)?(0,rU.jsx)("div",{className:(0,rZ.$)(1===a&&"px-section-buffer flex justify-center"),children:(0,rU.jsx)(ia._,{alt:null!=(n=null==e||null==(r=e.asset)?void 0:r.title)?n:"",src:null!=(l=null==e||null==(i=e.asset)?void 0:i.url)?l:"",className:(0,rZ.$)(1===a?"h-full":"w-full","object-contain")})},null==(t=e.sys)?void 0:t.id):(0,aZ.Dr)(e)?(0,rU.jsx)(a5,{className:(0,rZ.$)(1===a?"px-section-buffer flex justify-center":"[&>div]:!pb-0 [&>div]:!h-full"),item:e},null==e||null==(o=e.sys)?void 0:o.id):null}),h=(0,tB.useMemo)(()=>{var e;return null==m||null==(e=m.ztrack)?void 0:e.swipe},[null==m||null==(n=m.ztrack)?void 0:n.swipe]),g=(0,tB.useCallback)((e,t,n)=>{rj.CC&&h&&n&&rj.CC.customCount(a3(a3({},h),{},{value:e,family:t>e?"left":"right"}))},[h]);return(0,rU.jsxs)(aQ,{"data-theme":(null==s||null==(r=s.sys)?void 0:r.id)||"none",className:(0,rZ.$)(a1().main,"relative pt-1"),children:[(0,rU.jsx)(aX,{className:(0,rZ.$)(a1().title,"!text-[10px] flex justify-center ![text-shadow:none] !mb-0"),children:null==(l=i.title)?void 0:l.text}),(0,rU.jsxs)(i8.DO,{autoplay:!!c,autoplayDelay:null!=u?u:5e3,stopOnInteraction:!0,autoplayOnInit:!0,children:[(0,rU.jsx)(i8.DP,{loop:!0,align:"center",className:(0,rZ.$)("relative section-full",1!==a&&"px-section-buffer"),gap:{default:"1rem"},slidesInView:a?{default:a}:{default:1.1,sm:1.25,md:2.5,lg:3.5},onSlideChange:g,children:(0,rU.jsx)(i8.Wk,{children:p})}),d&&(0,rU.jsx)("div",{className:"empty:hidden gap-2 my-4 justify-center w-full flex",children:(0,rU.jsx)(i8.Dz,{className:(0,rZ.$)(a1().indicators,"block relative rounded-full h-1.5 w-1.5 data-[active]:bg-white after:absolute after:-inset-y-4 after:inset-x-0")})})]})]})}function a8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?a8(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let a7={backgroundColor:"background-color",backgroundGradient:"background-image",backgroundScaleMode:"object-fit",customOverrides:"custom-overrides"},se=["background-color","background-image","object-position","object-fit","transform","custom-overrides"],st=e=>{let t={};return e&&e.forEach(e=>{if(null!=e&&e.key){let n={},r=[];Object.entries(e).forEach(t=>{var l;let[i,o]=t,a=null!=(l=a7[i])?l:i;"custom-overrides"===a&&o&&Object.entries(o).forEach(t=>{let[n]=t;if(!/^[a-z]+(?:[A-Z][a-z]*)*$/.test(n)){let t=n.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());e.customOverrides[t]=e.customOverrides[n],delete e.customOverrides[n]}}),"backgroundHorizontalAlignment"===i||"backgroundVerticalAlignment"===i?r=[...r,o]:"key"!==i&&(n[a]=o)}),n["object-position"]=r.join(" ").trim(),t[e.key]=n}}),t},sn=(e,t,n)=>e[n]?{[t]:e[n]}:{},sr=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=se.reduce((n,r)=>{var l;return a9(a9({},n),{},{[r]:(null==(l=t[e])?void 0:l[r])||""})},{});return{background:a9(a9({},sn(r,"backgroundColor","background-color")),sn(r,"backgroundImage","background-image")),container:a9(a9(a9({},n?a9({},sn(r,"objectPosition","object-position")):a9({},sn(r,"backgroundPosition","object-position"))),n?a9({},sn(r,"objectFit","object-fit")):a9({},sn(r,"backgroundSize","object-fit"))),sn(r,"transform","transform")),custom:r["custom-overrides"]}},sl=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=sr(e,t,n);return a9(a9(a9({},r.background&&a9({},r.background)),r.container&&a9({},r.container)),r.custom&&a9({},r.custom))},si=()=>{let[e,t]=(0,nw.Wx)({threshold:.6});return[e,t]},so=(e,t)=>{var n;let r=null==e||null==(n=e.position)?void 0:n.find(e=>t in e);return r&&r[t]?"self-".concat(r[t]):"self-center"},sa=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"],ss=function(){let{logo:e,heading:t,subheading:n="",description:r,list:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{logo:(0,rZ.A)("h-auto max-h-24 min-h-[3rem] my-0 mx-auto transition-[filter] drop-shadow-lg object-contain overflow-hidden",e),heading:(0,rZ.A)("font-semibold text-center drop-shadow-lg",t),subheading:n,description:(0,rZ.A)("text-center text-base font-normal normal-case tracking-normal w-full md:w-3/4 drop-shadow-lg",r),list:(0,rZ.A)("flex flex-wrap gap-4 layout-content justify-center items-center mt-4 mb-0",l)}};var sc=n(57682),su=n.n(sc),sd=n(11133),sm=n(62414);function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let sg={listOverride:"!px-0"},sf={"self-start":sh(sh({},sg),{},{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",foregroundImage:"self-center lg:self-start"}),"self-end":sh(sh({},sg),{},{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",foregroundImage:"self-center lg:self-end"}),"self-center":{listOverride:"",logoOverride:"",headerOverride:"text-4xl",subheaderOverride:"",descriptionOverride:"",countdownTimer:"self-center",foregroundImage:""}}
1;function sv(e){var t,n;let{logo:r,position:l,classStyles:i,styles:o}=e;return(0,rU.jsx)("span",{className:sf[l].logoOverride,children:(0,rU.jsx)(ia._,{className:i,src:null!=(t=r.url)?t:"",alt:null!=(n=r.title)?n:"",style:o})})}function sb(e){let{text:t,position:n,classStyles:r,styles:l}=e,i=su().header;return(0,rU.jsx)("div",{className:(0,rZ.$)(r,sf[n].headerOverride,i),style:l,children:(0,rU.jsx)("h1",{children:t})})}function sx(e){let{text:t,position:n,classStyles:r,styles:l}=e,i=su().header;return(0,rU.jsx)("div",{className:(0,rZ.$)(r,sf[n].subheaderOverride,i),style:l,children:(0,rU.jsx)("p",{children:t})})}function sy(e){let{text:t,position:n,classStyles:r,styles:l}=e,i=su().mobileFullWidthDescription;return(0,rU.jsx)("div",{className:(0,rZ.$)(r,n,sf[n].descriptionOverride,i),style:l,children:(0,rU.jsx)(rJ.$,{children:t})})}function sw(e){let{text:t,image:n,paletteId:r,showExternalLinkIcon:l,styles:i,data:o}=e,{trackAnalyticsData:a}=(0,tZ.s)(),s=su().mobileFullWidthButton;if(n){var c,u;return(0,rU.jsx)(ia._,{className:(0,rZ.$)("p-0 m-0 border-0"),src:null!=(c=n.url)?c:"",alt:null!=(u=n.title)?u:"",style:i})}return(0,rU.jsxs)("button",{className:(0,rZ.$)("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%]",s),style:i,"data-theme":r,type:"button",onClick:()=>{o&&a({metadata:o})},children:[(0,rU.jsx)("div",{children:t}),l&&(0,rU.jsxs)(rU.Fragment,{children:["\xa0",(0,rU.jsx)(sd.A,{className:"ml-2"})]}),(0,rU.jsx)("span",{className:"absolute w-full h-full hover:bg-black hover:opacity-20"})]})}function sj(e){var t;let{links:n,position:r,classStyles:l,groupStyles:i,ctaStyles:o}=e;return(0,rU.jsx)("ul",{className:(0,rZ.$)(l,sf[r].listOverride),style:i,children:null==n||null==(t=n.items)?void 0:t.map(e=>{if((null==e?void 0:e.__typename)==="Button"){var t,n,r,l,i;return(0,rU.jsx)(sm.W,{item:e,children:(0,rU.jsx)(sw,{text:e.text||"",image:e.image||void 0,paletteId:null!=(n=null==(r=e.palette)||null==(r=r.sys)?void 0:r.id)?n:"none",showExternalLinkIcon:null!=(i=e.showExternalLinkIcon)&&i,styles:o,data:e.analyticsData},"cta-li-p-".concat(null==(l=e.sys)?void 0:l.id))},"cta-li-".concat(null==(t=e.sys)?void 0:t.id))}return null})})}function sO(e){var t,n;let{image:r,position:l,ctaStyles:i}=e;return(0,rU.jsx)("span",{className:sf[l].foregroundImage,children:(0,rU.jsx)(ia._,{src:null!=(t=r.url)?t:"",alt:null!=(n=r.title)?n:"",style:i})})}function sk(e){let{links:t,position:n,classStyles:r,styles:l}=e;return(0,rU.jsx)("ul",{className:(0,rZ.$)(r,sf[n].listOverride),style:l,children:(0,tG.U)(null==t?void 0:t.items).map((e,t)=>{var n,r;return e.label&&(0,rU.jsx)(sm.b,{item:e,testId:t0.tA,imageStyle:"h-12 hover:drop-shadow-lg transition-[filter]"},null!=(n=null==(r=e.sys)?void 0:r.id)?n:t)})})}let sA=(e,t,n,r)=>{var l,i,o,a;if(!e)return{};let s=null==(l=e.sys)?void 0:l.id,c=e.logo?(0,rU.jsx)(sv,{logo:e.logo,position:so(t,"logo"),classStyles:n.logo,styles:sl("logo",r,!0)},"hero-layout-logo-".concat(s)):null,u=e.heading?(0,rU.jsx)(sb,{text:e.heading,position:so(t,"heading"),classStyles:n.heading,styles:sl("heading",r)},"hero-layout-heading-".concat(s)):null,d=e.subheading?(0,rU.jsx)(sx,{text:e.subheading,position:so(t,"subheading"),classStyles:n.subheading,styles:sl("subheading",r)},"hero-layout-subheading-".concat(s)):null,m=e.description?(0,rU.jsx)(sy,{text:e.description,position:so(t,"description"),classStyles:n.description,styles:sl("description",r)},"hero-layout-description-".concat(s)):null,p=e.extendedDescription?(0,rU.jsx)(sy,{text:e.extendedDescription,position:so(t,"extendedDescription"),classStyles:n.description,styles:sl("extendedDescription",r)},"hero-layout-extended-description-".concat(s)):null,h=e.ctaButtonsCollection&&(null==(i=e.ctaButtonsCollection.items)?void 0:i.length)!==0?(0,rU.jsx)(sj,{links:e.ctaButtonsCollection,position:so(t,"ctaButtons"),classStyles:n.list,groupStyles:sl("ctaButtons",r),ctaStyles:sl("ctaButtons.button",r)},"hero-layout-cta-btns-".concat(s)):null,g=e.storeLinksCollection&&(null==(o=e.storeLinksCollection.items)?void 0:o.length)!==0?(0,rU.jsx)(sk,{links:e.storeLinksCollection,position:so(t,"storeLinks"),classStyles:n.list,styles:sl("storeLinks",r)},"hero-layout-store-links-".concat(s)):null,f=null!=e&&e.socialLinksCollection&&(null==e||null==(a=e.socialLinksCollection.items)?void 0:a.length)!==0?(0,rU.jsx)(sk,{links:e.socialLinksCollection,position:so(t,"socialLinks"),classStyles:n.list,styles:sl("socialLinks",r)},"hero-layout-social-links-".concat(s)):null;return{logo:c,heading:u,subheading:d,description:m,extendedDescription:p,ctaButtons:h,foregroundImage:null!=e&&e.foregroundImage?(0,rU.jsx)(sO,{image:e.foregroundImage,position:so(t,"foregroundImage"),ctaStyles:sl("foregroundImage",r)}
1,"hero-layout-cta-image-".concat(s)):null,storeLinks:g,socialLinks:f}};function sC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sC(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sS(e){var t,n,r,l,i,o,a,s,c;let{heroData:u,maxWidth:d}=e,{data:m,positionOverride:p,styleCollection:h}=u,g=st(null==h?void 0:h.items),f=sr("bg",g,!0),v=sr("fg",g),b=(0,nP.a)("".concat(tX.u8,"px")),[x,y]=si(),w=sA(m,p,ss({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"}),g),j=(0,tB.useMemo)(()=>null!=p&&p.left&&null!=p&&p.right?p:{left:["logo","heading","subheading","socialLinks"],right:["description","extendedDescription","storeLinks"]},[p]),O=(0,tB.useMemo)(()=>j.left.map(e=>w[e]),[j,w]),k=(0,tB.useMemo)(()=>
1j.right.map(e=>w[e]),[j,w]),A=null!=m&&null!=(t=m.video)&&t.url?{className:(0,rZ.A)("block absolute inset-0 w-full h-full object-cover object-center -z-10",su().animatedFadeIn),style:f.container&&f.container}:{};return(0,rU.jsxs)("div",{className:(0,rZ.A)("grid grid-cols-1 justify-items-center relative mx-auto z-10"),style:{maxWidth:d},children:[(0,rU.jsxs)("div",{className:(0,rZ.A)("my-0 mx-auto overflow-hidden inset-0","absolute"),ref:x,children:[(null==m||null==(n=m.image)?void 0:n.url)&&(0,rU.jsx)(ia._,{className:(0,rZ.A)("block absolute inset-0 w-full h-full object-cover -z-10","object-center"),style:sP({},f.container),src:null!=(r=m.image.url)?r:"",alt:null!=(l=m.image.title)?l:""}),(null==m||null==(i=m.video)?void 0:i.url)&&(0,rU.jsx)(nD.C,sP({allowMultiple:!1,id:"hero-layout-video",play:y,loop:!0,muted:!0,poster:null!=(o=null==m||null==(a=m.image)?void 0:a.url)?o:"",src:null!=(s=null==m||null==(c=m.video)?void 0:c.url)?s:""},A)),(0,rU.jsx)("span",{className:(0,rZ.A)("w-full h-full absolute"),style:sP({},f.background)})]}),(0,rU.jsxs)("div",{className:(0,rZ.A)("inline-flex flex-row w-full justify-center items-start p-24 relative"),style:sP(sP({},v.container),v.custom),children:[(0,rU.jsx)("span",{className:"w-full h-full absolute top-0 -z-20",style:sP({},v.background)}),b?(0,rU.jsxs)("div",{className:"flex flex-col",children:[O,k]}):(0,rU.jsxs)(rU.Fragment,{children:[(0,rU.jsx)("div",{className:"basis-1/2",children:O}),(0,rU.jsx)("div",{className:"basis-1/2",children:k})]})]})]})}var sN=n(59773),s_=n.n(sN);function sD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sD(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let sE=s_()(()=>Promise.all([n.e(7733),n.e(951)]).then(n.bind(n,13332)).then(e=>e.Rive),{loadableGenerated:{webpack:()=>[13332]}});function sT(e){var t,n,r,l,i,o,a,s;let c,{heroData:u,maxWidth:d}=e,{data:m,positionOverride:p,styleCollection:h}=u,g=(0,nP.a)("".concat(tX.u8,"px")),[f,v]=si(),b="Contained"!==u.mobileVariant,x=!b&&g,y=st(null==h?void 0:h.items),w=sr("bg",y,!0),j=sr("bgMobileContained",y,!0),O=sr("fg",y),k=sr("fgMobileContained",y),A=sA(m,p,ss({logo:"min-h-[6rem] lg:max-h-32",description:"2xl:w-2/4"}),y),C=sa(p),P={className:(0,rZ.A)("block absolute inset-0 w-full h-full object-cover object-center -z-10",su().animatedFadeIn),style:sI(sI({},w.container),w.custom)};return(0,rU.jsxs)("div",{className:(0,rZ.A)("grid grid-cols-1 justify-items-center relative mx-auto z-10"),style:{maxWidth:d},children:[(0,rU.jsxs)("div",{className:(0,rZ.A)("my-0 mx-auto overflow-hidden inset-0",b?"absolute":"relative w-full pb-[56.25%] lg:absolute lg:pb-0"),ref:f,children:[(null==m||null==(t=m.image)?void 0:t.url)&&(0,rU.jsx)(ia._,{className:(0,rZ.A)("block absolute inset-0 w-full h-full object-cover -z-10",b?"object-center":"object-right"),style:sI(sI({},w.container),w.custom),src:null!=(n=m.image.url)?n:"",alt:null!=(r=m.image.title)?r:""}),(null==m||null==(l=m.video)?void 0:l.url)&&(0,rU.jsx)(nD.C,sI({allowMultiple:!1,id:"hero-layout-video",play:v,loop:!0,muted:!0,poster:null!=(i=null==m||null==(o=m.image)?void 0:o.url)?i:"",src:null!=(a=null==m||null==(s=m.video)?void 0:s.url)?a:""},P)),(null==m?void 0:m.rive)&&(c=m.rive,(0,rU.jsx)("div",{className:(0,rZ.A)("block absolute inset-0 w-full h-full"),children:(0,rU.jsx)(sE,{rive:c})})),(0,rU.jsx)("span",{className:"w-full h-full absolute",style:sI(sI({},x?{backgroundImage:j.background.backgroundImage}:w.background&&w.background),w.custom)})]}),(0,rU.jsx)("div",{className:(0,rZ.A)("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",b?"justify-center min-h-[640px]":"justify-center lg:min-h-[640px]"),style:x?sI(sI(sI({},k.container),k.background),k.custom):sI(sI(sI({},O.container),O.background),O.custom),children:C.map(e=>A[e])})]})}function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?sL(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sY(e){var t,n,r,l,i,o,a,s;let{heroData:c,maxWidth:u}=e,{data:d,positionOverride:m,styleCollection:p}=c,h=st(null==p?void 0:p.items),g=sr("bg",h,!0),f=sr("fg",h),[v,b]=si(),x=sA(d,m,ss(),h),y=sa(m),w={className:(0,rZ.A)("block absolute inset-0 w-full h-full object-cover object-center -z-10",su().animatedFadeIn),style:sH(sH({},g.container),g.custom)};return(0,rU.jsxs)("div",{className:"flex flex-row-reverse mx-auto",style:{maxWidth:u},children:[(0,rU.jsxs)("div",{className:"inline-flex flex-col relative w-[65%]",style:g.background&&g.background,ref:v,children:[(null==d||null==(t=d.image)?void 0:t.url)&&(0,rU.jsx)(ia._,{className:"block absolute inset-0 w-full h-full object-cover object-center -z-10",style:sH(sH({},g.container),g.custom),src:null!=(n=d.image.url)?n:"",alt:null!=(r=d.image.title)?r:""}),(null==d||null==(l=d.video)?void 0:l.url)&&(0,rU.jsx)(nD.C,sH({allowMultiple:!1,id:"hero-layout-video",play:b,loop:!0,muted:!0,poster:null!=(i=null==d||null==(o=d.image)?void 0:o.url)?i:"",src:null!=(a=null==d||null==(s=d.video)?void 0:s.url)?a:""},w))]}),(0,rU.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:sH(sH(sH({},f.background),f.container),f.custom),children:y.map(e=>x[e])})]})}function sR(e){var t,n;let{item:r}=e,l=null==r?void 0:r.variant,i=sr("bg",st(null==r||null==(t=r.styleCollection)?void 0:t.items)).background,o=null!=(n=null==i?void 0:i.backgroundColor)?n:"transparent";return(0,rU.jsxs)("section",{style:{backgroundColor:o},children:[(0,rU.jsx)(ih,{id:r.id}),"mobile-full-width"===l&&(0,rU.jsx)(sT,{heroData:r,maxWidth:rA.M}),"partial-width"===l&&(0,rU.jsx)(sY,{heroData:r,maxWidth:rA.M}),"half-width"===l&&(0,rU.jsx)(sS,{heroData:r,maxWidth:rA.M})]})}var sM=n(361),sB=n(56516),sF=n(58916),sz=n(34968),sW=n(995),sU=n(48012);function sV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sV(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sZ(){var e,t;let n=(0,sW.O)(),r=(0,ry.Y)(),{t:l}=(0,sz.B)(),i=null!=(e=null==n?void 0:n.loyaltyConfig)?e:null,o=null==i?void 0:i.tilesBadge,a=null!=(t=null==n?void 0:n.data)?t:null;return e=>{var t;if(!a||!o)return null;let n=null==e||null==(t=e.display)?void 0:t.currency_amount;if(null==n)return null;let i=(null==e?void 0:e.skuId)||"unknown",s=(0,sU.Dk)(Number(n),r,!1),c=l("loyalty-points-earned",{amount:s,count:Number(n)});return sG(sG({},o),{},{sys:sG(sG({},o.sys),{},{id:"loyalty-badge-".concat(i)}),message:sG(sG({},o.message),{},{text:s}),description:sG(sG({},o.description),{},{text:c})})}}var sJ=n(45982),sq=n(89417),sK=n(12045),s$=n(88611),sQ=n(50154);function sX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sX(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let s1="player-upsell-badge";var s2=n(72281);function s5(e){let t,n=(0,s2.c)(e),{t:r}=(0,sz.B)();return t=(0,s$.W)(),(0,tB.useCallback)(e=>{var l,i;let o=(null==e?void 0:e.externalId)||(null==e?void 0:e.skuId);if(!o||!n)return null;let a=(0,sK.as)(null==(l=n.entry.upsellUi)?void 0:l.__typename);if(null!==a&&"minigame"!==a)return null;let s=(0,sq.Lt)({products:n.products},{product_id:o});if(!s)return null;
1let c=(0,sQ.zA)(n.entry),u=(0,sQ.Ni)(c),d=u.paletteId,m=null==c?void 0:c.tileBadge,p={groupId:s.groupId,groupType:s.groupType,options:s.options,config:c},h={icon:null!=(i=null==m?void 0:m.icon)?i:{url:(0,sq.cp)(u.renderer)},onClick:()=>t(p)};return m?s0(s0({},m),{},{sys:s0(s0({},m.sys),{},{id:"".concat(s1,"-").concat(o)})},h):s0({sys:{id:"".concat(s1,"-").concat(o)},tagStyle:"Small",placement:"Right",message:{text:r("games-badge-cta")},palette:d?{sys:{id:d}}:void 0},h)},[n,t,r])}var s4=n(29859),s3=n(63212),s6=n.n(s3);let s8={start:"flex-start",center:"center",end:"flex-end"},s9={top:"items-start",center:"items-center pb-1 px-6",bottom:"items-end"};function s7(e){return!!(null==e?void 0:e.fullWidth)}function ce(e){return"number"==typeof e&&Number.isFinite(e)&&e>0?e:void 0}function ct(e){var t,n,r,l,i,o,a;let{item:s}=e,{text:c,textBackgroundImage:u,backgroundAlignment:d,backgroundImagesCollection:m,backgroundBottomOffset:p,palette:h,flexibleSize:g,fullWidth:f,backgroundImageOverflow:v,textAlignment:b}=s,x=null==m?void 0:m.items,y=!!(null==h||null==(t=h.sys)?void 0:t.id),w=!!v,j=w?"z-[3]":"z-[1]",O=null!=(n=s8[null!=d?d:""])?n:"center",k=!!(null==x?void 0:x.length),A=(0,rU.jsx)("div",{className:(0,rZ.A)("text absolute inset-0 flex justify-center antialiased overflow-hidden",null!=(r=s9[null!=b?b:""])?r:s9.center,("top"===b||"bottom"===b)&&"py-5"),children:(0,rU.jsx)("span",{className:(0,rZ.A)("block max-w-full truncate",s6().text),children:null==c?void 0:c.text})});if(g&&(null==u||null==(l=u.url)?void 0:l.trim())){let e=ce(null==u?void 0:u.width),t=ce(null==u?void 0:u.height),n=!!(e&&t);return(0,rU.jsxs)("div",{className:(0,rZ.A)("relative w-full mx-auto text-center isolate",!f&&!n&&"max-w-[600px]",w&&"overflow-visible",!k&&"p-5"),style:n&&!f?{maxWidth:"".concat(e,"px")}:void 0,"data-theme":null==h||null==(o=h.sys)?void 0:o.id,children:[k&&(0,rU.jsx)("div",{className:(0,rZ.A)("relative flex items-end",j),style:{justifyContent:O,transform:p?"translateY(-".concat(p,"px)"):void 0},children:null==x?void 0:x.map((e,t)=>{var n,r,l;return(0,rU.jsx)(ia._,{className:"block w-full h-auto",pictureClassName:"block min-w-0 flex-[0_1_40%] max-w-[320px]",src:null!=(l=null==e?void 0:e.url)?l:"",alt:"","aria-hidden":"true"},"bkg-img-".concat(null!=(n=null==e||null==(r=e.sys)?void 0:r.id)?n:t))})}),(0,rU.jsxs)("div",{className:(0,rZ.A)("relative z-[2] w-full",k&&"-mt-[min(20%,160px)]",y&&s6().headerSkin),style:n?{aspectRatio:"".concat(e," / ").concat(t)}:void 0,children:[(0,rU.jsx)(ia._,{className:"block w-full h-auto",pictureClassName:"block",src:null!=(a=null==u?void 0:u.url)?a:"",alt:"","aria-hidden":"true"}),A]})]})}return(0,rU.jsxs)("div",{className:(0,rZ.A)("relative w-full mx-auto text-center",!g&&!f&&"max-w-[600px]",w&&"overflow-visible",(null==x?void 0:x.length)===0&&"py-5",y&&s6().headerSkin),"data-theme":null==h||null==(i=h.sys)?void 0:i.id,children:[k&&(0,rU.jsx)("div",{className:(0,rZ.A)("relative flex items-end",j,!!(g||f)&&"w-full mx-auto max-w-[600px]"),style:{justifyContent:O,paddingBottom:null!=p?p:0},children:null==x?void 0:x.map((e,t)=>{var n,r,l;return(0,rU.jsx)(ia._,{className:"w-auto h-[150px]",src:null!=(l=null==e?void 0:e.url)?l:"",alt:"","aria-hidden":"true"},"bkg-img-".concat(null!=(n=null==e||null==(r=e.sys)?void 0:r.id)?n:t))})}),null!=u&&u.url?(0,rU.jsxs)("div",{className:(0,rZ.A)("z-[2] w-full",k?"absolute bottom-0 left-1/2 -translate-x-1/2":"relative"),children:[(0,rU.jsx)(ia._,{className:"block w-full h-[51px]",pictureClassName:"block",src:u.url,alt:"","aria-hidden":"true"}),A]}):A]})}var cn=n(47387),cr=n(53163),cl=n(93754),ci=n(96980),co=n(21529),ca=n(24791),cs=n.n(ca),cc=n(40924);function cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}let cd={default:1.1,sm:1.65,md:2.15,lg:2.35,xl:3,"2xl":4},cm=new Map([[ci.e,{default:1.1,sm:2.1,md:3.1,lg:4.2,xl:5,"2xl":6}],[co.D,{default:2.1,sm:3.15,md:3.5,lg:4.2,xl:5,"2xl":6}],[cl.S,{default:1.5,sm:2.5,md:3.5,lg:4.5,xl:5.5,"2xl":6.5}]]);function cp(e){var t,n,r,l,i;let{children:o,item:a}=e,s=function(e){let{user:t,zTrackInitialized:n}=(0,rk.J)(),r=t&&t.segments?t.segments:void 0;return(0,tB.useCallback)((t,l,i)=>{i&&n&&(0,rO.a)({kingdom:rj.zh.swipe,counter:rj.uU.zyngaStore,phylum:"store",trackClass:e,family:t>l?"right":"left",value:t,genus:r&&r.length>0?r.join(","):void 0})},[r,n,e])}(a.slug||a.__typename),c=null==(t=a.headerImageDesktop)?void 0:t.url,u=null==(n=a.headerImageMobile)?void 0:n.url,d=null!=(r=null==(l=a.headerImageDesktop)?void 0:l.title)?r:null==(i=a.headerImageMobile)?void 0:i.title,m=(0,cr.sU)(a.defaultViewType)===cl.S&&!!c&&!!u,p=a.defaultViewType===cc.Us.BoxArt&&!!c&&!!u,h=tB.Children.count(o)+ +!!m,g=(0,tB.useMemo)(()=>{let e=(0,cr.sU)(a.defaultViewType),t=e&&cm.get(e)||cd,n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?cu(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t);for(let[e,r]of Object.entries(t))Math.floor(r)===h&&(n[e]=h);return n},[h,a.defaultViewType]);return(0,rU.jsxs)(rU.Fragment,{children:[p&&(0,rU.jsx)("div",{className:(0,rZ.A)("rounded-lg overflow-hidden mb-4",cs().main),children:(0,rU.jsxs)("picture",{className:"w-full h-full",children:[(0,rU.jsx)(cn.k,{src:c,media:"md"}),(0,rU.jsx)(cn.k,{src:u,media:null}),(0,rU.jsx)("img",{className:"w-full h-full object-cover",src:u,alt:null!=d?d:""})]})}),(0,rU.jsxs)(i8.DO,{children:[(0,rU.jsx)(i8.DP,{align:"center",onSlideChange:s,slidesToScroll:"auto",slidesInView:g,className:(0,rZ.A)("px-section-buffer section-full","has-[[data-marketing-message-overflow]]:pt-6 has-[[data-marketing-message-overflow]]:ps-6","has-[[data-flip-overflow]]:py-1.5",cs().carouselGap),children:(0,rU.jsxs)(i8.Wk,{children:[m&&(0,rU.jsx)("div",{className:(0,rZ.A)("rounded-lg overflow-hidden",cs().main),children:(0,rU.jsxs)("picture",{className:"w-full h-full",children:[(0,rU.jsx)(cn.k,{src:c,media:"lg"}),(0,rU.jsx)(cn.k,{src:u,media:null}),(0,rU.jsx)("img",{className:"w-full h-full object-cover",src:u,alt:null!=d?d:""})]})}),o]})}),(0,rU.jsx)("div",{className:"empty:hidden gap-2 my-4 justify-center w-full pointer-coarse:hidden pointer-fine:flex",children:(0,rU.jsx)(i8.Dz,{className:"block relative h-1 w-10 rounded-sm bg-white-20 data-[active]:bg-white after:absolute after:-inset-y-4 after:inset-x-0"})})]})]})}function ch(e){let{item:t,children:n,variant:r="v1"}=e,l=tB.Children.toArray(n),i=l.pop(),{zTrackInitialized:o}=(0,rk.J)(),a=!!(null!=t&&t.showFinalTileOnTop);return((0,tB.useEffect)(()=>{o&&rj.CC&&rj.CC.count(rj.zh.page_view,{phylum:"streak",attribute:"active"})},[o]),"v2"===r)?(0,rU.jsxs)("section",{"data-testid":t0.gj,className:"mx-auto flex w-full max-w-daily-streak flex-col gap-1",children:[a&&(0,rU.jsx)("div",{className:"[&>*]:h-auto",children:i}),!!l.length&&(0,rU.jsx)("div",{className:"flex flex-col gap-1",children:l}),!a&&(0,rU.jsx)("div",{className:"[&>*]:h-auto",children:i})]}):(0,rU.jsxs)("section",{"data-testid":t0.gj,className:"grid grid-cols-1 md:grid-cols-2 gap-5 max-w-6xl",children:[!!l.length&&(0,rU.jsx)("div",{className:"grid grid-cols-1 gap-1 h-fit",children:l}),(0,rU.jsx)("div",{className:(0,rZ.A)("self-start",{"order-first md:order-last":a}),children:i})]})}var cg=n(46962),cf=n(76934),cv=n(26530);let cb=new Map([[co.D,"grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-4 xl:grid-cols-5 3xl:grid-cols-6"],[ci.e,"grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 3xl:grid-cols-6"],[cl.S,"grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-4 2xl:grid-cols-5 3xl:grid-cols-5"],[cg.Z,"grid-cols-1"],[cf.S,"grid-cols-1"],[cv.M,"grid-cols-1"]]);function cx(e){var t,n,r,l,i,o,a,s,c,u,d,m,p,h,g,f,v;let b,{children:x,item:y}=e,w=(0,nP.a)("".concat(tX.cJ,"px")),j=y.defaultViewType,O=(j===cc.Us.List||j===cc.Us.BoxArt)&&!!(null!=y&&null!=(t=y.headerImageDesktop)&&t.url)&&!!(null!=y&&null!=(n=y.headerImageMobile)&&n.url),k=(0,cr.sU)(j)===cl.S&&!!(null!=y&&null!=(r=y.headerImageDesktop)&&r.url),A=(b=(0,cr.sU)(j))&&cb.get(b)||"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4";return(0,rU.jsxs)("div",{"data-testid":t0.gj,children:[O&&(0,rU.jsx)("div",{"data-tile":cc.Us.List,"data-testid":t0.Vy,"data-theme":null==(l=y.layoutPalette)||null==(l=l.sys)?void 0:l.id,children:(0,rU.jsx)("div",{className:(0,rZ.A)("w-full rounded-lg overflow-hidden mb-4",cs().main),children:(0,rU.jsx)(ia._,{className:(0,rZ.A)("w-full"),src:null!=(i=w?null==(o=y.headerImageMobile)?void 0:o.url:null==(a=y.headerImageDesktop)?void 0:a.url)?i:"",alt:null!=(s=w?null==(c=y.headerImageMobile)?void 0:c.title:null==(u=y.headerImageDesktop)?void 0:u.title)?s:""})})}),(0,rU.jsxs)("div",{className:(0,rZ.A)("grid gap-4",A),children:[k&&(0,rU.jsx)("div",{"data-tile":cc.Us.AnimatedBoxart,"data-testid":t0.Vy,"data-theme":null==(d=y.layoutPalette)||null==(d=d.sys)?void 0:d.id,className:(0,rZ.A)("roun
1ded-lg overflow-hidden",cs().main),children:(0,rU.jsx)(ia._,{className:"w-full h-full object-cover",src:null!=(m=w?null==(p=y.headerImageMobile)?void 0:p.url:null==(h=y.headerImageDesktop)?void 0:h.url)?m:"",alt:null!=(g=w?null==(f=y.headerImageMobile)?void 0:f.title:null==(v=y.headerImageDesktop)?void 0:v.title)?g:""})}),x]})]})}var cy=n(60801),cw=n(34539),cj=n(56110);function cO(e){return(0,tB.useMemo)(()=>{var t,n;let r=null!=(t=null==e?void 0:e.tileToPaletteLink)?t:[],l=null!=(n=null==e?void 0:e.themeToPersonalizedItemLink)?n:[];return Array.isArray(r)||(r=[]),Array.isArray(l)||(l=[]),new Map([...r.map(e=>[e.from,e.to]),...l.map(e=>[e.from,e.to])])},[null==e?void 0:e.tileToPaletteLink,null==e?void 0:e.themeToPersonalizedItemLink])}let ck=new Set([cw.F,cj.Q,co.D,ci.e,cy.x]),cA={gridCols:"sm:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4",mobileColSpan:"!col-span-full",childrenFullSpan:!0},cC={gridCols:"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 3xl:grid-cols-6",mobileColSpan:"!col-span-1",childrenFullSpan:!1},cP=new Map([[co.D,cC],[ci.e,cC]]),cS=e=>{let t=(0,cr.sU)(e);return t&&cP.get(t)||cA};function cN(e){var t,n,r,l,i,o,a,s,c;let{item:u,children:d}=e,m=cO(u),p=(0,rx.YY)(),h=sZ(),g=s5("upsell-purchase"),f=null!=(t=u.itemData)?t:{},v=u.mktMsgToPersonalizedItemLink||[],b=(null==(n=u.marketingMessagesCollection)?void 0:n.items)||[],x="list"===u.packageContentsVariant&&"list"||"boxed"===u.packageContentsVariant&&"boxed"||"inline"===u.packageContentsVariant&&"inline"||null,y="transparent"===u.tileImageType&&"transparent"||"opaque"===u.tileImageType&&"opaque"||"opaque",w=[],j=null!=(r=null==(l=u.itemsCollection)?void 0:l.items)?r:[],O=tB.Children.toArray(d);for(let e=0;e<j.length;e+=1){let t=j[e],n=null!=(i=null==t||null==(o=t.sys)?void 0:o.id)?i:"",r=f[n]||f["".concat(e)]||null;if(!r){w.push(O[e]);continue}let l=(null==t||null==(a=t.marketingMessagesCollection)?void 0:a.items)||v.filter(n=>{var r;return n.from==="".concat(e)||n.from===(null==t||null==(r=t.sys)?void 0:r.id)}).map(e=>b.find(t=>{var n;return(null==t||null==(n=t.sys)?void 0:n.id)===e.to})),d=null==p||null==(s=p[n])?void 0:s[0],k=h(d),A=g(d),C={pkgVariant:x,item:t,imageType:y,marketingMessages:[...(0,tG.U)(l),...k?[k]:[],...A?[A]:[]]},P=(0,cr.jW)(r),S=P&&ck.has(P)?(0,tB.createElement)(P,C):null,N=(0,rZ.A)("block sm:hidden",cS(r).mobileColSpan),_=(0,rU.jsx)("div",{"data-mixed-tile":!0,className:"hidden sm:block",children:O[e]}),D=(0,rU.jsx)("div",{"data-mixed-tile":!0,className:N,children:S}),I=m.get(n)||m.get("".concat(e))||(null==u||null==(c=u.layoutPalette)||null==(c=c.sys)?void 0:c.id)||"";w.push((0,rU.jsxs)(tB.Fragment,{children:[_,(0,rU.jsx)(rb.r.Provider,{value:I,children:(0,rU.jsx)(aH.px,{value:t,children:(0,rU.jsx)(is.H,{children:D})})})]},n+r))}let k=cS(u.defaultViewType);return(0,rU.jsx)("div",{"data-testid":t0.gj,className:(0,rZ.A)("grid gap-4 grid-cols-2",k.childrenFullSpan&&"[&>*]:col-span-full [&>*]:sm:col-span-1",k.gridCols),children:w})}var c_=n(84726);function cD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cD(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let cE=e=>(0,rU.jsx)("svg",cI(cI({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,rU.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.9
168A1.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"})}));var cT=n(44696),cL=n.n(cT);function cH(e){var t,n;let{tracker:r}=e,{title:l,unauthenticatedTitle:i,description:o,unauthenticatedDescription:a,currentDay:s,milestoneDay:c,milestoneMaxDay:u,rewardBonusLabel:d,rewardBonusValue:m}=r,{t:p}=(0,tF.Bd)(),{user:h}=(0,rk.J)(),g=h&&u&&u>0;return(0,rU.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==(n=r.palette)||null==(n=n.sys)?void 0:n.id)?t:"none",children:(0,rU.jsx)("section",{className:"flex-grow flex flex-col",children:(0,rU.jsxs)("div",{className:(0,rZ.A)("flex flex-col mt-auto mb-4 rounded",cL().trackerContainer),children:[(0,rU.jsx)("div",{className:(0,rZ.A)("flex flex-col py-4 px-6 rounded-t",cL().trackerHeader),children:(0,rU.jsxs)("div",{className:"flex flex-col justify-between font-bold",children:[(0,rU.jsx)("p",{className:(0,rZ.A)("content-end text-2xl",cL().trackerHeaderDescription),children:h?l:i}),h&&(0,rU.jsx)("p",{className:(0,rZ.A)("text-5xl",cL().trackerHeaderCounter),children:s})]})}),h&&(0,rU.jsx)("div",{className:(0,rZ.A)("text-body-m text-center font-bold uppercase py-1 px-4",cL().trackerBonusCaption),children:(0,rU.jsx)("p",{children:"".concat(d," ").concat(m)})}),(0,rU.jsxs)("div",{className:(0,rZ.A)("flex flex-col gap-y-2 py-4 px-6 rounded-b",cL().trackerSecondary),children:[(0,rU.jsx)("p",{className:"text-body-s",children:h?o:a}),g&&(0,rU.jsx)("p",{className:"text-body-s pb-4",children:p("progressive-streak-days-claimed",{progress:c,milestoneMaxDay:u})}),g&&(0,rU.jsx)("div",{className:"flex flex-col items-center space-y-4 py-2",children:(0,rU.jsxs)("div",{className:(0,rZ.A)("relative w-full rounded-full h-4",cL().progressBarContainer),children:[(0,rU.jsx)("div",{className:(0,rZ.A)("absolute w-full rounded-full h-[0.9rem]",cL().progressBar),style:{width:"".concat((null!=c?c:0)/(null!=u?u:1)*100,"%")}}),(0,rU.jsx)("span",{className:(0,rZ.A)("absolute flex items-center justify-center -top-1/2 -right-2 h-8 w-8 rounded-2xl",cL().trackerGift),children:(0,rU.jsx)(cE,{className:"h-6 w-6"})})]})})]})]})})})}var cY=n(47299),cR=n(7329),cM=n(35277);function cB(e){var t,n,r,l,i,o,a;let{preText:s,firstTileId:c,groupType:u}=e,d=(0,rx.YY)(),{t:m}=(0,tF.Bd)(),p=(0,tB.useContext)(cR.y),h=()=>null==p?void 0:p("tile-attrs"),g=(0,sJ.T)("layoutListView.tileAttributes"),f=(0,sJ.T)("tileAttribute.main"),v=(0,sJ.T)("layoutListView.description"),b=u===tV.MH.groupSaleStock;if(!c||!d)return null;let x=null==(t=d[c])?void 0:t[0],y=null==x||null==(n=x.offerTagsArray)?void 0:n.includes(tV.rG.HideCountdown),w=(null==x||null==(r=x.promotion)?void 0:r.start)||0,j=(null==x||null==(l=x.promotion)?void 0:l.end)||0,O=(null==x?void 0:x.promoLimitResetDate)||0,k=(null!=(i=null==x?void 0:x.promoLimitCount)?i:0)-(null!=(o=null==x?void 0:x.promoLimitUsed)?o:0),A=b&&w&&O&&Math.ceil((O-w)/1e3/3600),C=b&&A&&(null==s||null==(a=s.json)||null==(a=a.content)||null==(a=a[0])||null==(a=a.content)?void 0:a[0].value.replace("{{hours}}",A.toString())),P=!b&&(0,rU.jsx)(oP.s,{document:null==s?void 0:s.json});return(0,rU.jsxs)(rU.Fragment,{children:[(C||P)&&(0,rU.jsx)("div",{className:(0,rZ.A)(v,"text-body-s text-text-primary-80 [&_a]:text-link w-fit"),children:C||P}),(0,rU.jsxs)("div",{className:(0,rZ.A)(g,"flex flex-row flex-wrap gap-x-2 gap-y-0.5"),children:[!y&&(0,rU.jsx)(iA.G,{onDone:h,endDate:j,children:(0,rU.jsxs)(cM.nW,{className:(0,rZ.A)(f,"uppercase"),children:[(0,rU.jsx)(ij.A,{}),(0,rU.jsx)("span",{className:"ms-1",children:(0,rU.jsxs)(tF.x6,{i18nKey:"offer-ends-in",children:["Offer ends in",(0,rU.jsx)(iA.q,{className:"font-bold",daysHoursOnly:!0})]})})]})}),b&&k>0&&(0,rU.jsxs)(cM.nW,{className:(0,rZ.A)(f,"uppercase"),children:[(0,rU.jsx)(cY.A,{}),(0,rU.jsxs)("span",{className:"ms-1",children:[k," ",m(k>1?"purchases-available":"purchase-available-singular")]})]}),b&&0===k&&(0,rU.jsx)("div",{className:"flex flex-col",children:(0,rU.jsx)(iA.G,{onDone:h,endDate:O,children:(0,rU.jsxs)(cM.nW,{className:(0,rZ.A)(f,"uppercase"),children:[(0,rU.jsx)(ij.A,{className:"ms-1"}),(0,rU.jsxs)("span",{className:"ms-1",children:[(0,rU.jsx)(iA.q,{daysHoursOnly:!0})," ",m("until-purchasable")]})]})})})]})]})}var cF=n(40441);function cz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?cz(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let cU=new Set([co.D,ci.e,cw.F,cy.x,cF.b,cj.Q]),cV=e=>{let t=(0,cr.sU)(e);return!!t&&cU.has(t)};function cG(e){var t,n,r,l,i,o,a,s,c,u,d,m,p,h,g,f,v,b,x,y,w,j,O,k,A,C,P,S,N,_,D,I;let{item:E,dynamicMarketing:T}=e,L=(0,rx.YY)(),H=(0,iO.b)(),{env:Y={}}=(0,rf.IQ)(),{t:R}=(0,tF.Bd)(),M=Y.showTilesWithUnavailableSkus,B=(0,tB.useRef)(0),F=E.layoutPalette,z=(0,sJ.T)("layoutListView.heading",F),W=(0,sJ.T)("layoutListView.description",F),U=(0,tB.useCallback)(()=>{if(document.getElementsByClassName("xpaystation-widget-lightbox-content-iframe").length>0)return;let e=Date.now();e-B.current<3e3||(B.current=e,H())},[H]),{user:V,zTrackInitialized:G}=(0,rk.J)(),Z=sZ(),J=s5("upsell-purchase"),q=(0,sW.O)(),K=(null==(t=E.header)?void 0:t.text)||"",$=E.decoratedHeader&&(0,t5.Y)(ct,{item:E.decoratedHeader})||K&&(0,t5.Y)(sM.E,{as:E.headerH1?"h1":"h2",className:z,children:K})||null,Q="list"===E.packageContentsVariant&&"list"||"boxed"===E.packageContentsVariant&&"boxed"||"inline"===E.packageContentsVariant&&"inline"||"grid"===E.packageContentsVariant&&"grid"||"grid-centered"===E.packageContentsVariant&&"grid-centered"||"selector"===E.packageContentsVariant&&"selector"||"carousel"===E.packageContentsVariant&&"carousel"||"grid-inline-header"===E.packageContentsVariant&&"grid-inline-header"||null,X="transparent"===E.tileImageType&&"transparent"||"opaque"===E.tileImageType&&"opaque"||"square"===E.tileImageType&&"square"||"opaque",ee=cO(E),et=(null==(n=E.marketingMessagesCollection)?void 0:n.items)||[],{preText:en,postText:er,bg:el}=E,ei=(0,tB.useMemo)(()=>(0,rN.VG)(el),[el]),eo=ei?"url('".concat(ei,"')"):"",ea=[],es=E.defaultViewType,ec=null==E?void 0:E.packageContentsVariant,eu=(0,cc.bQ)(es),ed=null!=(r=E.tileGroupsCollection)&&null!=(r=r.items)&&r.length?null==(l=E.tileGroupsCollection)?void 0:l.items:null==(i=E.itemsCollection)?void 0:i.items;ed=ed||[];let em=!!E.showCountdownWithStockQuantity,ep=(0,tB.useMemo)(()=>({tiles:ed,staticStreak:es===cc.Us.DailyStreakStatic}),[ed,es]);(0,tB.useEffect)(()=>{G&&rj.CC&&(0,cc.Bo)(es)&&0===ea.length&&rj.CC.count(rj.zh.page_view,{phylum:"streak",attribute:"empty"})},[G]);let{displayListView:eh,groupType:eg}=function(e){var t,n,r,l,i,o,a,s,c,u;let{tiles:d}=e,m=(0,rx.YY)(),p=!0,h=null;if((null==d||null==(t=d[0])?void 0:t.__typename)==="TileGroup"||d.length<=1||!m)return{displayListView:p,groupType:h};let g=null==d||null==(n=d[0])||null==(n=n.sys)?void 0:n.id,f=g&&m?null==(r=m[g])?void 0:r[0]:null,v=(null==f||null==(l=f.promotion)?void 0:l.start)||0,b=null==f||null==(i=f.inGroup)?void 0:i.groupId,x=(0,ik.gZ)();if(!(b&&d.every(e=>{var t,n,r,l;let i=null==e||null==(t=e.sys)?void 0:t.id,o=i&&m?null==(n=m[i])?void 0:n[0]:null;return(null==o||null==(r=o.inGroup)||null==(r=r.groupId)?void 0:r.startsWith("GROUP_SALE_"))&&(null==o||null==(l=o.inGroup)?void 0:l.groupId)===b})))return{displayListView:p,groupType:h};if((h=null==f||null==(o=f.inGroup)?void 0:o.groupType)===tV.MH.groupSaleMin&&(v>x||(null==f||null==(a=f.promotion)?void 0:a.start)===0)&&(h=null),h===tV.MH.groupSaleStock){let e=null!=(s=null==f?void 0:f.promoLimitCount)?s:0,t=null!=(c=null==f?void 0:f.promoLimitUsed)?c:0,n=(null==f||null==(u=f.promotion)?void 0:u.end)||0;0==e-t&&(p=!(n<=((null==f?void 0:f.promoLimitResetDate)||0)))}return{displayListView:p,groupType:h}}({tiles:ed}),ef=(0,cc.Bo)(es),ev=null==q?void 0:q.setInitiatorContext;(0,tB.useLayoutEffect)(()=>{if(ef&&ev)return ev("streak"),()=>ev("store")},[ef,ev]);let eb=E.mktMsgToPersonalizedItemLink||[];if(!eh)return null;for(let e=0;e<ed.length;e+=1){let t,n=ed[e],r=null!=(g=null==n||null==(f=n.sys)?void 0:f.id)?g:"",l=null,i=E.defaultViewType||"",o=[],a=ee.get(r)||ee.get("".concat(e))||(null==E||null==(v=E.layoutPalette)||null==(v=v.sys)?void 0:v.id)||"";if((null==n?void 0:n.__typename)==="TileGroup"){let e=new Set(null!=(x=(null!=(b=E.tileGroupsToItems)?b:{})[r])?x:[]),a=(0,tG.U)(null==(y=E.itemsCollection)||null==(y=y.items)?void 0:y.filter(t=>{var n,r,l;return(null==t||null==(n=t.sys)?void 0:n.id)&&e.has(t.sys.id)&&(null==L?void 0:L[null!=(r=null==(l=t.sys)?void 0:l.id)?r:""])}));if(a.find(e=>{var t,n;return(null==L||null==(t=L[(null==(n=e.sys)?void 0:n.id)||""])||null==(t=t[0])||null==(t=t.promotion)?void 0:t.reason)===rg.$J.HideWhenAnonymous})&&!V)continue;if(n&&a.length||n.calendar){o=a;let e=a.flatMap(e=>{var t,n;let r=null==(t=e.sys)?void 0:t.id;if(!r)return[];let l=null==L||null==(n=L[r])?void 0:n[0];return(0,tG.U)([Z(l),J(l)]).map(e=>({message:e,itemId:r}))});e.length&&(t=e);let r=null!=(w=(0,tG.U)(null==E||null==(j=E.marketingMessagesCollection)?void 0:j.items))?w:[],s={tileGroup:n,tileItems:a,imageType:X,paletteMap:ee,pkgVariant:Q,calendar:n.calendar,marketingMessages:r,msgLink:null!=(O=null==E?void 0:E.mktMsgToPersonalizedItemLink)?O:[],shouldTileFlip:!!E.shouldTileFlip,showCountdownWithStock:em},c=(0,cr.jJ)(i);l=c?(0,t5.Y)(c,cW({},s)):null}}if((null==n?void 0:n.__typename)==="Item"){let r=null==L||null==(k=L[(null==(A=n.sys)?void 0:A.id)||""])?void 0:k[0],a=null==r?void 0:r.purchaseState,s=null==r||null==(C=r.promotion)?void 0:C.reason,c=(null==r?void 0:r.purchaseState)===tV.h1.owned,u=null==r||null==(P=r.offerTagsArray)?void 0:P.some(e=>e===tV.rG.Daily||e===tV.rG.Weekly||e===tV.rG.CustomResetCadence),d=null==r||null==(S=r.offerTags)?void 0:S.includes(tV.rG.HideCooldown),m=cV(es);if(s===rg.$J.HideWhenAnonymous&&!V||(null==r?void 0:r.purchaseState)!==tV.h1.purchasable&&(null==r||null==(N=r.inGroup)?void 0:N.groupType)!==tV.MH.dailyStreak&&(null==r||null==(_=r.inGroup)?void 0:_.groupType)!==tV.MH.groupSaleStock&&(!r||c&&s===rg.$J.Cooldown&&d||c&&!u&&m||a===tV.h1.unavailable&&!M||a===tV.h1.hidden))continue;let p=(null==(D=n.marketingMessagesCollection)?void 0:D.items)||[],h=(0,tG.U)(eb.filter(t=>{var r;return t.from==="".concat(e)||t.from===(null==(r=n.sys)?void 0:r.id)}).map(e=>et.find(t=>{var n;return(null==t||null==(n=t.sys)?void 0:n.id)===e.to}))),g=0===p.length?h:p,f=(0,tG.U)([Z(r),J(r)]);f.length&&(t=f.map(e=>({message:e}))),o=[n];let v={pkgVariant:Q,item:n,imageType:X,shouldTileFlip:!!E.shouldTileFlip,additionalData:null==E||null==(I=E.additionalDataCollection)||null==(I=I.items)?void 0:I[0],highlightFirstItem:!!E.highlightFirstItem,marketingMessages:(0,tG.U)(g),showCountdownWithStock:em,compact:eu};(es===cc.Us.DailyStreak||es===cc.Us.DailyStreakStatic)&&(i=e<ed.length-1?cc.Us.ListDailyStreak:cc.Us.GiganticDailyStreak),(0,cc.Nq)(es)&&(i=e<ed.length-1?cc.Us.ListDailyStreakV2:cc.Us.GiganticDailyStreakV2),es===cc.Us.Table&&(i=cc.Us.Table);let b=(0,cr.jW)(i);(l=b?(0,t5.Y)(b,cW({},v)):null)&&(l=(0,t5.Y)(aH.px,{value:n,children:(0,t5.Y)(sF.F,{children:(0,t5.Y)(is.H,{children:l})})}))}l&&ea.push((0,t5.Y)(rb.r.Provider,{value:a,children:(0,t5.Y)(sB.Q,{dynamicMarketingMessages:T||[],contextualMessages:t,viewType:i,items:o,skus:L,children:l})},r))}let ex=(0,cc.Nq)(es)&&"daily-streak-v2-view"||(es===cc.Us.DailyStreak||es===cc.Us.DailyStreakStatic)&&"daily-streak-view"||(es===cc.Us.ProgressionTable||es===cc.Us.Table||es===cc.Us.AllInOneBundle)&&"table-view"||E.isCarousel&&ea.length>1&&"carousel-view"||!!E.itemData&&Object.keys(E.itemData).length&&"mixed-view"||"default-view",ey=null==(o=ed)||null==(o=o[0])||null==(o=o.sys)?void 0:o.id,ew=ey?null==L||null==(a=L[ey])?void 0:a[0]:null,ej=(null==ew?void 0:e
1w.promoLimitResetDate)||0,eO=(null==ew||null==(s=ew.promotion)?void 0:s.start)||0,ek=ej&&eO&&Math.ceil((ej-eO)/1e3/3600),eA=ej&&ek&&en&&(null==en||null==(c=en.json)||null==(c=c.content)||null==(c=c[0])||null==(c=c.content)?void 0:c[0].value.includes("{{hours}}"))&&R(null==en||null==(u=en.json)||null==(u=u.content)||null==(u=u[0])||null==(u=u.content)||null==(u=u[0])?void 0:u.value,{hours:ek});if(0===ea.length)return null;let eC=eA||(null==en?void 0:en.json)&&(0,t5.Y)(oP.s,{document:null==en?void 0:en.json})||null;return(0,t5.FD)(aQ,{"data-theme":null!=(d=null==(m=E.layoutPalette)||null==(m=m.sys)?void 0:m.id)?d:"none",id:(0,im.B)(E.placementKey)||(0,im.B)(E.id)||E.slug||(0,im.B)(K),className:(0,rZ.A)("gap-y-2",eu&&"landscape-sm:gap-y-0.5"),style:eo?{backgroundImage:eo}:void 0,css:el&&i4.WE,children:[(0,t5.Y)(aX,{className:(0,rZ.A)("relative z-10 isolate","daily-streak-v2-view"===ex&&"sr-only",s7(E.decoratedHeader)&&"section-full"),children:$}),eC&&eg!==tV.MH.groupSaleMin&&eg!==tV.MH.groupSaleStock&&(0,t5.Y)("div",{className:(0,rZ.A)(W,"relative z-10 text-sm text-text-primary-80 [&_a]:text-link","table-view"===ex?"max-w-[56rem]":null),children:eC}),E.streakTracker&&(0,t5.Y)(cH,{tracker:E.streakTracker}),(0,t5.FD)(cR.y.Provider,{value:U,children:[(eg===tV.MH.groupSaleMin||eg===tV.MH.groupSaleStock)&&(0,t5.Y)(rb.r,{value:(null==F||null==(p=F.sys)?void 0:p.id)||"",children:(0,t5.Y)(cB,{preText:en,firstTileId:null==(h=ed)||null==(h=h[0])||null==(h=h.sys)?void 0:h.id,groupType:eg})}),"carousel-view"===ex&&(0,t5.Y)(cp,{item:E,children:ea}),"table-view"===ex&&(0,t5.Y)(c_.i,{item:E,groupType:eg,marketingMessages:et,msgLinkForTiles:eb,children:ea}),"daily-streak-view"===ex&&(0,t5.Y)(s4.D.Provider,{value:ep,children:(0,t5.Y)(ch,{item:E,children:ea})}),"daily-streak-v2-view"===ex&&(0,t5.Y)(s4.D.Provider,{value:ep,children:(0,t5.Y)(ch,{item:E,variant:"v2",children:ea})}),"mixed-view"===ex&&(0,t5.Y)(cN,{item:E,packageContentsVariant:ec,children:ea}),"default-view"===ex&&(0,t5.Y)(cx,{item:E,children:ea})]}),er&&(0,t5.Y)("div",{className:"mt-6 text-body-s",children:(0,t5.Y)(oP.s,{document:null==er?void 0:er.json})})]})}function cZ(e){let{item:t}=e,{header:n,slug:r,sys:l,hideEmptySectionHeaders:i}=t,{layoutItems:o}=(0,rv.L)(),a=r||(null==l?void 0:l.id)||"",s=e=>{var t;return e.placementKey||e.slug||(null==(t=e.sys)?void 0:t.id)||""},[c]=(0,iq.vp)(a),u=(0,iq.LG)((null==o?void 0:o.map(e=>s(e)))||[]);return(0,tB.useMemo)(()=>{if(!i)return!0;if(!o||!(null!=l&&l.id))return!1;let e=o.findIndex(e=>{var t;return(null==e||null==(t=e.sys)?void 0:t.id)===l.id});if(-1===e)return!0;let t=o.slice(e+1),n=t.findIndex(e=>(null==e?void 0:e.__typename)==="SectionDecoratedHeader");return(-1===n?t:t.slice(0,n)).some(e=>u.get(s(e)))},[i,o,null==l?void 0:l.id,u])?(0,rU.jsxs)("div",{ref:c,children:[(0,rU.jsx)("span",{className:"block relative h-0 w-0 invisible",style:{top:-(rg.__+rg.wg)},id:a}),(0,rU.jsx)(ct,{item:n})]}):null}function cJ(e){let{children:t,backgroundImage:n,textAlignment:r,bgScaleMode:l}=e,i=null!=r?r:"Left";return(0,rU.jsxs)("div",{className:(0,rZ.A)("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,rU.jsx)("div",{className:"relative h-[12.5rem] lg:h-[unset] row-start-1",children:(0,rU.jsx)(nA.V,{className:(0,rZ.A)("[&>img]:[object-position:var(--bg-pos)]","[&>img]:absolute [&>img]:inset-0 [&>img]:w-full [&>img]:h-full select-none","[&>img]:object-cover","contain"===(null!=l?l:"cover")&&"lg:[&>img]:object-contain"),src:(0,rN.VG)(n),alt:(0,rN.GT)(n)})}),(0,rU.jsx)("div",{className:(0,rZ.A)("relative hidden lg:block row-start-1 promo-banner-scrim-[var(--promo-gradient-rgb)]","lg:rtl:scale-[-1]","Right"===i&&"scale-[-1]")}),(0,rU.jsx)("div",{className:(0,rZ.A)("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"===i?"scale-[-1]":"justify-self-end")}),(0,rU.jsx)("div",{className:(0,rZ.A)("layout-content relative h-full w-full row-start-2 lg:row-start-1","!text-text-primary flex items-center justify-center","Right"===i?"lg:justify-end":"lg:justify-start"),children:(0,rU.jsx)("section",{className:(0,rZ.A)("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 cq=n(19763),cK=n(28428);function c$(e){let{children:t,promotionId:n,buttonStyle:r,href:l,typename:i,sysId:o,creativeId:a,onClick:s,activateLinkOnFirstImpression:c,isFile:u,data:d}=e,{onLinkClick:m,onButtonClick:p}=(0,cK.z)({href:l,isFile:u,activateLinkOnFirstImpression:c,data:d,onClickOverride:s}),h="StorePage"===i&&i3.e||"ExternalLink"===i&&cq.v||null;return h?(0,rU.jsx)(h,{slug:l,onClick:e=>m(e,()=>(0,r_.j_)(n,o,a,l,!0)),className:"w-full",children:(0,rU.jsx)("button",{type:"button",onClick:p,className:(0,rZ.A)("bt
1n w-full text-button-m flex-nowrap",r&&"outline"!==r?"bg-[--color-button-bg]":"btn-outline","text-[--color-button-text]"),children:t})}):null}function cQ(e){let{children:t,backgroundImage:n,textAlignment:r}=e;return(0,rU.jsxs)("div",{className:(0,rZ.A)("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"===r&&"lg:flex-row-reverse"),children:[(0,rU.jsx)("div",{className:"relative w-full h-[12.5rem] lg:h-[unset]",children:(0,rU.jsx)(nA.V,{src:(0,rN.VG)(n),alt:(0,rN.GT)(n),className:(0,rZ.A)("[&>img]:w-full [&>img]:h-full","lg:[&>img]:absolute lg:[&>img]:inset-0","[&>img]:object-cover")})}),(0,rU.jsx)("div",{className:(0,rZ.A)("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,rU.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 cX="Promo Banner";function c0(e){var t,n,r,l;let{item:i,children:o}=e,{id:a,backgroundImage:s,gradientColor:c,title:u,description:d,product:m,bgX:p,bgY:h,themePrimary:g,buttonVariant:f,buttonTextColor:v,textColor:b,logo:x,backgroundStyle:y,sys:w}=i,j=y===rg.$q.PartialWidth,O=(null==m?void 0:m.__typename)==="ExternalLink"&&m.url||(null==m?void 0:m.__typename)==="StorePage"&&m.slug||null,k=(null==m?void 0:m.__typename)==="ExternalLink"&&(null==m||null==(t=m.analyticsData)?void 0:t.ztrack)||(null==m?void 0:m.__typename)==="StorePage"&&(null==m||null==(n=m.analyticsData)||null==(n=n.ztrack)?void 0:n.click),A=(null==m?void 0:m.__typename)==="ExternalLink"&&m.isFile,C=(null==m?void 0:m.__typename)==="ExternalLink"&&m.activateLinkOnFirstImpression,{t:P}=(0,tF.Bd)(),S=(null==w?void 0:w.id)||"unknown",N=(0,rN.VG)(s)||"unknown";(0,tB.useEffect)(()=>{(null==m?void 0:m.__typename)==="StorePage"&&(0,r_.j_)(cX,S,N,null==m?void 0:m.slug)},[s,N,m,S]);let _="".concat(null!=p?p:50,"% ").concat(null!=h?h:50,"%"),D=(0,rU.jsxs)(rU.Fragment,{children:[x&&(0,rU.jsx)(nA.V,{className:(0,rZ.A)("[&>img]:w-full [&>img]:object-contain","[&>img]:h-[96px] [&>img]:max-h-[128px] lg:[&>img]:h-full [&>img]:max-w-[16rem]"),src:(0,rN.VG)(x),alt:(0,rN.GT)(x),transparent:!0,loading:"eager"}),u&&(0,rU.jsx)(re.H,{className:"type-headline-l",children:u}),d&&(0,rU.jsx)(rJ.$,{className:(0,rZ.A)("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:d||""}),o,O&&(0,rU.jsx)("div",{className:"max-w-[30rem] w-full lg:w-fit",children:(0,rU.jsx)(c$,{isFile:A||!1,activateLinkOnFirstImpression:C||!1,promotionId:cX,sysId:S,creativeId:N,buttonStyle:f,href:O,typename:null==m?void 0:m.__typename,data:k,children:(null==(r=i.buttonCopy)?void 0:r.text)||P("Learn More (Button)")})})]});return(0,rU.jsxs)("div",{"data-testid":t0.JC,className:"bg-[rgb(var(--promo-gradient-rgb))] w-full",style:{"--bg-pos":_,"--promo-gradient-rgb":c?(0,nO.V)(null!=c?c:""):"var(--color-black-rgb)","--text-color-primary-rgb":null!=(l=(0,nO.V)(null!=b?b:""))?l:void 0,"--color-button-bg":null!=g?g:void 0,"--color-button-text":null!=v?v:void 0},children:[(0,rU.jsx)(ih,{id:a}),j&&(0,rU.jsx)(cQ,{bgScaleMode:i.bgScaleMode,textAlignment:i.textAlignment,backgroundImage:i.backgroundImage,children:D}),!j&&(0,rU.jsx)(cJ,{bgScaleMode:i.bgScaleMode,textAlignment:i.textAlignment,backgroundImage:i.backgroundImage,children:D})]})}var c1=n(93692);let c2={LayoutBanner:e=>{let{item:t}=e;return(0,rU.jsx)(aG,{banner:t})},GridLayout:c7,Navigation:function(e){var t,n,r,l;let{item:i}=e;return(0,rU.jsx)("div",{className:"relative h-full",children:(0,rU.jsx)(c1.b,{id:null==(t=i.sys)?void 0:t.id,items:(0,tG.U)(null==(n=i.itemsCollection)?void 0:n.items),backgroundImage:i.backgroundImage,borderImage:i.borderImage,rightCtaGroup:null==(r=i.rightCtaGroupCollection)?void 0:r.items,paletteId:null==(l=i.palette)||null==(l=l.sys)?void 0:l.id,compact:!0})})},FaqContainer:o5,CtaStripe:oF,LayoutPromoBanner:c0,LayoutCategoryStripe:oi,LayoutHero:sR,LayoutListView:cG,PunchCard:e=>{let{item:t}=e;return(0,rU.jsx)(iL,{item:t,variant:"compact"})},SectionDecoratedHeader:cZ,LayoutCarousel:a6};function c5(e){let{layout:t,dynamicMarketing:n}=e,r=t.__typename;if(!r)return null;let l=c2[r];return l&&(0,rU.jsx)("div",{className:"h-full",children:(0,rU.jsx)(l,{item:t,dynamicMarketing:n})},(0,rN.i7)(t))}function c4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?c4(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c6(e){return!!(0,o4.Gv)(e)&&!!((0,o4.Et)(e.cols)||(0,o4.Kg)(e.cols))&&!!((0,o4.Et)(e.rows)||(0,o4.Kg)(e.rows))&&!!((0,o4.Et)(e.gap)||(0,o4.Kg)(e.gap))&&!!(0,o4.cy)(e.items)&&e.items.every(e=>!!(0,o4.Gv)(e)&&(0,o4.uI)(e.id)&&((0,o4.Et)(e.colStart)||(0,o4.Kg)(e.colStart))&&((0,o4.Et)(e.colSpan)||(0,o4.Kg)(e.colSpan))&&((0,o4.Et)(e.rowStart)||(0,o4.Kg)(e.rowStart))&&((0,o4.Et)(e.rowSpan)||(0,o4.Kg)(e.rowSpan)))}function c8(e,t){let n=Number(e);if("auto"!==e){if(n&&"row"===t)return"repeat(".concat(n,", max-content)");if(n&&"col"===t)return"repeat(".concat(n,", minmax(0, 1fr))");if(n&&"gap"===t)return"".concat(n,"px");if(e&&"row"===t||e&&"col"===t||e&&"gap"===t)return e.toString()}}function c9(e,t){let n=Number(e),r=Number(t);return"auto"===e&&r?"auto / span ".concat(r):Number.isFinite(n)&&r?"".concat(n," / span ").concat(r):e.toString()}function c7(e){var t,n,r,l,i;let{item:o,dynamicMarketing:a}=e,{layoutsCollection:s,gridConfig:c,position:u}=o,d="sticky"===u,{ref:m,style:p}=ao(),h=(0,o4.Gv)(c)&&(void 0===c.portrait||c6(c.portrait))&&(void 0===c.landscape||c6(c.landscape))&&1?c:null,g=null!=(t=null==h?void 0:h.portrait)?t:null,f=null!=(n=null==h?void 0:h.landscape)?n:null,v=(0,tG.U)((null!=(r=null==s?void 0:s.items)?r:[]).map((e,t)=>{var n,r;if(!e)return null;let l=t.toString();return{child:e,portrait:null!=(n=null==g?void 0:g.items.find(t=>{var n;return String(t.id)===(null==(n=e.sys)?void 0:n.id)||String(t.id)===l}))?n:null,landscape:null!=(r=null==f?void 0:f.items.find(t=>{var n;return String(t.id)===(null==(n=e.sys)?void 0:n.id)||String(t.id)===l}))?r:null}}));return(null==s||null==(l=s.items)?void 0:l.length)===0?null:(0,rU.jsx)("div",{ref:d?m:void 0,"data-theme":(null==(i=o.palette)||null==(i=i.sys)?void 0:i.id)||"none",className:(0,rZ.A)(as().main,"grid grid-cols-[--gl-template-cols-p] landscape:grid-cols-[--gl-template-cols-l] grid-rows-[--gl-template-rows-p] landscape:grid-rows-[--gl-template-rows-l] gap-[--gl-gap-p] landscape:gap-[--gl-gap-l]",d&&"sticky z-nav"),style:c3(c3({},p),{},{"--gl-template-cols-p":g?c8(g.cols,"col"):"repeat(auto, minmax(0, 1fr))","--gl-template-rows-p":g?c8(g.rows,"row"):"repeat(auto, minmax(0, max-content))","--gl-gap-p":g?c8(g.gap,"gap"):"0px"},f&&{"--gl-template-cols-l":c8(f.cols,"col")||"repeat(auto, minmax(0, 1fr))","--gl-template-rows-l":c8(f.rows,"row")||"repeat(auto, minmax(0, max-content))","--gl-gap-l":c8(f.gap,"gap")}),children:v.map(e=>{var t;let{child:n,portrait:r,landscape:l}=e;return(0,rU.jsx)("div",{className:"[--t2-content-buffer:16px] col-[--gl-col-p] row-[--gl-row-p] landscape:col-[--gl-col-l] landscape:row-[--gl-row-l]",style:c3(c3({"--gl-col-p":r?c9(r.colStart,r.colSpan):"auto"},r&&{"--gl-row-p":c9(r.rowStart,r.rowSpan)||"auto"}),l&&{"--gl-col-l":c9(l.colStart,l.colSpan)||"auto","--gl-row-l":c9(l.rowStart,l.rowSpan)||"auto"}),children:(0,rU.jsx)(c5,{layout:n,dynamicMarketing:a})},null==(t=n.sys)?void 0:t.id)})})}var ue=n(76450),ut=n.n(ue),un=((o=un||{}).Left="left",o.Center="center",o.Right="right",o),ur=((a=ur||{}).Contain="contain",a.Cover="cover",a);let ul=s_()(()=>Promise.all([n.e(7733),n.e(951)]).then(n.bind(n,13332)).then(e=>e.Rive),{loadableGenerated:{webpack:()=>[13332]}});var ui=n(71281),uo=n(95773),ua=n(52308),us=n(87813),uc=n(95997),uu=n(27147),ud=n(70185),um=n.n(ud);function up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?up(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):up(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ug(e){var t;let{text:n,palette:r,target:l,openInNewTab:i,showExternalLinkIcon:o,video:a,analyticsData:s}=e,{0:c,1:u}=(0,tB.useState)(!1),{trackAnalyticsData:d}=(0,tZ.s)(),m=(0,tz.useRouter)(),{searchParams:p}=(0,uo.l)(),h=(0,tB.useMemo)(()=>a?[uh(uh({},a),{},{key:(0,rN.i7)(a)})]:[],[a]);return(0,rU.jsxs)(rU.Fragment,{children:[(0,rU.jsxs)("button",{className:(0,rZ.A)("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",um().button),"data-link":l,"data-theme":null==r||null==(t=r.sys)?void 0:t.id,onClick:e=>{a?(e.preventDefault(),u(!0)):l&&(d({metadata:s}),i?(0,o3.n2)(l):m.push({pathname:l,query:p}))},type:"button",children:[(0,rU.jsx)("div",{children:n}),o&&(0,rU.jsxs)(rU.Fragment,{children:["\xa0",(0,rU.jsx)(sd.A,{className:"ml-2"})]}),(0,rU.jsx)("span",{className:"absolute w-full h-full hover:bg-black hover:opacity-20"})]}),a&&c&&(0,rU.jsx)(uu.H,{media:h,initialSelectedItem:0,requestClose:()=>{u(!1)},labelClose:"close"})]})}let uf=["sys","articleCollection","__typename"];function uv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?uv(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let ux=(0,tQ.AH)(eq||(eq=(0,t$.A)(["\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"},i4.rw),uy=(0,tQ.AH)(eK||(eK=(0,t$.A)(["\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"])),tX.cJ),uw=(0,tQ.AH)(e$||(e$=(0,t$.A)(["\n  > div > div > div:first-of-type {\n    width: 100%;\n    height: 15.5rem;\n  }\n"])));var uj=n(72027),uO=n.n(uj);function uk(e){var t;return null==e||null==(t=e.items)?void 0:t.map(e=>{var t,n,r;return(null==e?void 0:e.target)&&(0,rU.jsx)("a",{target:"_blank",className:(0,rZ.A)("mt-auto"),href:e.target,rel:"noopener noreferrer",children:(0,rU.jsx)("button",{type:"button",className:(0,rZ.A)(uO().cardButton,"mt-1"),"data-testid":t0.EU,"data-theme":null!=(n=null==e||null==(r=e.palette)||null==(r=r.sys)?void 0:r.id)?n:"none",children:null==e?void 0:e.text})},"button-".concat(null==(t=e.sys)?void 0:t.id))})}function uA(e){var t,n;let{title:r,content:l,palette:i,className:o,children:a}=e;return(0,rU.jsxs)("div",{className:(0,rZ.A)(uO().card,"flex flex-col h-full px-3 py-5",o),"data-theme":null!=(t=null==i||null==(n=i.sys)?void 0:n.id)?t:"none",children:[r&&(0,rU.jsx)("span",{className:uO().cardTitle,children:r}),l&&(0,rU.jsx)("div",{className:(0,rZ.A)(uO().cardContent,"my-1"),children:(0,rU.jsx)(oP.s,{document:null==l?void 0:l.json})}),a]})}function uC(e){var t,n,r,l;let{buttonsCollection:i,title:o,content:a,palette:s,cardLinkType:c}=e,u=null==i||null==(t=i.items)?void 0:t[0],d=null!=(n=null==u?void 0:u.target)?n:"",m=d.startsWith("http")||d.startsWith("//")?"a":iY();return(0,rU.jsx)(rU.Fragment,{children:null!=i&&null!=(r=i.items)&&r.length&&c?(0,rU.jsx)(m,{href:d,target:null!=u&&u.openInNewTab?"_blank":void 0,rel:null!=u&&u.openInNewTab?"noopener noreferrer":void 0,children:(0,rU.jsx)(uA,{title:o,content:a,palette:s,className:"hover:-translate-y-2 duration-300"})}):(0,rU.jsx)(uA,{title:o,content:a,palette:s,children:null!=i&&null!=(l=i.items)&&l.length?uk(i):null})})}function uP(e){var t,n,r,l;let{title:i,content:o,palette:a,image:s,className:c,children:u}=e,d=i||(null==o?void 0:o.json.content.length)>0||!!u;return(0,rU.jsxs)("div",{className:(0,rZ.A)(uO().card,uO().cardShadow,"rounded",d?"h-full":"",c),"data-theme":null!=(t=null==a||null==(n=a.sys)?void 0:n.id)?t:"none",children:[(0,rU.jsx)(ia._,{className:(0,rZ.A)("rounded-t w-full"),src:null!=(r=null==s?void 0:s.url)?r:"",alt:null!=(l=null==s?void 0:s.title)?l:""}),d&&(0,rU.jsxs)("div",{className:(0,rZ.A)("px-3 py-5"),children:[(0,rU.jsx)("span",{className:uO().cardTitle,children:i}),o&&(0,rU.jsx)("div",{className:(0,rZ.A)(uO().cardContent,"my-1"),children:(0,rU.jsx)(oP.s,{document:null==o?void 0:o.json})}),u]})]})}function uS(e){var t,n,r,l;let{buttonsCollection:i,title:o,content:a,palette:s,image:c,cardLinkType:u}=e,d=null==i||null==(t=i.items)?void 0:t[0],m=null!=(n=null==d?void 0:d.target)?n:"",p=m.startsWith("http")||m.startsWith("//")?"a":iY();return(0,rU.jsx)("div",{className:"m-auto max-w-[176px] sm:max-w-[234px]",children:null!=i&&null!=(r=i.items)&&r.length&&u?(0,rU.jsx)(p,{href:m,target:null!=d&&d.openInNewTab?"_blank":void 0,rel:null!=d&&d.openInNewTab?"noopener noreferrer":void 0,children:(0,rU.jsx)(uP,{title:o,content:a,palette:s,className:"hover:-translate-y-2 duration-300",image:c})}):(0,rU.jsx)(uP,{title:o,content:a,palette:s,image:c,children:null!=i&&null!=(l=i.items)&&l.length?uk(i):null})})}var uN=n(85522),u_=n.n(uN);function uD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?uD(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let uE="cta-card",uT="picture-card";var uL=n(70293);function uH(e){var t,n;let{item:r}=e,{t:l}=(0,tF.Bd)(),{setCode:i,setListViewItem:o,setRedeemState:a}=(0,uL.n)();return(0,rU.jsxs)(ow,{children:[(0,rU.jsx)(re.H,{className:"type-headline-l 3xl:type-headline-xl pb-2 w-full",children:null==(t=r.errorTitle)?void 0:t.text}),(0,rU.jsx)("div",{children:null==(n=r.errorDescription)?void 0:n.text}),(0,rU.jsx)("div",{className:"mt-3 flex-col space-y-7",children:(0,rU.jsx)("button",{onClick:()=>{i(""),a(null),o({legalText:{},promotionUIs:[]})},type:"button",className:"btn bg-primary text-button-text text-button-m mt-5 w-full lg:w-fit",children:l("Back")})})]})}var uY=n(67543),uR=n(51519);async function uM(e){let t=await fetch("/api/promo/".concat(e),{});if(!t.ok)throw new uR.o(t);return t.json()}var uB=n(15323);function uF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uF(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let uW=e=>(0,rU.jsx)("svg",uz(uz({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,rU.jsx)("path",{fill:"currentColor",d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2Zm4.3 14.3a.996.996 0 0 1-1.41 0L12 13.41 9.11 16.3a.996.996 0 1 1-1.41-1.41L10.59 12 7.7 9.11A.996.996 0 1 1 9.11 7.7L12 10.59l2.89-2.89a.996.996 0 1 1 1.41 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41Z"})})),uU=["error","palette","onClear"];function uV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uV(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let uZ=e=>{let{error:t,palette:n,onClear:r}=e,l=(0,tK.A)(e,uU);return(0,rU.jsxs)(rU.Fragment,{children:[(0,rU.jsxs)("div",{className:(0,rZ.A)("flex items-center border rounded w-full h-12 relative border-neutral-999-20",t&&"focus-within:outline focus-within:outline-2 focus-within:outline-error",null!=n?n:"bg-neutral-100",t&&"!border-s-transparent",t&&"before:block before:absolute before:-top-px before:-start-px before:bg-error before:rounded-ss before:rounded-es before:h-12 before:w-1"),children:[(0,rU.jsx)("input",uG(uG({},l),{},{className:(0,rZ.A)("text-body-m h-full flex-1 min-w-0 ps-4 placeholder:text-neutral-900",null!=n?n:"bg-neutral-100 text-neutral-999",t&&"focus:outline-none",r?"pe-2":"pe-4")})),t&&r&&(0,rU.jsx)("button",{type:"button",onClick:r,"aria-label":"Clear",className:"flex-shrink-0 me-3 text-black",children:(0,rU.jsx)(uW,{className:"w-5 h-5"})})]}),t&&(0,rU.jsx)("p",{className:"bg-error mt-2 rounded w-full h-12 px-3 flex items-center text-white",children:t})]})};function uJ(e){var t,n,r,l,i,o;let{item:a}=e,{t:s}=(0,tF.Bd)(),{user:c}=(0,rk.J)(),{getValidAccessToken:u}=(0,ic.A)(),{code:d,setCode:m,setListViewItem:p,setRedeemState:h}=(0,uL.n)(),g=(0,rx.UK)(),f=(0,tB.use)(ig.g),v=(0,tz.useRouter)(),{applicationId:b=""}=(0,rf.IQ)(),{code:x}=v.query,{redeem:y}=v.query,w=(null==c?void 0:c.userId)||(0,iu.UM)(iu.Re.userid),{0:j,1:O}=(0,tB.useState)(""),{0:k,1:A}=(0,tB.useState)(s("Redeem"));(0,tB.useEffect)(()=>{let e=e=>{e!==v.pathname&&tU.Ar.removeItem(uB.iD)};return v.events.on("routeChangeStart",e),()=>{v.events.off("routeChangeStart",e)}},[v]),(0,tB.useEffect)(()=>
1{if(w)A(s("Redeem"));else{var e;A((null==(e=a.anonymousButtonText)?void 0:e.text)||"")}},[w,a,s]),(0,tB.useEffect)(()=>{let e=tU.Ar.getItem(uB.iD),t=null!=x?x:y;t&&"string"==typeof t?m((0,uB.rB)(t,uB.aN,uB.tC)):e?m((0,uB.rB)(e,uB.aN,uB.tC)):m("")},[x,y]);let C=(0,tB.useCallback)(async e=>{var t,n,r,l,i,o,s,m,v,x;if(e.preventDefault(),e.stopPropagation(),!c&&!w){tU.Ar.setItem(uB.iD,(0,uB.rB)(d,uB.aN,uB.tC)),(0,r_.hC)(r_.zy.CLICK_ON_CONNECT_AND_REDEEM),f();return}if((0,r_.hC)(r_.zy.CLICK_ON_REDEEM),!d){(0,r_.hC)(r_.zy.INVALID_CODE),O((null==(t=a.invalidCodeText)?void 0:t.text)||"");return}try{let e=null;if(c){tU.Ar.removeItem(uB.iD);let t=await u();e=await (0,uY.yw)(t,c.userId,d,b)}else w&&(e=await (0,uY.yw)("",w,d,b));if(null!=(n=e)&&n.ok&&200===e.status){let{promotionId:t,eligible:n,redeemed:r}=await e.json();if(n&&!r){let e=await uM(t),n=await u(),r=null!=(s=e.promotionUIs[0].itemsCollection.items[0].sys.id)?s:"",l=await (0,uY.LA)(n,r);g(l),p(e),(0,r_.hC)(r_.zy.VALID_CODE),h(uY.nn.Eligible)}else r?((0,r_.hC)(r_.zy.INVALID_CODE),h(uY.nn.Redeemed),O((null==(m=a.usedCodeText)?void 0:m.text)||"")):((0,r_.hC)(r_.zy.INVALID_CODE),h(uY.nn.Invalid),O((null==(v=a.invalidCodeText)?void 0:v.text)||""))}else(null!=(r=null==(l=e)?void 0:l.status)?r:0)>=400&&(null!=(i=null==(o=e)?void 0:o.status)?i:0)<=499?((0,r_.hC)(r_.zy.INVALID_CODE),h(uY.nn.Invalid),O((null==(x=a.invalidCodeText)?void 0:x.text)||"")):((0,r_.hC)(r_.zy.INVALID_CODE),h(uY.nn.Failed))}catch(e){(0,r_.hC)(r_.zy.INVALID_CODE),h(uY.nn.Failed)}},[c,w,d,f,s]);return(0,t5.FD)(ow,{children:[(0,t5.Y)(re.H,{className:"type-headline-l 3xl:type-headline-xl pb-2 w-full",children:null==(t=a.title)?void 0:t.text}),(0,t5.Y)("div",{children:null==(n=a.description)?void 0:n.text}),(0,t5.Y)("div",{className:"mt-5",children:(0,t5.Y)("div",{className:"w-full lg:w-2/5",children:(0,t5.FD)("form",{onSubmit:C,children:[(0,t5.Y)("label",{className:"block my-2 font-bold",htmlFor:(null==(r=a.inputText)?void 0:r.text)||"",children:null==(l=a.inputText)?void 0:l.text}),(0,t5.Y)(uZ,{id:(null==(i=a.inputText)?void 0:i.text)||"",className:"border-l-2 border",placeholder:(null==(o=a.inputPlaceholder)?void 0:o.text)||"",onChange:e=>{m((0,uB.rB)(e.target.value,uB.aN,uB.tC)),O("")},error:j,value:d,maxLength:uB.tC}),(0,t5.Y)("button",{type:"submit",className:"btn bg-primary text-button-text text-button-m mt-4 w-full lg:w-fit",children:k})]})})})]})}var uq=n(13223);function uK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uK(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let uQ=e=>(0,rU.jsx)("svg",u$(u$({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,rU.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"})}));function uX(e){var t,n,r;let{item:l}=e,{t:i}=(0,tF.Bd)(),{0:o,1:a}=(0,tB.useState)(!1),{user:s}=(0,rk.J)(),c=(null==s?void 0:s.userId)||(0,iu.UM)(iu.Re.userid),{getValidAccessToken:u}=(0,ic.A)(),{code:d,listViewItem:m,setRedeemState:p}=(0,uL.n)(),h=(0,rx.YY)(),g=Object.values(null!=h?h:{}).map(e=>{var t,n;return{skuId:null==e||null==(t=e[0])?void 0:t.skuId,externalId:null==e||null==(n=e[0])?void 0:n.externalId}}),f=(0,tB.useCallback)(async()=>{var e;if((0,r_.hC)(r_.zy.CLICK_ON_CONFIRM),!(null!=g&&g.length)||g.length<1)return void p(uY.nn.Failed);let t={phylum:"code_redemption",class:null!=(e=g[0].externalId)?e:g[0].skuId};rj.CC&&rj.CC.count(rj.zh.redeem,t);let n=s?await u():"",r=await Promise.all(g.map(e=>(0,uY.pK)(n,c||"",e.skuId||"",d)));if(r.find(e=>!(null!=e&&e.ok))){if(p(uY.nn.Failed),rj.CC){let e=r.map(async e=>{if(!e.ok){let t=await e.text();return{badSku:e.url.split("/").pop(),failMsg:t}}return null});
1(await Promise.all(e)).forEach(e=>{if(e){var n,r;for(let l of(t.family=null!=(n=e.failMsg)?n:rj.zh.redeem_error,g))if(l.skuId===e.badSku){t.class=null!=(r=l.externalId)?r:e.badSku,rj.CC.count(rj.zh.redeem_error,t);break}}})}return}p(uY.nn.Succeeded),rj.CC&&rj.CC.count(rj.zh.redeem_success,t)},[d,u,s,c,g,p]);return(0,rU.jsxs)(rU.Fragment,{children:[(0,rU.jsx)(ow,{children:(0,rU.jsx)(re.H,{className:"type-headline-l 3xl:type-headline-xl pb-2 w-full",children:null==(t=l.confirmTitle)?void 0:t.text})}),(0,rU.jsxs)("div",{className:"mt-3 flex-col space-y-7",children:[m.promotionUIs.map(e=>(0,rU.jsx)(cG,{item:e},e.sys.id)),(0,rU.jsxs)(ow,{children:[(0,rU.jsxs)("div",{className:"flex items-center cursor-pointer",children:[(0,rU.jsx)(uq.bL,{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:()=>a(!o),children:(0,rU.jsx)(uq.C1,{children:(0,rU.jsx)(uQ,{className:"text-current text-3xl"})})}),(0,rU.jsx)("label",{className:"select-none cursor-pointer text-sm",htmlFor:"legal",children:(0,rU.jsx)(rJ.$,{children:null==(n=m.legalText)?void 0:n.text})})]}),(0,rU.jsx)("button",{onClick:f,type:"button",disabled:!o,className:"btn bg-primary text-button-text text-button-m mt-5 w-full lg:w-fit",children:c?null==(r=l.confirmButtonText)?void 0:r.text:i("connect-id")})]})]})]})}var u0=n(62779),u1=n(97507),u2=n(17516),u5=n.n(u2),u4=n(65039);function u3(e){var t,n,r,l;let{item:i}=e,{t:o}=(0,tF.Bd)(),{setCode:a,listViewItem:s,setListViewItem:c,setRedeemState:u}=(0,uL.n)(),{0:d,1:m}=(0,tB.useState)(!0),p=(0,rf.IQ)(),h=async()=>{(0,r_.hC)(r_.zy.CLICK_ON_BACK_TO_STORE),await tW().push({pathname:p.storeRoot}),a(""),u(null),c({legalText:{},promotionUIs:[]})},g=s.promotionUIs[0].itemsCollection.items[0],f=(0,oz.Qx)(g),v=(0,tB.useContext)(u0.e).find(e=>"post-purchase"===e.showModal),b=null==v||null==(t=v.layoutCollection)?void 0:t.items;return(0,rU.jsxs)(rU.Fragment,{children:[b&&(0,rU.jsx)(u1.l,{open:d,onOpenChange:e=>{m(e)},children:(0,rU.jsx)(u1.C,{"data-theme":(null==v||null==(n=v.palette)||null==(n=n.sys)?void 0:n.id)||"none",className:(0,rZ.A)(u5().main,"flex flex-col !justify-center lg:justify-normal !w-full !max-w-full !h-full !max-h-full min-h-[50vh] lg:!max-w-[50%] lg:!h-fit !py-8 md:py-10 px-6 gap-y-4"),children:(0,rU.jsx)(u4.L,{items:b,mobileDetailItems:f})})}),(0,rU.jsxs)(ow,{children:[(0,rU.jsx)(re.H,{className:"type-headline-l 3xl:type-headline-xl pb-2 w-full",children:o("offer-success")}),(0,rU.jsx)("div",{children:null==(r=i.successDescription)?void 0:r.text})]}),(0,rU.jsxs)("div",{className:"mt-3 flex-col space-y-7",children:[s.promotionUIs.map(e=>(0,rU.jsx)(cG,{item:e},e.sys.id)),(0,rU.jsx)(ow,{children:(0,rU.jsx)("button",{onClick:h,type:"button",className:"btn bg-primary text-button-text text-button-m mt-5 w-full lg:w-fit",children:null==(l=i.successButtonText)?void 0:l.text})})]})]})}var u6=n(26529);function u8(e){let{item:t}=e,{redeemState:n}=(0,uL.n)();return(0,rU.jsx)(u6.g,{children:(0,rU.jsx)("div",{className:"mx-auto mt-5",children:(0,rU.jsxs)(is.H,{children:[n===uY.nn.Eligible&&(0,rU.jsx)(uX,{item:t}),n===uY.nn.Succeeded&&(0,rU.jsx)(u3,{item:t}),n===uY.nn.Failed&&(0,rU.jsx)(uH,{item:t}),(n===uY.nn.Redeemed||n===uY.nn.Invalid||!n)&&(0,rU.jsx)(uJ,{item:t})]})})})}let u9=((s={}).Invalid="invalid",s.Failed="failed",s.Succeeded="succeeded",s),u7=(0,tB.createContext)({code:"",setCode:()=>null}),de=(0,tB.createContext)({redeemState:null,setRedeemState:()=>null}),dt=(0,tB.createContext)({redemptionResponse:null,setRedemptionResponse:()=>null});function dn(e){let{children:t}=e,{0:n,1:r}=(0,tB.useState)(null),{0:l,1:i}=(0,tB.useState)(""),{0:o,1:a}=(0,tB.useState)(null),s=(0,tB.useMemo)(()=>({code:l,setCode:i}),[l]),c=(0,tB.useMemo)(()=>({redeemState:n,setRedeemState:r}),[n]),u=(0,tB.useMemo)(()=>({redemptionResponse:o,setRedemptionResponse:a}),[o]);return(0,rU.jsx)(u7.Provider,{value:s,children:(0,rU.jsx)(de.Provider,{value:c,children:(0,rU.jsx)(dt.Provider,{value:u,children:t})})})}let dr=()=>{let e=(0,tB.useContext)(u7),t=(0,tB.useContext)(de),n=(0,tB.useContext)(dt);return(0,tB.useMemo)(()=>({code:e.code,setCode:e.setCode,redeemState:t.redeemState,setRedeemState:t.setRedeemState,redemptionResponse:n.redemptionResponse,setRedemptionResponse:n.setRedemptionResponse}),[e,t,n])};function dl(e){var t,n;let{item:r}=e,{t:l}=(0,tF.Bd)(),{setCode:i,setRedeemState:o,setRedemptionResponse:a}=dr(),s=(0,sJ.T)("redeemCode.button");return(0,rU.jsxs)(ow,{children:[(0,rU.jsx)(re.H,{className:"type-headline-l 3xl:type-headline-xl pb-2 w-full",children:null==(t=r.errorTitle)?void 0:t.text}),(0,rU.jsx)("div",{children:null==(n=r.errorDescription)?void 0:n.text}),(0,rU.jsx)("div",{className:"mt-3 flex-col space-y-7",children:(0,rU.jsx)("button",{onClick:()=>{i(""),o(null),a(null)}
1,type:"button",className:(0,rZ.A)("btn text-button-m mt-5 w-full lg:w-fit",s),children:l("Back")})})]})}function di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?di(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ds(e){var t,n,r,l,i,o,a;let{item:s}=e,{t:c}=(0,tF.Bd)(),{user:u}=(0,rk.J)(),{signIn:d}=(0,ic.A)(),{code:m,setCode:p,setRedeemState:h,setRedemptionResponse:g}=dr(),f=(0,tz.useRouter)(),v=(0,sJ.T)("redeemCode.button"),b=(0,sJ.T)("redeemCode.input"),x=(null==u?void 0:u.userId)||(0,iu.UM)(iu.Re.userid),{0:y,1:w}=(0,tB.useState)(""),{0:j,1:O}=(0,tB.useState)(!1),{0:k,1:A}=(0,tB.useState)(c("Redeem")),{code:C}=f.query,{redeem:P}=f.query,S=(0,tB.useRef)(!1);(0,tB.useEffect)(()=>{let e=e=>{e!==f.pathname&&tU.Ar.removeItem(uB.iD)};return f.events.on("routeChangeStart",e),()=>{f.events.off("routeChangeStart",e)}},[f]),(0,tB.useEffect)(()=>{var e,t;x?A((null==(e=s.loggedInButtonText)?void 0:e.text)||c("Redeem")):A((null==(t=s.anonymousButtonText)?void 0:t.text)||c("Redeem"))},[x,s,c]),(0,tB.useEffect)(()=>{let e=tU.Ar.getItem(uB.iD),t=null!=C?C:P;t&&"string"==typeof t?p((0,uB.yH)(t)):e&&(p((0,uB.yH)(e)),S.current=!0)},[C,P]);let N=(0,tB.useCallback)(async e=>{var t,n,r,l,i,o,a;if("manual"===e&&(0,r_.hC)(r_.zy.CLICK_ON_REDEEM),!m||m.length<uB.b7){(0,r_.hC)(r_.zy.INVALID_CODE),w((null==(n=s.invalidCodeText)?void 0:n.text)||"");return}let c={phylum:"code_redemption",class:m},u=(null==(t=s.invalidCodeText)?void 0:t.text)||"";try{O(!0),tU.Ar.removeItem(uB.iD),rj.CC&&rj.CC.count(rj.zh.redeem,c);let e=await fetch("/api/redeem/zynga-coupon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:m})});if(!e.ok){if(422===e.status){let t="";try{let n=(t=null!=(r=(await e.json()).errorMessage)?r:"").toLowerCase();n.includes("campaign ended")?u=(null==(l=s.expiredCodeText)?void 0:l.text)||"":n.includes("already redeemed")?u=(null==(i=s.usedCodeText)?void 0:i.text)||"":n.includes("unexpected error")&&(u=(null==(o=s.errorTitle)?void 0:o.text)||"")}catch(e){}(0,r_.hC)(r_.zy.INVALID_CODE),w(u),rj.CC&&rj.CC.count(rj.zh.redeem_error,da(da({},c),{},{family:t||void 0}));return}throw Error("Coupon redemption failed with status ".concat(e.status))}let t=await e.json();t.status?(g(t),(0,r_.hC)(r_.zy.VALID_CODE),h(u9.Succeeded),rj.CC&&rj.CC.count(rj.zh.redeem_success,da(da({},c),{},{genus:(null==(a=t.product)?void 0:a.product_id)||void 0}))):((0,r_.hC)(r_.zy.INVALID_CODE),w(u),rj.CC&&rj.CC.count(rj.zh.redeem_error,da(da({},c),{},{family:u})))}catch(e){(0,r_.hC)(r_.zy.INVALID_CODE),h(u9.Failed),rj.CC&&rj.CC.count(rj.zh.redeem_error,da(da({},c),{},{family:u}))}finally{O(!1)}},[m,s,h,g]),_=(0,tB.useCallback)(async e=>{if(e.preventDefault(),e.stopPropagation(),!u&&!x){tU.Ar.setItem(uB.iD,(0,uB.yH)(m)),(0,r_.hC)(r_.zy.CLICK_ON_CONNECT_AND_REDEEM),d();return}await N("manual")},[u,x,m,d,N]);return(0,tB.useEffect)(()=>{S.current&&x&&m&&(S.current=!1,m.length<uB.b7||N("auto"))},[m,x,N]),(0,rU.jsx)(ow,{children:(0,rU.jsxs)("div",{className:"flex flex-col landscape:flex-row landscape:gap-4 sm:landscape:gap-8 lg:landscape:gap-16 xl:landscape:gap-24",children:[(null==(t=s.image)?void 0:t.url)&&(0,rU.jsx)("div",{className:"flex justify-center mb-4 landscape:mb-0 landscape:w-1/2 landscape:items-center",children:(0,rU.jsx)(ia._,{src:s.image.url,alt:null!=(n=s.image.title)?n:"",className:"object-contain",style:{width:s.image.width?"".concat(s.image.width,"px"):void 0,height:s.image.height?"".concat(s.image.height,"px"):void 0}})}),(0,rU.jsxs)("div",{className:"landscape:w-1/2",children:[(0,rU.jsx)(re.H,{className:"type-headline-l 3xl:type-headline-xl pb-2 w-full text-center",children:null==(r=s.title)?void 0:r.text}),(0,rU.jsx)("div",{className:"text-center text-sm",children:null==(l=s.description)?void 0:l.text}),(0,rU.jsx)("div",{className:"mt-5",children:(0,rU.jsx)("div",{className:"w-full",children:(0,rU.jsxs)("form",{onSubmit:_,children:[(0,rU.jsx)(uZ,{id:(null==(i=s.inputPlaceholder)?void 0:i.text)||"",className:"border-l-2 border",placeholder:(null==(o=s.inputPlaceholder)?void 0:o.text)||"",onChange:e=>{p((0,uB.yH)(e.target.value)),w("")},error:y,value:m,maxLength:uB.tC,palette:b,onClear:()=>{p(""),w("")}}),(0,rU.jsx)("button",{type:"submit",disabled:j||!!y||m.length<uB.b7,className:(0,rZ.A)("bt
1n text-button-m mt-4 w-full",v),children:k}),(null==(a=s.legalText)?void 0:a.text)&&(0,rU.jsx)("p",{className:"mt-3 type-subtext",children:s.legalText.text})]})})})]})]})})}var dc=n(91039),du=n(12853),dd=n(76926);let dm=new Set(["list","inline","boxed","grid","grid-centered","selector","grid-inline-header","carousel","decorated"]);function dp(e){var t,n,r,l,i,o,a,s,c,u,d,m,p,h;let{item:g,response:f}=e,{setCode:v,setRedeemState:b,setRedemptionResponse:x}=dr(),{0:y,1:w}=(0,tB.useState)(null),j=()=>{v(""),b(null),x(null)},O=null!=(t=null==(n=g.upsell)||null==(n=n.layoutCollection)||null==(n=n.items)?void 0:n.filter(Boolean))?t:[],k=null==(r=g.upsell)||null==(r=r.palette)||null==(r=r.sys)?void 0:r.id,A=!!g.upsell,{0:C,1:P}=(0,tB.useState)(!0);(0,tB.useEffect)(()=>{let e=setTimeout(()=>P(!1),3500);return()=>clearTimeout(e)},[]);let S=null;(null==(l=f.mobileDetails)?void 0:l.length)>0?S=(0,rU.jsx)(dd.v,{type:dm.has(null!=(d=g.successPackageContentsVariant)?d:"")?g.successPackageContentsVariant:"grid",items:f.mobileDetails}):((null==(i=f.adjustments)?void 0:i.length)>0||f.product.adjustments&&"object"==typeof f.product.adjustments&&Object.keys(f.product.adjustments).length>0)&&(S=(0,rU.jsxs)(rU.Fragment,{children:[f.product.icon_url&&(0,rU.jsx)("div",{className:"flex justify-center",children:(0,rU.jsx)("img",{src:f.product.icon_url,alt:f.product.name,className:"w-32 h-32 object-contain rounded-lg"})}),(0,rU.jsx)("p",{className:"type-headline-m",children:f.product.name}),f.product.description&&(0,rU.jsx)("p",{className:"type-body-m mt-1",children:f.product.description}),(0,rU.jsx)("ul",{className:"mt-2 flex flex-col items-center gap-2",children:(null==(m=f.adjustments)?void 0:m.length)>0?f.adjustments.map(e=>(0,rU.jsxs)("li",{className:"flex items-center gap-2",children:[e.icon&&(0,rU.jsx)(ia._,{src:e.icon,alt:"",className:"w-6 h-6 object-contain"}),(0,rU.jsxs)("span",{className:"type-body-m",children:[e.name,": ",e.amount]})]},e.key)):Object.entries(f.product.adjustments).map(e=>{let[t,n]=e;return(0,rU.jsxs)("li",{className:"type-body-m",children:[t,": ",String(n)]},t)})})]}));let N="u">typeof document&&null!=(o=null==(a=document.getElementById("main"))?void 0:a.getAttribute("data-theme"))?o:void 0,_=null;return A&&(_=O.length>0?(0,rU.jsx)(u4.L,{items:O,mobileDetailItems:[],paletteId:k}):(0,rU.jsxs)(rU.Fragment,{children:[(null==(p=g.upsell)||null==(p=p.header)?void 0:p.text)&&(0,rU.jsx)("p",{className:"type-headline-m text-center",children:g.upsell.header.text}),(null==(h=g.upsell)?void 0:h.copy)&&(0,rU.jsx)("p",{className:"type-body-s text-center mt-1",children:g.upsell.copy})]})),(0,rU.jsxs)(u1.l,{open:!0,onOpenChange:e=>{e||j()},children:[(0,rU.jsxs)(dc.N$,{getContainer:y?()=>y:null,children:[(0,rU.jsx)(du.TE,{open:C,loop:!1,duration:2.5,stagger:.5,positioning:"dynamic"}),(0,rU.jsx)(u1.C,{"data-theme":N,a11yTitle:f.product.name,a11yDescription:f.product.description,className:(0,rZ.A)(u5().main,"flex flex-col !justify-start !overflow-y-auto !w-full !max-w-full !h-full !max-h-full min-h-[50vh] !py-8 md:py-10 px-6 gap-y-4"),children:(0,rU.jsxs)("div",{className:(0,rZ.A)("flex flex-col gap-4",A&&"landscape:flex-row landscape:gap-8"),children:[(0,rU.jsxs)("div",{className:(0,rZ.A)("flex flex-col gap-4",A?"landscape:w-1/2":"items-center"),children:[(null==(s=g.successTitle)?void 0:s.text)&&(0,rU.jsx)(re.H,{className:"type-headline-l text-center",children:g.successTitle.text}),(null==(c=g.successDescription)?void 0:c.text)&&(0,rU.jsx)("p",{className:"type-body-m text-center",children:g.successDescription.text}),(0,rU.jsx)("div",{className:"text-center",children:S}),A&&(0,rU.jsx)("div",{className:"landscape:hidden pt-4",children:_}),(null==(u=g.successButtonText)?void 0:u.text)&&(0,rU.jsx)("button",{type:"button",onClick:j,className:"btn btn-outline text-button-m w-full",children:g.successButtonText.text})]}),A&&(0,rU.jsx)("div",{className:"hidden landscape:flex landscape:w-1/2 flex-col gap-4",children:_})]})})]}),(0,rU.jsx)("div",{ref:w,className:"fixed inset-0 pointer-events-none z-dialog"})]})}function dh(e){let{item:t}=e,{redeemState:n,redemptionResponse:r}=dr();return(0,rU.jsx)(u6.g,{children:(0,rU.jsxs)("div",{className:"mx-auto",children:[n===u9.Failed?(0,rU.jsx)(dl,{item:t}):(0,rU.jsx)(ds,{item:t}),n===u9.Succeeded&&r&&(0,rU.jsx)(dp,{item:t,response:r})]})})}var dg=n(57951),df=n(67121);let dv=["children","visibleItems","id","peek","gap","removeEndPadding","disableMobileScroll","onSwipe"],db=["visibleItems","children","id","carouselControls","carouselDots","onSwipe"];function dx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?dx(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let dw={position:"relative"},dj=(0,tQ.AH)(eQ||(eQ=(0,t$.A)(["\n  ","\n\n  > * {\n    ","\n  }\n"])),{position:"relative",display:"flex",height:"100%"},{height:"100%",width:"100%"}),dO=(0,tQ.AH)(eX||(eX=(0,t$.A)(["\n  [data-carousel-slider] {\n    @media (max-width: ","px) {\n      &::after {\n        content: '';\n        width: 1rem;\n      }\n    }\n  }\n"])),tX.Km);function dk(e){let{children:t,visibleItems:n,id:r,peek:l="mobile",gap:i="1rem",removeEndPadding:o,disableMobileScroll:a=!1,onSwipe:s}=e,c=(0,tK.A)(e,dv),{isFreeFlow:u,pageCount:d}=(0,t1.gU)(),m=(0,nP.a)("".concat(tX.Km,"px"));return(0,t5.Y)(df.A,dy(dy({id:r,itemsInView:n,loop:!0,peek:"always"===l||"mobile"===l&&m||!1,css:u&&!o&&dO,gap:i,"data-carousel-single-page":1===d?"":void 0,disableFreeFlow:a,onSwipe:s},c),{},{children:tB.Children.map(t,e=>(0,t5.Y)(ne.q,{children:(0,t5.Y)("div",{css:dj,children:e})}))}))}let dA={marginTop:"0.5rem"},dC=(0,tQ.AH)(e0||(e0=(0,t$.A)(["\n  ","\n\n  button[data-carousel-control='true'] {\n    ",";\n    transition: opacity 0.2s ease-out;\n    opacity: 0;\n  }\n\n  &:hover,\n  &:focus-within {\n    button[data-carousel-control='true'] {\n      opacity: 1;\n    }\n  }\n"])),{position:"relative"},{paddingLeft:"0.25rem",paddingRight:"0.25rem"});function dP(e){let{visibleItems:t,children:n,id:r,carouselControls:l,carouselDots:i,onSwipe:o}=e,a=(0,tK.A)(e,db);return(0,t5.Y)("div",{css:dC,children:(0,t5.FD)(nt.F,{children:[(0,t5.FD)("div",{css:dw,children:[(0,t5.Y)(dk,dy(dy({id:r,visibleItems:t,onSwipe:o},a),{},{children:n})),l]}),(0,t5.Y)("div",{css:dA,children:i})]})})}let dS=["children","minCol","screenFilling"];function dN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dN(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let dD=(0,tQ.AH)(e1||(e1=(0,t$.A)(["\n  display: grid;\n  grid-gap: 1rem;\n"]))),dI=(0,tQ.AH)(e2||(e2=(0,t$.A)(["\n  grid-template-columns: repeat(auto-fill, minmax(","rem, 1fr));\n  @media (min-width: ","px) {\n    grid-template-columns: repeat(\n      auto-fill,\n      minmax(","rem, 1fr)\n    );\n  }\n"])),12,tX.Km,14);function dE(e){let{children:t,minCol:n=1,screenFilling:r}=e,l=(0,tK.A)(e,dS);return(0,t5.Y)("section",d_(d_({css:[dD,r?(0,tQ.AH)(e5||(e5=(0,t$.A)(["\n  /* TGP-10359 As per design direction updating breakpoints with max columns per breakpoint */\n\n  grid-template-columns: repeat(",", 1fr);\n\n  ","\n\n  ","\n\n  ","\n\n  ","\n\n  ","\n"])),n,n<2&&(0,tQ.AH)(e4||(e4=(0,t$.A)(["\n    @media (min-width: ","px) {\n      grid-template-columns: repeat(2, 1fr);\n    }\n  "])),tX.yc),n<3&&(0,tQ.AH)(e3||(e3=(0,t$.A)(["\n    @media (min-width: ","px) {\n      grid-template-columns: repeat(3, 1fr);\n    }\n  "])),tX.cJ),n<4&&(0,tQ.AH)(e6||(e6=(0,t$.A)(["\n    @media (min-width: ","px) {\n      grid-template-columns: repeat(4, 1fr);\n    }\n  "])),tX.u8),n<5&&(0,tQ.AH)(e8||(e8=(0,t$.A)(["\n    @media (min-width: ","px) {\n      grid-template-columns: repeat(5, 1fr);\n    }\n  "])),tX.Km),n<6&&(0,tQ.AH)(e9||(e9=(0,t$.A)(["\n    @media (min-width: ","px) {\n      grid-template-columns: repeat(6, 1fr);\n    }\n  "])),tX.Tw)):dI]},l),{},{children:t}))}let dT=["children","mosaicStyle","gap"];function dL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?dL(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let dY={display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gridTemplateRows:"repeat(2, minmax(0, 1fr))",rowGap:"0.5rem"},dR={position:"absolute",display:"flex"},dM={pointerEvents:"none",position:"relative",display:"none"},dB=(0,tQ.AH)(e7||(e7=(0,t$.A)(["\n  > * {\n    width: 100%;\n    height: 100%;\n  }\n"])));function dF(e){let{children:t,mosaicStyle:n="start",gap:r="1rem"}=e,l=(0,tK.A)(e,dT),i=tB.Children.toArray(t),o=i.shift(),a=Array(Math.ceil(i.length/2)).fill(0).map((e,t)=>{let n=2*t;return i.slice(n,n+2)}).map(e=>(0,t5.Y)("div",{style:{rowGap:"0.5rem"},css:dY,children:e})),s="calc( 200% + ".concat(r," )"),c="end"===n&&2||"middle"===n&&1||0;return a.splice(c,0,(0,t5.Y)("div",{css:[dR,dB],style:{zIndex:10,width:s},children:o})),a.splice(c+1,0,(0,t5.Y)("div",{style:{zIndex:-10},css:dM})),(0,t5.Y)(dP,dH(dH({visibleItems:4,gap:r},l),{},{children:a}))}let dz=["layoutItems","layoutStyle","children","carouselControls","carouselDots","peek","gap","id","removeEndPadding","disableMobileScroll","mosaicStyle","minCol","onSwipe"];function dW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dW(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dV(e){let{layoutItems:t="many",layoutStyle:n="GRID",children:r,carouselControls:l,carouselDots:i,peek:o,gap:a,id:s,removeEndPadding:c,disableMobileScroll:u,mosaicStyle:d,minCol:m=2,onSwipe:p}=e,h=(0,tK.A)(e,dz);return"CAROUSEL"===n&&(0,rU.jsx)(dP,dU(dU({id:s||"",visibleItems:"many"===t?dg.uO:dg.gt,carouselControls:l,carouselDots:i,peek:o,gap:a,removeEndPadding:c,disableMobileScroll:u,onSwipe:p},h),{},{children:r}))||"MOSAIC"===n&&(0,rU.jsx)(dF,dU(dU({id:s||"",carouselControls:l,carouselDots:i,peek:o,mosaicStyle:d},h),{},{children:r}))||(0,rU.jsx)(dE,dU(dU({minCol:m,screenFilling:!0},h),{},{children:r}))}var dG=n(19709);let dZ=["children"];function dJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dJ(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let dK={pointerEvents:"none",position:"absolute",inset:"0px",display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"space-between"};function d$(e){let{children:t}=e,n=(0,tK.A)(e,dZ);return(0,t5.Y)("div",dq(dq({css:dK},n),{},{children:t}))}let dQ=(0,tQ.AH)(te||(te=(0,t$.A)(["\n  ","\n  @media (min-width: ","px) {\n    width: calc(100% + (32px + 1rem) * 2);\n    margin-inline-start: calc((1rem + 32px) * -1);\n  }\n"])),{width:"100%"},tX.u8);function dX(e){let{backLabel:t,nextLabel:n,carouselId:r,onNavigate:l}=e,{t:i}=(0,tF.Bd)();return(0,t5.FD)(d$,{css:dQ,children:[(0,t5.Y)(dG.kc,{onNavigate:l,"aria-controls":r,"aria-label":t||i("previous")}),(0,t5.Y)(dG.kD,{onNavigate:l,"aria-controls":r,"aria-label":n||i("next")})]})}let d0=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5;return e&&(0,tQ.AH)(tt||(tt=(0,t$.A)(["\n    padding-top: ","rem;\n    transition-duration: 0.3s;\n\n    &:hover {\n      transform: none;\n    }\n\n    @media (hover: hover) {\n      &:hover {\n        transform: translate(0, -","rem);\n      }\n    }\n  "])),e,e)};var d1=n(73854);let d2=["item","idx","imagePerRow","onItemClick","visibleItems"];function d5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?d5(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let d3=(0,tQ.AH)(tn||(tn=(0,t$.A)(["\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 d6(e){let{item:t,idx:n,imagePerRow:r,onItemClick:l,visibleItems:i}=e,o=(0,tK.A)(e,d2),{0:a,1:s}=(0,tB.useState)(n<i),{ref:c,inView:u}=(0,nw.Wx)({fallbackInView:!1,initialInView:a,skip:a});return(0,tB.useEffect)(()=>{u&&s(!0)},[u]),(0,t5.Y)("div",d4(d4({css:d0()},o),{},{children:(0,t5.Y)("button",{ref:c,className:"bg-neutral-100 relative w-full h-full overflow-hidden rounded-lg",type:"button",onClick:l,"data-index":n,"aria-label":(null==t?void 0:t.title)||"",children:(0,t5.Y)(d1.F,{css:d3,media:t,isLowRes:!a&&!u,imagePerRow:r})})}))}function d8(e){var t,n,r,l;let{media:i,center:o,mediaClassName:a,mediaContainerClassName:s}=e;return(0,rU.jsxs)("div",{className:(0,rZ.A)("xl:w-3/4 [&>div>figure]:px-0 h-full",{"mx-auto":o}),children:[(null==i?void 0:i.__typename)==="ExternalVideo"&&(0,rU.jsx)(a2.F,{entry:i,className:a,containerClassName:s}),(null==i?void 0:i.__typename)==="Screenshot"&&(0,rU.jsx)(ia._,{alt:null!=(t=null==i||null==(n=i.asset)?void 0:n.title)?t:"",src:null!=(r=null==i||null==(l=i.asset)?void 0:l.url)?r:"",className:a,pictureClassName:s})]})}function d9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d9(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var me=((c=me||{}).carousel="CAROUSEL",c.mosaic="MOSAIC",c.standard="STANDARD",c.single="SINGLE",c);let mt=(0,tQ.AH)(tr||(tr=(0,t$.A)(["\n  > div > section > div:first-of-type {\n    @media (max-width: ","px) {\n      width: calc(75% + 4rem + (32px));\n    }\n  }\n"])),tX.yc-1);var mn=n(47410);function mr(){return(mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let ml=function(e){return tB.createElement("svg",mr({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59a.996.996 0 0 0 0-1.41l-6.58-6.6a.996.996 0 1 0-1.41 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1Z",style:{fill:"currentColor"}}))};var mi=n(83257),mo=n(60171),ma=n(87333),ms=n(12896);let mc=["className","isOpen","isErrored","isLoading","close","labelClose","article","message","buttonLabel","retry","locale"];function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function md(e){var t;let{className:n,isOpen:r,isErrored:l,isLoading:i,close:o,labelClose:a,article:s,message:c,buttonLabel:u,retry:d,locale:m}=e,p=(0,tK.A)(e,mc),h=(0,us.Q)(s,m);return(0,rU.jsx)(li.Y,{className:n,isOpen:i||r,requestClose:o,labelClose:a,children:(0,rU.jsxs)("section",{className:"overflow-y-scroll overflow-x-hidden h-full py-12",children:[(l||i)&&(0,rU.jsx)("div",{className:"h-full w-full flex items-center justify-center flex-col",children:(0,rU.jsx)("div",{className:"fill-current mb-1",children:(0,rU.jsx)(ll,{fetching:i,error:l,errorMessage:c,errorActionLabel:u,errorAction:d})})}),!l&&!i&&(0,rU.jsx)(rK.n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?mu(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({article:h,info:(0,rU.jsx)(ms.c,{className:"mt-8",tags:null==h?void 0:h.tags})},p),(null==s||null==(t=s.sys)?void 0:t.id)||"")]})})}var mm=n(24886),mp=n(50583);function mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mh(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mf(e){let{children:t,buttonClasses:n,disabled:r,lightMode:l=!1,nextPage:i,router:o,selected:a,setPage:s}=e;return(0,rU.jsx)(iY(),{href:{pathname:o.pathname,query:mg(mg({},o.query),{},{page:i})}
1,scroll:!0,children:(0,rU.jsx)("button",{className:(0,rZ.A)("flex flex-col w-10 h-10 justify-center items-center font-bold border rounded",{"border-black-50 text-black":l,"border-white-50 text-white":!l,"hover:bg-black-10":l&&!r,"hover:bg-white-10":!l&&!r,"opacity-40":r&&!a},n),type:"button",disabled:r,onClick:()=>s(i),children:t})})}function mv(e){let{lightMode:t=!1,pageCount:n}=e,r=(0,tz.useRouter)(),{0:l,1:i}=(0,tB.useState)(r.query.page?Number.parseInt(r.query.page,10):1),o=Math.min(n,(0,nP.a)("480px")?3:5),a=1===l,s=l===n,c=(0,tB.useMemo)(()=>{let e=Math.floor(o/2),t=Math.max(1,l-e);return l+e>n&&(t=Math.max(1,n-o+1)),t},[l,n,o]),u=(0,tB.useMemo)(()=>Array.from({length:o},(e,n)=>{let o=c+n,a=l===o;return(0,rU.jsx)(mf,{buttonClasses:a?(0,rZ.A)("border-opacity-40",t?"bg-black-20":"bg-white-20"):"",disabled:a,lightMode:t,nextPage:o,router:r,selected:a,setPage:i,children:o})}),[t,l,c,r,o]);return(0,rU.jsxs)("div",{className:"flex flex-row justify-center gap-3",children:[(0,rU.jsx)(mf,{disabled:a,lightMode:t,nextPage:l-1,router:r,selected:!1,setPage:i,children:(0,rU.jsx)("span",{className:(0,rZ.A)("text-2xl",{"opacity-40":a}),children:(0,rU.jsx)(mm.A,{})})}),u,(0,rU.jsx)(mf,{disabled:s,lightMode:t,nextPage:l+1,router:r,selected:!1,setPage:i,children:(0,rU.jsx)("span",{className:(0,rZ.A)("text-2xl",{"opacity-40":s}),children:(0,rU.jsx)(mp.A,{})})})]})}var mb=n(21671);let mx=["backgroundUrl","width","children","travelTopRem","overlay","maxImageWidth","tileStyle"];function my(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?my(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):my(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let mj=(0,tQ.AH)(tl||(tl=(0,t$.A)(["\n  ","\n\n  img {\n    ","\n  }\n"])),{height:"100%",width:"100%"},{borderRadius:"0.5rem"}),mO=(0,tQ.AH)(ti||(ti=(0,t$.A)(["\n  ","\n  min-height: ","px;\n  text-align: inherit;\n"])),{position:"relative",display:"flex",height:"100%",width:"100%",flexDirection:"column",alignItems:"flex-start",overflow:"hidden"},272),mk=(0,tQ.AH)(to||(to=(0,t$.A)(["\n  ","\n  padding-inline-end: 1rem;\n"])),{pointerEvents:"none",display:"flex",flexDirection:"column",justifyContent:"flex-end",paddingTop:"1rem",paddingBottom:"1rem",fontWeight:"600",fontFamily:"var(--font-secondary)",fontSize:"1.25rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"}),mA=(0,tQ.AH)(ta||(ta=(0,t$.A)(["\n  ","\n  padding-bottom: ","%\n"])),{position:"relative",width:"100%",overflow:"hidden",borderRadius:"0.5rem"},9/16*100),mC=(0,tQ.AH)(ts||(ts=(0,t$.A)(["\n  aspect-ratio: 1/1;\n"])));function mP(e){let{backgroundUrl:t,width:n,children:r,travelTopRem:l,overlay:i,maxImageWidth:o,tileStyle:a}=e,s=(0,tK.A)(e,mx);return(0,t5.FD)("div",mw(mw({},s),{},{css:[mO,d0(l)],children:[(0,t5.FD)("div",{css:[mA,"SQUARE"===a&&mC],children:[(0,t5.Y)(nA.V,{src:"".concat(t),width:n||0,alt:"",css:[n_,mj],"aria-hidden":"true",maxImageWidth:o}),i]}),tB.Children.count(r)>0&&(0,t5.Y)("section",{css:mk,children:r})]}))}let mS=["title","date","isVideoPreview","info"];function mN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mN(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let mD={marginBottom:"0.5rem",fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"}
1,mI=(0,tQ.AH)(tc||(tc=(0,t$.A)(["\n  ","\n  /* stylelint-disable-next-line value-no-vendor-prefix */\n  display: -webkit-box;\n  -webkit-line-clamp: 3;\n  /* stylelint-disable-next-line property-no-vendor-prefix */\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n"])),{fontWeight:"bold",fontSize:"1rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"});function mE(e){let{title:t,date:n,isVideoPreview:r,info:l}=e,i=(0,tK.A)(e,mS);return(0,t5.FD)(mP,m_(m_({overlay:r&&(0,t5.Y)(mb.k,{})},i),{},{children:[n&&(0,t5.Y)("div",{css:mD,children:n}),t&&(0,t5.Y)("header",{css:mI,title:t,children:t}),l]}))}var mT=n(43217);let mL=["title","date","isVideoPreview","backgroundUrl","onItemClick","item","tileStyle"];function mH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mH(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mR(e){let{title:t,date:n,isVideoPreview:r,backgroundUrl:l,onItemClick:i,item:o,tileStyle:a}=e,s=(0,tK.A)(e,mL),c=(0,ry.Y)(),u=(0,us.Q)(o,c),d=(0,tB.useMemo)(()=>"/".concat((0,rD.Og)(o.slug||"","news")).concat(null==o?void 0:o.slug),[o.slug]);return(0,rU.jsxs)("div",{children:[(0,rU.jsx)("a",mY(mY({href:d,className:"!appearance-none block cursor-pointer text-left [&>div]:h-min [&>div]:min-h-min",type:"button",onClick:i,"data-article":null==o?void 0:o.slug},s),{},{"data-testid":"".concat(t0.Qt,"-").concat((0,rN.i7)(o)),children:(0,rU.jsx)(mE,{maxImageWidth:rg.n2,title:t,date:n,isVideoPreview:r,backgroundUrl:l,tileStyle:a})})),(0,rU.jsx)(mT.c,{className:"mb-4 [&>a]:max-w-[20rem] xs:[&>a]:max-w-[12rem] [&>a]:overflow-hidden [&>a]:text-ellipsis",tags:null==u?void 0:u.tags,limit:2})]})}function mM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mM(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let mF={display:"flex",alignItems:"center"},mz=(0,tQ.AH)(tu||(tu=(0,t$.A)(["\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 mW=n(67984);function mU(){return(mU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let mV=function(e){return tB.createElement("svg",mU({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2ZM9.29 16.29 5.7 12.7a.996.996 0 1 1 1.41-1.41L10 14.17l6.88-6.88a.996.996 0 1 1 1.41 1.41l-7.59 7.59a.996.996 0 0 1-1.41 0Z",style:{fill:"currentColor"}}))};function mG(){return(mG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let mZ=function(e){return tB.createElement("svg",mG({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8Z",style:{fill:"currentColor"}}))},mJ=(0,tB.createContext)({});function mq(e){let{children:t,style:n}=e,{t:r}=(0,tF.Bd)(),{0:l,1:i}=(0,tB.useState)(null),{0:o,1:a}=(0,tB.useState)(!1),s=(0,tB.useMemo)(()=>({setContent:i,setIsOpen:a}),[i,a]);return(0,rU.jsxs)(mJ.Provider,{value:s,children:[t,(0,rU.jsx)(li.Y,{isOpen:o,labelClose:r("Close"),requestClose:()=>a(!1),style:n,children:l})]})}mJ.displayName="ModalContext";var mK=n(15074),m$=n(22167),mQ=n(58925),mX=n(12697),m0=n(61944),m1=n(79896),m2=n(31662),m5=n.n(m2);function m4(e){var t,n;let{item:r,iPad:l,onClose:i}=e;return(0,rU.jsx)("div",{"data-theme":null!=(t=null==r||null==(n=r.palette)||null==(n=n.sys)?void 0:n.id)?t:"none",children:(0,rU.jsxs)("div",{className:(0,rZ.A)("flex m-4 p-4 rounded !fixed",m5().popup,l?m5().popupTop:m5().popupBottom),children:[(0,rU.jsx)("button",{type:"button",className:"absolute right-3 top-2 text-sm",onClick:i,children:"✕"}
1),(0,rU.jsx)("div",{className:"h-14 mr-4 place-self-center aspect-square",children:(0,rU.jsx)(mX.h,{image:null==r?void 0:r.popupImage})}),(0,rU.jsx)(rJ.$,{className:"[&_img]:inline [&_img]:px-1",children:(null==r?void 0:r.popupText)||""})]})})}let m3="push_notification",m6=e=>{let t={};t.counter=rj.uU.zyngaWebPush,null===rj.CC||void 0===rj.CC||rj.CC.count(e,t)};function m8(e){var t,n,r;let{item:l}=e,{0:i,1:o}=(0,tB.useState)(!1),{0:a,1:s}=(0,tB.useState)(!1),{0:c,1:u}=(0,tB.useState)(!1);(0,tB.useEffect)(()=>{o((0,mK.A)()&&io().mac||io().ipad)},[]);let d=(0,m1.Ys)(),{setContent:m,setIsOpen:p}=(0,tB.useContext)(mJ),{enableNotificationTitle:h,rewardClaimTitle:g,rewardClaimBody:f,addToHomeScreenButton:v,popupImage:b,repromptTimeout:x}=l;(0,tB.useEffect)(()=>{let{ios:e,android:t,mobile:n}=io();s((n&&(e||t&&d.prompt)||i)&&!(0,o3.xx)()&&!(0,o3.VH)("add-to-home-prompt-dismissed"))},[d,i]);let y=(0,tB.useCallback)(()=>{(0,r_.Rx)(m3,m3,"dismiss_main_banner"),m6(rj.zh.push_notification_dismiss_add_to_home_banner),(0,o3.Fd)("add-to-home-prompt-dismissed",x),s(!1)},[x]),{t:w}=(0,tF.Bd)(),j=(0,tB.useCallback)(()=>{(0,r_.Rx)(m3,m3,"click_add_to_home"),m6(rj.zh.push_notification_add_to_home);let{ios:e,android:t,safari:n}=io();if(e||i)if(n)u(!0),(0,o3.Fd)("add-to-home-prompt-dismissed",x);else{var r,o;let e=(0,rU.jsx)(ow,{hideHeader:!0,children:(0,rU.jsxs)("div",{"data-theme":null!=(r=null==l||null==(o=l.palette)||null==(o=o.sys)?void 0:o.id)?r:"none",className:(0,rZ.A)("p-4 rounded-lg relative",m5().modal),children:[(0,rU.jsx)("div",{className:"grow mb-5",children:(0,rU.jsx)("div",{className:"flex mb-5 lg:mb-0",children:(0,rU.jsx)("div",{className:"text-xl font-bold place-self-center mr-3",children:null!=g?g:""})})}),(0,rU.jsxs)("div",{className:"mb-5",children:[" ",null!=f?f:""]}),v&&(0,rU.jsx)("div",{className:"place-self-center lg:mr-5",children:(0,rU.jsx)("button",{type:"button",className:(0,rZ.A)("btn text-button-m w-full",m5().button),onClick:()=>{null==p||p(!1)},children:w("Close")})})]})});null==m||m(e),null==p||p(!0)}t&&d&&d.prompt&&d.prompt().then(e=>{"accepted"===e.outcome?((0,o3.Fd)("add-to-home-prompt-dismissed",-1),s(!1)):y()})},[i,null==l||null==(t=l.palette)||null==(t=t.sys)?void 0:t.id,g,f,v,w,m,p,d,y,x]);return a?(0,rU.jsxs)("div",{children:[(0,rU.jsx)(ow,{hideHeader:!0,slug:(0,im.B)(l.id),children:(0,rU.jsxs)("div",{"data-theme":null!=(n=null==l||null==(r=l.palette)||null==(r=r.sys)?void 0:r.id)?n:"none",className:(0,rZ.A)("p-4 rounded-lg sm:flex relative",m5().main),children:[(0,rU.jsxs)("div",{className:"grow mb-5",children:[(0,rU.jsx)("button",{type:"button",className:"absolute top-2 right-3 cursor",onClick:y,children:"✕"}),(0,rU.jsxs)("div",{className:"flex mb-5 lg:mb-0",children:[(0,rU.jsx)("div",{className:"h-14 w-14 aspect-square mr-4 [&_img]place-self-center place-self-center",children:(0,rU.jsx)(mX.h,{image:b})}),(0,rU.jsx)("div",{className:"text-xl font-bold place-self-center mr-3",children:h})]})]}),v&&(0,rU.jsx)("div",{className:"place-self-center lg:mr-5",children:(0,rU.jsx)("button",{type:"button",className:(0,rZ.A)("btn text-button-m w-full",m5().button),onClick:j,children:v})})]})}),c&&(0,rU.jsx)(m4,{item:l,iPad:i,onClose:()=>{u(!1),(0,r_.Rx)(m3,m3,"dismiss_add_to_home_popup"),m6(rj.zh.push_notification_dismiss_add_to_home_popup)}})]}):null}function m9(e){let{item:t}=e;return(0,rU.jsx)(m8,{item:t})}function m7(){return(m7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let pe=function(e){return tB.createElement("svg",m7({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{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",style:{fill:"currentColor"}}))};function pt(e){var t,n,r;let{item:l,onClose:i,onRedeemed:o,onError:a}=e,{t:s}=(0,tF.Bd)(),{user:c}=(0,rk.J)(),{getValidAccessToken:u}=(0,ic.A)(),{0:d,1:m}=(0,tB.useState)(""),{0:p,1:h}=(0,tB.useState)(""),{setIsOpen:g}=(0,tB.useContext)(mJ),{0:f,1:v}=(0,tB.useState)(!1),{isError:b,isFetching:x,error:y}=(0,mn.useQuery)(["item",l],async()=>{var e,t,n,r;let i=(null==(e=l.reward)||null==(e=e.sys)?void 0:e.id)||"",d=await u(),p=await (0,uY.rm)(d,i),g=await (0,uY.pK)(d,(null==c?void 0:c.userId)||"",p);if(g.ok)m(l.rewardPopupClaimedTitle||s("claim-offer-title-success")),h((l.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,r_.Rx)("push_notification","push_notification","reward_claim_succeeded",(null==(r=l.reward)?void 0:r.internalName)||""),v(!0);else if(403===g.status)m(s("offer-claimed")),h(s("offer-claimed-desc")),(0,r_.Rx)("push_notification","push_notification","reward_already_claimed",(null==(t=l.reward)?void 0:t.internalName)||"");else{let e="Failed to claim offer ".concat(p,": ").concat(g.status,": ").concat(await g.text());a?a(Error(e)):(m(s("offer-error")),h(s("offer-error-desc"))),(0,r_.Rx)("push_notification","push_notification","reward_claim_failed",(null==(n=l.reward)?void 0:n.internalName)||"")}},{enabled:!0,retry:!1,refetchOnWindowFocus:!1});return(0,rU.jsx)("section",{"data-theme":null!=(t=null==l||null==(n=l.palette)||null==(n=n.sys)?void 0:n.id)?t:"none",className:(0,rZ.A)("modal",m5().modal),children:(0,rU.jsxs)("div",{className:"h-full w-full flex items-center justify-center flex-col",children:[(x||b)&&(0,rU.jsx)("div",{className:"fill-current px-20",children:(0,rU.jsx)(ll,{fetching:x,error:b,errorHeader:s("offer-error"),errorIcon:(0,rU.jsx)(pe,{}),errorActionLabel:s("confirm"),errorAction:()=>{null==g||g(!1),null==a||a(y)},errorMessage:s("offer-error-desc")})}),!x&&!b&&(0,rU.jsxs)("div",{className:"px-10 py-12 text-center",children:[(0,rU.jsx)("h2",{className:"text-2xl my-5",children:d}),(0,rU.jsx)(rJ.$,{className:"my-3",children:p}),(0,rU.jsx)("div",{className:"w-32 aspect-square mx-auto my-6",children:(0,rU.jsx)(mX.h,{image:null==(r=l.reward)?void 0:r.boxart})}
1),(0,rU.jsx)("button",{type:"button",className:(0,rZ.A)("btn text-button-m w-full my-5",m5().button),onClick:()=>{null==g||g(!1),null==i||i(),f&&pr(rj.zh.push_notification_return_after_claim)},children:l.returnToGameButton||s("confirm")})]})]})})}let pn={content:{width:"42rem",height:"max-content",position:"relative"},overlay:{display:"flex",justifyContent:"center",alignItems:"center"}},pr=e=>{let t={};t.counter=rj.uU.zyngaWebPush,null===rj.CC||void 0===rj.CC||rj.CC.count(e,t)};function pl(e){let{children:t}=e;return t?(0,rU.jsx)(rJ.$,{className:"[&_a]:type-link hover:[&_a]:type-link-hover",children:t}):null}function pi(e){return e?(0,rU.jsx)("div",{className:"mr-3",children:(0,rU.jsx)(mV,{})}):(0,rU.jsx)("div",{className:"mr-3",children:(0,rU.jsx)(mZ,{})})}function po(e){var t,n,r,l,i,o,a;let{item:s}=e,c=(0,m$.tC)(),{user:u}=(0,rk.J)(),{0:d,1:m}=(0,tB.useState)("none"),{setContent:p,setIsOpen:h}=(0,tB.useContext)(mJ),{0:g,1:f}=(0,tB.useState)(!1),v=(0,tB.use)(ig.g),{0:b,1:x}=(0,tB.useState)(!0),y=((0,rf.IQ)().applicationId||"").toLowerCase(),w=(0,tz.useRouter)(),{1:j}=(0,tB.useState)(!1),{bpId:O,bpKey:k}=w.query,{0:A,1:C}=(0,tB.useState)(!1),{0:P,1:S}=(0,tB.useState)(!1),{0:N,1:_}=(0,tB.useState)(!1),D=(0,tB.useCallback)(async(e,t)=>{let n="".concat(window.location.origin,"/bounce-poll/app/").concat(y,"/").concat(e,"?bpTime=").concat(t),r=await fetch(n);if(200===r.status){let{token:t}=await r.json(),n=await (0,mQ.dn)(),l=await (0,mQ.bZ)(t,n),i=JSON.stringify({bpId:e,bpTime:Date.now()});tU.Ar.setItem("bpContext",i),t&&(document.cookie=(0,iu.bt)(iu.Re.token,"".concat(l)),j(!0))}},[y]),I=(0,tB.useCallback)(async()=>{if(null!=u&&u.userId){var e;let t=null==u?void 0:u.authToken,n=await (0,uY.rm)(t,(null==(e=s.reward)||null==(e=e.sys)?void 0:e.id)||""),r=await (0,uY.cX)(t,u.userId,n);if(r.ok&&200===r.status){let e=await r.json();if(e.eligible&&!e.redeemed)return!0}return!1}},[null==(t=s.reward)||null==(t=t.sys)?void 0:t.id,u]),E=(0,tB.useCallback)(e=>{var t;(0,r_.Rx)("push_notification","push_notification",e,(null==(t=s.reward)?void 0:t.internalName)||"")},[s]),T=(0,tB.useCallback)(async()=>{let{ios:e,safari:t,android:n,chrome:r,mobile:l}=io();if(!u||!(e&&t||A&&!l&&t||n&&l&&r)||(0,o3.VH)("notification-prompt-dismissed"))return void m("none");if(!l&&!A)return void m("desktop-browser");let i=(0,o3.xx)();if(((e||A)&&i||n&&r)&&!c)return void m("none");let o=await I(),a=void 0!==o,s=(0,o3.VH)("notification-reward-claimed"),[d,p]=await Promise.all([null==c?void 0:c.canPropmt(),null==c?void 0:c.isSubscribed()]);if(null!=u&&u.userId&&y&&p&&(null==c||c.aliasSubscription(y,u.userId)),e||A){i&&p&&tU.Ar.setItem("meta",JSON.stringify({notificationSubscribed:!0}));let e=p;i||!0===function(){try{return JSON.parse(tU.Ar.getItem("meta")||"{}")}catch(e){return{}}}().notificationSubscribed&&(e=!0),i||e?i&&d&&!e?m("ios-enable-notification"):!i||d||e?o&&a?m("redeem-reward"):!o&&a&&s?m("redeemed-reward"):m("none"):m("notification-blocked"):(m("ios-install-pwa"),u&&E("notification_banner_impression"))}else n&&(d&&!p?(m("enable-notification"),u&&E("notification_banner_impression")):d||p?o&&a?m("redeem-reward"):!o&&a&&s?m("redeemed-reward"):m("none"):m("notification-blocked"))},[c,A,I,u,y,E]);(0,tB.useEffect)(()=>{C(!0===((0,mK.A)()&&io().mac||io().ipad)),T()},[T]),(0,tB.useEffect)(()=>{let{ios:e,safari:t,android:n,chrome:r,mobile:l}=io();if(b&&(e&&t||A&&!l&&t||n&&l&&r)&&(0,o3.xx)()){k&&"string"==typeof k&&tU.Ar.setItem("bpKey",k);try{var i;let{bpId:e,bpTime:t}=JSON.parse(null!=(i=tU.Ar.getItem("bpContext"))?i:"{}");if(!e){if(!O||Array.isArray(O))throw Error();e=O,tU.Ar.setItem("bpContext",JSON.stringify({bpId:O}))}t||(t=0),D(e,t)}catch(e){}}},[b,D,O,k,A]),(0,tB.useEffect)(()=>{!u||c&&(null==c||c.bindUser(u),P||(null==c||c.onPermChangeCallback(e=>{switch(e){case"denied":E("click_dont_allow"),pr(rj.zh.push_notification_dont_allow);break;case"granted":E("click_allow"),pr(rj.zh.push_notification_allow)}T(),_(!1)}),S(!0)))},[s,E,P,T,u,c]);let L=(0,tB.useCallback)(async()=>{if(!N)if(io().mobile||A)switch(-1!==["ios-enable-notification","enable-notification","redeem-reward"].indexOf(d)&&_(!0),d){case"ios-enable-notification":case"enable-notification":null==c||c.prompt(),E("click_enable_notification"),pr(rj.zh.push_notification_enable_notification);break;case"ios-install-pwa":f(!0),E("click_add_to_home"),pr(rj.zh.push_notification_add_to_home);break;case"redeem-reward":{let e=(0,rU.jsx)(pt,{item:s,onRedeemed:()=>{(0,o3.Fd)("notification-reward-claimed",void 0)},onClose:()=>{(0,o3.Fd)("notification-prompt-dismissed",s.repromptTimeout),T(),E("dismiss_thank_you_modal")}});null==p||p(e),null==h||h(!0),E("click_claim_now"),pr(rj.zh.push_notification_claim_now)}}else v()},[d,A,s,N,E,p,h,v,T,c]),H=(0,tB.useCallback)(()=>{(0,o3.Fd)("notification-prompt-dismissed",s.repromptTimeout),m("none"),E("ios-install-pwa"===d?"dismiss_iOS_add_to_home_banner":"dismiss_main_banner"),pr("ios-install-pwa"===d?rj.zh.push_notification_dismiss_add_to_home_banner:rj.zh.push_notification_dismiss_notification_banner)},[d,s.repromptTimeout,E]),{body:Y,title:R,buttonText:M,disclaimer:B}=function(e,t){let n,r,l,i;
1switch(e){case"desktop-browser":case"enable-notification":case"redeem-reward":"desktop-browser"===e?(n=t.enableNotificationBrowserTitle,l=t.connectToClaimButton,r=(0,rU.jsx)(pl,{children:t.enableNotificationBody})):"enable-notification"===e?(n=t.enableNotificationTitle,l=t.enableNotificationButton,r=(0,rU.jsx)(pl,{children:t.enableNotificationBody})):(n=t.rewardClaimTitle,l=t.claimNowButton,r=(0,rU.jsx)(pl,{children:t.rewardClaimBody})),i=t.rewardLimitText;break;case"ios-install-pwa":case"ios-enable-notification":n=t.enableNotificationTitle,l="ios-install-pwa"===e?t.addToHomeScreenButton:t.enableNotificationButton,r=(0,rU.jsxs)("div",{className:"[&_div]:mb-5",children:[(0,rU.jsx)(pl,{children:t.enableNotificationBody}),(0,rU.jsxs)("div",{className:"flex",children:[pi((0,o3.xx)())," ",t.enableNotificationStep1]}),(0,rU.jsxs)("div",{className:"flex",children:[pi(!1)," ",t.enableNotificationStep2]})]}),i=t.rewardLimitText;break;case"notification-blocked":case"redeemed-reward":n="notification-blocked"===e?t.enableNotificationTitle:t.rewardAlreadyClaimedTitle,l="",r="notification-blocked"===e?(0,rU.jsx)(pl,{children:t.enableNotificationDisabledText}):(0,rU.jsx)(pl,{children:t.rewardClaimBody})}return{title:n,body:r,buttonText:l,disclaimer:i}}(d,s);return s?(["redeemed-reward","redeem-reward"].find(e=>e===d)&&N&&_(!1),"none"!==d&&u)?(0,rU.jsx)(mW.A,{onChange:x,children:(0,rU.jsxs)("div",{children:[(0,rU.jsx)(ow,{hideHeader:!0,slug:(0,im.B)(s.id),children:io().mobile?(0,rU.jsxs)("div",{"data-theme":null!=(n=null==s||null==(r=s.palette)||null==(r=r.sys)?void 0:r.id)?n:"none",className:(0,rZ.A)("p-4 rounded-lg sm:flex relative",m5().main),children:[(0,rU.jsxs)("div",{className:"grow mb-5",children:[(0,rU.jsx)("button",{className:"absolute top-2 right-3 cursor",onClick:H,children:"✕"}),(0,rU.jsxs)("div",{className:"flex mb-5 lg:mb-0",children:[(0,rU.jsx)("div",{className:"h-14 w-14 aspect-square mr-4 [&_img]place-self-center place-self-center",children:(0,rU.jsx)(mX.h,{image:null==(l=s.reward)?void 0:l.boxart})}),(0,rU.jsx)("div",{className:"text-xl font-bold place-self-center mr-3",children:R})]}),Y]}),M&&(0,rU.jsx)("div",{className:"place-self-center lg:mr-5 relative",children:(0,rU.jsxs)("button",{type:"button",className:(0,rZ.A)("btn text-button-m w-full",m5().button),onClick:L,children:[!N&&M,N&&(0,rU.jsx)(m0.k,{})]})}),(0,rU.jsx)("div",{className:"mt-3 text-xs",children:s.rewardLimitText})]}):(0,rU.jsxs)("div",{"data-theme":null!=(i=null==s||null==(o=s.palette)||null==(o=o.sys)?void 0:o.id)?i:"none",className:(0,rZ.A)("p-10 rounded-lg flex flex-wrap relative",m5().main),children:[(0,rU.jsx)("div",{className:"lg:h-32 lg:w-32 lg:p-5 w-14 aspect-square mr-4 place-self-center",children:(0,rU.jsx)(mX.h,{image:null==(a=s.reward)?void 0:a.boxart})}),(0,rU.jsx)("button",{className:"absolute top-2 right-3 cursor",onClick:H,children:"✕"}),(0,rU.jsxs)("div",{children:[(0,rU.jsx)("div",{className:"text-xl font-bold place-self-center mb-3",children:R}),(0,rU.jsx)("div",{className:"mb-5",children:Y}),M&&(0,rU.jsx)("button",{type:"button",className:(0,rZ.A)("btn text-button-m w-full sm:w-fit",m5().button),onClick:L,children:M}),(0,rU.jsx)("div",{className:"mt-3 text-xs",children:B})]})]})}),g&&(0,rU.jsx)(m4,{item:s,iPad:A,onClose:()=>{f(!1),E("dismiss_add_to_home_popup"),pr(rj.zh.push_notification_dismiss_add_to_home_popup)}})]})}):(0,rU.jsx)(mW.A,{onChange:x}):null}var pa=n(42954);function ps(){return null}let pc=(0,tB.createContext)({isOpen:!0,current:0,total:0,steps:[],next:ps,prev:ps,close:ps,setSteps:ps}),pu=(0,tB.createContext)({update:ps});function pd(e){let{children:t,onClose:n}=e,r=(0,pa.wR)(),{0:l,1:i}=(0,tB.useState)(0),{0:o,1:a}=(0,tB.useState)(!0),{0:s,1:c}=(0,tB.useState)([]),u=(0,tB.useCallback)(()=>{a(!1),n()},[n]),d=(0,tB.useMemo)(()=>({current:l,steps:s,isOpen:o,total:s.length,setSteps:c,close:u,next:()=>{l>=s.length-1?u():i(l+1)},prev:()=>{0===l?u():i(l-1)}}),[l,s,o,u]);return r||!o?null:(0,rU.jsx)(pc.Provider,{value:d,children:t})}function pm(e){let{children:t}=e,{current:n,setSteps:r,steps:l}=(0,tB.useContext)(pc);return(0,tB.useEffect)(()=>{let e=[];
1tB.Children.forEach(t,t=>{(0,tB.isValidElement)(t)&&null!==t&&e.push(t)}),r(e)},[t,r]),(0,rU.jsx)(rU.Fragment,{children:l[n]})}var pp=n(41352);function ph(e){return e.replace(/\b[a-zA-Z0-9]*\b(?![^[]*])/g,CSS.escape)}function pg(e,t){let n=(0,pa.wR)(),r=(0,tB.useMemo)(()=>n?[]:function(e,t){let n=new Set;if(0===e.length)return[];if(0===t.length)e.forEach(e=>n.add(ph(e)));else for(let r of e)for(let e of t)n.add(e===r?ph(r):"".concat(ph(e)," ").concat(ph(r)));let r=[...n].join(", "),l=new Set;try{for(let e of document.querySelectorAll(r))l.add(e)}catch(e){}let i=[...l],o=new Set(l);return i.filter(e=>{let t=e.parentElement;for(;t&&t!==document.documentElement;){if(t.hidden||o.has(t)||t.classList.contains("hidden")||t.classList.contains("invisible"))return!1;let e=window.getComputedStyle(t);if("hidden"===e.visibility||"none"===e.display)return!1;t=t.parentElement}return!0})}(e,t),[n,JSON.stringify(e,t)]),{0:l,1:i}=(0,tB.useState)(()=>r.map(e=>{let{height:t,width:n,bottom:r}=e.getBoundingClientRect();return{element:e,he
1ight:t,width:n,bottom:r}}));return(0,tB.useEffect)(()=>{let e=new ResizeObserver(e=>{let t=new WeakMap;for(let n of e)if(n.target instanceof HTMLElement){let e=n.target,{height:r,width:l,bottom:i}=n.contentRect;t.set(e,{element:e,height:r,width:l,bottom:i})}i(e=>e.map(e=>t.get(e.element)||e))});for(let t of r)e.observe(t);return()=>{for(let t of r)e.unobserve(t);e.disconnect()}},[r]),l}let pf="spotlights";function pv(e){let{children:t}=e,[n]=pg(["body"],[]),{0:r,1:l}=(0,tB.useState)(0),{0:i,1:o}=(0,tB.useState)(""),{0:a,1:s}=(0,tB.useState)([]),c=(0,tB.useMemo)(()=>({update:s}),[]);return((0,tB.useEffect)(()=>{let e=()=>{let e="M 0,0 H ".concat(n.width," V ").concat(n.height," H 0 Z");for(let t of a){let{x:n,y:r,width:l,height:i}=t.getBoundingClientRect(),o=n+window.scrollX,a=r+window.scrollY,s=n+l+window.scrollX,c=r+i+window.scrollY,u=n+window.scrollX;e="".concat(e," M ").concat(o,",").concat(a," H ").concat(s," V ").concat(c," H ").concat(u," Z")}o(e),l(e=>e+1)};return e(),a.some(e=>"fixed"===getComputedStyle(e).position||"sticky")&&window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[n.height,n.width,a]),n)?(0,pp.createPortal)((0,rU.jsxs)(rU.Fragment,{children:[(0,rU.jsxs)("div",{className:"absolute top-0 left-0",style:{width:n.width,height:n.height},children:[a.length>0?(0,rU.jsx)("svg",{className:"absolute",width:"0",height:"0",children:(0,rU.jsx)("defs",{children:(0,rU.jsx)("clipPath",{id:pf,clipPathUnits:"userSpaceOnUse",children:(0,rU.jsx)("path",{d:i,fill:"white",clipRule:"evenodd"})})})}):null,(0,rU.jsx)("div",{className:"absolute top-0 left-0 backdrop-blur-sm pointer-events-none",style:{width:n.width,height:n.height,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1e3,WebkitClipPath:"url(#".concat(pf,")"),clipPath:"url(#".concat(pf,")")}},"spotlight-blur")]},r.toString()),(0,rU.jsx)(pu.Provider,{value:c,children:t})]}),document.body):null}function pb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function px(e){return(0,rU.jsx)(pv,{children:(0,rU.jsx)(pm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pb(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))},"tour-guide-modal")}var py=n(86753),pw=n(61904),pj=n(27577);function pO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pO(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let pA=e=>(0,rU.jsx)("svg",pk(pk({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),{},{children:(0,rU.jsx)("path",{fill:"currentColor",d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59a.996.996 0 0 0 0-1.41l-6.58-6.6a.996.996 0 1 0-1.41 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1Z"})}));function pC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pC(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pS(e){let{reference:t,placement:n}=e,{floatingStyles:r,refs:l}=(0,py.we)({placement:n,elements:{reference:t},middleware:[(0,pw.cY)(-8)],whileElementsMounted:pj.ll});return(0,rU.jsx)(py.XF,{children:(0,rU.jsx)("div",{className:"animate-pulse",style:pP(pP({},r),{},{zIndex:999999}),ref:l.setFloating,children:(0,rU.jsx)(pA,{className:(0,rZ.A)("size-16","bottom"===n&&"-rotate-90","top"===n&&"rotate-90","right"===n&&"rotate-180","left"===n&&"rotate-0","bottom-end"===n&&"-rotate-45","bottom-start"===n&&"-rotate-[135deg]")})})})}function pN(e){var t,n;let{spotlights:r=[],arrows:l=[],children:i}=e,o=pg(r,[]),a=pg(l,r),{update:s}=(0,tB.useContext)(pu),{close:c}=(0,tB.useContext)(pc),u=(0,tB.useRef)(null),d=1===a.length?a[0].element:null==(t=[...o].find(e=>e.element))?void 0:t.element,m=!!d&&d===(null==a||null==(n=a[0])?void 0:n.element),p=m||!!d,{refs:h,floatingStyles:g,isPositioned:f,context:v}=(0,py.we)({open:!0,elements:{reference:d},onOpenChange:c,whileElementsMounted:pj.ll,middleware:[(0,pw.cY)(m?64:16),(0,pw.RK)({padding:10}),(0,pw.BN)({padding:10})]}),b=(0,py.s9)(v,{outsidePress(e){var t;return!!p||e.target===u.current||!(null!=(t=u.current)&&t.contains(e.target))}}),{getFloatingProps:x}=(0,py.bv)([b]);return((0,tB.useEffect)(()=>{s(o.map(e=>e.element))},[o,s]),(0,tB.useEffect)(()=>{var e;let t=null==(e=o.slice(0).sort((e,t)=>
1e.bottom-t.bottom).pop())?void 0:e.element,n=(null==t?void 0:t.style.scrollMargin)||"",r=document.documentElement.style.overflow;document.documentElement.style.overflow="hidden";let l=()=>{t&&(t.style.scrollMargin="1rem",t.scrollIntoView({behavior:"smooth",block:"end"}))};l();let i=(0,rw.s)(250,()=>l());return window.addEventListener("resize",i),()=>{t&&(t.style.scrollMargin=n),window.removeEventListener("resize",i),document.documentElement.style.overflow=r}},[o]),p)?(0,rU.jsxs)(rU.Fragment,{children:[a.map((e,t)=>(0,rU.jsx)(pS,{placement:v.placement,reference:e.element},t)),(0,rU.jsx)(py.XF,{children:(0,rU.jsx)("div",pP(pP({ref:h.setFloating,className:"animate-appear duration-500 transition-none max-w-[95vw]"},x()),{},{style:pP(pP({},g),{},{opacity:+!!f,zIndex:999999,maxWidth:"calc(100vw - ".concat(20,")")}),children:i}))})]}):(0,rU.jsx)(py.XF,{children:(0,rU.jsx)("div",{ref:u,style:{zIndex:999999},className:"animate-appear duration-500 transition-none fixed inset-0 flex items-center justify-center p-4",children:i})})}var p_=n(78328),pD=n(35677),pI=n(69811),pE=n.n(pI);function pT(e){var t;let n=(null==e?void 0:e.items)||[],r=[];for(let e of n)if((0,pD.T)(e))switch(e.__typename){case"Item":e.title&&r.push('*[title*="'.concat(e.title,'"]'));break;case"StaticDetailItem":e.detailName&&r.push('*[title*="'.concat(e.detailName,'"]'));break;case"DynamicDetailItem":let n=e.detailName||(null==(t=e.staticDetailItem)?void 0:t.detailName);n&&r.push('*[title*="'.concat(n,'"]'));break;case"StorePage":r.push('a[href*="'.concat(e.slug,'"]'));break;case"NavigationLink":r.push('a[href*="'.concat(e.url,'"]'));break;case"Button":e.target?r.push('button[id*="'.concat(e.target,'"]')):(0,pD.T)(e.targetReference)&&r.push('button[id*="'.concat(e.targetReference.sys.id,'"]'));break;default:r.push("#".concat(e.sys.id))}return r}function pL(e){var t,n,r,l,i;let{step:o,isLastStep:a}=e,{next:s}=function(){let{close:e,current:t,next:n,prev:r,total:l}=(0,tB.useContext)(pc);return(0,tB.useMemo)(()=>({close:e,current:t,next:n,prev:r,total:l}),[e,t,n,r,l])}(),{t:c}=(0,tF.Bd)(),{checkoutPaletteId:u}=(0,rf.IQ)();if(!o)return null;let d=null==(t=o.contentCollection)||null==(t=t.items)?void 0:t[0];if(!d)return null;let m=a?c("Close"):(null==(n=d.buttonsCollection)||null==(n=n.items)||null==(n=n[0])?void 0:n.text)||c("next");return(0,rU.jsx)(pN,{arrows:pT(o.subTargetsCollection),spotlights:pT(o.targetsCollection),children:(0,rU.jsxs)("div",{"data-theme":(null==(l=d.palette)||null==(l=l.sys)?void 0:l.id)||u,className:(0,rZ.A)(pE().main,"p-4 rounded-md shadow-near max-w-screen-sm"),children:[(0,rU.jsx)("h1",{className:"text-headline-l font-bold text-center",children:null==(i=d.header)?void 0:i.text}),(0,rU.jsx)("p",{className:"text-body-m text-center mt-2",children:d.copy}),(0,rU.jsx)("button",{type:"button",onClick:s,className:(0,rZ.A)(pE().button,"btn bg-primary mx-auto block mt-4"),children:m})]})},null==o||null==(r=o.sys)?void 0:r.id)}function pH(){try{let e=tU.Ar.getItem("onboarding")||"[]",t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}}var pY=n(43480),pR=n.n(pY);function pM(){return(pM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let pB=function(e){return tB.createElement("svg",pM({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),tB.createElement("path",{d:"M9 16.17 5.53 12.7a.996.996 0 1 0-1.41 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71a.996.996 0 1 0-1.41-1.41L9 16.17Z",style:{fill:"currentColor"}}))},pF=e=>(0,tQ.AH)(td||(td=(0,t$.A)(["\n  ","\n\n  svg {\n    ","\n    ","\n  }\n"])),{display:"flex",alignItems:"center"},{fill:"currentColor"},e?(0,tQ.AH)(tm||(tm=(0,t$.A)(["\n          ","\n          margin-inline-end: 0.25rem;\n        "])),{display:"none",flex:"none","@media (min-width: 640px)":{display:"block"}}):"");function pz(e){let{language:t,supportedType:n=!1,labelSupported:r,labelUnsupported:l}=e;return n?(0,t5.FD)("div",{css:pF(!0),children:[(0,t5.Y)(pB,{"aria-label":r}),(0,t5.Y)("span",{children:t})]}):(0,t5.FD)("div",{css:pF(),children:[(0,t5.Y)(ac.A,{"aria-label":l}),(0,t5.Y)("span",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:t})]})}let pW=(0,tQ.AH)(tp||(tp=(0,t$.A)(["\n  ","\n\n  @media (min-width: ","px) {\n    grid-template-columns: repeat(3, minmax(12rem, 1fr));\n  }\n\n  thead,\n  tbody,\n  tr {\n    display: contents;\n  }\n"])),{gridColumn:"span 3 / span 3",display:"grid",borderCollapse:"collapse",gridTemplateColumns:"repeat(3, minmax(0, 1fr))"},tX.cJ),pU=(0,tQ.AH)(th||(th=(0,t$.A)(["\n  th {\n    ","\n    text-align: initial;\n  }\n\n  td {\n    ","\n    ","\n  }\n\n  @media (max-width: ","px) {\n    th {\n      ","\n    }\n  }\n"])),{paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.75rem",paddingBottom:"0.75rem",backgroundColor:"rgba(var(--color-neutral-100-rgb), 0.3)",fontWeight:"600",fontSize:"0.75rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"uppercase",letterSpacing:"0.05rem"},{borderBottomWidth:"1px",borderColor:"rgba(var(--color-white-rgb), 0.12)"},{display:"flex",alignItems:"center",padding:"0.75rem"},tX.Eb,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),pV={marginTop:"0.75rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",cursor:"pointer",color:"rgba(var(--text-color-primary-rgb), 0.8)",textDecoration:"underline",transition:"color 0.2s ease-in-out",":hover":{color:"rgba(var(--text-color-primary-rgb), 1.0)",textDecoration:"underline"},":focus":{"--tw-shadow":"0 0 0 rgba(var(--color-black-rgb), 0)","--tw-shadow-colored":"0 0 0 var(--tw-sha
1dow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},".light &":{color:"rgba(var(--color-primary-rgb), 0.8)"},".light &:hover":{color:"var(--color-primary)"}},pG=(0,tQ.AH)(tg||(tg=(0,t$.A)(["\n  tr:nth-of-type(n + 6) {\n    display: inherit;\n  }\n"]))),pZ=(0,tQ.AH)(tf||(tf=(0,t$.A)(["\n  tr:nth-of-type(n + 6) {\n    ","\n  }\n"])),{display:"none"}),pJ={fontWeight:"normal",fontSize:"1rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"};function pq(e){let{labelInterface:t,labelAudio:n,labelSubtitles:r,labelViewAll:l,languages:i,viewAllLimit:o=5,labelSupported:a,labelUnsupported:s}=e,{0:c,1:u}=(0,tB.useState)(!1);return i.every(e=>!e.fullAudio&&!e.subtitles)?(0,t5.Y)("div",{css:pJ,children:i.map(e=>{let{language:t}=e;return t}).join(", ")}):(0,t5.FD)(t5.FK,{children:[(0,t5.FD)("table",{css:pW,children:[(0,t5.Y)("thead",{children:(0,t5.FD)("tr",{css:pU,children:[(0,t5.Y)("th",{children:t}),(0,t5.Y)("th",{children:n}),(0,t5.Y)("th",{children:r})]})}),(0,t5.Y)("tbody",{css:c?pG:pZ,children:i.length&&i.map(e=>(0,t5.FD)("tr",{css:pU,children:[(0,t5.Y)("td",{children:(0,t5.Y)(pz,{language:null==e?void 0:e.language,supportedType:null==e?void 0:e.interface,labelSupported:a,labelUnsupported:s})}),(0,t5.Y)("td",{children:(0,t5.Y)(pz,{language:null==e?void 0:e.language,supportedType:null==e?void 0:e.fullAudio,labelSupported:a,labelUnsupported:s})}),(0,t5.Y)("td",{children:(0,t5.Y)(pz,{language:null==e?void 0:e.language,supportedType:null==e?void 0:e.subtitles,labelSupported:a,labelUnsupported:s})})]},null==e?void 0:e.language))})]}),!c&&i.length>o&&(0,t5.Y)("button",{type:"button",css:pV,onClick:()=>{u(!c)},children:l})]})}function pK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pK(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var pQ=n(24929),pX=n(5838),p0=n(80710),p1=n.n(p0);function p2(e){let{label:t,href:n,isActive:r,onSelect:l}=e;return(0,rU.jsxs)("a",{href:n,"aria-current":r?"location":void 0,onClick:e=>{var t;e.preventDefault(),l(),null==(t=document.querySelector(n))||t.scrollIntoView({behavior:"smooth",block:"start"})},className:(0,rZ.A)("group relative font-secondary justify-center text-center uppercase whitespace-pre shrink-0 text-xs font-bold",p1().tabInactive),children:[(0,rU.jsx)(pQ.i,{"data-indicator":!0,isSelected:r,className:(0,rZ.A)("z-0 absolute inset-0 rounded-md transition-[translate,width] duration-500 ease-out",p1().tabActive)}),(0,rU.jsx)("span",{className:"z-10 relative grid place-content-center",children:t})]})}function p5(e){let{activeSection:t,children:n,className:r,tabCount:l}=e,i=(0,tB.useRef)(null),{t:o}=(0,sz.B)();return(0,tB.useEffect)(()=>{if(!t)return;let e=i.current,n=null==e?void 0:e.querySelector('a[href="#'.concat(t,'"]'));e&&n instanceof HTMLElement&&e.scrollTo({left:n.offsetLeft-(e.clientWidth-n.offsetWidth)/2,behavior:"smooth"})},[t]),(0,rU.jsx)("div",{className:(0,rZ.A)(p1().main,"!border-x-0"),children:(0,rU.jsx)("nav",{"aria-label":o("jump-to"),ref:i,style:{"--tab-count":l,"--tabs-in-view":2.5},className:(0,rZ.A)(p1().menu,p1().portraitTabs,r,"relative flex overflow-x-auto hide-scrollbar","*:px-4 *:py-2","[&_*[data-indicator]]:!border-y-0","[&_*:first-child_[data-indicator]]:border-s-0 [&_*:first-child_[data-indicator]]:rounded-s-none","[&_*:last-child_[data-indicator]]:border-e-0 [&_*:last-child_[data-indicator]]:rounded-e-none","[&_*]:basis-[calc(100%/min(var(--tab-count,1),var(--tabs-in-view)))]"),children:n})})}function p4(e){let{children:t,className:n}=e,{t:r}=(0,sz.B)();return(0,rU.jsx)("nav",{"aria-label":r("jump-to"),className:(0,rZ.A)(p1().menu,n,"flex mt-6 justify-center items-center text-xl rounded-md px-2 py-5 flex-col w-full shrink-0 overflow-visible !border-0","*:w-full *:whitespace-normal *:mb-2 *:py-2"),children:t})}function p3(e){let{tabs:t,getContentAnchor:n,layoutId:r,sections:l}=e,{current:i,setDestination:o}=function(e){let{0:t,1:n}=(0,tB.useState)(),r=(0,tB.useRef)(void 0);return(0,tB.useEffect)(()=>{var t,l;let i=Array.from(null!=(t=null==(l=e.current)?void 0:l.querySelectorAll(":scope > [data-tab-content]"))?t:[]);if(!i.length)return;let o=0,a=()=>{var e;o=0;let t=Number.parseFloat(getComputedStyle(i[0]).scrollMarginTop)||0,l=document.documentElement.scrollHeight-document.documentElement.clientHeight,a=l>0&&window.scrollY>=l-1?i[i.length-1].id:i.reduce((e,n)=>n.getBoundingClientRect().top-t<=64?n:e).id;a===r.current&&(r.current=void 0),n(null!=(e=r.current)?e:a)},s=()=>{o||(o=requestAnimationFrame(a))},c=(0,rw.s)(120,()=>{r.current=void 0,s()}),u=()=>{r.current&&c(),s()};return a(),window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",s,{passive:!0}),()=>{cancelAnimationFrame(o),c.cancel(),window.removeEventListener("scroll",u),window.removeEventListener("resize",s)}},[e]),{current:t,setDestination:(0,tB.useCallback)(e=>{r.current=e,n(e)},[])}}(l),a=(t||[]).map(e=>{var t,l,a,s,c;if(!(null!=e&&null!=(t=e.sys)&&t.id)||(null==e||null==(l=e.itemsCollection)||null==(l=l.items)?void 0:l.length)===0)return null;let u=n(r,e.sys.id);return(0,rU.jsx)(p2,{href:"#".concat(u),isActive:u===i,onSelect:()=>o(u),label:(null==(s=e.decoratedHeader)||null==(s=s.text)||null==(s=s.text)?void 0:s.trim())||(null==(c=e.header)||null==(c=c.text)?void 0:c.trim())||""},null==(a=e.sys)?void 0:a.id)});return(0,rU.jsxs)(rU.Fragment,{children:[(0,rU.jsx)(p5,{className:"landscape:hidden",activeSection:i,tabCount:(0,tG.U)(a).length,children:(0,rU.jsx)(pX.D,{children:a})}),(0,rU.jsx)(p4,{className:"portrait:hidden",children:(0,rU.jsx)(pX.D,{children:a})})]})}function p6(e,t){return"tab-content-".concat(e,"-").concat(null!=t?t:"")}function p8(e){var t,n;let{item:r,dynamicMarketing:l}=e,{ref:i,style:o,cssVars:a}=ao(),s=(0,tB.useRef)(null),c=(0,tB.useMemo)(()=>{var e;return null!=(e=r.layoutsCollection)&&e.items?r.layoutsCollection.items.filter(e=>(0,pD.T)(e)):[]},[r.layoutsCollection]),u=null==(t=r.sys)?void 0:t.id;return 0!==c.length&&u?(0,rU.jsxs)("div",{id:"tab-layout-".concat(u),"data-theme":(null==(n=r.palette)||null==(n=n.sys)?void 0:n.id)||"none",className:"landscape:grid items-start justify-center landscape:grid-cols-[clamp(117px,12vw,117px)_minmax(0,1fr)] landscape:gap-4",children:[(0,rU.jsx)("div",{ref:i,style:o,className:"sticky z-subnav",children:(0,rU.jsx)(p3,{sections:s,layoutId:u,tabs:c,getContentAnchor:p6})}),(0,rU.jsx)("div",{ref:s,style:a,className:(0,rZ.A)("portrait:[--scroll-offset:--sticky-stack-clearance]","landscape:[--scroll-offset:--sticky-stack-stickytop]","portrait:mt-6 landscape:col-start-2 min-w-0"),children:c.map((e,t)=>(0,rU.jsx)("section",{id:p6(u,e.sys.id),"data-tab-content":!0,tabIndex:-1,
1className:(0,rZ.A)("outline-none my-10",0===t&&(0,cc.bQ)(e.defaultViewType)&&"landscape-sm:mt-0","scroll-mt-[calc(var(--scroll-offset)+1rem)]","landscape:scroll-mt-[calc(var(--sticky-stack-stickytop)+1rem)]"),children:(0,rU.jsx)(cG,{item:e,dynamicMarketing:l})},e.sys.id))})]},u):null}let p9={LayoutBanner:e=>{let{item:t}=e;return(0,rU.jsx)(aG,{banner:t})},ScreenShotsVideos:function(e){var t,n,r,l,i,o;let{item:a}=e,{t:s}=(0,tF.Bd)(),{0:c,1:u}=(0,tB.useState)(),d=(0,tB.useCallback)(()=>u(void 0),[]),m=(0,nP.a)(),{0:p,1:h}=(0,tB.useState)(void 0),g=(0,dg.ul)(dg.uO,2),f=(0,tB.useCallback)(e=>{let{index:t}=e.currentTarget.dataset;t&&(e.currentTarget.focus(),u(Number.parseInt(t,10)))},[]),v=(0,tB.useMemo)(()=>({[tX.w6]:"40%",[tX.yc]:"26%",[tX.Eb]:"24%",[tX.cJ]:"22%",[tX.u8]:"16%",[tX.Km]:"12%",[tX.sF]:"10%",[tX.Tw]:"10%"}),[]),b=(0,tG.U)(null==(t=a.playListCollection)?void 0:t.items).map(e=>d7(d7({},e),{},{key:(0,rN.i7)(e)})),x=(m?me.standard:a.layoutStyle||me.standard)===me.mosaic,y=a.layoutStyle===me.single,w=x?8:g,j="center"===a.textAlignment,O="media-".concat(null==(n=a.sys)?void 0:n.id);return(0,tB.useEffect)(()=>{let e=(0,rw.n)(250,()=>{let e=Object.keys(v);for(let t=0;t<e.length;t+=1)if(window.innerWidth<=Number.parseInt(e[t],10)){h(v[Number.parseInt(e[t],10)]);break}(window.innerWidth>tX.Tw||x)&&h(void 0)});return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),(0,t5.FD)(ow,{slug:(0,im.B)(a.id||(null==(r=a.header)?void 0:r.text)),title:null==(l=a.header)?void 0:l.text,headerStyle:{textAlign:j?"center":"unset"},"data-testid":t0.a,children:[(0,t5.Y)("div",{className:(0,rZ.A)("mb-6 -mt-4 type-body-s",{"text-center":j}),children:(0,t5.Y)(oP.s,{document:null==(i=a.preText)?void 0:i.json})}),y&&b.length>0?(0,t5.Y)(d8,{media:b[0],center:j}):(0,t5.FD)(t5.FK,{children:[(0,t5.Y)(dV,{css:i4.a9,id:O,peekSize:p,"aria-label":null==(o=a.header)?void 0:o.text,carouselControls:(0,t5.Y)(dX,{carouselId:O}),carouselDots:(0,t5.Y)(rV,{}),layoutStyle:x?me.mosaic:me.carousel,children:b.map((e,t)=>(0,t5.Y)(d6,{"aria-label":e.title,item:e,idx:t,visibleItems:w,imagePerRow:x?0===t?2:w/2:w,onItemClick:f},(0,rN.i7)(e)))}),void 0!==c&&(0,t5.Y)(uu.H,{css:mt,media:b,initialSelectedItem:c,requestClose:d,labelClose:s("Close"),nextLabel:s("next"),backLabel:s("Back"),carouselDots:(0,t5.Y)(rV,{})})]})]})},SupportedLanguages:function(e){let{item:t}=e,{t:n}=(0,tF.Bd)(),{header:r,supportedLanguageTable:l}=t,i=(0,tB.useMemo)(()=>(l||[]).map(e=>p$(p$({},e),{},{language:n("".concat(e.language).trim())})),[n,l]);return i.length>0?(0,rU.jsx)(ow,{slug:(0,im.B)(t.id||(null==r?void 0:r.text)),title:null==r?void 0:r.text,"data-testid":t0.hr,children:(0,rU.jsx)(pq,{labelInterface:n("interface"),labelAudio:n("full-audio"),labelSubtitles:n("subtitles"),labelViewAll:n("view-all-supported-languages",{length:i.length}),languages:i,labelSupported:n("supported"),labelUnsupported:n("unsupported")})}):null},ProductDetailPageKeyFeatureContainer:function(e){var t,n,r,l,i;let{item:o}=e,{t:a}=(0,tF.Bd)(),s=(0,ry.Y)(),c=(0,tz.useRouter)(),{searchParams:u}=(0,uo.l)(),d=null==(t=o.header)?void 0:t.text,m=(0,ua.f)();if(o.internalName&&o.internalName.indexOf("__COUPON__ONLY__")>-1&&(null==m||null==(n=m.promotion)?void 0:n.reason)!==rg.$J.Coupon)return null;let p="PW_CUST_NO_CAROUSEL"===o.layoutStyle&&(null==(r=o.keyfeaturesCollection)||null==(r=r.items)||null==(r=r[0])?void 0:r.verticalTextAlignment)!=="Bottom",h="PW_CUST_NO_CAROUSEL"===o.layoutStyle&&(null==(l=o.keyfeaturesCollection)||null==(l=l.items)||null==(l=l[0])?void 0:l.verticalTextAlignment)==="Bottom",g=e=>{let{link:t}=e.currentTarget.dataset;t&&(t.startsWith("http")?(0,o3.n2)(t):c.push({pathname:t,query:u}))};return(0,t5.Y)(ow,{slug:(0,im.B)(o.id||d),title:d,hideHeader:!o.showHeader,css:ux,"data-testid":t0.js,children:(0,t5.Y)(il,{css:[p&&uy,h&&uw],layoutStyle:o.layoutStyle,preTextContent:o.preTextContent,postTextContent:o.postTextContent,items:(0,tG.U)(null==(i=o.keyfeaturesCollection)?void 0:i.items).map(e=>{var t;let n,{sys:r,articleCollection:l,__typename:i}=e,o=(0,tK.A)(e,uf);return ub(ub({},o),{},{button:o.button?(n=o.button,(0,t5.Y)(ug,ub({},n))):void 0,key:(0,rN.i7)({sys:r}),articles:(0,tG.U)(null==l?void 0:l.items).map(e=>e.slug||""),buttonCopy:null==(t=o.buttonCopy)?void 0:t.text,onButtonClick:g})}),labelRetry:a("try-again"),labelShowMore:a("show-more"),labelShowLess:a("show-less"),labelError:a("fetching-data-error",{errorSource:a("articles")}),labelClose:a("Close"),entryTags:uc.c,maxWidth:rA.M,locale:s,getArticles:e=>(0,us.q)(e,s)})})},FaqContainer:o5,PdpLayoutNewsArticles:function(e){var t,n,r,l,i,o,a,s,c,u,d,m;let{item:p}=e,{t:h}
1=(0,tF.Bd)(),g=(0,ry.Y)(),f=(0,tz.useRouter)(),{0:v,1:b}=(0,tB.useState)(""),{0:x,1:y}=(0,tB.useState)(!1),w="news-".concat(null==(t=p.sys)?void 0:t.id),{searchParams:j}=(0,uo.l)(),{preText:O,postText:k,bg:A}=p,C=(0,tB.useMemo)(()=>(0,rN.VG)(A),[A]),P=C?"url('".concat(C,"')"):"",S=null==(n=p.header)?void 0:n.text,N=p.headerH1&&S,{data:_,isError:D,isFetching:I,refetch:E}=(0,mn.useQuery)(["articleId",v],()=>(0,mo.v)(v,g),{keepPreviousData:!0,enabled:""!==v,retry:!1,refetchOnWindowFocus:!1}),T=(0,tB.useCallback)(e=>t=>{t.stopPropagation(),t.preventDefault(),e.showInFullPage&&e.slug?f.push({pathname:"/".concat((0,rD.Og)(e.slug,"news")).concat(e.slug),query:mB({},j)},void 0,{shallow:!1}):(t.currentTarget.focus(),y(!0),b(e.slug||""))},[j,f]),L=(0,tG.U)(null==(r=p.newsArticlesCollection)?void 0:r.items),H=Math.ceil((null!=(l=null==(i=p.newsArticlesCollection)?void 0:i.total)?l:0)/rg.K7),Y="Light"===p.paginationStyle,R=(0,tB.useMemo)(()=>{var e,t;return e=p.layoutStyle,t=["CAROUSEL","GRID","DETAIL"],e&&t.includes(e)?e:t[0]},[p.layoutStyle]),M=null!=(o=p.externalLink)&&null!=(o=o.label)&&o.json?(0,t5.Y)(oP.s,{entryTags:uc.c,document:null==(a=p.externalLink)||null==(a=a.label)?void 0:a.json,links:null==(s=p.externalLink)||null==(s=s.label)?void 0:s.links}):null,B=function(){let{0:e,1:t}=(0,tB.useState)(void 0);return(0,tB.useEffect)(()=>{let e=window.matchMedia("(max-width: ".concat(tX.Eb,"px)"));function n(){t(e.matches?"3rem":void 0)}return n(),e.addEventListener&&e.addEventListener("change",n),e.addListener&&e.addListener(n),()=>{e.removeEventListener&&e.removeEventListener("change",n),e.removeListener&&e.removeListener(n)}},[]),e}();return(0,t5.FD)(ow,{slug:(0,im.B)(p.id||(null==(c=p.header)?void 0:c.text)),title:N?(0,t5.Y)("h1",{children:N}):S,headerStyle:mF,"data-testid":t0.uB,style:P?{backgroundImage:P}:void 0,css:A&&i4.WE,link:(null==(u=p.externalLink)?void 0:u.url)&&(p.externalLink.url.startsWith("http")?(0,t5.FD)("a",mB(mB({className:"flex items-center type-body-s uppercase type-link hover:type-link-hover ms-auto",href:p.externalLink.url},(null==(d=p.externalLink)?void 0:d.openInNewTab)&&{target:"_blank",rel:"noreferrer noopener"}),{},{children:[M||h("See all"),(0,t5.Y)(ml,{className:"w-4 h-4 ms-1 [margin-block-end:0.125rem]"})]})):(0,t5.Y)(iY(),{prefetch:!1,href:p.externalLink.url,legacyBehavior:!0,children:(0,t5.Y)("button",{type:"button",className:"flex items-center type-body-s uppercase type-link hover:type-link-hover ms-auto",children:M||h("See all")})})),children:[(0,t5.Y)("div",{className:"mb-6 -mt-4 type-body-s",children:(0,t5.Y)(oP.s,{document:null==O?void 0:O.json})}),"DETAIL"===R?(0,t5.Y)("div",{children:L.map(e=>(0,t5.Y)(ma.U,{article:e},(0,rN.i7)(e)))}):(0,t5.Y)(dV,{css:"CAROUSEL"===R&&i4.a9,"aria-label":p.title,id:w,carouselControls:(0,t5.Y)(dX,{carouselId:w}),carouselDots:(0,t5.Y)(rV,{}),layoutStyle:R,layoutItems:"few",minCol:1,peekSize:B,children:L.map(e=>{var t;return(0,t5.Y)(mR,{item:e,onItemClick:e.externalLink?t=>{t.stopPropagation(),t.preventDefault(),window.open(e.externalLink||"","_blank")}:T(e),tileStyle:p.tileStyle,title:(null==e?void 0:e.title)||"",backgroundUrl:null==e||null==(t=e.doubleWidthImage)?void 0:t.url,date:e.releaseDate&&(0,t5.Y)(mi.L,{date:null==e?void 0:e.releaseDate,language:g,timeZone:"UTC"}),isVideoPreview:!!(null!=e&&e.useVideoPreview)},(0,rN.i7)(e))})}),(0,t5.Y)("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,t5.Y)(oP.s,{document:null==k?void 0:k.json})}),(0,t5.Y)(md,{css:mz,isOpen:x,isErrored:D,isLoading:I,article:(null==_||null==(m=_.model)?void 0:m.article)||{},close:()=>y(!1),labelClose:h("Close"),message:h("fetching-data-error",{errorSource:h("articles")}),buttonLabel:h("try-again"),retry:E,locale:g,entryTags:uc.c}),"CAROUSEL"!==R&&1!==H&&(0,t5.Y)(mv,{lightMode:Y,pageCount:H})]})},CtaStripe:oF,DailyStreakHeader:function(e){var t,n,r,l,i,o,a;let{item:s}=e,{item:c,paletteId:u}=(0,oW.ww)(),d=c?(0,oz.Qx)(c)[0]:void 0,m=(0,oW.PG)(c,d),p=d?(0,oz.kW)(d,"quantity"):"",h=null==(t=s.backgroundImage)?void 0:t.url,g=null==(n=s.backgroundImage)?void 0:n.width,f=null==(r=s.backgroundImage)?void 0:r.height;return h&&g&&f?(0,rU.jsxs)(rU.Fragment,{children:[(0,rU.jsx)("span",{id:(0,im.B)(s.internalName),"aria-hidden":!0,
1className:"block h-0"}),(0,rU.jsx)("div",{"data-theme":u||"none",className:(0,rZ.A)("mx-auto w-full max-w-daily-streak overflow-hidden shadow-[0px_3px_3.3px_0px_#00000040]","border-b-[5px] border-solid border-transparent","lg:mt-4 landscape:mt-4",oZ().banner),children:(0,rU.jsxs)("div",{className:"relative",style:{aspectRatio:"".concat(g," / ").concat(f)},children:[(0,rU.jsx)(ia._,{src:h,alt:null!=(l=null==(i=s.backgroundImage)?void 0:i.title)?l:"",className:"block h-auto w-full object-cover"}),(0,rU.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-5 p-4 sm:gap-6",children:[(null==(o=s.title)?void 0:o.text)&&(0,rU.jsx)("h2",{className:(0,rZ.A)(oW.qW,oV().finalRewardTitle,"text-center"),children:s.title.text}),m&&(0,rU.jsxs)("div",{className:"relative w-24",children:[(0,rU.jsx)(ia._,{src:m,sizes:"96px",alt:c&&(0,rN.GT)(c)||(null==(a=s.title)?void 0:a.text)||"",className:"block h-auto w-full"}),p&&(0,rU.jsx)("div",{className:"absolute -bottom-2 right-0 translate-x-1/2",children:(0,rU.jsx)(oW.FY,{quantity:p,variant:"finalReward"})})]})]})]})})]}):null},LayoutPromoBanner:c0,LayoutCardList:function(e){var t,n,r,l,i;let{item:o}=e,a=(0,tz.useRouter)(),s=null!=(t=null==(n=o.cardsCollection)||null==(n=n.items)?void 0:n.length)?t:0,c=e=>{var t;return null==(t=o.cardsCollection)||null==(t=t.items)?void 0:t.map(t=>{var n;return(0,t5.Y)("li",{children:(0,t5.FD)(op,{scrollAnimation:null==t?void 0:t.scrollAnimation,children:[e===uE&&(0,t5.Y)(uC,uI({},t)),e===uT&&(0,t5.Y)(uS,uI({},t))]})},"card-".concat(null==t||null==(n=t.sys)?void 0:n.id))})};return(0,t5.FD)(ow,{headerStyle:{marginBottom:"0.5rem",justifyContent:"center",textAlign:"center"},title:o.title,slug:(0,im.B)(o.id||o.title),"data-theme":(null==(r=o.palette)||null==(r=r.sys)?void 0:r.id)||"none",scrollAnimation:o.scrollAnimation,children:[o.text&&(0,t5.Y)("div",{className:(0,rZ.A)("mb-6 mx-auto w-full justify-center text-center",u_().description),children:(0,t5.Y)(oP.s,{document:null==(l=o.text)?void 0:l.json})}),s>0&&o.variant===uE&&(0,t5.Y)("ul",{className:(0,rZ.A)("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:c(o.variant)}),s>0&&o.variant===uT&&(0,t5.Y)("ul",{className:(0,rZ.A)("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:c(o.variant)}),(0,t5.Y)("div",{className:"flex justify-end gap-2 sm:gap-4 mt-2 flex-col-reverse sm:flex-row",children:null==(i=o.buttonsCollection)||null==(i=i.items)?void 0:i.map(e=>(0,t5.Y)("button",{type:"button",className:"btn text-body-m mt-4 py-3 after:hover:opacity-10 after:hover:bg-white border-white",onClick:()=>{var t;return a.push(null!=(t=null==e?void 0:e.target)?t:"")},children:null==e?void 0:e.text}))})]})},LayoutCategoryStripe:oi,LayoutImageLinks:ui.m,LayoutText:function(e){var t;let{item:n}=e;return(0,rU.jsxs)("section",{"data-theme":(null==(t=n.palette)||null==(t=t.sys)?void 0:t.id)||"none",className:(0,rZ.A)("relative layout-content w-full mx-auto","max-w-[".concat(rA.M,"]")),children:[(0,rU.jsx)(ih,{id:n.id}),(0,rU.jsx)("div",{className:"type-body-s",children:(0,rU.jsx)(rJ.$,{className:(0,rZ.A)("prose-p:my-2 prose-li:type-body-s-no-color prose-p:type-body-s-no-color text-text-primary max-w-full prose prose-a:type-link-no-color hover:prose-a:type-link-hover-no-color",pR().paragraph),linkTarget:"_blank",children:n.rtfText||""})})]})},LayoutCodeRedemption:function(e){let{item:t}=e;return t?(0,rU.jsx)(uL.$,{children:(0,rU.jsx)(u8,{item:t})}):null},LayoutCodeRedemptionZynga:function(e){let{item:t}=e;return t?(0,rU.jsx)(dn,{children:(0,rU.jsx)(dh,{item:t})}):null},LayoutHero:sR,LayoutListView:cG,PunchCard:iL,NotificationSubscription:function(e){var t;let{item:n}=e,r=(null!=(t=n.displayMode)?t:"")==="addHome"?(0,rU.jsx)(m9,{item:n}):(0,rU.jsx)(aH.px,{value:n.reward,children:(0,rU.jsx)(po,{item:n})});return n.displayMode?(0,rU.jsx)(is.H,{children:(0,rU.jsx)(mq,{style:pn,children:r})}):null},LayoutOnboarding:function(e){var t,n;let{item:r}=e,{0:l,1:i}=(0,tB.useState)(!1),{getAction:o}=(0,p_.mv)(),a=o(p_.wO.checkout),s=(0,tB.useCallback)(()=>{var e,t,n;let l;i(!1),null!=r&&null!=(e=r.sys)&&e.id&&(n=null==r||null==(t=r.sys)?void 0:t.id,l=pH(),t
1U.Ar.setItem("onboarding",JSON.stringify([...l,n])))},[null==(t=r.sys)?void 0:t.id]);(0,tB.useEffect)(()=>{var e;let t=pH(),n=(null==r||null==(e=r.sys)?void 0:e.id)&&t.includes(r.sys.id);i(!a&&!n)},[]);let c=(null==(n=r.stepsCollection)||null==(n=n.items)?void 0:n.filter(e=>{var t;return!!(null!=e&&null!=(t=e.contentCollection)&&null!=(t=t.items)&&t.length)}))||[];return l&&0!==c.length?(0,rU.jsx)(pd,{onClose:s,children:(0,rU.jsx)(px,{children:c.map((e,t)=>{var n;return(0,rU.jsx)(pL,{isLastStep:t===c.length-1,step:e},null==e||null==(n=e.sys)?void 0:n.id)})})}):null},ImageContainer:function(e){var t,n,r,l,i,o,a,s,c,u;let d,{item:m}=e,{0:p,1:h}=(0,tB.useState)(!1),g=(0,nP.a)("".concat(tX.Eb,"px")),f=nN("".concat(tX.Eb,"px"),"".concat(tX.u8-1,"px"));(0,tB.useEffect)(()=>{h(!0)},[]);let v=(g?(null==m||null==(i=m.mobileImage)?void 0:i.url)||(null==m||null==(o=m.tabletImage)?void 0:o.url)||(null==(a=m.desktopImage)?void 0:a.url):f?(null==m||null==(s=m.tabletImage)?void 0:s.url)||(null==(c=m.desktopImage)?void 0:c.url):null==(u=m.desktopImage)?void 0:u.url)||"";return(0,rU.jsxs)(ow,{slug:(0,im.B)(m.title),"data-theme":(null==(t=m.palette)||null==(t=t.sys)?void 0:t.id)||"none",children:[p&&v&&!(null!=m&&m.rive)&&(0,rU.jsx)("div",{className:(0,rZ.A)("flex",{"justify-start":m.imageAlignment===un.Left,"justify-center":m.imageAlignment===un.Center,"justify-end":m.imageAlignment===un.Right}),children:(0,rU.jsx)(ia._,{src:v,alt:null!=(n=null!=(r=m.title)?r:null==(l=m.desktopImage)?void 0:l.title)?n:"",style:{width:m.width?"".concat(m.width,"px"):"",height:m.height?"".concat(m.height,"px"):""},className:(0,rZ.A)(ut().image,{"object-contain":m.imageScaleMode===ur.Contain,"object-cover":m.imageScaleMode===ur.Cover})})}),m.rive&&m.height&&(0,rU.jsx)("div",{style:{width:m.width?"".concat(m.width,"px"):"",height:m.height?"".concat(m.height,"px"):""},children:(d=m.rive,(0,rU.jsx)(ul,{rive:d}))})]})},SectionDecoratedHeader:cZ,ApkDownloadBanner:function(e){var t,n,r;let{item:l,children:i}=e,{title:o,author:a,gameIcon:s,description:c,ctaButton:u,sys:d,installingText:m}=l,{handleClick:p,renderWithLoading:h}=(0,iR.R)(3e3),g=(null==d?void 0:d.id)||"unknown";return(0,rU.jsxs)("div",{id:g,"data-theme":(null==(t=l.palette)||null==(t=t.sys)?void 0:t.id)||"none",className:(0,rZ.$)("layout",iB().main),children:[(0,rU.jsxs)("div",{className:"flex w-full gap-4 px-4",children:[s&&(0,rU.jsx)(nA.V,{className:(0,rZ.A)("[&>img]:w-[5rem]"),src:(0,rN.VG)(s),alt:(0,rN.GT)(s),transparent:!0,loading:"eager"}),(0,rU.jsxs)("div",{className:"flex flex-col gap-y-4",children:[o&&(0,rU.jsx)(re.H,{className:"text-3xl",children:o}),a&&(0,rU.jsx)(rJ.$,{className:(0,rZ.$)(iB().author),linkTarget:"_blank",children:a||""})]})]}),c&&(0,rU.jsx)("div",{className:"flex flex-col  px-4",children:(0,rU.jsx)(rJ.$,{className:(0,rZ.$)("mt-4 prose prose-headings:mb-1 max-w-full text-text-primary prose-p:my-2 prose-li:type-body-s-no-color prose-p:type-body-s-no-color prose-a:type-link-no-color hover:prose-a:type-link-hover-no-color",iB().description),linkTarget:"_blank",children:c.text||""})}),i,(u||m)&&(0,rU.jsx)("div",{className:(0,rZ.$)("flex justify-center my-6"),children:null!=u&&u.text&&null!=u&&u.target?(0,rU.jsx)("span",{"data-theme":(null==u||null==(r=u.palette)||null==(r=r.sys)?void 0:r.id)||"none",className:"w-full mx-5",children:(0,rU.jsx)(iY(),{href:u.target,target:null!=u&&u.openInNewTab?"_blank":void 0,rel:null!=u&&u.openInNewTab?"noreferrer noopener":"",className:(0,rZ.$)("btn w-full text-xl first-of-type:mt-0",iB().button),onClick:p(()=>{var e,t;
1rj.CC&&null!=(e=u.analyticsData)&&null!=(e=e.ztrack)&&e.click&&rj.CC.customCount(null==(t=u.analyticsData)||null==(t=t.ztrack)?void 0:t.click)}),children:h((0,rU.jsx)("span",{className:"inline-block",children:u.text}))})},"".concat(null==(n=u.sys)?void 0:n.id)):(0,rU.jsx)(rJ.$,{className:(0,rZ.$)("text-xl",iB().installing),linkTarget:"_blank",children:(null==m?void 0:m.text)||""})})]})},LayoutCarousel:a6,CompositePromo:function(e){var t,n,r,l,i,o,a,s,c,u;let{item:d}=e,{handleClick:m,renderWithLoading:p}=(0,iR.R)(),{containerRef:h,contentRef:g,scale:f}=oa();return"v2"===d.variantType?(0,rU.jsx)(oC,{item:d}):(0,rU.jsx)(ow,{slug:(0,im.B)(null==(t=d.sys)?void 0:t.id),"data-theme":(null==(n=d.palette)||null==(n=n.sys)?void 0:n.id)||"none","data-testid":t0.j1,fullScreen:d.showFullWidth,children:(0,rU.jsxs)("div",{dir:"ltr",className:(0,rZ.A)("relative z-0 flex flex-row gap-4  py-6 px-4 xs:px-8 lg:px-16 xl:px-20 bg-game-primary max-w-layout w-full h-96 overflow-hidden",d.showFullWidth?"rounded-none":"rounded-lg",oO().main),children:[(null==(r=d.backgroundImage)?void 0:r.url)&&(0,rU.jsx)(rG.V,{src:d.backgroundImage.url}),(0,rU.jsxs)("div",{className:"flex flex-col xl:flex-row-reverse gap-4 flex-1 sm:flex-[2] w-full min-h-0 py-6 items-center justify-between text-center",dir:"auto",children:[(0,rU.jsx)("div",{ref:h,className:"flex min-h-0 flex-1 flex-col overflow-hidden xl:justify-center",children:(0,rU.jsxs)("div",{ref:g,className:"flex flex-col gap-2",style:{transform:f<1?"scale(".concat(f,")"):void 0,transformOrigin:"top center"},children:[(0,rU.jsx)("div",{className:(0,rZ.A)(oO().title,"font-bold w-full whitespace-pre-line lg:whitespace-normal"),children:null==(l=d.title)?void 0:l.text}),(0,rU.jsx)("div",{className:(0,rZ.A)(oO().description,"w-full whitespace-pre-line max-w-[220px] sm:max-w-none md:max-w-[500px] self-center"),children:null==(i=d.description)?void 0:i.text})]})}),(0,rU.jsx)("div",{className:"flex shrink-0 items-end w-fit self-center",children:(0,rU.jsxs)("div",{className:"relative",children:[(0,rU.jsx)(ia._,{className:"absolute -top-5 xl:top-4 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full flex-none max-w-24 lg:max-w-32 xl:max-w-none object-contain object-center",src:(null==(o=d.actionImage)?void 0:o.url)||"",alt:(null==(a=d.actionImage)?void 0:a.title)||""}),(0,rU.jsx)("button",{type:"button",className:(0,rZ.A)(oO().actionButton,"bg-game-secondary w-fit rounded-full px-4 py-1 md:py-2 z-10 relative text-[1rem] xs:text-[1.25rem] md:text-[1.5rem]"),onClick:m(()=>{var e,t;null!=(e=d.actionButton)&&e.target&&tW().push(null==(t=d.actionButton)?void 0:t.target)}),children:p(null==(s=d.actionButton)?void 0:s.text)})]})})]}),(0,rU.jsx)("div",{className:"flex min-h-0 flex-1 justify-center",children:(0,rU.jsxs)("div",{className:(0,rZ.A)(oO().primaryImage,"flex sm:flex-col relative"),children:[(0,rU.jsx)(ia._,{pictureClassName:"flex w-full",className:"w-full flex-none max-w-36 sm:max-w-48 object-contain object-center",src:(null==(c=d.primaryImage)?void 0:c.url)||"",alt:(null==(u=d.primaryImage)?void 0:u.title)||""}),(0,rU.jsx)(oA,{item:d,className:(0,rZ.A)(oO().badge,"absolute flex flex-col justify-center items-center bottom-[20%] left-[-40px] text-center leading-[1rem] rotate-[-20deg] rounded-full h-16 w-16 p-2 z-10 shadow-xfar")})]})})]})})},GridLayout:c7,TabLayout:function(e){let{item:t,dynamicMarketing:n}=e;return(0,rU.jsx)(p8,{item:t,dynamicMarketing:n})}};function p7(e){let{layout:t,dynamicMarketing:n,overrideSpacing:r}=e,l=(0,rf.IQ)(),i=(0,tB.useMemo)(()=>(0,id.xm)(t),[t]),o=(0,rU.jsx)("div",{children:t.filter(e=>null==e?void 0:e.__typename).map((e,t,i)=>{var o,a,s;let c,u="small"===l.layoutSpacing&&"sm"||"md",d=t>0?i[t-1].__typename:"",m=null!=(o=null==(a=i[t+1])?void 0:a.__typename)?o:"",p=e.__typename;if(!p)return null;if("ProductDetailPageKeyFeatureContainer"===p){let{layoutStyle:n}=e,r=n===l8.TEXT_FOCUS,l=null==e||null==(s=e.keyfeaturesCollection)||null==(s=s.items)?void 0:s[0],i=null==l?void 0:l.textAlignment;u=r&&!!(null!=l&&l.image)&&"none"||r&&"Bottom"===i&&"none"||r&&0===t&&"xs"||r&&u||e.header&&e.showHeader&&u||e.disablePadding&&"none"||"ProductDetailPageKeyFeatureContainer"===d&&"none"||"LayoutHero"===d&&"none"||0===t&&"none"||u}
10===t&&"LayoutListView"===p&&(u="xxs"),(0===t&&"CtaStripe"===p&&e.showFullWidth||0===t&&["LayoutCategoryStripe","Container"].includes(p))&&(u="none"),("LayoutBanner"===p||"LayoutHero"===p||"LayoutImageLinks"===p||"LayoutPromoBanner"===p||"InfoArticles"===p)&&(u="none"),"CtaStripe"!==p||"CtaStripe"!==d&&"CtaStripe"!==m||0===t&&e.showFullWidth||(u="xxs"),"PunchCard"===p&&(u="none"),"DailyStreakHeader"===p&&(u="none-fullscreen"),"LayoutListView"===e.__typename&&(0,cc.Nq)(e.defaultViewType)&&(u="xxs"),"SectionDecoratedHeader"===p&&(u=0===t?"xs":"xxs",c=s7(e.header)?void 0:"px-4 lg:px-8"),"LayoutCardList"===p&&"account"===e.variant&&(u="none"),"GridLayout"===p&&(u="none"),"TabLayout"===p&&(u="none"),"SectionDecoratedHeader"===m&&"SectionDecoratedHeader"!==p&&"none"!==u&&"none-fullscreen"!==u&&(u="sm"),"SectionDecoratedHeader"===d&&(u="xxs"),r&&(u=r);let h=p9[p];return h&&(0,rU.jsx)("div",{"data-testid":"".concat(p,"-").concat(u),className:(0,rZ.A)("GridLayout"===p?"contents":"overflow-x-clip","DailyStreakHeader"===p&&"portrait-sm:sticky portrait-sm:top-[64px] portrait-sm:z-banner","none-fullscreen"!==u&&"empty:hidden last-of-type:mb-16","xxs"===u&&"my-4","xs"===u&&"my-8 lg:my-8","sm"===u&&"my-12 lg:my-16","md"===u&&"my-16 lg:my-24",c),children:(0,rU.jsx)(h,{item:e,dynamicMarketing:n})},(0,rN.i7)(e))})});return(0,rU.jsx)(id.OT.Provider,{value:i,children:o})}let he=e=>{let t=(0,tG.U)(e);return Array.isArray(e)&&e.length>0?t:null};var ht=n(27729);function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hl(e){var t;let n,r,{upsells:l}=e,{0:i,1:o}=(0,tB.useState)({}),{0:a,1:s}=(0,tB.useState)(0),{filteredUpsells:c,seenUpsellList:u}=(t=rg.kE.onAuthentication,n=(0,rx.YY)(),r=(0,tB.useMemo)(()=>(0,tG.U)((()=>{try{let e=(0,iu.UM)(iu.Re.upsell),t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}})()),[]),{filteredUpsells:(0,tB.useMemo)(()=>t===rg.kE.onAuthentication?l.filter(e=>{var t,l,i,o;let a=(null==r?void 0:r.indexOf((null==e||null==(t=e.sys)?void 0:t.id)||""))===-1&&(null==e?void 0:e.showModal)===rg.kE.onAuthentication,s=null==e||null==(l=e.buttonsCollection)||null==(l=l.items)||null==(l=l[0])?void 0:l.targetReference,c=(null==s?void 0:s.__typename)==="LayoutListView"?he(null==s||null==(i=s.itemsCollection)?void 0:i.items):null,u=he(null==e||null==(o=e.itemsCollection)?void 0:o.items)||c||[],d=u.length>0&&(null==u?void 0:u.every(e=>{var t,r,l,i;return n&&(!(null!=(t=n[(null==e||null==(r=e.sys)?void 0:r.id)||""])&&t[0])||(null==(l=n[(null==e||null==(i=e.sys)?void 0:i.id)||""])||null==(l=l[0])?void 0:l.purchaseState)===tV.h1.owned)}));return a&&!d&&e}):[],[n,l,r,t]),seenUpsellList:r});return((0,tB.useEffect)(()=>{let e;c.length>0&&o((e=!1,c.reduce((t,n)=>{var r,l;return t[(null==n||null==(r=n.sys)?void 0:r.id)||""]=(t=>{if(!e){let n=-1===u.indexOf(t);return n&&(e=!0),n}return!1})((null==n||null==(l=n.sys)?void 0:l.id)||""),t},{})))},[u,c]),0===Object.keys(i).length)?null:(0,rU.jsx)(rU.Fragment,{children:c.map((e,t)=>{var n,r,l,d,m,p,h,g;let f=(null==e||null==(n=e.buttonsCollection)?void 0:n.items)||[],v=null==(r=(0,tG.U)(f))||null==(r=r[0])?void 0:r.targetReference,b=(null==v?void 0:v.__typename)==="LayoutListView"?null==v?void 0:v.slug:null,x=n=>{var r,l,d,m,p;n||(c.length>t+1?o(hr(hr({},i),{},{[null==e||null==(l=e.sys)?void 0:l.id]:!1,[null==(d=c[t+1])||null==(d=d.sys)?void 0:d.id]:!0})):o(hr(hr({},i),{},{[null==e||null==(m=e.sys)?void 0:m.id]:!1}))),u.push((null==(p=c[a])||null==(p=p.sys)?void 0:p.id)||""),document.cookie=(0,iu.bt)(iu.Re.upsell,JSON.stringify(u),void 0,!0),s(e=>e+1),null==(r=document.getElementById(b||""))||r.scrollIntoView()};return(0,rU.jsx)(ht.lG,{onOpenChange:x,open:i[(null==e||null==(d=e.sys)?void 0:d.id)||""],children:(0,rU.jsx)(u1.
1C,{onClickClose:x,children:(0,rU.jsxs)("div",{"data-theme":(null==(m=e.palette)||null==(m=m.sys)?void 0:m.id)||"none",className:(0,rZ.A)(u5().main),children:[(null==e?void 0:e.image)&&(null==e?void 0:e.imagePosition)===rg.EQ.Top&&(0,rU.jsxs)("div",{className:"relative w-full h-fit",children:[(0,rU.jsx)(ia._,{sizes:"100vw",className:"w-full md:object-cover object-contain",src:(0,rN.VG)(null==e?void 0:e.image),alt:(0,rN.GT)(null==e?void 0:e.image)}),(0,rU.jsx)("div",{className:"bg-[linear-gradient(247.2deg,rgba(var(--color-black-rgb),0.5)0%,rgba(var(--color-black-rgb),0.5)5.61%,rgba(var(--color-black-rgb),0)10.6%)] bg-no-repeat bg-top bg-[size:100%auto] md:bg-cover w-full md:pt-[40%] pt-[55%] absolute top-0"})]}),(0,rU.jsxs)("div",{className:(0,rZ.A)("flex flex-col lg:px-10 lg:py-10 px-6 py-6 items-center h-full w-full text-center",(null==e?void 0:e.imagePosition)===rg.EQ.Top&&"flex-grow-[1]",(null==e?void 0:e.imagePosition)===rg.EQ.Feature&&"h-fit"),children:[(null==e?void 0:e.image)&&(null==e?void 0:e.imagePosition)!==rg.EQ.Top&&(0,rU.jsx)(ia._,{sizes:"35vw",className:"h-fit w-full mb-8",src:(null==e||null==(p=e.image)?void 0:p.url)||"",alt:(null==(h=e.image)?void 0:h.title)||""}),(0,rU.jsxs)("div",{className:"flex flex-col items-center",children:[(0,rU.jsx)("h1",{className:(0,rZ.A)(u5().title,"type-headline-l mb-3.5"),children:null==e||null==(g=e.header)?void 0:g.text}),(0,rU.jsx)("p",{className:(0,rZ.A)("type-body-l pb-8",(null==e?void 0:e.imagePosition)===rg.EQ.Top&&"w-full h-auto flex justify-center"),children:null==e?void 0:e.copy})]}),f.length>0&&(0,tG.U)(f).map(e=>(0,rU.jsx)("button",{type:"button",className:(0,rZ.A)(u5().button,"[&:focus]:outline-0 btn min-h-0 text-button-m min-w-0 w-full"),onClick:()=>x(!1),children:e.text}))]})]})})},null==e||null==(l=e.sys)?void 0:l.id)})})}let hi=["disabled","id"];function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let hs=(0,tQ.AH)(tv||(tv=(0,t$.A)(["\n  --color-button-bg: var(--color-game-primary);\n  --color-button-text: var(--color-game-primary-text);\n"]))),hc=e=>{let{preorderDate:t,releaseDate:n}=e;return!!t&&!!n&&(0,ik.ut)(t)&&(0,ik.Sr)(n)};function hu(e){let{disabled:t,id:n}=e,r=(0,tK.A)(e,hi),{track:l}=(0,tZ.s)(),i=(0,rf.IQ)(),o=(0,tB.use)(ig.g),a=(0,ua.f)(),{user:s}=(0,rk.J)(),c=(0,nP.a)("".concat(tX.u8,"px")),u=(0,tB.useMemo)(()=>{var e;return!!a&&function(e){let{sku:t,currentDate:n}=e,{releaseDate:r=0,preorderDate:l=0}=t;return!!(!(l>0&&n<l)&&(0===r&&0===l||l>0&&n>=l||r>0&&n>=r))}({sku:a,currentDate:(0,ik.gZ)()})&&((null==a?void 0:a.xsollaProjectId)||(null==a?void 0:a.externalSiteLink))&&!(null!=a&&a.isPhysical&&!hc(a)&&(null!=(e=a.stockAvailable)?e:-1)<=0&&null!=a&&a.xsollaProjectId&&null!=a&&a.itemSkuId)},[a]);return(0,t5.Y)(r0.$,ha(ha({},r),{},{disabled:void 0===t?!u:t,css:hs,onClick:()=>{a&&hc(a)?(0,r_.Db)(r_.HS.ctaPreorder,{skuId:(null==a?void 0:a.itemSkuId)||(null==a?void 0:a.skuId),userId:null==s?void 0:s.userId,displayType:c?"mobile":"desktop",text:"pre-purchase",elementPlacement:"subnav"}):l("click",{action:"purchase_button",metadata:{applicationId:i.applicationId,skuId:(null==a?void 0:a.itemSkuId)||(null==a?void 0:a.skuId),itemId:null==a?void 0:a.itemId,itemTitle:null==a?void 0:a.itemTitle}}),o()},"data-testid":t0.GY},n&&{id:n}))}var hd=((u=hd||{}).COMING_SOON="COMING_SOON",u.BUY="BUY",u.PRE_ORDER="PRE_ORDER",u.PRE_ORDER_PRICE="PRE_ORDER_PRICE",u.PRE_ORDER_COMING_SOON="PRE_ORDER_COMING_SOON",u.PRICE="PRICE",u);let hm=["children"];function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?hp(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let hg=(0,tQ.AH)(tb||(tb=(0,t$.A)(["\n  ","\n  line-height: 150%;\n  text-shadow: none;\n"])),{display:"inline-block",borderRadius:"0.25rem",backgroundColor:"var(--color-success)",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",color:"rgba(var(--text-color-primary-rgb), 0.8)",fontWeight:"600",fontSize:"0.75rem",lineHeight:"125%",textTransform:"uppercase",letterSpacing:"0.05rem"});function hf(e){let{children:t}=e,n=(0,tK.A)(e,hm);return(0,t5.Y)("span",hh(hh({},n),{},{css:hg,"data-testid":t0.uD,children:t}))}let hv=["price","discountedPrice","discountLabel","discountTagStyle"];function hb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hb(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let hy=(0,tQ.AH)(tx||(tx=(0,t$.A)(["\n  ","\n  color: inherit;\n"])),{position:"relative",display:"flex",alignItems:"center",fontWeight:"bold",fontSize:"1rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"}),hw={marginTop:"0.5rem",marginBottom:"0.5rem"};function hj(e){let t,{price:n,discountedPrice:r,discountLabel:l,discountTagStyle:i}=e,o=(0,tK.A)(e,hv);return(0,t5.FD)("div",hx(hx({css:hy,"data-testid":t0.Lf},o),{},{children:[r?(0,t5.FD)("span",{"data-testid":t0.BA,children:[r," ",(0,t5.Y)("s",{css:(t=!!l,(0,tQ.AH)(ty||(ty=(0,t$.A)(["\n  ",";\n  ",";\n  color: inherit;\n  opacity: 0.6;\n"])),{textDecorationLine:"line-through",fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"},t?{marginRight:"1rem"}:null)),children:n})]}):n,l&&(0,t5.Y)(hf,{css:[hw,i],children:l})]}))}var hO=n(14397);function hk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hk(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let hC=(0,tQ.AH)(tw||(tw=(0,t$.A)(["\n  ","\n\n  s {\n    opacity: 0.6;\n  }\n"])),{display:"inline-block",justifyContent:"center",color:"rgba(var(--text-color-primary-rgb), 0.8)",fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",textTransform:"none",letterSpacing:"normal"}),hP=(0,tQ.AH)(tj||(tj=(0,t$.A)(["\n  --text-color-primary-rgb: var(--color-game-primary-text);\n\n  ",";\n\n  > div {\n    ",";\n    margin-inline-start: 1rem;\n  }\n"])),{whiteSpace:"normal"},{fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"}),hS=(0,tQ.AH)(tO||(tO=(0,t$.A)(["\n  ","\n  margin-inline-start: 0.5rem;\n\n  /* In case of single drm and external icon, we set the first one to be 32x32 and second to be 16x16 but \n  *  the usecase where its only external icon we need it to be 16x16 forced.   \n  */\n  width: 1rem !important;\n  height: 1rem !important;\n"])),{display:"inline-block"}),hN={whiteSpace:"normal"};function h_(e){var t;let{labelOverride:n,showBuyPriceLabel:r,isExternalLink:l}=e,i=(0,ua.f)(),{price:o,displayPrice:a,discountedPrice:s}=(0,hO.XB)(),{t:c}=(0,tF.Bd)(),u=hA(hA({},i),{},{price:o});if(!i)return(0,t5.Y)(t5.FK,{children:c("coming-soon")});let d=(null==i||null==(t=i.promotion)?void 0:t.reason)===rg.$J.ClaimGiftOnce,m=r?tF.x6:tB.Fragment;switch(d?"FREE_GIFT":(e=>{let{sku:t,currentDate:n}=e,{preorderDate:r=0,releaseDate:l=0,price:i}=t,o=r>0&&n<r,a=r>0&&n>=r,s=o||0===r&&l>0&&n<l&&!a,c=o||a&&!(l>0&&n>=l),u=i>0&&!s;return c&&s?hd.PRE_ORDER_COMING_SOON:c&&u?hd.PRE_ORDER_PRICE:c?hd.PRE_ORDER:s?hd.COMING_SOON:u?hd.PRICE:hd.BUY})({sku:u,currentDate:(0,ik.gZ)()})){case"BUY":return(0,t5.FD)(t5.FK,{children:[n||c("Buy"),l&&(0,t5.Y)(sd.A,{css:hS})]});case"COMING_SOON":default:return(0,t5.Y)(t5.FK,{children:c("coming-soon")});case"PRE_ORDER":return(0,t5.Y)(t5.FK,{children:c("Preorder")});case"PRE_ORDER_PRICE":{let e=i.directFulfillment?"pre-purchase-price":"pre-order-price";return(0,t5.Y)("span",{css:hP,children:(0,t5.Y)(tF.x6,{i18nKey:e,children:(0,t5.Y)(hj,{css:hC,price:a,discountedPrice:s})})})}case"PRE_ORDER_COMING_SOON":{let e=i.directFulfillment?"pre-purchase-coming-soon":"Pre-order Coming Soon";
1return(0,t5.Y)("span",{css:hN,children:c(e)})}case"PRICE":return(0,t5.Y)("span",{css:r&&hP,children:(0,t5.Y)(m,hA(hA({},r&&{i18nKey:"buy-now-price",values:{price:a}}),{},{children:(0,t5.Y)(hj,{css:hC,price:a,discountedPrice:s})}))});case"FREE_GIFT":return(0,t5.FD)("span",{css:r&&hP,children:[c("claim-gift"),(0,t5.Y)(hj,{css:hC,price:c("free")})]})}}function hD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hD(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let hE=(0,tQ.AH)(tk||(tk=(0,t$.A)(["\n  ",";\n  z-index: 99;\n  max-height: calc(100vh - 3rem);\n"])),{display:"flex",width:"83.333333%",flexDirection:"column",overflowY:"auto"}),hT=(0,tQ.AH)(tA||(tA=(0,t$.A)(["\n  height: fit-content;\n"]))),hL={display:"flex",flexDirection:"column",alignItems:"center"},hH=(0,tQ.AH)(tC||(tC=(0,t$.A)(["\n  ","\n\n  button {\n    @media (max-width: ","px) {\n      ","\n    }\n  }\n"])),{display:"flex",height:"100%",width:"100%",flexDirection:"column",alignItems:"center",justifyContent:"space-between",paddingLeft:"2rem",paddingRight:"2rem",paddingTop:"2rem",paddingBottom:"2rem",textAlign:"center","@media (min-width: 1024px)":{paddingLeft:"3.5rem",paddingRight:"3.5rem",paddingTop:"3.5rem",paddingBottom:"3.5rem"}},tX.Eb,{width:"100%"}),hY=(0,tQ.AH)(tP||(tP=(0,t$.A)(["\n  height: fit-content;\n"]))),hR=(0,tQ.AH)(tS||(tS=(0,t$.A)(["\n  flex-grow: 1;\n"]))),hM=(0,tQ.AH)(tN||(tN=(0,t$.A)(["\n  ",";\n  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n"])),{marginBottom:"0.875rem",fontWeight:"600",fontFamily:"var(--font-secondary)",fontSize:"1.5rem",lineHeight:"125%",color:"rgba(var(--text-color-primary-rgb), 1.0)",textTransform:"none",letterSpacing:"normal"}),hB={paddingBottom:"2rem",fontWeight:"normal",fontSize:"1.125rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"},hF=(0,tQ.AH)(t_||(t_=(0,t$.A)(["\n  ",";\n"])),{display:"flex",height:"auto",width:"100%",justifyContent:"center"}),hz=(0,tQ.AH)(tD||(tD=(0,t$.A)(["\n  background-repeat: no-repeat;\n  ",";\n"])),{backgroundPosition:"center"}),hW={marginBottom:"2rem",width:"66.666667%",backgroundSize:"contain",paddingTop:"40%"};function hU(e){var t,n;let r,l,i,o,{upsellsList:a}=e,{t:s}=(0,tF.Bd)(),{upsells:c,skus:u,isFetching:d,seenUpsellCookiesList:m}=(r=(0,ry.Y)(),l=(0,tB.useMemo)(()=>(0,tG.U)((e=>{let t=(0,iu.UM)(iu.Re.upsell);if(e&&e.length>0&&t){let n=JSON.parse(t);return e.reduce((e,t)=>(-1===n.indexOf(t)&&e.push(t),e),[])}return e})(a)),[a]),i=(0,tB.useMemo)(()=>{let e;
1return(0,tG.U)((e=(0,iu.UM)(iu.Re.upsell))?JSON.parse(e).reduce((e,t)=>((null==a?void 0:a.indexOf(t))!==-1&&e.push(t),e),[]):[])},[a]),o=(0,mn.useQuery)(["upsell",r],async()=>{let e=await fetch("/api/getupsell");return await e.json()},{enabled:(null==l?void 0:l.length)>0,cacheTime:1/0,staleTime:1/0,retry:!1,refetchOnWindowFocus:!1}),{upsells:(0,tB.useMemo)(()=>{var e,t,n;return null!=(e=o.data)&&e.upsells&&(null==(t=o.data)||null==(t=t.upsells)?void 0:t.length)>0?null==(n=o.data)?void 0:n.upsells.reduce((e,t)=>{var n;return -1!==l.indexOf(null==t||null==(n=t.sys)?void 0:n.id)&&(null==t?void 0:t.showModal)===rg.kE.onFirstPageLoad&&(null==e||e.push(t)),e},[]):[]},[l,null==(t=o.data)?void 0:t.upsells]),skus:null==(n=o.data)?void 0:n.skus,isFetching:o.isFetching,seenUpsellCookiesList:i}),{0:p,1:h}=(0,tB.useState)({}),{0:g,1:f}=(0,tB.useState)(0),v=(0,tB.useCallback)(()=>{if(c&&c.length>0){var e;m.push(null==(e=c[g])||null==(e=e.sys)?void 0:e.id)}document.cookie=(0,iu.bt)(iu.Re.upsell,JSON.stringify(m),void 0,!0)},[c,g,m]);(0,tB.useEffect)(()=>{!d&&c&&c.length>0&&h(c.reduce((e,t,n)=>{var r,l;return 0===n?e[null==t||null==(l=t.sys)?void 0:l.id]=!0:e[null==t||null==(r=t.sys)?void 0:r.id]=!1,e},{}))},[d,c]),(0,tB.useEffect)(()=>{let e=e=>{if(e.data&&"string"==typeof e.data&&e.data.startsWith("{")){let l=JSON.parse(e.data);if((null==l?void 0:l.command)==="create-invoice"&&c&&c.length>0){var t,n,r;c.length>g+1?h(hI(hI({},p),{},{[null==(t=c[g])||null==(t=t.sys)?void 0:t.id]:!1,[null==(n=c[g+1])||null==(n=n.sys)?void 0:n.id]:!0})):h(hI(hI({},p),{},{[null==(r=c[g])||null==(r=r.sys)?void 0:r.id]:!1})),v(),f(e=>e+1)}}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}});let b=(0,tB.useMemo)(()=>c&&c.length>0?c.map((e,t)=>{var n,r,l,i,o,a,d;let m;return(0,t5.FD)(li.Y,{centered:!0,style:{overlay:{zIndex:99}},css:[hE,(null==e?void 0:e.imagePosition)!==rg.EQ.Top&&hT],requestClose:()=>{var n,r,l;c.length>g+1?h(hI(hI({},p),{},{[null==e||null==(n=e.sys)?void 0:n.id]:!1,[null==(r=c[t+1])||null==(r=r.sys)?void 0:r.id]:!0})):h(hI(hI({},p),{},{[null==e||null==(l=e.sys)?void 0:l.id]:!1})),v(),f(e=>e+1)},labelClose:s("Close"),isOpen:p[null==e||null==(r=e.sys)?void 0:r.id],children:[(null==e?void 0:e.image)&&(null==e?void 0:e.imagePosition)===rg.EQ.Top&&(0,t5.Y)("div",{css:[hz,(m=null==e||null==(l=e.image)?void 0:l.url,(0,tQ.AH)(tI||(tI=(0,t$.A)(["\n  background:\n    linear-gradient(\n      247.2deg,\n      rgba(var(--color-black-rgb), 0.5) 0%,\n      rgba(var(--color-black-rgb), 0.5) 5.61%,\n      rgba(var(--color-black-rgb), 0) 10.6%\n    ),\n    url(",");\n  ",";\n"])),m,{width:"100%",backgroundSize:"cover",paddingTop:"80%","@media (min-width: 768px)":{paddingTop:"40%"}}))]}),(0,t5.FD)("div",{css:[hH,(null==e?void 0:e.imagePosition)===rg.EQ.Top?hR:hY],children:[(0,t5.FD)("div",{css:hL,children:[(0,t5.Y)("h1",{css:hM,children:null==e||null==(i=e.header)?void 0:i.text}),(0,t5.Y)("p",{css:[hB,(null==e?void 0:e.imagePosition)===rg.EQ.Top&&hF],children:null==e?void 0:e.copy})]}),(null==e?void 0:e.image)&&(null==e?void 0:e.imagePosition)!==rg.EQ.Top&&(0,t5.Y)("div",{style:{backgroundImage:"url(".concat(null==e||null==(o=e.image)?void 0:o.url,")")},css:[hz,hW]}),(0,t5.Y)(rx.cA,{value:u,children:(null==e||null==(a=e.itemsCollection)?void 0:a.items)&&(0,t5.Y)(aH.px,{value:null==e||null==(d=e.itemsCollection)?void 0:d.items[0],children:(0,t5.Y)(is.H,{children:(0,t5.Y)(hu,{id:"upsell-purchase-button",children:(0,t5.Y)(h_,{showBuyPriceLabel:!0})})})})})]})]},null==e||null==(n=e.sys)?void 0:n.id)}):null,[g,s,v,c,p,u]);return(0,t5.Y)("div",{children:b})}var hV=n(86469),hG=n.n(hV),hZ=n(20009);function hJ(e){let{position:t,sysId:n,creativeId:r,slug:l}=e;return(0,tB.useEffect)(()=>{(0,r_.j_)(t,n,r,l)},[r,t,l,n]),null}let hq=["linkType","slug","externalLink","children"];function hK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?hK(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hQ(e){let{linkType:t,slug:n,externalLink:r,children:l}=e,i=(0,tK.A)(e,hq),o="StorePage"===t&&i3.e||null;return o?(0,rU.jsx)(o,h$(h$({},i),{},{slug:n,children:l})):"Item"===t?(0,rU.jsx)("div",h$(h$({},i),{},{children:l})):(0,rU.jsx)("a",h$(h$(h$({},(null==r?void 0:r.openInNewTab)&&{target:"_blank",rel:"noreferrer noopener"}),{},{href:(null==r?void 0:r.url)||""},i),{},{children:l}))}let hX=["buttonColor","buttonTextColor"],h0=["requireAuth","url","children","style","buttonText"],h1=["slug"];function h2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h2(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let h4=(0,tQ.AH)(tE||(tE=(0,t$.A)(["\n  @media (min-width: ","px) {\n    max-width: 30rem;\n  }\n\n  @media (min-width: ","px) {\n    max-width: 32rem;\n  }\n"])),tX.yc,tX.u8),h3=e=>{let{buttonColor:t,buttonTextColor:n}=e;return(0,tQ.AH)(tT||(tT=(0,t$.A)(["\n  ","\n\n  --color-button-bg: ",";\n  --color-button-text: ",";\n\n  ","\n  width: 100%;\n  @media (min-width: ","px) {\n    width: unset;\n  }\n"])),{marginTop:"1rem"},t,n,h4,tX.u8)},h6=(0,tQ.AH)(tL||(tL=(0,t$.A)(["\n  ","\n  max-width: 24rem;\n"])),{marginTop:"2rem"}),h8=(0,tQ.AH)(tH||(tH=(0,t$.A)(["\n  ","\n\n  span {\n    ","\n  }\n\n  svg {\n    width: 1.5rem;\n    height: 1.5rem;\n    margin-inline-end: 0.75rem;\n    ","\n  }\n"])),{borderRadius:"0.25rem",backgroundColor:"var(--color-info)",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"},{fontWeight:"normal",fontSize:"0.875rem",lineHeight:"150%",color:"rgba(var(--text-color-primary-rgb), 0.8)",textTransform:"none",letterSpacing:"normal"},{color:"var(--text-color-primary)"}),h9=(0,tQ.AH)(tY||(tY=(0,t$.A)(["\n  --color-success: var(--color-secondary);\n  ","\n"])),{marginLeft:"1rem"});function h7(e){let{tagColor:t}=e,{isPromoActive:n}=(0,hO.XB)(),{t:r}=(0,tF.Bd)(),l=(0,ua.f)();return n&&(null==l?void 0:l.purchaseState)!==tV.h1.hidden&&null!=l&&l.isJustForYouOffer?(0,t5.FD)("div",{className:"flex text-xs",children:[(0,t5.Y)(nZ,{className:"mr-1 w-4 h-4",css:(0,tQ.AH)(tR||(tR=(0,t$.A)(["\n          color: ",";\n        "])),t)}),(0,t5.Y)("p",{className:"uppercase font-bold",children:r("rockstar-promo-just-for-you")})]}):null}function ge(){let{isPromoActive:e,percentageOff:t}=(0,hO.XB)(),n=(0,ua.f)();return!e||(null==n?void 0:n.purchaseState)===tV.h1.hidden||null!=n&&n.isJustForYouOffer||"number"==typeof t&&t<=0?null:(0,t5.Y)(hf,{css:h9,children:"-".concat(t,"%")})}function gt(e){let{buttonColor:t,buttonTextColor:n}=e,r=(0,tK.A)(e,hX),l=(0,ua.f)(),{t:i}=(0,tF.Bd)();return l?(0,t5.Y)(hu,h5(h5({},r),{},{css:h3({buttonColor:t,buttonTextColor:n}),id:hZ.Ey,"data-skuid":null==l?void 0:l.skuId,children:(0,t5.Y)(h_,{showBuyPriceLabel:!0})})):(0,t5.Y)("div",h5(h5({},r),{},{css:[h6,h8],children:(0,t5.Y)(n4,{icon:"IconInfo",children:i("product-not-available-in-region")})}))}function gn(e){let{children:t,className:n}=e;return(0,t5.Y)("div",{className:n,children:t})}function gr(e){let{requireAuth:t,url:n="",children:r,style:l,buttonText:i}=e,o=(0,tK.A)(e,h0),{signIn:a,isLoggedIn:s}=(0,ic.A)(),c=(0,tz.useRouter)(),u=(0,nP.a)("".concat(tX.Eb,"px")),{user:d}=(0,rk.J)();return(0,t5.Y)(r0.$,h5(h5({style:l},o),{},{onClick:()=>{(0,r_.Db)(r_.HS.ctaClick,{displayType:u?"mobile":"desktop",elementPlacement:"hero",userId:null==d?void 0:d.userId,text:i});let e=c.query,{slug:r}=e,l=(0,tK.A)(e,h1);t&&n&&(s?c.push({pathname:n,query:l}):a({[p_.wO.nav]:{pathname:n,query:l,asPath:n}}))},children:r}))}var gl=n(49104);function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?gi(Object(n),!0).forEach(function(t){(0,tM.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ga(e){var t,n,r,l,i,o,a,s;let{model:c}=e,{t:u}=(0,tF.Bd)(),{checkoutPaletteId:d,upsells:m=[],env:p={},activePaymentsConfigVariation:h}=(0,rf.IQ)(),{0:g,1:f}=(0,tB.useState)(!1),{0:v,1:b}=(0,tB.useState)(!1),{0:x,1:y}=(0,tB.useState)(!1),{0:w,1:j}=(0,tB.useState)(""),{user:O,zTrackInitialized:k}=(0,rk.J)(),{track:A}=(0,tZ.s)(),C=(0,rf.IQ)(),P=(0,ry.Y)(),S=(0,rx.YY)(),N=(0,tz.useRouter)(),_=null==c||null==(t=c.page)?void 0:t.analyticsData,D=(0,tG.U)(null==c||null==(n=c.page)||null==(n=n.dialogsCollection)?void 0:n.items).filter(e=>e.showModal===rg.kE.onAuthentication),I=(0,tB.useMemo)(()=>{var e,t;return p.hideVCHeroesWithoutSKU?((null==c||null==(e=c.page)||null==(e=e.herosCollection)?void 0:e.items)||[]).filter(e=>{var t,n,r;if((null==e||null==(t=e.link)?void 0:t.__typename)==="Item"&&null!=e&&null!=(n=e.link)&&null!=(n=n.contentType)&&n.includes(rg.C1.VirtualCurrency)){let t=null==(r=e.link.sys)?void 0:r.id;if(S&&t){let e=S[t];return!!e&&(null==e?void 0:e.filter(e=>(null==e?void 0:e.purchaseState)===tV.h1.hidden||!(null!=e&&e.visible)).length)===0}}return!0}):(null==c||null==(t=c.page)||null==(t=t.herosCollection)?void 0:t.items)||[]},[S,null==c||null==(r=c.page)||null==(r=r.herosCollection)?void 0:r.items,p.hideVCHeroesWithoutSKU]);(0,tB.useEffect)(()=>{if(tU.RY.getItem("checkout-breadcrumb")){b(!0),tU.RY.removeItem("checkout-breadcrumb");return}if(S&&!g)try{let e=(0,tG.U)((0,tG.U)(Object.values(S)).flat());(0,r_.w2)(e),f(!0)}catch(e){}if(x||(A("page_view",{path:(0,rD.Yn)(P,N.asPath||""),title:"Entered Store Page",metadata:{applicationId:C.applicationId}}),y(!0)),rj.CC&&S&&O&&!v&&k){var e,t,n;(0,rI.uT)({userSkus:S,user:O,layouts:null==c||null==(e=c.page)||null==(e=e.layoutCollection)||null==(e=e.items)?void 0:e.filter(e=>(null==e?void 0:e.__typename)==="LayoutListView")}),null!=_&&_.storeRootPage&&rj.CC.count(rj.zh.page_view,{phylum:"store",family:null==(n=window)||null==(n=n.location)?void 0:n.href,attribute:P}),null!=_&&null!=(t=_.ztrack)&&t.pageview&&rj.CC.customCount(_.ztrack.pageview),b(!0)}},[g,S,O,null==c||null==(l=c.page)||null==(l=l.layoutCollection)?void 0:l.items,v,k,A,P,x,C.applicationId,_,c,N.asPath]),(0,tB.useEffect)(()=>{if(c&&c.page){let e=c.page;window.activeVariants=go(go({},window.activeVariants),{},{pageLayout:"".concat(e.activeVariation||"None"),paymentsConfig:"".concat(h||"None")})}},[h,c]),(0,tB.useEffect)(()=>{let e=tU.RY.getItem("scrollposition");e&&(setTimeout(()=>window.scrollTo(0,+e||0),500),tU.RY.removeItem("scrollposition"))},[]);let E=null==c||null==(i=c.page)||null==(i=i.analyticsData)||null==(i=i.ztrack)?void 0:i.scroll;if(!function(e,t){var n;let r,{zTrackInitialized:l,user:i}=(0,rk.J)(),o=(0,tB.useRef)(0),a=null==i?void 0:i.segments,s=(0,tB.useMemo)(()=>(0,rw.n)(1e3,n=>{(0,rO.a)({kingdom:rj.zh.scroll,counter:e||rj.uU.zyngaStore,phylum:t||"store",family:n,genus:a&&a.length>0?a.join(","):void 0})}),[a,e,t]);n=(0,tB.useCallback)((e,t)=>{o.current+=e-t,!(Math.abs(o.current)>=200)||(o.current=0,l&&s(e-t>0?"down":"up"))},[s,l]),r=(0,tB.useRef)(window.scrollY),(0,tB.useEffect)(()=>{function e(){n(window.scrollY,r.current),r.current=window.scrollY}return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[n])}(null==E?void 0:E.counter,null==E?void 0:E.phylum),(0,tB.useEffect)(()=>{let e=window.location.hash;if(e&&j(e),w){var t;let e=(null==(t=w.split("#"))?void 0:t[1])||"",n=document.getElementById(e);n&&setTimeout(()=>{n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},500)}},[w]),c){let{page:e}=c;if(e){let{blurredBackground:t,backgroundImagesCollection:n,title:r,seoDescription:l,seoImage:i,onPageSeo:c,layoutCollection:p,slug:h,bannersCollection:g,dynamicMarketingMessages:f,overrideSpacing:v}=e,b=null==t?void 0:t.url,x=null==n?void 0:n.items,y=x&&x.length>0?null==(o=x[0])||null==(o=o.asset)?void 0:o.url:b,w=!e.rawBg,{navLayout:j,stickyBanners:k,banners:A,layouts:P}=function(e,t){let n,r,l=null==t?void 0:t.items,i=[...(null==e?void 0:e.items)||[]],o=i.findIndex(e=>(null==e?void 0:e.__typename)==="LayoutCategoryStripe"&&(null==e?void 0:e.isSticky));if(o>-1){var a,s;let[e]=i.splice(o,1);n=e,r=null==t||null==(a=t.items)?void 0:a.filter(e=>{var t;return null==e||null==(t=e.displayConditions)?void 0:t.includes("Sticky")}),l=null==t||null==(s=t.items)?void 0:s.filter(e=>{var t;return!(null!=e&&null!=(t=e.displayConditions)&&t.includes("Sticky"))})}return{navLayout:n,stickyBanners:r,banners:l,layouts:i}}(p,g);return(0,t5.Y)(tJ.Z,{children:(0,t5.FD)(rv.U,{layouts:(0,tG.U)(null==p?void 0:p.items),banners:(0,tG.U)(null==g?void 0:g.items),children:[(0,tG.U)(A).map(e=>(0,t5.Y)(aG,{banner:e},(0,rN.i7)(e))),j&&(0,t5.FD)("div",{className:"sticky z-banner top-[64px] lg:top-[80px]",children:[(0,tG.U)(k).map(e=>(0,t5.Y)(aG,{banner:e},(0,rN.i7)(e))),(0,t5.Y)(oi,{item:j})]}),(0,t5.Y)(tq.q,{children:(0,t5.FD)(u6.g,{dataTheme:(null==e||null==(a=e.palette)||null==(a=a.sys)?void 0:a.id)||"none",className:hG().main,children:[y&&(0,t5.Y)(rG.V,{pageBackgroun
1d:!0,src:y,blur:w}),(0,t5.Y)(rh,{css:rP,maxWidth:rA.M,carouselDots:(0,t5.Y)(rV,{}),nextLabel:u("next"),backLabel:u("Back"),heroItems:(0,tG.U)(I).map((e,t)=>(function(e,t,n){var r;let{background:l,backgroundColor:i,logo:o,heading:a,description:s,buttonColor:c,buttonTextColor:u,buttonText:d,link:m,backgroundMedium:p,backgroundStyle:h,bgX:g,bgY:f,bgScaleMode:v,backgroundVideo:b,sys:x,btnColors:y=[],btnBorderColors:w=[]}=t,j=m&&m.slug,[O,k=""]=(null!=(r=null==m?void 0:m.url)?r:"").split("?"),A=!!new URLSearchParams(k).get("require_auth"),C=(null==x?void 0:x.id)||"unknown",P=(0,rN.VG)(l)||"unknown",S={},N=y?y.length:0,_=w?w.length:0;return null==y||y.forEach((e,t)=>{S["--tile-btn-".concat(t)]=e||""}),null==w||w.forEach((e,t)=>{S["--tile-btn-border-".concat(t)]=e||""}),{sysid:C,index:n,linkType:null==m?void 0:m.__typename,slug:j,heroImage:(0,rN.VG)(l),heroImageMedium:(0,rN.VG)(p),layoutStyle:h,bgX:g,bgY:f,bgScaleMode:v,backgroundColor:i,description:(0,rN.GT)(l),logo:(0,rN.VG)(o),logoAlt:(0,rN.GT)(o),heading:a,text:s,heroVideo:(0,rN.VG)(b),externalLink:m&&m,onClick:function(e,t,n,r){if(r)return()=>(0,r_.j_)(e,t,n,r,!0)}(e,C,P,j),promoTag:(null==m?void 0:m.__typename)==="Item"?(0,t5.Y)(aH.px,{value:m,children:(0,t5.Y)(is.H,{children:(0,t5.Y)(ge,{})})}):null,tag:A?gn:hQ,tagStyle:[rS],promoDescription:(null==m?void 0:m.__typename)==="Item"?(0,t5.Y)(aH.px,{value:m,children:(0,t5.Y)(is.H,{children:(0,t5.Y)(h7,{tagColor:c})})}):null,children:(0,t5.FD)(t5.FK,{children:[(0,t5.Y)(hJ,{position:e,sysId:C,creativeId:P,slug:j}),(null==m?void 0:m.__typename)==="Item"?(0,t5.Y)(aH.px,{value:m,children:(0,t5.Y)(is.H,{children:(0,t5.Y)(gt,{style:S,css:[N>1&&{backgroundImage:"linear-gradient(to bottom, var(--tw-gradient-stops))"},1===N&&{backgroundColor:"var(--tile-btn-0)"},2===N&&{"--tw-gradient-from":"var(--tile-btn-0) var(--tw-gradient-from-position)","--tw-gradient-to":"var(--tile-btn-1) var(--tw-gradient-to-position)","--tw-gradient-stops":"var(--tw-gradient-from), var(--tw-gradient-to)"},1===_&&{borderWidth:"1px",borderStyle:"solid",borderColor:"var(--tile-btn-border-0)"}],buttonColor:c,buttonTextColor:u})})}):(null==d?void 0:d.text)&&(0,t5.Y)(gr,{style:S,css:[h3({buttonColor:c,buttonTextColor:u}),N>1&&{backgroundImage:"linear-gradient(to bottom, var(--tw-gradient-stops))"},1===N&&{backgroundColor:"var(--tile-btn-0)"},2===N&&{"--tw-gradient-from":"var(--tile-btn-0) var(--tw-gradient-from-position)","--tw-gradient-to":"var(--tile-btn-1) var(--tw-gradient-to-position)","--tw-gradient-stops":"var(--tw-gradient-from), var(--tw-gradient-to)"},1===_&&{borderWidth:"1px",borderStyle:"solid",borderColor:"var(--tile-btn-border-0)"}],requireAuth:A,buttonText:d.text,url:O,children:null==d?void 0:d.text})]})}})("Store Carousel",e,t))}),(0,t5.Y)(rb.r.Provider,{value:(null==e||null==(s=e.palette)||null==(s=s.sys)?void 0:s.id)||"",children:(0,t5.Y)(p7,{layout:(0,tG.U)(P),dynamicMarketing:f,overrideSpacing:v})}),(0,t5.Y)(gl.h,{pageMetaData:{title:(null==c?void 0:c.title)||r,description:(null==c?void 0:c.description)||l,organization:(null==c?void 0:c.organization)||C.organization,noIndex:!1,omitTitleSiteName:null==c?void 0:c.omitTitleSiteName},jsonLd:null==c?void 0:c.json,cardImage:i||(null==c?void 0:c.ogImage)||t,slug:h})]})}),m.length>0&&(0,t5.Y)(rb.r.Provider,{value:d||"",children:(0,t5.Y)(hU,{upsellsList:m})}),O&&D.length>0&&(0,t5.Y)(hl,{upsells:D})]})})}}return null}},75058:e=>{e.exports={main:"LayoutCarousel_main__9meI1",title:"LayoutCarousel_title__9s54b",indicators:"LayoutCarousel_indicators__8E60F",indicatorsContainer:"LayoutCarousel_indicatorsContainer__yzpEK"}},76450:e=>{e.exports={image:"imageContainer_image__3WqM6"}},80710:e=>{e.exports={main:"tabMenu_main__hBs6B",menu:"tabMenu_menu__GXzWf",tabActive:"tabMenu_tabActive__RHKKy",tabInactive:"tabMenu_tabInactive__klutl"}},81418:e=>{e.exports={main:"CompositePromo_main__Mi057",title:"CompositePromo_title__OpKrj",description:"CompositePromo_description__U0nZB",actionButton:"CompositePromo_actionButton__irM4C",badge:"CompositePromo_badge__AQqir",badgeHighlightedText:"CompositePromo_badgeHighlightedText__cLPDU",badgeText:"CompositePromo_badgeText__ayaLu"}},85522:e=>{e.exports={description:"layoutCardList_description__IAWvD"}},86469:e=>{e.exports={main:"store_main__dphdV"}}
1,87333:(e,t,n)=>{"use strict";n.d(t,{U:()=>m});var r=n(47992),l=n.n(r),i=n(83257),o=n(50237),a=n(22329),s=n(46184),c=n(12697),u=n(12896),d=n(4930);function m(e){var t,n;let{article:r}=e,m="/".concat((0,s.Og)(r.slug||"","news")).concat(r.slug),p=(0,a.Y)();return(0,d.jsxs)("section",{className:"mx-auto mb-20 mt-8 max-w-7xl md:flex",children:[(0,d.jsx)("div",{className:"md:flex-none mx-auto mb-5 flex-wrap rounded object-contain w-48 h-48 cursor-pointer",children:(0,d.jsx)(l(),{prefetch:!1,href:m,legacyBehavior:!0,children:(0,d.jsx)(c.h,{image:r.doubleWidthImage})})}),(0,d.jsxs)("div",{className:"md:flex-1 pl-5",children:[(0,d.jsx)("div",{className:"py-3 text-4xl font-bold hover:underline",children:(0,d.jsx)(l(),{prefetch:!1,href:m,legacyBehavior:!0,children:r.title})}),(0,d.jsx)("div",{className:"font-bold mb-2",children:(0,d.jsx)(i.L,{date:r.releaseDate,language:p,timeZone:"UTC"})}),(0,d.jsx)(o.s,{document:null==(t=r.preview)?void 0:t.json}),(0,d.jsx)(u.c,{className:"mt-4",tags:null==(n=r.tagsCollection)?void 0:n.items})]})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.