@ozdao/prometheus-framework 0.2.156 → 0.2.158

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +1 -1
  2. package/dist/_virtual/_commonjsHelpers.js +5 -3
  3. package/dist/_virtual/purify.cjs +1 -0
  4. package/dist/_virtual/purify.js +4 -0
  5. package/dist/builder.js +822 -0
  6. package/dist/builder.mjs +801 -0
  7. package/dist/{main-D_RRsfEH.mjs → main-Ba3SEUWZ.mjs} +1812 -1774
  8. package/dist/main-ldzk-jIP.js +92 -0
  9. package/dist/main.css +1 -1
  10. package/dist/node_modules/dompurify/dist/purify.cjs +2 -0
  11. package/dist/node_modules/dompurify/dist/purify.js +531 -0
  12. package/dist/node_modules/isomorphic-dompurify/browser.cjs +1 -0
  13. package/dist/node_modules/isomorphic-dompurify/browser.js +7 -0
  14. package/dist/products.server.js +1 -1
  15. package/dist/products.server.mjs +1 -1
  16. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/regex.cjs +1 -0
  17. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/regex.js +4 -0
  18. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/rng.cjs +1 -0
  19. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/rng.js +9 -0
  20. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/stringify.cjs +1 -0
  21. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/stringify.js +13 -0
  22. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/v4.cjs +1 -0
  23. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/v4.js +10 -0
  24. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/validate.cjs +1 -0
  25. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  26. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  28. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  30. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +47 -30
  32. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +9 -9
  33. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  34. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +10 -10
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +14 -14
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +9 -9
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +11 -11
  38. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +34 -34
  39. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +27 -27
  40. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -0
  41. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +58 -0
  42. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +11 -180
  44. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -0
  45. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +190 -0
  46. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +9 -7
  48. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +48 -43
  50. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +41 -63
  54. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +37 -36
  58. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +5 -5
  60. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +3 -0
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +13 -13
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  66. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +105 -53
  67. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +92 -98
  69. package/dist/prometheus-framework/src/modules/constructor/components/sections/Viewer.vue.cjs +1 -0
  70. package/dist/prometheus-framework/src/modules/constructor/components/sections/Viewer.vue.js +39 -0
  71. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +13 -12
  77. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +19 -19
  79. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  83. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +7 -7
  84. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +2 -2
  88. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +13 -15
  92. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  96. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +4 -4
  100. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +8 -8
  101. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/orders/orders.client.js +34 -33
  105. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  109. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
  111. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +14 -14
  117. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  119. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +10 -10
  121. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +5 -5
  123. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  125. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +13 -7
  127. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +18 -18
  129. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +6 -6
  132. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +11 -11
  134. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +17 -17
  136. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +30 -30
  138. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +9 -9
  139. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  141. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  143. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  145. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +16 -16
  151. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/spots/router/spots.js +4 -0
  153. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  155. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +22 -22
  156. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +4 -4
  157. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +17 -17
  159. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -5
  161. package/dist/prometheus-framework.cjs.js +1 -1
  162. package/dist/prometheus-framework.es.js +1 -1
  163. package/dist/style.css +1 -1
  164. package/dist/{web-5eyiz9L7.mjs → web-CT2tGYho.mjs} +1 -1
  165. package/dist/{web-C04IcLk4.js → web-DWjMBTNi.js} +1 -1
  166. package/package.json +7 -2
  167. package/src/builder/builder.js +14 -0
  168. package/src/builder/modes/spa.dev.js +100 -0
  169. package/src/builder/modes/spa.prod.js +59 -0
  170. package/src/builder/modes/ssr.dev.js +184 -0
  171. package/src/builder/modes/ssr.prod.js +76 -0
  172. package/src/builder/ssr/ssr-render-html.js +57 -0
  173. package/src/builder/ssr/ssr-transform-webpack-stats.js +54 -0
  174. package/src/builder/templates/page.html +37 -0
  175. package/src/builder/templates/screen.html +33 -0
  176. package/src/builder/utils/hot-reload.js +5 -0
  177. package/src/builder/webpack/index.js +13 -0
  178. package/src/builder/webpack/webpack.config.base.js +127 -0
  179. package/src/builder/webpack/webpack.config.client.js +78 -0
  180. package/src/builder/webpack/webpack.config.server.js +31 -0
  181. package/src/builder/webpack/webpack.config.spa.js +80 -0
  182. package/src/builder/webpack/webpack.config.ssr.js +57 -0
  183. package/src/components/Breadcrumbs/Breadcrumbs.vue +39 -16
  184. package/src/components/Field/Field.vue +21 -2
  185. package/src/components/Popup/Popup.vue +1 -1
  186. package/src/modules/auth/store/auth.js +1 -2
  187. package/src/modules/backoffice/components/layouts/Backoffice.vue +36 -62
  188. package/src/modules/backoffice/components/pages/Dashboard.vue +2 -125
  189. package/src/modules/backoffice/components/partials/Sidebar.vue +176 -0
  190. package/src/modules/backoffice/router/admin.js +0 -15
  191. package/src/modules/backoffice/router/backoffice.js +5 -1
  192. package/src/modules/community/components/blocks/CardBlogpost.vue +6 -1
  193. package/src/modules/community/components/pages/BlogPost.vue +30 -67
  194. package/src/modules/community/components/sections/Comments.vue +1 -1
  195. package/src/modules/community/router/blogposts.js +4 -0
  196. package/src/modules/constructor/components/elements/Textarea.vue +197 -79
  197. package/src/modules/constructor/components/sections/Constructor.vue +19 -32
  198. package/src/modules/constructor/components/sections/Viewer.vue +53 -0
  199. package/src/modules/globals/components/layouts/Client.vue +21 -7
  200. package/src/modules/globals/components/layouts/Empty.vue +1 -6
  201. package/src/modules/globals/components/pages/404.vue +1 -1
  202. package/src/modules/globals/components/sections/SectionPageTitle.vue +2 -2
  203. package/src/modules/globals/mixins/mixins.js +129 -97
  204. package/src/modules/landing/router/landing.js +3 -0
  205. package/src/modules/marketplace/components/pages/Catalog.vue +1 -1
  206. package/src/modules/middlewares/client/auth.validation.js +14 -15
  207. package/src/modules/orders/orders.client.js +4 -2
  208. package/src/modules/organizations/router/organizations.js +9 -3
  209. package/src/modules/pages/controllers/factories/pages.factory.js +106 -0
  210. package/src/modules/pages/controllers/routes/pages.routes.js +24 -0
  211. package/src/modules/pages/models/page.model.js +18 -11
  212. package/src/modules/pages/pages.client.js +40 -0
  213. package/src/modules/pages/pages.server.js +32 -0
  214. package/src/modules/pages/views/components/blocks/CardPage.vue +123 -0
  215. package/src/modules/pages/views/components/pages/Page.vue +173 -0
  216. package/src/modules/pages/views/components/pages/PageEdit.vue +121 -0
  217. package/src/modules/pages/views/components/pages/Pages.vue +60 -0
  218. package/src/modules/pages/views/components/partials/SidebarPages.vue +112 -0
  219. package/src/modules/pages/views/router/pages.backoffice.router.js +46 -0
  220. package/src/modules/pages/views/router/pages.router.js +25 -0
  221. package/src/modules/pages/views/store/pages.js +78 -0
  222. package/src/modules/pages/views/store/pages.store.js +5 -0
  223. package/src/modules/products/controllers/leftovers.controller.js +1 -1
  224. package/src/modules/spots/router/spots.js +4 -0
  225. package/src/styles/base/all.scss +66 -53
  226. package/dist/index-BshfsiQG.js +0 -220
  227. package/dist/index-C-8xOJnM.mjs +0 -244
  228. package/dist/index-C-DW6ra2.js +0 -260
  229. package/dist/index-CDbtWkBj.js +0 -243
  230. package/dist/index-D4j29ivg.mjs +0 -261
  231. package/dist/index-DKtnWDNC.mjs +0 -221
  232. package/dist/index-DNI4aUP2.js +0 -259
  233. package/dist/index-Tcyehi73.mjs +0 -260
  234. package/dist/main-3Vn8SU2y.mjs +0 -14509
  235. package/dist/main-5IrI2IOV.js +0 -92
  236. package/dist/main-BFKp44Ze.mjs +0 -14509
  237. package/dist/main-BF_nMkug.js +0 -92
  238. package/dist/main-BHr0-Z3t.mjs +0 -14510
  239. package/dist/main-BY2OvGB9.mjs +0 -14509
  240. package/dist/main-Bcj0J6tP.mjs +0 -14509
  241. package/dist/main-Bq5YvSWe.mjs +0 -14509
  242. package/dist/main-BxHxhrZ_.js +0 -92
  243. package/dist/main-By5Tbyui.js +0 -92
  244. package/dist/main-CEoQQpJV.js +0 -92
  245. package/dist/main-CI9l9xMs.js +0 -92
  246. package/dist/main-Ckn0Sslr.js +0 -92
  247. package/dist/main-DBv451oC.js +0 -92
  248. package/dist/main-DPg58GOU.mjs +0 -14509
  249. package/dist/main-DTHFR7H_.mjs +0 -14510
  250. package/dist/main-DxyAONrm.mjs +0 -14438
  251. package/dist/main-gY_284gJ.js +0 -92
  252. package/dist/main-wXdocsbd.js +0 -92
  253. package/dist/middlewares.server.js +0 -19
  254. package/dist/middlewares.server.mjs +0 -20
  255. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +0 -1
  256. package/dist/prometheus-framework/src/components/Address/Address.vue.js +0 -89
  257. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +0 -1
  258. package/dist/prometheus-framework/src/components/Button/Button.vue.js +0 -95
  259. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +0 -1
  260. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +0 -26
  261. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +0 -1
  262. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +0 -57
  263. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +0 -1
  264. package/dist/prometheus-framework/src/components/Field/Field.vue.js +0 -83
  265. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +0 -1
  266. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +0 -127
  267. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +0 -1
  268. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +0 -77
  269. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +0 -1
  270. package/dist/prometheus-framework/src/components/Select/Select.vue.js +0 -103
  271. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +0 -1
  272. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +0 -36
  273. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +0 -1
  274. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +0 -125
  275. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +0 -2
  276. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +0 -47
  277. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +0 -2
  278. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +0 -46
  279. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +0 -4
  280. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +0 -65
  281. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +0 -5
  282. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -67
  283. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +0 -1
  284. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +0 -30
  285. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +0 -1
  286. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +0 -42
  287. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +0 -1
  288. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +0 -26
  289. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +0 -1
  290. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +0 -42
  291. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +0 -1
  292. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +0 -26
  293. package/dist/queryProcessor-g8208K6g.mjs +0 -178
  294. package/dist/queryProcessor-haY_gPGg.js +0 -177
  295. package/dist/web-3rnOWrQO.mjs +0 -54
  296. package/dist/web-BPUCAST-.mjs +0 -54
  297. package/dist/web-Be96Xqd4.mjs +0 -54
  298. package/dist/web-BmdKi_fZ.js +0 -1
  299. package/dist/web-Bqpk8Mpk.js +0 -1
  300. package/dist/web-BwHcRwYc.mjs +0 -54
  301. package/dist/web-BzUFKqzw.js +0 -1
  302. package/dist/web-CcFPvlkl.js +0 -1
  303. package/dist/web-CgjTW1bL.js +0 -1
  304. package/dist/web-Cw0ijzjY.js +0 -1
  305. package/dist/web-CwTWV4ca.mjs +0 -54
  306. package/dist/web-DHeZE1jJ.js +0 -1
  307. package/dist/web-DZUec7pP.js +0 -1
  308. package/dist/web-Dh669DqQ.mjs +0 -54
  309. package/dist/web-DkWpHYrh.mjs +0 -54
  310. package/dist/web-Dt2RCU54.js +0 -1
  311. package/dist/web-krQQeSb6.mjs +0 -54
  312. package/dist/web-nqFW_Sd1.mjs +0 -54
  313. package/src/modules/community/controllers/comments.controller.aggr.js +0 -280
  314. package/src/modules/community/controllers/comments.controller.populate.js +0 -180
  315. package/src/modules/constructor/components/elements/H2.vue +0 -102
  316. package/src/modules/pages/components/pages/Page.vue +0 -174
  317. package/src/modules/pages/components/pages/PageEdit.vue +0 -159
  318. package/src/modules/pages/components/pages/Pages.vue +0 -108
  319. package/src/modules/pages/controllers/pages.controller.js +0 -71
  320. package/src/modules/pages/router/pages.router.js +0 -15
  321. package/src/modules/pages/routes/pages.routes.js +0 -30
  322. package/src/modules/pages/store/pages.js +0 -94
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");;/* empty css */;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,q)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:x=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");;/* empty css */;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,q)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:x=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);exports.default=g;
@@ -2,12 +2,12 @@ import { ref as r, watchEffect as y, resolveComponent as P, openBlock as t, crea
2
2
  import { useRouter as I, useRoute as g } from "vue-router";
3
3
  import D from "../../../../components/Field/Field.vue2.js";
4
4
  import "vue-i18n";
5
- /* empty css */
5
+ /* empty css */
6
6
  /* empty css */
7
7
  import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
- const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "documents" }, N = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Список документов", -1)), O = { class: "mn-b-big cols-4" }, R = ["onClick"], U = { class: "mn-b-small" }, V = { class: "t-semi t-transp radius-small" }, $ = {
10
+ const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "documents" }, F = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Список документов", -1)), N = { class: "mn-b-big cols-4" }, O = ["onClick"], R = { class: "mn-b-small" }, U = { class: "t-semi t-transp radius-small" }, V = {
11
11
  __name: "Documents",
12
12
  setup(a) {
13
13
  I(), g();
@@ -54,19 +54,19 @@ const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "document
54
54
  m();
55
55
  };
56
56
  return y(() => {
57
- }), (u, F) => {
57
+ }), (u, L) => {
58
58
  const x = P("Popup");
59
59
  return t(), s("div", B, [
60
- N,
61
- o("div", O, [
60
+ F,
61
+ o("div", N, [
62
62
  (t(!0), s(i, null, d(_(p), (e, n) => (t(), s("div", {
63
63
  key: n,
64
- onClick: (L) => v(n),
64
+ onClick: ($) => v(n),
65
65
  class: "h-100 pd-medium bg-white radius-small"
66
66
  }, [
67
- o("h3", U, f(e.name), 1),
68
- o("p", V, f(e.status), 1)
69
- ], 8, R))), 128))
67
+ o("h3", R, f(e.name), 1),
68
+ o("p", U, f(e.status), 1)
69
+ ], 8, O))), 128))
70
70
  ]),
71
71
  h(x, {
72
72
  title: "Добавить документ",
@@ -96,7 +96,7 @@ const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "document
96
96
  ]);
97
97
  };
98
98
  }
99
- }, Q = /* @__PURE__ */ S($, [["__scopeId", "data-v-f93fcad7"]]);
99
+ }, Q = /* @__PURE__ */ S(V, [["__scopeId", "data-v-f93fcad7"]]);
100
100
  export {
101
101
  Q as default
102
102
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const v=require("../../../../components/Button/Button.vue2.cjs"),k=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),g=require("../../../users/components/blocks/CardUser.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),B=require("../../../icons/navigation/IconAdd.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");const w=require("../../../users/store/users.cjs"),x={class:"mn-b-thin t-transp p-medium"},E={class:"mn-b-thin pos-relative"},y={key:0,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-light pd-small radius-small"},N={class:"cols-1 mn-b-small radius-medium pd-semi bg-light pos-relative"},V=["onClick"],q=e.createElementVNode("span",null,"Invite to organization",-1),C={__name:"MembersAdd",props:{organization:Object,text:String},emits:["send-invite"],setup(c,{emit:d}){let r=e.ref(null),l=e.ref(!1);const u=e.ref(null),m=d,n=e.ref([{contact:""}]);async function p(){return new Promise((i,s)=>{m("send-invite",n.value,i,s)})}return(i,s)=>{const f=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("p",x,e.toDisplayString(c.text),1),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(b.default,{onSearch:s[0]||(s[0]=o=>{e.isRef(r)?r.value=o:r=o,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-grey"},null,512),[[f,()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(r)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(k.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:o=>w.actions.read(o),state:null},options:{search:e.unref(r)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(t,a)=>(e.openBlock(),e.createBlock(g.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{n.value.push({contact:t.email||t.phone}),e.isRef(l)?l.value=!1:l=!1},class:"bg-white h-2r pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)]),e.createElementVNode("section",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(o,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"br-1px br-solid br-grey-transp-25 flex gap-thin radius-small mn-b-thin"},[e.createVNode(h.default,{field:o.contact,"onUpdate:field":a=>o.contact=a,placeholder:"Enter email or phone",class:"w-100 pd-small radius-small bg-white",validation:u.value},{default:e.withCtx(()=>[t<1?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:s[1]||(s[1]=()=>n.value.push({contact:""})),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"},[e.createVNode(B.default,{class:"i-medium",fill:"rgb(var(--white)"})])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:()=>n.value.splice(t,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(_.default,{class:"i-medium",fill:"rgb(var(--white)"})],8,V))]),_:2},1032,["field","onUpdate:field","validation"])]))),128))]),e.createVNode(v.default,{submit:p,class:"w-100 bg-main"},{default:e.withCtx(()=>[q]),_:1})])}}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const v=require("../../../../components/Button/Button.vue2.cjs"),k=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),g=require("../../../users/components/blocks/CardUser.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),B=require("../../../icons/navigation/IconAdd.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");const w=require("../../../users/store/users.cjs"),x={class:"mn-b-thin t-transp p-medium"},E={class:"mn-b-thin pos-relative"},y={key:0,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-light pd-small radius-small"},N={class:"cols-1 mn-b-small radius-medium pd-semi bg-light pos-relative"},V=["onClick"],q=e.createElementVNode("span",null,"Invite to organization",-1),C={__name:"MembersAdd",props:{organization:Object,text:String},emits:["send-invite"],setup(c,{emit:d}){let r=e.ref(null),l=e.ref(!1);const u=e.ref(null),m=d,n=e.ref([{contact:""}]);async function p(){return new Promise((i,s)=>{m("send-invite",n.value,i,s)})}return(i,s)=>{const f=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("p",x,e.toDisplayString(c.text),1),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(b.default,{onSearch:s[0]||(s[0]=o=>{e.isRef(r)?r.value=o:r=o,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-grey"},null,512),[[f,()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(r)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(k.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:o=>w.actions.read(o),state:null},options:{search:e.unref(r)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(t,a)=>(e.openBlock(),e.createBlock(g.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{n.value.push({contact:t.email||t.phone}),e.isRef(l)?l.value=!1:l=!1},class:"bg-white h-2r pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)]),e.createElementVNode("section",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(o,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"br-1px br-solid br-grey-transp-25 flex gap-thin radius-small mn-b-thin"},[e.createVNode(h.default,{field:o.contact,"onUpdate:field":a=>o.contact=a,placeholder:"Enter email or phone",class:"w-100 pd-small radius-small bg-white",validation:u.value},{default:e.withCtx(()=>[t<1?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:s[1]||(s[1]=()=>n.value.push({contact:""})),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"},[e.createVNode(B.default,{class:"i-medium",fill:"rgb(var(--white)"})])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:()=>n.value.splice(t,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(_.default,{class:"i-medium",fill:"rgb(var(--white)"})],8,V))]),_:2},1032,["field","onUpdate:field","validation"])]))),128))]),e.createVNode(v.default,{submit:p,class:"w-100 bg-main"},{default:e.withCtx(()=>[q]),_:1})])}}};exports.default=C;
@@ -1,12 +1,12 @@
1
1
  import { ref as c, resolveDirective as C, openBlock as s, createElementBlock as l, createElementVNode as d, toDisplayString as $, withDirectives as U, createVNode as a, isRef as m, unref as p, withCtx as u, Fragment as _, renderList as v, createBlock as E, createCommentVNode as N } from "vue";
2
2
  import S from "../../../../components/Field/Field.vue2.js";
3
- /* empty css */
3
+ /* empty css */
4
4
  import V from "../../../../components/Button/Button.vue2.js";
5
5
  import z from "../../../../components/Feed/Feed.vue.js";
6
6
  import B from "../../../globals/components/blocks/BlockSearch.vue.js";
7
7
  import D from "../../../users/components/blocks/CardUser.vue.js";
8
- import M from "../../../icons/navigation/IconDelete.vue.js";
9
- import F from "../../../icons/navigation/IconAdd.vue.js";
8
+ import F from "../../../icons/navigation/IconDelete.vue.js";
9
+ import M from "../../../icons/navigation/IconAdd.vue.js";
10
10
  import "../../../middlewares/client/inputs.validation.js";
11
11
  import { actions as L } from "../../../users/store/users.js";
12
12
  const j = { class: "mn-b-thin t-transp p-medium" }, A = { class: "mn-b-thin pos-relative" }, I = {
@@ -97,7 +97,7 @@ const j = { class: "mn-b-thin t-transp p-medium" }, A = { class: "mn-b-thin pos-
97
97
  onClick: o[1] || (o[1] = () => r.value.push({ contact: "" })),
98
98
  class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"
99
99
  }, [
100
- a(F, {
100
+ a(M, {
101
101
  class: "i-medium",
102
102
  fill: "rgb(var(--white)"
103
103
  })
@@ -106,7 +106,7 @@ const j = { class: "mn-b-thin t-transp p-medium" }, A = { class: "mn-b-thin pos-
106
106
  onClick: () => r.value.splice(e, 1),
107
107
  class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"
108
108
  }, [
109
- a(M, {
109
+ a(F, {
110
110
  class: "i-medium",
111
111
  fill: "rgb(var(--white)"
112
112
  })
@@ -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");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");;/* empty css */require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");;/* empty css */;/* empty css */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 p=n.query.tab?n.query.tab:"details";const i=e.ref(p);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(b.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(m.default,{key:l._id,organization:l,user:q.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");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");;/* empty css */require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");;/* empty css */;/* empty css */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 p=n.query.tab?n.query.tab:"details";const i=e.ref(p);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(b.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(m.default,{key:l._id,organization:l,user:q.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;
@@ -3,15 +3,15 @@ import { useRouter as v, useRoute as z } from "vue-router";
3
3
  import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
4
4
  /* empty css */
5
5
  /* empty css */
6
- /* empty css */
7
6
  /* empty css */
8
7
  /* empty css */
9
- /* empty css */
10
- /* empty css */
8
+ /* empty css */
9
+ /* empty css */
10
+ /* empty css */
11
11
  import { state as k } from "../../../auth/store/auth.js";
12
12
  import "../../store/memberships.js";
13
13
  import "vue-i18n";
14
- /* empty css */
14
+ /* empty css */
15
15
  import "../../../reports/store/reports.js";
16
16
  import { actions as q } from "../../store/organizations.js";
17
17
  import $ from "../blocks/CardOrganization.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),r=require("./members.router.cjs"),o=require("./departments.router.cjs"),n=require("../../products/router/products.router.cjs"),a=require("../../products/router/categories.router.cjs"),i=require("../../products/router/leftovers.router.cjs"),u=require("../../wallet/views/router/payments.router.cjs"),s=require("../../orders/router/orders.backoffice.router.cjs"),l=require("../../gallery/router/gallery.backoffice.router.cjs"),c=require("./backoffice.router.cjs"),t=require("../../middlewares/client/auth.validation.cjs"),d=[{path:"organizations",component:e.default,meta:{title:{en:"Organizations",ru:"Организации"}},children:[{path:"create",name:"Create Organization",meta:{title:{en:"Create Organization",ru:"Создать Организацию"}},beforeEnter:[t.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/OrganizationEdit.vue.cjs"))},{path:":_id",name:"OrganizationRoot",meta:{title:{en:"Group",ru:"Группа"}},component:e.default,children:[{path:"",name:"Organization",meta:{title:{en:"Group",ru:"Группа"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Organization.vue.cjs"))},...r.default,...o.default,...n.default,...a.default,...i.default,...u.default,...s.default,...l.default,...c.default]},{path:":_id/edit",name:"Organization Edit",meta:{title:{en:"Edit Organization",ru:"Редактировать Организацию"}},beforeEnter:[t.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/OrganizationEdit.vue.cjs"))}]}];exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),t=require("./members.router.cjs"),o=require("./departments.router.cjs"),n=require("../../products/router/products.router.cjs"),a=require("../../products/router/categories.router.cjs"),i=require("../../products/router/leftovers.router.cjs"),u=require("../../wallet/views/router/payments.router.cjs"),s=require("../../orders/router/orders.backoffice.router.cjs"),c=require("../../gallery/router/gallery.backoffice.router.cjs"),d=require("./backoffice.router.cjs"),r=require("../../middlewares/client/auth.validation.cjs"),l=[{path:"organizations",component:e.default,meta:{title:{en:"Organizations",ru:"Организации"},breadcrumbs:{hidden:!0}},children:[{path:"create",name:"Create Organization",meta:{title:{en:"Create Organization",ru:"Создать Организацию"}},beforeEnter:[r.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/OrganizationEdit.vue.cjs"))},{path:":_id",name:"OrganizationRoot",meta:{title:{en:"Group",ru:"Группа"}},component:e.default,children:[{path:"",name:"Organization",meta:{title:{en:"Group",ru:"Группа"},breadcrumbs:{hidden:!0}},component:()=>Promise.resolve().then(()=>require("../components/pages/Organization.vue.cjs"))},...t.default,...o.default,...n.default,...a.default,...i.default,...u.default,...s.default,...c.default,...d.default]},{path:":_id/edit",name:"Organization Edit",meta:{title:{en:"Edit Organization",ru:"Редактировать Организацию"}},beforeEnter:[r.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/OrganizationEdit.vue.cjs"))}]}];exports.default=l;
@@ -1,5 +1,5 @@
1
1
  import t from "../../globals/components/layouts/Empty.vue.js";
2
- import r from "./members.router.js";
2
+ import o from "./members.router.js";
3
3
  import e from "./departments.router.js";
4
4
  import i from "../../products/router/products.router.js";
5
5
  import m from "../../products/router/categories.router.js";
@@ -7,8 +7,8 @@ import n from "../../products/router/leftovers.router.js";
7
7
  import a from "../../wallet/views/router/payments.router.js";
8
8
  import p from "../../orders/router/orders.backoffice.router.js";
9
9
  import u from "../../gallery/router/gallery.backoffice.router.js";
10
- import f from "./backoffice.router.js";
11
- import { requiresAuth as o } from "../../middlewares/client/auth.validation.js";
10
+ import d from "./backoffice.router.js";
11
+ import { requiresAuth as r } from "../../middlewares/client/auth.validation.js";
12
12
  const y = [{
13
13
  path: "organizations",
14
14
  component: t,
@@ -16,6 +16,9 @@ const y = [{
16
16
  title: {
17
17
  en: "Organizations",
18
18
  ru: "Организации"
19
+ },
20
+ breadcrumbs: {
21
+ hidden: !0
19
22
  }
20
23
  },
21
24
  children: [{
@@ -27,7 +30,7 @@ const y = [{
27
30
  ru: "Создать Организацию"
28
31
  }
29
32
  },
30
- beforeEnter: [o],
33
+ beforeEnter: [r],
31
34
  component: () => import("../components/pages/OrganizationEdit.vue.js")
32
35
  }, {
33
36
  path: ":_id",
@@ -47,11 +50,14 @@ const y = [{
47
50
  title: {
48
51
  en: "Group",
49
52
  ru: "Группа"
53
+ },
54
+ breadcrumbs: {
55
+ hidden: !0
50
56
  }
51
57
  },
52
58
  component: () => import("../components/pages/Organization.vue.js")
53
59
  },
54
- ...r,
60
+ ...o,
55
61
  ...e,
56
62
  ...i,
57
63
  ...m,
@@ -59,7 +65,7 @@ const y = [{
59
65
  ...a,
60
66
  ...p,
61
67
  ...u,
62
- ...f
68
+ ...d
63
69
  ]
64
70
  }, {
65
71
  path: ":_id/edit",
@@ -70,7 +76,7 @@ const y = [{
70
76
  ru: "Редактировать Организацию"
71
77
  }
72
78
  },
73
- beforeEnter: [o],
79
+ beforeEnter: [r],
74
80
  component: () => import("../components/pages/OrganizationEdit.vue.js")
75
81
  }]
76
82
  }];
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Field/Field.vue2.cjs"),c=require("../../../../components/Select/Select.vue.cjs");;/* empty css */const y=require("../../../icons/navigation/IconAdd.vue.cjs"),k=require("../../../icons/navigation/IconDelete.vue.cjs"),h={class:"gap-thin"},w={class:"gap-thin mn-b-thin flex-nowrap flex"},g={class:"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small"},x=["disabled"],V={key:0,class:"gap-thin flex-nowrap flex"},N={__name:"CardPosition",props:{product:Object,products:Array,array:Array,showPrice:{type:Boolean,default:!0}},emits:["add","delete","update"],setup(s,{emit:p}){const l=s,n=p,u=e.ref(null),t=e.ref(1),a=e.ref("pcs"),d=e.ref(0),m=e.computed(()=>u.value&&t.value>0&&d.value>=0);e.watch(l.array,()=>{u.value=l.product,t.value=l.product.quantity||1,d.value=l.product.price,a.value=l.product.type}),l.product&&(u.value=l.product,t.value=l.product.quantity||1,d.value=l.product.price,a.value=l.product.type),e.watch([u,t,d,a],()=>{n("update",{...u.value,price:d.value,quantity:t.value||1,type:a.value})});function v(){n("add",{...u.value,price:d.value,quantity:t.value||1,type:a.value})}function b(){n("delete",{...u.value,price:d.value,quantity:t.value||1,type:a.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",w,[e.createElementVNode("div",g,e.toDisplayString(u.value.name||u.value._id.name),1),s.showPrice?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:0,field:t.value,"onUpdate:field":r[1]||(r[1]=o=>t.value=o),type:"number",label:"Qty",class:"bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(c.default,{select:a.value,"onUpdate:select":r[0]||(r[0]=o=>a.value=o),options:["pcs","g","ml"],class:"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["select"])]),_:1},8,["field"])),s.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,disabled:!m.value,onClick:v,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(y.default),{class:"i-semi"})],8,x)),s.product?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:b,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(k.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]),s.showPrice?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(i.default,{field:d.value,"onUpdate:field":r[2]||(r[2]=o=>d.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(i.default,{field:t.value,"onUpdate:field":r[4]||(r[4]=o=>t.value=o),type:"number",label:"Qty",class:"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(c.default,{select:a.value,"onUpdate:select":r[3]||(r[3]=o=>a.value=o),options:["pcs","g","ml"],class:"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["select"])]),_:1},8,["field"])])):e.createCommentVNode("",!0)]))}};exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Field/Field.vue2.cjs"),c=require("../../../../components/Select/Select.vue2.cjs");;/* empty css */const y=require("../../../icons/navigation/IconAdd.vue.cjs"),k=require("../../../icons/navigation/IconDelete.vue.cjs"),h={class:"gap-thin"},w={class:"gap-thin mn-b-thin flex-nowrap flex"},g={class:"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small"},x=["disabled"],V={key:0,class:"gap-thin flex-nowrap flex"},N={__name:"CardPosition",props:{product:Object,products:Array,array:Array,showPrice:{type:Boolean,default:!0}},emits:["add","delete","update"],setup(s,{emit:p}){const l=s,n=p,u=e.ref(null),t=e.ref(1),a=e.ref("pcs"),d=e.ref(0),m=e.computed(()=>u.value&&t.value>0&&d.value>=0);e.watch(l.array,()=>{u.value=l.product,t.value=l.product.quantity||1,d.value=l.product.price,a.value=l.product.type}),l.product&&(u.value=l.product,t.value=l.product.quantity||1,d.value=l.product.price,a.value=l.product.type),e.watch([u,t,d,a],()=>{n("update",{...u.value,price:d.value,quantity:t.value||1,type:a.value})});function v(){n("add",{...u.value,price:d.value,quantity:t.value||1,type:a.value})}function b(){n("delete",{...u.value,price:d.value,quantity:t.value||1,type:a.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",w,[e.createElementVNode("div",g,e.toDisplayString(u.value.name||u.value._id.name),1),s.showPrice?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:0,field:t.value,"onUpdate:field":r[1]||(r[1]=o=>t.value=o),type:"number",label:"Qty",class:"bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(c.default,{select:a.value,"onUpdate:select":r[0]||(r[0]=o=>a.value=o),options:["pcs","g","ml"],class:"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["select"])]),_:1},8,["field"])),s.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,disabled:!m.value,onClick:v,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(y.default),{class:"i-semi"})],8,x)),s.product?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:b,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(k.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]),s.showPrice?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(i.default,{field:d.value,"onUpdate:field":r[2]||(r[2]=o=>d.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(i.default,{field:t.value,"onUpdate:field":r[4]||(r[4]=o=>t.value=o),type:"number",label:"Qty",class:"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(c.default,{select:a.value,"onUpdate:select":r[3]||(r[3]=o=>a.value=o),options:["pcs","g","ml"],class:"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["select"])]),_:1},8,["field"])])):e.createCommentVNode("",!0)]))}};exports.default=N;
@@ -1,13 +1,13 @@
1
- import { ref as n, computed as _, watch as v, openBlock as o, createElementBlock as p, createElementVNode as f, toDisplayString as q, createBlock as U, withCtx as y, createVNode as i, createCommentVNode as c, unref as h } from "vue";
1
+ import { ref as n, computed as q, watch as v, openBlock as o, createElementBlock as p, createElementVNode as y, toDisplayString as U, createBlock as B, withCtx as f, createVNode as i, createCommentVNode as c, unref as h } from "vue";
2
2
  import b from "../../../../components/Field/Field.vue2.js";
3
- import w from "../../../../components/Select/Select.vue.js";
3
+ import w from "../../../../components/Select/Select.vue2.js";
4
4
  /* empty css */
5
- import B from "../../../icons/navigation/IconAdd.vue.js";
6
- import Q from "../../../icons/navigation/IconDelete.vue.js";
7
- const V = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap flex" }, S = { class: "bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small" }, $ = ["disabled"], A = {
5
+ import Q from "../../../icons/navigation/IconAdd.vue.js";
6
+ import V from "../../../icons/navigation/IconDelete.vue.js";
7
+ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap flex" }, S = { class: "bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small" }, A = ["disabled"], E = {
8
8
  key: 0,
9
9
  class: "gap-thin flex-nowrap flex"
10
- }, F = {
10
+ }, z = {
11
11
  __name: "CardPosition",
12
12
  props: {
13
13
  product: Object,
@@ -24,7 +24,7 @@ const V = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
24
24
  "update"
25
25
  ],
26
26
  setup(d, { emit: g }) {
27
- const t = d, m = g, r = n(null), e = n(1), l = n("pcs"), s = n(0), k = _(
27
+ const t = d, m = g, r = n(null), e = n(1), l = n("pcs"), s = n(0), k = q(
28
28
  () => r.value && e.value > 0 && s.value >= 0
29
29
  );
30
30
  v(t.array, () => {
@@ -53,10 +53,10 @@ const V = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
53
53
  type: l.value
54
54
  });
55
55
  }
56
- return (C, a) => (o(), p("div", V, [
57
- f("div", N, [
58
- f("div", S, q(r.value.name || r.value._id.name), 1),
59
- d.showPrice ? c("", !0) : (o(), U(b, {
56
+ return (C, a) => (o(), p("div", _, [
57
+ y("div", N, [
58
+ y("div", S, U(r.value.name || r.value._id.name), 1),
59
+ d.showPrice ? c("", !0) : (o(), B(b, {
60
60
  key: 0,
61
61
  field: e.value,
62
62
  "onUpdate:field": a[1] || (a[1] = (u) => e.value = u),
@@ -64,7 +64,7 @@ const V = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
64
64
  label: "Qty",
65
65
  class: "bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small"
66
66
  }, {
67
- default: y(() => [
67
+ default: f(() => [
68
68
  i(w, {
69
69
  select: l.value,
70
70
  "onUpdate:select": a[0] || (a[0] = (u) => l.value = u),
@@ -84,17 +84,17 @@ const V = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
84
84
  onClick: x,
85
85
  class: "bg-main aspect-1x1 radius-small pd-small"
86
86
  }, [
87
- i(h(B), { class: "i-semi" })
88
- ], 8, $)),
87
+ i(h(Q), { class: "i-semi" })
88
+ ], 8, A)),
89
89
  d.product ? (o(), p("button", {
90
90
  key: 2,
91
91
  onClick: P,
92
92
  class: "bg-red aspect-1x1 radius-small pd-small"
93
93
  }, [
94
- i(h(Q), { class: "i-semi" })
94
+ i(h(V), { class: "i-semi" })
95
95
  ])) : c("", !0)
96
96
  ]),
97
- d.showPrice ? (o(), p("div", A, [
97
+ d.showPrice ? (o(), p("div", E, [
98
98
  i(b, {
99
99
  field: s.value,
100
100
  "onUpdate:field": a[2] || (a[2] = (u) => s.value = u),
@@ -110,7 +110,7 @@ const V = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
110
110
  label: "Qty",
111
111
  class: "bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"
112
112
  }, {
113
- default: y(() => [
113
+ default: f(() => [
114
114
  i(w, {
115
115
  select: l.value,
116
116
  "onUpdate:select": a[3] || (a[3] = (u) => l.value = u),
@@ -129,5 +129,5 @@ const V = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
129
129
  }
130
130
  };
131
131
  export {
132
- F as default
132
+ z as default
133
133
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue.cjs"),i=require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs");;/* empty css */const p=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),d={class:"o-scroll product-images"},_={class:"no-responsive flex flex-nowrap gap-thin"},m=["src","onClick"],h={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(r){const t=e.ref(!1),l=e.ref(null),n=o=>{l.value=o,t.value=!0},u=()=>{t.value=!1};return(o,g)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.images,(s,a)=>(e.openBlock(),e.createElementBlock("img",{key:a,src:(o.FILE_SERVER_URL||"")+s,onClick:v=>n(s),class:"flex-child flex-child-grow-1 aspect-1x1 radius-semi bg-white o-hidden thumbnail"},null,8,m))),128))]),e.createVNode(c.default,{onClosePopup:u,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(i.default,{photoUrl:(o.FILE_SERVER_URL||"")+l.value},null,8,["photoUrl"])]),_:1},8,["isPopupOpen"])]))}},f=p.default(h,[["__scopeId","data-v-103087bb"]]);exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue2.cjs"),i=require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs");;/* empty css */const p=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),d={class:"o-scroll product-images"},_={class:"no-responsive flex flex-nowrap gap-thin"},m=["src","onClick"],h={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(r){const t=e.ref(!1),l=e.ref(null),n=o=>{l.value=o,t.value=!0},u=()=>{t.value=!1};return(o,g)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.images,(s,a)=>(e.openBlock(),e.createElementBlock("img",{key:a,src:(o.FILE_SERVER_URL||"")+s,onClick:v=>n(s),class:"flex-child flex-child-grow-1 aspect-1x1 radius-semi bg-white o-hidden thumbnail"},null,8,m))),128))]),e.createVNode(c.default,{onClosePopup:u,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(i.default,{photoUrl:(o.FILE_SERVER_URL||"")+l.value},null,8,["photoUrl"])]),_:1},8,["isPopupOpen"])]))}},f=p.default(h,[["__scopeId","data-v-103087bb"]]);exports.default=f;
@@ -1,5 +1,5 @@
1
1
  import { ref as n, openBlock as s, createElementBlock as t, createElementVNode as m, Fragment as d, renderList as _, createVNode as i, withCtx as f } from "vue";
2
- import h from "../../../../components/Popup/Popup.vue.js";
2
+ import h from "../../../../components/Popup/Popup.vue2.js";
3
3
  import g from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
4
4
  /* empty css */
5
5
  import v from "../../../../../../_virtual/_plugin-vue_export-helper.js";
@@ -6,16 +6,16 @@ import { actions as g } from "../../store/leftovers.js";
6
6
  const h = { class: "flex-column flex-wrap block" }, k = {
7
7
  key: 0,
8
8
  class: "w-100"
9
- }, x = { class: "mn-r-regular w-100" }, w = ["onClick"], V = {
9
+ }, x = { class: "mn-r-regular w-100" }, w = ["onClick"], P = {
10
10
  __name: "LeftoverPositions",
11
11
  props: {
12
12
  order: Object
13
13
  },
14
14
  setup(n) {
15
15
  b(), _();
16
- const m = n;
17
- function d(s) {
18
- g.deleteItemFromLeftover(m.order.positions[s]);
16
+ const d = n;
17
+ function m(s) {
18
+ g.deleteItemFromLeftover(d.order.positions[s]);
19
19
  }
20
20
  return (s, v) => (l(), o("div", null, [
21
21
  i("ul", h, [
@@ -43,7 +43,7 @@ const h = { class: "flex-column flex-wrap block" }, k = {
43
43
  }, null, 8, ["field", "onUpdate:field", "symbol"]),
44
44
  i("a", {
45
45
  class: "button",
46
- onClick: (t) => d(c)
46
+ onClick: (t) => m(c)
47
47
  }, " Delete ", 8, w)
48
48
  ]))), 128))
49
49
  ])
@@ -51,5 +51,5 @@ const h = { class: "flex-column flex-wrap block" }, k = {
51
51
  }
52
52
  };
53
53
  export {
54
- V as default
54
+ P as default
55
55
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),i=require("../../../icons/navigation/IconDelete.vue.cjs"),f=require("../../../../components/Button/Button.vue2.cjs"),g=require("../../../../components/Select/Select.vue.cjs"),d=require("../../../../components/Field/Field.vue2.cjs"),n=require("../../../../components/Block/Block.vue.cjs"),l=require("../../store/categories.cjs");;/* empty css */const b={class:"mn-r-auto"},h={class:"mn-b-medium w-100 flex-nowrap gap-thin flex"},w={class:"flex-v-center flex-nowrap flex"},x=e.createElementVNode("h4",{class:"mn-r-thin t-medium"},"Localization",-1),N=["onClick"],k=["onClick"],V=["onClick"],y={__name:"CategoryEdit",setup(C){const o=c.useRoute(),u=c.useRouter();o.params.category?l.actions.fetchCategory(o.params.category):l.actions.resetCategory(),e.computed(()=>l.state.current),e.computed(()=>o.name);function m(){o.params.category?l.actions.updateCategory(o.params.category):l.actions.addCategory()}function p(){u.push({name:"Categories Organization",params:{_id:o.params._id}})}return(_,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n.default,{class:"radius-big mn-b-thin flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",b,e.toDisplayString(e.unref(o).params.category?"Edit Category":"Add Category"),1),e.createVNode(f.default,{submit:m,callback:p,class:"pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Save Category ")]),_:1})]),_:1}),e.createVNode(n.default,{title:"Profile",class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("div",h,[e.createVNode(d.default,{field:l.state.current.order,"onUpdate:field":r[0]||(r[0]=t=>l.state.current.order=t),label:"Order",disabled:!0,class:"w-25 bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(d.default,{field:l.state.current.url,"onUpdate:field":r[1]||(r[1]=t=>l.state.current.url=t),label:"URL",placeholder:"Enter category URL",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(d.default,{field:l.state.current.name,"onUpdate:field":r[2]||(r[2]=t=>l.state.current.name=t),label:"Name",placeholder:"Enter category name",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"])]),e.createVNode(g.default,{select:l.state.current.status,"onUpdate:select":r[3]||(r[3]=t=>l.state.current.status=t),label:"Status",options:["draft","internal","published","removed"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),e.createElementVNode("div",w,[x,e.createElementVNode("button",{onClick:r[4]||(r[4]=()=>l.state.current.localization.push({locale:"",text:""})),class:"i-small pd-thin button-delete button"}," + ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.current.localization,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:s},[e.createVNode(d.default,{field:t.locale,"onUpdate:field":a=>t.locale=a,placeholder:"Locale",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:t.text,"onUpdate:field":a=>t.text=a,placeholder:"Text",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",{onClick:()=>l.state.current.localization.splice(s,1),class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},[e.createVNode(i.default,{class:"i-medium"})],8,N)]))),128))]),_:1}),e.createVNode(n.default,{title:"Subcategories",placeholder:"No subcategories added yet",actions:[{label:"+",function:()=>l.state.current.subcategories.push({name:"",url:""})}],class:"mn-b-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.current.subcategories,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:s},[e.createVNode(d.default,{field:t.name,"onUpdate:field":a=>t.name=a,placeholder:"Subcategory name",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:t.url,"onUpdate:field":a=>t.url=a,placeholder:"Subcategory",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",{onClick:()=>l.state.current.subcategories.splice(s,1),class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},[e.createVNode(i.default,{class:"i-medium"})],8,k)]))),128))]),_:1},8,["actions"]),e.createVNode(n.default,{title:"Filters",placeholder:"No filters added yet",actions:[{label:"+",function:()=>l.state.current.filters.push({name:"",url:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.current.filters,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:s},[e.createVNode(d.default,{field:t.name,"onUpdate:field":a=>t.name=a,placeholder:"Filter name",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:t.options,"onUpdate:field":a=>t.options=a,placeholder:"Filter options divided by ,",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",{onClick:()=>l.state.current.filters.splice(s,1),class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},[e.createVNode(i.default,{class:"i-medium"})],8,V)]))),128))]),_:1},8,["actions"])],64))}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),i=require("../../../icons/navigation/IconDelete.vue.cjs"),f=require("../../../../components/Button/Button.vue2.cjs"),g=require("../../../../components/Select/Select.vue2.cjs"),d=require("../../../../components/Field/Field.vue2.cjs"),n=require("../../../../components/Block/Block.vue.cjs"),l=require("../../store/categories.cjs");;/* empty css */const b={class:"mn-r-auto"},h={class:"mn-b-medium w-100 flex-nowrap gap-thin flex"},w={class:"flex-v-center flex-nowrap flex"},x=e.createElementVNode("h4",{class:"mn-r-thin t-medium"},"Localization",-1),N=["onClick"],k=["onClick"],V=["onClick"],y={__name:"CategoryEdit",setup(C){const o=c.useRoute(),u=c.useRouter();o.params.category?l.actions.fetchCategory(o.params.category):l.actions.resetCategory(),e.computed(()=>l.state.current),e.computed(()=>o.name);function m(){o.params.category?l.actions.updateCategory(o.params.category):l.actions.addCategory()}function p(){u.push({name:"Categories Organization",params:{_id:o.params._id}})}return(_,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n.default,{class:"radius-big mn-b-thin flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",b,e.toDisplayString(e.unref(o).params.category?"Edit Category":"Add Category"),1),e.createVNode(f.default,{submit:m,callback:p,class:"pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Save Category ")]),_:1})]),_:1}),e.createVNode(n.default,{title:"Profile",class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("div",h,[e.createVNode(d.default,{field:l.state.current.order,"onUpdate:field":r[0]||(r[0]=t=>l.state.current.order=t),label:"Order",disabled:!0,class:"w-25 bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(d.default,{field:l.state.current.url,"onUpdate:field":r[1]||(r[1]=t=>l.state.current.url=t),label:"URL",placeholder:"Enter category URL",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(d.default,{field:l.state.current.name,"onUpdate:field":r[2]||(r[2]=t=>l.state.current.name=t),label:"Name",placeholder:"Enter category name",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"])]),e.createVNode(g.default,{select:l.state.current.status,"onUpdate:select":r[3]||(r[3]=t=>l.state.current.status=t),label:"Status",options:["draft","internal","published","removed"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),e.createElementVNode("div",w,[x,e.createElementVNode("button",{onClick:r[4]||(r[4]=()=>l.state.current.localization.push({locale:"",text:""})),class:"i-small pd-thin button-delete button"}," + ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.current.localization,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:s},[e.createVNode(d.default,{field:t.locale,"onUpdate:field":a=>t.locale=a,placeholder:"Locale",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:t.text,"onUpdate:field":a=>t.text=a,placeholder:"Text",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",{onClick:()=>l.state.current.localization.splice(s,1),class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},[e.createVNode(i.default,{class:"i-medium"})],8,N)]))),128))]),_:1}),e.createVNode(n.default,{title:"Subcategories",placeholder:"No subcategories added yet",actions:[{label:"+",function:()=>l.state.current.subcategories.push({name:"",url:""})}],class:"mn-b-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.current.subcategories,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:s},[e.createVNode(d.default,{field:t.name,"onUpdate:field":a=>t.name=a,placeholder:"Subcategory name",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:t.url,"onUpdate:field":a=>t.url=a,placeholder:"Subcategory",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",{onClick:()=>l.state.current.subcategories.splice(s,1),class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},[e.createVNode(i.default,{class:"i-medium"})],8,k)]))),128))]),_:1},8,["actions"]),e.createVNode(n.default,{title:"Filters",placeholder:"No filters added yet",actions:[{label:"+",function:()=>l.state.current.filters.push({name:"",url:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.current.filters,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:s},[e.createVNode(d.default,{field:t.name,"onUpdate:field":a=>t.name=a,placeholder:"Filter name",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:t.options,"onUpdate:field":a=>t.options=a,placeholder:"Filter options divided by ,",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",{onClick:()=>l.state.current.filters.splice(s,1),class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},[e.createVNode(i.default,{class:"i-medium"})],8,V)]))),128))]),_:1},8,["actions"])],64))}};exports.default=y;
@@ -1,21 +1,21 @@
1
- import { computed as h, openBlock as o, createElementBlock as c, Fragment as m, createVNode as l, withCtx as u, createElementVNode as d, toDisplayString as y, unref as U, createTextVNode as C, renderList as b } from "vue";
1
+ import { computed as h, openBlock as o, createElementBlock as c, Fragment as m, createVNode as l, withCtx as u, createElementVNode as d, toDisplayString as _, unref as U, createTextVNode as C, renderList as b } from "vue";
2
2
  import { useRoute as k, useRouter as v } from "vue-router";
3
3
  import g from "../../../icons/navigation/IconDelete.vue.js";
4
4
  import S from "../../../../components/Button/Button.vue2.js";
5
- import E from "../../../../components/Select/Select.vue.js";
5
+ import E from "../../../../components/Select/Select.vue2.js";
6
6
  import i from "../../../../components/Field/Field.vue2.js";
7
7
  import p from "../../../../components/Block/Block.vue.js";
8
8
  import { actions as f, state as t } from "../../store/categories.js";
9
9
  /* empty css */
10
- const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap gap-thin flex" }, L = { class: "flex-v-center flex-nowrap flex" }, F = /* @__PURE__ */ d("h4", { class: "mn-r-thin t-medium" }, "Localization", -1), R = ["onClick"], $ = ["onClick"], T = ["onClick"], J = {
10
+ const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap gap-thin flex" }, F = { class: "flex-v-center flex-nowrap flex" }, L = /* @__PURE__ */ d("h4", { class: "mn-r-thin t-medium" }, "Localization", -1), R = ["onClick"], T = ["onClick"], V = ["onClick"], J = {
11
11
  __name: "CategoryEdit",
12
- setup(V) {
12
+ setup($) {
13
13
  const n = k(), w = v();
14
14
  n.params.category ? f.fetchCategory(n.params.category) : f.resetCategory(), h(() => t.current), h(() => n.name);
15
15
  function x() {
16
16
  n.params.category ? f.updateCategory(n.params.category) : f.addCategory();
17
17
  }
18
- function _() {
18
+ function y() {
19
19
  w.push({
20
20
  name: "Categories Organization",
21
21
  params: {
@@ -26,10 +26,10 @@ const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap ga
26
26
  return (B, r) => (o(), c(m, null, [
27
27
  l(p, { class: "radius-big mn-b-thin flex-nowrap flex-v-center flex" }, {
28
28
  default: u(() => [
29
- d("h1", N, y(U(n).params.category ? "Edit Category" : "Add Category"), 1),
29
+ d("h1", N, _(U(n).params.category ? "Edit Category" : "Add Category"), 1),
30
30
  l(S, {
31
31
  submit: x,
32
- callback: _,
32
+ callback: y,
33
33
  class: "pd-small radius-big bg-main t-black uppercase t-medium"
34
34
  }, {
35
35
  default: u(() => [
@@ -81,8 +81,8 @@ const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap ga
81
81
  placeholder: "Display product",
82
82
  class: "pos-relative w-100 mn-b-small bg-white radius-small pd-medium"
83
83
  }, null, 8, ["select"]),
84
- d("div", L, [
85
- F,
84
+ d("div", F, [
85
+ L,
86
86
  d("button", {
87
87
  onClick: r[4] || (r[4] = () => t.current.localization.push({ locale: "", text: "" })),
88
88
  class: "i-small pd-thin button-delete button"
@@ -145,7 +145,7 @@ const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap ga
145
145
  class: "radius-small pd-small flex-center flex aspect-1x1 bg-red"
146
146
  }, [
147
147
  l(g, { class: "i-medium" })
148
- ], 8, $)
148
+ ], 8, T)
149
149
  ]))), 128))
150
150
  ]),
151
151
  _: 1
@@ -180,7 +180,7 @@ const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap ga
180
180
  class: "radius-small pd-small flex-center flex aspect-1x1 bg-red"
181
181
  }, [
182
182
  l(g, { class: "i-medium" })
183
- ], 8, T)
183
+ ], 8, V)
184
184
  ]))), 128))
185
185
  ]),
186
186
  _: 1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../../components/Block/Block.vue.cjs"),w=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Feed/Feed.vue.cjs"),C=require("../../../../components/Select/Select.vue.cjs"),q=require("../../../../components/Popup/Popup.vue.cjs");;/* empty css */const P=require("../blocks/CardPosition.vue.cjs"),x=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),v=require("vue-router"),p=require("../../../globals/store/globals.cjs"),V=require("../../../auth/store/auth.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");;/* empty css */const B={class:"pd-thin"},E={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},S={class:""},D={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},L={class:"gap-thin flex-v-center flex-nojustify flex"},R={class:"mn-r-auto"},F={__name:"EditLeftover",setup(O){const r=v.useRoute(),i=v.useRouter(),f=e.ref(m.state.all);e.ref(null);const b=e.computed(()=>Number(t.state.current.positions.reduce((a,s)=>Number(a)+Number(s.price),0))),c=e.ref(!1);function g(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{if(r.params.leftover)try{await t.actions.fetch(r.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const a=await m.actions.read({organization:r.params._id,limit:100});f.value=a}catch{console.error("error")}});function _(){r.params.leftover?t.actions.fetch(r.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){t.state.current.organization=r.params._id,r.params.leftover?t.actions.update(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")):(t.state.current.creator={type:"user",target:V.state.user._id},t.state.current.owner={type:"organization",target:r.params._id},console.log("leftover state is",t.state.current),t.actions.create(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")))}function k(){t.actions.delete(r.params.leftover).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error"))}return(a,s)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("header",E,[e.createElementVNode("h2",S,e.toDisplayString(e.unref(r).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(C.default,{select:t.state.current.type,"onUpdate:select":s[0]||(s[0]=o=>t.state.current.type=o),options:["stock-in","stock-out"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(q.default,{title:"Add position",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(N.default,{search:!0,states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:o=>m.actions.read(o),state:null},options:{organization:e.unref(r).params._id},class:""},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(n,l)=>(e.openBlock(),e.createBlock(x.default,{key:n._id,editable:!1,product:n,onClick:()=>{let u={...n};u.quantity=1,u.type="pcs",p.actions.add(t.state.current.positions,u),h()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),e.createVNode(d.default,{title:"Invetory Sheet",actions:[{label:"+",function:()=>g()}],placeholder:"No positions added yet",class:"mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(o,n)=>(e.openBlock(),e.createBlock(P.default,{key:o._id,product:o,array:t.state.current.positions,products:f.value,onUpdate:l=>p.actions.update(t.state.current.positions,l,n),onDelete:l=>p.actions.delete(t.state.current.positions,l,n),class:"mn-b-small radius-medium bg-white pd-small"},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1},8,["actions"]),e.createVNode(d.default,{title:"Comment",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(w.default,{field:t.state.current.comment,"onUpdate:field":s[1]||(s[1]=o=>t.state.current.comment=o),label:"Comment",type:"textarea",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"])]),_:1}),e.createVNode(d.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",L,[e.createElementVNode("h3",R," In total: "+e.toDisplayString(a.formatPrice(b.value)),1),e.createElementVNode("a",{onClick:s[2]||(s[2]=o=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:s[3]||(s[3]=o=>_())}," Reset "),e.unref(r).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:s[4]||(s[4]=o=>k()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})]))}};exports.default=F;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../../components/Block/Block.vue.cjs"),w=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Feed/Feed.vue.cjs"),C=require("../../../../components/Select/Select.vue2.cjs"),q=require("../../../../components/Popup/Popup.vue2.cjs");;/* empty css */const P=require("../blocks/CardPosition.vue.cjs"),x=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),v=require("vue-router"),p=require("../../../globals/store/globals.cjs"),V=require("../../../auth/store/auth.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");;/* empty css */const B={class:"pd-thin"},E={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},S={class:""},D={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},L={class:"gap-thin flex-v-center flex-nojustify flex"},R={class:"mn-r-auto"},F={__name:"EditLeftover",setup(O){const r=v.useRoute(),i=v.useRouter(),f=e.ref(m.state.all);e.ref(null);const b=e.computed(()=>Number(t.state.current.positions.reduce((a,s)=>Number(a)+Number(s.price),0))),c=e.ref(!1);function g(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{if(r.params.leftover)try{await t.actions.fetch(r.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const a=await m.actions.read({organization:r.params._id,limit:100});f.value=a}catch{console.error("error")}});function _(){r.params.leftover?t.actions.fetch(r.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){t.state.current.organization=r.params._id,r.params.leftover?t.actions.update(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")):(t.state.current.creator={type:"user",target:V.state.user._id},t.state.current.owner={type:"organization",target:r.params._id},console.log("leftover state is",t.state.current),t.actions.create(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")))}function k(){t.actions.delete(r.params.leftover).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error"))}return(a,s)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("header",E,[e.createElementVNode("h2",S,e.toDisplayString(e.unref(r).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(C.default,{select:t.state.current.type,"onUpdate:select":s[0]||(s[0]=o=>t.state.current.type=o),options:["stock-in","stock-out"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(q.default,{title:"Add position",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(N.default,{search:!0,states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:o=>m.actions.read(o),state:null},options:{organization:e.unref(r).params._id},class:""},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(n,l)=>(e.openBlock(),e.createBlock(x.default,{key:n._id,editable:!1,product:n,onClick:()=>{let u={...n};u.quantity=1,u.type="pcs",p.actions.add(t.state.current.positions,u),h()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),e.createVNode(d.default,{title:"Invetory Sheet",actions:[{label:"+",function:()=>g()}],placeholder:"No positions added yet",class:"mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(o,n)=>(e.openBlock(),e.createBlock(P.default,{key:o._id,product:o,array:t.state.current.positions,products:f.value,onUpdate:l=>p.actions.update(t.state.current.positions,l,n),onDelete:l=>p.actions.delete(t.state.current.positions,l,n),class:"mn-b-small radius-medium bg-white pd-small"},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1},8,["actions"]),e.createVNode(d.default,{title:"Comment",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(w.default,{field:t.state.current.comment,"onUpdate:field":s[1]||(s[1]=o=>t.state.current.comment=o),label:"Comment",type:"textarea",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"])]),_:1}),e.createVNode(d.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",L,[e.createElementVNode("h3",R," In total: "+e.toDisplayString(a.formatPrice(b.value)),1),e.createElementVNode("a",{onClick:s[2]||(s[2]=o=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:s[3]||(s[3]=o=>_())}," Reset "),e.unref(r).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:s[4]||(s[4]=o=>k()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})]))}};exports.default=F;