@ozdao/prometheus-framework 0.2.111 → 0.2.113

Sign up to get free protection for your applications and to get access to all the features.
Files changed (533) hide show
  1. package/dist/common.schema-BFhpUXUt.js +12 -0
  2. package/dist/common.schema-ChBVARrs.mjs +13 -0
  3. package/dist/community.server.js +6 -4
  4. package/dist/community.server.mjs +4 -2
  5. package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
  6. package/dist/engagement.schema-fdLNO2_6.js +27 -0
  7. package/dist/events.server.js +6 -4
  8. package/dist/events.server.mjs +4 -2
  9. package/dist/files.server.js +81 -29
  10. package/dist/files.server.mjs +81 -29
  11. package/dist/gallery.server.js +66 -39
  12. package/dist/gallery.server.mjs +66 -39
  13. package/dist/main-8APITHuW.mjs +14201 -0
  14. package/dist/main-8N2Jmsuk.js +2 -2
  15. package/dist/main-BJvlNekm.mjs +5 -5
  16. package/dist/main-BQisDfLk.js +2 -2
  17. package/dist/main-BV1Yv9Hy.js +2 -2
  18. package/dist/main-Bw0PvTs-.mjs +5 -5
  19. package/dist/main-ByCtZbHD.mjs +5 -5
  20. package/dist/main-CX2ISR43.mjs +5 -5
  21. package/dist/main-CXObXjv-.js +2 -2
  22. package/dist/main-CkeuHuCY.mjs +5 -5
  23. package/dist/main-CnfcBov2.mjs +5 -5
  24. package/dist/main-D50VqYhy.js +2 -2
  25. package/dist/main-D8gNZLSa.js +2 -2
  26. package/dist/main-DPsHxX0l.mjs +5 -5
  27. package/dist/main-DTlUA63C.mjs +5 -5
  28. package/dist/main-DfD5hLQo.mjs +5 -5
  29. package/dist/main-Dh6Zfei9.js +2 -2
  30. package/dist/main-DmNP-t33.mjs +5 -5
  31. package/dist/main-DwyUYWFX.js +2 -2
  32. package/dist/main-VcxO-jAt.js +92 -0
  33. package/dist/main-cffh4bbv.js +2 -2
  34. package/dist/main-pGo7JpSP.js +2 -2
  35. package/dist/main.css +1 -1
  36. package/dist/metadata.schema-6slGhpQS.js +40 -0
  37. package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
  38. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  39. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
  40. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
  41. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
  42. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  43. package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
  44. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  45. package/dist/node_modules/web3/lib/esm/index.js +45 -42
  46. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  47. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  48. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  49. package/dist/node_modules/web3/lib/esm/web3.js +40 -37
  50. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
  51. package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
  52. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  53. package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
  54. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  55. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +100 -87
  56. package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
  57. package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
  58. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
  59. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
  60. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
  61. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
  62. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
  63. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
  64. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
  65. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
  66. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
  67. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
  68. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  69. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +183 -179
  70. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  71. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +10 -10
  72. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  73. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +45 -44
  74. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  75. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +59 -57
  76. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +43 -43
  78. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  79. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +31 -31
  80. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  81. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +26 -26
  82. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  83. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +53 -51
  84. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
  85. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +25 -23
  86. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  87. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
  88. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
  89. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
  90. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  91. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
  92. package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
  93. package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
  94. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
  95. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
  96. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  97. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
  98. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  99. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
  100. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  101. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +50 -47
  102. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  103. package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
  104. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  105. package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
  106. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
  107. package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
  108. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  109. package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
  110. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
  111. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
  112. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
  113. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
  114. package/dist/orders.server.js +1 -1
  115. package/dist/orders.server.mjs +1 -1
  116. package/dist/organizations.server.js +56 -59
  117. package/dist/organizations.server.mjs +56 -59
  118. package/dist/products.server.js +1 -1
  119. package/dist/products.server.mjs +1 -1
  120. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  121. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
  122. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Block/Block.vue.js +5 -5
  124. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
  126. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
  128. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
  129. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
  130. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
  131. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
  132. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
  134. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
  136. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
  137. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
  138. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
  140. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
  142. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
  144. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
  146. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -0
  147. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +121 -0
  148. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue2.cjs +1 -0
  149. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue2.js +1 -0
  150. package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
  152. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
  154. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  155. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
  156. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
  160. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
  162. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
  164. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  166. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
  168. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
  170. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +11 -11
  172. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +26 -26
  174. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -14
  176. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +6 -6
  178. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +45 -45
  180. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +13 -13
  182. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
  184. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +19 -16
  186. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
  188. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
  190. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +213 -213
  194. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
  196. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  197. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
  198. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -9
  200. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
  202. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
  204. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
  205. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +167 -202
  207. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +73 -165
  209. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
  211. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  213. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
  214. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
  215. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
  217. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
  218. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
  219. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
  220. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
  221. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
  223. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
  225. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
  227. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
  228. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
  229. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
  230. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
  231. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
  232. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
  233. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
  234. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
  235. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
  236. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
  237. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
  239. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +5 -5
  241. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
  243. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
  247. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
  249. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
  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 +13 -1
  253. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  255. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +36 -36
  257. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
  259. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
  261. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
  263. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  265. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
  267. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +5 -5
  269. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
  271. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
  273. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
  275. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
  276. package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
  277. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +5 -5
  279. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
  281. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  283. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
  285. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +41 -41
  287. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +11 -11
  289. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +17 -17
  291. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -36
  293. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
  295. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  297. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
  299. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +12 -12
  301. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
  303. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
  305. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +16 -16
  307. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +15 -15
  309. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
  311. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +8 -8
  313. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
  315. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
  319. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +6 -6
  321. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -8
  323. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
  324. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  325. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
  326. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  327. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -4
  328. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  329. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +32 -32
  330. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
  331. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
  332. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  333. package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
  334. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  335. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
  336. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  337. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +30 -26
  338. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  339. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +6 -6
  340. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  341. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +35 -35
  342. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  343. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
  344. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  345. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
  346. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  347. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
  348. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -0
  349. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +102 -0
  350. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue2.cjs +1 -0
  351. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue2.js +1 -0
  352. package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
  353. package/dist/prometheus-framework/src/modules/users/users.client.js +8 -6
  354. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  355. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
  356. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  357. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +14 -11
  358. package/dist/prometheus-framework.cjs.js +1 -1
  359. package/dist/prometheus-framework.es.js +1 -1
  360. package/dist/queryProcessor-BJoJAetd.mjs +162 -0
  361. package/dist/queryProcessor-DWf9tsis.js +161 -0
  362. package/dist/style.css +1 -1
  363. package/dist/wallet.server.js +1 -1
  364. package/dist/wallet.server.mjs +1 -1
  365. package/dist/web-TGdVOTnw.js +1 -0
  366. package/dist/web-_W9a_nWD.mjs +54 -0
  367. package/package.json +1 -1
  368. package/src/components/Address/Address.vue +1 -1
  369. package/src/components/AskToLogin/AskToLogin.vue +1 -1
  370. package/src/components/Block/Block.vue +1 -1
  371. package/src/components/Checkbox/Checkbox.vue +40 -43
  372. package/src/components/Chips/Chips.vue +2 -2
  373. package/src/components/DatePicker/Calendar.vue +29 -31
  374. package/src/components/Dropdown/Dropdown.vue +5 -11
  375. package/src/components/Feed/Feed.vue +98 -15
  376. package/src/components/FieldTags/BlockTags.vue +3 -3
  377. package/src/components/FieldTags/FieldTags.vue +1 -1
  378. package/src/components/FieldTags/vue-tags-input.scss +1 -1
  379. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  380. package/src/components/LocationSelection/LocationSelection.vue +5 -30
  381. package/src/components/Map/LoaderGMaps.js +66 -0
  382. package/src/components/Map/Map.vue +2 -1
  383. package/src/components/Marquee/Marquee.vue +1 -1
  384. package/src/components/Radio/Radio.vue +36 -13
  385. package/src/configurator/components/pages/Styles.vue +1 -1
  386. package/src/modules/auth/components/layouts/Auth.vue +1 -1
  387. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  388. package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
  389. package/src/modules/auth/components/pages/Invite.vue +2 -2
  390. package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
  391. package/src/modules/auth/components/pages/SignIn.vue +4 -4
  392. package/src/modules/auth/components/pages/SignUp.vue +3 -3
  393. package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
  394. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  395. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  396. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  397. package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
  398. package/src/modules/backoffice/components/admin/Users.vue +1 -1
  399. package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
  400. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  401. package/src/modules/community/components/layouts/Community.vue +2 -2
  402. package/src/modules/community/components/pages/BlogPost.vue +2 -2
  403. package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
  404. package/src/modules/community/components/sections/Comments.vue +2 -2
  405. package/src/modules/community/components/sections/Feed.vue +1 -1
  406. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  407. package/src/modules/constructor/components/elements/Image.vue +1 -1
  408. package/src/modules/constructor/components/elements/Video.vue +2 -2
  409. package/src/modules/events/components/blocks/CardEvent.vue +1 -1
  410. package/src/modules/events/components/pages/EditEvent.vue +32 -32
  411. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  412. package/src/modules/events/components/pages/Event.vue +3 -3
  413. package/src/modules/events/components/pages/Events.vue +4 -3
  414. package/src/modules/events/components/sections/Feed.vue +3 -3
  415. package/src/modules/events/components/sections/List.vue +2 -2
  416. package/src/modules/files/controllers/files.controller.js +8 -6
  417. package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
  418. package/src/modules/files/routes/files.routes.js +11 -9
  419. package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
  420. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
  421. package/src/modules/gallery/controllers/gallery.controller.js +57 -38
  422. package/src/modules/gallery/models/photo.model.js +20 -11
  423. package/src/modules/gallery/routes/gallery.routes.js +3 -3
  424. package/src/modules/gallery/store/gallery.js +3 -78
  425. package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
  426. package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
  427. package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
  428. package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
  429. package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
  430. package/src/modules/globals/components/layouts/Client.vue +273 -0
  431. package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
  432. package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
  433. package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
  434. package/src/modules/globals/models/common.schema.js +1 -1
  435. package/src/modules/globals/services/globals.store.js +11 -6
  436. package/src/modules/globals/store/globals.js +12 -10
  437. package/src/modules/icons/logos/Logotype.vue +23 -19
  438. package/src/modules/icons/navigation/IconCalendar.vue +18 -0
  439. package/src/modules/icons/navigation/IconFilter.vue +18 -0
  440. package/src/modules/icons/navigation/IconSearch.vue +1 -3
  441. package/src/modules/icons/navigation/IconSort.vue +21 -0
  442. package/src/modules/landing/components/pages/Home.vue +4 -4
  443. package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
  444. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
  445. package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
  446. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
  447. package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
  448. package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
  449. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
  450. package/src/modules/landing/landing.client.js +2 -0
  451. package/src/modules/landing/router/landing.js +1 -1
  452. package/src/modules/legal/components/pages/Legal.vue +2 -2
  453. package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
  454. package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
  455. package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
  456. package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
  457. package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
  458. package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
  459. package/src/modules/marketplace/components/sections/Filters.vue +63 -115
  460. package/src/modules/marketplace/store/marketplace.js +22 -167
  461. package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
  462. package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
  463. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  464. package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
  465. package/src/modules/orders/components/pages/Order.vue +8 -8
  466. package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
  467. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  468. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
  469. package/src/modules/orders/components/pages/Orders.vue +3 -5
  470. package/src/modules/orders/components/partials/ShopCart.vue +5 -1
  471. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  472. package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
  473. package/src/modules/orders/store/applications.js +1 -1
  474. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  475. package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
  476. package/src/modules/organizations/components/pages/Department.vue +3 -3
  477. package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
  478. package/src/modules/organizations/components/pages/Members.vue +4 -4
  479. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  480. package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
  481. package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
  482. package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
  483. package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
  484. package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
  485. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  486. package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
  487. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  488. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  489. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  490. package/src/modules/organizations/controllers/organizations.controller.js +103 -93
  491. package/src/modules/organizations/models/organization.model.js +10 -7
  492. package/src/modules/organizations/store/organizations.js +3 -34
  493. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  494. package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
  495. package/src/modules/products/components/pages/Categories.vue +1 -1
  496. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  497. package/src/modules/products/components/pages/Leftovers.vue +4 -4
  498. package/src/modules/products/components/pages/Product.vue +1 -5
  499. package/src/modules/products/components/pages/ProductEdit.vue +1 -1
  500. package/src/modules/products/components/pages/Products.vue +2 -2
  501. package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
  502. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  503. package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
  504. package/src/modules/products/components/sections/MenuSection.vue +2 -2
  505. package/src/modules/products/components/sections/PopularProducts.vue +2 -2
  506. package/src/modules/products/components/sections/SectionProduct.vue +3 -3
  507. package/src/modules/products/products.client.js +0 -2
  508. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  509. package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
  510. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  511. package/src/modules/spots/components/layouts/Spots.vue +0 -2
  512. package/src/modules/spots/components/pages/Spot.vue +4 -4
  513. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  514. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  515. package/src/modules/spots/components/sections/Places.vue +1 -1
  516. package/src/modules/users/components/blocks/CardUser.vue +3 -3
  517. package/src/modules/users/components/pages/Profile.vue +5 -5
  518. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  519. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  520. package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
  521. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  522. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  523. package/src/modules/users/components/sections/FeaturedUsers.vue +76 -14
  524. package/src/modules/users/users.client.js +5 -0
  525. package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
  526. package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
  527. package/src/styles/base/borders.scss +4 -0
  528. package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
  529. package/src/styles/config.scss +15 -9
  530. package/src/styles/layout.scss +37 -8
  531. package/src/styles/typography.scss +24 -24
  532. package/src/modules/products/components/sections/SortProducts.vue +0 -74
  533. /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -1,7 +1,7 @@
1
- import { ref as d, onMounted as p, openBlock as t, createElementBlock as a, unref as o, createBlock as m, Fragment as f, renderList as _, createCommentVNode as g } from "vue";
2
- import h from "../blocks/CardOrganization.vue.js";
1
+ import { ref as d, onMounted as p, openBlock as t, createElementBlock as i, unref as o, createBlock as m, Fragment as f, renderList as _, createCommentVNode as h } from "vue";
2
+ import g from "../blocks/CardOrganization.vue.js";
3
3
  import y from "../../../../components/EmptyState/EmptyState.vue.js";
4
- import { state as c } from "../../../auth/store/auth.js";
4
+ import { state as l } from "../../../auth/store/auth.js";
5
5
  import { actions as b } from "../../store/organizations.js";
6
6
  import { mutations as x } from "../../store/memberships.js";
7
7
  import "./Publics.vue2.js";
@@ -14,28 +14,28 @@ const k = { class: "w-100 o-scroll" }, w = {
14
14
  let e = d(null);
15
15
  p(async () => {
16
16
  e.value = await b.read({
17
- user: c.user._id,
17
+ user: l.user._id,
18
18
  sortParam: "profile.tags",
19
19
  limit: 10
20
20
  });
21
21
  });
22
- const l = ({ membership: i, status: n, target: r }, s, u) => {
23
- x.handleMembershipUpdate(organizations.state.current, i, n, r, s, u);
22
+ const c = ({ membership: a, status: n, target: r }, s, u) => {
23
+ x.handleMembershipUpdate(organizations.state.current, a, n, r, s, u);
24
24
  };
25
- return (i, n) => (t(), a("div", k, [
25
+ return (a, n) => (t(), i("div", k, [
26
26
  !o(e) || o(e).length < 1 ? (t(), m(y, {
27
27
  key: 0,
28
28
  title: "Unfortunately, we couldn't find any recommendations for you",
29
29
  description: "Explore and find a community or organization that suits your interests.",
30
- class: "radius-big bg-grey pd-medium"
31
- })) : (t(), a("div", w, [
32
- o(e) ? (t(!0), a(f, { key: 0 }, _(o(e), (r, s) => (t(), m(h, {
30
+ class: "radius-big bg-light pd-medium"
31
+ })) : (t(), i("div", w, [
32
+ o(e) ? (t(!0), i(f, { key: 0 }, _(o(e), (r, s) => (t(), m(g, {
33
33
  key: r._id,
34
34
  organization: r,
35
- user: c.user,
36
- onUpdateMembership: l,
35
+ user: l.user,
36
+ onUpdateMembership: c,
37
37
  class: "w-max-20r radius-big"
38
- }, null, 8, ["organization", "user"]))), 128)) : g("", !0)
38
+ }, null, 8, ["organization", "user"]))), 128)) : h("", !0)
39
39
  ]))
40
40
  ]));
41
41
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../node_modules/axios/lib/axios.cjs"),l=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),n=require("vue"),i=require("../../globals/store/globals.cjs"),c=u.default.create({baseURL:process.env.API_URL,withCredentials:!0}),t=n.reactive({all:[],current:{_id:null,profile:{tags:[],photo:"",name:"",description:""},structure:[],owner:null,types:"",contacts:{email:"",website:"",phone:"",address:""},socials:{telegram:"",line:"",facebook:"",instagram:"",youtube:""},rating:{popularity:0,median:0,amount:0}}}),o={async create(e,r){e.owner=r;try{const a=await c.post("/api/organizations/create",e);return console.log("Organization created successfully"),t.current=a.data,a.data}catch(a){throw console.log("Organization creation failed"),i.setError(a),a}},async read(e={}){let r={};e._id&&(r._id=e._id),e.owner&&(r.owner=e.owner),e.user&&(r.user=e.user),e.member&&(r.member=e.member),e.subscriber&&(r.subscriber=e.subscriber),e.postable&&(r.postable=e.postable),e.location&&(r.location=e.location),e.search&&(r.search=e.search),e.location&&(r.location=e.location),e.locationRadius&&(r.locationRadius=e.locationRadius),e.country&&(r.country=e.country),e.state&&(r.state=e.state),e.city&&(r.city=e.city),e.categories&&(r.categories=e.categories),e.prices&&(r.prices=e.prices),e.delivery&&(r.delivery=e.delivery),e.types&&(r.types=e.types),e.skip&&(r.skip=e.skip),e.limit&&(r.limit=e.limit),r.contain=e.contain||[],r.sortParam=e.sortParam,r.sortOrder=e.sortOrder,console.log(r);try{const a=await c.get("/api/organizations",{params:r});return e._id&&Object.assign(t.current||{},a.data[0]),Promise.resolve(a.data)}catch(a){return i.setError(a),Promise.reject(a)}},async update(e,r){return console.log(e,r),await c.post(`/api/organizations/${e}/update`,r).then(a=>(console.log("Organization updated successfully"),Promise.resolve(a.data)),a=>(console.log("Updating organization failed"),Promise.reject(a)))},async remove(e){await c.delete(`/api/organizations/${e}/delete`).then(r=>{t.error=null;let a=l.default.get("user"),s=JSON.parse(a);return s.organization=null,l.default.set("user",JSON.stringify(s),{expires:7,domain:".osi.plus",sameSite:"none",secure:!0}),Promise.resolve(r.data)},r=>(i.setError(r),Promise.reject(r))).catch(r=>{i.setError(r)})},async reset(){t.current={_id:null,profile:{categories:[],photo:"",name:"",description:""},structure:[],owner:null,types:"",contacts:{email:"",website:"",phone:"",address:""},socials:{telegram:"",line:"",facebook:"",instagram:""},rating:{popularity:0,median:0,amount:0}}}};n.watch(t,(e,r)=>{});exports.actions=o;exports.state=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../node_modules/axios/lib/axios.cjs"),i=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),c=require("vue"),o=require("../../globals/store/globals.cjs"),s=l.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=c.reactive({all:[],current:{_id:null,profile:{tags:[],photo:"",name:"",description:""},structure:[],owner:null,types:"",contacts:{email:"",website:"",phone:"",address:""},socials:{telegram:"",line:"",facebook:"",instagram:"",youtube:""},rating:{popularity:0,median:0,amount:0}}}),u={async create(t,e){t.owner=e;try{const r=await s.post("/api/organizations/create",t);return a.current=r.data,r.data}catch(r){throw console.log(r),o.setError(r),r}},async read(t={}){console.log(t);try{const e=await s.get("/api/organizations",{params:t});return t._id&&Object.assign(a.current||{},e.data[0]),Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async update(t,e){return console.log(t,e),await s.post(`/api/organizations/${t}/update`,e).then(r=>(console.log("Organization updated successfully"),Promise.resolve(r.data)),r=>(console.log("Updating organization failed"),Promise.reject(r)))},async remove(t){await s.delete(`/api/organizations/${t}/delete`).then(e=>{a.error=null;let r=i.default.get("user"),n=JSON.parse(r);return n.organization=null,i.default.set("user",JSON.stringify(n),{expires:7,domain:".osi.plus",sameSite:"none",secure:!0}),Promise.resolve(e.data)},e=>(o.setError(e),Promise.reject(e))).catch(e=>{o.setError(e)})},async reset(){a.current={_id:null,profile:{categories:[],photo:"",name:"",description:""},structure:[],owner:null,types:"",contacts:{email:"",website:"",phone:"",address:""},socials:{telegram:"",line:"",facebook:"",instagram:""},rating:{popularity:0,median:0,amount:0}}}};c.watch(a,(t,e)=>{});exports.actions=u;exports.state=a;
@@ -1,8 +1,8 @@
1
- import n from "../../../../node_modules/axios/lib/axios.js";
2
- import l from "../../../../../node_modules/js-cookie/dist/js.cookie.js";
3
- import { reactive as o, watch as u } from "vue";
4
- import { setError as i } from "../../globals/store/globals.js";
5
- const c = n.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = o({
1
+ import c from "../../../../node_modules/axios/lib/axios.js";
2
+ import i from "../../../../../node_modules/js-cookie/dist/js.cookie.js";
3
+ import { reactive as l, watch as u } from "vue";
4
+ import { setError as o } from "../../globals/store/globals.js";
5
+ const s = c.create({ baseURL: process.env.API_URL, withCredentials: !0 }), a = l({
6
6
  all: [],
7
7
  current: {
8
8
  _id: null,
@@ -36,48 +36,47 @@ const c = n.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = o
36
36
  }
37
37
  }), y = {
38
38
  // Create
39
- async create(e, r) {
40
- e.owner = r;
39
+ async create(t, e) {
40
+ t.owner = e;
41
41
  try {
42
- const a = await c.post("/api/organizations/create", e);
43
- return console.log("Organization created successfully"), t.current = a.data, a.data;
44
- } catch (a) {
45
- throw console.log("Organization creation failed"), i(a), a;
42
+ const r = await s.post("/api/organizations/create", t);
43
+ return a.current = r.data, r.data;
44
+ } catch (r) {
45
+ throw console.log(r), o(r), r;
46
46
  }
47
47
  },
48
- async read(e = {}) {
49
- let r = {};
50
- e._id && (r._id = e._id), e.owner && (r.owner = e.owner), e.user && (r.user = e.user), e.member && (r.member = e.member), e.subscriber && (r.subscriber = e.subscriber), e.postable && (r.postable = e.postable), e.location && (r.location = e.location), e.search && (r.search = e.search), e.location && (r.location = e.location), e.locationRadius && (r.locationRadius = e.locationRadius), e.country && (r.country = e.country), e.state && (r.state = e.state), e.city && (r.city = e.city), e.categories && (r.categories = e.categories), e.prices && (r.prices = e.prices), e.delivery && (r.delivery = e.delivery), e.types && (r.types = e.types), e.skip && (r.skip = e.skip), e.limit && (r.limit = e.limit), r.contain = e.contain || [], r.sortParam = e.sortParam, r.sortOrder = e.sortOrder, console.log(r);
48
+ async read(t = {}) {
49
+ console.log(t);
51
50
  try {
52
- const a = await c.get("/api/organizations", { params: r });
53
- return e._id && Object.assign(t.current || {}, a.data[0]), Promise.resolve(a.data);
54
- } catch (a) {
55
- return i(a), Promise.reject(a);
51
+ const e = await s.get("/api/organizations", { params: t });
52
+ return t._id && Object.assign(a.current || {}, e.data[0]), Promise.resolve(e.data);
53
+ } catch (e) {
54
+ return o(e), Promise.reject(e);
56
55
  }
57
56
  },
58
57
  // Update
59
- async update(e, r) {
60
- return console.log(e, r), await c.post(`/api/organizations/${e}/update`, r).then(
61
- (a) => (console.log("Organization updated successfully"), Promise.resolve(a.data)),
62
- (a) => (console.log("Updating organization failed"), Promise.reject(a))
58
+ async update(t, e) {
59
+ return console.log(t, e), await s.post(`/api/organizations/${t}/update`, e).then(
60
+ (r) => (console.log("Organization updated successfully"), Promise.resolve(r.data)),
61
+ (r) => (console.log("Updating organization failed"), Promise.reject(r))
63
62
  );
64
63
  },
65
64
  // Remove
66
- async remove(e) {
67
- await c.delete(`/api/organizations/${e}/delete`).then(
68
- (r) => {
69
- t.error = null;
70
- let a = l.get("user"), s = JSON.parse(a);
71
- return s.organization = null, l.set("user", JSON.stringify(s), { expires: 7, domain: ".osi.plus", sameSite: "none", secure: !0 }), Promise.resolve(r.data);
65
+ async remove(t) {
66
+ await s.delete(`/api/organizations/${t}/delete`).then(
67
+ (e) => {
68
+ a.error = null;
69
+ let r = i.get("user"), n = JSON.parse(r);
70
+ return n.organization = null, i.set("user", JSON.stringify(n), { expires: 7, domain: ".osi.plus", sameSite: "none", secure: !0 }), Promise.resolve(e.data);
72
71
  },
73
- (r) => (i(r), Promise.reject(r))
74
- ).catch((r) => {
75
- i(r);
72
+ (e) => (o(e), Promise.reject(e))
73
+ ).catch((e) => {
74
+ o(e);
76
75
  });
77
76
  },
78
77
  // Reset
79
78
  async reset() {
80
- t.current = {
79
+ a.current = {
81
80
  _id: null,
82
81
  profile: {
83
82
  categories: [],
@@ -108,9 +107,9 @@ const c = n.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = o
108
107
  };
109
108
  }
110
109
  };
111
- u(t, (e, r) => {
110
+ u(a, (t, e) => {
112
111
  });
113
112
  export {
114
113
  y as actions,
115
- t as state
114
+ a as state
116
115
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Field/Field.vue2.cjs"),i=require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const y=require("../../../icons/navigation/IconAdd.vue.cjs"),k=require("../../../icons/navigation/IconDelete.vue.cjs"),w={class:"gap-thin"},g={class:"gap-thin mn-b-thin flex-nowrap flex"},h={class:"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small"},x=["disabled"],V={key:0,class:"gap-thin flex-nowrap flex"},N={__name:"CardPosition",props:{product:Object,products:Array,array:Array,showPrice:{type:Boolean,default:!0}},emits:["add","delete","update"],setup(s,{emit:p}){const l=s,n=p,u=e.ref(null),t=e.ref(1),a=e.ref("pcs"),d=e.ref(0),m=e.computed(()=>u.value&&t.value>0&&d.value>=0);e.watch(l.array,()=>{u.value=l.product,t.value=l.product.quantity||1,d.value=l.product.price,a.value=l.product.type}),l.product&&(u.value=l.product,t.value=l.product.quantity||1,d.value=l.product.price,a.value=l.product.type),e.watch([u,t,d,a],()=>{n("update",{...u.value,price:d.value,quantity:t.value||1,type:a.value})});function v(){n("add",{...u.value,price:d.value,quantity:t.value||1,type:a.value})}function b(){n("delete",{...u.value,price:d.value,quantity:t.value||1,type:a.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("div",g,[e.createElementVNode("div",h,e.toDisplayString(u.value.name||u.value._id.name),1),s.showPrice?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c.default,{key:0,field:t.value,"onUpdate:field":r[1]||(r[1]=o=>t.value=o),type:"number",label:"Qty",class:"bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(i.default,{select:a.value,"onUpdate:select":r[0]||(r[0]=o=>a.value=o),options:["pcs","g","ml"],class:"bg-grey pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["select"])]),_:1},8,["field"])),s.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,disabled:!m.value,onClick:v,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(y.default),{class:"i-semi"})],8,x)),s.product?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:b,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(k.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]),s.showPrice?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(c.default,{field:d.value,"onUpdate:field":r[2]||(r[2]=o=>d.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(c.default,{field:t.value,"onUpdate:field":r[4]||(r[4]=o=>t.value=o),type:"number",label:"Qty",class:"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(i.default,{select:a.value,"onUpdate:select":r[3]||(r[3]=o=>a.value=o),options:["pcs","g","ml"],class:"bg-grey pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["select"])]),_:1},8,["field"])])):e.createCommentVNode("",!0)]))}};exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Field/Field.vue2.cjs"),c=require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const y=require("../../../icons/navigation/IconAdd.vue.cjs"),k=require("../../../icons/navigation/IconDelete.vue.cjs"),h={class:"gap-thin"},w={class:"gap-thin mn-b-thin flex-nowrap flex"},g={class:"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small"},x=["disabled"],V={key:0,class:"gap-thin flex-nowrap flex"},N={__name:"CardPosition",props:{product:Object,products:Array,array:Array,showPrice:{type:Boolean,default:!0}},emits:["add","delete","update"],setup(s,{emit:p}){const l=s,n=p,u=e.ref(null),t=e.ref(1),a=e.ref("pcs"),d=e.ref(0),m=e.computed(()=>u.value&&t.value>0&&d.value>=0);e.watch(l.array,()=>{u.value=l.product,t.value=l.product.quantity||1,d.value=l.product.price,a.value=l.product.type}),l.product&&(u.value=l.product,t.value=l.product.quantity||1,d.value=l.product.price,a.value=l.product.type),e.watch([u,t,d,a],()=>{n("update",{...u.value,price:d.value,quantity:t.value||1,type:a.value})});function v(){n("add",{...u.value,price:d.value,quantity:t.value||1,type:a.value})}function b(){n("delete",{...u.value,price:d.value,quantity:t.value||1,type:a.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",w,[e.createElementVNode("div",g,e.toDisplayString(u.value.name||u.value._id.name),1),s.showPrice?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:0,field:t.value,"onUpdate:field":r[1]||(r[1]=o=>t.value=o),type:"number",label:"Qty",class:"bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(c.default,{select:a.value,"onUpdate:select":r[0]||(r[0]=o=>a.value=o),options:["pcs","g","ml"],class:"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["select"])]),_:1},8,["field"])),s.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,disabled:!m.value,onClick:v,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(y.default),{class:"i-semi"})],8,x)),s.product?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:b,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(k.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]),s.showPrice?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(i.default,{field:d.value,"onUpdate:field":r[2]||(r[2]=o=>d.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(i.default,{field:t.value,"onUpdate:field":r[4]||(r[4]=o=>t.value=o),type:"number",label:"Qty",class:"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(c.default,{select:a.value,"onUpdate:select":r[3]||(r[3]=o=>a.value=o),options:["pcs","g","ml"],class:"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["select"])]),_:1},8,["field"])])):e.createCommentVNode("",!0)]))}};exports.default=N;
@@ -1,6 +1,6 @@
1
- import { ref as n, computed as q, watch as v, openBlock as o, createElementBlock as p, createElementVNode as y, toDisplayString as U, createBlock as B, withCtx as f, createVNode as d, createCommentVNode as c, unref as w } from "vue";
1
+ import { ref as n, computed as q, watch as v, openBlock as o, createElementBlock as p, createElementVNode as y, toDisplayString as U, createBlock as B, withCtx as f, createVNode as i, createCommentVNode as c, unref as h } from "vue";
2
2
  import b from "../../../../components/Field/Field.vue2.js";
3
- import g from "../../../../components/Select/Select.vue2.js";
3
+ import w from "../../../../components/Select/Select.vue2.js";
4
4
  import "../../../../components/SelectMulti/SelectMulti.vue2.js";
5
5
  import Q from "../../../icons/navigation/IconAdd.vue.js";
6
6
  import V from "../../../icons/navigation/IconDelete.vue.js";
@@ -23,8 +23,8 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
23
23
  "delete",
24
24
  "update"
25
25
  ],
26
- setup(i, { emit: h }) {
27
- const t = i, m = h, r = n(null), e = n(1), l = n("pcs"), s = n(0), k = q(
26
+ setup(d, { emit: g }) {
27
+ const t = d, m = g, r = n(null), e = n(1), l = n("pcs"), s = n(0), k = q(
28
28
  () => r.value && e.value > 0 && s.value >= 0
29
29
  );
30
30
  v(t.array, () => {
@@ -56,7 +56,7 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
56
56
  return (C, a) => (o(), p("div", _, [
57
57
  y("div", N, [
58
58
  y("div", S, U(r.value.name || r.value._id.name), 1),
59
- i.showPrice ? c("", !0) : (o(), B(b, {
59
+ d.showPrice ? c("", !0) : (o(), B(b, {
60
60
  key: 0,
61
61
  field: e.value,
62
62
  "onUpdate:field": a[1] || (a[1] = (u) => e.value = u),
@@ -65,7 +65,7 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
65
65
  class: "bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small"
66
66
  }, {
67
67
  default: f(() => [
68
- d(g, {
68
+ i(w, {
69
69
  select: l.value,
70
70
  "onUpdate:select": a[0] || (a[0] = (u) => l.value = u),
71
71
  options: [
@@ -73,29 +73,29 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
73
73
  "g",
74
74
  "ml"
75
75
  ],
76
- class: "bg-grey pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"
76
+ class: "bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"
77
77
  }, null, 8, ["select"])
78
78
  ]),
79
79
  _: 1
80
80
  }, 8, ["field"])),
81
- i.product ? c("", !0) : (o(), p("button", {
81
+ d.product ? c("", !0) : (o(), p("button", {
82
82
  key: 1,
83
83
  disabled: !k.value,
84
84
  onClick: x,
85
85
  class: "bg-main aspect-1x1 radius-small pd-small"
86
86
  }, [
87
- d(w(Q), { class: "i-semi" })
87
+ i(h(Q), { class: "i-semi" })
88
88
  ], 8, A)),
89
- i.product ? (o(), p("button", {
89
+ d.product ? (o(), p("button", {
90
90
  key: 2,
91
91
  onClick: P,
92
92
  class: "bg-red aspect-1x1 radius-small pd-small"
93
93
  }, [
94
- d(w(V), { class: "i-semi" })
94
+ i(h(V), { class: "i-semi" })
95
95
  ])) : c("", !0)
96
96
  ]),
97
- i.showPrice ? (o(), p("div", E, [
98
- d(b, {
97
+ d.showPrice ? (o(), p("div", E, [
98
+ i(b, {
99
99
  field: s.value,
100
100
  "onUpdate:field": a[2] || (a[2] = (u) => s.value = u),
101
101
  type: "number",
@@ -103,7 +103,7 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
103
103
  symbol: C.returnCurrency(),
104
104
  class: "bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"
105
105
  }, null, 8, ["field", "symbol"]),
106
- d(b, {
106
+ i(b, {
107
107
  field: e.value,
108
108
  "onUpdate:field": a[4] || (a[4] = (u) => e.value = u),
109
109
  type: "number",
@@ -111,7 +111,7 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
111
111
  class: "bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"
112
112
  }, {
113
113
  default: f(() => [
114
- d(g, {
114
+ i(w, {
115
115
  select: l.value,
116
116
  "onUpdate:select": a[3] || (a[3] = (u) => l.value = u),
117
117
  options: [
@@ -119,7 +119,7 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
119
119
  "g",
120
120
  "ml"
121
121
  ],
122
- class: "bg-grey pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"
122
+ class: "bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"
123
123
  }, null, 8, ["select"])
124
124
  ]),
125
125
  _: 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){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;
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-light 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-light 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,9 +1,9 @@
1
- import { openBlock as o, createElementBlock as l, createElementVNode as s, createCommentVNode as u, Fragment as f, renderList as p, toDisplayString as y, createVNode as i } from "vue";
1
+ import { openBlock as l, createElementBlock as o, createElementVNode as i, createCommentVNode as u, Fragment as f, renderList as p, toDisplayString as y, createVNode as r } from "vue";
2
2
  import { useRouter as b, useRoute as _ } from "vue-router";
3
3
  import a from "../../../../components/Field/Field.vue2.js";
4
4
  import { actions as g } from "../../store/leftovers.js";
5
5
  import "./LeftoverPositions.vue2.js";
6
- const k = { class: "flex-column flex-wrap block" }, h = {
6
+ const h = { class: "flex-column flex-wrap block" }, k = {
7
7
  key: 0,
8
8
  class: "w-100"
9
9
  }, x = { class: "mn-r-regular w-100" }, w = ["onClick"], P = {
@@ -14,34 +14,34 @@ const k = { class: "flex-column flex-wrap block" }, h = {
14
14
  setup(n) {
15
15
  b(), _();
16
16
  const d = n;
17
- function m(r) {
18
- g.deleteItemFromLeftover(d.order.positions[r]);
17
+ function m(s) {
18
+ g.deleteItemFromLeftover(d.order.positions[s]);
19
19
  }
20
- return (r, v) => (o(), l("div", null, [
21
- s("ul", k, [
22
- n.order.positions.length === 0 ? (o(), l("span", h, " No positions added yet ")) : u("", !0),
23
- (o(!0), l(f, null, p(n.order.positions, (e, c) => (o(), l("li", {
20
+ return (s, v) => (l(), o("div", null, [
21
+ i("ul", h, [
22
+ n.order.positions.length === 0 ? (l(), o("span", k, " No positions added yet ")) : u("", !0),
23
+ (l(!0), o(f, null, p(n.order.positions, (e, c) => (l(), o("li", {
24
24
  key: e._id,
25
25
  class: "w-100 flex-center flex-nowrap flex"
26
26
  }, [
27
- s("span", x, y(e.name), 1),
28
- i(a, {
27
+ i("span", x, y(e.name), 1),
28
+ r(a, {
29
29
  field: e.price,
30
30
  "onUpdate:field": (t) => e.price = t,
31
31
  type: "number",
32
32
  label: "Price",
33
- symbol: r.returnCurrency(),
34
- class: "bg-grey pd-medium radius-small"
33
+ symbol: s.returnCurrency(),
34
+ class: "bg-light pd-medium radius-small"
35
35
  }, null, 8, ["field", "onUpdate:field", "symbol"]),
36
- i(a, {
36
+ r(a, {
37
37
  field: e.quantity,
38
38
  "onUpdate:field": (t) => e.quantity = t,
39
39
  type: "number",
40
40
  label: "Quantity",
41
- class: "bg-grey pd-medium radius-small",
41
+ class: "bg-light pd-medium radius-small",
42
42
  symbol: e.type
43
43
  }, null, 8, ["field", "onUpdate:field", "symbol"]),
44
- s("a", {
44
+ i("a", {
45
45
  class: "button",
46
46
  onClick: (t) => m(c)
47
47
  }, " Delete ", 8, w)
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),l=require("vue-router"),t=require("../../store/categories.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Block/Block.vue.cjs"),g=require("../blocks/CardCategory.vue.cjs"),f={class:"pd-thin"},p=e.createElementVNode("h1",{class:"mn-r-auto"}," Product Categories ",-1),_={__name:"Categories",setup(C){l.useRoute(),l.useRouter(),e.onMounted(async()=>{await t.actions.fetchCategories()});function s(){t.state.all.forEach((r,a)=>{r.order=a}),o()}async function o(){await t.actions.updateCategories(t.state.all)}async function i(r){confirm(`Are you sure you want to delete the category "${r.name}"?`)?await t.actions.deleteCategory(r.url):alert("Category deletion cancelled")}return(r,a)=>{const u=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(m.default,{class:"radius-big mn-b-thin flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[p,e.createVNode(u,{to:{name:"CategoryAdd",params:{_id:r.$route.params._id}},class:"mn-r-medium uppercase t-medium pd-small radius-big bg-white nav-link"},{default:e.withCtx(()=>[e.createTextVNode(" Add category ")]),_:1},8,["to"]),e.createVNode(d.default,{onClick:o,class:"pd-small radius-big bg-black t-white uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Change Order ")]),_:1})]),_:1}),e.createVNode(e.unref(c.VueDraggableNext),{class:"dragArea list-group w-full",list:t.state.all,"item-key":"order",onEnd:s},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.all,(n,h)=>(e.openBlock(),e.createBlock(g.default,{key:n.id,category:n,onDelete:i,class:"pd-medium bg-grey radius-medium mn-b-thin"},null,8,["category"]))),128))]),_:1},8,["list"])])}}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),l=require("vue-router"),t=require("../../store/categories.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Block/Block.vue.cjs"),g=require("../blocks/CardCategory.vue.cjs"),f={class:"pd-thin"},p=e.createElementVNode("h1",{class:"mn-r-auto"}," Product Categories ",-1),_={__name:"Categories",setup(C){l.useRoute(),l.useRouter(),e.onMounted(async()=>{await t.actions.fetchCategories()});function s(){t.state.all.forEach((r,a)=>{r.order=a}),o()}async function o(){await t.actions.updateCategories(t.state.all)}async function i(r){confirm(`Are you sure you want to delete the category "${r.name}"?`)?await t.actions.deleteCategory(r.url):alert("Category deletion cancelled")}return(r,a)=>{const u=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(m.default,{class:"radius-big mn-b-thin flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[p,e.createVNode(u,{to:{name:"CategoryAdd",params:{_id:r.$route.params._id}},class:"mn-r-medium uppercase t-medium pd-small radius-big bg-white nav-link"},{default:e.withCtx(()=>[e.createTextVNode(" Add category ")]),_:1},8,["to"]),e.createVNode(d.default,{onClick:o,class:"pd-small radius-big bg-black t-white uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Change Order ")]),_:1})]),_:1}),e.createVNode(e.unref(c.VueDraggableNext),{class:"dragArea list-group w-full",list:t.state.all,"item-key":"order",onEnd:s},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.all,(n,h)=>(e.openBlock(),e.createBlock(g.default,{key:n.id,category:n,onDelete:i,class:"pd-medium bg-light radius-medium mn-b-thin"},null,8,["category"]))),128))]),_:1},8,["list"])])}}};exports.default=_;
@@ -1,4 +1,4 @@
1
- import { onMounted as p, resolveComponent as _, openBlock as i, createElementBlock as d, createVNode as t, withCtx as r, createTextVNode as m, unref as g, Fragment as C, renderList as h, createBlock as y, createElementVNode as b } from "vue";
1
+ import { onMounted as p, resolveComponent as _, openBlock as i, createElementBlock as d, createVNode as t, withCtx as r, createTextVNode as m, unref as g, Fragment as h, renderList as C, createBlock as y, createElementVNode as b } from "vue";
2
2
  import { VueDraggableNext as k } from "../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
3
3
  import { useRoute as w, useRouter as x } from "vue-router";
4
4
  import { actions as n, state as a } from "../../store/categories.js";
@@ -14,9 +14,9 @@ const E = { class: "pd-thin" }, N = /* @__PURE__ */ b("h1", { class: "mn-r-auto"
14
14
  function c() {
15
15
  a.all.forEach((e, o) => {
16
16
  e.order = o;
17
- }), s();
17
+ }), l();
18
18
  }
19
- async function s() {
19
+ async function l() {
20
20
  await n.updateCategories(a.all);
21
21
  }
22
22
  async function u(e) {
@@ -43,7 +43,7 @@ const E = { class: "pd-thin" }, N = /* @__PURE__ */ b("h1", { class: "mn-r-auto"
43
43
  _: 1
44
44
  }, 8, ["to"]),
45
45
  t($, {
46
- onClick: s,
46
+ onClick: l,
47
47
  class: "pd-small radius-big bg-black t-white uppercase t-medium"
48
48
  }, {
49
49
  default: r(() => [
@@ -61,11 +61,11 @@ const E = { class: "pd-thin" }, N = /* @__PURE__ */ b("h1", { class: "mn-r-auto"
61
61
  onEnd: c
62
62
  }, {
63
63
  default: r(() => [
64
- (i(!0), d(C, null, h(a.all, (l, B) => (i(), y(A, {
65
- key: l.id,
66
- category: l,
64
+ (i(!0), d(h, null, C(a.all, (s, B) => (i(), y(A, {
65
+ key: s.id,
66
+ category: s,
67
67
  onDelete: u,
68
- class: "pd-medium bg-grey radius-medium mn-b-thin"
68
+ class: "pd-medium bg-light radius-medium mn-b-thin"
69
69
  }, null, 8, ["category"]))), 128))
70
70
  ]),
71
71
  _: 1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../../components/Block/Block.vue.cjs"),w=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Feed/Feed.vue.cjs"),C=require("../../../../components/Select/Select.vue2.cjs"),q=require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const P=require("../blocks/CardPosition.vue.cjs"),x=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),v=require("vue-router"),p=require("../../../globals/store/globals.cjs"),V=require("../../../auth/store/auth.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");require("./EditLeftover.vue2.cjs");const B={class:"pd-thin"},E={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},S={class:""},D={class:"bg-grey mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},L={class:"gap-thin flex-v-center flex-nojustify flex"},R={class:"mn-r-auto"},F={__name:"EditLeftover",setup(O){const r=v.useRoute(),i=v.useRouter(),f=e.ref(m.state.all);e.ref(null);const b=e.computed(()=>Number(t.state.current.positions.reduce((a,s)=>Number(a)+Number(s.price),0))),c=e.ref(!1);function g(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{if(r.params.leftover)try{await t.actions.fetch(r.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const a=await m.actions.read({organization:r.params._id,limit:100});f.value=a}catch{console.error("error")}});function _(){r.params.leftover?t.actions.fetch(r.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){t.state.current.organization=r.params._id,r.params.leftover?t.actions.update(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")):(t.state.current.creator={type:"user",target:V.state.user._id},t.state.current.owner={type:"organization",target:r.params._id},console.log("leftover state is",t.state.current),t.actions.create(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")))}function k(){t.actions.delete(r.params.leftover).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error"))}return(a,s)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("header",E,[e.createElementVNode("h2",S,e.toDisplayString(e.unref(r).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(C.default,{select:t.state.current.type,"onUpdate:select":s[0]||(s[0]=o=>t.state.current.type=o),options:["stock-in","stock-out"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(q.default,{title:"Add position",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(N.default,{search:!0,states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:o=>m.actions.read(o),state:null},options:{organization:e.unref(r).params._id},class:""},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(n,l)=>(e.openBlock(),e.createBlock(x.default,{key:n._id,editable:!1,product:n,onClick:()=>{let u={...n};u.quantity=1,u.type="pcs",p.actions.add(t.state.current.positions,u),h()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),e.createVNode(d.default,{title:"Invetory Sheet",actions:[{label:"+",function:()=>g()}],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,(o,n)=>(e.openBlock(),e.createBlock(P.default,{key:o._id,product:o,array:t.state.current.positions,products:f.value,onUpdate:l=>p.actions.update(t.state.current.positions,l,n),onDelete:l=>p.actions.delete(t.state.current.positions,l,n),class:"mn-b-small radius-medium bg-white pd-small"},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1},8,["actions"]),e.createVNode(d.default,{title:"Comment",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(w.default,{field:t.state.current.comment,"onUpdate:field":s[1]||(s[1]=o=>t.state.current.comment=o),label:"Comment",type:"textarea",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"])]),_:1}),e.createVNode(d.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",L,[e.createElementVNode("h3",R," In total: "+e.toDisplayString(a.formatPrice(b.value)),1),e.createElementVNode("a",{onClick:s[2]||(s[2]=o=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:s[3]||(s[3]=o=>_())}," Reset "),e.unref(r).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:s[4]||(s[4]=o=>k()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})]))}};exports.default=F;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../../components/Block/Block.vue.cjs"),w=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Feed/Feed.vue.cjs"),C=require("../../../../components/Select/Select.vue2.cjs"),q=require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const P=require("../blocks/CardPosition.vue.cjs"),x=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),v=require("vue-router"),p=require("../../../globals/store/globals.cjs"),V=require("../../../auth/store/auth.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");require("./EditLeftover.vue2.cjs");const B={class:"pd-thin"},E={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},S={class:""},D={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},L={class:"gap-thin flex-v-center flex-nojustify flex"},R={class:"mn-r-auto"},F={__name:"EditLeftover",setup(O){const r=v.useRoute(),i=v.useRouter(),f=e.ref(m.state.all);e.ref(null);const b=e.computed(()=>Number(t.state.current.positions.reduce((a,s)=>Number(a)+Number(s.price),0))),c=e.ref(!1);function g(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{if(r.params.leftover)try{await t.actions.fetch(r.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const a=await m.actions.read({organization:r.params._id,limit:100});f.value=a}catch{console.error("error")}});function _(){r.params.leftover?t.actions.fetch(r.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){t.state.current.organization=r.params._id,r.params.leftover?t.actions.update(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")):(t.state.current.creator={type:"user",target:V.state.user._id},t.state.current.owner={type:"organization",target:r.params._id},console.log("leftover state is",t.state.current),t.actions.create(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")))}function k(){t.actions.delete(r.params.leftover).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error"))}return(a,s)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("header",E,[e.createElementVNode("h2",S,e.toDisplayString(e.unref(r).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(C.default,{select:t.state.current.type,"onUpdate:select":s[0]||(s[0]=o=>t.state.current.type=o),options:["stock-in","stock-out"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(q.default,{title:"Add position",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(N.default,{search:!0,states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:o=>m.actions.read(o),state:null},options:{organization:e.unref(r).params._id},class:""},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(n,l)=>(e.openBlock(),e.createBlock(x.default,{key:n._id,editable:!1,product:n,onClick:()=>{let u={...n};u.quantity=1,u.type="pcs",p.actions.add(t.state.current.positions,u),h()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),e.createVNode(d.default,{title:"Invetory Sheet",actions:[{label:"+",function:()=>g()}],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,(o,n)=>(e.openBlock(),e.createBlock(P.default,{key:o._id,product:o,array:t.state.current.positions,products:f.value,onUpdate:l=>p.actions.update(t.state.current.positions,l,n),onDelete:l=>p.actions.delete(t.state.current.positions,l,n),class:"mn-b-small radius-medium bg-white pd-small"},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1},8,["actions"]),e.createVNode(d.default,{title:"Comment",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(w.default,{field:t.state.current.comment,"onUpdate:field":s[1]||(s[1]=o=>t.state.current.comment=o),label:"Comment",type:"textarea",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"])]),_:1}),e.createVNode(d.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",L,[e.createElementVNode("h3",R," In total: "+e.toDisplayString(a.formatPrice(b.value)),1),e.createElementVNode("a",{onClick:s[2]||(s[2]=o=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:s[3]||(s[3]=o=>_())}," Reset "),e.unref(r).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:s[4]||(s[4]=o=>k()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})]))}};exports.default=F;
@@ -1,4 +1,4 @@
1
- import { ref as b, computed as z, onMounted as E, openBlock as l, createElementBlock as m, createElementVNode as n, toDisplayString as k, unref as h, createVNode as a, withCtx as c, Fragment as P, renderList as x, createBlock as $, createCommentVNode as U } from "vue";
1
+ import { ref as h, computed as z, onMounted as E, openBlock as l, createElementBlock as m, createElementVNode as n, toDisplayString as k, unref as b, createVNode as a, withCtx as c, Fragment as P, renderList as x, createBlock as $, createCommentVNode as U } from "vue";
2
2
  import v from "../../../../components/Block/Block.vue.js";
3
3
  import B from "../../../../components/Field/Field.vue2.js";
4
4
  import F from "../../../../components/Feed/Feed.vue.js";
@@ -13,12 +13,12 @@ import { state as M } from "../../../auth/store/auth.js";
13
13
  import { state as e, actions as u } from "../../store/leftovers.js";
14
14
  import { state as G, actions as C } from "../../store/products.js";
15
15
  import "./EditLeftover.vue2.js";
16
- const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, K = { class: "" }, Q = { class: "bg-grey mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, T = { class: "gap-thin flex-v-center flex-nojustify flex" }, W = { class: "mn-r-auto" }, de = {
16
+ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, K = { class: "" }, Q = { class: "bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, T = { class: "gap-thin flex-v-center flex-nojustify flex" }, W = { class: "mn-r-auto" }, de = {
17
17
  __name: "EditLeftover",
18
18
  setup(X) {
19
- const t = j(), d = q(), g = b(G.all);
20
- b(null);
21
- const N = z(() => Number(e.current.positions.reduce((s, o) => Number(s) + Number(o.price), 0))), f = b(!1);
19
+ const t = j(), d = q(), g = h(G.all);
20
+ h(null);
21
+ const N = z(() => Number(e.current.positions.reduce((s, o) => Number(s) + Number(o.price), 0))), f = h(!1);
22
22
  function S() {
23
23
  f.value = !0;
24
24
  }
@@ -70,7 +70,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
70
70
  }
71
71
  return (s, o) => (l(), m("div", H, [
72
72
  n("header", J, [
73
- n("h2", K, k(h(t).params.leftover ? "Edit " : "Add ") + " Inventory", 1),
73
+ n("h2", K, k(b(t).params.leftover ? "Edit " : "Add ") + " Inventory", 1),
74
74
  a(I, {
75
75
  select: e.current.type,
76
76
  "onUpdate:select": o[0] || (o[0] = (r) => e.current.type = r),
@@ -103,7 +103,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
103
103
  state: null
104
104
  },
105
105
  options: {
106
- organization: h(t).params._id
106
+ organization: b(t).params._id
107
107
  },
108
108
  class: ""
109
109
  }, {
@@ -184,7 +184,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
184
184
  class: "t-white bg-second button",
185
185
  onClick: o[3] || (o[3] = (r) => D())
186
186
  }, " Reset "),
187
- h(t).params.leftover ? (l(), m("a", {
187
+ b(t).params.leftover ? (l(), m("a", {
188
188
  key: 0,
189
189
  onClick: o[4] || (o[4] = (r) => R()),
190
190
  class: "t-white bg-red button"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),p=require("../blocks/CardLeftover.vue.cjs"),u=require("../../store/leftovers.cjs");require("./Leftovers.vue2.cjs");const v={class:"pd-thin"},f={class:"mn-b-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory",-1),h={class:"mn-b-semi pd-medium bg-grey radius-big"},_=e.createElementVNode("p",{class:"mn-b-thin"},"Balance:",-1),g={__name:"Leftovers",setup(k){const l=a.useRoute();a.useRouter();const s=e.ref(l.query.tab?l.query.tab:"all"),c=e.computed(()=>u.state.all.reduce((o,r)=>{const t=r.positions.reduce((n,i)=>n+i.price,0);return r.type==="stock-in"?o-t:r.type==="stock-out"?o+t:o},0));return(o,r)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("header",f,[b,e.createElementVNode("button",{onClick:r[0]||(r[0]=t=>o.$router.push({name:"LeftoverAdd"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createElementVNode("section",h,[_,e.createElementVNode("h3",null,e.toDisplayString(o.formatPrice(c.value)),1)]),e.createVNode(d.default,{selected:s.value,"onUpdate:selected":r[1]||(r[1]=t=>s.value=t),tabs:[{name:"All",value:"all"},{name:"Stock-In",value:"stock-in"},{name:"Stock-Out",value:"stock-out"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(m.default,{search:!0,states:{empty:{title:"No Leftovers Found",description:"Currently, there are no leftovers available."}},store:{read:t=>u.actions.read(t)},options:{limit:15,owner:e.unref(l).params._id,...s.value!=="all"&&{type:s.value}}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(p.default,{leftover:n,class:"bg-grey pd-small mn-b-thin radius-small"},null,8,["leftover"]))),256))]),_:1},8,["store","options"])]))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),p=require("../blocks/CardLeftover.vue.cjs"),u=require("../../store/leftovers.cjs");require("./Leftovers.vue2.cjs");const v={class:"pd-thin"},f={class:"mn-b-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory",-1),h={class:"mn-b-semi pd-medium bg-light radius-big"},_=e.createElementVNode("p",{class:"mn-b-thin"},"Balance:",-1),g={__name:"Leftovers",setup(k){const s=a.useRoute();a.useRouter();const l=e.ref(s.query.tab?s.query.tab:"all"),i=e.computed(()=>u.state.all.reduce((o,r)=>{const t=r.positions.reduce((n,c)=>n+c.price,0);return r.type==="stock-in"?o-t:r.type==="stock-out"?o+t:o},0));return(o,r)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("header",f,[b,e.createElementVNode("button",{onClick:r[0]||(r[0]=t=>o.$router.push({name:"LeftoverAdd"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createElementVNode("section",h,[_,e.createElementVNode("h3",null,e.toDisplayString(o.formatPrice(i.value)),1)]),e.createVNode(d.default,{selected:l.value,"onUpdate:selected":r[1]||(r[1]=t=>l.value=t),tabs:[{name:"All",value:"all"},{name:"Stock-In",value:"stock-in"},{name:"Stock-Out",value:"stock-out"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createVNode(m.default,{search:!0,states:{empty:{title:"No Leftovers Found",description:"Currently, there are no leftovers available."}},store:{read:t=>u.actions.read(t)},options:{limit:15,owner:e.unref(s).params._id,...l.value!=="all"&&{type:l.value}}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(p.default,{leftover:n,class:"bg-light pd-small mn-b-thin radius-small"},null,8,["leftover"]))),256))]),_:1},8,["store","options"])]))}};exports.default=g;
@@ -1,15 +1,15 @@
1
- import { ref as d, computed as p, openBlock as a, createElementBlock as i, createElementVNode as o, toDisplayString as f, createVNode as u, unref as v, withCtx as b, Fragment as _, renderList as h, createBlock as g } from "vue";
2
- import { useRoute as y, useRouter as k } from "vue-router";
1
+ import { ref as d, computed as p, openBlock as a, createElementBlock as i, createElementVNode as o, toDisplayString as f, createVNode as u, unref as v, withCtx as h, Fragment as b, renderList as _, createBlock as g } from "vue";
2
+ import { useRoute as k, useRouter as y } from "vue-router";
3
3
  import L from "../../../../components/Tab/Tab.vue2.js";
4
4
  import w from "../../../../components/Feed/Feed.vue.js";
5
5
  import x from "../blocks/CardLeftover.vue.js";
6
6
  import { state as B, actions as C } from "../../store/leftovers.js";
7
7
  import "./Leftovers.vue2.js";
8
- const $ = { class: "pd-thin" }, N = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ o("h2", { class: "mn-r-medium" }, "Inventory", -1), A = { class: "mn-b-semi pd-medium bg-grey radius-big" }, E = /* @__PURE__ */ o("p", { class: "mn-b-thin" }, "Balance:", -1), T = {
8
+ const $ = { class: "pd-thin" }, N = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ o("h2", { class: "mn-r-medium" }, "Inventory", -1), A = { class: "mn-b-semi pd-medium bg-light radius-big" }, E = /* @__PURE__ */ o("p", { class: "mn-b-thin" }, "Balance:", -1), T = {
9
9
  __name: "Leftovers",
10
10
  setup(F) {
11
- const n = y();
12
- k();
11
+ const n = k();
12
+ y();
13
13
  const s = d(n.query.tab ? n.query.tab : "all"), c = p(() => B.all.reduce((r, t) => {
14
14
  const e = t.positions.reduce((l, m) => l + m.price, 0);
15
15
  return t.type === "stock-in" ? r - e : t.type === "stock-out" ? r + e : r;
@@ -36,7 +36,7 @@ const $ = { class: "pd-thin" }, N = { class: "mn-b-medium flex-v-center flex-now
36
36
  { name: "Stock-In", value: "stock-in" },
37
37
  { name: "Stock-Out", value: "stock-out" }
38
38
  ],
39
- class: "mn-b-small o-hidden h5 radius-big bg-grey"
39
+ class: "mn-b-small o-hidden h5 radius-big bg-light"
40
40
  }, null, 8, ["selected"]),
41
41
  u(w, {
42
42
  search: !0,
@@ -55,12 +55,12 @@ const $ = { class: "pd-thin" }, N = { class: "mn-b-medium flex-v-center flex-now
55
55
  ...s.value !== "all" && { type: s.value }
56
56
  }
57
57
  }, {
58
- default: b(({
58
+ default: h(({
59
59
  items: e
60
60
  }) => [
61
- (a(!0), i(_, null, h(e, (l) => (a(), g(x, {
61
+ (a(!0), i(b, null, _(e, (l) => (a(), g(x, {
62
62
  leftover: l,
63
- class: "bg-grey pd-small mn-b-thin radius-small"
63
+ class: "bg-light pd-small mn-b-thin radius-small"
64
64
  }, null, 8, ["leftover"]))), 256))
65
65
  ]),
66
66
  _: 1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),a=require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const i=require("../sections/PopularProducts.vue.cjs"),l=require("../sections/SectionProduct.vue.cjs");require("../../store/categories.cjs");const d=require("../../../auth/store/auth.cjs"),t=require("../../store/products.cjs");require("./Product.vue2.cjs");const p={class:"flex flex-column w-100 o-hidden gap-thin pd-thin"},_={__name:"Product",async setup(m){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:{}}};return a.useI18n(n),(q,v)=>(e.openBlock(),e.createElementBlock("div",p,[c.value?(e.openBlock(),e.createBlock(l.default,{key:0,product:c.value,user:d.state.user,class:"pos-relative"},null,8,["product","user"])):e.createCommentVNode("",!0),e.createVNode(i.default)]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),a=require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const i=require("../sections/PopularProducts.vue.cjs"),l=require("../sections/SectionProduct.vue.cjs"),d=require("../../../auth/store/auth.cjs"),t=require("../../store/products.cjs");require("../../store/categories.cjs");require("./Product.vue2.cjs");const p={class:"flex flex-column w-100 o-hidden gap-thin pd-thin"},_={__name:"Product",async setup(m){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:{}}};return a.useI18n(n),(q,v)=>(e.openBlock(),e.createElementBlock("div",p,[c.value?(e.openBlock(),e.createBlock(l.default,{key:0,product:c.value,user:d.state.user,class:"pos-relative"},null,8,["product","user"])):e.createCommentVNode("",!0),e.createVNode(i.default)]))}};exports.default=_;
@@ -5,9 +5,9 @@ import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import f from "../sections/PopularProducts.vue.js";
7
7
  import h from "../sections/SectionProduct.vue.js";
8
- import "../../store/categories.js";
9
8
  import { state as x } from "../../../auth/store/auth.js";
10
9
  import { actions as k, state as e } from "../../store/products.js";
10
+ import "../../store/categories.js";
11
11
  import "./Product.vue2.js";
12
12
  const v = { class: "flex flex-column w-100 o-hidden gap-thin pd-thin" }, q = {
13
13
  __name: "Product",