Module 757284

1,251 characters · in 589229d6f72a5d3b.js, 5229fbaa7350bc07.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(627968),n=l(64700),a=l(503698),r=l.n(a),i=l(535862),d=l(123375),c=l(322408),u=l(478016),o=l(834730),m=l(778615);function x(e){let{id:t,title:l,titleDescriber:n,primaryText:a,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)(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:d,planOptionsComponents:u}=e,o=n.useCallback(e=>i([...e][0]),[i]);return(0,s.jsxs)("div",{children:[l,(0,s.jsx)(c.WK,{disallowEmptySelection:!0,selectionMode:"single",selectedKeys:[a],onSelectionChange:o,className:r()(m.kK,{[m.Lh]:null!=l},t),children:null!=d?d.map(e=>(0,s.jsx)(x,{...e},e.id)):u})]})}}