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