1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[356],{331:(e,t,n)=>{"use strict";n.d(t,{ContactForm:()=>o});var s=n(5155),a=n(2619),r=n.n(a),i=n(2115),l=n(8901);function o(e){let{title:t="ÐаказаÑÑ Ð·Ð²Ð¾Ð½Ð¾Ðº",submitLabel:n="ÐÑпÑавиÑÑ",showTitle:a=!1,email:o="[email protected]",phoneHref:c="tel:88002509055",formEndpoint:d}=e,[h,m]=(0,i.useState)(!1),[u,p]=(0,i.useState)(!1),[x,b]=(0,i.useState)(null),f=(e,t,n)=>{let s=encodeURIComponent("ÐаÑвка Ñ ÑайÑа krashenayadoska.ru"),a=encodeURIComponent("ÐмÑ: ".concat(e,"\nТелеÑон: ").concat(t,"\nÐомменÑаÑий: ").concat(n||"â"));window.location.href="mailto:".concat(o,"?subject=").concat(s,"&body=").concat(a)},g=async e=>{var t,n,s;e.preventDefault(),b(null),p(!0);let a=new FormData(e.currentTarget),r=String(null!=(t=a.get("name"))?t:"").trim(),i=String(null!=(n=a.get("phone"))?n:"").trim(),o=String(null!=(s=a.get("message"))?s:"").trim();if(d)try{if(!(await fetch(d,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({name:r,phone:i,message:o})})).ok)throw Error("form-submit-failed");(0,l.o)("lead_form",{source:"endpoint"}),m(!0);return}catch(e){b("Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ Ð·Ð°ÑÐ²ÐºÑ Ð¾Ð½Ð»Ð°Ð¹Ð½. ÐÑкÑоем поÑÑовÑй клиенÑ."),f(r,i,o),m(!0);return}finally{p(!1)}f(r,i,o),(0,l.o)("lead_form",{source:"mailto"}),m(!0),p(!1)};if(h)return(0,s.jsxs)("div",{className:"rounded-2xl border border-white/15 bg-white/5 p-6",children:[(0,s.jsx)("p",{className:"text-base font-medium text-white",children:"СпаÑибо за заÑвкÑ!"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-white/70",children:null!=x?x:"ÐÑли поÑÑовÑй ÐºÐ»Ð¸ÐµÐ½Ñ Ð½Ðµ оÑкÑÑлÑÑ Ð°Ð²ÑомаÑиÑеÑки, позвониÑе нам â Ð¼Ñ Ð½Ð° ÑвÑзи в ÑабоÑее вÑемÑ."}),(0,s.jsx)("a",{href:c,className:"btn-primary mt-6 inline-flex",children:"ÐозвониÑÑ 8 (800) 250-90-55"})]});let w="w-full border-0 border-b border-white/30 bg-transparent px-0 py-3 text-base text-white placeholder-white/50 outline-none transition-colors focus:border-accent disabled:opacity-60";return(0,s.jsxs)("form",{onSubmit:g,children:[a&&(0,s.jsx)("h2",{className:"mb-6 text-lg font-semibold text-white",children:t}),(0,s.jsxs)("div",{className:"grid gap-x-6 gap-y-4 sm:grid-cols-2 lg:grid-cols-[1fr_1fr_1fr_auto] lg:items-end",children:[(0,s.jsx)("input",{type:"text",name:"name",placeholder:"ÐмÑ*",required:!0,disabled:u,className:w}),(0,s.jsx)("input",{type:"tel",name:"phone",placeholder:"ТелеÑон*",required:!0,disabled:u,className:w}),(0,s.jsx)("input",{type:"text",name:"message",placeholder:"СообÑение",disabled:u,className:w}),(0,s.jsxs)("button",{type:"submit",className:"btn-primary inline-flex shrink-0 items-center gap-2 justify-self-start lg:justify-self-end",disabled:u,children:[u?"ÐÑпÑавкаâ¦":n,(0,s.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"M7 17 17 7M8 7h9v9"})})]})]}),(0,s.jsxs)("div",{className:"mt-5 grid gap-x-6 gap-y-3 text-xs leading-snug text-white/60 sm:grid-cols-2 lg:max-w-3xl",children:[(0,s.jsx)("p",{children:"ÐаполниÑе пÑоÑÑÑÑ ÑоÑÐ¼Ñ â Ð¼Ñ ÑвÑжемÑÑ Ñ Ð²Ð°Ð¼Ð¸ и поможем подобÑаÑÑ Ð¿Ð¾Ð´Ñ
одÑÑие ÑеÑениÑ."}),(0,s.jsxs)("label",{className:"flex items-start gap-2.5",children:[(0,s.jsx)("input",{type:"checkbox",name:"consent",required:!0,disabled:u,className:"mt-0.5 h-4 w-4 shrink-0 accent-accent"}),(0,s.jsxs)("span",{children:["ÐÐ°Ð¶Ð¸Ð¼Ð°Ñ ÐºÐ½Ð¾Ð¿ÐºÑ \xabÐÑпÑавиÑÑ\xbb, Ð²Ñ ÑоглаÑаеÑеÑÑ Ð½Ð°"," ",(0,s.jsx)(r(),{href:"/politika-obrabotki-personalnyh-dannyh/",className:"text-accent underline hover:text-white",children:"обÑабоÑÐºÑ Ð¿ÐµÑÑоналÑнÑÑ
даннÑÑ
"})]})]})]})]})}},5585:(e,t,n)=>{Promise.resolve().then(n.bind(n,331)),Promise.resolve().then(n.t.bind(n,2619,23)),Promise.resolve().then(n.t.bind(n,1356,23))},8901:(e,t,n)=>{"use strict";function s(e,t){let n=window.__YM_COUNTER_ID__;if(n&&"function"==typeof window.ym)try{window.ym(n,"reachGoal",e,t)}catch(e){}}n.d(t,{o:()=>s})}},e=>{e.O(0,[619,975,441,255,358],()=>e(e.s=5585)),_N_E=e.O()}]);
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.