@konnectio/core 4.0.56-rc1 → 4.0.56-rc11

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 (191) hide show
  1. package/dist/{ActionField-d9rG0jaU.js → ActionField-BCGIGizy.js} +27 -28
  2. package/dist/ActionField-BCGIGizy.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-d30Akjrq.js +214 -0
  4. package/dist/AvailabilitySkeleton-d30Akjrq.js.br +0 -0
  5. package/dist/{CheckoutWindow-qcH3-VM_.js → CheckoutWindow-Er5Fh6JL.js} +46 -47
  6. package/dist/CheckoutWindow-Er5Fh6JL.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-P6b6EBxJ.js → DateField.vue_vue_type_style_index_0_lang-uh-8PtWD.js} +242 -243
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-uh-8PtWD.js.br +0 -0
  9. package/dist/{Field-6RS3B8_R.js → Field-yVjo13cY.js} +12 -13
  10. package/dist/Field-yVjo13cY.js.br +0 -0
  11. package/dist/SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js +30449 -0
  12. package/dist/SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js.br +0 -0
  13. package/dist/{ThankYou-DNyz9gET.js → ThankYou-HHVwQVzN.js} +802 -821
  14. package/dist/ThankYou-HHVwQVzN.js.br +0 -0
  15. package/dist/_-3f6HQpXv.js +19 -0
  16. package/dist/_commonjsHelpers-2ufMB8rV.js +30 -0
  17. package/dist/availability.js +118 -98
  18. package/dist/availability.js.br +0 -0
  19. package/dist/{event-LEsu5Cet.js → event-ZitNye5j.js} +9 -10
  20. package/dist/event-ZitNye5j.js.br +0 -0
  21. package/dist/event.js +452 -427
  22. package/dist/event.js.br +0 -0
  23. package/dist/gift-card-validation.js +63 -54
  24. package/dist/gift-card-validation.js.br +0 -0
  25. package/dist/gift-card.js +276 -268
  26. package/dist/gift-card.js.br +0 -0
  27. package/dist/hotel.js +1574 -1551
  28. package/dist/hotel.js.br +0 -0
  29. package/dist/polyfill.js +3201 -3210
  30. package/dist/polyfill.js.br +0 -0
  31. package/dist/style.css +1 -1
  32. package/dist/style.css.br +0 -0
  33. package/package.json +26 -17
  34. package/dist/ActionField-d9rG0jaU.js.br +0 -0
  35. package/dist/ActionField-nq9V0_JV.cjs +0 -1
  36. package/dist/AvailabilitySkeleton-S7O6QTqw.js +0 -242
  37. package/dist/AvailabilitySkeleton-S7O6QTqw.js.br +0 -0
  38. package/dist/AvailabilitySkeleton-t04vAe88.cjs +0 -1
  39. package/dist/CheckoutWindow-qcH3-VM_.js.br +0 -0
  40. package/dist/CheckoutWindow-rPfu1tP8.cjs +0 -1
  41. package/dist/Container-SFp0kgn4.js +0 -59
  42. package/dist/Container-SFp0kgn4.js.br +0 -0
  43. package/dist/Container-lECH326w.cjs +0 -1
  44. package/dist/DateField.vue_vue_type_style_index_0_lang-P6b6EBxJ.js.br +0 -0
  45. package/dist/DateField.vue_vue_type_style_index_0_lang-UexfS9Zy.cjs +0 -2
  46. package/dist/Field-5wMDM5la.cjs +0 -1
  47. package/dist/Field-6RS3B8_R.js.br +0 -0
  48. package/dist/SelectField.vue_vue_type_style_index_0_lang-nNdXDbm1.js +0 -21406
  49. package/dist/SelectField.vue_vue_type_style_index_0_lang-nNdXDbm1.js.br +0 -0
  50. package/dist/SelectField.vue_vue_type_style_index_0_lang-rqiMQ02F.cjs +0 -851
  51. package/dist/ThankYou-DNyz9gET.js.br +0 -0
  52. package/dist/ThankYou-TJpfWuG6.cjs +0 -59
  53. package/dist/_-8x0VO3o7.js +0 -20
  54. package/dist/_-ZDO-C_Wh.cjs +0 -1
  55. package/dist/_commonjsHelpers-f3sTPFkQ.js +0 -8
  56. package/dist/_commonjsHelpers-f52AuuUj.cjs +0 -1
  57. package/dist/assets/typescript/mixins.d.ts +0 -34
  58. package/dist/availability.cjs +0 -2
  59. package/dist/availability.d.ts +0 -3
  60. package/dist/components/Alert.vue.d.ts +0 -5
  61. package/dist/components/Alert.vue.d.ts.map +0 -1
  62. package/dist/components/Clickable.vue.d.ts +0 -5
  63. package/dist/components/Clickable.vue.d.ts.map +0 -1
  64. package/dist/components/Container.vue.d.ts +0 -5
  65. package/dist/components/Container.vue.d.ts.map +0 -1
  66. package/dist/components/ErrorMessage.vue.d.ts +0 -5
  67. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  68. package/dist/components/Gallery.vue.d.ts +0 -5
  69. package/dist/components/Gallery.vue.d.ts.map +0 -1
  70. package/dist/components/GoogleNotice.vue.d.ts +0 -4
  71. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  72. package/dist/components/Icon.vue.d.ts +0 -5
  73. package/dist/components/Icon.vue.d.ts.map +0 -1
  74. package/dist/components/Loading.vue.d.ts +0 -5
  75. package/dist/components/Loading.vue.d.ts.map +0 -1
  76. package/dist/components/Spinner.vue.d.ts +0 -4
  77. package/dist/components/Spinner.vue.d.ts.map +0 -1
  78. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -5
  79. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  80. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -5
  81. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  82. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -4
  83. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  84. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -5
  85. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  86. package/dist/components/forms/ReservationForm.vue.d.ts +0 -6
  87. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  88. package/dist/components/forms/_.vue.d.ts +0 -4
  89. package/dist/components/forms/_.vue.d.ts.map +0 -1
  90. package/dist/components/inputs/Checkbox.vue.d.ts +0 -5
  91. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  92. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -5
  93. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  94. package/dist/components/inputs/DateField.vue.d.ts +0 -5
  95. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  96. package/dist/components/inputs/InputField.vue.d.ts +0 -5
  97. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  98. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -5
  99. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  100. package/dist/components/inputs/NumberField.vue.d.ts +0 -5
  101. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  102. package/dist/components/inputs/SelectField.vue.d.ts +0 -5
  103. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  104. package/dist/components/inputs/TextField.vue.d.ts +0 -5
  105. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  106. package/dist/components/inputs/TimeField.vue.d.ts +0 -5
  107. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  108. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -5
  109. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  110. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -5
  111. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  112. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -5
  113. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  114. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -5
  115. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  116. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -5
  117. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  118. package/dist/components/listings/Base.vue.d.ts +0 -6
  119. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  120. package/dist/components/listings/Event.vue.d.ts +0 -5
  121. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  122. package/dist/components/listings/Hotel.vue.d.ts +0 -5
  123. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  124. package/dist/components/listings/Template.vue.d.ts +0 -5
  125. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  126. package/dist/components/side-panels/Base.vue.d.ts +0 -6
  127. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  128. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -5
  129. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  130. package/dist/components/side-panels/Template.vue.d.ts +0 -5
  131. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  132. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -5
  133. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  134. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -5
  135. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  136. package/dist/components/skeletons/Field.vue.d.ts +0 -5
  137. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  138. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -5
  139. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  140. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -5
  141. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  142. package/dist/components/skeletons/Listing.vue.d.ts +0 -5
  143. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  144. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -5
  145. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  146. package/dist/components/skeletons/_.vue.d.ts +0 -5
  147. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  148. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -5
  149. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  150. package/dist/components/views/TermsOfService.vue.d.ts +0 -5
  151. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  152. package/dist/components/views/ThankYou.vue.d.ts +0 -5
  153. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  154. package/dist/entries/availability.d.ts +0 -5
  155. package/dist/entries/event.d.ts +0 -2
  156. package/dist/entries/gift-card-validation.d.ts +0 -5
  157. package/dist/entries/gift-card.d.ts +0 -5
  158. package/dist/entries/hotel.d.ts +0 -5
  159. package/dist/entries/navigation.d.ts +0 -1
  160. package/dist/entries/polyfill.d.ts +0 -0
  161. package/dist/event-BwfZY1iy.cjs +0 -1
  162. package/dist/event-LEsu5Cet.js.br +0 -0
  163. package/dist/event.cjs +0 -1
  164. package/dist/event.d.ts +0 -3
  165. package/dist/gift-card-validation.cjs +0 -1
  166. package/dist/gift-card-validation.d.ts +0 -3
  167. package/dist/gift-card.cjs +0 -1
  168. package/dist/gift-card.d.ts +0 -3
  169. package/dist/hotel.cjs +0 -19
  170. package/dist/hotel.d.ts +0 -3
  171. package/dist/layouts/Availability.vue.d.ts +0 -25
  172. package/dist/layouts/Event.vue.d.ts +0 -18
  173. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  174. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  175. package/dist/layouts/Hotel.vue.d.ts +0 -36
  176. package/dist/layouts/_.vue.d.ts +0 -39
  177. package/dist/navigation.cjs +0 -1
  178. package/dist/navigation.d.ts +0 -1
  179. package/dist/plugins/i18n.d.ts +0 -5
  180. package/dist/polyfill.cjs +0 -4
  181. package/dist/polyfill.d.ts +0 -1
  182. package/dist/store/alert.d.ts +0 -28
  183. package/dist/store/applyGiftCard.d.ts +0 -28
  184. package/dist/store/availability.d.ts +0 -40
  185. package/dist/store/event.d.ts +0 -683
  186. package/dist/store/giftCard.d.ts +0 -83
  187. package/dist/store/payment.d.ts +0 -139
  188. package/dist/store/recaptcha.d.ts +0 -28
  189. package/dist/store/tracking.d.ts +0 -57
  190. package/dist/store/utilities.d.ts +0 -350
  191. package/dist/types/index.d.ts +0 -976
@@ -1,5 +1,4 @@
1
- import { defineComponent as c, computed as p, openBlock as d, createBlock as i, unref as t, withCtx as V, createElementVNode as v, createVNode as q } from "vue";
2
- import { r as g, I as k, j as I, k as B, T as C, C as F, _ as A } from "./SelectField.vue_vue_type_style_index_0_lang-nNdXDbm1.js";
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-Ywo3vyws.js";
3
2
  const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
4
3
  __name: "ActionField",
5
4
  props: {
@@ -26,57 +25,57 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
26
25
  },
27
26
  emits: ["update:modelValue", "action"],
28
27
  setup(y, { emit: f }) {
29
- const r = f, u = y, a = u.id || g();
30
- function s(e) {
31
- r("update:modelValue", e);
28
+ const s = f, u = y, o = u.id || V();
29
+ function r(e) {
30
+ s("update:modelValue", e);
32
31
  }
33
- const n = p({
32
+ const n = m({
34
33
  get: () => u.modelValue,
35
- set: (e) => s(e)
36
- }), m = p({
34
+ set: (e) => r(e)
35
+ }), p = m({
37
36
  get: () => u.modelValue,
38
- set: (e) => s(e)
37
+ set: (e) => r(e)
39
38
  });
40
39
  function b() {
41
- r("action");
40
+ s("action");
42
41
  }
43
- return (e, l) => (d(), i(k, {
42
+ return (e, a) => (d(), i(A, {
44
43
  label: e.label,
45
- id: t(a),
44
+ id: t(o),
46
45
  icon: e.icon,
47
46
  "icon-type": e.iconType,
48
47
  required: e.required,
49
48
  type: e.type,
50
49
  readonly: e.readonly
51
50
  }, {
52
- default: V(() => [
53
- v("div", L, [
54
- e.type === "dropdown" && e.data ? (d(), i(I, {
51
+ default: v(() => [
52
+ q("div", L, [
53
+ e.type === "dropdown" && e.data ? (d(), i(g, {
55
54
  key: 0,
56
55
  modelValue: n.value,
57
- "onUpdate:modelValue": l[0] || (l[0] = (o) => n.value = o),
58
- id: t(a),
56
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
57
+ id: t(o),
59
58
  options: e.data,
60
59
  name: e.name,
61
60
  required: e.required,
62
61
  placeholder: e.placeholder
63
- }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(B, {
62
+ }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(k, {
64
63
  key: 1,
65
- modelValue: m.value,
66
- "onUpdate:modelValue": l[1] || (l[1] = (o) => m.value = o),
67
- id: t(a),
64
+ modelValue: p.value,
65
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
66
+ id: t(o),
68
67
  "min-value": e.minValue,
69
68
  "max-value": e.maxValue
70
- }, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(C, {
69
+ }, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(B, {
71
70
  key: 2,
72
71
  modelValue: n.value,
73
- "onUpdate:modelValue": l[2] || (l[2] = (o) => n.value = o),
74
- id: t(a),
72
+ "onUpdate:modelValue": a[2] || (a[2] = (l) => n.value = l),
73
+ id: t(o),
75
74
  name: e.name,
76
75
  required: e.required,
77
76
  placeholder: e.placeholder
78
77
  }, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
79
- q(F, {
78
+ I(C, {
80
79
  "data-test": `${e.name}Submit`,
81
80
  icon: e.buttonIcon,
82
81
  label: e.buttonLabel,
@@ -86,14 +85,14 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
86
85
  "is-loading": e.isLoading,
87
86
  disabled: e.buttonDisabled,
88
87
  secondary: e.secondary,
89
- onClickEvent: l[3] || (l[3] = (o) => b())
88
+ onClickEvent: a[3] || (a[3] = (l) => b())
90
89
  }, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
91
90
  ])
92
91
  ]),
93
92
  _: 1
94
93
  }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
95
94
  }
96
- }), U = /* @__PURE__ */ A(T, [["__scopeId", "data-v-3e77e321"]]);
95
+ }), h = /* @__PURE__ */ F(T, [["__scopeId", "data-v-3e77e321"]]);
97
96
  export {
98
- U as A
97
+ h as A
99
98
  };
Binary file
@@ -0,0 +1,214 @@
1
+ import { k as N, B as j, s as V, W as B, X as R, c as J, r as K, f as m, Y as C, Z as P, o as t, l as s, x as A, z as e, p as i, G as y, y as Q, n as v, $ as F, m as w, T as H, A as E, C as I, q as x, L as ee, h as ae, _ as O } from "./SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js";
2
+ import { _ as le } from "./DateField.vue_vue_type_style_index_0_lang-uh-8PtWD.js";
3
+ import { E as z } from "./_-3f6HQpXv.js";
4
+ import { F as p } from "./Field-yVjo13cY.js";
5
+ const te = {
6
+ key: 0,
7
+ class: "konnectio-availability-location"
8
+ }, ie = { id: "fresh-booking-availability-date-selection" }, ne = {
9
+ key: 1,
10
+ id: "fresh-booking-availability-guest-selection"
11
+ }, oe = { id: "fresh-booking-availability-confirmation" }, se = /* @__PURE__ */ N({
12
+ __name: "HotelAvailabilityForm",
13
+ props: {
14
+ booking: { type: Boolean, default: !1 },
15
+ link: {}
16
+ },
17
+ setup(S) {
18
+ const { t: a } = j(), d = S, {
19
+ adults: c,
20
+ children: r,
21
+ arrivalDate: f,
22
+ departureDate: g,
23
+ location: D,
24
+ isExpired: T
25
+ } = V(B()), { reset: q } = B(), { fetchAvailabilityData: M } = R(), { areListingsLoading: L, hotelList: G, hasHotelList: k } = V(R()), {
26
+ firstSelectableDateOffset: U,
27
+ lastSelectableDateOffset: $,
28
+ disableChildSelection: b,
29
+ disableAdultSelection: u
30
+ } = V(J()), h = K([]), W = m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (U.value - 1))));
31
+ m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + $.value))), m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + U.value)));
32
+ const X = m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + ($.value + 1)))), _ = m(() => !(!u && c.value === 0)), Y = m(() => typeof d.link != "string");
33
+ function Z() {
34
+ if (d.booking === !1)
35
+ if (Y.value) {
36
+ const n = ae();
37
+ d.link[n] ? window.location.replace(d.link[n]) : d.link.en ? window.location.replace(d.link.en) : console.log("Sprog understøttes ikke");
38
+ } else
39
+ window.location.replace(d.link);
40
+ else
41
+ _.value && M();
42
+ }
43
+ return C(f, (n) => {
44
+ const l = new Date(new Date(n).setDate(new Date(n).getDate() + 1));
45
+ new Date(g.value) < l && (g.value = l);
46
+ }), C(h, (n) => {
47
+ f.value = n[0], g.value = n[1];
48
+ }), P(() => {
49
+ T.value && q(), h.value = [f.value, g.value];
50
+ }), (n, l) => (t(), s("form", {
51
+ id: "konnectio-availability-form",
52
+ class: x({ reservation: n.booking }),
53
+ type: "availability",
54
+ onSubmit: ee(Z, ["prevent"])
55
+ }, [
56
+ A("ul", {
57
+ id: "konnectio-availability-form-content",
58
+ class: x([
59
+ { "is-booking-page": n.booking },
60
+ { "only-adult-guests": !e(u) && e(b) },
61
+ { "only-child-guests": !e(b) && e(u) },
62
+ { "no-guests": e(u) && e(b) },
63
+ { "all-guests": !e(u) && !e(b) },
64
+ { "has-location": e(k) }
65
+ ])
66
+ }, [
67
+ e(k) ? (t(), s("li", te, [
68
+ i(Q, {
69
+ modelValue: e(D),
70
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => y(D) ? D.value = o : null),
71
+ label: e(a)("general.location"),
72
+ icon: "location-dot",
73
+ "icon-type": "fas",
74
+ "icon-placement": "label",
75
+ options: e(G),
76
+ searchable: !1
77
+ }, null, 8, ["modelValue", "label", "options"])
78
+ ])) : v("", !0),
79
+ A("li", ie, [
80
+ i(le, {
81
+ modelValue: h.value,
82
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => h.value = o),
83
+ label: e(a)("availability.checkInOut"),
84
+ "icon-type": "fas",
85
+ "icon-placement": "label",
86
+ "min-range": 1,
87
+ "min-date": W.value,
88
+ "max-date": X.value,
89
+ range: ""
90
+ }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
91
+ v("", !0)
92
+ ]),
93
+ !e(u) || !e(b) ? (t(), s("li", ne, [
94
+ e(u) ? v("", !0) : (t(), s(F, { key: 0 }, [
95
+ e(k) ? (t(), w(H, {
96
+ key: 0,
97
+ modelValue: e(c),
98
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => y(c) ? c.value = o : null),
99
+ label: e(a)("availability.adults"),
100
+ description: e(a)("general.adultAgeRange"),
101
+ "icon-type": "fas",
102
+ "icon-placement": "label",
103
+ name: "adults",
104
+ icon: "male"
105
+ }, null, 8, ["modelValue", "label", "description"])) : (t(), w(E, {
106
+ key: 1,
107
+ modelValue: e(c),
108
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => y(c) ? c.value = o : null),
109
+ label: e(a)("availability.adults"),
110
+ description: e(a)("general.adultAgeRange"),
111
+ "icon-type": "fas",
112
+ "icon-placement": "label",
113
+ name: "adults",
114
+ icon: "male"
115
+ }, null, 8, ["modelValue", "label", "description"]))
116
+ ], 64)),
117
+ e(b) ? v("", !0) : (t(), s(F, { key: 1 }, [
118
+ e(k) ? (t(), w(H, {
119
+ key: 0,
120
+ modelValue: e(r),
121
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => y(r) ? r.value = o : null),
122
+ label: e(a)("availability.children"),
123
+ description: e(a)("general.childAgeRange"),
124
+ "icon-type": "fas",
125
+ "icon-placement": "label",
126
+ name: "children",
127
+ icon: "child"
128
+ }, null, 8, ["modelValue", "label", "description"])) : (t(), w(E, {
129
+ key: 1,
130
+ modelValue: e(r),
131
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => y(r) ? r.value = o : null),
132
+ label: e(a)("availability.children"),
133
+ description: e(a)("general.childAgeRange"),
134
+ "icon-type": "fas",
135
+ "icon-placement": "label",
136
+ name: "children",
137
+ icon: "child"
138
+ }, null, 8, ["modelValue", "label", "description"]))
139
+ ], 64))
140
+ ])) : v("", !0),
141
+ A("li", oe, [
142
+ i(I, {
143
+ class: "konnectio-availability-submit-small",
144
+ type: "submit",
145
+ icon: "search",
146
+ "icon-type": "fas",
147
+ disabled: !_.value,
148
+ "is-loading": e(L)
149
+ }, null, 8, ["disabled", "is-loading"]),
150
+ i(I, {
151
+ class: "konnectio-availability-submit-large",
152
+ type: "submit",
153
+ label: e(a)("availability.buttonLabel"),
154
+ disabled: !_.value,
155
+ "is-loading": e(L)
156
+ }, null, 8, ["label", "disabled", "is-loading"])
157
+ ])
158
+ ], 2)
159
+ ], 34));
160
+ }
161
+ }), fe = /* @__PURE__ */ O(se, [["__scopeId", "data-v-50791fef"]]), de = { class: "availability-skeleton" }, ce = {
162
+ key: 0,
163
+ class: "availability-skeleton-navigation"
164
+ }, ue = {
165
+ key: 2,
166
+ class: "availability-skeleton-event"
167
+ }, re = /* @__PURE__ */ N({
168
+ __name: "AvailabilitySkeleton",
169
+ props: {
170
+ view: { default: "hotel" },
171
+ hotel: { type: Boolean, default: !1 }
172
+ },
173
+ setup(S) {
174
+ return (a, d) => (t(), s("div", de, [
175
+ a.view === "both" ? (t(), s("div", ce, [
176
+ i(z, {
177
+ height: "28px",
178
+ width: "60px",
179
+ "border-radius": "20px"
180
+ }),
181
+ i(z, {
182
+ height: "28px",
183
+ width: "60px",
184
+ "border-radius": "20px"
185
+ })
186
+ ])) : v("", !0),
187
+ a.view !== "event" ? (t(), s("div", {
188
+ key: 1,
189
+ class: x([
190
+ "availability-skeleton-hotel",
191
+ { "within-hotel": a.hotel }
192
+ ])
193
+ }, [
194
+ i(p, { "with-icon": "" }),
195
+ i(p, { "with-icon": "" }),
196
+ i(p, { "with-icon": "" }),
197
+ i(p, {
198
+ "with-icon": "",
199
+ "no-label": ""
200
+ })
201
+ ], 2)) : (t(), s("div", ue, [
202
+ i(p, { "with-icon": "" }),
203
+ i(p, {
204
+ "with-icon": "",
205
+ "no-label": ""
206
+ })
207
+ ]))
208
+ ]));
209
+ }
210
+ }), ye = /* @__PURE__ */ O(re, [["__scopeId", "data-v-be195a3f"]]);
211
+ export {
212
+ ye as A,
213
+ fe as H
214
+ };
@@ -1,6 +1,5 @@
1
- import { defineComponent as b, ref as k, onMounted as $, openBlock as p, createBlock as I, unref as i, withCtx as T, createElementVNode as r, createVNode as V, normalizeClass as h, mergeProps as B, normalizeStyle as _, withKeys as N, createElementBlock as g, toDisplayString as u, createCommentVNode as C, createTextVNode as f, pushScopeId as w, popScopeId as G } from "vue";
2
- import { r as P, I as A, T as S, _ as v, l as E, s as F, c as O, P as U } from "./SelectField.vue_vue_type_style_index_0_lang-nNdXDbm1.js";
3
- const j = { class: "fresh-booking-phone-input" }, z = /* @__PURE__ */ b({
1
+ import { k as b, v as k, r as V, Z as $, o as p, m as B, w as I, x as d, p as C, z as i, T as P, I as T, _ as v, ai as A, q as h, aj as _, ak as w, l as g, F as u, n as q, B as N, a8 as f, s as F, c as G, al as j, P as z, Q as E } from "./SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js";
2
+ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
4
3
  __name: "PhoneField",
5
4
  props: {
6
5
  modelValue: {},
@@ -16,29 +15,29 @@ const j = { class: "fresh-booking-phone-input" }, z = /* @__PURE__ */ b({
16
15
  },
17
16
  emits: ["update:modelValue"],
18
17
  setup(a, { emit: l }) {
19
- const t = l, n = a, c = n.id || P(), e = k("+45"), d = k("");
18
+ const t = l, n = a, c = n.id || k(), e = V("+45"), s = V("");
20
19
  function m() {
21
- t("update:modelValue", `${e.value} ${d.value}`);
20
+ t("update:modelValue", `${e.value} ${s.value}`);
22
21
  }
23
22
  return $(() => {
24
23
  if (n.modelValue) {
25
24
  const o = n.modelValue.split(" ");
26
- e.value = o[0], d.value = o[1];
25
+ e.value = o[0], s.value = o[1];
27
26
  }
28
- }), (o, s) => (p(), I(A, {
27
+ }), (o, r) => (p(), B(T, {
29
28
  label: o.label,
30
29
  id: i(c),
31
30
  type: "phone",
32
31
  required: o.required,
33
32
  readonly: o.readonly
34
33
  }, {
35
- default: T(() => [
36
- r("div", j, [
37
- V(S, {
34
+ default: I(() => [
35
+ d("div", O, [
36
+ C(P, {
38
37
  modelValue: e.value,
39
- "onUpdate:modelValue": s[0] || (s[0] = (y) => e.value = y),
38
+ "onUpdate:modelValue": r[0] || (r[0] = (y) => e.value = y),
40
39
  type: "text",
41
- id: i(P)(),
40
+ id: i(k)(),
42
41
  name: "phone-code",
43
42
  autocomplete: "tel-country-code",
44
43
  icon: o.icon,
@@ -48,11 +47,11 @@ const j = { class: "fresh-booking-phone-input" }, z = /* @__PURE__ */ b({
48
47
  required: o.required,
49
48
  readonly: o.readonly,
50
49
  "input-style": o.inputStyle,
51
- onInput: s[1] || (s[1] = (y) => m())
50
+ onInput: r[1] || (r[1] = (y) => m())
52
51
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
53
- V(S, {
54
- modelValue: d.value,
55
- "onUpdate:modelValue": s[2] || (s[2] = (y) => d.value = y),
52
+ C(P, {
53
+ modelValue: s.value,
54
+ "onUpdate:modelValue": r[2] || (r[2] = (y) => s.value = y),
56
55
  type: "number",
57
56
  name: "phone",
58
57
  autocomplete: "tel-national",
@@ -61,14 +60,14 @@ const j = { class: "fresh-booking-phone-input" }, z = /* @__PURE__ */ b({
61
60
  required: o.required,
62
61
  readonly: o.readonly,
63
62
  "input-style": o.inputStyle,
64
- onInput: s[3] || (s[3] = (y) => m())
63
+ onInput: r[3] || (r[3] = (y) => m())
65
64
  }, null, 8, ["modelValue", "id", "placeholder", "required", "readonly", "input-style"])
66
65
  ])
67
66
  ]),
68
67
  _: 1
69
68
  }, 8, ["label", "id", "required", "readonly"]));
70
69
  }
71
- }), ee = /* @__PURE__ */ v(z, [["__scopeId", "data-v-5cd094ab"]]), D = ["required", "type", "name", "readonly", "disabled", "value", "checked"], H = ["data-test"], K = { key: 0 }, M = /* @__PURE__ */ b({
70
+ }), x = /* @__PURE__ */ v(U, [["__scopeId", "data-v-5cd094ab"]]), D = ["required", "type", "name", "readonly", "disabled", "value", "checked"], H = ["data-test"], K = { key: 0 }, M = /* @__PURE__ */ b({
72
71
  __name: "Checkbox",
73
72
  props: {
74
73
  modelValue: { type: [String, Boolean, Number] },
@@ -92,13 +91,13 @@ const j = { class: "fresh-booking-phone-input" }, z = /* @__PURE__ */ b({
92
91
  t.type === "radio" ? t.val : t.numeric ? t.modelValue ? 0 : 1 : !t.modelValue
93
92
  );
94
93
  }
95
- return (e, d) => (p(), I(A, {
94
+ return (e, s) => (p(), B(T, {
96
95
  required: e.required,
97
96
  type: e.type,
98
97
  readonly: e.readonly
99
98
  }, {
100
- default: T(() => [
101
- r("label", {
99
+ default: I(() => [
100
+ d("label", {
102
101
  class: h([
103
102
  "fresh-booking-click-box-container",
104
103
  { "is-readonly": e.readonly },
@@ -106,7 +105,7 @@ const j = { class: "fresh-booking-phone-input" }, z = /* @__PURE__ */ b({
106
105
  e.type === "radio" ? "radio" : "checkbox"
107
106
  ])
108
107
  }, [
109
- r("input", B(e.$attrs, {
108
+ d("input", A(e.$attrs, {
110
109
  required: !!e.required,
111
110
  type: e.type,
112
111
  name: e.name,
@@ -115,9 +114,9 @@ const j = { class: "fresh-booking-phone-input" }, z = /* @__PURE__ */ b({
115
114
  disabled: !!e.readonly,
116
115
  value: e.type === "radio" ? e.val : e.modelValue,
117
116
  checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue,
118
- onChange: d[0] || (d[0] = (m) => c())
117
+ onChange: s[0] || (s[0] = (m) => c())
119
118
  }), null, 16, D),
120
- r("div", {
119
+ d("div", {
121
120
  class: h([
122
121
  "fresh-booking-click-box",
123
122
  { checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue }
@@ -125,40 +124,40 @@ const j = { class: "fresh-booking-phone-input" }, z = /* @__PURE__ */ b({
125
124
  tabindex: "0",
126
125
  style: _(e.inputStyle),
127
126
  "data-test": e.name,
128
- onKeyup: d[1] || (d[1] = N((m) => c(), ["enter"]))
127
+ onKeyup: s[1] || (s[1] = w((m) => c(), ["enter"]))
129
128
  }, null, 46, H),
130
129
  e.label ? (p(), g("div", {
131
130
  key: 0,
132
131
  class: h(["fresh-booking-click-box-label", { "with-price": e.price }])
133
132
  }, [
134
- r("span", null, u(e.label), 1),
135
- e.price ? (p(), g("span", K, u(e.price), 1)) : C("", !0)
136
- ], 2)) : C("", !0)
133
+ d("span", null, u(e.label), 1),
134
+ e.price ? (p(), g("span", K, u(e.price), 1)) : q("", !0)
135
+ ], 2)) : q("", !0)
137
136
  ], 2)
138
137
  ]),
139
138
  _: 1
140
139
  }, 8, ["required", "type", "readonly"]));
141
140
  }
142
- }), oe = /* @__PURE__ */ v(M, [["__scopeId", "data-v-7ef656cb"]]), R = {
141
+ }), ee = /* @__PURE__ */ v(M, [["__scopeId", "data-v-7ef656cb"]]), R = {
143
142
  href: "https://policies.google.com/privacy",
144
143
  target: "_blank"
145
144
  }, W = {
146
145
  href: "https://policies.google.com/terms",
147
146
  target: "_blank"
148
- }, J = /* @__PURE__ */ b({
147
+ }, Q = /* @__PURE__ */ b({
149
148
  __name: "GoogleNotice",
150
149
  setup(a) {
151
- const { t: l } = E();
150
+ const { t: l } = N();
152
151
  return (t, n) => (p(), g("span", null, [
153
152
  f(u(i(l)("googleNotice")) + " ", 1),
154
- r("a", R, u(i(l)("googlePrivacyPolicy")), 1),
153
+ d("a", R, u(i(l)("googlePrivacyPolicy")), 1),
155
154
  f(" " + u(i(l)("googleAnd")) + " ", 1),
156
- r("a", W, u(i(l)("googleTOS")), 1),
155
+ d("a", W, u(i(l)("googleTOS")), 1),
157
156
  f(" " + u(i(l)("googleApply")) + ". ", 1)
158
157
  ]));
159
158
  }
160
159
  });
161
- function q(a) {
160
+ function S(a) {
162
161
  const l = a;
163
162
  l.__i18n = l.__i18n || [], l.__i18n.push({
164
163
  locale: "",
@@ -180,27 +179,27 @@ function q(a) {
180
179
  }
181
180
  });
182
181
  }
183
- typeof q == "function" && q(J);
184
- const L = (a) => (w("data-v-340cb9ce"), a = a(), G(), a), Q = /* @__PURE__ */ L(() => /* @__PURE__ */ r("div", { id: "fresh-booking-payment-checkout" }, null, -1)), X = [
185
- Q
186
- ], Y = /* @__PURE__ */ b({
182
+ typeof S == "function" && S(Q);
183
+ const Z = (a) => (z("data-v-340cb9ce"), a = a(), E(), a), J = /* @__PURE__ */ Z(() => /* @__PURE__ */ d("div", { id: "fresh-booking-payment-checkout" }, null, -1)), L = [
184
+ J
185
+ ], X = /* @__PURE__ */ b({
187
186
  __name: "CheckoutWindow",
188
187
  setup(a) {
189
- const { paymentGatewayId: l } = F(O());
188
+ const { paymentGatewayId: l } = F(G());
190
189
  return $(() => {
191
190
  const t = document.createElement("script"), n = document.createElement("script");
192
191
  t.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), n.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(t), document.head.appendChild(n);
193
192
  }), (t, n) => (p(), g("div", null, [
194
- r("div", {
193
+ d("div", {
195
194
  id: "fresh-booking-payment-checkout-wrapper",
196
- class: h({ reePay: i(l) === i(U).ReePay })
197
- }, X, 2)
195
+ class: h({ reePay: i(l) === i(j).ReePay })
196
+ }, L, 2)
198
197
  ]));
199
198
  }
200
- }), le = /* @__PURE__ */ v(Y, [["__scopeId", "data-v-340cb9ce"]]);
199
+ }), oe = /* @__PURE__ */ v(X, [["__scopeId", "data-v-340cb9ce"]]);
201
200
  export {
202
- oe as C,
203
- ee as P,
204
- J as _,
205
- le as a
201
+ ee as C,
202
+ x as P,
203
+ Q as _,
204
+ oe as a
206
205
  };