1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModalsStatus-D3tcXvP_.js","./Close-DxIWB6Hn.js","./DxUcK_Zp.js","./vendor_finalmodal-C7sWkqng.js","./vendor_finalmodal.css-BMmZewmd.css","./vendor_photoswipe-C0KeZ_y4.js","./vendor_photoswipe.css-lC4zhnxn.css","./vendor_libphonenumber-9_coOF95.js","./entry.css-D9nyUgMC.css","./Close.css-MqhoBpbV.css","./ModalsStatus.css-Bewtp2o2.css"])))=>i.map(i=>d[i]); 2import{Q as I,P as S,U as V,B as g,a as _,o as p,p as n,b as E,l as i,w as O,u as e,S as R,_ as U}from"./vendor_finalmodal-C7sWkqng.js";import{_ as B,I as d}from"./Input-Dacwd-nn.js";import{_ as P}from"./PrivacyPolicy-C3VC5e0t.js";import{_ as k,O as N,b as x,r as F,B as M,s as A,K as H}from"#entry";import"./Checkbox-u2-ljAj1.js";import"./vendor_photoswipe-C0KeZ_y4.js";import"./vendor_libphonenumber-9_coOF95.js";const L=R(()=>U(()=>import("./ModalsStatus-D3tcXvP_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(s=>s.default||s)),C={class:"articles-subscribe"},D={class:"articles-subscribe__container container"},q={class:"articles-subscribe__content"},z={key:0,class:"articles-subscribe__title"},Y=["innerHTML"],G={class:"articles-subscribe__row"},K={class:"articles-subscribe__row"},Q={__name:"BlocksArticlesSubscribe",props:{title:{type:String,default:"Subscribe to receive top articles every week"},form_type:{type:String,default:""}},setup(s){const b=s,f=N(),r=I({component:L}),l=S(null),t=V(y()),c=g(!1);function y(){return{name:"",email:"",policy:!0}}function h(){l.value!==null&&l.value.validate().then(async u=>{if(u){c.value=!0;try{const o={email:t.email,phone:t.phone,policy:t.policy,consent:!0,urlOrigin:window?.location?.href,form_type:b.form_type||"subscription"};await f.sendLeadsData(o),r.patchOptions({attrs:{title:"Thank you â your request has been sent",status:"success",description:"Our manager will c
2ontact you shortly"}}),await r.open(),t.name="",t.email="",l.value.resetForm()}catch(o){r.patchOptions({attrs:{title:"Error",status:"error",description:"Something went wrong, please try again later"}}),await r.open(),console.error("Error submitting form:",o)}finally{c.value=!1}}})}return(u,o)=>{const m=B,v=P,w=x,T=H;return p(),_("div",C,[n("div",D,[n("div",q,[s.title?(p(),_("div",z,[n("p",{class:"h2-r-o",innerHTML:u.$tp(s.title)},null,8,Y)])):E("",!0),i(T,{ref_key:"formRef",ref:l,class:"articles-subscribe__form",onSubmit:h},{default:O(()=>[n("div",G,[i(m,{modelValue:e(t).name,"onUpdate:modelValue":o[0]||(o[0]=a=>e(t).name=a),name:"name",label:"Full name",placeholder:"Full name",rules:"required",theme:e(d).PRIMARY,class:"articles-subscribe__input"},null,8,["modelValue","theme"]),i(m,{modelValue:e(t).email,"onUpdate:modelValue":o[1]||(o[1]=a=>e(t).email=a),name:"email",type:"email",label:"Email",placeholder:"Email",rules:"required|email",theme:e(d).PRIMARY,class:"articles-subscribe__input"},null,8,["modelValue","theme"])]),n("div",K,[i(v,{modelValue:e(t).policy,"onUpdate:modelValue":o[2]||(o[2]=a=>e(t).policy=a),class:"articles-subscribe__policy"},null,8,["modelValue"]),i(w,{title:"Subscribe","type-button":"submit",size:e(A).md,theme:e(M).PRIMARY,icon_position:e(F).RIGHT,"is-loading":e(c),icon:"arrow-right",class:"articles-subscribe__button"},null,8,["size","theme","icon_position","is-loading"])])]),_:1},512)])])])}}},te=k(Q,[["__scopeId","data-v-d52198ac"]]);export{te 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.