@ozdao/prometheus-framework 0.2.61 → 0.2.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. package/dist/auth.server.js +37 -8
  2. package/dist/auth.server.mjs +37 -8
  3. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +1 -55
  5. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +55 -1
  7. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -1
  9. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
  11. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -46
  13. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +46 -1
  15. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +1 -1
  27. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  29. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  31. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  37. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  41. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  43. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  45. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  51. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  53. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  55. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  65. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  77. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  85. package/dist/style.css +1 -1
  86. package/package.json +1 -1
  87. package/src/components/Feed/Feed.vue +2 -1
  88. package/src/modules/auth/auth.server.js +1 -0
  89. package/src/modules/products/components/pages/EditLeftover.vue +98 -86
  90. package/src/modules/products/components/pages/Leftovers.vue +3 -3
  91. package/src/modules/products/components/pages/Product.vue +2 -2
  92. package/src/modules/products/components/pages/Products.vue +12 -11
  93. package/src/modules/products/controllers/leftovers.controller.js +10 -1
  94. package/src/modules/products/store/leftovers.js +2 -2
@@ -47,7 +47,7 @@ const jwt = require$$0;
47
47
  const bcrypt = require$$1$1;
48
48
  const ObjectId = require$$0$1.Types.ObjectId;
49
49
  const { verifyAppleIdToken } = verifyAppleIdToken_1;
50
- const controllerFactory$2 = (db) => {
50
+ const controllerFactory$3 = (db) => {
51
51
  const User = db.user;
52
52
  const Membership = db.membership;
53
53
  const Invite = db.invite;
@@ -238,9 +238,9 @@ const controllerFactory$2 = (db) => {
238
238
  updatePassword
239
239
  };
240
240
  };
241
- var auth_controller = controllerFactory$2;
241
+ var auth_controller = controllerFactory$3;
242
242
  const { sendEmail, sendSms } = mailing.mailing;
243
- const controllerFactory$1 = (db) => {
243
+ const controllerFactory$2 = (db) => {
244
244
  const sendcode = async (req, res) => {
245
245
  const code = Math.floor(1e3 + Math.random() * 9e3);
246
246
  const type = req.body.type;
@@ -267,14 +267,14 @@ const controllerFactory$1 = (db) => {
267
267
  sendcode
268
268
  };
269
269
  };
270
- var twofa_controller = controllerFactory$1;
271
- const controllerFactory = auth_controller;
270
+ var twofa_controller = controllerFactory$2;
271
+ const controllerFactory$1 = auth_controller;
272
272
  const controllerFactoryTwofa = twofa_controller;
273
- const middlewareFactory = index.server;
273
+ const middlewareFactory$1 = index.server;
274
274
  var auth_routes = function(app, db, origins) {
275
- const controller = controllerFactory(db);
275
+ const controller = controllerFactory$1(db);
276
276
  const controllerTwofa = controllerFactoryTwofa();
277
- const { verifySignUp, verifyUser } = middlewareFactory(db);
277
+ const { verifySignUp, verifyUser } = middlewareFactory$1(db);
278
278
  app.use(function(req, res, next) {
279
279
  const origin = req.headers.origin;
280
280
  if (origins.includes(origin)) {
@@ -307,6 +307,34 @@ var auth_routes = function(app, db, origins) {
307
307
  controller.updatePassword
308
308
  );
309
309
  };
310
+ const controllerFactory = twofa_controller;
311
+ const middlewareFactory = index.server;
312
+ var twofa_routes = function(app, db) {
313
+ const controller = controllerFactory();
314
+ const { verifySignUp, verifyUser } = middlewareFactory(db);
315
+ app.use(function(req, res, next) {
316
+ res.header(
317
+ "Access-Control-Allow-Headers",
318
+ "Access-Control-Allow-Origin",
319
+ "x-access-token, Origin, Content-Type, Accept"
320
+ );
321
+ next();
322
+ });
323
+ app.post(
324
+ "/api/twofa/sendcode",
325
+ [
326
+ verifySignUp.checkDuplicateUsernameOrEmail
327
+ ],
328
+ controller.sendcode
329
+ );
330
+ app.post(
331
+ "/api/twofa/sendcodereset",
332
+ [
333
+ verifyUser.checkUserExist
334
+ ],
335
+ controller.sendcode
336
+ );
337
+ };
310
338
  var role_model = (mongoose) => {
311
339
  const Role = mongoose.model(
312
340
  "Role",
@@ -319,6 +347,7 @@ var role_model = (mongoose) => {
319
347
  const AuthController = auth_controller;
320
348
  const TwoFaController = twofa_controller;
321
349
  const authRoutes = auth_routes;
350
+ const twofaRoutes = twofa_routes;
322
351
  const RoleModel = role_model;
323
352
  var auth_server = {
324
353
  AuthController,
@@ -46,7 +46,7 @@ const jwt = require$$0;
46
46
  const bcrypt = require$$1$1;
47
47
  const ObjectId = require$$0$1.Types.ObjectId;
48
48
  const { verifyAppleIdToken } = verifyAppleIdToken_1;
49
- const controllerFactory$2 = (db) => {
49
+ const controllerFactory$3 = (db) => {
50
50
  const User = db.user;
51
51
  const Membership = db.membership;
52
52
  const Invite = db.invite;
@@ -237,9 +237,9 @@ const controllerFactory$2 = (db) => {
237
237
  updatePassword
238
238
  };
239
239
  };
240
- var auth_controller = controllerFactory$2;
240
+ var auth_controller = controllerFactory$3;
241
241
  const { sendEmail, sendSms } = mailing;
242
- const controllerFactory$1 = (db) => {
242
+ const controllerFactory$2 = (db) => {
243
243
  const sendcode = async (req, res) => {
244
244
  const code = Math.floor(1e3 + Math.random() * 9e3);
245
245
  const type = req.body.type;
@@ -266,14 +266,14 @@ const controllerFactory$1 = (db) => {
266
266
  sendcode
267
267
  };
268
268
  };
269
- var twofa_controller = controllerFactory$1;
270
- const controllerFactory = auth_controller;
269
+ var twofa_controller = controllerFactory$2;
270
+ const controllerFactory$1 = auth_controller;
271
271
  const controllerFactoryTwofa = twofa_controller;
272
- const middlewareFactory = server;
272
+ const middlewareFactory$1 = server;
273
273
  var auth_routes = function(app, db, origins) {
274
- const controller = controllerFactory(db);
274
+ const controller = controllerFactory$1(db);
275
275
  const controllerTwofa = controllerFactoryTwofa();
276
- const { verifySignUp, verifyUser } = middlewareFactory(db);
276
+ const { verifySignUp, verifyUser } = middlewareFactory$1(db);
277
277
  app.use(function(req, res, next) {
278
278
  const origin = req.headers.origin;
279
279
  if (origins.includes(origin)) {
@@ -306,6 +306,34 @@ var auth_routes = function(app, db, origins) {
306
306
  controller.updatePassword
307
307
  );
308
308
  };
309
+ const controllerFactory = twofa_controller;
310
+ const middlewareFactory = server;
311
+ var twofa_routes = function(app, db) {
312
+ const controller = controllerFactory();
313
+ const { verifySignUp, verifyUser } = middlewareFactory(db);
314
+ app.use(function(req, res, next) {
315
+ res.header(
316
+ "Access-Control-Allow-Headers",
317
+ "Access-Control-Allow-Origin",
318
+ "x-access-token, Origin, Content-Type, Accept"
319
+ );
320
+ next();
321
+ });
322
+ app.post(
323
+ "/api/twofa/sendcode",
324
+ [
325
+ verifySignUp.checkDuplicateUsernameOrEmail
326
+ ],
327
+ controller.sendcode
328
+ );
329
+ app.post(
330
+ "/api/twofa/sendcodereset",
331
+ [
332
+ verifyUser.checkUserExist
333
+ ],
334
+ controller.sendcode
335
+ );
336
+ };
309
337
  var role_model = (mongoose) => {
310
338
  const Role = mongoose.model(
311
339
  "Role",
@@ -318,6 +346,7 @@ var role_model = (mongoose) => {
318
346
  const AuthController = auth_controller;
319
347
  const TwoFaController = twofa_controller;
320
348
  const authRoutes = auth_routes;
349
+ const twofaRoutes = twofa_routes;
321
350
  const RoleModel = role_model;
322
351
  var auth_server = {
323
352
  AuthController,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../FieldPhone/click-outside.cjs");require("./Dropdown.vue2.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),d={key:0},f={key:1},p={__name:"Dropdown",props:{label:{type:[String,Object],default:"Open"},align:{type:String,default:"left"}},setup(t){let n=c.default;const i=t,l=e.ref(!1),a=e.computed(()=>typeof i.label=="object");function s(){l.value=!1}return(r,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"dropdown pos-relative",onClick:o[0]||(o[0]=e.withModifiers(m=>l.value=!l.value,["stop"]))},[a.value?(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.label.component),{class:e.normalizeClass(t.label.class)},null,8,["class"]))])):(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.label),1)),e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{style:e.normalizeStyle({left:t.align==="left"?"0":"auto",right:t.align==="right"?"0":"auto"}),class:"dropdown-content w-15r radius-big"},[e.renderSlot(r.$slots,"default",{},void 0,!0)],4),[[e.vShow,l.value]])]),_:3})])),[[e.unref(n),s]])}},v=u.default(p,[["__scopeId","data-v-542fc6b9"]]);exports.default=v;
1
+ "use strict";
@@ -1,55 +1 @@
1
- import { ref as u, computed as f, withDirectives as i, openBlock as o, createElementBlock as l, withModifiers as m, createBlock as p, resolveDynamicComponent as v, normalizeClass as b, toDisplayString as g, createVNode as k, Transition as w, withCtx as y, createElementVNode as h, normalizeStyle as C, renderSlot as O, vShow as S, unref as D } from "vue";
2
- import x from "../FieldPhone/click-outside.js";
3
- import "./Dropdown.vue2.js";
4
- import B from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- const T = { key: 0 }, j = { key: 1 }, z = {
6
- __name: "Dropdown",
7
- props: {
8
- label: {
9
- type: [String, Object],
10
- default: "Open"
11
- },
12
- align: {
13
- type: String,
14
- default: "left"
15
- }
16
- },
17
- setup(e) {
18
- let a = x;
19
- const s = e, t = u(!1), r = f(() => typeof s.label == "object");
20
- function c() {
21
- t.value = !1;
22
- }
23
- return (d, n) => i((o(), l("div", {
24
- class: "dropdown pos-relative",
25
- onClick: n[0] || (n[0] = m((E) => t.value = !t.value, ["stop"]))
26
- }, [
27
- r.value ? (o(), l("div", T, [
28
- (o(), p(v(e.label.component), {
29
- class: b(e.label.class)
30
- }, null, 8, ["class"]))
31
- ])) : (o(), l("div", j, g(e.label), 1)),
32
- k(w, {
33
- name: "TransitionTranslateY",
34
- mode: "out-in"
35
- }, {
36
- default: y(() => [
37
- i(h("div", {
38
- style: C({ left: e.align === "left" ? "0" : "auto", right: e.align === "right" ? "0" : "auto" }),
39
- class: "dropdown-content w-15r radius-big"
40
- }, [
41
- O(d.$slots, "default", {}, void 0, !0)
42
- ], 4), [
43
- [S, t.value]
44
- ])
45
- ]),
46
- _: 3
47
- })
48
- ])), [
49
- [D(a), c]
50
- ]);
51
- }
52
- }, I = /* @__PURE__ */ B(z, [["__scopeId", "data-v-542fc6b9"]]);
53
- export {
54
- I as default
55
- };
1
+
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../FieldPhone/click-outside.cjs");require("./Dropdown.vue.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),d={key:0},f={key:1},p={__name:"Dropdown",props:{label:{type:[String,Object],default:"Open"},align:{type:String,default:"left"}},setup(t){let n=c.default;const i=t,l=e.ref(!1),a=e.computed(()=>typeof i.label=="object");function s(){l.value=!1}return(r,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"dropdown pos-relative",onClick:o[0]||(o[0]=e.withModifiers(m=>l.value=!l.value,["stop"]))},[a.value?(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.label.component),{class:e.normalizeClass(t.label.class)},null,8,["class"]))])):(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.label),1)),e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{style:e.normalizeStyle({left:t.align==="left"?"0":"auto",right:t.align==="right"?"0":"auto"}),class:"dropdown-content w-15r radius-big"},[e.renderSlot(r.$slots,"default",{},void 0,!0)],4),[[e.vShow,l.value]])]),_:3})])),[[e.unref(n),s]])}},v=u.default(p,[["__scopeId","data-v-542fc6b9"]]);exports.default=v;
@@ -1 +1,55 @@
1
-
1
+ import { ref as u, computed as f, withDirectives as i, openBlock as o, createElementBlock as l, withModifiers as m, createBlock as p, resolveDynamicComponent as v, normalizeClass as b, toDisplayString as g, createVNode as k, Transition as w, withCtx as y, createElementVNode as h, normalizeStyle as C, renderSlot as O, vShow as S, unref as D } from "vue";
2
+ import x from "../FieldPhone/click-outside.js";
3
+ import "./Dropdown.vue.js";
4
+ import B from "../../../../_virtual/_plugin-vue_export-helper.js";
5
+ const T = { key: 0 }, j = { key: 1 }, z = {
6
+ __name: "Dropdown",
7
+ props: {
8
+ label: {
9
+ type: [String, Object],
10
+ default: "Open"
11
+ },
12
+ align: {
13
+ type: String,
14
+ default: "left"
15
+ }
16
+ },
17
+ setup(e) {
18
+ let a = x;
19
+ const s = e, t = u(!1), r = f(() => typeof s.label == "object");
20
+ function c() {
21
+ t.value = !1;
22
+ }
23
+ return (d, n) => i((o(), l("div", {
24
+ class: "dropdown pos-relative",
25
+ onClick: n[0] || (n[0] = m((E) => t.value = !t.value, ["stop"]))
26
+ }, [
27
+ r.value ? (o(), l("div", T, [
28
+ (o(), p(v(e.label.component), {
29
+ class: b(e.label.class)
30
+ }, null, 8, ["class"]))
31
+ ])) : (o(), l("div", j, g(e.label), 1)),
32
+ k(w, {
33
+ name: "TransitionTranslateY",
34
+ mode: "out-in"
35
+ }, {
36
+ default: y(() => [
37
+ i(h("div", {
38
+ style: C({ left: e.align === "left" ? "0" : "auto", right: e.align === "right" ? "0" : "auto" }),
39
+ class: "dropdown-content w-15r radius-big"
40
+ }, [
41
+ O(d.$slots, "default", {}, void 0, !0)
42
+ ], 4), [
43
+ [S, t.value]
44
+ ])
45
+ ]),
46
+ _: 3
47
+ })
48
+ ])), [
49
+ [D(a), c]
50
+ ]);
51
+ }
52
+ }, I = /* @__PURE__ */ B(z, [["__scopeId", "data-v-542fc6b9"]]);
53
+ export {
54
+ I as default
55
+ };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),c=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue2.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(o,{emit:l}){const u=o,a=l;function n(){a("close-popup")}e.watch(()=>u.isPopupOpen,t=>{t?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const i={messages:{en:{},ru:{}}};return c.useI18n(i),(t,s)=>o.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[o.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[o.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},t.$attrs),[e.createVNode(d.default,{onClick:s[0]||(s[0]=p=>n()),class:"cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"}),e.renderSlot(t.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:s[1]||(s[1]=p=>n()),class:e.normalizeClass([{active:o.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=v;
@@ -1 +1,72 @@
1
-
1
+ import { watch as f, openBlock as s, createBlock as v, Teleport as y, createVNode as n, Transition as l, withCtx as i, createElementBlock as a, mergeProps as P, renderSlot as k, createCommentVNode as r, createElementVNode as x, normalizeClass as C } from "vue";
2
+ import { useRoute as O, useRouter as T } from "vue-router";
3
+ import { useI18n as b } from "vue-i18n";
4
+ import g from "../../modules/icons/navigation/IconCross.vue.js";
5
+ import "./Popup.vue2.js";
6
+ const z = {
7
+ key: "popup-content",
8
+ class: "pd-small popup-wrapper"
9
+ }, I = {
10
+ __name: "Popup",
11
+ props: {
12
+ isPopupOpen: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ style: String
17
+ },
18
+ emits: ["close-popup"],
19
+ setup(e, { emit: u }) {
20
+ const m = e, c = u;
21
+ function p() {
22
+ c("close-popup");
23
+ }
24
+ return f(() => m.isPopupOpen, (o) => {
25
+ o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
26
+ }), O(), T(), b({
27
+ messages: {
28
+ en: {},
29
+ ru: {}
30
+ }
31
+ }), (o, t) => e.isPopupOpen ? (s(), v(y, {
32
+ key: 0,
33
+ to: "body"
34
+ }, [
35
+ n(l, {
36
+ name: "TransitionTranslateY",
37
+ appear: ""
38
+ }, {
39
+ default: i(() => [
40
+ e.isPopupOpen ? (s(), a("div", z, [
41
+ n(l, {
42
+ name: "TransitionTranslateY",
43
+ mode: "out-in"
44
+ }, {
45
+ default: i(() => [
46
+ e.isPopupOpen ? (s(), a("section", P({
47
+ key: 0,
48
+ class: "pos-relative z-index-4"
49
+ }, o.$attrs), [
50
+ n(g, {
51
+ onClick: t[0] || (t[0] = (d) => p()),
52
+ class: "cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"
53
+ }),
54
+ k(o.$slots, "default")
55
+ ], 16)) : r("", !0)
56
+ ]),
57
+ _: 3
58
+ }),
59
+ x("div", {
60
+ onClick: t[1] || (t[1] = (d) => p()),
61
+ class: C([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
62
+ }, null, 2)
63
+ ])) : r("", !0)
64
+ ]),
65
+ _: 3
66
+ })
67
+ ])) : r("", !0);
68
+ }
69
+ };
70
+ export {
71
+ I as default
72
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),c=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(o,{emit:l}){const u=o,a=l;function n(){a("close-popup")}e.watch(()=>u.isPopupOpen,t=>{t?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const i={messages:{en:{},ru:{}}};return c.useI18n(i),(t,s)=>o.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[o.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[o.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},t.$attrs),[e.createVNode(d.default,{onClick:s[0]||(s[0]=p=>n()),class:"cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"}),e.renderSlot(t.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:s[1]||(s[1]=p=>n()),class:e.normalizeClass([{active:o.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=v;
1
+ "use strict";
@@ -1,72 +1 @@
1
- import { watch as f, openBlock as s, createBlock as v, Teleport as y, createVNode as n, Transition as l, withCtx as i, createElementBlock as a, mergeProps as P, renderSlot as k, createCommentVNode as r, createElementVNode as x, normalizeClass as C } from "vue";
2
- import { useRoute as O, useRouter as T } from "vue-router";
3
- import { useI18n as b } from "vue-i18n";
4
- import g from "../../modules/icons/navigation/IconCross.vue.js";
5
- import "./Popup.vue.js";
6
- const z = {
7
- key: "popup-content",
8
- class: "pd-small popup-wrapper"
9
- }, I = {
10
- __name: "Popup",
11
- props: {
12
- isPopupOpen: {
13
- type: Boolean,
14
- default: !1
15
- },
16
- style: String
17
- },
18
- emits: ["close-popup"],
19
- setup(e, { emit: u }) {
20
- const m = e, c = u;
21
- function p() {
22
- c("close-popup");
23
- }
24
- return f(() => m.isPopupOpen, (o) => {
25
- o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
26
- }), O(), T(), b({
27
- messages: {
28
- en: {},
29
- ru: {}
30
- }
31
- }), (o, t) => e.isPopupOpen ? (s(), v(y, {
32
- key: 0,
33
- to: "body"
34
- }, [
35
- n(l, {
36
- name: "TransitionTranslateY",
37
- appear: ""
38
- }, {
39
- default: i(() => [
40
- e.isPopupOpen ? (s(), a("div", z, [
41
- n(l, {
42
- name: "TransitionTranslateY",
43
- mode: "out-in"
44
- }, {
45
- default: i(() => [
46
- e.isPopupOpen ? (s(), a("section", P({
47
- key: 0,
48
- class: "pos-relative z-index-4"
49
- }, o.$attrs), [
50
- n(g, {
51
- onClick: t[0] || (t[0] = (d) => p()),
52
- class: "cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"
53
- }),
54
- k(o.$slots, "default")
55
- ], 16)) : r("", !0)
56
- ]),
57
- _: 3
58
- }),
59
- x("div", {
60
- onClick: t[1] || (t[1] = (d) => p()),
61
- class: C([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
62
- }, null, 2)
63
- ])) : r("", !0)
64
- ]),
65
- _: 3
66
- })
67
- ])) : r("", !0);
68
- }
69
- };
70
- export {
71
- I as default
72
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tab.vue2.cjs");const m={class:""},v={class:"flex-nowrap flex-v-center flex pos-relative"},p=["onClick"],k={__name:"Tab",props:{tabs:Array,selected:String,callback:Function},emits:["update:selected"],setup(s,{emit:o}){const i=o,l=s,c=e.ref(0);if(l.selected){const t=l.tabs.findIndex(a=>a.value===l.selected);t!==-1&&(c.value=t)}function u(t,a){c.value=t,i("update:selected",a.value),l.callback&&l.callback()}function d(t){return`${100/l.tabs.length*t}%`}function f(){return`${100/l.tabs.length}%`}const b=e.computed(()=>({left:d(c.value),width:f()}));return(t,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabs,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:_=>u(n,r),class:e.normalizeClass([{"t-transp":n!==c.value},"z-index-1 t-center pd-small w-100"])},[e.createElementVNode("label",null,e.toDisplayString(r.name),1)],10,p))),128)),e.createElementVNode("div",{style:e.normalizeStyle(b.value),class:"radius-extra bg-main t-white tab-selector"},null,4)])]))}};exports.default=k;
1
+ "use strict";
@@ -1,46 +1 @@
1
- import { ref as v, computed as h, openBlock as c, createElementBlock as s, createElementVNode as r, Fragment as _, renderList as g, normalizeClass as k, toDisplayString as x, normalizeStyle as y } from "vue";
2
- import "./Tab.vue2.js";
3
- const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex pos-relative" }, w = ["onClick"], W = {
4
- __name: "Tab",
5
- props: {
6
- tabs: Array,
7
- selected: String,
8
- callback: Function
9
- },
10
- emits: ["update:selected"],
11
- setup(o, { emit: d }) {
12
- const u = d, t = o, a = v(0);
13
- if (t.selected) {
14
- const e = t.tabs.findIndex((l) => l.value === t.selected);
15
- e !== -1 && (a.value = e);
16
- }
17
- function f(e, l) {
18
- a.value = e, u("update:selected", l.value), t.callback && t.callback();
19
- }
20
- function b(e) {
21
- return `${100 / t.tabs.length * e}%`;
22
- }
23
- function m() {
24
- return `${100 / t.tabs.length}%`;
25
- }
26
- const p = h(() => ({ left: b(a.value), width: m() }));
27
- return (e, l) => (c(), s("div", S, [
28
- r("div", T, [
29
- (c(!0), s(_, null, g(o.tabs, (i, n) => (c(), s("div", {
30
- key: n,
31
- onClick: (z) => f(n, i),
32
- class: k([{ "t-transp": n !== a.value }, "z-index-1 t-center pd-small w-100"])
33
- }, [
34
- r("label", null, x(i.name), 1)
35
- ], 10, w))), 128)),
36
- r("div", {
37
- style: y(p.value),
38
- class: "radius-extra bg-main t-white tab-selector"
39
- }, null, 4)
40
- ])
41
- ]));
42
- }
43
- };
44
- export {
45
- W as default
46
- };
1
+
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tab.vue.cjs");const m={class:""},v={class:"flex-nowrap flex-v-center flex pos-relative"},p=["onClick"],k={__name:"Tab",props:{tabs:Array,selected:String,callback:Function},emits:["update:selected"],setup(s,{emit:o}){const i=o,l=s,c=e.ref(0);if(l.selected){const t=l.tabs.findIndex(a=>a.value===l.selected);t!==-1&&(c.value=t)}function u(t,a){c.value=t,i("update:selected",a.value),l.callback&&l.callback()}function d(t){return`${100/l.tabs.length*t}%`}function f(){return`${100/l.tabs.length}%`}const b=e.computed(()=>({left:d(c.value),width:f()}));return(t,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabs,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:_=>u(n,r),class:e.normalizeClass([{"t-transp":n!==c.value},"z-index-1 t-center pd-small w-100"])},[e.createElementVNode("label",null,e.toDisplayString(r.name),1)],10,p))),128)),e.createElementVNode("div",{style:e.normalizeStyle(b.value),class:"radius-extra bg-main t-white tab-selector"},null,4)])]))}};exports.default=k;
@@ -1 +1,46 @@
1
-
1
+ import { ref as v, computed as h, openBlock as c, createElementBlock as s, createElementVNode as r, Fragment as _, renderList as g, normalizeClass as k, toDisplayString as x, normalizeStyle as y } from "vue";
2
+ import "./Tab.vue.js";
3
+ const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex pos-relative" }, w = ["onClick"], W = {
4
+ __name: "Tab",
5
+ props: {
6
+ tabs: Array,
7
+ selected: String,
8
+ callback: Function
9
+ },
10
+ emits: ["update:selected"],
11
+ setup(o, { emit: d }) {
12
+ const u = d, t = o, a = v(0);
13
+ if (t.selected) {
14
+ const e = t.tabs.findIndex((l) => l.value === t.selected);
15
+ e !== -1 && (a.value = e);
16
+ }
17
+ function f(e, l) {
18
+ a.value = e, u("update:selected", l.value), t.callback && t.callback();
19
+ }
20
+ function b(e) {
21
+ return `${100 / t.tabs.length * e}%`;
22
+ }
23
+ function m() {
24
+ return `${100 / t.tabs.length}%`;
25
+ }
26
+ const p = h(() => ({ left: b(a.value), width: m() }));
27
+ return (e, l) => (c(), s("div", S, [
28
+ r("div", T, [
29
+ (c(!0), s(_, null, g(o.tabs, (i, n) => (c(), s("div", {
30
+ key: n,
31
+ onClick: (z) => f(n, i),
32
+ class: k([{ "t-transp": n !== a.value }, "z-index-1 t-center pd-small w-100"])
33
+ }, [
34
+ r("label", null, x(i.name), 1)
35
+ ], 10, w))), 128)),
36
+ r("div", {
37
+ style: y(p.value),
38
+ class: "radius-extra bg-main t-white tab-selector"
39
+ }, null, 4)
40
+ ])
41
+ ]));
42
+ }
43
+ };
44
+ export {
45
+ W as default
46
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const n={class:"cols-2-1_2 gap-small pd-small bg-white"},u=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",n,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:l,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{ref:"page",key:i.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),u])}}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const n={class:"cols-2-1_2 gap-small pd-small bg-white"},u=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",n,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:l,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{ref:"page",key:i.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),u])}}};exports.default=s;
@@ -1,5 +1,5 @@
1
1
  import { ref as e, resolveComponent as a, openBlock as o, createElementBlock as m, createVNode as t, withCtx as r, Transition as c, createBlock as p, resolveDynamicComponent as u, createElementVNode as d } from "vue";
2
- import "../../../../components/Tab/Tab.vue2.js";
2
+ import "../../../../components/Tab/Tab.vue.js";
3
3
  import "../../../../components/Field/Field.vue2.js";
4
4
  import "../../../../components/Button/Button.vue2.js";
5
5
  import "vue-i18n";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const l=require("../../../../components/Field/Field.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),i=require("vue-router"),h=require("vue-i18n"),t=require("../../store/auth.cjs"),d=require("../../../middlewares/client/inputs.validation.cjs"),w=require("../../localization/EnterPassword.json.cjs");require("./EnterPassword.vue2.cjs");const y={class:"t-left pd-medium"},_={class:"mn-b-small"},g={key:0,class:"mn-b-semi t-transp"},b={key:1,class:"mn-b-semi t-transp"},k={class:"mn-b-semi radius-small o-hidden"},q={key:2,class:"p-medium t-semi mn-b-semi"},B=e.createElementVNode("a",{class:"t-second",href:"/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),E={key:0},P={key:1},v={__name:"EnterPassword",setup(S){const n=e.ref(null),{t:s}=h.useI18n({useScope:"global",...w.default}),r=i.useRoute(),u=i.useRouter();e.ref("phone");async function c(){try{await d.validateInputs(n,d.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}r.query.method==="reset-password"&&await t.actions.updatePassword(t.state.user,r.query.type),r.query.method!=="reset-password"&&await t.actions.signup(t.state.user,r.query.type)}function p(){u.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(m,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",_,e.toDisplayString(e.unref(s)("almostDone")),1),e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(e.unref(s)("newPasswordPrompt")),1)):(e.openBlock(),e.createElementBlock("p",b,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",k,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":o[0]||(o[0]=a=>t.state.user.password=a),type:"password",validation:n.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["field","validation","placeholder"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":o[1]||(o[1]=a=>t.state.user.passwordRepeat=a),type:"password",placeholder:e.unref(s)("repeatPasswordPlaceholder"),class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["field","placeholder"])]),e.unref(r).query.method!=="reset-password"?(e.openBlock(),e.createElementBlock("div",q,[e.createTextVNode(" By registering, you agree to our "),B])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(e.unref(s)("changePasswordBtn")),1)):(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(e.unref(s)("registerBtn")),1))]),_:1})]))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),i=require("vue-router"),h=require("vue-i18n"),t=require("../../store/auth.cjs"),d=require("../../../middlewares/client/inputs.validation.cjs"),w=require("../../localization/EnterPassword.json.cjs");require("./EnterPassword.vue2.cjs");const y={class:"t-left pd-medium"},_={class:"mn-b-small"},g={key:0,class:"mn-b-semi t-transp"},b={key:1,class:"mn-b-semi t-transp"},k={class:"mn-b-semi radius-small o-hidden"},q={key:2,class:"p-medium t-semi mn-b-semi"},B=e.createElementVNode("a",{class:"t-second",href:"/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),E={key:0},P={key:1},v={__name:"EnterPassword",setup(S){const n=e.ref(null),{t:s}=h.useI18n({useScope:"global",...w.default}),r=i.useRoute(),u=i.useRouter();e.ref("phone");async function c(){try{await d.validateInputs(n,d.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}r.query.method==="reset-password"&&await t.actions.updatePassword(t.state.user,r.query.type),r.query.method!=="reset-password"&&await t.actions.signup(t.state.user,r.query.type)}function p(){u.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(m,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",_,e.toDisplayString(e.unref(s)("almostDone")),1),e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(e.unref(s)("newPasswordPrompt")),1)):(e.openBlock(),e.createElementBlock("p",b,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",k,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":o[0]||(o[0]=a=>t.state.user.password=a),type:"password",validation:n.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["field","validation","placeholder"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":o[1]||(o[1]=a=>t.state.user.passwordRepeat=a),type:"password",placeholder:e.unref(s)("repeatPasswordPlaceholder"),class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["field","placeholder"])]),e.unref(r).query.method!=="reset-password"?(e.openBlock(),e.createElementBlock("div",q,[e.createTextVNode(" By registering, you agree to our "),B])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(e.unref(s)("changePasswordBtn")),1)):(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(e.unref(s)("registerBtn")),1))]),_:1})]))}};exports.default=v;
@@ -1,5 +1,5 @@
1
1
  import { ref as u, openBlock as o, createElementBlock as a, createElementVNode as p, toDisplayString as d, unref as e, createVNode as l, createTextVNode as g, createCommentVNode as b, withCtx as P } from "vue";
2
- import "../../../../components/Tab/Tab.vue2.js";
2
+ import "../../../../components/Tab/Tab.vue.js";
3
3
  import c from "../../../../components/Field/Field.vue.js";
4
4
  import k from "../../../../components/Button/Button.vue.js";
5
5
  import { useRoute as q, useRouter as v } from "vue-router";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const u=require("../../../../components/Field/Field.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),w=require("../../../organizations/store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const b={class:"t-left pd-medium"},h=e.createElementVNode("h3",{class:"mn-b-small"},"Вы были пригилашены в организацию",-1),v=e.createElementVNode("p",{class:"mn-b-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),q={class:"mn-b-semi radius-small o-hidden"},y=e.createElementVNode("span",null,"Join",-1),V={__name:"Invite",async setup(g){let i,n;const l=e.ref(null),a=d.useRoute(),p=d.useRouter();[i,n]=e.withAsyncContext(()=>w.actions.readOne(a.query.inviteCode)),await i,n();async function m(){try{await c.validateInputs(l,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}try{await t.actions.signup(t.state.user,a.query.type,a.query.inviteCode)}catch(r){console.log(r)}}function _(){p.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>(e.openBlock(),e.createElementBlock("section",b,[h,v,e.createElementVNode("div",q,[e.createVNode(u.default,{field:t.state.user.password,"onUpdate:field":s[0]||(s[0]=o=>t.state.user.password=o),type:"password",validation:l.value,label:"Пароль",placeholder:"******",class:"bg-white radius-small mn-b-small"},null,8,["field","validation"]),e.createVNode(u.default,{field:t.state.user.passwordRepeat,"onUpdate:field":s[1]||(s[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Повторите пароль",placeholder:"******",class:"bg-white radius-small mn-b-semi"},null,8,["field"])]),e.createVNode(f.default,{submit:m,callback:_,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode("\\ "),y]),_:1})]))}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const u=require("../../../../components/Field/Field.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),w=require("../../../organizations/store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const b={class:"t-left pd-medium"},h=e.createElementVNode("h3",{class:"mn-b-small"},"Вы были пригилашены в организацию",-1),v=e.createElementVNode("p",{class:"mn-b-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),q={class:"mn-b-semi radius-small o-hidden"},y=e.createElementVNode("span",null,"Join",-1),V={__name:"Invite",async setup(g){let i,n;const l=e.ref(null),a=d.useRoute(),p=d.useRouter();[i,n]=e.withAsyncContext(()=>w.actions.readOne(a.query.inviteCode)),await i,n();async function m(){try{await c.validateInputs(l,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}try{await t.actions.signup(t.state.user,a.query.type,a.query.inviteCode)}catch(r){console.log(r)}}function _(){p.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>(e.openBlock(),e.createElementBlock("section",b,[h,v,e.createElementVNode("div",q,[e.createVNode(u.default,{field:t.state.user.password,"onUpdate:field":s[0]||(s[0]=o=>t.state.user.password=o),type:"password",validation:l.value,label:"Пароль",placeholder:"******",class:"bg-white radius-small mn-b-small"},null,8,["field","validation"]),e.createVNode(u.default,{field:t.state.user.passwordRepeat,"onUpdate:field":s[1]||(s[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Повторите пароль",placeholder:"******",class:"bg-white radius-small mn-b-semi"},null,8,["field"])]),e.createVNode(f.default,{submit:m,callback:_,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode("\\ "),y]),_:1})]))}};exports.default=V;
@@ -1,5 +1,5 @@
1
1
  import { ref as f, withAsyncContext as _, openBlock as w, createElementBlock as b, createElementVNode as s, createVNode as i, withCtx as h, createTextVNode as y } from "vue";
2
- import "../../../../components/Tab/Tab.vue2.js";
2
+ import "../../../../components/Tab/Tab.vue.js";
3
3
  import m from "../../../../components/Field/Field.vue.js";
4
4
  import v from "../../../../components/Button/Button.vue.js";
5
5
  import { useRoute as g, useRouter as x } from "vue-router";