1import{_ as A,v as V,$ as _,o as n,d as r,F as f,G as m,n as S,e as q,t as k,V as i,H as E,W as w,l as B}from"./D9fXgiM3.js";const M={class:"checkbox-group clearfix"},F=["name","id","value","checked"],G={key:0},N=["for"],j=["href"],D=["for"],I=["onUpdate:modelValue","placeholder","onChange"],O=Object.assign({name:"CheckboxGroup"},{__name:"index",props:{value:{type:[String,Number,Array],default:null},options:{type:Array,required:!0},name:{type:String,required:!0},model:{type:String,default:"multiple"},inputValue:{type:Object,default:()=>({})}},emits:["change","inputChange"],setup(c,{expose:p,emit:y}){const s=c,d=V(!1),o=y;p({reset:()=>{const a=document.querySelectorAll('input[name="'+s.name+'"]');Array.from(a).forEach(e=>{e.checked=!1})}});const v=()=>{const{value:a,options:e}=s;a!==null&&Array.isArray(a)&&a.length>0?e.forEach(t=>{t.checked=Array.isArray(a)?a.includes(t.value):!1}):e.forEach(t=>{t.checked=!1})},u=()=>{const a=document.querySelectorAll('input[name="'+s.name+'"]');return Array.from(a).filter(e=>e.checked).map(e=>e.value)},g=()=>{d.value?(o("change",u()),d.value=!1):s.model==="multiple"&&o("change",u())},x=a=>{if(s.model==="single"){const e=document.querySelectorAll('input[name="'+s.name+'"]');if(!u()){d.value=!0;return}const h=a.target.value;Array.from(e).forEach(l=>{l.value!==h&&(l.checked=!1)}),o("change",u())}},C=(a,e)=>{o("inputChange",{key:a,value:e.target.value})};return _(()=>{v()}),(a,e)=>(n(),r("div",M,[(n(!0),r(f,null,m(c.options,(t,h)=>(n(),r("div",{class:S(["form-check-content",t.input?"check-input-content":""]),key:h},[q("input",{type:"checkbox",name:c.name,id:t.value,value:t.value,class:"form-checkbox",checked:t.checked,onChange:g,onClick:x},null,40,F),Array.isArray(t.title)?(n(),r("span",G,[(n(!0),r(f,null,m(t.title,(l,b)=>(n(),r(f,{key:b},[l.link?(n(),r("a",{key:1,class:"link",href:l.url,target:"_blank",rel:"noopener noreferrer",onClick:e[0]||(e[0]=i(()=>{},["stop"])),onMousedown:e[1]||(e[1]=i(()=>{},["stop"])),onKeydown:e[2]||(e[2]=i(()=>{},["stop"])),onTouchstart:e[3]||(e[3]=i(()=>{},["stop"]))},k(l.value),41,j)):(n(),r("label",{key:0,for:t.value},k(l.value),9,N))],64))),128))])):(n(),r("label",{key:1,for:t.value},k(t.title),9,D)),t.input?E((n(),r("input",{key:2,"onUpdate:modelValue":l=>c.inputValue[t.value]=l,type:"text",class:"form-checkbox-input",placeholder:a.$t("keepFunds.identityPlaceholder"),onChange:l=>C(t.value,l)},null,40,I)),[[w,c.inputValue[t.value]]]):B("",!0)],2))),128))]))}}),$=A(O,[["__scopeId","data-v-dd38fc65"]]);export{$ 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.