1import{Q as Z,d as O,S as F,q as z,m as j,h as D,c as R,g as T,e as N,n as m,i as Q,f as o,_ as S,E as W,y as d,H as G,z as p,o as J,b as K,P as V,T as x,U as X,j as Y,V as E,k as L,W as e1,t as o1,R as t1}from"./CgDnksnM.js";import{u as U}from"./BLmhnPGu.js";import{P as s1}from"./P_iLvGjq.js";const v1=Z("/images/logo.svg"),n1=O({__name:"PhoneButton",emits:["openModal"],setup(w,{emit:h}){const r=F(),v=z(),k=j(),b=D(()=>!(k.isLessThan("screen577")&&v.value)),c=h,g=()=>{c("openModal")};return(y,f)=>b.value?(N(),R("button",{key:0,class:m(["phone-button",{"landing-phone-btn":Q(r).path.includes("/complex")}]),onClick:g,"aria-label":"ÐозвониÑÑ Ð¸Ð»Ð¸ оÑÑавиÑÑ Ð·Ð°ÑвкÑ"},f[0]||(f[0]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},[o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.5973 19.3511C21.4512 19.4967 21.275 19.683 21.0882 19.8799C20.6221 20.3746 20.0398 20.9896 19.6748 21.239C17.7545 22.5512 15.1855 21.9233 13.3683 21.1662C10.9712 20.1673 8.36128 18.3263 6.01789 15.9826C3.67231 13.6388 1.83144 11.0281 0.832636 8.63225C0.0763863 6.81467 -0.552805 4.24514 0.759589 2.32444C1.00881 1.9592 1.6252 1.37779 2.11925 0.910766C2.31691 0.724539 2.50167 0.548582 2.64777 0.402961C2.90714 0.14488 3.25814 0 3.62404 0C3.98993 0 4.34094 0.14488 4.60031 0.402961L8.13354 3.93516C8.39148 4.19452 8.53627 4.54544 8.53627 4.91122C8.53627 5.27701 8.39148 5.62792 8.13354 5.88728L7.17104 6.84784C6.8496 7.16693 6.63979 7.58129 6.57282 8.02924C6.50586 8.47719 6.58533 8.93479 6.79941 9.33393C8.12326 11.8326 10.1671 13.876 12.6659 15.1995C13.065 15.4135 13.5225 15.4928 13.9703 15.4258C14.4181 15.3587 14.8323 15.1488 15.1512 14.8272L16.1113 13.8666C16.3707 13.6085 16.7217 13.4637 17.0876 13.4637C17.4535 13.4637 17.8045 13.6085 18.0638 13.8666L21.5973 17.3994C21.8552 17.6587 22 18.0095 22 18.3753C22 18.741 21.8552 19.0918 21.5973 19.3511Z",fill:"white"})],-1)]),2)):T("",!0)}}),f1=S(n1,[["__scopeId","data-v-c872c3f7"]]),a1={class:"modal-label"},l1={class:"modal-label"},r1={class:"phone-container"},i1={class:"phone-box"},u1=["href"],d1=O({__name:"PhoneModal",props:{isOpen:{type:Boolean},isLanding:{type:Boolean},phoneText:{},phoneHref:{}},emits:["close"],async setup(w,{emit:h}){let r,v;const b=W().public.strapiBaseUrl||"",c=d({text:"+7 962 400 20 30",href:"tel:+7 962 400 20 30"}),g=`${b}/api/header-footers?populate=*`,{data:y}=([r,v]=G(()=>U(g,"$9kuORq2giV")),r=await r,v(),r);p(y,s=>{var e,n,B;if((B=(n=(e=s==null?void 0:s.data)==null?void 0:e[0])==null?void 0:n.header)!=null&&B[0]){const M=s.data[0].header[0];c.value={text:M.text||"+7 962 400 20 30",href:M.href||"tel:+7 962 400 20 30"}}},{immediate:!0});const f=t1(),$=F(),i=w,q=h,t=d({name:"",phone:"",consent1:!1,consent2:!1}),a=d({name:!1,phone:!1}),l=d(!1),u=d(!1),C=()=>{q("close"),document.body.classList.remove("no-scroll"),_()},_=()=>{t.value={name:"",phone:"",consent1:!1,consent2:!1},a.value={name:!1,phone:!1},l.value=!1,u.value=!1},A=d(/^\+?\d{10,15}$/),P=s=>{const e=s.replace(/\D/g,"");return A.value.test(e)},I=()=>{t.value.name.trim()?a.value.name=!1:(t.value.name="",a.value.name=!0)},H=async()=>{if(u.value=!0,a.value.name=!t.value.name.trim(),a.value.phone=!t.value.phone||!P(t.value.phone),!t.value.consent1||!t.value.consent2){l.value=!0,u.value=!1;return}if(a.value.name||a.value.phone){u.value=!1;return}try{const s=t.value.phone.replace(/\D/g,""),e={name:t.value.name,phone:s,sourcePage:$.path,serviceName:"ÐбÑаÑÐ½Ð°Ñ ÑвÑзÑ"},{error:n}=await U("/api/sendForm",{method:"POST",body:e},"$qvpngMEvqm");if(n.value){console.error("PhoneModal sendForm error:",n.value),alert("ÐÑоизоÑла оÑибка. ÐожалÑйÑÑа, попÑобÑйÑе позже."),u.value=!1;return}f.push("/thanks"),C(),_()}catch(s){console.error("Error submitting form:",s),u.value=!1}};return p(()=>i.isOpen,s=>{s?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),J(()=>{i.isOpen&&document.body.classList.add("no-scroll");const s=e=>{e.key==="Escape"&&i.isOpen&&C()};document.addEventListener("keydown",s),K(()=>{document.removeEventListener("keydown",s),document.body.classList.remove("no-scroll")})}),p(()=>t.value.name,s=>{s&&(a.value.name=!1)}),p(()=>t.value.phone,s=>{s&&P(s)&&(a.value.phone=!1)}),p(()=>t.value.consent1,()=>{t.value.consent1&&(l.value=!1)}),p(()=>t.value.consent2,()=>{t.value.consent2&&(l.value=!1)}),(s,e)=>s.isOpen?(N(),R("div",{key:0,class:"ipoteka__modal",onClick:V(C,["self"])},[o("div",{class:m(["ipoteka__modal-content",{"landing-theme":i.isLanding}])},[o("button",{class:"modal-close","aria-label":"ÐакÑÑÑÑ Ð¼Ð¾Ð´Ð°Ð»Ñное окно",onClick:C},e[7]||(e[7]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[o("path",{d:"M12.8404 10.0005L18.6586 4.1854C18.7172 4.12639 18.75 4.04665 18.75 3.96353C18.75 3.88042 18.7172 3.80068 18.6586 3.74167L16.2588 1.34189C16.1998 1.28334 16.1201 1.25049 16.037 1.25049C15.9538 1.25049 15.8741 1.28334 15.8151 1.34189L10 7.16012L4.1849 1.34189C4.1259 1.28334 4.04615 1.25049 3.96303 1.25049C3.87992 1.25049 3.80017 1.28334 3.74117 1.34189L1.34139 3.74167C1.28285 3.80067 1.25 3.88041 1.25 3.96353C1.25 4.04664 1.28285 4.12639 1.34139 4.18539L7.15962 10.0005L1.34139 15.8156C1.28285 15.8746 1.25 15.9543 1.25 16.0375C1.25 16.1206 1.28285 16.2003 1.34139 16.2593L3.74117 18.6591C3.80041 18.7172 3.88007 18.7497 3.96303 18.7497C4.046 18.7497 4.12566 18.7172 4.1849 18.6591L10 12.633L15.8151 18.4513C15.8743 18.5097 15.954 18.5425 16.037 18.5427C16.1199 18.5427 16.1999 18.5097 16.2589 18.4513L18.6587 16.0515C18.7173 15.9925 18.7501 15.9128 18.7501 15.8296C18.7501 15.7465 18.7173 15.6668 18.6587 15.6078L12.8405 9.90055Z",fill:"#CFCFD0"})],-1)])),o("form",{class:"modal-form",onSubmit:V(H,["prevent"])},[e[12]||(e[12]=o("h2",{class:"modal-title"},"ÐÑÑавÑÑе заÑвкÑ",-1)),o("label",a1,[x(o("input",{"onUpdate:modelValue":e[0]||(e[0]=n=>t.value.name=n),type:"text",class:m(["modal-input",{"input-error":a.value.name}]),onBlur:I,placeholder:"ÐаÑе имÑ"},null,34),[[X,t.value.name]])]),o("label",l1,[Y(s1,{modelValue:t.value.phone,"onUpdate:modelValue":e[1]||(e[1]=n=>t.value.phone=n),error:a.value.phone,"onUpdate:error":e[2]||(e[2]=n=>a.value.phone=n),placeholder:"ÐведиÑе номеÑ"},null,8,["modelValue","error"])]),e[13]||(e[13]=o("button",{type:"submit",class:"modal-button"},"ÐÑпÑавиÑÑ Ð·Ð°ÑвкÑ",-1)),o("label",{class:m(["modal-checkbox",{error:l.value}]),onClick:e[4]||(e[4]=n=>l.value=!1)},[x(o("input",{type:"checkbox","onUpdate:modelValue":e[3]||(e[3]=n=>t.value.consent1=n)},null,512),[[E,t.value.consent1]]),e[8]||(e[8]=o("span",{class:"custom-checkbox"},null,-1)),e[9]||(e[9]=o("span",{class:"checkbox-text"},[L("Я Ð´Ð°Ñ "),o("a",{href:"/consent",class:"link"},"ÑоглаÑие на обÑабоÑÐºÑ Ð¼Ð¾Ð¸Ñ
пеÑÑоналÑнÑÑ
"),L(" даннÑÑ
в ÑооÑвеÑÑÑвии Ñ Ð¿Ð¾Ð»Ð¸Ñикой конÑиденÑиалÑноÑÑи")],-1))],2),o("label",{class:m(["modal-checkbox",{error:l.value}]),onClick:e[6]||(e[6]=n=>l.value=!1)},[x(o("input",{type:"checkbox","onUpdate:modelValue":e[5]||(e[5]=n=>t.value.consent2=n)},null,512),[[E,t.value.consent2]]),e[10]||(e[10]=o("span",{class:"custom-checkbox"},null,-1)),e[11]||(e[11]=o("span",{class:"checkbox-text"},[L("ÐÐ°Ñ ÑоглаÑие на обÑабоÑÐºÑ Ð¿ÐµÑÑоналÑнÑÑ
даннÑÑ
и ÑоглаÑаÑÑÑ Ñ "),o("a",{href:"/policy"},"полиÑикой конÑиденÑиалÑноÑÑи")],-1))],2)],32),e[15]||(e[15]=o("p",{class:"phone-label"},"Ðли позвониÑе по номеÑÑ",-1)),o("div",r1,[o("div",i1,[e[14]||(e[14]=e1('<div class="phone-icon" data-v-f999d696><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="none" data-v-f999d696><g clip-path="url(#clip0_2205_15343)" data-v-f999d696><path fill-rule="evenodd" clip-rule="evenodd" d="M17.6703 15.833C17.5508 15.9521 17.4067 16.1045 17.2538 16.2656C16.8725 16.6704 16.396 17.1735 16.0974 17.3776C14.5263 18.4512 12.4243 17.9375 10.9376 17.318C8.97622 16.5008 6.84087 14.9945 4.92355 13.0769C3.00444 11.1592 1.49828 9.0232 0.68107 7.06299C0.0623204 5.57588 -0.452473 3.47354 0.621305 1.90206C0.825211 1.60323 1.32953 1.12753 1.73375 0.745416C1.89547 0.593049 2.04664 0.449084 2.16618 0.329939C2.37839 0.118783 2.66558 0.000244141 2.96494 0.000244141C3.26431 0.000244141 3.5515 0.118783 3.76371 0.329939L6.65454 3.21992C6.86558 3.43213 6.98405 3.71924 6.98405 4.01852C6.98405 4.31779 6.86558 4.60491 6.65454 4.81711L5.86704 5.60303C5.60404 5.8641 5.43237 6.20312 5.37759 6.56962C5.3228 6.93613 5.38782 7.31052 5.56297 7.6371C6.64613 9.68145 8.31832 11.3534 10.3629 12.4362C10.6894 12.6113 11.0637 12.6762 11.4301 12.6213C11.7965 12.5664 12.1353 12.3947 12.3962 12.1316L13.1818 11.3457C13.394 11.1345 13.6812 11.016 13.9806 11.016C14.2799 11.016 14.5671 11.1345 14.7793 11.3457L17.6703 14.2361C17.8814 14.4483 17.9998 14.7353 17.9998 15.0346C17.9998 15.3338 17.8814 15.6208 17.6703 15.833Z" fill="white" data-v-f999d696></path></g><defs data-v-f999d696><clipPath id="clip0_2205_15343" data-v-f999d696><rect width="18" height="18" fill="white" data-v-f999d696></rect></clipPath></defs></svg></div>',1)),o("a",{href:i.phoneHref||c.value.href,class:"phone-number"},o1(i.phoneText||c.value.text),9,u1)])])],2)])):T("",!0)}}),C1=S(d1,[["__scopeId","data-v-f999d696"]]);export{v1 as _,C1 as a,f1 as b};
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.