Module 415441

1,045 characters · in f474b915305641d5.js
Dependencies
Required by (3)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,l){l.d(t,{N:()=>c});var n=l(627968),r=l(64700),s=l(17928),i=l(775602),u=l(607470),a=l(551875),o=l(375708),d=l(840790);function c(e){let{showVideo:t,showImage:l=!0,imageAsset:c,videoAsset:E,imageSize:v,onLoadComplete:_,assetRef:f}=e,m=(0,s.bG)([i.Ay],()=>i.Ay.useReducedMotion),g=null==c||c.asset.isAnimated?null:c.asset.url,p=null!=E&&E.asset.isAnimated?E.asset.url:null,T=v?.width,A=v?.height,S=r.useMemo(()=>{let e=null!=T&&null!=A?(0,a.Yt)(T,A):null;return null!=g?(0,a.UX)(g,{format:"webp",width:e?.width,height:e?.height}):null!=p?(0,a.WV)(p,e??void 0):null},[g,p,T,A]);if(null==S)return null;let C=!m&&null!=E&&null!=p&&t;return(0,n.jsxs)(n.Fragment,{children:[(l||!C)&&(0,n.jsx)("img",{alt:c?.alt??o.intl.string(o.t.P84bAD),className:c?.className??d.S,src:S,onLoad:_,ref:C?void 0:f}),C&&(0,n.jsx)(u.A,{autoPlay:!0,loop:!0,muted:!0,preload:"auto",poster:S,playsInline:!0,className:E.className,controls:!1,onProgress:_,ref:f,"aria-label":E.alt,children:(0,n.jsx)("source",{src:E.asset.url,type:E.asset.mimetype??void 0})})]})}}