@ozdao/prometheus-framework 0.2.44 → 0.2.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (422) hide show
  1. package/dist/main-AMWMdo3t.js +91 -0
  2. package/dist/main-R6dlNKp-.mjs +13606 -0
  3. package/dist/main.css +1 -1
  4. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  5. package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
  6. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  7. package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
  8. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  9. package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
  10. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  11. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
  12. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
  13. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  14. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
  15. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
  16. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
  17. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  18. package/dist/node_modules/ethereum-cryptography/esm/utils.js +3 -4
  19. package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
  20. package/dist/node_modules/vue3-carousel/dist/carousel.css.js +1 -4
  21. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  22. package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
  23. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
  24. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
  25. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  26. package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
  27. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
  28. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
  29. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  30. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
  31. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
  32. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
  33. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
  34. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
  35. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  36. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
  37. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  38. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
  39. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  40. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
  41. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  42. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
  43. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  44. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
  45. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
  46. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
  47. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  48. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
  49. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  50. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
  51. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
  52. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
  53. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  54. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
  55. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  56. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
  57. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  58. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
  59. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  60. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
  61. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  62. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
  63. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
  64. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
  65. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  66. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
  67. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  68. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
  69. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  70. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
  71. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  72. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
  73. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
  74. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
  75. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
  76. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
  77. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  78. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
  79. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  80. package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
  81. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
  82. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
  83. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
  84. package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
  85. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
  86. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
  87. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
  88. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
  89. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
  90. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
  91. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
  92. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
  93. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
  94. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
  95. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
  96. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
  97. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  98. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
  99. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
  100. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
  101. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
  102. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
  103. package/dist/products.server.js +875 -0
  104. package/dist/products.server.mjs +875 -0
  105. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/components/Address/Address.vue.js +1 -4
  107. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
  109. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -4
  111. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
  113. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  114. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -63
  115. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  116. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
  117. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  118. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
  119. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  120. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
  121. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
  123. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -4
  125. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +18 -18
  127. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  129. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +1 -4
  131. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
  133. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
  135. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
  137. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
  139. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  140. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +1 -4
  141. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
  145. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
  147. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/Map/Map.vue.js +1 -4
  149. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  151. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
  153. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  155. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
  157. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
  159. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
  161. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
  163. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
  165. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  167. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +1 -4
  169. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  171. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
  175. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +1 -4
  177. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +1 -4
  179. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +1 -4
  181. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +1 -4
  183. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +1 -4
  185. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
  187. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  189. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  191. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +1 -4
  193. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  195. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +1 -4
  197. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  199. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  201. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +1 -4
  203. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +1 -4
  205. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  207. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  209. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
  211. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  213. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  214. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
  215. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  216. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  217. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
  221. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  223. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
  225. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +1 -4
  227. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  229. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +1 -4
  231. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +1 -4
  233. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +1 -4
  235. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  237. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  239. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +1 -4
  243. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +1 -4
  247. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  249. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
  251. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +1 -4
  253. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
  255. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -4
  257. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -4
  259. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  261. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +1 -4
  263. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  265. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  267. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +1 -4
  269. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  271. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +1 -4
  275. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +1 -4
  277. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +1 -4
  279. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +1 -4
  281. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  283. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +1 -4
  285. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +1 -4
  287. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  289. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  291. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +1 -4
  293. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  295. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  297. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +1 -4
  299. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +1 -4
  301. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +1 -4
  303. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  305. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  307. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  309. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  311. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +1 -4
  313. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +1 -4
  315. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +14 -14
  317. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +14 -14
  319. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.cjs +1 -0
  320. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.js +43 -0
  321. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -0
  322. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +1 -0
  323. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +1 -4
  325. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  327. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +1 -4
  329. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  331. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
  333. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +39 -2
  335. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -0
  336. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +1 -0
  337. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +1 -4
  339. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +1 -4
  341. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  343. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +1 -4
  345. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +1 -4
  347. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -21
  349. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +1 -4
  351. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +90 -80
  353. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  354. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +1 -4
  355. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -0
  356. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +87 -0
  357. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -0
  358. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +1 -0
  359. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +7 -6
  361. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -0
  362. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +138 -0
  363. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  365. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  367. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +1 -4
  369. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -0
  370. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +114 -0
  371. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -0
  372. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +1 -0
  373. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +1 -4
  375. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +51 -62
  377. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -0
  378. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +53 -0
  379. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -0
  380. package/dist/prometheus-framework/src/modules/products/products.client.js +56 -0
  381. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  383. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  384. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  385. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  386. package/dist/prometheus-framework/src/modules/products/store/products.js +3 -1
  387. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  388. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  389. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  391. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +1 -4
  393. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  395. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  396. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
  397. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  398. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +1 -4
  399. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  401. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  403. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
  404. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
  405. package/dist/prometheus-framework.cjs.js +1 -1
  406. package/dist/prometheus-framework.es.js +1 -1
  407. package/dist/style.css +1 -1
  408. package/dist/web-HvAJWryM.js +1 -0
  409. package/dist/web-XMv5d7hK.mjs +55 -0
  410. package/package.json +1 -1
  411. package/src/components/Feed/Feed.vue +9 -7
  412. package/src/modules/products/components/blocks/CardPosition.vue +1 -1
  413. package/src/modules/products/components/blocks/CardProduct.vue +2 -3
  414. package/src/modules/products/components/pages/Product.vue +1 -1
  415. package/src/modules/products/components/pages/ProductEdit.vue +15 -0
  416. package/src/modules/products/components/pages/ProductRecommmendation.vue +2 -2
  417. package/src/modules/products/components/pages/Products.vue +1 -0
  418. package/src/modules/products/components/sections/SectionProduct.vue +10 -10
  419. package/src/modules/products/products.client.js +76 -20
  420. package/src/modules/products/products.server.js +8 -4
  421. package/src/modules/products/router/products.router.js +4 -2
  422. package/src/styles/base/all.scss +4 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Button/Button.vue.cjs");const r=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Select/Select.vue2.cjs"),i={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,l)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(u.default,{select:e.product.status,"onUpdate:select":l[0]||(l[0]=t=>e.product.status=t),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":l[1]||(l[1]=t=>e.product.name=t),label:"Name",placeholder:"Введите название",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":l[3]||(l[3]=t=>e.product.price=t),label:"Price",placeholder:"Введите цену",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(u.default,{select:e.product.price.currency,"onUpdate:select":l[2]||(l[2]=t=>e.product.price.currency=t),placeholder:"฿",options:["฿"],class:"pos-relative bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":l[4]||(l[4]=t=>e.product.description=t),label:"Description",placeholder:"Введите описание",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Button/Button.vue.cjs");const r=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Select/Select.vue.cjs"),i={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,l)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(u.default,{select:e.product.status,"onUpdate:select":l[0]||(l[0]=t=>e.product.status=t),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":l[1]||(l[1]=t=>e.product.name=t),label:"Name",placeholder:"Введите название",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":l[3]||(l[3]=t=>e.product.price=t),label:"Price",placeholder:"Введите цену",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(u.default,{select:e.product.price.currency,"onUpdate:select":l[2]||(l[2]=t=>e.product.price.currency=t),placeholder:"฿",options:["฿"],class:"pos-relative bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":l[4]||(l[4]=t=>e.product.description=t),label:"Description",placeholder:"Введите описание",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=i;
@@ -1,7 +1,7 @@
1
1
  import { openBlock as a, createElementBlock as u, Fragment as s, createVNode as d, withCtx as o } from "vue";
2
2
  import "../../../../components/Button/Button.vue.js";
3
3
  import i from "../../../../components/Field/Field.vue2.js";
4
- import r from "../../../../components/Select/Select.vue2.js";
4
+ import r from "../../../../components/Select/Select.vue.js";
5
5
  const f = {
6
6
  __name: "EditProductInfo",
7
7
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),f=require("../../../../components/Checkbox/Checkbox.vue2.cjs"),x=require("vue-i18n"),g=require("vue-router"),u=require("../../store/categories.cjs"),a=require("../../../marketplace/store/marketplace.cjs");require("./FilterProducts.vue2.cjs");const w={class:"pd-medium bg-grey radius-big"},q={class:"cursor-pointer mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),F={class:"cursor-pointer mn-r-auto t-medium p-big"},B=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),C={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under 300฿",value:"<300"},{label:"300฿ to 600฿",value:"300-600"},{label:"600฿ to 1200฿",value:"600-1200"},{label:"$1200 and above",value:">1200"}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(y,{emit:h}){let d,m;const n=g.useRoute(),v=g.useRouter();[d,m]=e.withAsyncContext(()=>u.actions.fetchCategories()),await d,m(),e.ref({categories:[],prices:[],delivery:[],extra:[]}),e.watch(()=>a.state.filter,(t,r)=>{const l={...n.query};Object.keys(r).forEach(s=>{l[s]&&delete l[s]});const i=Object.fromEntries(Object.entries(t).filter(([s,o])=>Array.isArray(o)&&o.length>0).map(([s,o])=>[s,o.join(",")]));Object.assign(l,i),v.push({query:l})},{deep:!0}),e.onMounted(async()=>{if(n.query){const t=n.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};a.state.filter=r}});const _=h,k=()=>{_("resetFilters")},p={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(t=>{t.localization.forEach(r=>{p.messages[r.locale].categories.push(r.text)})});const{t:c}=x.useI18n(p);return(t,r)=>(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(b.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",q,e.toDisplayString(e.unref(c)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(l,i)=>(e.openBlock(),e.createBlock(f.default,{key:i,label:l.name,value:l.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:a.state.filter.categories,"onUpdate:radio":r[0]||(r[0]=s=>a.state.filter.categories=s)},null,8,["label","value","radio"]))),128))]),_:1}),E,e.createVNode(b.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.prices,(l,i)=>(e.openBlock(),e.createBlock(f.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.prices,"onUpdate:radio":r[1]||(r[1]=s=>a.state.filter.prices=s)},null,8,["label","value","radio"]))),128))]),_:1}),B,e.createElementVNode("button",{onClick:k,class:"bg-main w-100 button"},e.toDisplayString(e.unref(c)("filters.reset")),1)]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),f=require("../../../../components/Checkbox/Checkbox.vue.cjs"),x=require("vue-i18n"),g=require("vue-router"),u=require("../../store/categories.cjs"),a=require("../../../marketplace/store/marketplace.cjs");require("./FilterProducts.vue2.cjs");const w={class:"pd-medium bg-grey radius-big"},q={class:"cursor-pointer mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),F={class:"cursor-pointer mn-r-auto t-medium p-big"},B=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),C={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under 300฿",value:"<300"},{label:"300฿ to 600฿",value:"300-600"},{label:"600฿ to 1200฿",value:"600-1200"},{label:"$1200 and above",value:">1200"}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(y,{emit:h}){let d,m;const n=g.useRoute(),v=g.useRouter();[d,m]=e.withAsyncContext(()=>u.actions.fetchCategories()),await d,m(),e.ref({categories:[],prices:[],delivery:[],extra:[]}),e.watch(()=>a.state.filter,(t,r)=>{const l={...n.query};Object.keys(r).forEach(s=>{l[s]&&delete l[s]});const i=Object.fromEntries(Object.entries(t).filter(([s,o])=>Array.isArray(o)&&o.length>0).map(([s,o])=>[s,o.join(",")]));Object.assign(l,i),v.push({query:l})},{deep:!0}),e.onMounted(async()=>{if(n.query){const t=n.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};a.state.filter=r}});const _=h,k=()=>{_("resetFilters")},p={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(t=>{t.localization.forEach(r=>{p.messages[r.locale].categories.push(r.text)})});const{t:c}=x.useI18n(p);return(t,r)=>(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(b.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",q,e.toDisplayString(e.unref(c)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(l,i)=>(e.openBlock(),e.createBlock(f.default,{key:i,label:l.name,value:l.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:a.state.filter.categories,"onUpdate:radio":r[0]||(r[0]=s=>a.state.filter.categories=s)},null,8,["label","value","radio"]))),128))]),_:1}),E,e.createVNode(b.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.prices,(l,i)=>(e.openBlock(),e.createBlock(f.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.prices,"onUpdate:radio":r[1]||(r[1]=s=>a.state.filter.prices=s)},null,8,["label","value","radio"]))),128))]),_:1}),B,e.createElementVNode("button",{onClick:k,class:"bg-main w-100 button"},e.toDisplayString(e.unref(c)("filters.reset")),1)]))}};exports.default=C;
@@ -1,6 +1,6 @@
1
1
  import { withAsyncContext as A, ref as P, watch as T, onMounted as V, openBlock as a, createElementBlock as d, createVNode as h, withCtx as c, createElementVNode as o, toDisplayString as p, unref as b, Fragment as _, renderList as v, createBlock as x } from "vue";
2
2
  import w from "../../../../components/Spoiler/Spoiler.vue2.js";
3
- import F from "../../../../components/Checkbox/Checkbox.vue2.js";
3
+ import F from "../../../../components/Checkbox/Checkbox.vue.js";
4
4
  import { useI18n as B } from "vue-i18n";
5
5
  import { useRoute as R, useRouter as U } from "vue-router";
6
6
  import { actions as $, state as k } from "../../store/categories.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";
@@ -1,4 +1 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/FieldBig/FieldBig.vue.cjs"),d=require("vue-router"),u=require("vue-i18n");require("../../store/products.cjs");require("./HeroRecommendation.vue2.cjs");const p={id:"hero",class:"pd-thin"},m={class:"pd-big bg-black t-white pos-relative radius-extra o-hidden"},b={class:"flex-column flex-center flex t-center pos-relative z-index-1"},h=["innerHTML"],g=["innerHTML"],f=["innerHTML"],_={style:{"max-width":"50rem"},class:"w-100 h-max gap-thin cols-6"},y=["onClick"],v=["src"],x={class:"t-white"},w=e.createElementVNode("div",{class:"w-100 h-100 flex flex-center pos-absolute pos-t-0 pos-r-0 z-index-0"},[e.createElementVNode("div",{style:{"background-image":"url(/spiral.jpg)"},class:"spiral"})],-1),E={__name:"HeroRecommendation",setup(T){const i=d.useRouter(),s={messages:{en:{title:"Increase Your High <br><b class='t-main'>Boosted by AI Budtender</b>",description:"Just tell us what you're want, and Weeder will find your ideal match.",placeholderTexts:["Lowest THC, please!","Something with banana flavors?","I'm in the mood for trippy vibes."],subdescription:"AI Curated Recommendations for Your Mood:",presets:{sleep:"sleep",creative:"creative",giggly:"giggly",libido:"libido",trippy:"trippy",euphoric:"euphoric"},placeholder:"Tell us what you're after...",action:"Transmit&nbsp→"},ru:{title:"Персональный Накур,<br><b class='t-main'>Напрямую от AI</b>",description:"AI на страже твоего релакса, бро. Мы подбираем самые космические товары с учетом твоего желаемого настроения:",placeholderTexts:["Я хочу самый низкий THC","Я хочу чего-нибудь бананового","Я хочу курнуть хейза"],presets:{sleep:"сон",creative:"креатив",giggly:"смех",libido:"либидо",trippy:"трип",euphoric:"кайф"},subdescription:"Или выберите тег, и наш AI направит тебя к самым крутым вариантам:",placeholder:"Опиши свой желаемый хай, bro...",action:"Передать&nbsp→"}}},{t:n,rt:V}=u.useI18n(s);let r=e.ref("");const l=["sleep","creative","giggly","libido","trippy","euphoric"];return(a,o)=>(e.openBlock(),e.createElementBlock("section",p,[e.createElementVNode("div",m,[e.createElementVNode("div",b,[e.createElementVNode("h1",{class:"mn-b-semi",innerHTML:e.unref(n)("title")},null,8,h),e.createElementVNode("p",{class:"mn-b-big p-big t-transp",innerHTML:e.unref(n)("description")},null,8,g),e.createVNode(c.default,{input:e.unref(r),typingSpeed:100,loopTyping:!0,enableTyping:!0,placeholder:e.unref(n)("placeholder"),action:e.unref(n)("action"),"onUpdate:input":o[0]||(o[0]=t=>e.isRef(r)?r.value=t:r=t),onAction:o[1]||(o[1]=t=>e.unref(i).push({name:"Product Recommmendation",query:{mood:e.unref(r)}})),class:"mn-b-big pd-big bg-black-transp-50 bg-blur-thin w-100 w-max-40r"},null,8,["input","placeholder","action"]),e.createElementVNode("p",{class:"w-m-60r t-transp mn-b-semi p-medium",innerHTML:e.unref(n)("subdescription")},null,8,f),e.createElementVNode("div",_,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,(t,N)=>e.createElementVNode("a",{key:t,onClick:e.withModifiers(k=>e.unref(i).push({name:"Product Recommmendation",query:{mood:t}}),["stop"]),class:"uppercase pd-thin t-medium flex-center flex-column flex-nowrap flex bg-black-transp-50 bg-blur-thin radius-semi cursor-pointer transition-elastic hover-easeInOut-1"},[e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+"/icons/moods/"+t+".svg",class:"w-100"},null,8,v),e.createElementVNode("span",x,e.toDisplayString(e.unref(n)("presets."+t)),1)],8,y)),64))])]),w])]))}};exports.default=E;
@@ -0,0 +1,114 @@
1
+ import { ref as m, openBlock as l, createElementBlock as a, createElementVNode as e, unref as t, createVNode as u, isRef as h, Fragment as b, renderList as g, withModifiers as _, toDisplayString as f } from "vue";
2
+ import y from "../../../../components/FieldBig/FieldBig.vue.js";
3
+ import { useRouter as x } from "vue-router";
4
+ import { useI18n as v } from "vue-i18n";
5
+ import "../../store/products.js";
6
+ import "./HeroRecommendation.vue2.js";
7
+ const w = {
8
+ id: "hero",
9
+ class: "pd-thin"
10
+ }, T = { class: "pd-big bg-black t-white pos-relative radius-extra o-hidden" }, H = { class: "flex-column flex-center flex t-center pos-relative z-index-1" }, I = ["innerHTML"], L = ["innerHTML"], k = ["innerHTML"], R = {
11
+ style: { "max-width": "50rem" },
12
+ class: "w-100 h-max gap-thin cols-6"
13
+ }, M = ["onClick"], A = ["src"], C = { class: "t-white" }, E = /* @__PURE__ */ e("div", { class: "w-100 h-100 flex flex-center pos-absolute pos-t-0 pos-r-0 z-index-0" }, [
14
+ /* @__PURE__ */ e("div", {
15
+ style: { "background-image": "url(/spiral.jpg)" },
16
+ class: "spiral"
17
+ })
18
+ ], -1), $ = {
19
+ __name: "HeroRecommendation",
20
+ setup(B) {
21
+ const r = x(), c = {
22
+ messages: {
23
+ en: {
24
+ title: "Increase Your High <br><b class='t-main'>Boosted by AI Budtender</b>",
25
+ description: "Just tell us what you're want, and Weeder will find your ideal match.",
26
+ placeholderTexts: [
27
+ "Lowest THC, please!",
28
+ "Something with banana flavors?",
29
+ "I'm in the mood for trippy vibes."
30
+ ],
31
+ subdescription: "AI Curated Recommendations for Your Mood:",
32
+ presets: {
33
+ sleep: "sleep",
34
+ creative: "creative",
35
+ giggly: "giggly",
36
+ libido: "libido",
37
+ trippy: "trippy",
38
+ euphoric: "euphoric"
39
+ },
40
+ placeholder: "Tell us what you're after...",
41
+ action: "Transmit&nbsp→"
42
+ },
43
+ ru: {
44
+ title: "Персональный Накур,<br><b class='t-main'>Напрямую от AI</b>",
45
+ description: "AI на страже твоего релакса, бро. Мы подбираем самые космические товары с учетом твоего желаемого настроения:",
46
+ placeholderTexts: [
47
+ "Я хочу самый низкий THC",
48
+ "Я хочу чего-нибудь бананового",
49
+ "Я хочу курнуть хейза"
50
+ ],
51
+ presets: {
52
+ sleep: "сон",
53
+ creative: "креатив",
54
+ giggly: "смех",
55
+ libido: "либидо",
56
+ trippy: "трип",
57
+ euphoric: "кайф"
58
+ },
59
+ subdescription: "Или выберите тег, и наш AI направит тебя к самым крутым вариантам:",
60
+ placeholder: "Опиши свой желаемый хай, bro...",
61
+ action: "Передать&nbsp→"
62
+ }
63
+ }
64
+ }, { t: s, rt: S } = v(c);
65
+ let o = m("");
66
+ const p = ["sleep", "creative", "giggly", "libido", "trippy", "euphoric"];
67
+ return (d, n) => (l(), a("section", w, [
68
+ e("div", T, [
69
+ e("div", H, [
70
+ e("h1", {
71
+ class: "mn-b-semi",
72
+ innerHTML: t(s)("title")
73
+ }, null, 8, I),
74
+ e("p", {
75
+ class: "mn-b-big p-big t-transp",
76
+ innerHTML: t(s)("description")
77
+ }, null, 8, L),
78
+ u(y, {
79
+ input: t(o),
80
+ typingSpeed: 100,
81
+ loopTyping: !0,
82
+ enableTyping: !0,
83
+ placeholder: t(s)("placeholder"),
84
+ action: t(s)("action"),
85
+ "onUpdate:input": n[0] || (n[0] = (i) => h(o) ? o.value = i : o = i),
86
+ onAction: n[1] || (n[1] = (i) => t(r).push({ name: "Product Recommmendation", query: { mood: t(o) } })),
87
+ class: "mn-b-big pd-big bg-black-transp-50 bg-blur-thin w-100 w-max-40r"
88
+ }, null, 8, ["input", "placeholder", "action"]),
89
+ e("p", {
90
+ class: "w-m-60r t-transp mn-b-semi p-medium",
91
+ innerHTML: t(s)("subdescription")
92
+ }, null, 8, k),
93
+ e("div", R, [
94
+ (l(), a(b, null, g(p, (i, V) => e("a", {
95
+ key: i,
96
+ onClick: _((q) => t(r).push({ name: "Product Recommmendation", query: { mood: i } }), ["stop"]),
97
+ class: "uppercase pd-thin t-medium flex-center flex-column flex-nowrap flex bg-black-transp-50 bg-blur-thin radius-semi cursor-pointer transition-elastic hover-easeInOut-1"
98
+ }, [
99
+ e("img", {
100
+ src: (d.FILE_SERVER_URL || "") + "/icons/moods/" + i + ".svg",
101
+ class: "w-100"
102
+ }, null, 8, A),
103
+ e("span", C, f(t(s)("presets." + i)), 1)
104
+ ], 8, M)), 64))
105
+ ])
106
+ ]),
107
+ E
108
+ ])
109
+ ]));
110
+ }
111
+ };
112
+ export {
113
+ $ as default
114
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";
@@ -1,4 +1 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Button/Button.vue2.cjs"),g=require("../../../icons/navigation/IconEdit.vue.cjs"),h=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),p=require("../blocks/Images360.vue.cjs"),k=require("../blocks/ImagesThumbnails.vue.cjs");require("../elements/THC.vue2.cjs");const f=require("../elements/Price.vue.cjs"),y=require("vue-i18n"),n=require("../../../orders/store/shopcart.cjs"),b={class:"cols-2-1_2 w-100 gap-big"},v={class:"flex-nowrap flex-column flex pos-relative"},B={class:"h-100 h-max-50vh bg-grey radius-big o-hidden"},V=["src"],E={class:"pos-relative w-100 h-100 flex-column flex-justify flex col"},N={key:0,class:"t-main t-semi p-big"},w={class:"w-100 h1-product mn-b-thin"},C={key:1,class:"mn-b-semi"},S={key:2,class:"w-100 mn-b-medium t-transp"},q={key:3,class:"w-100 mn-b-medium t-transp"},x={class:"cols-2 w-100 gap-small mn-b-semi"},z={class:"w-100 pd-small radius-small bg-grey-transp-30 product-information"},I={class:"t-demi"},D={class:"max-w-33rem mobile-w-100 t-white gap-small cols-2"},P={__name:"SectionProduct",props:{product:{type:Object,required:!0},user:{type:String},recommendation:{type:String}},setup(t){const s=t,a=e.computed(()=>s.product.images),d={messages:{en:{airecommend:"AI Recommends You",description:"",addtoorder:"Add to order",fastorder:"Fast Order"},ru:{airecommend:"AI Рекомендует вам",description:"",addtoorder:"Добавить в корзину",fastorder:"Быстрый заказ"}}},{t:c}=y.useI18n(d);function l(o){return!(o.quantity>0)}function m(o){n.state.organization!==o.organization&&(n.state.positions=[],n.state.organization=o.organization),n.actions.addProductToCart(o,o.organization)}return(o,i)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("div",v,[e.createElementVNode("div",B,[t.product&&t.product.image3d?(e.openBlock(),e.createBlock(p.default,{key:0,class:"h-100 w-100",imagePath:`/assets/images/products/${t.product.image3d}`,imageCount:36},null,8,["imagePath"])):e.createCommentVNode("",!0),a.value[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("img",{key:1,class:"h-100 bg-grey w-100",style:{"object-fit":"contain"},src:(o.FILE_SERVER_URL||"")+a.value[0]},null,8,V)):e.createCommentVNode("",!0),!a.value[0]&&!t.product.image3d?(e.openBlock(),e.createBlock(h.default,{key:2,class:"h-100 w-100",style:{"object-fit":"cover"}})):e.createCommentVNode("",!0)]),a.value.length>1?(e.openBlock(),e.createBlock(k.default,{key:0,images:a.value,class:"mn-t-medium"},null,8,["images"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",E,[e.createVNode(g.default,{onClick:i[0]||(i[0]=r=>o.$router.push({name:"ProductEdit",params:{_id:t.product.organization,product:t.product._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"}),t.recommendation?(e.openBlock(),e.createElementBlock("h2",N,e.toDisplayString(e.unref(c)("airecommend")),1)):e.createCommentVNode("",!0),e.createElementVNode("h1",w,e.toDisplayString(t.product.name),1),e.createVNode(f.default,{product:t.product,size:"big",class:"mn-b-semi"},null,8,["product"]),t.recommendation?(e.openBlock(),e.createElementBlock("h3",C,e.toDisplayString(t.recommendation),1)):e.createCommentVNode("",!0),t.product.description&&!t.product.localization<1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",S,e.toDisplayString(t.product.description),1)):e.createCommentVNode("",!0),t.product.localization&&t.product.localization.length>1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",q,e.toDisplayString(e.unref(c)("description")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",x,[t.product.information.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.product.information,r=>(e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("p",I,e.toDisplayString(r.name),1),e.createElementVNode("p",null,e.toDisplayString(r.value),1)]))),256)):e.createCommentVNode("",!0)]),e.createElementVNode("div",D,[e.createVNode(u.default,{submit:r=>m(t.product),disabled:l(t.product),text:{success:" ✔ Added",error:"error"},class:"w-100 mn-r-small bg-main button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("addtoorder")),1)]),_:1},8,["submit","disabled"])])])]))}};exports.default=P;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../../../../components/Button/Button.vue2.cjs"),u=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),g=require("../blocks/Images360.vue.cjs"),h=require("../blocks/ImagesThumbnails.vue.cjs");require("../elements/THC.vue2.cjs");const k=require("../elements/Price.vue.cjs"),f=require("vue-i18n"),n=require("../../../orders/store/shopcart.cjs"),p={class:"cols-2-1_2 w-100 gap-big"},y={class:"flex-nowrap flex-column flex pos-relative"},b={class:"h-100 h-max-50vh bg-grey radius-big o-hidden"},B=["src"],v={class:"pos-relative w-100 h-100 flex-column flex-justify flex col"},V={key:0,class:"t-main t-semi p-big"},N={class:"w-100 h1-product mn-b-thin"},E={key:1,class:"mn-b-semi"},w={key:2,class:"w-100 mn-b-medium t-transp"},C={key:3,class:"w-100 mn-b-medium t-transp"},S={class:"cols-2 w-100 gap-small mn-b-semi"},x={class:"w-100 pd-small radius-small bg-grey-transp-30 product-information"},q={class:"t-demi"},z={class:"max-w-33rem mobile-w-100 t-white gap-small cols-2"},D={__name:"SectionProduct",props:{product:{type:Object,required:!0},user:{type:String},recommendation:{type:String}},setup(t){const i=t,a=e.computed(()=>i.product.images),s={messages:{en:{airecommend:"AI Recommends You",description:"",addtoorder:"Add to order",fastorder:"Fast Order"},ru:{airecommend:"AI Рекомендует вам",description:"",addtoorder:"Добавить в корзину",fastorder:"Быстрый заказ"}}},{t:c}=f.useI18n(s);function l(o){return!(o.quantity>0)}function d(o){n.state.organization!==o.organization&&(n.state.positions=[],n.state.organization=o.organization),n.actions.addProductToCart(o,o.organization)}return(o,I)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",y,[e.createElementVNode("div",b,[t.product&&t.product.image3d?(e.openBlock(),e.createBlock(g.default,{key:0,class:"h-100 w-100",imagePath:`/assets/images/products/${t.product.image3d}`,imageCount:36},null,8,["imagePath"])):e.createCommentVNode("",!0),a.value[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("img",{key:1,class:"h-100 bg-grey w-100",style:{"object-fit":"contain"},src:(o.FILE_SERVER_URL||"")+a.value[0]},null,8,B)):e.createCommentVNode("",!0),!a.value[0]&&!t.product.image3d?(e.openBlock(),e.createBlock(u.default,{key:2,class:"h-100 w-100",style:{"object-fit":"cover"}})):e.createCommentVNode("",!0)]),a.value.length>1?(e.openBlock(),e.createBlock(h.default,{key:0,images:a.value,class:"mn-t-medium"},null,8,["images"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",v,[t.recommendation?(e.openBlock(),e.createElementBlock("h2",V,e.toDisplayString(e.unref(c)("airecommend")),1)):e.createCommentVNode("",!0),e.createElementVNode("h1",N,e.toDisplayString(t.product.name),1),e.createVNode(k.default,{product:t.product,size:"big",class:"mn-b-semi"},null,8,["product"]),t.recommendation?(e.openBlock(),e.createElementBlock("h3",E,e.toDisplayString(t.recommendation),1)):e.createCommentVNode("",!0),t.product.description&&!t.product.localization<1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",w,e.toDisplayString(t.product.description),1)):e.createCommentVNode("",!0),t.product.localization&&t.product.localization.length>1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",C,e.toDisplayString(e.unref(c)("description")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",S,[t.product.information.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.product.information,r=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("p",q,e.toDisplayString(r.name),1),e.createElementVNode("p",null,e.toDisplayString(r.value),1)]))),256)):e.createCommentVNode("",!0)]),e.createElementVNode("div",z,[e.createVNode(m.default,{submit:r=>d(t.product),disabled:l(t.product),text:{success:" ✔ Added",error:"error"},class:"w-100 mn-r-small bg-main button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("addtoorder")),1)]),_:1},8,["submit","disabled"])])])]))}};exports.default=D;
@@ -1,26 +1,25 @@
1
- import { computed as v, openBlock as e, createElementBlock as a, createElementVNode as r, createBlock as m, createCommentVNode as i, createVNode as l, toDisplayString as s, unref as u, Fragment as w, renderList as k, withCtx as x, createTextVNode as z } from "vue";
2
- import C from "../../../../components/Button/Button.vue2.js";
3
- import I from "../../../icons/navigation/IconEdit.vue.js";
4
- import E from "../../../icons/placeholders/PlaceholderImage.vue.js";
5
- import P from "../blocks/Images360.vue.js";
6
- import $ from "../blocks/ImagesThumbnails.vue.js";
1
+ import { computed as y, openBlock as t, createElementBlock as a, createElementVNode as r, createBlock as m, createCommentVNode as o, toDisplayString as s, unref as l, createVNode as g, Fragment as v, renderList as w, withCtx as x, createTextVNode as k } from "vue";
2
+ import z from "../../../../components/Button/Button.vue2.js";
3
+ import I from "../../../icons/placeholders/PlaceholderImage.vue.js";
4
+ import C from "../blocks/Images360.vue.js";
5
+ import E from "../blocks/ImagesThumbnails.vue.js";
7
6
  import "../elements/THC.vue2.js";
8
- import S from "../elements/Price.vue.js";
9
- import { useI18n as T } from "vue-i18n";
10
- import { state as g, actions as V } from "../../../orders/store/shopcart.js";
11
- const j = { class: "cols-2-1_2 w-100 gap-big" }, A = { class: "flex-nowrap flex-column flex pos-relative" }, N = { class: "h-100 h-max-50vh bg-grey radius-big o-hidden" }, R = ["src"], B = { class: "pos-relative w-100 h-100 flex-column flex-justify flex col" }, F = {
7
+ import P from "../elements/Price.vue.js";
8
+ import { useI18n as S } from "vue-i18n";
9
+ import { state as u, actions as T } from "../../../orders/store/shopcart.js";
10
+ const V = { class: "cols-2-1_2 w-100 gap-big" }, j = { class: "flex-nowrap flex-column flex pos-relative" }, A = { class: "h-100 h-max-50vh bg-grey radius-big o-hidden" }, N = ["src"], R = { class: "pos-relative w-100 h-100 flex-column flex-justify flex col" }, B = {
12
11
  key: 0,
13
12
  class: "t-main t-semi p-big"
14
- }, L = { class: "w-100 h1-product mn-b-thin" }, q = {
13
+ }, F = { class: "w-100 h1-product mn-b-thin" }, L = {
15
14
  key: 1,
16
15
  class: "mn-b-semi"
17
- }, O = {
16
+ }, $ = {
18
17
  key: 2,
19
18
  class: "w-100 mn-b-medium t-transp"
20
- }, D = {
19
+ }, q = {
21
20
  key: 3,
22
21
  class: "w-100 mn-b-medium t-transp"
23
- }, U = { class: "cols-2 w-100 gap-small mn-b-semi" }, Y = { class: "w-100 pd-small radius-small bg-grey-transp-30 product-information" }, G = { class: "t-demi" }, H = { class: "max-w-33rem mobile-w-100 t-white gap-small cols-2" }, ot = {
22
+ }, O = { class: "cols-2 w-100 gap-small mn-b-semi" }, D = { class: "w-100 pd-small radius-small bg-grey-transp-30 product-information" }, U = { class: "t-demi" }, Y = { class: "max-w-33rem mobile-w-100 t-white gap-small cols-2" }, ee = {
24
23
  __name: "SectionProduct",
25
24
  props: {
26
25
  product: {
@@ -34,8 +33,8 @@ const j = { class: "cols-2-1_2 w-100 gap-big" }, A = { class: "flex-nowrap flex-
34
33
  type: String
35
34
  }
36
35
  },
37
- setup(t) {
38
- const f = t, n = v(() => f.product.images), p = {
36
+ setup(e) {
37
+ const h = e, n = y(() => h.product.images), f = {
39
38
  messages: {
40
39
  en: {
41
40
  airecommend: "AI Recommends You",
@@ -50,71 +49,61 @@ const j = { class: "cols-2-1_2 w-100 gap-big" }, A = { class: "flex-nowrap flex-
50
49
  fastorder: "Быстрый заказ"
51
50
  }
52
51
  }
53
- }, { t: c } = T(p);
54
- function b(o) {
55
- return !(o.quantity > 0);
52
+ }, { t: c } = S(f);
53
+ function b(i) {
54
+ return !(i.quantity > 0);
56
55
  }
57
- function y(o) {
58
- g.organization !== o.organization && (g.positions = [], g.organization = o.organization), V.addProductToCart(o, o.organization);
56
+ function p(i) {
57
+ u.organization !== i.organization && (u.positions = [], u.organization = i.organization), T.addProductToCart(i, i.organization);
59
58
  }
60
- return (o, h) => (e(), a("div", j, [
61
- r("div", A, [
62
- r("div", N, [
63
- t.product && t.product.image3d ? (e(), m(P, {
59
+ return (i, G) => (t(), a("div", V, [
60
+ r("div", j, [
61
+ r("div", A, [
62
+ e.product && e.product.image3d ? (t(), m(C, {
64
63
  key: 0,
65
64
  class: "h-100 w-100",
66
- imagePath: `/assets/images/products/${t.product.image3d}`,
65
+ imagePath: `/assets/images/products/${e.product.image3d}`,
67
66
  imageCount: 36
68
- }, null, 8, ["imagePath"])) : i("", !0),
69
- n.value[0] && !t.product.image3d ? (e(), a("img", {
67
+ }, null, 8, ["imagePath"])) : o("", !0),
68
+ n.value[0] && !e.product.image3d ? (t(), a("img", {
70
69
  key: 1,
71
70
  class: "h-100 bg-grey w-100",
72
71
  style: { "object-fit": "contain" },
73
- src: (o.FILE_SERVER_URL || "") + n.value[0]
74
- }, null, 8, R)) : i("", !0),
75
- !n.value[0] && !t.product.image3d ? (e(), m(E, {
72
+ src: (i.FILE_SERVER_URL || "") + n.value[0]
73
+ }, null, 8, N)) : o("", !0),
74
+ !n.value[0] && !e.product.image3d ? (t(), m(I, {
76
75
  key: 2,
77
76
  class: "h-100 w-100",
78
77
  style: { "object-fit": "cover" }
79
- })) : i("", !0)
78
+ })) : o("", !0)
80
79
  ]),
81
- n.value.length > 1 ? (e(), m($, {
80
+ n.value.length > 1 ? (t(), m(E, {
82
81
  key: 0,
83
82
  images: n.value,
84
83
  class: "mn-t-medium"
85
- }, null, 8, ["images"])) : i("", !0)
84
+ }, null, 8, ["images"])) : o("", !0)
86
85
  ]),
87
- r("div", B, [
88
- l(I, {
89
- onClick: h[0] || (h[0] = (d) => o.$router.push({
90
- name: "ProductEdit",
91
- params: {
92
- _id: t.product.organization,
93
- product: t.product._id
94
- }
95
- })),
96
- class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
97
- }),
98
- t.recommendation ? (e(), a("h2", F, s(u(c)("airecommend")), 1)) : i("", !0),
99
- r("h1", L, s(t.product.name), 1),
100
- l(S, {
101
- product: t.product,
86
+ r("div", R, [
87
+ e.recommendation ? (t(), a("h2", B, s(l(c)("airecommend")), 1)) : o("", !0),
88
+ r("h1", F, s(e.product.name), 1),
89
+ g(P, {
90
+ product: e.product,
102
91
  size: "big",
103
92
  class: "mn-b-semi"
104
93
  }, null, 8, ["product"]),
105
- t.recommendation ? (e(), a("h3", q, s(t.recommendation), 1)) : i("", !0),
106
- t.product.description && !t.product.localization < 1 && !t.recommendation ? (e(), a("p", O, s(t.product.description), 1)) : i("", !0),
107
- t.product.localization && t.product.localization.length > 1 && !t.recommendation ? (e(), a("p", D, s(u(c)("description")), 1)) : i("", !0),
108
- r("div", U, [
109
- t.product.information.length > 0 ? (e(!0), a(w, { key: 0 }, k(t.product.information, (d) => (e(), a("div", Y, [
110
- r("p", G, s(d.name), 1),
94
+ e.recommendation ? (t(), a("h3", L, s(e.recommendation), 1)) : o("", !0),
95
+ e.product.description && !e.product.localization < 1 && !e.recommendation ? (t(), a("p", $, s(e.product.description), 1)) : o("", !0),
96
+ e.product.localization && e.product.localization.length > 1 && !e.recommendation ? (t(), a("p", q, s(l(c)("description")), 1)) : o("", !0),
97
+ r("div", O, [
98
+ e.product.information.length > 0 ? (t(!0), a(v, { key: 0 }, w(e.product.information, (d) => (t(), a("div", D, [
99
+ r("p", U, s(d.name), 1),
111
100
  r("p", null, s(d.value), 1)
112
- ]))), 256)) : i("", !0)
101
+ ]))), 256)) : o("", !0)
113
102
  ]),
114
- r("div", H, [
115
- l(C, {
116
- submit: (d) => y(t.product),
117
- disabled: b(t.product),
103
+ r("div", Y, [
104
+ g(z, {
105
+ submit: (d) => p(e.product),
106
+ disabled: b(e.product),
118
107
  text: {
119
108
  success: " ✔ Added",
120
109
  error: "error"
@@ -122,7 +111,7 @@ const j = { class: "cols-2-1_2 w-100 gap-big" }, A = { class: "flex-nowrap flex-
122
111
  class: "w-100 mn-r-small bg-main button"
123
112
  }, {
124
113
  default: x(() => [
125
- z(s(u(c)("addtoorder")), 1)
114
+ k(s(l(c)("addtoorder")), 1)
126
115
  ]),
127
116
  _: 1
128
117
  }, 8, ["submit", "disabled"])
@@ -132,5 +121,5 @@ const j = { class: "cols-2-1_2 w-100 gap-big" }, A = { class: "flex-nowrap flex-
132
121
  }
133
122
  };
134
123
  export {
135
- ot as default
124
+ ee as default
136
125
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vue-i18n"),l={class:"pd-medium mn-b-thin bg-grey radius-big"},u={class:"flex-nowrap flex flex-v-center"},a=e.createElementVNode("p",{class:"mn-r-auto p-big t-semi t-transp"},"2,982 results",-1),p={__name:"SortProducts",props:{categories:Array,prices:Array,deliveryOptions:Array,selectedFilters:Object},emits:["updateFilters","resetFilters"],setup(c,{emit:d}){const n={locale:"en",messages:{en:{sort:{price:"By price",newest:"By newest",popularity:"By popularity"}},ru:{sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"}}}},{t:r}=i.useI18n(n);return(s,t)=>(e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("div",u,[a,e.createElementVNode("button",{onClick:t[0]||(t[0]=o=>s.setSort("price")),class:"button-active button-sort button"},e.toDisplayString(e.unref(r)("sort.price")),1),e.createElementVNode("button",{onClick:t[1]||(t[1]=o=>s.setSort("createdAt")),class:"button-sort button"},e.toDisplayString(e.unref(r)("sort.newest")),1),e.createElementVNode("button",{onClick:t[2]||(t[2]=o=>s.setSort("popularity")),class:"button-sort button"},e.toDisplayString(e.unref(r)("sort.popularity")),1)])]))}};exports.default=p;
@@ -0,0 +1,53 @@
1
+ import { openBlock as l, createElementBlock as u, createElementVNode as e, toDisplayString as o, unref as n } from "vue";
2
+ import { useI18n as a } from "vue-i18n";
3
+ const c = { class: "pd-medium mn-b-thin bg-grey radius-big" }, m = { class: "flex-nowrap flex flex-v-center" }, b = /* @__PURE__ */ e("p", { class: "mn-r-auto p-big t-semi t-transp" }, "2,982 results", -1), g = {
4
+ __name: "SortProducts",
5
+ props: {
6
+ categories: Array,
7
+ prices: Array,
8
+ deliveryOptions: Array,
9
+ selectedFilters: Object
10
+ },
11
+ emits: ["updateFilters", "resetFilters"],
12
+ setup(d, { emit: y }) {
13
+ const p = {
14
+ locale: "en",
15
+ messages: {
16
+ en: {
17
+ sort: {
18
+ price: "By price",
19
+ newest: "By newest",
20
+ popularity: "By popularity"
21
+ }
22
+ },
23
+ ru: {
24
+ sort: {
25
+ price: "По цене",
26
+ newest: "По новизне",
27
+ popularity: "По популярности"
28
+ }
29
+ }
30
+ }
31
+ }, { t: s } = a(p);
32
+ return (r, t) => (l(), u("div", c, [
33
+ e("div", m, [
34
+ b,
35
+ e("button", {
36
+ onClick: t[0] || (t[0] = (i) => r.setSort("price")),
37
+ class: "button-active button-sort button"
38
+ }, o(n(s)("sort.price")), 1),
39
+ e("button", {
40
+ onClick: t[1] || (t[1] = (i) => r.setSort("createdAt")),
41
+ class: "button-sort button"
42
+ }, o(n(s)("sort.newest")), 1),
43
+ e("button", {
44
+ onClick: t[2] || (t[2] = (i) => r.setSort("popularity")),
45
+ class: "button-sort button"
46
+ }, o(n(s)("sort.popularity")), 1)
47
+ ])
48
+ ]));
49
+ }
50
+ };
51
+ export {
52
+ g as default
53
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/blocks/ImagesThumbnails.vue.cjs"),t=require("./components/blocks/LeftoverPositions.vue.cjs"),r=require("./components/blocks/ListPositions.vue.cjs"),o=require("./components/blocks/CategoryCard.vue.cjs"),u=require("./components/blocks/CardProduct.vue.cjs"),i=require("./components/blocks/CardLeftover.vue.cjs"),d=require("./components/blocks/Images360.vue.cjs"),c=require("./components/blocks/CardPosition.vue.cjs"),s=require("./components/sections/SectionProduct.vue.cjs"),a=require("./components/sections/HeroRecommendation.vue.cjs"),n=require("./components/sections/FilterProducts.vue.cjs"),f=require("./components/sections/SortProducts.vue.cjs"),l=require("./components/sections/EditModifications.vue.cjs"),P=require("./components/sections/PopularProducts.vue.cjs"),q=require("./components/sections/EditProductInfo.vue.cjs"),m=require("./components/elements/Price.vue.cjs"),C=require("./components/elements/THC.vue.cjs"),v=require("./components/pages/Product.vue.cjs"),g=require("./components/pages/ProductsBackoffice.vue.cjs"),L=require("./components/pages/ProductEdit.vue.cjs"),S=require("./components/pages/EditLeftover.vue.cjs"),E=require("./components/pages/ProductRecommmendation.vue.cjs"),I=require("./components/pages/Products.vue.cjs"),p=require("./components/pages/Leftovers.vue.cjs"),T=require("./store/categories.cjs"),b=require("./store/leftovers.cjs"),y=require("./store/products.cjs");exports.ImagesThumbnails=e.default;exports.LeftoverPositions=t.default;exports.ListPositions=r.default;exports.CategoryCard=o.default;exports.CardProduct=u.default;exports.CardLeftover=i.default;exports.Images360=d.default;exports.CardPosition=c.default;exports.SectionProduct=s.default;exports.HeroRecommendation=a.default;exports.FilterProducts=n.default;exports.SortProducts=f.default;exports.EditModifications=l.default;exports.PopularProducts=P.default;exports.EditProductInfo=q.default;exports.Price=m.default;exports.THC=C.default;exports.Product=v.default;exports.ProductsBackoffice=g.default;exports.ProductEdit=L.default;exports.EditLeftover=S.default;exports.ProductRecommendation=E.default;exports.Products=I.default;exports.Leftovers=p.default;exports.categoriesStore=T;exports.leftoversStore=b;exports.productsStore=y;
@@ -0,0 +1,56 @@
1
+ import { default as f } from "./components/blocks/ImagesThumbnails.vue.js";
2
+ import { default as d } from "./components/blocks/LeftoverPositions.vue.js";
3
+ import { default as m } from "./components/blocks/ListPositions.vue.js";
4
+ import { default as l } from "./components/blocks/CategoryCard.vue.js";
5
+ import { default as i } from "./components/blocks/CardProduct.vue.js";
6
+ import { default as P } from "./components/blocks/CardLeftover.vue.js";
7
+ import { default as v } from "./components/blocks/Images360.vue.js";
8
+ import { default as g } from "./components/blocks/CardPosition.vue.js";
9
+ import { default as S } from "./components/sections/SectionProduct.vue.js";
10
+ import { default as I } from "./components/sections/HeroRecommendation.vue.js";
11
+ import { default as R } from "./components/sections/FilterProducts.vue.js";
12
+ import { default as b } from "./components/sections/SortProducts.vue.js";
13
+ import { default as k } from "./components/sections/EditModifications.vue.js";
14
+ import { default as B } from "./components/sections/PopularProducts.vue.js";
15
+ import { default as M } from "./components/sections/EditProductInfo.vue.js";
16
+ import { default as q } from "./components/elements/Price.vue.js";
17
+ import { default as z } from "./components/elements/THC.vue.js";
18
+ import { default as D } from "./components/pages/Product.vue.js";
19
+ import { default as J } from "./components/pages/ProductsBackoffice.vue.js";
20
+ import { default as N } from "./components/pages/ProductEdit.vue.js";
21
+ import { default as Q } from "./components/pages/EditLeftover.vue.js";
22
+ import { default as V } from "./components/pages/ProductRecommmendation.vue.js";
23
+ import { default as X } from "./components/pages/Products.vue.js";
24
+ import { default as Z } from "./components/pages/Leftovers.vue.js";
25
+ import * as o from "./store/categories.js";
26
+ import * as t from "./store/leftovers.js";
27
+ import * as r from "./store/products.js";
28
+ export {
29
+ P as CardLeftover,
30
+ g as CardPosition,
31
+ i as CardProduct,
32
+ l as CategoryCard,
33
+ Q as EditLeftover,
34
+ k as EditModifications,
35
+ M as EditProductInfo,
36
+ R as FilterProducts,
37
+ I as HeroRecommendation,
38
+ v as Images360,
39
+ f as ImagesThumbnails,
40
+ d as LeftoverPositions,
41
+ Z as Leftovers,
42
+ m as ListPositions,
43
+ B as PopularProducts,
44
+ q as Price,
45
+ D as Product,
46
+ N as ProductEdit,
47
+ V as ProductRecommendation,
48
+ X as Products,
49
+ J as ProductsBackoffice,
50
+ S as SectionProduct,
51
+ b as SortProducts,
52
+ z as THC,
53
+ o as categoriesStore,
54
+ t as leftoversStore,
55
+ r as productsStore
56
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),u=require("../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),a=u.default.create({baseURL:process.env.API_URL,withCredentials:!0}),r=n.reactive({all:[],current:{order:"1",name:"",url:"",subcategories:[],filters:[],localization:[]}}),c={async fetchCategories(){return await a.get("/categories").then(e=>(r.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},updateCategories(e){return a.post("/categories",e).then(t=>(r.all=e,Promise.resolve(e)),t=>(s.setError(t),Promise.reject(t)))},fetchCategory(e){return a.get("/categories/"+e).then(t=>(r.current=t.data,Promise.resolve(t.data)),t=>(s.setError(t),Promise.reject(t)))},addCategory(){return a.post("/categories/add",r.current).then(e=>(r.all.push(e.data),Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},updateCategory(e){return a.post("/categories/"+e,r.current).then(t=>(r.current=t.data,Promise.resolve(t.data)),t=>(s.setError(t),Promise.reject(t)))},deleteCategory(e){return a.delete("/categories/"+e).then(t=>{const o=r.all.findIndex(i=>i.url===e);r.all.splice(o,1)},t=>{s.setError(t)})}};n.watch(r,e=>{});exports.actions=c;exports.state=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),u=require("../../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),a=u.default.create({baseURL:process.env.API_URL,withCredentials:!0}),r=n.reactive({all:[],current:{order:"1",name:"",url:"",subcategories:[],filters:[],localization:[]}}),c={async fetchCategories(){return await a.get("/categories").then(e=>(r.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},updateCategories(e){return a.post("/categories",e).then(t=>(r.all=e,Promise.resolve(e)),t=>(s.setError(t),Promise.reject(t)))},fetchCategory(e){return a.get("/categories/"+e).then(t=>(r.current=t.data,Promise.resolve(t.data)),t=>(s.setError(t),Promise.reject(t)))},addCategory(){return a.post("/categories/add",r.current).then(e=>(r.all.push(e.data),Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},updateCategory(e){return a.post("/categories/"+e,r.current).then(t=>(r.current=t.data,Promise.resolve(t.data)),t=>(s.setError(t),Promise.reject(t)))},deleteCategory(e){return a.delete("/categories/"+e).then(t=>{const o=r.all.findIndex(i=>i.url===e);r.all.splice(o,1)},t=>{s.setError(t)})}};n.watch(r,e=>{});exports.actions=c;exports.state=r;
@@ -1,5 +1,5 @@
1
1
  import { reactive as i, watch as u } from "vue";
2
- import c from "../../../../node_modules/axios/lib/axios.js";
2
+ import c from "../../../../../node_modules/axios/lib/axios.js";
3
3
  import { setError as a } from "../../globals/store/globals.js";
4
4
  const s = c.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = i({
5
5
  all: [],
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),l=require("../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),o=l.default.create({baseURL:process.env.API_URL,withCredentials:!0}),e=c.reactive({all:[],current:{organization:"",type:"",order:"",positions:[]}}),d={async read(r){try{const t=await o.get("/leftovers",{params:r});return e.all=t.data,t.data}catch(t){throw s.setError(t),t}},async fetch(r){try{const t=await o.get("/leftovers/"+r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async create({organization:r,type:t,order:n,positions:i}){try{const a=await o.post("/leftovers",{organization:r,type:t,order:n,positions:i});return e.all.push(a.data),a.data}catch(a){throw s.setError(a),a}},async update(r){try{const t=await o.post("/leftovers/"+r._id,r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async delete(r){try{const t=await o.delete("/leftovers/"+r);return e.all.splice(e.all.findIndex(n=>n._id==r),1),t.data}catch(t){throw s.setError(t),t}}};c.watch(e,r=>{});exports.actions=d;exports.state=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),l=require("../../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),o=l.default.create({baseURL:process.env.API_URL,withCredentials:!0}),e=c.reactive({all:[],current:{organization:"",type:"",order:"",positions:[]}}),d={async read(r){try{const t=await o.get("/leftovers",{params:r});return e.all=t.data,t.data}catch(t){throw s.setError(t),t}},async fetch(r){try{const t=await o.get("/leftovers/"+r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async create({organization:r,type:t,order:n,positions:i}){try{const a=await o.post("/leftovers",{organization:r,type:t,order:n,positions:i});return e.all.push(a.data),a.data}catch(a){throw s.setError(a),a}},async update(r){try{const t=await o.post("/leftovers/"+r._id,r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async delete(r){try{const t=await o.delete("/leftovers/"+r);return e.all.splice(e.all.findIndex(n=>n._id==r),1),t.data}catch(t){throw s.setError(t),t}}};c.watch(e,r=>{});exports.actions=d;exports.state=e;
@@ -1,5 +1,5 @@
1
1
  import { reactive as i, watch as d } from "vue";
2
- import l from "../../../../node_modules/axios/lib/axios.js";
2
+ import l from "../../../../../node_modules/axios/lib/axios.js";
3
3
  import { setError as o } from "../../globals/store/globals.js";
4
4
  const s = l.create({ baseURL: process.env.API_URL, withCredentials: !0 }), e = i({
5
5
  all: [],
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),o=require("../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),i=o.default.create({baseURL:process.env.API_URL,withCredentials:!0}),t=n.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],quantityDiscount:[],ingridients:[],description:""}}),u={async create(e,r){const a={...r,organization:e};return await i.post("/api/products/create",a).then(c=>(d(c.data,"current"),Promise.resolve(c.data)),c=>(s.setError(c),Promise.reject(c)))},async read(e={}){let r={};e._id&&(r._id=e._id),e.category&&(r.category=e.category),e.organization&&(r.organization=e.organization),e.count&&(r.count=e.count),e.categories&&(r.categories=e.categories),e.prices&&(r.prices=e.prices),e.delivery&&(r.delivery=e.delivery),e.status&&(r.status=e.status),r.sort="createdAt",r.skip=e.skip||0,r.limit=e.limit||10,console.log(r);try{const a=await i.get("/api/products/read",{params:r});return e._id?(t.current={...a.data[0]},Promise.resolve(a.data[0])):Promise.resolve(a.data)}catch(a){return s.setError(a),Promise.reject(a)}},async update(e,r){return await i.post("/api/products/"+e,r).then(a=>Promise.resolve(a.data),a=>(s.setError(a),Promise.reject(a)))},async deleteProduct(e){return await i.delete("/api/products/"+e).then(r=>Promise.resolve(r.data),r=>(s.setError(r),Promise.reject(r)))},async submitMood(e=null){return console.log(e),i.post("/api/product/recommended",{mood:e}).then(r=>(t.current=r.data.product,t.current.recommendation=r.data.recommendationText,Promise.resolve(r.data)),r=>(console.log(r),s.setError(r),Promise.reject(r)))},async fetchProducts(){return await i.get("/api/products/read").then(e=>(t.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await i.get("/api/products/popular").then(e=>(t.popular=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await i.get("/api/products").then(e=>{let r=e.data.filter(function(a,c){return a.status!=="unpublished"});return t.all=r,t.filtered=r.slice(),t.filteredPrice=t.filtered,t.filteredPrice.sort(function(a,c){return a[t.sort.current]>c[t.sort.current]?t.sort.ascending?1:-1:a[t.sort.current]<c[t.sort.current]?t.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))},async fetchProduct(e){try{const r=await i.get("/api/products/"+e);return console.log(r),t.current=r.data[0],Promise.resolve(r.data[0])}catch(r){return s.setError(r),Promise.reject(r)}},async fetchProductPopular(){return await i.get("/api/products").then(e=>(t.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(s.setError(e),Promise.reject(e)))}};function d(e,r){t[r]=e}n.watch(t,(e,r)=>{});exports.actions=u;exports.state=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),o=require("../../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),i=o.default.create({baseURL:process.env.API_URL,withCredentials:!0}),t=n.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],quantityDiscount:[],ingridients:[],description:""}}),u={async create(e,r){const a={...r,organization:e};return await i.post("/api/products/create",a).then(c=>(d(c.data,"current"),Promise.resolve(c.data)),c=>(s.setError(c),Promise.reject(c)))},async read(e={}){let r={};e._id&&(r._id=e._id),e.category&&(r.category=e.category),e.organization&&(r.organization=e.organization),e.count&&(r.count=e.count),e.categories&&(r.categories=e.categories),e.prices&&(r.prices=e.prices),e.delivery&&(r.delivery=e.delivery),e.status&&(r.status=e.status),r.sort="createdAt",r.skip=e.skip||0,r.limit=e.limit||10,console.log(r);try{const a=await i.get("/api/products/read",{params:r});return e._id?(t.current={...a.data[0]},Promise.resolve(a.data[0])):Promise.resolve(a.data)}catch(a){return s.setError(a),Promise.reject(a)}},async update(e,r){return await i.post("/api/products/"+e,r).then(a=>Promise.resolve(a.data),a=>(s.setError(a),Promise.reject(a)))},async deleteProduct(e){return await i.delete("/api/products/"+e).then(r=>Promise.resolve(r.data),r=>(s.setError(r),Promise.reject(r)))},async submitMood(e=null){return console.log(e),i.post("/api/product/recommended",{mood:e}).then(r=>(t.current=r.data.product,t.current.recommendation=r.data.recommendationText,Promise.resolve(r.data)),r=>(console.log(r),s.setError(r),Promise.reject(r)))},async fetchProducts(){return await i.get("/api/products/read").then(e=>(t.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await i.get("/api/products/popular").then(e=>(t.popular=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await i.get("/api/products").then(e=>{let r=e.data.filter(function(a,c){return a.status!=="unpublished"});return t.all=r,t.filtered=r.slice(),t.filteredPrice=t.filtered,t.filteredPrice.sort(function(a,c){return a[t.sort.current]>c[t.sort.current]?t.sort.ascending?1:-1:a[t.sort.current]<c[t.sort.current]?t.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))},async fetchProduct(e){try{const r=await i.get("/api/products/"+e);return console.log(r),t.current=r.data[0],Promise.resolve(r.data[0])}catch(r){return s.setError(r),Promise.reject(r)}},async fetchProductPopular(){return await i.get("/api/products").then(e=>(t.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(s.setError(e),Promise.reject(e)))}};function d(e,r){t[r]=e}const l={};n.watch(t,(e,r)=>{});exports.actions=u;exports.getters=l;exports.state=t;
@@ -1,5 +1,5 @@
1
1
  import { reactive as n, watch as o } from "vue";
2
- import u from "../../../../node_modules/axios/lib/axios.js";
2
+ import u from "../../../../../node_modules/axios/lib/axios.js";
3
3
  import { setError as i } from "../../globals/store/globals.js";
4
4
  const c = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = n({
5
5
  all: [],
@@ -102,9 +102,11 @@ const c = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = n
102
102
  function d(e, t) {
103
103
  r[t] = e;
104
104
  }
105
+ const g = {};
105
106
  o(r, (e, t) => {
106
107
  });
107
108
  export {
108
109
  f as actions,
110
+ g as getters,
109
111
  r as state
110
112
  };