import{ao as t,at as u,aF as r,bU as o}from"./app-k0jcl5PQ.js";const x="_selected_ii58d_1",h="_disabled_ii58d_4",m={selected:x,disabled:h};function b(e){var s,l,c,d;function i(){var a;(a=e.option)!=null&&a.disabled||e.onSelect(e.option)}let n="text-center cursor-pointer p-3 border rounded-3 mx-2 user-select-none w-50";return e.selected&&(n+=` border-info ${m.selected}`),(s=e.option)!=null&&s.disabled&&(n+=` ${m.disabled}`),t.jsxs(u,{onClick:i,className:n,children:[((l=e.option)==null?void 0:l.imageUrl)&&t.jsx("img",{src:e.option.imageUrl,className:`img-fluid my-3 ${e.option.imageClassName??""}`,draggable:!1}),((c=e.option)==null?void 0:c.title)&&t.jsx("h2",{className:"h3",children:e.option.title}),((d=e.option)==null?void 0:d.description)&&t.jsx("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:e.option.description}}),e.children]})}function g(e){return t.jsx("div",{className:"d-flex mb-3 mx-n2",children:e.options.map(i=>{var n;return t.jsx(b,{option:i,selected:((n=e.selection)==null?void 0:n.id)===i.id,onSelect:e.selectOption},i.id)})})}function f(e){return t.jsx(r,{size:"lg",title:e.title,showLoadingSpinner:e.showLoadingSpinner,closePopup:e.closePopup,children:t.jsxs(t.Fragment,{children:[!!e.warningComponent&&e.warningComponent,e.question&&t.jsx("h2",{className:"h5 text-center fw-semibold mb-3",children:e.question}),t.jsx(g,{options:e.options,selection:e.selection,selectOption:e.selectOption}),t.jsxs(o,{children:[e.cancelButtonProps&&t.jsx(o.Cancel,{...e.cancelButtonProps}),e.submitButtonProps&&t.jsx(o.Submit,{...e.submitButtonProps})]})]})})}export{f as C};
//# sourceMappingURL=He_KJRxT.chunk.js.map
