PageSourceSearch

https://krashenayadoska.ru/_next/static/chunks/app/kontakty/page-419fb3fe5b9ad0e8.js

js krashenayadoska.ru collected 2026-10-05 20:54:32 UTC 4,368 bytes, 1 lines download raw bytes

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.