1import{_ as y}from"./DqOv6iJ2.js";import{_ as g}from"./BZ_qjlfp.js";import B from"./BFUp3JX5.js";import{u as N}from"./D-hmU_Rr.js";import{d as O,O as V,ah as j,h as q,l as d,o as t,m as s,s as D,q as e,e as i,F as E,D as I,p,a1 as w,t as u,x as f,n as F}from"./D1BBo57i.js";import"./e0vTujt4.js";import"./CgkPiwjc.js";const z={key:0},A=["id","value","name","checked"],G=["for"],L=O({__name:"CmsFormieFieldCheckboxes",props:{field:{type:Object,required:!0},namespace:{type:Array,default:()=>[]}},setup(h){const k=h,{field:r,namespace:C}=V(k),{getFieldId:n,getFieldName:m}=N(r.value,C.value),a=j("errors",null),_=q(()=>{if(!a)return null;const o=m();return o&&a.value?.[o]?a.value?.[o]:null});return(o,M)=>{const x=y,b=g,v=B;return t(),d(v,null,{legend:s(()=>[f(u(e(r).label)+" ",1),e(r).required?(t(),i("span",z,"*")):F("",!0),e(r).instructions?(t(),d(x,{key:1},{default:s(()=>[f(u(e(r).instructions),1)]),_:1})):F("",!0)]),inputs:s(()=>[(t(!0),i(E,null,I(e(r).options,(c,l)=>(t(),i("div",{key:l},[p("input",{id:e(n)([l]),class:w({hasError:e(_)}),value:c.value,name:e(m)([""]),checked:c.isDefault,type:"checkbox"},null,10,A),p("label",{for:e(n)([l])},u(c.label),9,G)]))),128))]),default:s(()=>[D(b,{id:`${e(n)()}__error`,errors:e(_)},null,8,["id","errors"])]),_:1})}}}),P=Object.assign(L,{__name:"CmsFormieFieldCheckboxes"});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.