@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
@@ -6,10 +6,10 @@ import N from "../../../../components/Popup/Popup.vue.js";
6
6
  /* empty css */
7
7
  import O from "../../../../components/FieldTags/BlockTags.vue.js";
8
8
  import E from "../../../../components/Checkbox/Checkbox.vue.js";
9
- import F from "../../../../components/Field/Field.vue.js";
10
- import L from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
- import M from "../../../../components/Button/Button.vue.js";
12
- import { useRoute as R, useRouter as S } from "vue-router";
9
+ import L from "../../../../components/Field/Field.vue.js";
10
+ import M from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
+ import R from "../../../../components/Button/Button.vue.js";
12
+ import { useRoute as S, useRouter as F } from "vue-router";
13
13
  import { read as H, clean as j, state as q, update as k, create as y, remove as G } from "../../store/blogposts.js";
14
14
  import { state as f } from "../../../auth/store/auth.js";
15
15
  import { actions as I } from "../../../organizations/store/organizations.js";
@@ -28,7 +28,7 @@ const J = { class: "pd-thin" }, K = {
28
28
  }, _e = {
29
29
  __name: "CreateBlogPost",
30
30
  setup(ae) {
31
- const d = R(), c = S();
31
+ const c = S(), d = F();
32
32
  let e = r(null), b = r(null);
33
33
  const g = r([]), s = r(null);
34
34
  V(async () => {
@@ -41,8 +41,8 @@ const J = { class: "pd-thin" }, K = {
41
41
  name: o.profile.name,
42
42
  _id: o._id,
43
43
  photo: o.profile.photo
44
- })), d.params.url) {
45
- const o = await H({ user: f.user._id, url: d.params.url });
44
+ })), c.params.url) {
45
+ const o = await H({ user: f.user._id, url: c.params.url });
46
46
  e.value = o.pop();
47
47
  } else
48
48
  j(), e.value = q.current;
@@ -74,34 +74,34 @@ const J = { class: "pd-thin" }, K = {
74
74
  function C() {
75
75
  h.value = !1;
76
76
  }
77
- function B() {
78
- g.value.length > 0 && g.value.map((t) => t.text), e.value.status = "draft", e.value.name = e.value.content[0].content, d.params.url ? k(e.value).then((t) => {
79
- c.push({ name: "BlogPost", params: { url: t.url } });
77
+ function $() {
78
+ g.value.length > 0 && g.value.map((t) => t.text), e.value.status = "draft", e.value.name = e.value.content[0].content, c.params.url ? k(e.value).then((t) => {
79
+ d.push({ name: "BlogPost", params: { url: t.url } });
80
80
  }).catch((t) => {
81
81
  console.log(t);
82
82
  }) : y(e.value).then((t) => {
83
- c.push({ name: "BlogPost", params: { url: t.url } });
83
+ d.push({ name: "BlogPost", params: { url: t.url } });
84
84
  }).catch((t) => {
85
85
  console.log(t);
86
86
  });
87
87
  }
88
- function $() {
88
+ function B() {
89
89
  s.value && (e.value.owner = {
90
90
  target: s.value._id,
91
91
  type: "organization"
92
- }), s.value || (e.value.creator.hidden = !1), s.value || (e.value.organization = e.value.creator), e.value.status = "published", e.value.name = e.value.content[0].content, d.params.url ? k(e.value).then((t) => {
93
- console.log(e.value), c.push({ name: "BlogPost", params: { url: t.url } });
92
+ }), s.value || (e.value.creator.hidden = !1), s.value || (e.value.organization = e.value.creator), e.value.status = "published", e.value.name = e.value.content[0].content, c.params.url ? k(e.value).then((t) => {
93
+ console.log(e.value), d.push({ name: "BlogPost", params: { url: t.url } });
94
94
  }).catch((t) => {
95
95
  console.error(t);
96
96
  }) : y(e.value).then((t) => {
97
- c.push({ name: "BlogPost", params: { url: t.url } });
97
+ d.push({ name: "BlogPost", params: { url: t.url } });
98
98
  }).catch((t) => {
99
99
  console.error(t);
100
100
  });
101
101
  }
102
102
  function T() {
103
103
  confirm("Are you sure you want to delete this post?") && G(e.value._id).then((t) => {
104
- c.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
104
+ d.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
105
105
  }).catch((t) => {
106
106
  console.log(t);
107
107
  });
@@ -119,13 +119,13 @@ const J = { class: "pd-thin" }, K = {
119
119
  default: v(() => [
120
120
  l(e) ? (u(), m("section", W, [
121
121
  n("div", X, [
122
- l(d).params.url ? (u(), m("a", {
122
+ l(c).params.url ? (u(), m("a", {
123
123
  key: 0,
124
124
  onClick: o[1] || (o[1] = (a) => T()),
125
125
  class: "mn-r-auto bg-red t-white t-black button"
126
126
  }, "Delete")) : p("", !0),
127
127
  n("a", {
128
- onClick: o[2] || (o[2] = (a) => B()),
128
+ onClick: o[2] || (o[2] = (a) => $()),
129
129
  class: "mn-l-auto bg-white t-black button"
130
130
  }, "To Drafts"),
131
131
  n("a", {
@@ -150,14 +150,14 @@ const J = { class: "pd-thin" }, K = {
150
150
  class: "mn-b-small"
151
151
  }, null, 8, ["tags"]),
152
152
  Z,
153
- i(F, {
153
+ i(L, {
154
154
  field: l(e).source,
155
155
  "onUpdate:field": o[5] || (o[5] = (a) => l(e).source = a),
156
156
  placeholder: "Add full link to the source",
157
157
  class: "mn-b-medium bg-light radius-medium pd-small"
158
158
  }, null, 8, ["field"]),
159
159
  ee,
160
- i(L, {
160
+ i(M, {
161
161
  modelValue: s.value,
162
162
  "onUpdate:modelValue": o[6] || (o[6] = (a) => s.value = a),
163
163
  options: l(b),
@@ -178,8 +178,8 @@ const J = { class: "pd-thin" }, K = {
178
178
  class: "w-100"
179
179
  }, null, 8, ["radio"])
180
180
  ])) : p("", !0),
181
- i(M, {
182
- submit: $,
181
+ i(R, {
182
+ submit: B,
183
183
  callback: t.redirectTo,
184
184
  class: "w-100 bg-black t-white"
185
185
  }, {
@@ -1,9 +1,9 @@
1
- import { ref as p, openBlock as n, createElementBlock as c, createVNode as b, createElementVNode as d } from "vue";
1
+ import { ref as p, openBlock as n, createElementBlock as c, createVNode as b, createElementVNode as s } from "vue";
2
2
  import f from "../../../../components/Field/Field.vue.js";
3
- const v = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" }, k = ["innerHTML"], w = {
3
+ const v = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" }, k = ["innerHTML"], _ = {
4
4
  key: 1,
5
5
  class: ""
6
- }, x = /* @__PURE__ */ d("p", { class: "t-center" }, "Embeds from youtube.com, vimeo.com, soundcloud.com are allowed", -1), y = {
6
+ }, w = /* @__PURE__ */ s("p", { class: "t-center" }, "Embeds from youtube.com, vimeo.com, soundcloud.com are allowed", -1), y = {
7
7
  __name: "Embed",
8
8
  props: [
9
9
  "label",
@@ -11,9 +11,9 @@ const v = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" }, k = ["i
11
11
  "prop"
12
12
  ],
13
13
  emits: ["input", "updateBlock"],
14
- setup(o, { emit: a }) {
15
- const e = p(null), i = o, s = a;
16
- function r(m) {
14
+ setup(o, { emit: d }) {
15
+ const e = p(null), i = o, m = d;
16
+ function r(a) {
17
17
  return [
18
18
  /youtube\.com/,
19
19
  /facebook\.com/,
@@ -26,17 +26,17 @@ const v = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" }, k = ["i
26
26
  /linkedin\.com/,
27
27
  /medium\.com/,
28
28
  /spotify\.com/
29
- ].some((l) => l.test(m));
29
+ ].some((l) => l.test(a));
30
30
  }
31
31
  function u() {
32
- e.value && r(e.value) ? (s("input", e.value), s("updateBlock", i.prop, { content: e.value })) : alert("Invalid embed code or source not allowed.");
32
+ e.value && r(e.value) ? (m("input", e.value), m("updateBlock", i.prop, { content: e.value })) : alert("Invalid embed code or source not allowed.");
33
33
  }
34
- return (m, t) => (n(), c("div", v, [
34
+ return (a, t) => (n(), c("div", v, [
35
35
  o.prop.content ? (n(), c("div", {
36
36
  key: 0,
37
37
  innerHTML: o.prop.content,
38
38
  class: "flex-center flex"
39
- }, null, 8, k)) : (n(), c("div", w, [
39
+ }, null, 8, k)) : (n(), c("div", _, [
40
40
  b(f, {
41
41
  field: e.value,
42
42
  "onUpdate:field": t[0] || (t[0] = (l) => e.value = l),
@@ -44,9 +44,9 @@ const v = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" }, k = ["i
44
44
  placeholder: "Paste your embed code here",
45
45
  class: "w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-b-thin"
46
46
  }, null, 8, ["field"]),
47
- d("div", { class: "flex-v-center flex-nowrap flex gap-small" }, [
48
- x,
49
- d("button", {
47
+ s("div", { class: "flex-v-center flex-nowrap flex gap-small" }, [
48
+ w,
49
+ s("button", {
50
50
  onClick: u,
51
51
  class: "button-small button"
52
52
  }, " Save ")
@@ -1,7 +1,7 @@
1
- import { ref as v, onMounted as $, unref as a, openBlock as u, createElementBlock as r, createElementVNode as s, createVNode as i, createCommentVNode as p, createBlock as G, withCtx as D, Fragment as _, renderList as T, createTextVNode as F } from "vue";
1
+ import { ref as v, onMounted as N, unref as a, openBlock as u, createElementBlock as r, createElementVNode as s, createVNode as i, createCommentVNode as p, createBlock as G, withCtx as D, Fragment as _, renderList as T, createTextVNode as A } from "vue";
2
2
  /* empty css */
3
- import A from "../../../constructor/components/sections/Constructor.vue.js";
4
- import B from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
3
+ import B from "../../../constructor/components/sections/Constructor.vue.js";
4
+ import F from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
5
5
  /* empty css */
6
6
  import E from "../../../../components/Block/Block.vue.js";
7
7
  import I from "../../../../components/Popup/Popup.vue.js";
@@ -49,7 +49,7 @@ const ee = {
49
49
  const h = j(), b = q();
50
50
  let e = v(null), x = v(null);
51
51
  const y = v([]), m = v(null), c = v(/* @__PURE__ */ new Date());
52
- $(async () => {
52
+ N(async () => {
53
53
  if (h.params.url) {
54
54
  const t = await K({ user: d.user._id, url: h.params.url });
55
55
  e.value = t.pop(), console.log(e.value);
@@ -121,7 +121,7 @@ const ee = {
121
121
  console.log(o);
122
122
  });
123
123
  }
124
- function N() {
124
+ function $() {
125
125
  confirm("Are you sure you want to delete this event?") && X(e.value._id).then((o) => {
126
126
  b.push({ name: "User Events", params: { _id: e.value.creator.target._id } });
127
127
  }).catch((o) => {
@@ -437,7 +437,7 @@ const ee = {
437
437
  }, null, 8, ["field"])
438
438
  ])) : p("", !0),
439
439
  Te,
440
- i(a(B), {
440
+ i(a(F), {
441
441
  modelValue: c.value,
442
442
  "onUpdate:modelValue": t[32] || (t[32] = (l) => c.value = l),
443
443
  range: "",
@@ -445,7 +445,7 @@ const ee = {
445
445
  }, null, 8, ["modelValue"]),
446
446
  Ee,
447
447
  a(e) ? (u(), r("section", Pe, [
448
- i(A, {
448
+ i(B, {
449
449
  content: a(e).content,
450
450
  onUpdate: t[33] || (t[33] = (l) => a(e).content = l)
451
451
  }, null, 8, ["content"])
@@ -454,7 +454,7 @@ const ee = {
454
454
  s("div", Oe, [
455
455
  a(h).params.url ? (u(), r("a", {
456
456
  key: 0,
457
- onClick: t[34] || (t[34] = (l) => N()),
457
+ onClick: t[34] || (t[34] = (l) => $()),
458
458
  class: "mn-r-auto bg-red t-white t-black button"
459
459
  }, "Delete")) : p("", !0),
460
460
  s("a", {
@@ -507,7 +507,7 @@ const ee = {
507
507
  class: "w-100 bg-black t-white"
508
508
  }, {
509
509
  default: D(() => [
510
- F("Publish")
510
+ A("Publish")
511
511
  ]),
512
512
  _: 1
513
513
  }, 8, ["callback"])
@@ -1,11 +1,11 @@
1
- import { ref as p, onMounted as B, unref as _, openBlock as i, createElementBlock as o, createElementVNode as r, createVNode as l, withCtx as u, Fragment as $, renderList as q, createTextVNode as v, toDisplayString as f, createBlock as P, createCommentVNode as b } from "vue";
1
+ import { ref as p, onMounted as B, unref as _, openBlock as i, createElementBlock as o, createElementVNode as r, createVNode as l, withCtx as d, Fragment as $, renderList as q, createTextVNode as v, toDisplayString as f, createBlock as P, createCommentVNode as b } from "vue";
2
2
  import V from "../../../../components/Feed/Feed.vue.js";
3
- import F from "../../../../components/Block/Block.vue.js";
4
- import O from "../../../../components/Popup/Popup.vue.js";
3
+ import O from "../../../../components/Block/Block.vue.js";
4
+ import S from "../../../../components/Popup/Popup.vue.js";
5
5
  import g from "../../../../components/Field/Field.vue.js";
6
6
  import w from "../../../../components/Button/Button.vue.js";
7
- import S from "../elements/ButtonCheck.vue.js";
8
- import D from "../../../icons/navigation/IconDelete.vue.js";
7
+ import D from "../elements/ButtonCheck.vue.js";
8
+ import F from "../../../icons/navigation/IconDelete.vue.js";
9
9
  import Q from "../../../icons/navigation/IconAdd.vue.js";
10
10
  import { useRoute as R, useRouter as L } from "vue-router";
11
11
  import { read as M } from "../../store/events.js";
@@ -72,43 +72,43 @@ const z = {
72
72
  onClick: a[0] || (a[0] = (e) => E()),
73
73
  class: "radius-extra uppercase button-small flex-child flex-child-shrink-0 hover-scale-1 cursor-pointer t-white bg-second"
74
74
  }, " Add Tickets "),
75
- l(S, {
75
+ l(D, {
76
76
  onQrcodecheck: a[1] || (a[1] = (e) => n.value = !n.value),
77
77
  class: "w-100 pd-medium mn-auto"
78
78
  })
79
79
  ]),
80
- l(O, {
80
+ l(S, {
81
81
  title: "Добавить участника",
82
82
  onClosePopup: y,
83
83
  isPopupOpen: h.value,
84
84
  class: "w-max-40r"
85
85
  }, {
86
- default: u(() => [
87
- l(F, {
86
+ default: d(() => [
87
+ l(O, {
88
88
  title: "Add tickets",
89
89
  placeholder: "No parameters added yet",
90
90
  class: "cols-1 mn-b-thin gap-thin"
91
91
  }, {
92
- default: u(() => [
92
+ default: d(() => [
93
93
  (i(!0), o($, null, q(m.value, (e, t) => (i(), o("div", {
94
94
  class: "gap-thin flex-nowrap flex",
95
95
  key: t
96
96
  }, [
97
97
  l(g, {
98
98
  field: e.name,
99
- "onUpdate:field": (d) => e.name = d,
99
+ "onUpdate:field": (u) => e.name = u,
100
100
  placeholder: "Name",
101
101
  class: "w-50 bg-white radius-small pd-medium"
102
102
  }, null, 8, ["field", "onUpdate:field"]),
103
103
  l(g, {
104
104
  field: e.email,
105
- "onUpdate:field": (d) => e.email = d,
105
+ "onUpdate:field": (u) => e.email = u,
106
106
  placeholder: "Email",
107
107
  class: "w-100 bg-white radius-small pd-medium"
108
108
  }, null, 8, ["field", "onUpdate:field"]),
109
109
  l(g, {
110
110
  field: e.quantity,
111
- "onUpdate:field": (d) => e.quantity = d,
111
+ "onUpdate:field": (u) => e.quantity = u,
112
112
  placeholder: "Quantity",
113
113
  type: "number",
114
114
  class: "w-25 bg-white radius-small pd-medium"
@@ -127,7 +127,7 @@ const z = {
127
127
  onClick: () => m.value.splice(t, 1),
128
128
  class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"
129
129
  }, [
130
- l(D, {
130
+ l(F, {
131
131
  class: "i-medium",
132
132
  fill: "rgb(var(--white)"
133
133
  })
@@ -138,7 +138,7 @@ const z = {
138
138
  callback: y,
139
139
  class: "w-100 bg-black t-white"
140
140
  }, {
141
- default: u(() => [
141
+ default: d(() => [
142
142
  v(" Create Tickets ")
143
143
  ]),
144
144
  _: 1
@@ -166,10 +166,10 @@ const z = {
166
166
  },
167
167
  external: n.value
168
168
  }, {
169
- default: u(({
169
+ default: d(({
170
170
  items: e
171
171
  }) => [
172
- (i(!0), o($, null, q(e, (t, d) => {
172
+ (i(!0), o($, null, q(e, (t, u) => {
173
173
  var C, N;
174
174
  return i(), o("div", J, [
175
175
  r("a", {
@@ -192,7 +192,7 @@ const z = {
192
192
  callback: s.redirectTo,
193
193
  class: "w-min h-min pd-small bg-black t-white"
194
194
  }, {
195
- default: u(() => [
195
+ default: d(() => [
196
196
  v(" Deactivate ")
197
197
  ]),
198
198
  _: 2
@@ -203,7 +203,7 @@ const z = {
203
203
  callback: s.redirectTo,
204
204
  class: "w-min h-min pd-small bg-green t-white"
205
205
  }, {
206
- default: u(() => [
206
+ default: d(() => [
207
207
  v(" Activate ")
208
208
  ]),
209
209
  _: 2
@@ -1,6 +1,6 @@
1
1
  import { ref as s, openBlock as p, createElementBlock as i, createVNode as r } from "vue";
2
- import d from "../../../icons/navigation/IconSearch.vue.js";
3
- import m from "../../../../components/Field/Field.vue.js";
2
+ import m from "../../../icons/navigation/IconSearch.vue.js";
3
+ import d from "../../../../components/Field/Field.vue.js";
4
4
  const f = { class: "flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-big" }, g = {
5
5
  __name: "BlockSearch",
6
6
  props: {
@@ -14,15 +14,15 @@ const f = { class: "flex-v-center flex-nowrap flex pd-small bg-light w-100 radiu
14
14
  }
15
15
  },
16
16
  emits: ["search"],
17
- setup(l, { emit: o }) {
18
- const a = o;
17
+ setup(l, { emit: a }) {
18
+ const o = a;
19
19
  s(null);
20
20
  const c = (e) => {
21
- a("search", e);
21
+ o("search", e);
22
22
  };
23
23
  return (e, t) => (p(), i("div", f, [
24
- r(d, { class: "i-medium t-transp mn-r-thin" }),
25
- r(m, {
24
+ r(m, { class: "i-medium t-transp mn-r-thin" }),
25
+ r(d, {
26
26
  placeholder: l.placeholder,
27
27
  "onUpdate:field": t[0] || (t[0] = (n) => c(n)),
28
28
  class: "w-100"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue-i18n"),e={en:"🌎 EN",ru:"🇷🇺 RU",zh:"🇨🇳 ZH",fr:"🇫🇷 FR",de:"🇩🇪 DE",it:"🇮🇹 IT"},a={};for(const l of Object.keys(e))a[l]={};const s=t.createI18n({locale:"en",fallbackLocale:{en:["en-default"],ru:["ru-default"],zh:["zh-default"],fr:["fr-default"],de:["de-default"],it:["it-default"]},legacy:!1,globalInjection:!0,warnHtmlMessage:!1,missingWarn:!1,fallbackWarn:!1,messages:a,availableLocales:Object.keys(e)});exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue-i18n"),e={en:"🌎 EN",ru:"🇷🇺 RU",zh:"🇨🇳 ZH",fr:"🇫🇷 FR",de:"🇩🇪 DE",it:"🇮🇹 IT"},a={};for(const l of Object.keys(e))a[l]={};const s=t.createI18n({locale:"en",fallbackLocale:{en:["en-default"],ru:["ru-default","en-default"],zh:["zh-default","en-default"],fr:["fr-default","en-default"],de:["de-default","en-default"],it:["it-default","en-default"]},legacy:!1,globalInjection:!0,warnHtmlMessage:!1,missingWarn:!1,fallbackWarn:!1,messages:a,availableLocales:Object.keys(e)});exports.default=s;
@@ -1,4 +1,4 @@
1
- import { createI18n as s } from "vue-i18n";
1
+ import { createI18n as t } from "vue-i18n";
2
2
  const e = {
3
3
  en: "🌎 EN",
4
4
  ru: "🇷🇺 RU",
@@ -9,15 +9,15 @@ const e = {
9
9
  }, a = {};
10
10
  for (const l of Object.keys(e))
11
11
  a[l] = {};
12
- const f = s({
12
+ const s = t({
13
13
  locale: "en",
14
14
  fallbackLocale: {
15
15
  en: ["en-default"],
16
- ru: ["ru-default"],
17
- zh: ["zh-default"],
18
- fr: ["fr-default"],
19
- de: ["de-default"],
20
- it: ["it-default"]
16
+ ru: ["ru-default", "en-default"],
17
+ zh: ["zh-default", "en-default"],
18
+ fr: ["fr-default", "en-default"],
19
+ de: ["de-default", "en-default"],
20
+ it: ["it-default", "en-default"]
21
21
  },
22
22
  legacy: !1,
23
23
  globalInjection: !0,
@@ -28,5 +28,5 @@ const f = s({
28
28
  availableLocales: Object.keys(e)
29
29
  });
30
30
  export {
31
- f as default
31
+ s as default
32
32
  };
@@ -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 a=require("../../../../components/Menu/Menu.vue.cjs"),r=require("../../../../components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-light radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const a=require("../../../../components/Menu/Menu.vue2.cjs"),r=require("../../../../components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-light radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
@@ -2,7 +2,7 @@ import { ref as l, openBlock as m, createElementBlock as u, createVNode as t, wi
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import p from "../../../../components/Menu/Menu.vue.js";
5
+ import p from "../../../../components/Menu/Menu.vue2.js";
6
6
  import n from "../../../../components/Menu/MenuItem.vue.js";
7
7
  import { useRoute as d, useRouter as h } from "vue-router";
8
8
  import "../../../auth/store/auth.js";
@@ -1,4 +1,4 @@
1
- import { ref as o, openBlock as m, createBlock as i, withCtx as u, createVNode as s, createElementVNode as d, unref as n, isRef as f } from "vue";
1
+ import { ref as m, openBlock as o, createBlock as i, withCtx as u, createVNode as s, createElementVNode as d, unref as n, isRef as f } from "vue";
2
2
  import p from "../../../../components/Block/Block.vue.js";
3
3
  import r from "../../../../components/Field/Field.vue.js";
4
4
  import c from "../../../../components/FieldPhone/FieldPhone.vue.js";
@@ -13,8 +13,8 @@ const h = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
13
13
  }
14
14
  },
15
15
  setup(t) {
16
- let a = o("instagram");
17
- return (w, e) => (m(), i(p, {
16
+ let a = m("instagram");
17
+ return (w, e) => (o(), i(p, {
18
18
  title: t.title,
19
19
  class: "mn-b-thin"
20
20
  }, {
@@ -1,10 +1,10 @@
1
1
  import { onMounted as n, openBlock as m, createBlock as u, withCtx as y, createElementVNode as t, createVNode as i } from "vue";
2
2
  import { state as o } from "../../../globals/store/globals.js";
3
- import v from "../../../../components/Block/Block.vue.js";
4
- import f from "../../../../components/Address/Address.vue2.js";
5
- import b from "../../../../components/LocationMarker/LocationMarker.vue2.js";
3
+ import f from "../../../../components/Block/Block.vue.js";
4
+ import v from "../../../../components/Address/Address.vue2.js";
5
+ import c from "../../../../components/LocationMarker/LocationMarker.vue2.js";
6
6
  import l from "../../../../components/Radio/Radio.vue.js";
7
- import c from "../../../../components/Field/Field.vue.js";
7
+ import b from "../../../../components/Field/Field.vue.js";
8
8
  const p = /* @__PURE__ */ t("h4", { class: "font-second mn-b-thin" }, "Select deliverty type", -1), w = { class: "mn-b-small flex-nowrap flex" }, g = /* @__PURE__ */ t("h4", { class: "font-second mn-b-thin" }, "Address", -1), O = {
9
9
  __name: "FormDelivery",
10
10
  props: {
@@ -14,7 +14,7 @@ const p = /* @__PURE__ */ t("h4", { class: "font-second mn-b-thin" }, "Select de
14
14
  const a = e;
15
15
  return n(() => {
16
16
  o.position && (a.order.delivery.address = o.position.address), o.position && (a.order.delivery.location = o.position.location);
17
- }), (s, d) => (m(), u(v, {
17
+ }), (s, d) => (m(), u(f, {
18
18
  title: "Delivery",
19
19
  class: "mn-b-thin",
20
20
  tooltip: "Delivery by mail takes 3-5 days."
@@ -45,7 +45,7 @@ const p = /* @__PURE__ */ t("h4", { class: "font-second mn-b-thin" }, "Select de
45
45
  }, null, 8, ["radio"])
46
46
  ]),
47
47
  g,
48
- i(f, {
48
+ i(v, {
49
49
  label: "Location",
50
50
  apiKey: s.GOOGLE_MAPS_API_KEY,
51
51
  address: e.order.delivery.address,
@@ -59,7 +59,7 @@ const p = /* @__PURE__ */ t("h4", { class: "font-second mn-b-thin" }, "Select de
59
59
  e.order.delivery.address = r;
60
60
  })
61
61
  }, null, 8, ["apiKey", "address", "location"]),
62
- i(b, {
62
+ i(c, {
63
63
  apiKey: s.GOOGLE_MAPS_API_KEY,
64
64
  address: e.order.delivery.address,
65
65
  location: e.order.delivery.location,
@@ -71,7 +71,7 @@ const p = /* @__PURE__ */ t("h4", { class: "font-second mn-b-thin" }, "Select de
71
71
  e.order.delivery.address = r;
72
72
  })
73
73
  }, null, 8, ["apiKey", "address", "location"]),
74
- i(c, {
74
+ i(b, {
75
75
  field: e.order.comment,
76
76
  "onUpdate:field": d[7] || (d[7] = (r) => e.order.comment = r),
77
77
  placeholder: "Comments regarding the address (apartment unit, floor level, building section)",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("vue-router"),p=require("../../../../components/Feed/Feed.vue.cjs");;/* empty css */;/* empty css */const q=require("../../../../components/Popup/Popup.vue.cjs"),M=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),N=require("../sections/MembersAdd.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");const g=require("../../../users/components/blocks/CardUser.vue.cjs"),x=require("../blocks/CardDepartment.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),m=require("../../../auth/store/auth.cjs"),u=require("../../store/invites.cjs"),f=require("../../store/memberships.cjs"),k=require("../../store/organizations.cjs"),b=require("../../store/departments.cjs"),z={class:"pd-thin"},P={key:2,class:"cols-1 gap-thin"},V={key:3},I={__name:"Members",setup(A){const o=v.useRoute();v.useRouter();const d=e.ref(null),s=e.ref("members"),c=e.ref(!1);function w(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{d.value=(await k.actions.read({_id:o.params._id,user:m.state.user._id}))[0]}),e.computed(()=>{const a=b.state.departments,n=a.flatMap(i=>i.subdepartments.map(r=>r._id));return a.filter(i=>!n.includes(i._id))});async function y(a){await u.actions.create({owner:{type:"Organization",target:d.value._id},creator:{type:"User",target:m.state.user._id},invites:a}),h()}async function B(a,n){confirm("Confirm remove of member")==!0&&(f.state.memberships.splice(a,1),await f.actions.delete(n))}async function C(a,n){confirm("Confirm remove of member")==!0&&(u.state.invites.splice(a,1),await u.actions.delete(n._id))}return(a,n)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(M.default,{title:"Members","onUpdate:tabs_current":n[0]||(n[0]=r=>s.value=r),tabs_current:s.value,tabs:[{name:`Members (${k.state.current.numberOfMembers||0})`,value:"members"},{name:"Departments",value:"departments"},{name:"Invites",value:"invites"}],actions:[{method:w,label:"Invite members"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","tabs","actions"]),e.createVNode(q.default,{title:"Add members",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createVNode(N.default,{text:"Please enter your email or phone number to send an invitation link:",organization:d.value,onSendInvite:y},null,8,["organization"])]),_:1},8,["isPopupOpen"]),s.value==="departments"?(e.openBlock(),e.createBlock(p.default,{key:0,states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available.",action:"Add department",callback:()=>a.$router.push(`/organizations/${e.unref(o).params._id}/departments/create`)}},store:{read:r=>b.actions.read(r),state:null},options:{organization:e.unref(o).params._id,user:m.state.user._id}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(x.default,{key:l,department:t,organization:e.unref(o).params._id,class:"radius-semi bg-light pos-relative mn-b-thin"},null,8,["department","organization"]))),128))]),_:1},8,["states","store","options"])):e.createCommentVNode("",!0),s.value==="departments"&&b.state.departments.length>0?(e.openBlock(),e.createBlock(i,{key:1,to:{path:`/organizations/${e.unref(o).params._id}/departments/create`},class:"d-block flex-center flex uppercase t-semi bg-main w-100 pd-small radius-extra"},{default:e.withCtx(()=>[e.createTextVNode(" Add department ")]),_:1},8,["to"])):e.createCommentVNode("",!0),s.value==="members"?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Members Found",description:"Currently, there are no members."}},store:{read:r=>f.actions.read(r)},options:{target:e.unref(o).params._id,role:["member","owner"]},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(g.default,{key:l,user:t,_id:t.user._id,photo:t.user.profile.photo,phone:t.user.phone,email:t.user.email,name:t.user.profile.name||"No name",role:t.label||t.role,onClick:F=>a.$router.push(`/profile/${t.user._id}`),action:t.role!=="owner"?{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>B(l,t)}:null,class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["user","_id","photo","phone","email","name","role","onClick","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0),s.value==="invites"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Invites Found",description:"Currently, there are no members."}},store:{read:r=>u.actions.read(r)},options:{owner:e.unref(o).params._id},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,t=>(e.openBlock(),e.createBlock(g.default,{key:a.index,user:{type:"invite"},name:t.email||t.phone,role:t.status,action:{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>C(a.index,t)},class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["name","role","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)])}}};exports.default=I;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("vue-router"),p=require("../../../../components/Feed/Feed.vue.cjs");;/* empty css */;/* empty css */const q=require("../../../../components/Popup/Popup.vue.cjs"),M=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),N=require("../sections/MembersAdd.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");const g=require("../../../users/components/blocks/CardUser.vue.cjs"),x=require("../blocks/CardDepartment.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),m=require("../../../auth/store/auth.cjs"),u=require("../../store/invites.cjs"),f=require("../../store/memberships.cjs"),k=require("../../store/organizations.cjs"),b=require("../../store/departments.cjs"),z={class:"pd-thin"},P={key:2,class:"cols-1 gap-thin"},V={key:3},I={__name:"Members",setup(A){const o=v.useRoute();v.useRouter();const d=e.ref(null),s=e.ref("members"),c=e.ref(!1);function w(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{d.value=(await k.actions.read({_id:o.params._id,user:m.state.user._id}))[0]}),e.computed(()=>{const a=b.state.departments,n=a.flatMap(i=>i.subdepartments.map(r=>r._id));return a.filter(i=>!n.includes(i._id))});async function y(a){await u.actions.create({owner:{type:"Organization",target:d.value._id},creator:{type:"User",target:m.state.user._id},invites:a}),h()}async function B(a,n){confirm("Confirm remove of member")==!0&&(f.state.memberships.splice(a,1),await f.actions.delete(n))}async function C(a,n){confirm("Confirm remove of member")==!0&&(u.state.invites.splice(a,1),await u.actions.delete(n._id))}return(a,n)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(M.default,{title:"Members","onUpdate:tabs_current":n[0]||(n[0]=r=>s.value=r),tabs_current:s.value,tabs:[{name:`Members (${k.state.current.numberOfMembers||0})`,value:"members"},{name:"Departments",value:"departments"},{name:"Invites",value:"invites"}],actions:[{method:w,label:"Invite members"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","tabs","actions"]),e.createVNode(q.default,{title:"Add members",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createVNode(N.default,{text:"Please enter your email or phone number to send an invitation link:",organization:d.value,onSendInvite:y},null,8,["organization"])]),_:1},8,["isPopupOpen"]),s.value==="departments"?(e.openBlock(),e.createBlock(p.default,{key:0,states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available.",action:"Add department",callback:()=>a.$router.push(`/organizations/${e.unref(o).params._id}/departments/create`)}},store:{read:r=>b.actions.read(r),state:null},options:{organization:e.unref(o).params._id,user:m.state.user._id}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(x.default,{key:l,department:t,organization:e.unref(o).params._id,class:"radius-semi bg-light pos-relative mn-b-thin"},null,8,["department","organization"]))),128))]),_:1},8,["states","store","options"])):e.createCommentVNode("",!0),s.value==="departments"&&b.state.departments.length>0?(e.openBlock(),e.createBlock(i,{key:1,to:{path:`/organizations/${e.unref(o).params._id}/departments/create`},class:"d-block flex-center flex uppercase t-semi bg-main w-100 pd-small radius-extra"},{default:e.withCtx(()=>[e.createTextVNode(" Add department ")]),_:1},8,["to"])):e.createCommentVNode("",!0),s.value==="members"?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Members Found",description:"Currently, there are no members."}},store:{read:r=>f.actions.read(r)},options:{target:e.unref(o).params._id,role:["member","owner"]},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(g.default,{key:l,user:t,_id:t.user._id,photo:t.user.profile.photo,phone:t.user.phone,email:t.user.email,name:t.user.profile.name||"No name",role:t.label||t.role,onClick:F=>a.$router.push(`/profile/${t.user._id}`),action:t.role!=="owner"?{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>B(l,t)}:null,class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["user","_id","photo","phone","email","name","role","onClick","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0),s.value==="invites"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Invites Found",description:"Currently, there are no members."}},store:{read:r=>u.actions.read(r)},options:{owner:e.unref(o).params._id},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,t=>(e.openBlock(),e.createBlock(g.default,{key:a.index,user:{type:"invite"},name:t.email||t.phone,role:t.status,action:{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>C(a.index,t)},class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["name","role","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)])}}};exports.default=I;
@@ -6,7 +6,7 @@ import y from "../../../../components/Feed/Feed.vue.js";
6
6
  import R from "../../../../components/Popup/Popup.vue.js";
7
7
  import U from "../../../globals/components/sections/SectionPageTitle.vue.js";
8
8
  import E from "../sections/MembersAdd.vue.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  import "../../../../components/Menu/MenuItem.vue.js";
11
11
  import C from "../../../users/components/blocks/CardUser.vue.js";
12
12
  import L from "../blocks/CardDepartment.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const k=require("../../../../components/Tab/Tab.vue2.cjs"),b=require("../../../../components/Block/Block.vue.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const g=require("../../../events/components/sections/Feed.vue.cjs"),v=require("../../../spots/components/blocks/CardSpot.vue.cjs"),q=,/* empty css */B=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),s=require("../../store/organizations.cjs"),w=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../community/store/blogposts.cjs"),y=require("../../../spots/store/spots.cjs");;/* empty css */const N={key:0,class:"pd-thin for-transition w-100"},V={class:"pos-relative"},x={key:0},z={__name:"Organization",setup(T){const p=d.useRouter(),t=d.useRoute();let _=t.query.tab?t.query.tab:"products";const l=e.ref(null);e.onMounted(async()=>{l.value=await s.actions.read({_id:t.params._id,user:o.state.user._id}),await w.actions.read({target:t.params._id})});const r=e.ref(_);return t.query.tab=r.value,e.watch(r,c=>{p.replace({query:null})}),(c,n)=>{const i=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(q.default,{organization:s.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(k.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=a=>r.value=a),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",V,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(m.default,{key:0,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:a=>C.read(a)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,u=>(e.openBlock(),e.createBlock(h.default,{key:u._id,blogpost:u,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="events"?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(b.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(i,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(i,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(i,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(B.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(m.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:a=>y.actions.read(e.unref(t).params._id),state:s.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(u,f)=>(e.openBlock(),e.createBlock(v.default,{key:f,spot:u,organization:s.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===s.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=a=>c.$router.push(`/spots/${s.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=z;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const k=require("../../../../components/Tab/Tab.vue2.cjs"),b=require("../../../../components/Block/Block.vue.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const g=require("../../../events/components/sections/Feed.vue.cjs"),v=require("../../../spots/components/blocks/CardSpot.vue.cjs"),q=,/* empty css */B=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),s=require("../../store/organizations.cjs"),w=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../community/store/blogposts.cjs"),y=require("../../../spots/store/spots.cjs");;/* empty css */const N={key:0,class:"pd-thin for-transition w-100"},V={class:"pos-relative"},x={key:0},z={__name:"Organization",setup(T){const p=d.useRouter(),t=d.useRoute();let _=t.query.tab?t.query.tab:"products";const l=e.ref(null);e.onMounted(async()=>{l.value=await s.actions.read({_id:t.params._id,user:o.state.user._id}),await w.actions.read({target:t.params._id})});const r=e.ref(_);return t.query.tab=r.value,e.watch(r,c=>{p.replace({query:null})}),(c,n)=>{const i=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(q.default,{organization:s.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(k.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=a=>r.value=a),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",V,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(m.default,{key:0,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:a=>C.read(a)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,u=>(e.openBlock(),e.createBlock(h.default,{key:u._id,blogpost:u,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="events"?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(b.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(i,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(i,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(i,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(B.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(m.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:a=>y.actions.read(e.unref(t).params._id),state:s.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(u,f)=>(e.openBlock(),e.createBlock(v.default,{key:f,spot:u,organization:s.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===s.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=a=>c.$router.push(`/spots/${s.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=z;
@@ -7,7 +7,7 @@ import M from "../../../../components/Tab/Tab.vue2.js";
7
7
  import O from "../../../../components/Block/Block.vue.js";
8
8
  import w from "../../../../components/Feed/Feed.vue.js";
9
9
  import A from "../../../community/components/blocks/CardBlogpost.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  import "../../../../components/Menu/MenuItem.vue.js";
12
12
  /* empty css */
13
13
  import E from "../../../events/components/sections/Feed.vue.js";