@ozdao/prometheus-framework 0.1.61 → 0.1.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. package/dist/BackofficeGallery-30022293.js +1 -0
  2. package/dist/BackofficeGallery-f64daa0d.mjs +264 -0
  3. package/dist/BackofficeReports-cb4b180d.mjs +44 -0
  4. package/dist/BackofficeReports-d021871f.js +1 -0
  5. package/dist/BlockTags-8cddaef7.js +1 -0
  6. package/dist/BlockTags-ee310572.mjs +853 -0
  7. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  8. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  9. package/dist/Button-7643c9aa.js +1 -0
  10. package/dist/Button-9e1a9284.mjs +226 -0
  11. package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  12. package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  13. package/dist/ButtonToggleMembership-7ee4dc8e.mjs +90 -0
  14. package/dist/ButtonToggleMembership-b9352cec.js +1 -0
  15. package/dist/CardBlogpost-3c92fbc9.mjs +246 -0
  16. package/dist/CardBlogpost-c7364b1e.js +1 -0
  17. package/dist/CardOrganization-647cb571.js +1 -0
  18. package/dist/CardOrganization-facb77f7.mjs +234 -0
  19. package/dist/CardProduct-92affca1.js +1 -0
  20. package/dist/CardProduct-fca53299.mjs +193 -0
  21. package/dist/Checkbox-5dbe7b23.mjs +62 -0
  22. package/dist/Checkbox-76f09248.js +1 -0
  23. package/dist/Chips-0fdb31c9.js +1 -0
  24. package/dist/Chips-f1a0d085.mjs +214 -0
  25. package/dist/Community-534d473c.mjs +132 -0
  26. package/dist/Community-e9aff969.js +1 -0
  27. package/dist/Dashboard-91d73bc5.js +1 -0
  28. package/dist/Dashboard-ea9035bc.mjs +152 -0
  29. package/dist/Dropdown-31115457.js +1 -0
  30. package/dist/Dropdown-cab3605b.mjs +146 -0
  31. package/dist/EULA-aba6a807.js +1 -0
  32. package/dist/EULA-e05236af.mjs +4210 -0
  33. package/dist/EditOrder-94bbebff.mjs +221 -0
  34. package/dist/EditOrder-c070d474.js +1 -0
  35. package/dist/EmptyState-d65bab5b.js +1 -0
  36. package/dist/EmptyState-e404b05d.mjs +36 -0
  37. package/dist/Events-46ae8fc6.mjs +123 -0
  38. package/dist/Events-813c8c7b.js +1 -0
  39. package/dist/Feed-2d443ad2.mjs +146 -0
  40. package/dist/Feed-3a4e7a9c.js +1 -0
  41. package/dist/Feed-8b554fc1.js +1 -0
  42. package/dist/Feed-98b47c6f.js +1 -0
  43. package/dist/Feed-a21d6007.mjs +124 -0
  44. package/dist/Feed-b39138c8.js +1 -0
  45. package/dist/Feed-c41ef736.mjs +361 -0
  46. package/dist/Feed-d114330c.mjs +112 -0
  47. package/dist/Field-e2a43424.js +1 -0
  48. package/dist/Field-e5ad88d3.mjs +75 -0
  49. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
  50. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
  51. package/dist/Gallery-46b5f939.js +1 -0
  52. package/dist/Gallery-762a9c2d.mjs +241 -0
  53. package/dist/IconChevronRight-a55f838e.js +1 -0
  54. package/dist/IconChevronRight-fae9d012.mjs +28 -0
  55. package/dist/IconCommunity-468dc457.mjs +65 -0
  56. package/dist/IconCommunity-b339e806.js +1 -0
  57. package/dist/IconCross-5bf93179.js +1 -0
  58. package/dist/IconCross-84cb1292.mjs +28 -0
  59. package/dist/IconEdit-9edfd74d.mjs +21 -0
  60. package/dist/IconEdit-c0469b45.js +1 -0
  61. package/dist/Image-4dcfddb8.js +9 -0
  62. package/dist/Image-e0da17ac.mjs +571 -0
  63. package/dist/LabelGooglePlay-24feb437.mjs +31 -0
  64. package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
  65. package/dist/LeftoverAdd-5a8988d9.js +1 -0
  66. package/dist/LeftoverAdd-c4f37f47.mjs +227 -0
  67. package/dist/Leftovers-470a1689.js +1 -0
  68. package/dist/Leftovers-69c7dcd9.mjs +136 -0
  69. package/dist/Loader-21f016da.js +1 -0
  70. package/dist/Loader-cd422786.mjs +41 -0
  71. package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  72. package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  73. package/dist/Members-04273cd4.mjs +114 -0
  74. package/dist/Members-0685a15f.js +1 -0
  75. package/dist/Menu-b5d6a0c7.js +1 -0
  76. package/dist/Menu-dd7645c1.mjs +13 -0
  77. package/dist/MenuItem-56ae7f94.js +1 -0
  78. package/dist/MenuItem-6296d02f.mjs +63 -0
  79. package/dist/Orders-b64e8cb9.js +1 -0
  80. package/dist/Orders-ff30db05.mjs +75 -0
  81. package/dist/Organizations-46aab2c8.mjs +73 -0
  82. package/dist/Organizations-a8627bc5.js +1 -0
  83. package/dist/Payments-53e5fecf.js +1 -0
  84. package/dist/Payments-82e545e1.mjs +87 -0
  85. package/dist/PlaceholderUserpic-14c6ea7e.mjs +28 -0
  86. package/dist/PlaceholderUserpic-47f6f319.js +1 -0
  87. package/dist/Popup-0915427c.mjs +74 -0
  88. package/dist/Popup-795f5c88.js +1 -0
  89. package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  90. package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  91. package/dist/Product-7e001b81.js +7 -0
  92. package/dist/Product-f3f42158.mjs +653 -0
  93. package/dist/ProductEdit-959b3cd3.mjs +295 -0
  94. package/dist/ProductEdit-bae5e898.js +1 -0
  95. package/dist/ProductsBackoffice-0716123f.js +1 -0
  96. package/dist/ProductsBackoffice-a36ecbc6.mjs +85 -0
  97. package/dist/ProfileBlogposts-c790d1b2.js +1 -0
  98. package/dist/ProfileBlogposts-f43cf32e.mjs +79 -0
  99. package/dist/ProfileEvents-12f80fff.mjs +70 -0
  100. package/dist/ProfileEvents-585570a3.js +1 -0
  101. package/dist/ProfileOrganizations-bbc2cf40.mjs +73 -0
  102. package/dist/ProfileOrganizations-d7103514.js +1 -0
  103. package/dist/Publics-094f3c2c.mjs +45 -0
  104. package/dist/Publics-1032c0f4.js +1 -0
  105. package/dist/Select-11ddabf5.mjs +79 -0
  106. package/dist/Select-3ca5ab39.js +1 -0
  107. package/dist/SelectMulti-58704d69.mjs +1038 -0
  108. package/dist/SelectMulti-c25765cf.js +1 -0
  109. package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
  110. package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
  111. package/dist/SkeletonEvent-8690422d.mjs +16 -0
  112. package/dist/SkeletonEvent-eb284de8.js +1 -0
  113. package/dist/SkeletonEventShort-6c9e3940.js +1 -0
  114. package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
  115. package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
  116. package/dist/SkeletonOrganization-8690422d.mjs +16 -0
  117. package/dist/Socials-31c06635.mjs +74 -0
  118. package/dist/Socials-cceaeaf2.js +1 -0
  119. package/dist/Tab-054b61f7.mjs +46 -0
  120. package/dist/Tab-2c1e4224.js +1 -0
  121. package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  122. package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  123. package/dist/Upload-06d93178.js +1 -0
  124. package/dist/Upload-23212d9d.mjs +74 -0
  125. package/dist/UploadImage-0f488170.js +1 -0
  126. package/dist/UploadImage-3c627d89.mjs +83 -0
  127. package/dist/UploadImageMultiple-cb6c7188.mjs +58 -0
  128. package/dist/UploadImageMultiple-eddaac87.js +1 -0
  129. package/dist/Wallet-2043b611.mjs +24682 -0
  130. package/dist/Wallet-8fa7386a.js +55 -0
  131. package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
  132. package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
  133. package/dist/auth-56dc2ba7.mjs +607 -0
  134. package/dist/auth-f018f5b3.js +7 -0
  135. package/dist/auth.client.cjs +7 -0
  136. package/dist/auth.client.js +3874 -0
  137. package/dist/auth.validation-c31a60e7.mjs +24 -0
  138. package/dist/auth.validation-d049b341.js +1 -0
  139. package/dist/backoffice.client.cjs +1 -0
  140. package/dist/backoffice.client.js +265 -0
  141. package/dist/carousel.es-44c501bc.mjs +383 -0
  142. package/dist/carousel.es-cdfb392c.js +5 -0
  143. package/dist/categories-5b08da53.mjs +121 -0
  144. package/dist/categories-7ccd6be9.js +1 -0
  145. package/dist/click-outside-0b0727d1.js +2 -0
  146. package/dist/click-outside-6101836c.mjs +19 -0
  147. package/dist/community.client.cjs +1 -0
  148. package/dist/community.client.js +692 -0
  149. package/dist/dribbble-8e8e169b.js +1 -0
  150. package/dist/dribbble-ae37c2ac.mjs +127 -0
  151. package/dist/events.client.cjs +2 -0
  152. package/dist/events.client.js +8885 -0
  153. package/dist/files.client.cjs +1 -0
  154. package/dist/files.client.js +1 -0
  155. package/dist/gallery-d4297191.mjs +54 -0
  156. package/dist/gallery-f92912df.js +1 -0
  157. package/dist/gallery.client.cjs +1 -0
  158. package/dist/gallery.client.js +18 -0
  159. package/dist/globals-928eb13c.js +1 -0
  160. package/dist/globals-96ba60e4.mjs +91 -0
  161. package/dist/globals.client.cjs +1 -0
  162. package/dist/globals.client.js +12 -0
  163. package/dist/icons.client.cjs +1 -0
  164. package/dist/icons.client.js +84 -0
  165. package/dist/index-a661083c.mjs +934 -0
  166. package/dist/index-b41aac19.js +2 -0
  167. package/dist/inputs.validation-d7cef32b.js +1 -0
  168. package/dist/inputs.validation-db65277a.mjs +83 -0
  169. package/dist/landing.client.cjs +1 -0
  170. package/dist/landing.client.js +111 -0
  171. package/dist/leftovers-5d1ff88b.mjs +67 -0
  172. package/dist/leftovers-b60180cf.js +1 -0
  173. package/dist/legal.client.cjs +1 -0
  174. package/dist/legal.client.js +8512 -0
  175. package/dist/memberships-12210953.mjs +68 -0
  176. package/dist/memberships-393765d8.js +1 -0
  177. package/dist/middlewares.client.cjs +1 -0
  178. package/dist/middlewares.client.js +1 -0
  179. package/dist/orders-13c10d49.mjs +85 -0
  180. package/dist/orders-37f041aa.js +1 -0
  181. package/dist/organizations-587d5a4d.mjs +122 -0
  182. package/dist/organizations-b4d902a2.js +1 -0
  183. package/dist/organizations.client-35b74e44.mjs +2997 -0
  184. package/dist/organizations.client-f982f55a.js +3 -0
  185. package/dist/organizations.client.cjs +1 -0
  186. package/dist/organizations.client.js +86 -0
  187. package/dist/products-3c43eb18.js +1 -0
  188. package/dist/products-943fb95e.mjs +107 -0
  189. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  191. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  193. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  195. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  196. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  197. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/auth/store/auth.js +75 -93
  199. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  201. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  203. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
  204. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
  205. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
  206. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
  207. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  209. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  211. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  213. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  215. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  217. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  221. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  223. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  225. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  227. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  229. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  231. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  233. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  235. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
  237. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  239. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  243. package/dist/prometheus-framework.cjs.js +19 -19
  244. package/dist/prometheus-framework.es.js +2208 -2198
  245. package/dist/reports-270f69df.js +1 -0
  246. package/dist/reports-79cd9459.mjs +91 -0
  247. package/dist/reports.client.cjs +1 -0
  248. package/dist/reports.client.js +8 -0
  249. package/dist/states.validation-3b70f83a.js +1 -0
  250. package/dist/states.validation-944e334c.mjs +13 -0
  251. package/dist/style.css +1 -1
  252. package/dist/users.client.cjs +1 -0
  253. package/dist/users.client.js +632 -0
  254. package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
  255. package/dist/vue-draggable-next.esm-bundler-ff6e3f52.mjs +1557 -0
  256. package/dist/vuex.esm-bundler-57d8b6ba.mjs +750 -0
  257. package/dist/vuex.esm-bundler-685cf29f.js +5 -0
  258. package/package.json +1 -1
  259. package/src/modules/auth/store/auth.js +20 -20
@@ -0,0 +1,632 @@
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";
2
+ import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
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";
16
+ import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
17
+ import { F as v } from "./Field-e5ad88d3.mjs";
18
+ import { _ as R } from "./Button-9e1a9284.mjs";
19
+ import { _ as ee } from "./UploadImage-3c627d89.mjs";
20
+ 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";
24
+ import "vue-i18n";
25
+ import "./IconCross-84cb1292.mjs";
26
+ import "./_plugin-vue_export-helper-dad06003.mjs";
27
+ import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
28
+ import "./Select-11ddabf5.mjs";
29
+ import "./reports-79cd9459.mjs";
30
+ import "./globals-96ba60e4.mjs";
31
+ 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 = {
35
+ __name: "ProfileCompletion",
36
+ props: {
37
+ user: Object,
38
+ target: Object,
39
+ cta: Boolean
40
+ },
41
+ setup(o) {
42
+ const { user: e, cta: _, target: w } = o, k = S(0), i = (b) => {
43
+ let s = 0, l = 0;
44
+ 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++));
47
+ }
48
+ return f(b), s === 0 ? 0 : Math.round(l / s * 100);
49
+ };
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, {
55
+ key: 0,
56
+ to: {
57
+ name: "User Edit Profile",
58
+ params: { _id: o.user }
59
+ },
60
+ class: "mn-t-regular t-black bg-white w-100 button"
61
+ }, {
62
+ default: p(() => [
63
+ O(" Fill Profile ")
64
+ ]),
65
+ _: 1
66
+ }, 8, ["to"])) : h("", !0)
67
+ ]);
68
+ };
69
+ }
70
+ }, E = X.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = L({
71
+ all: [],
72
+ current: {
73
+ _id: "",
74
+ username: "",
75
+ email: "",
76
+ phone: "",
77
+ status: "",
78
+ profile: {
79
+ name: "",
80
+ photo: "",
81
+ description: "",
82
+ birthday: ""
83
+ },
84
+ socials: {
85
+ facebook: "",
86
+ twitter: "",
87
+ instagram: "",
88
+ telegram: ""
89
+ },
90
+ roles: []
91
+ }
92
+ }), x = {
93
+ async create(o) {
94
+ try {
95
+ const e = await E.post("/api/users", o);
96
+ return $.set(e.data, "current"), Promise.resolve(e.data);
97
+ } catch (e) {
98
+ return console.error(e), Promise.reject(e);
99
+ }
100
+ },
101
+ async read(o = {}) {
102
+ o.params = {}, o._id && (o.params._id = o._id), o.user && (o.params.user = o.user);
103
+ 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);
106
+ } catch (e) {
107
+ return console.error(e), Promise.reject(e);
108
+ }
109
+ },
110
+ async update(o) {
111
+ try {
112
+ const e = await E.put(`/api/users/${o._id}`, o);
113
+ return $.set(e.data, "current"), Promise.resolve(e.data);
114
+ } catch (e) {
115
+ return console.error(e), Promise.reject(e);
116
+ }
117
+ },
118
+ async delete(o) {
119
+ try {
120
+ await E.delete(`/api/users/${o._id}`);
121
+ const e = t.all.findIndex((_) => _._id === o._id);
122
+ e !== -1 && t.all.splice(e, 1);
123
+ } catch (e) {
124
+ console.error(e);
125
+ }
126
+ }
127
+ }, $ = {
128
+ set(o, e) {
129
+ t[e] = o;
130
+ },
131
+ clean() {
132
+ t.current = {
133
+ phone: "",
134
+ name: "",
135
+ surname: "",
136
+ birthday: "",
137
+ city: "",
138
+ address: "",
139
+ roles: [],
140
+ orders: []
141
+ };
142
+ }
143
+ }, _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
144
+ __proto__: null,
145
+ actions: x,
146
+ mutations: $,
147
+ state: t
148
+ }, Symbol.toStringTag, { value: "Module" }));
149
+ const se = {
150
+ key: 0,
151
+ class: "for-transition w-100"
152
+ }, ae = {
153
+ key: 0,
154
+ class: "flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"
155
+ }, ie = {
156
+ key: 1,
157
+ _id: "dash",
158
+ 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 = {
160
+ key: 5,
161
+ 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 = {
163
+ __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;
168
+ });
169
+ const k = ({ membership: b, status: s, target: l }, f, r) => {
170
+ Z.handleMembershipUpdate(t.current, b, s, l, f, r);
171
+ };
172
+ function i() {
173
+ M.logout(), _.push({ name: "Sign In" });
174
+ }
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, {
178
+ key: 0,
179
+ user: d.user._id,
180
+ target: t.current,
181
+ cta: !0
182
+ }, 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, {
185
+ key: 0,
186
+ label: "...",
187
+ align: "right",
188
+ class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
189
+ }, {
190
+ default: p(() => [
191
+ u("section", le, [
192
+ n(W, {
193
+ user: d.user._id,
194
+ type: "user",
195
+ target: t.current._id,
196
+ text: "Report",
197
+ class: "w-100"
198
+ }, {
199
+ default: p(() => [
200
+ ne
201
+ ]),
202
+ _: 1
203
+ }, 8, ["user", "target"]),
204
+ d.user._id ? (c(), g(C, {
205
+ key: 0,
206
+ user: d.user._id,
207
+ type: "user",
208
+ role: "blocked",
209
+ target: t.current._id,
210
+ status: t.current.isBlocked,
211
+ text: { create: "Block", remove: "Unblock" },
212
+ onUpdateMembership: s[0] || (s[0] = (l) => k(l, "isBlocked")),
213
+ class: "t-white mn-t-thin bg-red"
214
+ }, null, 8, ["user", "target", "status"])) : h("", !0)
215
+ ])
216
+ ]),
217
+ _: 1
218
+ }, 8, ["label"])) : h("", !0),
219
+ m(e).params._id === d.user._id ? (c(), g(K, {
220
+ key: 1,
221
+ onClick: s[1] || (s[1] = (l) => b.$router.push({
222
+ name: "User Edit Profile",
223
+ params: {
224
+ _id: d.user._id
225
+ }
226
+ })),
227
+ class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
228
+ })) : h("", !0),
229
+ t.current.profile.photo.length > 0 ? (c(), y("img", {
230
+ key: 2,
231
+ src: (b.FILE_SERVER_URL || "") + t.current.profile.photo,
232
+ class: "radius-extra bg-white mn-small object-fit-cover i-extra"
233
+ }, null, 8, ue)) : (c(), g(Q, {
234
+ key: 3,
235
+ class: "radius-medium mn-small i-extra"
236
+ })),
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))
244
+ ]),
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, {
247
+ key: 4,
248
+ user: d.user._id,
249
+ type: "user",
250
+ role: "subscriber",
251
+ target: t.current._id,
252
+ status: t.current.isSubscriber,
253
+ text: { create: "Follow", remove: "Unfollow" },
254
+ onUpdateMembership: s[2] || (s[2] = (l) => k(l, "isSubscriber", "numberOfSubscribers")),
255
+ class: "w-min mn-medium mn-r-auto mn-l-auto"
256
+ }, 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, {
259
+ telegram: t.current.socials.telegram,
260
+ facebook: t.current.socials.facebook,
261
+ instagram: t.current.socials.instagram,
262
+ twitter: t.current.socials.twitter,
263
+ class: "mn-r-auto mn-l-auto"
264
+ }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
265
+ ]),
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, {
267
+ key: 1,
268
+ class: "mn-regular bg-black t-white"
269
+ }, {
270
+ default: p(() => [
271
+ n(P, {
272
+ onClick: s[3] || (s[3] = (l) => m(_).push({
273
+ name: "Backoffice",
274
+ params: {
275
+ _id: m(e).params._id
276
+ }
277
+ })),
278
+ class: "cursor-pointer",
279
+ theme: "white"
280
+ }, {
281
+ default: p(() => [
282
+ he
283
+ ]),
284
+ _: 1
285
+ })
286
+ ]),
287
+ _: 1
288
+ })) : h("", !0),
289
+ n(N, { class: "mn-regular bg-grey" }, {
290
+ default: p(() => [
291
+ n(P, {
292
+ onClick: s[4] || (s[4] = (l) => m(_).push({ name: "User Events", params: { _id: m(e).params._id } })),
293
+ class: "cursor-pointer"
294
+ }, {
295
+ default: p(() => [
296
+ n(Y, {
297
+ class: "i-semi",
298
+ icon: !0
299
+ }),
300
+ ge
301
+ ]),
302
+ _: 1
303
+ }),
304
+ n(P, {
305
+ onClick: s[5] || (s[5] = (l) => m(_).push({ name: "User Organizations", params: { _id: m(e).params._id } })),
306
+ class: "cursor-pointer"
307
+ }, {
308
+ default: p(() => [
309
+ n(H, {
310
+ class: "i-semi",
311
+ icon: !0
312
+ }),
313
+ be
314
+ ]),
315
+ _: 1
316
+ }),
317
+ n(P, {
318
+ onClick: s[6] || (s[6] = (l) => m(_).push({ name: "User Blogposts", params: { _id: m(e).params._id } })),
319
+ class: "cursor-pointer"
320
+ }, {
321
+ default: p(() => [
322
+ n(J, {
323
+ class: "i-semi",
324
+ icon: !0
325
+ }),
326
+ ve
327
+ ]),
328
+ _: 1
329
+ })
330
+ ]),
331
+ _: 1
332
+ }),
333
+ d.user._id === m(e).params._id ? (c(), g(N, {
334
+ key: 2,
335
+ class: "bg-grey"
336
+ }, {
337
+ default: p(() => [
338
+ n(P, {
339
+ onClick: s[7] || (s[7] = (l) => m(_).push({
340
+ name: "User Edit Profile",
341
+ params: {
342
+ _id: m(e).params._id
343
+ }
344
+ })),
345
+ class: "cursor-pointer"
346
+ }, {
347
+ default: p(() => [
348
+ ye
349
+ ]),
350
+ _: 1
351
+ }),
352
+ n(P, {
353
+ onClick: s[8] || (s[8] = (l) => m(_).push({
354
+ name: "Legal",
355
+ params: {
356
+ _id: m(e).params._id
357
+ }
358
+ })),
359
+ class: "cursor-pointer"
360
+ }, {
361
+ default: p(() => [
362
+ we
363
+ ]),
364
+ _: 1
365
+ }),
366
+ n(P, {
367
+ class: "cursor-pointer",
368
+ onClick: s[9] || (s[9] = (l) => i())
369
+ }, {
370
+ default: p(() => [
371
+ ke
372
+ ]),
373
+ _: 1
374
+ })
375
+ ]),
376
+ _: 1
377
+ })) : h("", !0)
378
+ ]))
379
+ ])) : h("", !0);
380
+ }
381
+ }, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
382
+ __proto__: null,
383
+ default: Pe
384
+ }, 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 = {
386
+ __name: "ProfileEdit",
387
+ async setup(o) {
388
+ 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);
393
+ async function b() {
394
+ await x.update(t.current);
395
+ }
396
+ 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());
398
+ }
399
+ function l() {
400
+ k.replace({ name: "User Profile", params: { _id: t.current._id } });
401
+ }
402
+ return (f, r) => (c(), y("div", $e, [
403
+ m(w).params._id === d.user._id ? (c(), g(A, {
404
+ key: 0,
405
+ user: d.user._id,
406
+ target: i.value,
407
+ cta: !1
408
+ }, 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),
413
+ label: "@",
414
+ placeholder: "Not specified",
415
+ class: "mn-thin w-100 bg-grey pd-medium radius-small",
416
+ disabled: "true",
417
+ validation: f.organizationName
418
+ }, 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",
426
+ class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
427
+ }, null, 8, ["photo", "uploadPath"]),
428
+ Oe
429
+ ]),
430
+ n(v, {
431
+ field: i.value.profile.name,
432
+ "onUpdate:field": r[2] || (r[2] = (a) => i.value.profile.name = a),
433
+ label: "Name",
434
+ placeholder: "Not specified",
435
+ class: "mn-thin bg-grey pd-medium radius-small",
436
+ validation: f.organizationName
437
+ }, 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),
441
+ label: "Description",
442
+ placeholder: "Not specified",
443
+ class: "mn-semi bg-grey pd-medium radius-small",
444
+ disabled: "true",
445
+ validation: f.organizationName
446
+ }, 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),
452
+ label: "Instagram",
453
+ placeholder: "",
454
+ class: "mn-thin bg-grey pd-medium radius-small"
455
+ }, 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),
459
+ label: "Twitter",
460
+ placeholder: "",
461
+ class: "mn-thin bg-grey pd-medium radius-small"
462
+ }, 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),
466
+ label: "Facebook",
467
+ placeholder: "",
468
+ class: "mn-thin bg-grey pd-medium radius-small"
469
+ }, 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),
473
+ label: "Telegram",
474
+ placeholder: "",
475
+ class: "mn-semi bg-grey pd-medium radius-small"
476
+ }, 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),
481
+ label: "Phone",
482
+ placeholder: "Not specified",
483
+ class: "mn-thin bg-grey pd-medium mn-thin radius-small",
484
+ disabled: "true",
485
+ validation: f.organizationName
486
+ }, null, 8, ["field", "validation"]),
487
+ n(v, {
488
+ field: i.value.email,
489
+ "onUpdate:field": r[9] || (r[9] = (a) => i.value.email = a),
490
+ label: "Email",
491
+ placeholder: "Not specified",
492
+ class: "mn-semi bg-grey pd-medium radius-small",
493
+ disabled: !0,
494
+ validation: f.organizationName
495
+ }, null, 8, ["field", "validation"]),
496
+ n(R, {
497
+ submit: b,
498
+ callback: l,
499
+ class: "mn-thin"
500
+ }, {
501
+ default: p(() => [
502
+ O("Save")
503
+ ]),
504
+ _: 1
505
+ }),
506
+ n(R, {
507
+ submit: s,
508
+ callback: f.a = () => {
509
+ m(k).push({ name: "Sign In" });
510
+ },
511
+ class: "mn-thin bg-red t-white"
512
+ }, {
513
+ default: p(() => [
514
+ O("Delete Account")
515
+ ]),
516
+ _: 1
517
+ }, 8, ["callback"])
518
+ ]));
519
+ }
520
+ }, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
521
+ __proto__: null,
522
+ default: ze
523
+ }, Symbol.toStringTag, { value: "Module" })), ht = [
524
+ {
525
+ path: "profile/:_id",
526
+ name: "User Profile",
527
+ meta: {
528
+ title: {
529
+ en: "Profile",
530
+ ru: "Профиль"
531
+ }
532
+ },
533
+ component: () => Promise.resolve().then(() => Ue)
534
+ },
535
+ {
536
+ path: "profile/:_id/edit",
537
+ name: "User Edit Profile",
538
+ beforeEnter: [
539
+ te
540
+ ],
541
+ meta: {
542
+ title: {
543
+ en: "Edit Profile",
544
+ ru: "Редактировать Профиль"
545
+ }
546
+ },
547
+ component: () => Promise.resolve().then(() => Me)
548
+ },
549
+ {
550
+ path: "profile/:_id/blogposts",
551
+ name: "User Blogposts",
552
+ meta: {
553
+ title: {
554
+ en: "Posts",
555
+ ru: "Посты"
556
+ }
557
+ },
558
+ component: () => import(
559
+ /* webpackChunkName: "profile" */
560
+ "./ProfileBlogposts-f43cf32e.mjs"
561
+ )
562
+ },
563
+ {
564
+ path: "profile/:_id/events",
565
+ name: "User Events",
566
+ meta: {
567
+ title: {
568
+ en: "Events",
569
+ ru: "События"
570
+ }
571
+ },
572
+ component: () => import(
573
+ /* webpackChunkName: "profile" */
574
+ "./ProfileEvents-12f80fff.mjs"
575
+ )
576
+ },
577
+ {
578
+ path: "profile/:_id/organizations",
579
+ name: "User Organizations",
580
+ meta: {
581
+ title: {
582
+ en: "Groups",
583
+ ru: "Группы"
584
+ }
585
+ },
586
+ component: () => import(
587
+ /* webpackChunkName: "profile" */
588
+ "./ProfileOrganizations-bbc2cf40.mjs"
589
+ )
590
+ },
591
+ {
592
+ path: "profile/:_id/wallet",
593
+ name: "User Wallet",
594
+ meta: {
595
+ title: {
596
+ en: "Wallet",
597
+ ru: "Кошелек"
598
+ }
599
+ },
600
+ component: () => import(
601
+ /* webpackChunkName: "profile" */
602
+ "./Wallet-2043b611.mjs"
603
+ )
604
+ }
605
+ // ,{
606
+ // path: 'profile/:_id/likes',
607
+ // name: 'User Likes',
608
+ // meta: {
609
+ // title: {
610
+ // en: 'Likes',
611
+ // ru: 'Лайки'
612
+ // }
613
+ // },
614
+ // component: () => import(/* webpackChunkName: "profile" */ '../components/pages/ProfileLikes.vue'),
615
+ // },{
616
+ // path: 'profile/:_id/comments',
617
+ // name: 'User Comments',
618
+ // meta: {
619
+ // title: {
620
+ // en: 'Comments',
621
+ // ru: 'Комментарии'
622
+ // }
623
+ // },
624
+ // component: () => import(/* webpackChunkName: "profile" */ '../components/pages/ProfileComments.vue'),
625
+ // },
626
+ ];
627
+ export {
628
+ Pe as Profile,
629
+ ze as ProfileEdit,
630
+ ht as usersRoutes,
631
+ _t as usersStore
632
+ };