@ozdao/prometheus-framework 0.2.43 → 0.2.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (444) hide show
  1. package/dist/main-2247448a.js +91 -0
  2. package/dist/main-6c51a895.mjs +13628 -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 +4 -3
  19. package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
  20. package/dist/node_modules/vue3-carousel/dist/carousel.css.js +4 -1
  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 +4 -1
  107. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +4 -1
  109. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
  111. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  112. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +227 -1
  113. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +2 -61
  115. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  116. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +63 -1
  117. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  118. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -1
  119. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  120. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +4 -1
  121. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  122. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +4 -1
  123. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
  125. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  126. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +78 -1
  127. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +18 -18
  129. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  131. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +4 -1
  133. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
  135. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +4 -1
  137. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  138. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +4 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +4 -1
  141. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +4 -1
  143. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +4 -1
  145. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +4 -1
  147. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +4 -1
  149. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/Map/Map.vue.js +4 -1
  151. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
  153. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -1
  155. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -95
  157. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +97 -1
  159. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +4 -1
  161. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +4 -1
  163. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +4 -1
  165. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -1
  167. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  169. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  170. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +4 -1
  171. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  173. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  177. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  181. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +4 -1
  183. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  185. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +4 -1
  187. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  189. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +4 -1
  191. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  193. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +4 -1
  195. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  197. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +4 -1
  199. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +4 -1
  201. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
  203. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  205. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  207. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +4 -1
  209. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  211. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  213. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +4 -1
  215. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +5 -5
  217. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +4 -1
  221. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +4 -1
  223. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  225. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  227. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  229. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +4 -1
  231. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  233. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  234. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
  235. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  236. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  237. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  239. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +4 -1
  243. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +7 -7
  247. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +4 -1
  249. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  251. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +4 -1
  253. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +4 -1
  255. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +4 -1
  257. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  259. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  261. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  263. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +4 -1
  265. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  267. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +4 -1
  269. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  271. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +4 -1
  275. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  277. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +4 -1
  279. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
  281. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  283. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
  285. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -1
  287. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +2 -2
  289. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +4 -1
  291. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  293. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  295. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +4 -1
  297. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  299. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  301. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +4 -1
  303. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +4 -1
  305. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +4 -1
  307. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +4 -1
  309. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  311. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  313. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +4 -1
  315. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  319. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +4 -1
  321. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
  323. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  325. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +4 -1
  327. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  329. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  331. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +4 -1
  333. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +4 -1
  335. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +4 -1
  337. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  339. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  341. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  343. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  345. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +4 -1
  347. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +4 -1
  349. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  351. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.cjs +1 -0
  352. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.js +43 -0
  353. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -0
  354. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +4 -0
  355. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +4 -1
  357. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  359. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +4 -1
  361. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  363. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +41 -1
  365. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -0
  366. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +4 -0
  367. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +4 -1
  369. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +4 -1
  371. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  373. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -1
  375. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +4 -1
  377. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +4 -1
  379. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +5 -5
  381. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +4 -1
  383. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -0
  384. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +87 -0
  385. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -0
  386. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +4 -0
  387. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -0
  388. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +138 -0
  389. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  391. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  393. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +4 -1
  395. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -0
  396. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +114 -0
  397. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -0
  398. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +4 -0
  399. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -1
  401. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  403. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -0
  404. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +53 -0
  405. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -0
  406. package/dist/prometheus-framework/src/modules/products/products.client.js +56 -0
  407. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  408. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  409. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  410. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  411. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  412. package/dist/prometheus-framework/src/modules/products/store/products.js +3 -1
  413. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  414. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  415. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  416. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  417. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  418. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +4 -1
  419. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  420. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  421. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  422. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  423. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  424. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +4 -1
  425. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  426. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  427. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  428. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +4 -1
  429. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  430. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  431. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  432. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +3 -3
  433. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
  434. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
  435. package/dist/prometheus-framework.cjs.js +1 -1
  436. package/dist/prometheus-framework.es.js +1 -1
  437. package/dist/style.css +1 -1
  438. package/dist/web-65c35f46.mjs +55 -0
  439. package/dist/web-adbe95b6.js +1 -0
  440. package/package.json +1 -1
  441. package/src/modules/products/components/pages/ProductRecommmendation.vue +2 -2
  442. package/src/modules/products/products.client.js +76 -20
  443. package/src/modules/products/products.server.js +10 -6
  444. package/src/modules/products/router/products.router.js +4 -2
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue2.cjs");const g=require("../../../../components/Select/Select.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const p=require("../blocks/CardPosition.vue.cjs"),f=require("vue-router"),l=require("../../../globals/store/globals.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");require("./EditLeftover.vue2.cjs");const h={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},N={class:""},q={class:"gap-thin flex-v-center flex-nojustify flex"},B={class:"mn-r-auto"},V={__name:"EditLeftover",setup(E){const s=f.useRoute(),c=f.useRouter(),i=e.ref(m.state.all);e.ref(null);const v=e.computed(()=>t.state.current.positions.reduce((o,r)=>o+r.price*(r.quantity||1),0));e.onMounted(async()=>{if(s.params.leftover)try{await t.actions.fetch(s.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const o=await m.actions.read({organization:s.params._id,limit:100});i.value=o}catch{console.error("error")}});function k(){s.params.leftover?t.actions.fetch(s.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){s.params.leftover?t.actions.update(t.state.current).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error")):t.actions.create(t.state.current).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error"))}function b(){t.actions.delete(s.params.leftover).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error"))}return(o,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",h,[e.createElementVNode("h2",N,e.toDisplayString(e.unref(s).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(g.default,{select:t.state.current.type,"onUpdate:select":r[0]||(r[0]=n=>t.state.current.type=n),options:["stock-in","stock-out","write-off"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(u.default,{title:"Add Position",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(p.default,{onAdd:r[1]||(r[1]=n=>l.actions.add(t.state.current.positions,n)),products:i.value},null,8,["products"])]),_:1}),e.createVNode(u.default,{title:"Invetory Sheet",placeholder:"No positions added yet",class:"mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(n,d)=>(e.openBlock(),e.createBlock(p.default,{key:n._id,product:n,array:t.state.current.positions,products:i.value,onAdd:r[2]||(r[2]=a=>l.actions.add(t.state.current.positions,a)),onUpdate:a=>l.actions.update(t.state.current.positions,a,d),onDelete:a=>l.actions.delete(t.state.current.positions,a,d)},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1}),e.createVNode(u.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",q,[e.createElementVNode("h3",B," In total: "+e.toDisplayString(o.formatPrice(v.value)),1),e.createElementVNode("a",{onClick:r[3]||(r[3]=n=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:r[4]||(r[4]=n=>k())}," Reset "),e.unref(s).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:r[5]||(r[5]=n=>b()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})],64))}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue.cjs");const g=require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const p=require("../blocks/CardPosition.vue.cjs"),f=require("vue-router"),l=require("../../../globals/store/globals.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");require("./EditLeftover.vue2.cjs");const h={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},N={class:""},q={class:"gap-thin flex-v-center flex-nojustify flex"},B={class:"mn-r-auto"},V={__name:"EditLeftover",setup(E){const s=f.useRoute(),c=f.useRouter(),i=e.ref(m.state.all);e.ref(null);const v=e.computed(()=>t.state.current.positions.reduce((o,r)=>o+r.price*(r.quantity||1),0));e.onMounted(async()=>{if(s.params.leftover)try{await t.actions.fetch(s.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const o=await m.actions.read({organization:s.params._id,limit:100});i.value=o}catch{console.error("error")}});function k(){s.params.leftover?t.actions.fetch(s.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){s.params.leftover?t.actions.update(t.state.current).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error")):t.actions.create(t.state.current).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error"))}function b(){t.actions.delete(s.params.leftover).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error"))}return(o,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",h,[e.createElementVNode("h2",N,e.toDisplayString(e.unref(s).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(g.default,{select:t.state.current.type,"onUpdate:select":r[0]||(r[0]=n=>t.state.current.type=n),options:["stock-in","stock-out","write-off"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(u.default,{title:"Add Position",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(p.default,{onAdd:r[1]||(r[1]=n=>l.actions.add(t.state.current.positions,n)),products:i.value},null,8,["products"])]),_:1}),e.createVNode(u.default,{title:"Invetory Sheet",placeholder:"No positions added yet",class:"mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(n,d)=>(e.openBlock(),e.createBlock(p.default,{key:n._id,product:n,array:t.state.current.positions,products:i.value,onAdd:r[2]||(r[2]=a=>l.actions.add(t.state.current.positions,a)),onUpdate:a=>l.actions.update(t.state.current.positions,a,d),onDelete:a=>l.actions.delete(t.state.current.positions,a,d)},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1}),e.createVNode(u.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",q,[e.createElementVNode("h3",B," In total: "+e.toDisplayString(o.formatPrice(v.value)),1),e.createElementVNode("a",{onClick:r[3]||(r[3]=n=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:r[4]||(r[4]=n=>k())}," Reset "),e.unref(s).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:r[5]||(r[5]=n=>b()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})],64))}};exports.default=V;
@@ -1,7 +1,7 @@
1
1
  import { ref as k, computed as S, onMounted as C, openBlock as c, createElementBlock as d, Fragment as b, createElementVNode as n, toDisplayString as h, unref as _, createVNode as i, withCtx as f, renderList as D, createBlock as L, createCommentVNode as R } from "vue";
2
2
  import v from "../../../../components/Block/Block.vue.js";
3
- import "../../../../components/Field/Field.vue2.js";
4
- import A from "../../../../components/Select/Select.vue.js";
3
+ import "../../../../components/Field/Field.vue.js";
4
+ import A from "../../../../components/Select/Select.vue2.js";
5
5
  import "../../../../components/SelectMulti/SelectMulti.vue2.js";
6
6
  import g from "../blocks/CardPosition.vue.js";
7
7
  import { useRoute as E, useRouter as N } from "vue-router";
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const n=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const i=require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");const b=require("../../../../components/Checkbox/Checkbox.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Popup/Popup.vue2.cjs");const w=require("../../../../components/EditImages/EditImages.vue.cjs"),c=require("../../../icons/navigation/IconDelete.vue.cjs"),h=require("../blocks/CardPosition.vue.cjs"),x=require("../sections/EditProductInfo.vue.cjs"),s=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),g=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const V={class:"for-transition w-100 cols-1 pd-thin gap-thin"},v={class:"mn-r-auto"},B={class:"cols-2 gap-thin"},q={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},C={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},y={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},E={__name:"ProductEdit",setup(U){const o=m.useRoute(),k=m.useRouter(),u=e.ref(t.state.all);e.onMounted(async()=>{await g.actions.fetchCategories(),o.params.product&&await t.actions.read({_id:o.params.product})});function N(){o.params.product?t.actions.update(o.params.product,t.state.current):t.actions.create(o.params._id,t.state.current)}function _(){t.actions.deleteProduct(t.state.current._id)}function p(){k.push({name:"Organization",params:{_id:o.params._id}})}return(D,d)=>(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(n.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",v,e.toDisplayString(e.unref(o).params.product?t.state.current.name:"Create Product"),1),e.unref(o).params.product?(e.openBlock(),e.createBlock(f.default,{key:0,submit:_,callback:p,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:N,callback:p,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(n.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(w.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":d[0]||(d[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",B,[e.createVNode(n.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(x.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(n.default,{title:"Categories"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.state.all,(a,r)=>(e.openBlock(),e.createBlock(b.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":l=>t.state.current.category=l},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1}),e.createVNode(n.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:r},[e.createVNode(i.default,{field:a.name,"onUpdate:field":l=>a.name=l,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(i.default,{field:a.value,"onUpdate:field":l=>a.value=l,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",q,[e.createVNode(c.default,{onClick:()=>t.state.current.information.splice(r,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(n.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:r},[e.createVNode(i.default,{field:a.name,"onUpdate:field":l=>a.name=l,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(i.default,{field:a.value,"onUpdate:field":l=>a.value=l,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",C,[e.createVNode(c.default,{onClick:()=>t.state.current.localization.splice(r,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]),e.createVNode(n.default,{title:"Quantity Discount",class:"mn-b-semi",actions:[{label:"+",function:()=>t.state.current.quantityDiscount.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.quantityDiscount,(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:r},[e.createVNode(i.default,{field:a.name,"onUpdate:field":l=>a.name=l,placeholder:"Quantity",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(i.default,{field:a.value,"onUpdate:field":l=>a.value=l,placeholder:"Discount",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",y,[e.createVNode(c.default,{onClick:()=>t.state.current.quantityDiscount.splice(r,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(n.default,{title:"Add Ingridient",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(h.default,{onAdd:d[1]||(d[1]=a=>s.actions.add(t.state.current.ingridients,a)),products:u.value},null,8,["products"]),e.createVNode(n.default,{placeholder:"No positions added yet",class:"pd-zero mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingridients,(a,r)=>(e.openBlock(),e.createBlock(h.default,{key:a._id,product:a,array:t.state.current.ingridients,products:u.value,onAdd:d[2]||(d[2]=l=>s.actions.add(t.state.current.ingridients,l)),onUpdate:l=>s.actions.update(t.state.current.ingridients,l,r),onDelete:l=>s.actions.delete(t.state.current.ingridients,l,r)},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1})]),_:1})]))}};exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const n=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const i=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");const b=require("../../../../components/Checkbox/Checkbox.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Popup/Popup.vue.cjs");const w=require("../../../../components/EditImages/EditImages.vue.cjs"),c=require("../../../icons/navigation/IconDelete.vue.cjs"),h=require("../blocks/CardPosition.vue.cjs"),x=require("../sections/EditProductInfo.vue.cjs"),s=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),g=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const V={class:"for-transition w-100 cols-1 pd-thin gap-thin"},v={class:"mn-r-auto"},B={class:"cols-2 gap-thin"},q={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},C={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},y={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},E={__name:"ProductEdit",setup(U){const o=m.useRoute(),k=m.useRouter(),u=e.ref(t.state.all);e.onMounted(async()=>{await g.actions.fetchCategories(),o.params.product&&await t.actions.read({_id:o.params.product})});function N(){o.params.product?t.actions.update(o.params.product,t.state.current):t.actions.create(o.params._id,t.state.current)}function _(){t.actions.deleteProduct(t.state.current._id)}function p(){k.push({name:"Organization",params:{_id:o.params._id}})}return(D,d)=>(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(n.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",v,e.toDisplayString(e.unref(o).params.product?t.state.current.name:"Create Product"),1),e.unref(o).params.product?(e.openBlock(),e.createBlock(f.default,{key:0,submit:_,callback:p,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:N,callback:p,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(n.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(w.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":d[0]||(d[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",B,[e.createVNode(n.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(x.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(n.default,{title:"Categories"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.state.all,(a,r)=>(e.openBlock(),e.createBlock(b.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":l=>t.state.current.category=l},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1}),e.createVNode(n.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:r},[e.createVNode(i.default,{field:a.name,"onUpdate:field":l=>a.name=l,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(i.default,{field:a.value,"onUpdate:field":l=>a.value=l,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",q,[e.createVNode(c.default,{onClick:()=>t.state.current.information.splice(r,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(n.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:r},[e.createVNode(i.default,{field:a.name,"onUpdate:field":l=>a.name=l,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(i.default,{field:a.value,"onUpdate:field":l=>a.value=l,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",C,[e.createVNode(c.default,{onClick:()=>t.state.current.localization.splice(r,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]),e.createVNode(n.default,{title:"Quantity Discount",class:"mn-b-semi",actions:[{label:"+",function:()=>t.state.current.quantityDiscount.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.quantityDiscount,(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:r},[e.createVNode(i.default,{field:a.name,"onUpdate:field":l=>a.name=l,placeholder:"Quantity",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(i.default,{field:a.value,"onUpdate:field":l=>a.value=l,placeholder:"Discount",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",y,[e.createVNode(c.default,{onClick:()=>t.state.current.quantityDiscount.splice(r,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(n.default,{title:"Add Ingridient",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(h.default,{onAdd:d[1]||(d[1]=a=>s.actions.add(t.state.current.ingridients,a)),products:u.value},null,8,["products"]),e.createVNode(n.default,{placeholder:"No positions added yet",class:"pd-zero mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingridients,(a,r)=>(e.openBlock(),e.createBlock(h.default,{key:a._id,product:a,array:t.state.current.ingridients,products:u.value,onAdd:d[2]||(d[2]=l=>s.actions.add(t.state.current.ingridients,l)),onUpdate:l=>s.actions.update(t.state.current.ingridients,l,r),onDelete:l=>s.actions.delete(t.state.current.ingridients,l,r)},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1})]),_:1})]))}};exports.default=E;
@@ -5,11 +5,11 @@ import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import s from "../../../../components/Block/Block.vue.js";
7
7
  import "../../../../components/Tab/Tab.vue.js";
8
- import c from "../../../../components/Field/Field.vue.js";
9
- import "../../../../components/Select/Select.vue2.js";
10
- import B from "../../../../components/Checkbox/Checkbox.vue.js";
11
- import k from "../../../../components/Button/Button.vue.js";
12
- import "../../../../components/Popup/Popup.vue2.js";
8
+ import c from "../../../../components/Field/Field.vue2.js";
9
+ import "../../../../components/Select/Select.vue.js";
10
+ import B from "../../../../components/Checkbox/Checkbox.vue2.js";
11
+ import k from "../../../../components/Button/Button.vue2.js";
12
+ import "../../../../components/Popup/Popup.vue.js";
13
13
  import E from "../../../../components/EditImages/EditImages.vue.js";
14
14
  import b from "../../../icons/navigation/IconDelete.vue.js";
15
15
  import U from "../blocks/CardPosition.vue.js";
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-router"),f=require("vue-i18n"),h=require("../../../../components/Loader/Loader.vue2.cjs");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const g=require("../../../../components/FieldBig/FieldBig.vue.cjs"),_=require("../sections/SectionProduct.vue.cjs"),s=require("../../store/products.cjs");require("../sections/HeroRecommendation.vue2.cjs");require("./ProductRecommmendation.vue2.cjs");const I=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),q={id:"product-recommendation",class:"h-min-100vh t-white bg-black"},y={key:1,class:"section"},k={key:0,class:"mn-b-big"},R={__name:"ProductRecommmendation",setup(T){const r=b.useRouter(),t=e.ref(!0),m=e.ref(!1),u=e.ref(["Loading all we know about the buds","Processing the cannabis universe","Creating a strain of knowledge","Harvesting taste insights"]),p={messages:{en:{TITLE:"Increase Your High,<br><b class='t-white'>Powered by AI Budtender</b>",DESCRIPTION:"AI's got your chill, bro. We're picking out the most cosmic weed strains based on your desired vibe:",placeholder:"Describe your desired high, bro...",action:"Transmit Vibes →"},ru:{TITLE:"Персональный Накур,<br><b class='t-white'>Напрямую от AI</b>",DESCRIPTION:"AI на страже твоего релакса, бро. Мы подбираем самые космические сорта травы, исходя из твоего желаемого настроения:",placeholder:"Опиши свой желамый хай, bro...",action:"Передать Вайб →"}}},{t:o}=f.useI18n(p),a=e.ref(u.value[0]);let c=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));e.watchEffect(async()=>{c.value=r.currentRoute.value.query.mood||o("Recommend me something"),t.value=!0,await s.actions.submitMood(c.value),t.value=!1}),e.onMounted(async()=>{}),setInterval(()=>{const i=u.value.indexOf(a.value);a.value=u.value[(i+1)%u.value.length]},2e3);let n=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));function v(){r.push({name:"Product Recommmendation",query:{mood:n.value}})}return(i,l)=>(e.openBlock(),e.createElementBlock("div",q,[t.value?(e.openBlock(),e.createBlock(h.default,{key:0,status:a.value,class:"pos-fixed"},null,8,["status"])):e.createCommentVNode("",!0),!t.value&&!m.value?(e.openBlock(),e.createElementBlock("div",y,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",k,[e.createVNode(g.default,{input:e.unref(n),loopTyping:!1,enableTyping:!1,placeholder:e.unref(o)("placeholder"),action:e.unref(o)("action"),"onUpdate:input":l[0]||(l[0]=d=>e.isRef(n)?n.value=d:n=d),onAction:v,class:"t-white bs-blur-regular w-100"},null,8,["input","placeholder","action"])])),e.createVNode(_.default,{product:s.state.current,recommendation:s.state.current.recommendation},null,8,["product","recommendation"])])):e.createCommentVNode("",!0)]))}},w=I.default(R,[["__scopeId","data-v-5fd744d4"]]);exports.default=w;
@@ -0,0 +1,87 @@
1
+ import { ref as e, watchEffect as I, onMounted as y, openBlock as s, createElementBlock as u, createBlock as w, createCommentVNode as c, createVNode as v, unref as l, isRef as R } from "vue";
2
+ import { useRouter as T } from "vue-router";
3
+ import { useI18n as k } from "vue-i18n";
4
+ import x from "../../../../components/Loader/Loader.vue2.js";
5
+ import "../../../globals/localization/vue-i18n.js";
6
+ import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
7
+ import P from "../../../../components/FieldBig/FieldBig.vue.js";
8
+ import E from "../sections/SectionProduct.vue.js";
9
+ import { actions as A, state as f } from "../../store/products.js";
10
+ import "../sections/HeroRecommendation.vue2.js";
11
+ import "./ProductRecommmendation.vue2.js";
12
+ import q from "../../../../../../_virtual/_plugin-vue_export-helper.js";
13
+ const B = {
14
+ id: "product-recommendation",
15
+ class: "h-min-100vh t-white bg-black"
16
+ }, C = {
17
+ key: 1,
18
+ class: "section"
19
+ }, L = {
20
+ key: 0,
21
+ class: "mn-b-big"
22
+ }, N = {
23
+ __name: "ProductRecommmendation",
24
+ setup(V) {
25
+ const r = T(), o = e(!0), b = e(!1), a = e([
26
+ "Loading all we know about the buds",
27
+ "Processing the cannabis universe",
28
+ "Creating a strain of knowledge",
29
+ "Harvesting taste insights"
30
+ ]), g = {
31
+ messages: {
32
+ en: {
33
+ TITLE: "Increase Your High,<br><b class='t-white'>Powered by AI Budtender</b>",
34
+ DESCRIPTION: "AI's got your chill, bro. We're picking out the most cosmic weed strains based on your desired vibe:",
35
+ placeholder: "Describe your desired high, bro...",
36
+ action: "Transmit Vibes →"
37
+ },
38
+ ru: {
39
+ TITLE: "Персональный Накур,<br><b class='t-white'>Напрямую от AI</b>",
40
+ DESCRIPTION: "AI на страже твоего релакса, бро. Мы подбираем самые космические сорта травы, исходя из твоего желаемого настроения:",
41
+ placeholder: "Опиши свой желамый хай, bro...",
42
+ action: "Передать Вайб →"
43
+ }
44
+ }
45
+ }, { t } = k(g), i = e(a.value[0]);
46
+ let m = e(r.currentRoute.value.query.mood || t("Recommend me something"));
47
+ I(async () => {
48
+ m.value = r.currentRoute.value.query.mood || t("Recommend me something"), o.value = !0, await A.submitMood(m.value), o.value = !1;
49
+ }), y(async () => {
50
+ }), setInterval(() => {
51
+ const d = a.value.indexOf(i.value);
52
+ i.value = a.value[(d + 1) % a.value.length];
53
+ }, 2e3);
54
+ let n = e(r.currentRoute.value.query.mood || t("Recommend me something"));
55
+ function _() {
56
+ r.push({ name: "Product Recommmendation", query: { mood: n.value } });
57
+ }
58
+ return (d, p) => (s(), u("div", B, [
59
+ o.value ? (s(), w(x, {
60
+ key: 0,
61
+ status: i.value,
62
+ class: "pos-fixed"
63
+ }, null, 8, ["status"])) : c("", !0),
64
+ !o.value && !b.value ? (s(), u("div", C, [
65
+ o.value ? c("", !0) : (s(), u("div", L, [
66
+ v(P, {
67
+ input: l(n),
68
+ loopTyping: !1,
69
+ enableTyping: !1,
70
+ placeholder: l(t)("placeholder"),
71
+ action: l(t)("action"),
72
+ "onUpdate:input": p[0] || (p[0] = (h) => R(n) ? n.value = h : n = h),
73
+ onAction: _,
74
+ class: "t-white bs-blur-regular w-100"
75
+ }, null, 8, ["input", "placeholder", "action"])
76
+ ])),
77
+ v(E, {
78
+ product: f.current,
79
+ recommendation: f.current.recommendation
80
+ }, null, 8, ["product", "recommendation"])
81
+ ])) : c("", !0)
82
+ ]));
83
+ }
84
+ }, G = /* @__PURE__ */ q(N, [["__scopeId", "data-v-5fd744d4"]]);
85
+ export {
86
+ G as default
87
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Field/Field.vue2.cjs"),L={key:0,class:"mn-b-small w-100"},k={class:"w-100 flex-nowrap flex"},w=["onClick"],E=e.createElementVNode("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("rect",{width:"24",height:"24",transform:"translate(1 1)"}),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",fill:"rgb(var(--white))"})],-1),g=[E],N=e.createElementVNode("hr",{class:"mn-b-medium"},null,-1),V=["onClick"],B=e.createElementVNode("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("rect",{width:"24",height:"24",transform:"translate(1 1)"}),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",fill:"rgb(var(--white))"})],-1),x=[B],C=e.createElementVNode("hr",{class:"mn-b-medium"},null,-1),U=["onClick"],y={__name:"EditModifications",props:{product:Object},emits:["add-modification","delete-modification","add-characteristic","delete-characteristic","submit"],setup(u,{emit:m}){const o=m,f=u,{product:r}=e.toRefs(f);function p(){o("add-modification")}function h(l){o("delete-modification",l)}function b(l){o("add-characteristic",l)}function _(l,d){o("delete-characteristic",{modIndex:l,charIndex:d})}function v(){o("submit")}return(l,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.unref(r).modifications.length==0?(e.openBlock(),e.createElementBlock("p",L,"У продукта еще не заданы модификации.")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).modifications,(n,i)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-small flex-column flex-wrap block",key:i},[e.createElementVNode("div",k,[e.createVNode(c.default,{field:n.quantity,"onUpdate:field":t=>n.quantity=t,disabled:!0,placeholder:"Количество",class:"mn-b-medium input-text input",type:"number"},null,8,["field","onUpdate:field"]),e.createVNode(c.default,{field:n.name,"onUpdate:field":t=>n.name=t,placeholder:"Новая модификация",class:"mn-b-medium input-text input"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:t=>h(i),class:"mn-l-small i-normal pd-regular button-delete button"},g,8,w)]),N,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.characteristics,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-medium w-100 flex-nowrap flex variants-wrapper",key:s},[e.createVNode(c.default,{field:t.name,"onUpdate:field":a=>t.name=a,placeholder:"Название параметра",class:"input-text input"},null,8,["field","onUpdate:field"]),e.createVNode(c.default,{field:t.value,"onUpdate:field":a=>t.value=a,placeholder:"Значение параметра",class:"mn-l-small input-text input"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:a=>_(i,s),class:"mn-l-small i-normal pd-regular button-delete button"},x,8,V)]))),128)),C,e.createElementVNode("button",{onClick:t=>b(i),class:"button"},"Добавить характеристику",8,U)]))),128)),e.createElementVNode("div",{class:"mn-b-big t-center flex-center flex block"},[e.createElementVNode("button",{onClick:p,class:"w-100"},"Добавить модификацю")]),e.createElementVNode("button",{onClick:d[0]||(d[0]=n=>v()),class:"button"},"Сохранить модификации")]))}};exports.default=y;
@@ -0,0 +1,138 @@
1
+ import { toRefs as U, openBlock as i, createElementBlock as o, unref as p, createCommentVNode as y, Fragment as h, renderList as b, createElementVNode as e, createVNode as r } from "vue";
2
+ import u from "../../../../components/Field/Field.vue2.js";
3
+ const M = {
4
+ key: 0,
5
+ class: "mn-b-small w-100"
6
+ }, B = { class: "w-100 flex-nowrap flex" }, $ = ["onClick"], E = /* @__PURE__ */ e("svg", {
7
+ width: "26",
8
+ height: "26",
9
+ viewBox: "0 0 26 26",
10
+ fill: "none",
11
+ xmlns: "http://www.w3.org/2000/svg"
12
+ }, [
13
+ /* @__PURE__ */ e("rect", {
14
+ width: "24",
15
+ height: "24",
16
+ transform: "translate(1 1)"
17
+ }),
18
+ /* @__PURE__ */ e("path", {
19
+ "fill-rule": "evenodd",
20
+ "clip-rule": "evenodd",
21
+ d: "M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",
22
+ fill: "rgb(var(--white))"
23
+ })
24
+ ], -1), N = [
25
+ E
26
+ ], V = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), q = ["onClick"], F = /* @__PURE__ */ e("svg", {
27
+ width: "26",
28
+ height: "26",
29
+ viewBox: "0 0 26 26",
30
+ fill: "none",
31
+ xmlns: "http://www.w3.org/2000/svg"
32
+ }, [
33
+ /* @__PURE__ */ e("rect", {
34
+ width: "24",
35
+ height: "24",
36
+ transform: "translate(1 1)"
37
+ }),
38
+ /* @__PURE__ */ e("path", {
39
+ "fill-rule": "evenodd",
40
+ "clip-rule": "evenodd",
41
+ d: "M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",
42
+ fill: "rgb(var(--white))"
43
+ })
44
+ ], -1), Z = [
45
+ F
46
+ ], j = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), O = ["onClick"], z = {
47
+ __name: "EditModifications",
48
+ props: {
49
+ product: Object
50
+ },
51
+ emits: ["add-modification", "delete-modification", "add-characteristic", "delete-characteristic", "submit"],
52
+ setup(_, { emit: L }) {
53
+ const d = L, v = _, { product: m } = U(v);
54
+ function w() {
55
+ d("add-modification");
56
+ }
57
+ function g(l) {
58
+ d("delete-modification", l);
59
+ }
60
+ function k(l) {
61
+ d("add-characteristic", l);
62
+ }
63
+ function x(l, s) {
64
+ d("delete-characteristic", { modIndex: l, charIndex: s });
65
+ }
66
+ function C() {
67
+ d("submit");
68
+ }
69
+ return (l, s) => (i(), o("div", null, [
70
+ p(m).modifications.length == 0 ? (i(), o("p", M, "У продукта еще не заданы модификации.")) : y("", !0),
71
+ (i(!0), o(h, null, b(p(m).modifications, (n, a) => (i(), o("div", {
72
+ class: "mn-b-small flex-column flex-wrap block",
73
+ key: a
74
+ }, [
75
+ e("div", B, [
76
+ r(u, {
77
+ field: n.quantity,
78
+ "onUpdate:field": (t) => n.quantity = t,
79
+ disabled: !0,
80
+ placeholder: "Количество",
81
+ class: "mn-b-medium input-text input",
82
+ type: "number"
83
+ }, null, 8, ["field", "onUpdate:field"]),
84
+ r(u, {
85
+ field: n.name,
86
+ "onUpdate:field": (t) => n.name = t,
87
+ placeholder: "Новая модификация",
88
+ class: "mn-b-medium input-text input"
89
+ }, null, 8, ["field", "onUpdate:field"]),
90
+ e("button", {
91
+ onClick: (t) => g(a),
92
+ class: "mn-l-small i-normal pd-regular button-delete button"
93
+ }, N, 8, $)
94
+ ]),
95
+ V,
96
+ (i(!0), o(h, null, b(n.characteristics, (t, f) => (i(), o("div", {
97
+ class: "mn-b-medium w-100 flex-nowrap flex variants-wrapper",
98
+ key: f
99
+ }, [
100
+ r(u, {
101
+ field: t.name,
102
+ "onUpdate:field": (c) => t.name = c,
103
+ placeholder: "Название параметра",
104
+ class: "input-text input"
105
+ }, null, 8, ["field", "onUpdate:field"]),
106
+ r(u, {
107
+ field: t.value,
108
+ "onUpdate:field": (c) => t.value = c,
109
+ placeholder: "Значение параметра",
110
+ class: "mn-l-small input-text input"
111
+ }, null, 8, ["field", "onUpdate:field"]),
112
+ e("button", {
113
+ onClick: (c) => x(a, f),
114
+ class: "mn-l-small i-normal pd-regular button-delete button"
115
+ }, Z, 8, q)
116
+ ]))), 128)),
117
+ j,
118
+ e("button", {
119
+ onClick: (t) => k(a),
120
+ class: "button"
121
+ }, "Добавить характеристику", 8, O)
122
+ ]))), 128)),
123
+ e("div", { class: "mn-b-big t-center flex-center flex block" }, [
124
+ e("button", {
125
+ onClick: w,
126
+ class: "w-100"
127
+ }, "Добавить модификацю")
128
+ ]),
129
+ e("button", {
130
+ onClick: s[0] || (s[0] = (n) => C()),
131
+ class: "button"
132
+ }, "Сохранить модификации")
133
+ ]));
134
+ }
135
+ };
136
+ export {
137
+ z as default
138
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Button/Button.vue2.cjs");const r=require("../../../../components/Field/Field.vue.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
+ "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,7 +1,7 @@
1
1
  import { openBlock as a, createElementBlock as u, Fragment as s, createVNode as d, withCtx as o } from "vue";
2
- import "../../../../components/Button/Button.vue2.js";
3
- import i from "../../../../components/Field/Field.vue.js";
4
- import r from "../../../../components/Select/Select.vue.js";
2
+ import "../../../../components/Button/Button.vue.js";
3
+ import i from "../../../../components/Field/Field.vue2.js";
4
+ import r from "../../../../components/Select/Select.vue2.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.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
+ "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,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.vue.js";
3
+ import F from "../../../../components/Checkbox/Checkbox.vue2.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";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -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
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;