@ozdao/prometheus-framework 0.2.128 → 0.2.129

Sign up to get free protection for your applications and to get access to all the features.
Files changed (396) hide show
  1. package/LICENSE +1 -1
  2. package/dist/auth.server.js +12 -14
  3. package/dist/auth.server.mjs +12 -14
  4. package/dist/community.server.js +1 -1
  5. package/dist/community.server.mjs +1 -1
  6. package/dist/events.server.js +1 -1
  7. package/dist/events.server.mjs +1 -1
  8. package/dist/files.server.js +1 -1
  9. package/dist/files.server.mjs +1 -1
  10. package/dist/gallery.server.js +6 -2
  11. package/dist/gallery.server.mjs +6 -2
  12. package/dist/{index-BCCiEK_u.js → index-BshfsiQG.js} +8 -4
  13. package/dist/{index-B6a1mPgp.mjs → index-DKtnWDNC.mjs} +8 -4
  14. package/dist/{main-CmL_j3wv.mjs → main-DvdaURTh.mjs} +3261 -3154
  15. package/dist/main-hLtpe4Hr.js +92 -0
  16. package/dist/main.css +1 -1
  17. package/dist/middlewares.server.js +1 -1
  18. package/dist/middlewares.server.mjs +1 -1
  19. package/dist/node_modules/zod/lib/index.cjs +1 -1
  20. package/dist/node_modules/zod/lib/index.js +1162 -1033
  21. package/dist/orders.server.js +1 -1
  22. package/dist/orders.server.mjs +1 -1
  23. package/dist/organizations.server.js +1 -1
  24. package/dist/organizations.server.mjs +1 -1
  25. package/dist/products.server.js +1 -1
  26. package/dist/products.server.mjs +1 -1
  27. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -1
  29. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +1 -89
  31. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  33. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js +73 -0
  35. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +23 -22
  37. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +1 -27
  39. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +27 -1
  41. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +1 -58
  43. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +58 -1
  45. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +144 -112
  47. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +5 -5
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -1
  51. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  52. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -127
  53. package/dist/prometheus-framework/src/components/Menu/MenuItem.vue.cjs +1 -0
  54. package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/MenuItem.vue.js +1 -1
  55. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue.js +6 -6
  57. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +77 -1
  59. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  60. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -77
  61. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
  63. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  64. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
  65. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  67. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  68. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  69. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/auth/store/auth.js +7 -6
  71. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +114 -77
  73. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +7 -22
  75. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +62 -70
  77. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +2 -2
  79. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  83. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +17 -16
  85. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  86. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
  87. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  88. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  89. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -5
  101. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +9 -9
  103. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +1 -0
  104. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +18 -0
  105. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -0
  106. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +46 -0
  107. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +20 -16
  109. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +10 -10
  113. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  115. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +27 -4
  117. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +14 -12
  119. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +111 -93
  123. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.js +13 -14
  127. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +20 -22
  133. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +5 -4
  137. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  141. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  143. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -0
  146. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +154 -0
  147. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  157. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -0
  158. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +27 -0
  159. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -7
  161. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +26 -27
  165. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  167. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  169. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +22 -23
  171. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +30 -29
  175. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +72 -51
  179. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +5 -5
  181. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +51 -53
  183. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +22 -22
  185. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  187. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  189. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +62 -48
  191. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +43 -44
  193. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -5
  195. package/dist/prometheus-framework.cjs.js +1 -1
  196. package/dist/prometheus-framework.es.js +24 -25
  197. package/dist/reports.server.js +1 -1
  198. package/dist/reports.server.mjs +1 -1
  199. package/dist/style.css +1 -1
  200. package/dist/wallet.server.js +1 -1
  201. package/dist/wallet.server.mjs +1 -1
  202. package/dist/{web-Bk_OtXgv.js → web-CVIepGUM.js} +1 -1
  203. package/dist/{web-BHzpMOmk.mjs → web-Dt2JR41o.mjs} +1 -1
  204. package/package.json +3 -2
  205. package/src/{modules/mobile/components → components}/BottomSheet/BottomSheet.vue +24 -21
  206. package/src/components/Button/Button.vue +20 -3
  207. package/src/components/Feed/Feed.vue +28 -3
  208. package/src/components/FieldBig/FieldBig.vue +2 -2
  209. package/src/components/Sidebar/Sidebar.vue +13 -5
  210. package/src/components/index.js +0 -1
  211. package/src/main.js +0 -4
  212. package/src/modules/auth/controllers/auth.controller.js +14 -16
  213. package/src/modules/auth/router/auth.js +1 -4
  214. package/src/modules/auth/store/auth.js +28 -24
  215. package/src/modules/backoffice/components/pages/Dashboard.vue +29 -56
  216. package/src/modules/backoffice/router/backoffice.js +4 -15
  217. package/src/modules/community/components/blocks/CardBlogpost.vue +28 -26
  218. package/src/modules/community/components/layouts/Community.vue +1 -1
  219. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  220. package/src/modules/gallery/components/pages/Gallery.vue +1 -2
  221. package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -1
  222. package/src/modules/gallery/router/gallery.backoffice.router.js +14 -0
  223. package/src/modules/globals/components/blocks/BlockFilter.vue +44 -0
  224. package/src/modules/globals/components/blocks/CardHeader.vue +5 -3
  225. package/src/modules/globals/components/layouts/Client.vue +99 -43
  226. package/src/modules/globals/components/pages/401.vue +5 -0
  227. package/src/modules/globals/components/pages/404.vue +5 -0
  228. package/src/modules/globals/components/partials/Footer.vue +17 -5
  229. package/src/modules/globals/components/partials/Header.vue +37 -18
  230. package/src/modules/globals/components/partials/Navigation.vue +7 -2
  231. package/src/modules/landing/components/sections/MobileApp.vue +2 -2
  232. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  233. package/src/modules/landing/router/landing.js +2 -12
  234. package/src/modules/legal/components/pages/Legal.vue +2 -2
  235. package/src/modules/marketplace/components/layouts/Marketplace.vue +30 -13
  236. package/src/modules/marketplace/components/pages/Catalog.vue +2 -1
  237. package/src/modules/marketplace/router/marketplace.js +12 -10
  238. package/src/modules/marketplace/store/marketplace.js +25 -1
  239. package/src/modules/middlewares/client/auth.validation.js +5 -2
  240. package/src/modules/middlewares/server/authJwt.js +12 -6
  241. package/src/modules/middlewares/server/verifyAccesses.js +7 -3
  242. package/src/modules/orders/components/pages/OrderCreate.vue +34 -22
  243. package/src/modules/orders/components/sections/AskToLogin.vue +8 -7
  244. package/src/modules/orders/components/sections/FormDelivery.vue +6 -6
  245. package/src/modules/orders/router/orders.router.js +6 -3
  246. package/src/modules/organizations/components/pages/Members.vue +2 -2
  247. package/src/modules/organizations/components/pages/Organization.vue +2 -2
  248. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +204 -0
  249. package/src/modules/organizations/router/backoffice.router.js +25 -0
  250. package/src/modules/organizations/router/organizations.js +3 -1
  251. package/src/modules/pages/router/pages.router.js +15 -0
  252. package/src/modules/products/components/blocks/ImagesThumbnails.vue +11 -12
  253. package/src/modules/products/components/pages/Product.vue +7 -3
  254. package/src/modules/products/components/pages/ProductRecommmendation.vue +6 -5
  255. package/src/modules/products/components/sections/FilterProducts.vue +6 -6
  256. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  257. package/src/modules/products/components/sections/PopularProducts.vue +1 -3
  258. package/src/modules/products/components/sections/SectionProduct.vue +8 -8
  259. package/src/modules/spots/components/layouts/Spots.vue +33 -31
  260. package/src/modules/spots/components/pages/Map.vue +380 -353
  261. package/src/modules/spots/router/spots.js +3 -1
  262. package/src/modules/users/components/pages/Profile.vue +4 -4
  263. package/src/modules/users/components/pages/ProfileEdit.vue +4 -3
  264. package/src/modules/wallet/controllers/routes/payments.routes.js +0 -1
  265. package/src/styles/base/all.scss +4 -0
  266. package/src/styles/config.scss +2 -1
  267. package/src/styles/layout.scss +0 -1
  268. package/dist/credentials.schema-CDZCKfEI.mjs +0 -106
  269. package/dist/credentials.schema-CfhPcsuI.js +0 -105
  270. package/dist/index-CGIn4v5E.mjs +0 -217
  271. package/dist/index-CL9l0HRS.js +0 -216
  272. package/dist/main-8APITHuW.mjs +0 -14201
  273. package/dist/main-8N2Jmsuk.js +0 -91
  274. package/dist/main-BJvlNekm.mjs +0 -13631
  275. package/dist/main-BQisDfLk.js +0 -92
  276. package/dist/main-BV1Yv9Hy.js +0 -92
  277. package/dist/main-Ba3zK8PO.js +0 -92
  278. package/dist/main-Btlny-89.mjs +0 -14207
  279. package/dist/main-Bw0PvTs-.mjs +0 -13616
  280. package/dist/main-ByCtZbHD.mjs +0 -13752
  281. package/dist/main-CF35oB7q.js +0 -92
  282. package/dist/main-CX2ISR43.mjs +0 -13629
  283. package/dist/main-CXObXjv-.js +0 -92
  284. package/dist/main-CkeuHuCY.mjs +0 -13619
  285. package/dist/main-CnfcBov2.mjs +0 -13740
  286. package/dist/main-D0va05OD.js +0 -92
  287. package/dist/main-D50VqYhy.js +0 -91
  288. package/dist/main-D8gNZLSa.js +0 -92
  289. package/dist/main-DL3vRQCi.js +0 -92
  290. package/dist/main-DPsHxX0l.mjs +0 -13633
  291. package/dist/main-DTlUA63C.mjs +0 -13617
  292. package/dist/main-DfD5hLQo.mjs +0 -13633
  293. package/dist/main-Dh6Zfei9.js +0 -92
  294. package/dist/main-DmNP-t33.mjs +0 -13625
  295. package/dist/main-Ds3Z5x5d.mjs +0 -14206
  296. package/dist/main-DwyUYWFX.js +0 -92
  297. package/dist/main-VcxO-jAt.js +0 -92
  298. package/dist/main-cffh4bbv.js +0 -92
  299. package/dist/main-o_2eO2tP.mjs +0 -14208
  300. package/dist/main-pGo7JpSP.js +0 -92
  301. package/dist/metadata.schema-BLGSCSmy.mjs +0 -55
  302. package/dist/metadata.schema-Cu_mPkjE.js +0 -77
  303. package/dist/metadata.schema-DWR97jhW.js +0 -54
  304. package/dist/metadata.schema-cbFgazeK.mjs +0 -78
  305. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +0 -1
  306. package/dist/node_modules/@noble/hashes/esm/sha512.js +0 -126
  307. package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.cjs +0 -7
  308. package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.js +0 -38
  309. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.cjs +0 -2
  310. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +0 -43
  311. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +0 -1
  312. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +0 -1
  313. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +0 -1
  314. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +0 -373
  315. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +0 -1
  316. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +0 -1
  317. package/dist/prometheus-framework/src/components/FieldPhone/utils.cjs +0 -1
  318. package/dist/prometheus-framework/src/components/FieldPhone/utils.js +0 -259
  319. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +0 -1
  320. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +0 -62
  321. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +0 -1
  322. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +0 -1
  323. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.cjs +0 -1
  324. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +0 -1
  325. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +0 -1
  326. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +0 -1
  327. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +0 -110
  328. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +0 -1
  329. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +0 -1
  330. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +0 -1
  331. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +0 -27
  332. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +0 -1
  333. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.js +0 -29
  334. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +0 -1
  335. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +0 -1
  336. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +0 -65
  337. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +0 -1
  338. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +0 -87
  339. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +0 -1
  340. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +0 -1
  341. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +0 -1
  342. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +0 -51
  343. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +0 -1
  344. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +0 -1
  345. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +0 -1
  346. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +0 -53
  347. package/dist/queryProcessor-BJdKh0Ow.mjs +0 -162
  348. package/dist/queryProcessor-BJoJAetd.mjs +0 -162
  349. package/dist/queryProcessor-BUDoM96e.js +0 -148
  350. package/dist/queryProcessor-Cl6sU582.mjs +0 -149
  351. package/dist/queryProcessor-DRMo_GWK.js +0 -161
  352. package/dist/queryProcessor-DWf9tsis.js +0 -161
  353. package/dist/web-B2xhKZNK.js +0 -1
  354. package/dist/web-B8tq3Fda.mjs +0 -54
  355. package/dist/web-BDaOF322.js +0 -1
  356. package/dist/web-BEJCRWop.mjs +0 -54
  357. package/dist/web-BNKN7kk3.mjs +0 -54
  358. package/dist/web-BX5um81l.js +0 -1
  359. package/dist/web-ByJkgGrt.js +0 -1
  360. package/dist/web-C0sFgeYh.mjs +0 -54
  361. package/dist/web-CQQEUA9l.js +0 -1
  362. package/dist/web-CQiHBOEN.mjs +0 -54
  363. package/dist/web-CXzcKdk4.mjs +0 -54
  364. package/dist/web-CciQvENI.js +0 -1
  365. package/dist/web-CkrMHYIU.js +0 -1
  366. package/dist/web-CtVocufd.js +0 -1
  367. package/dist/web-CvRd3N_J.mjs +0 -54
  368. package/dist/web-D0ugI6ra.js +0 -1
  369. package/dist/web-D2Em-p-C.mjs +0 -54
  370. package/dist/web-D9Cfcy5k.js +0 -1
  371. package/dist/web-DEysqj0n.js +0 -1
  372. package/dist/web-DNq1tHCE.mjs +0 -54
  373. package/dist/web-DTzbVshr.mjs +0 -54
  374. package/dist/web-Douq6xn6.js +0 -1
  375. package/dist/web-DtWmpLE-.mjs +0 -54
  376. package/dist/web-TGdVOTnw.js +0 -1
  377. package/dist/web-VFuzUsNl.mjs +0 -54
  378. package/dist/web-_W9a_nWD.mjs +0 -54
  379. package/dist/web-kg3KgbAF.js +0 -1
  380. package/dist/web-nVxTNRH4.mjs +0 -54
  381. package/src/components/Magnifier/Magnifier.vue +0 -89
  382. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.cjs +0 -0
  383. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.js +0 -0
  384. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.cjs +0 -0
  385. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.js +0 -0
  386. /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.cjs +0 -0
  387. /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.js +0 -0
  388. /package/src/{modules/mobile/components → components}/Menu/Menu.vue +0 -0
  389. /package/src/{modules/mobile/components → components}/Menu/MenuItem.vue +0 -0
  390. /package/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue +0 -0
  391. /package/src/modules/{mobile/components/BottomNavigation → globals/components/partials}/BottomNavigation.vue +0 -0
  392. /package/src/modules/{mobile/components/NavigationBar → globals/components/partials}/NavigationBar.vue +0 -0
  393. /package/src/modules/{mobile/components/Walkthrough → globals/components/sections}/Walkthrough.vue +0 -0
  394. /package/src/modules/{landing → pages}/components/pages/Page.vue +0 -0
  395. /package/src/modules/{backoffice/components/admin → pages/components/pages}/PageEdit.vue +0 -0
  396. /package/src/modules/{backoffice/components/admin → pages/components/pages}/Pages.vue +0 -0
@@ -1 +1,58 @@
1
-
1
+ import { ref as u, computed as f, withDirectives as a, openBlock as l, createElementBlock as o, withModifiers as m, createBlock as p, resolveDynamicComponent as v, mergeProps as b, toDisplayString as g, createVNode as k, Transition as w, withCtx as y, createElementVNode as h, normalizeStyle as O, renderSlot as S, vShow as x, unref as C } from "vue";
2
+ import D from "../FieldPhone/click-outside.js";
3
+ import "./Dropdown.vue.js";
4
+ import B from "../../../../_virtual/_plugin-vue_export-helper.js";
5
+ const T = {
6
+ key: 0,
7
+ class: "w-100 h-100 flex-center flex"
8
+ }, j = { key: 1 }, E = {
9
+ __name: "Dropdown",
10
+ props: {
11
+ label: {
12
+ type: [String, Object],
13
+ default: "Open"
14
+ },
15
+ align: {
16
+ type: String,
17
+ default: "left"
18
+ }
19
+ },
20
+ setup(e) {
21
+ let i = D;
22
+ const s = e, t = u(!1), r = f(() => typeof s.label == "object");
23
+ function c() {
24
+ t.value = !1;
25
+ }
26
+ return (d, n) => a((l(), o("div", {
27
+ class: "dropdown pos-relative",
28
+ onClick: n[0] || (n[0] = m((N) => t.value = !t.value, ["stop"]))
29
+ }, [
30
+ r.value ? (l(), o("div", T, [
31
+ (l(), p(v(e.label.component), b(e.label.props, {
32
+ class: e.label.class
33
+ }), null, 16, ["class"]))
34
+ ])) : (l(), o("div", j, g(e.label), 1)),
35
+ k(w, {
36
+ name: "TransitionTranslateY",
37
+ mode: "out-in"
38
+ }, {
39
+ default: y(() => [
40
+ a(h("div", {
41
+ style: O({ left: e.align === "left" ? "0" : "auto", right: e.align === "right" ? "0" : "auto" }),
42
+ class: "dropdown-content radius-big"
43
+ }, [
44
+ S(d.$slots, "default", {}, void 0, !0)
45
+ ], 4), [
46
+ [x, t.value]
47
+ ])
48
+ ]),
49
+ _: 3
50
+ })
51
+ ])), [
52
+ [C(i), c]
53
+ ]);
54
+ }
55
+ }, L = /* @__PURE__ */ B(E, [["__scopeId", "data-v-96fe1329"]]);
56
+ export {
57
+ L as default
58
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const w=require("../EmptyState/EmptyState.vue.cjs"),y=require("../Dropdown/Dropdown.vue.cjs"),M=require("../DatePicker/Calendar.vue2.cjs"),S=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),N=require("../../modules/globals/components/blocks/BlockSorting.vue.cjs"),q=require("../../modules/globals/components/elements/ButtonSort.vue.cjs"),x=require("../../modules/globals/components/elements/ButtonDate.vue.cjs");require("./Feed.vue2.cjs");const E={key:0,class:"flex-nowrap flex gap-thin mn-b-thin"},O={__name:"Feed",props:e.mergeModels({showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},{search:{},searchModifiers:{},sort:{},sortModifiers:{},date:{},dateModifiers:{},items:{},itemsModifiers:{}}),emits:["update:search","update:sort","update:date","update:items"],setup(o){const m=e.useModel(o,"search"),l=e.useModel(o,"sort"),r=e.useModel(o,"date"),p=e.useModel(o,"items"),s=o,n=e.ref(p.value||[]),i=e.ref(!1);let f=e.ref(!0),k=e.ref(null),u=e.ref(s.options.skip?s.options.skip:0),c=e.ref(s.options.limit?s.options.limit:10),g=e.ref("");function B(t){g.value=t,u.value=0,c.value=10,d()}const b=async()=>{if(i.value){u.value+=c.value;const t=await s.store.read({skip:u.value,limit:c.value,search:g.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:l.value?l.value.param:null,sortOrder:l.value?l.value.order:null,...s.options});t.length===0||t.length<c.value?i.value=!1:i.value=!0,n.value=[...n.value,...t],p.value&&(p.value=n.value)}},d=async()=>{const t=await s.store.read({skip:u.value,limit:c.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:l.value?l.value.param:null,sortOrder:l.value?l.value.order:null,search:g.value,...s.options});t.length===0||t.length<c.value?i.value=!1:i.value=!0,n.value=t,p.value&&(p.value=n.value),f.value=!1};e.watch(()=>s.external,(t,a)=>{t!==a&&(u.value=0,d())},{deep:!0}),e.watch(()=>r.value,(t,a)=>{t!==a&&(u.value=0,d())},{deep:!0}),e.watch(()=>{var t;return(t=l.value)==null?void 0:t.order},(t,a)=>{t!==a&&(u.value=0,d())},{deep:!0}),e.watch(()=>{var t;return(t=l.value)==null?void 0:t.param},(t,a)=>{t!==a&&(u.value=0,d())},{deep:!0}),e.watch(()=>s.options,(t,a)=>{(t.organization!==a.organization||t.categories!==a.categories||t.prices!==a.prices||t.delivery!==a.delivery||t.search!==a.search||t.status!==a.status||t.hidden!==a.hidden||t.type!==a.type||t.tags!==a.tags)&&(u.value=0,d())},{deep:!0});let h=null;return e.onMounted(async()=>{await d(),typeof window<"u"&&!s.showLoadMore&&(h=new IntersectionObserver(t=>{t.some(a=>a.isIntersecting)&&b()}),h.observe(k.value))}),e.onUnmounted(()=>{h&&h.disconnect()}),(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.value||r.value||l.value?(e.openBlock(),e.createElementBlock("div",E,[m.value?(e.openBlock(),e.createBlock(S.default,{key:0,placeholder:m.value.placeholder||"Search...",class:e.normalizeClass(m.value.class||"bg-light"),onSearch:B},null,8,["placeholder","class"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(y.default,{key:1,label:{component:x.default,props:{date:r.value}},class:e.normalizeClass([r.value.class||"bg-light","flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(M.default,{date:r.value,"onUpdate:date":a[0]||(a[0]=v=>r.value=v),locale:t.$i18n.locale,allowRange:!0,class:"radius-semi w-100 o-hidden bg-light"},null,8,["date","locale"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(y.default,{key:2,label:{component:q.default,props:{order:l.value.order},class:"w-1r"},class:e.normalizeClass([l.value.class||"bg-light","radius-extra aspect-1x1 h-100"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(N.default,{param:l.value.param,"onUpdate:param":a[1]||(a[1]=v=>l.value.param=v),order:l.value.order,"onUpdate:order":a[2]||(a[2]=v=>l.value.order=v),options:l.value.options,class:"h-100 pd-small radius-semi t-white bg-black"},null,8,["param","order","options"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition",class:e.normalizeClass(["o-hidden bg-light radius-big",t.$attrs.class])},{default:e.withCtx(()=>[e.unref(f)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(c),v=>(e.openBlock(),e.createBlock(C.default,{key:"skeleton-"+v}))),128)):e.createCommentVNode("",!0)]),_:1},8,["class"])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(f)&&n.value.length<1?(e.openBlock(),e.createBlock(w.default,{key:0,title:o.states.empty.title,description:o.states.empty.description,action:o.states.empty.action,callback:o.states.empty.callback,class:"pd-medium mn-b-thin bg-light radius-big"},null,8,["title","description","action","callback"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"feed",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(f)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value}):e.createCommentVNode("",!0),o.showLoadMore&&i.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:b,class:"col-w-100 w-100 bg-main button"}," Load More ")):e.createCommentVNode("",!0),e.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:k,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}};exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const M=require("../EmptyState/EmptyState.vue.cjs"),B=require("../Dropdown/Dropdown.vue2.cjs"),N=require("../DatePicker/Calendar.vue2.cjs"),S=require("../BottomSheet/BottomSheet.vue.cjs"),x=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),q=require("../../modules/globals/components/blocks/BlockSorting.vue.cjs"),E=require("../../modules/globals/components/blocks/BlockFilter.vue.cjs"),z=require("../../modules/globals/components/elements/ButtonSort.vue.cjs"),O=require("../../modules/globals/components/elements/ButtonDate.vue.cjs"),L=require("../../modules/icons/navigation/IconFilter.vue.cjs");require("./Feed.vue2.cjs");const F={key:0,class:"flex-nowrap flex gap-thin mn-b-thin"},T={class:"flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100"},j={__name:"Feed",props:e.mergeModels({showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},{search:{},searchModifiers:{},sort:{},sortModifiers:{},filter:{},filterModifiers:{},date:{},dateModifiers:{},items:{},itemsModifiers:{}}),emits:["update:search","update:sort","update:filter","update:date","update:items"],setup(o){const f=e.useModel(o,"search"),l=e.useModel(o,"sort"),s=e.useModel(o,"filter"),r=e.useModel(o,"date"),p=e.useModel(o,"items"),u=o,n=e.ref(p.value||[]),d=e.ref(!1);let h=e.ref(!0),b=e.ref(null),i=e.ref(u.options.skip?u.options.skip:0),v=e.ref(u.options.limit?u.options.limit:10),k=e.ref("");function C(t){k.value=t,i.value=0,v.value=10,m()}const y=async()=>{if(d.value){i.value+=v.value;const t=await u.store.read({skip:i.value,limit:v.value,search:k.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:l.value?l.value.param:null,sortOrder:l.value?l.value.order:null,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=[...n.value,...t],p.value&&(p.value=n.value)}},m=async()=>{const t=await u.store.read({skip:i.value,limit:v.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:l.value?l.value.param:null,sortOrder:l.value?l.value.order:null,search:k.value,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=t,p.value&&(p.value=n.value),h.value=!1};e.watch(()=>u.external,(t,a)=>{t!==a&&(i.value=0,m())},{deep:!0}),e.watch(()=>r.value,(t,a)=>{t!==a&&(i.value=0,m())},{deep:!0}),e.watch(()=>{var t;return(t=l.value)==null?void 0:t.order},(t,a)=>{t!==a&&(i.value=0,m())},{deep:!0}),e.watch(()=>{var t;return(t=l.value)==null?void 0:t.param},(t,a)=>{t!==a&&(i.value=0,m())},{deep:!0}),e.watch(()=>u.options,(t,a)=>{(t.organization!==a.organization||t.categories!==a.categories||t.prices!==a.prices||t.delivery!==a.delivery||t.search!==a.search||t.status!==a.status||t.hidden!==a.hidden||t.type!==a.type||t.tags!==a.tags)&&(i.value=0,m())},{deep:!0});let g=null;return e.onMounted(async()=>{await m(),typeof window<"u"&&!u.showLoadMore&&(g=new IntersectionObserver(t=>{t.some(a=>a.isIntersecting)&&y()}),g.observe(b.value))}),e.onUnmounted(()=>{g&&g.disconnect()}),(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f.value||r.value||l.value?(e.openBlock(),e.createElementBlock("div",F,[f.value?(e.openBlock(),e.createBlock(x.default,{key:0,placeholder:f.value.placeholder||"Search...",class:e.normalizeClass(f.value.class||"bg-light"),onSearch:C},null,8,["placeholder","class"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",T,[e.createVNode(L.default,{onClick:a[0]||(a[0]=()=>s.value.active=!s.value.active),class:"w-1r h-auto"})]),s.value.active?(e.openBlock(),e.createBlock(S.default,{key:0,show:s.value.active,onToggle:a[2]||(a[2]=()=>s.value.active=!1),class:e.normalizeClass(["z-index-10 pos-fixed pos-t-0 pos-r-0",{"pos-t-0":s.value.active,"pos-t-100":!s.value.active}])},{default:e.withCtx(()=>[e.createVNode(E.default,{filter:s.value,"onUpdate:filter":a[1]||(a[1]=c=>s.value=c),options:s.value.options,class:"h-100 w-100 pd-small bg-light"},null,8,["filter","options"])]),_:1},8,["show","class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(B.default,{key:2,label:{component:O.default,props:{date:r.value}},class:e.normalizeClass([r.value.class||"bg-light","flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),align:f.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(N.default,{date:r.value,"onUpdate:date":a[3]||(a[3]=c=>r.value=c),locale:t.$i18n.locale,allowRange:!0,class:"radius-semi w-100 o-hidden bg-light"},null,8,["date","locale"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(B.default,{key:3,label:{component:z.default,props:{order:l.value.order},class:"w-1r"},class:e.normalizeClass([l.value.class||"bg-light","radius-extra aspect-1x1 h-100"]),align:f.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(q.default,{param:l.value.param,"onUpdate:param":a[4]||(a[4]=c=>l.value.param=c),order:l.value.order,"onUpdate:order":a[5]||(a[5]=c=>l.value.order=c),options:l.value.options,class:"h-100 pd-small radius-semi t-white bg-black"},null,8,["param","order","options"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition",class:e.normalizeClass(["o-hidden bg-light radius-big",t.$attrs.class])},{default:e.withCtx(()=>[e.unref(h)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(v),c=>(e.openBlock(),e.createBlock(w.default,{key:"skeleton-"+c}))),128)):e.createCommentVNode("",!0)]),_:1},8,["class"])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(h)&&n.value.length<1?(e.openBlock(),e.createBlock(M.default,{key:0,title:o.states.empty.title,description:o.states.empty.description,action:o.states.empty.action,callback:o.states.empty.callback,class:"pd-medium mn-b-thin bg-light radius-big"},null,8,["title","description","action","callback"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"feed",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(h)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value}):e.createCommentVNode("",!0),o.showLoadMore&&d.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y,class:"col-w-100 w-100 bg-main button"}," Load More ")):e.createCommentVNode("",!0),e.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:b,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}};exports.default=j;
@@ -1,20 +1,23 @@
1
- import { mergeModels as U, useModel as $, ref as p, watch as y, onMounted as z, onUnmounted as F, openBlock as i, createElementBlock as L, Fragment as C, createBlock as h, normalizeClass as k, createCommentVNode as o, withCtx as M, createVNode as O, unref as w, TransitionGroup as E, renderList as N, Transition as P, renderSlot as D, createElementVNode as G } from "vue";
2
- import R from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
1
+ import { mergeModels as F, useModel as x, ref as f, watch as $, onMounted as N, onUnmounted as P, openBlock as s, createElementBlock as S, Fragment as C, createBlock as g, normalizeClass as b, createCommentVNode as u, createElementVNode as I, createVNode as y, withCtx as k, unref as L, TransitionGroup as T, renderList as D, Transition as G, renderSlot as R } from "vue";
2
+ import q from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
3
3
  import "../Loader/Loader.vue.js";
4
- import q from "../EmptyState/EmptyState.vue.js";
5
- import I from "../Dropdown/Dropdown.vue.js";
6
- import A from "../DatePicker/Calendar.vue2.js";
7
- import H from "../../modules/globals/components/blocks/BlockSearch.vue.js";
8
- import J from "../../modules/globals/components/blocks/BlockSorting.vue.js";
9
- import K from "../../modules/globals/components/elements/ButtonSort.vue.js";
10
- import Q from "../../modules/globals/components/elements/ButtonDate.vue.js";
4
+ import A from "../EmptyState/EmptyState.vue.js";
5
+ import U from "../Dropdown/Dropdown.vue2.js";
6
+ import H from "../DatePicker/Calendar.vue2.js";
7
+ import J from "../BottomSheet/BottomSheet.vue.js";
8
+ import K from "../../modules/globals/components/blocks/BlockSearch.vue.js";
9
+ import Q from "../../modules/globals/components/blocks/BlockSorting.vue.js";
10
+ import W from "../../modules/globals/components/blocks/BlockFilter.vue.js";
11
+ import X from "../../modules/globals/components/elements/ButtonSort.vue.js";
12
+ import Y from "../../modules/globals/components/elements/ButtonDate.vue.js";
13
+ import Z from "../../modules/icons/navigation/IconFilter.vue.js";
11
14
  import "./Feed.vue2.js";
12
- const W = {
15
+ const _ = {
13
16
  key: 0,
14
17
  class: "flex-nowrap flex gap-thin mn-b-thin"
15
- }, ie = {
18
+ }, V = { class: "flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100" }, pe = {
16
19
  __name: "Feed",
17
- props: /* @__PURE__ */ U({
20
+ props: /* @__PURE__ */ F({
18
21
  showLoadMore: {
19
22
  type: Boolean,
20
23
  default: !0
@@ -62,166 +65,195 @@ const W = {
62
65
  searchModifiers: {},
63
66
  sort: {},
64
67
  sortModifiers: {},
68
+ filter: {},
69
+ filterModifiers: {},
65
70
  date: {},
66
71
  dateModifiers: {},
67
72
  items: {},
68
73
  itemsModifiers: {}
69
74
  }),
70
- emits: ["update:search", "update:sort", "update:date", "update:items"],
75
+ emits: ["update:search", "update:sort", "update:filter", "update:date", "update:items"],
71
76
  setup(r) {
72
- const f = $(r, "search"), t = $(r, "sort"), l = $(r, "date"), g = $(r, "items"), s = r, u = p(g.value || []), d = p(!1);
73
- let b = p(!0), B = p(null), n = p(s.options.skip ? s.options.skip : 0), c = p(s.options.limit ? s.options.limit : 10), x = p("");
74
- function T(e) {
75
- x.value = e, n.value = 0, c.value = 10, v();
77
+ const h = x(r, "search"), a = x(r, "sort"), i = x(r, "filter"), l = x(r, "date"), w = x(r, "items"), o = r, n = f(w.value || []), v = f(!1);
78
+ let M = f(!0), j = f(null), d = f(o.options.skip ? o.options.skip : 0), m = f(o.options.limit ? o.options.limit : 10), B = f("");
79
+ function z(e) {
80
+ B.value = e, d.value = 0, m.value = 10, p();
76
81
  }
77
- const j = async () => {
78
- if (d.value) {
79
- n.value += c.value;
80
- const e = await s.store.read({
81
- skip: n.value,
82
- limit: c.value,
83
- search: x.value,
82
+ const E = async () => {
83
+ if (v.value) {
84
+ d.value += m.value;
85
+ const e = await o.store.read({
86
+ skip: d.value,
87
+ limit: m.value,
88
+ search: B.value,
84
89
  dateStart: l.value ? l.value.start : null,
85
90
  dateEnd: l.value ? l.value.end : null,
86
- sortParam: t.value ? t.value.param : null,
87
- sortOrder: t.value ? t.value.order : null,
88
- ...s.options
91
+ sortParam: a.value ? a.value.param : null,
92
+ sortOrder: a.value ? a.value.order : null,
93
+ ...o.options
89
94
  });
90
- e.length === 0 || e.length < c.value ? d.value = !1 : d.value = !0, u.value = [...u.value, ...e], g.value && (g.value = u.value);
95
+ e.length === 0 || e.length < m.value ? v.value = !1 : v.value = !0, n.value = [...n.value, ...e], w.value && (w.value = n.value);
91
96
  }
92
- }, v = async () => {
93
- const e = await s.store.read({
94
- skip: n.value,
95
- limit: c.value,
97
+ }, p = async () => {
98
+ const e = await o.store.read({
99
+ skip: d.value,
100
+ limit: m.value,
96
101
  dateStart: l.value ? l.value.start : null,
97
102
  dateEnd: l.value ? l.value.end : null,
98
- sortParam: t.value ? t.value.param : null,
99
- sortOrder: t.value ? t.value.order : null,
100
- search: x.value,
101
- ...s.options
103
+ sortParam: a.value ? a.value.param : null,
104
+ sortOrder: a.value ? a.value.order : null,
105
+ search: B.value,
106
+ ...o.options
102
107
  });
103
- e.length === 0 || e.length < c.value ? d.value = !1 : d.value = !0, u.value = e, g.value && (g.value = u.value), b.value = !1;
108
+ e.length === 0 || e.length < m.value ? v.value = !1 : v.value = !0, n.value = e, w.value && (w.value = n.value), M.value = !1;
104
109
  };
105
- y(() => s.external, (e, a) => {
106
- e !== a && (n.value = 0, v());
107
- }, { deep: !0 }), y(() => l.value, (e, a) => {
108
- e !== a && (n.value = 0, v());
109
- }, { deep: !0 }), y(() => {
110
+ $(() => o.external, (e, t) => {
111
+ e !== t && (d.value = 0, p());
112
+ }, { deep: !0 }), $(() => l.value, (e, t) => {
113
+ e !== t && (d.value = 0, p());
114
+ }, { deep: !0 }), $(() => {
110
115
  var e;
111
- return (e = t.value) == null ? void 0 : e.order;
112
- }, (e, a) => {
113
- e !== a && (n.value = 0, v());
114
- }, { deep: !0 }), y(() => {
116
+ return (e = a.value) == null ? void 0 : e.order;
117
+ }, (e, t) => {
118
+ e !== t && (d.value = 0, p());
119
+ }, { deep: !0 }), $(() => {
115
120
  var e;
116
- return (e = t.value) == null ? void 0 : e.param;
117
- }, (e, a) => {
118
- e !== a && (n.value = 0, v());
119
- }, { deep: !0 }), y(() => s.options, (e, a) => {
120
- (e.organization !== a.organization || e.categories !== a.categories || e.prices !== a.prices || e.delivery !== a.delivery || e.search !== a.search || e.status !== a.status || e.hidden !== a.hidden || e.type !== a.type || e.tags !== a.tags) && (n.value = 0, v());
121
+ return (e = a.value) == null ? void 0 : e.param;
122
+ }, (e, t) => {
123
+ e !== t && (d.value = 0, p());
124
+ }, { deep: !0 }), $(() => o.options, (e, t) => {
125
+ (e.organization !== t.organization || e.categories !== t.categories || e.prices !== t.prices || e.delivery !== t.delivery || e.search !== t.search || e.status !== t.status || e.hidden !== t.hidden || e.type !== t.type || e.tags !== t.tags) && (d.value = 0, p());
121
126
  }, { deep: !0 });
122
- let S = null;
123
- return z(async () => {
124
- await v(), typeof window < "u" && !s.showLoadMore && (S = new IntersectionObserver((e) => {
125
- e.some((a) => a.isIntersecting) && j();
126
- }), S.observe(B.value));
127
- }), F(() => {
128
- S && S.disconnect();
129
- }), (e, a) => (i(), L(C, null, [
130
- f.value || l.value || t.value ? (i(), L("div", W, [
131
- f.value ? (i(), h(H, {
127
+ let O = null;
128
+ return N(async () => {
129
+ await p(), typeof window < "u" && !o.showLoadMore && (O = new IntersectionObserver((e) => {
130
+ e.some((t) => t.isIntersecting) && E();
131
+ }), O.observe(j.value));
132
+ }), P(() => {
133
+ O && O.disconnect();
134
+ }), (e, t) => (s(), S(C, null, [
135
+ h.value || l.value || a.value ? (s(), S("div", _, [
136
+ h.value ? (s(), g(K, {
132
137
  key: 0,
133
- placeholder: f.value.placeholder || "Search...",
134
- class: k(f.value.class || "bg-light"),
135
- onSearch: T
136
- }, null, 8, ["placeholder", "class"])) : o("", !0),
137
- l.value ? (i(), h(I, {
138
- key: 1,
138
+ placeholder: h.value.placeholder || "Search...",
139
+ class: b(h.value.class || "bg-light"),
140
+ onSearch: z
141
+ }, null, 8, ["placeholder", "class"])) : u("", !0),
142
+ i.value ? (s(), S(C, { key: 1 }, [
143
+ I("div", V, [
144
+ y(Z, {
145
+ onClick: t[0] || (t[0] = () => i.value.active = !i.value.active),
146
+ class: "w-1r h-auto"
147
+ })
148
+ ]),
149
+ i.value.active ? (s(), g(J, {
150
+ key: 0,
151
+ show: i.value.active,
152
+ onToggle: t[2] || (t[2] = () => i.value.active = !1),
153
+ class: b(["z-index-10 pos-fixed pos-t-0 pos-r-0", {
154
+ "pos-t-0": i.value.active,
155
+ "pos-t-100": !i.value.active
156
+ }])
157
+ }, {
158
+ default: k(() => [
159
+ y(W, {
160
+ filter: i.value,
161
+ "onUpdate:filter": t[1] || (t[1] = (c) => i.value = c),
162
+ options: i.value.options,
163
+ class: "h-100 w-100 pd-small bg-light"
164
+ }, null, 8, ["filter", "options"])
165
+ ]),
166
+ _: 1
167
+ }, 8, ["show", "class"])) : u("", !0)
168
+ ], 64)) : u("", !0),
169
+ l.value ? (s(), g(U, {
170
+ key: 2,
139
171
  label: {
140
- component: Q,
172
+ component: Y,
141
173
  props: { date: l.value }
142
174
  },
143
- class: k([l.value.class || "bg-light", "flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),
144
- align: f.value ? "right" : "left"
175
+ class: b([l.value.class || "bg-light", "flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),
176
+ align: h.value ? "right" : "left"
145
177
  }, {
146
- default: M(() => [
147
- O(A, {
178
+ default: k(() => [
179
+ y(H, {
148
180
  date: l.value,
149
- "onUpdate:date": a[0] || (a[0] = (m) => l.value = m),
181
+ "onUpdate:date": t[3] || (t[3] = (c) => l.value = c),
150
182
  locale: e.$i18n.locale,
151
183
  allowRange: !0,
152
184
  class: "radius-semi w-100 o-hidden bg-light"
153
185
  }, null, 8, ["date", "locale"])
154
186
  ]),
155
187
  _: 1
156
- }, 8, ["label", "class", "align"])) : o("", !0),
157
- t.value ? (i(), h(I, {
158
- key: 2,
188
+ }, 8, ["label", "class", "align"])) : u("", !0),
189
+ a.value ? (s(), g(U, {
190
+ key: 3,
159
191
  label: {
160
- component: K,
161
- props: { order: t.value.order },
192
+ component: X,
193
+ props: { order: a.value.order },
162
194
  class: "w-1r"
163
195
  },
164
- class: k([t.value.class || "bg-light", "radius-extra aspect-1x1 h-100"]),
165
- align: f.value ? "right" : "left"
196
+ class: b([a.value.class || "bg-light", "radius-extra aspect-1x1 h-100"]),
197
+ align: h.value ? "right" : "left"
166
198
  }, {
167
- default: M(() => [
168
- O(J, {
169
- param: t.value.param,
170
- "onUpdate:param": a[1] || (a[1] = (m) => t.value.param = m),
171
- order: t.value.order,
172
- "onUpdate:order": a[2] || (a[2] = (m) => t.value.order = m),
173
- options: t.value.options,
199
+ default: k(() => [
200
+ y(Q, {
201
+ param: a.value.param,
202
+ "onUpdate:param": t[4] || (t[4] = (c) => a.value.param = c),
203
+ order: a.value.order,
204
+ "onUpdate:order": t[5] || (t[5] = (c) => a.value.order = c),
205
+ options: a.value.options,
174
206
  class: "h-100 pd-small radius-semi t-white bg-black"
175
207
  }, null, 8, ["param", "order", "options"])
176
208
  ]),
177
209
  _: 1
178
- }, 8, ["label", "class", "align"])) : o("", !0)
179
- ])) : o("", !0),
180
- w(b) ? (i(), h(E, {
210
+ }, 8, ["label", "class", "align"])) : u("", !0)
211
+ ])) : u("", !0),
212
+ L(M) ? (s(), g(T, {
181
213
  key: 1,
182
214
  tag: "ul",
183
215
  name: "scaleTransition",
184
- class: k(["o-hidden bg-light radius-big", e.$attrs.class])
216
+ class: b(["o-hidden bg-light radius-big", e.$attrs.class])
185
217
  }, {
186
- default: M(() => [
187
- w(b) ? (i(!0), L(C, { key: 0 }, N(w(c), (m) => (i(), h(R, {
188
- key: "skeleton-" + m
189
- }))), 128)) : o("", !0)
218
+ default: k(() => [
219
+ L(M) ? (s(!0), S(C, { key: 0 }, D(L(m), (c) => (s(), g(q, {
220
+ key: "skeleton-" + c
221
+ }))), 128)) : u("", !0)
190
222
  ]),
191
223
  _: 1
192
- }, 8, ["class"])) : o("", !0),
193
- O(P, { name: "scaleTransition" }, {
194
- default: M(() => [
195
- !w(b) && u.value.length < 1 ? (i(), h(q, {
224
+ }, 8, ["class"])) : u("", !0),
225
+ y(G, { name: "scaleTransition" }, {
226
+ default: k(() => [
227
+ !L(M) && n.value.length < 1 ? (s(), g(A, {
196
228
  key: 0,
197
229
  title: r.states.empty.title,
198
230
  description: r.states.empty.description,
199
231
  action: r.states.empty.action,
200
232
  callback: r.states.empty.callback,
201
233
  class: "pd-medium mn-b-thin bg-light radius-big"
202
- }, null, 8, ["title", "description", "action", "callback"])) : o("", !0)
234
+ }, null, 8, ["title", "description", "action", "callback"])) : u("", !0)
203
235
  ]),
204
236
  _: 1
205
237
  }),
206
- O(E, {
238
+ y(T, {
207
239
  tag: "ul",
208
240
  name: "feed",
209
- class: k(e.$attrs.class)
241
+ class: b(e.$attrs.class)
210
242
  }, {
211
- default: M(() => [
212
- !w(b) && u.value.length > 0 ? D(e.$slots, "default", {
243
+ default: k(() => [
244
+ !L(M) && n.value.length > 0 ? R(e.$slots, "default", {
213
245
  key: 0,
214
- items: u.value
215
- }) : o("", !0),
216
- r.showLoadMore && d.value && u.value.length > 0 ? (i(), L("button", {
246
+ items: n.value
247
+ }) : u("", !0),
248
+ r.showLoadMore && v.value && n.value.length > 0 ? (s(), S("button", {
217
249
  key: 1,
218
- onClick: j,
250
+ onClick: E,
219
251
  class: "col-w-100 w-100 bg-main button"
220
- }, " Load More ")) : o("", !0),
221
- G("div", {
252
+ }, " Load More ")) : u("", !0),
253
+ I("div", {
222
254
  key: "sentinel",
223
255
  ref_key: "sentinel",
224
- ref: B,
256
+ ref: j,
225
257
  class: "sentinel"
226
258
  }, null, 512)
227
259
  ]),
@@ -231,5 +263,5 @@ const W = {
231
263
  }
232
264
  };
233
265
  export {
234
- ie as default
266
+ pe as default
235
267
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.vue2.cjs"),B=require("vue-i18n"),S={class:"pd-thin radius-extra flex-nowrap flex"},w=["innerHTML"],_={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["Lowest THC, please!","Something with banana flavors?","I'm in the mood for trippy vibes."],ru:["Я хочу самый низкий THC","Я хочу чего-нибудь бананового","Я хочу курнуть хейза"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(s,{emit:y}){const t=s,{t:F,locale:c}=B.useI18n();let r=e.ref(0),n=e.ref(t.input),p=e.ref(t.placeholder),i=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),v=null;const g=y;function b(){g("action")}function T(a){g("update:input",a),f.value=a}function m(){r.value=(r.value+1)%t.placeholderTexts[c.value].length}function I(){i.value=!1,clearInterval(d.value),p.value=t.placeholder,f.value||(n.value="")}function x(){!f.value&&t.enableTyping&&(i.value=!0,p.value="",h())}function h(){let a=t.placeholderTexts[c.value][r.value],l=0,u=!1;v=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{i.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,m(),a=t.placeholderTexts[c.value][r.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&h()}),e.watchEffect(()=>{i.value||(clearInterval(d.value),clearInterval(v))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(k.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),T],placeholder:e.unref(i)?" ":e.unref(p),onInput:m,onFocus:I,onBlur:x,class:"w-100 p-medium t-regular uppercase pd-small"},null,8,["field","placeholder"]),s.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main",innerHTML:s.action},null,8,w)):e.createCommentVNode("",!0)]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.vue2.cjs"),B=require("vue-i18n"),w={class:"pd-thin radius-extra flex-nowrap flex"},S=["innerHTML"],_={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["Lowest THC, please!","Something with banana flavors?","I'm in the mood for trippy vibes."],ru:["Я хочу самый низкий THC","Я хочу чего-нибудь бананового","Я хочу курнуть хейза"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(s,{emit:y}){const t=s,{t:F,locale:c}=B.useI18n();let r=e.ref(0),n=e.ref(t.input),p=e.ref(t.placeholder),i=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),v=null;const g=y;function b(){g("action")}function T(a){g("update:input",a),f.value=a}function m(){r.value=(r.value+1)%t.placeholderTexts[c.value].length}function I(){i.value=!1,clearInterval(d.value),p.value=t.placeholder,f.value||(n.value="")}function x(){!f.value&&t.enableTyping&&(i.value=!0,p.value="",h())}function h(){let a=t.placeholderTexts[c.value][r.value],l=0,u=!1;v=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{i.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,m(),a=t.placeholderTexts[c.value][r.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&h()}),e.watchEffect(()=>{i.value||(clearInterval(d.value),clearInterval(v))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(k.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),T],placeholder:e.unref(i)?" ":e.unref(p),onInput:m,onFocus:I,onBlur:x,class:"w-100 p-medium t-regular uppercase pd-small"},null,8,["field","placeholder"]),s.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"t-nowrap t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main",innerHTML:s.action},null,8,S)):e.createCommentVNode("",!0)]))}};exports.default=_;
@@ -48,13 +48,13 @@ const N = { class: "pd-thin radius-extra flex-nowrap flex" }, V = ["innerHTML"],
48
48
  function x() {
49
49
  g("action");
50
50
  }
51
- function k(a) {
51
+ function w(a) {
52
52
  g("update:input", a), f.value = a;
53
53
  }
54
54
  function h() {
55
55
  o.value = (o.value + 1) % l.placeholderTexts[s.value].length;
56
56
  }
57
- function w() {
57
+ function k() {
58
58
  u.value = !1, clearInterval(d.value), c.value = l.placeholder, f.value || (t.value = "");
59
59
  }
60
60
  function B() {
@@ -79,18 +79,18 @@ const N = { class: "pd-thin radius-extra flex-nowrap flex" }, V = ["innerHTML"],
79
79
  field: v(t),
80
80
  "onUpdate:field": [
81
81
  e[0] || (e[0] = (n) => H(t) ? t.value = n : t = n),
82
- k
82
+ w
83
83
  ],
84
84
  placeholder: v(u) ? " " : v(c),
85
85
  onInput: h,
86
- onFocus: w,
86
+ onFocus: k,
87
87
  onBlur: B,
88
88
  class: "w-100 p-medium t-regular uppercase pd-small"
89
89
  }, null, 8, ["field", "placeholder"]),
90
90
  p.action ? (T(), b("button", {
91
91
  key: 0,
92
92
  onClick: x,
93
- class: "t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main",
93
+ class: "t-nowrap t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main",
94
94
  innerHTML: p.action
95
95
  }, null, 8, V)) : _("", !0)
96
96
  ]));
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs"),w=require("../Loader/Loader.vue2.cjs");require("./LocationMarker.vue2.cjs");const L=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_=s=>(e.pushScopeId("data-v-7af36552"),s=s(),e.popScopeId(),s),k={class:"pos-relative"},b={key:0,class:"i-regular",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M=_(()=>e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"rgb(var(--white))"},null,-1)),E=_(()=>e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"rgb(var(--white))"},null,-1)),V=[M,E],x={__name:"LocationMarker",props:{location:{type:Object,default:()=>({lat:15.87,lng:100.9925})},address:{type:String,default:null},apiKey:String,locale:{type:String,default:"en"}},emits:["update:location","update:address","update:country","update:state","update:city"],setup(s,{emit:y}){const o=s,n=y,u=e.ref(null),c=e.ref(!1);let i,d;e.onMounted(()=>{new v.Loader({apiKey:o.apiKey,version:"weekly",libraries:["places"],language:o.locale}).load().then(()=>{i=new google.maps.Map(u.value,{center:o.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1,disableDefaultUI:!0}),d=new google.maps.Marker({position:o.location,map:i,draggable:!0}),d.addListener("dragend",t=>{const l={lat:t.latLng.lat(),lng:t.latLng.lng()};n("update:location",l),p(l)})}).catch(t=>{console.error(t)})}),e.watchEffect(()=>{o.location&&d&&d.setPosition(new google.maps.LatLng(o.location.lat,o.location.lng))}),e.watchEffect(()=>{if(o.location&&i){const a=new google.maps.LatLng(o.location.lat,o.location.lng);i.setCenter(a),i.setZoom(15)}});function p(a){new google.maps.Geocoder().geocode({location:a},(l,g)=>{if(g==="OK")if(l[0]){n("update:address",l[0].formatted_address);let f="",m="",C="";l[0].address_components.forEach(r=>{r.types.includes("country")&&(f=r.long_name),r.types.includes("administrative_area_level_1")&&(m=r.long_name),r.types.includes("locality")&&(C=r.long_name)}),n("update:country",f),n("update:state",m),n("update:city",C)}else console.error("No results found");else console.error("Geocoder failed due to: "+g)})}async function h(){c.value=!0,navigator.geolocation?navigator.geolocation.getCurrentPosition(a=>{const t={lat:a.coords.latitude,lng:a.coords.longitude};n("update:location",t),p(t),c.value=!1},()=>{console.error("Error getting location"),c.value=!1}):(console.error("Geolocation is not supported by this browser."),c.value=!1)}return(a,t)=>(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",{ref_key:"mapContainer",ref:u,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra",onClick:h},[e.createVNode(e.Transition,{name:"ScaleOut",mode:"out-in"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(w.default,{key:1,class:"pos-t-0 pos-l-0 i-small"})):(e.openBlock(),e.createElementBlock("svg",b,V))]),_:1})])]))}},S=L.default(x,[["__scopeId","data-v-7af36552"]]);exports.default=S;