@ozdao/prometheus-framework 0.1.38 → 0.1.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ButtonToggleMembership-738720bd.js +1 -0
- package/dist/ButtonToggleMembership-e337e704.mjs +90 -0
- package/dist/CardBlogpost-ae3b4d23.js +1 -0
- package/dist/CardBlogpost-c7adb0a7.mjs +246 -0
- package/dist/CardBlogpost-d6f49156.mjs +246 -0
- package/dist/CardBlogpost-f308ff64.js +1 -0
- package/dist/CardOrganization-22beb83d.js +1 -0
- package/dist/CardOrganization-ae384e54.mjs +234 -0
- package/dist/Chips-3a07f374.js +1 -0
- package/dist/Chips-a8681edd.mjs +213 -0
- package/dist/Chips-edf2b573.js +1 -0
- package/dist/Chips-f06ec38f.mjs +213 -0
- package/dist/Community-04b25965.mjs +130 -0
- package/dist/Community-2f6fee0f.js +1 -0
- package/dist/Community-72dbb933.js +1 -0
- package/dist/Community-b4d10da6.mjs +130 -0
- package/dist/Dashboard-73b50724.js +1 -0
- package/dist/Dashboard-bc81b5f6.mjs +151 -0
- package/dist/Dropdown-ef2df9a9.mjs +169 -0
- package/dist/Dropdown-f2564c92.js +1 -0
- package/dist/Events-0c6e3ef4.mjs +134 -0
- package/dist/Events-41d71b0e.js +1 -0
- package/dist/Events-4742f070.js +1 -0
- package/dist/Events-af7170ed.mjs +134 -0
- package/dist/Feed-04fe1f7a.mjs +361 -0
- package/dist/Feed-09b0790d.js +1 -0
- package/dist/Feed-12b12380.js +1 -0
- package/dist/Feed-23758089.mjs +124 -0
- package/dist/Feed-36e83be3.mjs +156 -0
- package/dist/Feed-5653cf8b.js +1 -0
- package/dist/Feed-585d5821.mjs +124 -0
- package/dist/Feed-5a359bb7.js +1 -0
- package/dist/Feed-6ca0541a.js +1 -0
- package/dist/Feed-807d265b.mjs +156 -0
- package/dist/Feed-90f74d6c.mjs +361 -0
- package/dist/Feed-a47977d3.js +1 -0
- package/dist/Image-268e2a1b.js +9 -0
- package/dist/Image-39955d9d.mjs +480 -0
- package/dist/Image-5423e8ce.mjs +480 -0
- package/dist/Image-c2d190d8.js +9 -0
- package/dist/LeftoverAdd-21311275.js +1 -0
- package/dist/LeftoverAdd-ccf4595f.mjs +228 -0
- package/dist/Members-7251dd52.mjs +109 -0
- package/dist/Members-9b013515.js +1 -0
- package/dist/Members-d35ab7e8.js +1 -0
- package/dist/Members-d64149f3.mjs +109 -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/Organizations-0fd5bc8b.mjs +72 -0
- package/dist/Organizations-a964d4b6.mjs +72 -0
- package/dist/Organizations-d360c360.js +1 -0
- package/dist/Organizations-ed6d36d6.js +1 -0
- package/dist/Popup-0d8e1392.mjs +96 -0
- package/dist/Popup-eb11fa82.js +1 -0
- package/dist/Product-299070ad.mjs +652 -0
- package/dist/Product-aacb05f3.js +7 -0
- package/dist/Product-e43dd2f1.js +7 -0
- package/dist/Product-e4e583f0.mjs +652 -0
- package/dist/ProductEdit-70bed802.mjs +296 -0
- package/dist/ProductEdit-e5a2e0f6.js +1 -0
- package/dist/ProductsBackoffice-3c182d6a.mjs +86 -0
- package/dist/ProductsBackoffice-b684913d.js +1 -0
- package/dist/ProfileBlogposts-6bf526fb.js +1 -0
- package/dist/ProfileBlogposts-8f6191d6.js +1 -0
- package/dist/ProfileBlogposts-aa839fcb.mjs +77 -0
- package/dist/ProfileBlogposts-d4b17535.mjs +77 -0
- package/dist/ProfileEvents-3eeb4320.mjs +68 -0
- package/dist/ProfileEvents-6b3fb52e.mjs +68 -0
- package/dist/ProfileEvents-893285bb.js +1 -0
- package/dist/ProfileEvents-90e09978.js +1 -0
- package/dist/ProfileOrganizations-738f444a.js +1 -0
- package/dist/ProfileOrganizations-c4fb03a1.mjs +72 -0
- package/dist/ProfileOrganizations-e838925f.js +1 -0
- package/dist/ProfileOrganizations-edf657ca.mjs +72 -0
- package/dist/Publics-a31d7fe7.js +1 -0
- package/dist/Publics-a8f31413.mjs +45 -0
- package/dist/Wallet-2043b611.mjs +24682 -0
- package/dist/Wallet-8fa7386a.js +55 -0
- package/dist/auth-076a83d0.mjs +625 -0
- package/dist/auth-df5a20c6.js +7 -0
- package/dist/auth.client.cjs +1 -1
- package/dist/auth.client.js +4 -4
- package/dist/auth.validation-80b133df.js +1 -0
- package/dist/auth.validation-fd9ae66f.mjs +24 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +12 -12
- package/dist/categories-4327a81c.js +1 -0
- package/dist/categories-52a561a4.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +205 -198
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +17 -20
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +64 -40
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +5 -6
- package/dist/main.css +1 -1
- package/dist/modules/gallery/components/pages/Gallery.vue.d.ts +2 -0
- package/dist/modules/gallery/components/sections/GalleryWithCategories.vue.d.ts +2 -0
- package/dist/modules/globals/components/sections/Title.vue.d.ts +6 -0
- package/dist/organizations-966e1cd2.mjs +122 -0
- package/dist/organizations-d12c42b6.js +1 -0
- package/dist/organizations.client-63b476ff.mjs +2996 -0
- package/dist/organizations.client-696eacbb.js +3 -0
- package/dist/organizations.client-8f263e28.js +3 -0
- package/dist/organizations.client-9ffc023f.mjs +2996 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +49 -54
- package/dist/products-7e4253eb.js +1 -0
- package/dist/products-aabe5c02.mjs +108 -0
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +2 -2
- package/dist/states.validation-4594b33c.mjs +13 -0
- package/dist/states.validation-69003e66.js +1 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +286 -202
- package/package.json +1 -5
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/LocationSelection/LocationSelection.vue +1 -1
- package/src/components/Navigation/Navigation.vue +12 -1
- package/src/modules/auth/store/auth.js +7 -4
- package/src/modules/files/middlewares/server/md.js +1 -0
- package/src/modules/gallery/components/pages/Gallery.vue +21 -0
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +408 -0
- package/src/modules/gallery/gallery.client.js +11 -14
- package/src/modules/gallery/router/gallery.router.js +10 -0
- package/src/modules/globals/components/sections/Title.vue +22 -0
- package/src/modules/marketplace/router/marketplace.js +4 -3
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/products/components/pages/ProductRecommmendation.vue +5 -3
- package/src/modules/products/components/sections/SectionProduct.vue +17 -5
- package/src/modules/products/controllers/products.controller.js +83 -0
- package/src/modules/products/routes/products.routes.js +5 -5
- package/src/modules/spots/components/layouts/Spots.vue +16 -11
- package/src/modules/spots/components/pages/Map.vue +9 -7
- package/src/modules/users/components/pages/Profile.vue +15 -5
- package/src/modules/users/router/users.js +10 -0
- package/src/modules/wallet/components/pages/Wallet.vue +104 -23
@@ -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-36e83be3.mjs";
|
5
|
+
import { s as u } from "./auth-076a83d0.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-ae384e54.mjs";
|
10
|
+
import "./ButtonToggleMembership-e337e704.mjs";
|
11
|
+
import "./Button-9e1a9284.mjs";
|
12
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
13
|
+
import "./memberships-12210953.mjs";
|
14
|
+
import "./index-a661083c.mjs";
|
15
|
+
import "./globals-96ba60e4.mjs";
|
16
|
+
import "vue-i18n";
|
17
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
18
|
+
import "./organizations-966e1cd2.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-12b12380.js"),o=require("./auth-06d35b82.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-d93c9bdb.js");require("./ButtonToggleMembership-15f149cb.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./memberships-393765d8.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./_plugin-vue_export-helper-f246444f.js");require("./organizations-4d18a2e2.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"});const e=require("vue"),s=require("vue-router"),d=require("./Tab-2c1e4224.js"),i=require("./Feed-5653cf8b.js"),o=require("./auth-df5a20c6.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-22beb83d.js");require("./ButtonToggleMembership-738720bd.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./memberships-393765d8.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./_plugin-vue_export-helper-f246444f.js");require("./organizations-d12c42b6.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,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;
|