@ozdao/prometheus-framework 0.1.67 → 0.1.69
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-59a591ab.js +1 -0
- package/dist/BackofficeGallery-be6f69a9.mjs +307 -0
- package/dist/BackofficeReports-06166952.js +1 -0
- package/dist/BackofficeReports-50fd799c.mjs +44 -0
- package/dist/BlockTags-00325fa0.mjs +853 -0
- package/dist/BlockTags-58f95c8a.js +1 -0
- package/dist/ButtonToggleMembership-84d0e018.mjs +90 -0
- package/dist/ButtonToggleMembership-b905812f.js +1 -0
- package/dist/CardBlogpost-1b81b54e.mjs +246 -0
- package/dist/CardBlogpost-7107e04a.js +1 -0
- package/dist/CardOrganization-49ab5190.mjs +234 -0
- package/dist/CardOrganization-e6ac27f1.js +1 -0
- package/dist/CardProduct-4c0cb9a1.js +1 -0
- package/dist/CardProduct-ea0e1f84.mjs +192 -0
- package/dist/Chips-817cf959.js +1 -0
- package/dist/Chips-8c836ba6.mjs +213 -0
- package/dist/Community-8c4e011b.js +1 -0
- package/dist/Community-bd6f0cbb.mjs +131 -0
- package/dist/Dashboard-73b50724.js +1 -0
- package/dist/Dashboard-bc81b5f6.mjs +151 -0
- package/dist/Dropdown-60e3dc6c.js +1 -0
- package/dist/Dropdown-d1c81d45.mjs +169 -0
- package/dist/EditOrder-2b746caf.mjs +221 -0
- package/dist/EditOrder-e632f0cc.js +1 -0
- package/dist/Events-999cc8ed.js +1 -0
- package/dist/Events-ad8bbf27.mjs +134 -0
- package/dist/Feed-35e13c22.mjs +156 -0
- package/dist/Feed-53d96b18.mjs +361 -0
- package/dist/Feed-694a2fad.js +1 -0
- package/dist/Feed-ac4bb6ea.js +1 -0
- package/dist/Feed-d1d01771.js +1 -0
- package/dist/Feed-f7c04014.mjs +124 -0
- package/dist/Image-61cfd52d.js +9 -0
- package/dist/Image-e8be4acc.mjs +480 -0
- package/dist/LeftoverAdd-a268a95c.js +1 -0
- package/dist/LeftoverAdd-e4d93760.mjs +229 -0
- package/dist/Leftovers-6976802d.mjs +135 -0
- package/dist/Leftovers-d8f1d152.js +1 -0
- package/dist/Members-aeb2bca1.mjs +109 -0
- package/dist/Members-b9664e83.js +1 -0
- package/dist/Menu-93d34d9f.js +1 -0
- package/dist/Menu-eaf6b44c.mjs +13 -0
- package/dist/MenuItem-4a5881bd.mjs +85 -0
- package/dist/MenuItem-f35cad93.js +1 -0
- package/dist/Orders-8bc8963c.js +1 -0
- package/dist/Orders-eb262d8c.mjs +75 -0
- package/dist/Organizations-9926aa51.mjs +72 -0
- package/dist/Organizations-c653d814.js +1 -0
- package/dist/Payments-98328000.js +1 -0
- package/dist/Payments-a9066cdf.mjs +11 -0
- package/dist/Popup-0d8e1392.mjs +96 -0
- package/dist/Popup-eb11fa82.js +1 -0
- package/dist/Product-15043af7.mjs +651 -0
- package/dist/Product-82c022a4.js +7 -0
- package/dist/ProductEdit-05da9866.mjs +258 -0
- package/dist/ProductEdit-2f075296.js +1 -0
- package/dist/ProductsBackoffice-8462f626.js +1 -0
- package/dist/ProductsBackoffice-8d0f0ee8.mjs +85 -0
- package/dist/ProfileBlogposts-43855cb9.js +1 -0
- package/dist/ProfileBlogposts-f32170a3.mjs +78 -0
- package/dist/ProfileEvents-54be2d43.mjs +69 -0
- package/dist/ProfileEvents-ab69e27e.js +1 -0
- package/dist/ProfileOrganizations-0787cf34.mjs +72 -0
- package/dist/ProfileOrganizations-eb62dde4.js +1 -0
- package/dist/Publics-8e726d20.mjs +45 -0
- package/dist/Publics-ae589bf1.js +1 -0
- package/dist/Select-95f4701a.js +1 -0
- package/dist/Select-dab17282.mjs +80 -0
- package/dist/Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-0ea8fbf8.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-4ed993c7.mjs +1 -0
- package/dist/Socials-43293869.js +1 -0
- package/dist/Socials-8193477c.mjs +189 -0
- package/dist/UploadImage-0e8e4278.mjs +83 -0
- package/dist/UploadImage-8c71bda6.js +1 -0
- package/dist/UploadImageMultiple-c34a6c6f.mjs +58 -0
- package/dist/UploadImageMultiple-d1316df5.js +1 -0
- package/dist/Wallet-727195d9.mjs +21700 -0
- package/dist/Wallet-f4dda407.js +10 -0
- package/dist/auth-04684a60.js +7 -0
- package/dist/auth-7e39361f.mjs +633 -0
- package/dist/auth.client.cjs +1 -1
- package/dist/auth.client.js +5 -5
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/auth.validation-d614130d.js +1 -0
- package/dist/auth.validation-f4bf1deb.mjs +24 -0
- package/dist/axios-33aeb810.mjs +1435 -0
- package/dist/axios-ceccf20e.js +5 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +20 -20
- package/dist/categories-7e17a7eb.js +1 -0
- package/dist/categories-b7f9e8c0.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +209 -202
- package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +24 -27
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +64 -40
- package/dist/leftovers-86e7d438.mjs +67 -0
- package/dist/leftovers-c9f70579.js +1 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +6 -7
- package/dist/main.css +1 -1
- package/dist/memberships-559590ad.mjs +68 -0
- package/dist/memberships-58af22e0.js +1 -0
- package/dist/modules/constructor/components/elements/H2.vue.d.ts +1 -1
- package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +1 -1
- package/dist/modules/products/components/sections/EditProductInfo.vue.d.ts +1 -5
- package/dist/orders-1325c51b.js +1 -0
- package/dist/orders-c7cbe706.mjs +85 -0
- package/dist/organizations-71777b32.js +1 -0
- package/dist/organizations-93f7b610.mjs +122 -0
- package/dist/organizations.client-6ca27fb3.js +3 -0
- package/dist/organizations.client-bd63a7b2.mjs +2997 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +56 -61
- package/dist/products-61d83d74.js +1 -0
- package/dist/products-7f1e5a75.mjs +108 -0
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +67 -65
- package/dist/prometheus-framework.cjs.js +21 -21
- package/dist/prometheus-framework.es.js +682 -690
- package/dist/reports-a67b4fb4.js +1 -0
- package/dist/reports-c579b02a.mjs +91 -0
- package/dist/reports.client.cjs +1 -1
- package/dist/reports.client.js +2 -2
- package/dist/states.validation-3b4604bc.mjs +13 -0
- package/dist/states.validation-9b43a097.js +1 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +279 -208
- package/package.json +30 -35
- package/src/components/Button/Button.vue +1 -1
- package/src/components/Sidebar/Sidebar.vue +10 -8
- package/src/components/Upload/Upload.vue +8 -28
- package/src/modules/auth/components/pages/SignIn.vue +2 -2
- package/src/modules/auth/controllers/auth.controller.js +1 -1
- package/src/modules/auth/store/auth.js +21 -24
- package/src/modules/backoffice/components/admin/ProductEdit.vue +2 -0
- package/src/modules/constructor/components/sections/Constructor.vue +7 -54
- package/src/modules/gallery/components/pages/Gallery.vue +7 -1
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +24 -8
- package/src/modules/gallery/gallery.client.js +5 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -0
- package/src/modules/organizations/components/pages/Organization.vue +2 -2
- package/src/modules/payments/components/pages/Payments.vue +4 -3
- package/src/modules/products/components/blocks/CardLeftover.vue +0 -1
- package/src/modules/products/components/blocks/CardProduct.vue +15 -1
- package/src/modules/products/components/sections/EditProductInfo.vue +16 -14
- package/src/modules/products/components/sections/FilterProducts.vue +0 -2
- package/src/modules/products/components/sections/SectionProduct.vue +1 -0
- package/src/modules/products/components/sections/SortProducts.vue +2 -0
- package/src/modules/products/store/categories.js +9 -9
- package/src/modules/products/store/leftovers.js +6 -9
- package/src/modules/products/store/products.js +2 -0
- package/src/modules/users/components/pages/Profile.vue +3 -5
- package/src/modules/wallet/components/pages/Wallet.vue +1 -1
- package/src/styles/components/button.scss +253 -0
- package/src/styles/theme.scss +1 -0
- package/src/modules/constructor/components/elements/Audio.vue +0 -82
- package/src/modules/constructor/components/elements/Embed.vue +0 -85
- package/src/modules/globals/mixins/mixins.js +0 -52
- package/src/modules/globals/router/routerGuards.js +0 -28
@@ -0,0 +1,75 @@
|
|
1
|
+
import { ref as p, onMounted as _, resolveComponent as f, openBlock as o, createElementBlock as l, Fragment as c, createElementVNode as t, createVNode as d, renderList as h, createTextVNode as n, toDisplayString as a, normalizeClass as b, withCtx as v } from "vue";
|
2
|
+
import { useRoute as g, useRouter as w } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-054b61f7.mjs";
|
4
|
+
import { a as x, s as y } from "./orders-c7cbe706.mjs";
|
5
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
6
|
+
import "./axios-33aeb810.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
const C = { class: "mn-medium flex-v-center flex-nowrap flex" }, A = /* @__PURE__ */ t("h2", { class: "mn-r-medium" }, "Orders", -1), E = { class: "cols-3 gap-thin" }, N = { class: "flex block" }, O = { class: "w-100 mn-thin p-big" }, D = { class: "mn-small t-transp w-100" }, V = /* @__PURE__ */ t("br", null, null, -1), M = {
|
10
|
+
__name: "Orders",
|
11
|
+
setup($) {
|
12
|
+
const r = g();
|
13
|
+
w();
|
14
|
+
const i = p(r.query.tab ? r.query.tab : "posts");
|
15
|
+
return _(async () => {
|
16
|
+
await x.read();
|
17
|
+
}), (m, s) => {
|
18
|
+
const u = f("router-link");
|
19
|
+
return o(), l(c, null, [
|
20
|
+
t("header", C, [
|
21
|
+
A,
|
22
|
+
t("button", {
|
23
|
+
onClick: s[0] || (s[0] = (e) => m.$router.push({
|
24
|
+
name: "AdminOrder"
|
25
|
+
})),
|
26
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
27
|
+
}, " + ")
|
28
|
+
]),
|
29
|
+
d(k, {
|
30
|
+
selected: i.value,
|
31
|
+
"onUpdate:selected": s[1] || (s[1] = (e) => i.value = e),
|
32
|
+
tabs: [
|
33
|
+
{ name: "All", value: "all" },
|
34
|
+
{ name: "New", value: "new" },
|
35
|
+
{ name: "Confirmed", value: "confirmed" },
|
36
|
+
{ name: "Finished", value: "finished" }
|
37
|
+
],
|
38
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
39
|
+
}, null, 8, ["selected"]),
|
40
|
+
t("section", E, [
|
41
|
+
(o(!0), l(c, null, h(y.all, (e) => (o(), l("div", N, [
|
42
|
+
n(a(e.status) + " ", 1),
|
43
|
+
t("p", O, " Заказ #" + a(e._id.slice(0, 8)), 1),
|
44
|
+
t("p", D, [
|
45
|
+
n(" Номер клиента: +7" + a(e.phone), 1),
|
46
|
+
V
|
47
|
+
]),
|
48
|
+
t("p", {
|
49
|
+
class: b([{ new: e.status === "Создан" }, "mn-small"])
|
50
|
+
}, [
|
51
|
+
n(a(m.formatDate(e.createdAt)) + " ", 1),
|
52
|
+
d(u, {
|
53
|
+
to: {
|
54
|
+
name: "AdminOrderEdit",
|
55
|
+
params: {
|
56
|
+
_id: e._id
|
57
|
+
}
|
58
|
+
},
|
59
|
+
class: "i-small"
|
60
|
+
}, {
|
61
|
+
default: v(() => [
|
62
|
+
n(" EDIT ")
|
63
|
+
]),
|
64
|
+
_: 2
|
65
|
+
}, 1032, ["to"])
|
66
|
+
], 2)
|
67
|
+
]))), 256))
|
68
|
+
])
|
69
|
+
], 64);
|
70
|
+
};
|
71
|
+
}
|
72
|
+
};
|
73
|
+
export {
|
74
|
+
M as default
|
75
|
+
};
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { ref as h, watch as w, openBlock as o, createElementBlock as l, createElementVNode as b, unref as s, createCommentVNode as i, createVNode as m, Transition as d, withCtx as p, createBlock as c } from "vue";
|
2
|
+
import { useRoute as y, useRouter as g } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ } from "./Feed-35e13c22.mjs";
|
5
|
+
import { s as u } from "./auth-7e39361f.mjs";
|
6
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
8
|
+
import "./EmptyState-e404b05d.mjs";
|
9
|
+
import "./CardOrganization-49ab5190.mjs";
|
10
|
+
import "./ButtonToggleMembership-84d0e018.mjs";
|
11
|
+
import "./Button-9e1a9284.mjs";
|
12
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
13
|
+
import "./memberships-559590ad.mjs";
|
14
|
+
import "./axios-33aeb810.mjs";
|
15
|
+
import "./globals-96ba60e4.mjs";
|
16
|
+
import "vue-i18n";
|
17
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
18
|
+
import "./organizations-93f7b610.mjs";
|
19
|
+
const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ b("h2", { class: "mn-r-medium" }, "Groups", -1), K = {
|
20
|
+
__name: "Organizations",
|
21
|
+
setup($) {
|
22
|
+
const e = y(), f = g();
|
23
|
+
let v = e.query.tab ? e.query.tab : "member";
|
24
|
+
const r = h(v);
|
25
|
+
return e.query.tab = r.value, w(r, (a) => {
|
26
|
+
f.replace({ query: { ...e.query, tab: a } });
|
27
|
+
}), (a, t) => (o(), l("div", q, [
|
28
|
+
b("header", x, [
|
29
|
+
C,
|
30
|
+
u.user._id === s(e).params._id ? (o(), l("button", {
|
31
|
+
key: 0,
|
32
|
+
onClick: t[0] || (t[0] = (n) => a.$router.push({
|
33
|
+
name: "Create Organization"
|
34
|
+
})),
|
35
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
36
|
+
}, " + ")) : i("", !0)
|
37
|
+
]),
|
38
|
+
m(k, {
|
39
|
+
selected: r.value,
|
40
|
+
"onUpdate:selected": t[1] || (t[1] = (n) => r.value = n),
|
41
|
+
tabs: [
|
42
|
+
{ name: "Member", value: "member" },
|
43
|
+
{ name: "Follower", value: "follower" }
|
44
|
+
],
|
45
|
+
class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
46
|
+
}, null, 8, ["selected"]),
|
47
|
+
m(d, { name: "slide-fade" }, {
|
48
|
+
default: p(() => [
|
49
|
+
r.value === "member" ? (o(), c(_, {
|
50
|
+
key: 0,
|
51
|
+
user: u.user._id,
|
52
|
+
owner: s(e).params._id
|
53
|
+
}, null, 8, ["user", "owner"])) : i("", !0)
|
54
|
+
]),
|
55
|
+
_: 1
|
56
|
+
}),
|
57
|
+
m(d, { name: "slide-fade" }, {
|
58
|
+
default: p(() => [
|
59
|
+
r.value === "follower" ? (o(), c(_, {
|
60
|
+
key: 0,
|
61
|
+
user: u.user._id,
|
62
|
+
subscriber: s(e).params._id
|
63
|
+
}, null, 8, ["user", "subscriber"])) : i("", !0)
|
64
|
+
]),
|
65
|
+
_: 1
|
66
|
+
})
|
67
|
+
]));
|
68
|
+
}
|
69
|
+
};
|
70
|
+
export {
|
71
|
+
K as default
|
72
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("vue-router"),d=require("./Tab-2c1e4224.js"),i=require("./Feed-d1d01771.js"),o=require("./auth-04684a60.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./CardOrganization-e6ac27f1.js");require("./ButtonToggleMembership-b905812f.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./memberships-58af22e0.js");require("./axios-ceccf20e.js");require("./globals-928eb13c.js");require("vue-i18n");require("./_plugin-vue_export-helper-f246444f.js");require("./organizations-71777b32.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"Organizations",setup(f){const r=s.useRoute(),l=s.useRouter();let c=r.query.tab?r.query.tab:"member";const t=e.ref(c);return r.query.tab=t.value,e.watch(t,a=>{l.replace({query:{...r.query,tab:a}})}),(a,u)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[b,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=n=>a.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":u[1]||(u[1]=n=>t.value=n),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="member"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:o.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==="follower"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:o.state.user._id,subscriber:e.unref(r).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("vue-router");const t={__name:"Payments",setup(u){return e.useRoute(),e.useRouter(),(r,_)=>null}};exports.default=t;
|
@@ -0,0 +1,96 @@
|
|
1
|
+
import { openBlock as s, createElementBlock as p, createElementVNode as n, watch as f, createBlock as v, Teleport as h, createVNode as r, Transition as c, withCtx as u, mergeProps as L, renderSlot as _, createCommentVNode as l, normalizeClass as g } from "vue";
|
2
|
+
import { useRoute as w, useRouter as x } from "vue-router";
|
3
|
+
import { useI18n as k } from "vue-i18n";
|
4
|
+
import { _ as y } from "./_plugin-vue_export-helper-dad06003.mjs";
|
5
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
6
|
+
const P = {}, b = {
|
7
|
+
width: "26",
|
8
|
+
height: "26",
|
9
|
+
viewBox: "0 0 26 26",
|
10
|
+
fill: "none",
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
12
|
+
}, C = /* @__PURE__ */ n("rect", {
|
13
|
+
width: "24",
|
14
|
+
height: "24",
|
15
|
+
transform: "translate(1 1)"
|
16
|
+
}, null, -1), O = /* @__PURE__ */ n("path", {
|
17
|
+
fill: "rgb(var(--black))",
|
18
|
+
"fill-rule": "evenodd",
|
19
|
+
"clip-rule": "evenodd",
|
20
|
+
d: "M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z"
|
21
|
+
}, null, -1), T = [
|
22
|
+
C,
|
23
|
+
O
|
24
|
+
];
|
25
|
+
function $(e, i) {
|
26
|
+
return s(), p("svg", b, T);
|
27
|
+
}
|
28
|
+
const B = /* @__PURE__ */ y(P, [["render", $]]), z = {
|
29
|
+
key: "popup-content",
|
30
|
+
class: "pd-small popup-wrapper"
|
31
|
+
}, Y = {
|
32
|
+
__name: "Popup",
|
33
|
+
props: {
|
34
|
+
isPopupOpen: {
|
35
|
+
type: Boolean,
|
36
|
+
default: !1
|
37
|
+
},
|
38
|
+
style: String
|
39
|
+
},
|
40
|
+
emits: ["close-popup"],
|
41
|
+
setup(e, { emit: i }) {
|
42
|
+
const d = e;
|
43
|
+
function a() {
|
44
|
+
i("close-popup");
|
45
|
+
}
|
46
|
+
return f(() => d.isPopupOpen, (t) => {
|
47
|
+
t ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
48
|
+
}), w(), x(), k({
|
49
|
+
messages: {
|
50
|
+
en: {},
|
51
|
+
ru: {}
|
52
|
+
}
|
53
|
+
}), (t, o) => e.isPopupOpen ? (s(), v(h, {
|
54
|
+
key: 0,
|
55
|
+
to: "body"
|
56
|
+
}, [
|
57
|
+
r(c, {
|
58
|
+
name: "TransitionTranslateY",
|
59
|
+
appear: ""
|
60
|
+
}, {
|
61
|
+
default: u(() => [
|
62
|
+
e.isPopupOpen ? (s(), p("div", z, [
|
63
|
+
r(c, {
|
64
|
+
name: "TransitionTranslateY",
|
65
|
+
mode: "out-in"
|
66
|
+
}, {
|
67
|
+
default: u(() => [
|
68
|
+
e.isPopupOpen ? (s(), p("section", L({
|
69
|
+
key: 0,
|
70
|
+
class: "pos-relative z-index-4"
|
71
|
+
}, t.$attrs), [
|
72
|
+
n("button", {
|
73
|
+
onClick: o[0] || (o[0] = (m) => a()),
|
74
|
+
class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
|
75
|
+
}, [
|
76
|
+
r(B)
|
77
|
+
]),
|
78
|
+
_(t.$slots, "default")
|
79
|
+
], 16)) : l("", !0)
|
80
|
+
]),
|
81
|
+
_: 3
|
82
|
+
}),
|
83
|
+
n("div", {
|
84
|
+
onClick: o[1] || (o[1] = (m) => a()),
|
85
|
+
class: g([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
86
|
+
}, null, 2)
|
87
|
+
])) : l("", !0)
|
88
|
+
]),
|
89
|
+
_: 3
|
90
|
+
})
|
91
|
+
])) : l("", !0);
|
92
|
+
}
|
93
|
+
};
|
94
|
+
export {
|
95
|
+
Y as _
|
96
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),l=require("vue-router"),u=require("vue-i18n"),p=require("./_plugin-vue_export-helper-f246444f.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const d={},m={width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f=e.createElementVNode("rect",{width:"24",height:"24",transform:"translate(1 1)"},null,-1),v=e.createElementVNode("path",{fill:"rgb(var(--black))","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z"},null,-1),_=[f,v];function h(t,s){return e.openBlock(),e.createElementBlock("svg",m,_)}const k=p._export_sfc(d,[["render",h]]),L={key:"popup-content",class:"pd-small popup-wrapper"},g={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:s}){const c=t;function r(){s("close-popup")}e.watch(()=>c.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),l.useRoute(),l.useRouter();const i={messages:{en:{},ru:{}}};return u.useI18n(i),(o,n)=>t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",L,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},o.$attrs),[e.createElementVNode("button",{onClick:n[0]||(n[0]=a=>r()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},[e.createVNode(k)]),e.renderSlot(o.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:n[1]||(n[1]=a=>r()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports._sfc_main=g;
|