Build 545858stable
Module 895295
1,153 characters · in 0e246c547cb823ba.js, 512b98ddebdab104.jsDependencies
Source Raw
function(e,t,l){l.d(t,{m:()=>o});var n=l(627968),a=l(64700),r=l(503698),i=l.n(r),s=l(834730),u=l(785007),c=l(318626);let d=e=>{let{text:t}=e;return(0,n.jsx)(s.E,{tag:"span",variant:"eyebrow",color:"always-white",className:c.Fi,children:t})};function o(e){let{headingComponent:t,headingSubText:l,value:r,planRadioOptions:o,...m}=e,x=a.useMemo(()=>null==o?[]:o.map(e=>{let t=e.value===r,l=t?"text-strong":"text-subtle";return{name:(0,n.jsxs)("div",{className:c.VH,children:[(0,n.jsxs)("div",{className:c.C2,children:[(0,n.jsx)(s.E,{variant:"text-md/medium",color:l,children:e.primaryText}),null!=e.badgeText&&(0,n.jsx)(d,{text:e.badgeText})]}),(0,n.jsxs)("div",{className:c.Cq,children:[(0,n.jsx)(s.E,{variant:"text-md/medium",color:l,children:e.subText}),null!=e.secondarySubText&&(0,n.jsx)(s.E,{variant:"text-md/medium",color:"text-subtle",children:e.secondarySubText})]})]}),value:e.value,disabled:e.isDisabled,radioBarClassName:i()(c.tG,{[c.uA]:t})}}),[o,r]);return(0,n.jsxs)("div",{children:[t,null!=l&&(0,n.jsx)(s.E,{variant:"text-sm/medium",color:"text-muted",className:c.cm,children:l}),(0,n.jsx)(u.$d,{...m,options:x,value:r,className:c.ul})]})}}