PageSourceSearch

https://teustat.ru/_nuxt/FeedbackModal.vue.893fef93.js

js teustat.ru collected 2026-10-08 10:14:00 UTC 6,065 bytes, 1 lines download raw bytes

1import{_ as j}from"./nuxt-link.0e8867d1.js";import{u as z}from"./landingStore.7b5cf8a8.js";import{d as Q,bE as W,bH as Y,b as J,bG as K,r as v,c as B,e as h,k as C,f as w,g as i,j as o,h as e,av as A,w as s,t as c,am as N,bA as L,i as b,L as X,au as Z,bI as ee}from"./entry.6aa4a3e6.js";import{i as te,v as le,P as ae,p as oe}from"./mail.38a71685.js";import{r as S,e as ne,u as se}from"./index.d4a2a39f.js";const ie={class:"feedback-modal"},re={class:"feedback-modal__form"},ue={class:"input-wrapper"},de={key:0,class:"flex align-items-center"},pe=["src","alt"],ce={class:"code"},me={key:1},ge={class:"flex align-items-center"},ve=["alt","src"],fe=["textContent"],he=["textContent"],be={class:"checkbox-wrapper"},_e={class:"checkbox-wrapper"},ye={key:0,class:"checkbox-wrapper"},$e={class:"feedback-modal__buttons"},Le=Q({__name:"FeedbackModal",props:{loadingSubmit:{type:Boolean,default:!1},hideAdvertisingCheckbox:{type:Boolean,default:!1}},emits:["close","submit"],setup(ke,{emit:E}){const I=E,m=W(),R=z(),F=Y(),{locale:u}=J(),{search:g}=K(),r=v({email:"",phone:"",company:""}),d=v({titleImg:"ru",locales:{ru:"Россия",en:"Russia",cn:"Russia"},code:"+7",maxPhoneLength:10}),_=v(!1),y=v(!1),P=v(!1),p=v(),$=v(!1),O=l=>{l.target.value=l.target.value.replace(/\D/g,"");let t=l.target.value;if(r.value.phone=t,d.value&&t.length>2)try{p.value=oe(t,d.value.titleImg.toUpperCase()),l.target.value=p.value.formatNational();let n=p.value.format("NATIONAL",{nationalPrefix:!1});n&&n.split("")[0]==="0"&&(n=n.slice(1)),r.value.phone=n,R.statementFormData.phone=(p.value.nationalNumber&&p.value.nationalNumber[0]==="0",p.value.number)}catch{}},G=B(()=>({email:{required:S,email:ne},phone:{required:S},company:{required:S}})),k=se(G,r),T=B(()=>{if(!r.value.phone)return!0;if(p.value&&d.value){let l=p.value.nationalNumber;return te(l,d.value.titleImg.toUpperCase())&&!le(l,d.value.titleImg.toUpperCase())}return!1}),x=l=>{I("close"),Z(()=>{F.push(l)})},M=async()=>{if($.value=!0,k.value.$invalid&&T.value)return;const l=new FormData;ee.forEach(r.value,(t,n)=>{l.append(n,String(t).trim())}),I("submit",l)};return(l,t)=>{const n=h("InputText"),q=h("Dropdown"),D=h("Checkbox"),f=j,V=h("i18n-t"),U=h("Button");return C(),w("div",ie,[i("div",re,[o(n,{modelValue:e(r).email,"onUpdate:modelValue":t[0]||(t[0]=a=>e(r).email=a),placeholder:`${l.$t("general.email")}*`,class:A({"p-invalid":e($)&&e(k).email.$invalid})},null,8,["modelValue","placeholder","class"]),i("div",ue,[o(q,{options:e(ae),modelValue:e(d),"onUpdate:modelValue":t[1]||(t[1]=a=>N(d)?d.value=a:null),class:"phone-code-dropdown"},{value:s(({value:a,placeholder:H})=>[a?(C(),w("div",de,[i("img",{width:"26",height:"20",style:{"margin-right":"10px",width:"26px"},src:`/images/locales/${a.titleImg}.svg`,alt:`icon-lang-${a.titleImg}`},null,8,pe),i("div",ce,c(a.code),1)])):(C(),w("span",me,c(H),1))]),option:s(({option:a})=>[i("div",ge,[i("img",{width:"18",height:"15",style:{"margin-right":"10px",width:"18px"},alt:`icon-lang-${a.titleImg}`,src:`/images/locales/${a.titleImg}.svg`},null,8,ve),i("div",{textContent:c(`${a.locales[e(u)]||a.locales.ru}`)},null,8,fe)])]),empty:s(()=>[i("span",{textContent:c(l.$t("general.noVariantsAvl"))},null,8,he)]),_:1},8,["options","modelValue"]),o(n,{class:A({"p-invalid":e($)&&(!e(T)||e(k).phone.$invalid)}),value:e(r).phone,onInput:O,placeholder:`${l.$t("general.phone")}*`,inputmode:"numeric","enter-key-hint":"done",maxlength:e(d).maxPhoneLength,style:{"border-top-left-radius":"0","border-bottom-left-radius":"0"}},null,8,["class","value","placeholder","maxlength"])]),o(n,{modelValue:e(r).company,"onUpdate:modelValue":t[2]||(t[2]=a=>e(r).company=a),placeholder:`${l.$t("general.company")}*`,class:A({"p-invalid":e($)&&e(k).company.$invalid})},null,8,["modelValue","placeholder","class"]),i("div",be,[o(D,{modelValue:e(_),"onUpdate:modelValue":t[3]||(t[3]=a=>N(_)?_.value=a:null),binary:!0},null,8,["modelValue"]),o(V,{tag:"label",keypath:"general.iGiveConsentTo",class:"legal-label"},{default:s(()=>[o(f,{onClick:t[4]||(t[4]=L(a=>x(e(m).prefixLocale?`/${e(u)}/policy-consent`:"/policy-consent"+(e(g)||"")),["prevent"])),to:e(m).prefixLocale?`/${e(u)}/policy-consent`:"/policy-consent"+(e(g)||"")},{default:s(()=>[b(c(l.$t("general.personalDataProcessing")),1)]),_:1},8,["to"])]),_:1})]),i("div",_e,[o(D,{modelValue:e(y),"onUpdate:modelValue":t[5]||(t[5]=a=>N(y)?y.value=a:null),binary:!0},null,8,["modelValue"]),o(V,{tag:"label",keypath:"general.iAgreeToTheTermsOf",class:"legal-label"},{default:s(()=>[o(f,{onClick:t[6]||(t[6]=L(a=>x(e(m).prefixLocale?`/${e(u)}/user-agreement`:"/user-agreement"+(e(g)||"")),["prevent"])),to:e(m).prefixLocale?`/${e(u)}/user-agreement`:"/user-agreement"+(e(g)||"")},{default:s(()=>[b(c(l.$t("general.userAgreement1")),1)]),_:1},8,["to"]),o(f,{onClick:t[7]||(t[7]=L(a=>x(e(m).prefixLocale?`/${e(u)}/cooperation-new`:"/cooperation-new"+(e(g)||"")),["prevent"])),to:e(m).prefixLocale?`/${e(u)}/cooperation-new`:"/cooperation-new"+(e(g)||"")},{default:s(()=>[b(c(l.$t("general.publicOffer1")),1)]),_:1},8,["to"])]),_:1})]),l.hideAdvertisingCheckbox?X("",!0):(C(),w("div",ye,[o(D,{modelValue:e(P),"onUpdate:modelValue":t[8]||(t[8]=a=>N(P)?P.value=a:null),binary:!0},null,8,["modelValue"]),o(V,{tag:"label",keypath:"general.iGiveConsentTo",class:"legal-label"},{default:s(()=>[o(f,{to:e(m).prefixLocale?`/${e(u)}
1/advertising-consent`:"/advertising-consent"+(e(g)||"")},{default:s(()=>[b(c(l.$t("general.receivingAdvertisingNewsletters")),1)]),_:1},8,["to"])]),_:1})]))]),o(V,{tag:"div",keypath:"general.pressButtonSendYouAgree",class:"legal-text"},{default:s(()=>[o(f,{to:"/policy",onClick:t[9]||(t[9]=L(a=>x(e(m).prefixLocale?`/${e(u)}/policy`:"/policy"+(e(g)||"")),["prevent"]))},{default:s(()=>[b(c(l.$t("general.privacyPolicy1")),1)]),_:1})]),_:1}),i("div",$e,[o(U,{label:l.$t("general.close"),rounded:"",outlined:"",onClick:t[10]||(t[10]=a=>I("close"))},null,8,["label"]),o(U,{label:l.$t("general.send"),rounded:"",onClick:M,disabled:!e(y)||!e(_),loading:l.loadingSubmit},null,8,["label","disabled","loading"])])])}}});export{Le as _};

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.