Стать исполнителем новая версия
This commit is contained in:
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{3868:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return r(5623)}])},3384:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}}),r(306);let l=r(5155);r(2115);let n={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function o(e){let{status:t,message:r}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t+": "+r}),(0,l.jsx)("div",{style:n.error,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,l.jsx)("h1",{className:"next-error-h1",style:n.h1,children:t}),(0,l.jsx)("div",{style:n.desc,children:(0,l.jsx)("h2",{style:n.h2,children:r})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let l=r(5155),n=r(3384);function o(){return(0,l.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[441,517,358],()=>t(3868)),_N_E=e.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[859],{5104:(e,s,r)=>{Promise.resolve().then(r.t.bind(r,8173,23)),Promise.resolve().then(r.bind(r,3242))},3242:(e,s,r)=>{"use strict";r.d(s,{LoginForm:()=>j});var l=r(5155);r(2115);var n=r(9606),o=r(2679),t=r(534),a=r(4505),c=r(6046),d=r(3312),i=r(3900),h=r(4870),m=r(9749),x=r(2928);let u=t.Ikc({phone:t.YjP().min(10,"Номер телефона должен содержать минимум 10 цифр"),password:t.YjP().min(6,"Пароль должен быть не менее 6 символов")});function j(){let e=(0,c.useRouter)(),{login:s,isLoading:r}=(0,x.B)(),t=(0,n.mN)({resolver:(0,o.u)(u),defaultValues:{phone:"",password:""}});async function j(r){try{await s(r.phone,r.password),e.push("/dashboard/profile")}catch(e){console.error(e),t.setError("root",{message:"Неверный номер телефона или пароль"})}}return(0,l.jsxs)(m.Zp,{className:"w-full max-w-md mx-auto",children:[(0,l.jsxs)(m.aR,{children:[(0,l.jsx)(m.ZB,{className:"text-2xl",children:"Вход в систему"}),(0,l.jsx)(m.BT,{children:"Введите ваш номер телефона и пароль для доступа к профилю."})]}),(0,l.jsx)(m.Wu,{children:(0,l.jsx)(h.lV,{...t,children:(0,l.jsxs)("form",{onSubmit:t.handleSubmit(j),className:"space-y-4",children:[(0,l.jsx)(h.zB,{control:t.control,name:"phone",render:e=>{let{field:s}=e;return(0,l.jsxs)(h.eI,{children:[(0,l.jsx)(h.lR,{children:"Телефон"}),(0,l.jsx)(h.MJ,{children:(0,l.jsx)(i.p,{placeholder:"+7 (999) 000-00-00",...s})}),(0,l.jsx)(h.C5,{})]})}}),(0,l.jsx)(h.zB,{control:t.control,name:"password",render:e=>{let{field:s}=e;return(0,l.jsxs)(h.eI,{children:[(0,l.jsx)(h.lR,{children:"Пароль"}),(0,l.jsx)(h.MJ,{children:(0,l.jsx)(i.p,{type:"password",placeholder:"******",...s})}),(0,l.jsx)(h.C5,{})]})}}),t.formState.errors.root&&(0,l.jsx)("p",{className:"text-sm font-medium text-destructive",children:t.formState.errors.root.message}),(0,l.jsxs)(d.$,{type:"submit",className:"w-full bg-blue-600 hover:bg-blue-700",disabled:r,children:[r&&(0,l.jsx)(a.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Войти"]})]})})})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[92,273,173,70,441,517,358],()=>s(5104)),_N_E=e.O()}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user