@konnectio/core 4.4.9 → 4.5.0

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