Module 757284

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