Loading
function(e,t,n){n.d(t,{A:()=>g});var l=n(477900),a=n(582128),r=n(503698),i=n.n(r),s=n(847374),u=n(320448),o=n(834730),d=n(939249),c=n(344587),m=n(261425),f=n(105292),h=n(59678);function g(e){let{glyph:t,line:n,live:r,settled:g,tint:x,detail:p,connected:j=!1,connectsDown:k=!1,anchor:v=!1}=e,[b,y]=a.useState(!1),A=a.useRef(null);a.useLayoutEffect(()=>{r&&A.current?.style.setProperty("--custom-conjure-shine-delay",`${-(performance.now()%2e3)}ms`)},[r]);let _=a.useId(),N=a.useCallback(()=>y(e=>!e),[]),{text:S,phase:w}=(0,c.Q)(n),E=b?s.a:u._,C=null!=p,I=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:h.hd,children:t}),(0,l.jsx)(o.E,{tag:"span",variant:"text-md/normal",color:"currentColor",className:i()(h.qo,{[h._q]:"exit"===w,[h.GD]:"enter"===w}),children:S}),C?(0,l.jsx)(E,{size:"xs",color:"currentColor",className:h.nD}):null]}),T=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:h.$m,children:I}),r?(0,l.jsx)("span",{className:h.pw,"aria-hidden":!0,children:(0,l.jsx)("span",{className:i()(h.$m,h.Yj),children:I})}):null]});return(0,l.jsxs)("li",{ref:A,className:h.K1,"data-live":r,"data-settled":g,"data-connected":j,"data-connects-down":k,"data-conjure-turn-status":v?"true":void 0,style:null!=x?{"--custom-conjure-shimmer-tint":x}:void 0,children:[C?(0,l.jsx)(d.D,{tag:"div",className:i()(h.ep,h.EK),"aria-expanded":b,"aria-controls":_,"aria-label":f.intl.formatToPlainString(m.default.yByAPh,{activity:S}),onClick:N,children:T}):(0,l.jsx)("div",{className:h.ep,children:T}),(0,l.jsx)("div",{id:_,hidden:!b,"data-conjure-entrance":!0,className:h.BA,children:p})]})}}