@ozdao/prometheus-framework 0.1.39 → 0.1.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. package/dist/ButtonToggleMembership-738720bd.js +1 -0
  2. package/dist/ButtonToggleMembership-e337e704.mjs +90 -0
  3. package/dist/CardBlogpost-c7adb0a7.mjs +246 -0
  4. package/dist/CardBlogpost-f308ff64.js +1 -0
  5. package/dist/CardOrganization-22beb83d.js +1 -0
  6. package/dist/CardOrganization-ae384e54.mjs +234 -0
  7. package/dist/Chips-edf2b573.js +1 -0
  8. package/dist/Chips-f06ec38f.mjs +213 -0
  9. package/dist/Community-04b25965.mjs +130 -0
  10. package/dist/Community-2f6fee0f.js +1 -0
  11. package/dist/Events-41d71b0e.js +1 -0
  12. package/dist/Events-af7170ed.mjs +134 -0
  13. package/dist/Feed-04fe1f7a.mjs +361 -0
  14. package/dist/Feed-23758089.mjs +124 -0
  15. package/dist/Feed-36e83be3.mjs +156 -0
  16. package/dist/Feed-5653cf8b.js +1 -0
  17. package/dist/Feed-5a359bb7.js +1 -0
  18. package/dist/Feed-6ca0541a.js +1 -0
  19. package/dist/Image-39955d9d.mjs +480 -0
  20. package/dist/Image-c2d190d8.js +9 -0
  21. package/dist/LeftoverAdd-21311275.js +1 -0
  22. package/dist/LeftoverAdd-ccf4595f.mjs +228 -0
  23. package/dist/Members-7251dd52.mjs +109 -0
  24. package/dist/Members-d35ab7e8.js +1 -0
  25. package/dist/Organizations-a964d4b6.mjs +72 -0
  26. package/dist/Organizations-ed6d36d6.js +1 -0
  27. package/dist/Product-299070ad.mjs +652 -0
  28. package/dist/Product-aacb05f3.js +7 -0
  29. package/dist/ProductEdit-70bed802.mjs +296 -0
  30. package/dist/ProductEdit-e5a2e0f6.js +1 -0
  31. package/dist/ProductsBackoffice-3c182d6a.mjs +86 -0
  32. package/dist/ProductsBackoffice-b684913d.js +1 -0
  33. package/dist/ProfileBlogposts-6bf526fb.js +1 -0
  34. package/dist/ProfileBlogposts-d4b17535.mjs +77 -0
  35. package/dist/ProfileEvents-3eeb4320.mjs +68 -0
  36. package/dist/ProfileEvents-90e09978.js +1 -0
  37. package/dist/ProfileOrganizations-e838925f.js +1 -0
  38. package/dist/ProfileOrganizations-edf657ca.mjs +72 -0
  39. package/dist/Publics-a31d7fe7.js +1 -0
  40. package/dist/Publics-a8f31413.mjs +45 -0
  41. package/dist/Wallet-2043b611.mjs +24682 -0
  42. package/dist/Wallet-8fa7386a.js +55 -0
  43. package/dist/auth-076a83d0.mjs +625 -0
  44. package/dist/auth-df5a20c6.js +7 -0
  45. package/dist/auth.client.cjs +1 -1
  46. package/dist/auth.client.js +4 -4
  47. package/dist/auth.validation-80b133df.js +1 -0
  48. package/dist/auth.validation-fd9ae66f.mjs +24 -0
  49. package/dist/backoffice.client.cjs +1 -1
  50. package/dist/backoffice.client.js +11 -11
  51. package/dist/categories-4327a81c.js +1 -0
  52. package/dist/categories-52a561a4.mjs +122 -0
  53. package/dist/community.client.cjs +1 -1
  54. package/dist/community.client.js +10 -10
  55. package/dist/events.client.cjs +2 -2
  56. package/dist/events.client.js +9 -9
  57. package/dist/legal.client.cjs +1 -1
  58. package/dist/legal.client.js +1 -1
  59. package/dist/main.css +1 -1
  60. package/dist/modules/gallery/components/pages/Gallery.vue.d.ts +2 -0
  61. package/dist/modules/gallery/components/sections/GalleryWithCategories.vue.d.ts +2 -0
  62. package/dist/modules/globals/components/sections/Title.vue.d.ts +6 -0
  63. package/dist/organizations-966e1cd2.mjs +122 -0
  64. package/dist/organizations-d12c42b6.js +1 -0
  65. package/dist/organizations.client-8f263e28.js +3 -0
  66. package/dist/organizations.client-9ffc023f.mjs +2996 -0
  67. package/dist/organizations.client.cjs +1 -1
  68. package/dist/organizations.client.js +15 -15
  69. package/dist/products-7e4253eb.js +1 -0
  70. package/dist/products-aabe5c02.mjs +108 -0
  71. package/dist/prometheus-framework.cjs.js +1 -1
  72. package/dist/prometheus-framework.es.js +2 -2
  73. package/dist/states.validation-4594b33c.mjs +13 -0
  74. package/dist/states.validation-69003e66.js +1 -0
  75. package/dist/style.css +1 -1
  76. package/dist/users.client.cjs +1 -1
  77. package/dist/users.client.js +198 -166
  78. package/package.json +1 -1
  79. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  80. package/src/components/LocationSelection/LocationSelection.vue +1 -1
  81. package/src/components/Navigation/Navigation.vue +12 -1
  82. package/src/components/Sidebar/Sidebar.vue +8 -10
  83. package/src/modules/auth/store/auth.js +7 -4
  84. package/src/modules/backoffice/components/admin/ProductEdit.vue +0 -2
  85. package/src/modules/files/middlewares/server/md.js +1 -0
  86. package/src/modules/gallery/components/pages/Gallery.vue +21 -0
  87. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +408 -0
  88. package/src/modules/gallery/gallery.client.js +11 -14
  89. package/src/modules/gallery/router/gallery.router.js +10 -0
  90. package/src/modules/globals/components/sections/Title.vue +22 -0
  91. package/src/modules/marketplace/router/marketplace.js +4 -3
  92. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  93. package/src/modules/products/components/pages/ProductRecommmendation.vue +5 -3
  94. package/src/modules/products/components/sections/FilterProducts.vue +2 -0
  95. package/src/modules/products/components/sections/SectionProduct.vue +17 -5
  96. package/src/modules/products/components/sections/SortProducts.vue +0 -2
  97. package/src/modules/products/controllers/products.controller.js +83 -0
  98. package/src/modules/products/routes/products.routes.js +5 -5
  99. package/src/modules/products/store/categories.js +9 -9
  100. package/src/modules/products/store/leftovers.js +9 -6
  101. package/src/modules/products/store/products.js +0 -2
  102. package/src/modules/spots/components/layouts/Spots.vue +16 -11
  103. package/src/modules/spots/components/pages/Map.vue +9 -7
  104. package/src/modules/users/components/pages/Profile.vue +15 -5
  105. package/src/modules/users/router/users.js +10 -0
  106. package/src/modules/wallet/components/pages/Wallet.vue +104 -23
@@ -1,24 +1,24 @@
1
- import { ref as M, resolveComponent as L, openBlock as m, createElementBlock as C, createElementVNode as r, toDisplayString as $, createBlock as g, withCtx as p, createTextVNode as H, createCommentVNode as h, reactive as z, onMounted as I, unref as d, createVNode as u, Fragment as A, renderList as D, normalizeClass as F, withAsyncContext as T } from "vue";
1
+ import { ref as M, resolveComponent as z, openBlock as m, createElementBlock as C, createElementVNode as i, toDisplayString as $, createBlock as g, withCtx as p, createTextVNode as H, createCommentVNode as h, reactive as I, onMounted as A, unref as d, createVNode as o, Fragment as D, renderList as F, normalizeClass as T, withAsyncContext as j } from "vue";
2
2
  import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
3
3
  import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
4
- import { D as j, _ as G, P as q } from "./Dropdown-ef2df9a9.mjs";
5
- import { _ as U } from "./Menu-eaf6b44c.mjs";
4
+ import { D as W, _ as G, P as q } from "./Dropdown-ef2df9a9.mjs";
5
+ import { _ as x } from "./Menu-eaf6b44c.mjs";
6
6
  import { _ as k } from "./MenuItem-4a5881bd.mjs";
7
- import { _ as Z } from "./ButtonToggleMembership-3bb9139e.mjs";
7
+ import { _ as Z } from "./ButtonToggleMembership-e337e704.mjs";
8
8
  import { _ as Y } from "./Socials-8193477c.mjs";
9
9
  import { _ as E } from "./_plugin-vue_export-helper-dad06003.mjs";
10
10
  import { I as J } from "./IconEdit-9edfd74d.mjs";
11
- import { useRoute as N, useRouter as O } from "vue-router";
12
- import { s as c, a as R } from "./auth-ec618cb3.mjs";
11
+ import { useRoute as O, useRouter as R } from "vue-router";
12
+ import { s as c, a as B } from "./auth-076a83d0.mjs";
13
13
  import { a as K } from "./index-a661083c.mjs";
14
14
  import { m as Q } from "./memberships-12210953.mjs";
15
15
  import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
16
16
  import { F as v } from "./Field-e5ad88d3.mjs";
17
17
  import { _ as S } from "./Button-9e1a9284.mjs";
18
- import { _ as W } from "./UploadImage-3c627d89.mjs";
18
+ import { _ as X } from "./UploadImage-3c627d89.mjs";
19
19
  import "./inputs.validation-db65277a.mjs";
20
- import "./states.validation-50e3a5a0.mjs";
21
- import { a as X } from "./auth.validation-ba3606bf.mjs";
20
+ import "./states.validation-4594b33c.mjs";
21
+ import { a as ee } from "./auth.validation-fd9ae66f.mjs";
22
22
  import "./Popup-0d8e1392.mjs";
23
23
  import "vue-i18n";
24
24
  import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
@@ -26,7 +26,7 @@ import "./Select-11ddabf5.mjs";
26
26
  import "./reports-79cd9459.mjs";
27
27
  import "./globals-96ba60e4.mjs";
28
28
  import "./click-outside-6101836c.mjs";
29
- const ee = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, B = {
29
+ const te = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, L = {
30
30
  __name: "ProfileCompletion",
31
31
  props: {
32
32
  user: Object,
@@ -34,19 +34,19 @@ const ee = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, B
34
34
  cta: Boolean
35
35
  },
36
36
  setup(a) {
37
- const { user: e, cta: f, target: w } = a, y = M(0), l = (b) => {
38
- let i = 0, n = 0;
39
- function _(s) {
40
- for (let o in s)
41
- s.hasOwnProperty(o) && (s[o] && typeof s[o] == "object" && !Array.isArray(s[o]) ? _(s[o]) : (i++, s[o] != null && s[o] !== "" && n++));
37
+ const { user: e, cta: _, target: w } = a, y = M(0), n = (b) => {
38
+ let s = 0, u = 0;
39
+ function f(r) {
40
+ for (let l in r)
41
+ r.hasOwnProperty(l) && (r[l] && typeof r[l] == "object" && !Array.isArray(r[l]) ? f(r[l]) : (s++, r[l] != null && r[l] !== "" && u++));
42
42
  }
43
- return _(b), i === 0 ? 0 : Math.round(n / i * 100);
43
+ return f(b), s === 0 ? 0 : Math.round(u / s * 100);
44
44
  };
45
- return w && (y.value = l(w)), (b, i) => {
46
- const n = L("router-link");
47
- return m(), C("section", ee, [
48
- r("h3", null, " Profile completed at " + $(y.value) + "% ", 1),
49
- a.cta ? (m(), g(n, {
45
+ return w && (y.value = n(w)), (b, s) => {
46
+ const u = z("router-link");
47
+ return m(), C("section", te, [
48
+ i("h3", null, " Profile completed at " + $(y.value) + "% ", 1),
49
+ a.cta ? (m(), g(u, {
50
50
  key: 0,
51
51
  to: {
52
52
  name: "User Edit Profile",
@@ -62,52 +62,52 @@ const ee = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, B
62
62
  ]);
63
63
  };
64
64
  }
65
- }, te = {}, se = {
65
+ }, se = {}, re = {
66
66
  width: "80",
67
67
  height: "80",
68
68
  viewBox: "0 0 80 80",
69
69
  fill: "none",
70
70
  xmlns: "http://www.w3.org/2000/svg"
71
- }, re = /* @__PURE__ */ r("path", {
71
+ }, ie = /* @__PURE__ */ i("path", {
72
72
  d: "M12 66V32H68V66C68 69.25 65.25 72 62 72H18C14.75 72 12 69.25 12 66ZM52 42V46C52 47.125 52.875 48 54 48H58C59.125 48 60 47.125 60 46V42C60 40.875 59.125 40 58 40H54C52.875 40 52 40.875 52 42ZM52 58V62C52 63.125 52.875 64 54 64H58C59.125 64 60 63.125 60 62V58C60 56.875 59.125 56 58 56H54C52.875 56 52 56.875 52 58ZM36 42V46C36 47.125 36.875 48 38 48H42C43.125 48 44 47.125 44 46V42C44 40.875 43.125 40 42 40H38C36.875 40 36 40.875 36 42ZM36 58V62C36 63.125 36.875 64 38 64H42C43.125 64 44 63.125 44 62V58C44 56.875 43.125 56 42 56H38C36.875 56 36 56.875 36 58ZM20 42V46C20 47.125 20.875 48 22 48H26C27.125 48 28 47.125 28 46V42C28 40.875 27.125 40 26 40H22C20.875 40 20 40.875 20 42ZM20 58V62C20 63.125 20.875 64 22 64H26C27.125 64 28 63.125 28 62V58C28 56.875 27.125 56 26 56H22C20.875 56 20 56.875 20 58ZM62 16C65.25 16 68 18.75 68 22V28H12V22C12 18.75 14.75 16 18 16H24V10C24 8.875 24.875 8 26 8H30C31.125 8 32 8.875 32 10V16H48V10C48 8.875 48.875 8 50 8H54C55.125 8 56 8.875 56 10V16H62Z",
73
73
  fill: "white"
74
- }, null, -1), ie = [
75
- re
74
+ }, null, -1), ae = [
75
+ ie
76
76
  ];
77
- function ae(a, e) {
78
- return m(), C("svg", se, ie);
77
+ function oe(a, e) {
78
+ return m(), C("svg", re, ae);
79
79
  }
80
- const oe = /* @__PURE__ */ E(te, [["render", ae]]), le = {}, ne = {
80
+ const le = /* @__PURE__ */ E(se, [["render", oe]]), ne = {}, ue = {
81
81
  width: "80",
82
82
  height: "80",
83
83
  viewBox: "0 0 80 80",
84
84
  fill: "none",
85
85
  xmlns: "http://www.w3.org/2000/svg"
86
- }, ue = /* @__PURE__ */ r("path", {
86
+ }, de = /* @__PURE__ */ i("path", {
87
87
  d: "M9 19C9 17.1435 9.7375 15.363 11.0503 14.0503C12.363 12.7375 14.1435 12 16 12C17.8565 12 19.637 12.7375 20.9497 14.0503C22.2625 15.363 23 17.1435 23 19C23 20.8565 22.2625 22.637 20.9497 23.9497C19.637 25.2625 17.8565 26 16 26C14.1435 26 12.363 25.2625 11.0503 23.9497C9.7375 22.637 9 20.8565 9 19ZM8 38.7125C6.75 40.1125 6 41.975 6 44C6 46.025 6.75 47.8875 8 49.2875V38.7125ZM26.05 32.55C22.3375 35.8375 20 40.65 20 46C20 50.2875 21.5 54.225 24 57.3125V60C24 62.2125 22.2125 64 20 64H12C9.7875 64 8 62.2125 8 60V56.65C3.275 54.4 0 49.5875 0 44C0 36.2625 6.2625 30 14 30H18C21 30 23.775 30.9375 26.05 32.5375V32.55ZM56 60V57.3125C58.5 54.225 60 50.2875 60 46C60 40.65 57.6625 35.8375 53.95 32.5375C56.225 30.9375 59 30 62 30H66C73.7375 30 80 36.2625 80 44C80 49.5875 76.725 54.4 72 56.65V60C72 62.2125 70.2125 64 68 64H60C57.7875 64 56 62.2125 56 60ZM57 19C57 17.1435 57.7375 15.363 59.0503 14.0503C60.363 12.7375 62.1435 12 64 12C65.8565 12 67.637 12.7375 68.9497 14.0503C70.2625 15.363 71 17.1435 71 19C71 20.8565 70.2625 22.637 68.9497 23.9497C67.637 25.2625 65.8565 26 64 26C62.1435 26 60.363 25.2625 59.0503 23.9497C57.7375 22.637 57 20.8565 57 19ZM72 38.7125V49.3C73.25 47.8875 74 46.0375 74 44.0125C74 41.9875 73.25 40.125 72 38.725V38.7125ZM40 12C42.1217 12 44.1566 12.8429 45.6569 14.3431C47.1571 15.8434 48 17.8783 48 20C48 22.1217 47.1571 24.1566 45.6569 25.6569C44.1566 27.1571 42.1217 28 40 28C37.8783 28 35.8434 27.1571 34.3431 25.6569C32.8429 24.1566 32 22.1217 32 20C32 17.8783 32.8429 15.8434 34.3431 14.3431C35.8434 12.8429 37.8783 12 40 12ZM30 46C30 48.025 30.75 49.875 32 51.2875V40.7125C30.75 42.125 30 43.975 30 46ZM48 40.7125V51.3C49.25 49.8875 50 48.0375 50 46.0125C50 43.9875 49.25 42.125 48 40.725V40.7125ZM56 46C56 51.5875 52.725 56.4 48 58.65V64C48 66.2125 46.2125 68 44 68H36C33.7875 68 32 66.2125 32 64V58.65C27.275 56.4 24 51.5875 24 46C24 38.2625 30.2625 32 38 32H42C49.7375 32 56 38.2625 56 46Z",
88
88
  fill: "white"
89
- }, null, -1), de = [
90
- ue
89
+ }, null, -1), me = [
90
+ de
91
91
  ];
92
- function me(a, e) {
93
- return m(), C("svg", ne, de);
92
+ function ce(a, e) {
93
+ return m(), C("svg", ue, me);
94
94
  }
95
- const ce = /* @__PURE__ */ E(le, [["render", me]]), pe = {}, _e = {
95
+ const N = /* @__PURE__ */ E(ne, [["render", ce]]), pe = {}, _e = {
96
96
  width: "56",
97
97
  height: "56",
98
98
  viewBox: "0 0 56 56",
99
99
  fill: "none",
100
100
  xmlns: "http://www.w3.org/2000/svg"
101
- }, fe = /* @__PURE__ */ r("path", {
101
+ }, fe = /* @__PURE__ */ i("path", {
102
102
  d: "M28.2899 50C24.4282 50.007 20.6332 48.9927 17.2899 47.06L12.5299 49.17C11.6317 49.567 10.6307 49.6695 9.67068 49.4627C8.71061 49.2558 7.84068 48.7503 7.1856 48.0186C6.53051 47.2869 6.12391 46.3666 6.02409 45.3896C5.92426 44.4126 6.13634 43.4291 6.62991 42.58L8.96991 38.58C6.65145 34.3531 5.78562 29.4816 6.50556 24.7147C7.22549 19.9478 9.49132 15.5493 12.9546 12.1956C16.418 8.84187 20.887 6.71863 25.6747 6.15233C30.4623 5.58604 35.3034 6.60805 39.4536 9.06121C43.6037 11.5144 46.8332 15.2629 48.6454 19.7303C50.4576 24.1977 50.7522 29.1367 49.4839 33.7879C48.2155 38.4391 45.4545 42.5448 41.6254 45.4739C37.7962 48.403 33.1109 49.9932 28.2899 50ZM17.4799 42.81C17.8631 42.811 18.238 42.9221 18.5599 43.13C22.2995 45.5441 26.7982 46.4939 31.1945 45.7975C35.5908 45.1011 39.5757 42.8075 42.3861 39.3558C45.1966 35.9041 46.6349 31.537 46.4258 27.0908C46.2167 22.6446 44.3748 18.4318 41.2529 15.2591C38.1309 12.0864 33.9483 10.1769 29.5061 9.89616C25.0638 9.61544 20.6741 10.9833 17.1776 13.7377C13.6811 16.4921 11.3235 20.4396 10.5563 24.8241C9.78918 29.2086 10.6664 33.722 13.0199 37.5C13.2068 37.8111 13.3055 38.1671 13.3055 38.53C13.3055 38.8929 13.2068 39.2489 13.0199 39.56L10.0899 44.56C10.0202 44.6791 9.99023 44.8174 10.0043 44.9547C10.0184 45.0919 10.0759 45.2212 10.1683 45.3237C10.2608 45.4262 10.3834 45.4966 10.5186 45.5247C10.6537 45.5528 10.7943 45.5371 10.9199 45.48L16.6699 43C16.9236 42.8806 17.1996 42.8159 17.4799 42.81Z",
103
103
  fill: "white"
104
- }, null, -1), Ce = /* @__PURE__ */ r("path", {
104
+ }, null, -1), Ce = /* @__PURE__ */ i("path", {
105
105
  d: "M28.2898 30C27.7594 30 27.2507 29.7893 26.8756 29.4142C26.5005 29.0391 26.2898 28.5304 26.2898 28C26.2898 27.4696 26.5005 26.9609 26.8756 26.5858C27.2507 26.2107 27.7594 26 28.2898 26C28.8202 26 29.3289 26.2107 29.704 26.5858C30.0791 26.9609 30.2898 27.4696 30.2898 28C30.2898 28.5304 30.0791 29.0391 29.704 29.4142C29.3289 29.7893 28.8202 30 28.2898 30Z",
106
106
  fill: "white"
107
- }, null, -1), he = /* @__PURE__ */ r("path", {
107
+ }, null, -1), he = /* @__PURE__ */ i("path", {
108
108
  d: "M20.2898 30C19.7594 30 19.2507 29.7893 18.8756 29.4142C18.5005 29.0391 18.2898 28.5304 18.2898 28C18.2898 27.4696 18.5005 26.9609 18.8756 26.5858C19.2507 26.2107 19.7594 26 20.2898 26C20.8202 26 21.3289 26.2107 21.704 26.5858C22.0791 26.9609 22.2898 27.4696 22.2898 28C22.2898 28.5304 22.0791 29.0391 21.704 29.4142C21.3289 29.7893 20.8202 30 20.2898 30Z",
109
109
  fill: "white"
110
- }, null, -1), ge = /* @__PURE__ */ r("path", {
110
+ }, null, -1), ge = /* @__PURE__ */ i("path", {
111
111
  d: "M36.2898 30C35.7594 30 35.2507 29.7893 34.8756 29.4142C34.5005 29.0391 34.2898 28.5304 34.2898 28C34.2898 27.4696 34.5005 26.9609 34.8756 26.5858C35.2507 26.2107 35.7594 26 36.2898 26C36.8202 26 37.3289 26.2107 37.704 26.5858C38.0791 26.9609 38.2898 27.4696 38.2898 28C38.2898 28.5304 38.0791 29.0391 37.704 29.4142C37.3289 29.7893 36.8202 30 36.2898 30Z",
112
112
  fill: "white"
113
113
  }, null, -1), be = [
@@ -119,7 +119,7 @@ const ce = /* @__PURE__ */ E(le, [["render", me]]), pe = {}, _e = {
119
119
  function ve(a, e) {
120
120
  return m(), C("svg", _e, be);
121
121
  }
122
- const we = /* @__PURE__ */ E(pe, [["render", ve]]), x = K.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = z({
122
+ const we = /* @__PURE__ */ E(pe, [["render", ve]]), U = K.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = I({
123
123
  all: [],
124
124
  current: {
125
125
  _id: "",
@@ -144,7 +144,7 @@ const we = /* @__PURE__ */ E(pe, [["render", ve]]), x = K.create({ baseURL: proc
144
144
  }), V = {
145
145
  async create(a) {
146
146
  try {
147
- const e = await x.post("/api/users", a);
147
+ const e = await U.post("/api/users", a);
148
148
  return P.set(e.data, "current"), Promise.resolve(e.data);
149
149
  } catch (e) {
150
150
  return console.error(e), Promise.reject(e);
@@ -153,7 +153,7 @@ const we = /* @__PURE__ */ E(pe, [["render", ve]]), x = K.create({ baseURL: proc
153
153
  async read(a = {}) {
154
154
  a.params = {}, a._id && (a.params._id = a._id), a.user && (a.params.user = a.user);
155
155
  try {
156
- const e = await x.get("/api/users", { params: a.params });
156
+ const e = await U.get("/api/users", { params: a.params });
157
157
  return a._id ? P.set(e.data[0], "current") : P.set(e.data, "all"), Promise.resolve(e.data);
158
158
  } catch (e) {
159
159
  return console.error(e), Promise.reject(e);
@@ -161,7 +161,7 @@ const we = /* @__PURE__ */ E(pe, [["render", ve]]), x = K.create({ baseURL: proc
161
161
  },
162
162
  async update(a) {
163
163
  try {
164
- const e = await x.put(`/api/users/${a._id}`, a);
164
+ const e = await U.put(`/api/users/${a._id}`, a);
165
165
  return P.set(e.data, "current"), Promise.resolve(e.data);
166
166
  } catch (e) {
167
167
  return console.error(e), Promise.reject(e);
@@ -169,8 +169,8 @@ const we = /* @__PURE__ */ E(pe, [["render", ve]]), x = K.create({ baseURL: proc
169
169
  },
170
170
  async delete(a) {
171
171
  try {
172
- await x.delete(`/api/users/${a._id}`);
173
- const e = t.all.findIndex((f) => f._id === a._id);
172
+ await U.delete(`/api/users/${a._id}`);
173
+ const e = t.all.findIndex((_) => _._id === a._id);
174
174
  e !== -1 && t.all.splice(e, 1);
175
175
  } catch (e) {
176
176
  console.error(e);
@@ -192,7 +192,7 @@ const we = /* @__PURE__ */ E(pe, [["render", ve]]), x = K.create({ baseURL: proc
192
192
  orders: []
193
193
  };
194
194
  }
195
- }, Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
195
+ }, Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
196
196
  __proto__: null,
197
197
  actions: V,
198
198
  mutations: P,
@@ -208,40 +208,40 @@ const ye = {
208
208
  key: 1,
209
209
  _id: "dash",
210
210
  class: "pd-b-extra pd-thin w-100"
211
- }, Pe = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, Ve = { class: "bg-black pd-thin radius-small" }, xe = /* @__PURE__ */ r("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), Me = ["src"], Ue = { class: "mn-thin" }, He = { class: "mn-thin t-main t-semi" }, Ee = { class: "mn-small p-medium" }, Ze = { class: "mn-medium flex-center flex-nowrap flex" }, Se = { class: "t-semi mn-small" }, Ne = {
211
+ }, Pe = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, Ve = { class: "bg-black pd-thin radius-small" }, xe = /* @__PURE__ */ i("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), Ue = ["src"], Me = { class: "mn-thin" }, He = { class: "mn-thin t-main t-semi" }, Ee = { class: "mn-small p-medium" }, Ze = { class: "mn-medium flex-center flex-nowrap flex" }, Se = { class: "t-semi mn-small" }, Ne = {
212
212
  key: 5,
213
213
  class: "mn-t-small mn-thin"
214
- }, Oe = /* @__PURE__ */ r("span", null, " Backoffice ", -1), Re = /* @__PURE__ */ r("span", null, "Events", -1), Be = /* @__PURE__ */ r("span", null, "Groups", -1), Le = /* @__PURE__ */ r("span", null, "Posts", -1), ze = /* @__PURE__ */ r("span", null, " Settings ", -1), Ie = /* @__PURE__ */ r("span", null, " About ", -1), Ae = /* @__PURE__ */ r("span", { class: "t-red" }, " Logout ", -1), De = {
214
+ }, Oe = /* @__PURE__ */ i("span", null, " Backoffice ", -1), Re = /* @__PURE__ */ i("span", null, "Events", -1), Be = /* @__PURE__ */ i("span", null, "Groups", -1), Le = /* @__PURE__ */ i("span", null, "Posts", -1), ze = /* @__PURE__ */ i("span", null, "Wallet", -1), Ie = /* @__PURE__ */ i("span", null, " Settings ", -1), Ae = /* @__PURE__ */ i("span", null, " About ", -1), De = /* @__PURE__ */ i("span", { class: "t-red" }, " Logout ", -1), Fe = {
215
215
  __name: "Profile",
216
216
  setup(a) {
217
- const e = N(), f = O(), w = M(!1);
218
- I(async () => {
217
+ const e = O(), _ = R(), w = M(!1);
218
+ A(async () => {
219
219
  await V.read({ _id: e.params._id, user: c.user._id }), w.value = !0;
220
220
  });
221
- const y = ({ membership: b, status: i, target: n }, _, s) => {
222
- Q.handleMembershipUpdate(t.current, b, i, n, _, s);
221
+ const y = ({ membership: b, status: s, target: u }, f, r) => {
222
+ Q.handleMembershipUpdate(t.current, b, s, u, f, r);
223
223
  };
224
- function l() {
225
- R.logout(), f.push({ name: "Sign In" });
224
+ function n() {
225
+ B.logout(), _.push({ name: "Sign In" });
226
226
  }
227
- return (b, i) => w.value ? (m(), C("div", ye, [
227
+ return (b, s) => w.value ? (m(), C("div", ye, [
228
228
  t.current.status === "removed" ? (m(), C("div", ke, " Sorry, user has been removed. ")) : (m(), C("div", $e, [
229
- d(e).params._id === c.user._id && w.value ? (m(), g(B, {
229
+ d(e).params._id === c.user._id && w.value ? (m(), g(L, {
230
230
  key: 0,
231
231
  user: c.user._id,
232
232
  target: t.current,
233
233
  cta: !0
234
234
  }, null, 8, ["user", "target"])) : h("", !0),
235
- r("section", Pe, [
236
- d(e).params._id && d(e).params._id !== c.user._id ? (m(), g(j, {
235
+ i("section", Pe, [
236
+ d(e).params._id && d(e).params._id !== c.user._id ? (m(), g(W, {
237
237
  key: 0,
238
238
  label: "...",
239
239
  align: "right",
240
240
  class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
241
241
  }, {
242
242
  default: p(() => [
243
- r("section", Ve, [
244
- u(G, {
243
+ i("section", Ve, [
244
+ o(G, {
245
245
  user: c.user._id,
246
246
  type: "user",
247
247
  target: t.current._id,
@@ -261,7 +261,7 @@ const ye = {
261
261
  target: t.current._id,
262
262
  status: t.current.isBlocked,
263
263
  text: { create: "Block", remove: "Unblock" },
264
- onUpdateMembership: i[0] || (i[0] = (n) => y(n, "isBlocked")),
264
+ onUpdateMembership: s[0] || (s[0] = (u) => y(u, "isBlocked")),
265
265
  class: "t-white mn-t-thin bg-red"
266
266
  }, null, 8, ["user", "target", "status"])) : h("", !0)
267
267
  ])
@@ -270,7 +270,7 @@ const ye = {
270
270
  }, 8, ["label"])) : h("", !0),
271
271
  d(e).params._id === c.user._id ? (m(), g(J, {
272
272
  key: 1,
273
- onClick: i[1] || (i[1] = (n) => b.$router.push({
273
+ onClick: s[1] || (s[1] = (u) => b.$router.push({
274
274
  name: "User Edit Profile",
275
275
  params: {
276
276
  _id: c.user._id
@@ -282,19 +282,19 @@ const ye = {
282
282
  key: 2,
283
283
  src: (b.FILE_SERVER_URL || "") + t.current.profile.photo,
284
284
  class: "radius-extra bg-white mn-small object-fit-cover i-extra"
285
- }, null, 8, Me)) : (m(), g(q, {
285
+ }, null, 8, Ue)) : (m(), g(q, {
286
286
  key: 3,
287
287
  class: "radius-medium mn-small i-extra"
288
288
  })),
289
- r("h3", Ue, $(t.current.profile.name ? t.current.profile.name : "Not specified"), 1),
290
- r("p", He, " @" + $(t.current.username ? t.current.username : "Not specified"), 1),
291
- r("p", Ee, $(t.current.profile.description ? t.current.profile.description : "Not specified"), 1),
292
- r("div", Ze, [
293
- (m(!0), C(A, null, D(t.current.roles, (n, _) => (m(), C("div", {
294
- class: F(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": _ !== t.current.roles.length - 1 }])
295
- }, $(n.icon) + " " + $(n.name), 3))), 256))
289
+ i("h3", Me, $(t.current.profile.name ? t.current.profile.name : "Not specified"), 1),
290
+ i("p", He, " @" + $(t.current.username ? t.current.username : "Not specified"), 1),
291
+ i("p", Ee, $(t.current.profile.description ? t.current.profile.description : "Not specified"), 1),
292
+ i("div", Ze, [
293
+ (m(!0), C(D, null, F(t.current.roles, (u, f) => (m(), C("div", {
294
+ class: T(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": f !== t.current.roles.length - 1 }])
295
+ }, $(u.icon) + " " + $(u.name), 3))), 256))
296
296
  ]),
297
- r("p", Se, " 👨‍👨‍👧‍👧 " + $(t.current.numberOfSubscribers) + " followers ", 1),
297
+ i("p", Se, " 👨‍👨‍👧‍👧 " + $(t.current.numberOfSubscribers) + " followers ", 1),
298
298
  c.user._id && d(e).params._id && d(e).params._id !== c.user._id ? (m(), g(Z, {
299
299
  key: 4,
300
300
  user: c.user._id,
@@ -303,11 +303,11 @@ const ye = {
303
303
  target: t.current._id,
304
304
  status: t.current.isSubscriber,
305
305
  text: { create: "Follow", remove: "Unfollow" },
306
- onUpdateMembership: i[2] || (i[2] = (n) => y(n, "isSubscriber", "numberOfSubscribers")),
306
+ onUpdateMembership: s[2] || (s[2] = (u) => y(u, "isSubscriber", "numberOfSubscribers")),
307
307
  class: "w-min mn-medium mn-r-auto mn-l-auto"
308
308
  }, null, 8, ["user", "target", "status"])) : h("", !0),
309
- Object.values(t.current.socials).some((n) => n) ? (m(), C("h4", Ne, " Find Me in Socials ")) : h("", !0),
310
- u(Y, {
309
+ Object.values(t.current.socials).some((u) => u) ? (m(), C("h4", Ne, " Find Me in Socials ")) : h("", !0),
310
+ o(Y, {
311
311
  telegram: t.current.socials.telegram,
312
312
  facebook: t.current.socials.facebook,
313
313
  instagram: t.current.socials.instagram,
@@ -315,13 +315,13 @@ const ye = {
315
315
  class: "mn-r-auto mn-l-auto"
316
316
  }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
317
317
  ]),
318
- c.access.roles && c.user._id === d(e).params._id && (c.access.roles.includes("ROLE_MODERATOR") || c.access.roles.includes("ROLE_ADMIN")) ? (m(), g(U, {
318
+ c.access.roles && c.user._id === d(e).params._id && (c.access.roles.includes("ROLE_MODERATOR") || c.access.roles.includes("ROLE_ADMIN")) ? (m(), g(x, {
319
319
  key: 1,
320
320
  class: "mn-regular bg-black t-white"
321
321
  }, {
322
322
  default: p(() => [
323
- u(k, {
324
- onClick: i[3] || (i[3] = (n) => d(f).push({
323
+ o(k, {
324
+ onClick: s[3] || (s[3] = (u) => d(_).push({
325
325
  name: "Backoffice",
326
326
  params: {
327
327
  _id: d(e).params._id
@@ -338,14 +338,14 @@ const ye = {
338
338
  ]),
339
339
  _: 1
340
340
  })) : h("", !0),
341
- u(U, { class: "mn-regular bg-grey" }, {
341
+ o(x, { class: "mn-regular bg-grey" }, {
342
342
  default: p(() => [
343
- u(k, {
344
- onClick: i[4] || (i[4] = (n) => d(f).push({ name: "User Events", params: { _id: d(e).params._id } })),
343
+ o(k, {
344
+ onClick: s[4] || (s[4] = (u) => d(_).push({ name: "User Events", params: { _id: d(e).params._id } })),
345
345
  class: "cursor-pointer"
346
346
  }, {
347
347
  default: p(() => [
348
- u(oe, {
348
+ o(le, {
349
349
  class: "i-semi",
350
350
  icon: !0
351
351
  }),
@@ -353,12 +353,12 @@ const ye = {
353
353
  ]),
354
354
  _: 1
355
355
  }),
356
- u(k, {
357
- onClick: i[5] || (i[5] = (n) => d(f).push({ name: "User Organizations", params: { _id: d(e).params._id } })),
356
+ o(k, {
357
+ onClick: s[5] || (s[5] = (u) => d(_).push({ name: "User Organizations", params: { _id: d(e).params._id } })),
358
358
  class: "cursor-pointer"
359
359
  }, {
360
360
  default: p(() => [
361
- u(ce, {
361
+ o(N, {
362
362
  class: "i-semi",
363
363
  icon: !0
364
364
  }),
@@ -366,12 +366,12 @@ const ye = {
366
366
  ]),
367
367
  _: 1
368
368
  }),
369
- u(k, {
370
- onClick: i[6] || (i[6] = (n) => d(f).push({ name: "User Blogposts", params: { _id: d(e).params._id } })),
369
+ o(k, {
370
+ onClick: s[6] || (s[6] = (u) => d(_).push({ name: "User Blogposts", params: { _id: d(e).params._id } })),
371
371
  class: "cursor-pointer"
372
372
  }, {
373
373
  default: p(() => [
374
- u(we, {
374
+ o(we, {
375
375
  class: "i-semi",
376
376
  icon: !0
377
377
  }),
@@ -382,13 +382,31 @@ const ye = {
382
382
  ]),
383
383
  _: 1
384
384
  }),
385
- c.user._id === d(e).params._id ? (m(), g(U, {
385
+ o(x, { class: "mn-regular bg-grey" }, {
386
+ default: p(() => [
387
+ o(k, {
388
+ onClick: s[7] || (s[7] = (u) => d(_).push({ name: "User Wallet", params: { _id: d(e).params._id } })),
389
+ class: "cursor-pointer"
390
+ }, {
391
+ default: p(() => [
392
+ o(N, {
393
+ class: "i-semi",
394
+ icon: !0
395
+ }),
396
+ ze
397
+ ]),
398
+ _: 1
399
+ })
400
+ ]),
401
+ _: 1
402
+ }),
403
+ c.user._id === d(e).params._id ? (m(), g(x, {
386
404
  key: 2,
387
405
  class: "bg-grey"
388
406
  }, {
389
407
  default: p(() => [
390
- u(k, {
391
- onClick: i[7] || (i[7] = (n) => d(f).push({
408
+ o(k, {
409
+ onClick: s[8] || (s[8] = (u) => d(_).push({
392
410
  name: "User Edit Profile",
393
411
  params: {
394
412
  _id: d(e).params._id
@@ -397,12 +415,12 @@ const ye = {
397
415
  class: "cursor-pointer"
398
416
  }, {
399
417
  default: p(() => [
400
- ze
418
+ Ie
401
419
  ]),
402
420
  _: 1
403
421
  }),
404
- u(k, {
405
- onClick: i[8] || (i[8] = (n) => d(f).push({
422
+ o(k, {
423
+ onClick: s[9] || (s[9] = (u) => d(_).push({
406
424
  name: "Legal",
407
425
  params: {
408
426
  _id: d(e).params._id
@@ -411,16 +429,16 @@ const ye = {
411
429
  class: "cursor-pointer"
412
430
  }, {
413
431
  default: p(() => [
414
- Ie
432
+ Ae
415
433
  ]),
416
434
  _: 1
417
435
  }),
418
- u(k, {
436
+ o(k, {
419
437
  class: "cursor-pointer",
420
- onClick: i[9] || (i[9] = (n) => l())
438
+ onClick: s[10] || (s[10] = (u) => n())
421
439
  }, {
422
440
  default: p(() => [
423
- Ae
441
+ De
424
442
  ]),
425
443
  _: 1
426
444
  })
@@ -430,124 +448,124 @@ const ye = {
430
448
  ]))
431
449
  ])) : h("", !0);
432
450
  }
433
- }, Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
451
+ }, Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
434
452
  __proto__: null,
435
- default: De
453
+ default: Fe
436
454
  }, Symbol.toStringTag, { value: "Module" }));
437
- const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("h3", { class: "mn-small" }, "Username", -1), Ge = /* @__PURE__ */ r("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), qe = /* @__PURE__ */ r("h3", { class: "mn-small" }, "Profile", -1), Ye = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, Je = /* @__PURE__ */ r("h4", null, "Upload userpic", -1), Ke = /* @__PURE__ */ r("h3", { class: "mn-small" }, "Socials", -1), Qe = /* @__PURE__ */ r("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), We = /* @__PURE__ */ r("h3", { class: "mn-small" }, "Account", -1), Xe = {
455
+ const je = { class: "pd-medium for-transition w-100" }, We = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Username", -1), Ge = /* @__PURE__ */ i("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), qe = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Profile", -1), Ye = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, Je = /* @__PURE__ */ i("h4", null, "Upload userpic", -1), Ke = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Socials", -1), Qe = /* @__PURE__ */ i("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Xe = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Account", -1), et = {
438
456
  __name: "ProfileEdit",
439
457
  async setup(a) {
440
- let e, f;
458
+ let e, _;
441
459
  M(null);
442
- const w = N(), y = O();
443
- [e, f] = T(() => V.read({ _id: c.user._id })), await e, f();
444
- const l = M(t.current);
460
+ const w = O(), y = R();
461
+ [e, _] = j(() => V.read({ _id: c.user._id })), await e, _();
462
+ const n = M(t.current);
445
463
  async function b() {
446
464
  await V.update(t.current);
447
465
  }
448
- async function i() {
449
- window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (t.current.status = "removed", await V.update(t.current), R.logout());
466
+ async function s() {
467
+ window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (t.current.status = "removed", await V.update(t.current), B.logout());
450
468
  }
451
- function n() {
469
+ function u() {
452
470
  y.replace({ name: "User Profile", params: { _id: t.current._id } });
453
471
  }
454
- return (_, s) => (m(), C("div", Te, [
455
- d(w).params._id === c.user._id ? (m(), g(B, {
472
+ return (f, r) => (m(), C("div", je, [
473
+ d(w).params._id === c.user._id ? (m(), g(L, {
456
474
  key: 0,
457
475
  user: c.user._id,
458
- target: l.value,
476
+ target: n.value,
459
477
  cta: !1
460
478
  }, null, 8, ["user", "target"])) : h("", !0),
461
- je,
462
- u(v, {
463
- field: l.value.username,
464
- "onUpdate:field": s[0] || (s[0] = (o) => l.value.username = o),
479
+ We,
480
+ o(v, {
481
+ field: n.value.username,
482
+ "onUpdate:field": r[0] || (r[0] = (l) => n.value.username = l),
465
483
  label: "@",
466
484
  placeholder: "Not specified",
467
485
  class: "mn-thin w-100 bg-grey pd-medium radius-small",
468
486
  disabled: "true",
469
- validation: _.organizationName
487
+ validation: f.organizationName
470
488
  }, null, 8, ["field", "validation"]),
471
489
  Ge,
472
490
  qe,
473
- r("div", Ye, [
474
- u(W, {
475
- photo: l.value.profile.photo,
476
- "onUpdate:photo": s[1] || (s[1] = (o) => l.value.profile.photo = o),
477
- uploadPath: "users/" + l.value._id + "/avatars",
491
+ i("div", Ye, [
492
+ o(X, {
493
+ photo: n.value.profile.photo,
494
+ "onUpdate:photo": r[1] || (r[1] = (l) => n.value.profile.photo = l),
495
+ uploadPath: "users/" + n.value._id + "/avatars",
478
496
  class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
479
497
  }, null, 8, ["photo", "uploadPath"]),
480
498
  Je
481
499
  ]),
482
- u(v, {
483
- field: l.value.profile.name,
484
- "onUpdate:field": s[2] || (s[2] = (o) => l.value.profile.name = o),
500
+ o(v, {
501
+ field: n.value.profile.name,
502
+ "onUpdate:field": r[2] || (r[2] = (l) => n.value.profile.name = l),
485
503
  label: "Name",
486
504
  placeholder: "Not specified",
487
505
  class: "mn-thin bg-grey pd-medium radius-small",
488
- validation: _.organizationName
506
+ validation: f.organizationName
489
507
  }, null, 8, ["field", "validation"]),
490
- u(v, {
491
- field: l.value.profile.description,
492
- "onUpdate:field": s[3] || (s[3] = (o) => l.value.profile.description = o),
508
+ o(v, {
509
+ field: n.value.profile.description,
510
+ "onUpdate:field": r[3] || (r[3] = (l) => n.value.profile.description = l),
493
511
  label: "Description",
494
512
  placeholder: "Not specified",
495
513
  class: "mn-semi bg-grey pd-medium radius-small",
496
514
  disabled: "true",
497
- validation: _.organizationName
515
+ validation: f.organizationName
498
516
  }, null, 8, ["field", "validation"]),
499
517
  Ke,
500
518
  Qe,
501
- u(v, {
502
- field: l.value.socials.instagram,
503
- "onUpdate:field": s[4] || (s[4] = (o) => l.value.socials.instagram = o),
519
+ o(v, {
520
+ field: n.value.socials.instagram,
521
+ "onUpdate:field": r[4] || (r[4] = (l) => n.value.socials.instagram = l),
504
522
  label: "Instagram",
505
523
  placeholder: "",
506
524
  class: "mn-thin bg-grey pd-medium radius-small"
507
525
  }, null, 8, ["field"]),
508
- u(v, {
509
- field: l.value.socials.twitter,
510
- "onUpdate:field": s[5] || (s[5] = (o) => l.value.socials.twitter = o),
526
+ o(v, {
527
+ field: n.value.socials.twitter,
528
+ "onUpdate:field": r[5] || (r[5] = (l) => n.value.socials.twitter = l),
511
529
  label: "Twitter",
512
530
  placeholder: "",
513
531
  class: "mn-thin bg-grey pd-medium radius-small"
514
532
  }, null, 8, ["field"]),
515
- u(v, {
516
- field: l.value.socials.facebook,
517
- "onUpdate:field": s[6] || (s[6] = (o) => l.value.socials.facebook = o),
533
+ o(v, {
534
+ field: n.value.socials.facebook,
535
+ "onUpdate:field": r[6] || (r[6] = (l) => n.value.socials.facebook = l),
518
536
  label: "Facebook",
519
537
  placeholder: "",
520
538
  class: "mn-thin bg-grey pd-medium radius-small"
521
539
  }, null, 8, ["field"]),
522
- u(v, {
523
- field: l.value.socials.telegram,
524
- "onUpdate:field": s[7] || (s[7] = (o) => l.value.socials.telegram = o),
540
+ o(v, {
541
+ field: n.value.socials.telegram,
542
+ "onUpdate:field": r[7] || (r[7] = (l) => n.value.socials.telegram = l),
525
543
  label: "Telegram",
526
544
  placeholder: "",
527
545
  class: "mn-semi bg-grey pd-medium radius-small"
528
546
  }, null, 8, ["field"]),
529
- We,
530
- u(v, {
531
- field: l.value.phone,
532
- "onUpdate:field": s[8] || (s[8] = (o) => l.value.phone = o),
547
+ Xe,
548
+ o(v, {
549
+ field: n.value.phone,
550
+ "onUpdate:field": r[8] || (r[8] = (l) => n.value.phone = l),
533
551
  label: "Phone",
534
552
  placeholder: "Not specified",
535
553
  class: "mn-thin bg-grey pd-medium mn-thin radius-small",
536
554
  disabled: "true",
537
- validation: _.organizationName
555
+ validation: f.organizationName
538
556
  }, null, 8, ["field", "validation"]),
539
- u(v, {
540
- field: l.value.email,
541
- "onUpdate:field": s[9] || (s[9] = (o) => l.value.email = o),
557
+ o(v, {
558
+ field: n.value.email,
559
+ "onUpdate:field": r[9] || (r[9] = (l) => n.value.email = l),
542
560
  label: "Email",
543
561
  placeholder: "Not specified",
544
562
  class: "mn-semi bg-grey pd-medium radius-small",
545
563
  disabled: !0,
546
- validation: _.organizationName
564
+ validation: f.organizationName
547
565
  }, null, 8, ["field", "validation"]),
548
- u(S, {
566
+ o(S, {
549
567
  submit: b,
550
- callback: n,
568
+ callback: u,
551
569
  class: "mn-thin"
552
570
  }, {
553
571
  default: p(() => [
@@ -555,9 +573,9 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
555
573
  ]),
556
574
  _: 1
557
575
  }),
558
- u(S, {
559
- submit: i,
560
- callback: _.a = () => {
576
+ o(S, {
577
+ submit: s,
578
+ callback: f.a = () => {
561
579
  d(y).push({ name: "Sign In" });
562
580
  },
563
581
  class: "mn-thin bg-red t-white"
@@ -569,10 +587,10 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
569
587
  }, 8, ["callback"])
570
588
  ]));
571
589
  }
572
- }, et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
590
+ }, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
573
591
  __proto__: null,
574
- default: Xe
575
- }, Symbol.toStringTag, { value: "Module" })), Ht = [
592
+ default: et
593
+ }, Symbol.toStringTag, { value: "Module" })), Et = [
576
594
  {
577
595
  path: "profile/:_id",
578
596
  name: "User Profile",
@@ -582,13 +600,13 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
582
600
  ru: "Профиль"
583
601
  }
584
602
  },
585
- component: () => Promise.resolve().then(() => Fe)
603
+ component: () => Promise.resolve().then(() => Te)
586
604
  },
587
605
  {
588
606
  path: "profile/:_id/edit",
589
607
  name: "User Edit Profile",
590
608
  beforeEnter: [
591
- X
609
+ ee
592
610
  ],
593
611
  meta: {
594
612
  title: {
@@ -596,7 +614,7 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
596
614
  ru: "Редактировать Профиль"
597
615
  }
598
616
  },
599
- component: () => Promise.resolve().then(() => et)
617
+ component: () => Promise.resolve().then(() => tt)
600
618
  },
601
619
  {
602
620
  path: "profile/:_id/blogposts",
@@ -609,7 +627,7 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
609
627
  },
610
628
  component: () => import(
611
629
  /* webpackChunkName: "profile" */
612
- "./ProfileBlogposts-aa839fcb.mjs"
630
+ "./ProfileBlogposts-d4b17535.mjs"
613
631
  )
614
632
  },
615
633
  {
@@ -623,7 +641,7 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
623
641
  },
624
642
  component: () => import(
625
643
  /* webpackChunkName: "profile" */
626
- "./ProfileEvents-6b3fb52e.mjs"
644
+ "./ProfileEvents-3eeb4320.mjs"
627
645
  )
628
646
  },
629
647
  {
@@ -637,7 +655,21 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
637
655
  },
638
656
  component: () => import(
639
657
  /* webpackChunkName: "profile" */
640
- "./ProfileOrganizations-c4fb03a1.mjs"
658
+ "./ProfileOrganizations-edf657ca.mjs"
659
+ )
660
+ },
661
+ {
662
+ path: "profile/:_id/wallet",
663
+ name: "User Wallet",
664
+ meta: {
665
+ title: {
666
+ en: "Wallet",
667
+ ru: "Кошелек"
668
+ }
669
+ },
670
+ component: () => import(
671
+ /* webpackChunkName: "profile" */
672
+ "./Wallet-2043b611.mjs"
641
673
  )
642
674
  }
643
675
  // ,{
@@ -663,8 +695,8 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
663
695
  // },
664
696
  ];
665
697
  export {
666
- De as Profile,
667
- Xe as ProfileEdit,
668
- Ht as usersRoutes,
669
- Ut as usersStore
698
+ Fe as Profile,
699
+ et as ProfileEdit,
700
+ Et as usersRoutes,
701
+ Ht as usersStore
670
702
  };