@konnectio/core 4.0.56-rc28 → 4.0.56-rc29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ActionField-xGc_ajER.js → ActionField-ndq4CxMf.js} +9 -9
- package/dist/ActionField-ndq4CxMf.js.br +0 -0
- package/dist/{AvailabilitySkeleton-bIuGCn-W.js → AvailabilitySkeleton-ACZu1cbe.js} +1 -1
- package/dist/AvailabilitySkeleton-ACZu1cbe.js.br +0 -0
- package/dist/{CheckoutWindow-MJOB-P1r.js → CheckoutWindow-Uh5py1iz.js} +27 -27
- package/dist/CheckoutWindow-Uh5py1iz.js.br +0 -0
- package/dist/{ErrorMessage-yCUA4Br1.js → ErrorMessage-YtIshvvf.js} +1 -1
- package/dist/ErrorMessage-YtIshvvf.js.br +0 -0
- package/dist/{EventAvailabilityForm-MDbDYGmT.js → EventAvailabilityForm-0ScLIbfr.js} +17 -17
- package/dist/EventAvailabilityForm-0ScLIbfr.js.br +0 -0
- package/dist/{Field-pqofL_FG.js → Field-h1g7Dq--.js} +847 -839
- package/dist/Field-h1g7Dq--.js.br +0 -0
- package/dist/HotelAvailabilityForm-VSefGp9z.js +212 -0
- package/dist/HotelAvailabilityForm-VSefGp9z.js.br +0 -0
- package/dist/{TermsOfService-YKMRZMWv.js → TermsOfService-PO3NnQmn.js} +4 -4
- package/dist/availability.js +45 -41
- package/dist/availability.js.br +0 -0
- package/dist/event.js +46 -46
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +17 -17
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +78 -78
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +35 -35
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-amuVufsm.js → masonry.plugin-KCvCKFtb.js} +3 -3
- package/dist/masonry.plugin-KCvCKFtb.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +1 -4
- package/dist/ActionField-xGc_ajER.js.br +0 -0
- package/dist/AvailabilitySkeleton-bIuGCn-W.js.br +0 -0
- package/dist/CheckoutWindow-MJOB-P1r.js.br +0 -0
- package/dist/ErrorMessage-yCUA4Br1.js.br +0 -0
- package/dist/EventAvailabilityForm-MDbDYGmT.js.br +0 -0
- package/dist/Field-pqofL_FG.js.br +0 -0
- package/dist/HotelAvailabilityForm-b5R46zup.js +0 -164
- package/dist/HotelAvailabilityForm-b5R46zup.js.br +0 -0
- package/dist/masonry.plugin-amuVufsm.js.br +0 -0
|
Binary file
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { d as se, u as ue, i as ce, s as V, a as q, b as z, c as re, r as v, e as i, w as E, o as de, f as s, g as D, h, j as e, k as m, T as L, _ as be, l as f, m as A, F as M, n as G, C as J, p as K, q as ve, t as me, v as ge } from "./Field-h1g7Dq--.js";
|
|
2
|
+
import { _ as pe } from "./AvailabilitySkeleton-ACZu1cbe.js";
|
|
3
|
+
const De = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "konnectio-availability-location"
|
|
6
|
+
}, fe = { id: "konnectio-availability-date-selection" }, ke = {
|
|
7
|
+
key: 1,
|
|
8
|
+
id: "konnectio-availability-guest-selection"
|
|
9
|
+
}, ye = { id: "konnectio-availability-confirmation" }, we = /* @__PURE__ */ se({
|
|
10
|
+
__name: "HotelAvailabilityForm",
|
|
11
|
+
props: {
|
|
12
|
+
booking: { type: Boolean, default: !1 },
|
|
13
|
+
link: {},
|
|
14
|
+
selectedLocation: { default: NaN }
|
|
15
|
+
},
|
|
16
|
+
setup(P) {
|
|
17
|
+
const { t: n } = ue(), Q = ce("emitter"), l = P, {
|
|
18
|
+
adults: N,
|
|
19
|
+
children: C,
|
|
20
|
+
arrivalDate: S,
|
|
21
|
+
departureDate: U,
|
|
22
|
+
location: _,
|
|
23
|
+
isExpired: W
|
|
24
|
+
} = V(q()), { reset: X, update: Y } = q(), { fetchAvailabilityData: Z } = z(), { areListingsLoading: H, hotelList: R, hasHotelList: k } = V(z()), {
|
|
25
|
+
firstSelectableDateOffset: x,
|
|
26
|
+
lastSelectableDateOffset: B,
|
|
27
|
+
disableChildSelection: r,
|
|
28
|
+
disableAdultSelection: u,
|
|
29
|
+
controlLocation: ee
|
|
30
|
+
} = V(re()), ae = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), le = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), F = v(2), I = v(0), O = v(ae()), T = v(le()), $ = v(ee.value), d = i({
|
|
31
|
+
get: () => l.booking ? N.value : F.value,
|
|
32
|
+
set: (a) => {
|
|
33
|
+
l.booking ? N.value = Number(a) : F.value = Number(a);
|
|
34
|
+
}
|
|
35
|
+
}), g = i({
|
|
36
|
+
get: () => l.booking ? C.value : I.value,
|
|
37
|
+
set: (a) => {
|
|
38
|
+
l.booking ? C.value = Number(a) : I.value = Number(a);
|
|
39
|
+
}
|
|
40
|
+
}), c = i({
|
|
41
|
+
get: () => l.booking ? S.value : O.value,
|
|
42
|
+
set: (a) => {
|
|
43
|
+
l.booking ? S.value = a : O.value = a;
|
|
44
|
+
}
|
|
45
|
+
}), b = i({
|
|
46
|
+
get: () => l.booking ? U.value : T.value,
|
|
47
|
+
set: (a) => {
|
|
48
|
+
l.booking ? U.value = a : T.value = a;
|
|
49
|
+
}
|
|
50
|
+
}), y = i({
|
|
51
|
+
get: () => isNaN(l.selectedLocation) ? l.booking ? _.value : $.value : l.selectedLocation,
|
|
52
|
+
set: (a) => {
|
|
53
|
+
l.booking ? _.value = a : $.value = a;
|
|
54
|
+
}
|
|
55
|
+
}), j = i(() => {
|
|
56
|
+
const a = R.value.find(({ value: t }) => t === l.selectedLocation);
|
|
57
|
+
return a ? a.label : "";
|
|
58
|
+
}), p = v([]), te = i(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (x.value - 1))));
|
|
59
|
+
i(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + B.value))), i(() => new Date((/* @__PURE__ */ new Date()).setDate(c.value.getDate() + x.value)));
|
|
60
|
+
const oe = i(() => new Date((/* @__PURE__ */ new Date()).setDate(c.value.getDate() + (B.value + 1)))), w = i(() => !(!u && d.value === 0)), ne = i(() => typeof l.link != "string");
|
|
61
|
+
function ie() {
|
|
62
|
+
if (l.booking === !1)
|
|
63
|
+
if (Y({
|
|
64
|
+
adults: d.value,
|
|
65
|
+
children: g.value,
|
|
66
|
+
arrivalDate: c.value,
|
|
67
|
+
departureDate: b.value,
|
|
68
|
+
location: y.value
|
|
69
|
+
}), ne.value) {
|
|
70
|
+
const a = me();
|
|
71
|
+
l.link[a] ? window.location.replace(l.link[a]) : l.link.en ? window.location.replace(l.link.en) : console.log("Sprog understøttes ikke");
|
|
72
|
+
} else
|
|
73
|
+
window.location.replace(l.link);
|
|
74
|
+
else
|
|
75
|
+
w.value && Z();
|
|
76
|
+
}
|
|
77
|
+
return E(c, (a) => {
|
|
78
|
+
const t = new Date(new Date(a).setDate(new Date(a).getDate() + 1));
|
|
79
|
+
new Date(b.value) < t && (b.value = t);
|
|
80
|
+
}), Q.on("forcedDateChange", () => {
|
|
81
|
+
p.value = [c.value, b.value];
|
|
82
|
+
}), E(p, (a) => {
|
|
83
|
+
c.value = a[0], b.value = a[1];
|
|
84
|
+
}), de(() => {
|
|
85
|
+
W.value && X(), p.value = [c.value, b.value];
|
|
86
|
+
}), (a, t) => (s(), D("form", {
|
|
87
|
+
id: "konnectio-availability-form",
|
|
88
|
+
class: K({ reservation: a.booking }),
|
|
89
|
+
type: "availability",
|
|
90
|
+
onSubmit: ve(ie, ["prevent"])
|
|
91
|
+
}, [
|
|
92
|
+
h("ul", {
|
|
93
|
+
id: "konnectio-availability-form-content",
|
|
94
|
+
class: K([
|
|
95
|
+
{ "is-booking-page": a.booking },
|
|
96
|
+
{ "only-adult-guests": !e(u) && e(r) },
|
|
97
|
+
{ "only-child-guests": !e(r) && e(u) },
|
|
98
|
+
{ "no-guests": e(u) && e(r) },
|
|
99
|
+
{ "all-guests": !e(u) && !e(r) },
|
|
100
|
+
{ "has-location": e(k) }
|
|
101
|
+
])
|
|
102
|
+
}, [
|
|
103
|
+
e(k) ? (s(), D("li", De, [
|
|
104
|
+
isNaN(a.selectedLocation) ? (s(), m(be, {
|
|
105
|
+
key: 1,
|
|
106
|
+
modelValue: y.value,
|
|
107
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => y.value = o),
|
|
108
|
+
label: e(n)("general.location"),
|
|
109
|
+
icon: "location-dot",
|
|
110
|
+
"icon-type": "fas",
|
|
111
|
+
"icon-placement": "label",
|
|
112
|
+
options: e(R),
|
|
113
|
+
searchable: !1
|
|
114
|
+
}, null, 8, ["modelValue", "label", "options"])) : (s(), m(L, {
|
|
115
|
+
key: 0,
|
|
116
|
+
modelValue: j.value,
|
|
117
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => j.value = o),
|
|
118
|
+
label: e(n)("general.location"),
|
|
119
|
+
icon: "location-dot",
|
|
120
|
+
"icon-type": "fas",
|
|
121
|
+
"icon-placement": "label",
|
|
122
|
+
readonly: ""
|
|
123
|
+
}, null, 8, ["modelValue", "label"]))
|
|
124
|
+
])) : f("", !0),
|
|
125
|
+
h("li", fe, [
|
|
126
|
+
A(pe, {
|
|
127
|
+
modelValue: p.value,
|
|
128
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => p.value = o),
|
|
129
|
+
label: e(n)("availability.checkInOut"),
|
|
130
|
+
"icon-type": "fas",
|
|
131
|
+
"icon-placement": "label",
|
|
132
|
+
"min-range": 1,
|
|
133
|
+
"min-date": te.value,
|
|
134
|
+
"max-date": oe.value,
|
|
135
|
+
range: ""
|
|
136
|
+
}, null, 8, ["modelValue", "label", "min-date", "max-date"]),
|
|
137
|
+
f("", !0)
|
|
138
|
+
]),
|
|
139
|
+
!e(u) || !e(r) ? (s(), D("li", ke, [
|
|
140
|
+
e(u) ? f("", !0) : (s(), D(M, { key: 0 }, [
|
|
141
|
+
e(k) ? (s(), m(L, {
|
|
142
|
+
key: 0,
|
|
143
|
+
modelValue: d.value,
|
|
144
|
+
"onUpdate:modelValue": t[5] || (t[5] = (o) => d.value = o),
|
|
145
|
+
type: "number",
|
|
146
|
+
label: e(n)("availability.adults"),
|
|
147
|
+
description: e(n)("general.adultAgeRange"),
|
|
148
|
+
"icon-type": "fas",
|
|
149
|
+
"icon-placement": "label",
|
|
150
|
+
name: "adults",
|
|
151
|
+
icon: "male"
|
|
152
|
+
}, null, 8, ["modelValue", "label", "description"])) : (s(), m(G, {
|
|
153
|
+
key: 1,
|
|
154
|
+
modelValue: d.value,
|
|
155
|
+
"onUpdate:modelValue": t[6] || (t[6] = (o) => d.value = o),
|
|
156
|
+
label: e(n)("availability.adults"),
|
|
157
|
+
description: e(n)("general.adultAgeRange"),
|
|
158
|
+
"icon-type": "fas",
|
|
159
|
+
"icon-placement": "label",
|
|
160
|
+
name: "adults",
|
|
161
|
+
icon: "male"
|
|
162
|
+
}, null, 8, ["modelValue", "label", "description"]))
|
|
163
|
+
], 64)),
|
|
164
|
+
e(r) ? f("", !0) : (s(), D(M, { key: 1 }, [
|
|
165
|
+
e(k) ? (s(), m(L, {
|
|
166
|
+
key: 0,
|
|
167
|
+
modelValue: g.value,
|
|
168
|
+
"onUpdate:modelValue": t[7] || (t[7] = (o) => g.value = o),
|
|
169
|
+
type: "number",
|
|
170
|
+
label: e(n)("availability.children"),
|
|
171
|
+
description: e(n)("general.childAgeRange"),
|
|
172
|
+
"icon-type": "fas",
|
|
173
|
+
"icon-placement": "label",
|
|
174
|
+
name: "children",
|
|
175
|
+
icon: "child"
|
|
176
|
+
}, null, 8, ["modelValue", "label", "description"])) : (s(), m(G, {
|
|
177
|
+
key: 1,
|
|
178
|
+
modelValue: g.value,
|
|
179
|
+
"onUpdate:modelValue": t[8] || (t[8] = (o) => g.value = o),
|
|
180
|
+
label: e(n)("availability.children"),
|
|
181
|
+
description: e(n)("general.childAgeRange"),
|
|
182
|
+
"icon-type": "fas",
|
|
183
|
+
"icon-placement": "label",
|
|
184
|
+
name: "children",
|
|
185
|
+
icon: "child"
|
|
186
|
+
}, null, 8, ["modelValue", "label", "description"]))
|
|
187
|
+
], 64))
|
|
188
|
+
])) : f("", !0),
|
|
189
|
+
h("li", ye, [
|
|
190
|
+
A(J, {
|
|
191
|
+
class: "konnectio-availability-submit-small",
|
|
192
|
+
type: "submit",
|
|
193
|
+
icon: "search",
|
|
194
|
+
"icon-type": "fas",
|
|
195
|
+
disabled: !w.value,
|
|
196
|
+
"is-loading": e(H)
|
|
197
|
+
}, null, 8, ["disabled", "is-loading"]),
|
|
198
|
+
A(J, {
|
|
199
|
+
class: "konnectio-availability-submit-large",
|
|
200
|
+
type: "submit",
|
|
201
|
+
label: e(n)("availability.buttonLabel"),
|
|
202
|
+
disabled: !w.value,
|
|
203
|
+
"is-loading": e(H)
|
|
204
|
+
}, null, 8, ["label", "disabled", "is-loading"])
|
|
205
|
+
])
|
|
206
|
+
], 2)
|
|
207
|
+
], 34));
|
|
208
|
+
}
|
|
209
|
+
}), Le = /* @__PURE__ */ ge(we, [["__scopeId", "data-v-c0f38352"]]);
|
|
210
|
+
export {
|
|
211
|
+
Le as H
|
|
212
|
+
};
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as o, u as a, f as r,
|
|
2
|
-
import { B as d } from "./CheckoutWindow-
|
|
1
|
+
import { d as o, u as a, f as r, k as i, x as c, h as e, j as s, y as p, v as _ } from "./Field-h1g7Dq--.js";
|
|
2
|
+
import { B as d } from "./CheckoutWindow-Uh5py1iz.js";
|
|
3
3
|
const l = { class: "konnectio-terms-side-panel" }, f = ["innerHTML"], m = /* @__PURE__ */ o({
|
|
4
4
|
__name: "TermsOfService",
|
|
5
5
|
props: {
|
|
@@ -20,7 +20,7 @@ const l = { class: "konnectio-terms-side-panel" }, f = ["innerHTML"], m = /* @__
|
|
|
20
20
|
_: 1
|
|
21
21
|
}, 8, ["title"]));
|
|
22
22
|
}
|
|
23
|
-
}),
|
|
23
|
+
}), k = /* @__PURE__ */ _(m, [["__scopeId", "data-v-82aaf990"]]);
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
k as S
|
|
26
26
|
};
|
package/dist/availability.js
CHANGED
|
@@ -1,69 +1,73 @@
|
|
|
1
|
-
import { d as C, u as w, r as E, e as m, o as S, f as
|
|
2
|
-
import { H as
|
|
3
|
-
import { E as
|
|
4
|
-
import { E as
|
|
5
|
-
import { A as
|
|
6
|
-
const
|
|
1
|
+
import { d as C, u as w, r as E, e as m, o as S, f as c, k as v, x as d, S as T, h as a, m as b, g as B, p as y, q as f, A, j as L, F as I, l as _, B as N, D as H, E as M, G as z, H as F, v as P, J as V, K as j, L as O, M as $ } from "./Field-h1g7Dq--.js";
|
|
2
|
+
import { H as D } from "./HotelAvailabilityForm-VSefGp9z.js";
|
|
3
|
+
import { E as K } from "./EventAvailabilityForm-0ScLIbfr.js";
|
|
4
|
+
import { E as U } from "./ErrorMessage-YtIshvvf.js";
|
|
5
|
+
import { A as Z } from "./AvailabilitySkeleton-ACZu1cbe.js";
|
|
6
|
+
const q = (l) => (z("data-v-fac0bb15"), l = l(), F(), l), G = { class: "konnectio-availability-module" }, J = { class: "konnectio-availability-navigation" }, x = /* @__PURE__ */ q(() => /* @__PURE__ */ a("div", { class: "konnectio-availability-divider" }, null, -1)), Q = { class: "konnectio-availability-search-form" }, R = /* @__PURE__ */ C({
|
|
7
7
|
name: "AvailabilityLayout",
|
|
8
8
|
__name: "Availability",
|
|
9
9
|
props: {
|
|
10
10
|
accessToken: {},
|
|
11
11
|
eventLink: {},
|
|
12
|
+
eventLocation: {},
|
|
12
13
|
hotelLink: {},
|
|
14
|
+
hotelLocation: {},
|
|
13
15
|
styling: {}
|
|
14
16
|
},
|
|
15
17
|
setup(l) {
|
|
16
|
-
const { t: r } = w(),
|
|
18
|
+
const { t: r } = w(), o = l, i = E(), h = m(() => !!o.hotelLink || !!o.eventLink), p = m(() => !!o.hotelLink && !!o.eventLink), s = m(() => i.value === "hotel"), u = m(() => i.value === "event"), t = (e) => i.value = e;
|
|
17
19
|
return S(() => {
|
|
18
|
-
!
|
|
19
|
-
}), (
|
|
20
|
+
!o.hotelLink && o.eventLink ? i.value = "event" : i.value = "hotel";
|
|
21
|
+
}), (e, n) => (c(), v(M, { styling: e.styling }, {
|
|
20
22
|
default: d(() => [
|
|
21
|
-
h.value ? (
|
|
23
|
+
h.value ? (c(), v(T, { key: 0 }, {
|
|
22
24
|
default: d(() => [
|
|
23
25
|
a("div", null, [
|
|
24
|
-
|
|
25
|
-
"access-token":
|
|
26
|
+
b(H, {
|
|
27
|
+
"access-token": e.accessToken,
|
|
26
28
|
type: "hotel"
|
|
27
29
|
}, {
|
|
28
30
|
default: d(() => [
|
|
29
|
-
a("div",
|
|
30
|
-
|
|
31
|
-
a("nav",
|
|
31
|
+
a("div", G, [
|
|
32
|
+
p.value ? (c(), B(I, { key: 0 }, [
|
|
33
|
+
a("nav", J, [
|
|
32
34
|
a("ul", null, [
|
|
33
35
|
a("li", null, [
|
|
34
36
|
a("button", {
|
|
35
|
-
class:
|
|
36
|
-
onClick: n[0] || (n[0] = f((g) =>
|
|
37
|
+
class: y({ active: s.value }),
|
|
38
|
+
onClick: n[0] || (n[0] = f((g) => t("hotel"), ["prevent"]))
|
|
37
39
|
}, [
|
|
38
40
|
a("span", null, A(L(r)("availability.hotel")), 1)
|
|
39
41
|
], 2)
|
|
40
42
|
]),
|
|
41
43
|
a("li", null, [
|
|
42
44
|
a("button", {
|
|
43
|
-
class:
|
|
44
|
-
onClick: n[1] || (n[1] = f((g) =>
|
|
45
|
+
class: y({ active: u.value }),
|
|
46
|
+
onClick: n[1] || (n[1] = f((g) => t("event"), ["prevent"]))
|
|
45
47
|
}, [
|
|
46
48
|
a("span", null, A(L(r)("availability.events")), 1)
|
|
47
49
|
], 2)
|
|
48
50
|
])
|
|
49
51
|
])
|
|
50
52
|
]),
|
|
51
|
-
|
|
53
|
+
x
|
|
52
54
|
], 64)) : _("", !0),
|
|
53
55
|
a("div", Q, [
|
|
54
|
-
|
|
56
|
+
b(N, {
|
|
55
57
|
name: "fade",
|
|
56
58
|
mode: "out-in",
|
|
57
59
|
appear: ""
|
|
58
60
|
}, {
|
|
59
61
|
default: d(() => [
|
|
60
|
-
|
|
62
|
+
s.value ? (c(), v(D, {
|
|
61
63
|
key: 0,
|
|
62
|
-
link:
|
|
63
|
-
|
|
64
|
+
link: e.hotelLink,
|
|
65
|
+
"selected-location": Number(e.hotelLocation)
|
|
66
|
+
}, null, 8, ["link", "selected-location"])) : u.value ? (c(), v(K, {
|
|
64
67
|
key: 1,
|
|
65
|
-
link:
|
|
66
|
-
|
|
68
|
+
link: e.eventLink,
|
|
69
|
+
"selected-location": Number(e.eventLocation)
|
|
70
|
+
}, null, 8, ["link", "selected-location"])) : _("", !0)
|
|
67
71
|
]),
|
|
68
72
|
_: 1
|
|
69
73
|
})
|
|
@@ -76,13 +80,13 @@ const Z = (l) => (z("data-v-16ca7abd"), l = l(), F(), l), q = { class: "konnecti
|
|
|
76
80
|
]),
|
|
77
81
|
fallback: d(() => [
|
|
78
82
|
a("div", null, [
|
|
79
|
-
|
|
80
|
-
view:
|
|
83
|
+
b(Z, {
|
|
84
|
+
view: p.value ? "both" : i.value
|
|
81
85
|
}, null, 8, ["view"])
|
|
82
86
|
])
|
|
83
87
|
]),
|
|
84
88
|
_: 1
|
|
85
|
-
})) : (
|
|
89
|
+
})) : (c(), v(U, {
|
|
86
90
|
key: 1,
|
|
87
91
|
title: "Unable to render Availability module",
|
|
88
92
|
description: `The 'hotel-link' and/or 'event-link' properties are missing.<br>\r
|
|
@@ -92,7 +96,7 @@ const Z = (l) => (z("data-v-16ca7abd"), l = l(), F(), l), q = { class: "konnecti
|
|
|
92
96
|
_: 1
|
|
93
97
|
}, 8, ["styling"]));
|
|
94
98
|
}
|
|
95
|
-
}), k = /* @__PURE__ */ P(R, [["__scopeId", "data-v-
|
|
99
|
+
}), k = /* @__PURE__ */ P(R, [["__scopeId", "data-v-fac0bb15"]]), W = V(), X = $();
|
|
96
100
|
class Y extends HTMLElement {
|
|
97
101
|
vueApp;
|
|
98
102
|
constructor() {
|
|
@@ -103,19 +107,19 @@ class Y extends HTMLElement {
|
|
|
103
107
|
}
|
|
104
108
|
connectedCallback() {
|
|
105
109
|
const r = typeof k == "function" ? k.options : k;
|
|
106
|
-
let
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
for (const
|
|
111
|
-
const n =
|
|
112
|
-
n.length > 1 && (
|
|
110
|
+
let o = Array.isArray(r.props) ? r.props : Object.keys(r.props || {});
|
|
111
|
+
const i = (t) => t.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (e, n) => (n ? "-" : "") + e.toLowerCase()), h = (t) => t.replace(/-./g, (e) => e[1].toUpperCase()), p = {};
|
|
112
|
+
o = o.map(i);
|
|
113
|
+
const s = {};
|
|
114
|
+
for (const t of this.attributes) {
|
|
115
|
+
const n = t.name.split(".");
|
|
116
|
+
n.length > 1 && (s[n[0]] || (s[n[0]] = {}), s[n[0]][h(n[1])] = t.value);
|
|
113
117
|
}
|
|
114
|
-
for (const
|
|
115
|
-
let
|
|
116
|
-
|
|
118
|
+
for (const t of o) {
|
|
119
|
+
let e = this.attributes.getNamedItem(t)?.value;
|
|
120
|
+
s.hasOwnProperty(t) && (e = s[t]), p[t] = e;
|
|
117
121
|
}
|
|
118
|
-
this.vueApp = j(k,
|
|
122
|
+
this.vueApp = j(k, p), this.vueApp.provide("emitter", X), this.vueApp.use(O), this.vueApp.use(W);
|
|
119
123
|
const u = document.createElement("div");
|
|
120
124
|
this.vueApp.mount(u), this.appendChild(u.children[0]);
|
|
121
125
|
}
|
package/dist/availability.js.br
CHANGED
|
Binary file
|