@ozdao/prometheus-framework 0.1.53 → 0.1.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
  2. package/dist/main.css +1 -1
  3. package/dist/modules/constructor/components/elements/Audio.vue.d.ts +9 -0
  4. package/dist/modules/constructor/components/elements/Embed.vue.d.ts +9 -0
  5. package/dist/modules/constructor/components/elements/H2.vue.d.ts +1 -1
  6. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +1 -1
  7. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +36 -27
  9. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  11. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -0
  12. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +46 -0
  13. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -0
  14. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +48 -0
  15. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +69 -60
  17. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  21. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  23. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +15 -15
  27. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +81 -99
  29. package/dist/prometheus-framework.cjs.js +19 -19
  30. package/dist/prometheus-framework.es.js +530 -522
  31. package/dist/style.css +1 -1
  32. package/package.json +1 -1
  33. package/src/components/Button/Button.vue +1 -1
  34. package/src/components/Upload/Upload.vue +28 -8
  35. package/src/modules/constructor/components/elements/Audio.vue +82 -0
  36. package/src/modules/constructor/components/elements/Embed.vue +85 -0
  37. package/src/modules/constructor/components/sections/Constructor.vue +54 -7
  38. package/src/modules/globals/mixins/mixins.js +52 -0
  39. package/src/modules/globals/router/routerGuards.js +28 -0
  40. package/src/modules/marketplace/components/layouts/Marketplace.vue +0 -1
  41. package/src/modules/organizations/components/pages/Organization.vue +2 -2
  42. package/src/modules/users/components/pages/Profile.vue +5 -3
  43. package/src/styles/theme.scss +0 -1
  44. package/src/styles/components/button.scss +0 -253
@@ -1,13 +1,14 @@
1
- import { openBlock as n, createElementBlock as o, Fragment as f, createElementVNode as a, normalizeClass as m, toDisplayString as s, createCommentVNode as c, createVNode as u, Transition as p, withCtx as h } from "vue";
1
+ import { ref as c, openBlock as o, createElementBlock as n, Fragment as v, createElementVNode as a, normalizeClass as x, createTextVNode as g, toDisplayString as i, createCommentVNode as f, createVNode as y, Transition as b, withCtx as C } from "vue";
2
+ import w from "../../../node_modules/axios/index.js";
2
3
  import "./Upload.vue2.js";
3
- import g from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const v = {
4
+ import U from "../../../../_virtual/_plugin-vue_export-helper.js";
5
+ const k = {
5
6
  key: 0,
6
7
  class: "t-transp mn-r-small"
7
- }, b = { class: "w-100" }, y = ["placeholder", "multiple"], x = {
8
+ }, N = { class: "w-100" }, _ = ["placeholder", "multiple"], R = {
8
9
  key: 0,
9
10
  class: "mn-t-thin mn-b-thin invalid-feedback"
10
- }, k = {
11
+ }, V = {
11
12
  __name: "Upload",
12
13
  props: {
13
14
  label: null,
@@ -20,47 +21,55 @@ const v = {
20
21
  }
21
22
  },
22
23
  emits: ["update:field", "focus", "blur", "file-change"],
23
- setup(e, { emit: i }) {
24
- const d = e, r = (l) => {
25
- if (d.multiple) {
26
- const t = Array.from(l.target.files);
27
- i("file-change", { files: t });
28
- } else {
29
- const t = l.target.files[0];
30
- i("file-change", { file: t });
24
+ setup(e, { emit: m }) {
25
+ const p = e, t = c(null);
26
+ c(null);
27
+ async function u(l) {
28
+ let s = l.target.files[0], r = new FormData();
29
+ r.append("file", s);
30
+ try {
31
+ let h = await w.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/file?folderName=${encodeURIComponent(p.uploadPath)}`, r, {
32
+ headers: {
33
+ "Content-Type": "multipart/form-data"
34
+ }
35
+ });
36
+ t.value = h.data.filepath, m("file-change", t.value);
37
+ } catch (d) {
38
+ console.error(d);
31
39
  }
32
- };
33
- return (l, t) => (n(), o(f, null, [
40
+ }
41
+ return (l, s) => (o(), n(v, null, [
34
42
  a("div", {
35
- class: m([[l.$attrs.class, { "bg-fourth-nano": e.validation }], "flex-center flex-nowrap flex"])
43
+ class: x([[l.$attrs.class, { "bg-fourth-nano": e.validation }], "flex-center flex-nowrap flex"])
36
44
  }, [
37
- e.label ? (n(), o("div", v, [
38
- a("span", null, s(e.label), 1)
39
- ])) : c("", !0),
40
- a("div", b, [
45
+ g(i(t.value) + " ", 1),
46
+ e.label ? (o(), n("div", k, [
47
+ a("span", null, i(e.label), 1)
48
+ ])) : f("", !0),
49
+ a("div", N, [
41
50
  a("input", {
42
- onChange: r,
51
+ onChange: u,
43
52
  type: "file",
44
53
  class: "w-100",
45
54
  placeholder: e.placeholder,
46
55
  multiple: e.multiple,
47
56
  id: "photo",
48
57
  name: "photo"
49
- }, null, 40, y)
58
+ }, null, 40, _)
50
59
  ])
51
60
  ], 2),
52
- u(p, {
61
+ y(b, {
53
62
  mode: "out-in",
54
63
  name: "fade"
55
64
  }, {
56
- default: h(() => [
57
- e.validation ? (n(), o("div", x, " * " + s(e.validation.message), 1)) : c("", !0)
65
+ default: C(() => [
66
+ e.validation ? (o(), n("div", R, " * " + i(e.validation.message), 1)) : f("", !0)
58
67
  ]),
59
68
  _: 1
60
69
  })
61
70
  ], 64));
62
71
  }
63
- }, B = /* @__PURE__ */ g(k, [["__scopeId", "data-v-25c75f91"]]);
72
+ }, I = /* @__PURE__ */ U(V, [["__scopeId", "data-v-5dd2f570"]]);
64
73
  export {
65
- B as default
74
+ I as default
66
75
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
@@ -1,5 +1,5 @@
1
1
  import { openBlock as p, createElementBlock as u, createVNode as e, withCtx as a, unref as o, createElementVNode as n } from "vue";
2
- import m from "../../../mobile/components/Menu/Menu.vue2.js";
2
+ import m from "../../../mobile/components/Menu/Menu.vue.js";
3
3
  import i from "../../../mobile/components/Menu/MenuItem.vue.js";
4
4
  import { useRoute as d, useRouter as _ } from "vue-router";
5
5
  const f = { class: "" }, c = /* @__PURE__ */ n("h1", { class: "mn-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ n("span", null, " Organizations ", -1), v = /* @__PURE__ */ n("span", null, " Events ", -1), B = /* @__PURE__ */ n("span", null, " Community ", -1), C = /* @__PURE__ */ n("span", null, " Products ", -1), $ = /* @__PURE__ */ n("span", null, " Leftovers ", -1), y = /* @__PURE__ */ n("span", null, " Orders ", -1), h = /* @__PURE__ */ n("span", null, " Payments ", -1), g = /* @__PURE__ */ n("span", null, " Gallery ", -1), E = /* @__PURE__ */ n("span", null, " Reports ", -1), G = {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../../components/Upload/Upload.vue.cjs"),i={class:"mn-thin w-100 pd-medium bg-white radius-medium"},m=["innerHTML"],p={key:1,class:""},b={__name:"Audio",props:["label","value","prop"],emits:["input","updateBlock"],setup(t,{emit:u}){const a=t,o=e.ref(null);function r(l){return[/youtube\.com/,/soundcloud\.com/,/vimeo\.com/].some(c=>c.test(l))}function d(l){o.value=l,o.value&&r(o.value)?(u("input",o.value),u("updateBlock",a.prop,{content:o.value})):alert("Invalid embed code or source not allowed.")}return(l,n)=>(e.openBlock(),e.createElementBlock("div",i,[t.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.prop.content,class:"flex-center flex"},null,8,m)):(e.openBlock(),e.createElementBlock("div",p,[e.createVNode(s.default,{field:o.value,"onUpdate:field":n[0]||(n[0]=c=>o.value=c),onFileChange:d,type:"file",placeholder:"Enter embed code",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"},null,8,["field"]),e.createElementVNode("button",{onClick:d,class:"button-small button"}," Save ")]))]))}};exports.default=b;
@@ -0,0 +1,46 @@
1
+ import { ref as r, openBlock as d, createElementBlock as a, createVNode as m, createElementVNode as p } from "vue";
2
+ import b from "../../../../components/Upload/Upload.vue.js";
3
+ const f = { class: "mn-thin w-100 pd-medium bg-white radius-medium" }, v = ["innerHTML"], k = {
4
+ key: 1,
5
+ class: ""
6
+ }, C = {
7
+ __name: "Audio",
8
+ props: [
9
+ "label",
10
+ "value",
11
+ "prop"
12
+ ],
13
+ emits: ["input", "updateBlock"],
14
+ setup(l, { emit: c }) {
15
+ const u = l, e = r(null);
16
+ function i(o) {
17
+ return [/youtube\.com/, /soundcloud\.com/, /vimeo\.com/].some((n) => n.test(o));
18
+ }
19
+ function s(o) {
20
+ e.value = o, e.value && i(e.value) ? (c("input", e.value), c("updateBlock", u.prop, { content: e.value })) : alert("Invalid embed code or source not allowed.");
21
+ }
22
+ return (o, t) => (d(), a("div", f, [
23
+ l.prop.content ? (d(), a("div", {
24
+ key: 0,
25
+ innerHTML: l.prop.content,
26
+ class: "flex-center flex"
27
+ }, null, 8, v)) : (d(), a("div", k, [
28
+ m(b, {
29
+ field: e.value,
30
+ "onUpdate:field": t[0] || (t[0] = (n) => e.value = n),
31
+ onFileChange: s,
32
+ type: "file",
33
+ placeholder: "Enter embed code",
34
+ class: "w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"
35
+ }, null, 8, ["field"]),
36
+ p("button", {
37
+ onClick: s,
38
+ class: "button-small button"
39
+ }, " Save ")
40
+ ]))
41
+ ]));
42
+ }
43
+ };
44
+ export {
45
+ C as default
46
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Field/Field.vue2.cjs"),i={class:"mn-thin w-100 pd-medium bg-white radius-medium"},m=["innerHTML"],p={key:1,class:""},b=e.createElementVNode("p",{class:"t-center"},"Embeds from youtube.com, vimeo.com, soundcloud.com are allowed",-1),v={__name:"Embed",props:["label","value","prop"],emits:["input","updateBlock"],setup(t,{emit:c}){const d=t,o=e.ref(null);function s(a){return[/youtube\.com/,/soundcloud\.com/,/vimeo\.com/].some(n=>n.test(a))}function r(){o.value&&s(o.value)?(c("input",o.value),c("updateBlock",d.prop,{content:o.value})):alert("Invalid embed code or source not allowed.")}return(a,l)=>(e.openBlock(),e.createElementBlock("div",i,[t.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.prop.content,class:"flex-center flex"},null,8,m)):(e.openBlock(),e.createElementBlock("div",p,[e.createVNode(u.default,{field:o.value,"onUpdate:field":l[0]||(l[0]=n=>o.value=n),type:"textarea",placeholder:"Paste your embed code here",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"},null,8,["field"]),e.createElementVNode("div",{class:"flex-v-center flex-nowrap flex gap-small"},[b,e.createElementVNode("button",{onClick:r,class:"button-small button"}," Save ")])]))]))}};exports.default=v;
@@ -0,0 +1,48 @@
1
+ import { ref as m, openBlock as n, createElementBlock as s, createVNode as p, createElementVNode as c } from "vue";
2
+ import b from "../../../../components/Field/Field.vue2.js";
3
+ const f = { class: "mn-thin w-100 pd-medium bg-white radius-medium" }, v = ["innerHTML"], k = {
4
+ key: 1,
5
+ class: ""
6
+ }, x = /* @__PURE__ */ c("p", { class: "t-center" }, "Embeds from youtube.com, vimeo.com, soundcloud.com are allowed", -1), _ = {
7
+ __name: "Embed",
8
+ props: [
9
+ "label",
10
+ "value",
11
+ "prop"
12
+ ],
13
+ emits: ["input", "updateBlock"],
14
+ setup(o, { emit: d }) {
15
+ const r = o, e = m(null);
16
+ function u(a) {
17
+ return [/youtube\.com/, /soundcloud\.com/, /vimeo\.com/].some((t) => t.test(a));
18
+ }
19
+ function i() {
20
+ e.value && u(e.value) ? (d("input", e.value), d("updateBlock", r.prop, { content: e.value })) : alert("Invalid embed code or source not allowed.");
21
+ }
22
+ return (a, l) => (n(), s("div", f, [
23
+ o.prop.content ? (n(), s("div", {
24
+ key: 0,
25
+ innerHTML: o.prop.content,
26
+ class: "flex-center flex"
27
+ }, null, 8, v)) : (n(), s("div", k, [
28
+ p(b, {
29
+ field: e.value,
30
+ "onUpdate:field": l[0] || (l[0] = (t) => e.value = t),
31
+ type: "textarea",
32
+ placeholder: "Paste your embed code here",
33
+ class: "w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"
34
+ }, null, 8, ["field"]),
35
+ c("div", { class: "flex-v-center flex-nowrap flex gap-small" }, [
36
+ x,
37
+ c("button", {
38
+ onClick: i,
39
+ class: "button-small button"
40
+ }, " Save ")
41
+ ])
42
+ ]))
43
+ ]));
44
+ }
45
+ };
46
+ export {
47
+ _ as default
48
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("../elements/Textarea.vue2.cjs"),y=require("../elements/H2.vue.cjs"),_=require("../elements/Caption.vue.cjs"),E=require("../elements/Bullets.vue.cjs"),N=require("../elements/ImageUpload.vue.cjs"),V=require("../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),D=["onMouseover"],q={key:0,class:"z-index-5 radius-thin mn-small relative left-0 mt-2 w-max bg-white shadow-lg rounded"},A=["onClick"],M=["onClick"],$=["onClick"],T={__name:"Constructor",props:["content"],emits:["update"],setup(f,{emit:s}){const m=f;let t=e.ref(null);e.ref(null),t.value={content:m.content};const k={Textarea:C.default,H2:y.default,Bullets:E.default,Caption:_.default,ImageUpload:N.default};function r(c="Textarea",l="",n,o){console.log("We are adding new block (functuin HandleAddBlock):"+c+l+n+o);let a={order:t.value.content.length+1,type:c,style:"",class:"",content:l,blocks:[],setFocus:!0};if(o&&o.blocks&&Array.isArray(o.blocks)){let p=o.blocks.map(x=>({...a,content:x.content})),w=[(o.index||n)+1,0].concat(p);t.value.content.splice.apply(t.value.content,w);const b=p[p.length-1];console.log("New block is"+b)}else n!==void 0?(t.value.content.splice(n+1,0,a),console.log("Latest block is"+a)):(console.log("Another block is"+a),t.value.content.push(a));i.value=null,s("update",t.value.content)}function g(c,l){const n=t.value.content.findIndex(o=>o===c);n!==-1&&(t.value.content[n]={...t.value.content[n],...l}),s("update",t.value.content)}function v(c){let l=t.value.content.findIndex(n=>n===c);l!==-1&&t.value.content.splice(l,1),t.value.content[l-1].setFocus=!0,s("update",t.value.content)}const i=e.ref(null),d=e.ref(!1),u=e.ref(!1);function h(){d.value=!0}function B(){d.value=!1}return e.watchEffect(()=>{t.value&&t.value.content.length===0&&r("Textarea",""),s("update",t.value.content)}),(c,l)=>(e.openBlock(),e.createElementBlock("section",null,[e.unref(t).content?(e.openBlock(),e.createBlock(e.unref(V.VueDraggableNext),{key:0,class:"w-full",list:e.unref(t).content,onStart:h,onEnd:B},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).content,(n,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"pos-relative"},[e.createElementVNode("div",{onMouseover:a=>(i.value=o,u.value=!1),class:"pos-relative w-full h-full"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k[n.type]),{index:o,component:n,prop:n,class:e.normalizeClass(n.class),setFocus:n.setFocus,content:"content",onDeleteBlock:v,onAddBlock:r,onUpdateBlock:g},null,40,["index","component","prop","class","setFocus"]))],40,D),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value===o?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pos-absolute pos-r-100 pos-t-0 z-index-4 i-semi",onMousedown:l[1]||(l[1]=e.withModifiers(a=>d.value=!0,["prevent"]))},[e.createElementVNode("button",{onClick:l[0]||(l[0]=a=>u.value=!u.value),class:"mn-small w-100 i-semi bg-white radius-thin"},e.toDisplayString(n.content?"...":"+"),1),u.value?(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("button",{onClick:a=>v(n),class:"block w-max text-left px-4 py-2 hover:bg-gray-200"},"Remove",8,A),e.createElementVNode("button",{onClick:a=>r("ImageUpload","",o),class:"block w-max text-left px-4 py-2 hover:bg-gray-200"},"Add Image",8,M),e.createElementVNode("button",{onClick:a=>r("H2","",o),class:"block w-max text-left px-4 py-2 hover:bg-gray-200"},"Add Title",8,$)])):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["list"])):e.createCommentVNode("",!0)]))}};exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../elements/Textarea.vue2.cjs"),E=require("../elements/H2.vue.cjs"),x=require("../elements/Caption.vue.cjs"),N=require("../elements/Bullets.vue.cjs"),y=require("../elements/ImageUpload.vue.cjs"),A=require("../elements/Embed.vue.cjs"),V=require("../elements/Audio.vue.cjs"),q=require("../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),D=["onMouseover"],$={key:0,class:"z-index-5 radius-thin pd-thin bg-white w-max mn-small flex-nowrap flex-column flex"},M=["onClick"],T=["onClick"],F=["onClick"],I=["onClick"],S={__name:"Constructor",props:["content"],emits:["update"],setup(f,{emit:u}){const v=f;let t=e.ref(null);e.ref(null),t.value={content:v.content};const k={Textarea:_.default,H2:E.default,Bullets:N.default,Caption:x.default,ImageUpload:y.default,Embed:A.default,Audio:V.default};function s(c="Textarea",l="",n,o){console.log("We are adding new block (functuin HandleAddBlock):"+c+l+n+o);let a={order:t.value.content.length+1,type:c,style:"",class:"",content:l,blocks:[],setFocus:!0};if(o&&o.blocks&&Array.isArray(o.blocks)){let m=o.blocks.map(C=>({...a,content:C.content})),w=[(o.index||n)+1,0].concat(m);t.value.content.splice.apply(t.value.content,w);const B=m[m.length-1];console.log("New block is"+B)}else n!==void 0?(t.value.content.splice(n+1,0,a),console.log("Latest block is"+a)):(console.log("Another block is"+a),t.value.content.push(a));i.value=null,u("update",t.value.content)}function g(c,l){const n=t.value.content.findIndex(o=>o===c);n!==-1&&(t.value.content[n]={...t.value.content[n],...l}),u("update",t.value.content)}function p(c){let l=t.value.content.findIndex(n=>n===c);l!==-1&&t.value.content.splice(l,1),t.value.content[l-1].setFocus=!0,u("update",t.value.content)}const i=e.ref(null),d=e.ref(!1),r=e.ref(!1);function h(){d.value=!0}function b(){d.value=!1}return e.watchEffect(()=>{t.value&&t.value.content.length===0&&s("Textarea",""),u("update",t.value.content)}),(c,l)=>(e.openBlock(),e.createElementBlock("section",null,[e.unref(t).content?(e.openBlock(),e.createBlock(e.unref(q.VueDraggableNext),{key:0,class:"w-full",list:e.unref(t).content,onStart:h,onEnd:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).content,(n,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"pos-relative"},[e.createElementVNode("div",{onMouseover:a=>(i.value=o,r.value=!1),class:"pos-relative w-full h-full"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k[n.type]),{index:o,component:n,prop:n,class:e.normalizeClass(n.class),setFocus:n.setFocus,content:"content",onDeleteBlock:p,onAddBlock:s,onUpdateBlock:g},null,40,["index","component","prop","class","setFocus"]))],40,D),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value===o?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pos-absolute z-index-4 i-semi",style:{right:"calc(100% + 0.5rem)",top:"calc(50% - 1.125rem)"},onMousedown:l[1]||(l[1]=e.withModifiers(a=>d.value=!0,["prevent"]))},[e.createElementVNode("button",{onClick:l[0]||(l[0]=a=>r.value=!r.value),class:"mn-small cursor-pointer w-100 i-semi bg-white radius-thin"},e.toDisplayString(n.content?"...":"+"),1),r.value?(e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("span",{onClick:a=>p(n),class:"mn-thin w-max t-red bg-white button-small button"}," Remove ",8,M),e.createElementVNode("span",{onClick:a=>s("ImageUpload","",o),class:"mn-thin w-max t-black bg-white button-small button"}," Add Image ",8,T),e.createElementVNode("span",{onClick:a=>s("H2","",o),class:"w-max button-small t-black bg-white button"}," Add Title ",8,F),e.createElementVNode("span",{onClick:a=>s("Embed","",o),class:"w-max button-small t-black bg-white button"}," Add Embed ",8,I)])):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["list"])):e.createCommentVNode("",!0)]))}};exports.default=S;
@@ -1,29 +1,33 @@
1
- import { ref as c, watchEffect as M, openBlock as a, createElementBlock as u, unref as v, createBlock as _, withCtx as w, Fragment as N, renderList as E, createElementVNode as r, resolveDynamicComponent as I, normalizeClass as T, createVNode as U, Transition as V, withModifiers as z, toDisplayString as H, createCommentVNode as k } from "vue";
1
+ import { ref as i, watchEffect as F, openBlock as a, createElementBlock as r, unref as p, createBlock as g, withCtx as b, Fragment as M, renderList as N, createElementVNode as c, resolveDynamicComponent as I, normalizeClass as T, createVNode as U, Transition as V, withModifiers as z, toDisplayString as H, createCommentVNode as k } from "vue";
2
2
  import S from "../elements/Textarea.vue2.js";
3
3
  import L from "../elements/H2.vue.js";
4
4
  import R from "../elements/Caption.vue.js";
5
5
  import W from "../elements/Bullets.vue.js";
6
6
  import j from "../elements/ImageUpload.vue.js";
7
- import { VueDraggableNext as q } from "../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
8
- const G = ["onMouseover"], J = {
7
+ import q from "../elements/Embed.vue.js";
8
+ import G from "../elements/Audio.vue.js";
9
+ import { VueDraggableNext as J } from "../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
10
+ const K = ["onMouseover"], O = {
9
11
  key: 0,
10
- class: "z-index-5 radius-thin mn-small relative left-0 mt-2 w-max bg-white shadow-lg rounded"
11
- }, K = ["onClick"], O = ["onClick"], P = ["onClick"], oe = {
12
+ class: "z-index-5 radius-thin pd-thin bg-white w-max mn-small flex-nowrap flex-column flex"
13
+ }, P = ["onClick"], Q = ["onClick"], X = ["onClick"], Y = ["onClick"], ue = {
12
14
  __name: "Constructor",
13
15
  props: ["content"],
14
16
  emits: ["update"],
15
- setup(x, { emit: i }) {
16
- const b = x;
17
- let e = c(null);
18
- c(null), e.value = { content: b.content };
19
- const y = {
17
+ setup(w, { emit: m }) {
18
+ const C = w;
19
+ let e = i(null);
20
+ i(null), e.value = { content: C.content };
21
+ const x = {
20
22
  Textarea: S,
21
23
  H2: L,
22
24
  Bullets: W,
23
25
  Caption: R,
24
- ImageUpload: j
26
+ ImageUpload: j,
27
+ Embed: q,
28
+ Audio: G
25
29
  };
26
- function p(s = "Textarea", o = "", t, n) {
30
+ function u(s = "Textarea", o = "", t, n) {
27
31
  console.log("We are adding new block (functuin HandleAddBlock):" + s + o + t + n);
28
32
  let l = {
29
33
  order: e.value.content.length + 1,
@@ -35,87 +39,92 @@ const G = ["onMouseover"], J = {
35
39
  setFocus: !0
36
40
  };
37
41
  if (n && n.blocks && Array.isArray(n.blocks)) {
38
- let g = n.blocks.map((F) => ({
42
+ let h = n.blocks.map((E) => ({
39
43
  ...l,
40
- content: F.content
41
- })), A = [(n.index || t) + 1, 0].concat(g);
44
+ content: E.content
45
+ })), A = [(n.index || t) + 1, 0].concat(h);
42
46
  e.value.content.splice.apply(e.value.content, A);
43
- const D = g[g.length - 1];
47
+ const D = h[h.length - 1];
44
48
  console.log("New block is" + D);
45
49
  } else
46
50
  t !== void 0 ? (e.value.content.splice(t + 1, 0, l), console.log("Latest block is" + l)) : (console.log("Another block is" + l), e.value.content.push(l));
47
- m.value = null, i("update", e.value.content);
51
+ f.value = null, m("update", e.value.content);
48
52
  }
49
- function C(s, o) {
53
+ function $(s, o) {
50
54
  const t = e.value.content.findIndex((n) => n === s);
51
- t !== -1 && (e.value.content[t] = { ...e.value.content[t], ...o }), i("update", e.value.content);
55
+ t !== -1 && (e.value.content[t] = { ...e.value.content[t], ...o }), m("update", e.value.content);
52
56
  }
53
- function h(s) {
57
+ function _(s) {
54
58
  let o = e.value.content.findIndex((t) => t === s);
55
- o !== -1 && e.value.content.splice(o, 1), e.value.content[o - 1].setFocus = !0, i("update", e.value.content);
59
+ o !== -1 && e.value.content.splice(o, 1), e.value.content[o - 1].setFocus = !0, m("update", e.value.content);
56
60
  }
57
- const m = c(null), f = c(!1), d = c(!1);
61
+ const f = i(null), v = i(!1), d = i(!1);
58
62
  function B() {
59
- f.value = !0;
63
+ v.value = !0;
60
64
  }
61
- function $() {
62
- f.value = !1;
65
+ function y() {
66
+ v.value = !1;
63
67
  }
64
- return M(() => {
65
- e.value && e.value.content.length === 0 && p("Textarea", ""), i("update", e.value.content);
66
- }), (s, o) => (a(), u("section", null, [
67
- v(e).content ? (a(), _(v(q), {
68
+ return F(() => {
69
+ e.value && e.value.content.length === 0 && u("Textarea", ""), m("update", e.value.content);
70
+ }), (s, o) => (a(), r("section", null, [
71
+ p(e).content ? (a(), g(p(J), {
68
72
  key: 0,
69
73
  class: "w-full",
70
- list: v(e).content,
74
+ list: p(e).content,
71
75
  onStart: B,
72
- onEnd: $
76
+ onEnd: y
73
77
  }, {
74
- default: w(() => [
75
- (a(!0), u(N, null, E(v(e).content, (t, n) => (a(), u("div", {
78
+ default: b(() => [
79
+ (a(!0), r(M, null, N(p(e).content, (t, n) => (a(), r("div", {
76
80
  key: n,
77
81
  class: "pos-relative"
78
82
  }, [
79
- r("div", {
80
- onMouseover: (l) => (m.value = n, d.value = !1),
83
+ c("div", {
84
+ onMouseover: (l) => (f.value = n, d.value = !1),
81
85
  class: "pos-relative w-full h-full"
82
86
  }, [
83
- (a(), _(I(y[t.type]), {
87
+ (a(), g(I(x[t.type]), {
84
88
  index: n,
85
89
  component: t,
86
90
  prop: t,
87
91
  class: T(t.class),
88
92
  setFocus: t.setFocus,
89
93
  content: "content",
90
- onDeleteBlock: h,
91
- onAddBlock: p,
92
- onUpdateBlock: C
94
+ onDeleteBlock: _,
95
+ onAddBlock: u,
96
+ onUpdateBlock: $
93
97
  }, null, 40, ["index", "component", "prop", "class", "setFocus"]))
94
- ], 40, G),
98
+ ], 40, K),
95
99
  U(V, { name: "fade" }, {
96
- default: w(() => [
97
- m.value === n ? (a(), u("div", {
100
+ default: b(() => [
101
+ f.value === n ? (a(), r("div", {
98
102
  key: 0,
99
- class: "pos-absolute pos-r-100 pos-t-0 z-index-4 i-semi",
100
- onMousedown: o[1] || (o[1] = z((l) => f.value = !0, ["prevent"]))
103
+ class: "pos-absolute z-index-4 i-semi",
104
+ style: { right: "calc(100% + 0.5rem)", top: "calc(50% - 1.125rem)" },
105
+ onMousedown: o[1] || (o[1] = z((l) => v.value = !0, ["prevent"]))
101
106
  }, [
102
- r("button", {
107
+ c("button", {
103
108
  onClick: o[0] || (o[0] = (l) => d.value = !d.value),
104
- class: "mn-small w-100 i-semi bg-white radius-thin"
109
+ class: "mn-small cursor-pointer w-100 i-semi bg-white radius-thin"
105
110
  }, H(t.content ? "..." : "+"), 1),
106
- d.value ? (a(), u("div", J, [
107
- r("button", {
108
- onClick: (l) => h(t),
109
- class: "block w-max text-left px-4 py-2 hover:bg-gray-200"
110
- }, "Remove", 8, K),
111
- r("button", {
112
- onClick: (l) => p("ImageUpload", "", n),
113
- class: "block w-max text-left px-4 py-2 hover:bg-gray-200"
114
- }, "Add Image", 8, O),
115
- r("button", {
116
- onClick: (l) => p("H2", "", n),
117
- class: "block w-max text-left px-4 py-2 hover:bg-gray-200"
118
- }, "Add Title", 8, P)
111
+ d.value ? (a(), r("div", O, [
112
+ c("span", {
113
+ onClick: (l) => _(t),
114
+ class: "mn-thin w-max t-red bg-white button-small button"
115
+ }, " Remove ", 8, P),
116
+ c("span", {
117
+ onClick: (l) => u("ImageUpload", "", n),
118
+ class: "mn-thin w-max t-black bg-white button-small button"
119
+ }, " Add Image ", 8, Q),
120
+ c("span", {
121
+ onClick: (l) => u("H2", "", n),
122
+ class: "w-max button-small t-black bg-white button"
123
+ }, " Add Title ", 8, X),
124
+ c("span", {
125
+ onClick: (l) => u("Embed", "", n),
126
+ class: "w-max button-small t-black bg-white button"
127
+ }, " Add Embed ", 8, Y)
119
128
  ])) : k("", !0)
120
129
  ], 32)) : k("", !0)
121
130
  ]),
@@ -129,5 +138,5 @@ const G = ["onMouseover"], J = {
129
138
  }
130
139
  };
131
140
  export {
132
- oe as default
141
+ ue as default
133
142
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue2.cjs"),r=require("../../../mobile/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-grey radius-medium pd-medium mn-small"><h2 class="mn-small">About No More Snow CO., LTD.</h2><p class="mn-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-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-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-grey"},{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");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue.cjs"),r=require("../../../mobile/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-grey radius-medium pd-medium mn-small"><h2 class="mn-small">About No More Snow CO., LTD.</h2><p class="mn-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-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-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-grey"},{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,7 +1,7 @@
1
1
  import { ref as l, openBlock as m, createElementBlock as u, createVNode as t, withCtx as o, unref as r, createStaticVNode as c, createElementVNode as a } from "vue";
2
2
  import "../../../../components/Field/Field.vue.js";
3
3
  import "../../../../components/Button/Button.vue.js";
4
- import p from "../../../mobile/components/Menu/Menu.vue2.js";
4
+ import p from "../../../mobile/components/Menu/Menu.vue.js";
5
5
  import n from "../../../mobile/components/Menu/MenuItem.vue.js";
6
6
  import { useRoute as d, useRouter as h } from "vue-router";
7
7
  import "../../../auth/store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Menu.vue2.cjs");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},o={__name:"Menu",setup(u){return(t,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports.default=o;
@@ -1,4 +1,13 @@
1
- const e = "";
1
+ import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
2
+ import "./Menu.vue2.js";
3
+ const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, d = {
4
+ __name: "Menu",
5
+ setup(s) {
6
+ return (e, i) => (t(), o("section", r, [
7
+ n(e.$slots, "default")
8
+ ]));
9
+ }
10
+ };
2
11
  export {
3
- e as default
12
+ d as default
4
13
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Menu.vue.cjs");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},o={__name:"Menu",setup(u){return(t,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,13 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
2
- import "./Menu.vue.js";
3
- const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, d = {
4
- __name: "Menu",
5
- setup(s) {
6
- return (e, i) => (t(), o("section", r, [
7
- n(e.$slots, "default")
8
- ]));
9
- }
10
- };
1
+ const e = "";
11
2
  export {
12
- d as default
3
+ e as default
13
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),v=require("../sections/MembersAdd.vue.cjs"),_=require("../sections/MembersList.vue.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");const p=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),f=require("../../../auth/store/auth.cjs"),a=require("../../store/invites.cjs"),s=require("../../store/memberships.cjs"),o=require("../../store/organizations.cjs"),b=e.createElementVNode("section",{class:"mn-medium radius-medium pd-semi bg-white"},[e.createElementVNode("h2",{class:"mn-regular"},"Участники"),e.createElementVNode("p",{class:"t-transp p-big"},"Добавляйте новых участников организации и настраивайте права доступа.")],-1),h=e.createElementVNode("span",null,"Departments",-1),q={__name:"Members",setup(g){const i=m.useRoute(),n=e.ref(null);e.onMounted(async()=>{n.value=(await o.actions.read({_id:i.params._id,user:f.state.user._id}))[0],await s.actions.read(i.params._id),await a.actions.read(n.value._id)});async function u(t){await a.actions.create(n.value._id,t)}async function c(t){await s.actions.delete(t._id)}async function d(t){await a.actions.delete(t._id)}return(t,r)=>{const l=e.resolveComponent("IconEvents");return e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[b,e.createVNode(p.default,{onClick:r[0]||(r[0]=w=>t.router.push({name:"User Events",params:{_id:e.unref(i).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(l,{class:"i-semi",icon:!0}),h]),_:1}),e.createVNode(v.default,{organization:n.value,onSendInvite:u},null,8,["organization"]),e.createVNode(_.default,{organization:o,memberships:t.memberships,invites:a.state.invites,onRemoveInvite:d,onRemoveMember:c},null,8,["memberships","invites"])])]),_:1})}}};exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),v=require("../sections/MembersAdd.vue.cjs"),_=require("../sections/MembersList.vue.cjs");require("../../../mobile/components/Menu/Menu.vue2.cjs");const p=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),f=require("../../../auth/store/auth.cjs"),a=require("../../store/invites.cjs"),s=require("../../store/memberships.cjs"),o=require("../../store/organizations.cjs"),b=e.createElementVNode("section",{class:"mn-medium radius-medium pd-semi bg-white"},[e.createElementVNode("h2",{class:"mn-regular"},"Участники"),e.createElementVNode("p",{class:"t-transp p-big"},"Добавляйте новых участников организации и настраивайте права доступа.")],-1),h=e.createElementVNode("span",null,"Departments",-1),q={__name:"Members",setup(g){const i=m.useRoute(),n=e.ref(null);e.onMounted(async()=>{n.value=(await o.actions.read({_id:i.params._id,user:f.state.user._id}))[0],await s.actions.read(i.params._id),await a.actions.read(n.value._id)});async function u(t){await a.actions.create(n.value._id,t)}async function c(t){await s.actions.delete(t._id)}async function d(t){await a.actions.delete(t._id)}return(t,r)=>{const l=e.resolveComponent("IconEvents");return e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[b,e.createVNode(p.default,{onClick:r[0]||(r[0]=w=>t.router.push({name:"User Events",params:{_id:e.unref(i).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(l,{class:"i-semi",icon:!0}),h]),_:1}),e.createVNode(v.default,{organization:n.value,onSendInvite:u},null,8,["organization"]),e.createVNode(_.default,{organization:o,memberships:t.memberships,invites:a.state.invites,onRemoveInvite:d,onRemoveMember:c},null,8,["memberships","invites"])])]),_:1})}}};exports.default=q;
@@ -2,7 +2,7 @@ import { ref as l, onMounted as _, resolveComponent as f, openBlock as v, create
2
2
  import { useRoute as w } from "vue-router";
3
3
  import $ from "../sections/MembersAdd.vue.js";
4
4
  import I from "../sections/MembersList.vue.js";
5
- import "../../../mobile/components/Menu/Menu.vue.js";
5
+ import "../../../mobile/components/Menu/Menu.vue2.js";
6
6
  import z from "../../../mobile/components/Menu/MenuItem.vue.js";
7
7
  import { state as y } from "../../../auth/store/auth.js";
8
8
  import { actions as o, state as E } from "../../store/invites.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");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const q=require("../../../../components/Tab/Tab.vue2.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const p=require("../../../events/components/sections/Feed.vue.cjs"),_=require("../../../community/components/sections/Feed.vue.cjs"),v=require("../../../spots/components/sections/Feed.vue.cjs"),f=require("../sections/DetailsTab.vue.cjs"),b=require("../../../products/components/pages/Products.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const n=require("../../../auth/store/auth.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("../../store/invites.cjs");const c=require("../../store/memberships.cjs"),o=require("../../store/organizations.cjs");require("./Organization.vue2.cjs");const g={key:0,class:"pd-thin for-transition w-100"},y=e.createElementVNode("p",null,"34 members",-1),h=[y],k={class:"pos-relative"},N={key:0},V={__name:"Organization",setup(w){const s=d.useRouter(),r=d.useRoute();let m=r.query.tab?r.query.tab:"events";const u=e.ref(null);e.onMounted(async()=>{u.value=await o.actions.read({_id:r.params._id,user:n.state.user._id}),await c.actions.read(r.params._id)});const t=e.ref(m);return r.query.tab=t.value,e.watch(t,i=>{s.replace({query:{...r.query,tab:i}})}),(i,a)=>u.value?(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(f.default,{organization:o.state.current,user:n.state.user,class:"mn-semi"},null,8,["organization","user"]),e.createElementVNode("section",{onClick:a[0]||(a[0]=l=>e.unref(s).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"mn-semi bg-grey radius-big pd-medium"},h),e.createVNode(q.default,{selected:t.value,"onUpdate:selected":a[1]||(a[1]=l=>t.value=l),tabs:[{name:"Community",value:"community"},{name:"Products",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",k,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="community"?(e.openBlock(),e.createBlock(_.default,{key:0,user:n.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="events"?(e.openBlock(),e.createBlock(p.default,{key:0,user:n.state.user._id,owner:e.unref(r).params._id,sortOrder:"asc"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="products"?(e.openBlock(),e.createBlock(b.default,{key:0,organization:o.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="spots"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(v.default,{organization:o.state.current,memberships:c.state.memberships},null,8,["organization","memberships"])])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}};exports.default=V;
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");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const q=require("../../../../components/Tab/Tab.vue2.cjs");require("../../../mobile/components/Menu/Menu.vue2.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const _=require("../../../events/components/sections/Feed.vue.cjs"),p=require("../../../community/components/sections/Feed.vue.cjs"),f=require("../../../spots/components/sections/Feed.vue.cjs"),v=require("../sections/DetailsTab.vue.cjs"),b=require("../../../products/components/pages/Products.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const n=require("../../../auth/store/auth.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("../../store/invites.cjs");const c=require("../../store/memberships.cjs"),o=require("../../store/organizations.cjs");require("./Organization.vue2.cjs");const g={key:0,class:"pd-thin for-transition w-100"},y=e.createElementVNode("p",null,"34 members",-1),h=[y],k={class:"pos-relative"},N={key:0},V={__name:"Organization",setup(w){const i=d.useRouter(),r=d.useRoute();let m=r.query.tab?r.query.tab:"events";const s=e.ref(null);e.onMounted(async()=>{s.value=await o.actions.read({_id:r.params._id,user:n.state.user._id}),await c.actions.read(r.params._id)});const t=e.ref(m);return r.query.tab=t.value,e.watch(t,u=>{i.replace({query:{...r.query,tab:u}})}),(u,a)=>s.value?(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(v.default,{organization:o.state.current,user:n.state.user,class:"mn-semi"},null,8,["organization","user"]),e.createElementVNode("section",{onClick:a[0]||(a[0]=l=>e.unref(i).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"mn-semi bg-grey radius-big pd-medium"},h),e.createVNode(q.default,{selected:t.value,"onUpdate:selected":a[1]||(a[1]=l=>t.value=l),tabs:[{name:"Community",value:"community"},{name:"Events",value:"events"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",k,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="community"?(e.openBlock(),e.createBlock(p.default,{key:0,user:n.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="events"?(e.openBlock(),e.createBlock(_.default,{key:0,user:n.state.user._id,owner:e.unref(r).params._id,sortOrder:"asc"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="products"?(e.openBlock(),e.createBlock(b.default,{key:0,organization:o.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="spots"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(f.default,{organization:o.state.current,memberships:c.state.memberships},null,8,["organization","memberships"])])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}};exports.default=V;