Build 541864stable
Module 757284
1,251 characters · in 57ac0f616f8e9f31.js, bf6330e4b15d7509.jsDependencies
Source Raw
function(e,t,n){n.d(t,{Lo:()=>f,q7:()=>p});var l=n(627968),a=n(64700),r=n(503698),i=n.n(r),s=n(535862),u=n(123375),o=n(322408),c=n(478016),d=n(834730),m=n(778615);function x(e){let{id:t,title:n,titleDescriber:a,primaryText:r,subtext:i,isDisabled:o}=e;return(0,l.jsxs)(s.f,{id:t,className:m.Nr,isDisabled:o,children:[(0,l.jsx)(u.i,{className:m.G3,children:(0,l.jsx)(c.U,{size:"md",color:"var(--icon-strong)",className:m.Om})}),(0,l.jsxs)("div",{className:m.DD,children:[n," ",(0,l.jsx)(d.E,{tag:"span",variant:"text-md/medium",color:"text-strong",children:a})]}),(0,l.jsxs)("div",{className:m.Qq,children:[(0,l.jsx)(d.E,{tag:"span",variant:"heading-xl/semibold",color:"text-strong",children:r}),i]})]})}function f(e){let{price:t,strikethrough:n=!1}=e;return(0,l.jsx)(d.E,{tag:"span",variant:"text-md/medium",color:"text-subtle",className:n?m.of:void 0,children:t})}function p(e){let{className:t,headingComponent:n,selection:r,onChange:s,planOptions:u,planOptionsComponents:c}=e,d=a.useCallback(e=>s([...e][0]),[s]);return(0,l.jsxs)("div",{children:[n,(0,l.jsx)(o.WK,{disallowEmptySelection:!0,selectionMode:"single",selectedKeys:[r],onSelectionChange:d,className:i()(m.kK,{[m.Lh]:null!=n},t),children:null!=u?u.map(e=>(0,l.jsx)(x,{...e},e.id)):c})]})}}