@revolugo/elements 7.9.2 → 7.10.0-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/index.es.min.js +1 -1
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/{revolugo.banktransferdetails.BdUMTo3R.min.js → revolugo.banktransferdetails.BfRU3j9S.min.js} +5 -5
- package/dist/{revolugo.bookingdetailssidebar.Dgo7b4fr.min.js → revolugo.bookingdetailssidebar.Dkv3aMNJ.min.js} +6 -6
- package/dist/{revolugo.bookingmanager.D3JRIVdf.min.js → revolugo.bookingmanager.CwA4W9UT.min.js} +5 -5
- package/dist/{revolugo.bookingpaymentform.DXzM5rh2.min.js → revolugo.bookingpaymentform.pDIkYjEJ.min.js} +153 -150
- package/dist/{revolugo.cancellationpoliciesbadge.CWZRwHQL.min.js → revolugo.cancellationpoliciesbadge.Cy2BGOv2.min.js} +5 -5
- package/dist/{revolugo.cancellationpolicieslist.Cik2kCyn.min.js → revolugo.cancellationpolicieslist.pkIXEQlG.min.js} +5 -5
- package/dist/{revolugo.creditcardstripeform.Cc7ueXyH.min.js → revolugo.creditcardstripeform.CQ2tTfRF.min.js} +6 -6
- package/dist/{revolugo.creditcardstripeform.DAP69xpE.min.js → revolugo.creditcardstripeform.DP2FmyLx.min.js} +6 -6
- package/dist/{revolugo.creditcardstripeform.props.DrW0DvRA.min.js → revolugo.creditcardstripeform.props.C4lAZ1a1.min.js} +1 -1
- package/dist/{revolugo.currencypickerbtn.BUt58N1g.min.js → revolugo.currencypickerbtn.DwYjNIVB.min.js} +6 -6
- package/dist/{revolugo.dist.knLVQ8Yo.min.js → revolugo.dist.Dvmu0CnY.min.js} +2 -2
- package/dist/{revolugo.fastbookingflow.C1IPL7Wz.min.js → revolugo.fastbookingflow.BReT8KfX.min.js} +5 -5
- package/dist/{revolugo.framework.D1BYTtsP.min.js → revolugo.framework.Fsv8w1Xe.min.js} +2 -2
- package/dist/{revolugo.fullbookingflow.2Qh_Rn3r.min.js → revolugo.fullbookingflow.ChDvb7CW.min.js} +5 -5
- package/dist/{revolugo.hoteldescriptionview.DWFKLARx.min.js → revolugo.hoteldescriptionview._0NBgAXg.min.js} +5 -5
- package/dist/{revolugo.hotelofferlist.DF9DySYO.min.js → revolugo.hotelofferlist.lFsv8SvS.min.js} +5 -5
- package/dist/{revolugo.hoteloffersearchmenu.lsaEIXAD.min.js → revolugo.hoteloffersearchmenu.DtSIhXv3.min.js} +5 -5
- package/dist/{revolugo.hoteloffersmap.CAtFITJn.min.js → revolugo.hoteloffersmap.D7w6UpJZ.min.js} +5 -5
- package/dist/{revolugo.hoteloffersview.CwVTZrIy.min.js → revolugo.hoteloffersview.BImWajjk.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.CfP-u11h.min.js → revolugo.hotelroomofferlist.DduNvigy.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersbookingflow.Bt3RB9tI.min.js → revolugo.hotelroomoffersbookingflow.BLRTInnP.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersearchmenu.DwWvwHzo.min.js → revolugo.hotelroomoffersearchmenu.B5vlTMD6.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersview.CTyiEFgB.min.js → revolugo.hotelroomoffersview.Bjz4gxwF.min.js} +5 -5
- package/dist/{revolugo.langpickerbtn.Bh53pTbv.min.js → revolugo.langpickerbtn.ClQ8b-zq.min.js} +6 -6
- package/dist/{revolugo.leaflet-src.CUL1V3LK.min.js → revolugo.leaflet-src.CtLpIV-y.min.js} +10 -7
- package/dist/{revolugo.leaflet-src.esm.uQWGRTgE.min.js → revolugo.leaflet-src.esm.DzYPfo81.min.js} +9 -6
- package/dist/{revolugo.marker-icon-2x.Clwf4HLg.min.js → revolugo.marker-icon-2x.BBE8dvJp.min.js} +2 -2
- package/dist/{revolugo.marker-icon.Ca4jaSAM.min.js → revolugo.marker-icon.VORuIHX9.min.js} +2 -2
- package/dist/{revolugo.marker-shadow.D1Jwr2zu.min.js → revolugo.marker-shadow.BcaYGGj2.min.js} +2 -2
- package/dist/revolugo.min.js +51 -51
- package/dist/{revolugo.prebookform.D9H0CQOd.min.js → revolugo.prebookform.DwR_NG88.min.js} +5 -5
- package/dist/{revolugo.preferencesmenu.Dt0J7vHr.min.js → revolugo.preferencesmenu.BMpQHT6I.min.js} +5 -5
- package/dist/{revolugo.revolugo-config.C_43Dlfo.min.js → revolugo.revolugo-config.dB8Oiw_f.min.js} +1419 -1405
- package/dist/{revolugo.revolugoelements.ButiPTn4.min.js → revolugo.revolugoelements.Mt1pO5B-.min.js} +1351 -1341
- package/dist/{revolugo.rolldown-runtime.C0ojsOrv.min.js → revolugo.rolldown-runtime.C2H8viMH.min.js} +5 -5
- package/dist/{revolugo.roominglisteditor.QCEacJxN.min.js → revolugo.roominglisteditor.BRLV6iVP.min.js} +5 -5
- package/dist/{revolugo.storybooktoolbar.DsIqGjkU.min.js → revolugo.storybooktoolbar.C1IlJmT4.min.js} +19 -19
- package/dist/{revolugo.termsandconditions.Cg2Ue6hL.min.js → revolugo.termsandconditions.D2qmmY2e.min.js} +5 -5
- package/dist/{revolugo.theme.B3YqZDSM.min.js → revolugo.theme.CbBeIYt7.min.js} +4153 -4081
- package/dist/{revolugo.ui.i3fAz-nr.min.js → revolugo.ui.2nawKtPk.min.js} +33 -14
- package/dist/{revolugo.vtoolbar.C_LXGvYl.min.js → revolugo.vtoolbar.BP2Ws09g.min.js} +3 -3
- package/dist/{revolugo.webcomponentwrapper.CAWD3XPR.min.js → revolugo.webcomponentwrapper.BRidxM-R.min.js} +3 -3
- package/dist/{revolugo2.preferencesmenu.DzuFx1_P.min.js → revolugo2.preferencesmenu.CaHxOACP.min.js} +5 -5
- package/package.json +5 -5
- package/dist/revolugo.bookingpaymentform.DL3Qt5Nd.min.js +0 -4
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { n as St } from "./revolugo.rolldown-runtime.C2H8viMH.min.js";
|
|
2
|
+
import { $n as P, $r as It, An as Rt, Br as dt, C as Ft, Cn as j, Ct as Dt, Dr as X, Kr as k, M as At, Mn as et, Nr as rt, On as ht, Ot as zt, Pi as vt, Pr as Ot, Si as ft, Sr as S, T as Ut, Ti as Et, Tr as e, Ur as c, br as w, er as it, fi as h, i as Vt, jr as Ht, jt as Nt, kr as yt, kt as Mt, li as $t, mr as W, ni as qt, pi as lt, pn as K, pr as Ct, qr as jt, r as Gt, ri as a, sn as Kt, ti as ut, vi as r, vr as F, wi as u, wr as U, xi as Yt, xr as T, yr as s, yt as Zt, zn as Jt } from "./revolugo.theme.CbBeIYt7.min.js";
|
|
3
|
+
import { $ as Y, At as Qt, Bt as Wt, Gt as mt, K as Xt, Kt as ct, Lt as te, Ot as ee, Q as g, Rt as ae, Ut as Z, Wt as oe, X as ie, Y as ne, Yt as se, Z as re, _t as le, at as nt, ct as ue, dn as ce, et as N, ft as de, gt as me, it as st, kt as ve, lt as ge, mn as be, nn as I, nt as pe, ot as ke, pt as he, q as J, qt as fe, rt as z, sn as ye, st as Ce, tn as E, tt as xe, ut as Be, zt as Q } from "./revolugo.ui.2nawKtPk.min.js";
|
|
4
|
+
import { n as xt, t as Pe } from "./revolugo.creditcardstripeform.CQ2tTfRF.min.js";
|
|
5
|
+
import { t as Bt } from "./revolugo.vtoolbar.BP2Ws09g.min.js";
|
|
5
6
|
function Lt(t) {
|
|
6
7
|
try {
|
|
7
8
|
if (typeof document < "u") {
|
|
@@ -22,8 +23,8 @@ function Lt(t) {
|
|
|
22
23
|
console.error("[revolugo-elements] ", l);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
|
-
var
|
|
26
|
-
function
|
|
26
|
+
var we = {}, _e = { class: "d-flex justify-space-between" }, Te = { class: "text-right" };
|
|
27
|
+
function Le(t, l) {
|
|
27
28
|
return c(), S("div", null, [
|
|
28
29
|
e(N, {
|
|
29
30
|
class: "mb-1",
|
|
@@ -222,7 +223,7 @@ function _e(t, l) {
|
|
|
222
223
|
_: 3
|
|
223
224
|
}),
|
|
224
225
|
e(z, { class: "bg-grey-lighten-3 py-3" }, {
|
|
225
|
-
default: a(() => [s("div",
|
|
226
|
+
default: a(() => [s("div", _e, [k(t.$slots, "total", {}, () => [e(g, {
|
|
226
227
|
height: "20",
|
|
227
228
|
tile: "",
|
|
228
229
|
type: "heading",
|
|
@@ -275,19 +276,19 @@ function _e(t, l) {
|
|
|
275
276
|
})
|
|
276
277
|
]);
|
|
277
278
|
}
|
|
278
|
-
var
|
|
279
|
+
var Se = /* @__PURE__ */ mt(we, [["render", Le]]), Ie = { class: "text-h7 font-weight-bold text-grey-darken-4 ma-0 mr-2" }, Re = { class: "text-h8 text-grey-darken-2" }, Fe = { class: "text-body-2 mb-1 text-black" }, De = { class: "text-body-2 mb-1 text-black" }, Ae = { class: "font-weight-bold text-body-2 mb-0 text-black" }, ze = { class: "font-weight-bold text-body-2 mb-0 text-black" }, Oe = {
|
|
279
280
|
key: 0,
|
|
280
281
|
class: "text-body-2 text-grey-darken-1 mb-0"
|
|
281
|
-
},
|
|
282
|
+
}, Ue = {
|
|
282
283
|
key: 0,
|
|
283
284
|
class: "text-body-2 text-grey-darken-1 mb-0"
|
|
284
|
-
},
|
|
285
|
+
}, Ee = { key: 1 }, Ve = { class: "mb-1 text-black" }, He = { class: "font-weight-bold mb-0 text-black" }, Ne = { class: "font-weight-bold mb-0 text-black" }, Me = { class: "d-flex flex-column ga-2" }, $e = { class: "text-caption font-weight-bold text-orange my-0 rounded text-center" }, qe = { class: "caption font-weight-bold text-black" }, je = { class: "float-right text-black" }, Ge = {
|
|
285
286
|
key: 0,
|
|
286
287
|
class: "pt-0 pb-4"
|
|
287
|
-
},
|
|
288
|
+
}, Ke = { class: "text-caption font-weight-bold text-black" }, Ye = { class: "float-right text-black" }, Ze = { key: 1 }, Je = { class: "font-weight-black text-h6 mb-0 text-black" }, Qe = {
|
|
288
289
|
key: 0,
|
|
289
290
|
class: "text-caption mb-0 text-black"
|
|
290
|
-
},
|
|
291
|
+
}, We = { class: "text-caption mb-0" }, Pt = /* @__PURE__ */ X({
|
|
291
292
|
__name: "BookingDetailsSidebarUI",
|
|
292
293
|
props: {
|
|
293
294
|
adultCount: {},
|
|
@@ -302,29 +303,29 @@ var Le = /* @__PURE__ */ mt(Pe, [["render", _e]]), Se = { class: "text-h7 font-w
|
|
|
302
303
|
return f ? (0, K.default)(f).locale(l.value).format("ll") : null;
|
|
303
304
|
}
|
|
304
305
|
function b(f) {
|
|
305
|
-
const
|
|
306
|
-
return f ? (0, K.default)(
|
|
306
|
+
const x = (0, K.default)(`1/1/1 ${f}`, "h:mm A");
|
|
307
|
+
return f ? (0, K.default)(x).format("HH:mm") : null;
|
|
307
308
|
}
|
|
308
|
-
const v = F(() => !n.checkInDate || !n.checkOutDate ? 0 : (0, K.default)(n.checkOutDate).diff((0, K.default)(n.checkInDate), "days")), i = F(() => n.hotelRoomOffer.hotelRooms.reduce((f,
|
|
309
|
-
return (f,
|
|
309
|
+
const v = F(() => !n.checkInDate || !n.checkOutDate ? 0 : (0, K.default)(n.checkOutDate).diff((0, K.default)(n.checkInDate), "days")), i = F(() => n.hotelRoomOffer.hotelRooms.reduce((f, x) => f + x.count, 0) || 0), _ = F(() => n.hotelRoomOffer.hotelRooms.some((f) => f.beds.some((x) => x.length > 1)));
|
|
310
|
+
return (f, x) => (c(), w(Se, null, {
|
|
310
311
|
hotel: a(() => [t.hotel ? (c(), S(W, { key: 0 }, [
|
|
311
312
|
e(E, { "no-gutters": "" }, {
|
|
312
313
|
default: a(() => [t.hotel.name ? (c(), w(I, { key: 0 }, {
|
|
313
|
-
default: a(() => [s("span",
|
|
314
|
+
default: a(() => [s("span", Ie, u(t.hotel.name), 1), e(me, {
|
|
314
315
|
attach: f.$parent?.$el,
|
|
315
316
|
location: "bottom"
|
|
316
317
|
}, {
|
|
317
|
-
activator: a(({ props: L }) => [s("span", ft(yt(L)), [e(
|
|
318
|
+
activator: a(({ props: L }) => [s("span", ft(yt(L)), [e(Ce, { count: t.hotel.rating }, null, 8, ["count"])], 16)]),
|
|
318
319
|
default: a(() => [s("span", null, u(r(o)("BookingDetailsSidebar.hotel.starRating")), 1)]),
|
|
319
320
|
_: 1
|
|
320
321
|
}, 8, ["attach"])]),
|
|
321
322
|
_: 1
|
|
322
|
-
})) :
|
|
323
|
+
})) : T("", !0)]),
|
|
323
324
|
_: 1
|
|
324
325
|
}),
|
|
325
326
|
e(E, { "no-gutters": "" }, {
|
|
326
327
|
default: a(() => [e(I, null, {
|
|
327
|
-
default: a(() => [s("small",
|
|
328
|
+
default: a(() => [s("small", Re, u(r(o)("BookingDetailsSidebar.hotel.fullAddress", {
|
|
328
329
|
address: t.hotel.address,
|
|
329
330
|
postalCode: t.hotel.postalCode,
|
|
330
331
|
city: t.hotel.city,
|
|
@@ -336,7 +337,7 @@ var Le = /* @__PURE__ */ mt(Pe, [["render", _e]]), Se = { class: "text-h7 font-w
|
|
|
336
337
|
}),
|
|
337
338
|
e(E, { "no-gutters": "" }, {
|
|
338
339
|
default: a(() => [e(I, null, {
|
|
339
|
-
default: a(() => [e(
|
|
340
|
+
default: a(() => [e(ue, {
|
|
340
341
|
features: { ReviewRatingDetails: !1 },
|
|
341
342
|
hotel: t.hotel,
|
|
342
343
|
reverse: "",
|
|
@@ -346,35 +347,35 @@ var Le = /* @__PURE__ */ mt(Pe, [["render", _e]]), Se = { class: "text-h7 font-w
|
|
|
346
347
|
})]),
|
|
347
348
|
_: 1
|
|
348
349
|
})
|
|
349
|
-
], 64)) :
|
|
350
|
+
], 64)) : T("", !0)]),
|
|
350
351
|
"booking-heading": a(() => [s("h5", null, u(r(o)("BookingDetailsSidebar.bookingHeading")), 1)]),
|
|
351
|
-
"check-in-title": a(() => [s("p",
|
|
352
|
-
"check-out-title": a(() => [s("p",
|
|
353
|
-
"check-in-date": a(() => [s("p",
|
|
354
|
-
"check-out-date": a(() => [s("p",
|
|
355
|
-
"check-in-time": a(() => [t.hotel?.checkInTime ? (c(), S("p",
|
|
356
|
-
"check-out-time": a(() => [t.hotel?.checkOutTime ? (c(), S("p",
|
|
357
|
-
"length-of-stay-title": a(() => [s("p",
|
|
358
|
-
"length-of-stay-count": a(() => [s("p",
|
|
352
|
+
"check-in-title": a(() => [s("p", Fe, u(r(o)("BookingDetailsSidebar.checkInTitle")), 1)]),
|
|
353
|
+
"check-out-title": a(() => [s("p", De, u(r(o)("BookingDetailsSidebar.checkOutTitle")), 1)]),
|
|
354
|
+
"check-in-date": a(() => [s("p", Ae, u(m(t.checkInDate)), 1)]),
|
|
355
|
+
"check-out-date": a(() => [s("p", ze, u(m(t.checkOutDate)), 1)]),
|
|
356
|
+
"check-in-time": a(() => [t.hotel?.checkInTime ? (c(), S("p", Oe, u(r(o)("BookingDetailsSidebar.checkInTime", { value: b(t.hotel?.checkInTime) })), 1)) : T("", !0), x[0] || (x[0] = s("template", null, [s("span")], -1))]),
|
|
357
|
+
"check-out-time": a(() => [t.hotel?.checkOutTime ? (c(), S("p", Ue, u(r(o)("BookingDetailsSidebar.checkOutTime", { value: b(t.hotel?.checkOutTime) })), 1)) : (c(), S("span", Ee))]),
|
|
358
|
+
"length-of-stay-title": a(() => [s("p", Ve, u(r(o)("BookingDetailsSidebar.lengthOfStayTitle")), 1)]),
|
|
359
|
+
"length-of-stay-count": a(() => [s("p", He, u(r(o)("BookingDetailsSidebar.nightCount", {
|
|
359
360
|
n: v.value,
|
|
360
361
|
value: v.value
|
|
361
362
|
})), 1)]),
|
|
362
|
-
"room-selected-heading": a(() => [s("p",
|
|
363
|
-
"room-selected-list": a(() => [s("div",
|
|
364
|
-
e(
|
|
363
|
+
"room-selected-heading": a(() => [s("p", Ne, u(r(o)("BookingDetailsSidebar.roomSelectedHeading")), 1)]),
|
|
364
|
+
"room-selected-list": a(() => [s("div", Me, [
|
|
365
|
+
e(de, { "hotel-rooms": t.hotelRoomOffer.hotelRooms.map((L) => ({
|
|
365
366
|
...L,
|
|
366
367
|
id: L.id
|
|
367
368
|
})) }, null, 8, ["hotel-rooms"]),
|
|
368
|
-
t.hotelRoomOffer?.breakfastCount && t.hotelRoomOffer.breakfastCount > 0 ? (c(), w(
|
|
369
|
+
t.hotelRoomOffer?.breakfastCount && t.hotelRoomOffer.breakfastCount > 0 ? (c(), w(he, {
|
|
369
370
|
key: 0,
|
|
370
371
|
"breakfast-option": "INCLUDED",
|
|
371
372
|
breakfastCount: t.hotelRoomOffer?.breakfastCount
|
|
372
|
-
}, null, 8, ["breakfastCount"])) :
|
|
373
|
-
t.hotelRoomOffer.stayTaxesInfo === r(
|
|
373
|
+
}, null, 8, ["breakfastCount"])) : T("", !0),
|
|
374
|
+
t.hotelRoomOffer.stayTaxesInfo === r(Jt).NotIncluded ? (c(), w(ie, {
|
|
374
375
|
key: 1,
|
|
375
376
|
"adult-count": t.hotelRoomOffer.taxes?.length ? t.adultCount : 0
|
|
376
|
-
}, null, 8, ["adult-count"])) :
|
|
377
|
-
|
|
377
|
+
}, null, 8, ["adult-count"])) : T("", !0),
|
|
378
|
+
_.value ? (c(), w(Xt, {
|
|
378
379
|
key: 2,
|
|
379
380
|
density: "compact",
|
|
380
381
|
icon: !1,
|
|
@@ -382,38 +383,38 @@ var Le = /* @__PURE__ */ mt(Pe, [["render", _e]]), Se = { class: "text-h7 font-w
|
|
|
382
383
|
type: "warning",
|
|
383
384
|
variant: "tonal"
|
|
384
385
|
}, {
|
|
385
|
-
default: a(() => [s("p",
|
|
386
|
+
default: a(() => [s("p", $e, u(r(o)("BookingDetailsSidebar.bedTypeNote")), 1)]),
|
|
386
387
|
_: 1
|
|
387
|
-
})) :
|
|
388
|
+
})) : T("", !0)
|
|
388
389
|
])]),
|
|
389
390
|
"price-heading": a(() => [s("h5", null, u(r(o)("BookingDetailsSidebar.priceHeading")), 1)]),
|
|
390
|
-
"price-info-base": a(() => [t.hotelRoomOffer ? (c(), S(W, { key: 0 }, [s("span",
|
|
391
|
+
"price-info-base": a(() => [t.hotelRoomOffer ? (c(), S(W, { key: 0 }, [s("span", qe, u(r(o)("BookingDetailsSidebar.roomCount", {
|
|
391
392
|
n: i.value,
|
|
392
393
|
value: i.value
|
|
393
394
|
})) + " x " + u(r(o)("BookingDetailsSidebar.nightCount", {
|
|
394
395
|
n: v.value,
|
|
395
396
|
value: v.value
|
|
396
|
-
})), 1), s("span",
|
|
397
|
+
})), 1), s("span", je, [e(Z, {
|
|
397
398
|
amount: t.hotelRoomOffer.price,
|
|
398
399
|
currency: t.hotelRoomOffer.currency
|
|
399
|
-
}, null, 8, ["amount", "currency"])])], 64)) :
|
|
400
|
-
"price-info-taxes": a(() => [t.hotelRoomOffer && t.hotelRoomOffer.taxIncludedPrice !== t.hotelRoomOffer.price ? (c(), S("div",
|
|
400
|
+
}, null, 8, ["amount", "currency"])])], 64)) : T("", !0)]),
|
|
401
|
+
"price-info-taxes": a(() => [t.hotelRoomOffer && t.hotelRoomOffer.taxIncludedPrice !== t.hotelRoomOffer.price ? (c(), S("div", Ge, [s("span", Ke, u(r(o)("BookingDetailsSidebar.taxesAmount")), 1), s("span", Ye, [e(Z, {
|
|
401
402
|
amount: t.hotelRoomOffer.taxIncludedPrice - t.hotelRoomOffer.price,
|
|
402
403
|
currency: t.hotelRoomOffer.currency
|
|
403
|
-
}, null, 8, ["amount", "currency"])])])) : (c(), S("span",
|
|
404
|
-
total: a(() => [s("div", null, [s("p",
|
|
404
|
+
}, null, 8, ["amount", "currency"])])])) : (c(), S("span", Ze))]),
|
|
405
|
+
total: a(() => [s("div", null, [s("p", Je, u(r(o)("BookingDetailsSidebar.total")), 1), t.adultCount ? (c(), S("p", Qe, u(r(o)("BookingDetailsSidebar.guestsCount", {
|
|
405
406
|
n: t.adultCount,
|
|
406
407
|
value: t.adultCount
|
|
407
|
-
})), 1)) :
|
|
408
|
+
})), 1)) : T("", !0)])]),
|
|
408
409
|
"total-count": a(() => [t.hotelRoomOffer ? (c(), w(Z, {
|
|
409
410
|
key: 0,
|
|
410
411
|
amount: t.hotelRoomOffer.taxIncludedPrice,
|
|
411
412
|
class: "font-weight-black text-h6 text-black",
|
|
412
413
|
currency: t.hotelRoomOffer.currency
|
|
413
|
-
}, null, 8, ["amount", "currency"])) :
|
|
414
|
-
taxes: a(() => [s("p",
|
|
414
|
+
}, null, 8, ["amount", "currency"])) : T("", !0)]),
|
|
415
|
+
taxes: a(() => [s("p", We, u(r(o)("BookingDetailsSidebar.taxes")), 1)]),
|
|
415
416
|
"cancellation-policies-heading": a(() => [s("h5", null, u(r(o)("BookingDetailsSidebar.bookingPoliciesHeading")), 1)]),
|
|
416
|
-
"cancellation-policies-list": a(() => [t.hotel && t.hotelRoomOffer ? (c(), w(
|
|
417
|
+
"cancellation-policies-list": a(() => [t.hotel && t.hotelRoomOffer ? (c(), w(re, {
|
|
417
418
|
key: 0,
|
|
418
419
|
"cancellation-policies": t.hotelRoomOffer.cancellationPolicies,
|
|
419
420
|
"check-in-date": t.checkInDate,
|
|
@@ -423,7 +424,7 @@ var Le = /* @__PURE__ */ mt(Pe, [["render", _e]]), Se = { class: "text-h7 font-w
|
|
|
423
424
|
"cancellation-policies",
|
|
424
425
|
"check-in-date",
|
|
425
426
|
"timezone"
|
|
426
|
-
])) :
|
|
427
|
+
])) : T("", !0)]),
|
|
427
428
|
_: 1
|
|
428
429
|
}));
|
|
429
430
|
}
|
|
@@ -2306,7 +2307,7 @@ function gt(t) {
|
|
|
2306
2307
|
});
|
|
2307
2308
|
}
|
|
2308
2309
|
typeof gt == "function" && gt(Pt);
|
|
2309
|
-
var
|
|
2310
|
+
var Xe = /* @__PURE__ */ mt(Pt, [["__scopeId", "data-v-0c3cd674"]]), ta = /* @__PURE__ */ X({
|
|
2310
2311
|
__name: "BookingDetailsSidebar",
|
|
2311
2312
|
props: {
|
|
2312
2313
|
adultCount: {},
|
|
@@ -2315,7 +2316,7 @@ var We = /* @__PURE__ */ mt(Pt, [["__scopeId", "data-v-0c3cd674"]]), Xe = /* @__
|
|
|
2315
2316
|
hotelRoomOffer: {}
|
|
2316
2317
|
},
|
|
2317
2318
|
setup(t) {
|
|
2318
|
-
const l = t, { bookingApiClient: o } = ht(), n = h(null), m = F(() =>
|
|
2319
|
+
const l = t, { bookingApiClient: o } = ht(), n = h(null), m = F(() => Mt(l.hotelRoomOffer, null));
|
|
2319
2320
|
return dt(() => {
|
|
2320
2321
|
try {
|
|
2321
2322
|
m.value && o.value.hotels.retrieve({ id: m.value.hotelId }).then((b) => {
|
|
@@ -2324,7 +2325,7 @@ var We = /* @__PURE__ */ mt(Pt, [["__scopeId", "data-v-0c3cd674"]]), Xe = /* @__
|
|
|
2324
2325
|
} catch (b) {
|
|
2325
2326
|
console.error(b);
|
|
2326
2327
|
}
|
|
2327
|
-
}), (b, v) => (c(), w(
|
|
2328
|
+
}), (b, v) => (c(), w(Xe, {
|
|
2328
2329
|
"adult-count": t.adultCount,
|
|
2329
2330
|
"check-in-date": t.checkInDate,
|
|
2330
2331
|
"check-out-date": t.checkOutDate,
|
|
@@ -2338,35 +2339,35 @@ var We = /* @__PURE__ */ mt(Pt, [["__scopeId", "data-v-0c3cd674"]]), Xe = /* @__
|
|
|
2338
2339
|
"hotel-room-offer"
|
|
2339
2340
|
]));
|
|
2340
2341
|
}
|
|
2341
|
-
}),
|
|
2342
|
+
}), ea = ta, aa = /* @__PURE__ */ (function(t) {
|
|
2342
2343
|
return t.BookingDetails = "BookingDetails", t;
|
|
2343
|
-
})({}),
|
|
2344
|
-
function
|
|
2344
|
+
})({}), oa = { [aa.BookingDetails]: !0 };
|
|
2345
|
+
function ia(t) {
|
|
2345
2346
|
const l = lt(t());
|
|
2346
2347
|
let o = -1;
|
|
2347
2348
|
function n() {
|
|
2348
2349
|
clearInterval(o);
|
|
2349
2350
|
}
|
|
2350
2351
|
function m() {
|
|
2351
|
-
n(),
|
|
2352
|
+
n(), Ot(() => l.value = t());
|
|
2352
2353
|
}
|
|
2353
2354
|
function b(v) {
|
|
2354
|
-
const i = v ? getComputedStyle(v) : { transitionDuration: 0.2 },
|
|
2355
|
+
const i = v ? getComputedStyle(v) : { transitionDuration: 0.2 }, _ = parseFloat(i.transitionDuration) * 1e3 || 200;
|
|
2355
2356
|
if (n(), l.value <= 0) return;
|
|
2356
2357
|
const f = performance.now();
|
|
2357
2358
|
o = window.setInterval(() => {
|
|
2358
|
-
const
|
|
2359
|
-
l.value = Math.max(t() -
|
|
2360
|
-
},
|
|
2359
|
+
const x = performance.now() - f + _;
|
|
2360
|
+
l.value = Math.max(t() - x, 0), l.value <= 0 && n();
|
|
2361
|
+
}, _);
|
|
2361
2362
|
}
|
|
2362
|
-
return
|
|
2363
|
+
return $t(n), {
|
|
2363
2364
|
clear: n,
|
|
2364
2365
|
time: l,
|
|
2365
2366
|
start: b,
|
|
2366
2367
|
reset: m
|
|
2367
2368
|
};
|
|
2368
2369
|
}
|
|
2369
|
-
var
|
|
2370
|
+
var na = At({
|
|
2370
2371
|
multiLine: Boolean,
|
|
2371
2372
|
text: String,
|
|
2372
2373
|
timer: [Boolean, String],
|
|
@@ -2376,26 +2377,26 @@ var ia = Dt({
|
|
|
2376
2377
|
},
|
|
2377
2378
|
vertical: Boolean,
|
|
2378
2379
|
...Be({ location: "bottom" }),
|
|
2379
|
-
...
|
|
2380
|
-
...
|
|
2381
|
-
...
|
|
2382
|
-
...
|
|
2383
|
-
...
|
|
2380
|
+
...xe(),
|
|
2381
|
+
...te(),
|
|
2382
|
+
...ve(),
|
|
2383
|
+
...Gt(),
|
|
2384
|
+
...Zt(fe({ transition: "v-snackbar-transition" }), [
|
|
2384
2385
|
"persistent",
|
|
2385
2386
|
"noClickAnimation",
|
|
2386
2387
|
"scrim",
|
|
2387
2388
|
"scrollStrategy"
|
|
2388
2389
|
])
|
|
2389
|
-
}, "VSnackbar"),
|
|
2390
|
+
}, "VSnackbar"), sa = Ut()({
|
|
2390
2391
|
name: "VSnackbar",
|
|
2391
|
-
props:
|
|
2392
|
+
props: na(),
|
|
2392
2393
|
emits: { "update:modelValue": (t) => !0 },
|
|
2393
2394
|
setup(t, l) {
|
|
2394
2395
|
let { slots: o } = l;
|
|
2395
|
-
const n =
|
|
2396
|
-
|
|
2397
|
-
const y =
|
|
2398
|
-
|
|
2396
|
+
const n = Ft(t, "modelValue"), { positionClasses: m } = pe(t), { scopeId: b } = se(), { themeClasses: v } = Vt(t), { colorClasses: i, colorStyles: _, variantClasses: f } = Qt(t), { roundedClasses: x } = ae(t), L = ia(() => Number(t.timeout)), O = h(), B = h(), R = lt(!1), V = lt(0), D = h(), M = Ht(ye, void 0);
|
|
2397
|
+
zt(() => !!M, () => {
|
|
2398
|
+
const y = ce();
|
|
2399
|
+
qt(() => {
|
|
2399
2400
|
D.value = y.mainStyles.value;
|
|
2400
2401
|
});
|
|
2401
2402
|
}), ut(n, p), ut(() => t.timeout, p), dt(() => {
|
|
@@ -2406,7 +2407,7 @@ var ia = Dt({
|
|
|
2406
2407
|
L.reset(), window.clearTimeout(H);
|
|
2407
2408
|
const y = Number(t.timeout);
|
|
2408
2409
|
if (!n.value || y === -1) return;
|
|
2409
|
-
const C =
|
|
2410
|
+
const C = Dt(B.value);
|
|
2410
2411
|
L.start(C), H = window.setTimeout(() => {
|
|
2411
2412
|
n.value = !1;
|
|
2412
2413
|
}, y);
|
|
@@ -2430,7 +2431,7 @@ var ia = Dt({
|
|
|
2430
2431
|
R.value && A();
|
|
2431
2432
|
}
|
|
2432
2433
|
const ot = F(() => t.location.split(" ").reduce((y, C) => (y[`v-snackbar--${C}`] = !0, y), {}));
|
|
2433
|
-
return
|
|
2434
|
+
return be(() => {
|
|
2434
2435
|
const y = ct.filterProps(t), C = !!(o.default || o.text || t.text);
|
|
2435
2436
|
return e(ct, rt({
|
|
2436
2437
|
ref: O,
|
|
@@ -2455,10 +2456,10 @@ var ia = Dt({
|
|
|
2455
2456
|
"v-snackbar__wrapper",
|
|
2456
2457
|
v.value,
|
|
2457
2458
|
i.value,
|
|
2458
|
-
|
|
2459
|
+
x.value,
|
|
2459
2460
|
f.value
|
|
2460
2461
|
],
|
|
2461
|
-
style: [
|
|
2462
|
+
style: [_.value],
|
|
2462
2463
|
onPointerenter: G,
|
|
2463
2464
|
onPointerleave: A
|
|
2464
2465
|
}, y.contentProps),
|
|
@@ -2472,12 +2473,12 @@ var ia = Dt({
|
|
|
2472
2473
|
onAfterLeave: at
|
|
2473
2474
|
}, b), {
|
|
2474
2475
|
default: () => [
|
|
2475
|
-
|
|
2476
|
+
ee(!1, "v-snackbar"),
|
|
2476
2477
|
t.timer && !R.value && e("div", {
|
|
2477
2478
|
key: "timer",
|
|
2478
2479
|
class: "v-snackbar__timer"
|
|
2479
|
-
}, [e(
|
|
2480
|
-
ref:
|
|
2480
|
+
}, [e(ge, {
|
|
2481
|
+
ref: B,
|
|
2481
2482
|
color: typeof t.timer == "string" ? t.timer : "info",
|
|
2482
2483
|
max: t.timeout,
|
|
2483
2484
|
"model-value": L.time.value
|
|
@@ -2488,7 +2489,7 @@ var ia = Dt({
|
|
|
2488
2489
|
role: "status",
|
|
2489
2490
|
"aria-live": "polite"
|
|
2490
2491
|
}, [o.text?.() ?? t.text, o.default?.()]),
|
|
2491
|
-
o.actions && e(
|
|
2492
|
+
o.actions && e(Wt, { defaults: { VBtn: {
|
|
2492
2493
|
variant: "text",
|
|
2493
2494
|
ripple: !1,
|
|
2494
2495
|
slim: !0
|
|
@@ -2496,9 +2497,9 @@ var ia = Dt({
|
|
|
2496
2497
|
],
|
|
2497
2498
|
activator: o.activator
|
|
2498
2499
|
});
|
|
2499
|
-
}),
|
|
2500
|
+
}), le({}, O);
|
|
2500
2501
|
}
|
|
2501
|
-
}),
|
|
2502
|
+
}), ra = { class: "d-flex flex-column ga-3" }, la = ["href"], ua = { class: "mr-1" }, ca = { class: "mr-1" }, da = { class: "mx-2" }, ma = { class: "mr-1" }, wt = /* @__PURE__ */ X({
|
|
2502
2503
|
__name: "PaymentFormUI",
|
|
2503
2504
|
props: {
|
|
2504
2505
|
currency: {},
|
|
@@ -2517,12 +2518,12 @@ var ia = Dt({
|
|
|
2517
2518
|
"payment:success"
|
|
2518
2519
|
],
|
|
2519
2520
|
setup(t, { expose: l, emit: o }) {
|
|
2520
|
-
const n = o, { t: m } = et(), b = t, v = h(!1), i = h(P.CreditCard),
|
|
2521
|
+
const n = o, { t: m } = et(), b = t, v = h(!1), i = h(P.CreditCard), _ = h(!1), f = h(!1), x = h(!1), L = h(null), O = It("CREDIT_CARD"), B = F(() => b.paymentMethods.find((p) => p.name === P.CreditCard && p.payload)), R = F(() => {
|
|
2521
2522
|
const p = b.paymentMethods.find((d) => d.name === P.Coupon && d.payload);
|
|
2522
2523
|
return !!(p && p.payload.amount === b.totalToPay);
|
|
2523
2524
|
});
|
|
2524
2525
|
function V(p) {
|
|
2525
|
-
|
|
2526
|
+
x.value = p && !R.value, n("payment:change", p), L.value = "";
|
|
2526
2527
|
}
|
|
2527
2528
|
function D(p) {
|
|
2528
2529
|
n("payment:error"), L.value = p;
|
|
@@ -2542,15 +2543,15 @@ var ia = Dt({
|
|
|
2542
2543
|
}
|
|
2543
2544
|
}
|
|
2544
2545
|
return l({ pay: H }), (p, d) => {
|
|
2545
|
-
const G =
|
|
2546
|
-
return c(), S("div",
|
|
2547
|
-
e(
|
|
2546
|
+
const G = jt("i18n-t");
|
|
2547
|
+
return c(), S("div", ra, [
|
|
2548
|
+
e(Pe, {
|
|
2548
2549
|
ref: "CREDIT_CARD",
|
|
2549
|
-
amount:
|
|
2550
|
+
amount: B.value?.payload?.amount || 0,
|
|
2550
2551
|
currency: t.currency,
|
|
2551
|
-
disabled: !
|
|
2552
|
+
disabled: !B.value?.payload.amount || !B.value?.payload.token,
|
|
2552
2553
|
loading: t.isLoading,
|
|
2553
|
-
stripeToken:
|
|
2554
|
+
stripeToken: B.value?.payload.token,
|
|
2554
2555
|
onChange: V,
|
|
2555
2556
|
onError: D,
|
|
2556
2557
|
"onPayment:success": d[0] || (d[0] = (A) => M(r(P).CreditCard))
|
|
@@ -2562,12 +2563,12 @@ var ia = Dt({
|
|
|
2562
2563
|
"stripeToken"
|
|
2563
2564
|
]),
|
|
2564
2565
|
k(p.$slots, "append"),
|
|
2565
|
-
k(p.$slots, "terms", {}, () => [e(
|
|
2566
|
+
k(p.$slots, "terms", {}, () => [e(xt, {
|
|
2566
2567
|
ref: "testing",
|
|
2567
|
-
modelValue:
|
|
2568
|
-
"onUpdate:modelValue": d[2] || (d[2] = (A) =>
|
|
2568
|
+
modelValue: _.value,
|
|
2569
|
+
"onUpdate:modelValue": d[2] || (d[2] = (A) => _.value = A),
|
|
2569
2570
|
color: "primary",
|
|
2570
|
-
error: f.value && !
|
|
2571
|
+
error: f.value && !_.value
|
|
2571
2572
|
}, {
|
|
2572
2573
|
label: a(() => [s("span", { onClick: d[1] || (d[1] = Ct(() => {
|
|
2573
2574
|
}, ["stop"])) }, [e(G, {
|
|
@@ -2577,12 +2578,12 @@ var ia = Dt({
|
|
|
2577
2578
|
linkText: a(() => [s("b", null, [s("a", {
|
|
2578
2579
|
href: r(m)("PaymentFormUI.termsURL"),
|
|
2579
2580
|
target: "_blank"
|
|
2580
|
-
}, u(r(m)("PaymentFormUI.termsAndConditionsLinkText")), 9,
|
|
2581
|
+
}, u(r(m)("PaymentFormUI.termsAndConditionsLinkText")), 9, la)])]),
|
|
2581
2582
|
_: 1
|
|
2582
2583
|
})])]),
|
|
2583
2584
|
_: 1
|
|
2584
2585
|
}, 8, ["modelValue", "error"])]),
|
|
2585
|
-
e(
|
|
2586
|
+
e(ke, { class: "mt-n6" }, {
|
|
2586
2587
|
default: a(() => [e(E, {
|
|
2587
2588
|
align: "end",
|
|
2588
2589
|
class: "flex-column flex-sm-row",
|
|
@@ -2594,18 +2595,18 @@ var ia = Dt({
|
|
|
2594
2595
|
class: "w-sm-auto w-100",
|
|
2595
2596
|
color: "primary",
|
|
2596
2597
|
"data-gtm-id": "payment-book-pay-later",
|
|
2597
|
-
disabled: t.isLoading || !
|
|
2598
|
+
disabled: t.isLoading || !_.value,
|
|
2598
2599
|
loading: t.isLoading,
|
|
2599
2600
|
variant: "outlined",
|
|
2600
2601
|
onClick: d[3] || (d[3] = (A) => n("payment:later"))
|
|
2601
2602
|
}, {
|
|
2602
|
-
default: a(() => [s("span",
|
|
2603
|
+
default: a(() => [s("span", ua, u(r(m)("PaymentFormUI.completeBookingNow")), 1)]),
|
|
2603
2604
|
_: 1
|
|
2604
2605
|
}, 8, ["disabled", "loading"])) : t.isPayLaterAllowed ? (c(), S(W, { key: 1 }, [e(J, {
|
|
2605
2606
|
class: "w-sm-auto w-100",
|
|
2606
2607
|
color: "primary",
|
|
2607
2608
|
"data-gtm-id": "payment-book-pay-later",
|
|
2608
|
-
disabled: t.isLoading || !
|
|
2609
|
+
disabled: t.isLoading || !_.value,
|
|
2609
2610
|
loading: t.isLoading,
|
|
2610
2611
|
variant: "outlined",
|
|
2611
2612
|
onClick: d[4] || (d[4] = (A) => n("payment:later"))
|
|
@@ -2618,8 +2619,8 @@ var ia = Dt({
|
|
|
2618
2619
|
default: a(() => [...d[6] || (d[6] = [U(" fas fa-clock ", -1)])]),
|
|
2619
2620
|
_: 1
|
|
2620
2621
|
}),
|
|
2621
|
-
s("span",
|
|
2622
|
-
t.isPayLaterForced ?
|
|
2622
|
+
s("span", ca, u(r(m)("PaymentFormUI.completeBookingLater")), 1),
|
|
2623
|
+
t.isPayLaterForced ? T("", !0) : (c(), w(r(Z), {
|
|
2623
2624
|
key: 0,
|
|
2624
2625
|
amount: t.totalToPay,
|
|
2625
2626
|
class: "font-weight-bold",
|
|
@@ -2627,12 +2628,12 @@ var ia = Dt({
|
|
|
2627
2628
|
}, null, 8, ["amount", "currency"]))
|
|
2628
2629
|
]),
|
|
2629
2630
|
_: 1
|
|
2630
|
-
}, 8, ["disabled", "loading"]), s("span",
|
|
2631
|
+
}, 8, ["disabled", "loading"]), s("span", da, u(r(m)("PaymentFormUI.or")), 1)], 64)) : T("", !0), t.isPayLaterForced ? T("", !0) : (c(), w(J, {
|
|
2631
2632
|
key: 2,
|
|
2632
2633
|
class: "w-sm-auto w-100",
|
|
2633
2634
|
color: "primary",
|
|
2634
2635
|
"data-gtm-id": "payment-book-now",
|
|
2635
|
-
disabled: t.isLoading || !
|
|
2636
|
+
disabled: t.isLoading || !_.value || !x.value || t.isUpdatingPaymentMethods,
|
|
2636
2637
|
loading: t.isLoading,
|
|
2637
2638
|
variant: "flat",
|
|
2638
2639
|
onClick: d[5] || (d[5] = (A) => n("payment:pay"))
|
|
@@ -2643,7 +2644,7 @@ var ia = Dt({
|
|
|
2643
2644
|
}, {
|
|
2644
2645
|
default: a(() => [...d[7] || (d[7] = [U(" fas fa-lock ", -1)])]),
|
|
2645
2646
|
_: 1
|
|
2646
|
-
}), s("span",
|
|
2647
|
+
}), s("span", ma, u(r(m)("PaymentFormUI.completeBookingNow")), 1)]),
|
|
2647
2648
|
_: 1
|
|
2648
2649
|
}, 8, ["disabled", "loading"]))]),
|
|
2649
2650
|
_: 1
|
|
@@ -3050,7 +3051,7 @@ function bt(t) {
|
|
|
3050
3051
|
});
|
|
3051
3052
|
}
|
|
3052
3053
|
typeof bt == "function" && bt(wt);
|
|
3053
|
-
var
|
|
3054
|
+
var va = wt, ga = { class: "d-flex justify-space-between w-100 items-center" }, ba = ["href"], pa = { class: "mr-1" }, _t = /* @__PURE__ */ X({
|
|
3054
3055
|
__name: "BookingPaymentForcedPayLater",
|
|
3055
3056
|
props: { isLoading: {
|
|
3056
3057
|
type: Boolean,
|
|
@@ -3065,13 +3066,13 @@ var ma = wt, va = { class: "d-flex justify-space-between w-100 items-center" },
|
|
|
3065
3066
|
elevation: "0",
|
|
3066
3067
|
style: { borderColor: "rgb(var(--v-theme-primary))" }
|
|
3067
3068
|
}, {
|
|
3068
|
-
default: a(() => [e(
|
|
3069
|
+
default: a(() => [e(Bt, {
|
|
3069
3070
|
class: "text-white",
|
|
3070
3071
|
color: "primary",
|
|
3071
3072
|
dense: "",
|
|
3072
3073
|
elevation: "0"
|
|
3073
3074
|
}, {
|
|
3074
|
-
default: a(() => [s("div",
|
|
3075
|
+
default: a(() => [s("div", ga, [s("h4", null, u(r(o)("BookingPaymentForcedPayLater.payLaterForced.title")), 1)])]),
|
|
3075
3076
|
_: 1
|
|
3076
3077
|
}), e(z, null, {
|
|
3077
3078
|
default: a(() => [s("h4", null, u(r(o)("BookingPaymentForcedPayLater.payLaterForced.subtitle")), 1)]),
|
|
@@ -3079,11 +3080,11 @@ var ma = wt, va = { class: "d-flex justify-space-between w-100 items-center" },
|
|
|
3079
3080
|
})]),
|
|
3080
3081
|
_: 1
|
|
3081
3082
|
}),
|
|
3082
|
-
e(
|
|
3083
|
+
e(xt, {
|
|
3083
3084
|
modelValue: n.value,
|
|
3084
3085
|
"onUpdate:modelValue": v[1] || (v[1] = (i) => n.value = i)
|
|
3085
3086
|
}, {
|
|
3086
|
-
label: a(() => [e(r(
|
|
3087
|
+
label: a(() => [e(r(Rt), {
|
|
3087
3088
|
keypath: "BookingPaymentForcedPayLater.termsAndConditions",
|
|
3088
3089
|
tag: "span",
|
|
3089
3090
|
onClick: v[0] || (v[0] = Ct(() => {
|
|
@@ -3092,7 +3093,7 @@ var ma = wt, va = { class: "d-flex justify-space-between w-100 items-center" },
|
|
|
3092
3093
|
link: a(() => [s("b", null, [s("a", {
|
|
3093
3094
|
href: r(o)("BookingPaymentForcedPayLater.termsURL"),
|
|
3094
3095
|
target: "_blank"
|
|
3095
|
-
}, u(r(o)("BookingPaymentForcedPayLater.termsLinkText")), 9,
|
|
3096
|
+
}, u(r(o)("BookingPaymentForcedPayLater.termsLinkText")), 9, ba)])]),
|
|
3096
3097
|
_: 1
|
|
3097
3098
|
})]),
|
|
3098
3099
|
_: 1
|
|
@@ -3111,7 +3112,7 @@ var ma = wt, va = { class: "d-flex justify-space-between w-100 items-center" },
|
|
|
3111
3112
|
variant: "outlined",
|
|
3112
3113
|
onClick: v[2] || (v[2] = (i) => m("payment:later"))
|
|
3113
3114
|
}, {
|
|
3114
|
-
default: a(() => [s("span",
|
|
3115
|
+
default: a(() => [s("span", pa, u(r(o)("BookingPaymentForcedPayLater.completeBookingLaterForced")), 1)]),
|
|
3115
3116
|
_: 1
|
|
3116
3117
|
}, 8, ["disabled", "loading"])]),
|
|
3117
3118
|
_: 1
|
|
@@ -3528,46 +3529,46 @@ function pt(t) {
|
|
|
3528
3529
|
}
|
|
3529
3530
|
});
|
|
3530
3531
|
}
|
|
3531
|
-
typeof pt == "function" && pt(
|
|
3532
|
-
var
|
|
3532
|
+
typeof pt == "function" && pt(_t);
|
|
3533
|
+
var ka = _t, ha = { class: "text-green" }, fa = { key: 1 }, ya = { class: "d-flex align-center px-2" }, Tt = /* @__PURE__ */ X({
|
|
3533
3534
|
__name: "BookingPaymentForm",
|
|
3534
3535
|
props: {
|
|
3535
|
-
features: { default: () =>
|
|
3536
|
+
features: { default: () => oa },
|
|
3536
3537
|
token: {}
|
|
3537
3538
|
},
|
|
3538
3539
|
emits: ["payment:success"],
|
|
3539
3540
|
setup(t, { emit: l }) {
|
|
3540
|
-
const o = t, n = l, { t: m } = et(), { bookingApiClient: b } = ht(), { eventBus: v } =
|
|
3541
|
+
const o = t, n = l, { t: m } = et(), { bookingApiClient: b } = ht(), { eventBus: v } = Nt(), i = h(null), _ = h(""), f = h(null), x = h(null), L = h(null), O = h(!1), B = h(!1), R = h(!1), V = h(!1), D = h(!1), M = h(null), H = F(() => i.value?.payLater === it.Forced), p = F(() => i.value?.payLater && [it.Enabled, it.Forced].includes(i.value?.payLater)), d = F(() => Kt(i.value?.paymentMethods ?? [], "name")), G = F(() => d.value[P.CreditCard] && d.value[P.CreditCard].payload ? d.value[P.CreditCard].payload : null);
|
|
3541
3542
|
async function A() {
|
|
3542
3543
|
try {
|
|
3543
3544
|
if (d.value[P.Coupon]?.payload?.amount === i.value?.taxIncludedPrice) {
|
|
3544
|
-
|
|
3545
|
+
B.value = !0, await b.value.bookings.couponCharge({
|
|
3545
3546
|
couponId: d.value[P.Coupon].payload.couponId,
|
|
3546
3547
|
id: i.value.id
|
|
3547
3548
|
}), R.value = !0, n(j.PaymentSuccess, i.value), v.$emit(j.PaymentSuccess, vt(i.value));
|
|
3548
3549
|
return;
|
|
3549
3550
|
}
|
|
3550
3551
|
if (!M.value) return;
|
|
3551
|
-
|
|
3552
|
+
B.value = !0, M.value.pay();
|
|
3552
3553
|
} catch {
|
|
3553
3554
|
D.value = !0;
|
|
3554
3555
|
}
|
|
3555
3556
|
}
|
|
3556
3557
|
async function tt() {
|
|
3557
3558
|
try {
|
|
3558
|
-
if (
|
|
3559
|
-
|
|
3559
|
+
if (B.value = !0, !i.value?.id) {
|
|
3560
|
+
B.value = !1;
|
|
3560
3561
|
return;
|
|
3561
3562
|
}
|
|
3562
3563
|
await b.value.bookings.paylater({ id: i.value.id }), R.value = !0, n(j.PaymentSuccess, i.value), v.$emit(j.PaymentSuccess, vt(i.value));
|
|
3563
3564
|
} catch {
|
|
3564
3565
|
D.value = !0;
|
|
3565
3566
|
} finally {
|
|
3566
|
-
|
|
3567
|
+
B.value = !1;
|
|
3567
3568
|
}
|
|
3568
3569
|
}
|
|
3569
3570
|
function $(y) {
|
|
3570
|
-
L.value = "",
|
|
3571
|
+
L.value = "", B.value = !y;
|
|
3571
3572
|
}
|
|
3572
3573
|
async function at() {
|
|
3573
3574
|
try {
|
|
@@ -3587,7 +3588,7 @@ var pa = Tt, ka = { class: "text-green" }, ha = { key: 1 }, fa = { class: "d-fle
|
|
|
3587
3588
|
}
|
|
3588
3589
|
async function ot() {
|
|
3589
3590
|
try {
|
|
3590
|
-
|
|
3591
|
+
x.value = "", V.value = !0;
|
|
3591
3592
|
const y = [{ name: P.CreditCard }];
|
|
3592
3593
|
if (f.value && y.push({
|
|
3593
3594
|
name: P.Coupon,
|
|
@@ -3597,9 +3598,9 @@ var pa = Tt, ka = { class: "text-green" }, ha = { key: 1 }, fa = { class: "d-fle
|
|
|
3597
3598
|
paymentMethodUpdatePayloadApi: { paymentMethods: y }
|
|
3598
3599
|
})), $(!0), !d.value[P.Coupon] || !d.value[P.Coupon].payload?.amount) {
|
|
3599
3600
|
if (!f) return;
|
|
3600
|
-
|
|
3601
|
+
_.value = m("BookingPaymentForm.paymentMethods.coupon.error");
|
|
3601
3602
|
} else
|
|
3602
|
-
|
|
3603
|
+
_.value = "", x.value = m("BookingPaymentForm.paymentMethods.coupon.success", { price: Et({
|
|
3603
3604
|
amount: d.value[P.Coupon].payload.amount,
|
|
3604
3605
|
currency: i.value?.currency
|
|
3605
3606
|
}) });
|
|
@@ -3625,11 +3626,11 @@ var pa = Tt, ka = { class: "text-green" }, ha = { key: 1 }, fa = { class: "d-fle
|
|
|
3625
3626
|
}, {
|
|
3626
3627
|
default: a(() => [...C[4] || (C[4] = [U(" fas fa-check-circle ", -1)])]),
|
|
3627
3628
|
_: 1
|
|
3628
|
-
}), s("h3",
|
|
3629
|
+
}), s("h3", ha, u(r(m)("BookingPaymentForm.paymentSuccess.subtitle")), 1)]),
|
|
3629
3630
|
_: 1
|
|
3630
3631
|
})]),
|
|
3631
3632
|
_: 1
|
|
3632
|
-
})) : i.value && i.value.id ? (c(), S("div",
|
|
3633
|
+
})) : i.value && i.value.id ? (c(), S("div", fa, [e(sa, {
|
|
3633
3634
|
modelValue: D.value,
|
|
3634
3635
|
"onUpdate:modelValue": C[1] || (C[1] = (q) => D.value = q),
|
|
3635
3636
|
color: "error",
|
|
@@ -3639,7 +3640,7 @@ var pa = Tt, ka = { class: "text-green" }, ha = { key: 1 }, fa = { class: "d-fle
|
|
|
3639
3640
|
actions: a(({ isActive: q }) => [e(J, rt({
|
|
3640
3641
|
color: "pink",
|
|
3641
3642
|
variant: "text"
|
|
3642
|
-
}, q, { onClick: C[0] || (C[0] = (
|
|
3643
|
+
}, q, { onClick: C[0] || (C[0] = (xa) => D.value = !1) }), {
|
|
3643
3644
|
default: a(() => [e(Q, null, {
|
|
3644
3645
|
default: a(() => [...C[5] || (C[5] = [U("fas fa-times", -1)])]),
|
|
3645
3646
|
_: 1
|
|
@@ -3656,14 +3657,14 @@ var pa = Tt, ka = { class: "text-green" }, ha = { key: 1 }, fa = { class: "d-fle
|
|
|
3656
3657
|
sm: "4",
|
|
3657
3658
|
xl: "4"
|
|
3658
3659
|
}, {
|
|
3659
|
-
default: a(() => [e(
|
|
3660
|
+
default: a(() => [e(ea, ft(yt(i.value)), null, 16)]),
|
|
3660
3661
|
_: 1
|
|
3661
|
-
})) :
|
|
3662
|
+
})) : T("", !0), e(I, { class: Yt(t.features.BookingDetails ? "col-sm-8 col-12" : "w-100") }, {
|
|
3662
3663
|
default: a(() => [e(N, {
|
|
3663
3664
|
border: "",
|
|
3664
3665
|
elevation: "0"
|
|
3665
3666
|
}, {
|
|
3666
|
-
default: a(() => [t.features.BookingDetails ?
|
|
3667
|
+
default: a(() => [t.features.BookingDetails ? T("", !0) : (c(), w(Bt, {
|
|
3667
3668
|
key: 0,
|
|
3668
3669
|
color: "primary",
|
|
3669
3670
|
dark: "",
|
|
@@ -3677,30 +3678,30 @@ var pa = Tt, ka = { class: "text-green" }, ha = { key: 1 }, fa = { class: "d-fle
|
|
|
3677
3678
|
}, null, 8, ["amount", "currency"])])]),
|
|
3678
3679
|
_: 1
|
|
3679
3680
|
})), e(z, null, {
|
|
3680
|
-
default: a(() => [H.value ? (c(), w(
|
|
3681
|
+
default: a(() => [H.value ? (c(), w(ka, {
|
|
3681
3682
|
key: 0,
|
|
3682
|
-
"is-loading":
|
|
3683
|
+
"is-loading": B.value,
|
|
3683
3684
|
"onPayment:later": tt
|
|
3684
3685
|
}, null, 8, ["is-loading"])) : (c(), S(W, { key: 1 }, [G.value ? (c(), w(E, { key: 0 }, {
|
|
3685
3686
|
default: a(() => [e(I, null, {
|
|
3686
|
-
default: a(() => [e(
|
|
3687
|
+
default: a(() => [e(va, {
|
|
3687
3688
|
ref_key: "paymentForm",
|
|
3688
3689
|
ref: M,
|
|
3689
3690
|
currency: i.value.currency,
|
|
3690
|
-
"is-loading":
|
|
3691
|
+
"is-loading": B.value,
|
|
3691
3692
|
"is-pay-later-allowed": p.value,
|
|
3692
3693
|
"is-pay-later-forced": H.value,
|
|
3693
3694
|
"is-updating-payment-methods": V.value,
|
|
3694
3695
|
"payment-methods": Object.values(d.value),
|
|
3695
3696
|
"total-to-pay": i.value.taxIncludedPrice,
|
|
3696
|
-
"onPayment:error": C[2] || (C[2] = (q) =>
|
|
3697
|
+
"onPayment:error": C[2] || (C[2] = (q) => B.value = !1),
|
|
3697
3698
|
"onPayment:later": tt,
|
|
3698
3699
|
"onPayment:pay": A,
|
|
3699
3700
|
"onPayment:success": C[3] || (C[3] = () => {
|
|
3700
|
-
|
|
3701
|
+
B.value = !1, R.value = !0, r(v).$emit(r(j).PaymentSuccess, i.value);
|
|
3701
3702
|
})
|
|
3702
3703
|
}, {
|
|
3703
|
-
append: a(() => [s("div",
|
|
3704
|
+
append: a(() => [s("div", ya, [e(Q, {
|
|
3704
3705
|
color: "grey",
|
|
3705
3706
|
size: "small",
|
|
3706
3707
|
start: ""
|
|
@@ -3721,7 +3722,7 @@ var pa = Tt, ka = { class: "text-green" }, ha = { key: 1 }, fa = { class: "d-fle
|
|
|
3721
3722
|
_: 1
|
|
3722
3723
|
})]),
|
|
3723
3724
|
_: 1
|
|
3724
|
-
})) :
|
|
3725
|
+
})) : T("", !0)], 64))]),
|
|
3725
3726
|
_: 1
|
|
3726
3727
|
})]),
|
|
3727
3728
|
_: 1
|
|
@@ -3741,7 +3742,7 @@ var pa = Tt, ka = { class: "text-green" }, ha = { key: 1 }, fa = { class: "d-fle
|
|
|
3741
3742
|
class: "align-center justify-center",
|
|
3742
3743
|
opacity: "0.1"
|
|
3743
3744
|
}, {
|
|
3744
|
-
default: a(() => [e(
|
|
3745
|
+
default: a(() => [e(ne, {
|
|
3745
3746
|
color: "primary",
|
|
3746
3747
|
indeterminate: "",
|
|
3747
3748
|
size: "64"
|
|
@@ -3749,7 +3750,7 @@ var pa = Tt, ka = { class: "text-green" }, ha = { key: 1 }, fa = { class: "d-fle
|
|
|
3749
3750
|
_: 1
|
|
3750
3751
|
})]),
|
|
3751
3752
|
_: 1
|
|
3752
|
-
})) : (c(), w(
|
|
3753
|
+
})) : (c(), w(oe, {
|
|
3753
3754
|
key: 3,
|
|
3754
3755
|
"min-height": "200px"
|
|
3755
3756
|
}, {
|
|
@@ -5139,14 +5140,16 @@ function kt(t) {
|
|
|
5139
5140
|
}
|
|
5140
5141
|
});
|
|
5141
5142
|
}
|
|
5142
|
-
|
|
5143
|
-
|
|
5143
|
+
var La = /* @__PURE__ */ St({ default: () => Ca });
|
|
5144
|
+
typeof kt == "function" && kt(Tt);
|
|
5145
|
+
var Ca = /* @__PURE__ */ mt(Tt, [["__scopeId", "data-v-befb5ad8"]]);
|
|
5144
5146
|
Lt("css/revolugo.bookingpaymentform.bZwObBX3.css");
|
|
5145
5147
|
export {
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5148
|
+
ea as a,
|
|
5149
|
+
oa as i,
|
|
5150
|
+
La as n,
|
|
5151
|
+
sa as r,
|
|
5152
|
+
Ca as t
|
|
5150
5153
|
};
|
|
5151
5154
|
|
|
5152
|
-
//# sourceMappingURL=revolugo.bookingpaymentform.
|
|
5155
|
+
//# sourceMappingURL=revolugo.bookingpaymentform.pDIkYjEJ.min.js.map
|