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