Loading
function(e,t,l){l.d(t,{h:()=>v,i:()=>j});var n=l(627968),r=l(64700),i=l(990078),a=l(834730),s=l(290136),u=l(353068),o=l(825913),d=l(650682),c=l(187322),m=l(847374),x=l(167488);function f(e){let{children:t}=e;return(0,n.jsx)(u.kS,{className:x.nd,children:t})}function p(e){let{children:t,...l}=e,{isDisabled:r}=(0,o.CC)(d.k,"trigger");return(0,n.jsx)(c.vN,{children:(0,n.jsx)(d.$,{slot:"trigger",className:x.hZ,children:(0,n.jsxs)(a.E,{...l,className:x.aQ,children:[t,!r&&(0,n.jsx)(m.a,{size:"xs",color:"currentColor",className:x.ai})]})})})}var h=l(469362);function v(e){let{label:t,defaultExpanded:l=!1,onExpandedChange:i,isDisabled:a=!1,collapsedContent:s,children:o}=e,[d,c]=r.useState(l),m=r.useCallback(e=>{c(e),null!=i&&i(e)},[i]);return(0,n.jsxs)(u.EN,{defaultExpanded:l,isDisabled:a,onExpandedChange:m,children:[(0,n.jsxs)("div",{className:h.wx,children:[(0,n.jsx)(p,{variant:"text-md/medium",color:d?"text-strong":"text-muted",children:t}),(!d||a)&&s]}),(0,n.jsx)(f,{children:(0,n.jsx)("div",{className:h.CS,children:o})})]})}function j(e){let{label:t,labelSubText:l,value:u,color:o="text-muted",valueColor:d="text-muted",valueIcon:c,icon:m,tooltip:x,tooltipAriaLabel:f,subText:p,subTextColor:v="text-muted",subTextHasStrikethrough:j}=e,g=r.useMemo(()=>{let e=(0,n.jsxs)(a.E,{variant:"text-md/normal",color:d,className:h.U4,children:[null!=c&&(0,n.jsx)(c,{size:"xs"}),u]});return null==p?e:(0,n.jsxs)("div",{className:h.Lm,children:[e,(0,n.jsx)(a.E,{variant:"text-xs/medium",color:v,className:j?h.tP:void 0,children:p})]})},[u,c,p,j,d,v]),N=r.useMemo(()=>null==l?t:(0,n.jsxs)("div",{children:[t,(0,n.jsx)(a.E,{variant:"text-xs/normal",color:"text-subtle",children:l})]}),[t,l]);return(0,n.jsxs)("div",{className:h.Yn,children:[(0,n.jsxs)(a.E,{variant:"text-md/normal",color:o,className:h.yB,children:[m,N,null!=x&&(0,n.jsx)(i.m,{text:x,children:(0,n.jsx)(s.c,{size:"xs","aria-label":f})})]}),g]})}}