@ozdao/prometheus-framework 0.2.47 → 0.2.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (445) hide show
  1. package/dist/main-610fd21a.mjs +13628 -0
  2. package/dist/main-669fac33.js +91 -0
  3. package/dist/main.css +1 -1
  4. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  5. package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
  6. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  7. package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
  8. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  9. package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
  10. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  11. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
  12. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
  13. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  14. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
  15. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
  16. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
  17. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  18. package/dist/node_modules/ethereum-cryptography/esm/utils.js +4 -3
  19. package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
  20. package/dist/node_modules/vue3-carousel/dist/carousel.css.js +4 -1
  21. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  22. package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
  23. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
  24. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
  25. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  26. package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
  27. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
  28. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
  29. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  30. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
  31. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
  32. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
  33. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
  34. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
  35. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  36. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
  37. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  38. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
  39. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  40. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
  41. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  42. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
  43. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  44. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
  45. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
  46. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
  47. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  48. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
  49. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  50. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
  51. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
  52. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
  53. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  54. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
  55. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  56. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
  57. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  58. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
  59. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  60. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
  61. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  62. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
  63. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
  64. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
  65. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  66. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
  67. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  68. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
  69. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  70. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
  71. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  72. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
  73. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
  74. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
  75. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
  76. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
  77. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  78. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
  79. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  80. package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
  81. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
  82. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
  83. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
  84. package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
  85. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
  86. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
  87. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
  88. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
  89. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
  90. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
  91. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
  92. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
  93. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
  94. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
  95. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
  96. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
  97. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  98. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
  99. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
  100. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
  101. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
  102. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
  103. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/components/Address/Address.vue.js +4 -1
  105. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +4 -1
  107. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/components/Button/Button.vue.js +227 -1
  109. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  110. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -225
  111. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +2 -61
  113. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  114. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +63 -1
  115. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  116. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -1
  117. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  118. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +4 -1
  119. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  120. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +4 -1
  121. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/components/Field/Field.vue.js +78 -1
  123. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  124. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
  125. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  127. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  129. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +4 -1
  131. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
  133. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +4 -1
  135. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +4 -1
  137. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +4 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  140. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +4 -1
  141. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +4 -1
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +4 -1
  145. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +4 -1
  147. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/Map/Map.vue.js +4 -1
  149. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
  151. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -1
  153. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -95
  155. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +97 -1
  157. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +4 -1
  159. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +4 -1
  161. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +46 -1
  163. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
  165. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -1
  167. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  169. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  170. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +4 -1
  171. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  173. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  177. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  181. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +4 -1
  183. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  185. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +4 -1
  187. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  189. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +4 -1
  191. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  193. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +4 -1
  195. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  197. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +4 -1
  199. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +4 -1
  201. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
  203. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  205. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  207. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +4 -1
  209. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  211. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +4 -1
  213. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +5 -5
  215. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  217. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +4 -1
  219. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +4 -1
  221. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  223. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  225. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  227. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +4 -1
  229. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  231. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  232. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
  233. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  234. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  235. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  237. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  239. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +4 -1
  241. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  243. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +7 -7
  245. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +4 -1
  247. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  249. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +4 -1
  251. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +4 -1
  253. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +4 -1
  255. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  257. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  259. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  261. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +4 -1
  263. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  265. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +4 -1
  267. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  269. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  271. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +4 -1
  273. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  275. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +4 -1
  277. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
  279. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +4 -1
  281. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -1
  283. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  285. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +4 -1
  287. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  289. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  291. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  293. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +4 -1
  295. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  297. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  299. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +4 -1
  301. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +4 -1
  303. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +4 -1
  305. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +4 -1
  307. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  309. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
  311. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +4 -1
  313. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  315. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +4 -1
  317. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  319. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  321. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  323. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +4 -1
  325. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  327. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  329. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  331. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -5
  333. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +4 -1
  335. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +4 -1
  337. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +4 -1
  339. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  341. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  343. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  345. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  347. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +4 -1
  349. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +4 -1
  351. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  353. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  354. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +50 -47
  355. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +4 -1
  357. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +4 -1
  359. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  361. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +4 -1
  363. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  365. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +4 -1
  367. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  369. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +4 -1
  371. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +4 -1
  373. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +4 -1
  375. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  377. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -1
  379. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  381. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +4 -1
  383. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  384. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +4 -1
  385. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  386. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +6 -6
  387. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  388. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +4 -1
  389. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +4 -1
  391. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  393. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  395. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  396. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  397. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  398. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  399. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +4 -1
  401. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +4 -1
  403. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  404. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -1
  405. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  406. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  407. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  408. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  409. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  410. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  411. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  412. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  413. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  414. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  415. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  416. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  417. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  418. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +4 -1
  419. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  420. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  421. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  422. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  423. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  424. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +4 -1
  425. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  426. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  427. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  428. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  429. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  430. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +4 -1
  431. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  432. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  433. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  434. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  435. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  436. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +3 -3
  437. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
  438. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
  439. package/dist/prometheus-framework.cjs.js +1 -1
  440. package/dist/prometheus-framework.es.js +1 -1
  441. package/dist/style.css +1 -1
  442. package/dist/web-0410cac1.js +1 -0
  443. package/dist/web-c1619455.mjs +55 -0
  444. package/package.json +1 -1
  445. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
@@ -1,7 +1,7 @@
1
1
  import { ref as m, openBlock as l, createElementBlock as o, createElementVNode as e, Fragment as b, renderList as h, createVNode as i, createCommentVNode as w, withCtx as x } from "vue";
2
- import g from "../../../../components/Field/Field.vue2.js";
3
- import k from "../../../../components/Select/Select.vue.js";
4
- import C from "../../../../components/Button/Button.vue2.js";
2
+ import g from "../../../../components/Field/Field.vue.js";
3
+ import k from "../../../../components/Select/Select.vue2.js";
4
+ import C from "../../../../components/Button/Button.vue.js";
5
5
  import "../../../middlewares/client/inputs.validation.js";
6
6
  import { state as y, actions as V } from "../../store/invites.js";
7
7
  const z = { class: "mn-b-medium radius-medium pd-semi bg-white" }, E = /* @__PURE__ */ e("h3", { class: "mn-b-medium" }, "Добавить участников", -1), M = /* @__PURE__ */ e("p", { class: "mn-b-small t-transp p-medium" }, "Укажите email или телефон, чтобы отправить ссылку с приглашением:", -1), N = { class: "w-100 flex-nowrap flex" }, B = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Tab/Tab.vue2.cjs"),v={class:"mn-b-big radius-medium bg-white"},b={key:0,class:"pd-semi"},_={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},k={class:"w-100 mn-r-small"},h={class:"t-transp"},B={key:0,class:"mn-l-medium flex-v-center flex"},f=["onClick"],g={key:1,class:"pd-semi"},E={key:0},y={class:"br-grey br-1px br-solid radius-small mn-b-thin flex-nowrap flex-v-center flex pd-medium"},x={class:"w-100 mn-r-small"},N={class:"t-transp"},V={class:"mn-l-medium flex-v-center flex"},C=["onClick"],S={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:a}){const i=n,c=a,o=e.ref("members");function m(l,s){i.memberships.splice(l,1),c("removeMember",s)}function d(l,s){i.invites.splice(l,1),c("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(p.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",k,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",h,e.toDisplayString(t.position),1),t.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("button",{onClick:u=>m(r,t),class:"button-small button"},"×",8,f)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",g,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",E,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",x,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",N,e.toDisplayString(t.status),1),e.createElementVNode("div",V,[e.createElementVNode("button",{onClick:u=>d(r,t),class:"button-small button"},"×",8,C)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Tab/Tab.vue.cjs"),v={class:"mn-b-big radius-medium bg-white"},b={key:0,class:"pd-semi"},_={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},k={class:"w-100 mn-r-small"},h={class:"t-transp"},B={key:0,class:"mn-l-medium flex-v-center flex"},f=["onClick"],g={key:1,class:"pd-semi"},E={key:0},y={class:"br-grey br-1px br-solid radius-small mn-b-thin flex-nowrap flex-v-center flex pd-medium"},x={class:"w-100 mn-r-small"},N={class:"t-transp"},V={class:"mn-l-medium flex-v-center flex"},C=["onClick"],S={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:a}){const i=n,c=a,o=e.ref("members");function m(l,s){i.memberships.splice(l,1),c("removeMember",s)}function d(l,s){i.invites.splice(l,1),c("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(p.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",k,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",h,e.toDisplayString(t.position),1),t.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("button",{onClick:u=>m(r,t),class:"button-small button"},"×",8,f)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",g,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",E,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",x,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",N,e.toDisplayString(t.status),1),e.createElementVNode("div",V,[e.createElementVNode("button",{onClick:u=>d(r,t),class:"button-small button"},"×",8,C)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=S;
@@ -1,5 +1,5 @@
1
1
  import { ref as x, openBlock as s, createElementBlock as t, createVNode as k, Fragment as v, renderList as b, createElementVNode as n, toDisplayString as o, createCommentVNode as m } from "vue";
2
- import y from "../../../../components/Tab/Tab.vue2.js";
2
+ import y from "../../../../components/Tab/Tab.vue.js";
3
3
  const g = { class: "mn-b-big radius-medium bg-white" }, w = {
4
4
  key: 0,
5
5
  class: "pd-semi"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
@@ -1,16 +1,16 @@
1
1
  import { ref as m, withAsyncContext as b, watch as _, openBlock as e, createElementBlock as n, createElementVNode as f, createBlock as p, Fragment as g, renderList as h, normalizeClass as w } from "vue";
2
2
  import { useRouter as v, useRoute as z } from "vue-router";
3
3
  import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
4
- import "../../../../components/Tab/Tab.vue.js";
5
- import "../../../../components/Field/Field.vue.js";
6
- import "../../../../components/Select/Select.vue2.js";
7
- import "../../../../components/Button/Button.vue.js";
4
+ import "../../../../components/Tab/Tab.vue2.js";
5
+ import "../../../../components/Field/Field.vue2.js";
6
+ import "../../../../components/Select/Select.vue.js";
7
+ import "../../../../components/Button/Button.vue2.js";
8
8
  import "../../../../components/Dropdown/Dropdown.vue2.js";
9
9
  import "../../../../components/Chips/Chips.vue2.js";
10
10
  import { state as k } from "../../../auth/store/auth.js";
11
11
  import "../../store/memberships.js";
12
12
  import "vue-i18n";
13
- import "../../../../components/Popup/Popup.vue2.js";
13
+ import "../../../../components/Popup/Popup.vue.js";
14
14
  import "../../../reports/store/reports.js";
15
15
  import { actions as q } from "../../store/organizations.js";
16
16
  import B from "../blocks/EmptyState.vue.js";
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const o=require("vue"),s=require("../../globals/store/globals.cjs"),n=i.default.create({baseURL:process.env.API_URL,withCredentials:!0});n.defaults.withCredentials=!0;const a=o.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),l={async readOne(t){await n.get(`/api/departments/get/${t}`).then(e=>{a.department=e.data,a.error=null}).catch(e=>{s.setError(e)})},async read(t){await n.get(`/api/departments/${t}`).then(e=>{console.log("Response:",e),a.departments=e.data,a.error=null}).catch(e=>{s.setError(e)})},async create(t,e){await n.post(`/api/departments/${t}/create`,e).then(r=>{a.error=null,a.department=r.data}).catch(r=>{s.setError(r)})},async update(t,e){await n.post(`/api/departments/${t}/update`,e).then(()=>{a.error=null}).catch(r=>{s.setError(r)})},async delete(t,e){await n.delete(`/api/departments/${t}/delete`,{data:{_id:e}}).then(()=>{a.error=null}).catch(r=>{s.setError(r)})}};o.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const o=require("vue"),s=require("../../globals/store/globals.cjs"),n=i.default.create({baseURL:process.env.API_URL,withCredentials:!0});n.defaults.withCredentials=!0;const a=o.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),l={async readOne(t){await n.get(`/api/departments/get/${t}`).then(e=>{a.department=e.data,a.error=null}).catch(e=>{s.setError(e)})},async read(t){await n.get(`/api/departments/${t}`).then(e=>{console.log("Response:",e),a.departments=e.data,a.error=null}).catch(e=>{s.setError(e)})},async create(t,e){await n.post(`/api/departments/${t}/create`,e).then(r=>{a.error=null,a.department=r.data}).catch(r=>{s.setError(r)})},async update(t,e){await n.post(`/api/departments/${t}/update`,e).then(()=>{a.error=null}).catch(r=>{s.setError(r)})},async delete(t,e){await n.delete(`/api/departments/${t}/delete`,{data:{_id:e}}).then(()=>{a.error=null}).catch(r=>{s.setError(r)})}};o.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
@@ -1,4 +1,4 @@
1
- import s from "../../../../../node_modules/axios/lib/axios.js";
1
+ import s from "../../../../node_modules/axios/lib/axios.js";
2
2
  import "../../../../../node_modules/js-cookie/dist/js.cookie.js";
3
3
  import { reactive as i, watch as d } from "vue";
4
4
  import { setError as o } from "../../globals/store/globals.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const c=require("vue"),i=require("../../globals/store/globals.cjs"),s=require("../../auth/store/auth.cjs"),r=o.default.create({baseURL:process.env.API_URL,withCredentials:!0});r.defaults.withCredentials=!0;const a=c.reactive({invites:[],invite:null,error:null}),l={async read(t){await r.get(`/api/invites/${t}`).then(e=>{a.invites=e.data,a.error=null}).catch(e=>{i.setError(e)})},async readOne(t){await r.get(`/api/invites/get/${t}`).then(e=>{a.invite=e.data,s.state.user.phone=e.data.invitedPhone,s.state.user.email=e.data.invitedEmail}).catch(e=>{i.setError(e)})},async create(t,e){await r.post(`/api/invites/${t}/create`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async update(t,e){await r.put(`/api/invites/${t}/update`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async delete(t){await r.delete(`/api/invites/${t}/delete`).then(()=>{a.error=null}).catch(e=>{i.setError(e)})}};c.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const c=require("vue"),i=require("../../globals/store/globals.cjs"),s=require("../../auth/store/auth.cjs"),r=o.default.create({baseURL:process.env.API_URL,withCredentials:!0});r.defaults.withCredentials=!0;const a=c.reactive({invites:[],invite:null,error:null}),l={async read(t){await r.get(`/api/invites/${t}`).then(e=>{a.invites=e.data,a.error=null}).catch(e=>{i.setError(e)})},async readOne(t){await r.get(`/api/invites/get/${t}`).then(e=>{a.invite=e.data,s.state.user.phone=e.data.invitedPhone,s.state.user.email=e.data.invitedEmail}).catch(e=>{i.setError(e)})},async create(t,e){await r.post(`/api/invites/${t}/create`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async update(t,e){await r.put(`/api/invites/${t}/update`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async delete(t){await r.delete(`/api/invites/${t}/delete`).then(()=>{a.error=null}).catch(e=>{i.setError(e)})}};c.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
@@ -1,4 +1,4 @@
1
- import c from "../../../../../node_modules/axios/lib/axios.js";
1
+ import c from "../../../../node_modules/axios/lib/axios.js";
2
2
  import "../../../../../node_modules/js-cookie/dist/js.cookie.js";
3
3
  import { reactive as o, watch as l } from "vue";
4
4
  import { setError as r } from "../../globals/store/globals.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../../node_modules/axios/lib/axios.cjs"),m=require("vue"),n=require("../../globals/store/globals.cjs"),c=d.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=m.reactive({memberships:[],error:null}),h={async read({user:r,type:e,target:i,role:l}){try{const s=await c.get("/api/memberships",{params:{user:r,type:e,target:i,role:l}});return o.error=null,o.memberships=s.data,Promise.resolve(s.data)}catch(s){return n.setError(s),Promise.reject(s)}},async create(r){try{const e=await c.post("/api/memberships/create",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async update(r){try{const e=await c.post("/api/memberships/update",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async delete(r){try{const e=await c.post("/api/memberships/delete",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}}},y={handleMembershipUpdate(r,e,i,l,s,p){let t;if(Array.isArray(r)?t=r.find(a=>a._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t[s]=i,i)t.memberships.push(e),t[p]+=1;else{const a=t.memberships.findIndex(u=>u._id===e._id);a!==-1&&(t.memberships.splice(a,1),t[p]-=1)}}};m.watch(o,r=>{});exports.actions=h;exports.mutations=y;exports.state=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),m=require("vue"),n=require("../../globals/store/globals.cjs"),c=d.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=m.reactive({memberships:[],error:null}),h={async read({user:r,type:e,target:i,role:l}){try{const s=await c.get("/api/memberships",{params:{user:r,type:e,target:i,role:l}});return o.error=null,o.memberships=s.data,Promise.resolve(s.data)}catch(s){return n.setError(s),Promise.reject(s)}},async create(r){try{const e=await c.post("/api/memberships/create",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async update(r){try{const e=await c.post("/api/memberships/update",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async delete(r){try{const e=await c.post("/api/memberships/delete",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}}},y={handleMembershipUpdate(r,e,i,l,s,p){let t;if(Array.isArray(r)?t=r.find(a=>a._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t[s]=i,i)t.memberships.push(e),t[p]+=1;else{const a=t.memberships.findIndex(u=>u._id===e._id);a!==-1&&(t.memberships.splice(a,1),t[p]-=1)}}};m.watch(o,r=>{});exports.actions=h;exports.mutations=y;exports.state=o;
@@ -1,4 +1,4 @@
1
- import d from "../../../../../node_modules/axios/lib/axios.js";
1
+ import d from "../../../../node_modules/axios/lib/axios.js";
2
2
  import { reactive as h, watch as u } from "vue";
3
3
  import { setError as n } from "../../globals/store/globals.js";
4
4
  const c = d.create({
@@ -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 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,4 +1,4 @@
1
- import n from "../../../../../node_modules/axios/lib/axios.js";
1
+ import n from "../../../../node_modules/axios/lib/axios.js";
2
2
  import l from "../../../../../node_modules/js-cookie/dist/js.cookie.js";
3
3
  import { reactive as o, watch as u } from "vue";
4
4
  import { setError as i } from "../../globals/store/globals.js";
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Field/Field.vue2.cjs"),y=require("../../../../components/Select/Select.vue.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../icons/navigation/IconAdd.vue.cjs"),V=require("../../../icons/navigation/IconDelete.vue.cjs"),q={class:"gap-thin flex-nowrap flex"},k=["disabled"],N={__name:"CardPosition",props:{product:Object,array:Array,products:Array},emits:["add","delete","update"],setup(c,{emit:i}){const t=c,s=i,l=e.ref(null),a=e.ref(null),d=e.ref("pcs"),u=e.ref(null),p=e.computed(()=>l.value&&a.value>0&&u.value>0);e.watch(t.array,()=>{l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type}),t.product&&(l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type),e.watch([l,a,u,d],()=>{s("update",{...l.value,price:u.value,quantity:a.value,type:d.value})});function m(){s("add",{...l.value,price:u.value,quantity:a.value,type:d.value})}function v(){s("delete",{...l.value,price:u.value,quantity:a.value,type:d.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(b.default,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=o=>l.value=o),options:c.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-white h-100 pd-small radius-small"},null,8,["modelValue","options"]),e.createVNode(n.default,{field:u.value,"onUpdate:field":r[1]||(r[1]=o=>u.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(n.default,{field:a.value,"onUpdate:field":r[3]||(r[3]=o=>a.value=o),type:"number",label:"Quantity",class:"bg-white pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(y.default,{select:d.value,"onUpdate:select":r[2]||(r[2]=o=>d.value=o),options:["pcs","g","ml"],class:"h-100 bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),c.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!p.value,onClick:m,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(g.default),{class:"i-semi"})],8,k)),c.product?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(V.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]))}};exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Field/Field.vue.cjs"),y=require("../../../../components/Select/Select.vue2.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../icons/navigation/IconAdd.vue.cjs"),V=require("../../../icons/navigation/IconDelete.vue.cjs"),q={class:"gap-thin flex-nowrap flex"},k=["disabled"],N={__name:"CardPosition",props:{product:Object,array:Array,products:Array},emits:["add","delete","update"],setup(c,{emit:i}){const t=c,s=i,l=e.ref(null),a=e.ref(null),d=e.ref("pcs"),u=e.ref(null),p=e.computed(()=>l.value&&a.value>0&&u.value>0);e.watch(t.array,()=>{l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type}),t.product&&(l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type),e.watch([l,a,u,d],()=>{s("update",{...l.value,price:u.value,quantity:a.value,type:d.value})});function m(){s("add",{...l.value,price:u.value,quantity:a.value,type:d.value})}function v(){s("delete",{...l.value,price:u.value,quantity:a.value,type:d.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(b.default,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=o=>l.value=o),options:c.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-white h-100 pd-small radius-small"},null,8,["modelValue","options"]),e.createVNode(n.default,{field:u.value,"onUpdate:field":r[1]||(r[1]=o=>u.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(n.default,{field:a.value,"onUpdate:field":r[3]||(r[3]=o=>a.value=o),type:"number",label:"Quantity",class:"bg-white pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(y.default,{select:d.value,"onUpdate:select":r[2]||(r[2]=o=>d.value=o),options:["pcs","g","ml"],class:"h-100 bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),c.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!p.value,onClick:m,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(g.default),{class:"i-semi"})],8,k)),c.product?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(V.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]))}};exports.default=N;
@@ -1,6 +1,6 @@
1
1
  import { ref as i, computed as x, watch as m, openBlock as c, createElementBlock as n, createVNode as d, withCtx as C, unref as v, createCommentVNode as f } from "vue";
2
- import y from "../../../../components/Field/Field.vue2.js";
3
- import P from "../../../../components/Select/Select.vue.js";
2
+ import y from "../../../../components/Field/Field.vue.js";
3
+ import P from "../../../../components/Select/Select.vue2.js";
4
4
  import V from "../../../../components/SelectMulti/SelectMulti.vue.js";
5
5
  import q from "../../../icons/navigation/IconAdd.vue.js";
6
6
  import S from "../../../icons/navigation/IconDelete.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-i18n"),n=require("../elements/THC.vue.cjs"),a=require("../elements/Price.vue.cjs"),i=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),l=["src"],r={class:"pd-medium t-left product-card-content"},u={class:"mn-b-thin t-semi h4"},d={key:1,class:"mn-b-small t-transp p-small"},s={__name:"CardProduct",props:["product"],setup(t){return c.useI18n(),(o,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big cols-1 o-hidden",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 pos-relative aspect-1x1",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.product.images[0],class:"pos-absolute object-fit-cover h-max-100 w-100"},null,8,l)):(e.openBlock(),e.createBlock(i.default,{key:1,class:"pos-absolute h-100 w-100"})),t.product.information.length>0&&t.product.information[1].name==="THC"?(e.openBlock(),e.createBlock(n.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",r,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",u,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",d,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(a.default,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])])],2))}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-i18n"),i=require("../elements/THC.vue.cjs"),l=require("../elements/Price.vue.cjs"),r=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),u=["src"],d={class:"pd-medium t-left product-card-content"},s={class:"mn-b-thin t-semi h4"},m={key:1,class:"mn-b-small t-transp p-small"},f={__name:"CardProduct",props:["product"],setup(t){return a.useI18n(),(n,h)=>{var o,c;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big cols-1 o-hidden",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 pos-relative aspect-1x1",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(n.FILE_SERVER_URL||"")+t.product.images[0],class:"pos-absolute object-fit-cover h-max-100 w-100"},null,8,u)):(e.openBlock(),e.createBlock(r.default,{key:1,class:"pos-absolute h-100 w-100"})),((o=t.product.information)==null?void 0:o.length)>0&&((c=t.product.information[1])==null?void 0:c.name)==="THC"?(e.openBlock(),e.createBlock(i.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",d,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",s,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",m,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(l.default,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])])],2)}}};exports.default=f;
@@ -1,61 +1,64 @@
1
- import { openBlock as o, createElementBlock as e, normalizeClass as i, createElementVNode as c, createBlock as r, createCommentVNode as a, toDisplayString as n, createVNode as l } from "vue";
2
- import { useI18n as m } from "vue-i18n";
3
- import u from "../elements/THC.vue.js";
4
- import s from "../elements/Price.vue.js";
5
- import f from "../../../icons/placeholders/PlaceholderImage.vue.js";
6
- const h = ["src"], A = { class: "pd-medium t-left product-card-content" }, b = { class: "mn-b-thin t-semi h4" }, g = {
1
+ import { openBlock as o, createElementBlock as e, normalizeClass as i, createElementVNode as c, createBlock as l, createCommentVNode as a, toDisplayString as n, createVNode as u } from "vue";
2
+ import { useI18n as s } from "vue-i18n";
3
+ import f from "../elements/THC.vue.js";
4
+ import h from "../elements/Price.vue.js";
5
+ import A from "../../../icons/placeholders/PlaceholderImage.vue.js";
6
+ const b = ["src"], g = { class: "pd-medium t-left product-card-content" }, p = { class: "mn-b-thin t-semi h4" }, v = {
7
7
  key: 1,
8
8
  class: "mn-b-small t-transp p-small"
9
- }, C = {
9
+ }, x = {
10
10
  __name: "CardProduct",
11
11
  props: ["product"],
12
12
  setup(t) {
13
- return m(), (d, p) => (o(), e("div", {
14
- class: i([
15
- "radius-big cols-1 o-hidden",
16
- t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black t-white" : "bg-white"
17
- ])
18
- }, [
19
- c("div", {
13
+ return s(), (m, k) => {
14
+ var r, d;
15
+ return o(), e("div", {
20
16
  class: i([
21
- "o-hidden w-100 pos-relative aspect-1x1",
22
- t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black" : "bg-white"
17
+ "radius-big cols-1 o-hidden",
18
+ t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black t-white" : "bg-white"
23
19
  ])
24
20
  }, [
25
- t.product.images[0] ? (o(), e("img", {
26
- key: 0,
27
- src: (d.FILE_SERVER_URL || "") + t.product.images[0],
28
- class: "pos-absolute object-fit-cover h-max-100 w-100"
29
- }, null, 8, h)) : (o(), r(f, {
30
- key: 1,
31
- class: "pos-absolute h-100 w-100"
32
- })),
33
- t.product.information.length > 0 && t.product.information[1].name === "THC" ? (o(), r(u, {
34
- key: 2,
35
- product: t.product
36
- }, null, 8, ["product"])) : a("", !0)
37
- ], 2),
38
- c("div", A, [
39
- t.product.information.length > 0 ? (o(), e("p", {
40
- key: 0,
21
+ c("div", {
41
22
  class: i([
42
- "t-semi h6",
43
- t.product.information[2] && t.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
23
+ "o-hidden w-100 pos-relative aspect-1x1",
24
+ t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black" : "bg-white"
44
25
  ])
45
- }, n(t.product.information[0].value), 3)) : a("", !0),
46
- c("p", b, n(t.product.name), 1),
47
- t.product.description && !t.product.localization ? (o(), e("p", g, n(t.product.description.substring(0, 99)) + "... ", 1)) : a("", !0),
48
- l(s, {
49
- product: t.product,
50
- size: "small",
51
- class: i(
52
- t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-third t-white" : ""
53
- )
54
- }, null, 8, ["product", "class"])
55
- ])
56
- ], 2));
26
+ }, [
27
+ t.product.images[0] ? (o(), e("img", {
28
+ key: 0,
29
+ src: (m.FILE_SERVER_URL || "") + t.product.images[0],
30
+ class: "pos-absolute object-fit-cover h-max-100 w-100"
31
+ }, null, 8, b)) : (o(), l(A, {
32
+ key: 1,
33
+ class: "pos-absolute h-100 w-100"
34
+ })),
35
+ ((r = t.product.information) == null ? void 0 : r.length) > 0 && ((d = t.product.information[1]) == null ? void 0 : d.name) === "THC" ? (o(), l(f, {
36
+ key: 2,
37
+ product: t.product
38
+ }, null, 8, ["product"])) : a("", !0)
39
+ ], 2),
40
+ c("div", g, [
41
+ t.product.information.length > 0 ? (o(), e("p", {
42
+ key: 0,
43
+ class: i([
44
+ "t-semi h6",
45
+ t.product.information[2] && t.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
46
+ ])
47
+ }, n(t.product.information[0].value), 3)) : a("", !0),
48
+ c("p", p, n(t.product.name), 1),
49
+ t.product.description && !t.product.localization ? (o(), e("p", v, n(t.product.description.substring(0, 99)) + "... ", 1)) : a("", !0),
50
+ u(h, {
51
+ product: t.product,
52
+ size: "small",
53
+ class: i(
54
+ t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-third t-white" : ""
55
+ )
56
+ }, null, 8, ["product", "class"])
57
+ ])
58
+ ], 2);
59
+ };
57
60
  }
58
61
  };
59
62
  export {
60
- C as default
63
+ x as default
61
64
  };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Popup/Popup.vue.cjs"),c=require("../../../../components/Magnifier/Magnifier.vue.cjs");require("./ImagesThumbnails.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),p={class:"product-images"},m={class:"no-responsive cols-4 gap-thin"},_=["src","onClick"],g={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(o){const t=e.ref(!1),n=e.ref(0),a=s=>{n.value=s,t.value=!0},i=()=>{t.value=!1};return(s,v)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.images,(l,r)=>(e.openBlock(),e.createElementBlock("img",{key:r,src:(s.FILE_SERVER_URL||"")+l,onClick:h=>a(r),class:"radius-medium bg-white o-hidden thumbnail"},null,8,_))),128))]),e.createVNode(u.default,{onClosePopup:i,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(c.default,{imageSrc:(s.FILE_SERVER_URL||"")+o.images[n.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},f=d.default(g,[["__scopeId","data-v-5058c750"]]);exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Popup/Popup.vue2.cjs"),c=require("../../../../components/Magnifier/Magnifier.vue.cjs");require("./ImagesThumbnails.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),p={class:"product-images"},m={class:"no-responsive cols-4 gap-thin"},_=["src","onClick"],g={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(o){const t=e.ref(!1),n=e.ref(0),a=s=>{n.value=s,t.value=!0},i=()=>{t.value=!1};return(s,v)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.images,(l,r)=>(e.openBlock(),e.createElementBlock("img",{key:r,src:(s.FILE_SERVER_URL||"")+l,onClick:h=>a(r),class:"radius-medium bg-white o-hidden thumbnail"},null,8,_))),128))]),e.createVNode(u.default,{onClosePopup:i,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(c.default,{imageSrc:(s.FILE_SERVER_URL||"")+o.images[n.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},f=d.default(g,[["__scopeId","data-v-5058c750"]]);exports.default=f;
@@ -1,5 +1,5 @@
1
1
  import { ref as r, openBlock as o, createElementBlock as i, createElementVNode as p, Fragment as d, renderList as _, createVNode as c, withCtx as g } from "vue";
2
- import f from "../../../../components/Popup/Popup.vue.js";
2
+ import f from "../../../../components/Popup/Popup.vue2.js";
3
3
  import h from "../../../../components/Magnifier/Magnifier.vue.js";
4
4
  import "./ImagesThumbnails.vue2.js";
5
5
  import v from "../../../../../../_virtual/_plugin-vue_export-helper.js";
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),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.vue.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,6 +1,6 @@
1
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";
2
2
  import { useRouter as b, useRoute as _ } from "vue-router";
3
- import a from "../../../../components/Field/Field.vue2.js";
3
+ import a from "../../../../components/Field/Field.vue.js";
4
4
  import { actions as g } from "../../store/leftovers.js";
5
5
  import "./LeftoverPositions.vue2.js";
6
6
  const k = { class: "flex-column flex-wrap block" }, h = {
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../components/Field/Field.vue.cjs");const i=require("./CardPosition.vue.cjs"),u=require("../../store/leftovers.cjs");require("./ListPositions.vue2.cjs");const a={class:"flex-column flex-wrap"},d={key:0,class:"w-100"},m={class:"flex-v-center flex radius-medium pd-small bg-white w-100"},p={__name:"ListPositions",props:{order:Object},setup(t){n.useRouter(),n.useRoute();const l=t;function s(r){u.actions.deleteItemFromLeftover(l.order.positions[r])}return(r,f)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",a,[t.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",d," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.order.positions,(o,c)=>(e.openBlock(),e.createElementBlock("li",{key:o._id,class:"w-100 gap-small flex-stretch flex-center flex-nowrap flex"},[e.createElementVNode("span",m,e.toDisplayString(o.name),1),e.createVNode(i.default,{products:[],product:o,onAdd:_=>s(c)},null,8,["product","onAdd"])]))),128))])]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../components/Field/Field.vue2.cjs");const i=require("./CardPosition.vue.cjs"),u=require("../../store/leftovers.cjs");require("./ListPositions.vue2.cjs");const a={class:"flex-column flex-wrap"},d={key:0,class:"w-100"},m={class:"flex-v-center flex radius-medium pd-small bg-white w-100"},p={__name:"ListPositions",props:{order:Object},setup(t){n.useRouter(),n.useRoute();const l=t;function s(r){u.actions.deleteItemFromLeftover(l.order.positions[r])}return(r,f)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",a,[t.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",d," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.order.positions,(o,c)=>(e.openBlock(),e.createElementBlock("li",{key:o._id,class:"w-100 gap-small flex-stretch flex-center flex-nowrap flex"},[e.createElementVNode("span",m,e.toDisplayString(o.name),1),e.createVNode(i.default,{products:[],product:o,onAdd:_=>s(c)},null,8,["product","onAdd"])]))),128))])]))}};exports.default=p;
@@ -1,6 +1,6 @@
1
1
  import { openBlock as e, createElementBlock as t, createElementVNode as n, createCommentVNode as d, Fragment as a, renderList as m, toDisplayString as p, createVNode as u } from "vue";
2
2
  import { useRouter as f, useRoute as _ } from "vue-router";
3
- import "../../../../components/Field/Field.vue.js";
3
+ import "../../../../components/Field/Field.vue2.js";
4
4
  import x from "./CardPosition.vue.js";
5
5
  import { actions as h } from "../../store/leftovers.js";
6
6
  import "./ListPositions.vue2.js";
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue.cjs");const g=require("../../../../components/Select/Select.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const p=require("../blocks/CardPosition.vue.cjs"),f=require("vue-router"),l=require("../../../globals/store/globals.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");require("./EditLeftover.vue2.cjs");const h={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},N={class:""},q={class:"gap-thin flex-v-center flex-nojustify flex"},B={class:"mn-r-auto"},V={__name:"EditLeftover",setup(E){const s=f.useRoute(),c=f.useRouter(),i=e.ref(m.state.all);e.ref(null);const v=e.computed(()=>t.state.current.positions.reduce((o,r)=>o+r.price*(r.quantity||1),0));e.onMounted(async()=>{if(s.params.leftover)try{await t.actions.fetch(s.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const o=await m.actions.read({organization:s.params._id,limit:100});i.value=o}catch{console.error("error")}});function k(){s.params.leftover?t.actions.fetch(s.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){s.params.leftover?t.actions.update(t.state.current).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error")):t.actions.create(t.state.current).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error"))}function b(){t.actions.delete(s.params.leftover).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error"))}return(o,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",h,[e.createElementVNode("h2",N,e.toDisplayString(e.unref(s).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(g.default,{select:t.state.current.type,"onUpdate:select":r[0]||(r[0]=n=>t.state.current.type=n),options:["stock-in","stock-out","write-off"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(u.default,{title:"Add Position",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(p.default,{onAdd:r[1]||(r[1]=n=>l.actions.add(t.state.current.positions,n)),products:i.value},null,8,["products"])]),_:1}),e.createVNode(u.default,{title:"Invetory Sheet",placeholder:"No positions added yet",class:"mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(n,d)=>(e.openBlock(),e.createBlock(p.default,{key:n._id,product:n,array:t.state.current.positions,products:i.value,onAdd:r[2]||(r[2]=a=>l.actions.add(t.state.current.positions,a)),onUpdate:a=>l.actions.update(t.state.current.positions,a,d),onDelete:a=>l.actions.delete(t.state.current.positions,a,d)},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1}),e.createVNode(u.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",q,[e.createElementVNode("h3",B," In total: "+e.toDisplayString(o.formatPrice(v.value)),1),e.createElementVNode("a",{onClick:r[3]||(r[3]=n=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:r[4]||(r[4]=n=>k())}," Reset "),e.unref(s).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:r[5]||(r[5]=n=>b()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})],64))}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue2.cjs");const g=require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const p=require("../blocks/CardPosition.vue.cjs"),f=require("vue-router"),l=require("../../../globals/store/globals.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");require("./EditLeftover.vue2.cjs");const h={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},N={class:""},q={class:"gap-thin flex-v-center flex-nojustify flex"},B={class:"mn-r-auto"},V={__name:"EditLeftover",setup(E){const s=f.useRoute(),c=f.useRouter(),i=e.ref(m.state.all);e.ref(null);const v=e.computed(()=>t.state.current.positions.reduce((o,r)=>o+r.price*(r.quantity||1),0));e.onMounted(async()=>{if(s.params.leftover)try{await t.actions.fetch(s.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const o=await m.actions.read({organization:s.params._id,limit:100});i.value=o}catch{console.error("error")}});function k(){s.params.leftover?t.actions.fetch(s.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){s.params.leftover?t.actions.update(t.state.current).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error")):t.actions.create(t.state.current).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error"))}function b(){t.actions.delete(s.params.leftover).then(()=>c.push({name:"Backoffice Leftovers"}),o=>console.error("error"))}return(o,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",h,[e.createElementVNode("h2",N,e.toDisplayString(e.unref(s).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(g.default,{select:t.state.current.type,"onUpdate:select":r[0]||(r[0]=n=>t.state.current.type=n),options:["stock-in","stock-out","write-off"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(u.default,{title:"Add Position",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(p.default,{onAdd:r[1]||(r[1]=n=>l.actions.add(t.state.current.positions,n)),products:i.value},null,8,["products"])]),_:1}),e.createVNode(u.default,{title:"Invetory Sheet",placeholder:"No positions added yet",class:"mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(n,d)=>(e.openBlock(),e.createBlock(p.default,{key:n._id,product:n,array:t.state.current.positions,products:i.value,onAdd:r[2]||(r[2]=a=>l.actions.add(t.state.current.positions,a)),onUpdate:a=>l.actions.update(t.state.current.positions,a,d),onDelete:a=>l.actions.delete(t.state.current.positions,a,d)},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1}),e.createVNode(u.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",q,[e.createElementVNode("h3",B," In total: "+e.toDisplayString(o.formatPrice(v.value)),1),e.createElementVNode("a",{onClick:r[3]||(r[3]=n=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:r[4]||(r[4]=n=>k())}," Reset "),e.unref(s).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:r[5]||(r[5]=n=>b()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})],64))}};exports.default=V;
@@ -1,7 +1,7 @@
1
1
  import { ref as k, computed as S, onMounted as C, openBlock as c, createElementBlock as d, Fragment as b, createElementVNode as n, toDisplayString as h, unref as _, createVNode as i, withCtx as f, renderList as D, createBlock as L, createCommentVNode as R } from "vue";
2
2
  import v from "../../../../components/Block/Block.vue.js";
3
- import "../../../../components/Field/Field.vue.js";
4
- import A from "../../../../components/Select/Select.vue.js";
3
+ import "../../../../components/Field/Field.vue2.js";
4
+ import A from "../../../../components/Select/Select.vue2.js";
5
5
  import "../../../../components/SelectMulti/SelectMulti.vue2.js";
6
6
  import g from "../blocks/CardPosition.vue.js";
7
7
  import { useRoute as E, useRouter as N } from "vue-router";
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1 +1,4 @@
1
-
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),f=require("../blocks/CardLeftover.vue.cjs"),i=require("../../store/leftovers.cjs");require("./Leftovers.vue2.cjs");const v={class:"pd-thin"},p={class:"mn-b-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory",-1),g={class:"mn-b-semi pd-medium bg-grey radius-big"},_=e.createElementVNode("p",{class:"mn-b-thin"},"Spended:",-1),h={__name:"Leftovers",setup(k){const s=u.useRoute();u.useRouter();const l=e.ref(s.query.tab?s.query.tab:"all"),c=e.computed(()=>i.state.all.reduce((o,r)=>{const t=r.positions.reduce((n,a)=>n+a.price*(a.quantity||1),0);return o+t},0));return(o,r)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("header",p,[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",g,[_,e.createElementVNode("h3",null,e.toDisplayString(o.formatPrice(c.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"},{name:"Write-Off",value:"write-off"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(m.default,{states:{empty:{title:"No Leftovers Found",description:"Currently, there are no leftovers available."}},store:{read:t=>i.actions.read(t)},options:{limit:15,organization:e.unref(s).params._id}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(f.default,{leftover:n,class:"bg-grey pd-small radius-big"},null,8,["leftover"]))),256))]),_:1},8,["states","store","options"])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Tab/Tab.vue.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),f=require("../blocks/CardLeftover.vue.cjs"),i=require("../../store/leftovers.cjs");require("./Leftovers.vue2.cjs");const v={class:"pd-thin"},p={class:"mn-b-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory",-1),g={class:"mn-b-semi pd-medium bg-grey radius-big"},_=e.createElementVNode("p",{class:"mn-b-thin"},"Spended:",-1),h={__name:"Leftovers",setup(k){const s=u.useRoute();u.useRouter();const l=e.ref(s.query.tab?s.query.tab:"all"),c=e.computed(()=>i.state.all.reduce((o,r)=>{const t=r.positions.reduce((n,a)=>n+a.price*(a.quantity||1),0);return o+t},0));return(o,r)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("header",p,[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",g,[_,e.createElementVNode("h3",null,e.toDisplayString(o.formatPrice(c.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"},{name:"Write-Off",value:"write-off"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(m.default,{states:{empty:{title:"No Leftovers Found",description:"Currently, there are no leftovers available."}},store:{read:t=>i.actions.read(t)},options:{limit:15,organization:e.unref(s).params._id}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(f.default,{leftover:n,class:"bg-grey pd-small radius-big"},null,8,["leftover"]))),256))]),_:1},8,["states","store","options"])]))}};exports.default=h;