@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,4 +1,4 @@
1
- import { ref as d, onMounted as B, openBlock as n, createElementBlock as i, createVNode as o, TransitionGroup as f, withCtx as l, Fragment as g, renderList as _, createCommentVNode as s, Transition as C, createBlock as u, normalizeClass as T, createElementVNode as $, resolveDynamicComponent as b, mergeProps as k } from "vue";
1
+ import { ref as d, onMounted as h, openBlock as n, createElementBlock as i, createVNode as o, TransitionGroup as f, withCtx as l, Fragment as g, renderList as _, createCommentVNode as s, Transition as B, createBlock as u, normalizeClass as C, createElementVNode as T, resolveDynamicComponent as $, mergeProps as k } from "vue";
2
2
  import "../../../../components/Loader/Loader.vue.js";
3
3
  import x from "../../../../components/EmptyState/EmptyState.vue.js";
4
4
  import H from "../blocks/CardBlogpost.vue.js";
@@ -13,7 +13,7 @@ const E = { class: "pd-thin" }, K = {
13
13
  __name: "BlogPost",
14
14
  setup(F) {
15
15
  const v = V(), t = d(null), a = d(!0);
16
- B(async () => {
16
+ h(async () => {
17
17
  a.value = !0;
18
18
  const e = await N({ user: m.user._id, url: v.params.url });
19
19
  t.value = e[0], a.value = !1;
@@ -25,7 +25,7 @@ const E = { class: "pd-thin" }, K = {
25
25
  Caption: "p",
26
26
  ImageUpload: w
27
27
  };
28
- function h(e) {
28
+ function b(e) {
29
29
  return e.type === "Textarea" ? { innerHTML: e.content, class: "p-medium" } : e.type === "H2" ? { innerHTML: e.content, class: "h3" } : e.type === "Caption" ? { innerHTML: e.content } : e.type === "ImageUpload" ? { src: e.content } : {};
30
30
  }
31
31
  return (e, p) => (n(), i("section", E, [
@@ -39,13 +39,13 @@ const E = { class: "pd-thin" }, K = {
39
39
  ]),
40
40
  _: 1
41
41
  }),
42
- o(C, { name: "fade" }, {
42
+ o(B, { name: "fade" }, {
43
43
  default: l(() => [
44
44
  !a.value && !t.value ? (n(), u(x, {
45
45
  key: 0,
46
46
  title: "No Blogpost Found",
47
47
  description: "Currently, there are no blogposts available. Please check back later.",
48
- class: "pd-medium mn-thin bg-grey radius-big"
48
+ class: "pd-medium mn-b-thin bg-grey radius-big"
49
49
  })) : s("", !0)
50
50
  ]),
51
51
  _: 1
@@ -62,25 +62,25 @@ const E = { class: "pd-thin" }, K = {
62
62
  blogpost: t.value,
63
63
  user: m.user._id,
64
64
  type: "blogpostPage",
65
- class: T(["mn-medium", {
65
+ class: C(["mn-b-medium", {
66
66
  "br-b br-solid br-black-transp-10": e.index !== t.value.length - 1
67
67
  }])
68
68
  }, {
69
69
  default: l(() => [
70
- $("section", null, [
71
- t.value && t.value.content ? (n(!0), i(g, { key: 0 }, _(t.value.content, (r, c) => (n(), u(b(y[r.type]), k({
70
+ T("section", null, [
71
+ t.value && t.value.content ? (n(!0), i(g, { key: 0 }, _(t.value.content, (r, c) => (n(), u($(y[r.type]), k({
72
72
  key: c,
73
73
  index: c,
74
74
  component: r,
75
75
  prop: r,
76
76
  class: r.class,
77
77
  content: "content"
78
- }, h(r), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : s("", !0)
78
+ }, b(r), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : s("", !0)
79
79
  ])
80
80
  ]),
81
81
  _: 1
82
82
  }, 8, ["blogpost", "user", "class"])) : s("", !0),
83
- o(M, { class: "mn-small" }),
83
+ o(M, { class: "mn-b-small" }),
84
84
  !a.value && t.value ? (n(), u(P, {
85
85
  key: 1,
86
86
  type: "blogpost",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),C=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},T={class:"w-full h-full"},z={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},D=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),M=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),S={key:0,class:"mn-thin"},U={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},A={__name:"CreateBlogPost",setup(R){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{if(s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await C.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});console.log(o),p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function v(){d.value=!0}function h(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",E,[e.createElementVNode("div",T,[e.createVNode(w.default,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(V.default,{content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>v()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:h,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[D,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),M,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",S,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[6]||(a[6]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=A;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue2.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),C=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},T={class:"w-full h-full"},z={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},D=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),M=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),S={key:0,class:"mn-b-thin"},U={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},A={__name:"CreateBlogPost",setup(R){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{if(s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await C.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});console.log(o),p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function v(){d.value=!0}function h(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",E,[e.createElementVNode("div",T,[e.createVNode(w.default,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(V.default,{content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>v()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:h,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[D,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),M,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",S,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[6]||(a[6]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=A;
@@ -1,7 +1,7 @@
1
1
  import { ref as r, onMounted as V, computed as _, openBlock as u, createElementBlock as i, unref as a, createElementVNode as p, createVNode as n, createCommentVNode as m, withCtx as w, createTextVNode as z } from "vue";
2
- import D from "../../../constructor/components/elements/Textarea.vue.js";
2
+ import D from "../../../constructor/components/elements/Textarea.vue2.js";
3
3
  import N from "../../../constructor/components/sections/Constructor.vue.js";
4
- import O from "../../../../components/Popup/Popup.vue2.js";
4
+ import O from "../../../../components/Popup/Popup.vue.js";
5
5
  import "../../../../components/FieldTags/tag-input.vue.js";
6
6
  import "../../../../components/FieldTags/vue-tags-input.scss.js";
7
7
  import U from "../../../../components/FieldTags/BlockTags.vue.js";
@@ -18,12 +18,12 @@ const G = { class: "pd-thin" }, J = {
18
18
  }, K = { class: "w-full h-full" }, Q = {
19
19
  key: 1,
20
20
  class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
21
- }, W = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, X = /* @__PURE__ */ p("h3", { class: "mn-small" }, "Final Touches", -1), Y = /* @__PURE__ */ p("h5", { class: "mn-thin" }, "Add to public:", -1), Z = {
21
+ }, W = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, X = /* @__PURE__ */ p("h3", { class: "mn-b-small" }, "Final Touches", -1), Y = /* @__PURE__ */ p("h5", { class: "mn-b-thin" }, "Add to public:", -1), Z = {
22
22
  key: 0,
23
- class: "mn-thin"
23
+ class: "mn-b-thin"
24
24
  }, I = {
25
25
  key: 1,
26
- class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
26
+ class: "mn-b-medium br-grey br-2px br-solid pd-small radius-big"
27
27
  }, ge = {
28
28
  __name: "CreateBlogPost",
29
29
  setup(ee) {
@@ -160,7 +160,7 @@ const G = { class: "pd-thin" }, J = {
160
160
  placeholder: "Type to search or add tag",
161
161
  label: "name",
162
162
  "track-by": "_id",
163
- class: "mn-medium bg-grey radius-medium pd-small"
163
+ class: "mn-b-medium bg-grey radius-medium pd-small"
164
164
  }, null, 8, ["modelValue", "options"]),
165
165
  s.value ? (u(), i("h5", Z, "Options:")) : m("", !0),
166
166
  s.value ? (u(), i("div", I, [
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../globals/components/blocks/CardHeader.vue.cjs"),p={class:"mn-small"},g=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),v=[g],y={key:1,class:"mn-small"},b=["onSubmit"],w=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),h={class:"pd-t-zero"},k={class:"p-big"},_={__name:"Comments",props:["target","owner","type"],setup(s){const o=s,c=u.default.create({baseURL:process.env.API_URL}),a=e.ref([]),r=e.ref(""),i=async()=>{const{data:n}=await c.get(`/comments/read?type=${o.type}&target=${o.target}&user=${o.owner}`);a.value=n},m=async()=>{if(r.value)try{const n=await c.post("/comments/create",{target:o.target,user:o.owner,type:o.type,content:r.value});n.data.owner=o.owner,a.value.push(n.data),r.value=""}catch(n){console.error(n)}};return i(),(n,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("h3",p,e.toDisplayString(a.value.length)+" comments",1),s.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[0]||(l[0]=t=>n.$router.push({name:"Sign In"})),class:"cursor-pointer mn-small section bg-black t-white flex-center flex radius-big"},v)),s.owner?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("form",{onSubmit:e.withModifiers(m,["prevent"]),class:"bg-grey radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[1]||(l[1]=t=>r.value=t),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,r.value]]),w],40,b)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t._id,class:"comment mn-small radius-big pd-medium bg-grey"},[e.createVNode(d.default,{class:"mn-medium",entity:t,entityType:"comment",user:s.owner,owner:{target:t.user},creator:{target:t.user},date:t.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",h,[e.createElementVNode("p",k,e.toDisplayString(t.content),1)])]))),128))]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../globals/components/blocks/CardHeader.vue.cjs"),p={class:"mn-b-small"},g=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),b=[g],v={key:1,class:"mn-b-small"},y=["onSubmit"],w=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),h={class:"pd-t-zero"},k={class:"p-big"},_={__name:"Comments",props:["target","owner","type"],setup(s){const o=s,c=u.default.create({baseURL:process.env.API_URL}),a=e.ref([]),r=e.ref(""),i=async()=>{const{data:n}=await c.get(`/comments/read?type=${o.type}&target=${o.target}&user=${o.owner}`);a.value=n},m=async()=>{if(r.value)try{const n=await c.post("/comments/create",{target:o.target,user:o.owner,type:o.type,content:r.value});n.data.owner=o.owner,a.value.push(n.data),r.value=""}catch(n){console.error(n)}};return i(),(n,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("h3",p,e.toDisplayString(a.value.length)+" comments",1),s.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[0]||(l[0]=t=>n.$router.push({name:"Sign In"})),class:"cursor-pointer mn-b-small section bg-black t-white flex-center flex radius-big"},b)),s.owner?(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("form",{onSubmit:e.withModifiers(m,["prevent"]),class:"bg-grey radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[1]||(l[1]=t=>r.value=t),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,r.value]]),w],40,y)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t._id,class:"comment mn-b-small radius-big pd-medium bg-grey"},[e.createVNode(d.default,{class:"mn-b-medium",entity:t,entityType:"comment",user:s.owner,owner:{target:t.user},creator:{target:t.user},date:t.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",h,[e.createElementVNode("p",k,e.toDisplayString(t.content),1)])]))),128))]))}};exports.default=_;
@@ -1,11 +1,11 @@
1
- import { ref as u, openBlock as r, createElementBlock as a, createElementVNode as s, toDisplayString as d, createCommentVNode as p, withModifiers as y, withDirectives as b, vModelText as w, Fragment as h, renderList as _, createVNode as f } from "vue";
1
+ import { ref as u, openBlock as r, createElementBlock as a, createElementVNode as s, toDisplayString as d, createCommentVNode as p, withModifiers as v, withDirectives as y, vModelText as w, Fragment as h, renderList as _, createVNode as f } from "vue";
2
2
  import k from "../../../../../node_modules/axios/lib/axios.js";
3
3
  import x from "../../../globals/components/blocks/CardHeader.vue.js";
4
- const $ = { class: "mn-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi uppercase" }, "Please log in to leave a comment.", -1), S = [
4
+ const $ = { class: "mn-b-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi uppercase" }, "Please log in to leave a comment.", -1), S = [
5
5
  C
6
6
  ], V = {
7
7
  key: 1,
8
- class: "mn-small"
8
+ class: "mn-b-small"
9
9
  }, E = ["onSubmit"], L = /* @__PURE__ */ s("button", {
10
10
  type: "submit",
11
11
  class: "mn-l-auto bg-main button"
@@ -16,7 +16,7 @@ const $ = { class: "mn-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi upp
16
16
  const n = l, c = k.create({ baseURL: process.env.API_URL }), i = u([]), o = u(""), g = async () => {
17
17
  const { data: t } = await c.get(`/comments/read?type=${n.type}&target=${n.target}&user=${n.owner}`);
18
18
  i.value = t;
19
- }, v = async () => {
19
+ }, b = async () => {
20
20
  if (o.value)
21
21
  try {
22
22
  const t = await c.post("/comments/create", {
@@ -36,14 +36,14 @@ const $ = { class: "mn-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi upp
36
36
  l.owner ? p("", !0) : (r(), a("div", {
37
37
  key: 0,
38
38
  onClick: m[0] || (m[0] = (e) => t.$router.push({ name: "Sign In" })),
39
- class: "cursor-pointer mn-small section bg-black t-white flex-center flex radius-big"
39
+ class: "cursor-pointer mn-b-small section bg-black t-white flex-center flex radius-big"
40
40
  }, S)),
41
41
  l.owner ? (r(), a("div", V, [
42
42
  s("form", {
43
- onSubmit: y(v, ["prevent"]),
43
+ onSubmit: v(b, ["prevent"]),
44
44
  class: "bg-grey radius-big pd-medium"
45
45
  }, [
46
- b(s("textarea", {
46
+ y(s("textarea", {
47
47
  "onUpdate:modelValue": m[1] || (m[1] = (e) => o.value = e),
48
48
  placeholder: "Enter your comment",
49
49
  class: "pd-small p-big w-100 radius-small mn-r-small"
@@ -56,10 +56,10 @@ const $ = { class: "mn-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi upp
56
56
  ]),
57
57
  (r(!0), a(h, null, _(i.value, (e) => (r(), a("div", {
58
58
  key: e._id,
59
- class: "comment mn-small radius-big pd-medium bg-grey"
59
+ class: "comment mn-b-small radius-big pd-medium bg-grey"
60
60
  }, [
61
61
  f(x, {
62
- class: "mn-medium",
62
+ class: "mn-b-medium",
63
63
  entity: e,
64
64
  entityType: "comment",
65
65
  user: l.owner,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Loader/Loader.vue2.cjs"),f=require("../../../../components/EmptyState/EmptyState.vue.cjs"),g=require("../blocks/CardBlogpost.vue.cjs"),c=require("../../store/blogposts.cjs"),m={__name:"Feed",props:{category:{type:String,default:null},limit:{type:Number,default:7},skip:{type:Number,default:0},owner:{type:String,default:null},creator:{type:String,default:null},following:{type:String,default:null},status:{type:String,default:"published"},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),r=e.ref(!0);let o=e.ref(!0),n=e.ref(t.skip),s=e.ref(t.limit);const d=async()=>{if(r.value){n.value+=s.value;const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,creator:t.creator,status:t.status,period:t.period});l.length===0&&(r.value=!1),a.value=[...a.value,...l]}};return e.onMounted(async()=>{const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,status:t.status,creator:t.creator,period:t.period});l.length===0?r.value=!1:r.value=!0,a.value=l,o.value=!1}),(l,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createBlock(p.default,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(o)&&a.value.length<1?(e.openBlock(),e.createBlock(f.default,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.$attrs.class)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,i=>(e.openBlock(),e.createBlock(g.default,{key:i._id,blogpost:i,user:u.user,class:"mn-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[r.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})],2))]),_:1})],64))}};exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Loader/Loader.vue2.cjs"),f=require("../../../../components/EmptyState/EmptyState.vue.cjs"),g=require("../blocks/CardBlogpost.vue.cjs"),c=require("../../store/blogposts.cjs"),m={__name:"Feed",props:{category:{type:String,default:null},limit:{type:Number,default:7},skip:{type:Number,default:0},owner:{type:String,default:null},creator:{type:String,default:null},following:{type:String,default:null},status:{type:String,default:"published"},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),r=e.ref(!0);let o=e.ref(!0),n=e.ref(t.skip),s=e.ref(t.limit);const d=async()=>{if(r.value){n.value+=s.value;const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,creator:t.creator,status:t.status,period:t.period});l.length===0&&(r.value=!1),a.value=[...a.value,...l]}};return e.onMounted(async()=>{const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,status:t.status,creator:t.creator,period:t.period});l.length===0?r.value=!1:r.value=!0,a.value=l,o.value=!1}),(l,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createBlock(p.default,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(o)&&a.value.length<1?(e.openBlock(),e.createBlock(f.default,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.$attrs.class)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,i=>(e.openBlock(),e.createBlock(g.default,{key:i._id,blogpost:i,user:u.user,class:"mn-b-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[r.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})],2))]),_:1})],64))}};exports.default=m;
@@ -1,8 +1,8 @@
1
- import { ref as o, onMounted as h, openBlock as a, createElementBlock as s, Fragment as y, createVNode as c, Transition as d, withCtx as m, unref as v, createBlock as p, createCommentVNode as k, normalizeClass as _, renderList as S } from "vue";
1
+ import { ref as o, onMounted as h, openBlock as a, createElementBlock as s, Fragment as y, createVNode as c, Transition as d, withCtx as m, unref as v, createBlock as p, createCommentVNode as b, normalizeClass as _, renderList as S } from "vue";
2
2
  import N from "../../../../components/Loader/Loader.vue2.js";
3
3
  import C from "../../../../components/EmptyState/EmptyState.vue.js";
4
4
  import B from "../blocks/CardBlogpost.vue.js";
5
- import { read as b } from "../../store/blogposts.js";
5
+ import { read as k } from "../../store/blogposts.js";
6
6
  const $ = {
7
7
  __name: "Feed",
8
8
  props: {
@@ -49,7 +49,7 @@ const $ = {
49
49
  const w = async () => {
50
50
  if (r.value) {
51
51
  u.value += i.value;
52
- const t = await b({
52
+ const t = await k({
53
53
  skip: u.value,
54
54
  limit: i.value,
55
55
  category: e.category,
@@ -64,7 +64,7 @@ const $ = {
64
64
  }
65
65
  };
66
66
  return h(async () => {
67
- const t = await b({
67
+ const t = await k({
68
68
  skip: u.value,
69
69
  limit: i.value,
70
70
  category: e.category,
@@ -82,7 +82,7 @@ const $ = {
82
82
  v(n) ? (a(), p(N, {
83
83
  key: 0,
84
84
  class: "z-index-5 pos-t-50 left-t-50 pos-absolute"
85
- })) : k("", !0)
85
+ })) : b("", !0)
86
86
  ]),
87
87
  _: 1
88
88
  }),
@@ -92,7 +92,7 @@ const $ = {
92
92
  key: 0,
93
93
  title: "No Blog Posts Found",
94
94
  description: "Currently, there are no posts available in this blog. Please check back later.",
95
- class: "pd-medium mn-thin bg-grey radius-big"
95
+ class: "pd-medium mn-b-thin bg-grey radius-big"
96
96
  })) : (a(), s("div", {
97
97
  key: 1,
98
98
  class: _(t.$attrs.class)
@@ -101,7 +101,7 @@ const $ = {
101
101
  key: g._id,
102
102
  blogpost: g,
103
103
  user: f.user,
104
- class: "mn-medium"
104
+ class: "mn-b-medium"
105
105
  }, null, 8, ["blogpost", "user"]))), 128)),
106
106
  c(d, { name: "scaleTransition" }, {
107
107
  default: m(() => [
@@ -109,7 +109,7 @@ const $ = {
109
109
  key: 0,
110
110
  onClick: w,
111
111
  class: "w-100 bg-main button"
112
- }, " Load more ")) : k("", !0)
112
+ }, " Load more ")) : b("", !0)
113
113
  ]),
114
114
  _: 1
115
115
  })
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./JoinUs.vue2.cjs");const g={class:"container container-joinus"},h={class:"content"},p={class:"h0 mn-big"},_=e.createElementVNode("p",{class:"w-m-33r t-center mn-small p-big"},"Together, we're shaping the future of the globals cannabis community.",-1),w=e.createElementVNode("button",{class:"bg-black t-white button"},"Join Now",-1),v={__name:"JoinUs",setup(f){const s=e.ref(120950),o=e.ref(["/assets/images/reviews/01.png","/assets/images/reviews/02.png","/assets/images/reviews/03.png","/assets/images/reviews/04.png","/assets/images/reviews/05.png","/assets/images/reviews/06.png"]),i=()=>{setInterval(()=>{s.value+=Math.floor(Math.random()*5)+1},330)},t={minSize:"6rem",maxSize:"10rem",minDuration:5,maxDuration:15,spawnPoints:[10,90]};e.onMounted(()=>{r(),i()});const r=()=>{o.value.forEach((a,c)=>{let n=document.createElement("img");n.src=a,n.classList.add("floating-image");let l=t.spawnPoints[Math.floor(Math.random()*t.spawnPoints.length)],m=(Math.random()-.5)*2*10;n.style.left=`${l+m}%`,n.style.animationDuration=`${Math.random()*(t.maxDuration-t.minDuration)+t.minDuration}s`,document.querySelector(".container").appendChild(n),n.addEventListener("animationiteration",()=>{const u=t.spawnPoints[Math.floor(Math.random()*t.spawnPoints.length)],d=(Math.random()-.5)*2*10;n.style.left=`${u+d}%`})})};return(a,c)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",h,[e.createElementVNode("span",p,e.toDisplayString(s.value.toLocaleString()),1),_,w])]))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./JoinUs.vue2.cjs");const g={class:"container container-joinus"},h={class:"content"},p={class:"h0 mn-b-big"},_=e.createElementVNode("p",{class:"w-m-33r t-center mn-b-small p-big"},"Together, we're shaping the future of the globals cannabis community.",-1),w=e.createElementVNode("button",{class:"bg-black t-white button"},"Join Now",-1),v={__name:"JoinUs",setup(f){const s=e.ref(120950),o=e.ref(["/assets/images/reviews/01.png","/assets/images/reviews/02.png","/assets/images/reviews/03.png","/assets/images/reviews/04.png","/assets/images/reviews/05.png","/assets/images/reviews/06.png"]),i=()=>{setInterval(()=>{s.value+=Math.floor(Math.random()*5)+1},330)},t={minSize:"6rem",maxSize:"10rem",minDuration:5,maxDuration:15,spawnPoints:[10,90]};e.onMounted(()=>{r(),i()});const r=()=>{o.value.forEach((a,c)=>{let n=document.createElement("img");n.src=a,n.classList.add("floating-image");let l=t.spawnPoints[Math.floor(Math.random()*t.spawnPoints.length)],m=(Math.random()-.5)*2*10;n.style.left=`${l+m}%`,n.style.animationDuration=`${Math.random()*(t.maxDuration-t.minDuration)+t.minDuration}s`,document.querySelector(".container").appendChild(n),n.addEventListener("animationiteration",()=>{const u=t.spawnPoints[Math.floor(Math.random()*t.spawnPoints.length)],d=(Math.random()-.5)*2*10;n.style.left=`${u+d}%`})})};return(a,c)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",h,[e.createElementVNode("span",p,e.toDisplayString(s.value.toLocaleString()),1),_,w])]))}};exports.default=v;
@@ -1,6 +1,6 @@
1
1
  import { ref as o, onMounted as u, openBlock as h, createElementBlock as w, createElementVNode as n, toDisplayString as _ } from "vue";
2
2
  import "./JoinUs.vue2.js";
3
- const v = { class: "container container-joinus" }, f = { class: "content" }, M = { class: "h0 mn-big" }, b = /* @__PURE__ */ n("p", { class: "w-m-33r t-center mn-small p-big" }, "Together, we're shaping the future of the globals cannabis community.", -1), D = /* @__PURE__ */ n("button", { class: "bg-black t-white button" }, "Join Now", -1), E = {
3
+ const v = { class: "container container-joinus" }, f = { class: "content" }, b = { class: "h0 mn-b-big" }, M = /* @__PURE__ */ n("p", { class: "w-m-33r t-center mn-b-small p-big" }, "Together, we're shaping the future of the globals cannabis community.", -1), D = /* @__PURE__ */ n("button", { class: "bg-black t-white button" }, "Join Now", -1), E = {
4
4
  __name: "JoinUs",
5
5
  setup(P) {
6
6
  const s = o(120950), i = o([
@@ -37,8 +37,8 @@ const v = { class: "container container-joinus" }, f = { class: "content" }, M =
37
37
  };
38
38
  return (a, m) => (h(), w("div", v, [
39
39
  n("div", f, [
40
- n("span", M, _(s.value.toLocaleString()), 1),
41
- b,
40
+ n("span", b, _(s.value.toLocaleString()), 1),
41
+ M,
42
42
  D
43
43
  ])
44
44
  ]));
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/FieldBig/FieldBig.vue.cjs");require("./SubscribeNewsletter.vue2.cjs");const r={class:"pd-thin"},a={class:"o-hidden t-black bg-main pd-big radius-big"},l=e.createElementVNode("header",{class:"t-center z-index-1 mn-big"},[e.createElementVNode("h2",{class:"mn-l-auto mn-r-auto w-m-40r mn-medium"},"Stay Updated with The Latest in Cannabis."),e.createElementVNode("p",{class:"t-transp p-big"},"Subscribe to our newsletter for news, insights, and more from the Weeder universe.")],-1),d={class:"z-index-1 mn-big w-100 flex-nowrap flex"},u=e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid"},[e.createElementVNode("div",{class:"spiral"})],-1),c={__name:"SubscribeNewsletter",setup(m){let t=e.ref("");return(s,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.createElementVNode("div",a,[l,e.createElementVNode("div",d,[e.createVNode(i.default,{input:e.unref(t),typingSpeed:75,loopTyping:!1,enableTyping:!1,placeholder:"Please enter your email",action:"Subscribe","onUpdate:input":n[0]||(n[0]=o=>e.isRef(t)?t.value=o:t=o),onAction:n[1]||(n[1]=o=>s.router.push({name:"Product Recommmendation",query:{mood:s.mood}})),class:"mn-l-auto mn-r-auto bg-white t-black w-50"},null,8,["input"])]),u])]))}};exports.default=c;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/FieldBig/FieldBig.vue.cjs");require("./SubscribeNewsletter.vue2.cjs");const r={class:"pd-thin"},a={class:"o-hidden t-black bg-main pd-big radius-big"},l=e.createElementVNode("header",{class:"t-center z-index-1 mn-b-big"},[e.createElementVNode("h2",{class:"mn-l-auto mn-r-auto w-m-40r mn-b-medium"},"Stay Updated with The Latest in Cannabis."),e.createElementVNode("p",{class:"t-transp p-big"},"Subscribe to our newsletter for news, insights, and more from the Weeder universe.")],-1),d={class:"z-index-1 mn-b-big w-100 flex-nowrap flex"},u=e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid"},[e.createElementVNode("div",{class:"spiral"})],-1),c={__name:"SubscribeNewsletter",setup(m){let t=e.ref("");return(s,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.createElementVNode("div",a,[l,e.createElementVNode("div",d,[e.createVNode(i.default,{input:e.unref(t),typingSpeed:75,loopTyping:!1,enableTyping:!1,placeholder:"Please enter your email",action:"Subscribe","onUpdate:input":n[0]||(n[0]=o=>e.isRef(t)?t.value=o:t=o),onAction:n[1]||(n[1]=o=>s.router.push({name:"Product Recommmendation",query:{mood:s.mood}})),class:"mn-l-auto mn-r-auto bg-white t-black w-50"},null,8,["input"])]),u])]))}};exports.default=c;
@@ -1,10 +1,10 @@
1
1
  import { ref as i, openBlock as a, createElementBlock as r, createElementVNode as e, createVNode as l, unref as d, isRef as m } from "vue";
2
2
  import p from "../../../../components/FieldBig/FieldBig.vue.js";
3
3
  import "./SubscribeNewsletter.vue2.js";
4
- const c = { class: "pd-thin" }, u = { class: "o-hidden t-black bg-main pd-big radius-big" }, b = /* @__PURE__ */ e("header", { class: "t-center z-index-1 mn-big" }, [
5
- /* @__PURE__ */ e("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-medium" }, "Stay Updated with The Latest in Cannabis."),
4
+ const c = { class: "pd-thin" }, u = { class: "o-hidden t-black bg-main pd-big radius-big" }, b = /* @__PURE__ */ e("header", { class: "t-center z-index-1 mn-b-big" }, [
5
+ /* @__PURE__ */ e("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-b-medium" }, "Stay Updated with The Latest in Cannabis."),
6
6
  /* @__PURE__ */ e("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
7
- ], -1), f = { class: "z-index-1 mn-big w-100 flex-nowrap flex" }, h = /* @__PURE__ */ e("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
7
+ ], -1), f = { class: "z-index-1 mn-b-big w-100 flex-nowrap flex" }, h = /* @__PURE__ */ e("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
8
8
  /* @__PURE__ */ e("div", { class: "spiral" })
9
9
  ], -1), y = {
10
10
  __name: "SubscribeNewsletter",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Upload/Upload.vue.cjs"),m={class:"mn-thin w-100 pd-medium bg-white radius-medium"},p=["innerHTML"],v={key:1,class:""},b={__name:"Audio",props:["label","value","prop"],emits:["input","updateBlock"],setup(l,{emit:a}){const o=e.ref(null),i=l,u=a;function s(t){return[/youtube\.com/,/soundcloud\.com/,/vimeo\.com/].some(c=>c.test(t))}function d(t){o.value=t,o.value&&s(o.value)?(u("input",o.value),u("updateBlock",i.prop,{content:o.value})):alert("Invalid embed code or source not allowed.")}return(t,n)=>(e.openBlock(),e.createElementBlock("div",m,[l.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:l.prop.content,class:"flex-center flex"},null,8,p)):(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(r.default,{field:o.value,"onUpdate:field":n[0]||(n[0]=c=>o.value=c),onFileChange:d,type:"file",placeholder:"Enter embed code",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"},null,8,["field"]),e.createElementVNode("button",{onClick:d,class:"button-small button"}," Save ")]))]))}};exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Upload/Upload.vue.cjs"),m={class:"mn-b-thin w-100 pd-medium bg-white radius-medium"},p=["innerHTML"],b={key:1,class:""},v={__name:"Audio",props:["label","value","prop"],emits:["input","updateBlock"],setup(l,{emit:a}){const o=e.ref(null),i=l,u=a;function s(t){return[/youtube\.com/,/soundcloud\.com/,/vimeo\.com/].some(c=>c.test(t))}function d(t){o.value=t,o.value&&s(o.value)?(u("input",o.value),u("updateBlock",i.prop,{content:o.value})):alert("Invalid embed code or source not allowed.")}return(t,n)=>(e.openBlock(),e.createElementBlock("div",m,[l.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:l.prop.content,class:"flex-center flex"},null,8,p)):(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(r.default,{field:o.value,"onUpdate:field":n[0]||(n[0]=c=>o.value=c),onFileChange:d,type:"file",placeholder:"Enter embed code",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-b-thin"},null,8,["field"]),e.createElementVNode("button",{onClick:d,class:"button-small button"}," Save ")]))]))}};exports.default=v;
@@ -1,6 +1,6 @@
1
1
  import { ref as m, openBlock as d, createElementBlock as i, createVNode as p, createElementVNode as b } from "vue";
2
2
  import f from "../../../../components/Upload/Upload.vue.js";
3
- const v = { class: "mn-thin w-100 pd-medium bg-white radius-medium" }, k = ["innerHTML"], h = {
3
+ const v = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" }, k = ["innerHTML"], h = {
4
4
  key: 1,
5
5
  class: ""
6
6
  }, _ = {
@@ -31,7 +31,7 @@ const v = { class: "mn-thin w-100 pd-medium bg-white radius-medium" }, k = ["inn
31
31
  onFileChange: c,
32
32
  type: "file",
33
33
  placeholder: "Enter embed code",
34
- class: "w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"
34
+ class: "w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-b-thin"
35
35
  }, null, 8, ["field"]),
36
36
  b("button", {
37
37
  onClick: c,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=["placeholder"],h={__name:"Bullets",props:["obj","label","prop","value","content","textarea","placeholder","index","ref"],emits:["deleteBlock","addBlock","focus"],setup(t,{emit:p}){const l=t;e.ref(l);const r=e.ref(null),i=p;function f(n){const o=/^\s*[-*]\s+(.*)/;let s=n.target.value.split(/\n+/).map(u=>{const d=o.exec(u);return d?d[1]:null}).filter(u=>u!==null);s.length>0?(l.prop[l.content]=s,a()):n.target.value.trim()===""&&(l.prop[l.content]=[],a())}function a(){r.value.style.height="1rem",r.value.style.height=r.value.scrollHeight+"px"}return e.onUpdated(()=>{a()}),e.onMounted(()=>{a()}),e.watch(()=>l.prop[l.content],n=>{(!n||n.length===0)&&i("deleteBlock",l.prop)}),(n,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(t.prop[t.content])+" ",1),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":o[0]||(o[0]=c=>t.prop[t.content]=c),placeholder:t.placeholder?t.placeholder:"Enter text",onInput:f,onFocus:o[1]||(o[1]=c=>i("focus",r.value)),ref_key:"textarea",ref:r,tabindex:"-1",class:"text-area mn-small"},`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=["placeholder"],h={__name:"Bullets",props:["obj","label","prop","value","content","textarea","placeholder","index","ref"],emits:["deleteBlock","addBlock","focus"],setup(t,{emit:p}){const l=t;e.ref(l);const r=e.ref(null),i=p;function f(n){const o=/^\s*[-*]\s+(.*)/;let s=n.target.value.split(/\n+/).map(u=>{const d=o.exec(u);return d?d[1]:null}).filter(u=>u!==null);s.length>0?(l.prop[l.content]=s,a()):n.target.value.trim()===""&&(l.prop[l.content]=[],a())}function a(){r.value.style.height="1rem",r.value.style.height=r.value.scrollHeight+"px"}return e.onUpdated(()=>{a()}),e.onMounted(()=>{a()}),e.watch(()=>l.prop[l.content],n=>{(!n||n.length===0)&&i("deleteBlock",l.prop)}),(n,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(t.prop[t.content])+" ",1),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":o[0]||(o[0]=c=>t.prop[t.content]=c),placeholder:t.placeholder?t.placeholder:"Enter text",onInput:f,onFocus:o[1]||(o[1]=c=>i("focus",r.value)),ref_key:"textarea",ref:r,tabindex:"-1",class:"text-area mn-b-small"},`
2
2
  `,40,m),[[e.vModelText,t.prop[t.content]]])]))}};exports.default=h;
@@ -1,4 +1,4 @@
1
- import { ref as d, onUpdated as f, onMounted as x, watch as h, openBlock as v, createElementBlock as g, createTextVNode as k, toDisplayString as B, withDirectives as b, createElementVNode as y, vModelText as E } from "vue";
1
+ import { ref as d, onUpdated as f, onMounted as x, watch as h, openBlock as v, createElementBlock as g, createTextVNode as b, toDisplayString as k, withDirectives as B, createElementVNode as y, vModelText as E } from "vue";
2
2
  const D = ["placeholder"], M = {
3
3
  __name: "Bullets",
4
4
  props: ["obj", "label", "prop", "value", "content", "textarea", "placeholder", "index", "ref"],
@@ -25,8 +25,8 @@ const D = ["placeholder"], M = {
25
25
  }), h(() => t.prop[t.content], (l) => {
26
26
  (!l || l.length === 0) && i("deleteBlock", t.prop);
27
27
  }), (l, n) => (v(), g("div", null, [
28
- k(B(e.prop[e.content]) + " ", 1),
29
- b(y("textarea", {
28
+ b(k(e.prop[e.content]) + " ", 1),
29
+ B(y("textarea", {
30
30
  "onUpdate:modelValue": n[0] || (n[0] = (r) => e.prop[e.content] = r),
31
31
  placeholder: e.placeholder ? e.placeholder : "Enter text",
32
32
  onInput: m,
@@ -34,7 +34,7 @@ const D = ["placeholder"], M = {
34
34
  ref_key: "textarea",
35
35
  ref: o,
36
36
  tabindex: "-1",
37
- class: "text-area mn-small"
37
+ class: "text-area mn-b-small"
38
38
  }, `
39
39
  `, 40, D), [
40
40
  [E, e.prop[e.content]]
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=["placeholder"],h={__name:"Caption",props:["obj","label","prop","value","content","textarea","placeholder","index","ref"],emits:["deleteBlock","addBlock","focus"],setup(l,{emit:p}){const t=l;e.ref(t);const r=e.ref(null),u=p;function m(n){const o=/^\s*[-*]\s+(.*)/;let s=n.target.value.split(/\n+/).map(i=>{const d=o.exec(i);return d?d[1]:null}).filter(i=>i!==null);s.length>0?(t.prop[t.content]=s,a()):n.target.value.trim()===""&&(t.prop[t.content]=[],a())}function a(){r.value.style.height="1rem",r.value.style.height=r.value.scrollHeight+"px"}return e.onUpdated(()=>{a()}),e.onMounted(()=>{a()}),e.watch(()=>t.prop[t.content],n=>{(!n||n.length===0)&&u("deleteBlock",t.prop)}),(n,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":o[0]||(o[0]=c=>l.prop[l.content]=c),placeholder:l.placeholder?l.placeholder:"Enter text",onInput:m,onFocus:o[1]||(o[1]=c=>u("focus",r.value)),ref_key:"textarea",ref:r,tabindex:"-1",class:"br-l br-solid br-main pd-l-small text-area mn-small"},`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=["placeholder"],h={__name:"Caption",props:["obj","label","prop","value","content","textarea","placeholder","index","ref"],emits:["deleteBlock","addBlock","focus"],setup(l,{emit:p}){const t=l;e.ref(t);const r=e.ref(null),u=p;function m(n){const o=/^\s*[-*]\s+(.*)/;let s=n.target.value.split(/\n+/).map(i=>{const d=o.exec(i);return d?d[1]:null}).filter(i=>i!==null);s.length>0?(t.prop[t.content]=s,a()):n.target.value.trim()===""&&(t.prop[t.content]=[],a())}function a(){r.value.style.height="1rem",r.value.style.height=r.value.scrollHeight+"px"}return e.onUpdated(()=>{a()}),e.onMounted(()=>{a()}),e.watch(()=>t.prop[t.content],n=>{(!n||n.length===0)&&u("deleteBlock",t.prop)}),(n,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":o[0]||(o[0]=c=>l.prop[l.content]=c),placeholder:l.placeholder?l.placeholder:"Enter text",onInput:m,onFocus:o[1]||(o[1]=c=>u("focus",r.value)),ref_key:"textarea",ref:r,tabindex:"-1",class:"br-l br-solid br-main pd-l-small text-area mn-b-small"},`
2
2
  `,40,f),[[e.vModelText,l.prop[l.content]]])]))}};exports.default=h;
@@ -33,7 +33,7 @@ const y = ["placeholder"], I = {
33
33
  ref_key: "textarea",
34
34
  ref: o,
35
35
  tabindex: "-1",
36
- class: "br-l br-solid br-main pd-l-small text-area mn-small"
36
+ class: "br-l br-solid br-main pd-l-small text-area mn-b-small"
37
37
  }, `
38
38
  `, 40, y), [
39
39
  [B, t.prop[t.content]]
@@ -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"),m={class:"mn-thin w-100 pd-medium bg-white radius-medium"},p=["innerHTML"],b={key:1,class:""},v=e.createElementVNode("p",{class:"t-center"},"Embeds from youtube.com, vimeo.com, soundcloud.com are allowed",-1),f={__name:"Embed",props:["label","value","prop"],emits:["input","updateBlock"],setup(t,{emit:a}){const o=e.ref(null),d=t,c=a;function u(s){return[/youtube\.com/,/soundcloud\.com/,/vimeo\.com/].some(n=>n.test(s))}function r(){o.value&&u(o.value)?(c("input",o.value),c("updateBlock",d.prop,{content:o.value})):alert("Invalid embed code or source not allowed.")}return(s,l)=>(e.openBlock(),e.createElementBlock("div",m,[t.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.prop.content,class:"flex-center flex"},null,8,p)):(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(i.default,{field:o.value,"onUpdate:field":l[0]||(l[0]=n=>o.value=n),type:"textarea",placeholder:"Paste your embed code here",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"},null,8,["field"]),e.createElementVNode("div",{class:"flex-v-center flex-nowrap flex gap-small"},[v,e.createElementVNode("button",{onClick:r,class:"button-small button"}," Save ")])]))]))}};exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Field/Field.vue2.cjs"),m={class:"mn-b-thin w-100 pd-medium bg-white radius-medium"},p=["innerHTML"],b={key:1,class:""},v=e.createElementVNode("p",{class:"t-center"},"Embeds from youtube.com, vimeo.com, soundcloud.com are allowed",-1),f={__name:"Embed",props:["label","value","prop"],emits:["input","updateBlock"],setup(t,{emit:a}){const o=e.ref(null),d=t,c=a;function u(s){return[/youtube\.com/,/soundcloud\.com/,/vimeo\.com/].some(n=>n.test(s))}function r(){o.value&&u(o.value)?(c("input",o.value),c("updateBlock",d.prop,{content:o.value})):alert("Invalid embed code or source not allowed.")}return(s,l)=>(e.openBlock(),e.createElementBlock("div",m,[t.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.prop.content,class:"flex-center flex"},null,8,p)):(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(i.default,{field:o.value,"onUpdate:field":l[0]||(l[0]=n=>o.value=n),type:"textarea",placeholder:"Paste your embed code here",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-b-thin"},null,8,["field"]),e.createElementVNode("div",{class:"flex-v-center flex-nowrap flex gap-small"},[v,e.createElementVNode("button",{onClick:r,class:"button-small button"}," Save ")])]))]))}};exports.default=f;
@@ -1,6 +1,6 @@
1
1
  import { ref as p, openBlock as n, createElementBlock as s, createVNode as b, createElementVNode as c } from "vue";
2
2
  import f from "../../../../components/Field/Field.vue2.js";
3
- const v = { class: "mn-thin w-100 pd-medium bg-white radius-medium" }, k = ["innerHTML"], x = {
3
+ const v = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" }, k = ["innerHTML"], x = {
4
4
  key: 1,
5
5
  class: ""
6
6
  }, h = /* @__PURE__ */ c("p", { class: "t-center" }, "Embeds from youtube.com, vimeo.com, soundcloud.com are allowed", -1), y = {
@@ -30,7 +30,7 @@ const v = { class: "mn-thin w-100 pd-medium bg-white radius-medium" }, k = ["inn
30
30
  "onUpdate:field": t[0] || (t[0] = (l) => e.value = l),
31
31
  type: "textarea",
32
32
  placeholder: "Paste your embed code here",
33
- class: "w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"
33
+ class: "w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-b-thin"
34
34
  }, null, 8, ["field"]),
35
35
  c("div", { class: "flex-v-center flex-nowrap flex gap-small" }, [
36
36
  h,
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./H2.vue2.cjs");const k=["placeholder"],x={__name:"H2",props:["obj","label","prop","value","content","textarea","placeholder","index","ref","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(a,{emit:s}){const t=a;e.ref(t);const o=e.ref(null),c=s;e.ref(0);function d(n){let l=n.target.value.split(/\n+/);if(l.length>1){t.prop[t.content]=l[0],e.nextTick(()=>{r()});let u=l.slice(1).map(f=>({type:"Textarea",content:f}));c("addBlock","Textarea","",t.index,{blocks:u,ref:o})}else n.target.value.trim()===""&&n.target.value.includes(`
2
2
 
3
- `)&&(console.log("We are adding new block:"+t.index+newBlocks+o),c("addBlock","Textarea","",t.index,{blocks:newBlocks,ref:o})),r()}function p(n){(n.keyCode===8||n.keyCode===46)&&t.prop[t.content].trim()===""&&c("deleteBlock",t.prop)}function i(){e.nextTick(()=>{o.value.focus(),c("updateBlock",t.prop,{setFocus:!1})})}function r(){o.value.style.height="1rem",o.value.style.height=o.value.scrollHeight+"px"}return e.onUpdated(()=>{t.setFocus&&e.nextTick(()=>{i()}),r()}),e.onMounted(()=>{t.setFocus&&e.nextTick(()=>{i()}),r()}),e.watch(()=>t.prop[t.content],n=>{}),(n,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=u=>a.prop[a.content]=u),placeholder:a.placeholder?a.placeholder:"Enter text",onInput:d,onFocus:l[1]||(l[1]=u=>c("focus",o.value)),onKeyup:p,ref_key:"textarea",ref:o,tabindex:"-1",class:"h3 text-area mn-thin"},`
3
+ `)&&(console.log("We are adding new block:"+t.index+newBlocks+o),c("addBlock","Textarea","",t.index,{blocks:newBlocks,ref:o})),r()}function p(n){(n.keyCode===8||n.keyCode===46)&&t.prop[t.content].trim()===""&&c("deleteBlock",t.prop)}function i(){e.nextTick(()=>{o.value.focus(),c("updateBlock",t.prop,{setFocus:!1})})}function r(){o.value.style.height="1rem",o.value.style.height=o.value.scrollHeight+"px"}return e.onUpdated(()=>{t.setFocus&&e.nextTick(()=>{i()}),r()}),e.onMounted(()=>{t.setFocus&&e.nextTick(()=>{i()}),r()}),e.watch(()=>t.prop[t.content],n=>{}),(n,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=u=>a.prop[a.content]=u),placeholder:a.placeholder?a.placeholder:"Enter text",onInput:d,onFocus:l[1]||(l[1]=u=>c("focus",o.value)),onKeyup:p,ref_key:"textarea",ref:o,tabindex:"-1",class:"h3 text-area mn-b-thin"},`
4
4
  `,40,k),[[e.vModelText,a.prop[a.content]]])]))}};exports.default=x;
@@ -1,6 +1,6 @@
1
- import { ref as d, onUpdated as x, nextTick as s, onMounted as h, watch as m, openBlock as B, createElementBlock as g, withDirectives as v, createElementVNode as y, vModelText as w } from "vue";
1
+ import { ref as d, onUpdated as x, nextTick as s, onMounted as h, watch as m, openBlock as B, createElementBlock as g, withDirectives as v, createElementVNode as y, vModelText as b } from "vue";
2
2
  import "./H2.vue2.js";
3
- const b = ["placeholder"], E = {
3
+ const w = ["placeholder"], E = {
4
4
  __name: "H2",
5
5
  props: ["obj", "label", "prop", "value", "content", "textarea", "placeholder", "index", "ref", "setFocus"],
6
6
  emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
@@ -52,10 +52,10 @@ const b = ["placeholder"], E = {
52
52
  ref_key: "textarea",
53
53
  ref: t,
54
54
  tabindex: "-1",
55
- class: "h3 text-area mn-thin"
55
+ class: "h3 text-area mn-b-thin"
56
56
  }, `
57
- `, 40, b), [
58
- [w, l.prop[l.content]]
57
+ `, 40, w), [
58
+ [b, l.prop[l.content]]
59
59
  ])
60
60
  ]));
61
61
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o={class:"w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small"},c=["src"],a={__name:"Image",props:["label","value","prop"],setup(t){return e.ref(null),(l,n)=>(e.openBlock(),e.createElementBlock("div",o,[t.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(l.FILE_SERVER_URL||"")+t.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,c)):e.createCommentVNode("",!0)]))}};exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r={key:0,class:"o-hidden radius-big pos-relative bg-grey mn-b-small w-100"},l=["src"],n=["src"],s={__name:"Image",props:["label","value","prop"],setup(t){return(o,a)=>t.prop.content?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("img",{src:(o.FILE_SERVER_URL||"")+t.prop.content,alt:"Event image",class:"pos-relative z-index-1 d-block mn-auto w-100 object-fit-contain",style:{"max-height":"40rem"}},null,8,l),e.createElementVNode("img",{src:(o.FILE_SERVER_URL||"")+t.prop.content,alt:"Event Background",class:"z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",style:{transform:"scale(1.5)",filter:"blur(2rem)","-webkit-filter":"blur(2rem)"}},null,8,n)])):e.createCommentVNode("",!0)}};exports.default=s;
@@ -1,5 +1,8 @@
1
- import { ref as o, openBlock as t, createElementBlock as a, createCommentVNode as c } from "vue";
2
- const n = { class: "w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small" }, r = ["src"], m = {
1
+ import { openBlock as r, createElementBlock as n, createElementVNode as o, createCommentVNode as s } from "vue";
2
+ const l = {
3
+ key: 0,
4
+ class: "o-hidden radius-big pos-relative bg-grey mn-b-small w-100"
5
+ }, a = ["src"], c = ["src"], p = {
3
6
  __name: "Image",
4
7
  props: [
5
8
  "label",
@@ -7,16 +10,22 @@ const n = { class: "w-100 bg-white radius-big image-upload-area flex-v-center fl
7
10
  "prop"
8
11
  ],
9
12
  setup(e) {
10
- return o(null), (l, s) => (t(), a("div", n, [
11
- e.prop.content ? (t(), a("img", {
12
- key: 0,
13
- src: (l.FILE_SERVER_URL || "") + e.prop.content,
14
- alt: "Uploaded image",
15
- class: "w-100 h-30r object-fit-contain"
16
- }, null, 8, r)) : c("", !0)
17
- ]));
13
+ return (t, i) => e.prop.content ? (r(), n("div", l, [
14
+ o("img", {
15
+ src: (t.FILE_SERVER_URL || "") + e.prop.content,
16
+ alt: "Event image",
17
+ class: "pos-relative z-index-1 d-block mn-auto w-100 object-fit-contain",
18
+ style: { "max-height": "40rem" }
19
+ }, null, 8, a),
20
+ o("img", {
21
+ src: (t.FILE_SERVER_URL || "") + e.prop.content,
22
+ alt: "Event Background",
23
+ class: "z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",
24
+ style: { transform: "scale(1.5)", filter: "blur(2rem)", "-webkit-filter": "blur(2rem)" }
25
+ }, null, 8, c)
26
+ ])) : s("", !0);
18
27
  }
19
28
  };
20
29
  export {
21
- m as default
30
+ p as default
22
31
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../../../../../node_modules/axios/lib/axios.cjs"),v=["src"],h={key:1,class:"t-transp pd-extra"},y={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(l,{emit:p}){const n=e.ref(null),r=e.ref(null),u=l,i=p;function d(){r.value.click()}async function s(t){let o=t.target.files[0];console.log(o);let a=new FormData,m="unsorted";a.append("file",o),console.log(a.has("file"));try{let g=await k.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(m)}`,a,{headers:{"Content-Type":"multipart/form-data"}});n.value=g.data.filepath,console.log(n.value),i("input",n.value),i("updateBlock",u.prop,{content:n.value})}catch(c){console.error(c)}}function f(t){t.preventDefault(),s({target:{files:t.dataTransfer.files}})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:d,onDrop:f,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),class:"w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small"},[l.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(t.FILE_SERVER_URL||"")+l.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,v)):(e.openBlock(),e.createElementBlock("span",h,"Click or drag-and-drop your image")),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:r,tabindex:"-1",onChange:s,style:{display:"none"}},null,544)],32))}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../../../../../node_modules/axios/lib/axios.cjs"),v=["src"],h={key:1,class:"t-transp pd-extra"},y={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(l,{emit:p}){const n=e.ref(null),r=e.ref(null),u=l,i=p;function d(){r.value.click()}async function s(t){let o=t.target.files[0];console.log(o);let a=new FormData,m="unsorted";a.append("file",o),console.log(a.has("file"));try{let g=await k.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(m)}`,a,{headers:{"Content-Type":"multipart/form-data"}});n.value=g.data.filepath,console.log(n.value),i("input",n.value),i("updateBlock",u.prop,{content:n.value})}catch(c){console.error(c)}}function f(t){t.preventDefault(),s({target:{files:t.dataTransfer.files}})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:d,onDrop:f,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),class:"w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-b-small"},[l.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(t.FILE_SERVER_URL||"")+l.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,v)):(e.openBlock(),e.createElementBlock("span",h,"Click or drag-and-drop your image")),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:r,tabindex:"-1",onChange:s,style:{display:"none"}},null,544)],32))}};exports.default=y;
@@ -44,7 +44,7 @@ const C = ["src"], b = {
44
44
  onDrop: g,
45
45
  onDragover: t[0] || (t[0] = v(() => {
46
46
  }, ["prevent"])),
47
- class: "w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small"
47
+ class: "w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-b-small"
48
48
  }, [
49
49
  n.prop.content ? (l(), r("img", {
50
50
  key: 0,
@@ -1,4 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Textarea.vue2.cjs");const k=["placeholder"],x={__name:"Textarea",props:["prop","value","content","placeholder","index","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(l,{emit:s}){const t=l,c=s;e.ref(t);const n=e.ref(null);e.ref(0);function d(a){let o=a.target.value.split(/\n+/);if(o.length>1){t.prop[t.content]=o[0],e.nextTick(()=>{r()});let u=o.slice(1).map(f=>({__name:"Textarea",content:f}));c("addBlock","Textarea","",t.index,{blocks:u,ref:n})}else a.target.value.trim()===""&&a.target.value.includes(`
2
-
3
- `)&&(console.log("We are adding new block:"+t.index+newBlocks+n),c("addBlock","Textarea","",t.index,{blocks:newBlocks,ref:n})),r()}function p(a){(a.keyCode===8||a.keyCode===46)&&t.prop[t.content].trim()===""&&c("deleteBlock",t.prop)}function i(){e.nextTick(()=>{n.value.focus(),c("updateBlock",t.prop,{setFocus:!1})})}function r(){n.value.style.height="1rem",n.value.style.height=n.value.scrollHeight+"px"}return e.onUpdated(()=>{t.setFocus&&e.nextTick(()=>{i()}),r()}),e.onMounted(()=>{t.setFocus&&e.nextTick(()=>{i()}),r()}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":o[0]||(o[0]=u=>l.prop[l.content]=u),placeholder:l.placeholder?l.placeholder:"Enter text",onInput:d,onFocus:o[1]||(o[1]=u=>c("focus",n.value)),onKeyup:p,ref_key:"textarea",ref:n,tabindex:"-1",class:"text-area mn-thin"},`
4
- `,40,k),[[e.vModelText,l.prop[l.content]]])]))}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;