@ozdao/prometheus-framework 0.2.46 → 0.2.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (396) hide show
  1. package/dist/main-AMWMdo3t.js +91 -0
  2. package/dist/main-R6dlNKp-.mjs +13606 -0
  3. package/dist/main.css +1 -1
  4. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  5. package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
  6. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  7. package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
  8. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  9. package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
  10. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  11. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
  12. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
  13. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  14. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
  15. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
  16. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
  17. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  18. package/dist/node_modules/ethereum-cryptography/esm/utils.js +3 -4
  19. package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
  20. package/dist/node_modules/vue3-carousel/dist/carousel.css.js +1 -4
  21. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  22. package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
  23. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
  24. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
  25. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  26. package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
  27. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
  28. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
  29. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  30. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
  31. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
  32. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
  33. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
  34. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
  35. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  36. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
  37. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  38. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
  39. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  40. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
  41. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  42. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
  43. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  44. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
  45. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
  46. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
  47. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  48. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
  49. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  50. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
  51. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
  52. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
  53. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  54. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
  55. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  56. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
  57. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  58. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
  59. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  60. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
  61. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  62. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
  63. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
  64. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
  65. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  66. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
  67. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  68. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
  69. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  70. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
  71. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  72. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
  73. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
  74. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
  75. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
  76. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
  77. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  78. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
  79. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  80. package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
  81. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
  82. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
  83. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
  84. package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
  85. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
  86. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
  87. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
  88. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
  89. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
  90. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
  91. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
  92. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
  93. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
  94. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
  95. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
  96. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
  97. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  98. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
  99. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
  100. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
  101. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
  102. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
  103. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/components/Address/Address.vue.js +1 -4
  105. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
  107. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -4
  109. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
  111. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  112. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -63
  113. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  114. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
  115. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  116. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
  117. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  118. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
  119. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
  121. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -4
  123. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  125. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  126. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +1 -4
  127. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
  129. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
  131. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
  133. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
  135. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +1 -4
  137. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
  139. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
  141. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
  143. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/Map/Map.vue.js +1 -4
  145. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  147. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
  149. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  151. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
  153. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
  155. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
  157. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
  159. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
  161. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  163. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +1 -4
  165. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  167. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  169. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
  171. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +1 -4
  173. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +1 -4
  175. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +1 -4
  177. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +1 -4
  179. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +1 -4
  181. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
  183. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  185. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  187. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +1 -4
  189. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  191. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +1 -4
  193. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  195. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  197. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +1 -4
  199. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +1 -4
  201. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  203. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  205. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
  207. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  209. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  210. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
  211. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  212. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  213. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  215. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
  217. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
  221. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +1 -4
  223. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  225. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +1 -4
  227. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +1 -4
  229. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +1 -4
  231. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  233. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  235. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  237. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +1 -4
  239. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +1 -4
  243. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  245. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
  247. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +1 -4
  249. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
  251. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -4
  253. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -4
  255. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +1 -4
  257. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  259. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  261. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +1 -4
  263. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  265. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  267. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +1 -4
  269. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +1 -4
  271. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +1 -4
  273. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +1 -4
  275. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  277. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +1 -4
  279. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +1 -4
  281. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  283. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  285. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +1 -4
  287. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  289. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  291. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +1 -4
  293. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +1 -4
  295. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +1 -4
  297. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  299. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  301. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  303. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  305. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +1 -4
  307. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +1 -4
  309. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +14 -14
  311. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +14 -14
  313. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +1 -4
  315. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +1 -4
  317. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  319. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +1 -4
  321. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
  323. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +1 -4
  325. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +1 -4
  327. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +1 -4
  329. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  331. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +1 -4
  333. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +1 -4
  335. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -21
  337. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +1 -4
  339. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +90 -80
  341. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +1 -4
  343. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +1 -4
  345. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +7 -6
  347. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  349. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  351. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +1 -4
  353. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -1
  354. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +1 -4
  355. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +1 -4
  357. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +51 -62
  359. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  361. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  363. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  365. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  367. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  369. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +1 -4
  371. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  373. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
  375. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +1 -4
  377. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  379. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  381. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
  383. package/dist/prometheus-framework.cjs.js +1 -1
  384. package/dist/prometheus-framework.es.js +1 -1
  385. package/dist/style.css +1 -1
  386. package/dist/web-HvAJWryM.js +1 -0
  387. package/dist/web-XMv5d7hK.mjs +55 -0
  388. package/package.json +1 -1
  389. package/src/components/Feed/Feed.vue +9 -7
  390. package/src/modules/products/components/blocks/CardPosition.vue +1 -1
  391. package/src/modules/products/components/blocks/CardProduct.vue +2 -3
  392. package/src/modules/products/components/pages/Product.vue +1 -1
  393. package/src/modules/products/components/pages/ProductEdit.vue +15 -0
  394. package/src/modules/products/components/pages/Products.vue +1 -0
  395. package/src/modules/products/components/sections/SectionProduct.vue +10 -10
  396. package/src/styles/base/all.scss +4 -1
@@ -1,40 +1,39 @@
1
- import { withAsyncContext as i, computed as s, onMounted as p, openBlock as n, createElementBlock as l, createTextVNode as d, toDisplayString as _, createBlock as f, createCommentVNode as h, createVNode as x } from "vue";
2
- import { useRoute as v, useRouter as y } from "vue-router";
1
+ import { withAsyncContext as i, computed as s, onMounted as p, openBlock as n, createElementBlock as d, createBlock as l, createCommentVNode as _, createVNode as f } from "vue";
2
+ import { useRoute as h, useRouter as x } from "vue-router";
3
3
  import { useI18n as k } from "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
- import B from "../sections/PopularProducts.vue.js";
7
- import g from "../sections/SectionProduct.vue.js";
6
+ import v from "../sections/PopularProducts.vue.js";
7
+ import B from "../sections/SectionProduct.vue.js";
8
8
  import "../../store/categories.js";
9
9
  import { useMeta as w } from "../../../../../../node_modules/vue-meta/dist/vue-meta.esm-browser.min.js";
10
- import { state as M } from "../../../auth/store/auth.js";
11
- import { actions as N, state as t } from "../../store/products.js";
10
+ import { state as y } from "../../../auth/store/auth.js";
11
+ import { actions as M, state as t } from "../../store/products.js";
12
12
  import "./Product.vue2.js";
13
- const V = { class: "flex flex-column w-100 o-hidden gap-thin pd-thin" }, G = {
13
+ const $ = { class: "flex flex-column w-100 o-hidden gap-thin pd-thin" }, G = {
14
14
  __name: "Product",
15
- async setup($) {
16
- let r, c;
17
- const e = v();
18
- y(), [r, c] = i(() => N.fetchProduct(e.params.product)), await r, c(), e.meta.title.en = t.current.name, e.meta.title.ru = t.current.name;
19
- const o = s(() => t.current), a = {
15
+ async setup(g) {
16
+ let o, r;
17
+ const e = h();
18
+ x(), [o, r] = i(() => M.fetchProduct(e.params.product)), await o, r(), e.meta.title.en = t.current.name, e.meta.title.ru = t.current.name;
19
+ const c = s(() => t.current), m = {
20
20
  messages: {
21
21
  en: {},
22
22
  ru: {}
23
23
  }
24
- }, { t: m } = k(a), u = s(() => ({
24
+ }, { t: a } = k(m), u = s(() => ({
25
25
  title: t.current.name,
26
- description: m("description")
26
+ description: a("description")
27
27
  }));
28
28
  return w(u), p(() => {
29
- }), (C, P) => (n(), l("div", V, [
30
- d(_(o.value.quantity) + " ", 1),
31
- o.value ? (n(), f(g, {
29
+ }), (C, N) => (n(), d("div", $, [
30
+ c.value ? (n(), l(B, {
32
31
  key: 0,
33
- product: o.value,
34
- user: M.user,
32
+ product: c.value,
33
+ user: y.user,
35
34
  class: "pos-relative"
36
- }, null, 8, ["product", "user"])) : h("", !0),
37
- x(B)
35
+ }, null, 8, ["product", "user"])) : _("", !0),
36
+ f(v)
38
37
  ]));
39
38
  }
40
39
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";
@@ -1,4 +1 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const o=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue2.cjs");const b=require("../../../../components/Checkbox/Checkbox.vue.cjs"),h=require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Popup/Popup.vue2.cjs");const x=require("../../../../components/EditImages/EditImages.vue.cjs"),p=require("../../../icons/navigation/IconDelete.vue.cjs"),g=require("../blocks/CardPosition.vue.cjs"),V=require("../sections/EditProductInfo.vue.cjs"),s=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),k=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const v={class:"for-transition w-100 cols-1 pd-thin gap-thin"},B={class:"mn-r-auto"},q={class:"cols-2 gap-thin"},C={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},y={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},E={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},U={__name:"ProductEdit",setup(D){const n=f.useRoute(),_=f.useRouter(),c=e.ref(t.state.all);e.onMounted(async()=>{await k.actions.fetchCategories();try{const u=await t.actions.read({organization:n.params._id,limit:100});c.value=u}catch{console.error("error")}n.params.product&&await t.actions.read({_id:n.params.product}),t.state.current.ingridients||(t.state.current.ingridients=[])});function w(){n.params.product?t.actions.update(n.params.product,t.state.current):t.actions.create(n.params._id,t.state.current)}function N(){t.actions.deleteProduct(t.state.current._id)}function m(){_.push({name:"Organization",params:{_id:n.params._id}})}return(u,i)=>(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(o.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",B,e.toDisplayString(e.unref(n).params.product?t.state.current.name:"Create Product"),1),e.unref(n).params.product?(e.openBlock(),e.createBlock(h.default,{key:0,submit:N,callback:m,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(h.default,{submit:w,callback:m,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(o.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(x.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":i[0]||(i[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",q,[e.createVNode(o.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(V.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(o.default,{title:"Categories"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.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(o.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(d.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(d.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(p.default,{onClick:()=>t.state.current.information.splice(r,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.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(d.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(d.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",y,[e.createVNode(p.default,{onClick:()=>t.state.current.localization.splice(r,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]),e.createVNode(o.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(d.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(d.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",E,[e.createVNode(p.default,{onClick:()=>t.state.current.quantityDiscount.splice(r,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Add Ingridient",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(g.default,{onAdd:i[1]||(i[1]=a=>s.actions.add(t.state.current.ingridients,a)),products:c.value},null,8,["products"]),e.createVNode(o.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(g.default,{key:a._id,product:a,array:t.state.current.ingridients,products:c.value,onAdd:i[2]||(i[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=U;
@@ -1,89 +1,99 @@
1
- import { ref as z, onMounted as N, openBlock as r, createElementBlock as o, createVNode as a, withCtx as n, createElementVNode as m, toDisplayString as P, unref as x, createBlock as g, createTextVNode as y, createCommentVNode as V, Fragment as p, renderList as f } from "vue";
2
- import { useRoute as q, useRouter as A } from "vue-router";
1
+ import { ref as N, onMounted as P, openBlock as i, createElementBlock as s, createVNode as a, withCtx as n, createElementVNode as m, toDisplayString as V, unref as x, createBlock as v, createTextVNode as k, createCommentVNode as q, Fragment as p, renderList as f } from "vue";
2
+ import { useRoute as A, useRouter as B } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
- import s from "../../../../components/Block/Block.vue.js";
6
+ import d from "../../../../components/Block/Block.vue.js";
7
7
  import "../../../../components/Tab/Tab.vue.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
- import E from "../../../../components/EditImages/EditImages.vue.js";
14
- import b from "../../../icons/navigation/IconDelete.vue.js";
15
- import U from "../blocks/CardPosition.vue.js";
8
+ import u from "../../../../components/Field/Field.vue2.js";
9
+ import "../../../../components/Select/Select.vue2.js";
10
+ import E from "../../../../components/Checkbox/Checkbox.vue.js";
11
+ import U from "../../../../components/Button/Button.vue2.js";
12
+ import "../../../../components/Popup/Popup.vue2.js";
13
+ import R from "../../../../components/EditImages/EditImages.vue.js";
14
+ import w from "../../../icons/navigation/IconDelete.vue.js";
15
+ import C from "../blocks/CardPosition.vue.js";
16
16
  import S from "../sections/EditProductInfo.vue.js";
17
- import { actions as _ } from "../../../globals/store/globals.js";
18
- import { state as e, actions as h } from "../../store/products.js";
17
+ import { actions as h } from "../../../globals/store/globals.js";
18
+ import { state as e, actions as _ } from "../../store/products.js";
19
19
  import { actions as T, state as F } from "../../store/categories.js";
20
20
  import "./ProductEdit.vue2.js";
21
- const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class: "mn-r-auto" }, R = { class: "cols-2 gap-thin" }, I = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, M = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, O = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, pe = {
21
+ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class: "mn-r-auto" }, I = { class: "cols-2 gap-thin" }, M = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, O = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, j = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, pe = {
22
22
  __name: "ProductEdit",
23
- setup(j) {
24
- const d = q(), C = A(), v = z(e.all);
25
- N(async () => {
26
- await T.fetchCategories(), d.params.product && await h.read({ _id: d.params.product });
23
+ setup(G) {
24
+ const o = A(), D = B(), g = N(e.all);
25
+ P(async () => {
26
+ await T.fetchCategories();
27
+ try {
28
+ const b = await _.read({
29
+ organization: o.params._id,
30
+ limit: 100
31
+ });
32
+ g.value = b;
33
+ } catch {
34
+ console.error("error");
35
+ }
36
+ o.params.product && await _.read({ _id: o.params.product }), e.current.ingridients || (e.current.ingridients = []);
27
37
  });
28
- function D() {
29
- d.params.product ? h.update(d.params.product, e.current) : h.create(d.params._id, e.current);
30
- }
31
38
  function $() {
32
- h.deleteProduct(e.current._id);
39
+ o.params.product ? _.update(o.params.product, e.current) : _.create(o.params._id, e.current);
40
+ }
41
+ function z() {
42
+ _.deleteProduct(e.current._id);
33
43
  }
34
- function w() {
35
- C.push({
44
+ function y() {
45
+ D.push({
36
46
  name: "Organization",
37
47
  params: {
38
- _id: d.params._id
48
+ _id: o.params._id
39
49
  }
40
50
  });
41
51
  }
42
- return (G, u) => (r(), o("div", L, [
43
- a(s, { class: "flex-nowrap flex-v-center flex" }, {
52
+ return (b, c) => (i(), s("div", L, [
53
+ a(d, { class: "flex-nowrap flex-v-center flex" }, {
44
54
  default: n(() => [
45
- m("h1", Q, P(x(d).params.product ? e.current.name : "Create Product"), 1),
46
- x(d).params.product ? (r(), g(k, {
55
+ m("h1", Q, V(x(o).params.product ? e.current.name : "Create Product"), 1),
56
+ x(o).params.product ? (i(), v(U, {
47
57
  key: 0,
48
- submit: $,
49
- callback: w,
58
+ submit: z,
59
+ callback: y,
50
60
  class: "bg-red mn-r-thin"
51
61
  }, {
52
62
  default: n(() => [
53
- y(" Delete ")
63
+ k(" Delete ")
54
64
  ]),
55
65
  _: 1
56
- })) : V("", !0),
57
- a(k, {
58
- submit: D,
59
- callback: w,
66
+ })) : q("", !0),
67
+ a(U, {
68
+ submit: $,
69
+ callback: y,
60
70
  class: "bg-main"
61
71
  }, {
62
72
  default: n(() => [
63
- y(" Save ")
73
+ k(" Save ")
64
74
  ]),
65
75
  _: 1
66
76
  })
67
77
  ]),
68
78
  _: 1
69
79
  }),
70
- a(s, {
80
+ a(d, {
71
81
  placeholder: "The product doesn't have any images yet.",
72
82
  class: "h-min"
73
83
  }, {
74
84
  default: n(() => [
75
- a(E, {
85
+ a(R, {
76
86
  images: e.current.images,
77
87
  uploadPath: "photos",
78
- "onUpdate:images": u[0] || (u[0] = (t) => {
88
+ "onUpdate:images": c[0] || (c[0] = (t) => {
79
89
  e.current.images = t;
80
90
  })
81
91
  }, null, 8, ["images"])
82
92
  ]),
83
93
  _: 1
84
94
  }),
85
- m("div", R, [
86
- a(s, { title: "Profile" }, {
95
+ m("div", I, [
96
+ a(d, { title: "Profile" }, {
87
97
  default: n(() => [
88
98
  a(S, {
89
99
  product: e.current
@@ -91,9 +101,9 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
91
101
  ]),
92
102
  _: 1
93
103
  }),
94
- a(s, { title: "Categories" }, {
104
+ a(d, { title: "Categories" }, {
95
105
  default: n(() => [
96
- (r(!0), o(p, null, f(F.all, (t, i) => (r(), g(B, {
106
+ (i(!0), s(p, null, f(F.all, (t, r) => (i(), v(E, {
97
107
  label: t.name,
98
108
  name: "categories",
99
109
  value: t.url,
@@ -104,7 +114,7 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
104
114
  ]),
105
115
  _: 1
106
116
  }),
107
- a(s, {
117
+ a(d, {
108
118
  title: "Parameters",
109
119
  placeholder: "No parameters added yet",
110
120
  actions: [{
@@ -114,25 +124,25 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
114
124
  class: "cols-1 gap-thin"
115
125
  }, {
116
126
  default: n(() => [
117
- (r(!0), o(p, null, f(e.current.information, (t, i) => (r(), o("div", {
127
+ (i(!0), s(p, null, f(e.current.information, (t, r) => (i(), s("div", {
118
128
  class: "gap-thin flex-nowrap flex",
119
- key: i
129
+ key: r
120
130
  }, [
121
- a(c, {
131
+ a(u, {
122
132
  field: t.name,
123
133
  "onUpdate:field": (l) => t.name = l,
124
134
  placeholder: "Название параметра",
125
135
  class: "w-100 bg-white radius-small pd-medium"
126
136
  }, null, 8, ["field", "onUpdate:field"]),
127
- a(c, {
137
+ a(u, {
128
138
  field: t.value,
129
139
  "onUpdate:field": (l) => t.value = l,
130
140
  placeholder: "Значение параметра",
131
141
  class: "w-100 bg-white radius-small pd-medium"
132
142
  }, null, 8, ["field", "onUpdate:field"]),
133
- m("div", I, [
134
- a(b, {
135
- onClick: () => e.current.information.splice(i, 1),
143
+ m("div", M, [
144
+ a(w, {
145
+ onClick: () => e.current.information.splice(r, 1),
136
146
  class: "i-medium"
137
147
  }, null, 8, ["onClick"])
138
148
  ])
@@ -140,7 +150,7 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
140
150
  ]),
141
151
  _: 1
142
152
  }, 8, ["actions"]),
143
- a(s, {
153
+ a(d, {
144
154
  title: "Localization",
145
155
  placeholder: "No localizations added yet",
146
156
  actions: [{
@@ -149,25 +159,25 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
149
159
  }]
150
160
  }, {
151
161
  default: n(() => [
152
- (r(!0), o(p, null, f(e.current.localization, (t, i) => (r(), o("div", {
162
+ (i(!0), s(p, null, f(e.current.localization, (t, r) => (i(), s("div", {
153
163
  class: "gap-thin mn-b-thin flex-nowrap flex",
154
- key: i
164
+ key: r
155
165
  }, [
156
- a(c, {
166
+ a(u, {
157
167
  field: t.name,
158
168
  "onUpdate:field": (l) => t.name = l,
159
169
  placeholder: "Название параметра",
160
170
  class: "w-100 bg-white radius-small pd-medium"
161
171
  }, null, 8, ["field", "onUpdate:field"]),
162
- a(c, {
172
+ a(u, {
163
173
  field: t.value,
164
174
  "onUpdate:field": (l) => t.value = l,
165
175
  placeholder: "Значение параметра",
166
176
  class: "w-100 bg-white radius-small pd-medium"
167
177
  }, null, 8, ["field", "onUpdate:field"]),
168
- m("div", M, [
169
- a(b, {
170
- onClick: () => e.current.localization.splice(i, 1),
178
+ m("div", O, [
179
+ a(w, {
180
+ onClick: () => e.current.localization.splice(r, 1),
171
181
  class: "i-medium"
172
182
  }, null, 8, ["onClick"])
173
183
  ])
@@ -176,7 +186,7 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
176
186
  _: 1
177
187
  }, 8, ["actions"])
178
188
  ]),
179
- a(s, {
189
+ a(d, {
180
190
  title: "Quantity Discount",
181
191
  class: "mn-b-semi",
182
192
  actions: [{
@@ -185,25 +195,25 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
185
195
  }]
186
196
  }, {
187
197
  default: n(() => [
188
- (r(!0), o(p, null, f(e.current.quantityDiscount, (t, i) => (r(), o("div", {
198
+ (i(!0), s(p, null, f(e.current.quantityDiscount, (t, r) => (i(), s("div", {
189
199
  class: "gap-thin mn-b-thin flex-nowrap flex",
190
- key: i
200
+ key: r
191
201
  }, [
192
- a(c, {
202
+ a(u, {
193
203
  field: t.name,
194
204
  "onUpdate:field": (l) => t.name = l,
195
205
  placeholder: "Quantity",
196
206
  class: "w-100 bg-white radius-small pd-medium"
197
207
  }, null, 8, ["field", "onUpdate:field"]),
198
- a(c, {
208
+ a(u, {
199
209
  field: t.value,
200
210
  "onUpdate:field": (l) => t.value = l,
201
211
  placeholder: "Discount",
202
212
  class: "w-100 bg-white radius-small pd-medium"
203
213
  }, null, 8, ["field", "onUpdate:field"]),
204
- m("div", O, [
205
- a(b, {
206
- onClick: () => e.current.quantityDiscount.splice(i, 1),
214
+ m("div", j, [
215
+ a(w, {
216
+ onClick: () => e.current.quantityDiscount.splice(r, 1),
207
217
  class: "i-medium"
208
218
  }, null, 8, ["onClick"])
209
219
  ])
@@ -211,41 +221,41 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
211
221
  ]),
212
222
  _: 1
213
223
  }, 8, ["actions"]),
214
- a(s, {
224
+ a(d, {
215
225
  title: "Add Ingridient",
216
226
  class: "mn-b-semi"
217
227
  }, {
218
228
  default: n(() => [
219
- a(U, {
220
- onAdd: u[1] || (u[1] = (t) => _.add(
229
+ a(C, {
230
+ onAdd: c[1] || (c[1] = (t) => h.add(
221
231
  e.current.ingridients,
222
232
  t
223
233
  )),
224
- products: v.value
234
+ products: g.value
225
235
  }, null, 8, ["products"]),
226
- a(s, {
236
+ a(d, {
227
237
  placeholder: "No positions added yet",
228
238
  class: "pd-zero mn-b-semi"
229
239
  }, {
230
240
  default: n(() => [
231
- (r(!0), o(p, null, f(e.current.ingridients, (t, i) => (r(), g(U, {
241
+ (i(!0), s(p, null, f(e.current.ingridients, (t, r) => (i(), v(C, {
232
242
  key: t._id,
233
243
  product: t,
234
244
  array: e.current.ingridients,
235
- products: v.value,
236
- onAdd: u[2] || (u[2] = (l) => _.add(
245
+ products: g.value,
246
+ onAdd: c[2] || (c[2] = (l) => h.add(
237
247
  e.current.ingridients,
238
248
  l
239
249
  )),
240
- onUpdate: (l) => _.update(
250
+ onUpdate: (l) => h.update(
241
251
  e.current.ingridients,
242
252
  l,
243
- i
253
+ r
244
254
  ),
245
- onDelete: (l) => _.delete(
255
+ onDelete: (l) => h.delete(
246
256
  e.current.ingridients,
247
257
  l,
248
- i
258
+ r
249
259
  )
250
260
  }, null, 8, ["product", "array", "products", "onUpdate", "onDelete"]))), 128))
251
261
  ]),
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";
@@ -1,4 +1 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";
@@ -1,4 +1 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),a=require("../sections/FilterProducts.vue.cjs"),i=require("../../../../components/Feed/Feed.vue.cjs"),c=require("../blocks/CardProduct.vue.cjs"),s=require("../../store/products.cjs"),d={class:"cols-2-1_3 bg-grey radius-big gap-thin pd-thin"},l={__name:"Products",setup(p){const t=u.useRoute();return u.useRouter(),(n,_)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(a.default),e.createVNode(i.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:r=>s.actions.read(r),state:s.state},options:{limit:15,organization:e.unref(t).params._id,categories:e.unref(t).query.categories,prices:e.unref(t).query.prices,delivery:e.unref(t).query.delivery},class:"cols-3 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,o=>(e.openBlock(),e.createBlock(c.default,{key:o._id,product:o,onClick:f=>n.$router.push({name:"Product Organization",params:{_id:e.unref(t).params._id,product:o._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])]))}};exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),n=require("../sections/FilterProducts.vue.cjs"),i=require("../../../../components/Feed/Feed.vue.cjs"),c=require("../blocks/CardProduct.vue.cjs"),u=require("../../store/products.cjs"),l={class:"cols-2-1_3 bg-grey radius-big gap-thin pd-thin"},d={__name:"Products",setup(p){const t=s.useRoute();return s.useRouter(),(a,_)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(n.default),e.createVNode(i.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:r=>u.actions.read(r),state:u.state},options:{limit:15,organization:e.unref(t).params._id,categories:e.unref(t).query.categories,prices:e.unref(t).query.prices,delivery:e.unref(t).query.delivery},class:"cols-3 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,o=>(e.openBlock(),e.createBlock(c.default,{key:o._id,product:o,class:"h-max",onClick:m=>a.$router.push({name:"Product Organization",params:{_id:e.unref(t).params._id,product:o._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])]))}};exports.default=d;
@@ -1,14 +1,14 @@
1
- import { openBlock as i, createElementBlock as s, createVNode as a, unref as t, withCtx as c, Fragment as u, renderList as p, createBlock as m } from "vue";
1
+ import { openBlock as s, createElementBlock as i, createVNode as a, unref as t, withCtx as c, Fragment as u, renderList as m, createBlock as p } from "vue";
2
2
  import { useRoute as d, useRouter as l } from "vue-router";
3
3
  import _ from "../sections/FilterProducts.vue.js";
4
4
  import f from "../../../../components/Feed/Feed.vue.js";
5
5
  import g from "../blocks/CardProduct.vue.js";
6
- import { actions as y, state as h } from "../../store/products.js";
6
+ import { actions as h, state as y } from "../../store/products.js";
7
7
  const k = { class: "cols-2-1_3 bg-grey radius-big gap-thin pd-thin" }, F = {
8
8
  __name: "Products",
9
9
  setup(v) {
10
10
  const e = d();
11
- return l(), (n, $) => (i(), s("div", k, [
11
+ return l(), (n, $) => (s(), i("div", k, [
12
12
  a(_),
13
13
  a(f, {
14
14
  states: {
@@ -18,8 +18,8 @@ const k = { class: "cols-2-1_3 bg-grey radius-big gap-thin pd-thin" }, F = {
18
18
  }
19
19
  },
20
20
  store: {
21
- read: (r) => y.read(r),
22
- state: h
21
+ read: (r) => h.read(r),
22
+ state: y
23
23
  },
24
24
  options: {
25
25
  limit: 15,
@@ -34,9 +34,10 @@ const k = { class: "cols-2-1_3 bg-grey radius-big gap-thin pd-thin" }, F = {
34
34
  default: c(({
35
35
  items: r
36
36
  }) => [
37
- (i(!0), s(u, null, p(r, (o) => (i(), m(g, {
37
+ (s(!0), i(u, null, m(r, (o) => (s(), p(g, {
38
38
  key: o._id,
39
39
  product: o,
40
+ class: "h-max",
40
41
  onClick: (C) => n.$router.push({
41
42
  name: "Product Organization",
42
43
  params: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Button/Button.vue.cjs");const r=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Select/Select.vue2.cjs"),i={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,l)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(u.default,{select:e.product.status,"onUpdate:select":l[0]||(l[0]=t=>e.product.status=t),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":l[1]||(l[1]=t=>e.product.name=t),label:"Name",placeholder:"Введите название",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":l[3]||(l[3]=t=>e.product.price=t),label:"Price",placeholder:"Введите цену",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(u.default,{select:e.product.price.currency,"onUpdate:select":l[2]||(l[2]=t=>e.product.price.currency=t),placeholder:"฿",options:["฿"],class:"pos-relative bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":l[4]||(l[4]=t=>e.product.description=t),label:"Description",placeholder:"Введите описание",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Button/Button.vue.cjs");const r=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Select/Select.vue.cjs"),i={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,l)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(u.default,{select:e.product.status,"onUpdate:select":l[0]||(l[0]=t=>e.product.status=t),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":l[1]||(l[1]=t=>e.product.name=t),label:"Name",placeholder:"Введите название",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":l[3]||(l[3]=t=>e.product.price=t),label:"Price",placeholder:"Введите цену",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(u.default,{select:e.product.price.currency,"onUpdate:select":l[2]||(l[2]=t=>e.product.price.currency=t),placeholder:"฿",options:["฿"],class:"pos-relative bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":l[4]||(l[4]=t=>e.product.description=t),label:"Description",placeholder:"Введите описание",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=i;
@@ -1,7 +1,7 @@
1
1
  import { openBlock as a, createElementBlock as u, Fragment as s, createVNode as d, withCtx as o } from "vue";
2
2
  import "../../../../components/Button/Button.vue.js";
3
3
  import i from "../../../../components/Field/Field.vue2.js";
4
- import r from "../../../../components/Select/Select.vue2.js";
4
+ import r from "../../../../components/Select/Select.vue.js";
5
5
  const f = {
6
6
  __name: "EditProductInfo",
7
7
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),f=require("../../../../components/Checkbox/Checkbox.vue2.cjs"),x=require("vue-i18n"),g=require("vue-router"),u=require("../../store/categories.cjs"),a=require("../../../marketplace/store/marketplace.cjs");require("./FilterProducts.vue2.cjs");const w={class:"pd-medium bg-grey radius-big"},q={class:"cursor-pointer mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),F={class:"cursor-pointer mn-r-auto t-medium p-big"},B=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),C={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under 300฿",value:"<300"},{label:"300฿ to 600฿",value:"300-600"},{label:"600฿ to 1200฿",value:"600-1200"},{label:"$1200 and above",value:">1200"}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(y,{emit:h}){let d,m;const n=g.useRoute(),v=g.useRouter();[d,m]=e.withAsyncContext(()=>u.actions.fetchCategories()),await d,m(),e.ref({categories:[],prices:[],delivery:[],extra:[]}),e.watch(()=>a.state.filter,(t,r)=>{const l={...n.query};Object.keys(r).forEach(s=>{l[s]&&delete l[s]});const i=Object.fromEntries(Object.entries(t).filter(([s,o])=>Array.isArray(o)&&o.length>0).map(([s,o])=>[s,o.join(",")]));Object.assign(l,i),v.push({query:l})},{deep:!0}),e.onMounted(async()=>{if(n.query){const t=n.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};a.state.filter=r}});const _=h,k=()=>{_("resetFilters")},p={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(t=>{t.localization.forEach(r=>{p.messages[r.locale].categories.push(r.text)})});const{t:c}=x.useI18n(p);return(t,r)=>(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(b.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",q,e.toDisplayString(e.unref(c)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(l,i)=>(e.openBlock(),e.createBlock(f.default,{key:i,label:l.name,value:l.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:a.state.filter.categories,"onUpdate:radio":r[0]||(r[0]=s=>a.state.filter.categories=s)},null,8,["label","value","radio"]))),128))]),_:1}),E,e.createVNode(b.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.prices,(l,i)=>(e.openBlock(),e.createBlock(f.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.prices,"onUpdate:radio":r[1]||(r[1]=s=>a.state.filter.prices=s)},null,8,["label","value","radio"]))),128))]),_:1}),B,e.createElementVNode("button",{onClick:k,class:"bg-main w-100 button"},e.toDisplayString(e.unref(c)("filters.reset")),1)]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),f=require("../../../../components/Checkbox/Checkbox.vue.cjs"),x=require("vue-i18n"),g=require("vue-router"),u=require("../../store/categories.cjs"),a=require("../../../marketplace/store/marketplace.cjs");require("./FilterProducts.vue2.cjs");const w={class:"pd-medium bg-grey radius-big"},q={class:"cursor-pointer mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),F={class:"cursor-pointer mn-r-auto t-medium p-big"},B=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),C={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under 300฿",value:"<300"},{label:"300฿ to 600฿",value:"300-600"},{label:"600฿ to 1200฿",value:"600-1200"},{label:"$1200 and above",value:">1200"}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(y,{emit:h}){let d,m;const n=g.useRoute(),v=g.useRouter();[d,m]=e.withAsyncContext(()=>u.actions.fetchCategories()),await d,m(),e.ref({categories:[],prices:[],delivery:[],extra:[]}),e.watch(()=>a.state.filter,(t,r)=>{const l={...n.query};Object.keys(r).forEach(s=>{l[s]&&delete l[s]});const i=Object.fromEntries(Object.entries(t).filter(([s,o])=>Array.isArray(o)&&o.length>0).map(([s,o])=>[s,o.join(",")]));Object.assign(l,i),v.push({query:l})},{deep:!0}),e.onMounted(async()=>{if(n.query){const t=n.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};a.state.filter=r}});const _=h,k=()=>{_("resetFilters")},p={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(t=>{t.localization.forEach(r=>{p.messages[r.locale].categories.push(r.text)})});const{t:c}=x.useI18n(p);return(t,r)=>(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(b.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",q,e.toDisplayString(e.unref(c)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(l,i)=>(e.openBlock(),e.createBlock(f.default,{key:i,label:l.name,value:l.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:a.state.filter.categories,"onUpdate:radio":r[0]||(r[0]=s=>a.state.filter.categories=s)},null,8,["label","value","radio"]))),128))]),_:1}),E,e.createVNode(b.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.prices,(l,i)=>(e.openBlock(),e.createBlock(f.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.prices,"onUpdate:radio":r[1]||(r[1]=s=>a.state.filter.prices=s)},null,8,["label","value","radio"]))),128))]),_:1}),B,e.createElementVNode("button",{onClick:k,class:"bg-main w-100 button"},e.toDisplayString(e.unref(c)("filters.reset")),1)]))}};exports.default=C;
@@ -1,6 +1,6 @@
1
1
  import { withAsyncContext as A, ref as P, watch as T, onMounted as V, openBlock as a, createElementBlock as d, createVNode as h, withCtx as c, createElementVNode as o, toDisplayString as p, unref as b, Fragment as _, renderList as v, createBlock as x } from "vue";
2
2
  import w from "../../../../components/Spoiler/Spoiler.vue2.js";
3
- import F from "../../../../components/Checkbox/Checkbox.vue2.js";
3
+ import F from "../../../../components/Checkbox/Checkbox.vue.js";
4
4
  import { useI18n as B } from "vue-i18n";
5
5
  import { useRoute as R, useRouter as U } from "vue-router";
6
6
  import { actions as $, state as k } from "../../store/categories.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";
@@ -1,4 +1 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";
@@ -1,4 +1 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";
@@ -1,4 +1 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+