@ozdao/prometheus-framework 0.1.90 → 0.1.91
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +22 -22
- package/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/index.js +7 -0
- package/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/web.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/web.js +54 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +224 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -224
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +60 -65
- 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/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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/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/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.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 +4 -4
- 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 +3 -3
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.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 +4 -4
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.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 +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/src/modules/auth/store/auth.js +32 -38
@@ -1,226 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Button.vue.js";
|
3
|
-
const w = ["onClick", "disabled"], k = { key: 0 }, N = {
|
4
|
-
key: 0,
|
5
|
-
class: "loading"
|
6
|
-
}, x = /* @__PURE__ */ e("svg", {
|
7
|
-
class: "i-regular",
|
8
|
-
width: "135",
|
9
|
-
height: "140",
|
10
|
-
viewBox: "0 0 135 140",
|
11
|
-
xmlns: "http://www.w3.org/2000/svg",
|
12
|
-
fill: "#fff"
|
13
|
-
}, [
|
14
|
-
/* @__PURE__ */ e("rect", {
|
15
|
-
y: "10",
|
16
|
-
width: "15",
|
17
|
-
height: "120",
|
18
|
-
rx: "6"
|
19
|
-
}, [
|
20
|
-
/* @__PURE__ */ e("animate", {
|
21
|
-
attributeName: "height",
|
22
|
-
begin: "0.5s",
|
23
|
-
dur: "1s",
|
24
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
25
|
-
calcMode: "linear",
|
26
|
-
repeatCount: "indefinite"
|
27
|
-
}),
|
28
|
-
/* @__PURE__ */ o(),
|
29
|
-
/* @__PURE__ */ e("animate", {
|
30
|
-
attributeName: "y",
|
31
|
-
begin: "0.5s",
|
32
|
-
dur: "1s",
|
33
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
34
|
-
calcMode: "linear",
|
35
|
-
repeatCount: "indefinite"
|
36
|
-
})
|
37
|
-
]),
|
38
|
-
/* @__PURE__ */ e("rect", {
|
39
|
-
x: "30",
|
40
|
-
y: "10",
|
41
|
-
width: "15",
|
42
|
-
height: "120",
|
43
|
-
rx: "6"
|
44
|
-
}, [
|
45
|
-
/* @__PURE__ */ e("animate", {
|
46
|
-
attributeName: "height",
|
47
|
-
begin: "0.25s",
|
48
|
-
dur: "1s",
|
49
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
50
|
-
calcMode: "linear",
|
51
|
-
repeatCount: "indefinite"
|
52
|
-
}),
|
53
|
-
/* @__PURE__ */ o(),
|
54
|
-
/* @__PURE__ */ e("animate", {
|
55
|
-
attributeName: "y",
|
56
|
-
begin: "0.25s",
|
57
|
-
dur: "1s",
|
58
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
59
|
-
calcMode: "linear",
|
60
|
-
repeatCount: "indefinite"
|
61
|
-
})
|
62
|
-
]),
|
63
|
-
/* @__PURE__ */ e("rect", {
|
64
|
-
x: "60",
|
65
|
-
width: "15",
|
66
|
-
height: "140",
|
67
|
-
rx: "6"
|
68
|
-
}, [
|
69
|
-
/* @__PURE__ */ e("animate", {
|
70
|
-
attributeName: "height",
|
71
|
-
begin: "0s",
|
72
|
-
dur: "1s",
|
73
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
74
|
-
calcMode: "linear",
|
75
|
-
repeatCount: "indefinite"
|
76
|
-
}),
|
77
|
-
/* @__PURE__ */ o(),
|
78
|
-
/* @__PURE__ */ e("animate", {
|
79
|
-
attributeName: "y",
|
80
|
-
begin: "0s",
|
81
|
-
dur: "1s",
|
82
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
83
|
-
calcMode: "linear",
|
84
|
-
repeatCount: "indefinite"
|
85
|
-
})
|
86
|
-
]),
|
87
|
-
/* @__PURE__ */ e("rect", {
|
88
|
-
x: "90",
|
89
|
-
y: "10",
|
90
|
-
width: "15",
|
91
|
-
height: "120",
|
92
|
-
rx: "6"
|
93
|
-
}, [
|
94
|
-
/* @__PURE__ */ e("animate", {
|
95
|
-
attributeName: "height",
|
96
|
-
begin: "0.25s",
|
97
|
-
dur: "1s",
|
98
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
99
|
-
calcMode: "linear",
|
100
|
-
repeatCount: "indefinite"
|
101
|
-
}),
|
102
|
-
/* @__PURE__ */ o(),
|
103
|
-
/* @__PURE__ */ e("animate", {
|
104
|
-
attributeName: "y",
|
105
|
-
begin: "0.25s",
|
106
|
-
dur: "1s",
|
107
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
108
|
-
calcMode: "linear",
|
109
|
-
repeatCount: "indefinite"
|
110
|
-
})
|
111
|
-
]),
|
112
|
-
/* @__PURE__ */ e("rect", {
|
113
|
-
x: "120",
|
114
|
-
y: "10",
|
115
|
-
width: "15",
|
116
|
-
height: "120",
|
117
|
-
rx: "6"
|
118
|
-
}, [
|
119
|
-
/* @__PURE__ */ e("animate", {
|
120
|
-
attributeName: "height",
|
121
|
-
begin: "0.5s",
|
122
|
-
dur: "1s",
|
123
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
124
|
-
calcMode: "linear",
|
125
|
-
repeatCount: "indefinite"
|
126
|
-
}),
|
127
|
-
/* @__PURE__ */ o(),
|
128
|
-
/* @__PURE__ */ e("animate", {
|
129
|
-
attributeName: "y",
|
130
|
-
begin: "0.5s",
|
131
|
-
dur: "1s",
|
132
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
133
|
-
calcMode: "linear",
|
134
|
-
repeatCount: "indefinite"
|
135
|
-
})
|
136
|
-
])
|
137
|
-
], -1), C = [
|
138
|
-
x
|
139
|
-
], T = {
|
140
|
-
key: 0,
|
141
|
-
class: "loading t-white"
|
142
|
-
}, M = {
|
143
|
-
key: 0,
|
144
|
-
class: "error"
|
145
|
-
}, L = {
|
146
|
-
__name: "Button",
|
147
|
-
props: {
|
148
|
-
submit: {
|
149
|
-
type: Function,
|
150
|
-
default: async () => {
|
151
|
-
console.log("Button click.");
|
152
|
-
}
|
153
|
-
},
|
154
|
-
callback: {
|
155
|
-
type: Function,
|
156
|
-
default: async () => {
|
157
|
-
console.log("Button callback.");
|
158
|
-
}
|
159
|
-
},
|
160
|
-
callbackDelay: {
|
161
|
-
type: Number,
|
162
|
-
default: 750
|
163
|
-
},
|
164
|
-
showSucces: {
|
165
|
-
type: Boolean,
|
166
|
-
default: !0
|
167
|
-
},
|
168
|
-
validation: {
|
169
|
-
type: Boolean,
|
170
|
-
default: !1
|
171
|
-
}
|
172
|
-
},
|
173
|
-
setup(f) {
|
174
|
-
const i = f, t = c(null), a = c(null), n = c(!1), r = c(!1);
|
175
|
-
async function g() {
|
176
|
-
t.value.style["pointer-events"] = "none", a.value = null, n.value = !0;
|
177
|
-
const l = () => {
|
178
|
-
t.value && (t.value.classList.replace("bg-light-main", "bg-main"), t.value.style.pointerEvents = "auto", n.value = !1, r.value = !1, a.value = null);
|
179
|
-
};
|
180
|
-
try {
|
181
|
-
await i.submit(), t.value.classList.replace("bg-main", "bg-light-main"), n.value = !1, i.showSucces ? (r.value = !0, setTimeout(l, 500)) : l(), i.callback && setTimeout(() => i.callback(), i.callbackDelay);
|
182
|
-
} catch {
|
183
|
-
t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = "❌", setTimeout(() => {
|
184
|
-
l(), t.value.classList.replace("bg-fourth-nano", "bg-main");
|
185
|
-
}, 1330);
|
186
|
-
}
|
187
|
-
}
|
188
|
-
return (l, v) => (s(), u("button", {
|
189
|
-
onClick: p(g, ["stop"]),
|
190
|
-
disabled: f.validation,
|
191
|
-
ref_key: "button",
|
192
|
-
ref: t,
|
193
|
-
class: "w-100 bg-main button"
|
194
|
-
}, [
|
195
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
196
|
-
default: h(() => [
|
197
|
-
!n.value && !a.value && !r.value ? (s(), u("span", k, [
|
198
|
-
y(l.$slots, "default")
|
199
|
-
])) : b("", !0)
|
200
|
-
]),
|
201
|
-
_: 3
|
202
|
-
}),
|
203
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
204
|
-
default: h(() => [
|
205
|
-
n.value && !a.value ? (s(), u("span", N, C)) : b("", !0)
|
206
|
-
]),
|
207
|
-
_: 1
|
208
|
-
}),
|
209
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
210
|
-
default: h(() => [
|
211
|
-
r.value && f.showSucces ? (s(), u("span", T, "✔")) : b("", !0)
|
212
|
-
]),
|
213
|
-
_: 1
|
214
|
-
}),
|
215
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
216
|
-
default: h(() => [
|
217
|
-
a.value ? (s(), u("span", M, _(a.value), 1)) : b("", !0)
|
218
|
-
]),
|
219
|
-
_: 1
|
220
|
-
})
|
221
|
-
], 8, w));
|
222
|
-
}
|
223
|
-
};
|
1
|
+
const e = "";
|
224
2
|
export {
|
225
|
-
|
3
|
+
e as default
|
226
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.vue2.cjs");require("./LocationMarker.vue2.cjs");const w=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),h=r=>(e.pushScopeId("data-v-29acef04"),r=r(),e.popScopeId(),r),y={class:"pos-relative map-container"},v=h(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),L=[v],M={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:C}){const t=r,a=C,d=e.ref(null);let c,i;e.onMounted(()=>{c=new google.maps.Map(d.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),i=new google.maps.Marker({position:t.location,map:c,draggable:!0}),i.addListener("dragend",o=>{const n={lat:o.latLng.lat(),lng:o.latLng.lng()};a("update:location",n),u(n)})}),e.watchEffect(()=>{t.location&&i&&i.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o)}});function u(o){new google.maps.Geocoder().geocode({location:o},(s,p)=>{if(p==="OK")if(s[0]){a("update:address",s[0].formatted_address);let g="",f="",m="";s[0].address_components.forEach(l=>{l.types.includes("country")&&(g=l.long_name),l.types.includes("administrative_area_level_1")&&(f=l.long_name),l.types.includes("locality")&&(m=l.long_name)}),a("update:country",g),a("update:state",f),a("update:city",m)}else console.error("No results found");else console.error("Geocoder failed due to: "+p)})}async function _(){navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const n={lat:o.coords.latitude,lng:o.coords.longitude};a("update:location",n),u(n)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(o,n)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",{ref_key:"mapContainer",ref:d,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:_},L)]))}},E=w.default(M,[["__scopeId","data-v-29acef04"]]);exports.default=E;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as h, onMounted as y, watchEffect as C, openBlock as v, createElementBlock as L, createElementVNode as s, pushScopeId as M, popScopeId as k } from "vue";
|
2
|
-
import "../Button/Button.
|
2
|
+
import "../Button/Button.vue2.js";
|
3
3
|
import "./LocationMarker.vue2.js";
|
4
4
|
import b from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
5
|
const x = (l) => (M("data-v-29acef04"), l = l(), k(), l), E = { class: "pos-relative map-container" }, S = /* @__PURE__ */ x(() => /* @__PURE__ */ s("svg", {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),c=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue2.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:l}){const u=t,a=l;function s(){a("close-popup")}e.watch(()=>u.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const p={messages:{en:{},ru:{}}};return c.useI18n(p),(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",m,[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]=i=>s()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},[e.createVNode(d.default)]),e.renderSlot(o.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:n[1]||(n[1]=i=>s()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=v;
|
@@ -1,4 +1,74 @@
|
|
1
|
-
|
1
|
+
import { watch as v, openBlock as s, createBlock as y, Teleport as P, createVNode as n, Transition as l, withCtx as a, createElementBlock as i, mergeProps as k, createElementVNode as u, renderSlot as b, createCommentVNode as p, normalizeClass as x } from "vue";
|
2
|
+
import { useRoute as C, useRouter as O } from "vue-router";
|
3
|
+
import { useI18n as T } from "vue-i18n";
|
4
|
+
import g from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
+
import "./Popup.vue2.js";
|
6
|
+
const z = {
|
7
|
+
key: "popup-content",
|
8
|
+
class: "pd-small popup-wrapper"
|
9
|
+
}, I = {
|
10
|
+
__name: "Popup",
|
11
|
+
props: {
|
12
|
+
isPopupOpen: {
|
13
|
+
type: Boolean,
|
14
|
+
default: !1
|
15
|
+
},
|
16
|
+
style: String
|
17
|
+
},
|
18
|
+
emits: ["close-popup"],
|
19
|
+
setup(e, { emit: c }) {
|
20
|
+
const m = e, d = c;
|
21
|
+
function r() {
|
22
|
+
d("close-popup");
|
23
|
+
}
|
24
|
+
return v(() => m.isPopupOpen, (o) => {
|
25
|
+
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
+
}), C(), O(), T({
|
27
|
+
messages: {
|
28
|
+
en: {},
|
29
|
+
ru: {}
|
30
|
+
}
|
31
|
+
}), (o, t) => e.isPopupOpen ? (s(), y(P, {
|
32
|
+
key: 0,
|
33
|
+
to: "body"
|
34
|
+
}, [
|
35
|
+
n(l, {
|
36
|
+
name: "TransitionTranslateY",
|
37
|
+
appear: ""
|
38
|
+
}, {
|
39
|
+
default: a(() => [
|
40
|
+
e.isPopupOpen ? (s(), i("div", z, [
|
41
|
+
n(l, {
|
42
|
+
name: "TransitionTranslateY",
|
43
|
+
mode: "out-in"
|
44
|
+
}, {
|
45
|
+
default: a(() => [
|
46
|
+
e.isPopupOpen ? (s(), i("section", k({
|
47
|
+
key: 0,
|
48
|
+
class: "pos-relative z-index-4"
|
49
|
+
}, o.$attrs), [
|
50
|
+
u("button", {
|
51
|
+
onClick: t[0] || (t[0] = (f) => r()),
|
52
|
+
class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
|
53
|
+
}, [
|
54
|
+
n(g)
|
55
|
+
]),
|
56
|
+
b(o.$slots, "default")
|
57
|
+
], 16)) : p("", !0)
|
58
|
+
]),
|
59
|
+
_: 3
|
60
|
+
}),
|
61
|
+
u("div", {
|
62
|
+
onClick: t[1] || (t[1] = (f) => r()),
|
63
|
+
class: x([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
64
|
+
}, null, 2)
|
65
|
+
])) : p("", !0)
|
66
|
+
]),
|
67
|
+
_: 3
|
68
|
+
})
|
69
|
+
])) : p("", !0);
|
70
|
+
}
|
71
|
+
};
|
2
72
|
export {
|
3
|
-
|
73
|
+
I as default
|
4
74
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,74 +1,4 @@
|
|
1
|
-
|
2
|
-
import { useRoute as C, useRouter as O } from "vue-router";
|
3
|
-
import { useI18n as T } from "vue-i18n";
|
4
|
-
import g from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
-
import "./Popup.vue.js";
|
6
|
-
const z = {
|
7
|
-
key: "popup-content",
|
8
|
-
class: "pd-small popup-wrapper"
|
9
|
-
}, I = {
|
10
|
-
__name: "Popup",
|
11
|
-
props: {
|
12
|
-
isPopupOpen: {
|
13
|
-
type: Boolean,
|
14
|
-
default: !1
|
15
|
-
},
|
16
|
-
style: String
|
17
|
-
},
|
18
|
-
emits: ["close-popup"],
|
19
|
-
setup(e, { emit: c }) {
|
20
|
-
const m = e, d = c;
|
21
|
-
function r() {
|
22
|
-
d("close-popup");
|
23
|
-
}
|
24
|
-
return v(() => m.isPopupOpen, (o) => {
|
25
|
-
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
-
}), C(), O(), T({
|
27
|
-
messages: {
|
28
|
-
en: {},
|
29
|
-
ru: {}
|
30
|
-
}
|
31
|
-
}), (o, t) => e.isPopupOpen ? (s(), y(P, {
|
32
|
-
key: 0,
|
33
|
-
to: "body"
|
34
|
-
}, [
|
35
|
-
n(l, {
|
36
|
-
name: "TransitionTranslateY",
|
37
|
-
appear: ""
|
38
|
-
}, {
|
39
|
-
default: a(() => [
|
40
|
-
e.isPopupOpen ? (s(), i("div", z, [
|
41
|
-
n(l, {
|
42
|
-
name: "TransitionTranslateY",
|
43
|
-
mode: "out-in"
|
44
|
-
}, {
|
45
|
-
default: a(() => [
|
46
|
-
e.isPopupOpen ? (s(), i("section", k({
|
47
|
-
key: 0,
|
48
|
-
class: "pos-relative z-index-4"
|
49
|
-
}, o.$attrs), [
|
50
|
-
u("button", {
|
51
|
-
onClick: t[0] || (t[0] = (f) => r()),
|
52
|
-
class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
|
53
|
-
}, [
|
54
|
-
n(g)
|
55
|
-
]),
|
56
|
-
b(o.$slots, "default")
|
57
|
-
], 16)) : p("", !0)
|
58
|
-
]),
|
59
|
-
_: 3
|
60
|
-
}),
|
61
|
-
u("div", {
|
62
|
-
onClick: t[1] || (t[1] = (f) => r()),
|
63
|
-
class: x([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
64
|
-
}, null, 2)
|
65
|
-
])) : p("", !0)
|
66
|
-
]),
|
67
|
-
_: 3
|
68
|
-
})
|
69
|
-
])) : p("", !0);
|
70
|
-
}
|
71
|
-
};
|
1
|
+
const e = "";
|
72
2
|
export {
|
73
|
-
|
3
|
+
e as default
|
74
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Select.vue2.cjs");const p=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),k=["onClick"],v={key:0,class:"t-transp mn-r-small"},f={class:"w-100"},h=["onClick"],g={key:0,class:"w-100"},B={key:0,class:"mn-t-thin invalid-feedback"},_={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(l,{emit:u}){const c=u,o=l,n=e.ref(o.select),a=e.ref(!1);e.watch(()=>o.select,t=>{n.value=t});const d=e.computed(()=>o.select?o.options.filter(t=>t!==o.select):o.options),r=()=>{a.value=!a.value,c(a.value?"focus":"blur")},m=t=>{n.value=t,r(),c("update:select",n.value)};return(t,C)=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:e.withModifiers(r,["stop"]),class:e.normalizeClass([t.$attrs.class,"cursor-pointer flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",f,[e.createElementVNode("span",null,e.toDisplayString(((i=n.value)==null?void 0:i.name)||n.value||l.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([t.$attrs.class,"pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,s=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(E=>m(s),["stop"])},[s?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(s.name||s),1)):e.createCommentVNode("",!0)],8,h))),256))],2)):e.createCommentVNode("",!0)]),_:1})],10,k),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",B," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},y=p.default(_,[["__scopeId","data-v-dfe03dc2"]]);exports.default=y;
|
@@ -1,4 +1,80 @@
|
|
1
|
-
|
1
|
+
import { ref as f, watch as S, computed as x, openBlock as t, createElementBlock as l, Fragment as v, createElementVNode as i, withModifiers as h, normalizeClass as _, toDisplayString as r, createCommentVNode as u, createVNode as k, Transition as b, withCtx as g, renderList as B } from "vue";
|
2
|
+
import "./Select.vue2.js";
|
3
|
+
import M from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const N = ["onClick"], O = {
|
5
|
+
key: 0,
|
6
|
+
class: "t-transp mn-r-small"
|
7
|
+
}, T = { class: "w-100" }, V = ["onClick"], $ = {
|
8
|
+
key: 0,
|
9
|
+
class: "w-100"
|
10
|
+
}, z = {
|
11
|
+
key: 0,
|
12
|
+
class: "mn-t-thin invalid-feedback"
|
13
|
+
}, E = {
|
14
|
+
__name: "Select",
|
15
|
+
props: {
|
16
|
+
label: String,
|
17
|
+
select: [String, Object],
|
18
|
+
placeholder: { type: String, default: "Please select an item" },
|
19
|
+
options: { type: Array, default: () => [] },
|
20
|
+
validation: Boolean
|
21
|
+
},
|
22
|
+
emits: ["update:select", "focus", "blur"],
|
23
|
+
setup(s, { emit: w }) {
|
24
|
+
const d = w, a = s, n = f(a.select), o = f(!1);
|
25
|
+
S(() => a.select, (e) => {
|
26
|
+
n.value = e;
|
27
|
+
});
|
28
|
+
const y = x(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
|
29
|
+
o.value = !o.value, d(o.value ? "focus" : "blur");
|
30
|
+
}, C = (e) => {
|
31
|
+
n.value = e, m(), d("update:select", n.value);
|
32
|
+
};
|
33
|
+
return (e, L) => {
|
34
|
+
var p;
|
35
|
+
return t(), l(v, null, [
|
36
|
+
i("div", {
|
37
|
+
onClick: h(m, ["stop"]),
|
38
|
+
class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
|
39
|
+
}, [
|
40
|
+
s.label ? (t(), l("div", O, [
|
41
|
+
i("span", null, r(s.label), 1)
|
42
|
+
])) : u("", !0),
|
43
|
+
i("li", T, [
|
44
|
+
i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
|
45
|
+
]),
|
46
|
+
k(b, {
|
47
|
+
mode: "out-in",
|
48
|
+
name: "TransitionTranslateY"
|
49
|
+
}, {
|
50
|
+
default: g(() => [
|
51
|
+
o.value ? (t(), l("ul", {
|
52
|
+
key: 0,
|
53
|
+
class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
|
54
|
+
}, [
|
55
|
+
(t(!0), l(v, null, B(y.value, (c) => (t(), l("li", {
|
56
|
+
onClick: h((j) => C(c), ["stop"])
|
57
|
+
}, [
|
58
|
+
c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
|
59
|
+
], 8, V))), 256))
|
60
|
+
], 2)) : u("", !0)
|
61
|
+
]),
|
62
|
+
_: 1
|
63
|
+
})
|
64
|
+
], 10, N),
|
65
|
+
k(b, {
|
66
|
+
mode: "out-in",
|
67
|
+
name: "fade"
|
68
|
+
}, {
|
69
|
+
default: g(() => [
|
70
|
+
s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
|
71
|
+
]),
|
72
|
+
_: 1
|
73
|
+
})
|
74
|
+
], 64);
|
75
|
+
};
|
76
|
+
}
|
77
|
+
}, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
|
2
78
|
export {
|
3
|
-
|
79
|
+
I as default
|
4
80
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,80 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Select.vue.js";
|
3
|
-
import M from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const N = ["onClick"], O = {
|
5
|
-
key: 0,
|
6
|
-
class: "t-transp mn-r-small"
|
7
|
-
}, T = { class: "w-100" }, V = ["onClick"], $ = {
|
8
|
-
key: 0,
|
9
|
-
class: "w-100"
|
10
|
-
}, z = {
|
11
|
-
key: 0,
|
12
|
-
class: "mn-t-thin invalid-feedback"
|
13
|
-
}, E = {
|
14
|
-
__name: "Select",
|
15
|
-
props: {
|
16
|
-
label: String,
|
17
|
-
select: [String, Object],
|
18
|
-
placeholder: { type: String, default: "Please select an item" },
|
19
|
-
options: { type: Array, default: () => [] },
|
20
|
-
validation: Boolean
|
21
|
-
},
|
22
|
-
emits: ["update:select", "focus", "blur"],
|
23
|
-
setup(s, { emit: w }) {
|
24
|
-
const d = w, a = s, n = f(a.select), o = f(!1);
|
25
|
-
S(() => a.select, (e) => {
|
26
|
-
n.value = e;
|
27
|
-
});
|
28
|
-
const y = x(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
|
29
|
-
o.value = !o.value, d(o.value ? "focus" : "blur");
|
30
|
-
}, C = (e) => {
|
31
|
-
n.value = e, m(), d("update:select", n.value);
|
32
|
-
};
|
33
|
-
return (e, L) => {
|
34
|
-
var p;
|
35
|
-
return t(), l(v, null, [
|
36
|
-
i("div", {
|
37
|
-
onClick: h(m, ["stop"]),
|
38
|
-
class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
|
39
|
-
}, [
|
40
|
-
s.label ? (t(), l("div", O, [
|
41
|
-
i("span", null, r(s.label), 1)
|
42
|
-
])) : u("", !0),
|
43
|
-
i("li", T, [
|
44
|
-
i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
|
45
|
-
]),
|
46
|
-
k(b, {
|
47
|
-
mode: "out-in",
|
48
|
-
name: "TransitionTranslateY"
|
49
|
-
}, {
|
50
|
-
default: g(() => [
|
51
|
-
o.value ? (t(), l("ul", {
|
52
|
-
key: 0,
|
53
|
-
class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
|
54
|
-
}, [
|
55
|
-
(t(!0), l(v, null, B(y.value, (c) => (t(), l("li", {
|
56
|
-
onClick: h((j) => C(c), ["stop"])
|
57
|
-
}, [
|
58
|
-
c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
|
59
|
-
], 8, V))), 256))
|
60
|
-
], 2)) : u("", !0)
|
61
|
-
]),
|
62
|
-
_: 1
|
63
|
-
})
|
64
|
-
], 10, N),
|
65
|
-
k(b, {
|
66
|
-
mode: "out-in",
|
67
|
-
name: "fade"
|
68
|
-
}, {
|
69
|
-
default: g(() => [
|
70
|
-
s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
|
71
|
-
]),
|
72
|
-
_: 1
|
73
|
-
})
|
74
|
-
], 64);
|
75
|
-
};
|
76
|
-
}
|
77
|
-
}, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
|
1
|
+
const e = "";
|
78
2
|
export {
|
79
|
-
|
3
|
+
e as default
|
80
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tab.vue2.cjs");const m={class:""},v={class:"flex-nowrap flex-v-center flex"},p=["onClick"],k={__name:"Tab",props:{tabs:Array,selected:String,callback:Function},emits:["update:selected"],setup(s,{emit:o}){const i=o,l=s,a=e.ref(0);if(l.selected){const t=l.tabs.findIndex(c=>c.value===l.selected);t!==-1&&(a.value=t)}function u(t,c){a.value=t,i("update:selected",c.value),l.callback&&l.callback()}function d(t){return`${100/l.tabs.length*t}%`}function f(){return`${100/l.tabs.length}%`}const b=e.computed(()=>({left:d(a.value),width:f()}));return(t,c)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabs,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:_=>u(n,r),class:e.normalizeClass([{"t-transp":n!==a.value},"z-index-1 t-center pd-small w-100"])},[e.createElementVNode("label",null,e.toDisplayString(r.name),1)],10,p))),128)),e.createElementVNode("div",{style:e.normalizeStyle(b.value),class:"radius-extra bg-main t-white tab-selector"},null,4)])]))}};exports.default=k;
|
@@ -1,4 +1,46 @@
|
|
1
|
-
|
1
|
+
import { ref as v, computed as h, openBlock as c, createElementBlock as s, createElementVNode as r, Fragment as _, renderList as g, normalizeClass as k, toDisplayString as x, normalizeStyle as y } from "vue";
|
2
|
+
import "./Tab.vue2.js";
|
3
|
+
const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex" }, w = ["onClick"], W = {
|
4
|
+
__name: "Tab",
|
5
|
+
props: {
|
6
|
+
tabs: Array,
|
7
|
+
selected: String,
|
8
|
+
callback: Function
|
9
|
+
},
|
10
|
+
emits: ["update:selected"],
|
11
|
+
setup(o, { emit: d }) {
|
12
|
+
const u = d, t = o, a = v(0);
|
13
|
+
if (t.selected) {
|
14
|
+
const e = t.tabs.findIndex((l) => l.value === t.selected);
|
15
|
+
e !== -1 && (a.value = e);
|
16
|
+
}
|
17
|
+
function f(e, l) {
|
18
|
+
a.value = e, u("update:selected", l.value), t.callback && t.callback();
|
19
|
+
}
|
20
|
+
function b(e) {
|
21
|
+
return `${100 / t.tabs.length * e}%`;
|
22
|
+
}
|
23
|
+
function m() {
|
24
|
+
return `${100 / t.tabs.length}%`;
|
25
|
+
}
|
26
|
+
const p = h(() => ({ left: b(a.value), width: m() }));
|
27
|
+
return (e, l) => (c(), s("div", S, [
|
28
|
+
r("div", T, [
|
29
|
+
(c(!0), s(_, null, g(o.tabs, (i, n) => (c(), s("div", {
|
30
|
+
key: n,
|
31
|
+
onClick: (z) => f(n, i),
|
32
|
+
class: k([{ "t-transp": n !== a.value }, "z-index-1 t-center pd-small w-100"])
|
33
|
+
}, [
|
34
|
+
r("label", null, x(i.name), 1)
|
35
|
+
], 10, w))), 128)),
|
36
|
+
r("div", {
|
37
|
+
style: y(p.value),
|
38
|
+
class: "radius-extra bg-main t-white tab-selector"
|
39
|
+
}, null, 4)
|
40
|
+
])
|
41
|
+
]));
|
42
|
+
}
|
43
|
+
};
|
2
44
|
export {
|
3
|
-
|
45
|
+
W as default
|
4
46
|
};
|