Module 757284

1,252 characters · in 9ea2ca13960d115b.js, f854e65a61cd6855.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,l){l.d(t,{Lo:()=>h,q7:()=>p});var n=l(477900),r=l(582128),s=l(503698),i=l.n(s),a=l(730914),c=l(159587),u=l(245160),o=l(478016),d=l(834730),m=l(907455);function x(e){let{id:t,title:l,titleDescriber:r,primaryText:s,subtext:i,isDisabled:u}=e;return(0,n.jsxs)(a.f,{id:t,className:m.Nr,isDisabled:u,children:[(0,n.jsx)(c.i,{className:m.G3,children:(0,n.jsx)(o.U,{size:"md",color:"var(--icon-strong)",className:m.Om})}),(0,n.jsxs)("div",{className:m.DD,children:[l," ",(0,n.jsx)(d.E,{tag:"span",variant:"text-md/medium",color:"text-strong",children:r})]}),(0,n.jsxs)("div",{className:m.Qq,children:[(0,n.jsx)(d.E,{tag:"span",variant:"heading-xl/semibold",color:"text-strong",children:s}),i]})]})}function h(e){let{price:t,strikethrough:l=!1}=e;return(0,n.jsx)(d.E,{tag:"span",variant:"text-md/medium",color:"text-subtle",className:l?m.of:void 0,children:t})}function p(e){let{className:t,headingComponent:l,selection:s,onChange:a,planOptions:c,planOptionsComponents:o}=e,d=r.useCallback(e=>a([...e][0]),[a]);return(0,n.jsxs)("div",{children:[l,(0,n.jsx)(u.WK,{disallowEmptySelection:!0,selectionMode:"single",selectedKeys:[s],onSelectionChange:d,className:i()(m.kK,{[m.Lh]:null!=l},t),children:null!=c?c.map(e=>(0,n.jsx)(x,{...e},e.id)):o})]})}}