@konnectio/core 4.0.22 → 4.0.23

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 (77) hide show
  1. package/dist/{ActionField-83fef1c1.cjs → ActionField-8386d3a0.cjs} +1 -1
  2. package/dist/{ActionField-4c47ccce.js → ActionField-a1ee7410.js} +2 -2
  3. package/dist/ActionField-a1ee7410.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-6ba16e6b.js → AvailabilitySkeleton-6c6bec89.js} +44 -44
  5. package/dist/AvailabilitySkeleton-6c6bec89.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-b36452fe.cjs +1 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-6242a55d.js → DateField.vue_vue_type_style_index_0_lang-7eca1f41.js} +6 -6
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-7eca1f41.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-efec37d7.cjs → DateField.vue_vue_type_style_index_0_lang-f99a57e9.cjs} +2 -2
  10. package/dist/{Field-d3e306c7.js → Field-01acaecd.js} +2 -2
  11. package/dist/Field-01acaecd.js.br +0 -0
  12. package/dist/{Field-72b689c4.cjs → Field-8a225f2e.cjs} +1 -1
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-53cff536.cjs → NumberField.vue_vue_type_script_setup_true_lang-2520c9fa.cjs} +1 -1
  14. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js → NumberField.vue_vue_type_script_setup_true_lang-966e55eb.js} +2 -2
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-966e55eb.js.br +0 -0
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-b53d9177.js → SelectField.vue_vue_type_style_index_0_lang-6fa298e4.js} +8381 -8062
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-6fa298e4.js.br +0 -0
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-8552e557.cjs +855 -0
  19. package/dist/{ThankYou-ebdebf4e.js → ThankYou-384c77e1.js} +9 -9
  20. package/dist/ThankYou-384c77e1.js.br +0 -0
  21. package/dist/{ThankYou-98807e93.cjs → ThankYou-c1397863.cjs} +2 -2
  22. package/dist/{_-f5b07fc1.js → _-0e8ce73d.js} +1 -1
  23. package/dist/_-0e8ce73d.js.br +0 -0
  24. package/dist/{_-07462fdc.cjs → _-570b650d.cjs} +1 -1
  25. package/dist/availability.cjs +2 -2
  26. package/dist/availability.js +62 -64
  27. package/dist/availability.js.br +0 -0
  28. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
  29. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  30. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  31. package/dist/components/inputs/InputField.vue.d.ts +1 -1
  32. package/dist/components/inputs/grouped/NameField.vue.d.ts +1 -1
  33. package/dist/components/listings/Base.vue.d.ts +1 -1
  34. package/dist/components/listings/Hotel.vue.d.ts +1 -1
  35. package/dist/{event-136853fa.js → event-20213c2c.js} +9 -9
  36. package/dist/event-20213c2c.js.br +0 -0
  37. package/dist/{event-5c513f23.cjs → event-3a539ded.cjs} +1 -1
  38. package/dist/event.cjs +1 -1
  39. package/dist/event.js +18 -18
  40. package/dist/event.js.br +0 -0
  41. package/dist/gift-card-validation.cjs +1 -1
  42. package/dist/gift-card-validation.js +3 -3
  43. package/dist/gift-card-validation.js.br +0 -0
  44. package/dist/gift-card.cjs +1 -1
  45. package/dist/gift-card.js +12 -12
  46. package/dist/gift-card.js.br +0 -0
  47. package/dist/hotel.cjs +5 -5
  48. package/dist/hotel.js +1542 -1586
  49. package/dist/hotel.js.br +0 -0
  50. package/dist/index-4b1265f3.cjs +1 -0
  51. package/dist/index-f9af089a.js +405 -0
  52. package/dist/index-f9af089a.js.br +0 -0
  53. package/dist/polyfill.cjs +1 -1
  54. package/dist/polyfill.js +1 -1
  55. package/dist/polyfill.js.br +0 -0
  56. package/dist/store/event.d.ts +1 -1
  57. package/dist/store/hotel.d.ts +1 -1
  58. package/dist/store/payment.d.ts +1 -1
  59. package/dist/style.css +1 -1
  60. package/dist/style.css.br +0 -0
  61. package/dist/types/index.d.ts +1 -0
  62. package/package.json +2 -2
  63. package/dist/ActionField-4c47ccce.js.br +0 -0
  64. package/dist/AvailabilitySkeleton-0e77a3ad.cjs +0 -1
  65. package/dist/AvailabilitySkeleton-6ba16e6b.js.br +0 -0
  66. package/dist/DateField.vue_vue_type_style_index_0_lang-6242a55d.js.br +0 -0
  67. package/dist/Field-d3e306c7.js.br +0 -0
  68. package/dist/NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js.br +0 -0
  69. package/dist/SelectField.vue_vue_type_style_index_0_lang-b53d9177.js.br +0 -0
  70. package/dist/SelectField.vue_vue_type_style_index_0_lang-ed0ef984.cjs +0 -855
  71. package/dist/ThankYou-ebdebf4e.js.br +0 -0
  72. package/dist/_-f5b07fc1.js.br +0 -0
  73. package/dist/event-136853fa.js.br +0 -0
  74. package/dist/index-c407bc6f.cjs +0 -1
  75. package/dist/index-eab5c85f.js +0 -664
  76. package/dist/index-eab5c85f.js.br +0 -0
  77. package/dist/store/tracking.d.ts +0 -16
@@ -1 +1 @@
1
- "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-ed0ef984.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-53cff536.cjs"),y={class:"fresh-booking-action-field"},f=l.defineComponent({__name:"ActionField",props:{modelValue:{},label:{},buttonLabel:{},buttonIcon:{},buttonIconColor:{},buttonDisabled:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},name:{},id:{},type:{default:"text"},placeholder:{},icon:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},data:{},action:{},minValue:{},maxValue:{},isLoading:{type:Boolean,default:!1}},emits:["update:modelValue","action"],setup(s,{emit:p}){const i=p,t=s,n=t.id||l.ranId();function u(e){i("update:modelValue",e)}const d=l.computed({get:()=>t.modelValue,set:e=>u(e)}),r=l.computed({get:()=>t.modelValue,set:e=>u(e)});function c(){i("action")}return(e,o)=>(l.openBlock(),l.createBlock(l.InputField,{label:e.label,id:l.unref(n),icon:e.icon,"icon-type":e.iconType,required:e.required,type:e.type,readonly:e.readonly},{default:l.withCtx(()=>[l.createBaseVNode("div",y,[e.type==="dropdown"&&e.data?(l.openBlock(),l.createBlock(l._sfc_main,{key:0,modelValue:d.value,"onUpdate:modelValue":o[0]||(o[0]=a=>d.value=a),id:l.unref(n),options:e.data,name:e.name,required:e.required,placeholder:e.placeholder},null,8,["modelValue","id","options","name","required","placeholder"])):e.type==="number"?(l.openBlock(),l.createBlock(m._sfc_main,{key:1,modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=a=>r.value=a),id:l.unref(n),"min-value":e.minValue,"max-value":e.maxValue},null,8,["modelValue","id","min-value","max-value"])):(l.openBlock(),l.createBlock(l.TextField,{key:2,modelValue:d.value,"onUpdate:modelValue":o[2]||(o[2]=a=>d.value=a),id:l.unref(n),name:e.name,required:e.required,placeholder:e.placeholder},null,8,["modelValue","id","name","required","placeholder"])),l.createVNode(l.Clickable,{"data-test":`${e.name}Submit`,icon:e.buttonIcon,label:e.buttonLabel,"icon-color":e.buttonIconColor,styling:e.action,type:"button","is-loading":e.isLoading,disabled:e.buttonDisabled,secondary:e.secondary,onClickEvent:o[3]||(o[3]=a=>c())},null,8,["data-test","icon","label","icon-color","styling","is-loading","disabled","secondary"])])]),_:1},8,["label","id","icon","icon-type","required","type","readonly"]))}});const b=l._export_sfc(f,[["__scopeId","data-v-ad281c18"]]);exports.ActionField=b;
1
+ "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-8552e557.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-2520c9fa.cjs"),y={class:"fresh-booking-action-field"},f=l.defineComponent({__name:"ActionField",props:{modelValue:{},label:{},buttonLabel:{},buttonIcon:{},buttonIconColor:{},buttonDisabled:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},name:{},id:{},type:{default:"text"},placeholder:{},icon:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},data:{},action:{},minValue:{},maxValue:{},isLoading:{type:Boolean,default:!1}},emits:["update:modelValue","action"],setup(s,{emit:p}){const i=p,t=s,n=t.id||l.ranId();function u(e){i("update:modelValue",e)}const d=l.computed({get:()=>t.modelValue,set:e=>u(e)}),r=l.computed({get:()=>t.modelValue,set:e=>u(e)});function c(){i("action")}return(e,o)=>(l.openBlock(),l.createBlock(l.InputField,{label:e.label,id:l.unref(n),icon:e.icon,"icon-type":e.iconType,required:e.required,type:e.type,readonly:e.readonly},{default:l.withCtx(()=>[l.createBaseVNode("div",y,[e.type==="dropdown"&&e.data?(l.openBlock(),l.createBlock(l._sfc_main,{key:0,modelValue:d.value,"onUpdate:modelValue":o[0]||(o[0]=a=>d.value=a),id:l.unref(n),options:e.data,name:e.name,required:e.required,placeholder:e.placeholder},null,8,["modelValue","id","options","name","required","placeholder"])):e.type==="number"?(l.openBlock(),l.createBlock(m._sfc_main,{key:1,modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=a=>r.value=a),id:l.unref(n),"min-value":e.minValue,"max-value":e.maxValue},null,8,["modelValue","id","min-value","max-value"])):(l.openBlock(),l.createBlock(l.TextField,{key:2,modelValue:d.value,"onUpdate:modelValue":o[2]||(o[2]=a=>d.value=a),id:l.unref(n),name:e.name,required:e.required,placeholder:e.placeholder},null,8,["modelValue","id","name","required","placeholder"])),l.createVNode(l.Clickable,{"data-test":`${e.name}Submit`,icon:e.buttonIcon,label:e.buttonLabel,"icon-color":e.buttonIconColor,styling:e.action,type:"button","is-loading":e.isLoading,disabled:e.buttonDisabled,secondary:e.secondary,onClickEvent:o[3]||(o[3]=a=>c())},null,8,["data-test","icon","label","icon-color","styling","is-loading","disabled","secondary"])])]),_:1},8,["label","id","icon","icon-type","required","type","readonly"]))}});const b=l._export_sfc(f,[["__scopeId","data-v-ad281c18"]]);exports.ActionField=b;
@@ -1,5 +1,5 @@
1
- import { h as b, j as V, c as m, k as d, l as i, w as v, x as g, y as q, n as t, T as k, m as B, C as I, I as C, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-b53d9177.js";
2
- import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js";
1
+ import { h as b, j as V, c as m, k as d, l as i, w as v, x as g, y as q, n as t, T as k, m as B, C as I, I as C, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-6fa298e4.js";
2
+ import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-966e55eb.js";
3
3
  const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ b({
4
4
  __name: "ActionField",
5
5
  props: {
Binary file
@@ -1,21 +1,21 @@
1
- import { h as S, r as O, a as T, k as l, q as u, a9 as Q, H as W, z as X, s as x, aa as C, c as b, a1 as F, o as Y, l as D, w as Z, x as $, n as e, m as s, B as k, y as ee, t as _, a2 as H, T as R, C as ae, v as E, f as le, _ as q } from "./SelectField.vue_vue_type_style_index_0_lang-b53d9177.js";
2
- import { u as N, _ as te } from "./DateField.vue_vue_type_style_index_0_lang-6242a55d.js";
3
- import { _ as I } from "./NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js";
4
- import { E as z } from "./_-f5b07fc1.js";
5
- import { F as f } from "./Field-d3e306c7.js";
1
+ import { h as S, r as O, a as T, k as l, q as u, aa as Q, H as W, z as X, s as x, ab as C, c as p, a1 as F, o as Y, l as D, w as Z, x as $, n as e, m as s, B as k, y as ee, t as _, a2 as H, T as R, C as ae, v as E, f as le, _ as q } from "./SelectField.vue_vue_type_style_index_0_lang-6fa298e4.js";
2
+ import { u as N, _ as te } from "./DateField.vue_vue_type_style_index_0_lang-7eca1f41.js";
3
+ import { _ as I } from "./NumberField.vue_vue_type_script_setup_true_lang-966e55eb.js";
4
+ import { E as z } from "./_-0e8ce73d.js";
5
+ import { F as f } from "./Field-01acaecd.js";
6
6
  const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
7
7
  __name: "_",
8
8
  props: {
9
9
  type: { default: "submit" }
10
10
  },
11
11
  emits: ["submit"],
12
- setup(h, { emit: n }) {
13
- const t = O(!1), r = n, c = h, { verifyRecaptcha: d } = T();
12
+ setup(h, { emit: i }) {
13
+ const n = O(!1), r = i, c = h, { verifyRecaptcha: d } = T();
14
14
  function v() {
15
- t.value = !0, d({
15
+ n.value = !0, d({
16
16
  callback: y,
17
17
  type: c.type
18
- }).then(() => t.value = !1);
18
+ }).then(() => n.value = !1);
19
19
  }
20
20
  function y() {
21
21
  r("submit");
@@ -23,7 +23,7 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
23
23
  return (V, A) => (l(), u("form", {
24
24
  onSubmit: W(v, ["prevent"])
25
25
  }, [
26
- Q(V.$slots, "default", { isLoading: t.value })
26
+ Q(V.$slots, "default", { isLoading: n.value })
27
27
  ], 40, ie));
28
28
  }
29
29
  }), oe = {
@@ -39,7 +39,7 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
39
39
  link: {}
40
40
  },
41
41
  setup(h) {
42
- const { t: n } = X(), t = h, {
42
+ const { t: i } = X(), n = h, {
43
43
  adults: r,
44
44
  children: c,
45
45
  arrivalDate: d,
@@ -49,16 +49,16 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
49
49
  } = x(C()), { reset: A } = C(), { fetchAvailabilityData: M } = N(), { areListingsLoading: j, hotelList: G, hasHotelList: g } = x(N()), {
50
50
  firstSelectableDateOffset: L,
51
51
  lastSelectableDateOffset: U,
52
- disableChildSelection: p,
52
+ disableChildSelection: b,
53
53
  disableAdultSelection: m
54
- } = x(T()), w = O([]), fe = b(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (L.value - 1)))), _e = b(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + U.value))), ye = b(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + L.value))), De = b(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (U.value + 1)))), B = b(() => !(!m && r.value === 0)), J = b(() => typeof t.link != "string");
54
+ } = x(T()), w = O([]), fe = p(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (L.value - 1)))), _e = p(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + U.value))), ye = p(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + L.value))), De = p(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (U.value + 1)))), B = p(() => !(!m && r.value === 0)), J = p(() => typeof n.link != "string");
55
55
  function K() {
56
- if (t.booking === !1)
56
+ if (n.booking === !1)
57
57
  if (J.value) {
58
58
  const o = le();
59
- t.link[o] ? window.location.replace(t.link[o]) : t.link.en ? window.location.replace(t.link.en) : console.log("Sprog understøttes ikke");
59
+ n.link[o] ? window.location.replace(n.link[o]) : n.link.en ? window.location.replace(n.link.en) : console.log("Sprog understøttes ikke");
60
60
  } else
61
- window.location.replace(t.link);
61
+ window.location.replace(n.link);
62
62
  else
63
63
  B.value && M();
64
64
  }
@@ -68,7 +68,7 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
68
68
  }), F(w, (o) => {
69
69
  d.value = o[0], v.value = o[1];
70
70
  }), Y(() => {
71
- V.value && t.booking && A(), w.value = [d.value, v.value];
71
+ V.value && A(), w.value = [d.value, v.value];
72
72
  }), (o, a) => (l(), D(ne, {
73
73
  id: "konnectio-availability-form",
74
74
  class: E({ reservation: o.booking }),
@@ -80,18 +80,18 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
80
80
  id: "konnectio-availability-form-content",
81
81
  class: E([
82
82
  { "is-not-booking-page": !o.booking },
83
- { "only-adult-guests": !e(m) && e(p) },
84
- { "only-child-guests": !e(p) && e(m) },
85
- { "no-guests": e(m) && e(p) },
86
- { "all-guests": !e(m) && !e(p) },
83
+ { "only-adult-guests": !e(m) && e(b) },
84
+ { "only-child-guests": !e(b) && e(m) },
85
+ { "no-guests": e(m) && e(b) },
86
+ { "all-guests": !e(m) && !e(b) },
87
87
  { "has-location": e(g) }
88
88
  ])
89
89
  }, [
90
90
  e(g) ? (l(), u("li", oe, [
91
91
  s(ee, {
92
92
  modelValue: e(y),
93
- "onUpdate:modelValue": a[0] || (a[0] = (i) => k(y) ? y.value = i : null),
94
- label: e(n)("general.location"),
93
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => k(y) ? y.value = t : null),
94
+ label: e(i)("general.location"),
95
95
  icon: "location-dot",
96
96
  "icon-type": "fas",
97
97
  "icon-placement": "label",
@@ -102,8 +102,8 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
102
102
  $("li", se, [
103
103
  s(te, {
104
104
  modelValue: w.value,
105
- "onUpdate:modelValue": a[1] || (a[1] = (i) => w.value = i),
106
- label: e(n)("availability.checkInOut"),
105
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => w.value = t),
106
+ label: e(i)("availability.checkInOut"),
107
107
  "icon-type": "fas",
108
108
  "icon-placement": "label",
109
109
  "min-range": 1,
@@ -111,13 +111,13 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
111
111
  }, null, 8, ["modelValue", "label"]),
112
112
  _("", !0)
113
113
  ]),
114
- !e(m) || !e(p) ? (l(), u("li", re, [
114
+ !e(m) || !e(b) ? (l(), u("li", re, [
115
115
  e(m) ? _("", !0) : (l(), u(H, { key: 0 }, [
116
116
  e(g) ? (l(), D(R, {
117
117
  key: 0,
118
118
  modelValue: e(r),
119
- "onUpdate:modelValue": a[4] || (a[4] = (i) => k(r) ? r.value = i : null),
120
- label: e(n)("availability.adults"),
119
+ "onUpdate:modelValue": a[4] || (a[4] = (t) => k(r) ? r.value = t : null),
120
+ label: e(i)("availability.adults"),
121
121
  "icon-type": "fas",
122
122
  "icon-placement": "label",
123
123
  name: "adults",
@@ -125,20 +125,20 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
125
125
  }, null, 8, ["modelValue", "label"])) : (l(), D(I, {
126
126
  key: 1,
127
127
  modelValue: e(r),
128
- "onUpdate:modelValue": a[5] || (a[5] = (i) => k(r) ? r.value = i : null),
129
- label: e(n)("availability.adults"),
128
+ "onUpdate:modelValue": a[5] || (a[5] = (t) => k(r) ? r.value = t : null),
129
+ label: e(i)("availability.adults"),
130
130
  "icon-type": "fas",
131
131
  "icon-placement": "label",
132
132
  name: "adults",
133
133
  icon: "male"
134
134
  }, null, 8, ["modelValue", "label"]))
135
135
  ], 64)),
136
- e(p) ? _("", !0) : (l(), u(H, { key: 1 }, [
136
+ e(b) ? _("", !0) : (l(), u(H, { key: 1 }, [
137
137
  e(g) ? (l(), D(R, {
138
138
  key: 0,
139
139
  modelValue: e(c),
140
- "onUpdate:modelValue": a[6] || (a[6] = (i) => k(c) ? c.value = i : null),
141
- label: e(n)("availability.children"),
140
+ "onUpdate:modelValue": a[6] || (a[6] = (t) => k(c) ? c.value = t : null),
141
+ label: e(i)("availability.children"),
142
142
  "icon-type": "fas",
143
143
  "icon-placement": "label",
144
144
  name: "children",
@@ -146,8 +146,8 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
146
146
  }, null, 8, ["modelValue", "label"])) : (l(), D(I, {
147
147
  key: 1,
148
148
  modelValue: e(c),
149
- "onUpdate:modelValue": a[7] || (a[7] = (i) => k(c) ? c.value = i : null),
150
- label: e(n)("availability.children"),
149
+ "onUpdate:modelValue": a[7] || (a[7] = (t) => k(c) ? c.value = t : null),
150
+ label: e(i)("availability.children"),
151
151
  "icon-type": "fas",
152
152
  "icon-placement": "label",
153
153
  name: "children",
@@ -158,7 +158,7 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
158
158
  $("li", ue, [
159
159
  s(ae, {
160
160
  type: "submit",
161
- label: e(n)("availability.buttonLabel"),
161
+ label: e(i)("availability.buttonLabel"),
162
162
  disabled: !B.value,
163
163
  "is-loading": e(j) || P
164
164
  }, null, 8, ["label", "disabled", "is-loading"])
@@ -169,23 +169,23 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
169
169
  }, 8, ["class"]));
170
170
  }
171
171
  });
172
- const xe = /* @__PURE__ */ q(ce, [["__scopeId", "data-v-9287c752"]]), de = { class: "availability-skeleton" }, me = {
172
+ const xe = /* @__PURE__ */ q(ce, [["__scopeId", "data-v-22ac2f9b"]]), de = { class: "availability-skeleton" }, me = {
173
173
  key: 0,
174
174
  class: "availability-skeleton-navigation"
175
175
  }, ve = {
176
176
  key: 1,
177
177
  class: "availability-skeleton-hotel"
178
- }, pe = {
178
+ }, be = {
179
179
  key: 2,
180
180
  class: "availability-skeleton-event"
181
- }, be = /* @__PURE__ */ S({
181
+ }, pe = /* @__PURE__ */ S({
182
182
  __name: "AvailabilitySkeleton",
183
183
  props: {
184
184
  view: { default: "hotel" }
185
185
  },
186
186
  setup(h) {
187
- return (n, t) => (l(), u("div", de, [
188
- n.view === "both" ? (l(), u("div", me, [
187
+ return (i, n) => (l(), u("div", de, [
188
+ i.view === "both" ? (l(), u("div", me, [
189
189
  s(z, {
190
190
  height: "28px",
191
191
  width: "60px",
@@ -197,7 +197,7 @@ const xe = /* @__PURE__ */ q(ce, [["__scopeId", "data-v-9287c752"]]), de = { cla
197
197
  "border-radius": "20px"
198
198
  })
199
199
  ])) : _("", !0),
200
- n.view !== "event" ? (l(), u("div", ve, [
200
+ i.view !== "event" ? (l(), u("div", ve, [
201
201
  s(f, { "with-icon": "" }),
202
202
  s(f, { "with-icon": "" }),
203
203
  s(f, { "with-icon": "" }),
@@ -205,7 +205,7 @@ const xe = /* @__PURE__ */ q(ce, [["__scopeId", "data-v-9287c752"]]), de = { cla
205
205
  "with-icon": "",
206
206
  "no-label": ""
207
207
  })
208
- ])) : (l(), u("div", pe, [
208
+ ])) : (l(), u("div", be, [
209
209
  s(f, { "with-icon": "" }),
210
210
  s(f, {
211
211
  "with-icon": "",
@@ -215,7 +215,7 @@ const xe = /* @__PURE__ */ q(ce, [["__scopeId", "data-v-9287c752"]]), de = { cla
215
215
  ]));
216
216
  }
217
217
  });
218
- const $e = /* @__PURE__ */ q(be, [["__scopeId", "data-v-c266ccbc"]]);
218
+ const $e = /* @__PURE__ */ q(pe, [["__scopeId", "data-v-c266ccbc"]]);
219
219
  export {
220
220
  $e as A,
221
221
  xe as H,
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-8552e557.cjs"),b=require("./DateField.vue_vue_type_style_index_0_lang-f99a57e9.cjs"),h=require("./NumberField.vue_vue_type_script_setup_true_lang-2520c9fa.cjs"),x=require("./_-570b650d.cjs"),_=require("./Field-8a225f2e.cjs"),E=["onSubmit"],w=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(m,{emit:a}){const n=e.ref(!1),o=a,u=m,{verifyRecaptcha:c}=e.useUtilityStore();function r(){n.value=!0,c({callback:v,type:u.type}).then(()=>n.value=!1)}function v(){o("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:n.value})],40,E))}}),R={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},L={key:1,id:"fresh-booking-availability-guest-selection"},U={id:"fresh-booking-availability-confirmation"},H=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(m){const{t:a}=e.useI18n(),n=m,{adults:o,children:u,arrivalDate:c,departureDate:r,location:v,isExpired:y}=e.storeToRefs(e.useAvailabilityStore()),{reset:k}=e.useAvailabilityStore(),{fetchAvailabilityData:B}=b.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:p}=e.storeToRefs(b.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),G=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(g.value-1)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+D.value))),K=e.computed(()=>new Date(new Date().setDate(c.value.getDate()+g.value))),P=e.computed(()=>new Date(new Date().setDate(c.value.getDate()+(D.value+1)))),V=e.computed(()=>!(!s&&o.value===0)),N=e.computed(()=>typeof n.link!="string");function A(){if(n.booking===!1)if(N.value){const i=e.getUserLanguage();n.link[i]?window.location.replace(n.link[i]):n.link.en?window.location.replace(n.link.en):console.log("Sprog understøttes ikke")}else window.location.replace(n.link);else V.value&&B()}return e.watch(c,i=>{const t=new Date(new Date(i).setDate(new Date(i).getDate()+1));new Date(r.value)<t&&(r.value=t)}),e.watch(f,i=>{c.value=i[0],r.value=i[1]}),e.onMounted(()=>{y.value&&k(),f.value=[c.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(w,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:A},{default:e.withCtx(({isLoading:C})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!i.booking},{"only-adult-guests":!e.unref(s)&&e.unref(d)},{"only-child-guests":!e.unref(d)&&e.unref(s)},{"no-guests":e.unref(s)&&e.unref(d)},{"all-guests":!e.unref(s)&&!e.unref(d)},{"has-location":e.unref(p)}])},[e.unref(p)?(e.openBlock(),e.createElementBlock("li",R,[e.createVNode(e._sfc_main,{modelValue:e.unref(v),"onUpdate:modelValue":t[0]||(t[0]=l=>e.isRef(v)?v.value=l:null),label:e.unref(a)("general.location"),icon:"location-dot","icon-type":"fas","icon-placement":"label",options:e.unref(S),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(b._sfc_main,{modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=l=>f.value=l),label:e.unref(a)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(s)||!e.unref(d)?(e.openBlock(),e.createElementBlock("li",L,[e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(p)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(o),"onUpdate:modelValue":t[4]||(t[4]=l=>e.isRef(o)?o.value=l:null),label:e.unref(a)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])):(e.openBlock(),e.createBlock(h._sfc_main,{key:1,modelValue:e.unref(o),"onUpdate:modelValue":t[5]||(t[5]=l=>e.isRef(o)?o.value=l:null),label:e.unref(a)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"]))],64)),e.unref(d)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(p)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(u),"onUpdate:modelValue":t[6]||(t[6]=l=>e.isRef(u)?u.value=l:null),label:e.unref(a)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"])):(e.openBlock(),e.createBlock(h._sfc_main,{key:1,modelValue:e.unref(u),"onUpdate:modelValue":t[7]||(t[7]=l=>e.isRef(u)?u.value=l:null),label:e.unref(a)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))],64))])):e.createCommentVNode("",!0),e.createBaseVNode("li",U,[e.createVNode(e.Clickable,{type:"submit",label:e.unref(a)("availability.buttonLabel"),disabled:!V.value,"is-loading":e.unref(F)||C},null,8,["label","disabled","is-loading"])])],2)]),_:1},8,["class"]))}});const q=e._export_sfc(H,[["__scopeId","data-v-22ac2f9b"]]),T={class:"availability-skeleton"},I={key:0,class:"availability-skeleton-navigation"},z={key:1,class:"availability-skeleton-hotel"},O={key:2,class:"availability-skeleton-event"},M=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(m){return(a,n)=>(e.openBlock(),e.createElementBlock("div",T,[a.view==="both"?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(x.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(x.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),a.view!=="event"?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})])):(e.openBlock(),e.createElementBlock("div",O,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const j=e._export_sfc(M,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=j;exports.HotelAvailabilityForm=q;exports._sfc_main=w;
@@ -1,6 +1,6 @@
1
- import { d as Ol, s as rr, u as Nl, aa as Yl, a as Rl, r as Z, c as H, g as Ul, b as Ct, S as $t, Y as El, e as nr, f as br, i as Zt, aH as sn, aI as Il, aw as xa, h as Qe, aC as zt, aJ as Ha, o as ft, ai as Ht, ax as Sr, a1 as Bt, k as S, q as G, m as dt, W as tt, a3 as Ee, w as be, a9 as de, ap as qe, aq as rt, n as y, ak as Xe, B as dn, l as Te, aK as Or, aL as Hl, t as X, ab as ua, v as Ae, ar as Bl, aM as cn, am as ye, x as he, H as Ne, a2 as _e, al as yt, A as Ge, a5 as Ot, aN as Wl, af as Ua, ag as Ea, aO as Ll, aP as Vl, j as Fl, I as ql } from "./SelectField.vue_vue_type_style_index_0_lang-b53d9177.js";
2
- import { u as jl } from "./NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js";
3
- import { u as Ql } from "./_-f5b07fc1.js";
1
+ import { d as Ol, s as rr, u as Nl, ab as Yl, a as Rl, r as Z, c as H, g as Ul, b as Ct, S as $t, Y as El, e as nr, f as br, i as Zt, aH as sn, aI as Il, av as xa, h as Qe, aB as zt, aJ as Ha, o as ft, al as Ht, aw as Sr, a1 as Bt, k as S, q as G, m as dt, W as tt, a3 as Ee, w as be, aa as de, ao as qe, ap as rt, n as y, ai as Xe, B as dn, l as Te, aK as Or, aL as Hl, t as X, ac as ua, v as Ae, aq as Bl, aM as cn, ak as ye, x as he, H as Ne, a2 as _e, aj as yt, A as Ge, a5 as Ot, aN as Wl, ag as Ua, ah as Ea, aO as Ll, aP as Vl, j as Fl, I as ql } from "./SelectField.vue_vue_type_style_index_0_lang-6fa298e4.js";
2
+ import { u as jl } from "./NumberField.vue_vue_type_script_setup_true_lang-966e55eb.js";
3
+ import { u as Ql } from "./_-0e8ce73d.js";
4
4
  const ac = Ol("hotel", () => {
5
5
  const e = Ql(), { voucher: t } = rr(jl()), { display: r } = Nl(), {
6
6
  adults: n,
@@ -143,7 +143,7 @@ const ac = Ol("hotel", () => {
143
143
  headers: {
144
144
  Authorization: m.value,
145
145
  Accept: "application/json",
146
- "Fresh-Booking-Ver": "4.0.22"
146
+ "Fresh-Booking-Ver": "4.0.23"
147
147
  }
148
148
  })).data;
149
149
  d.value = z;
@@ -171,7 +171,7 @@ const ac = Ol("hotel", () => {
171
171
  headers: {
172
172
  Authorization: m.value,
173
173
  Accept: "application/json",
174
- "Fresh-Booking-Ver": "4.0.22"
174
+ "Fresh-Booking-Ver": "4.0.23"
175
175
  }
176
176
  });
177
177
  re.status !== 200 ? r({
@@ -254,7 +254,7 @@ const ac = Ol("hotel", () => {
254
254
  headers: {
255
255
  Authorization: m.value,
256
256
  Accept: "application/json",
257
- "Fresh-Booking-Ver": "4.0.22"
257
+ "Fresh-Booking-Ver": "4.0.23"
258
258
  }
259
259
  }).then((ge) => {
260
260
  p.value = !1, E.value = !1, e.pay({