1import{o as p,c as d,a as v,X as f,z as a,ac as c,G as g}from"./CmYaZ34O.js";function m(r,o){return p(),d("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75"})])}const w=()=>{const r=f(),o=a("");a("blog");const t=a(!1),u=a(!1),e=a({email:[],gpdr:[]}),l=a(!1),n=a(!1);return c(l,()=>{e.value&&e.value.gpdr&&(e.value.gpdr=[])}),c(o,()=>{e.value&&e.value.email&&(e.value.email=[])}),{email:o,errors:e,subscribed:u,consent:l,loading:t,subscribe:async i=>{if(!u.value){if(!l.value){e.value&&e.value.gpdr&&(e.value.gpdr=[]),e.value.gpdr.push("To proceed, you need to accept data processing"),r.$toast.error("To proceed, you need to accept data processing");return}return t.value=!0,await g(`${r.$config.public.apiBaseUrl}/auth/subscribe`,{method:"POST",headers:{"Content-Type":"application/json"},body:i},"$Y4tgmGDzkE").then(s=>{if(s.error.value){e.value&&e.value.type&&delete e.value.type,e.value=s.error.value.data,r.$toast.error("To proceed, you need fix errors"),t.value=!1;return}return t.value=s.status.value==="pending",s.status.value==="success"&&(u.value=!0,n.value=!0,r.$toast.success("Subscribed!")),s}).finally(()=>{t.value=!1})}},showDialog:n}};export{m as r,w as u};
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.