@ozdao/prometheus-framework 0.2.111 → 0.2.113

Sign up to get free protection for your applications and to get access to all the features.
Files changed (533) hide show
  1. package/dist/common.schema-BFhpUXUt.js +12 -0
  2. package/dist/common.schema-ChBVARrs.mjs +13 -0
  3. package/dist/community.server.js +6 -4
  4. package/dist/community.server.mjs +4 -2
  5. package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
  6. package/dist/engagement.schema-fdLNO2_6.js +27 -0
  7. package/dist/events.server.js +6 -4
  8. package/dist/events.server.mjs +4 -2
  9. package/dist/files.server.js +81 -29
  10. package/dist/files.server.mjs +81 -29
  11. package/dist/gallery.server.js +66 -39
  12. package/dist/gallery.server.mjs +66 -39
  13. package/dist/main-8APITHuW.mjs +14201 -0
  14. package/dist/main-8N2Jmsuk.js +2 -2
  15. package/dist/main-BJvlNekm.mjs +5 -5
  16. package/dist/main-BQisDfLk.js +2 -2
  17. package/dist/main-BV1Yv9Hy.js +2 -2
  18. package/dist/main-Bw0PvTs-.mjs +5 -5
  19. package/dist/main-ByCtZbHD.mjs +5 -5
  20. package/dist/main-CX2ISR43.mjs +5 -5
  21. package/dist/main-CXObXjv-.js +2 -2
  22. package/dist/main-CkeuHuCY.mjs +5 -5
  23. package/dist/main-CnfcBov2.mjs +5 -5
  24. package/dist/main-D50VqYhy.js +2 -2
  25. package/dist/main-D8gNZLSa.js +2 -2
  26. package/dist/main-DPsHxX0l.mjs +5 -5
  27. package/dist/main-DTlUA63C.mjs +5 -5
  28. package/dist/main-DfD5hLQo.mjs +5 -5
  29. package/dist/main-Dh6Zfei9.js +2 -2
  30. package/dist/main-DmNP-t33.mjs +5 -5
  31. package/dist/main-DwyUYWFX.js +2 -2
  32. package/dist/main-VcxO-jAt.js +92 -0
  33. package/dist/main-cffh4bbv.js +2 -2
  34. package/dist/main-pGo7JpSP.js +2 -2
  35. package/dist/main.css +1 -1
  36. package/dist/metadata.schema-6slGhpQS.js +40 -0
  37. package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
  38. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  39. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
  40. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
  41. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
  42. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  43. package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
  44. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  45. package/dist/node_modules/web3/lib/esm/index.js +45 -42
  46. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  47. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  48. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  49. package/dist/node_modules/web3/lib/esm/web3.js +40 -37
  50. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
  51. package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
  52. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  53. package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
  54. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  55. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +100 -87
  56. package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
  57. package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
  58. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
  59. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
  60. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
  61. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
  62. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
  63. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
  64. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
  65. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
  66. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
  67. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
  68. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  69. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +183 -179
  70. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  71. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +10 -10
  72. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  73. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +45 -44
  74. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  75. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +59 -57
  76. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +43 -43
  78. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  79. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +31 -31
  80. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  81. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +26 -26
  82. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  83. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +53 -51
  84. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
  85. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +25 -23
  86. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  87. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
  88. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
  89. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
  90. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  91. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
  92. package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
  93. package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
  94. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
  95. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
  96. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  97. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
  98. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  99. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
  100. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  101. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +50 -47
  102. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  103. package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
  104. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  105. package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
  106. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
  107. package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
  108. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  109. package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
  110. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
  111. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
  112. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
  113. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
  114. package/dist/orders.server.js +1 -1
  115. package/dist/orders.server.mjs +1 -1
  116. package/dist/organizations.server.js +56 -59
  117. package/dist/organizations.server.mjs +56 -59
  118. package/dist/products.server.js +1 -1
  119. package/dist/products.server.mjs +1 -1
  120. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  121. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
  122. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Block/Block.vue.js +5 -5
  124. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
  126. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
  128. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
  129. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
  130. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
  131. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
  132. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
  134. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
  136. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
  137. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
  138. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
  140. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
  142. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
  144. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
  146. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -0
  147. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +121 -0
  148. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue2.cjs +1 -0
  149. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue2.js +1 -0
  150. package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
  152. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
  154. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  155. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
  156. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
  160. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
  162. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
  164. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  166. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
  168. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
  170. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +11 -11
  172. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +26 -26
  174. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -14
  176. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +6 -6
  178. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +45 -45
  180. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +13 -13
  182. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
  184. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +19 -16
  186. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
  188. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
  190. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +213 -213
  194. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
  196. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  197. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
  198. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -9
  200. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
  202. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
  204. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
  205. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +167 -202
  207. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +73 -165
  209. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
  211. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  213. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
  214. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
  215. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
  217. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
  218. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
  219. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
  220. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
  221. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
  223. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
  225. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
  227. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
  228. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
  229. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
  230. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
  231. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
  232. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
  233. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
  234. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
  235. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
  236. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
  237. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
  239. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +5 -5
  241. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
  243. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
  247. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
  249. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
  251. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  253. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  255. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +36 -36
  257. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
  259. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
  261. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
  263. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  265. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
  267. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +5 -5
  269. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
  271. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
  273. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
  275. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
  276. package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
  277. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +5 -5
  279. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
  281. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  283. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
  285. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +41 -41
  287. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +11 -11
  289. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +17 -17
  291. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -36
  293. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
  295. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  297. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
  299. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +12 -12
  301. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
  303. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
  305. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +16 -16
  307. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +15 -15
  309. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
  311. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +8 -8
  313. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
  315. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
  319. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +6 -6
  321. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -8
  323. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
  324. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  325. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
  326. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  327. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -4
  328. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  329. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +32 -32
  330. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
  331. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
  332. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  333. package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
  334. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  335. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
  336. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  337. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +30 -26
  338. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  339. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +6 -6
  340. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  341. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +35 -35
  342. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  343. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
  344. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  345. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
  346. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  347. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
  348. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -0
  349. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +102 -0
  350. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue2.cjs +1 -0
  351. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue2.js +1 -0
  352. package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
  353. package/dist/prometheus-framework/src/modules/users/users.client.js +8 -6
  354. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  355. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
  356. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  357. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +14 -11
  358. package/dist/prometheus-framework.cjs.js +1 -1
  359. package/dist/prometheus-framework.es.js +1 -1
  360. package/dist/queryProcessor-BJoJAetd.mjs +162 -0
  361. package/dist/queryProcessor-DWf9tsis.js +161 -0
  362. package/dist/style.css +1 -1
  363. package/dist/wallet.server.js +1 -1
  364. package/dist/wallet.server.mjs +1 -1
  365. package/dist/web-TGdVOTnw.js +1 -0
  366. package/dist/web-_W9a_nWD.mjs +54 -0
  367. package/package.json +1 -1
  368. package/src/components/Address/Address.vue +1 -1
  369. package/src/components/AskToLogin/AskToLogin.vue +1 -1
  370. package/src/components/Block/Block.vue +1 -1
  371. package/src/components/Checkbox/Checkbox.vue +40 -43
  372. package/src/components/Chips/Chips.vue +2 -2
  373. package/src/components/DatePicker/Calendar.vue +29 -31
  374. package/src/components/Dropdown/Dropdown.vue +5 -11
  375. package/src/components/Feed/Feed.vue +98 -15
  376. package/src/components/FieldTags/BlockTags.vue +3 -3
  377. package/src/components/FieldTags/FieldTags.vue +1 -1
  378. package/src/components/FieldTags/vue-tags-input.scss +1 -1
  379. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  380. package/src/components/LocationSelection/LocationSelection.vue +5 -30
  381. package/src/components/Map/LoaderGMaps.js +66 -0
  382. package/src/components/Map/Map.vue +2 -1
  383. package/src/components/Marquee/Marquee.vue +1 -1
  384. package/src/components/Radio/Radio.vue +36 -13
  385. package/src/configurator/components/pages/Styles.vue +1 -1
  386. package/src/modules/auth/components/layouts/Auth.vue +1 -1
  387. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  388. package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
  389. package/src/modules/auth/components/pages/Invite.vue +2 -2
  390. package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
  391. package/src/modules/auth/components/pages/SignIn.vue +4 -4
  392. package/src/modules/auth/components/pages/SignUp.vue +3 -3
  393. package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
  394. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  395. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  396. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  397. package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
  398. package/src/modules/backoffice/components/admin/Users.vue +1 -1
  399. package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
  400. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  401. package/src/modules/community/components/layouts/Community.vue +2 -2
  402. package/src/modules/community/components/pages/BlogPost.vue +2 -2
  403. package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
  404. package/src/modules/community/components/sections/Comments.vue +2 -2
  405. package/src/modules/community/components/sections/Feed.vue +1 -1
  406. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  407. package/src/modules/constructor/components/elements/Image.vue +1 -1
  408. package/src/modules/constructor/components/elements/Video.vue +2 -2
  409. package/src/modules/events/components/blocks/CardEvent.vue +1 -1
  410. package/src/modules/events/components/pages/EditEvent.vue +32 -32
  411. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  412. package/src/modules/events/components/pages/Event.vue +3 -3
  413. package/src/modules/events/components/pages/Events.vue +4 -3
  414. package/src/modules/events/components/sections/Feed.vue +3 -3
  415. package/src/modules/events/components/sections/List.vue +2 -2
  416. package/src/modules/files/controllers/files.controller.js +8 -6
  417. package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
  418. package/src/modules/files/routes/files.routes.js +11 -9
  419. package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
  420. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
  421. package/src/modules/gallery/controllers/gallery.controller.js +57 -38
  422. package/src/modules/gallery/models/photo.model.js +20 -11
  423. package/src/modules/gallery/routes/gallery.routes.js +3 -3
  424. package/src/modules/gallery/store/gallery.js +3 -78
  425. package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
  426. package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
  427. package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
  428. package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
  429. package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
  430. package/src/modules/globals/components/layouts/Client.vue +273 -0
  431. package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
  432. package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
  433. package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
  434. package/src/modules/globals/models/common.schema.js +1 -1
  435. package/src/modules/globals/services/globals.store.js +11 -6
  436. package/src/modules/globals/store/globals.js +12 -10
  437. package/src/modules/icons/logos/Logotype.vue +23 -19
  438. package/src/modules/icons/navigation/IconCalendar.vue +18 -0
  439. package/src/modules/icons/navigation/IconFilter.vue +18 -0
  440. package/src/modules/icons/navigation/IconSearch.vue +1 -3
  441. package/src/modules/icons/navigation/IconSort.vue +21 -0
  442. package/src/modules/landing/components/pages/Home.vue +4 -4
  443. package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
  444. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
  445. package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
  446. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
  447. package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
  448. package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
  449. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
  450. package/src/modules/landing/landing.client.js +2 -0
  451. package/src/modules/landing/router/landing.js +1 -1
  452. package/src/modules/legal/components/pages/Legal.vue +2 -2
  453. package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
  454. package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
  455. package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
  456. package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
  457. package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
  458. package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
  459. package/src/modules/marketplace/components/sections/Filters.vue +63 -115
  460. package/src/modules/marketplace/store/marketplace.js +22 -167
  461. package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
  462. package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
  463. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  464. package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
  465. package/src/modules/orders/components/pages/Order.vue +8 -8
  466. package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
  467. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  468. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
  469. package/src/modules/orders/components/pages/Orders.vue +3 -5
  470. package/src/modules/orders/components/partials/ShopCart.vue +5 -1
  471. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  472. package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
  473. package/src/modules/orders/store/applications.js +1 -1
  474. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  475. package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
  476. package/src/modules/organizations/components/pages/Department.vue +3 -3
  477. package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
  478. package/src/modules/organizations/components/pages/Members.vue +4 -4
  479. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  480. package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
  481. package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
  482. package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
  483. package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
  484. package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
  485. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  486. package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
  487. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  488. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  489. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  490. package/src/modules/organizations/controllers/organizations.controller.js +103 -93
  491. package/src/modules/organizations/models/organization.model.js +10 -7
  492. package/src/modules/organizations/store/organizations.js +3 -34
  493. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  494. package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
  495. package/src/modules/products/components/pages/Categories.vue +1 -1
  496. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  497. package/src/modules/products/components/pages/Leftovers.vue +4 -4
  498. package/src/modules/products/components/pages/Product.vue +1 -5
  499. package/src/modules/products/components/pages/ProductEdit.vue +1 -1
  500. package/src/modules/products/components/pages/Products.vue +2 -2
  501. package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
  502. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  503. package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
  504. package/src/modules/products/components/sections/MenuSection.vue +2 -2
  505. package/src/modules/products/components/sections/PopularProducts.vue +2 -2
  506. package/src/modules/products/components/sections/SectionProduct.vue +3 -3
  507. package/src/modules/products/products.client.js +0 -2
  508. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  509. package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
  510. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  511. package/src/modules/spots/components/layouts/Spots.vue +0 -2
  512. package/src/modules/spots/components/pages/Spot.vue +4 -4
  513. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  514. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  515. package/src/modules/spots/components/sections/Places.vue +1 -1
  516. package/src/modules/users/components/blocks/CardUser.vue +3 -3
  517. package/src/modules/users/components/pages/Profile.vue +5 -5
  518. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  519. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  520. package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
  521. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  522. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  523. package/src/modules/users/components/sections/FeaturedUsers.vue +76 -14
  524. package/src/modules/users/users.client.js +5 -0
  525. package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
  526. package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
  527. package/src/styles/base/borders.scss +4 -0
  528. package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
  529. package/src/styles/config.scss +15 -9
  530. package/src/styles/layout.scss +37 -8
  531. package/src/styles/typography.scss +24 -24
  532. package/src/modules/products/components/sections/SortProducts.vue +0 -74
  533. /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../../../../components/Feed/Feed.vue.cjs"),N=require("../../../../components/Block/Block.vue.cjs"),x=require("../../../../components/Popup/Popup.vue2.cjs"),u=require("../../../../components/Field/Field.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),V=require("../elements/ButtonCheck.vue.cjs"),q=require("../../../icons/navigation/IconDelete.vue.cjs"),B=require("../../../icons/navigation/IconAdd.vue.cjs"),b=require("vue-router"),E=require("../../store/events.cjs"),C=require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m=require("../../store/tickets.cjs");require("./EditEventTickets.vue2.cjs");const T={key:0,class:"h-100 pd-thin"},P={class:"mn-b-medium flex-v-center flex-nowrap flex"},S=e.createElementVNode("h2",{class:"mn-r-medium"},"Tickets",-1),D=["onClick"],U={class:"radius-big bg-grey gap-small pd-medium flex-v-center flex-nowrap flex pos-relative mn-b-thin"},A=["href"],F=["src"],O={class:"mn-r-auto"},M={class:"h4"},R={class:"h5 t-transp mn-b-thin"},I={class:"pd-r-thin pd-l-thin pd-b-nano pd-t-nano bg-second radius-extra t-white t-medium d-block w-max uppercase"},L={__name:"EditEventTickets",setup(Q){var h;const g=b.useRoute();b.useRouter();let n=e.ref(null);const c=e.ref([{name:"",email:"",target:(h=n.value)==null?void 0:h._id,type:"event",quantity:1}]),i=e.ref(!1);function _(r){var l;i.value=!0,c.value=[{name:"",email:"",target:(l=n.value)==null?void 0:l._id,type:"event",quantity:1}]}function p(){i.value=!1}const s=e.ref(!1);e.onMounted(async()=>{const r=await E.read({user:C.state.user._id,url:g.params.url});n.value=r.pop()});async function w(){try{const r=await m.actions.create(c.value);s.value=!s.value}catch(r){console.log(r)}}async function f(r,l){if(confirm("Are you sure you want to deactivate this event?"))try{const t=await m.actions.update({...r,status:l});s.value=!s.value}catch(t){console.error(t)}}return(r,l)=>e.unref(n)?(e.openBlock(),e.createElementBlock("article",T,[e.createElementVNode("header",P,[S,e.createElementVNode("button",{onClick:l[0]||(l[0]=t=>_()),class:"radius-extra uppercase button-small flex-child flex-child-shrink-0 hover-scale-1 cursor-pointer t-white bg-second"}," Add Tickets "),e.createVNode(V.default,{onQrcodecheck:l[1]||(l[1]=t=>s.value=!s.value),class:"w-100 pd-medium mn-auto"})]),e.createVNode(x.default,{title:"Добавить участника",onClosePopup:p,isPopupOpen:i.value,class:"w-max-40r"},{default:e.withCtx(()=>[e.createVNode(N.default,{title:"Add tickets",placeholder:"No parameters added yet",class:"cols-1 mn-b-thin gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:a},[e.createVNode(u.default,{field:t.name,"onUpdate:field":o=>t.name=o,placeholder:"Name",class:"w-50 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.default,{field:t.email,"onUpdate:field":o=>t.email=o,placeholder:"Email",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.default,{field:t.quantity,"onUpdate:field":o=>t.quantity=o,placeholder:"Quantity",type:"number",class:"w-25 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),a<1?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[2]||(l[2]=()=>c.value.push({name:"",value:"",target:e.unref(n)._id,type:"event",quantity:1})),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"},[e.createVNode(B.default,{class:"i-medium",fill:"rgb(var(--white)"})])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:()=>c.value.splice(a,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(q.default,{class:"i-medium",fill:"rgb(var(--white)"})],8,D))]))),128)),e.createVNode(d.default,{submit:w,callback:p,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Create Tickets ")]),_:1})]),_:1})]),_:1},8,["isPopupOpen"]),e.createVNode(y.default,{search:!0,states:{empty:{title:"No Tickets Found",description:"Currently, there are no tickets."}},store:{read:t=>m.actions.read(t),state:null},options:{target:e.unref(n)._id},external:s.value},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(a,o)=>{var v,k;return e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("a",{href:a.image,target:"_blank"},[e.createElementVNode("img",{src:a.qrcode,class:"radius-small h-5r w-5r"},null,8,F)],8,A),e.createElementVNode("div",O,[e.createElementVNode("p",M,e.toDisplayString(((v=a.client_refactor)==null?void 0:v.name)||"No name")+", "+e.toDisplayString(a.role),1),e.createElementVNode("p",R,e.toDisplayString(((k=a.client_refactor)==null?void 0:k.email)||"No email"),1),e.createElementVNode("span",I,e.toDisplayString(a.status),1)]),a.status!=="deactivated"?(e.openBlock(),e.createBlock(d.default,{key:0,submit:()=>f(a,"deactivated"),callback:r.redirectTo,class:"w-min h-min pd-small bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Deactivate ")]),_:2},1032,["submit","callback"])):e.createCommentVNode("",!0),a.status==="deactivated"||a.status==="used"?(e.openBlock(),e.createBlock(d.default,{key:1,submit:()=>f(a,"unused"),callback:r.redirectTo,class:"w-min h-min pd-small bg-green t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Activate ")]),_:2},1032,["submit","callback"])):e.createCommentVNode("",!0)])}),256))]),_:1},8,["store","options","external"])])):e.createCommentVNode("",!0)}};exports.default=L;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../../../../components/Feed/Feed.vue.cjs"),N=require("../../../../components/Block/Block.vue.cjs"),x=require("../../../../components/Popup/Popup.vue2.cjs"),u=require("../../../../components/Field/Field.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),V=require("../elements/ButtonCheck.vue.cjs"),q=require("../../../icons/navigation/IconDelete.vue.cjs"),B=require("../../../icons/navigation/IconAdd.vue.cjs"),b=require("vue-router"),E=require("../../store/events.cjs"),C=require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m=require("../../store/tickets.cjs");require("./EditEventTickets.vue2.cjs");const T={key:0,class:"h-100 pd-thin"},P={class:"mn-b-medium flex-v-center flex-nowrap flex"},S=e.createElementVNode("h2",{class:"mn-r-medium"},"Tickets",-1),D=["onClick"],U={class:"radius-big bg-light gap-small pd-medium flex-v-center flex-nowrap flex pos-relative mn-b-thin"},A=["href"],F=["src"],O={class:"mn-r-auto"},M={class:"h4"},R={class:"h5 t-transp mn-b-thin"},I={class:"pd-r-thin pd-l-thin pd-b-nano pd-t-nano bg-second radius-extra t-white t-medium d-block w-max uppercase"},L={__name:"EditEventTickets",setup(Q){var h;const g=b.useRoute();b.useRouter();let n=e.ref(null);const c=e.ref([{name:"",email:"",target:(h=n.value)==null?void 0:h._id,type:"event",quantity:1}]),i=e.ref(!1);function _(r){var l;i.value=!0,c.value=[{name:"",email:"",target:(l=n.value)==null?void 0:l._id,type:"event",quantity:1}]}function p(){i.value=!1}const s=e.ref(!1);e.onMounted(async()=>{const r=await E.read({user:C.state.user._id,url:g.params.url});n.value=r.pop()});async function w(){try{const r=await m.actions.create(c.value);s.value=!s.value}catch(r){console.log(r)}}async function f(r,l){if(confirm("Are you sure you want to deactivate this event?"))try{const t=await m.actions.update({...r,status:l});s.value=!s.value}catch(t){console.error(t)}}return(r,l)=>e.unref(n)?(e.openBlock(),e.createElementBlock("article",T,[e.createElementVNode("header",P,[S,e.createElementVNode("button",{onClick:l[0]||(l[0]=t=>_()),class:"radius-extra uppercase button-small flex-child flex-child-shrink-0 hover-scale-1 cursor-pointer t-white bg-second"}," Add Tickets "),e.createVNode(V.default,{onQrcodecheck:l[1]||(l[1]=t=>s.value=!s.value),class:"w-100 pd-medium mn-auto"})]),e.createVNode(x.default,{title:"Добавить участника",onClosePopup:p,isPopupOpen:i.value,class:"w-max-40r"},{default:e.withCtx(()=>[e.createVNode(N.default,{title:"Add tickets",placeholder:"No parameters added yet",class:"cols-1 mn-b-thin gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:a},[e.createVNode(u.default,{field:t.name,"onUpdate:field":o=>t.name=o,placeholder:"Name",class:"w-50 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.default,{field:t.email,"onUpdate:field":o=>t.email=o,placeholder:"Email",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.default,{field:t.quantity,"onUpdate:field":o=>t.quantity=o,placeholder:"Quantity",type:"number",class:"w-25 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),a<1?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[2]||(l[2]=()=>c.value.push({name:"",value:"",target:e.unref(n)._id,type:"event",quantity:1})),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"},[e.createVNode(B.default,{class:"i-medium",fill:"rgb(var(--white)"})])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:()=>c.value.splice(a,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(q.default,{class:"i-medium",fill:"rgb(var(--white)"})],8,D))]))),128)),e.createVNode(d.default,{submit:w,callback:p,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Create Tickets ")]),_:1})]),_:1})]),_:1},8,["isPopupOpen"]),e.createVNode(y.default,{search:!0,states:{empty:{title:"No Tickets Found",description:"Currently, there are no tickets."}},store:{read:t=>m.actions.read(t),state:null},options:{target:e.unref(n)._id},external:s.value},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(a,o)=>{var v,k;return e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("a",{href:a.image,target:"_blank"},[e.createElementVNode("img",{src:a.qrcode,class:"radius-small h-5r w-5r"},null,8,F)],8,A),e.createElementVNode("div",O,[e.createElementVNode("p",M,e.toDisplayString(((v=a.client_refactor)==null?void 0:v.name)||"No name")+", "+e.toDisplayString(a.role),1),e.createElementVNode("p",R,e.toDisplayString(((k=a.client_refactor)==null?void 0:k.email)||"No email"),1),e.createElementVNode("span",I,e.toDisplayString(a.status),1)]),a.status!=="deactivated"?(e.openBlock(),e.createBlock(d.default,{key:0,submit:()=>f(a,"deactivated"),callback:r.redirectTo,class:"w-min h-min pd-small bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Deactivate ")]),_:2},1032,["submit","callback"])):e.createCommentVNode("",!0),a.status==="deactivated"||a.status==="used"?(e.openBlock(),e.createBlock(d.default,{key:1,submit:()=>f(a,"unused"),callback:r.redirectTo,class:"w-min h-min pd-small bg-green t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Activate ")]),_:2},1032,["submit","callback"])):e.createCommentVNode("",!0)])}),256))]),_:1},8,["store","options","external"])])):e.createCommentVNode("",!0)}};exports.default=L;
@@ -11,12 +11,12 @@ import { useRoute as R, useRouter as L } from "vue-router";
11
11
  import { read as M } from "../../store/events.js";
12
12
  import { state as j } from "../../../auth/store/auth.js";
13
13
  import "../../../organizations/store/organizations.js";
14
- import { actions as y } from "../../store/tickets.js";
14
+ import { actions as k } from "../../store/tickets.js";
15
15
  import "./EditEventTickets.vue2.js";
16
16
  const z = {
17
17
  key: 0,
18
18
  class: "h-100 pd-thin"
19
- }, G = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, H = /* @__PURE__ */ r("h2", { class: "mn-r-medium" }, "Tickets", -1), I = ["onClick"], J = { class: "radius-big bg-grey gap-small pd-medium flex-v-center flex-nowrap flex pos-relative mn-b-thin" }, K = ["href"], W = ["src"], X = { class: "mn-r-auto" }, Y = { class: "h4" }, Z = { class: "h5 t-transp mn-b-thin" }, ee = { class: "pd-r-thin pd-l-thin pd-b-nano pd-t-nano bg-second radius-extra t-white t-medium d-block w-max uppercase" }, ve = {
19
+ }, G = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, H = /* @__PURE__ */ r("h2", { class: "mn-r-medium" }, "Tickets", -1), I = ["onClick"], J = { class: "radius-big bg-light gap-small pd-medium flex-v-center flex-nowrap flex pos-relative mn-b-thin" }, K = ["href"], W = ["src"], X = { class: "mn-r-auto" }, Y = { class: "h4" }, Z = { class: "h5 t-transp mn-b-thin" }, ee = { class: "pd-r-thin pd-l-thin pd-b-nano pd-t-nano bg-second radius-extra t-white t-medium d-block w-max uppercase" }, ve = {
20
20
  __name: "EditEventTickets",
21
21
  setup(te) {
22
22
  var T;
@@ -40,7 +40,7 @@ const z = {
40
40
  quantity: 1
41
41
  }];
42
42
  }
43
- function k() {
43
+ function y() {
44
44
  h.value = !1;
45
45
  }
46
46
  const n = p(!1);
@@ -50,7 +50,7 @@ const z = {
50
50
  });
51
51
  async function A() {
52
52
  try {
53
- const s = await y.create(m.value);
53
+ const s = await k.create(m.value);
54
54
  n.value = !n.value;
55
55
  } catch (s) {
56
56
  console.log(s);
@@ -59,7 +59,7 @@ const z = {
59
59
  async function x(s, a) {
60
60
  if (confirm("Are you sure you want to deactivate this event?"))
61
61
  try {
62
- const e = await y.update({ ...s, status: a });
62
+ const e = await k.update({ ...s, status: a });
63
63
  n.value = !n.value;
64
64
  } catch (e) {
65
65
  console.error(e);
@@ -79,7 +79,7 @@ const z = {
79
79
  ]),
80
80
  l(O, {
81
81
  title: "Добавить участника",
82
- onClosePopup: k,
82
+ onClosePopup: y,
83
83
  isPopupOpen: h.value,
84
84
  class: "w-max-40r"
85
85
  }, {
@@ -135,7 +135,7 @@ const z = {
135
135
  ]))), 128)),
136
136
  l(w, {
137
137
  submit: A,
138
- callback: k,
138
+ callback: y,
139
139
  class: "w-100 bg-black t-white"
140
140
  }, {
141
141
  default: u(() => [
@@ -158,7 +158,7 @@ const z = {
158
158
  }
159
159
  },
160
160
  store: {
161
- read: (e) => y.read(e),
161
+ read: (e) => k.read(e),
162
162
  state: null
163
163
  },
164
164
  options: {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const d=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../sections/HeroEvent.vue.cjs"),g=require("../sections/SectionMainGuest.vue.cjs"),k=require("../sections/SectionSpecialGuests.vue.cjs"),D=require("../sections/SectionLineup.vue.cjs"),y=require("../sections/SectionPreviousEvents.vue.cjs"),f=require("../blocks/CardEvent.vue.cjs"),T=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),B=require("../elements/ButtonJoin.vue.cjs"),h=require("../../../community/components/sections/Comments.vue.cjs"),C=require("../../../constructor/components/elements/Image.vue.cjs"),b=require("../../store/events.cjs"),_=require("../../store/tickets.cjs"),u=require("../../../auth/store/auth.cjs"),N=require("vue-router"),V={class:"pd-thin"},q=t.createElementVNode("h2",{class:"mn-b-big w-100 t-center"},"Event Details",-1),E={__name:"Event",setup(x){const s=N.useRoute(),r=t.ref(null),c=({ticket:a,hasTicket:o,targetId:n})=>{_.mutations.handleTicketUpdate(e.value,a,o,n),console.log("HANDLE TICKET UPDATE",a,e.value),r.value=a.qrcode},p={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:C.default};function v(a){return a.type==="Textarea"?{innerHTML:a.content,class:"p-medium"}:a.type==="H2"?{innerHTML:a.content,class:"h3"}:a.type==="Caption"?{innerHTML:a.content}:a.type==="ImageUpload"?{src:a.content}:{}}const e=t.ref(null),l=t.ref(!0);return t.onMounted(async()=>{l.value=!0;const a=await b.read({user:u.state.user._id,url:s.params.url});e.value=a[0],l.value=!1}),(a,o)=>(t.openBlock(),t.createElementBlock("section",V,[t.createVNode(t.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:t.withCtx(()=>[l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList(3,n=>t.createVNode(T.default,{key:n})),64)):t.createCommentVNode("",!0)]),_:1}),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx(()=>[!l.value&&!e.value?(t.openBlock(),t.createBlock(d.default,{key:0,title:"No Event Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):t.createCommentVNode("",!0)]),_:1}),!l.value&&e.value&&e.value.special?(t.openBlock(),t.createBlock(m.default,{key:0,content:{title:e.value.name,description:e.value.description,ticketLinkStripe:e.value.specialData.ticketLinkStripe,ticketText:e.value.specialData.ticketText,cover:e.value.cover,subtitle:e.value.specialData.subtitle,logos:e.value.specialData.logos,video:e.value.specialData.video,ticketTextButton:e.value.specialData.ticketTextButton},options:{date:e.value.date.start,price:e.value.specialData.ticketPrice},class:"mn-b-thin"},null,8,["content","options"])):t.createCommentVNode("",!0),!l.value&&e.value&&e.value.special&&e.value.specialData.guestTitle?(t.openBlock(),t.createBlock(g.default,{key:1,content:{title:e.value.specialData.guestTitle,description:e.value.specialData.guestDescription,socials:{twitter:e.value.specialData.guestTwitter,telegram:e.value.specialData.guestTelegram,instagram:e.value.specialData.guestInstagram,facebook:e.value.specialData.guestFacebook},video:e.value.specialData.guestVideo,spotify:e.value.specialData.guestSpotify,soundcloud:e.value.specialData.guestSoundcloud,youtube:e.value.specialData.guestYoutube},class:"mn-b-thin"},null,8,["content"])):t.createCommentVNode("",!0),!l.value&&e.value&&e.value.special?(t.openBlock(),t.createElementBlock("section",{key:2,style:t.normalizeStyle(`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const d=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../sections/HeroEvent.vue.cjs"),g=require("../sections/SectionMainGuest.vue.cjs"),k=require("../sections/SectionSpecialGuests.vue.cjs"),D=require("../sections/SectionLineup.vue.cjs"),y=require("../sections/SectionPreviousEvents.vue.cjs"),f=require("../blocks/CardEvent.vue.cjs"),T=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),h=require("../elements/ButtonJoin.vue.cjs"),B=require("../../../community/components/sections/Comments.vue.cjs"),C=require("../../../constructor/components/elements/Image.vue.cjs"),b=require("../../store/events.cjs"),_=require("../../store/tickets.cjs"),u=require("../../../auth/store/auth.cjs"),N=require("vue-router"),V={class:"pd-thin"},q=t.createElementVNode("h2",{class:"mn-b-big w-100 t-center"},"Event Details",-1),E={__name:"Event",setup(x){const s=N.useRoute(),r=t.ref(null),c=({ticket:a,hasTicket:o,targetId:n})=>{_.mutations.handleTicketUpdate(e.value,a,o,n),console.log("HANDLE TICKET UPDATE",a,e.value),r.value=a.qrcode},p={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:C.default};function v(a){return a.type==="Textarea"?{innerHTML:a.content,class:"p-medium"}:a.type==="H2"?{innerHTML:a.content,class:"h3"}:a.type==="Caption"?{innerHTML:a.content}:a.type==="ImageUpload"?{src:a.content}:{}}const e=t.ref(null),l=t.ref(!0);return t.onMounted(async()=>{l.value=!0;const a=await b.read({user:u.state.user._id,url:s.params.url});e.value=a[0],l.value=!1}),(a,o)=>(t.openBlock(),t.createElementBlock("section",V,[t.createVNode(t.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-light radius-big"},{default:t.withCtx(()=>[l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList(3,n=>t.createVNode(T.default,{key:n})),64)):t.createCommentVNode("",!0)]),_:1}),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx(()=>[!l.value&&!e.value?(t.openBlock(),t.createBlock(d.default,{key:0,title:"No Event Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-light radius-big"})):t.createCommentVNode("",!0)]),_:1}),!l.value&&e.value&&e.value.special?(t.openBlock(),t.createBlock(m.default,{key:0,content:{title:e.value.name,description:e.value.description,ticketLinkStripe:e.value.specialData.ticketLinkStripe,ticketText:e.value.specialData.ticketText,cover:e.value.cover,subtitle:e.value.specialData.subtitle,logos:e.value.specialData.logos,video:e.value.specialData.video,ticketTextButton:e.value.specialData.ticketTextButton},options:{date:e.value.date.start,price:e.value.specialData.ticketPrice},class:"mn-b-thin"},null,8,["content","options"])):t.createCommentVNode("",!0),!l.value&&e.value&&e.value.special&&e.value.specialData.guestTitle?(t.openBlock(),t.createBlock(g.default,{key:1,content:{title:e.value.specialData.guestTitle,description:e.value.specialData.guestDescription,socials:{twitter:e.value.specialData.guestTwitter,telegram:e.value.specialData.guestTelegram,instagram:e.value.specialData.guestInstagram,facebook:e.value.specialData.guestFacebook},video:e.value.specialData.guestVideo,spotify:e.value.specialData.guestSpotify,soundcloud:e.value.specialData.guestSoundcloud,youtube:e.value.specialData.guestYoutube},class:"mn-b-thin"},null,8,["content"])):t.createCommentVNode("",!0),!l.value&&e.value&&e.value.special?(t.openBlock(),t.createElementBlock("section",{key:2,style:t.normalizeStyle(`
2
2
  background-size: 100%; background-repeat: no-repeat;
3
3
  background-image: url(${e.value.specialData.lineupBackground});
4
- `),class:"mn-b-thin t-white gap-big w-100 h-max o-hidden radius-big pd-big pos-relative bg-black"},[q,t.createElementVNode("div",{class:t.normalizeClass(["gap-big mn-b-thin",{"cols-2":e.value.specialData.guests.length>0,"cols-1":e.value.specialData.guests.length>1}])},[e.value.specialData.guests.length>0?(t.openBlock(),t.createBlock(k.default,{key:0,content:{title:"Residents",guests:e.value.specialData.guests}},null,8,["content"])):t.createCommentVNode("",!0),t.createVNode(D.default,{content:{title:"Lineup",lineup:e.value.specialData.lineup}},null,8,["content"])],2),t.createVNode(y.default,{content:{ticket:e.value.specialData.ticketImage,ticketTextButton:e.value.specialData.ticketTextButton,paymentText:e.value.specialData.paymentText,paymentContact:e.value.specialData.paymentContact,previousTitle:e.value.specialData.previousTitle,previousDescription:e.value.specialData.previousDescription,previousLink:e.value.specialData.previousLink,previousLinkText:e.value.specialData.previousLinkText},options:{link:e.value.specialData.ticketLinkStripe,video:e.value.specialData.previousVideo}},null,8,["content","options"])],4)):t.createCommentVNode("",!0),!l.value&&e.value&&!e.value.special?(t.openBlock(),t.createBlock(f.default,{key:3,onClick:o[0]||(o[0]=n=>a.$router.push({name:"Event",params:{url:e.value.url}})),event:e.value,owner:e.value.owner,user:u.state.user._id,type:"normal",class:"mn-b-medium bg-grey radius-big"},{default:t.withCtx(()=>[u.state.user._id?(t.openBlock(),t.createBlock(B.default,{key:0,type:"event",hasTicket:e.value.hasTicket,targetId:e.value._id,userId:u.state.user._id,class:"mn-b-small w-100 pd-medium mn-auto",onUpdateTicket:c},null,8,["hasTicket","targetId","userId"])):t.createCommentVNode("",!0),t.createElementVNode("section",null,[e.value&&e.value.content?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.value.content,(n,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p[n.type]),t.mergeProps({key:i,index:i,component:n,prop:n,class:n.class,content:"content",ref_for:!0},v(n),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):t.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):t.createCommentVNode("",!0),!l.value&&e.value&&!e.value.special?(t.openBlock(),t.createBlock(h.default,{key:4,type:"event",target:e.value._id,owner:u.state.user._id},null,8,["target","owner"])):t.createCommentVNode("",!0)]))}};exports.default=E;
4
+ `),class:"mn-b-thin t-white gap-big w-100 h-max o-hidden radius-big pd-big pos-relative bg-black"},[q,t.createElementVNode("div",{class:t.normalizeClass(["gap-big mn-b-thin",{"cols-2":e.value.specialData.guests.length>0,"cols-1":e.value.specialData.guests.length>1}])},[e.value.specialData.guests.length>0?(t.openBlock(),t.createBlock(k.default,{key:0,content:{title:"Residents",guests:e.value.specialData.guests}},null,8,["content"])):t.createCommentVNode("",!0),t.createVNode(D.default,{content:{title:"Lineup",lineup:e.value.specialData.lineup}},null,8,["content"])],2),t.createVNode(y.default,{content:{ticket:e.value.specialData.ticketImage,ticketTextButton:e.value.specialData.ticketTextButton,paymentText:e.value.specialData.paymentText,paymentContact:e.value.specialData.paymentContact,previousTitle:e.value.specialData.previousTitle,previousDescription:e.value.specialData.previousDescription,previousLink:e.value.specialData.previousLink,previousLinkText:e.value.specialData.previousLinkText},options:{link:e.value.specialData.ticketLinkStripe,video:e.value.specialData.previousVideo}},null,8,["content","options"])],4)):t.createCommentVNode("",!0),!l.value&&e.value&&!e.value.special?(t.openBlock(),t.createBlock(f.default,{key:3,onClick:o[0]||(o[0]=n=>a.$router.push({name:"Event",params:{url:e.value.url}})),event:e.value,owner:e.value.owner,user:u.state.user._id,type:"normal",class:"mn-b-medium bg-light radius-big"},{default:t.withCtx(()=>[u.state.user._id?(t.openBlock(),t.createBlock(h.default,{key:0,type:"event",hasTicket:e.value.hasTicket,targetId:e.value._id,userId:u.state.user._id,class:"mn-b-small w-100 pd-medium mn-auto",onUpdateTicket:c},null,8,["hasTicket","targetId","userId"])):t.createCommentVNode("",!0),t.createElementVNode("section",null,[e.value&&e.value.content?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.value.content,(n,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p[n.type]),t.mergeProps({key:i,index:i,component:n,prop:n,class:n.class,content:"content",ref_for:!0},v(n),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):t.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):t.createCommentVNode("",!0),!l.value&&e.value&&!e.value.special?(t.openBlock(),t.createBlock(B.default,{key:4,type:"event",target:e.value._id,owner:u.state.user._id},null,8,["target","owner"])):t.createCommentVNode("",!0)]))}};exports.default=E;
@@ -1,4 +1,4 @@
1
- import { ref as p, onMounted as h, openBlock as a, createElementBlock as c, createVNode as u, TransitionGroup as b, withCtx as v, Fragment as g, renderList as f, createCommentVNode as n, Transition as x, createBlock as s, normalizeStyle as L, createElementVNode as m, normalizeClass as w, resolveDynamicComponent as C, mergeProps as B } from "vue";
1
+ import { ref as p, onMounted as h, openBlock as a, createElementBlock as c, createVNode as u, TransitionGroup as b, withCtx as v, Fragment as g, renderList as f, createCommentVNode as l, Transition as x, createBlock as s, normalizeStyle as L, createElementVNode as m, normalizeClass as w, resolveDynamicComponent as C, mergeProps as B } from "vue";
2
2
  import "../../../../components/Loader/Loader.vue.js";
3
3
  import E from "../../../../components/EmptyState/EmptyState.vue.js";
4
4
  import $ from "../sections/HeroEvent.vue.js";
@@ -30,34 +30,34 @@ const R = { class: "pd-thin" }, G = /* @__PURE__ */ m("h2", { class: "mn-b-big w
30
30
  function T(t) {
31
31
  return t.type === "Textarea" ? { innerHTML: t.content, class: "p-medium" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
32
32
  }
33
- const e = p(null), l = p(!0);
33
+ const e = p(null), n = p(!0);
34
34
  return h(async () => {
35
- l.value = !0;
35
+ n.value = !0;
36
36
  const t = await F({ user: o.user._id, url: D.params.url });
37
- e.value = t[0], l.value = !1;
37
+ e.value = t[0], n.value = !1;
38
38
  }), (t, r) => (a(), c("section", R, [
39
39
  u(b, {
40
40
  tag: "ul",
41
41
  name: "fade",
42
- class: "o-hidden bg-grey radius-big"
42
+ class: "o-hidden bg-light radius-big"
43
43
  }, {
44
44
  default: v(() => [
45
- l.value ? (a(), c(g, { key: 0 }, f(3, (i) => u(N, { key: i })), 64)) : n("", !0)
45
+ n.value ? (a(), c(g, { key: 0 }, f(3, (i) => u(N, { key: i })), 64)) : l("", !0)
46
46
  ]),
47
47
  _: 1
48
48
  }),
49
49
  u(x, { name: "fade" }, {
50
50
  default: v(() => [
51
- !l.value && !e.value ? (a(), s(E, {
51
+ !n.value && !e.value ? (a(), s(E, {
52
52
  key: 0,
53
53
  title: "No Event Found",
54
54
  description: "Currently, there are no events available. Please check back later.",
55
- class: "pd-medium mn-b-thin bg-grey radius-big"
56
- })) : n("", !0)
55
+ class: "pd-medium mn-b-thin bg-light radius-big"
56
+ })) : l("", !0)
57
57
  ]),
58
58
  _: 1
59
59
  }),
60
- !l.value && e.value && e.value.special ? (a(), s($, {
60
+ !n.value && e.value && e.value.special ? (a(), s($, {
61
61
  key: 0,
62
62
  content: {
63
63
  title: e.value.name,
@@ -75,8 +75,8 @@ const R = { class: "pd-thin" }, G = /* @__PURE__ */ m("h2", { class: "mn-b-big w
75
75
  price: e.value.specialData.ticketPrice
76
76
  },
77
77
  class: "mn-b-thin"
78
- }, null, 8, ["content", "options"])) : n("", !0),
79
- !l.value && e.value && e.value.special && e.value.specialData.guestTitle ? (a(), s(I, {
78
+ }, null, 8, ["content", "options"])) : l("", !0),
79
+ !n.value && e.value && e.value.special && e.value.specialData.guestTitle ? (a(), s(I, {
80
80
  key: 1,
81
81
  content: {
82
82
  title: e.value.specialData.guestTitle,
@@ -93,8 +93,8 @@ const R = { class: "pd-thin" }, G = /* @__PURE__ */ m("h2", { class: "mn-b-big w
93
93
  youtube: e.value.specialData.guestYoutube
94
94
  },
95
95
  class: "mn-b-thin"
96
- }, null, 8, ["content"])) : n("", !0),
97
- !l.value && e.value && e.value.special ? (a(), c("section", {
96
+ }, null, 8, ["content"])) : l("", !0),
97
+ !n.value && e.value && e.value.special ? (a(), c("section", {
98
98
  key: 2,
99
99
  style: L(`
100
100
  background-size: 100%; background-repeat: no-repeat;
@@ -115,7 +115,7 @@ const R = { class: "pd-thin" }, G = /* @__PURE__ */ m("h2", { class: "mn-b-big w
115
115
  title: "Residents",
116
116
  guests: e.value.specialData.guests
117
117
  }
118
- }, null, 8, ["content"])) : n("", !0),
118
+ }, null, 8, ["content"])) : l("", !0),
119
119
  u(S, {
120
120
  content: {
121
121
  title: "Lineup",
@@ -139,15 +139,15 @@ const R = { class: "pd-thin" }, G = /* @__PURE__ */ m("h2", { class: "mn-b-big w
139
139
  video: e.value.specialData.previousVideo
140
140
  }
141
141
  }, null, 8, ["content", "options"])
142
- ], 4)) : n("", !0),
143
- !l.value && e.value && !e.value.special ? (a(), s(M, {
142
+ ], 4)) : l("", !0),
143
+ !n.value && e.value && !e.value.special ? (a(), s(M, {
144
144
  key: 3,
145
145
  onClick: r[0] || (r[0] = (i) => t.$router.push({ name: "Event", params: { url: e.value.url } })),
146
146
  event: e.value,
147
147
  owner: e.value.owner,
148
148
  user: o.user._id,
149
149
  type: "normal",
150
- class: "mn-b-medium bg-grey radius-big"
150
+ class: "mn-b-medium bg-light radius-big"
151
151
  }, {
152
152
  default: v(() => [
153
153
  o.user._id ? (a(), s(P, {
@@ -158,7 +158,7 @@ const R = { class: "pd-thin" }, G = /* @__PURE__ */ m("h2", { class: "mn-b-big w
158
158
  userId: o.user._id,
159
159
  class: "mn-b-small w-100 pd-medium mn-auto",
160
160
  onUpdateTicket: _
161
- }, null, 8, ["hasTicket", "targetId", "userId"])) : n("", !0),
161
+ }, null, 8, ["hasTicket", "targetId", "userId"])) : l("", !0),
162
162
  m("section", null, [
163
163
  e.value && e.value.content ? (a(!0), c(g, { key: 0 }, f(e.value.content, (i, d) => (a(), s(C(y[i.type]), B({
164
164
  key: d,
@@ -168,17 +168,17 @@ const R = { class: "pd-thin" }, G = /* @__PURE__ */ m("h2", { class: "mn-b-big w
168
168
  class: i.class,
169
169
  content: "content",
170
170
  ref_for: !0
171
- }, T(i), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : n("", !0)
171
+ }, T(i), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : l("", !0)
172
172
  ])
173
173
  ]),
174
174
  _: 1
175
- }, 8, ["event", "owner", "user"])) : n("", !0),
176
- !l.value && e.value && !e.value.special ? (a(), s(V, {
175
+ }, 8, ["event", "owner", "user"])) : l("", !0),
176
+ !n.value && e.value && !e.value.special ? (a(), s(V, {
177
177
  key: 4,
178
178
  type: "event",
179
179
  target: e.value._id,
180
180
  owner: o.user._id
181
- }, null, 8, ["target", "owner"])) : n("", !0)
181
+ }, null, 8, ["target", "owner"])) : l("", !0)
182
182
  ]));
183
183
  }
184
184
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const f=require("../../../../components/Feed/Feed.vue.cjs"),g=require("../../../../components/DatePicker/DatePicker.vue.cjs"),b=require("../sections/List.vue.cjs"),h=require("../blocks/CardEvent.vue.cjs"),a=require("../../store/events.cjs"),u=require("../../../auth/store/auth.cjs"),y={class:"pd-thin"},_=e.createElementVNode("header",{class:"mn-b-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"}," Featured ")],-1),q={class:"mn-b-medium flex-v-center flex-nowrap flex"},E=e.createElementVNode("h2",{class:"mn-r-medium"}," All Events ",-1),v={__name:"Events",setup(k){const l=m.useRoute(),d=m.useRouter(),c=p(new Date);function p(t){return`${t.getDate().toString().padStart(2,"0")}${(t.getMonth()+1).toString().padStart(2,"0")}${t.getFullYear()}`}if(l.query){const t=l.query,n={tags:t.tags?t.tags.split(","):null,date:t.date?t.date:c};a.state.filter=n}else{const t={date:c};a.state.filter=t}return e.watch(()=>a.state.filter,(t,n)=>{const r={...l.query};Object.keys(n).forEach(o=>{r[o]&&delete r[o]});const i=Object.fromEntries(Object.entries(t).filter(([o,s])=>Array.isArray(s)&&s.length>0||typeof s=="string"&&s).map(([o,s])=>[o,Array.isArray(s)?s.join(","):s]));Object.assign(r,i),d.push({query:r})},{deep:!0}),(t,n)=>(e.openBlock(),e.createElementBlock("section",y,[_,e.createVNode(b.default,{user:u.state.user._id,class:"bg-grey mn-b-medium radius-big",phase:"planned"},null,8,["user"]),e.createElementVNode("header",q,[E,e.createElementVNode("button",{onClick:n[0]||(n[0]=r=>e.unref(d).push({name:"Create Event"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(g.default,{date:a.state.filter.date,"onUpdate:date":n[1]||(n[1]=r=>a.state.filter.date=r),locale:t.$i18n.locale,class:"radius-semi o-hidden bg-grey mn-b-thin pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),e.createVNode(f.default,{states:{empty:{title:"No Events Found",description:"Currently, there are no events available."}},store:{read:r=>a.read(r),state:a.state},options:{user:u.state.user._id,date:a.state.filter.date,limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,o)=>(e.openBlock(),e.createBlock(h.default,{onClick:s=>t.$router.push({name:"Event",params:{url:i.url}}),key:i._id,event:i,user:u.state.user._id,type:"normal",class:"bg-grey radius-big mn-b-medium"},null,8,["onClick","event","user"]))),128))]),_:1},8,["store","options"])]))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const f=require("../../../../components/Feed/Feed.vue.cjs"),g=require("../../../../components/DatePicker/DatePicker.vue.cjs"),h=require("../sections/List.vue.cjs"),b=require("../blocks/CardEvent.vue.cjs"),a=require("../../store/events.cjs"),u=require("../../../auth/store/auth.cjs"),y={class:"pd-thin"},_=e.createElementVNode("header",{class:"mn-b-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"}," Featured ")],-1),q={class:"mn-b-medium flex-v-center flex-nowrap flex"},E=e.createElementVNode("h2",{class:"mn-r-medium"}," All Events ",-1),v={__name:"Events",setup(k){const l=m.useRoute(),d=m.useRouter(),c=p(new Date);function p(t){return`${t.getDate().toString().padStart(2,"0")}${(t.getMonth()+1).toString().padStart(2,"0")}${t.getFullYear()}`}if(l.query){const t=l.query,n={tags:t.tags?t.tags.split(","):null,date:t.date?t.date:c};a.state.filter=n}else{const t={date:c};a.state.filter=t}return e.watch(()=>a.state.filter,(t,n)=>{const r={...l.query};Object.keys(n).forEach(o=>{r[o]&&delete r[o]});const i=Object.fromEntries(Object.entries(t).filter(([o,s])=>Array.isArray(s)&&s.length>0||typeof s=="string"&&s).map(([o,s])=>[o,Array.isArray(s)?s.join(","):s]));Object.assign(r,i),d.push({query:r})},{deep:!0}),(t,n)=>(e.openBlock(),e.createElementBlock("section",y,[_,e.createVNode(h.default,{user:u.state.user._id,class:"bg-light mn-b-medium radius-big",phase:"planned"},null,8,["user"]),e.createElementVNode("header",q,[E,e.createElementVNode("button",{onClick:n[0]||(n[0]=r=>e.unref(d).push({name:"Create Event"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(g.default,{date:a.state.filter.date,"onUpdate:date":n[1]||(n[1]=r=>a.state.filter.date=r),locale:t.$i18n.locale,class:"radius-semi o-hidden bg-light mn-b-thin pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),e.createVNode(f.default,{states:{empty:{title:"No Events Found",description:"Currently, there are no events available."}},store:{read:r=>a.read(r),state:a.state},options:{user:u.state.user._id,date:a.state.filter.date,limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,o)=>(e.openBlock(),e.createBlock(b.default,{onClick:s=>t.$router.push({name:"Event",params:{url:i.url}}),key:i._id,event:i,user:u.state.user._id,type:"normal",class:"bg-light radius-big mn-b-medium"},null,8,["onClick","event","user"]))),128))]),_:1},8,["store","options"])]))}};exports.default=v;
@@ -1,4 +1,4 @@
1
- import { watch as g, openBlock as m, createElementBlock as f, createVNode as u, createElementVNode as i, unref as b, withCtx as h, Fragment as y, renderList as $, createBlock as w } from "vue";
1
+ import { watch as _, openBlock as m, createElementBlock as f, createVNode as u, createElementVNode as i, unref as g, withCtx as b, Fragment as y, renderList as $, createBlock as w } from "vue";
2
2
  import { useRoute as E, useRouter as k } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
@@ -14,8 +14,8 @@ const j = { class: "pd-thin" }, q = /* @__PURE__ */ i("header", { class: "mn-b-m
14
14
  ], -1), A = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, V = /* @__PURE__ */ i("h2", { class: "mn-r-medium" }, " All Events ", -1), I = {
15
15
  __name: "Events",
16
16
  setup(O) {
17
- const l = E(), c = k(), p = _(/* @__PURE__ */ new Date());
18
- function _(e) {
17
+ const l = E(), c = k(), p = h(/* @__PURE__ */ new Date());
18
+ function h(e) {
19
19
  return `${e.getDate().toString().padStart(2, "0")}${(e.getMonth() + 1).toString().padStart(2, "0")}${e.getFullYear()}`;
20
20
  }
21
21
  if (l.query) {
@@ -30,7 +30,7 @@ const j = { class: "pd-thin" }, q = /* @__PURE__ */ i("header", { class: "mn-b-m
30
30
  };
31
31
  n.filter = e;
32
32
  }
33
- return g(() => n.filter, (e, s) => {
33
+ return _(() => n.filter, (e, s) => {
34
34
  const t = { ...l.query };
35
35
  Object.keys(s).forEach((o) => {
36
36
  t[o] && delete t[o];
@@ -43,13 +43,13 @@ const j = { class: "pd-thin" }, q = /* @__PURE__ */ i("header", { class: "mn-b-m
43
43
  q,
44
44
  u(F, {
45
45
  user: d.user._id,
46
- class: "bg-grey mn-b-medium radius-big",
46
+ class: "bg-light mn-b-medium radius-big",
47
47
  phase: "planned"
48
48
  }, null, 8, ["user"]),
49
49
  i("header", A, [
50
50
  V,
51
51
  i("button", {
52
- onClick: s[0] || (s[0] = (t) => b(c).push({ name: "Create Event" })),
52
+ onClick: s[0] || (s[0] = (t) => g(c).push({ name: "Create Event" })),
53
53
  class: "radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"
54
54
  }, " + ")
55
55
  ]),
@@ -57,7 +57,7 @@ const j = { class: "pd-thin" }, q = /* @__PURE__ */ i("header", { class: "mn-b-m
57
57
  date: n.filter.date,
58
58
  "onUpdate:date": s[1] || (s[1] = (t) => n.filter.date = t),
59
59
  locale: e.$i18n.locale,
60
- class: "radius-semi o-hidden bg-grey mn-b-thin pd-l-zero pd-r-zero pd-medium"
60
+ class: "radius-semi o-hidden bg-light mn-b-thin pd-l-zero pd-r-zero pd-medium"
61
61
  }, null, 8, ["date", "locale"]),
62
62
  u(x, {
63
63
  states: {
@@ -76,7 +76,7 @@ const j = { class: "pd-thin" }, q = /* @__PURE__ */ i("header", { class: "mn-b-m
76
76
  limit: 10
77
77
  }
78
78
  }, {
79
- default: h(({
79
+ default: b(({
80
80
  items: t
81
81
  }) => [
82
82
  (m(!0), f(y, null, $(t, (a, o) => (m(), w(C, {
@@ -85,7 +85,7 @@ const j = { class: "pd-thin" }, q = /* @__PURE__ */ i("header", { class: "mn-b-m
85
85
  event: a,
86
86
  user: d.user._id,
87
87
  type: "normal",
88
- class: "bg-grey radius-big mn-b-medium"
88
+ class: "bg-light radius-big mn-b-medium"
89
89
  }, null, 8, ["onClick", "event", "user"]))), 128))
90
90
  ]),
91
91
  _: 1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs"),g=require("../blocks/CardEvent.vue.cjs"),m=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),c=require("../../store/events.cjs"),v={class:"feed"},f={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},creator:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},sortParam:{type:String,default:"date.start"},participant:{type:String,default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(i){const t=i,a=e.ref([]),n=e.ref(!1),l=e.ref(!0),s=e.ref(0),u=e.ref(20),d=async()=>{if(n.value){s.value+=u.value;const r=await c.read({skip:s.value,limit:u.value,category:t.category,sortOrder:t.sortOrder,sortParam:t.sortParam,participant:t.participant,creator:t.creator,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=[...a.value,...r]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const r=await c.read({skip:s.value,limit:u.value,category:t.category,participant:t.participant,sortOrder:t.sortOrder,sortParam:t.sortParam,user:t.user,owner:t.owner,creator:t.creator,date:t.selectedDate,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=r,l.value=!1}),(r,y)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,o=>(e.openBlock(),e.createBlock(m.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!l.value&&a.value.length<1?(e.openBlock(),e.createBlock(p.default,{key:0,title:"No Events Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"container"},{default:e.withCtx(()=>[!l.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(o,k)=>(e.openBlock(),e.createBlock(g.default,{onClick:h=>r.$router.push({name:"Event",params:{url:o.url}}),key:o._id,event:o,user:i.user,type:"normal",class:"bg-grey radius-big mn-b-medium"},null,8,["onClick","event","user"]))),128)):e.createCommentVNode("",!0),n.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs"),g=require("../blocks/CardEvent.vue.cjs"),m=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),c=require("../../store/events.cjs"),v={class:"feed"},f={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},creator:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},sortParam:{type:String,default:"date.start"},participant:{type:String,default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(s){const t=s,a=e.ref([]),n=e.ref(!1),l=e.ref(!0),i=e.ref(0),u=e.ref(20),d=async()=>{if(n.value){i.value+=u.value;const r=await c.read({skip:i.value,limit:u.value,category:t.category,sortOrder:t.sortOrder,sortParam:t.sortParam,participant:t.participant,creator:t.creator,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=[...a.value,...r]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const r=await c.read({skip:i.value,limit:u.value,category:t.category,participant:t.participant,sortOrder:t.sortOrder,sortParam:t.sortParam,user:t.user,owner:t.owner,creator:t.creator,date:t.selectedDate,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=r,l.value=!1}),(r,k)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-light radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,o=>(e.openBlock(),e.createBlock(m.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!l.value&&a.value.length<1?(e.openBlock(),e.createBlock(p.default,{key:0,title:"No Events Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-light radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"container"},{default:e.withCtx(()=>[!l.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(o,y)=>(e.openBlock(),e.createBlock(g.default,{onClick:h=>r.$router.push({name:"Event",params:{url:o.url}}),key:o._id,event:o,user:s.user,type:"normal",class:"bg-light radius-big mn-b-medium"},null,8,["onClick","event","user"]))),128)):e.createCommentVNode("",!0),n.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=f;
@@ -96,7 +96,7 @@ const P = { class: "feed" }, F = {
96
96
  p(f, {
97
97
  tag: "ul",
98
98
  name: "scaleTransition",
99
- class: "o-hidden bg-grey radius-big"
99
+ class: "o-hidden bg-light radius-big"
100
100
  }, {
101
101
  default: m(() => [
102
102
  l.value ? (r(!0), u(y, { key: 0 }, h(s.value, (o) => (r(), g(E, { key: o }))), 128)) : c("", !0)
@@ -109,7 +109,7 @@ const P = { class: "feed" }, F = {
109
109
  key: 0,
110
110
  title: "No Events Found",
111
111
  description: "Currently, there are no events available. Please check back later.",
112
- class: "pd-medium mn-b-thin bg-grey radius-big"
112
+ class: "pd-medium mn-b-thin bg-light radius-big"
113
113
  })) : c("", !0)
114
114
  ]),
115
115
  _: 1
@@ -126,7 +126,7 @@ const P = { class: "feed" }, F = {
126
126
  event: o,
127
127
  user: v.user,
128
128
  type: "normal",
129
- class: "bg-grey radius-big mn-b-medium"
129
+ class: "bg-light radius-big mn-b-medium"
130
130
  }, null, 8, ["onClick", "event", "user"]))), 128)) : c("", !0),
131
131
  n.value && t.value.length > 0 ? (r(), u("button", {
132
132
  key: 1,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardEvent.vue.cjs"),p=require("../../../icons/skeletons/SkeletonEventShort.vue.cjs"),m=require("../../store/events.cjs");require("./List.vue2.cjs");const g={class:"today-events"},k={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(l){const t=l,r=e.ref([]),n=e.ref(!0),s=e.ref(0),u=e.ref(5);return e.onMounted(async()=>{const o=await m.read({skip:s.value,limit:u.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=o,n.value=!1}),(o,v)=>(e.openBlock(),e.createElementBlock("section",g,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,a=>(e.openBlock(),e.createBlock(p.default,{key:a}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&r.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(a,i)=>(e.openBlock(),e.createBlock(d.default,{onClick:f=>o.$router.push({name:"Event",params:{url:a.url}}),key:a._id,event:a,owner:l.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":i!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardEvent.vue.cjs"),p=require("../../../icons/skeletons/SkeletonEventShort.vue.cjs"),m=require("../../store/events.cjs");require("./List.vue2.cjs");const g={class:"today-events"},k={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(l){const t=l,r=e.ref([]),n=e.ref(!0),i=e.ref(0),u=e.ref(5);return e.onMounted(async()=>{const o=await m.read({skip:i.value,limit:u.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=o,n.value=!1}),(o,v)=>(e.openBlock(),e.createElementBlock("section",g,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-light radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,a=>(e.openBlock(),e.createBlock(p.default,{key:a}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&r.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-light radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(a,s)=>(e.openBlock(),e.createBlock(d.default,{onClick:f=>o.$router.push({name:"Event",params:{url:a.url}}),key:a._id,event:a,owner:l.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":s!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
@@ -1,4 +1,4 @@
1
- import { ref as o, onMounted as h, openBlock as t, createElementBlock as i, createVNode as s, TransitionGroup as g, withCtx as u, Fragment as f, renderList as y, createBlock as c, createCommentVNode as d, Transition as b, normalizeClass as _ } from "vue";
1
+ import { ref as o, onMounted as k, openBlock as t, createElementBlock as i, createVNode as s, TransitionGroup as g, withCtx as u, Fragment as f, renderList as v, createBlock as c, createCommentVNode as d, Transition as b, normalizeClass as _ } from "vue";
2
2
  import "../../../../components/Loader/Loader.vue.js";
3
3
  import S from "../../../../components/EmptyState/EmptyState.vue.js";
4
4
  import w from "../blocks/CardEvent.vue.js";
@@ -34,10 +34,10 @@ const E = { class: "today-events" }, M = {
34
34
  }
35
35
  },
36
36
  setup(m) {
37
- const e = m, a = o([]), n = o(!0), v = o(0), p = o(5);
38
- return h(async () => {
37
+ const e = m, a = o([]), n = o(!0), y = o(0), p = o(5);
38
+ return k(async () => {
39
39
  const l = await z({
40
- skip: v.value,
40
+ skip: y.value,
41
41
  limit: p.value,
42
42
  sortOrder: "desc",
43
43
  category: e.category,
@@ -52,10 +52,10 @@ const E = { class: "today-events" }, M = {
52
52
  s(g, {
53
53
  tag: "ul",
54
54
  name: "fade",
55
- class: "o-hidden bg-grey radius-big"
55
+ class: "o-hidden bg-light radius-big"
56
56
  }, {
57
57
  default: u(() => [
58
- n.value ? (t(!0), i(f, { key: 0 }, y(p.value, (r) => (t(), c(C, { key: r }))), 128)) : d("", !0)
58
+ n.value ? (t(!0), i(f, { key: 0 }, v(p.value, (r) => (t(), c(C, { key: r }))), 128)) : d("", !0)
59
59
  ]),
60
60
  _: 1
61
61
  }),
@@ -65,7 +65,7 @@ const E = { class: "today-events" }, M = {
65
65
  key: 0,
66
66
  title: "No Events Today",
67
67
  description: "Today, are no events available. Please check back later.",
68
- class: "pd-medium mn-b-thin bg-grey radius-big"
68
+ class: "pd-medium mn-b-thin bg-light radius-big"
69
69
  })) : d("", !0)
70
70
  ]),
71
71
  _: 1
@@ -76,14 +76,14 @@ const E = { class: "today-events" }, M = {
76
76
  class: "container"
77
77
  }, {
78
78
  default: u(() => [
79
- !n.value && a.value.length > 0 ? (t(!0), i(f, { key: 0 }, y(a.value, (r, k) => (t(), c(w, {
79
+ !n.value && a.value.length > 0 ? (t(!0), i(f, { key: 0 }, v(a.value, (r, h) => (t(), c(w, {
80
80
  onClick: (N) => l.$router.push({ name: "Event", params: { url: r.url } }),
81
81
  key: r._id,
82
82
  event: r,
83
83
  owner: m.user,
84
84
  type: "short",
85
85
  class: _(["pd-medium", {
86
- "br-b br-solid br-black-transp-10": k !== a.value.length - 1
86
+ "br-b br-solid br-black-transp-10": h !== a.value.length - 1
87
87
  }])
88
88
  }, null, 8, ["onClick", "event", "owner", "class"]))), 128)) : d("", !0)
89
89
  ]),
@@ -1,20 +1,20 @@
1
- import { openBlock as r, createElementBlock as o, createVNode as e, createElementVNode as l } from "vue";
1
+ import { openBlock as r, createElementBlock as o, createVNode as e, createElementVNode as s } from "vue";
2
2
  import a from "../../../globals/components/sections/Title.vue.js";
3
- import s from "../sections/GalleryWithCategories.vue.js";
4
- const i = { class: "wrapper" }, c = { style: { "min-height": "100vh" } }, h = {
3
+ import c from "../sections/GalleryWithCategories.vue.js";
4
+ const l = { class: "wrapper" }, m = { style: { "min-height": "100vh" } }, f = {
5
5
  __name: "Gallery",
6
- setup(m) {
7
- return (t, n) => (r(), o("div", i, [
6
+ setup(_) {
7
+ return (t, i) => (r(), o("div", l, [
8
8
  e(a, {
9
9
  text: t.$t("gallery.title"),
10
10
  class: "pd-medium"
11
11
  }, null, 8, ["text"]),
12
- l("div", c, [
13
- e(s)
12
+ s("div", m, [
13
+ e(c)
14
14
  ])
15
15
  ]));
16
16
  }
17
17
  };
18
18
  export {
19
- h as default
19
+ f as default
20
20
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/Button/Button.vue2.cjs"),M=require("../../../../components/Select/Select.vue2.cjs"),s=require("../../store/gallery.cjs"),P=require("../../../../components/EditImages/EditImages.vue.cjs");require("./BackofficeGallery.vue2.cjs");const j=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=i=>(e.pushScopeId("data-v-99e559ad"),i=i(),e.popScopeId(),i),G={class:"pos-relative w-100"},U={class:"mn-b-semi flex-v-center flex-nowrap flex"},D=c(()=>e.createElementVNode("h1",{class:"mn-r-small"},"Manage Gallery",-1)),T=["data-id"],F=["src","onClick"],L={key:1,class:"radius-small bg-white"},R=["src","onClick"],$={class:"t-black p-small mn-b-thin"},O=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Size",-1)),A=c(()=>e.createElementVNode("br",null,null,-1)),H={class:"pd-2px radius-big d-inline-block bg-grey"},J={class:"t-black p-small mn-b-small uppe"},K=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Categories",-1)),Q=c(()=>e.createElementVNode("br",null,null,-1)),W={class:"pd-2px radius-big d-inline-block bg-grey t-semi"},X={class:"flex-nowrap flex"},Y=["onClick"],Z={class:"modal pd-thin"},ee={class:"modal-content radius-big"},te={class:""},le=["src"],ae={key:0,class:"flex-v-center flex m modal pd-big"},oe={class:"modal-content radius-small pd-medium bg-white"},se=["src"],ne=["src"],y=10,ce={__name:"BackofficeGallery",setup(i){const r=e.ref(!0),h=e.ref(null);let v=1,f=e.ref(null),_=e.ref(!1);const d=e.ref([]),E=a=>{d.value=a},V=e.computed(()=>k.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(k.value))),w=async()=>{_.value=!0,await s.actions.fetchGallery(v,y),_.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),m=e.ref(null),g=a=>{console.log(r.value),r.value?N(a):(u.value="modal",t.value.image=a,b())},N=a=>{u.value="edit-modal",t.value=a||{categories:"",size:"",image:null},b()},n=()=>{t.value={categories:"",size:"",image:!1},m.value=null,B()},b=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},B=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},C=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],x=async a=>{await s.actions.deletePhoto(a)},S=async()=>{await s.actions.updatePhoto(t.value),n()},z=async a=>{if(d.length<1||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({images:d.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(o=>o.trim()):t.value.categories}),n()};let k=e.ref("all");return e.onMounted(async()=>{await s.actions.fetchGallery(v,y),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(v+=1,w())}).observe(f.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",U,[D,r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:o[0]||(o[0]=l=>g(null)),class:"t-white t-black bg-second i-big radius-extra"},"+")):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:h,class:"cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(l,re)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[!r.value&&h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:p=>g(l.image)},null,8,F)):(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 radius-small mn-b-small h-10r object-fit-cover",onClick:p=>g(l)},null,8,R),e.createElementVNode("p",$,[O,A,e.createElementVNode("span",H,e.toDisplayString(l.size.name),1)]),e.createElementVNode("p",J,[K,Q,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.categories,p=>(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(p),1))),256))]),e.createElementVNode("div",X,[e.createElementVNode("button",{class:"button-small w-100 button",onClick:p=>x(l._id)},"Delete",8,Y)])]))]),_:2},1024)],8,T))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:f,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+t.value.image},null,8,le)])])],512),[[e.vShow,t.value.image!==!1&&u.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&u.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",oe,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof m.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,se)):e.createCommentVNode("",!0),typeof m.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,ne)):e.createCommentVNode("",!0),e.createVNode(M.default,{options:C,label:"Size",select:t.value.size,"onUpdate:select":o[1]||(o[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(I.default,{field:t.value.categories,"onUpdate:field":o[2]||(o[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(P.default,{images:d.value,"onUpdate:images":E,uploadPath:"photos",class:"mn-b-semi"},null,8,["images"]),e.createVNode(q.default,{submit:t.value._id?S:z,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},ie=j.default(ce,[["__scopeId","data-v-99e559ad"]]);exports.default=ie;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router");require("../../../../components/Field/Field.vue.cjs");const k=require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");const q=require("../../../../components/Chips/Chips.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const w=require("../../../../components/Popup/Popup.vue2.cjs"),B=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const s=require("../../store/gallery.cjs"),N=require("../../../globals/components/blocks/CardHeader.vue.cjs"),V=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),C=require("../../../../components/EditImages/EditImages.vue.cjs"),E=require("../../../../components/FieldTags/BlockTags.vue.cjs"),U={class:"cols-1 gap-thin pd-thin"},x=["src"],I={class:"pd-small"},T=["src"],A={__name:"BackofficeGallery",setup(F){const p=y.useRoute(),u=e.ref("all"),i=e.ref(!1);function g(l){i.value=!0,m.value=l}function d(){i.value=!1,m.value=null}const m=e.ref(null);e.ref("all");const r=e.ref({tags:null,image:null}),n=e.ref([]),v=l=>{n.value=l};e.ref(null);const c=e.ref([]),b=async l=>{await s.default.delete(l)},P=async()=>{await s.default.update(r.value),d()},_=async()=>{if(n.length<1){alert("Upload at least 1 image");return}let l=await s.default.create({images:n.value,tags:r.value.tags,owner:{type:"Organization",target:p.params._id},creator:{type:"User",target:h.state.user._id}});for(let t of l)s.default.addItem(t,c.value)};return e.onMounted(async()=>{}),(l,t)=>(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(V.default,{title:"Manage Gallery","onUpdate:tabs_current":t[0]||(t[0]=a=>u.value=a),tabs_current:u.value,tabs:[{name:"All",value:"all"},{name:"Featured",value:"featured"},{name:"Published",value:"published"},{name:"Draft",value:"draft"},{name:"Archived",value:"archived"}],actions:[{method:()=>g(null),label:"Add Photo"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","actions"]),e.createVNode(B.default,{items:c.value,"onUpdate:items":t[2]||(t[2]=a=>c.value=a),sort:e.unref(s.default).state.sort,"onUpdate:sort":t[3]||(t[3]=a=>e.unref(s.default).state.sort=a),search:!0,states:{empty:{title:"No Photos Found",description:"Currently, there are no photos in gallery."}},store:{read:a=>e.unref(s.default).read(a)},options:{limit:15,owner:e.unref(p).params._id,...u.value!=="all"&&{status:u.value}},class:"cols-3 gap-thin"},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,o=>{var f;return e.openBlock(),e.createElementBlock("div",{key:o._id,class:"bg-light radius-small flex-column pos-relative flex-wrap"},[e.createVNode(N.default,{entity:o,entityType:"photo",user:h.state.user._id,owner:o.creator,creator:o.creator,date:o.createdAt,actions:[{method:()=>b(o._id),label:"Delete"}],class:"pd-small mn-b-small"},null,8,["entity","user","owner","creator","date","actions"]),e.createElementVNode("img",{src:(l.FILE_SERVER_URL||"")+o.cover,class:"w-100 h-20r object-fit-contain bg-black",onClick:t[1]||(t[1]=O=>g(l.photo))},null,8,x),e.createElementVNode("div",I,[((f=o.tags)==null?void 0:f.length)>0?(e.openBlock(),e.createBlock(q.default,{key:0,chips:o.tags},null,8,["chips"])):e.createCommentVNode("",!0)])])}),128))]),_:1},8,["items","sort","store","options"]),e.createVNode(w.default,{title:"Add photo",onClosePopup:d,isPopupOpen:i.value,class:"bg-white w-max-30r radius-big pd-big"},{default:e.withCtx(()=>[r.value.cover?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.value.cover,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,T)):e.createCommentVNode("",!0),e.createVNode(C.default,{images:n.value,uploadPath:"/photos","onUpdate:images":v,class:"mn-b-semi bg-light radius-medium"},null,8,["images"]),e.createVNode(E.default,{onTagsChanged:t[4]||(t[4]=a=>r.value.tags=a),tags:r.value.tags},null,8,["tags"]),e.createVNode(k.default,{submit:r.value._id?P:_,callback:d,class:"mn-b-thin bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value._id?"Update":"Publish"),1)]),_:1},8,["submit"])]),_:1},8,["isPopupOpen"])]))}};exports.default=A;