@konnectio/core 4.0.56-rc3 → 4.0.56-rc31

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