import{aw as t,j as s,ax as d,Q as n,Z as c}from"./app-BgLa5dit.js";import{T as u,a as o}from"./-hEPHVQE.chunk.js";const m="_panel_10db4_1",r="_selected_10db4_6",a={panel:m,selected:r};function i(e){const l=e.value==="yes";return s.jsxs("div",{className:`rounded p-2 cursor-pointer d-flex flex-column align-items-center justify-content-center me-3 ${a.panel} ${e.isSelected?a.selected:""} ${e.disabled?"bg-light cursor-default":""}`,onClick:()=>e.setFieldValue(),children:[s.jsx(n,{size:c.XXL,svg:l?u:o}),l?"Yes":"No"]})}function b(e){const l=t();return s.jsx(d,{type:"radio",checkboxLabelFontWeight:"normal",name:e.fieldName,id:e.fieldName,children:()=>s.jsxs("div",{className:"d-flex",children:[s.jsx(i,{value:"yes",setFieldValue:()=>{e.disabled||(e.onSelectYes?e.onSelectYes():l.setFieldValue(e.fieldName,!0))},disabled:e.disabled,isSelected:l.values[e.fieldName]===!0}),s.jsx(i,{value:"no",setFieldValue:()=>{e.disabled||(e.onSelectNo?e.onSelectNo():l.setFieldValue(e.fieldName,!1))},disabled:e.disabled,isSelected:l.values[e.fieldName]===!1})]})})}export{b as C};
//# sourceMappingURL=xRXwFbQr.chunk.js.map
