@konnectio/core 4.7.18 → 4.8.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.
Files changed (115) hide show
  1. package/dist/{ActionField-L0Lr7Cq5.js → ActionField-nQffsZA2.js} +5 -5
  2. package/dist/ActionField-nQffsZA2.js.br +0 -0
  3. package/dist/ActionField-nQffsZA2.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-CSQUAVcs.js → AvailabilitySkeleton-AmgXdz28.js} +1737 -1580
  5. package/dist/AvailabilitySkeleton-AmgXdz28.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-AmgXdz28.js.gz +0 -0
  7. package/dist/CheckoutWindow-D8IPM2hs.js +1786 -0
  8. package/dist/CheckoutWindow-D8IPM2hs.js.br +0 -0
  9. package/dist/CheckoutWindow-D8IPM2hs.js.gz +0 -0
  10. package/dist/{ErrorMessage-BZqsLh26.js → ErrorMessage-DJAdBPXD.js} +2 -2
  11. package/dist/ErrorMessage-DJAdBPXD.js.br +0 -0
  12. package/dist/ErrorMessage-DJAdBPXD.js.gz +0 -0
  13. package/dist/{EventAvailabilityForm-Cuxc0RuT.js → EventAvailabilityForm-Bspi3PTG.js} +13 -12
  14. package/dist/EventAvailabilityForm-Bspi3PTG.js.br +0 -0
  15. package/dist/EventAvailabilityForm-Bspi3PTG.js.gz +0 -0
  16. package/dist/{Field-AlAFHkiH.js → Field-BbzATkQp.js} +2 -2
  17. package/dist/Field-BbzATkQp.js.br +0 -0
  18. package/dist/Field-BbzATkQp.js.gz +4 -0
  19. package/dist/{HotelAvailabilityForm-C3iHHzNH.js → HotelAvailabilityForm-DcNJrBEP.js} +15 -14
  20. package/dist/HotelAvailabilityForm-DcNJrBEP.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-DcNJrBEP.js.gz +0 -0
  22. package/dist/{SelectField-hZSfVqht.js → SelectField-DRafB_Cb.js} +2980 -2852
  23. package/dist/SelectField-DRafB_Cb.js.br +0 -0
  24. package/dist/SelectField-DRafB_Cb.js.gz +0 -0
  25. package/dist/{TermsOfService-CSImjp8p.js → TermsOfService-BJaXGVwJ.js} +3 -3
  26. package/dist/TermsOfService-BJaXGVwJ.js.br +0 -0
  27. package/dist/TermsOfService-BJaXGVwJ.js.gz +0 -0
  28. package/dist/{_-ceQWaE_o.js → _-P_tgh1jk.js} +3 -3
  29. package/dist/_-P_tgh1jk.js.br +0 -0
  30. package/dist/_-P_tgh1jk.js.gz +3 -0
  31. package/dist/availability.js +8 -8
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +12 -12
  35. package/dist/cancel-reservation.js.br +0 -0
  36. package/dist/cancel-reservation.js.gz +0 -0
  37. package/dist/core.css +1 -1
  38. package/dist/core.css.br +0 -0
  39. package/dist/core.css.gz +0 -0
  40. package/dist/deep-link.js +1 -1
  41. package/dist/deep-link.js.br +0 -0
  42. package/dist/deep-link.js.gz +0 -0
  43. package/dist/dist-BHP07uuH.js +3631 -0
  44. package/dist/dist-BHP07uuH.js.br +0 -0
  45. package/dist/dist-BHP07uuH.js.gz +0 -0
  46. package/dist/{dist-DEZcjiNm.js → dist-D4EW1Jz1.js} +82 -69
  47. package/dist/dist-D4EW1Jz1.js.br +0 -0
  48. package/dist/dist-D4EW1Jz1.js.gz +0 -0
  49. package/dist/event.js +270 -234
  50. package/dist/event.js.br +0 -0
  51. package/dist/event.js.gz +0 -0
  52. package/dist/gift-card-validation.js +10 -10
  53. package/dist/gift-card-validation.js.br +0 -0
  54. package/dist/gift-card-validation.js.gz +0 -0
  55. package/dist/gift-card.js +123 -99
  56. package/dist/gift-card.js.br +0 -0
  57. package/dist/gift-card.js.gz +0 -0
  58. package/dist/{giftCard-CoefzLvK.js → giftCard-Db5RQgXn.js} +23 -13
  59. package/dist/giftCard-Db5RQgXn.js.br +0 -0
  60. package/dist/giftCard-Db5RQgXn.js.gz +0 -0
  61. package/dist/hotel.js +1196 -1130
  62. package/dist/hotel.js.br +0 -0
  63. package/dist/hotel.js.gz +0 -0
  64. package/dist/{i18n-DwFTw_rF.js → i18n-BF6zkld-.js} +3397 -3461
  65. package/dist/i18n-BF6zkld-.js.br +0 -0
  66. package/dist/i18n-BF6zkld-.js.gz +0 -0
  67. package/dist/polyfill.js +1906 -1641
  68. package/dist/polyfill.js.br +0 -0
  69. package/dist/polyfill.js.gz +0 -0
  70. package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  71. package/dist/rolldown-runtime-B0aSnxlc.js.br +0 -0
  72. package/dist/rolldown-runtime-B0aSnxlc.js.gz +5 -0
  73. package/dist/{style-DRBxevpd.js → style-CLohB3MA.js} +8 -6
  74. package/dist/style-CLohB3MA.js.br +0 -0
  75. package/dist/style-CLohB3MA.js.gz +0 -0
  76. package/dist-wix/availability.js +42 -36
  77. package/dist-wix/event.js +34 -27
  78. package/dist-wix/gift-card-validation.js +33 -33
  79. package/dist-wix/gift-card.js +42 -35
  80. package/dist-wix/hotel.js +34 -27
  81. package/package.json +25 -23
  82. package/dist/ActionField-L0Lr7Cq5.js.br +0 -0
  83. package/dist/ActionField-L0Lr7Cq5.js.gz +0 -0
  84. package/dist/AvailabilitySkeleton-CSQUAVcs.js.br +0 -0
  85. package/dist/AvailabilitySkeleton-CSQUAVcs.js.gz +0 -0
  86. package/dist/CheckoutWindow-CjVK26L8.js +0 -718
  87. package/dist/CheckoutWindow-CjVK26L8.js.br +0 -0
  88. package/dist/CheckoutWindow-CjVK26L8.js.gz +0 -0
  89. package/dist/ErrorMessage-BZqsLh26.js.br +0 -0
  90. package/dist/ErrorMessage-BZqsLh26.js.gz +0 -0
  91. package/dist/EventAvailabilityForm-Cuxc0RuT.js.br +0 -0
  92. package/dist/EventAvailabilityForm-Cuxc0RuT.js.gz +0 -0
  93. package/dist/Field-AlAFHkiH.js.br +0 -0
  94. package/dist/Field-AlAFHkiH.js.gz +0 -0
  95. package/dist/HotelAvailabilityForm-C3iHHzNH.js.br +0 -0
  96. package/dist/HotelAvailabilityForm-C3iHHzNH.js.gz +0 -0
  97. package/dist/SelectField-hZSfVqht.js.br +0 -0
  98. package/dist/SelectField-hZSfVqht.js.gz +0 -0
  99. package/dist/TermsOfService-CSImjp8p.js.br +0 -0
  100. package/dist/TermsOfService-CSImjp8p.js.gz +0 -3
  101. package/dist/_-ceQWaE_o.js.br +0 -0
  102. package/dist/_-ceQWaE_o.js.gz +0 -5
  103. package/dist/dist-DEZcjiNm.js.br +0 -0
  104. package/dist/dist-DEZcjiNm.js.gz +0 -0
  105. package/dist/dist-DtPUJ4bx.js +0 -1338
  106. package/dist/dist-DtPUJ4bx.js.br +0 -0
  107. package/dist/dist-DtPUJ4bx.js.gz +0 -0
  108. package/dist/giftCard-CoefzLvK.js.br +0 -0
  109. package/dist/giftCard-CoefzLvK.js.gz +0 -0
  110. package/dist/i18n-DwFTw_rF.js.br +0 -0
  111. package/dist/i18n-DwFTw_rF.js.gz +0 -0
  112. package/dist/rolldown-runtime-Dqa2HsxW.js.br +0 -0
  113. package/dist/rolldown-runtime-Dqa2HsxW.js.gz +0 -2
  114. package/dist/style-DRBxevpd.js.br +0 -0
  115. package/dist/style-DRBxevpd.js.gz +0 -0
@@ -1,718 +0,0 @@
1
- import { $ as e, A as t, B as n, D as r, E as i, Et as a, H as o, J as s, K as c, N as l, O as u, Ot as d, S as f, T as p, Tt as m, U as h, V as ee, _ as g, a as _, ct as v, dt as y, et as b, g as x, j as S, k as C, kt as w, l as T, ot as te, u as E, ut as D, w as O, yt as k } from "./i18n-DwFTw_rF.js";
2
- import { E as ne, I as re, J as A, S as j, _ as M, ct as N, j as P, n as F, v as I, x as ie, y as ae } from "./SelectField-hZSfVqht.js";
3
- //#region node_modules/body-scroll-lock/lib/bodyScrollLock.esm.js
4
- function oe(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 L = !1;
11
- if (typeof window < "u") {
12
- var R = { get passive() {
13
- L = !0;
14
- } };
15
- window.addEventListener("testPassive", null, R), window.removeEventListener("testPassive", null, R);
16
- }
17
- var z = typeof window < "u" && window.navigator && window.navigator.platform && (/iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 1), B = [], V = !1, H = -1, U = void 0, W = void 0, G = void 0, K = function(e) {
18
- return B.some(function(t) {
19
- return !!(t.options.allowTouchMove && t.options.allowTouchMove(e));
20
- });
21
- }, q = function(e) {
22
- var t = e || window.event;
23
- return K(t.target) || t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
24
- }, se = function(e) {
25
- if (G === 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
- G = document.body.style.paddingRight, document.body.style.paddingRight = r + n + "px";
30
- }
31
- }
32
- U === void 0 && (U = document.body.style.overflow, document.body.style.overflow = "hidden");
33
- }, ce = function() {
34
- G !== void 0 && (document.body.style.paddingRight = G, G = void 0), U !== void 0 && (document.body.style.overflow = U, U = void 0);
35
- }, le = function() {
36
- return window.requestAnimationFrame(function() {
37
- if (W === void 0) {
38
- W = {
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
- }, ue = function() {
53
- if (W !== void 0) {
54
- var e = -parseInt(document.body.style.top, 10), t = -parseInt(document.body.style.left, 10);
55
- document.body.style.position = W.position, document.body.style.top = W.top, document.body.style.left = W.left, window.scrollTo(t, e), W = void 0;
56
- }
57
- }, de = function(e) {
58
- return e ? e.scrollHeight - e.scrollTop <= e.clientHeight : !1;
59
- }, fe = function(e, t) {
60
- var n = e.targetTouches[0].clientY - H;
61
- return K(e.target) ? !1 : t && t.scrollTop === 0 && n > 0 || de(t) && n < 0 ? q(e) : (e.stopPropagation(), !0);
62
- }, pe = 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 (!B.some(function(t) {
68
- return t.targetElement === e;
69
- })) {
70
- var n = {
71
- targetElement: e,
72
- options: t || {}
73
- };
74
- B = [].concat(oe(B), [n]), z ? le() : se(t), z && (e.ontouchstart = function(e) {
75
- e.targetTouches.length === 1 && (H = e.targetTouches[0].clientY);
76
- }, e.ontouchmove = function(t) {
77
- t.targetTouches.length === 1 && fe(t, e);
78
- }, V ||= (document.addEventListener("touchmove", q, L ? { passive: !1 } : void 0), !0));
79
- }
80
- }, me = function(e) {
81
- if (!e) {
82
- console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");
83
- return;
84
- }
85
- B = B.filter(function(t) {
86
- return t.targetElement !== e;
87
- }), z && (e.ontouchstart = null, e.ontouchmove = null, V && B.length === 0 && (document.removeEventListener("touchmove", q, L ? { passive: !1 } : void 0), V = !1)), z ? ue() : ce();
88
- }, J = l({
89
- name: "SidePanelCloseButton",
90
- emits: ["close"]
91
- }), he = [/* @__PURE__ */ p("span", { class: "vsp-close__x" }, null, -1)];
92
- function ge(e, t, n, r, i, a) {
93
- return s(), u("div", {
94
- class: "vsp-close",
95
- onClick: t[0] ||= (t) => e.$emit("close")
96
- }, [...he]);
97
- }
98
- J.render = ge, J.__file = "src/components/SidePanelCloseButton.vue";
99
- var Y = l({
100
- name: "VueSidePanel",
101
- components: { SidePanelCloseButton: J },
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 = k(null), a = k(null), s = k(null), l = k(null), u = k(null), d = k(0), f = k(0), p = k(0), m = k(0), g = k(0), _ = k(), y = k(!1), b = async () => {
198
- window?.innerHeight > 0 && (g.value = window.innerHeight), d.value = s.value ? s.value.clientHeight : 0, p.value = l.value ? l.value.clientHeight : 0, f.value = u.value ? u.value.scrollHeight : 0, m.value = i.value ? i.value.clientHeight : 0;
199
- }, x = () => t("update:modelValue", !1), S = (t, n) => {
200
- if (n) {
201
- setTimeout(() => {
202
- pe(t, { reserveScrollBarGap: !0 }), e.lockScrollHtml && (document.documentElement.style.overflow = "hidden");
203
- }, 0);
204
- return;
205
- }
206
- me(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
- c(() => {
209
- _.value = e.zIndex === "auto" ? C() : e.zIndex;
210
- }), o(() => {
211
- document.getElementById(e.idName) || (r = document.createElement("div"), r.setAttribute("id", e.idName), document.body.appendChild(r));
212
- }), h(() => {
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
- }), v(() => [
216
- l.value,
217
- s.value,
218
- e.height,
219
- e.width,
220
- e.side,
221
- e.modelValue
222
- ], () => {
223
- ee(() => b());
224
- }), v(() => [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 w = O(() => {
237
- if (!m.value) return;
238
- let t = f.value + p.value + d.value, n = m.value - p.value - d.value;
239
- return ["top", "bottom"].includes(e.side) && e.height === "auto" && (n = g.value >= t ? f.value : g.value - p.value - d.value), n;
240
- });
241
- return {
242
- body: u,
243
- panel: i,
244
- overlay: a,
245
- overlayStyles: O(() => ({
246
- zIndex: _.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: l,
254
- footer: s,
255
- closePanel: x,
256
- panelStyles: O(() => ({
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: _.value,
264
- backgroundColor: e.panelColor,
265
- animationDuration: `${e.panelDuration}ms`,
266
- ...Object.assign({}, n.style)
267
- })),
268
- bodyHeight: w
269
- };
270
- }
271
- });
272
- function _e(t, n, o, c, l, m) {
273
- let h = b("SidePanelCloseButton");
274
- return s(), i(f, { to: `#${t.idName}` }, [p("div", { class: a(["vsp-wrapper", [t.modelValue && "vsp-wrapper--active"]]) }, [S(E, {
275
- name: "overlay",
276
- persisted: ""
277
- }, {
278
- default: D(() => [y(p("div", {
279
- ref: "overlay",
280
- class: "vsp-overlay",
281
- style: d(t.overlayStyles),
282
- onClick: n[0] ||= () => t.noClose ? void 0 : t.closePanel()
283
- }, null, 4), [[x, t.modelValue]])]),
284
- _: 1
285
- }), S(E, {
286
- name: t.transitionName || `slide-${t.side}`,
287
- onAfterEnter: n[1] ||= (e) => t.$emit("opened"),
288
- onAfterLeave: n[2] ||= (e) => t.$emit("closed")
289
- }, {
290
- default: D(() => [!t.rerender || t.modelValue ? y((s(), u("div", {
291
- key: 0,
292
- ref: "panel",
293
- class: a(["vsp", [`vsp--${t.side}-side`, t.$attrs.class]]),
294
- style: d(t.panelStyles)
295
- }, [
296
- t.$slots.header ? (s(), u("div", {
297
- key: 0,
298
- ref: "header",
299
- class: a([t.headerClass, "vsp__header"])
300
- }, [e(t.$slots, "header", { close: t.closePanel })], 2)) : r("v-if", !0),
301
- p("div", {
302
- ref: "body",
303
- class: a([t.bodyClass, "vsp__body"]),
304
- style: d({ height: `${t.bodyHeight}px` })
305
- }, [e(t.$slots, "default", { close: t.closePanel }), t.hideCloseBtn ? r("v-if", !0) : (s(), i(h, {
306
- key: 0,
307
- onClose: t.closePanel
308
- }, null, 8, ["onClose"]))], 6),
309
- t.$slots.footer ? (s(), u("div", {
310
- key: 1,
311
- ref: "footer",
312
- class: a([t.footerClass, "vsp__footer"])
313
- }, [e(t.$slots, "footer")], 2)) : r("v-if", !0)
314
- ], 6)), [[x, t.rerender ? !0 : t.modelValue]]) : r("v-if", !0)]),
315
- _: 3
316
- }, 8, ["name"])], 2)], 8, ["to"]);
317
- }
318
- Y.render = _e, Y.__file = "src/components/SidePanel.vue";
319
- //#endregion
320
- //#region src/components/side-panels/Base.vue?vue&type=script&setup=true&lang.ts
321
- var ve = { id: "konnectio-side-panel-header" }, ye = { id: "konnectio-side-panel-title" }, be = {
322
- key: 0,
323
- id: "konnectio-side-panel-subtitle"
324
- }, xe = ["innerHTML"], Se = /*#__PURE__*/ j(/* @__PURE__ */ l({
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(t, { emit: n }) {
349
- let a = n, o = O(() => {
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 c() {
354
- a("closed");
355
- }
356
- function l() {
357
- a("opened");
358
- }
359
- return (n, a) => (s(), i(m(Y), {
360
- modelValue: t.modelValue,
361
- "lock-scroll": !o.value && t.lockScroll,
362
- "hide-close-btn": t.hideCloseButton,
363
- width: t.width,
364
- "onUpdate:modelValue": a[1] ||= (e) => n.$emit("update:modelValue", e),
365
- onClosed: c,
366
- onOpened: l
367
- }, C({
368
- header: D(() => [p("div", ve, [p("h2", ye, [p("span", null, w(m(re)(t.title)), 1), p("button", {
369
- id: "konnectio-side-panel-close",
370
- onClick: a[0] ||= (e) => n.$emit("update:modelValue", !1)
371
- }, [S(ie, {
372
- icon: "times",
373
- type: "fas",
374
- color: "header"
375
- })])]), t.subtitle ? (s(), u("h4", be, [p("span", null, w(t.subtitle), 1)])) : r("", !0)])]),
376
- default: D(() => [t.description ? (s(), u("div", {
377
- key: 0,
378
- class: "konnectio-side-panel-description",
379
- innerHTML: t.description
380
- }, null, 8, xe)) : r("", !0), e(n.$slots, "default", {}, void 0, !0)]),
381
- _: 2
382
- }, [n.$slots.footer ? {
383
- name: "footer",
384
- fn: D(() => [e(n.$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-85ac191d"]]), Ce = { class: "konnectio-phone-input" }, we = /*#__PURE__*/ j(/* @__PURE__ */ l({
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, r = e, a = r.id || A(), o = k("+45"), l = k("");
415
- function u() {
416
- n("update:modelValue", `${o.value} ${l.value}`);
417
- }
418
- return c(() => {
419
- if (r.modelValue) {
420
- let e = r.modelValue.split(" ");
421
- o.value = e[0], l.value = e[1];
422
- }
423
- }), (t, n) => (s(), i(M, {
424
- label: e.label,
425
- id: m(a),
426
- type: "phone",
427
- required: e.required,
428
- readonly: e.readonly
429
- }, {
430
- default: D(() => [p("div", Ce, [S(F, {
431
- modelValue: o.value,
432
- "onUpdate:modelValue": n[0] ||= (e) => o.value = e,
433
- type: "text",
434
- id: m(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) => u()
444
- }, null, 8, [
445
- "modelValue",
446
- "id",
447
- "icon",
448
- "icon-color",
449
- "icon-type",
450
- "required",
451
- "readonly"
452
- ]), S(F, {
453
- modelValue: l.value,
454
- "onUpdate:modelValue": n[2] ||= (e) => l.value = e,
455
- type: "number",
456
- name: "phone",
457
- autocomplete: "tel-national",
458
- inputmode: "numeric",
459
- id: m(a),
460
- placeholder: e.placeholder,
461
- required: e.required,
462
- readonly: e.readonly,
463
- onInput: n[3] ||= (e) => u()
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-b0b6eb09"]]), Te = [
480
- "required",
481
- "type",
482
- "name",
483
- "readonly",
484
- "disabled",
485
- "value",
486
- "checked"
487
- ], Ee = ["data-test"], De = { key: 0 }, Oe = {
488
- key: 1,
489
- class: /*@__PURE__*/ a(["konnectio-click-box-label", "inline"])
490
- }, ke = /*#__PURE__*/ j(/* @__PURE__ */ l({
491
- __name: "Checkbox",
492
- props: {
493
- modelValue: { type: [
494
- String,
495
- Boolean,
496
- Number,
497
- null
498
- ] },
499
- numeric: {
500
- type: Boolean,
501
- default: !1
502
- },
503
- checked: {
504
- type: Boolean,
505
- default: !1
506
- },
507
- label: {},
508
- price: {},
509
- name: {},
510
- readonly: {
511
- type: Boolean,
512
- default: !1
513
- },
514
- type: { default: "checkbox" },
515
- required: {
516
- type: Boolean,
517
- default: !1
518
- },
519
- val: {}
520
- },
521
- emits: ["update:modelValue"],
522
- setup(t, { emit: o }) {
523
- let c = t, l = o, d = te();
524
- function f() {
525
- c.readonly !== !0 && l("update:modelValue", c.type === "radio" ? c.val : c.numeric ? +!c.modelValue : !c.modelValue);
526
- }
527
- return (o, c) => (s(), i(M, {
528
- required: t.required,
529
- type: t.type,
530
- readonly: t.readonly
531
- }, {
532
- default: D(() => [p("label", { class: a([
533
- "konnectio-click-box-container",
534
- { "is-readonly": t.readonly },
535
- { "has-label": t.label || m(d).default },
536
- t.type === "radio" ? "radio" : "checkbox",
537
- { active: t.type === "radio" ? t.val === t.modelValue : !!t.modelValue }
538
- ]) }, [
539
- p("input", n(o.$attrs, {
540
- required: !!t.required,
541
- type: t.type,
542
- name: t.name,
543
- class: "hidden",
544
- readonly: !!t.readonly,
545
- disabled: !!t.readonly,
546
- value: t.type === "radio" ? t.val : t.modelValue,
547
- checked: t.type === "radio" ? t.val === t.modelValue : !!t.modelValue,
548
- onChange: c[0] ||= (e) => f()
549
- }), null, 16, Te),
550
- p("div", {
551
- class: a(["konnectio-click-box", { checked: t.type === "radio" ? t.val === t.modelValue : !!t.modelValue }]),
552
- tabindex: "0",
553
- "data-test": t.name,
554
- onKeyup: c[1] ||= g((e) => f(), ["enter"])
555
- }, null, 42, Ee),
556
- t.label ? (s(), u("div", {
557
- key: 0,
558
- class: a([
559
- "konnectio-click-box-label",
560
- "text-hover",
561
- { "with-price": t.price }
562
- ])
563
- }, [p("span", null, w(t.label), 1), t.price ? (s(), u("span", De, w(t.price), 1)) : r("", !0)], 2)) : m(d).default ? (s(), u("div", Oe, [e(o.$slots, "default", {}, void 0, !0)])) : r("", !0)
564
- ], 2)]),
565
- _: 3
566
- }, 8, [
567
- "required",
568
- "type",
569
- "readonly"
570
- ]));
571
- }
572
- }), [["__scopeId", "data-v-caa3bb1f"]]), X = {
573
- href: "https://policies.google.com/privacy",
574
- target: "_blank"
575
- }, Ae = {
576
- href: "https://policies.google.com/terms",
577
- target: "_blank"
578
- }, Z = /*@__PURE__*/ l({
579
- __name: "GoogleNotice",
580
- setup(e) {
581
- let { t: n } = _();
582
- return (e, r) => (s(), u("span", null, [
583
- t(w(m(n)("googleNotice")) + " ", 1),
584
- p("a", X, w(m(n)("googlePrivacyPolicy")), 1),
585
- t(" " + w(m(n)("googleAnd")) + " ", 1),
586
- p("a", Ae, w(m(n)("googleTOS")), 1),
587
- t(" " + w(m(n)("googleApply")) + ". ", 1)
588
- ]));
589
- }
590
- });
591
- //#endregion
592
- //#region src/components/GoogleNotice.vue?vue&type=i18n&index=0&lang.yaml
593
- function Q(e) {
594
- let t = e;
595
- t.__i18n = t.__i18n || [], t.__i18n.push({
596
- locale: "",
597
- resource: {
598
- da: {
599
- googleNotice: {
600
- t: 0,
601
- b: {
602
- t: 2,
603
- i: [{ t: 3 }],
604
- s: "Denne side er beskyttet af reCAPTCHA og Google's"
605
- }
606
- },
607
- googlePrivacyPolicy: {
608
- t: 0,
609
- b: {
610
- t: 2,
611
- i: [{ t: 3 }],
612
- s: "Privatlivspolitik"
613
- }
614
- },
615
- googleAnd: {
616
- t: 0,
617
- b: {
618
- t: 2,
619
- i: [{ t: 3 }],
620
- s: "og"
621
- }
622
- },
623
- googleTOS: {
624
- t: 0,
625
- b: {
626
- t: 2,
627
- i: [{ t: 3 }],
628
- s: "Servicevilkår"
629
- }
630
- },
631
- googleApply: {
632
- t: 0,
633
- b: {
634
- t: 2,
635
- i: [{ t: 3 }],
636
- s: "er gældende"
637
- }
638
- }
639
- },
640
- en: {
641
- googleNotice: {
642
- t: 0,
643
- b: {
644
- t: 2,
645
- i: [{ t: 3 }],
646
- s: "This site is protected by reCAPTCHA and the Google"
647
- }
648
- },
649
- googlePrivacyPolicy: {
650
- t: 0,
651
- b: {
652
- t: 2,
653
- i: [{ t: 3 }],
654
- s: "Privacy Policy"
655
- }
656
- },
657
- googleAnd: {
658
- t: 0,
659
- b: {
660
- t: 2,
661
- i: [{ t: 3 }],
662
- s: "and"
663
- }
664
- },
665
- googleTOS: {
666
- t: 0,
667
- b: {
668
- t: 2,
669
- i: [{ t: 3 }],
670
- s: "Terms of Service"
671
- }
672
- },
673
- googleApply: {
674
- t: 0,
675
- b: {
676
- t: 2,
677
- i: [{ t: 3 }],
678
- s: "apply"
679
- }
680
- }
681
- }
682
- }
683
- });
684
- }
685
- //#endregion
686
- //#region src/components/GoogleNotice.vue
687
- typeof Q == "function" && Q(Z);
688
- var je = Z, Me = { id: "konnectio-hosted-checkout-waiting" }, $ = /*#__PURE__*/ j(/* @__PURE__ */ l({
689
- __name: "HostedCheckoutWaiting",
690
- setup(e) {
691
- let { t } = _(), { isHostedPopupOpen: n } = T(P()), { reopenHostedCheckout: a } = P();
692
- return (e, o) => (s(), u("div", Me, [
693
- m(n) ? (s(), i(ae, { key: 0 })) : r("", !0),
694
- p("p", null, w(m(t)("booking.payment.waitForCheckout")), 1),
695
- m(n) ? r("", !0) : (s(), i(I, {
696
- key: 1,
697
- label: m(t)("booking.payment.reopenCheckout"),
698
- "full-width": "",
699
- onClickEvent: m(a)
700
- }, null, 8, ["label", "onClickEvent"]))
701
- ]));
702
- }
703
- }), [["__scopeId", "data-v-9c81cada"]]), Ne = /*#__PURE__*/ j(/* @__PURE__ */ l({
704
- __name: "CheckoutWindow",
705
- setup(e) {
706
- let { paymentGatewayId: t } = T(ne()), { isHostedCheckoutActive: n } = T(P());
707
- return c(() => {
708
- let e = document.createElement("script"), t = document.createElement("script");
709
- 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);
710
- }), (e, r) => (s(), u("div", null, [m(n) ? (s(), i($, { key: 0 })) : (s(), u("div", {
711
- key: 1,
712
- id: "konnectio-payment-checkout-wrapper",
713
- class: a({ reePay: m(t) === m(N).ReePay })
714
- }, [...r[0] ||= [p("div", { id: "konnectio-payment-checkout" }, null, -1)]], 2))]));
715
- }
716
- }), [["__scopeId", "data-v-785105ee"]]);
717
- //#endregion
718
- export { we as a, ke as i, $ as n, Se as o, je as r, Ne as t };
Binary file