@ozdao/prometheus-framework 0.2.184 → 0.2.186

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/pages.server.js +150 -0
  2. package/dist/pages.server.mjs +151 -0
  3. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  5. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  7. package/dist/prometheus-framework/src/modules/globals/mixins/mixins.cjs +1 -0
  8. package/dist/prometheus-framework/src/modules/globals/mixins/mixins.js +43 -0
  9. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  11. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +1 -0
  12. package/dist/prometheus-framework/src/modules/pages/pages.client.js +31 -0
  13. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -0
  14. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +98 -0
  15. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -0
  16. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +127 -0
  17. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -0
  18. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +89 -0
  19. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -0
  20. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +47 -0
  21. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -0
  22. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +86 -0
  23. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +1 -0
  24. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +53 -0
  25. package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.cjs +1 -0
  26. package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.js +28 -0
  27. package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +1 -0
  28. package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +52 -0
  29. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  31. package/dist/style.css +1 -1
  32. package/package.json +9 -1
  33. package/src/modules/globals/globals.client.js +2 -0
  34. package/src/modules/globals/mixins/mixins.js +0 -1
  35. package/src/modules/pages/views/components/pages/Page.vue +0 -2
@@ -0,0 +1,127 @@
1
+ import { ref as v, computed as _, onMounted as A, openBlock as t, createElementBlock as i, createElementVNode as n, toDisplayString as M, createVNode as d, createCommentVNode as r, Fragment as z, renderList as C, createBlock as N } from "vue";
2
+ import { useRoute as B } from "vue-router";
3
+ import { useI18n as I } from "vue-i18n";
4
+ import T from "../../../../constructor/components/sections/Viewer.vue.js";
5
+ import h from "../blocks/CardPage.vue.js";
6
+ import { actions as w } from "../../store/pages.js";
7
+ import { state as V } from "../../../../auth/store/auth.js";
8
+ import { useGlobalMixins as E } from "../../../../globals/mixins/mixins.js";
9
+ const F = {
10
+ key: 0,
11
+ style: { overflow: "clip" },
12
+ class: "bg-light pos-relative"
13
+ }, S = { class: "pd-medium pos-sticky mobile-only z-index-1 pos-t-0 bg-light w-100 br-b br-solid br-black-transp-10" }, U = {
14
+ key: 0,
15
+ class: "z-index-0 pos-relative"
16
+ }, $ = { class: "transition-ease-in-out w-100 bg-light" }, j = {
17
+ key: 1,
18
+ class: "cols-2-1_3 h-100 bg-light z-index-0 pos-relative"
19
+ }, D = {
20
+ key: 0,
21
+ class: "desktop-only h-100 bg-white o-scroll z-index-0 pos-relative"
22
+ }, G = { class: "transition-ease-in-out w-100 bg-light" }, H = { class: "o-scroll pd-medium" }, L = { class: "gap-thin cols-2" }, O = {
23
+ key: 0,
24
+ class: "bg-white pd-medium mn-b-thin radius-semi"
25
+ }, q = /* @__PURE__ */ n("h4", { class: "mn-b-small" }, "Read Previous", -1), J = {
26
+ key: 1,
27
+ class: "bg-white pd-medium mn-b-thin radius-semi"
28
+ }, K = /* @__PURE__ */ n("h4", { class: "mn-b-small pd-micro" }, "Table of Contents", -1), Q = {
29
+ key: 2,
30
+ class: "bg-white pd-medium mn-b-thin radius-semi"
31
+ }, W = /* @__PURE__ */ n("h4", { class: "mn-b-small" }, "Read Next", -1), oe = {
32
+ __name: "Page",
33
+ setup(X) {
34
+ const c = v(!1);
35
+ function k() {
36
+ c.value = !c.value;
37
+ }
38
+ function y(e) {
39
+ const s = [];
40
+ function o(g, R = null) {
41
+ for (const p of g)
42
+ s.push({ ...p, parent: R }), p.children.length > 0 && o(p.children, p);
43
+ }
44
+ return o(e.children), s;
45
+ }
46
+ const m = _(() => y(a.value)), u = _(() => {
47
+ if (l.value._id === a.value._id)
48
+ return { children: l.value.children, previousPage: null, nextPage: null };
49
+ const e = m.value.findIndex((g) => g._id === l.value._id), s = e > 0 ? m.value[e - 1] : a.value, o = e < m.value.length - 1 ? m.value[e + 1] : null;
50
+ return { previousPage: s, nextPage: o, children: [] };
51
+ }), {
52
+ normalizeUrlParam: Y,
53
+ joinArrayToUrl: x,
54
+ isAdmin: P
55
+ } = E(), b = _(() => P(V.access.roles));
56
+ I();
57
+ const f = B(), a = v(null), l = v(null);
58
+ return A(async () => {
59
+ let e = f.params.url;
60
+ e.length > 0 && (e = e[0]), a.value = await w.read({ url: e });
61
+ let s = f.params.url;
62
+ s.length > 0 && (s = x(s)), l.value = await w.read({ url: s });
63
+ }), (e, s) => l.value && l.value.content ? (t(), i("div", F, [
64
+ n("div", S, [
65
+ n("button", {
66
+ onClick: k,
67
+ class: "cursor-pointer"
68
+ }, M(c.value === !1 ? "Show Menu" : "Hide Menu"), 1)
69
+ ]),
70
+ c.value ? (t(), i("div", U, [
71
+ n("ul", $, [
72
+ d(h, {
73
+ page: a.value,
74
+ hasAdminRights: b.value,
75
+ class: "pd-thin"
76
+ }, null, 8, ["page", "hasAdminRights"])
77
+ ])
78
+ ])) : r("", !0),
79
+ c.value ? r("", !0) : (t(), i("div", j, [
80
+ a.value.url !== l.value.url ? (t(), i("div", D, [
81
+ n("ul", G, [
82
+ d(h, {
83
+ page: a.value,
84
+ hasAdminRights: b.value,
85
+ class: "bg-white pd-thin"
86
+ }, null, 8, ["page", "hasAdminRights"])
87
+ ])
88
+ ])) : r("", !0),
89
+ n("div", H, [
90
+ d(T, {
91
+ content: l.value.content,
92
+ class: ""
93
+ }, null, 8, ["content"]),
94
+ n("div", L, [
95
+ u.value.previousPage ? (t(), i("div", O, [
96
+ q,
97
+ d(h, {
98
+ page: u.value.previousPage,
99
+ showChildren: !1,
100
+ class: "h3 t-main bg-white mn-b-thin radius-semi"
101
+ }, null, 8, ["page"])
102
+ ])) : r("", !0),
103
+ u.value.children.length > 0 ? (t(), i("div", J, [
104
+ K,
105
+ (t(!0), i(z, null, C(u.value.children, (o) => (t(), N(h, {
106
+ key: o.id,
107
+ page: o,
108
+ class: "bg-white pd-micro radius-semi"
109
+ }, null, 8, ["page"]))), 128))
110
+ ])) : r("", !0),
111
+ u.value.nextPage ? (t(), i("div", Q, [
112
+ W,
113
+ d(h, {
114
+ page: u.value.nextPage,
115
+ class: "h3 t-main bg-white mn-b-thin radius-semi",
116
+ showChildren: !1
117
+ }, null, 8, ["page"])
118
+ ])) : r("", !0)
119
+ ])
120
+ ])
121
+ ]))
122
+ ])) : r("", !0);
123
+ }
124
+ };
125
+ export {
126
+ oe as default
127
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),v=require("../../../../globals/mixins/mixins.cjs"),o=require("../../store/pages.cjs"),c=require("../../../../../components/Button/Button.vue2.cjs");;/* empty css */;/* empty css */;/* empty css */const b=require("../../../../constructor/components/sections/Constructor.vue.cjs"),g={key:0},k={key:0,class:"w-100 mn-b-thin bg-light pd-big radius-semi"},h={key:1,class:"pos-sticky pos-l-0 pos-b-0 w-100"},_={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},w={__name:"PageEdit",setup(y){const{normalizeUrlParam:s,joinArrayToUrl:i}=v.useGlobalMixins(),l=u.useRoute(),r=u.useRouter(),t=e.ref(null);e.onMounted(async()=>{let a;if(l.params.url&&(a=l.params.url,a.length>0&&(a=i(a))),a)try{t.value=await o.actions.read({url:a})}catch(n){console.log("error",n)}else t.value=o.state.current});async function m(){t.value.name=t.value.content[0].content,t.value.url||(t.value.url=s(t.value.name));try{l.params.url?await o.actions.update(t.value):await o.actions.create(t.value)}catch(a){console.log("error",a)}r.push(r.resolve({name:"Backoffice Pages Edit",params:{url:t.value.url.split("/")}}).href)}async function d(){try{await o.actions.delete(t.value)}catch(a){console.log("error",a)}}function p(){t.value.parent?r.push(r.resolve({name:"Backoffice Pages Edit",params:{url:t.value.parent.url.split("/")}}).href):r.push({name:"Backoffice Pages"})}return(a,n)=>t.value?(e.openBlock(),e.createElementBlock("div",g,[t.value?(e.openBlock(),e.createElementBlock("section",k,[e.createVNode(b.default,{content:t.value.content,onUpdate:n[0]||(n[0]=f=>t.value.content=f)},null,8,["content"])])):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createElementBlock("section",h,[e.createElementVNode("div",_,[e.unref(l).params.url?(e.openBlock(),e.createBlock(c.default,{key:0,submit:()=>d(),callback:()=>p(),class:"t-nowrap bg-second w-max"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1},8,["submit","callback"])):e.createCommentVNode("",!0),e.createVNode(c.default,{submit:()=>m(),class:"mn-l-auto t-nowrap t-white bg-black w-max"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}};exports.default=w;
@@ -0,0 +1,89 @@
1
+ import { ref as h, onMounted as k, openBlock as l, createElementBlock as u, createVNode as c, createCommentVNode as n, createElementVNode as w, unref as y, createBlock as x, withCtx as i, createTextVNode as m } from "vue";
2
+ import { useRoute as B, useRouter as P } from "vue-router";
3
+ import { useGlobalMixins as E } from "../../../../globals/mixins/mixins.js";
4
+ import { actions as s, state as N } from "../../store/pages.js";
5
+ import p from "../../../../../components/Button/Button.vue2.js";
6
+ /* empty css */
7
+ /* empty css */
8
+ /* empty css */
9
+ import V from "../../../../constructor/components/sections/Constructor.vue.js";
10
+ const C = { key: 0 }, U = {
11
+ key: 0,
12
+ class: "w-100 mn-b-thin bg-light pd-big radius-semi"
13
+ }, D = {
14
+ key: 1,
15
+ class: "pos-sticky pos-l-0 pos-b-0 w-100"
16
+ }, M = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, H = {
17
+ __name: "PageEdit",
18
+ setup(R) {
19
+ const {
20
+ normalizeUrlParam: f,
21
+ joinArrayToUrl: d
22
+ } = E(), r = B(), a = P(), e = h(null);
23
+ k(async () => {
24
+ let t;
25
+ if (r.params.url && (t = r.params.url, t.length > 0 && (t = d(t))), t)
26
+ try {
27
+ e.value = await s.read({ url: t });
28
+ } catch (o) {
29
+ console.log("error", o);
30
+ }
31
+ else
32
+ e.value = N.current;
33
+ });
34
+ async function v() {
35
+ e.value.name = e.value.content[0].content, e.value.url || (e.value.url = f(e.value.name));
36
+ try {
37
+ r.params.url ? await s.update(e.value) : await s.create(e.value);
38
+ } catch (t) {
39
+ console.log("error", t);
40
+ }
41
+ a.push(a.resolve({ name: "Backoffice Pages Edit", params: { url: e.value.url.split("/") } }).href);
42
+ }
43
+ async function _() {
44
+ try {
45
+ await s.delete(e.value);
46
+ } catch (t) {
47
+ console.log("error", t);
48
+ }
49
+ }
50
+ function b() {
51
+ e.value.parent ? a.push(a.resolve({ name: "Backoffice Pages Edit", params: { url: e.value.parent.url.split("/") } }).href) : a.push({ name: "Backoffice Pages" });
52
+ }
53
+ return (t, o) => e.value ? (l(), u("div", C, [
54
+ e.value ? (l(), u("section", U, [
55
+ c(V, {
56
+ content: e.value.content,
57
+ onUpdate: o[0] || (o[0] = (g) => e.value.content = g)
58
+ }, null, 8, ["content"])
59
+ ])) : n("", !0),
60
+ e.value ? (l(), u("section", D, [
61
+ w("div", M, [
62
+ y(r).params.url ? (l(), x(p, {
63
+ key: 0,
64
+ submit: () => _(),
65
+ callback: () => b(),
66
+ class: "t-nowrap bg-second w-max"
67
+ }, {
68
+ default: i(() => [
69
+ m(" Delete ")
70
+ ]),
71
+ _: 1
72
+ }, 8, ["submit", "callback"])) : n("", !0),
73
+ c(p, {
74
+ submit: () => v(),
75
+ class: "mn-l-auto t-nowrap t-white bg-black w-max"
76
+ }, {
77
+ default: i(() => [
78
+ m(" Save ")
79
+ ]),
80
+ _: 1
81
+ }, 8, ["submit"])
82
+ ])
83
+ ])) : n("", !0)
84
+ ])) : n("", !0);
85
+ }
86
+ };
87
+ export {
88
+ H as default
89
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router"),n=require("../../../../../components/Block/Block.vue.cjs"),o=require("../../../../globals/components/sections/SectionPageTitle.vue.cjs"),u=require("../blocks/CardPage.vue.cjs"),c=require("../../store/pages.cjs"),i=require("../../../../auth/store/auth.cjs"),d=require("../../../../globals/mixins/mixins.cjs"),g={__name:"Pages",setup(m){const{normalizeUrlParam:h,joinArrayToUrl:p,isAdmin:r}=d.useGlobalMixins(),l=e.computed(()=>r(i.state.access.roles));a.useRoute(),a.useRouter();const t=e.ref(null);return e.onMounted(async()=>{t.value=await c.actions.read()}),(k,_)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(o.default,{title:"Pages",actions:[{to:{name:"Backoffice Pages Add"},label:"Create Page"}],class:"mn-b-small bg-light bg-light radius-big"}),t.value?(e.openBlock(),e.createBlock(n.default,{key:0,class:"mn-b-thin cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,s=>(e.openBlock(),e.createBlock(u.default,{page:s,hasAdminRights:l.value,class:"bg-white pd-thin radius-small"},null,8,["page","hasAdminRights"]))),256))]),_:1})):e.createCommentVNode("",!0)]))}};exports.default=g;
@@ -0,0 +1,47 @@
1
+ import { computed as n, ref as l, onMounted as m, openBlock as e, createElementBlock as a, createVNode as c, createBlock as r, withCtx as u, Fragment as p, renderList as d, createCommentVNode as g } from "vue";
2
+ import { useRoute as f, useRouter as _ } from "vue-router";
3
+ import h from "../../../../../components/Block/Block.vue.js";
4
+ import b from "../../../../globals/components/sections/SectionPageTitle.vue.js";
5
+ import A from "../blocks/CardPage.vue.js";
6
+ import { actions as k } from "../../store/pages.js";
7
+ import { state as v } from "../../../../auth/store/auth.js";
8
+ import { useGlobalMixins as P } from "../../../../globals/mixins/mixins.js";
9
+ const E = {
10
+ __name: "Pages",
11
+ setup(R) {
12
+ const {
13
+ normalizeUrlParam: x,
14
+ joinArrayToUrl: B,
15
+ isAdmin: s
16
+ } = P(), o = n(() => s(v.access.roles));
17
+ f(), _();
18
+ const t = l(null);
19
+ return m(async () => {
20
+ t.value = await k.read();
21
+ }), (w, y) => (e(), a("div", null, [
22
+ c(b, {
23
+ title: "Pages",
24
+ actions: [
25
+ { to: { name: "Backoffice Pages Add" }, label: "Create Page" }
26
+ ],
27
+ class: "mn-b-small bg-light bg-light radius-big"
28
+ }),
29
+ t.value ? (e(), r(h, {
30
+ key: 0,
31
+ class: "mn-b-thin cols-1 gap-thin"
32
+ }, {
33
+ default: u(() => [
34
+ (e(!0), a(p, null, d(t.value, (i) => (e(), r(A, {
35
+ page: i,
36
+ hasAdminRights: o.value,
37
+ class: "bg-white pd-thin radius-small"
38
+ }, null, 8, ["page", "hasAdminRights"]))), 256))
39
+ ]),
40
+ _: 1
41
+ })) : g("", !0)
42
+ ]));
43
+ }
44
+ };
45
+ export {
46
+ E as default
47
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),g=require("../../../../../components/Block/Block.vue.cjs"),h=require("../../../../../components/Popup/Popup.vue2.cjs"),P=require("../../../../../components/Button/Button.vue2.cjs"),b=require("../../../../constructor/components/sections/Constructor.vue.cjs"),_=require("../blocks/CardPage.vue.cjs"),c=require("../../store/pages.cjs"),w=require("../../../../auth/store/auth.cjs"),k=require("../../../../globals/mixins/mixins.cjs"),q={class:"h-max-20r o-scroll"},x={__name:"SidebarPages",setup(B){const{normalizeUrlParam:i,joinArrayToUrl:C,isAdmin:p}=k.useGlobalMixins(),d=e.computed(()=>p(w.state.access.roles));s.useRoute();const l=s.useRouter(),a=e.ref(null);e.onMounted(async()=>{a.value=await c.actions.read()});const t=e.ref({url:null,name:null,parent:null,content:[]}),n=e.ref(!1);function m(o){n.value=!0,t.value.parent=o}function v(){n.value=!1,t.value={url:null,name:null,parent:null,content:[]}}async function f(){t.value.name=t.value.content[0].content,t.value.url=t.value.parent.url+"/"+i(t.value.name),t.value.parent=t.value.parent._id,await c.actions.create(t.value),l.push(l.resolve({name:"Backoffice Pages Edit",params:{url:t.value.url.split("/")}}).href)}return(o,r)=>a.value?(e.openBlock(),e.createBlock(g.default,{key:0,class:"mn-b-thin pd-small radius-semi cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,u=>(e.openBlock(),e.createBlock(_.default,{page:u,class:"radius-small pd-thin",hasAdminRights:d.value,onCreatePage:m},null,8,["page","hasAdminRights"]))),256)),e.createVNode(h.default,{onClosePopup:v,isPopupOpen:n.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(b.default,{content:t.value.content,onUpdate:r[0]||(r[0]=u=>t.value.content=u)},null,8,["content"])]),e.createVNode(P.default,{submit:()=>f(),class:"mn-l-auto t-nowrap t-white bg-black w-max"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1},8,["submit"])]),_:1},8,["isPopupOpen"])]),_:1})):e.createCommentVNode("",!0)}};exports.default=x;
@@ -0,0 +1,86 @@
1
+ import { computed as P, ref as l, onMounted as b, openBlock as o, createBlock as c, withCtx as r, createElementBlock as w, Fragment as x, renderList as k, createVNode as u, createElementVNode as A, createTextVNode as R, createCommentVNode as $ } from "vue";
2
+ import { useRoute as y, useRouter as B } from "vue-router";
3
+ import C from "../../../../../components/Block/Block.vue.js";
4
+ import N from "../../../../../components/Popup/Popup.vue2.js";
5
+ import V from "../../../../../components/Button/Button.vue2.js";
6
+ import E from "../../../../constructor/components/sections/Constructor.vue.js";
7
+ import S from "../blocks/CardPage.vue.js";
8
+ import { actions as p } from "../../store/pages.js";
9
+ import { state as U } from "../../../../auth/store/auth.js";
10
+ import { useGlobalMixins as M } from "../../../../globals/mixins/mixins.js";
11
+ const O = { class: "h-max-20r o-scroll" }, Q = {
12
+ __name: "SidebarPages",
13
+ setup(T) {
14
+ const {
15
+ normalizeUrlParam: f,
16
+ joinArrayToUrl: j,
17
+ isAdmin: d
18
+ } = M(), v = P(() => d(U.access.roles));
19
+ y();
20
+ const s = B(), t = l(null);
21
+ b(async () => {
22
+ t.value = await p.read();
23
+ });
24
+ const e = l({
25
+ url: null,
26
+ name: null,
27
+ parent: null,
28
+ content: []
29
+ }), a = l(!1);
30
+ function _(i) {
31
+ a.value = !0, e.value.parent = i;
32
+ }
33
+ function g() {
34
+ a.value = !1, e.value = {
35
+ url: null,
36
+ name: null,
37
+ parent: null,
38
+ content: []
39
+ };
40
+ }
41
+ async function h() {
42
+ e.value.name = e.value.content[0].content, e.value.url = e.value.parent.url + "/" + f(e.value.name), e.value.parent = e.value.parent._id, await p.create(e.value), s.push(s.resolve({ name: "Backoffice Pages Edit", params: { url: e.value.url.split("/") } }).href);
43
+ }
44
+ return (i, m) => t.value ? (o(), c(C, {
45
+ key: 0,
46
+ class: "mn-b-thin pd-small radius-semi cols-1 gap-thin"
47
+ }, {
48
+ default: r(() => [
49
+ (o(!0), w(x, null, k(t.value, (n) => (o(), c(S, {
50
+ page: n,
51
+ class: "radius-small pd-thin",
52
+ hasAdminRights: v.value,
53
+ onCreatePage: _
54
+ }, null, 8, ["page", "hasAdminRights"]))), 256)),
55
+ u(N, {
56
+ onClosePopup: g,
57
+ isPopupOpen: a.value,
58
+ class: "w-m-33r t-left pd-big bg-white radius-big"
59
+ }, {
60
+ default: r(() => [
61
+ A("div", O, [
62
+ u(E, {
63
+ content: e.value.content,
64
+ onUpdate: m[0] || (m[0] = (n) => e.value.content = n)
65
+ }, null, 8, ["content"])
66
+ ]),
67
+ u(V, {
68
+ submit: () => h(),
69
+ class: "mn-l-auto t-nowrap t-white bg-black w-max"
70
+ }, {
71
+ default: r(() => [
72
+ R(" Save ")
73
+ ]),
74
+ _: 1
75
+ }, 8, ["submit"])
76
+ ]),
77
+ _: 1
78
+ }, 8, ["isPopupOpen"])
79
+ ]),
80
+ _: 1
81
+ })) : $("", !0);
82
+ }
83
+ };
84
+ export {
85
+ Q as default
86
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../globals/components/layouts/Empty.vue.cjs"),a=require("../../../backoffice/components/partials/Sidebar.vue.cjs"),e=require("../components/partials/SidebarPages.vue.cjs"),r={path:"pages",component:t.default,meta:{title:{en:"Pages",ru:"Информация"},sidebar:a.default},children:[{path:"",name:"Backoffice Pages",component:()=>Promise.resolve().then(()=>require("../components/pages/Pages.vue.cjs"))},{path:"add",name:"Backoffice Pages Add",meta:{title:{en:"New Page",ru:"Новая страница"},sidebar:e.default},component:()=>Promise.resolve().then(()=>require("../components/pages/PageEdit.vue.cjs"))},{path:":url+",name:"Backoffice Pages Edit",meta:{title:{en:"Edit Page",ru:"Редактировать страницу"},sidebar:e.default},component:()=>Promise.resolve().then(()=>require("../components/pages/PageEdit.vue.cjs"))}]};exports.default=r;
@@ -0,0 +1,53 @@
1
+ import a from "../../../globals/components/layouts/Empty.vue.js";
2
+ import t from "../../../backoffice/components/partials/Sidebar.vue.js";
3
+ import e from "../components/partials/SidebarPages.vue.js";
4
+ const n = {
5
+ path: "pages",
6
+ component: a,
7
+ meta: {
8
+ title: {
9
+ en: "Pages",
10
+ ru: "Информация"
11
+ },
12
+ sidebar: t
13
+ },
14
+ children: [{
15
+ path: "",
16
+ name: "Backoffice Pages",
17
+ component: () => import(
18
+ /* webpackChunkName: 'Pages' */
19
+ "../components/pages/Pages.vue.js"
20
+ )
21
+ }, {
22
+ path: "add",
23
+ name: "Backoffice Pages Add",
24
+ meta: {
25
+ title: {
26
+ en: "New Page",
27
+ ru: "Новая страница"
28
+ },
29
+ sidebar: e
30
+ },
31
+ component: () => import(
32
+ /* webpackChunkName: 'PageAdd' */
33
+ "../components/pages/PageEdit.vue.js"
34
+ )
35
+ }, {
36
+ path: ":url+",
37
+ name: "Backoffice Pages Edit",
38
+ meta: {
39
+ title: {
40
+ en: "Edit Page",
41
+ ru: "Редактировать страницу"
42
+ },
43
+ sidebar: e
44
+ },
45
+ component: () => import(
46
+ /* webpackChunkName: 'PAgeEdit' */
47
+ "../components/pages/PageEdit.vue.js"
48
+ )
49
+ }]
50
+ };
51
+ export {
52
+ n as default
53
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../globals/components/layouts/Empty.vue.cjs"),t={path:"pages",component:e.default,meta:{title:{en:"Pages",ru:"Информация"}},children:[{path:":url+",name:"Page",meta:{title:{en:"Page",ru:"Страница"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Page.vue.cjs"))}]};exports.default=t;
@@ -0,0 +1,28 @@
1
+ import e from "../../../globals/components/layouts/Empty.vue.js";
2
+ const a = {
3
+ path: "pages",
4
+ component: e,
5
+ meta: {
6
+ title: {
7
+ en: "Pages",
8
+ ru: "Информация"
9
+ }
10
+ },
11
+ children: [{
12
+ path: ":url+",
13
+ name: "Page",
14
+ meta: {
15
+ title: {
16
+ en: "Page",
17
+ ru: "Страница"
18
+ }
19
+ },
20
+ component: () => import(
21
+ /* webpackChunkName: 'Page' */
22
+ "../components/pages/Page.vue.js"
23
+ )
24
+ }]
25
+ };
26
+ export {
27
+ a as default
28
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("axios"),a=require("../../../globals/store/globals.cjs"),i=process.env.API_URL,s=c.create({baseURL:i}),r=o.reactive({all:[],current:{name:"",localization:[],groups:[],url:"",content:[]}}),p={async create(t){try{return(await s.post("/api/pages/create",t)).data}catch(e){throw a.setError(e),e}},async read(t={}){try{return(await s.get("/api/pages/read",{params:t})).data}catch(e){throw a.setError(e),e}},async update(t){try{const e=await s.put("/api/pages/update",t);return r.current=e.data,e.data}catch(e){throw a.setError(e),e}},async delete(t){try{const e=await s.delete("/api/pages/delete",{data:t});return r.all.splice(r.all.findIndex(n=>n._id==t),1),e.data}catch(e){throw a.setError(e),e}}};o.watch(r,t=>{});exports.actions=p;exports.state=r;
@@ -0,0 +1,52 @@
1
+ import { reactive as n, watch as c } from "vue";
2
+ import p from "axios";
3
+ import { setError as r } from "../../../globals/store/globals.js";
4
+ const i = process.env.API_URL, a = p.create({ baseURL: i }), s = n({
5
+ all: [],
6
+ current: {
7
+ name: "",
8
+ localization: [],
9
+ groups: [],
10
+ url: "",
11
+ content: []
12
+ }
13
+ }), w = {
14
+ async create(e) {
15
+ try {
16
+ return (await a.post("/api/pages/create", e)).data;
17
+ } catch (t) {
18
+ throw r(t), t;
19
+ }
20
+ },
21
+ async read(e = {}) {
22
+ try {
23
+ return (await a.get("/api/pages/read", { params: e })).data;
24
+ } catch (t) {
25
+ throw r(t), t;
26
+ }
27
+ },
28
+ async update(e) {
29
+ try {
30
+ const t = await a.put("/api/pages/update", e);
31
+ return s.current = t.data, t.data;
32
+ } catch (t) {
33
+ throw r(t), t;
34
+ }
35
+ },
36
+ async delete(e) {
37
+ try {
38
+ const t = await a.delete("/api/pages/delete", {
39
+ data: e
40
+ });
41
+ return s.all.splice(s.all.findIndex((o) => o._id == e), 1), t.data;
42
+ } catch (t) {
43
+ throw r(t), t;
44
+ }
45
+ }
46
+ };
47
+ c(s, (e) => {
48
+ });
49
+ export {
50
+ w as actions,
51
+ s as state
52
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-i18n"),m=require("web3"),t=require("../../store/wallet.store.cjs"),p=require("../../localization/wallet.json.cjs"),b=require("../../../../../components/Popup/Popup.vue2.cjs"),k=require("../../../../../components/Button/Button.vue2.cjs");require("vue-router");;/* empty css */require("../../../../reports/store/reports.cjs");;/* empty css */;/* empty css */require("../../../../auth/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");require("../../../../community/store/reactions.cjs");;/* empty css */const h=require("../elements/ConnectMetamask.vue.cjs"),f=require("../blocks/CashDeposit.vue.cjs"),_=require("../blocks/CardDeposit.vue.cjs"),g=require("../blocks/CryptoDeposit.vue.cjs"),w=require("../blocks/CardBalanceReplenished.vue.cjs"),N=require("../blocks/CryptoDepositProcessing.vue.cjs"),V={class:"pd-thin"},E={class:"bg-black t-white mn-b-thin radius-big pd-big"},B={class:"mn-b-medium"},v={class:"mn-b-semi t-transp p-big"},y={key:0,class:"gap-thin mn-b-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"},C={class:"flex-v-center flex-nowrap flex mn-r-auto"},x={key:1,class:"w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"},S=e.createElementVNode("p",{class:"t-transp t-medium mn-b-thin"},"You own:",-1),q={class:"h1 mn-b-small"},D=e.createElementVNode("p",{class:"t-white p-big t-medium mn-b-semi"},"of all shares",-1),M={class:"flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra"},W={key:0,class:"t-transp t-medium"},P=e.createElementVNode("span",{class:"uppercase p-small t-medium t-transp"},"Connected Metamask",-1),R=e.createElementVNode("br",null,null,-1),T={key:0,class:"mn-b-semi cols-2 gap-thin"},$=e.createElementVNode("div",{class:"w-100 pd-medium radius-medium t-center bg-light"},[e.createElementVNode("h3",{class:"mn-b-small"},"Make first order and start earning Weeder Token"),e.createElementVNode("button",{class:"mn-l-auto mn-r-auto bg-main button"},"Explore marketplace")],-1),G={class:"w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light"},O={key:0,class:"mn-b-small"},A={key:1,class:"mn-b-small"},L={class:"cols-3 gap-thin"},F={class:"radius-medium bg-light"},I={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},Y={class:"t-semi mn-r-auto"},j={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},H={class:"pd-medium"},z={class:"t-regular mn-b-thin"},J={key:2,class:"mn-b-small"},K={class:"cols-3 gap-thin"},Q={class:"radius-medium bg-grey"},U={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},X={class:"t-semi mn-r-auto"},Z={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},ee={class:"pd-medium"},te={class:"t-regular mn-b-thin"},ne={key:0},oe=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Choose the way of deposit",-1),se={__name:"Wallet",setup(le){const{t:r}=u.useI18n({useScope:"global",...p.default});window.ethereum.on("accountsChanged",a=>{a.length<1&&(t.state.account=null)}),t.state.web3=new m(window.ethereum||"http://localhost:8080"),e.onMounted(()=>{t.actions.listRewards(),t.actions.tryReconnectWallet()});const c=e.ref(!1),l=e.ref(0);function s(a){l.value=a}function d(){c.value=!0}function i(){c.value=!1,l.value=0,t.actions.stopTimer(),t.actions.disconnectWebSocket()}return(a,o)=>(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("section",E,[e.createElementVNode("h1",B,e.toDisplayString(e.unref(r)("wallet.title")),1),e.createElementVNode("p",v,e.toDisplayString(e.unref(r)("wallet.subtitle")),1),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",C,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(t.state).tokenBalance)+" "+e.toDisplayString(e.unref(r)("wallet.token")),1)]),e.createElementVNode("button",{onClick:d,class:"t-nowrap w-max bg-main t-medium button"},"Get More"),e.createVNode(k.default,{submit:e.unref(t.actions).collectRewards,class:"w-max bg-white t-black t-medium button"},{default:e.withCtx(()=>[e.createTextVNode(" Withdraw ")]),_:1},8,["submit"])])):e.createCommentVNode("",!0),e.createVNode(h.default,{class:"mn-b-thin radius-extra br-solid br-white-transp-10 br-1px w-100"}),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",x,[S,e.createElementVNode("p",q,e.toDisplayString(e.unref(t.state).share)+"%",1),D,e.createElementVNode("div",M,[e.unref(t.state).account?(e.openBlock(),e.createElementBlock("p",W,[P,R,e.createElementVNode("span",null,e.toDisplayString(e.unref(t.state).account),1)])):e.createCommentVNode("",!0),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[0]||(o[0]=(...n)=>e.unref(t.actions).disconnectWallet&&e.unref(t.actions).disconnectWallet(...n)),class:"mn-l-auto bg-red button"}," Disconnect Wallet ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",T,[$,e.createElementVNode("div",G,[e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",O," Connect Metamask to withdrawal your earnings. ")),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[1]||(o[1]=(...n)=>e.unref(t.actions).connectWallet&&e.unref(t.actions).connectWallet(...n)),class:"br-solid br-2px br-black-transp-10 t-black button"}," Connect Wallet "))])])),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",A,"Latest Rewards ")):e.createCommentVNode("",!0),e.createElementVNode("section",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("div",I,[e.createElementVNode("p",Y,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",j,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",H,[e.createElementVNode("h4",z,e.toDisplayString(n.name),1)])]))),256))]),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",J,"Activity")):e.createCommentVNode("",!0),e.createElementVNode("section",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",Q,[e.createElementVNode("div",U,[e.createElementVNode("p",X,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",Z,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",ee,[e.createElementVNode("h4",te,e.toDisplayString(n.name),1)])]))),256))]),e.createVNode(b.default,{onClosePopup:i,isPopupOpen:c.value,class:"w-m-50r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[l.value===0?(e.openBlock(),e.createElementBlock("div",ne,[oe,e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[2]||(o[2]=n=>s(1))}," CASH "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[3]||(o[3]=n=>s(2))}," CARD "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[4]||(o[4]=n=>s(4))}," CRYPTO ")])):e.createCommentVNode("",!0),l.value===1?(e.openBlock(),e.createBlock(f.default,{key:1,onBackSelection:o[5]||(o[5]=n=>s(0))})):e.createCommentVNode("",!0),l.value===2?(e.openBlock(),e.createBlock(_.default,{key:2,onBackSelection:o[6]||(o[6]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0),l.value===3?(e.openBlock(),e.createBlock(w.default,{key:3,onClose:i})):e.createCommentVNode("",!0),l.value===4?(e.openBlock(),e.createBlock(g.default,{key:4,onBackSelection:o[7]||(o[7]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0),l.value===5?(e.openBlock(),e.createBlock(N.default,{key:5,onBackSelection:o[8]||(o[8]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0)]),_:1},8,["isPopupOpen"])]))}};exports.default=se;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-i18n"),m=require("web3"),t=require("../../store/wallet.store.cjs"),p=require("../../localization/wallet.json.cjs"),b=require("../../../../../components/Popup/Popup.vue2.cjs"),k=require("../../../../../components/Button/Button.vue2.cjs");require("vue-router");;/* empty css */require("../../../../reports/store/reports.cjs");;/* empty css */;/* empty css */require("../../../../auth/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");require("../../../../community/store/reactions.cjs");;/* empty css */const h=require("../elements/ConnectMetamask.vue.cjs"),f=require("../blocks/CashDeposit.vue.cjs"),_=require("../blocks/CardDeposit.vue.cjs"),g=require("../blocks/CryptoDeposit.vue.cjs"),w=require("../blocks/CardBalanceReplenished.vue.cjs"),N=require("../blocks/CryptoDepositProcessing.vue.cjs"),V={class:"pd-thin"},E={class:"bg-black t-white mn-b-thin radius-big pd-big"},B={class:"mn-b-medium"},v={class:"mn-b-semi t-transp p-big"},y={key:0,class:"gap-thin mn-b-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"},C={class:"flex-v-center flex-nowrap flex mn-r-auto"},x={key:1,class:"w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"},S=e.createElementVNode("p",{class:"t-transp t-medium mn-b-thin"},"You own:",-1),q={class:"h1 mn-b-small"},D=e.createElementVNode("p",{class:"t-white p-big t-medium mn-b-semi"},"of all shares",-1),M={class:"flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra"},W={key:0,class:"t-transp t-medium"},P=e.createElementVNode("span",{class:"uppercase p-small t-medium t-transp"},"Connected Metamask",-1),R=e.createElementVNode("br",null,null,-1),T={key:0,class:"mn-b-semi cols-2 gap-thin"},$=e.createElementVNode("div",{class:"w-100 pd-medium radius-medium t-center bg-light"},[e.createElementVNode("h3",{class:"mn-b-small"},"Make first order and start earning Weeder Token"),e.createElementVNode("button",{class:"mn-l-auto mn-r-auto bg-main button"},"Explore marketplace")],-1),G={class:"w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light"},O={key:0,class:"mn-b-small"},A={key:1,class:"mn-b-small"},L={class:"cols-3 gap-thin"},F={class:"radius-medium bg-light"},I={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},Y={class:"t-semi mn-r-auto"},j={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},H={class:"pd-medium"},z={class:"t-regular mn-b-thin"},J={key:2,class:"mn-b-small"},K={class:"cols-3 gap-thin"},Q={class:"radius-medium bg-grey"},U={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},X={class:"t-semi mn-r-auto"},Z={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},ee={class:"pd-medium"},te={class:"t-regular mn-b-thin"},ne={key:0},oe=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Choose the way of deposit",-1),se={__name:"Wallet",setup(le){const{t:r}=u.useI18n({useScope:"global",...p.default});window.ethereum.on("accountsChanged",a=>{a.length<1&&(t.state.account=null)}),t.state.web3=new m(window.ethereum||"http://localhost:8080"),e.onMounted(()=>{t.actions.listRewards(),t.actions.tryReconnectWallet()});const c=e.ref(!1),l=e.ref(0);function s(a){l.value=a}function d(){c.value=!0}function i(){c.value=!1,l.value=0,t.actions.stopTimer(),t.actions.disconnectWebSocket()}return(a,o)=>(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("section",E,[e.createElementVNode("h1",B,e.toDisplayString(e.unref(r)("wallet.title")),1),e.createElementVNode("p",v,e.toDisplayString(e.unref(r)("wallet.subtitle")),1),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",C,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(t.state).tokenBalance)+" "+e.toDisplayString(e.unref(r)("wallet.token")),1)]),e.createElementVNode("button",{onClick:d,class:"t-nowrap w-max bg-main t-medium button"},"Get More"),e.createVNode(k.default,{submit:e.unref(t.actions).collectRewards,class:"w-max bg-white t-black t-medium button"},{default:e.withCtx(()=>[e.createTextVNode(" Withdraw ")]),_:1},8,["submit"])])):e.createCommentVNode("",!0),e.createVNode(h.default,{class:"mn-b-thin radius-extra br-solid br-white-transp-10 br-1px w-100"}),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",x,[S,e.createElementVNode("p",q,e.toDisplayString(e.unref(t.state).share)+"%",1),D,e.createElementVNode("div",M,[e.unref(t.state).account?(e.openBlock(),e.createElementBlock("p",W,[P,R,e.createElementVNode("span",null,e.toDisplayString(e.unref(t.state).account),1)])):e.createCommentVNode("",!0),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[0]||(o[0]=(...n)=>e.unref(t.actions).disconnectWallet&&e.unref(t.actions).disconnectWallet(...n)),class:"mn-l-auto bg-red button"}," Disconnect Wallet ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",T,[$,e.createElementVNode("div",G,[e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",O," Connect Metamask to withdrawal your earnings. ")),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[1]||(o[1]=(...n)=>e.unref(t.actions).connectWallet&&e.unref(t.actions).connectWallet(...n)),class:"br-solid br-2px br-black-transp-10 t-black button"}," Connect Wallet "))])])),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",A,"Latest Rewards ")):e.createCommentVNode("",!0),e.createElementVNode("section",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("div",I,[e.createElementVNode("p",Y,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",j,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",H,[e.createElementVNode("h4",z,e.toDisplayString(n.name),1)])]))),256))]),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",J,"Activity")):e.createCommentVNode("",!0),e.createElementVNode("section",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",Q,[e.createElementVNode("div",U,[e.createElementVNode("p",X,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",Z,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",ee,[e.createElementVNode("h4",te,e.toDisplayString(n.name),1)])]))),256))]),e.createVNode(b.default,{onClosePopup:i,isPopupOpen:c.value,class:"w-m-50r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[l.value===0?(e.openBlock(),e.createElementBlock("div",ne,[oe,e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[2]||(o[2]=n=>s(1))}," CASH "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[3]||(o[3]=n=>s(2))}," CARD "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[4]||(o[4]=n=>s(4))}," CRYPTO ")])):e.createCommentVNode("",!0),l.value===1?(e.openBlock(),e.createBlock(f.default,{key:1,onBackSelection:o[5]||(o[5]=n=>s(0))})):e.createCommentVNode("",!0),l.value===2?(e.openBlock(),e.createBlock(_.default,{key:2,onBackSelection:o[6]||(o[6]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0),l.value===3?(e.openBlock(),e.createBlock(w.default,{key:3,onClose:i})):e.createCommentVNode("",!0),l.value===4?(e.openBlock(),e.createBlock(g.default,{key:4,onBackSelection:o[7]||(o[7]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0),l.value===5?(e.openBlock(),e.createBlock(N.default,{key:5,onBackSelection:o[8]||(o[8]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0)]),_:1},8,["isPopupOpen"])]))}};exports.default=se;
@@ -8,7 +8,7 @@ import P from "../../../../../components/Button/Button.vue2.js";
8
8
  import "vue-router";
9
9
  /* empty css */
10
10
  import "../../../../reports/store/reports.js";
11
- /* empty css */
11
+ /* empty css */
12
12
  /* empty css */
13
13
  import "../../../../auth/store/auth.js";
14
14
  import "../../../../organizations/store/memberships.js";