@ozdao/prometheus-framework 0.1.38 → 0.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/dist/ButtonToggleMembership-738720bd.js +1 -0
  2. package/dist/ButtonToggleMembership-e337e704.mjs +90 -0
  3. package/dist/CardBlogpost-ae3b4d23.js +1 -0
  4. package/dist/CardBlogpost-c7adb0a7.mjs +246 -0
  5. package/dist/CardBlogpost-d6f49156.mjs +246 -0
  6. package/dist/CardBlogpost-f308ff64.js +1 -0
  7. package/dist/CardOrganization-22beb83d.js +1 -0
  8. package/dist/CardOrganization-ae384e54.mjs +234 -0
  9. package/dist/Chips-3a07f374.js +1 -0
  10. package/dist/Chips-a8681edd.mjs +213 -0
  11. package/dist/Chips-edf2b573.js +1 -0
  12. package/dist/Chips-f06ec38f.mjs +213 -0
  13. package/dist/Community-04b25965.mjs +130 -0
  14. package/dist/Community-2f6fee0f.js +1 -0
  15. package/dist/Community-72dbb933.js +1 -0
  16. package/dist/Community-b4d10da6.mjs +130 -0
  17. package/dist/Dashboard-73b50724.js +1 -0
  18. package/dist/Dashboard-bc81b5f6.mjs +151 -0
  19. package/dist/Dropdown-ef2df9a9.mjs +169 -0
  20. package/dist/Dropdown-f2564c92.js +1 -0
  21. package/dist/Events-0c6e3ef4.mjs +134 -0
  22. package/dist/Events-41d71b0e.js +1 -0
  23. package/dist/Events-4742f070.js +1 -0
  24. package/dist/Events-af7170ed.mjs +134 -0
  25. package/dist/Feed-04fe1f7a.mjs +361 -0
  26. package/dist/Feed-09b0790d.js +1 -0
  27. package/dist/Feed-12b12380.js +1 -0
  28. package/dist/Feed-23758089.mjs +124 -0
  29. package/dist/Feed-36e83be3.mjs +156 -0
  30. package/dist/Feed-5653cf8b.js +1 -0
  31. package/dist/Feed-585d5821.mjs +124 -0
  32. package/dist/Feed-5a359bb7.js +1 -0
  33. package/dist/Feed-6ca0541a.js +1 -0
  34. package/dist/Feed-807d265b.mjs +156 -0
  35. package/dist/Feed-90f74d6c.mjs +361 -0
  36. package/dist/Feed-a47977d3.js +1 -0
  37. package/dist/Image-268e2a1b.js +9 -0
  38. package/dist/Image-39955d9d.mjs +480 -0
  39. package/dist/Image-5423e8ce.mjs +480 -0
  40. package/dist/Image-c2d190d8.js +9 -0
  41. package/dist/LeftoverAdd-21311275.js +1 -0
  42. package/dist/LeftoverAdd-ccf4595f.mjs +228 -0
  43. package/dist/Members-7251dd52.mjs +109 -0
  44. package/dist/Members-9b013515.js +1 -0
  45. package/dist/Members-d35ab7e8.js +1 -0
  46. package/dist/Members-d64149f3.mjs +109 -0
  47. package/dist/Menu-93d34d9f.js +1 -0
  48. package/dist/Menu-eaf6b44c.mjs +13 -0
  49. package/dist/MenuItem-4a5881bd.mjs +85 -0
  50. package/dist/MenuItem-f35cad93.js +1 -0
  51. package/dist/Organizations-0fd5bc8b.mjs +72 -0
  52. package/dist/Organizations-a964d4b6.mjs +72 -0
  53. package/dist/Organizations-d360c360.js +1 -0
  54. package/dist/Organizations-ed6d36d6.js +1 -0
  55. package/dist/Popup-0d8e1392.mjs +96 -0
  56. package/dist/Popup-eb11fa82.js +1 -0
  57. package/dist/Product-299070ad.mjs +652 -0
  58. package/dist/Product-aacb05f3.js +7 -0
  59. package/dist/Product-e43dd2f1.js +7 -0
  60. package/dist/Product-e4e583f0.mjs +652 -0
  61. package/dist/ProductEdit-70bed802.mjs +296 -0
  62. package/dist/ProductEdit-e5a2e0f6.js +1 -0
  63. package/dist/ProductsBackoffice-3c182d6a.mjs +86 -0
  64. package/dist/ProductsBackoffice-b684913d.js +1 -0
  65. package/dist/ProfileBlogposts-6bf526fb.js +1 -0
  66. package/dist/ProfileBlogposts-8f6191d6.js +1 -0
  67. package/dist/ProfileBlogposts-aa839fcb.mjs +77 -0
  68. package/dist/ProfileBlogposts-d4b17535.mjs +77 -0
  69. package/dist/ProfileEvents-3eeb4320.mjs +68 -0
  70. package/dist/ProfileEvents-6b3fb52e.mjs +68 -0
  71. package/dist/ProfileEvents-893285bb.js +1 -0
  72. package/dist/ProfileEvents-90e09978.js +1 -0
  73. package/dist/ProfileOrganizations-738f444a.js +1 -0
  74. package/dist/ProfileOrganizations-c4fb03a1.mjs +72 -0
  75. package/dist/ProfileOrganizations-e838925f.js +1 -0
  76. package/dist/ProfileOrganizations-edf657ca.mjs +72 -0
  77. package/dist/Publics-a31d7fe7.js +1 -0
  78. package/dist/Publics-a8f31413.mjs +45 -0
  79. package/dist/Wallet-2043b611.mjs +24682 -0
  80. package/dist/Wallet-8fa7386a.js +55 -0
  81. package/dist/auth-076a83d0.mjs +625 -0
  82. package/dist/auth-df5a20c6.js +7 -0
  83. package/dist/auth.client.cjs +1 -1
  84. package/dist/auth.client.js +4 -4
  85. package/dist/auth.validation-80b133df.js +1 -0
  86. package/dist/auth.validation-fd9ae66f.mjs +24 -0
  87. package/dist/backoffice.client.cjs +1 -1
  88. package/dist/backoffice.client.js +12 -12
  89. package/dist/categories-4327a81c.js +1 -0
  90. package/dist/categories-52a561a4.mjs +122 -0
  91. package/dist/community.client.cjs +1 -1
  92. package/dist/community.client.js +205 -198
  93. package/dist/events.client.cjs +2 -2
  94. package/dist/events.client.js +17 -20
  95. package/dist/landing.client.cjs +1 -1
  96. package/dist/landing.client.js +64 -40
  97. package/dist/legal.client.cjs +1 -1
  98. package/dist/legal.client.js +5 -6
  99. package/dist/main.css +1 -1
  100. package/dist/modules/gallery/components/pages/Gallery.vue.d.ts +2 -0
  101. package/dist/modules/gallery/components/sections/GalleryWithCategories.vue.d.ts +2 -0
  102. package/dist/modules/globals/components/sections/Title.vue.d.ts +6 -0
  103. package/dist/organizations-966e1cd2.mjs +122 -0
  104. package/dist/organizations-d12c42b6.js +1 -0
  105. package/dist/organizations.client-63b476ff.mjs +2996 -0
  106. package/dist/organizations.client-696eacbb.js +3 -0
  107. package/dist/organizations.client-8f263e28.js +3 -0
  108. package/dist/organizations.client-9ffc023f.mjs +2996 -0
  109. package/dist/organizations.client.cjs +1 -1
  110. package/dist/organizations.client.js +49 -54
  111. package/dist/products-7e4253eb.js +1 -0
  112. package/dist/products-aabe5c02.mjs +108 -0
  113. package/dist/prometheus-framework.cjs.js +1 -1
  114. package/dist/prometheus-framework.es.js +2 -2
  115. package/dist/states.validation-4594b33c.mjs +13 -0
  116. package/dist/states.validation-69003e66.js +1 -0
  117. package/dist/style.css +1 -1
  118. package/dist/users.client.cjs +1 -1
  119. package/dist/users.client.js +286 -202
  120. package/package.json +1 -5
  121. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  122. package/src/components/LocationSelection/LocationSelection.vue +1 -1
  123. package/src/components/Navigation/Navigation.vue +12 -1
  124. package/src/modules/auth/store/auth.js +7 -4
  125. package/src/modules/files/middlewares/server/md.js +1 -0
  126. package/src/modules/gallery/components/pages/Gallery.vue +21 -0
  127. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +408 -0
  128. package/src/modules/gallery/gallery.client.js +11 -14
  129. package/src/modules/gallery/router/gallery.router.js +10 -0
  130. package/src/modules/globals/components/sections/Title.vue +22 -0
  131. package/src/modules/marketplace/router/marketplace.js +4 -3
  132. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  133. package/src/modules/products/components/pages/ProductRecommmendation.vue +5 -3
  134. package/src/modules/products/components/sections/SectionProduct.vue +17 -5
  135. package/src/modules/products/controllers/products.controller.js +83 -0
  136. package/src/modules/products/routes/products.routes.js +5 -5
  137. package/src/modules/spots/components/layouts/Spots.vue +16 -11
  138. package/src/modules/spots/components/pages/Map.vue +9 -7
  139. package/src/modules/users/components/pages/Profile.vue +15 -5
  140. package/src/modules/users/router/users.js +10 -0
  141. package/src/modules/wallet/components/pages/Wallet.vue +104 -23
@@ -1,73 +1,125 @@
1
- import { ref as S, resolveComponent as B, openBlock as c, createElementBlock as y, createElementVNode as u, toDisplayString as U, createBlock as g, withCtx as p, createTextVNode as O, createCommentVNode as h, reactive as L, onMounted as D, unref as d, createVNode as n, Fragment as F, renderList as T, normalizeClass as j, withAsyncContext as V } 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 G, _ as q } from "./Dropdown-cab3605b.mjs";
5
- import { _ as N } from "./Menu-dd7645c1.mjs";
6
- import { _ as P } from "./MenuItem-6296d02f.mjs";
7
- import { _ as C } from "./ButtonToggleMembership-3bb9139e.mjs";
8
- import { _ as Y } from "./Socials-31c06635.mjs";
9
- import { a as H, b as J, I as K } from "./IconCommunity-468dc457.mjs";
10
- import { I as Q } from "./IconEdit-9edfd74d.mjs";
11
- import { P as W } from "./PlaceholderUserpic-14c6ea7e.mjs";
12
- import { useRoute as I, useRouter as z } from "vue-router";
13
- import { s as m, a as M } from "./auth-ec618cb3.mjs";
14
- import { a as X } from "./index-a661083c.mjs";
15
- import { m as Z } from "./memberships-12210953.mjs";
4
+ import { D as W, _ as G, P as q } from "./Dropdown-ef2df9a9.mjs";
5
+ import { _ as x } from "./Menu-eaf6b44c.mjs";
6
+ import { _ as k } from "./MenuItem-4a5881bd.mjs";
7
+ import { _ as Z } from "./ButtonToggleMembership-e337e704.mjs";
8
+ import { _ as Y } from "./Socials-8193477c.mjs";
9
+ import { _ as E } from "./_plugin-vue_export-helper-dad06003.mjs";
10
+ import { I as J } from "./IconEdit-9edfd74d.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
+ import { a as K } from "./index-a661083c.mjs";
14
+ import { m as Q } from "./memberships-12210953.mjs";
16
15
  import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
17
16
  import { F as v } from "./Field-e5ad88d3.mjs";
18
- import { _ as R } from "./Button-9e1a9284.mjs";
19
- import { _ as ee } from "./UploadImage-3c627d89.mjs";
17
+ import { _ as S } from "./Button-9e1a9284.mjs";
18
+ import { _ as X } from "./UploadImage-3c627d89.mjs";
20
19
  import "./inputs.validation-db65277a.mjs";
21
- import "./states.validation-50e3a5a0.mjs";
22
- import { a as te } from "./auth.validation-ba3606bf.mjs";
23
- import "./Popup-0915427c.mjs";
20
+ import "./states.validation-4594b33c.mjs";
21
+ import { a as ee } from "./auth.validation-fd9ae66f.mjs";
22
+ import "./Popup-0d8e1392.mjs";
24
23
  import "vue-i18n";
25
- import "./IconCross-84cb1292.mjs";
26
- import "./_plugin-vue_export-helper-dad06003.mjs";
27
24
  import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
28
25
  import "./Select-11ddabf5.mjs";
29
26
  import "./reports-79cd9459.mjs";
30
27
  import "./globals-96ba60e4.mjs";
31
28
  import "./click-outside-6101836c.mjs";
32
- import "./IconChevronRight-fae9d012.mjs";
33
- import "./dribbble-ae37c2ac.mjs";
34
- const re = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, A = {
29
+ const te = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, L = {
35
30
  __name: "ProfileCompletion",
36
31
  props: {
37
32
  user: Object,
38
33
  target: Object,
39
34
  cta: Boolean
40
35
  },
41
- setup(o) {
42
- const { user: e, cta: _, target: w } = o, k = S(0), i = (b) => {
43
- let s = 0, l = 0;
36
+ setup(a) {
37
+ const { user: e, cta: _, target: w } = a, y = M(0), n = (b) => {
38
+ let s = 0, u = 0;
44
39
  function f(r) {
45
- for (let a in r)
46
- r.hasOwnProperty(a) && (r[a] && typeof r[a] == "object" && !Array.isArray(r[a]) ? f(r[a]) : (s++, r[a] != null && r[a] !== "" && l++));
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++));
47
42
  }
48
- return f(b), s === 0 ? 0 : Math.round(l / s * 100);
43
+ return f(b), s === 0 ? 0 : Math.round(u / s * 100);
49
44
  };
50
- return w && (k.value = i(w)), (b, s) => {
51
- const l = B("router-link");
52
- return c(), y("section", re, [
53
- u("h3", null, " Profile completed at " + U(k.value) + "% ", 1),
54
- o.cta ? (c(), g(l, {
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, {
55
50
  key: 0,
56
51
  to: {
57
52
  name: "User Edit Profile",
58
- params: { _id: o.user }
53
+ params: { _id: a.user }
59
54
  },
60
55
  class: "mn-t-regular t-black bg-white w-100 button"
61
56
  }, {
62
57
  default: p(() => [
63
- O(" Fill Profile ")
58
+ H(" Fill Profile ")
64
59
  ]),
65
60
  _: 1
66
61
  }, 8, ["to"])) : h("", !0)
67
62
  ]);
68
63
  };
69
64
  }
70
- }, E = X.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = L({
65
+ }, se = {}, re = {
66
+ width: "80",
67
+ height: "80",
68
+ viewBox: "0 0 80 80",
69
+ fill: "none",
70
+ xmlns: "http://www.w3.org/2000/svg"
71
+ }, ie = /* @__PURE__ */ i("path", {
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
+ fill: "white"
74
+ }, null, -1), ae = [
75
+ ie
76
+ ];
77
+ function oe(a, e) {
78
+ return m(), C("svg", re, ae);
79
+ }
80
+ const le = /* @__PURE__ */ E(se, [["render", oe]]), ne = {}, ue = {
81
+ width: "80",
82
+ height: "80",
83
+ viewBox: "0 0 80 80",
84
+ fill: "none",
85
+ xmlns: "http://www.w3.org/2000/svg"
86
+ }, de = /* @__PURE__ */ i("path", {
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
+ fill: "white"
89
+ }, null, -1), me = [
90
+ de
91
+ ];
92
+ function ce(a, e) {
93
+ return m(), C("svg", ue, me);
94
+ }
95
+ const N = /* @__PURE__ */ E(ne, [["render", ce]]), pe = {}, _e = {
96
+ width: "56",
97
+ height: "56",
98
+ viewBox: "0 0 56 56",
99
+ fill: "none",
100
+ xmlns: "http://www.w3.org/2000/svg"
101
+ }, fe = /* @__PURE__ */ i("path", {
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
+ fill: "white"
104
+ }, null, -1), Ce = /* @__PURE__ */ i("path", {
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
+ fill: "white"
107
+ }, null, -1), he = /* @__PURE__ */ i("path", {
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
+ fill: "white"
110
+ }, null, -1), ge = /* @__PURE__ */ i("path", {
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
+ fill: "white"
113
+ }, null, -1), be = [
114
+ fe,
115
+ Ce,
116
+ he,
117
+ ge
118
+ ];
119
+ function ve(a, e) {
120
+ return m(), C("svg", _e, be);
121
+ }
122
+ const we = /* @__PURE__ */ E(pe, [["render", ve]]), U = K.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = I({
71
123
  all: [],
72
124
  current: {
73
125
  _id: "",
@@ -89,44 +141,44 @@ const re = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, A
89
141
  },
90
142
  roles: []
91
143
  }
92
- }), x = {
93
- async create(o) {
144
+ }), V = {
145
+ async create(a) {
94
146
  try {
95
- const e = await E.post("/api/users", o);
96
- return $.set(e.data, "current"), Promise.resolve(e.data);
147
+ const e = await U.post("/api/users", a);
148
+ return P.set(e.data, "current"), Promise.resolve(e.data);
97
149
  } catch (e) {
98
150
  return console.error(e), Promise.reject(e);
99
151
  }
100
152
  },
101
- async read(o = {}) {
102
- o.params = {}, o._id && (o.params._id = o._id), o.user && (o.params.user = o.user);
153
+ async read(a = {}) {
154
+ a.params = {}, a._id && (a.params._id = a._id), a.user && (a.params.user = a.user);
103
155
  try {
104
- const e = await E.get("/api/users", { params: o.params });
105
- return o._id ? $.set(e.data[0], "current") : $.set(e.data, "all"), Promise.resolve(e.data);
156
+ const e = await U.get("/api/users", { params: a.params });
157
+ return a._id ? P.set(e.data[0], "current") : P.set(e.data, "all"), Promise.resolve(e.data);
106
158
  } catch (e) {
107
159
  return console.error(e), Promise.reject(e);
108
160
  }
109
161
  },
110
- async update(o) {
162
+ async update(a) {
111
163
  try {
112
- const e = await E.put(`/api/users/${o._id}`, o);
113
- return $.set(e.data, "current"), Promise.resolve(e.data);
164
+ const e = await U.put(`/api/users/${a._id}`, a);
165
+ return P.set(e.data, "current"), Promise.resolve(e.data);
114
166
  } catch (e) {
115
167
  return console.error(e), Promise.reject(e);
116
168
  }
117
169
  },
118
- async delete(o) {
170
+ async delete(a) {
119
171
  try {
120
- await E.delete(`/api/users/${o._id}`);
121
- const e = t.all.findIndex((_) => _._id === o._id);
172
+ await U.delete(`/api/users/${a._id}`);
173
+ const e = t.all.findIndex((_) => _._id === a._id);
122
174
  e !== -1 && t.all.splice(e, 1);
123
175
  } catch (e) {
124
176
  console.error(e);
125
177
  }
126
178
  }
127
- }, $ = {
128
- set(o, e) {
129
- t[e] = o;
179
+ }, P = {
180
+ set(a, e) {
181
+ t[e] = a;
130
182
  },
131
183
  clean() {
132
184
  t.current = {
@@ -140,122 +192,122 @@ const re = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, A
140
192
  orders: []
141
193
  };
142
194
  }
143
- }, _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
195
+ }, Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
144
196
  __proto__: null,
145
- actions: x,
146
- mutations: $,
197
+ actions: V,
198
+ mutations: P,
147
199
  state: t
148
200
  }, Symbol.toStringTag, { value: "Module" }));
149
- const se = {
201
+ const ye = {
150
202
  key: 0,
151
203
  class: "for-transition w-100"
152
- }, ae = {
204
+ }, ke = {
153
205
  key: 0,
154
206
  class: "flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"
155
- }, ie = {
207
+ }, $e = {
156
208
  key: 1,
157
209
  _id: "dash",
158
210
  class: "pd-b-extra pd-thin w-100"
159
- }, oe = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, le = { class: "bg-black pd-thin radius-small" }, ne = /* @__PURE__ */ u("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), ue = ["src"], de = { class: "mn-thin" }, me = { class: "mn-thin t-main t-semi" }, ce = { class: "mn-small p-medium" }, pe = { class: "mn-medium flex-center flex-nowrap flex" }, fe = { class: "t-semi mn-small" }, _e = {
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 = {
160
212
  key: 5,
161
213
  class: "mn-t-small mn-thin"
162
- }, he = /* @__PURE__ */ u("span", null, " Backoffice ", -1), ge = /* @__PURE__ */ u("span", null, "Events", -1), be = /* @__PURE__ */ u("span", null, "Groups", -1), ve = /* @__PURE__ */ u("span", null, "Posts", -1), ye = /* @__PURE__ */ u("span", null, " Settings ", -1), we = /* @__PURE__ */ u("span", null, " About ", -1), ke = /* @__PURE__ */ u("span", { class: "t-red" }, " Logout ", -1), Pe = {
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 = {
163
215
  __name: "Profile",
164
- setup(o) {
165
- const e = I(), _ = z(), w = S(!1);
166
- D(async () => {
167
- await x.read({ _id: e.params._id, user: m.user._id }), w.value = !0;
216
+ setup(a) {
217
+ const e = O(), _ = R(), w = M(!1);
218
+ A(async () => {
219
+ await V.read({ _id: e.params._id, user: c.user._id }), w.value = !0;
168
220
  });
169
- const k = ({ membership: b, status: s, target: l }, f, r) => {
170
- Z.handleMembershipUpdate(t.current, b, s, l, f, r);
221
+ const y = ({ membership: b, status: s, target: u }, f, r) => {
222
+ Q.handleMembershipUpdate(t.current, b, s, u, f, r);
171
223
  };
172
- function i() {
173
- M.logout(), _.push({ name: "Sign In" });
224
+ function n() {
225
+ B.logout(), _.push({ name: "Sign In" });
174
226
  }
175
- return (b, s) => w.value ? (c(), y("div", se, [
176
- t.current.status === "removed" ? (c(), y("div", ae, " Sorry, user has been removed. ")) : (c(), y("div", ie, [
177
- d(e).params._id === m.user._id && w.value ? (c(), g(A, {
227
+ return (b, s) => w.value ? (m(), C("div", ye, [
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(L, {
178
230
  key: 0,
179
- user: m.user._id,
231
+ user: c.user._id,
180
232
  target: t.current,
181
233
  cta: !0
182
234
  }, null, 8, ["user", "target"])) : h("", !0),
183
- u("section", oe, [
184
- d(e).params._id && d(e).params._id !== m.user._id ? (c(), g(G, {
235
+ i("section", Pe, [
236
+ d(e).params._id && d(e).params._id !== c.user._id ? (m(), g(W, {
185
237
  key: 0,
186
238
  label: "...",
187
239
  align: "right",
188
240
  class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
189
241
  }, {
190
242
  default: p(() => [
191
- u("section", le, [
192
- n(q, {
193
- user: m.user._id,
243
+ i("section", Ve, [
244
+ o(G, {
245
+ user: c.user._id,
194
246
  type: "user",
195
247
  target: t.current._id,
196
248
  text: "Report",
197
249
  class: "w-100"
198
250
  }, {
199
251
  default: p(() => [
200
- ne
252
+ xe
201
253
  ]),
202
254
  _: 1
203
255
  }, 8, ["user", "target"]),
204
- m.user._id ? (c(), g(C, {
256
+ c.user._id ? (m(), g(Z, {
205
257
  key: 0,
206
- user: m.user._id,
258
+ user: c.user._id,
207
259
  type: "user",
208
260
  role: "blocked",
209
261
  target: t.current._id,
210
262
  status: t.current.isBlocked,
211
263
  text: { create: "Block", remove: "Unblock" },
212
- onUpdateMembership: s[0] || (s[0] = (l) => k(l, "isBlocked")),
264
+ onUpdateMembership: s[0] || (s[0] = (u) => y(u, "isBlocked")),
213
265
  class: "t-white mn-t-thin bg-red"
214
266
  }, null, 8, ["user", "target", "status"])) : h("", !0)
215
267
  ])
216
268
  ]),
217
269
  _: 1
218
270
  }, 8, ["label"])) : h("", !0),
219
- d(e).params._id === m.user._id ? (c(), g(Q, {
271
+ d(e).params._id === c.user._id ? (m(), g(J, {
220
272
  key: 1,
221
- onClick: s[1] || (s[1] = (l) => b.$router.push({
273
+ onClick: s[1] || (s[1] = (u) => b.$router.push({
222
274
  name: "User Edit Profile",
223
275
  params: {
224
- _id: m.user._id
276
+ _id: c.user._id
225
277
  }
226
278
  })),
227
279
  class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
228
280
  })) : h("", !0),
229
- t.current.profile.photo.length > 0 ? (c(), y("img", {
281
+ t.current.profile.photo.length > 0 ? (m(), C("img", {
230
282
  key: 2,
231
283
  src: (b.FILE_SERVER_URL || "") + t.current.profile.photo,
232
284
  class: "radius-extra bg-white mn-small object-fit-cover i-extra"
233
- }, null, 8, ue)) : (c(), g(W, {
285
+ }, null, 8, Ue)) : (m(), g(q, {
234
286
  key: 3,
235
287
  class: "radius-medium mn-small i-extra"
236
288
  })),
237
- u("h3", de, U(t.current.profile.name ? t.current.profile.name : "Not specified"), 1),
238
- u("p", me, " @" + U(t.current.username ? t.current.username : "Not specified"), 1),
239
- u("p", ce, U(t.current.profile.description ? t.current.profile.description : "Not specified"), 1),
240
- u("div", pe, [
241
- (c(!0), y(F, null, T(t.current.roles, (l, f) => (c(), y("div", {
242
- class: j(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": f !== t.current.roles.length - 1 }])
243
- }, U(l.icon) + " " + U(l.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))
244
296
  ]),
245
- u("p", fe, " 👨‍👨‍👧‍👧 " + U(t.current.numberOfSubscribers) + " followers ", 1),
246
- m.user._id && d(e).params._id && d(e).params._id !== m.user._id ? (c(), g(C, {
297
+ i("p", Se, " 👨‍👨‍👧‍👧 " + $(t.current.numberOfSubscribers) + " followers ", 1),
298
+ c.user._id && d(e).params._id && d(e).params._id !== c.user._id ? (m(), g(Z, {
247
299
  key: 4,
248
- user: m.user._id,
300
+ user: c.user._id,
249
301
  type: "user",
250
302
  role: "subscriber",
251
303
  target: t.current._id,
252
304
  status: t.current.isSubscriber,
253
305
  text: { create: "Follow", remove: "Unfollow" },
254
- onUpdateMembership: s[2] || (s[2] = (l) => k(l, "isSubscriber", "numberOfSubscribers")),
306
+ onUpdateMembership: s[2] || (s[2] = (u) => y(u, "isSubscriber", "numberOfSubscribers")),
255
307
  class: "w-min mn-medium mn-r-auto mn-l-auto"
256
308
  }, null, 8, ["user", "target", "status"])) : h("", !0),
257
- Object.values(t.current.socials).some((l) => l) ? (c(), y("h4", _e, " Find Me in Socials ")) : h("", !0),
258
- n(Y, {
309
+ Object.values(t.current.socials).some((u) => u) ? (m(), C("h4", Ne, " Find Me in Socials ")) : h("", !0),
310
+ o(Y, {
259
311
  telegram: t.current.socials.telegram,
260
312
  facebook: t.current.socials.facebook,
261
313
  instagram: t.current.socials.instagram,
@@ -263,13 +315,13 @@ const se = {
263
315
  class: "mn-r-auto mn-l-auto"
264
316
  }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
265
317
  ]),
266
- m.access.roles && m.user._id === d(e).params._id && (m.access.roles.includes("ROLE_MODERATOR") || m.access.roles.includes("ROLE_ADMIN")) ? (c(), g(N, {
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, {
267
319
  key: 1,
268
320
  class: "mn-regular bg-black t-white"
269
321
  }, {
270
322
  default: p(() => [
271
- n(P, {
272
- onClick: s[3] || (s[3] = (l) => d(_).push({
323
+ o(k, {
324
+ onClick: s[3] || (s[3] = (u) => d(_).push({
273
325
  name: "Backoffice",
274
326
  params: {
275
327
  _id: d(e).params._id
@@ -279,64 +331,82 @@ const se = {
279
331
  theme: "white"
280
332
  }, {
281
333
  default: p(() => [
282
- he
334
+ Oe
283
335
  ]),
284
336
  _: 1
285
337
  })
286
338
  ]),
287
339
  _: 1
288
340
  })) : h("", !0),
289
- n(N, { class: "mn-regular bg-grey" }, {
341
+ o(x, { class: "mn-regular bg-grey" }, {
290
342
  default: p(() => [
291
- n(P, {
292
- onClick: s[4] || (s[4] = (l) => d(_).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 } })),
293
345
  class: "cursor-pointer"
294
346
  }, {
295
347
  default: p(() => [
296
- n(H, {
348
+ o(le, {
297
349
  class: "i-semi",
298
350
  icon: !0
299
351
  }),
300
- ge
352
+ Re
301
353
  ]),
302
354
  _: 1
303
355
  }),
304
- n(P, {
305
- onClick: s[5] || (s[5] = (l) => d(_).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 } })),
306
358
  class: "cursor-pointer"
307
359
  }, {
308
360
  default: p(() => [
309
- n(J, {
361
+ o(N, {
310
362
  class: "i-semi",
311
363
  icon: !0
312
364
  }),
313
- be
365
+ Be
314
366
  ]),
315
367
  _: 1
316
368
  }),
317
- n(P, {
318
- onClick: s[6] || (s[6] = (l) => d(_).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 } })),
319
371
  class: "cursor-pointer"
320
372
  }, {
321
373
  default: p(() => [
322
- n(K, {
374
+ o(we, {
323
375
  class: "i-semi",
324
376
  icon: !0
325
377
  }),
326
- ve
378
+ Le
327
379
  ]),
328
380
  _: 1
329
381
  })
330
382
  ]),
331
383
  _: 1
332
384
  }),
333
- m.user._id === d(e).params._id ? (c(), g(N, {
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, {
334
404
  key: 2,
335
405
  class: "bg-grey"
336
406
  }, {
337
407
  default: p(() => [
338
- n(P, {
339
- onClick: s[7] || (s[7] = (l) => d(_).push({
408
+ o(k, {
409
+ onClick: s[8] || (s[8] = (u) => d(_).push({
340
410
  name: "User Edit Profile",
341
411
  params: {
342
412
  _id: d(e).params._id
@@ -345,12 +415,12 @@ const se = {
345
415
  class: "cursor-pointer"
346
416
  }, {
347
417
  default: p(() => [
348
- ye
418
+ Ie
349
419
  ]),
350
420
  _: 1
351
421
  }),
352
- n(P, {
353
- onClick: s[8] || (s[8] = (l) => d(_).push({
422
+ o(k, {
423
+ onClick: s[9] || (s[9] = (u) => d(_).push({
354
424
  name: "Legal",
355
425
  params: {
356
426
  _id: d(e).params._id
@@ -359,16 +429,16 @@ const se = {
359
429
  class: "cursor-pointer"
360
430
  }, {
361
431
  default: p(() => [
362
- we
432
+ Ae
363
433
  ]),
364
434
  _: 1
365
435
  }),
366
- n(P, {
436
+ o(k, {
367
437
  class: "cursor-pointer",
368
- onClick: s[9] || (s[9] = (l) => i())
438
+ onClick: s[10] || (s[10] = (u) => n())
369
439
  }, {
370
440
  default: p(() => [
371
- ke
441
+ De
372
442
  ]),
373
443
  _: 1
374
444
  })
@@ -378,149 +448,149 @@ const se = {
378
448
  ]))
379
449
  ])) : h("", !0);
380
450
  }
381
- }, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
451
+ }, Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
382
452
  __proto__: null,
383
- default: Pe
453
+ default: Fe
384
454
  }, Symbol.toStringTag, { value: "Module" }));
385
- const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("h3", { class: "mn-small" }, "Username", -1), Ee = /* @__PURE__ */ u("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), Se = /* @__PURE__ */ u("h3", { class: "mn-small" }, "Profile", -1), Ne = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, Oe = /* @__PURE__ */ u("h4", null, "Upload userpic", -1), Ce = /* @__PURE__ */ u("h3", { class: "mn-small" }, "Socials", -1), Re = /* @__PURE__ */ u("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Ie = /* @__PURE__ */ u("h3", { class: "mn-small" }, "Account", -1), ze = {
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 = {
386
456
  __name: "ProfileEdit",
387
- async setup(o) {
457
+ async setup(a) {
388
458
  let e, _;
389
- S(null);
390
- const w = I(), k = z();
391
- [e, _] = V(() => x.read({ _id: m.user._id })), await e, _();
392
- const i = S(t.current);
459
+ M(null);
460
+ const w = O(), y = R();
461
+ [e, _] = j(() => V.read({ _id: c.user._id })), await e, _();
462
+ const n = M(t.current);
393
463
  async function b() {
394
- await x.update(t.current);
464
+ await V.update(t.current);
395
465
  }
396
466
  async function s() {
397
- 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 x.update(t.current), M.logout());
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());
398
468
  }
399
- function l() {
400
- k.replace({ name: "User Profile", params: { _id: t.current._id } });
469
+ function u() {
470
+ y.replace({ name: "User Profile", params: { _id: t.current._id } });
401
471
  }
402
- return (f, r) => (c(), y("div", $e, [
403
- d(w).params._id === m.user._id ? (c(), g(A, {
472
+ return (f, r) => (m(), C("div", je, [
473
+ d(w).params._id === c.user._id ? (m(), g(L, {
404
474
  key: 0,
405
- user: m.user._id,
406
- target: i.value,
475
+ user: c.user._id,
476
+ target: n.value,
407
477
  cta: !1
408
478
  }, null, 8, ["user", "target"])) : h("", !0),
409
- xe,
410
- n(v, {
411
- field: i.value.username,
412
- "onUpdate:field": r[0] || (r[0] = (a) => i.value.username = a),
479
+ We,
480
+ o(v, {
481
+ field: n.value.username,
482
+ "onUpdate:field": r[0] || (r[0] = (l) => n.value.username = l),
413
483
  label: "@",
414
484
  placeholder: "Not specified",
415
485
  class: "mn-thin w-100 bg-grey pd-medium radius-small",
416
486
  disabled: "true",
417
487
  validation: f.organizationName
418
488
  }, null, 8, ["field", "validation"]),
419
- Ee,
420
- Se,
421
- u("div", Ne, [
422
- n(ee, {
423
- photo: i.value.profile.photo,
424
- "onUpdate:photo": r[1] || (r[1] = (a) => i.value.profile.photo = a),
425
- uploadPath: "users/" + i.value._id + "/avatars",
489
+ Ge,
490
+ qe,
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",
426
496
  class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
427
497
  }, null, 8, ["photo", "uploadPath"]),
428
- Oe
498
+ Je
429
499
  ]),
430
- n(v, {
431
- field: i.value.profile.name,
432
- "onUpdate:field": r[2] || (r[2] = (a) => i.value.profile.name = a),
500
+ o(v, {
501
+ field: n.value.profile.name,
502
+ "onUpdate:field": r[2] || (r[2] = (l) => n.value.profile.name = l),
433
503
  label: "Name",
434
504
  placeholder: "Not specified",
435
505
  class: "mn-thin bg-grey pd-medium radius-small",
436
506
  validation: f.organizationName
437
507
  }, null, 8, ["field", "validation"]),
438
- n(v, {
439
- field: i.value.profile.description,
440
- "onUpdate:field": r[3] || (r[3] = (a) => i.value.profile.description = a),
508
+ o(v, {
509
+ field: n.value.profile.description,
510
+ "onUpdate:field": r[3] || (r[3] = (l) => n.value.profile.description = l),
441
511
  label: "Description",
442
512
  placeholder: "Not specified",
443
513
  class: "mn-semi bg-grey pd-medium radius-small",
444
514
  disabled: "true",
445
515
  validation: f.organizationName
446
516
  }, null, 8, ["field", "validation"]),
447
- Ce,
448
- Re,
449
- n(v, {
450
- field: i.value.socials.instagram,
451
- "onUpdate:field": r[4] || (r[4] = (a) => i.value.socials.instagram = a),
517
+ Ke,
518
+ Qe,
519
+ o(v, {
520
+ field: n.value.socials.instagram,
521
+ "onUpdate:field": r[4] || (r[4] = (l) => n.value.socials.instagram = l),
452
522
  label: "Instagram",
453
523
  placeholder: "",
454
524
  class: "mn-thin bg-grey pd-medium radius-small"
455
525
  }, null, 8, ["field"]),
456
- n(v, {
457
- field: i.value.socials.twitter,
458
- "onUpdate:field": r[5] || (r[5] = (a) => i.value.socials.twitter = a),
526
+ o(v, {
527
+ field: n.value.socials.twitter,
528
+ "onUpdate:field": r[5] || (r[5] = (l) => n.value.socials.twitter = l),
459
529
  label: "Twitter",
460
530
  placeholder: "",
461
531
  class: "mn-thin bg-grey pd-medium radius-small"
462
532
  }, null, 8, ["field"]),
463
- n(v, {
464
- field: i.value.socials.facebook,
465
- "onUpdate:field": r[6] || (r[6] = (a) => i.value.socials.facebook = a),
533
+ o(v, {
534
+ field: n.value.socials.facebook,
535
+ "onUpdate:field": r[6] || (r[6] = (l) => n.value.socials.facebook = l),
466
536
  label: "Facebook",
467
537
  placeholder: "",
468
538
  class: "mn-thin bg-grey pd-medium radius-small"
469
539
  }, null, 8, ["field"]),
470
- n(v, {
471
- field: i.value.socials.telegram,
472
- "onUpdate:field": r[7] || (r[7] = (a) => i.value.socials.telegram = a),
540
+ o(v, {
541
+ field: n.value.socials.telegram,
542
+ "onUpdate:field": r[7] || (r[7] = (l) => n.value.socials.telegram = l),
473
543
  label: "Telegram",
474
544
  placeholder: "",
475
545
  class: "mn-semi bg-grey pd-medium radius-small"
476
546
  }, null, 8, ["field"]),
477
- Ie,
478
- n(v, {
479
- field: i.value.phone,
480
- "onUpdate:field": r[8] || (r[8] = (a) => i.value.phone = a),
547
+ Xe,
548
+ o(v, {
549
+ field: n.value.phone,
550
+ "onUpdate:field": r[8] || (r[8] = (l) => n.value.phone = l),
481
551
  label: "Phone",
482
552
  placeholder: "Not specified",
483
553
  class: "mn-thin bg-grey pd-medium mn-thin radius-small",
484
554
  disabled: "true",
485
555
  validation: f.organizationName
486
556
  }, null, 8, ["field", "validation"]),
487
- n(v, {
488
- field: i.value.email,
489
- "onUpdate:field": r[9] || (r[9] = (a) => i.value.email = a),
557
+ o(v, {
558
+ field: n.value.email,
559
+ "onUpdate:field": r[9] || (r[9] = (l) => n.value.email = l),
490
560
  label: "Email",
491
561
  placeholder: "Not specified",
492
562
  class: "mn-semi bg-grey pd-medium radius-small",
493
563
  disabled: !0,
494
564
  validation: f.organizationName
495
565
  }, null, 8, ["field", "validation"]),
496
- n(R, {
566
+ o(S, {
497
567
  submit: b,
498
- callback: l,
568
+ callback: u,
499
569
  class: "mn-thin"
500
570
  }, {
501
571
  default: p(() => [
502
- O("Save")
572
+ H("Save")
503
573
  ]),
504
574
  _: 1
505
575
  }),
506
- n(R, {
576
+ o(S, {
507
577
  submit: s,
508
578
  callback: f.a = () => {
509
- d(k).push({ name: "Sign In" });
579
+ d(y).push({ name: "Sign In" });
510
580
  },
511
581
  class: "mn-thin bg-red t-white"
512
582
  }, {
513
583
  default: p(() => [
514
- O("Delete Account")
584
+ H("Delete Account")
515
585
  ]),
516
586
  _: 1
517
587
  }, 8, ["callback"])
518
588
  ]));
519
589
  }
520
- }, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
590
+ }, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
521
591
  __proto__: null,
522
- default: ze
523
- }, Symbol.toStringTag, { value: "Module" })), ht = [
592
+ default: et
593
+ }, Symbol.toStringTag, { value: "Module" })), Et = [
524
594
  {
525
595
  path: "profile/:_id",
526
596
  name: "User Profile",
@@ -530,13 +600,13 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
530
600
  ru: "Профиль"
531
601
  }
532
602
  },
533
- component: () => Promise.resolve().then(() => Ue)
603
+ component: () => Promise.resolve().then(() => Te)
534
604
  },
535
605
  {
536
606
  path: "profile/:_id/edit",
537
607
  name: "User Edit Profile",
538
608
  beforeEnter: [
539
- te
609
+ ee
540
610
  ],
541
611
  meta: {
542
612
  title: {
@@ -544,7 +614,7 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
544
614
  ru: "Редактировать Профиль"
545
615
  }
546
616
  },
547
- component: () => Promise.resolve().then(() => Me)
617
+ component: () => Promise.resolve().then(() => tt)
548
618
  },
549
619
  {
550
620
  path: "profile/:_id/blogposts",
@@ -557,7 +627,7 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
557
627
  },
558
628
  component: () => import(
559
629
  /* webpackChunkName: "profile" */
560
- "./ProfileBlogposts-b59992cf.mjs"
630
+ "./ProfileBlogposts-d4b17535.mjs"
561
631
  )
562
632
  },
563
633
  {
@@ -571,7 +641,7 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
571
641
  },
572
642
  component: () => import(
573
643
  /* webpackChunkName: "profile" */
574
- "./ProfileEvents-bbdd62e7.mjs"
644
+ "./ProfileEvents-3eeb4320.mjs"
575
645
  )
576
646
  },
577
647
  {
@@ -585,7 +655,21 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
585
655
  },
586
656
  component: () => import(
587
657
  /* webpackChunkName: "profile" */
588
- "./ProfileOrganizations-4734c02e.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"
589
673
  )
590
674
  }
591
675
  // ,{
@@ -611,8 +695,8 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
611
695
  // },
612
696
  ];
613
697
  export {
614
- Pe as Profile,
615
- ze as ProfileEdit,
616
- ht as usersRoutes,
617
- _t as usersStore
698
+ Fe as Profile,
699
+ et as ProfileEdit,
700
+ Et as usersRoutes,
701
+ Ht as usersStore
618
702
  };