@konnectio/core 4.8.0 → 4.8.2

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