@ozdao/prometheus-framework 0.2.44 → 0.2.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (422) hide show
  1. package/dist/main-AMWMdo3t.js +91 -0
  2. package/dist/main-R6dlNKp-.mjs +13606 -0
  3. package/dist/main.css +1 -1
  4. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  5. package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
  6. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  7. package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
  8. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  9. package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
  10. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  11. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
  12. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
  13. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  14. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
  15. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
  16. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
  17. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  18. package/dist/node_modules/ethereum-cryptography/esm/utils.js +3 -4
  19. package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
  20. package/dist/node_modules/vue3-carousel/dist/carousel.css.js +1 -4
  21. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  22. package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
  23. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
  24. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
  25. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  26. package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
  27. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
  28. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
  29. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  30. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
  31. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
  32. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
  33. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
  34. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
  35. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  36. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
  37. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  38. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
  39. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  40. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
  41. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  42. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
  43. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  44. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
  45. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
  46. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
  47. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  48. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
  49. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  50. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
  51. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
  52. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
  53. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  54. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
  55. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  56. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
  57. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  58. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
  59. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  60. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
  61. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  62. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
  63. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
  64. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
  65. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  66. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
  67. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  68. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
  69. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  70. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
  71. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  72. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
  73. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
  74. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
  75. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
  76. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
  77. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  78. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
  79. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  80. package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
  81. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
  82. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
  83. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
  84. package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
  85. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
  86. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
  87. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
  88. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
  89. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
  90. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
  91. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
  92. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
  93. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
  94. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
  95. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
  96. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
  97. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  98. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
  99. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
  100. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
  101. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
  102. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
  103. package/dist/products.server.js +875 -0
  104. package/dist/products.server.mjs +875 -0
  105. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/components/Address/Address.vue.js +1 -4
  107. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
  109. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -4
  111. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
  113. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  114. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -63
  115. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  116. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
  117. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  118. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
  119. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  120. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
  121. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
  123. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -4
  125. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +18 -18
  127. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  129. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +1 -4
  131. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
  133. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
  135. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
  137. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
  139. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  140. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +1 -4
  141. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
  145. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
  147. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/Map/Map.vue.js +1 -4
  149. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  151. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
  153. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  155. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
  157. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
  159. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
  161. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
  163. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
  165. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  167. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +1 -4
  169. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  171. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
  175. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +1 -4
  177. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +1 -4
  179. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +1 -4
  181. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +1 -4
  183. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +1 -4
  185. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
  187. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  189. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  191. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +1 -4
  193. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  195. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +1 -4
  197. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  199. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  201. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +1 -4
  203. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +1 -4
  205. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  207. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  209. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
  211. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  213. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  214. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
  215. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  216. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  217. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
  221. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  223. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
  225. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +1 -4
  227. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  229. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +1 -4
  231. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +1 -4
  233. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +1 -4
  235. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  237. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  239. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +1 -4
  243. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +1 -4
  247. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  249. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
  251. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +1 -4
  253. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
  255. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -4
  257. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -4
  259. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  261. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +1 -4
  263. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  265. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  267. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +1 -4
  269. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  271. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +1 -4
  275. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +1 -4
  277. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +1 -4
  279. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +1 -4
  281. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  283. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +1 -4
  285. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +1 -4
  287. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  289. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  291. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +1 -4
  293. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  295. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  297. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +1 -4
  299. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +1 -4
  301. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +1 -4
  303. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  305. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  307. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  309. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  311. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +1 -4
  313. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +1 -4
  315. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +14 -14
  317. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +14 -14
  319. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.cjs +1 -0
  320. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.js +43 -0
  321. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -0
  322. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +1 -0
  323. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +1 -4
  325. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  327. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +1 -4
  329. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  331. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
  333. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +39 -2
  335. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -0
  336. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +1 -0
  337. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +1 -4
  339. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +1 -4
  341. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  343. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +1 -4
  345. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +1 -4
  347. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -21
  349. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +1 -4
  351. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +90 -80
  353. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  354. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +1 -4
  355. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -0
  356. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +87 -0
  357. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -0
  358. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +1 -0
  359. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +7 -6
  361. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -0
  362. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +138 -0
  363. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  365. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  367. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +1 -4
  369. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -0
  370. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +114 -0
  371. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -0
  372. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +1 -0
  373. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +1 -4
  375. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +51 -62
  377. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -0
  378. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +53 -0
  379. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -0
  380. package/dist/prometheus-framework/src/modules/products/products.client.js +56 -0
  381. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  383. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  384. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  385. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  386. package/dist/prometheus-framework/src/modules/products/store/products.js +3 -1
  387. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  388. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  389. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  391. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +1 -4
  393. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  395. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  396. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
  397. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  398. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +1 -4
  399. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  401. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  403. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
  404. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
  405. package/dist/prometheus-framework.cjs.js +1 -1
  406. package/dist/prometheus-framework.es.js +1 -1
  407. package/dist/style.css +1 -1
  408. package/dist/web-HvAJWryM.js +1 -0
  409. package/dist/web-XMv5d7hK.mjs +55 -0
  410. package/package.json +1 -1
  411. package/src/components/Feed/Feed.vue +9 -7
  412. package/src/modules/products/components/blocks/CardPosition.vue +1 -1
  413. package/src/modules/products/components/blocks/CardProduct.vue +2 -3
  414. package/src/modules/products/components/pages/Product.vue +1 -1
  415. package/src/modules/products/components/pages/ProductEdit.vue +15 -0
  416. package/src/modules/products/components/pages/ProductRecommmendation.vue +2 -2
  417. package/src/modules/products/components/pages/Products.vue +1 -0
  418. package/src/modules/products/components/sections/SectionProduct.vue +10 -10
  419. package/src/modules/products/products.client.js +76 -20
  420. package/src/modules/products/products.server.js +8 -4
  421. package/src/modules/products/router/products.router.js +4 -2
  422. package/src/styles/base/all.scss +4 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-i18n"),a=require("../elements/THC.vue.cjs"),n=require("../elements/Price.vue.cjs"),l=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),i=["src"],r={class:"pd-medium t-left product-card-content"},u={class:"mn-b-thin t-semi h4"},d={key:1,class:"mn-b-small t-transp p-small"},s={__name:"CardProduct",props:["product"],setup(t){return c.useI18n(),(o,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big cols-1 o-hidden",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 pos-relative aspect-1x1",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.product.images[0],class:"pos-absolute object-fit-cover h-max-100 w-100"},null,8,i)):(e.openBlock(),e.createBlock(l.default,{key:1,class:"pos-absolute h-100 w-100"})),t.product.information.length>0?(e.openBlock(),e.createBlock(a.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",r,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",u,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",d,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(n.default,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])])],2))}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-i18n"),n=require("../elements/THC.vue.cjs"),a=require("../elements/Price.vue.cjs"),i=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),l=["src"],r={class:"pd-medium t-left product-card-content"},u={class:"mn-b-thin t-semi h4"},d={key:1,class:"mn-b-small t-transp p-small"},s={__name:"CardProduct",props:["product"],setup(t){return c.useI18n(),(o,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big cols-1 o-hidden",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 pos-relative aspect-1x1",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.product.images[0],class:"pos-absolute object-fit-cover h-max-100 w-100"},null,8,l)):(e.openBlock(),e.createBlock(i.default,{key:1,class:"pos-absolute h-100 w-100"})),t.product.information.length>0&&t.product.information[1].name==="THC"?(e.openBlock(),e.createBlock(n.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",r,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",u,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",d,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(a.default,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])])],2))}};exports.default=s;
@@ -1,23 +1,23 @@
1
- import { openBlock as o, createElementBlock as e, normalizeClass as c, createElementVNode as i, createBlock as r, createCommentVNode as a, toDisplayString as n, createVNode as l } from "vue";
2
- import { useI18n as u } from "vue-i18n";
3
- import m from "../elements/THC.vue.js";
1
+ import { openBlock as o, createElementBlock as e, normalizeClass as i, createElementVNode as c, createBlock as r, createCommentVNode as a, toDisplayString as n, createVNode as l } from "vue";
2
+ import { useI18n as m } from "vue-i18n";
3
+ import u from "../elements/THC.vue.js";
4
4
  import s from "../elements/Price.vue.js";
5
5
  import f from "../../../icons/placeholders/PlaceholderImage.vue.js";
6
6
  const h = ["src"], A = { class: "pd-medium t-left product-card-content" }, b = { class: "mn-b-thin t-semi h4" }, g = {
7
7
  key: 1,
8
8
  class: "mn-b-small t-transp p-small"
9
- }, V = {
9
+ }, C = {
10
10
  __name: "CardProduct",
11
11
  props: ["product"],
12
12
  setup(t) {
13
- return u(), (d, p) => (o(), e("div", {
14
- class: c([
13
+ return m(), (d, p) => (o(), e("div", {
14
+ class: i([
15
15
  "radius-big cols-1 o-hidden",
16
16
  t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black t-white" : "bg-white"
17
17
  ])
18
18
  }, [
19
- i("div", {
20
- class: c([
19
+ c("div", {
20
+ class: i([
21
21
  "o-hidden w-100 pos-relative aspect-1x1",
22
22
  t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black" : "bg-white"
23
23
  ])
@@ -30,25 +30,25 @@ const h = ["src"], A = { class: "pd-medium t-left product-card-content" }, b = {
30
30
  key: 1,
31
31
  class: "pos-absolute h-100 w-100"
32
32
  })),
33
- t.product.information.length > 0 ? (o(), r(m, {
33
+ t.product.information.length > 0 && t.product.information[1].name === "THC" ? (o(), r(u, {
34
34
  key: 2,
35
35
  product: t.product
36
36
  }, null, 8, ["product"])) : a("", !0)
37
37
  ], 2),
38
- i("div", A, [
38
+ c("div", A, [
39
39
  t.product.information.length > 0 ? (o(), e("p", {
40
40
  key: 0,
41
- class: c([
41
+ class: i([
42
42
  "t-semi h6",
43
43
  t.product.information[2] && t.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
44
44
  ])
45
45
  }, n(t.product.information[0].value), 3)) : a("", !0),
46
- i("p", b, n(t.product.name), 1),
46
+ c("p", b, n(t.product.name), 1),
47
47
  t.product.description && !t.product.localization ? (o(), e("p", g, n(t.product.description.substring(0, 99)) + "... ", 1)) : a("", !0),
48
48
  l(s, {
49
49
  product: t.product,
50
50
  size: "small",
51
- class: c(
51
+ class: i(
52
52
  t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-third t-white" : ""
53
53
  )
54
54
  }, null, 8, ["product", "class"])
@@ -57,5 +57,5 @@ const h = ["src"], A = { class: "pd-medium t-left product-card-content" }, b = {
57
57
  }
58
58
  };
59
59
  export {
60
- V as default
60
+ C as default
61
61
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./CategoryCard.vue2.cjs");const s=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c={props:["category"],name:"CategoryCard",setup(t){return e.onMounted(()=>{}),{}},methods:{deleteCategory(t){this.$store.commit("categories/deleteCategory",t),this.$store.dispatch("categories/deleteCategory",t.url)}}},l={class:"card"},i={class:"flex-v-center flex"},d={class:"actions"};function u(t,r,o,_,g,n){const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("div",i,[e.createElementVNode("h4",null,e.toDisplayString(o.category.name),1),e.createElementVNode("div",d,[e.createVNode(a,{to:"/admin/categories/"+o.category.url+"/edit",class:"mn-r-medium nav-link"},{default:e.withCtx(()=>[e.createTextVNode("Редактировать")]),_:1},8,["to"]),e.createElementVNode("a",{class:"nav-link",onClick:r[0]||(r[0]=p=>n.deleteCategory(o.category))},"Удалить")])])])}const m=s.default(c,[["render",u]]);exports.default=m;
@@ -0,0 +1,43 @@
1
+ import { onMounted as s, resolveComponent as c, openBlock as i, createElementBlock as l, createElementVNode as t, toDisplayString as d, createVNode as m, withCtx as _, createTextVNode as u } from "vue";
2
+ import "./CategoryCard.vue2.js";
3
+ import g from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = {
5
+ props: ["category"],
6
+ name: "CategoryCard",
7
+ setup(e) {
8
+ return s(() => {
9
+ }), {};
10
+ },
11
+ methods: {
12
+ deleteCategory(e) {
13
+ this.$store.commit("categories/deleteCategory", e), this.$store.dispatch("categories/deleteCategory", e.url);
14
+ }
15
+ }
16
+ }, C = { class: "card" }, f = { class: "flex-v-center flex" }, y = { class: "actions" };
17
+ function h(e, r, o, v, k, a) {
18
+ const n = c("router-link");
19
+ return i(), l("div", C, [
20
+ t("div", f, [
21
+ t("h4", null, d(o.category.name), 1),
22
+ t("div", y, [
23
+ m(n, {
24
+ to: "/admin/categories/" + o.category.url + "/edit",
25
+ class: "mn-r-medium nav-link"
26
+ }, {
27
+ default: _(() => [
28
+ u("Редактировать")
29
+ ]),
30
+ _: 1
31
+ }, 8, ["to"]),
32
+ t("a", {
33
+ class: "nav-link",
34
+ onClick: r[0] || (r[0] = (x) => a.deleteCategory(o.category))
35
+ }, "Удалить")
36
+ ])
37
+ ])
38
+ ]);
39
+ }
40
+ const B = /* @__PURE__ */ g(p, [["render", h]]);
41
+ export {
42
+ B as default
43
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";
@@ -1,4 +1 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Popup/Popup.vue2.cjs"),c=require("../../../../components/Magnifier/Magnifier.vue.cjs");require("./ImagesThumbnails.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),p={class:"product-images"},m={class:"no-responsive cols-4 gap-thin"},_=["src","onClick"],g={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(o){const t=e.ref(!1),n=e.ref(0),a=s=>{n.value=s,t.value=!0},i=()=>{t.value=!1};return(s,v)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.images,(l,r)=>(e.openBlock(),e.createElementBlock("img",{key:r,src:(s.FILE_SERVER_URL||"")+l,onClick:h=>a(r),class:"radius-medium bg-white o-hidden thumbnail"},null,8,_))),128))]),e.createVNode(u.default,{onClosePopup:i,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(c.default,{imageSrc:(s.FILE_SERVER_URL||"")+o.images[n.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},f=d.default(g,[["__scopeId","data-v-5058c750"]]);exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Popup/Popup.vue.cjs"),c=require("../../../../components/Magnifier/Magnifier.vue.cjs");require("./ImagesThumbnails.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),p={class:"product-images"},m={class:"no-responsive cols-4 gap-thin"},_=["src","onClick"],g={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(o){const t=e.ref(!1),n=e.ref(0),a=s=>{n.value=s,t.value=!0},i=()=>{t.value=!1};return(s,v)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.images,(l,r)=>(e.openBlock(),e.createElementBlock("img",{key:r,src:(s.FILE_SERVER_URL||"")+l,onClick:h=>a(r),class:"radius-medium bg-white o-hidden thumbnail"},null,8,_))),128))]),e.createVNode(u.default,{onClosePopup:i,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(c.default,{imageSrc:(s.FILE_SERVER_URL||"")+o.images[n.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},f=d.default(g,[["__scopeId","data-v-5058c750"]]);exports.default=f;
@@ -1,5 +1,5 @@
1
1
  import { ref as r, openBlock as o, createElementBlock as i, createElementVNode as p, Fragment as d, renderList as _, createVNode as c, withCtx as g } from "vue";
2
- import f from "../../../../components/Popup/Popup.vue2.js";
2
+ import f from "../../../../components/Popup/Popup.vue.js";
3
3
  import h from "../../../../components/Magnifier/Magnifier.vue.js";
4
4
  import "./ImagesThumbnails.vue2.js";
5
5
  import v from "../../../../../../_virtual/_plugin-vue_export-helper.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=require("vue"),r=require("vue-router"),s=require("../../../../components/Field/Field.vue2.cjs"),d=require("../../store/leftovers.cjs");require("./LeftoverPositions.vue2.cjs");const u={class:"flex-column flex-wrap block"},m={key:0,class:"w-100"},f={class:"mn-r-regular w-100"},p=["onClick"],y={__name:"LeftoverPositions",props:{order:Object},setup(o){const i=o;r.useRouter(),r.useRoute();function a(n){d.actions.deleteItemFromLeftover(i.order.positions[n])}return(n,b)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",u,[o.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",m," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.order.positions,(t,c)=>(e.openBlock(),e.createElementBlock("li",{key:t._id,class:"w-100 flex-center flex-nowrap flex"},[e.createElementVNode("span",f,e.toDisplayString(t.name),1),e.createVNode(s.default,{field:t.price,"onUpdate:field":l=>t.price=l,type:"number",label:"Price",symbol:n.returnCurrency(),class:"bg-grey pd-medium radius-small"},null,8,["field","onUpdate:field","symbol"]),e.createVNode(s.default,{field:t.quantity,"onUpdate:field":l=>t.quantity=l,type:"number",label:"Quantity",class:"bg-grey pd-medium radius-small",symbol:t.type},null,8,["field","onUpdate:field","symbol"]),e.createElementVNode("a",{class:"button",onClick:l=>a(c)}," Delete ",8,p)]))),128))])]))}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),s=require("../../../../components/Field/Field.vue2.cjs"),d=require("../../store/leftovers.cjs");require("./LeftoverPositions.vue2.cjs");const u={class:"flex-column flex-wrap block"},m={key:0,class:"w-100"},f={class:"mn-r-regular w-100"},p=["onClick"],y={__name:"LeftoverPositions",props:{order:Object},setup(o){r.useRouter(),r.useRoute();const i=o;function a(n){d.actions.deleteItemFromLeftover(i.order.positions[n])}return(n,b)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",u,[o.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",m," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.order.positions,(t,c)=>(e.openBlock(),e.createElementBlock("li",{key:t._id,class:"w-100 flex-center flex-nowrap flex"},[e.createElementVNode("span",f,e.toDisplayString(t.name),1),e.createVNode(s.default,{field:t.price,"onUpdate:field":l=>t.price=l,type:"number",label:"Price",symbol:n.returnCurrency(),class:"bg-grey pd-medium radius-small"},null,8,["field","onUpdate:field","symbol"]),e.createVNode(s.default,{field:t.quantity,"onUpdate:field":l=>t.quantity=l,type:"number",label:"Quantity",class:"bg-grey pd-medium radius-small",symbol:t.type},null,8,["field","onUpdate:field","symbol"]),e.createElementVNode("a",{class:"button",onClick:l=>a(c)}," Delete ",8,p)]))),128))])]))}};exports.default=y;
@@ -12,8 +12,8 @@ const k = { class: "flex-column flex-wrap block" }, h = {
12
12
  order: Object
13
13
  },
14
14
  setup(n) {
15
- const d = n;
16
15
  b(), _();
16
+ const d = n;
17
17
  function m(r) {
18
18
  g.deleteItemFromLeftover(d.order.positions[r]);
19
19
  }
@@ -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";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../components/Field/Field.vue.cjs");const i=require("./CardPosition.vue.cjs"),u=require("../../store/leftovers.cjs");require("./ListPositions.vue2.cjs");const a={class:"flex-column flex-wrap"},d={key:0,class:"w-100"},m={class:"flex-v-center flex radius-medium pd-small bg-white w-100"},p={__name:"ListPositions",props:{order:Object},setup(t){n.useRouter(),n.useRoute();const l=t;function s(r){u.actions.deleteItemFromLeftover(l.order.positions[r])}return(r,f)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",a,[t.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",d," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.order.positions,(o,c)=>(e.openBlock(),e.createElementBlock("li",{key:o._id,class:"w-100 gap-small flex-stretch flex-center flex-nowrap flex"},[e.createElementVNode("span",m,e.toDisplayString(o.name),1),e.createVNode(i.default,{products:[],product:o,onAdd:_=>s(c)},null,8,["product","onAdd"])]))),128))])]))}};exports.default=p;
@@ -1,4 +1,41 @@
1
- const e = "";
1
+ import { openBlock as e, createElementBlock as t, createElementVNode as n, createCommentVNode as d, Fragment as a, renderList as m, toDisplayString as p, createVNode as u } from "vue";
2
+ import { useRouter as f, useRoute as _ } from "vue-router";
3
+ import "../../../../components/Field/Field.vue.js";
4
+ import x from "./CardPosition.vue.js";
5
+ import { actions as h } from "../../store/leftovers.js";
6
+ import "./ListPositions.vue2.js";
7
+ const w = { class: "flex-column flex-wrap" }, g = {
8
+ key: 0,
9
+ class: "w-100"
10
+ }, k = { class: "flex-v-center flex radius-medium pd-small bg-white w-100" }, E = {
11
+ __name: "ListPositions",
12
+ props: {
13
+ order: Object
14
+ },
15
+ setup(o) {
16
+ f(), _();
17
+ const l = o;
18
+ function i(s) {
19
+ h.deleteItemFromLeftover(l.order.positions[s]);
20
+ }
21
+ return (s, v) => (e(), t("div", null, [
22
+ n("ul", w, [
23
+ o.order.positions.length === 0 ? (e(), t("span", g, " No positions added yet ")) : d("", !0),
24
+ (e(!0), t(a, null, m(o.order.positions, (r, c) => (e(), t("li", {
25
+ key: r._id,
26
+ class: "w-100 gap-small flex-stretch flex-center flex-nowrap flex"
27
+ }, [
28
+ n("span", k, p(r.name), 1),
29
+ u(x, {
30
+ products: [],
31
+ product: r,
32
+ onAdd: (y) => i(c)
33
+ }, null, 8, ["product", "onAdd"])
34
+ ]))), 128))
35
+ ])
36
+ ]));
37
+ }
38
+ };
2
39
  export {
3
- e as default
40
+ E as default
4
41
  };
@@ -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("../../../../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
+ "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.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,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
3
  import "../../../../components/Field/Field.vue.js";
4
- import A from "../../../../components/Select/Select.vue2.js";
4
+ import A from "../../../../components/Select/Select.vue.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";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"),s=require("vue-router"),l=require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const d=require("../sections/PopularProducts.vue.cjs"),p=require("../sections/SectionProduct.vue.cjs");require("../../store/categories.cjs");const m=require("../../../../../../node_modules/vue-meta/dist/vue-meta.esm-browser.min.cjs"),_=require("../../../auth/store/auth.cjs"),t=require("../../store/products.cjs");require("./Product.vue2.cjs");const q={class:"flex flex-column w-100 o-hidden gap-thin pd-thin"},v={__name:"Product",async setup(f){let o,c;const r=s.useRoute();s.useRouter(),[o,c]=e.withAsyncContext(()=>t.actions.fetchProduct(r.params.product)),await o,c(),r.meta.title.en=t.state.current.name,r.meta.title.ru=t.state.current.name;const u=e.computed(()=>t.state.current),n={messages:{en:{},ru:{}}},{t:a}=l.useI18n(n),i=e.computed(()=>({title:t.state.current.name,description:a("description")}));return m.useMeta(i),e.onMounted(()=>{}),(h,x)=>(e.openBlock(),e.createElementBlock("div",q,[e.createTextVNode(e.toDisplayString(u.value.quantity)+" ",1),u.value?(e.openBlock(),e.createBlock(p.default,{key:0,product:u.value,user:_.state.user,class:"pos-relative"},null,8,["product","user"])):e.createCommentVNode("",!0),e.createVNode(d.default)]))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),d=require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const l=require("../sections/PopularProducts.vue.cjs"),p=require("../sections/SectionProduct.vue.cjs");require("../../store/categories.cjs");const m=require("../../../../../../node_modules/vue-meta/dist/vue-meta.esm-browser.min.cjs"),_=require("../../../auth/store/auth.cjs"),t=require("../../store/products.cjs");require("./Product.vue2.cjs");const q={class:"flex flex-column w-100 o-hidden gap-thin pd-thin"},v={__name:"Product",async setup(f){let u,o;const r=s.useRoute();s.useRouter(),[u,o]=e.withAsyncContext(()=>t.actions.fetchProduct(r.params.product)),await u,o(),r.meta.title.en=t.state.current.name,r.meta.title.ru=t.state.current.name;const c=e.computed(()=>t.state.current),n={messages:{en:{},ru:{}}},{t:a}=d.useI18n(n),i=e.computed(()=>({title:t.state.current.name,description:a("description")}));return m.useMeta(i),e.onMounted(()=>{}),(h,M)=>(e.openBlock(),e.createElementBlock("div",q,[c.value?(e.openBlock(),e.createBlock(p.default,{key:0,product:c.value,user:_.state.user,class:"pos-relative"},null,8,["product","user"])):e.createCommentVNode("",!0),e.createVNode(l.default)]))}};exports.default=v;
@@ -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;