@ozdao/prometheus-framework 0.2.47 → 0.2.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (492) hide show
  1. package/dist/auth.server.js +27 -25
  2. package/dist/auth.server.mjs +27 -25
  3. package/dist/community.server.js +1 -1
  4. package/dist/community.server.mjs +1 -1
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/files.server.js +1 -1
  8. package/dist/files.server.mjs +1 -1
  9. package/dist/gallery.server.js +1 -1
  10. package/dist/gallery.server.mjs +1 -1
  11. package/dist/index-3981e903.mjs +217 -0
  12. package/dist/index-4eecfdb9.js +216 -0
  13. package/dist/main-203b36b6.mjs +13628 -0
  14. package/dist/main-610fd21a.mjs +13628 -0
  15. package/dist/main-669fac33.js +91 -0
  16. package/dist/main-_b1_i8mt.mjs +13606 -0
  17. package/dist/main-a7ae4ce5.js +91 -0
  18. package/dist/main-uiQFxEks.js +91 -0
  19. package/dist/main.css +1 -1
  20. package/dist/middlewares.server.js +1 -1
  21. package/dist/middlewares.server.mjs +1 -1
  22. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  23. package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
  24. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  25. package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
  26. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  27. package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
  28. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  29. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
  30. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
  31. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  32. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
  33. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
  34. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
  35. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  36. package/dist/node_modules/ethereum-cryptography/esm/utils.js +4 -3
  37. package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -3
  38. package/dist/node_modules/vue-select/dist/vue-select.es.js +49 -645
  39. package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
  40. package/dist/node_modules/vue3-carousel/dist/carousel.css.js +4 -1
  41. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  42. package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
  43. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
  44. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
  45. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  46. package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
  47. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
  48. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
  49. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  50. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
  51. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
  52. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
  53. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
  54. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
  55. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  56. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
  57. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  58. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
  59. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  60. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
  61. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  62. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
  63. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  64. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
  65. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
  66. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
  67. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  68. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
  69. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  70. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
  71. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
  72. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
  73. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  74. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
  75. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  76. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
  77. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  78. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
  79. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  80. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
  81. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  82. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
  83. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
  84. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
  85. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  86. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
  87. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  88. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
  89. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  90. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
  91. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  92. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
  93. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
  94. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
  95. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
  96. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
  97. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  98. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
  99. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  100. package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
  101. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
  102. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
  103. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
  104. package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
  105. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
  106. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
  107. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
  108. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
  109. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
  110. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
  111. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
  112. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
  113. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
  114. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
  115. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
  116. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
  117. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  118. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
  119. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
  120. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
  121. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
  122. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
  123. package/dist/organizations.server.js +13 -27
  124. package/dist/organizations.server.mjs +13 -27
  125. package/dist/products.server.js +95 -15
  126. package/dist/products.server.mjs +95 -15
  127. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/Address/Address.vue.js +4 -1
  129. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +4 -1
  131. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/Button/Button.vue.js +4 -1
  133. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +4 -1
  135. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -1
  137. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  138. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +4 -1
  139. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  140. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +4 -1
  141. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/Field/Field.vue.js +4 -1
  143. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  145. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +4 -1
  147. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
  149. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +4 -1
  151. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +4 -1
  153. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +4 -1
  155. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +4 -1
  157. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +4 -1
  159. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +4 -1
  161. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +4 -1
  163. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Map/Map.vue.js +4 -1
  165. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
  167. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -1
  169. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -95
  171. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  172. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +97 -1
  173. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +6 -6
  175. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  176. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +4 -1
  177. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +4 -1
  179. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +4 -1
  181. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  182. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -1
  183. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  185. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  186. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +4 -1
  187. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  189. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  191. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +4 -1
  193. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +42 -30
  195. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +4 -1
  197. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +4 -1
  199. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +4 -1
  201. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +4 -1
  203. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +4 -1
  205. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/auth/store/auth.js +47 -46
  207. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/auth/store/invites.js +5 -5
  209. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  211. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +4 -1
  213. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  215. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  217. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +4 -1
  219. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  221. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  223. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +4 -1
  225. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +4 -1
  227. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  229. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  231. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +4 -1
  233. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  235. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  236. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
  237. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  238. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  239. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +4 -1
  243. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +4 -4
  247. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +4 -1
  249. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  251. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +4 -1
  253. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +4 -1
  255. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +4 -1
  257. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  259. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  261. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  263. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +4 -1
  265. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  267. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +4 -1
  269. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  271. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/globals/store/globals.js +22 -21
  273. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +4 -1
  275. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  277. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +4 -1
  279. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
  281. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  283. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  285. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -1
  287. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +4 -1
  289. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  291. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  293. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +17 -17
  295. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +4 -1
  297. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  299. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +50 -43
  301. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +4 -1
  303. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +4 -1
  305. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +4 -1
  307. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +47 -15
  309. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +4 -1
  311. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +38 -37
  313. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +249 -61
  315. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +4 -1
  317. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +78 -45
  319. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +161 -86
  321. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +4 -1
  323. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  325. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  327. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +4 -1
  329. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  331. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +52 -54
  333. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  335. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +19 -25
  337. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +4 -1
  339. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +4 -1
  341. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +4 -1
  343. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -46
  345. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +35 -31
  347. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  349. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +30 -28
  351. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  353. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  354. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +4 -1
  355. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +4 -1
  357. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +17 -17
  359. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +50 -47
  361. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +4 -1
  363. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +4 -1
  365. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  367. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +4 -1
  369. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +4 -1
  371. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +4 -1
  373. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +4 -1
  375. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +4 -1
  377. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  379. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -1
  381. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +4 -1
  383. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  384. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +33 -28
  385. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  386. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +4 -1
  387. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  388. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +123 -113
  389. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +4 -1
  391. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +4 -1
  393. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  395. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  396. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +4 -1
  397. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -1
  398. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +4 -1
  399. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -1
  401. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  403. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  404. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  405. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  406. package/dist/prometheus-framework/src/modules/products/store/products.js +2 -2
  407. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  408. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  409. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  410. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  411. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  412. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +4 -1
  413. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  414. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  415. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  416. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  417. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  418. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +4 -1
  419. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  420. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +4 -1
  421. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  422. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  423. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  424. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  425. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
  426. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
  427. package/dist/prometheus-framework.cjs.js +1 -1
  428. package/dist/prometheus-framework.es.js +1 -1
  429. package/dist/reports.server.js +1 -1
  430. package/dist/reports.server.mjs +1 -1
  431. package/dist/style.css +1 -1
  432. package/dist/web-0410cac1.js +1 -0
  433. package/dist/web-7p76PGnO.mjs +55 -0
  434. package/dist/web-c1619455.mjs +55 -0
  435. package/dist/web-c63f0ecc.js +1 -0
  436. package/dist/web-d8173758.mjs +55 -0
  437. package/dist/web-dn8vgptQ.js +1 -0
  438. package/package.json +1 -1
  439. package/src/components/SelectMulti/SelectMulti.vue +1 -1
  440. package/src/modules/auth/components/pages/Invite.vue +17 -6
  441. package/src/modules/auth/controllers/auth.controller.js +24 -16
  442. package/src/modules/auth/controllers/invites.controller.js +17 -8
  443. package/src/modules/auth/store/auth.js +8 -1
  444. package/src/modules/auth/store/invites.js +1 -0
  445. package/src/modules/globals/store/globals.js +5 -1
  446. package/src/modules/landing/components/blocks/MapBlock.vue +37 -0
  447. package/src/modules/landing/components/pages/404.vue +3 -0
  448. package/src/modules/landing/components/pages/Governance.vue +155 -0
  449. package/src/modules/landing/components/pages/Home.vue +52 -0
  450. package/src/modules/landing/components/pages/Hotel.vue +54 -0
  451. package/src/modules/landing/components/pages/Page.vue +184 -0
  452. package/src/modules/landing/components/sections/AboutSection.vue +69 -0
  453. package/src/modules/landing/components/sections/Examples.vue +90 -0
  454. package/src/modules/landing/components/sections/FeatureSection.vue +80 -0
  455. package/src/modules/landing/components/sections/GiftSection.vue +63 -0
  456. package/src/modules/landing/components/sections/HeroSection.vue +74 -0
  457. package/src/modules/landing/components/sections/HowItWorksSection.vue +88 -0
  458. package/src/modules/landing/components/sections/HowToBuyWDR.vue +131 -0
  459. package/src/modules/landing/components/sections/InstagramSection.vue +181 -0
  460. package/src/modules/landing/components/sections/MapSection.vue +91 -0
  461. package/src/modules/landing/components/sections/SectionsSection.vue +69 -0
  462. package/src/modules/landing/components/sections/SliderFeatures.vue +131 -0
  463. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +116 -0
  464. package/src/modules/landing/router/landing.js +34 -0
  465. package/src/modules/middlewares/server/verifySignUp.js +4 -0
  466. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  467. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +52 -44
  468. package/src/modules/organizations/components/blocks/User.vue +42 -10
  469. package/src/modules/organizations/components/pages/Department.vue +7 -6
  470. package/src/modules/organizations/components/pages/DepartmentEdit.vue +110 -134
  471. package/src/modules/organizations/components/pages/Members.vue +85 -26
  472. package/src/modules/organizations/components/pages/Organization.vue +60 -4
  473. package/src/modules/organizations/components/sections/MembersAdd.vue +27 -34
  474. package/src/modules/organizations/components/sections/Organizations.vue +0 -1
  475. package/src/modules/organizations/controllers/memberships.controller.js +6 -2
  476. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  477. package/src/modules/organizations/models/department.model.js +0 -19
  478. package/src/modules/organizations/models/membership.model.js +4 -0
  479. package/src/modules/organizations/organizations.client.js +1 -6
  480. package/src/modules/organizations/store/departments.js +48 -44
  481. package/src/modules/organizations/store/memberships.js +11 -3
  482. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  483. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  484. package/src/modules/products/components/pages/Product.vue +6 -1
  485. package/src/modules/products/components/pages/ProductEdit.vue +48 -28
  486. package/src/modules/products/controllers/products.controller.js +87 -24
  487. package/src/modules/products/models/product.model.js +16 -1
  488. package/src/modules/products/store/products.js +1 -1
  489. package/src/modules/users/components/pages/ProfileOrganizations.vue +41 -7
  490. package/src/modules/organizations/components/sections/FeedDepartments.vue +0 -64
  491. package/src/modules/organizations/components/sections/MembersList.vue +0 -85
  492. package/src/modules/organizations/store/invites.js +0 -93
@@ -1,94 +1,282 @@
1
- import { ref as e, openBlock as s, createElementBlock as i, createElementVNode as a, createVNode as m, unref as b, withCtx as p, createTextVNode as n } from "vue";
2
- import { useRouter as w, useRoute as x } from "vue-router";
1
+ import { ref as d, openBlock as r, createElementBlock as m, createElementVNode as t, unref as x, createVNode as a, withCtx as c, createTextVNode as C, createCommentVNode as y, Fragment as S, renderList as N, createBlock as $, pushScopeId as R, popScopeId as H } from "vue";
2
+ import { useRouter as L, useRoute as j } from "vue-router";
3
3
  import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
4
- import g from "../../../../components/Breadcrumbs/Breadcrumbs.vue2.js";
4
+ import "vue-i18n";
5
+ import "../../../globals/localization/vue-i18n.js";
6
+ import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
7
+ import q from "../../../../components/UploadImage/UploadImage.vue.js";
5
8
  import "../../../../components/Tab/Tab.vue.js";
6
- import "../../../../components/Field/Field.vue.js";
7
- import y from "../../../../../../_virtual/_plugin-vue_export-helper.js";
8
- import "../../../../components/Select/Select.vue2.js";
9
- import "../../../../components/Checkbox/Checkbox.vue2.js";
9
+ import O from "../../../../components/Field/Field.vue2.js";
10
+ import "../../../../components/Select/Select.vue.js";
11
+ import G from "../../../../../../_virtual/_plugin-vue_export-helper.js";
12
+ import p from "../../../../components/Checkbox/Checkbox.vue.js";
10
13
  import "../../../../components/Address/Address.vue.js";
11
14
  import "../../../../components/Loader/Loader.vue.js";
12
15
  import "../../../../components/LocationMarker/LocationMarker.vue.js";
13
- import d from "../../../../components/Button/Button.vue2.js";
14
- import "vue-i18n";
15
- import "../../../../components/Popup/Popup.vue2.js";
16
+ import E from "../../../../components/Button/Button.vue2.js";
17
+ import M from "../../../../components/Popup/Popup.vue2.js";
18
+ import J from "../../../../components/Block/Block.vue.js";
16
19
  import "../../../../../../node_modules/vue-select/dist/vue-select.es.js";
17
20
  import "../blocks/EditArray.vue2.js";
18
- import "../blocks/DepartmentSub.vue2.js";
19
- import "../blocks/DepartmentMemberModify.vue2.js";
20
- import "../blocks/User.vue2.js";
21
- import { actions as r, state as o } from "../../../spots/store/spots.js";
22
- import { actions as k, state as D } from "../../store/memberships.js";
21
+ import K from "../blocks/DepartmentSub.vue.js";
22
+ import z from "../blocks/DepartmentMemberModify.vue.js";
23
+ import Q from "../blocks/User.vue.js";
24
+ import { state as e, actions as f } from "../../store/departments.js";
25
+ import { state as I, actions as W } from "../../store/memberships.js";
23
26
  import "./DepartmentEdit.vue2.js";
24
- const S = { class: "for-transition w-100" }, v = { class: "pd-b-zero pd-t-zero pd-thin" }, E = { class: "pd-thin" }, $ = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, N = {
27
+ const n = (h) => (R("data-v-e983b0b2"), h = h(), H(), h), X = { class: "for-transition pd-thin w-100" }, Y = { class: "mn-b-thin flex-nowrap flex bg-grey pd-medium radius-big" }, Z = {
25
28
  key: 0,
26
29
  class: "mn-r-auto"
27
- }, T = {
30
+ }, ee = {
28
31
  key: 1,
29
32
  class: "mn-r-auto"
30
- }, V = { class: "flex-nowrap flex pd-thin" }, z = { class: "flex-nowrap flex pd-thin" }, B = {
33
+ }, te = { class: "flex-nowrap flex pd-thin" }, ae = { class: "mn-b-thin bg-grey pd-medium o-hidden radius-big" }, se = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h3", { class: "mn-b-semi" }, "Profile", -1)), le = {
34
+ key: 0,
35
+ class: "radius-small flex-nowrap flex"
36
+ }, re = { class: "w-100 flex-child-grow-1 flex-child" }, ie = { class: "cols-2 gap-thin" }, ne = { class: "bg-grey pd-medium o-hidden radius-big" }, oe = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h3", { class: "mn-b-semi" }, "Department Settings", -1)), me = /* @__PURE__ */ n(() => /* @__PURE__ */ t("p", { class: "p-medium mn-b-small" }, "Please settings for your department:", -1)), de = { class: "cols-1 gap-thin" }, pe = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h4", null, "Products", -1)), ue = { class: "bg-grey pd-medium o-hidden radius-big" }, ce = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h3", { class: "mn-b-semi" }, "Acessess", -1)), fe = /* @__PURE__ */ n(() => /* @__PURE__ */ t("p", { class: "p-medium mn-b-small" }, "Please select organization accesses for user in department:", -1)), he = { class: "cols-1 gap-thin" }, be = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h4", null, "Products", -1)), _e = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h4", null, "Orders", -1)), ve = {
37
+ key: 0,
38
+ class: "flex-nowrap flex pd-thin"
39
+ }, ge = {
40
+ id: "dash",
41
+ class: "pd-medium bg-white"
42
+ }, ye = { class: "mn-b-regular flex-v-center flex-nowrap flex" }, we = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h3", { class: "mn-r-small" }, "Подотделы ", -1)), De = { class: "mn-b-small" }, ke = { key: 0 }, Pe = {
31
43
  __name: "DepartmentEdit",
32
- setup(C) {
33
- const c = w(), t = x();
34
- e("details"), e(!1);
35
- async function l() {
36
- t.params.department && await k.read(t.params.department), e(D.memberships), await r.read(t.params._id), t.params.department && await r.readOne(t.params.department);
44
+ setup(h) {
45
+ const T = L(), s = j();
46
+ d("details"), d(!1);
47
+ async function U() {
48
+ s.params.department && await W.read({ target: s.params._id }), d(I.memberships), await f.read(s.params._id), s.params.department && await f.readOne(s.params.department);
49
+ }
50
+ U();
51
+ const b = d(!1), _ = d(null);
52
+ function w(i) {
53
+ b.value = !0, typeof i == "number" && (_.value = i);
37
54
  }
38
- l(), e(!1), e(null), e(!1), e(null);
39
- async function _() {
40
- t.params.department && await r.update(
41
- t.params._id,
42
- o.department
43
- ), t.params.department || await r.create(
44
- t.params._id,
45
- o.department
55
+ function D() {
56
+ b.value = !1, _.value = null;
57
+ }
58
+ const v = d(!1), g = d(null);
59
+ function k(i) {
60
+ v.value = !0, typeof i == "number" && (g.value = i);
61
+ }
62
+ function P() {
63
+ v.value = !1, g.value = null;
64
+ }
65
+ async function V() {
66
+ s.params.department && await f.update(
67
+ s.params._id,
68
+ e.department
69
+ ), s.params.department || await f.create(
70
+ s.params._id,
71
+ e.department
46
72
  );
47
73
  }
48
- function f() {
49
- c.replace({ name: "Department", params: { _id: t.params._id, department: o.department._id } });
74
+ function B() {
75
+ T.replace({ name: "Department", params: { _id: s.params._id, department: e.department._id } });
50
76
  }
51
- async function u() {
52
- await r.delete(
53
- t.params._id,
54
- o.department
77
+ async function A() {
78
+ await f.delete(
79
+ s.params._id,
80
+ e.department
55
81
  );
56
82
  }
57
- return (h, R) => (s(), i("div", S, [
58
- a("div", v, [
59
- m(g, { class: "pd-medium bg-grey radius-big" })
83
+ return (i, o) => (r(), m("div", X, [
84
+ t("header", Y, [
85
+ x(s).params.department ? (r(), m("h1", Z, "Edit Department")) : (r(), m("h1", ee, "Create Department")),
86
+ t("section", te, [
87
+ a(E, {
88
+ submit: V,
89
+ callback: B,
90
+ class: "bg-main"
91
+ }, {
92
+ default: c(() => [
93
+ C("Save Department")
94
+ ]),
95
+ _: 1
96
+ })
97
+ ])
60
98
  ]),
61
- a("div", E, [
62
- a("header", $, [
63
- b(t).params.department ? (s(), i("h1", N, "Edit Spot")) : (s(), i("h1", T, "Create Spot")),
64
- a("section", V, [
65
- m(d, {
66
- submit: _,
67
- callback: f
68
- }, {
69
- default: p(() => [
70
- n("Save Spot")
71
- ]),
72
- _: 1
73
- })
99
+ t("div", ae, [
100
+ se,
101
+ e.department.profile ? (r(), m("div", le, [
102
+ a(q, {
103
+ photo: e.department.profile.photo,
104
+ "onUpdate:photo": o[0] || (o[0] = (l) => e.department.profile.photo = l),
105
+ uploadPath: "organizations/" + e.department.name + "/avatars",
106
+ class: "w-8r aspect-1x1 o-hidden mn-r-small radius-extra"
107
+ }, null, 8, ["photo", "uploadPath"]),
108
+ t("div", re, [
109
+ a(O, {
110
+ field: e.department.profile.name,
111
+ "onUpdate:field": o[1] || (o[1] = (l) => e.department.profile.name = l),
112
+ label: "Name",
113
+ placeholder: "Department Name",
114
+ class: "mn-b-small bg-white radius-small pd-medium",
115
+ validation: i.organizationName
116
+ }, null, 8, ["field", "validation"]),
117
+ a(O, {
118
+ field: e.department.profile.description,
119
+ "onUpdate:field": o[2] || (o[2] = (l) => e.department.profile.description = l),
120
+ label: "Description",
121
+ placeholder: "Department description (max 120 symbols)",
122
+ class: "bg-white radius-small pd-medium",
123
+ validation: i.organizationName
124
+ }, null, 8, ["field", "validation"])
125
+ ])
126
+ ])) : y("", !0)
127
+ ]),
128
+ a(J, {
129
+ title: "Team",
130
+ placeholder: "No members added yet",
131
+ actions: [{
132
+ label: "+",
133
+ function: () => w()
134
+ }],
135
+ class: "cols-1 gap-thin mn-b-thin"
136
+ }, {
137
+ default: c(() => [
138
+ (r(!0), m(S, null, N(e.department.members, (l, u) => (r(), $(Q, {
139
+ class: "bg-grey o-hidden radius-small mn-b-thin",
140
+ key: u,
141
+ user: l.user,
142
+ position: l.position,
143
+ onClick: (F) => w(u)
144
+ }, null, 8, ["user", "position", "onClick"]))), 128))
145
+ ]),
146
+ _: 1
147
+ }, 8, ["actions"]),
148
+ a(M, {
149
+ title: "Добавить участника",
150
+ onClosePopup: D,
151
+ isPopupOpen: b.value
152
+ }, {
153
+ default: c(() => [
154
+ a(z, {
155
+ members: e.department.members,
156
+ member: _.value,
157
+ users: I.memberships,
158
+ onCallback: D
159
+ }, null, 8, ["members", "member", "users"])
160
+ ]),
161
+ _: 1
162
+ }, 8, ["isPopupOpen"]),
163
+ t("div", ie, [
164
+ t("div", ne, [
165
+ oe,
166
+ me,
167
+ t("div", de, [
168
+ pe,
169
+ a(p, {
170
+ label: "Hidden department",
171
+ name: "Delivery",
172
+ value: "pickup",
173
+ class: "w-100 mn-r-small bg-white radius-small pd-small",
174
+ radio: e.department.delivery
175
+ }, null, 8, ["radio"])
176
+ ])
177
+ ]),
178
+ t("div", ue, [
179
+ ce,
180
+ fe,
181
+ t("div", he, [
182
+ be,
183
+ a(p, {
184
+ label: "See products",
185
+ name: "Delivery",
186
+ value: "pickup",
187
+ class: "w-100 mn-r-small bg-white radius-small pd-small",
188
+ radio: e.department.delivery
189
+ }, null, 8, ["radio"]),
190
+ a(p, {
191
+ label: "Edit products",
192
+ name: "Delivery",
193
+ value: "courier",
194
+ class: "w-100 mn-r-small bg-white radius-small pd-small",
195
+ radio: e.department.delivery
196
+ }, null, 8, ["radio"]),
197
+ a(p, {
198
+ label: "Delete orders",
199
+ name: "Delivery",
200
+ value: "post",
201
+ class: "w-100 bg-white radius-small pd-small",
202
+ radio: e.department.delivery
203
+ }, null, 8, ["radio"]),
204
+ _e,
205
+ a(p, {
206
+ label: "See orders",
207
+ name: "Delivery",
208
+ value: "pickup",
209
+ class: "w-100 mn-r-small bg-white radius-small pd-small",
210
+ radio: e.department.delivery
211
+ }, null, 8, ["radio"]),
212
+ a(p, {
213
+ label: "Confirm orders",
214
+ name: "Delivery",
215
+ value: "courier",
216
+ class: "w-100 mn-r-small bg-white radius-small pd-small",
217
+ radio: e.department.delivery
218
+ }, null, 8, ["radio"]),
219
+ a(p, {
220
+ label: "Delete orders",
221
+ name: "Delivery",
222
+ value: "post",
223
+ class: "w-100 bg-white radius-small pd-small",
224
+ radio: e.department.delivery
225
+ }, null, 8, ["radio"])
74
226
  ])
75
227
  ])
76
228
  ]),
77
- a("section", z, [
78
- m(d, {
79
- submit: u,
80
- callback: h.redirectToDash,
229
+ x(s).params.department ? (r(), m("section", ve, [
230
+ a(E, {
231
+ submit: A,
232
+ callback: i.redirectToDash,
81
233
  class: "bg-grey"
82
234
  }, {
83
- default: p(() => [
84
- n("Delete Spot")
235
+ default: c(() => [
236
+ C("Delete Department")
85
237
  ]),
86
238
  _: 1
87
239
  }, 8, ["callback"])
240
+ ])) : y("", !0),
241
+ t("div", ge, [
242
+ a(M, {
243
+ title: "Добавить подотдел",
244
+ onClosePopup: P,
245
+ isPopupOpen: v.value
246
+ }, {
247
+ default: c(() => [
248
+ a(z, {
249
+ departments: e.department.subdepartments,
250
+ department: g.value,
251
+ maindepartment: e.department,
252
+ alldepartments: e.departments,
253
+ onCallback: P
254
+ }, null, 8, ["departments", "department", "maindepartment", "alldepartments"])
255
+ ]),
256
+ _: 1
257
+ }, 8, ["isPopupOpen"]),
258
+ t("div", ye, [
259
+ we,
260
+ t("div", null, [
261
+ t("a", {
262
+ class: "t-main h5",
263
+ onClick: o[3] || (o[3] = (l) => k())
264
+ }, "+")
265
+ ])
266
+ ]),
267
+ t("ul", De, [
268
+ e.department.subdepartments.length < 1 ? (r(), m("li", ke, "В отделе еще нет подотделов")) : y("", !0),
269
+ (r(!0), m(S, null, N(e.department.subdepartments, (l, u) => (r(), $(K, {
270
+ key: u,
271
+ class: "bg-grey o-hidden radius-small mn-b-thin",
272
+ department: l,
273
+ onClick: (F) => k(u)
274
+ }, null, 8, ["department", "onClick"]))), 128))
275
+ ])
88
276
  ])
89
277
  ]));
90
278
  }
91
- }, ot = /* @__PURE__ */ y(B, [["__scopeId", "data-v-190683d5"]]);
279
+ }, Xe = /* @__PURE__ */ G(Pe, [["__scopeId", "data-v-e983b0b2"]]);
92
280
  export {
93
- ot as default
281
+ Xe as default
94
282
  };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router"),m=require("../sections/FeedDepartments.vue.cjs"),l=require("../sections/MembersAdd.vue.cjs"),v=require("../sections/MembersList.vue.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const _=require("../../../auth/store/auth.cjs"),a=require("../../store/invites.cjs"),n=require("../../store/memberships.cjs"),r=require("../../store/organizations.cjs"),p=e.createElementVNode("section",{class:"mn-b-medium radius-medium pd-semi bg-white"},[e.createElementVNode("h2",{class:"mn-b-regular"},"Участники"),e.createElementVNode("p",{class:"t-transp p-big"},"Добавляйте новых участников организации и настраивайте права доступа.")],-1),b={__name:"Members",setup(h){const s=d.useRoute(),i=e.ref(null);e.onMounted(async()=>{i.value=(await r.actions.read({_id:s.params._id,user:_.state.user._id}))[0],await n.actions.read(s.params._id),await a.actions.read(i.value._id)});async function o(t){await a.actions.create(i.value._id,t)}async function u(t){await n.actions.delete(t._id)}async function c(t){await a.actions.delete(t._id)}return(t,f)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[p,e.createVNode(m.default,{organization:r.state.current,memberships:n.state.memberships},null,8,["organization","memberships"]),e.createVNode(l.default,{organization:i.value,onSendInvite:o},null,8,["organization"]),e.createVNode(v.default,{organization:r,memberships:t.memberships,invites:a.state.invites,onRemoveInvite:c,onRemoveMember:u},null,8,["memberships","invites"])])]),_:1}))}};exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Loader/Loader.vue.cjs");require("vue-i18n");const _=require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Tooltip/Tooltip.vue2.cjs");const b=require("../sections/MembersAdd.vue.cjs");require("../../../mobile/components/Menu/Menu.vue2.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const v=require("../blocks/User.vue.cjs"),g=require("../../../auth/store/auth.cjs"),a=require("../../../auth/store/invites.cjs"),d=require("../../store/memberships.cjs"),h=require("../../store/organizations.cjs"),f=require("../../store/departments.cjs"),k={class:"pd-thin"},q=e.createElementVNode("section",{class:"mn-b-medium radius-medium pd-semi bg-grey"},[e.createElementVNode("h2",{class:"mn-b-regular"},"Members"),e.createElementVNode("p",{class:"t-transp p-big"},"Add new memberships to the group and configure access rights.")],-1),E={class:"mn-b-big radius-medium bg-white"},y={key:0,class:"cols-1 gap-thin"},B={key:1},N={class:"br-grey br-1px br-solid radius-small mn-b-thin flex-nowrap flex-v-center flex pd-medium"},V={class:"w-100 mn-r-small"},w={class:"t-transp"},x={class:"mn-l-medium flex-v-center flex"},M=["onClick"],C={__name:"Members",setup(S){const l=c.useRoute();c.useRouter();const o=e.ref(null),i=e.ref("members");e.onMounted(async()=>{o.value=(await h.actions.read({_id:l.params._id,user:g.state.user._id}))[0],await d.actions.read({target:l.params._id}),await a.actions.read(o.value._id)}),e.computed(()=>{const s=f.state.departments,n=s.flatMap(t=>t.subdepartments.map(r=>r._id));return s.filter(t=>!n.includes(t._id))});async function u(s){await a.actions.create(o.value._id,s)}async function m(s,n){a.state.invites.splice(s,1),await a.actions.delete(n._id)}return(s,n)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",k,[q,e.createVNode(b.default,{organization:o.value,onSendInvite:u},null,8,["organization"]),e.createVNode(_.default,{selected:i.value,"onUpdate:selected":n[0]||(n[0]=t=>i.value=t),class:"mn-b-medium bg-grey radius-small",tabs:[{name:"Members",value:"members"},{name:"Invites",value:"invites"}]},null,8,["selected"]),e.createElementVNode("section",E,[i.value==="members"?(e.openBlock(),e.createElementBlock("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.state.memberships,(t,r)=>(e.openBlock(),e.createBlock(v.default,{key:r,user:t,onClick:p=>s.$router.push(`/app/profile/${t._id}`),class:"bg-grey radius-small flex-nowrap flex pd-medium"},null,8,["user","onClick"]))),128))])):e.createCommentVNode("",!0),i.value==="invites"?(e.openBlock(),e.createElementBlock("div",B,[e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.state.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("span",V,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",w,e.toDisplayString(t.status),1),e.createElementVNode("div",x,[e.createElementVNode("button",{onClick:p=>m(r,t),class:"button-small button"},"×",8,M)])]))),256))])):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=C;
@@ -1,53 +1,86 @@
1
- import { ref as d, onMounted as p, openBlock as u, createBlock as l, Transition as _, withCtx as f, createElementVNode as t, createVNode as i } from "vue";
2
- import { useRoute as v } from "vue-router";
3
- import b from "../sections/FeedDepartments.vue.js";
4
- import h from "../sections/MembersAdd.vue.js";
5
- import g from "../sections/MembersList.vue.js";
6
- import "../../../mobile/components/Menu/Menu.vue.js";
1
+ import { ref as p, onMounted as $, computed as k, openBlock as a, createBlock as _, Transition as x, withCtx as C, createElementVNode as t, createVNode as f, createElementBlock as r, Fragment as b, renderList as v, createCommentVNode as l, toDisplayString as d } from "vue";
2
+ import { useRoute as M, useRouter as I } from "vue-router";
3
+ import "../../../../components/Loader/Loader.vue.js";
4
+ import "vue-i18n";
5
+ import S from "../../../../components/Tab/Tab.vue2.js";
6
+ import "../../../../components/Tooltip/Tooltip.vue2.js";
7
+ import z from "../sections/MembersAdd.vue.js";
8
+ import "../../../mobile/components/Menu/Menu.vue2.js";
7
9
  import "../../../mobile/components/Menu/MenuItem.vue.js";
8
- import { state as w } from "../../../auth/store/auth.js";
9
- import { actions as n, state as $ } from "../../store/invites.js";
10
- import { actions as s, state as z } from "../../store/memberships.js";
11
- import * as y from "../../store/organizations.js";
12
- import { actions as I, state as M } from "../../store/organizations.js";
13
- const R = /* @__PURE__ */ t("section", { class: "mn-b-medium radius-medium pd-semi bg-white" }, [
14
- /* @__PURE__ */ t("h2", { class: "mn-b-regular" }, "Участники"),
15
- /* @__PURE__ */ t("p", { class: "t-transp p-big" }, "Добавляйте новых участников организации и настраивайте права доступа.")
16
- ], -1), F = {
10
+ import B from "../blocks/User.vue.js";
11
+ import { state as E } from "../../../auth/store/auth.js";
12
+ import { actions as c, state as h } from "../../../auth/store/invites.js";
13
+ import { actions as N, state as V } from "../../store/memberships.js";
14
+ import { actions as D } from "../../store/organizations.js";
15
+ import { state as R } from "../../store/departments.js";
16
+ const U = { class: "pd-thin" }, A = /* @__PURE__ */ t("section", { class: "mn-b-medium radius-medium pd-semi bg-grey" }, [
17
+ /* @__PURE__ */ t("h2", { class: "mn-b-regular" }, "Members"),
18
+ /* @__PURE__ */ t("p", { class: "t-transp p-big" }, "Add new memberships to the group and configure access rights.")
19
+ ], -1), F = { class: "mn-b-big radius-medium bg-white" }, L = {
20
+ key: 0,
21
+ class: "cols-1 gap-thin"
22
+ }, P = { key: 1 }, T = { class: "br-grey br-1px br-solid radius-small mn-b-thin flex-nowrap flex-v-center flex pd-medium" }, j = { class: "w-100 mn-r-small" }, q = { class: "t-transp" }, G = { class: "mn-l-medium flex-v-center flex" }, H = ["onClick"], me = {
17
23
  __name: "Members",
18
- setup(k) {
19
- const o = v(), a = d(null);
20
- p(async () => {
21
- a.value = (await I.read({ _id: o.params._id, user: w.user._id }))[0], await s.read(o.params._id), await n.read(a.value._id);
24
+ setup(J) {
25
+ const u = M();
26
+ I();
27
+ const o = p(null), m = p("members");
28
+ $(async () => {
29
+ o.value = (await D.read({ _id: u.params._id, user: E.user._id }))[0], await N.read({ target: u.params._id }), await c.read(o.value._id);
30
+ }), k(() => {
31
+ const s = R.departments, i = s.flatMap(
32
+ (e) => e.subdepartments.map((n) => n._id)
33
+ );
34
+ return s.filter(
35
+ (e) => !i.includes(e._id)
36
+ );
22
37
  });
23
- async function r(e) {
24
- await n.create(a.value._id, e);
38
+ async function g(s) {
39
+ await c.create(o.value._id, s);
25
40
  }
26
- async function m(e) {
27
- await s.delete(e._id);
41
+ async function w(s, i) {
42
+ h.invites.splice(s, 1), await c.delete(i._id);
28
43
  }
29
- async function c(e) {
30
- await n.delete(e._id);
31
- }
32
- return (e, x) => (u(), l(_, { name: "slide-fade" }, {
33
- default: f(() => [
34
- t("div", null, [
35
- R,
36
- i(b, {
37
- organization: M.current,
38
- memberships: z.memberships
39
- }, null, 8, ["organization", "memberships"]),
40
- i(h, {
41
- organization: a.value,
42
- onSendInvite: r
44
+ return (s, i) => (a(), _(x, { name: "slide-fade" }, {
45
+ default: C(() => [
46
+ t("div", U, [
47
+ A,
48
+ f(z, {
49
+ organization: o.value,
50
+ onSendInvite: g
43
51
  }, null, 8, ["organization"]),
44
- i(g, {
45
- organization: y,
46
- memberships: e.memberships,
47
- invites: $.invites,
48
- onRemoveInvite: c,
49
- onRemoveMember: m
50
- }, null, 8, ["memberships", "invites"])
52
+ f(S, {
53
+ selected: m.value,
54
+ "onUpdate:selected": i[0] || (i[0] = (e) => m.value = e),
55
+ class: "mn-b-medium bg-grey radius-small",
56
+ tabs: [
57
+ { name: "Members", value: "members" },
58
+ { name: "Invites", value: "invites" }
59
+ ]
60
+ }, null, 8, ["selected"]),
61
+ t("section", F, [
62
+ m.value === "members" ? (a(), r("div", L, [
63
+ (a(!0), r(b, null, v(V.memberships, (e, n) => (a(), _(B, {
64
+ key: n,
65
+ user: e,
66
+ onClick: (y) => s.$router.push(`/app/profile/${e._id}`),
67
+ class: "bg-grey radius-small flex-nowrap flex pd-medium"
68
+ }, null, 8, ["user", "onClick"]))), 128))
69
+ ])) : l("", !0),
70
+ m.value === "invites" ? (a(), r("div", P, [
71
+ l("", !0),
72
+ (a(!0), r(b, null, v(h.invites, (e, n) => (a(), r("div", T, [
73
+ t("span", j, d(e.invitedEmail) + " " + d(e.invitedPhone), 1),
74
+ t("span", q, d(e.status), 1),
75
+ t("div", G, [
76
+ t("button", {
77
+ onClick: (y) => w(n, e),
78
+ class: "button-small button"
79
+ }, "×", 8, H)
80
+ ])
81
+ ]))), 256))
82
+ ])) : l("", !0)
83
+ ])
51
84
  ])
52
85
  ]),
53
86
  _: 1
@@ -55,5 +88,5 @@ const R = /* @__PURE__ */ t("section", { class: "mn-b-medium radius-medium pd-se
55
88
  }
56
89
  };
57
90
  export {
58
- F as default
91
+ me as default
59
92
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const v=require("../../../events/components/sections/Feed.vue.cjs"),h=require("../../../community/components/sections/Feed.vue.cjs"),q=require("../../../spots/components/blocks/CardSpot.vue.cjs"),g=require("../sections/DetailsTab.vue.cjs"),w=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),a=require("../../store/organizations.cjs"),y=require("../../store/memberships.cjs"),C=require("../../../spots/store/spots.cjs");require("./Organization.vue2.cjs");const N={key:0,class:"pd-thin for-transition w-100"},B={class:"pos-relative"},V={key:0},x={__name:"Organization",setup(z){const l=c.useRouter(),t=c.useRoute();let m=t.query.tab?t.query.tab:"products";const d=e.ref(null);e.onMounted(async()=>{d.value=await a.actions.read({_id:t.params._id,user:o.state.user._id}),await y.actions.read(t.params._id)});const r=e.ref(m);return t.query.tab=r.value,e.watch(r,u=>{l.replace({query:{...t.query,tab:u}})}),(u,n)=>{const i=e.resolveComponent("router-link");return d.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(g.default,{organization:a.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(f.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=s=>r.value=s),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",B,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="events"?(e.openBlock(),e.createBlock(v.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&o.state.user._id===a.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(i,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(i,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(i,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(w.default,{key:0,organization:a.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(b.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:s=>C.actions.read(e.unref(t).params._id),state:a.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(p,_)=>(e.openBlock(),e.createBlock(q.default,{key:_,spot:p,organization:a.state.current,class:"radius-big bg-grey mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["states","store","options"]),o.state.user._id===a.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=s=>u.$router.push(`/spots/${a.state.current._id}/spots/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const b=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Block/Block.vue.cjs"),_=require("../../../../components/Feed/Feed.vue.cjs"),g=require("../../../mobile/components/Menu/Menu.vue.cjs"),h=require("../../../mobile/components/Menu/MenuItem.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");const v=require("../blocks/User.vue.cjs"),y=require("../blocks/CardDepartment.vue.cjs"),C=require("../../../events/components/sections/Feed.vue.cjs"),N=require("../../../community/components/sections/Feed.vue.cjs"),q=require("../../../spots/components/blocks/CardSpot.vue.cjs"),w=require("../sections/DetailsTab.vue.cjs"),B=require("../../../products/components/pages/Products.vue.cjs"),s=require("../../../auth/store/auth.cjs"),a=require("../../store/organizations.cjs"),V=require("../../store/memberships.cjs"),x=require("../../store/departments.cjs"),z=require("../../../spots/store/spots.cjs");require("./Organization.vue2.cjs");const E={key:0,class:"pd-thin for-transition w-100"},$={class:"cols-2 pd-medium bg-grey radius-bg"},M={class:"pos-relative"},T={key:0},F={__name:"Organization",setup(O){const c=p.useRouter(),t=p.useRoute();let k=t.query.tab?t.query.tab:"products";const m=e.ref(null);e.onMounted(async()=>{m.value=await a.actions.read({_id:t.params._id,user:s.state.user._id}),await V.actions.read(t.params._id)});const o=e.ref(k);return t.query.tab=o.value,e.watch(o,i=>{c.replace({query:{...t.query,tab:i}})}),(i,n)=>{const d=e.resolveComponent("router-link");return m.value?(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(w.default,{organization:a.state.current,user:s.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(g.default,{class:"mn-b-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(h.default,{onClick:n[0]||(n[0]=r=>e.unref(c).push({name:"Organization Members",params:{_id:e.unref(t).params._id}})),class:"cursor-pointer",theme:"black"},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(a.state.current.numberOfMembers)+" members ",1)]),_:1})]),_:1}),e.createElementVNode("div",$,[e.createVNode(f.default,{title:"Departments",actions:[{label:"+",function:()=>i.$router.push(`/organizations/${e.unref(t).params._id}/departments/create`)}]},{default:e.withCtx(()=>[e.createVNode(_.default,{states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available."}},store:{read:r=>x.actions.read(e.unref(t).params._id),state:null},options:{user:s.state.user._id,sort:"numberOfMemberships",limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(u,l)=>(e.openBlock(),e.createBlock(y.default,{key:l,department:u,organization:e.unref(t).params._id,class:"radius-big bg-white pos-relative mn-b-thin"},null,8,["department","organization"]))),128))]),_:1},8,["states","store","options"])]),_:1},8,["actions"]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.state.current.memberships,(r,u)=>(e.openBlock(),e.createBlock(v.default,{key:u,user:r,position:r.position,onClick:l=>i.$router.push(`/app/profile/${r.user._id}`),class:"bg-grey radius-small flex-nowrap flex pd-medium"},null,8,["user","position","onClick"]))),128))])]),e.createVNode(b.default,{selected:o.value,"onUpdate:selected":n[1]||(n[1]=r=>o.value=r),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",M,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[o.value==="community"?(e.openBlock(),e.createBlock(N.default,{key:0,user:s.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[o.value==="events"?(e.openBlock(),e.createBlock(C.default,{key:0,user:s.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),o.value==="products"&&s.state.user._id===a.state.current.owner?(e.openBlock(),e.createBlock(f.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(d,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(d,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(d,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[o.value==="products"?(e.openBlock(),e.createBlock(B.default,{key:0,organization:a.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[o.value==="spots"?(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(_.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>z.actions.read(e.unref(t).params._id),state:a.state},options:{user:s.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(u,l)=>(e.openBlock(),e.createBlock(q.default,{key:l,spot:u,organization:a.state.current,class:"radius-big bg-grey mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["states","store","options"]),s.state.user._id===a.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[2]||(n[2]=r=>i.$router.push(`/spots/${a.state.current._id}/spots/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=F;