Module 757284

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