@konnectio/core 4.0.24 → 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.
- package/dist/{ActionField-8ee667bd.cjs → ActionField-7b136f91.cjs} +1 -1
- package/dist/{ActionField-b2ee8f91.js → ActionField-c9cef523.js} +2 -2
- package/dist/ActionField-c9cef523.js.br +0 -0
- package/dist/{AvailabilitySkeleton-16a3be88.js → AvailabilitySkeleton-aa3bf6f1.js} +89 -81
- package/dist/AvailabilitySkeleton-aa3bf6f1.js.br +0 -0
- package/dist/AvailabilitySkeleton-acc847fd.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-a4abbe86.js → DateField.vue_vue_type_style_index_0_lang-0ac2a746.js} +8 -7
- package/dist/DateField.vue_vue_type_style_index_0_lang-0ac2a746.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-4caf9daf.cjs → DateField.vue_vue_type_style_index_0_lang-c9bd7be5.cjs} +2 -2
- package/dist/{Field-f5f98938.js → Field-3cca7a7b.js} +2 -2
- package/dist/Field-3cca7a7b.js.br +0 -0
- package/dist/{Field-877b4588.cjs → Field-5b40d0b6.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-5bf8b187.js → NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js} +2 -2
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-f72da2f4.cjs → NumberField.vue_vue_type_script_setup_true_lang-659bf8ca.cjs} +1 -1
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-727c44d8.cjs → SelectField.vue_vue_type_style_index_0_lang-cd37504c.cjs} +36 -36
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-f136675d.js → SelectField.vue_vue_type_style_index_0_lang-e150d886.js} +2495 -2491
- package/dist/SelectField.vue_vue_type_style_index_0_lang-e150d886.js.br +0 -0
- package/dist/{ThankYou-58baa41d.js → ThankYou-39341d0e.js} +6 -6
- package/dist/ThankYou-39341d0e.js.br +0 -0
- package/dist/{ThankYou-f027d958.cjs → ThankYou-eda0a413.cjs} +1 -1
- package/dist/{_-573e46fc.cjs → _-b2f2bbb6.cjs} +1 -1
- package/dist/{_-e0a2fd6e.js → _-c8a00c38.js} +1 -1
- package/dist/_-c8a00c38.js.br +0 -0
- 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/inputs/InputField.vue.d.ts +1 -1
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +3 -2
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +1 -1
- package/dist/components/listings/Hotel.vue.d.ts +1 -1
- package/dist/{event-01f44344.cjs → event-5ba52771.cjs} +1 -1
- package/dist/{event-3e48b8ad.js → event-ee196721.js} +9 -9
- package/dist/event-ee196721.js.br +0 -0
- 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 +1319 -1253
- package/dist/hotel.js.br +0 -0
- package/dist/{index-68332b8a.cjs → index-69b5b9a3.cjs} +1 -1
- package/dist/{index-931022d3.js → index-6ac9ac7c.js} +1 -1
- package/dist/index-6ac9ac7c.js.br +0 -0
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/store/hotel.d.ts +19 -7
- package/dist/store/payment.d.ts +1 -1
- package/dist/store/utilities.d.ts +7 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +4 -1
- package/package.json +1 -1
- package/dist/ActionField-b2ee8f91.js.br +0 -0
- package/dist/AvailabilitySkeleton-16a3be88.js.br +0 -0
- package/dist/AvailabilitySkeleton-83a2e2c6.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-a4abbe86.js.br +0 -0
- package/dist/Field-f5f98938.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-5bf8b187.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-f136675d.js.br +0 -0
- package/dist/ThankYou-58baa41d.js.br +0 -0
- package/dist/_-e0a2fd6e.js.br +0 -0
- package/dist/event-3e48b8ad.js.br +0 -0
- package/dist/index-931022d3.js.br +0 -0
|
@@ -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-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-
|
|
2
|
-
import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
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
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { E as
|
|
5
|
-
import { F as
|
|
6
|
-
const ie = ["onSubmit"], ne = /* @__PURE__ */
|
|
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
7
|
__name: "_",
|
|
8
8
|
props: {
|
|
9
9
|
type: { default: "submit" }
|
|
10
10
|
},
|
|
11
11
|
emits: ["submit"],
|
|
12
12
|
setup(k, { emit: a }) {
|
|
13
|
-
const n =
|
|
14
|
-
function
|
|
13
|
+
const n = q(!1), r = a, u = k, { verifyRecaptcha: d } = M();
|
|
14
|
+
function v() {
|
|
15
15
|
n.value = !0, d({
|
|
16
|
-
callback:
|
|
16
|
+
callback: g,
|
|
17
17
|
type: u.type
|
|
18
18
|
}).then(() => n.value = !1);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function g() {
|
|
21
21
|
r("submit");
|
|
22
22
|
}
|
|
23
|
-
return (V,
|
|
24
|
-
onSubmit:
|
|
23
|
+
return (V, L) => (l(), c("form", {
|
|
24
|
+
onSubmit: X(v, ["prevent"])
|
|
25
25
|
}, [
|
|
26
|
-
|
|
26
|
+
W(V.$slots, "default", { isLoading: n.value })
|
|
27
27
|
], 40, ie));
|
|
28
28
|
}
|
|
29
29
|
}), oe = {
|
|
@@ -32,77 +32,77 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
|
|
|
32
32
|
}, se = { id: "fresh-booking-availability-date-selection" }, re = {
|
|
33
33
|
key: 1,
|
|
34
34
|
id: "fresh-booking-availability-guest-selection"
|
|
35
|
-
}, ce = { id: "fresh-booking-availability-confirmation" }, ue = /* @__PURE__ */
|
|
35
|
+
}, ce = { id: "fresh-booking-availability-confirmation" }, ue = /* @__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 } = Y(), n = k, {
|
|
43
43
|
adults: r,
|
|
44
44
|
children: u,
|
|
45
45
|
arrivalDate: d,
|
|
46
|
-
departureDate:
|
|
47
|
-
location:
|
|
46
|
+
departureDate: v,
|
|
47
|
+
location: g,
|
|
48
48
|
isExpired: V
|
|
49
|
-
} =
|
|
50
|
-
firstSelectableDateOffset:
|
|
51
|
-
lastSelectableDateOffset:
|
|
52
|
-
disableChildSelection:
|
|
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
53
|
disableAdultSelection: m
|
|
54
|
-
} =
|
|
55
|
-
function
|
|
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
56
|
if (n.booking === !1)
|
|
57
|
-
if (
|
|
57
|
+
if (P.value) {
|
|
58
58
|
const o = le();
|
|
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 && G();
|
|
64
64
|
}
|
|
65
|
-
return
|
|
66
|
-
const
|
|
67
|
-
new Date(
|
|
68
|
-
}),
|
|
69
|
-
d.value = o[0],
|
|
70
|
-
}),
|
|
71
|
-
V.value &&
|
|
72
|
-
}), (o,
|
|
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
73
|
id: "konnectio-availability-form",
|
|
74
|
-
class:
|
|
74
|
+
class: I({ reservation: o.booking }),
|
|
75
75
|
type: "availability",
|
|
76
|
-
onSubmit:
|
|
76
|
+
onSubmit: Q
|
|
77
77
|
}, {
|
|
78
|
-
default:
|
|
79
|
-
|
|
78
|
+
default: ee(({ isLoading: B }) => [
|
|
79
|
+
$("ul", {
|
|
80
80
|
id: "konnectio-availability-form-content",
|
|
81
|
-
class:
|
|
82
|
-
{ "is-
|
|
83
|
-
{ "only-adult-guests": !e(m) && e(
|
|
84
|
-
{ "only-child-guests": !e(
|
|
85
|
-
{ "no-guests": e(m) && e(
|
|
86
|
-
{ "all-guests": !e(m) && !e(
|
|
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
87
|
{ "has-location": e(h) }
|
|
88
88
|
])
|
|
89
89
|
}, [
|
|
90
|
-
e(h) ? (
|
|
91
|
-
s(
|
|
92
|
-
modelValue: e(
|
|
93
|
-
"onUpdate:modelValue":
|
|
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
94
|
label: e(a)("general.location"),
|
|
95
95
|
icon: "location-dot",
|
|
96
96
|
"icon-type": "fas",
|
|
97
97
|
"icon-placement": "label",
|
|
98
|
-
options: e(
|
|
98
|
+
options: e(K),
|
|
99
99
|
searchable: !1
|
|
100
100
|
}, null, 8, ["modelValue", "label", "options"])
|
|
101
101
|
])) : _("", !0),
|
|
102
|
-
|
|
102
|
+
$("li", se, [
|
|
103
103
|
s(te, {
|
|
104
104
|
modelValue: w.value,
|
|
105
|
-
"onUpdate:modelValue":
|
|
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",
|
|
@@ -111,22 +111,22 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
|
|
|
111
111
|
}, null, 8, ["modelValue", "label"]),
|
|
112
112
|
_("", !0)
|
|
113
113
|
]),
|
|
114
|
-
!e(m) || !e(
|
|
115
|
-
e(m) ? _("", !0) : (
|
|
116
|
-
e(h) ? (
|
|
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
117
|
key: 0,
|
|
118
118
|
modelValue: e(r),
|
|
119
|
-
"onUpdate:modelValue":
|
|
119
|
+
"onUpdate:modelValue": t[4] || (t[4] = (i) => D(r) ? r.value = i : null),
|
|
120
120
|
label: e(a)("availability.adults"),
|
|
121
121
|
description: e(a)("general.adultAgeRange"),
|
|
122
122
|
"icon-type": "fas",
|
|
123
123
|
"icon-placement": "label",
|
|
124
124
|
name: "adults",
|
|
125
125
|
icon: "male"
|
|
126
|
-
}, null, 8, ["modelValue", "label", "description"])) : (
|
|
126
|
+
}, null, 8, ["modelValue", "label", "description"])) : (l(), p(O, {
|
|
127
127
|
key: 1,
|
|
128
128
|
modelValue: e(r),
|
|
129
|
-
"onUpdate:modelValue":
|
|
129
|
+
"onUpdate:modelValue": t[5] || (t[5] = (i) => D(r) ? r.value = i : null),
|
|
130
130
|
label: e(a)("availability.adults"),
|
|
131
131
|
description: e(a)("general.adultAgeRange"),
|
|
132
132
|
"icon-type": "fas",
|
|
@@ -135,21 +135,21 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
|
|
|
135
135
|
icon: "male"
|
|
136
136
|
}, null, 8, ["modelValue", "label", "description"]))
|
|
137
137
|
], 64)),
|
|
138
|
-
e(
|
|
139
|
-
e(h) ? (
|
|
138
|
+
e(b) ? _("", !0) : (l(), c(H, { key: 1 }, [
|
|
139
|
+
e(h) ? (l(), p(E, {
|
|
140
140
|
key: 0,
|
|
141
141
|
modelValue: e(u),
|
|
142
|
-
"onUpdate:modelValue":
|
|
142
|
+
"onUpdate:modelValue": t[6] || (t[6] = (i) => D(u) ? u.value = i : null),
|
|
143
143
|
label: e(a)("availability.children"),
|
|
144
144
|
description: e(a)("general.childAgeRange"),
|
|
145
145
|
"icon-type": "fas",
|
|
146
146
|
"icon-placement": "label",
|
|
147
147
|
name: "children",
|
|
148
148
|
icon: "child"
|
|
149
|
-
}, null, 8, ["modelValue", "label", "description"])) : (
|
|
149
|
+
}, null, 8, ["modelValue", "label", "description"])) : (l(), p(O, {
|
|
150
150
|
key: 1,
|
|
151
151
|
modelValue: e(u),
|
|
152
|
-
"onUpdate:modelValue":
|
|
152
|
+
"onUpdate:modelValue": t[7] || (t[7] = (i) => D(u) ? u.value = i : null),
|
|
153
153
|
label: e(a)("availability.children"),
|
|
154
154
|
description: e(a)("general.childAgeRange"),
|
|
155
155
|
"icon-type": "fas",
|
|
@@ -159,13 +159,21 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
|
|
|
159
159
|
}, null, 8, ["modelValue", "label", "description"]))
|
|
160
160
|
], 64))
|
|
161
161
|
])) : _("", !0),
|
|
162
|
-
|
|
163
|
-
|
|
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,
|
|
164
172
|
type: "submit",
|
|
165
173
|
label: e(a)("availability.buttonLabel"),
|
|
166
|
-
disabled: !
|
|
167
|
-
"is-loading":
|
|
168
|
-
}, null, 8, ["label", "disabled", "is-loading"])
|
|
174
|
+
disabled: !x.value,
|
|
175
|
+
"is-loading": B
|
|
176
|
+
}, null, 8, ["label", "disabled", "is-loading"]))
|
|
169
177
|
])
|
|
170
178
|
], 2)
|
|
171
179
|
]),
|
|
@@ -173,7 +181,7 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
|
|
|
173
181
|
}, 8, ["class"]));
|
|
174
182
|
}
|
|
175
183
|
});
|
|
176
|
-
const xe = /* @__PURE__ */
|
|
184
|
+
const xe = /* @__PURE__ */ j(ue, [["__scopeId", "data-v-d78a1562"]]), de = { class: "availability-skeleton" }, me = {
|
|
177
185
|
key: 0,
|
|
178
186
|
class: "availability-skeleton-navigation"
|
|
179
187
|
}, pe = {
|
|
@@ -182,36 +190,36 @@ const xe = /* @__PURE__ */ q(ue, [["__scopeId", "data-v-cb0dfdfc"]]), de = { cla
|
|
|
182
190
|
}, ve = {
|
|
183
191
|
key: 2,
|
|
184
192
|
class: "availability-skeleton-event"
|
|
185
|
-
}, be = /* @__PURE__ */
|
|
193
|
+
}, be = /* @__PURE__ */ S({
|
|
186
194
|
__name: "AvailabilitySkeleton",
|
|
187
195
|
props: {
|
|
188
196
|
view: { default: "hotel" }
|
|
189
197
|
},
|
|
190
198
|
setup(k) {
|
|
191
|
-
return (a, n) => (
|
|
192
|
-
a.view === "both" ? (
|
|
193
|
-
s(
|
|
199
|
+
return (a, n) => (l(), c("div", de, [
|
|
200
|
+
a.view === "both" ? (l(), c("div", me, [
|
|
201
|
+
s(T, {
|
|
194
202
|
height: "28px",
|
|
195
203
|
width: "60px",
|
|
196
204
|
"border-radius": "20px"
|
|
197
205
|
}),
|
|
198
|
-
s(
|
|
206
|
+
s(T, {
|
|
199
207
|
height: "28px",
|
|
200
208
|
width: "60px",
|
|
201
209
|
"border-radius": "20px"
|
|
202
210
|
})
|
|
203
211
|
])) : _("", !0),
|
|
204
|
-
a.view !== "event" ? (
|
|
205
|
-
s(
|
|
206
|
-
s(
|
|
207
|
-
s(
|
|
208
|
-
s(
|
|
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, {
|
|
209
217
|
"with-icon": "",
|
|
210
218
|
"no-label": ""
|
|
211
219
|
})
|
|
212
|
-
])) : (
|
|
213
|
-
s(
|
|
214
|
-
s(
|
|
220
|
+
])) : (l(), c("div", ve, [
|
|
221
|
+
s(y, { "with-icon": "" }),
|
|
222
|
+
s(y, {
|
|
215
223
|
"with-icon": "",
|
|
216
224
|
"no-label": ""
|
|
217
225
|
})
|
|
@@ -219,7 +227,7 @@ const xe = /* @__PURE__ */ q(ue, [["__scopeId", "data-v-cb0dfdfc"]]), de = { cla
|
|
|
219
227
|
]));
|
|
220
228
|
}
|
|
221
229
|
});
|
|
222
|
-
const Ae = /* @__PURE__ */
|
|
230
|
+
const Ae = /* @__PURE__ */ j(be, [["__scopeId", "data-v-c266ccbc"]]);
|
|
223
231
|
export {
|
|
224
232
|
Ae as A,
|
|
225
233
|
xe as H,
|
|
Binary file
|
|
@@ -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-
|
|
2
|
-
import { u as jl } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as Ql } from "./_-
|
|
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.
|
|
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.
|
|
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.
|
|
258
|
+
"Fresh-Booking-Ver": "4.0.25"
|
|
258
259
|
}
|
|
259
260
|
}).then((ge) => {
|
|
260
261
|
p.value = !1, E.value = !1, e.pay({
|
|
Binary file
|