@ozdao/prometheus-framework 0.1.98 → 0.2.0

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/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
  4. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
  6. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +5 -5
  8. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +1 -1
  10. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -2
  12. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +10 -10
  14. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  16. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  18. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +12 -12
  20. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +15 -15
  22. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +8 -8
  24. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +14 -14
  26. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +14 -14
  28. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +9 -9
  30. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +4 -4
  32. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  34. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +8 -8
  36. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  38. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +10 -10
  40. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +6 -6
  42. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +9 -9
  44. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +8 -8
  46. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +3 -3
  48. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.js +3 -3
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +2 -2
  52. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -4
  54. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +2 -2
  58. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +5 -5
  60. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +20 -11
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -62
  66. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  67. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +62 -2
  68. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +13 -13
  70. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +11 -11
  72. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +20 -20
  76. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -6
  78. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  80. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +7 -7
  82. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +4 -4
  84. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +10 -10
  86. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +13 -13
  88. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.js +4 -4
  92. package/dist/prometheus-framework/src/modules/icons/navigation/IconLike.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/icons/navigation/IconLike.vue.js +7 -7
  94. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +3 -3
  96. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +6 -6
  98. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +2 -2
  100. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +8 -8
  104. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +3 -3
  106. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +8 -8
  110. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +4 -4
  112. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +7 -7
  118. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +14 -14
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +7 -7
  126. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +6 -6
  128. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +15 -15
  130. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +8 -8
  132. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +5 -5
  134. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +5 -5
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +7 -7
  138. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  140. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +2 -2
  141. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +4 -4
  143. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +5 -5
  145. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +2 -2
  147. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +5 -5
  149. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  151. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +5 -5
  153. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +8 -8
  155. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +6 -6
  157. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +18 -18
  159. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +5 -5
  161. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +9 -9
  163. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +1 -1
  165. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +8 -8
  167. package/dist/prometheus-framework.cjs.js +1 -1
  168. package/dist/prometheus-framework.es.js +2 -2
  169. package/dist/style.css +1 -1
  170. package/package.json +1 -1
  171. package/src/components/EditImages/EditImages.vue +3 -3
  172. package/src/components/EmptyState/EmptyState.vue +2 -2
  173. package/src/components/Field/Field.svlt +1 -1
  174. package/src/components/Field/Field.vue +1 -1
  175. package/src/components/FieldTags/BlockTags.vue +4 -4
  176. package/src/components/Footer/Footer.vue +8 -8
  177. package/src/components/LocationSelection/LocationSelection.vue +4 -4
  178. package/src/components/Search/Search.vue +3 -3
  179. package/src/configurator/components/layouts/layoutConfigurator.vue +2 -2
  180. package/src/configurator/components/pages/Styles.vue +3 -3
  181. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  182. package/src/modules/auth/components/pages/EnterPassword.vue +9 -9
  183. package/src/modules/auth/components/pages/Invite.vue +6 -6
  184. package/src/modules/auth/components/pages/ResetPassword.vue +10 -10
  185. package/src/modules/auth/components/pages/SignIn.vue +11 -11
  186. package/src/modules/auth/components/pages/SignUp.vue +11 -11
  187. package/src/modules/auth/components/sections/SliderFeatures.vue +2 -2
  188. package/src/modules/backoffice/components/admin/Categories.vue +2 -2
  189. package/src/modules/backoffice/components/admin/CategoryEdit.vue +2 -2
  190. package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
  191. package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
  192. package/src/modules/backoffice/components/admin/PageEdit.vue +3 -3
  193. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  194. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  195. package/src/modules/backoffice/components/admin/User.vue +6 -6
  196. package/src/modules/backoffice/components/admin/Users.vue +4 -4
  197. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  198. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  199. package/src/modules/community/components/blocks/CardBlogpost.vue +5 -5
  200. package/src/modules/community/components/layouts/Community.vue +2 -2
  201. package/src/modules/community/components/pages/BlogPost.vue +4 -4
  202. package/src/modules/community/components/pages/Community.vue +2 -2
  203. package/src/modules/community/components/pages/CreateBlogPost.vue +5 -5
  204. package/src/modules/community/components/sections/Comments.vue +5 -5
  205. package/src/modules/community/components/sections/Feed.vue +2 -2
  206. package/src/modules/community/components/sections/JoinUs.vue +2 -2
  207. package/src/modules/community/components/sections/SubscribeNewsletter.vue +3 -3
  208. package/src/modules/constructor/components/elements/Audio.vue +2 -2
  209. package/src/modules/constructor/components/elements/Bullets.vue +1 -1
  210. package/src/modules/constructor/components/elements/Caption.vue +1 -1
  211. package/src/modules/constructor/components/elements/Embed.vue +2 -2
  212. package/src/modules/constructor/components/elements/H2.vue +1 -1
  213. package/src/modules/constructor/components/elements/Image.vue +19 -5
  214. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  215. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  216. package/src/modules/constructor/components/sections/Constructor.vue +4 -4
  217. package/src/modules/events/components/blocks/CardEvent.vue +5 -5
  218. package/src/modules/events/components/layouts/layoutEvents.vue +1 -1
  219. package/src/modules/events/components/pages/EditEvent.vue +12 -12
  220. package/src/modules/events/components/pages/Event.vue +4 -4
  221. package/src/modules/events/components/pages/Events.vue +1 -1
  222. package/src/modules/events/components/sections/Feed.vue +2 -2
  223. package/src/modules/events/components/sections/List.vue +1 -1
  224. package/src/modules/gallery/components/sections/BackofficeGallery.vue +10 -10
  225. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +6 -6
  226. package/src/modules/globals/components/sections/Feed.vue +1 -1
  227. package/src/modules/icons/navigation/IconLike.vue +2 -1
  228. package/src/modules/landing/components/sections/MobileApp.vue +7 -7
  229. package/src/modules/legal/components/pages/Legal.vue +5 -5
  230. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  231. package/src/modules/mobile/components/Menu/MenuItem.vue +2 -2
  232. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  233. package/src/modules/orders/components/blocks/Positions.vue +8 -8
  234. package/src/modules/orders/components/pages/EditOrder.vue +19 -19
  235. package/src/modules/orders/components/pages/Favorites.vue +2 -2
  236. package/src/modules/orders/components/pages/Order.vue +5 -5
  237. package/src/modules/orders/components/pages/Orders.vue +5 -5
  238. package/src/modules/orders/components/pages/ViewOrder.vue +7 -7
  239. package/src/modules/orders/components/partials/ShopCart.vue +3 -3
  240. package/src/modules/orders/components/sections/Form.vue +12 -12
  241. package/src/modules/orders/components/sections/Succes.vue +4 -4
  242. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  243. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -3
  244. package/src/modules/organizations/components/blocks/Contacts.vue +1 -1
  245. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +2 -2
  246. package/src/modules/organizations/components/blocks/EditArray.vue +2 -2
  247. package/src/modules/organizations/components/blocks/EmptyState.vue +3 -3
  248. package/src/modules/organizations/components/blocks/Rating.vue +1 -1
  249. package/src/modules/organizations/components/pages/Department.vue +6 -6
  250. package/src/modules/organizations/components/pages/DepartmentEdit.vue +16 -16
  251. package/src/modules/organizations/components/pages/Members.vue +2 -2
  252. package/src/modules/organizations/components/pages/Organization.vue +5 -5
  253. package/src/modules/organizations/components/pages/OrganizationEdit.vue +16 -16
  254. package/src/modules/organizations/components/pages/Organizations.vue +2 -2
  255. package/src/modules/organizations/components/sections/DetailsTab.vue +11 -11
  256. package/src/modules/organizations/components/sections/Documents.vue +4 -4
  257. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  258. package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
  259. package/src/modules/organizations/components/sections/MembersAdd.vue +5 -5
  260. package/src/modules/organizations/components/sections/MembersList.vue +2 -2
  261. package/src/modules/organizations/components/sections/Unit.vue +12 -12
  262. package/src/modules/payments/components/pages/Payments.vue +3 -3
  263. package/src/modules/products/components/blocks/CardLeftover.vue +4 -4
  264. package/src/modules/products/components/blocks/CardProduct.vue +3 -3
  265. package/src/modules/products/components/blocks/EditCategories.vue +4 -4
  266. package/src/modules/products/components/blocks/EditFilters.vue +4 -4
  267. package/src/modules/products/components/blocks/LeftoverPositions.vue +1 -1
  268. package/src/modules/products/components/pages/LeftoverAdd.vue +7 -7
  269. package/src/modules/products/components/pages/Leftovers.vue +5 -5
  270. package/src/modules/products/components/pages/OrganizationDetails.vue +4 -4
  271. package/src/modules/products/components/pages/OrganizationDocuments.vue +5 -5
  272. package/src/modules/products/components/pages/OrganizationPeople.vue +5 -5
  273. package/src/modules/products/components/pages/ProductEdit.vue +5 -5
  274. package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
  275. package/src/modules/products/components/pages/ProductsBackoffice.vue +2 -2
  276. package/src/modules/products/components/sections/EditModifications.vue +8 -8
  277. package/src/modules/products/components/sections/EditParameters.vue +4 -4
  278. package/src/modules/products/components/sections/EditProductImages.vue +2 -2
  279. package/src/modules/products/components/sections/EditProductInfo.vue +5 -5
  280. package/src/modules/products/components/sections/FilterProducts.vue +9 -9
  281. package/src/modules/products/components/sections/HeroRecommendation.vue +5 -5
  282. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  283. package/src/modules/products/components/sections/ProductInformationSection.vue +27 -27
  284. package/src/modules/products/components/sections/SectionProduct.vue +6 -6
  285. package/src/modules/products/components/sections/SortProducts.vue +1 -1
  286. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  287. package/src/modules/reports/components/sections/FormReport.vue +4 -4
  288. package/src/modules/spots/components/blocks/CardSpot.vue +4 -4
  289. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  290. package/src/modules/spots/components/layouts/Spots.vue +3 -3
  291. package/src/modules/spots/components/pages/Spot.vue +4 -4
  292. package/src/modules/spots/components/pages/SpotEdit.vue +16 -16
  293. package/src/modules/spots/components/sections/Feed.vue +2 -2
  294. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  295. package/src/modules/spots/components/sections/Places.vue +1 -1
  296. package/src/modules/users/components/pages/Profile.vue +13 -13
  297. package/src/modules/users/components/pages/ProfileBlogposts.vue +2 -2
  298. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  299. package/src/modules/users/components/pages/ProfileEdit.vue +21 -21
  300. package/src/modules/users/components/pages/ProfileEvents.vue +2 -2
  301. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  302. package/src/modules/users/components/pages/ProfileOrganizations.vue +2 -2
  303. package/src/modules/users/components/sections/ProfileCompletion.vue +1 -1
  304. package/src/modules/wallet/components/pages/Wallet.vue +17 -17
  305. package/src/styles/base/all.scss +83 -324
  306. package/src/styles/base/border-radius.scss +47 -0
  307. package/src/styles/base/height.scss +60 -0
  308. package/src/styles/base/scrolling.scss +8 -8
  309. package/src/styles/base/width.scss +2 -0
  310. package/src/styles/config.scss +153 -51
  311. package/src/styles/responsive.scss +2 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Dropdown/Dropdown.vue.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
@@ -5,11 +5,11 @@ import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import s from "../sections/Feed.vue.js";
7
7
  import "../../../../components/Loader/Loader.vue.js";
8
- import "../../../../components/Popup/Popup.vue.js";
8
+ import "../../../../components/Popup/Popup.vue2.js";
9
9
  import "../../../../components/Button/Button.vue.js";
10
10
  import "../../../../components/Select/Select.vue.js";
11
11
  import "../../../reports/store/reports.js";
12
- import "../../../../components/Dropdown/Dropdown.vue2.js";
12
+ import "../../../../components/Dropdown/Dropdown.vue.js";
13
13
  import { state as a } from "../../../auth/store/auth.js";
14
14
  import "../../../organizations/store/memberships.js";
15
15
  import "../../../community/store/reactions.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const g=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../blocks/CardEvent.vue.cjs"),v=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),c=require("../../store/events.cjs"),f={class:"feed"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},creator:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},sortParam:{type:String,default:"date.start"},participant:{type:String,default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(i){const t=i,a=e.ref([]),n=e.ref(!1),l=e.ref(!0),u=e.ref(0),s=e.ref(20),d=async()=>{if(n.value){u.value+=s.value;const r=await c.read({skip:u.value,limit:s.value,category:t.category,sortOrder:t.sortOrder,sortParam:t.sortParam,participant:t.participant,creator:t.creator,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=[...a.value,...r]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const r=await c.read({skip:u.value,limit:s.value,category:t.category,participant:t.participant,sortOrder:t.sortOrder,sortParam:t.sortParam,user:t.user,owner:t.owner,creator:t.creator,date:t.selectedDate,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=r,l.value=!1}),(r,k)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,o=>(e.openBlock(),e.createBlock(v.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!l.value&&a.value.length<1?(e.openBlock(),e.createBlock(g.default,{key:0,title:"No Events Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"container"},{default:e.withCtx(()=>[!l.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(o,p)=>(e.openBlock(),e.createBlock(m.default,{onClick:h=>r.$router.push({name:"Event",params:{url:o.url}}),key:o._id,event:o,user:i.user,type:"normal",class:e.normalizeClass(["bg-grey radius-big mn-medium",{"br-b br-solid br-black-transp-10":p!==a.value.length-1}])},null,8,["onClick","event","user","class"]))),128)):e.createCommentVNode("",!0),n.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const g=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../blocks/CardEvent.vue.cjs"),v=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),c=require("../../store/events.cjs"),f={class:"feed"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},creator:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},sortParam:{type:String,default:"date.start"},participant:{type:String,default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(i){const t=i,a=e.ref([]),n=e.ref(!1),l=e.ref(!0),u=e.ref(0),s=e.ref(20),d=async()=>{if(n.value){u.value+=s.value;const r=await c.read({skip:u.value,limit:s.value,category:t.category,sortOrder:t.sortOrder,sortParam:t.sortParam,participant:t.participant,creator:t.creator,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=[...a.value,...r]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const r=await c.read({skip:u.value,limit:s.value,category:t.category,participant:t.participant,sortOrder:t.sortOrder,sortParam:t.sortParam,user:t.user,owner:t.owner,creator:t.creator,date:t.selectedDate,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=r,l.value=!1}),(r,k)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,o=>(e.openBlock(),e.createBlock(v.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!l.value&&a.value.length<1?(e.openBlock(),e.createBlock(g.default,{key:0,title:"No Events Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"container"},{default:e.withCtx(()=>[!l.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(o,p)=>(e.openBlock(),e.createBlock(m.default,{onClick:h=>r.$router.push({name:"Event",params:{url:o.url}}),key:o._id,event:o,user:i.user,type:"normal",class:e.normalizeClass(["bg-grey radius-big mn-b-medium",{"br-b br-solid br-black-transp-10":p!==a.value.length-1}])},null,8,["onClick","event","user","class"]))),128)):e.createCommentVNode("",!0),n.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=y;
@@ -3,7 +3,7 @@ import "../../../../components/Loader/Loader.vue.js";
3
3
  import z from "../../../../components/EmptyState/EmptyState.vue.js";
4
4
  import E from "../blocks/CardEvent.vue.js";
5
5
  import P from "../../../icons/skeletons/SkeletonEvent.vue.js";
6
- import { read as k } from "../../store/events.js";
6
+ import { read as b } from "../../store/events.js";
7
7
  const O = { class: "feed" }, x = {
8
8
  __name: "Feed",
9
9
  props: {
@@ -53,10 +53,10 @@ const O = { class: "feed" }, x = {
53
53
  }
54
54
  },
55
55
  setup(v) {
56
- const e = v, t = s([]), n = s(!1), l = s(!0), d = s(0), i = s(20), b = async () => {
56
+ const e = v, t = s([]), n = s(!1), l = s(!0), d = s(0), i = s(20), k = async () => {
57
57
  if (n.value) {
58
58
  d.value += i.value;
59
- const a = await k({
59
+ const a = await b({
60
60
  skip: d.value,
61
61
  limit: i.value,
62
62
  category: e.category,
@@ -76,7 +76,7 @@ const O = { class: "feed" }, x = {
76
76
  };
77
77
  return S(async () => {
78
78
  l.value = !0, console.log(e.selectedDate);
79
- const a = await k({
79
+ const a = await b({
80
80
  skip: d.value,
81
81
  limit: i.value,
82
82
  category: e.category,
@@ -109,7 +109,7 @@ const O = { class: "feed" }, x = {
109
109
  key: 0,
110
110
  title: "No Events Found",
111
111
  description: "Currently, there are no events available. Please check back later.",
112
- class: "pd-medium mn-thin bg-grey radius-big"
112
+ class: "pd-medium mn-b-thin bg-grey radius-big"
113
113
  })) : c("", !0)
114
114
  ]),
115
115
  _: 1
@@ -126,13 +126,13 @@ const O = { class: "feed" }, x = {
126
126
  event: o,
127
127
  user: v.user,
128
128
  type: "normal",
129
- class: C(["bg-grey radius-big mn-medium", {
129
+ class: C(["bg-grey radius-big mn-b-medium", {
130
130
  "br-b br-solid br-black-transp-10": _ !== t.value.length - 1
131
131
  }])
132
132
  }, null, 8, ["onClick", "event", "user", "class"]))), 128)) : c("", !0),
133
133
  n.value && t.value.length > 0 ? (r(), u("button", {
134
134
  key: 1,
135
- onClick: b,
135
+ onClick: k,
136
136
  class: "w-100 bg-main button"
137
137
  }, "Load more")) : c("", !0)
138
138
  ]),
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardEvent.vue.cjs"),p=require("../../../icons/skeletons/SkeletonEventShort.vue.cjs"),m=require("../../store/events.cjs");require("./List.vue2.cjs");const g={class:"today-events"},k={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(l){const t=l,r=e.ref([]),n=e.ref(!0),s=e.ref(0),u=e.ref(5);return e.onMounted(async()=>{const o=await m.read({skip:s.value,limit:u.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=o,n.value=!1}),(o,v)=>(e.openBlock(),e.createElementBlock("section",g,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,a=>(e.openBlock(),e.createBlock(p.default,{key:a}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&r.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(a,i)=>(e.openBlock(),e.createBlock(d.default,{onClick:f=>o.$router.push({name:"Event",params:{url:a.url}}),key:a._id,event:a,owner:l.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":i!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardEvent.vue.cjs"),p=require("../../../icons/skeletons/SkeletonEventShort.vue.cjs"),m=require("../../store/events.cjs");require("./List.vue2.cjs");const g={class:"today-events"},k={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(l){const t=l,r=e.ref([]),n=e.ref(!0),s=e.ref(0),u=e.ref(5);return e.onMounted(async()=>{const o=await m.read({skip:s.value,limit:u.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=o,n.value=!1}),(o,v)=>(e.openBlock(),e.createElementBlock("section",g,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,a=>(e.openBlock(),e.createBlock(p.default,{key:a}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&r.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(a,i)=>(e.openBlock(),e.createBlock(d.default,{onClick:f=>o.$router.push({name:"Event",params:{url:a.url}}),key:a._id,event:a,owner:l.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":i!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
@@ -1,4 +1,4 @@
1
- import { ref as o, onMounted as h, openBlock as t, createElementBlock as i, createVNode as s, TransitionGroup as g, withCtx as u, Fragment as f, renderList as y, createBlock as c, createCommentVNode as d, Transition as _, normalizeClass as b } from "vue";
1
+ import { ref as o, onMounted as h, openBlock as t, createElementBlock as i, createVNode as s, TransitionGroup as g, withCtx as u, Fragment as f, renderList as y, createBlock as c, createCommentVNode as d, Transition as b, normalizeClass as _ } from "vue";
2
2
  import "../../../../components/Loader/Loader.vue.js";
3
3
  import S from "../../../../components/EmptyState/EmptyState.vue.js";
4
4
  import w from "../blocks/CardEvent.vue.js";
@@ -59,13 +59,13 @@ const E = { class: "today-events" }, M = {
59
59
  ]),
60
60
  _: 1
61
61
  }),
62
- s(_, { name: "fade" }, {
62
+ s(b, { name: "fade" }, {
63
63
  default: u(() => [
64
64
  !n.value && a.value.length < 1 ? (t(), c(S, {
65
65
  key: 0,
66
66
  title: "No Events Today",
67
67
  description: "Today, are no events available. Please check back later.",
68
- class: "pd-medium mn-thin bg-grey radius-big"
68
+ class: "pd-medium mn-b-thin bg-grey radius-big"
69
69
  })) : d("", !0)
70
70
  ]),
71
71
  _: 1
@@ -82,7 +82,7 @@ const E = { class: "today-events" }, M = {
82
82
  event: r,
83
83
  owner: m.user,
84
84
  type: "short",
85
- class: b(["pd-medium", {
85
+ class: _(["pd-medium", {
86
86
  "br-b br-solid br-black-transp-10": k !== a.value.length - 1
87
87
  }])
88
88
  }, null, 8, ["onClick", "event", "owner", "class"]))), 128)) : d("", !0)
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/Button/Button.vue2.cjs"),M=require("../../../../components/Select/Select.vue2.cjs"),s=require("../../store/gallery.cjs"),P=require("../../../../components/EditImages/EditImages.vue.cjs");require("./BackofficeGallery.vue2.cjs");const j=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=i=>(e.pushScopeId("data-v-d6a1c805"),i=i(),e.popScopeId(),i),G={class:"pos-relative w-100"},D={class:"mn-semi flex-v-center flex-nowrap flex"},T=c(()=>e.createElementVNode("h1",{class:"mn-r-small"},"Manage Gallery",-1)),U=["data-id"],$=["src","onClick"],F={key:1,class:"radius-small bg-white"},O=["src","onClick"],L={class:"t-black p-small mn-thin"},A=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Size",-1)),H=c(()=>e.createElementVNode("br",null,null,-1)),R={class:"pd-2px radius-big d-inline-block bg-grey"},J={class:"t-black p-small mn-small uppe"},K=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Categories",-1)),Q=c(()=>e.createElementVNode("br",null,null,-1)),W={class:"pd-2px radius-big d-inline-block bg-grey t-semi"},X={class:"flex-nowrap flex"},Y=["onClick"],Z={class:"modal pd-thin"},ee={class:"modal-content radius-big"},te={class:""},le=["src"],oe={key:0,class:"flex-v-center flex m modal pd-big"},ae={class:"modal-content radius-small pd-medium bg-white"},se=["src"],ne=["src"],y=10,ce={__name:"BackofficeGallery",setup(i){const r=e.ref(!0),h=e.ref(null);let v=1,f=e.ref(null),_=e.ref(!1);const d=e.ref([]),E=o=>{d.value=o},w=e.computed(()=>b.value==="all"?s.state.gallery:s.state.gallery.filter(o=>o.categories.includes(b.value))),V=async()=>{_.value=!0,await s.actions.fetchGallery(v,y),_.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),m=e.ref(null),g=o=>{console.log(r.value),r.value?N(o):(u.value="modal",t.value.image=o,k())},N=o=>{u.value="edit-modal",t.value=o||{categories:"",size:"",image:null},k()},n=()=>{t.value={categories:"",size:"",image:!1},m.value=null,B()},k=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},B=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},C=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],x=async o=>{await s.actions.deletePhoto(o)},S=async()=>{await s.actions.updatePhoto(t.value),n()},z=async o=>{if(d.length<1||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({images:d.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(a=>a.trim()):t.value.categories}),n()};let b=e.ref("all");return e.onMounted(async()=>{await s.actions.fetchGallery(v,y),typeof window<"u"&&new IntersectionObserver(a=>{a.some(l=>l.isIntersecting)&&(v+=1,V())}).observe(f.value)}),(o,a)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",D,[T,r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=l=>g(null)),class:"t-white t-black bg-second i-big radius-extra"},"+")):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:h,class:"cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(l,re)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[!r.value&&h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:p=>g(l.image)},null,8,$)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 radius-small mn-small h-10r object-fit-cover",onClick:p=>g(l)},null,8,O),e.createElementVNode("p",L,[A,H,e.createElementVNode("span",R,e.toDisplayString(l.size.name),1)]),e.createElementVNode("p",J,[K,Q,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.categories,p=>(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(p),1))),256))]),e.createElementVNode("div",X,[e.createElementVNode("button",{class:"button-small w-100 button",onClick:p=>x(l._id)},"Delete",8,Y)])]))]),_:2},1024)],8,U))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:f,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,le)])])],512),[[e.vShow,t.value.image!==!1&&u.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&u.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof m.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value,class:"radius-small w-100 mn-small h-20r object-fit-cover"},null,8,se)):e.createCommentVNode("",!0),typeof m.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,ne)):e.createCommentVNode("",!0),e.createVNode(M.default,{options:C,label:"Size",select:t.value.size,"onUpdate:select":a[1]||(a[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-thin t-black"},null,8,["select"]),e.createVNode(I.default,{field:t.value.categories,"onUpdate:field":a[2]||(a[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-medium t-black"},null,8,["field"]),e.createVNode(P.default,{images:d.value,"onUpdate:images":E,uploadPath:"photos",class:"mn-semi"},null,8,["images"]),e.createVNode(q.default,{submit:t.value._id?S:z,callback:n,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},ie=j.default(ce,[["__scopeId","data-v-d6a1c805"]]);exports.default=ie;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/Button/Button.vue2.cjs"),M=require("../../../../components/Select/Select.vue2.cjs"),s=require("../../store/gallery.cjs"),P=require("../../../../components/EditImages/EditImages.vue.cjs");require("./BackofficeGallery.vue2.cjs");const j=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=i=>(e.pushScopeId("data-v-c506f5e5"),i=i(),e.popScopeId(),i),G={class:"pos-relative w-100"},D={class:"mn-b-semi flex-v-center flex-nowrap flex"},T=c(()=>e.createElementVNode("h1",{class:"mn-r-small"},"Manage Gallery",-1)),U=["data-id"],$=["src","onClick"],F={key:1,class:"radius-small bg-white"},O=["src","onClick"],L={class:"t-black p-small mn-b-thin"},A=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Size",-1)),H=c(()=>e.createElementVNode("br",null,null,-1)),R={class:"pd-2px radius-big d-inline-block bg-grey"},J={class:"t-black p-small mn-b-small uppe"},K=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Categories",-1)),Q=c(()=>e.createElementVNode("br",null,null,-1)),W={class:"pd-2px radius-big d-inline-block bg-grey t-semi"},X={class:"flex-nowrap flex"},Y=["onClick"],Z={class:"modal pd-thin"},ee={class:"modal-content radius-big"},te={class:""},le=["src"],oe={key:0,class:"flex-v-center flex m modal pd-big"},ae={class:"modal-content radius-small pd-medium bg-white"},se=["src"],ne=["src"],y=10,ce={__name:"BackofficeGallery",setup(i){const r=e.ref(!0),h=e.ref(null);let v=1,f=e.ref(null),_=e.ref(!1);const d=e.ref([]),E=o=>{d.value=o},w=e.computed(()=>k.value==="all"?s.state.gallery:s.state.gallery.filter(o=>o.categories.includes(k.value))),V=async()=>{_.value=!0,await s.actions.fetchGallery(v,y),_.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),m=e.ref(null),g=o=>{console.log(r.value),r.value?N(o):(u.value="modal",t.value.image=o,b())},N=o=>{u.value="edit-modal",t.value=o||{categories:"",size:"",image:null},b()},n=()=>{t.value={categories:"",size:"",image:!1},m.value=null,B()},b=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},B=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},C=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],x=async o=>{await s.actions.deletePhoto(o)},S=async()=>{await s.actions.updatePhoto(t.value),n()},z=async o=>{if(d.length<1||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({images:d.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(a=>a.trim()):t.value.categories}),n()};let k=e.ref("all");return e.onMounted(async()=>{await s.actions.fetchGallery(v,y),typeof window<"u"&&new IntersectionObserver(a=>{a.some(l=>l.isIntersecting)&&(v+=1,V())}).observe(f.value)}),(o,a)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",D,[T,r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=l=>g(null)),class:"t-white t-black bg-second i-big radius-extra"},"+")):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:h,class:"cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(l,re)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[!r.value&&h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:p=>g(l.image)},null,8,$)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 radius-small mn-b-small h-10r object-fit-cover",onClick:p=>g(l)},null,8,O),e.createElementVNode("p",L,[A,H,e.createElementVNode("span",R,e.toDisplayString(l.size.name),1)]),e.createElementVNode("p",J,[K,Q,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.categories,p=>(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(p),1))),256))]),e.createElementVNode("div",X,[e.createElementVNode("button",{class:"button-small w-100 button",onClick:p=>x(l._id)},"Delete",8,Y)])]))]),_:2},1024)],8,U))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:f,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,le)])])],512),[[e.vShow,t.value.image!==!1&&u.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&u.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof m.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,se)):e.createCommentVNode("",!0),typeof m.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,ne)):e.createCommentVNode("",!0),e.createVNode(M.default,{options:C,label:"Size",select:t.value.size,"onUpdate:select":a[1]||(a[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(I.default,{field:t.value.categories,"onUpdate:field":a[2]||(a[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(P.default,{images:d.value,"onUpdate:images":E,uploadPath:"photos",class:"mn-b-semi"},null,8,["images"]),e.createVNode(q.default,{submit:t.value._id?S:z,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},ie=j.default(ce,[["__scopeId","data-v-c506f5e5"]]);exports.default=ie;
@@ -6,10 +6,10 @@ import { state as G, actions as d } from "../../store/gallery.js";
6
6
  import Y from "../../../../components/EditImages/EditImages.vue.js";
7
7
  import "./BackofficeGallery.vue2.js";
8
8
  import Z from "../../../../../../_virtual/_plugin-vue_export-helper.js";
9
- const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-relative w-100" }, te = { class: "mn-semi flex-v-center flex-nowrap flex" }, le = /* @__PURE__ */ u(() => /* @__PURE__ */ t("h1", { class: "mn-r-small" }, "Manage Gallery", -1)), se = ["data-id"], ae = ["src", "onClick"], oe = {
9
+ const u = (m) => (J("data-v-c506f5e5"), m = m(), K(), m), ee = { class: "pos-relative w-100" }, te = { class: "mn-b-semi flex-v-center flex-nowrap flex" }, le = /* @__PURE__ */ u(() => /* @__PURE__ */ t("h1", { class: "mn-r-small" }, "Manage Gallery", -1)), se = ["data-id"], ae = ["src", "onClick"], oe = {
10
10
  key: 1,
11
11
  class: "radius-small bg-white"
12
- }, ie = ["src", "onClick"], ne = { class: "t-black p-small mn-thin" }, ce = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "uppercase t-transp" }, "Size", -1)), re = /* @__PURE__ */ u(() => /* @__PURE__ */ t("br", null, null, -1)), de = { class: "pd-2px radius-big d-inline-block bg-grey" }, ue = { class: "t-black p-small mn-small uppe" }, me = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "uppercase t-transp" }, "Categories", -1)), pe = /* @__PURE__ */ u(() => /* @__PURE__ */ t("br", null, null, -1)), ve = { class: "pd-2px radius-big d-inline-block bg-grey t-semi" }, ge = { class: "flex-nowrap flex" }, he = ["onClick"], _e = { class: "modal pd-thin" }, fe = { class: "modal-content radius-big" }, be = { class: "" }, ye = ["src"], ke = {
12
+ }, ie = ["src", "onClick"], ne = { class: "t-black p-small mn-b-thin" }, ce = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "uppercase t-transp" }, "Size", -1)), re = /* @__PURE__ */ u(() => /* @__PURE__ */ t("br", null, null, -1)), de = { class: "pd-2px radius-big d-inline-block bg-grey" }, ue = { class: "t-black p-small mn-b-small uppe" }, me = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "uppercase t-transp" }, "Categories", -1)), pe = /* @__PURE__ */ u(() => /* @__PURE__ */ t("br", null, null, -1)), ve = { class: "pd-2px radius-big d-inline-block bg-grey t-semi" }, ge = { class: "flex-nowrap flex" }, he = ["onClick"], _e = { class: "modal pd-thin" }, fe = { class: "modal-content radius-big" }, be = { class: "" }, ye = ["src"], ke = {
13
13
  key: 0,
14
14
  class: "flex-v-center flex m modal pd-big"
15
15
  }, we = { class: "modal-content radius-small pd-medium bg-white" }, xe = ["src"], Ce = ["src"], $ = 10, ze = {
@@ -99,7 +99,7 @@ const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-rel
99
99
  }, null, 8, ae)) : (a(), o("div", oe, [
100
100
  t("img", {
101
101
  src: "https://thecommunephuket.com/photos/" + l.cover,
102
- class: "w-100 radius-small mn-small h-10r object-fit-cover",
102
+ class: "w-100 radius-small mn-b-small h-10r object-fit-cover",
103
103
  onClick: (_) => k(l)
104
104
  }, null, 8, ie),
105
105
  t("p", ne, [
@@ -159,11 +159,11 @@ const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-rel
159
159
  typeof h.value == "string" ? (a(), o("img", {
160
160
  key: 0,
161
161
  src: h.value,
162
- class: "radius-small w-100 mn-small h-20r object-fit-cover"
162
+ class: "radius-small w-100 mn-b-small h-20r object-fit-cover"
163
163
  }, null, 8, xe)) : f("", !0),
164
164
  typeof h.value == "object" && e.value.image !== null ? (a(), o("img", {
165
165
  key: 1,
166
- class: "radius-small w-100 mn-small h-20r object-fit-cover",
166
+ class: "radius-small w-100 mn-b-small h-20r object-fit-cover",
167
167
  src: "/photos/" + e.value.cover
168
168
  }, null, 8, Ce)) : f("", !0),
169
169
  c(X, {
@@ -172,7 +172,7 @@ const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-rel
172
172
  select: e.value.size,
173
173
  "onUpdate:select": i[1] || (i[1] = (l) => e.value.size = l),
174
174
  placeholder: "Select Size",
175
- class: "bg-grey pd-thin radius-small mn-thin t-black"
175
+ class: "bg-grey pd-thin radius-small mn-b-thin t-black"
176
176
  }, null, 8, ["select"]),
177
177
  c(Q, {
178
178
  field: e.value.categories,
@@ -180,18 +180,18 @@ const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-rel
180
180
  type: "text",
181
181
  label: "Categories",
182
182
  placeholder: "Enter categories for image (comma separated)",
183
- class: "bg-grey pd-thin radius-small mn-medium t-black"
183
+ class: "bg-grey pd-thin radius-small mn-b-medium t-black"
184
184
  }, null, 8, ["field"]),
185
185
  c(Y, {
186
186
  images: v.value,
187
187
  "onUpdate:images": j,
188
188
  uploadPath: "photos",
189
- class: "mn-semi"
189
+ class: "mn-b-semi"
190
190
  }, null, 8, ["images"]),
191
191
  c(W, {
192
192
  submit: e.value._id ? O : T,
193
193
  callback: r,
194
- class: "mn-thin"
194
+ class: "mn-b-thin"
195
195
  }, {
196
196
  default: b(() => [
197
197
  H(x(e.value._id ? "Update" : "Create"), 1)
@@ -206,7 +206,7 @@ const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-rel
206
206
  ], 512)
207
207
  ]));
208
208
  }
209
- }, Ue = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-d6a1c805"]]);
209
+ }, Ue = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-c506f5e5"]]);
210
210
  export {
211
211
  Ue as default
212
212
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),z=require("../../../../components/Field/Field.vue2.cjs"),S=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Select/Select.vue2.cjs"),M=require("../../../../components/Upload/Upload.vue.cjs"),s=require("../../store/gallery.cjs");require("./GalleryWithCategories.vue2.cjs");const F=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={class:"pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},P=["onClick"],j=["data-id"],G=["src","onClick"],R={class:"modal pd-thin"},T={class:"modal-content radius-big"},U={class:""},D=["src"],L={key:0,class:"flex-v-center flex m modal pd-big"},O={class:"modal-content radius-small pd-medium bg-white"},$=["src"],A=["src"],W=!1,h=10,H={__name:"GalleryWithCategories",setup(K){x.useRoute();const m=e.ref(null),f=["all","place","drinks","people","events"];let d=1,v=e.ref(null),g=e.ref(!1);const _=e.computed(()=>c.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(c.value))),k=async()=>{g.value=!0,await s.actions.fetchGallery(d,h),g.value=!1},r=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),i=e.ref(null),y=a=>{W.value?b(a):(r.value="modal",t.value.image=a,p())},b=a=>{r.value="edit-modal",t.value=a||{categories:"",size:"",image:null},p()},n=()=>{t.value={categories:"",size:"",image:!1},i.value=null,w()},p=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},w=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},V=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],C=async()=>{await s.actions.updatePhoto(t.value),n()},E=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=u=>{i.value=u.target.result},l.readAsDataURL(o[0])}},N=async a=>{if(!t.value.image||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({...t.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(o=>o.trim()):t.value.categories}),n()};let c=e.ref("all");const B=a=>{c.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(d,h),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(d+=1,k())}).observe(v.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",I,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,l=>e.createElementVNode("a",{key:l,onClick:u=>B(l),class:e.normalizeClass(["h3 uppercase mn-r-big",{"t-transp":e.unref(c)!==l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,P)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:m,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:Q=>y(l.image)},null,8,G)):e.createCommentVNode("",!0)]),_:2},1024)],8,j))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:v,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",R,[e.createElementVNode("div",T,[e.createElementVNode("div",U,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,D)])])],512),[[e.vShow,t.value.image!==!1&&r.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&r.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof i.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value,class:"radius-small w-100 mn-small h-20r object-fit-cover"},null,8,$)):e.createCommentVNode("",!0),typeof i.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,A)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-thin",onFileChange:E,multiple:"true"})),e.createVNode(q.default,{options:V,label:"Size",select:t.value.size,"onUpdate:select":o[1]||(o[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-thin t-black"},null,8,["select"]),e.createVNode(z.default,{field:t.value.categories,"onUpdate:field":o[2]||(o[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-medium t-black"},null,8,["field"]),e.createVNode(S.default,{submit:t.value._id?C:N,callback:n,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},J=F.default(H,[["__scopeId","data-v-34379ac8"]]);exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),z=require("../../../../components/Field/Field.vue2.cjs"),S=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Select/Select.vue2.cjs"),M=require("../../../../components/Upload/Upload.vue.cjs"),s=require("../../store/gallery.cjs");require("./GalleryWithCategories.vue2.cjs");const F=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={class:"pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},P=["onClick"],j=["data-id"],G=["src","onClick"],R={class:"modal pd-thin"},T={class:"modal-content radius-big"},U={class:""},D=["src"],L={key:0,class:"flex-v-center flex m modal pd-big"},O={class:"modal-content radius-small pd-medium bg-white"},$=["src"],A=["src"],W=!1,f=10,H={__name:"GalleryWithCategories",setup(K){x.useRoute();const m=e.ref(null),h=["all","place","drinks","people","events"];let d=1,v=e.ref(null),g=e.ref(!1);const _=e.computed(()=>c.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(c.value))),k=async()=>{g.value=!0,await s.actions.fetchGallery(d,f),g.value=!1},r=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),i=e.ref(null),y=a=>{W.value?b(a):(r.value="modal",t.value.image=a,p())},b=a=>{r.value="edit-modal",t.value=a||{categories:"",size:"",image:null},p()},n=()=>{t.value={categories:"",size:"",image:!1},i.value=null,w()},p=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},w=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},V=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],C=async()=>{await s.actions.updatePhoto(t.value),n()},E=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=u=>{i.value=u.target.result},l.readAsDataURL(o[0])}},N=async a=>{if(!t.value.image||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({...t.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(o=>o.trim()):t.value.categories}),n()};let c=e.ref("all");const B=a=>{c.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(d,f),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(d+=1,k())}).observe(v.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",I,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,l=>e.createElementVNode("a",{key:l,onClick:u=>B(l),class:e.normalizeClass(["h3 uppercase mn-r-big",{"t-transp":e.unref(c)!==l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,P)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:m,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:Q=>y(l.image)},null,8,G)):e.createCommentVNode("",!0)]),_:2},1024)],8,j))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:v,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",R,[e.createElementVNode("div",T,[e.createElementVNode("div",U,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,D)])])],512),[[e.vShow,t.value.image!==!1&&r.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&r.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof i.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,$)):e.createCommentVNode("",!0),typeof i.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,A)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-b-thin",onFileChange:E,multiple:"true"})),e.createVNode(q.default,{options:V,label:"Size",select:t.value.size,"onUpdate:select":o[1]||(o[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(z.default,{field:t.value.categories,"onUpdate:field":o[2]||(o[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(S.default,{submit:t.value._id?C:N,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},J=F.default(H,[["__scopeId","data-v-9df3ef50"]]);exports.default=J;
@@ -14,8 +14,8 @@ const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
14
14
  __name: "GalleryWithCategories",
15
15
  setup(ve) {
16
16
  H();
17
- const y = n(null), I = ["all", "place", "drinks", "people", "events"];
18
- let f = 1, b = n(null), k = n(!1);
17
+ const b = n(null), I = ["all", "place", "drinks", "people", "events"];
18
+ let f = 1, y = n(null), k = n(!1);
19
19
  const M = $(() => v.value === "all" ? S.gallery : S.gallery.filter((t) => t.categories.includes(v.value))), F = async () => {
20
20
  k.value = !0, await g.fetchGallery(f, E), k.value = !1;
21
21
  }, m = n(null), e = n({
@@ -73,7 +73,7 @@ const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
73
73
  return D(async () => {
74
74
  await g.fetchGallery(f, E), typeof window < "u" && new IntersectionObserver((a) => {
75
75
  a.some((l) => l.isIntersecting) && (f += 1, F());
76
- }).observe(b.value);
76
+ }).observe(y.value);
77
77
  }), (t, a) => (o(), i("div", null, [
78
78
  s("div", Z, [
79
79
  (o(), i(C, null, z(I, (l) => s("a", {
@@ -85,7 +85,7 @@ const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
85
85
  ]),
86
86
  s("div", {
87
87
  ref_key: "grid",
88
- ref: y,
88
+ ref: b,
89
89
  class: "pd-medium cols-4 gap-thin"
90
90
  }, [
91
91
  (o(!0), i(C, null, z(M.value, (l, h) => (o(), i("div", {
@@ -97,7 +97,7 @@ const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
97
97
  mode: "in-out"
98
98
  }, {
99
99
  default: p(() => [
100
- y.value ? (o(), i("img", {
100
+ b.value ? (o(), i("img", {
101
101
  key: 0,
102
102
  src: "https://thecommunephuket.com/photos/" + l.cover,
103
103
  class: "w-100 h-100 o-hidden radius-medium object-fit-cover",
@@ -109,7 +109,7 @@ const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
109
109
  ], 8, le))), 128)),
110
110
  s("div", {
111
111
  ref_key: "sentinel",
112
- ref: b,
112
+ ref: y,
113
113
  class: "sentinel"
114
114
  }, null, 512),
115
115
  c(_, { name: "modal" }, {
@@ -143,11 +143,11 @@ const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
143
143
  typeof d.value == "string" ? (o(), i("img", {
144
144
  key: 0,
145
145
  src: d.value,
146
- class: "radius-small w-100 mn-small h-20r object-fit-cover"
146
+ class: "radius-small w-100 mn-b-small h-20r object-fit-cover"
147
147
  }, null, 8, ce)) : r("", !0),
148
148
  typeof d.value == "object" && e.value.image !== null ? (o(), i("img", {
149
149
  key: 1,
150
- class: "radius-small w-100 mn-small h-20r object-fit-cover",
150
+ class: "radius-small w-100 mn-b-small h-20r object-fit-cover",
151
151
  src: "/photos/" + e.value.cover
152
152
  }, null, 8, de)) : r("", !0),
153
153
  e.value._id ? r("", !0) : (o(), W(X, {
@@ -155,7 +155,7 @@ const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
155
155
  id: "photo",
156
156
  name: "photo",
157
157
  type: "file",
158
- class: "t-black bg-grey pd-thin radius-small mn-thin",
158
+ class: "t-black bg-grey pd-thin radius-small mn-b-thin",
159
159
  onFileChange: N,
160
160
  multiple: "true"
161
161
  })),
@@ -165,7 +165,7 @@ const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
165
165
  select: e.value.size,
166
166
  "onUpdate:select": a[1] || (a[1] = (l) => e.value.size = l),
167
167
  placeholder: "Select Size",
168
- class: "bg-grey pd-thin radius-small mn-thin t-black"
168
+ class: "bg-grey pd-thin radius-small mn-b-thin t-black"
169
169
  }, null, 8, ["select"]),
170
170
  c(J, {
171
171
  field: e.value.categories,
@@ -173,12 +173,12 @@ const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
173
173
  type: "text",
174
174
  label: "Categories",
175
175
  placeholder: "Enter categories for image (comma separated)",
176
- class: "bg-grey pd-thin radius-small mn-medium t-black"
176
+ class: "bg-grey pd-thin radius-small mn-b-medium t-black"
177
177
  }, null, 8, ["field"]),
178
178
  c(K, {
179
179
  submit: e.value._id ? B : R,
180
180
  callback: u,
181
- class: "mn-thin"
181
+ class: "mn-b-thin"
182
182
  }, {
183
183
  default: p(() => [
184
184
  q(x(e.value._id ? "Update" : "Create"), 1)
@@ -193,7 +193,7 @@ const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
193
193
  ], 512)
194
194
  ]));
195
195
  }
196
- }, ze = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-34379ac8"]]);
196
+ }, ze = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-9df3ef50"]]);
197
197
  export {
198
198
  ze as default
199
199
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),h=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("../../../reports/components/sections/FormReport.vue.cjs"),g=require("../../../../components/Dropdown/Dropdown.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const k={key:0,class:"pd-b-zero"},y={class:"w-100 flex-v-center flex-nojustify flex"},w={class:"w-100 flex-nowrap flex-v-center flex"},b=["src"],B={key:2,class:"t-semi"},E={key:1},V={key:2},p={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},x={key:0,class:"w-4r i-thin"},C={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"},N=["src"],$={class:"bg-black pd-thin radius-small"},v=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),M={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){m.useRouter();function u(o){const r=new Date,i=new Date(o),s=Math.abs(r-i),a=Math.floor(s/1e3),n=Math.floor(a/60),l=Math.floor(n/60),c=Math.floor(l/24),d=Math.floor(c/7);return d>0?`${d} week${d>1?"s":""} ago`:c>0?`${c} day${c>1?"s":""} ago`:l>0?`${l} hour${l>1?"s":""} ago`:n>0?`${n} minute${n>1?"s":""} ago`:"Just now"}return(o,r)=>{var i,s;return t.owner?(e.openBlock(),e.createElementBlock("header",k,[e.createElementVNode("div",y,[e.createElementVNode("div",w,[t.owner.target.profile.photo.length>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(a=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,b)):e.createCommentVNode("",!0),!t.owner.target.profile.photo&&t.type!=="short"?(e.openBlock(),e.createBlock(h.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(a=>o.$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",B,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(a=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(t.owner.target.profile.name),1),!t.creator.hidden&&t.owner.target.profile.name!==((i=t.creator.target.profile)==null?void 0:i.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(a=>o.$router.push({name:"User Profile",params:{_id:t.creator.target._id}}),["stop"]))}," · by "+e.toDisplayString((s=t.creator.target.profile)==null?void 0:s.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",E," · "+e.toDisplayString(u(t.date)),1)):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",V," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",p,[t.members?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("span",C,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(a,n)=>(e.openBlock(),e.createElementBlock("img",{key:n,src:(o.FILE_SERVER_URL||"")+a,style:e.normalizeStyle({position:"absolute",top:"0px",right:n*20+20+"%",zIndex:1-n}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,N))),128))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user&&t.user!=t.creator.target._id?(e.openBlock(),e.createBlock(g.default,{key:3,label:"...",align:"right",class:"cursor-pointer z-index-2 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",$,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(f.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[v]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=M;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),h=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("../../../reports/components/sections/FormReport.vue.cjs"),g=require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const k={key:0,class:"pd-b-zero"},y={class:"w-100 flex-v-center flex-nojustify flex"},w={class:"w-100 flex-nowrap flex-v-center flex"},b=["src"],B={key:2,class:"t-semi"},E={key:1},V={key:2},p={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},x={key:0,class:"w-4r i-thin"},C={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"},N=["src"],$={class:"bg-black pd-thin radius-small"},v=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),M={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){m.useRouter();function u(o){const r=new Date,i=new Date(o),s=Math.abs(r-i),a=Math.floor(s/1e3),n=Math.floor(a/60),l=Math.floor(n/60),c=Math.floor(l/24),d=Math.floor(c/7);return d>0?`${d} week${d>1?"s":""} ago`:c>0?`${c} day${c>1?"s":""} ago`:l>0?`${l} hour${l>1?"s":""} ago`:n>0?`${n} minute${n>1?"s":""} ago`:"Just now"}return(o,r)=>{var i,s;return t.owner?(e.openBlock(),e.createElementBlock("header",k,[e.createElementVNode("div",y,[e.createElementVNode("div",w,[t.owner.target.profile.photo.length>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(a=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,b)):e.createCommentVNode("",!0),!t.owner.target.profile.photo&&t.type!=="short"?(e.openBlock(),e.createBlock(h.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(a=>o.$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",B,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(a=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(t.owner.target.profile.name),1),!t.creator.hidden&&t.owner.target.profile.name!==((i=t.creator.target.profile)==null?void 0:i.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(a=>o.$router.push({name:"User Profile",params:{_id:t.creator.target._id}}),["stop"]))}," · by "+e.toDisplayString((s=t.creator.target.profile)==null?void 0:s.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",E," · "+e.toDisplayString(u(t.date)),1)):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",V," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",p,[t.members?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("span",C,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(a,n)=>(e.openBlock(),e.createElementBlock("img",{key:n,src:(o.FILE_SERVER_URL||"")+a,style:e.normalizeStyle({position:"absolute",top:"0px",right:n*20+20+"%",zIndex:1-n}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,N))),128))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user&&t.user!=t.creator.target._id?(e.openBlock(),e.createBlock(g.default,{key:3,label:"...",align:"right",class:"cursor-pointer z-index-2 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",$,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(f.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[v]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=M;
@@ -2,7 +2,7 @@ import { openBlock as t, createElementBlock as i, createElementVNode as l, withM
2
2
  import { useRouter as v } from "vue-router";
3
3
  import p from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
4
4
  import E from "../../../reports/components/sections/FormReport.vue.js";
5
- import R from "../../../../components/Dropdown/Dropdown.vue.js";
5
+ import R from "../../../../components/Dropdown/Dropdown.vue2.js";
6
6
  import "../../../../components/Button/Button.vue.js";
7
7
  import "../../../auth/store/auth.js";
8
8
  import "../../../organizations/store/memberships.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../icons/skeletons/SkeletonEvent.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs");require("vue-i18n");const m={class:"feed"},f={__name:"Feed",props:{states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null})}},setup(s){const t=s,o=e.ref([]),a=e.ref(!0);let i=e.ref(!0),r=e.ref(t.options.skip?t.options.skip:0),n=e.ref(t.options.limit?t.options.limit:10);e.computed(()=>({skip:r.value,limit:n.value,...t.options}));const u=async()=>{if(a.value){r.value+=n.value;const l=await t.store.read({skip:r.value,limit:n.value,...t.options});l.length===0&&(a.value=!1),o.value=[...o.value,...l]}};return e.onMounted(async()=>{console.log(t.options);const l=await t.store.read({skip:r.value,limit:n.value,...t.options});l.length===0?a.value=!1:a.value=!0,o.value=l,i.value=!1}),(l,v)=>(e.openBlock(),e.createElementBlock("section",m,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(n),c=>(e.openBlock(),e.createBlock(d.default,{key:c}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length<1?(e.openBlock(),e.createBlock(p.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,class:"pd-medium mn-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"cols-1 gap-thin"},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length>0?e.renderSlot(l.$slots,"default",{key:0,items:o.value,user:l.user}):e.createCommentVNode("",!0),a.value&&o.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:u,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3})]))}};exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../icons/skeletons/SkeletonEvent.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs");require("vue-i18n");const m={class:"feed"},f={__name:"Feed",props:{states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null})}},setup(s){const t=s,o=e.ref([]),a=e.ref(!0);let i=e.ref(!0),r=e.ref(t.options.skip?t.options.skip:0),n=e.ref(t.options.limit?t.options.limit:10);e.computed(()=>({skip:r.value,limit:n.value,...t.options}));const u=async()=>{if(a.value){r.value+=n.value;const l=await t.store.read({skip:r.value,limit:n.value,...t.options});l.length===0&&(a.value=!1),o.value=[...o.value,...l]}};return e.onMounted(async()=>{console.log(t.options);const l=await t.store.read({skip:r.value,limit:n.value,...t.options});l.length===0?a.value=!1:a.value=!0,o.value=l,i.value=!1}),(l,v)=>(e.openBlock(),e.createElementBlock("section",m,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(n),c=>(e.openBlock(),e.createBlock(d.default,{key:c}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length<1?(e.openBlock(),e.createBlock(p.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,class:"pd-medium mn-b-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"cols-1 gap-thin"},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length>0?e.renderSlot(l.$slots,"default",{key:0,items:o.value,user:l.user}):e.createCommentVNode("",!0),a.value&&o.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:u,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3})]))}};exports.default=f;
@@ -1,4 +1,4 @@
1
- import { ref as s, computed as h, onMounted as b, openBlock as n, createElementBlock as m, createVNode as d, TransitionGroup as v, withCtx as f, unref as u, Fragment as _, renderList as w, createBlock as g, createCommentVNode as c, Transition as L, renderSlot as S } from "vue";
1
+ import { ref as s, computed as b, onMounted as h, openBlock as n, createElementBlock as m, createVNode as d, TransitionGroup as v, withCtx as f, unref as u, Fragment as _, renderList as w, createBlock as g, createCommentVNode as c, Transition as L, renderSlot as S } from "vue";
2
2
  import T from "../../../icons/skeletons/SkeletonEvent.vue.js";
3
3
  import "../../../../components/Loader/Loader.vue.js";
4
4
  import j from "../../../../components/EmptyState/EmptyState.vue.js";
@@ -39,7 +39,7 @@ const O = { class: "feed" }, N = {
39
39
  setup(p) {
40
40
  const e = p, a = s([]), i = s(!0);
41
41
  let o = s(!0), r = s(e.options.skip ? e.options.skip : 0), l = s(e.options.limit ? e.options.limit : 10);
42
- h(() => ({
42
+ b(() => ({
43
43
  skip: r.value,
44
44
  limit: l.value,
45
45
  ...e.options
@@ -55,7 +55,7 @@ const O = { class: "feed" }, N = {
55
55
  t.length === 0 && (i.value = !1), a.value = [...a.value, ...t];
56
56
  }
57
57
  };
58
- return b(async () => {
58
+ return h(async () => {
59
59
  console.log(e.options);
60
60
  const t = await e.store.read({
61
61
  skip: r.value,
@@ -80,7 +80,7 @@ const O = { class: "feed" }, N = {
80
80
  key: 0,
81
81
  title: p.states.empty.title,
82
82
  description: p.states.empty.description,
83
- class: "pd-medium mn-thin bg-grey radius-big"
83
+ class: "pd-medium mn-b-thin bg-grey radius-big"
84
84
  }, null, 8, ["title", "description"])) : c("", !0)
85
85
  ]),
86
86
  _: 1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t={width:"17",height:"14",viewBox:"0 0 17 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i=["fill"],o=["fill"],n={__name:"IconLike",props:{fill:{type:String,default:{position:"rgb(var(--black))"}},isLiked:{type:Boolean,default:!1}},setup(l){return(d,r)=>(e.openBlock(),e.createElementBlock("svg",t,[e.withDirectives(e.createElementVNode("path",{fill:l.fill,"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.97578 8.38083L7.62266 13.6527C7.85703 13.8715 8.16641 13.9933 8.48828 13.9933C8.81016 13.9933 9.11953 13.8715 9.35391 13.6527L15.0008 8.38083C15.9508 7.49646 16.4883 6.25583 16.4883 4.95896V4.77771C16.4883 2.59333 14.9102 0.730831 12.757 0.371456C11.332 0.133956 9.88203 0.599581 8.86328 1.61833L8.48828 1.99333L8.11328 1.61833C7.09455 0.599841 5.64436 0.133985 4.21953 0.371456C2.06641 0.730831 0.488281 2.59333 0.488281 4.77771V4.95896C0.488281 6.25583 1.02578 7.49646 1.97578 8.38083ZM2.99941 7.28439L2.99784 7.28293C2.354 6.68356 1.98828 5.84123 1.98828 4.95896V4.77771C1.98828 3.32663 3.03625 2.08988 4.46613 1.85105C5.41318 1.69332 6.37649 2.00286 7.05262 2.67899L8.48828 4.11465L9.54894 3.05399L9.92394 2.67899C10.6001 2.00286 11.5634 1.69332 12.5104 1.85105C13.9403 2.08988 14.9883 3.32663 14.9883 4.77771V4.95896C14.9883 5.84123 14.6226 6.68356 13.9787 7.28293L8.48828 12.4088L2.99941 7.28439Z"},null,8,i),[[e.vShow,l.isLiked]]),e.createElementVNode("path",{fill:l.fill,"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.98382 8.19027L7.75664 12.6461C7.95474 12.831 8.21623 12.934 8.48828 12.934C8.76033 12.934 9.02182 12.831 9.21992 12.6461L13.9927 8.19027C14.7957 7.44278 15.25 6.39418 15.25 5.29805V5.14485C15.25 3.29858 13.9161 1.72437 12.0963 1.42062C10.8919 1.21988 9.6663 1.61344 8.80524 2.4745L8.48828 2.79146L8.17133 2.4745C7.31028 1.61366 6.08455 1.21991 4.88027 1.42062C3.06042 1.72437 1.72656 3.29858 1.72656 5.14485V5.29805C1.72656 6.39418 2.18087 7.44278 2.98382 8.19027Z"},null,8,o)]))}};exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t={width:"17",height:"14",viewBox:"0 0 17 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i=["fill"],o=["fill"],n={__name:"IconLike",props:{fill:{type:String,default:{position:"rgb(var(--black))"}},isLiked:{type:Boolean,default:!1}},setup(l){return(d,r)=>(e.openBlock(),e.createElementBlock("svg",t,[e.createElementVNode("path",{fill:l.fill,"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.97578 8.38083L7.62266 13.6527C7.85703 13.8715 8.16641 13.9933 8.48828 13.9933C8.81016 13.9933 9.11953 13.8715 9.35391 13.6527L15.0008 8.38083C15.9508 7.49646 16.4883 6.25583 16.4883 4.95896V4.77771C16.4883 2.59333 14.9102 0.730831 12.757 0.371456C11.332 0.133956 9.88203 0.599581 8.86328 1.61833L8.48828 1.99333L8.11328 1.61833C7.09455 0.599841 5.64436 0.133985 4.21953 0.371456C2.06641 0.730831 0.488281 2.59333 0.488281 4.77771V4.95896C0.488281 6.25583 1.02578 7.49646 1.97578 8.38083ZM2.99941 7.28439L2.99784 7.28293C2.354 6.68356 1.98828 5.84123 1.98828 4.95896V4.77771C1.98828 3.32663 3.03625 2.08988 4.46613 1.85105C5.41318 1.69332 6.37649 2.00286 7.05262 2.67899L8.48828 4.11465L9.54894 3.05399L9.92394 2.67899C10.6001 2.00286 11.5634 1.69332 12.5104 1.85105C13.9403 2.08988 14.9883 3.32663 14.9883 4.77771V4.95896C14.9883 5.84123 14.6226 6.68356 13.9787 7.28293L8.48828 12.4088L2.99941 7.28439Z"},null,8,i),e.withDirectives(e.createElementVNode("path",{fill:l.fill,"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.98382 8.19027L7.75664 12.6461C7.95474 12.831 8.21623 12.934 8.48828 12.934C8.76033 12.934 9.02182 12.831 9.21992 12.6461L13.9927 8.19027C14.7957 7.44278 15.25 6.39418 15.25 5.29805V5.14485C15.25 3.29858 13.9161 1.72437 12.0963 1.42062C10.8919 1.21988 9.6663 1.61344 8.80524 2.4745L8.48828 2.79146L8.17133 2.4745C7.31028 1.61366 6.08455 1.21991 4.88027 1.42062C3.06042 1.72437 1.72656 3.29858 1.72656 5.14485V5.29805C1.72656 6.39418 2.18087 7.44278 2.98382 8.19027Z"},null,8,o),[[e.vShow,l.isLiked]])]))}};exports.default=n;
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as i, withDirectives as o, createElementVNode as l, vShow as n } from "vue";
1
+ import { openBlock as t, createElementBlock as i, createElementVNode as l, withDirectives as o, vShow as n } from "vue";
2
2
  const C = {
3
3
  width: "17",
4
4
  height: "14",
@@ -21,20 +21,20 @@ const C = {
21
21
  },
22
22
  setup(e) {
23
23
  return (r, s) => (t(), i("svg", C, [
24
- o(l("path", {
24
+ l("path", {
25
25
  fill: e.fill,
26
26
  "fill-rule": "evenodd",
27
27
  "clip-rule": "evenodd",
28
28
  d: "M1.97578 8.38083L7.62266 13.6527C7.85703 13.8715 8.16641 13.9933 8.48828 13.9933C8.81016 13.9933 9.11953 13.8715 9.35391 13.6527L15.0008 8.38083C15.9508 7.49646 16.4883 6.25583 16.4883 4.95896V4.77771C16.4883 2.59333 14.9102 0.730831 12.757 0.371456C11.332 0.133956 9.88203 0.599581 8.86328 1.61833L8.48828 1.99333L8.11328 1.61833C7.09455 0.599841 5.64436 0.133985 4.21953 0.371456C2.06641 0.730831 0.488281 2.59333 0.488281 4.77771V4.95896C0.488281 6.25583 1.02578 7.49646 1.97578 8.38083ZM2.99941 7.28439L2.99784 7.28293C2.354 6.68356 1.98828 5.84123 1.98828 4.95896V4.77771C1.98828 3.32663 3.03625 2.08988 4.46613 1.85105C5.41318 1.69332 6.37649 2.00286 7.05262 2.67899L8.48828 4.11465L9.54894 3.05399L9.92394 2.67899C10.6001 2.00286 11.5634 1.69332 12.5104 1.85105C13.9403 2.08988 14.9883 3.32663 14.9883 4.77771V4.95896C14.9883 5.84123 14.6226 6.68356 13.9787 7.28293L8.48828 12.4088L2.99941 7.28439Z"
29
- }, null, 8, d), [
30
- [n, e.isLiked]
31
- ]),
32
- l("path", {
29
+ }, null, 8, d),
30
+ o(l("path", {
33
31
  fill: e.fill,
34
32
  "fill-rule": "evenodd",
35
33
  "clip-rule": "evenodd",
36
34
  d: "M2.98382 8.19027L7.75664 12.6461C7.95474 12.831 8.21623 12.934 8.48828 12.934C8.76033 12.934 9.02182 12.831 9.21992 12.6461L13.9927 8.19027C14.7957 7.44278 15.25 6.39418 15.25 5.29805V5.14485C15.25 3.29858 13.9161 1.72437 12.0963 1.42062C10.8919 1.21988 9.6663 1.61344 8.80524 2.4745L8.48828 2.79146L8.17133 2.4745C7.31028 1.61366 6.08455 1.21991 4.88027 1.42062C3.06042 1.72437 1.72656 3.29858 1.72656 5.14485V5.29805C1.72656 6.39418 2.18087 7.44278 2.98382 8.19027Z"
37
- }, null, 8, c)
35
+ }, null, 8, c), [
36
+ [n, e.isLiked]
37
+ ])
38
38
  ]));
39
39
  }
40
40
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-i18n"),i=require("../../../icons/labels/LabelAppStore.vue.cjs"),l=require("../../../icons/labels/LabelGooglePlay.vue.cjs");require("./MobileApp.vue2.cjs");const r={id:"mobileApp"},c={class:"pos-relative cols-2-1_2 gap-big pd-big pd-t-big o-hidden bg-black t-white radius-big"},d={class:"z-index-1 w-1/2"},m=["src"],p={class:"z-index-1 w-1/2"},u={class:"mn-t-medium mn-semi w-m-40r"},g={class:"t-transp mn-big p-big w-m-33r"},_={class:"mn-big gap-medium cols-2"},h={class:"feature"},f={class:"mn-small"},b={class:"t-transp p-medium"},E={class:"feature"},y={class:"mn-small"},v={class:"t-transp p-medium"},N={class:"feature"},V={class:"mn-small"},w={class:"t-transp p-medium"},S={class:"feature"},x={class:"mn-small"},D={class:"t-transp p-medium"},I={class:"w-m-33r flex-nowrap flex gap-medium"},k={class:"pos-relative w-100 h-100"},z={class:"z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative"},A={class:"pos-relative w-100 h-100"},L={class:"z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative"},q={key:0,class:"grid-lines"},C={__name:"MobileApp",props:{mockupImage:{type:String,default:"/assets/images/landing/mockup.png"},bgImage:{type:String,default:""},textData:{type:Object,default:()=>({messages:{en:{title:"Explore the Cannabis World at Your Fingertips",description:"Intuitive, Efficient, and Customized for Your Cannabis Needs",features:{instantUpdates:{title:"Instant Updates",text:"Receive real-time notifications for new product releases and community updates. Always stay in the loop."},locate:{title:"Locate with Ease",text:"Discover nearby dispensaries and cannabis events with our integrated geolocation services."},wallet:{title:"Wallet Integration",text:"Quickly and securely manage your transactions with integrated digital wallet functionality. Safety and convenience come together."},customization:{title:"Customization by AI",text:"Experience the AI difference with personalized recommendations based on your preferences and trends in the community."}}}}})}},setup(s){const a=s,{t}=n.useI18n(a.textData);return(o,M)=>(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("section",c,[e.createElementVNode("div",d,[e.createElementVNode("img",{src:(o.FILE_SERVER_URL||"")+s.mockupImage,alt:"Mobile App Mockup",class:"app-mockup"},null,8,m)]),e.createElementVNode("div",p,[e.createElementVNode("h2",u,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",g,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",_,[e.createElementVNode("div",h,[e.createElementVNode("h3",f,e.toDisplayString(e.unref(t)("features.instantUpdates.title")),1),e.createElementVNode("p",b,e.toDisplayString(e.unref(t)("features.instantUpdates.text")),1)]),e.createElementVNode("div",E,[e.createElementVNode("h3",y,e.toDisplayString(e.unref(t)("features.locate.title")),1),e.createElementVNode("p",v,e.toDisplayString(e.unref(t)("features.locate.text")),1)]),e.createElementVNode("div",N,[e.createElementVNode("h3",V,e.toDisplayString(e.unref(t)("features.wallet.title")),1),e.createElementVNode("p",w,e.toDisplayString(e.unref(t)("features.wallet.text")),1)]),e.createElementVNode("div",S,[e.createElementVNode("h3",x,e.toDisplayString(e.unref(t)("features.customization.title")),1),e.createElementVNode("p",D,e.toDisplayString(e.unref(t)("features.customization.text")),1)])]),e.createElementVNode("div",I,[e.createElementVNode("div",k,[e.createElementVNode("span",z,e.toDisplayString(e.unref(t)("features.soonLabel")),1),e.createVNode(i.default,{class:"w-100 h-100",alt:"Download on App Store"})]),e.createElementVNode("div",A,[e.createElementVNode("span",L,e.toDisplayString(e.unref(t)("features.soonLabel")),1),e.createVNode(l.default,{class:"w-100 h-100",alt:"Download on Google Play"})])])]),e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-0 pos-r-0 z-index-0 grid",style:e.normalizeStyle({backgroundImage:`url(${s.bgImage})`})},[s.bgImage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",q))],4)])]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-i18n"),i=require("../../../icons/labels/LabelAppStore.vue.cjs"),l=require("../../../icons/labels/LabelGooglePlay.vue.cjs");require("./MobileApp.vue2.cjs");const r={id:"mobileApp"},c={class:"pos-relative cols-2-1_2 gap-big pd-big pd-t-big o-hidden bg-black t-white radius-big"},d={class:"z-index-1 w-1/2"},m=["src"],p={class:"z-index-1 w-1/2"},u={class:"mn-t-medium mn-b-semi w-m-40r"},g={class:"t-transp mn-b-big p-big w-m-33r"},_={class:"mn-b-big gap-medium cols-2"},h={class:"feature"},f={class:"mn-b-small"},b={class:"t-transp p-medium"},E={class:"feature"},y={class:"mn-b-small"},v={class:"t-transp p-medium"},N={class:"feature"},V={class:"mn-b-small"},w={class:"t-transp p-medium"},S={class:"feature"},x={class:"mn-b-small"},D={class:"t-transp p-medium"},I={class:"w-m-33r flex-nowrap flex gap-medium"},k={class:"pos-relative w-100 h-100"},z={class:"z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative"},A={class:"pos-relative w-100 h-100"},L={class:"z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative"},q={key:0,class:"grid-lines"},C={__name:"MobileApp",props:{mockupImage:{type:String,default:"/assets/images/landing/mockup.png"},bgImage:{type:String,default:""},textData:{type:Object,default:()=>({messages:{en:{title:"Explore the Cannabis World at Your Fingertips",description:"Intuitive, Efficient, and Customized for Your Cannabis Needs",features:{instantUpdates:{title:"Instant Updates",text:"Receive real-time notifications for new product releases and community updates. Always stay in the loop."},locate:{title:"Locate with Ease",text:"Discover nearby dispensaries and cannabis events with our integrated geolocation services."},wallet:{title:"Wallet Integration",text:"Quickly and securely manage your transactions with integrated digital wallet functionality. Safety and convenience come together."},customization:{title:"Customization by AI",text:"Experience the AI difference with personalized recommendations based on your preferences and trends in the community."}}}}})}},setup(s){const a=s,{t}=n.useI18n(a.textData);return(o,M)=>(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("section",c,[e.createElementVNode("div",d,[e.createElementVNode("img",{src:(o.FILE_SERVER_URL||"")+s.mockupImage,alt:"Mobile App Mockup",class:"app-mockup"},null,8,m)]),e.createElementVNode("div",p,[e.createElementVNode("h2",u,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",g,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",_,[e.createElementVNode("div",h,[e.createElementVNode("h3",f,e.toDisplayString(e.unref(t)("features.instantUpdates.title")),1),e.createElementVNode("p",b,e.toDisplayString(e.unref(t)("features.instantUpdates.text")),1)]),e.createElementVNode("div",E,[e.createElementVNode("h3",y,e.toDisplayString(e.unref(t)("features.locate.title")),1),e.createElementVNode("p",v,e.toDisplayString(e.unref(t)("features.locate.text")),1)]),e.createElementVNode("div",N,[e.createElementVNode("h3",V,e.toDisplayString(e.unref(t)("features.wallet.title")),1),e.createElementVNode("p",w,e.toDisplayString(e.unref(t)("features.wallet.text")),1)]),e.createElementVNode("div",S,[e.createElementVNode("h3",x,e.toDisplayString(e.unref(t)("features.customization.title")),1),e.createElementVNode("p",D,e.toDisplayString(e.unref(t)("features.customization.text")),1)])]),e.createElementVNode("div",I,[e.createElementVNode("div",k,[e.createElementVNode("span",z,e.toDisplayString(e.unref(t)("features.soonLabel")),1),e.createVNode(i.default,{class:"w-100 h-100",alt:"Download on App Store"})]),e.createElementVNode("div",A,[e.createElementVNode("span",L,e.toDisplayString(e.unref(t)("features.soonLabel")),1),e.createVNode(l.default,{class:"w-100 h-100",alt:"Download on Google Play"})])])]),e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-0 pos-r-0 z-index-0 grid",style:e.normalizeStyle({backgroundImage:`url(${s.bgImage})`})},[s.bgImage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",q))],4)])]))}};exports.default=C;
@@ -3,7 +3,7 @@ import { useI18n as m } from "vue-i18n";
3
3
  import u from "../../../icons/labels/LabelAppStore.vue.js";
4
4
  import _ from "../../../icons/labels/LabelGooglePlay.vue.js";
5
5
  import "./MobileApp.vue2.js";
6
- const g = { id: "mobileApp" }, h = { class: "pos-relative cols-2-1_2 gap-big pd-big pd-t-big o-hidden bg-black t-white radius-big" }, f = { class: "z-index-1 w-1/2" }, b = ["src"], v = { class: "z-index-1 w-1/2" }, w = { class: "mn-t-medium mn-semi w-m-40r" }, y = { class: "t-transp mn-big p-big w-m-33r" }, x = { class: "mn-big gap-medium cols-2" }, I = { class: "feature" }, z = { class: "mn-small" }, k = { class: "t-transp p-medium" }, E = { class: "feature" }, A = { class: "mn-small" }, S = { class: "t-transp p-medium" }, L = { class: "feature" }, D = { class: "mn-small" }, C = { class: "t-transp p-medium" }, U = { class: "feature" }, N = { class: "mn-small" }, R = { class: "t-transp p-medium" }, V = { class: "w-m-33r flex-nowrap flex gap-medium" }, M = { class: "pos-relative w-100 h-100" }, B = { class: "z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative" }, F = { class: "pos-relative w-100 h-100" }, G = { class: "z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative" }, P = {
6
+ const g = { id: "mobileApp" }, h = { class: "pos-relative cols-2-1_2 gap-big pd-big pd-t-big o-hidden bg-black t-white radius-big" }, b = { class: "z-index-1 w-1/2" }, f = ["src"], v = { class: "z-index-1 w-1/2" }, w = { class: "mn-t-medium mn-b-semi w-m-40r" }, y = { class: "t-transp mn-b-big p-big w-m-33r" }, x = { class: "mn-b-big gap-medium cols-2" }, I = { class: "feature" }, z = { class: "mn-b-small" }, k = { class: "t-transp p-medium" }, E = { class: "feature" }, A = { class: "mn-b-small" }, S = { class: "t-transp p-medium" }, L = { class: "feature" }, D = { class: "mn-b-small" }, C = { class: "t-transp p-medium" }, U = { class: "feature" }, N = { class: "mn-b-small" }, R = { class: "t-transp p-medium" }, V = { class: "w-m-33r flex-nowrap flex gap-medium" }, M = { class: "pos-relative w-100 h-100" }, B = { class: "z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative" }, F = { class: "pos-relative w-100 h-100" }, G = { class: "z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative" }, P = {
7
7
  key: 0,
8
8
  class: "grid-lines"
9
9
  }, q = {
@@ -52,12 +52,12 @@ const g = { id: "mobileApp" }, h = { class: "pos-relative cols-2-1_2 gap-big pd-
52
52
  const c = i, { t } = m(c.textData);
53
53
  return (d, W) => (o(), n("div", g, [
54
54
  e("section", h, [
55
- e("div", f, [
55
+ e("div", b, [
56
56
  e("img", {
57
57
  src: (d.FILE_SERVER_URL || "") + i.mockupImage,
58
58
  alt: "Mobile App Mockup",
59
59
  class: "app-mockup"
60
- }, null, 8, b)
60
+ }, null, 8, f)
61
61
  ]),
62
62
  e("div", v, [
63
63
  e("h2", w, s(a(t)("title")), 1),