Module 263577

878 characters · in 381faf2c40dd0284.js
Dependencies
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{V:()=>p});var l=n(627968),i=n(64700),s=n(503698),r=n.n(s),a=n(990078),o=n(462887),c=n(109112),u=n(661531),d=n(736653),h=n(375708),m=n(458372);function p(e){let{src:t,size:n,constrain:s="height",className:p,alt:f,fallbackSrc:g,"aria-hidden":x,showTooltip:A=!1}=e,C=(0,d.Ay)(),E=`${n}px`,[I,y]=i.useState(!1),[S,v]=i.useState(!1),N=null==g||S;if(null==t||I&&N)return(0,l.jsx)(c._,{size:"custom",width:"100%",height:"100%",color:(0,o.M)(C)?u.A.colors.WHITE:u.A.colors.BLACK,style:{maxWidth:E},className:r()(m.f,p)});let _="height"===s?{maxWidth:E,height:E}:{maxWidth:E,minHeight:E};return(0,l.jsx)(a.m,{"aria-label":f,__unsupportedReactNodeAsText:f,shouldShow:A,children:(0,l.jsx)("img",{style:_,className:r()(m.f,p),src:I&&null!=g?g:t,"aria-hidden":x,alt:f??(x?void 0:h.intl.string(h.t["2B/phM"])),onError:e=>I?v(!0):y(!0)})},"content-image")}}