@konnectio/core 4.0.56-rc6 → 4.0.56-rc61

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 (195) hide show
  1. package/dist/{ActionField-YyW_C34E.js → ActionField-tyBtuplH.js} +43 -34
  2. package/dist/ActionField-tyBtuplH.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-xblTQw-r.js +294 -0
  4. package/dist/AvailabilitySkeleton-xblTQw-r.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DLNeZBMq.js +8213 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DLNeZBMq.js.br +0 -0
  7. package/dist/CheckoutWindow-DwDO_UFI.js +677 -0
  8. package/dist/CheckoutWindow-DwDO_UFI.js.br +0 -0
  9. package/dist/ErrorMessage-D3V2b1FO.js +45 -0
  10. package/dist/ErrorMessage-D3V2b1FO.js.br +0 -0
  11. package/dist/EventAvailabilityForm-CX8mAHaL.js +117 -0
  12. package/dist/EventAvailabilityForm-CX8mAHaL.js.br +0 -0
  13. package/dist/Field-CtZJY_BD.js +50 -0
  14. package/dist/Field-CtZJY_BD.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BczeCv48.js +18601 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BczeCv48.js.br +0 -0
  17. package/dist/TermsOfService-CAxlHXFH.js +36 -0
  18. package/dist/TermsOfService-CAxlHXFH.js.br +0 -0
  19. package/dist/_-BXd9hTZB.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-3b7FP_Lh.js +69 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-3b7FP_Lh.js.br +0 -0
  22. package/dist/_commonjsHelpers-20l0ha8g.js +17 -0
  23. package/dist/_sentry-release-injection-file-Cbnp5q97.js +9524 -0
  24. package/dist/_sentry-release-injection-file-Cbnp5q97.js.br +0 -0
  25. package/dist/availability.js +90 -140
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +62 -0
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +790 -500
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +113 -68
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +353 -409
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-IDe0Joiw.js +134 -0
  36. package/dist/giftCard-IDe0Joiw.js.br +0 -0
  37. package/dist/hotel.js +1516 -2445
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/masonry.plugin-Bb8vdNgz.js +12782 -0
  40. package/dist/masonry.plugin-Bb8vdNgz.js.br +0 -0
  41. package/dist/mitt-CMHUNNN-.js +2953 -0
  42. package/dist/mitt-CMHUNNN-.js.br +0 -0
  43. package/dist/polyfill.js +15079 -4765
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/dist/tracing-SGZEiE7O.js +2287 -0
  48. package/dist/tracing-SGZEiE7O.js.br +0 -0
  49. package/package.json +48 -42
  50. package/dist/ActionField-YyW_C34E.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-lYcDX41T.js +0 -239
  52. package/dist/AvailabilitySkeleton-lYcDX41T.js.br +0 -0
  53. package/dist/CheckoutWindow-T7-vrZyG.js +0 -205
  54. package/dist/CheckoutWindow-T7-vrZyG.js.br +0 -0
  55. package/dist/Container-w7O0He-s.js +0 -68
  56. package/dist/Container-w7O0He-s.js.br +0 -0
  57. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js +0 -8566
  58. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js.br +0 -0
  59. package/dist/Field-fWwF40rD.js +0 -42
  60. package/dist/Field-fWwF40rD.js.br +0 -0
  61. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js +0 -30461
  62. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js.br +0 -0
  63. package/dist/ThankYou-pUA2X7-4.js +0 -13316
  64. package/dist/ThankYou-pUA2X7-4.js.br +0 -0
  65. package/dist/_-TlutFgf7.js +0 -19
  66. package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
  67. package/dist/assets/typescript/mixins.d.ts +0 -34
  68. package/dist/availability.d.ts +0 -3
  69. package/dist/components/Alert.vue.d.ts +0 -28
  70. package/dist/components/Alert.vue.d.ts.map +0 -1
  71. package/dist/components/Clickable.vue.d.ts +0 -60
  72. package/dist/components/Clickable.vue.d.ts.map +0 -1
  73. package/dist/components/Container.vue.d.ts +0 -23
  74. package/dist/components/Container.vue.d.ts.map +0 -1
  75. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  76. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  77. package/dist/components/Gallery.vue.d.ts +0 -31
  78. package/dist/components/Gallery.vue.d.ts.map +0 -1
  79. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  80. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  81. package/dist/components/Icon.vue.d.ts +0 -38
  82. package/dist/components/Icon.vue.d.ts.map +0 -1
  83. package/dist/components/Loading.vue.d.ts +0 -29
  84. package/dist/components/Loading.vue.d.ts.map +0 -1
  85. package/dist/components/Spinner.vue.d.ts +0 -2
  86. package/dist/components/Spinner.vue.d.ts.map +0 -1
  87. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  88. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  89. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  90. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  91. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  92. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  93. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  94. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  95. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  96. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  97. package/dist/components/forms/_.vue.d.ts +0 -42
  98. package/dist/components/forms/_.vue.d.ts.map +0 -1
  99. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  100. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  101. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  102. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  103. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  104. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  105. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  106. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  107. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  108. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  109. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  110. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  111. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  112. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  113. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  114. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  115. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  116. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  117. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  118. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  119. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  120. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  121. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  122. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  123. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  124. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  125. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  126. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  127. package/dist/components/listings/Base.vue.d.ts +0 -56
  128. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  129. package/dist/components/listings/Event.vue.d.ts +0 -47
  130. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  131. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  132. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  133. package/dist/components/listings/Template.vue.d.ts +0 -21
  134. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  135. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  136. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  137. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  138. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  139. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  140. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  141. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  142. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  143. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  144. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  145. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  146. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  147. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  148. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  149. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  150. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  151. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  152. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  153. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  154. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  155. package/dist/components/skeletons/_.vue.d.ts +0 -36
  156. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  157. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  158. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  159. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  160. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  161. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  162. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  163. package/dist/entries/availability.d.ts +0 -5
  164. package/dist/entries/event.d.ts +0 -2
  165. package/dist/entries/gift-card-validation.d.ts +0 -5
  166. package/dist/entries/gift-card.d.ts +0 -5
  167. package/dist/entries/hotel.d.ts +0 -5
  168. package/dist/entries/navigation.d.ts +0 -1
  169. package/dist/entries/polyfill.d.ts +0 -0
  170. package/dist/event-mDcuoL9g.js +0 -358
  171. package/dist/event-mDcuoL9g.js.br +0 -0
  172. package/dist/event.d.ts +0 -3
  173. package/dist/gift-card-validation.d.ts +0 -3
  174. package/dist/gift-card.d.ts +0 -3
  175. package/dist/hotel.d.ts +0 -3
  176. package/dist/layouts/Availability.vue.d.ts +0 -25
  177. package/dist/layouts/Event.vue.d.ts +0 -18
  178. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  179. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  180. package/dist/layouts/Hotel.vue.d.ts +0 -36
  181. package/dist/layouts/_.vue.d.ts +0 -39
  182. package/dist/navigation.d.ts +0 -1
  183. package/dist/navigation.js +0 -1
  184. package/dist/plugins/i18n.d.ts +0 -5
  185. package/dist/polyfill.d.ts +0 -1
  186. package/dist/store/alert.d.ts +0 -28
  187. package/dist/store/applyGiftCard.d.ts +0 -28
  188. package/dist/store/availability.d.ts +0 -40
  189. package/dist/store/event.d.ts +0 -683
  190. package/dist/store/giftCard.d.ts +0 -83
  191. package/dist/store/payment.d.ts +0 -139
  192. package/dist/store/recaptcha.d.ts +0 -28
  193. package/dist/store/tracking.d.ts +0 -57
  194. package/dist/store/utilities.d.ts +0 -350
  195. package/dist/types/index.d.ts +0 -976
@@ -1,5 +1,13 @@
1
- import { k as c, v as V, f as m, o as d, m as i, w as v, x as q, y as g, z as t, A as k, T as B, p as I, C, I as A, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js";
2
- const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
1
+ import { d as c, c as b, a as i, b as u, w as V, e as g, u as s, f as v } from "./_sentry-release-injection-file-Cbnp5q97.js";
2
+ import { D as I, n as q, b as k, T as w, c as B, p as D, _ as C } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BczeCv48.js";
3
+ (function() {
4
+ try {
5
+ var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
6
+ n && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[n] = "6e8c1c62-2d2a-4b9c-a3d4-a49f54f7d0b8", o._sentryDebugIdIdentifier = "sentry-dbid-6e8c1c62-2d2a-4b9c-a3d4-a49f54f7d0b8");
7
+ } catch {
8
+ }
9
+ })();
10
+ const F = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ c({
3
11
  __name: "ActionField",
4
12
  props: {
5
13
  modelValue: {},
@@ -24,58 +32,58 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
24
32
  isLoading: { type: Boolean, default: !1 }
25
33
  },
26
34
  emits: ["update:modelValue", "action"],
27
- setup(y, { emit: f }) {
28
- const s = f, u = y, o = u.id || V();
29
- function r(e) {
30
- s("update:modelValue", e);
35
+ setup(o, { emit: n }) {
36
+ const r = n, p = o, d = p.id || I();
37
+ function m(e) {
38
+ r("update:modelValue", e);
31
39
  }
32
- const n = m({
33
- get: () => u.modelValue,
34
- set: (e) => r(e)
35
- }), p = m({
36
- get: () => u.modelValue,
37
- set: (e) => r(e)
40
+ const t = b({
41
+ get: () => p.modelValue,
42
+ set: (e) => m(e)
43
+ }), f = b({
44
+ get: () => p.modelValue,
45
+ set: (e) => m(e)
38
46
  });
39
- function b() {
40
- s("action");
47
+ function y() {
48
+ r("action");
41
49
  }
42
- return (e, a) => (d(), i(A, {
50
+ return (e, a) => (i(), u(D, {
43
51
  label: e.label,
44
- id: t(o),
52
+ id: s(d),
45
53
  icon: e.icon,
46
54
  "icon-type": e.iconType,
47
55
  required: e.required,
48
56
  type: e.type,
49
57
  readonly: e.readonly
50
58
  }, {
51
- default: v(() => [
52
- q("div", L, [
53
- e.type === "dropdown" && e.data ? (d(), i(g, {
59
+ default: V(() => [
60
+ g("div", F, [
61
+ e.type === "dropdown" && e.data ? (i(), u(q, {
54
62
  key: 0,
55
- modelValue: n.value,
56
- "onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
57
- id: t(o),
63
+ modelValue: t.value,
64
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => t.value = l),
65
+ id: s(d),
58
66
  options: e.data,
59
67
  name: e.name,
60
68
  required: e.required,
61
69
  placeholder: e.placeholder
62
- }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(k, {
70
+ }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (i(), u(k, {
63
71
  key: 1,
64
- modelValue: p.value,
65
- "onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
66
- id: t(o),
72
+ modelValue: f.value,
73
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => f.value = l),
74
+ id: s(d),
67
75
  "min-value": e.minValue,
68
76
  "max-value": e.maxValue
69
- }, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(B, {
77
+ }, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (i(), u(w, {
70
78
  key: 2,
71
- modelValue: n.value,
72
- "onUpdate:modelValue": a[2] || (a[2] = (l) => n.value = l),
73
- id: t(o),
79
+ modelValue: t.value,
80
+ "onUpdate:modelValue": a[2] || (a[2] = (l) => t.value = l),
81
+ id: s(d),
74
82
  name: e.name,
75
83
  required: e.required,
76
84
  placeholder: e.placeholder
77
85
  }, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
78
- I(C, {
86
+ v(B, {
79
87
  "data-test": `${e.name}Submit`,
80
88
  icon: e.buttonIcon,
81
89
  label: e.buttonLabel,
@@ -85,14 +93,15 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
85
93
  "is-loading": e.isLoading,
86
94
  disabled: e.buttonDisabled,
87
95
  secondary: e.secondary,
88
- onClickEvent: a[3] || (a[3] = (l) => b())
96
+ onClickEvent: a[3] || (a[3] = (l) => y())
89
97
  }, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
90
98
  ])
91
99
  ]),
92
100
  _: 1
93
101
  }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
94
102
  }
95
- }), h = /* @__PURE__ */ F(T, [["__scopeId", "data-v-3e77e321"]]);
103
+ }), T = /* @__PURE__ */ C(h, [["__scopeId", "data-v-3e77e321"]]);
96
104
  export {
97
- h as A
105
+ T as A
98
106
  };
107
+ //# sourceMappingURL=ActionField-tyBtuplH.js.map
Binary file
@@ -0,0 +1,294 @@
1
+ import { d as ee, G as me, r as D, c as s, z as K, o as be, a as n, g as d, f as u, w as pe, u as e, b as g, i as y, e as N, F as P, n as $, y as De, h as ge } from "./_sentry-release-injection-file-Cbnp5q97.js";
2
+ import { u as fe, s as x } from "./mitt-CMHUNNN-.js";
3
+ import { u as Q, x as W, e as ye, T as L, n as ke, b as X, c as Y, o as he, _ as ae, E as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BczeCv48.js";
4
+ import { _ as we } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DLNeZBMq.js";
5
+ import { F as f } from "./Field-CtZJY_BD.js";
6
+ (function() {
7
+ try {
8
+ var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new Error().stack;
9
+ t && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[t] = "702f3e31-7d3b-4c7e-a9d4-d92728382ac6", r._sentryDebugIdIdentifier = "sentry-dbid-702f3e31-7d3b-4c7e-a9d4-d92728382ac6");
10
+ } catch {
11
+ }
12
+ })();
13
+ const _e = {
14
+ class: "konnectio-availability-location",
15
+ key: "location"
16
+ }, Ve = {
17
+ id: "konnectio-availability-date-selection",
18
+ key: "multiDate"
19
+ }, Ae = {
20
+ id: "konnectio-availability-guest-selection",
21
+ key: "guests"
22
+ }, xe = {
23
+ id: "konnectio-availability-confirmation",
24
+ key: "confirm"
25
+ }, Le = /* @__PURE__ */ ee({
26
+ __name: "HotelAvailabilityForm",
27
+ props: {
28
+ booking: { type: Boolean, default: !1 },
29
+ link: {},
30
+ selectedLocation: { default: NaN }
31
+ },
32
+ setup(r) {
33
+ const { t } = fe(), _ = me("emitter"), l = r, {
34
+ adults: C,
35
+ children: S,
36
+ arrivalDate: U,
37
+ departureDate: I,
38
+ location: B,
39
+ hasHotelLocations: w,
40
+ hotelLocations: F,
41
+ controlLocation: le
42
+ } = x(Q()), { updateHotelAvailability: te } = Q(), { fetchAvailabilityData: ie } = W(), { areListingsLoading: H } = x(W()), {
43
+ firstSelectableDateOffset: R,
44
+ lastSelectableDateOffset: E,
45
+ disableChildSelection: m,
46
+ disableAdultSelection: c,
47
+ defaultAdultAmount: oe,
48
+ defaultChildAmount: ne,
49
+ maxAdultAmount: T,
50
+ maxChildAmount: z
51
+ } = x(ye()), se = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), ue = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), O = D(oe.value), G = D(ne.value), M = D(se()), j = D(ue()), q = D(le.value), b = s({
52
+ get: () => l.booking ? C.value : O.value,
53
+ set: (a) => {
54
+ l.booking ? C.value = Number(a) : O.value = Number(a);
55
+ }
56
+ }), k = s({
57
+ get: () => l.booking ? S.value : G.value,
58
+ set: (a) => {
59
+ l.booking ? S.value = Number(a) : G.value = Number(a);
60
+ }
61
+ }), v = s({
62
+ get: () => l.booking ? U.value : M.value,
63
+ set: (a) => {
64
+ l.booking ? U.value = a : M.value = a;
65
+ }
66
+ }), p = s({
67
+ get: () => l.booking ? I.value : j.value,
68
+ set: (a) => {
69
+ l.booking ? I.value = a : j.value = a;
70
+ }
71
+ }), V = s({
72
+ get: () => isNaN(l.selectedLocation) ? l.booking ? B.value : q.value : l.selectedLocation,
73
+ set: (a) => {
74
+ l.booking ? B.value = a : q.value = a;
75
+ }
76
+ }), J = s(() => {
77
+ const a = F.value.find(({ id: i }) => i === l.selectedLocation);
78
+ return a ? a.name : "";
79
+ }), h = D([]), de = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (R.value - 1)))), Ie = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + E.value))), Be = s(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + R.value))), re = s(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + (E.value + 1)))), A = s(() => !(!c && b.value === 0)), ce = s(() => typeof l.link != "string");
80
+ function ve() {
81
+ if (l.booking === !1)
82
+ if (te({
83
+ adults: b.value,
84
+ children: k.value,
85
+ arrivalDate: v.value,
86
+ departureDate: p.value,
87
+ location: V.value
88
+ }), ce.value) {
89
+ const a = he();
90
+ l.link[a] ? window.location.replace(l.link[a]) : l.link.en ? window.location.replace(l.link.en) : console.log("Sprog understøttes ikke");
91
+ } else
92
+ window.location.replace(l.link);
93
+ else
94
+ A.value && ie();
95
+ }
96
+ return K(v, (a) => {
97
+ const i = new Date(new Date(a).setDate(new Date(a).getDate() + 1));
98
+ new Date(p.value) < i && (p.value = i);
99
+ }), _.on("forcedDateChange", () => {
100
+ h.value = [v.value, p.value];
101
+ }), K(h, (a) => {
102
+ v.value = a[0], p.value = a[1];
103
+ }), be(() => {
104
+ h.value = [v.value, p.value];
105
+ }), (a, i) => (n(), d("form", {
106
+ id: "konnectio-availability-form",
107
+ class: $({ reservation: a.booking }),
108
+ type: "availability",
109
+ onSubmit: ge(ve, ["prevent"])
110
+ }, [
111
+ u(De, {
112
+ id: "konnectio-availability-form-content",
113
+ tag: "ul",
114
+ class: $([
115
+ { "is-booking-page": a.booking },
116
+ { "only-adult-guests": !e(c) && e(m) },
117
+ { "only-child-guests": !e(m) && e(c) },
118
+ { "no-guests": e(c) && e(m) },
119
+ { "all-guests": !e(c) && !e(m) },
120
+ { "has-location": e(w) }
121
+ ])
122
+ }, {
123
+ default: pe(() => [
124
+ e(w) ? (n(), d("li", _e, [
125
+ isNaN(a.selectedLocation) ? (n(), g(ke, {
126
+ key: 1,
127
+ modelValue: V.value,
128
+ "onUpdate:modelValue": i[1] || (i[1] = (o) => V.value = o),
129
+ label: e(t)("general.location"),
130
+ icon: "location-dot",
131
+ "icon-type": "fas",
132
+ "icon-placement": "label",
133
+ "label-key": "name",
134
+ "value-key": "id",
135
+ options: e(F),
136
+ searchable: !1
137
+ }, null, 8, ["modelValue", "label", "options"])) : (n(), g(L, {
138
+ key: 0,
139
+ modelValue: J.value,
140
+ "onUpdate:modelValue": i[0] || (i[0] = (o) => J.value = o),
141
+ label: e(t)("general.location"),
142
+ icon: "location-dot",
143
+ "icon-type": "fas",
144
+ "icon-placement": "label",
145
+ readonly: ""
146
+ }, null, 8, ["modelValue", "label"]))
147
+ ])) : y("", !0),
148
+ N("li", Ve, [
149
+ u(we, {
150
+ modelValue: h.value,
151
+ "onUpdate:modelValue": i[2] || (i[2] = (o) => h.value = o),
152
+ label: e(t)("availability.checkInOut"),
153
+ "icon-type": "fas",
154
+ "icon-placement": "label",
155
+ "min-range": 1,
156
+ "min-date": de.value,
157
+ "max-date": re.value,
158
+ range: ""
159
+ }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
160
+ y("", !0)
161
+ ]),
162
+ !e(c) || !e(m) ? (n(), d("li", Ae, [
163
+ e(c) ? y("", !0) : (n(), d(P, { key: 0 }, [
164
+ e(w) ? (n(), g(L, {
165
+ key: 0,
166
+ modelValue: b.value,
167
+ "onUpdate:modelValue": i[5] || (i[5] = (o) => b.value = o),
168
+ type: "number",
169
+ label: e(t)("availability.adults"),
170
+ description: e(t)("general.adultAgeRange"),
171
+ "icon-type": "fas",
172
+ "icon-placement": "label",
173
+ name: "adults",
174
+ icon: "male",
175
+ max: e(T)
176
+ }, null, 8, ["modelValue", "label", "description", "max"])) : (n(), g(X, {
177
+ key: 1,
178
+ modelValue: b.value,
179
+ "onUpdate:modelValue": i[6] || (i[6] = (o) => b.value = o),
180
+ label: e(t)("availability.adults"),
181
+ description: e(t)("general.adultAgeRange"),
182
+ "icon-type": "fas",
183
+ "icon-placement": "label",
184
+ name: "adults",
185
+ icon: "male",
186
+ "max-value": e(T)
187
+ }, null, 8, ["modelValue", "label", "description", "max-value"]))
188
+ ], 64)),
189
+ e(m) ? y("", !0) : (n(), d(P, { key: 1 }, [
190
+ e(w) ? (n(), g(L, {
191
+ key: 0,
192
+ modelValue: k.value,
193
+ "onUpdate:modelValue": i[7] || (i[7] = (o) => k.value = o),
194
+ type: "number",
195
+ label: e(t)("availability.children"),
196
+ description: e(t)("general.childAgeRange"),
197
+ "icon-type": "fas",
198
+ "icon-placement": "label",
199
+ name: "children",
200
+ icon: "child",
201
+ max: e(z)
202
+ }, null, 8, ["modelValue", "label", "description", "max"])) : (n(), g(X, {
203
+ key: 1,
204
+ modelValue: k.value,
205
+ "onUpdate:modelValue": i[8] || (i[8] = (o) => k.value = o),
206
+ label: e(t)("availability.children"),
207
+ description: e(t)("general.childAgeRange"),
208
+ "icon-type": "fas",
209
+ "icon-placement": "label",
210
+ name: "children",
211
+ icon: "child",
212
+ "max-value": e(z)
213
+ }, null, 8, ["modelValue", "label", "description", "max-value"]))
214
+ ], 64))
215
+ ])) : y("", !0),
216
+ N("li", xe, [
217
+ u(Y, {
218
+ class: "konnectio-availability-submit-small",
219
+ type: "submit",
220
+ icon: "search",
221
+ "icon-type": "fas",
222
+ disabled: !A.value,
223
+ "is-loading": e(H)
224
+ }, null, 8, ["disabled", "is-loading"]),
225
+ u(Y, {
226
+ class: "konnectio-availability-submit-large",
227
+ type: "submit",
228
+ label: e(t)("availability.buttonLabel"),
229
+ disabled: !A.value,
230
+ "is-loading": e(H)
231
+ }, null, 8, ["label", "disabled", "is-loading"])
232
+ ])
233
+ ]),
234
+ _: 1
235
+ }, 8, ["class"])
236
+ ], 34));
237
+ }
238
+ }), ze = /* @__PURE__ */ ae(Le, [["__scopeId", "data-v-f0dea03b"]]), Ne = { class: "availability-skeleton" }, $e = {
239
+ key: 0,
240
+ class: "availability-skeleton-navigation"
241
+ }, Ce = { class: "availability-skeleton-content" }, Se = {
242
+ key: 1,
243
+ class: "availability-skeleton-event"
244
+ }, Ue = /* @__PURE__ */ ee({
245
+ __name: "AvailabilitySkeleton",
246
+ props: {
247
+ view: { default: "hotel" },
248
+ hotel: { type: Boolean, default: !1 }
249
+ },
250
+ setup(r) {
251
+ return (t, _) => (n(), d("div", Ne, [
252
+ t.view === "both" ? (n(), d("div", $e, [
253
+ u(Z, {
254
+ height: "28px",
255
+ width: "60px",
256
+ "border-radius": "20px"
257
+ }),
258
+ u(Z, {
259
+ height: "28px",
260
+ width: "60px",
261
+ "border-radius": "20px"
262
+ })
263
+ ])) : y("", !0),
264
+ N("div", Ce, [
265
+ t.view !== "event" ? (n(), d("div", {
266
+ key: 0,
267
+ class: $([
268
+ "availability-skeleton-hotel",
269
+ { "within-hotel": t.hotel }
270
+ ])
271
+ }, [
272
+ u(f, { "with-icon": "" }),
273
+ u(f, { "with-icon": "" }),
274
+ u(f, { "with-icon": "" }),
275
+ u(f, {
276
+ "with-icon": "",
277
+ "no-label": ""
278
+ })
279
+ ], 2)) : (n(), d("div", Se, [
280
+ u(f, { "with-icon": "" }),
281
+ u(f, {
282
+ "with-icon": "",
283
+ "no-label": ""
284
+ })
285
+ ]))
286
+ ])
287
+ ]));
288
+ }
289
+ }), Oe = /* @__PURE__ */ ae(Ue, [["__scopeId", "data-v-17762b9b"]]);
290
+ export {
291
+ Oe as A,
292
+ ze as H
293
+ };
294
+ //# sourceMappingURL=AvailabilitySkeleton-xblTQw-r.js.map