@konnectio/core 4.0.18 → 4.0.19
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-4cb5a734.js +100 -0
- package/dist/ActionField-4cb5a734.js.br +0 -0
- package/dist/ActionField-656d204b.cjs +1 -0
- package/dist/AvailabilitySkeleton-00f7fc68.js +223 -0
- package/dist/AvailabilitySkeleton-00f7fc68.js.br +0 -0
- package/dist/AvailabilitySkeleton-8fc17074.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js → DateField.vue_vue_type_style_index_0_lang-36b7ee9e.js} +2227 -2226
- package/dist/DateField.vue_vue_type_style_index_0_lang-36b7ee9e.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-ef9c83d6.cjs +5 -0
- package/dist/{Field-a7c1ed62.cjs → Field-4283160f.cjs} +1 -1
- package/dist/{Field-03e6b847.js → Field-e1af1bbc.js} +5 -5
- package/dist/Field-e1af1bbc.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a517b062.cjs +1 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js +116 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-51defa22.js → SelectField.vue_vue_type_style_index_0_lang-1c999286.js} +4696 -4499
- package/dist/SelectField.vue_vue_type_style_index_0_lang-1c999286.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-03794d02.cjs → SelectField.vue_vue_type_style_index_0_lang-af7c016a.cjs} +46 -46
- package/dist/{ThankYou-3ab29b45.cjs → ThankYou-01175a37.cjs} +2 -2
- package/dist/{ThankYou-f4945877.js → ThankYou-0860a0ab.js} +18 -12
- package/dist/ThankYou-0860a0ab.js.br +0 -0
- package/dist/{_-0787261e.js → _-6db0e1a4.js} +9 -9
- package/dist/_-6db0e1a4.js.br +0 -0
- package/dist/{_-917dcead.cjs → _-b5842a21.cjs} +1 -1
- package/dist/assets/typescript/mixins.d.ts +1 -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/forms/MultiStepForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Hotel.vue.d.ts +1 -1
- package/dist/{event-208206cf.js → event-52fce8cc.js} +9 -9
- package/dist/event-52fce8cc.js.br +0 -0
- package/dist/event-c717dc05.cjs +1 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +144 -145
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +25 -26
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +36 -37
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1297 -1173
- package/dist/hotel.js.br +0 -0
- package/dist/{index-5e1ea6f0.js → index-4aff7f4e.js} +1 -1
- package/dist/index-4aff7f4e.js.br +0 -0
- package/dist/{index-7ef3288b.cjs → index-5d223c1a.cjs} +1 -1
- 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 +4 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ActionField-25ef64cf.js +0 -163
- package/dist/ActionField-25ef64cf.js.br +0 -0
- package/dist/ActionField-86389dfe.cjs +0 -1
- package/dist/AvailabilitySkeleton-3bb4b572.js +0 -200
- package/dist/AvailabilitySkeleton-3bb4b572.js.br +0 -0
- package/dist/AvailabilitySkeleton-a72464a1.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-f99302dc.cjs +0 -5
- package/dist/Field-03e6b847.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-94fa5765.js +0 -194
- package/dist/NumberField.vue_vue_type_style_index_0_lang-94fa5765.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-a779a531.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-51defa22.js.br +0 -0
- package/dist/ThankYou-f4945877.js.br +0 -0
- package/dist/_-0787261e.js.br +0 -0
- package/dist/applyGiftCard-ba1da572.cjs +0 -1
- package/dist/applyGiftCard-f2282bd2.js +0 -53
- package/dist/applyGiftCard-f2282bd2.js.br +0 -0
- package/dist/event-07ba3a0e.cjs +0 -1
- package/dist/event-208206cf.js.br +0 -0
- package/dist/index-5e1ea6f0.js.br +0 -0
package/dist/style.css.br
CHANGED
|
Binary file
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { h as c, M as b, N as g, o as u, p as r, w as V, q as v, x as d, Q as B, c as y, l as k, T as h, U as C, V as I, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-51defa22.js";
|
|
2
|
-
import { s as T } from "./NumberField.vue_vue_type_style_index_0_lang-94fa5765.js";
|
|
3
|
-
const A = /* @__PURE__ */ c({
|
|
4
|
-
__name: "NumberField",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: { default: 0 },
|
|
7
|
-
minValue: { default: 0 },
|
|
8
|
-
maxValue: { default: 1 / 0 },
|
|
9
|
-
inputtable: { type: Boolean, default: !0 },
|
|
10
|
-
label: {},
|
|
11
|
-
placeholder: {},
|
|
12
|
-
icon: {},
|
|
13
|
-
iconColor: {},
|
|
14
|
-
iconType: { default: "fal" },
|
|
15
|
-
iconPlacement: {},
|
|
16
|
-
step: { default: 1 },
|
|
17
|
-
controls: { type: Boolean, default: !0 },
|
|
18
|
-
required: { type: Boolean, default: !1 },
|
|
19
|
-
readonly: { type: Boolean, default: !1 },
|
|
20
|
-
inline: { type: Boolean, default: !1 },
|
|
21
|
-
id: {},
|
|
22
|
-
rounded: { type: Boolean, default: !1 },
|
|
23
|
-
disabled: { type: Boolean, default: !1 },
|
|
24
|
-
small: { type: Boolean, default: !1 }
|
|
25
|
-
},
|
|
26
|
-
emits: ["update:modelValue"],
|
|
27
|
-
setup(p, { emit: m }) {
|
|
28
|
-
const s = m, o = p, n = o.id || b();
|
|
29
|
-
function t(l) {
|
|
30
|
-
s("update:modelValue", l);
|
|
31
|
-
}
|
|
32
|
-
return g(() => {
|
|
33
|
-
o.modelValue || t(o.minValue);
|
|
34
|
-
}), (l, f) => (u(), r(B, {
|
|
35
|
-
label: l.label,
|
|
36
|
-
id: d(n),
|
|
37
|
-
icon: l.icon,
|
|
38
|
-
"icon-color": l.iconColor,
|
|
39
|
-
"icon-type": l.iconType,
|
|
40
|
-
"icon-placement": l.iconPlacement,
|
|
41
|
-
required: l.required,
|
|
42
|
-
type: l.small ? "fresh-booking-number-picker small" : "fresh-booking-number-picker",
|
|
43
|
-
readonly: l.readonly
|
|
44
|
-
}, {
|
|
45
|
-
default: V(() => [
|
|
46
|
-
v(d(T), {
|
|
47
|
-
attrs: { id: d(n) },
|
|
48
|
-
modelValue: l.modelValue,
|
|
49
|
-
min: l.minValue,
|
|
50
|
-
max: l.maxValue,
|
|
51
|
-
step: l.step,
|
|
52
|
-
inline: l.inline,
|
|
53
|
-
controls: l.controls,
|
|
54
|
-
placeholder: l.placeholder,
|
|
55
|
-
readonly: l.readonly,
|
|
56
|
-
inputtable: l.inputtable,
|
|
57
|
-
rounded: l.rounded,
|
|
58
|
-
disabled: l.disabled,
|
|
59
|
-
"onUpdate:modelValue": t
|
|
60
|
-
}, null, 8, ["attrs", "modelValue", "min", "max", "step", "inline", "controls", "placeholder", "readonly", "inputtable", "rounded", "disabled"])
|
|
61
|
-
]),
|
|
62
|
-
_: 1
|
|
63
|
-
}, 8, ["label", "id", "icon", "icon-color", "icon-type", "icon-placement", "required", "type", "readonly"]));
|
|
64
|
-
}
|
|
65
|
-
}), U = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ c({
|
|
66
|
-
__name: "ActionField",
|
|
67
|
-
props: {
|
|
68
|
-
modelValue: {},
|
|
69
|
-
label: {},
|
|
70
|
-
buttonLabel: {},
|
|
71
|
-
buttonIcon: {},
|
|
72
|
-
buttonIconColor: {},
|
|
73
|
-
buttonDisabled: { type: Boolean, default: !1 },
|
|
74
|
-
secondary: { type: Boolean, default: !1 },
|
|
75
|
-
name: {},
|
|
76
|
-
id: {},
|
|
77
|
-
type: { default: "text" },
|
|
78
|
-
placeholder: {},
|
|
79
|
-
icon: {},
|
|
80
|
-
iconType: { default: "fal" },
|
|
81
|
-
required: { type: Boolean, default: !1 },
|
|
82
|
-
readonly: { type: Boolean, default: !1 },
|
|
83
|
-
data: {},
|
|
84
|
-
action: {},
|
|
85
|
-
minValue: {},
|
|
86
|
-
maxValue: {},
|
|
87
|
-
isLoading: { type: Boolean, default: !1 }
|
|
88
|
-
},
|
|
89
|
-
emits: ["update:modelValue", "action"],
|
|
90
|
-
setup(p, { emit: m }) {
|
|
91
|
-
const s = m, o = p, n = o.id || b();
|
|
92
|
-
function t(e) {
|
|
93
|
-
s("update:modelValue", e);
|
|
94
|
-
}
|
|
95
|
-
const l = y({
|
|
96
|
-
get: () => o.modelValue,
|
|
97
|
-
set: (e) => t(e)
|
|
98
|
-
}), f = y({
|
|
99
|
-
get: () => o.modelValue,
|
|
100
|
-
set: (e) => t(e)
|
|
101
|
-
});
|
|
102
|
-
function q() {
|
|
103
|
-
s("action");
|
|
104
|
-
}
|
|
105
|
-
return (e, a) => (u(), r(B, {
|
|
106
|
-
label: e.label,
|
|
107
|
-
id: d(n),
|
|
108
|
-
icon: e.icon,
|
|
109
|
-
"icon-type": e.iconType,
|
|
110
|
-
required: e.required,
|
|
111
|
-
type: e.type,
|
|
112
|
-
readonly: e.readonly
|
|
113
|
-
}, {
|
|
114
|
-
default: V(() => [
|
|
115
|
-
k("div", U, [
|
|
116
|
-
e.type === "dropdown" && e.data ? (u(), r(h, {
|
|
117
|
-
key: 0,
|
|
118
|
-
modelValue: l.value,
|
|
119
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) => l.value = i),
|
|
120
|
-
id: d(n),
|
|
121
|
-
options: e.data,
|
|
122
|
-
name: e.name,
|
|
123
|
-
required: e.required,
|
|
124
|
-
placeholder: e.placeholder
|
|
125
|
-
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (u(), r(A, {
|
|
126
|
-
key: 1,
|
|
127
|
-
modelValue: f.value,
|
|
128
|
-
"onUpdate:modelValue": a[1] || (a[1] = (i) => f.value = i),
|
|
129
|
-
id: d(n),
|
|
130
|
-
"min-value": e.minValue,
|
|
131
|
-
"max-value": e.maxValue
|
|
132
|
-
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (u(), r(C, {
|
|
133
|
-
key: 2,
|
|
134
|
-
modelValue: l.value,
|
|
135
|
-
"onUpdate:modelValue": a[2] || (a[2] = (i) => l.value = i),
|
|
136
|
-
id: d(n),
|
|
137
|
-
name: e.name,
|
|
138
|
-
required: e.required,
|
|
139
|
-
placeholder: e.placeholder
|
|
140
|
-
}, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
|
|
141
|
-
v(I, {
|
|
142
|
-
"data-test": `${e.name}Submit`,
|
|
143
|
-
icon: e.buttonIcon,
|
|
144
|
-
label: e.buttonLabel,
|
|
145
|
-
"icon-color": e.buttonIconColor,
|
|
146
|
-
styling: e.action,
|
|
147
|
-
type: "button",
|
|
148
|
-
"is-loading": e.isLoading,
|
|
149
|
-
disabled: e.buttonDisabled,
|
|
150
|
-
secondary: e.secondary,
|
|
151
|
-
onClickEvent: a[3] || (a[3] = (i) => q())
|
|
152
|
-
}, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
|
|
153
|
-
])
|
|
154
|
-
]),
|
|
155
|
-
_: 1
|
|
156
|
-
}, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
const $ = /* @__PURE__ */ F(L, [["__scopeId", "data-v-07d4466b"]]);
|
|
160
|
-
export {
|
|
161
|
-
$ as A,
|
|
162
|
-
A as _
|
|
163
|
-
};
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-03794d02.cjs"),f=require("./NumberField.vue_vue_type_style_index_0_lang-a779a531.cjs"),m=e.defineComponent({__name:"NumberField",props:{modelValue:{default:0},minValue:{default:0},maxValue:{default:1/0},inputtable:{type:Boolean,default:!0},label:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},iconPlacement:{},step:{default:1},controls:{type:Boolean,default:!0},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},id:{},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(r,{emit:p}){const u=p,a=r,d=a.id||e.ranId();function t(o){u("update:modelValue",o)}return e.onMounted(()=>{a.modelValue||t(a.minValue)}),(o,s)=>(e.openBlock(),e.createBlock(e.InputField,{label:o.label,id:e.unref(d),icon:o.icon,"icon-color":o.iconColor,"icon-type":o.iconType,"icon-placement":o.iconPlacement,required:o.required,type:o.small?"fresh-booking-number-picker small":"fresh-booking-number-picker",readonly:o.readonly},{default:e.withCtx(()=>[e.createVNode(e.unref(f.script),{attrs:{id:e.unref(d)},modelValue:o.modelValue,min:o.minValue,max:o.maxValue,step:o.step,inline:o.inline,controls:o.controls,placeholder:o.placeholder,readonly:o.readonly,inputtable:o.inputtable,rounded:o.rounded,disabled:o.disabled,"onUpdate:modelValue":t},null,8,["attrs","modelValue","min","max","step","inline","controls","placeholder","readonly","inputtable","rounded","disabled"])]),_:1},8,["label","id","icon","icon-color","icon-type","icon-placement","required","type","readonly"]))}}),y={class:"fresh-booking-action-field"},b=e.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(r,{emit:p}){const u=p,a=r,d=a.id||e.ranId();function t(l){u("update:modelValue",l)}const o=e.computed({get:()=>a.modelValue,set:l=>t(l)}),s=e.computed({get:()=>a.modelValue,set:l=>t(l)});function c(){u("action")}return(l,n)=>(e.openBlock(),e.createBlock(e.InputField,{label:l.label,id:e.unref(d),icon:l.icon,"icon-type":l.iconType,required:l.required,type:l.type,readonly:l.readonly},{default:e.withCtx(()=>[e.createBaseVNode("div",y,[l.type==="dropdown"&&l.data?(e.openBlock(),e.createBlock(e._sfc_main$1,{key:0,modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=i=>o.value=i),id:e.unref(d),options:l.data,name:l.name,required:l.required,placeholder:l.placeholder},null,8,["modelValue","id","options","name","required","placeholder"])):l.type==="number"?(e.openBlock(),e.createBlock(m,{key:1,modelValue:s.value,"onUpdate:modelValue":n[1]||(n[1]=i=>s.value=i),id:e.unref(d),"min-value":l.minValue,"max-value":l.maxValue},null,8,["modelValue","id","min-value","max-value"])):(e.openBlock(),e.createBlock(e.TextField,{key:2,modelValue:o.value,"onUpdate:modelValue":n[2]||(n[2]=i=>o.value=i),id:e.unref(d),name:l.name,required:l.required,placeholder:l.placeholder},null,8,["modelValue","id","name","required","placeholder"])),e.createVNode(e.Clickable,{"data-test":`${l.name}Submit`,icon:l.buttonIcon,label:l.buttonLabel,"icon-color":l.buttonIconColor,styling:l.action,type:"button","is-loading":l.isLoading,disabled:l.buttonDisabled,secondary:l.secondary,onClickEvent:n[3]||(n[3]=i=>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 V=e._export_sfc(b,[["__scopeId","data-v-07d4466b"]]);exports.ActionField=V;exports._sfc_main=m;
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { h as $, r as I, a as O, o, j as u, a9 as J, B as K, t as P, s as w, c as p, a1 as C, N as Q, p as V, w as W, l as x, x as e, q as i, y as S, T as X, k as f, U as F, V as Y, n as N, f as Z, _ as T } from "./SelectField.vue_vue_type_style_index_0_lang-51defa22.js";
|
|
2
|
-
import { u as R, a as E, _ as ee } from "./DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js";
|
|
3
|
-
import { E as H } from "./_-0787261e.js";
|
|
4
|
-
import { F as b } from "./Field-03e6b847.js";
|
|
5
|
-
const ae = ["onSubmit"], te = /* @__PURE__ */ $({
|
|
6
|
-
__name: "_",
|
|
7
|
-
props: {
|
|
8
|
-
type: { default: "submit" }
|
|
9
|
-
},
|
|
10
|
-
emits: ["submit"],
|
|
11
|
-
setup(D, { emit: n }) {
|
|
12
|
-
const a = I(!1), d = n, _ = D, { verifyRecaptcha: r } = O();
|
|
13
|
-
function m() {
|
|
14
|
-
a.value = !0, r({
|
|
15
|
-
callback: y,
|
|
16
|
-
type: _.type
|
|
17
|
-
}).then(() => a.value = !1);
|
|
18
|
-
}
|
|
19
|
-
function y() {
|
|
20
|
-
d("submit");
|
|
21
|
-
}
|
|
22
|
-
return (h, A) => (o(), u("form", {
|
|
23
|
-
onSubmit: K(m, ["prevent"])
|
|
24
|
-
}, [
|
|
25
|
-
J(h.$slots, "default", { isLoading: a.value })
|
|
26
|
-
], 40, ae));
|
|
27
|
-
}
|
|
28
|
-
}), le = {
|
|
29
|
-
key: 0,
|
|
30
|
-
class: "konnectio-availability-location"
|
|
31
|
-
}, ie = { id: "fresh-booking-availability-date-selection" }, ne = {
|
|
32
|
-
key: 1,
|
|
33
|
-
id: "fresh-booking-availability-guest-selection"
|
|
34
|
-
}, oe = { id: "fresh-booking-availability-confirmation" }, se = /* @__PURE__ */ $({
|
|
35
|
-
__name: "HotelAvailabilityForm",
|
|
36
|
-
props: {
|
|
37
|
-
booking: { type: Boolean, default: !1 },
|
|
38
|
-
link: {}
|
|
39
|
-
},
|
|
40
|
-
setup(D) {
|
|
41
|
-
const { t: n } = P(), a = D, {
|
|
42
|
-
adults: d,
|
|
43
|
-
children: _,
|
|
44
|
-
arrivalDate: r,
|
|
45
|
-
departureDate: m,
|
|
46
|
-
location: y,
|
|
47
|
-
isExpired: h
|
|
48
|
-
} = w(R()), { reset: A } = R(), { fetchAvailabilityData: q } = E(), { areListingsLoading: z, hotelList: g } = w(E()), {
|
|
49
|
-
firstSelectableDateOffset: L,
|
|
50
|
-
lastSelectableDateOffset: U,
|
|
51
|
-
disableChildSelection: v,
|
|
52
|
-
disableAdultSelection: c
|
|
53
|
-
} = w(O()), k = I([]), ve = p(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (L.value - 1)))), pe = p(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + U.value))), be = p(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + L.value))), fe = p(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + (U.value + 1)))), B = p(() => !(!c && d.value === 0)), M = p(() => typeof a.link != "string");
|
|
54
|
-
function j() {
|
|
55
|
-
if (a.booking === !1)
|
|
56
|
-
if (M.value) {
|
|
57
|
-
const t = Z();
|
|
58
|
-
a.link[t] ? window.location.replace(a.link[t]) : a.link.en ? window.location.replace(a.link.en) : console.log("Sprog understøttes ikke");
|
|
59
|
-
} else
|
|
60
|
-
window.location.replace(a.link);
|
|
61
|
-
else
|
|
62
|
-
B.value && q();
|
|
63
|
-
}
|
|
64
|
-
return C(r, (t) => {
|
|
65
|
-
const l = new Date(new Date(t).setDate(new Date(t).getDate() + 1));
|
|
66
|
-
new Date(m.value) < l && (m.value = l);
|
|
67
|
-
}), C(k, (t) => {
|
|
68
|
-
r.value = t[0], m.value = t[1];
|
|
69
|
-
}), Q(() => {
|
|
70
|
-
h.value && a.booking && A(), k.value = [r.value, m.value];
|
|
71
|
-
}), (t, l) => (o(), V(te, {
|
|
72
|
-
id: "konnectio-availability-form",
|
|
73
|
-
class: N({ reservation: t.booking }),
|
|
74
|
-
type: "availability",
|
|
75
|
-
onSubmit: j
|
|
76
|
-
}, {
|
|
77
|
-
default: W(({ isLoading: G }) => [
|
|
78
|
-
x("ul", {
|
|
79
|
-
id: "konnectio-availability-form-content",
|
|
80
|
-
class: N([
|
|
81
|
-
{ "is-not-booking-page": !t.booking },
|
|
82
|
-
{ "only-adult-guests": !e(c) && e(v) },
|
|
83
|
-
{ "only-child-guests": !e(v) && e(c) },
|
|
84
|
-
{ "no-guests": e(c) && e(v) },
|
|
85
|
-
{ "all-guests": !e(c) && !e(v) },
|
|
86
|
-
{ "has-location": e(g) }
|
|
87
|
-
])
|
|
88
|
-
}, [
|
|
89
|
-
e(g) ? (o(), u("li", le, [
|
|
90
|
-
i(X, {
|
|
91
|
-
modelValue: e(y),
|
|
92
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => S(y) ? y.value = s : null),
|
|
93
|
-
label: e(n)("general.location"),
|
|
94
|
-
icon: "location-dot",
|
|
95
|
-
"icon-type": "fas",
|
|
96
|
-
"icon-placement": "label",
|
|
97
|
-
options: e(g),
|
|
98
|
-
searchable: !1
|
|
99
|
-
}, null, 8, ["modelValue", "label", "options"])
|
|
100
|
-
])) : f("", !0),
|
|
101
|
-
x("li", ie, [
|
|
102
|
-
i(ee, {
|
|
103
|
-
modelValue: k.value,
|
|
104
|
-
"onUpdate:modelValue": l[1] || (l[1] = (s) => k.value = s),
|
|
105
|
-
label: e(n)("availability.checkInOut"),
|
|
106
|
-
"icon-type": "fas",
|
|
107
|
-
"icon-placement": "label",
|
|
108
|
-
"min-range": 1,
|
|
109
|
-
range: ""
|
|
110
|
-
}, null, 8, ["modelValue", "label"]),
|
|
111
|
-
f("", !0)
|
|
112
|
-
]),
|
|
113
|
-
!e(c) || !e(v) ? (o(), u("li", ne, [
|
|
114
|
-
e(c) ? f("", !0) : (o(), V(F, {
|
|
115
|
-
key: 0,
|
|
116
|
-
modelValue: e(d),
|
|
117
|
-
"onUpdate:modelValue": l[4] || (l[4] = (s) => S(d) ? d.value = s : null),
|
|
118
|
-
label: e(n)("availability.adults"),
|
|
119
|
-
"icon-type": "fas",
|
|
120
|
-
"icon-placement": "label",
|
|
121
|
-
name: "adults",
|
|
122
|
-
icon: "male"
|
|
123
|
-
}, null, 8, ["modelValue", "label"])),
|
|
124
|
-
e(v) ? f("", !0) : (o(), V(F, {
|
|
125
|
-
key: 1,
|
|
126
|
-
modelValue: e(_),
|
|
127
|
-
"onUpdate:modelValue": l[5] || (l[5] = (s) => S(_) ? _.value = s : null),
|
|
128
|
-
label: e(n)("availability.children"),
|
|
129
|
-
"icon-type": "fas",
|
|
130
|
-
"icon-placement": "label",
|
|
131
|
-
name: "children",
|
|
132
|
-
icon: "child"
|
|
133
|
-
}, null, 8, ["modelValue", "label"]))
|
|
134
|
-
])) : f("", !0),
|
|
135
|
-
x("li", oe, [
|
|
136
|
-
i(Y, {
|
|
137
|
-
type: "submit",
|
|
138
|
-
label: e(n)("availability.buttonLabel"),
|
|
139
|
-
disabled: !B.value,
|
|
140
|
-
"is-loading": e(z) || G
|
|
141
|
-
}, null, 8, ["label", "disabled", "is-loading"])
|
|
142
|
-
])
|
|
143
|
-
], 2)
|
|
144
|
-
]),
|
|
145
|
-
_: 1
|
|
146
|
-
}, 8, ["class"]));
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
const he = /* @__PURE__ */ T(se, [["__scopeId", "data-v-41c405ba"]]), re = { class: "availability-skeleton" }, ce = {
|
|
150
|
-
key: 0,
|
|
151
|
-
class: "availability-skeleton-navigation"
|
|
152
|
-
}, ue = {
|
|
153
|
-
key: 1,
|
|
154
|
-
class: "availability-skeleton-hotel"
|
|
155
|
-
}, de = {
|
|
156
|
-
key: 2,
|
|
157
|
-
class: "availability-skeleton-event"
|
|
158
|
-
}, me = /* @__PURE__ */ $({
|
|
159
|
-
__name: "AvailabilitySkeleton",
|
|
160
|
-
props: {
|
|
161
|
-
view: { default: "hotel" }
|
|
162
|
-
},
|
|
163
|
-
setup(D) {
|
|
164
|
-
return (n, a) => (o(), u("div", re, [
|
|
165
|
-
n.view === "both" ? (o(), u("div", ce, [
|
|
166
|
-
i(H, {
|
|
167
|
-
height: "28px",
|
|
168
|
-
width: "60px",
|
|
169
|
-
"border-radius": "20px"
|
|
170
|
-
}),
|
|
171
|
-
i(H, {
|
|
172
|
-
height: "28px",
|
|
173
|
-
width: "60px",
|
|
174
|
-
"border-radius": "20px"
|
|
175
|
-
})
|
|
176
|
-
])) : f("", !0),
|
|
177
|
-
n.view !== "event" ? (o(), u("div", ue, [
|
|
178
|
-
i(b, { "with-icon": "" }),
|
|
179
|
-
i(b, { "with-icon": "" }),
|
|
180
|
-
i(b, { "with-icon": "" }),
|
|
181
|
-
i(b, {
|
|
182
|
-
"with-icon": "",
|
|
183
|
-
"no-label": ""
|
|
184
|
-
})
|
|
185
|
-
])) : (o(), u("div", de, [
|
|
186
|
-
i(b, { "with-icon": "" }),
|
|
187
|
-
i(b, {
|
|
188
|
-
"with-icon": "",
|
|
189
|
-
"no-label": ""
|
|
190
|
-
})
|
|
191
|
-
]))
|
|
192
|
-
]));
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
const ge = /* @__PURE__ */ T(me, [["__scopeId", "data-v-c266ccbc"]]);
|
|
196
|
-
export {
|
|
197
|
-
ge as A,
|
|
198
|
-
he as H,
|
|
199
|
-
te as _
|
|
200
|
-
};
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-03794d02.cjs"),m=require("./DateField.vue_vue_type_style_index_0_lang-f99302dc.cjs"),V=require("./_-917dcead.cjs"),d=require("./Field-a7c1ed62.cjs"),A=["onSubmit"],w=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(p,{emit:n}){const t=e.ref(!1),c=n,_=p,{verifyRecaptcha:o}=e.useUtilityStore();function u(){t.value=!0,o({callback:v,type:_.type}).then(()=>t.value=!1)}function v(){c("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(u,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:t.value})],40,A))}}),C={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},E={key:1,id:"fresh-booking-availability-guest-selection"},L={id:"fresh-booking-availability-confirmation"},R=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(p){const{t:n}=e.useI18n(),t=p,{adults:c,children:_,arrivalDate:o,departureDate:u,location:v,isExpired:y}=e.storeToRefs(m.useAvailabilityStore()),{reset:k}=m.useAvailabilityStore(),{fetchAvailabilityData:x}=m.useHotelStore(),{areListingsLoading:S,hotelList:b}=e.storeToRefs(m.useHotelStore()),{firstSelectableDateOffset:D,lastSelectableDateOffset:g,disableChildSelection:r,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),M=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(D.value-1)))),j=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+g.value))),G=e.computed(()=>new Date(new Date().setDate(o.value.getDate()+D.value))),J=e.computed(()=>new Date(new Date().setDate(o.value.getDate()+(g.value+1)))),h=e.computed(()=>!(!s&&c.value===0)),F=e.computed(()=>typeof t.link!="string");function B(){if(t.booking===!1)if(F.value){const l=e.getUserLanguage();t.link[l]?window.location.replace(t.link[l]):t.link.en?window.location.replace(t.link.en):console.log("Sprog understøttes ikke")}else window.location.replace(t.link);else h.value&&x()}return e.watch(o,l=>{const a=new Date(new Date(l).setDate(new Date(l).getDate()+1));new Date(u.value)<a&&(u.value=a)}),e.watch(f,l=>{o.value=l[0],u.value=l[1]}),e.onMounted(()=>{y.value&&t.booking&&k(),f.value=[o.value,u.value]}),(l,a)=>(e.openBlock(),e.createBlock(w,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:l.booking}),type:"availability",onSubmit:B},{default:e.withCtx(({isLoading:N})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!l.booking},{"only-adult-guests":!e.unref(s)&&e.unref(r)},{"only-child-guests":!e.unref(r)&&e.unref(s)},{"no-guests":e.unref(s)&&e.unref(r)},{"all-guests":!e.unref(s)&&!e.unref(r)},{"has-location":e.unref(b)}])},[e.unref(b)?(e.openBlock(),e.createElementBlock("li",C,[e.createVNode(e._sfc_main$1,{modelValue:e.unref(v),"onUpdate:modelValue":a[0]||(a[0]=i=>e.isRef(v)?v.value=i:null),label:e.unref(n)("general.location"),icon:"location-dot","icon-type":"fas","icon-placement":"label",options:e.unref(b),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(m._sfc_main,{modelValue:f.value,"onUpdate:modelValue":a[1]||(a[1]=i=>f.value=i),label:e.unref(n)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(s)||!e.unref(r)?(e.openBlock(),e.createElementBlock("li",E,[e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(c),"onUpdate:modelValue":a[4]||(a[4]=i=>e.isRef(c)?c.value=i:null),label:e.unref(n)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])),e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.TextField,{key:1,modelValue:e.unref(_),"onUpdate:modelValue":a[5]||(a[5]=i=>e.isRef(_)?_.value=i:null),label:e.unref(n)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))])):e.createCommentVNode("",!0),e.createBaseVNode("li",L,[e.createVNode(e.Clickable,{type:"submit",label:e.unref(n)("availability.buttonLabel"),disabled:!h.value,"is-loading":e.unref(S)||N},null,8,["label","disabled","is-loading"])])],2)]),_:1},8,["class"]))}});const U=e._export_sfc(R,[["__scopeId","data-v-41c405ba"]]),H={class:"availability-skeleton"},q={key:0,class:"availability-skeleton-navigation"},T={key:1,class:"availability-skeleton-hotel"},I={key:2,class:"availability-skeleton-event"},z=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(p){return(n,t)=>(e.openBlock(),e.createElementBlock("div",H,[n.view==="both"?(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(V.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(V.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),n.view!=="event"?(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(d.Field,{"with-icon":""}),e.createVNode(d.Field,{"with-icon":""}),e.createVNode(d.Field,{"with-icon":""}),e.createVNode(d.Field,{"with-icon":"","no-label":""})])):(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(d.Field,{"with-icon":""}),e.createVNode(d.Field,{"with-icon":"","no-label":""})]))]))}});const O=e._export_sfc(z,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=O;exports.HotelAvailabilityForm=U;exports._sfc_main=w;
|
|
Binary file
|