Loading
function(e,t,l){l.d(t,{A:()=>g});var a=l(627968),s=l(64700),r=l(503698),n=l.n(r),u=l(607470),i=l(17928),c=l(775602),o=l(531685),d=l(253292),m=l(351952),f=l(88686),I=l(381588);function g(e){let t,l,{nameplate:r,hovered:u,selected:d,content:g,placement:N}=e,A=(0,m._)(g,r,u,d,N),v=(t=(0,i.bG)([o.A],()=>o.A.isFocused()),l=(0,i.bG)([c.Ay],()=>c.Ay.useReducedMotion),!!t&&!l&&((u||d)??!1)),p=s.useRef(null==r);return(s.useEffect(()=>{p.current||null!=r||(p.current=!0)},[r]),null==r)?null:(0,a.jsx)("div",{className:n()(I.kL,{[I.qG]:p.current,[I.WB]:N===f.u.ACCOUNT}),style:{background:A.background},"aria-hidden":!0,children:(0,a.jsx)(h,{nameplate:r,className:n()(I._8,{[I.PT]:u,[I.wH]:d,[I.ct]:N===f.u.ACCOUNT,[I.VH]:N===f.u.PREVIEW,[I.Hh]:N===f.u.MINI_PREVIEW,[I.Ix]:N===f.u.CHANNEL}),style:{maskImage:A.maskImage},animate:v,loop:!0===v&&!0===u})})}function h(e){let{nameplate:t,className:l,style:s,animate:r,loop:n}=e,{staticImageUrl:u,animatedImageUrl:i,videoUrl:c}=(0,d.K)(t);if(null==u)return null;if(null!=c)return(0,a.jsx)(N,{animatedAsset:c,staticAsset:u,animate:r,loop:n,style:s,className:l});let o=r&&null!=i?i:u;return(0,a.jsx)(A,{asset:o,className:l,style:s})}function N(e){let{staticAsset:t,animatedAsset:l,animate:r,loop:n,className:i,style:c}=e,o=s.useRef(null);return s.useEffect(()=>{null!=o.current&&(r||n?o.current.play():o.current.pause())},[r,n]),(0,a.jsx)("div",{className:I.j,style:c,children:(0,a.jsx)(u.A,{src:l,poster:t,ref:o,playsInline:!0,loop:n,controls:!1,className:i,tabIndex:-1})})}function A(e){let{asset:t,className:l,style:s}=e;return(0,a.jsx)("img",{src:t,className:l,style:s,alt:""})}}