@konnectio/core 4.0.56-rc5 → 4.0.56-rc50

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 (189) hide show
  1. package/dist/{ActionField--byx0Lp1.js → ActionField-BQQitCzR.js} +43 -34
  2. package/dist/ActionField-BQQitCzR.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-TZiNrJ8t.js +294 -0
  4. package/dist/AvailabilitySkeleton-TZiNrJ8t.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js +7814 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js.br +0 -0
  7. package/dist/CheckoutWindow-DBBmXrsX.js +668 -0
  8. package/dist/CheckoutWindow-DBBmXrsX.js.br +0 -0
  9. package/dist/ErrorMessage-Dw-TLplp.js +45 -0
  10. package/dist/ErrorMessage-Dw-TLplp.js.br +0 -0
  11. package/dist/EventAvailabilityForm-DimufYUP.js +437 -0
  12. package/dist/EventAvailabilityForm-DimufYUP.js.br +0 -0
  13. package/dist/Field-B4x3qSfU.js +50 -0
  14. package/dist/Field-B4x3qSfU.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js +21414 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js.br +0 -0
  17. package/dist/TermsOfService-DLchxC08.js +35 -0
  18. package/dist/TermsOfService-DLchxC08.js.br +0 -0
  19. package/dist/_-C7wxqlYk.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js +68 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js.br +0 -0
  22. package/dist/availability.js +96 -147
  23. package/dist/availability.js.br +0 -0
  24. package/dist/deep-link.js +10 -0
  25. package/dist/event.js +732 -495
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +132 -75
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +363 -408
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/giftCard-9uCMmY6r.js +127 -0
  32. package/dist/giftCard-9uCMmY6r.js.br +0 -0
  33. package/dist/hotel.js +1480 -2454
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/masonry.plugin-C4-Uj22v.js +12789 -0
  36. package/dist/masonry.plugin-C4-Uj22v.js.br +0 -0
  37. package/dist/polyfill.js +15065 -4765
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/dist/tracing-Dm-FNj-F.js +11807 -0
  42. package/dist/tracing-Dm-FNj-F.js.br +0 -0
  43. package/package.json +47 -40
  44. package/dist/ActionField--byx0Lp1.js.br +0 -0
  45. package/dist/AvailabilitySkeleton-cL6E9wAp.js +0 -239
  46. package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
  47. package/dist/CheckoutWindow-_ZUCAYgm.js +0 -205
  48. package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
  49. package/dist/Container-6UeOakwz.js +0 -68
  50. package/dist/Container-6UeOakwz.js.br +0 -0
  51. package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js +0 -8566
  52. package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
  53. package/dist/Field-GdMucFcQ.js +0 -42
  54. package/dist/Field-GdMucFcQ.js.br +0 -5
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +0 -27240
  56. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
  57. package/dist/ThankYou-9pzt2SfJ.js +0 -13475
  58. package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
  59. package/dist/_-5uiOrU07.js +0 -19
  60. package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
  61. package/dist/assets/typescript/mixins.d.ts +0 -34
  62. package/dist/availability.d.ts +0 -3
  63. package/dist/components/Alert.vue.d.ts +0 -28
  64. package/dist/components/Alert.vue.d.ts.map +0 -1
  65. package/dist/components/Clickable.vue.d.ts +0 -60
  66. package/dist/components/Clickable.vue.d.ts.map +0 -1
  67. package/dist/components/Container.vue.d.ts +0 -23
  68. package/dist/components/Container.vue.d.ts.map +0 -1
  69. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  70. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  71. package/dist/components/Gallery.vue.d.ts +0 -31
  72. package/dist/components/Gallery.vue.d.ts.map +0 -1
  73. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  74. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  75. package/dist/components/Icon.vue.d.ts +0 -38
  76. package/dist/components/Icon.vue.d.ts.map +0 -1
  77. package/dist/components/Loading.vue.d.ts +0 -29
  78. package/dist/components/Loading.vue.d.ts.map +0 -1
  79. package/dist/components/Spinner.vue.d.ts +0 -2
  80. package/dist/components/Spinner.vue.d.ts.map +0 -1
  81. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  82. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  83. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  84. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  85. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  86. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  87. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  88. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  89. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  90. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  91. package/dist/components/forms/_.vue.d.ts +0 -42
  92. package/dist/components/forms/_.vue.d.ts.map +0 -1
  93. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  94. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  95. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  96. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  97. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  98. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  99. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  100. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  101. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  102. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  103. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  104. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  105. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  106. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  107. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  108. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  109. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  110. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  111. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  112. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  113. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  114. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  115. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  116. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  117. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  118. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  119. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  120. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  121. package/dist/components/listings/Base.vue.d.ts +0 -56
  122. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  123. package/dist/components/listings/Event.vue.d.ts +0 -47
  124. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  125. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  126. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  127. package/dist/components/listings/Template.vue.d.ts +0 -21
  128. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  129. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  130. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  131. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  132. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  133. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  134. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  135. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  136. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  137. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  138. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  139. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  140. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  141. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  142. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  143. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  144. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  145. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  146. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  147. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  148. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  149. package/dist/components/skeletons/_.vue.d.ts +0 -36
  150. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  151. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  152. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  153. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  154. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  155. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  156. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  157. package/dist/entries/availability.d.ts +0 -5
  158. package/dist/entries/event.d.ts +0 -2
  159. package/dist/entries/gift-card-validation.d.ts +0 -5
  160. package/dist/entries/gift-card.d.ts +0 -5
  161. package/dist/entries/hotel.d.ts +0 -5
  162. package/dist/entries/navigation.d.ts +0 -1
  163. package/dist/entries/polyfill.d.ts +0 -0
  164. package/dist/event-jnP6wH4w.js +0 -358
  165. package/dist/event-jnP6wH4w.js.br +0 -0
  166. package/dist/event.d.ts +0 -3
  167. package/dist/gift-card-validation.d.ts +0 -3
  168. package/dist/gift-card.d.ts +0 -3
  169. package/dist/hotel.d.ts +0 -3
  170. package/dist/layouts/Availability.vue.d.ts +0 -25
  171. package/dist/layouts/Event.vue.d.ts +0 -18
  172. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  173. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  174. package/dist/layouts/Hotel.vue.d.ts +0 -36
  175. package/dist/layouts/_.vue.d.ts +0 -39
  176. package/dist/navigation.d.ts +0 -1
  177. package/dist/navigation.js +0 -1
  178. package/dist/plugins/i18n.d.ts +0 -5
  179. package/dist/polyfill.d.ts +0 -1
  180. package/dist/store/alert.d.ts +0 -28
  181. package/dist/store/applyGiftCard.d.ts +0 -28
  182. package/dist/store/availability.d.ts +0 -40
  183. package/dist/store/event.d.ts +0 -683
  184. package/dist/store/giftCard.d.ts +0 -83
  185. package/dist/store/payment.d.ts +0 -139
  186. package/dist/store/recaptcha.d.ts +0 -28
  187. package/dist/store/tracking.d.ts +0 -57
  188. package/dist/store/utilities.d.ts +0 -350
  189. package/dist/types/index.d.ts +0 -976
@@ -0,0 +1,668 @@
1
+ import { d as C, o as u, a as m, r as c, h as j, E as ve, G as me, q as Q, c as U, H as he, b as I, g as r, f as H, w as $, y as X, z as Z, I as q, T as x, n as v, v as V, e as S, J as ge, K as be, t as b, u as y, B as we, L as Se, M as ke, D as W, p as Ce, j as $e } from "./tracing-Dm-FNj-F.js";
2
+ import { A as Be, _ as z, r as ee, T as oe, I as ne, h as Ve, s as Pe, b as Te, Q as Ie } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js";
3
+ (function() {
4
+ try {
5
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, o = new Error().stack;
6
+ o && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[o] = "41cdb659-7755-4357-b403-a3389990f40d", e._sentryDebugIdIdentifier = "sentry-dbid-41cdb659-7755-4357-b403-a3389990f40d");
7
+ } catch {
8
+ }
9
+ })();
10
+ function He(e) {
11
+ if (Array.isArray(e)) {
12
+ for (var o = 0, t = Array(e.length); o < e.length; o++)
13
+ t[o] = e[o];
14
+ return t;
15
+ } else
16
+ return Array.from(e);
17
+ }
18
+ var _ = !1;
19
+ if (typeof window < "u") {
20
+ var te = {
21
+ get passive() {
22
+ _ = !0;
23
+ }
24
+ };
25
+ window.addEventListener("testPassive", null, te), window.removeEventListener("testPassive", null, te);
26
+ }
27
+ 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), k = [], E = !1, ae = -1, P = void 0, w = void 0, T = void 0, ie = function(o) {
28
+ return k.some(function(t) {
29
+ return !!(t.options.allowTouchMove && t.options.allowTouchMove(o));
30
+ });
31
+ }, O = function(o) {
32
+ var t = o || window.event;
33
+ return ie(t.target) || t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
34
+ }, Ae = function(o) {
35
+ if (T === void 0) {
36
+ var t = !!o && o.reserveScrollBarGap === !0, n = window.innerWidth - document.documentElement.clientWidth;
37
+ if (t && n > 0) {
38
+ var a = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"), 10);
39
+ T = document.body.style.paddingRight, document.body.style.paddingRight = a + n + "px";
40
+ }
41
+ }
42
+ P === void 0 && (P = document.body.style.overflow, document.body.style.overflow = "hidden");
43
+ }, Ne = function() {
44
+ T !== void 0 && (document.body.style.paddingRight = T, T = void 0), P !== void 0 && (document.body.style.overflow = P, P = void 0);
45
+ }, qe = function() {
46
+ return window.requestAnimationFrame(function() {
47
+ if (w === void 0) {
48
+ w = {
49
+ position: document.body.style.position,
50
+ top: document.body.style.top,
51
+ left: document.body.style.left
52
+ };
53
+ var o = window, t = o.scrollY, n = o.scrollX, a = o.innerHeight;
54
+ document.body.style.position = "fixed", document.body.style.top = -t, document.body.style.left = -n, setTimeout(function() {
55
+ return window.requestAnimationFrame(function() {
56
+ var i = a - window.innerHeight;
57
+ i && t >= a && (document.body.style.top = -(t + i));
58
+ });
59
+ }, 300);
60
+ }
61
+ });
62
+ }, De = function() {
63
+ if (w !== void 0) {
64
+ var o = -parseInt(document.body.style.top, 10), t = -parseInt(document.body.style.left, 10);
65
+ document.body.style.position = w.position, document.body.style.top = w.top, document.body.style.left = w.left, window.scrollTo(t, o), w = void 0;
66
+ }
67
+ }, Ee = function(o) {
68
+ return o ? o.scrollHeight - o.scrollTop <= o.clientHeight : !1;
69
+ }, Oe = function(o, t) {
70
+ var n = o.targetTouches[0].clientY - ae;
71
+ return ie(o.target) ? !1 : t && t.scrollTop === 0 && n > 0 || Ee(t) && n < 0 ? O(o) : (o.stopPropagation(), !0);
72
+ }, ze = function(o, t) {
73
+ if (!o) {
74
+ console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");
75
+ return;
76
+ }
77
+ if (!k.some(function(a) {
78
+ return a.targetElement === o;
79
+ })) {
80
+ var n = {
81
+ targetElement: o,
82
+ options: t || {}
83
+ };
84
+ k = [].concat(He(k), [n]), D ? qe() : Ae(t), D && (o.ontouchstart = function(a) {
85
+ a.targetTouches.length === 1 && (ae = a.targetTouches[0].clientY);
86
+ }, o.ontouchmove = function(a) {
87
+ a.targetTouches.length === 1 && Oe(a, o);
88
+ }, E || (document.addEventListener("touchmove", O, _ ? { passive: !1 } : void 0), E = !0));
89
+ }
90
+ }, Me = function(o) {
91
+ if (!o) {
92
+ console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");
93
+ return;
94
+ }
95
+ k = k.filter(function(t) {
96
+ return t.targetElement !== o;
97
+ }), D && (o.ontouchstart = null, o.ontouchmove = null, E && k.length === 0 && (document.removeEventListener("touchmove", O, _ ? { passive: !1 } : void 0), E = !1)), D ? De() : Ne();
98
+ }, K = C({
99
+ name: "SidePanelCloseButton",
100
+ emits: ["close"]
101
+ });
102
+ const Le = /* @__PURE__ */ r(
103
+ "span",
104
+ { class: "vsp-close__x" },
105
+ null,
106
+ -1
107
+ /* HOISTED */
108
+ ), Fe = [
109
+ Le
110
+ ];
111
+ function Ge(e, o, t, n, a, i) {
112
+ return u(), m("div", {
113
+ class: "vsp-close",
114
+ onClick: o[0] || (o[0] = (l) => e.$emit("close"))
115
+ }, [...Fe]);
116
+ }
117
+ K.render = Ge;
118
+ K.__file = "src/components/SidePanelCloseButton.vue";
119
+ var Y = C({
120
+ name: "VueSidePanel",
121
+ components: {
122
+ SidePanelCloseButton: K
123
+ },
124
+ props: {
125
+ idName: {
126
+ type: String,
127
+ default: "vsp-container"
128
+ },
129
+ hideCloseBtn: {
130
+ type: Boolean,
131
+ default: !1
132
+ },
133
+ noClose: {
134
+ type: Boolean,
135
+ default: !1
136
+ },
137
+ side: {
138
+ type: String,
139
+ validator: (e) => ["top", "right", "bottom", "left"].includes(e),
140
+ default: "right"
141
+ },
142
+ rerender: {
143
+ type: Boolean,
144
+ default: !1
145
+ },
146
+ zIndex: {
147
+ type: [Number, String],
148
+ default: "auto"
149
+ },
150
+ width: {
151
+ type: String,
152
+ default: "auto"
153
+ },
154
+ height: {
155
+ type: String,
156
+ default: "auto"
157
+ },
158
+ lockScroll: {
159
+ type: Boolean,
160
+ default: !1
161
+ },
162
+ lockScrollHtml: {
163
+ type: Boolean,
164
+ default: !0
165
+ },
166
+ modelValue: {
167
+ type: Boolean,
168
+ default: !1,
169
+ required: !0
170
+ },
171
+ overlayColor: {
172
+ type: String,
173
+ default: "black"
174
+ },
175
+ overlayOpacity: {
176
+ type: Number,
177
+ default: 0.5
178
+ },
179
+ overlayDuration: {
180
+ type: Number,
181
+ default: 500
182
+ },
183
+ panelColor: {
184
+ type: String,
185
+ default: "white"
186
+ },
187
+ panelDuration: {
188
+ type: Number,
189
+ default: 300
190
+ },
191
+ transitionName: {
192
+ type: String,
193
+ default: void 0
194
+ },
195
+ headerClass: {
196
+ type: String,
197
+ default: ""
198
+ },
199
+ bodyClass: {
200
+ type: String,
201
+ default: ""
202
+ },
203
+ footerClass: {
204
+ type: String,
205
+ default: ""
206
+ }
207
+ },
208
+ emits: ["update:modelValue", "closed", "opened"],
209
+ setup(e, { emit: o, attrs: t }) {
210
+ let n;
211
+ const a = c(null), i = c(null), l = c(null), s = c(null), d = c(null), f = c(0), h = c(0), A = c(0), M = c(0), L = c(0), F = c(), J = c(!1), B = async () => {
212
+ window?.innerHeight > 0 && (L.value = window.innerHeight), f.value = l.value ? l.value.clientHeight : 0, A.value = s.value ? s.value.clientHeight : 0, h.value = d.value ? d.value.scrollHeight : 0, M.value = a.value ? a.value.clientHeight : 0;
213
+ }, de = () => o("update:modelValue", !1), G = (p, g) => {
214
+ if (g) {
215
+ setTimeout(() => {
216
+ ze(p, { reserveScrollBarGap: !0 }), e.lockScrollHtml && (document.documentElement.style.overflow = "hidden");
217
+ }, 0);
218
+ return;
219
+ }
220
+ Me(p), e.lockScrollHtml && document.documentElement.style.removeProperty("overflow");
221
+ }, re = () => Math.max(...Array.from(document.querySelectorAll("body *"), (p) => parseFloat(window.getComputedStyle(p).zIndex)).filter((p) => !Number.isNaN(p)), 0);
222
+ j(() => {
223
+ F.value = e.zIndex === "auto" ? re() : e.zIndex;
224
+ }), ve(() => {
225
+ document.getElementById(e.idName) || (n = document.createElement("div"), n.setAttribute("id", e.idName), document.body.appendChild(n));
226
+ }), me(() => {
227
+ const { modelValue: p, lockScroll: g } = e;
228
+ g && a.value && p && G(a.value, !1), n && document.body.removeChild(n), window.removeEventListener("resize", B);
229
+ }), Q(() => [s.value, l.value, e.height, e.width, e.side, e.modelValue], () => {
230
+ be(() => B());
231
+ }), Q(() => [e.modelValue, a.value], (p, g) => {
232
+ const fe = g ? g[0] : !1, [R, N] = p, pe = R, ye = fe && !R;
233
+ if (N) {
234
+ if (pe && (J.value = !!document.body.style.overflow), R) {
235
+ e.lockScroll && G(N, !0), B(), window.addEventListener("resize", B);
236
+ return;
237
+ }
238
+ !e.lockScroll || !ye || J.value || (setTimeout(() => {
239
+ N && G(N, !1);
240
+ }, e.panelDuration), window.removeEventListener("resize", B));
241
+ }
242
+ }, { immediate: !0 });
243
+ const se = U(() => {
244
+ if (!M.value)
245
+ return;
246
+ const p = h.value + A.value + f.value;
247
+ let g = M.value - A.value - f.value;
248
+ return ["top", "bottom"].includes(e.side) && e.height === "auto" && (g = L.value >= p ? h.value : L.value - A.value - f.value), g;
249
+ }), ue = U(() => ({
250
+ zIndex: F.value,
251
+ animationDuration: `${e.overlayDuration}ms`,
252
+ "--overlay-opacity": e.overlayOpacity,
253
+ opacity: e.modelValue ? e.overlayOpacity : 0,
254
+ backgroundColor: e.overlayColor,
255
+ pointerEvents: e.modelValue ? "all" : "none"
256
+ })), ce = U(() => ({
257
+ width: ["left", "right"].includes(e.side) ? e.width : void 0,
258
+ maxWidth: "100%",
259
+ ...["top", "bottom"].includes(e.side) ? {
260
+ // minHeight: props.height,
261
+ height: e.height,
262
+ maxHeight: "100%"
263
+ } : {},
264
+ zIndex: F.value,
265
+ backgroundColor: e.panelColor,
266
+ animationDuration: `${e.panelDuration}ms`,
267
+ ...Object.assign({}, t.style)
268
+ }));
269
+ return {
270
+ body: d,
271
+ panel: a,
272
+ overlay: i,
273
+ overlayStyles: ue,
274
+ header: s,
275
+ footer: l,
276
+ closePanel: de,
277
+ panelStyles: ce,
278
+ bodyHeight: se
279
+ };
280
+ }
281
+ });
282
+ function Re(e, o, t, n, a, i) {
283
+ const l = he("SidePanelCloseButton");
284
+ return u(), I(ge, {
285
+ to: `#${e.idName}`
286
+ }, [
287
+ r(
288
+ "div",
289
+ {
290
+ class: v(["vsp-wrapper", [e.modelValue && "vsp-wrapper--active"]])
291
+ },
292
+ [
293
+ H(x, {
294
+ name: "overlay",
295
+ persisted: ""
296
+ }, {
297
+ default: $(() => [
298
+ X(r(
299
+ "div",
300
+ {
301
+ ref: "overlay",
302
+ class: "vsp-overlay",
303
+ style: q(e.overlayStyles),
304
+ onClick: o[0] || (o[0] = () => e.noClose ? void 0 : e.closePanel())
305
+ },
306
+ null,
307
+ 4
308
+ /* STYLE */
309
+ ), [
310
+ [Z, e.modelValue]
311
+ ])
312
+ ]),
313
+ _: 1
314
+ /* STABLE */
315
+ }),
316
+ H(x, {
317
+ name: e.transitionName || `slide-${e.side}`,
318
+ onAfterEnter: o[1] || (o[1] = (s) => e.$emit("opened")),
319
+ onAfterLeave: o[2] || (o[2] = (s) => e.$emit("closed"))
320
+ }, {
321
+ default: $(() => [
322
+ !e.rerender || e.modelValue ? X((u(), m(
323
+ "div",
324
+ {
325
+ key: 0,
326
+ ref: "panel",
327
+ class: v(["vsp", [`vsp--${e.side}-side`, e.$attrs.class]]),
328
+ style: q(e.panelStyles)
329
+ },
330
+ [
331
+ e.$slots.header ? (u(), m(
332
+ "div",
333
+ {
334
+ key: 0,
335
+ ref: "header",
336
+ class: v([e.headerClass, "vsp__header"])
337
+ },
338
+ [
339
+ V(e.$slots, "header", { close: e.closePanel })
340
+ ],
341
+ 2
342
+ /* CLASS */
343
+ )) : S("v-if", !0),
344
+ r(
345
+ "div",
346
+ {
347
+ ref: "body",
348
+ class: v([e.bodyClass, "vsp__body"]),
349
+ style: q({ height: `${e.bodyHeight}px` })
350
+ },
351
+ [
352
+ V(e.$slots, "default", { close: e.closePanel }),
353
+ e.hideCloseBtn ? S("v-if", !0) : (u(), I(l, {
354
+ key: 0,
355
+ onClose: e.closePanel
356
+ }, null, 8, ["onClose"]))
357
+ ],
358
+ 6
359
+ /* CLASS, STYLE */
360
+ ),
361
+ e.$slots.footer ? (u(), m(
362
+ "div",
363
+ {
364
+ key: 1,
365
+ ref: "footer",
366
+ class: v([e.footerClass, "vsp__footer"])
367
+ },
368
+ [
369
+ V(e.$slots, "footer")
370
+ ],
371
+ 2
372
+ /* CLASS */
373
+ )) : S("v-if", !0)
374
+ ],
375
+ 6
376
+ /* CLASS, STYLE */
377
+ )), [
378
+ [Z, e.rerender ? !0 : e.modelValue]
379
+ ]) : S("v-if", !0)
380
+ ]),
381
+ _: 3
382
+ /* FORWARDED */
383
+ }, 8, ["name"])
384
+ ],
385
+ 2
386
+ /* CLASS */
387
+ )
388
+ ], 8, ["to"]);
389
+ }
390
+ Y.render = Re;
391
+ Y.__file = "src/components/SidePanel.vue";
392
+ const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-panel-title" }, je = {
393
+ key: 0,
394
+ id: "konnectio-side-panel-subtitle"
395
+ }, _e = ["innerHTML"], Ke = /* @__PURE__ */ C({
396
+ __name: "Base",
397
+ props: {
398
+ modelValue: { type: Boolean },
399
+ title: {},
400
+ subtitle: {},
401
+ idName: {},
402
+ description: {},
403
+ side: { default: "right" },
404
+ lockScroll: { type: Boolean, default: !0 },
405
+ hideCloseButton: { type: Boolean, default: !0 },
406
+ width: { default: "840px" }
407
+ },
408
+ emits: ["update:modelValue", "opened", "closed"],
409
+ setup(e, { emit: o }) {
410
+ const t = o;
411
+ function n() {
412
+ t("closed");
413
+ }
414
+ function a() {
415
+ t("opened");
416
+ }
417
+ return (i, l) => (u(), I(y(Y), {
418
+ modelValue: i.modelValue,
419
+ "lock-scroll": i.lockScroll,
420
+ "hide-close-btn": i.hideCloseButton,
421
+ width: i.width,
422
+ "onUpdate:modelValue": l[1] || (l[1] = (s) => i.$emit("update:modelValue", s)),
423
+ onClosed: n,
424
+ onOpened: a
425
+ }, {
426
+ header: $(() => [
427
+ r("div", Ue, [
428
+ r("h2", We, [
429
+ r("span", null, b(i.title), 1),
430
+ r("button", {
431
+ id: "konnectio-side-panel-close",
432
+ onClick: l[0] || (l[0] = (s) => i.$emit("update:modelValue", !1))
433
+ }, [
434
+ H(Be, {
435
+ icon: "times",
436
+ type: "fas",
437
+ color: "header"
438
+ })
439
+ ])
440
+ ]),
441
+ i.subtitle ? (u(), m("h4", je, [
442
+ r("span", null, b(i.subtitle), 1)
443
+ ])) : S("", !0)
444
+ ])
445
+ ]),
446
+ default: $(() => [
447
+ r("div", null, [
448
+ r("div", {
449
+ class: "konnectio-side-panel-description",
450
+ innerHTML: i.description
451
+ }, null, 8, _e),
452
+ V(i.$slots, "default", {}, void 0, !0)
453
+ ])
454
+ ]),
455
+ _: 3
456
+ }, 8, ["modelValue", "lock-scroll", "hide-close-btn", "width"]));
457
+ }
458
+ }), co = /* @__PURE__ */ z(Ke, [["__scopeId", "data-v-ce9ba7e5"]]), Ye = { class: "fresh-booking-phone-input" }, Je = /* @__PURE__ */ C({
459
+ __name: "PhoneField",
460
+ props: {
461
+ modelValue: {},
462
+ label: {},
463
+ id: {},
464
+ placeholder: {},
465
+ icon: { default: "phone-office" },
466
+ iconColor: {},
467
+ iconType: { default: "fal" },
468
+ required: { type: Boolean, default: !1 },
469
+ readonly: { type: Boolean, default: !1 },
470
+ inputStyle: {}
471
+ },
472
+ emits: ["update:modelValue"],
473
+ setup(e, { emit: o }) {
474
+ const t = o, n = e, a = n.id || ee(), i = c("+45"), l = c("");
475
+ function s() {
476
+ t("update:modelValue", `${i.value} ${l.value}`);
477
+ }
478
+ return j(() => {
479
+ if (n.modelValue) {
480
+ const d = n.modelValue.split(" ");
481
+ i.value = d[0], l.value = d[1];
482
+ }
483
+ }), (d, f) => (u(), I(ne, {
484
+ label: d.label,
485
+ id: y(a),
486
+ type: "phone",
487
+ required: d.required,
488
+ readonly: d.readonly
489
+ }, {
490
+ default: $(() => [
491
+ r("div", Ye, [
492
+ H(oe, {
493
+ modelValue: i.value,
494
+ "onUpdate:modelValue": f[0] || (f[0] = (h) => i.value = h),
495
+ type: "text",
496
+ id: y(ee)(),
497
+ name: "phone-code",
498
+ autocomplete: "tel-country-code",
499
+ icon: d.icon,
500
+ "icon-color": d.iconColor,
501
+ "icon-type": d.iconType,
502
+ placeholder: "+45",
503
+ required: d.required,
504
+ readonly: d.readonly,
505
+ "input-style": d.inputStyle,
506
+ onInput: f[1] || (f[1] = (h) => s())
507
+ }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
508
+ H(oe, {
509
+ modelValue: l.value,
510
+ "onUpdate:modelValue": f[2] || (f[2] = (h) => l.value = h),
511
+ type: "number",
512
+ name: "phone",
513
+ autocomplete: "tel-national",
514
+ id: y(a),
515
+ placeholder: d.placeholder,
516
+ required: d.required,
517
+ readonly: d.readonly,
518
+ "input-style": d.inputStyle,
519
+ onInput: f[3] || (f[3] = (h) => s())
520
+ }, null, 8, ["modelValue", "id", "placeholder", "required", "readonly", "input-style"])
521
+ ])
522
+ ]),
523
+ _: 1
524
+ }, 8, ["label", "id", "required", "readonly"]));
525
+ }
526
+ }), fo = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-5cd094ab"]]), Qe = ["required", "type", "name", "readonly", "disabled", "value", "checked"], Xe = ["data-test"], Ze = { key: 0 }, xe = {
527
+ key: 1,
528
+ class: /* @__PURE__ */ v(["konnectio-click-box-label", "inline"])
529
+ }, eo = /* @__PURE__ */ C({
530
+ __name: "Checkbox",
531
+ props: {
532
+ modelValue: { type: [String, Boolean, Number] },
533
+ numeric: { type: Boolean, default: !1 },
534
+ checked: { type: Boolean, default: !1 },
535
+ label: {},
536
+ price: {},
537
+ name: {},
538
+ readonly: { type: Boolean, default: !1 },
539
+ type: { default: "checkbox" },
540
+ required: { type: Boolean, default: !1 },
541
+ inputStyle: {},
542
+ val: {}
543
+ },
544
+ emits: ["update:modelValue"],
545
+ setup(e, { emit: o }) {
546
+ const t = e, n = o, a = we();
547
+ function i() {
548
+ t.readonly !== !0 && n(
549
+ "update:modelValue",
550
+ t.type === "radio" ? t.val : t.numeric ? t.modelValue ? 0 : 1 : !t.modelValue
551
+ );
552
+ }
553
+ return (l, s) => (u(), I(ne, {
554
+ required: l.required,
555
+ type: l.type,
556
+ readonly: l.readonly
557
+ }, {
558
+ default: $(() => [
559
+ r("label", {
560
+ class: v([
561
+ "konnectio-click-box-container",
562
+ { "is-readonly": l.readonly },
563
+ { "has-label": l.label || y(a).default },
564
+ l.type === "radio" ? "radio" : "checkbox"
565
+ ])
566
+ }, [
567
+ r("input", Se(l.$attrs, {
568
+ required: !!l.required,
569
+ type: l.type,
570
+ name: l.name,
571
+ class: "hidden",
572
+ readonly: !!l.readonly,
573
+ disabled: !!l.readonly,
574
+ value: l.type === "radio" ? l.val : l.modelValue,
575
+ checked: l.type === "radio" ? l.val === l.modelValue : !!l.modelValue,
576
+ onChange: s[0] || (s[0] = (d) => i())
577
+ }), null, 16, Qe),
578
+ r("div", {
579
+ class: v([
580
+ "konnectio-click-box",
581
+ { checked: l.type === "radio" ? l.val === l.modelValue : !!l.modelValue }
582
+ ]),
583
+ tabindex: "0",
584
+ style: q(l.inputStyle),
585
+ "data-test": l.name,
586
+ onKeyup: s[1] || (s[1] = ke((d) => i(), ["enter"]))
587
+ }, null, 46, Xe),
588
+ l.label ? (u(), m("div", {
589
+ key: 0,
590
+ class: v(["konnectio-click-box-label", "text-hover", { "with-price": l.price }])
591
+ }, [
592
+ r("span", null, b(l.label), 1),
593
+ l.price ? (u(), m("span", Ze, b(l.price), 1)) : S("", !0)
594
+ ], 2)) : y(a).default ? (u(), m("div", xe, [
595
+ V(l.$slots, "default", {}, void 0, !0)
596
+ ])) : S("", !0)
597
+ ], 2)
598
+ ]),
599
+ _: 3
600
+ }, 8, ["required", "type", "readonly"]));
601
+ }
602
+ }), po = /* @__PURE__ */ z(eo, [["__scopeId", "data-v-f6e8dfe3"]]), oo = {
603
+ href: "https://policies.google.com/privacy",
604
+ target: "_blank"
605
+ }, to = {
606
+ href: "https://policies.google.com/terms",
607
+ target: "_blank"
608
+ }, lo = /* @__PURE__ */ C({
609
+ __name: "GoogleNotice",
610
+ setup(e) {
611
+ const { t: o } = Ve();
612
+ return (t, n) => (u(), m("span", null, [
613
+ W(b(y(o)("googleNotice")) + " ", 1),
614
+ r("a", oo, b(y(o)("googlePrivacyPolicy")), 1),
615
+ W(" " + b(y(o)("googleAnd")) + " ", 1),
616
+ r("a", to, b(y(o)("googleTOS")), 1),
617
+ W(" " + b(y(o)("googleApply")) + ". ", 1)
618
+ ]));
619
+ }
620
+ });
621
+ function le(e) {
622
+ const o = e;
623
+ o.__i18n = o.__i18n || [], o.__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(lo);
644
+ const no = (e) => (Ce("data-v-853041a4"), e = e(), $e(), e), ao = /* @__PURE__ */ no(() => /* @__PURE__ */ r("div", { id: "konnectio-payment-checkout" }, null, -1)), io = [
645
+ ao
646
+ ], ro = /* @__PURE__ */ C({
647
+ __name: "CheckoutWindow",
648
+ setup(e) {
649
+ const { paymentGatewayId: o } = Pe(Te());
650
+ return j(() => {
651
+ const t = document.createElement("script"), n = document.createElement("script");
652
+ t.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), n.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(t), document.head.appendChild(n);
653
+ }), (t, n) => (u(), m("div", null, [
654
+ r("div", {
655
+ id: "konnectio-payment-checkout-wrapper",
656
+ class: v({ reePay: y(o) === y(Ie).ReePay })
657
+ }, io, 2)
658
+ ]));
659
+ }
660
+ }), yo = /* @__PURE__ */ z(ro, [["__scopeId", "data-v-853041a4"]]);
661
+ export {
662
+ co as B,
663
+ yo as C,
664
+ fo as P,
665
+ lo as _,
666
+ po as a
667
+ };
668
+ //# sourceMappingURL=CheckoutWindow-DBBmXrsX.js.map