1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{10580:(e,a,l)=>{"use strict";l.d(a,{A:()=>n});var s=l(12115),t=l(32398),r=l(27484);function n(e){let{url:a="",useCaptcha:l=!0,resetAfterSubmit:n=!0,provider:i="parts"}=e,o=(0,t.jL)(),d=(0,t.GV)(e=>e.yaCaptcha),[c,u]=(0,s.useState)(null),[p,m]=(0,s.useState)(!1),[h,x]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{c&&(d.token?(c.resolve(d.token),u(null),o((0,r.WG)(""))):d.dismissed&&(c.reject(Error("captcha cancelled")),u(null)))},[d.token,d.dismissed,c,o]),{sendForm:async function(e,s){let t,d,{setFieldError:c,resetForm:p}=s,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};m(!1),x(!0);let f=null;if(l)try{f=await new Promise((e,a)=>{u({resolve:e,reject:a}),o((0,r.X1)()),o((0,r.Z2)(!0)),setTimeout(()=>a(Error("captcha timeout")),12e4)})}catch(e){u(null),o((0,r.Z2)(!1)),x(!1),(null==e?void 0:e.message)!=="captcha cancelled"&&m("Ðе ÑдалоÑÑ Ð¿ÑойÑи пÑовеÑкÑ. ÐопÑобÑйÑе еÑÑ Ñаз.");return}try{var g,v;t=await fetch("/api/post-data",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:{...e,token:f,sessionId:(null==(g=window)?void 0:g.call_value)?null==(v=window)?void 0:v.call_value:null},path:a,provider:i})}),d=await t.json().catch(()=>null)}catch(e){x(!1),m("ÐÑибка ÑеÑи. ÐÑовеÑÑÑе Ñоединение и попÑобÑйÑе еÑÑ Ñаз.");return}if(x(!1),200==t.status)n&&p(),h(d);else if(422==t.status){let e=(null==d?void 0:d.data)?d.data:null==d?void 0:d.result;e&&e.forEach((e,a)=>{["tokenResponse"].includes(e.field)?m(e.message):c(e.field,e.message)})}else m("Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ ÑоÑмÑ. ÐопÑобÑйÑе еÑÑ Ñаз.")},globalFormError:p,formLoading:h}}},15776:(e,a,l)=>{Promise.resolve().then(l.t.bind(l,52619,23)),Promise.resolve().then(l.t.bind(l,81356,23)),Promise.resolve().then(l.bind(l,83850))},18271:(e,a,l)=>{"use strict";l.d(a,{A:()=>r});var s=l(95155),t=l(33742);function r(e){let{btnClassName:a="",spinnerClassName:l="",label:r,isLoading:n=!1,disabled:i=!1,onClick:o=()=>{},type:d="button",icon:c=null}=e;return(0,s.jsxs)("button",{type:d,onClick:o,disabled:n||i,className:"flex gap-2 disabled:opacity-70 px-5 py-3 cursor-pointer items-center justify-center rounded-[10px] bg-jcborange transition-all duration-300 hover:bg-jcborangesec focus:shadow-[0_0_0_2px_rgba(245,245,245,1),0_0_0_4px_rgba(220,220,220,1),0_1px_2px_0_rgba(0,0,0,0.1)] ".concat(i?"!cursor-default hover:!bg-jcborange":""," ").concat(a).trim(),children:[n?(0,s.jsx)(t.A,{className:"!h-[20px] !w-[20px] !border-2 ".concat(null!=l?l:"").trim()}):c,r?(0,s.jsx)("span",{children:r}):null]})}},27484:(e,a,l)=>{"use strict";l.d(a,{Ay:()=>c,Fl:()=>r,S5:()=>d,WG:()=>i,X1:()=>o,Z2:()=>t});let s=(0,l(59267).Z0)({name:"yaCaptcha",initialState:{visible:!1,captchaKey:0,token:"",dismissed:!1},reducers:{showChallenge(e,a){e.visible=a.payload,a.payload&&(e.dismissed=!1)},challengeDismissed(e){e.visible=!1,e.dismissed=!0,e.captchaKey+=1},changeKey(e,a){e.captchaKey+=1},setToken(e,a){e.token=a.payload,e.visible=!1,e.captchaKey+=1},resetToken(e,a){e.token=""},onError(e,a){e.token="",e.captchaKey+=1,e.visible=!1}}}),{showChallenge:t,challengeDismissed:r,changeKey:n,setToken:i,resetToken:o,onError:d}=s.actions,c=s.reducer},30387:(e,a,l)=>{"use strict";function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(null==e?void 0:e.ym)&&"undefined"!=typeof ym&&ym("101894437","reachGoal",e.ym)}l.d(a,{A:()=>s})},32398:(e,a,l)=>{"use strict";l.d(a,{GV:()=>r,jL:()=>t});var s=l(1213);let t=s.wA.withTypes(),r=s.d4.withTypes();s.Pj.withTypes()},33742:(e,a,l)=>{"use strict";l.d(a,{A:()=>t});var s=l(95155);function t(e){let{className:a=""}=e;return(0,s.jsx)("div",{className:"h-8 w-8 border-4 border-current inline-block animate-spin rounded-full border-solid border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite] ".concat(a),role:"status",children:(0,s.jsx)("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",children:"ÐагÑÑзка..."})})}},48337:(e,a,l)=>{"use strict";l.d(a,{z:()=>t});var s=l(72811),t={defaultProps:{__TYPE:"IconBase",className:null,label:null,spin:!1},getProps:function(e){return s.BF.getMergedProps(e,t.defaultProps)},getOtherProps:function(e){return s.BF.getDiffProps(e,t.defaultProps)},getPTI:function(e){var a=s.BF.isEmpty(e.label),l=t.getOtherProps(e),r={className:(0,s.xW)("p-icon",{"p-icon-spin":e.spin},e.className),role:a?void 0:"img","aria-label":a?void 0:e.label,"aria-hidden":e.label?a:void 0};return s.BF.getMergedProps(l,r)}}},51674:(e,a,l)=>{"use strict";l.d(a,{A:()=>n});var s=l(95155),t=l(52619),r=l.n(t);function n(e){let{forValue:a="fld_agree"}=e;return(0,s.jsxs)("label",{htmlFor:a,className:"pl-2 cursor-pointer",children:["ÐÐ°Ñ ÑоглаÑие на обÑабоÑкÑ"," ",(0,s.jsx)(r(),{href:"/info/user-agreement",target:"_blank",className:"transition-all duration-300 underline underline-offset-4 hover:text-jcborange",children:"пеÑÑоналÑнÑÑ
даннÑÑ
"})]})}},83850:(e,a,l)=>{"use strict";l.d(a,{default:()=>f});var s=l(95155),t=l(41521),r=l(35068),n=l(10580),i=l(30387),o=l(51674),d=l(6487),c=l(93523),u=l(31959),p=l(18271),m=l(12115),h=l(10188),x=l(36489);
1function f(e){let{showEmail:a=!1,header:l=(0,s.jsxs)(s.Fragment,{children:["ÐаждÑÑ Ð¼Ð°ÑÐ¸Ð½Ñ Ð·Ð½Ð°ÐµÐ¼ в ÑабоÑе,",(0,s.jsx)("span",{className:" text-black/40",children:" ÑкÑпеÑÑиза и каÑеÑÑво Ñ 1991 года"})]}),desc:f="Ðоможем ÑделаÑÑ Ð²ÑÐ±Ð¾Ñ Ñ ÑÑеÑом нÑанÑов, коÑоÑÑе ÑÑановÑÑÑÑ ÑеÑаÑÑими на плоÑадке",btnTitle:g="ÐодобÑаÑÑ ÑеÑ
никÑ",formTitle:v="ÐаÑвка на ÑеÑ
Ð½Ð¸ÐºÑ JCB"}=e,{data:b,status:j}=(0,x.useSession)(),[y,_]=(0,m.useState)(!1),{sendForm:w,globalFormError:N,formLoading:k}=(0,n.A)({url:"/form-submit/feedback-api",useCaptcha:"true",resetAfterSubmit:!0,provider:"lonmadi"});(0,m.useEffect)(()=>{if("loading"!==j&&"authenticated"===j){var e,a,l;C.setFieldValue("name",null==b||null==(e=b.user)?void 0:e.name),C.setFieldValue("email",null==b||null==(a=b.user)?void 0:a.email),C.setFieldValue("phone",null==b||null==(l=b.user)?void 0:l.phone)}},[j,b]);let C=(0,t.Wx)({initialValues:{title:v,name:"",phone:"",email:"",agree:!0},validationSchema:r.Ik().shape({name:r.Yj().required("ÐбÑзаÑелÑно к заполнениÑ"),email:r.Yj().email("ÐекоÑÑекÑнÑй email"),phone:r.Yj().matches(/^(\+7|7|8)?[\s\-]?\(?[12345689][0-9]{2}\)?[\s\-]?[0-9]{3}[\s\-]?[0-9]{2}[\s\-]?[0-9]{2}$/,"ÐекоÑÑекÑнÑй ÑелеÑон").required("ÐбÑзаÑелÑно к заполнениÑ")}),onSubmit:(e,a)=>{w({...e,graction:"feedback_form"},a,()=>{_(!0),(0,i.A)({ym:"jcbbuy_form"})})}});return(0,s.jsxs)("div",{className:"flex flex-col bg-white items-start justify-center gap-5 self-stretch rounded-[10px] border-2 border-jcborange px-4 py-10 lg:px-[120px] lg:py-20",children:[(0,s.jsx)("p",{className:" max-w-[1080px] text-[26px] font-bold lg:text-3xl",children:l}),(0,s.jsx)("p",{className:"",children:f}),y?(0,s.jsx)("p",{children:"ÐÐ°Ñ Ð·Ð°Ð¿ÑÐ¾Ñ ÑÑпеÑно оÑпÑавлен! ÐÑ ÑвÑжемÑÑ Ñ Ð²Ð°Ð¼Ð¸ в ближайÑее вÑемÑ."}):(0,s.jsxs)("form",{className:"flex w-full flex-col gap-5",onSubmit:C.handleSubmit,children:[(0,s.jsxs)("div",{className:"flex w-full max-w-[1080px] flex-col lg:items-start justify-start gap-2.5 self-stretch lg:flex-row",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(u.S,{id:"fld_name",name:"name",placeholder:"ÐаÑе имÑ",value:C.values.name,onChange:C.handleChange,invalid:!!(C.touched.name&&C.errors.name)}),C.touched.name&&C.errors.name&&(null==C?void 0:C.errors.name)?(0,s.jsx)("p",{className:"pt-1 text-sm text-red-600",children:C.errors.name}):null]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(c.N,{id:"fld_phone",placeholder:"+7 (999) 999 99 99",name:"phone",mask:"+7 (999) 999 99 99",value:C.values.phone,onChange:C.handleChange,invalid:!!(C.touched.phone&&C.errors.phone)}),C.touched.phone&&C.errors.phone&&(null==C?void 0:C.errors.phone)?(0,s.jsx)("p",{className:"pt-1 text-sm text-red-600",children:C.errors.phone}):null]}),a?(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("label",{htmlFor:"fld_email",children:"ÐлекÑÑоннÑй адÑÐµÑ (e-mail):"}),(0,s.jsx)(u.S,{id:"fld_email",name:"email",value:C.values.email,onChange:C.handleChange,invalid:!!(C.touched.email&&C.errors.email)}),C.touched.email&&C.errors.email&&(null==C?void 0:C.errors.email)?(0,s.jsx)("p",{className:"pt-1 text-sm text-red-600",children:C.errors.email}):null]}):null,(0,s.jsx)(p.A,{label:g,isLoading:k,className:"h-16",disabled:!1==C.values.agree||k,type:"submit"})]}),(0,s.jsxs)("div",{className:"flex align-items-center",children:[(0,s.jsx)(d.S,{inputId:"fld_agree",name:"agree",value:C.values.agree,onChange:C.handleChange,checked:C.values.agree}),(0,s.jsx)(o.A,{})]})]}),N?(0,s.jsx)(h.Message,{severity:"error",text:N}):null]})}}},e=>{e.O(0,[2619,6489,1055,1356,791,9555,2422,3523,5478,8441,1255,7358],()=>e(e.s=15776)),_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.