@revolugo/elements 6.7.2-rc.7 → 6.7.3-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/index.es.min.js +2618 -2553
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo._basefor.CodrYJxd.min.js +15 -0
- package/dist/{revolugo.banktransferdetails.arP5j__o.min.js → revolugo.banktransferdetails.ES8H8TdX.min.js} +24 -23
- package/dist/{revolugo.bdaterangepicker.Ba26rd5I.min.js → revolugo.bdaterangepicker.FofU3mwm.min.js} +121 -6
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.Er0BOzhm.min.js +61 -0
- package/dist/{revolugo.bhoteloffersfilterbar.CwCd9oox.min.js → revolugo.bhoteloffersfilterbar.o301OMGn.min.js} +173 -169
- package/dist/{revolugo.bpricesummaryskeleton.DH-Kuge7.min.js → revolugo.bhotelroomsdetails.V_1vhP4H.min.js} +169 -241
- package/dist/{revolugo.bhotelsearchbar.DaX-iQTB.min.js → revolugo.bhotelsearchbar.B9IrrAQm.min.js} +77 -76
- package/dist/{revolugo.bimagecarousel.CgrOcU1C.min.js → revolugo.bimagecarousel.BbOESSh5.min.js} +36 -36
- package/dist/{revolugo.bookingdetailssidebar.CXHn5MDn.min.js → revolugo.bookingdetailssidebar.DJCyHj6W.min.js} +184 -202
- package/dist/revolugo.bookingdetailssidebar.YExbkGzc.min.js +24 -0
- package/dist/{revolugo.bookingmanager.BIFir20P.min.js → revolugo.bookingmanager.dEjhzT2A.min.js} +51 -48
- package/dist/revolugo.bpricesummaryskeleton.t8bYETzP.min.js +79 -0
- package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.ACZ7Rna9.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CmgO29ZN.min.js} +28 -27
- package/dist/{revolugo.btag.0ugEj-2W.min.js → revolugo.btag.HV2MY7n9.min.js} +70 -69
- package/dist/{revolugo.cancellationpoliciesbadge.BakDGPnx.min.js → revolugo.cancellationpoliciesbadge.BlxYDvQM.min.js} +51 -70
- package/dist/revolugo.cancellationpoliciesbadge.FhiHeLu9.min.js +24 -0
- package/dist/{revolugo.cancellationpolicieslist.C_FFhkUD.min.js → revolugo.cancellationpolicieslist.BMKPdB9z.min.js} +28 -47
- package/dist/revolugo.cancellationpolicieslist.C4GBKaw8.min.js +24 -0
- package/dist/revolugo.case-transformers.Ddd0DZeI.min.js +123 -0
- package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
- package/dist/revolugo.creditcardform.CJnUNQmx.min.js +24 -0
- package/dist/{revolugo.creditcardform.B5bfYD6z.min.js → revolugo.creditcardform.KPRkwSVZ.min.js} +650 -901
- package/dist/revolugo.creditcardpayment.DGWBaIYP.min.js +24 -0
- package/dist/{revolugo.creditcardpayment.DzD24_nR.min.js → revolugo.creditcardpayment.gPcfsEC5.min.js} +138 -154
- package/dist/{revolugo.currencypicker.LtjCHf9r.min.js → revolugo.currencypicker.CEQB4l-T.min.js} +19 -18
- package/dist/revolugo.currencypickerbtn.D3t6zODt.min.js +24 -0
- package/dist/revolugo.currencypickerbtn.drvXcNoD.min.js +163 -0
- package/dist/revolugo.dialog-attach.CEqY6W2u.min.js +28 -0
- package/dist/revolugo.dialog-transition.DjCJstCa.min.js +114 -0
- package/dist/revolugo.fastbookingflow.rfdQQDxx.min.js +34 -0
- package/dist/revolugo.forwardrefs.-bfQnFea.min.js +71 -0
- package/dist/{revolugo.fullbookingflow.CkMmSkIU.min.js → revolugo.fullbookingflow.rmAHR_IC.min.js} +77 -75
- package/dist/{revolugo.hoteldescriptionview.Cp5ZgFcV.min.js → revolugo.hoteldescriptionview.BU8Q37ZC.min.js} +363 -379
- package/dist/revolugo.hoteldescriptionview.Ctcmbxkx.min.js +24 -0
- package/dist/{revolugo.hotelofferitemlayout.Bhhi0sg3.min.js → revolugo.hotelofferitemlayout.yfMiZs8-.min.js} +9 -9
- package/dist/revolugo.hotelofferlist.Dt7FXhVI.min.js +24 -0
- package/dist/{revolugo.hotelofferlist.BTgDe-tp.min.js → revolugo.hotelofferlist.Il2LjMCL.min.js} +1005 -1053
- package/dist/{revolugo.hotelofferrequestcreator.B17qgpU2.min.js → revolugo.hotelofferrequestcreator.BpgknOPE.min.js} +7 -7
- package/dist/revolugo.hoteloffersearchmenu.MzJ49afx.min.js +46 -0
- package/dist/revolugo.hoteloffersmap.BMFBMh12.min.js +24 -0
- package/dist/revolugo.hoteloffersmap.CObm7hoD.min.js +8394 -0
- package/dist/{revolugo.hoteloffersview.D1-F8ONF.min.js → revolugo.hoteloffersview.Bpu61_EH.min.js} +161 -176
- package/dist/revolugo.hoteloffersview.Cn-wbBGn.min.js +19 -0
- package/dist/revolugo.hotelroomofferlist.Cvw5drkG.min.js +24 -0
- package/dist/{revolugo.hotelroomofferlist.BpTAFyMO.min.js → revolugo.hotelroomofferlist.DyMNPEmJ.min.js} +468 -485
- package/dist/revolugo.hotelroomofferrequestcreator.props.UhEzU-Eo.min.js +171 -0
- package/dist/{revolugo.hotelroomoffersbookingflow.BNm52u6c.min.js → revolugo.hotelroomoffersbookingflow.BhZHfo79.min.js} +40 -39
- package/dist/{revolugo.hotelroomoffersearchmenu.Bysb279d.min.js → revolugo.hotelroomoffersearchmenu.BDYUJlri.min.js} +29 -49
- package/dist/revolugo.hotelroomoffersearchmenu.D7QyRteS.min.js +25 -0
- package/dist/revolugo.hotelroomoffersview.BpiOqbeg.min.js +24 -0
- package/dist/{revolugo.hotelroomoffersview.BVbajWFv.min.js → revolugo.hotelroomoffersview.DI54bcEi.min.js} +71 -91
- package/dist/revolugo.index.CHVqFiWo.min.js +1037 -0
- package/dist/{revolugo.index.BX4WZjgg.min.js → revolugo.index.DlCArqY2.min.js} +6 -6
- package/dist/{revolugo.rounded.u4maswiM.min.js → revolugo.index.wc.U-Ds0Ud7.min.js} +7732 -7859
- package/dist/{revolugo.langpicker.BTmjf3Hy.min.js → revolugo.langpicker.Bfd4GXeG.min.js} +15 -15
- package/dist/{revolugo.langpickerbtn.DthGIqyz.min.js → revolugo.langpickerbtn.Bx3onVJO.min.js} +53 -71
- package/dist/revolugo.langpickerbtn.Dj9aqzUa.min.js +24 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/{revolugo.position.CEExVEE8.min.js → revolugo.position.DG21FbXr.min.js} +45 -44
- package/dist/revolugo.prebookform.DZiQ5M3q.min.js +24 -0
- package/dist/{revolugo.prebookform.By-V1bl9.min.js → revolugo.prebookform.hUDmprdU.min.js} +94 -114
- package/dist/revolugo.roominglisteditor.CqHUrQ4g.min.js +24 -0
- package/dist/{revolugo.roominglisteditor.BTk6Ieu-.min.js → revolugo.roominglisteditor.meQaCKaE.min.js} +82 -101
- package/dist/revolugo.rounded.CDKzGlV8.min.js +68 -0
- package/dist/revolugo.ssrboot.me6E0cRY.min.js +18 -0
- package/dist/{revolugo.storybooktoolbar.CFuRMVxX.min.js → revolugo.storybooktoolbar.CmOqTdGz.min.js} +110 -108
- package/dist/revolugo.termsandconditions.CSbVW2DS.min.js +23 -0
- package/dist/{revolugo.termsandconditions.B1itHoql.min.js → revolugo.termsandconditions.CcWZ66ul.min.js} +90 -108
- package/dist/revolugo.use-breakpoint-service.DzP23XZi.min.js +106 -0
- package/dist/{revolugo.vautocomplete.bQzOaYWm.min.js → revolugo.vautocomplete.1eBdqerb.min.js} +133 -132
- package/dist/{revolugo.vbadge.Cm6IZIUx.min.js → revolugo.vbadge.3HWnFhqm.min.js} +33 -32
- package/dist/{revolugo.vbtn.D3Vm2ZlS.min.js → revolugo.vbtn.D5oMY_p5.min.js} +82 -81
- package/dist/{revolugo.vcard.D7M0YovD.min.js → revolugo.vcard.CLsvQwyI.min.js} +50 -49
- package/dist/{revolugo.vcheckboxbtn.DxJuZdU5.min.js → revolugo.vcheckboxbtn.BkLi1Y04.min.js} +72 -71
- package/dist/{revolugo.vdialog.B3aAN6LZ.min.js → revolugo.vdialog.8XLsV5dc.min.js} +26 -25
- package/dist/revolugo.vdivider.jj-AdUyd.min.js +77 -0
- package/dist/{revolugo.vexpansionpanels.Cio1oHcQ.min.js → revolugo.vexpansionpanels.Cc3RP1rh.min.js} +42 -41
- package/dist/{revolugo.vform.1YZ7pPUG.min.js → revolugo.vform.Db-PE5B0.min.js} +15 -15
- package/dist/{revolugo.vinput.8rjbvXX2.min.js → revolugo.vinput.86caOzy1.min.js} +91 -91
- package/dist/{revolugo.vlabel.DYs_A1Ji.min.js → revolugo.vlabel.CVuILaZ8.min.js} +5 -5
- package/dist/{revolugo.vlist.DCvg08Wu.min.js → revolugo.vlist.Dyah7BiI.min.js} +90 -88
- package/dist/revolugo.vmenu.CXAeU_qi.min.js +152 -0
- package/dist/{revolugo.vselect.C8g3avwV.min.js → revolugo.vselect.BsnagCGW.min.js} +133 -132
- package/dist/revolugo.vsheet.BG1meZTM.min.js +72 -0
- package/dist/{revolugo.vskeletonloader.lUzEuSvU.min.js → revolugo.vskeletonloader.BORzy4_m.min.js} +14 -13
- package/dist/{revolugo.vsnackbar.vZBrE3Q7.min.js → revolugo.vsnackbar.CxMxY-0P.min.js} +46 -44
- package/dist/revolugo.vspacer.BiUgatwg.min.js +7 -0
- package/dist/{revolugo.vtextarea.DQrxw1ua.min.js → revolugo.vtextarea.BkNy6mLm.min.js} +48 -39
- package/dist/{revolugo.vtextfield.DPMmhQ6a.min.js → revolugo.vtextfield.DlfEz4JN.min.js} +109 -107
- package/dist/{revolugo.vtoolbar.Bzh8TXIO.min.js → revolugo.vtoolbar.2imDjYnr.min.js} +21 -20
- package/dist/{revolugo.vtooltip.DMjpxOcA.min.js → revolugo.vtooltip.vIYDBJ4s.min.js} +118 -109
- package/dist/{revolugo.vwindowitem.yFpV6WTQ.min.js → revolugo.vwindowitem.CIEwtCBy.min.js} +41 -41
- package/dist/revolugo.watch-list.C39H03pK.min.js +16 -0
- package/dist/{revolugo.webcomponentwrapper.CfhsVy34.min.js → revolugo.webcomponentwrapper.BzrBNp7K.min.js} +484 -541
- package/package.json +5 -5
- package/dist/revolugo.currencypickerbtn.D02DHRmR.min.js +0 -181
- package/dist/revolugo.dialog-transition.DyO6FFbo.min.js +0 -216
- package/dist/revolugo.hoteloffersearchmenu.CQyxBtRu.min.js +0 -46
- package/dist/revolugo.hoteloffersmap.Bp9l3_9T.min.js +0 -8409
- package/dist/revolugo.hotelroomofferrequestcreator.props.Dj5-GfCx.min.js +0 -317
- package/dist/revolugo.index.Ds7GPsGI.min.js +0 -1127
- package/dist/revolugo.ssrboot.DrkbeeFe.min.js +0 -91
- package/dist/revolugo.vsheet.BeVVp2B7.min.js +0 -71
- package/dist/revolugo.vspacer.B9TRu3hb.min.js +0 -14
- /package/dist/css/{revolugo.bpricesummaryskeleton.ZHH0C1yQ.css → revolugo.bhotelroomsdetails.ZHH0C1yQ.css} +0 -0
- /package/dist/css/{revolugo.rounded.XNPQF1ia.css → revolugo.index.XNPQF1ia.css} +0 -0
- /package/dist/css/{revolugo.ssrboot.CTbbZwnv.css → revolugo.vdivider.CTbbZwnv.css} +0 -0
- /package/dist/css/{revolugo.hotelroomofferrequestcreator.DvKwEp1j.css → revolugo.vmenu.DvKwEp1j.css} +0 -0
@@ -1,14 +1,17 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { B as
|
4
|
-
import { C as
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import { V as
|
10
|
-
import { V } from "./revolugo.
|
11
|
-
|
1
|
+
import { aW as $, aX as G, aY as j, aZ as Y, a_ as H, d as Z, u as K, a$ as c, E as B, b0 as M, c as p, i as L, w as o, a, e as l, f as b, t as s, y as J, g as y, r as v, n as W, h as X, x as Q, F as V, aq as x, o as u } from "./revolugo.index.wc.U-Ds0Ud7.min.js";
|
2
|
+
import { _ as ee, f as te } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.Er0BOzhm.min.js";
|
3
|
+
import { B as oe } from "./revolugo.bookingdetailssidebar.DJCyHj6W.min.js";
|
4
|
+
import { C as ae, V as ie } from "./revolugo.creditcardform.KPRkwSVZ.min.js";
|
5
|
+
import { B as ne, _ as re, a as h, V as f, l as se } from "./revolugo.webcomponentwrapper.BzrBNp7K.min.js";
|
6
|
+
import { p as de } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CmgO29ZN.min.js";
|
7
|
+
import { w as le } from "./revolugo.watch-list.C39H03pK.min.js";
|
8
|
+
import { b as ue } from "./revolugo._basefor.CodrYJxd.min.js";
|
9
|
+
import { V as k, f as ce } from "./revolugo.index.CHVqFiWo.min.js";
|
10
|
+
import { a as F, V as C, b as me } from "./revolugo.vcard.CLsvQwyI.min.js";
|
11
|
+
import { a as P, V as pe } from "./revolugo.vbtn.D5oMY_p5.min.js";
|
12
|
+
import { V as be } from "./revolugo.vsnackbar.CxMxY-0P.min.js";
|
13
|
+
import { V as _ } from "./revolugo.vtoolbar.2imDjYnr.min.js";
|
14
|
+
function O(e) {
|
12
15
|
try {
|
13
16
|
if (typeof document < "u") {
|
14
17
|
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
@@ -28,72 +31,72 @@ function W(e) {
|
|
28
31
|
console.error("[revolugo-elements] ", t);
|
29
32
|
}
|
30
33
|
}
|
31
|
-
function
|
32
|
-
for (var r = -1,
|
33
|
-
var
|
34
|
-
t(n,
|
34
|
+
function ge(e, t, i, n) {
|
35
|
+
for (var r = -1, d = e == null ? 0 : e.length; ++r < d; ) {
|
36
|
+
var m = e[r];
|
37
|
+
t(n, m, i(m), e);
|
35
38
|
}
|
36
39
|
return n;
|
37
40
|
}
|
38
|
-
function
|
39
|
-
return e &&
|
41
|
+
function he(e, t) {
|
42
|
+
return e && ue(e, t, $);
|
40
43
|
}
|
41
|
-
function
|
44
|
+
function ye(e, t) {
|
42
45
|
return function(i, n) {
|
43
46
|
if (i == null)
|
44
47
|
return i;
|
45
|
-
if (!
|
48
|
+
if (!G(i))
|
46
49
|
return e(i, n);
|
47
|
-
for (var r = i.length,
|
50
|
+
for (var r = i.length, d = -1, m = Object(i); ++d < r && n(m[d], d, m) !== !1; )
|
48
51
|
;
|
49
52
|
return i;
|
50
53
|
};
|
51
54
|
}
|
52
|
-
var
|
53
|
-
function
|
54
|
-
return
|
55
|
-
t(n, r, i(r),
|
55
|
+
var fe = ye(he);
|
56
|
+
function ke(e, t, i, n) {
|
57
|
+
return fe(e, function(r, d, m) {
|
58
|
+
t(n, r, i(r), m);
|
56
59
|
}), n;
|
57
60
|
}
|
58
|
-
function
|
61
|
+
function ve(e, t) {
|
59
62
|
return function(i, n) {
|
60
|
-
var r =
|
61
|
-
return r(i, e,
|
63
|
+
var r = Y(i) ? ge : ke, d = {};
|
64
|
+
return r(i, e, j(n), d);
|
62
65
|
};
|
63
66
|
}
|
64
|
-
var
|
65
|
-
|
67
|
+
var Ce = ve(function(e, t, i) {
|
68
|
+
H(e, i, t);
|
66
69
|
});
|
67
|
-
const
|
70
|
+
const Pe = {
|
68
71
|
BookingDetails: !0
|
69
|
-
},
|
72
|
+
}, we = {
|
70
73
|
features: {
|
71
|
-
default: () =>
|
74
|
+
default: () => Pe,
|
72
75
|
type: [Object, String]
|
73
76
|
},
|
74
77
|
token: { type: String }
|
75
|
-
},
|
78
|
+
}, U = Z({
|
76
79
|
components: {
|
77
|
-
BErrorOverlay:
|
78
|
-
BFormattedAmount:
|
79
|
-
BookingDetailsSidebar:
|
80
|
-
CreditCardForm:
|
80
|
+
BErrorOverlay: ne,
|
81
|
+
BFormattedAmount: ee,
|
82
|
+
BookingDetailsSidebar: oe,
|
83
|
+
CreditCardForm: ae
|
81
84
|
},
|
82
85
|
computed: {
|
83
86
|
isPayLaterForced() {
|
84
87
|
var e;
|
85
|
-
return ((e = this.booking) == null ? void 0 : e.payLater) ===
|
88
|
+
return ((e = this.booking) == null ? void 0 : e.payLater) === M.Forced;
|
86
89
|
},
|
87
90
|
payLaterAllowed() {
|
88
91
|
var e, t;
|
89
92
|
return ((e = this.booking) == null ? void 0 : e.payLater) && [
|
90
|
-
|
91
|
-
|
93
|
+
M.Enabled,
|
94
|
+
M.Forced
|
92
95
|
].includes((t = this.booking) == null ? void 0 : t.payLater);
|
93
96
|
},
|
94
97
|
paymentMethods() {
|
95
98
|
var e;
|
96
|
-
return
|
99
|
+
return Ce(((e = this.booking) == null ? void 0 : e.paymentMethods) ?? [], "name");
|
97
100
|
},
|
98
101
|
termsAndConditionsUrl() {
|
99
102
|
return this.t("CreditCardPayment.termsURL");
|
@@ -118,7 +121,7 @@ const Be = {
|
|
118
121
|
methods: {
|
119
122
|
onCouponIdCleared() {
|
120
123
|
var e, t;
|
121
|
-
this.couponId = null, (t = (e = this.paymentMethods[
|
124
|
+
this.couponId = null, (t = (e = this.paymentMethods[c.Coupon]) == null ? void 0 : e.payload) != null && t.amount && this.updatePaymentMethods();
|
122
125
|
},
|
123
126
|
onCreditCardFormChange(e) {
|
124
127
|
this.isCreditCardFormCompleted = e, this.error = "";
|
@@ -127,15 +130,15 @@ const Be = {
|
|
127
130
|
this.error = e, this.isPaymentLoading = !1;
|
128
131
|
},
|
129
132
|
onCreditCardFormSuccess() {
|
130
|
-
this.isPaymentLoading = !1, this.isPaymentSuccess = !0, this.$eventBus.$emit(
|
133
|
+
this.isPaymentLoading = !1, this.isPaymentSuccess = !0, this.$eventBus.$emit(B.PaymentSuccess, this.booking);
|
131
134
|
},
|
132
135
|
async pay() {
|
133
136
|
var t, i, n, r;
|
134
|
-
if (((i = (t = this.paymentMethods[
|
137
|
+
if (((i = (t = this.paymentMethods[c.Coupon]) == null ? void 0 : t.payload) == null ? void 0 : i.amount) === ((n = this.booking) == null ? void 0 : n.taxIncludedPrice)) {
|
135
138
|
this.isPaymentLoading = !0, await ((r = this.bookingApiClient) == null ? void 0 : r.bookings.couponCharge({
|
136
|
-
couponId: this.paymentMethods[
|
139
|
+
couponId: this.paymentMethods[c.Coupon].payload.couponId,
|
137
140
|
id: this.booking.id
|
138
|
-
})), this.isPaymentSuccess = !0, this.$eventBus.$emit(
|
141
|
+
})), this.isPaymentSuccess = !0, this.$eventBus.$emit(B.PaymentSuccess, this.booking);
|
139
142
|
return;
|
140
143
|
}
|
141
144
|
if (!this.$refs.payment)
|
@@ -155,7 +158,7 @@ const Be = {
|
|
155
158
|
}
|
156
159
|
await ((t = this.bookingApiClient) == null ? void 0 : t.bookings.paylater({
|
157
160
|
id: this.booking.id
|
158
|
-
})), this.isPaymentSuccess = !0, this.$eventBus.$emit(
|
161
|
+
})), this.isPaymentSuccess = !0, this.$eventBus.$emit(B.PaymentSuccess, this.booking);
|
159
162
|
} catch {
|
160
163
|
this.snackbar = !0;
|
161
164
|
} finally {
|
@@ -175,7 +178,7 @@ const Be = {
|
|
175
178
|
paymentMethodUpdatePayloadApi: {
|
176
179
|
paymentMethods: [
|
177
180
|
{
|
178
|
-
name:
|
181
|
+
name: c.CreditCard
|
179
182
|
}
|
180
183
|
]
|
181
184
|
}
|
@@ -193,33 +196,33 @@ const Be = {
|
|
193
196
|
var e, t, i, n, r;
|
194
197
|
try {
|
195
198
|
this.couponSuccessMessage = "", this.isUpdatingPaymentMethods = !0;
|
196
|
-
const
|
199
|
+
const d = [
|
197
200
|
{
|
198
|
-
name:
|
201
|
+
name: c.CreditCard
|
199
202
|
}
|
200
203
|
];
|
201
|
-
if (this.couponId &&
|
202
|
-
name:
|
204
|
+
if (this.couponId && d.push({
|
205
|
+
name: c.Coupon,
|
203
206
|
payload: {
|
204
207
|
couponId: this.couponId
|
205
208
|
}
|
206
209
|
}), this.toggleCreditCardForm(!1), this.booking = await ((e = this.bookingApiClient) == null ? void 0 : e.bookings.updatePaymentMethods({
|
207
210
|
id: this.booking.id,
|
208
211
|
paymentMethodUpdatePayloadApi: {
|
209
|
-
paymentMethods:
|
212
|
+
paymentMethods: d
|
210
213
|
}
|
211
|
-
})), this.toggleCreditCardForm(!0), !this.paymentMethods[
|
214
|
+
})), this.toggleCreditCardForm(!0), !this.paymentMethods[c.Coupon] || !((t = this.paymentMethods[c.Coupon].payload) != null && t.amount)) {
|
212
215
|
if (!this.couponId)
|
213
216
|
return;
|
214
217
|
this.couponErrorMessage = this.t(
|
215
218
|
"CreditCardPayment.paymentMethods.coupon.error"
|
216
219
|
);
|
217
220
|
} else
|
218
|
-
((i = this.paymentMethods[
|
221
|
+
((i = this.paymentMethods[c.Coupon].payload) == null ? void 0 : i.amount) === ((n = this.booking) == null ? void 0 : n.taxIncludedPrice) && (this.isCreditCardFormCompleted = !0), this.couponErrorMessage = "", this.couponSuccessMessage = this.t(
|
219
222
|
"CreditCardPayment.paymentMethods.coupon.success",
|
220
223
|
{
|
221
|
-
price:
|
222
|
-
amount: this.paymentMethods[
|
224
|
+
price: te({
|
225
|
+
amount: this.paymentMethods[c.Coupon].payload.amount,
|
223
226
|
currency: (r = this.booking) == null ? void 0 : r.currency
|
224
227
|
})
|
225
228
|
}
|
@@ -232,18 +235,18 @@ const Be = {
|
|
232
235
|
}
|
233
236
|
},
|
234
237
|
mixins: [
|
235
|
-
|
238
|
+
de({
|
236
239
|
fallbackValue: {},
|
237
240
|
propsName: "features"
|
238
241
|
}),
|
239
|
-
|
242
|
+
le(["$i18n.locale", "bookingApiClient"], "retrieveBooking", {
|
240
243
|
immediate: !0
|
241
244
|
})
|
242
245
|
],
|
243
246
|
name: "CreditCardPayment",
|
244
|
-
props:
|
247
|
+
props: we,
|
245
248
|
setup() {
|
246
|
-
const { t: e } =
|
249
|
+
const { t: e } = K();
|
247
250
|
return {
|
248
251
|
t: e
|
249
252
|
};
|
@@ -520,17 +523,17 @@ function T(e) {
|
|
520
523
|
}
|
521
524
|
});
|
522
525
|
}
|
523
|
-
const
|
524
|
-
function Re(e, t, i, n, r,
|
525
|
-
const
|
526
|
-
return e.isPaymentSuccess ? (
|
526
|
+
const Be = { class: "text-green" }, Me = { key: 1 }, Le = { class: "w-100 d-flex justify-space-between items-center" }, Fe = ["innerHTML"], Ae = { class: "ml-1 text-caption" }, Ee = { class: "mr-1" }, Se = { class: "mr-1" }, ze = { class: "mx-2" }, Ie = { class: "mr-1" };
|
527
|
+
function Re(e, t, i, n, r, d) {
|
528
|
+
const m = v("BookingDetailsSidebar"), A = v("BFormattedAmount"), N = v("CreditCardForm"), q = v("BErrorOverlay");
|
529
|
+
return e.isPaymentSuccess ? (u(), p(C, {
|
527
530
|
key: 0,
|
528
531
|
elevation: "0"
|
529
532
|
}, {
|
530
533
|
default: o(() => [
|
531
|
-
a(
|
534
|
+
a(F, { class: "py-6 d-flex flex-column justify-center align-center" }, {
|
532
535
|
default: o(() => [
|
533
|
-
a(
|
536
|
+
a(k, {
|
534
537
|
class: "mb-4",
|
535
538
|
color: "green",
|
536
539
|
size: "x-large"
|
@@ -541,14 +544,14 @@ function Re(e, t, i, n, r, s) {
|
|
541
544
|
_: 1,
|
542
545
|
__: [4]
|
543
546
|
}),
|
544
|
-
|
547
|
+
l("h3", Be, s(e.t("CreditCardPayment.paymentSuccess.subtitle")), 1)
|
545
548
|
]),
|
546
549
|
_: 1
|
547
550
|
})
|
548
551
|
]),
|
549
552
|
_: 1
|
550
|
-
})) : e.booking && e.booking.id ? (
|
551
|
-
a(
|
553
|
+
})) : e.booking && e.booking.id ? (u(), L("div", Me, [
|
554
|
+
a(be, {
|
552
555
|
modelValue: e.snackbar,
|
553
556
|
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.snackbar = g),
|
554
557
|
color: "error",
|
@@ -556,14 +559,14 @@ function Re(e, t, i, n, r, s) {
|
|
556
559
|
location: "top"
|
557
560
|
}, {
|
558
561
|
action: o(({ attrs: g }) => [
|
559
|
-
a(
|
562
|
+
a(P, J({
|
560
563
|
color: "pink",
|
561
564
|
variant: "text"
|
562
565
|
}, g, {
|
563
|
-
onClick: t[0] || (t[0] = (
|
566
|
+
onClick: t[0] || (t[0] = (w) => e.snackbar = !1)
|
564
567
|
}), {
|
565
568
|
default: o(() => [
|
566
|
-
a(
|
569
|
+
a(k, null, {
|
567
570
|
default: o(() => t[5] || (t[5] = [
|
568
571
|
b(" fas fa-times ")
|
569
572
|
])),
|
@@ -575,13 +578,13 @@ function Re(e, t, i, n, r, s) {
|
|
575
578
|
}, 1040)
|
576
579
|
]),
|
577
580
|
default: o(() => [
|
578
|
-
b(
|
581
|
+
b(s(e.t("CreditCardPayment.error")) + " ", 1)
|
579
582
|
]),
|
580
583
|
_: 1
|
581
584
|
}, 8, ["modelValue"]),
|
582
|
-
a(
|
585
|
+
a(f, { dense: "" }, {
|
583
586
|
default: o(() => [
|
584
|
-
e.parsedFeatures.BookingDetails ? (
|
587
|
+
e.parsedFeatures.BookingDetails ? (u(), p(h, {
|
585
588
|
key: 0,
|
586
589
|
cols: "12",
|
587
590
|
lg: "4",
|
@@ -589,20 +592,20 @@ function Re(e, t, i, n, r, s) {
|
|
589
592
|
xl: "4"
|
590
593
|
}, {
|
591
594
|
default: o(() => [
|
592
|
-
a(
|
595
|
+
a(m, W(X(e.booking)), null, 16)
|
593
596
|
]),
|
594
597
|
_: 1
|
595
|
-
})) :
|
598
|
+
})) : y("", !0),
|
596
599
|
a(h, {
|
597
|
-
class:
|
600
|
+
class: Q(e.parsedFeatures.BookingDetails ? "col-sm-8 col-12" : "w-100")
|
598
601
|
}, {
|
599
602
|
default: o(() => [
|
600
|
-
a(
|
603
|
+
a(C, {
|
601
604
|
elevation: "0",
|
602
605
|
border: ""
|
603
606
|
}, {
|
604
607
|
default: o(() => [
|
605
|
-
e.parsedFeatures.BookingDetails ?
|
608
|
+
e.parsedFeatures.BookingDetails ? y("", !0) : (u(), p(_, {
|
606
609
|
key: 0,
|
607
610
|
color: "primary",
|
608
611
|
dark: "",
|
@@ -610,9 +613,9 @@ function Re(e, t, i, n, r, s) {
|
|
610
613
|
elevation: "0"
|
611
614
|
}, {
|
612
615
|
default: o(() => [
|
613
|
-
|
614
|
-
b(
|
615
|
-
a(
|
616
|
+
l("h4", null, [
|
617
|
+
b(s(e.t("CreditCardPayment.pay")) + ": ", 1),
|
618
|
+
a(A, {
|
616
619
|
amount: e.booking.taxIncludedPrice,
|
617
620
|
class: "font-weight-bold",
|
618
621
|
currency: e.booking.currency
|
@@ -621,9 +624,9 @@ function Re(e, t, i, n, r, s) {
|
|
621
624
|
]),
|
622
625
|
_: 1
|
623
626
|
})),
|
624
|
-
a(
|
627
|
+
a(F, null, {
|
625
628
|
default: o(() => [
|
626
|
-
e.isPayLaterForced ? (
|
629
|
+
e.isPayLaterForced ? (u(), p(C, {
|
627
630
|
key: 0,
|
628
631
|
elevation: "0",
|
629
632
|
border: "",
|
@@ -632,41 +635,41 @@ function Re(e, t, i, n, r, s) {
|
|
632
635
|
}
|
633
636
|
}, {
|
634
637
|
default: o(() => [
|
635
|
-
a(
|
638
|
+
a(_, {
|
636
639
|
class: "text-white",
|
637
640
|
color: "primary",
|
638
641
|
dense: "",
|
639
642
|
elevation: "0"
|
640
643
|
}, {
|
641
644
|
default: o(() => [
|
642
|
-
|
643
|
-
|
645
|
+
l("div", Le, [
|
646
|
+
l("h4", null, s(e.t("CreditCardPayment.payLaterForced.title")), 1)
|
644
647
|
])
|
645
648
|
]),
|
646
649
|
_: 1
|
647
650
|
}),
|
648
|
-
a(
|
651
|
+
a(F, null, {
|
649
652
|
default: o(() => [
|
650
|
-
|
653
|
+
l("h4", null, s(e.t("CreditCardPayment.payLaterForced.subtitle")), 1)
|
651
654
|
]),
|
652
655
|
_: 1
|
653
656
|
})
|
654
657
|
]),
|
655
658
|
_: 1
|
656
|
-
})) : (
|
657
|
-
a(
|
659
|
+
})) : (u(), L(V, { key: 1 }, [
|
660
|
+
a(f, null, {
|
658
661
|
default: o(() => [
|
659
662
|
a(h, null, {
|
660
663
|
default: o(() => {
|
661
|
-
var g,
|
664
|
+
var g, w, E, S, z, I, R, D;
|
662
665
|
return [
|
663
|
-
a(
|
666
|
+
a(N, {
|
664
667
|
ref: "payment",
|
665
|
-
amount: ((
|
668
|
+
amount: ((w = (g = e.paymentMethods.CREDIT_CARD) == null ? void 0 : g.payload) == null ? void 0 : w.amount) || 0,
|
666
669
|
currency: e.booking.currency,
|
667
|
-
disabled: !((
|
670
|
+
disabled: !((S = (E = e.paymentMethods.CREDIT_CARD) == null ? void 0 : E.payload) != null && S.amount) || !((I = (z = e.paymentMethods.CREDIT_CARD) == null ? void 0 : z.payload) != null && I.token),
|
668
671
|
loading: !e.isCreditCardFormMounted,
|
669
|
-
token: (
|
672
|
+
token: (D = (R = e.paymentMethods.CREDIT_CARD) == null ? void 0 : R.payload) == null ? void 0 : D.token,
|
670
673
|
onChange: e.onCreditCardFormChange,
|
671
674
|
onError: e.onCreditCardFormError,
|
672
675
|
onSuccess: e.onCreditCardFormSuccess
|
@@ -678,11 +681,11 @@ function Re(e, t, i, n, r, s) {
|
|
678
681
|
]),
|
679
682
|
_: 1
|
680
683
|
}),
|
681
|
-
a(
|
684
|
+
a(f, null, {
|
682
685
|
default: o(() => [
|
683
686
|
a(h, { class: "d-flex align-center" }, {
|
684
687
|
default: o(() => [
|
685
|
-
a(
|
688
|
+
a(k, {
|
686
689
|
start: "",
|
687
690
|
color: "grey",
|
688
691
|
size: "small"
|
@@ -693,7 +696,7 @@ function Re(e, t, i, n, r, s) {
|
|
693
696
|
_: 1,
|
694
697
|
__: [6]
|
695
698
|
}),
|
696
|
-
|
699
|
+
l("small", null, s(e.t("CreditCardPayment.subtitle")), 1)
|
697
700
|
]),
|
698
701
|
_: 1
|
699
702
|
})
|
@@ -701,11 +704,11 @@ function Re(e, t, i, n, r, s) {
|
|
701
704
|
_: 1
|
702
705
|
})
|
703
706
|
], 64)),
|
704
|
-
a(
|
707
|
+
a(f, { class: "mt-2" }, {
|
705
708
|
default: o(() => [
|
706
709
|
a(h, null, {
|
707
710
|
default: o(() => [
|
708
|
-
a(
|
711
|
+
a(ie, {
|
709
712
|
ref: "testing",
|
710
713
|
modelValue: e.isTermsAccepted,
|
711
714
|
"onUpdate:modelValue": t[3] || (t[3] = (g) => e.isTermsAccepted = g),
|
@@ -714,13 +717,13 @@ function Re(e, t, i, n, r, s) {
|
|
714
717
|
color: "primary"
|
715
718
|
}, {
|
716
719
|
label: o(() => [
|
717
|
-
|
718
|
-
onClick: t[2] || (t[2] =
|
720
|
+
l("span", {
|
721
|
+
onClick: t[2] || (t[2] = x(() => {
|
719
722
|
}, ["stop"])),
|
720
723
|
innerHTML: e.t("CreditCardPayment.termsAndConditions", {
|
721
724
|
url: e.termsAndConditionsUrl
|
722
725
|
})
|
723
|
-
}, null, 8,
|
726
|
+
}, null, 8, Fe)
|
724
727
|
]),
|
725
728
|
_: 1
|
726
729
|
}, 8, ["modelValue", "error"])
|
@@ -733,9 +736,9 @@ function Re(e, t, i, n, r, s) {
|
|
733
736
|
]),
|
734
737
|
_: 1
|
735
738
|
}),
|
736
|
-
a(
|
739
|
+
a(me, { class: "mt-n6" }, {
|
737
740
|
default: o(() => [
|
738
|
-
a(
|
741
|
+
a(f, {
|
739
742
|
align: "end",
|
740
743
|
class: "flex-column flex-sm-row",
|
741
744
|
"no-gutters": ""
|
@@ -743,8 +746,8 @@ function Re(e, t, i, n, r, s) {
|
|
743
746
|
default: o(() => [
|
744
747
|
a(h, null, {
|
745
748
|
default: o(() => [
|
746
|
-
|
747
|
-
a(
|
749
|
+
l("small", Ae, s(e.t("CreditCardPayment.acceptedPaymentMethods")), 1),
|
750
|
+
a(ce, {
|
748
751
|
class: "mt-n1",
|
749
752
|
height: "45",
|
750
753
|
src: "https://revolugo.s3.eu-west-3.amazonaws.com/payment-methods.png",
|
@@ -755,7 +758,7 @@ function Re(e, t, i, n, r, s) {
|
|
755
758
|
}),
|
756
759
|
a(h, { class: "d-flex justify-end flex-column flex-sm-row mb-1 align-center mt-4 mt-sm-0" }, {
|
757
760
|
default: o(() => [
|
758
|
-
e.isPayLaterForced ? (
|
761
|
+
e.isPayLaterForced ? (u(), p(P, {
|
759
762
|
key: 0,
|
760
763
|
class: "w-100 w-sm-auto",
|
761
764
|
color: "primary",
|
@@ -765,11 +768,11 @@ function Re(e, t, i, n, r, s) {
|
|
765
768
|
onClick: e.payLater
|
766
769
|
}, {
|
767
770
|
default: o(() => [
|
768
|
-
|
771
|
+
l("span", Ee, s(e.t("CreditCardPayment.completeBookingNow")), 1)
|
769
772
|
]),
|
770
773
|
_: 1
|
771
|
-
}, 8, ["disabled", "loading", "onClick"])) : e.payLaterAllowed ? (
|
772
|
-
a(
|
774
|
+
}, 8, ["disabled", "loading", "onClick"])) : e.payLaterAllowed ? (u(), L(V, { key: 1 }, [
|
775
|
+
a(P, {
|
773
776
|
class: "w-100 w-sm-auto",
|
774
777
|
color: "primary",
|
775
778
|
disabled: e.isPaymentLoading || !e.isTermsAccepted,
|
@@ -778,7 +781,7 @@ function Re(e, t, i, n, r, s) {
|
|
778
781
|
onClick: e.payLater
|
779
782
|
}, {
|
780
783
|
default: o(() => [
|
781
|
-
a(
|
784
|
+
a(k, {
|
782
785
|
start: "",
|
783
786
|
class: "ml-1"
|
784
787
|
}, {
|
@@ -788,8 +791,8 @@ function Re(e, t, i, n, r, s) {
|
|
788
791
|
_: 1,
|
789
792
|
__: [7]
|
790
793
|
}),
|
791
|
-
|
792
|
-
e.isPayLaterForced ?
|
794
|
+
l("span", Se, s(e.t("CreditCardPayment.completeBookingLater")), 1),
|
795
|
+
e.isPayLaterForced ? y("", !0) : (u(), p(A, {
|
793
796
|
key: 0,
|
794
797
|
amount: e.booking.taxIncludedPrice,
|
795
798
|
class: "font-weight-bold",
|
@@ -798,9 +801,9 @@ function Re(e, t, i, n, r, s) {
|
|
798
801
|
]),
|
799
802
|
_: 1
|
800
803
|
}, 8, ["disabled", "loading", "onClick"]),
|
801
|
-
|
802
|
-
], 64)) :
|
803
|
-
e.isPayLaterForced ?
|
804
|
+
l("span", ze, s(e.t("CreditCardPayment.or")), 1)
|
805
|
+
], 64)) : y("", !0),
|
806
|
+
e.isPayLaterForced ? y("", !0) : (u(), p(P, {
|
804
807
|
key: 2,
|
805
808
|
class: "w-100 w-sm-auto",
|
806
809
|
color: "primary",
|
@@ -810,7 +813,7 @@ function Re(e, t, i, n, r, s) {
|
|
810
813
|
onClick: e.pay
|
811
814
|
}, {
|
812
815
|
default: o(() => [
|
813
|
-
a(
|
816
|
+
a(k, {
|
814
817
|
start: "",
|
815
818
|
class: "ml-1"
|
816
819
|
}, {
|
@@ -820,7 +823,7 @@ function Re(e, t, i, n, r, s) {
|
|
820
823
|
_: 1,
|
821
824
|
__: [8]
|
822
825
|
}),
|
823
|
-
|
826
|
+
l("span", Ie, s(e.t("CreditCardPayment.completeBookingNow")), 1)
|
824
827
|
]),
|
825
828
|
_: 1
|
826
829
|
}, 8, ["disabled", "loading", "onClick"]))
|
@@ -842,7 +845,7 @@ function Re(e, t, i, n, r, s) {
|
|
842
845
|
]),
|
843
846
|
_: 1
|
844
847
|
})
|
845
|
-
])) : e.isFetchingBooking ? (
|
848
|
+
])) : e.isFetchingBooking ? (u(), p(C, {
|
846
849
|
key: 2,
|
847
850
|
class: "mx-auto",
|
848
851
|
elevation: "0",
|
@@ -850,13 +853,13 @@ function Re(e, t, i, n, r, s) {
|
|
850
853
|
width: "100%"
|
851
854
|
}, {
|
852
855
|
default: o(() => [
|
853
|
-
a(
|
856
|
+
a(se, {
|
854
857
|
absolute: "",
|
855
858
|
class: "align-center justify-center",
|
856
859
|
opacity: "0.1"
|
857
860
|
}, {
|
858
861
|
default: o(() => [
|
859
|
-
a(
|
862
|
+
a(pe, {
|
860
863
|
color: "primary",
|
861
864
|
indeterminate: "",
|
862
865
|
size: "64"
|
@@ -866,44 +869,25 @@ function Re(e, t, i, n, r, s) {
|
|
866
869
|
})
|
867
870
|
]),
|
868
871
|
_: 1
|
869
|
-
})) : (
|
872
|
+
})) : (u(), p(q, {
|
870
873
|
key: 3,
|
871
874
|
"min-height": "200px"
|
872
875
|
}, {
|
873
876
|
title: o(() => [
|
874
|
-
b(
|
877
|
+
b(s(e.t("CreditCardPayment.bookingNotFound.title")), 1)
|
875
878
|
]),
|
876
879
|
description: o(() => [
|
877
|
-
b(
|
880
|
+
b(s(e.t("CreditCardPayment.bookingNotFound.description")), 1)
|
878
881
|
]),
|
879
882
|
_: 1
|
880
883
|
}));
|
881
884
|
}
|
882
|
-
typeof T == "function" && T(
|
883
|
-
const
|
884
|
-
|
885
|
-
CreditCardPayment: De,
|
886
|
-
WebComponentWrapper: re
|
887
|
-
},
|
888
|
-
props: $
|
889
|
-
});
|
890
|
-
function Te(e, t, i, n, r, s) {
|
891
|
-
const c = y("CreditCardPayment", !0), C = y("WebComponentWrapper");
|
892
|
-
return l(), p(C, null, {
|
893
|
-
default: o(() => [
|
894
|
-
a(c, N(q(e.$props)), null, 16)
|
895
|
-
]),
|
896
|
-
_: 1
|
897
|
-
});
|
898
|
-
}
|
899
|
-
const Ue = /* @__PURE__ */ O(Ve, [["render", Te]]), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
900
|
-
__proto__: null,
|
901
|
-
default: Ue
|
902
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
903
|
-
W("css/revolugo.creditcardpayment.D2PE5FCt.css");
|
885
|
+
typeof T == "function" && T(U);
|
886
|
+
const Ze = /* @__PURE__ */ re(U, [["render", Re], ["__scopeId", "data-v-fa4fcd2f"]]);
|
887
|
+
O("css/revolugo.creditcardpayment.D2PE5FCt.css");
|
904
888
|
export {
|
905
|
-
|
906
|
-
|
907
|
-
|
889
|
+
Ze as C,
|
890
|
+
Pe as a,
|
891
|
+
we as c
|
908
892
|
};
|
909
|
-
//# sourceMappingURL=revolugo.creditcardpayment.
|
893
|
+
//# sourceMappingURL=revolugo.creditcardpayment.gPcfsEC5.min.js.map
|