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]=`439e5bec-688c-4e61-845d-a9b62c884211`,e._sentryDebugIdIdentifier=`sentry-dbid-439e5bec-688c-4e61-845d-a9b62c884211`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,Oi as r,Qh as i,Qm as a,Zh as o,Zm as s,_r as c,jg as l,ng as u}from"./entry.client-mpghtlrl.js";import{t as d}from"./useGenerateQrCode-qq9i2f73.js";import{n as f,t as p}from"./JumpLandingPageError-j6f9ykxe.js";import{t as m}from"./useDialogPageDescription-fsgom47w.js";import{t as h}from"./PureContentPromotionL2-oqggaukp.js";var g=n(),_=e(l(),1),v=u(),y=c(h,({additionalContextForGame:e})=>{let{cta_title:t,cta_description:n,cta_url:r,cta_clicked:c,productId:l}=e.AdditionalProperties,{catalog:{queries:{productInfo:{detailed:u}}},beacon:f}=s(),{trackUserAction:p}=a(),{data:m}=o(f.queries.beaconBuilder.getOptions()),{data:h}=i({...u.getOptions({productId:l??``}),enabled:!!l}),g=h?.Image_Hero?.URL,v=d(r??``,200),y=(0,_.useCallback)(()=>{p(`NavigateToLink`,{destinationUrl:r??``,linkType:`external`},`Press`),c&&c.length>0&&m(c).withLogging().withActions(()=>p(`SendBeacon`,{beaconUrl:c[0],beaconName:`cta_clicked_beacon`},`Press`))()},[r,c,m,p]);return(0,_.useMemo)(()=>({contentPromotionTitle:t,contentPromotionSubtitle:n,contentPromotionHeroImageUrl:g,contentPromotionUrl:r,qrCodeDataUri:v,onLearnMoreClick:y}),[t,n,g,r,v,y])}),b=r(e=>(0,v.jsx)(y.useComponent(),{...e}),`ContentPromotionL2`),x=()=>{let e=(0,g.c)(5),{additionalContextForGame:n}=f(),{t:r}=t(`Guide`),i;if(e[0]===r?i=e[1]:(i=r(`Promoted content`,{shortKey:`content_promotion_dialog_description`}),e[0]=r,e[1]=i),m(i),!n){let t;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,v.jsx)(p,{}),e[2]=t):t=e[2],t}let a;return e[3]===n?a=e[4]:(a=(0,v.jsx)(`div`,{className:`px-template-overlays-guide-padding-internal-left-&-right flex h-full flex-col gap-layout-vertical-related-content-in-a-section-tight`,children:(0,v.jsx)(b,{additionalContextForGame:n})}),e[3]=n,e[4]=a),a};export{x as ContentPromotionPage,x as default};