Loading
function(e,t,l){l.d(t,{m:()=>c});var n=l(627968),r=l(64700),i=l(503698),a=l.n(i),s=l(785007),u=l(834730),o=l(318626);function d(e){let{text:t}=e;return(0,n.jsx)(u.E,{tag:"span",variant:"eyebrow",color:"text-overlay-light",className:o.Fi,children:t})}function c(e){let{headingComponent:t,headingSubText:l,value:i,planRadioOptions:c,...m}=e,x=r.useMemo(()=>null==c?[]:c.map(e=>{let t=e.value===i,l=t?"text-strong":"text-subtle";return{name:(0,n.jsxs)("div",{className:o.VH,children:[(0,n.jsxs)("div",{className:o.C2,children:[(0,n.jsx)(u.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:o.Cq,children:[(0,n.jsxs)("div",{className:o.SS,children:[null!=e.subTextStrikethrough&&(0,n.jsx)(u.E,{tag:"span",variant:"text-md/medium",color:"text-subtle",className:o.fF,children:e.subTextStrikethrough}),(0,n.jsx)(u.E,{tag:"span",variant:"text-md/medium",color:l,children:e.subText})]}),null!=e.secondarySubText&&(0,n.jsx)(u.E,{variant:"text-md/medium",color:"text-subtle",children:e.secondarySubText})]})]}),value:e.value,disabled:e.isDisabled,radioBarClassName:a()(o.tG,{[o.uA]:t})}}),[c,i]);return(0,n.jsxs)("div",{children:[t,null!=l&&(0,n.jsx)(u.E,{variant:"text-sm/medium",color:"text-muted",className:o.cm,children:l}),(0,n.jsx)(s.$d,{...m,options:x,value:i,className:o.ul})]})}}