@konnectio/core 4.4.9 → 4.5.1
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/README.md +274 -274
- package/dist/ActionField-CCjWElNQ.js +148 -0
- package/dist/ActionField-CCjWElNQ.js.br +0 -0
- package/dist/ActionField-CCjWElNQ.js.gz +0 -0
- package/dist/AvailabilitySkeleton-IQbxzq3Q.js +10129 -0
- package/dist/AvailabilitySkeleton-IQbxzq3Q.js.br +0 -0
- package/dist/AvailabilitySkeleton-IQbxzq3Q.js.gz +0 -0
- package/dist/CheckoutWindow-xnLaHTT5.js +701 -0
- package/dist/CheckoutWindow-xnLaHTT5.js.br +0 -0
- package/dist/CheckoutWindow-xnLaHTT5.js.gz +0 -0
- package/dist/ErrorMessage-6_ULtG_D.js +31 -0
- package/dist/ErrorMessage-6_ULtG_D.js.br +0 -0
- package/dist/ErrorMessage-6_ULtG_D.js.gz +0 -0
- package/dist/EventAvailabilityForm-Dq4WxMuL.js +114 -0
- package/dist/EventAvailabilityForm-Dq4WxMuL.js.br +0 -0
- package/dist/EventAvailabilityForm-Dq4WxMuL.js.gz +0 -0
- package/dist/Field-00JXggoS.js +57 -0
- package/dist/Field-00JXggoS.js.br +0 -0
- package/dist/Field-00JXggoS.js.gz +0 -0
- package/dist/HotelAvailabilityForm-D_mVPzOx.js +317 -0
- package/dist/HotelAvailabilityForm-D_mVPzOx.js.br +0 -0
- package/dist/HotelAvailabilityForm-D_mVPzOx.js.gz +0 -0
- package/dist/SelectField-BYcZ8xUa.js +11161 -0
- package/dist/SelectField-BYcZ8xUa.js.br +0 -0
- package/dist/SelectField-BYcZ8xUa.js.gz +0 -0
- package/dist/TermsOfService-tFJBZdRe.js +17 -0
- package/dist/TermsOfService-tFJBZdRe.js.br +0 -0
- package/dist/TermsOfService-tFJBZdRe.js.gz +0 -0
- package/dist/_-BZTN6PmS.js +22 -0
- package/dist/_-BZTN6PmS.js.br +0 -0
- package/dist/_-BZTN6PmS.js.gz +5 -0
- package/dist/availability.js +99 -129
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +155 -158
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/chunk-BPfpcrXh.js +20 -0
- package/dist/chunk-BPfpcrXh.js.br +0 -0
- package/dist/chunk-BPfpcrXh.js.gz +2 -0
- package/dist/core.css +2 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +43 -47
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/dist-oox8Oy7m.js +944 -0
- package/dist/dist-oox8Oy7m.js.br +0 -0
- package/dist/dist-oox8Oy7m.js.gz +0 -0
- package/dist/event.js +1069 -1192
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +114 -161
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +452 -451
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/giftCard-Dlw7i36H.js +101 -0
- package/dist/giftCard-Dlw7i36H.js.br +0 -0
- package/dist/giftCard-Dlw7i36H.js.gz +0 -0
- package/dist/hotel.js +8169 -10403
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/masonry.plugin-qpD7rOEC.js +8747 -0
- package/dist/masonry.plugin-qpD7rOEC.js.br +0 -0
- package/dist/masonry.plugin-qpD7rOEC.js.gz +0 -0
- package/dist/mitt-DrOLO7f9.js +9694 -0
- package/dist/mitt-DrOLO7f9.js.br +0 -0
- package/dist/mitt-DrOLO7f9.js.gz +0 -0
- package/dist/polyfill.js +9298 -11610
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/style-CCnDB_V1.js +1709 -0
- package/dist/style-CCnDB_V1.js.br +0 -0
- package/dist/style-CCnDB_V1.js.gz +0 -0
- package/package.json +115 -118
- package/dist/ActionField-CjB94ywQ.js +0 -103
- package/dist/ActionField-CjB94ywQ.js.br +0 -0
- package/dist/ActionField-CjB94ywQ.js.gz +0 -0
- package/dist/AvailabilitySkeleton-GcNIEr0O.js +0 -346
- package/dist/AvailabilitySkeleton-GcNIEr0O.js.br +0 -0
- package/dist/AvailabilitySkeleton-GcNIEr0O.js.gz +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-r3OqaSe-.js +0 -10311
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-r3OqaSe-.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-r3OqaSe-.js.gz +0 -0
- package/dist/CheckoutWindow-jLe1mUEB.js +0 -668
- package/dist/CheckoutWindow-jLe1mUEB.js.br +0 -0
- package/dist/CheckoutWindow-jLe1mUEB.js.gz +0 -0
- package/dist/ErrorMessage-uA3IcjN_.js +0 -39
- package/dist/ErrorMessage-uA3IcjN_.js.br +0 -0
- package/dist/ErrorMessage-uA3IcjN_.js.gz +0 -0
- package/dist/EventAvailabilityForm-4m-RW0Lx.js +0 -119
- package/dist/EventAvailabilityForm-4m-RW0Lx.js.br +0 -0
- package/dist/EventAvailabilityForm-4m-RW0Lx.js.gz +0 -0
- package/dist/Field-D9fOd9ca.js +0 -44
- package/dist/Field-D9fOd9ca.js.br +0 -0
- package/dist/Field-D9fOd9ca.js.gz +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B1tIG39F.js +0 -21
- package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B1tIG39F.js.br +0 -5
- package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B1tIG39F.js.gz +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DH_el7cy.js +0 -11918
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DH_el7cy.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DH_el7cy.js.gz +0 -0
- package/dist/TermsOfService-CD3_lM8u.js +0 -28
- package/dist/TermsOfService-CD3_lM8u.js.br +0 -0
- package/dist/TermsOfService-CD3_lM8u.js.gz +0 -0
- package/dist/_-DeLqDsjZ.js +0 -5
- package/dist/_-DeLqDsjZ.js.br +0 -0
- package/dist/_-DeLqDsjZ.js.gz +0 -2
- package/dist/_.vue_vue_type_style_index_0_lang-BdANnGTG.js +0 -25
- package/dist/_.vue_vue_type_style_index_0_lang-BdANnGTG.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BdANnGTG.js.gz +0 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
- package/dist/_commonjsHelpers-DaMA6jEr.js.br +0 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.gz +0 -0
- package/dist/giftCard-G-zvnJVj.js +0 -109
- package/dist/giftCard-G-zvnJVj.js.br +0 -0
- package/dist/giftCard-G-zvnJVj.js.gz +0 -0
- package/dist/index-BEOLg3OJ.js +0 -639
- package/dist/index-BEOLg3OJ.js.br +0 -0
- package/dist/index-BEOLg3OJ.js.gz +0 -0
- package/dist/masonry.plugin-gbufcPfU.js +0 -10816
- package/dist/masonry.plugin-gbufcPfU.js.br +0 -0
- package/dist/masonry.plugin-gbufcPfU.js.gz +0 -0
- package/dist/mitt-Cj---5fy.js +0 -13346
- package/dist/mitt-Cj---5fy.js.br +0 -0
- package/dist/mitt-Cj---5fy.js.gz +0 -0
- package/dist/style-n4UQjvXd.js +0 -1750
- package/dist/style-n4UQjvXd.js.br +0 -0
- package/dist/style-n4UQjvXd.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
import { A as e, At as t, C as n, D as r, Dt as i, E as a, Et as o, H as s, M as c, O as l, P as u, T as d, U as f, V as p, W as ee, Y as m, _ as h, bt as g, d as _, dt as v, et as y, ft as b, j as x, k as S, kt as C, lt as w, o as T, q as E, st as te, tt as ne, u as re, v as D } from "./mitt-DrOLO7f9.js";
|
|
2
|
+
import { E as O, F as ie, S as k, W as A, _ as j, it as ae, n as M, x as N } from "./SelectField-BYcZ8xUa.js";
|
|
3
|
+
//#region node_modules/body-scroll-lock/lib/bodyScrollLock.esm.js
|
|
4
|
+
function P(e) {
|
|
5
|
+
if (Array.isArray(e)) {
|
|
6
|
+
for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
|
|
7
|
+
return n;
|
|
8
|
+
} else return Array.from(e);
|
|
9
|
+
}
|
|
10
|
+
var F = !1;
|
|
11
|
+
if (typeof window < "u") {
|
|
12
|
+
var I = { get passive() {
|
|
13
|
+
F = !0;
|
|
14
|
+
} };
|
|
15
|
+
window.addEventListener("testPassive", null, I), window.removeEventListener("testPassive", null, I);
|
|
16
|
+
}
|
|
17
|
+
var L = typeof window < "u" && window.navigator && window.navigator.platform && (/iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 1), R = [], z = !1, B = -1, V = void 0, H = void 0, U = void 0, W = function(e) {
|
|
18
|
+
return R.some(function(t) {
|
|
19
|
+
return !!(t.options.allowTouchMove && t.options.allowTouchMove(e));
|
|
20
|
+
});
|
|
21
|
+
}, G = function(e) {
|
|
22
|
+
var t = e || window.event;
|
|
23
|
+
return W(t.target) || t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
24
|
+
}, K = function(e) {
|
|
25
|
+
if (U === void 0) {
|
|
26
|
+
var t = !!e && e.reserveScrollBarGap === !0, n = window.innerWidth - document.documentElement.clientWidth;
|
|
27
|
+
if (t && n > 0) {
|
|
28
|
+
var r = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"), 10);
|
|
29
|
+
U = document.body.style.paddingRight, document.body.style.paddingRight = r + n + "px";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
V === void 0 && (V = document.body.style.overflow, document.body.style.overflow = "hidden");
|
|
33
|
+
}, q = function() {
|
|
34
|
+
U !== void 0 && (document.body.style.paddingRight = U, U = void 0), V !== void 0 && (document.body.style.overflow = V, V = void 0);
|
|
35
|
+
}, J = function() {
|
|
36
|
+
return window.requestAnimationFrame(function() {
|
|
37
|
+
if (H === void 0) {
|
|
38
|
+
H = {
|
|
39
|
+
position: document.body.style.position,
|
|
40
|
+
top: document.body.style.top,
|
|
41
|
+
left: document.body.style.left
|
|
42
|
+
};
|
|
43
|
+
var e = window, t = e.scrollY, n = e.scrollX, r = e.innerHeight;
|
|
44
|
+
document.body.style.position = "fixed", document.body.style.top = -t, document.body.style.left = -n, setTimeout(function() {
|
|
45
|
+
return window.requestAnimationFrame(function() {
|
|
46
|
+
var e = r - window.innerHeight;
|
|
47
|
+
e && t >= r && (document.body.style.top = -(t + e));
|
|
48
|
+
});
|
|
49
|
+
}, 300);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}, oe = function() {
|
|
53
|
+
if (H !== void 0) {
|
|
54
|
+
var e = -parseInt(document.body.style.top, 10), t = -parseInt(document.body.style.left, 10);
|
|
55
|
+
document.body.style.position = H.position, document.body.style.top = H.top, document.body.style.left = H.left, window.scrollTo(t, e), H = void 0;
|
|
56
|
+
}
|
|
57
|
+
}, se = function(e) {
|
|
58
|
+
return e ? e.scrollHeight - e.scrollTop <= e.clientHeight : !1;
|
|
59
|
+
}, ce = function(e, t) {
|
|
60
|
+
var n = e.targetTouches[0].clientY - B;
|
|
61
|
+
return W(e.target) ? !1 : t && t.scrollTop === 0 && n > 0 || se(t) && n < 0 ? G(e) : (e.stopPropagation(), !0);
|
|
62
|
+
}, le = function(e, t) {
|
|
63
|
+
if (!e) {
|
|
64
|
+
console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (!R.some(function(t) {
|
|
68
|
+
return t.targetElement === e;
|
|
69
|
+
})) {
|
|
70
|
+
var n = {
|
|
71
|
+
targetElement: e,
|
|
72
|
+
options: t || {}
|
|
73
|
+
};
|
|
74
|
+
R = [].concat(P(R), [n]), L ? J() : K(t), L && (e.ontouchstart = function(e) {
|
|
75
|
+
e.targetTouches.length === 1 && (B = e.targetTouches[0].clientY);
|
|
76
|
+
}, e.ontouchmove = function(t) {
|
|
77
|
+
t.targetTouches.length === 1 && ce(t, e);
|
|
78
|
+
}, z ||= (document.addEventListener("touchmove", G, F ? { passive: !1 } : void 0), !0));
|
|
79
|
+
}
|
|
80
|
+
}, ue = function(e) {
|
|
81
|
+
if (!e) {
|
|
82
|
+
console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
R = R.filter(function(t) {
|
|
86
|
+
return t.targetElement !== e;
|
|
87
|
+
}), L && (e.ontouchstart = null, e.ontouchmove = null, z && R.length === 0 && (document.removeEventListener("touchmove", G, F ? { passive: !1 } : void 0), z = !1)), L ? oe() : q();
|
|
88
|
+
}, Y = u({
|
|
89
|
+
name: "SidePanelCloseButton",
|
|
90
|
+
emits: ["close"]
|
|
91
|
+
}), de = [/* @__PURE__ */ a("span", { class: "vsp-close__x" }, null, -1)];
|
|
92
|
+
function fe(e, t, n, r, i, a) {
|
|
93
|
+
return m(), S("div", {
|
|
94
|
+
class: "vsp-close",
|
|
95
|
+
onClick: t[0] ||= (t) => e.$emit("close")
|
|
96
|
+
}, [...de]);
|
|
97
|
+
}
|
|
98
|
+
Y.render = fe, Y.__file = "src/components/SidePanelCloseButton.vue";
|
|
99
|
+
var X = u({
|
|
100
|
+
name: "VueSidePanel",
|
|
101
|
+
components: { SidePanelCloseButton: Y },
|
|
102
|
+
props: {
|
|
103
|
+
idName: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: "vsp-container"
|
|
106
|
+
},
|
|
107
|
+
hideCloseBtn: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: !1
|
|
110
|
+
},
|
|
111
|
+
noClose: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: !1
|
|
114
|
+
},
|
|
115
|
+
side: {
|
|
116
|
+
type: String,
|
|
117
|
+
validator: (e) => [
|
|
118
|
+
"top",
|
|
119
|
+
"right",
|
|
120
|
+
"bottom",
|
|
121
|
+
"left"
|
|
122
|
+
].includes(e),
|
|
123
|
+
default: "right"
|
|
124
|
+
},
|
|
125
|
+
rerender: {
|
|
126
|
+
type: Boolean,
|
|
127
|
+
default: !1
|
|
128
|
+
},
|
|
129
|
+
zIndex: {
|
|
130
|
+
type: [Number, String],
|
|
131
|
+
default: "auto"
|
|
132
|
+
},
|
|
133
|
+
width: {
|
|
134
|
+
type: String,
|
|
135
|
+
default: "auto"
|
|
136
|
+
},
|
|
137
|
+
height: {
|
|
138
|
+
type: String,
|
|
139
|
+
default: "auto"
|
|
140
|
+
},
|
|
141
|
+
lockScroll: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: !1
|
|
144
|
+
},
|
|
145
|
+
lockScrollHtml: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
default: !0
|
|
148
|
+
},
|
|
149
|
+
modelValue: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: !1,
|
|
152
|
+
required: !0
|
|
153
|
+
},
|
|
154
|
+
overlayColor: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: "black"
|
|
157
|
+
},
|
|
158
|
+
overlayOpacity: {
|
|
159
|
+
type: Number,
|
|
160
|
+
default: .5
|
|
161
|
+
},
|
|
162
|
+
overlayDuration: {
|
|
163
|
+
type: Number,
|
|
164
|
+
default: 500
|
|
165
|
+
},
|
|
166
|
+
panelColor: {
|
|
167
|
+
type: String,
|
|
168
|
+
default: "white"
|
|
169
|
+
},
|
|
170
|
+
panelDuration: {
|
|
171
|
+
type: Number,
|
|
172
|
+
default: 300
|
|
173
|
+
},
|
|
174
|
+
transitionName: {
|
|
175
|
+
type: String,
|
|
176
|
+
default: void 0
|
|
177
|
+
},
|
|
178
|
+
headerClass: {
|
|
179
|
+
type: String,
|
|
180
|
+
default: ""
|
|
181
|
+
},
|
|
182
|
+
bodyClass: {
|
|
183
|
+
type: String,
|
|
184
|
+
default: ""
|
|
185
|
+
},
|
|
186
|
+
footerClass: {
|
|
187
|
+
type: String,
|
|
188
|
+
default: ""
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
emits: [
|
|
192
|
+
"update:modelValue",
|
|
193
|
+
"closed",
|
|
194
|
+
"opened"
|
|
195
|
+
],
|
|
196
|
+
setup(e, { emit: t, attrs: n }) {
|
|
197
|
+
let r, i = g(null), a = g(null), o = g(null), c = g(null), l = g(null), u = g(0), p = g(0), m = g(0), h = g(0), _ = g(0), v = g(), y = g(!1), b = async () => {
|
|
198
|
+
window?.innerHeight > 0 && (_.value = window.innerHeight), u.value = o.value ? o.value.clientHeight : 0, m.value = c.value ? c.value.clientHeight : 0, p.value = l.value ? l.value.scrollHeight : 0, h.value = i.value ? i.value.clientHeight : 0;
|
|
199
|
+
}, x = () => t("update:modelValue", !1), S = (t, n) => {
|
|
200
|
+
if (n) {
|
|
201
|
+
setTimeout(() => {
|
|
202
|
+
le(t, { reserveScrollBarGap: !0 }), e.lockScrollHtml && (document.documentElement.style.overflow = "hidden");
|
|
203
|
+
}, 0);
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
ue(t), e.lockScrollHtml && document.documentElement.style.removeProperty("overflow");
|
|
207
|
+
}, C = () => Math.max(...Array.from(document.querySelectorAll("body *"), (e) => parseFloat(window.getComputedStyle(e).zIndex)).filter((e) => !Number.isNaN(e)), 0);
|
|
208
|
+
E(() => {
|
|
209
|
+
v.value = e.zIndex === "auto" ? C() : e.zIndex;
|
|
210
|
+
}), f(() => {
|
|
211
|
+
document.getElementById(e.idName) || (r = document.createElement("div"), r.setAttribute("id", e.idName), document.body.appendChild(r));
|
|
212
|
+
}), ee(() => {
|
|
213
|
+
let { modelValue: t, lockScroll: n } = e;
|
|
214
|
+
n && i.value && t && S(i.value, !1), r && document.body.removeChild(r), window.removeEventListener("resize", b);
|
|
215
|
+
}), w(() => [
|
|
216
|
+
c.value,
|
|
217
|
+
o.value,
|
|
218
|
+
e.height,
|
|
219
|
+
e.width,
|
|
220
|
+
e.side,
|
|
221
|
+
e.modelValue
|
|
222
|
+
], () => {
|
|
223
|
+
s(() => b());
|
|
224
|
+
}), w(() => [e.modelValue, i.value], (t, n) => {
|
|
225
|
+
let r = n ? n[0] : !1, [i, a] = t, o = i, s = r && !i;
|
|
226
|
+
if (a) {
|
|
227
|
+
if (o && (y.value = !!document.body.style.overflow), i) {
|
|
228
|
+
e.lockScroll && S(a, !0), b(), window.addEventListener("resize", b);
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
!e.lockScroll || !s || y.value || (setTimeout(() => {
|
|
232
|
+
a && S(a, !1);
|
|
233
|
+
}, e.panelDuration), window.removeEventListener("resize", b));
|
|
234
|
+
}
|
|
235
|
+
}, { immediate: !0 });
|
|
236
|
+
let T = d(() => {
|
|
237
|
+
if (!h.value) return;
|
|
238
|
+
let t = p.value + m.value + u.value, n = h.value - m.value - u.value;
|
|
239
|
+
return ["top", "bottom"].includes(e.side) && e.height === "auto" && (n = _.value >= t ? p.value : _.value - m.value - u.value), n;
|
|
240
|
+
});
|
|
241
|
+
return {
|
|
242
|
+
body: l,
|
|
243
|
+
panel: i,
|
|
244
|
+
overlay: a,
|
|
245
|
+
overlayStyles: d(() => ({
|
|
246
|
+
zIndex: v.value,
|
|
247
|
+
animationDuration: `${e.overlayDuration}ms`,
|
|
248
|
+
"--overlay-opacity": e.overlayOpacity,
|
|
249
|
+
opacity: e.modelValue ? e.overlayOpacity : 0,
|
|
250
|
+
backgroundColor: e.overlayColor,
|
|
251
|
+
pointerEvents: e.modelValue ? "all" : "none"
|
|
252
|
+
})),
|
|
253
|
+
header: c,
|
|
254
|
+
footer: o,
|
|
255
|
+
closePanel: x,
|
|
256
|
+
panelStyles: d(() => ({
|
|
257
|
+
width: ["left", "right"].includes(e.side) ? e.width : void 0,
|
|
258
|
+
maxWidth: "100%",
|
|
259
|
+
...["top", "bottom"].includes(e.side) ? {
|
|
260
|
+
height: e.height,
|
|
261
|
+
maxHeight: "100%"
|
|
262
|
+
} : {},
|
|
263
|
+
zIndex: v.value,
|
|
264
|
+
backgroundColor: e.panelColor,
|
|
265
|
+
animationDuration: `${e.panelDuration}ms`,
|
|
266
|
+
...Object.assign({}, n.style)
|
|
267
|
+
})),
|
|
268
|
+
bodyHeight: T
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
function pe(e, t, o, s, u, d) {
|
|
273
|
+
let f = ne("SidePanelCloseButton");
|
|
274
|
+
return m(), r(n, { to: `#${e.idName}` }, [a("div", { class: i(["vsp-wrapper", [e.modelValue && "vsp-wrapper--active"]]) }, [c(_, {
|
|
275
|
+
name: "overlay",
|
|
276
|
+
persisted: ""
|
|
277
|
+
}, {
|
|
278
|
+
default: v(() => [b(a("div", {
|
|
279
|
+
ref: "overlay",
|
|
280
|
+
class: "vsp-overlay",
|
|
281
|
+
style: C(e.overlayStyles),
|
|
282
|
+
onClick: t[0] ||= () => e.noClose ? void 0 : e.closePanel()
|
|
283
|
+
}, null, 4), [[h, e.modelValue]])]),
|
|
284
|
+
_: 1
|
|
285
|
+
}), c(_, {
|
|
286
|
+
name: e.transitionName || `slide-${e.side}`,
|
|
287
|
+
onAfterEnter: t[1] ||= (t) => e.$emit("opened"),
|
|
288
|
+
onAfterLeave: t[2] ||= (t) => e.$emit("closed")
|
|
289
|
+
}, {
|
|
290
|
+
default: v(() => [!e.rerender || e.modelValue ? b((m(), S("div", {
|
|
291
|
+
key: 0,
|
|
292
|
+
ref: "panel",
|
|
293
|
+
class: i(["vsp", [`vsp--${e.side}-side`, e.$attrs.class]]),
|
|
294
|
+
style: C(e.panelStyles)
|
|
295
|
+
}, [
|
|
296
|
+
e.$slots.header ? (m(), S("div", {
|
|
297
|
+
key: 0,
|
|
298
|
+
ref: "header",
|
|
299
|
+
class: i([e.headerClass, "vsp__header"])
|
|
300
|
+
}, [y(e.$slots, "header", { close: e.closePanel })], 2)) : l("v-if", !0),
|
|
301
|
+
a("div", {
|
|
302
|
+
ref: "body",
|
|
303
|
+
class: i([e.bodyClass, "vsp__body"]),
|
|
304
|
+
style: C({ height: `${e.bodyHeight}px` })
|
|
305
|
+
}, [y(e.$slots, "default", { close: e.closePanel }), e.hideCloseBtn ? l("v-if", !0) : (m(), r(f, {
|
|
306
|
+
key: 0,
|
|
307
|
+
onClose: e.closePanel
|
|
308
|
+
}, null, 8, ["onClose"]))], 6),
|
|
309
|
+
e.$slots.footer ? (m(), S("div", {
|
|
310
|
+
key: 1,
|
|
311
|
+
ref: "footer",
|
|
312
|
+
class: i([e.footerClass, "vsp__footer"])
|
|
313
|
+
}, [y(e.$slots, "footer")], 2)) : l("v-if", !0)
|
|
314
|
+
], 6)), [[h, e.rerender ? !0 : e.modelValue]]) : l("v-if", !0)]),
|
|
315
|
+
_: 3
|
|
316
|
+
}, 8, ["name"])], 2)], 8, ["to"]);
|
|
317
|
+
}
|
|
318
|
+
X.render = pe, X.__file = "src/components/SidePanel.vue";
|
|
319
|
+
//#endregion
|
|
320
|
+
//#region src/components/side-panels/Base.vue?vue&type=script&setup=true&lang.ts
|
|
321
|
+
var me = { id: "konnectio-side-panel-header" }, he = { id: "konnectio-side-panel-title" }, ge = {
|
|
322
|
+
key: 0,
|
|
323
|
+
id: "konnectio-side-panel-subtitle"
|
|
324
|
+
}, _e = ["innerHTML"], ve = /* @__PURE__ */ k(/* @__PURE__ */ u({
|
|
325
|
+
__name: "Base",
|
|
326
|
+
props: {
|
|
327
|
+
modelValue: { type: Boolean },
|
|
328
|
+
title: {},
|
|
329
|
+
subtitle: {},
|
|
330
|
+
idName: {},
|
|
331
|
+
description: {},
|
|
332
|
+
side: { default: "right" },
|
|
333
|
+
lockScroll: {
|
|
334
|
+
type: Boolean,
|
|
335
|
+
default: !0
|
|
336
|
+
},
|
|
337
|
+
hideCloseButton: {
|
|
338
|
+
type: Boolean,
|
|
339
|
+
default: !0
|
|
340
|
+
},
|
|
341
|
+
width: { default: "840px" }
|
|
342
|
+
},
|
|
343
|
+
emits: [
|
|
344
|
+
"update:modelValue",
|
|
345
|
+
"opened",
|
|
346
|
+
"closed"
|
|
347
|
+
],
|
|
348
|
+
setup(n, { emit: i }) {
|
|
349
|
+
let s = i, u = d(() => {
|
|
350
|
+
let e = navigator?.userAgentData?.platform || navigator?.platform;
|
|
351
|
+
return (/iPad|iPhone|iPod/.test(e) || e === "MacIntel" && navigator.maxTouchPoints > 1) && !window.MSStream;
|
|
352
|
+
});
|
|
353
|
+
function f() {
|
|
354
|
+
s("closed");
|
|
355
|
+
}
|
|
356
|
+
function p() {
|
|
357
|
+
s("opened");
|
|
358
|
+
}
|
|
359
|
+
return (i, s) => (m(), r(o(X), {
|
|
360
|
+
modelValue: n.modelValue,
|
|
361
|
+
"lock-scroll": !u.value && n.lockScroll,
|
|
362
|
+
"hide-close-btn": n.hideCloseButton,
|
|
363
|
+
width: n.width,
|
|
364
|
+
"onUpdate:modelValue": s[1] ||= (e) => i.$emit("update:modelValue", e),
|
|
365
|
+
onClosed: f,
|
|
366
|
+
onOpened: p
|
|
367
|
+
}, e({
|
|
368
|
+
header: v(() => [a("div", me, [a("h2", he, [a("span", null, t(o(ie)(n.title)), 1), a("button", {
|
|
369
|
+
id: "konnectio-side-panel-close",
|
|
370
|
+
onClick: s[0] ||= (e) => i.$emit("update:modelValue", !1)
|
|
371
|
+
}, [c(N, {
|
|
372
|
+
icon: "times",
|
|
373
|
+
type: "fas",
|
|
374
|
+
color: "header"
|
|
375
|
+
})])]), n.subtitle ? (m(), S("h4", ge, [a("span", null, t(n.subtitle), 1)])) : l("", !0)])]),
|
|
376
|
+
default: v(() => [n.description ? (m(), S("div", {
|
|
377
|
+
key: 0,
|
|
378
|
+
class: "konnectio-side-panel-description",
|
|
379
|
+
innerHTML: n.description
|
|
380
|
+
}, null, 8, _e)) : l("", !0), y(i.$slots, "default", {}, void 0, !0)]),
|
|
381
|
+
_: 2
|
|
382
|
+
}, [i.$slots.footer ? {
|
|
383
|
+
name: "footer",
|
|
384
|
+
fn: v(() => [y(i.$slots, "footer", {}, void 0, !0)]),
|
|
385
|
+
key: "0"
|
|
386
|
+
} : void 0]), 1032, [
|
|
387
|
+
"modelValue",
|
|
388
|
+
"lock-scroll",
|
|
389
|
+
"hide-close-btn",
|
|
390
|
+
"width"
|
|
391
|
+
]));
|
|
392
|
+
}
|
|
393
|
+
}), [["__scopeId", "data-v-c84b8ee2"]]), ye = { class: "konnectio-phone-input" }, be = /* @__PURE__ */ k(/* @__PURE__ */ u({
|
|
394
|
+
__name: "PhoneField",
|
|
395
|
+
props: {
|
|
396
|
+
modelValue: {},
|
|
397
|
+
label: {},
|
|
398
|
+
id: {},
|
|
399
|
+
placeholder: {},
|
|
400
|
+
icon: { default: "phone-office" },
|
|
401
|
+
iconColor: {},
|
|
402
|
+
iconType: { default: "fal" },
|
|
403
|
+
required: {
|
|
404
|
+
type: Boolean,
|
|
405
|
+
default: !1
|
|
406
|
+
},
|
|
407
|
+
readonly: {
|
|
408
|
+
type: Boolean,
|
|
409
|
+
default: !1
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
emits: ["update:modelValue"],
|
|
413
|
+
setup(e, { emit: t }) {
|
|
414
|
+
let n = t, i = e, s = i.id || A(), l = g("+45"), u = g("");
|
|
415
|
+
function d() {
|
|
416
|
+
n("update:modelValue", `${l.value} ${u.value}`);
|
|
417
|
+
}
|
|
418
|
+
return E(() => {
|
|
419
|
+
if (i.modelValue) {
|
|
420
|
+
let e = i.modelValue.split(" ");
|
|
421
|
+
l.value = e[0], u.value = e[1];
|
|
422
|
+
}
|
|
423
|
+
}), (t, n) => (m(), r(j, {
|
|
424
|
+
label: e.label,
|
|
425
|
+
id: o(s),
|
|
426
|
+
type: "phone",
|
|
427
|
+
required: e.required,
|
|
428
|
+
readonly: e.readonly
|
|
429
|
+
}, {
|
|
430
|
+
default: v(() => [a("div", ye, [c(M, {
|
|
431
|
+
modelValue: l.value,
|
|
432
|
+
"onUpdate:modelValue": n[0] ||= (e) => l.value = e,
|
|
433
|
+
type: "text",
|
|
434
|
+
id: o(A)(),
|
|
435
|
+
name: "phone-code",
|
|
436
|
+
autocomplete: "tel-country-code",
|
|
437
|
+
icon: e.icon,
|
|
438
|
+
"icon-color": e.iconColor,
|
|
439
|
+
"icon-type": e.iconType,
|
|
440
|
+
placeholder: "+XX",
|
|
441
|
+
required: e.required,
|
|
442
|
+
readonly: e.readonly,
|
|
443
|
+
onInput: n[1] ||= (e) => d()
|
|
444
|
+
}, null, 8, [
|
|
445
|
+
"modelValue",
|
|
446
|
+
"id",
|
|
447
|
+
"icon",
|
|
448
|
+
"icon-color",
|
|
449
|
+
"icon-type",
|
|
450
|
+
"required",
|
|
451
|
+
"readonly"
|
|
452
|
+
]), c(M, {
|
|
453
|
+
modelValue: u.value,
|
|
454
|
+
"onUpdate:modelValue": n[2] ||= (e) => u.value = e,
|
|
455
|
+
type: "number",
|
|
456
|
+
name: "phone",
|
|
457
|
+
autocomplete: "tel-national",
|
|
458
|
+
inputmode: "numeric",
|
|
459
|
+
id: o(s),
|
|
460
|
+
placeholder: e.placeholder,
|
|
461
|
+
required: e.required,
|
|
462
|
+
readonly: e.readonly,
|
|
463
|
+
onInput: n[3] ||= (e) => d()
|
|
464
|
+
}, null, 8, [
|
|
465
|
+
"modelValue",
|
|
466
|
+
"id",
|
|
467
|
+
"placeholder",
|
|
468
|
+
"required",
|
|
469
|
+
"readonly"
|
|
470
|
+
])])]),
|
|
471
|
+
_: 1
|
|
472
|
+
}, 8, [
|
|
473
|
+
"label",
|
|
474
|
+
"id",
|
|
475
|
+
"required",
|
|
476
|
+
"readonly"
|
|
477
|
+
]));
|
|
478
|
+
}
|
|
479
|
+
}), [["__scopeId", "data-v-3e373d03"]]), xe = [
|
|
480
|
+
"required",
|
|
481
|
+
"type",
|
|
482
|
+
"name",
|
|
483
|
+
"readonly",
|
|
484
|
+
"disabled",
|
|
485
|
+
"value",
|
|
486
|
+
"checked"
|
|
487
|
+
], Se = ["data-test"], Z = { key: 0 }, Ce = {
|
|
488
|
+
key: 1,
|
|
489
|
+
class: /* @__PURE__ */ i(["konnectio-click-box-label", "inline"])
|
|
490
|
+
}, we = /* @__PURE__ */ k(/* @__PURE__ */ u({
|
|
491
|
+
__name: "Checkbox",
|
|
492
|
+
props: {
|
|
493
|
+
modelValue: { type: [
|
|
494
|
+
String,
|
|
495
|
+
Boolean,
|
|
496
|
+
Number
|
|
497
|
+
] },
|
|
498
|
+
numeric: {
|
|
499
|
+
type: Boolean,
|
|
500
|
+
default: !1
|
|
501
|
+
},
|
|
502
|
+
checked: {
|
|
503
|
+
type: Boolean,
|
|
504
|
+
default: !1
|
|
505
|
+
},
|
|
506
|
+
label: {},
|
|
507
|
+
price: {},
|
|
508
|
+
name: {},
|
|
509
|
+
readonly: {
|
|
510
|
+
type: Boolean,
|
|
511
|
+
default: !1
|
|
512
|
+
},
|
|
513
|
+
type: { default: "checkbox" },
|
|
514
|
+
required: {
|
|
515
|
+
type: Boolean,
|
|
516
|
+
default: !1
|
|
517
|
+
},
|
|
518
|
+
val: {}
|
|
519
|
+
},
|
|
520
|
+
emits: ["update:modelValue"],
|
|
521
|
+
setup(e, { emit: n }) {
|
|
522
|
+
let s = e, c = n, u = te();
|
|
523
|
+
function d() {
|
|
524
|
+
s.readonly !== !0 && c("update:modelValue", s.type === "radio" ? s.val : s.numeric ? +!s.modelValue : !s.modelValue);
|
|
525
|
+
}
|
|
526
|
+
return (n, s) => (m(), r(j, {
|
|
527
|
+
required: e.required,
|
|
528
|
+
type: e.type,
|
|
529
|
+
readonly: e.readonly
|
|
530
|
+
}, {
|
|
531
|
+
default: v(() => [a("label", { class: i([
|
|
532
|
+
"konnectio-click-box-container",
|
|
533
|
+
{ "is-readonly": e.readonly },
|
|
534
|
+
{ "has-label": e.label || o(u).default },
|
|
535
|
+
e.type === "radio" ? "radio" : "checkbox",
|
|
536
|
+
{ active: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue }
|
|
537
|
+
]) }, [
|
|
538
|
+
a("input", p(n.$attrs, {
|
|
539
|
+
required: !!e.required,
|
|
540
|
+
type: e.type,
|
|
541
|
+
name: e.name,
|
|
542
|
+
class: "hidden",
|
|
543
|
+
readonly: !!e.readonly,
|
|
544
|
+
disabled: !!e.readonly,
|
|
545
|
+
value: e.type === "radio" ? e.val : e.modelValue,
|
|
546
|
+
checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue,
|
|
547
|
+
onChange: s[0] ||= (e) => d()
|
|
548
|
+
}), null, 16, xe),
|
|
549
|
+
a("div", {
|
|
550
|
+
class: i(["konnectio-click-box", { checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue }]),
|
|
551
|
+
tabindex: "0",
|
|
552
|
+
"data-test": e.name,
|
|
553
|
+
onKeyup: s[1] ||= D((e) => d(), ["enter"])
|
|
554
|
+
}, null, 42, Se),
|
|
555
|
+
e.label ? (m(), S("div", {
|
|
556
|
+
key: 0,
|
|
557
|
+
class: i([
|
|
558
|
+
"konnectio-click-box-label",
|
|
559
|
+
"text-hover",
|
|
560
|
+
{ "with-price": e.price }
|
|
561
|
+
])
|
|
562
|
+
}, [a("span", null, t(e.label), 1), e.price ? (m(), S("span", Z, t(e.price), 1)) : l("", !0)], 2)) : o(u).default ? (m(), S("div", Ce, [y(n.$slots, "default", {}, void 0, !0)])) : l("", !0)
|
|
563
|
+
], 2)]),
|
|
564
|
+
_: 3
|
|
565
|
+
}, 8, [
|
|
566
|
+
"required",
|
|
567
|
+
"type",
|
|
568
|
+
"readonly"
|
|
569
|
+
]));
|
|
570
|
+
}
|
|
571
|
+
}), [["__scopeId", "data-v-673fba05"]]), Te = {
|
|
572
|
+
href: "https://policies.google.com/privacy",
|
|
573
|
+
target: "_blank"
|
|
574
|
+
}, Ee = {
|
|
575
|
+
href: "https://policies.google.com/terms",
|
|
576
|
+
target: "_blank"
|
|
577
|
+
}, Q = /* @__PURE__ */ u({
|
|
578
|
+
__name: "GoogleNotice",
|
|
579
|
+
setup(e) {
|
|
580
|
+
let { t: n } = T();
|
|
581
|
+
return (e, r) => (m(), S("span", null, [
|
|
582
|
+
x(t(o(n)("googleNotice")) + " ", 1),
|
|
583
|
+
a("a", Te, t(o(n)("googlePrivacyPolicy")), 1),
|
|
584
|
+
x(" " + t(o(n)("googleAnd")) + " ", 1),
|
|
585
|
+
a("a", Ee, t(o(n)("googleTOS")), 1),
|
|
586
|
+
x(" " + t(o(n)("googleApply")) + ". ", 1)
|
|
587
|
+
]));
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
//#endregion
|
|
591
|
+
//#region src/components/GoogleNotice.vue?vue&type=i18n&index=0&lang.yaml
|
|
592
|
+
function $(e) {
|
|
593
|
+
let t = e;
|
|
594
|
+
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
595
|
+
locale: "",
|
|
596
|
+
resource: {
|
|
597
|
+
da: {
|
|
598
|
+
googleNotice: {
|
|
599
|
+
t: 0,
|
|
600
|
+
b: {
|
|
601
|
+
t: 2,
|
|
602
|
+
i: [{ t: 3 }],
|
|
603
|
+
s: "Denne side er beskyttet af reCAPTCHA og Google's"
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
googlePrivacyPolicy: {
|
|
607
|
+
t: 0,
|
|
608
|
+
b: {
|
|
609
|
+
t: 2,
|
|
610
|
+
i: [{ t: 3 }],
|
|
611
|
+
s: "Privatlivspolitik"
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
googleAnd: {
|
|
615
|
+
t: 0,
|
|
616
|
+
b: {
|
|
617
|
+
t: 2,
|
|
618
|
+
i: [{ t: 3 }],
|
|
619
|
+
s: "og"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
googleTOS: {
|
|
623
|
+
t: 0,
|
|
624
|
+
b: {
|
|
625
|
+
t: 2,
|
|
626
|
+
i: [{ t: 3 }],
|
|
627
|
+
s: "Servicevilkår"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
googleApply: {
|
|
631
|
+
t: 0,
|
|
632
|
+
b: {
|
|
633
|
+
t: 2,
|
|
634
|
+
i: [{ t: 3 }],
|
|
635
|
+
s: "er gældende"
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
en: {
|
|
640
|
+
googleNotice: {
|
|
641
|
+
t: 0,
|
|
642
|
+
b: {
|
|
643
|
+
t: 2,
|
|
644
|
+
i: [{ t: 3 }],
|
|
645
|
+
s: "This site is protected by reCAPTCHA and the Google"
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
googlePrivacyPolicy: {
|
|
649
|
+
t: 0,
|
|
650
|
+
b: {
|
|
651
|
+
t: 2,
|
|
652
|
+
i: [{ t: 3 }],
|
|
653
|
+
s: "Privacy Policy"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
googleAnd: {
|
|
657
|
+
t: 0,
|
|
658
|
+
b: {
|
|
659
|
+
t: 2,
|
|
660
|
+
i: [{ t: 3 }],
|
|
661
|
+
s: "and"
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
googleTOS: {
|
|
665
|
+
t: 0,
|
|
666
|
+
b: {
|
|
667
|
+
t: 2,
|
|
668
|
+
i: [{ t: 3 }],
|
|
669
|
+
s: "Terms of Service"
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
googleApply: {
|
|
673
|
+
t: 0,
|
|
674
|
+
b: {
|
|
675
|
+
t: 2,
|
|
676
|
+
i: [{ t: 3 }],
|
|
677
|
+
s: "apply"
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
//#endregion
|
|
685
|
+
//#region src/components/GoogleNotice.vue
|
|
686
|
+
typeof $ == "function" && $(Q);
|
|
687
|
+
var De = Q, Oe = /* @__PURE__ */ k(/* @__PURE__ */ u({
|
|
688
|
+
__name: "CheckoutWindow",
|
|
689
|
+
setup(e) {
|
|
690
|
+
let { paymentGatewayId: t } = re(O());
|
|
691
|
+
return E(() => {
|
|
692
|
+
let e = document.createElement("script"), t = document.createElement("script");
|
|
693
|
+
e.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), t.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(e), document.head.appendChild(t);
|
|
694
|
+
}), (e, n) => (m(), S("div", null, [a("div", {
|
|
695
|
+
id: "konnectio-payment-checkout-wrapper",
|
|
696
|
+
class: i({ reePay: o(t) === o(ae).ReePay })
|
|
697
|
+
}, [...n[0] ||= [a("div", { id: "konnectio-payment-checkout" }, null, -1)]], 2)]));
|
|
698
|
+
}
|
|
699
|
+
}), [["__scopeId", "data-v-403e3fbf"]]);
|
|
700
|
+
//#endregion
|
|
701
|
+
export { ve as a, be as i, De as n, we as r, Oe as t };
|
|
Binary file
|
|
Binary file
|