Module 757284

1,251 characters · in b724cb40e5042ef0.js, a3921770772213f8.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,l){l.d(t,{Lo:()=>f,q7:()=>h});var n=l(627968),r=l(64700),a=l(503698),i=l.n(a),s=l(535862),u=l(123375),o=l(322408),c=l(478016),d=l(834730),m=l(778615);function x(e){let{id:t,title:l,titleDescriber:r,primaryText:a,subtext:i,isDisabled:o}=e;return(0,n.jsxs)(s.f,{id:t,className:m.Nr,isDisabled:o,children:[(0,n.jsx)(u.i,{className:m.G3,children:(0,n.jsx)(c.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:a}),i]})]})}function f(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 h(e){let{className:t,headingComponent:l,selection:a,onChange:s,planOptions:u,planOptionsComponents:c}=e,d=r.useCallback(e=>s([...e][0]),[s]);return(0,n.jsxs)("div",{children:[l,(0,n.jsx)(o.WK,{disallowEmptySelection:!0,selectionMode:"single",selectedKeys:[a],onSelectionChange:d,className:i()(m.kK,{[m.Lh]:null!=l},t),children:null!=u?u.map(e=>(0,n.jsx)(x,{...e},e.id)):c})]})}}