@ozdao/prometheus-framework 0.2.186 → 0.2.188

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. package/dist/auth.server.js +35 -23
  2. package/dist/auth.server.mjs +35 -23
  3. package/dist/events.server.js +1 -1
  4. package/dist/events.server.mjs +1 -1
  5. package/dist/globals.server.js +1 -1
  6. package/dist/globals.server.mjs +1 -1
  7. package/dist/mailing-BQKyTI-q.js +77 -0
  8. package/dist/mailing-C3VD4l0h.mjs +78 -0
  9. package/dist/main-BVZtf9OG.js +92 -0
  10. package/dist/main-CbTw08vO.mjs +13584 -0
  11. package/dist/orders.server.js +162 -12
  12. package/dist/orders.server.mjs +162 -12
  13. package/dist/organizations.server.js +1 -1
  14. package/dist/organizations.server.mjs +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/auth.client.js +41 -22
  17. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -0
  18. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +41 -0
  19. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -0
  20. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +124 -0
  21. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -0
  22. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +94 -0
  23. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -0
  24. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +82 -0
  25. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +118 -0
  27. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +168 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +129 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +1 -0
  32. package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.js +88 -0
  33. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.cjs +1 -0
  34. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.js +20 -0
  35. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.cjs +1 -0
  36. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.js +26 -0
  37. package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.cjs +1 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.js +30 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.cjs +1 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.js +38 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.cjs +1 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.js +32 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +1 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +30 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/router/auth.cjs +1 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/router/auth.js +119 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +1 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +176 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +1 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +31 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +1 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +45 -0
  53. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +2 -2
  59. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +1 -1
  61. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +3 -4
  65. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +10 -10
  69. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +2 -2
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +12 -13
  83. package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
  87. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/globals/globals.client.js +10 -6
  93. package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.cjs +1 -0
  94. package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.js +7 -0
  95. package/dist/prometheus-framework/src/modules/globals/mixins/mixins.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/globals/mixins/mixins.js +20 -16
  97. package/dist/prometheus-framework/src/modules/globals/router/routerGuards.cjs +1 -0
  98. package/dist/prometheus-framework/src/modules/globals/router/routerGuards.js +18 -0
  99. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.cjs +1 -0
  100. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.js +18 -0
  101. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/globals/store/globals.js +38 -76
  103. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +5 -5
  105. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  107. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -3
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -4
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -3
  131. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.js +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  145. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -3
  157. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -3
  159. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  161. package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/router/categories.router.js +1 -1
  163. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.js +1 -1
  165. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/router/products.router.js +1 -1
  167. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -3
  169. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/spots/router/spots.js +1 -1
  171. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  173. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -4
  177. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/users/router/users.js +3 -4
  181. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  183. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.js +1 -1
  185. package/dist/prometheus-framework.cjs.js +1 -1
  186. package/dist/prometheus-framework.es.js +1 -1
  187. package/dist/style.css +1 -1
  188. package/dist/tickets.controller-BWVUA-GR.js +401 -0
  189. package/dist/tickets.controller-ChVmHHnj.mjs +402 -0
  190. package/dist/wallet.server.js +1 -1
  191. package/dist/wallet.server.mjs +1 -1
  192. package/dist/web-CK9TrlwB.js +1 -0
  193. package/dist/web-aOWHNbX1.mjs +54 -0
  194. package/package.json +1 -1
  195. package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -1
  196. package/src/components/Sidebar/Sidebar.vue +1 -1
  197. package/src/modules/auth/auth.client.js +53 -28
  198. package/src/modules/auth/auth.server.js +32 -14
  199. package/src/modules/auth/{routes → controllers/routes}/auth.routes.js +3 -3
  200. package/src/modules/auth/{routes → controllers/routes}/twofa.routes.js +2 -2
  201. package/src/modules/auth/controllers/{auth.controller.js → services/auth.service.js} +2 -3
  202. package/src/modules/auth/models/role.model.js +9 -8
  203. package/src/modules/auth/{components → views/components}/layouts/Auth.vue +3 -3
  204. package/src/modules/auth/{components → views/components}/pages/EnterCode.vue +3 -3
  205. package/src/modules/auth/{components → views/components}/pages/EnterPassword.vue +3 -3
  206. package/src/modules/auth/{components → views/components}/pages/Invite.vue +2 -2
  207. package/src/modules/auth/{components → views/components}/pages/ResetPassword.vue +4 -4
  208. package/src/modules/auth/{components → views/components}/pages/SignIn.vue +3 -3
  209. package/src/modules/auth/{components → views/components}/pages/SignUp.vue +4 -4
  210. package/src/modules/{middlewares/client → auth/views/middlewares}/auth.validation.js +20 -1
  211. package/src/modules/auth/views/router/auth.js +102 -0
  212. package/src/modules/{middlewares/client → auth/views/validations}/inputs.validation.js +3 -6
  213. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  214. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  215. package/src/modules/backoffice/components/partials/Sidebar.vue +1 -1
  216. package/src/modules/backoffice/router/backoffice.js +1 -1
  217. package/src/modules/chats/routes/chats.routes.js +1 -1
  218. package/src/modules/community/components/layouts/Community.vue +1 -1
  219. package/src/modules/community/components/pages/Blog.vue +1 -1
  220. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  221. package/src/modules/community/components/pages/Community.vue +1 -1
  222. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
  223. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  224. package/src/modules/community/routes/blog.routes.js +1 -1
  225. package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
  226. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  227. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  228. package/src/modules/events/components/pages/Event.vue +1 -1
  229. package/src/modules/events/components/pages/Events.vue +1 -1
  230. package/src/modules/events/components/sections/FeaturedEvents.vue +1 -1
  231. package/src/modules/events/router/events.js +1 -1
  232. package/src/modules/events/routes/events.routes.js +1 -1
  233. package/src/modules/files/routes/files.routes.js +1 -1
  234. package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
  235. package/src/modules/gallery/routes/gallery.routes.js +2 -2
  236. package/src/modules/globals/globals.client.js +6 -3
  237. package/src/modules/globals/router/routerGuards.js +1 -1
  238. package/src/modules/globals/router/scrollBehavior.js +30 -0
  239. package/src/modules/globals/store/globals.js +3 -3
  240. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  241. package/src/modules/legal/components/pages/Legal.vue +1 -1
  242. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  243. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
  244. package/src/modules/orders/components/pages/Orders.vue +1 -1
  245. package/src/modules/orders/components/sections/FormAddCustomer.vue +1 -1
  246. package/src/modules/orders/models/order.model.js +0 -1
  247. package/src/modules/orders/orders.server.js +3 -1
  248. package/src/modules/orders/routes/applications.routes.js +2 -1
  249. package/src/modules/orders/routes/orders.routes.js +1 -1
  250. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
  251. package/src/modules/organizations/components/pages/Members.vue +1 -1
  252. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  253. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -1
  254. package/src/modules/organizations/components/pages/OrganizationCreate.vue +1 -1
  255. package/src/modules/organizations/components/pages/OrganizationDetails.vue +2 -2
  256. package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
  257. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  258. package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
  259. package/src/modules/organizations/components/sections/Organizations.vue +1 -1
  260. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  261. package/src/modules/organizations/router/backoffice.router.js +1 -1
  262. package/src/modules/organizations/router/departments.router.js +1 -1
  263. package/src/modules/organizations/router/members.router.js +1 -1
  264. package/src/modules/organizations/router/organizations.js +1 -1
  265. package/src/modules/organizations/routes/invites.routes.js +1 -1
  266. package/src/modules/organizations/store/invites.js +1 -1
  267. package/src/modules/pages/views/components/pages/Page.vue +1 -1
  268. package/src/modules/pages/views/components/pages/Pages.vue +1 -1
  269. package/src/modules/pages/views/components/partials/SidebarPages.vue +1 -1
  270. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  271. package/src/modules/products/components/pages/Product.vue +1 -1
  272. package/src/modules/products/components/pages/Products.vue +1 -1
  273. package/src/modules/products/router/categories.router.js +1 -1
  274. package/src/modules/products/router/leftovers.router.js +1 -1
  275. package/src/modules/products/router/products.router.js +1 -1
  276. package/src/modules/spots/router/spots.js +1 -1
  277. package/src/modules/users/components/pages/Profile.vue +1 -1
  278. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  279. package/src/modules/users/components/pages/ProfileEdit.vue +2 -2
  280. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  281. package/src/modules/users/router/users.js +1 -2
  282. package/src/modules/wallet/controllers/routes/payments.routes.js +1 -1
  283. package/src/modules/wallet/controllers/routes/rewards.routes.js +1 -1
  284. package/src/modules/wallet/views/router/payments.router.js +1 -2
  285. package/src/modules/auth/router/auth.js +0 -111
  286. package/src/modules/globals/localization/methods/get-app-locales.js +0 -13
  287. package/src/modules/globals/localization/vue-i18n.js +0 -38
  288. package/src/modules/globals/localization/vue-i18n.singleton.js +0 -11
  289. package/src/modules/middlewares/client/states.validation.js +0 -23
  290. package/src/modules/middlewares/middlewares.client.js +0 -11
  291. package/src/modules/middlewares/middlewares.server.js +0 -18
  292. package/src/modules/orders/routes/backcalls.routes.js +0 -36
  293. package/src/modules/orders/routes/fastorders.routes.js +0 -32
  294. /package/src/modules/auth/{middlewares → controllers/middlewares}/authJwt.js +0 -0
  295. /package/src/modules/auth/{middlewares → controllers/middlewares}/authSecret.js +0 -0
  296. /package/src/modules/auth/{middlewares → controllers/middlewares}/index.js +0 -0
  297. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyAccesses.js +0 -0
  298. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyInvites.js +0 -0
  299. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifySignUp.js +0 -0
  300. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyUser.js +0 -0
  301. /package/src/modules/auth/controllers/{twofa.controller.js → services/twofa.service.js} +0 -0
  302. /package/src/modules/auth/{utils/server → controllers/utils}/verifyAppleIdToken.js +0 -0
  303. /package/src/modules/auth/{components → views/components}/sections/SliderFeatures.vue +0 -0
  304. /package/src/modules/auth/{localization → views/localization}/EnterCode.json +0 -0
  305. /package/src/modules/auth/{localization → views/localization}/EnterPassword.json +0 -0
  306. /package/src/modules/auth/{localization → views/localization}/ResetPassword.json +0 -0
  307. /package/src/modules/auth/{localization → views/localization}/SignIn.json +0 -0
  308. /package/src/modules/auth/{localization → views/localization}/SignUp.json +0 -0
  309. /package/src/modules/auth/{store → views/store}/auth.js +0 -0
  310. /package/src/modules/auth/{store → views/store}/twofa.js +0 -0
  311. /package/src/modules/globals/localization/{methods/get-browser-locale.js → get-browser-locale.js} +0 -0
@@ -8,7 +8,7 @@ import { resolveComponent as n, openBlock as o, createElementBlock as a, createE
8
8
  import m from "../../../../components/Slider/Slider.vue.js";
9
9
  import d from "../blocks/CardBlogpost.vue.js";
10
10
  import { read as _ } from "../../store/blogposts.js";
11
- import { state as i } from "../../../auth/store/auth.js";
11
+ import { state as i } from "../../../auth/views/store/auth.js";
12
12
  /* empty css */
13
13
  const u = { class: "pd-thin" }, h = { class: "bg-light radius-big pd-t-big pd-b-big" }, f = { class: "w-100 pd-b-small t-center flex-center flex" }, g = /* @__PURE__ */ t("b", null, "Community", -1), O = {
14
14
  __name: "HotPosts",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),p=require("../../../../components/Button/Button.vue2.cjs");require("../../../auth/store/auth.cjs");const s=require("../../store/tickets.cjs");;/* empty css */const g=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),k={__name:"ButtonJoin",props:{type:{type:String,required:!0},userId:{type:String,required:!0},hasTicket:{type:Boolean,required:!0},targetId:{type:String,required:!0}},emits:["updateTicket"],setup(o,{emit:c}){const n=c,t=o,u=async()=>{t.hasTicket?await l(t.targetId):await d(t.targetId)};async function d(i){try{const e={type:t.type,target:i,user:t.userId},r=await s.actions.create(e);n("updateTicket",{ticket:r,hasTicket:!0,targetId:t.targetId})}catch(e){throw console.log(e),e}}async function l(i){const e={type:t.type,target:i,user:t.userId};try{const r=await s.actions.delete(e);n("updateTicket",{ticket:r,hasTicket:!1,targetId:t.targetId})}catch(r){throw console.log(r),r}}return(i,e)=>(a.openBlock(),a.createBlock(p.default,{submit:u,class:"bg-main button-small radius-extra button"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.hasTicket?"Leave":"Join"),1)]),_:1}))}},y=g.default(k,[["__scopeId","data-v-872ff798"]]);exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),p=require("../../../../components/Button/Button.vue2.cjs");require("../../../auth/views/store/auth.cjs");const c=require("../../store/tickets.cjs");;/* empty css */const g=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),k={__name:"ButtonJoin",props:{type:{type:String,required:!0},userId:{type:String,required:!0},hasTicket:{type:Boolean,required:!0},targetId:{type:String,required:!0}},emits:["updateTicket"],setup(o,{emit:s}){const n=s,t=o,u=async()=>{t.hasTicket?await l(t.targetId):await d(t.targetId)};async function d(i){try{const e={type:t.type,target:i,user:t.userId},r=await c.actions.create(e);n("updateTicket",{ticket:r,hasTicket:!0,targetId:t.targetId})}catch(e){throw console.log(e),e}}async function l(i){const e={type:t.type,target:i,user:t.userId};try{const r=await c.actions.delete(e);n("updateTicket",{ticket:r,hasTicket:!1,targetId:t.targetId})}catch(r){throw console.log(r),r}}return(i,e)=>(a.openBlock(),a.createBlock(p.default,{submit:u,class:"bg-main button-small radius-extra button"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.hasTicket?"Leave":"Join"),1)]),_:1}))}},y=g.default(k,[["__scopeId","data-v-7f12fc44"]]);exports.default=y;
@@ -1,6 +1,6 @@
1
1
  import { openBlock as d, createBlock as g, withCtx as m, createTextVNode as l, toDisplayString as k } from "vue";
2
2
  import f from "../../../../components/Button/Button.vue2.js";
3
- import "../../../auth/store/auth.js";
3
+ import "../../../auth/views/store/auth.js";
4
4
  import { actions as c } from "../../store/tickets.js";
5
5
  /* empty css */
6
6
  import y from "../../../../../../_virtual/_plugin-vue_export-helper.js";
@@ -67,7 +67,7 @@ const h = {
67
67
  _: 1
68
68
  }));
69
69
  }
70
- }, B = /* @__PURE__ */ y(h, [["__scopeId", "data-v-872ff798"]]);
70
+ }, B = /* @__PURE__ */ y(h, [["__scopeId", "data-v-7f12fc44"]]);
71
71
  export {
72
72
  B as default
73
73
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("isomorphic-dompurify");;/* empty css */const B=require("../../../constructor/components/sections/Constructor.vue.cjs"),T=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");;/* empty css */const k=require("../../../../components/Block/Block.vue.cjs"),C=require("../../../../components/Popup/Popup.vue2.cjs"),i=require("../../../../components/Field/Field.vue2.cjs"),P=require("../../../../components/FieldTags/BlockTags.vue.cjs"),V=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=require("../../../../components/Upload/Upload.vue.cjs"),h=require("../../../../components/UploadImage/UploadImage.vue.cjs"),q=require("../../../../components/EditImages/EditImages.vue.cjs"),L=require("../../../../components/Button/Button.vue2.cjs"),N=require("../../../icons/navigation/IconDelete.vue.cjs"),D=require("vue-router"),u=require("../../store/events.cjs"),n=require("../../../auth/store/auth.cjs"),M=require("../../../organizations/store/organizations.cjs");;/* empty css */const O={key:0,class:"h-min-100 pd-thin"},R={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},S=e.createElementVNode("h4",null,"Upload Event Cover",-1),F={key:0,class:"mn-b-small"},G={key:2,class:"mn-b-small"},I={key:4,class:"mn-b-semi"},A=e.createElementVNode("h4",{class:"mn-b-thin"}," Hero Section ",-1),z=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Hero Section ",-1),H=e.createElementVNode("p",null,"Need to upload in webm format because of needs of optimization",-1),$=e.createElementVNode("h5",{class:"mn-b-thin"}," Ticket ",-1),Y={class:"mn-b-small gap-small cols-2-fit-content"},j={class:"gap-thin flex-nowrap flex w-100"},J=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),K=e.createElementVNode("h4",{class:"mn-b-thin"}," Guest Section ",-1),Q={class:"gap-thin cols-3"},W=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Guests Section ",-1),X={class:"gap-thin flex-nowrap flex w-100"},Z={class:"w-100"},ee={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},te=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),le=e.createElementVNode("h4",{class:"mn-b-thin"}," Lineup Section ",-1),ae={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},se=e.createElementVNode("h5",{class:"mn-b-thin"}," Background in Lineup Section ",-1),ie=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),ne=e.createElementVNode("h4",{class:"mn-b-thin"}," Previous Party Section ",-1),oe=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Previous Partys Section ",-1),de=e.createElementVNode("h3",{class:"mn-b-small"},"Date",-1),re=e.createElementVNode("h3",{class:"mn-b-small"},"Description",-1),ue={key:5,class:"pd-b-extra w-100 bg-light pd-big radius-big"},ce={key:6,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},pe={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},me=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),fe=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),ge={key:0,class:"mn-b-thin"},he={key:1,class:"mn-b-medium br-grey-transp-25 br-2px br-solid pd-small radius-big"},be={__name:"EditEvent",setup(ve){const p=D.useRoute(),m=D.useRouter();let t=e.ref(null),b=e.ref(null);const v=e.ref([]),o=e.ref(null),d=e.ref(new Date);e.onMounted(async()=>{if(p.params.url){const a=await u.read({user:n.state.user._id,url:p.params.url});t.value=a.pop(),console.log(t.value);const l=t.value.date.start,c=t.value.date.end;d.value=[l,c]}else{u.clean(),t.value=u.state.current;const a=new Date,l=new Date;d.value=[a,l]}t.value.owner||(t.value.owner={target:n.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:n.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(o.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const s=await M.actions.read({user:n.state.user._id,postable:n.state.user._id,limit:100});b.value=s.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(!1);function w(){g.value=!0}function E(){g.value=!1}function U(){v.value.length>0&&v.value.map(s=>s.text),t.value.status="draft",t.value.date={start:d.value[0],end:d.value[1]},p.params.url?u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)}):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)})}function x(){o.value&&(t.value.owner={target:o.value._id,type:"organization"}),o.value||(t.value.creator.hidden=!1),o.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.date={start:d.value[0],end:d.value[1]},console.log(d.value),p.params.url?(console.log(t.value),u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})}function y(){confirm("Are you sure you want to delete this event?")&&u.remove(t.value._id).then(s=>{m.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(s=>{console.error(s)})}return(s,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",O,[e.createElementVNode("div",R,[e.createVNode(h.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"specials",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo"]),S]),e.createVNode(i.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-b-semi w-100 bg-light pd-medium radius-small"},null,8,["field"]),n.state.access.roles&&(n.state.access.roles.includes("ROLE_MODERATOR")||n.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("h3",F," Tickets ")):e.createCommentVNode("",!0),n.state.access.roles&&(n.state.access.roles.includes("ROLE_MODERATOR")||n.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mn-b-semi w-100 bg-light pd-medium radius-small",onClick:a[3]||(a[3]=l=>e.unref(m).push({name:"Edit Event Tickets",params:{url:e.unref(p).params.url}}))}," Edit tickets ")):e.createCommentVNode("",!0),n.state.access.roles&&(n.state.access.roles.includes("ROLE_MODERATOR")||n.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("h3",G," Special Details ")):e.createCommentVNode("",!0),n.state.access.roles&&(n.state.access.roles.includes("ROLE_MODERATOR")||n.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(V.default,{key:3,label:"Special",radio:e.unref(t).special,"onUpdate:radio":a[4]||(a[4]=l=>e.unref(t).special=!e.unref(t).special),class:"mn-b-semi w-100 bg-black t-white pd-medium radius-small"},null,8,["radio"])):e.createCommentVNode("",!0),e.unref(t).special?(e.openBlock(),e.createElementBlock("div",I,[A,e.createVNode(i.default,{field:e.unref(t).specialData.subtitle,"onUpdate:field":a[5]||(a[5]=l=>e.unref(t).specialData.subtitle=l),placeholder:"Event subtitle",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(q.default,{images:e.unref(t).specialData.logos,uploadPath:"/specials",text:{title:"Drag & Drop Your Logos Here",subtitle:"Files supported: JPG, PNG, GIF"},options:{showTitle:!0,showText:!1},"onUpdate:images":a[6]||(a[6]=l=>e.unref(t).specialData.logos=l),class:"mn-b-thin bg-light radius-small"},null,8,["images"]),z,H,e.createVNode(f.default,{field:e.unref(t).specialData.video,"onUpdate:field":a[7]||(a[7]=l=>e.unref(t).specialData.video=l),placeholder:"Upload video",onFileChange:a[8]||(a[8]=l=>e.unref(t).specialData.video=l),uploadPath:"specials",type:"file",class:"mn-b-thin w-100 bg-light pd-medium radius-small t-black"},null,8,["field"]),$,e.createElementVNode("div",Y,[e.createVNode(h.default,{photo:e.unref(t).specialData.ticketImage,"onUpdate:photo":a[9]||(a[9]=l=>e.unref(t).specialData.ticketImage=l),uploadPath:"/specials",class:"aspect-1x1 w-4r o-hidden radius-extra"},null,8,["photo"]),e.createElementVNode("div",j,[e.createVNode(i.default,{field:e.unref(t).specialData.ticketPrice,"onUpdate:field":a[10]||(a[10]=l=>e.unref(t).specialData.ticketPrice=l),type:"number",placeholder:"Ticket price in baht",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.ticketText,"onUpdate:field":a[11]||(a[11]=l=>e.unref(t).specialData.ticketText=l),placeholder:"Promotion text for ticket in hero ",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.ticketTextButton,"onUpdate:field":a[12]||(a[12]=l=>e.unref(t).specialData.ticketTextButton=l),placeholder:"Text on 'Buy Ticket' button ",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"])])]),J,K,e.createVNode(i.default,{field:e.unref(t).specialData.guestTitle,"onUpdate:field":a[13]||(a[13]=l=>e.unref(t).specialData.guestTitle=l),placeholder:"Title for Main Guest section",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestDescription,"onUpdate:field":a[14]||(a[14]=l=>e.unref(t).specialData.guestDescription=l),placeholder:"Description for Main Guest section",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createElementVNode("div",Q,[e.createVNode(i.default,{field:e.unref(t).specialData.guestFacebook,"onUpdate:field":a[15]||(a[15]=l=>e.unref(t).specialData.guestFacebook=l),placeholder:"Facebook of Main Guest",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestInstagram,"onUpdate:field":a[16]||(a[16]=l=>e.unref(t).specialData.guestInstagram=l),placeholder:"Instagram of Main Guest",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestTwitter,"onUpdate:field":a[17]||(a[17]=l=>e.unref(t).specialData.guestTwitter=l),placeholder:"Twitter of Main Guest",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestTelegram,"onUpdate:field":a[18]||(a[18]=l=>e.unref(t).specialData.guestTelegram=l),placeholder:"Telegram of Main Guest",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestSoundcloud,"onUpdate:field":a[19]||(a[19]=l=>e.unref(t).specialData.guestSoundcloud=l),placeholder:"Link to Main Guest soundcloud track",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestSpotify,"onUpdate:field":a[20]||(a[20]=l=>e.unref(t).specialData.guestSpotify=l),placeholder:"Link to Main guest spotify track",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestYoutube,"onUpdate:field":a[21]||(a[21]=l=>e.unref(t).specialData.guestYoutube=l),placeholder:"Link to Main guest youtube video",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"])]),W,e.createVNode(f.default,{field:e.unref(t).specialData.guestVideo,"onUpdate:field":a[22]||(a[22]=l=>e.unref(t).specialData.guestVideo=l),placeholder:"Upload video",onFileChange:a[23]||(a[23]=l=>e.unref(t).specialData.guestVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-light pd-medium radius-small t-black"},null,8,["field"]),e.createVNode(k.default,{title:"Guests",placeholder:"No guests added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.guests.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 mn-b-thin t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.guests,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-small gap-small cols-2-fit-content",key:c},[e.createVNode(h.default,{photo:l.photo,"onUpdate:photo":r=>l.photo=r,uploadPath:"/specials",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","onUpdate:photo"]),e.createElementVNode("div",X,[e.createElementVNode("div",Z,[e.createVNode(i.default,{field:l.name,"onUpdate:field":r=>l.name=r,placeholder:"Name",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(i.default,{field:l.description,"onUpdate:field":r=>l.description=r,placeholder:"Description",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"])]),e.createElementVNode("div",ee,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.guests.splice(c,1),class:"i-medium"},null,8,["onClick"])])])]))),128))]),_:1},8,["actions"]),te,le,e.createVNode(k.default,{title:"Line Up",placeholder:"No line ups added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.lineup.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.lineup,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-thin gap-small flex-nowrap flex",key:c},[e.createVNode(i.default,{field:l.name,"onUpdate:field":r=>l.name=r,placeholder:"Name",class:"w-100 bg-light radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(i.default,{field:l.time,"onUpdate:field":r=>l.time=r,placeholder:"Time",class:"w-100 bg-light radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",ae,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.lineup.splice(c,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),se,e.createVNode(f.default,{field:e.unref(t).specialData.lineupBackground,"onUpdate:field":a[24]||(a[24]=l=>e.unref(t).specialData.lineupBackground=l),placeholder:"Upload image",onFileChange:a[25]||(a[25]=l=>e.unref(t).specialData.lineupBackground=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-light pd-medium radius-small t-black"},null,8,["field"]),ie,ne,oe,e.createVNode(i.default,{field:e.unref(t).specialData.previousTitle,"onUpdate:field":a[26]||(a[26]=l=>e.unref(t).specialData.previousTitle=l),placeholder:"Title",value:"Explore our exclusive party archive",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.previousDescription,"onUpdate:field":a[27]||(a[27]=l=>e.unref(t).specialData.previousDescription=l),label:"Description",value:"Experience the ultimate party vibe at The Commune! Elevate your evening with distinctive and exhilarating activities, ensuring an unforgettable time. Dive into the excitement and make every moment special.",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.previousLinkText,"onUpdate:field":a[28]||(a[28]=l=>e.unref(t).specialData.previousLinkText=l),label:"Button",value:"Check In Instagram",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.previousLink,"onUpdate:field":a[29]||(a[29]=l=>e.unref(t).specialData.previousLink=l),label:"Link",value:"https://www.instagram.com/thecommune.phuket/",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"]),e.createVNode(f.default,{field:e.unref(t).specialData.previousVideo,"onUpdate:field":a[30]||(a[30]=l=>e.unref(t).specialData.previousVideo=l),placeholder:"Upload image",onFileChange:a[31]||(a[31]=l=>e.unref(t).specialData.previousVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-light pd-medium radius-small t-black"},null,8,["field"])])):e.createCommentVNode("",!0),de,e.createVNode(e.unref(T.default),{modelValue:d.value,"onUpdate:modelValue":a[32]||(a[32]=l=>d.value=l),range:"",class:"z-index-3 mn-b-semi"},null,8,["modelValue"]),re,e.unref(t)?(e.openBlock(),e.createElementBlock("section",ue,[e.createVNode(B.default,{content:e.unref(t).content,onUpdate:a[33]||(a[33]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",ce,[e.createElementVNode("div",pe,[e.unref(p).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[34]||(a[34]=l=>y()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[35]||(a[35]=l=>U()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[36]||(a[36]=l=>w()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(C.default,{title:"Publish",onClosePopup:E,isPopupOpen:g.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[me,e.createVNode(P.default,{onTagsChanged:a[37]||(a[37]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),fe,e.createVNode(_.default,{modelValue:o.value,"onUpdate:modelValue":a[38]||(a[38]=l=>o.value=l),options:e.unref(b),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-light radius-medium pd-small"},null,8,["modelValue","options"]),o.value?(e.openBlock(),e.createElementBlock("h5",ge,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",he,[e.createVNode(V.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[39]||(a[39]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(L.default,{submit:x,callback:s.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}};exports.default=be;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("isomorphic-dompurify");;/* empty css */const B=require("../../../constructor/components/sections/Constructor.vue.cjs"),T=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");;/* empty css */const k=require("../../../../components/Block/Block.vue.cjs"),C=require("../../../../components/Popup/Popup.vue2.cjs"),i=require("../../../../components/Field/Field.vue2.cjs"),P=require("../../../../components/FieldTags/BlockTags.vue.cjs"),V=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=require("../../../../components/Upload/Upload.vue.cjs"),h=require("../../../../components/UploadImage/UploadImage.vue.cjs"),q=require("../../../../components/EditImages/EditImages.vue.cjs"),L=require("../../../../components/Button/Button.vue2.cjs"),N=require("../../../icons/navigation/IconDelete.vue.cjs"),D=require("vue-router"),u=require("../../store/events.cjs"),n=require("../../../auth/views/store/auth.cjs"),M=require("../../../organizations/store/organizations.cjs");;/* empty css */const O={key:0,class:"h-min-100 pd-thin"},R={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},S=e.createElementVNode("h4",null,"Upload Event Cover",-1),F={key:0,class:"mn-b-small"},G={key:2,class:"mn-b-small"},I={key:4,class:"mn-b-semi"},A=e.createElementVNode("h4",{class:"mn-b-thin"}," Hero Section ",-1),z=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Hero Section ",-1),H=e.createElementVNode("p",null,"Need to upload in webm format because of needs of optimization",-1),$=e.createElementVNode("h5",{class:"mn-b-thin"}," Ticket ",-1),Y={class:"mn-b-small gap-small cols-2-fit-content"},j={class:"gap-thin flex-nowrap flex w-100"},J=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),K=e.createElementVNode("h4",{class:"mn-b-thin"}," Guest Section ",-1),Q={class:"gap-thin cols-3"},W=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Guests Section ",-1),X={class:"gap-thin flex-nowrap flex w-100"},Z={class:"w-100"},ee={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},te=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),le=e.createElementVNode("h4",{class:"mn-b-thin"}," Lineup Section ",-1),ae={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},se=e.createElementVNode("h5",{class:"mn-b-thin"}," Background in Lineup Section ",-1),ie=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),ne=e.createElementVNode("h4",{class:"mn-b-thin"}," Previous Party Section ",-1),oe=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Previous Partys Section ",-1),de=e.createElementVNode("h3",{class:"mn-b-small"},"Date",-1),re=e.createElementVNode("h3",{class:"mn-b-small"},"Description",-1),ue={key:5,class:"pd-b-extra w-100 bg-light pd-big radius-big"},ce={key:6,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},pe={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},me=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),fe=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),ge={key:0,class:"mn-b-thin"},he={key:1,class:"mn-b-medium br-grey-transp-25 br-2px br-solid pd-small radius-big"},be={__name:"EditEvent",setup(ve){const p=D.useRoute(),m=D.useRouter();let t=e.ref(null),b=e.ref(null);const v=e.ref([]),o=e.ref(null),d=e.ref(new Date);e.onMounted(async()=>{if(p.params.url){const a=await u.read({user:n.state.user._id,url:p.params.url});t.value=a.pop(),console.log(t.value);const l=t.value.date.start,c=t.value.date.end;d.value=[l,c]}else{u.clean(),t.value=u.state.current;const a=new Date,l=new Date;d.value=[a,l]}t.value.owner||(t.value.owner={target:n.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:n.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(o.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const s=await M.actions.read({user:n.state.user._id,postable:n.state.user._id,limit:100});b.value=s.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(!1);function w(){g.value=!0}function E(){g.value=!1}function U(){v.value.length>0&&v.value.map(s=>s.text),t.value.status="draft",t.value.date={start:d.value[0],end:d.value[1]},p.params.url?u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)}):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)})}function x(){o.value&&(t.value.owner={target:o.value._id,type:"organization"}),o.value||(t.value.creator.hidden=!1),o.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.date={start:d.value[0],end:d.value[1]},console.log(d.value),p.params.url?(console.log(t.value),u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})}function y(){confirm("Are you sure you want to delete this event?")&&u.remove(t.value._id).then(s=>{m.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(s=>{console.error(s)})}return(s,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",O,[e.createElementVNode("div",R,[e.createVNode(h.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"specials",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo"]),S]),e.createVNode(i.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-b-semi w-100 bg-light pd-medium radius-small"},null,8,["field"]),n.state.access.roles&&(n.state.access.roles.includes("ROLE_MODERATOR")||n.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("h3",F," Tickets ")):e.createCommentVNode("",!0),n.state.access.roles&&(n.state.access.roles.includes("ROLE_MODERATOR")||n.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mn-b-semi w-100 bg-light pd-medium radius-small",onClick:a[3]||(a[3]=l=>e.unref(m).push({name:"Edit Event Tickets",params:{url:e.unref(p).params.url}}))}," Edit tickets ")):e.createCommentVNode("",!0),n.state.access.roles&&(n.state.access.roles.includes("ROLE_MODERATOR")||n.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("h3",G," Special Details ")):e.createCommentVNode("",!0),n.state.access.roles&&(n.state.access.roles.includes("ROLE_MODERATOR")||n.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(V.default,{key:3,label:"Special",radio:e.unref(t).special,"onUpdate:radio":a[4]||(a[4]=l=>e.unref(t).special=!e.unref(t).special),class:"mn-b-semi w-100 bg-black t-white pd-medium radius-small"},null,8,["radio"])):e.createCommentVNode("",!0),e.unref(t).special?(e.openBlock(),e.createElementBlock("div",I,[A,e.createVNode(i.default,{field:e.unref(t).specialData.subtitle,"onUpdate:field":a[5]||(a[5]=l=>e.unref(t).specialData.subtitle=l),placeholder:"Event subtitle",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(q.default,{images:e.unref(t).specialData.logos,uploadPath:"/specials",text:{title:"Drag & Drop Your Logos Here",subtitle:"Files supported: JPG, PNG, GIF"},options:{showTitle:!0,showText:!1},"onUpdate:images":a[6]||(a[6]=l=>e.unref(t).specialData.logos=l),class:"mn-b-thin bg-light radius-small"},null,8,["images"]),z,H,e.createVNode(f.default,{field:e.unref(t).specialData.video,"onUpdate:field":a[7]||(a[7]=l=>e.unref(t).specialData.video=l),placeholder:"Upload video",onFileChange:a[8]||(a[8]=l=>e.unref(t).specialData.video=l),uploadPath:"specials",type:"file",class:"mn-b-thin w-100 bg-light pd-medium radius-small t-black"},null,8,["field"]),$,e.createElementVNode("div",Y,[e.createVNode(h.default,{photo:e.unref(t).specialData.ticketImage,"onUpdate:photo":a[9]||(a[9]=l=>e.unref(t).specialData.ticketImage=l),uploadPath:"/specials",class:"aspect-1x1 w-4r o-hidden radius-extra"},null,8,["photo"]),e.createElementVNode("div",j,[e.createVNode(i.default,{field:e.unref(t).specialData.ticketPrice,"onUpdate:field":a[10]||(a[10]=l=>e.unref(t).specialData.ticketPrice=l),type:"number",placeholder:"Ticket price in baht",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.ticketText,"onUpdate:field":a[11]||(a[11]=l=>e.unref(t).specialData.ticketText=l),placeholder:"Promotion text for ticket in hero ",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.ticketTextButton,"onUpdate:field":a[12]||(a[12]=l=>e.unref(t).specialData.ticketTextButton=l),placeholder:"Text on 'Buy Ticket' button ",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"])])]),J,K,e.createVNode(i.default,{field:e.unref(t).specialData.guestTitle,"onUpdate:field":a[13]||(a[13]=l=>e.unref(t).specialData.guestTitle=l),placeholder:"Title for Main Guest section",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestDescription,"onUpdate:field":a[14]||(a[14]=l=>e.unref(t).specialData.guestDescription=l),placeholder:"Description for Main Guest section",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createElementVNode("div",Q,[e.createVNode(i.default,{field:e.unref(t).specialData.guestFacebook,"onUpdate:field":a[15]||(a[15]=l=>e.unref(t).specialData.guestFacebook=l),placeholder:"Facebook of Main Guest",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestInstagram,"onUpdate:field":a[16]||(a[16]=l=>e.unref(t).specialData.guestInstagram=l),placeholder:"Instagram of Main Guest",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestTwitter,"onUpdate:field":a[17]||(a[17]=l=>e.unref(t).specialData.guestTwitter=l),placeholder:"Twitter of Main Guest",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestTelegram,"onUpdate:field":a[18]||(a[18]=l=>e.unref(t).specialData.guestTelegram=l),placeholder:"Telegram of Main Guest",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestSoundcloud,"onUpdate:field":a[19]||(a[19]=l=>e.unref(t).specialData.guestSoundcloud=l),placeholder:"Link to Main Guest soundcloud track",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestSpotify,"onUpdate:field":a[20]||(a[20]=l=>e.unref(t).specialData.guestSpotify=l),placeholder:"Link to Main guest spotify track",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.guestYoutube,"onUpdate:field":a[21]||(a[21]=l=>e.unref(t).specialData.guestYoutube=l),placeholder:"Link to Main guest youtube video",class:"mn-b-thin w-100 bg-light pd-medium radius-small"},null,8,["field"])]),W,e.createVNode(f.default,{field:e.unref(t).specialData.guestVideo,"onUpdate:field":a[22]||(a[22]=l=>e.unref(t).specialData.guestVideo=l),placeholder:"Upload video",onFileChange:a[23]||(a[23]=l=>e.unref(t).specialData.guestVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-light pd-medium radius-small t-black"},null,8,["field"]),e.createVNode(k.default,{title:"Guests",placeholder:"No guests added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.guests.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 mn-b-thin t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.guests,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-small gap-small cols-2-fit-content",key:c},[e.createVNode(h.default,{photo:l.photo,"onUpdate:photo":r=>l.photo=r,uploadPath:"/specials",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","onUpdate:photo"]),e.createElementVNode("div",X,[e.createElementVNode("div",Z,[e.createVNode(i.default,{field:l.name,"onUpdate:field":r=>l.name=r,placeholder:"Name",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(i.default,{field:l.description,"onUpdate:field":r=>l.description=r,placeholder:"Description",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"])]),e.createElementVNode("div",ee,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.guests.splice(c,1),class:"i-medium"},null,8,["onClick"])])])]))),128))]),_:1},8,["actions"]),te,le,e.createVNode(k.default,{title:"Line Up",placeholder:"No line ups added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.lineup.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.lineup,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-thin gap-small flex-nowrap flex",key:c},[e.createVNode(i.default,{field:l.name,"onUpdate:field":r=>l.name=r,placeholder:"Name",class:"w-100 bg-light radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(i.default,{field:l.time,"onUpdate:field":r=>l.time=r,placeholder:"Time",class:"w-100 bg-light radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",ae,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.lineup.splice(c,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),se,e.createVNode(f.default,{field:e.unref(t).specialData.lineupBackground,"onUpdate:field":a[24]||(a[24]=l=>e.unref(t).specialData.lineupBackground=l),placeholder:"Upload image",onFileChange:a[25]||(a[25]=l=>e.unref(t).specialData.lineupBackground=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-light pd-medium radius-small t-black"},null,8,["field"]),ie,ne,oe,e.createVNode(i.default,{field:e.unref(t).specialData.previousTitle,"onUpdate:field":a[26]||(a[26]=l=>e.unref(t).specialData.previousTitle=l),placeholder:"Title",value:"Explore our exclusive party archive",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.previousDescription,"onUpdate:field":a[27]||(a[27]=l=>e.unref(t).specialData.previousDescription=l),label:"Description",value:"Experience the ultimate party vibe at The Commune! Elevate your evening with distinctive and exhilarating activities, ensuring an unforgettable time. Dive into the excitement and make every moment special.",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.previousLinkText,"onUpdate:field":a[28]||(a[28]=l=>e.unref(t).specialData.previousLinkText=l),label:"Button",value:"Check In Instagram",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"]),e.createVNode(i.default,{field:e.unref(t).specialData.previousLink,"onUpdate:field":a[29]||(a[29]=l=>e.unref(t).specialData.previousLink=l),label:"Link",value:"https://www.instagram.com/thecommune.phuket/",class:"w-100 bg-light radius-small pd-medium"},null,8,["field"]),e.createVNode(f.default,{field:e.unref(t).specialData.previousVideo,"onUpdate:field":a[30]||(a[30]=l=>e.unref(t).specialData.previousVideo=l),placeholder:"Upload image",onFileChange:a[31]||(a[31]=l=>e.unref(t).specialData.previousVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-light pd-medium radius-small t-black"},null,8,["field"])])):e.createCommentVNode("",!0),de,e.createVNode(e.unref(T.default),{modelValue:d.value,"onUpdate:modelValue":a[32]||(a[32]=l=>d.value=l),range:"",class:"z-index-3 mn-b-semi"},null,8,["modelValue"]),re,e.unref(t)?(e.openBlock(),e.createElementBlock("section",ue,[e.createVNode(B.default,{content:e.unref(t).content,onUpdate:a[33]||(a[33]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",ce,[e.createElementVNode("div",pe,[e.unref(p).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[34]||(a[34]=l=>y()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[35]||(a[35]=l=>U()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[36]||(a[36]=l=>w()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(C.default,{title:"Publish",onClosePopup:E,isPopupOpen:g.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[me,e.createVNode(P.default,{onTagsChanged:a[37]||(a[37]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),fe,e.createVNode(_.default,{modelValue:o.value,"onUpdate:modelValue":a[38]||(a[38]=l=>o.value=l),options:e.unref(b),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-light radius-medium pd-small"},null,8,["modelValue","options"]),o.value?(e.openBlock(),e.createElementBlock("h5",ge,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",he,[e.createVNode(V.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[39]||(a[39]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(L.default,{submit:x,callback:s.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}};exports.default=be;
@@ -17,7 +17,7 @@ import J from "../../../../components/Button/Button.vue2.js";
17
17
  import L from "../../../icons/navigation/IconDelete.vue.js";
18
18
  import { useRoute as j, useRouter as q } from "vue-router";
19
19
  import { read as K, clean as Q, state as W, update as O, create as C, remove as X } from "../../store/events.js";
20
- import { state as d } from "../../../auth/store/auth.js";
20
+ import { state as d } from "../../../auth/views/store/auth.js";
21
21
  import { actions as Z } from "../../../organizations/store/organizations.js";
22
22
  /* empty css */
23
23
  const ee = {
@@ -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");;/* empty css */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;
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/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m=require("../../store/tickets.cjs");;/* empty css */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;
@@ -9,7 +9,7 @@ import D from "../../../icons/navigation/IconDelete.vue.js";
9
9
  import Q from "../../../icons/navigation/IconAdd.vue.js";
10
10
  import { useRoute as R, useRouter as L } from "vue-router";
11
11
  import { read as M } from "../../store/events.js";
12
- import { state as j } from "../../../auth/store/auth.js";
12
+ import { state as j } from "../../../auth/views/store/auth.js";
13
13
  import "../../../organizations/store/organizations.js";
14
14
  import { actions as k } from "../../store/tickets.js";
15
15
  /* empty css */
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");;/* empty css */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(`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");;/* empty css */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/views/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
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;
@@ -13,7 +13,7 @@ import V from "../../../community/components/sections/Comments.vue.js";
13
13
  import z from "../../../constructor/components/elements/Image.vue.js";
14
14
  import { read as F } from "../../store/events.js";
15
15
  import { mutations as q } from "../../store/tickets.js";
16
- import { state as o } from "../../../auth/store/auth.js";
16
+ import { state as o } from "../../../auth/views/store/auth.js";
17
17
  import { useRoute as A } from "vue-router";
18
18
  const R = { class: "pd-thin" }, G = /* @__PURE__ */ m("h2", { class: "mn-b-big w-100 t-center" }, "Event Details", -1), re = {
19
19
  __name: "Event",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */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=e.createElementVNode("h2",{class:"mn-b-medium"}," All Events ",-1),E={__name:"Events",setup(k){const l=c.useRoute(),m=c.useRouter(),d=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:d};a.state.filter=n}else{const t={date:d};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),m.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",status:"featured"},null,8,["user"]),q,e.createVNode(g.default,{date:a.state.filter.date,"onUpdate:date":n[0]||(n[0]=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=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("vue-i18n");;/* empty css */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/views/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=e.createElementVNode("h2",{class:"mn-b-medium"}," All Events ",-1),E={__name:"Events",setup(k){const l=c.useRoute(),m=c.useRouter(),d=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:d};a.state.filter=n}else{const t={date:d};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),m.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",status:"featured"},null,8,["user"]),q,e.createVNode(g.default,{date:a.state.filter.date,"onUpdate:date":n[0]||(n[0]=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=E;
@@ -1,17 +1,16 @@
1
1
  import { watch as g, openBlock as l, createElementBlock as p, createVNode as m, withCtx as h, Fragment as b, renderList as y, createBlock as $, createElementVNode as d } from "vue";
2
2
  import { useRoute as E, useRouter as k } from "vue-router";
3
3
  import "vue-i18n";
4
- import "../../../globals/localization/vue-i18n.js";
5
4
  /* empty css */
6
5
  import w from "../../../../components/Feed/Feed.vue.js";
7
6
  import F from "../../../../components/DatePicker/DatePicker.vue.js";
8
7
  import D from "../sections/List.vue.js";
9
8
  import j from "../blocks/CardEvent.vue.js";
10
9
  import { state as s, read as q } from "../../store/events.js";
11
- import { state as u } from "../../../auth/store/auth.js";
10
+ import { state as u } from "../../../auth/views/store/auth.js";
12
11
  const x = { class: "pd-thin" }, A = /* @__PURE__ */ d("header", { class: "mn-b-medium flex-v-center flex-nowrap flex" }, [
13
12
  /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, " Featured ")
14
- ], -1), V = /* @__PURE__ */ d("h2", { class: "mn-b-medium" }, " All Events ", -1), G = {
13
+ ], -1), V = /* @__PURE__ */ d("h2", { class: "mn-b-medium" }, " All Events ", -1), Y = {
15
14
  __name: "Events",
16
15
  setup(C) {
17
16
  const i = E(), f = k(), c = _(/* @__PURE__ */ new Date());
@@ -32,13 +31,13 @@ const x = { class: "pd-thin" }, A = /* @__PURE__ */ d("header", { class: "mn-b-m
32
31
  }
33
32
  return g(() => s.filter, (e, a) => {
34
33
  const t = { ...i.query };
35
- Object.keys(a).forEach((o) => {
36
- t[o] && delete t[o];
34
+ Object.keys(a).forEach((n) => {
35
+ t[n] && delete t[n];
37
36
  });
38
- const n = Object.fromEntries(
39
- Object.entries(e).filter(([o, r]) => Array.isArray(r) && r.length > 0 || typeof r == "string" && r).map(([o, r]) => [o, Array.isArray(r) ? r.join(",") : r])
37
+ const o = Object.fromEntries(
38
+ Object.entries(e).filter(([n, r]) => Array.isArray(r) && r.length > 0 || typeof r == "string" && r).map(([n, r]) => [n, Array.isArray(r) ? r.join(",") : r])
40
39
  );
41
- Object.assign(t, n), f.push({ query: t });
40
+ Object.assign(t, o), f.push({ query: t });
42
41
  }, { deep: !0 }), (e, a) => (l(), p("section", x, [
43
42
  A,
44
43
  m(D, {
@@ -74,10 +73,10 @@ const x = { class: "pd-thin" }, A = /* @__PURE__ */ d("header", { class: "mn-b-m
74
73
  default: h(({
75
74
  items: t
76
75
  }) => [
77
- (l(!0), p(b, null, y(t, (n, o) => (l(), $(j, {
78
- onClick: (r) => e.$router.push({ name: "Event", params: { url: n.url } }),
79
- key: n._id,
80
- event: n,
76
+ (l(!0), p(b, null, y(t, (o, n) => (l(), $(j, {
77
+ onClick: (r) => e.$router.push({ name: "Event", params: { url: o.url } }),
78
+ key: o._id,
79
+ event: o,
81
80
  user: u.user._id,
82
81
  type: "normal",
83
82
  class: "bg-light radius-big mn-b-medium"
@@ -89,5 +88,5 @@ const x = { class: "pd-thin" }, A = /* @__PURE__ */ d("header", { class: "mn-b-m
89
88
  }
90
89
  };
91
90
  export {
92
- G as default
91
+ Y as default
93
92
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),t=require("./List.vue.cjs");require("../../store/events.cjs");const u=require("../../../auth/store/auth.cjs"),i={class:"cols-2 gap-medium pd-medium bg-light radius-big"},r={class:""},d=e.createElementVNode("h3",{class:"mn-b-medium"}," Finished Events ",-1),n={class:""},a=e.createElementVNode("h3",{class:"mn-b-medium"}," Planned ",-1),o={__name:"FeaturedEvents",setup(c){return s.useRoute(),s.useRouter(),(l,m)=>(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",r,[d,e.createVNode(t.default,{user:u.state.user._id,class:"bg-white mn-b-medium radius-big",phase:"finished"},null,8,["user"])]),e.createElementVNode("div",n,[a,e.createVNode(t.default,{user:u.state.user._id,class:"bg-white mn-b-medium radius-big",phase:"planned"},null,8,["user"])])]))}};exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),t=require("./List.vue.cjs");require("../../store/events.cjs");const u=require("../../../auth/views/store/auth.cjs"),i={class:"cols-2 gap-medium pd-medium bg-light radius-big"},r={class:""},d=e.createElementVNode("h3",{class:"mn-b-medium"}," Finished Events ",-1),n={class:""},a=e.createElementVNode("h3",{class:"mn-b-medium"}," Planned ",-1),o={__name:"FeaturedEvents",setup(c){return s.useRoute(),s.useRouter(),(l,m)=>(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",r,[d,e.createVNode(t.default,{user:u.state.user._id,class:"bg-white mn-b-medium radius-big",phase:"finished"},null,8,["user"])]),e.createElementVNode("div",n,[a,e.createVNode(t.default,{user:u.state.user._id,class:"bg-white mn-b-medium radius-big",phase:"planned"},null,8,["user"])])]))}};exports.default=o;
@@ -2,7 +2,7 @@ import { openBlock as m, createElementBlock as o, createElementVNode as e, creat
2
2
  import { useRoute as r, useRouter as d } from "vue-router";
3
3
  import t from "./List.vue.js";
4
4
  import "../../store/events.js";
5
- import { state as i } from "../../../auth/store/auth.js";
5
+ import { state as i } from "../../../auth/views/store/auth.js";
6
6
  const n = { class: "cols-2 gap-medium pd-medium bg-light radius-big" }, a = { class: "" }, u = /* @__PURE__ */ e("h3", { class: "mn-b-medium" }, " Finished Events ", -1), c = { class: "" }, _ = /* @__PURE__ */ e("h3", { class: "mn-b-medium" }, " Planned ", -1), k = {
7
7
  __name: "FeaturedEvents",
8
8
  setup(l) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/layoutEvents.vue.cjs"),t=require("../../middlewares/client/auth.validation.cjs"),n=[{path:"events",component:e.default,meta:{title:{en:"Events",ru:"События"},title_hide:!0},children:[{path:":category?",name:"Events",meta:{title:{en:"Events",ru:"События"},title_hide:!0},component:()=>Promise.resolve().then(()=>require("../components/pages/Events.vue.cjs"))}]},{path:"events/create",name:"Create Event",meta:{title:{en:"Create Event",ru:"Создать Событие"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditEvent.vue.cjs"))},{path:"events/:url",name:"Event",meta:{title:{en:"Event",ru:"Событие"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Event.vue.cjs"))},{path:"events/:url/edit",name:"Edit Event",meta:{authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditEvent.vue.cjs"))},{path:"events/:url/edit/tickets",name:"Edit Event Tickets",meta:{authorize:[]},beforeEnter:[t.requiresAdmin],component:()=>Promise.resolve().then(()=>require("../components/pages/EditEventTickets.vue.cjs"))}];exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/layoutEvents.vue.cjs"),t=require("../../auth/views/middlewares/auth.validation.cjs"),n=[{path:"events",component:e.default,meta:{title:{en:"Events",ru:"События"},title_hide:!0},children:[{path:":category?",name:"Events",meta:{title:{en:"Events",ru:"События"},title_hide:!0},component:()=>Promise.resolve().then(()=>require("../components/pages/Events.vue.cjs"))}]},{path:"events/create",name:"Create Event",meta:{title:{en:"Create Event",ru:"Создать Событие"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditEvent.vue.cjs"))},{path:"events/:url",name:"Event",meta:{title:{en:"Event",ru:"Событие"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Event.vue.cjs"))},{path:"events/:url/edit",name:"Edit Event",meta:{authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditEvent.vue.cjs"))},{path:"events/:url/edit/tickets",name:"Edit Event Tickets",meta:{authorize:[]},beforeEnter:[t.requiresAdmin],component:()=>Promise.resolve().then(()=>require("../components/pages/EditEventTickets.vue.cjs"))}];exports.default=n;
@@ -1,5 +1,5 @@
1
1
  import e from "../components/layouts/layoutEvents.vue.js";
2
- import { requiresAdmin as t } from "../../middlewares/client/auth.validation.js";
2
+ import { requiresAdmin as t } from "../../auth/views/middlewares/auth.validation.js";
3
3
  const o = [
4
4
  {
5
5
  path: "events",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router");;/* empty css */const w=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const B=require("../../../../components/Chips/Chips.vue.cjs");;/* empty css */const _=require("../../../../components/Popup/Popup.vue2.cjs"),E=require("../../../../components/Feed/Feed.vue.cjs"),U=require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs"),k=require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const o=require("../../store/gallery.cjs"),A=require("../../../globals/components/blocks/CardHeader.vue.cjs"),I=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),O=require("../../../../components/EditImages/EditImages.vue.cjs"),T=require("../../../../components/FieldTags/BlockTags.vue.cjs"),R={class:"cols-1 gap-thin pd-thin"},S={class:"pos-relative"},D=["src","onClick"],F={class:"pos-absolute pos-t-0 pos-r-0 pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-r-small mn-t-small w-min bg-second radius-extra"},j={class:"pd-small"},L=["src"],G={class:"flex-nowrap flex gap-thin"},M={__name:"BackofficeGallery",setup(z){const h=C.useRoute(),i=e.ref("all");let c=e.ref({param:"createdAt",order:"desc",options:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"views"},{label:"Creator",value:"creator"}]}),p=e.ref({start:null,end:null});const f=e.ref(!1);function x(a){f.value=!0,u.value=a}function y(){f.value=!1,u.value=null}const m=e.ref(!1);function V(a){m.value=!0,u.value=a}function v(){m.value=!1,u.value=null,n.value=[],r.value={tags:null,image:null}}const u=e.ref(null);e.ref("all");const r=e.ref({tags:null,image:null}),n=e.ref([]),N=a=>{n.value=a},d=e.ref([]),q=async a=>{await o.default.delete(a._id),o.default.removeItem(a,d.value)},g=async(a,s)=>{a.status=s,await o.default.update(a),o.default.updateItem(a,d.value)},b=async a=>{if(n.length<1){alert("Upload at least 1 image");return}let s=await o.default.create({images:n.value,tags:r.value.tags,status:a,owner:{type:"Organization",target:h.params._id},creator:{type:"User",target:k.state.user._id}});for(let t of s)o.default.addItem(t,d.value)};return(a,s)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(I.default,{title:"Gallery","onUpdate:tabs_current":s[0]||(s[0]=t=>i.value=t),tabs_current:i.value,tabs:[{name:"All",value:"all"},{name:"Featured",value:"featured"},{name:"Published",value:"published"},{name:"Draft",value:"draft"},{name:"Archived",value:"archived"}],actions:[{method:()=>V(null),label:"Add Photo"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","actions"]),e.createVNode(E.default,{items:d.value,"onUpdate:items":s[1]||(s[1]=t=>d.value=t),sort:e.unref(c),"onUpdate:sort":s[2]||(s[2]=t=>e.isRef(c)?c.value=t:c=t),date:e.unref(p),"onUpdate:date":s[3]||(s[3]=t=>e.isRef(p)?p.value=t:p=t),states:{empty:{title:"No Photos Found",description:"Currently, there are no photos in gallery."}},store:{read:t=>e.unref(o.default).read(t)},options:{limit:15,owner:e.unref(h).params._id,...i.value!=="all"&&{status:i.value}},class:"cols-3 gap-thin"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,l=>{var P;return e.openBlock(),e.createElementBlock("div",{key:l._id,class:"bg-light radius-small flex-column pos-relative flex-wrap"},[e.createVNode(A.default,{entity:l,entityType:"photo",user:k.state.user._id,owner:l.creator,creator:l.creator,date:l.createdAt,actions:[{method:()=>q(l),label:"Delete"},{method:()=>g(l,"archived"),label:"Archive"},l.status==="draft"?{method:()=>g(l,"published"),label:"Publish"}:{method:()=>g(l,"draft"),label:"Draft"}],class:"pd-small mn-b-small"},null,8,["entity","user","owner","creator","date","actions"]),e.createElementVNode("div",S,[e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+l.cover,class:"w-100 h-20r object-fit-contain bg-black",onClick:H=>x(l)},null,8,D),e.createElementVNode("div",F,e.toDisplayString(l.status),1)]),e.createElementVNode("div",j,[((P=l.tags)==null?void 0:P.length)>0?(e.openBlock(),e.createBlock(B.default,{key:0,chips:l.tags},null,8,["chips"])):e.createCommentVNode("",!0)])])}),128))]),_:1},8,["items","sort","date","store","options"]),e.createVNode(_.default,{onClosePopup:y,isPopupOpen:f.value,class:"bg-black o-hidden w-100 h-100 radius-big"},{default:e.withCtx(()=>[e.createVNode(U.default,{photoUrl:u.value.image},null,8,["photoUrl"])]),_:1},8,["isPopupOpen"]),e.createVNode(_.default,{title:"Add Photo",onClosePopup:v,isPopupOpen:m.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,L)):e.createCommentVNode("",!0),e.createVNode(O.default,{images:n.value,uploadPath:"/photos","onUpdate:images":N,class:"mn-b-semi bg-light radius-medium"},null,8,["images"]),e.createVNode(T.default,{onTagsChanged:s[4]||(s[4]=t=>r.value.tags=t),tags:r.value.tags,tagsSuggested:[{text:"people"},{text:"events"},{text:"place"},{text:"food"},{text:"drinks"},{text:"special"}],class:"mn-b-semi"},null,8,["tags"]),e.createElementVNode("div",G,[e.createVNode(w.default,{submit:()=>b("draft"),callback:v,class:"t-nowrap bg-second w-100"},{default:e.withCtx(()=>[e.createTextVNode(" To drafts ")]),_:1},8,["submit"]),e.createVNode(w.default,{submit:()=>b("published"),callback:v,class:"bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Publish ")]),_:1},8,["submit"])])]),_:1},8,["isPopupOpen"])]))}};exports.default=M;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router");;/* empty css */const w=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const B=require("../../../../components/Chips/Chips.vue.cjs");;/* empty css */const _=require("../../../../components/Popup/Popup.vue2.cjs"),E=require("../../../../components/Feed/Feed.vue.cjs"),U=require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs"),k=require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const o=require("../../store/gallery.cjs"),A=require("../../../globals/components/blocks/CardHeader.vue.cjs"),I=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),O=require("../../../../components/EditImages/EditImages.vue.cjs"),T=require("../../../../components/FieldTags/BlockTags.vue.cjs"),R={class:"cols-1 gap-thin pd-thin"},S={class:"pos-relative"},D=["src","onClick"],F={class:"pos-absolute pos-t-0 pos-r-0 pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-r-small mn-t-small w-min bg-second radius-extra"},j={class:"pd-small"},L=["src"],G={class:"flex-nowrap flex gap-thin"},M={__name:"BackofficeGallery",setup(z){const h=C.useRoute(),i=e.ref("all");let c=e.ref({param:"createdAt",order:"desc",options:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"views"},{label:"Creator",value:"creator"}]}),p=e.ref({start:null,end:null});const f=e.ref(!1);function x(a){f.value=!0,u.value=a}function y(){f.value=!1,u.value=null}const m=e.ref(!1);function V(a){m.value=!0,u.value=a}function v(){m.value=!1,u.value=null,n.value=[],r.value={tags:null,image:null}}const u=e.ref(null);e.ref("all");const r=e.ref({tags:null,image:null}),n=e.ref([]),N=a=>{n.value=a},d=e.ref([]),q=async a=>{await o.default.delete(a._id),o.default.removeItem(a,d.value)},g=async(a,s)=>{a.status=s,await o.default.update(a),o.default.updateItem(a,d.value)},b=async a=>{if(n.length<1){alert("Upload at least 1 image");return}let s=await o.default.create({images:n.value,tags:r.value.tags,status:a,owner:{type:"Organization",target:h.params._id},creator:{type:"User",target:k.state.user._id}});for(let t of s)o.default.addItem(t,d.value)};return(a,s)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(I.default,{title:"Gallery","onUpdate:tabs_current":s[0]||(s[0]=t=>i.value=t),tabs_current:i.value,tabs:[{name:"All",value:"all"},{name:"Featured",value:"featured"},{name:"Published",value:"published"},{name:"Draft",value:"draft"},{name:"Archived",value:"archived"}],actions:[{method:()=>V(null),label:"Add Photo"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","actions"]),e.createVNode(E.default,{items:d.value,"onUpdate:items":s[1]||(s[1]=t=>d.value=t),sort:e.unref(c),"onUpdate:sort":s[2]||(s[2]=t=>e.isRef(c)?c.value=t:c=t),date:e.unref(p),"onUpdate:date":s[3]||(s[3]=t=>e.isRef(p)?p.value=t:p=t),states:{empty:{title:"No Photos Found",description:"Currently, there are no photos in gallery."}},store:{read:t=>e.unref(o.default).read(t)},options:{limit:15,owner:e.unref(h).params._id,...i.value!=="all"&&{status:i.value}},class:"cols-3 gap-thin"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,l=>{var P;return e.openBlock(),e.createElementBlock("div",{key:l._id,class:"bg-light radius-small flex-column pos-relative flex-wrap"},[e.createVNode(A.default,{entity:l,entityType:"photo",user:k.state.user._id,owner:l.creator,creator:l.creator,date:l.createdAt,actions:[{method:()=>q(l),label:"Delete"},{method:()=>g(l,"archived"),label:"Archive"},l.status==="draft"?{method:()=>g(l,"published"),label:"Publish"}:{method:()=>g(l,"draft"),label:"Draft"}],class:"pd-small mn-b-small"},null,8,["entity","user","owner","creator","date","actions"]),e.createElementVNode("div",S,[e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+l.cover,class:"w-100 h-20r object-fit-contain bg-black",onClick:H=>x(l)},null,8,D),e.createElementVNode("div",F,e.toDisplayString(l.status),1)]),e.createElementVNode("div",j,[((P=l.tags)==null?void 0:P.length)>0?(e.openBlock(),e.createBlock(B.default,{key:0,chips:l.tags},null,8,["chips"])):e.createCommentVNode("",!0)])])}),128))]),_:1},8,["items","sort","date","store","options"]),e.createVNode(_.default,{onClosePopup:y,isPopupOpen:f.value,class:"bg-black o-hidden w-100 h-100 radius-big"},{default:e.withCtx(()=>[e.createVNode(U.default,{photoUrl:u.value.image},null,8,["photoUrl"])]),_:1},8,["isPopupOpen"]),e.createVNode(_.default,{title:"Add Photo",onClosePopup:v,isPopupOpen:m.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,L)):e.createCommentVNode("",!0),e.createVNode(O.default,{images:n.value,uploadPath:"/photos","onUpdate:images":N,class:"mn-b-semi bg-light radius-medium"},null,8,["images"]),e.createVNode(T.default,{onTagsChanged:s[4]||(s[4]=t=>r.value.tags=t),tags:r.value.tags,tagsSuggested:[{text:"people"},{text:"events"},{text:"place"},{text:"food"},{text:"drinks"},{text:"special"}],class:"mn-b-semi"},null,8,["tags"]),e.createElementVNode("div",G,[e.createVNode(w.default,{submit:()=>b("draft"),callback:v,class:"t-nowrap bg-second w-100"},{default:e.withCtx(()=>[e.createTextVNode(" To drafts ")]),_:1},8,["submit"]),e.createVNode(w.default,{submit:()=>b("published"),callback:v,class:"bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Publish ")]),_:1},8,["submit"])])]),_:1},8,["isPopupOpen"])]))}};exports.default=M;
@@ -8,7 +8,7 @@ import G from "../../../../components/Chips/Chips.vue.js";
8
8
  import O from "../../../../components/Popup/Popup.vue2.js";
9
9
  import z from "../../../../components/Feed/Feed.vue.js";
10
10
  import q from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
11
- import { state as D } from "../../../auth/store/auth.js";
11
+ import { state as D } from "../../../auth/views/store/auth.js";
12
12
  import "../../../organizations/store/organizations.js";
13
13
  import r from "../../store/gallery.js";
14
14
  import H from "../../../globals/components/blocks/CardHeader.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),C=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),V=require("../../../reports/components/sections/FormReport.vue.cjs"),N=require("../../../../components/Tooltip/Tooltip.vue2.cjs"),v=require("../../../../components/Dropdown/Dropdown.vue.cjs");;/* empty css */;/* empty css */require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const $=require("../../../icons/navigation/IconEllipsis.vue.cjs"),S={key:0,class:"pd-b-zero"},z={class:"w-100 flex-v-center flex-nojustify flex"},D={class:"w-100 flex-nowrap flex-v-center flex"},M=["src"],q={key:2,class:"t-semi"},R={key:1,class:"mn-l-micro mn-r-micro"},F={key:2,class:"pos-relative"},P={key:3},T={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},U={key:0,class:"w-4r pos-relative i-thin"},L={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},I=["src"],O={class:"bg-black flex-column flex gap-thin pd-thin radius-small"},j=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),A=["onClick"],H={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type","actions"],setup(t){x.useRouter();function E(n){const r=new Date,d=new Date(n),m=Math.abs(r-d),u=Math.floor(m/1e3),a=Math.floor(u/60),s=Math.floor(a/60),i=Math.floor(s/24),c=Math.floor(i/7);return c>0?`${c} week${c>1?"s":""} ago`:i>0?`${i} day${i>1?"s":""} ago`:s>0?`${s} hour${s>1?"s":""} ago`:a>0?`${a} minute${a>1?"s":""} ago`:"Just now"}return(n,r)=>{var m,u,a,s,i,c,k,h,g,b,f,y,w,B,p;const d=e.resolveComponent("router-link");return t.owner?(e.openBlock(),e.createElementBlock("header",S,[e.createElementVNode("div",z,[e.createElementVNode("div",D,[((a=(u=(m=t.owner.target)==null?void 0:m.profile)==null?void 0:u.photo)==null?void 0:a.length)>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(n.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,M)):e.createCommentVNode("",!0),!((i=(s=t.owner.target)==null?void 0:s.profile)!=null&&i.photo)&&t.type!=="short"?(e.openBlock(),e.createBlock(C.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",q,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(((k=(c=t.owner.target)==null?void 0:c.profile)==null?void 0:k.name)||((h=t.creator.target)==null?void 0:h.username)||"Anonymous"),1),!t.creator.hidden&&((b=(g=t.owner.target)==null?void 0:g.profile)==null?void 0:b.name)!==((y=(f=t.creator.target)==null?void 0:f.profile)==null?void 0:y.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(o=>{var l;return n.$router.push({name:"User Profile",params:{_id:(l=t.creator.target)==null?void 0:l._id}})},["stop"]))}," · by "+e.toDisplayString(((B=(w=t.creator.target)==null?void 0:w.profile)==null?void 0:B.name)||((p=t.creator.target)==null?void 0:p.username)||"Anonymous"),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",R,"·")):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",F,[t.date?(e.openBlock(),e.createBlock(N.default,{key:0,text:n.formatDate(t.date)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E(t.date)),1)]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",P," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T,[t.members?(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("span",L,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o?(e.openBlock(),e.createElementBlock("img",{key:l,src:(n.FILE_SERVER_URL||"")+o,style:e.normalizeStyle({position:"absolute",top:"0px",right:l*20+20+"%",zIndex:1-l}),class:"br-solid br-2px br-white i-thin bg-light radius-big"},null,12,I)):(e.openBlock(),e.createBlock(C.default,{key:1,style:e.normalizeStyle({position:"absolute",top:"0px",right:l*20+20+"%",zIndex:1-l}),class:"br-solid br-2px br-white i-thin bg-light radius-big"},null,8,["style"]))],64))),256))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user?(e.openBlock(),e.createBlock(v.default,{key:3,label:{component:$.default,class:"t-transp i-regular"},align:"right",class:"cursor-pointer z-index-2"},{default:e.withCtx(()=>[e.createElementVNode("section",O,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(V.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[j]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0),t.actions&&t.actions.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.actions,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.to?(e.openBlock(),e.createBlock(d,{key:o.to,to:o.to,class:e.normalizeClass(o.class||"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["to","class"])):e.createCommentVNode("",!0),o.method?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o.method,class:e.normalizeClass(o.class||"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")},e.toDisplayString(o.label),11,A)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),C=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),V=require("../../../reports/components/sections/FormReport.vue.cjs"),N=require("../../../../components/Tooltip/Tooltip.vue2.cjs"),v=require("../../../../components/Dropdown/Dropdown.vue.cjs");;/* empty css */;/* empty css */require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const $=require("../../../icons/navigation/IconEllipsis.vue.cjs"),S={key:0,class:"pd-b-zero"},z={class:"w-100 flex-v-center flex-nojustify flex"},D={class:"w-100 flex-nowrap flex-v-center flex"},M=["src"],q={key:2,class:"t-semi"},R={key:1,class:"mn-l-micro mn-r-micro"},F={key:2,class:"pos-relative"},P={key:3},T={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},U={key:0,class:"w-4r pos-relative i-thin"},L={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},I=["src"],O={class:"bg-black flex-column flex gap-thin pd-thin radius-small"},j=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),A=["onClick"],H={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type","actions"],setup(t){x.useRouter();function E(n){const r=new Date,d=new Date(n),m=Math.abs(r-d),u=Math.floor(m/1e3),a=Math.floor(u/60),s=Math.floor(a/60),i=Math.floor(s/24),c=Math.floor(i/7);return c>0?`${c} week${c>1?"s":""} ago`:i>0?`${i} day${i>1?"s":""} ago`:s>0?`${s} hour${s>1?"s":""} ago`:a>0?`${a} minute${a>1?"s":""} ago`:"Just now"}return(n,r)=>{var m,u,a,s,i,c,k,h,g,b,f,y,w,B,p;const d=e.resolveComponent("router-link");return t.owner?(e.openBlock(),e.createElementBlock("header",S,[e.createElementVNode("div",z,[e.createElementVNode("div",D,[((a=(u=(m=t.owner.target)==null?void 0:m.profile)==null?void 0:u.photo)==null?void 0:a.length)>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(n.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,M)):e.createCommentVNode("",!0),!((i=(s=t.owner.target)==null?void 0:s.profile)!=null&&i.photo)&&t.type!=="short"?(e.openBlock(),e.createBlock(C.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",q,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(((k=(c=t.owner.target)==null?void 0:c.profile)==null?void 0:k.name)||((h=t.creator.target)==null?void 0:h.username)||"Anonymous"),1),!t.creator.hidden&&((b=(g=t.owner.target)==null?void 0:g.profile)==null?void 0:b.name)!==((y=(f=t.creator.target)==null?void 0:f.profile)==null?void 0:y.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(o=>{var l;return n.$router.push({name:"User Profile",params:{_id:(l=t.creator.target)==null?void 0:l._id}})},["stop"]))}," · by "+e.toDisplayString(((B=(w=t.creator.target)==null?void 0:w.profile)==null?void 0:B.name)||((p=t.creator.target)==null?void 0:p.username)||"Anonymous"),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",R,"·")):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",F,[t.date?(e.openBlock(),e.createBlock(N.default,{key:0,text:n.formatDate(t.date)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E(t.date)),1)]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",P," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T,[t.members?(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("span",L,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o?(e.openBlock(),e.createElementBlock("img",{key:l,src:(n.FILE_SERVER_URL||"")+o,style:e.normalizeStyle({position:"absolute",top:"0px",right:l*20+20+"%",zIndex:1-l}),class:"br-solid br-2px br-white i-thin bg-light radius-big"},null,12,I)):(e.openBlock(),e.createBlock(C.default,{key:1,style:e.normalizeStyle({position:"absolute",top:"0px",right:l*20+20+"%",zIndex:1-l}),class:"br-solid br-2px br-white i-thin bg-light radius-big"},null,8,["style"]))],64))),256))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user?(e.openBlock(),e.createBlock(v.default,{key:3,label:{component:$.default,class:"t-transp i-regular"},align:"right",class:"cursor-pointer z-index-2"},{default:e.withCtx(()=>[e.createElementVNode("section",O,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(V.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[j]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0),t.actions&&t.actions.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.actions,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.to?(e.openBlock(),e.createBlock(d,{key:o.to,to:o.to,class:e.normalizeClass(o.class||"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["to","class"])):e.createCommentVNode("",!0),o.method?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o.method,class:e.normalizeClass(o.class||"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")},e.toDisplayString(o.label),11,A)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=H;
@@ -6,7 +6,7 @@ import B from "../../../../components/Tooltip/Tooltip.vue2.js";
6
6
  import N from "../../../../components/Dropdown/Dropdown.vue.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
- import "../../../auth/store/auth.js";
9
+ import "../../../auth/views/store/auth.js";
10
10
  import "../../../organizations/store/memberships.js";
11
11
  import O from "../../../icons/navigation/IconEllipsis.vue.js";
12
12
  const j = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./localization/methods/get-browser-locale.cjs"),r=require("./localization/vue-i18n.cjs"),o=require("./store/globals.cjs");exports.getBrowserLocale=e.default;exports.VueI18n=r.default;exports.globalStore=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./localization/get-browser-locale.cjs"),r=require("./router/routerGuards.cjs"),o=require("./router/scrollBehavior.cjs"),t=require("./mixins/mixins.cjs"),l=require("./store/globals.cjs");exports.getBrowserLocale=e.default;exports.routerGuards=r.default;exports.scrollBehavior=o.default;exports.mixins=t;exports.globalStore=l;
@@ -1,8 +1,12 @@
1
- import { default as a } from "./localization/methods/get-browser-locale.js";
2
- import { default as l } from "./localization/vue-i18n.js";
3
- import * as o from "./store/globals.js";
1
+ import { default as t } from "./localization/get-browser-locale.js";
2
+ import { default as l } from "./router/routerGuards.js";
3
+ import { default as m } from "./router/scrollBehavior.js";
4
+ import * as o from "./mixins/mixins.js";
5
+ import * as r from "./store/globals.js";
4
6
  export {
5
- l as VueI18n,
6
- a as getBrowserLocale,
7
- o as globalStore
7
+ t as getBrowserLocale,
8
+ r as globalStore,
9
+ o as mixins,
10
+ l as routerGuards,
11
+ m as scrollBehavior
8
12
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function o(t={}){const n={...{countryCodeOnly:!1},...t},e=navigator.languages!==void 0?navigator.languages[0]:navigator.language;return e?n.countryCodeOnly?e.trim().split(/-|_/)[0]:e.trim():void 0}exports.default=o;
@@ -0,0 +1,7 @@
1
+ function r(n = {}) {
2
+ const e = { ...{ countryCodeOnly: !1 }, ...n }, t = navigator.languages !== void 0 ? navigator.languages[0] : navigator.language;
3
+ return t ? e.countryCodeOnly ? t.trim().split(/-|_/)[0] : t.trim() : void 0;
4
+ }
5
+ export {
6
+ r as default
7
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function g(){const m=t=>t?(t.includes("ROLE_ADMIN")?t.includes("ROLE_ADMIN"):!1)===!0:!1,y=(t,l,s,i)=>{const r=i.find(a=>a.organization===t);if(!r)return!1;const n=r.rights[l];return n?n[s]===!0:!1},u=()=>"฿",d=t=>{const l=u();return`${t.toFixed(2).replace(".",",").replace(/\B(?=(\d{3})+(?!\d))/g," ")} ${l}`},f=(t,l={})=>{var s=new Date(t),i=s.getFullYear().toString(),e=(s.getMonth()+1).toString(),r=s.getDate().toString(),n=s.getHours().toString(),a=s.getMinutes().toString(),c={dateOnly:l.dateOnly||!1,timeOnly:l.timeOnly||!1,dayMonth:l.dayMonth||!1,dayTime:l.dayTime||!1,monthYear:l.monthYear||!1,yearOnly:l.yearOnly||!1,custom:l.custom||""};return c.dateOnly?i+"."+(e[1]?e:"0"+e[0])+"."+(r[1]?r:"0"+r[0]):c.timeOnly?(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0]):c.dayMonth?(r[1]?r:"0"+r[0])+"."+(e[1]?e:"0"+e[0]):c.dayTime?(r[1]?r:"0"+r[0])+" в "+(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0]):c.monthYear?(e[1]?e:"0"+e[0])+"."+i:c.yearOnly?i:c.custom?c.custom.replace("yyyy",i).replace("mm",e[1]?e:"0"+e[0]).replace("dd",r[1]?r:"0"+r[0]).replace("hh",n[1]?n:"0"+n[0]).replace("min",a[1]?a:"0"+a[0]):(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0])+", "+i+"."+(e[1]?e:"0"+e[0])+"."+(r[1]?r:"0"+r[0])},o=t=>(t||(t=""),t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,""));return{isAdmin:m,hasAccess:y,returnCurrency:u,formatPrice:d,formatDate:f,normalizeUrlParam:o,joinArrayToUrl:t=>t.join("/"),getMarketplaceLink:(t,l,s,i)=>{let e=l?o(l):"",r=s?o(s):"",n=i?o(i):"",a="/marketplace";return a+=e?`/${e}`:"",a+=e&&r?`/${r}`:"",a+=e&&r&&n?`/${n}`:"",t&&t.length&&(a+=`?categories=${t.join(",")}`),a},getSpotsLink:(t,l,s)=>{let i=t?o(t):"",e=l?o(l):"",r=s?o(s):"",n="/spots";return n+=i?`/${i}`:"",n+=i&&e?`/${e}`:"",n+=i&&e&&r?`/${r}`:"",n}}}exports.useGlobalMixins=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function m(){const y=t=>t?(t.includes("ROLE_ADMIN")?t.includes("ROLE_ADMIN"):!1)===!0:!1,d=(t,l,s,i)=>{const r=i.find(a=>a.organization===t);if(!r)return!1;const n=r.rights[l];return n?n[s]===!0:!1},u=()=>"฿",f=t=>{const l=u();return`${t.toFixed(2).replace(".",",").replace(/\B(?=(\d{3})+(?!\d))/g," ")} ${l}`},g=(t,l={})=>{var s=new Date(t),i=s.getFullYear().toString(),e=(s.getMonth()+1).toString(),r=s.getDate().toString(),n=s.getHours().toString(),a=s.getMinutes().toString(),o={dateOnly:l.dateOnly||!1,timeOnly:l.timeOnly||!1,dayMonth:l.dayMonth||!1,dayTime:l.dayTime||!1,monthYear:l.monthYear||!1,yearOnly:l.yearOnly||!1,custom:l.custom||""};return o.dateOnly?i+"."+(e[1]?e:"0"+e[0])+"."+(r[1]?r:"0"+r[0]):o.timeOnly?(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0]):o.dayMonth?(r[1]?r:"0"+r[0])+"."+(e[1]?e:"0"+e[0]):o.dayTime?(r[1]?r:"0"+r[0])+" в "+(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0]):o.monthYear?(e[1]?e:"0"+e[0])+"."+i:o.yearOnly?i:o.custom?o.custom.replace("yyyy",i).replace("mm",e[1]?e:"0"+e[0]).replace("dd",r[1]?r:"0"+r[0]).replace("hh",n[1]?n:"0"+n[0]).replace("min",a[1]?a:"0"+a[0]):(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0])+", "+i+"."+(e[1]?e:"0"+e[0])+"."+(r[1]?r:"0"+r[0])},c=t=>(t||(t=""),t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,""));return{isAdmin:y,hasAccess:d,returnCurrency:u,formatPrice:f,formatDate:g,normalizeUrlParam:c,joinArrayToUrl:t=>t.join("/"),getMarketplaceLink:(t,l,s,i)=>{let e=l?c(l):"",r=s?c(s):"",n=i?c(i):"",a="/marketplace";return a+=e?`/${e}`:"",a+=e&&r?`/${r}`:"",a+=e&&r&&n?`/${n}`:"",t&&t.length&&(a+=`?categories=${t.join(",")}`),a},getSpotsLink:(t,l,s)=>{let i=t?c(t):"",e=l?c(l):"",r=s?c(s):"",n="/spots";return n+=i?`/${i}`:"",n+=i&&e?`/${e}`:"",n+=i&&e&&r?`/${r}`:"",n}}}const h={methods:m()};exports.globalMixins=h;exports.useGlobalMixins=m;
@@ -1,15 +1,15 @@
1
- function O() {
2
- const m = (t) => t ? (t.includes("ROLE_ADMIN") ? t.includes("ROLE_ADMIN") : !1) === !0 : !1, y = (t, l, s, i) => {
3
- const r = i.find((a) => a.organization === t);
1
+ function g() {
2
+ const m = (t) => t ? (t.includes("ROLE_ADMIN") ? t.includes("ROLE_ADMIN") : !1) === !0 : !1, y = (t, l, i, s) => {
3
+ const r = s.find((a) => a.organization === t);
4
4
  if (!r)
5
5
  return !1;
6
6
  const n = r.rights[l];
7
- return n ? n[s] === !0 : !1;
8
- }, u = () => "฿", f = (t) => {
7
+ return n ? n[i] === !0 : !1;
8
+ }, u = () => "฿", d = (t) => {
9
9
  const l = u();
10
10
  return `${t.toFixed(2).replace(".", ",").replace(/\B(?=(\d{3})+(?!\d))/g, " ")} ${l}`;
11
- }, d = (t, l = {}) => {
12
- var s = new Date(t), i = s.getFullYear().toString(), e = (s.getMonth() + 1).toString(), r = s.getDate().toString(), n = s.getHours().toString(), a = s.getMinutes().toString(), c = {
11
+ }, f = (t, l = {}) => {
12
+ var i = new Date(t), s = i.getFullYear().toString(), e = (i.getMonth() + 1).toString(), r = i.getDate().toString(), n = i.getHours().toString(), a = i.getMinutes().toString(), c = {
13
13
  dateOnly: l.dateOnly || !1,
14
14
  timeOnly: l.timeOnly || !1,
15
15
  dayMonth: l.dayMonth || !1,
@@ -18,26 +18,30 @@ function O() {
18
18
  yearOnly: l.yearOnly || !1,
19
19
  custom: l.custom || ""
20
20
  };
21
- return c.dateOnly ? i + "." + (e[1] ? e : "0" + e[0]) + "." + (r[1] ? r : "0" + r[0]) : c.timeOnly ? (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) : c.dayMonth ? (r[1] ? r : "0" + r[0]) + "." + (e[1] ? e : "0" + e[0]) : c.dayTime ? (r[1] ? r : "0" + r[0]) + " в " + (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) : c.monthYear ? (e[1] ? e : "0" + e[0]) + "." + i : c.yearOnly ? i : c.custom ? c.custom.replace("yyyy", i).replace("mm", e[1] ? e : "0" + e[0]).replace("dd", r[1] ? r : "0" + r[0]).replace("hh", n[1] ? n : "0" + n[0]).replace("min", a[1] ? a : "0" + a[0]) : (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) + ", " + i + "." + (e[1] ? e : "0" + e[0]) + "." + (r[1] ? r : "0" + r[0]);
21
+ return c.dateOnly ? s + "." + (e[1] ? e : "0" + e[0]) + "." + (r[1] ? r : "0" + r[0]) : c.timeOnly ? (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) : c.dayMonth ? (r[1] ? r : "0" + r[0]) + "." + (e[1] ? e : "0" + e[0]) : c.dayTime ? (r[1] ? r : "0" + r[0]) + " в " + (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) : c.monthYear ? (e[1] ? e : "0" + e[0]) + "." + s : c.yearOnly ? s : c.custom ? c.custom.replace("yyyy", s).replace("mm", e[1] ? e : "0" + e[0]).replace("dd", r[1] ? r : "0" + r[0]).replace("hh", n[1] ? n : "0" + n[0]).replace("min", a[1] ? a : "0" + a[0]) : (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) + ", " + s + "." + (e[1] ? e : "0" + e[0]) + "." + (r[1] ? r : "0" + r[0]);
22
22
  }, o = (t) => (t || (t = ""), t.toLowerCase().replace(/ /g, "-").replace(/[^a-z0-9-]/g, ""));
23
23
  return {
24
24
  isAdmin: m,
25
25
  hasAccess: y,
26
26
  returnCurrency: u,
27
- formatPrice: f,
28
- formatDate: d,
27
+ formatPrice: d,
28
+ formatDate: f,
29
29
  normalizeUrlParam: o,
30
30
  joinArrayToUrl: (t) => t.join("/"),
31
- getMarketplaceLink: (t, l, s, i) => {
32
- let e = l ? o(l) : "", r = s ? o(s) : "", n = i ? o(i) : "", a = "/marketplace";
31
+ getMarketplaceLink: (t, l, i, s) => {
32
+ let e = l ? o(l) : "", r = i ? o(i) : "", n = s ? o(s) : "", a = "/marketplace";
33
33
  return a += e ? `/${e}` : "", a += e && r ? `/${r}` : "", a += e && r && n ? `/${n}` : "", t && t.length && (a += `?categories=${t.join(",")}`), a;
34
34
  },
35
- getSpotsLink: (t, l, s) => {
36
- let i = t ? o(t) : "", e = l ? o(l) : "", r = s ? o(s) : "", n = "/spots";
37
- return n += i ? `/${i}` : "", n += i && e ? `/${e}` : "", n += i && e && r ? `/${r}` : "", n;
35
+ getSpotsLink: (t, l, i) => {
36
+ let s = t ? o(t) : "", e = l ? o(l) : "", r = i ? o(i) : "", n = "/spots";
37
+ return n += s ? `/${s}` : "", n += s && e ? `/${e}` : "", n += s && e && r ? `/${r}` : "", n;
38
38
  }
39
39
  };
40
40
  }
41
+ const O = {
42
+ methods: g()
43
+ };
41
44
  export {
42
- O as useGlobalMixins
45
+ O as globalMixins,
46
+ g as useGlobalMixins
43
47
  };