@konnectio/core 4.0.6 → 4.0.9
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-b87d2fd7.cjs +1 -0
- package/dist/{ActionField-5ecfc9dc.js → ActionField-f3d5b218.js} +4 -4
- package/dist/ActionField-f3d5b218.js.br +0 -0
- package/dist/AvailabilitySkeleton-019ec202.js +150 -0
- package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
- package/dist/AvailabilitySkeleton-e288f5be.cjs +1 -0
- package/dist/Field-21bb32d7.cjs +1 -0
- package/dist/Field-6bfeedce.js +59 -0
- package/dist/Field-6bfeedce.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_style_index_0_lang-ab747739.js → SelectField.vue_vue_type_style_index_0_lang-701aecad.js} +7743 -6953
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +797 -0
- package/dist/TextField-99e69631.cjs +54 -0
- package/dist/TextField-b8f4462a.js +9343 -0
- package/dist/TextField-b8f4462a.js.br +0 -0
- package/dist/ThankYou-add684c1.cjs +66 -0
- package/dist/ThankYou-edbf753b.js +14279 -0
- package/dist/ThankYou-edbf753b.js.br +0 -0
- package/dist/{_commonjsHelpers-aeeeeb92.js → _commonjsHelpers-c5d32002.js} +2 -2
- package/dist/{applyGiftCard-d9ab3dcf.cjs → applyGiftCard-c21f13ac.cjs} +1 -1
- package/dist/{applyGiftCard-c5e4aaad.js → applyGiftCard-dea77ba6.js} +7 -7
- package/dist/applyGiftCard-dea77ba6.js.br +0 -0
- package/dist/availability.cjs +2 -0
- package/dist/availability.js +236 -0
- package/dist/availability.js.br +0 -0
- package/dist/components/ErrorMessage.vue.d.ts +5 -0
- package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
- package/dist/components/Icon.vue.d.ts +1 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- 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/forms/ReservationFormTest.vue.d.ts +5 -0
- package/dist/components/forms/ReservationFormTest.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Test.vue.d.ts +1 -1
- package/dist/components/side-panels/Base.vue.d.ts +1 -1
- package/dist/components/side-panels/Hotel.vue.d.ts +3 -2
- package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/Field.vue.d.ts +5 -0
- package/dist/components/skeletons/Field.vue.d.ts.map +1 -0
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/Listing.vue.d.ts +5 -0
- package/dist/components/skeletons/Listing.vue.d.ts.map +1 -0
- package/dist/components/skeletons/_.vue.d.ts +5 -0
- package/dist/components/skeletons/_.vue.d.ts.map +1 -0
- package/dist/entries/availability.d.ts +3 -2
- package/dist/entries/gift-card.d.ts +1 -2
- package/dist/entries/hotel.d.ts +0 -2
- package/dist/event-2c6a2138.cjs +1 -0
- package/dist/{event-a70cffeb.js → event-a9067cf5.js} +91 -91
- package/dist/event-a9067cf5.js.br +0 -0
- package/dist/event.cjs +2 -0
- package/dist/event.js +867 -0
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -0
- package/dist/{gift-card-validation.es.js → gift-card-validation.js} +42 -42
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -0
- package/dist/gift-card.d.ts +0 -2
- package/dist/gift-card.js +590 -0
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +19 -0
- package/dist/hotel.d.ts +0 -2
- package/dist/hotel.js +2981 -0
- package/dist/hotel.js.br +0 -0
- package/dist/{index-00262c16.js → index-d080b5a0.js} +5 -7
- package/dist/index-d080b5a0.js.br +0 -0
- package/dist/index-ec04c269.cjs +1 -0
- package/dist/layouts/Availability.vue.d.ts +42 -217
- package/dist/layouts/GiftCard.vue.d.ts +130 -99
- package/dist/layouts/Hotel.vue.d.ts +162 -57
- package/dist/{payment-fbffaa6d.cjs → payment-95b2392a.cjs} +2 -2
- package/dist/{payment-9e219e9b.js → payment-cce506b8.js} +930 -929
- package/dist/payment-cce506b8.js.br +0 -0
- package/dist/polyfill.cjs +4 -0
- package/dist/polyfill.js +6815 -0
- package/dist/polyfill.js.br +0 -0
- package/dist/store/availability.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +11 -21
- package/dist/ActionField-5ecfc9dc.js.br +0 -0
- package/dist/ActionField-ae9b1adf.cjs +0 -1
- package/dist/HotelAvailabilityForm-0cd1abda.cjs +0 -1
- package/dist/HotelAvailabilityForm-a7b6f17e.js +0 -97
- package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +0 -793
- package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-05b8ec39.js +0 -376
- package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js +0 -10107
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs +0 -56
- package/dist/ThankYou-1866d8db.js +0 -8547
- package/dist/ThankYou-1866d8db.js.br +0 -0
- package/dist/ThankYou-5741bcb6.cjs +0 -15
- package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
- package/dist/availability.cjs.js +0 -1
- package/dist/availability.cjs.js.br +0 -0
- package/dist/availability.es.js +0 -183
- package/dist/availability.es.js.br +0 -0
- package/dist/components/LoadingBlock.vue.d.ts +0 -4
- package/dist/components/LoadingBlock.vue.d.ts.map +0 -1
- package/dist/event-39706438.cjs +0 -1
- package/dist/event-a70cffeb.js.br +0 -0
- package/dist/event.cjs.js +0 -1
- package/dist/event.cjs.js.br +0 -0
- package/dist/event.es.js +0 -645
- package/dist/event.es.js.br +0 -0
- package/dist/gift-card-validation.cjs.js +0 -1
- package/dist/gift-card-validation.cjs.js.br +0 -0
- package/dist/gift-card-validation.es.js.br +0 -0
- package/dist/gift-card.cjs.js +0 -1
- package/dist/gift-card.cjs.js.br +0 -0
- package/dist/gift-card.es.js +0 -584
- package/dist/gift-card.es.js.br +0 -0
- package/dist/hotel.cjs.js +0 -19
- package/dist/hotel.cjs.js.br +0 -0
- package/dist/hotel.es.js +0 -2394
- package/dist/hotel.es.js.br +0 -0
- package/dist/index-00262c16.js.br +0 -0
- package/dist/index-58f3b0cc.cjs +0 -1
- package/dist/payment-9e219e9b.js.br +0 -0
- package/dist/polyfill.cjs.js +0 -4
- package/dist/polyfill.cjs.js.br +0 -0
- package/dist/polyfill.es.js +0 -6764
- package/dist/polyfill.es.js.br +0 -0
- /package/dist/{navigation.cjs.js → navigation.cjs} +0 -0
- /package/dist/{navigation.es.js → navigation.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs"),s=require("./TextField-99e69631.cjs"),m=require("./applyGiftCard-c21f13ac.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(p,{emit:i}){const t=p,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(s._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(s.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-07d4466b"]]);exports.ActionField=b;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as f, j as c, c as m, k as d, l as i, w as V,
|
|
2
|
-
import { _ as I, T as C } from "./
|
|
3
|
-
import { _ as F } from "./applyGiftCard-
|
|
1
|
+
import { h as f, j as c, c as m, k as d, l as i, w as V, q as v, n as t, m as q, C as g, I as k, _ as B } from "./SelectField.vue_vue_type_style_index_0_lang-701aecad.js";
|
|
2
|
+
import { _ as I, T as C } from "./TextField-b8f4462a.js";
|
|
3
|
+
import { _ as F } from "./applyGiftCard-dea77ba6.js";
|
|
4
4
|
const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
|
|
5
5
|
__name: "ActionField",
|
|
6
6
|
props: {
|
|
@@ -77,7 +77,7 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
|
|
|
77
77
|
required: e.required,
|
|
78
78
|
placeholder: e.placeholder
|
|
79
79
|
}, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
|
|
80
|
-
g
|
|
80
|
+
q(g, {
|
|
81
81
|
"data-test": `${e.name}Submit`,
|
|
82
82
|
icon: e.buttonIcon,
|
|
83
83
|
label: e.buttonLabel,
|
|
Binary file
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { h as F, t as O, s as V, a as R, r as q, c as _, P as x, o as z, k as i, y as r, q as k, D as u, m as a, n as e, l as A, x as S, C as L, Q as C, _ as H } from "./SelectField.vue_vue_type_style_index_0_lang-701aecad.js";
|
|
2
|
+
import { a as $, _ as M } from "./payment-cce506b8.js";
|
|
3
|
+
import { _ as B } from "./applyGiftCard-dea77ba6.js";
|
|
4
|
+
import { E, F as c } from "./Field-6bfeedce.js";
|
|
5
|
+
const P = { id: "fresh-booking-availability-date-selection" }, Q = {
|
|
6
|
+
key: 0,
|
|
7
|
+
id: "fresh-booking-availability-guest-selection"
|
|
8
|
+
}, T = { id: "fresh-booking-availability-confirmation" }, j = /* @__PURE__ */ F({
|
|
9
|
+
__name: "HotelAvailabilityForm",
|
|
10
|
+
props: {
|
|
11
|
+
booking: { type: Boolean, default: !1 },
|
|
12
|
+
link: {}
|
|
13
|
+
},
|
|
14
|
+
setup(h) {
|
|
15
|
+
const n = h, { t: d } = O(), {
|
|
16
|
+
adults: m,
|
|
17
|
+
children: y,
|
|
18
|
+
arrivalDate: v,
|
|
19
|
+
departureDate: p,
|
|
20
|
+
location: Y,
|
|
21
|
+
isExpired: I
|
|
22
|
+
} = V($()), { reset: U } = $(), {
|
|
23
|
+
firstSelectableDateOffset: w,
|
|
24
|
+
lastSelectableDateOffset: D,
|
|
25
|
+
disableChildSelection: s,
|
|
26
|
+
disableAdultSelection: o
|
|
27
|
+
} = V(R()), f = q([]);
|
|
28
|
+
_(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (w.value - 1)))), _(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + D.value))), _(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + w.value))), _(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + (D.value + 1))));
|
|
29
|
+
const g = _(() => !(!o && m.value === 0));
|
|
30
|
+
function N() {
|
|
31
|
+
n.booking === !1 ? window.location.replace(n.link) : g.value && window.location.reload();
|
|
32
|
+
}
|
|
33
|
+
return x(v, (l) => {
|
|
34
|
+
const t = new Date(new Date(l).setDate(new Date(l).getDate() + 1));
|
|
35
|
+
new Date(p.value) < t && (p.value = t);
|
|
36
|
+
}), x(f, (l) => {
|
|
37
|
+
v.value = l[0], p.value = l[1];
|
|
38
|
+
}), z(() => {
|
|
39
|
+
I.value && n.booking && U(), f.value = [v.value, p.value];
|
|
40
|
+
}), (l, t) => (i(), r("form", {
|
|
41
|
+
id: "fresh-booking-availability-form",
|
|
42
|
+
class: C({ reservation: l.booking })
|
|
43
|
+
}, [
|
|
44
|
+
k("ul", {
|
|
45
|
+
id: "fresh-booking-availability-form-content",
|
|
46
|
+
class: C([
|
|
47
|
+
{ "is-not-booking-page": !l.booking },
|
|
48
|
+
{ "only-adult-guests": !e(o) && e(s) },
|
|
49
|
+
{ "only-child-guests": !e(s) && e(o) },
|
|
50
|
+
{ "no-guests": e(o) && e(s) },
|
|
51
|
+
{ "all-guests": !e(o) && !e(s) }
|
|
52
|
+
])
|
|
53
|
+
}, [
|
|
54
|
+
k("li", P, [
|
|
55
|
+
u("", !0),
|
|
56
|
+
a(M, {
|
|
57
|
+
modelValue: f.value,
|
|
58
|
+
"onUpdate:modelValue": t[1] || (t[1] = (b) => f.value = b),
|
|
59
|
+
label: e(d)("availability.checkInOut"),
|
|
60
|
+
"icon-type": "fas",
|
|
61
|
+
"icon-placement": "label",
|
|
62
|
+
"min-range": 1,
|
|
63
|
+
range: ""
|
|
64
|
+
}, null, 8, ["modelValue", "label"]),
|
|
65
|
+
u("", !0)
|
|
66
|
+
]),
|
|
67
|
+
!e(o) || !e(s) ? (i(), r("li", Q, [
|
|
68
|
+
e(o) ? u("", !0) : (i(), A(B, {
|
|
69
|
+
key: 0,
|
|
70
|
+
modelValue: e(m),
|
|
71
|
+
"onUpdate:modelValue": t[4] || (t[4] = (b) => S(m) ? m.value = b : null),
|
|
72
|
+
label: e(d)("availability.adults"),
|
|
73
|
+
"icon-type": "fas",
|
|
74
|
+
"icon-placement": "label",
|
|
75
|
+
name: "adults",
|
|
76
|
+
icon: "male"
|
|
77
|
+
}, null, 8, ["modelValue", "label"])),
|
|
78
|
+
e(s) ? u("", !0) : (i(), A(B, {
|
|
79
|
+
key: 1,
|
|
80
|
+
modelValue: e(y),
|
|
81
|
+
"onUpdate:modelValue": t[5] || (t[5] = (b) => S(y) ? y.value = b : null),
|
|
82
|
+
label: e(d)("availability.children"),
|
|
83
|
+
"icon-type": "fas",
|
|
84
|
+
"icon-placement": "label",
|
|
85
|
+
name: "children",
|
|
86
|
+
icon: "child"
|
|
87
|
+
}, null, 8, ["modelValue", "label"]))
|
|
88
|
+
])) : u("", !0),
|
|
89
|
+
k("li", T, [
|
|
90
|
+
a(L, {
|
|
91
|
+
label: e(d)("availability.buttonLabel"),
|
|
92
|
+
disabled: !g.value,
|
|
93
|
+
onClickEvent: N
|
|
94
|
+
}, null, 8, ["label", "disabled"])
|
|
95
|
+
])
|
|
96
|
+
], 2)
|
|
97
|
+
], 2));
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
const le = /* @__PURE__ */ H(j, [["__scopeId", "data-v-c19d5469"]]), G = { class: "availability-skeleton" }, J = {
|
|
101
|
+
key: 0,
|
|
102
|
+
class: "availability-skeleton-navigation"
|
|
103
|
+
}, K = {
|
|
104
|
+
key: 1,
|
|
105
|
+
class: "availability-skeleton-hotel"
|
|
106
|
+
}, W = {
|
|
107
|
+
key: 2,
|
|
108
|
+
class: "availability-skeleton-event"
|
|
109
|
+
}, X = /* @__PURE__ */ F({
|
|
110
|
+
__name: "AvailabilitySkeleton",
|
|
111
|
+
props: {
|
|
112
|
+
view: { default: "hotel" }
|
|
113
|
+
},
|
|
114
|
+
setup(h) {
|
|
115
|
+
return (n, d) => (i(), r("div", G, [
|
|
116
|
+
n.view === "both" ? (i(), r("div", J, [
|
|
117
|
+
a(E, {
|
|
118
|
+
height: "28px",
|
|
119
|
+
width: "60px",
|
|
120
|
+
"border-radius": "20px"
|
|
121
|
+
}),
|
|
122
|
+
a(E, {
|
|
123
|
+
height: "28px",
|
|
124
|
+
width: "60px",
|
|
125
|
+
"border-radius": "20px"
|
|
126
|
+
})
|
|
127
|
+
])) : u("", !0),
|
|
128
|
+
n.view !== "event" ? (i(), r("div", K, [
|
|
129
|
+
a(c, { "with-icon": "" }),
|
|
130
|
+
a(c, { "with-icon": "" }),
|
|
131
|
+
a(c, { "with-icon": "" }),
|
|
132
|
+
a(c, {
|
|
133
|
+
"with-icon": "",
|
|
134
|
+
"no-label": ""
|
|
135
|
+
})
|
|
136
|
+
])) : (i(), r("div", W, [
|
|
137
|
+
a(c, { "with-icon": "" }),
|
|
138
|
+
a(c, {
|
|
139
|
+
"with-icon": "",
|
|
140
|
+
"no-label": ""
|
|
141
|
+
})
|
|
142
|
+
]))
|
|
143
|
+
]));
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
const ie = /* @__PURE__ */ H(X, [["__scopeId", "data-v-2c3e37a4"]]);
|
|
147
|
+
export {
|
|
148
|
+
ie as A,
|
|
149
|
+
le as H
|
|
150
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs"),f=require("./payment-95b2392a.cjs"),y=require("./applyGiftCard-c21f13ac.cjs"),a=require("./Field-21bb32d7.cjs"),D={id:"fresh-booking-availability-date-selection"},V={key:0,id:"fresh-booking-availability-guest-selection"},B={id:"fresh-booking-availability-confirmation"},N=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(b){const i=b,{t:s}=e.useI18n(),{adults:u,children:m,arrivalDate:c,departureDate:d,location:R,isExpired:h}=e.storeToRefs(f.useAvailabilityStore()),{reset:w}=f.useAvailabilityStore(),{firstSelectableDateOffset:p,lastSelectableDateOffset:_,disableChildSelection:n,disableAdultSelection:o}=e.storeToRefs(e.useUtilityStore()),v=e.ref([]);e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(p.value-1)))),e.computed(()=>new Date(new Date().setDate(new Date().getDate()+_.value))),e.computed(()=>new Date(new Date().setDate(c.value.getDate()+p.value))),e.computed(()=>new Date(new Date().setDate(c.value.getDate()+(_.value+1))));const k=e.computed(()=>!(!o&&u.value===0));function g(){i.booking===!1?window.location.replace(i.link):k.value&&window.location.reload()}return e.watch(c,l=>{const t=new Date(new Date(l).setDate(new Date(l).getDate()+1));new Date(d.value)<t&&(d.value=t)}),e.watch(v,l=>{c.value=l[0],d.value=l[1]}),e.onMounted(()=>{h.value&&i.booking&&w(),v.value=[c.value,d.value]}),(l,t)=>(e.openBlock(),e.createElementBlock("form",{id:"fresh-booking-availability-form",class:e.normalizeClass({reservation:l.booking})},[e.createBaseVNode("ul",{id:"fresh-booking-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!l.booking},{"only-adult-guests":!e.unref(o)&&e.unref(n)},{"only-child-guests":!e.unref(n)&&e.unref(o)},{"no-guests":e.unref(o)&&e.unref(n)},{"all-guests":!e.unref(o)&&!e.unref(n)}])},[e.createBaseVNode("li",D,[e.createCommentVNode("",!0),e.createVNode(f._sfc_main,{modelValue:v.value,"onUpdate:modelValue":t[1]||(t[1]=r=>v.value=r),label:e.unref(s)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(o)||!e.unref(n)?(e.openBlock(),e.createElementBlock("li",V,[e.unref(o)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y._sfc_main,{key:0,modelValue:e.unref(u),"onUpdate:modelValue":t[4]||(t[4]=r=>e.isRef(u)?u.value=r:null),label:e.unref(s)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])),e.unref(n)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y._sfc_main,{key:1,modelValue:e.unref(m),"onUpdate:modelValue":t[5]||(t[5]=r=>e.isRef(m)?m.value=r:null),label:e.unref(s)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))])):e.createCommentVNode("",!0),e.createBaseVNode("li",B,[e.createVNode(e.Clickable,{label:e.unref(s)("availability.buttonLabel"),disabled:!k.value,onClickEvent:g},null,8,["label","disabled"])])],2)],2))}});const C=e._export_sfc(N,[["__scopeId","data-v-c19d5469"]]),A={class:"availability-skeleton"},F={key:0,class:"availability-skeleton-navigation"},S={key:1,class:"availability-skeleton-hotel"},x={key:2,class:"availability-skeleton-event"},E=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(b){return(i,s)=>(e.openBlock(),e.createElementBlock("div",A,[i.view==="both"?(e.openBlock(),e.createElementBlock("div",F,[e.createVNode(a.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(a.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),i.view!=="event"?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(a.Field,{"with-icon":""}),e.createVNode(a.Field,{"with-icon":""}),e.createVNode(a.Field,{"with-icon":""}),e.createVNode(a.Field,{"with-icon":"","no-label":""})])):(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(a.Field,{"with-icon":""}),e.createVNode(a.Field,{"with-icon":"","no-label":""})]))]))}});const q=e._export_sfc(E,[["__scopeId","data-v-2c3e37a4"]]);exports.AvailabilitySkeleton=q;exports.HotelAvailabilityForm=C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs"),s={class:"placeholder"},n=e.defineComponent({__name:"_",props:{area:{default:"unset"},height:{default:"100%"},width:{default:"100%"},borderRadius:{default:"3px"}},setup(a){return e.useCssVars(t=>({"165163ce":t.area,"95e5fab6":t.width,"5a774fb0":t.height,f6a883c2:t.borderRadius})),(t,l)=>(e.openBlock(),e.createElementBlock("div",s))}});const o=e._export_sfc(n,[["__scopeId","data-v-1c1931a4"]]),_={key:0,class:"skeleton-field-label"},c={key:1},d=e.defineComponent({__name:"Field",props:{withIcon:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1},isTextArea:{type:Boolean,default:!1}},setup(a){return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["skeleton-field",{"is-text-area":t.isTextArea}])},[t.noLabel?(e.openBlock(),e.createElementBlock("div",c)):(e.openBlock(),e.createElementBlock("div",_,[t.withIcon?(e.openBlock(),e.createBlock(o,{key:0,height:"15px",width:"15px"})):e.createCommentVNode("",!0),e.createVNode(o,{height:"15px",width:"30%"})])),e.createVNode(o,{height:t.isTextArea?"82px":"44px",width:"100%","border-radius":"6px"},null,8,["height"])],2))}});const i=e._export_sfc(d,[["__scopeId","data-v-4bff6dc8"]]);exports.Element=o;exports.Field=i;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { h as d, R as i, k as a, y as s, _ as l, l as r, D as c, m as o, Q as p } from "./SelectField.vue_vue_type_style_index_0_lang-701aecad.js";
|
|
2
|
+
const h = { class: "placeholder" }, f = /* @__PURE__ */ d({
|
|
3
|
+
__name: "_",
|
|
4
|
+
props: {
|
|
5
|
+
area: { default: "unset" },
|
|
6
|
+
height: { default: "100%" },
|
|
7
|
+
width: { default: "100%" },
|
|
8
|
+
borderRadius: { default: "3px" }
|
|
9
|
+
},
|
|
10
|
+
setup(_) {
|
|
11
|
+
return i((e) => ({
|
|
12
|
+
"165163ce": e.area,
|
|
13
|
+
"95e5fab6": e.width,
|
|
14
|
+
"5a774fb0": e.height,
|
|
15
|
+
f6a883c2: e.borderRadius
|
|
16
|
+
})), (e, n) => (a(), s("div", h));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const t = /* @__PURE__ */ l(f, [["__scopeId", "data-v-1c1931a4"]]), u = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "skeleton-field-label"
|
|
22
|
+
}, m = { key: 1 }, y = /* @__PURE__ */ d({
|
|
23
|
+
__name: "Field",
|
|
24
|
+
props: {
|
|
25
|
+
withIcon: { type: Boolean, default: !1 },
|
|
26
|
+
noLabel: { type: Boolean, default: !1 },
|
|
27
|
+
isTextArea: { type: Boolean, default: !1 }
|
|
28
|
+
},
|
|
29
|
+
setup(_) {
|
|
30
|
+
return (e, n) => (a(), s("div", {
|
|
31
|
+
class: p([
|
|
32
|
+
"skeleton-field",
|
|
33
|
+
{ "is-text-area": e.isTextArea }
|
|
34
|
+
])
|
|
35
|
+
}, [
|
|
36
|
+
e.noLabel ? (a(), s("div", m)) : (a(), s("div", u, [
|
|
37
|
+
e.withIcon ? (a(), r(t, {
|
|
38
|
+
key: 0,
|
|
39
|
+
height: "15px",
|
|
40
|
+
width: "15px"
|
|
41
|
+
})) : c("", !0),
|
|
42
|
+
o(t, {
|
|
43
|
+
height: "15px",
|
|
44
|
+
width: "30%"
|
|
45
|
+
})
|
|
46
|
+
])),
|
|
47
|
+
o(t, {
|
|
48
|
+
height: e.isTextArea ? "82px" : "44px",
|
|
49
|
+
width: "100%",
|
|
50
|
+
"border-radius": "6px"
|
|
51
|
+
}, null, 8, ["height"])
|
|
52
|
+
], 2));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const v = /* @__PURE__ */ l(y, [["__scopeId", "data-v-4bff6dc8"]]);
|
|
56
|
+
export {
|
|
57
|
+
t as E,
|
|
58
|
+
v as F
|
|
59
|
+
};
|
|
Binary file
|