PageSourceSearch

https://cdn2.umnico.com/production/landing-nuxt/_nuxt/DgA0-UEz.js

js umnico.com collected 2026-10-01 11:38:57 UTC 4,631 bytes, 1 lines download raw bytes

1import{e as h,N as d,k as n,h as e,am as g,al as r,ag as m,a2 as o,j as c,af as u,a as p}from"./BzPfCV2i.js";const f="data:image/svg+xml,%3csvg%20width='123'%20height='123'%20viewBox='0%200%20123%20123'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M75.1673%20112.751C75.1673%20120.299%2047.834%20120.299%2047.834%20112.751V78.5846C47.834%2074.96%2049.2739%2071.4838%2051.8369%2068.9208C54.3999%2066.3578%2057.876%2064.918%2061.5007%2064.918C65.1253%2064.918%2068.6014%2066.3578%2071.1644%2068.9208C73.7274%2071.4838%2075.1673%2074.96%2075.1673%2078.5846V112.751Z'%20fill='%23C1694F'/%3e%3cpath%20d='M88.8327%2010.25H34.166V78.5833H116.166V37.5833C116.166%2030.3341%20113.286%2023.3817%20108.16%2018.2557C103.034%2013.1298%2096.0819%2010.25%2088.8327%2010.25Z'%20fill='%2399AAB5'/%3e%3cpath%20d='M34.1673%2010.25C26.9181%2010.25%2019.9657%2013.1298%2014.8397%2018.2557C9.71374%2023.3817%206.83398%2030.3341%206.83398%2037.5833V78.5833H61.5007V37.5833C61.5007%2030.3341%2058.6209%2023.3817%2053.4949%2018.2557C48.3689%2013.1298%2041.4166%2010.25%2034.1673%2010.25Z'%20fill='%23292F33'/%3e%3cpath%20d='M30.7506%2010.25C17.5418%2010.25%206.83398%2022.4885%206.83398%2037.5833V78.5833H54.6673V37.5833C54.6673%2022.4885%2043.9595%2010.25%2030.7506%2010.25Z'%20fill='%2399AAB5'/%3e%3cpath%20d='M88.834%203.41797H75.1673C73.355%203.41797%2071.6169%204.13791%2070.3354%205.41941C69.0539%206.7009%2068.334%208.43899%2068.334%2010.2513V51.2513C68.334%2053.0636%2069.0539%2054.8017%2070.3354%2056.0832C71.6169%2057.3647%2073.355%2058.0846%2075.1673%2058.0846C76.9796%2058.0846%2078.7177%2057.3647%2079.9992%2056.0832C81.2807%2054.8017%2082.0007%2053.0636%2082.0007%2051.2513V23.918H88.834C90.6463%2023.918%2092.3844%2023.198%2093.6659%2021.9165C94.9474%2020.635%2095.6673%2018.8969%2095.6673%2017.0846V10.2513C95.6673%208.43899%2094.9474%206.7009%2093.6659%205.41941C92.3844%204.13791%2090.6463%203.41797%2088.834%203.41797Z'%20fill='%23FE1B51'/%3e%3c/svg%3e",b={name:"LeadMagnet",props:{locale:{type:String,default:"ru"}},data(){return{mailbox:f,name:"",email:"",agree:!0,errorMessage:"",successMessage:""}},methods:{validate(){return this.errorMessage="",!this.name||!this.email?(this.errorMessage=this.$t("__common_blog_lead_magnet_error1"),!1):this.agree?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(this.email)?!0:(this.errorMessage=this.$t("__common_blog_lead_magnet_error3"),!1):(this.errorMessage=this.$t("__common_blog_lead_magnet_error2"),!1)},async handleSubmit(){if(this.validate()){this.errorMessage="";try{const t={name:this.name,email:this.email,lang:this.locale},a=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(t)}),i=await a.json();a.ok&&(i.result||!i.error)&&(window&&window.dataLayer&&window.dataLayer.push({event:"email_subscription"}),p.close())}catch{}}}}},C={class:"lead-modal"},M={class:"lead-modal__block-img"},v=["src"],w={class:"lead-modal__content"},y={class:"lead-modal__field"},V=["placeholder"],x={class:"lead-modal__field"},k=["placeholder"],S={class:"btn btn-alert lead-modal__submit",type:"submit"},B={class:"lead-modal__messages"},H={key:0,class:"lead-modal__error"},Z={key:1,class:"lead-modal__success"},A={class:"lead-modal__field lead-modal__field--checkbox"},L={class:"lead-modal__checkbox-label"},N={class:"lead-modal__checkbox-text"};function j(t,a,i,F,s,_){return d(),n("div",C,[e("div",M,[e("img",{class:"lead-modal__img",loading:"lazy",decoding:"async",draggable:"false",width:"123",height:"123",src:s.mailbox,alt:"mailbox"},null,8,v)]),e("div",w,[e("form",{class:"lead-modal__form",onSubmit:a[3]||(a[3]=g((...l)=>_.handleSubmit&&_.handleSubmit(...l),["prevent"]))},[e("div",y,[r(e("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>s.name=l),type:"text",class:"lead-modal__input",placeholder:t.$t("__common_blog_lead_magnet_name")},null,8,V),[[m,s.name,void 0,{trim:!0}]])]),e("div",x,[r(e("input",{"onUpdate:modelValue":a[1]||(a[1]=l=>s.email=l),type:"email",class:"lead-modal__input",placeholder:t.$t("__common_blog_lead_magnet_mail")},null,8,k),[[m,s.email,void 0,{trim:!0}]])]),e("button",S,[e("span",null,o(t.$t("__common_blog_lead_magnet_button")),1
1)]),e("div",B,[s.errorMessage?(d(),n("p",H,o(s.errorMessage),1)):c("",!0),s.successMessage?(d(),n("p",Z,o(s.successMessage),1)):c("",!0)]),e("div",A,[e("label",L,[r(e("input",{"onUpdate:modelValue":a[2]||(a[2]=l=>s.agree=l),type:"checkbox",class:"lead-modal__checkbox"},null,512),[[u,s.agree]]),e("span",N,o(t.$t("__common_blog_lead_magnet_agreement")),1)])])],32)])])}const T=h(b,[["render",j],["__scopeId","data-v-1f7f1c78"]]);export{T 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.