1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[903],{84735:function(e,t,s){"use strict";s.d(t,{R:function(){return r}});var n=s(67748),o=s(41406);let r=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"UnknownForm";try{if(!(await fetch(n.l9,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,phone:`+${e.phone}`,description:(0,o.RI)(e.description,t)})})).ok)return{ok:!1};return{ok:!0}}catch(e){return console.log(e),{ok:!1}}}},903:function(e,t,s){"use strict";s.r(t);var n=s(85893),o=s(94184),r=s.n(o),l=s(11163),a=s(67294),i=s(87536),c=s(67421),u=s(84735),_=s(94502),p=s(19181),m=s(8423),d=s(44582),h=s(55303),y=s(49749),f=s(84254),C=s(55865),v=s(72454),j=s(39530),x=s.n(j);t.default=e=>{let{id:t}=e,{t:s}=(0,c.$G)("common"),{handleSubmit:o,formState:{errors:j,isValid:g},reset:N,control:B,clearErrors:b,setValue:k}=(0,i.cI)({mode:"onBlur"}),w=(0,l.useRouter)(),[I,S]=(0,a.useState)(!1),[M,F]=(0,a.useState)(!1),[R,W]=(0,a.useState)(!1),[T,Z]=(0,a.useState)(!1),P=()=>Z(!1),V=s(`servicesNew.costServiceCalculator.${t}`,{returnObjects:!0}),[O,E]=(0,a.useState)(V?.data?.map(()=>0)||[]),$=(e,t)=>{E(s=>s.map((s,n)=>n===e?t:s))},U=async e=>{W(!0);let t=`\`СÑаÑниÑа ÑÑлÑг ÑазÑабоÑки ${V.key_word}\` 2`+V.data.map((e,t)=>{let s=O[t],n=e.buttons[s??0];return`${e.title} 3${n}`}).join("\n");e.description=t,console.log(e);let{ok:s}=await (0,u.R)(e,"ServiceCostCalculatorForm");s&&(Z(!0),(0,C.n3)("ServiceCostCalculatorForm")),W(!1),N(),b()};return(0,n.jsxs)("section",{className:x().section,id:"calculator",children:[(0,n.jsxs)(v.Z,{className:x().contentWrapper,children:[(0,n.jsxs)("h2",{className:x().title,children:[V?.title," ",(0,n.jsx)("span",{children:V?.key_word})]}),(0,n.jsxs)("div",{className:x().content,children:[(0,n.jsx)("div",{className:x().leftColumn,children:V?.data?.map((e,t)=>n.jsxs("div",{className:x().sectionBlock,children:[n.jsx("h3",{className:x().sectionTitle,children:e.title}),n.jsx("div",{className:x().buttonsRow,children:e?.buttons.map((e,s)=>{let o=O[t]===s;return n.jsx("button",{className:`${x().optionButton} ${o?x().active:""}`,onClick:()=>$(t,s),children:e},s)})})]},t))}),(0,n.jsxs)("div",{className:x().rightColumn,children:[(0,n.jsx)("h3",{className:x().formTitle,children:w?.locale==="ru"?"ÐонÑакÑнÑе даннÑе Ð´Ð»Ñ ÑвÑзи":"Contact details for communication"}),(0,n.jsx)("form",{className:r()(x().form,"form"),id:"DiscussProjectForm",children:(0,n.jsxs)("div",{className:x().fields,children:[(0,n.jsx)(i.Qr,{name:"name",control:B,rules:(0,f.Oe)(s),defaultValue:"",render:e=>{let{field:{onBlur:t,onChange:o,value:r}}=e;return(0,n.jsx)(m.Z,{placeholder:s("common.form.name"),onBlur:t,onChange:o,value:r,error:j.name?.message||"",wrapperClassName:x().nameWrapper,clearValue:()=>{k("name","")},className:x().name,onFocus:()=>{I&&(N(),b(),S(!1))}})}}),(0,n.jsx)(i.Qr,{name:"email",control:B,rules:(0,f.hv)(s,!1),defaultValue:"",render:e=>{let{field:{onBlur:t,onChange:o,value:r}}=e;return(0,n.jsx)(m.Z,{placeholder:s("common.form.email"),onBlur:t,onChange:o,value:r,error:j.email?.message||"",wrapperClassName:x().nameWrapper,className:x().email,clearValue:()=>{k("email","")},onFocus:()=>{I&&(N(),b(),S(!1))}})}}),(0,n.jsx)(i.Qr,{name:"phone",control:B,rules:(0,f.Mv)(s),defaultValue:"",render:e=>{let{field:{onBlur:t,onChange:o,value:r}}=e;return(0,n.jsx)(p.Z,{country:"ru",placeholder:s("common.form.phone"),onBlur:t,onChange:o,value:r,error:j.phone?.message||"",containerClass:x().phoneContainer,inputClassName:x().phoneInput,buttonClassName:x().phoneButton,setIsPhoneValid:F,wrapperClassName:x().phoneWrapper,onFocus:()=>{I&&(N(),b(),S(!1))}})}})]})}),(0,n.jsx)(_.Z,{className:x().circleButton,onClick:o(e=>U({...e})),children:"en"==w.locale?"Calculate":"РаÑÑÑиÑаÑÑ"})]})]})]}),T&&(0,n.jsx)(h.default,{onClose:P,children:(0,n.jsx)(y.default,{onClose:P,title:s("freeConsultation.modalSuccess.title"),subtitle:s("freeConsultation.modalSuccess.subtitle")})}),(0,n.jsx)(d.Z,{loading:R,className:x().loader})]})}},19181:function(e,t,s){"use strict";var n=s(85893);s(89516);var o=s(94184),r=s.n(o),l=s(71955),a=s(67294),i=s(56466),c=s.n(i),u=s(12262),_=s.n(u);t.Z=e=>{let{t}=(0,l.$)(),[o,i]=(0,a.useState)(),[u,p]=(0,a.useState)(!0),[m,d]=(0,a.useState)(""),{value:h,wrapperClassName:y,isShowStar:f,error:C,onBlur:v,onChange:j,setIsPhoneValid:x,containerClass:g,inputClassName:N,buttonClassName:B,errorClassName:b,...k}=e,w=async(e,t,n)=>{if(e.length>1&&"countryCode"in t){let o=(await Promise.all([s.e(2605),s.e(9304)]).then(s.bind(s,9304)).then(e=>e.parsePhoneNumber))(e,t.countryCode.toUpperCase());o&&(n?.(o.isValid()),x?.(o.isValid()))}else n?.(!1),x?.(!1)};return(0,n.jsxs)("div",{className:r()(_().inputWrapper,y),onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("div",{className:r()(_().inputBlock,{[_().valid]:f&&u}),children:(0,n.jsx)(c(),{country:"ru",value:h,containerClass:r()(_().phoneInputContainer,g),inputClass:r()(_().phoneInput,N,{[_().phoneInputFocus]:o,[_().error]:(C||!u)&&!o}),buttonClass:r()(_().phoneInputButton,B,{[_().phoneInputButtonF
3ocus]:o,[_().error]:(C||!u)&&!o,[_().buttonError]:C||!u}),dropdownClass:_().dropdownClass,onFocus:()=>i(!0),onBlur:(e,t)=>{i(!1),v?.(),w(m,t,p)},onChange:(e,t)=>{j?.(e),d(e),w(e,t)},...k})}),(0,n.jsx)("p",{className:r()(_().errorMessage,b,{[_().errorMessage_visible]:(C||!u)&&!o}),children:C||t("freeConsultation.errors.phone")})]})}},8423:function(e,t,s){"use strict";var n=s(85893),o=s(94184),r=s.n(o),l=s(25675),a=s.n(l),i=s(67294),c=s(47598),u=s.n(c);t.Z=e=>{let{placeholder:t,error:s,onChange:o,onBlur:l,value:c,className:_,wrapperClassName:p,errorClassName:m,focusDefault:d=!1,allowClear:h=!0,clearValue:y,children:f,onFocus:C}=e,[v,j]=(0,i.useState)(d),x=(0,i.useRef)(null);return(0,i.useEffect)(()=>{d&&x.current?.focus()},[x]),(0,n.jsxs)("div",{className:r()(u().inputWrapper,p),children:[(0,n.jsxs)("div",{className:r()(u().inputBlock),children:[(0,n.jsx)("input",{ref:x,className:r()(u().input,_,{[u().error]:s&&!v}),type:"text",placeholder:t,value:c,onChange:e=>o?.(e.target.value),onBlur:()=>{l?.(),j(!1)},onFocus:()=>{C?.(),j(!0)}}),f,h&&c&&(0,n.jsx)(a(),{src:"/images/icons/cross.svg",className:u().clear,width:"22",height:"22",alt:"img",onClick:e=>{y?.(),e.stopPropagation(),x.current?.focus()}})]}),(0,n.jsx)("p",{className:r()(u().errorMessage,m,{[u().errorMessage_visible]:s&&!v}),children:s})]})}},39530:function(e){e.exports={section:"styles_section__NrHKZ",contentWrapper:"styles_contentWrapper__0vjfv",title:"styles_title__P47_o",content:"styles_content__bMRzQ",leftColumn:"styles_leftColumn__ZWU0k",sectionBlock:"styles_sectionBlock__Wjw2Y",sectionTitle:"styles_sectionTitle__j8hys",buttonsRow:"styles_buttonsRow__owcOK",optionButton:"styles_optionButton__6tTjB",active:"styles_active__OyVqx",rightColumn:"styles_rightColumn__WbEYx",circleButton:"styles_circleButton__X7vMb",formTitle:"styles_formTitle__Mmj3z",form:"styles_form__UuhZR",fields:"styles_fields__CyGKx",name:"styles_name__pwV2q",email:"styles_email__c4N2_",phoneInput:"styles_phoneInput__Ph5lS",phoneButton:"styles_phoneButton__alt6b",sendRequest:"styles_sendRequest__Fnk9m",privatePolicy:"styles_privatePolicy__qdKmR",button:"styles_button__ycVSu",submitButton:"styles_submitButton__RkgZz"}},12262:function(e){e.exports={inputWrapper:"styles_inputWrapper__hcE_N",inputBlock:"styles_inputBlock__MOf88",phoneInputContainer:"styles_phoneInputContainer__3XhOg",phoneInput:"styles_phoneInput__XcjEj",phoneInputFocus:"styles_phoneInputFocus__bUDmA",buttonError:"styles_buttonError__KsBTy","selected-flag":"styles_selected-flag__mgO9x",phoneInputButton:"styles_phoneInputButton__tyTiR",phoneInputButtonFocus:"styles_phoneInputButtonFocus__fyTnN",dropdownClass:"styles_dropdownClass__liUBb",error:"styles_error__FUtlw",errorMessage:"styles_errorMessage__YKSe_",errorMessage_visible:"styles_errorMessage_visible__xxB_r"}},47598:function(e){e.exports={inputWrapper:"style_inputWrapper__e1o_B",inputBlock:"style_inputBlock__gGoe_",input:"style_input__90wMG",error:"style_error__m8Cpc",errorMessage:"style_errorMessage__hS1v0",errorMessage_visible:"style_errorMessage_visible__8Ubhd",clear:"style_clear__TDOcZ"}}}]);
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.