@revolugo/elements 6.9.7-rc.1 → 6.10.0-beta.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.cancellationpoliciesbadge.BHm9G8WA.css +1 -0
- package/dist/css/revolugo.creditcardstripeform.C4-vMajR.css +1 -0
- package/dist/css/revolugo.index.BNlxBMG6.css +5 -0
- package/dist/css/revolugo.preferencesmenu.DQaHGrad.css +1 -0
- package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.8v7iva-a.css} +1 -1
- package/dist/index.es.min.js +23 -12530
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +1 -19
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo.banktransferdetails.x0v9ndfv.min.js +47 -0
- package/dist/revolugo.bookingdetailssidebar.B4EIlhFU.min.js +43 -0
- package/dist/revolugo.bookingmanager.YVuxlZbU.min.js +26 -0
- package/dist/revolugo.cancellationpoliciesbadge.DfpyKAT7.min.js +26 -0
- package/dist/revolugo.cancellationpoliciesbadge.props.Catwbml_.min.js +29243 -0
- package/dist/revolugo.cancellationpolicieslist.CqGBKCZe.min.js +26 -0
- package/dist/revolugo.creditcardstripeform.BWeGQuy4.min.js +50 -0
- package/dist/{revolugo.creditcardform.C1Y8cuiJ.min.js → revolugo.creditcardstripeform.DNfpUrZN.min.js} +932 -915
- package/dist/revolugo.currencypickerbtn.CPU1WxXE.min.js +26 -0
- package/dist/{revolugo.dialog-attach.blanCM_U.min.js → revolugo.dialog-attach.PVrub23o.min.js} +2 -2
- package/dist/revolugo.fastbookingflow.I7UL8jNX.min.js +36 -0
- package/dist/revolugo.fullbookingflow.CpNJrRcu.min.js +26 -0
- package/dist/revolugo.hoteldescriptionview.DWQa933m.min.js +26 -0
- package/dist/revolugo.hotelofferlist.DJzWMTLy.min.js +26 -0
- package/dist/revolugo.hoteloffersearchmenu.D7YNVTvi.min.js +115 -0
- package/dist/revolugo.hoteloffersmap.BYvYv0p6.min.js +26 -0
- package/dist/revolugo.hoteloffersview.DT5QVxLs.min.js +21 -0
- package/dist/revolugo.hotelroomofferlist.DA_3LSPI.min.js +26 -0
- package/dist/revolugo.hotelroomoffersbookingflow.Dkch3aYF.min.js +26 -0
- package/dist/revolugo.hotelroomoffersearchmenu.D4wOddbw.min.js +26 -0
- package/dist/revolugo.hotelroomoffersview.9FmcyDbV.min.js +26 -0
- package/dist/revolugo.index.OiMu9dAJ.min.js +106 -0
- package/dist/revolugo.index.wc.C2aj6lKv.min.js +26699 -0
- package/dist/revolugo.langpickerbtn.6Brb63yO.min.js +31 -0
- package/dist/{revolugo.leaflet-src.esm.DBQWLG1M.min.js → revolugo.leaflet-src.esm.BnEQV3J-.min.js} +16 -16
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.prebookform.DVYHP3Yz.min.js +26 -0
- package/dist/revolugo.preferencesmenu.BloRxITX.min.js +24 -0
- package/dist/revolugo.preferencesmenu.r1vnr_RO.min.js +935 -0
- package/dist/revolugo.roominglisteditor.C-AGIJub.min.js +26 -0
- package/dist/revolugo.storybooktoolbar.B5oXaRze.min.js +831 -0
- package/dist/revolugo.termsandconditions.CNlXW52E.min.js +31 -0
- package/dist/revolugo.vtoolbar.BWqbzW1H.min.js +187 -0
- package/dist/revolugo.webcomponentwrapper.BMoMCE08.min.js +30962 -0
- package/package.json +6 -6
- package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +0 -1
- package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +0 -1
- package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +0 -1
- package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +0 -1
- package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +0 -1
- package/dist/css/revolugo.bstarrating.CPHKEfup.css +0 -1
- package/dist/css/revolugo.btag.T7X_iIkW.css +0 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +0 -1
- package/dist/css/revolugo.creditcardform.fTmPR0fS.css +0 -1
- package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
- package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
- package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +0 -1
- package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
- package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +0 -1
- package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +0 -1
- package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +0 -1
- package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +0 -1
- package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
- package/dist/css/revolugo.index.DK7d_h6O.css +0 -1
- package/dist/css/revolugo.index.XNPQF1ia.css +0 -5
- package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +0 -1
- package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
- package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +0 -1
- package/dist/css/revolugo.termsandconditions.D8IMR9da.css +0 -1
- package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
- package/dist/css/revolugo.vbadge.C45eZpxy.css +0 -1
- package/dist/css/revolugo.vbtn.DpMO1Ky2.css +0 -1
- package/dist/css/revolugo.vcard.TERzfknI.css +0 -1
- package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +0 -1
- package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
- package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
- package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
- package/dist/css/revolugo.vicon.eIkh7vVK.css +0 -1
- package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
- package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
- package/dist/css/revolugo.vlist.-Y4qkukF.css +0 -1
- package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
- package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
- package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
- package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
- package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +0 -1
- package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +0 -1
- package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +0 -1
- package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
- package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +0 -1
- package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
- package/dist/revolugo._baseiteratee.Zjxh5X1S.min.js +0 -247
- package/dist/revolugo.banktransferdetails.BMe84dqg.min.js +0 -380
- package/dist/revolugo.bdaterangepicker.DzOGjDv0.min.js +0 -8327
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DMP_pksf.min.js +0 -146
- package/dist/revolugo.bhoteloffersfilterbar.Duj0L2BC.min.js +0 -4901
- package/dist/revolugo.bhotelroomsdetails.A441NOYj.min.js +0 -965
- package/dist/revolugo.bimagecarousel.CeagkLxi.min.js +0 -566
- package/dist/revolugo.bookingdetailssidebar.BR9pOQ-A.min.js +0 -870
- package/dist/revolugo.bookingdetailssidebar.C_cVgvbV.min.js +0 -24
- package/dist/revolugo.bookingmanager.Tqklnltl.min.js +0 -1755
- package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.N9x3mRNq.min.js +0 -66
- package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.vPcVvCoJ.min.js +0 -570
- package/dist/revolugo.btag.6i9RpwY_.min.js +0 -375
- package/dist/revolugo.cancellationpoliciesbadge.CJhYlUuT.min.js +0 -198
- package/dist/revolugo.cancellationpoliciesbadge.Vi2j73X9.min.js +0 -28
- package/dist/revolugo.cancellationpolicieslist.BuNsG_i4.min.js +0 -25
- package/dist/revolugo.cancellationpolicieslist.CaiWZD9_.min.js +0 -148
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
- package/dist/revolugo.case-transformers.BGpZ9qjt.min.js +0 -123
- package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
- package/dist/revolugo.creditcardform.wbMwrte3.min.js +0 -24
- package/dist/revolugo.creditcardpayment.BsQwUNPu.min.js +0 -885
- package/dist/revolugo.creditcardpayment.v2TP6g1r.min.js +0 -24
- package/dist/revolugo.currencypicker.CCydQxvk.min.js +0 -328
- package/dist/revolugo.currencypickerbtn.54OJeTC0.min.js +0 -157
- package/dist/revolugo.currencypickerbtn.D0OyHd5Z.min.js +0 -24
- package/dist/revolugo.dates.Dma3i1u_.min.js +0 -31
- package/dist/revolugo.defaultsdeep.BlZWlkib.min.js +0 -104
- package/dist/revolugo.dialog-transition.JX-XGblk.min.js +0 -111
- package/dist/revolugo.fastbookingflow.kwlndDrp.min.js +0 -34
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
- package/dist/revolugo.fullbookingflow.Cm0oV-cR.min.js +0 -429
- package/dist/revolugo.hotel-offer-request.aMUhw0jC.min.js +0 -98
- package/dist/revolugo.hoteldescriptionview.Dng4hMzd.min.js +0 -2738
- package/dist/revolugo.hoteldescriptionview.ojwTutv4.min.js +0 -24
- package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.olnYk_cF.min.js +0 -239
- package/dist/revolugo.hotelofferlist.BWC_k60T.min.js +0 -5640
- package/dist/revolugo.hotelofferlist.DacSdhyV.min.js +0 -24
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
- package/dist/revolugo.hoteloffersearchmenu.BRYJjrI7.min.js +0 -202
- package/dist/revolugo.hoteloffersearchmenuui.CjFznky7.min.js +0 -829
- package/dist/revolugo.hoteloffersmap.B4YsCUhB.min.js +0 -8330
- package/dist/revolugo.hoteloffersmap.BjCpSBW5.min.js +0 -24
- package/dist/revolugo.hoteloffersview.Df1RPsE2.min.js +0 -19
- package/dist/revolugo.hoteloffersview.VHsBhOKb.min.js +0 -616
- package/dist/revolugo.hotelroomofferlist.kttmW_p0.min.js +0 -24
- package/dist/revolugo.hotelroomofferlist.t-3U4Nu4.min.js +0 -2799
- package/dist/revolugo.hotelroomofferrequestcreator.props.vFsZDl1K.min.js +0 -171
- package/dist/revolugo.hotelroomoffersbookingflow.CcnFaLm4.min.js +0 -1281
- package/dist/revolugo.hotelroomoffersearchmenu.FTQxJ_n5.min.js +0 -25
- package/dist/revolugo.hotelroomoffersearchmenu.WM6bLEz9.min.js +0 -231
- package/dist/revolugo.hotelroomoffersview.4GP75oBd.min.js +0 -24
- package/dist/revolugo.hotelroomoffersview.C64pbpV0.min.js +0 -290
- package/dist/revolugo.index.CmfloZTT.min.js +0 -67
- package/dist/revolugo.index.q2k-tLa2.min.js +0 -1232
- package/dist/revolugo.index.wc.BmAtoZjo.min.js +0 -31558
- package/dist/revolugo.langpicker.BDDm2CzN.min.js +0 -99
- package/dist/revolugo.langpickerbtn.BS-VKFY1.min.js +0 -131
- package/dist/revolugo.langpickerbtn.C_Z35YuF.min.js +0 -29
- package/dist/revolugo.parsed-props.z2aR0x9r.min.js +0 -40
- package/dist/revolugo.pathify.DOgJK7nI.min.js +0 -36
- package/dist/revolugo.prebookform.DT2QXZUm.min.js +0 -1527
- package/dist/revolugo.prebookform.Dk1v8qZ9.min.js +0 -24
- package/dist/revolugo.preferencesmenu.BhDjryBC.min.js +0 -24
- package/dist/revolugo.preferencesmenu.DsDw7iXm.min.js +0 -261
- package/dist/revolugo.roominglisteditor.ChZhBnZ3.min.js +0 -385
- package/dist/revolugo.roominglisteditor.DaPP1NPv.min.js +0 -24
- package/dist/revolugo.rounded.BmZawp2x.min.js +0 -68
- package/dist/revolugo.ssrboot.CMusFTC5.min.js +0 -18
- package/dist/revolugo.storybooktoolbar.CLAq0fXx.min.js +0 -881
- package/dist/revolugo.termsandconditions.B8TrVOz1.min.js +0 -404
- package/dist/revolugo.termsandconditions.CI0t3pno.min.js +0 -23
- package/dist/revolugo.use-breakpoint-service.BmTXBw-9.min.js +0 -39
- package/dist/revolugo.use-dialog-attach.ByNAI0vu.min.js +0 -16
- package/dist/revolugo.use-html-element.BbD1LjYc.min.js +0 -11
- package/dist/revolugo.vautocomplete.D1yqzzar.min.js +0 -445
- package/dist/revolugo.vbadge.B1q1ebM4.min.js +0 -112
- package/dist/revolugo.vbtn.D-1pZWJQ.min.js +0 -398
- package/dist/revolugo.vcard.BhFz1a7-.min.js +0 -313
- package/dist/revolugo.vcheckboxbtn.BtTJE9k_.min.js +0 -478
- package/dist/revolugo.vdialog.Q1vj1S2Y.min.js +0 -133
- package/dist/revolugo.vdivider.Cw22Dcuf.min.js +0 -77
- package/dist/revolugo.vexpansionpanels.B6laIhZ5.min.js +0 -262
- package/dist/revolugo.vform.DKrc0wCb.min.js +0 -46
- package/dist/revolugo.vicon.OZg4Im8p.min.js +0 -105
- package/dist/revolugo.vinput.Bo6I7bO4.min.js +0 -463
- package/dist/revolugo.vlabel.CK1EiiGY.min.js +0 -48
- package/dist/revolugo.vlist.C2mV3Sh6.min.js +0 -1299
- package/dist/revolugo.vmenu.C2Y9H_mH.min.js +0 -145
- package/dist/revolugo.vselect.ukHPs1U9.min.js +0 -660
- package/dist/revolugo.vsheet.COT4-g6w.min.js +0 -72
- package/dist/revolugo.vskeletonloader.BUWqKsWc.min.js +0 -136
- package/dist/revolugo.vslidegroup.vYhKvZC2.min.js +0 -325
- package/dist/revolugo.vsnackbar.DGEvcXxN.min.js +0 -198
- package/dist/revolugo.vspacer.DKw4LWvz.min.js +0 -7
- package/dist/revolugo.vtextarea.JwpV0Q9q.min.js +0 -2092
- package/dist/revolugo.vtextfield.CF6W_mmu.min.js +0 -501
- package/dist/revolugo.vtoolbar.8GW_wkyp.min.js +0 -180
- package/dist/revolugo.vtooltip.D-CqFjzD.min.js +0 -89
- package/dist/revolugo.vwindowitem.DdXQiNtJ.min.js +0 -317
- package/dist/revolugo.watch-list.CqLXeMQh.min.js +0 -16
- package/dist/revolugo.webcomponentwrapper.DipHFVeJ.min.js +0 -2088
@@ -1,829 +0,0 @@
|
|
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.BmAtoZjo.min.js";
|
2
|
-
import { s as X } from "./revolugo.dates.Dma3i1u_.min.js";
|
3
|
-
import { a as D } from "./revolugo.vbtn.D-1pZWJQ.min.js";
|
4
|
-
import { V as L } from "./revolugo.vicon.OZg4Im8p.min.js";
|
5
|
-
import { u as tt } from "./revolugo.use-breakpoint-service.BmTXBw-9.min.js";
|
6
|
-
import { u as et } from "./revolugo.use-dialog-attach.ByNAI0vu.min.js";
|
7
|
-
import { V as at } from "./revolugo.vmenu.C2Y9H_mH.min.js";
|
8
|
-
import { V as st, b as Vt } from "./revolugo.vcard.BhFz1a7-.min.js";
|
9
|
-
import { V as kt } from "./revolugo.vform.DKrc0wCb.min.js";
|
10
|
-
import { a as _t, V as U, b as P } from "./revolugo.vlist.C2mV3Sh6.min.js";
|
11
|
-
import { V as $, a as E, _ as nt } from "./revolugo.webcomponentwrapper.DipHFVeJ.min.js";
|
12
|
-
import { V as It } from "./revolugo.vinput.Bo6I7bO4.min.js";
|
13
|
-
import { V as At } from "./revolugo.vspacer.DKw4LWvz.min.js";
|
14
|
-
import { B as Mt } from "./revolugo.bdaterangepicker.DzOGjDv0.min.js";
|
15
|
-
import { V as yt } from "./revolugo.vbadge.B1q1ebM4.min.js";
|
16
|
-
import { V as xt } from "./revolugo.index.q2k-tLa2.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.CjFznky7.min.js.map
|