@ozdao/prometheus-framework 0.2.134 → 0.2.135

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  2. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  3. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  5. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  7. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  9. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  11. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +73 -43
  13. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -0
  14. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +64 -0
  15. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -0
  16. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.js +24 -0
  17. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -0
  18. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +181 -0
  19. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -0
  20. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +478 -0
  21. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +1 -0
  22. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +121 -0
  23. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -0
  24. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +203 -0
  25. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -0
  26. package/dist/prometheus-framework/src/modules/spots/router/spots.js +92 -0
  27. package/dist/prometheus-framework/src/modules/spots/spots.client.cjs +1 -0
  28. package/dist/prometheus-framework/src/modules/spots/spots.client.js +37 -0
  29. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  31. package/dist/spots.server.js +169 -0
  32. package/dist/spots.server.mjs +170 -0
  33. package/dist/style.css +1 -1
  34. package/package.json +1 -1
  35. package/src/modules/globals/components/layouts/Client.vue +10 -8
  36. package/src/modules/globals/components/sections/Walkthrough.vue +4 -4
  37. package/src/modules/globals/globals.client.js +5 -5
  38. package/src/modules/organizations/components/pages/OrganizationEdit.vue +29 -1
  39. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  40. package/src/modules/spots/components/pages/SpotEdit.vue +8 -53
  41. package/src/modules/spots/models/spot.model.js +7 -7
  42. package/src/modules/spots/router/spots.js +65 -61
  43. package/src/modules/spots/spots.client.js +43 -0
  44. package/src/modules/spots/spots.server.js +31 -0
  45. package/src/modules/spots/components/sections/PlaceModify.vue +0 -113
  46. package/src/modules/spots/components/sections/Places.vue +0 -119
@@ -0,0 +1,121 @@
1
+ import { openBlock as e, createElementBlock as i, createVNode as c, createElementVNode as o, withCtx as a, toDisplayString as u, createCommentVNode as h, Fragment as m, renderList as g, createBlock as b, pushScopeId as v, popScopeId as w } from "vue";
2
+ import L from "../../../../components/Spoiler/Spoiler.vue2.js";
3
+ import $ from "../../../../components/Map/Map.vue.js";
4
+ import _ from "../blocks/SpotSub.vue.js";
5
+ import C from "../../../users/components/blocks/CardUser.vue.js";
6
+ /* empty css */
7
+ import k from "../../../../../../_virtual/_plugin-vue_export-helper.js";
8
+ const r = (t) => (v("data-v-a4b9b533"), t = t(), w(), t), x = { class: "radius-big o-hidden cols-2-1_3" }, M = { class: "pd-medium w-100" }, y = /* @__PURE__ */ r(() => /* @__PURE__ */ o("path", {
9
+ d: "M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",
10
+ fill: "rgb(var(--black))"
11
+ }, null, -1)), z = [
12
+ y
13
+ ], S = ["innerHTML"], A = ["innerHTML"], B = { class: "pd-small flex-v-center flex-nowrap flex" }, H = /* @__PURE__ */ r(() => /* @__PURE__ */ o("h5", { class: "w-100" }, "Contacts ", -1)), Z = { class: "mn-r-small" }, I = /* @__PURE__ */ r(() => /* @__PURE__ */ o("svg", {
14
+ width: "14",
15
+ height: "9",
16
+ viewBox: "0 0 14 9",
17
+ fill: "none",
18
+ xmlns: "http://www.w3.org/2000/svg"
19
+ }, [
20
+ /* @__PURE__ */ o("path", {
21
+ "fill-rule": "evenodd",
22
+ "clip-rule": "evenodd",
23
+ d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
24
+ fill: "#8A8A8A"
25
+ })
26
+ ], -1)), T = { key: 0 }, N = { class: "pd-small flex-v-center flex-nowrap flex" }, V = /* @__PURE__ */ r(() => /* @__PURE__ */ o("h5", { class: "w-100" }, "Working Hours ", -1)), j = { class: "mn-r-small" }, E = /* @__PURE__ */ r(() => /* @__PURE__ */ o("svg", {
27
+ width: "14",
28
+ height: "9",
29
+ viewBox: "0 0 14 9",
30
+ fill: "none",
31
+ xmlns: "http://www.w3.org/2000/svg"
32
+ }, [
33
+ /* @__PURE__ */ o("path", {
34
+ "fill-rule": "evenodd",
35
+ "clip-rule": "evenodd",
36
+ d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
37
+ fill: "#8A8A8A"
38
+ })
39
+ ], -1)), O = { key: 0 }, D = {
40
+ __name: "Spot",
41
+ props: {
42
+ spot: Object,
43
+ organization: Object
44
+ },
45
+ setup(t) {
46
+ const d = t;
47
+ return (l, n) => (e(), i("div", x, [
48
+ c($, {
49
+ location: { lat: t.spot.location.coordinates[1], lng: t.spot.location.coordinates[0] },
50
+ class: ""
51
+ }, null, 8, ["location"]),
52
+ o("div", M, [
53
+ (e(), i("svg", {
54
+ onClick: n[0] || (n[0] = (s) => l.$router.push(`/app/organization/${d.organization._id}/spots/${t.spot._id}/edit`)),
55
+ class: "i-regular pos-absolute pos-r-0 pos-t-0 t-transp",
56
+ width: "652",
57
+ height: "652",
58
+ viewBox: "0 0 652 652",
59
+ fill: "none",
60
+ xmlns: "http://www.w3.org/2000/svg"
61
+ }, z)),
62
+ o("h3", {
63
+ onClick: n[1] || (n[1] = (s) => l.$router.push(`/app/organization/${d.organization._id}/spots/${t.spot._id}`)),
64
+ class: "mn-b-small w-100",
65
+ innerHTML: t.spot.profile.name
66
+ }, null, 8, S),
67
+ o("p", {
68
+ onClick: n[2] || (n[2] = (s) => l.$router.push(`/app/organization/${d.organization._id}/spots/${t.spot._id}`)),
69
+ class: "mn-b-small p-big w-100",
70
+ innerHTML: t.spot.address
71
+ }, null, 8, A),
72
+ c(L, { class: "radius-small o-hidden br-1px br-solid br-grey-transp-25 mn-b-thin" }, {
73
+ header: a(() => [
74
+ o("div", B, [
75
+ H,
76
+ o("p", Z, u(t.spot.members.length) + " человек", 1),
77
+ I
78
+ ])
79
+ ]),
80
+ content: a(() => [
81
+ o("ul", null, [
82
+ t.spot.members.length < 1 ? (e(), i("li", T, "В отделе еще нет участников")) : h("", !0),
83
+ (e(!0), i(m, null, g(t.spot.members, (s, p) => (e(), b(C, {
84
+ class: "br-b br-solid br-grey-transp-25",
85
+ key: p,
86
+ user: s.user,
87
+ position: s.position,
88
+ onClick: (f) => l.$router.push(`/app/profile/${s.user._id}`)
89
+ }, null, 8, ["user", "position", "onClick"]))), 128))
90
+ ])
91
+ ]),
92
+ _: 1
93
+ }),
94
+ c(L, { class: "radius-small o-hidden br-1px br-solid br-grey-transp-25 mn-b-thin" }, {
95
+ header: a(() => [
96
+ o("div", N, [
97
+ V,
98
+ o("p", j, u(t.spot.subspots ? t.spot.subspots.length : 0) + " отделов", 1),
99
+ E
100
+ ])
101
+ ]),
102
+ content: a(() => [
103
+ o("ul", null, [
104
+ t.spot.subspots.length < 1 ? (e(), i("li", O, "В отделе еще нет подотделов")) : h("", !0),
105
+ (e(!0), i(m, null, g(t.spot.subspots, (s, p) => (e(), b(_, {
106
+ onClick: (f) => l.$router.push(`/app/organization/spots/${s._id}`),
107
+ key: p,
108
+ class: "br-b br-solid br-grey-transp-25",
109
+ spot: s
110
+ }, null, 8, ["onClick", "spot"]))), 128))
111
+ ])
112
+ ]),
113
+ _: 1
114
+ })
115
+ ])
116
+ ]));
117
+ }
118
+ }, Q = /* @__PURE__ */ k(D, [["__scopeId", "data-v-a4b9b533"]]);
119
+ export {
120
+ Q as default
121
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-router"),d=require("../../../../components/Block/Block.vue.cjs"),h=require("../../../../components/UploadImage/UploadImage.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue.cjs"),N=require("../../../../components/Select/Select.vue.cjs"),n=require("../../../../components/Checkbox/Checkbox.vue.cjs"),g=require("../../../../components/Address/Address.vue2.cjs"),w=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),u=require("../../../../components/Button/Button.vue.cjs");require("vue-i18n");;/* empty css */const t=require("../../store/spots.cjs"),V={class:"for-transition w-100 cols-1 pd-thin gap-thin"},y={class:"mn-r-auto"},E={class:"cols-2 gap-thin"},S={class:"gap-small mn-b-small cols-2-fit-content"},k={class:"w-100"},q=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please the available delivery options:",-1),U=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select the available payment methods:",-1),_=e.createElementVNode("p",{class:"mn-b-small p-medium"},"Options:",-1),P={__name:"SpotEdit",setup(x){const m=p.useRouter(),l=p.useRoute();e.ref("details"),e.ref(!1),e.onMounted(async()=>{await c()});async function c(){var s,o;l.params.spot&&await t.actions.readOne(l.params.spot);const i=(s=t.state.spot.location)==null?void 0:s.coordinates[0],a=(o=t.state.spot.location)==null?void 0:o.coordinates[1];t.state.spot.location={lat:a||1,lng:i||1}}async function f(){t.state.spot.location={type:"Point",coordinates:[t.state.spot.location.lng,t.state.spot.location.lat]},l.params.spot&&await t.actions.update(l.params._id,t.state.spot),l.params.spot||await t.actions.create(l.params._id,t.state.spot)}function b(){m.replace({name:"Spot",params:{_id:l.params._id,spot:t.state.spot._id}})}async function v(){await t.actions.delete(l.params._id,t.state.spot)}return(i,a)=>(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(d.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",y,e.toDisplayString(e.unref(l).params.spot?t.state.spot.profile.name:"Create Spot"),1),e.createVNode(u.default,{submit:f,callback:b,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save Spot ")]),_:1})]),_:1}),e.createElementVNode("div",E,[e.createVNode(d.default,{title:"Profile",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",S,[e.createVNode(h.default,{photo:t.state.spot.profile.photo,"onUpdate:photo":a[0]||(a[0]=s=>t.state.spot.profile.photo=s),uploadPath:"organizations/"+t.state.spot.name+"/avatars",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",k,[e.createVNode(r.default,{field:t.state.spot.profile.name,"onUpdate:field":a[1]||(a[1]=s=>t.state.spot.profile.name=s),label:"Name",placeholder:"Spot Name",class:"mn-b-small bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"]),e.createVNode(r.default,{field:t.state.spot.profile.description,"onUpdate:field":a[2]||(a[2]=s=>t.state.spot.profile.description=s),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])])]),e.createVNode(N.default,{select:t.state.spot.status,"onUpdate:select":a[3]||(a[3]=s=>t.state.spot.status=s),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),q,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["pickup","courier","post"],s=>e.createVNode(n.default,{label:s,name:"Delivery",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.delivery,"onUpdate:radio":a[4]||(a[4]=o=>t.state.spot.delivery=o)},null,8,["label","value","radio"])),64)),U,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["cash","bank transfer","crypto"],s=>e.createVNode(n.default,{label:s,name:"Payment",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.payment,"onUpdate:radio":a[5]||(a[5]=o=>t.state.spot.payment=o)},null,8,["label","value","radio"])),64))]),_:1}),e.createVNode(d.default,{title:"Location",class:"pos-relative"},{default:e.withCtx(()=>{var s;return[e.createVNode(g.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,label:"Address",placeholder:"Enter delivery address",class:"bg-white pd-small radius-tl-medium radius-tr-medium","onUpdate:location":a[6]||(a[6]=o=>{t.state.spot.location=o}),"onUpdate:address":a[7]||(a[7]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location"]),e.createVNode(w.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,class:"h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden","onUpdate:location":a[8]||(a[8]=o=>{t.state.spot.location=o}),"onUpdate:address":a[9]||(a[9]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location"]),_,e.createVNode(n.default,{label:"Hide address",name:"address",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:(s=t.state.spot.position)==null?void 0:s.hide,"onUpdate:radio":a[10]||(a[10]=o=>t.state.spot.position.hide=o)},null,8,["radio"]),e.createVNode(r.default,{field:t.state.spot.minorder,"onUpdate:field":a[11]||(a[11]=o=>t.state.spot.minorder=o),label:"Min.order",placeholder:"Enter minimum order value",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])]}),_:1})]),e.createVNode(u.default,{submit:v,callback:i.redirectToDash,class:"w-100 bg-light"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1},8,["callback"])]))}};exports.default=P;
@@ -0,0 +1,203 @@
1
+ import { ref as b, onMounted as E, openBlock as p, createElementBlock as m, createVNode as e, withCtx as n, createElementVNode as d, toDisplayString as D, unref as N, createTextVNode as v, Fragment as h, renderList as _ } from "vue";
2
+ import { useRouter as k, useRoute as $ } from "vue-router";
3
+ import u from "../../../../components/Block/Block.vue.js";
4
+ import K from "../../../../components/UploadImage/UploadImage.vue.js";
5
+ /* empty css */
6
+ import c from "../../../../components/Field/Field.vue.js";
7
+ import O from "../../../../components/Select/Select.vue.js";
8
+ import f from "../../../../components/Checkbox/Checkbox.vue.js";
9
+ import A from "../../../../components/Address/Address.vue2.js";
10
+ import x from "../../../../components/LocationMarker/LocationMarker.vue2.js";
11
+ import g from "../../../../components/Button/Button.vue.js";
12
+ import "vue-i18n";
13
+ /* empty css */
14
+ import { actions as r, state as a } from "../../store/spots.js";
15
+ const z = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, G = { class: "mn-r-auto" }, L = { class: "cols-2 gap-thin" }, M = { class: "gap-small mn-b-small cols-2-fit-content" }, T = { class: "w-100" }, V = /* @__PURE__ */ d("p", { class: "p-medium mn-b-small" }, "Please the available delivery options:", -1), B = /* @__PURE__ */ d("p", { class: "p-medium mn-b-small" }, "Please select the available payment methods:", -1), C = /* @__PURE__ */ d("p", { class: "mn-b-small p-medium" }, "Options:", -1), sa = {
16
+ __name: "SpotEdit",
17
+ setup(I) {
18
+ const w = k(), l = $();
19
+ b("details"), b(!1), E(async () => {
20
+ await y();
21
+ });
22
+ async function y() {
23
+ var t, s;
24
+ l.params.spot && await r.readOne(l.params.spot);
25
+ const i = (t = a.spot.location) == null ? void 0 : t.coordinates[0], o = (s = a.spot.location) == null ? void 0 : s.coordinates[1];
26
+ a.spot.location = {
27
+ lat: o || 1,
28
+ lng: i || 1
29
+ };
30
+ }
31
+ async function S() {
32
+ a.spot.location = {
33
+ type: "Point",
34
+ coordinates: [a.spot.location.lng, a.spot.location.lat]
35
+ }, l.params.spot && await r.update(
36
+ l.params._id,
37
+ a.spot
38
+ ), l.params.spot || await r.create(
39
+ l.params._id,
40
+ a.spot
41
+ );
42
+ }
43
+ function U() {
44
+ w.replace({ name: "Spot", params: { _id: l.params._id, spot: a.spot._id } });
45
+ }
46
+ async function P() {
47
+ await r.delete(
48
+ l.params._id,
49
+ a.spot
50
+ );
51
+ }
52
+ return (i, o) => (p(), m("div", z, [
53
+ e(u, { class: "flex-nowrap flex-v-center flex" }, {
54
+ default: n(() => [
55
+ d("h1", G, D(N(l).params.spot ? a.spot.profile.name : "Create Spot"), 1),
56
+ e(g, {
57
+ submit: S,
58
+ callback: U,
59
+ class: "bg-main"
60
+ }, {
61
+ default: n(() => [
62
+ v(" Save Spot ")
63
+ ]),
64
+ _: 1
65
+ })
66
+ ]),
67
+ _: 1
68
+ }),
69
+ d("div", L, [
70
+ e(u, {
71
+ title: "Profile",
72
+ class: "mn-b-semi"
73
+ }, {
74
+ default: n(() => [
75
+ d("div", M, [
76
+ e(K, {
77
+ photo: a.spot.profile.photo,
78
+ "onUpdate:photo": o[0] || (o[0] = (t) => a.spot.profile.photo = t),
79
+ uploadPath: "organizations/" + a.spot.name + "/avatars",
80
+ class: "aspect-1x1 w-8r o-hidden radius-extra"
81
+ }, null, 8, ["photo", "uploadPath"]),
82
+ d("div", T, [
83
+ e(c, {
84
+ field: a.spot.profile.name,
85
+ "onUpdate:field": o[1] || (o[1] = (t) => a.spot.profile.name = t),
86
+ label: "Name",
87
+ placeholder: "Spot Name",
88
+ class: "mn-b-small bg-white radius-small pd-medium",
89
+ validation: i.organizationName
90
+ }, null, 8, ["field", "validation"]),
91
+ e(c, {
92
+ field: a.spot.profile.description,
93
+ "onUpdate:field": o[2] || (o[2] = (t) => a.spot.profile.description = t),
94
+ label: "Description",
95
+ placeholder: "Spot description (max 120 symbols)",
96
+ class: "bg-white radius-small pd-medium",
97
+ validation: i.organizationName
98
+ }, null, 8, ["field", "validation"])
99
+ ])
100
+ ]),
101
+ e(O, {
102
+ select: a.spot.status,
103
+ "onUpdate:select": o[3] || (o[3] = (t) => a.spot.status = t),
104
+ label: "Status",
105
+ options: [
106
+ "unpublished",
107
+ "published",
108
+ "archivied"
109
+ ],
110
+ placeholder: "Display product",
111
+ class: "pos-relative w-100 mn-b-small bg-white radius-small pd-medium"
112
+ }, null, 8, ["select"]),
113
+ V,
114
+ (p(), m(h, null, _(["pickup", "courier", "post"], (t) => e(f, {
115
+ label: t,
116
+ name: "Delivery",
117
+ value: t,
118
+ class: "w-100 mn-b-small bg-white radius-small pd-small",
119
+ radio: a.spot.delivery,
120
+ "onUpdate:radio": o[4] || (o[4] = (s) => a.spot.delivery = s)
121
+ }, null, 8, ["label", "value", "radio"])), 64)),
122
+ B,
123
+ (p(), m(h, null, _(["cash", "bank transfer", "crypto"], (t) => e(f, {
124
+ label: t,
125
+ name: "Payment",
126
+ value: t,
127
+ class: "w-100 mn-b-small bg-white radius-small pd-small",
128
+ radio: a.spot.payment,
129
+ "onUpdate:radio": o[5] || (o[5] = (s) => a.spot.payment = s)
130
+ }, null, 8, ["label", "value", "radio"])), 64))
131
+ ]),
132
+ _: 1
133
+ }),
134
+ e(u, {
135
+ title: "Location",
136
+ class: "pos-relative"
137
+ }, {
138
+ default: n(() => {
139
+ var t;
140
+ return [
141
+ e(A, {
142
+ apiKey: i.GOOGLE_MAPS_API_KEY,
143
+ address: a.spot.address,
144
+ location: a.spot.location,
145
+ label: "Address",
146
+ placeholder: "Enter delivery address",
147
+ class: "bg-white pd-small radius-tl-medium radius-tr-medium",
148
+ "onUpdate:location": o[6] || (o[6] = (s) => {
149
+ a.spot.location = s;
150
+ }),
151
+ "onUpdate:address": o[7] || (o[7] = (s) => {
152
+ a.spot.address = s;
153
+ })
154
+ }, null, 8, ["apiKey", "address", "location"]),
155
+ e(x, {
156
+ apiKey: i.GOOGLE_MAPS_API_KEY,
157
+ address: a.spot.address,
158
+ location: a.spot.location,
159
+ class: "h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden",
160
+ "onUpdate:location": o[8] || (o[8] = (s) => {
161
+ a.spot.location = s;
162
+ }),
163
+ "onUpdate:address": o[9] || (o[9] = (s) => {
164
+ a.spot.address = s;
165
+ })
166
+ }, null, 8, ["apiKey", "address", "location"]),
167
+ C,
168
+ e(f, {
169
+ label: "Hide address",
170
+ name: "address",
171
+ class: "w-100 mn-r-small bg-white radius-small pd-small",
172
+ radio: (t = a.spot.position) == null ? void 0 : t.hide,
173
+ "onUpdate:radio": o[10] || (o[10] = (s) => a.spot.position.hide = s)
174
+ }, null, 8, ["radio"]),
175
+ e(c, {
176
+ field: a.spot.minorder,
177
+ "onUpdate:field": o[11] || (o[11] = (s) => a.spot.minorder = s),
178
+ label: "Min.order",
179
+ placeholder: "Enter minimum order value",
180
+ class: "bg-white radius-small pd-medium",
181
+ validation: i.organizationName
182
+ }, null, 8, ["field", "validation"])
183
+ ];
184
+ }),
185
+ _: 1
186
+ })
187
+ ]),
188
+ e(g, {
189
+ submit: P,
190
+ callback: i.redirectToDash,
191
+ class: "w-100 bg-light"
192
+ }, {
193
+ default: n(() => [
194
+ v("Delete Spot")
195
+ ]),
196
+ _: 1
197
+ }, 8, ["callback"])
198
+ ]));
199
+ }
200
+ };
201
+ export {
202
+ sa as default
203
+ };
@@ -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"),r=require("../components/layouts/Spots.vue.cjs"),e=require("../../middlewares/client/auth.validation.cjs"),o={path:"spots",component:t.default,meta:{title:{en:"Spots",ru:"Места"}},children:[{path:":country?",component:r.default,meta:{title:{en:"Spots",ru:"Места"},header_theme:"dark",footer_theme:"dark"},children:[{path:":state?",name:"Spots tate",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs")),children:[{path:":city?",name:"Spots City",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs"))}]}]},{path:":_id/spots/create",name:"Spot Creation",meta:{title:"Создание точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))},{path:":_id/spots/:deparment",name:"Spot",meta:{title:"Точка"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/Spot.vue.cjs"))},{path:":_id/spots/:spot/edit",name:"Spot Edit",meta:{title:"Редактирование точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))}]};exports.default=o;
@@ -0,0 +1,92 @@
1
+ import e from "../../globals/components/layouts/Empty.vue.js";
2
+ import o from "../components/layouts/Spots.vue.js";
3
+ import { requiresAuth as t } from "../../middlewares/client/auth.validation.js";
4
+ const n = {
5
+ path: "spots",
6
+ component: e,
7
+ meta: {
8
+ title: {
9
+ en: "Spots",
10
+ ru: "Места"
11
+ }
12
+ },
13
+ children: [
14
+ {
15
+ path: ":country?",
16
+ component: o,
17
+ meta: {
18
+ title: {
19
+ en: "Spots",
20
+ ru: "Места"
21
+ },
22
+ header_theme: "dark",
23
+ footer_theme: "dark"
24
+ },
25
+ children: [
26
+ {
27
+ path: ":state?",
28
+ name: "Spots tate",
29
+ component: () => import(
30
+ /* webpackChunkName: 'Deliveries' */
31
+ "../components/pages/Map.vue.js"
32
+ ),
33
+ children: [
34
+ {
35
+ path: ":city?",
36
+ name: "Spots City",
37
+ component: () => import(
38
+ /* webpackChunkName: 'Deliveries' */
39
+ "../components/pages/Map.vue.js"
40
+ )
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ path: ":_id/spots/create",
48
+ name: "Spot Creation",
49
+ meta: {
50
+ title: "Создание точки"
51
+ },
52
+ beforeEnter: [
53
+ t
54
+ ],
55
+ component: () => import(
56
+ /* webpackChunkName: "spot" */
57
+ "../components/pages/SpotEdit.vue.js"
58
+ )
59
+ },
60
+ {
61
+ path: ":_id/spots/:deparment",
62
+ name: "Spot",
63
+ meta: {
64
+ title: "Точка"
65
+ },
66
+ beforeEnter: [
67
+ t
68
+ ],
69
+ component: () => import(
70
+ /* webpackChunkName: "spot" */
71
+ "../components/pages/Spot.vue.js"
72
+ )
73
+ },
74
+ {
75
+ path: ":_id/spots/:spot/edit",
76
+ name: "Spot Edit",
77
+ meta: {
78
+ title: "Редактирование точки"
79
+ },
80
+ beforeEnter: [
81
+ t
82
+ ],
83
+ component: () => import(
84
+ /* webpackChunkName: "spot" */
85
+ "../components/pages/SpotEdit.vue.js"
86
+ )
87
+ }
88
+ ]
89
+ };
90
+ export {
91
+ n as default
92
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./store/spots.cjs"),e=require("./router/spots.cjs"),u=require("./components/layouts/Spots.vue.cjs"),s=require("./components/pages/Spot.vue.cjs"),i=require("./components/pages/SpotEdit.vue.cjs"),p=require("./components/pages/Map.vue.cjs"),d=require("./components/blocks/CardSpot.vue.cjs"),a=require("./components/blocks/SpotMemberModify.vue.cjs"),S=require("./components/blocks/SpotSub.vue.cjs");function l(c,o,r){r.addRoute("Home",e.default),o.addStore("spots",t)}const n={initialize:l,views:{store:{storeSpots:t},router:{routerSpots:e.default},components:{Spots:u.default,Spot:s.default,SpotEdit:i.default,Map:p.default,CardSpot:d.default,SpotMemberModify:a.default,SpotSub:S.default}}};exports.default=n;
@@ -0,0 +1,37 @@
1
+ import * as o from "./store/spots.js";
2
+ import t from "./router/spots.js";
3
+ import i from "./components/layouts/Spots.vue.js";
4
+ import m from "./components/pages/Spot.vue.js";
5
+ import s from "./components/pages/SpotEdit.vue.js";
6
+ import e from "./components/pages/Map.vue.js";
7
+ import f from "./components/blocks/CardSpot.vue.js";
8
+ import a from "./components/blocks/SpotMemberModify.vue.js";
9
+ import S from "./components/blocks/SpotSub.vue.js";
10
+ function d(n, r, p) {
11
+ p.addRoute("Home", t), r.addStore("spots", o);
12
+ }
13
+ const v = {
14
+ initialize: d,
15
+ views: {
16
+ store: {
17
+ storeSpots: o
18
+ },
19
+ router: {
20
+ routerSpots: t
21
+ },
22
+ components: {
23
+ // Pages
24
+ Spots: i,
25
+ Spot: m,
26
+ SpotEdit: s,
27
+ Map: e,
28
+ // Blocks
29
+ CardSpot: f,
30
+ SpotMemberModify: a,
31
+ SpotSub: S
32
+ }
33
+ }
34
+ };
35
+ export {
36
+ v as default
37
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const h=require("../../../../components/Dropdown/Dropdown.vue2.cjs"),g=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../../components/Menu/Menu.vue2.cjs"),l=require("../../../../components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),N=require("../../../reports/components/sections/FormReport.vue.cjs"),V=require("../../../organizations/components/blocks/Socials.vue.cjs"),B=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),C=require("../../../icons/navigation/IconEdit.vue.cjs"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),v=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const x={key:0,class:"for-transition w-100"},y={key:0,class:"flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},L={key:6,class:"mn-t-small mn-b-thin"},O=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),j=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),T=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),H={__name:"Profile",setup(J){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{v.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",x,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",y," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(N.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(C.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(E.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",L," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(V.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),O]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),j]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>b())},{default:e.withCtx(()=>[T]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const h=require("../../../../components/Dropdown/Dropdown.vue2.cjs"),g=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../../components/Menu/Menu.vue.cjs"),l=require("../../../../components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),N=require("../../../reports/components/sections/FormReport.vue.cjs"),V=require("../../../organizations/components/blocks/Socials.vue.cjs"),B=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),C=require("../../../icons/navigation/IconEdit.vue.cjs"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),v=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const x={key:0,class:"for-transition w-100"},y={key:0,class:"flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},L={key:6,class:"mn-t-small mn-b-thin"},O=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),j=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),T=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),H={__name:"Profile",setup(J){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{v.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",x,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",y," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(N.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(C.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(E.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",L," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(V.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),O]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),j]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>b())},{default:e.withCtx(()=>[T]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=H;
@@ -4,7 +4,7 @@ import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unre
4
4
  /* empty css */
5
5
  import B from "../../../../components/Dropdown/Dropdown.vue2.js";
6
6
  import M from "../../../../components/Completion/Completion.vue.js";
7
- import k from "../../../../components/Menu/Menu.vue2.js";
7
+ import k from "../../../../components/Menu/Menu.vue.js";
8
8
  import _ from "../../../../components/Menu/MenuItem.vue.js";
9
9
  import w from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
10
10
  import R from "../../../reports/components/sections/FormReport.vue.js";