Услуги
This commit is contained in:
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
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[554],{1466:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(7401).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},1295:(e,t,r)=>{function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}r.d(t,{N:()=>d});var l,i=r(2115),o=r(8166),a=r(8068),c=r(5155);function f(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(i.isValidElement(r)){let e,l;let o=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref,c=function(e,t){let r={...t};for(let n in t){let l=e[n],i=t[n];/^on[A-Z]/.test(n)?l&&i?r[n]=(...e)=>{let t=i(...e);return l(...e),t}:l&&(r[n]=l):"style"===n?r[n]={...l,...i}:"className"===n&&(r[n]=[l,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(c.ref=t?(0,a.t)(t,o):o),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=i.forwardRef((e,r)=>{let{children:n,...l}=e,o=i.Children.toArray(n),a=o.find(s);if(a){let e=a.props.children,n=o.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,c.jsx)(t,{...l,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,c.jsx)(t,{...l,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var u=Symbol("radix.slottable");function s(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}function d(e){let t=e+"CollectionProvider",[r,n]=(0,o.A)(t),[l,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=i.useRef(null),o=i.useRef(new Map).current;return(0,c.jsx)(l,{scope:t,itemMap:o,collectionRef:n,children:r})};s.displayName=t;let d=e+"CollectionSlot",p=f(d),m=i.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=u(d,r),i=(0,a.s)(t,l.collectionRef);return(0,c.jsx)(p,{ref:i,children:n})});m.displayName=d;let y=e+"CollectionItemSlot",C="data-radix-collection-item",R=f(y),h=i.forwardRef((e,t)=>{let{scope:r,children:n,...l}=e,o=i.useRef(null),f=(0,a.s)(t,o),s=u(y,r);return i.useEffect(()=>(s.itemMap.set(o,{ref:o,...l}),()=>void s.itemMap.delete(o))),(0,c.jsx)(R,{[C]:"",ref:f,children:n})});return h.displayName=y,[{Provider:s,Slot:m,ItemSlot:h},function(t){let r=u(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(C,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}},4256:(e,t,r)=>{r.d(t,{jH:()=>i});var n=r(2115);r(5155);var l=n.createContext(void 0);function i(e){let t=n.useContext(l);return e||t||"ltr"}}}]);
|
||||
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
@@ -1 +0,0 @@
|
||||
(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()}]);
|
||||
@@ -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:()=>p});var t=r(5155);r(2115);var l=r(9606),n=r(2679),a=r(534),o=r(4505),c=r(6046),i=r(3312),d=r(3900),h=r(4870),u=r(9749),m=r(2928);let x=a.Ikc({phone:a.YjP().min(10,"Номер телефона должен содержать минимум 10 цифр"),password:a.YjP().min(6,"Пароль должен быть не менее 6 символов")});function p(){let e=(0,c.useRouter)(),{login:s,isLoading:r}=(0,m.B)(),a=(0,l.mN)({resolver:(0,n.u)(x),defaultValues:{phone:"",password:""}});async function p(r){try{let t=r.phone.replace(/\D/g,""),l=t.startsWith("7")?"+".concat(t):"+7".concat(t);await s(l,r.password),e.push("/dashboard/profile")}catch(e){console.error(e),a.setError("root",{message:"Неверный номер телефона или пароль"})}}return(0,t.jsxs)(u.Zp,{className:"w-full max-w-md mx-auto",children:[(0,t.jsxs)(u.aR,{children:[(0,t.jsx)(u.ZB,{className:"text-2xl",children:"Вход в систему"}),(0,t.jsx)(u.BT,{children:"Введите ваш номер телефона и пароль для доступа к профилю."})]}),(0,t.jsx)(u.Wu,{children:(0,t.jsx)(h.lV,{...a,children:(0,t.jsxs)("form",{onSubmit:a.handleSubmit(p),className:"space-y-4",children:[(0,t.jsx)(h.zB,{control:a.control,name:"phone",render:e=>{let{field:s}=e;return(0,t.jsxs)(h.eI,{children:[(0,t.jsx)(h.lR,{children:"Телефон"}),(0,t.jsx)(h.MJ,{children:(0,t.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,t.jsx)("div",{className:"flex h-10 items-center justify-center rounded-md border border-input bg-muted px-3 text-sm",children:"+7"}),(0,t.jsx)(d.p,{placeholder:"(999) 000-00-00",value:s.value||"",onChange:e=>{let r=e.target.value.replace(/\D/g,"");e.target.value.length>(s.value||"").length&&(e.target.value.startsWith("8")||e.target.value.startsWith("7"))&&0===(s.value||"").length&&(r=r.substring(1));let t="";(r=r.substring(0,10)).length>0&&(t+="("+r.substring(0,3)),r.length>=4&&(t+=") "+r.substring(3,6)),r.length>=7&&(t+="-"+r.substring(6,8)),r.length>=9&&(t+="-"+r.substring(8,10)),s.onChange(t)},className:"rounded-l-none"})]})}),(0,t.jsx)(h.C5,{})]})}}),(0,t.jsx)(h.zB,{control:a.control,name:"password",render:e=>{let{field:s}=e;return(0,t.jsxs)(h.eI,{children:[(0,t.jsx)(h.lR,{children:"Пароль"}),(0,t.jsx)(h.MJ,{children:(0,t.jsx)(d.p,{type:"password",placeholder:"******",...s})}),(0,t.jsx)(h.C5,{})]})}}),a.formState.errors.root&&(0,t.jsx)("p",{className:"text-sm font-medium text-destructive",children:a.formState.errors.root.message}),(0,t.jsxs)(i.$,{type:"submit",className:"w-full bg-blue-600 hover:bg-blue-700",disabled:r,children:[r&&(0,t.jsx)(o.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
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
+62
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
(()=>{"use strict";var e={},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}},i=!0;try{e[o].call(a.exports,a,a.exports,r),i=!1}finally{i&&delete t[o]}return a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(o){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[o,n,a];return}for(var u=1/0,i=0;i<e.length;i++){for(var[o,n,a]=e[i],c=!0,s=0;s<o.length;s++)(!1&a||u>=a)&&Object.keys(r.O).every(e=>r.O[e](o[s]))?o.splice(s--,1):(c=!1,a<u&&(u=a));if(c){e.splice(i--,1);var l=n();void 0!==l&&(t=l)}}return t}})(),r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&n&&o;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(a,i),a}})(),r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>4===e?"static/chunks/70e0d97a-ef21e2ea4e382d65.js":277===e?"static/chunks/54a60aa6-5e4fe24b1870f66b.js":445===e?"static/chunks/445-61c576bae008fce8.js":"static/chunks/"+e+"."+({203:"2b4c1ee4fbe3a7cf",218:"57a830a2c55ba802",896:"1619ad9439efca22"})[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="_N_E:";r.l=(o,n,a,i)=>{if(e[o]){e[o].push(n);return}if(void 0!==a)for(var u,c,s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var d=s[l];if(d.getAttribute("src")==o||d.getAttribute("data-webpack")==t+a){u=d;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,r.nc&&u.setAttribute("nonce",r.nc),u.setAttribute("data-webpack",t+a),u.src=r.tu(o)),e[o]=[n];var f=(t,r)=>{u.onerror=u.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],u.parentNode&&u.parentNode.removeChild(u),n&&n.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=f.bind(null,u.onerror),u.onload=f.bind(null,u.onload),c&&document.head.appendChild(u)}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("nextjs#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="/_next/",(()=>{var e={68:0,189:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n){if(n)o.push(n[2]);else if(/^(189|68)$/.test(t))e[t]=0;else{var a=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=a);var i=r.p+r.u(t),u=Error();r.l(i,o=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;u.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,n[1](u)}},"chunk-"+t,t)}}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,u,c]=o,s=0;if(i.some(t=>0!==e[t])){for(n in u)r.o(u,n)&&(r.m[n]=u[n]);if(c)var l=c(r)}for(t&&t(o);s<i.length;s++)a=i[s],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(l)},o=self.webpackChunk_N_E=self.webpackChunk_N_E||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r.nc=void 0})();
|
||||
(()=>{"use strict";var e={},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}},i=!0;try{e[o].call(a.exports,a,a.exports,r),i=!1}finally{i&&delete t[o]}return a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(o){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[o,n,a];return}for(var u=1/0,i=0;i<e.length;i++){for(var[o,n,a]=e[i],c=!0,s=0;s<o.length;s++)(!1&a||u>=a)&&Object.keys(r.O).every(e=>r.O[e](o[s]))?o.splice(s--,1):(c=!1,a<u&&(u=a));if(c){e.splice(i--,1);var l=n();void 0!==l&&(t=l)}}return t}})(),r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&n&&o;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(a,i),a}})(),r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>4===e?"static/chunks/70e0d97a-ef21e2ea4e382d65.js":277===e?"static/chunks/54a60aa6-5e4fe24b1870f66b.js":445===e?"static/chunks/445-6a14fb9e89f729e6.js":"static/chunks/"+e+"."+({203:"2b4c1ee4fbe3a7cf",218:"57a830a2c55ba802",896:"1619ad9439efca22"})[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="_N_E:";r.l=(o,n,a,i)=>{if(e[o]){e[o].push(n);return}if(void 0!==a)for(var u,c,s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var d=s[l];if(d.getAttribute("src")==o||d.getAttribute("data-webpack")==t+a){u=d;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,r.nc&&u.setAttribute("nonce",r.nc),u.setAttribute("data-webpack",t+a),u.src=r.tu(o)),e[o]=[n];var f=(t,r)=>{u.onerror=u.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],u.parentNode&&u.parentNode.removeChild(u),n&&n.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=f.bind(null,u.onerror),u.onload=f.bind(null,u.onload),c&&document.head.appendChild(u)}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("nextjs#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="/_next/",(()=>{var e={68:0,189:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n){if(n)o.push(n[2]);else if(/^(189|68)$/.test(t))e[t]=0;else{var a=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=a);var i=r.p+r.u(t),u=Error();r.l(i,o=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;u.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,n[1](u)}},"chunk-"+t,t)}}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,u,c]=o,s=0;if(i.some(t=>0!==e[t])){for(n in u)r.o(u,n)&&(r.m[n]=u[n]);if(c)var l=c(r)}for(t&&t(o);s<i.length;s++)a=i[s],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(l)},o=self.webpackChunk_N_E=self.webpackChunk_N_E||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r.nc=void 0})();
|
||||
Reference in New Issue
Block a user