PageSourceSearch

https://esknet.net/_next/static/chunks/887.75d4c4425935a6c4.js

js esknet.net collected 2026-10-04 09:36:40 UTC 4,342 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[887],{6268:(e,l,a)=>{a.r(l),a.d(l,{STYLE:()=>A,default:()=>k});var s=a(7876),t=a(1366),r=a(7724),n=a(4232),o=a(7685),d=a(9917),m=a(5849),i=a(5340),u=a(2463),p=a(1933),c=a(1090),x=a(1404),h=a(8230),b=a.n(h),g=a(8992),j=a(1408),f=a(3097);let v=j.Ik({name:j.Yj().required("Введите ваше имя"),phone:j.Yj().required("Введите номер телефона").matches(/(\+7|8)[- _]*\(?[- _]*(\d{3}[- _]*\)?([- _]*\d){7}|\d\d[- _]*\d\d[- _]*\)?([- _]*\d){6})/,{message:"Номер телефона не корректный"}),apartments:j.Yj().required("Введите количество квартир"),email:j.Yj().email("Введите корректный email").required("Введите email"),company:j.Yj().required("Введите название УК/ТСЖ")}),_=e=>{var l,a,t,r,o;let{onSubmit:d}=e,{setValue:m,handleSubmit:h,watch:j,getValues:_,register:w,formState:{errors:N}}=(0,g.mN)({defaultValues:{name:"",phone:"",apartments:"",email:"",company:""},resolver:(0,c.t)(v)}),y=(0,x.M)({options:u.A}),A=(0,x.M)({options:i.A}),[k,S]=(0,n.useState)(!1),Y=h(e=>{S(!0),d(e)}),C=e=>l=>{var a;m(e,null==(a=l.target)?void 0:a.value)},q=j?j(["name","phone","apartments","email","company"]):[],M=(0,n.useMemo)(()=>q.some(e=>!e||""===e.toString().trim())||k,[q]);return(0,s.jsx)("form",{className:"flex flex-col md:max-w-[600px]",onSubmit:Y,children:(0,s.jsxs)("div",{className:"flex w-full flex-col justify-between gap-[33px] lg:h-[520px]",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-x-5 gap-y-6 md:grid-cols-2",children:[(0,s.jsx)(f.A_,{label:"Имя",placeholder:"Введите имя",error:null==N||null==(l=N.name)?void 0:l.message,...w("name")}),(0,s.jsx)(f.A_,{label:"Email",placeholder:"Укажите почту",error:null==N||null==(a=N.email)?void 0:a.message,...w("email")}),(0,s.jsx)(f.A_,{label:"Телефон",value:_("phone"),ref:y,placeholder:"Ваш телефон",error:null==N||null==(t=N.phone)?void 0:t.message,onInput:C("phone")}),(0,s.jsx)(f.A_,{label:"Название УК/ТСЖ",placeholder:"Название",error:null==N||null==(r=N.company)?void 0:r.message,...w("company")}),(0,s.jsx)(f.A_,{placeholder:"Кол-во",value:_("apartments"),label:"Кол-во квартир",error:null==N||null==(o=N.apartments)?void 0:o.message,onInput:C("apartments"),maxLength:12,className:"md:col-span-2",ref:A})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-5 md:gap-8",children:[(0,s.jsxs)("span",{className:"font-['Inter_Regular'] text-xs leading-[100%] text-dark",children:["Нажимая \xabОбсудить условия\xbb, вы соглашаетесь ",(0,s.jsx)("br",{}),"c\xa0",(0,s.jsx)(b(),{className:"text-orange-95 underline",target:"_blank",href:p.IJ.slug,children:"Условиями обработки данных"})]}),(0,s.jsx)("div",{children:(0,s.jsx)(f.$n,{type:"submit",variant:"filled",className:"w-full md:w-[220px]",disabled:M,children:"Обсудить условия"})})]})]})})};var w=a(2716),N=a(5583);let y=d.G.ConnectionRequestModal,A={body:"bg-grey-white p-0 m-auto",mask:"bg-black opacity-40",wrapper:"flex items-center",header:"bg-transparent p-0 border-none",section:"bg-white w-full md:w-[736px]  lg:w-[696px] m-auto rounded-t-[20px] rounded-b-none md:rounded-[20px] pt-5 px-5 pb-3 md:p-8"},k=()=>{let{isOpen:e,closeModal:l,openModal:a}=(0,m.h)(),i=e(y),[u,p]=(0,n.useState)(0);(0,n.useEffect)(()=>{i||p(e=>+(1!==e))},[i]);let[c,x]=(0,n.useState)(!1),h=()=>{l(y),x(!1)},{trigger:b}=(0,t.J)(t.F.TRUST_COMPANY),g=(0,n.useRef)(null),j=async e=>{g.current=e;let{ok:l,statusText:s,status:t}=await b(e);l?(h(),a(d.G.ApplicationSentModal)):(o.Ay.error(s||String(t)),x(!0))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.A,{className:"absolute bottom-0 m-auto w-full md:relative md:bottom-auto md:w-auto",visible:i,onClose:h,classNames:A,closable:!1,title:(0,s.jsxs)("div",{className:"flex items-center justify-between pb-6 lg:pb-10",children:[(0,s.jsx)("h1",{className:"t-h4 md:t-h2 text-dark",children:"Заявка на подключение"}),(0,s.jsx)("button",{className:"absolute right-5 top-5",onClick:h,children:(0,s.jsx)(w.BY,{})})]}),children:(0,s.jsx)(_,{onSubmit:j},u)}),(0,s.jsx)(N.b,{isOpen:c,onClose:h,onTryAgain:()=>{x(!1),j(g.current)}})]})}}}]);

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.