@revolugo/elements 6.9.3-beta.9 → 6.9.4-rc.0
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/fonts.css +1 -1
- package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +1 -0
- package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +1 -0
- package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +1 -0
- package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +1 -0
- package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +1 -0
- package/dist/css/revolugo.bstarrating.CPHKEfup.css +1 -0
- package/dist/css/revolugo.btag.T7X_iIkW.css +1 -0
- package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +1 -0
- package/dist/css/revolugo.creditcardform.DWne0Lnv.css +1 -0
- package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +1 -0
- package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +1 -0
- package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +1 -0
- package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +1 -0
- package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
- package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +1 -0
- package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +1 -0
- package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +1 -0
- package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +1 -0
- package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
- package/dist/css/revolugo.index.XNPQF1ia.css +5 -0
- package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +1 -0
- package/dist/css/revolugo.prebookform.DmCR7hLv.css +1 -0
- package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +1 -0
- package/dist/css/revolugo.termsandconditions.D8IMR9da.css +1 -0
- package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +1 -0
- package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
- package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
- package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
- package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
- package/dist/css/revolugo.vdialog.DwTSAOeg.css +1 -0
- package/dist/css/revolugo.vdivider.CTbbZwnv.css +1 -0
- package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +1 -0
- package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
- package/dist/css/revolugo.vinput.BPiFMorL.css +1 -0
- package/dist/css/revolugo.vlabel.BvKaKg7Y.css +1 -0
- package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
- package/dist/css/revolugo.vmenu.DvKwEp1j.css +1 -0
- package/dist/css/revolugo.vselect.C5CKHFYB.css +1 -0
- package/dist/css/revolugo.vsheet.Dmcoj8cr.css +1 -0
- package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +1 -0
- package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +1 -0
- package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +1 -0
- package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +1 -0
- package/dist/css/revolugo.vtextfield.BIH_AWWP.css +1 -0
- package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
- package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +1 -0
- package/dist/css/{revolugo.webcomponentwrapper.BQSUxe3K.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +1 -1
- package/dist/index.es.min.js +1518 -1275
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +5 -5
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo._baseiteratee.C9fSfygW.min.js +247 -0
- package/dist/revolugo.banktransferdetails.HF-5whLi.min.js +373 -0
- package/dist/revolugo.bdaterangepicker.Dztdr7of.min.js +8327 -0
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js +146 -0
- package/dist/revolugo.bhoteloffersfilterbar.riRikxpD.min.js +4901 -0
- package/dist/revolugo.bhotelroomsdetails.DSVvK0I7.min.js +965 -0
- package/dist/revolugo.bimagecarousel.0DDXWSsX.min.js +566 -0
- package/dist/revolugo.bookingdetailssidebar.B3nJVjzT.min.js +24 -0
- package/dist/revolugo.bookingdetailssidebar.HR95sw2v.min.js +870 -0
- package/dist/revolugo.bookingmanager.CHhySvbL.min.js +1755 -0
- package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.DCBOxir-.min.js +66 -0
- package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.D7d1JNOc.min.js +570 -0
- package/dist/revolugo.btag.C27GlEZ3.min.js +375 -0
- package/dist/revolugo.cancellationpoliciesbadge.CQ9NQZ7F.min.js +28 -0
- package/dist/revolugo.cancellationpoliciesbadge.D7VDRPmO.min.js +198 -0
- package/dist/revolugo.cancellationpolicieslist.DUrr7Myp.min.js +25 -0
- package/dist/revolugo.cancellationpolicieslist.IKkTYxdE.min.js +148 -0
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
- package/dist/revolugo.case-transformers.Blb5hegY.min.js +123 -0
- package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
- package/dist/{revolugo.creditcardstripeform.B8KtVBUI.min.js → revolugo.creditcardform.CejFX150.min.js} +886 -888
- package/dist/revolugo.creditcardform.Dx00l01z.min.js +24 -0
- package/dist/revolugo.creditcardpayment.CkfC2xTo.min.js +885 -0
- package/dist/revolugo.creditcardpayment.DZf0q5_n.min.js +24 -0
- package/dist/revolugo.currencypicker.B9c-AV8V.min.js +328 -0
- package/dist/revolugo.currencypickerbtn.B_lw6N3Y.min.js +24 -0
- package/dist/revolugo.currencypickerbtn.edi3iO6h.min.js +157 -0
- package/dist/revolugo.dates.DiE5ynTe.min.js +31 -0
- package/dist/revolugo.defaultsdeep.EmfuGqBQ.min.js +104 -0
- package/dist/{revolugo.dialog-attach.e4eWyf04.min.js → revolugo.dialog-attach.C4Yvk6WJ.min.js} +2 -2
- package/dist/revolugo.dialog-transition.Dly9KKqO.min.js +111 -0
- package/dist/revolugo.fastbookingflow.DPOX_gos.min.js +34 -0
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
- package/dist/revolugo.fullbookingflow.DSJE_kaM.min.js +429 -0
- package/dist/revolugo.hotel-offer-request.C9zwgVPt.min.js +98 -0
- package/dist/revolugo.hoteldescriptionview.Dtd-_3_8.min.js +24 -0
- package/dist/revolugo.hoteldescriptionview.kERJQPWm.min.js +2738 -0
- package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CiHBAV7m.min.js +239 -0
- package/dist/revolugo.hotelofferlist.BC-TSjS6.min.js +24 -0
- package/dist/revolugo.hotelofferlist.D2AXSf4v.min.js +5640 -0
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
- package/dist/revolugo.hoteloffersearchmenu.BODV4ZIe.min.js +202 -0
- package/dist/revolugo.hoteloffersearchmenuui.DqWHAurZ.min.js +829 -0
- package/dist/revolugo.hoteloffersmap.C6nn7LXn.min.js +8330 -0
- package/dist/revolugo.hoteloffersmap.Db9NNgcN.min.js +24 -0
- package/dist/revolugo.hoteloffersview.BAwQcocI.min.js +19 -0
- package/dist/revolugo.hoteloffersview.CIVNGmGO.min.js +616 -0
- package/dist/revolugo.hotelroomofferlist.C9y91Ya3.min.js +2799 -0
- package/dist/revolugo.hotelroomofferlist.CiBIB0Pb.min.js +24 -0
- package/dist/revolugo.hotelroomofferrequestcreator.props.2Sq_iptZ.min.js +171 -0
- package/dist/revolugo.hotelroomoffersbookingflow.BS4Fa2EH.min.js +1281 -0
- package/dist/revolugo.hotelroomoffersearchmenu.CXgExPhR.min.js +25 -0
- package/dist/revolugo.hotelroomoffersearchmenu.x_--4RXV.min.js +231 -0
- package/dist/revolugo.hotelroomoffersview.BzmRXy0a.min.js +290 -0
- package/dist/revolugo.hotelroomoffersview.CFo6k7zm.min.js +24 -0
- package/dist/revolugo.index.CDNx7Tg4.min.js +67 -0
- package/dist/revolugo.index.DZEISB0K.min.js +1232 -0
- package/dist/{revolugo.index.wc.CiJw1SpW.min.js → revolugo.index.wc.DLkeXtka.min.js} +4659 -4637
- package/dist/revolugo.langpicker.D7zIuy78.min.js +99 -0
- package/dist/revolugo.langpickerbtn.BF7sml8K.min.js +29 -0
- package/dist/revolugo.langpickerbtn.DMcy_gHZ.min.js +131 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.parsed-props.B5g9_9k5.min.js +40 -0
- package/dist/revolugo.pathify.DL0POvNz.min.js +36 -0
- package/dist/revolugo.prebookform.BMEaruyl.min.js +1527 -0
- package/dist/revolugo.prebookform.BVyTAnc9.min.js +24 -0
- package/dist/revolugo.preferencesmenu.5pUjkA0F.min.js +24 -0
- package/dist/revolugo.preferencesmenu.CfUC3L6C.min.js +261 -0
- package/dist/revolugo.roominglisteditor.DLWeU6Ct.min.js +385 -0
- package/dist/revolugo.roominglisteditor.L6CmotRz.min.js +24 -0
- package/dist/revolugo.rounded.C-2ilaaW.min.js +68 -0
- package/dist/revolugo.ssrboot.D7k4-YG4.min.js +18 -0
- package/dist/revolugo.storybooktoolbar.CTe_QwGW.min.js +881 -0
- package/dist/revolugo.termsandconditions.Cue6Dsm7.min.js +404 -0
- package/dist/revolugo.termsandconditions.DBq-dEuI.min.js +23 -0
- package/dist/revolugo.use-breakpoint-service.DsQuZJRM.min.js +39 -0
- package/dist/revolugo.use-dialog-attach.DLdl8iIG.min.js +16 -0
- package/dist/revolugo.use-html-element.c9F9oVPw.min.js +11 -0
- package/dist/revolugo.vautocomplete.Q2U5ECgn.min.js +445 -0
- package/dist/revolugo.vbadge.D-lbOD0r.min.js +112 -0
- package/dist/revolugo.vbtn.B-LYC8rJ.min.js +398 -0
- package/dist/revolugo.vcard.ZlYB5HOk.min.js +313 -0
- package/dist/revolugo.vcheckboxbtn.BGpOwRWV.min.js +478 -0
- package/dist/revolugo.vdialog.DlAgRbIv.min.js +133 -0
- package/dist/revolugo.vdivider.D1ITKKuu.min.js +77 -0
- package/dist/revolugo.vexpansionpanels.D8TtnQrF.min.js +262 -0
- package/dist/revolugo.vform.gu3frP5W.min.js +46 -0
- package/dist/revolugo.vicon.mrg8OisO.min.js +105 -0
- package/dist/revolugo.vinput.BowTI8jK.min.js +463 -0
- package/dist/revolugo.vlabel.BjtrjyZZ.min.js +48 -0
- package/dist/revolugo.vlist.BwlPoH0e.min.js +1299 -0
- package/dist/revolugo.vmenu.Dasw1a1s.min.js +145 -0
- package/dist/revolugo.vselect.B4IzM260.min.js +660 -0
- package/dist/revolugo.vsheet.CDgBUxHk.min.js +72 -0
- package/dist/revolugo.vskeletonloader.DgIjR-8k.min.js +136 -0
- package/dist/revolugo.vslidegroup.BV7NJuLN.min.js +325 -0
- package/dist/revolugo.vsnackbar.DFnMGJQg.min.js +198 -0
- package/dist/revolugo.vspacer.DqnVrVYg.min.js +7 -0
- package/dist/revolugo.vtextarea.CgekaBze.min.js +2092 -0
- package/dist/revolugo.vtextfield.BhmuZsP7.min.js +501 -0
- package/dist/{revolugo.vtoolbar.Ctwu8OKs.min.js → revolugo.vtoolbar.CMwcpp3v.min.js} +44 -42
- package/dist/revolugo.vtooltip.a-r5BxqW.min.js +89 -0
- package/dist/revolugo.vwindowitem.BHzrfo73.min.js +317 -0
- package/dist/revolugo.watch-list.BSqnQNdl.min.js +16 -0
- package/dist/revolugo.webcomponentwrapper.BNmjcBmh.min.js +2088 -0
- package/package.json +5 -5
- package/dist/css/revolugo.cancellationpoliciesbadge.DM3Cgr8A.css +0 -1
- package/dist/css/revolugo.creditcardstripeform.DN5YJSMj.css +0 -1
- package/dist/css/revolugo.index.ClC0OVqq.css +0 -5
- package/dist/css/revolugo.preferencesmenu.D2263Vn6.css +0 -1
- package/dist/revolugo.banktransferdetails.DFskPIBN.min.js +0 -47
- package/dist/revolugo.bookingdetailssidebar.BOs76Qod.min.js +0 -43
- package/dist/revolugo.bookingmanager.DzzQLMr9.min.js +0 -26
- package/dist/revolugo.cancellationpoliciesbadge.BRcM9UUl.min.js +0 -26
- package/dist/revolugo.cancellationpoliciesbadge.props.YZrc252e.min.js +0 -28756
- package/dist/revolugo.cancellationpolicieslist.B7Mf5bmE.min.js +0 -26
- package/dist/revolugo.creditcardstripeform.DkNqhTcH.min.js +0 -50
- package/dist/revolugo.currencypickerbtn.C1B6gpLV.min.js +0 -26
- package/dist/revolugo.fastbookingflow.VfdAOD-j.min.js +0 -36
- package/dist/revolugo.fullbookingflow.CFl16ykj.min.js +0 -26
- package/dist/revolugo.hoteldescriptionview.DTByBiNZ.min.js +0 -26
- package/dist/revolugo.hotelofferlist.HS8rTNwv.min.js +0 -26
- package/dist/revolugo.hoteloffersearchmenu.DLC5yEDD.min.js +0 -115
- package/dist/revolugo.hoteloffersmap.l4UaNpun.min.js +0 -26
- package/dist/revolugo.hoteloffersview.DxUc5TlW.min.js +0 -21
- package/dist/revolugo.hotelroomofferlist.ryYBtMFY.min.js +0 -26
- package/dist/revolugo.hotelroomoffersbookingflow.BWIa87mZ.min.js +0 -26
- package/dist/revolugo.hotelroomoffersearchmenu.4-HSRz_y.min.js +0 -26
- package/dist/revolugo.hotelroomoffersview.Df2SYo4D.min.js +0 -26
- package/dist/revolugo.index.Qn3FvgFh.min.js +0 -106
- package/dist/revolugo.langpickerbtn.rFwls9XZ.min.js +0 -31
- package/dist/revolugo.prebookform.D33OnpHn.min.js +0 -26
- package/dist/revolugo.preferencesmenu.BOWFkVY9.min.js +0 -24
- package/dist/revolugo.preferencesmenu.PVSL2fWE.min.js +0 -949
- package/dist/revolugo.roominglisteditor.gLjgOdGD.min.js +0 -26
- package/dist/revolugo.storybooktoolbar.DZrgGX1X.min.js +0 -838
- package/dist/revolugo.termsandconditions.3W9GTrVc.min.js +0 -31
- package/dist/revolugo.webcomponentwrapper.PTHIHE3G.min.js +0 -28624
@@ -0,0 +1,1281 @@
|
|
1
|
+
import { a as Ve, h as Ee, H as Be } from "./revolugo.hotelroomoffersview.BzmRXy0a.min.js";
|
2
|
+
import { P as Oe, p as Ie, a as Te } from "./revolugo.prebookform.BMEaruyl.min.js";
|
3
|
+
import { G as Re, d as x, al as Ce, u as _e, E as S, a2 as V, a1 as _, ag as Fe, a as t, H as d, J as Me, aH as De, a3 as P, an as He, a6 as Le, D as C, aa as $e, aU as Ae, aY as Ne, aZ as J, aV as ze, a_ as We, aW as qe, F as pe, c as g, w as i, i as X, B as Ue, g as B, e as f, f as y, t as h, r as T, aX as Ge, o as p, n as xe, h as Ye } from "./revolugo.index.wc.DLkeXtka.min.js";
|
4
|
+
import { a as je } from "./revolugo.hotelroomoffersearchmenu.x_--4RXV.min.js";
|
5
|
+
import { C as Ke } from "./revolugo.creditcardpayment.CkfC2xTo.min.js";
|
6
|
+
import { p as Ze } from "./revolugo.parsed-props.B5g9_9k5.min.js";
|
7
|
+
import { s as Q } from "./revolugo.common.D-l8b0V5.min.js";
|
8
|
+
import { a as ee } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js";
|
9
|
+
import { u as F, _ as fe, V as O, a as w, W as Je } from "./revolugo.webcomponentwrapper.BNmjcBmh.min.js";
|
10
|
+
import { V as I } from "./revolugo.vicon.mrg8OisO.min.js";
|
11
|
+
import { a as z } from "./revolugo.vbtn.B-LYC8rJ.min.js";
|
12
|
+
import { V as te } from "./revolugo.vsnackbar.DFnMGJQg.min.js";
|
13
|
+
import { a as oe, c as Xe, R as Qe, u as et, g as tt, h as ot, i as st, j as it, k as nt } from "./revolugo.index.DZEISB0K.min.js";
|
14
|
+
import { V as se, m as at, a as ie, b as rt } from "./revolugo.vwindowitem.BHzrfo73.min.js";
|
15
|
+
import { V as ne, m as lt } from "./revolugo.vsheet.CDgBUxHk.min.js";
|
16
|
+
import { V as G } from "./revolugo.vdivider.D1ITKKuu.min.js";
|
17
|
+
import { V as ut } from "./revolugo.vcheckboxbtn.BGpOwRWV.min.js";
|
18
|
+
function Pe(e) {
|
19
|
+
try {
|
20
|
+
if (typeof document < "u") {
|
21
|
+
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
22
|
+
sheets: [],
|
23
|
+
components: []
|
24
|
+
};
|
25
|
+
const o = import.meta.url, s = o.slice(0, o.lastIndexOf("/") + 1) + e;
|
26
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(s);
|
27
|
+
for (const n of REVOLUGO_ELEMENTS_STYLES.components)
|
28
|
+
n(s);
|
29
|
+
if (e.indexOf("fonts") >= 0) {
|
30
|
+
const n = document.createElement("link");
|
31
|
+
n.rel = "stylesheet", linK.href = s, document.head.appendChild(n);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
} catch (o) {
|
35
|
+
console.error("[revolugo-elements] ", o);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
const he = {
|
39
|
+
HotelRoomOffersView: Ve,
|
40
|
+
PrebookForm: Oe
|
41
|
+
}, ve = {
|
42
|
+
...Ee,
|
43
|
+
...Re(Ie, ["bookingId", "bookingPolicyId", "hotelRoomOffer"]),
|
44
|
+
features: {
|
45
|
+
default: () => he,
|
46
|
+
type: [Object, String]
|
47
|
+
}
|
48
|
+
}, L = 1e3, $ = 60 * L, A = 60 * $, ae = 24 * A, re = "abort", le = "end", ue = "progress", ce = "start", de = "visibilitychange", ct = x({
|
49
|
+
beforeUnmount() {
|
50
|
+
document.removeEventListener(
|
51
|
+
de,
|
52
|
+
this.handleVisibilityChange
|
53
|
+
), this.pause();
|
54
|
+
},
|
55
|
+
computed: {
|
56
|
+
/**
|
57
|
+
* Remaining days.
|
58
|
+
* @returns {number} The computed value.
|
59
|
+
*/
|
60
|
+
days() {
|
61
|
+
return Math.floor(this.totalMilliseconds / ae);
|
62
|
+
},
|
63
|
+
/**
|
64
|
+
* Remaining hours.
|
65
|
+
* @returns {number} The computed value.
|
66
|
+
*/
|
67
|
+
hours() {
|
68
|
+
return Math.floor(
|
69
|
+
this.totalMilliseconds % ae / A
|
70
|
+
);
|
71
|
+
},
|
72
|
+
/**
|
73
|
+
* Remaining milliseconds.
|
74
|
+
* @returns {number} The computed value.
|
75
|
+
*/
|
76
|
+
milliseconds() {
|
77
|
+
return Math.floor(this.totalMilliseconds % L);
|
78
|
+
},
|
79
|
+
/**
|
80
|
+
* Remaining minutes.
|
81
|
+
* @returns {number} The computed value.
|
82
|
+
*/
|
83
|
+
minutes() {
|
84
|
+
return Math.floor(
|
85
|
+
this.totalMilliseconds % A / $
|
86
|
+
);
|
87
|
+
},
|
88
|
+
/**
|
89
|
+
* Remaining seconds.
|
90
|
+
* @returns {number} The computed value.
|
91
|
+
*/
|
92
|
+
seconds() {
|
93
|
+
return Math.floor(
|
94
|
+
this.totalMilliseconds % $ / L
|
95
|
+
);
|
96
|
+
},
|
97
|
+
/**
|
98
|
+
* Total remaining days.
|
99
|
+
* @returns {number} The computed value.
|
100
|
+
*/
|
101
|
+
totalDays() {
|
102
|
+
return this.days;
|
103
|
+
},
|
104
|
+
/**
|
105
|
+
* Total remaining hours.
|
106
|
+
* @returns {number} The computed value.
|
107
|
+
*/
|
108
|
+
totalHours() {
|
109
|
+
return Math.floor(this.totalMilliseconds / A);
|
110
|
+
},
|
111
|
+
/**
|
112
|
+
* Total remaining minutes.
|
113
|
+
* @returns {number} The computed value.
|
114
|
+
*/
|
115
|
+
totalMinutes() {
|
116
|
+
return Math.floor(this.totalMilliseconds / $);
|
117
|
+
},
|
118
|
+
/**
|
119
|
+
* Total remaining seconds.
|
120
|
+
* @returns {number} The computed value.
|
121
|
+
*/
|
122
|
+
totalSeconds() {
|
123
|
+
return Math.floor(this.totalMilliseconds / L);
|
124
|
+
}
|
125
|
+
},
|
126
|
+
data() {
|
127
|
+
return {
|
128
|
+
/**
|
129
|
+
* Automatically pause the countdown when the document is hidden.
|
130
|
+
* @type {boolean}
|
131
|
+
*/
|
132
|
+
autoPauseOnHide: !1,
|
133
|
+
/**
|
134
|
+
* It is counting down.
|
135
|
+
* @type {boolean}
|
136
|
+
*/
|
137
|
+
counting: !1,
|
138
|
+
/**
|
139
|
+
* The absolute end time.
|
140
|
+
* @type {number}
|
141
|
+
*/
|
142
|
+
endTime: 0,
|
143
|
+
/**
|
144
|
+
* The request ID of the requestAnimationFrame.
|
145
|
+
* @type {number}
|
146
|
+
*/
|
147
|
+
requestId: 0,
|
148
|
+
/**
|
149
|
+
* The remaining milliseconds.
|
150
|
+
* @type {number}
|
151
|
+
*/
|
152
|
+
totalMilliseconds: 0
|
153
|
+
};
|
154
|
+
},
|
155
|
+
emits: [re, le, ue, ce],
|
156
|
+
methods: {
|
157
|
+
/**
|
158
|
+
* Aborts the countdown.
|
159
|
+
* @public
|
160
|
+
* @emits Countdown#abort
|
161
|
+
*/
|
162
|
+
abort() {
|
163
|
+
this.counting && (this.pause(), this.counting = !1, this.emitEvents && this.$emit(re));
|
164
|
+
},
|
165
|
+
/**
|
166
|
+
* Continues the countdown.
|
167
|
+
* @private
|
168
|
+
*/
|
169
|
+
continue() {
|
170
|
+
if (!this.counting)
|
171
|
+
return;
|
172
|
+
const e = Math.min(this.totalMilliseconds, this.interval);
|
173
|
+
if (e > 0) {
|
174
|
+
let o, s;
|
175
|
+
const n = (a) => {
|
176
|
+
o || (o = a), s || (s = a);
|
177
|
+
const r = a - o;
|
178
|
+
r >= e || // Avoid losing time about one second per minute (now - prev ≈ 16ms) (#43)
|
179
|
+
r + (a - s) / 2 >= e ? this.progress() : this.requestId = requestAnimationFrame(n), s = a;
|
180
|
+
};
|
181
|
+
this.requestId = requestAnimationFrame(n);
|
182
|
+
} else
|
183
|
+
this.end();
|
184
|
+
},
|
185
|
+
/**
|
186
|
+
* Ends the countdown.
|
187
|
+
* @public
|
188
|
+
* @emits Countdown#end
|
189
|
+
*/
|
190
|
+
end() {
|
191
|
+
this.counting && (this.pause(), this.totalMilliseconds = 0, this.counting = !1, this.emitEvents && this.$emit(le));
|
192
|
+
},
|
193
|
+
/**
|
194
|
+
* visibility change event handler.
|
195
|
+
* @private
|
196
|
+
*/
|
197
|
+
handleVisibilityChange() {
|
198
|
+
switch (document.visibilityState) {
|
199
|
+
case "visible":
|
200
|
+
this.requestId === 0 && this.autoPauseOnHide && (this.update(), this.continue()), this.autoPauseOnHide = !1;
|
201
|
+
break;
|
202
|
+
case "hidden":
|
203
|
+
this.requestId > 0 && (this.autoPauseOnHide = !0, this.pause());
|
204
|
+
break;
|
205
|
+
}
|
206
|
+
},
|
207
|
+
/**
|
208
|
+
* Pauses the countdown.
|
209
|
+
* @private
|
210
|
+
*/
|
211
|
+
pause() {
|
212
|
+
cancelAnimationFrame(this.requestId), this.requestId = 0;
|
213
|
+
},
|
214
|
+
/**
|
215
|
+
* Progresses to countdown.
|
216
|
+
* @private
|
217
|
+
* @emits Countdown#progress
|
218
|
+
*/
|
219
|
+
progress() {
|
220
|
+
this.counting && (this.update(), this.emitEvents && this.totalMilliseconds > 0 && this.$emit(ue, {
|
221
|
+
days: this.days,
|
222
|
+
hours: this.hours,
|
223
|
+
milliseconds: this.milliseconds,
|
224
|
+
minutes: this.minutes,
|
225
|
+
seconds: this.seconds,
|
226
|
+
totalDays: this.totalDays,
|
227
|
+
totalHours: this.totalHours,
|
228
|
+
totalMilliseconds: this.totalMilliseconds,
|
229
|
+
totalMinutes: this.totalMinutes,
|
230
|
+
totalSeconds: this.totalSeconds
|
231
|
+
}), this.continue());
|
232
|
+
},
|
233
|
+
/**
|
234
|
+
* Restarts the count.
|
235
|
+
* @public
|
236
|
+
*/
|
237
|
+
restart() {
|
238
|
+
this.pause(), this.totalMilliseconds = this.time, this.endTime = this.now() + this.time, this.counting = !1, this.start();
|
239
|
+
},
|
240
|
+
/**
|
241
|
+
* Starts to countdown.
|
242
|
+
* @public
|
243
|
+
* @emits Countdown#start
|
244
|
+
*/
|
245
|
+
start() {
|
246
|
+
this.counting || (this.counting = !0, this.autoStart || (this.totalMilliseconds = this.time, this.endTime = this.now() + this.time), this.emitEvents && this.$emit(ce), document.visibilityState === "visible" && this.continue());
|
247
|
+
},
|
248
|
+
/**
|
249
|
+
* Updates the count.
|
250
|
+
* @private
|
251
|
+
*/
|
252
|
+
update() {
|
253
|
+
this.counting && (this.totalMilliseconds = Math.max(0, this.endTime - this.now()));
|
254
|
+
}
|
255
|
+
},
|
256
|
+
mounted() {
|
257
|
+
document.addEventListener(
|
258
|
+
de,
|
259
|
+
this.handleVisibilityChange
|
260
|
+
);
|
261
|
+
},
|
262
|
+
name: "VueCountdown",
|
263
|
+
props: {
|
264
|
+
/**
|
265
|
+
* Starts the countdown automatically when initialized.
|
266
|
+
*/
|
267
|
+
autoStart: {
|
268
|
+
default: !0,
|
269
|
+
type: Boolean
|
270
|
+
},
|
271
|
+
/**
|
272
|
+
* Emits the countdown events.
|
273
|
+
*/
|
274
|
+
emitEvents: {
|
275
|
+
default: !0,
|
276
|
+
type: Boolean
|
277
|
+
},
|
278
|
+
/**
|
279
|
+
* The interval time (in milliseconds) of the countdown progress.
|
280
|
+
*/
|
281
|
+
interval: {
|
282
|
+
default: 1e3,
|
283
|
+
type: Number,
|
284
|
+
validator: (e) => e >= 0
|
285
|
+
},
|
286
|
+
/**
|
287
|
+
* Generate the current time of a specific time zone.
|
288
|
+
*/
|
289
|
+
now: {
|
290
|
+
default: () => Date.now(),
|
291
|
+
type: Function
|
292
|
+
},
|
293
|
+
/**
|
294
|
+
* The tag name of the component's root element.
|
295
|
+
*/
|
296
|
+
tag: {
|
297
|
+
default: "span",
|
298
|
+
type: String
|
299
|
+
},
|
300
|
+
/**
|
301
|
+
* The time (in milliseconds) to count down from.
|
302
|
+
*/
|
303
|
+
time: {
|
304
|
+
default: 0,
|
305
|
+
type: Number,
|
306
|
+
validator: (e) => e >= 0
|
307
|
+
},
|
308
|
+
/**
|
309
|
+
* Transforms the output props before rendering.
|
310
|
+
*/
|
311
|
+
transform: {
|
312
|
+
default: (e) => e,
|
313
|
+
type: Function
|
314
|
+
}
|
315
|
+
},
|
316
|
+
render() {
|
317
|
+
return Ce(
|
318
|
+
this.tag,
|
319
|
+
this.$slots.default ? [
|
320
|
+
this.$slots.default(
|
321
|
+
this.transform({
|
322
|
+
days: this.days,
|
323
|
+
hours: this.hours,
|
324
|
+
milliseconds: this.milliseconds,
|
325
|
+
minutes: this.minutes,
|
326
|
+
seconds: this.seconds,
|
327
|
+
totalDays: this.totalDays,
|
328
|
+
totalHours: this.totalHours,
|
329
|
+
totalMilliseconds: this.totalMilliseconds,
|
330
|
+
totalMinutes: this.totalMinutes,
|
331
|
+
totalSeconds: this.totalSeconds
|
332
|
+
})
|
333
|
+
)
|
334
|
+
] : void 0
|
335
|
+
);
|
336
|
+
},
|
337
|
+
watch: {
|
338
|
+
$props: {
|
339
|
+
deep: !0,
|
340
|
+
/**
|
341
|
+
* Update the countdown when props changed.
|
342
|
+
*/
|
343
|
+
handler() {
|
344
|
+
this.totalMilliseconds = this.time, this.endTime = this.now() + this.time, this.autoStart && this.start();
|
345
|
+
},
|
346
|
+
immediate: !0
|
347
|
+
}
|
348
|
+
}
|
349
|
+
});
|
350
|
+
var ge = /* @__PURE__ */ ((e) => (e[e.Idle = 1] = "Idle", e[e.Payment = 3] = "Payment", e[e.PaymentRequested = 4] = "PaymentRequested", e[e.PaymentSuccessful = 5] = "PaymentSuccessful", e[e.PreBook = 2] = "PreBook", e))(ge || {});
|
351
|
+
const be = x({
|
352
|
+
components: {
|
353
|
+
CreditCardPayment: Ke,
|
354
|
+
HotelRoomOffersView: Be,
|
355
|
+
PrebookForm: Te,
|
356
|
+
VueCountdown: ct
|
357
|
+
},
|
358
|
+
computed: {
|
359
|
+
backButtonLabel() {
|
360
|
+
return [
|
361
|
+
2,
|
362
|
+
3
|
363
|
+
/* Payment */
|
364
|
+
].includes(this.step) ? this.t("HotelRoomOffersBookingFlow.back") : this.t("HotelRoomOffersBookingFlow.makeNewBooking");
|
365
|
+
},
|
366
|
+
hotelRoomOffersViewProps() {
|
367
|
+
const e = {
|
368
|
+
...this.lastRequest,
|
369
|
+
...this.$props,
|
370
|
+
features: this.$props.features?.HotelRoomOffersView
|
371
|
+
};
|
372
|
+
return this.bookingPolicy && (e.adultCount = this.bookingPolicy.adultCount, e.children = this.bookingPolicy.children ?? null, e.checkInDate = this.bookingPolicy.checkInDate, e.checkOutDate = this.bookingPolicy.checkOutDate), e;
|
373
|
+
},
|
374
|
+
isWarningSnackarDisplayed() {
|
375
|
+
return this.warningSnackbarMessages.length > 0;
|
376
|
+
},
|
377
|
+
prebookFormProps() {
|
378
|
+
const e = {
|
379
|
+
...this.$props,
|
380
|
+
...this.lastRequest,
|
381
|
+
...this.formdata,
|
382
|
+
features: this.$props.features?.PrebookForm
|
383
|
+
};
|
384
|
+
return this.bookingPolicy && (e.adultCount = this.bookingPolicy.adultCount, e.children = this.bookingPolicy.children ?? null, e.checkInDate = this.bookingPolicy.checkInDate, e.checkOutDate = this.bookingPolicy.checkOutDate), e;
|
385
|
+
},
|
386
|
+
transitionName() {
|
387
|
+
return this.direction > 0 ? "slide-in" : "slide-out";
|
388
|
+
}
|
389
|
+
},
|
390
|
+
created() {
|
391
|
+
this.$eventBus.$on(
|
392
|
+
S.BookingPolicyCreated,
|
393
|
+
this.onBookingPolicyCreated
|
394
|
+
), this.$eventBus.$on(
|
395
|
+
S.HotelRoomOffersPriceIncreased,
|
396
|
+
([e, o]) => {
|
397
|
+
this.warningSnackbarMessages.push(
|
398
|
+
this.t("HotelRoomOffersBookingFlow.warnings.price", {
|
399
|
+
from: ee({
|
400
|
+
amount: o.taxIncludedPrice,
|
401
|
+
currency: this.config.currency,
|
402
|
+
locale: this.$i18n.locale
|
403
|
+
}),
|
404
|
+
to: ee({
|
405
|
+
amount: e.taxIncludedPrice,
|
406
|
+
currency: this.config.currency,
|
407
|
+
locale: this.$i18n.locale
|
408
|
+
})
|
409
|
+
}).toString()
|
410
|
+
);
|
411
|
+
}
|
412
|
+
), this.$eventBus.$on(S.CancellationPoliciesUpdated, () => {
|
413
|
+
this.warningSnackbarMessages.push(
|
414
|
+
this.t(
|
415
|
+
"HotelRoomOffersBookingFlow.warnings.cancellationPolicies"
|
416
|
+
).toString()
|
417
|
+
);
|
418
|
+
}), this.$eventBus.$on(
|
419
|
+
S.HotelRoomOfferRequestCreated,
|
420
|
+
(e) => {
|
421
|
+
this.lastRequest = e;
|
422
|
+
}
|
423
|
+
), this.$eventBus.$on(S.CurrencyUpdated, () => this.cancelBooking()), this.$eventBus.$on(S.BookingCreated, this.onBookingCreated), this.$eventBus.$on(S.PaymentSuccess, this.onPaymentSuccess), this.$eventBus.$on(S.PrebookForm, (e) => {
|
424
|
+
this.formdata = e;
|
425
|
+
});
|
426
|
+
},
|
427
|
+
data: () => ({
|
428
|
+
STEPS: ge,
|
429
|
+
booking: void 0,
|
430
|
+
bookingPolicy: void 0,
|
431
|
+
countdownSnackbar: !1,
|
432
|
+
direction: 1,
|
433
|
+
formdata: void 0,
|
434
|
+
lastRequest: void 0,
|
435
|
+
step: 1,
|
436
|
+
warningSnackbarMessages: []
|
437
|
+
}),
|
438
|
+
methods: {
|
439
|
+
cancelBooking() {
|
440
|
+
this.direction = -1, this.step = 1, this.bookingPolicy = void 0, this.booking = void 0, this.warningSnackbarMessages = [];
|
441
|
+
},
|
442
|
+
cancelPayment() {
|
443
|
+
this.direction = -1, this.step = 2;
|
444
|
+
},
|
445
|
+
onAfterLeave() {
|
446
|
+
this.direction = 1;
|
447
|
+
},
|
448
|
+
onBackButtonClick() {
|
449
|
+
[
|
450
|
+
2,
|
451
|
+
5
|
452
|
+
/* PaymentSuccessful */
|
453
|
+
].includes(this.step) ? this.cancelBooking() : this.step === 3 && this.cancelPayment();
|
454
|
+
},
|
455
|
+
onBookingCreated(e) {
|
456
|
+
this.booking = e, e && (Q(), this.direction = 1, this.step = 3);
|
457
|
+
},
|
458
|
+
onBookingPolicyCreated(e) {
|
459
|
+
this.bookingPolicy = e, e && (Q(), this.direction = 1, this.step = 2);
|
460
|
+
},
|
461
|
+
onCountdownEnd() {
|
462
|
+
this.countdownSnackbar = !0, this.cancelBooking();
|
463
|
+
},
|
464
|
+
onPaymentSuccess() {
|
465
|
+
this.direction = 1, this.step = 5;
|
466
|
+
},
|
467
|
+
transformCountdownTimer(e) {
|
468
|
+
const o = {};
|
469
|
+
for (const [s, n] of Object.entries(e)) {
|
470
|
+
const a = n < 10 ? `0${n}` : n;
|
471
|
+
o[s] = `${a}`;
|
472
|
+
}
|
473
|
+
return o;
|
474
|
+
}
|
475
|
+
},
|
476
|
+
mixins: [
|
477
|
+
je,
|
478
|
+
Ze({
|
479
|
+
fallbackValue: he,
|
480
|
+
propsName: "features"
|
481
|
+
})
|
482
|
+
],
|
483
|
+
props: ve,
|
484
|
+
setup() {
|
485
|
+
const { t: e } = _e();
|
486
|
+
return {
|
487
|
+
t: e
|
488
|
+
};
|
489
|
+
}
|
490
|
+
});
|
491
|
+
function me(e) {
|
492
|
+
const o = e;
|
493
|
+
o.__i18n = o.__i18n || [], o.__i18n.push({
|
494
|
+
locale: "",
|
495
|
+
resource: {
|
496
|
+
"en-US": {
|
497
|
+
HotelRoomOffersBookingFlow: {
|
498
|
+
back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Go back" } },
|
499
|
+
makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Make a new reservation" } },
|
500
|
+
steps: {
|
501
|
+
yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Your Selection" } },
|
502
|
+
yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Your Details" } },
|
503
|
+
finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Final Step" } }
|
504
|
+
},
|
505
|
+
timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please complete registration and payment within 15 minutes." } },
|
506
|
+
timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "After 15 minutes, the reservation we're holding will be released to others." } },
|
507
|
+
timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sorry, you took too long to complete your reservation. You can still choose an offer." } },
|
508
|
+
warnings: {
|
509
|
+
cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "The selected rate's cancellation policies have changed and are more restrictive than previously stated." } },
|
510
|
+
price: { t: 0, b: { t: 2, i: [{ t: 3, v: "The selected rate's increased compared to the previous step from " }, { t: 4, k: "from" }, { t: 3, v: " to " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
|
511
|
+
}
|
512
|
+
}
|
513
|
+
},
|
514
|
+
"fr-FR": {
|
515
|
+
HotelRoomOffersBookingFlow: {
|
516
|
+
back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Revenir en arrière" } },
|
517
|
+
makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Effectuer une nouvelle reservation" } },
|
518
|
+
steps: {
|
519
|
+
yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Votre Sélection" } },
|
520
|
+
yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vos Informations" } },
|
521
|
+
finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dernière Étape" } }
|
522
|
+
},
|
523
|
+
timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez terminer votre réservation dans les 15 prochaines minutes." } },
|
524
|
+
timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Au-delà de 15 minutes, la réservation que nous retenons sera à nouveau disponible pour les autres." } },
|
525
|
+
timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Désolé, vous avez dépassé le délai pour finaliser votre réservation. Veuillez sélectionner de nouveau une offre." } },
|
526
|
+
warnings: {
|
527
|
+
cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Les conditions d'annulation de l'offre sélectionnée ont changées et sont plus contraignantes que celles de l'offre initialement sélectionnée." } },
|
528
|
+
price: { t: 0, b: { t: 2, i: [{ t: 3, v: "Le prix de l'offre sélectionnée a augmenté par rapport à l'étape précédente de " }, { t: 4, k: "from" }, { t: 3, v: " à " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
|
529
|
+
}
|
530
|
+
}
|
531
|
+
},
|
532
|
+
"de-DE": {
|
533
|
+
HotelRoomOffersBookingFlow: {
|
534
|
+
back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zurück" } },
|
535
|
+
makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Neue Reservierung erstellen" } },
|
536
|
+
steps: {
|
537
|
+
yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ihre Auswahl" } },
|
538
|
+
yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ihre Angaben" } },
|
539
|
+
finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Letzter Schritt" } }
|
540
|
+
},
|
541
|
+
timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte schließen Sie die Registrierung und Zahlung innerhalb von 15 Minuten ab." } },
|
542
|
+
timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nach 15 Minuten wird die Reservierung, die wir halten, für andere freigegeben." } },
|
543
|
+
timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Es tut uns leid, Sie haben zu lange gebraucht, um Ihre Reservierung abzuschließen. Sie können trotzdem noch ein Angebot auswählen." } },
|
544
|
+
warnings: {
|
545
|
+
cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Die Stornierungsbedingungen des ausgewählten Tarifs haben sich geändert und sind restriktiver als zuvor angegeben." } },
|
546
|
+
price: { t: 0, b: { t: 2, i: [{ t: 3, v: "Der Preis des ausgewählten Tarifs hat sich im Vergleich zum vorherigen Schritt von " }, { t: 4, k: "from" }, { t: 3, v: " auf " }, { t: 4, k: "to" }, { t: 3, v: " erhöht." }] } }
|
547
|
+
}
|
548
|
+
}
|
549
|
+
},
|
550
|
+
"es-ES": {
|
551
|
+
HotelRoomOffersBookingFlow: {
|
552
|
+
back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Volver atrás" } },
|
553
|
+
makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Hacer una nueva reserva" } },
|
554
|
+
steps: {
|
555
|
+
yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Tu Selección" } },
|
556
|
+
yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Tus Datos" } },
|
557
|
+
finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paso Final" } }
|
558
|
+
},
|
559
|
+
timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, complete el registro y el pago en 15 minutos." } },
|
560
|
+
timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Después de 15 minutos, la reserva que estamos reteniendo se liberará para otros." } },
|
561
|
+
timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lo sentimos, tardaste demasiado en completar tu reserva. Aún puedes elegir una oferta." } },
|
562
|
+
warnings: {
|
563
|
+
cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Las políticas de cancelación de la tarifa seleccionada han cambiado y son más restrictivas de lo que se indicó anteriormente." } },
|
564
|
+
price: { t: 0, b: { t: 2, i: [{ t: 3, v: "El precio de la tarifa seleccionada ha aumentado en comparación con el paso anterior de " }, { t: 4, k: "from" }, { t: 3, v: " a " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
|
565
|
+
}
|
566
|
+
}
|
567
|
+
},
|
568
|
+
"it-IT": {
|
569
|
+
HotelRoomOffersBookingFlow: {
|
570
|
+
back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Torna indietro" } },
|
571
|
+
makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Effettua una nuova prenotazione" } },
|
572
|
+
steps: {
|
573
|
+
yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La Tua Selezione" } },
|
574
|
+
yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "I Tuoi Dettagli" } },
|
575
|
+
finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Passaggio Finale" } }
|
576
|
+
},
|
577
|
+
timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Si prega di completare la registrazione e il pagamento entro 15 minuti." } },
|
578
|
+
timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dopo 15 minuti, la prenotazione che stiamo trattenendo verrà rilasciata ad altri clienti." } },
|
579
|
+
timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Siamo spiacenti, hai impiegato troppo tempo per completare la prenotazione. Puoi comunque scegliere un'offerta." } },
|
580
|
+
warnings: {
|
581
|
+
cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Le politiche di cancellazione della tariffa selezionata sono cambiate e sono più restrittive di quanto dichiarato in precedenza." } },
|
582
|
+
price: { t: 0, b: { t: 2, i: [{ t: 3, v: "Il prezzo della tariffa selezionata è aumentato rispetto al passaggio precedente da " }, { t: 4, k: "from" }, { t: 3, v: " a " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
|
583
|
+
}
|
584
|
+
}
|
585
|
+
},
|
586
|
+
"nl-NL": {
|
587
|
+
HotelRoomOffersBookingFlow: {
|
588
|
+
back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ga terug" } },
|
589
|
+
makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Maak een nieuwe reservering" } },
|
590
|
+
steps: {
|
591
|
+
yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Uw Selectie" } },
|
592
|
+
yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Uw Gegevens" } },
|
593
|
+
finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Laatste Stap" } }
|
594
|
+
},
|
595
|
+
timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voltooi de registratie en betaling binnen 15 minuten." } },
|
596
|
+
timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Na 15 minuten wordt de reservering die we vasthouden vrijgegeven aan anderen." } },
|
597
|
+
timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sorry, u hebt er te lang over gedaan om uw reservering te voltooien. U kunt nog steeds een aanbieding kiezen." } },
|
598
|
+
warnings: {
|
599
|
+
cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Het annuleringsbeleid van het geselecteerde tarief is gewijzigd en is restrictiever dan eerder vermeld." } },
|
600
|
+
price: { t: 0, b: { t: 2, i: [{ t: 3, v: "De prijs van het geselecteerde tarief is verhoogd ten opzichte van de vorige stap van " }, { t: 4, k: "from" }, { t: 3, v: " naar " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
|
601
|
+
}
|
602
|
+
}
|
603
|
+
},
|
604
|
+
"pt-PT": {
|
605
|
+
HotelRoomOffersBookingFlow: {
|
606
|
+
back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voltar" } },
|
607
|
+
makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Fazer uma nova reserva" } },
|
608
|
+
steps: {
|
609
|
+
yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "A Sua Seleção" } },
|
610
|
+
yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Os Seus Dados" } },
|
611
|
+
finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Passo Final" } }
|
612
|
+
},
|
613
|
+
timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, complete o registo e o pagamento dentro de 15 minutos." } },
|
614
|
+
timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Após 15 minutos, a reserva que estamos a guardar será libertada para outros." } },
|
615
|
+
timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Desculpe, demorou demasiado tempo a concluir a sua reserva. Ainda pode escolher uma oferta." } },
|
616
|
+
warnings: {
|
617
|
+
cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "As políticas de cancelamento da tarifa selecionada foram alteradas e são mais restritivas do que o indicado anteriormente." } },
|
618
|
+
price: { t: 0, b: { t: 2, i: [{ t: 3, v: "O preço da tarifa selecionada aumentou em comparação com o passo anterior de " }, { t: 4, k: "from" }, { t: 3, v: " para " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
|
619
|
+
}
|
620
|
+
}
|
621
|
+
}
|
622
|
+
}
|
623
|
+
});
|
624
|
+
}
|
625
|
+
const Y = Symbol.for("vuetify:v-stepper"), ke = V({
|
626
|
+
color: String,
|
627
|
+
disabled: {
|
628
|
+
type: [Boolean, String],
|
629
|
+
default: !1
|
630
|
+
},
|
631
|
+
prevText: {
|
632
|
+
type: String,
|
633
|
+
default: "$vuetify.stepper.prev"
|
634
|
+
},
|
635
|
+
nextText: {
|
636
|
+
type: String,
|
637
|
+
default: "$vuetify.stepper.next"
|
638
|
+
}
|
639
|
+
}, "VStepperActions"), dt = _()({
|
640
|
+
name: "VStepperActions",
|
641
|
+
props: ke(),
|
642
|
+
emits: {
|
643
|
+
"click:prev": () => !0,
|
644
|
+
"click:next": () => !0
|
645
|
+
},
|
646
|
+
setup(e, o) {
|
647
|
+
let {
|
648
|
+
emit: s,
|
649
|
+
slots: n
|
650
|
+
} = o;
|
651
|
+
const {
|
652
|
+
t: a
|
653
|
+
} = Fe();
|
654
|
+
function r() {
|
655
|
+
s("click:prev");
|
656
|
+
}
|
657
|
+
function u() {
|
658
|
+
s("click:next");
|
659
|
+
}
|
660
|
+
return F(() => {
|
661
|
+
const c = {
|
662
|
+
onClick: r
|
663
|
+
}, m = {
|
664
|
+
onClick: u
|
665
|
+
};
|
666
|
+
return t("div", {
|
667
|
+
class: "v-stepper-actions"
|
668
|
+
}, [t(oe, {
|
669
|
+
defaults: {
|
670
|
+
VBtn: {
|
671
|
+
disabled: ["prev", !0].includes(e.disabled),
|
672
|
+
text: a(e.prevText),
|
673
|
+
variant: "text"
|
674
|
+
}
|
675
|
+
}
|
676
|
+
}, {
|
677
|
+
default: () => [n.prev?.({
|
678
|
+
props: c
|
679
|
+
}) ?? t(z, c, null)]
|
680
|
+
}), t(oe, {
|
681
|
+
defaults: {
|
682
|
+
VBtn: {
|
683
|
+
color: e.color,
|
684
|
+
disabled: ["next", !0].includes(e.disabled),
|
685
|
+
text: a(e.nextText),
|
686
|
+
variant: "tonal"
|
687
|
+
}
|
688
|
+
}
|
689
|
+
}, {
|
690
|
+
default: () => [n.next?.({
|
691
|
+
props: m
|
692
|
+
}) ?? t(z, m, null)]
|
693
|
+
})]);
|
694
|
+
}), {};
|
695
|
+
}
|
696
|
+
}), Se = Xe("v-stepper-header"), mt = V({
|
697
|
+
color: String,
|
698
|
+
title: String,
|
699
|
+
subtitle: String,
|
700
|
+
complete: Boolean,
|
701
|
+
completeIcon: {
|
702
|
+
type: P,
|
703
|
+
default: "$complete"
|
704
|
+
},
|
705
|
+
editable: Boolean,
|
706
|
+
editIcon: {
|
707
|
+
type: P,
|
708
|
+
default: "$edit"
|
709
|
+
},
|
710
|
+
error: Boolean,
|
711
|
+
errorIcon: {
|
712
|
+
type: P,
|
713
|
+
default: "$error"
|
714
|
+
},
|
715
|
+
icon: P,
|
716
|
+
ripple: {
|
717
|
+
type: [Boolean, Object],
|
718
|
+
default: !0
|
719
|
+
},
|
720
|
+
rules: {
|
721
|
+
type: Array,
|
722
|
+
default: () => []
|
723
|
+
}
|
724
|
+
}, "StepperItem"), pt = V({
|
725
|
+
...mt(),
|
726
|
+
...st()
|
727
|
+
}, "VStepperItem"), N = _()({
|
728
|
+
name: "VStepperItem",
|
729
|
+
directives: {
|
730
|
+
Ripple: Qe
|
731
|
+
},
|
732
|
+
props: pt(),
|
733
|
+
emits: {
|
734
|
+
"group:selected": (e) => !0
|
735
|
+
},
|
736
|
+
setup(e, o) {
|
737
|
+
let {
|
738
|
+
slots: s
|
739
|
+
} = o;
|
740
|
+
const n = et(e, Y, !0), a = d(() => n?.value.value ?? e.value), r = d(() => e.rules.every((R) => R() === !0)), u = d(() => !e.disabled && e.editable), c = d(() => !e.disabled && e.editable), m = d(() => e.error || !r.value), b = d(() => e.complete || e.rules.length > 0 && r.value), l = d(() => m.value ? e.errorIcon : b.value ? e.completeIcon : n.isSelected.value && e.editable ? e.editIcon : e.icon), v = d(() => ({
|
741
|
+
canEdit: c.value,
|
742
|
+
hasError: m.value,
|
743
|
+
hasCompleted: b.value,
|
744
|
+
title: e.title,
|
745
|
+
subtitle: e.subtitle,
|
746
|
+
step: a.value,
|
747
|
+
value: e.value
|
748
|
+
}));
|
749
|
+
return F(() => {
|
750
|
+
const R = (!n || n.isSelected.value || b.value || c.value) && !m.value && !e.disabled, W = !!(e.title != null || s.title), M = !!(e.subtitle != null || s.subtitle);
|
751
|
+
function D() {
|
752
|
+
n?.toggle();
|
753
|
+
}
|
754
|
+
return Me(t("button", {
|
755
|
+
class: ["v-stepper-item", {
|
756
|
+
"v-stepper-item--complete": b.value,
|
757
|
+
"v-stepper-item--disabled": e.disabled,
|
758
|
+
"v-stepper-item--error": m.value
|
759
|
+
}, n?.selectedClass.value],
|
760
|
+
disabled: !e.editable,
|
761
|
+
type: "button",
|
762
|
+
onClick: D
|
763
|
+
}, [u.value && tt(!0, "v-stepper-item"), t(ot, {
|
764
|
+
key: "stepper-avatar",
|
765
|
+
class: "v-stepper-item__avatar",
|
766
|
+
color: R ? e.color : void 0,
|
767
|
+
size: 24
|
768
|
+
}, {
|
769
|
+
default: () => [s.icon?.(v.value) ?? (l.value ? t(I, {
|
770
|
+
icon: l.value
|
771
|
+
}, null) : a.value)]
|
772
|
+
}), t("div", {
|
773
|
+
class: "v-stepper-item__content"
|
774
|
+
}, [W && t("div", {
|
775
|
+
key: "title",
|
776
|
+
class: "v-stepper-item__title"
|
777
|
+
}, [s.title?.(v.value) ?? e.title]), M && t("div", {
|
778
|
+
key: "subtitle",
|
779
|
+
class: "v-stepper-item__subtitle"
|
780
|
+
}, [s.subtitle?.(v.value) ?? e.subtitle]), s.default?.(v.value)])]), [[De("ripple"), e.ripple && e.editable, null]]);
|
781
|
+
}), {};
|
782
|
+
}
|
783
|
+
}), ft = V({
|
784
|
+
...$e(at(), ["continuous", "nextIcon", "prevIcon", "showArrows", "touch", "mandatory"])
|
785
|
+
}, "VStepperWindow"), ht = _()({
|
786
|
+
name: "VStepperWindow",
|
787
|
+
props: ft(),
|
788
|
+
emits: {
|
789
|
+
"update:modelValue": (e) => !0
|
790
|
+
},
|
791
|
+
setup(e, o) {
|
792
|
+
let {
|
793
|
+
slots: s
|
794
|
+
} = o;
|
795
|
+
const n = He(Y, null), a = Le(e, "modelValue"), r = d({
|
796
|
+
get() {
|
797
|
+
return a.value != null || !n ? a.value : n.items.value.find((u) => n.selected.value.includes(u.id))?.value;
|
798
|
+
},
|
799
|
+
set(u) {
|
800
|
+
a.value = u;
|
801
|
+
}
|
802
|
+
});
|
803
|
+
return F(() => {
|
804
|
+
const u = se.filterProps(e);
|
805
|
+
return t(se, C({
|
806
|
+
_as: "VStepperWindow"
|
807
|
+
}, u, {
|
808
|
+
modelValue: r.value,
|
809
|
+
"onUpdate:modelValue": (c) => r.value = c,
|
810
|
+
class: ["v-stepper-window", e.class],
|
811
|
+
style: e.style,
|
812
|
+
mandatory: !1,
|
813
|
+
touch: !1
|
814
|
+
}), s);
|
815
|
+
}), {};
|
816
|
+
}
|
817
|
+
}), vt = V({
|
818
|
+
...rt()
|
819
|
+
}, "VStepperWindowItem"), gt = _()({
|
820
|
+
name: "VStepperWindowItem",
|
821
|
+
props: vt(),
|
822
|
+
setup(e, o) {
|
823
|
+
let {
|
824
|
+
slots: s
|
825
|
+
} = o;
|
826
|
+
return F(() => {
|
827
|
+
const n = ie.filterProps(e);
|
828
|
+
return t(ie, C({
|
829
|
+
_as: "VStepperWindowItem"
|
830
|
+
}, n, {
|
831
|
+
class: ["v-stepper-window-item", e.class],
|
832
|
+
style: e.style
|
833
|
+
}), s);
|
834
|
+
}), {};
|
835
|
+
}
|
836
|
+
}), bt = V({
|
837
|
+
altLabels: Boolean,
|
838
|
+
bgColor: String,
|
839
|
+
completeIcon: P,
|
840
|
+
editIcon: P,
|
841
|
+
editable: Boolean,
|
842
|
+
errorIcon: P,
|
843
|
+
hideActions: Boolean,
|
844
|
+
items: {
|
845
|
+
type: Array,
|
846
|
+
default: () => []
|
847
|
+
},
|
848
|
+
itemTitle: {
|
849
|
+
type: String,
|
850
|
+
default: "title"
|
851
|
+
},
|
852
|
+
itemValue: {
|
853
|
+
type: String,
|
854
|
+
default: "value"
|
855
|
+
},
|
856
|
+
nonLinear: Boolean,
|
857
|
+
flat: Boolean,
|
858
|
+
...qe()
|
859
|
+
}, "Stepper"), kt = V({
|
860
|
+
...bt(),
|
861
|
+
...nt({
|
862
|
+
mandatory: "force",
|
863
|
+
selectedClass: "v-stepper-item--selected"
|
864
|
+
}),
|
865
|
+
...lt(),
|
866
|
+
...We(ke(), ["prevText", "nextText"])
|
867
|
+
}, "VStepper"), St = _()({
|
868
|
+
name: "VStepper",
|
869
|
+
props: kt(),
|
870
|
+
emits: {
|
871
|
+
"update:modelValue": (e) => !0
|
872
|
+
},
|
873
|
+
setup(e, o) {
|
874
|
+
let {
|
875
|
+
slots: s
|
876
|
+
} = o;
|
877
|
+
const {
|
878
|
+
items: n,
|
879
|
+
next: a,
|
880
|
+
prev: r,
|
881
|
+
selected: u
|
882
|
+
} = it(e, Y), {
|
883
|
+
displayClasses: c,
|
884
|
+
mobile: m
|
885
|
+
} = Ae(e), {
|
886
|
+
completeIcon: b,
|
887
|
+
editIcon: l,
|
888
|
+
errorIcon: v,
|
889
|
+
color: R,
|
890
|
+
editable: W,
|
891
|
+
prevText: M,
|
892
|
+
nextText: D
|
893
|
+
} = Ne(e), j = d(() => e.items.map((k, q) => {
|
894
|
+
const H = J(k, e.itemTitle, k), U = J(k, e.itemValue, q + 1);
|
895
|
+
return {
|
896
|
+
title: H,
|
897
|
+
value: U,
|
898
|
+
raw: k
|
899
|
+
};
|
900
|
+
})), K = d(() => n.value.findIndex((k) => u.value.includes(k.id))), ye = d(() => e.disabled ? e.disabled : K.value === 0 ? "prev" : K.value === n.value.length - 1 ? "next" : !1);
|
901
|
+
return ze({
|
902
|
+
VStepperItem: {
|
903
|
+
editable: W,
|
904
|
+
errorIcon: v,
|
905
|
+
completeIcon: b,
|
906
|
+
editIcon: l,
|
907
|
+
prevText: M,
|
908
|
+
nextText: D
|
909
|
+
},
|
910
|
+
VStepperActions: {
|
911
|
+
color: R,
|
912
|
+
disabled: ye,
|
913
|
+
prevText: M,
|
914
|
+
nextText: D
|
915
|
+
}
|
916
|
+
}), F(() => {
|
917
|
+
const k = ne.filterProps(e), q = !!(s.header || e.items.length), H = e.items.length > 0, U = !e.hideActions && !!(H || s.actions);
|
918
|
+
return t(ne, C(k, {
|
919
|
+
color: e.bgColor,
|
920
|
+
class: ["v-stepper", {
|
921
|
+
"v-stepper--alt-labels": e.altLabels,
|
922
|
+
"v-stepper--flat": e.flat,
|
923
|
+
"v-stepper--non-linear": e.nonLinear,
|
924
|
+
"v-stepper--mobile": m.value
|
925
|
+
}, c.value, e.class],
|
926
|
+
style: e.style
|
927
|
+
}), {
|
928
|
+
default: () => [q && t(Se, {
|
929
|
+
key: "stepper-header"
|
930
|
+
}, {
|
931
|
+
default: () => [j.value.map((E, we) => {
|
932
|
+
let {
|
933
|
+
raw: Ft,
|
934
|
+
...Z
|
935
|
+
} = E;
|
936
|
+
return t(pe, null, [!!we && t(G, null, null), t(N, Z, {
|
937
|
+
default: s[`header-item.${Z.value}`] ?? s.header,
|
938
|
+
icon: s.icon,
|
939
|
+
title: s.title,
|
940
|
+
subtitle: s.subtitle
|
941
|
+
})]);
|
942
|
+
})]
|
943
|
+
}), H && t(ht, {
|
944
|
+
key: "stepper-window"
|
945
|
+
}, {
|
946
|
+
default: () => [j.value.map((E) => t(gt, {
|
947
|
+
value: E.value
|
948
|
+
}, {
|
949
|
+
default: () => s[`item.${E.value}`]?.(E) ?? s.item?.(E)
|
950
|
+
}))]
|
951
|
+
}), s.default?.({
|
952
|
+
prev: r,
|
953
|
+
next: a
|
954
|
+
}), U && (s.actions?.({
|
955
|
+
next: a,
|
956
|
+
prev: r
|
957
|
+
}) ?? t(dt, {
|
958
|
+
key: "stepper-actions",
|
959
|
+
"onClick:prev": r,
|
960
|
+
"onClick:next": a
|
961
|
+
}, s))]
|
962
|
+
});
|
963
|
+
}), {
|
964
|
+
prev: r,
|
965
|
+
next: a
|
966
|
+
};
|
967
|
+
}
|
968
|
+
}), yt = { class: "pl-3" }, wt = { class: "text-grey-darken-3 font-weight-bold" }, Pt = { class: "text-grey-darken-3 font-weight-bold" }, Vt = { class: "text-grey-darken-3 font-weight-bold" }, Et = { class: "text-h5 mx-sm-2 px-sm-2 mx-md-6 px-md-6 mx-lg-10 px-lg-10 mx-xl-16 px-xl-16" }, Bt = { class: "pl-5 ma-0" }, Ot = { class: "font-weight-bold" }, It = { class: "font-weight-bold" };
|
969
|
+
function Tt(e, o, s, n, a, r) {
|
970
|
+
const u = T("VueCountdown"), c = T("PrebookForm"), m = T("CreditCardPayment"), b = T("HotelRoomOffersView");
|
971
|
+
return p(), g(O, { dense: "" }, {
|
972
|
+
default: i(() => [
|
973
|
+
t(te, {
|
974
|
+
modelValue: e.isWarningSnackarDisplayed,
|
975
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.isWarningSnackarDisplayed = l),
|
976
|
+
color: "warning",
|
977
|
+
class: "elevation-0",
|
978
|
+
"max-width": "1000px",
|
979
|
+
timeout: -1,
|
980
|
+
location: "top"
|
981
|
+
}, {
|
982
|
+
actions: i(({ isActive: l }) => [
|
983
|
+
t(z, {
|
984
|
+
color: "white",
|
985
|
+
variant: "text",
|
986
|
+
onClick: () => {
|
987
|
+
l.value = !1, e.warningSnackbarMessages = [];
|
988
|
+
}
|
989
|
+
}, {
|
990
|
+
default: i(() => [
|
991
|
+
t(I, {
|
992
|
+
color: "white",
|
993
|
+
size: "16"
|
994
|
+
}, {
|
995
|
+
default: i(() => o[4] || (o[4] = [
|
996
|
+
y(" fas fa-times ")
|
997
|
+
])),
|
998
|
+
_: 1,
|
999
|
+
__: [4]
|
1000
|
+
})
|
1001
|
+
]),
|
1002
|
+
_: 2
|
1003
|
+
}, 1032, ["onClick"])
|
1004
|
+
]),
|
1005
|
+
default: i(() => [
|
1006
|
+
(p(!0), X(pe, null, Ue(e.warningSnackbarMessages, (l, v) => (p(), X("p", {
|
1007
|
+
key: v,
|
1008
|
+
class: "text-white ma-0"
|
1009
|
+
}, [
|
1010
|
+
v === 0 ? (p(), g(I, {
|
1011
|
+
key: 0,
|
1012
|
+
color: "white",
|
1013
|
+
size: "20"
|
1014
|
+
}, {
|
1015
|
+
default: i(() => o[3] || (o[3] = [
|
1016
|
+
y(" fas fa-triangle-exclamation ")
|
1017
|
+
])),
|
1018
|
+
_: 1,
|
1019
|
+
__: [3]
|
1020
|
+
})) : B("", !0),
|
1021
|
+
f("span", yt, h(l), 1)
|
1022
|
+
]))), 128))
|
1023
|
+
]),
|
1024
|
+
_: 1
|
1025
|
+
}, 8, ["modelValue"]),
|
1026
|
+
t(w, null, {
|
1027
|
+
default: i(() => [
|
1028
|
+
[e.STEPS.PreBook, e.STEPS.Payment, e.STEPS.PaymentSuccessful].includes(e.step) ? (p(), g(O, {
|
1029
|
+
key: 0,
|
1030
|
+
dense: ""
|
1031
|
+
}, {
|
1032
|
+
default: i(() => [
|
1033
|
+
t(w, {
|
1034
|
+
"align-self": "center",
|
1035
|
+
cols: "12",
|
1036
|
+
sm: "3"
|
1037
|
+
}, {
|
1038
|
+
default: i(() => [
|
1039
|
+
t(z, {
|
1040
|
+
variant: "text",
|
1041
|
+
size: "x-small",
|
1042
|
+
onClick: e.onBackButtonClick
|
1043
|
+
}, {
|
1044
|
+
default: i(() => [
|
1045
|
+
t(I, {
|
1046
|
+
start: "",
|
1047
|
+
size: "x-small"
|
1048
|
+
}, {
|
1049
|
+
default: i(() => o[5] || (o[5] = [
|
1050
|
+
y(" fas fa-arrow-left ")
|
1051
|
+
])),
|
1052
|
+
_: 1,
|
1053
|
+
__: [5]
|
1054
|
+
}),
|
1055
|
+
y(" " + h(e.backButtonLabel), 1)
|
1056
|
+
]),
|
1057
|
+
_: 1
|
1058
|
+
}, 8, ["onClick"])
|
1059
|
+
]),
|
1060
|
+
_: 1
|
1061
|
+
}),
|
1062
|
+
[e.STEPS.PreBook, e.STEPS.Payment, e.STEPS.PaymentSuccessful].includes(
|
1063
|
+
e.step
|
1064
|
+
) ? (p(), g(w, {
|
1065
|
+
key: 0,
|
1066
|
+
cols: "12",
|
1067
|
+
sm: "9"
|
1068
|
+
}, {
|
1069
|
+
default: i(() => [
|
1070
|
+
t(St, {
|
1071
|
+
class: "bg-transparent",
|
1072
|
+
modelValue: e.step,
|
1073
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => e.step = l),
|
1074
|
+
elevation: "0"
|
1075
|
+
}, {
|
1076
|
+
default: i(() => [
|
1077
|
+
t(Se, { color: "primary" }, {
|
1078
|
+
default: i(() => [
|
1079
|
+
t(N, {
|
1080
|
+
color: "primary",
|
1081
|
+
complete: "",
|
1082
|
+
value: e.STEPS.Idle
|
1083
|
+
}, {
|
1084
|
+
default: i(() => [
|
1085
|
+
f("small", wt, h(e.t("HotelRoomOffersBookingFlow.steps.yourSelection")), 1)
|
1086
|
+
]),
|
1087
|
+
_: 1
|
1088
|
+
}, 8, ["value"]),
|
1089
|
+
t(G),
|
1090
|
+
t(N, {
|
1091
|
+
color: "primary",
|
1092
|
+
complete: [e.STEPS.PaymentSuccessful, e.STEPS.Payment].includes(e.step),
|
1093
|
+
value: e.STEPS.PreBook
|
1094
|
+
}, {
|
1095
|
+
default: i(() => [
|
1096
|
+
f("small", Pt, h(e.t("HotelRoomOffersBookingFlow.steps.yourDetails")), 1)
|
1097
|
+
]),
|
1098
|
+
_: 1
|
1099
|
+
}, 8, ["complete", "value"]),
|
1100
|
+
t(G),
|
1101
|
+
t(N, {
|
1102
|
+
color: "primary",
|
1103
|
+
complete: e.step === e.STEPS.PaymentSuccessful,
|
1104
|
+
value: e.STEPS.Payment
|
1105
|
+
}, {
|
1106
|
+
default: i(() => [
|
1107
|
+
f("small", Vt, h(e.t("HotelRoomOffersBookingFlow.steps.finalStep")), 1)
|
1108
|
+
]),
|
1109
|
+
_: 1
|
1110
|
+
}, 8, ["complete", "value"])
|
1111
|
+
]),
|
1112
|
+
_: 1
|
1113
|
+
})
|
1114
|
+
]),
|
1115
|
+
_: 1
|
1116
|
+
}, 8, ["modelValue"])
|
1117
|
+
]),
|
1118
|
+
_: 1
|
1119
|
+
})) : B("", !0)
|
1120
|
+
]),
|
1121
|
+
_: 1
|
1122
|
+
})) : B("", !0),
|
1123
|
+
[e.STEPS.PreBook, e.STEPS.Payment].includes(e.step) ? (p(), g(O, {
|
1124
|
+
key: 1,
|
1125
|
+
dense: ""
|
1126
|
+
}, {
|
1127
|
+
default: i(() => [
|
1128
|
+
t(w, null, {
|
1129
|
+
default: i(() => [
|
1130
|
+
t(ut, {
|
1131
|
+
color: "primary",
|
1132
|
+
border: "start",
|
1133
|
+
"border-color": "primary",
|
1134
|
+
variant: "tonal",
|
1135
|
+
prominent: "",
|
1136
|
+
type: "info"
|
1137
|
+
}, {
|
1138
|
+
prepend: i(() => [
|
1139
|
+
f("b", Et, [
|
1140
|
+
t(I, {
|
1141
|
+
class: "d-none d-md-inline-block mr-2 mb-1",
|
1142
|
+
color: "primary",
|
1143
|
+
size: "24px"
|
1144
|
+
}, {
|
1145
|
+
default: i(() => o[6] || (o[6] = [
|
1146
|
+
y(" fas fa-stopwatch")
|
1147
|
+
])),
|
1148
|
+
_: 1,
|
1149
|
+
__: [6]
|
1150
|
+
}),
|
1151
|
+
t(u, {
|
1152
|
+
time: 900 * 1e3,
|
1153
|
+
transform: e.transformCountdownTimer,
|
1154
|
+
onEnd: e.onCountdownEnd
|
1155
|
+
}, {
|
1156
|
+
default: i((l) => [
|
1157
|
+
y(h(l.minutes) + ":" + h(l.seconds), 1)
|
1158
|
+
]),
|
1159
|
+
_: 1
|
1160
|
+
}, 8, ["transform", "onEnd"])
|
1161
|
+
])
|
1162
|
+
]),
|
1163
|
+
default: i(() => [
|
1164
|
+
f("p", Bt, [
|
1165
|
+
f("span", Ot, h(e.t("HotelRoomOffersBookingFlow.timer1")), 1),
|
1166
|
+
o[7] || (o[7] = f("br", null, null, -1)),
|
1167
|
+
f("span", It, h(e.t("HotelRoomOffersBookingFlow.timer2")), 1)
|
1168
|
+
])
|
1169
|
+
]),
|
1170
|
+
_: 1
|
1171
|
+
})
|
1172
|
+
]),
|
1173
|
+
_: 1
|
1174
|
+
})
|
1175
|
+
]),
|
1176
|
+
_: 1
|
1177
|
+
})) : B("", !0),
|
1178
|
+
t(te, {
|
1179
|
+
modelValue: e.countdownSnackbar,
|
1180
|
+
"onUpdate:modelValue": o[2] || (o[2] = (l) => e.countdownSnackbar = l),
|
1181
|
+
color: "warning",
|
1182
|
+
class: "elevation-0",
|
1183
|
+
timeout: "10000",
|
1184
|
+
location: "top"
|
1185
|
+
}, {
|
1186
|
+
default: i(() => [
|
1187
|
+
t(I, { class: "px-4" }, {
|
1188
|
+
default: i(() => o[8] || (o[8] = [
|
1189
|
+
y(" fas fa-hourglass-end ")
|
1190
|
+
])),
|
1191
|
+
_: 1,
|
1192
|
+
__: [8]
|
1193
|
+
}),
|
1194
|
+
f("span", null, h(e.t("HotelRoomOffersBookingFlow.timerEnd")), 1)
|
1195
|
+
]),
|
1196
|
+
_: 1
|
1197
|
+
}, 8, ["modelValue"]),
|
1198
|
+
t(Ge, {
|
1199
|
+
name: e.transitionName,
|
1200
|
+
onAfterLeave: e.onAfterLeave
|
1201
|
+
}, {
|
1202
|
+
default: i(() => [
|
1203
|
+
t(O, { "no-gutters": "" }, {
|
1204
|
+
default: i(() => [
|
1205
|
+
t(w, null, {
|
1206
|
+
default: i(() => [
|
1207
|
+
e.step === e.STEPS.PreBook ? (p(), g(O, {
|
1208
|
+
key: 0,
|
1209
|
+
"no-gutters": ""
|
1210
|
+
}, {
|
1211
|
+
default: i(() => [
|
1212
|
+
t(w, null, {
|
1213
|
+
default: i(() => [
|
1214
|
+
t(c, C(e.prebookFormProps, {
|
1215
|
+
"booking-policy-id": e.bookingPolicy?.id,
|
1216
|
+
features: e.parsedFeatures.PrebookForm,
|
1217
|
+
"hotel-room-offer": e.bookingPolicy?.hotelRoomOffer
|
1218
|
+
}), null, 16, ["booking-policy-id", "features", "hotel-room-offer"])
|
1219
|
+
]),
|
1220
|
+
_: 1
|
1221
|
+
})
|
1222
|
+
]),
|
1223
|
+
_: 1
|
1224
|
+
})) : B("", !0),
|
1225
|
+
[e.STEPS.Payment, e.STEPS.PaymentSuccessful].includes(e.step) ? (p(), g(O, {
|
1226
|
+
key: 1,
|
1227
|
+
"no-gutters": ""
|
1228
|
+
}, {
|
1229
|
+
default: i(() => [
|
1230
|
+
t(w, null, {
|
1231
|
+
default: i(() => [
|
1232
|
+
t(m, {
|
1233
|
+
token: e.booking?.token
|
1234
|
+
}, null, 8, ["token"])
|
1235
|
+
]),
|
1236
|
+
_: 1
|
1237
|
+
})
|
1238
|
+
]),
|
1239
|
+
_: 1
|
1240
|
+
})) : e.step === e.STEPS.Idle ? (p(), g(b, C({ key: 2 }, e.hotelRoomOffersViewProps, {
|
1241
|
+
features: e.parsedFeatures.HotelRoomOffersView
|
1242
|
+
}), null, 16, ["features"])) : B("", !0)
|
1243
|
+
]),
|
1244
|
+
_: 1
|
1245
|
+
})
|
1246
|
+
]),
|
1247
|
+
_: 1
|
1248
|
+
})
|
1249
|
+
]),
|
1250
|
+
_: 1
|
1251
|
+
}, 8, ["name", "onAfterLeave"])
|
1252
|
+
]),
|
1253
|
+
_: 1
|
1254
|
+
})
|
1255
|
+
]),
|
1256
|
+
_: 1
|
1257
|
+
});
|
1258
|
+
}
|
1259
|
+
typeof me == "function" && me(be);
|
1260
|
+
const Rt = /* @__PURE__ */ fe(be, [["render", Tt], ["__scopeId", "data-v-17bd38d1"]]), Ct = x({
|
1261
|
+
components: {
|
1262
|
+
HotelRoomOffersBookingFlow: Rt,
|
1263
|
+
WebComponentWrapper: Je
|
1264
|
+
},
|
1265
|
+
props: ve
|
1266
|
+
});
|
1267
|
+
function _t(e, o, s, n, a, r) {
|
1268
|
+
const u = T("HotelRoomOffersBookingFlow", !0), c = T("WebComponentWrapper");
|
1269
|
+
return p(), g(c, null, {
|
1270
|
+
default: i(() => [
|
1271
|
+
t(u, xe(Ye(e.$props)), null, 16)
|
1272
|
+
]),
|
1273
|
+
_: 1
|
1274
|
+
});
|
1275
|
+
}
|
1276
|
+
const Jt = /* @__PURE__ */ fe(Ct, [["render", _t]]);
|
1277
|
+
Pe("css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css");
|
1278
|
+
export {
|
1279
|
+
Jt as default
|
1280
|
+
};
|
1281
|
+
//# sourceMappingURL=revolugo.hotelroomoffersbookingflow.BS4Fa2EH.min.js.map
|