Module 757284

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