@konnectio/core 4.0.23 → 4.0.25

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 (73) hide show
  1. package/dist/{ActionField-8386d3a0.cjs → ActionField-7b136f91.cjs} +1 -1
  2. package/dist/{ActionField-a1ee7410.js → ActionField-c9cef523.js} +2 -2
  3. package/dist/ActionField-c9cef523.js.br +0 -0
  4. package/dist/AvailabilitySkeleton-aa3bf6f1.js +235 -0
  5. package/dist/AvailabilitySkeleton-aa3bf6f1.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-acc847fd.cjs +1 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-7eca1f41.js → DateField.vue_vue_type_style_index_0_lang-0ac2a746.js} +8 -7
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-0ac2a746.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-f99a57e9.cjs → DateField.vue_vue_type_style_index_0_lang-c9bd7be5.cjs} +2 -2
  10. package/dist/{Field-01acaecd.js → Field-3cca7a7b.js} +2 -2
  11. package/dist/Field-3cca7a7b.js.br +0 -0
  12. package/dist/{Field-8a225f2e.cjs → Field-5b40d0b6.cjs} +1 -1
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-966e55eb.js → NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js} +2 -2
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js.br +0 -0
  15. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-2520c9fa.cjs → NumberField.vue_vue_type_script_setup_true_lang-659bf8ca.cjs} +1 -1
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-8552e557.cjs → SelectField.vue_vue_type_style_index_0_lang-cd37504c.cjs} +38 -38
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-6fa298e4.js → SelectField.vue_vue_type_style_index_0_lang-e150d886.js} +3146 -3127
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-e150d886.js.br +0 -0
  19. package/dist/{ThankYou-384c77e1.js → ThankYou-39341d0e.js} +9 -9
  20. package/dist/ThankYou-39341d0e.js.br +0 -0
  21. package/dist/{ThankYou-c1397863.cjs → ThankYou-eda0a413.cjs} +2 -2
  22. package/dist/{_-570b650d.cjs → _-b2f2bbb6.cjs} +1 -1
  23. package/dist/{_-0e8ce73d.js → _-c8a00c38.js} +1 -1
  24. package/dist/_-c8a00c38.js.br +0 -0
  25. package/dist/availability.cjs +1 -1
  26. package/dist/availability.js +7 -7
  27. package/dist/availability.js.br +0 -0
  28. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  29. package/dist/components/inputs/InputField.vue.d.ts +1 -1
  30. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +3 -2
  31. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +1 -1
  32. package/dist/components/listings/Base.vue.d.ts +1 -1
  33. package/dist/components/listings/Hotel.vue.d.ts +1 -1
  34. package/dist/{event-3a539ded.cjs → event-5ba52771.cjs} +1 -1
  35. package/dist/{event-20213c2c.js → event-ee196721.js} +9 -9
  36. package/dist/event-ee196721.js.br +0 -0
  37. package/dist/event.cjs +1 -1
  38. package/dist/event.js +8 -8
  39. package/dist/event.js.br +0 -0
  40. package/dist/gift-card-validation.cjs +1 -1
  41. package/dist/gift-card-validation.js +3 -3
  42. package/dist/gift-card-validation.js.br +0 -0
  43. package/dist/gift-card.cjs +1 -1
  44. package/dist/gift-card.js +5 -5
  45. package/dist/gift-card.js.br +0 -0
  46. package/dist/hotel.cjs +5 -5
  47. package/dist/hotel.js +1454 -1378
  48. package/dist/hotel.js.br +0 -0
  49. package/dist/{index-4b1265f3.cjs → index-69b5b9a3.cjs} +1 -1
  50. package/dist/{index-f9af089a.js → index-6ac9ac7c.js} +1 -1
  51. package/dist/index-6ac9ac7c.js.br +0 -0
  52. package/dist/polyfill.cjs +1 -1
  53. package/dist/polyfill.js +1 -1
  54. package/dist/polyfill.js.br +0 -0
  55. package/dist/store/hotel.d.ts +19 -7
  56. package/dist/store/payment.d.ts +1 -1
  57. package/dist/store/utilities.d.ts +7 -1
  58. package/dist/style.css +1 -1
  59. package/dist/style.css.br +0 -0
  60. package/dist/types/index.d.ts +4 -1
  61. package/package.json +1 -1
  62. package/dist/ActionField-a1ee7410.js.br +0 -0
  63. package/dist/AvailabilitySkeleton-6c6bec89.js +0 -223
  64. package/dist/AvailabilitySkeleton-6c6bec89.js.br +0 -0
  65. package/dist/AvailabilitySkeleton-b36452fe.cjs +0 -1
  66. package/dist/DateField.vue_vue_type_style_index_0_lang-7eca1f41.js.br +0 -0
  67. package/dist/Field-01acaecd.js.br +0 -0
  68. package/dist/NumberField.vue_vue_type_script_setup_true_lang-966e55eb.js.br +0 -0
  69. package/dist/SelectField.vue_vue_type_style_index_0_lang-6fa298e4.js.br +0 -0
  70. package/dist/ThankYou-384c77e1.js.br +0 -0
  71. package/dist/_-0e8ce73d.js.br +0 -0
  72. package/dist/event-20213c2c.js.br +0 -0
  73. package/dist/index-f9af089a.js.br +0 -0
@@ -1 +1 @@
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
+ "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-cd37504c.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-659bf8ca.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-6fa298e4.js";
2
- import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-966e55eb.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-e150d886.js";
2
+ import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js";
3
3
  const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ b({
4
4
  __name: "ActionField",
5
5
  props: {
Binary file
@@ -0,0 +1,235 @@
1
+ import { h as S, r as q, a as M, k as l, q as c, aa as W, H as X, z as Y, s as A, ab as C, c as f, a1 as F, o as Z, l as p, w as ee, x as $, n as e, m as s, B as D, y as ae, t as _, a2 as H, T as E, C as N, v as I, f as le, _ as j } from "./SelectField.vue_vue_type_style_index_0_lang-e150d886.js";
2
+ import { u as z, _ as te } from "./DateField.vue_vue_type_style_index_0_lang-0ac2a746.js";
3
+ import { _ as O } from "./NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js";
4
+ import { E as T } from "./_-c8a00c38.js";
5
+ import { F as y } from "./Field-3cca7a7b.js";
6
+ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
7
+ __name: "_",
8
+ props: {
9
+ type: { default: "submit" }
10
+ },
11
+ emits: ["submit"],
12
+ setup(k, { emit: a }) {
13
+ const n = q(!1), r = a, u = k, { verifyRecaptcha: d } = M();
14
+ function v() {
15
+ n.value = !0, d({
16
+ callback: g,
17
+ type: u.type
18
+ }).then(() => n.value = !1);
19
+ }
20
+ function g() {
21
+ r("submit");
22
+ }
23
+ return (V, L) => (l(), c("form", {
24
+ onSubmit: X(v, ["prevent"])
25
+ }, [
26
+ W(V.$slots, "default", { isLoading: n.value })
27
+ ], 40, ie));
28
+ }
29
+ }), oe = {
30
+ key: 0,
31
+ class: "konnectio-availability-location"
32
+ }, se = { id: "fresh-booking-availability-date-selection" }, re = {
33
+ key: 1,
34
+ id: "fresh-booking-availability-guest-selection"
35
+ }, ce = { id: "fresh-booking-availability-confirmation" }, ue = /* @__PURE__ */ S({
36
+ __name: "HotelAvailabilityForm",
37
+ props: {
38
+ booking: { type: Boolean, default: !1 },
39
+ link: {}
40
+ },
41
+ setup(k) {
42
+ const { t: a } = Y(), n = k, {
43
+ adults: r,
44
+ children: u,
45
+ arrivalDate: d,
46
+ departureDate: v,
47
+ location: g,
48
+ isExpired: V
49
+ } = A(C()), { reset: L } = C(), { fetchAvailabilityData: G } = z(), { areListingsLoading: J, hotelList: K, hasHotelList: h } = A(z()), {
50
+ firstSelectableDateOffset: R,
51
+ lastSelectableDateOffset: U,
52
+ disableChildSelection: b,
53
+ disableAdultSelection: m
54
+ } = A(M()), w = q([]), fe = f(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (R.value - 1)))), ye = f(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + U.value))), _e = f(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + R.value))), ge = f(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (U.value + 1)))), x = f(() => !(!m && r.value === 0)), P = f(() => typeof n.link != "string");
55
+ function Q() {
56
+ if (n.booking === !1)
57
+ if (P.value) {
58
+ const o = le();
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
+ } else
61
+ window.location.replace(n.link);
62
+ else
63
+ x.value && G();
64
+ }
65
+ return F(d, (o) => {
66
+ const t = new Date(new Date(o).setDate(new Date(o).getDate() + 1));
67
+ new Date(v.value) < t && (v.value = t);
68
+ }), F(w, (o) => {
69
+ d.value = o[0], v.value = o[1];
70
+ }), Z(() => {
71
+ V.value && L(), w.value = [d.value, v.value];
72
+ }), (o, t) => (l(), p(ne, {
73
+ id: "konnectio-availability-form",
74
+ class: I({ reservation: o.booking }),
75
+ type: "availability",
76
+ onSubmit: Q
77
+ }, {
78
+ default: ee(({ isLoading: B }) => [
79
+ $("ul", {
80
+ id: "konnectio-availability-form-content",
81
+ class: I([
82
+ { "is-booking-page": o.booking },
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
+ { "has-location": e(h) }
88
+ ])
89
+ }, [
90
+ e(h) ? (l(), c("li", oe, [
91
+ s(ae, {
92
+ modelValue: e(g),
93
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => D(g) ? g.value = i : null),
94
+ label: e(a)("general.location"),
95
+ icon: "location-dot",
96
+ "icon-type": "fas",
97
+ "icon-placement": "label",
98
+ options: e(K),
99
+ searchable: !1
100
+ }, null, 8, ["modelValue", "label", "options"])
101
+ ])) : _("", !0),
102
+ $("li", se, [
103
+ s(te, {
104
+ modelValue: w.value,
105
+ "onUpdate:modelValue": t[1] || (t[1] = (i) => w.value = i),
106
+ label: e(a)("availability.checkInOut"),
107
+ "icon-type": "fas",
108
+ "icon-placement": "label",
109
+ "min-range": 1,
110
+ range: ""
111
+ }, null, 8, ["modelValue", "label"]),
112
+ _("", !0)
113
+ ]),
114
+ !e(m) || !e(b) ? (l(), c("li", re, [
115
+ e(m) ? _("", !0) : (l(), c(H, { key: 0 }, [
116
+ e(h) ? (l(), p(E, {
117
+ key: 0,
118
+ modelValue: e(r),
119
+ "onUpdate:modelValue": t[4] || (t[4] = (i) => D(r) ? r.value = i : null),
120
+ label: e(a)("availability.adults"),
121
+ description: e(a)("general.adultAgeRange"),
122
+ "icon-type": "fas",
123
+ "icon-placement": "label",
124
+ name: "adults",
125
+ icon: "male"
126
+ }, null, 8, ["modelValue", "label", "description"])) : (l(), p(O, {
127
+ key: 1,
128
+ modelValue: e(r),
129
+ "onUpdate:modelValue": t[5] || (t[5] = (i) => D(r) ? r.value = i : null),
130
+ label: e(a)("availability.adults"),
131
+ description: e(a)("general.adultAgeRange"),
132
+ "icon-type": "fas",
133
+ "icon-placement": "label",
134
+ name: "adults",
135
+ icon: "male"
136
+ }, null, 8, ["modelValue", "label", "description"]))
137
+ ], 64)),
138
+ e(b) ? _("", !0) : (l(), c(H, { key: 1 }, [
139
+ e(h) ? (l(), p(E, {
140
+ key: 0,
141
+ modelValue: e(u),
142
+ "onUpdate:modelValue": t[6] || (t[6] = (i) => D(u) ? u.value = i : null),
143
+ label: e(a)("availability.children"),
144
+ description: e(a)("general.childAgeRange"),
145
+ "icon-type": "fas",
146
+ "icon-placement": "label",
147
+ name: "children",
148
+ icon: "child"
149
+ }, null, 8, ["modelValue", "label", "description"])) : (l(), p(O, {
150
+ key: 1,
151
+ modelValue: e(u),
152
+ "onUpdate:modelValue": t[7] || (t[7] = (i) => D(u) ? u.value = i : null),
153
+ label: e(a)("availability.children"),
154
+ description: e(a)("general.childAgeRange"),
155
+ "icon-type": "fas",
156
+ "icon-placement": "label",
157
+ name: "children",
158
+ icon: "child"
159
+ }, null, 8, ["modelValue", "label", "description"]))
160
+ ], 64))
161
+ ])) : _("", !0),
162
+ $("li", ce, [
163
+ o.booking ? (l(), p(N, {
164
+ key: 0,
165
+ type: "submit",
166
+ icon: "search",
167
+ "icon-type": "fas",
168
+ disabled: !x.value,
169
+ "is-loading": e(J) || B
170
+ }, null, 8, ["disabled", "is-loading"])) : (l(), p(N, {
171
+ key: 1,
172
+ type: "submit",
173
+ label: e(a)("availability.buttonLabel"),
174
+ disabled: !x.value,
175
+ "is-loading": B
176
+ }, null, 8, ["label", "disabled", "is-loading"]))
177
+ ])
178
+ ], 2)
179
+ ]),
180
+ _: 1
181
+ }, 8, ["class"]));
182
+ }
183
+ });
184
+ const xe = /* @__PURE__ */ j(ue, [["__scopeId", "data-v-d78a1562"]]), de = { class: "availability-skeleton" }, me = {
185
+ key: 0,
186
+ class: "availability-skeleton-navigation"
187
+ }, pe = {
188
+ key: 1,
189
+ class: "availability-skeleton-hotel"
190
+ }, ve = {
191
+ key: 2,
192
+ class: "availability-skeleton-event"
193
+ }, be = /* @__PURE__ */ S({
194
+ __name: "AvailabilitySkeleton",
195
+ props: {
196
+ view: { default: "hotel" }
197
+ },
198
+ setup(k) {
199
+ return (a, n) => (l(), c("div", de, [
200
+ a.view === "both" ? (l(), c("div", me, [
201
+ s(T, {
202
+ height: "28px",
203
+ width: "60px",
204
+ "border-radius": "20px"
205
+ }),
206
+ s(T, {
207
+ height: "28px",
208
+ width: "60px",
209
+ "border-radius": "20px"
210
+ })
211
+ ])) : _("", !0),
212
+ a.view !== "event" ? (l(), c("div", pe, [
213
+ s(y, { "with-icon": "" }),
214
+ s(y, { "with-icon": "" }),
215
+ s(y, { "with-icon": "" }),
216
+ s(y, {
217
+ "with-icon": "",
218
+ "no-label": ""
219
+ })
220
+ ])) : (l(), c("div", ve, [
221
+ s(y, { "with-icon": "" }),
222
+ s(y, {
223
+ "with-icon": "",
224
+ "no-label": ""
225
+ })
226
+ ]))
227
+ ]));
228
+ }
229
+ });
230
+ const Ae = /* @__PURE__ */ j(be, [["__scopeId", "data-v-c266ccbc"]]);
231
+ export {
232
+ Ae as A,
233
+ xe as H,
234
+ ne as _
235
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-cd37504c.cjs"),k=require("./DateField.vue_vue_type_style_index_0_lang-c9bd7be5.cjs"),B=require("./NumberField.vue_vue_type_script_setup_true_lang-659bf8ca.cjs"),w=require("./_-b2f2bbb6.cjs"),_=require("./Field-5b40d0b6.cjs"),R=["onSubmit"],x=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(v,{emit:l}){const n=e.ref(!1),o=l,c=v,{verifyRecaptcha:s}=e.useUtilityStore();function r(){n.value=!0,s({callback:p,type:c.type}).then(()=>n.value=!1)}function p(){o("submit")}return(y,g)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:n.value})],40,R))}}),E={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},U={key:1,id:"fresh-booking-availability-guest-selection"},L={id:"fresh-booking-availability-confirmation"},H=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(v){const{t:l}=e.useI18n(),n=v,{adults:o,children:c,arrivalDate:s,departureDate:r,location:p,isExpired:y}=e.storeToRefs(e.useAvailabilityStore()),{reset:g}=e.useAvailabilityStore(),{fetchAvailabilityData:F}=k.useHotelStore(),{areListingsLoading:S,hotelList:N,hasHotelList:m}=e.storeToRefs(k.useHotelStore()),{firstSelectableDateOffset:D,lastSelectableDateOffset:h,disableChildSelection:d,disableAdultSelection:u}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),G=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(D.value-1)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+h.value))),K=e.computed(()=>new Date(new Date().setDate(s.value.getDate()+D.value))),P=e.computed(()=>new Date(new Date().setDate(s.value.getDate()+(h.value+1)))),b=e.computed(()=>!(!u&&o.value===0)),A=e.computed(()=>typeof n.link!="string");function C(){if(n.booking===!1)if(A.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 b.value&&F()}return e.watch(s,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=>{s.value=i[0],r.value=i[1]}),e.onMounted(()=>{y.value&&g(),f.value=[s.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(x,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:C},{default:e.withCtx(({isLoading:V})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-booking-page":i.booking},{"only-adult-guests":!e.unref(u)&&e.unref(d)},{"only-child-guests":!e.unref(d)&&e.unref(u)},{"no-guests":e.unref(u)&&e.unref(d)},{"all-guests":!e.unref(u)&&!e.unref(d)},{"has-location":e.unref(m)}])},[e.unref(m)?(e.openBlock(),e.createElementBlock("li",E,[e.createVNode(e._sfc_main,{modelValue:e.unref(p),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(p)?p.value=a:null),label:e.unref(l)("general.location"),icon:"location-dot","icon-type":"fas","icon-placement":"label",options:e.unref(N),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(k._sfc_main,{modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=a=>f.value=a),label:e.unref(l)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(u)||!e.unref(d)?(e.openBlock(),e.createElementBlock("li",U,[e.unref(u)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(m)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(o),"onUpdate:modelValue":t[4]||(t[4]=a=>e.isRef(o)?o.value=a:null),label:e.unref(l)("availability.adults"),description:e.unref(l)("general.adultAgeRange"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label","description"])):(e.openBlock(),e.createBlock(B._sfc_main,{key:1,modelValue:e.unref(o),"onUpdate:modelValue":t[5]||(t[5]=a=>e.isRef(o)?o.value=a:null),label:e.unref(l)("availability.adults"),description:e.unref(l)("general.adultAgeRange"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label","description"]))],64)),e.unref(d)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(m)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(c),"onUpdate:modelValue":t[6]||(t[6]=a=>e.isRef(c)?c.value=a:null),label:e.unref(l)("availability.children"),description:e.unref(l)("general.childAgeRange"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label","description"])):(e.openBlock(),e.createBlock(B._sfc_main,{key:1,modelValue:e.unref(c),"onUpdate:modelValue":t[7]||(t[7]=a=>e.isRef(c)?c.value=a:null),label:e.unref(l)("availability.children"),description:e.unref(l)("general.childAgeRange"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label","description"]))],64))])):e.createCommentVNode("",!0),e.createBaseVNode("li",L,[i.booking?(e.openBlock(),e.createBlock(e.Clickable,{key:0,type:"submit",icon:"search","icon-type":"fas",disabled:!b.value,"is-loading":e.unref(S)||V},null,8,["disabled","is-loading"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,type:"submit",label:e.unref(l)("availability.buttonLabel"),disabled:!b.value,"is-loading":V},null,8,["label","disabled","is-loading"]))])],2)]),_:1},8,["class"]))}});const q=e._export_sfc(H,[["__scopeId","data-v-d78a1562"]]),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(v){return(l,n)=>(e.openBlock(),e.createElementBlock("div",T,[l.view==="both"?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(w.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(w.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),l.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=x;
@@ -1,6 +1,6 @@
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";
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-e150d886.js";
2
+ import { u as jl } from "./NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js";
3
+ import { u as Ql } from "./_-c8a00c38.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.23"
146
+ "Fresh-Booking-Ver": "4.0.25"
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.23"
174
+ "Fresh-Booking-Ver": "4.0.25"
175
175
  }
176
176
  });
177
177
  re.status !== 200 ? r({
@@ -248,13 +248,14 @@ const ac = Ol("hotel", () => {
248
248
  ),
249
249
  checkoutUrl: "https://freshbooking.dk",
250
250
  //window.location.origin,
251
- privacyUrl: "https://freshbooking.dk"
251
+ privacyUrl: "https://freshbooking.dk",
252
252
  //window.location.origin
253
+ termsOfserviceUrl: "https://freshbooking.dk"
253
254
  }, {
254
255
  headers: {
255
256
  Authorization: m.value,
256
257
  Accept: "application/json",
257
- "Fresh-Booking-Ver": "4.0.23"
258
+ "Fresh-Booking-Ver": "4.0.25"
258
259
  }
259
260
  }).then((ge) => {
260
261
  p.value = !1, E.value = !1, e.pay({