PageSourceSearch

https://www.nssmag.com/_nuxt/CV2HIO18.js

js nssmag.com collected 2026-10-02 03:14:40 UTC 2,098 bytes, 1 lines download raw bytes

1import{_,l as h,i as I,d as q}from"./CM_jYEz6.js";import{r as w,a as T,R as l,E as i,a8 as k,aa as B,u as t,ao as L,Y as g,a1 as v,a3 as b,a2 as P,a0 as x,U as N,W as E}from"./BQ9QYOY_.js";const F={class:"form-check"},Y=["data-id"],D={key:0,class:"mb-0"},M={key:1,class:"mb-0"},O=["href"],R=["href"],$={__name:"PrivacyField",props:{id:{required:!0},modelValue:{default:0},type:{type:String,default:"POLICY"},implicit:{default:0},required:{default:0},title:{type:String,required:!0},description:{type:String,default:null},policyUrl:{type:String,default:null},optInTime:{type:String,default:null}},emits:["update:modelValue","change"],setup(e,{emit:V}){var m,y;const o=e,r=V,n=((m=h().get("legalPages").privacy)==null?void 0:m.slug)??null,s=((y=h().get("legalPages").privacy)==null?void 0:y.url)??null,a=w({checked:o.modelValue==1}),C=o.required=="1"?{checked:{checked:p=>p==!0}}:{},u=I(C,a);T(a,()=>{r("update:modelValue",a.checked?1:0)});const U=()=>{r("change",{value:a,valid:!u.value.$invalid})};return o.optInTime&&console.error("Privacy field with opt-in time! "+o.optInTime),(p,c)=>{var f;const S=q;return l(),i("div",F,[e.implicit==1?k((l(),i("input",{key:0,"onUpdate:modelValue":c[0]||(c[0]=d=>t(a).checked=d),type:"hidden"},null,512)),[[B,t(a).checked]]):k((l(),i("input",{key:1,"data-id":e.id,"onUpdate:modelValue":c[1]||(c[1]=d=>t(a).checked=d),type:"checkbox",onChange:U,class:g(["form-check-input",{"is-invalid":(f=t(u).checked)==null?void 0:f.$errors.length}])},null,42,Y)),[[L,t(a).checked]]),v("label",{class:g(["form-check-label mb-0",{"fw-bold":e.type=="POLICY"&&e.required==1}])},[b(P(e.title)+" ",1),e.description?(l(),i("p",D,[v("small",null,P(e.description),1)])):x("",!0),e.policyUrl||t(s)||t(n)?(l(),i("p",M,[e.policyUrl?(l(),i("a",{key:0,href:e.policyUrl,target:"_blank"}," Privacy policy ",8,O)):t(n)?(l(),N(S,{key:1,to:t(n),target:"_blank"},{default:E(()=>[...c[2]||(c[2]=[b(" Privacy policy ",-1)])]),_:1},8,["to"])):(l(),i("a",{key:2,href:t(s),target:"_blank"}," Privacy policy ",8,R))])):x("",!0)],2)])}}},j=_($,[["__scopeId","data-v-43c5b068"]]);export{j 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.