text: "use strict";var e=require("primevue/utils"),c=require("vue"),t={name:"Checkbox",inheritAttrs:!1,emits:["click","update:modelValue","change","input"],props:{value:null,modelValue:null,binary:Boolean,class:null,style:null,trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},data:()=>({focused:!1}),methods:{onClick(c){if(!this.$attrs.disabled){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((c=>!e.ObjectUtils.equals(c,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",c),this.$emit("update:modelValue",t),this.$emit("change",c),this.$emit("input",t),this.$refs.input.focus()}},onFocus(){this.focused=!0},onBlur(){this.focused=!1}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.ObjectUtils.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",this.class,{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.$attrs.disabled,"p-checkbox-focused":this.focused}]}}};const s={class:"p-hidden-accessible"};t.render=function(e,t,l,i,u,a){return c.openBlock(),c.createBlock("div",{class:a.containerClass,onClick:t[3]||(t[3]=e=>a.onClick(e)),style:l.style},[c.createVNode("div",s,[c.createVNode("input",c.mergeProps({ref:"input",type:"checkbox",checked:a.checked,value:l.value},e.$attrs,{onFocus:t[1]||(t[1]=(...e)=>a.onFocus&&a.onFocus(...e)),onBlur:t[2]||(t[2]=(...e)=>a.onBlur&&a.onBlur(...e))}),null,16,["checked","value"])]),c.createVNode("div",{ref:"box",class:["p-checkbox-box",{"p-highlight":a.checked,"p-disabled":e.$attrs.disabled,"p-focus":u.focused}],role:"checkbox","aria-checked":a.checked},[c.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":a.checked}]},null,2)],10,["aria-checked"])],6)},module.exports=t;
  