import{j as s}from"./client-By3tlFYA.js";import{c as n}from"./index-DkCxcZFY.js";import{r as c}from"./index-TEHZzOO_.js";import{S as x}from"./done-Bx77AbGW.js";import{a5 as i}from"./useSelectableClick-CQ_VFIFJ.js";const p=e=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,...e},c.createElement("path",{d:"M240-440v-80h480v80H240Z"})),w=({name:e,value:m,checked:t,indeterminate:r,onChange:o,label:a})=>s.jsxs("label",{className:"check-box",children:[s.jsx("input",{name:e,type:"checkbox",value:m,checked:t,onChange:o,readOnly:!o}),s.jsx("span",{className:n("check-box__input",{checked:t,indeterminate:r}),children:r?s.jsx(i,{id:"indeterminate",icon:p}):t&&s.jsx(i,{id:"check",icon:x})}),a&&s.jsx("span",{children:a})]});export{w as C};
//# sourceMappingURL=check_box-QCiLmhXY.js.map
