@konnectio/core 4.0.27 → 4.0.28
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-5a87e270.js → ActionField-20fd2fef.js} +7 -7
- package/dist/ActionField-20fd2fef.js.br +0 -0
- package/dist/{ActionField-1d753e66.cjs → ActionField-487e86aa.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-c0729deb.js → AvailabilitySkeleton-813806c7.js} +38 -38
- package/dist/AvailabilitySkeleton-813806c7.js.br +0 -0
- package/dist/{AvailabilitySkeleton-4cf5dece.cjs → AvailabilitySkeleton-ff721887.cjs} +1 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-3abac10d.js +8503 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-3abac10d.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-c80f334d.cjs +2 -0
- package/dist/{Field-2dd44110.cjs → Field-6b050caf.cjs} +1 -1
- package/dist/{Field-1630bef3.js → Field-79fc7dfa.js} +2 -2
- package/dist/Field-79fc7dfa.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js +67 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-1c0634a0.cjs +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-aa9c0c1a.cjs +858 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-3f482f0a.js → SelectField.vue_vue_type_style_index_0_lang-d631c22b.js} +10082 -9612
- package/dist/SelectField.vue_vue_type_style_index_0_lang-d631c22b.js.br +0 -0
- package/dist/{ThankYou-8449e6f1.cjs → ThankYou-3ada7b03.cjs} +6 -6
- package/dist/{ThankYou-d9cb4dcb.js → ThankYou-9dd940b6.js} +661 -666
- package/dist/ThankYou-9dd940b6.js.br +0 -0
- package/dist/_-b36ce0a6.cjs +1 -0
- package/dist/_-f9c3008a.js +20 -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/ReservationForm.vue.d.ts +1 -1
- package/dist/components/inputs/CheckboxField.vue.d.ts +5 -0
- package/dist/components/inputs/CheckboxField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/RoomConfigField.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/components/views/TermsOfService.vue.d.ts +1 -1
- package/dist/{event-44910778.js → event-16449760.js} +11 -13
- package/dist/event-16449760.js.br +0 -0
- package/dist/event-69ba12c7.cjs +1 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +132 -132
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +29 -29
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +87 -87
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1272 -1297
- package/dist/hotel.js.br +0 -0
- package/dist/{index-072f9f67.cjs → index-bf17dd6e.cjs} +1 -1
- package/dist/{index-3e49491a.js → index-ddf58f34.js} +1 -1
- package/dist/index-ddf58f34.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/applyGiftCard.d.ts +1 -1
- package/dist/store/event.d.ts +3 -3
- package/dist/store/giftCard.d.ts +1 -1
- package/dist/store/hotel.d.ts +4 -4
- package/dist/store/payment.d.ts +1 -1
- package/dist/store/tracking.d.ts +13 -1
- package/dist/store/utilities.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +2 -2
- package/dist/ActionField-5a87e270.js.br +0 -0
- package/dist/AvailabilitySkeleton-c0729deb.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-84a02496.js +0 -8844
- package/dist/DateField.vue_vue_type_style_index_0_lang-84a02496.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-d010fc16.cjs +0 -5
- package/dist/Field-1630bef3.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-1f0ed43e.cjs +0 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-3f313372.js +0 -116
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-3f313372.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-3f482f0a.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-cc9c833c.cjs +0 -855
- package/dist/ThankYou-d9cb4dcb.js.br +0 -0
- package/dist/_-963a5633.js +0 -82
- package/dist/_-963a5633.js.br +0 -0
- package/dist/_-cf306835.cjs +0 -1
- package/dist/event-44910778.js.br +0 -0
- package/dist/event-8998e0ed.cjs +0 -1
- package/dist/index-3e49491a.js.br +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
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-d631c22b.js";
|
|
2
|
+
import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js";
|
|
3
|
+
const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ b({
|
|
4
4
|
__name: "ActionField",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
@@ -50,8 +50,8 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ b({
|
|
|
50
50
|
readonly: e.readonly
|
|
51
51
|
}, {
|
|
52
52
|
default: v(() => [
|
|
53
|
-
|
|
54
|
-
e.type === "dropdown" && e.data ? (d(), i(
|
|
53
|
+
q("div", L, [
|
|
54
|
+
e.type === "dropdown" && e.data ? (d(), i(g, {
|
|
55
55
|
key: 0,
|
|
56
56
|
modelValue: n.value,
|
|
57
57
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
|
|
@@ -60,7 +60,7 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ b({
|
|
|
60
60
|
name: e.name,
|
|
61
61
|
required: e.required,
|
|
62
62
|
placeholder: e.placeholder
|
|
63
|
-
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(
|
|
63
|
+
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(F, {
|
|
64
64
|
key: 1,
|
|
65
65
|
modelValue: p.value,
|
|
66
66
|
"onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
|
|
@@ -94,7 +94,7 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ b({
|
|
|
94
94
|
}, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
|
-
const w = /* @__PURE__ */
|
|
97
|
+
const w = /* @__PURE__ */ A(T, [["__scopeId", "data-v-ad281c18"]]);
|
|
98
98
|
export {
|
|
99
99
|
w as A
|
|
100
100
|
};
|
|
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-aa9c0c1a.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-1c0634a0.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,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import { E as
|
|
5
|
-
import { F as y } from "./Field-
|
|
1
|
+
import { k as S, r as z, c as M, m as l, v as c, aa as W, L as X, D as Y, s as x, ab as C, ac as F, f, a1 as H, o as Z, n as p, w as ee, A as $, q as e, p as s, G as g, B as ae, x as _, a2 as E, T as N, C as I, y as O, i as le, _ as G } from "./SelectField.vue_vue_type_style_index_0_lang-d631c22b.js";
|
|
2
|
+
import { _ as te } from "./DateField.vue_vue_type_style_index_0_lang-3abac10d.js";
|
|
3
|
+
import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js";
|
|
4
|
+
import { E as q } from "./_-f9c3008a.js";
|
|
5
|
+
import { F as y } from "./Field-79fc7dfa.js";
|
|
6
6
|
const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
7
7
|
__name: "_",
|
|
8
8
|
props: {
|
|
@@ -10,14 +10,14 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
10
10
|
},
|
|
11
11
|
emits: ["submit"],
|
|
12
12
|
setup(k, { emit: a }) {
|
|
13
|
-
const n =
|
|
13
|
+
const n = z(!1), r = a, u = k, { verifyRecaptcha: d } = M();
|
|
14
14
|
function v() {
|
|
15
15
|
n.value = !0, d({
|
|
16
|
-
callback:
|
|
16
|
+
callback: D,
|
|
17
17
|
type: u.type
|
|
18
18
|
}).then(() => n.value = !1);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function D() {
|
|
21
21
|
r("submit");
|
|
22
22
|
}
|
|
23
23
|
return (V, L) => (l(), c("form", {
|
|
@@ -44,14 +44,14 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
44
44
|
children: u,
|
|
45
45
|
arrivalDate: d,
|
|
46
46
|
departureDate: v,
|
|
47
|
-
location:
|
|
47
|
+
location: D,
|
|
48
48
|
isExpired: V
|
|
49
|
-
} =
|
|
49
|
+
} = x(C()), { reset: L } = C(), { fetchAvailabilityData: j } = F(), { areListingsLoading: J, hotelList: K, hasHotelList: h } = x(F()), {
|
|
50
50
|
firstSelectableDateOffset: R,
|
|
51
51
|
lastSelectableDateOffset: U,
|
|
52
52
|
disableChildSelection: b,
|
|
53
53
|
disableAdultSelection: m
|
|
54
|
-
} =
|
|
54
|
+
} = x(M()), w = z([]), 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))), De = f(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (U.value + 1)))), A = f(() => !(!m && r.value === 0)), P = f(() => typeof n.link != "string");
|
|
55
55
|
function Q() {
|
|
56
56
|
if (n.booking === !1)
|
|
57
57
|
if (P.value) {
|
|
@@ -60,25 +60,25 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
60
60
|
} else
|
|
61
61
|
window.location.replace(n.link);
|
|
62
62
|
else
|
|
63
|
-
|
|
63
|
+
A.value && j();
|
|
64
64
|
}
|
|
65
|
-
return
|
|
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
|
}), Z(() => {
|
|
71
71
|
V.value && L(), w.value = [d.value, v.value];
|
|
72
72
|
}), (o, t) => (l(), p(ne, {
|
|
73
73
|
id: "konnectio-availability-form",
|
|
74
|
-
class:
|
|
74
|
+
class: O({ reservation: o.booking }),
|
|
75
75
|
type: "availability",
|
|
76
76
|
onSubmit: Q
|
|
77
77
|
}, {
|
|
78
78
|
default: ee(({ isLoading: B }) => [
|
|
79
79
|
$("ul", {
|
|
80
80
|
id: "konnectio-availability-form-content",
|
|
81
|
-
class:
|
|
81
|
+
class: O([
|
|
82
82
|
{ "is-booking-page": o.booking },
|
|
83
83
|
{ "only-adult-guests": !e(m) && e(b) },
|
|
84
84
|
{ "only-child-guests": !e(b) && e(m) },
|
|
@@ -89,8 +89,8 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
89
89
|
}, [
|
|
90
90
|
e(h) ? (l(), c("li", oe, [
|
|
91
91
|
s(ae, {
|
|
92
|
-
modelValue: e(
|
|
93
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) => D
|
|
92
|
+
modelValue: e(D),
|
|
93
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => g(D) ? D.value = i : null),
|
|
94
94
|
label: e(a)("general.location"),
|
|
95
95
|
icon: "location-dot",
|
|
96
96
|
"icon-type": "fas",
|
|
@@ -112,21 +112,21 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
112
112
|
_("", !0)
|
|
113
113
|
]),
|
|
114
114
|
!e(m) || !e(b) ? (l(), c("li", re, [
|
|
115
|
-
e(m) ? _("", !0) : (l(), c(
|
|
116
|
-
e(h) ? (l(), p(
|
|
115
|
+
e(m) ? _("", !0) : (l(), c(E, { key: 0 }, [
|
|
116
|
+
e(h) ? (l(), p(N, {
|
|
117
117
|
key: 0,
|
|
118
118
|
modelValue: e(r),
|
|
119
|
-
"onUpdate:modelValue": t[4] || (t[4] = (i) =>
|
|
119
|
+
"onUpdate:modelValue": t[4] || (t[4] = (i) => g(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"])) : (l(), p(
|
|
126
|
+
}, null, 8, ["modelValue", "label", "description"])) : (l(), p(T, {
|
|
127
127
|
key: 1,
|
|
128
128
|
modelValue: e(r),
|
|
129
|
-
"onUpdate:modelValue": t[5] || (t[5] = (i) =>
|
|
129
|
+
"onUpdate:modelValue": t[5] || (t[5] = (i) => g(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__ */ S({
|
|
|
135
135
|
icon: "male"
|
|
136
136
|
}, null, 8, ["modelValue", "label", "description"]))
|
|
137
137
|
], 64)),
|
|
138
|
-
e(b) ? _("", !0) : (l(), c(
|
|
139
|
-
e(h) ? (l(), p(
|
|
138
|
+
e(b) ? _("", !0) : (l(), c(E, { key: 1 }, [
|
|
139
|
+
e(h) ? (l(), p(N, {
|
|
140
140
|
key: 0,
|
|
141
141
|
modelValue: e(u),
|
|
142
|
-
"onUpdate:modelValue": t[6] || (t[6] = (i) =>
|
|
142
|
+
"onUpdate:modelValue": t[6] || (t[6] = (i) => g(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"])) : (l(), p(
|
|
149
|
+
}, null, 8, ["modelValue", "label", "description"])) : (l(), p(T, {
|
|
150
150
|
key: 1,
|
|
151
151
|
modelValue: e(u),
|
|
152
|
-
"onUpdate:modelValue": t[7] || (t[7] = (i) =>
|
|
152
|
+
"onUpdate:modelValue": t[7] || (t[7] = (i) => g(u) ? u.value = i : null),
|
|
153
153
|
label: e(a)("availability.children"),
|
|
154
154
|
description: e(a)("general.childAgeRange"),
|
|
155
155
|
"icon-type": "fas",
|
|
@@ -160,18 +160,18 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
160
160
|
], 64))
|
|
161
161
|
])) : _("", !0),
|
|
162
162
|
$("li", ce, [
|
|
163
|
-
o.booking ? (l(), p(
|
|
163
|
+
o.booking ? (l(), p(I, {
|
|
164
164
|
key: 0,
|
|
165
165
|
type: "submit",
|
|
166
166
|
icon: "search",
|
|
167
167
|
"icon-type": "fas",
|
|
168
|
-
disabled: !
|
|
168
|
+
disabled: !A.value,
|
|
169
169
|
"is-loading": e(J) || B
|
|
170
|
-
}, null, 8, ["disabled", "is-loading"])) : (l(), p(
|
|
170
|
+
}, null, 8, ["disabled", "is-loading"])) : (l(), p(I, {
|
|
171
171
|
key: 1,
|
|
172
172
|
type: "submit",
|
|
173
173
|
label: e(a)("availability.buttonLabel"),
|
|
174
|
-
disabled: !
|
|
174
|
+
disabled: !A.value,
|
|
175
175
|
"is-loading": B
|
|
176
176
|
}, null, 8, ["label", "disabled", "is-loading"]))
|
|
177
177
|
])
|
|
@@ -181,7 +181,7 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
|
181
181
|
}, 8, ["class"]));
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
const
|
|
184
|
+
const Ae = /* @__PURE__ */ G(ue, [["__scopeId", "data-v-ed6687de"]]), de = { class: "availability-skeleton" }, me = {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "availability-skeleton-navigation"
|
|
187
187
|
}, pe = {
|
|
@@ -198,12 +198,12 @@ const xe = /* @__PURE__ */ j(ue, [["__scopeId", "data-v-d78a1562"]]), de = { cla
|
|
|
198
198
|
setup(k) {
|
|
199
199
|
return (a, n) => (l(), c("div", de, [
|
|
200
200
|
a.view === "both" ? (l(), c("div", me, [
|
|
201
|
-
s(
|
|
201
|
+
s(q, {
|
|
202
202
|
height: "28px",
|
|
203
203
|
width: "60px",
|
|
204
204
|
"border-radius": "20px"
|
|
205
205
|
}),
|
|
206
|
-
s(
|
|
206
|
+
s(q, {
|
|
207
207
|
height: "28px",
|
|
208
208
|
width: "60px",
|
|
209
209
|
"border-radius": "20px"
|
|
@@ -227,9 +227,9 @@ const xe = /* @__PURE__ */ j(ue, [["__scopeId", "data-v-d78a1562"]]), de = { cla
|
|
|
227
227
|
]));
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
|
-
const
|
|
230
|
+
const xe = /* @__PURE__ */ G(be, [["__scopeId", "data-v-c266ccbc"]]);
|
|
231
231
|
export {
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
xe as A,
|
|
233
|
+
Ae as H,
|
|
234
234
|
ne as _
|
|
235
235
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-aa9c0c1a.cjs"),C=require("./DateField.vue_vue_type_style_index_0_lang-c80f334d.cjs"),V=require("./NumberField.vue_vue_type_script_setup_true_lang-1c0634a0.cjs"),B=require("./_-b36ce0a6.cjs"),_=require("./Field-6b050caf.cjs"),R=["onSubmit"],w=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,k)=>(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:k}=e.useAvailabilityStore(),{fetchAvailabilityData:x}=e.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:m}=e.storeToRefs(e.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:u}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),G=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(g.value-1)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+D.value))),K=e.computed(()=>new Date(new Date().setDate(s.value.getDate()+g.value))),P=e.computed(()=>new Date(new Date().setDate(s.value.getDate()+(D.value+1)))),b=e.computed(()=>!(!u&&o.value===0)),N=e.computed(()=>typeof n.link!="string");function A(){if(n.booking===!1)if(N.value){const i=e.getUserLanguage();n.link[i]?window.location.replace(n.link[i]):n.link.en?window.location.replace(n.link.en):console.log("Sprog understøttes ikke")}else window.location.replace(n.link);else b.value&&x()}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&&k(),f.value=[s.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(w,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:A},{default:e.withCtx(({isLoading:h})=>[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(S),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(C._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(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",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(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 q=e._export_sfc(H,[["__scopeId","data-v-ed6687de"]]),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(B.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(B.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=w;
|