@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,15 +1,15 @@
1
- import { ref as U, onMounted as B, openBlock as n, createElementBlock as s, createVNode as a, withCtx as o, createElementVNode as m, toDisplayString as E, unref as p, createBlock as b, createTextVNode as $, createCommentVNode as z, Fragment as f, renderList as _ } from "vue";
2
- import { useRoute as F, useRouter as R } from "vue-router";
1
+ import { ref as $, onMounted as B, openBlock as n, createElementBlock as s, createVNode as a, withCtx as l, createElementVNode as m, toDisplayString as E, unref as p, createBlock as b, createTextVNode as U, createCommentVNode as z, Fragment as f, renderList as _ } from "vue";
2
+ import { useRoute as R, useRouter as S } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  /* empty css */
6
6
  import d from "../../../../components/Block/Block.vue.js";
7
7
  /* empty css */
8
8
  import v from "../../../../components/Field/Field.vue.js";
9
- import S from "../../../../components/Checkbox/Checkbox.vue.js";
9
+ import T from "../../../../components/Checkbox/Checkbox.vue.js";
10
10
  import N from "../../../../components/Button/Button.vue.js";
11
- import T from "../../../../components/Popup/Popup.vue.js";
12
- import A from "../../../../components/Feed/Feed.vue.js";
11
+ import A from "../../../../components/Popup/Popup.vue.js";
12
+ import F from "../../../../components/Feed/Feed.vue.js";
13
13
  import L from "../../../../components/EditImages/EditImages.vue.js";
14
14
  import D from "../../../icons/navigation/IconDelete.vue.js";
15
15
  import q from "../blocks/CardPosition.vue.js";
@@ -25,7 +25,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
25
25
  }, Y = { class: "bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, Z = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ee = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, ke = {
26
26
  __name: "ProductEdit",
27
27
  setup(te) {
28
- const l = F(), k = R(), P = U(e.all), y = U(!1);
28
+ const o = R(), k = S(), P = $(e.all), y = $(!1);
29
29
  function O(g) {
30
30
  y.value = !0;
31
31
  }
@@ -33,10 +33,10 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
33
33
  y.value = !1;
34
34
  }
35
35
  B(async () => {
36
- G.resetProduct(), l.params.product && await c.read({ _id: l.params.product }), e.current.ingredients || (e.current.ingredients = []), await H.fetchCategories();
36
+ G.resetProduct(), o.params.product && await c.read({ _id: o.params.product }), e.current.ingredients || (e.current.ingredients = []), await H.fetchCategories();
37
37
  try {
38
38
  const g = await c.read({
39
- organization: l.params._id,
39
+ organization: o.params._id,
40
40
  limit: 100
41
41
  });
42
42
  P.value = g;
@@ -45,7 +45,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
45
45
  }
46
46
  });
47
47
  function I() {
48
- l.params.product ? c.update(l.params.product, e.current) : c.create(l.params._id, e.current);
48
+ o.params.product ? c.update(o.params.product, e.current) : c.create(o.params._id, e.current);
49
49
  }
50
50
  function V() {
51
51
  c.deleteProduct(e.current._id);
@@ -54,22 +54,22 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
54
54
  k.push({
55
55
  name: "Organization",
56
56
  params: {
57
- _id: l.params._id
57
+ _id: o.params._id
58
58
  }
59
59
  });
60
60
  }
61
61
  return (g, h) => (n(), s("div", K, [
62
62
  a(d, { class: "flex-nowrap flex-v-center flex" }, {
63
- default: o(() => [
64
- m("h1", Q, E(p(l).params.product ? e.current.name : "Create Product"), 1),
65
- p(l).params.product ? (n(), b(N, {
63
+ default: l(() => [
64
+ m("h1", Q, E(p(o).params.product ? e.current.name : "Create Product"), 1),
65
+ p(o).params.product ? (n(), b(N, {
66
66
  key: 0,
67
67
  submit: V,
68
68
  callback: C,
69
69
  class: "bg-red mn-r-thin"
70
70
  }, {
71
- default: o(() => [
72
- $(" Delete ")
71
+ default: l(() => [
72
+ U(" Delete ")
73
73
  ]),
74
74
  _: 1
75
75
  })) : z("", !0),
@@ -78,8 +78,8 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
78
78
  callback: C,
79
79
  class: "bg-main"
80
80
  }, {
81
- default: o(() => [
82
- $(" Save ")
81
+ default: l(() => [
82
+ U(" Save ")
83
83
  ]),
84
84
  _: 1
85
85
  })
@@ -90,7 +90,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
90
90
  placeholder: "The product doesn't have any images yet.",
91
91
  class: "h-min"
92
92
  }, {
93
- default: o(() => [
93
+ default: l(() => [
94
94
  a(L, {
95
95
  images: e.current.images,
96
96
  uploadPath: "photos",
@@ -103,7 +103,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
103
103
  }),
104
104
  m("div", W, [
105
105
  a(d, { title: "Profile" }, {
106
- default: o(() => [
106
+ default: l(() => [
107
107
  a(j, {
108
108
  product: e.current
109
109
  }, null, 8, ["product"])
@@ -118,7 +118,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
118
118
  function: () => O()
119
119
  }]
120
120
  }, {
121
- default: o(() => [
121
+ default: l(() => [
122
122
  e.current.ingredients.length > 0 ? (n(), s("div", X, [
123
123
  (n(!0), s(f, null, _(e.current.ingredients, (t, i) => (n(), b(q, {
124
124
  key: t._id,
@@ -140,15 +140,15 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
140
140
  ]),
141
141
  _: 1
142
142
  }, 8, ["actions"]),
143
- a(T, {
143
+ a(A, {
144
144
  title: "Add ingredient",
145
145
  onClosePopup: u,
146
146
  isPopupOpen: y.value,
147
147
  class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
148
148
  }, {
149
- default: o(() => [
149
+ default: l(() => [
150
150
  m("div", Y, [
151
- a(A, {
151
+ a(F, {
152
152
  search: {
153
153
  class: "bg-white mn-b-thin"
154
154
  },
@@ -163,11 +163,11 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
163
163
  state: null
164
164
  },
165
165
  options: {
166
- organization: p(l).params._id
166
+ organization: p(o).params._id
167
167
  },
168
168
  class: ""
169
169
  }, {
170
- default: o(({
170
+ default: l(({
171
171
  items: t
172
172
  }) => [
173
173
  (n(!0), s(f, null, _(t, (i, r) => (n(), b(M, {
@@ -195,13 +195,13 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
195
195
  function: () => p(k).push({
196
196
  name: "Categories Organization",
197
197
  params: {
198
- _id: p(l).params._id
198
+ _id: p(o).params._id
199
199
  }
200
200
  })
201
201
  }]
202
202
  }, {
203
- default: o(() => [
204
- (n(!0), s(f, null, _(J.all, (t, i) => (n(), b(S, {
203
+ default: l(() => [
204
+ (n(!0), s(f, null, _(J.all, (t, i) => (n(), b(T, {
205
205
  label: t.name,
206
206
  name: "categories",
207
207
  value: t.url,
@@ -221,7 +221,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
221
221
  }],
222
222
  class: "cols-1 gap-thin"
223
223
  }, {
224
- default: o(() => [
224
+ default: l(() => [
225
225
  (n(!0), s(f, null, _(e.current.information, (t, i) => (n(), s("div", {
226
226
  class: "gap-thin flex-nowrap flex",
227
227
  key: i
@@ -256,7 +256,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
256
256
  function: () => e.current.localization.push({ name: "", value: "" })
257
257
  }]
258
258
  }, {
259
- default: o(() => [
259
+ default: l(() => [
260
260
  (n(!0), s(f, null, _(e.current.localization, (t, i) => (n(), s("div", {
261
261
  class: "gap-thin mn-b-thin flex-nowrap flex",
262
262
  key: i
@@ -3,7 +3,7 @@ import u from "../../../../components/Field/Field.vue.js";
3
3
  const M = {
4
4
  key: 0,
5
5
  class: "mn-b-small w-100"
6
- }, B = { class: "w-100 flex-nowrap flex" }, $ = ["onClick"], E = /* @__PURE__ */ e("svg", {
6
+ }, $ = { class: "w-100 flex-nowrap flex" }, B = ["onClick"], E = /* @__PURE__ */ e("svg", {
7
7
  width: "26",
8
8
  height: "26",
9
9
  viewBox: "0 0 26 26",
@@ -23,7 +23,7 @@ const M = {
23
23
  })
24
24
  ], -1), N = [
25
25
  E
26
- ], V = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), q = ["onClick"], F = /* @__PURE__ */ e("svg", {
26
+ ], V = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), q = ["onClick"], Z = /* @__PURE__ */ e("svg", {
27
27
  width: "26",
28
28
  height: "26",
29
29
  viewBox: "0 0 26 26",
@@ -41,9 +41,9 @@ const M = {
41
41
  d: "M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",
42
42
  fill: "rgb(var(--white))"
43
43
  })
44
- ], -1), Z = [
45
- F
46
- ], j = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), O = ["onClick"], z = {
44
+ ], -1), j = [
45
+ Z
46
+ ], F = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), O = ["onClick"], z = {
47
47
  __name: "EditModifications",
48
48
  props: {
49
49
  product: Object
@@ -72,7 +72,7 @@ const M = {
72
72
  class: "mn-b-small flex-column flex-wrap block",
73
73
  key: a
74
74
  }, [
75
- e("div", B, [
75
+ e("div", $, [
76
76
  r(u, {
77
77
  field: n.quantity,
78
78
  "onUpdate:field": (t) => n.quantity = t,
@@ -90,7 +90,7 @@ const M = {
90
90
  e("button", {
91
91
  onClick: (t) => g(a),
92
92
  class: "mn-l-small i-normal pd-regular button-delete button"
93
- }, N, 8, $)
93
+ }, N, 8, B)
94
94
  ]),
95
95
  V,
96
96
  (i(!0), o(h, null, b(n.characteristics, (t, f) => (i(), o("div", {
@@ -112,9 +112,9 @@ const M = {
112
112
  e("button", {
113
113
  onClick: (c) => x(a, f),
114
114
  class: "mn-l-small i-normal pd-regular button-delete button"
115
- }, Z, 8, q)
115
+ }, j, 8, q)
116
116
  ]))), 128)),
117
- j,
117
+ F,
118
118
  e("button", {
119
119
  onClick: (t) => k(a),
120
120
  class: "button"
@@ -1,4 +1,4 @@
1
- import { openBlock as u, createElementBlock as a, Fragment as o, createVNode as d, withCtx as n } from "vue";
1
+ import { openBlock as a, createElementBlock as u, Fragment as o, createVNode as d, withCtx as n } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import i from "../../../../components/Field/Field.vue.js";
@@ -9,7 +9,7 @@ const w = {
9
9
  product: Object
10
10
  },
11
11
  setup(e) {
12
- return (p, t) => (u(), a(o, null, [
12
+ return (s, t) => (a(), u(o, null, [
13
13
  d(r, {
14
14
  select: e.product.status,
15
15
  "onUpdate:select": t[0] || (t[0] = (l) => e.product.status = l),
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const h=require("../../../../components/Dropdown/Dropdown.vue2.cjs"),g=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../../components/Menu/Menu.vue.cjs"),l=require("../../../../components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),N=require("../../../reports/components/sections/FormReport.vue.cjs"),V=require("../../../organizations/components/blocks/Socials.vue.cjs"),B=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),C=require("../../../icons/navigation/IconEdit.vue.cjs"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),v=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const x={key:0,class:"for-transition w-100"},y={key:0,class:"flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},L={key:6,class:"mn-t-small mn-b-thin"},O=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),j=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),T=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),H={__name:"Profile",setup(J){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{v.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",x,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",y," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(N.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(C.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(E.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",L," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(V.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),O]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),j]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>b())},{default:e.withCtx(()=>[T]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const h=require("../../../../components/Dropdown/Dropdown.vue2.cjs"),g=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../../components/Menu/Menu.vue2.cjs"),l=require("../../../../components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),N=require("../../../reports/components/sections/FormReport.vue.cjs"),V=require("../../../organizations/components/blocks/Socials.vue.cjs"),B=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),C=require("../../../icons/navigation/IconEdit.vue.cjs"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),v=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const x={key:0,class:"for-transition w-100"},y={key:0,class:"flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},L={key:6,class:"mn-t-small mn-b-thin"},O=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),j=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),T=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),H={__name:"Profile",setup(J){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{v.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",x,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",y," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(N.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(C.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(E.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",L," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(V.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),O]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),j]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>b())},{default:e.withCtx(()=>[T]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=H;
@@ -4,7 +4,7 @@ import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unre
4
4
  /* empty css */
5
5
  import B from "../../../../components/Dropdown/Dropdown.vue2.js";
6
6
  import M from "../../../../components/Completion/Completion.vue.js";
7
- import k from "../../../../components/Menu/Menu.vue.js";
7
+ import k from "../../../../components/Menu/Menu.vue2.js";
8
8
  import _ from "../../../../components/Menu/MenuItem.vue.js";
9
9
  import w from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
10
10
  import R from "../../../reports/components/sections/FormReport.vue.js";
@@ -3,17 +3,17 @@ import { ref as u, onMounted as N, openBlock as p, createElementBlock as U, unre
3
3
  import t from "../../../../components/Field/Field.vue.js";
4
4
  import h from "../../../../components/Button/Button.vue.js";
5
5
  import S from "../../../../components/UploadImage/UploadImage.vue.js";
6
- import z from "../sections/ProfileCompletion.vue.js";
7
- import { useRoute as R, useRouter as $ } from "vue-router";
6
+ import $ from "../sections/ProfileCompletion.vue.js";
7
+ import { useRoute as z, useRouter as R } from "vue-router";
8
8
  import { state as g, actions as A } from "../../../auth/store/auth.js";
9
9
  import { state as n, actions as r } from "../../store/users.js";
10
10
  import "../../../middlewares/client/inputs.validation.js";
11
11
  import "./ProfileEdit.vue2.js";
12
- const D = { class: "pd-medium for-transition w-100" }, E = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Username", -1), T = { class: "mn-b-semi" }, V = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Profile", -1), B = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, I = /* @__PURE__ */ s("h4", null, "Upload userpic", -1), x = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Socials", -1), C = /* @__PURE__ */ s("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), F = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Account", -1), X = {
12
+ const D = { class: "pd-medium for-transition w-100" }, E = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Username", -1), T = { class: "mn-b-semi" }, V = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Profile", -1), B = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, I = /* @__PURE__ */ s("h4", null, "Upload userpic", -1), x = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Socials", -1), C = /* @__PURE__ */ s("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), L = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Account", -1), X = {
13
13
  __name: "ProfileEdit",
14
- setup(L) {
14
+ setup(F) {
15
15
  u(null);
16
- const d = R(), m = $(), e = u(n.current);
16
+ const d = z(), m = R(), e = u(n.current);
17
17
  N(async () => {
18
18
  await r.read({ _id: d.params._id });
19
19
  });
@@ -27,7 +27,7 @@ const D = { class: "pd-medium for-transition w-100" }, E = /* @__PURE__ */ s("h3
27
27
  m.replace({ name: "User Profile", params: { _id: n.current._id } });
28
28
  }
29
29
  return (o, l) => (p(), U("div", D, [
30
- f(d).params._id === g.user._id ? (p(), k(z, {
30
+ f(d).params._id === g.user._id ? (p(), k($, {
31
31
  key: 0,
32
32
  user: g.user._id,
33
33
  target: e.value,
@@ -101,7 +101,7 @@ const D = { class: "pd-medium for-transition w-100" }, E = /* @__PURE__ */ s("h3
101
101
  placeholder: "",
102
102
  class: "mn-b-semi bg-light pd-medium radius-small"
103
103
  }, null, 8, ["field"]),
104
- F,
104
+ L,
105
105
  a(t, {
106
106
  field: e.value.phone,
107
107
  "onUpdate:field": l[8] || (l[8] = (i) => e.value.phone = i),
@@ -1 +1 @@
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.vue.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
+ "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,6 +1,6 @@
1
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
2
  import b from "../../localization/Wallet.json.js";
3
- import f from "../../../../components/Field/Field.vue.js";
3
+ import f from "../../../../components/Field/Field.vue2.js";
4
4
  import { useI18n as _ } from "vue-i18n";
5
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
6
  __name: "CardDeposite",
@@ -1 +1 @@
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.vue.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
+ "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,6 +1,6 @@
1
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
2
  import b from "../../localization/Wallet.json.js";
3
- import f from "../../../../components/Field/Field.vue.js";
3
+ import f from "../../../../components/Field/Field.vue2.js";
4
4
  import { useI18n as _ } from "vue-i18n";
5
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
6
  __name: "CryptoDeposite",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-i18n"),c=require("../../../../../../node_modules/bignumber.js/bignumber.cjs"),i=require("../../localization/wallet.json.cjs"),a=require("../../store/wallet.store.cjs"),u={class:"mn-b-small t-center t-bold"},d={class:"radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center"},m={class:"t-semi"},b={class:"t-semi"},p={__name:"CardBalanceReplenished",emits:["close"],setup(_,{emit:s}){const l=s,{t}=r.useI18n({useScope:"global",...i.default}),n=e.computed(()=>new c.BigNumber(a.state.depositInfo.amount).shiftedBy(-8).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString());function o(){l("close")}return(f,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",u,e.toDisplayString(e.unref(t)("wallet.balanceReplenished")),1),e.createElementVNode("div",d,[e.createElementVNode("h3",m,e.toDisplayString(e.unref(t)("wallet.youReceived")),1),e.createElementVNode("h3",b,e.toDisplayString(n.value)+" WDT ",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:o},e.toDisplayString(e.unref(t)("wallet.backToWallet")),1)],64))}};exports.default=p;
@@ -0,0 +1,34 @@
1
+ import { computed as r, openBlock as a, createElementBlock as m, Fragment as d, createElementVNode as e, toDisplayString as t, unref as o } from "vue";
2
+ import { useI18n as p } from "vue-i18n";
3
+ import { BigNumber as u } from "../../../../../../node_modules/bignumber.js/bignumber.js";
4
+ import b from "../../localization/wallet.json.js";
5
+ import { state as _ } from "../../store/wallet.store.js";
6
+ const f = { class: "mn-b-small t-center t-bold" }, h = { class: "radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center" }, x = { class: "t-semi" }, g = { class: "t-semi" }, T = {
7
+ __name: "CardBalanceReplenished",
8
+ emits: ["close"],
9
+ setup(k, { emit: l }) {
10
+ const n = l, { t: s } = p({
11
+ useScope: "global",
12
+ ...b
13
+ }), c = r(
14
+ () => new u(_.depositInfo.amount).shiftedBy(-8).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString()
15
+ );
16
+ function i() {
17
+ n("close");
18
+ }
19
+ return (v, B) => (a(), m(d, null, [
20
+ e("h2", f, t(o(s)("wallet.balanceReplenished")), 1),
21
+ e("div", h, [
22
+ e("h3", x, t(o(s)("wallet.youReceived")), 1),
23
+ e("h3", g, t(c.value) + " WDT ", 1)
24
+ ]),
25
+ e("button", {
26
+ 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",
27
+ onClick: i
28
+ }, t(o(s)("wallet.backToWallet")), 1)
29
+ ], 64));
30
+ }
31
+ };
32
+ export {
33
+ T as default
34
+ };
@@ -0,0 +1 @@
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.vue.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:"CardDeposit",emits:["back-selection","switch-menu"],setup(_,{emit:c}){const l=c,{t}=u.useI18n({useScope:"global",...a.default});function i(){l("back-selection")}function r(s=0){l("switch-menu",s)}return(s,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m,e.createElementVNode("div",d,[e.createVNode(o.default,{placeholder:e.unref(t)("wallet.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:n[0]||(n[0]=h=>r(3))},e.toDisplayString(e.unref(t)("wallet.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)("wallet.backToSelection")),1)],64))}};exports.default=f;
@@ -0,0 +1,42 @@
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.vue.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" }, w = /* @__PURE__ */ e("div", { class: "uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi" }, " USD ", -1), x = /* @__PURE__ */ e("h3", { class: "t-semi" }, "You will receieve: 0 WDT", -1), j = {
6
+ __name: "CardDeposit",
7
+ emits: ["back-selection", "switch-menu"],
8
+ setup(g, { emit: o }) {
9
+ const l = o, { t } = _({
10
+ useScope: "global",
11
+ ...b
12
+ });
13
+ function a() {
14
+ l("back-selection");
15
+ }
16
+ function r(n = 0) {
17
+ l("switch-menu", n);
18
+ }
19
+ return (n, i) => (m(), u(p, null, [
20
+ h,
21
+ e("div", k, [
22
+ d(f, {
23
+ placeholder: s(t)("wallet.enterAmount"),
24
+ class: "pd-medium radius-small"
25
+ }, null, 8, ["placeholder"]),
26
+ w
27
+ ]),
28
+ x,
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: i[0] || (i[0] = (y) => r(3))
32
+ }, c(s(t)("wallet.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: a
36
+ }, c(s(t)("wallet.backToSelection")), 1)
37
+ ], 64));
38
+ }
39
+ };
40
+ export {
41
+ j as default
42
+ };
@@ -0,0 +1 @@
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:"CashDeposit",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;
@@ -0,0 +1,26 @@
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: "CashDeposit",
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
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-i18n"),c=require("../../../../../../node_modules/bignumber.js/bignumber.cjs"),t=require("../../store/wallet.store.cjs"),k=require("../../localization/wallet.json.cjs"),g=require("../../../../../components/Field/Field.vue.cjs"),w=require("../../../../../components/Select/Select.vue.cjs"),h={class:"mn-b-small t-center t-bold"},v={class:"t-semi"},_=["disabled"],y={__name:"CryptoDeposit",emits:["back-selection","switch-menu"],setup(N,{emit:u}){c.BigNumber.config({EXPONENTIAL_AT:[-1e3,2e4]});const r=e.ref(1),i=u,{t:s}=b.useI18n({useScope:"global",...k.default}),d=e.computed(()=>new c.BigNumber(r.value).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString()),p=e.computed(()=>{const l=[],o=Object.keys(t.state.config||{});for(const n of o)for(const a of Object.keys(t.state.config[n].tokens))l.push({name:`${n}-${a}`,value:{token:t.state.config[n].tokens[a],network:n}});return l});e.onMounted(()=>{t.actions.loadConfig()});function m(){i("back-selection")}function f(l=0){i("switch-menu",l)}return(l,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",h,e.toDisplayString(e.unref(s)("wallet.depositWithCrypto")),1),e.unref(t.state).config?(e.openBlock(),e.createBlock(g.default,{key:0,field:r.value,"onUpdate:field":o[1]||(o[1]=n=>r.value=n),placeholder:e.unref(s)("wallet.enterAmount"),class:"mn-b-thin bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(w.default,{options:p.value,select:e.unref(t.state).chosenNetwork,"onUpdate:select":o[0]||(o[0]=n=>e.unref(t.state).chosenNetwork=n),class:"bg-light t-nowrap pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["options","select"])]),_:1},8,["field","placeholder"])):e.createCommentVNode("",!0),e.createElementVNode("p",v,"You will receive: "+e.toDisplayString(d.value)+" "+e.toDisplayString(e.unref(s)("wallet.token")),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:o[2]||(o[2]=n=>e.unref(t.actions).requestCryptoDeposit(r.value).then(()=>f(5))),disabled:e.unref(t.state).depositRequestIsActive||!e.unref(t.state).config},e.toDisplayString(e.unref(s)("wallet.pay")),9,_),e.createElementVNode("button",{class:"uppercase w-100 t-center mn-t-small",onClick:m},e.toDisplayString(e.unref(s)("wallet.backToSelection")),1)],64))}};exports.default=y;
@@ -0,0 +1,76 @@
1
+ import { ref as _, computed as m, onMounted as v, openBlock as u, createElementBlock as N, Fragment as y, createElementVNode as c, toDisplayString as i, unref as e, createBlock as C, withCtx as E, createVNode as A, createCommentVNode as x } from "vue";
2
+ import { useI18n as S } from "vue-i18n";
3
+ import { BigNumber as d } from "../../../../../../node_modules/bignumber.js/bignumber.js";
4
+ import { state as n, actions as f } from "../../store/wallet.store.js";
5
+ import B from "../../localization/wallet.json.js";
6
+ import O from "../../../../../components/Field/Field.vue.js";
7
+ import T from "../../../../../components/Select/Select.vue.js";
8
+ const $ = { class: "mn-b-small t-center t-bold" }, D = { class: "t-semi" }, I = ["disabled"], G = {
9
+ __name: "CryptoDeposit",
10
+ emits: ["back-selection", "switch-menu"],
11
+ setup(V, { emit: b }) {
12
+ d.config({
13
+ EXPONENTIAL_AT: [-1e3, 2e4]
14
+ });
15
+ const r = _(1), a = b, { t: s } = S({
16
+ useScope: "global",
17
+ ...B
18
+ }), k = m(
19
+ () => new d(r.value).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString()
20
+ ), w = m(() => {
21
+ const l = [], o = Object.keys(n.config || {});
22
+ for (const t of o)
23
+ for (const p of Object.keys(n.config[t].tokens))
24
+ l.push({
25
+ name: `${t}-${p}`,
26
+ value: {
27
+ token: n.config[t].tokens[p],
28
+ network: t
29
+ }
30
+ });
31
+ return l;
32
+ });
33
+ v(() => {
34
+ f.loadConfig();
35
+ });
36
+ function h() {
37
+ a("back-selection");
38
+ }
39
+ function g(l = 0) {
40
+ a("switch-menu", l);
41
+ }
42
+ return (l, o) => (u(), N(y, null, [
43
+ c("h3", $, i(e(s)("wallet.depositWithCrypto")), 1),
44
+ e(n).config ? (u(), C(O, {
45
+ key: 0,
46
+ field: r.value,
47
+ "onUpdate:field": o[1] || (o[1] = (t) => r.value = t),
48
+ placeholder: e(s)("wallet.enterAmount"),
49
+ class: "mn-b-thin bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"
50
+ }, {
51
+ default: E(() => [
52
+ A(T, {
53
+ options: w.value,
54
+ select: e(n).chosenNetwork,
55
+ "onUpdate:select": o[0] || (o[0] = (t) => e(n).chosenNetwork = t),
56
+ class: "bg-light t-nowrap pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"
57
+ }, null, 8, ["options", "select"])
58
+ ]),
59
+ _: 1
60
+ }, 8, ["field", "placeholder"])) : x("", !0),
61
+ c("p", D, "You will receive: " + i(k.value) + " " + i(e(s)("wallet.token")), 1),
62
+ c("button", {
63
+ 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",
64
+ onClick: o[2] || (o[2] = (t) => e(f).requestCryptoDeposit(r.value).then(() => g(5))),
65
+ disabled: e(n).depositRequestIsActive || !e(n).config
66
+ }, i(e(s)("wallet.pay")), 9, I),
67
+ c("button", {
68
+ class: "uppercase w-100 t-center mn-t-small",
69
+ onClick: h
70
+ }, i(e(s)("wallet.backToSelection")), 1)
71
+ ], 64));
72
+ }
73
+ };
74
+ export {
75
+ G as default
76
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../../../node_modules/qrcode/lib/browser.cjs");const N=require("vue-i18n"),a=require("../../../../../../node_modules/bignumber.js/bignumber.cjs"),E=require("../../localization/wallet.json.cjs"),t=require("../../store/wallet.store.cjs");;/* empty css */const T=require("../../../../../../../_virtual/_plugin-vue_export-helper.cjs"),b=require("../../../../../../../_virtual/browser.cjs"),i=n=>(e.pushScopeId("data-v-97ae0556"),n=n(),e.popScopeId(),n),h={class:"mn-b-small t-center t-bold"},g={class:"flex flex-justify-between"},y={class:"t-semi"},v={class:"flex flex-justify-between"},w={class:"t-semi t-truncate address"},I=i(()=>e.createElementVNode("div",{class:"flex flex-justify-around radius-big br-solid br-2px br-black-transp-10"},[e.createElementVNode("canvas",{id:"qrcode_address_deposit"})],-1)),k={class:"flex flex-justify-between"},A=i(()=>e.createElementVNode("h3",{class:"t-semi"},"You will receive:",-1)),V={class:"t-semi"},x={key:0,class:"flex flex-justify-between"},R=i(()=>e.createElementVNode("h3",{class:"t-semi"},"Times left:",-1)),C={class:"t-semi"},D={class:"flex flex-justify-between"},B=i(()=>e.createElementVNode("h3",{class:"t-semi"},"Status:",-1)),q={class:"t-semi"},F={__name:"CryptoDepositProcessing",emits:["back-selection","switch-menu"],setup(n,{emit:d}){a.BigNumber.config({EXPONENTIAL_AT:[-1e3,2e4]});const c=d,{t:l}=N.useI18n({useScope:"global",...E.default}),m=e.computed(()=>{const s=Math.floor(t.timer.remaining/60),o=Math.floor(t.timer.remaining%60);return`${s}:${o<10?`0${o}`:o}`}),r=e.computed(()=>new a.BigNumber(t.state.depositInfo.amount).shiftedBy(-8).toString()),p=e.computed(()=>new a.BigNumber(r.value).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString()),_=e.computed(()=>{switch(t.state.depositInfo.status){case"TRANSFER_STATUS_WAITING_FOR_TX":return"Waiting for payment";case"TRANSFER_STATUS_SENT":return`Confirming (${`${t.state.depositInfo.confirmations||0} / ${t.state.config[t.state.chosenNetwork.value.network].confirmations}`})`;default:return"Superposition."}});function f(){c("back-selection")}function S(s=0){c("switch-menu",s)}function u(s){navigator.clipboard.writeText(s)}return e.onMounted(()=>{b.__exports.toCanvas(document.getElementById("qrcode_address_deposit"),t.state.depositInfo.to,{width:300},s=>{s&&console.error(s)})}),e.watch(t.state,async()=>{t.state.depositInfo.status==="TRANSFER_STATUS_SENT"&&t.actions.stopTimer(),t.state.depositInfo.status==="TRANSFER_STATUS_COMPLETED"&&(t.actions.disconnectWebSocket(),S(3))},{deep:!0}),(s,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",h,e.toDisplayString(e.unref(l)("wallet.depositWithCrypto")),1),e.createElementVNode("div",g,[e.createElementVNode("h3",y,"Amount: "+e.toDisplayString(r.value)+" "+e.toDisplayString(e.unref(t.state).chosenNetwork.name.toUpperCase()),1),e.createElementVNode("button",{class:"uppercase t-main cursor-pointer",onClick:o[0]||(o[0]=()=>u(r.value))}," copy ")]),e.createElementVNode("div",v,[e.createElementVNode("h3",w,"Wallet: "+e.toDisplayString(e.unref(t.state).depositInfo.to),1),e.createElementVNode("button",{class:"uppercase t-main cursor-pointer",onClick:o[1]||(o[1]=()=>u(e.unref(t.state).depositInfo.to))}," copy ")]),I,e.createElementVNode("div",k,[A,e.createElementVNode("h3",V,e.toDisplayString(p.value)+" WDT",1)]),e.unref(t.state).depositInfo.status==="TRANSFER_STATUS_WAITING_FOR_TX"?(e.openBlock(),e.createElementBlock("div",x,[R,e.createElementVNode("h3",C,e.toDisplayString(m.value),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",D,[B,e.createElementVNode("h3",q,e.toDisplayString(_.value),1)]),e.unref(t.state).depositInfo.status==="TRANSFER_STATUS_WAITING_FOR_TX"?(e.openBlock(),e.createElementBlock("button",{key:1,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:o[2]||(o[2]=j=>e.unref(t.actions).cancelDeposit().then(()=>f()))},e.toDisplayString(e.unref(l)("wallet.cancel")),1)):e.createCommentVNode("",!0)],64))}},W=T.default(F,[["__scopeId","data-v-97ae0556"]]);exports.default=W;