@konnectio/core 4.0.32 → 4.0.33
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.
- package/dist/{ActionField-9f5938c2.js → ActionField-0429d7fd.js} +2 -2
- package/dist/ActionField-0429d7fd.js.br +0 -0
- package/dist/{ActionField-fa3f32a1.cjs → ActionField-227adb66.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-e51a47f6.js → AvailabilitySkeleton-6db0cdf6.js} +46 -44
- package/dist/AvailabilitySkeleton-6db0cdf6.js.br +0 -0
- package/dist/AvailabilitySkeleton-cb38341b.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-802f8908.cjs → DateField.vue_vue_type_style_index_0_lang-40609275.cjs} +1 -1
- package/dist/{DateField.vue_vue_type_style_index_0_lang-3ba5667d.js → DateField.vue_vue_type_style_index_0_lang-6fc3eaad.js} +1 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-6fc3eaad.js.br +0 -0
- package/dist/{Field-bdb32b2b.cjs → Field-3d5c74fa.cjs} +1 -1
- package/dist/{Field-03744870.js → Field-e6325334.js} +2 -2
- package/dist/Field-e6325334.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-bd0f0c10.js → NumberField.vue_vue_type_script_setup_true_lang-2ad3f0ab.js} +1 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-2ad3f0ab.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-f99ee22f.cjs → NumberField.vue_vue_type_script_setup_true_lang-d98a404c.cjs} +1 -1
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-16a9bece.cjs → SelectField.vue_vue_type_style_index_0_lang-17bb1416.cjs} +2 -2
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-510dede6.js → SelectField.vue_vue_type_style_index_0_lang-a2c88638.js} +2664 -2666
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a2c88638.js.br +0 -0
- package/dist/{ThankYou-78ef3e07.js → ThankYou-467046c6.js} +4 -4
- package/dist/ThankYou-467046c6.js.br +0 -0
- package/dist/{ThankYou-f478d01b.cjs → ThankYou-c89d0ad7.cjs} +1 -1
- package/dist/{_-44b2ad95.cjs → _-0ecc46c2.cjs} +1 -1
- package/dist/{_-2690d08c.js → _-685a039a.js} +1 -1
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/listings/Hotel.vue.d.ts +1 -1
- package/dist/{event-b4200924.js → event-689c56cc.js} +7 -7
- package/dist/event-689c56cc.js.br +0 -0
- package/dist/{event-42d3e1bb.cjs → event-d7e9c157.cjs} +1 -1
- package/dist/event.cjs +1 -1
- package/dist/event.js +8 -8
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +3 -3
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +5 -5
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +355 -362
- package/dist/hotel.js.br +0 -0
- package/dist/{index-2e44eb22.js → index-322730dc.js} +1 -1
- package/dist/index-322730dc.js.br +0 -0
- package/dist/{index-5d6a654f.cjs → index-7b8392ee.cjs} +1 -1
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-9f5938c2.js.br +0 -0
- package/dist/AvailabilitySkeleton-538f3d7d.cjs +0 -1
- package/dist/AvailabilitySkeleton-e51a47f6.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-3ba5667d.js.br +0 -0
- package/dist/Field-03744870.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-bd0f0c10.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-510dede6.js.br +0 -0
- package/dist/ThankYou-78ef3e07.js.br +0 -0
- package/dist/event-b4200924.js.br +0 -0
- package/dist/index-2e44eb22.js.br +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as b, l as V, f as m, m as d, n as i, w as v, A as q, B as g, q as t, T as k, p as B, C as I, I as C, _ as A } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { k as b, l as V, f as m, m as d, n as i, w as v, A as q, B as g, q as t, T as k, p as B, C as I, I as C, _ as A } from "./SelectField.vue_vue_type_style_index_0_lang-a2c88638.js";
|
|
2
|
+
import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-2ad3f0ab.js";
|
|
3
3
|
const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ b({
|
|
4
4
|
__name: "ActionField",
|
|
5
5
|
props: {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-17bb1416.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-d98a404c.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,9 +1,9 @@
|
|
|
1
|
-
import { k as S, r as z, c as M, m as l, v as c, aa as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { E as q } from "./_-
|
|
5
|
-
import { F as y } from "./Field-
|
|
6
|
-
const
|
|
1
|
+
import { k as S, r as z, c as M, m as l, v as c, aa as Y, L as Z, D as ee, s as A, ab as C, ac as F, f, a1 as H, o as ae, n as p, w as le, A as $, q as e, p as s, G as g, B as te, x as _, a2 as E, T as N, C as I, y as O, i as ie, _ as G } from "./SelectField.vue_vue_type_style_index_0_lang-a2c88638.js";
|
|
2
|
+
import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-6fc3eaad.js";
|
|
3
|
+
import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-2ad3f0ab.js";
|
|
4
|
+
import { E as q } from "./_-685a039a.js";
|
|
5
|
+
import { F as y } from "./Field-e6325334.js";
|
|
6
|
+
const oe = ["onSubmit"], se = /* @__PURE__ */ S({
|
|
7
7
|
__name: "_",
|
|
8
8
|
props: {
|
|
9
9
|
type: { default: "submit" }
|
|
@@ -21,61 +21,61 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
21
21
|
r("submit");
|
|
22
22
|
}
|
|
23
23
|
return (V, L) => (l(), c("form", {
|
|
24
|
-
onSubmit:
|
|
24
|
+
onSubmit: Z(v, ["prevent"])
|
|
25
25
|
}, [
|
|
26
|
-
|
|
27
|
-
], 40,
|
|
26
|
+
Y(V.$slots, "default", { isLoading: n.value })
|
|
27
|
+
], 40, oe));
|
|
28
28
|
}
|
|
29
|
-
}),
|
|
29
|
+
}), re = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "konnectio-availability-location"
|
|
32
|
-
},
|
|
32
|
+
}, ce = { id: "fresh-booking-availability-date-selection" }, ue = {
|
|
33
33
|
key: 1,
|
|
34
34
|
id: "fresh-booking-availability-guest-selection"
|
|
35
|
-
},
|
|
35
|
+
}, de = { id: "fresh-booking-availability-confirmation" }, me = /* @__PURE__ */ S({
|
|
36
36
|
__name: "HotelAvailabilityForm",
|
|
37
37
|
props: {
|
|
38
38
|
booking: { type: Boolean, default: !1 },
|
|
39
39
|
link: {}
|
|
40
40
|
},
|
|
41
41
|
setup(k) {
|
|
42
|
-
const { t: a } =
|
|
42
|
+
const { t: a } = ee(), n = k, {
|
|
43
43
|
adults: r,
|
|
44
44
|
children: u,
|
|
45
45
|
arrivalDate: d,
|
|
46
46
|
departureDate: v,
|
|
47
47
|
location: D,
|
|
48
48
|
isExpired: V
|
|
49
|
-
} =
|
|
49
|
+
} = A(C()), { reset: L } = C(), { fetchAvailabilityData: j } = F(), { areListingsLoading: J, hotelList: K, hasHotelList: h } = A(F()), {
|
|
50
50
|
firstSelectableDateOffset: R,
|
|
51
51
|
lastSelectableDateOffset: U,
|
|
52
52
|
disableChildSelection: b,
|
|
53
53
|
disableAdultSelection: m
|
|
54
|
-
} =
|
|
55
|
-
function
|
|
54
|
+
} = A(M()), w = z([]), P = f(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (R.value - 1)))), _e = f(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + U.value))), De = f(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + R.value))), Q = f(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (U.value + 1)))), x = f(() => !(!m && r.value === 0)), W = f(() => typeof n.link != "string");
|
|
55
|
+
function X() {
|
|
56
56
|
if (n.booking === !1)
|
|
57
|
-
if (
|
|
58
|
-
const o =
|
|
57
|
+
if (W.value) {
|
|
58
|
+
const o = ie();
|
|
59
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
61
|
window.location.replace(n.link);
|
|
62
62
|
else
|
|
63
|
-
|
|
63
|
+
x.value && j();
|
|
64
64
|
}
|
|
65
65
|
return H(d, (o) => {
|
|
66
66
|
const t = new Date(new Date(o).setDate(new Date(o).getDate() + 1));
|
|
67
67
|
new Date(v.value) < t && (v.value = t);
|
|
68
68
|
}), H(w, (o) => {
|
|
69
69
|
d.value = o[0], v.value = o[1];
|
|
70
|
-
}),
|
|
70
|
+
}), ae(() => {
|
|
71
71
|
V.value && L(), w.value = [d.value, v.value];
|
|
72
|
-
}), (o, t) => (l(), p(
|
|
72
|
+
}), (o, t) => (l(), p(se, {
|
|
73
73
|
id: "konnectio-availability-form",
|
|
74
74
|
class: O({ reservation: o.booking }),
|
|
75
75
|
type: "availability",
|
|
76
|
-
onSubmit:
|
|
76
|
+
onSubmit: X
|
|
77
77
|
}, {
|
|
78
|
-
default:
|
|
78
|
+
default: le(({ isLoading: B }) => [
|
|
79
79
|
$("ul", {
|
|
80
80
|
id: "konnectio-availability-form-content",
|
|
81
81
|
class: O([
|
|
@@ -87,8 +87,8 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
87
87
|
{ "has-location": e(h) }
|
|
88
88
|
])
|
|
89
89
|
}, [
|
|
90
|
-
e(h) ? (l(), c("li",
|
|
91
|
-
s(
|
|
90
|
+
e(h) ? (l(), c("li", re, [
|
|
91
|
+
s(te, {
|
|
92
92
|
modelValue: e(D),
|
|
93
93
|
"onUpdate:modelValue": t[0] || (t[0] = (i) => g(D) ? D.value = i : null),
|
|
94
94
|
label: e(a)("general.location"),
|
|
@@ -99,19 +99,21 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
99
99
|
searchable: !1
|
|
100
100
|
}, null, 8, ["modelValue", "label", "options"])
|
|
101
101
|
])) : _("", !0),
|
|
102
|
-
$("li",
|
|
103
|
-
s(
|
|
102
|
+
$("li", ce, [
|
|
103
|
+
s(ne, {
|
|
104
104
|
modelValue: w.value,
|
|
105
105
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => w.value = i),
|
|
106
106
|
label: e(a)("availability.checkInOut"),
|
|
107
107
|
"icon-type": "fas",
|
|
108
108
|
"icon-placement": "label",
|
|
109
109
|
"min-range": 1,
|
|
110
|
+
"min-date": P.value,
|
|
111
|
+
"max-date": Q.value,
|
|
110
112
|
range: ""
|
|
111
|
-
}, null, 8, ["modelValue", "label"]),
|
|
113
|
+
}, null, 8, ["modelValue", "label", "min-date", "max-date"]),
|
|
112
114
|
_("", !0)
|
|
113
115
|
]),
|
|
114
|
-
!e(m) || !e(b) ? (l(), c("li",
|
|
116
|
+
!e(m) || !e(b) ? (l(), c("li", ue, [
|
|
115
117
|
e(m) ? _("", !0) : (l(), c(E, { key: 0 }, [
|
|
116
118
|
e(h) ? (l(), p(N, {
|
|
117
119
|
key: 0,
|
|
@@ -159,19 +161,19 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
159
161
|
}, null, 8, ["modelValue", "label", "description"]))
|
|
160
162
|
], 64))
|
|
161
163
|
])) : _("", !0),
|
|
162
|
-
$("li",
|
|
164
|
+
$("li", de, [
|
|
163
165
|
o.booking ? (l(), p(I, {
|
|
164
166
|
key: 0,
|
|
165
167
|
type: "submit",
|
|
166
168
|
icon: "search",
|
|
167
169
|
"icon-type": "fas",
|
|
168
|
-
disabled: !
|
|
170
|
+
disabled: !x.value,
|
|
169
171
|
"is-loading": e(J) || B
|
|
170
172
|
}, null, 8, ["disabled", "is-loading"])) : (l(), p(I, {
|
|
171
173
|
key: 1,
|
|
172
174
|
type: "submit",
|
|
173
175
|
label: e(a)("availability.buttonLabel"),
|
|
174
|
-
disabled: !
|
|
176
|
+
disabled: !x.value,
|
|
175
177
|
"is-loading": B
|
|
176
178
|
}, null, 8, ["label", "disabled", "is-loading"]))
|
|
177
179
|
])
|
|
@@ -181,23 +183,23 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
181
183
|
}, 8, ["class"]));
|
|
182
184
|
}
|
|
183
185
|
});
|
|
184
|
-
const
|
|
186
|
+
const xe = /* @__PURE__ */ G(me, [["__scopeId", "data-v-a901e79d"]]), pe = { class: "availability-skeleton" }, ve = {
|
|
185
187
|
key: 0,
|
|
186
188
|
class: "availability-skeleton-navigation"
|
|
187
|
-
},
|
|
189
|
+
}, be = {
|
|
188
190
|
key: 1,
|
|
189
191
|
class: "availability-skeleton-hotel"
|
|
190
|
-
},
|
|
192
|
+
}, fe = {
|
|
191
193
|
key: 2,
|
|
192
194
|
class: "availability-skeleton-event"
|
|
193
|
-
},
|
|
195
|
+
}, ye = /* @__PURE__ */ S({
|
|
194
196
|
__name: "AvailabilitySkeleton",
|
|
195
197
|
props: {
|
|
196
198
|
view: { default: "hotel" }
|
|
197
199
|
},
|
|
198
200
|
setup(k) {
|
|
199
|
-
return (a, n) => (l(), c("div",
|
|
200
|
-
a.view === "both" ? (l(), c("div",
|
|
201
|
+
return (a, n) => (l(), c("div", pe, [
|
|
202
|
+
a.view === "both" ? (l(), c("div", ve, [
|
|
201
203
|
s(q, {
|
|
202
204
|
height: "28px",
|
|
203
205
|
width: "60px",
|
|
@@ -209,7 +211,7 @@ const Ae = /* @__PURE__ */ G(ue, [["__scopeId", "data-v-ed6687de"]]), de = { cla
|
|
|
209
211
|
"border-radius": "20px"
|
|
210
212
|
})
|
|
211
213
|
])) : _("", !0),
|
|
212
|
-
a.view !== "event" ? (l(), c("div",
|
|
214
|
+
a.view !== "event" ? (l(), c("div", be, [
|
|
213
215
|
s(y, { "with-icon": "" }),
|
|
214
216
|
s(y, { "with-icon": "" }),
|
|
215
217
|
s(y, { "with-icon": "" }),
|
|
@@ -217,7 +219,7 @@ const Ae = /* @__PURE__ */ G(ue, [["__scopeId", "data-v-ed6687de"]]), de = { cla
|
|
|
217
219
|
"with-icon": "",
|
|
218
220
|
"no-label": ""
|
|
219
221
|
})
|
|
220
|
-
])) : (l(), c("div",
|
|
222
|
+
])) : (l(), c("div", fe, [
|
|
221
223
|
s(y, { "with-icon": "" }),
|
|
222
224
|
s(y, {
|
|
223
225
|
"with-icon": "",
|
|
@@ -227,9 +229,9 @@ const Ae = /* @__PURE__ */ G(ue, [["__scopeId", "data-v-ed6687de"]]), de = { cla
|
|
|
227
229
|
]));
|
|
228
230
|
}
|
|
229
231
|
});
|
|
230
|
-
const
|
|
232
|
+
const Ae = /* @__PURE__ */ G(ye, [["__scopeId", "data-v-c266ccbc"]]);
|
|
231
233
|
export {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
Ae as A,
|
|
235
|
+
xe as H,
|
|
236
|
+
se as _
|
|
235
237
|
};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-17bb1416.cjs"),E=require("./DateField.vue_vue_type_style_index_0_lang-40609275.cjs"),V=require("./NumberField.vue_vue_type_script_setup_true_lang-d98a404c.cjs"),x=require("./_-0ecc46c2.cjs"),_=require("./Field-3d5c74fa.cjs"),$=["onSubmit"],B=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(v,{emit:l}){const n=e.ref(!1),o=l,c=v,{verifyRecaptcha:u}=e.useUtilityStore();function r(){n.value=!0,u({callback:p,type:c.type}).then(()=>n.value=!1)}function p(){o("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:n.value})],40,$))}}),U={key:0,class:"konnectio-availability-location"},L={id:"fresh-booking-availability-date-selection"},H={key:1,id:"fresh-booking-availability-guest-selection"},q={id:"fresh-booking-availability-confirmation"},T=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:u,departureDate:r,location:p,isExpired:y}=e.storeToRefs(e.useAvailabilityStore()),{reset:k}=e.useAvailabilityStore(),{fetchAvailabilityData:w}=e.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:m}=e.storeToRefs(e.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),N=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(g.value-1)))),K=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+D.value))),P=e.computed(()=>new Date(new Date().setDate(u.value.getDate()+g.value))),A=e.computed(()=>new Date(new Date().setDate(u.value.getDate()+(D.value+1)))),b=e.computed(()=>!(!s&&o.value===0)),C=e.computed(()=>typeof n.link!="string");function R(){if(n.booking===!1)if(C.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&&w()}return e.watch(u,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=>{u.value=i[0],r.value=i[1]}),e.onMounted(()=>{y.value&&k(),f.value=[u.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(B,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:R},{default:e.withCtx(({isLoading:h})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-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(m)}])},[e.unref(m)?(e.openBlock(),e.createElementBlock("li",U,[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(S),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",L,[e.createVNode(E._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,"min-date":N.value,"max-date":A.value,range:""},null,8,["modelValue","label","min-date","max-date"]),e.createCommentVNode("",!0)]),!e.unref(s)||!e.unref(d)?(e.openBlock(),e.createElementBlock("li",H,[e.unref(s)?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(V._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(V._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",q,[i.booking?(e.openBlock(),e.createBlock(e.Clickable,{key:0,type:"submit",icon:"search","icon-type":"fas",disabled:!b.value,"is-loading":e.unref(F)||h},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":h},null,8,["label","disabled","is-loading"]))])],2)]),_:1},8,["class"]))}});const I=e._export_sfc(T,[["__scopeId","data-v-a901e79d"]]),z={class:"availability-skeleton"},O={key:0,class:"availability-skeleton-navigation"},M={key:1,class:"availability-skeleton-hotel"},j={key:2,class:"availability-skeleton-event"},G=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(v){return(l,n)=>(e.openBlock(),e.createElementBlock("div",z,[l.view==="both"?(e.openBlock(),e.createElementBlock("div",O,[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),l.view!=="event"?(e.openBlock(),e.createElementBlock("div",M,[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",j,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const J=e._export_sfc(G,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=J;exports.HotelAvailabilityForm=I;exports._sfc_main=B;
|