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]=`0a603737-0e51-4204-a62e-8979a0236ab6`,e._sentryDebugIdIdentifier=`sentry-dbid-0a603737-0e51-4204-a62e-8979a0236ab6`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{nt as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Fg as r,Ig as i,Qn as a,Yn as o,eh as s,or as c,pn as l,xn as u}from"./entry.client-dr7r6s9a.js";import{t as d}from"./BackgroundImage-nvqqagv8.js";var f=e(i(),1),p=r(),m=e(c(),1),h=n(),g=e=>{let t=(0,p.c)(2),{backgroundImage:n}=e,r;return t[0]===n?r=t[1]:(r=n&&n.source&&(0,h.jsxs)(`div`,{className:`absolute inset-0 z-0 overflow-hidden`,children:[n.dim&&(0,h.jsx)(`div`,{style:{background:`var(--V2AJ)`},className:`linear h-full w-full`}),(0,h.jsx)(d,{className:(0,m.default)(`min-h-[max-content] min-w-[max-content] object-cover object-center`,n.dim&&`opacity-35`),src:n.source.URL,alt:`${n.source?.Caption} background`,aspectRatio:`16:9`,constraintSet:n.constraintSet,getResizedImageUrl:_})]}),t[0]=n,t[1]=r),r};function _(e){return e}var v=({className:e})=>(0,h.jsx)(a,{children:(0,h.jsx)(o,{className:(0,m.default)(`h-items-info-container-height-height w-full`,e)})}),y=e=>{let n=(0,p.c)(37),{backgroundImage:r,children:i,containerClassName:a,footer:o,href:c,isLoading:d,isError:_,onPress:y,showFooter:b,title:x}=e,S=b===void 0?`auto`:b,[C,w]=(0,f.useState)(!1),T=(0,f.useRef)(null),E=(0,f.useRef)(null),{locSomethingWentWrong:D,locGenericErrorSubheading:O,locViewMore:k}=s(),A;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>{!T?.current||!E?.current||w(Math.max(T?.current?.clientHeight??0,T?.current?.scrollHeight??0)<Math.max(E?.current?.clientHeight??0,E?.current?.scrollHeight??0))},n[0]=A):A=n[0];let j=A,M;n[1]===S?M=n[2]:(M=()=>{if(S===`always`){w(!0);return}else if(S===`never`){w(!1);return}else return!T?.current||!E?.current?void 0:(j(),window.addEventListener(`resize`,j),window.addEventListener(`orientationchange`,j),()=>{window.removeEventListener(`resize`,j),window.removeEventListener(`orientationchange`,j)})},n[1]=S,n[2]=M);let N;if(n[3]===S?N=n[4]:(N=[S,T?.current,E?.current],n[3]=S,n[4]=N),u(M,N),d){let e;return n[5]===a?e=n[6]:(e=(0,h.jsx)(v,{className:a}),n[5]=a,n[6]=e),e}let P=c?`a`:`button`,F;n[7]===a?F=n[8]:(F=(0,m.default)(`h-items-info-container-height-height flex w-full flex-col rounded-component-item-standard-regular text-start`,a),n[7]=a,n[8]=F);let I=c?`_blank`:void 0,L;n[9]===r?L=n[10]:(L=(0,h.jsx)(g,{backgroundImage:r}),n[9]=r,n[10]=L);let R;n[11]===C?R=n[12]:(R=C?{maskImage:`linear-gradient(to bottom, black calc(100% - 50px), transparent 100%)`,WebkitMaskImage:`linear-gradient(to bottom, black calc(100% - 50px), transparent 100%)`}:void 0,n[11]=C,n[12]=R);let z;n[13]!==_||n[14]!==D||n[15]!==O||n[16]!==x||n[17]!==i?(z=_?(0,h.jsx)(l,{illustration:`error`,title:D(),subtitle:O()}):(0,h.jsxs)(`div`,{className:`flex flex-1 flex-col gap-8 text-ellipsis text-wrap p-internal-container-padding-borderless-regular`,ref:E,children:[x&&(0,h.jsx)(`h5`,{className:`text-noninteractive-content-primary-content type-title3`,children:x}),i]}),n[13]=_,n[14]=D,n[15]=O,n[16]=x,n[17]=i,n[18]=z):z=n[18];let B;n[19]!==R||n[20]!==z?(B=(0,h.jsx)(`div`,{className:`relative z-10 w-full flex-1 overflow-hidden`,style:R,children:z}),n[19]=R,n[20]=z,n[21]=B):B=n[21];let V;n[22]!==C||n[23]!==_||n[24]!==o||n[25]!==k?(V=C&&!_&&(0,h.jsx)(`div`,{className:`z-10 flex flex-col items-start justify-center gap-layout-vertical-group-of-items-regular self-stretch rounded-b-regular p-internal-container-padding-borderless-regular`,children:(0,h.jsx)(`p`,{className:`text-item-visible-container-default-content-primary-rest type-cta`,children:o??k()})}),n[22]=C,n[23]=_,n[24]=o,n[25]=k,n[26]=V):V=n[26];let H;return n[27]!==P||n[28]!==F||n[29]!==c||n[30]!==y||n[31]!==I||n[32]!==_||n[33]!==L||n[34]!==B||n[35]!==V?(H=(0,h.jsxs)(t,{as:P,className:F,href:c,onPress:y,ref:T,target:I,isDisabled:_,children:[L,B,V]}),n[27]=P,n[28]=F,n[29]=c,n[30]=y,n[31]=I,n[32]=_,n[33]=L,n[34]=B,n[35]=V,n[36]=H):H=n[36],H};export{v as n,y as t};