@ozdao/prometheus-framework 0.2.156 → 0.2.157

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) 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/Feed/Feed.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  28. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +47 -30
  30. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +9 -9
  31. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +10 -10
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +14 -14
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +9 -9
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +11 -11
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +34 -34
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +27 -27
  38. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -0
  39. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +58 -0
  40. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +11 -180
  42. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -0
  43. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +190 -0
  44. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +9 -7
  46. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +48 -43
  48. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  50. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +41 -63
  52. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +37 -36
  56. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +5 -5
  58. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +3 -0
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +13 -13
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +105 -53
  65. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +92 -98
  67. package/dist/prometheus-framework/src/modules/constructor/components/sections/Viewer.vue.cjs +1 -0
  68. package/dist/prometheus-framework/src/modules/constructor/components/sections/Viewer.vue.js +39 -0
  69. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +13 -12
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +19 -19
  77. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  81. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +7 -7
  82. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +13 -15
  88. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  92. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +4 -4
  96. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +8 -8
  97. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/orders/orders.client.js +34 -33
  101. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  105. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +14 -14
  109. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +10 -10
  113. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +5 -5
  115. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  117. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +13 -7
  119. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +18 -18
  121. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +6 -6
  124. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +11 -11
  126. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +17 -17
  128. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +30 -30
  130. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +9 -9
  131. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  133. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  135. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  137. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  139. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  141. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +16 -16
  143. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/spots/router/spots.js +4 -0
  145. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +22 -22
  148. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +4 -4
  149. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +17 -17
  151. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
  153. package/dist/prometheus-framework.cjs.js +1 -1
  154. package/dist/prometheus-framework.es.js +1 -1
  155. package/dist/style.css +1 -1
  156. package/dist/{web-3rnOWrQO.mjs → web-CT2tGYho.mjs} +1 -1
  157. package/dist/{web-C04IcLk4.js → web-DWjMBTNi.js} +1 -1
  158. package/package.json +3 -2
  159. package/src/builder/builder.js +14 -0
  160. package/src/builder/modes/spa.dev.js +100 -0
  161. package/src/builder/modes/spa.prod.js +59 -0
  162. package/src/builder/modes/ssr.dev.js +184 -0
  163. package/src/builder/modes/ssr.prod.js +76 -0
  164. package/src/builder/ssr/ssr-render-html.js +57 -0
  165. package/src/builder/ssr/ssr-transform-webpack-stats.js +54 -0
  166. package/src/builder/templates/page.html +37 -0
  167. package/src/builder/templates/screen.html +33 -0
  168. package/src/builder/utils/hot-reload.js +5 -0
  169. package/src/builder/webpack/index.js +13 -0
  170. package/src/builder/webpack/webpack.config.base.js +127 -0
  171. package/src/builder/webpack/webpack.config.client.js +78 -0
  172. package/src/builder/webpack/webpack.config.server.js +31 -0
  173. package/src/builder/webpack/webpack.config.spa.js +80 -0
  174. package/src/builder/webpack/webpack.config.ssr.js +57 -0
  175. package/src/components/Breadcrumbs/Breadcrumbs.vue +39 -16
  176. package/src/components/Field/Field.vue +21 -2
  177. package/src/components/Popup/Popup.vue +1 -1
  178. package/src/modules/auth/store/auth.js +1 -2
  179. package/src/modules/backoffice/components/layouts/Backoffice.vue +36 -62
  180. package/src/modules/backoffice/components/pages/Dashboard.vue +2 -125
  181. package/src/modules/backoffice/components/partials/Sidebar.vue +176 -0
  182. package/src/modules/backoffice/router/admin.js +0 -15
  183. package/src/modules/backoffice/router/backoffice.js +5 -1
  184. package/src/modules/community/components/blocks/CardBlogpost.vue +6 -1
  185. package/src/modules/community/components/pages/BlogPost.vue +30 -67
  186. package/src/modules/community/components/sections/Comments.vue +1 -1
  187. package/src/modules/community/router/blogposts.js +4 -0
  188. package/src/modules/constructor/components/elements/Textarea.vue +197 -79
  189. package/src/modules/constructor/components/sections/Constructor.vue +19 -32
  190. package/src/modules/constructor/components/sections/Viewer.vue +53 -0
  191. package/src/modules/globals/components/layouts/Client.vue +21 -7
  192. package/src/modules/globals/components/layouts/Empty.vue +1 -6
  193. package/src/modules/globals/components/pages/404.vue +1 -1
  194. package/src/modules/globals/components/sections/SectionPageTitle.vue +2 -2
  195. package/src/modules/globals/mixins/mixins.js +129 -97
  196. package/src/modules/landing/router/landing.js +3 -0
  197. package/src/modules/marketplace/components/pages/Catalog.vue +1 -1
  198. package/src/modules/middlewares/client/auth.validation.js +14 -15
  199. package/src/modules/orders/orders.client.js +4 -2
  200. package/src/modules/organizations/router/organizations.js +9 -3
  201. package/src/modules/pages/controllers/factories/pages.factory.js +106 -0
  202. package/src/modules/pages/controllers/routes/pages.routes.js +24 -0
  203. package/src/modules/pages/models/page.model.js +18 -11
  204. package/src/modules/pages/pages.client.js +40 -0
  205. package/src/modules/pages/pages.server.js +32 -0
  206. package/src/modules/pages/views/components/blocks/CardPage.vue +123 -0
  207. package/src/modules/pages/views/components/pages/Page.vue +173 -0
  208. package/src/modules/pages/views/components/pages/PageEdit.vue +121 -0
  209. package/src/modules/pages/views/components/pages/Pages.vue +60 -0
  210. package/src/modules/pages/views/components/partials/SidebarPages.vue +112 -0
  211. package/src/modules/pages/views/router/pages.backoffice.router.js +46 -0
  212. package/src/modules/pages/views/router/pages.router.js +25 -0
  213. package/src/modules/pages/views/store/pages.js +78 -0
  214. package/src/modules/pages/views/store/pages.store.js +5 -0
  215. package/src/modules/products/controllers/leftovers.controller.js +1 -1
  216. package/src/modules/spots/router/spots.js +4 -0
  217. package/src/styles/base/all.scss +66 -53
  218. package/dist/index-BshfsiQG.js +0 -220
  219. package/dist/index-C-8xOJnM.mjs +0 -244
  220. package/dist/index-C-DW6ra2.js +0 -260
  221. package/dist/index-CDbtWkBj.js +0 -243
  222. package/dist/index-D4j29ivg.mjs +0 -261
  223. package/dist/index-DKtnWDNC.mjs +0 -221
  224. package/dist/index-DNI4aUP2.js +0 -259
  225. package/dist/index-Tcyehi73.mjs +0 -260
  226. package/dist/main-3Vn8SU2y.mjs +0 -14509
  227. package/dist/main-5IrI2IOV.js +0 -92
  228. package/dist/main-BFKp44Ze.mjs +0 -14509
  229. package/dist/main-BF_nMkug.js +0 -92
  230. package/dist/main-BHr0-Z3t.mjs +0 -14510
  231. package/dist/main-BY2OvGB9.mjs +0 -14509
  232. package/dist/main-Bcj0J6tP.mjs +0 -14509
  233. package/dist/main-Bq5YvSWe.mjs +0 -14509
  234. package/dist/main-BxHxhrZ_.js +0 -92
  235. package/dist/main-By5Tbyui.js +0 -92
  236. package/dist/main-CEoQQpJV.js +0 -92
  237. package/dist/main-CI9l9xMs.js +0 -92
  238. package/dist/main-Ckn0Sslr.js +0 -92
  239. package/dist/main-DBv451oC.js +0 -92
  240. package/dist/main-DPg58GOU.mjs +0 -14509
  241. package/dist/main-DTHFR7H_.mjs +0 -14510
  242. package/dist/main-DxyAONrm.mjs +0 -14438
  243. package/dist/main-gY_284gJ.js +0 -92
  244. package/dist/main-wXdocsbd.js +0 -92
  245. package/dist/middlewares.server.js +0 -19
  246. package/dist/middlewares.server.mjs +0 -20
  247. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +0 -1
  248. package/dist/prometheus-framework/src/components/Address/Address.vue.js +0 -89
  249. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +0 -1
  250. package/dist/prometheus-framework/src/components/Button/Button.vue.js +0 -95
  251. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +0 -1
  252. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +0 -26
  253. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +0 -1
  254. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +0 -57
  255. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +0 -1
  256. package/dist/prometheus-framework/src/components/Field/Field.vue.js +0 -83
  257. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +0 -1
  258. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +0 -127
  259. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +0 -1
  260. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +0 -13
  261. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +0 -1
  262. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +0 -77
  263. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +0 -1
  264. package/dist/prometheus-framework/src/components/Select/Select.vue.js +0 -103
  265. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +0 -1
  266. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +0 -36
  267. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +0 -1
  268. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +0 -44
  269. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +0 -1
  270. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +0 -125
  271. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +0 -2
  272. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +0 -47
  273. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +0 -2
  274. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +0 -46
  275. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +0 -4
  276. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +0 -65
  277. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +0 -5
  278. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -67
  279. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +0 -1
  280. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +0 -30
  281. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +0 -1
  282. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +0 -42
  283. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +0 -1
  284. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +0 -26
  285. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +0 -1
  286. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +0 -42
  287. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +0 -1
  288. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +0 -26
  289. package/dist/queryProcessor-g8208K6g.mjs +0 -178
  290. package/dist/queryProcessor-haY_gPGg.js +0 -177
  291. package/dist/web-5eyiz9L7.mjs +0 -54
  292. package/dist/web-BPUCAST-.mjs +0 -54
  293. package/dist/web-Be96Xqd4.mjs +0 -54
  294. package/dist/web-BmdKi_fZ.js +0 -1
  295. package/dist/web-Bqpk8Mpk.js +0 -1
  296. package/dist/web-BwHcRwYc.mjs +0 -54
  297. package/dist/web-BzUFKqzw.js +0 -1
  298. package/dist/web-CcFPvlkl.js +0 -1
  299. package/dist/web-CgjTW1bL.js +0 -1
  300. package/dist/web-Cw0ijzjY.js +0 -1
  301. package/dist/web-CwTWV4ca.mjs +0 -54
  302. package/dist/web-DHeZE1jJ.js +0 -1
  303. package/dist/web-DZUec7pP.js +0 -1
  304. package/dist/web-Dh669DqQ.mjs +0 -54
  305. package/dist/web-DkWpHYrh.mjs +0 -54
  306. package/dist/web-Dt2RCU54.js +0 -1
  307. package/dist/web-krQQeSb6.mjs +0 -54
  308. package/dist/web-nqFW_Sd1.mjs +0 -54
  309. package/src/modules/community/controllers/comments.controller.aggr.js +0 -280
  310. package/src/modules/community/controllers/comments.controller.populate.js +0 -180
  311. package/src/modules/constructor/components/elements/H2.vue +0 -102
  312. package/src/modules/pages/components/pages/Page.vue +0 -174
  313. package/src/modules/pages/components/pages/PageEdit.vue +0 -159
  314. package/src/modules/pages/components/pages/Pages.vue +0 -108
  315. package/src/modules/pages/controllers/pages.controller.js +0 -71
  316. package/src/modules/pages/router/pages.router.js +0 -15
  317. package/src/modules/pages/routes/pages.routes.js +0 -30
  318. package/src/modules/pages/store/pages.js +0 -94
@@ -1,67 +0,0 @@
1
- import { ref as s, onUpdated as m, nextTick as i, onMounted as x, openBlock as h, createElementBlock as B, withDirectives as g, createElementVNode as v, normalizeClass as y, vModelText as T } from "vue";
2
- /* empty css */
3
- const b = ["placeholder"], C = {
4
- __name: "Textarea",
5
- props: ["prop", "value", "content", "placeholder", "index", "setFocus"],
6
- emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
7
- setup(o, { emit: u }) {
8
- const e = o, a = u;
9
- s(e);
10
- const t = s(null);
11
- s(0);
12
- function p(l) {
13
- let n = l.target.value.split(/\n+/);
14
- if (n.length > 1) {
15
- e.prop[e.content] = n[0], i(() => {
16
- c();
17
- });
18
- let r = n.slice(1).map((k) => ({ __name: "Textarea", content: k }));
19
- a("addBlock", "Textarea", "", e.index, { blocks: r, ref: t });
20
- } else
21
- l.target.value.trim() === "" && l.target.value.includes(`
22
-
23
- `) && (console.log("We are adding new block:" + e.index + newBlocks + t), a("addBlock", "Textarea", "", e.index, { blocks: newBlocks, ref: t })), c();
24
- }
25
- function f(l) {
26
- (l.keyCode === 8 || l.keyCode === 46) && e.prop[e.content].trim() === "" && a("deleteBlock", e.prop);
27
- }
28
- function d() {
29
- i(() => {
30
- t.value.focus(), a("updateBlock", e.prop, { setFocus: !1 });
31
- });
32
- }
33
- function c() {
34
- t.value.style.height = "1rem", t.value.style.height = t.value.scrollHeight + "px";
35
- }
36
- return m(() => {
37
- e.setFocus && i(() => {
38
- d();
39
- }), c();
40
- }), x(() => {
41
- e.setFocus && i(() => {
42
- d();
43
- }), c();
44
- }), (l, n) => (h(), B("div", null, [
45
- g(v("textarea", {
46
- "onUpdate:modelValue": n[0] || (n[0] = (r) => o.prop[o.content] = r),
47
- placeholder: o.placeholder ? o.placeholder : "",
48
- onInput: p,
49
- onFocus: n[1] || (n[1] = (r) => a("focus", t.value)),
50
- onKeyup: f,
51
- ref_key: "textarea",
52
- ref: t,
53
- tabindex: "-1",
54
- class: y(["text-area mn-b-thin", {
55
- "t-main t-semi": o.prop.type === "Link"
56
- }])
57
- }, `
58
-
59
- `, 42, b), [
60
- [T, o.prop[o.content]]
61
- ])
62
- ]));
63
- }
64
- };
65
- export {
66
- C as default
67
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../localization/Wallet.json.cjs"),o=require("vue-i18n"),r={class:"mn-b-small t-center t-bold"},a={class:"radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center"},i={class:"t-semi"},u=e.createElementVNode("h3",{class:"t-semi"}," 500 WDT ",-1),d={__name:"CardBalanceReplenished",emits:["close"],setup(m,{emit:s}){const l=s,{t}=o.useI18n({useScope:"global",...c.default});function n(){l("close")}return(b,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",r,e.toDisplayString(e.unref(t)("balanceReplenished")),1),e.createElementVNode("div",a,[e.createElementVNode("h3",i,e.toDisplayString(e.unref(t)("youReceived")),1),u]),e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:n},e.toDisplayString(e.unref(t)("backToWallet")),1)],64))}};exports.default=d;
@@ -1,30 +0,0 @@
1
- import { openBlock as a, createElementBlock as i, Fragment as r, createElementVNode as e, toDisplayString as s, unref as l } from "vue";
2
- import m from "../../localization/Wallet.json.js";
3
- import { useI18n as d } from "vue-i18n";
4
- const p = { class: "mn-b-small t-center t-bold" }, u = { class: "radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center" }, b = { class: "t-semi" }, _ = /* @__PURE__ */ e("h3", { class: "t-semi" }, " 500 WDT ", -1), B = {
5
- __name: "CardBalanceReplenished",
6
- emits: ["close"],
7
- setup(f, { emit: c }) {
8
- const o = c, { t } = d({
9
- useScope: "global",
10
- ...m
11
- });
12
- function n() {
13
- o("close");
14
- }
15
- return (h, x) => (a(), i(r, null, [
16
- e("h2", p, s(l(t)("balanceReplenished")), 1),
17
- e("div", u, [
18
- e("h3", b, s(l(t)("youReceived")), 1),
19
- _
20
- ]),
21
- e("button", {
22
- class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
23
- onClick: n
24
- }, s(l(t)("backToWallet")), 1)
25
- ], 64));
26
- }
27
- };
28
- export {
29
- B as default
30
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../localization/Wallet.json.cjs"),o=require("../../../../components/Field/Field.vue2.cjs"),u=require("vue-i18n"),m=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Deposit with card",-1),d={class:"bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between"},b=e.createElementVNode("div",{class:"uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi"}," USD ",-1),p=e.createElementVNode("h3",{class:"t-semi"},"You will receieve: 0 WDT",-1),f={__name:"CardDeposite",emits:["back-selection","switch-menu"],setup(_,{emit:c}){const s=c,{t}=u.useI18n({useScope:"global",...a.default});function i(){s("back-selection")}function r(n=0){s("switch-menu",n)}return(n,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m,e.createElementVNode("div",d,[e.createVNode(o.default,{placeholder:e.unref(t)("enterAmount"),class:"pd-medium radius-small"},null,8,["placeholder"]),b]),p,e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:l[0]||(l[0]=h=>r(3))},e.toDisplayString(e.unref(t)("pay")),1),e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:i},e.toDisplayString(e.unref(t)("backToSelection")),1)],64))}};exports.default=f;
@@ -1,42 +0,0 @@
1
- import { openBlock as m, createElementBlock as u, Fragment as p, createElementVNode as e, createVNode as d, unref as s, toDisplayString as c } from "vue";
2
- import b from "../../localization/Wallet.json.js";
3
- import f from "../../../../components/Field/Field.vue2.js";
4
- import { useI18n as _ } from "vue-i18n";
5
- const h = /* @__PURE__ */ e("h2", { class: "mn-b-small t-center t-bold" }, "Deposit with card", -1), k = { class: "bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between" }, x = /* @__PURE__ */ e("div", { class: "uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi" }, " USD ", -1), g = /* @__PURE__ */ e("h3", { class: "t-semi" }, "You will receieve: 0 WDT", -1), j = {
6
- __name: "CardDeposite",
7
- emits: ["back-selection", "switch-menu"],
8
- setup(w, { emit: o }) {
9
- const n = o, { t } = _({
10
- useScope: "global",
11
- ...b
12
- });
13
- function r() {
14
- n("back-selection");
15
- }
16
- function a(i = 0) {
17
- n("switch-menu", i);
18
- }
19
- return (i, l) => (m(), u(p, null, [
20
- h,
21
- e("div", k, [
22
- d(f, {
23
- placeholder: s(t)("enterAmount"),
24
- class: "pd-medium radius-small"
25
- }, null, 8, ["placeholder"]),
26
- x
27
- ]),
28
- g,
29
- e("button", {
30
- class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
31
- onClick: l[0] || (l[0] = (y) => a(3))
32
- }, c(s(t)("pay")), 1),
33
- e("button", {
34
- class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
35
- onClick: r
36
- }, c(s(t)("backToSelection")), 1)
37
- ], 64));
38
- }
39
- };
40
- export {
41
- j as default
42
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Deposit with cash",-1),o=e.createElementVNode("p",{class:"t-transp t-center"}," You need to go to casse to topup balance ",-1),l=e.createElementVNode("div",{class:"w-100 bg-grey radius-medium mn-t-medium mn-b-medium",style:{height:"152px"}},null,-1),a={__name:"CashDeposite",emits:["back-selection"],setup(i,{emit:t}){const s=t;function n(){s("back-selection")}return(r,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c,o,l,e.createElementVNode("button",{class:"w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:n},"Back to selection ")],64))}};exports.default=a;
@@ -1,26 +0,0 @@
1
- import { openBlock as c, createElementBlock as o, Fragment as a, createElementVNode as t } from "vue";
2
- const i = /* @__PURE__ */ t("h2", { class: "mn-b-small t-center t-bold" }, "Deposit with cash", -1), l = /* @__PURE__ */ t("p", { class: "t-transp t-center" }, " You need to go to casse to topup balance ", -1), m = /* @__PURE__ */ t("div", {
3
- class: "w-100 bg-grey radius-medium mn-t-medium mn-b-medium",
4
- style: { height: "152px" }
5
- }, null, -1), b = {
6
- __name: "CashDeposite",
7
- emits: ["back-selection"],
8
- setup(r, { emit: e }) {
9
- const s = e;
10
- function n() {
11
- s("back-selection");
12
- }
13
- return (d, p) => (c(), o(a, null, [
14
- i,
15
- l,
16
- m,
17
- t("button", {
18
- class: "w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
19
- onClick: n
20
- }, "Back to selection ")
21
- ], 64));
22
- }
23
- };
24
- export {
25
- b as default
26
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../localization/Wallet.json.cjs"),a=require("../../../../components/Field/Field.vue2.cjs"),u=require("vue-i18n"),m={class:"mn-b-small t-center t-bold"},d={class:"bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between"},p=e.createElementVNode("div",{class:"uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi"}," POLY USDT ",-1),b=e.createElementVNode("h3",{class:"t-semi"},"You will receieve: 0 WDT",-1),f={__name:"CryptoDeposite",emits:["back-selection","switch-menu"],setup(_,{emit:i}){const n=i,{t}=u.useI18n({useScope:"global",...o.default});function r(){n("back-selection")}function c(s=0){n("switch-menu",s)}return(s,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",m,e.toDisplayString(e.unref(t)("depositeWithCrypto")),1),e.createElementVNode("div",d,[e.createVNode(a.default,{placeholder:e.unref(t)("enterAmount"),class:"pd-medium radius-small"},null,8,["placeholder"]),p]),b,e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:l[0]||(l[0]=h=>c(3))},e.toDisplayString(e.unref(t)("pay")),1),e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:r},e.toDisplayString(e.unref(t)("backToSelection")),1)],64))}};exports.default=f;
@@ -1,42 +0,0 @@
1
- import { openBlock as a, createElementBlock as p, Fragment as u, createElementVNode as e, toDisplayString as n, unref as s, createVNode as d } from "vue";
2
- import b from "../../localization/Wallet.json.js";
3
- import f from "../../../../components/Field/Field.vue2.js";
4
- import { useI18n as _ } from "vue-i18n";
5
- const h = { class: "mn-b-small t-center t-bold" }, k = { class: "bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between" }, x = /* @__PURE__ */ e("div", { class: "uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi" }, " POLY USDT ", -1), g = /* @__PURE__ */ e("h3", { class: "t-semi" }, "You will receieve: 0 WDT", -1), T = {
6
- __name: "CryptoDeposite",
7
- emits: ["back-selection", "switch-menu"],
8
- setup(w, { emit: c }) {
9
- const i = c, { t } = _({
10
- useScope: "global",
11
- ...b
12
- });
13
- function r() {
14
- i("back-selection");
15
- }
16
- function m(l = 0) {
17
- i("switch-menu", l);
18
- }
19
- return (l, o) => (a(), p(u, null, [
20
- e("h2", h, n(s(t)("depositeWithCrypto")), 1),
21
- e("div", k, [
22
- d(f, {
23
- placeholder: s(t)("enterAmount"),
24
- class: "pd-medium radius-small"
25
- }, null, 8, ["placeholder"]),
26
- x
27
- ]),
28
- g,
29
- e("button", {
30
- class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
31
- onClick: o[0] || (o[0] = (y) => m(3))
32
- }, n(s(t)("pay")), 1),
33
- e("button", {
34
- class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
35
- onClick: r
36
- }, n(s(t)("backToSelection")), 1)
37
- ], 64));
38
- }
39
- };
40
- export {
41
- T as default
42
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-default":{pay:"pay",youReceived:"you received",enterAmount:"enter amount to top up",backToWallet:"back to wallet",backToSelection:"back to selection",balanceReplenished:"balance replenished",depositeWithCrypto:"deposite with crypto"},"ru-default":{pay:"купить",youReceived:"вы пополнили на сумму",enterAmount:"введите сумму для пополнения",backToWallet:"назад к кошельку",backToSelection:"назад к списку",balanceReplenished:"баланс пополнен",depositeWithCrypto:"пополнение криптовалютой"}},t={messages:e};exports.default=t;exports.messages=e;
@@ -1,26 +0,0 @@
1
- const e = {
2
- "en-default": {
3
- pay: "pay",
4
- youReceived: "you received",
5
- enterAmount: "enter amount to top up",
6
- backToWallet: "back to wallet",
7
- backToSelection: "back to selection",
8
- balanceReplenished: "balance replenished",
9
- depositeWithCrypto: "deposite with crypto"
10
- },
11
- "ru-default": {
12
- pay: "купить",
13
- youReceived: "вы пополнили на сумму",
14
- enterAmount: "введите сумму для пополнения",
15
- backToWallet: "назад к кошельку",
16
- backToSelection: "назад к списку",
17
- balanceReplenished: "баланс пополнен",
18
- depositeWithCrypto: "пополнение криптовалютой"
19
- }
20
- }, t = {
21
- messages: e
22
- };
23
- export {
24
- t as default,
25
- e as messages
26
- };
@@ -1,178 +0,0 @@
1
- import require$$0 from "mongoose";
2
- const ObjectId = require$$0.Types.ObjectId;
3
- function getBasicOptions(query) {
4
- const { _id, url, status, type, owner, creator } = query;
5
- const conditions = [];
6
- if (_id) {
7
- conditions.push({ _id: new ObjectId(_id) });
8
- }
9
- if (url) {
10
- conditions.push({ url });
11
- }
12
- if (status) {
13
- conditions.push({ status });
14
- }
15
- if (type) {
16
- conditions.push({ type });
17
- }
18
- if (owner) {
19
- conditions.push({ "owner.target": new ObjectId(owner) });
20
- }
21
- if (creator) {
22
- conditions.push({ "creator.target": new ObjectId(creator) });
23
- }
24
- if (conditions.length > 0) {
25
- return [{ $match: { $and: conditions } }];
26
- } else {
27
- return [];
28
- }
29
- }
30
- function getFilterDate(start, end) {
31
- let filter = {};
32
- if (start !== null) {
33
- filter.$gte = new Date(start);
34
- }
35
- if (end !== null) {
36
- filter.$lte = new Date(end);
37
- }
38
- if (start === "null" && end === "null") {
39
- return [];
40
- } else {
41
- return [{ $match: { createdAt: filter } }];
42
- }
43
- }
44
- function getTagsOptions(tags) {
45
- if (tags) {
46
- const tagsArray = Array.isArray(tags) ? tags : [tags];
47
- return [{ $match: { tags: { $in: tagsArray } } }];
48
- } else {
49
- return [];
50
- }
51
- }
52
- function getSortingOptions(param = "createdAt", order = "desc") {
53
- let sort = {
54
- [param]: order === "desc" ? -1 : 1,
55
- "_id": 1
56
- };
57
- return [{ $sort: sort }];
58
- }
59
- function getPaginationOptions(skip, limit) {
60
- let pagination = {
61
- skip: parseInt(skip) || 0,
62
- limit: parseInt(limit) || 20
63
- };
64
- return [{ $skip: pagination.skip }, { $limit: pagination.limit }];
65
- }
66
- function getCreatorUserLookupStage() {
67
- return {
68
- $lookup: {
69
- from: "users",
70
- localField: "creator.target",
71
- foreignField: "_id",
72
- as: "creatorUser"
73
- }
74
- };
75
- }
76
- function getCreatorOrganizationLookupStage() {
77
- return {
78
- $lookup: {
79
- from: "organizations",
80
- localField: "creator.target",
81
- foreignField: "_id",
82
- as: "creatorOrganization"
83
- }
84
- };
85
- }
86
- function getCreatorCustomerLookupStage() {
87
- return {
88
- $lookup: {
89
- from: "customers",
90
- localField: "creator.target",
91
- foreignField: "_id",
92
- as: "creatorCustomer"
93
- }
94
- };
95
- }
96
- function getOwnerUserLookupStage() {
97
- return {
98
- $lookup: {
99
- from: "users",
100
- localField: "owner.target",
101
- foreignField: "_id",
102
- as: "ownerUser"
103
- }
104
- };
105
- }
106
- function getOwnerOrganizationLookupStage() {
107
- return {
108
- $lookup: {
109
- from: "organizations",
110
- localField: "owner.target",
111
- foreignField: "_id",
112
- as: "ownerOrganization"
113
- }
114
- };
115
- }
116
- function getAddFieldsCreatorOwnerStage() {
117
- return {
118
- $addFields: {
119
- "creator.target": {
120
- $switch: {
121
- branches: [
122
- {
123
- case: { $eq: [{ $toLower: "$creator.type" }, "user"] },
124
- then: { $arrayElemAt: ["$creatorUser", 0] }
125
- },
126
- {
127
- case: { $eq: [{ $toLower: "$creator.type" }, "organization"] },
128
- then: { $arrayElemAt: ["$creatorOrganization", 0] }
129
- },
130
- {
131
- case: { $eq: [{ $toLower: "$creator.type" }, "customer"] },
132
- then: { $arrayElemAt: ["$creatorCustomer", 0] }
133
- }
134
- ],
135
- default: "Unknown type"
136
- // или любое другое значение по умолчанию, которое вы хотите использовать
137
- }
138
- },
139
- "owner.target": {
140
- $cond: [
141
- { $eq: ["$owner.type", "user"] },
142
- { $arrayElemAt: ["$ownerUser", 0] },
143
- { $arrayElemAt: ["$ownerOrganization", 0] }
144
- ]
145
- }
146
- }
147
- };
148
- }
149
- function removeTempPropeties() {
150
- return {
151
- $project: {
152
- creatorOrganization: 0,
153
- creatorUser: 0,
154
- ownerOrganization: 0,
155
- ownerUser: 0,
156
- creatorCustomer: 0,
157
- ownerCustomer: 0
158
- }
159
- };
160
- }
161
- var queryProcessor = {
162
- getBasicOptions,
163
- getSortingOptions,
164
- getPaginationOptions,
165
- getTagsOptions,
166
- getFilterDate,
167
- // Creator and Owner
168
- getCreatorUserLookupStage,
169
- getCreatorOrganizationLookupStage,
170
- getCreatorCustomerLookupStage,
171
- getOwnerUserLookupStage,
172
- getOwnerOrganizationLookupStage,
173
- getAddFieldsCreatorOwnerStage,
174
- removeTempPropeties
175
- };
176
- export {
177
- queryProcessor as q
178
- };
@@ -1,177 +0,0 @@
1
- "use strict";
2
- const require$$0 = require("mongoose");
3
- const ObjectId = require$$0.Types.ObjectId;
4
- function getBasicOptions(query) {
5
- const { _id, url, status, type, owner, creator } = query;
6
- const conditions = [];
7
- if (_id) {
8
- conditions.push({ _id: new ObjectId(_id) });
9
- }
10
- if (url) {
11
- conditions.push({ url });
12
- }
13
- if (status) {
14
- conditions.push({ status });
15
- }
16
- if (type) {
17
- conditions.push({ type });
18
- }
19
- if (owner) {
20
- conditions.push({ "owner.target": new ObjectId(owner) });
21
- }
22
- if (creator) {
23
- conditions.push({ "creator.target": new ObjectId(creator) });
24
- }
25
- if (conditions.length > 0) {
26
- return [{ $match: { $and: conditions } }];
27
- } else {
28
- return [];
29
- }
30
- }
31
- function getFilterDate(start, end) {
32
- let filter = {};
33
- if (start !== null) {
34
- filter.$gte = new Date(start);
35
- }
36
- if (end !== null) {
37
- filter.$lte = new Date(end);
38
- }
39
- if (start === "null" && end === "null") {
40
- return [];
41
- } else {
42
- return [{ $match: { createdAt: filter } }];
43
- }
44
- }
45
- function getTagsOptions(tags) {
46
- if (tags) {
47
- const tagsArray = Array.isArray(tags) ? tags : [tags];
48
- return [{ $match: { tags: { $in: tagsArray } } }];
49
- } else {
50
- return [];
51
- }
52
- }
53
- function getSortingOptions(param = "createdAt", order = "desc") {
54
- let sort = {
55
- [param]: order === "desc" ? -1 : 1,
56
- "_id": 1
57
- };
58
- return [{ $sort: sort }];
59
- }
60
- function getPaginationOptions(skip, limit) {
61
- let pagination = {
62
- skip: parseInt(skip) || 0,
63
- limit: parseInt(limit) || 20
64
- };
65
- return [{ $skip: pagination.skip }, { $limit: pagination.limit }];
66
- }
67
- function getCreatorUserLookupStage() {
68
- return {
69
- $lookup: {
70
- from: "users",
71
- localField: "creator.target",
72
- foreignField: "_id",
73
- as: "creatorUser"
74
- }
75
- };
76
- }
77
- function getCreatorOrganizationLookupStage() {
78
- return {
79
- $lookup: {
80
- from: "organizations",
81
- localField: "creator.target",
82
- foreignField: "_id",
83
- as: "creatorOrganization"
84
- }
85
- };
86
- }
87
- function getCreatorCustomerLookupStage() {
88
- return {
89
- $lookup: {
90
- from: "customers",
91
- localField: "creator.target",
92
- foreignField: "_id",
93
- as: "creatorCustomer"
94
- }
95
- };
96
- }
97
- function getOwnerUserLookupStage() {
98
- return {
99
- $lookup: {
100
- from: "users",
101
- localField: "owner.target",
102
- foreignField: "_id",
103
- as: "ownerUser"
104
- }
105
- };
106
- }
107
- function getOwnerOrganizationLookupStage() {
108
- return {
109
- $lookup: {
110
- from: "organizations",
111
- localField: "owner.target",
112
- foreignField: "_id",
113
- as: "ownerOrganization"
114
- }
115
- };
116
- }
117
- function getAddFieldsCreatorOwnerStage() {
118
- return {
119
- $addFields: {
120
- "creator.target": {
121
- $switch: {
122
- branches: [
123
- {
124
- case: { $eq: [{ $toLower: "$creator.type" }, "user"] },
125
- then: { $arrayElemAt: ["$creatorUser", 0] }
126
- },
127
- {
128
- case: { $eq: [{ $toLower: "$creator.type" }, "organization"] },
129
- then: { $arrayElemAt: ["$creatorOrganization", 0] }
130
- },
131
- {
132
- case: { $eq: [{ $toLower: "$creator.type" }, "customer"] },
133
- then: { $arrayElemAt: ["$creatorCustomer", 0] }
134
- }
135
- ],
136
- default: "Unknown type"
137
- // или любое другое значение по умолчанию, которое вы хотите использовать
138
- }
139
- },
140
- "owner.target": {
141
- $cond: [
142
- { $eq: ["$owner.type", "user"] },
143
- { $arrayElemAt: ["$ownerUser", 0] },
144
- { $arrayElemAt: ["$ownerOrganization", 0] }
145
- ]
146
- }
147
- }
148
- };
149
- }
150
- function removeTempPropeties() {
151
- return {
152
- $project: {
153
- creatorOrganization: 0,
154
- creatorUser: 0,
155
- ownerOrganization: 0,
156
- ownerUser: 0,
157
- creatorCustomer: 0,
158
- ownerCustomer: 0
159
- }
160
- };
161
- }
162
- var queryProcessor = {
163
- getBasicOptions,
164
- getSortingOptions,
165
- getPaginationOptions,
166
- getTagsOptions,
167
- getFilterDate,
168
- // Creator and Owner
169
- getCreatorUserLookupStage,
170
- getCreatorOrganizationLookupStage,
171
- getCreatorCustomerLookupStage,
172
- getOwnerUserLookupStage,
173
- getOwnerOrganizationLookupStage,
174
- getAddFieldsCreatorOwnerStage,
175
- removeTempPropeties
176
- };
177
- exports.queryProcessor = queryProcessor;
@@ -1,54 +0,0 @@
1
- import { W as p } from "./main-BY2OvGB9.mjs";
2
- class f extends p {
3
- constructor() {
4
- super(...arguments), this.group = "CapacitorStorage";
5
- }
6
- async configure({ group: e }) {
7
- typeof e == "string" && (this.group = e);
8
- }
9
- async get(e) {
10
- return { value: this.impl.getItem(this.applyPrefix(e.key)) };
11
- }
12
- async set(e) {
13
- this.impl.setItem(this.applyPrefix(e.key), e.value);
14
- }
15
- async remove(e) {
16
- this.impl.removeItem(this.applyPrefix(e.key));
17
- }
18
- async keys() {
19
- return { keys: this.rawKeys().map((t) => t.substring(this.prefix.length)) };
20
- }
21
- async clear() {
22
- for (const e of this.rawKeys())
23
- this.impl.removeItem(e);
24
- }
25
- async migrate() {
26
- var e;
27
- const t = [], s = [], n = "_cap_", o = Object.keys(this.impl).filter((i) => i.indexOf(n) === 0);
28
- for (const i of o) {
29
- const r = i.substring(n.length), a = (e = this.impl.getItem(i)) !== null && e !== void 0 ? e : "", { value: l } = await this.get({ key: r });
30
- typeof l == "string" ? s.push(r) : (await this.set({ key: r, value: a }), t.push(r));
31
- }
32
- return { migrated: t, existing: s };
33
- }
34
- async removeOld() {
35
- const e = "_cap_", t = Object.keys(this.impl).filter((s) => s.indexOf(e) === 0);
36
- for (const s of t)
37
- this.impl.removeItem(s);
38
- }
39
- get impl() {
40
- return window.localStorage;
41
- }
42
- get prefix() {
43
- return this.group === "NativeStorage" ? "" : `${this.group}.`;
44
- }
45
- rawKeys() {
46
- return Object.keys(this.impl).filter((e) => e.indexOf(this.prefix) === 0);
47
- }
48
- applyPrefix(e) {
49
- return this.prefix + e;
50
- }
51
- }
52
- export {
53
- f as PreferencesWeb
54
- };