1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9326],{28341:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/trades",function(){return n(53304)}])},53304:function(e,r,n){"use strict";n.r(r),n.d(r,{__N_SSP:function(){return L},default:function(){return O}});var s=n(34727),t=n(14251),i=n(52875),l=n(97582),o=n(85893),a=n(23544),m=n(67294),d=n(9008),c=n.n(d),u=n(41664),x=n.n(u),h=n(48436),j=n(85402),p=n(12461),Z=n(97183),_=n(71230),g=n(15746),f=n(95239),v=n(85496),b=n(87541),S=n.n(b),y=n(87536),q=n(493),N=n(13692),T=n(6136),k=n(33299),w=n(43220),C=n(16310),B=C.object().shape({lastName:C.string().trim().max(50,"\u0424\u0430\u043c\u0438\u043b\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043c\u0435\u043d\u0435\u0435 50 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432").required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0430\u043c\u0438\u043b\u0438\u044e"),name:C.string().trim().max(50,"\u0418\u043c\u044f \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043c\u0435\u043d\u0435\u0435 50 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432").required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f"),patronymic:C.string().trim().max(50,"\u041e\u0442\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043c\u0435\u043d\u0435\u0435 50 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432").required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0441\u0442\u0432\u043e"),phone:C.string().trim().matches(/\+?7+[\d() -]{16,17}/,"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430").required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430"),email:C.string().trim().email("\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 email").required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c email"),region:C.string().trim().required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0440\u0435\u0433\u0438\u043e\u043d"),type:C.string().trim().required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0438\u043f"),message:C.string().trim().required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e"),price:C.string().trim().required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0436\u0435\u043b\u0430\u0435\u043c\u0443\u044e \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c"),limit:C.string().trim().required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043b\u0438\u043c\u0438\u0442"),comment:C.string().trim().required("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439")}),E=n(47533),P=n(58304),A=n(31293),F=n(26089),L=!0,O=(0,a.withSuperJSONPage)((function(e){var r,n,a,d,u,b,C,L,O,R,X,I=e.response,M=function(){W(!1)},z=(0,y.cI)({mode:"onTouched",resolver:(0,E.X)(B)}),K=(0,m.useState)(!1),V=K[0],W=K[1],J=(0,o.jsx)(j.Z,{visible:V,centered:!0,onCancel:M,footer:null,destroyOnClose:!0,bodyStyle:{padding:"20px",minWidth:"300px"},children:(0,o.jsxs)("div",{className:S().modalContent,children:[(0,o.jsx)(v.j2t,{}),(0,o.jsx)("p",{className:S().confirmTitle,children:"\u0417\u0430\u044f\u0432\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430."}),(0,o.jsx)("p",{className:S().confirmSubTitle,children:"\u0421 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0441\u0432\u044f\u0436\u0443\u0442\u0441\u044f \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f."}),(0,o.jsx)(P.Z,{label:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",htmlType:"submit",onClick:M,block:!0})]})}),Y=function(){var e=(0,s.Z)((function(e){var r;return(0,l.__generator)(this,(function(n){switch(n.label){case 0:return e.theme="\u0422\u043e\u0440\u0433\u0438",[4,(0,k.getSession)()];case 1:return r=n.sent().user,e.realtorId=r.id,[4,(0,w.Ak)(e)];case 2:return n.sent().ok?(W(!0),z.reset({phone:""})):p.ZP.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043b\u0438\u0434\u0430."),[2]}}))}));return function(r){return e.apply(this,arguments)}}();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c(),{children:(0,o.jsx)("title",{children:"\u0422\u043e\u0440\u0433\u0438"})}),(0,o.jsxs)(h.Z,{defaultSelectedKeys:"trades",sessionRoles:I.session.roles,children:[J,(0,o.jsxs)(Z.Z,{className:S().layout,children:[(0,o.jsx)(_.Z,{className:S().titleSection,children:(0,o.jsxs)(g.Z,{children:[(0,o.jsxs)(_.Z,{className:S().titleButtonAndTagSection,children:[(0,o.jsx)(x(),{href:"/dashboard/main",children:(0,o.jsxs)("a",{className:S().titleLinkButton,children:[(0,o.jsx)(v.amV,{}),"\u041d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e"]})}),(0,o.jsx)("div",{className:S().titleTag,children:"\u0422\u043e\u0440\u0433\u0438"})]}),(0,o.jsx)(_.Z,{children:(0,o.jsx)("p",{className:S().mainTitle,children:"\u0410\u043d\u043a\u0435\u0442\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430:"})})]})}),(0,o.jsx)(_.Z,{className:S().mainForm,children:(0,o.jsx)(g.Z,{span:12,children:(0,o.jsx)(y.RV,(0,i.Z)((0,t.Z)({},z),{children:(0,o.jsxs)(f.Z,{onFinish:z.handleSubmit(Y),children:[(0,o.jsxs)(_.Z,{gutter:[10,10],children:[(0,o.jsx)(g.Z,{md:{span:4},xs:{span:12},children:(0,o.jsx)(q.Z,{required:!0,label:"\u0424\u0430\u043c\u0438\u043b\u0438\u044f",name:"lastName",control:z.control,error:null===(r=z.formState.errors.lastName)||void 0===r?void 0:r.message})}),(0,o.jsx)(g.Z,{md:{span:4},xs:{span:12},children:(0,o.jsx)(q.Z,{required:!0,label:"\u0418\u043c\u044f",name:"name",control:z.control,error:null===(n=z.formState.errors.name)||void 0===n?void 0:n.message})}),(0,o.jsx)(g.Z,{md:{span:4},xs:{span:12},children:(0,o.jsx)(q.Z,{required:!0,label:"\u041e\u0442\u0447\u0435\u0441\u0442\u0432\u043e",name:"patronymic",control:z.control,error:null===(a=z.formState.errors.patronymic)||void 0===a?void 0:a.message})})]}),(0,o.jsxs)(_.Z,{gutter:[10,10],children:[(0,o.jsx)(g.Z,{xl:{span:4},md:{span:6},xs:{span:12},children:(0,o.jsx)(N.Z,{required:!0,name:"phone",control:z.control,error:null===(d=z.formState.errors.phone)||void 0===d?void 0:d.message})}),(0,o.jsx)(g.Z,{xl:{span:4},md:{span:6},xs:{span:12},children:(0,o.jsx)(q.Z,{required:!0,name:"email",label:"E-mail",control:z.control,error:null===(u=z.formState.errors.email)||void 0===u?void 0:u.message})})]}),(0,o.jsx)(_.Z,{children:(0,o.jsx)(g.Z,{span:12,children:(0,o.jsx)(q.Z,{required:!0,label:"\u0420\u0435\u0433\u0438\u043e\u043d, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442",name:"region",control:z.control,error:null===(b=z.formState.errors.region)||void 0===b?void 0:b.message})})}),(0,o.jsx)(_.Z,{children:(0,o.jsx)(g.Z,{span:12,children:(0,o.jsx)(q.Z,{required:!0,label:"\u0422\u0438\u043f \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (\u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0430, \u0434\u043e\u043c, \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0438 \u0442.\u043f.)",name:"type",control:z.control,error:null===(C=z.formState.errors.type)||void 0===C?void 0:C.message})})}),(0,o.jsx)(_.Z,{children:(0,o.jsx)(g.Z,{span:12,children:(0,o.jsx)(T.Z,{required:!0,name:"message",label:"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u043c\u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u0443 (\u043f\u043b\u043e\u0449\u0430\u0434\u044c, \u044d\u0442\u0430\u0436\u043d\u043e\u0441\u0442\u044c \u0438 \u0442.\u043f.)",control:z.control,error:null===(L=z.formState.errors.message)||void 0===L?void 0:L.message})})}),(0,o.jsxs)(_.Z,{gutter:[10,10],children:[(0,o.jsx)(g.Z,{xl:{span:4},md:{span:5},sm:{span:6},xs:{span:12},children:(0,o.jsx)(q.Z,{required:!0,inputNumber:!0,name:"price",label:"\u0416\u0435\u043b\u0430\u0435\u043c\u0430\u044f \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c",control:z.control,error:null===(O=z.formState.errors.price)||void 0===O?void 0:O.message})}),(0,o.jsx)(g.Z,{xl:{span:4},md:{span:5},sm:{span:6},xs:{span:12},children:(0,o.jsx)(q.Z,{required:!0,inputNumber:!0,name:"limit",label:"\u0414\u0435\u043d\u0435\u0436\u043d\u044b\u0439 \u043b\u0438\u043c\u0438\u0442",control:z.control,error:null===(R=z.formState.errors.limit)||void 0===R?void 0:R.message})})]}),(0,o.jsx)(_.Z,{children:(0,o.jsx)(g.Z,{span:12,children:(0,o.jsx)(T.Z,{required:!0,label:"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439",name:"comment",control:z.control,error:null===(X=z.formState.errors.comment)||void 0===X?void 0:X.message})})}),(0,o.jsx)(P.Z,{label:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u044f\u0432\u043a\u0443",htmlType:"submit",block:!0})]})}))})})]}),(0,o.jsx)(F.Z,{large:!0,value:A.rw.value,link:A.rw.link})]})]})}))},87541:function(e){e.exports={layout:"style_layout__OPBkX",titleButtonAndTagSection:"style_titleButtonAndTagSection__PCrzu",titleLinkButton:"style_titleLinkButton__mLM1M",titleTag:"style_titleTag__LboA2",mainTitle:"style_mainTitle__jwtR5",mainForm:"style_mainForm__fEZWf",modalContent:"style_modalContent__T1jCh",confirmTitle:"style_confirmTitle__KMYRn",confirmSubTitle:"style_confirmSubTitle__lZIlz"}}},function(e){e.O(0,[311,8436,8685,9774,2888,179],(function(){return r=28341,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.