1import{h as b,aw as k,y as s,u,aU as g,aK as x,Q as y,D as V,v as _,ae as c,U as w,x as B,P as M,a6 as d,a1 as r,j as C}from"./wBALE8TK.js";import q from"./CpjolsOT.js";import"./Cz74aPtG.js";import"./CMoeGMRl.js";import"./XzJDNb45.js";import"./goxpSvUB.js";import"./DdwK3utj.js";const S=["value"],z={key:1,class:"-mt-1"},D={key:0,class:"mt-4 text-14 text-red-500"},H=Object.assign({inheritAttrs:!1},{__name:"CheckboxInput",props:M({value:{type:String,required:!1,default:""},label:{type:String,required:!1,default:"Checkbox label"},labelHtml:{type:String,required:!1,default:""},error:{type:String,required:!1,default:""},withOutline:{type:Boolean,required:!1,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:f}){const o=e,l=d(),a=d(""),n=k(e,"modelValue",{type:Boolean,default:!1}),m=()=>{const t=l.value;return t.checkValidity()?(a.value="",!0):(a.value=t.validationMessage,a.value=o.error?o.error:t.validationMessage,!1)};function p(t){l.value.checked=t}function v(){l.value.focus()}return f({toggleChecked:p,validate:m,focus:v}),(t,i)=>(r(),s("div",null,[u("label",{class:w([{"with-outline rounded-8 border border-neutral-600 py-16 pl-20 pr-24":e.withOutline},"relative inline-flex gap-8 text-18"])},[g(u("input",y({ref_key:"checkbox",ref:l,"onUpdate:modelValue":i[0]||(i[0]=h=>n.value=h),value:e.value?e.value:void 0,class:"peer size-24 shrink-0 appearance-none rounded-4 border border-neutral-600 bg-white checked:bg-neutral-800 focus:ring-offset-4",type:"checkbox"},t.$attrs),null,16,S),[[x,n.value]]),V(C,{class:"absolute left-4 top-4 size-16 text-transparent peer-checked:text-white",name:"checkmark"}),e.labelHtml?(r(),_(q,{key:0,html:e.labelHtml},null,8,["html"])):(r(),s("span",z,c(e.label),1))],2),a.value?(r(),s("div",D,c(a.value),1)):B("",!0)]))}}),P=b(H,[["__scopeId","data-v-4375f809"]]);export{P as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.