@ozdao/prometheus-framework 0.2.130 → 0.2.133

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. package/dist/auth.server.js +0 -1
  2. package/dist/auth.server.mjs +0 -1
  3. package/dist/community.server.js +172 -31
  4. package/dist/community.server.mjs +172 -31
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/files.server.js +38 -4
  8. package/dist/files.server.mjs +38 -4
  9. package/dist/gallery.server.js +1 -1
  10. package/dist/gallery.server.mjs +1 -1
  11. package/dist/main-CI9l9xMs.js +92 -0
  12. package/dist/main-DPg58GOU.mjs +14509 -0
  13. package/dist/main.css +1 -1
  14. package/dist/orders.server.js +1 -1
  15. package/dist/orders.server.mjs +1 -1
  16. package/dist/organizations.server.js +4 -3
  17. package/dist/organizations.server.mjs +4 -3
  18. package/dist/products.server.js +2 -1
  19. package/dist/products.server.mjs +2 -1
  20. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
  21. package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
  22. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
  24. package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
  25. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
  27. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
  29. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
  30. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
  31. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
  33. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
  35. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
  37. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
  38. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
  39. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
  41. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
  42. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
  43. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
  45. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
  47. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
  49. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
  51. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
  52. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
  53. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  54. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
  55. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
  57. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
  59. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
  60. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
  61. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
  62. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
  63. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  64. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
  65. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
  67. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +30 -30
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +30 -30
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +18 -18
  72. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
  74. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
  76. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +54 -71
  78. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
  80. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +86 -76
  82. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
  84. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +71 -80
  86. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
  87. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
  88. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
  90. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +27 -28
  92. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
  94. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
  96. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
  98. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
  99. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
  100. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
  102. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +119 -112
  104. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  105. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +22 -22
  113. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +27 -27
  115. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
  117. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +16 -16
  118. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
  120. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  124. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
  125. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +112 -85
  133. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -35
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +8 -8
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
  142. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
  144. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
  146. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  148. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  150. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
  154. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
  156. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +4 -4
  159. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
  161. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +29 -29
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
  164. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  165. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
  166. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
  167. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
  168. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
  169. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
  170. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
  171. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
  172. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
  173. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
  174. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +154 -77
  176. package/dist/prometheus-framework.cjs.js +1 -1
  177. package/dist/prometheus-framework.es.js +14 -14
  178. package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
  179. package/dist/queryProcessor-iewDZq_f.js +178 -0
  180. package/dist/style.css +1 -1
  181. package/dist/wallet.server.js +80 -27
  182. package/dist/wallet.server.mjs +80 -27
  183. package/dist/web-DZUec7pP.js +1 -0
  184. package/dist/web-krQQeSb6.mjs +54 -0
  185. package/package.json +1 -1
  186. package/src/components/Address/Address.vue +1 -1
  187. package/src/components/Chips/Chips.vue +1 -1
  188. package/src/components/Completion/Completion.vue +1 -4
  189. package/src/components/DatePicker/Calendar.vue +1 -1
  190. package/src/components/Draggable/Draggable.vue +113 -0
  191. package/src/components/Dropdown/Dropdown.vue +1 -1
  192. package/src/components/Feed/Feed.vue +18 -12
  193. package/src/components/FieldBig/FieldBig.vue +11 -1
  194. package/src/components/FieldPhone/FieldPhone.vue +1 -1
  195. package/src/components/FieldTags/FieldTags.vue +2 -1
  196. package/src/components/FieldTags/tag-input.vue +1 -1
  197. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  198. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  199. package/src/components/Shader/Shader.vue +2 -2
  200. package/src/components/Slider/Slider.vue +1 -5
  201. package/src/components/Spoiler/Spoiler.vue +1 -1
  202. package/src/components/Text/Text.vue +1 -4
  203. package/src/components/Tooltip/Tooltip.vue +1 -1
  204. package/src/components/Upload/Upload.vue +5 -3
  205. package/src/modules/auth/controllers/auth.controller.js +0 -2
  206. package/src/modules/auth/store/auth.js +2 -2
  207. package/src/modules/community/DOCUMENTATION.MD +4 -0
  208. package/src/modules/community/community.client.js +0 -2
  209. package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
  210. package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
  211. package/src/modules/community/components/layouts/Community.vue +15 -11
  212. package/src/modules/community/components/pages/Blog.vue +25 -32
  213. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
  214. package/src/modules/community/components/sections/Comment.vue +123 -0
  215. package/src/modules/community/components/sections/Comments.vue +90 -19
  216. package/src/modules/community/components/sections/HotPosts.vue +3 -6
  217. package/src/modules/community/controllers/blog.controller.js +1 -1
  218. package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
  219. package/src/modules/community/controllers/comments.controller.js +187 -38
  220. package/src/modules/community/controllers/comments.controller.populate.js +180 -0
  221. package/src/modules/community/models/comment.model.js +15 -0
  222. package/src/modules/community/store/blogposts.js +20 -2
  223. package/src/modules/constructor/components/elements/Audio.vue +28 -40
  224. package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
  225. package/src/modules/constructor/components/elements/Video.vue +10 -18
  226. package/src/modules/constructor/components/sections/Constructor.vue +54 -47
  227. package/src/modules/files/controllers/files.controller.js +2 -0
  228. package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
  229. package/src/modules/files/routes/files.routes.js +8 -0
  230. package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
  231. package/src/modules/globals/components/partials/Header.vue +12 -7
  232. package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
  233. package/src/modules/icons/logos/Logotype.vue +8 -6
  234. package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
  235. package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
  236. package/src/modules/marketplace/store/marketplace.js +2 -8
  237. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  238. package/src/modules/organizations/components/pages/Members.vue +1 -1
  239. package/src/modules/organizations/components/pages/Organization.vue +33 -5
  240. package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
  241. package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
  242. package/src/modules/organizations/components/sections/Publics.vue +2 -2
  243. package/src/modules/organizations/controllers/memberships.controller.js +2 -3
  244. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  245. package/src/modules/organizations/store/memberships.js +4 -1
  246. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  247. package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
  248. package/src/modules/products/models/product.model.js +2 -1
  249. package/src/modules/spots/components/layouts/Spots.vue +0 -3
  250. package/src/modules/spots/components/pages/Map.vue +13 -3
  251. package/src/modules/users/components/blocks/CardUser.vue +2 -2
  252. package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
  253. package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
  254. package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
  255. package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
  256. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
  257. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
  258. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
  259. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
  260. package/src/modules/wallet/localization/Wallet.json +22 -0
  261. package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
  262. package/src/styles/base/all.scss +16 -26
  263. package/src/styles/config.scss +70 -34
  264. package/src/styles/typography.scss +5 -5
  265. package/src/modules/community/components/sections/Feed.vue +0 -148
  266. package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
  267. package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -1,54 +1,55 @@
1
- import { ref as g, onMounted as $, watch as z, resolveComponent as x, openBlock as a, createElementBlock as p, createVNode as t, createElementVNode as C, Transition as c, withCtx as o, createBlock as l, unref as u, createCommentVNode as s, createTextVNode as f, Fragment as B, renderList as N } from "vue";
1
+ import { ref as h, onMounted as C, watch as B, resolveComponent as N, openBlock as t, createElementBlock as d, createVNode as r, createElementVNode as P, Transition as _, withCtx as a, createBlock as l, unref as m, Fragment as y, renderList as k, createCommentVNode as n, createTextVNode as b } from "vue";
2
2
  import { useRouter as V, useRoute as q } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  /* empty css */
6
- import O from "../../../../components/Tab/Tab.vue2.js";
7
- import A from "../../../../components/Block/Block.vue.js";
8
- import E from "../../../../components/Feed/Feed.vue.js";
6
+ import M from "../../../../components/Tab/Tab.vue2.js";
7
+ import O from "../../../../components/Block/Block.vue.js";
8
+ import w from "../../../../components/Feed/Feed.vue.js";
9
+ import A from "../../../community/components/blocks/CardBlogpost.vue.js";
9
10
  /* empty css */
10
11
  import "../../../../components/Menu/MenuItem.vue.js";
11
12
  /* empty css */
12
- import M from "../../../events/components/sections/Feed.vue.js";
13
- import P from "../../../community/components/sections/Feed.vue.js";
14
- import S from "../../../spots/components/blocks/CardSpot.vue.js";
15
- import F from "../sections/DetailsTab.vue.js";
16
- import L from "../../../products/components/pages/Products.vue.js";
17
- import { state as n } from "../../../auth/store/auth.js";
18
- import { actions as R, state as i } from "../../store/organizations.js";
13
+ import E from "../../../events/components/sections/Feed.vue.js";
14
+ import F from "../../../spots/components/blocks/CardSpot.vue.js";
15
+ import L from "../sections/DetailsTab.vue.js";
16
+ import S from "../../../products/components/pages/Products.vue.js";
17
+ import { state as i } from "../../../auth/store/auth.js";
18
+ import { actions as R, state as u } from "../../store/organizations.js";
19
19
  import { actions as T } from "../../store/memberships.js";
20
20
  import "../../store/departments.js";
21
- import { actions as D } from "../../../spots/store/spots.js";
21
+ import { read as D } from "../../../community/store/blogposts.js";
22
+ import { actions as G } from "../../../spots/store/spots.js";
22
23
  /* empty css */
23
- const G = {
24
+ const I = {
24
25
  key: 0,
25
26
  class: "pd-thin for-transition w-100"
26
- }, I = { class: "pos-relative" }, U = { key: 0 }, _e = {
27
+ }, U = { class: "pos-relative" }, j = { key: 0 }, be = {
27
28
  __name: "Organization",
28
- setup(j) {
29
- const h = V(), e = q();
30
- let y = e.query.tab ? e.query.tab : "products";
31
- const b = g(null);
32
- $(async () => {
33
- b.value = await R.read({
29
+ setup(H) {
30
+ const $ = V(), e = q();
31
+ let x = e.query.tab ? e.query.tab : "products";
32
+ const g = h(null);
33
+ C(async () => {
34
+ g.value = await R.read({
34
35
  _id: e.params._id,
35
- user: n.user._id
36
+ user: i.user._id
36
37
  }), await T.read({ target: e.params._id });
37
38
  });
38
- const r = g(y);
39
- return e.query.tab = r.value, z(r, (v) => {
40
- h.replace({ query: null });
41
- }), (v, d) => {
42
- const _ = x("router-link");
43
- return b.value ? (a(), p("div", G, [
44
- t(F, {
45
- organization: i.current,
46
- user: n.user,
39
+ const o = h(x);
40
+ return e.query.tab = o.value, B(o, (v) => {
41
+ $.replace({ query: null });
42
+ }), (v, p) => {
43
+ const f = N("router-link");
44
+ return g.value ? (t(), d("div", I, [
45
+ r(L, {
46
+ organization: u.current,
47
+ user: i.user,
47
48
  class: "mn-b-semi"
48
49
  }, null, 8, ["organization", "user"]),
49
- t(O, {
50
- selected: r.value,
51
- "onUpdate:selected": d[0] || (d[0] = (m) => r.value = m),
50
+ r(M, {
51
+ selected: o.value,
52
+ "onUpdate:selected": p[0] || (p[0] = (s) => o.value = s),
52
53
  tabs: [
53
54
  { name: "Community", value: "community" },
54
55
  { name: "Menu", value: "products" },
@@ -57,92 +58,118 @@ const G = {
57
58
  ],
58
59
  class: "mn-b-small o-hidden h5 radius-big bg-light"
59
60
  }, null, 8, ["selected"]),
60
- C("div", I, [
61
- t(c, { name: "slide-fade" }, {
62
- default: o(() => [
63
- r.value === "community" ? (a(), l(P, {
61
+ P("div", U, [
62
+ r(_, { name: "slide-fade" }, {
63
+ default: a(() => [
64
+ o.value === "community" ? (t(), l(w, {
64
65
  key: 0,
65
- user: n.user._id,
66
- owner: u(e).params._id
67
- }, null, 8, ["user", "owner"])) : s("", !0)
66
+ showLoadMore: !1,
67
+ states: {
68
+ empty: {
69
+ title: "No Blog Posts Found",
70
+ description: "Currently, there are no posts available in this blog. Please check back later."
71
+ }
72
+ },
73
+ store: {
74
+ read: (s) => D(s)
75
+ },
76
+ options: {
77
+ status: "published",
78
+ user: i.user._id,
79
+ owner: m(e).params._id
80
+ },
81
+ class: "row-1 gap-thin"
82
+ }, {
83
+ default: a(({
84
+ items: s
85
+ }) => [
86
+ (t(!0), d(y, null, k(s, (c) => (t(), l(A, {
87
+ key: c._id,
88
+ blogpost: c,
89
+ user: i.user._id,
90
+ class: "h-max-40r mn-b-medium"
91
+ }, null, 8, ["blogpost", "user"]))), 128))
92
+ ]),
93
+ _: 1
94
+ }, 8, ["store", "options"])) : n("", !0)
68
95
  ]),
69
96
  _: 1
70
97
  }),
71
- t(c, { name: "slide-fade" }, {
72
- default: o(() => [
73
- r.value === "events" ? (a(), l(M, {
98
+ r(_, { name: "slide-fade" }, {
99
+ default: a(() => [
100
+ o.value === "events" ? (t(), l(E, {
74
101
  key: 0,
75
- user: n.user._id,
76
- owner: u(e).params._id,
102
+ user: i.user._id,
103
+ owner: m(e).params._id,
77
104
  sortOrder: "desc",
78
105
  sortParam: "date.start"
79
- }, null, 8, ["user", "owner"])) : s("", !0)
106
+ }, null, 8, ["user", "owner"])) : n("", !0)
80
107
  ]),
81
108
  _: 1
82
109
  }),
83
- r.value === "products" && n.user._id === i.current.owner ? (a(), l(A, {
110
+ o.value === "products" && i.user._id === u.current.owner ? (t(), l(O, {
84
111
  key: 0,
85
112
  class: "flex-nowrap gap-thin mn-b-small flex"
86
113
  }, {
87
- default: o(() => [
88
- t(_, {
114
+ default: a(() => [
115
+ r(f, {
89
116
  class: "bg-black t-white uppercase t-semi pd-thin radius-extra",
90
117
  to: {
91
118
  name: "ProductAdd",
92
119
  params: {
93
- _id: u(e).params._id
120
+ _id: m(e).params._id
94
121
  }
95
122
  }
96
123
  }, {
97
- default: o(() => [
98
- f(" Add Product ")
124
+ default: a(() => [
125
+ b(" Add Product ")
99
126
  ]),
100
127
  _: 1
101
128
  }, 8, ["to"]),
102
- t(_, {
129
+ r(f, {
103
130
  class: "uppercase t-semi pd-thin radius-extra",
104
131
  to: {
105
132
  name: "Leftovers",
106
133
  params: {
107
- _id: u(e).params._id
134
+ _id: m(e).params._id
108
135
  }
109
136
  }
110
137
  }, {
111
- default: o(() => [
112
- f(" Change Invetory ")
138
+ default: a(() => [
139
+ b(" Change Invetory ")
113
140
  ]),
114
141
  _: 1
115
142
  }, 8, ["to"]),
116
- t(_, {
143
+ r(f, {
117
144
  class: "d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",
118
145
  to: {
119
146
  name: "Backoffice",
120
147
  params: {
121
- _id: u(e).params._id
148
+ _id: m(e).params._id
122
149
  }
123
150
  }
124
151
  }, {
125
- default: o(() => [
126
- f(" Go to Backoffice ")
152
+ default: a(() => [
153
+ b(" Go to Backoffice ")
127
154
  ]),
128
155
  _: 1
129
156
  }, 8, ["to"])
130
157
  ]),
131
158
  _: 1
132
- })) : s("", !0),
133
- t(c, { name: "slide-fade" }, {
134
- default: o(() => [
135
- r.value === "products" ? (a(), l(L, {
159
+ })) : n("", !0),
160
+ r(_, { name: "slide-fade" }, {
161
+ default: a(() => [
162
+ o.value === "products" ? (t(), l(S, {
136
163
  key: 0,
137
- organization: i.current
138
- }, null, 8, ["organization"])) : s("", !0)
164
+ organization: u.current
165
+ }, null, 8, ["organization"])) : n("", !0)
139
166
  ]),
140
167
  _: 1
141
168
  }),
142
- t(c, { name: "slide-fade" }, {
143
- default: o(() => [
144
- r.value === "spots" ? (a(), p("div", U, [
145
- t(E, {
169
+ r(_, { name: "slide-fade" }, {
170
+ default: a(() => [
171
+ o.value === "spots" ? (t(), d("div", j, [
172
+ r(w, {
146
173
  states: {
147
174
  empty: {
148
175
  title: "No Spots Found",
@@ -150,42 +177,42 @@ const G = {
150
177
  }
151
178
  },
152
179
  store: {
153
- read: (m) => D.read(u(e).params._id),
154
- state: i
180
+ read: (s) => G.read(m(e).params._id),
181
+ state: u
155
182
  },
156
183
  options: {
157
- user: n.user._id,
184
+ user: i.user._id,
158
185
  sort: "numberOfMemberships",
159
186
  contain: ["blogposts"],
160
187
  limit: 10
161
188
  }
162
189
  }, {
163
- default: o(({
164
- items: m
190
+ default: a(({
191
+ items: s
165
192
  }) => [
166
- (a(!0), p(B, null, N(m, (k, w) => (a(), l(S, {
167
- key: w,
168
- spot: k,
169
- organization: i.current,
193
+ (t(!0), d(y, null, k(s, (c, z) => (t(), l(F, {
194
+ key: z,
195
+ spot: c,
196
+ organization: u.current,
170
197
  class: "radius-big bg-light mn-b-thin"
171
198
  }, null, 8, ["spot", "organization"]))), 128))
172
199
  ]),
173
200
  _: 1
174
201
  }, 8, ["store", "options"]),
175
- n.user._id === i.current.owner ? (a(), p("button", {
202
+ i.user._id === u.current.owner ? (t(), d("button", {
176
203
  key: 0,
177
- onClick: d[1] || (d[1] = (m) => v.$router.push(`/spots/${i.current._id}/spots/create`)),
204
+ onClick: p[1] || (p[1] = (s) => v.$router.push(`/spots/${u.current._id}/spots/create`)),
178
205
  class: "mn-b-thin bg-main button w-100"
179
- }, " Add spot ")) : s("", !0)
180
- ])) : s("", !0)
206
+ }, " Add spot ")) : n("", !0)
207
+ ])) : n("", !0)
181
208
  ]),
182
209
  _: 1
183
210
  })
184
211
  ])
185
- ])) : s("", !0);
212
+ ])) : n("", !0);
186
213
  };
187
214
  }
188
215
  };
189
216
  export {
190
- _e as default
217
+ be as default
191
218
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const h=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const V={class:"for-transition pd-thin"},N=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),_=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),q=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),y={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},v=t.createElementVNode("h4",null,"Upload photo",-1),w=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),x=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),U={__name:"OrganizationEdit",async setup(T){let i,o;const s=n.useRoute(),d=n.useRouter();e.actions.reset(),s.params._id&&([i,o]=t.withAsyncContext(()=>e.actions.read({_id:s.params._id})),await i,o());const u=t.computed(()=>e.state.current);async function c(){s.params._id?await e.actions.update(s.params._id,u.value):await e.actions.create(e.state.current,h.state.user._id)}function m(){d.replace({name:"Organization",params:{_id:e.state.current._id}})}return(k,a)=>(t.openBlock(),t.createElementBlock("div",V,[N,_,t.createVNode(f.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=l=>e.state.current.types=l),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-light pd-medium radius-small"},null,8,["modelValue"]),q,t.createElementVNode("div",y,[t.createVNode(g.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=l=>e.state.current.profile.photo=l),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),v]),t.createVNode(r.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=l=>e.state.current.profile.name=l),placeholder:"Name of organization",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=l=>e.state.current.profile.description=l),placeholder:"Brief description of your group",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(p.default,{onTagsChanged:a[4]||(a[4]=l=>e.state.current.profile.tags=l),tags:e.state.current.profile.tags},null,8,["tags"]),w,x,t.createVNode(r.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=l=>e.state.current.socials.instagram=l),label:"Instagram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=l=>e.state.current.socials.twitter=l),label:"Twitter",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=l=>e.state.current.socials.facebook=l),label:"Facebook",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=l=>e.state.current.socials.telegram=l),label:"Telegram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.youtube,"onUpdate:field":a[9]||(a[9]=l=>e.state.current.socials.youtube=l),label:"Telegram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(b.default,{submit:c,callback:m,class:"bg-main w-100 mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=U;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),i=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const c=require("../../../../components/FieldTags/BlockTags.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const m=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),p=require("../../../../components/UploadImage/UploadImage.vue.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const g=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const b={class:"for-transition pd-thin"},h=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),V=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),N=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},_=t.createElementVNode("h4",null,"Upload photo",-1),y=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),v=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),w={__name:"OrganizationEdit",setup(U){const s=i.useRoute(),o=i.useRouter();e.actions.reset(),t.onMounted(async()=>{s.params._id&&await e.actions.read({_id:s.params._id})});const n=t.computed(()=>e.state.current);async function d(){s.params._id?await e.actions.update(s.params._id,n.value):await e.actions.create(e.state.current,g.state.user._id)}function u(){o.replace({name:"Organization",params:{_id:e.state.current._id}})}return(x,a)=>(t.openBlock(),t.createElementBlock("div",b,[h,V,t.createVNode(m.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=l=>e.state.current.types=l),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-light pd-medium radius-small"},null,8,["modelValue"]),N,t.createElementVNode("div",q,[t.createVNode(p.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=l=>e.state.current.profile.photo=l),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),_]),t.createVNode(r.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=l=>e.state.current.profile.name=l),placeholder:"Name of organization",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=l=>e.state.current.profile.description=l),placeholder:"Brief description of your group",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(c.default,{onTagsChanged:a[4]||(a[4]=l=>e.state.current.profile.tags=l),tags:e.state.current.profile.tags},null,8,["tags"]),y,v,t.createVNode(r.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=l=>e.state.current.socials.instagram=l),label:"Instagram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=l=>e.state.current.socials.twitter=l),label:"Twitter",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=l=>e.state.current.socials.facebook=l),label:"Facebook",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=l=>e.state.current.socials.telegram=l),label:"Telegram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.youtube,"onUpdate:field":a[9]||(a[9]=l=>e.state.current.socials.youtube=l),label:"Telegram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(f.default,{submit:d,callback:u,class:"bg-main w-100 mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=w;
@@ -1,36 +1,37 @@
1
- import { withAsyncContext as f, computed as g, openBlock as h, createElementBlock as b, createVNode as i, createElementVNode as r, withCtx as _, createTextVNode as y } from "vue";
2
- import { useRoute as w, useRouter as x } from "vue-router";
1
+ import { onMounted as p, computed as c, openBlock as f, createElementBlock as g, createVNode as i, createElementVNode as r, withCtx as b, createTextVNode as h } from "vue";
2
+ import { useRoute as _, useRouter as y } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  /* empty css */
6
- import v from "../../../../components/FieldTags/BlockTags.vue.js";
6
+ import w from "../../../../components/FieldTags/BlockTags.vue.js";
7
7
  /* empty css */
8
8
  import o from "../../../../components/Field/Field.vue2.js";
9
9
  /* empty css */
10
- import U from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
- import k from "../../../../components/UploadImage/UploadImage.vue.js";
12
- import T from "../../../../components/Button/Button.vue2.js";
13
- /* empty css */
14
- import { state as z } from "../../../auth/store/auth.js";
10
+ import x from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
+ import v from "../../../../components/UploadImage/UploadImage.vue.js";
12
+ import U from "../../../../components/Button/Button.vue2.js";
13
+ /* empty css */
14
+ import { state as k } from "../../../auth/store/auth.js";
15
15
  import { actions as s, state as e } from "../../store/organizations.js";
16
16
  import "../../store/memberships.js";
17
- const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Type of group", -1), N = /* @__PURE__ */ r("p", { class: "mn-b-thin" }, "Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.", -1), S = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Profile", -1), $ = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, B = /* @__PURE__ */ r("h4", null, "Upload photo", -1), C = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Socials", -1), E = /* @__PURE__ */ r("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Z = {
17
+ const T = { class: "for-transition pd-thin" }, z = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Type of group", -1), V = /* @__PURE__ */ r("p", { class: "mn-b-thin" }, "Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.", -1), P = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Profile", -1), N = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, S = /* @__PURE__ */ r("h4", null, "Upload photo", -1), $ = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Socials", -1), B = /* @__PURE__ */ r("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), X = {
18
18
  __name: "OrganizationEdit",
19
- async setup(F) {
20
- let n, d;
21
- const a = w(), m = x();
22
- s.reset(), a.params._id && ([n, d] = f(() => s.read({ _id: a.params._id })), await n, d());
23
- const u = g(() => e.current);
24
- async function p() {
25
- a.params._id ? await s.update(a.params._id, u.value) : await s.create(e.current, z.user._id);
19
+ setup(E) {
20
+ const a = _(), n = y();
21
+ s.reset(), p(async () => {
22
+ a.params._id && await s.read({ _id: a.params._id });
23
+ });
24
+ const d = c(() => e.current);
25
+ async function m() {
26
+ a.params._id ? await s.update(a.params._id, d.value) : await s.create(e.current, k.user._id);
26
27
  }
27
- function c() {
28
- m.replace({ name: "Organization", params: { _id: e.current._id } });
28
+ function u() {
29
+ n.replace({ name: "Organization", params: { _id: e.current._id } });
29
30
  }
30
- return (I, t) => (h(), b("div", V, [
31
- P,
32
- N,
33
- i(U, {
31
+ return (C, t) => (f(), g("div", T, [
32
+ z,
33
+ V,
34
+ i(x, {
34
35
  modelValue: e.current.types,
35
36
  "onUpdate:modelValue": t[0] || (t[0] = (l) => e.current.types = l),
36
37
  options: ["public", "exclusive", "hidden"],
@@ -39,15 +40,15 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ r("h3", { cla
39
40
  placeholder: "Type to search or add type of organization",
40
41
  class: "mn-b-semi bg-light pd-medium radius-small"
41
42
  }, null, 8, ["modelValue"]),
42
- S,
43
- r("div", $, [
44
- i(k, {
43
+ P,
44
+ r("div", N, [
45
+ i(v, {
45
46
  photo: e.current.profile.photo,
46
47
  "onUpdate:photo": t[1] || (t[1] = (l) => e.current.profile.photo = l),
47
48
  uploadPath: "organizations/" + e.current._id + "/avatars",
48
49
  class: "h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"
49
50
  }, null, 8, ["photo", "uploadPath"]),
50
- B
51
+ S
51
52
  ]),
52
53
  i(o, {
53
54
  field: e.current.profile.name,
@@ -61,12 +62,12 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ r("h3", { cla
61
62
  placeholder: "Brief description of your group",
62
63
  class: "mn-b-thin bg-light pd-medium radius-small"
63
64
  }, null, 8, ["field"]),
64
- i(v, {
65
+ i(w, {
65
66
  onTagsChanged: t[4] || (t[4] = (l) => e.current.profile.tags = l),
66
67
  tags: e.current.profile.tags
67
68
  }, null, 8, ["tags"]),
68
- C,
69
- E,
69
+ $,
70
+ B,
70
71
  i(o, {
71
72
  field: e.current.socials.instagram,
72
73
  "onUpdate:field": t[5] || (t[5] = (l) => e.current.socials.instagram = l),
@@ -102,13 +103,13 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ r("h3", { cla
102
103
  placeholder: "",
103
104
  class: "mn-b-thin bg-light pd-medium radius-small"
104
105
  }, null, 8, ["field"]),
105
- i(T, {
106
- submit: p,
107
- callback: c,
106
+ i(U, {
107
+ submit: m,
108
+ callback: u,
108
109
  class: "bg-main w-100 mn-b-thin"
109
110
  }, {
110
- default: _(() => [
111
- y("Save")
111
+ default: b(() => [
112
+ h("Save")
112
113
  ]),
113
114
  _: 1
114
115
  })
@@ -116,5 +117,5 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ r("h3", { cla
116
117
  }
117
118
  };
118
119
  export {
119
- Z as default
120
+ X as default
120
121
  };
@@ -12,7 +12,7 @@ import R from "../blocks/Socials.vue.js";
12
12
  import S from "../../../reports/components/sections/FormReport.vue.js";
13
13
  import { state as U } from "../../store/organizations.js";
14
14
  import { mutations as v } from "../../store/memberships.js";
15
- const C = { class: "flex-center flex flex-column t-center pd-medium radius-big bg-light" }, M = { class: "bg-black pd-thin radius-small" }, V = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), j = ["src"], D = { class: "mn-b-thin" }, L = { class: "flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max" }, N = { class: "mn-t-thin p-medium t-medium uppercase mn-b-thin" }, F = { class: "w-max-50r mn-t-regular mn-b-medium p-big" }, P = {
15
+ const M = { class: "flex-center flex flex-column t-center pd-medium radius-big bg-light" }, V = { class: "bg-black pd-thin radius-small" }, j = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), C = ["src"], L = { class: "mn-b-thin" }, N = { class: "flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max" }, D = { class: "mn-t-thin p-medium t-medium uppercase mn-b-thin" }, F = { class: "w-max-50r mn-t-regular mn-b-medium p-big" }, P = {
16
16
  key: 5,
17
17
  class: "mn-t-small mn-b-thin"
18
18
  }, tt = {
@@ -29,7 +29,7 @@ const C = { class: "flex-center flex flex-column t-center pd-medium radius-big b
29
29
  default: c(() => {
30
30
  var l, m;
31
31
  return [
32
- n("section", C, [
32
+ n("section", M, [
33
33
  t.user._id !== t.organization.owner ? (e(), r(w, {
34
34
  key: 0,
35
35
  label: { component: B, class: "i-regular t-transp" },
@@ -37,7 +37,7 @@ const C = { class: "flex-center flex flex-column t-center pd-medium radius-big b
37
37
  class: "cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra"
38
38
  }, {
39
39
  default: c(() => [
40
- n("section", M, [
40
+ n("section", V, [
41
41
  u(S, {
42
42
  user: t.user._id,
43
43
  type: "organization",
@@ -46,7 +46,7 @@ const C = { class: "flex-center flex flex-column t-center pd-medium radius-big b
46
46
  class: "w-100"
47
47
  }, {
48
48
  default: c(() => [
49
- V
49
+ j
50
50
  ]),
51
51
  _: 1
52
52
  }, 8, ["user", "target"]),
@@ -79,14 +79,14 @@ const C = { class: "flex-center flex flex-column t-center pd-medium radius-big b
79
79
  key: 2,
80
80
  src: (s.FILE_SERVER_URL || "") + t.organization.profile.photo,
81
81
  class: "radius-big bg-light flex-center flex mn-b-small w-8r"
82
- }, null, 8, j)) : (e(), r(E, {
82
+ }, null, 8, C)) : (e(), r(E, {
83
83
  key: 3,
84
84
  class: "radius-medium mn-b-small i-extra"
85
85
  })),
86
- n("h1", D, f(t.organization.profile.name), 1),
87
- n("div", L, [
86
+ n("h1", L, f(t.organization.profile.name), 1),
87
+ n("div", N, [
88
88
  u($, { class: "i-medium mn-r-micro t-transp" }),
89
- n("p", N, f(t.organization.numberOfSubscribers) + " followers", 1),
89
+ n("p", D, f(t.organization.numberOfSubscribers) + " followers", 1),
90
90
  t.user._id && h(d).params._id && h(d).params._id !== t.user._id && t.organization.owner !== t.user._id ? (e(), r(z, {
91
91
  key: 0,
92
92
  user: t.user._id,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");;/* empty css */;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,q)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:x=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");;/* empty css */;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,q)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:x=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);exports.default=g;
@@ -2,7 +2,7 @@ import { ref as r, watchEffect as y, resolveComponent as P, openBlock as t, crea
2
2
  import { useRouter as I, useRoute as g } from "vue-router";
3
3
  import D from "../../../../components/Field/Field.vue2.js";
4
4
  import "vue-i18n";
5
- /* empty css */
5
+ /* empty css */
6
6
  /* empty css */
7
7
  import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
8
8
  /* empty css */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");;/* empty css */require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");;/* empty css */;/* empty css */const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let p=n.query.tab?n.query.tab:"details";const i=e.ref(p);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(b.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(m.default,{key:l._id,organization:l,user:q.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");;/* empty css */require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");;/* empty css */;/* empty css */const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let p=n.query.tab?n.query.tab:"details";const i=e.ref(p);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(b.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(m.default,{key:l._id,organization:l,user:q.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
@@ -11,7 +11,7 @@ import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
11
11
  import { state as k } from "../../../auth/store/auth.js";
12
12
  import "../../store/memberships.js";
13
13
  import "vue-i18n";
14
- /* empty css */
14
+ /* empty css */
15
15
  import "../../../reports/store/reports.js";
16
16
  import { actions as q } from "../../store/organizations.js";
17
17
  import $ from "../blocks/CardOrganization.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../blocks/CardOrganization.vue.cjs"),c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),s=require("../../../auth/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");;/* empty css */const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},_={__name:"Publics",setup(g){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:s.state.user._id,sortParam:"profile.tags",limit:10})});const i=({membership:n,status:o,target:r},a,u)=>{m.mutations.handleMembershipUpdate(organizations.state.current,n,o,r,a,u)};return(n,o)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-light pd-medium"})):(e.openBlock(),e.createElementBlock("div",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(r,a)=>(e.openBlock(),e.createBlock(l.default,{key:r._id,organization:r,user:s.state.user,onUpdateMembership:i,class:"w-max-20r radius-big"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../blocks/CardOrganization.vue.cjs"),c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),i=require("../../../auth/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");;/* empty css */const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},b={__name:"Publics",setup(g){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:i.state.user._id,sortParam:"profile.tags",limit:10})});const u=({membership:s,status:r,target:n},a,o)=>{m.mutations.handleMembershipUpdate(t.value,s,r,n,a,o)};return(s,r)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-light pd-medium"})):(e.openBlock(),e.createElementBlock("div",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(n,a)=>(e.openBlock(),e.createBlock(l.default,{key:n._id,organization:n,user:i.state.user,onUpdateMembership:r[0]||(r[0]=o=>u(o,"isSubscriber","numberOfSubscribers")),class:"w-max-20r radius-big"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=b;