Build 571957stable
Module 93067
1,503 characters · in bc12befdf13afbcf.jsDependencies
Source Raw
function(e,t,n){n.d(t,{A:()=>E});var l=n(627968),i=n(64700),s=n(503698),r=n.n(s),a=n(451988),o=n(922016),u=n(834730),c=n(187322),d=n(695366),m=n(487329),p=n(540999),g=n(975571),h=n(447404),f=n(652215),A=n(375708),x=n(151802);function E(e){let{errorMessage:t,className:n,avError:s}=e,E=i.useRef(null),v="",{text:C,node:I}=function(e){if(null==e)return{text:null,node:null};let t=(0,m.B1)(e)?.errorCode,n=A.intl.formatToPlainString(A.t.ejOT95,{errorCode:t}),i=A.intl.format(A.t.If5Q0h,{errorCode:t,helpDeskURL:g.A.getArticleURL(f.MVz.AV_ERROR_CODES)}),s=p.A.isDeveloper;return{text:s?`${n} (${e})`:n,node:s?(0,l.jsxs)(l.Fragment,{children:[i," (",e,")"]}):i}}(s);v=null!=C?`${t} ${C}`:t;let[j]=i.useState(new a.Ep),[S,_]=i.useState(!1),[N,b]=i.useState(!1),y=i.useCallback(()=>{j.start(250,()=>{_(!1)},!1)},[j,_]),T=i.useCallback(()=>{j.stop(),_(!0)},[j,_]),D=i.useCallback(()=>{b(!0)},[]),w=i.useCallback(()=>{b(!1)},[]);return(0,l.jsx)(o.Y,{renderPopout:()=>(0,l.jsx)(h.A,{children:(0,l.jsxs)("div",{className:x.SW,onMouseEnter:T,onMouseLeave:y,children:[t,null!=I&&(0,l.jsx)(u.E,{variant:"text-sm/semibold",color:"text-muted",className:x.F1,children:I})]})}),targetElementRef:E,shouldShow:N||S,position:"bottom",children:e=>(0,l.jsx)(h.A,{children:(0,l.jsx)(c.vN,{children:(0,l.jsx)("div",{ref:E,tabIndex:0,onMouseEnter:T,onMouseLeave:y,onFocus:D,onBlur:w,className:r()(n,x.zr),"aria-label":v,...e,children:(0,l.jsx)(d.E,{size:"custom",width:20,height:20,color:"currentColor",className:x.QW})})})})})}}