import{e as m,f as n,q as a,y as f,g as b,c as p,o,C as h,t as k}from"./iframe-Bl-fVlm8.js";import{_ as v}from"./_plugin-vue_export-helper-DlAUqK2U.js";const x=["id","name","checked","disabled","value"],y={class:"pz-checkbox-control","aria-hidden":"true"},z={key:0,class:"pz-checkbox-icon",viewBox:"0 0 16 16",fill:"none"},V={key:1,class:"pz-checkbox-thumb"},C={class:"pz-checkbox-label"},l=m({name:"PzCheckbox",__name:"PzCheckbox",props:{name:{},label:{},id:{default:void 0},modelValue:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:void 0},variant:{default:"checkbox"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:c}){const s=e,u=c,i=p(()=>s.value===void 0?void 0:String(s.value)),r=({target:{checked:t}})=>u("update:modelValue",t);return(t,d)=>(o(),n("label",{class:b(["pz-checkbox",[{disabled:e.disabled},e.variant]])},[a("input",{id:e.id??e.name,name:e.name,checked:e.modelValue,disabled:e.disabled,value:i.value,type:"checkbox",class:"pz-checkbox-input",onChange:r},null,40,x),a("span",y,[e.variant==="checkbox"?(o(),n("svg",z,[...d[0]||(d[0]=[a("path",{d:"M4 8.25L6.75 11L12 5.75",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(o(),n("span",V))]),a("span",C,[f(t.$slots,"default",{},()=>[h(k(e.label),1)],!0)])],2))}}),q=v(l,[["__scopeId","data-v-f78db6fd"]]);l.__docgenInfo=Object.assign({displayName:l.name??l.__name},{name:"PzCheckbox",exportName:"default",displayName:"PzCheckbox",description:"",tags:{},props:[{name:"name",required:!0,type:{name:"string"}},{name:"label",required:!0,type:{name:"string"}},{name:"id",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"undefined"}},{name:"modelValue",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"value",required:!1,type:{name:"PzFormCheckboxValue"},defaultValue:{func:!1,value:"undefined"}},{name:"variant",required:!1,type:{name:"PzFormCheckboxVariant"},defaultValue:{func:!1,value:'"checkbox"'}},{name:"disabled",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],slots:[{name:"default"}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzCheckbox/PzCheckbox.vue"]});export{q as P};
