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]=`9d19ed36-fdfe-476c-a8f9-39920c979cc3`,e._sentryDebugIdIdentifier=`sentry-dbid-9d19ed36-fdfe-476c-a8f9-39920c979cc3`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,B as n,H as r,Pt as i,bi as a,ei as o,ng as s,pi as c,sr as l}from"./entry.client-mpghtlrl.js";import{F as u,Kt as d}from"./xds-icons-m106f2fc.js";var f=t(),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(c(),1),v=s(),y=(e,t,n)=>{let s=(0,f.c)(25),{widthClassName:c,iconProps:p,lowDensityImageConstraints:m,highDensityImageConstraints:h}=t,y=n===void 0?!1:n,{locSecretAchievement:b,locUnknownGamerscore:x}=r(),S=e.isSecret&&!e.isUnlocked&&!y,C;s[0]!==S||s[1]!==b||s[2]!==e?(C=S?b():e.name,s[0]=S,s[1]=b,s[2]=e,s[3]=C):C=s[3];let w=C,T=S||e.gamerscore===void 0,E=T?`--`:e.gamerscore,D;s[4]!==T||s[5]!==x?(D=T?x():void 0,s[4]=T,s[5]=x,s[6]=D):D=s[6];let O=D,k=e.isUnlocked?100:e.percentComplete,A=a(),j=l(),M;s[7]!==c||s[8]!==p||s[9]!==S||s[10]!==A||s[11]!==h||s[12]!==m||s[13]!==e.isUnlocked||s[14]!==e.imageUrl||s[15]!==w||s[16]!==j?(M=()=>{let t=(0,_.default)(c,`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),"aria-hidden":!0,children:(0,v.jsx)(o,{icon:e.icon,className:(0,_.default)(`text-item-invisible-container-default-content-primary-rest`,n),...r})});if(S)return a({icon:(0,v.jsx)(u,{})});let s=A===`high`?h:m;return e.isUnlocked?(0,v.jsx)(i,{aspectRatio:`16/9`,src:e.imageUrl,alt:w,constraintSet:s,getResizedImageUrl:g,className:t,containerProps:{className:`shrink-0 rounded-regular`},"aria-hidden":!0}):j?(0,v.jsxs)(`div`,{className:(0,_.default)(t,`relative flex shrink-0`),"aria-hidden":!0,children:[(0,v.jsx)(i,{aspectRatio:`16/9`,src:e.imageUrl,alt:w,constraintSet:s,getResizedImageUrl:g,className:`blur-[16px]`,containerProps:{className:`rounded-regular border border-item-visible-container-default-border-rest`}}),(0,v.jsx)(o,{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,{})})},s[7]=c,s[8]=p,s[9]=S,s[10]=A,s[11]=h,s[12]=m,s[13]=e.isUnlocked,s[14]=e.imageUrl,s[15]=w,s[16]=j,s[17]=M):M=s[17];let N=M,P;return s[18]!==S||s[19]!==w||s[20]!==E||s[21]!==O||s[22]!==k||s[23]!==N?(P={isSecret:S,itemName:w,gamerscore:E,gamerscoreAriaLabel:O,progress:k,getImageComponent:N},s[18]=S,s[19]=w,s[20]=E,s[21]=O,s[22]=k,s[23]=N,s[24]=P):P=s[24],P};export{y as t};