@konnectio/core 4.0.83 → 4.0.84
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-BA-fYDFE.js → ActionField-CLQbtAU7.js} +3 -3
- package/dist/ActionField-CLQbtAU7.js.br +0 -0
- package/dist/AvailabilitySkeleton-BJPo5KGW.js +309 -0
- package/dist/AvailabilitySkeleton-BJPo5KGW.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js} +18 -19
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js.br +0 -0
- package/dist/{CheckoutWindow-BWvzwZp7.js → CheckoutWindow-C9Sa3vci.js} +62 -62
- package/dist/CheckoutWindow-C9Sa3vci.js.br +0 -0
- package/dist/{ErrorMessage-Cznv1pOA.js → ErrorMessage-D6rbHHXd.js} +3 -3
- package/dist/ErrorMessage-D6rbHHXd.js.br +0 -0
- package/dist/{EventAvailabilityForm-CCIRdxiD.js → EventAvailabilityForm-D-Q1vxsm.js} +18 -19
- package/dist/EventAvailabilityForm-D-Q1vxsm.js.br +0 -0
- package/dist/{Field-BvDQnKDq.js → Field-CGT9JUe-.js} +5 -5
- package/dist/Field-CGT9JUe-.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js} +1217 -1190
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js.br +0 -0
- package/dist/TermsOfService-DmwGAt0q.js +28 -0
- package/dist/_-YHi6ciVk.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-JXEPTW6b.js → _.vue_vue_type_style_index_0_lang-DeF9xZEQ.js} +5 -5
- package/dist/availability.js +23 -24
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +5 -6
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +72 -74
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +21 -22
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +67 -68
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-DA27WKsi.js → giftCard-C-lmDpUB.js} +27 -28
- package/dist/giftCard-C-lmDpUB.js.br +0 -0
- package/dist/hotel.js +1269 -1143
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-C22IPiCy.js → masonry.plugin-DL8uXS-9.js} +6 -7
- package/dist/masonry.plugin-DL8uXS-9.js.br +0 -0
- package/dist/mitt-B_elXQ2J.js +12437 -0
- package/dist/mitt-B_elXQ2J.js.br +0 -0
- package/dist/polyfill.js +2427 -2378
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CF23zZwv.js → style-CDpCXUak.js} +67 -67
- package/dist/style-CDpCXUak.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +12 -13
- package/dist/ActionField-BA-fYDFE.js.br +0 -0
- package/dist/AvailabilitySkeleton-cs1R6FqT.js +0 -281
- package/dist/AvailabilitySkeleton-cs1R6FqT.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js.br +0 -0
- package/dist/CheckoutWindow-BWvzwZp7.js.br +0 -0
- package/dist/ErrorMessage-Cznv1pOA.js.br +0 -0
- package/dist/EventAvailabilityForm-CCIRdxiD.js.br +0 -0
- package/dist/Field-BvDQnKDq.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js.br +0 -0
- package/dist/TermsOfService-GFdUcU5a.js +0 -29
- package/dist/_-CApO2y_W.js +0 -5
- package/dist/giftCard-DA27WKsi.js.br +0 -0
- package/dist/masonry.plugin-C22IPiCy.js.br +0 -0
- package/dist/mitt-QLRlCcPH.js +0 -2962
- package/dist/mitt-QLRlCcPH.js.br +0 -0
- package/dist/style-CF23zZwv.js.br +0 -0
- package/dist/vue.esm-bundler-BkY4vCIk.js +0 -9485
- package/dist/vue.esm-bundler-BkY4vCIk.js.br +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as c, c as m, a as d, b as i, w as V, e as v,
|
|
2
|
-
import { A as g, n as k, b as B, T as I, c as C, p as A, _ as F } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
1
|
+
import { d as c, c as m, a as d, b as i, w as V, e as v, i as t, f as q } from "./mitt-B_elXQ2J.js";
|
|
2
|
+
import { A as g, n as k, b as B, T as I, c as C, p as A, _ as F } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
|
|
3
3
|
const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
|
|
4
4
|
__name: "ActionField",
|
|
5
5
|
props: {
|
|
@@ -97,4 +97,4 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
|
|
|
97
97
|
export {
|
|
98
98
|
w as A
|
|
99
99
|
};
|
|
100
|
-
//# sourceMappingURL=ActionField-
|
|
100
|
+
//# sourceMappingURL=ActionField-CLQbtAU7.js.map
|
|
Binary file
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { d as te, u as De, Q as ke, x as V, r as g, c as u, H as K, o as he, a as n, g as d, f as s, w as we, i as a, b as D, j as k, e as S, n as N, E as _e, h as Ae } from "./mitt-B_elXQ2J.js";
|
|
2
|
+
import { u as W, x as X, a as Le, d as Ve, T as xe, n as Se, b as Z, c as ee, o as Ne, _ as le, E as ae } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
|
|
3
|
+
import { _ as x } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js";
|
|
4
|
+
import { F as p } from "./Field-CGT9JUe-.js";
|
|
5
|
+
const Ce = {
|
|
6
|
+
class: "konnectio-availability-location",
|
|
7
|
+
key: "location"
|
|
8
|
+
}, Ue = {
|
|
9
|
+
id: "konnectio-availability-date-selection",
|
|
10
|
+
key: "multiDate"
|
|
11
|
+
}, $e = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "konnectio-availability-date-selection-multi"
|
|
14
|
+
}, Be = {
|
|
15
|
+
id: "konnectio-availability-guest-selection",
|
|
16
|
+
key: "guests"
|
|
17
|
+
}, He = {
|
|
18
|
+
id: "konnectio-availability-confirmation",
|
|
19
|
+
key: "confirm"
|
|
20
|
+
}, Re = /* @__PURE__ */ te({
|
|
21
|
+
__name: "HotelAvailabilityForm",
|
|
22
|
+
props: {
|
|
23
|
+
booking: { type: Boolean, default: !1 },
|
|
24
|
+
link: {},
|
|
25
|
+
selectedLocation: { default: NaN },
|
|
26
|
+
disableDefaultLocation: { type: Boolean, default: !1 }
|
|
27
|
+
},
|
|
28
|
+
setup(C) {
|
|
29
|
+
const { t: i } = De(), U = ke("emitter"), l = C, $ = W(), {
|
|
30
|
+
adults: oe,
|
|
31
|
+
children: ie,
|
|
32
|
+
arrivalDate: B,
|
|
33
|
+
departureDate: H,
|
|
34
|
+
location: R,
|
|
35
|
+
hasHotelLocations: f,
|
|
36
|
+
hotelLocations: F,
|
|
37
|
+
controlLocation: ne
|
|
38
|
+
} = V(W()), { fetchAvailabilityData: se } = X(), { areListingsLoading: I } = V(X()), { display: T } = Le(), {
|
|
39
|
+
firstSelectableDateOffset: E,
|
|
40
|
+
lastSelectableDateOffset: M,
|
|
41
|
+
disableChildSelection: v,
|
|
42
|
+
disableAdultSelection: m,
|
|
43
|
+
defaultAdultAmount: ue,
|
|
44
|
+
defaultChildAmount: ce,
|
|
45
|
+
maxAdultAmount: re,
|
|
46
|
+
maxChildAmount: de,
|
|
47
|
+
splitBookingCalendar: ve
|
|
48
|
+
} = V(Ve()), me = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), be = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), ge = () => l.disableDefaultLocation ? void 0 : ne.value, O = g(ue.value), j = g(ce.value), P = g(me()), z = g(be()), q = g(ge()), h = u({
|
|
49
|
+
get: () => l.booking ? $.adults : O.value,
|
|
50
|
+
set: (e) => {
|
|
51
|
+
l.booking ? oe.value = Number(e) : O.value = Number(e);
|
|
52
|
+
}
|
|
53
|
+
}), _ = u({
|
|
54
|
+
get: () => l.booking ? $.children : j.value,
|
|
55
|
+
set: (e) => {
|
|
56
|
+
l.booking ? ie.value = Number(e) : j.value = Number(e);
|
|
57
|
+
}
|
|
58
|
+
}), c = u({
|
|
59
|
+
get: () => l.booking ? B.value : P.value,
|
|
60
|
+
set: (e) => {
|
|
61
|
+
l.booking ? B.value = e : P.value = e;
|
|
62
|
+
}
|
|
63
|
+
}), r = u({
|
|
64
|
+
get: () => l.booking ? H.value : z.value,
|
|
65
|
+
set: (e) => {
|
|
66
|
+
l.booking ? H.value = e : z.value = e;
|
|
67
|
+
}
|
|
68
|
+
}), w = u({
|
|
69
|
+
get: () => isNaN(l.selectedLocation) ? l.booking ? R.value : q.value : l.selectedLocation,
|
|
70
|
+
set: (e) => {
|
|
71
|
+
l.booking ? R.value = e : q.value = e;
|
|
72
|
+
}
|
|
73
|
+
}), G = u(() => {
|
|
74
|
+
const e = F.value.find(({ id: t }) => t === l.selectedLocation);
|
|
75
|
+
return e ? e.name : "";
|
|
76
|
+
}), y = g([]), Q = u(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (E.value - 1)))), pe = u(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + M.value)));
|
|
77
|
+
u(() => new Date((/* @__PURE__ */ new Date()).setDate(c.value.getDate() + E.value)));
|
|
78
|
+
const Y = u(() => new Date((/* @__PURE__ */ new Date()).setDate(c.value.getDate() + (M.value + 1)))), A = u(() => !(!m && h.value === 0)), fe = u(() => typeof l.link != "string");
|
|
79
|
+
function J(e) {
|
|
80
|
+
const t = e.getFullYear();
|
|
81
|
+
let o = e.getMonth() + 1, b = e.getDate();
|
|
82
|
+
return b < 10 && (b = "0" + b), o < 10 && (o = "0" + o), `${t}-${o}-${b}`;
|
|
83
|
+
}
|
|
84
|
+
function L(e) {
|
|
85
|
+
const t = {
|
|
86
|
+
a: h.value.toString(),
|
|
87
|
+
c: _.value.toString(),
|
|
88
|
+
ci: J(c.value),
|
|
89
|
+
co: J(r.value),
|
|
90
|
+
hid: w.value.toString()
|
|
91
|
+
}, o = new URLSearchParams(t), b = new URL(e, window.location.origin);
|
|
92
|
+
b.search = o.toString(), window.location.replace(b.toString());
|
|
93
|
+
}
|
|
94
|
+
function ye() {
|
|
95
|
+
if (isNaN(w.value) && f.value) {
|
|
96
|
+
T({
|
|
97
|
+
message: i("alert.error.selectHotelId"),
|
|
98
|
+
type: "error"
|
|
99
|
+
});
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (l.booking === !1)
|
|
103
|
+
if (fe.value) {
|
|
104
|
+
const e = Ne();
|
|
105
|
+
l.link[e] ? L(l.link[e]) : l.link.en ? L(l.link.en) : T({
|
|
106
|
+
message: "Module misconfiguration, contact an admin",
|
|
107
|
+
type: "error"
|
|
108
|
+
});
|
|
109
|
+
} else
|
|
110
|
+
L(l.link);
|
|
111
|
+
else A.value && se();
|
|
112
|
+
}
|
|
113
|
+
return K(c, (e) => {
|
|
114
|
+
const t = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
|
|
115
|
+
new Date(r.value) < t && (r.value = t);
|
|
116
|
+
}), U.on("forcedDateChange", () => {
|
|
117
|
+
y.value = [c.value, r.value];
|
|
118
|
+
}), K(y, (e) => {
|
|
119
|
+
c.value = e[0], r.value = e[1];
|
|
120
|
+
}), he(() => {
|
|
121
|
+
y.value = [c.value, r.value];
|
|
122
|
+
}), (e, t) => (n(), d("form", {
|
|
123
|
+
id: "konnectio-availability-form",
|
|
124
|
+
class: N({ reservation: e.booking }),
|
|
125
|
+
type: "availability",
|
|
126
|
+
onSubmit: Ae(ye, ["prevent"])
|
|
127
|
+
}, [
|
|
128
|
+
s(_e, {
|
|
129
|
+
id: "konnectio-availability-form-content",
|
|
130
|
+
tag: "ul",
|
|
131
|
+
class: N([
|
|
132
|
+
{ "is-booking-page": e.booking },
|
|
133
|
+
{ "only-adult-guests": !a(m) && a(v) },
|
|
134
|
+
{ "only-child-guests": !a(v) && a(m) },
|
|
135
|
+
{ "no-guests": a(m) && a(v) },
|
|
136
|
+
{ "all-guests": !a(m) && !a(v) },
|
|
137
|
+
{ "has-location": a(f) }
|
|
138
|
+
])
|
|
139
|
+
}, {
|
|
140
|
+
default: we(() => [
|
|
141
|
+
a(f) ? (n(), d("li", Ce, [
|
|
142
|
+
isNaN(e.selectedLocation) ? (n(), D(Se, {
|
|
143
|
+
key: 1,
|
|
144
|
+
modelValue: w.value,
|
|
145
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => w.value = o),
|
|
146
|
+
label: a(i)("general.location"),
|
|
147
|
+
placeholder: a(i)("general.locationPlaceholder"),
|
|
148
|
+
icon: "location-dot",
|
|
149
|
+
"icon-type": "fas",
|
|
150
|
+
"icon-placement": "label",
|
|
151
|
+
"label-key": "name",
|
|
152
|
+
"value-key": "id",
|
|
153
|
+
options: a(F),
|
|
154
|
+
searchable: !1
|
|
155
|
+
}, null, 8, ["modelValue", "label", "placeholder", "options"])) : (n(), D(xe, {
|
|
156
|
+
key: 0,
|
|
157
|
+
modelValue: G.value,
|
|
158
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => G.value = o),
|
|
159
|
+
label: a(i)("general.location"),
|
|
160
|
+
icon: "location-dot",
|
|
161
|
+
"icon-type": "fas",
|
|
162
|
+
"icon-placement": "label",
|
|
163
|
+
readonly: ""
|
|
164
|
+
}, null, 8, ["modelValue", "label"]))
|
|
165
|
+
])) : k("", !0),
|
|
166
|
+
S("li", Ue, [
|
|
167
|
+
a(ve) ? (n(), d("div", $e, [
|
|
168
|
+
s(x, {
|
|
169
|
+
modelValue: c.value,
|
|
170
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => c.value = o),
|
|
171
|
+
label: a(i)("availability.arrivalDate"),
|
|
172
|
+
name: "arrivalDate",
|
|
173
|
+
"icon-type": "fas",
|
|
174
|
+
"icon-placement": "label",
|
|
175
|
+
"start-date": c.value,
|
|
176
|
+
"min-date": Q.value,
|
|
177
|
+
"max-date": pe.value
|
|
178
|
+
}, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"]),
|
|
179
|
+
s(x, {
|
|
180
|
+
modelValue: r.value,
|
|
181
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => r.value = o),
|
|
182
|
+
label: a(i)("availability.departureDate"),
|
|
183
|
+
name: "departureDate",
|
|
184
|
+
"icon-type": "fas",
|
|
185
|
+
"icon-placement": "label",
|
|
186
|
+
"start-date": r.value,
|
|
187
|
+
"min-date": c.value,
|
|
188
|
+
"max-date": Y.value
|
|
189
|
+
}, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"])
|
|
190
|
+
])) : (n(), D(x, {
|
|
191
|
+
key: 1,
|
|
192
|
+
modelValue: y.value,
|
|
193
|
+
"onUpdate:modelValue": t[4] || (t[4] = (o) => y.value = o),
|
|
194
|
+
label: a(i)("availability.checkInOut"),
|
|
195
|
+
"icon-type": "fas",
|
|
196
|
+
"icon-placement": "label",
|
|
197
|
+
"min-range": 1,
|
|
198
|
+
"min-date": Q.value,
|
|
199
|
+
"max-date": Y.value,
|
|
200
|
+
range: ""
|
|
201
|
+
}, null, 8, ["modelValue", "label", "min-date", "max-date"]))
|
|
202
|
+
]),
|
|
203
|
+
!a(m) || !a(v) ? (n(), d("li", Be, [
|
|
204
|
+
a(m) ? k("", !0) : (n(), D(Z, {
|
|
205
|
+
key: 0,
|
|
206
|
+
modelValue: h.value,
|
|
207
|
+
"onUpdate:modelValue": t[5] || (t[5] = (o) => h.value = o),
|
|
208
|
+
label: a(i)("availability.adults"),
|
|
209
|
+
description: a(i)("general.adultAgeRange"),
|
|
210
|
+
"icon-type": "fas",
|
|
211
|
+
"icon-placement": "label",
|
|
212
|
+
name: "adults",
|
|
213
|
+
icon: "male",
|
|
214
|
+
"max-value": a(re),
|
|
215
|
+
controls: !(a(f) && !a(v))
|
|
216
|
+
}, null, 8, ["modelValue", "label", "description", "max-value", "controls"])),
|
|
217
|
+
a(v) ? k("", !0) : (n(), D(Z, {
|
|
218
|
+
key: 1,
|
|
219
|
+
modelValue: _.value,
|
|
220
|
+
"onUpdate:modelValue": t[6] || (t[6] = (o) => _.value = o),
|
|
221
|
+
label: a(i)("availability.children"),
|
|
222
|
+
description: a(i)("general.childAgeRange"),
|
|
223
|
+
"icon-type": "fas",
|
|
224
|
+
"icon-placement": "label",
|
|
225
|
+
name: "children",
|
|
226
|
+
icon: "child",
|
|
227
|
+
"max-value": a(de),
|
|
228
|
+
controls: !a(f)
|
|
229
|
+
}, null, 8, ["modelValue", "label", "description", "max-value", "controls"]))
|
|
230
|
+
])) : k("", !0),
|
|
231
|
+
S("li", He, [
|
|
232
|
+
s(ee, {
|
|
233
|
+
class: "konnectio-availability-submit-small",
|
|
234
|
+
type: "submit",
|
|
235
|
+
icon: "search",
|
|
236
|
+
"icon-type": "fas",
|
|
237
|
+
disabled: !A.value,
|
|
238
|
+
"is-loading": a(I)
|
|
239
|
+
}, null, 8, ["disabled", "is-loading"]),
|
|
240
|
+
s(ee, {
|
|
241
|
+
class: "konnectio-availability-submit-large",
|
|
242
|
+
type: "submit",
|
|
243
|
+
label: a(i)("availability.buttonLabel"),
|
|
244
|
+
disabled: !A.value,
|
|
245
|
+
"is-loading": a(I)
|
|
246
|
+
}, null, 8, ["label", "disabled", "is-loading"])
|
|
247
|
+
])
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
}, 8, ["class"])
|
|
251
|
+
], 34));
|
|
252
|
+
}
|
|
253
|
+
}), qe = /* @__PURE__ */ le(Re, [["__scopeId", "data-v-db42c217"]]), Fe = { class: "availability-skeleton" }, Ie = {
|
|
254
|
+
key: 0,
|
|
255
|
+
class: "availability-skeleton-navigation"
|
|
256
|
+
}, Te = { class: "availability-skeleton-content" }, Ee = {
|
|
257
|
+
key: 1,
|
|
258
|
+
class: "availability-skeleton-event"
|
|
259
|
+
}, Me = /* @__PURE__ */ te({
|
|
260
|
+
__name: "AvailabilitySkeleton",
|
|
261
|
+
props: {
|
|
262
|
+
view: { default: "hotel" },
|
|
263
|
+
hotel: { type: Boolean, default: !1 }
|
|
264
|
+
},
|
|
265
|
+
setup(C) {
|
|
266
|
+
return (i, U) => (n(), d("div", Fe, [
|
|
267
|
+
i.view === "both" ? (n(), d("div", Ie, [
|
|
268
|
+
s(ae, {
|
|
269
|
+
height: "28px",
|
|
270
|
+
width: "60px",
|
|
271
|
+
"border-radius": "20px"
|
|
272
|
+
}),
|
|
273
|
+
s(ae, {
|
|
274
|
+
height: "28px",
|
|
275
|
+
width: "60px",
|
|
276
|
+
"border-radius": "20px"
|
|
277
|
+
})
|
|
278
|
+
])) : k("", !0),
|
|
279
|
+
S("div", Te, [
|
|
280
|
+
i.view !== "event" ? (n(), d("div", {
|
|
281
|
+
key: 0,
|
|
282
|
+
class: N([
|
|
283
|
+
"availability-skeleton-hotel",
|
|
284
|
+
{ "within-hotel": i.hotel }
|
|
285
|
+
])
|
|
286
|
+
}, [
|
|
287
|
+
s(p, { "with-icon": "" }),
|
|
288
|
+
s(p, { "with-icon": "" }),
|
|
289
|
+
s(p, { "with-icon": "" }),
|
|
290
|
+
s(p, {
|
|
291
|
+
"with-icon": "",
|
|
292
|
+
"no-label": ""
|
|
293
|
+
})
|
|
294
|
+
], 2)) : (n(), d("div", Ee, [
|
|
295
|
+
s(p, { "with-icon": "" }),
|
|
296
|
+
s(p, {
|
|
297
|
+
"with-icon": "",
|
|
298
|
+
"no-label": ""
|
|
299
|
+
})
|
|
300
|
+
]))
|
|
301
|
+
])
|
|
302
|
+
]));
|
|
303
|
+
}
|
|
304
|
+
}), Ge = /* @__PURE__ */ le(Me, [["__scopeId", "data-v-cebeb733"]]);
|
|
305
|
+
export {
|
|
306
|
+
Ge as A,
|
|
307
|
+
qe as H
|
|
308
|
+
};
|
|
309
|
+
//# sourceMappingURL=AvailabilitySkeleton-BJPo5KGW.js.map
|
|
Binary file
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as Ut, A as
|
|
3
|
-
import { d as gl, s as qn, a as Lt } from "./mitt-QLRlCcPH.js";
|
|
1
|
+
import { Y as Ca, r as q, d as Ke, z as ta, a1 as Aa, o as at, O as ft, Z as Wa, H as wt, c as O, a as S, g as G, f as ut, A as tt, B as Ye, w as ke, y as se, a2 as Ge, a3 as st, i as c, a4 as Ue, C as Vn, b as Pe, T as ha, j as Z, a5 as qa, a6 as nl, n as xe, e as he, F as _e, _ as gt, h as Oa, t as et, V as rl, a7 as Bn, a8 as ll, D as It, a9 as ol, I as Ea, J as Ha, aa as il, ab as sl, ac as ul, K as dl, x as zn, L as Lt } from "./mitt-B_elXQ2J.js";
|
|
2
|
+
import { o as Ut, A as cl, p as vl, r as ml, q as pl, a as fl, d as Wn, u as yl, H as ht, t as Za, O as qn, S as Ja, J as hl, v as oa, K as gl } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
|
|
4
3
|
function ve(e) {
|
|
5
4
|
const t = Object.prototype.toString.call(e);
|
|
6
5
|
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
|
@@ -42,7 +41,7 @@ function wl(e, t) {
|
|
|
42
41
|
const n = +ve(e);
|
|
43
42
|
return Te(e, n + t);
|
|
44
43
|
}
|
|
45
|
-
const vr = 6048e5, bl = 864e5, kl = 6e4, mr = 36e5, _l = 1e3,
|
|
44
|
+
const vr = 6048e5, bl = 864e5, kl = 6e4, mr = 36e5, _l = 1e3, ud = 525600, dd = 43200, cd = 1440;
|
|
46
45
|
function xl(e, t) {
|
|
47
46
|
return wl(e, t * mr);
|
|
48
47
|
}
|
|
@@ -8220,7 +8219,7 @@ const Mu = {
|
|
|
8220
8219
|
weekStartsOn: 1,
|
|
8221
8220
|
firstWeekContainsDate: 4
|
|
8222
8221
|
}
|
|
8223
|
-
}, od = ["name", "value"],
|
|
8222
|
+
}, od = ["name", "value"], vd = /* @__PURE__ */ Ke({
|
|
8224
8223
|
__name: "DateField",
|
|
8225
8224
|
props: {
|
|
8226
8225
|
modelValue: {},
|
|
@@ -8252,7 +8251,7 @@ const Mu = {
|
|
|
8252
8251
|
},
|
|
8253
8252
|
emits: ["update:modelValue"],
|
|
8254
8253
|
setup(e, { emit: t }) {
|
|
8255
|
-
const n = t, a = O(() => Ut() === "da" ? ed : ld), r = e, l = r.id ||
|
|
8254
|
+
const n = t, a = O(() => Ut() === "da" ? ed : ld), r = e, l = r.id || cl(), i = (y) => y.hours;
|
|
8256
8255
|
function p(y) {
|
|
8257
8256
|
i(y) ? n("update:modelValue", w(y)) : n("update:modelValue", y);
|
|
8258
8257
|
}
|
|
@@ -8277,7 +8276,7 @@ const Mu = {
|
|
|
8277
8276
|
get: () => m.value,
|
|
8278
8277
|
set: (y) => p(y)
|
|
8279
8278
|
});
|
|
8280
|
-
return (y, f) => (S(), Pe(
|
|
8279
|
+
return (y, f) => (S(), Pe(vl, {
|
|
8281
8280
|
label: y.label,
|
|
8282
8281
|
id: `dp-input-${c(l)}`,
|
|
8283
8282
|
icon: y.icon,
|
|
@@ -8337,12 +8336,12 @@ const Mu = {
|
|
|
8337
8336
|
_: 1
|
|
8338
8337
|
}, 8, ["label", "id", "icon", "icon-color", "icon-type", "icon-placement", "required", "readonly"]));
|
|
8339
8338
|
}
|
|
8340
|
-
}),
|
|
8341
|
-
const e =
|
|
8339
|
+
}), md = dl("event", () => {
|
|
8340
|
+
const e = ml(), { voucher: t } = zn(pl()), { display: n } = fl(), { bearerToken: a, metaData: r } = zn(Wn()), l = Wn(), i = yl(), p = q({}), v = O(() => Object.keys(p.value).length > 0), w = q(void 0), d = q(!0), m = q(ht.InitialState), g = q(NaN), x = q(1), y = q(NaN), f = q(NaN), R = q(""), E = Za("konnectio_name", "", void 0, { serializer: Ja.string }), Q = Za("konnectio_phone", "", void 0, { serializer: Ja.string }), A = Za("konnectio_email", "", void 0, { serializer: Ja.string }), j = q(""), ae = q(""), F = q({}), I = q({}), re = q("");
|
|
8342
8341
|
function L(Y) {
|
|
8343
8342
|
return Y ? Y.templateId !== void 0 : !1;
|
|
8344
8343
|
}
|
|
8345
|
-
const H = O(() => l.metaData.hotels.findIndex((Y) => Y.id === i.eventLocation) || 0), oe = O(() => l.metaData.hotels[H.value]), de = O(() => oe.value ? oe.value.maxNumberPerBooking : 1 / 0), pe = O(() => oe.value.name ? oe.value.name : ""), _ = O(() => oe.value.subtitle ? oe.value.subtitle : ""), T = q(i.eventDate), k = q(i.eventLocation), B = O(() => T.value !== i.eventDate), ie = O(() => k.value !== i.eventLocation), V = O(() => B.value || ie.value), ne = O(() => i.eventDate.toISOString()), me = O(() => L(w.value)), h = O(() => L(w.value) ? w.value.numberOfDays : x.value), b = O(() => L(w.value) ? w.value.packageCount : 0), o = O(() => L(w.value) ? w.value.fromDate : ""), M = O(() => p.value.events !== void 0 ? p.value.events.find((Y) => Y.id === y.value) : void 0), z = O(() => M.value ? M.value.length : void 0), u = O(() => L(w.value) ? w.value.templateId : 0), le = O(() => p.value.events), fe = O(() => p.value.templates), Fe = O(() => p.value.events.length > 0), $ = O(() => p.value.templates.length > 0), X = O(() => M.value && M.value.eventRateType ? M.value.eventRateType :
|
|
8344
|
+
const H = O(() => l.metaData.hotels.findIndex((Y) => Y.id === i.eventLocation) || 0), oe = O(() => l.metaData.hotels[H.value]), de = O(() => oe.value ? oe.value.maxNumberPerBooking : 1 / 0), pe = O(() => oe.value.name ? oe.value.name : ""), _ = O(() => oe.value.subtitle ? oe.value.subtitle : ""), T = q(i.eventDate), k = q(i.eventLocation), B = O(() => T.value !== i.eventDate), ie = O(() => k.value !== i.eventLocation), V = O(() => B.value || ie.value), ne = O(() => i.eventDate.toISOString()), me = O(() => L(w.value)), h = O(() => L(w.value) ? w.value.numberOfDays : x.value), b = O(() => L(w.value) ? w.value.packageCount : 0), o = O(() => L(w.value) ? w.value.fromDate : ""), M = O(() => p.value.events !== void 0 ? p.value.events.find((Y) => Y.id === y.value) : void 0), z = O(() => M.value ? M.value.length : void 0), u = O(() => L(w.value) ? w.value.templateId : 0), le = O(() => p.value.events), fe = O(() => p.value.templates), Fe = O(() => p.value.events.length > 0), $ = O(() => p.value.templates.length > 0), X = O(() => M.value && M.value.eventRateType ? M.value.eventRateType : qn.None), s = O(() => {
|
|
8346
8345
|
if (!L(w.value))
|
|
8347
8346
|
return w.value;
|
|
8348
8347
|
}), W = O(() => {
|
|
@@ -8366,7 +8365,7 @@ const Mu = {
|
|
|
8366
8365
|
const vt = je.addons, Xe = F.value[`${we}.${Y}.${$e}`] || 0;
|
|
8367
8366
|
if (Xe > 0) {
|
|
8368
8367
|
const yt = vt?.find((la) => la.id === Y), mt = typeof Xe == "boolean" ? 1 : Xe;
|
|
8369
|
-
We +=
|
|
8368
|
+
We += hl(yt?.price, yt?.quantityStrategy, h.value, je.adultPerRoom) * mt;
|
|
8370
8369
|
}
|
|
8371
8370
|
}
|
|
8372
8371
|
} else {
|
|
@@ -8406,7 +8405,7 @@ const Mu = {
|
|
|
8406
8405
|
for (const $e in Y)
|
|
8407
8406
|
we += Number.isNaN(Y[$e]) ? 0 : Y[$e];
|
|
8408
8407
|
return we > 0;
|
|
8409
|
-
}), ce = O(() => L(w.value) ? !1 : M.value?.products.length > 0), bt = O(() => ce.value ? nt.value : !0), ct = O(() => X.value !==
|
|
8408
|
+
}), ce = O(() => L(w.value) ? !1 : M.value?.products.length > 0), bt = O(() => ce.value ? nt.value : !0), ct = O(() => X.value !== qn.FullDayEvent && !me.value), Qt = O(() => !!(E.value !== "" && A.value !== "" && Q.value.length >= 5 && bt.value && (!ct.value || R.value !== "")));
|
|
8410
8409
|
function rt(Y) {
|
|
8411
8410
|
return m.value === ht.ReservationState && y.value === Y && d.value;
|
|
8412
8411
|
}
|
|
@@ -8579,7 +8578,7 @@ const Mu = {
|
|
|
8579
8578
|
const yt = {
|
|
8580
8579
|
language: Ut(),
|
|
8581
8580
|
restaurantId: k.value,
|
|
8582
|
-
date:
|
|
8581
|
+
date: gl(T.value),
|
|
8583
8582
|
name: E.value,
|
|
8584
8583
|
email: A.value,
|
|
8585
8584
|
phone: Q.value,
|
|
@@ -8683,16 +8682,16 @@ const Mu = {
|
|
|
8683
8682
|
};
|
|
8684
8683
|
});
|
|
8685
8684
|
export {
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8685
|
+
vd as _,
|
|
8686
|
+
dd as a,
|
|
8687
|
+
ud as b,
|
|
8689
8688
|
Qn as c,
|
|
8690
8689
|
aa as d,
|
|
8691
8690
|
Mr as e,
|
|
8692
8691
|
kl as f,
|
|
8693
8692
|
Va as g,
|
|
8694
|
-
|
|
8693
|
+
cd as m,
|
|
8695
8694
|
ve as t,
|
|
8696
|
-
|
|
8695
|
+
md as u
|
|
8697
8696
|
};
|
|
8698
|
-
//# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-
|
|
8697
|
+
//# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js.map
|