PageSourceSearch

https://www.gimi.be/assets/Checkbox.a2bf9146.js

js gimi.be collected 2026-10-08 09:58:47 UTC 1,729 bytes, 1 lines download raw bytes

1import{d as p,x as $,o as u,f as h,W as x,ay as y,h as l,A as m,Z as C,_ as q,I as f,E as V,X as M}from"./vendor.040a5d83.js";import{c as N,v as k,u as j}from"./Form.6e520142.js";import{_ as S}from"./index.bdc97856.js";const w=["name","value","disabled"],B={key:0,class:"form-label__required"},I=["innerHTML"],T=p({__name:"Checkbox",props:{item:{type:Object,required:!0,default:()=>({uid:"1234",kind:"checkbox",label:"I accept the terms and conditions.",name:"terms",value:"",validations:[]})},groupName:{type:String,required:!1},state:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:b}){var c;const a=t,e=`${a.item.uid}-${a.item.name}`,v=$({[e]:`${a.state==="on"||a.state==="true"||a.item.checked}`}),n={[e]:a.item.validations?(c=a.item.validations)==null?void 0:c.reduce((s,i)=>{const o=i.message||"Missing message",{kind:d}=i;switch(d){case"required":s[d]={$message:o,$params:{type:"isChecked"},$validator:k.isChecked};break;default:s[d]=N.withMessage(o,k[d]);break}return s},{}):{}},r=j(n,v),g=s=>{b("update:modelValue",`${s.target.checked}`)};return(s,i)=>(u(),h("div",{class:M(["form-checkbox",{required:n[e].required,invalid:l(r)[e].$errors.length}])},[x(m("input",{id:e,"onUpdate:modelValue":i[0]||(i[0]=o=>l(r)[e].$model=o),class:"form-element",name:t.groupName||e,value:t.item.value,disabled:t.item.disabled,type:"checkbox",onChange:g},null,40,w),[[y,l(r)[e].$model]]),m("label",{class:"form-label",for:e},[C(q(t.item.label)+" ",1),n[e].required?(u(),h("sup",B," Required ")):f("",!0)]),t.item.hint?V(s.$slots,"hint",{key:0,content:t.item.hint},()=>[m("div",{class:"form-hint",innerHTML:t.item.hint},null,8,I)],!0):f("",!0)],2))}});var F=S(T,[["__scopeId","data-v-3dc2d9e4"]]);export{F 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.