try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`779bb066-9429-46c5-aab1-9913c8994229`,e._sentryDebugIdIdentifier=`sentry-dbid-779bb066-9429-46c5-aab1-9913c8994229`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,Oi as r,Xt as i,Zt as a,_r as o,jg as s,ng as c,pi as l,ti as u}from"./entry.client-mpghtlrl.js";import{n as d,r as f,t as p}from"./PartnerBenefitsChannel-kz057lbt.js";var m=n(),h=e(l(),1),g=(0,h.default)(`flex`,`min-h-dvh`,`flex-col`,`px-layout-horizontal-margin`),_=e(s(),1),v=(0,h.default)(`flex`,`w-full`,`min-w-0`,`flex-col`,`gap-layout-vertical-new-section-tight`),y=(0,h.default)(`flex`,`max-w-screen-md-10`,`flex-col`,`gap-layout-vertical-related-content-in-a-section-tight`),b=c(),x=o(e=>{let n=(0,m.c)(20),{onOfferSelected:r}=e,{t:i}=t(`BenefitsHubPage`),a;n[0]===i?a=n[1]:(a=i(`Benefits Hub`,{shortKey:`benefits_hub_title`}),n[0]=i,n[1]=a);let o;n[2]===a?o=n[3]:(o=(0,b.jsx)(`h1`,{className:`text-noninteractive-content-primary-content type-display2`,children:a}),n[2]=a,n[3]=o);let s;n[4]===i?s=n[5]:(s=i(`Browse available Game Pass benefits, open a card for details, then follow the redemption flow.`,{shortKey:`benefits_hub_description`}),n[4]=i,n[5]=s);let c;n[6]===s?c=n[7]:(c=(0,b.jsx)(`p`,{className:`text-noninteractive-content-secondary-content type-body`,children:s}),n[6]=s,n[7]=c);let l;n[8]!==o||n[9]!==c?(l=(0,b.jsxs)(`header`,{className:y,children:[o,c]}),n[8]=o,n[9]=c,n[10]=l):l=n[10];let h,g,_;n[11]===r?(h=n[12],g=n[13],_=n[14]):(h=(0,b.jsx)(f,{onOfferSelected:r}),g=(0,b.jsx)(p,{onOfferSelected:r}),_=(0,b.jsx)(d,{onOfferSelected:r}),n[11]=r,n[12]=h,n[13]=g,n[14]=_);let x;return n[15]!==l||n[16]!==h||n[17]!==g||n[18]!==_?(x=(0,b.jsxs)(u,{as:`main`,grid:!0,className:v,children:[l,h,g,_]}),n[15]=l,n[16]=h,n[17]=g,n[18]=_,n[19]=x):x=n[19],x},()=>{let e=a({location:`BenefitsHubPageContent`});return{onOfferSelected:(0,_.useCallback)(t=>{e({key:i.benefitsHub.fullPath,props:{offerId:t}},`BenefitCard`)},[e])}}),S=()=>{let e=(0,m.c)(2),t=x.useComponent(),n;return e[0]===t?n=e[1]:(n=(0,b.jsx)(t,{}),e[0]=t,e[1]=n),n},C=o(()=>{let e=(0,m.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,b.jsx)(`div`,{className:g,children:(0,b.jsx)(S,{})}),e[0]=t):t=e[0],t},()=>({})),w=r(()=>{let e=(0,m.c)(2),t=C.useComponent(),n;return e[0]===t?n=e[1]:(n=(0,b.jsx)(t,{}),e[0]=t,e[1]=n),n},`BenefitsHubPage`);export{S as n,w as t};