@konnectio/core 4.0.7 → 4.0.9

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 (137) hide show
  1. package/dist/ActionField-b87d2fd7.cjs +1 -0
  2. package/dist/{ActionField-5ecfc9dc.js → ActionField-f3d5b218.js} +4 -4
  3. package/dist/ActionField-f3d5b218.js.br +0 -0
  4. package/dist/AvailabilitySkeleton-019ec202.js +150 -0
  5. package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-e288f5be.cjs +1 -0
  7. package/dist/Field-21bb32d7.cjs +1 -0
  8. package/dist/Field-6bfeedce.js +59 -0
  9. package/dist/Field-6bfeedce.js.br +0 -0
  10. package/dist/{NumberField.vue_vue_type_style_index_0_lang-ab747739.js → SelectField.vue_vue_type_style_index_0_lang-701aecad.js} +7743 -6953
  11. package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
  12. package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +797 -0
  13. package/dist/TextField-99e69631.cjs +54 -0
  14. package/dist/TextField-b8f4462a.js +9343 -0
  15. package/dist/TextField-b8f4462a.js.br +0 -0
  16. package/dist/ThankYou-add684c1.cjs +66 -0
  17. package/dist/ThankYou-edbf753b.js +14279 -0
  18. package/dist/ThankYou-edbf753b.js.br +0 -0
  19. package/dist/{_commonjsHelpers-aeeeeb92.js → _commonjsHelpers-c5d32002.js} +2 -2
  20. package/dist/{applyGiftCard-d9ab3dcf.cjs → applyGiftCard-c21f13ac.cjs} +1 -1
  21. package/dist/{applyGiftCard-c5e4aaad.js → applyGiftCard-dea77ba6.js} +7 -7
  22. package/dist/applyGiftCard-dea77ba6.js.br +0 -0
  23. package/dist/availability.cjs +2 -0
  24. package/dist/availability.js +236 -0
  25. package/dist/availability.js.br +0 -0
  26. package/dist/components/ErrorMessage.vue.d.ts +5 -0
  27. package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
  28. package/dist/components/Icon.vue.d.ts +1 -1
  29. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
  30. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  31. package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
  32. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  33. package/dist/components/forms/ReservationFormTest.vue.d.ts +5 -0
  34. package/dist/components/forms/ReservationFormTest.vue.d.ts.map +1 -0
  35. package/dist/components/inputs/grouped/CountryField.vue.d.ts +1 -1
  36. package/dist/components/listings/Base.vue.d.ts +1 -1
  37. package/dist/components/listings/Test.vue.d.ts +1 -1
  38. package/dist/components/side-panels/Base.vue.d.ts +1 -1
  39. package/dist/components/side-panels/Hotel.vue.d.ts +3 -2
  40. package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -1
  41. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +5 -0
  42. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +1 -0
  43. package/dist/components/skeletons/Field.vue.d.ts +5 -0
  44. package/dist/components/skeletons/Field.vue.d.ts.map +1 -0
  45. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +5 -0
  46. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +1 -0
  47. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +5 -0
  48. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +1 -0
  49. package/dist/components/skeletons/Listing.vue.d.ts +5 -0
  50. package/dist/components/skeletons/Listing.vue.d.ts.map +1 -0
  51. package/dist/components/skeletons/_.vue.d.ts +5 -0
  52. package/dist/components/skeletons/_.vue.d.ts.map +1 -0
  53. package/dist/entries/availability.d.ts +3 -2
  54. package/dist/entries/gift-card.d.ts +1 -2
  55. package/dist/entries/hotel.d.ts +0 -2
  56. package/dist/event-2c6a2138.cjs +1 -0
  57. package/dist/{event-a70cffeb.js → event-a9067cf5.js} +91 -91
  58. package/dist/event-a9067cf5.js.br +0 -0
  59. package/dist/event.cjs +2 -0
  60. package/dist/event.js +867 -0
  61. package/dist/event.js.br +0 -0
  62. package/dist/gift-card-validation.cjs +1 -0
  63. package/dist/{gift-card-validation.es.js → gift-card-validation.js} +42 -42
  64. package/dist/gift-card-validation.js.br +0 -0
  65. package/dist/gift-card.cjs +1 -0
  66. package/dist/gift-card.d.ts +0 -2
  67. package/dist/gift-card.js +590 -0
  68. package/dist/gift-card.js.br +0 -0
  69. package/dist/hotel.cjs +19 -0
  70. package/dist/hotel.d.ts +0 -2
  71. package/dist/hotel.js +2981 -0
  72. package/dist/hotel.js.br +0 -0
  73. package/dist/{index-00262c16.js → index-d080b5a0.js} +5 -7
  74. package/dist/index-d080b5a0.js.br +0 -0
  75. package/dist/index-ec04c269.cjs +1 -0
  76. package/dist/layouts/Availability.vue.d.ts +42 -217
  77. package/dist/layouts/GiftCard.vue.d.ts +130 -99
  78. package/dist/layouts/Hotel.vue.d.ts +162 -57
  79. package/dist/{payment-fbffaa6d.cjs → payment-95b2392a.cjs} +2 -2
  80. package/dist/{payment-9e219e9b.js → payment-cce506b8.js} +930 -929
  81. package/dist/payment-cce506b8.js.br +0 -0
  82. package/dist/polyfill.cjs +4 -0
  83. package/dist/polyfill.js +6815 -0
  84. package/dist/polyfill.js.br +0 -0
  85. package/dist/store/availability.d.ts +4 -1
  86. package/dist/style.css +1 -1
  87. package/dist/style.css.br +0 -0
  88. package/package.json +11 -21
  89. package/dist/ActionField-5ecfc9dc.js.br +0 -0
  90. package/dist/ActionField-ae9b1adf.cjs +0 -1
  91. package/dist/HotelAvailabilityForm-0cd1abda.cjs +0 -1
  92. package/dist/HotelAvailabilityForm-a7b6f17e.js +0 -97
  93. package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
  94. package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +0 -793
  95. package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
  96. package/dist/ReCaptchaVuePlugin-05b8ec39.js +0 -376
  97. package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
  98. package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +0 -1
  99. package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js +0 -10107
  100. package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js.br +0 -0
  101. package/dist/SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs +0 -56
  102. package/dist/ThankYou-1866d8db.js +0 -8547
  103. package/dist/ThankYou-1866d8db.js.br +0 -0
  104. package/dist/ThankYou-5741bcb6.cjs +0 -15
  105. package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
  106. package/dist/availability.cjs.js +0 -1
  107. package/dist/availability.cjs.js.br +0 -0
  108. package/dist/availability.es.js +0 -183
  109. package/dist/availability.es.js.br +0 -0
  110. package/dist/components/LoadingBlock.vue.d.ts +0 -4
  111. package/dist/components/LoadingBlock.vue.d.ts.map +0 -1
  112. package/dist/event-39706438.cjs +0 -1
  113. package/dist/event-a70cffeb.js.br +0 -0
  114. package/dist/event.cjs.js +0 -1
  115. package/dist/event.cjs.js.br +0 -0
  116. package/dist/event.es.js +0 -645
  117. package/dist/event.es.js.br +0 -0
  118. package/dist/gift-card-validation.cjs.js +0 -1
  119. package/dist/gift-card-validation.cjs.js.br +0 -0
  120. package/dist/gift-card-validation.es.js.br +0 -0
  121. package/dist/gift-card.cjs.js +0 -1
  122. package/dist/gift-card.cjs.js.br +0 -0
  123. package/dist/gift-card.es.js +0 -584
  124. package/dist/gift-card.es.js.br +0 -0
  125. package/dist/hotel.cjs.js +0 -19
  126. package/dist/hotel.cjs.js.br +0 -0
  127. package/dist/hotel.es.js +0 -2394
  128. package/dist/hotel.es.js.br +0 -0
  129. package/dist/index-00262c16.js.br +0 -0
  130. package/dist/index-58f3b0cc.cjs +0 -1
  131. package/dist/payment-9e219e9b.js.br +0 -0
  132. package/dist/polyfill.cjs.js +0 -4
  133. package/dist/polyfill.cjs.js.br +0 -0
  134. package/dist/polyfill.es.js +0 -6764
  135. package/dist/polyfill.es.js.br +0 -0
  136. /package/dist/{navigation.cjs.js → navigation.cjs} +0 -0
  137. /package/dist/{navigation.es.js → navigation.js} +0 -0
package/dist/hotel.js ADDED
@@ -0,0 +1,2981 @@
1
+ import { h as ee, t as Te, s as ae, a as Se, ao as cn, c as J, ae as Me, k, y as I, q as p, D as B, ah as $e, af as fe, v as E, n as e, A as M, F as hn, m as C, z as U, C as it, _ as ue, d as pn, l as N, w as F, Z as q, $ as Y, r as me, o as at, P as st, Q as Ie, j as ft, I as fn, ap as mn, u as gn, aq as vn, H as yn, ar as mt, Y as bn, B as G, a1 as De, V as Fe, as as gt, x as A, T as _n, at as Ne, G as kn, e as Cn, J as En, K as $n, a6 as In, M as xn, L as Tn, N as Sn } from "./SelectField.vue_vue_type_style_index_0_lang-701aecad.js";
2
+ import { _ as Ln, s as Vn, e as vt, C as re, P as Bn, S as Rn, i as wn } from "./index-d080b5a0.js";
3
+ import { r as Pn, _ as zn, u as ot, G as On, B as Dn, M as Fn, R as Nn, C as An, T as Wn, W as Mn, z as Un, x as qn } from "./ThankYou-edbf753b.js";
4
+ import { c as Z, g as Lt } from "./_commonjsHelpers-c5d32002.js";
5
+ import { _ as Hn, a as jn } from "./payment-cce506b8.js";
6
+ import { A as Gn, H as Yn } from "./AvailabilitySkeleton-019ec202.js";
7
+ import { u as yt, _ as Qn } from "./applyGiftCard-dea77ba6.js";
8
+ import { _ as Ue, T as se } from "./TextField-b8f4462a.js";
9
+ import "./ActionField-f3d5b218.js";
10
+ import { E as O } from "./Field-6bfeedce.js";
11
+ var xe = {}, Vt = {}, ye = {}, Le = {}, Kn = Z && Z.__awaiter || function(c, o, t, u) {
12
+ function f(i) {
13
+ return i instanceof t ? i : new t(function(h) {
14
+ h(i);
15
+ });
16
+ }
17
+ return new (t || (t = Promise))(function(i, h) {
18
+ function d(_) {
19
+ try {
20
+ l(u.next(_));
21
+ } catch (v) {
22
+ h(v);
23
+ }
24
+ }
25
+ function s(_) {
26
+ try {
27
+ l(u.throw(_));
28
+ } catch (v) {
29
+ h(v);
30
+ }
31
+ }
32
+ function l(_) {
33
+ _.done ? i(_.value) : f(_.value).then(d, s);
34
+ }
35
+ l((u = u.apply(c, o || [])).next());
36
+ });
37
+ }, Xn = Z && Z.__generator || function(c, o) {
38
+ var t = { label: 0, sent: function() {
39
+ if (i[0] & 1)
40
+ throw i[1];
41
+ return i[1];
42
+ }, trys: [], ops: [] }, u, f, i, h;
43
+ return h = { next: d(0), throw: d(1), return: d(2) }, typeof Symbol == "function" && (h[Symbol.iterator] = function() {
44
+ return this;
45
+ }), h;
46
+ function d(l) {
47
+ return function(_) {
48
+ return s([l, _]);
49
+ };
50
+ }
51
+ function s(l) {
52
+ if (u)
53
+ throw new TypeError("Generator is already executing.");
54
+ for (; t; )
55
+ try {
56
+ if (u = 1, f && (i = l[0] & 2 ? f.return : l[0] ? f.throw || ((i = f.return) && i.call(f), 0) : f.next) && !(i = i.call(f, l[1])).done)
57
+ return i;
58
+ switch (f = 0, i && (l = [l[0] & 2, i.value]), l[0]) {
59
+ case 0:
60
+ case 1:
61
+ i = l;
62
+ break;
63
+ case 4:
64
+ return t.label++, { value: l[1], done: !1 };
65
+ case 5:
66
+ t.label++, f = l[1], l = [0];
67
+ continue;
68
+ case 7:
69
+ l = t.ops.pop(), t.trys.pop();
70
+ continue;
71
+ default:
72
+ if (i = t.trys, !(i = i.length > 0 && i[i.length - 1]) && (l[0] === 6 || l[0] === 2)) {
73
+ t = 0;
74
+ continue;
75
+ }
76
+ if (l[0] === 3 && (!i || l[1] > i[0] && l[1] < i[3])) {
77
+ t.label = l[1];
78
+ break;
79
+ }
80
+ if (l[0] === 6 && t.label < i[1]) {
81
+ t.label = i[1], i = l;
82
+ break;
83
+ }
84
+ if (i && t.label < i[2]) {
85
+ t.label = i[2], t.ops.push(l);
86
+ break;
87
+ }
88
+ i[2] && t.ops.pop(), t.trys.pop();
89
+ continue;
90
+ }
91
+ l = o.call(c, t);
92
+ } catch (_) {
93
+ l = [6, _], f = 0;
94
+ } finally {
95
+ u = i = 0;
96
+ }
97
+ if (l[0] & 5)
98
+ throw l[1];
99
+ return { value: l[0] ? l[1] : void 0, done: !0 };
100
+ }
101
+ };
102
+ Object.defineProperty(Le, "__esModule", { value: !0 });
103
+ Le.ReCaptchaInstance = void 0;
104
+ var Jn = function() {
105
+ function c(o, t, u) {
106
+ this.siteKey = o, this.recaptchaID = t, this.recaptcha = u, this.styleContainer = null;
107
+ }
108
+ return c.prototype.execute = function(o) {
109
+ return Kn(this, void 0, void 0, function() {
110
+ return Xn(this, function(t) {
111
+ return [2, this.recaptcha.enterprise ? this.recaptcha.enterprise.execute(this.recaptchaID, { action: o }) : this.recaptcha.execute(this.recaptchaID, { action: o })];
112
+ });
113
+ });
114
+ }, c.prototype.getSiteKey = function() {
115
+ return this.siteKey;
116
+ }, c.prototype.hideBadge = function() {
117
+ this.styleContainer === null && (this.styleContainer = document.createElement("style"), this.styleContainer.innerHTML = ".grecaptcha-badge{visibility:hidden !important;}", document.head.appendChild(this.styleContainer));
118
+ }, c.prototype.showBadge = function() {
119
+ this.styleContainer !== null && (document.head.removeChild(this.styleContainer), this.styleContainer = null);
120
+ }, c;
121
+ }();
122
+ Le.ReCaptchaInstance = Jn;
123
+ Object.defineProperty(ye, "__esModule", { value: !0 });
124
+ ye.getInstance = ye.load = void 0;
125
+ var Zn = Le, le;
126
+ (function(c) {
127
+ c[c.NOT_LOADED = 0] = "NOT_LOADED", c[c.LOADING = 1] = "LOADING", c[c.LOADED = 2] = "LOADED";
128
+ })(le || (le = {}));
129
+ var Bt = function() {
130
+ function c() {
131
+ }
132
+ return c.load = function(o, t) {
133
+ if (t === void 0 && (t = {}), typeof document > "u")
134
+ return Promise.reject(new Error("This is a library for the browser!"));
135
+ if (c.getLoadingState() === le.LOADED)
136
+ return c.instance.getSiteKey() === o ? Promise.resolve(c.instance) : Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));
137
+ if (c.getLoadingState() === le.LOADING)
138
+ return o !== c.instanceSiteKey ? Promise.reject(new Error("reCAPTCHA already loaded with different site key!")) : new Promise(function(f, i) {
139
+ c.successfulLoadingConsumers.push(function(h) {
140
+ return f(h);
141
+ }), c.errorLoadingRunnable.push(function(h) {
142
+ return i(h);
143
+ });
144
+ });
145
+ c.instanceSiteKey = o, c.setLoadingState(le.LOADING);
146
+ var u = new c();
147
+ return new Promise(function(f, i) {
148
+ u.loadScript(o, t.useRecaptchaNet || !1, t.useEnterprise || !1, t.renderParameters ? t.renderParameters : {}, t.customUrl).then(function() {
149
+ c.setLoadingState(le.LOADED);
150
+ var h = u.doExplicitRender(grecaptcha, o, t.explicitRenderParameters ? t.explicitRenderParameters : {}, t.useEnterprise || !1), d = new Zn.ReCaptchaInstance(o, h, grecaptcha);
151
+ c.successfulLoadingConsumers.forEach(function(s) {
152
+ return s(d);
153
+ }), c.successfulLoadingConsumers = [], t.autoHideBadge && d.hideBadge(), c.instance = d, f(d);
154
+ }).catch(function(h) {
155
+ c.errorLoadingRunnable.forEach(function(d) {
156
+ return d(h);
157
+ }), c.errorLoadingRunnable = [], i(h);
158
+ });
159
+ });
160
+ }, c.getInstance = function() {
161
+ return c.instance;
162
+ }, c.setLoadingState = function(o) {
163
+ c.loadingState = o;
164
+ }, c.getLoadingState = function() {
165
+ return c.loadingState === null ? le.NOT_LOADED : c.loadingState;
166
+ }, c.prototype.loadScript = function(o, t, u, f, i) {
167
+ var h = this;
168
+ t === void 0 && (t = !1), u === void 0 && (u = !1), f === void 0 && (f = {}), i === void 0 && (i = "");
169
+ var d = document.createElement("script");
170
+ d.setAttribute("recaptcha-v3-script", "");
171
+ var s = "https://www.google.com/recaptcha/api.js";
172
+ t && (u ? s = "https://recaptcha.net/recaptcha/enterprise.js" : s = "https://recaptcha.net/recaptcha/api.js"), u && (s = "https://www.google.com/recaptcha/enterprise.js"), i && (s = i), f.render && (f.render = void 0);
173
+ var l = this.buildQueryString(f);
174
+ return d.src = s + "?render=explicit" + l, new Promise(function(_, v) {
175
+ d.addEventListener("load", h.waitForScriptToLoad(function() {
176
+ _(d);
177
+ }, u), !1), d.onerror = function($) {
178
+ c.setLoadingState(le.NOT_LOADED), v($);
179
+ }, document.head.appendChild(d);
180
+ });
181
+ }, c.prototype.buildQueryString = function(o) {
182
+ var t = Object.keys(o);
183
+ return t.length < 1 ? "" : "&" + Object.keys(o).filter(function(u) {
184
+ return !!o[u];
185
+ }).map(function(u) {
186
+ return u + "=" + o[u];
187
+ }).join("&");
188
+ }, c.prototype.waitForScriptToLoad = function(o, t) {
189
+ var u = this;
190
+ return function() {
191
+ window.grecaptcha === void 0 ? setTimeout(function() {
192
+ u.waitForScriptToLoad(o, t);
193
+ }, c.SCRIPT_LOAD_DELAY) : t ? window.grecaptcha.enterprise.ready(function() {
194
+ o();
195
+ }) : window.grecaptcha.ready(function() {
196
+ o();
197
+ });
198
+ };
199
+ }, c.prototype.doExplicitRender = function(o, t, u, f) {
200
+ var i = {
201
+ sitekey: t,
202
+ badge: u.badge,
203
+ size: u.size,
204
+ tabindex: u.tabindex
205
+ };
206
+ return u.container ? f ? o.enterprise.render(u.container, i) : o.render(u.container, i) : f ? o.enterprise.render(i) : o.render(i);
207
+ }, c.loadingState = null, c.instance = null, c.instanceSiteKey = null, c.successfulLoadingConsumers = [], c.errorLoadingRunnable = [], c.SCRIPT_LOAD_DELAY = 25, c;
208
+ }();
209
+ ye.load = Bt.load;
210
+ ye.getInstance = Bt.getInstance;
211
+ (function(c) {
212
+ Object.defineProperty(c, "__esModule", { value: !0 }), c.ReCaptchaInstance = c.getInstance = c.load = void 0;
213
+ var o = ye;
214
+ Object.defineProperty(c, "load", { enumerable: !0, get: function() {
215
+ return o.load;
216
+ } }), Object.defineProperty(c, "getInstance", { enumerable: !0, get: function() {
217
+ return o.getInstance;
218
+ } });
219
+ var t = Le;
220
+ Object.defineProperty(c, "ReCaptchaInstance", { enumerable: !0, get: function() {
221
+ return t.ReCaptchaInstance;
222
+ } });
223
+ })(Vt);
224
+ var Rt = Z && Z.__awaiter || function(c, o, t, u) {
225
+ function f(i) {
226
+ return i instanceof t ? i : new t(function(h) {
227
+ h(i);
228
+ });
229
+ }
230
+ return new (t || (t = Promise))(function(i, h) {
231
+ function d(_) {
232
+ try {
233
+ l(u.next(_));
234
+ } catch (v) {
235
+ h(v);
236
+ }
237
+ }
238
+ function s(_) {
239
+ try {
240
+ l(u.throw(_));
241
+ } catch (v) {
242
+ h(v);
243
+ }
244
+ }
245
+ function l(_) {
246
+ _.done ? i(_.value) : f(_.value).then(d, s);
247
+ }
248
+ l((u = u.apply(c, o || [])).next());
249
+ });
250
+ }, wt = Z && Z.__generator || function(c, o) {
251
+ var t = { label: 0, sent: function() {
252
+ if (i[0] & 1)
253
+ throw i[1];
254
+ return i[1];
255
+ }, trys: [], ops: [] }, u, f, i, h;
256
+ return h = { next: d(0), throw: d(1), return: d(2) }, typeof Symbol == "function" && (h[Symbol.iterator] = function() {
257
+ return this;
258
+ }), h;
259
+ function d(l) {
260
+ return function(_) {
261
+ return s([l, _]);
262
+ };
263
+ }
264
+ function s(l) {
265
+ if (u)
266
+ throw new TypeError("Generator is already executing.");
267
+ for (; t; )
268
+ try {
269
+ if (u = 1, f && (i = l[0] & 2 ? f.return : l[0] ? f.throw || ((i = f.return) && i.call(f), 0) : f.next) && !(i = i.call(f, l[1])).done)
270
+ return i;
271
+ switch (f = 0, i && (l = [l[0] & 2, i.value]), l[0]) {
272
+ case 0:
273
+ case 1:
274
+ i = l;
275
+ break;
276
+ case 4:
277
+ return t.label++, { value: l[1], done: !1 };
278
+ case 5:
279
+ t.label++, f = l[1], l = [0];
280
+ continue;
281
+ case 7:
282
+ l = t.ops.pop(), t.trys.pop();
283
+ continue;
284
+ default:
285
+ if (i = t.trys, !(i = i.length > 0 && i[i.length - 1]) && (l[0] === 6 || l[0] === 2)) {
286
+ t = 0;
287
+ continue;
288
+ }
289
+ if (l[0] === 3 && (!i || l[1] > i[0] && l[1] < i[3])) {
290
+ t.label = l[1];
291
+ break;
292
+ }
293
+ if (l[0] === 6 && t.label < i[1]) {
294
+ t.label = i[1], i = l;
295
+ break;
296
+ }
297
+ if (i && t.label < i[2]) {
298
+ t.label = i[2], t.ops.push(l);
299
+ break;
300
+ }
301
+ i[2] && t.ops.pop(), t.trys.pop();
302
+ continue;
303
+ }
304
+ l = o.call(c, t);
305
+ } catch (_) {
306
+ l = [6, _], f = 0;
307
+ } finally {
308
+ u = i = 0;
309
+ }
310
+ if (l[0] & 5)
311
+ throw l[1];
312
+ return { value: l[0] ? l[1] : void 0, done: !0 };
313
+ }
314
+ };
315
+ Object.defineProperty(xe, "__esModule", { value: !0 });
316
+ var Pt = xe.useReCaptcha = xe.VueReCaptcha = void 0, ei = Vt, rt = Pn, zt = Symbol("VueReCaptchaInjectKey"), ge = {
317
+ loadedWaiters: [],
318
+ error: null
319
+ };
320
+ xe.VueReCaptcha = {
321
+ install: function(c, o) {
322
+ var t = rt.ref(!1), u = rt.ref(void 0);
323
+ c.config.globalProperties.$recaptchaLoaded = bt(t), ni(o).then(function(f) {
324
+ t.value = !0, u.value = f, c.config.globalProperties.$recaptcha = _t(u), c.config.globalProperties.$recaptchaInstance = u, ge.loadedWaiters.forEach(function(i) {
325
+ return i.resolve(!0);
326
+ });
327
+ }).catch(function(f) {
328
+ ge.error = f, ge.loadedWaiters.forEach(function(i) {
329
+ return i.reject(f);
330
+ });
331
+ }), c.provide(zt, {
332
+ instance: u,
333
+ isLoaded: t,
334
+ executeRecaptcha: _t(u),
335
+ recaptchaLoaded: bt(t)
336
+ });
337
+ }
338
+ };
339
+ function ti() {
340
+ return rt.inject(zt);
341
+ }
342
+ Pt = xe.useReCaptcha = ti;
343
+ function ni(c) {
344
+ return Rt(this, void 0, void 0, function() {
345
+ return wt(this, function(o) {
346
+ switch (o.label) {
347
+ case 0:
348
+ return [4, ei.load(c.siteKey, c.loaderOptions)];
349
+ case 1:
350
+ return [2, o.sent()];
351
+ }
352
+ });
353
+ });
354
+ }
355
+ function bt(c) {
356
+ return function() {
357
+ return new Promise(function(o, t) {
358
+ if (ge.error !== null)
359
+ return t(ge.error);
360
+ if (c.value)
361
+ return o(!0);
362
+ ge.loadedWaiters.push({ resolve: o, reject: t });
363
+ });
364
+ };
365
+ }
366
+ function _t(c) {
367
+ var o = this;
368
+ return function(t) {
369
+ return Rt(o, void 0, void 0, function() {
370
+ var u;
371
+ return wt(this, function(f) {
372
+ switch (f.label) {
373
+ case 0:
374
+ return [4, (u = c.value) === null || u === void 0 ? void 0 : u.execute(t)];
375
+ case 1:
376
+ return [2, f.sent()];
377
+ }
378
+ });
379
+ });
380
+ };
381
+ }
382
+ const ii = {
383
+ id: "fresh-booking-reservation-layout",
384
+ "sticky-container": ""
385
+ }, oi = { id: "fresh-booking-reservation-layout-content" }, ri = { id: "fresh-booking-reservation-layout-form" }, ai = {
386
+ id: "fresh-booking-reservation-layout-remarks",
387
+ "sticky-side": "bottom"
388
+ }, si = { id: "fresh-booking-reservation-layout-aside" }, li = { class: "fresh-booking-panel" }, ui = { id: "fresh-booking-reservation-layout-aside-resume" }, di = { key: 0 }, ci = { key: 1 }, hi = { key: 2 }, pi = { key: 3 }, fi = {
389
+ key: 1,
390
+ class: "fresh-booking-panel"
391
+ }, mi = { id: "fresh-booking-reservation-layout-aside-addons" }, gi = ["innerHTML"], vi = {
392
+ key: 0,
393
+ id: "fresh-booking-reservation-layout-recaptcha"
394
+ }, yi = /* @__PURE__ */ ee({
395
+ __name: "ReservationFormTest",
396
+ props: {
397
+ isFilled: { type: Boolean },
398
+ isLoading: { type: Boolean, default: !1 },
399
+ currency: {},
400
+ totalPrice: {},
401
+ basePrice: { default: 0 },
402
+ weekendFee: { default: 0 },
403
+ roomUpgrade: { default: 0 },
404
+ buttonIconColor: {},
405
+ notice: {},
406
+ styling: {}
407
+ },
408
+ emits: ["update:remark", "next", "prev"],
409
+ setup(c, { emit: o }) {
410
+ const t = c, { t: u } = Te(), {
411
+ disableGiftCardVoucher: f,
412
+ isRecaptchaEnabled: i
413
+ } = ae(Se()), {
414
+ amount: h,
415
+ voucher: d
416
+ } = ae(yt()), {
417
+ apply: s,
418
+ reset: l
419
+ } = yt(), _ = cn(), v = () => o("next"), $ = J(() => t.basePrice - t.weekendFee - t.roomUpgrade);
420
+ return (r, b) => {
421
+ const y = Me("sticky");
422
+ return k(), I("div", ii, [
423
+ p("div", oi, [
424
+ p("div", ri, [
425
+ B("", !0),
426
+ p("form", null, [
427
+ $e(r.$slots, "form")
428
+ ])
429
+ ]),
430
+ fe((k(), I("div", ai, [
431
+ $e(r.$slots, "navigation")
432
+ ])), [
433
+ [y]
434
+ ]),
435
+ p("aside", si, [
436
+ p("div", li, [
437
+ B("", !0),
438
+ p("ul", ui, [
439
+ $e(r.$slots, "resume"),
440
+ $.value > 0 ? (k(), I("li", di, [
441
+ p("span", null, E(e(u)("booking.availability.basePrice")), 1),
442
+ p("b", null, E(e(M)($.value, r.currency)), 1)
443
+ ])) : B("", !0),
444
+ r.weekendFee > 0 ? (k(), I("li", ci, [
445
+ p("span", null, E(e(u)("general.weekendFee")), 1),
446
+ p("b", null, E(e(M)(r.weekendFee, r.currency)), 1)
447
+ ])) : B("", !0),
448
+ r.roomUpgrade > 0 ? (k(), I("li", hi, [
449
+ p("span", null, E(e(u)("general.roomUpgrade")), 1),
450
+ p("b", null, E(e(M)(r.roomUpgrade, r.currency)), 1)
451
+ ])) : B("", !0),
452
+ $e(r.$slots, "expenses"),
453
+ e(h) !== 0 ? (k(), I("li", pi, [
454
+ p("span", null, [
455
+ p("span", null, E(e(u)("booking.reservation.giftCardDiscount")), 1),
456
+ p("a", {
457
+ class: "resume-item-remove",
458
+ onClick: b[0] || (b[0] = hn((m) => e(l)(), ["prevent"]))
459
+ }, [
460
+ C(U, {
461
+ icon: "times",
462
+ type: "fas",
463
+ "icon-color": "#ff0000"
464
+ })
465
+ ])
466
+ ]),
467
+ p("b", null, [
468
+ p("span", null, E(e(M)(-e(h), r.currency)), 1)
469
+ ])
470
+ ])) : B("", !0),
471
+ p("li", null, [
472
+ p("span", null, E(e(u)("booking.reservation.totalPrice")), 1),
473
+ p("b", null, [
474
+ p("u", null, E(e(M)(r.totalPrice, r.currency)), 1)
475
+ ])
476
+ ])
477
+ ]),
478
+ C(it, {
479
+ label: e(u)("booking.availability.nextButton"),
480
+ styling: "success",
481
+ disabled: !1,
482
+ "full-width": "",
483
+ onClickEvent: v
484
+ }, null, 8, ["label"])
485
+ ]),
486
+ B("", !0),
487
+ e(_).addons ? (k(), I("div", fi, [
488
+ p("h5", null, [
489
+ p("span", null, E(e(u)("booking.reservation.addons")), 1)
490
+ ]),
491
+ p("ul", mi, [
492
+ $e(r.$slots, "addons")
493
+ ])
494
+ ])) : B("", !0),
495
+ r.notice ? (k(), I("p", {
496
+ key: 2,
497
+ innerHTML: r.notice,
498
+ class: "fresh-booking-wysiwyg"
499
+ }, null, 8, gi)) : B("", !0)
500
+ ]),
501
+ e(i) ? (k(), I("div", vi, [
502
+ C(Ln)
503
+ ])) : B("", !0)
504
+ ])
505
+ ]);
506
+ };
507
+ }
508
+ });
509
+ const bi = /* @__PURE__ */ ue(yi, [["__scopeId", "data-v-6d97c483"]]), _i = pn("tracking", () => {
510
+ const {
511
+ enableTracking: c,
512
+ googleApiKey: o
513
+ } = ae(Se());
514
+ function t() {
515
+ console.log("Tracking"), console.log(o), Vn({
516
+ config: {
517
+ id: o.value,
518
+ params: {
519
+ send_page_view: !1
520
+ }
521
+ },
522
+ enabled: c.value
523
+ });
524
+ }
525
+ function u({ id: s, name: l, value: _, label: v, category: $ = "general" }) {
526
+ return {
527
+ items: [{
528
+ id: s,
529
+ name: l
530
+ }],
531
+ event_label: v,
532
+ event_category: $,
533
+ value: _
534
+ };
535
+ }
536
+ function f(s, l) {
537
+ vt(s, u(l));
538
+ }
539
+ function i(s) {
540
+ f("add_to_cart", {
541
+ ...s,
542
+ label: "Added to cart",
543
+ category: "ecommerce"
544
+ });
545
+ }
546
+ function h(s) {
547
+ f("remove_from_cart", {
548
+ ...s,
549
+ label: "Removed to cart",
550
+ category: "ecommerce"
551
+ });
552
+ }
553
+ function d(s) {
554
+ vt("view_item", {
555
+ items: [{
556
+ name: s
557
+ //: getRoomName(props.listingId)
558
+ }]
559
+ });
560
+ }
561
+ return {
562
+ setup: t,
563
+ viewItem: d,
564
+ addToCart: i,
565
+ removeFromCart: h
566
+ };
567
+ }), ki = { style: { display: "flex", "align-items": "baseline" } }, Ci = { key: 0 }, Ei = { style: { display: "flex", "align-items": "baseline" } }, $i = { key: 0 };
568
+ const Ii = /* @__PURE__ */ ee({
569
+ __name: "RoomConfigField",
570
+ props: {
571
+ modelValue: {},
572
+ options: {},
573
+ required: { type: Boolean, default: !1 },
574
+ readonly: { type: Boolean, default: !1 },
575
+ label: {}
576
+ },
577
+ emits: ["update:modelValue"],
578
+ setup(c, { emit: o }) {
579
+ const t = c, { currency: u } = ae(Se());
580
+ function f(h) {
581
+ o("update:modelValue", h);
582
+ }
583
+ const i = J({
584
+ get: () => t.modelValue,
585
+ set: (h) => f(h)
586
+ });
587
+ return (h, d) => (k(), N(Ue, {
588
+ modelValue: i.value,
589
+ "onUpdate:modelValue": d[0] || (d[0] = (s) => i.value = s),
590
+ label: h.label,
591
+ placeholder: "Select guest configuration",
592
+ labelKey: "label",
593
+ valueKey: "value",
594
+ options: h.options,
595
+ required: h.required
596
+ }, {
597
+ option: F(({ data: s }) => [
598
+ p("div", ki, [
599
+ p("div", null, [
600
+ C(U, {
601
+ icon: "male",
602
+ type: "fas"
603
+ }),
604
+ p("span", null, E(`${s.adults}`), 1)
605
+ ]),
606
+ s.children > 0 ? (k(), I("div", Ci, [
607
+ C(U, {
608
+ icon: "child",
609
+ type: "fas"
610
+ }),
611
+ p("span", null, E(`${s.children}`), 1)
612
+ ])) : B("", !0),
613
+ p("div", null, E(`(${e(M)(s.price, e(u))})`), 1)
614
+ ])
615
+ ]),
616
+ "selected-option": F(({ data: s }) => [
617
+ p("div", Ei, [
618
+ p("div", null, [
619
+ C(U, {
620
+ icon: "male",
621
+ type: "fas"
622
+ }),
623
+ p("span", null, E(`${s.adults}`), 1)
624
+ ]),
625
+ s.children > 0 ? (k(), I("div", $i, [
626
+ C(U, {
627
+ icon: "child",
628
+ type: "fas"
629
+ }),
630
+ p("span", null, E(`${s.children}`), 1)
631
+ ])) : B("", !0),
632
+ B("", !0)
633
+ ])
634
+ ]),
635
+ _: 1
636
+ }, 8, ["modelValue", "label", "options", "required"]));
637
+ }
638
+ }), xi = {
639
+ key: 0,
640
+ class: "fresh-booking-modal-facilities"
641
+ }, Ti = {
642
+ class: "fresh-booking-modal-facilities-masonry",
643
+ "transition-duration": "0s",
644
+ "destroy-delay": 0,
645
+ "percent-position": !0,
646
+ "column-width": ".grid-sizer",
647
+ "item-selector": ".fresh-booking-modal-facility"
648
+ }, Si = { class: "grid-sizer" }, Li = /* @__PURE__ */ ee({
649
+ __name: "Info",
650
+ props: {
651
+ title: {},
652
+ description: {},
653
+ facilities: {},
654
+ styling: {}
655
+ },
656
+ setup(c) {
657
+ return (o, t) => {
658
+ const u = Me("masonry-tile"), f = Me("masonry");
659
+ return k(), N(zn, {
660
+ title: o.title,
661
+ description: o.description,
662
+ styling: o.styling
663
+ }, {
664
+ default: F(() => [
665
+ o.facilities && o.facilities.length !== 0 ? (k(), I("div", xi, [
666
+ fe((k(), I("ul", Ti, [
667
+ fe(p("div", Si, null, 512), [
668
+ [u]
669
+ ]),
670
+ (k(!0), I(q, null, Y(o.facilities, ({ name: i, subFacilities: h }, d) => fe((k(), I("li", {
671
+ key: d,
672
+ class: "fresh-booking-modal-facility"
673
+ }, [
674
+ p("h6", null, [
675
+ p("span", null, E(i), 1)
676
+ ]),
677
+ p("ul", null, [
678
+ (k(!0), I(q, null, Y(h, ({ name: s }, l) => (k(), I("li", { key: l }, E(s), 1))), 128))
679
+ ])
680
+ ])), [
681
+ [u]
682
+ ])), 128))
683
+ ])), [
684
+ [f]
685
+ ])
686
+ ])) : B("", !0)
687
+ ]),
688
+ _: 1
689
+ }, 8, ["title", "description", "styling"]);
690
+ };
691
+ }
692
+ });
693
+ const Vi = /* @__PURE__ */ ue(Li, [["__scopeId", "data-v-569aadce"]]), Bi = { class: "freshbooking-hotel-room" }, Ri = {
694
+ key: 0,
695
+ class: "booking-availability-listing-action-selective"
696
+ }, wi = { class: "fresh-booking-listing-config-header" }, Pi = { class: "fresh-booking-inline-spacing" }, zi = { class: "fresh-booking-inline-spacing" }, Oi = { class: "fresh-booking-listing-units-header" }, Di = { class: "fresh-booking-inline-spacing" }, Fi = {
697
+ key: 0,
698
+ class: "fresh-booking-inline-spacing"
699
+ };
700
+ const Ni = { class: "fresh-booking-listing-config-body" }, Ai = { class: "fresh-booking-listing-units-body" };
701
+ const Wi = /* @__PURE__ */ ee({
702
+ __name: "Test",
703
+ props: {
704
+ room: {},
705
+ layout: {},
706
+ styling: {}
707
+ },
708
+ setup(c) {
709
+ const o = c, { t } = Te(), { hideAvailableRoomAmount: u, currency: f } = ae(Se()), { finalSelection: i } = ae(ot()), { viewItem: h } = _i(), d = me({}), s = me({}), l = me(void 0), _ = (x) => o.room.rates.find((R) => R.id === x).occupantRates.find(
710
+ (R) => R.index === s.value[R.ratePlanID]
711
+ ), v = J(() => o.room.rates.map((x) => ({
712
+ label: x.name,
713
+ value: x.id
714
+ }))), $ = J(() => o.room.rates.reduce(
715
+ (x, R) => x < R.rackRate ? x : R.rackRate,
716
+ 1 / 0
717
+ )), r = J(() => o.room.rates.every((x) => x.isBreakfastIncluded === !0)), b = (x) => _(x) ? _(x).totalPrice * d.value[_(x).ratePlanID] : null, y = (x) => _(x) ? _(x).rooms : null, m = (x) => o.room.rates.length > 0 ? o.room.rates.find((R) => R.id === x).occupantRates.map((R) => ({
718
+ value: R.index,
719
+ price: R.totalPrice,
720
+ adults: R.adultsCount,
721
+ children: R.childrenCount,
722
+ hasBreakfast: R.hasBreakfast
723
+ })) : [], n = J(() => o.room.rates.length > 1), a = J(() => {
724
+ const x = {};
725
+ for (const R in s.value)
726
+ x[R] = {
727
+ units: d.value[R],
728
+ config: s.value[R],
729
+ addons: {}
730
+ };
731
+ return x;
732
+ }), { open: g, close: T } = On({
733
+ component: Vi,
734
+ attrs: {
735
+ title: o.room.title,
736
+ description: o.room.description,
737
+ facilities: o.room.facilities,
738
+ styling: o.styling,
739
+ onConfirm() {
740
+ T();
741
+ }
742
+ }
743
+ });
744
+ function L() {
745
+ g(), h(o.room.title);
746
+ }
747
+ function w() {
748
+ n.value || (l.value = o.room.rates[0].id, s.value = {
749
+ [l.value]: o.room.rates[0].occupantRateIndex
750
+ });
751
+ }
752
+ return at(() => {
753
+ w();
754
+ }), st(a, (x, R) => {
755
+ console.log(x, R), i.value[o.room.id] = a;
756
+ }), (x, R) => (k(), N(Dn, {
757
+ "listing-id": x.room.id,
758
+ gallery: x.room.images,
759
+ name: x.room.title,
760
+ description: x.room.description,
761
+ layout: x.layout,
762
+ styling: x.styling,
763
+ facilities: x.room.facilities,
764
+ "prices-from": $.value,
765
+ "includes-breakfast": r.value,
766
+ currency: e(f),
767
+ callback: L,
768
+ style: {
769
+ "--inputBackground": "transparent"
770
+ }
771
+ }, {
772
+ action: F(() => [
773
+ p("div", Bi, [
774
+ n.value ? (k(), N(Ue, {
775
+ key: 0,
776
+ modelValue: l.value,
777
+ "onUpdate:modelValue": R[0] || (R[0] = (D) => l.value = D),
778
+ label: "Room variant",
779
+ placeholder: "Choose a room variant",
780
+ options: v.value
781
+ }, null, 8, ["modelValue", "options"])) : B("", !0),
782
+ p("div", null, [
783
+ (k(!0), I(q, null, Y(x.room.rates, ({
784
+ id: D,
785
+ maximumAdults: K
786
+ }) => (k(), I("div", { key: D }, [
787
+ l.value === D ? (k(), I("div", Ri, [
788
+ p("div", wi, [
789
+ p("b", Pi, [
790
+ p("span", null, E(e(t)("availability.adults")), 1),
791
+ p("span", zi, [
792
+ C(U, {
793
+ icon: "male",
794
+ type: "fas",
795
+ "icon-color": x.styling.headerColor
796
+ }, null, 8, ["icon-color"]),
797
+ p("span", null, E(`Max: ${K}`), 1)
798
+ ])
799
+ ])
800
+ ]),
801
+ p("div", Oi, [
802
+ p("b", Di, [
803
+ p("span", null, E(e(t)("booking.availability.units")), 1),
804
+ e(u) ? B("", !0) : (k(), I("span", Fi, [
805
+ C(U, {
806
+ icon: "house",
807
+ type: "fas",
808
+ "icon-color": x.styling.headerColor
809
+ }, null, 8, ["icon-color"]),
810
+ p("span", null, E(y(D)), 1)
811
+ ]))
812
+ ])
813
+ ]),
814
+ B("", !0),
815
+ p("ul", Ni, [
816
+ (k(), N(Ii, {
817
+ key: 0,
818
+ modelValue: s.value[D],
819
+ "onUpdate:modelValue": (W) => s.value[D] = W,
820
+ options: m(D)
821
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "options"]))
822
+ ]),
823
+ p("ul", Ai, [
824
+ C(Qn, {
825
+ modelValue: d.value[D],
826
+ "onUpdate:modelValue": (W) => d.value[D] = W,
827
+ minValue: 0
828
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
829
+ ]),
830
+ B("", !0)
831
+ ])) : B("", !0)
832
+ ]))), 128))
833
+ ])
834
+ ])
835
+ ]),
836
+ _: 1
837
+ }, 8, ["listing-id", "gallery", "name", "description", "layout", "styling", "facilities", "prices-from", "includes-breakfast", "currency"]));
838
+ }
839
+ });
840
+ const Mi = /* @__PURE__ */ ue(Wi, [["__scopeId", "data-v-6f314cb2"]]), kt = /* @__PURE__ */ ee({
841
+ __name: "TimeField",
842
+ props: {
843
+ modelValue: {},
844
+ label: {},
845
+ id: {},
846
+ name: {},
847
+ placeholder: {},
848
+ icon: {},
849
+ iconColor: {},
850
+ iconType: {},
851
+ primaryColor: {},
852
+ secondaryColor: {},
853
+ weekendColor: {},
854
+ highlightedColor: {},
855
+ required: { type: Boolean },
856
+ readonly: { type: Boolean },
857
+ disabled: { type: Boolean },
858
+ inline: { type: Boolean },
859
+ range: { type: Boolean },
860
+ enableTimePicker: { type: Boolean },
861
+ inputStyle: {}
862
+ },
863
+ emits: ["update:modelValue"],
864
+ setup(c, { emit: o }) {
865
+ const t = c;
866
+ function u(i) {
867
+ o("update:modelValue", i);
868
+ }
869
+ const f = me(t.modelValue);
870
+ return st(f, (i) => {
871
+ u(i);
872
+ }), (i, h) => (k(), N(Hn, {
873
+ modelValue: f.value,
874
+ "onUpdate:modelValue": h[0] || (h[0] = (d) => f.value = d),
875
+ type: "time",
876
+ label: i.label,
877
+ id: i.id,
878
+ name: i.name,
879
+ icon: i.icon,
880
+ "icon-type": i.iconType,
881
+ "icon-color": i.iconColor,
882
+ "auto-apply": !0,
883
+ required: i.required,
884
+ readonly: i.readonly
885
+ }, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
886
+ }
887
+ });
888
+ const Ui = { style: { display: "flex", "align-items": "baseline" } }, qi = /* @__PURE__ */ ee({
889
+ __name: "CountryField",
890
+ props: {
891
+ modelValue: {},
892
+ options: {},
893
+ required: { type: Boolean, default: !1 },
894
+ readonly: { type: Boolean, default: !1 },
895
+ label: {},
896
+ placeholder: {}
897
+ },
898
+ emits: ["update:modelValue"],
899
+ setup(c, { emit: o }) {
900
+ const t = c, { t: u } = Te();
901
+ function f(h) {
902
+ o("update:modelValue", h);
903
+ }
904
+ const i = J({
905
+ get: () => t.modelValue,
906
+ set: (h) => f(h)
907
+ });
908
+ return (h, d) => (k(), N(Ue, {
909
+ modelValue: i.value,
910
+ "onUpdate:modelValue": d[0] || (d[0] = (s) => i.value = s),
911
+ label: h.label,
912
+ placeholder: e(u)("booking.reservation.countryPlaceholder"),
913
+ labelKey: "name",
914
+ valueKey: "id",
915
+ options: h.options,
916
+ required: h.required
917
+ }, {
918
+ option: F(({ data: s }) => [
919
+ p("i", {
920
+ class: Ie(["konnectio-flag-icon", s.iso])
921
+ }, null, 2),
922
+ p("span", null, E(s.name), 1)
923
+ ]),
924
+ "selected-option": F(({ data: s }) => [
925
+ p("div", Ui, [
926
+ p("i", {
927
+ class: Ie(["konnectio-flag-icon", s.iso])
928
+ }, null, 2),
929
+ p("span", null, E(s.name), 1)
930
+ ])
931
+ ]),
932
+ _: 1
933
+ }, 8, ["modelValue", "label", "placeholder", "options", "required"]));
934
+ }
935
+ });
936
+ const Hi = /* @__PURE__ */ ue(qi, [["__scopeId", "data-v-1462612d"]]), ji = /* @__PURE__ */ ee({
937
+ __name: "NameField",
938
+ props: {
939
+ modelValue: {},
940
+ title: {},
941
+ label: {},
942
+ id: {},
943
+ placeholder: {},
944
+ icon: {},
945
+ iconColor: {},
946
+ iconType: { default: "fal" },
947
+ required: { type: Boolean, default: !1 },
948
+ readonly: { type: Boolean, default: !1 },
949
+ type: { default: "text" },
950
+ autocomplete: { type: Boolean, default: !1 },
951
+ disabled: { type: Boolean, default: !1 },
952
+ limit: { default: 1 / 0 },
953
+ inputStyle: {},
954
+ excludeTitle: { type: Boolean, default: !1 }
955
+ },
956
+ emits: ["update:modelValue", "update:title"],
957
+ setup(c, { emit: o }) {
958
+ const t = c, u = t.id || ft(), f = me(""), i = me(2);
959
+ function h() {
960
+ o("update:modelValue", f.value);
961
+ }
962
+ st(i, (s) => {
963
+ o("update:title", s);
964
+ });
965
+ const { t: d } = Te();
966
+ return at(() => {
967
+ t.modelValue && (f.value = t.modelValue), t.title && (i.value = t.title);
968
+ }), (s, l) => (k(), N(fn, {
969
+ label: s.label,
970
+ id: e(u),
971
+ required: s.required,
972
+ type: "fresh-booking-name-field",
973
+ readonly: s.readonly,
974
+ limit: s.limit
975
+ }, {
976
+ default: F(() => [
977
+ p("div", {
978
+ class: Ie([
979
+ "fresh-booking-name-input",
980
+ { "no-title": s.excludeTitle }
981
+ ])
982
+ }, [
983
+ s.excludeTitle ? B("", !0) : (k(), N(Ue, {
984
+ key: 0,
985
+ modelValue: i.value,
986
+ "onUpdate:modelValue": l[0] || (l[0] = (_) => i.value = _),
987
+ id: e(ft)(),
988
+ icon: s.icon,
989
+ "icon-color": s.iconColor,
990
+ "icon-type": s.iconType,
991
+ options: [
992
+ {
993
+ label: e(d)("booking.reservation.noNameTitle"),
994
+ value: 1
995
+ },
996
+ {
997
+ label: e(d)("booking.reservation.nameTitleMr"),
998
+ value: 2
999
+ },
1000
+ {
1001
+ label: e(d)("booking.reservation.nameTitleMs"),
1002
+ value: 3
1003
+ },
1004
+ {
1005
+ label: e(d)("booking.reservation.nameTitleMrs"),
1006
+ value: 4
1007
+ },
1008
+ {
1009
+ label: e(d)("booking.reservation.nameTitleDr"),
1010
+ value: 5
1011
+ }
1012
+ ],
1013
+ readonly: s.readonly,
1014
+ "hide-button": "",
1015
+ "input-style": s.inputStyle
1016
+ }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
1017
+ C(se, {
1018
+ modelValue: f.value,
1019
+ "onUpdate:modelValue": l[1] || (l[1] = (_) => f.value = _),
1020
+ type: "text",
1021
+ name: "name",
1022
+ autocomplete: "name",
1023
+ id: e(u),
1024
+ icon: s.excludeTitle ? s.icon : void 0,
1025
+ "icon-color": s.iconColor,
1026
+ "icon-type": s.iconType,
1027
+ placeholder: s.placeholder,
1028
+ required: s.required,
1029
+ readonly: s.readonly,
1030
+ limit: s.limit,
1031
+ onInput: l[2] || (l[2] = (_) => h()),
1032
+ "input-style": s.inputStyle
1033
+ }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
1034
+ ], 2)
1035
+ ]),
1036
+ _: 1
1037
+ }, 8, ["label", "id", "required", "readonly", "limit"]));
1038
+ }
1039
+ });
1040
+ const Gi = /* @__PURE__ */ ue(ji, [["__scopeId", "data-v-5599e141"]]), Yi = { class: "hotel-listing" }, Qi = { class: "hotel-listing-content-gallery" }, Ki = { class: "hotel-listing-content-thumbs" }, Xi = { class: "hotel-listing-content" }, Ji = { class: "hotel-listing-content-header" }, Zi = { class: "hotel-listing-content-title" }, eo = { class: "hotel-listing-content-body" }, to = { class: "hotel-listing-content-facilities" }, no = /* @__PURE__ */ ee({
1041
+ __name: "Listing",
1042
+ setup(c) {
1043
+ return (o, t) => (k(), I("div", Yi, [
1044
+ p("div", Qi, [
1045
+ C(O, {
1046
+ width: "280px",
1047
+ height: "153px"
1048
+ }),
1049
+ p("div", Ki, [
1050
+ (k(), I(q, null, Y(3, (u) => C(O, {
1051
+ key: u,
1052
+ width: "84px",
1053
+ height: "44px"
1054
+ })), 64))
1055
+ ])
1056
+ ]),
1057
+ p("div", Xi, [
1058
+ p("div", Ji, [
1059
+ p("div", Zi, [
1060
+ C(O, {
1061
+ height: "30px",
1062
+ width: "60%"
1063
+ }),
1064
+ C(O, {
1065
+ height: "30px",
1066
+ width: "30px",
1067
+ "border-radius": "100%"
1068
+ })
1069
+ ]),
1070
+ C(O, {
1071
+ height: "15px",
1072
+ width: "25%"
1073
+ })
1074
+ ]),
1075
+ p("div", eo, [
1076
+ C(O, { height: "15px" }),
1077
+ C(O, { height: "15px" }),
1078
+ C(O, { height: "15px" }),
1079
+ C(O, { height: "15px" }),
1080
+ C(O, {
1081
+ height: "15px",
1082
+ width: "90%"
1083
+ })
1084
+ ]),
1085
+ p("div", to, [
1086
+ (k(), I(q, null, Y(5, (u) => C(O, {
1087
+ key: u,
1088
+ height: "25px",
1089
+ width: "25px",
1090
+ "border-radius": "6px"
1091
+ })), 64))
1092
+ ])
1093
+ ])
1094
+ ]));
1095
+ }
1096
+ });
1097
+ const ve = /* @__PURE__ */ ue(no, [["__scopeId", "data-v-5c132d7f"]]), io = { class: "hotel-skeleton" }, oo = { class: "hotel-skeleton-content" }, ro = { class: "hotel-skeleton-sidebar" }, ao = { class: "fresh-booking-panel hotel-skeleton-sidebar-inner" }, so = { class: "hotel-skeleton-sidebar-group" }, lo = { class: "hotel-skeleton-sidebar-group" }, uo = /* @__PURE__ */ ee({
1098
+ __name: "HotelSkeleton",
1099
+ setup(c) {
1100
+ return (o, t) => (k(), I("div", io, [
1101
+ p("div", oo, [
1102
+ C(Gn),
1103
+ C(ve),
1104
+ C(ve),
1105
+ C(ve)
1106
+ ]),
1107
+ p("div", ro, [
1108
+ p("div", ao, [
1109
+ p("div", so, [
1110
+ C(O, { height: "20px" }),
1111
+ C(O, { height: "15px" }),
1112
+ C(O, { height: "15px" }),
1113
+ C(O, { height: "15px" })
1114
+ ]),
1115
+ p("div", lo, [
1116
+ C(O, { height: "20px" }),
1117
+ C(O, { height: "15px" }),
1118
+ C(O, { height: "15px" }),
1119
+ C(O, { height: "15px" })
1120
+ ]),
1121
+ C(O, { height: "44px" })
1122
+ ])
1123
+ ])
1124
+ ]));
1125
+ }
1126
+ });
1127
+ const co = /* @__PURE__ */ ue(uo, [["__scopeId", "data-v-15d8c408"]]), Ot = (c) => (En("data-v-7e84d2b9"), c = c(), $n(), c), ho = { id: "booking-availability-container" }, po = { id: "booking-availability-controls" }, fo = {
1128
+ key: 0,
1129
+ "sticky-container": ""
1130
+ }, mo = { key: 0 }, go = {
1131
+ key: 0,
1132
+ id: "booking-availability-packages"
1133
+ }, vo = ["title"];
1134
+ const yo = ["innerHTML"];
1135
+ const bo = {
1136
+ key: 1,
1137
+ id: "reservation-template-rooms"
1138
+ }, _o = ["innerHTML"], ko = { key: 1 }, Co = { key: 0 };
1139
+ const Eo = { id: "booking-availability-listings" }, $o = {
1140
+ key: 1,
1141
+ id: "booking-availability-no-listings"
1142
+ }, Io = {
1143
+ key: 1,
1144
+ id: "booking-availability-no-listings"
1145
+ }, xo = {
1146
+ key: 2,
1147
+ id: "reservation-availability-next-dates"
1148
+ }, To = { class: "reservation-special-offers-grid" }, So = ["title"], Lo = {
1149
+ key: 1,
1150
+ class: "konnectio-listing-loading"
1151
+ }, Vo = /* @__PURE__ */ Ot(() => /* @__PURE__ */ p("h4", null, [
1152
+ /* @__PURE__ */ p("span", null, "Reservation summary:")
1153
+ ], -1)), Bo = /* @__PURE__ */ Ot(() => /* @__PURE__ */ p("h4", null, [
1154
+ /* @__PURE__ */ p("span", null, "Price summary:")
1155
+ ], -1));
1156
+ const Ro = { key: 0 }, wo = { key: 1 }, Po = { class: "fresh-booking-split-inputs" }, zo = { key: 3 }, Oo = { class: "fresh-booking-label" }, Do = { class: "fresh-booking-checkbox-spacing" }, Fo = ["title"], No = { key: 1 }, Ao = { class: "booking-reservation-resume-recept-item" }, Wo = { key: 1 }, Mo = { class: "fresh-booking-checkbox-spacing" }, Uo = /* @__PURE__ */ ee({
1157
+ __name: "Hotel",
1158
+ props: {
1159
+ accessToken: {},
1160
+ accentColor: { default: "#6ab1e6" },
1161
+ buttonBackground: { default: "#068175" },
1162
+ buttonBorder: { default: null },
1163
+ buttonBorderRadius: { default: "4px" },
1164
+ buttonColor: { default: "#FFF" },
1165
+ buttonFontFamily: { default: "inherit" },
1166
+ buttonFontSize: { default: "14px" },
1167
+ buttonFontWeight: { default: "400" },
1168
+ buttonIconColor: { default: "#FFF" },
1169
+ buttonTextTransform: { default: "uppercase" },
1170
+ dangerColor: { default: "red" },
1171
+ fontColor: { default: "#3b3b3b" },
1172
+ fontFamily: { default: "inherit" },
1173
+ fontSize: { default: "16px" },
1174
+ grayColor: { default: "grey" },
1175
+ headerColor: { default: "#000" },
1176
+ headerLayout: { default: mn.Minimal },
1177
+ hideListingGroupTitles: {},
1178
+ inputBackground: { default: "#fff" },
1179
+ inputBorder: { default: "1px solid rgba(0, 0, 0, 0.15)" },
1180
+ inputBorderRadius: { default: "0px" },
1181
+ inputBorderWidth: { default: "1px" },
1182
+ inputFontColor: { default: "#000000" },
1183
+ labelFontWeight: { default: "bold" },
1184
+ labelPadding: { default: "6px" },
1185
+ layout: {},
1186
+ linkColor: { default: "#000" },
1187
+ loadingColor: { default: "#000" },
1188
+ packagesTitleMaxLines: { default: "2" },
1189
+ panelBackground: { default: "#ffffff" },
1190
+ panelBorder: { default: null },
1191
+ panelBorderRadius: { default: "8px" },
1192
+ panelPadding: { default: "24px" },
1193
+ successColor: { default: "green" }
1194
+ },
1195
+ setup(c) {
1196
+ const o = c, { t } = Te(), {
1197
+ finalSelection: u,
1198
+ templateID: f,
1199
+ roomGroupID: i,
1200
+ slideshow: h,
1201
+ title: d,
1202
+ totalPrice: s,
1203
+ countries: l,
1204
+ isMetaDataAvailable: _,
1205
+ isAvailabilityDataAvailable: v,
1206
+ isPaymentLoading: $,
1207
+ isReservationFormFilled: r,
1208
+ selectedPackage: b,
1209
+ travelingFor: y,
1210
+ arrivalTime: m,
1211
+ departureTime: n,
1212
+ name: a,
1213
+ nameTitle: g,
1214
+ email: T,
1215
+ phone: L,
1216
+ firmName: w,
1217
+ postal: x,
1218
+ city: R,
1219
+ address: D,
1220
+ country: K,
1221
+ remark: W,
1222
+ allergies: he,
1223
+ newsMails: pe,
1224
+ fetchAddons: qe,
1225
+ //canStartReservation,
1226
+ getSelectedPackageRoom: Ve,
1227
+ availabilityData: te
1228
+ } = ae(ot()), {
1229
+ arrivalDate: ne,
1230
+ departureDate: ie
1231
+ } = ae(jn()), {
1232
+ currency: H,
1233
+ isRecaptchaEnabled: At,
1234
+ disableNewsletterSignup: Wt,
1235
+ arrivalEarliest: Mt,
1236
+ arrivalLatest: Ut,
1237
+ departureEarliest: qt,
1238
+ departureLatest: Ht,
1239
+ enableTracking: jt,
1240
+ arrivalDefault: dt,
1241
+ departureDefault: ct,
1242
+ enablePackages: Gt,
1243
+ hideArrivalDepartureInputs: be,
1244
+ disableArrivalUserSelection: Be,
1245
+ disableNamePrefix: Yt,
1246
+ disableDepartureUserSelection: Re,
1247
+ disableTravelingFor: Qt,
1248
+ disableCompanyField: Kt
1249
+ } = ae(Se()), { display: Xt } = gn(), {
1250
+ initialize: Jt,
1251
+ //resetBookingSelection,
1252
+ resetAddonSelection: Zt,
1253
+ createReservation: ht,
1254
+ //getRoomName,
1255
+ getSingleListing: we,
1256
+ //calculateRoomPrice,
1257
+ removeRoom: or
1258
+ } = ot(), en = J(() => [[
1259
+ parseInt(Mt.value.split(":")[0]),
1260
+ parseInt(Ut.value.split(":")[0])
1261
+ ]]), tn = J(() => [[
1262
+ parseInt(qt.value.split(":")[0]),
1263
+ parseInt(Ht.value.split(":")[0])
1264
+ ]]), nn = {
1265
+ "--accentColor": o.accentColor,
1266
+ "--buttonBackground": o.buttonBackground,
1267
+ "--buttonBorder": o.buttonBorder,
1268
+ "--buttonBorderRadius": o.buttonBorderRadius,
1269
+ "--buttonColor": o.buttonColor,
1270
+ "--buttonFontFamily": o.buttonFontFamily,
1271
+ "--buttonFontSize": o.buttonFontSize,
1272
+ "--buttonFontWeight": o.buttonFontWeight,
1273
+ "--buttonTextTransform": o.buttonTextTransform,
1274
+ "--dangerColor": o.dangerColor,
1275
+ "--fontColor": o.fontColor,
1276
+ "--fontFamily": o.fontFamily,
1277
+ "--fontSize": o.fontSize,
1278
+ "--grayColor": o.grayColor,
1279
+ "--headerColor": o.headerColor,
1280
+ "--inputBackground": o.inputBackground,
1281
+ "--inputBorder": o.inputBorder,
1282
+ "--inputBorderRadius": o.inputBorderRadius,
1283
+ "--inputBorderWidth": o.inputBorderWidth,
1284
+ "--inputFontColor": o.inputFontColor,
1285
+ "--labelFontWeight": o.labelFontWeight,
1286
+ "--labelPadding": o.labelPadding,
1287
+ "--linkColor": o.linkColor,
1288
+ "--loadingColor": o.loadingColor,
1289
+ "--panelBackground": o.panelBackground,
1290
+ "--panelBorder": o.panelBorder,
1291
+ "--panelBorderRadius": o.panelBorderRadius,
1292
+ "--panelPadding": o.panelPadding,
1293
+ "--successColor": o.successColor
1294
+ }, Pe = {
1295
+ fontColor: o.fontColor,
1296
+ fontFamily: o.fontFamily,
1297
+ fontSize: o.fontSize,
1298
+ headerColor: o.headerColor,
1299
+ panelPadding: o.panelPadding
1300
+ };
1301
+ function on(P) {
1302
+ f.value = P;
1303
+ }
1304
+ function rn(P) {
1305
+ Zt(), P();
1306
+ }
1307
+ function an(P, V) {
1308
+ ne.value = new Date(P), ie.value = new Date(V), location.reload();
1309
+ }
1310
+ async function sn(P) {
1311
+ const V = Pt();
1312
+ if (At && V) {
1313
+ await V.recaptchaLoaded();
1314
+ const He = await V.executeRecaptcha("create_reservation");
1315
+ (await Cn.get(`/?rest_route=/freshcase-octopus/v1/recaptcha/${He}`)).data.success ? await ht(P) : Xt({
1316
+ message: t("alert.error.robot"),
1317
+ type: "error"
1318
+ });
1319
+ } else
1320
+ await ht(P);
1321
+ }
1322
+ function ln(P) {
1323
+ P();
1324
+ }
1325
+ function un() {
1326
+ m.value === "" && (m.value = dt.value), n.value === "" && (n.value = ct.value);
1327
+ }
1328
+ return at(() => {
1329
+ Jt(), un();
1330
+ }), (P, V) => {
1331
+ const He = vn("HotelListing"), je = Me("snip");
1332
+ return k(), N(yn, null, {
1333
+ default: F(() => [
1334
+ C(kn, {
1335
+ id: "fresh-booking-hotel-module",
1336
+ class: "fresh-booking-app",
1337
+ "access-token": P.accessToken,
1338
+ type: "hotel",
1339
+ style: nn
1340
+ }, {
1341
+ default: F(() => [
1342
+ C(Fn, {
1343
+ title: e(d),
1344
+ slideshow: e(h),
1345
+ layout: P.headerLayout
1346
+ }, {
1347
+ availability: F(({ next: ze }) => [
1348
+ C(bi, {
1349
+ "is-filled": e(r),
1350
+ currency: e(H),
1351
+ "button-icon-color": P.buttonIconColor,
1352
+ "total-price": e(s),
1353
+ "is-loading": e($),
1354
+ notice: e(t)("hotel.reservationNotice"),
1355
+ styling: Pe,
1356
+ onNext: (z) => ln(ze)
1357
+ }, {
1358
+ form: F(() => [
1359
+ p("div", ho, [
1360
+ p("div", po, [
1361
+ C(Yn, { booking: !0 })
1362
+ ]),
1363
+ e(v) ? (k(), I("div", fo, [
1364
+ e(te).roomGroups.length > 0 ? (k(), I("div", mo, [
1365
+ e(te).templates.length > 0 && e(Gt) ? (k(), I("div", go, [
1366
+ p("h2", null, [
1367
+ C(U, {
1368
+ icon: "box",
1369
+ type: "fal",
1370
+ "icon-color": P.headerColor
1371
+ }, null, 8, ["icon-color"]),
1372
+ p("span", null, E(isNaN(e(f)) ? e(t)("booking.availability.packagesTitle") : e(b)?.name), 1)
1373
+ ]),
1374
+ isNaN(e(f)) ? (k(), I("ul", {
1375
+ key: 0,
1376
+ class: Ie([
1377
+ "reservation-special-offers-grid",
1378
+ { "full-width": e(te).templates.length === 1 },
1379
+ { "half-width": e(te).templates.length === 2 }
1380
+ ])
1381
+ }, [
1382
+ (k(!0), I(q, null, Y(e(te).templates, ({
1383
+ id: z,
1384
+ name: S,
1385
+ templateRoomGroups: _e,
1386
+ imageUrl: ke,
1387
+ description: ce
1388
+ }) => (k(), I("li", { key: z }, [
1389
+ fe((k(), I("h3", { title: S }, [
1390
+ p("span", null, E(S), 1)
1391
+ ], 8, vo)), [
1392
+ [je, { lines: parseInt(P.packagesTitleMaxLines) || 1 }]
1393
+ ]),
1394
+ B("", !0),
1395
+ p("p", {
1396
+ innerHTML: e(mt)(ce)
1397
+ }, null, 8, yo),
1398
+ B("", !0),
1399
+ C(it, {
1400
+ type: "button",
1401
+ label: e(t)("booking.availability.viewOptions"),
1402
+ "full-width": "",
1403
+ onClickEvent: (Ge) => on(z)
1404
+ }, null, 8, ["label", "onClickEvent"])
1405
+ ]))), 128))
1406
+ ], 2)) : e(b) ? (k(), I("div", bo, [
1407
+ p("p", {
1408
+ innerHTML: e(mt)(e(b).description)
1409
+ }, null, 8, _o),
1410
+ p("ul", null, [
1411
+ (k(!0), I(q, null, Y(e(b).templateRoomGroups, ({ roomGroupID: z }, S) => (k(), N(He, {
1412
+ description: e(we)(z).description,
1413
+ name: e(we)(z).name,
1414
+ styling: Pe,
1415
+ layout: e(bn).Template,
1416
+ "listing-id": z,
1417
+ "occupant-rates": e(we)(z).occupantRates,
1418
+ available: e(we)(z).available,
1419
+ trackingEnabled: e(jt),
1420
+ key: S,
1421
+ onNext: ze
1422
+ }, null, 8, ["description", "name", "layout", "listing-id", "occupant-rates", "available", "trackingEnabled", "onNext"]))), 128))
1423
+ ])
1424
+ ])) : B("", !0)
1425
+ ])) : B("", !0),
1426
+ isNaN(e(f)) ? (k(), I("div", ko, [
1427
+ e(te).roomGroups.length > 0 ? (k(), I("div", Co, [
1428
+ B("", !0),
1429
+ p("ul", Eo, [
1430
+ (k(!0), I(q, null, Y(e(te).roomGroups, (z, S) => (k(), N(Mi, {
1431
+ room: z,
1432
+ styling: Pe,
1433
+ layout: P.layout,
1434
+ key: S
1435
+ }, null, 8, ["room", "layout"]))), 128))
1436
+ ])
1437
+ ])) : (k(), I("div", $o, [
1438
+ p("span", null, E(e(t)("booking.availability.nothingAvailable")), 1)
1439
+ ]))
1440
+ ])) : B("", !0)
1441
+ ])) : e(te).nextAvailableDates.length === 0 ? (k(), I("div", Io, [
1442
+ p("span", null, E(e(t)("booking.availability.nothingAvailable")), 1)
1443
+ ])) : (k(), I("div", xo, [
1444
+ p("h2", null, [
1445
+ C(U, {
1446
+ icon: "calendar-circle-exclamation",
1447
+ type: "fal",
1448
+ "icon-color": P.headerColor
1449
+ }, null, 8, ["icon-color"]),
1450
+ p("span", null, E(e(t)("booking.availability.nextAvailableDates")), 1)
1451
+ ]),
1452
+ p("ul", To, [
1453
+ (k(!0), I(q, null, Y(e(te).nextAvailableDates, (z, S) => (k(), I("li", { key: S }, [
1454
+ p("h3", {
1455
+ title: `${e(G)(z.fromDate)} - ${e(G)(z.toDate)}`
1456
+ }, [
1457
+ fe((k(), I("span", null, [
1458
+ De(E(`${e(G)(z.fromDate)} - ${e(G)(z.toDate)}`), 1)
1459
+ ])), [
1460
+ [je, { lines: 1 }]
1461
+ ])
1462
+ ], 8, So),
1463
+ p("ul", null, [
1464
+ p("li", null, [
1465
+ C(U, {
1466
+ icon: "house",
1467
+ type: "fal",
1468
+ "icon-color": P.headerColor
1469
+ }, null, 8, ["icon-color"]),
1470
+ p("span", null, E(e(t)("booking.availability.units")) + ": " + E(z.roomCount), 1)
1471
+ ]),
1472
+ p("li", null, [
1473
+ C(U, {
1474
+ icon: "money-bill",
1475
+ type: "fal",
1476
+ "icon-color": P.headerColor
1477
+ }, null, 8, ["icon-color"]),
1478
+ p("span", null, E(e(t)("booking.availability.pricesFrom")) + ": " + E(e(M)(z.priceStartFrom, e(H))), 1)
1479
+ ])
1480
+ ]),
1481
+ C(it, {
1482
+ label: e(t)("booking.availability.selectDates"),
1483
+ "full-width": "",
1484
+ onClickEvent: (_e) => an(z.fromDate, z.toDate)
1485
+ }, null, 8, ["label", "onClickEvent"])
1486
+ ]))), 128))
1487
+ ])
1488
+ ]))
1489
+ ])) : (k(), I("div", Lo, [
1490
+ C(ve),
1491
+ C(ve),
1492
+ C(ve)
1493
+ ]))
1494
+ ])
1495
+ ]),
1496
+ resume: F(() => [
1497
+ p("div", null, [
1498
+ Vo,
1499
+ p("li", null, [
1500
+ p("span", null, E(e(t)("booking.reservation.arrival")), 1),
1501
+ p("b", null, E(e(be) ? e(G)(e(ne)) : `${e(G)(e(ne))}`), 1)
1502
+ ]),
1503
+ p("li", null, [
1504
+ p("span", null, E(e(t)("booking.reservation.departure")), 1),
1505
+ p("b", null, E(e(be) ? e(G)(e(ie)) : `${e(G)(e(ie))}`), 1)
1506
+ ]),
1507
+ p("li", null, [
1508
+ p("span", null, E(e(t)("booking.reservation.nights")), 1),
1509
+ p("b", null, E(e(Fe)(e(ne), e(ie))) + " " + E(e(gt)(e(Fe)(e(ne), e(ie)) === 1 ? e(t)("booking.reservation.night") : e(t)("booking.reservation.nights"))), 1)
1510
+ ]),
1511
+ Bo,
1512
+ isNaN(e(f)) && e(qe).length > 0 ? (k(!0), I(q, { key: 0 }, Y(e(qe), ({
1513
+ name: z,
1514
+ index: S,
1515
+ adultsCount: _e,
1516
+ childrenCount: ke,
1517
+ totalPrice: ce,
1518
+ roomGroupID: Ge,
1519
+ ratePlanID: Q
1520
+ }, j) => (k(), I("li", { key: j }, [
1521
+ p("span", null, [
1522
+ p("span", null, E(`${z} (#${S})`), 1),
1523
+ p("span", null, [
1524
+ De("( "),
1525
+ C(U, {
1526
+ icon: "male",
1527
+ type: "fas",
1528
+ "icon-color": P.headerColor
1529
+ }, null, 8, ["icon-color"]),
1530
+ p("span", null, E(_e), 1),
1531
+ De(") "),
1532
+ ke > 0 ? (k(), I(q, { key: 0 }, [
1533
+ C(U, {
1534
+ icon: "child",
1535
+ type: "fas",
1536
+ "icon-color": P.headerColor
1537
+ }, null, 8, ["icon-color"]),
1538
+ p("span", null, E(ke), 1),
1539
+ De(") ")
1540
+ ], 64)) : B("", !0)
1541
+ ])
1542
+ ]),
1543
+ p("b", null, [
1544
+ p("span", null, E(e(M)(ce, e(H))), 1),
1545
+ B("", !0)
1546
+ ])
1547
+ ]))), 128)) : B("", !0)
1548
+ ])
1549
+ ]),
1550
+ _: 2
1551
+ }, 1032, ["is-filled", "currency", "button-icon-color", "total-price", "is-loading", "notice", "onNext"])
1552
+ ]),
1553
+ reservation: F(({ next: ze, prev: z }) => [
1554
+ C(Nn, {
1555
+ remark: e(W),
1556
+ "onUpdate:remark": V[17] || (V[17] = (S) => A(W) ? W.value = S : null),
1557
+ "is-filled": e(r),
1558
+ currency: e(H),
1559
+ "button-icon-color": P.buttonIconColor,
1560
+ "total-price": e(s),
1561
+ "is-loading": e($),
1562
+ notice: e(t)("hotel.reservationNotice"),
1563
+ styling: Pe,
1564
+ onPrev: (S) => rn(z),
1565
+ onNext: (S) => sn(ze)
1566
+ }, _n({
1567
+ form: F(() => [
1568
+ !e(be) && !(e(Be) && e(Re)) ? (k(), I("ul", {
1569
+ key: 0,
1570
+ class: Ie({ "fresh-booking-split-inputs": !e(Be) && !e(Re) })
1571
+ }, [
1572
+ e(Be) ? B("", !0) : (k(), I("li", Ro, [
1573
+ C(kt, {
1574
+ modelValue: e(m),
1575
+ "onUpdate:modelValue": V[0] || (V[0] = (S) => A(m) ? m.value = S : null),
1576
+ label: e(t)("booking.reservation.arrivalTime"),
1577
+ icon: "hourglass-start",
1578
+ "hour-range": en.value,
1579
+ required: ""
1580
+ }, null, 8, ["modelValue", "label", "hour-range"])
1581
+ ])),
1582
+ e(Re) ? B("", !0) : (k(), I("li", wo, [
1583
+ C(kt, {
1584
+ modelValue: e(n),
1585
+ "onUpdate:modelValue": V[1] || (V[1] = (S) => A(n) ? n.value = S : null),
1586
+ label: e(t)("booking.reservation.departureTime"),
1587
+ icon: "hourglass-end",
1588
+ "hour-range": tn.value,
1589
+ required: ""
1590
+ }, null, 8, ["modelValue", "label", "hour-range"])
1591
+ ]))
1592
+ ], 2)) : B("", !0),
1593
+ C(Gi, {
1594
+ modelValue: e(a),
1595
+ "onUpdate:modelValue": V[2] || (V[2] = (S) => A(a) ? a.value = S : null),
1596
+ title: e(g),
1597
+ "onUpdate:title": V[3] || (V[3] = (S) => A(g) ? g.value = S : null),
1598
+ "exclude-title": e(Yt),
1599
+ label: e(t)("booking.reservation.name"),
1600
+ icon: "user-alt",
1601
+ placeholder: e(t)("booking.reservation.namePlaceholder"),
1602
+ required: ""
1603
+ }, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
1604
+ C(se, {
1605
+ modelValue: e(T),
1606
+ "onUpdate:modelValue": V[4] || (V[4] = (S) => A(T) ? T.value = S : null),
1607
+ type: "email",
1608
+ name: "email",
1609
+ autocomplete: "email",
1610
+ label: e(t)("booking.reservation.email"),
1611
+ icon: "at",
1612
+ placeholder: e(t)("booking.reservation.emailPlaceholder"),
1613
+ required: ""
1614
+ }, null, 8, ["modelValue", "label", "placeholder"]),
1615
+ e(Wt) ? B("", !0) : (k(), N(re, {
1616
+ key: 1,
1617
+ modelValue: e(pe),
1618
+ "onUpdate:modelValue": V[5] || (V[5] = (S) => A(pe) ? pe.value = S : null),
1619
+ type: "checkbox",
1620
+ name: "newsletter",
1621
+ label: e(t)("booking.reservation.newsletterSignUp")
1622
+ }, null, 8, ["modelValue", "label"])),
1623
+ e(Kt) ? B("", !0) : (k(), N(se, {
1624
+ key: 2,
1625
+ modelValue: e(w),
1626
+ "onUpdate:modelValue": V[6] || (V[6] = (S) => A(w) ? w.value = S : null),
1627
+ type: "text",
1628
+ name: "firm",
1629
+ autocomplete: "firm",
1630
+ label: `${e(t)("booking.reservation.companyName")} (${e(t)("booking.reservation.optional")})`,
1631
+ icon: "id-card",
1632
+ placeholder: e(t)("booking.reservation.companyNamePlaceholder")
1633
+ }, null, 8, ["modelValue", "label", "placeholder"])),
1634
+ C(Bn, {
1635
+ modelValue: e(L),
1636
+ "onUpdate:modelValue": V[7] || (V[7] = (S) => A(L) ? L.value = S : null),
1637
+ icon: "phone-office",
1638
+ label: e(t)("booking.reservation.phone"),
1639
+ placeholder: e(t)("booking.reservation.phonePlaceholder"),
1640
+ required: ""
1641
+ }, null, 8, ["modelValue", "label", "placeholder"]),
1642
+ C(Hi, {
1643
+ modelValue: e(K),
1644
+ "onUpdate:modelValue": V[8] || (V[8] = (S) => A(K) ? K.value = S : null),
1645
+ label: e(t)("booking.reservation.country"),
1646
+ placeholder: e(t)("booking.reservation.countryPlaceholder"),
1647
+ options: e(l),
1648
+ required: ""
1649
+ }, null, 8, ["modelValue", "label", "placeholder", "options"]),
1650
+ C(se, {
1651
+ modelValue: e(D),
1652
+ "onUpdate:modelValue": V[9] || (V[9] = (S) => A(D) ? D.value = S : null),
1653
+ type: "textarea",
1654
+ name: "address",
1655
+ autocomplete: "street-address",
1656
+ label: e(t)("booking.reservation.streetAddress"),
1657
+ icon: "map-marked",
1658
+ placeholder: e(t)("booking.reservation.streetAddressPlaceholder"),
1659
+ required: ""
1660
+ }, null, 8, ["modelValue", "label", "placeholder"]),
1661
+ p("ul", Po, [
1662
+ p("li", null, [
1663
+ C(se, {
1664
+ modelValue: e(x),
1665
+ "onUpdate:modelValue": V[10] || (V[10] = (S) => A(x) ? x.value = S : null),
1666
+ type: "number",
1667
+ name: "postal",
1668
+ autocomplete: "postal-code",
1669
+ label: e(t)("booking.reservation.postal"),
1670
+ icon: "mailbox",
1671
+ placeholder: e(t)("booking.reservation.postalPlaceholder"),
1672
+ required: ""
1673
+ }, null, 8, ["modelValue", "label", "placeholder"])
1674
+ ]),
1675
+ p("li", null, [
1676
+ C(se, {
1677
+ modelValue: e(R),
1678
+ "onUpdate:modelValue": V[11] || (V[11] = (S) => A(R) ? R.value = S : null),
1679
+ type: "text",
1680
+ name: "city",
1681
+ autocomplete: "address-level2",
1682
+ label: e(t)("booking.reservation.city"),
1683
+ icon: "city",
1684
+ placeholder: e(t)("booking.reservation.cityPlaceholder"),
1685
+ required: ""
1686
+ }, null, 8, ["modelValue", "label", "placeholder"])
1687
+ ])
1688
+ ]),
1689
+ C(se, {
1690
+ modelValue: e(W),
1691
+ "onUpdate:modelValue": V[12] || (V[12] = (S) => A(W) ? W.value = S : null),
1692
+ type: "textarea",
1693
+ label: `${e(t)("booking.reservation.remark")} (${e(t)("booking.reservation.optional")})`,
1694
+ icon: "info-circle",
1695
+ placeholder: e(t)("booking.reservation.remarkPlaceholder")
1696
+ }, null, 8, ["modelValue", "label", "placeholder"]),
1697
+ C(se, {
1698
+ modelValue: e(he),
1699
+ "onUpdate:modelValue": V[13] || (V[13] = (S) => A(he) ? he.value = S : null),
1700
+ type: "textarea",
1701
+ label: `${e(t)("booking.reservation.allergies")} (${e(t)("booking.reservation.optional")})`,
1702
+ icon: "allergies",
1703
+ placeholder: e(t)("booking.reservation.allergiesPlaceholder")
1704
+ }, null, 8, ["modelValue", "label", "placeholder"]),
1705
+ e(Qt) ? B("", !0) : (k(), I("div", zo, [
1706
+ p("label", Oo, [
1707
+ p("span", null, E(e(t)("booking.reservation.purposeOfStay")) + " (" + E(e(t)("booking.reservation.optional")) + ")", 1)
1708
+ ]),
1709
+ p("ul", Do, [
1710
+ p("li", null, [
1711
+ C(re, {
1712
+ modelValue: e(y),
1713
+ "onUpdate:modelValue": V[14] || (V[14] = (S) => A(y) ? y.value = S : null),
1714
+ type: "radio",
1715
+ name: "travelingFor",
1716
+ label: e(t)("booking.reservation.business"),
1717
+ val: "Business"
1718
+ }, null, 8, ["modelValue", "label"])
1719
+ ]),
1720
+ p("li", null, [
1721
+ C(re, {
1722
+ modelValue: e(y),
1723
+ "onUpdate:modelValue": V[15] || (V[15] = (S) => A(y) ? y.value = S : null),
1724
+ type: "radio",
1725
+ name: "travelingFor",
1726
+ label: e(t)("booking.reservation.pleasure"),
1727
+ val: "Pleasure"
1728
+ }, null, 8, ["modelValue", "label"])
1729
+ ]),
1730
+ p("li", null, [
1731
+ C(re, {
1732
+ modelValue: e(y),
1733
+ "onUpdate:modelValue": V[16] || (V[16] = (S) => A(y) ? y.value = S : null),
1734
+ type: "radio",
1735
+ name: "travelingFor",
1736
+ label: e(t)("booking.reservation.bleasure"),
1737
+ val: "Bleasure"
1738
+ }, null, 8, ["modelValue", "label"])
1739
+ ])
1740
+ ])
1741
+ ]))
1742
+ ]),
1743
+ resume: F(() => [
1744
+ p("li", null, [
1745
+ p("span", null, E(e(t)("booking.reservation.arrival")), 1),
1746
+ p("b", null, E(e(be) ? e(G)(e(ne)) : `${e(G)(e(ne))}, ${e(Be) ? e(dt) : e(m)}`), 1)
1747
+ ]),
1748
+ p("li", null, [
1749
+ p("span", null, E(e(t)("booking.reservation.departure")), 1),
1750
+ p("b", null, E(e(be) ? e(G)(e(ie)) : `${e(G)(e(ie))}, ${e(Re) ? e(ct) : e(n)}`), 1)
1751
+ ]),
1752
+ p("li", null, [
1753
+ p("span", null, E(e(t)("booking.reservation.nights")), 1),
1754
+ p("b", null, E(e(Fe)(e(ne), e(ie))) + " " + E(e(gt)(e(Fe)(e(ne), e(ie)) === 1 ? e(t)("booking.reservation.night") : e(t)("booking.reservation.nights"))), 1)
1755
+ ]),
1756
+ !isNaN(e(f)) && !isNaN(e(i)) && e(Ve) ? (k(), I(q, { key: 0 }, [
1757
+ p("li", null, [
1758
+ p("span", null, E(e(t)("booking.reservation.roomName")), 1),
1759
+ p("b", {
1760
+ title: e(Ve).roomGroupName
1761
+ }, E(e(Ve).roomGroupName), 9, Fo)
1762
+ ]),
1763
+ p("li", null, [
1764
+ p("span", null, E(e(t)("booking.availability.basePrice")), 1),
1765
+ p("b", null, E(e(M)(e(Ve).extraPrice, e(H))), 1)
1766
+ ])
1767
+ ], 64)) : B("", !0),
1768
+ !isNaN(e(f)) && !isNaN(e(i)) && e(b) ? (k(), I("li", No, [
1769
+ p("span", null, E(e(t)("general.weekendFee")), 1),
1770
+ p("b", null, E(e(M)(e(b).weekendFee, e(H))), 1)
1771
+ ])) : B("", !0)
1772
+ ]),
1773
+ _: 2
1774
+ }, [
1775
+ void 0,
1776
+ isNaN(e(f)) ? {
1777
+ name: "addons",
1778
+ fn: F(() => [
1779
+ (k(!0), I(q, { key: 0 }, Y(e(qe), ({
1780
+ name: S,
1781
+ index: _e,
1782
+ adultsCount: ke,
1783
+ childrenCount: ce,
1784
+ addons: Ge,
1785
+ roomGroupID: Q,
1786
+ ratePlanID: j
1787
+ }, pt) => (k(), I("li", { key: pt }, [
1788
+ p("div", null, [
1789
+ p("div", Ao, [
1790
+ p("b", null, E(`${S} (#${_e})`), 1),
1791
+ p("b", null, [
1792
+ C(U, {
1793
+ icon: "male",
1794
+ type: "fas",
1795
+ "icon-color": P.headerColor
1796
+ }, null, 8, ["icon-color"]),
1797
+ p("span", null, E(ke), 1),
1798
+ ce > 0 ? (k(), N(U, {
1799
+ key: 0,
1800
+ icon: "child",
1801
+ type: "fas",
1802
+ "icon-color": P.headerColor
1803
+ }, null, 8, ["icon-color"])) : B("", !0),
1804
+ ce > 0 ? (k(), I("span", Wo, E(ce), 1)) : B("", !0)
1805
+ ])
1806
+ ]),
1807
+ p("ul", Mo, [
1808
+ (k(!0), I(q, null, Y(Ge, ({
1809
+ name: Ce,
1810
+ price: Ee,
1811
+ quantityStrategy: Oe,
1812
+ id: X
1813
+ }, dn) => (k(), I("li", { key: dn }, [
1814
+ C(re, {
1815
+ modelValue: e(u)[Q][j].addons[X],
1816
+ "onUpdate:modelValue": (oe) => e(u)[Q][j].addons[X] = oe,
1817
+ label: Ce,
1818
+ price: `${e(M)(Ee, e(H))} ${e(t)("general.perAdultPerNight")}`
1819
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "price"]),
1820
+ Oe === e(Ne).PerAdultPerNight ? (k(), N(re, {
1821
+ key: 0,
1822
+ modelValue: e(u)[Q][j].addons[X],
1823
+ "onUpdate:modelValue": (oe) => e(u)[Q][j].addons[X] = oe,
1824
+ label: Ce,
1825
+ price: `${e(M)(Ee, e(H))} ${e(t)("general.perAdultPerNight")}`
1826
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "price"])) : Oe === e(Ne).PerChildPerNight ? (k(), N(re, {
1827
+ key: 1,
1828
+ modelValue: e(u)[Q][j].addons[X],
1829
+ "onUpdate:modelValue": (oe) => e(u)[Q][j].addons[X] = oe,
1830
+ label: Ce,
1831
+ price: `${e(M)(Ee, e(H))} ${e(t)("general.perChildPerNight")}`
1832
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "price"])) : Oe === e(Ne).PerNight ? (k(), N(re, {
1833
+ key: 2,
1834
+ modelValue: e(u)[Q][j].addons[X],
1835
+ "onUpdate:modelValue": (oe) => e(u)[Q][j].addons[X] = oe,
1836
+ label: Ce,
1837
+ price: `${e(M)(Ee, e(H))} ${e(t)("general.perNight")}`
1838
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "price"])) : Oe === e(Ne).PerUnit ? (k(), N(re, {
1839
+ key: 3,
1840
+ modelValue: e(u)[Q][j].addons[X],
1841
+ "onUpdate:modelValue": (oe) => e(u)[Q][j].addons[X] = oe,
1842
+ label: Ce,
1843
+ price: `${e(M)(Ee, e(H))}`
1844
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "price"])) : B("", !0)
1845
+ ]))), 128))
1846
+ ])
1847
+ ])
1848
+ ]))), 128))
1849
+ ]),
1850
+ key: "1"
1851
+ } : void 0
1852
+ ]), 1032, ["remark", "is-filled", "currency", "button-icon-color", "total-price", "is-loading", "notice", "onPrev", "onNext"])
1853
+ ]),
1854
+ payment: F(() => [
1855
+ C(An)
1856
+ ]),
1857
+ confirmation: F(() => [
1858
+ C(Wn, {
1859
+ message: e(t)("booking.confirmation.thankYou"),
1860
+ currency: e(H)
1861
+ }, null, 8, ["message", "currency"])
1862
+ ]),
1863
+ _: 1
1864
+ }, 8, ["title", "slideshow", "layout"]),
1865
+ C(e(Mn))
1866
+ ]),
1867
+ _: 1
1868
+ }, 8, ["access-token"])
1869
+ ]),
1870
+ fallback: F(() => [
1871
+ C(co)
1872
+ ]),
1873
+ _: 1
1874
+ });
1875
+ };
1876
+ }
1877
+ });
1878
+ const qo = /* @__PURE__ */ ue(Uo, [["__scopeId", "data-v-7e84d2b9"]]);
1879
+ var Dt = { exports: {} }, Ye = { exports: {} }, Qe = { exports: {} }, Ct;
1880
+ function lt() {
1881
+ return Ct || (Ct = 1, function(c) {
1882
+ (function(o, t) {
1883
+ c.exports ? c.exports = t() : o.EvEmitter = t();
1884
+ })(typeof window < "u" ? window : Z, function() {
1885
+ function o() {
1886
+ }
1887
+ var t = o.prototype;
1888
+ return t.on = function(u, f) {
1889
+ if (!(!u || !f)) {
1890
+ var i = this._events = this._events || {}, h = i[u] = i[u] || [];
1891
+ return h.indexOf(f) == -1 && h.push(f), this;
1892
+ }
1893
+ }, t.once = function(u, f) {
1894
+ if (!(!u || !f)) {
1895
+ this.on(u, f);
1896
+ var i = this._onceEvents = this._onceEvents || {}, h = i[u] = i[u] || {};
1897
+ return h[f] = !0, this;
1898
+ }
1899
+ }, t.off = function(u, f) {
1900
+ var i = this._events && this._events[u];
1901
+ if (!(!i || !i.length)) {
1902
+ var h = i.indexOf(f);
1903
+ return h != -1 && i.splice(h, 1), this;
1904
+ }
1905
+ }, t.emitEvent = function(u, f) {
1906
+ var i = this._events && this._events[u];
1907
+ if (!(!i || !i.length)) {
1908
+ i = i.slice(0), f = f || [];
1909
+ for (var h = this._onceEvents && this._onceEvents[u], d = 0; d < i.length; d++) {
1910
+ var s = i[d], l = h && h[s];
1911
+ l && (this.off(u, s), delete h[s]), s.apply(this, f);
1912
+ }
1913
+ return this;
1914
+ }
1915
+ }, t.allOff = function() {
1916
+ delete this._events, delete this._onceEvents;
1917
+ }, o;
1918
+ });
1919
+ }(Qe)), Qe.exports;
1920
+ }
1921
+ var Ke = { exports: {} };
1922
+ /*!
1923
+ * getSize v2.0.3
1924
+ * measure size of elements
1925
+ * MIT license
1926
+ */
1927
+ var Et;
1928
+ function ut() {
1929
+ return Et || (Et = 1, function(c) {
1930
+ (function(o, t) {
1931
+ c.exports ? c.exports = t() : o.getSize = t();
1932
+ })(window, function() {
1933
+ function t(r) {
1934
+ var b = parseFloat(r), y = r.indexOf("%") == -1 && !isNaN(b);
1935
+ return y && b;
1936
+ }
1937
+ function u() {
1938
+ }
1939
+ var f = typeof console > "u" ? u : function(r) {
1940
+ console.error(r);
1941
+ }, i = [
1942
+ "paddingLeft",
1943
+ "paddingRight",
1944
+ "paddingTop",
1945
+ "paddingBottom",
1946
+ "marginLeft",
1947
+ "marginRight",
1948
+ "marginTop",
1949
+ "marginBottom",
1950
+ "borderLeftWidth",
1951
+ "borderRightWidth",
1952
+ "borderTopWidth",
1953
+ "borderBottomWidth"
1954
+ ], h = i.length;
1955
+ function d() {
1956
+ for (var r = {
1957
+ width: 0,
1958
+ height: 0,
1959
+ innerWidth: 0,
1960
+ innerHeight: 0,
1961
+ outerWidth: 0,
1962
+ outerHeight: 0
1963
+ }, b = 0; b < h; b++) {
1964
+ var y = i[b];
1965
+ r[y] = 0;
1966
+ }
1967
+ return r;
1968
+ }
1969
+ function s(r) {
1970
+ var b = getComputedStyle(r);
1971
+ return b || f("Style returned " + b + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), b;
1972
+ }
1973
+ var l = !1, _;
1974
+ function v() {
1975
+ if (!l) {
1976
+ l = !0;
1977
+ var r = document.createElement("div");
1978
+ r.style.width = "200px", r.style.padding = "1px 2px 3px 4px", r.style.borderStyle = "solid", r.style.borderWidth = "1px 2px 3px 4px", r.style.boxSizing = "border-box";
1979
+ var b = document.body || document.documentElement;
1980
+ b.appendChild(r);
1981
+ var y = s(r);
1982
+ _ = Math.round(t(y.width)) == 200, $.isBoxSizeOuter = _, b.removeChild(r);
1983
+ }
1984
+ }
1985
+ function $(r) {
1986
+ if (v(), typeof r == "string" && (r = document.querySelector(r)), !(!r || typeof r != "object" || !r.nodeType)) {
1987
+ var b = s(r);
1988
+ if (b.display == "none")
1989
+ return d();
1990
+ var y = {};
1991
+ y.width = r.offsetWidth, y.height = r.offsetHeight;
1992
+ for (var m = y.isBorderBox = b.boxSizing == "border-box", n = 0; n < h; n++) {
1993
+ var a = i[n], g = b[a], T = parseFloat(g);
1994
+ y[a] = isNaN(T) ? 0 : T;
1995
+ }
1996
+ var L = y.paddingLeft + y.paddingRight, w = y.paddingTop + y.paddingBottom, x = y.marginLeft + y.marginRight, R = y.marginTop + y.marginBottom, D = y.borderLeftWidth + y.borderRightWidth, K = y.borderTopWidth + y.borderBottomWidth, W = m && _, he = t(b.width);
1997
+ he !== !1 && (y.width = he + // add padding and border unless it's already including it
1998
+ (W ? 0 : L + D));
1999
+ var pe = t(b.height);
2000
+ return pe !== !1 && (y.height = pe + // add padding and border unless it's already including it
2001
+ (W ? 0 : w + K)), y.innerWidth = y.width - (L + D), y.innerHeight = y.height - (w + K), y.outerWidth = y.width + x, y.outerHeight = y.height + R, y;
2002
+ }
2003
+ }
2004
+ return $;
2005
+ });
2006
+ }(Ke)), Ke.exports;
2007
+ }
2008
+ var Xe = { exports: {} }, Je = { exports: {} }, $t;
2009
+ function Ho() {
2010
+ return $t || ($t = 1, function(c) {
2011
+ (function(o, t) {
2012
+ c.exports ? c.exports = t() : o.matchesSelector = t();
2013
+ })(window, function() {
2014
+ var t = function() {
2015
+ var u = window.Element.prototype;
2016
+ if (u.matches)
2017
+ return "matches";
2018
+ if (u.matchesSelector)
2019
+ return "matchesSelector";
2020
+ for (var f = ["webkit", "moz", "ms", "o"], i = 0; i < f.length; i++) {
2021
+ var h = f[i], d = h + "MatchesSelector";
2022
+ if (u[d])
2023
+ return d;
2024
+ }
2025
+ }();
2026
+ return function(f, i) {
2027
+ return f[t](i);
2028
+ };
2029
+ });
2030
+ }(Je)), Je.exports;
2031
+ }
2032
+ var It;
2033
+ function jo() {
2034
+ return It || (It = 1, function(c) {
2035
+ (function(o, t) {
2036
+ c.exports ? c.exports = t(
2037
+ o,
2038
+ Ho()
2039
+ ) : o.fizzyUIUtils = t(
2040
+ o,
2041
+ o.matchesSelector
2042
+ );
2043
+ })(window, function(t, u) {
2044
+ var f = {};
2045
+ f.extend = function(d, s) {
2046
+ for (var l in s)
2047
+ d[l] = s[l];
2048
+ return d;
2049
+ }, f.modulo = function(d, s) {
2050
+ return (d % s + s) % s;
2051
+ };
2052
+ var i = Array.prototype.slice;
2053
+ f.makeArray = function(d) {
2054
+ if (Array.isArray(d))
2055
+ return d;
2056
+ if (d == null)
2057
+ return [];
2058
+ var s = typeof d == "object" && typeof d.length == "number";
2059
+ return s ? i.call(d) : [d];
2060
+ }, f.removeFrom = function(d, s) {
2061
+ var l = d.indexOf(s);
2062
+ l != -1 && d.splice(l, 1);
2063
+ }, f.getParent = function(d, s) {
2064
+ for (; d.parentNode && d != document.body; )
2065
+ if (d = d.parentNode, u(d, s))
2066
+ return d;
2067
+ }, f.getQueryElement = function(d) {
2068
+ return typeof d == "string" ? document.querySelector(d) : d;
2069
+ }, f.handleEvent = function(d) {
2070
+ var s = "on" + d.type;
2071
+ this[s] && this[s](d);
2072
+ }, f.filterFindElements = function(d, s) {
2073
+ d = f.makeArray(d);
2074
+ var l = [];
2075
+ return d.forEach(function(_) {
2076
+ if (_ instanceof HTMLElement) {
2077
+ if (!s) {
2078
+ l.push(_);
2079
+ return;
2080
+ }
2081
+ u(_, s) && l.push(_);
2082
+ for (var v = _.querySelectorAll(s), $ = 0; $ < v.length; $++)
2083
+ l.push(v[$]);
2084
+ }
2085
+ }), l;
2086
+ }, f.debounceMethod = function(d, s, l) {
2087
+ l = l || 100;
2088
+ var _ = d.prototype[s], v = s + "Timeout";
2089
+ d.prototype[s] = function() {
2090
+ var $ = this[v];
2091
+ clearTimeout($);
2092
+ var r = arguments, b = this;
2093
+ this[v] = setTimeout(function() {
2094
+ _.apply(b, r), delete b[v];
2095
+ }, l);
2096
+ };
2097
+ }, f.docReady = function(d) {
2098
+ var s = document.readyState;
2099
+ s == "complete" || s == "interactive" ? setTimeout(d) : document.addEventListener("DOMContentLoaded", d);
2100
+ }, f.toDashed = function(d) {
2101
+ return d.replace(/(.)([A-Z])/g, function(s, l, _) {
2102
+ return l + "-" + _;
2103
+ }).toLowerCase();
2104
+ };
2105
+ var h = t.console;
2106
+ return f.htmlInit = function(d, s) {
2107
+ f.docReady(function() {
2108
+ var l = f.toDashed(s), _ = "data-" + l, v = document.querySelectorAll("[" + _ + "]"), $ = document.querySelectorAll(".js-" + l), r = f.makeArray(v).concat(f.makeArray($)), b = _ + "-options", y = t.jQuery;
2109
+ r.forEach(function(m) {
2110
+ var n = m.getAttribute(_) || m.getAttribute(b), a;
2111
+ try {
2112
+ a = n && JSON.parse(n);
2113
+ } catch (T) {
2114
+ h && h.error("Error parsing " + _ + " on " + m.className + ": " + T);
2115
+ return;
2116
+ }
2117
+ var g = new d(m, a);
2118
+ y && y.data(m, s, g);
2119
+ });
2120
+ });
2121
+ }, f;
2122
+ });
2123
+ }(Xe)), Xe.exports;
2124
+ }
2125
+ var Ze = { exports: {} }, xt;
2126
+ function Go() {
2127
+ return xt || (xt = 1, function(c) {
2128
+ (function(o, t) {
2129
+ c.exports ? c.exports = t(
2130
+ lt(),
2131
+ ut()
2132
+ ) : (o.Outlayer = {}, o.Outlayer.Item = t(
2133
+ o.EvEmitter,
2134
+ o.getSize
2135
+ ));
2136
+ })(window, function(t, u) {
2137
+ function f(m) {
2138
+ for (var n in m)
2139
+ return !1;
2140
+ return n = null, !0;
2141
+ }
2142
+ var i = document.documentElement.style, h = typeof i.transition == "string" ? "transition" : "WebkitTransition", d = typeof i.transform == "string" ? "transform" : "WebkitTransform", s = {
2143
+ WebkitTransition: "webkitTransitionEnd",
2144
+ transition: "transitionend"
2145
+ }[h], l = {
2146
+ transform: d,
2147
+ transition: h,
2148
+ transitionDuration: h + "Duration",
2149
+ transitionProperty: h + "Property",
2150
+ transitionDelay: h + "Delay"
2151
+ };
2152
+ function _(m, n) {
2153
+ m && (this.element = m, this.layout = n, this.position = {
2154
+ x: 0,
2155
+ y: 0
2156
+ }, this._create());
2157
+ }
2158
+ var v = _.prototype = Object.create(t.prototype);
2159
+ v.constructor = _, v._create = function() {
2160
+ this._transn = {
2161
+ ingProperties: {},
2162
+ clean: {},
2163
+ onEnd: {}
2164
+ }, this.css({
2165
+ position: "absolute"
2166
+ });
2167
+ }, v.handleEvent = function(m) {
2168
+ var n = "on" + m.type;
2169
+ this[n] && this[n](m);
2170
+ }, v.getSize = function() {
2171
+ this.size = u(this.element);
2172
+ }, v.css = function(m) {
2173
+ var n = this.element.style;
2174
+ for (var a in m) {
2175
+ var g = l[a] || a;
2176
+ n[g] = m[a];
2177
+ }
2178
+ }, v.getPosition = function() {
2179
+ var m = getComputedStyle(this.element), n = this.layout._getOption("originLeft"), a = this.layout._getOption("originTop"), g = m[n ? "left" : "right"], T = m[a ? "top" : "bottom"], L = parseFloat(g), w = parseFloat(T), x = this.layout.size;
2180
+ g.indexOf("%") != -1 && (L = L / 100 * x.width), T.indexOf("%") != -1 && (w = w / 100 * x.height), L = isNaN(L) ? 0 : L, w = isNaN(w) ? 0 : w, L -= n ? x.paddingLeft : x.paddingRight, w -= a ? x.paddingTop : x.paddingBottom, this.position.x = L, this.position.y = w;
2181
+ }, v.layoutPosition = function() {
2182
+ var m = this.layout.size, n = {}, a = this.layout._getOption("originLeft"), g = this.layout._getOption("originTop"), T = a ? "paddingLeft" : "paddingRight", L = a ? "left" : "right", w = a ? "right" : "left", x = this.position.x + m[T];
2183
+ n[L] = this.getXValue(x), n[w] = "";
2184
+ var R = g ? "paddingTop" : "paddingBottom", D = g ? "top" : "bottom", K = g ? "bottom" : "top", W = this.position.y + m[R];
2185
+ n[D] = this.getYValue(W), n[K] = "", this.css(n), this.emitEvent("layout", [this]);
2186
+ }, v.getXValue = function(m) {
2187
+ var n = this.layout._getOption("horizontal");
2188
+ return this.layout.options.percentPosition && !n ? m / this.layout.size.width * 100 + "%" : m + "px";
2189
+ }, v.getYValue = function(m) {
2190
+ var n = this.layout._getOption("horizontal");
2191
+ return this.layout.options.percentPosition && n ? m / this.layout.size.height * 100 + "%" : m + "px";
2192
+ }, v._transitionTo = function(m, n) {
2193
+ this.getPosition();
2194
+ var a = this.position.x, g = this.position.y, T = m == this.position.x && n == this.position.y;
2195
+ if (this.setPosition(m, n), T && !this.isTransitioning) {
2196
+ this.layoutPosition();
2197
+ return;
2198
+ }
2199
+ var L = m - a, w = n - g, x = {};
2200
+ x.transform = this.getTranslate(L, w), this.transition({
2201
+ to: x,
2202
+ onTransitionEnd: {
2203
+ transform: this.layoutPosition
2204
+ },
2205
+ isCleaning: !0
2206
+ });
2207
+ }, v.getTranslate = function(m, n) {
2208
+ var a = this.layout._getOption("originLeft"), g = this.layout._getOption("originTop");
2209
+ return m = a ? m : -m, n = g ? n : -n, "translate3d(" + m + "px, " + n + "px, 0)";
2210
+ }, v.goTo = function(m, n) {
2211
+ this.setPosition(m, n), this.layoutPosition();
2212
+ }, v.moveTo = v._transitionTo, v.setPosition = function(m, n) {
2213
+ this.position.x = parseFloat(m), this.position.y = parseFloat(n);
2214
+ }, v._nonTransition = function(m) {
2215
+ this.css(m.to), m.isCleaning && this._removeStyles(m.to);
2216
+ for (var n in m.onTransitionEnd)
2217
+ m.onTransitionEnd[n].call(this);
2218
+ }, v.transition = function(m) {
2219
+ if (!parseFloat(this.layout.options.transitionDuration)) {
2220
+ this._nonTransition(m);
2221
+ return;
2222
+ }
2223
+ var n = this._transn;
2224
+ for (var a in m.onTransitionEnd)
2225
+ n.onEnd[a] = m.onTransitionEnd[a];
2226
+ for (a in m.to)
2227
+ n.ingProperties[a] = !0, m.isCleaning && (n.clean[a] = !0);
2228
+ m.from && (this.css(m.from), this.element.offsetHeight), this.enableTransition(m.to), this.css(m.to), this.isTransitioning = !0;
2229
+ };
2230
+ function $(m) {
2231
+ return m.replace(/([A-Z])/g, function(n) {
2232
+ return "-" + n.toLowerCase();
2233
+ });
2234
+ }
2235
+ var r = "opacity," + $(d);
2236
+ v.enableTransition = function() {
2237
+ if (!this.isTransitioning) {
2238
+ var m = this.layout.options.transitionDuration;
2239
+ m = typeof m == "number" ? m + "ms" : m, this.css({
2240
+ transitionProperty: r,
2241
+ transitionDuration: m,
2242
+ transitionDelay: this.staggerDelay || 0
2243
+ }), this.element.addEventListener(s, this, !1);
2244
+ }
2245
+ }, v.onwebkitTransitionEnd = function(m) {
2246
+ this.ontransitionend(m);
2247
+ }, v.onotransitionend = function(m) {
2248
+ this.ontransitionend(m);
2249
+ };
2250
+ var b = {
2251
+ "-webkit-transform": "transform"
2252
+ };
2253
+ v.ontransitionend = function(m) {
2254
+ if (m.target === this.element) {
2255
+ var n = this._transn, a = b[m.propertyName] || m.propertyName;
2256
+ if (delete n.ingProperties[a], f(n.ingProperties) && this.disableTransition(), a in n.clean && (this.element.style[m.propertyName] = "", delete n.clean[a]), a in n.onEnd) {
2257
+ var g = n.onEnd[a];
2258
+ g.call(this), delete n.onEnd[a];
2259
+ }
2260
+ this.emitEvent("transitionEnd", [this]);
2261
+ }
2262
+ }, v.disableTransition = function() {
2263
+ this.removeTransitionStyles(), this.element.removeEventListener(s, this, !1), this.isTransitioning = !1;
2264
+ }, v._removeStyles = function(m) {
2265
+ var n = {};
2266
+ for (var a in m)
2267
+ n[a] = "";
2268
+ this.css(n);
2269
+ };
2270
+ var y = {
2271
+ transitionProperty: "",
2272
+ transitionDuration: "",
2273
+ transitionDelay: ""
2274
+ };
2275
+ return v.removeTransitionStyles = function() {
2276
+ this.css(y);
2277
+ }, v.stagger = function(m) {
2278
+ m = isNaN(m) ? 0 : m, this.staggerDelay = m + "ms";
2279
+ }, v.removeElem = function() {
2280
+ this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
2281
+ }, v.remove = function() {
2282
+ if (!h || !parseFloat(this.layout.options.transitionDuration)) {
2283
+ this.removeElem();
2284
+ return;
2285
+ }
2286
+ this.once("transitionEnd", function() {
2287
+ this.removeElem();
2288
+ }), this.hide();
2289
+ }, v.reveal = function() {
2290
+ delete this.isHidden, this.css({ display: "" });
2291
+ var m = this.layout.options, n = {}, a = this.getHideRevealTransitionEndProperty("visibleStyle");
2292
+ n[a] = this.onRevealTransitionEnd, this.transition({
2293
+ from: m.hiddenStyle,
2294
+ to: m.visibleStyle,
2295
+ isCleaning: !0,
2296
+ onTransitionEnd: n
2297
+ });
2298
+ }, v.onRevealTransitionEnd = function() {
2299
+ this.isHidden || this.emitEvent("reveal");
2300
+ }, v.getHideRevealTransitionEndProperty = function(m) {
2301
+ var n = this.layout.options[m];
2302
+ if (n.opacity)
2303
+ return "opacity";
2304
+ for (var a in n)
2305
+ return a;
2306
+ }, v.hide = function() {
2307
+ this.isHidden = !0, this.css({ display: "" });
2308
+ var m = this.layout.options, n = {}, a = this.getHideRevealTransitionEndProperty("hiddenStyle");
2309
+ n[a] = this.onHideTransitionEnd, this.transition({
2310
+ from: m.visibleStyle,
2311
+ to: m.hiddenStyle,
2312
+ // keep hidden stuff hidden
2313
+ isCleaning: !0,
2314
+ onTransitionEnd: n
2315
+ });
2316
+ }, v.onHideTransitionEnd = function() {
2317
+ this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide"));
2318
+ }, v.destroy = function() {
2319
+ this.css({
2320
+ position: "",
2321
+ left: "",
2322
+ right: "",
2323
+ top: "",
2324
+ bottom: "",
2325
+ transition: "",
2326
+ transform: ""
2327
+ });
2328
+ }, _;
2329
+ });
2330
+ }(Ze)), Ze.exports;
2331
+ }
2332
+ /*!
2333
+ * Outlayer v2.1.1
2334
+ * the brains and guts of a layout library
2335
+ * MIT license
2336
+ */
2337
+ var Tt;
2338
+ function Yo() {
2339
+ return Tt || (Tt = 1, function(c) {
2340
+ (function(o, t) {
2341
+ c.exports ? c.exports = t(
2342
+ o,
2343
+ lt(),
2344
+ ut(),
2345
+ jo(),
2346
+ Go()
2347
+ ) : o.Outlayer = t(
2348
+ o,
2349
+ o.EvEmitter,
2350
+ o.getSize,
2351
+ o.fizzyUIUtils,
2352
+ o.Outlayer.Item
2353
+ );
2354
+ })(window, function(t, u, f, i, h) {
2355
+ var d = t.console, s = t.jQuery, l = function() {
2356
+ }, _ = 0, v = {};
2357
+ function $(n, a) {
2358
+ var g = i.getQueryElement(n);
2359
+ if (!g) {
2360
+ d && d.error("Bad element for " + this.constructor.namespace + ": " + (g || n));
2361
+ return;
2362
+ }
2363
+ this.element = g, s && (this.$element = s(this.element)), this.options = i.extend({}, this.constructor.defaults), this.option(a);
2364
+ var T = ++_;
2365
+ this.element.outlayerGUID = T, v[T] = this, this._create();
2366
+ var L = this._getOption("initLayout");
2367
+ L && this.layout();
2368
+ }
2369
+ $.namespace = "outlayer", $.Item = h, $.defaults = {
2370
+ containerStyle: {
2371
+ position: "relative"
2372
+ },
2373
+ initLayout: !0,
2374
+ originLeft: !0,
2375
+ originTop: !0,
2376
+ resize: !0,
2377
+ resizeContainer: !0,
2378
+ // item options
2379
+ transitionDuration: "0.4s",
2380
+ hiddenStyle: {
2381
+ opacity: 0,
2382
+ transform: "scale(0.001)"
2383
+ },
2384
+ visibleStyle: {
2385
+ opacity: 1,
2386
+ transform: "scale(1)"
2387
+ }
2388
+ };
2389
+ var r = $.prototype;
2390
+ i.extend(r, u.prototype), r.option = function(n) {
2391
+ i.extend(this.options, n);
2392
+ }, r._getOption = function(n) {
2393
+ var a = this.constructor.compatOptions[n];
2394
+ return a && this.options[a] !== void 0 ? this.options[a] : this.options[n];
2395
+ }, $.compatOptions = {
2396
+ // currentName: oldName
2397
+ initLayout: "isInitLayout",
2398
+ horizontal: "isHorizontal",
2399
+ layoutInstant: "isLayoutInstant",
2400
+ originLeft: "isOriginLeft",
2401
+ originTop: "isOriginTop",
2402
+ resize: "isResizeBound",
2403
+ resizeContainer: "isResizingContainer"
2404
+ }, r._create = function() {
2405
+ this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), i.extend(this.element.style, this.options.containerStyle);
2406
+ var n = this._getOption("resize");
2407
+ n && this.bindResize();
2408
+ }, r.reloadItems = function() {
2409
+ this.items = this._itemize(this.element.children);
2410
+ }, r._itemize = function(n) {
2411
+ for (var a = this._filterFindItemElements(n), g = this.constructor.Item, T = [], L = 0; L < a.length; L++) {
2412
+ var w = a[L], x = new g(w, this);
2413
+ T.push(x);
2414
+ }
2415
+ return T;
2416
+ }, r._filterFindItemElements = function(n) {
2417
+ return i.filterFindElements(n, this.options.itemSelector);
2418
+ }, r.getItemElements = function() {
2419
+ return this.items.map(function(n) {
2420
+ return n.element;
2421
+ });
2422
+ }, r.layout = function() {
2423
+ this._resetLayout(), this._manageStamps();
2424
+ var n = this._getOption("layoutInstant"), a = n !== void 0 ? n : !this._isLayoutInited;
2425
+ this.layoutItems(this.items, a), this._isLayoutInited = !0;
2426
+ }, r._init = r.layout, r._resetLayout = function() {
2427
+ this.getSize();
2428
+ }, r.getSize = function() {
2429
+ this.size = f(this.element);
2430
+ }, r._getMeasurement = function(n, a) {
2431
+ var g = this.options[n], T;
2432
+ g ? (typeof g == "string" ? T = this.element.querySelector(g) : g instanceof HTMLElement && (T = g), this[n] = T ? f(T)[a] : g) : this[n] = 0;
2433
+ }, r.layoutItems = function(n, a) {
2434
+ n = this._getItemsForLayout(n), this._layoutItems(n, a), this._postLayout();
2435
+ }, r._getItemsForLayout = function(n) {
2436
+ return n.filter(function(a) {
2437
+ return !a.isIgnored;
2438
+ });
2439
+ }, r._layoutItems = function(n, a) {
2440
+ if (this._emitCompleteOnItems("layout", n), !(!n || !n.length)) {
2441
+ var g = [];
2442
+ n.forEach(function(T) {
2443
+ var L = this._getItemLayoutPosition(T);
2444
+ L.item = T, L.isInstant = a || T.isLayoutInstant, g.push(L);
2445
+ }, this), this._processLayoutQueue(g);
2446
+ }
2447
+ }, r._getItemLayoutPosition = function() {
2448
+ return {
2449
+ x: 0,
2450
+ y: 0
2451
+ };
2452
+ }, r._processLayoutQueue = function(n) {
2453
+ this.updateStagger(), n.forEach(function(a, g) {
2454
+ this._positionItem(a.item, a.x, a.y, a.isInstant, g);
2455
+ }, this);
2456
+ }, r.updateStagger = function() {
2457
+ var n = this.options.stagger;
2458
+ if (n == null) {
2459
+ this.stagger = 0;
2460
+ return;
2461
+ }
2462
+ return this.stagger = m(n), this.stagger;
2463
+ }, r._positionItem = function(n, a, g, T, L) {
2464
+ T ? n.goTo(a, g) : (n.stagger(L * this.stagger), n.moveTo(a, g));
2465
+ }, r._postLayout = function() {
2466
+ this.resizeContainer();
2467
+ }, r.resizeContainer = function() {
2468
+ var n = this._getOption("resizeContainer");
2469
+ if (n) {
2470
+ var a = this._getContainerSize();
2471
+ a && (this._setContainerMeasure(a.width, !0), this._setContainerMeasure(a.height, !1));
2472
+ }
2473
+ }, r._getContainerSize = l, r._setContainerMeasure = function(n, a) {
2474
+ if (n !== void 0) {
2475
+ var g = this.size;
2476
+ g.isBorderBox && (n += a ? g.paddingLeft + g.paddingRight + g.borderLeftWidth + g.borderRightWidth : g.paddingBottom + g.paddingTop + g.borderTopWidth + g.borderBottomWidth), n = Math.max(n, 0), this.element.style[a ? "width" : "height"] = n + "px";
2477
+ }
2478
+ }, r._emitCompleteOnItems = function(n, a) {
2479
+ var g = this;
2480
+ function T() {
2481
+ g.dispatchEvent(n + "Complete", null, [a]);
2482
+ }
2483
+ var L = a.length;
2484
+ if (!a || !L) {
2485
+ T();
2486
+ return;
2487
+ }
2488
+ var w = 0;
2489
+ function x() {
2490
+ w++, w == L && T();
2491
+ }
2492
+ a.forEach(function(R) {
2493
+ R.once(n, x);
2494
+ });
2495
+ }, r.dispatchEvent = function(n, a, g) {
2496
+ var T = a ? [a].concat(g) : g;
2497
+ if (this.emitEvent(n, T), s)
2498
+ if (this.$element = this.$element || s(this.element), a) {
2499
+ var L = s.Event(a);
2500
+ L.type = n, this.$element.trigger(L, g);
2501
+ } else
2502
+ this.$element.trigger(n, g);
2503
+ }, r.ignore = function(n) {
2504
+ var a = this.getItem(n);
2505
+ a && (a.isIgnored = !0);
2506
+ }, r.unignore = function(n) {
2507
+ var a = this.getItem(n);
2508
+ a && delete a.isIgnored;
2509
+ }, r.stamp = function(n) {
2510
+ n = this._find(n), n && (this.stamps = this.stamps.concat(n), n.forEach(this.ignore, this));
2511
+ }, r.unstamp = function(n) {
2512
+ n = this._find(n), n && n.forEach(function(a) {
2513
+ i.removeFrom(this.stamps, a), this.unignore(a);
2514
+ }, this);
2515
+ }, r._find = function(n) {
2516
+ if (n)
2517
+ return typeof n == "string" && (n = this.element.querySelectorAll(n)), n = i.makeArray(n), n;
2518
+ }, r._manageStamps = function() {
2519
+ !this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
2520
+ }, r._getBoundingRect = function() {
2521
+ var n = this.element.getBoundingClientRect(), a = this.size;
2522
+ this._boundingRect = {
2523
+ left: n.left + a.paddingLeft + a.borderLeftWidth,
2524
+ top: n.top + a.paddingTop + a.borderTopWidth,
2525
+ right: n.right - (a.paddingRight + a.borderRightWidth),
2526
+ bottom: n.bottom - (a.paddingBottom + a.borderBottomWidth)
2527
+ };
2528
+ }, r._manageStamp = l, r._getElementOffset = function(n) {
2529
+ var a = n.getBoundingClientRect(), g = this._boundingRect, T = f(n), L = {
2530
+ left: a.left - g.left - T.marginLeft,
2531
+ top: a.top - g.top - T.marginTop,
2532
+ right: g.right - a.right - T.marginRight,
2533
+ bottom: g.bottom - a.bottom - T.marginBottom
2534
+ };
2535
+ return L;
2536
+ }, r.handleEvent = i.handleEvent, r.bindResize = function() {
2537
+ t.addEventListener("resize", this), this.isResizeBound = !0;
2538
+ }, r.unbindResize = function() {
2539
+ t.removeEventListener("resize", this), this.isResizeBound = !1;
2540
+ }, r.onresize = function() {
2541
+ this.resize();
2542
+ }, i.debounceMethod($, "onresize", 100), r.resize = function() {
2543
+ !this.isResizeBound || !this.needsResizeLayout() || this.layout();
2544
+ }, r.needsResizeLayout = function() {
2545
+ var n = f(this.element), a = this.size && n;
2546
+ return a && n.innerWidth !== this.size.innerWidth;
2547
+ }, r.addItems = function(n) {
2548
+ var a = this._itemize(n);
2549
+ return a.length && (this.items = this.items.concat(a)), a;
2550
+ }, r.appended = function(n) {
2551
+ var a = this.addItems(n);
2552
+ a.length && (this.layoutItems(a, !0), this.reveal(a));
2553
+ }, r.prepended = function(n) {
2554
+ var a = this._itemize(n);
2555
+ if (a.length) {
2556
+ var g = this.items.slice(0);
2557
+ this.items = a.concat(g), this._resetLayout(), this._manageStamps(), this.layoutItems(a, !0), this.reveal(a), this.layoutItems(g);
2558
+ }
2559
+ }, r.reveal = function(n) {
2560
+ if (this._emitCompleteOnItems("reveal", n), !(!n || !n.length)) {
2561
+ var a = this.updateStagger();
2562
+ n.forEach(function(g, T) {
2563
+ g.stagger(T * a), g.reveal();
2564
+ });
2565
+ }
2566
+ }, r.hide = function(n) {
2567
+ if (this._emitCompleteOnItems("hide", n), !(!n || !n.length)) {
2568
+ var a = this.updateStagger();
2569
+ n.forEach(function(g, T) {
2570
+ g.stagger(T * a), g.hide();
2571
+ });
2572
+ }
2573
+ }, r.revealItemElements = function(n) {
2574
+ var a = this.getItems(n);
2575
+ this.reveal(a);
2576
+ }, r.hideItemElements = function(n) {
2577
+ var a = this.getItems(n);
2578
+ this.hide(a);
2579
+ }, r.getItem = function(n) {
2580
+ for (var a = 0; a < this.items.length; a++) {
2581
+ var g = this.items[a];
2582
+ if (g.element == n)
2583
+ return g;
2584
+ }
2585
+ }, r.getItems = function(n) {
2586
+ n = i.makeArray(n);
2587
+ var a = [];
2588
+ return n.forEach(function(g) {
2589
+ var T = this.getItem(g);
2590
+ T && a.push(T);
2591
+ }, this), a;
2592
+ }, r.remove = function(n) {
2593
+ var a = this.getItems(n);
2594
+ this._emitCompleteOnItems("remove", a), !(!a || !a.length) && a.forEach(function(g) {
2595
+ g.remove(), i.removeFrom(this.items, g);
2596
+ }, this);
2597
+ }, r.destroy = function() {
2598
+ var n = this.element.style;
2599
+ n.height = "", n.position = "", n.width = "", this.items.forEach(function(g) {
2600
+ g.destroy();
2601
+ }), this.unbindResize();
2602
+ var a = this.element.outlayerGUID;
2603
+ delete v[a], delete this.element.outlayerGUID, s && s.removeData(this.element, this.constructor.namespace);
2604
+ }, $.data = function(n) {
2605
+ n = i.getQueryElement(n);
2606
+ var a = n && n.outlayerGUID;
2607
+ return a && v[a];
2608
+ }, $.create = function(n, a) {
2609
+ var g = b($);
2610
+ return g.defaults = i.extend({}, $.defaults), i.extend(g.defaults, a), g.compatOptions = i.extend({}, $.compatOptions), g.namespace = n, g.data = $.data, g.Item = b(h), i.htmlInit(g, n), s && s.bridget && s.bridget(n, g), g;
2611
+ };
2612
+ function b(n) {
2613
+ function a() {
2614
+ n.apply(this, arguments);
2615
+ }
2616
+ return a.prototype = Object.create(n.prototype), a.prototype.constructor = a, a;
2617
+ }
2618
+ var y = {
2619
+ ms: 1,
2620
+ s: 1e3
2621
+ };
2622
+ function m(n) {
2623
+ if (typeof n == "number")
2624
+ return n;
2625
+ var a = n.match(/(^\d*\.?\d*)(\w*)/), g = a && a[1], T = a && a[2];
2626
+ if (!g.length)
2627
+ return 0;
2628
+ g = parseFloat(g);
2629
+ var L = y[T] || 1;
2630
+ return g * L;
2631
+ }
2632
+ return $.Item = h, $;
2633
+ });
2634
+ }(Ye)), Ye.exports;
2635
+ }
2636
+ /*!
2637
+ * Masonry v4.2.2
2638
+ * Cascading grid layout library
2639
+ * https://masonry.desandro.com
2640
+ * MIT License
2641
+ * by David DeSandro
2642
+ */
2643
+ (function(c) {
2644
+ (function(o, t) {
2645
+ c.exports ? c.exports = t(
2646
+ Yo(),
2647
+ ut()
2648
+ ) : o.Masonry = t(
2649
+ o.Outlayer,
2650
+ o.getSize
2651
+ );
2652
+ })(window, function(t, u) {
2653
+ var f = t.create("masonry");
2654
+ f.compatOptions.fitWidth = "isFitWidth";
2655
+ var i = f.prototype;
2656
+ return i._resetLayout = function() {
2657
+ this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];
2658
+ for (var h = 0; h < this.cols; h++)
2659
+ this.colYs.push(0);
2660
+ this.maxY = 0, this.horizontalColIndex = 0;
2661
+ }, i.measureColumns = function() {
2662
+ if (this.getContainerWidth(), !this.columnWidth) {
2663
+ var h = this.items[0], d = h && h.element;
2664
+ this.columnWidth = d && u(d).outerWidth || // if first elem has no width, default to size of container
2665
+ this.containerWidth;
2666
+ }
2667
+ var s = this.columnWidth += this.gutter, l = this.containerWidth + this.gutter, _ = l / s, v = s - l % s, $ = v && v < 1 ? "round" : "floor";
2668
+ _ = Math[$](_), this.cols = Math.max(_, 1);
2669
+ }, i.getContainerWidth = function() {
2670
+ var h = this._getOption("fitWidth"), d = h ? this.element.parentNode : this.element, s = u(d);
2671
+ this.containerWidth = s && s.innerWidth;
2672
+ }, i._getItemLayoutPosition = function(h) {
2673
+ h.getSize();
2674
+ var d = h.size.outerWidth % this.columnWidth, s = d && d < 1 ? "round" : "ceil", l = Math[s](h.size.outerWidth / this.columnWidth);
2675
+ l = Math.min(l, this.cols);
2676
+ for (var _ = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", v = this[_](l, h), $ = {
2677
+ x: this.columnWidth * v.col,
2678
+ y: v.y
2679
+ }, r = v.y + h.size.outerHeight, b = l + v.col, y = v.col; y < b; y++)
2680
+ this.colYs[y] = r;
2681
+ return $;
2682
+ }, i._getTopColPosition = function(h) {
2683
+ var d = this._getTopColGroup(h), s = Math.min.apply(Math, d);
2684
+ return {
2685
+ col: d.indexOf(s),
2686
+ y: s
2687
+ };
2688
+ }, i._getTopColGroup = function(h) {
2689
+ if (h < 2)
2690
+ return this.colYs;
2691
+ for (var d = [], s = this.cols + 1 - h, l = 0; l < s; l++)
2692
+ d[l] = this._getColGroupY(l, h);
2693
+ return d;
2694
+ }, i._getColGroupY = function(h, d) {
2695
+ if (d < 2)
2696
+ return this.colYs[h];
2697
+ var s = this.colYs.slice(h, h + d);
2698
+ return Math.max.apply(Math, s);
2699
+ }, i._getHorizontalColPosition = function(h, d) {
2700
+ var s = this.horizontalColIndex % this.cols, l = h > 1 && s + h > this.cols;
2701
+ s = l ? 0 : s;
2702
+ var _ = d.size.outerWidth && d.size.outerHeight;
2703
+ return this.horizontalColIndex = _ ? s + h : this.horizontalColIndex, {
2704
+ col: s,
2705
+ y: this._getColGroupY(s, h)
2706
+ };
2707
+ }, i._manageStamp = function(h) {
2708
+ var d = u(h), s = this._getElementOffset(h), l = this._getOption("originLeft"), _ = l ? s.left : s.right, v = _ + d.outerWidth, $ = Math.floor(_ / this.columnWidth);
2709
+ $ = Math.max(0, $);
2710
+ var r = Math.floor(v / this.columnWidth);
2711
+ r -= v % this.columnWidth ? 0 : 1, r = Math.min(this.cols - 1, r);
2712
+ for (var b = this._getOption("originTop"), y = (b ? s.top : s.bottom) + d.outerHeight, m = $; m <= r; m++)
2713
+ this.colYs[m] = Math.max(y, this.colYs[m]);
2714
+ }, i._getContainerSize = function() {
2715
+ this.maxY = Math.max.apply(Math, this.colYs);
2716
+ var h = {
2717
+ height: this.maxY
2718
+ };
2719
+ return this._getOption("fitWidth") && (h.width = this._getContainerFitWidth()), h;
2720
+ }, i._getContainerFitWidth = function() {
2721
+ for (var h = 0, d = this.cols; --d && this.colYs[d] === 0; )
2722
+ h++;
2723
+ return (this.cols - h) * this.columnWidth - this.gutter;
2724
+ }, i.needsResizeLayout = function() {
2725
+ var h = this.containerWidth;
2726
+ return this.getContainerWidth(), h != this.containerWidth;
2727
+ }, f;
2728
+ });
2729
+ })(Dt);
2730
+ var Qo = Dt.exports;
2731
+ const St = /* @__PURE__ */ Lt(Qo);
2732
+ var Ft = { exports: {} };
2733
+ /*!
2734
+ * imagesLoaded v4.1.4
2735
+ * JavaScript is all like "You images are done yet or what?"
2736
+ * MIT License
2737
+ */
2738
+ (function(c) {
2739
+ (function(o, t) {
2740
+ c.exports ? c.exports = t(
2741
+ o,
2742
+ lt()
2743
+ ) : o.imagesLoaded = t(
2744
+ o,
2745
+ o.EvEmitter
2746
+ );
2747
+ })(
2748
+ typeof window < "u" ? window : Z,
2749
+ // -------------------------- factory -------------------------- //
2750
+ function(t, u) {
2751
+ var f = t.jQuery, i = t.console;
2752
+ function h(r, b) {
2753
+ for (var y in b)
2754
+ r[y] = b[y];
2755
+ return r;
2756
+ }
2757
+ var d = Array.prototype.slice;
2758
+ function s(r) {
2759
+ if (Array.isArray(r))
2760
+ return r;
2761
+ var b = typeof r == "object" && typeof r.length == "number";
2762
+ return b ? d.call(r) : [r];
2763
+ }
2764
+ function l(r, b, y) {
2765
+ if (!(this instanceof l))
2766
+ return new l(r, b, y);
2767
+ var m = r;
2768
+ if (typeof r == "string" && (m = document.querySelectorAll(r)), !m) {
2769
+ i.error("Bad element for imagesLoaded " + (m || r));
2770
+ return;
2771
+ }
2772
+ this.elements = s(m), this.options = h({}, this.options), typeof b == "function" ? y = b : h(this.options, b), y && this.on("always", y), this.getImages(), f && (this.jqDeferred = new f.Deferred()), setTimeout(this.check.bind(this));
2773
+ }
2774
+ l.prototype = Object.create(u.prototype), l.prototype.options = {}, l.prototype.getImages = function() {
2775
+ this.images = [], this.elements.forEach(this.addElementImages, this);
2776
+ }, l.prototype.addElementImages = function(r) {
2777
+ r.nodeName == "IMG" && this.addImage(r), this.options.background === !0 && this.addElementBackgroundImages(r);
2778
+ var b = r.nodeType;
2779
+ if (!(!b || !_[b])) {
2780
+ for (var y = r.querySelectorAll("img"), m = 0; m < y.length; m++) {
2781
+ var n = y[m];
2782
+ this.addImage(n);
2783
+ }
2784
+ if (typeof this.options.background == "string") {
2785
+ var a = r.querySelectorAll(this.options.background);
2786
+ for (m = 0; m < a.length; m++) {
2787
+ var g = a[m];
2788
+ this.addElementBackgroundImages(g);
2789
+ }
2790
+ }
2791
+ }
2792
+ };
2793
+ var _ = {
2794
+ 1: !0,
2795
+ 9: !0,
2796
+ 11: !0
2797
+ };
2798
+ l.prototype.addElementBackgroundImages = function(r) {
2799
+ var b = getComputedStyle(r);
2800
+ if (b)
2801
+ for (var y = /url\((['"])?(.*?)\1\)/gi, m = y.exec(b.backgroundImage); m !== null; ) {
2802
+ var n = m && m[2];
2803
+ n && this.addBackground(n, r), m = y.exec(b.backgroundImage);
2804
+ }
2805
+ }, l.prototype.addImage = function(r) {
2806
+ var b = new v(r);
2807
+ this.images.push(b);
2808
+ }, l.prototype.addBackground = function(r, b) {
2809
+ var y = new $(r, b);
2810
+ this.images.push(y);
2811
+ }, l.prototype.check = function() {
2812
+ var r = this;
2813
+ if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
2814
+ this.complete();
2815
+ return;
2816
+ }
2817
+ function b(y, m, n) {
2818
+ setTimeout(function() {
2819
+ r.progress(y, m, n);
2820
+ });
2821
+ }
2822
+ this.images.forEach(function(y) {
2823
+ y.once("progress", b), y.check();
2824
+ });
2825
+ }, l.prototype.progress = function(r, b, y) {
2826
+ this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !r.isLoaded, this.emitEvent("progress", [this, r, b]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, r), this.progressedCount == this.images.length && this.complete(), this.options.debug && i && i.log("progress: " + y, r, b);
2827
+ }, l.prototype.complete = function() {
2828
+ var r = this.hasAnyBroken ? "fail" : "done";
2829
+ if (this.isComplete = !0, this.emitEvent(r, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
2830
+ var b = this.hasAnyBroken ? "reject" : "resolve";
2831
+ this.jqDeferred[b](this);
2832
+ }
2833
+ };
2834
+ function v(r) {
2835
+ this.img = r;
2836
+ }
2837
+ v.prototype = Object.create(u.prototype), v.prototype.check = function() {
2838
+ var r = this.getIsImageComplete();
2839
+ if (r) {
2840
+ this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
2841
+ return;
2842
+ }
2843
+ this.proxyImage = new Image(), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.proxyImage.src = this.img.src;
2844
+ }, v.prototype.getIsImageComplete = function() {
2845
+ return this.img.complete && this.img.naturalWidth;
2846
+ }, v.prototype.confirm = function(r, b) {
2847
+ this.isLoaded = r, this.emitEvent("progress", [this, this.img, b]);
2848
+ }, v.prototype.handleEvent = function(r) {
2849
+ var b = "on" + r.type;
2850
+ this[b] && this[b](r);
2851
+ }, v.prototype.onload = function() {
2852
+ this.confirm(!0, "onload"), this.unbindEvents();
2853
+ }, v.prototype.onerror = function() {
2854
+ this.confirm(!1, "onerror"), this.unbindEvents();
2855
+ }, v.prototype.unbindEvents = function() {
2856
+ this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
2857
+ };
2858
+ function $(r, b) {
2859
+ this.url = r, this.element = b, this.img = new Image();
2860
+ }
2861
+ return $.prototype = Object.create(v.prototype), $.prototype.check = function() {
2862
+ this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
2863
+ var r = this.getIsImageComplete();
2864
+ r && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
2865
+ }, $.prototype.unbindEvents = function() {
2866
+ this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
2867
+ }, $.prototype.confirm = function(r, b) {
2868
+ this.isLoaded = r, this.emitEvent("progress", [this, this.element, b]);
2869
+ }, l.makeJQueryPlugin = function(r) {
2870
+ r = r || t.jQuery, r && (f = r, f.fn.imagesLoaded = function(b, y) {
2871
+ var m = new l(this, b, y);
2872
+ return m.jqDeferred.promise(f(this));
2873
+ });
2874
+ }, l.makeJQueryPlugin(), l;
2875
+ }
2876
+ );
2877
+ })(Ft);
2878
+ var Ko = Ft.exports;
2879
+ const Xo = /* @__PURE__ */ Lt(Ko);
2880
+ function Jo(c) {
2881
+ return { all: c = c || /* @__PURE__ */ new Map(), on: function(o, t) {
2882
+ var u = c.get(o);
2883
+ u ? u.push(t) : c.set(o, [t]);
2884
+ }, off: function(o, t) {
2885
+ var u = c.get(o);
2886
+ u && (t ? u.splice(u.indexOf(t) >>> 0, 1) : c.set(o, []));
2887
+ }, emit: function(o, t) {
2888
+ var u = c.get(o);
2889
+ u && u.slice().map(function(f) {
2890
+ f(t);
2891
+ }), (u = c.get("*")) && u.slice().map(function(f) {
2892
+ f(o, t);
2893
+ });
2894
+ } };
2895
+ }
2896
+ const Ae = {
2897
+ "column-width": "columnWidth",
2898
+ "transition-duration": "transitionDuration",
2899
+ "item-selector": "itemSelector",
2900
+ "origin-left": "originLeft",
2901
+ "origin-top": "originTop",
2902
+ "fit-width": "fitWidth",
2903
+ stamp: "stamp",
2904
+ gutter: "gutter",
2905
+ "percent-position": "percentPosition",
2906
+ "horizontal-order": "horizontalOrder",
2907
+ stagger: "stagger",
2908
+ "destroy-delay": "destroyDelay"
2909
+ }, We = "vuemasonry.itemAdded", et = "vuemasonry.itemRemoved", tt = "vuemasonry.imageLoaded", nt = "vuemasonry.destroy", Zo = function(c) {
2910
+ return (c + "").toLowerCase() === "true";
2911
+ }, er = function(c) {
2912
+ return isNaN(c) ? c : parseInt(c);
2913
+ }, tr = function(c) {
2914
+ const o = {};
2915
+ return Array.prototype.slice.call(c).forEach(function(u) {
2916
+ Object.keys(Ae).indexOf(u.name) > -1 && (u.name.indexOf("origin") > -1 ? o[Ae[u.name]] = Zo(u.value) : u.name === "column-width" || u.name === "gutter" ? o[Ae[u.name]] = er(u.value) : o[Ae[u.name]] = u.value);
2917
+ }), o;
2918
+ }, Nt = {};
2919
+ Nt.install = function(c, o) {
2920
+ const t = Jo(), u = "VueMasonry", f = c;
2921
+ f.directive("masonry", {
2922
+ props: ["transitionDuration", " itemSelector", "destroyDelay"],
2923
+ mounted: function(i, h) {
2924
+ if (!St)
2925
+ throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
2926
+ const d = tr(i.attributes), s = new St(i, d), l = h.value || u, _ = d.destroyDelay ? parseInt(d.destroyDelay, 10) : void 0, v = function() {
2927
+ s.reloadItems(), s.layout();
2928
+ };
2929
+ In(() => {
2930
+ v();
2931
+ });
2932
+ const $ = function(b) {
2933
+ v();
2934
+ }, r = function(b) {
2935
+ t["off"](`${We}__${l}`, $), t["off"](`${et}__${l}`, $), t["off"](`${tt}__${l}`, $), t["off"](`${nt}__${l}`, r);
2936
+ const y = _ && !Number.isNaN(_) ? _ : 0;
2937
+ setTimeout(function() {
2938
+ s.destroy();
2939
+ }, y);
2940
+ };
2941
+ t["on"](`${We}__${l}`, $), t["on"](`${et}__${l}`, $), t["on"](`${tt}__${l}`, $), t["on"](`${nt}__${l}`, r);
2942
+ },
2943
+ unbind: function(i, h) {
2944
+ const d = h.value || u;
2945
+ t["emit"](`${nt}__${d}`);
2946
+ }
2947
+ }), f.directive("masonryTile", {
2948
+ mounted: function(i, h) {
2949
+ const d = h.value || u;
2950
+ t["emit"](`${We}__${d}`, {
2951
+ element: i
2952
+ }), new Xo(i, function() {
2953
+ t["emit"](`${tt}__${d}`, {
2954
+ element: i
2955
+ });
2956
+ });
2957
+ },
2958
+ unbind: function(i, h) {
2959
+ const d = h.value || u;
2960
+ t["emit"](`${et}__${d}`, {
2961
+ element: i
2962
+ });
2963
+ }
2964
+ });
2965
+ {
2966
+ const i = function(h) {
2967
+ const d = h || u;
2968
+ t["emit"](`${We}__${d}`);
2969
+ };
2970
+ c.config.globalProperties.$redrawVueMasonry = i, c.provide("redrawVueMasonry", i);
2971
+ }
2972
+ };
2973
+ const nr = xn(), ir = Un(), de = Tn({ components: { Hotel: qo } });
2974
+ de.use(nr);
2975
+ de.use(ir);
2976
+ de.use(Nt);
2977
+ de.use(Rn);
2978
+ de.use(Sn);
2979
+ de.use(qn);
2980
+ de.use(wn, { bootstrap: !1 });
2981
+ de.mount("#konnectio-hotel-app");