@ozdao/prometheus-framework 0.2.62 → 0.2.64
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/products.server.js +8 -1
- package/dist/products.server.mjs +8 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +55 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -55
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +97 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +54 -48
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +28 -33
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +58 -44
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +8 -8
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +2 -1
- package/src/modules/products/components/pages/EditLeftover.vue +98 -86
- package/src/modules/products/components/pages/Leftovers.vue +3 -3
- package/src/modules/products/components/pages/Product.vue +2 -2
- package/src/modules/products/components/pages/Products.vue +12 -11
- package/src/modules/products/controllers/leftovers.controller.js +10 -1
- package/src/modules/products/store/leftovers.js +2 -2
@@ -1,32 +1,33 @@
|
|
1
|
-
import { ref as y, computed as
|
1
|
+
import { ref as y, computed as N, onMounted as S, openBlock as c, createElementBlock as d, createElementVNode as n, toDisplayString as b, unref as g, createVNode as i, withCtx as f, Fragment as C, renderList as D, createBlock as L, createCommentVNode as R } from "vue";
|
2
2
|
import v from "../../../../components/Block/Block.vue.js";
|
3
3
|
import "../../../../components/Field/Field.vue2.js";
|
4
|
-
import A from "../../../../components/Select/Select.
|
4
|
+
import A from "../../../../components/Select/Select.vue.js";
|
5
5
|
import "../../../../components/SelectMulti/SelectMulti.vue2.js";
|
6
|
-
import
|
6
|
+
import h from "../blocks/CardPosition.vue.js";
|
7
7
|
import { useRoute as E, useRouter as P } from "vue-router";
|
8
8
|
import { actions as p } from "../../../globals/store/globals.js";
|
9
|
-
import { state as
|
9
|
+
import { state as z } from "../../../auth/store/auth.js";
|
10
|
+
import { state as e, actions as l } from "../../store/leftovers.js";
|
10
11
|
import { state as B, actions as I } from "../../store/products.js";
|
11
12
|
import "./EditLeftover.vue2.js";
|
12
|
-
const U = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" },
|
13
|
+
const U = { class: "pd-thin" }, V = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, j = { class: "" }, F = { class: "gap-thin flex-v-center flex-nojustify flex" }, M = { class: "mn-r-auto" }, te = {
|
13
14
|
__name: "EditLeftover",
|
14
|
-
setup(
|
15
|
-
const
|
15
|
+
setup(q) {
|
16
|
+
const t = E(), u = P(), m = y(B.all);
|
16
17
|
y(null);
|
17
|
-
const
|
18
|
-
|
19
|
-
if (
|
18
|
+
const k = N(() => Number(e.current.positions.reduce((o, r) => Number(o) + Number(r.price), 0)));
|
19
|
+
S(async () => {
|
20
|
+
if (t.params.leftover)
|
20
21
|
try {
|
21
|
-
await l.fetch(
|
22
|
+
await l.fetch(t.params.leftover);
|
22
23
|
} catch {
|
23
24
|
console.error("error");
|
24
25
|
}
|
25
26
|
else
|
26
|
-
|
27
|
+
e.current = { type: "", order: "", positions: [] };
|
27
28
|
try {
|
28
29
|
const o = await I.read({
|
29
|
-
organization:
|
30
|
+
organization: t.params._id,
|
30
31
|
limit: 100
|
31
32
|
});
|
32
33
|
m.value = o;
|
@@ -34,34 +35,39 @@ const U = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, V =
|
|
34
35
|
console.error("error");
|
35
36
|
}
|
36
37
|
});
|
37
|
-
function x() {
|
38
|
-
r.params.leftover ? l.fetch(r.params.leftover) : t.current = { type: "", order: "", positions: [] };
|
39
|
-
}
|
40
38
|
function $() {
|
41
|
-
t.
|
42
|
-
|
39
|
+
t.params.leftover ? l.fetch(t.params.leftover) : e.current = { type: "", order: "", positions: [] };
|
40
|
+
}
|
41
|
+
function w() {
|
42
|
+
e.current.organization = t.params._id, t.params.leftover ? l.update(e.current).then(
|
43
|
+
() => u.push({ name: "Leftovers", params: { _id: t.params._id } }),
|
43
44
|
(o) => console.error("error")
|
44
|
-
) :
|
45
|
-
|
45
|
+
) : (e.current.creator = {
|
46
|
+
type: "user",
|
47
|
+
target: z.user._id
|
48
|
+
}, e.current.owner = {
|
49
|
+
type: "organization",
|
50
|
+
target: t.params._id
|
51
|
+
}, console.log("leftover state is", e.current), l.create(e.current).then(
|
52
|
+
() => u.push({ name: "Leftovers", params: { _id: t.params._id } }),
|
46
53
|
(o) => console.error("error")
|
47
|
-
);
|
54
|
+
));
|
48
55
|
}
|
49
|
-
function
|
50
|
-
l.delete(
|
51
|
-
() => u.push({ name: "Leftovers", params: { _id:
|
56
|
+
function x() {
|
57
|
+
l.delete(t.params.leftover).then(
|
58
|
+
() => u.push({ name: "Leftovers", params: { _id: t.params._id } }),
|
52
59
|
(o) => console.error("error")
|
53
60
|
);
|
54
61
|
}
|
55
|
-
return (o,
|
56
|
-
n("header",
|
57
|
-
n("h2",
|
62
|
+
return (o, r) => (c(), d("div", U, [
|
63
|
+
n("header", V, [
|
64
|
+
n("h2", j, b(g(t).params.leftover ? "Edit " : "Add ") + " Inventory", 1),
|
58
65
|
i(A, {
|
59
|
-
select:
|
60
|
-
"onUpdate:select":
|
66
|
+
select: e.current.type,
|
67
|
+
"onUpdate:select": r[0] || (r[0] = (s) => e.current.type = s),
|
61
68
|
options: [
|
62
69
|
"stock-in",
|
63
|
-
"stock-out"
|
64
|
-
"write-off"
|
70
|
+
"stock-out"
|
65
71
|
],
|
66
72
|
placeholder: "Select type",
|
67
73
|
class: "bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"
|
@@ -72,9 +78,9 @@ const U = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, V =
|
|
72
78
|
class: "mn-b-semi"
|
73
79
|
}, {
|
74
80
|
default: f(() => [
|
75
|
-
i(
|
76
|
-
onAdd:
|
77
|
-
|
81
|
+
i(h, {
|
82
|
+
onAdd: r[1] || (r[1] = (s) => p.add(
|
83
|
+
e.current.positions,
|
78
84
|
s
|
79
85
|
)),
|
80
86
|
products: m.value
|
@@ -88,22 +94,22 @@ const U = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, V =
|
|
88
94
|
class: "mn-b-semi"
|
89
95
|
}, {
|
90
96
|
default: f(() => [
|
91
|
-
(c(!0), d(
|
97
|
+
(c(!0), d(C, null, D(e.current.positions, (s, _) => (c(), L(h, {
|
92
98
|
key: s._id,
|
93
99
|
product: s,
|
94
|
-
array:
|
100
|
+
array: e.current.positions,
|
95
101
|
products: m.value,
|
96
|
-
onAdd:
|
97
|
-
|
102
|
+
onAdd: r[2] || (r[2] = (a) => p.add(
|
103
|
+
e.current.positions,
|
98
104
|
a
|
99
105
|
)),
|
100
106
|
onUpdate: (a) => p.update(
|
101
|
-
|
107
|
+
e.current.positions,
|
102
108
|
a,
|
103
109
|
_
|
104
110
|
),
|
105
111
|
onDelete: (a) => p.delete(
|
106
|
-
|
112
|
+
e.current.positions,
|
107
113
|
a,
|
108
114
|
_
|
109
115
|
)
|
@@ -113,28 +119,28 @@ const U = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, V =
|
|
113
119
|
}),
|
114
120
|
i(v, { class: "" }, {
|
115
121
|
default: f(() => [
|
116
|
-
n("section",
|
117
|
-
n("h3",
|
122
|
+
n("section", F, [
|
123
|
+
n("h3", M, " In total: " + b(o.formatPrice(k.value)), 1),
|
118
124
|
n("a", {
|
119
|
-
onClick:
|
125
|
+
onClick: r[3] || (r[3] = (s) => w()),
|
120
126
|
class: "bg-main button"
|
121
127
|
}, " Save "),
|
122
128
|
n("a", {
|
123
129
|
class: "t-white bg-second button",
|
124
|
-
onClick:
|
130
|
+
onClick: r[4] || (r[4] = (s) => $())
|
125
131
|
}, " Reset "),
|
126
|
-
g(
|
132
|
+
g(t).params.leftover ? (c(), d("a", {
|
127
133
|
key: 0,
|
128
|
-
onClick:
|
134
|
+
onClick: r[5] || (r[5] = (s) => x()),
|
129
135
|
class: "t-white bg-red button"
|
130
136
|
}, " Delete ")) : R("", !0)
|
131
137
|
])
|
132
138
|
]),
|
133
139
|
_: 1
|
134
140
|
})
|
135
|
-
]
|
141
|
+
]));
|
136
142
|
}
|
137
143
|
};
|
138
144
|
export {
|
139
|
-
|
145
|
+
te as default
|
140
146
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),p=require("../blocks/CardLeftover.vue.cjs"),u=require("../../store/leftovers.cjs");require("./Leftovers.vue2.cjs");const v={class:"pd-thin"},f={class:"mn-b-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory",-1),_={class:"mn-b-semi pd-medium bg-grey radius-big"},g=e.createElementVNode("p",{class:"mn-b-thin"},"Spended:",-1),h={__name:"Leftovers",setup(k){const n=a.useRoute();a.useRouter();const s=e.ref(n.query.tab?n.query.tab:"all"),i=e.computed(()=>u.state.all.reduce((o,r)=>{const t=r.positions.reduce((l,c)=>l+c.price,0);return r.type==="stock-in"?o-t:r.type==="stock-out"?o+t:o},0));return(o,r)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("header",f,[b,e.createElementVNode("button",{onClick:r[0]||(r[0]=t=>o.$router.push({name:"LeftoverAdd"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createElementVNode("section",_,[g,e.createElementVNode("h3",null,e.toDisplayString(o.formatPrice(i.value)),1)]),e.createVNode(d.default,{selected:s.value,"onUpdate:selected":r[1]||(r[1]=t=>s.value=t),tabs:[{name:"All",value:"all"},{name:"Stock-In",value:"stock-in"},{name:"Stock-Out",value:"stock-out"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(m.default,{states:{empty:{title:"No Leftovers Found",description:"Currently, there are no leftovers available."}},store:{read:t=>u.actions.read(t)},options:{limit:15,organization:e.unref(n).params._id,...s.value!=="all"&&{type:s.value}}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,l=>(e.openBlock(),e.createBlock(p.default,{leftover:l,class:"bg-grey pd-small mn-b-thin radius-small"},null,8,["leftover"]))),256))]),_:1},8,["states","store","options"])]))}};exports.default=h;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as m, computed as p, openBlock as a, createElementBlock as i, createElementVNode as o, toDisplayString as f, createVNode as u, unref as v, withCtx as b, Fragment as _, renderList as h, createBlock as g } from "vue";
|
2
2
|
import { useRoute as y, useRouter as k } from "vue-router";
|
3
3
|
import L from "../../../../components/Tab/Tab.vue2.js";
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import { state as
|
4
|
+
import x from "../../../../components/Feed/Feed.vue.js";
|
5
|
+
import C from "../blocks/CardLeftover.vue.js";
|
6
|
+
import { state as $, actions as w } from "../../store/leftovers.js";
|
7
7
|
import "./Leftovers.vue2.js";
|
8
|
-
const B = { class: "pd-thin" }, N = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ o("h2", { class: "mn-r-medium" }, "Inventory", -1), A = { class: "mn-b-semi pd-medium bg-grey radius-big" }, E = /* @__PURE__ */ o("p", { class: "mn-b-thin" }, "Spended:", -1),
|
8
|
+
const B = { class: "pd-thin" }, N = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ o("h2", { class: "mn-r-medium" }, "Inventory", -1), A = { class: "mn-b-semi pd-medium bg-grey radius-big" }, E = /* @__PURE__ */ o("p", { class: "mn-b-thin" }, "Spended:", -1), O = {
|
9
9
|
__name: "Leftovers",
|
10
10
|
setup(F) {
|
11
|
-
const
|
11
|
+
const n = y();
|
12
12
|
k();
|
13
|
-
const
|
14
|
-
const e = t.positions.reduce((
|
13
|
+
const s = m(n.query.tab ? n.query.tab : "all"), c = p(() => $.all.reduce((r, t) => {
|
14
|
+
const e = t.positions.reduce((l, d) => l + d.price, 0);
|
15
15
|
return t.type === "stock-in" ? r - e : t.type === "stock-out" ? r + e : r;
|
16
16
|
}, 0));
|
17
17
|
return (r, t) => (a(), i("div", B, [
|
@@ -29,17 +29,16 @@ const B = { class: "pd-thin" }, N = { class: "mn-b-medium flex-v-center flex-now
|
|
29
29
|
o("h3", null, f(r.formatPrice(c.value)), 1)
|
30
30
|
]),
|
31
31
|
u(L, {
|
32
|
-
selected:
|
33
|
-
"onUpdate:selected": t[1] || (t[1] = (e) =>
|
32
|
+
selected: s.value,
|
33
|
+
"onUpdate:selected": t[1] || (t[1] = (e) => s.value = e),
|
34
34
|
tabs: [
|
35
35
|
{ name: "All", value: "all" },
|
36
36
|
{ name: "Stock-In", value: "stock-in" },
|
37
|
-
{ name: "Stock-Out", value: "stock-out" }
|
38
|
-
{ name: "Write-Off", value: "write-off" }
|
37
|
+
{ name: "Stock-Out", value: "stock-out" }
|
39
38
|
],
|
40
39
|
class: "mn-b-small o-hidden h5 radius-big bg-grey"
|
41
40
|
}, null, 8, ["selected"]),
|
42
|
-
u(
|
41
|
+
u(x, {
|
43
42
|
states: {
|
44
43
|
empty: {
|
45
44
|
title: "No Leftovers Found",
|
@@ -47,19 +46,20 @@ const B = { class: "pd-thin" }, N = { class: "mn-b-medium flex-v-center flex-now
|
|
47
46
|
}
|
48
47
|
},
|
49
48
|
store: {
|
50
|
-
read: (e) =>
|
49
|
+
read: (e) => w.read(e)
|
51
50
|
},
|
52
51
|
options: {
|
53
52
|
limit: 15,
|
54
|
-
organization: v(
|
53
|
+
organization: v(n).params._id,
|
54
|
+
...s.value !== "all" && { type: s.value }
|
55
55
|
// user: user
|
56
56
|
}
|
57
57
|
}, {
|
58
58
|
default: b(({
|
59
59
|
items: e
|
60
60
|
}) => [
|
61
|
-
(a(!0), i(_, null, h(e, (
|
62
|
-
leftover:
|
61
|
+
(a(!0), i(_, null, h(e, (l) => (a(), g(C, {
|
62
|
+
leftover: l,
|
63
63
|
class: "bg-grey pd-small mn-b-thin radius-small"
|
64
64
|
}, null, 8, ["leftover"]))), 256))
|
65
65
|
]),
|
@@ -69,5 +69,5 @@ const B = { class: "pd-thin" }, N = { class: "mn-b-medium flex-v-center flex-now
|
|
69
69
|
}
|
70
70
|
};
|
71
71
|
export {
|
72
|
-
|
72
|
+
O as default
|
73
73
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),d=require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const l=require("../sections/PopularProducts.vue.cjs"),p=require("../sections/SectionProduct.vue.cjs");require("../../store/categories.cjs");const m=require("../../../../../../node_modules/vue-meta/dist/vue-meta.esm-browser.min.cjs"),_=require("../../../auth/store/auth.cjs"),t=require("../../store/products.cjs");require("./Product.vue2.cjs");const q={class:"flex flex-column w-100 o-hidden gap-thin pd-thin"},v={__name:"Product",async setup(f){let u,o;const r=s.useRoute();s.useRouter(),[u,o]=e.withAsyncContext(()=>t.actions.fetchProduct(r.params.product)),await u,o(),r.meta.title.en=t.state.current.name,r.meta.title.ru=t.state.current.name;const c=e.computed(()=>t.state.current),n={messages:{en:{},ru:{}}},{t:a}=d.useI18n(n),i=e.computed(()=>({title:t.state.current.name,description:a("description")}));return m.useMeta(i),e.onMounted(()=>{}),(h,M)=>(e.openBlock(),e.createElementBlock("div",q,[c.value?(e.openBlock(),e.createBlock(p.default,{key:0,product:c.value,user:_.state.user,class:"pos-relative"},null,8,["product","user"])):e.createCommentVNode("",!0),e.createVNode(l.default)]))}};exports.default=v;
|
@@ -1,47 +1,42 @@
|
|
1
|
-
import { withAsyncContext as
|
2
|
-
import { useRoute as
|
3
|
-
import { useI18n as
|
1
|
+
import { withAsyncContext as i, computed as s, onMounted as p, openBlock as n, createElementBlock as d, createBlock as l, createCommentVNode as _, createVNode as f } from "vue";
|
2
|
+
import { useRoute as h, useRouter as x } from "vue-router";
|
3
|
+
import { useI18n as k } from "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
6
|
-
import
|
7
|
-
import
|
6
|
+
import v from "../sections/PopularProducts.vue.js";
|
7
|
+
import B from "../sections/SectionProduct.vue.js";
|
8
8
|
import "../../store/categories.js";
|
9
|
-
import { useMeta as
|
10
|
-
import { state as
|
11
|
-
import { actions as
|
9
|
+
import { useMeta as w } from "../../../../../../node_modules/vue-meta/dist/vue-meta.esm-browser.min.js";
|
10
|
+
import { state as y } from "../../../auth/store/auth.js";
|
11
|
+
import { actions as M, state as t } from "../../store/products.js";
|
12
12
|
import "./Product.vue2.js";
|
13
|
-
const
|
13
|
+
const $ = { class: "flex flex-column w-100 o-hidden gap-thin pd-thin" }, G = {
|
14
14
|
__name: "Product",
|
15
|
-
async setup(
|
16
|
-
let
|
17
|
-
const
|
18
|
-
|
19
|
-
const
|
15
|
+
async setup(g) {
|
16
|
+
let o, r;
|
17
|
+
const e = h();
|
18
|
+
x(), [o, r] = i(() => M.fetchProduct(e.params.product)), await o, r(), e.meta.title.en = t.current.name, e.meta.title.ru = t.current.name;
|
19
|
+
const c = s(() => t.current), m = {
|
20
20
|
messages: {
|
21
21
|
en: {},
|
22
22
|
ru: {}
|
23
23
|
}
|
24
|
-
}, { t:
|
25
|
-
title:
|
26
|
-
description:
|
24
|
+
}, { t: a } = k(m), u = s(() => ({
|
25
|
+
title: t.current.name,
|
26
|
+
description: a("description")
|
27
27
|
}));
|
28
|
-
return
|
29
|
-
}), (
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
class: "pos-relative"
|
39
|
-
}, null, 8, ["product", "user"])) : f("", !0),
|
40
|
-
q(V)
|
41
|
-
]);
|
42
|
-
};
|
28
|
+
return w(u), p(() => {
|
29
|
+
}), (C, N) => (n(), d("div", $, [
|
30
|
+
c.value ? (n(), l(B, {
|
31
|
+
key: 0,
|
32
|
+
product: c.value,
|
33
|
+
user: y.user,
|
34
|
+
class: "pos-relative"
|
35
|
+
}, null, 8, ["product", "user"])) : _("", !0),
|
36
|
+
f(v)
|
37
|
+
]));
|
43
38
|
}
|
44
39
|
};
|
45
40
|
export {
|
46
|
-
|
41
|
+
G as default
|
47
42
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),i=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),p=require("../sections/FilterProducts.vue.cjs"),h=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),b=require("../blocks/CardProduct.vue.cjs"),c=require("../../store/products.cjs"),v={class:"pd-thin"},f={key:0,class:"mn-b-medium flex-v-center flex-nowrap flex"},y=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),g={class:"cols-2-1_3 bg-grey pd-thin radius-big gap-thin"},q={__name:"Products",setup(_){const t=l.useRoute(),n=l.useRouter(),a=e.ref(t.query.tabProducts?t.query.tabProducts:"all");t.query.tabProducts=a.value,e.watch(a,o=>{n.replace({query:{...t.query,tabProducts:o}})});function d(o){let r={...t.query};r.search=o,n.push({query:r})}return(o,r)=>(e.openBlock(),e.createElementBlock("div",v,[e.unref(t).name!=="Organization"?(e.openBlock(),e.createElementBlock("header",f,[y,e.createElementVNode("button",{onClick:r[0]||(r[0]=u=>o.$router.push({name:"ProductAdd"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")])):e.createCommentVNode("",!0),e.unref(t).name!=="Organization"?(e.openBlock(),e.createBlock(i.default,{key:1,selected:a.value,"onUpdate:selected":r[1]||(r[1]=u=>a.value=u),tabs:[{name:"All",value:"all"},{name:"Published",value:"published"},{name:"Unpublished",value:"unpublished"},{name:"Archivied",value:"archivied"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),e.createElementVNode("div",g,[e.createVNode(p.default),e.createElementVNode("div",null,[e.createVNode(h.default,{onSearch:d,placeholder:"Enter product name",class:"bg-white mn-b-thin"}),e.createVNode(m.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:u=>c.actions.read(u),state:c.state},options:{limit:15,organization:e.unref(t).params._id,categories:e.unref(t).query.categories,prices:e.unref(t).query.prices,delivery:e.unref(t).query.delivery,search:e.unref(t).query.search,...a.value!=="all"&&{status:a.value}},class:"cols-3 gap-thin"},{default:e.withCtx(({items:u})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u,s=>(e.openBlock(),e.createBlock(b.default,{key:s._id,product:s,class:"h-max",onClick:k=>o.$router.push({name:"Product Organization",params:{_id:e.unref(t).params._id,product:s._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])])])]))}};exports.default=q;
|
@@ -1,42 +1,56 @@
|
|
1
|
-
import {
|
2
|
-
import { useRoute as
|
3
|
-
import "../../../../components/Tab/Tab.
|
1
|
+
import { ref as _, watch as b, openBlock as i, createElementBlock as l, unref as t, createElementVNode as n, createCommentVNode as m, createBlock as p, createVNode as c, withCtx as f, Fragment as v, renderList as y } from "vue";
|
2
|
+
import { useRoute as g, useRouter as q } from "vue-router";
|
3
|
+
import P from "../../../../components/Tab/Tab.vue2.js";
|
4
4
|
import k from "../../../../components/Feed/Feed.vue.js";
|
5
5
|
import $ from "../sections/FilterProducts.vue.js";
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import { actions as
|
9
|
-
const
|
6
|
+
import C from "../../../globals/components/blocks/BlockSearch.vue.js";
|
7
|
+
import w from "../blocks/CardProduct.vue.js";
|
8
|
+
import { actions as x, state as z } from "../../store/products.js";
|
9
|
+
const N = { class: "pd-thin" }, A = {
|
10
10
|
key: 0,
|
11
11
|
class: "mn-b-medium flex-v-center flex-nowrap flex"
|
12
|
-
},
|
12
|
+
}, B = /* @__PURE__ */ n("h2", { class: "mn-r-medium" }, "Products", -1), E = { class: "cols-2-1_3 bg-grey pd-thin radius-big gap-thin" }, H = {
|
13
13
|
__name: "Products",
|
14
|
-
setup(
|
15
|
-
const e =
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
setup(O) {
|
15
|
+
const e = g(), d = q(), a = _(e.query.tabProducts ? e.query.tabProducts : "all");
|
16
|
+
e.query.tabProducts = a.value, b(a, (s) => {
|
17
|
+
d.replace({ query: { ...e.query, tabProducts: s } });
|
18
|
+
});
|
19
|
+
function h(s) {
|
20
|
+
let r = { ...e.query };
|
21
|
+
r.search = s, d.push({ query: r });
|
19
22
|
}
|
20
|
-
return (
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
onClick:
|
25
|
-
name: "
|
23
|
+
return (s, r) => (i(), l("div", N, [
|
24
|
+
t(e).name !== "Organization" ? (i(), l("header", A, [
|
25
|
+
B,
|
26
|
+
n("button", {
|
27
|
+
onClick: r[0] || (r[0] = (o) => s.$router.push({
|
28
|
+
name: "ProductAdd"
|
26
29
|
})),
|
27
30
|
class: "radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"
|
28
31
|
}, " + ")
|
29
|
-
])) :
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
])) : m("", !0),
|
33
|
+
t(e).name !== "Organization" ? (i(), p(P, {
|
34
|
+
key: 1,
|
35
|
+
selected: a.value,
|
36
|
+
"onUpdate:selected": r[1] || (r[1] = (o) => a.value = o),
|
37
|
+
tabs: [
|
38
|
+
{ name: "All", value: "all" },
|
39
|
+
{ name: "Published", value: "published" },
|
40
|
+
{ name: "Unpublished", value: "unpublished" },
|
41
|
+
{ name: "Archivied", value: "archivied" }
|
42
|
+
],
|
43
|
+
class: "mn-b-small o-hidden h5 radius-big bg-grey"
|
44
|
+
}, null, 8, ["selected"])) : m("", !0),
|
45
|
+
n("div", E, [
|
46
|
+
c($),
|
47
|
+
n("div", null, [
|
48
|
+
c(C, {
|
49
|
+
onSearch: h,
|
35
50
|
placeholder: "Enter product name",
|
36
51
|
class: "bg-white mn-b-thin"
|
37
52
|
}),
|
38
|
-
|
39
|
-
u(k, {
|
53
|
+
c(k, {
|
40
54
|
states: {
|
41
55
|
empty: {
|
42
56
|
title: "No Products Found",
|
@@ -44,33 +58,33 @@ const w = {
|
|
44
58
|
}
|
45
59
|
},
|
46
60
|
store: {
|
47
|
-
read: (
|
48
|
-
state:
|
61
|
+
read: (o) => x.read(o),
|
62
|
+
state: z
|
49
63
|
},
|
50
64
|
options: {
|
51
65
|
limit: 15,
|
52
|
-
organization:
|
53
|
-
categories:
|
54
|
-
prices:
|
55
|
-
delivery:
|
56
|
-
search:
|
57
|
-
|
66
|
+
organization: t(e).params._id,
|
67
|
+
categories: t(e).query.categories,
|
68
|
+
prices: t(e).query.prices,
|
69
|
+
delivery: t(e).query.delivery,
|
70
|
+
search: t(e).query.search,
|
71
|
+
...a.value !== "all" && { status: a.value }
|
58
72
|
// user: user
|
59
73
|
},
|
60
74
|
class: "cols-3 gap-thin"
|
61
75
|
}, {
|
62
76
|
default: f(({
|
63
|
-
items:
|
77
|
+
items: o
|
64
78
|
}) => [
|
65
|
-
(
|
66
|
-
key:
|
67
|
-
product:
|
79
|
+
(i(!0), l(v, null, y(o, (u) => (i(), p(w, {
|
80
|
+
key: u._id,
|
81
|
+
product: u,
|
68
82
|
class: "h-max",
|
69
|
-
onClick: (
|
83
|
+
onClick: (V) => s.$router.push({
|
70
84
|
name: "Product Organization",
|
71
85
|
params: {
|
72
|
-
_id:
|
73
|
-
product:
|
86
|
+
_id: t(e).params._id,
|
87
|
+
product: u._id
|
74
88
|
}
|
75
89
|
})
|
76
90
|
}, null, 8, ["product", "onClick"]))), 128))
|
@@ -79,9 +93,9 @@ const w = {
|
|
79
93
|
}, 8, ["states", "store", "options"])
|
80
94
|
])
|
81
95
|
])
|
82
|
-
]
|
96
|
+
]));
|
83
97
|
}
|
84
98
|
};
|
85
99
|
export {
|
86
|
-
|
100
|
+
H as default
|
87
101
|
};
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Button/Button.vue2.cjs");const r=require("../../../../components/Field/Field.vue.cjs"),u=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Button/Button.vue2.cjs");const r=require("../../../../components/Field/Field.vue.cjs"),u=require("../../../../components/Select/Select.vue.cjs"),i={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,l)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(u.default,{select:e.product.status,"onUpdate:select":l[0]||(l[0]=t=>e.product.status=t),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"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":l[1]||(l[1]=t=>e.product.name=t),label:"Name",placeholder:"Введите название",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":l[3]||(l[3]=t=>e.product.price=t),label:"Price",placeholder:"Введите цену",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(u.default,{select:e.product.price.currency,"onUpdate:select":l[2]||(l[2]=t=>e.product.price.currency=t),placeholder:"฿",options:["฿"],class:"pos-relative bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":l[4]||(l[4]=t=>e.product.description=t),label:"Description",placeholder:"Введите описание",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=i;
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { openBlock as a, createElementBlock as u, Fragment as s, createVNode as d, withCtx as o } from "vue";
|
2
2
|
import "../../../../components/Button/Button.vue2.js";
|
3
3
|
import i from "../../../../components/Field/Field.vue.js";
|
4
|
-
import r from "../../../../components/Select/Select.
|
4
|
+
import r from "../../../../components/Select/Select.vue.js";
|
5
5
|
const f = {
|
6
6
|
__name: "EditProductInfo",
|
7
7
|
props: {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),u=require("../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),o=u.default.create({baseURL:process.env.API_URL,withCredentials:!0}),e=c.reactive({all:[],current:{organization:"",type:"",order:"",positions:[]}}),p={async read(r){try{const t=await o.get("/leftovers",{params:r});return e.all=t.data,t.data}catch(t){throw s.setError(t),t}},async fetch(r){try{const t=await o.get("/leftovers/"+r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async create({organization:r,type:t,order:n,positions:i,creator:l,owner:d}){try{const a=await o.post("/leftovers",{organization:r,type:t,order:n,positions:i,creator:l,owner:d});return e.all.push(a.data),a.data}catch(a){throw s.setError(a),a}},async update(r){try{const t=await o.post("/leftovers/"+r._id,r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async delete(r){try{const t=await o.delete("/leftovers/"+r);return e.all.splice(e.all.findIndex(n=>n._id==r),1),t.data}catch(t){throw s.setError(t),t}}};c.watch(e,r=>{});exports.actions=p;exports.state=e;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { reactive as
|
2
|
-
import
|
1
|
+
import { reactive as l, watch as p } from "vue";
|
2
|
+
import h from "../../../../node_modules/axios/lib/axios.js";
|
3
3
|
import { setError as o } from "../../globals/store/globals.js";
|
4
|
-
const s =
|
4
|
+
const s = h.create({ baseURL: process.env.API_URL, withCredentials: !0 }), e = l({
|
5
5
|
all: [],
|
6
6
|
current: {
|
7
7
|
organization: "",
|
@@ -9,7 +9,7 @@ const s = l.create({ baseURL: process.env.API_URL, withCredentials: !0 }), e = i
|
|
9
9
|
order: "",
|
10
10
|
positions: []
|
11
11
|
}
|
12
|
-
}),
|
12
|
+
}), f = {
|
13
13
|
async read(r) {
|
14
14
|
try {
|
15
15
|
const t = await s.get("/leftovers", { params: r });
|
@@ -26,9 +26,9 @@ const s = l.create({ baseURL: process.env.API_URL, withCredentials: !0 }), e = i
|
|
26
26
|
throw o(t), t;
|
27
27
|
}
|
28
28
|
},
|
29
|
-
async create({ organization: r, type: t, order: n, positions: c }) {
|
29
|
+
async create({ organization: r, type: t, order: n, positions: c, creator: i, owner: d }) {
|
30
30
|
try {
|
31
|
-
const a = await s.post("/leftovers", { organization: r, type: t, order: n, positions: c });
|
31
|
+
const a = await s.post("/leftovers", { organization: r, type: t, order: n, positions: c, creator: i, owner: d });
|
32
32
|
return e.all.push(a.data), a.data;
|
33
33
|
} catch (a) {
|
34
34
|
throw o(a), a;
|
@@ -51,9 +51,9 @@ const s = l.create({ baseURL: process.env.API_URL, withCredentials: !0 }), e = i
|
|
51
51
|
}
|
52
52
|
}
|
53
53
|
};
|
54
|
-
|
54
|
+
p(e, (r) => {
|
55
55
|
});
|
56
56
|
export {
|
57
|
-
|
57
|
+
f as actions,
|
58
58
|
e as state
|
59
59
|
};
|
package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue.cjs"),d=require("../../../../components/Button/Button.vue.cjs"),m=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue.cjs"),d=require("../../../../components/Button/Button.vue.cjs"),m=require("../../../../components/Select/Select.vue.cjs"),f=require("../../store/reports.cjs"),b=e.createElementVNode("h3",{class:"mn-b-small"}," Report Content ",-1),g=e.createElementVNode("p",{class:"p-medium mn-b-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),v=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(l){const t=l,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function i(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:o[0]||(o[0]=n=>u())},[e.renderSlot(p.$slots,"default")]),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[b,g,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[1]||(o[1]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),v,e.createVNode(d.default,{submit:i,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])],64))}};exports.default=h;
|