@konnectio/core 4.0.5 → 4.0.7
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-0c047379.mjs → ActionField-5ecfc9dc.js} +26 -28
- package/dist/ActionField-5ecfc9dc.js.br +0 -0
- package/dist/ActionField-ae9b1adf.cjs +1 -0
- package/dist/HotelAvailabilityForm-0cd1abda.cjs +1 -0
- package/dist/{HotelAvailabilityForm-29f12395.mjs → HotelAvailabilityForm-a7b6f17e.js} +23 -25
- package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +793 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js +16403 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
- package/dist/{ReCaptchaVuePlugin-616ef9b9.mjs → ReCaptchaVuePlugin-05b8ec39.js} +2 -3
- package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +1 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-a45312d1.mjs → SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js} +1020 -1022
- 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-18843626.js → SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs} +16 -17
- package/dist/{ThankYou-f6205791.mjs → ThankYou-1866d8db.js} +2853 -2825
- package/dist/ThankYou-1866d8db.js.br +0 -0
- package/dist/ThankYou-5741bcb6.cjs +15 -0
- package/dist/{_commonjsHelpers-6763f629.js → _commonjsHelpers-6763f629.cjs} +0 -1
- package/dist/{_commonjsHelpers-c5d32002.mjs → _commonjsHelpers-aeeeeb92.js} +2 -3
- package/dist/{applyGiftCard-02342491.mjs → applyGiftCard-c5e4aaad.js} +12 -14
- package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
- package/dist/applyGiftCard-d9ab3dcf.cjs +1 -0
- package/dist/assets/typescript/mixins.d.ts +36 -0
- package/dist/availability.cjs.js +1 -2
- package/dist/availability.cjs.js.br +0 -0
- package/dist/availability.d.ts +3 -0
- package/dist/availability.es.js +31 -30
- package/dist/availability.es.js.br +0 -0
- package/dist/components/Alert.vue.d.ts +5 -0
- package/dist/components/Alert.vue.d.ts.map +1 -0
- package/dist/components/Clickable.vue.d.ts +5 -0
- package/dist/components/Clickable.vue.d.ts.map +1 -0
- package/dist/components/GoogleNotice.vue.d.ts +4 -0
- package/dist/components/GoogleNotice.vue.d.ts.map +1 -0
- package/dist/components/Icon.vue.d.ts +5 -0
- package/dist/components/Icon.vue.d.ts.map +1 -0
- package/dist/components/Loading.vue.d.ts +5 -0
- package/dist/components/Loading.vue.d.ts.map +1 -0
- package/dist/components/LoadingBlock.vue.d.ts +4 -0
- package/dist/components/LoadingBlock.vue.d.ts.map +1 -0
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +5 -0
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +1 -0
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +5 -0
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +1 -0
- package/dist/components/forms/MultiStepForm.vue.d.ts +5 -0
- package/dist/components/forms/MultiStepForm.vue.d.ts.map +1 -0
- package/dist/components/forms/ReservationForm.vue.d.ts +5 -0
- package/dist/components/forms/ReservationForm.vue.d.ts.map +1 -0
- package/dist/components/inputs/Checkbox.vue.d.ts +5 -0
- package/dist/components/inputs/Checkbox.vue.d.ts.map +1 -0
- package/dist/components/inputs/DateField.vue.d.ts +5 -0
- package/dist/components/inputs/DateField.vue.d.ts.map +1 -0
- package/dist/components/inputs/InputField.vue.d.ts +5 -0
- package/dist/components/inputs/InputField.vue.d.ts.map +1 -0
- package/dist/components/inputs/MediaSelector.vue.d.ts +5 -0
- package/dist/components/inputs/MediaSelector.vue.d.ts.map +1 -0
- package/dist/components/inputs/NumberField.vue.d.ts +5 -0
- package/dist/components/inputs/NumberField.vue.d.ts.map +1 -0
- package/dist/components/inputs/SelectField.vue.d.ts +5 -0
- package/dist/components/inputs/SelectField.vue.d.ts.map +1 -0
- package/dist/components/inputs/TextField.vue.d.ts +5 -0
- package/dist/components/inputs/TextField.vue.d.ts.map +1 -0
- package/dist/components/inputs/TimeField.vue.d.ts +5 -0
- package/dist/components/inputs/TimeField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/ActionField.vue.d.ts +5 -0
- package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +5 -0
- package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/NameField.vue.d.ts +5 -0
- package/dist/components/inputs/grouped/NameField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts +5 -0
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +4 -0
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +1 -0
- package/dist/components/listings/Base.vue.d.ts +6 -0
- package/dist/components/listings/Base.vue.d.ts.map +1 -0
- package/dist/components/listings/Event.vue.d.ts +5 -0
- package/dist/components/listings/Event.vue.d.ts.map +1 -0
- package/dist/components/listings/Test.vue.d.ts +5 -0
- package/dist/components/listings/Test.vue.d.ts.map +1 -0
- package/dist/components/modals/Base.vue.d.ts +5 -0
- package/dist/components/modals/Base.vue.d.ts.map +1 -0
- package/dist/components/modals/Info.vue.d.ts +5 -0
- package/dist/components/modals/Info.vue.d.ts.map +1 -0
- package/dist/components/modals/Terms.vue.d.ts +4 -0
- package/dist/components/modals/Terms.vue.d.ts.map +1 -0
- package/dist/components/side-panels/Base.vue.d.ts +5 -0
- package/dist/components/side-panels/Base.vue.d.ts.map +1 -0
- package/dist/components/side-panels/Hotel.vue.d.ts +4 -0
- package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -0
- package/dist/components/views/CheckoutWindow.vue.d.ts +5 -0
- package/dist/components/views/CheckoutWindow.vue.d.ts.map +1 -0
- package/dist/components/views/TermsOfService.vue.d.ts +5 -0
- package/dist/components/views/TermsOfService.vue.d.ts.map +1 -0
- package/dist/components/views/ThankYou.vue.d.ts +5 -0
- package/dist/components/views/ThankYou.vue.d.ts.map +1 -0
- package/dist/entries/availability.d.ts +2 -0
- package/dist/entries/event.d.ts +2 -0
- package/dist/entries/gift-card-validation.d.ts +2 -0
- package/dist/entries/gift-card.d.ts +2 -0
- package/dist/entries/hotel.d.ts +2 -0
- package/dist/entries/navigation.d.ts +1 -0
- package/dist/entries/polyfill.d.ts +0 -0
- package/dist/event-39706438.cjs +1 -0
- package/dist/{event-cc266121.mjs → event-a70cffeb.js} +48 -47
- package/dist/event-a70cffeb.js.br +0 -0
- package/dist/event.cjs.js +1 -2
- package/dist/event.cjs.js.br +0 -0
- package/dist/event.d.ts +3 -0
- package/dist/event.es.js +175 -174
- package/dist/event.es.js.br +0 -0
- package/dist/gift-card-validation.cjs.js +1 -2
- package/dist/gift-card-validation.cjs.js.br +0 -0
- package/dist/gift-card-validation.d.ts +3 -0
- package/dist/gift-card-validation.es.js +54 -53
- package/dist/gift-card-validation.es.js.br +0 -0
- package/dist/gift-card.cjs.js +1 -2
- package/dist/gift-card.cjs.js.br +0 -0
- package/dist/gift-card.d.ts +3 -0
- package/dist/gift-card.es.js +90 -89
- package/dist/gift-card.es.js.br +0 -0
- package/dist/hotel.cjs.js +5 -6
- package/dist/hotel.cjs.js.br +0 -0
- package/dist/hotel.d.ts +3 -0
- package/dist/hotel.es.js +298 -298
- package/dist/hotel.es.js.br +0 -0
- package/dist/{index-30f70976.mjs → index-00262c16.js} +64 -69
- package/dist/index-00262c16.js.br +0 -0
- package/dist/index-58f3b0cc.cjs +1 -0
- package/dist/layouts/Availability.vue.d.ts +244 -0
- package/dist/layouts/Event.vue.d.ts +244 -0
- package/dist/layouts/GiftCard.vue.d.ts +252 -0
- package/dist/layouts/GiftCardValidation.vue.d.ts +228 -0
- package/dist/layouts/Hotel.vue.d.ts +277 -0
- package/dist/layouts/_.vue.d.ts +30 -0
- package/dist/navigation.cjs.js +1 -2
- package/dist/navigation.d.ts +1 -0
- package/dist/navigation.es.js +1 -59
- package/dist/{payment-b3022c46.mjs → payment-9e219e9b.js} +221 -223
- package/dist/payment-9e219e9b.js.br +0 -0
- package/dist/{payment-bfd660a7.js → payment-fbffaa6d.cjs} +2 -3
- package/dist/plugins/i18n.d.ts +5 -0
- package/dist/polyfill.cjs.js +2 -3
- package/dist/polyfill.cjs.js.br +0 -0
- package/dist/polyfill.d.ts +1 -0
- package/dist/polyfill.es.js +2 -4
- package/dist/polyfill.es.js.br +0 -0
- package/dist/store/alert.d.ts +28 -0
- package/dist/store/applyGiftCard.d.ts +28 -0
- package/dist/store/availability.d.ts +37 -0
- package/dist/store/event.d.ts +683 -0
- package/dist/store/giftCard.d.ts +80 -0
- package/dist/store/hotel.d.ts +662 -0
- package/dist/store/payment.d.ts +133 -0
- package/dist/store/recaptcha.d.ts +1 -0
- package/dist/store/tracking.d.ts +24 -0
- package/dist/store/utilities.d.ts +317 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +868 -0
- package/package.json +27 -11
- package/dist/ActionField-0c047379.mjs.br +0 -0
- package/dist/ActionField-3640689b.js +0 -2
- package/dist/ActionField-3640689b.js.br +0 -0
- package/dist/Clickable-386eceb6.mjs +0 -12390
- package/dist/Clickable-386eceb6.mjs.br +0 -0
- package/dist/Clickable-77afc133.js +0 -768
- package/dist/Clickable-77afc133.js.br +0 -0
- package/dist/HotelAvailabilityForm-29f12395.mjs.br +0 -0
- package/dist/HotelAvailabilityForm-89ba629d.js +0 -2
- package/dist/HotelAvailabilityForm-89ba629d.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs +0 -4027
- package/dist/NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-e8efabad.js +0 -28
- package/dist/NumberField.vue_vue_type_style_index_0_lang-e8efabad.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-0988d77f.js +0 -2
- package/dist/ReCaptchaVuePlugin-0988d77f.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-616ef9b9.mjs.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-18843626.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a45312d1.mjs.br +0 -0
- package/dist/ThankYou-1096ca5a.js +0 -16
- package/dist/ThankYou-1096ca5a.js.br +0 -0
- package/dist/ThankYou-f6205791.mjs.br +0 -0
- package/dist/applyGiftCard-02342491.mjs.br +0 -0
- package/dist/applyGiftCard-e24bae0c.js +0 -2
- package/dist/applyGiftCard-e24bae0c.js.br +0 -0
- package/dist/event-cc266121.mjs.br +0 -0
- package/dist/event-d580e6e8.js +0 -2
- package/dist/event-d580e6e8.js.br +0 -0
- package/dist/index-30f70976.mjs.br +0 -0
- package/dist/index-4e9533a9.js +0 -2
- package/dist/index-4e9533a9.js.br +0 -0
- package/dist/navigation.cjs.js.br +0 -0
- package/dist/navigation.es.js.br +0 -0
- package/dist/payment-b3022c46.mjs.br +0 -0
- package/dist/payment-bfd660a7.js.br +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
|
|
5
|
-
const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ b({
|
|
1
|
+
import { h as f, j as c, c as m, k as d, l as i, w as V, x as v, n as t, m as g, C as q, I as k, _ as B } from "./NumberField.vue_vue_type_style_index_0_lang-ab747739.js";
|
|
2
|
+
import { _ as I, T as C } from "./SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js";
|
|
3
|
+
import { _ as F } from "./applyGiftCard-c5e4aaad.js";
|
|
4
|
+
const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
|
|
6
5
|
__name: "ActionField",
|
|
7
6
|
props: {
|
|
8
7
|
modelValue: {},
|
|
@@ -27,37 +26,37 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ b({
|
|
|
27
26
|
isLoading: { type: Boolean, default: !1 }
|
|
28
27
|
},
|
|
29
28
|
emits: ["update:modelValue", "action"],
|
|
30
|
-
setup(y, { emit:
|
|
31
|
-
const u = y,
|
|
32
|
-
function
|
|
33
|
-
|
|
29
|
+
setup(y, { emit: s }) {
|
|
30
|
+
const u = y, o = u.id || c();
|
|
31
|
+
function r(e) {
|
|
32
|
+
s("update:modelValue", e);
|
|
34
33
|
}
|
|
35
34
|
const n = m({
|
|
36
35
|
get: () => u.modelValue,
|
|
37
|
-
set: (e) =>
|
|
36
|
+
set: (e) => r(e)
|
|
38
37
|
}), p = m({
|
|
39
38
|
get: () => u.modelValue,
|
|
40
|
-
set: (e) =>
|
|
39
|
+
set: (e) => r(e)
|
|
41
40
|
});
|
|
42
|
-
function
|
|
43
|
-
|
|
41
|
+
function b() {
|
|
42
|
+
s("action");
|
|
44
43
|
}
|
|
45
|
-
return (e, a) => (d(), i(
|
|
44
|
+
return (e, a) => (d(), i(k, {
|
|
46
45
|
label: e.label,
|
|
47
|
-
id: t(
|
|
46
|
+
id: t(o),
|
|
48
47
|
icon: e.icon,
|
|
49
48
|
"icon-type": e.iconType,
|
|
50
49
|
required: e.required,
|
|
51
50
|
type: e.type,
|
|
52
51
|
readonly: e.readonly
|
|
53
52
|
}, {
|
|
54
|
-
default:
|
|
55
|
-
|
|
53
|
+
default: V(() => [
|
|
54
|
+
v("div", A, [
|
|
56
55
|
e.type === "dropdown" && e.data ? (d(), i(I, {
|
|
57
56
|
key: 0,
|
|
58
57
|
modelValue: n.value,
|
|
59
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
60
|
-
id: t(
|
|
58
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
|
|
59
|
+
id: t(o),
|
|
61
60
|
options: e.data,
|
|
62
61
|
name: e.name,
|
|
63
62
|
required: e.required,
|
|
@@ -65,20 +64,20 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ b({
|
|
|
65
64
|
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(F, {
|
|
66
65
|
key: 1,
|
|
67
66
|
modelValue: p.value,
|
|
68
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
69
|
-
id: t(
|
|
67
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
|
|
68
|
+
id: t(o),
|
|
70
69
|
"min-value": e.minValue,
|
|
71
70
|
"max-value": e.maxValue
|
|
72
71
|
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(C, {
|
|
73
72
|
key: 2,
|
|
74
73
|
modelValue: n.value,
|
|
75
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
76
|
-
id: t(
|
|
74
|
+
"onUpdate:modelValue": a[2] || (a[2] = (l) => n.value = l),
|
|
75
|
+
id: t(o),
|
|
77
76
|
name: e.name,
|
|
78
77
|
required: e.required,
|
|
79
78
|
placeholder: e.placeholder
|
|
80
79
|
}, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
|
|
81
|
-
|
|
80
|
+
g(q, {
|
|
82
81
|
"data-test": `${e.name}Submit`,
|
|
83
82
|
icon: e.buttonIcon,
|
|
84
83
|
label: e.buttonLabel,
|
|
@@ -88,7 +87,7 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ b({
|
|
|
88
87
|
"is-loading": e.isLoading,
|
|
89
88
|
disabled: e.buttonDisabled,
|
|
90
89
|
secondary: e.secondary,
|
|
91
|
-
onClickEvent: a[3] || (a[3] = (
|
|
90
|
+
onClickEvent: a[3] || (a[3] = (l) => b())
|
|
92
91
|
}, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
|
|
93
92
|
])
|
|
94
93
|
]),
|
|
@@ -96,8 +95,7 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ b({
|
|
|
96
95
|
}, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
|
|
97
96
|
}
|
|
98
97
|
});
|
|
99
|
-
const
|
|
98
|
+
const w = /* @__PURE__ */ B(h, [["__scopeId", "data-v-07d4466b"]]);
|
|
100
99
|
export {
|
|
101
|
-
|
|
100
|
+
w as A
|
|
102
101
|
};
|
|
103
|
-
//# sourceMappingURL=ActionField-0c047379.mjs.map
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs"),s=require("./SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs"),m=require("./applyGiftCard-d9ab3dcf.cjs"),y={class:"fresh-booking-action-field"},b=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 f=l._export_sfc(b,[["__scopeId","data-v-07d4466b"]]);exports.ActionField=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs"),m=require("./payment-fbffaa6d.cjs"),D=require("./applyGiftCard-d9ab3dcf.cjs"),w={id:"fresh-booking-availability-date-selection"},V={key:0,id:"fresh-booking-availability-guest-selection"},h={id:"fresh-booking-availability-confirmation"},B=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(_){const d=_,{t:u}=e.useI18n(),{adults:s,children:f,arrivalDate:o,departureDate:r,isExpired:y}=e.storeToRefs(m.useAvailabilityStore()),{reset:k}=m.useAvailabilityStore(),{firstSelectableDateOffset:b,lastSelectableDateOffset:v,disableChildSelection:n,disableAdultSelection:t}=e.storeToRefs(e.useUtilityStore()),c=e.ref([]);e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(b.value-1)))),e.computed(()=>new Date(new Date().setDate(new Date().getDate()+v.value))),e.computed(()=>new Date(new Date().setDate(o.value.getDate()+b.value))),e.computed(()=>new Date(new Date().setDate(o.value.getDate()+(v.value+1))));const p=e.computed(()=>!(!t&&s.value===0));function g(){d.booking===!1?window.location.replace(d.link):p.value&&location.reload()}return e.watch(o,a=>{const l=new Date(new Date(a).setDate(new Date(a).getDate()+1));new Date(r.value)<l&&(r.value=l)}),e.watch(c,a=>{o.value=a[0],r.value=a[1]}),e.onMounted(()=>{y.value&&d.booking&&k(),c.value=[o.value,r.value]}),(a,l)=>(e.openBlock(),e.createElementBlock("form",{id:"fresh-booking-availability-form",class:e.normalizeClass({reservation:a.booking})},[e.createBaseVNode("ul",{id:"fresh-booking-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!a.booking},{"only-adult-guests":!e.unref(t)&&e.unref(n)},{"only-child-guests":!e.unref(n)&&e.unref(t)},{"no-guests":e.unref(t)&&e.unref(n)},{"all-guests":!e.unref(t)&&!e.unref(n)}])},[e.createBaseVNode("li",w,[e.createVNode(m._sfc_main,{modelValue:c.value,"onUpdate:modelValue":l[0]||(l[0]=i=>c.value=i),label:e.unref(u)("availability.checkInOut"),"icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(t)||!e.unref(n)?(e.openBlock(),e.createElementBlock("li",V,[e.unref(t)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D._sfc_main,{key:0,modelValue:e.unref(s),"onUpdate:modelValue":l[3]||(l[3]=i=>e.isRef(s)?s.value=i:null),label:e.unref(u)("availability.adults"),"icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])),e.unref(n)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D._sfc_main,{key:1,modelValue:e.unref(f),"onUpdate:modelValue":l[4]||(l[4]=i=>e.isRef(f)?f.value=i:null),label:e.unref(u)("availability.children"),"icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))])):e.createCommentVNode("",!0),e.createBaseVNode("li",h,[e.createVNode(e.Clickable,{label:e.unref(u)("availability.buttonLabel"),disabled:!p.value,onClickEvent:g},null,8,["label","disabled"])])],2)],2))}});const C=e._export_sfc(B,[["__scopeId","data-v-c4e67871"]]);exports.HotelAvailabilityForm=C;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { _ as B } from "./applyGiftCard-02342491.mjs";
|
|
1
|
+
import { h as F, q as I, s as y, a as N, r as O, c as s, t as _, o as R, k as b, v as w, x as D, m as h, n as e, y as m, l as V, z as A, C as q, A as C, _ as z } from "./NumberField.vue_vue_type_style_index_0_lang-ab747739.js";
|
|
2
|
+
import { a as S, _ as $ } from "./payment-9e219e9b.js";
|
|
3
|
+
import { _ as B } from "./applyGiftCard-c5e4aaad.js";
|
|
5
4
|
const L = { id: "fresh-booking-availability-date-selection" }, M = {
|
|
6
5
|
key: 0,
|
|
7
6
|
id: "fresh-booking-availability-guest-selection"
|
|
@@ -11,32 +10,32 @@ const L = { id: "fresh-booking-availability-date-selection" }, M = {
|
|
|
11
10
|
booking: { type: Boolean, default: !1 },
|
|
12
11
|
link: {}
|
|
13
12
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
13
|
+
setup(x) {
|
|
14
|
+
const v = x, { t: u } = I(), {
|
|
16
15
|
adults: r,
|
|
17
|
-
children:
|
|
16
|
+
children: f,
|
|
18
17
|
arrivalDate: o,
|
|
19
18
|
departureDate: c,
|
|
20
|
-
isExpired:
|
|
21
|
-
} =
|
|
19
|
+
isExpired: H
|
|
20
|
+
} = y(S()), { reset: U } = S(), {
|
|
22
21
|
firstSelectableDateOffset: p,
|
|
23
22
|
lastSelectableDateOffset: g,
|
|
24
23
|
disableChildSelection: i,
|
|
25
24
|
disableAdultSelection: t
|
|
26
|
-
} =
|
|
25
|
+
} = y(N()), d = O([]);
|
|
27
26
|
s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (p.value - 1)))), s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + g.value))), s(() => new Date((/* @__PURE__ */ new Date()).setDate(o.value.getDate() + p.value))), s(() => new Date((/* @__PURE__ */ new Date()).setDate(o.value.getDate() + (g.value + 1))));
|
|
28
27
|
const k = s(() => !(!t && r.value === 0));
|
|
29
28
|
function E() {
|
|
30
|
-
|
|
29
|
+
v.booking === !1 ? window.location.replace(v.link) : k.value && location.reload();
|
|
31
30
|
}
|
|
32
31
|
return _(o, (l) => {
|
|
33
32
|
const a = new Date(new Date(l).setDate(new Date(l).getDate() + 1));
|
|
34
33
|
new Date(c.value) < a && (c.value = a);
|
|
35
34
|
}), _(d, (l) => {
|
|
36
35
|
o.value = l[0], c.value = l[1];
|
|
37
|
-
}),
|
|
38
|
-
|
|
39
|
-
}), (l, a) => (b(),
|
|
36
|
+
}), R(() => {
|
|
37
|
+
H.value && v.booking && U(), d.value = [o.value, c.value];
|
|
38
|
+
}), (l, a) => (b(), w("form", {
|
|
40
39
|
id: "fresh-booking-availability-form",
|
|
41
40
|
class: C({ reservation: l.booking })
|
|
42
41
|
}, [
|
|
@@ -51,7 +50,7 @@ const L = { id: "fresh-booking-availability-date-selection" }, M = {
|
|
|
51
50
|
])
|
|
52
51
|
}, [
|
|
53
52
|
D("li", L, [
|
|
54
|
-
|
|
53
|
+
h($, {
|
|
55
54
|
modelValue: d.value,
|
|
56
55
|
"onUpdate:modelValue": a[0] || (a[0] = (n) => d.value = n),
|
|
57
56
|
label: e(u)("availability.checkInOut"),
|
|
@@ -61,20 +60,20 @@ const L = { id: "fresh-booking-availability-date-selection" }, M = {
|
|
|
61
60
|
}, null, 8, ["modelValue", "label"]),
|
|
62
61
|
m("", !0)
|
|
63
62
|
]),
|
|
64
|
-
!e(t) || !e(i) ? (b(),
|
|
65
|
-
e(t) ? m("", !0) : (b(),
|
|
63
|
+
!e(t) || !e(i) ? (b(), w("li", M, [
|
|
64
|
+
e(t) ? m("", !0) : (b(), V(B, {
|
|
66
65
|
key: 0,
|
|
67
66
|
modelValue: e(r),
|
|
68
|
-
"onUpdate:modelValue": a[3] || (a[3] = (n) =>
|
|
67
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => A(r) ? r.value = n : null),
|
|
69
68
|
label: e(u)("availability.adults"),
|
|
70
69
|
"icon-placement": "label",
|
|
71
70
|
name: "adults",
|
|
72
71
|
icon: "male"
|
|
73
72
|
}, null, 8, ["modelValue", "label"])),
|
|
74
|
-
e(i) ? m("", !0) : (b(),
|
|
73
|
+
e(i) ? m("", !0) : (b(), V(B, {
|
|
75
74
|
key: 1,
|
|
76
|
-
modelValue: e(
|
|
77
|
-
"onUpdate:modelValue": a[4] || (a[4] = (n) =>
|
|
75
|
+
modelValue: e(f),
|
|
76
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => A(f) ? f.value = n : null),
|
|
78
77
|
label: e(u)("availability.children"),
|
|
79
78
|
"icon-placement": "label",
|
|
80
79
|
name: "children",
|
|
@@ -82,7 +81,7 @@ const L = { id: "fresh-booking-availability-date-selection" }, M = {
|
|
|
82
81
|
}, null, 8, ["modelValue", "label"]))
|
|
83
82
|
])) : m("", !0),
|
|
84
83
|
D("li", T, [
|
|
85
|
-
|
|
84
|
+
h(q, {
|
|
86
85
|
label: e(u)("availability.buttonLabel"),
|
|
87
86
|
disabled: !k.value,
|
|
88
87
|
onClickEvent: E
|
|
@@ -92,8 +91,7 @@ const L = { id: "fresh-booking-availability-date-selection" }, M = {
|
|
|
92
91
|
], 2));
|
|
93
92
|
}
|
|
94
93
|
});
|
|
95
|
-
const
|
|
94
|
+
const P = /* @__PURE__ */ z(j, [["__scopeId", "data-v-c4e67871"]]);
|
|
96
95
|
export {
|
|
97
|
-
|
|
96
|
+
P as H
|
|
98
97
|
};
|
|
99
|
-
//# sourceMappingURL=HotelAvailabilityForm-29f12395.mjs.map
|
|
Binary file
|