@revolugo/elements 6.8.3-beta.0 → 6.8.3-beta.1
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.B6KA5TYs.css +1 -0
- package/dist/css/revolugo.bhoteloffersfilterbar.CekxoJmW.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.CNP_D5F3.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.currencypicker.DO0IrmRK.css +1 -0
- package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +1 -0
- package/dist/css/revolugo.hoteldescriptionview.Dfi-84To.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.Cp2vN-VQ.css +1 -0
- package/dist/css/revolugo.hoteloffersview.Xw1flMYo.css +1 -0
- package/dist/css/revolugo.hotelroomofferlist.BYvQZ5P2.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.langpickerbtn.BGnattUJ.css +1 -0
- package/dist/css/revolugo.prebookform.DmCR7hLv.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.vtoolbar.BZert82L.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.DGADlvX0.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +1 -1
- package/dist/revolugo._baseiteratee.Dil0w9e0.min.js +247 -0
- package/dist/revolugo.banktransferdetails.DiwVMsA1.min.js +373 -0
- package/dist/revolugo.bdaterangepicker.DDEGZVT0.min.js +8324 -0
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.CPnoXVaZ.min.js +143 -0
- package/dist/revolugo.bhoteloffersfilterbar.B_hcAZxX.min.js +4896 -0
- package/dist/revolugo.bhotelroomsdetails.DDHY2lbs.min.js +965 -0
- package/dist/revolugo.bimagecarousel.DpROkQNr.min.js +566 -0
- package/dist/revolugo.bookingdetailssidebar.5S5oPc1U.min.js +24 -0
- package/dist/revolugo.bookingdetailssidebar.l8IDCkox.min.js +866 -0
- package/dist/revolugo.bookingmanager.-BQEM4EN.min.js +1755 -0
- package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.BzDggP5H.min.js +91 -0
- package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CQgG-2B5.min.js +604 -0
- package/dist/revolugo.btag.yxmSLIpZ.min.js +375 -0
- package/dist/revolugo.cancellationpoliciesbadge.3dDx89si.min.js +28 -0
- package/dist/revolugo.cancellationpoliciesbadge.Bu_3zPF6.min.js +198 -0
- package/dist/revolugo.cancellationpolicieslist.D558ZjJj.min.js +25 -0
- package/dist/revolugo.cancellationpolicieslist.EOsSrPjA.min.js +148 -0
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
- package/dist/revolugo.case-transformers.DGnXS0Cp.min.js +123 -0
- package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
- package/dist/revolugo.creditcardform.DZXQZuRo.min.js +2148 -0
- package/dist/revolugo.creditcardform.DkLcGTUe.min.js +24 -0
- package/dist/revolugo.creditcardpayment.BCKTbLQO.min.js +24 -0
- package/dist/revolugo.creditcardpayment.DS5TEf7I.min.js +885 -0
- package/dist/revolugo.currencypicker.DzOZVdqj.min.js +330 -0
- package/dist/revolugo.currencypickerbtn.BFa4yMym.min.js +24 -0
- package/dist/revolugo.currencypickerbtn.XX3uUfVo.min.js +157 -0
- package/dist/revolugo.dates.BZrB2-ya.min.js +31 -0
- package/dist/revolugo.defaultsdeep.DkkJx-tU.min.js +104 -0
- package/dist/revolugo.dialog-attach.Cr22Se10.min.js +27 -0
- package/dist/revolugo.dialog-transition.D5NECTJF.min.js +111 -0
- package/dist/revolugo.fastbookingflow.BzBjZ3LE.min.js +34 -0
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
- package/dist/revolugo.fullbookingflow.DdY_jXGE.min.js +429 -0
- package/dist/revolugo.hotel-offer-request.D14Rm4x5.min.js +98 -0
- package/dist/revolugo.hoteldescriptionview.BgYZ2vmV.min.js +24 -0
- package/dist/revolugo.hoteldescriptionview.C_jOcLK_.min.js +2955 -0
- package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.B7oYjB-Q.min.js +241 -0
- package/dist/revolugo.hotelofferlist.BYkJEK3j.min.js +5639 -0
- package/dist/revolugo.hotelofferlist.Dko1gIDn.min.js +24 -0
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
- package/dist/{revolugo.hoteloffersearchmenu.BZ2z-tDx.min.js → revolugo.hoteloffersearchmenu.B8ncJahc.min.js} +46 -43
- package/dist/revolugo.hoteloffersearchmenuui.C1nrtxip.min.js +829 -0
- package/dist/revolugo.hoteloffersmap.CRI3Jttb.min.js +8329 -0
- package/dist/revolugo.hoteloffersmap.D_lQobL7.min.js +24 -0
- package/dist/revolugo.hoteloffersview.1h25yRqJ.min.js +614 -0
- package/dist/revolugo.hoteloffersview.DzB-e4H1.min.js +19 -0
- package/dist/revolugo.hotelroomofferlist.CDSzTTou.min.js +24 -0
- package/dist/revolugo.hotelroomofferlist.DdmwJDYN.min.js +2811 -0
- package/dist/revolugo.hotelroomofferrequestcreator.props.C_frxq0W.min.js +171 -0
- package/dist/revolugo.hotelroomoffersbookingflow.76yvftsv.min.js +1281 -0
- package/dist/revolugo.hotelroomoffersearchmenu.BJTJFnmG.min.js +25 -0
- package/dist/revolugo.hotelroomoffersearchmenu.D6Vyfjfp.min.js +231 -0
- package/dist/revolugo.hotelroomoffersview.CkGUZ5LE.min.js +290 -0
- package/dist/revolugo.hotelroomoffersview.CrexMnSs.min.js +24 -0
- package/dist/{revolugo.index.CVHWSVdZ.min.js → revolugo.index.3XJPtYDq.min.js} +10 -10
- package/dist/revolugo.index.Cgeh5pQG.min.js +1232 -0
- package/dist/{revolugo.index.wc.DxOdmA3C.min.js → revolugo.index.wc.C1h_M397.min.js} +2396 -2372
- package/dist/revolugo.langpicker.BEu5Dcmi.min.js +99 -0
- package/dist/revolugo.langpickerbtn.CIldopN_.min.js +131 -0
- package/dist/revolugo.langpickerbtn.PS3df2DW.min.js +29 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.pathify.DvfN0v8G.min.js +36 -0
- package/dist/revolugo.prebookform.CQkoP-VV.min.js +1527 -0
- package/dist/revolugo.prebookform.CV1s2FGH.min.js +24 -0
- package/dist/revolugo.roominglisteditor.8ernakg_.min.js +385 -0
- package/dist/revolugo.roominglisteditor.DxJ2OBqY.min.js +24 -0
- package/dist/revolugo.rounded.BOHYNseH.min.js +68 -0
- package/dist/revolugo.ssrboot.DElAuRmu.min.js +18 -0
- package/dist/{revolugo.storybooktoolbar.CkwMUZCe.min.js → revolugo.storybooktoolbar.CHfZ7EvT.min.js} +161 -147
- package/dist/revolugo.termsandconditions.BvRlB7pE.min.js +405 -0
- package/dist/revolugo.termsandconditions.r61WJG2h.min.js +23 -0
- package/dist/revolugo.use-breakpoint-service.BXTJsL7a.min.js +39 -0
- package/dist/revolugo.use-dialog-attach._Ffb31mm.min.js +16 -0
- package/dist/revolugo.use-html-element.DTDLV1SN.min.js +11 -0
- package/dist/revolugo.vautocomplete.CQYvC8_q.min.js +445 -0
- package/dist/revolugo.vbadge.Dqf0g4rP.min.js +112 -0
- package/dist/revolugo.vbtn.1GlaUjid.min.js +398 -0
- package/dist/revolugo.vcard.BkeYpsDj.min.js +313 -0
- package/dist/revolugo.vcheckboxbtn.B-9q-Vt_.min.js +478 -0
- package/dist/revolugo.vdialog.BtJzWlDm.min.js +133 -0
- package/dist/revolugo.vdivider.DjAkTZXY.min.js +77 -0
- package/dist/revolugo.vexpansionpanels.ChRz3Vw3.min.js +262 -0
- package/dist/revolugo.vform.BfCyAbBX.min.js +46 -0
- package/dist/revolugo.vicon.0J-whoPd.min.js +105 -0
- package/dist/revolugo.vinput.DruJiU7m.min.js +463 -0
- package/dist/revolugo.vlabel.DrAIoL0X.min.js +48 -0
- package/dist/revolugo.vlist.DSr8wDRX.min.js +1299 -0
- package/dist/revolugo.vmenu.DnNDzmnm.min.js +145 -0
- package/dist/revolugo.vselect.V-p2AqIC.min.js +660 -0
- package/dist/revolugo.vsheet.Bq0fXKd0.min.js +72 -0
- package/dist/revolugo.vskeletonloader.CGHKwSZc.min.js +136 -0
- package/dist/revolugo.vslidegroup.CfQX__qs.min.js +325 -0
- package/dist/revolugo.vsnackbar.Dv0mQ14N.min.js +198 -0
- package/dist/revolugo.vspacer.DqyaaVSV.min.js +7 -0
- package/dist/revolugo.vtextarea.CYUE9_OL.min.js +2092 -0
- package/dist/revolugo.vtextfield.DVdqMySD.min.js +501 -0
- package/dist/revolugo.vtoolbar.CvvYVWAF.min.js +180 -0
- package/dist/revolugo.vtooltip.Cc-DGbrS.min.js +89 -0
- package/dist/revolugo.vwindowitem._RpClcFn.min.js +317 -0
- package/dist/revolugo.watch-list.Bg0Ch7_v.min.js +16 -0
- package/dist/revolugo.webcomponentwrapper.BMVPGxCQ.min.js +2088 -0
- package/package.json +1 -1
- package/dist/revolugo.banktransferdetails.C9OqrvmN.min.js +0 -23
- package/dist/revolugo.bookingdetailssidebar.V97LTM8j.min.js +0 -23
- package/dist/revolugo.bookingmanager.BZERpaf3.min.js +0 -23
- package/dist/revolugo.cancellationpoliciesbadge.CUKJ9TsD.min.js +0 -23
- package/dist/revolugo.cancellationpolicieslist.C3PJPST4.min.js +0 -23
- package/dist/revolugo.creditcardform.D-8j5GCw.min.js +0 -23
- package/dist/revolugo.creditcardpayment.DU-WYlhZ.min.js +0 -23
- package/dist/revolugo.currencypickerbtn.B7Y3Ok11.min.js +0 -23
- package/dist/revolugo.fastbookingflow.BoQVk0eU.min.js +0 -33
- package/dist/revolugo.fullbookingflow.DoXfBawU.min.js +0 -23
- package/dist/revolugo.hoteldescriptionview.B-0OAOlZ.min.js +0 -23
- package/dist/revolugo.hotelofferlist.CZtxadW_.min.js +0 -23
- package/dist/revolugo.hoteloffersmap.CKwOA3mF.min.js +0 -23
- package/dist/revolugo.hoteloffersview.Bxf47jSF.min.js +0 -18
- package/dist/revolugo.hotelroomofferlist.PzbhafeA.min.js +0 -23
- package/dist/revolugo.hotelroomoffersbookingflow.BXolY5lJ.min.js +0 -23
- package/dist/revolugo.hotelroomoffersearchmenu.BAqeXS0Y.min.js +0 -23
- package/dist/revolugo.hotelroomoffersview.Ch8BiNJ_.min.js +0 -23
- package/dist/revolugo.langpickerbtn.B5MAr-qc.min.js +0 -28
- package/dist/revolugo.prebookform.9dLTmLrv.min.js +0 -23
- package/dist/revolugo.roominglisteditor.CA09WMcG.min.js +0 -23
- package/dist/revolugo.termsandconditions.CLIxEOxi.min.js +0 -22
- package/dist/revolugo.webcomponentwrapper.Dt-VzVVw.min.js +0 -60489
@@ -0,0 +1,24 @@
|
|
1
|
+
import { p, a as s } from "./revolugo.prebookform.CQkoP-VV.min.js";
|
2
|
+
import { W as t, _ as a } from "./revolugo.webcomponentwrapper.BMVPGxCQ.min.js";
|
3
|
+
import { d as m, c, w as _, a as f, n as i, h as l, r as o, o as b } from "./revolugo.index.wc.C1h_M397.min.js";
|
4
|
+
const d = m({
|
5
|
+
components: {
|
6
|
+
PrebookForm: s,
|
7
|
+
WebComponentWrapper: t
|
8
|
+
},
|
9
|
+
props: p
|
10
|
+
});
|
11
|
+
function u(e, k, P, W, C, F) {
|
12
|
+
const r = o("PrebookForm", !0), n = o("WebComponentWrapper");
|
13
|
+
return b(), c(n, null, {
|
14
|
+
default: _(() => [
|
15
|
+
f(r, i(l(e.$props)), null, 16)
|
16
|
+
]),
|
17
|
+
_: 1
|
18
|
+
});
|
19
|
+
}
|
20
|
+
const v = /* @__PURE__ */ a(d, [["render", u]]);
|
21
|
+
export {
|
22
|
+
v as default
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=revolugo.prebookform.CV1s2FGH.min.js.map
|
@@ -0,0 +1,385 @@
|
|
1
|
+
import { d as v, b as G, u as x, c as m, w as n, e as l, a as o, j as f, o as a, S, A as $, f as h, t as d, i as c, B as L, F as R, r as I, g as y } from "./revolugo.index.wc.C1h_M397.min.js";
|
2
|
+
import { _ as C } from "./revolugo.webcomponentwrapper.BMVPGxCQ.min.js";
|
3
|
+
import { V as E } from "./revolugo.vdivider.DjAkTZXY.min.js";
|
4
|
+
import { V as A } from "./revolugo.vcard.BkeYpsDj.min.js";
|
5
|
+
import { V as p } from "./revolugo.vskeletonloader.CGHKwSZc.min.js";
|
6
|
+
import { V as H, a as M, b as P, c as B } from "./revolugo.vexpansionpanels.ChRz3Vw3.min.js";
|
7
|
+
import { V as D } from "./revolugo.vsnackbar.Dv0mQ14N.min.js";
|
8
|
+
import { V as F } from "./revolugo.vtextfield.DVdqMySD.min.js";
|
9
|
+
const U = v({
|
10
|
+
mixins: [G],
|
11
|
+
name: "RoomingListEditorLayout",
|
12
|
+
props: {
|
13
|
+
boilerplate: { type: Boolean }
|
14
|
+
},
|
15
|
+
setup() {
|
16
|
+
const { t } = x();
|
17
|
+
return {
|
18
|
+
t
|
19
|
+
};
|
20
|
+
}
|
21
|
+
}), j = { class: "px-4 py-2 bg-grey-lighten-4" }, q = { class: "px-4 py-2 d-flex justify-center" }, K = { class: "px-4 py-2" };
|
22
|
+
function Z(t, e, s, r, u, N) {
|
23
|
+
return a(), m(A, { border: "" }, {
|
24
|
+
default: n(() => [
|
25
|
+
l("div", j, [
|
26
|
+
l("div", q, [
|
27
|
+
f(t.$slots, "rooming-title", {}, () => [
|
28
|
+
o(p, {
|
29
|
+
boilerplate: t.boilerplate,
|
30
|
+
height: "22px",
|
31
|
+
tile: "",
|
32
|
+
type: "heading",
|
33
|
+
width: "160px"
|
34
|
+
}, null, 8, ["boilerplate"])
|
35
|
+
])
|
36
|
+
])
|
37
|
+
]),
|
38
|
+
o(E),
|
39
|
+
l("div", K, [
|
40
|
+
f(t.$slots, "rooming-list", {}, () => [
|
41
|
+
o(p, {
|
42
|
+
boilerplate: t.boilerplate,
|
43
|
+
class: "mb-2",
|
44
|
+
height: "18px",
|
45
|
+
tile: "",
|
46
|
+
type: "heading",
|
47
|
+
width: "120px"
|
48
|
+
}, null, 8, ["boilerplate"]),
|
49
|
+
o(p, {
|
50
|
+
boilerplate: t.boilerplate,
|
51
|
+
class: "mb-2",
|
52
|
+
height: "18px",
|
53
|
+
tile: "",
|
54
|
+
type: "heading",
|
55
|
+
width: "400px"
|
56
|
+
}, null, 8, ["boilerplate"]),
|
57
|
+
o(p, {
|
58
|
+
boilerplate: t.boilerplate,
|
59
|
+
height: "18px",
|
60
|
+
tile: "",
|
61
|
+
type: "heading",
|
62
|
+
width: "400px"
|
63
|
+
}, null, 8, ["boilerplate"])
|
64
|
+
])
|
65
|
+
])
|
66
|
+
]),
|
67
|
+
_: 3
|
68
|
+
});
|
69
|
+
}
|
70
|
+
const O = /* @__PURE__ */ C(U, [["render", Z]]), z = {
|
71
|
+
token: {
|
72
|
+
required: !0,
|
73
|
+
type: String
|
74
|
+
}
|
75
|
+
}, V = v({
|
76
|
+
components: {
|
77
|
+
RoomingListEditorLayout: O
|
78
|
+
},
|
79
|
+
created() {
|
80
|
+
this.updateRoomingListDebounced = S(
|
81
|
+
(t) => this.updateRoomingList(t),
|
82
|
+
1e3
|
83
|
+
);
|
84
|
+
},
|
85
|
+
data: () => ({
|
86
|
+
hasError: !1,
|
87
|
+
hotelRoomingLists: null,
|
88
|
+
listToGuests: {},
|
89
|
+
mappedHotelRoomingLists: [],
|
90
|
+
showSnackbar: !1,
|
91
|
+
snackbarColor: "",
|
92
|
+
snackbarText: "",
|
93
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
94
|
+
updateRoomingListDebounced: () => {
|
95
|
+
}
|
96
|
+
}),
|
97
|
+
methods: {
|
98
|
+
buildMappedLists() {
|
99
|
+
return this.hotelRoomingLists ? this.hotelRoomingLists.map((t) => {
|
100
|
+
if (this.listToGuests[t.id]) {
|
101
|
+
if (t.hotelRoomingListGuests)
|
102
|
+
for (const s of t.hotelRoomingListGuests)
|
103
|
+
this.updateMappedGuest(t.id, s);
|
104
|
+
return {
|
105
|
+
...t,
|
106
|
+
hotelRoomingListGuests: this.listToGuests[t.id]
|
107
|
+
};
|
108
|
+
}
|
109
|
+
const e = this.initMappedGuests(t);
|
110
|
+
return {
|
111
|
+
...t,
|
112
|
+
hotelRoomingListGuests: e
|
113
|
+
};
|
114
|
+
}) : [];
|
115
|
+
},
|
116
|
+
initMappedGuests(t) {
|
117
|
+
const e = t.hotelRoom, s = t.hotelRoomingListGuests?.length && e?.occupancy ? e.occupancy - t.hotelRoomingListGuests.length : e?.occupancy || 0, r = Array.from(
|
118
|
+
{ length: s },
|
119
|
+
() => ({
|
120
|
+
fullname: "",
|
121
|
+
id: ""
|
122
|
+
})
|
123
|
+
), u = t.hotelRoomingListGuests ?? [];
|
124
|
+
return u.push(...r), this.listToGuests[t.id] = u, u;
|
125
|
+
},
|
126
|
+
async retrieveHotelRoomingLists(t) {
|
127
|
+
let e = null;
|
128
|
+
this.hasError = !1;
|
129
|
+
try {
|
130
|
+
e = await this.bookingApiClient?.hotelRoomingLists.list(
|
131
|
+
{
|
132
|
+
token: t
|
133
|
+
}
|
134
|
+
);
|
135
|
+
} catch (s) {
|
136
|
+
this.hasError = !0, console.error(s);
|
137
|
+
}
|
138
|
+
return e;
|
139
|
+
},
|
140
|
+
updateMappedGuest(t, e) {
|
141
|
+
const s = this.listToGuests[t].findIndex((r) => r.id === e.id);
|
142
|
+
s !== -1 && (this.listToGuests[t][s] = {
|
143
|
+
...this.listToGuests[t][s],
|
144
|
+
...e
|
145
|
+
});
|
146
|
+
},
|
147
|
+
async updateRoomingList(t) {
|
148
|
+
this.showSnackbar = !1, this.snackbarText = "";
|
149
|
+
try {
|
150
|
+
if (t.guestId && t.fullName)
|
151
|
+
await this.bookingApiClient?.hotelRoomingListGuests.update({
|
152
|
+
hotelRoomingListGuestsUpdateApi: { fullname: t.fullName },
|
153
|
+
id: t.guestId,
|
154
|
+
token: this.token
|
155
|
+
});
|
156
|
+
else if (!t.guestId && t.fullName) {
|
157
|
+
const e = await this.bookingApiClient?.hotelRoomingListGuests.create({
|
158
|
+
hotelRoomingListGuestsCreateApi: {
|
159
|
+
fullname: t.fullName,
|
160
|
+
hotelRoomingListId: t.roomingListId
|
161
|
+
},
|
162
|
+
token: this.token
|
163
|
+
}), s = this.listToGuests[t.roomingListId]?.[t.index];
|
164
|
+
e && s && (s.id = e.id);
|
165
|
+
} else if (t.guestId && !t.fullName) {
|
166
|
+
await this.bookingApiClient?.hotelRoomingListGuests.delete({
|
167
|
+
id: t.guestId,
|
168
|
+
token: this.token
|
169
|
+
});
|
170
|
+
const e = this.listToGuests[t.roomingListId]?.[t.index];
|
171
|
+
e && (e.id = "");
|
172
|
+
}
|
173
|
+
this.snackbarText = this.t(
|
174
|
+
"RoomingListEditor.saveRoomingList.success"
|
175
|
+
), this.snackbarColor = "success", this.hotelRoomingLists = await this.retrieveHotelRoomingLists(
|
176
|
+
this.token
|
177
|
+
), this.mappedHotelRoomingLists = this.buildMappedLists();
|
178
|
+
} catch (e) {
|
179
|
+
this.snackbarColor = "error", this.snackbarText = e.message;
|
180
|
+
} finally {
|
181
|
+
this.showSnackbar = !0;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
},
|
185
|
+
mixins: [G],
|
186
|
+
name: "RoomingListEditor",
|
187
|
+
props: z,
|
188
|
+
setup() {
|
189
|
+
const { t } = x();
|
190
|
+
return {
|
191
|
+
t
|
192
|
+
};
|
193
|
+
},
|
194
|
+
watch: {
|
195
|
+
token: {
|
196
|
+
async handler(t) {
|
197
|
+
t && (this.listToGuests = {}, this.hotelRoomingLists = await this.retrieveHotelRoomingLists(t), this.mappedHotelRoomingLists = this.buildMappedLists());
|
198
|
+
},
|
199
|
+
immediate: !0
|
200
|
+
}
|
201
|
+
}
|
202
|
+
});
|
203
|
+
function k(t) {
|
204
|
+
const e = t;
|
205
|
+
e.__i18n = e.__i18n || [], e.__i18n.push({
|
206
|
+
locale: "",
|
207
|
+
resource: {
|
208
|
+
"en-US": {
|
209
|
+
RoomingListEditor: {
|
210
|
+
title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list" } },
|
211
|
+
guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Guest " }, { t: 4, k: "guestCount" }] } },
|
212
|
+
occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Suitable for " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
|
213
|
+
fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "First name & Last name" } },
|
214
|
+
saveRoomingList: {
|
215
|
+
success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list saved!" } }
|
216
|
+
}
|
217
|
+
}
|
218
|
+
},
|
219
|
+
"fr-FR": {
|
220
|
+
RoomingListEditor: {
|
221
|
+
title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list" } },
|
222
|
+
guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Participant " }, { t: 4, k: "guestCount" }] } },
|
223
|
+
occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Convient pour " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
|
224
|
+
fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nom et prénom du participant" } },
|
225
|
+
saveRoomingList: {
|
226
|
+
success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list sauvegardée !" } }
|
227
|
+
}
|
228
|
+
}
|
229
|
+
},
|
230
|
+
"de-DE": {
|
231
|
+
RoomingListEditor: {
|
232
|
+
title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zimmerliste" } },
|
233
|
+
guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Gast " }, { t: 4, k: "guestCount" }] } },
|
234
|
+
occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Geeignet für " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
|
235
|
+
fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vorname & Nachname" } },
|
236
|
+
saveRoomingList: {
|
237
|
+
success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zimmerliste gespeichert!" } }
|
238
|
+
}
|
239
|
+
}
|
240
|
+
},
|
241
|
+
"es-ES": {
|
242
|
+
RoomingListEditor: {
|
243
|
+
title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista de habitaciones" } },
|
244
|
+
guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Huésped " }, { t: 4, k: "guestCount" }] } },
|
245
|
+
occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Adecuado para " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
|
246
|
+
fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nombre y apellido" } },
|
247
|
+
saveRoomingList: {
|
248
|
+
success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "¡Lista de habitaciones guardada!" } }
|
249
|
+
}
|
250
|
+
}
|
251
|
+
},
|
252
|
+
"it-IT": {
|
253
|
+
RoomingListEditor: {
|
254
|
+
title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista delle camere" } },
|
255
|
+
guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Ospite " }, { t: 4, k: "guestCount" }] } },
|
256
|
+
occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Adatto per " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
|
257
|
+
fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nome e cognome" } },
|
258
|
+
saveRoomingList: {
|
259
|
+
success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista delle camere salvata!" } }
|
260
|
+
}
|
261
|
+
}
|
262
|
+
},
|
263
|
+
"nl-NL": {
|
264
|
+
RoomingListEditor: {
|
265
|
+
title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kamerlijst" } },
|
266
|
+
guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Gast " }, { t: 4, k: "guestCount" }] } },
|
267
|
+
occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Geschikt voor " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
|
268
|
+
fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voornaam & Achternaam" } },
|
269
|
+
saveRoomingList: {
|
270
|
+
success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kamerlijst opgeslagen!" } }
|
271
|
+
}
|
272
|
+
}
|
273
|
+
},
|
274
|
+
"pt-PT": {
|
275
|
+
RoomingListEditor: {
|
276
|
+
title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista de quartos" } },
|
277
|
+
guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Hóspede " }, { t: 4, k: "guestCount" }] } },
|
278
|
+
occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Adequado para " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
|
279
|
+
fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nome próprio e apelido" } },
|
280
|
+
saveRoomingList: {
|
281
|
+
success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista de quartos gravada!" } }
|
282
|
+
}
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
});
|
287
|
+
}
|
288
|
+
const J = {
|
289
|
+
key: 0,
|
290
|
+
class: "font-weight-bold mb-1"
|
291
|
+
}, Q = ["innerHTML"], W = { class: "text-body-2" };
|
292
|
+
function X(t, e, s, r, u, N) {
|
293
|
+
const T = I("RoomingListEditorLayout");
|
294
|
+
return a(), m(T, null, $({ _: 2 }, [
|
295
|
+
t.hotelRoomingLists ? {
|
296
|
+
name: "rooming-title",
|
297
|
+
fn: n(() => [
|
298
|
+
h(d(t.t("RoomingListEditor.title")), 1)
|
299
|
+
]),
|
300
|
+
key: "0"
|
301
|
+
} : void 0,
|
302
|
+
t.hotelRoomingLists ? {
|
303
|
+
name: "rooming-list",
|
304
|
+
fn: n(() => [
|
305
|
+
o(H, {
|
306
|
+
variant: "accordion",
|
307
|
+
flat: ""
|
308
|
+
}, {
|
309
|
+
default: n(() => [
|
310
|
+
(a(!0), c(R, null, L(t.mappedHotelRoomingLists, (i, _) => (a(), m(M, {
|
311
|
+
key: i.id
|
312
|
+
}, {
|
313
|
+
default: n(() => [
|
314
|
+
o(P, null, {
|
315
|
+
default: n(() => [
|
316
|
+
l("div", null, [
|
317
|
+
i.hotelRoom?.description ? (a(), c("div", J, d(i.hotelRoom?.description), 1)) : y("", !0),
|
318
|
+
l("div", null, [
|
319
|
+
h(d(i.hotelRoom?.bedsPretty) + " ", 1),
|
320
|
+
l("span", {
|
321
|
+
class: "ml-2 text-caption text--secondary",
|
322
|
+
innerHTML: t.t("RoomingListEditor.occupancy", {
|
323
|
+
occupancy: i.hotelRoom?.occupancy
|
324
|
+
})
|
325
|
+
}, null, 8, Q)
|
326
|
+
])
|
327
|
+
])
|
328
|
+
]),
|
329
|
+
_: 2
|
330
|
+
}, 1024),
|
331
|
+
o(B, null, {
|
332
|
+
default: n(() => [
|
333
|
+
(a(!0), c(R, null, L(i.hotelRoomingListGuests, (b, g) => (a(), c("div", { key: g }, [
|
334
|
+
l("span", W, d(t.t("RoomingListEditor.guestCount", {
|
335
|
+
guestCount: g + 1
|
336
|
+
})), 1),
|
337
|
+
o(F, {
|
338
|
+
class: "w-sm-50",
|
339
|
+
clearable: "",
|
340
|
+
variant: "outlined",
|
341
|
+
placeholder: t.t("RoomingListEditor.fullName"),
|
342
|
+
"prepend-inner-icon": "fas fa-user",
|
343
|
+
"model-value": b.fullname,
|
344
|
+
"onUpdate:modelValue": (w) => t.updateRoomingListDebounced({
|
345
|
+
roomingListId: i.id,
|
346
|
+
guestId: b.id,
|
347
|
+
fullName: w,
|
348
|
+
index: g
|
349
|
+
})
|
350
|
+
}, null, 8, ["placeholder", "model-value", "onUpdate:modelValue"])
|
351
|
+
]))), 128))
|
352
|
+
]),
|
353
|
+
_: 2
|
354
|
+
}, 1024),
|
355
|
+
_ != t.mappedHotelRoomingLists.length - 1 ? (a(), m(E, { key: 0 })) : y("", !0)
|
356
|
+
]),
|
357
|
+
_: 2
|
358
|
+
}, 1024))), 128))
|
359
|
+
]),
|
360
|
+
_: 1
|
361
|
+
}),
|
362
|
+
o(D, {
|
363
|
+
modelValue: t.showSnackbar,
|
364
|
+
"onUpdate:modelValue": e[0] || (e[0] = (i) => t.showSnackbar = i),
|
365
|
+
color: t.snackbarColor,
|
366
|
+
class: "elevation-24",
|
367
|
+
location: "right top"
|
368
|
+
}, {
|
369
|
+
default: n(() => [
|
370
|
+
h(d(t.snackbarText), 1)
|
371
|
+
]),
|
372
|
+
_: 1
|
373
|
+
}, 8, ["modelValue", "color"])
|
374
|
+
]),
|
375
|
+
key: "1"
|
376
|
+
} : void 0
|
377
|
+
]), 1024);
|
378
|
+
}
|
379
|
+
typeof k == "function" && k(V);
|
380
|
+
const lt = /* @__PURE__ */ C(V, [["render", X]]);
|
381
|
+
export {
|
382
|
+
lt as R,
|
383
|
+
z as r
|
384
|
+
};
|
385
|
+
//# sourceMappingURL=revolugo.roominglisteditor.8ernakg_.min.js.map
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { r as n, R as s } from "./revolugo.roominglisteditor.8ernakg_.min.js";
|
2
|
+
import { W as p, _ as a } from "./revolugo.webcomponentwrapper.BMVPGxCQ.min.js";
|
3
|
+
import { d as i, c as m, w as c, a as d, n as _, h as f, r as o, o as l } from "./revolugo.index.wc.C1h_M397.min.js";
|
4
|
+
const u = i({
|
5
|
+
components: {
|
6
|
+
RoomingListEditor: s,
|
7
|
+
WebComponentWrapper: p
|
8
|
+
},
|
9
|
+
props: n
|
10
|
+
});
|
11
|
+
function g(t, R, W, C, E, L) {
|
12
|
+
const r = o("RoomingListEditor", !0), e = o("WebComponentWrapper");
|
13
|
+
return l(), m(e, null, {
|
14
|
+
default: c(() => [
|
15
|
+
d(r, _(f(t.$props)), null, 16)
|
16
|
+
]),
|
17
|
+
_: 1
|
18
|
+
});
|
19
|
+
}
|
20
|
+
const x = /* @__PURE__ */ a(u, [["render", g]]);
|
21
|
+
export {
|
22
|
+
x as default
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=revolugo.roominglisteditor.DxJ2OBqY.min.js.map
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { a2 as u, cI as d, H as l, _ as a } from "./revolugo.index.wc.C1h_M397.min.js";
|
2
|
+
const f = u({
|
3
|
+
border: [Boolean, Number, String]
|
4
|
+
}, "border");
|
5
|
+
function m(e) {
|
6
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d();
|
7
|
+
return {
|
8
|
+
borderClasses: l(() => {
|
9
|
+
const n = a(e) ? e.value : e.border, r = [];
|
10
|
+
if (n === !0 || n === "")
|
11
|
+
r.push(`${s}--border`);
|
12
|
+
else if (typeof n == "string" || n === 0)
|
13
|
+
for (const t of String(n).split(" "))
|
14
|
+
r.push(`border-${t}`);
|
15
|
+
return r;
|
16
|
+
})
|
17
|
+
};
|
18
|
+
}
|
19
|
+
const v = u({
|
20
|
+
elevation: {
|
21
|
+
type: [Number, String],
|
22
|
+
validator(e) {
|
23
|
+
const s = parseInt(e);
|
24
|
+
return !isNaN(s) && s >= 0 && // Material Design has a maximum elevation of 24
|
25
|
+
// https://material.io/design/environment/elevation.html#default-elevations
|
26
|
+
s <= 24;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}, "elevation");
|
30
|
+
function g(e) {
|
31
|
+
return {
|
32
|
+
elevationClasses: l(() => {
|
33
|
+
const o = a(e) ? e.value : e.elevation, n = [];
|
34
|
+
return o == null || n.push(`elevation-${o}`), n;
|
35
|
+
})
|
36
|
+
};
|
37
|
+
}
|
38
|
+
const b = u({
|
39
|
+
rounded: {
|
40
|
+
type: [Boolean, Number, String],
|
41
|
+
default: void 0
|
42
|
+
},
|
43
|
+
tile: Boolean
|
44
|
+
}, "rounded");
|
45
|
+
function h(e) {
|
46
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d();
|
47
|
+
return {
|
48
|
+
roundedClasses: l(() => {
|
49
|
+
const n = a(e) ? e.value : e.rounded, r = a(e) ? e.value : e.tile, t = [];
|
50
|
+
if (n === !0 || n === "")
|
51
|
+
t.push(`${s}--rounded`);
|
52
|
+
else if (typeof n == "string" || n === 0)
|
53
|
+
for (const i of String(n).split(" "))
|
54
|
+
t.push(`rounded-${i}`);
|
55
|
+
else (r || n === !1) && t.push("rounded-0");
|
56
|
+
return t;
|
57
|
+
})
|
58
|
+
};
|
59
|
+
}
|
60
|
+
export {
|
61
|
+
b as a,
|
62
|
+
h as b,
|
63
|
+
m as c,
|
64
|
+
f as d,
|
65
|
+
v as m,
|
66
|
+
g as u
|
67
|
+
};
|
68
|
+
//# sourceMappingURL=revolugo.rounded.BOHYNseH.min.js.map
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { a9 as t, X as e, H as s, cq as n } from "./revolugo.index.wc.C1h_M397.min.js";
|
2
|
+
function i() {
|
3
|
+
const o = t(!1);
|
4
|
+
return e(() => {
|
5
|
+
window.requestAnimationFrame(() => {
|
6
|
+
o.value = !0;
|
7
|
+
});
|
8
|
+
}), {
|
9
|
+
ssrBootStyles: s(() => o.value ? void 0 : {
|
10
|
+
transition: "none !important"
|
11
|
+
}),
|
12
|
+
isBooted: n(o)
|
13
|
+
};
|
14
|
+
}
|
15
|
+
export {
|
16
|
+
i as u
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=revolugo.ssrboot.DElAuRmu.min.js.map
|