@ozdao/prometheus-framework 0.1.67 → 0.1.69

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. package/dist/BackofficeGallery-59a591ab.js +1 -0
  2. package/dist/BackofficeGallery-be6f69a9.mjs +307 -0
  3. package/dist/BackofficeReports-06166952.js +1 -0
  4. package/dist/BackofficeReports-50fd799c.mjs +44 -0
  5. package/dist/BlockTags-00325fa0.mjs +853 -0
  6. package/dist/BlockTags-58f95c8a.js +1 -0
  7. package/dist/ButtonToggleMembership-84d0e018.mjs +90 -0
  8. package/dist/ButtonToggleMembership-b905812f.js +1 -0
  9. package/dist/CardBlogpost-1b81b54e.mjs +246 -0
  10. package/dist/CardBlogpost-7107e04a.js +1 -0
  11. package/dist/CardOrganization-49ab5190.mjs +234 -0
  12. package/dist/CardOrganization-e6ac27f1.js +1 -0
  13. package/dist/CardProduct-4c0cb9a1.js +1 -0
  14. package/dist/CardProduct-ea0e1f84.mjs +192 -0
  15. package/dist/Chips-817cf959.js +1 -0
  16. package/dist/Chips-8c836ba6.mjs +213 -0
  17. package/dist/Community-8c4e011b.js +1 -0
  18. package/dist/Community-bd6f0cbb.mjs +131 -0
  19. package/dist/Dashboard-73b50724.js +1 -0
  20. package/dist/Dashboard-bc81b5f6.mjs +151 -0
  21. package/dist/Dropdown-60e3dc6c.js +1 -0
  22. package/dist/Dropdown-d1c81d45.mjs +169 -0
  23. package/dist/EditOrder-2b746caf.mjs +221 -0
  24. package/dist/EditOrder-e632f0cc.js +1 -0
  25. package/dist/Events-999cc8ed.js +1 -0
  26. package/dist/Events-ad8bbf27.mjs +134 -0
  27. package/dist/Feed-35e13c22.mjs +156 -0
  28. package/dist/Feed-53d96b18.mjs +361 -0
  29. package/dist/Feed-694a2fad.js +1 -0
  30. package/dist/Feed-ac4bb6ea.js +1 -0
  31. package/dist/Feed-d1d01771.js +1 -0
  32. package/dist/Feed-f7c04014.mjs +124 -0
  33. package/dist/Image-61cfd52d.js +9 -0
  34. package/dist/Image-e8be4acc.mjs +480 -0
  35. package/dist/LeftoverAdd-a268a95c.js +1 -0
  36. package/dist/LeftoverAdd-e4d93760.mjs +229 -0
  37. package/dist/Leftovers-6976802d.mjs +135 -0
  38. package/dist/Leftovers-d8f1d152.js +1 -0
  39. package/dist/Members-aeb2bca1.mjs +109 -0
  40. package/dist/Members-b9664e83.js +1 -0
  41. package/dist/Menu-93d34d9f.js +1 -0
  42. package/dist/Menu-eaf6b44c.mjs +13 -0
  43. package/dist/MenuItem-4a5881bd.mjs +85 -0
  44. package/dist/MenuItem-f35cad93.js +1 -0
  45. package/dist/Orders-8bc8963c.js +1 -0
  46. package/dist/Orders-eb262d8c.mjs +75 -0
  47. package/dist/Organizations-9926aa51.mjs +72 -0
  48. package/dist/Organizations-c653d814.js +1 -0
  49. package/dist/Payments-98328000.js +1 -0
  50. package/dist/Payments-a9066cdf.mjs +11 -0
  51. package/dist/Popup-0d8e1392.mjs +96 -0
  52. package/dist/Popup-eb11fa82.js +1 -0
  53. package/dist/Product-15043af7.mjs +651 -0
  54. package/dist/Product-82c022a4.js +7 -0
  55. package/dist/ProductEdit-05da9866.mjs +258 -0
  56. package/dist/ProductEdit-2f075296.js +1 -0
  57. package/dist/ProductsBackoffice-8462f626.js +1 -0
  58. package/dist/ProductsBackoffice-8d0f0ee8.mjs +85 -0
  59. package/dist/ProfileBlogposts-43855cb9.js +1 -0
  60. package/dist/ProfileBlogposts-f32170a3.mjs +78 -0
  61. package/dist/ProfileEvents-54be2d43.mjs +69 -0
  62. package/dist/ProfileEvents-ab69e27e.js +1 -0
  63. package/dist/ProfileOrganizations-0787cf34.mjs +72 -0
  64. package/dist/ProfileOrganizations-eb62dde4.js +1 -0
  65. package/dist/Publics-8e726d20.mjs +45 -0
  66. package/dist/Publics-ae589bf1.js +1 -0
  67. package/dist/Select-95f4701a.js +1 -0
  68. package/dist/Select-dab17282.mjs +80 -0
  69. package/dist/Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-0ea8fbf8.js +1 -0
  70. package/dist/Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-4ed993c7.mjs +1 -0
  71. package/dist/Socials-43293869.js +1 -0
  72. package/dist/Socials-8193477c.mjs +189 -0
  73. package/dist/UploadImage-0e8e4278.mjs +83 -0
  74. package/dist/UploadImage-8c71bda6.js +1 -0
  75. package/dist/UploadImageMultiple-c34a6c6f.mjs +58 -0
  76. package/dist/UploadImageMultiple-d1316df5.js +1 -0
  77. package/dist/Wallet-727195d9.mjs +21700 -0
  78. package/dist/Wallet-f4dda407.js +10 -0
  79. package/dist/auth-04684a60.js +7 -0
  80. package/dist/auth-7e39361f.mjs +633 -0
  81. package/dist/auth.client.cjs +1 -1
  82. package/dist/auth.client.js +5 -5
  83. package/dist/auth.server.js +1 -1
  84. package/dist/auth.server.mjs +1 -1
  85. package/dist/auth.validation-d614130d.js +1 -0
  86. package/dist/auth.validation-f4bf1deb.mjs +24 -0
  87. package/dist/axios-33aeb810.mjs +1435 -0
  88. package/dist/axios-ceccf20e.js +5 -0
  89. package/dist/backoffice.client.cjs +1 -1
  90. package/dist/backoffice.client.js +20 -20
  91. package/dist/categories-7e17a7eb.js +1 -0
  92. package/dist/categories-b7f9e8c0.mjs +122 -0
  93. package/dist/community.client.cjs +1 -1
  94. package/dist/community.client.js +209 -202
  95. package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
  96. package/dist/events.client.cjs +2 -2
  97. package/dist/events.client.js +24 -27
  98. package/dist/landing.client.cjs +1 -1
  99. package/dist/landing.client.js +64 -40
  100. package/dist/leftovers-86e7d438.mjs +67 -0
  101. package/dist/leftovers-c9f70579.js +1 -0
  102. package/dist/legal.client.cjs +1 -1
  103. package/dist/legal.client.js +6 -7
  104. package/dist/main.css +1 -1
  105. package/dist/memberships-559590ad.mjs +68 -0
  106. package/dist/memberships-58af22e0.js +1 -0
  107. package/dist/modules/constructor/components/elements/H2.vue.d.ts +1 -1
  108. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +1 -1
  109. package/dist/modules/products/components/sections/EditProductInfo.vue.d.ts +1 -5
  110. package/dist/orders-1325c51b.js +1 -0
  111. package/dist/orders-c7cbe706.mjs +85 -0
  112. package/dist/organizations-71777b32.js +1 -0
  113. package/dist/organizations-93f7b610.mjs +122 -0
  114. package/dist/organizations.client-6ca27fb3.js +3 -0
  115. package/dist/organizations.client-bd63a7b2.mjs +2997 -0
  116. package/dist/organizations.client.cjs +1 -1
  117. package/dist/organizations.client.js +56 -61
  118. package/dist/products-61d83d74.js +1 -0
  119. package/dist/products-7f1e5a75.mjs +108 -0
  120. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +67 -65
  122. package/dist/prometheus-framework.cjs.js +21 -21
  123. package/dist/prometheus-framework.es.js +682 -690
  124. package/dist/reports-a67b4fb4.js +1 -0
  125. package/dist/reports-c579b02a.mjs +91 -0
  126. package/dist/reports.client.cjs +1 -1
  127. package/dist/reports.client.js +2 -2
  128. package/dist/states.validation-3b4604bc.mjs +13 -0
  129. package/dist/states.validation-9b43a097.js +1 -0
  130. package/dist/style.css +1 -1
  131. package/dist/users.client.cjs +1 -1
  132. package/dist/users.client.js +279 -208
  133. package/package.json +30 -35
  134. package/src/components/Button/Button.vue +1 -1
  135. package/src/components/Sidebar/Sidebar.vue +10 -8
  136. package/src/components/Upload/Upload.vue +8 -28
  137. package/src/modules/auth/components/pages/SignIn.vue +2 -2
  138. package/src/modules/auth/controllers/auth.controller.js +1 -1
  139. package/src/modules/auth/store/auth.js +21 -24
  140. package/src/modules/backoffice/components/admin/ProductEdit.vue +2 -0
  141. package/src/modules/constructor/components/sections/Constructor.vue +7 -54
  142. package/src/modules/gallery/components/pages/Gallery.vue +7 -1
  143. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +24 -8
  144. package/src/modules/gallery/gallery.client.js +5 -1
  145. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -0
  146. package/src/modules/organizations/components/pages/Organization.vue +2 -2
  147. package/src/modules/payments/components/pages/Payments.vue +4 -3
  148. package/src/modules/products/components/blocks/CardLeftover.vue +0 -1
  149. package/src/modules/products/components/blocks/CardProduct.vue +15 -1
  150. package/src/modules/products/components/sections/EditProductInfo.vue +16 -14
  151. package/src/modules/products/components/sections/FilterProducts.vue +0 -2
  152. package/src/modules/products/components/sections/SectionProduct.vue +1 -0
  153. package/src/modules/products/components/sections/SortProducts.vue +2 -0
  154. package/src/modules/products/store/categories.js +9 -9
  155. package/src/modules/products/store/leftovers.js +6 -9
  156. package/src/modules/products/store/products.js +2 -0
  157. package/src/modules/users/components/pages/Profile.vue +3 -5
  158. package/src/modules/wallet/components/pages/Wallet.vue +1 -1
  159. package/src/styles/components/button.scss +253 -0
  160. package/src/styles/theme.scss +1 -0
  161. package/src/modules/constructor/components/elements/Audio.vue +0 -82
  162. package/src/modules/constructor/components/elements/Embed.vue +0 -85
  163. package/src/modules/globals/mixins/mixins.js +0 -52
  164. package/src/modules/globals/router/routerGuards.js +0 -28
@@ -1,73 +1,126 @@
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 m, 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 W } 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-7ee4dc8e.mjs";
8
- import { _ as q } from "./Socials-31c06635.mjs";
9
- import { a as Y, b as H, I as J } from "./IconCommunity-468dc457.mjs";
10
- import { I as K } from "./IconEdit-9edfd74d.mjs";
11
- import { P as Q } from "./PlaceholderUserpic-14c6ea7e.mjs";
12
- import { useRoute as I, useRouter as z } from "vue-router";
13
- import { s as d, a as M } from "./auth-56dc2ba7.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-d1c81d45.mjs";
5
+ import { _ as x } from "./Menu-eaf6b44c.mjs";
6
+ import { _ as k } from "./MenuItem-4a5881bd.mjs";
7
+ import { _ as Z } from "./ButtonToggleMembership-84d0e018.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-7e39361f.mjs";
13
+ import { a as K } from "./axios-33aeb810.mjs";
14
+ import { m as Q } from "./memberships-559590ad.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-0e8e4278.mjs";
20
19
  import "./inputs.validation-db65277a.mjs";
21
- import "./states.validation-944e334c.mjs";
22
- import { a as te } from "./auth.validation-c31a60e7.mjs";
23
- import "./Popup-0915427c.mjs";
20
+ import "./states.validation-3b4604bc.mjs";
21
+ import { a as ee } from "./auth.validation-f4bf1deb.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
- import "./Select-11ddabf5.mjs";
29
- import "./reports-79cd9459.mjs";
25
+ import "./Select-dab17282.mjs";
26
+ import "./Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-4ed993c7.mjs";
27
+ import "./reports-c579b02a.mjs";
30
28
  import "./globals-96ba60e4.mjs";
31
29
  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 = {
30
+ const te = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, L = {
35
31
  __name: "ProfileCompletion",
36
32
  props: {
37
33
  user: Object,
38
34
  target: Object,
39
35
  cta: Boolean
40
36
  },
41
- setup(o) {
42
- const { user: e, cta: _, target: w } = o, k = S(0), i = (b) => {
43
- let s = 0, l = 0;
37
+ setup(a) {
38
+ const { user: e, cta: _, target: w } = a, y = M(0), n = (b) => {
39
+ let s = 0, u = 0;
44
40
  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++));
41
+ for (let l in r)
42
+ r.hasOwnProperty(l) && (r[l] && typeof r[l] == "object" && !Array.isArray(r[l]) ? f(r[l]) : (s++, r[l] != null && r[l] !== "" && u++));
47
43
  }
48
- return f(b), s === 0 ? 0 : Math.round(l / s * 100);
44
+ return f(b), s === 0 ? 0 : Math.round(u / s * 100);
49
45
  };
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, {
46
+ return w && (y.value = n(w)), (b, s) => {
47
+ const u = z("router-link");
48
+ return m(), C("section", te, [
49
+ i("h3", null, " Profile completed at " + $(y.value) + "% ", 1),
50
+ a.cta ? (m(), g(u, {
55
51
  key: 0,
56
52
  to: {
57
53
  name: "User Edit Profile",
58
- params: { _id: o.user }
54
+ params: { _id: a.user }
59
55
  },
60
56
  class: "mn-t-regular t-black bg-white w-100 button"
61
57
  }, {
62
58
  default: p(() => [
63
- O(" Fill Profile ")
59
+ H(" Fill Profile ")
64
60
  ]),
65
61
  _: 1
66
62
  }, 8, ["to"])) : h("", !0)
67
63
  ]);
68
64
  };
69
65
  }
70
- }, E = X.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = L({
66
+ }, se = {}, re = {
67
+ width: "80",
68
+ height: "80",
69
+ viewBox: "0 0 80 80",
70
+ fill: "none",
71
+ xmlns: "http://www.w3.org/2000/svg"
72
+ }, ie = /* @__PURE__ */ i("path", {
73
+ 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",
74
+ fill: "white"
75
+ }, null, -1), ae = [
76
+ ie
77
+ ];
78
+ function oe(a, e) {
79
+ return m(), C("svg", re, ae);
80
+ }
81
+ const le = /* @__PURE__ */ E(se, [["render", oe]]), ne = {}, ue = {
82
+ width: "80",
83
+ height: "80",
84
+ viewBox: "0 0 80 80",
85
+ fill: "none",
86
+ xmlns: "http://www.w3.org/2000/svg"
87
+ }, de = /* @__PURE__ */ i("path", {
88
+ 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",
89
+ fill: "white"
90
+ }, null, -1), me = [
91
+ de
92
+ ];
93
+ function ce(a, e) {
94
+ return m(), C("svg", ue, me);
95
+ }
96
+ const N = /* @__PURE__ */ E(ne, [["render", ce]]), pe = {}, _e = {
97
+ width: "56",
98
+ height: "56",
99
+ viewBox: "0 0 56 56",
100
+ fill: "none",
101
+ xmlns: "http://www.w3.org/2000/svg"
102
+ }, fe = /* @__PURE__ */ i("path", {
103
+ 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",
104
+ fill: "white"
105
+ }, null, -1), Ce = /* @__PURE__ */ i("path", {
106
+ 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",
107
+ fill: "white"
108
+ }, null, -1), he = /* @__PURE__ */ i("path", {
109
+ 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",
110
+ fill: "white"
111
+ }, null, -1), ge = /* @__PURE__ */ i("path", {
112
+ 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",
113
+ fill: "white"
114
+ }, null, -1), be = [
115
+ fe,
116
+ Ce,
117
+ he,
118
+ ge
119
+ ];
120
+ function ve(a, e) {
121
+ return m(), C("svg", _e, be);
122
+ }
123
+ const we = /* @__PURE__ */ E(pe, [["render", ve]]), U = K.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = I({
71
124
  all: [],
72
125
  current: {
73
126
  _id: "",
@@ -89,44 +142,44 @@ const re = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, A
89
142
  },
90
143
  roles: []
91
144
  }
92
- }), x = {
93
- async create(o) {
145
+ }), V = {
146
+ async create(a) {
94
147
  try {
95
- const e = await E.post("/api/users", o);
96
- return $.set(e.data, "current"), Promise.resolve(e.data);
148
+ const e = await U.post("/api/users", a);
149
+ return P.set(e.data, "current"), Promise.resolve(e.data);
97
150
  } catch (e) {
98
151
  return console.error(e), Promise.reject(e);
99
152
  }
100
153
  },
101
- async read(o = {}) {
102
- o.params = {}, o._id && (o.params._id = o._id), o.user && (o.params.user = o.user);
154
+ async read(a = {}) {
155
+ a.params = {}, a._id && (a.params._id = a._id), a.user && (a.params.user = a.user);
103
156
  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);
157
+ const e = await U.get("/api/users", { params: a.params });
158
+ return a._id ? P.set(e.data[0], "current") : P.set(e.data, "all"), Promise.resolve(e.data);
106
159
  } catch (e) {
107
160
  return console.error(e), Promise.reject(e);
108
161
  }
109
162
  },
110
- async update(o) {
163
+ async update(a) {
111
164
  try {
112
- const e = await E.put(`/api/users/${o._id}`, o);
113
- return $.set(e.data, "current"), Promise.resolve(e.data);
165
+ const e = await U.put(`/api/users/${a._id}`, a);
166
+ return P.set(e.data, "current"), Promise.resolve(e.data);
114
167
  } catch (e) {
115
168
  return console.error(e), Promise.reject(e);
116
169
  }
117
170
  },
118
- async delete(o) {
171
+ async delete(a) {
119
172
  try {
120
- await E.delete(`/api/users/${o._id}`);
121
- const e = t.all.findIndex((_) => _._id === o._id);
173
+ await U.delete(`/api/users/${a._id}`);
174
+ const e = t.all.findIndex((_) => _._id === a._id);
122
175
  e !== -1 && t.all.splice(e, 1);
123
176
  } catch (e) {
124
177
  console.error(e);
125
178
  }
126
179
  }
127
- }, $ = {
128
- set(o, e) {
129
- t[e] = o;
180
+ }, P = {
181
+ set(a, e) {
182
+ t[e] = a;
130
183
  },
131
184
  clean() {
132
185
  t.current = {
@@ -140,122 +193,122 @@ const re = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, A
140
193
  orders: []
141
194
  };
142
195
  }
143
- }, _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
196
+ }, Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
144
197
  __proto__: null,
145
- actions: x,
146
- mutations: $,
198
+ actions: V,
199
+ mutations: P,
147
200
  state: t
148
201
  }, Symbol.toStringTag, { value: "Module" }));
149
- const se = {
202
+ const ye = {
150
203
  key: 0,
151
204
  class: "for-transition w-100"
152
- }, ae = {
205
+ }, ke = {
153
206
  key: 0,
154
207
  class: "flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"
155
- }, ie = {
208
+ }, $e = {
156
209
  key: 1,
157
210
  _id: "dash",
158
211
  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"], me = { class: "mn-thin" }, de = { 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 = {
212
+ }, 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
213
  key: 5,
161
214
  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 = {
215
+ }, 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
216
  __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: d.user._id }), w.value = !0;
217
+ setup(a) {
218
+ const e = O(), _ = R(), w = M(!1);
219
+ A(async () => {
220
+ await V.read({ _id: e.params._id, user: c.user._id }), w.value = !0;
168
221
  });
169
- const k = ({ membership: b, status: s, target: l }, f, r) => {
170
- Z.handleMembershipUpdate(t.current, b, s, l, f, r);
222
+ const y = ({ membership: b, status: s, target: u }, f, r) => {
223
+ Q.handleMembershipUpdate(t.current, b, s, u, f, r);
171
224
  };
172
- function i() {
173
- M.logout(), _.push({ name: "Sign In" });
225
+ function n() {
226
+ B.logout(), _.push({ name: "Sign In" });
174
227
  }
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
- m(e).params._id === d.user._id && w.value ? (c(), g(A, {
228
+ return (b, s) => w.value ? (m(), C("div", ye, [
229
+ t.current.status === "removed" ? (m(), C("div", ke, " Sorry, user has been removed. ")) : (m(), C("div", $e, [
230
+ d(e).params._id === c.user._id && w.value ? (m(), g(L, {
178
231
  key: 0,
179
- user: d.user._id,
232
+ user: c.user._id,
180
233
  target: t.current,
181
234
  cta: !0
182
235
  }, null, 8, ["user", "target"])) : h("", !0),
183
- u("section", oe, [
184
- m(e).params._id && m(e).params._id !== d.user._id ? (c(), g(G, {
236
+ i("section", Pe, [
237
+ d(e).params._id && d(e).params._id !== c.user._id ? (m(), g(W, {
185
238
  key: 0,
186
239
  label: "...",
187
240
  align: "right",
188
241
  class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
189
242
  }, {
190
243
  default: p(() => [
191
- u("section", le, [
192
- n(W, {
193
- user: d.user._id,
244
+ i("section", Ve, [
245
+ o(G, {
246
+ user: c.user._id,
194
247
  type: "user",
195
248
  target: t.current._id,
196
249
  text: "Report",
197
250
  class: "w-100"
198
251
  }, {
199
252
  default: p(() => [
200
- ne
253
+ xe
201
254
  ]),
202
255
  _: 1
203
256
  }, 8, ["user", "target"]),
204
- d.user._id ? (c(), g(C, {
257
+ c.user._id ? (m(), g(Z, {
205
258
  key: 0,
206
- user: d.user._id,
259
+ user: c.user._id,
207
260
  type: "user",
208
261
  role: "blocked",
209
262
  target: t.current._id,
210
263
  status: t.current.isBlocked,
211
264
  text: { create: "Block", remove: "Unblock" },
212
- onUpdateMembership: s[0] || (s[0] = (l) => k(l, "isBlocked")),
265
+ onUpdateMembership: s[0] || (s[0] = (u) => y(u, "isBlocked")),
213
266
  class: "t-white mn-t-thin bg-red"
214
267
  }, null, 8, ["user", "target", "status"])) : h("", !0)
215
268
  ])
216
269
  ]),
217
270
  _: 1
218
271
  }, 8, ["label"])) : h("", !0),
219
- m(e).params._id === d.user._id ? (c(), g(K, {
272
+ d(e).params._id === c.user._id ? (m(), g(J, {
220
273
  key: 1,
221
- onClick: s[1] || (s[1] = (l) => b.$router.push({
274
+ onClick: s[1] || (s[1] = (u) => b.$router.push({
222
275
  name: "User Edit Profile",
223
276
  params: {
224
- _id: d.user._id
277
+ _id: c.user._id
225
278
  }
226
279
  })),
227
280
  class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
228
281
  })) : h("", !0),
229
- t.current.profile.photo.length > 0 ? (c(), y("img", {
282
+ t.current.profile.photo.length > 0 ? (m(), C("img", {
230
283
  key: 2,
231
284
  src: (b.FILE_SERVER_URL || "") + t.current.profile.photo,
232
285
  class: "radius-extra bg-white mn-small object-fit-cover i-extra"
233
- }, null, 8, ue)) : (c(), g(Q, {
286
+ }, null, 8, Ue)) : (m(), g(q, {
234
287
  key: 3,
235
288
  class: "radius-medium mn-small i-extra"
236
289
  })),
237
- u("h3", me, U(t.current.profile.name ? t.current.profile.name : "Not specified"), 1),
238
- u("p", de, " @" + 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))
290
+ i("h3", Me, $(t.current.profile.name ? t.current.profile.name : "Not specified"), 1),
291
+ i("p", He, " @" + $(t.current.username ? t.current.username : "Not specified"), 1),
292
+ i("p", Ee, $(t.current.profile.description ? t.current.profile.description : "Not specified"), 1),
293
+ i("div", Ze, [
294
+ (m(!0), C(D, null, F(t.current.roles, (u, f) => (m(), C("div", {
295
+ class: T(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": f !== t.current.roles.length - 1 }])
296
+ }, $(u.icon) + " " + $(u.name), 3))), 256))
244
297
  ]),
245
- u("p", fe, " 👨‍👨‍👧‍👧 " + U(t.current.numberOfSubscribers) + " followers ", 1),
246
- d.user._id && m(e).params._id && m(e).params._id !== d.user._id ? (c(), g(C, {
298
+ i("p", Se, " 👨‍👨‍👧‍👧 " + $(t.current.numberOfSubscribers) + " followers ", 1),
299
+ c.user._id && d(e).params._id && d(e).params._id !== c.user._id ? (m(), g(Z, {
247
300
  key: 4,
248
- user: d.user._id,
301
+ user: c.user._id,
249
302
  type: "user",
250
303
  role: "subscriber",
251
304
  target: t.current._id,
252
305
  status: t.current.isSubscriber,
253
306
  text: { create: "Follow", remove: "Unfollow" },
254
- onUpdateMembership: s[2] || (s[2] = (l) => k(l, "isSubscriber", "numberOfSubscribers")),
307
+ onUpdateMembership: s[2] || (s[2] = (u) => y(u, "isSubscriber", "numberOfSubscribers")),
255
308
  class: "w-min mn-medium mn-r-auto mn-l-auto"
256
309
  }, 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(q, {
310
+ Object.values(t.current.socials).some((u) => u) ? (m(), C("h4", Ne, " Find Me in Socials ")) : h("", !0),
311
+ o(Y, {
259
312
  telegram: t.current.socials.telegram,
260
313
  facebook: t.current.socials.facebook,
261
314
  instagram: t.current.socials.instagram,
@@ -263,112 +316,130 @@ const se = {
263
316
  class: "mn-r-auto mn-l-auto"
264
317
  }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
265
318
  ]),
266
- d.access.roles && d.user._id === m(e).params._id && (d.access.roles.includes("ROLE_MODERATOR") || d.access.roles.includes("ROLE_ADMIN")) ? (c(), g(N, {
319
+ 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
320
  key: 1,
268
321
  class: "mn-regular bg-black t-white"
269
322
  }, {
270
323
  default: p(() => [
271
- n(P, {
272
- onClick: s[3] || (s[3] = (l) => m(_).push({
324
+ o(k, {
325
+ onClick: s[3] || (s[3] = (u) => d(_).push({
273
326
  name: "Backoffice",
274
327
  params: {
275
- _id: m(e).params._id
328
+ _id: d(e).params._id
276
329
  }
277
330
  })),
278
331
  class: "cursor-pointer",
279
332
  theme: "white"
280
333
  }, {
281
334
  default: p(() => [
282
- he
335
+ Oe
283
336
  ]),
284
337
  _: 1
285
338
  })
286
339
  ]),
287
340
  _: 1
288
341
  })) : h("", !0),
289
- n(N, { class: "mn-regular bg-grey" }, {
342
+ o(x, { class: "mn-regular bg-grey" }, {
290
343
  default: p(() => [
291
- n(P, {
292
- onClick: s[4] || (s[4] = (l) => m(_).push({ name: "User Events", params: { _id: m(e).params._id } })),
344
+ o(k, {
345
+ onClick: s[4] || (s[4] = (u) => d(_).push({ name: "User Events", params: { _id: d(e).params._id } })),
293
346
  class: "cursor-pointer"
294
347
  }, {
295
348
  default: p(() => [
296
- n(Y, {
349
+ o(le, {
297
350
  class: "i-semi",
298
351
  icon: !0
299
352
  }),
300
- ge
353
+ Re
301
354
  ]),
302
355
  _: 1
303
356
  }),
304
- n(P, {
305
- onClick: s[5] || (s[5] = (l) => m(_).push({ name: "User Organizations", params: { _id: m(e).params._id } })),
357
+ o(k, {
358
+ onClick: s[5] || (s[5] = (u) => d(_).push({ name: "User Organizations", params: { _id: d(e).params._id } })),
306
359
  class: "cursor-pointer"
307
360
  }, {
308
361
  default: p(() => [
309
- n(H, {
362
+ o(N, {
310
363
  class: "i-semi",
311
364
  icon: !0
312
365
  }),
313
- be
366
+ Be
314
367
  ]),
315
368
  _: 1
316
369
  }),
317
- n(P, {
318
- onClick: s[6] || (s[6] = (l) => m(_).push({ name: "User Blogposts", params: { _id: m(e).params._id } })),
370
+ o(k, {
371
+ onClick: s[6] || (s[6] = (u) => d(_).push({ name: "User Blogposts", params: { _id: d(e).params._id } })),
372
+ class: "cursor-pointer"
373
+ }, {
374
+ default: p(() => [
375
+ o(we, {
376
+ class: "i-semi",
377
+ icon: !0
378
+ }),
379
+ Le
380
+ ]),
381
+ _: 1
382
+ })
383
+ ]),
384
+ _: 1
385
+ }),
386
+ o(x, { class: "mn-regular bg-grey" }, {
387
+ default: p(() => [
388
+ o(k, {
389
+ onClick: s[7] || (s[7] = (u) => d(_).push({ name: "User Wallet", params: { _id: d(e).params._id } })),
319
390
  class: "cursor-pointer"
320
391
  }, {
321
392
  default: p(() => [
322
- n(J, {
393
+ o(N, {
323
394
  class: "i-semi",
324
395
  icon: !0
325
396
  }),
326
- ve
397
+ ze
327
398
  ]),
328
399
  _: 1
329
400
  })
330
401
  ]),
331
402
  _: 1
332
403
  }),
333
- d.user._id === m(e).params._id ? (c(), g(N, {
404
+ c.user._id === d(e).params._id ? (m(), g(x, {
334
405
  key: 2,
335
406
  class: "bg-grey"
336
407
  }, {
337
408
  default: p(() => [
338
- n(P, {
339
- onClick: s[7] || (s[7] = (l) => m(_).push({
409
+ o(k, {
410
+ onClick: s[8] || (s[8] = (u) => d(_).push({
340
411
  name: "User Edit Profile",
341
412
  params: {
342
- _id: m(e).params._id
413
+ _id: d(e).params._id
343
414
  }
344
415
  })),
345
416
  class: "cursor-pointer"
346
417
  }, {
347
418
  default: p(() => [
348
- ye
419
+ Ie
349
420
  ]),
350
421
  _: 1
351
422
  }),
352
- n(P, {
353
- onClick: s[8] || (s[8] = (l) => m(_).push({
423
+ o(k, {
424
+ onClick: s[9] || (s[9] = (u) => d(_).push({
354
425
  name: "Legal",
355
426
  params: {
356
- _id: m(e).params._id
427
+ _id: d(e).params._id
357
428
  }
358
429
  })),
359
430
  class: "cursor-pointer"
360
431
  }, {
361
432
  default: p(() => [
362
- we
433
+ Ae
363
434
  ]),
364
435
  _: 1
365
436
  }),
366
- n(P, {
437
+ o(k, {
367
438
  class: "cursor-pointer",
368
- onClick: s[9] || (s[9] = (l) => i())
439
+ onClick: s[10] || (s[10] = (u) => n())
369
440
  }, {
370
441
  default: p(() => [
371
- ke
442
+ De
372
443
  ]),
373
444
  _: 1
374
445
  })
@@ -378,149 +449,149 @@ const se = {
378
449
  ]))
379
450
  ])) : h("", !0);
380
451
  }
381
- }, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
452
+ }, Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
382
453
  __proto__: null,
383
- default: Pe
454
+ default: Fe
384
455
  }, 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 = {
456
+ 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
457
  __name: "ProfileEdit",
387
- async setup(o) {
458
+ async setup(a) {
388
459
  let e, _;
389
- S(null);
390
- const w = I(), k = z();
391
- [e, _] = V(() => x.read({ _id: d.user._id })), await e, _();
392
- const i = S(t.current);
460
+ M(null);
461
+ const w = O(), y = R();
462
+ [e, _] = j(() => V.read({ _id: c.user._id })), await e, _();
463
+ const n = M(t.current);
393
464
  async function b() {
394
- await x.update(t.current);
465
+ await V.update(t.current);
395
466
  }
396
467
  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());
468
+ 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
469
  }
399
- function l() {
400
- k.replace({ name: "User Profile", params: { _id: t.current._id } });
470
+ function u() {
471
+ y.replace({ name: "User Profile", params: { _id: t.current._id } });
401
472
  }
402
- return (f, r) => (c(), y("div", $e, [
403
- m(w).params._id === d.user._id ? (c(), g(A, {
473
+ return (f, r) => (m(), C("div", je, [
474
+ d(w).params._id === c.user._id ? (m(), g(L, {
404
475
  key: 0,
405
- user: d.user._id,
406
- target: i.value,
476
+ user: c.user._id,
477
+ target: n.value,
407
478
  cta: !1
408
479
  }, 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),
480
+ We,
481
+ o(v, {
482
+ field: n.value.username,
483
+ "onUpdate:field": r[0] || (r[0] = (l) => n.value.username = l),
413
484
  label: "@",
414
485
  placeholder: "Not specified",
415
486
  class: "mn-thin w-100 bg-grey pd-medium radius-small",
416
487
  disabled: "true",
417
488
  validation: f.organizationName
418
489
  }, 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",
490
+ Ge,
491
+ qe,
492
+ i("div", Ye, [
493
+ o(X, {
494
+ photo: n.value.profile.photo,
495
+ "onUpdate:photo": r[1] || (r[1] = (l) => n.value.profile.photo = l),
496
+ uploadPath: "users/" + n.value._id + "/avatars",
426
497
  class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
427
498
  }, null, 8, ["photo", "uploadPath"]),
428
- Oe
499
+ Je
429
500
  ]),
430
- n(v, {
431
- field: i.value.profile.name,
432
- "onUpdate:field": r[2] || (r[2] = (a) => i.value.profile.name = a),
501
+ o(v, {
502
+ field: n.value.profile.name,
503
+ "onUpdate:field": r[2] || (r[2] = (l) => n.value.profile.name = l),
433
504
  label: "Name",
434
505
  placeholder: "Not specified",
435
506
  class: "mn-thin bg-grey pd-medium radius-small",
436
507
  validation: f.organizationName
437
508
  }, 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),
509
+ o(v, {
510
+ field: n.value.profile.description,
511
+ "onUpdate:field": r[3] || (r[3] = (l) => n.value.profile.description = l),
441
512
  label: "Description",
442
513
  placeholder: "Not specified",
443
514
  class: "mn-semi bg-grey pd-medium radius-small",
444
515
  disabled: "true",
445
516
  validation: f.organizationName
446
517
  }, 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),
518
+ Ke,
519
+ Qe,
520
+ o(v, {
521
+ field: n.value.socials.instagram,
522
+ "onUpdate:field": r[4] || (r[4] = (l) => n.value.socials.instagram = l),
452
523
  label: "Instagram",
453
524
  placeholder: "",
454
525
  class: "mn-thin bg-grey pd-medium radius-small"
455
526
  }, 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),
527
+ o(v, {
528
+ field: n.value.socials.twitter,
529
+ "onUpdate:field": r[5] || (r[5] = (l) => n.value.socials.twitter = l),
459
530
  label: "Twitter",
460
531
  placeholder: "",
461
532
  class: "mn-thin bg-grey pd-medium radius-small"
462
533
  }, 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),
534
+ o(v, {
535
+ field: n.value.socials.facebook,
536
+ "onUpdate:field": r[6] || (r[6] = (l) => n.value.socials.facebook = l),
466
537
  label: "Facebook",
467
538
  placeholder: "",
468
539
  class: "mn-thin bg-grey pd-medium radius-small"
469
540
  }, 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),
541
+ o(v, {
542
+ field: n.value.socials.telegram,
543
+ "onUpdate:field": r[7] || (r[7] = (l) => n.value.socials.telegram = l),
473
544
  label: "Telegram",
474
545
  placeholder: "",
475
546
  class: "mn-semi bg-grey pd-medium radius-small"
476
547
  }, 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),
548
+ Xe,
549
+ o(v, {
550
+ field: n.value.phone,
551
+ "onUpdate:field": r[8] || (r[8] = (l) => n.value.phone = l),
481
552
  label: "Phone",
482
553
  placeholder: "Not specified",
483
554
  class: "mn-thin bg-grey pd-medium mn-thin radius-small",
484
555
  disabled: "true",
485
556
  validation: f.organizationName
486
557
  }, null, 8, ["field", "validation"]),
487
- n(v, {
488
- field: i.value.email,
489
- "onUpdate:field": r[9] || (r[9] = (a) => i.value.email = a),
558
+ o(v, {
559
+ field: n.value.email,
560
+ "onUpdate:field": r[9] || (r[9] = (l) => n.value.email = l),
490
561
  label: "Email",
491
562
  placeholder: "Not specified",
492
563
  class: "mn-semi bg-grey pd-medium radius-small",
493
564
  disabled: !0,
494
565
  validation: f.organizationName
495
566
  }, null, 8, ["field", "validation"]),
496
- n(R, {
567
+ o(S, {
497
568
  submit: b,
498
- callback: l,
569
+ callback: u,
499
570
  class: "mn-thin"
500
571
  }, {
501
572
  default: p(() => [
502
- O("Save")
573
+ H("Save")
503
574
  ]),
504
575
  _: 1
505
576
  }),
506
- n(R, {
577
+ o(S, {
507
578
  submit: s,
508
579
  callback: f.a = () => {
509
- m(k).push({ name: "Sign In" });
580
+ d(y).push({ name: "Sign In" });
510
581
  },
511
582
  class: "mn-thin bg-red t-white"
512
583
  }, {
513
584
  default: p(() => [
514
- O("Delete Account")
585
+ H("Delete Account")
515
586
  ]),
516
587
  _: 1
517
588
  }, 8, ["callback"])
518
589
  ]));
519
590
  }
520
- }, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
591
+ }, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
521
592
  __proto__: null,
522
- default: ze
523
- }, Symbol.toStringTag, { value: "Module" })), ht = [
593
+ default: et
594
+ }, Symbol.toStringTag, { value: "Module" })), Zt = [
524
595
  {
525
596
  path: "profile/:_id",
526
597
  name: "User Profile",
@@ -530,13 +601,13 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
530
601
  ru: "Профиль"
531
602
  }
532
603
  },
533
- component: () => Promise.resolve().then(() => Ue)
604
+ component: () => Promise.resolve().then(() => Te)
534
605
  },
535
606
  {
536
607
  path: "profile/:_id/edit",
537
608
  name: "User Edit Profile",
538
609
  beforeEnter: [
539
- te
610
+ ee
540
611
  ],
541
612
  meta: {
542
613
  title: {
@@ -544,7 +615,7 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
544
615
  ru: "Редактировать Профиль"
545
616
  }
546
617
  },
547
- component: () => Promise.resolve().then(() => Me)
618
+ component: () => Promise.resolve().then(() => tt)
548
619
  },
549
620
  {
550
621
  path: "profile/:_id/blogposts",
@@ -557,7 +628,7 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
557
628
  },
558
629
  component: () => import(
559
630
  /* webpackChunkName: "profile" */
560
- "./ProfileBlogposts-f43cf32e.mjs"
631
+ "./ProfileBlogposts-f32170a3.mjs"
561
632
  )
562
633
  },
563
634
  {
@@ -571,7 +642,7 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
571
642
  },
572
643
  component: () => import(
573
644
  /* webpackChunkName: "profile" */
574
- "./ProfileEvents-12f80fff.mjs"
645
+ "./ProfileEvents-54be2d43.mjs"
575
646
  )
576
647
  },
577
648
  {
@@ -585,7 +656,7 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
585
656
  },
586
657
  component: () => import(
587
658
  /* webpackChunkName: "profile" */
588
- "./ProfileOrganizations-bbc2cf40.mjs"
659
+ "./ProfileOrganizations-0787cf34.mjs"
589
660
  )
590
661
  },
591
662
  {
@@ -599,7 +670,7 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
599
670
  },
600
671
  component: () => import(
601
672
  /* webpackChunkName: "profile" */
602
- "./Wallet-2043b611.mjs"
673
+ "./Wallet-727195d9.mjs"
603
674
  )
604
675
  }
605
676
  // ,{
@@ -625,8 +696,8 @@ const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("
625
696
  // },
626
697
  ];
627
698
  export {
628
- Pe as Profile,
629
- ze as ProfileEdit,
630
- ht as usersRoutes,
631
- _t as usersStore
699
+ Fe as Profile,
700
+ et as ProfileEdit,
701
+ Zt as usersRoutes,
702
+ Et as usersStore
632
703
  };