1import y from"./BMOrxitM.js";import{a as v,R as o,E as r,L as V,a7 as f,U as _,u,d as h}from"./BQ9QYOY_.js";import{i as g}from"./CM_jYEz6.js";const q={class:"privacy-fields"},B={__name:"Privacy",props:{modelValue:{type:Object,default:null},type:{type:String,default:"POLICY"},fields:{type:Object,required:!0}},emits:["update:modelValue","change"],setup(a,{emit:d}){const t=a,n=d,l=h({});for(let i in t.fields)l.value[t.fields[i].id]=t.modelValue&&t.modelValue[t.fields[i].id]?t.modelValue[t.fields[i].id]:0;const s=g(l);v(l.value,()=>{n("update:modelValue",l.value)});const c=()=>{n("change",{value:l,valid:!s.value.$invalid})};return(i,F)=>{const p=y;return o(),r("div",q,[(o(!0),r(V,null,f(a.fields,e=>(o(),_(p,{modelValue:u(l)[e.id],"onUpdate:modelValue":m=>u(l)[e.id]=m,id:e.id,type:e.type,implicit:e.implicit??!1,required:e.type==a.type&&(e.required??!1)?"1":"0",title:e.title,description:e.description??null,"policy-url":e.policyUrl??null,"opt-in-time":e.optInTime??null,onChange:c},null,8,["modelValue","onUpdate:modelValue","id","type","implicit","required","title","description","policy-url","opt-in-time"]))),256))])}}};export{B 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.