import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{z as b,g as s,A as t,j as n,J as o,D as c,P as f,H as r,O as k}from"./index-DOFLUERq.js";const m={key:0,class:"field-controls"},h={class:"checkbox"},p={key:1,class:"checkbox-label"},y=["checked","disabled"],C=["innerHTML"],v={__name:"CheckControl",props:["df","value","read_only"],setup(e){let d=b();return(a,l)=>(s(),t("div",{class:r(["control form-builder-control checkbox",{editable:n(d).label}])},[n(d).label?(s(),t("label",m,[o("div",h,[l[1]||(l[1]=o("input",{type:"checkbox",disabled:""},null,-1)),c(a.$slots,"label",{},void 0,!0)]),c(a.$slots,"actions",{},void 0,!0)])):(s(),t("label",p,[o("input",{type:"checkbox",checked:e.value,disabled:e.read_only,onChange:l[0]||(l[0]=i=>a.$emit("update:modelValue",i.target.checked))},null,40,y),o("span",{class:r(["label-area",{reqd:e.df.reqd}])},f(e.df.label),3)])),e.df.description?(s(),t("div",{key:2,class:"mt-2 description",innerHTML:e.df.description},null,8,C)):k("",!0)],2))}},g=u(v,[["__scopeId","data-v-f613585d"]]);export{g as default};
