@revolugo/elements 6.8.2-beta.36 → 6.8.2-beta.37
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/css/{revolugo.hotelroomofferlist.E-On0KSt.css → revolugo.hotelroomofferlist.-6YLPyqb.css} +1 -1
- package/dist/{revolugo._baseiteratee.DqpAWb6T.min.js → revolugo._baseiteratee.C6vg5Xtv.min.js} +2 -2
- package/dist/{revolugo.banktransferdetails.HIONuL-w.min.js → revolugo.banktransferdetails.H7LEH4sY.min.js} +9 -9
- package/dist/{revolugo.bdaterangepicker.CYqs79KF.min.js → revolugo.bdaterangepicker.BPJGfRLE.min.js} +5 -5
- package/dist/{revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.C2bQrTH9.min.js → revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DkaYvlro.min.js} +30 -32
- package/dist/{revolugo.bhoteloffersfilterbar.C99qFZXQ.min.js → revolugo.bhoteloffersfilterbar.CJMk-z92.min.js} +36 -36
- package/dist/{revolugo.bhotelroomsdetails.BspNbZ48.min.js → revolugo.bhotelroomsdetails.DiOyi4BS.min.js} +7 -7
- package/dist/{revolugo.bimagecarousel.Csl8A8eS.min.js → revolugo.bimagecarousel.Jndf1DxF.min.js} +8 -8
- package/dist/{revolugo.bookingdetailssidebar.DGJW157-.min.js → revolugo.bookingdetailssidebar.Bo3y9bdL.min.js} +11 -11
- package/dist/{revolugo.bookingdetailssidebar.CpDzjKTp.min.js → revolugo.bookingdetailssidebar.U_oxhr7p.min.js} +4 -4
- package/dist/{revolugo.bookingmanager.kjJFCsaj.min.js → revolugo.bookingmanager.B0UvZtpR.min.js} +20 -20
- package/dist/{revolugo.bpricesummaryskeleton.8c6X82Hn.min.js → revolugo.bpricesummaryskeleton.BfRhJn0l.min.js} +4 -4
- package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.KQ12c6Ip.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.BMyuUV-t.min.js} +8 -8
- package/dist/{revolugo.btag.BE3Ri1CO.min.js → revolugo.btag.BtWu_rm9.min.js} +12 -12
- package/dist/{revolugo.cancellationpoliciesbadge.W8Gvstjs.min.js → revolugo.cancellationpoliciesbadge.D9R_tqyL.min.js} +4 -4
- package/dist/{revolugo.cancellationpoliciesbadge.mxkumI4i.min.js → revolugo.cancellationpoliciesbadge.xdqO7vwM.min.js} +9 -9
- package/dist/{revolugo.cancellationpolicieslist.DEiFUBfm.min.js → revolugo.cancellationpolicieslist.CHrqbou4.min.js} +3 -3
- package/dist/{revolugo.cancellationpolicieslist.EqDKfH1M.min.js → revolugo.cancellationpolicieslist.DDTdkJS9.min.js} +4 -4
- package/dist/{revolugo.case-transformers.BZKgm7X9.min.js → revolugo.case-transformers.JX35Ctwc.min.js} +5 -5
- package/dist/{revolugo.creditcardform.D84lJYLN.min.js → revolugo.creditcardform.BRMaxTF2.min.js} +4 -4
- package/dist/{revolugo.creditcardform.Dv8WVVQs.min.js → revolugo.creditcardform.CNvvsO76.min.js} +11 -11
- package/dist/{revolugo.creditcardpayment.BcHJkQmY.min.js → revolugo.creditcardpayment.CD1id-ox.min.js} +16 -16
- package/dist/{revolugo.creditcardpayment.BQEG147C.min.js → revolugo.creditcardpayment.CGQgnIJO.min.js} +4 -4
- package/dist/{revolugo.currencypicker.DEJ2kZKc.min.js → revolugo.currencypicker.D4jr-wmu.min.js} +15 -15
- package/dist/{revolugo.currencypickerbtn.BO15T4Og.min.js → revolugo.currencypickerbtn.CiemMUrd.min.js} +4 -4
- package/dist/{revolugo.currencypickerbtn.1V06vG7i.min.js → revolugo.currencypickerbtn.CjXS-VS9.min.js} +9 -9
- package/dist/{revolugo.dates.DQToc-Zu.min.js → revolugo.dates.CfHVQJZQ.min.js} +2 -2
- package/dist/{revolugo.defaultsdeep.D6A9dZfK.min.js → revolugo.defaultsdeep.BFuLbavJ.min.js} +4 -4
- package/dist/{revolugo.dialog-attach.8RGGMLvt.min.js → revolugo.dialog-attach.B1z6IjeU.min.js} +2 -2
- package/dist/{revolugo.dialog-transition.CK9FmR7q.min.js → revolugo.dialog-transition.DEB0UcAq.min.js} +3 -3
- package/dist/{revolugo.fastbookingflow.mx9nZ44p.min.js → revolugo.fastbookingflow.BlYRQu8S.min.js} +4 -4
- package/dist/{revolugo.fullbookingflow.ByWT9-fz.min.js → revolugo.fullbookingflow.BsvtYDQs.min.js} +17 -17
- package/dist/{revolugo.hotel-offer-request.AQUc7QpR.min.js → revolugo.hotel-offer-request.BJjEmgJS.min.js} +2 -2
- package/dist/{revolugo.hoteldescriptionview.DjCj4aYP.min.js → revolugo.hoteldescriptionview.BwT_tjpi.min.js} +21 -21
- package/dist/{revolugo.hoteldescriptionview.DCr66NFf.min.js → revolugo.hoteldescriptionview.Dh1vPEb7.min.js} +4 -4
- package/dist/{revolugo.hotelofferitemlayout.DSbBWikv.min.js → revolugo.hotelofferitemlayout.BQwaUVxn.min.js} +6 -6
- package/dist/{revolugo.hotelofferlist.BpQDR4Wh.min.js → revolugo.hotelofferlist.-HbLhJJJ.min.js} +4 -4
- package/dist/{revolugo.hotelofferlist.Cj2C7Zi4.min.js → revolugo.hotelofferlist.C2aw5gqv.min.js} +23 -23
- package/dist/{revolugo.hoteloffersearchmenu.DIMPtwG2.min.js → revolugo.hoteloffersearchmenu.C8tUR0rh.min.js} +6 -6
- package/dist/{revolugo.hoteloffersearchmenuui.BblFbDpa.min.js → revolugo.hoteloffersearchmenuui.D8bL25qH.min.js} +17 -17
- package/dist/{revolugo.hoteloffersmap.4IJuz8Kr.min.js → revolugo.hoteloffersmap.B-82vQ90.min.js} +4 -4
- package/dist/{revolugo.hoteloffersmap.DLxrzp7A.min.js → revolugo.hoteloffersmap.D-0XTKIB.min.js} +13 -13
- package/dist/{revolugo.hoteloffersview.DMDKMCye.min.js → revolugo.hoteloffersview.CBLJBWhI.min.js} +16 -16
- package/dist/{revolugo.hoteloffersview.BsL_RfVC.min.js → revolugo.hoteloffersview.DP4zWXUp.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.CrMiA0E5.min.js → revolugo.hotelroomofferlist.B-N3Yatc.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.CqoX8wAD.min.js → revolugo.hotelroomofferlist.BF-qbcqV.min.js} +618 -608
- package/dist/{revolugo.hotelroomofferrequestcreator.props.CV1b3F15.min.js → revolugo.hotelroomofferrequestcreator.props.C9n8tnQ_.min.js} +2 -2
- package/dist/{revolugo.hotelroomoffersbookingflow.EoUemNqv.min.js → revolugo.hotelroomoffersbookingflow.i6mCMfXW.min.js} +17 -17
- package/dist/{revolugo.hotelroomoffersearchmenu.Dj7xOa4W.min.js → revolugo.hotelroomoffersearchmenu.-URm_0I4.min.js} +8 -8
- package/dist/{revolugo.hotelroomoffersearchmenu.ngvURW1c.min.js → revolugo.hotelroomoffersearchmenu.TxYw_6Uz.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersview.DRv2agnW.min.js → revolugo.hotelroomoffersview.BS6remQd.min.js} +12 -12
- package/dist/{revolugo.hotelroomoffersview.CwyVwZR_.min.js → revolugo.hotelroomoffersview.D-2mHgLa.min.js} +4 -4
- package/dist/{revolugo.index.qisZC-QI.min.js → revolugo.index.D2vVqIxQ.min.js} +58 -58
- package/dist/{revolugo.index.DDAUBYBh.min.js → revolugo.index.D3HI0RIL.min.js} +6 -6
- package/dist/{revolugo.index.wc.BzjxKm9K.min.js → revolugo.index.wc.BCHUnn0S.min.js} +3423 -3404
- package/dist/{revolugo.langpicker.C-S6u3-u.min.js → revolugo.langpicker.RjMD9g48.min.js} +11 -11
- package/dist/{revolugo.langpickerbtn.D3uECmJK.min.js → revolugo.langpickerbtn.C5EJBJJy.min.js} +4 -4
- package/dist/{revolugo.langpickerbtn.D9CD4Bj3.min.js → revolugo.langpickerbtn.DfDHvsIb.min.js} +10 -10
- package/dist/revolugo.min.js +1 -1
- package/dist/{revolugo.pathify.CIND4Lom.min.js → revolugo.pathify.DDRySNIK.min.js} +2 -2
- package/dist/{revolugo.prebookform.aGjJhr1R.min.js → revolugo.prebookform.BFaGy58W.min.js} +4 -4
- package/dist/{revolugo.prebookform.rbCZlvHH.min.js → revolugo.prebookform.zGRnI6WN.min.js} +18 -18
- package/dist/{revolugo.roominglisteditor.Ccuu1hR2.min.js → revolugo.roominglisteditor.WhNt-v3N.min.js} +9 -9
- package/dist/{revolugo.roominglisteditor.B6-iMCHL.min.js → revolugo.roominglisteditor.k7m3-x1Q.min.js} +4 -4
- package/dist/{revolugo.rounded.4lPQ9kFX.min.js → revolugo.rounded.gvdnWJcm.min.js} +2 -2
- package/dist/{revolugo.ssrboot.DHJaJ8JS.min.js → revolugo.ssrboot.xiFRvjRz.min.js} +2 -2
- package/dist/{revolugo.storybooktoolbar.BQCF7Nnh.min.js → revolugo.storybooktoolbar.DxaSeYYh.min.js} +23 -23
- package/dist/{revolugo.termsandconditions.CQXI2fBL.min.js → revolugo.termsandconditions.BqdxzKLe.min.js} +4 -4
- package/dist/{revolugo.termsandconditions.D0ZQsUY6.min.js → revolugo.termsandconditions.C7nXe72Y.min.js} +4 -4
- package/dist/{revolugo.use-breakpoint-service.C-hjHtUg.min.js → revolugo.use-breakpoint-service.DCvVngRD.min.js} +7 -7
- package/dist/{revolugo.use-dialog-attach.Czzi-3RI.min.js → revolugo.use-dialog-attach.VoSI1cTA.min.js} +3 -3
- package/dist/revolugo.use-html-element.BA6pPTeH.min.js +11 -0
- package/dist/{revolugo.vautocomplete.CurwGarB.min.js → revolugo.vautocomplete.X7PltObE.min.js} +58 -58
- package/dist/{revolugo.vbadge.CAoYMMWm.min.js → revolugo.vbadge.BZou4sR-.min.js} +12 -12
- package/dist/{revolugo.vbtn.CsZeeN8o.min.js → revolugo.vbtn.CvXud-id.min.js} +6 -6
- package/dist/{revolugo.vcard._oiwzPZq.min.js → revolugo.vcard.tpBOwKjl.min.js} +6 -6
- package/dist/{revolugo.vcheckboxbtn.DtbO_191.min.js → revolugo.vcheckboxbtn.D8JwiBIN.min.js} +34 -34
- package/dist/{revolugo.vdialog.B8w3JtNs.min.js → revolugo.vdialog.C7o9NZPt.min.js} +9 -9
- package/dist/{revolugo.vdivider.BMaXASD1.min.js → revolugo.vdivider.vE5KQvv6.min.js} +3 -3
- package/dist/{revolugo.vexpansionpanels.tj0xf8uQ.min.js → revolugo.vexpansionpanels.CVMNz4gm.min.js} +6 -6
- package/dist/{revolugo.vform.CK0ZMifM.min.js → revolugo.vform.AJwBPUfz.min.js} +4 -4
- package/dist/{revolugo.vicon.ChjALOWz.min.js → revolugo.vicon.D1UDvrDb.min.js} +18 -18
- package/dist/{revolugo.vinput.Be9TwErW.min.js → revolugo.vinput.BCAbaTZh.min.js} +30 -30
- package/dist/{revolugo.vlabel.kUTWOnRf.min.js → revolugo.vlabel.Ca0XsFXf.min.js} +3 -3
- package/dist/{revolugo.vlist.CwdXG8X4.min.js → revolugo.vlist.DXlrNpl6.min.js} +36 -36
- package/dist/{revolugo.vmenu.Do9o54LY.min.js → revolugo.vmenu.BWJdX_gM.min.js} +23 -23
- package/dist/{revolugo.vselect.FSeFjW01.min.js → revolugo.vselect.DoahtCZB.min.js} +47 -47
- package/dist/{revolugo.vsheet.RQ8g0IIb.min.js → revolugo.vsheet.CNjDcqfr.min.js} +5 -5
- package/dist/{revolugo.vskeletonloader.BTBm47P-.min.js → revolugo.vskeletonloader.hCB6BK0m.min.js} +4 -4
- package/dist/{revolugo.vslidegroup.CxPt62zw.min.js → revolugo.vslidegroup.CqlKNKTO.min.js} +31 -31
- package/dist/{revolugo.vsnackbar.DKhErJRq.min.js → revolugo.vsnackbar.DeLxyEmM.min.js} +5 -5
- package/dist/revolugo.vspacer.YBuVsKID.min.js +7 -0
- package/dist/{revolugo.vtextarea.D8AZqjfK.min.js → revolugo.vtextarea.DuihgsVu.min.js} +8 -8
- package/dist/{revolugo.vtextfield.CGEo7_cB.min.js → revolugo.vtextfield.Cu-Wacu0.min.js} +18 -18
- package/dist/{revolugo.vtoolbar.DXfaICLs.min.js → revolugo.vtoolbar.JtNZmNMv.min.js} +5 -5
- package/dist/{revolugo.vtooltip.DzcL8CbM.min.js → revolugo.vtooltip.Bi9BBHp7.min.js} +3 -3
- package/dist/{revolugo.vwindowitem.C3s82jNI.min.js → revolugo.vwindowitem.-4FOKaJh.min.js} +13 -13
- package/dist/{revolugo.watch-list.DrNheBPf.min.js → revolugo.watch-list.gkXzTKi-.min.js} +2 -2
- package/dist/{revolugo.webcomponentwrapper.XqvBRD6a.min.js → revolugo.webcomponentwrapper.CaLpHd-8.min.js} +141 -141
- package/package.json +1 -1
- package/dist/revolugo.use-html-element.D6v1nK-L.min.js +0 -11
- package/dist/revolugo.vspacer.D8mMBxcQ.min.js +0 -7
@@ -1,30 +1,30 @@
|
|
1
|
-
import { aj as
|
2
|
-
import { s as
|
3
|
-
import { u as
|
4
|
-
import { C as
|
5
|
-
import { B as
|
6
|
-
import { _ as
|
7
|
-
import { V as
|
8
|
-
import { _ as
|
9
|
-
import { _ as
|
10
|
-
import { r as
|
11
|
-
import { u as
|
12
|
-
import { b as
|
13
|
-
import { V as
|
14
|
-
import { V as
|
15
|
-
import { B as
|
16
|
-
import { u as
|
17
|
-
import { V as
|
18
|
-
import { V as
|
19
|
-
import { _ as
|
20
|
-
import { V as
|
21
|
-
import { k as
|
1
|
+
import { aj as ft, k as F, by as W, H as f, bz as le, d as G, bA as Ut, bB as re, u as K, i as m, g as C, e as k, t as y, p as S, a as o, f as w, F as R, o as i, S as ue, O as L, M as ce, b as jt, c as O, w as a, j as E, r as q, a1 as lt, a2 as rt, a6 as dt, bC as de, aL as me, b5 as fe, D as z, m as be, l as pe, bD as ct, J as ht, K as gt, n as ke, h as ve, B as x, I as he, E as ge, bE as _t, q as kt, v as Ht, s as ye, C as yt, bF as Re, ah as Oe, bG as Rt, bH as Ce, aa as Ft, an as Be, af as et, aV as Se, ad as Ie, bI as we } from "./revolugo.index.wc.BCHUnn0S.min.js";
|
2
|
+
import { s as Pe } from "./revolugo.dates.CfHVQJZQ.min.js";
|
3
|
+
import { u as bt, h as _e } from "./revolugo.hotelroomofferrequestcreator.props.C9n8tnQ_.min.js";
|
4
|
+
import { C as He } from "./revolugo.cancellationpoliciesbadge.xdqO7vwM.min.js";
|
5
|
+
import { B as Bt, _ as Te } from "./revolugo.bpricesummaryskeleton.BfRhJn0l.min.js";
|
6
|
+
import { _ as ot, V as P, a as h, u as ut, l as Gt, B as St, d as Ve, q as Ee, s as Ae, b as Le, g as $e, e as De } from "./revolugo.webcomponentwrapper.CaLpHd-8.min.js";
|
7
|
+
import { V as J } from "./revolugo.vskeletonloader.hCB6BK0m.min.js";
|
8
|
+
import { _ as Wt, B as xt } from "./revolugo.bhotelroomsdetails.DiOyi4BS.min.js";
|
9
|
+
import { _ as mt, a as qe } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DkaYvlro.min.js";
|
10
|
+
import { r as ze, a as Me, e as Ne, L as Ue, s as je, m as Fe, V as Ge } from "./revolugo.index.D2vVqIxQ.min.js";
|
11
|
+
import { u as We, m as xe, V as Tt } from "./revolugo.vinput.BCAbaTZh.min.js";
|
12
|
+
import { b as Ye, c as Vt, V as Ke } from "./revolugo.vcheckboxbtn.D8JwiBIN.min.js";
|
13
|
+
import { V as st } from "./revolugo.vicon.D1UDvrDb.min.js";
|
14
|
+
import { V as It, a as nt, m as Ze } from "./revolugo.vbtn.CvXud-id.min.js";
|
15
|
+
import { B as vt } from "./revolugo.btag.BtWu_rm9.min.js";
|
16
|
+
import { u as Qe } from "./revolugo.use-breakpoint-service.DCvVngRD.min.js";
|
17
|
+
import { V as Je } from "./revolugo.vselect.DoahtCZB.min.js";
|
18
|
+
import { V as Xe } from "./revolugo.vlist.DXlrNpl6.min.js";
|
19
|
+
import { _ as to } from "./revolugo.cancellationpolicieslist.CHrqbou4.min.js";
|
20
|
+
import { V as Y } from "./revolugo.vdivider.vE5KQvv6.min.js";
|
21
|
+
import { k as eo, C as oo } from "./revolugo.case-transformers.JX35Ctwc.min.js";
|
22
22
|
/* empty css */
|
23
|
-
import { p as
|
24
|
-
import { d as
|
25
|
-
import { f as
|
26
|
-
import { V as
|
27
|
-
import { a as
|
23
|
+
import { p as ao } from "./revolugo.pathify.DDRySNIK.min.js";
|
24
|
+
import { d as so } from "./revolugo.defaultsdeep.BFuLbavJ.min.js";
|
25
|
+
import { f as no } from "./revolugo.forwardrefs.VVhh1qV3.min.js";
|
26
|
+
import { V as Et, m as io, a as At, b as lo } from "./revolugo.vwindowitem.-4FOKaJh.min.js";
|
27
|
+
import { a as Lt, m as ro } from "./revolugo.vslidegroup.CqlKNKTO.min.js";
|
28
28
|
function ie(t) {
|
29
29
|
try {
|
30
30
|
if (typeof document < "u") {
|
@@ -32,69 +32,69 @@ function ie(t) {
|
|
32
32
|
sheets: [],
|
33
33
|
components: []
|
34
34
|
};
|
35
|
-
const e = import.meta.url,
|
36
|
-
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(
|
35
|
+
const e = import.meta.url, n = e.slice(0, e.lastIndexOf("/") + 1) + t;
|
36
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(n);
|
37
37
|
for (const s of REVOLUGO_ELEMENTS_STYLES.components)
|
38
|
-
s(
|
38
|
+
s(n);
|
39
39
|
if (t.indexOf("fonts") >= 0) {
|
40
40
|
const s = document.createElement("link");
|
41
|
-
s.rel = "stylesheet", linK.href =
|
41
|
+
s.rel = "stylesheet", linK.href = n, document.head.appendChild(s);
|
42
42
|
}
|
43
43
|
}
|
44
44
|
} catch (e) {
|
45
45
|
console.error("[revolugo-elements] ", e);
|
46
46
|
}
|
47
47
|
}
|
48
|
-
function
|
48
|
+
function uo(t) {
|
49
49
|
return (t && t.split(",") || []).map(
|
50
50
|
(e) => Number.parseInt(e)
|
51
51
|
);
|
52
52
|
}
|
53
|
-
const
|
54
|
-
function
|
55
|
-
return t +
|
53
|
+
const co = 4;
|
54
|
+
function mo(t, e) {
|
55
|
+
return t + uo(e).reduce((n, s) => s >= co ? n + 1 : n, 0);
|
56
56
|
}
|
57
|
-
function
|
58
|
-
return e === void 0 ? Array.from({ length: t }, (
|
57
|
+
function fo(t, e) {
|
58
|
+
return e === void 0 ? Array.from({ length: t }, (n, s) => s) : Array.from({ length: e - t }, (n, s) => t + s);
|
59
59
|
}
|
60
|
-
function
|
61
|
-
const t =
|
62
|
-
() => e.value ===
|
60
|
+
function bo() {
|
61
|
+
const t = ft(), e = F(W.Idle), n = f(
|
62
|
+
() => e.value === W.BookingPoliciesFetched
|
63
63
|
), s = f(
|
64
|
-
() => e.value ===
|
64
|
+
() => e.value === W.Unavailable
|
65
65
|
), r = f(
|
66
|
-
() => e.value ===
|
66
|
+
() => e.value === W.FetchingBookingPolicies
|
67
67
|
);
|
68
68
|
async function p({
|
69
|
-
addBreakfast:
|
69
|
+
addBreakfast: c,
|
70
70
|
hotelId: l,
|
71
71
|
hotelRoomOfferId: b
|
72
72
|
}) {
|
73
|
-
e.value =
|
73
|
+
e.value = W.FetchingBookingPolicies;
|
74
74
|
try {
|
75
75
|
await t.createBookingPolicies({
|
76
|
-
addBreakfast:
|
76
|
+
addBreakfast: c,
|
77
77
|
hotelId: l,
|
78
78
|
hotelRoomOfferId: b
|
79
|
-
}), e.value =
|
80
|
-
e.value =
|
79
|
+
}), e.value = W.Unavailable, setTimeout(() => {
|
80
|
+
e.value = W.Idle;
|
81
81
|
}, 1.5 * 1e3);
|
82
82
|
} catch {
|
83
|
-
e.value =
|
83
|
+
e.value = W.Unavailable;
|
84
84
|
}
|
85
85
|
}
|
86
86
|
return {
|
87
87
|
bookingState: e,
|
88
88
|
createBookingPolicy: p,
|
89
|
-
isBookingPoliciesSuccessful:
|
89
|
+
isBookingPoliciesSuccessful: n,
|
90
90
|
isBookingPoliciesUnavailable: s,
|
91
91
|
isFetchingBookingPolicies: r
|
92
92
|
};
|
93
93
|
}
|
94
|
-
function
|
94
|
+
function po(t, e, n) {
|
95
95
|
if (!t)
|
96
96
|
return e;
|
97
|
-
const s =
|
97
|
+
const s = n || ((r) => r);
|
98
98
|
if (typeof t == "string")
|
99
99
|
try {
|
100
100
|
return s(JSON.parse(t));
|
@@ -103,29 +103,31 @@ function fo(t, e, i) {
|
|
103
103
|
}
|
104
104
|
return s(t);
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function ko({
|
107
107
|
cb: t,
|
108
108
|
fallbackValue: e,
|
109
|
-
prop:
|
109
|
+
prop: n
|
110
110
|
}) {
|
111
111
|
return f(() => {
|
112
|
-
const r =
|
113
|
-
return r &&
|
112
|
+
const r = po(le(n.value), e, t);
|
113
|
+
return r && so(structuredClone(r), e || {});
|
114
114
|
});
|
115
115
|
}
|
116
|
-
const
|
116
|
+
const vo = { class: "text-right" }, ho = {
|
117
117
|
key: 0,
|
118
118
|
class: "text-grey-darken-3"
|
119
|
-
},
|
119
|
+
}, go = { class: "text-h6 text-grey-darken-3 font-weight-black" }, yo = {
|
120
120
|
key: 1,
|
121
121
|
class: "my-0 text-caption text-grey-darken-3 d-block"
|
122
|
-
},
|
122
|
+
}, Ro = { class: "text-caption d-block" }, Yt = /* @__PURE__ */ G({
|
123
123
|
__name: "BPriceSummary",
|
124
124
|
props: {
|
125
125
|
adultCount: { default: 0 },
|
126
|
+
currency: { default: re.EUR },
|
126
127
|
hasBolderTextPrice: { type: Boolean, default: void 0 },
|
127
128
|
isTaxIncluded: { type: Boolean, default: void 0 },
|
128
129
|
isStartingPrice: { type: Boolean, default: void 0 },
|
130
|
+
locale: { default: Ut.fr_FR },
|
129
131
|
nightCount: { default: 1 },
|
130
132
|
price: {},
|
131
133
|
roomCount: { default: 1 },
|
@@ -133,39 +135,43 @@ const po = { class: "text-right" }, ko = {
|
|
133
135
|
taxIncludedPrice: { default: void 0 }
|
134
136
|
},
|
135
137
|
setup(t) {
|
136
|
-
const e = t, { t:
|
137
|
-
return (r, p) => (
|
138
|
-
r.isStartingPrice ? (
|
139
|
-
k("b",
|
140
|
-
o(
|
138
|
+
const e = t, { t: n } = K(), s = f(() => e.nightCount <= 0 || e.roomCount <= 0 ? e.price : e.price / e.roomCount / e.nightCount);
|
139
|
+
return (r, p) => (i(), m("div", vo, [
|
140
|
+
r.isStartingPrice ? (i(), m("small", ho, y(S(n)("BPriceSummary.from")) + " ", 1)) : C("", !0),
|
141
|
+
k("b", go, [
|
142
|
+
o(mt, {
|
141
143
|
amount: s.value,
|
142
|
-
"round-mode": r.roundMode
|
143
|
-
|
144
|
+
"round-mode": r.roundMode,
|
145
|
+
currency: e.currency,
|
146
|
+
locale: e.locale
|
147
|
+
}, null, 8, ["amount", "round-mode", "currency", "locale"])
|
144
148
|
]),
|
145
|
-
(r.roomCount > 1 || r.nightCount > 1 || r.taxIncludedPrice !== r.price) && r.isTaxIncluded ? (
|
149
|
+
(r.roomCount > 1 || r.nightCount > 1 || r.taxIncludedPrice !== r.price) && r.isTaxIncluded ? (i(), m("span", yo, [
|
146
150
|
k("b", null, [
|
147
|
-
o(
|
151
|
+
o(mt, {
|
148
152
|
amount: r.taxIncludedPrice,
|
149
|
-
"round-mode": r.roundMode
|
150
|
-
|
153
|
+
"round-mode": r.roundMode,
|
154
|
+
currency: e.currency,
|
155
|
+
locale: e.locale
|
156
|
+
}, null, 8, ["amount", "round-mode", "currency", "locale"])
|
151
157
|
]),
|
152
|
-
w(" " +
|
153
|
-
rooms:
|
158
|
+
w(" " + y(S(n)("BPriceSummary.total")) + " " + y(S(n)("BPriceSummary.summary", {
|
159
|
+
rooms: S(n)("BPriceSummary.rooms", { n: r.roomCount })
|
154
160
|
})), 1)
|
155
161
|
])) : C("", !0),
|
156
|
-
k("span",
|
157
|
-
r.taxIncludedPrice || r.price ? (
|
158
|
-
r.isTaxIncluded ? (
|
159
|
-
w(
|
160
|
-
], 64)) : (
|
161
|
-
w(
|
162
|
+
k("span", Ro, [
|
163
|
+
r.taxIncludedPrice || r.price ? (i(), m(R, { key: 0 }, [
|
164
|
+
r.isTaxIncluded ? (i(), m(R, { key: 0 }, [
|
165
|
+
w(y(S(n)("BPriceSummary.taxIncluded")), 1)
|
166
|
+
], 64)) : (i(), m(R, { key: 1 }, [
|
167
|
+
w(y(S(n)("BPriceSummary.taxNotIncluded")), 1)
|
162
168
|
], 64))
|
163
169
|
], 64)) : C("", !0)
|
164
170
|
])
|
165
171
|
]));
|
166
172
|
}
|
167
173
|
});
|
168
|
-
function
|
174
|
+
function $t(t) {
|
169
175
|
const e = t;
|
170
176
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
171
177
|
locale: "",
|
@@ -271,32 +277,32 @@ function Lt(t) {
|
|
271
277
|
}
|
272
278
|
});
|
273
279
|
}
|
274
|
-
typeof
|
275
|
-
const
|
276
|
-
function
|
280
|
+
typeof $t == "function" && $t(Yt);
|
281
|
+
const Ot = /* @__PURE__ */ ot(Yt, [["__scopeId", "data-v-e0d30623"]]);
|
282
|
+
function Oo(t, e) {
|
277
283
|
return e ? t.adultCount === e.adultCount && t.checkInDate === e.checkInDate && t.checkOutDate === e.checkOutDate && t.children === e.children && t.hotelId === e.hotelId && t.roomCount === e.roomCount && t.sourceMarket === e.sourceMarket : !1;
|
278
284
|
}
|
279
|
-
function
|
280
|
-
const e =
|
285
|
+
function Co(t) {
|
286
|
+
const e = bt(), n = Pe(
|
281
287
|
t.checkInDate,
|
282
288
|
t.checkOutDate
|
283
|
-
), s =
|
289
|
+
), s = F({
|
284
290
|
adultCount: t.adultCount,
|
285
|
-
checkInDate:
|
286
|
-
checkOutDate:
|
291
|
+
checkInDate: n[0],
|
292
|
+
checkOutDate: n[1],
|
287
293
|
children: t.children ?? null,
|
288
294
|
hotelId: t.hotelId,
|
289
295
|
roomCount: t.roomCount,
|
290
296
|
sourceMarket: t.sourceMarket
|
291
297
|
}), r = f(
|
292
298
|
() => e.hotelRoomOfferRequest(t.hotelId)
|
293
|
-
), p =
|
299
|
+
), p = ue(
|
294
300
|
async function() {
|
295
|
-
const b = s.value,
|
296
|
-
t.hotelRoomOfferRequestId && t.hotelRoomOfferRequestId !==
|
301
|
+
const b = s.value, d = r.value;
|
302
|
+
t.hotelRoomOfferRequestId && t.hotelRoomOfferRequestId !== d?.id ? (await e.retrieveHotelRoomOfferRequest({
|
297
303
|
hotelId: b.hotelId,
|
298
304
|
hotelRoomOfferRequestId: t.hotelRoomOfferRequestId
|
299
|
-
}), (!
|
305
|
+
}), (!d || d.hasError) && await e.createHotelRoomOfferRequest(b)) : (!d || !d.id || d.hasError || !Oo(b, d)) && await e.createHotelRoomOfferRequest(b);
|
300
306
|
},
|
301
307
|
300
|
302
308
|
);
|
@@ -381,7 +387,7 @@ function Ro(t) {
|
|
381
387
|
};
|
382
388
|
}
|
383
389
|
);
|
384
|
-
const
|
390
|
+
const c = () => {
|
385
391
|
e.resetHotelRoomOfferRequest(t.hotelId), p();
|
386
392
|
};
|
387
393
|
return L(
|
@@ -391,9 +397,9 @@ function Ro(t) {
|
|
391
397
|
},
|
392
398
|
{ deep: !0, immediate: !0 }
|
393
399
|
), L(
|
394
|
-
() =>
|
400
|
+
() => ce(),
|
395
401
|
() => {
|
396
|
-
|
402
|
+
c();
|
397
403
|
},
|
398
404
|
{ immediate: !0 }
|
399
405
|
), {
|
@@ -401,25 +407,25 @@ function Ro(t) {
|
|
401
407
|
hotelRoomOfferRequestInternal: s
|
402
408
|
};
|
403
409
|
}
|
404
|
-
const
|
410
|
+
const Bo = G({
|
405
411
|
components: {
|
406
|
-
BPriceSummarySkeleton:
|
412
|
+
BPriceSummarySkeleton: Bt
|
407
413
|
},
|
408
|
-
mixins: [
|
414
|
+
mixins: [jt],
|
409
415
|
name: "HotelRoomOfferLayout",
|
410
416
|
props: {
|
411
417
|
boilerplate: { type: Boolean }
|
412
418
|
},
|
413
419
|
setup() {
|
414
|
-
const { t } =
|
420
|
+
const { t } = K();
|
415
421
|
return {
|
416
422
|
t
|
417
423
|
};
|
418
424
|
}
|
419
|
-
}),
|
420
|
-
function
|
421
|
-
const
|
422
|
-
return
|
425
|
+
}), So = { class: "d-flex justify-end" };
|
426
|
+
function Io(t, e, n, s, r, p) {
|
427
|
+
const c = q("BPriceSummarySkeleton");
|
428
|
+
return i(), O(P, {
|
423
429
|
class: "px-2 py-3 pa-sm-4 px-md-3",
|
424
430
|
"no-gutters": ""
|
425
431
|
}, {
|
@@ -437,7 +443,7 @@ function Bo(t, e, i, s, r, p) {
|
|
437
443
|
o(h, { cols: "12" }, {
|
438
444
|
default: a(() => [
|
439
445
|
E(t.$slots, "room-details", {}, () => [
|
440
|
-
o(
|
446
|
+
o(J, {
|
441
447
|
boilerplate: t.boilerplate,
|
442
448
|
class: "mt-1",
|
443
449
|
height: "14px",
|
@@ -445,7 +451,7 @@ function Bo(t, e, i, s, r, p) {
|
|
445
451
|
type: "text",
|
446
452
|
width: "180px"
|
447
453
|
}, null, 8, ["boilerplate"]),
|
448
|
-
o(
|
454
|
+
o(J, {
|
449
455
|
boilerplate: t.boilerplate,
|
450
456
|
height: "12px",
|
451
457
|
tile: "",
|
@@ -490,14 +496,14 @@ function Bo(t, e, i, s, r, p) {
|
|
490
496
|
default: a(() => [
|
491
497
|
E(t.$slots, "package-type"),
|
492
498
|
E(t.$slots, "price-summary", {}, () => [
|
493
|
-
o(
|
499
|
+
o(c, {
|
494
500
|
boilerplate: t.boilerplate,
|
495
501
|
class: "mt-2"
|
496
502
|
}, null, 8, ["boilerplate"])
|
497
503
|
]),
|
498
|
-
k("div",
|
504
|
+
k("div", So, [
|
499
505
|
E(t.$slots, "action", {}, () => [
|
500
|
-
o(
|
506
|
+
o(J, {
|
501
507
|
class: "mt-2",
|
502
508
|
boilerplate: t.boilerplate,
|
503
509
|
height: "28px",
|
@@ -514,7 +520,7 @@ function Bo(t, e, i, s, r, p) {
|
|
514
520
|
_: 3
|
515
521
|
});
|
516
522
|
}
|
517
|
-
const
|
523
|
+
const wt = /* @__PURE__ */ ot(Bo, [["render", Io]]), wo = rt({
|
518
524
|
indeterminate: Boolean,
|
519
525
|
inset: Boolean,
|
520
526
|
flat: Boolean,
|
@@ -522,12 +528,12 @@ const It = /* @__PURE__ */ et(Oo, [["render", Bo]]), So = lt({
|
|
522
528
|
type: [Boolean, String],
|
523
529
|
default: !1
|
524
530
|
},
|
525
|
-
...
|
526
|
-
...
|
527
|
-
}, "VSwitch"),
|
531
|
+
...xe(),
|
532
|
+
...Ye()
|
533
|
+
}, "VSwitch"), Po = lt()({
|
528
534
|
name: "VSwitch",
|
529
535
|
inheritAttrs: !1,
|
530
|
-
props:
|
536
|
+
props: wo(),
|
531
537
|
emits: {
|
532
538
|
"update:focused": (t) => !0,
|
533
539
|
"update:modelValue": (t) => !0,
|
@@ -535,36 +541,36 @@ const It = /* @__PURE__ */ et(Oo, [["render", Bo]]), So = lt({
|
|
535
541
|
},
|
536
542
|
setup(t, e) {
|
537
543
|
let {
|
538
|
-
attrs:
|
544
|
+
attrs: n,
|
539
545
|
slots: s
|
540
546
|
} = e;
|
541
|
-
const r =
|
542
|
-
loaderClasses:
|
543
|
-
} =
|
547
|
+
const r = dt(t, "indeterminate"), p = dt(t, "modelValue"), {
|
548
|
+
loaderClasses: c
|
549
|
+
} = ze(t), {
|
544
550
|
isFocused: l,
|
545
551
|
focus: b,
|
546
|
-
blur:
|
547
|
-
} =
|
548
|
-
function
|
552
|
+
blur: d
|
553
|
+
} = We(t), I = F(), T = de && window.matchMedia("(forced-colors: active)").matches, v = f(() => typeof t.loading == "string" && t.loading !== "" ? t.loading : t.color), _ = me(), D = f(() => t.id || `switch-${_}`);
|
554
|
+
function Z() {
|
549
555
|
r.value && (r.value = !1);
|
550
556
|
}
|
551
557
|
function $(V) {
|
552
|
-
V.stopPropagation(), V.preventDefault(),
|
558
|
+
V.stopPropagation(), V.preventDefault(), I.value?.input?.click();
|
553
559
|
}
|
554
|
-
return
|
555
|
-
const [V,
|
556
|
-
return o(Tt,
|
560
|
+
return ut(() => {
|
561
|
+
const [V, U] = fe(n), M = Tt.filterProps(t), Q = Vt.filterProps(t);
|
562
|
+
return o(Tt, z({
|
557
563
|
class: ["v-switch", {
|
558
564
|
"v-switch--flat": t.flat
|
559
565
|
}, {
|
560
566
|
"v-switch--inset": t.inset
|
561
567
|
}, {
|
562
568
|
"v-switch--indeterminate": r.value
|
563
|
-
},
|
564
|
-
}, V,
|
569
|
+
}, c.value, t.class]
|
570
|
+
}, V, M, {
|
565
571
|
modelValue: p.value,
|
566
572
|
"onUpdate:modelValue": (B) => p.value = B,
|
567
|
-
id:
|
573
|
+
id: D.value,
|
568
574
|
focused: l.value,
|
569
575
|
style: t.style
|
570
576
|
}), {
|
@@ -572,87 +578,87 @@ const It = /* @__PURE__ */ et(Oo, [["render", Bo]]), So = lt({
|
|
572
578
|
default: (B) => {
|
573
579
|
let {
|
574
580
|
id: A,
|
575
|
-
messagesId:
|
576
|
-
isDisabled:
|
581
|
+
messagesId: j,
|
582
|
+
isDisabled: N,
|
577
583
|
isReadonly: it,
|
578
|
-
isValid:
|
584
|
+
isValid: at
|
579
585
|
} = B;
|
580
|
-
const
|
586
|
+
const X = {
|
581
587
|
model: p,
|
582
|
-
isValid:
|
588
|
+
isValid: at
|
583
589
|
};
|
584
|
-
return o(
|
585
|
-
ref:
|
586
|
-
},
|
590
|
+
return o(Vt, z({
|
591
|
+
ref: I
|
592
|
+
}, Q, {
|
587
593
|
modelValue: p.value,
|
588
|
-
"onUpdate:modelValue": [(
|
594
|
+
"onUpdate:modelValue": [(u) => p.value = u, Z],
|
589
595
|
id: A.value,
|
590
|
-
"aria-describedby":
|
596
|
+
"aria-describedby": j.value,
|
591
597
|
type: "checkbox",
|
592
598
|
"aria-checked": r.value ? "mixed" : void 0,
|
593
|
-
disabled:
|
599
|
+
disabled: N.value,
|
594
600
|
readonly: it.value,
|
595
601
|
onFocus: b,
|
596
|
-
onBlur:
|
597
|
-
},
|
602
|
+
onBlur: d
|
603
|
+
}, U), {
|
598
604
|
...s,
|
599
|
-
default: (
|
605
|
+
default: (u) => {
|
600
606
|
let {
|
601
|
-
backgroundColorClasses:
|
602
|
-
backgroundColorStyles:
|
603
|
-
} =
|
607
|
+
backgroundColorClasses: H,
|
608
|
+
backgroundColorStyles: g
|
609
|
+
} = u;
|
604
610
|
return o("div", {
|
605
|
-
class: ["v-switch__track",
|
606
|
-
style:
|
611
|
+
class: ["v-switch__track", T ? void 0 : H.value],
|
612
|
+
style: g.value,
|
607
613
|
onClick: $
|
608
614
|
}, [s["track-true"] && o("div", {
|
609
615
|
key: "prepend",
|
610
616
|
class: "v-switch__track-true"
|
611
|
-
}, [s["track-true"](
|
617
|
+
}, [s["track-true"](X)]), s["track-false"] && o("div", {
|
612
618
|
key: "append",
|
613
619
|
class: "v-switch__track-false"
|
614
|
-
}, [s["track-false"](
|
620
|
+
}, [s["track-false"](X)])]);
|
615
621
|
},
|
616
|
-
input: (
|
622
|
+
input: (u) => {
|
617
623
|
let {
|
618
|
-
inputNode:
|
619
|
-
icon:
|
620
|
-
backgroundColorClasses:
|
621
|
-
backgroundColorStyles:
|
622
|
-
} =
|
623
|
-
return o(
|
624
|
+
inputNode: H,
|
625
|
+
icon: g,
|
626
|
+
backgroundColorClasses: tt,
|
627
|
+
backgroundColorStyles: ne
|
628
|
+
} = u;
|
629
|
+
return o(R, null, [H, o("div", {
|
624
630
|
class: ["v-switch__thumb", {
|
625
|
-
"v-switch__thumb--filled":
|
626
|
-
}, t.inset ||
|
627
|
-
style: t.inset ? void 0 :
|
628
|
-
}, [s.thumb ? o(
|
631
|
+
"v-switch__thumb--filled": g || t.loading
|
632
|
+
}, t.inset || T ? void 0 : tt.value],
|
633
|
+
style: t.inset ? void 0 : ne.value
|
634
|
+
}, [s.thumb ? o(Me, {
|
629
635
|
defaults: {
|
630
636
|
VIcon: {
|
631
|
-
icon:
|
637
|
+
icon: g,
|
632
638
|
size: "x-small"
|
633
639
|
}
|
634
640
|
}
|
635
641
|
}, {
|
636
642
|
default: () => [s.thumb({
|
637
|
-
...
|
638
|
-
icon:
|
643
|
+
...X,
|
644
|
+
icon: g
|
639
645
|
})]
|
640
|
-
}) : o(
|
641
|
-
default: () => [t.loading ? o(
|
646
|
+
}) : o(Ne, null, {
|
647
|
+
default: () => [t.loading ? o(Ue, {
|
642
648
|
name: "v-switch",
|
643
649
|
active: !0,
|
644
|
-
color:
|
650
|
+
color: at.value === !1 ? void 0 : v.value
|
645
651
|
}, {
|
646
|
-
default: (
|
647
|
-
active:
|
648
|
-
color:
|
652
|
+
default: (pt) => s.loader ? s.loader(pt) : o(It, {
|
653
|
+
active: pt.isActive,
|
654
|
+
color: pt.color,
|
649
655
|
indeterminate: !0,
|
650
656
|
size: "16",
|
651
657
|
width: "2"
|
652
658
|
}, null)
|
653
|
-
}) :
|
654
|
-
key: String(
|
655
|
-
icon:
|
659
|
+
}) : g && o(st, {
|
660
|
+
key: String(g),
|
661
|
+
icon: g,
|
656
662
|
size: "x-small"
|
657
663
|
}, null)]
|
658
664
|
})])]);
|
@@ -662,9 +668,9 @@ const It = /* @__PURE__ */ et(Oo, [["render", Bo]]), So = lt({
|
|
662
668
|
});
|
663
669
|
}), {};
|
664
670
|
}
|
665
|
-
}),
|
671
|
+
}), _o = { class: "text-caption ml-n3" }, Ho = { class: "mr-2" }, To = ["innerHTML"], Kt = /* @__PURE__ */ G({
|
666
672
|
__name: "BBreakfastSwitch",
|
667
|
-
props: /* @__PURE__ */
|
673
|
+
props: /* @__PURE__ */ be({
|
668
674
|
isLoading: { type: Boolean },
|
669
675
|
price: {},
|
670
676
|
currency: {}
|
@@ -674,16 +680,16 @@ const It = /* @__PURE__ */ et(Oo, [["render", Bo]]), So = lt({
|
|
674
680
|
}),
|
675
681
|
emits: ["update:modelValue"],
|
676
682
|
setup(t) {
|
677
|
-
const { locale: e, t:
|
678
|
-
() =>
|
683
|
+
const { locale: e, t: n } = K(), s = pe(t, "modelValue"), r = f(
|
684
|
+
() => qe({
|
679
685
|
amount: t.price,
|
680
686
|
currency: t.currency,
|
681
687
|
locale: e.value
|
682
688
|
})
|
683
689
|
);
|
684
|
-
return (p,
|
690
|
+
return (p, c) => (i(), O(Po, {
|
685
691
|
modelValue: s.value,
|
686
|
-
"onUpdate:modelValue":
|
692
|
+
"onUpdate:modelValue": c[0] || (c[0] = (l) => s.value = l),
|
687
693
|
class: "ma-0 pa-0 breakfast-switch d-inline-block",
|
688
694
|
density: "compact",
|
689
695
|
size: "small",
|
@@ -691,32 +697,32 @@ const It = /* @__PURE__ */ et(Oo, [["render", Bo]]), So = lt({
|
|
691
697
|
loading: p.isLoading && "success"
|
692
698
|
}, {
|
693
699
|
label: a(() => [
|
694
|
-
k("div",
|
695
|
-
o(
|
700
|
+
k("div", _o, [
|
701
|
+
o(st, {
|
696
702
|
size: "12",
|
697
703
|
class: "ml-4 mr-2"
|
698
704
|
}, {
|
699
|
-
default: a(() =>
|
705
|
+
default: a(() => c[1] || (c[1] = [
|
700
706
|
w(" fas fa-coffee ")
|
701
707
|
])),
|
702
708
|
_: 1,
|
703
709
|
__: [1]
|
704
710
|
}),
|
705
|
-
|
706
|
-
k("span",
|
711
|
+
c[2] || (c[2] = w(" ")),
|
712
|
+
k("span", Ho, y(S(n)("BBreakfastSwitch.title")), 1),
|
707
713
|
k("span", {
|
708
|
-
innerHTML:
|
714
|
+
innerHTML: S(n)("BBreakfastSwitch.price", { n: r.value }).replace(
|
709
715
|
/\s/gu,
|
710
716
|
" "
|
711
717
|
)
|
712
|
-
}, null, 8,
|
718
|
+
}, null, 8, To)
|
713
719
|
])
|
714
720
|
]),
|
715
721
|
_: 1
|
716
722
|
}, 8, ["modelValue", "loading"]));
|
717
723
|
}
|
718
724
|
});
|
719
|
-
function
|
725
|
+
function Dt(t) {
|
720
726
|
const e = t;
|
721
727
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
722
728
|
locale: "",
|
@@ -766,8 +772,8 @@ function $t(t) {
|
|
766
772
|
}
|
767
773
|
});
|
768
774
|
}
|
769
|
-
typeof
|
770
|
-
const
|
775
|
+
typeof Dt == "function" && Dt(Kt);
|
776
|
+
const Zt = /* @__PURE__ */ ot(Kt, [["__scopeId", "data-v-1e4b5568"]]), Vo = {
|
771
777
|
breakfastCount: {
|
772
778
|
type: Number
|
773
779
|
},
|
@@ -805,174 +811,176 @@ const Yt = /* @__PURE__ */ et(xt, [["__scopeId", "data-v-1e4b5568"]]), To = {
|
|
805
811
|
tags: { type: Array },
|
806
812
|
taxIncludedPrice: { required: !0, type: Number },
|
807
813
|
type: { type: String }
|
808
|
-
},
|
814
|
+
}, Eo = { key: 0 }, Ao = {
|
809
815
|
class: "align-self-center d-flex flex-wrap",
|
810
816
|
style: { gap: "0.3em" }
|
811
|
-
},
|
817
|
+
}, Lo = {
|
812
818
|
class: "align-self-center d-inline-flex flex-wrap",
|
813
819
|
style: { gap: "0.3em" }
|
814
|
-
},
|
820
|
+
}, $o = { class: "text-caption" }, Do = { key: 0 }, qo = { key: 1 }, Qt = /* @__PURE__ */ G({
|
815
821
|
__name: "HotelRoomOfferItem",
|
816
|
-
props:
|
822
|
+
props: Vo,
|
817
823
|
emits: ["breakfast-change", "update:modelValue", "booking-policy-failed"],
|
818
824
|
setup(t, { emit: e }) {
|
819
|
-
const
|
820
|
-
|
825
|
+
const n = t, { t: s } = K(), { eventBus: r } = he(), p = e, c = F(
|
826
|
+
n.breakfastCount && n.breakfastCount > 0 || !1
|
821
827
|
);
|
822
|
-
L(
|
828
|
+
L(c, (u) => {
|
823
829
|
p("breakfast-change", {
|
824
|
-
addBreakfast:
|
825
|
-
hotelId:
|
826
|
-
id:
|
830
|
+
addBreakfast: u,
|
831
|
+
hotelId: n.hotelId,
|
832
|
+
id: n.id
|
827
833
|
});
|
828
834
|
});
|
829
|
-
const l =
|
830
|
-
() => l.hotelRoomOfferRequest(
|
831
|
-
),
|
832
|
-
() =>
|
835
|
+
const l = bt(), b = ft(), d = f(
|
836
|
+
() => l.hotelRoomOfferRequest(n.hotelId)
|
837
|
+
), I = f(() => d.value?.adultCount), T = f(() => d.value?.checkInDate), v = f(
|
838
|
+
() => n.count ? fo(n.count + 1) : []
|
833
839
|
), _ = f(
|
834
|
-
() => b.hotelTimezone(
|
835
|
-
),
|
836
|
-
() => l.nightCount(
|
837
|
-
),
|
838
|
-
switch (
|
839
|
-
case
|
840
|
+
() => b.hotelTimezone(n.hotelId)
|
841
|
+
), D = f(
|
842
|
+
() => l.nightCount(n.hotelId)
|
843
|
+
), Z = f(() => {
|
844
|
+
switch (n.packageType) {
|
845
|
+
case ct.Cheapest:
|
840
846
|
return "red";
|
841
|
-
case
|
842
|
-
case
|
847
|
+
case ct.BestMatch:
|
848
|
+
case ct.MatchingRoomCount:
|
843
849
|
return "purple";
|
844
|
-
case
|
850
|
+
case ct.Regular:
|
845
851
|
case void 0:
|
846
852
|
default:
|
847
853
|
return "";
|
848
854
|
}
|
849
855
|
}), $ = f(
|
850
|
-
() =>
|
856
|
+
() => n.hotelRooms.reduce((u, H) => u + (H.count || 0), 0)
|
851
857
|
), V = f({
|
852
858
|
get() {
|
853
|
-
return
|
859
|
+
return n.modelValue;
|
854
860
|
},
|
855
|
-
set(
|
856
|
-
p("update:modelValue",
|
861
|
+
set(u) {
|
862
|
+
p("update:modelValue", u);
|
857
863
|
}
|
858
|
-
}),
|
859
|
-
() =>
|
860
|
-
),
|
861
|
-
() =>
|
864
|
+
}), U = f(
|
865
|
+
() => n.tags?.filter((u) => u.name.length > 30) || []
|
866
|
+
), M = f(
|
867
|
+
() => n.tags?.filter((u) => u.name.length < 30) || []
|
862
868
|
), {
|
863
|
-
bookingState:
|
869
|
+
bookingState: Q,
|
864
870
|
createBookingPolicy: B,
|
865
871
|
isBookingPoliciesSuccessful: A,
|
866
|
-
isBookingPoliciesUnavailable:
|
867
|
-
isFetchingBookingPolicies:
|
868
|
-
} =
|
869
|
-
L(
|
870
|
-
|
872
|
+
isBookingPoliciesUnavailable: j,
|
873
|
+
isFetchingBookingPolicies: N
|
874
|
+
} = bo();
|
875
|
+
L(Q, (u) => {
|
876
|
+
u === W.Unavailable && p("booking-policy-failed", n.id);
|
871
877
|
});
|
872
878
|
async function it() {
|
873
|
-
const
|
874
|
-
...
|
875
|
-
currency:
|
879
|
+
const u = {
|
880
|
+
...n,
|
881
|
+
currency: n.currency
|
876
882
|
};
|
877
|
-
r.$emit(
|
878
|
-
addBreakfast:
|
879
|
-
hotelId:
|
880
|
-
hotelRoomOfferId:
|
883
|
+
r.$emit(ge.HotelRoomOffersBtnClick, u), await B({
|
884
|
+
addBreakfast: c.value,
|
885
|
+
hotelId: n.hotelId,
|
886
|
+
hotelRoomOfferId: n.id
|
881
887
|
});
|
882
888
|
}
|
883
|
-
const
|
884
|
-
|
889
|
+
const at = F(null);
|
890
|
+
Qe(at);
|
891
|
+
const X = window.RevolugoElements.config.lang || Ut.fr_FR;
|
892
|
+
return (u, H) => (i(), m("div", {
|
885
893
|
class: "position-relative",
|
886
894
|
ref_key: "root",
|
887
|
-
ref:
|
895
|
+
ref: at
|
888
896
|
}, [
|
889
|
-
o(
|
897
|
+
o(wt, { key: "is-available" }, {
|
890
898
|
"room-details": a(() => [
|
891
|
-
o(
|
892
|
-
"hotel-rooms":
|
899
|
+
o(xt, {
|
900
|
+
"hotel-rooms": u.hotelRooms
|
893
901
|
}, null, 8, ["hotel-rooms"])
|
894
902
|
]),
|
895
903
|
"package-type": a(() => [
|
896
|
-
|
904
|
+
u.type === "PACKAGE" && u.packageType !== "REGULAR" ? (i(), O(vt, {
|
897
905
|
key: 0,
|
898
906
|
class: "mb-3",
|
899
|
-
color:
|
907
|
+
color: Z.value,
|
900
908
|
variant: "outlined"
|
901
909
|
}, {
|
902
910
|
description: a(() => [
|
903
|
-
w(
|
904
|
-
`HotelRoomOfferItem.packageTypes.${
|
905
|
-
{ n:
|
911
|
+
w(y(S(s)(
|
912
|
+
`HotelRoomOfferItem.packageTypes.${u.packageType}.description`,
|
913
|
+
{ n: I.value }
|
906
914
|
)), 1)
|
907
915
|
]),
|
908
916
|
default: a(() => [
|
909
|
-
w(
|
910
|
-
n:
|
917
|
+
w(y(S(s)(`HotelRoomOfferItem.packageTypes.${u.packageType}.title`, {
|
918
|
+
n: I.value
|
911
919
|
})) + " ", 1)
|
912
920
|
]),
|
913
921
|
_: 1
|
914
922
|
}, 8, ["color"])) : C("", !0)
|
915
923
|
]),
|
916
924
|
"cancellation-policies": a(() => [
|
917
|
-
o(
|
925
|
+
o(He, {
|
918
926
|
class: "mt-2",
|
919
|
-
"cancellation-policies":
|
920
|
-
"check-in-date":
|
927
|
+
"cancellation-policies": u.cancellationPolicies,
|
928
|
+
"check-in-date": T.value,
|
921
929
|
timezone: _.value
|
922
930
|
}, null, 8, ["cancellation-policies", "check-in-date", "timezone"])
|
923
931
|
]),
|
924
932
|
"breakfast-option-badge": a(() => [
|
925
|
-
o(
|
926
|
-
"breakfast-option":
|
927
|
-
breakfastCount:
|
933
|
+
o(Wt, {
|
934
|
+
"breakfast-option": u.breakfastCount && u.breakfastCount > 0 ? "INCLUDED" : u.breakfastOption,
|
935
|
+
breakfastCount: u.breakfastCount ?? void 0
|
928
936
|
}, null, 8, ["breakfast-option", "breakfastCount"])
|
929
937
|
]),
|
930
938
|
"breakfast-option-switch": a(() => [
|
931
|
-
|
932
|
-
o(
|
933
|
-
modelValue:
|
934
|
-
"onUpdate:modelValue":
|
939
|
+
u.type !== "HOTEL_ROOM" && u.breakfastOption === "OPTIONAL" ? (i(), m("div", Eo, [
|
940
|
+
o(Zt, {
|
941
|
+
modelValue: c.value,
|
942
|
+
"onUpdate:modelValue": H[0] || (H[0] = (g) => c.value = g),
|
935
943
|
class: "mt-3 pl-1",
|
936
|
-
currency:
|
937
|
-
"is-loading":
|
938
|
-
price:
|
944
|
+
currency: u.currency,
|
945
|
+
"is-loading": u.isLoading,
|
946
|
+
price: u.breakfastUnitPrice ?? 0
|
939
947
|
}, null, 8, ["modelValue", "currency", "is-loading", "price"])
|
940
948
|
])) : C("", !0)
|
941
949
|
]),
|
942
950
|
"big-tags": a(() => [
|
943
|
-
k("div",
|
944
|
-
(
|
945
|
-
key:
|
946
|
-
color:
|
947
|
-
"pre-icon": `fa-${
|
948
|
-
"text-color":
|
949
|
-
"tooltip-content":
|
951
|
+
k("div", Ao, [
|
952
|
+
(i(!0), m(R, null, x(U.value, (g, tt) => (i(), O(vt, {
|
953
|
+
key: tt,
|
954
|
+
color: g.bg,
|
955
|
+
"pre-icon": `fa-${g.faIcon}`,
|
956
|
+
"text-color": g.color,
|
957
|
+
"tooltip-content": g.description
|
950
958
|
}, {
|
951
959
|
default: a(() => [
|
952
|
-
w(g
|
960
|
+
w(y(g.name), 1)
|
953
961
|
]),
|
954
962
|
_: 2
|
955
963
|
}, 1032, ["color", "pre-icon", "text-color", "tooltip-content"]))), 128))
|
956
964
|
])
|
957
965
|
]),
|
958
966
|
tags: a(() => [
|
959
|
-
k("div",
|
960
|
-
(
|
961
|
-
key:
|
962
|
-
color:
|
963
|
-
"pre-icon": `fa-${
|
964
|
-
"text-color":
|
965
|
-
"tooltip-content":
|
967
|
+
k("div", Lo, [
|
968
|
+
(i(!0), m(R, null, x(M.value, (g, tt) => (i(), O(vt, {
|
969
|
+
key: tt,
|
970
|
+
color: g.bg,
|
971
|
+
"pre-icon": `fa-${g.faIcon}`,
|
972
|
+
"text-color": g.color,
|
973
|
+
"tooltip-content": g.description
|
966
974
|
}, {
|
967
975
|
default: a(() => [
|
968
|
-
w(g
|
976
|
+
w(y(g.name), 1)
|
969
977
|
]),
|
970
978
|
_: 2
|
971
979
|
}, 1032, ["color", "pre-icon", "text-color", "tooltip-content"]))), 128))
|
972
980
|
])
|
973
981
|
]),
|
974
982
|
"price-summary": a(() => [
|
975
|
-
|
983
|
+
u.type === "HOTEL_ROOM" ? (i(), m(R, { key: 0 }, [
|
976
984
|
o(P, {
|
977
985
|
class: "mt-md-8",
|
978
986
|
"no-gutters": ""
|
@@ -980,12 +988,12 @@ const Yt = /* @__PURE__ */ et(xt, [["__scopeId", "data-v-1e4b5568"]]), To = {
|
|
980
988
|
default: a(() => [
|
981
989
|
o(h, null, {
|
982
990
|
default: a(() => [
|
983
|
-
o(
|
991
|
+
o(Ot, {
|
984
992
|
"adult-count": 1,
|
985
993
|
class: "text-right",
|
986
994
|
"is-tax-included": !1,
|
987
995
|
"night-count": 0,
|
988
|
-
price:
|
996
|
+
price: u.price,
|
989
997
|
"room-count": 0
|
990
998
|
}, null, 8, ["price"])
|
991
999
|
]),
|
@@ -1005,9 +1013,9 @@ const Yt = /* @__PURE__ */ et(xt, [["__scopeId", "data-v-1e4b5568"]]), To = {
|
|
1005
1013
|
}, {
|
1006
1014
|
default: a(() => [
|
1007
1015
|
k("div", null, [
|
1008
|
-
o(
|
1016
|
+
o(Je, {
|
1009
1017
|
modelValue: V.value,
|
1010
|
-
"onUpdate:modelValue":
|
1018
|
+
"onUpdate:modelValue": H[1] || (H[1] = (g) => V.value = g),
|
1011
1019
|
class: "item-count mt-2",
|
1012
1020
|
density: "compact",
|
1013
1021
|
"hide-details": "",
|
@@ -1017,17 +1025,19 @@ const Yt = /* @__PURE__ */ et(xt, [["__scopeId", "data-v-1e4b5568"]]), To = {
|
|
1017
1025
|
},
|
1018
1026
|
variant: "outlined"
|
1019
1027
|
}, {
|
1020
|
-
item: a(({ item:
|
1021
|
-
o(
|
1028
|
+
item: a(({ item: g, props: tt }) => [
|
1029
|
+
o(Xe, ke(ve(tt)), {
|
1022
1030
|
title: a(() => [
|
1023
|
-
k("span",
|
1024
|
-
w(g
|
1025
|
-
|
1026
|
-
|
1027
|
-
o(
|
1028
|
-
amount:
|
1029
|
-
|
1030
|
-
|
1031
|
+
k("span", $o, [
|
1032
|
+
w(y(g.raw) + " ", 1),
|
1033
|
+
g.raw ? (i(), m(R, { key: 0 }, [
|
1034
|
+
H[2] || (H[2] = w(" (")),
|
1035
|
+
o(mt, {
|
1036
|
+
amount: g.raw * u.price,
|
1037
|
+
currency: n.currency,
|
1038
|
+
locale: S(X)
|
1039
|
+
}, null, 8, ["amount", "currency", "locale"]),
|
1040
|
+
H[3] || (H[3] = w(") "))
|
1031
1041
|
], 64)) : C("", !0)
|
1032
1042
|
])
|
1033
1043
|
]),
|
@@ -1043,47 +1053,47 @@ const Yt = /* @__PURE__ */ et(xt, [["__scopeId", "data-v-1e4b5568"]]), To = {
|
|
1043
1053
|
]),
|
1044
1054
|
_: 1
|
1045
1055
|
})
|
1046
|
-
], 64)) : (
|
1056
|
+
], 64)) : (i(), O(Ot, {
|
1047
1057
|
key: 1,
|
1048
|
-
"adult-count":
|
1058
|
+
"adult-count": I.value,
|
1049
1059
|
class: "text-right",
|
1050
1060
|
"is-tax-included": "",
|
1051
|
-
"night-count":
|
1052
|
-
price:
|
1061
|
+
"night-count": D.value ?? 0,
|
1062
|
+
price: u.price,
|
1053
1063
|
"room-count": $.value,
|
1054
1064
|
"round-mode": "ceil",
|
1055
|
-
"tax-included-price":
|
1065
|
+
"tax-included-price": u.taxIncludedPrice
|
1056
1066
|
}, null, 8, ["adult-count", "night-count", "price", "room-count", "tax-included-price"]))
|
1057
1067
|
]),
|
1058
1068
|
action: a(() => [
|
1059
|
-
|
1069
|
+
u.type === "PACKAGE" ? (i(), O(nt, {
|
1060
1070
|
key: 0,
|
1061
1071
|
class: "text-none font-weight-bold book-btn w-100 w-sm-auto",
|
1062
|
-
color:
|
1063
|
-
disabled:
|
1072
|
+
color: S(A) ? "success" : "primary",
|
1073
|
+
disabled: S(N) || S(j) || u.isLoading,
|
1064
1074
|
elevation: "0",
|
1065
|
-
loading:
|
1075
|
+
loading: S(N),
|
1066
1076
|
size: "small",
|
1067
1077
|
onClick: it
|
1068
1078
|
}, {
|
1069
1079
|
default: a(() => [
|
1070
|
-
|
1071
|
-
|
1072
|
-
default: a(() =>
|
1080
|
+
S(A) ? C("", !0) : (i(), m("span", Do, y(S(s)("HotelRoomOfferItem.book")), 1)),
|
1081
|
+
ht(o(st, { class: "position-absolute" }, {
|
1082
|
+
default: a(() => H[4] || (H[4] = [
|
1073
1083
|
w(" fas fa-check ")
|
1074
1084
|
])),
|
1075
1085
|
_: 1,
|
1076
1086
|
__: [4]
|
1077
1087
|
}, 512), [
|
1078
|
-
[
|
1088
|
+
[gt, S(A)]
|
1079
1089
|
])
|
1080
1090
|
]),
|
1081
1091
|
_: 1
|
1082
|
-
}, 8, ["color", "disabled", "loading"])) : (
|
1092
|
+
}, 8, ["color", "disabled", "loading"])) : (i(), m("span", qo))
|
1083
1093
|
]),
|
1084
1094
|
_: 1
|
1085
1095
|
}),
|
1086
|
-
|
1096
|
+
u.isLoading ? (i(), O(Gt, {
|
1087
1097
|
key: 0,
|
1088
1098
|
absolute: "",
|
1089
1099
|
class: "mx-n4",
|
@@ -1091,7 +1101,7 @@ const Yt = /* @__PURE__ */ et(xt, [["__scopeId", "data-v-1e4b5568"]]), To = {
|
|
1091
1101
|
opacity: "0.75"
|
1092
1102
|
}, {
|
1093
1103
|
default: a(() => [
|
1094
|
-
o(
|
1104
|
+
o(It, {
|
1095
1105
|
color: "primary",
|
1096
1106
|
indeterminate: "",
|
1097
1107
|
size: "64"
|
@@ -1099,22 +1109,22 @@ const Yt = /* @__PURE__ */ et(xt, [["__scopeId", "data-v-1e4b5568"]]), To = {
|
|
1099
1109
|
]),
|
1100
1110
|
_: 1
|
1101
1111
|
})) : C("", !0),
|
1102
|
-
|
1112
|
+
S(j) || u.gone ? (i(), O(St, {
|
1103
1113
|
key: 1,
|
1104
1114
|
"margin-top": 16
|
1105
1115
|
}, {
|
1106
1116
|
title: a(() => [
|
1107
|
-
w(
|
1117
|
+
w(y(S(s)("HotelRoomOfferItem.unavailable.title")), 1)
|
1108
1118
|
]),
|
1109
1119
|
description: a(() => [
|
1110
|
-
w(
|
1120
|
+
w(y(S(s)("HotelRoomOfferItem.unavailable.description")), 1)
|
1111
1121
|
]),
|
1112
1122
|
_: 1
|
1113
1123
|
})) : C("", !0)
|
1114
1124
|
], 512));
|
1115
1125
|
}
|
1116
1126
|
});
|
1117
|
-
function
|
1127
|
+
function qt(t) {
|
1118
1128
|
const e = t;
|
1119
1129
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
1120
1130
|
locale: "",
|
@@ -1283,11 +1293,11 @@ function Dt(t) {
|
|
1283
1293
|
}
|
1284
1294
|
});
|
1285
1295
|
}
|
1286
|
-
typeof
|
1287
|
-
const
|
1296
|
+
typeof qt == "function" && qt(Qt);
|
1297
|
+
const Jt = /* @__PURE__ */ ot(Qt, [["__scopeId", "data-v-b0039666"]]), zo = { class: "text-subtitle-1 font-weight-black text-primary d-flex justify-end" }, Mo = { class: "text-caption d-flex justify-end py-2" }, No = { class: "mt-3 d-flex justify-start align-center" }, Uo = { class: "pt-4" }, jo = /* @__PURE__ */ G({
|
1288
1298
|
__name: "BBasketSummaryLayout",
|
1289
1299
|
setup(t) {
|
1290
|
-
return (e,
|
1300
|
+
return (e, n) => (i(), O(P, { class: "px-2" }, {
|
1291
1301
|
default: a(() => [
|
1292
1302
|
o(h, null, {
|
1293
1303
|
default: a(() => [
|
@@ -1295,9 +1305,9 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1295
1305
|
default: a(() => [
|
1296
1306
|
o(h, null, {
|
1297
1307
|
default: a(() => [
|
1298
|
-
k("div",
|
1308
|
+
k("div", zo, [
|
1299
1309
|
E(e.$slots, "title", {}, () => [
|
1300
|
-
o(
|
1310
|
+
o(J, {
|
1301
1311
|
height: "18px",
|
1302
1312
|
tile: "",
|
1303
1313
|
type: "heading",
|
@@ -1315,18 +1325,18 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1315
1325
|
default: a(() => [
|
1316
1326
|
o(h, null, {
|
1317
1327
|
default: a(() => [
|
1318
|
-
k("div",
|
1328
|
+
k("div", Mo, [
|
1319
1329
|
E(e.$slots, "adult-count", {}, () => [
|
1320
|
-
o(
|
1330
|
+
o(J, {
|
1321
1331
|
tile: "",
|
1322
1332
|
type: "text",
|
1323
1333
|
width: "150px"
|
1324
1334
|
})
|
1325
1335
|
])
|
1326
1336
|
]),
|
1327
|
-
k("div",
|
1337
|
+
k("div", No, [
|
1328
1338
|
E(e.$slots, "secondary-title", {}, () => [
|
1329
|
-
o(
|
1339
|
+
o(J, {
|
1330
1340
|
height: "18px",
|
1331
1341
|
tile: "",
|
1332
1342
|
type: "heading",
|
@@ -1341,8 +1351,8 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1341
1351
|
_: 3
|
1342
1352
|
}),
|
1343
1353
|
E(e.$slots, "hotel-rooms", {}, () => [
|
1344
|
-
k("div",
|
1345
|
-
(
|
1354
|
+
k("div", Uo, [
|
1355
|
+
(i(), m(R, null, x(2, (s) => (i(), m(R, {
|
1346
1356
|
key: `item-skeleton-${s}`
|
1347
1357
|
}, [
|
1348
1358
|
k("div", null, [
|
@@ -1350,7 +1360,7 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1350
1360
|
default: a(() => [
|
1351
1361
|
o(h, { cols: "auto" }, {
|
1352
1362
|
default: a(() => [
|
1353
|
-
o(
|
1363
|
+
o(Te, { boilerplate: "" })
|
1354
1364
|
]),
|
1355
1365
|
_: 1
|
1356
1366
|
})
|
@@ -1358,7 +1368,7 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1358
1368
|
_: 1
|
1359
1369
|
})
|
1360
1370
|
]),
|
1361
|
-
o(
|
1371
|
+
o(Y)
|
1362
1372
|
], 64))), 64))
|
1363
1373
|
])
|
1364
1374
|
]),
|
@@ -1377,7 +1387,7 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1377
1387
|
default: a(() => [
|
1378
1388
|
o(h, null, {
|
1379
1389
|
default: a(() => [
|
1380
|
-
o(
|
1390
|
+
o(Y)
|
1381
1391
|
]),
|
1382
1392
|
_: 1
|
1383
1393
|
})
|
@@ -1389,7 +1399,7 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1389
1399
|
o(h, null, {
|
1390
1400
|
default: a(() => [
|
1391
1401
|
E(e.$slots, "price-summary", {}, () => [
|
1392
|
-
o(
|
1402
|
+
o(Bt)
|
1393
1403
|
])
|
1394
1404
|
]),
|
1395
1405
|
_: 3
|
@@ -1413,7 +1423,7 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1413
1423
|
o(h, { class: "pb-0" }, {
|
1414
1424
|
default: a(() => [
|
1415
1425
|
E(e.$slots, "button", {}, () => [
|
1416
|
-
o(
|
1426
|
+
o(J, {
|
1417
1427
|
height: "38px",
|
1418
1428
|
tile: "",
|
1419
1429
|
type: "heading",
|
@@ -1431,7 +1441,7 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1431
1441
|
o(h, null, {
|
1432
1442
|
default: a(() => [
|
1433
1443
|
E(e.$slots, "cancellation-policies", {}, () => [
|
1434
|
-
o(
|
1444
|
+
o(J, {
|
1435
1445
|
tile: "",
|
1436
1446
|
type: "paragraph",
|
1437
1447
|
width: "100%"
|
@@ -1450,15 +1460,15 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1450
1460
|
_: 3
|
1451
1461
|
}));
|
1452
1462
|
}
|
1453
|
-
}),
|
1463
|
+
}), Xt = G({
|
1454
1464
|
components: {
|
1455
|
-
BBasketSummaryLayout:
|
1456
|
-
BBreakfastOptionBadge:
|
1457
|
-
BBreakfastSwitch:
|
1458
|
-
BFormattedAmount:
|
1459
|
-
BHotelRoomsDetails:
|
1460
|
-
BPriceSummary:
|
1461
|
-
CancellationPoliciesList:
|
1465
|
+
BBasketSummaryLayout: jo,
|
1466
|
+
BBreakfastOptionBadge: Wt,
|
1467
|
+
BBreakfastSwitch: Zt,
|
1468
|
+
BFormattedAmount: mt,
|
1469
|
+
BHotelRoomsDetails: xt,
|
1470
|
+
BPriceSummary: Ot,
|
1471
|
+
CancellationPoliciesList: to
|
1462
1472
|
},
|
1463
1473
|
emits: ["breakfast-change", "delete-room", "submit"],
|
1464
1474
|
name: "BBasketSummary",
|
@@ -1475,56 +1485,56 @@ const Zt = /* @__PURE__ */ et(Kt, [["__scopeId", "data-v-58661fe0"]]), Do = { cl
|
|
1475
1485
|
isSuccessful: { type: Boolean }
|
1476
1486
|
},
|
1477
1487
|
setup(t, { emit: e }) {
|
1478
|
-
const
|
1488
|
+
const n = F(
|
1479
1489
|
t.hotelRoomOffer?.breakfastCount && t.hotelRoomOffer?.breakfastCount > 0 || !1
|
1480
1490
|
), s = f(
|
1481
1491
|
() => t.hotelRoomOffer?.breakfastOption
|
1482
1492
|
), r = f(
|
1483
|
-
() =>
|
1493
|
+
() => mo(t.adultCount, t.children)
|
1484
1494
|
), p = f(
|
1485
|
-
() => t.hotelRoomOffer.breakfastOption ===
|
1486
|
-
),
|
1487
|
-
() => t.hotelRoomOffer.breakfastOption ===
|
1495
|
+
() => t.hotelRoomOffer.breakfastOption === _t.Included
|
1496
|
+
), c = f(
|
1497
|
+
() => t.hotelRoomOffer.breakfastOption === _t.Optional
|
1488
1498
|
), l = f(
|
1489
1499
|
() => t.hotelRoomOffer.taxIncludedPrice - t.hotelRoomOffer.price > 0
|
1490
|
-
), b = f(() => !t.hotelRoomOffer || !t.checkOutDate || !t.checkInDate ? 0 :
|
1491
|
-
() =>
|
1492
|
-
),
|
1493
|
-
() =>
|
1494
|
-
|
1495
|
-
bookingDatetime:
|
1500
|
+
), b = f(() => !t.hotelRoomOffer || !t.checkOutDate || !t.checkInDate ? 0 : kt(t.checkOutDate).diff(kt(t.checkInDate), "day")), d = f(
|
1501
|
+
() => Ht(t.hotelRoomOffer?.hotelRooms, "count")
|
1502
|
+
), I = f(
|
1503
|
+
() => eo(
|
1504
|
+
ye({
|
1505
|
+
bookingDatetime: kt().format(),
|
1496
1506
|
cancellationPolicies: t.hotelRoomOffer?.cancellationPolicies,
|
1497
1507
|
checkInDate: t.checkInDate,
|
1498
1508
|
timezone: t.hotelTimezone
|
1499
1509
|
}),
|
1500
|
-
|
1510
|
+
oo.Camel
|
1501
1511
|
)
|
1502
|
-
),
|
1503
|
-
() =>
|
1512
|
+
), T = f(
|
1513
|
+
() => Ht(
|
1504
1514
|
t.hotelRoomOffer?.hotelRooms,
|
1505
1515
|
(_) => _.count * _.occupancy
|
1506
1516
|
)
|
1507
1517
|
);
|
1508
|
-
L(
|
1518
|
+
L(n, (_) => {
|
1509
1519
|
e("breakfast-change", _);
|
1510
1520
|
});
|
1511
|
-
const { t: v } =
|
1521
|
+
const { t: v } = K();
|
1512
1522
|
return {
|
1513
|
-
addBreakfast:
|
1523
|
+
addBreakfast: n,
|
1514
1524
|
breakfastOption: s,
|
1515
1525
|
guestCount: r,
|
1516
1526
|
isBreakfastIncluded: p,
|
1517
|
-
isBreakfastOptionnal:
|
1527
|
+
isBreakfastOptionnal: c,
|
1518
1528
|
isTaxIncluded: l,
|
1519
1529
|
nightCount: b,
|
1520
|
-
roomCount:
|
1521
|
-
sanitizedCancellationPolicies:
|
1530
|
+
roomCount: d,
|
1531
|
+
sanitizedCancellationPolicies: I,
|
1522
1532
|
t: v,
|
1523
|
-
totalOccupancy:
|
1533
|
+
totalOccupancy: T
|
1524
1534
|
};
|
1525
1535
|
}
|
1526
1536
|
});
|
1527
|
-
function
|
1537
|
+
function zt(t) {
|
1528
1538
|
const e = t;
|
1529
1539
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
1530
1540
|
locale: "",
|
@@ -1658,14 +1668,14 @@ function qt(t) {
|
|
1658
1668
|
}
|
1659
1669
|
});
|
1660
1670
|
}
|
1661
|
-
const
|
1671
|
+
const Fo = { key: 0 }, Go = ["innerHTML"], Wo = { class: "font-weight-bold pb-2" }, xo = { class: "mt-4 font-weight-bold" }, Yo = { class: "text-caption mb-0 text-left font-weight-bold" }, Ko = { class: "text-caption" }, Zo = {
|
1662
1672
|
key: 0,
|
1663
1673
|
class: "text-caption pl-2"
|
1664
|
-
},
|
1665
|
-
function
|
1666
|
-
const
|
1667
|
-
return
|
1668
|
-
t.isLoading ? (
|
1674
|
+
}, Qo = { class: "text-caption" }, Jo = { class: "text-caption font-weight-bold text-center my-0 text-red rounded" }, Xo = { key: 0 }, ta = { key: 1 };
|
1675
|
+
function ea(t, e, n, s, r, p) {
|
1676
|
+
const c = q("BBasketSummaryLayout"), l = q("BHotelRoomsDetails"), b = q("BBreakfastOptionBadge"), d = q("BBreakfastSwitch"), I = q("BFormattedAmount"), T = q("BPriceSummary"), v = q("CancellationPoliciesList");
|
1677
|
+
return i(), m("div", null, [
|
1678
|
+
t.isLoading ? (i(), O(Gt, {
|
1669
1679
|
key: 0,
|
1670
1680
|
absolute: "",
|
1671
1681
|
class: "mx-n3",
|
@@ -1673,7 +1683,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1673
1683
|
opacity: "0.75"
|
1674
1684
|
}, {
|
1675
1685
|
default: a(() => [
|
1676
|
-
o(
|
1686
|
+
o(It, {
|
1677
1687
|
color: "primary",
|
1678
1688
|
indeterminate: "",
|
1679
1689
|
size: "64"
|
@@ -1681,21 +1691,21 @@ function Xo(t, e, i, s, r, p) {
|
|
1681
1691
|
]),
|
1682
1692
|
_: 1
|
1683
1693
|
})) : C("", !0),
|
1684
|
-
t.hotelRoomOffer ? (
|
1694
|
+
t.hotelRoomOffer ? (i(), O(c, { key: "filled-up" }, {
|
1685
1695
|
title: a(() => [
|
1686
|
-
k("span", null,
|
1696
|
+
k("span", null, y(t.t("BBasketSummary.title")), 1)
|
1687
1697
|
]),
|
1688
1698
|
"adult-count": a(() => [
|
1689
1699
|
k("span", {
|
1690
1700
|
innerHTML: t.t("BBasketSummary.totalOccupancy", { n: t.totalOccupancy })
|
1691
|
-
}, null, 8,
|
1701
|
+
}, null, 8, Go)
|
1692
1702
|
]),
|
1693
1703
|
"secondary-title": a(() => [
|
1694
|
-
k("span",
|
1704
|
+
k("span", Wo, y(t.t("BBasketSummary.yourSelection")), 1)
|
1695
1705
|
]),
|
1696
1706
|
"hotel-rooms": a(() => [
|
1697
|
-
(
|
1698
|
-
key: `room-${
|
1707
|
+
(i(!0), m(R, null, x(t.hotelRoomOffer.hotelRooms, (_, D) => (i(), m("div", {
|
1708
|
+
key: `room-${D}`
|
1699
1709
|
}, [
|
1700
1710
|
o(P, null, {
|
1701
1711
|
default: a(() => [
|
@@ -1705,23 +1715,23 @@ function Xo(t, e, i, s, r, p) {
|
|
1705
1715
|
}, {
|
1706
1716
|
default: a(() => [
|
1707
1717
|
o(l, {
|
1708
|
-
class:
|
1709
|
-
"mt-n4":
|
1718
|
+
class: yt({
|
1719
|
+
"mt-n4": D >= 1
|
1710
1720
|
}),
|
1711
1721
|
"hotel-rooms": [_]
|
1712
1722
|
}, null, 8, ["class", "hotel-rooms"]),
|
1713
|
-
o(
|
1714
|
-
class:
|
1715
|
-
"mt-n4":
|
1723
|
+
o(nt, {
|
1724
|
+
class: yt({
|
1725
|
+
"mt-n4": D >= 1
|
1716
1726
|
}),
|
1717
1727
|
color: "red",
|
1718
1728
|
icon: "",
|
1719
1729
|
variant: "text",
|
1720
1730
|
size: "small",
|
1721
|
-
onClick: (
|
1731
|
+
onClick: (Z) => t.$emit("delete-room", _)
|
1722
1732
|
}, {
|
1723
1733
|
default: a(() => [
|
1724
|
-
o(
|
1734
|
+
o(st, null, {
|
1725
1735
|
default: a(() => e[7] || (e[7] = [
|
1726
1736
|
w("fas fa-times")
|
1727
1737
|
])),
|
@@ -1740,7 +1750,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1740
1750
|
]))), 128))
|
1741
1751
|
]),
|
1742
1752
|
"breakfast-option": a(() => [
|
1743
|
-
t.breakfastOption ? (
|
1753
|
+
t.breakfastOption ? (i(), m(R, { key: 0 }, [
|
1744
1754
|
o(P, { "no-gutters": "" }, {
|
1745
1755
|
default: a(() => [
|
1746
1756
|
o(h, null, {
|
@@ -1756,7 +1766,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1756
1766
|
]),
|
1757
1767
|
_: 1
|
1758
1768
|
}),
|
1759
|
-
t.isBreakfastOptionnal ? (
|
1769
|
+
t.isBreakfastOptionnal ? (i(), O(P, {
|
1760
1770
|
key: 0,
|
1761
1771
|
class: "mt-2",
|
1762
1772
|
"no-gutters": ""
|
@@ -1764,7 +1774,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1764
1774
|
default: a(() => [
|
1765
1775
|
o(h, { class: "mb-2 mt-xl-0" }, {
|
1766
1776
|
default: a(() => [
|
1767
|
-
o(
|
1777
|
+
o(d, {
|
1768
1778
|
modelValue: t.addBreakfast,
|
1769
1779
|
"onUpdate:modelValue": e[0] || (e[0] = (_) => t.addBreakfast = _),
|
1770
1780
|
currency: t.currency,
|
@@ -1780,7 +1790,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1780
1790
|
], 64)) : C("", !0)
|
1781
1791
|
]),
|
1782
1792
|
"price-summary": a(() => [
|
1783
|
-
k("p",
|
1793
|
+
k("p", xo, y(t.t("BBasketSummary.priceDetails")), 1),
|
1784
1794
|
o(P, {
|
1785
1795
|
"no-gutters": "",
|
1786
1796
|
class: "mt-1"
|
@@ -1788,10 +1798,10 @@ function Xo(t, e, i, s, r, p) {
|
|
1788
1798
|
default: a(() => [
|
1789
1799
|
o(h, null, {
|
1790
1800
|
default: a(() => [
|
1791
|
-
k("p",
|
1801
|
+
k("p", Yo, y(t.t("BBasketSummary.roomCount", {
|
1792
1802
|
n: t.roomCount,
|
1793
1803
|
value: t.roomCount
|
1794
|
-
})) + " x " +
|
1804
|
+
})) + " x " + y(t.t("BBasketSummary.nightCount", {
|
1795
1805
|
n: t.nightCount,
|
1796
1806
|
value: t.nightCount
|
1797
1807
|
})), 1)
|
@@ -1800,8 +1810,8 @@ function Xo(t, e, i, s, r, p) {
|
|
1800
1810
|
}),
|
1801
1811
|
o(h, { class: "text-right" }, {
|
1802
1812
|
default: a(() => [
|
1803
|
-
k("span",
|
1804
|
-
o(
|
1813
|
+
k("span", Ko, [
|
1814
|
+
o(I, {
|
1805
1815
|
amount: t.hotelRoomOffer.price
|
1806
1816
|
}, null, 8, ["amount"])
|
1807
1817
|
])
|
@@ -1818,7 +1828,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1818
1828
|
default: a(() => [
|
1819
1829
|
o(h, null, {
|
1820
1830
|
default: a(() => [
|
1821
|
-
t.hotelRoomOffer.breakfastCount ? (
|
1831
|
+
t.hotelRoomOffer.breakfastCount ? (i(), m("small", Zo, y(t.t("BBasketSummary.breakfastIncluded", {
|
1822
1832
|
n: t.hotelRoomOffer.breakfastCount,
|
1823
1833
|
value: t.hotelRoomOffer.breakfastCount
|
1824
1834
|
})), 1)) : C("", !0)
|
@@ -1828,7 +1838,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1828
1838
|
]),
|
1829
1839
|
_: 1
|
1830
1840
|
}),
|
1831
|
-
t.hotelRoomOffer.taxIncludedPrice - t.hotelRoomOffer.price > 0 ? (
|
1841
|
+
t.hotelRoomOffer.taxIncludedPrice - t.hotelRoomOffer.price > 0 ? (i(), O(P, {
|
1832
1842
|
key: 0,
|
1833
1843
|
"no-gutters": "",
|
1834
1844
|
class: "mt-2 color-black"
|
@@ -1843,8 +1853,8 @@ function Xo(t, e, i, s, r, p) {
|
|
1843
1853
|
}),
|
1844
1854
|
o(h, { class: "text-right" }, {
|
1845
1855
|
default: a(() => [
|
1846
|
-
k("span",
|
1847
|
-
o(
|
1856
|
+
k("span", Qo, [
|
1857
|
+
o(I, {
|
1848
1858
|
amount: t.hotelRoomOffer.taxIncludedPrice - t.hotelRoomOffer.price
|
1849
1859
|
}, null, 8, ["amount"])
|
1850
1860
|
])
|
@@ -1865,7 +1875,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1865
1875
|
}),
|
1866
1876
|
o(h, null, {
|
1867
1877
|
default: a(() => [
|
1868
|
-
o(
|
1878
|
+
o(T, {
|
1869
1879
|
"is-tax-included": t.isTaxIncluded,
|
1870
1880
|
"night-count": 0,
|
1871
1881
|
price: t.hotelRoomOffer.price,
|
@@ -1880,7 +1890,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1880
1890
|
})
|
1881
1891
|
]),
|
1882
1892
|
errors: a(() => [
|
1883
|
-
t.totalOccupancy && t.totalOccupancy < t.guestCount ? (
|
1893
|
+
t.totalOccupancy && t.totalOccupancy < t.guestCount ? (i(), O(Ke, {
|
1884
1894
|
key: 0,
|
1885
1895
|
class: "mb-0",
|
1886
1896
|
color: "red",
|
@@ -1888,7 +1898,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1888
1898
|
variant: "outlined"
|
1889
1899
|
}, {
|
1890
1900
|
default: a(() => [
|
1891
|
-
k("p",
|
1901
|
+
k("p", Jo, y(t.t("BBasketSummary.occupancyWarning", {
|
1892
1902
|
guestCount: t.guestCount
|
1893
1903
|
})), 1)
|
1894
1904
|
]),
|
@@ -1896,7 +1906,7 @@ function Xo(t, e, i, s, r, p) {
|
|
1896
1906
|
})) : C("", !0)
|
1897
1907
|
]),
|
1898
1908
|
button: a(() => [
|
1899
|
-
o(
|
1909
|
+
o(nt, {
|
1900
1910
|
block: "",
|
1901
1911
|
class: "text-none font-weight-bold",
|
1902
1912
|
color: t.isSuccessful ? "success" : "primary",
|
@@ -1905,36 +1915,36 @@ function Xo(t, e, i, s, r, p) {
|
|
1905
1915
|
onClick: e[1] || (e[1] = (_) => t.$emit("submit"))
|
1906
1916
|
}, {
|
1907
1917
|
default: a(() => [
|
1908
|
-
t.isSuccessful ? C("", !0) : (
|
1909
|
-
|
1918
|
+
t.isSuccessful ? C("", !0) : (i(), m("span", Xo, y(t.t("BBasketSummary.book")), 1)),
|
1919
|
+
ht(o(st, { class: "position-absolute" }, {
|
1910
1920
|
default: a(() => e[10] || (e[10] = [
|
1911
1921
|
w(" fas fa-check ")
|
1912
1922
|
])),
|
1913
1923
|
_: 1,
|
1914
1924
|
__: [10]
|
1915
1925
|
}, 512), [
|
1916
|
-
[
|
1926
|
+
[gt, t.isSuccessful]
|
1917
1927
|
])
|
1918
1928
|
]),
|
1919
1929
|
_: 1
|
1920
1930
|
}, 8, ["color", "disabled", "loading"])
|
1921
1931
|
]),
|
1922
1932
|
"cancellation-policies": a(() => [
|
1923
|
-
t.hotelRoomOffer && t.hotelRoomOffer.cancellationPolicies.length ? (
|
1933
|
+
t.hotelRoomOffer && t.hotelRoomOffer.cancellationPolicies.length ? (i(), O(v, {
|
1924
1934
|
key: 0,
|
1925
1935
|
"cancellation-policies": t.sanitizedCancellationPolicies,
|
1926
1936
|
"check-in-date": t.checkInDate,
|
1927
1937
|
class: "text-caption",
|
1928
1938
|
timezone: t.hotelTimezone
|
1929
|
-
}, null, 8, ["cancellation-policies", "check-in-date", "timezone"])) : (
|
1939
|
+
}, null, 8, ["cancellation-policies", "check-in-date", "timezone"])) : (i(), m("span", ta))
|
1930
1940
|
]),
|
1931
1941
|
_: 1
|
1932
|
-
})) : (
|
1942
|
+
})) : (i(), O(c, { key: "empty" }, {
|
1933
1943
|
title: a(() => [
|
1934
|
-
k("span", null,
|
1944
|
+
k("span", null, y(t.t("BBasketSummary.title")), 1)
|
1935
1945
|
]),
|
1936
1946
|
"adult-count": a(() => [
|
1937
|
-
w(
|
1947
|
+
w(y(t.t("BBasketSummary.noSelection")), 1)
|
1938
1948
|
]),
|
1939
1949
|
"secondary-title": a(() => e[2] || (e[2] = [
|
1940
1950
|
k("span", null, null, -1)
|
@@ -1946,21 +1956,21 @@ function Xo(t, e, i, s, r, p) {
|
|
1946
1956
|
k("span", null, null, -1)
|
1947
1957
|
])),
|
1948
1958
|
button: a(() => [
|
1949
|
-
o(
|
1959
|
+
o(nt, {
|
1950
1960
|
block: "",
|
1951
1961
|
class: "text-none font-weight-bold",
|
1952
1962
|
disabled: ""
|
1953
1963
|
}, {
|
1954
1964
|
default: a(() => [
|
1955
|
-
t.isSuccessful ? C("", !0) : (
|
1956
|
-
|
1965
|
+
t.isSuccessful ? C("", !0) : (i(), m("span", Fo, y(t.t("BBasketSummary.book")), 1)),
|
1966
|
+
ht(o(st, { class: "position-absolute" }, {
|
1957
1967
|
default: a(() => e[5] || (e[5] = [
|
1958
1968
|
w(" fas fa-check ")
|
1959
1969
|
])),
|
1960
1970
|
_: 1,
|
1961
1971
|
__: [5]
|
1962
1972
|
}, 512), [
|
1963
|
-
[
|
1973
|
+
[gt, t.isSuccessful]
|
1964
1974
|
])
|
1965
1975
|
]),
|
1966
1976
|
_: 1
|
@@ -1973,20 +1983,20 @@ function Xo(t, e, i, s, r, p) {
|
|
1973
1983
|
}))
|
1974
1984
|
]);
|
1975
1985
|
}
|
1976
|
-
typeof
|
1977
|
-
const
|
1986
|
+
typeof zt == "function" && zt(Xt);
|
1987
|
+
const oa = /* @__PURE__ */ ot(Xt, [["render", ea]]), aa = {
|
1978
1988
|
hotelId: {
|
1979
1989
|
required: !0,
|
1980
1990
|
type: String
|
1981
1991
|
}
|
1982
|
-
},
|
1992
|
+
}, sa = G({
|
1983
1993
|
components: {
|
1984
|
-
BBasketSummary:
|
1985
|
-
HotelRoomOfferItem:
|
1986
|
-
HotelRoomOfferItemLayout:
|
1994
|
+
BBasketSummary: oa,
|
1995
|
+
HotelRoomOfferItem: Jt,
|
1996
|
+
HotelRoomOfferItemLayout: wt
|
1987
1997
|
},
|
1988
1998
|
computed: {
|
1989
|
-
...
|
1999
|
+
...Oe(bt, ft),
|
1990
2000
|
adultCount() {
|
1991
2001
|
return this.hotelRoomOfferRequest?.adultCount;
|
1992
2002
|
},
|
@@ -2004,7 +2014,7 @@ const ta = /* @__PURE__ */ et(Qt, [["render", Xo]]), ea = {
|
|
2004
2014
|
"hotelRoomOffers/hotelRoomOffers",
|
2005
2015
|
this.hotelId
|
2006
2016
|
)?.offers?.filter(
|
2007
|
-
(t) => t.type ===
|
2017
|
+
(t) => t.type === Rt.HotelRoom
|
2008
2018
|
) || null;
|
2009
2019
|
},
|
2010
2020
|
hotelTimezone() {
|
@@ -2040,24 +2050,24 @@ const ta = /* @__PURE__ */ et(Qt, [["render", Xo]]), ea = {
|
|
2040
2050
|
this.isLoading = !1;
|
2041
2051
|
},
|
2042
2052
|
onBasketUpdate(t, e) {
|
2043
|
-
const
|
2053
|
+
const n = {
|
2044
2054
|
count: e,
|
2045
2055
|
hotelRoomId: t.hotelRooms[0].id,
|
2046
2056
|
hotelRoomOfferId: t.id
|
2047
2057
|
}, s = this.basketContent.findIndex(
|
2048
|
-
(r) => r.hotelRoomOfferId ===
|
2058
|
+
(r) => r.hotelRoomOfferId === n.hotelRoomOfferId
|
2049
2059
|
);
|
2050
2060
|
s === -1 ? e === 0 ? [
|
2051
2061
|
...this.basketContent.slice(0, s),
|
2052
2062
|
...this.basketContent.slice(s + 1)
|
2053
|
-
] : this.basketContent.splice(s, 1) : this.basketContent.push(
|
2063
|
+
] : this.basketContent.splice(s, 1) : this.basketContent.push(n);
|
2054
2064
|
},
|
2055
2065
|
onBreakfastChange(t) {
|
2056
2066
|
this.addBreakfast = t;
|
2057
2067
|
},
|
2058
2068
|
onDeleteRoom(t) {
|
2059
2069
|
const e = this.basketContent.findIndex(
|
2060
|
-
(
|
2070
|
+
(n) => n.hotelRoomId === t.id
|
2061
2071
|
);
|
2062
2072
|
this.basketContent[e].count = 0;
|
2063
2073
|
},
|
@@ -2069,11 +2079,11 @@ const ta = /* @__PURE__ */ et(Qt, [["render", Xo]]), ea = {
|
|
2069
2079
|
}), await this.createHotelRoomOfferPackage(), this.isLoading = !1);
|
2070
2080
|
}
|
2071
2081
|
},
|
2072
|
-
mixins: [
|
2082
|
+
mixins: [Re, ao()],
|
2073
2083
|
name: "HotelRoomOfferBasket",
|
2074
|
-
props:
|
2084
|
+
props: aa,
|
2075
2085
|
setup() {
|
2076
|
-
const { t } =
|
2086
|
+
const { t } = K();
|
2077
2087
|
return {
|
2078
2088
|
t
|
2079
2089
|
};
|
@@ -2086,7 +2096,7 @@ const ta = /* @__PURE__ */ et(Qt, [["render", Xo]]), ea = {
|
|
2086
2096
|
deep: !0,
|
2087
2097
|
handler(t) {
|
2088
2098
|
t.reduce(
|
2089
|
-
(
|
2099
|
+
(n, s) => n + s.count,
|
2090
2100
|
0
|
2091
2101
|
) === 0 ? this.newCreatedPackage = void 0 : this.createHotelRoomOfferPackage();
|
2092
2102
|
},
|
@@ -2104,26 +2114,26 @@ const ta = /* @__PURE__ */ et(Qt, [["render", Xo]]), ea = {
|
|
2104
2114
|
}
|
2105
2115
|
}
|
2106
2116
|
});
|
2107
|
-
function
|
2108
|
-
const
|
2109
|
-
return
|
2117
|
+
function na(t, e, n, s, r, p) {
|
2118
|
+
const c = q("HotelRoomOfferItem"), l = q("BBasketSummary");
|
2119
|
+
return i(), O(P, { "no-gutters": "" }, {
|
2110
2120
|
default: a(() => [
|
2111
2121
|
o(h, {
|
2112
2122
|
cols: "12",
|
2113
2123
|
md: "8"
|
2114
2124
|
}, {
|
2115
2125
|
default: a(() => [
|
2116
|
-
t.hotelRoomOffers.length && t.basketContent.length ? (
|
2117
|
-
|
2118
|
-
o(
|
2119
|
-
modelValue: t.basketContent[
|
2120
|
-
"onUpdate:modelValue": (
|
2126
|
+
t.hotelRoomOffers.length && t.basketContent.length ? (i(!0), m(R, { key: 0 }, x(t.hotelRoomOffers, (b, d) => (i(), m(R, null, [
|
2127
|
+
d > 0 ? (i(), O(Y, { key: 0 })) : C("", !0),
|
2128
|
+
o(c, z({
|
2129
|
+
modelValue: t.basketContent[d].count,
|
2130
|
+
"onUpdate:modelValue": (I) => t.basketContent[d].count = I
|
2121
2131
|
}, { ref_for: !0 }, b), null, 16, ["modelValue", "onUpdate:modelValue"])
|
2122
2132
|
], 64))), 256)) : C("", !0)
|
2123
2133
|
]),
|
2124
2134
|
_: 1
|
2125
2135
|
}),
|
2126
|
-
o(
|
2136
|
+
o(Y, {
|
2127
2137
|
class: "d-none d-md-block",
|
2128
2138
|
vertical: ""
|
2129
2139
|
}),
|
@@ -2133,8 +2143,8 @@ function aa(t, e, i, s, r, p) {
|
|
2133
2143
|
md: "4"
|
2134
2144
|
}, {
|
2135
2145
|
default: a(() => [
|
2136
|
-
o(
|
2137
|
-
o(l,
|
2146
|
+
o(Y, { class: "d-block d-md-none my-2" }),
|
2147
|
+
o(l, z(t.newCreatedPackage, {
|
2138
2148
|
"adult-count": t.adultCount,
|
2139
2149
|
"hotel-timezone": t.hotelTimezone,
|
2140
2150
|
"is-loading": t.isLoading,
|
@@ -2151,22 +2161,22 @@ function aa(t, e, i, s, r, p) {
|
|
2151
2161
|
_: 1
|
2152
2162
|
});
|
2153
2163
|
}
|
2154
|
-
const
|
2164
|
+
const ia = /* @__PURE__ */ ot(sa, [["render", na], ["__scopeId", "data-v-ee0e3c98"]]), la = G({
|
2155
2165
|
components: {
|
2156
|
-
BPriceSummarySkeleton:
|
2166
|
+
BPriceSummarySkeleton: Bt
|
2157
2167
|
},
|
2158
|
-
mixins: [
|
2168
|
+
mixins: [jt],
|
2159
2169
|
name: "HotelRoomOfferLayout",
|
2160
2170
|
props: {
|
2161
2171
|
boilerplate: { type: Boolean }
|
2162
2172
|
},
|
2163
2173
|
setup() {
|
2164
|
-
const { t } =
|
2174
|
+
const { t } = K();
|
2165
2175
|
return {
|
2166
2176
|
t
|
2167
2177
|
};
|
2168
2178
|
}
|
2169
|
-
}),
|
2179
|
+
}), te = /* @__PURE__ */ G({
|
2170
2180
|
__name: "HotelRoomOfferListEmpty",
|
2171
2181
|
props: {
|
2172
2182
|
boilerplateSkeleton: { type: Boolean },
|
@@ -2174,32 +2184,32 @@ const sa = /* @__PURE__ */ et(oa, [["render", aa], ["__scopeId", "data-v-ee0e3c9
|
|
2174
2184
|
type: {}
|
2175
2185
|
},
|
2176
2186
|
setup(t) {
|
2177
|
-
const { t: e } =
|
2178
|
-
return (
|
2179
|
-
(
|
2180
|
-
r > 1 ? (
|
2181
|
-
o(
|
2182
|
-
boilerplate:
|
2183
|
-
class:
|
2187
|
+
const { t: e } = K();
|
2188
|
+
return (n, s) => (i(), m("div", null, [
|
2189
|
+
(i(!0), m(R, null, x(n.itemCount, (r) => (i(), m(R, { key: r }, [
|
2190
|
+
r > 1 ? (i(), O(Y, { key: 0 })) : C("", !0),
|
2191
|
+
o(S(la), {
|
2192
|
+
boilerplate: n.boilerplateSkeleton,
|
2193
|
+
class: yt({ "mt-0": r === 1, "mb-0": r === 3 })
|
2184
2194
|
}, null, 8, ["boilerplate", "class"])
|
2185
2195
|
], 64))), 128)),
|
2186
|
-
|
2196
|
+
n.type ? (i(), O(St, {
|
2187
2197
|
key: 0,
|
2188
2198
|
"min-height": "300px",
|
2189
2199
|
"z-index": 50
|
2190
2200
|
}, {
|
2191
2201
|
title: a(() => [
|
2192
|
-
w(
|
2202
|
+
w(y(S(e)(`HotelRoomOfferListEmpty.${n.type}.title`)), 1)
|
2193
2203
|
]),
|
2194
2204
|
description: a(() => [
|
2195
|
-
w(
|
2205
|
+
w(y(S(e)(`HotelRoomOfferListEmpty.${n.type}.description`)), 1)
|
2196
2206
|
]),
|
2197
2207
|
_: 1
|
2198
2208
|
})) : C("", !0)
|
2199
2209
|
]));
|
2200
2210
|
}
|
2201
2211
|
});
|
2202
|
-
function
|
2212
|
+
function Mt(t) {
|
2203
2213
|
const e = t;
|
2204
2214
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
2205
2215
|
locale: "",
|
@@ -2319,69 +2329,69 @@ function zt(t) {
|
|
2319
2329
|
}
|
2320
2330
|
});
|
2321
2331
|
}
|
2322
|
-
typeof
|
2323
|
-
const
|
2332
|
+
typeof Mt == "function" && Mt(te);
|
2333
|
+
const ee = {
|
2324
2334
|
OnlyMatchingRoomCount: !1
|
2325
|
-
},
|
2326
|
-
...
|
2335
|
+
}, ra = {
|
2336
|
+
..._e,
|
2327
2337
|
features: {
|
2328
|
-
default: () =>
|
2338
|
+
default: () => ee,
|
2329
2339
|
type: [Object, String]
|
2330
2340
|
},
|
2331
2341
|
limit: {
|
2332
2342
|
default: () => 0,
|
2333
2343
|
type: Number
|
2334
2344
|
}
|
2335
|
-
},
|
2345
|
+
}, oe = G({
|
2336
2346
|
components: {
|
2337
|
-
BErrorOverlay:
|
2338
|
-
HotelRoomOfferBasket:
|
2339
|
-
HotelRoomOfferItem:
|
2340
|
-
HotelRoomOfferItemLayout:
|
2341
|
-
HotelRoomOfferListEmpty:
|
2347
|
+
BErrorOverlay: St,
|
2348
|
+
HotelRoomOfferBasket: ia,
|
2349
|
+
HotelRoomOfferItem: Jt,
|
2350
|
+
HotelRoomOfferItemLayout: wt,
|
2351
|
+
HotelRoomOfferListEmpty: te
|
2342
2352
|
},
|
2343
2353
|
name: "HotelRoomOfferList",
|
2344
|
-
props:
|
2354
|
+
props: ra,
|
2345
2355
|
// eslint-disable-next-line max-lines-per-function
|
2346
2356
|
setup(t) {
|
2347
|
-
const { t: e } =
|
2348
|
-
fallbackValue:
|
2357
|
+
const { t: e } = K(), n = ft(), s = bt(), r = F(null), p = F(["packageHotelRoomOffers", "hotelRoomHotelRoomOffers"]), c = ko({
|
2358
|
+
fallbackValue: ee,
|
2349
2359
|
prop: f(() => t.features)
|
2350
|
-
}), l = (B) => B.hotelRooms.reduce((A,
|
2351
|
-
() =>
|
2352
|
-
),
|
2353
|
-
() => !!(b.value?.hasError ||
|
2354
|
-
),
|
2355
|
-
() =>
|
2356
|
-
(B) => B.type ===
|
2360
|
+
}), l = (B) => B.hotelRooms.reduce((A, j) => A + j.count, 0), b = f(() => s.hotelRoomOfferRequest(t.hotelId)), d = f(
|
2361
|
+
() => n.hotelRoomOffers(t.hotelId)
|
2362
|
+
), I = f(
|
2363
|
+
() => !!(b.value?.hasError || d.value?.hasError)
|
2364
|
+
), T = f(
|
2365
|
+
() => d.value?.offers?.filter(
|
2366
|
+
(B) => B.type === Rt.HotelRoom
|
2357
2367
|
) || []
|
2358
2368
|
), v = f(() => {
|
2359
|
-
const B =
|
2360
|
-
(A) => A.type ===
|
2361
|
-
).filter((A) =>
|
2369
|
+
const B = d.value?.offers?.filter(
|
2370
|
+
(A) => A.type === Rt.Package
|
2371
|
+
).filter((A) => c.value?.OnlyMatchingRoomCount ? l(A) === b.value?.roomCount : !0);
|
2362
2372
|
return B?.slice(0, t.limit || B.length) || [];
|
2363
2373
|
}), _ = f(
|
2364
|
-
() => !!
|
2365
|
-
),
|
2366
|
-
() => !b.value?.id || (!!b.value?.isFetching || !!
|
2367
|
-
),
|
2374
|
+
() => !!d.value?.isPolling && !!v.value?.length
|
2375
|
+
), D = f(
|
2376
|
+
() => !b.value?.id || (!!b.value?.isFetching || !!d.value?.isPolling) && !v.value?.length
|
2377
|
+
), Z = async ({
|
2368
2378
|
addBreakfast: B,
|
2369
2379
|
hotelId: A,
|
2370
|
-
id:
|
2380
|
+
id: j
|
2371
2381
|
}) => {
|
2372
|
-
await
|
2382
|
+
await n.reifyHotelRoomOffer({
|
2373
2383
|
addBreakfast: B,
|
2374
2384
|
hotelId: A,
|
2375
|
-
id:
|
2385
|
+
id: j
|
2376
2386
|
});
|
2377
2387
|
}, $ = async (B) => {
|
2378
2388
|
if (!b.value?.id) {
|
2379
|
-
|
2389
|
+
n.resetHotelRoomOffers({
|
2380
2390
|
hotelId: t.hotelId
|
2381
2391
|
});
|
2382
2392
|
return;
|
2383
2393
|
}
|
2384
|
-
await
|
2394
|
+
await n.retrieveHotelRoomOffers({
|
2385
2395
|
hotelId: t.hotelId,
|
2386
2396
|
hotelRoomOfferRequestId: b.value.id,
|
2387
2397
|
inProgressHotelRoomOfferIds: B
|
@@ -2397,15 +2407,15 @@ const Xt = {
|
|
2397
2407
|
},
|
2398
2408
|
{ immediate: !0 }
|
2399
2409
|
);
|
2400
|
-
const { bookingApiClient:
|
2410
|
+
const { bookingApiClient: U, config: M } = Ce();
|
2401
2411
|
L(
|
2402
|
-
() => [
|
2412
|
+
() => [U.value, M.value.currency, M.value.lang],
|
2403
2413
|
async () => {
|
2404
2414
|
await $();
|
2405
2415
|
},
|
2406
2416
|
{ immediate: !0 }
|
2407
2417
|
);
|
2408
|
-
const
|
2418
|
+
const Q = Co({
|
2409
2419
|
adultCount: t.adultCount,
|
2410
2420
|
checkInDate: t.checkInDate,
|
2411
2421
|
checkOutDate: t.checkOutDate,
|
@@ -2415,21 +2425,21 @@ const Xt = {
|
|
2415
2425
|
sourceMarket: t.sourceMarket
|
2416
2426
|
});
|
2417
2427
|
return {
|
2418
|
-
hasError:
|
2419
|
-
hotelRoomHotelRoomOffers:
|
2428
|
+
hasError: I,
|
2429
|
+
hotelRoomHotelRoomOffers: T,
|
2420
2430
|
isLoading: _,
|
2421
|
-
onBreakfastChange:
|
2431
|
+
onBreakfastChange: Z,
|
2422
2432
|
packageHotelRoomOffers: v,
|
2423
|
-
showSkeleton:
|
2433
|
+
showSkeleton: D,
|
2424
2434
|
t: e,
|
2425
2435
|
tab: r,
|
2426
2436
|
tabItems: p,
|
2427
|
-
...
|
2437
|
+
...Q,
|
2428
2438
|
onBookingPolicyFailed: V
|
2429
2439
|
};
|
2430
2440
|
}
|
2431
2441
|
});
|
2432
|
-
function
|
2442
|
+
function Nt(t) {
|
2433
2443
|
const e = t;
|
2434
2444
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
2435
2445
|
locale: "",
|
@@ -2507,7 +2517,7 @@ function Mt(t) {
|
|
2507
2517
|
}
|
2508
2518
|
});
|
2509
2519
|
}
|
2510
|
-
const
|
2520
|
+
const Pt = Symbol.for("vuetify:v-tabs"), ua = rt({
|
2511
2521
|
fixed: Boolean,
|
2512
2522
|
sliderColor: String,
|
2513
2523
|
hideSlider: Boolean,
|
@@ -2515,126 +2525,126 @@ const wt = Symbol.for("vuetify:v-tabs"), la = lt({
|
|
2515
2525
|
type: String,
|
2516
2526
|
default: "horizontal"
|
2517
2527
|
},
|
2518
|
-
...
|
2528
|
+
...Ft(Ze({
|
2519
2529
|
selectedClass: "v-tab--selected",
|
2520
2530
|
variant: "text"
|
2521
2531
|
}), ["active", "block", "flat", "location", "position", "symbol"])
|
2522
|
-
}, "VTab"),
|
2532
|
+
}, "VTab"), ae = lt()({
|
2523
2533
|
name: "VTab",
|
2524
|
-
props:
|
2534
|
+
props: ua(),
|
2525
2535
|
setup(t, e) {
|
2526
2536
|
let {
|
2527
|
-
slots:
|
2537
|
+
slots: n,
|
2528
2538
|
attrs: s
|
2529
2539
|
} = e;
|
2530
2540
|
const {
|
2531
2541
|
textColorClasses: r,
|
2532
2542
|
textColorStyles: p
|
2533
|
-
} =
|
2534
|
-
function
|
2543
|
+
} = Ve(t, "sliderColor"), c = F(), l = F(), b = f(() => t.direction === "horizontal"), d = f(() => c.value?.group?.isSelected.value ?? !1);
|
2544
|
+
function I(T) {
|
2535
2545
|
let {
|
2536
2546
|
value: v
|
2537
|
-
} =
|
2547
|
+
} = T;
|
2538
2548
|
if (v) {
|
2539
|
-
const _ =
|
2540
|
-
if (!_ || !
|
2541
|
-
const
|
2542
|
-
|
2543
|
-
backgroundColor: [
|
2544
|
-
transform: [`translate${
|
2549
|
+
const _ = c.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"), D = l.value;
|
2550
|
+
if (!_ || !D) return;
|
2551
|
+
const Z = getComputedStyle(_).color, $ = _.getBoundingClientRect(), V = D.getBoundingClientRect(), U = b.value ? "x" : "y", M = b.value ? "X" : "Y", Q = b.value ? "right" : "bottom", B = b.value ? "width" : "height", A = $[U], j = V[U], N = A > j ? $[Q] - V[Q] : $[U] - V[U], it = Math.sign(N) > 0 ? b.value ? "right" : "bottom" : Math.sign(N) < 0 ? b.value ? "left" : "top" : "center", X = (Math.abs(N) + (Math.sign(N) < 0 ? $[B] : V[B])) / Math.max($[B], V[B]) || 0, u = $[B] / V[B] || 0, H = 1.5;
|
2552
|
+
Ee(D, {
|
2553
|
+
backgroundColor: [Z, "currentcolor"],
|
2554
|
+
transform: [`translate${M}(${N}px) scale${M}(${u})`, `translate${M}(${N / H}px) scale${M}(${(X - 1) / H + 1})`, "none"],
|
2545
2555
|
transformOrigin: Array(3).fill(it)
|
2546
2556
|
}, {
|
2547
2557
|
duration: 225,
|
2548
|
-
easing:
|
2558
|
+
easing: Ae
|
2549
2559
|
});
|
2550
2560
|
}
|
2551
2561
|
}
|
2552
|
-
return
|
2553
|
-
const
|
2554
|
-
return o(
|
2555
|
-
symbol:
|
2556
|
-
ref:
|
2562
|
+
return ut(() => {
|
2563
|
+
const T = nt.filterProps(t);
|
2564
|
+
return o(nt, z({
|
2565
|
+
symbol: Pt,
|
2566
|
+
ref: c,
|
2557
2567
|
class: ["v-tab", t.class],
|
2558
2568
|
style: t.style,
|
2559
|
-
tabindex:
|
2569
|
+
tabindex: d.value ? 0 : -1,
|
2560
2570
|
role: "tab",
|
2561
|
-
"aria-selected": String(
|
2571
|
+
"aria-selected": String(d.value),
|
2562
2572
|
active: !1
|
2563
|
-
},
|
2573
|
+
}, T, s, {
|
2564
2574
|
block: t.fixed,
|
2565
2575
|
maxWidth: t.fixed ? 300 : void 0,
|
2566
|
-
"onGroup:selected":
|
2576
|
+
"onGroup:selected": I
|
2567
2577
|
}), {
|
2568
|
-
...
|
2569
|
-
default: () => o(
|
2578
|
+
...n,
|
2579
|
+
default: () => o(R, null, [n.default?.() ?? t.text, !t.hideSlider && o("div", {
|
2570
2580
|
ref: l,
|
2571
2581
|
class: ["v-tab__slider", r.value],
|
2572
2582
|
style: p.value
|
2573
2583
|
}, null)])
|
2574
2584
|
});
|
2575
|
-
}),
|
2585
|
+
}), no({}, c);
|
2576
2586
|
}
|
2577
|
-
}),
|
2578
|
-
...
|
2579
|
-
}, "VTabsWindow"),
|
2587
|
+
}), ca = rt({
|
2588
|
+
...Ft(io(), ["continuous", "nextIcon", "prevIcon", "showArrows", "touch", "mandatory"])
|
2589
|
+
}, "VTabsWindow"), se = lt()({
|
2580
2590
|
name: "VTabsWindow",
|
2581
|
-
props:
|
2591
|
+
props: ca(),
|
2582
2592
|
emits: {
|
2583
2593
|
"update:modelValue": (t) => !0
|
2584
2594
|
},
|
2585
2595
|
setup(t, e) {
|
2586
2596
|
let {
|
2587
|
-
slots:
|
2597
|
+
slots: n
|
2588
2598
|
} = e;
|
2589
|
-
const s =
|
2599
|
+
const s = Be(Pt, null), r = dt(t, "modelValue"), p = f({
|
2590
2600
|
get() {
|
2591
|
-
return r.value != null || !s ? r.value : s.items.value.find((
|
2601
|
+
return r.value != null || !s ? r.value : s.items.value.find((c) => s.selected.value.includes(c.id))?.value;
|
2592
2602
|
},
|
2593
|
-
set(
|
2594
|
-
r.value =
|
2603
|
+
set(c) {
|
2604
|
+
r.value = c;
|
2595
2605
|
}
|
2596
2606
|
});
|
2597
|
-
return
|
2598
|
-
const
|
2599
|
-
return o(
|
2607
|
+
return ut(() => {
|
2608
|
+
const c = Et.filterProps(t);
|
2609
|
+
return o(Et, z({
|
2600
2610
|
_as: "VTabsWindow"
|
2601
|
-
},
|
2611
|
+
}, c, {
|
2602
2612
|
modelValue: p.value,
|
2603
2613
|
"onUpdate:modelValue": (l) => p.value = l,
|
2604
2614
|
class: ["v-tabs-window", t.class],
|
2605
2615
|
style: t.style,
|
2606
2616
|
mandatory: !1,
|
2607
2617
|
touch: !1
|
2608
|
-
}),
|
2618
|
+
}), n);
|
2609
2619
|
}), {};
|
2610
2620
|
}
|
2611
|
-
}),
|
2612
|
-
...
|
2613
|
-
}, "VTabsWindowItem"),
|
2621
|
+
}), da = rt({
|
2622
|
+
...lo()
|
2623
|
+
}, "VTabsWindowItem"), Ct = lt()({
|
2614
2624
|
name: "VTabsWindowItem",
|
2615
|
-
props:
|
2625
|
+
props: da(),
|
2616
2626
|
setup(t, e) {
|
2617
2627
|
let {
|
2618
|
-
slots:
|
2628
|
+
slots: n
|
2619
2629
|
} = e;
|
2620
|
-
return
|
2621
|
-
const s =
|
2622
|
-
return o(
|
2630
|
+
return ut(() => {
|
2631
|
+
const s = At.filterProps(t);
|
2632
|
+
return o(At, z({
|
2623
2633
|
_as: "VTabsWindowItem"
|
2624
2634
|
}, s, {
|
2625
2635
|
class: ["v-tabs-window-item", t.class],
|
2626
2636
|
style: t.style
|
2627
|
-
}),
|
2637
|
+
}), n);
|
2628
2638
|
}), {};
|
2629
2639
|
}
|
2630
2640
|
});
|
2631
|
-
function
|
2632
|
-
return t ? t.map((e) =>
|
2641
|
+
function ma(t) {
|
2642
|
+
return t ? t.map((e) => we(e) ? e : {
|
2633
2643
|
text: e,
|
2634
2644
|
value: e
|
2635
2645
|
}) : [];
|
2636
2646
|
}
|
2637
|
-
const
|
2647
|
+
const fa = rt({
|
2638
2648
|
alignTabs: {
|
2639
2649
|
type: String,
|
2640
2650
|
default: "start"
|
@@ -2654,59 +2664,59 @@ const da = lt({
|
|
2654
2664
|
},
|
2655
2665
|
hideSlider: Boolean,
|
2656
2666
|
sliderColor: String,
|
2657
|
-
...
|
2667
|
+
...ro({
|
2658
2668
|
mandatory: "force",
|
2659
2669
|
selectedClass: "v-tab-item--selected"
|
2660
2670
|
}),
|
2661
|
-
...
|
2662
|
-
...
|
2663
|
-
}, "VTabs"),
|
2671
|
+
...Fe(),
|
2672
|
+
...De()
|
2673
|
+
}, "VTabs"), ba = lt()({
|
2664
2674
|
name: "VTabs",
|
2665
|
-
props:
|
2675
|
+
props: fa(),
|
2666
2676
|
emits: {
|
2667
2677
|
"update:modelValue": (t) => !0
|
2668
2678
|
},
|
2669
2679
|
setup(t, e) {
|
2670
2680
|
let {
|
2671
|
-
attrs:
|
2681
|
+
attrs: n,
|
2672
2682
|
slots: s
|
2673
2683
|
} = e;
|
2674
|
-
const r =
|
2675
|
-
densityClasses:
|
2676
|
-
} =
|
2684
|
+
const r = dt(t, "modelValue"), p = f(() => ma(t.items)), {
|
2685
|
+
densityClasses: c
|
2686
|
+
} = je(t), {
|
2677
2687
|
backgroundColorClasses: l,
|
2678
2688
|
backgroundColorStyles: b
|
2679
|
-
} =
|
2680
|
-
scopeId:
|
2681
|
-
} =
|
2682
|
-
return
|
2689
|
+
} = Le(et(t, "bgColor")), {
|
2690
|
+
scopeId: d
|
2691
|
+
} = $e();
|
2692
|
+
return Se({
|
2683
2693
|
VTab: {
|
2684
|
-
color:
|
2685
|
-
direction:
|
2686
|
-
stacked:
|
2687
|
-
fixed:
|
2688
|
-
sliderColor:
|
2689
|
-
hideSlider:
|
2694
|
+
color: et(t, "color"),
|
2695
|
+
direction: et(t, "direction"),
|
2696
|
+
stacked: et(t, "stacked"),
|
2697
|
+
fixed: et(t, "fixedTabs"),
|
2698
|
+
sliderColor: et(t, "sliderColor"),
|
2699
|
+
hideSlider: et(t, "hideSlider")
|
2690
2700
|
}
|
2691
|
-
}),
|
2692
|
-
const
|
2693
|
-
return o(
|
2701
|
+
}), ut(() => {
|
2702
|
+
const I = Lt.filterProps(t), T = !!(s.window || t.items.length > 0);
|
2703
|
+
return o(R, null, [o(Lt, z(I, {
|
2694
2704
|
modelValue: r.value,
|
2695
2705
|
"onUpdate:modelValue": (v) => r.value = v,
|
2696
2706
|
class: ["v-tabs", `v-tabs--${t.direction}`, `v-tabs--align-tabs-${t.alignTabs}`, {
|
2697
2707
|
"v-tabs--fixed-tabs": t.fixedTabs,
|
2698
2708
|
"v-tabs--grow": t.grow,
|
2699
2709
|
"v-tabs--stacked": t.stacked
|
2700
|
-
},
|
2710
|
+
}, c.value, l.value, t.class],
|
2701
2711
|
style: [{
|
2702
|
-
"--v-tabs-height":
|
2712
|
+
"--v-tabs-height": Ie(t.height)
|
2703
2713
|
}, b.value, t.style],
|
2704
2714
|
role: "tablist",
|
2705
|
-
symbol:
|
2706
|
-
},
|
2715
|
+
symbol: Pt
|
2716
|
+
}, d, n), {
|
2707
2717
|
default: () => [s.default?.() ?? p.value.map((v) => s.tab?.({
|
2708
2718
|
item: v
|
2709
|
-
}) ?? o(
|
2719
|
+
}) ?? o(ae, z(v, {
|
2710
2720
|
key: v.text,
|
2711
2721
|
value: v.value
|
2712
2722
|
}), {
|
@@ -2714,14 +2724,14 @@ const da = lt({
|
|
2714
2724
|
item: v
|
2715
2725
|
}) : void 0
|
2716
2726
|
}))]
|
2717
|
-
}),
|
2727
|
+
}), T && o(se, z({
|
2718
2728
|
modelValue: r.value,
|
2719
2729
|
"onUpdate:modelValue": (v) => r.value = v,
|
2720
2730
|
key: "tabs-window"
|
2721
|
-
},
|
2731
|
+
}, d), {
|
2722
2732
|
default: () => [p.value.map((v) => s.item?.({
|
2723
2733
|
item: v
|
2724
|
-
}) ?? o(
|
2734
|
+
}) ?? o(Ct, {
|
2725
2735
|
value: v.value
|
2726
2736
|
}, {
|
2727
2737
|
default: () => s[`item.${v.value}`]?.({
|
@@ -2731,57 +2741,57 @@ const da = lt({
|
|
2731
2741
|
})]);
|
2732
2742
|
}), {};
|
2733
2743
|
}
|
2734
|
-
}),
|
2735
|
-
function
|
2736
|
-
const
|
2737
|
-
return
|
2738
|
-
t.isBookingApiClientDefined ? (
|
2739
|
-
t.hasError ? (
|
2744
|
+
}), pa = { class: "bg-white" }, ka = { key: 0 };
|
2745
|
+
function va(t, e, n, s, r, p) {
|
2746
|
+
const c = q("HotelRoomOfferListEmpty"), l = q("HotelRoomOfferItem"), b = q("HotelRoomOfferBasket");
|
2747
|
+
return i(), m("div", pa, [
|
2748
|
+
t.isBookingApiClientDefined ? (i(), m(R, { key: 1 }, [
|
2749
|
+
t.hasError ? (i(), O(c, {
|
2740
2750
|
key: "error",
|
2741
2751
|
boilerplate: "",
|
2742
2752
|
type: "internalError"
|
2743
|
-
})) : t.showSkeleton ? (
|
2744
|
-
t.hotelRoomHotelRoomOffers.length ? C("", !0) : (
|
2745
|
-
t.isLoading ? (
|
2753
|
+
})) : t.showSkeleton ? (i(), O(c, { key: "skeleton" })) : t.packageHotelRoomOffers && t.packageHotelRoomOffers.length ? (i(), m(R, { key: 2 }, [
|
2754
|
+
t.hotelRoomHotelRoomOffers.length ? C("", !0) : (i(), m("div", ka)),
|
2755
|
+
t.isLoading ? (i(), O(Ge, {
|
2746
2756
|
key: 1,
|
2747
2757
|
class: "loader position-absolute",
|
2748
2758
|
color: "secondary",
|
2749
2759
|
indeterminate: ""
|
2750
2760
|
})) : C("", !0),
|
2751
|
-
t.hotelRoomHotelRoomOffers && t.hotelRoomHotelRoomOffers.length ? (
|
2752
|
-
o(
|
2761
|
+
t.hotelRoomHotelRoomOffers && t.hotelRoomHotelRoomOffers.length ? (i(), m(R, { key: 2 }, [
|
2762
|
+
o(ba, {
|
2753
2763
|
color: "primary",
|
2754
2764
|
density: "compact",
|
2755
2765
|
modelValue: t.tab,
|
2756
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
2766
|
+
"onUpdate:modelValue": e[0] || (e[0] = (d) => t.tab = d),
|
2757
2767
|
grow: ""
|
2758
2768
|
}, {
|
2759
2769
|
default: a(() => [
|
2760
|
-
(
|
2761
|
-
o(
|
2770
|
+
(i(!0), m(R, null, x(t.tabItems, (d) => (i(), m(R, { key: d }, [
|
2771
|
+
o(ae, null, {
|
2762
2772
|
default: a(() => [
|
2763
|
-
w(
|
2773
|
+
w(y(t.t(`HotelRoomOfferList.${d}.title`)), 1)
|
2764
2774
|
]),
|
2765
2775
|
_: 2
|
2766
2776
|
}, 1024),
|
2767
|
-
o(
|
2777
|
+
o(Y, { vertical: "" })
|
2768
2778
|
], 64))), 128))
|
2769
2779
|
]),
|
2770
2780
|
_: 1
|
2771
2781
|
}, 8, ["modelValue"]),
|
2772
|
-
o(
|
2782
|
+
o(se, {
|
2773
2783
|
modelValue: t.tab,
|
2774
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
2784
|
+
"onUpdate:modelValue": e[1] || (e[1] = (d) => t.tab = d),
|
2775
2785
|
class: "overflow-visible"
|
2776
2786
|
}, {
|
2777
2787
|
default: a(() => [
|
2778
|
-
o(
|
2788
|
+
o(Ct, { class: "pt-3" }, {
|
2779
2789
|
default: a(() => [
|
2780
|
-
(
|
2781
|
-
key:
|
2790
|
+
(i(!0), m(R, null, x(t.packageHotelRoomOffers, (d, I) => (i(), m(R, {
|
2791
|
+
key: d.id
|
2782
2792
|
}, [
|
2783
|
-
|
2784
|
-
o(l,
|
2793
|
+
I > 0 ? (i(), O(Y, { key: 0 })) : C("", !0),
|
2794
|
+
o(l, z({ ref_for: !0 }, d, {
|
2785
2795
|
onBreakfastChange: t.onBreakfastChange,
|
2786
2796
|
onBookingPolicyFailed: t.onBookingPolicyFailed
|
2787
2797
|
}), null, 16, ["onBreakfastChange", "onBookingPolicyFailed"])
|
@@ -2789,7 +2799,7 @@ function pa(t, e, i, s, r, p) {
|
|
2789
2799
|
]),
|
2790
2800
|
_: 1
|
2791
2801
|
}),
|
2792
|
-
o(
|
2802
|
+
o(Ct, { class: "pt-3 pb-5" }, {
|
2793
2803
|
default: a(() => [
|
2794
2804
|
o(b, { "hotel-id": t.hotelId }, null, 8, ["hotel-id"])
|
2795
2805
|
]),
|
@@ -2798,32 +2808,32 @@ function pa(t, e, i, s, r, p) {
|
|
2798
2808
|
]),
|
2799
2809
|
_: 1
|
2800
2810
|
}, 8, ["modelValue"])
|
2801
|
-
], 64)) : (
|
2802
|
-
key:
|
2811
|
+
], 64)) : (i(!0), m(R, { key: 3 }, x(t.packageHotelRoomOffers, (d, I) => (i(), m(R, {
|
2812
|
+
key: d.id
|
2803
2813
|
}, [
|
2804
|
-
|
2805
|
-
o(l,
|
2814
|
+
I > 0 ? (i(), O(Y, { key: 0 })) : C("", !0),
|
2815
|
+
o(l, z({ ref_for: !0 }, d, {
|
2806
2816
|
onBreakfastChange: t.onBreakfastChange,
|
2807
2817
|
onBookingPolicyFailed: t.onBookingPolicyFailed
|
2808
2818
|
}), null, 16, ["onBreakfastChange", "onBookingPolicyFailed"])
|
2809
2819
|
], 64))), 128))
|
2810
|
-
], 64)) : !t.packageHotelRoomOffers || !t.packageHotelRoomOffers.length ? (
|
2820
|
+
], 64)) : !t.packageHotelRoomOffers || !t.packageHotelRoomOffers.length ? (i(), O(c, {
|
2811
2821
|
key: "skeleton",
|
2812
2822
|
boilerplate: "",
|
2813
2823
|
type: "noResults"
|
2814
2824
|
})) : C("", !0)
|
2815
|
-
], 64)) : (
|
2825
|
+
], 64)) : (i(), m(R, { key: 0 }, [], 64))
|
2816
2826
|
]);
|
2817
2827
|
}
|
2818
|
-
typeof
|
2819
|
-
const
|
2820
|
-
ie("css/revolugo.hotelroomofferlist.
|
2828
|
+
typeof Nt == "function" && Nt(oe);
|
2829
|
+
const Ga = /* @__PURE__ */ ot(oe, [["render", va], ["__scopeId", "data-v-e71fbea6"]]);
|
2830
|
+
ie("css/revolugo.hotelroomofferlist.-6YLPyqb.css");
|
2821
2831
|
export {
|
2822
|
-
|
2823
|
-
|
2824
|
-
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2832
|
+
Ot as B,
|
2833
|
+
Ga as H,
|
2834
|
+
ee as a,
|
2835
|
+
ra as h,
|
2836
|
+
fo as r,
|
2837
|
+
ko as u
|
2828
2838
|
};
|
2829
|
-
//# sourceMappingURL=revolugo.hotelroomofferlist.
|
2839
|
+
//# sourceMappingURL=revolugo.hotelroomofferlist.BF-qbcqV.min.js.map
|