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]=`7e7c9416-8cd1-49d2-8f8f-3cbb6a646fe3`,e._sentryDebugIdIdentifier=`sentry-dbid-7e7c9416-8cd1-49d2-8f8f-3cbb6a646fe3`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,C as n,Fg as r,Wn as i,dr as a,k as o,or as s,rn as c,w as l}from"./entry.client-dr7r6s9a.js";import{K as u,Pt as d}from"./xds-icons-d7khcnpi.js";var f=r(),p=n(),m=16/9,h=9/16,g=(e,t,n)=>{let r=t.size.width,i=t.size.height;return!r&&!i?e:(r||=(i=Math.round(n*Math.max(i??0)),Math.round(i*m)),i||=(r=Math.round(n*Math.max(r??0)),Math.round(r*h)),(0,p.getResizeUrl)(e,r,i,t.imageType===`jpg`))},_=e(s(),1),v=t(),y=(e,t,n)=>{let r=(0,f.c)(21),{widthClassName:s,iconProps:p,lowDensityImageConstraints:m,highDensityImageConstraints:h}=t,y=n===void 0?!1:n,{locSecretAchievement:b}=o(),x=e.isSecret&&!e.isUnlocked&&!y,S;r[0]!==x||r[1]!==b||r[2]!==e?(S=x?b():e.name,r[0]=x,r[1]=b,r[2]=e,r[3]=S):S=r[3];let C=S,w=x||e.gamerscore===void 0?`--`:e.gamerscore,T=e.isUnlocked?100:e.percentComplete,E=a(),D=c(),O;r[4]!==s||r[5]!==p||r[6]!==x||r[7]!==E||r[8]!==h||r[9]!==m||r[10]!==e.isUnlocked||r[11]!==e.imageUrl||r[12]!==C||r[13]!==D?(O=()=>{let t=(0,_.default)(s,`aspect-[16/9]`),{className:n,...r}=p,a=e=>(0,v.jsx)(`div`,{className:(0,_.default)(`rounded-regular bg-item-visible-container-default-background-container-rest`,`flex items-center justify-center border border-item-visible-container-default-border-rest`,t),children:(0,v.jsx)(i,{icon:e.icon,className:(0,_.default)(`text-item-invisible-container-default-content-primary-rest`,n),...r})});if(x)return a({icon:(0,v.jsx)(u,{})});let o=E===`high`?h:m;return e.isUnlocked?(0,v.jsx)(l,{aspectRatio:`16/9`,src:e.imageUrl,alt:C,constraintSet:o,getResizedImageUrl:g,className:t,containerProps:{className:`shrink-0 rounded-regular`}}):D?(0,v.jsxs)(`div`,{className:(0,_.default)(t,`relative flex shrink-0`),children:[(0,v.jsx)(l,{aspectRatio:`16/9`,src:e.imageUrl,alt:C,constraintSet:o,getResizedImageUrl:g,className:`blur-[16px]`,containerProps:{className:`rounded-regular border border-item-visible-container-default-border-rest`}}),(0,v.jsx)(i,{icon:(0,v.jsx)(d,{}),className:(0,_.default)(`absolute start-[50%] top-[50%] -translate-x-[50%] -translate-y-[50%] text-item-invisible-container-default-content-primary-rest`,n),...r})]}):a({icon:(0,v.jsx)(d,{})})},r[4]=s,r[5]=p,r[6]=x,r[7]=E,r[8]=h,r[9]=m,r[10]=e.isUnlocked,r[11]=e.imageUrl,r[12]=C,r[13]=D,r[14]=O):O=r[14];let k=O,A;return r[15]!==x||r[16]!==C||r[17]!==w||r[18]!==T||r[19]!==k?(A={isSecret:x,itemName:C,gamerscore:w,progress:T,getImageComponent:k},r[15]=x,r[16]=C,r[17]=w,r[18]=T,r[19]=k,r[20]=A):A=r[20],A};export{y as t};