@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,12 +1,12 @@
1
- import { ref as h, computed as z, onMounted as E, openBlock as l, createElementBlock as p, createElementVNode as n, toDisplayString as k, unref as b, createVNode as a, withCtx as c, Fragment as P, renderList as $, createBlock as x, createCommentVNode as U } from "vue";
1
+ import { ref as h, computed as z, onMounted as E, openBlock as l, createElementBlock as m, createElementVNode as n, toDisplayString as k, unref as b, createVNode as a, withCtx as c, Fragment as P, renderList as x, createBlock as $, createCommentVNode as U } from "vue";
2
2
  import v from "../../../../components/Block/Block.vue.js";
3
3
  import B from "../../../../components/Field/Field.vue2.js";
4
- import I from "../../../../components/Feed/Feed.vue.js";
5
- import O from "../../../../components/Select/Select.vue.js";
6
- import V from "../../../../components/Popup/Popup.vue.js";
4
+ import F from "../../../../components/Feed/Feed.vue.js";
5
+ import I from "../../../../components/Select/Select.vue2.js";
6
+ import O from "../../../../components/Popup/Popup.vue2.js";
7
7
  /* empty css */
8
- import A from "../blocks/CardPosition.vue.js";
9
- import F from "../../../orders/components/blocks/CardOrderItem.vue.js";
8
+ import V from "../blocks/CardPosition.vue.js";
9
+ import A from "../../../orders/components/blocks/CardOrderItem.vue.js";
10
10
  import { useRoute as j, useRouter as q } from "vue-router";
11
11
  import { actions as y } from "../../../globals/store/globals.js";
12
12
  import { state as M } from "../../../auth/store/auth.js";
@@ -68,10 +68,10 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
68
68
  (s) => console.error("error")
69
69
  );
70
70
  }
71
- return (s, o) => (l(), p("div", H, [
71
+ return (s, o) => (l(), m("div", H, [
72
72
  n("header", J, [
73
73
  n("h2", K, k(b(t).params.leftover ? "Edit " : "Add ") + " Inventory", 1),
74
- a(O, {
74
+ a(I, {
75
75
  select: e.current.type,
76
76
  "onUpdate:select": o[0] || (o[0] = (r) => e.current.type = r),
77
77
  options: [
@@ -82,7 +82,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
82
82
  class: "bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"
83
83
  }, null, 8, ["select"])
84
84
  ]),
85
- a(V, {
85
+ a(O, {
86
86
  title: "Add position",
87
87
  onClosePopup: w,
88
88
  isPopupOpen: f.value,
@@ -90,7 +90,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
90
90
  }, {
91
91
  default: c(() => [
92
92
  n("div", Q, [
93
- a(I, {
93
+ a(F, {
94
94
  search: !0,
95
95
  states: {
96
96
  empty: {
@@ -110,7 +110,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
110
110
  default: c(({
111
111
  items: r
112
112
  }) => [
113
- (l(!0), p(P, null, $(r, (i, m) => (l(), x(F, {
113
+ (l(!0), m(P, null, x(r, (i, p) => (l(), $(A, {
114
114
  key: i._id,
115
115
  editable: !1,
116
116
  product: i,
@@ -137,19 +137,19 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
137
137
  class: "mn-b-semi"
138
138
  }, {
139
139
  default: c(() => [
140
- (l(!0), p(P, null, $(e.current.positions, (r, i) => (l(), x(A, {
140
+ (l(!0), m(P, null, x(e.current.positions, (r, i) => (l(), $(V, {
141
141
  key: r._id,
142
142
  product: r,
143
143
  array: e.current.positions,
144
144
  products: g.value,
145
- onUpdate: (m) => y.update(
145
+ onUpdate: (p) => y.update(
146
146
  e.current.positions,
147
- m,
147
+ p,
148
148
  i
149
149
  ),
150
- onDelete: (m) => y.delete(
150
+ onDelete: (p) => y.delete(
151
151
  e.current.positions,
152
- m,
152
+ p,
153
153
  i
154
154
  ),
155
155
  class: "mn-b-small radius-medium bg-white pd-small"
@@ -184,7 +184,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
184
184
  class: "t-white bg-second button",
185
185
  onClick: o[3] || (o[3] = (r) => D())
186
186
  }, " Reset "),
187
- b(t).params.leftover ? (l(), p("a", {
187
+ b(t).params.leftover ? (l(), m("a", {
188
188
  key: 0,
189
189
  onClick: o[4] || (o[4] = (r) => R()),
190
190
  class: "t-white bg-red button"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const o=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const d=require("../../../../components/Field/Field.vue2.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../../components/Popup/Popup.vue.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),q=require("../../../../components/EditImages/EditImages.vue.cjs"),b=require("../../../icons/navigation/IconDelete.vue.cjs"),y=require("../blocks/CardPosition.vue.cjs"),P=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),E=require("../sections/EditProductInfo.vue.cjs"),u=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),w=require("../../store/categories.cjs");;/* empty css */const U={class:"for-transition w-100 cols-1 pd-thin gap-thin"},z={class:"mn-r-auto"},F={class:"cols-2 gap-thin"},I={key:0,class:"cols-1 gap-thin"},O={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},D={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},L={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},S={__name:"ProductEdit",setup(T){const l=k.useRoute(),f=k.useRouter(),h=e.ref(t.state.all),p=e.ref(!1);function N(s){p.value=!0}function i(){p.value=!1}e.onMounted(async()=>{t.mutations.resetProduct(),l.params.product&&await t.actions.read({_id:l.params.product}),t.state.current.ingredients||(t.state.current.ingredients=[]),await w.actions.fetchCategories();try{const s=await t.actions.read({organization:l.params._id,limit:100});h.value=s}catch{console.error("error")}});function v(){l.params.product?t.actions.update(l.params.product,t.state.current):t.actions.create(l.params._id,t.state.current)}function x(){t.actions.deleteProduct(t.state.current._id)}function g(){f.push({name:"Organization",params:{_id:l.params._id}})}return(s,c)=>(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(o.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",z,e.toDisplayString(e.unref(l).params.product?t.state.current.name:"Create Product"),1),e.unref(l).params.product?(e.openBlock(),e.createBlock(_.default,{key:0,submit:x,callback:g,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(_.default,{submit:v,callback:g,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(o.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(q.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":c[0]||(c[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",F,[e.createVNode(o.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(E.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(o.default,{title:"Ingredients",placeholder:"No ingridients added yet",actions:[{label:"+",function:()=>N()}]},{default:e.withCtx(()=>[t.state.current.ingredients.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingredients,(a,n)=>(e.openBlock(),e.createBlock(y.default,{key:a._id,product:a,array:t.state.current.ingredients,products:h.value,showPrice:!1,onAdd:c[1]||(c[1]=r=>{u.actions.add(t.state.current.ingredients,r),i()}),onUpdate:r=>{u.actions.update(t.state.current.ingredients,r,n),i()},onDelete:r=>{u.actions.delete(t.state.current.ingredients,r,n),i()}},null,8,["product","array","products","onUpdate","onDelete"]))),128))])):e.createCommentVNode("",!0)]),_:1},8,["actions"]),e.createVNode(C.default,{title:"Add ingredient",onClosePopup:i,isPopupOpen:p.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(V.default,{search:{class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:a=>t.actions.read(a),state:null},options:{organization:e.unref(l).params._id},class:""},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(n,r)=>(e.openBlock(),e.createBlock(P.default,{key:n._id,editable:!1,product:n,onClick:()=>{let m={...n};m.quantity=1,m.type="pcs",u.actions.add(t.state.current.ingredients,m),i()},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(o.default,{title:"Categories",actions:[{label:"+",function:()=>e.unref(f).push({name:"Categories Organization",params:{_id:e.unref(l).params._id}})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.state.all,(a,n)=>(e.openBlock(),e.createBlock(B.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":r=>t.state.current.category=r},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",D,[e.createVNode(b.default,{onClick:()=>t.state.current.information.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",L,[e.createVNode(b.default,{onClick:()=>t.state.current.localization.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]))}};exports.default=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const o=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const d=require("../../../../components/Field/Field.vue2.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../../components/Popup/Popup.vue2.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),q=require("../../../../components/EditImages/EditImages.vue.cjs"),b=require("../../../icons/navigation/IconDelete.vue.cjs"),y=require("../blocks/CardPosition.vue.cjs"),P=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),E=require("../sections/EditProductInfo.vue.cjs"),u=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),w=require("../../store/categories.cjs");;/* empty css */const U={class:"for-transition w-100 cols-1 pd-thin gap-thin"},z={class:"mn-r-auto"},F={class:"cols-2 gap-thin"},I={key:0,class:"cols-1 gap-thin"},O={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},D={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},L={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},S={__name:"ProductEdit",setup(T){const l=k.useRoute(),f=k.useRouter(),h=e.ref(t.state.all),p=e.ref(!1);function N(s){p.value=!0}function i(){p.value=!1}e.onMounted(async()=>{t.mutations.resetProduct(),l.params.product&&await t.actions.read({_id:l.params.product}),t.state.current.ingredients||(t.state.current.ingredients=[]),await w.actions.fetchCategories();try{const s=await t.actions.read({organization:l.params._id,limit:100});h.value=s}catch{console.error("error")}});function v(){l.params.product?t.actions.update(l.params.product,t.state.current):t.actions.create(l.params._id,t.state.current)}function x(){t.actions.deleteProduct(t.state.current._id)}function g(){f.push({name:"Organization",params:{_id:l.params._id}})}return(s,c)=>(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(o.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",z,e.toDisplayString(e.unref(l).params.product?t.state.current.name:"Create Product"),1),e.unref(l).params.product?(e.openBlock(),e.createBlock(_.default,{key:0,submit:x,callback:g,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(_.default,{submit:v,callback:g,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(o.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(q.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":c[0]||(c[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",F,[e.createVNode(o.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(E.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(o.default,{title:"Ingredients",placeholder:"No ingridients added yet",actions:[{label:"+",function:()=>N()}]},{default:e.withCtx(()=>[t.state.current.ingredients.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingredients,(a,n)=>(e.openBlock(),e.createBlock(y.default,{key:a._id,product:a,array:t.state.current.ingredients,products:h.value,showPrice:!1,onAdd:c[1]||(c[1]=r=>{u.actions.add(t.state.current.ingredients,r),i()}),onUpdate:r=>{u.actions.update(t.state.current.ingredients,r,n),i()},onDelete:r=>{u.actions.delete(t.state.current.ingredients,r,n),i()}},null,8,["product","array","products","onUpdate","onDelete"]))),128))])):e.createCommentVNode("",!0)]),_:1},8,["actions"]),e.createVNode(C.default,{title:"Add ingredient",onClosePopup:i,isPopupOpen:p.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(V.default,{search:{class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:a=>t.actions.read(a),state:null},options:{organization:e.unref(l).params._id},class:""},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(n,r)=>(e.openBlock(),e.createBlock(P.default,{key:n._id,editable:!1,product:n,onClick:()=>{let m={...n};m.quantity=1,m.type="pcs",u.actions.add(t.state.current.ingredients,m),i()},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(o.default,{title:"Categories",actions:[{label:"+",function:()=>e.unref(f).push({name:"Categories Organization",params:{_id:e.unref(l).params._id}})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.state.all,(a,n)=>(e.openBlock(),e.createBlock(B.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":r=>t.state.current.category=r},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",D,[e.createVNode(b.default,{onClick:()=>t.state.current.information.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",L,[e.createVNode(b.default,{onClick:()=>t.state.current.localization.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]))}};exports.default=S;
@@ -1,15 +1,15 @@
1
- import { ref as $, onMounted as B, openBlock as n, createElementBlock as s, createVNode as a, withCtx as l, createElementVNode as m, toDisplayString as E, unref as p, createBlock as b, createTextVNode as U, createCommentVNode as z, Fragment as f, renderList as _ } from "vue";
2
- import { useRoute as R, useRouter as S } from "vue-router";
1
+ import { ref as U, onMounted as B, openBlock as n, createElementBlock as s, createVNode as a, withCtx as o, createElementVNode as m, toDisplayString as E, unref as p, createBlock as b, createTextVNode as $, createCommentVNode as z, Fragment as f, renderList as _ } from "vue";
2
+ import { useRoute as F, useRouter as R } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  /* empty css */
6
6
  import d from "../../../../components/Block/Block.vue.js";
7
7
  /* empty css */
8
8
  import v from "../../../../components/Field/Field.vue2.js";
9
- import T from "../../../../components/Checkbox/Checkbox.vue.js";
9
+ import S from "../../../../components/Checkbox/Checkbox.vue.js";
10
10
  import N from "../../../../components/Button/Button.vue2.js";
11
- import A from "../../../../components/Popup/Popup.vue.js";
12
- import F from "../../../../components/Feed/Feed.vue.js";
11
+ import T from "../../../../components/Popup/Popup.vue2.js";
12
+ import A from "../../../../components/Feed/Feed.vue.js";
13
13
  import L from "../../../../components/EditImages/EditImages.vue.js";
14
14
  import D from "../../../icons/navigation/IconDelete.vue.js";
15
15
  import q from "../blocks/CardPosition.vue.js";
@@ -25,7 +25,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
25
25
  }, Y = { class: "bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, Z = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ee = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, ke = {
26
26
  __name: "ProductEdit",
27
27
  setup(te) {
28
- const o = R(), k = S(), P = $(e.all), y = $(!1);
28
+ const l = F(), k = R(), P = U(e.all), y = U(!1);
29
29
  function O(g) {
30
30
  y.value = !0;
31
31
  }
@@ -33,10 +33,10 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
33
33
  y.value = !1;
34
34
  }
35
35
  B(async () => {
36
- G.resetProduct(), o.params.product && await c.read({ _id: o.params.product }), e.current.ingredients || (e.current.ingredients = []), await H.fetchCategories();
36
+ G.resetProduct(), l.params.product && await c.read({ _id: l.params.product }), e.current.ingredients || (e.current.ingredients = []), await H.fetchCategories();
37
37
  try {
38
38
  const g = await c.read({
39
- organization: o.params._id,
39
+ organization: l.params._id,
40
40
  limit: 100
41
41
  });
42
42
  P.value = g;
@@ -45,7 +45,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
45
45
  }
46
46
  });
47
47
  function I() {
48
- o.params.product ? c.update(o.params.product, e.current) : c.create(o.params._id, e.current);
48
+ l.params.product ? c.update(l.params.product, e.current) : c.create(l.params._id, e.current);
49
49
  }
50
50
  function V() {
51
51
  c.deleteProduct(e.current._id);
@@ -54,22 +54,22 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
54
54
  k.push({
55
55
  name: "Organization",
56
56
  params: {
57
- _id: o.params._id
57
+ _id: l.params._id
58
58
  }
59
59
  });
60
60
  }
61
61
  return (g, h) => (n(), s("div", K, [
62
62
  a(d, { class: "flex-nowrap flex-v-center flex" }, {
63
- default: l(() => [
64
- m("h1", Q, E(p(o).params.product ? e.current.name : "Create Product"), 1),
65
- p(o).params.product ? (n(), b(N, {
63
+ default: o(() => [
64
+ m("h1", Q, E(p(l).params.product ? e.current.name : "Create Product"), 1),
65
+ p(l).params.product ? (n(), b(N, {
66
66
  key: 0,
67
67
  submit: V,
68
68
  callback: C,
69
69
  class: "bg-red mn-r-thin"
70
70
  }, {
71
- default: l(() => [
72
- U(" Delete ")
71
+ default: o(() => [
72
+ $(" Delete ")
73
73
  ]),
74
74
  _: 1
75
75
  })) : z("", !0),
@@ -78,8 +78,8 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
78
78
  callback: C,
79
79
  class: "bg-main"
80
80
  }, {
81
- default: l(() => [
82
- U(" Save ")
81
+ default: o(() => [
82
+ $(" Save ")
83
83
  ]),
84
84
  _: 1
85
85
  })
@@ -90,7 +90,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
90
90
  placeholder: "The product doesn't have any images yet.",
91
91
  class: "h-min"
92
92
  }, {
93
- default: l(() => [
93
+ default: o(() => [
94
94
  a(L, {
95
95
  images: e.current.images,
96
96
  uploadPath: "photos",
@@ -103,7 +103,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
103
103
  }),
104
104
  m("div", W, [
105
105
  a(d, { title: "Profile" }, {
106
- default: l(() => [
106
+ default: o(() => [
107
107
  a(j, {
108
108
  product: e.current
109
109
  }, null, 8, ["product"])
@@ -118,7 +118,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
118
118
  function: () => O()
119
119
  }]
120
120
  }, {
121
- default: l(() => [
121
+ default: o(() => [
122
122
  e.current.ingredients.length > 0 ? (n(), s("div", X, [
123
123
  (n(!0), s(f, null, _(e.current.ingredients, (t, i) => (n(), b(q, {
124
124
  key: t._id,
@@ -140,15 +140,15 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
140
140
  ]),
141
141
  _: 1
142
142
  }, 8, ["actions"]),
143
- a(A, {
143
+ a(T, {
144
144
  title: "Add ingredient",
145
145
  onClosePopup: u,
146
146
  isPopupOpen: y.value,
147
147
  class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
148
148
  }, {
149
- default: l(() => [
149
+ default: o(() => [
150
150
  m("div", Y, [
151
- a(F, {
151
+ a(A, {
152
152
  search: {
153
153
  class: "bg-white mn-b-thin"
154
154
  },
@@ -163,11 +163,11 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
163
163
  state: null
164
164
  },
165
165
  options: {
166
- organization: p(o).params._id
166
+ organization: p(l).params._id
167
167
  },
168
168
  class: ""
169
169
  }, {
170
- default: l(({
170
+ default: o(({
171
171
  items: t
172
172
  }) => [
173
173
  (n(!0), s(f, null, _(t, (i, r) => (n(), b(M, {
@@ -195,13 +195,13 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
195
195
  function: () => p(k).push({
196
196
  name: "Categories Organization",
197
197
  params: {
198
- _id: p(o).params._id
198
+ _id: p(l).params._id
199
199
  }
200
200
  })
201
201
  }]
202
202
  }, {
203
- default: l(() => [
204
- (n(!0), s(f, null, _(J.all, (t, i) => (n(), b(T, {
203
+ default: o(() => [
204
+ (n(!0), s(f, null, _(J.all, (t, i) => (n(), b(S, {
205
205
  label: t.name,
206
206
  name: "categories",
207
207
  value: t.url,
@@ -221,7 +221,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
221
221
  }],
222
222
  class: "cols-1 gap-thin"
223
223
  }, {
224
- default: l(() => [
224
+ default: o(() => [
225
225
  (n(!0), s(f, null, _(e.current.information, (t, i) => (n(), s("div", {
226
226
  class: "gap-thin flex-nowrap flex",
227
227
  key: i
@@ -256,7 +256,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
256
256
  function: () => e.current.localization.push({ name: "", value: "" })
257
257
  }]
258
258
  }, {
259
- default: l(() => [
259
+ default: o(() => [
260
260
  (n(!0), s(f, null, _(e.current.localization, (t, i) => (n(), s("div", {
261
261
  class: "gap-thin mn-b-thin flex-nowrap flex",
262
262
  key: i
@@ -3,7 +3,7 @@ import u from "../../../../components/Field/Field.vue2.js";
3
3
  const M = {
4
4
  key: 0,
5
5
  class: "mn-b-small w-100"
6
- }, $ = { class: "w-100 flex-nowrap flex" }, B = ["onClick"], E = /* @__PURE__ */ e("svg", {
6
+ }, B = { class: "w-100 flex-nowrap flex" }, $ = ["onClick"], E = /* @__PURE__ */ e("svg", {
7
7
  width: "26",
8
8
  height: "26",
9
9
  viewBox: "0 0 26 26",
@@ -23,7 +23,7 @@ const M = {
23
23
  })
24
24
  ], -1), N = [
25
25
  E
26
- ], V = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), q = ["onClick"], Z = /* @__PURE__ */ e("svg", {
26
+ ], V = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), q = ["onClick"], F = /* @__PURE__ */ e("svg", {
27
27
  width: "26",
28
28
  height: "26",
29
29
  viewBox: "0 0 26 26",
@@ -41,9 +41,9 @@ const M = {
41
41
  d: "M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",
42
42
  fill: "rgb(var(--white))"
43
43
  })
44
- ], -1), j = [
45
- Z
46
- ], F = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), O = ["onClick"], z = {
44
+ ], -1), Z = [
45
+ F
46
+ ], j = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), O = ["onClick"], z = {
47
47
  __name: "EditModifications",
48
48
  props: {
49
49
  product: Object
@@ -72,7 +72,7 @@ const M = {
72
72
  class: "mn-b-small flex-column flex-wrap block",
73
73
  key: a
74
74
  }, [
75
- e("div", $, [
75
+ e("div", B, [
76
76
  r(u, {
77
77
  field: n.quantity,
78
78
  "onUpdate:field": (t) => n.quantity = t,
@@ -90,7 +90,7 @@ const M = {
90
90
  e("button", {
91
91
  onClick: (t) => g(a),
92
92
  class: "mn-l-small i-normal pd-regular button-delete button"
93
- }, N, 8, B)
93
+ }, N, 8, $)
94
94
  ]),
95
95
  V,
96
96
  (i(!0), o(h, null, b(n.characteristics, (t, f) => (i(), o("div", {
@@ -112,9 +112,9 @@ const M = {
112
112
  e("button", {
113
113
  onClick: (c) => x(a, f),
114
114
  class: "mn-l-small i-normal pd-regular button-delete button"
115
- }, j, 8, q)
115
+ }, Z, 8, q)
116
116
  ]))), 128)),
117
- F,
117
+ j,
118
118
  e("button", {
119
119
  onClick: (t) => k(a),
120
120
  class: "button"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");;/* empty css */;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs"),i=require("../../../../components/Select/Select.vue.cjs"),u={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,t)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(i.default,{select:e.product.status,"onUpdate:select":t[0]||(t[0]=l=>e.product.status=l),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":t[1]||(t[1]=l=>e.product.name=l),label:"Name",placeholder:"Enter product name",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":t[3]||(t[3]=l=>e.product.price=l),label:"Price",placeholder:"Enter product price",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(i.default,{select:e.product.price.currency,"onUpdate:select":t[2]||(t[2]=l=>e.product.price.currency=l),placeholder:"฿",options:["฿"],class:"pos-relative bg-light pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":t[4]||(t[4]=l=>e.product.description=l),label:"Description",placeholder:"Enter product description",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");;/* empty css */;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs"),i=require("../../../../components/Select/Select.vue2.cjs"),u={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,t)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(i.default,{select:e.product.status,"onUpdate:select":t[0]||(t[0]=l=>e.product.status=l),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":t[1]||(t[1]=l=>e.product.name=l),label:"Name",placeholder:"Enter product name",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":t[3]||(t[3]=l=>e.product.price=l),label:"Price",placeholder:"Enter product price",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(i.default,{select:e.product.price.currency,"onUpdate:select":t[2]||(t[2]=l=>e.product.price.currency=l),placeholder:"฿",options:["฿"],class:"pos-relative bg-light pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":t[4]||(t[4]=l=>e.product.description=l),label:"Description",placeholder:"Enter product description",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=u;
@@ -1,15 +1,15 @@
1
- import { openBlock as a, createElementBlock as u, Fragment as o, createVNode as d, withCtx as n } from "vue";
1
+ import { openBlock as u, createElementBlock as a, Fragment as o, createVNode as d, withCtx as n } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import i from "../../../../components/Field/Field.vue2.js";
5
- import r from "../../../../components/Select/Select.vue.js";
5
+ import r from "../../../../components/Select/Select.vue2.js";
6
6
  const w = {
7
7
  __name: "EditProductInfo",
8
8
  props: {
9
9
  product: Object
10
10
  },
11
11
  setup(e) {
12
- return (s, t) => (a(), u(o, null, [
12
+ return (p, t) => (u(), a(o, null, [
13
13
  d(r, {
14
14
  select: e.product.status,
15
15
  "onUpdate:select": t[0] || (t[0] = (l) => e.product.status = l),
@@ -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"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue.cjs"),f=require("../../store/reports.cjs"),b=e.createElementVNode("h3",{class:"mn-b-small"}," Report Content ",-1),g=e.createElementVNode("p",{class:"p-medium mn-b-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),v=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(i){const t=i,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function l(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:o[1]||(o[1]=n=>u())},[e.renderSlot(p.$slots,"default"),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[b,g,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[0]||(o[0]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),v,e.createVNode(d.default,{submit:l,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../store/reports.cjs"),b=e.createElementVNode("h3",{class:"mn-b-small"}," Report Content ",-1),g=e.createElementVNode("p",{class:"p-medium mn-b-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),v=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(i){const t=i,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function l(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:o[1]||(o[1]=n=>u())},[e.renderSlot(p.$slots,"default"),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[b,g,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[0]||(o[0]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),v,e.createVNode(d.default,{submit:l,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])]))}};exports.default=h;
@@ -1,7 +1,7 @@
1
1
  import { reactive as d, ref as f, openBlock as b, createElementBlock as g, renderSlot as h, createVNode as s, withCtx as l, createTextVNode as y, createElementVNode as a } from "vue";
2
- import _ from "../../../../components/Popup/Popup.vue.js";
2
+ import _ from "../../../../components/Popup/Popup.vue2.js";
3
3
  import v from "../../../../components/Button/Button.vue2.js";
4
- import w from "../../../../components/Select/Select.vue.js";
4
+ import w from "../../../../components/Select/Select.vue2.js";
5
5
  import { actions as S } from "../../store/reports.js";
6
6
  const k = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, " Report Content ", -1), P = /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, " We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ", -1), R = /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, "Our moderators will review your report within 24 hours and take action if it violates our policies.", -1), O = {
7
7
  __name: "FormReport",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../icons/navigation/IconEdit.vue.cjs"),a=require("../../../../components/Chips/Chips.vue2.cjs"),d=require("../../../../components/Map/Map.vue.cjs");;/* empty css */const c=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),l=t=>(e.pushScopeId("data-v-6c15ff4f"),t=t(),e.popScopeId(),t),p={class:"radius-big o-hidden pos-relative cols-2-1_3"},u={class:"pd-medium w-100"},m=["innerHTML"],h={class:"d-block p-big mn-b-semi"},g=l(()=>e.createElementVNode("h4",null,"Delivery:",-1)),f=l(()=>e.createElementVNode("h4",null,"Accepted Payment:",-1)),y={__name:"CardSpot",props:{spot:Object,organization:Object},setup(t){const i=t;return(o,n)=>(e.openBlock(),e.createElementBlock("div",p,[e.createVNode(d.default,{apiKey:o.GOOGLE_MAPS_API_KEY,location:{lat:t.spot.location.coordinates[1],lng:t.spot.location.coordinates[0]},locale:o.$i18n.locale,class:""},null,8,["apiKey","location","locale"]),e.createElementVNode("div",u,[e.createVNode(r.default,{onClick:n[0]||(n[0]=s=>o.$router.push({name:"Spot Edit",params:{_id:i.organization._id,spot:t.spot._id}})),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"}),e.createElementVNode("p",{onClick:n[1]||(n[1]=s=>o.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"pd-thin bg-white radius-small mn-b-thin p-small w-max"},e.toDisplayString(t.spot.address),1),e.createElementVNode("h3",{onClick:n[2]||(n[2]=s=>o.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"mn-b-thin w-100",innerHTML:t.spot.profile.name},null,8,m),e.createElementVNode("p",h,e.toDisplayString(t.spot.profile.description),1),g,o.type!=="short"&&t.spot.delivery.length>0?(e.openBlock(),e.createBlock(a.default,{key:0,chips:t.spot.delivery},null,8,["chips"])):e.createCommentVNode("",!0),f,o.type!=="short"&&t.spot.payment.length>0?(e.openBlock(),e.createBlock(a.default,{key:1,chips:t.spot.payment},null,8,["chips"])):e.createCommentVNode("",!0)])]))}},v=c.default(y,[["__scopeId","data-v-6c15ff4f"]]);exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../icons/navigation/IconEdit.vue.cjs"),a=require("../../../../components/Chips/Chips.vue.cjs"),d=require("../../../../components/Map/Map.vue.cjs");;/* empty css */const c=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),l=t=>(e.pushScopeId("data-v-6c15ff4f"),t=t(),e.popScopeId(),t),p={class:"radius-big o-hidden pos-relative cols-2-1_3"},u={class:"pd-medium w-100"},m=["innerHTML"],h={class:"d-block p-big mn-b-semi"},g=l(()=>e.createElementVNode("h4",null,"Delivery:",-1)),f=l(()=>e.createElementVNode("h4",null,"Accepted Payment:",-1)),y={__name:"CardSpot",props:{spot:Object,organization:Object},setup(t){const i=t;return(o,n)=>(e.openBlock(),e.createElementBlock("div",p,[e.createVNode(d.default,{apiKey:o.GOOGLE_MAPS_API_KEY,location:{lat:t.spot.location.coordinates[1],lng:t.spot.location.coordinates[0]},locale:o.$i18n.locale,class:""},null,8,["apiKey","location","locale"]),e.createElementVNode("div",u,[e.createVNode(r.default,{onClick:n[0]||(n[0]=s=>o.$router.push({name:"Spot Edit",params:{_id:i.organization._id,spot:t.spot._id}})),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"}),e.createElementVNode("p",{onClick:n[1]||(n[1]=s=>o.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"pd-thin bg-white radius-small mn-b-thin p-small w-max"},e.toDisplayString(t.spot.address),1),e.createElementVNode("h3",{onClick:n[2]||(n[2]=s=>o.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"mn-b-thin w-100",innerHTML:t.spot.profile.name},null,8,m),e.createElementVNode("p",h,e.toDisplayString(t.spot.profile.description),1),g,o.type!=="short"&&t.spot.delivery.length>0?(e.openBlock(),e.createBlock(a.default,{key:0,chips:t.spot.delivery},null,8,["chips"])):e.createCommentVNode("",!0),f,o.type!=="short"&&t.spot.payment.length>0?(e.openBlock(),e.createBlock(a.default,{key:1,chips:t.spot.payment},null,8,["chips"])):e.createCommentVNode("",!0)])]))}},v=c.default(y,[["__scopeId","data-v-6c15ff4f"]]);exports.default=v;
@@ -1,6 +1,6 @@
1
1
  import { openBlock as n, createElementBlock as u, createVNode as l, createElementVNode as i, toDisplayString as r, createBlock as p, createCommentVNode as d, pushScopeId as h, popScopeId as f } from "vue";
2
2
  import g from "../../../icons/navigation/IconEdit.vue.js";
3
- import c from "../../../../components/Chips/Chips.vue2.js";
3
+ import c from "../../../../components/Chips/Chips.vue.js";
4
4
  import y from "../../../../components/Map/Map.vue.js";
5
5
  /* empty css */
6
6
  import $ from "../../../../../../_virtual/_plugin-vue_export-helper.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */const f={class:"br-grey-transp-25 radius-small mn-b-small"},k={key:1,class:"pd-small br-grey-transp-25 br-1px br-solid"},v=["disabled"],y={__name:"SpotMemberModify",props:{isPopupOpen:Boolean,spot:Number,spots:Array,mainspot:Object,allspots:Array},emits:["callback","remove"],setup(a,{emit:c}){const t=a,r=c,o=e.ref({subspot:null});t.spot!==null&&(o.value=t.spots[t.spot]);function p(u,s,n){return u.filter(l=>!(s.some(b=>b._id===l._id)||n._id===l._id))}const i=e.computed(()=>p(t.allspots,t.spots,t.mainspot));async function m(){t.spots.push(o.value.subspot),r("callback")}async function d(){t.spots.splice(t.spot,1),r("callback")}return(u,s)=>{const n=e.resolveComponent("VueSelect");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",f,[t.spot===null?(e.openBlock(),e.createBlock(n,{key:0,modelValue:o.value.subspot,"onUpdate:modelValue":s[0]||(s[0]=l=>o.value.subspot=l),options:i.value,"get-option-label":l=>l.name,class:"w-100 mn-b-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",k,e.toDisplayString(o.value.name?o.value.name:"Безымянный"),1))]),t.spot===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!o.value.subspot,onClick:m,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,v)):e.createCommentVNode("",!0),t.spot!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)])}}},B=_.default(y,[["__scopeId","data-v-3c991e96"]]);exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */const f={class:"br-grey-transp-25 radius-small mn-b-small"},k={key:1,class:"pd-small br-grey-transp-25 br-1px br-solid"},v=["disabled"],y={__name:"SpotMemberModify",props:{isPopupOpen:Boolean,spot:Number,spots:Array,mainspot:Object,allspots:Array},emits:["callback","remove"],setup(a,{emit:c}){const t=a,r=c,o=e.ref({subspot:null});t.spot!==null&&(o.value=t.spots[t.spot]);function p(u,s,n){return u.filter(l=>!(s.some(b=>b._id===l._id)||n._id===l._id))}const i=e.computed(()=>p(t.allspots,t.spots,t.mainspot));async function m(){t.spots.push(o.value.subspot),r("callback")}async function d(){t.spots.splice(t.spot,1),r("callback")}return(u,s)=>{const n=e.resolveComponent("VueSelect");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",f,[t.spot===null?(e.openBlock(),e.createBlock(n,{key:0,modelValue:o.value.subspot,"onUpdate:modelValue":s[0]||(s[0]=l=>o.value.subspot=l),options:i.value,"get-option-label":l=>l.name,class:"w-100 mn-b-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",k,e.toDisplayString(o.value.name?o.value.name:"Безымянный"),1))]),t.spot===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!o.value.subspot,onClick:m,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,v)):e.createCommentVNode("",!0),t.spot!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)])}}},B=_.default(y,[["__scopeId","data-v-3c991e96"]]);exports.default=B;
@@ -1,7 +1,7 @@
1
1
  import { ref as v, computed as y, resolveComponent as k, openBlock as s, createElementBlock as n, createElementVNode as g, createBlock as S, toDisplayString as V, createCommentVNode as u } from "vue";
2
2
  /* empty css */
3
- /* empty css */
4
3
  import h from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ /* empty css */
5
5
  /* empty css */
6
6
  const w = { class: "br-grey-transp-25 radius-small mn-b-small" }, M = {
7
7
  key: 1,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */require("../../../globals/localization/vue-i18n.cjs");;/* empty css */;/* empty css */const m=require("../../../globals/store/globals.cjs"),f=require("../../../products/store/categories.cjs"),g=require("../../../marketplace/store/marketplace.cjs"),h={class:"w-100 h-100"},k={class:"h-100 w-100 flex-nowrap flex-column flex gap-thin"},_={class:"pos-absolute z-index-2 w-100"},w={class:"bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center"},b=e.createElementVNode("span",{class:""},"Weed in ",-1),B={key:0},q={key:1},E={key:2},C={__name:"Spots",setup(O){const s=y.useRoute(),n=y.useRouter(),o=e.ref({city:null,state:null,country:null});function u(t){return t.replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}e.onMounted(async()=>{if(s.params){let t={country:u(s.params.country),state:u(s.params.state),city:u(s.params.city)};o.value=t}if(s.query){const t=s.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};g.state.filter.selected=r}await f.actions.fetchCategories()}),e.watch(()=>g.state.filter.selected,(t,r)=>{const a={...s.query};Object.keys(r).forEach(l=>{a[l]&&delete a[l]});const i=Object.fromEntries(Object.entries(t).filter(([l,c])=>Array.isArray(c)&&c.length>0).map(([l,c])=>[l,c.join(",")]));Object.assign(a,i),n.push({query:a})},{deep:!0});function p(t){return t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,"")}e.watch(()=>m.state.position,t=>{const r={...n.currentRoute.value};let a={country:p(t.country),state:p(t.state),city:p(t.city)};r.params=a,n.replace(r)},{deep:!0});const d={locale:"en",messages:{en:{meta:{title:"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",description:"Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."},breadcrumbs:{home:"Home",store:"Marketplace"},categoriesTitle:"Category",categories:[],sort:{price:"By price",newest:"By newest",popularity:"By popularity"},filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{meta:{title:"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",description:"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."},breadcrumbs:{home:"Главная",store:"Маркетплейс"},categoriesTitle:"Категория",categories:[],sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"},filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};return f.state.all.forEach(t=>{t.localization.forEach(r=>{d.messages[r.locale].categories.push(r.text)})}),v.useI18n(d),(t,r)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",k,[e.createElementVNode("div",_,[e.createElementVNode("h2",w,[b,o.value.city||o.value.state||o.value.country?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[0]||(r[0]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"},[o.value.city?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(o.value.city)+", ",1)):e.createCommentVNode("",!0),o.value.state?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(o.value.state)+", ",1)):e.createCommentVNode("",!0),o.value.country?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(o.value.country),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:r[1]||(r[1]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"}," The World "))])]),e.createVNode(a,null,{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.value,apiKey:t.GOOGLE_MAPS_API_KEY,locale:t.$i18n.locale,class:""},null,8,["localPosition","apiKey","locale"]))]),_:2},1024)]),_:1})])])}}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */require("../../../globals/localization/vue-i18n.cjs");;/* empty css */;/* empty css */const m=require("../../../globals/store/globals.cjs"),f=require("../../../products/store/categories.cjs"),g=require("../../../marketplace/store/marketplace.cjs"),h={class:"w-100 h-100"},k={class:"h-100 w-100 flex-nowrap flex-column flex gap-thin"},_={class:"pos-absolute z-index-2 w-100"},w={class:"bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center"},b=e.createElementVNode("span",{class:""},"Weed in ",-1),B={key:0},q={key:1},E={key:2},C={__name:"Spots",setup(O){const s=y.useRoute(),n=y.useRouter(),o=e.ref({city:null,state:null,country:null});function u(t){return t.replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}e.onMounted(async()=>{if(s.params){let t={country:u(s.params.country),state:u(s.params.state),city:u(s.params.city)};o.value=t}if(s.query){const t=s.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};g.state.filter.selected=r}await f.actions.fetchCategories()}),e.watch(()=>g.state.filter.selected,(t,r)=>{const a={...s.query};Object.keys(r).forEach(l=>{a[l]&&delete a[l]});const i=Object.fromEntries(Object.entries(t).filter(([l,c])=>Array.isArray(c)&&c.length>0).map(([l,c])=>[l,c.join(",")]));Object.assign(a,i),n.push({query:a})},{deep:!0});function p(t){return t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,"")}e.watch(()=>m.state.position,t=>{const r={...n.currentRoute.value};let a={country:p(t.country),state:p(t.state),city:p(t.city)};r.params=a,n.replace(r)},{deep:!0});const d={locale:"en",messages:{en:{meta:{title:"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",description:"Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."},breadcrumbs:{home:"Home",store:"Marketplace"},categoriesTitle:"Category",categories:[],sort:{price:"By price",newest:"By newest",popularity:"By popularity"},filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{meta:{title:"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",description:"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."},breadcrumbs:{home:"Главная",store:"Маркетплейс"},categoriesTitle:"Категория",categories:[],sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"},filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};return f.state.all.forEach(t=>{t.localization.forEach(r=>{d.messages[r.locale].categories.push(r.text)})}),v.useI18n(d),(t,r)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",k,[e.createElementVNode("div",_,[e.createElementVNode("h2",w,[b,o.value.city||o.value.state||o.value.country?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[0]||(r[0]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"},[o.value.city?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(o.value.city)+", ",1)):e.createCommentVNode("",!0),o.value.state?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(o.value.state)+", ",1)):e.createCommentVNode("",!0),o.value.country?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(o.value.country),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:r[1]||(r[1]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"}," The World "))])]),e.createVNode(a,null,{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.value,apiKey:t.GOOGLE_MAPS_API_KEY,locale:t.$i18n.locale,class:""},null,8,["localPosition","apiKey","locale"]))]),_:2},1024)]),_:1})])])}}};exports.default=C;
@@ -5,7 +5,7 @@ import { useI18n as j } from "vue-i18n";
5
5
  /* empty css */
6
6
  import "../../../globals/localization/vue-i18n.js";
7
7
  /* empty css */
8
- /* empty css */
8
+ /* empty css */
9
9
  import { state as h } from "../../../globals/store/globals.js";
10
10
  import { actions as q, state as R } from "../../../products/store/categories.js";
11
11
  import { state as b } from "../../../marketplace/store/marketplace.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Block/Block.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Select/Select.vue.cjs"),n=require("../../../../components/Checkbox/Checkbox.vue.cjs"),w=require("../../../../components/Address/Address.vue2.cjs"),V=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),m=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");;/* empty css */const t=require("../../store/spots.cjs"),y={class:"for-transition w-100 cols-1 pd-thin gap-thin"},E={class:"mn-r-auto"},S={class:"cols-2 gap-thin"},q={class:"gap-small mn-b-small cols-2-fit-content"},k={class:"w-100"},U=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please the available delivery options:",-1),_=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select the available payment methods:",-1),P=e.createElementVNode("p",{class:"mn-b-small p-medium"},"Options:",-1),O={__name:"SpotEdit",setup(x){const p=u.useRouter(),l=u.useRoute();e.ref("details"),e.ref(!1),e.onMounted(async()=>{await c()});async function c(){var s,o;l.params.spot&&await t.actions.readOne(l.params.spot);const i=(s=t.state.spot.location)==null?void 0:s.coordinates[0],a=(o=t.state.spot.location)==null?void 0:o.coordinates[1];t.state.spot.location={lat:a||1,lng:i||1}}async function f(){t.state.spot.location={type:"Point",coordinates:[t.state.spot.location.lng,t.state.spot.location.lat]},l.params.spot&&await t.actions.update(l.params._id,t.state.spot),l.params.spot||await t.actions.create(l.params._id,t.state.spot)}function b(){p.push({name:"Organization",params:{_id:l.params._id}})}async function h(){await t.actions.delete(l.params._id,t.state.spot)}function v(){p.push({name:"Organization",params:{_id:l.params._id}})}return(i,a)=>(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(d.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",E,e.toDisplayString(e.unref(l).params.spot?t.state.spot.profile.name:"Create Spot"),1),e.createVNode(m.default,{submit:f,callback:b,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save Spot ")]),_:1})]),_:1}),e.createElementVNode("div",S,[e.createVNode(d.default,{title:"Profile",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(g.default,{photo:t.state.spot.profile.photo,"onUpdate:photo":a[0]||(a[0]=s=>t.state.spot.profile.photo=s),uploadPath:"organizations/"+t.state.spot.name+"/avatars",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",k,[e.createVNode(r.default,{field:t.state.spot.profile.name,"onUpdate:field":a[1]||(a[1]=s=>t.state.spot.profile.name=s),label:"Name",placeholder:"Spot Name",class:"mn-b-small bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"]),e.createVNode(r.default,{field:t.state.spot.profile.description,"onUpdate:field":a[2]||(a[2]=s=>t.state.spot.profile.description=s),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])])]),e.createVNode(N.default,{select:t.state.spot.status,"onUpdate:select":a[3]||(a[3]=s=>t.state.spot.status=s),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),U,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["pickup","courier","post"],s=>e.createVNode(n.default,{label:s,name:"Delivery",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.delivery,"onUpdate:radio":a[4]||(a[4]=o=>t.state.spot.delivery=o)},null,8,["label","value","radio"])),64)),_,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["cash","bank transfer","crypto"],s=>e.createVNode(n.default,{label:s,name:"Payment",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.payment,"onUpdate:radio":a[5]||(a[5]=o=>t.state.spot.payment=o)},null,8,["label","value","radio"])),64))]),_:1}),e.createVNode(d.default,{title:"Location",class:"pos-relative"},{default:e.withCtx(()=>{var s;return[e.createVNode(w.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,locale:i.$i18n.locale,label:"Address",placeholder:"Enter delivery address",class:"bg-white pd-small radius-tl-medium radius-tr-medium","onUpdate:location":a[6]||(a[6]=o=>{t.state.spot.location=o}),"onUpdate:address":a[7]||(a[7]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location","locale"]),e.createVNode(V.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,locale:i.$i18n.locale,class:"h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden","onUpdate:location":a[8]||(a[8]=o=>{t.state.spot.location=o}),"onUpdate:address":a[9]||(a[9]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location","locale"]),P,e.createVNode(n.default,{label:"Hide address",name:"address",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:(s=t.state.spot.position)==null?void 0:s.hide,"onUpdate:radio":a[10]||(a[10]=o=>t.state.spot.position.hide=o)},null,8,["radio"]),e.createVNode(r.default,{field:t.state.spot.minorder,"onUpdate:field":a[11]||(a[11]=o=>t.state.spot.minorder=o),label:"Min.order",placeholder:"Enter minimum order value",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])]}),_:1})]),e.createVNode(m.default,{submit:h,callback:v,class:"w-100 bg-light"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1})]))}};exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Block/Block.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Select/Select.vue2.cjs"),n=require("../../../../components/Checkbox/Checkbox.vue.cjs"),w=require("../../../../components/Address/Address.vue2.cjs"),V=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),m=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");;/* empty css */const t=require("../../store/spots.cjs"),y={class:"for-transition w-100 cols-1 pd-thin gap-thin"},E={class:"mn-r-auto"},S={class:"cols-2 gap-thin"},q={class:"gap-small mn-b-small cols-2-fit-content"},k={class:"w-100"},U=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please the available delivery options:",-1),_=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select the available payment methods:",-1),P=e.createElementVNode("p",{class:"mn-b-small p-medium"},"Options:",-1),O={__name:"SpotEdit",setup(x){const p=u.useRouter(),l=u.useRoute();e.ref("details"),e.ref(!1),e.onMounted(async()=>{await c()});async function c(){var s,o;l.params.spot&&await t.actions.readOne(l.params.spot);const i=(s=t.state.spot.location)==null?void 0:s.coordinates[0],a=(o=t.state.spot.location)==null?void 0:o.coordinates[1];t.state.spot.location={lat:a||1,lng:i||1}}async function f(){t.state.spot.location={type:"Point",coordinates:[t.state.spot.location.lng,t.state.spot.location.lat]},l.params.spot&&await t.actions.update(l.params._id,t.state.spot),l.params.spot||await t.actions.create(l.params._id,t.state.spot)}function b(){p.push({name:"Organization",params:{_id:l.params._id}})}async function h(){await t.actions.delete(l.params._id,t.state.spot)}function v(){p.push({name:"Organization",params:{_id:l.params._id}})}return(i,a)=>(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(d.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",E,e.toDisplayString(e.unref(l).params.spot?t.state.spot.profile.name:"Create Spot"),1),e.createVNode(m.default,{submit:f,callback:b,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save Spot ")]),_:1})]),_:1}),e.createElementVNode("div",S,[e.createVNode(d.default,{title:"Profile",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(g.default,{photo:t.state.spot.profile.photo,"onUpdate:photo":a[0]||(a[0]=s=>t.state.spot.profile.photo=s),uploadPath:"organizations/"+t.state.spot.name+"/avatars",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",k,[e.createVNode(r.default,{field:t.state.spot.profile.name,"onUpdate:field":a[1]||(a[1]=s=>t.state.spot.profile.name=s),label:"Name",placeholder:"Spot Name",class:"mn-b-small bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"]),e.createVNode(r.default,{field:t.state.spot.profile.description,"onUpdate:field":a[2]||(a[2]=s=>t.state.spot.profile.description=s),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])])]),e.createVNode(N.default,{select:t.state.spot.status,"onUpdate:select":a[3]||(a[3]=s=>t.state.spot.status=s),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),U,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["pickup","courier","post"],s=>e.createVNode(n.default,{label:s,name:"Delivery",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.delivery,"onUpdate:radio":a[4]||(a[4]=o=>t.state.spot.delivery=o)},null,8,["label","value","radio"])),64)),_,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["cash","bank transfer","crypto"],s=>e.createVNode(n.default,{label:s,name:"Payment",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.payment,"onUpdate:radio":a[5]||(a[5]=o=>t.state.spot.payment=o)},null,8,["label","value","radio"])),64))]),_:1}),e.createVNode(d.default,{title:"Location",class:"pos-relative"},{default:e.withCtx(()=>{var s;return[e.createVNode(w.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,locale:i.$i18n.locale,label:"Address",placeholder:"Enter delivery address",class:"bg-white pd-small radius-tl-medium radius-tr-medium","onUpdate:location":a[6]||(a[6]=o=>{t.state.spot.location=o}),"onUpdate:address":a[7]||(a[7]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location","locale"]),e.createVNode(V.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,locale:i.$i18n.locale,class:"h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden","onUpdate:location":a[8]||(a[8]=o=>{t.state.spot.location=o}),"onUpdate:address":a[9]||(a[9]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location","locale"]),P,e.createVNode(n.default,{label:"Hide address",name:"address",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:(s=t.state.spot.position)==null?void 0:s.hide,"onUpdate:radio":a[10]||(a[10]=o=>t.state.spot.position.hide=o)},null,8,["radio"]),e.createVNode(r.default,{field:t.state.spot.minorder,"onUpdate:field":a[11]||(a[11]=o=>t.state.spot.minorder=o),label:"Min.order",placeholder:"Enter minimum order value",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])]}),_:1})]),e.createVNode(m.default,{submit:h,callback:v,class:"w-100 bg-light"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1})]))}};exports.default=O;