@ozdao/prometheus-framework 0.2.132 → 0.2.134

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. package/dist/_virtual/alignment-pattern.cjs +1 -0
  2. package/dist/_virtual/alignment-pattern.js +4 -0
  3. package/dist/_virtual/browser.cjs +1 -0
  4. package/dist/_virtual/browser.js +4 -0
  5. package/dist/_virtual/canvas.cjs +1 -0
  6. package/dist/_virtual/canvas.js +4 -0
  7. package/dist/_virtual/dijkstra.cjs +1 -0
  8. package/dist/_virtual/dijkstra.js +4 -0
  9. package/dist/_virtual/error-correction-code.cjs +1 -0
  10. package/dist/_virtual/error-correction-code.js +4 -0
  11. package/dist/_virtual/error-correction-level.cjs +1 -0
  12. package/dist/_virtual/error-correction-level.js +4 -0
  13. package/dist/_virtual/finder-pattern.cjs +1 -0
  14. package/dist/_virtual/finder-pattern.js +4 -0
  15. package/dist/_virtual/format-info.cjs +1 -0
  16. package/dist/_virtual/format-info.js +4 -0
  17. package/dist/_virtual/galois-field.cjs +1 -0
  18. package/dist/_virtual/galois-field.js +4 -0
  19. package/dist/_virtual/mask-pattern.cjs +1 -0
  20. package/dist/_virtual/mask-pattern.js +4 -0
  21. package/dist/_virtual/mode.cjs +1 -0
  22. package/dist/_virtual/mode.js +4 -0
  23. package/dist/_virtual/polynomial.cjs +1 -0
  24. package/dist/_virtual/polynomial.js +4 -0
  25. package/dist/_virtual/qrcode.cjs +1 -0
  26. package/dist/_virtual/qrcode.js +4 -0
  27. package/dist/_virtual/regex.cjs +1 -0
  28. package/dist/_virtual/regex.js +4 -0
  29. package/dist/_virtual/segments.cjs +1 -0
  30. package/dist/_virtual/segments.js +4 -0
  31. package/dist/_virtual/svg-tag.cjs +1 -0
  32. package/dist/_virtual/svg-tag.js +4 -0
  33. package/dist/_virtual/utils.cjs +1 -0
  34. package/dist/_virtual/utils.js +4 -0
  35. package/dist/_virtual/utils2.cjs +1 -0
  36. package/dist/_virtual/utils2.js +4 -0
  37. package/dist/_virtual/version-check.cjs +1 -0
  38. package/dist/_virtual/version-check.js +4 -0
  39. package/dist/_virtual/version.cjs +1 -0
  40. package/dist/_virtual/version.js +4 -0
  41. package/dist/auth.server.js +1 -1
  42. package/dist/auth.server.mjs +1 -1
  43. package/dist/community.server.js +1 -1
  44. package/dist/community.server.mjs +1 -1
  45. package/dist/events.server.js +1 -1
  46. package/dist/events.server.mjs +1 -1
  47. package/dist/files.server.js +1 -1
  48. package/dist/files.server.mjs +1 -1
  49. package/dist/gallery.server.js +1 -1
  50. package/dist/gallery.server.mjs +1 -1
  51. package/dist/index-C-8xOJnM.mjs +244 -0
  52. package/dist/index-CDbtWkBj.js +243 -0
  53. package/dist/main-5IrI2IOV.js +92 -0
  54. package/dist/main-BY2OvGB9.mjs +14509 -0
  55. package/dist/main.css +1 -1
  56. package/dist/middlewares.server.js +1 -1
  57. package/dist/middlewares.server.mjs +1 -1
  58. package/dist/node_modules/dijkstrajs/dijkstra.cjs +1 -0
  59. package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
  60. package/dist/node_modules/encode-utf8/index.cjs +1 -0
  61. package/dist/node_modules/encode-utf8/index.js +30 -0
  62. package/dist/node_modules/qrcode/lib/browser.cjs +1 -0
  63. package/dist/node_modules/qrcode/lib/browser.js +45 -0
  64. package/dist/node_modules/qrcode/lib/can-promise.cjs +1 -0
  65. package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
  66. package/dist/node_modules/qrcode/lib/core/alignment-pattern.cjs +1 -0
  67. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
  68. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.cjs +1 -0
  69. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  70. package/dist/node_modules/qrcode/lib/core/bit-buffer.cjs +1 -0
  71. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
  72. package/dist/node_modules/qrcode/lib/core/bit-matrix.cjs +1 -0
  73. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
  74. package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -0
  75. package/dist/node_modules/qrcode/lib/core/byte-data.js +24 -0
  76. package/dist/node_modules/qrcode/lib/core/error-correction-code.cjs +1 -0
  77. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
  78. package/dist/node_modules/qrcode/lib/core/error-correction-level.cjs +1 -0
  79. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
  80. package/dist/node_modules/qrcode/lib/core/finder-pattern.cjs +1 -0
  81. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
  82. package/dist/node_modules/qrcode/lib/core/format-info.cjs +1 -0
  83. package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
  84. package/dist/node_modules/qrcode/lib/core/galois-field.cjs +1 -0
  85. package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
  86. package/dist/node_modules/qrcode/lib/core/kanji-data.cjs +2 -0
  87. package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
  88. package/dist/node_modules/qrcode/lib/core/mask-pattern.cjs +1 -0
  89. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
  90. package/dist/node_modules/qrcode/lib/core/mode.cjs +1 -0
  91. package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
  92. package/dist/node_modules/qrcode/lib/core/numeric-data.cjs +1 -0
  93. package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  94. package/dist/node_modules/qrcode/lib/core/polynomial.cjs +1 -0
  95. package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
  96. package/dist/node_modules/qrcode/lib/core/qrcode.cjs +4 -0
  97. package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
  98. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.cjs +1 -0
  99. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
  100. package/dist/node_modules/qrcode/lib/core/regex.cjs +2 -0
  101. package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
  102. package/dist/node_modules/qrcode/lib/core/segments.cjs +2 -0
  103. package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
  104. package/dist/node_modules/qrcode/lib/core/utils.cjs +1 -0
  105. package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
  106. package/dist/node_modules/qrcode/lib/core/version-check.cjs +1 -0
  107. package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
  108. package/dist/node_modules/qrcode/lib/core/version.cjs +1 -0
  109. package/dist/node_modules/qrcode/lib/core/version.js +74 -0
  110. package/dist/node_modules/qrcode/lib/renderer/canvas.cjs +1 -0
  111. package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
  112. package/dist/node_modules/qrcode/lib/renderer/svg-tag.cjs +2 -0
  113. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
  114. package/dist/node_modules/qrcode/lib/renderer/utils.cjs +1 -0
  115. package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
  116. package/dist/orders.server.js +1 -1
  117. package/dist/orders.server.mjs +1 -1
  118. package/dist/organizations.server.js +1 -1
  119. package/dist/organizations.server.mjs +1 -1
  120. package/dist/products.server.js +1 -1
  121. package/dist/products.server.mjs +1 -1
  122. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
  124. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
  126. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/Field/Field.vue.js +19 -20
  128. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +4 -4
  129. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
  130. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
  131. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +14 -14
  132. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +15 -15
  133. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +11 -11
  134. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +34 -34
  135. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +27 -27
  136. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +22 -22
  143. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +13 -13
  144. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +9 -9
  145. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +19 -19
  146. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +7 -7
  147. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +8 -8
  149. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  151. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +3 -3
  152. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +8 -8
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
  160. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +9 -9
  161. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +13 -13
  162. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +17 -17
  163. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +6 -6
  164. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +10 -10
  165. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +17 -17
  166. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +30 -30
  167. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +9 -9
  168. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  169. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  171. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +7 -7
  172. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +1 -1
  174. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  177. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +34 -0
  178. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -0
  179. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +42 -0
  180. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs +1 -0
  181. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +26 -0
  182. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -0
  183. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +76 -0
  184. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.cjs +1 -0
  185. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +105 -0
  186. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -0
  187. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +106 -0
  188. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +137 -122
  190. package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.cjs +1 -0
  191. package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.js +41 -0
  192. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +98 -22
  194. package/dist/prometheus-framework.cjs.js +1 -1
  195. package/dist/prometheus-framework.es.js +1 -1
  196. package/dist/reports.server.js +1 -1
  197. package/dist/reports.server.mjs +1 -1
  198. package/dist/style.css +1 -1
  199. package/dist/wallet.server.js +103 -13
  200. package/dist/wallet.server.mjs +103 -13
  201. package/dist/web-5eyiz9L7.mjs +54 -0
  202. package/dist/web-C04IcLk4.js +1 -0
  203. package/package.json +1 -1
  204. package/src/components/Field/Field.vue +1 -1
  205. package/src/modules/community/components/pages/Blog.vue +1 -1
  206. package/src/modules/globals/components/partials/Header.vue +2 -2
  207. package/src/modules/globals/localization/vue-i18n.js +5 -5
  208. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -3
  209. package/src/modules/landing/components/sections/SectionEarn.vue +1 -6
  210. package/src/modules/middlewares/server/authSecret.js +22 -0
  211. package/src/modules/middlewares/server/index.js +7 -5
  212. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -2
  213. package/src/modules/wallet/controllers/routes/rewards.routes.js +27 -3
  214. package/src/modules/wallet/models/wallet.model.js +5 -5
  215. package/src/modules/wallet/{components → views/components}/blocks/CardBalanceReplenished.vue +17 -7
  216. package/src/modules/wallet/{components/blocks/CardDeposite.vue → views/components/blocks/CardDeposit.vue} +4 -4
  217. package/src/modules/wallet/views/components/blocks/CryptoDeposit.vue +98 -0
  218. package/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue +144 -0
  219. package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +131 -0
  220. package/src/modules/wallet/views/components/pages/Wallet.vue +95 -68
  221. package/src/modules/wallet/views/localization/wallet.json +37 -0
  222. package/src/modules/wallet/views/store/wallet.store.js +145 -28
  223. package/src/modules/wallet/wallet.server.js +2 -2
  224. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +0 -55
  225. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +0 -181
  226. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +0 -213
  227. package/src/modules/wallet/localization/Wallet.json +0 -22
  228. /package/src/modules/wallet/{components/blocks/CashDeposite.vue → views/components/blocks/CashDeposit.vue} +0 -0
@@ -1,18 +1,18 @@
1
- import { ref as f, withAsyncContext as _, openBlock as w, createElementBlock as h, createElementVNode as s, createVNode as i, withCtx as b } from "vue";
1
+ import { ref as _, withAsyncContext as f, openBlock as w, createElementBlock as h, createElementVNode as s, createVNode as i, withCtx as b } from "vue";
2
2
  /* empty css */
3
- import p from "../../../../components/Field/Field.vue.js";
3
+ import m from "../../../../components/Field/Field.vue.js";
4
4
  import v from "../../../../components/Button/Button.vue.js";
5
5
  import { useRoute as y, useRouter as g } from "vue-router";
6
6
  import { state as e, actions as P } from "../../store/auth.js";
7
7
  import { actions as R } from "../../../organizations/store/invites.js";
8
8
  import { validateInputs as q, validatePassword as x } from "../../../middlewares/client/inputs.validation.js";
9
9
  /* empty css */
10
- const C = { class: "t-left pd-medium" }, k = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "You have been invited to the organization", -1), E = /* @__PURE__ */ s("p", { class: "mn-b-semi t-transp" }, "Please provide a password to complete the registration.", -1), U = { class: "mn-b-semi radius-small o-hidden" }, V = /* @__PURE__ */ s("span", null, "Join", -1), T = {
10
+ const C = { class: "t-left pd-medium" }, k = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "You have been invited to the organization", -1), E = /* @__PURE__ */ s("p", { class: "mn-b-semi t-transp" }, "Please provide a password to complete the registration.", -1), U = { class: "mn-b-semi radius-small o-hidden" }, V = /* @__PURE__ */ s("span", null, "Join", -1), Y = {
11
11
  __name: "Invite",
12
- async setup(A) {
12
+ async setup($) {
13
13
  let n, l;
14
- const d = f(null), o = y(), m = g();
15
- [n, l] = _(() => R.readOne(o.query.inviteCode)), await n, l();
14
+ const d = _(null), o = y(), p = g();
15
+ [n, l] = f(() => R.readOne(o.query.inviteCode)), await n, l();
16
16
  async function u() {
17
17
  try {
18
18
  await q(
@@ -26,12 +26,12 @@ const C = { class: "t-left pd-medium" }, k = /* @__PURE__ */ s("h3", { class: "m
26
26
  }
27
27
  try {
28
28
  await P.signup(e.user, o.query.type, o.query.inviteCode);
29
- } catch (r) {
30
- console.log(r);
29
+ } catch (a) {
30
+ console.log(a);
31
31
  }
32
32
  }
33
33
  function c() {
34
- m.push({
34
+ p.push({
35
35
  name: "User Profile",
36
36
  params: {
37
37
  _id: e.user._id
@@ -41,22 +41,22 @@ const C = { class: "t-left pd-medium" }, k = /* @__PURE__ */ s("h3", { class: "m
41
41
  }
42
42
  });
43
43
  }
44
- return (r, t) => (w(), h("section", C, [
44
+ return (a, t) => (w(), h("section", C, [
45
45
  k,
46
46
  E,
47
47
  s("div", U, [
48
- i(p, {
48
+ i(m, {
49
49
  field: e.user.password,
50
- "onUpdate:field": t[0] || (t[0] = (a) => e.user.password = a),
50
+ "onUpdate:field": t[0] || (t[0] = (r) => e.user.password = r),
51
51
  type: "password",
52
52
  validation: d.value,
53
53
  label: "Password",
54
54
  placeholder: "******",
55
55
  class: "mn-b-thin bg-light pd-medium radius-small"
56
56
  }, null, 8, ["field", "validation"]),
57
- i(p, {
57
+ i(m, {
58
58
  field: e.user.passwordRepeat,
59
- "onUpdate:field": t[1] || (t[1] = (a) => e.user.passwordRepeat = a),
59
+ "onUpdate:field": t[1] || (t[1] = (r) => e.user.passwordRepeat = r),
60
60
  type: "password",
61
61
  label: "Repeat Password",
62
62
  placeholder: "******",
@@ -77,5 +77,5 @@ const C = { class: "t-left pd-medium" }, k = /* @__PURE__ */ s("h3", { class: "m
77
77
  }
78
78
  };
79
79
  export {
80
- T as default
80
+ Y as default
81
81
  };
@@ -8,12 +8,12 @@ import { useI18n as N } from "vue-i18n";
8
8
  import S from "../../localization/ResetPassword.json.js";
9
9
  import { state as i, actions as T } from "../../store/auth.js";
10
10
  import "../../store/twofa.js";
11
- import { validateInputs as b, validatePhone as D, validateEmail as O } from "../../../middlewares/client/inputs.validation.js";
11
+ import { validateInputs as b, validatePhone as $, validateEmail as D } from "../../../middlewares/client/inputs.validation.js";
12
12
  /* empty css */
13
- const R = { class: "t-left pd-medium" }, $ = { class: "mn-b-small" }, B = { class: "mn-b-small t-transp" }, F = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, U = { class: "pos-relative" }, q = {
13
+ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, B = { class: "mn-b-small t-transp" }, U = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, q = { class: "pos-relative" }, A = {
14
14
  key: 0,
15
15
  class: "mn-b-semi radius-small o-hidden"
16
- }, A = { class: "mn-b-small t-transp" }, L = {
16
+ }, F = { class: "mn-b-small t-transp" }, L = {
17
17
  key: 0,
18
18
  class: "mn-b-semi radius-small o-hidden"
19
19
  }, j = { class: "mn-b-small t-transp" }, se = {
@@ -29,12 +29,12 @@ const R = { class: "t-left pd-medium" }, $ = { class: "mn-b-small" }, B = { clas
29
29
  try {
30
30
  s.value === "phone" && await b(
31
31
  h,
32
- D,
32
+ $,
33
33
  i.user.phone,
34
34
  "Некорректный телефон"
35
35
  ), s.value === "email" && await b(
36
36
  f,
37
- O,
37
+ D,
38
38
  i.user.email,
39
39
  "Некорректный email"
40
40
  );
@@ -50,10 +50,10 @@ const R = { class: "t-left pd-medium" }, $ = { class: "mn-b-small" }, B = { clas
50
50
  function y() {
51
51
  w.push({ name: "Enter Code", query: { type: s.value, method: "reset-password" } });
52
52
  }
53
- return (m, o) => (u(), p("section", R, [
54
- a("h3", $, r(t(e)("forgotPasswordTitle")), 1),
53
+ return (m, o) => (u(), p("section", O, [
54
+ a("h3", R, r(t(e)("forgotPasswordTitle")), 1),
55
55
  a("p", B, r(t(e)("instructions")), 1),
56
- a("div", F, [
56
+ a("div", U, [
57
57
  l(E, {
58
58
  selected: s.value,
59
59
  "onUpdate:selected": o[0] || (o[0] = (n) => s.value = n),
@@ -63,11 +63,11 @@ const R = { class: "t-left pd-medium" }, $ = { class: "mn-b-small" }, B = { clas
63
63
  ]
64
64
  }, null, 8, ["selected", "tabs"])
65
65
  ]),
66
- a("div", U, [
66
+ a("div", q, [
67
67
  l(_, { name: "slide-fade" }, {
68
68
  default: c(() => [
69
- s.value === "phone" ? (u(), p("div", q, [
70
- a("p", A, r(t(e)("smsInfo")), 1),
69
+ s.value === "phone" ? (u(), p("div", A, [
70
+ a("p", F, r(t(e)("smsInfo")), 1),
71
71
  l(P, {
72
72
  onChange: o[1] || (o[1] = (n) => i.user.phone = n),
73
73
  dropdownOptions: {
@@ -1,23 +1,23 @@
1
- import { ref as p, onMounted as k, resolveComponent as E, openBlock as V, createElementBlock as I, createElementVNode as s, createTextVNode as c, toDisplayString as r, unref as l, createVNode as o, withCtx as d, Transition as b, withDirectives as g, vShow as w } from "vue";
1
+ import { ref as p, onMounted as k, resolveComponent as E, openBlock as V, createElementBlock as I, createElementVNode as l, createTextVNode as c, toDisplayString as r, unref as s, createVNode as o, withCtx as d, Transition as b, withDirectives as g, vShow as w } from "vue";
2
2
  import q from "../../../../components/Tab/Tab.vue2.js";
3
3
  import y from "../../../../components/Field/Field.vue.js";
4
4
  import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
5
  import O from "../../../../components/Button/Button.vue.js";
6
- import { useRoute as j, useRouter as A } from "vue-router";
7
- import { useI18n as N } from "vue-i18n";
8
- import T from "../../localization/SignIn.json.js";
9
- import { state as i, actions as $ } from "../../store/auth.js";
10
- import { validateInputs as S, validatePhone as B, validateEmail as F } from "../../../middlewares/client/inputs.validation.js";
6
+ import { useRoute as $, useRouter as j } from "vue-router";
7
+ import { useI18n as A } from "vue-i18n";
8
+ import N from "../../localization/SignIn.json.js";
9
+ import { state as i, actions as T } from "../../store/auth.js";
10
+ import { validateInputs as S, validatePhone as B, validateEmail as R } from "../../../middlewares/client/inputs.validation.js";
11
11
  /* empty css */
12
- const R = { class: "" }, L = /* @__PURE__ */ s("img", {
12
+ const F = { class: "" }, L = /* @__PURE__ */ l("img", {
13
13
  src: "/logo/logo.svg",
14
14
  class: "i-extra radius-small mn-b-small"
15
- }, null, -1), M = { class: "mn-b-medium" }, z = /* @__PURE__ */ s("br", null, null, -1), G = { class: "t-semi" }, H = { class: "mn-b-big" }, J = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, K = { class: "pos-relative" }, Q = { class: "mn-b-thin radius-small" }, W = { class: "mn-b-thin radius-small o-hidden" }, X = { class: "w-100 mn-b-big" }, ue = {
15
+ }, null, -1), M = { class: "mn-b-medium" }, z = /* @__PURE__ */ l("br", null, null, -1), G = { class: "t-semi" }, H = { class: "mn-b-big" }, J = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, K = { class: "pos-relative" }, Q = { class: "mn-b-thin radius-small" }, W = { class: "mn-b-thin radius-small o-hidden" }, X = { class: "w-100 mn-b-big" }, ue = {
16
16
  __name: "SignIn",
17
17
  setup(Y) {
18
- const h = p(null), x = p(null), f = p(null), _ = j(), v = A(), { t: a } = N({
18
+ const h = p(null), x = p(null), _ = p(null), f = $(), v = j(), { t: a } = A({
19
19
  useScope: "global",
20
- ...T
20
+ ...N
21
21
  }), n = p("phone"), C = (u) => new Promise((t, m) => {
22
22
  const e = document.createElement("script");
23
23
  e.type = "text/javascript", e.src = u, e.onload = t, e.onerror = m, document.head.appendChild(e);
@@ -33,8 +33,8 @@ const R = { class: "" }, L = /* @__PURE__ */ s("img", {
33
33
  i.user.phone,
34
34
  "Некорректный телефон"
35
35
  ), n.value === "email" && await S(
36
- f,
37
- F,
36
+ _,
37
+ R,
38
38
  i.user.email,
39
39
  "Некорректный email"
40
40
  );
@@ -42,11 +42,11 @@ const R = { class: "" }, L = /* @__PURE__ */ s("img", {
42
42
  throw new Error();
43
43
  }
44
44
  const u = { ...i.user };
45
- await $.login(u, n.value);
45
+ await T.login(u, n.value);
46
46
  }
47
47
  function P() {
48
- _.query.returnUrl ? v.push({
49
- path: _.query.returnUrl,
48
+ f.query.returnUrl ? v.push({
49
+ path: f.query.returnUrl,
50
50
  query: {
51
51
  afterAuth: "true"
52
52
  }
@@ -62,38 +62,38 @@ const R = { class: "" }, L = /* @__PURE__ */ s("img", {
62
62
  }
63
63
  return (u, t) => {
64
64
  const m = E("router-link");
65
- return V(), I("section", R, [
65
+ return V(), I("section", F, [
66
66
  L,
67
- s("h3", M, [
68
- c(r(l(a)("title")) + " ", 1),
67
+ l("h3", M, [
68
+ c(r(s(a)("title")) + " ", 1),
69
69
  z,
70
- s("span", G, r(l(a)("subtitle")), 1)
70
+ l("span", G, r(s(a)("subtitle")), 1)
71
71
  ]),
72
- s("p", H, [
72
+ l("p", H, [
73
73
  o(m, {
74
74
  to: { name: "Sign Up" },
75
75
  class: "underline t-second"
76
76
  }, {
77
77
  default: d(() => [
78
- c(r(l(a)("signup")), 1)
78
+ c(r(s(a)("signup")), 1)
79
79
  ]),
80
80
  _: 1
81
81
  })
82
82
  ]),
83
- s("div", J, [
83
+ l("div", J, [
84
84
  o(q, {
85
85
  selected: n.value,
86
86
  "onUpdate:selected": t[0] || (t[0] = (e) => n.value = e),
87
87
  tabs: [
88
- { name: l(a)("phone"), value: "phone" },
89
- { name: l(a)("email"), value: "email" }
88
+ { name: s(a)("phone"), value: "phone" },
89
+ { name: s(a)("email"), value: "email" }
90
90
  ]
91
91
  }, null, 8, ["selected", "tabs"])
92
92
  ]),
93
- s("div", K, [
93
+ l("div", K, [
94
94
  o(b, { name: "slide-fade" }, {
95
95
  default: d(() => [
96
- g(s("div", Q, [
96
+ g(l("div", Q, [
97
97
  o(D, {
98
98
  onChange: t[1] || (t[1] = (e) => i.user.phone = e),
99
99
  dropdownOptions: {
@@ -104,7 +104,7 @@ const R = { class: "" }, L = /* @__PURE__ */ s("img", {
104
104
  validCharactersOnly: !0,
105
105
  validation: h.value,
106
106
  mode: "national",
107
- inputOptions: { placeholder: l(a)("phonePlaceholder"), type: "tel" },
107
+ inputOptions: { placeholder: s(a)("phonePlaceholder"), type: "tel" },
108
108
  class: "bg-light pd-small radius-small mn-b-thin"
109
109
  }, null, 8, ["validation", "inputOptions"])
110
110
  ], 512), [
@@ -115,12 +115,12 @@ const R = { class: "" }, L = /* @__PURE__ */ s("img", {
115
115
  }),
116
116
  o(b, { name: "slide-fade" }, {
117
117
  default: d(() => [
118
- g(s("div", W, [
118
+ g(l("div", W, [
119
119
  o(y, {
120
120
  field: i.user.email,
121
121
  "onUpdate:field": t[2] || (t[2] = (e) => i.user.email = e),
122
- placeholder: l(a)("emailPlaceholder"),
123
- validation: f.value,
122
+ placeholder: s(a)("emailPlaceholder"),
123
+ validation: _.value,
124
124
  class: "bg-light pd-medium radius-small"
125
125
  }, null, 8, ["field", "placeholder", "validation"])
126
126
  ], 512), [
@@ -135,16 +135,16 @@ const R = { class: "" }, L = /* @__PURE__ */ s("img", {
135
135
  "onUpdate:field": t[3] || (t[3] = (e) => i.user.password = e),
136
136
  type: "password",
137
137
  validation: x.value,
138
- placeholder: l(a)("passwordPlaceholder"),
138
+ placeholder: s(a)("passwordPlaceholder"),
139
139
  class: "bg-light pd-medium radius-small mn-b-semi"
140
140
  }, null, 8, ["field", "validation", "placeholder"]),
141
- s("div", X, [
141
+ l("div", X, [
142
142
  o(m, {
143
143
  to: "/auth/reset-password",
144
144
  class: "underline d-block t-blue"
145
145
  }, {
146
146
  default: d(() => [
147
- c(r(l(a)("forgotPassword")), 1)
147
+ c(r(s(a)("forgotPassword")), 1)
148
148
  ]),
149
149
  _: 1
150
150
  })
@@ -155,7 +155,7 @@ const R = { class: "" }, L = /* @__PURE__ */ s("img", {
155
155
  class: "w-100 bg-main mn-b-thin"
156
156
  }, {
157
157
  default: d(() => [
158
- c(r(l(a)("signin")), 1)
158
+ c(r(s(a)("signin")), 1)
159
159
  ]),
160
160
  _: 1
161
161
  })
@@ -1,32 +1,32 @@
1
- import { ref as d, resolveComponent as E, openBlock as S, createElementBlock as x, createElementVNode as o, toDisplayString as r, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as _, vShow as f, createTextVNode as v } from "vue";
1
+ import { ref as d, resolveComponent as E, openBlock as S, createElementBlock as x, createElementVNode as o, toDisplayString as r, unref as t, createVNode as l, Transition as h, withCtx as m, withDirectives as _, vShow as f, createTextVNode as v } from "vue";
2
2
  import N from "../../../../components/Tab/Tab.vue2.js";
3
3
  import V from "../../../../components/Field/Field.vue.js";
4
4
  import y from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
5
  import D from "../../../../components/Button/Button.vue.js";
6
- import { useRoute as I, useRouter as O } from "vue-router";
7
- import { useI18n as P } from "vue-i18n";
8
- import T from "../../localization/SignUp.json.js";
6
+ import { useRoute as I, useRouter as $ } from "vue-router";
7
+ import { useI18n as O } from "vue-i18n";
8
+ import P from "../../localization/SignUp.json.js";
9
9
  import { state as s } from "../../store/auth.js";
10
- import { sendCode as U } from "../../store/twofa.js";
11
- import { validateInputs as b, validatePhone as $, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
10
+ import { sendCode as T } from "../../store/twofa.js";
11
+ import { validateInputs as b, validatePhone as U, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
12
12
  /* empty css */
13
- const B = { class: "t-left pd-medium" }, F = { class: "mn-b-small" }, R = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, L = { class: "pos-relative" }, j = { class: "mn-b-semi radius-small" }, q = { class: "mn-b-small t-transp" }, z = { class: "mn-b-semi radius-small o-hidden" }, G = { class: "mn-b-small t-transp" }, H = { class: "w-100" }, ie = {
13
+ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, F = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, L = { class: "pos-relative" }, j = { class: "mn-b-semi radius-small" }, q = { class: "mn-b-small t-transp" }, z = { class: "mn-b-semi radius-small o-hidden" }, G = { class: "mn-b-small t-transp" }, H = { class: "w-100" }, ie = {
14
14
  __name: "SignUp",
15
15
  setup(J) {
16
- const { t: e } = P({
16
+ const { t: e } = O({
17
17
  useScope: "global",
18
- ...T
18
+ ...P
19
19
  }), u = d(null), c = d(null);
20
20
  I();
21
- const g = O(), l = d("phone");
21
+ const g = $(), a = d("phone");
22
22
  async function w() {
23
23
  try {
24
- l.value === "phone" && await b(
24
+ a.value === "phone" && await b(
25
25
  u,
26
- $,
26
+ U,
27
27
  s.user.phone,
28
28
  "Некорректный телефон"
29
- ), l.value === "email" && await b(
29
+ ), a.value === "email" && await b(
30
30
  c,
31
31
  A,
32
32
  s.user.email,
@@ -36,7 +36,7 @@ const B = { class: "t-left pd-medium" }, F = { class: "mn-b-small" }, R = { clas
36
36
  throw new Error();
37
37
  }
38
38
  try {
39
- await U(s.user, "signup", l.value);
39
+ await T(s.user, "signup", a.value);
40
40
  } catch {
41
41
  throw new Error();
42
42
  }
@@ -47,11 +47,11 @@ const B = { class: "t-left pd-medium" }, F = { class: "mn-b-small" }, R = { clas
47
47
  return (p, i) => {
48
48
  const k = E("router-link");
49
49
  return S(), x("section", B, [
50
- o("h3", F, r(t(e)("title")), 1),
51
- o("div", R, [
52
- a(N, {
53
- selected: l.value,
54
- "onUpdate:selected": i[0] || (i[0] = (n) => l.value = n),
50
+ o("h3", R, r(t(e)("title")), 1),
51
+ o("div", F, [
52
+ l(N, {
53
+ selected: a.value,
54
+ "onUpdate:selected": i[0] || (i[0] = (n) => a.value = n),
55
55
  tabs: [
56
56
  { name: t(e)("phone"), value: "phone" },
57
57
  { name: t(e)("email"), value: "email" }
@@ -59,11 +59,11 @@ const B = { class: "t-left pd-medium" }, F = { class: "mn-b-small" }, R = { clas
59
59
  }, null, 8, ["selected", "tabs"])
60
60
  ]),
61
61
  o("div", L, [
62
- a(h, { name: "slide-fade" }, {
62
+ l(h, { name: "slide-fade" }, {
63
63
  default: m(() => [
64
64
  _(o("div", j, [
65
65
  o("p", q, r(t(e)("smsNotice")), 1),
66
- a(y, {
66
+ l(y, {
67
67
  onChange: i[1] || (i[1] = (n) => s.user.phone = n),
68
68
  dropdownOptions: {
69
69
  showDialCodeInSelection: !0,
@@ -76,16 +76,16 @@ const B = { class: "t-left pd-medium" }, F = { class: "mn-b-small" }, R = { clas
76
76
  class: "bg-light pd-small radius-small mn-b-thin"
77
77
  }, null, 8, ["validation", "inputOptions"])
78
78
  ], 512), [
79
- [f, l.value === "phone"]
79
+ [f, a.value === "phone"]
80
80
  ])
81
81
  ]),
82
82
  _: 1
83
83
  }),
84
- a(h, { name: "slide-fade" }, {
84
+ l(h, { name: "slide-fade" }, {
85
85
  default: m(() => [
86
86
  _(o("div", z, [
87
87
  o("p", G, r(t(e)("emailNotice")), 1),
88
- a(V, {
88
+ l(V, {
89
89
  field: s.user.email,
90
90
  "onUpdate:field": i[2] || (i[2] = (n) => s.user.email = n),
91
91
  placeholder: t(e)("emailPlaceholder"),
@@ -93,13 +93,13 @@ const B = { class: "t-left pd-medium" }, F = { class: "mn-b-small" }, R = { clas
93
93
  class: "bg-light pd-medium radius-small"
94
94
  }, null, 8, ["field", "placeholder", "validation"])
95
95
  ], 512), [
96
- [f, l.value === "email"]
96
+ [f, a.value === "email"]
97
97
  ])
98
98
  ]),
99
99
  _: 1
100
100
  })
101
101
  ]),
102
- a(D, {
102
+ l(D, {
103
103
  submit: w,
104
104
  callback: C,
105
105
  class: "w-100 bg-main mn-b-big"
@@ -110,7 +110,7 @@ const B = { class: "t-left pd-medium" }, F = { class: "mn-b-small" }, R = { clas
110
110
  _: 1
111
111
  }),
112
112
  o("div", H, [
113
- a(k, {
113
+ l(k, {
114
114
  to: "/auth/signin",
115
115
  class: "underline mn-b-medium d-block t-blue"
116
116
  }, {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Menu/Menu.vue.cjs"),s=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const a=require("../../../icons/entities/IconProducts.vue.cjs"),u=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice2",-1),N=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Community ",-1),v=e.createElementVNode("span",null," Products ",-1),h=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),k=e.createElementVNode("span",null," Events ",-1),g=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),x={__name:"Dashboard",props:{favorites:Array},setup(q){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),($,t)=>(e.openBlock(),e.createElementBlock("div",m,[p,e.createVNode(n.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[0]||(t[0]=o=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1}),e.createVNode(s.default,{onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(s.default,{onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(s.default,{onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(s.default,{onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(s.default,{onClick:t[5]||(t[5]=o=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(s.default,{onClick:t[6]||(t[6]=o=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),k]),_:1}),e.createVNode(s.default,{onClick:t[7]||(t[7]=o=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1})]),_:1}),e.createVNode(n.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[8]||(t[8]=o=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(s.default,{onClick:t[9]||(t[9]=o=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(s.default,{onClick:t[10]||(t[10]=o=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Menu/Menu.vue2.cjs"),s=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const a=require("../../../icons/entities/IconProducts.vue.cjs"),u=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice2",-1),N=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Community ",-1),v=e.createElementVNode("span",null," Products ",-1),h=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),k=e.createElementVNode("span",null," Events ",-1),g=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),x={__name:"Dashboard",props:{favorites:Array},setup(q){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),($,t)=>(e.openBlock(),e.createElementBlock("div",m,[p,e.createVNode(n.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[0]||(t[0]=o=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1}),e.createVNode(s.default,{onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(s.default,{onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(s.default,{onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(s.default,{onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(s.default,{onClick:t[5]||(t[5]=o=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(s.default,{onClick:t[6]||(t[6]=o=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),k]),_:1}),e.createVNode(s.default,{onClick:t[7]||(t[7]=o=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1})]),_:1}),e.createVNode(n.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[8]||(t[8]=o=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(s.default,{onClick:t[9]||(t[9]=o=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(s.default,{onClick:t[10]||(t[10]=o=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=x;
@@ -1,5 +1,5 @@
1
1
  import { ref as a, onMounted as m, openBlock as f, createElementBlock as c, createVNode as e, withCtx as o, unref as i, createElementVNode as t } from "vue";
2
- import u from "../../../../components/Menu/Menu.vue.js";
2
+ import u from "../../../../components/Menu/Menu.vue2.js";
3
3
  import r from "../../../../components/Menu/MenuItem.vue.js";
4
4
  /* empty css */
5
5
  import p from "../../../icons/entities/IconProducts.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const p=require("../../../../components/Feed/Feed.vue.cjs"),g=require("../blocks/CardBlogpost.vue.cjs"),u=require("../../store/blogposts.cjs"),l=require("../../../auth/store/auth.cjs"),f={class:"bg-white"},y={__name:"Blog",setup(b){const s=c.useRoute(),d=c.useRouter();return e.onMounted(()=>{if(s.query){const o=s.query,a={tags:o.tags?o.tags.split(","):[],period:o.period?o.period:null};u.state.filter=a}}),e.watch(()=>u.state.filter,(o,a)=>{const t={...s.query};Object.keys(a).forEach(n=>{t[n]&&delete t[n]});const i=Object.fromEntries(Object.entries(o).filter(([n,r])=>Array.isArray(r)&&r.length>0||typeof r=="string"&&r).map(([n,r])=>[n,Array.isArray(r)?r.join(","):r]));Object.assign(t,i),d.replace({query:t})},{deep:!0}),(o,a)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(p.default,{sort:u.state.sort,"onUpdate:sort":a[0]||(a[0]=t=>u.state.sort=t),showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:t=>u.read(t)},options:{limit:15,category:e.unref(s).params.category,period:e.unref(s).query.period,status:"published",user:l.state.user._id,following:e.unref(s).params.category==="following"?l.state.user._id:null},class:"mobile:w-50 desktop:w-100 tablet:w-75 row-1 gap-thin"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,i=>(e.openBlock(),e.createBlock(g.default,{key:i._id,blogpost:i,user:l.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["sort","store","options"])]))}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const p=require("../../../../components/Feed/Feed.vue.cjs"),g=require("../blocks/CardBlogpost.vue.cjs"),a=require("../../store/blogposts.cjs"),l=require("../../../auth/store/auth.cjs"),f={class:"bg-white"},y={__name:"Blog",setup(b){const s=c.useRoute(),d=c.useRouter();return e.onMounted(()=>{if(s.query){const o=s.query,n={tags:o.tags?o.tags.split(","):[],period:o.period?o.period:null};a.state.filter=n}}),e.watch(()=>a.state.filter,(o,n)=>{const t={...s.query};Object.keys(n).forEach(u=>{t[u]&&delete t[u]});const i=Object.fromEntries(Object.entries(o).filter(([u,r])=>Array.isArray(r)&&r.length>0||typeof r=="string"&&r).map(([u,r])=>[u,Array.isArray(r)?r.join(","):r]));Object.assign(t,i),d.replace({query:t})},{deep:!0}),(o,n)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(p.default,{sort:a.state.sort,"onUpdate:sort":n[0]||(n[0]=t=>a.state.sort=t),showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:t=>a.read(t)},options:{limit:15,category:e.unref(s).params.category,period:e.unref(s).query.period,status:"published",user:l.state.user._id,following:e.unref(s).params.category==="following"?l.state.user._id:null},class:"row-1 gap-thin"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,i=>(e.openBlock(),e.createBlock(g.default,{key:i._id,blogpost:i,user:l.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["sort","store","options"])]))}};exports.default=y;
@@ -50,7 +50,7 @@ const x = { class: "bg-white" }, P = {
50
50
  user: u.user._id,
51
51
  following: p(o).params.category === "following" ? u.user._id : null
52
52
  },
53
- class: "mobile:w-50 desktop:w-100 tablet:w-75 row-1 gap-thin"
53
+ class: "row-1 gap-thin"
54
54
  }, {
55
55
  default: y(({
56
56
  items: e
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const p=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */;/* empty css */require("axios");;/* empty css */const _=require("../blocks/CardBlogpost.vue.cjs"),n=require("../../store/blogposts.cjs"),f=require("../../../auth/store/auth.cjs"),b=require("vue-router");;/* empty css */const v=l=>(e.pushScopeId("data-v-bdf0e48a"),l=l(),e.popScopeId(),l),g={class:"flex-v-center flex-nowrap flex mn-b-medium"},h=v(()=>e.createElementVNode("h3",{class:"mn-r-medium"},"Blog",-1)),k={class:""},w={class:"flex-nowrap flex pd-t-zero pd-b-zero pd-big"},q=["onClick"],y=["onClick"],C={__name:"Community",async setup(l){let s,u;const i=b.useRouter();[s,u]=e.withAsyncContext(()=>n.read()),await s,u(),console.log(n.state),e.ref({title:"",content:"",categories:[]});const d=async t=>{window.confirm("Are you sure you want to delete this post?")&&(console.log(t),await n.remove(t))};let c=e.ref("all");const a=e.computed(()=>c.value==="all"?n.state.all:n.state.all.filter(t=>t.categories.includes(c.value)));return e.computed(()=>{for(let t of a.value)if(t.blocks&&t.blocks.length>0){const r=t.blocks.find(o=>o.type.name==="ImageUpload");if(r)return r.content}return null}),(t,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",g,[h,e.createElementVNode("button",{onClick:r[0]||(r[0]=o=>e.unref(i).push({name:"Create BlogPost"})),class:"t-white bg-second button-small button"},"+")]),e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,o=>(e.openBlock(),e.createBlock(_.default,{key:o._id,blogpost:o,owner:f.state.user._id,class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("button",{class:"mn-r-thin button-small w-100 button",onClick:m=>t.$router.push({path:"/community/posts/"+o.url+"/edit"})},"Edit",8,q),e.createElementVNode("button",{class:"button-small w-100 button",onClick:m=>d(o._id)},"Delete",8,y)])]),_:2},1032,["blogpost","owner"]))),128))])]))}},B=p.default(C,[["__scopeId","data-v-bdf0e48a"]]);exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */const p=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */require("axios");;/* empty css */const _=require("../blocks/CardBlogpost.vue.cjs"),n=require("../../store/blogposts.cjs"),f=require("../../../auth/store/auth.cjs"),b=require("vue-router");;/* empty css */const v=l=>(e.pushScopeId("data-v-bdf0e48a"),l=l(),e.popScopeId(),l),g={class:"flex-v-center flex-nowrap flex mn-b-medium"},h=v(()=>e.createElementVNode("h3",{class:"mn-r-medium"},"Blog",-1)),k={class:""},w={class:"flex-nowrap flex pd-t-zero pd-b-zero pd-big"},q=["onClick"],y=["onClick"],C={__name:"Community",async setup(l){let s,u;const i=b.useRouter();[s,u]=e.withAsyncContext(()=>n.read()),await s,u(),console.log(n.state),e.ref({title:"",content:"",categories:[]});const d=async t=>{window.confirm("Are you sure you want to delete this post?")&&(console.log(t),await n.remove(t))};let c=e.ref("all");const a=e.computed(()=>c.value==="all"?n.state.all:n.state.all.filter(t=>t.categories.includes(c.value)));return e.computed(()=>{for(let t of a.value)if(t.blocks&&t.blocks.length>0){const r=t.blocks.find(o=>o.type.name==="ImageUpload");if(r)return r.content}return null}),(t,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",g,[h,e.createElementVNode("button",{onClick:r[0]||(r[0]=o=>e.unref(i).push({name:"Create BlogPost"})),class:"t-white bg-second button-small button"},"+")]),e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,o=>(e.openBlock(),e.createBlock(_.default,{key:o._id,blogpost:o,owner:f.state.user._id,class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("button",{class:"mn-r-thin button-small w-100 button",onClick:m=>t.$router.push({path:"/community/posts/"+o.url+"/edit"})},"Edit",8,q),e.createElementVNode("button",{class:"button-small w-100 button",onClick:m=>d(o._id)},"Delete",8,y)])]),_:2},1032,["blogpost","owner"]))),128))])]))}},B=p.default(C,[["__scopeId","data-v-bdf0e48a"]]);exports.default=B;
@@ -1,7 +1,7 @@
1
1
  import { withAsyncContext as h, ref as u, computed as d, openBlock as r, createElementBlock as p, createElementVNode as o, unref as v, Fragment as w, renderList as g, createBlock as k, withCtx as y, pushScopeId as C, popScopeId as x } from "vue";
2
2
  /* empty css */
3
- import B from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
3
  /* empty css */
4
+ import B from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  import "axios";