@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,829 @@
|
|
1
|
+
import { d as G, k as C, H as I, i as x, a as e, e as k, w as n, Z as ct, t as v, o as V, m as j, u as Q, l as q, Q as K, bK as mt, O as w, p as i, aB as ht, c as S, g as z, f as M, F, B as H, J as vt, bL as pt, D as W, R as ft, bM as bt, P as gt, q as N, j as Ct } from "./revolugo.index.wc.DLkeXtka.min.js";
|
2
|
+
import { s as X } from "./revolugo.dates.DiE5ynTe.min.js";
|
3
|
+
import { a as D } from "./revolugo.vbtn.B-LYC8rJ.min.js";
|
4
|
+
import { V as L } from "./revolugo.vicon.mrg8OisO.min.js";
|
5
|
+
import { u as tt } from "./revolugo.use-breakpoint-service.DsQuZJRM.min.js";
|
6
|
+
import { u as et } from "./revolugo.use-dialog-attach.DLdl8iIG.min.js";
|
7
|
+
import { V as at } from "./revolugo.vmenu.Dasw1a1s.min.js";
|
8
|
+
import { V as st, b as Vt } from "./revolugo.vcard.ZlYB5HOk.min.js";
|
9
|
+
import { V as kt } from "./revolugo.vform.gu3frP5W.min.js";
|
10
|
+
import { a as _t, V as U, b as P } from "./revolugo.vlist.BwlPoH0e.min.js";
|
11
|
+
import { V as $, a as E, _ as nt } from "./revolugo.webcomponentwrapper.BNmjcBmh.min.js";
|
12
|
+
import { V as It } from "./revolugo.vinput.BowTI8jK.min.js";
|
13
|
+
import { V as At } from "./revolugo.vspacer.DqnVrVYg.min.js";
|
14
|
+
import { B as Mt } from "./revolugo.bdaterangepicker.Dztdr7of.min.js";
|
15
|
+
import { V as yt } from "./revolugo.vbadge.D-lbOD0r.min.js";
|
16
|
+
import { V as xt } from "./revolugo.index.DZEISB0K.min.js";
|
17
|
+
function dt(r) {
|
18
|
+
try {
|
19
|
+
if (typeof document < "u") {
|
20
|
+
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
21
|
+
sheets: [],
|
22
|
+
components: []
|
23
|
+
};
|
24
|
+
const t = import.meta.url, o = t.slice(0, t.lastIndexOf("/") + 1) + r;
|
25
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(o);
|
26
|
+
for (const l of REVOLUGO_ELEMENTS_STYLES.components)
|
27
|
+
l(o);
|
28
|
+
if (r.indexOf("fonts") >= 0) {
|
29
|
+
const l = document.createElement("link");
|
30
|
+
l.rel = "stylesheet", linK.href = o, document.head.appendChild(l);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
} catch (t) {
|
34
|
+
console.error("[revolugo-elements] ", t);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
const Dt = /\.\d*[09]{10}\d*$/u, Y = (r, t = 1e11) => Dt.test(String(r)) ? Math.round(r * t) / t : r, Bt = { class: "d-flex align-center" }, T = /* @__PURE__ */ G({
|
38
|
+
__name: "BNumberInput",
|
39
|
+
props: {
|
40
|
+
max: { default: Number.POSITIVE_INFINITY },
|
41
|
+
min: { default: Number.NEGATIVE_INFINITY },
|
42
|
+
step: { default: 1 },
|
43
|
+
modelValue: {}
|
44
|
+
},
|
45
|
+
emits: ["update:modelValue"],
|
46
|
+
setup(r, { emit: t }) {
|
47
|
+
const o = r, l = t, a = C(), c = C(0), m = C(200), h = I(
|
48
|
+
() => `${Math.max(String(o.modelValue).length, 3) + 4}ch`
|
49
|
+
);
|
50
|
+
function s() {
|
51
|
+
l(
|
52
|
+
"update:modelValue",
|
53
|
+
Y(o.modelValue - o.step)
|
54
|
+
);
|
55
|
+
}
|
56
|
+
function _() {
|
57
|
+
l(
|
58
|
+
"update:modelValue",
|
59
|
+
Y(o.modelValue + o.step)
|
60
|
+
);
|
61
|
+
}
|
62
|
+
function p(B) {
|
63
|
+
a.value = window.setInterval(() => {
|
64
|
+
B(), c.value += m.value, c.value > 1e3 && (a.value && clearInterval(a.value), a.value = void 0, m.value /= 2, c.value = 0, p(B));
|
65
|
+
}, m.value);
|
66
|
+
}
|
67
|
+
function d() {
|
68
|
+
a.value && clearInterval(a.value), a.value = void 0, m.value = 200, c.value = 0;
|
69
|
+
}
|
70
|
+
function b() {
|
71
|
+
_(), p(() => {
|
72
|
+
_();
|
73
|
+
});
|
74
|
+
}
|
75
|
+
function g() {
|
76
|
+
s(), p(() => {
|
77
|
+
s();
|
78
|
+
});
|
79
|
+
}
|
80
|
+
return (B, O) => (V(), x("div", Bt, [
|
81
|
+
e(D, {
|
82
|
+
color: "primary",
|
83
|
+
disabled: o.modelValue === o.min,
|
84
|
+
elevation: "0",
|
85
|
+
icon: "",
|
86
|
+
variant: "outlined",
|
87
|
+
size: "x-small",
|
88
|
+
onMousedown: g,
|
89
|
+
onMouseout: d,
|
90
|
+
onMouseup: d
|
91
|
+
}, {
|
92
|
+
default: n(() => [
|
93
|
+
e(L, { icon: "fas fa-minus" })
|
94
|
+
]),
|
95
|
+
_: 1
|
96
|
+
}, 8, ["disabled"]),
|
97
|
+
k("b", {
|
98
|
+
class: "text-primary px-4 text-center",
|
99
|
+
style: ct({
|
100
|
+
width: h.value
|
101
|
+
})
|
102
|
+
}, v(o.modelValue), 5),
|
103
|
+
e(D, {
|
104
|
+
color: "primary",
|
105
|
+
disabled: o.modelValue === o.max,
|
106
|
+
elevation: "0",
|
107
|
+
icon: "",
|
108
|
+
variant: "outlined",
|
109
|
+
size: "x-small",
|
110
|
+
onMousedown: b,
|
111
|
+
onMouseout: d,
|
112
|
+
onMouseup: d
|
113
|
+
}, {
|
114
|
+
default: n(() => [
|
115
|
+
e(L, { icon: "fas fa-plus" })
|
116
|
+
]),
|
117
|
+
_: 1
|
118
|
+
}, 8, ["disabled"])
|
119
|
+
]));
|
120
|
+
}
|
121
|
+
}), Rt = { class: "d-flex align-center" }, wt = { class: "d-flex align-center" }, Et = { class: "d-block text-caption" }, St = ["onUpdate:modelValue"], Lt = {
|
122
|
+
value: "-1",
|
123
|
+
disabled: "",
|
124
|
+
selected: ""
|
125
|
+
}, Ot = ["value"], Ut = { class: "d-flex align-center" }, ot = /* @__PURE__ */ G({
|
126
|
+
__name: "BGuestsInputs",
|
127
|
+
props: /* @__PURE__ */ j({
|
128
|
+
maxAdultCount: { default: gt },
|
129
|
+
maxChildCount: { default: bt },
|
130
|
+
maxRoomCount: { default: ft }
|
131
|
+
}, {
|
132
|
+
modelValue: {
|
133
|
+
default: () => ({
|
134
|
+
adultCount: 0,
|
135
|
+
children: null,
|
136
|
+
roomCount: 0
|
137
|
+
})
|
138
|
+
},
|
139
|
+
modelModifiers: {}
|
140
|
+
}),
|
141
|
+
emits: ["update:modelValue"],
|
142
|
+
setup(r) {
|
143
|
+
const { t } = Q(), o = r, l = C(null), { $dialogAttach: a } = et(l), { $breakpointService: c } = tt(l), m = C(!1), h = q(r, "modelValue"), s = C({
|
144
|
+
adultCount: h.value.adultCount,
|
145
|
+
children: h.value.children?.split(",").map(Number) ?? [],
|
146
|
+
roomCount: h.value.roomCount
|
147
|
+
}), _ = I(() => [
|
148
|
+
s.value.roomCount,
|
149
|
+
Math.min(
|
150
|
+
o.maxAdultCount,
|
151
|
+
s.value.roomCount * K
|
152
|
+
)
|
153
|
+
]), p = I(() => [
|
154
|
+
Math.ceil(s.value.adultCount / K),
|
155
|
+
Math.min(o.maxRoomCount, s.value.adultCount)
|
156
|
+
]), d = I(() => h.value.children?.split(",").length), b = I(() => [
|
157
|
+
0,
|
158
|
+
s.value.adultCount * mt
|
159
|
+
]), g = C(
|
160
|
+
h.value.children?.split(",").length ?? 0
|
161
|
+
), B = Array.from({ length: 18 }, (A, u) => ({
|
162
|
+
text: u === 0 ? t("BGuestsInputs.under12months").toString() : `${u} ${t("BGuestsInputs.age", { n: u })}`,
|
163
|
+
value: u
|
164
|
+
})), O = C(!0), ut = [
|
165
|
+
(A) => A > -1 ? !0 : t("BGuestsInputs.requiredChildAge")
|
166
|
+
], it = C(), rt = () => {
|
167
|
+
O.value && (h.value = {
|
168
|
+
adultCount: s.value.adultCount,
|
169
|
+
children: s.value.children.length ? s.value.children.join(",") : null,
|
170
|
+
roomCount: s.value.roomCount
|
171
|
+
}, m.value = !1);
|
172
|
+
};
|
173
|
+
return w(g, () => {
|
174
|
+
s.value.children = Array.from(
|
175
|
+
{ length: g.value },
|
176
|
+
(A, u) => s.value.children[u] ?? -1
|
177
|
+
);
|
178
|
+
}), w(m, (A) => {
|
179
|
+
A || (s.value = {
|
180
|
+
adultCount: h.value.adultCount,
|
181
|
+
children: h.value.children?.split(",").map(Number) ?? [],
|
182
|
+
roomCount: h.value.roomCount
|
183
|
+
}, g.value = s.value.children.length);
|
184
|
+
}), w(
|
185
|
+
() => s.value.adultCount,
|
186
|
+
() => {
|
187
|
+
g.value > b.value[1] && (g.value = b.value[1]), s.value.roomCount = Math.min(
|
188
|
+
Math.max(s.value.roomCount, p.value[0]),
|
189
|
+
p.value[1]
|
190
|
+
);
|
191
|
+
}
|
192
|
+
), w(
|
193
|
+
() => s.value.roomCount,
|
194
|
+
() => {
|
195
|
+
s.value.adultCount = Math.min(
|
196
|
+
Math.max(s.value.adultCount, _.value[0]),
|
197
|
+
_.value[1]
|
198
|
+
);
|
199
|
+
}
|
200
|
+
), (A, u) => (V(), x("div", {
|
201
|
+
ref_key: "root",
|
202
|
+
ref: l
|
203
|
+
}, [
|
204
|
+
e(at, {
|
205
|
+
modelValue: m.value,
|
206
|
+
"onUpdate:modelValue": u[5] || (u[5] = (f) => m.value = f),
|
207
|
+
attach: i(a),
|
208
|
+
"close-on-content-click": !1,
|
209
|
+
"max-width": i(c).xs ? "100%" : "340px",
|
210
|
+
"min-width": i(c).xs ? "100%" : "340px",
|
211
|
+
"offset-y": ""
|
212
|
+
}, {
|
213
|
+
activator: n(({ props: f }) => [
|
214
|
+
e(D, W(f, {
|
215
|
+
class: "w-100",
|
216
|
+
color: "primary",
|
217
|
+
"data-cy": "b-guests-inputs-button",
|
218
|
+
"data-attr": "b-guests-inputs-button",
|
219
|
+
elevation: "0",
|
220
|
+
size: "small"
|
221
|
+
}), {
|
222
|
+
default: n(() => [
|
223
|
+
e(L, {
|
224
|
+
class: "pr-2",
|
225
|
+
style: "font-size: 12px;"
|
226
|
+
}, {
|
227
|
+
default: n(() => u[6] || (u[6] = [
|
228
|
+
M(" fas fa-user ")
|
229
|
+
])),
|
230
|
+
_: 1,
|
231
|
+
__: [6]
|
232
|
+
}),
|
233
|
+
k("b", null, v(h.value.adultCount) + " " + v(i(t)("BGuestsInputs.travelers", { n: h.value.adultCount })) + " | " + v(d.value ?? 0) + " " + v(i(t)("BGuestsInputs.children", { n: d.value ?? 0 })) + " | " + v(h.value.roomCount) + " " + v(i(t)("BGuestsInputs.rooms", { n: h.value.roomCount })), 1)
|
234
|
+
]),
|
235
|
+
_: 2
|
236
|
+
}, 1040)
|
237
|
+
]),
|
238
|
+
default: n(() => [
|
239
|
+
e(st, { elevation: "1" }, {
|
240
|
+
default: n(() => [
|
241
|
+
e(i(kt), {
|
242
|
+
ref_key: "form",
|
243
|
+
ref: it,
|
244
|
+
modelValue: O.value,
|
245
|
+
"onUpdate:modelValue": u[4] || (u[4] = (f) => O.value = f),
|
246
|
+
onSubmit: ht(rt, ["prevent"])
|
247
|
+
}, {
|
248
|
+
default: n(() => [
|
249
|
+
e(_t, { density: "compact" }, {
|
250
|
+
default: n(() => [
|
251
|
+
e(U, { "data-cy": "adult-count-input" }, {
|
252
|
+
default: n(() => [
|
253
|
+
k("div", Rt, [
|
254
|
+
e(P, { class: "font-weight-medium" }, {
|
255
|
+
default: n(() => [
|
256
|
+
M(v(i(t)("BGuestsInputs.travelers", { n: 2 })), 1)
|
257
|
+
]),
|
258
|
+
_: 1
|
259
|
+
}),
|
260
|
+
e(T, {
|
261
|
+
class: "ml-auto",
|
262
|
+
modelValue: s.value.adultCount,
|
263
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => s.value.adultCount = f),
|
264
|
+
"data-cy": "b-guests-inputs-adult-count-input",
|
265
|
+
"data-attr": "b-guests-inputs-adult-count-input",
|
266
|
+
max: A.maxAdultCount,
|
267
|
+
min: 1
|
268
|
+
}, null, 8, ["modelValue", "max"])
|
269
|
+
])
|
270
|
+
]),
|
271
|
+
_: 1
|
272
|
+
}),
|
273
|
+
e(U, {
|
274
|
+
class: "mt-2",
|
275
|
+
"data-cy": "children-count-input"
|
276
|
+
}, {
|
277
|
+
default: n(() => [
|
278
|
+
k("div", wt, [
|
279
|
+
e(P, { class: "font-weight-medium" }, {
|
280
|
+
default: n(() => [
|
281
|
+
M(v(i(t)("BGuestsInputs.children", { n: 2 })) + " ", 1),
|
282
|
+
k("span", Et, v(i(t)("BGuestsInputs.childrenAgeRange")), 1)
|
283
|
+
]),
|
284
|
+
_: 1
|
285
|
+
}),
|
286
|
+
e(T, {
|
287
|
+
class: "ml-auto",
|
288
|
+
modelValue: g.value,
|
289
|
+
"onUpdate:modelValue": u[1] || (u[1] = (f) => g.value = f),
|
290
|
+
"data-cy": "b-guests-inputs-child-count-input",
|
291
|
+
"data-attr": "b-guests-inputs-child-count-input",
|
292
|
+
max: b.value[1],
|
293
|
+
min: 0
|
294
|
+
}, null, 8, ["modelValue", "max"])
|
295
|
+
])
|
296
|
+
]),
|
297
|
+
_: 1
|
298
|
+
}),
|
299
|
+
g.value > 0 ? (V(), S(U, { key: 0 }, {
|
300
|
+
default: n(() => [
|
301
|
+
e($, { class: "mt-2" }, {
|
302
|
+
default: n(() => [
|
303
|
+
(V(!0), x(F, null, H(g.value, (f, R) => (V(), S(E, {
|
304
|
+
key: R,
|
305
|
+
class: "pt-0",
|
306
|
+
cols: "6",
|
307
|
+
sm: "6"
|
308
|
+
}, {
|
309
|
+
default: n(() => [
|
310
|
+
e(It, {
|
311
|
+
modelValue: s.value.children[R],
|
312
|
+
"onUpdate:modelValue": (y) => s.value.children[R] = y,
|
313
|
+
class: "child-age-input",
|
314
|
+
"hide-details": "auto",
|
315
|
+
rules: ut
|
316
|
+
}, {
|
317
|
+
default: n(() => [
|
318
|
+
vt(k("select", {
|
319
|
+
"onUpdate:modelValue": (y) => s.value.children[R] = y,
|
320
|
+
class: "child-age-input-select rounded w-full pa-2 text-body-2"
|
321
|
+
}, [
|
322
|
+
k("option", Lt, v(i(t)("BGuestsInputs.requiredChildAge")), 1),
|
323
|
+
(V(!0), x(F, null, H(i(B), (y) => (V(), x("option", {
|
324
|
+
value: y.value
|
325
|
+
}, v(y.text), 9, Ot))), 256))
|
326
|
+
], 8, St), [
|
327
|
+
[pt, s.value.children[R]]
|
328
|
+
])
|
329
|
+
]),
|
330
|
+
_: 2
|
331
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
332
|
+
]),
|
333
|
+
_: 2
|
334
|
+
}, 1024))), 128))
|
335
|
+
]),
|
336
|
+
_: 1
|
337
|
+
})
|
338
|
+
]),
|
339
|
+
_: 1
|
340
|
+
})) : z("", !0),
|
341
|
+
e(U, {
|
342
|
+
class: "mt-2",
|
343
|
+
"data-cy": "room-count-input"
|
344
|
+
}, {
|
345
|
+
default: n(() => [
|
346
|
+
k("div", Ut, [
|
347
|
+
e(P, { class: "font-weight-medium" }, {
|
348
|
+
default: n(() => [
|
349
|
+
M(v(i(t)("BGuestsInputs.rooms", { n: 2 })), 1)
|
350
|
+
]),
|
351
|
+
_: 1
|
352
|
+
}),
|
353
|
+
e(T, {
|
354
|
+
class: "ml-auto",
|
355
|
+
modelValue: s.value.roomCount,
|
356
|
+
"onUpdate:modelValue": u[2] || (u[2] = (f) => s.value.roomCount = f),
|
357
|
+
"data-cy": "b-guests-inputs-room-count-input",
|
358
|
+
"data-attr": "b-guests-inputs-room-count-input",
|
359
|
+
max: A.maxRoomCount,
|
360
|
+
min: 1
|
361
|
+
}, null, 8, ["modelValue", "max"])
|
362
|
+
])
|
363
|
+
]),
|
364
|
+
_: 1
|
365
|
+
})
|
366
|
+
]),
|
367
|
+
_: 1
|
368
|
+
}),
|
369
|
+
e(Vt, null, {
|
370
|
+
default: n(() => [
|
371
|
+
e(At),
|
372
|
+
e(D, {
|
373
|
+
class: "text-right",
|
374
|
+
color: "grey",
|
375
|
+
elevation: "0",
|
376
|
+
size: "small",
|
377
|
+
variant: "text",
|
378
|
+
onClick: u[3] || (u[3] = (f) => m.value = !1)
|
379
|
+
}, {
|
380
|
+
default: n(() => [
|
381
|
+
M(v(i(t)("BGuestsInputs.cancel")), 1)
|
382
|
+
]),
|
383
|
+
_: 1
|
384
|
+
}),
|
385
|
+
e(D, {
|
386
|
+
class: "text-right",
|
387
|
+
color: "success",
|
388
|
+
elevation: "0",
|
389
|
+
size: "small",
|
390
|
+
type: "submit",
|
391
|
+
variant: "flat"
|
392
|
+
}, {
|
393
|
+
default: n(() => [
|
394
|
+
M(v(i(t)("BGuestsInputs.save")), 1)
|
395
|
+
]),
|
396
|
+
_: 1
|
397
|
+
})
|
398
|
+
]),
|
399
|
+
_: 1
|
400
|
+
})
|
401
|
+
]),
|
402
|
+
_: 1
|
403
|
+
}, 8, ["modelValue"])
|
404
|
+
]),
|
405
|
+
_: 1
|
406
|
+
})
|
407
|
+
]),
|
408
|
+
_: 1
|
409
|
+
}, 8, ["modelValue", "attach", "max-width", "min-width"])
|
410
|
+
], 512));
|
411
|
+
}
|
412
|
+
});
|
413
|
+
function Z(r) {
|
414
|
+
const t = r;
|
415
|
+
t.__i18n = t.__i18n || [], t.__i18n.push({
|
416
|
+
locale: "",
|
417
|
+
resource: {
|
418
|
+
"en-US": {
|
419
|
+
BGuestsInputs: {
|
420
|
+
age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "year old" }, { t: 2, i: [{ t: 3 }], s: "years old" }] } },
|
421
|
+
cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancel" } },
|
422
|
+
children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Child" }, { t: 2, i: [{ t: 3 }], s: "Children" }] } },
|
423
|
+
childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ages 0 - 17" } },
|
424
|
+
childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "To find a place to stay that fits your entire group along with correct prices, we need to know how old your children will be at check-out." } },
|
425
|
+
requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Age required" } },
|
426
|
+
rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Room" }, { t: 2, i: [{ t: 3 }], s: "Rooms" }] } },
|
427
|
+
save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Save" } },
|
428
|
+
travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Adult" }, { t: 2, i: [{ t: 3 }], s: "Adults" }] } },
|
429
|
+
under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Under 12 months" } }
|
430
|
+
}
|
431
|
+
},
|
432
|
+
"fr-FR": {
|
433
|
+
BGuestsInputs: {
|
434
|
+
age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "an" }, { t: 2, i: [{ t: 3 }], s: "ans" }] } },
|
435
|
+
cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuler" } },
|
436
|
+
children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Enfant" }, { t: 2, i: [{ t: 3 }], s: "Enfant" }, { t: 2, i: [{ t: 3 }], s: "Enfants" }] } },
|
437
|
+
childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "De 0 à 17 ans" } },
|
438
|
+
childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pour trouver un hébergement pouvant accueillir votre groupe et afficher les bons tarifs, nous avons besoin de connaître l'âge qu'auront vos enfants à la fin du séjour." } },
|
439
|
+
requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Age requis" } },
|
440
|
+
rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Chambre" }, { t: 2, i: [{ t: 3 }], s: "Chambres" }] } },
|
441
|
+
save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Enregistrer" } },
|
442
|
+
travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Adulte" }, { t: 2, i: [{ t: 3 }], s: "Adultes" }] } },
|
443
|
+
under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Moins de 12 mois" } }
|
444
|
+
}
|
445
|
+
},
|
446
|
+
"de-DE": {
|
447
|
+
BGuestsInputs: {
|
448
|
+
age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Jahr alt" }, { t: 2, i: [{ t: 3 }], s: "Jahre alt" }] } },
|
449
|
+
cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Abbrechen" } },
|
450
|
+
children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Kind" }, { t: 2, i: [{ t: 3 }], s: "Kinder" }] } },
|
451
|
+
childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Alter 0 - 17" } },
|
452
|
+
childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Um eine Unterkunft zu finden, die für Ihre gesamte Gruppe geeignet ist und die korrekten Preise anzeigt, müssen wir wissen, wie alt Ihre Kinder beim Check-out sein werden." } },
|
453
|
+
requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Alter erforderlich" } },
|
454
|
+
rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Zimmer" }, { t: 2, i: [{ t: 3 }], s: "Zimmer" }] } },
|
455
|
+
save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Speichern" } },
|
456
|
+
travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Erwachsener" }, { t: 2, i: [{ t: 3 }], s: "Erwachsene" }] } },
|
457
|
+
under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Unter 12 Monate" } }
|
458
|
+
}
|
459
|
+
},
|
460
|
+
"es-ES": {
|
461
|
+
BGuestsInputs: {
|
462
|
+
age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "año" }, { t: 2, i: [{ t: 3 }], s: "años" }] } },
|
463
|
+
cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
|
464
|
+
children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Niño" }, { t: 2, i: [{ t: 3 }], s: "Niños" }] } },
|
465
|
+
childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Edades de 0 a 17" } },
|
466
|
+
childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Para encontrar un alojamiento que se adapte a todo tu grupo y mostrar los precios correctos, necesitamos saber cuántos años tendrán tus hijos al hacer el check-out." } },
|
467
|
+
requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Edad requerida" } },
|
468
|
+
rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Habitación" }, { t: 2, i: [{ t: 3 }], s: "Habitaciones" }] } },
|
469
|
+
save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Guardar" } },
|
470
|
+
travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Adulto" }, { t: 2, i: [{ t: 3 }], s: "Adultos" }] } },
|
471
|
+
under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Menos de 12 meses" } }
|
472
|
+
}
|
473
|
+
},
|
474
|
+
"it-IT": {
|
475
|
+
BGuestsInputs: {
|
476
|
+
age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "anno" }, { t: 2, i: [{ t: 3 }], s: "anni" }] } },
|
477
|
+
cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annulla" } },
|
478
|
+
children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Bambino" }, { t: 2, i: [{ t: 3 }], s: "Bambini" }] } },
|
479
|
+
childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Età 0 - 17" } },
|
480
|
+
childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Per trovare un alloggio adatto a tutto il tuo gruppo e visualizzare i prezzi corretti, dobbiamo sapere quanti anni avranno i tuoi figli al momento del check-out." } },
|
481
|
+
requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Età richiesta" } },
|
482
|
+
rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Camera" }, { t: 2, i: [{ t: 3 }], s: "Camere" }] } },
|
483
|
+
save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Salva" } },
|
484
|
+
travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Adulto" }, { t: 2, i: [{ t: 3 }], s: "Adulti" }] } },
|
485
|
+
under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Meno di 12 mesi" } }
|
486
|
+
}
|
487
|
+
},
|
488
|
+
"nl-NL": {
|
489
|
+
BGuestsInputs: {
|
490
|
+
age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "jaar oud" }, { t: 2, i: [{ t: 3 }], s: "jaren oud" }] } },
|
491
|
+
cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuleren" } },
|
492
|
+
children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Kind" }, { t: 2, i: [{ t: 3 }], s: "Kinderen" }] } },
|
493
|
+
childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Leeftijd 0 - 17" } },
|
494
|
+
childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Om een verblijfplaats te vinden die geschikt is voor uw hele groep en de juiste prijzen weergeeft, moeten we weten hoe oud uw kinderen zijn bij het uitchecken." } },
|
495
|
+
requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Leeftijd vereist" } },
|
496
|
+
rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Kamer" }, { t: 2, i: [{ t: 3 }], s: "Kamers" }] } },
|
497
|
+
save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Opslaan" } },
|
498
|
+
travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Volwassene" }, { t: 2, i: [{ t: 3 }], s: "Volwassenen" }] } },
|
499
|
+
under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Jonger dan 12 maanden" } }
|
500
|
+
}
|
501
|
+
},
|
502
|
+
"pt-PT": {
|
503
|
+
BGuestsInputs: {
|
504
|
+
age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "ano" }, { t: 2, i: [{ t: 3 }], s: "anos" }] } },
|
505
|
+
cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
|
506
|
+
children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Criança" }, { t: 2, i: [{ t: 3 }], s: "Crianças" }] } },
|
507
|
+
childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Idades 0 - 17" } },
|
508
|
+
childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Para encontrar um alojamento adequado a todo o seu grupo e apresentar os preços corretos, precisamos de saber quantos anos terão os seus filhos no check-out." } },
|
509
|
+
requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Idade obrigatória" } },
|
510
|
+
rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Quarto" }, { t: 2, i: [{ t: 3 }], s: "Quartos" }] } },
|
511
|
+
save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Guardar" } },
|
512
|
+
travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Adulto" }, { t: 2, i: [{ t: 3 }], s: "Adultos" }] } },
|
513
|
+
under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Menos de 12 meses" } }
|
514
|
+
}
|
515
|
+
}
|
516
|
+
}
|
517
|
+
});
|
518
|
+
}
|
519
|
+
typeof Z == "function" && Z(ot);
|
520
|
+
const lt = /* @__PURE__ */ G({
|
521
|
+
__name: "BDateRangePickerMenu",
|
522
|
+
props: /* @__PURE__ */ j({
|
523
|
+
markerDates: {},
|
524
|
+
minDate: {}
|
525
|
+
}, {
|
526
|
+
modelValue: {},
|
527
|
+
modelModifiers: {}
|
528
|
+
}),
|
529
|
+
emits: ["update:modelValue"],
|
530
|
+
setup(r) {
|
531
|
+
const { locale: t, t: o } = Q(), l = q(r, "modelValue"), a = C(!1), c = C(null), { $dialogAttach: m } = et(c), { $breakpointService: h } = tt(c), s = I(
|
532
|
+
() => l.value?.map(
|
533
|
+
(p) => N(p).toDate().toLocaleString(t.value, {
|
534
|
+
day: "2-digit",
|
535
|
+
month: "short",
|
536
|
+
weekday: "short",
|
537
|
+
year: "numeric"
|
538
|
+
})
|
539
|
+
)
|
540
|
+
), _ = I(() => !l.value || l.value.length < 2 ? 0 : N(l.value[1]).diff(N(l.value[0]), "day"));
|
541
|
+
return w(l, (p, d) => {
|
542
|
+
!p || d?.[0] === p[0] && d[1] === p[1] || (a.value = !1);
|
543
|
+
}), (p, d) => (V(), x("div", {
|
544
|
+
ref_key: "root",
|
545
|
+
ref: c
|
546
|
+
}, [
|
547
|
+
e(at, {
|
548
|
+
modelValue: a.value,
|
549
|
+
"onUpdate:modelValue": d[1] || (d[1] = (b) => a.value = b),
|
550
|
+
attach: i(m),
|
551
|
+
class: "date-range-picker",
|
552
|
+
"close-on-content-click": !1,
|
553
|
+
"min-width": i(h).xs ? "100%" : "570px"
|
554
|
+
}, {
|
555
|
+
activator: n(({ props: b }) => [
|
556
|
+
e(D, W(b, {
|
557
|
+
color: "primary",
|
558
|
+
"data-cy": "b-date-range-picker-btn",
|
559
|
+
"data-attr": "b-date-range-picker-btn",
|
560
|
+
elevation: "0",
|
561
|
+
"min-width": "100%",
|
562
|
+
size: "small"
|
563
|
+
}), {
|
564
|
+
default: n(() => [
|
565
|
+
e(L, { class: "pr-1" }, {
|
566
|
+
default: n(() => d[2] || (d[2] = [
|
567
|
+
M(" fas fa-calendar-days ")
|
568
|
+
])),
|
569
|
+
_: 1,
|
570
|
+
__: [2]
|
571
|
+
}),
|
572
|
+
k("b", null, v(s.value && s.value[0] || i(o)("BDateRangePickerMenu.checkIn")), 1),
|
573
|
+
e(L, { class: "mx-1" }, {
|
574
|
+
default: n(() => d[3] || (d[3] = [
|
575
|
+
M(" fas fa-long-arrow-alt-right ")
|
576
|
+
])),
|
577
|
+
_: 1,
|
578
|
+
__: [3]
|
579
|
+
}),
|
580
|
+
e(yt, {
|
581
|
+
bordered: "",
|
582
|
+
color: "secondary",
|
583
|
+
content: `${_.value} ${i(o)("BDateRangePickerMenu.nights", {
|
584
|
+
n: _.value
|
585
|
+
})}`,
|
586
|
+
"offset-x": "0",
|
587
|
+
"offset-y": "-5",
|
588
|
+
floating: "",
|
589
|
+
style: { "z-index": "1" },
|
590
|
+
"model-value": _.value > 0
|
591
|
+
}, {
|
592
|
+
default: n(() => [
|
593
|
+
k("b", null, v(s.value && s.value[1] || i(o)("BDateRangePickerMenu.checkOut")), 1)
|
594
|
+
]),
|
595
|
+
_: 1
|
596
|
+
}, 8, ["content", "model-value"])
|
597
|
+
]),
|
598
|
+
_: 2
|
599
|
+
}, 1040)
|
600
|
+
]),
|
601
|
+
default: n(() => [
|
602
|
+
e(Mt, {
|
603
|
+
modelValue: l.value,
|
604
|
+
"onUpdate:modelValue": d[0] || (d[0] = (b) => l.value = b),
|
605
|
+
"marker-dates": p.markerDates,
|
606
|
+
"min-date": p.minDate,
|
607
|
+
class: "ma-0"
|
608
|
+
}, null, 8, ["modelValue", "marker-dates", "min-date"])
|
609
|
+
]),
|
610
|
+
_: 1
|
611
|
+
}, 8, ["modelValue", "attach", "min-width"])
|
612
|
+
], 512));
|
613
|
+
}
|
614
|
+
});
|
615
|
+
function J(r) {
|
616
|
+
const t = r;
|
617
|
+
t.__i18n = t.__i18n || [], t.__i18n.push({
|
618
|
+
locale: "",
|
619
|
+
resource: {
|
620
|
+
"en-US": {
|
621
|
+
BDateRangePickerMenu: {
|
622
|
+
checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-in" } },
|
623
|
+
checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-out" } },
|
624
|
+
date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dates" } },
|
625
|
+
nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "night" }, { t: 2, i: [{ t: 3 }], s: "nights" }] } },
|
626
|
+
traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Travelers" } },
|
627
|
+
room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooms" } }
|
628
|
+
}
|
629
|
+
},
|
630
|
+
"fr-FR": {
|
631
|
+
BDateRangePickerMenu: {
|
632
|
+
checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Arrivée" } },
|
633
|
+
checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Départ" } },
|
634
|
+
date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dates" } },
|
635
|
+
nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "nuit" }, { t: 2, i: [{ t: 3 }], s: "nuits" }] } },
|
636
|
+
traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voyageurs" } },
|
637
|
+
room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Chambres" } }
|
638
|
+
}
|
639
|
+
},
|
640
|
+
"de-DE": {
|
641
|
+
BDateRangePickerMenu: {
|
642
|
+
checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-in" } },
|
643
|
+
checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-out" } },
|
644
|
+
date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Daten" } },
|
645
|
+
nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Nacht" }, { t: 2, i: [{ t: 3 }], s: "Nächte" }] } },
|
646
|
+
traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reisende" } },
|
647
|
+
room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zimmer" } }
|
648
|
+
}
|
649
|
+
},
|
650
|
+
"es-ES": {
|
651
|
+
BDateRangePickerMenu: {
|
652
|
+
checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Entrada" } },
|
653
|
+
checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Salida" } },
|
654
|
+
date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Fechas" } },
|
655
|
+
nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "noche" }, { t: 2, i: [{ t: 3 }], s: "noches" }] } },
|
656
|
+
traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Viajeros" } },
|
657
|
+
room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Habitaciones" } }
|
658
|
+
}
|
659
|
+
},
|
660
|
+
"it-IT": {
|
661
|
+
BDateRangePickerMenu: {
|
662
|
+
checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-in" } },
|
663
|
+
checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-out" } },
|
664
|
+
date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Date" } },
|
665
|
+
nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "notte" }, { t: 2, i: [{ t: 3 }], s: "notti" }] } },
|
666
|
+
traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Viaggiatori" } },
|
667
|
+
room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Camere" } }
|
668
|
+
}
|
669
|
+
},
|
670
|
+
"nl-NL": {
|
671
|
+
BDateRangePickerMenu: {
|
672
|
+
checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-in" } },
|
673
|
+
checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-out" } },
|
674
|
+
date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Datums" } },
|
675
|
+
nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "nacht" }, { t: 2, i: [{ t: 3 }], s: "nachten" }] } },
|
676
|
+
traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reizigers" } },
|
677
|
+
room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kamers" } }
|
678
|
+
}
|
679
|
+
},
|
680
|
+
"pt-PT": {
|
681
|
+
BDateRangePickerMenu: {
|
682
|
+
checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-in" } },
|
683
|
+
checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-out" } },
|
684
|
+
date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Datas" } },
|
685
|
+
nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "noite" }, { t: 2, i: [{ t: 3 }], s: "noites" }] } },
|
686
|
+
traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Viajantes" } },
|
687
|
+
room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Quartos" } }
|
688
|
+
}
|
689
|
+
}
|
690
|
+
}
|
691
|
+
});
|
692
|
+
}
|
693
|
+
typeof J == "function" && J(lt);
|
694
|
+
const Gt = /* @__PURE__ */ nt(lt, [["__scopeId", "data-v-d8f8124e"]]), Nt = /* @__PURE__ */ G({
|
695
|
+
__name: "HotelOfferSearchMenuUI",
|
696
|
+
props: /* @__PURE__ */ j({
|
697
|
+
markerDates: {},
|
698
|
+
minDate: {},
|
699
|
+
maxAdultCount: {},
|
700
|
+
maxChildCount: {},
|
701
|
+
maxRoomCount: {},
|
702
|
+
isLoading: { type: Boolean },
|
703
|
+
isLoadingBarEnabled: { type: Boolean, default: !0 }
|
704
|
+
}, {
|
705
|
+
modelValue: {},
|
706
|
+
modelModifiers: {}
|
707
|
+
}),
|
708
|
+
emits: ["update:modelValue"],
|
709
|
+
setup(r) {
|
710
|
+
const t = q(r, "modelValue"), o = I({
|
711
|
+
get() {
|
712
|
+
return X(
|
713
|
+
t.value?.checkInDate ?? "",
|
714
|
+
t.value?.checkOutDate ?? ""
|
715
|
+
);
|
716
|
+
},
|
717
|
+
set(a) {
|
718
|
+
if (a[0] !== t.value?.checkInDate || a[1] !== t.value?.checkOutDate) {
|
719
|
+
const [c, m] = X(...a);
|
720
|
+
t.value && (t.value = {
|
721
|
+
...t.value,
|
722
|
+
checkInDate: c,
|
723
|
+
checkOutDate: m
|
724
|
+
});
|
725
|
+
}
|
726
|
+
}
|
727
|
+
}), l = I({
|
728
|
+
get() {
|
729
|
+
return {
|
730
|
+
adultCount: t.value?.adultCount ?? 0,
|
731
|
+
children: t.value?.children ?? null,
|
732
|
+
roomCount: t.value?.roomCount ?? 0
|
733
|
+
};
|
734
|
+
},
|
735
|
+
set(a) {
|
736
|
+
(a.adultCount !== t.value?.adultCount || a.children !== t.value?.children || a.roomCount !== t.value?.roomCount) && t.value && (t.value = {
|
737
|
+
...t.value,
|
738
|
+
adultCount: a.adultCount,
|
739
|
+
children: a.children,
|
740
|
+
roomCount: a.roomCount
|
741
|
+
});
|
742
|
+
}
|
743
|
+
});
|
744
|
+
return (a, c) => (V(), S(st, {
|
745
|
+
class: "pa-0",
|
746
|
+
color: "transparent",
|
747
|
+
elevation: "0",
|
748
|
+
style: {
|
749
|
+
overflow: "visible"
|
750
|
+
}
|
751
|
+
}, {
|
752
|
+
default: n(() => [
|
753
|
+
e($, { dense: "" }, {
|
754
|
+
default: n(() => [
|
755
|
+
e(E, {
|
756
|
+
"align-self": "end",
|
757
|
+
cols: "12",
|
758
|
+
sm: "6"
|
759
|
+
}, {
|
760
|
+
default: n(() => [
|
761
|
+
e(Gt, {
|
762
|
+
modelValue: o.value,
|
763
|
+
"onUpdate:modelValue": c[0] || (c[0] = (m) => o.value = m),
|
764
|
+
"marker-dates": a.markerDates,
|
765
|
+
"min-date": a.minDate
|
766
|
+
}, null, 8, ["modelValue", "marker-dates", "min-date"])
|
767
|
+
]),
|
768
|
+
_: 1
|
769
|
+
}),
|
770
|
+
e(E, {
|
771
|
+
"align-self": "end",
|
772
|
+
cols: "12",
|
773
|
+
sm: a.$slots.after ? "5" : "6"
|
774
|
+
}, {
|
775
|
+
default: n(() => [
|
776
|
+
e(ot, {
|
777
|
+
modelValue: l.value,
|
778
|
+
"onUpdate:modelValue": c[1] || (c[1] = (m) => l.value = m),
|
779
|
+
"max-adult-count": a.maxAdultCount,
|
780
|
+
"max-child-count": a.maxChildCount,
|
781
|
+
"max-room-count": a.maxRoomCount
|
782
|
+
}, null, 8, ["modelValue", "max-adult-count", "max-child-count", "max-room-count"])
|
783
|
+
]),
|
784
|
+
_: 1
|
785
|
+
}, 8, ["sm"]),
|
786
|
+
a.$slots.after ? (V(), S(E, {
|
787
|
+
key: 0,
|
788
|
+
class: "text-right",
|
789
|
+
cols: "1"
|
790
|
+
}, {
|
791
|
+
default: n(() => [
|
792
|
+
Ct(a.$slots, "after", {}, void 0, !0)
|
793
|
+
]),
|
794
|
+
_: 3
|
795
|
+
})) : z("", !0)
|
796
|
+
]),
|
797
|
+
_: 3
|
798
|
+
}),
|
799
|
+
e($, {
|
800
|
+
"no-gutters": "",
|
801
|
+
style: { height: "5px" }
|
802
|
+
}, {
|
803
|
+
default: n(() => [
|
804
|
+
e(E, {
|
805
|
+
cols: "12",
|
806
|
+
sm: a.$slots.after ? "11" : "12"
|
807
|
+
}, {
|
808
|
+
default: n(() => [
|
809
|
+
a.isLoadingBarEnabled && a.isLoading ? (V(), S(xt, {
|
810
|
+
key: 0,
|
811
|
+
color: "secondary",
|
812
|
+
indeterminate: ""
|
813
|
+
})) : z("", !0)
|
814
|
+
]),
|
815
|
+
_: 1
|
816
|
+
}, 8, ["sm"])
|
817
|
+
]),
|
818
|
+
_: 1
|
819
|
+
})
|
820
|
+
]),
|
821
|
+
_: 3
|
822
|
+
}));
|
823
|
+
}
|
824
|
+
}), ee = /* @__PURE__ */ nt(Nt, [["__scopeId", "data-v-ff7e2336"]]);
|
825
|
+
dt("css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css");
|
826
|
+
export {
|
827
|
+
ee as H
|
828
|
+
};
|
829
|
+
//# sourceMappingURL=revolugo.hoteloffersearchmenuui.DqWHAurZ.min.js.map
|