@revolugo/elements 7.10.0 → 7.11.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/css/{revolugo.bookingpaymentform.bZwObBX3.css → revolugo.bookingpaymentform.CekI3oIR.css} +1 -1
- package/dist/css/{revolugo.revolugoelements.Y9cCezcf.css → revolugo.revolugoelements.D3jgSljg.css} +1 -1
- package/dist/css/{revolugo.ui.DcVVhCqH.css → revolugo.ui.sAxjrsi6.css} +1 -1
- 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.BfRU3j9S.min.js → revolugo.banktransferdetails.ql5QYmUR.min.js} +6 -6
- package/dist/{revolugo.bookingdetailssidebar.Dkv3aMNJ.min.js → revolugo.bookingdetailssidebar.CVi0BqUW.min.js} +7 -7
- package/dist/{revolugo.bookingmanager.CwA4W9UT.min.js → revolugo.bookingmanager.DP-s7JZu.min.js} +6 -6
- package/dist/{revolugo.bookingpaymentform.pDIkYjEJ.min.js → revolugo.bookingpaymentform.BJCfZ_Kk.min.js} +294 -291
- package/dist/{revolugo.cancellationpoliciesbadge.Cy2BGOv2.min.js → revolugo.cancellationpoliciesbadge.LvXxw6Uw.min.js} +5 -5
- package/dist/{revolugo.cancellationpolicieslist.pkIXEQlG.min.js → revolugo.cancellationpolicieslist.Dac8qxMA.min.js} +5 -5
- package/dist/{revolugo.creditcardstripeform.CQ2tTfRF.min.js → revolugo.creditcardstripeform.Ba6BWtYz.min.js} +54 -54
- package/dist/{revolugo.creditcardstripeform.DP2FmyLx.min.js → revolugo.creditcardstripeform.DCLuK09J.min.js} +6 -6
- package/dist/{revolugo.currencypickerbtn.DwYjNIVB.min.js → revolugo.currencypickerbtn.D5at0qzh.min.js} +7 -7
- package/dist/{revolugo.dist.Dvmu0CnY.min.js → revolugo.dist.CLV0MHMA.min.js} +2 -2
- package/dist/{revolugo.fastbookingflow.BReT8KfX.min.js → revolugo.fastbookingflow.BBcEUXA0.min.js} +6 -6
- package/dist/{revolugo.framework.Fsv8w1Xe.min.js → revolugo.framework.k0uaz58D.min.js} +2 -2
- package/dist/{revolugo.fullbookingflow.ChDvb7CW.min.js → revolugo.fullbookingflow.CbcxEJ_p.min.js} +6 -6
- package/dist/revolugo.hoteldescriptionview.BhOkhZrl.min.js +24 -0
- package/dist/{revolugo.hotelofferlist.lFsv8SvS.min.js → revolugo.hotelofferlist.DwP_q7sh.min.js} +5 -5
- package/dist/{revolugo.hoteloffersearchmenu.DtSIhXv3.min.js → revolugo.hoteloffersearchmenu.D2nQIXps.min.js} +6 -6
- package/dist/revolugo.hoteloffersmap.BzJXBIZu.min.js +24 -0
- package/dist/{revolugo.hoteloffersview.BImWajjk.min.js → revolugo.hoteloffersview.DbkrpmcL.min.js} +4 -4
- package/dist/revolugo.hotelroomofferlist.BDmMQUXg.min.js +24 -0
- package/dist/{revolugo.hotelroomoffersbookingflow.BLRTInnP.min.js → revolugo.hotelroomoffersbookingflow.BTX5vw3U.min.js} +6 -6
- package/dist/{revolugo.hotelroomoffersearchmenu.B5vlTMD6.min.js → revolugo.hotelroomoffersearchmenu.Byc3rzga.min.js} +6 -6
- package/dist/revolugo.hotelroomoffersview.DpCNFUpm.min.js +24 -0
- package/dist/{revolugo.langpickerbtn.ClQ8b-zq.min.js → revolugo.langpickerbtn.BYYCD3xg.min.js} +6 -6
- package/dist/revolugo.min.js +51 -51
- package/dist/{revolugo.prebookform.DwR_NG88.min.js → revolugo.prebookform.Buadq4bi.min.js} +5 -5
- package/dist/{revolugo.preferencesmenu.BMpQHT6I.min.js → revolugo.preferencesmenu.HRS1NoUW.min.js} +34 -34
- package/dist/{revolugo.revolugo-config.dB8Oiw_f.min.js → revolugo.revolugo-config.BhnbJkHY.min.js} +1849 -1779
- package/dist/{revolugo.revolugoelements.Mt1pO5B-.min.js → revolugo.revolugoelements.DqTSs2x-.min.js} +1151 -1148
- package/dist/{revolugo.roominglisteditor.BRLV6iVP.min.js → revolugo.roominglisteditor.C7NMBMQu.min.js} +5 -5
- package/dist/{revolugo.storybooktoolbar.C1IlJmT4.min.js → revolugo.storybooktoolbar.DuOgD1zs.min.js} +39 -39
- package/dist/{revolugo.termsandconditions.D2qmmY2e.min.js → revolugo.termsandconditions.Dhn9Gh19.min.js} +5 -5
- package/dist/{revolugo.theme.CbBeIYt7.min.js → revolugo.theme.CWCtKizJ.min.js} +5778 -5683
- package/dist/{revolugo.ui.2nawKtPk.min.js → revolugo.ui.CwfYE_fW.min.js} +2392 -2400
- package/dist/{revolugo.vtoolbar.BP2Ws09g.min.js → revolugo.vtoolbar.CrASDlFx.min.js} +19 -19
- package/dist/{revolugo.webcomponentwrapper.BRidxM-R.min.js → revolugo.webcomponentwrapper.DYBPZW1v.min.js} +10 -10
- package/dist/{revolugo2.preferencesmenu.CaHxOACP.min.js → revolugo2.preferencesmenu.B_DB1N90.min.js} +5 -5
- package/package.json +6 -6
- package/dist/revolugo.hoteldescriptionview._0NBgAXg.min.js +0 -24
- package/dist/revolugo.hoteloffersmap.D7w6UpJZ.min.js +0 -24
- package/dist/revolugo.hotelroomofferlist.DduNvigy.min.js +0 -24
- package/dist/revolugo.hotelroomoffersview.Bjz4gxwF.min.js +0 -24
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as St } from "./revolugo.rolldown-runtime.C2H8viMH.min.js";
|
|
2
|
-
import { $
|
|
3
|
-
import { $ as Y,
|
|
4
|
-
import { n as xt, t as
|
|
5
|
-
import { t as
|
|
2
|
+
import { $r as It, An as Rt, Br as vt, C as Ft, Cn as j, Ct as Dt, Dr as X, Kr as k, M as At, Mn as ot, Nr as at, On as ft, Ot as zt, Pi as st, Pr as Ot, Qn as P, Si as yt, Sr as S, T as Ut, Ti as Et, Tr as e, Ur as c, br as y, fi as h, i as Ht, jr as Vt, jt as Nt, kr as Mt, kt as $t, li as qt, mr as W, ni as jt, pi as ct, pn as K, pr as Ct, qr as Gt, r as Kt, ri as a, sn as Yt, ti as dt, tr as rt, vi as r, vr as I, wi as u, wr as E, xi as Zt, xr as B, yr as s, yt as Jt, zn as Qt } from "./revolugo.theme.CWCtKizJ.min.js";
|
|
3
|
+
import { $ as Y, Dt as Wt, Gt as mt, Ht as Z, It as Xt, Jt as te, K as ee, Kt as ae, Lt as oe, Ot as ie, Q as g, Rt as J, Ut as ne, Wt as gt, X as se, Y as re, Z as le, at as lt, ct as ue, en as H, et as M, ft as ce, gt as de, ht as me, it as ut, kt as ve, lt as ge, nt as be, on as pe, ot as ke, pn as he, pt as fe, q as Q, rt as O, st as ye, tn as R, tt as Ce, un as xe, ut as Pe, zt as Be } from "./revolugo.ui.CwfYE_fW.min.js";
|
|
4
|
+
import { n as xt, t as we } from "./revolugo.creditcardstripeform.Ba6BWtYz.min.js";
|
|
5
|
+
import { t as Pt } from "./revolugo.vtoolbar.CrASDlFx.min.js";
|
|
6
6
|
function Lt(t) {
|
|
7
7
|
try {
|
|
8
8
|
if (typeof document < "u") {
|
|
@@ -23,15 +23,15 @@ function Lt(t) {
|
|
|
23
23
|
console.error("[revolugo-elements] ", l);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
function
|
|
26
|
+
var Te = {}, _e = { class: "d-flex justify-space-between" }, Le = { class: "text-right" };
|
|
27
|
+
function Se(t, l) {
|
|
28
28
|
return c(), S("div", null, [
|
|
29
|
-
e(
|
|
29
|
+
e(M, {
|
|
30
30
|
class: "mb-1",
|
|
31
31
|
elevation: "0",
|
|
32
32
|
variant: "outlined"
|
|
33
33
|
}, {
|
|
34
|
-
default: a(() => [e(
|
|
34
|
+
default: a(() => [e(O, { class: "pb-5" }, {
|
|
35
35
|
default: a(() => [k(t.$slots, "hotel", {}, () => [
|
|
36
36
|
e(g, {
|
|
37
37
|
class: "my-2",
|
|
@@ -56,13 +56,13 @@ function Le(t, l) {
|
|
|
56
56
|
})]),
|
|
57
57
|
_: 3
|
|
58
58
|
}),
|
|
59
|
-
e(
|
|
59
|
+
e(M, {
|
|
60
60
|
class: "mb-1",
|
|
61
61
|
elevation: "0",
|
|
62
62
|
variant: "outlined"
|
|
63
63
|
}, {
|
|
64
64
|
default: a(() => [
|
|
65
|
-
e(
|
|
65
|
+
e(ut, { class: "pb-2" }, {
|
|
66
66
|
default: a(() => [k(t.$slots, "booking-heading", {}, () => [e(g, {
|
|
67
67
|
height: "20",
|
|
68
68
|
tile: "",
|
|
@@ -72,9 +72,9 @@ function Le(t, l) {
|
|
|
72
72
|
_: 3
|
|
73
73
|
}),
|
|
74
74
|
e(Y),
|
|
75
|
-
e(
|
|
76
|
-
default: a(() => [e(
|
|
77
|
-
default: a(() => [e(
|
|
75
|
+
e(O, { class: "pb-2" }, {
|
|
76
|
+
default: a(() => [e(H, { class: "ma-0 w-100" }, {
|
|
77
|
+
default: a(() => [e(R, { class: "py-0 pl-0" }, {
|
|
78
78
|
default: a(() => [k(t.$slots, "check-in-title", {}, () => [e(g, {
|
|
79
79
|
class: "my-1",
|
|
80
80
|
height: "20px",
|
|
@@ -83,7 +83,7 @@ function Le(t, l) {
|
|
|
83
83
|
width: "100%"
|
|
84
84
|
})])]),
|
|
85
85
|
_: 3
|
|
86
|
-
}), e(
|
|
86
|
+
}), e(R, { class: "ml-1 py-0" }, {
|
|
87
87
|
default: a(() => [k(t.$slots, "check-out-title", {}, () => [e(g, {
|
|
88
88
|
class: "my-1",
|
|
89
89
|
height: "20px",
|
|
@@ -94,9 +94,9 @@ function Le(t, l) {
|
|
|
94
94
|
_: 3
|
|
95
95
|
})]),
|
|
96
96
|
_: 3
|
|
97
|
-
}), e(
|
|
97
|
+
}), e(H, { class: "ma-0 w-100" }, {
|
|
98
98
|
default: a(() => [
|
|
99
|
-
e(
|
|
99
|
+
e(R, { class: "pa-0" }, {
|
|
100
100
|
default: a(() => [k(t.$slots, "check-in-date", {}, () => [e(g, {
|
|
101
101
|
class: "my-1",
|
|
102
102
|
height: "20px",
|
|
@@ -116,7 +116,7 @@ function Le(t, l) {
|
|
|
116
116
|
class: "mx-2",
|
|
117
117
|
vertical: ""
|
|
118
118
|
}),
|
|
119
|
-
e(
|
|
119
|
+
e(R, { class: "pa-0" }, {
|
|
120
120
|
default: a(() => [k(t.$slots, "check-out-date", {}, () => [e(g, {
|
|
121
121
|
class: "my-1",
|
|
122
122
|
height: "20px",
|
|
@@ -137,7 +137,7 @@ function Le(t, l) {
|
|
|
137
137
|
})]),
|
|
138
138
|
_: 3
|
|
139
139
|
}),
|
|
140
|
-
e(
|
|
140
|
+
e(O, { class: "pb-0" }, {
|
|
141
141
|
default: a(() => [k(t.$slots, "length-of-stay-title", {}, () => [e(g, {
|
|
142
142
|
class: "my-1",
|
|
143
143
|
height: "20px",
|
|
@@ -147,7 +147,7 @@ function Le(t, l) {
|
|
|
147
147
|
})])]),
|
|
148
148
|
_: 3
|
|
149
149
|
}),
|
|
150
|
-
e(
|
|
150
|
+
e(O, { class: "pt-0 pb-2" }, {
|
|
151
151
|
default: a(() => [k(t.$slots, "length-of-stay-count", {}, () => [e(g, {
|
|
152
152
|
class: "my-1",
|
|
153
153
|
height: "20px",
|
|
@@ -158,7 +158,7 @@ function Le(t, l) {
|
|
|
158
158
|
_: 3
|
|
159
159
|
}),
|
|
160
160
|
e(Y, { class: "mx-4" }),
|
|
161
|
-
e(
|
|
161
|
+
e(lt, { class: "pb-2" }, {
|
|
162
162
|
default: a(() => [k(t.$slots, "room-selected-heading", {}, () => [e(g, {
|
|
163
163
|
class: "my-1",
|
|
164
164
|
height: "20px",
|
|
@@ -168,7 +168,7 @@ function Le(t, l) {
|
|
|
168
168
|
})])]),
|
|
169
169
|
_: 3
|
|
170
170
|
}),
|
|
171
|
-
e(
|
|
171
|
+
e(O, { class: "pb-7" }, {
|
|
172
172
|
default: a(() => [k(t.$slots, "room-selected-list", {}, () => [e(g, {
|
|
173
173
|
class: "my-1",
|
|
174
174
|
height: "20px",
|
|
@@ -187,13 +187,13 @@ function Le(t, l) {
|
|
|
187
187
|
]),
|
|
188
188
|
_: 3
|
|
189
189
|
}),
|
|
190
|
-
e(
|
|
190
|
+
e(M, {
|
|
191
191
|
class: "mb-1",
|
|
192
192
|
elevation: "0",
|
|
193
193
|
variant: "outlined"
|
|
194
194
|
}, {
|
|
195
195
|
default: a(() => [
|
|
196
|
-
e(
|
|
196
|
+
e(ut, { class: "pb-2" }, {
|
|
197
197
|
default: a(() => [k(t.$slots, "price-heading", {}, () => [e(g, {
|
|
198
198
|
height: "20",
|
|
199
199
|
tile: "",
|
|
@@ -203,7 +203,7 @@ function Le(t, l) {
|
|
|
203
203
|
_: 3
|
|
204
204
|
}),
|
|
205
205
|
e(Y),
|
|
206
|
-
e(
|
|
206
|
+
e(lt, null, {
|
|
207
207
|
default: a(() => [k(t.$slots, "price-info-base", {}, () => [e(g, {
|
|
208
208
|
height: "20px",
|
|
209
209
|
tile: "",
|
|
@@ -212,7 +212,7 @@ function Le(t, l) {
|
|
|
212
212
|
})])]),
|
|
213
213
|
_: 3
|
|
214
214
|
}),
|
|
215
|
-
e(
|
|
215
|
+
e(lt, { class: "py-0" }, {
|
|
216
216
|
default: a(() => [k(t.$slots, "price-info-taxes", {}, () => [e(g, {
|
|
217
217
|
class: "mb-4",
|
|
218
218
|
height: "20px",
|
|
@@ -222,13 +222,13 @@ function Le(t, l) {
|
|
|
222
222
|
})])]),
|
|
223
223
|
_: 3
|
|
224
224
|
}),
|
|
225
|
-
e(
|
|
225
|
+
e(O, { class: "bg-grey-lighten-3 py-3" }, {
|
|
226
226
|
default: a(() => [s("div", _e, [k(t.$slots, "total", {}, () => [e(g, {
|
|
227
227
|
height: "20",
|
|
228
228
|
tile: "",
|
|
229
229
|
type: "heading",
|
|
230
230
|
width: "50px"
|
|
231
|
-
})]), s("div",
|
|
231
|
+
})]), s("div", Le, [k(t.$slots, "total-count", {}, () => [e(g, {
|
|
232
232
|
height: "20",
|
|
233
233
|
tile: "",
|
|
234
234
|
type: "heading",
|
|
@@ -245,12 +245,12 @@ function Le(t, l) {
|
|
|
245
245
|
]),
|
|
246
246
|
_: 3
|
|
247
247
|
}),
|
|
248
|
-
e(
|
|
248
|
+
e(M, {
|
|
249
249
|
elevation: "0",
|
|
250
250
|
variant: "outlined"
|
|
251
251
|
}, {
|
|
252
252
|
default: a(() => [
|
|
253
|
-
e(
|
|
253
|
+
e(ut, { class: "pb-2" }, {
|
|
254
254
|
default: a(() => [k(t.$slots, "cancellation-policies-heading", {}, () => [e(g, {
|
|
255
255
|
class: "my-1",
|
|
256
256
|
height: "20px",
|
|
@@ -261,7 +261,7 @@ function Le(t, l) {
|
|
|
261
261
|
_: 3
|
|
262
262
|
}),
|
|
263
263
|
e(Y),
|
|
264
|
-
e(
|
|
264
|
+
e(O, { class: "pb-5" }, {
|
|
265
265
|
default: a(() => [k(t.$slots, "cancellation-policies-list", {}, () => [e(g, {
|
|
266
266
|
class: "my-1",
|
|
267
267
|
height: "20px",
|
|
@@ -276,19 +276,19 @@ function Le(t, l) {
|
|
|
276
276
|
})
|
|
277
277
|
]);
|
|
278
278
|
}
|
|
279
|
-
var
|
|
279
|
+
var Ie = /* @__PURE__ */ gt(Te, [["render", Se]]), Re = { class: "text-h7 font-weight-bold text-grey-darken-4 ma-0 mr-2" }, Fe = { class: "text-h8 text-grey-darken-2" }, De = { class: "text-body-2 mb-1 text-black" }, Ae = { class: "text-body-2 mb-1 text-black" }, ze = { class: "font-weight-bold text-body-2 mb-0 text-black" }, Oe = { class: "font-weight-bold text-body-2 mb-0 text-black" }, Ue = {
|
|
280
280
|
key: 0,
|
|
281
281
|
class: "text-body-2 text-grey-darken-1 mb-0"
|
|
282
|
-
},
|
|
282
|
+
}, Ee = {
|
|
283
283
|
key: 0,
|
|
284
284
|
class: "text-body-2 text-grey-darken-1 mb-0"
|
|
285
|
-
},
|
|
285
|
+
}, He = { key: 1 }, Ve = { class: "mb-1 text-black" }, Ne = { class: "font-weight-bold mb-0 text-black" }, Me = { class: "font-weight-bold mb-0 text-black" }, $e = { class: "d-flex flex-column ga-2" }, qe = { class: "text-caption font-weight-bold text-orange my-0 rounded text-center" }, je = { class: "caption font-weight-bold text-black" }, Ge = { class: "float-right text-black" }, Ke = {
|
|
286
286
|
key: 0,
|
|
287
287
|
class: "pt-0 pb-4"
|
|
288
|
-
},
|
|
288
|
+
}, Ye = { class: "text-caption font-weight-bold text-black" }, Ze = { class: "float-right text-black" }, Je = { key: 1 }, Qe = { class: "font-weight-black text-h6 mb-0 text-black" }, We = {
|
|
289
289
|
key: 0,
|
|
290
290
|
class: "text-caption mb-0 text-black"
|
|
291
|
-
},
|
|
291
|
+
}, Xe = { class: "text-caption mb-0" }, Bt = /* @__PURE__ */ X({
|
|
292
292
|
__name: "BookingDetailsSidebarUI",
|
|
293
293
|
props: {
|
|
294
294
|
adultCount: {},
|
|
@@ -298,34 +298,34 @@ var Se = /* @__PURE__ */ mt(we, [["render", Le]]), Ie = { class: "text-h7 font-w
|
|
|
298
298
|
hotelRoomOffer: {}
|
|
299
299
|
},
|
|
300
300
|
setup(t) {
|
|
301
|
-
const { locale: l, t: o } =
|
|
301
|
+
const { locale: l, t: o } = ot(), n = t;
|
|
302
302
|
function m(f) {
|
|
303
303
|
return f ? (0, K.default)(f).locale(l.value).format("ll") : null;
|
|
304
304
|
}
|
|
305
305
|
function b(f) {
|
|
306
|
-
const
|
|
307
|
-
return f ? (0, K.default)(
|
|
306
|
+
const C = (0, K.default)(`1/1/1 ${f}`, "h:mm A");
|
|
307
|
+
return f ? (0, K.default)(C).format("HH:mm") : null;
|
|
308
308
|
}
|
|
309
|
-
const v =
|
|
310
|
-
return (f,
|
|
309
|
+
const v = I(() => !n.checkInDate || !n.checkOutDate ? 0 : (0, K.default)(n.checkOutDate).diff((0, K.default)(n.checkInDate), "days")), i = I(() => n.hotelRoomOffer.hotelRooms.reduce((f, C) => f + C.count, 0) || 0), w = I(() => n.hotelRoomOffer.hotelRooms.some((f) => f.beds.some((C) => C.length > 1)));
|
|
310
|
+
return (f, C) => (c(), y(Ie, null, {
|
|
311
311
|
hotel: a(() => [t.hotel ? (c(), S(W, { key: 0 }, [
|
|
312
|
-
e(
|
|
313
|
-
default: a(() => [t.hotel.name ? (c(),
|
|
314
|
-
default: a(() => [s("span",
|
|
312
|
+
e(H, { "no-gutters": "" }, {
|
|
313
|
+
default: a(() => [t.hotel.name ? (c(), y(R, { key: 0 }, {
|
|
314
|
+
default: a(() => [s("span", Re, u(t.hotel.name), 1), e(me, {
|
|
315
315
|
attach: f.$parent?.$el,
|
|
316
316
|
location: "bottom"
|
|
317
317
|
}, {
|
|
318
|
-
activator: a(({ props: L }) => [s("span",
|
|
318
|
+
activator: a(({ props: L }) => [s("span", yt(Mt(L)), [e(ye, { count: t.hotel.rating }, null, 8, ["count"])], 16)]),
|
|
319
319
|
default: a(() => [s("span", null, u(r(o)("BookingDetailsSidebar.hotel.starRating")), 1)]),
|
|
320
320
|
_: 1
|
|
321
321
|
}, 8, ["attach"])]),
|
|
322
322
|
_: 1
|
|
323
|
-
})) :
|
|
323
|
+
})) : B("", !0)]),
|
|
324
324
|
_: 1
|
|
325
325
|
}),
|
|
326
|
-
e(
|
|
327
|
-
default: a(() => [e(
|
|
328
|
-
default: a(() => [s("small",
|
|
326
|
+
e(H, { "no-gutters": "" }, {
|
|
327
|
+
default: a(() => [e(R, null, {
|
|
328
|
+
default: a(() => [s("small", Fe, u(r(o)("BookingDetailsSidebar.hotel.fullAddress", {
|
|
329
329
|
address: t.hotel.address,
|
|
330
330
|
postalCode: t.hotel.postalCode,
|
|
331
331
|
city: t.hotel.city,
|
|
@@ -335,8 +335,8 @@ var Se = /* @__PURE__ */ mt(we, [["render", Le]]), Ie = { class: "text-h7 font-w
|
|
|
335
335
|
})]),
|
|
336
336
|
_: 1
|
|
337
337
|
}),
|
|
338
|
-
e(
|
|
339
|
-
default: a(() => [e(
|
|
338
|
+
e(H, { "no-gutters": "" }, {
|
|
339
|
+
default: a(() => [e(R, null, {
|
|
340
340
|
default: a(() => [e(ue, {
|
|
341
341
|
features: { ReviewRatingDetails: !1 },
|
|
342
342
|
hotel: t.hotel,
|
|
@@ -347,35 +347,35 @@ var Se = /* @__PURE__ */ mt(we, [["render", Le]]), Ie = { class: "text-h7 font-w
|
|
|
347
347
|
})]),
|
|
348
348
|
_: 1
|
|
349
349
|
})
|
|
350
|
-
], 64)) :
|
|
350
|
+
], 64)) : B("", !0)]),
|
|
351
351
|
"booking-heading": a(() => [s("h5", null, u(r(o)("BookingDetailsSidebar.bookingHeading")), 1)]),
|
|
352
|
-
"check-in-title": a(() => [s("p",
|
|
353
|
-
"check-out-title": a(() => [s("p",
|
|
354
|
-
"check-in-date": a(() => [s("p",
|
|
355
|
-
"check-out-date": a(() => [s("p",
|
|
356
|
-
"check-in-time": a(() => [t.hotel?.checkInTime ? (c(), S("p",
|
|
357
|
-
"check-out-time": a(() => [t.hotel?.checkOutTime ? (c(), S("p",
|
|
352
|
+
"check-in-title": a(() => [s("p", De, u(r(o)("BookingDetailsSidebar.checkInTitle")), 1)]),
|
|
353
|
+
"check-out-title": a(() => [s("p", Ae, u(r(o)("BookingDetailsSidebar.checkOutTitle")), 1)]),
|
|
354
|
+
"check-in-date": a(() => [s("p", ze, u(m(t.checkInDate)), 1)]),
|
|
355
|
+
"check-out-date": a(() => [s("p", Oe, u(m(t.checkOutDate)), 1)]),
|
|
356
|
+
"check-in-time": a(() => [t.hotel?.checkInTime ? (c(), S("p", Ue, u(r(o)("BookingDetailsSidebar.checkInTime", { value: b(t.hotel?.checkInTime) })), 1)) : B("", !0), C[0] || (C[0] = s("template", null, [s("span")], -1))]),
|
|
357
|
+
"check-out-time": a(() => [t.hotel?.checkOutTime ? (c(), S("p", Ee, u(r(o)("BookingDetailsSidebar.checkOutTime", { value: b(t.hotel?.checkOutTime) })), 1)) : (c(), S("span", He))]),
|
|
358
358
|
"length-of-stay-title": a(() => [s("p", Ve, u(r(o)("BookingDetailsSidebar.lengthOfStayTitle")), 1)]),
|
|
359
|
-
"length-of-stay-count": a(() => [s("p",
|
|
359
|
+
"length-of-stay-count": a(() => [s("p", Ne, u(r(o)("BookingDetailsSidebar.nightCount", {
|
|
360
360
|
n: v.value,
|
|
361
361
|
value: v.value
|
|
362
362
|
})), 1)]),
|
|
363
|
-
"room-selected-heading": a(() => [s("p",
|
|
364
|
-
"room-selected-list": a(() => [s("div",
|
|
365
|
-
e(
|
|
363
|
+
"room-selected-heading": a(() => [s("p", Me, u(r(o)("BookingDetailsSidebar.roomSelectedHeading")), 1)]),
|
|
364
|
+
"room-selected-list": a(() => [s("div", $e, [
|
|
365
|
+
e(ce, { "hotel-rooms": t.hotelRoomOffer.hotelRooms.map((L) => ({
|
|
366
366
|
...L,
|
|
367
367
|
id: L.id
|
|
368
368
|
})) }, null, 8, ["hotel-rooms"]),
|
|
369
|
-
t.hotelRoomOffer?.breakfastCount && t.hotelRoomOffer.breakfastCount > 0 ? (c(),
|
|
369
|
+
t.hotelRoomOffer?.breakfastCount && t.hotelRoomOffer.breakfastCount > 0 ? (c(), y(fe, {
|
|
370
370
|
key: 0,
|
|
371
371
|
"breakfast-option": "INCLUDED",
|
|
372
372
|
breakfastCount: t.hotelRoomOffer?.breakfastCount
|
|
373
|
-
}, null, 8, ["breakfastCount"])) :
|
|
374
|
-
t.hotelRoomOffer.stayTaxesInfo === r(
|
|
373
|
+
}, null, 8, ["breakfastCount"])) : B("", !0),
|
|
374
|
+
t.hotelRoomOffer.stayTaxesInfo === r(Qt).NotIncluded ? (c(), y(se, {
|
|
375
375
|
key: 1,
|
|
376
376
|
"adult-count": t.hotelRoomOffer.taxes?.length ? t.adultCount : 0
|
|
377
|
-
}, null, 8, ["adult-count"])) :
|
|
378
|
-
|
|
377
|
+
}, null, 8, ["adult-count"])) : B("", !0),
|
|
378
|
+
w.value ? (c(), y(ee, {
|
|
379
379
|
key: 2,
|
|
380
380
|
density: "compact",
|
|
381
381
|
icon: !1,
|
|
@@ -383,38 +383,38 @@ var Se = /* @__PURE__ */ mt(we, [["render", Le]]), Ie = { class: "text-h7 font-w
|
|
|
383
383
|
type: "warning",
|
|
384
384
|
variant: "tonal"
|
|
385
385
|
}, {
|
|
386
|
-
default: a(() => [s("p",
|
|
386
|
+
default: a(() => [s("p", qe, u(r(o)("BookingDetailsSidebar.bedTypeNote")), 1)]),
|
|
387
387
|
_: 1
|
|
388
|
-
})) :
|
|
388
|
+
})) : B("", !0)
|
|
389
389
|
])]),
|
|
390
390
|
"price-heading": a(() => [s("h5", null, u(r(o)("BookingDetailsSidebar.priceHeading")), 1)]),
|
|
391
|
-
"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", je, u(r(o)("BookingDetailsSidebar.roomCount", {
|
|
392
392
|
n: i.value,
|
|
393
393
|
value: i.value
|
|
394
394
|
})) + " x " + u(r(o)("BookingDetailsSidebar.nightCount", {
|
|
395
395
|
n: v.value,
|
|
396
396
|
value: v.value
|
|
397
|
-
})), 1), s("span",
|
|
397
|
+
})), 1), s("span", Ge, [e(Z, {
|
|
398
398
|
amount: t.hotelRoomOffer.price,
|
|
399
399
|
currency: t.hotelRoomOffer.currency
|
|
400
|
-
}, null, 8, ["amount", "currency"])])], 64)) :
|
|
401
|
-
"price-info-taxes": a(() => [t.hotelRoomOffer && t.hotelRoomOffer.taxIncludedPrice !== t.hotelRoomOffer.price ? (c(), S("div",
|
|
400
|
+
}, null, 8, ["amount", "currency"])])], 64)) : B("", !0)]),
|
|
401
|
+
"price-info-taxes": a(() => [t.hotelRoomOffer && t.hotelRoomOffer.taxIncludedPrice !== t.hotelRoomOffer.price ? (c(), S("div", Ke, [s("span", Ye, u(r(o)("BookingDetailsSidebar.taxesAmount")), 1), s("span", Ze, [e(Z, {
|
|
402
402
|
amount: t.hotelRoomOffer.taxIncludedPrice - t.hotelRoomOffer.price,
|
|
403
403
|
currency: t.hotelRoomOffer.currency
|
|
404
|
-
}, null, 8, ["amount", "currency"])])])) : (c(), S("span",
|
|
405
|
-
total: a(() => [s("div", null, [s("p",
|
|
404
|
+
}, null, 8, ["amount", "currency"])])])) : (c(), S("span", Je))]),
|
|
405
|
+
total: a(() => [s("div", null, [s("p", Qe, u(r(o)("BookingDetailsSidebar.total")), 1), t.adultCount ? (c(), S("p", We, u(r(o)("BookingDetailsSidebar.guestsCount", {
|
|
406
406
|
n: t.adultCount,
|
|
407
407
|
value: t.adultCount
|
|
408
|
-
})), 1)) :
|
|
409
|
-
"total-count": a(() => [t.hotelRoomOffer ? (c(),
|
|
408
|
+
})), 1)) : B("", !0)])]),
|
|
409
|
+
"total-count": a(() => [t.hotelRoomOffer ? (c(), y(Z, {
|
|
410
410
|
key: 0,
|
|
411
411
|
amount: t.hotelRoomOffer.taxIncludedPrice,
|
|
412
412
|
class: "font-weight-black text-h6 text-black",
|
|
413
413
|
currency: t.hotelRoomOffer.currency
|
|
414
|
-
}, null, 8, ["amount", "currency"])) :
|
|
415
|
-
taxes: a(() => [s("p",
|
|
414
|
+
}, null, 8, ["amount", "currency"])) : B("", !0)]),
|
|
415
|
+
taxes: a(() => [s("p", Xe, u(r(o)("BookingDetailsSidebar.taxes")), 1)]),
|
|
416
416
|
"cancellation-policies-heading": a(() => [s("h5", null, u(r(o)("BookingDetailsSidebar.bookingPoliciesHeading")), 1)]),
|
|
417
|
-
"cancellation-policies-list": a(() => [t.hotel && t.hotelRoomOffer ? (c(),
|
|
417
|
+
"cancellation-policies-list": a(() => [t.hotel && t.hotelRoomOffer ? (c(), y(le, {
|
|
418
418
|
key: 0,
|
|
419
419
|
"cancellation-policies": t.hotelRoomOffer.cancellationPolicies,
|
|
420
420
|
"check-in-date": t.checkInDate,
|
|
@@ -424,12 +424,12 @@ var Se = /* @__PURE__ */ mt(we, [["render", Le]]), Ie = { class: "text-h7 font-w
|
|
|
424
424
|
"cancellation-policies",
|
|
425
425
|
"check-in-date",
|
|
426
426
|
"timezone"
|
|
427
|
-
])) :
|
|
427
|
+
])) : B("", !0)]),
|
|
428
428
|
_: 1
|
|
429
429
|
}));
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
|
-
function
|
|
432
|
+
function bt(t) {
|
|
433
433
|
const l = t;
|
|
434
434
|
l.__i18n = l.__i18n || [], l.__i18n.push({
|
|
435
435
|
locale: "",
|
|
@@ -2306,8 +2306,8 @@ function gt(t) {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
});
|
|
2308
2308
|
}
|
|
2309
|
-
typeof
|
|
2310
|
-
var
|
|
2309
|
+
typeof bt == "function" && bt(Bt);
|
|
2310
|
+
var ta = /* @__PURE__ */ gt(Bt, [["__scopeId", "data-v-0c3cd674"]]), ea = /* @__PURE__ */ X({
|
|
2311
2311
|
__name: "BookingDetailsSidebar",
|
|
2312
2312
|
props: {
|
|
2313
2313
|
adultCount: {},
|
|
@@ -2316,16 +2316,16 @@ var Xe = /* @__PURE__ */ mt(Pt, [["__scopeId", "data-v-0c3cd674"]]), ta = /* @__
|
|
|
2316
2316
|
hotelRoomOffer: {}
|
|
2317
2317
|
},
|
|
2318
2318
|
setup(t) {
|
|
2319
|
-
const l = t, { bookingApiClient: o } =
|
|
2320
|
-
return
|
|
2319
|
+
const l = t, { bookingApiClient: o } = ft(), n = h(null), m = I(() => $t(l.hotelRoomOffer, null));
|
|
2320
|
+
return vt(() => {
|
|
2321
2321
|
try {
|
|
2322
|
-
m.value && o.value.hotels.retrieve({ id: m.value.hotelId }).then((b) => {
|
|
2322
|
+
m.value && o.value && o.value.hotels.retrieve({ id: m.value.hotelId }).then((b) => {
|
|
2323
2323
|
n.value = b;
|
|
2324
2324
|
});
|
|
2325
2325
|
} catch (b) {
|
|
2326
2326
|
console.error(b);
|
|
2327
2327
|
}
|
|
2328
|
-
}), (b, v) => (c(),
|
|
2328
|
+
}), (b, v) => (c(), y(ta, {
|
|
2329
2329
|
"adult-count": t.adultCount,
|
|
2330
2330
|
"check-in-date": t.checkInDate,
|
|
2331
2331
|
"check-out-date": t.checkOutDate,
|
|
@@ -2339,11 +2339,11 @@ var Xe = /* @__PURE__ */ mt(Pt, [["__scopeId", "data-v-0c3cd674"]]), ta = /* @__
|
|
|
2339
2339
|
"hotel-room-offer"
|
|
2340
2340
|
]));
|
|
2341
2341
|
}
|
|
2342
|
-
}),
|
|
2342
|
+
}), aa = ea, oa = /* @__PURE__ */ (function(t) {
|
|
2343
2343
|
return t.BookingDetails = "BookingDetails", t;
|
|
2344
|
-
})({}),
|
|
2345
|
-
function
|
|
2346
|
-
const l =
|
|
2344
|
+
})({}), ia = { [oa.BookingDetails]: !0 };
|
|
2345
|
+
function na(t) {
|
|
2346
|
+
const l = ct(t());
|
|
2347
2347
|
let o = -1;
|
|
2348
2348
|
function n() {
|
|
2349
2349
|
clearInterval(o);
|
|
@@ -2352,22 +2352,22 @@ function ia(t) {
|
|
|
2352
2352
|
n(), Ot(() => l.value = t());
|
|
2353
2353
|
}
|
|
2354
2354
|
function b(v) {
|
|
2355
|
-
const i = v ? getComputedStyle(v) : { transitionDuration: 0.2 },
|
|
2355
|
+
const i = v ? getComputedStyle(v) : { transitionDuration: 0.2 }, w = parseFloat(i.transitionDuration) * 1e3 || 200;
|
|
2356
2356
|
if (n(), l.value <= 0) return;
|
|
2357
2357
|
const f = performance.now();
|
|
2358
2358
|
o = window.setInterval(() => {
|
|
2359
|
-
const
|
|
2360
|
-
l.value = Math.max(t() -
|
|
2361
|
-
},
|
|
2359
|
+
const C = performance.now() - f + w;
|
|
2360
|
+
l.value = Math.max(t() - C, 0), l.value <= 0 && n();
|
|
2361
|
+
}, w);
|
|
2362
2362
|
}
|
|
2363
|
-
return
|
|
2363
|
+
return qt(n), {
|
|
2364
2364
|
clear: n,
|
|
2365
2365
|
time: l,
|
|
2366
2366
|
start: b,
|
|
2367
2367
|
reset: m
|
|
2368
2368
|
};
|
|
2369
2369
|
}
|
|
2370
|
-
var
|
|
2370
|
+
var sa = At({
|
|
2371
2371
|
multiLine: Boolean,
|
|
2372
2372
|
text: String,
|
|
2373
2373
|
timer: [Boolean, String],
|
|
@@ -2376,65 +2376,65 @@ var na = At({
|
|
|
2376
2376
|
default: 5e3
|
|
2377
2377
|
},
|
|
2378
2378
|
vertical: Boolean,
|
|
2379
|
-
...
|
|
2380
|
-
...
|
|
2381
|
-
...
|
|
2382
|
-
...
|
|
2383
|
-
...
|
|
2384
|
-
...
|
|
2379
|
+
...Pe({ location: "bottom" }),
|
|
2380
|
+
...Ce(),
|
|
2381
|
+
...Xt(),
|
|
2382
|
+
...ie(),
|
|
2383
|
+
...Kt(),
|
|
2384
|
+
...Jt(ae({ transition: "v-snackbar-transition" }), [
|
|
2385
2385
|
"persistent",
|
|
2386
2386
|
"noClickAnimation",
|
|
2387
2387
|
"scrim",
|
|
2388
2388
|
"scrollStrategy"
|
|
2389
2389
|
])
|
|
2390
|
-
}, "VSnackbar"),
|
|
2390
|
+
}, "VSnackbar"), ra = Ut()({
|
|
2391
2391
|
name: "VSnackbar",
|
|
2392
|
-
props:
|
|
2392
|
+
props: sa(),
|
|
2393
2393
|
emits: { "update:modelValue": (t) => !0 },
|
|
2394
2394
|
setup(t, l) {
|
|
2395
2395
|
let { slots: o } = l;
|
|
2396
|
-
const n = Ft(t, "modelValue"), { positionClasses: m } =
|
|
2397
|
-
zt(() =>
|
|
2398
|
-
const
|
|
2399
|
-
|
|
2400
|
-
|
|
2396
|
+
const n = Ft(t, "modelValue"), { positionClasses: m } = be(t), { scopeId: b } = te(), { themeClasses: v } = Ht(t), { colorClasses: i, colorStyles: w, variantClasses: f } = ve(t), { roundedClasses: C } = oe(t), L = na(() => Number(t.timeout)), U = h(), x = h(), F = ct(!1), V = ct(0), z = h(), $ = Vt(pe, void 0);
|
|
2397
|
+
zt(() => !!$, () => {
|
|
2398
|
+
const T = xe();
|
|
2399
|
+
jt(() => {
|
|
2400
|
+
z.value = T.mainStyles.value;
|
|
2401
2401
|
});
|
|
2402
|
-
}),
|
|
2402
|
+
}), dt(n, p), dt(() => t.timeout, p), vt(() => {
|
|
2403
2403
|
n.value && p();
|
|
2404
2404
|
});
|
|
2405
|
-
let
|
|
2405
|
+
let N = -1;
|
|
2406
2406
|
function p() {
|
|
2407
|
-
L.reset(), window.clearTimeout(
|
|
2408
|
-
const
|
|
2409
|
-
if (!n.value ||
|
|
2410
|
-
const
|
|
2411
|
-
L.start(
|
|
2407
|
+
L.reset(), window.clearTimeout(N);
|
|
2408
|
+
const T = Number(t.timeout);
|
|
2409
|
+
if (!n.value || T === -1) return;
|
|
2410
|
+
const A = Dt(x.value);
|
|
2411
|
+
L.start(A), N = window.setTimeout(() => {
|
|
2412
2412
|
n.value = !1;
|
|
2413
|
-
},
|
|
2413
|
+
}, T);
|
|
2414
2414
|
}
|
|
2415
2415
|
function d() {
|
|
2416
|
-
L.reset(), window.clearTimeout(
|
|
2416
|
+
L.reset(), window.clearTimeout(N);
|
|
2417
2417
|
}
|
|
2418
2418
|
function G() {
|
|
2419
|
-
|
|
2419
|
+
F.value = !0, d();
|
|
2420
2420
|
}
|
|
2421
|
-
function
|
|
2422
|
-
|
|
2421
|
+
function D() {
|
|
2422
|
+
F.value = !1, p();
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2425
|
-
V.value =
|
|
2424
|
+
function it(T) {
|
|
2425
|
+
V.value = T.touches[0].clientY;
|
|
2426
2426
|
}
|
|
2427
|
-
function
|
|
2428
|
-
Math.abs(V.value -
|
|
2427
|
+
function tt(T) {
|
|
2428
|
+
Math.abs(V.value - T.changedTouches[0].clientY) > 50 && (n.value = !1);
|
|
2429
2429
|
}
|
|
2430
|
-
function
|
|
2431
|
-
|
|
2430
|
+
function q() {
|
|
2431
|
+
F.value && D();
|
|
2432
2432
|
}
|
|
2433
|
-
const
|
|
2434
|
-
return
|
|
2435
|
-
const
|
|
2436
|
-
return e(
|
|
2437
|
-
ref:
|
|
2433
|
+
const nt = I(() => t.location.split(" ").reduce((T, A) => (T[`v-snackbar--${A}`] = !0, T), {}));
|
|
2434
|
+
return he(() => {
|
|
2435
|
+
const T = mt.filterProps(t), A = !!(o.default || o.text || t.text);
|
|
2436
|
+
return e(mt, at({
|
|
2437
|
+
ref: U,
|
|
2438
2438
|
class: [
|
|
2439
2439
|
"v-snackbar",
|
|
2440
2440
|
{
|
|
@@ -2443,53 +2443,53 @@ var na = At({
|
|
|
2443
2443
|
"v-snackbar--timer": !!t.timer,
|
|
2444
2444
|
"v-snackbar--vertical": t.vertical
|
|
2445
2445
|
},
|
|
2446
|
-
|
|
2446
|
+
nt.value,
|
|
2447
2447
|
m.value,
|
|
2448
2448
|
t.class
|
|
2449
2449
|
],
|
|
2450
|
-
style: [
|
|
2451
|
-
},
|
|
2450
|
+
style: [z.value, t.style]
|
|
2451
|
+
}, T, {
|
|
2452
2452
|
modelValue: n.value,
|
|
2453
|
-
"onUpdate:modelValue": (
|
|
2454
|
-
contentProps:
|
|
2453
|
+
"onUpdate:modelValue": (_) => n.value = _,
|
|
2454
|
+
contentProps: at({
|
|
2455
2455
|
class: [
|
|
2456
2456
|
"v-snackbar__wrapper",
|
|
2457
2457
|
v.value,
|
|
2458
2458
|
i.value,
|
|
2459
|
-
|
|
2459
|
+
C.value,
|
|
2460
2460
|
f.value
|
|
2461
2461
|
],
|
|
2462
|
-
style: [
|
|
2462
|
+
style: [w.value],
|
|
2463
2463
|
onPointerenter: G,
|
|
2464
|
-
onPointerleave:
|
|
2465
|
-
},
|
|
2464
|
+
onPointerleave: D
|
|
2465
|
+
}, T.contentProps),
|
|
2466
2466
|
persistent: !0,
|
|
2467
2467
|
noClickAnimation: !0,
|
|
2468
2468
|
scrim: !1,
|
|
2469
2469
|
scrollStrategy: "none",
|
|
2470
2470
|
_disableGlobalStack: !0,
|
|
2471
|
-
onTouchstartPassive:
|
|
2472
|
-
onTouchend:
|
|
2473
|
-
onAfterLeave:
|
|
2471
|
+
onTouchstartPassive: it,
|
|
2472
|
+
onTouchend: tt,
|
|
2473
|
+
onAfterLeave: q
|
|
2474
2474
|
}, b), {
|
|
2475
2475
|
default: () => [
|
|
2476
|
-
|
|
2477
|
-
t.timer && !
|
|
2476
|
+
Wt(!1, "v-snackbar"),
|
|
2477
|
+
t.timer && !F.value && e("div", {
|
|
2478
2478
|
key: "timer",
|
|
2479
2479
|
class: "v-snackbar__timer"
|
|
2480
2480
|
}, [e(ge, {
|
|
2481
|
-
ref:
|
|
2481
|
+
ref: x,
|
|
2482
2482
|
color: typeof t.timer == "string" ? t.timer : "info",
|
|
2483
2483
|
max: t.timeout,
|
|
2484
2484
|
"model-value": L.time.value
|
|
2485
2485
|
}, null)]),
|
|
2486
|
-
|
|
2486
|
+
A && e("div", {
|
|
2487
2487
|
key: "content",
|
|
2488
2488
|
class: "v-snackbar__content",
|
|
2489
2489
|
role: "status",
|
|
2490
2490
|
"aria-live": "polite"
|
|
2491
2491
|
}, [o.text?.() ?? t.text, o.default?.()]),
|
|
2492
|
-
o.actions && e(
|
|
2492
|
+
o.actions && e(Be, { defaults: { VBtn: {
|
|
2493
2493
|
variant: "text",
|
|
2494
2494
|
ripple: !1,
|
|
2495
2495
|
slim: !0
|
|
@@ -2497,9 +2497,9 @@ var na = At({
|
|
|
2497
2497
|
],
|
|
2498
2498
|
activator: o.activator
|
|
2499
2499
|
});
|
|
2500
|
-
}),
|
|
2500
|
+
}), de({}, U);
|
|
2501
2501
|
}
|
|
2502
|
-
}),
|
|
2502
|
+
}), la = { class: "d-flex flex-column ga-3" }, ua = ["href"], ca = { class: "mr-1" }, da = { class: "mr-1" }, ma = { class: "mx-2" }, va = { class: "mr-1" }, wt = /* @__PURE__ */ X({
|
|
2503
2503
|
__name: "PaymentFormUI",
|
|
2504
2504
|
props: {
|
|
2505
2505
|
currency: {},
|
|
@@ -2518,23 +2518,23 @@ var na = At({
|
|
|
2518
2518
|
"payment:success"
|
|
2519
2519
|
],
|
|
2520
2520
|
setup(t, { expose: l, emit: o }) {
|
|
2521
|
-
const n = o, { t: m } =
|
|
2521
|
+
const n = o, { t: m } = ot(), b = t, v = h(!1), i = h(P.CreditCard), w = h(!1), f = h(!1), C = h(!1), L = h(null), U = It("CREDIT_CARD"), x = I(() => b.paymentMethods.find((p) => p.name === P.CreditCard && p.payload)), F = I(() => {
|
|
2522
2522
|
const p = b.paymentMethods.find((d) => d.name === P.Coupon && d.payload);
|
|
2523
2523
|
return !!(p && p.payload.amount === b.totalToPay);
|
|
2524
2524
|
});
|
|
2525
2525
|
function V(p) {
|
|
2526
|
-
|
|
2526
|
+
C.value = p && !F.value, n("payment:change", p), L.value = "";
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function z(p) {
|
|
2529
2529
|
n("payment:error"), L.value = p;
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
2531
|
+
function $(p) {
|
|
2532
2532
|
v.value = !0, n(j.PaymentSuccess, p);
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function N() {
|
|
2535
2535
|
switch (i.value) {
|
|
2536
2536
|
case P.CreditCard:
|
|
2537
|
-
|
|
2537
|
+
U.value?.pay();
|
|
2538
2538
|
break;
|
|
2539
2539
|
case P.Coupon:
|
|
2540
2540
|
case P.DepositAccount:
|
|
@@ -2542,19 +2542,19 @@ var na = At({
|
|
|
2542
2542
|
break;
|
|
2543
2543
|
}
|
|
2544
2544
|
}
|
|
2545
|
-
return l({ pay:
|
|
2546
|
-
const G =
|
|
2547
|
-
return c(), S("div",
|
|
2548
|
-
e(
|
|
2545
|
+
return l({ pay: N }), (p, d) => {
|
|
2546
|
+
const G = Gt("i18n-t");
|
|
2547
|
+
return c(), S("div", la, [
|
|
2548
|
+
e(we, {
|
|
2549
2549
|
ref: "CREDIT_CARD",
|
|
2550
|
-
amount:
|
|
2550
|
+
amount: x.value?.payload?.amount || 0,
|
|
2551
2551
|
currency: t.currency,
|
|
2552
|
-
disabled: !
|
|
2552
|
+
disabled: !x.value?.payload.amount || !x.value?.payload.token,
|
|
2553
2553
|
loading: t.isLoading,
|
|
2554
|
-
stripeToken:
|
|
2554
|
+
stripeToken: x.value?.payload.token,
|
|
2555
2555
|
onChange: V,
|
|
2556
|
-
onError:
|
|
2557
|
-
"onPayment:success": d[0] || (d[0] = (
|
|
2556
|
+
onError: z,
|
|
2557
|
+
"onPayment:success": d[0] || (d[0] = (D) => $(r(P).CreditCard))
|
|
2558
2558
|
}, null, 8, [
|
|
2559
2559
|
"amount",
|
|
2560
2560
|
"currency",
|
|
@@ -2565,10 +2565,10 @@ var na = At({
|
|
|
2565
2565
|
k(p.$slots, "append"),
|
|
2566
2566
|
k(p.$slots, "terms", {}, () => [e(xt, {
|
|
2567
2567
|
ref: "testing",
|
|
2568
|
-
modelValue:
|
|
2569
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
2568
|
+
modelValue: w.value,
|
|
2569
|
+
"onUpdate:modelValue": d[2] || (d[2] = (D) => w.value = D),
|
|
2570
2570
|
color: "primary",
|
|
2571
|
-
error: f.value && !
|
|
2571
|
+
error: f.value && !w.value
|
|
2572
2572
|
}, {
|
|
2573
2573
|
label: a(() => [s("span", { onClick: d[1] || (d[1] = Ct(() => {
|
|
2574
2574
|
}, ["stop"])) }, [e(G, {
|
|
@@ -2578,49 +2578,49 @@ var na = At({
|
|
|
2578
2578
|
linkText: a(() => [s("b", null, [s("a", {
|
|
2579
2579
|
href: r(m)("PaymentFormUI.termsURL"),
|
|
2580
2580
|
target: "_blank"
|
|
2581
|
-
}, u(r(m)("PaymentFormUI.termsAndConditionsLinkText")), 9,
|
|
2581
|
+
}, u(r(m)("PaymentFormUI.termsAndConditionsLinkText")), 9, ua)])]),
|
|
2582
2582
|
_: 1
|
|
2583
2583
|
})])]),
|
|
2584
2584
|
_: 1
|
|
2585
2585
|
}, 8, ["modelValue", "error"])]),
|
|
2586
2586
|
e(ke, { class: "mt-n6" }, {
|
|
2587
|
-
default: a(() => [e(
|
|
2587
|
+
default: a(() => [e(H, {
|
|
2588
2588
|
align: "end",
|
|
2589
2589
|
class: "flex-column flex-sm-row",
|
|
2590
2590
|
"no-gutters": ""
|
|
2591
2591
|
}, {
|
|
2592
|
-
default: a(() => [e(
|
|
2593
|
-
default: a(() => [t.isPayLaterForced ? (c(),
|
|
2592
|
+
default: a(() => [e(R, { class: "d-flex flex-column flex-sm-row align-center mt-sm-0 mt-4 mb-1 justify-end" }, {
|
|
2593
|
+
default: a(() => [t.isPayLaterForced ? (c(), y(Q, {
|
|
2594
2594
|
key: 0,
|
|
2595
2595
|
class: "w-sm-auto w-100",
|
|
2596
2596
|
color: "primary",
|
|
2597
2597
|
"data-gtm-id": "payment-book-pay-later",
|
|
2598
|
-
disabled: t.isLoading || !
|
|
2598
|
+
disabled: t.isLoading || !w.value,
|
|
2599
2599
|
loading: t.isLoading,
|
|
2600
2600
|
variant: "outlined",
|
|
2601
|
-
onClick: d[3] || (d[3] = (
|
|
2601
|
+
onClick: d[3] || (d[3] = (D) => n("payment:later"))
|
|
2602
2602
|
}, {
|
|
2603
|
-
default: a(() => [s("span",
|
|
2603
|
+
default: a(() => [s("span", ca, u(r(m)("PaymentFormUI.completeBookingNow")), 1)]),
|
|
2604
2604
|
_: 1
|
|
2605
|
-
}, 8, ["disabled", "loading"])) : t.isPayLaterAllowed ? (c(), S(W, { key: 1 }, [e(
|
|
2605
|
+
}, 8, ["disabled", "loading"])) : t.isPayLaterAllowed ? (c(), S(W, { key: 1 }, [e(Q, {
|
|
2606
2606
|
class: "w-sm-auto w-100",
|
|
2607
2607
|
color: "primary",
|
|
2608
2608
|
"data-gtm-id": "payment-book-pay-later",
|
|
2609
|
-
disabled: t.isLoading || !
|
|
2609
|
+
disabled: t.isLoading || !w.value,
|
|
2610
2610
|
loading: t.isLoading,
|
|
2611
2611
|
variant: "outlined",
|
|
2612
|
-
onClick: d[4] || (d[4] = (
|
|
2612
|
+
onClick: d[4] || (d[4] = (D) => n("payment:later"))
|
|
2613
2613
|
}, {
|
|
2614
2614
|
default: a(() => [
|
|
2615
|
-
e(
|
|
2615
|
+
e(J, {
|
|
2616
2616
|
class: "ml-1",
|
|
2617
2617
|
start: ""
|
|
2618
2618
|
}, {
|
|
2619
|
-
default: a(() => [...d[6] || (d[6] = [
|
|
2619
|
+
default: a(() => [...d[6] || (d[6] = [E(" fas fa-clock ", -1)])]),
|
|
2620
2620
|
_: 1
|
|
2621
2621
|
}),
|
|
2622
|
-
s("span",
|
|
2623
|
-
t.isPayLaterForced ?
|
|
2622
|
+
s("span", da, u(r(m)("PaymentFormUI.completeBookingLater")), 1),
|
|
2623
|
+
t.isPayLaterForced ? B("", !0) : (c(), y(r(Z), {
|
|
2624
2624
|
key: 0,
|
|
2625
2625
|
amount: t.totalToPay,
|
|
2626
2626
|
class: "font-weight-bold",
|
|
@@ -2628,23 +2628,23 @@ var na = At({
|
|
|
2628
2628
|
}, null, 8, ["amount", "currency"]))
|
|
2629
2629
|
]),
|
|
2630
2630
|
_: 1
|
|
2631
|
-
}, 8, ["disabled", "loading"]), s("span",
|
|
2631
|
+
}, 8, ["disabled", "loading"]), s("span", ma, u(r(m)("PaymentFormUI.or")), 1)], 64)) : B("", !0), t.isPayLaterForced ? B("", !0) : (c(), y(Q, {
|
|
2632
2632
|
key: 2,
|
|
2633
2633
|
class: "w-sm-auto w-100",
|
|
2634
2634
|
color: "primary",
|
|
2635
2635
|
"data-gtm-id": "payment-book-now",
|
|
2636
|
-
disabled: t.isLoading || !
|
|
2636
|
+
disabled: t.isLoading || !w.value || !C.value || t.isUpdatingPaymentMethods,
|
|
2637
2637
|
loading: t.isLoading,
|
|
2638
2638
|
variant: "flat",
|
|
2639
|
-
onClick: d[5] || (d[5] = (
|
|
2639
|
+
onClick: d[5] || (d[5] = (D) => n("payment:pay"))
|
|
2640
2640
|
}, {
|
|
2641
|
-
default: a(() => [e(
|
|
2641
|
+
default: a(() => [e(J, {
|
|
2642
2642
|
class: "ml-1",
|
|
2643
2643
|
start: ""
|
|
2644
2644
|
}, {
|
|
2645
|
-
default: a(() => [...d[7] || (d[7] = [
|
|
2645
|
+
default: a(() => [...d[7] || (d[7] = [E(" fas fa-lock ", -1)])]),
|
|
2646
2646
|
_: 1
|
|
2647
|
-
}), s("span",
|
|
2647
|
+
}), s("span", va, u(r(m)("PaymentFormUI.completeBookingNow")), 1)]),
|
|
2648
2648
|
_: 1
|
|
2649
2649
|
}, 8, ["disabled", "loading"]))]),
|
|
2650
2650
|
_: 1
|
|
@@ -2657,7 +2657,7 @@ var na = At({
|
|
|
2657
2657
|
};
|
|
2658
2658
|
}
|
|
2659
2659
|
});
|
|
2660
|
-
function
|
|
2660
|
+
function pt(t) {
|
|
2661
2661
|
const l = t;
|
|
2662
2662
|
l.__i18n = l.__i18n || [], l.__i18n.push({
|
|
2663
2663
|
locale: "",
|
|
@@ -3050,8 +3050,8 @@ function bt(t) {
|
|
|
3050
3050
|
}
|
|
3051
3051
|
});
|
|
3052
3052
|
}
|
|
3053
|
-
typeof
|
|
3054
|
-
var
|
|
3053
|
+
typeof pt == "function" && pt(wt);
|
|
3054
|
+
var ga = wt, ba = { class: "d-flex justify-space-between w-100 items-center" }, pa = ["href"], ka = { class: "mr-1" }, Tt = /* @__PURE__ */ X({
|
|
3055
3055
|
__name: "BookingPaymentForcedPayLater",
|
|
3056
3056
|
props: { isLoading: {
|
|
3057
3057
|
type: Boolean,
|
|
@@ -3059,22 +3059,22 @@ var va = wt, ga = { class: "d-flex justify-space-between w-100 items-center" },
|
|
|
3059
3059
|
} },
|
|
3060
3060
|
emits: ["payment:later"],
|
|
3061
3061
|
setup(t, { emit: l }) {
|
|
3062
|
-
const { t: o } =
|
|
3062
|
+
const { t: o } = ot(), n = h(!1), m = l;
|
|
3063
3063
|
return (b, v) => (c(), S(W, null, [
|
|
3064
|
-
e(
|
|
3064
|
+
e(M, {
|
|
3065
3065
|
border: "",
|
|
3066
3066
|
elevation: "0",
|
|
3067
3067
|
style: { borderColor: "rgb(var(--v-theme-primary))" }
|
|
3068
3068
|
}, {
|
|
3069
|
-
default: a(() => [e(
|
|
3069
|
+
default: a(() => [e(Pt, {
|
|
3070
3070
|
class: "text-white",
|
|
3071
3071
|
color: "primary",
|
|
3072
3072
|
dense: "",
|
|
3073
3073
|
elevation: "0"
|
|
3074
3074
|
}, {
|
|
3075
|
-
default: a(() => [s("div",
|
|
3075
|
+
default: a(() => [s("div", ba, [s("h4", null, u(r(o)("BookingPaymentForcedPayLater.payLaterForced.title")), 1)])]),
|
|
3076
3076
|
_: 1
|
|
3077
|
-
}), e(
|
|
3077
|
+
}), e(O, null, {
|
|
3078
3078
|
default: a(() => [s("h4", null, u(r(o)("BookingPaymentForcedPayLater.payLaterForced.subtitle")), 1)]),
|
|
3079
3079
|
_: 1
|
|
3080
3080
|
})]),
|
|
@@ -3093,18 +3093,18 @@ var va = wt, ga = { class: "d-flex justify-space-between w-100 items-center" },
|
|
|
3093
3093
|
link: a(() => [s("b", null, [s("a", {
|
|
3094
3094
|
href: r(o)("BookingPaymentForcedPayLater.termsURL"),
|
|
3095
3095
|
target: "_blank"
|
|
3096
|
-
}, u(r(o)("BookingPaymentForcedPayLater.termsLinkText")), 9,
|
|
3096
|
+
}, u(r(o)("BookingPaymentForcedPayLater.termsLinkText")), 9, pa)])]),
|
|
3097
3097
|
_: 1
|
|
3098
3098
|
})]),
|
|
3099
3099
|
_: 1
|
|
3100
3100
|
}, 8, ["modelValue"]),
|
|
3101
|
-
e(
|
|
3101
|
+
e(H, {
|
|
3102
3102
|
align: "end",
|
|
3103
3103
|
class: "flex-column flex-sm-row",
|
|
3104
3104
|
"no-gutters": ""
|
|
3105
3105
|
}, {
|
|
3106
|
-
default: a(() => [e(
|
|
3107
|
-
default: a(() => [e(
|
|
3106
|
+
default: a(() => [e(R, { class: "d-flex flex-column flex-sm-row align-center mt-sm-0 mt-4 mb-1 justify-end" }, {
|
|
3107
|
+
default: a(() => [e(Q, {
|
|
3108
3108
|
class: "w-sm-auto w-100",
|
|
3109
3109
|
color: "primary",
|
|
3110
3110
|
disabled: t.isLoading || !n.value,
|
|
@@ -3112,7 +3112,7 @@ var va = wt, ga = { class: "d-flex justify-space-between w-100 items-center" },
|
|
|
3112
3112
|
variant: "outlined",
|
|
3113
3113
|
onClick: v[2] || (v[2] = (i) => m("payment:later"))
|
|
3114
3114
|
}, {
|
|
3115
|
-
default: a(() => [s("span",
|
|
3115
|
+
default: a(() => [s("span", ka, u(r(o)("BookingPaymentForcedPayLater.completeBookingLaterForced")), 1)]),
|
|
3116
3116
|
_: 1
|
|
3117
3117
|
}, 8, ["disabled", "loading"])]),
|
|
3118
3118
|
_: 1
|
|
@@ -3122,7 +3122,7 @@ var va = wt, ga = { class: "d-flex justify-space-between w-100 items-center" },
|
|
|
3122
3122
|
], 64));
|
|
3123
3123
|
}
|
|
3124
3124
|
});
|
|
3125
|
-
function
|
|
3125
|
+
function kt(t) {
|
|
3126
3126
|
const l = t;
|
|
3127
3127
|
l.__i18n = l.__i18n || [], l.__i18n.push({
|
|
3128
3128
|
locale: "",
|
|
@@ -3529,78 +3529,81 @@ function pt(t) {
|
|
|
3529
3529
|
}
|
|
3530
3530
|
});
|
|
3531
3531
|
}
|
|
3532
|
-
typeof
|
|
3533
|
-
var
|
|
3532
|
+
typeof kt == "function" && kt(Tt);
|
|
3533
|
+
var ha = Tt, fa = { class: "text-green" }, ya = { key: 1 }, Ca = { class: "d-flex align-center px-2" }, _t = /* @__PURE__ */ X({
|
|
3534
3534
|
__name: "BookingPaymentForm",
|
|
3535
3535
|
props: {
|
|
3536
|
-
features: { default: () =>
|
|
3536
|
+
features: { default: () => ia },
|
|
3537
3537
|
token: {}
|
|
3538
3538
|
},
|
|
3539
3539
|
emits: ["payment:success"],
|
|
3540
3540
|
setup(t, { emit: l }) {
|
|
3541
|
-
const o = t, n = l, { t: m } =
|
|
3542
|
-
|
|
3541
|
+
const o = t, n = l, { t: m } = ot(), { bookingApiClient: b } = ft(), { eventBus: v } = Nt(), i = h(null), w = h(""), f = h(null), C = h(null), L = h(null), U = h(!1), x = h(!1), F = h(!1), V = h(!1), z = h(!1), $ = h(null), N = I(() => i.value?.payLater === rt.Forced), p = I(() => {
|
|
3542
|
+
if (i.value?.payLater)
|
|
3543
|
+
return [rt.Enabled, rt.Forced].includes(i.value.payLater);
|
|
3544
|
+
}), d = I(() => Yt(i.value?.paymentMethods ?? [], "name")), G = I(() => d.value[P.CreditCard] && d.value[P.CreditCard].payload ? d.value[P.CreditCard].payload : null), D = I(() => i.value ? st(i.value) : null);
|
|
3545
|
+
async function it() {
|
|
3543
3546
|
try {
|
|
3544
3547
|
if (d.value[P.Coupon]?.payload?.amount === i.value?.taxIncludedPrice) {
|
|
3545
|
-
|
|
3548
|
+
x.value = !0, await b.value.bookings.couponCharge({
|
|
3546
3549
|
couponId: d.value[P.Coupon].payload.couponId,
|
|
3547
3550
|
id: i.value.id
|
|
3548
|
-
}),
|
|
3551
|
+
}), F.value = !0, n(j.PaymentSuccess, i.value), v.$emit(j.PaymentSuccess, st(i.value));
|
|
3549
3552
|
return;
|
|
3550
3553
|
}
|
|
3551
|
-
if (
|
|
3552
|
-
|
|
3554
|
+
if (!$.value) return;
|
|
3555
|
+
x.value = !0, $.value.pay();
|
|
3553
3556
|
} catch {
|
|
3554
|
-
|
|
3557
|
+
z.value = !0;
|
|
3555
3558
|
}
|
|
3556
3559
|
}
|
|
3557
3560
|
async function tt() {
|
|
3558
3561
|
try {
|
|
3559
|
-
if (
|
|
3560
|
-
|
|
3562
|
+
if (x.value = !0, !i.value?.id) {
|
|
3563
|
+
x.value = !1;
|
|
3561
3564
|
return;
|
|
3562
3565
|
}
|
|
3563
|
-
await b.value.bookings.paylater({ id: i.value.id }),
|
|
3566
|
+
await b.value.bookings.paylater({ id: i.value.id }), F.value = !0, n(j.PaymentSuccess, i.value), v.$emit(j.PaymentSuccess, st(i.value));
|
|
3564
3567
|
} catch {
|
|
3565
|
-
|
|
3568
|
+
z.value = !0;
|
|
3566
3569
|
} finally {
|
|
3567
|
-
|
|
3570
|
+
x.value = !1;
|
|
3568
3571
|
}
|
|
3569
3572
|
}
|
|
3570
|
-
function
|
|
3571
|
-
L.value = "",
|
|
3573
|
+
function q(A) {
|
|
3574
|
+
L.value = "", x.value = !A;
|
|
3572
3575
|
}
|
|
3573
|
-
async function
|
|
3576
|
+
async function nt() {
|
|
3574
3577
|
try {
|
|
3575
3578
|
if (!o.token) {
|
|
3576
3579
|
i.value = null;
|
|
3577
3580
|
return;
|
|
3578
3581
|
}
|
|
3579
|
-
|
|
3582
|
+
U.value = !0, q(!1), i.value = await b.value.bookings.retrievePublic({ token: o.token }), (!i.value.paymentMethods || !i.value.paymentMethods.length || i.value.paymentMethods.length > 1) && (i.value = await b.value.bookings.updatePaymentMethods({
|
|
3580
3583
|
id: i.value.id,
|
|
3581
3584
|
paymentMethodUpdatePayloadApi: { paymentMethods: [{ name: P.CreditCard }] }
|
|
3582
|
-
})),
|
|
3585
|
+
})), q(!0), U.value = !1;
|
|
3583
3586
|
} catch {
|
|
3584
3587
|
i.value = null;
|
|
3585
3588
|
} finally {
|
|
3586
|
-
|
|
3589
|
+
U.value = !1;
|
|
3587
3590
|
}
|
|
3588
3591
|
}
|
|
3589
|
-
async function
|
|
3592
|
+
async function T() {
|
|
3590
3593
|
try {
|
|
3591
|
-
|
|
3592
|
-
const
|
|
3593
|
-
if (f.value &&
|
|
3594
|
+
C.value = "", V.value = !0;
|
|
3595
|
+
const A = [{ name: P.CreditCard }];
|
|
3596
|
+
if (f.value && A.push({
|
|
3594
3597
|
name: P.Coupon,
|
|
3595
3598
|
payload: { couponId: f.value }
|
|
3596
|
-
}),
|
|
3599
|
+
}), q(!1), i.value && (i.value = await b.value.bookings.updatePaymentMethods({
|
|
3597
3600
|
id: i.value.id,
|
|
3598
|
-
paymentMethodUpdatePayloadApi: { paymentMethods:
|
|
3599
|
-
})),
|
|
3601
|
+
paymentMethodUpdatePayloadApi: { paymentMethods: A }
|
|
3602
|
+
})), q(!0), !d.value[P.Coupon] || !d.value[P.Coupon].payload?.amount) {
|
|
3600
3603
|
if (!f) return;
|
|
3601
|
-
|
|
3604
|
+
w.value = m("BookingPaymentForm.paymentMethods.coupon.error");
|
|
3602
3605
|
} else
|
|
3603
|
-
|
|
3606
|
+
w.value = "", C.value = m("BookingPaymentForm.paymentMethods.coupon.success", { price: Et({
|
|
3604
3607
|
amount: d.value[P.Coupon].payload.amount,
|
|
3605
3608
|
currency: i.value?.currency
|
|
3606
3609
|
}) });
|
|
@@ -3610,103 +3613,103 @@ var ka = _t, ha = { class: "text-green" }, fa = { key: 1 }, ya = { class: "d-fle
|
|
|
3610
3613
|
V.value = !1;
|
|
3611
3614
|
}
|
|
3612
3615
|
}
|
|
3613
|
-
return
|
|
3614
|
-
await
|
|
3615
|
-
}, { immediate: !0 }),
|
|
3616
|
-
|
|
3617
|
-
}), (
|
|
3616
|
+
return dt(() => o.token, async () => {
|
|
3617
|
+
await nt();
|
|
3618
|
+
}, { immediate: !0 }), vt(() => {
|
|
3619
|
+
T();
|
|
3620
|
+
}), (A, _) => F.value ? (c(), y(M, {
|
|
3618
3621
|
key: 0,
|
|
3619
3622
|
elevation: "0"
|
|
3620
3623
|
}, {
|
|
3621
|
-
default: a(() => [e(
|
|
3622
|
-
default: a(() => [e(
|
|
3624
|
+
default: a(() => [e(O, { class: "d-flex flex-column align-center justify-center py-6" }, {
|
|
3625
|
+
default: a(() => [e(J, {
|
|
3623
3626
|
class: "mb-4",
|
|
3624
3627
|
color: "green",
|
|
3625
3628
|
size: "x-large"
|
|
3626
3629
|
}, {
|
|
3627
|
-
default: a(() => [...
|
|
3630
|
+
default: a(() => [..._[4] || (_[4] = [E(" fas fa-check-circle ", -1)])]),
|
|
3628
3631
|
_: 1
|
|
3629
|
-
}), s("h3",
|
|
3632
|
+
}), s("h3", fa, u(r(m)("BookingPaymentForm.paymentSuccess.subtitle")), 1)]),
|
|
3630
3633
|
_: 1
|
|
3631
3634
|
})]),
|
|
3632
3635
|
_: 1
|
|
3633
|
-
})) : i.value && i.value.id ? (c(), S("div",
|
|
3634
|
-
modelValue:
|
|
3635
|
-
"onUpdate:modelValue":
|
|
3636
|
+
})) : i.value && i.value.id ? (c(), S("div", ya, [e(ra, {
|
|
3637
|
+
modelValue: z.value,
|
|
3638
|
+
"onUpdate:modelValue": _[1] || (_[1] = (et) => z.value = et),
|
|
3636
3639
|
color: "error",
|
|
3637
3640
|
location: "top",
|
|
3638
3641
|
timeout: "-1"
|
|
3639
3642
|
}, {
|
|
3640
|
-
actions: a(({ isActive:
|
|
3643
|
+
actions: a(({ isActive: et }) => [e(Q, at({
|
|
3641
3644
|
color: "pink",
|
|
3642
3645
|
variant: "text"
|
|
3643
|
-
},
|
|
3644
|
-
default: a(() => [e(
|
|
3645
|
-
default: a(() => [...
|
|
3646
|
+
}, et, { onClick: _[0] || (_[0] = (Pa) => z.value = !1) }), {
|
|
3647
|
+
default: a(() => [e(J, null, {
|
|
3648
|
+
default: a(() => [..._[5] || (_[5] = [E("fas fa-times", -1)])]),
|
|
3646
3649
|
_: 1
|
|
3647
3650
|
})]),
|
|
3648
3651
|
_: 1
|
|
3649
3652
|
}, 16)]),
|
|
3650
|
-
default: a(() => [
|
|
3653
|
+
default: a(() => [E(u(r(m)("BookingPaymentForm.error")) + " ", 1)]),
|
|
3651
3654
|
_: 1
|
|
3652
|
-
}, 8, ["modelValue"]), e(
|
|
3653
|
-
default: a(() => [t.features.BookingDetails ? (c(),
|
|
3655
|
+
}, 8, ["modelValue"]), e(H, { dense: "" }, {
|
|
3656
|
+
default: a(() => [t.features.BookingDetails ? (c(), y(R, {
|
|
3654
3657
|
key: 0,
|
|
3655
3658
|
cols: "12",
|
|
3656
3659
|
lg: "4",
|
|
3657
3660
|
sm: "4",
|
|
3658
3661
|
xl: "4"
|
|
3659
3662
|
}, {
|
|
3660
|
-
default: a(() => [
|
|
3663
|
+
default: a(() => [D.value ? (c(), y(aa, yt(at({ key: 0 }, D.value)), null, 16)) : B("", !0)]),
|
|
3661
3664
|
_: 1
|
|
3662
|
-
})) :
|
|
3663
|
-
default: a(() => [e(
|
|
3665
|
+
})) : B("", !0), e(R, { class: Zt(t.features.BookingDetails ? "col-sm-8 col-12" : "w-100") }, {
|
|
3666
|
+
default: a(() => [e(M, {
|
|
3664
3667
|
border: "",
|
|
3665
3668
|
elevation: "0"
|
|
3666
3669
|
}, {
|
|
3667
|
-
default: a(() => [t.features.BookingDetails ?
|
|
3670
|
+
default: a(() => [t.features.BookingDetails ? B("", !0) : (c(), y(Pt, {
|
|
3668
3671
|
key: 0,
|
|
3669
3672
|
color: "primary",
|
|
3670
3673
|
dark: "",
|
|
3671
3674
|
dense: "",
|
|
3672
3675
|
elevation: "0"
|
|
3673
3676
|
}, {
|
|
3674
|
-
default: a(() => [s("h4", null, [
|
|
3677
|
+
default: a(() => [s("h4", null, [E(u(r(m)("BookingPaymentForm.pay")) + ": ", 1), e(Z, {
|
|
3675
3678
|
amount: i.value.taxIncludedPrice,
|
|
3676
3679
|
class: "font-weight-bold",
|
|
3677
3680
|
currency: i.value.currency
|
|
3678
3681
|
}, null, 8, ["amount", "currency"])])]),
|
|
3679
3682
|
_: 1
|
|
3680
|
-
})), e(
|
|
3681
|
-
default: a(() => [
|
|
3683
|
+
})), e(O, null, {
|
|
3684
|
+
default: a(() => [N.value ? (c(), y(ha, {
|
|
3682
3685
|
key: 0,
|
|
3683
|
-
"is-loading":
|
|
3686
|
+
"is-loading": x.value,
|
|
3684
3687
|
"onPayment:later": tt
|
|
3685
|
-
}, null, 8, ["is-loading"])) : (c(), S(W, { key: 1 }, [G.value ? (c(),
|
|
3686
|
-
default: a(() => [e(
|
|
3687
|
-
default: a(() => [e(
|
|
3688
|
+
}, null, 8, ["is-loading"])) : (c(), S(W, { key: 1 }, [G.value ? (c(), y(H, { key: 0 }, {
|
|
3689
|
+
default: a(() => [e(R, null, {
|
|
3690
|
+
default: a(() => [e(ga, {
|
|
3688
3691
|
ref_key: "paymentForm",
|
|
3689
|
-
ref:
|
|
3692
|
+
ref: $,
|
|
3690
3693
|
currency: i.value.currency,
|
|
3691
|
-
"is-loading":
|
|
3694
|
+
"is-loading": x.value,
|
|
3692
3695
|
"is-pay-later-allowed": p.value,
|
|
3693
|
-
"is-pay-later-forced":
|
|
3696
|
+
"is-pay-later-forced": N.value,
|
|
3694
3697
|
"is-updating-payment-methods": V.value,
|
|
3695
3698
|
"payment-methods": Object.values(d.value),
|
|
3696
3699
|
"total-to-pay": i.value.taxIncludedPrice,
|
|
3697
|
-
"onPayment:error":
|
|
3700
|
+
"onPayment:error": _[2] || (_[2] = (et) => x.value = !1),
|
|
3698
3701
|
"onPayment:later": tt,
|
|
3699
|
-
"onPayment:pay":
|
|
3700
|
-
"onPayment:success":
|
|
3701
|
-
|
|
3702
|
+
"onPayment:pay": it,
|
|
3703
|
+
"onPayment:success": _[3] || (_[3] = () => {
|
|
3704
|
+
x.value = !1, F.value = !0, r(v).$emit(r(j).PaymentSuccess, i.value);
|
|
3702
3705
|
})
|
|
3703
3706
|
}, {
|
|
3704
|
-
append: a(() => [s("div",
|
|
3707
|
+
append: a(() => [s("div", Ca, [e(J, {
|
|
3705
3708
|
color: "grey",
|
|
3706
3709
|
size: "small",
|
|
3707
3710
|
start: ""
|
|
3708
3711
|
}, {
|
|
3709
|
-
default: a(() => [...
|
|
3712
|
+
default: a(() => [..._[6] || (_[6] = [E(" fas fa-info-circle ", -1)])]),
|
|
3710
3713
|
_: 1
|
|
3711
3714
|
}), s("small", null, u(r(m)("BookingPaymentForm.subtitle")), 1)])]),
|
|
3712
3715
|
_: 1
|
|
@@ -3722,7 +3725,7 @@ var ka = _t, ha = { class: "text-green" }, fa = { key: 1 }, ya = { class: "d-fle
|
|
|
3722
3725
|
_: 1
|
|
3723
3726
|
})]),
|
|
3724
3727
|
_: 1
|
|
3725
|
-
})) :
|
|
3728
|
+
})) : B("", !0)], 64))]),
|
|
3726
3729
|
_: 1
|
|
3727
3730
|
})]),
|
|
3728
3731
|
_: 1
|
|
@@ -3730,19 +3733,19 @@ var ka = _t, ha = { class: "text-green" }, fa = { key: 1 }, ya = { class: "d-fle
|
|
|
3730
3733
|
_: 1
|
|
3731
3734
|
}, 8, ["class"])]),
|
|
3732
3735
|
_: 1
|
|
3733
|
-
})])) :
|
|
3736
|
+
})])) : U.value ? (c(), y(M, {
|
|
3734
3737
|
key: 2,
|
|
3735
3738
|
class: "mx-auto",
|
|
3736
3739
|
elevation: "0",
|
|
3737
3740
|
height: "350px",
|
|
3738
3741
|
width: "100%"
|
|
3739
3742
|
}, {
|
|
3740
|
-
default: a(() => [e(
|
|
3743
|
+
default: a(() => [e(mt, {
|
|
3741
3744
|
absolute: "",
|
|
3742
3745
|
class: "align-center justify-center",
|
|
3743
3746
|
opacity: "0.1"
|
|
3744
3747
|
}, {
|
|
3745
|
-
default: a(() => [e(
|
|
3748
|
+
default: a(() => [e(re, {
|
|
3746
3749
|
color: "primary",
|
|
3747
3750
|
indeterminate: "",
|
|
3748
3751
|
size: "64"
|
|
@@ -3750,17 +3753,17 @@ var ka = _t, ha = { class: "text-green" }, fa = { key: 1 }, ya = { class: "d-fle
|
|
|
3750
3753
|
_: 1
|
|
3751
3754
|
})]),
|
|
3752
3755
|
_: 1
|
|
3753
|
-
})) : (c(),
|
|
3756
|
+
})) : (c(), y(ne, {
|
|
3754
3757
|
key: 3,
|
|
3755
3758
|
"min-height": "200px"
|
|
3756
3759
|
}, {
|
|
3757
|
-
title: a(() => [
|
|
3758
|
-
description: a(() => [
|
|
3760
|
+
title: a(() => [E(u(r(m)("BookingPaymentForm.bookingNotFound.title")), 1)]),
|
|
3761
|
+
description: a(() => [E(u(r(m)("BookingPaymentForm.bookingNotFound.description")), 1)]),
|
|
3759
3762
|
_: 1
|
|
3760
3763
|
}));
|
|
3761
3764
|
}
|
|
3762
3765
|
});
|
|
3763
|
-
function
|
|
3766
|
+
function ht(t) {
|
|
3764
3767
|
const l = t;
|
|
3765
3768
|
l.__i18n = l.__i18n || [], l.__i18n.push({
|
|
3766
3769
|
locale: "",
|
|
@@ -5140,16 +5143,16 @@ function kt(t) {
|
|
|
5140
5143
|
}
|
|
5141
5144
|
});
|
|
5142
5145
|
}
|
|
5143
|
-
var
|
|
5144
|
-
typeof
|
|
5145
|
-
var
|
|
5146
|
-
Lt("css/revolugo.bookingpaymentform.
|
|
5146
|
+
var Sa = /* @__PURE__ */ St({ default: () => xa });
|
|
5147
|
+
typeof ht == "function" && ht(_t);
|
|
5148
|
+
var xa = /* @__PURE__ */ gt(_t, [["__scopeId", "data-v-c67be99b"]]);
|
|
5149
|
+
Lt("css/revolugo.bookingpaymentform.CekI3oIR.css");
|
|
5147
5150
|
export {
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5151
|
+
aa as a,
|
|
5152
|
+
ia as i,
|
|
5153
|
+
Sa as n,
|
|
5154
|
+
ra as r,
|
|
5155
|
+
xa as t
|
|
5153
5156
|
};
|
|
5154
5157
|
|
|
5155
|
-
//# sourceMappingURL=revolugo.bookingpaymentform.
|
|
5158
|
+
//# sourceMappingURL=revolugo.bookingpaymentform.BJCfZ_Kk.min.js.map
|