@revolugo/elements 5.5.4 → 5.5.5-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/css/fonts.css +1 -0
- package/dist/css/revolugo.bdaterangepicker.DEh20utH.css +1 -0
- package/dist/css/revolugo.bhotelroomsdetails.4XsxkvH7.css +1 -0
- package/dist/css/revolugo.bhotelsearchbar.dwYB1gUC.css +1 -0
- package/dist/css/revolugo.bookingdetailssidebar.tDtXpaIj.css +1 -0
- package/dist/css/revolugo.bphoneinput.Kq_-XiGI.css +1 -0
- package/dist/css/revolugo.bstarrating.nzH7iii4.css +1 -0
- package/dist/css/revolugo.btag.Bdbqb_8a.css +1 -0
- package/dist/css/revolugo.common.BSIsYREh.css +1 -0
- package/dist/css/revolugo.creditcardform.BGPUxkRC.css +1 -0
- package/dist/css/revolugo.creditcardpayment.0MNnDloZ.css +1 -0
- package/dist/css/revolugo.currencypicker.BRYsKdMu.css +1 -0
- package/dist/css/revolugo.fullbookingflow.BHV7_MhK.css +1 -0
- package/dist/css/revolugo.hotel-offer.CEd50mBT.css +1 -0
- package/dist/css/revolugo.hoteldescriptionview.9ofE1uWG.css +1 -0
- package/dist/css/revolugo.hoteloffersmap.0LnWfOu_.css +1 -0
- package/dist/css/revolugo.hoteloffersview.MWOmwEwv.css +1 -0
- package/dist/css/revolugo.hotelroomofferlist.xJfKaofV.css +1 -0
- package/dist/css/revolugo.hotelroomoffersbookingflow.PPEIqHuM.css +1 -0
- package/dist/css/revolugo.hotelroomoffersview.B8Y-2QYc.css +1 -0
- package/dist/css/revolugo.index.BMkl7a3p.css +1 -0
- package/dist/css/revolugo.index.CFW4Oklv.css +1 -0
- package/dist/css/revolugo.index.vq4xksqn.css +1 -0
- package/dist/css/revolugo.langpicker.B3TsOwUq.css +1 -0
- package/dist/css/revolugo.parsed-height.Xzhpy3D3.css +1 -0
- package/dist/css/revolugo.parsed-props.C3kOvm7T.css +1 -0
- package/dist/css/revolugo.prebookform.DBm2B4rS.css +1 -0
- package/dist/css/revolugo.revolugo-config.Dg8v1l3c.css +5 -0
- package/dist/css/revolugo.storybooktoolbar.CVnww0dZ.css +1 -0
- package/dist/css/revolugo.termsandconditions.DV2YnGzG.css +1 -0
- package/dist/css/revolugo.valert.BzcMswjJ.css +1 -0
- package/dist/css/revolugo.vautocomplete.OMX_yAge.css +1 -0
- package/dist/css/revolugo.vbadge.CiK_DSkI.css +1 -0
- package/dist/css/revolugo.vbtn.By46MJOU.css +1 -0
- package/dist/css/revolugo.vcard.DmB53ZNL.css +1 -0
- package/dist/css/revolugo.vchip.BdAdP6lC.css +1 -0
- package/dist/css/revolugo.vdialog.C02Cvwul.css +1 -0
- package/dist/css/revolugo.vexpansionpanelheader.B2eKo8Lo.css +1 -0
- package/dist/css/revolugo.vinput.SfhpXNi0.css +1 -0
- package/dist/css/revolugo.vitemgroup.EbHsz8Rr.css +1 -0
- package/dist/css/revolugo.vlistitem.BzwNE1YK.css +1 -0
- package/dist/css/revolugo.vmenu.BKE0IO4q.css +1 -0
- package/dist/css/revolugo.vselect.DljSkk6y.css +1 -0
- package/dist/css/revolugo.vsheet.Dtdo2Rps.css +1 -0
- package/dist/css/revolugo.vskeletonloader.BpGoaAbZ.css +1 -0
- package/dist/css/revolugo.vslidegroup.D5TIbmaw.css +1 -0
- package/dist/css/revolugo.vsnackbar.DTAXPYkr.css +1 -0
- package/dist/css/revolugo.vtextfield.BliJY6uv.css +1 -0
- package/dist/css/revolugo.vtoolbar.DQsezjcM.css +1 -0
- package/dist/css/revolugo.vtooltip.B_oOB9pj.css +1 -0
- package/dist/css/revolugo.vuetify.BpIoHlAi.css +1 -0
- package/dist/css/revolugo.webcomponentwrapper.BRZRuwZ0.css +1 -0
- package/dist/index.es.min.js +14187 -0
- package/dist/index.es.min.js.map +1 -0
- package/dist/index.min.js +65 -1
- package/dist/index.min.js.map +1 -0
- package/dist/revolugo.banktransferdetails.CbUr_kHV.min.js +105 -0
- package/dist/revolugo.bbreakfastoptionbadge.DND6bz7J.min.js +62 -0
- package/dist/revolugo.bdaterangepicker.DwXWu7y_.min.js +1351 -0
- package/dist/revolugo.bformattedamount.D4xCyTcv.min.js +82 -0
- package/dist/revolugo.bhotelroomsdetails.8yoNt-KM.min.js +213 -0
- package/dist/revolugo.bhotelsearchbar.Dm84Zzn5.min.js +446 -0
- package/dist/revolugo.booking-api-client.Du5goV4n.min.js +7672 -0
- package/dist/revolugo.bookingdetailssidebar.AR2t6BHt.min.js +28 -0
- package/dist/revolugo.bookingdetailssidebar.DY-YF6-6.min.js +242 -0
- package/dist/revolugo.bookingmanager.KlY3kOLa.min.js +404 -0
- package/dist/revolugo.bphoneinput.Qc_UlGIL.min.js +1935 -0
- package/dist/revolugo.bpricesummaryskeleton.BAzD7raP.min.js +47 -0
- package/dist/revolugo.breakpoint-service.CwWRBzMQ.min.js +65 -0
- package/dist/revolugo.bstarrating.B-PUaeDZ.min.js +173 -0
- package/dist/revolugo.btag.DD6eI8G4.min.js +68 -0
- package/dist/revolugo.cancellationpoliciesbadge.BTwUNf7h.min.js +76 -0
- package/dist/revolugo.cancellationpoliciesbadge.DA_X-aEr.min.js +28 -0
- package/dist/revolugo.cancellationpolicieslist.BweNL3Zh.min.js +316 -0
- package/dist/revolugo.cancellationpolicieslist.XF-OE6mm.min.js +28 -0
- package/dist/revolugo.common.D4pnatuu.min.js +34 -0
- package/dist/revolugo.creditcardform.B0ZACL31.min.js +28 -0
- package/dist/revolugo.creditcardform.Bmpk72uW.min.js +2047 -0
- package/dist/revolugo.creditcardpayment.DDAlWRp0.min.js +28 -0
- package/dist/revolugo.creditcardpayment.Dnr2WHEp.min.js +288 -0
- package/dist/revolugo.currencypicker.BxCxn4FE.min.js +122 -0
- package/dist/revolugo.currencypickerbtn.D8fIyw_x.min.js +121 -0
- package/dist/revolugo.currencypickerbtn.DoEdhphF.min.js +28 -0
- package/dist/revolugo.dialog-attach.05NirMLv.min.js +27 -0
- package/dist/revolugo.en-us.BP-UxrRq.min.js +1171 -0
- package/dist/revolugo.event-bus.CYLYgD3Y.min.js +37 -0
- package/dist/revolugo.fastbookingflow.BZEpfirs.min.js +37 -0
- package/dist/revolugo.fr-fr.CF_knN5b.min.js +1177 -0
- package/dist/revolugo.fullbookingflow.CBjvuZLP.min.js +239 -0
- package/dist/revolugo.hotel-offer.JfkzuZyf.min.js +608 -0
- package/dist/revolugo.hoteldescriptionview.C9XjZcdv.min.js +2174 -0
- package/dist/revolugo.hoteldescriptionview.wVex0D_a.min.js +28 -0
- package/dist/revolugo.hotelofferitemlayout.BrulX_X4.min.js +64 -0
- package/dist/revolugo.hotelofferlist.CcITpxz4.min.js +28 -0
- package/dist/revolugo.hotelofferlist.DJ8B6BpP.min.js +3450 -0
- package/dist/revolugo.hotelofferrequestcreator.CiNpCqiH.min.js +225 -0
- package/dist/revolugo.hoteloffersearchmenu.CnVV4htq.min.js +54 -0
- package/dist/revolugo.hoteloffersmap.C1N5EZ0d.min.js +28 -0
- package/dist/revolugo.hoteloffersmap.gHrmWy8H.min.js +8737 -0
- package/dist/revolugo.hoteloffersview.BCvASsRk.min.js +157 -0
- package/dist/revolugo.hoteloffersview.DfbOUEie.min.js +28 -0
- package/dist/revolugo.hotelroomofferlist.BS32D6Sj.min.js +28 -0
- package/dist/revolugo.hotelroomofferlist.BltT6U-0.min.js +1336 -0
- package/dist/revolugo.hotelroomofferrequestcreator.CbISsNdn.min.js +225 -0
- package/dist/revolugo.hotelroomoffersbookingflow.BuMF7NU2.min.js +679 -0
- package/dist/revolugo.hotelroomoffersearchmenu.Bsg_FnJp.min.js +29 -0
- package/dist/revolugo.hotelroomoffersearchmenu.DqVQ1oKf.min.js +38 -0
- package/dist/revolugo.hotelroomoffersview.4NC1efEJ.min.js +124 -0
- package/dist/revolugo.hotelroomoffersview.DfmNWUJQ.min.js +28 -0
- package/dist/revolugo.i18n.DF3U6VhD.min.js +11263 -0
- package/dist/revolugo.index.A8BtC3Nq.min.js +322 -0
- package/dist/revolugo.index.BEcLuOn-.min.js +281 -0
- package/dist/revolugo.index.BUUmIL9V.min.js +68 -0
- package/dist/revolugo.index.BwvidmNu.min.js +128 -0
- package/dist/revolugo.index.CQC_pZJn.min.js +15 -0
- package/dist/revolugo.index.CcRooNT6.min.js +270 -0
- package/dist/revolugo.index.Cn5YTzy6.min.js +43 -0
- package/dist/revolugo.index.Cn8GgIte.min.js +142 -0
- package/dist/revolugo.index.DTZNxZHf.min.js +9 -0
- package/dist/revolugo.index.DfBSjbYu.min.js +42 -0
- package/dist/revolugo.index.GdvjICDR.min.js +13 -0
- package/dist/revolugo.index.owaXEEBO.min.js +9 -0
- package/dist/revolugo.index.sTY3URQu.min.js +390 -0
- package/dist/revolugo.index.tY8MFB9m.min.js +161 -0
- package/dist/revolugo.langpicker.yr7wtnZM.min.js +103 -0
- package/dist/revolugo.langpickerbtn.4XN3tTRs.min.js +28 -0
- package/dist/revolugo.langpickerbtn.BHhYWwCD.min.js +111 -0
- package/dist/revolugo.localizedformat.Wox_NThB.min.js +47 -0
- package/dist/revolugo.min.js +260 -7
- package/dist/revolugo.parsed-height.DRzHRmIo.min.js +2492 -0
- package/dist/revolugo.parsed-props.B_x1Ob04.min.js +95 -0
- package/dist/revolugo.prebookform.CtTKl-QM.min.js +483 -0
- package/dist/revolugo.prebookform.DMX0_9De.min.js +28 -0
- package/dist/revolugo.revolugo-config.Bs_HF2Eu.min.js +1707 -0
- package/dist/revolugo.roominglisteditor.BpdFoplV.min.js +201 -0
- package/dist/revolugo.roominglisteditor.DxmH3gRW.min.js +28 -0
- package/dist/revolugo.sentry.Bc7mnscp.min.js +12146 -0
- package/dist/revolugo.store.DPvvq0Rz.min.js +1718 -0
- package/dist/revolugo.storybooktoolbar.C_y4Nf-_.min.js +300 -0
- package/dist/revolugo.termsandconditions.BIHsJaCg.min.js +27 -0
- package/dist/revolugo.termsandconditions.D2C1eZuC.min.js +162 -0
- package/dist/revolugo.typed-mixins.B_7wrdes.min.js +8 -0
- package/dist/revolugo.valert.CMzvSBzo.min.js +194 -0
- package/dist/revolugo.vautocomplete.C-5OLCEj.min.js +255 -0
- package/dist/revolugo.vbadge.xQq9jf9W.min.js +172 -0
- package/dist/revolugo.vbtn.CP4AezmI.min.js +286 -0
- package/dist/revolugo.vcard.Cy5A2_pV.min.js +80 -0
- package/dist/revolugo.vchip.BcIMSmkF.min.js +157 -0
- package/dist/revolugo.vdialog.BAexO59W.min.js +341 -0
- package/dist/revolugo.vexpansionpanelheader.D9ENep1_.min.js +263 -0
- package/dist/revolugo.vform.oeljK9Tu.min.js +98 -0
- package/dist/revolugo.vinput.CDpcVlCU.min.js +509 -0
- package/dist/revolugo.vitemgroup.DyY_3pfW.min.js +168 -0
- package/dist/revolugo.vlistitem.CrJxrMpP.min.js +204 -0
- package/dist/revolugo.vmenu.CtMz9t6s.min.js +349 -0
- package/dist/revolugo.vselect.UcLk_jBF.min.js +859 -0
- package/dist/revolugo.vsheet.C1tyLBBd.min.js +120 -0
- package/dist/revolugo.vskeletonloader.CMMMMGzf.min.js +172 -0
- package/dist/revolugo.vslidegroup.BXF0FLd1.min.js +650 -0
- package/dist/revolugo.vsnackbar.xIK_rBpB.min.js +178 -0
- package/dist/revolugo.vtextfield.D2qOTbGQ.min.js +438 -0
- package/dist/revolugo.vtoolbar.D3HhuFrj.min.js +364 -0
- package/dist/revolugo.vtooltip.B7xN8tzo.min.js +168 -0
- package/dist/revolugo.vuetify.yojzDMFk.min.js +865 -0
- package/dist/revolugo.watch-list.cR2ZEwBA.min.js +44 -0
- package/dist/revolugo.webcomponentwrapper.-wnE6sKX.min.js +777 -0
- package/package.json +25 -32
- package/dist/css/revolugo.0.min.css +0 -5
- package/dist/css/revolugo.1.min.css +0 -1
- package/dist/css/revolugo.11.min.css +0 -1
- package/dist/css/revolugo.12.min.css +0 -1
- package/dist/css/revolugo.13.min.css +0 -1
- package/dist/css/revolugo.14.min.css +0 -1
- package/dist/css/revolugo.15.min.css +0 -1
- package/dist/css/revolugo.16.min.css +0 -1
- package/dist/css/revolugo.17.min.css +0 -1
- package/dist/css/revolugo.18.min.css +0 -1
- package/dist/css/revolugo.19.min.css +0 -1
- package/dist/css/revolugo.2.min.css +0 -1
- package/dist/css/revolugo.20.min.css +0 -1
- package/dist/css/revolugo.21.min.css +0 -1
- package/dist/css/revolugo.22.min.css +0 -1
- package/dist/css/revolugo.23.min.css +0 -1
- package/dist/css/revolugo.24.min.css +0 -1
- package/dist/css/revolugo.25.min.css +0 -1
- package/dist/css/revolugo.26.min.css +0 -1
- package/dist/css/revolugo.27.min.css +0 -1
- package/dist/css/revolugo.28.min.css +0 -1
- package/dist/css/revolugo.29.min.css +0 -1
- package/dist/css/revolugo.30.min.css +0 -1
- package/dist/css/revolugo.31.min.css +0 -1
- package/dist/css/revolugo.32.min.css +0 -1
- package/dist/css/revolugo.33.min.css +0 -1
- package/dist/css/revolugo.34.min.css +0 -1
- package/dist/css/revolugo.35.min.css +0 -1
- package/dist/css/revolugo.4.min.css +0 -1
- package/dist/css/revolugo.5.min.css +0 -1
- package/dist/css/revolugo.6.min.css +0 -1
- package/dist/css/revolugo.7.min.css +0 -1
- package/dist/css/revolugo.fonts.min.css +0 -1
- package/dist/fonts/amenities.2aad1d12.woff +0 -0
- package/dist/fonts/amenities.9adae269.ttf +0 -0
- package/dist/fonts/amenities.a9bf50f8.svg +0 -42
- package/dist/fonts/amenities.bd6b3a4a.eot +0 -0
- package/dist/fonts/beds.2b8e38c8.svg +0 -12
- package/dist/img/apst.c1092975.png +0 -0
- package/dist/img/apst.ec7669f2.png +0 -0
- package/dist/img/atout-france.72107e30.png +0 -0
- package/dist/img/atout-france.df038f22.png +0 -0
- package/dist/img/revolugo.179c459d.png +0 -0
- package/dist/img/revolugo.e0879dcc.png +0 -0
- package/dist/img/stripe.405543e2.png +0 -0
- package/dist/img/stripe.c3e16f9f.png +0 -0
- package/dist/revolugo.0.min.js +0 -18
- package/dist/revolugo.1.min.js +0 -1
- package/dist/revolugo.11.min.js +0 -134
- package/dist/revolugo.12.min.js +0 -19
- package/dist/revolugo.13.min.js +0 -14
- package/dist/revolugo.14.min.js +0 -14
- package/dist/revolugo.15.min.js +0 -19
- package/dist/revolugo.16.min.js +0 -139
- package/dist/revolugo.17.min.js +0 -14
- package/dist/revolugo.18.min.js +0 -14
- package/dist/revolugo.19.min.js +0 -1
- package/dist/revolugo.2.min.js +0 -1
- package/dist/revolugo.20.min.js +0 -1
- package/dist/revolugo.21.min.js +0 -1
- package/dist/revolugo.22.min.js +0 -116
- package/dist/revolugo.23.min.js +0 -1
- package/dist/revolugo.24.min.js +0 -1
- package/dist/revolugo.25.min.js +0 -1
- package/dist/revolugo.26.min.js +0 -1
- package/dist/revolugo.27.min.js +0 -1
- package/dist/revolugo.28.min.js +0 -1
- package/dist/revolugo.29.min.js +0 -116
- package/dist/revolugo.30.min.js +0 -1
- package/dist/revolugo.31.min.js +0 -1
- package/dist/revolugo.32.min.js +0 -1
- package/dist/revolugo.33.min.js +0 -1
- package/dist/revolugo.34.min.js +0 -1
- package/dist/revolugo.35.min.js +0 -1
- package/dist/revolugo.36.min.js +0 -1
- package/dist/revolugo.37.min.js +0 -1
- package/dist/revolugo.4.min.js +0 -1
- package/dist/revolugo.5.min.js +0 -1
- package/dist/revolugo.6.min.js +0 -1
- package/dist/revolugo.7.min.js +0 -1
- package/dist/revolugo.en-US.min.js +0 -1
- package/dist/revolugo.fonts.min.js +0 -1
- package/dist/revolugo.fr-FR.min.js +0 -1
@@ -0,0 +1,28 @@
|
|
1
|
+
import { V as n } from "./revolugo.i18n.DF3U6VhD.min.js";
|
2
|
+
import { C as t, c as a } from "./revolugo.creditcardpayment.Dnr2WHEp.min.js";
|
3
|
+
import { W as o, n as s } from "./revolugo.webcomponentwrapper.-wnE6sKX.min.js";
|
4
|
+
const p = n.extend({
|
5
|
+
components: {
|
6
|
+
CreditCardPayment: t,
|
7
|
+
WebComponentWrapper: o
|
8
|
+
},
|
9
|
+
props: a
|
10
|
+
});
|
11
|
+
var m = function() {
|
12
|
+
var e = this, r = e._self._c;
|
13
|
+
return e._self._setupProxy, r("web-component-wrapper", [r("credit-card-payment", e._b({}, "credit-card-payment", e.$props, !1))], 1);
|
14
|
+
}, c = [], d = /* @__PURE__ */ s(
|
15
|
+
p,
|
16
|
+
m,
|
17
|
+
c,
|
18
|
+
!1,
|
19
|
+
null,
|
20
|
+
null,
|
21
|
+
null,
|
22
|
+
null
|
23
|
+
);
|
24
|
+
const C = d.exports;
|
25
|
+
export {
|
26
|
+
C as default
|
27
|
+
};
|
28
|
+
//# sourceMappingURL=revolugo.creditcardpayment.DDAlWRp0.min.js.map
|
@@ -0,0 +1,288 @@
|
|
1
|
+
import { E as u } from "./revolugo.revolugo-config.Bs_HF2Eu.min.js";
|
2
|
+
import { B as S, f as x } from "./revolugo.bformattedamount.D4xCyTcv.min.js";
|
3
|
+
import { n as h, P as n } from "./revolugo.booking-api-client.Du5goV4n.min.js";
|
4
|
+
import { V as F, B as w } from "./revolugo.i18n.DF3U6VhD.min.js";
|
5
|
+
import { B as A } from "./revolugo.bookingdetailssidebar.DY-YF6-6.min.js";
|
6
|
+
import { C as $, _ as T } from "./revolugo.creditcardform.Bmpk72uW.min.js";
|
7
|
+
import { B as I, l as B, n as U, _ as d, a as i, d as R } from "./revolugo.webcomponentwrapper.-wnE6sKX.min.js";
|
8
|
+
import { p as N } from "./revolugo.parsed-props.B_x1Ob04.min.js";
|
9
|
+
import { w as D } from "./revolugo.watch-list.cR2ZEwBA.min.js";
|
10
|
+
import { _ as m } from "./revolugo.vcard.Cy5A2_pV.min.js";
|
11
|
+
import { V as y, a as O } from "./revolugo.index.owaXEEBO.min.js";
|
12
|
+
import { _ as c } from "./revolugo.index.sTY3URQu.min.js";
|
13
|
+
import { _ as V } from "./revolugo.vsnackbar.xIK_rBpB.min.js";
|
14
|
+
import { _ as p, a as Y } from "./revolugo.vbtn.CP4AezmI.min.js";
|
15
|
+
import { _ as E, a as j } from "./revolugo.vtoolbar.D3HhuFrj.min.js";
|
16
|
+
import { _ as G, a as z, b as H, c as K } from "./revolugo.vexpansionpanelheader.D9ENep1_.min.js";
|
17
|
+
import { _ as Z } from "./revolugo.vtextfield.D2qOTbGQ.min.js";
|
18
|
+
function L(o) {
|
19
|
+
try {
|
20
|
+
if (typeof document < "u") {
|
21
|
+
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
22
|
+
sheets: [],
|
23
|
+
components: []
|
24
|
+
};
|
25
|
+
const t = import.meta.url, e = t.slice(0, t.lastIndexOf("/") + 1) + o;
|
26
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(e);
|
27
|
+
for (const s of REVOLUGO_ELEMENTS_STYLES.components)
|
28
|
+
s(e);
|
29
|
+
if (o.indexOf("fonts") >= 0) {
|
30
|
+
const s = document.createElement("link");
|
31
|
+
s.rel = "stylesheet", linK.href = e, document.head.appendChild(s);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
} catch (t) {
|
35
|
+
console.error("[revolugo-elements] ", t);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
const q = {
|
39
|
+
BookingDetails: !0
|
40
|
+
}, J = {
|
41
|
+
features: {
|
42
|
+
default: () => q,
|
43
|
+
type: [Object, String]
|
44
|
+
},
|
45
|
+
token: { type: String }
|
46
|
+
}, Q = F.extend({
|
47
|
+
name: "CreditCardPayment",
|
48
|
+
components: {
|
49
|
+
BErrorOverlay: I,
|
50
|
+
BFormattedAmount: S,
|
51
|
+
BookingDetailsSidebar: A,
|
52
|
+
CreditCardForm: $
|
53
|
+
},
|
54
|
+
mixins: [
|
55
|
+
B("components/RevolugoElements/CreditCardPayment"),
|
56
|
+
N({
|
57
|
+
fallbackValue: {},
|
58
|
+
propsName: "features"
|
59
|
+
}),
|
60
|
+
D(["$i18n.locale", "bookingApiClient"], "retrieveBooking", {
|
61
|
+
immediate: !0
|
62
|
+
})
|
63
|
+
],
|
64
|
+
props: J,
|
65
|
+
data: () => ({
|
66
|
+
booking: void 0,
|
67
|
+
couponSuccessMessage: "",
|
68
|
+
couponErrorMessage: "",
|
69
|
+
couponId: null,
|
70
|
+
error: "",
|
71
|
+
isFetchingBooking: !1,
|
72
|
+
isCreditCardFormMounted: !1,
|
73
|
+
isPaymentLoading: !1,
|
74
|
+
isPaymentSuccess: !1,
|
75
|
+
isTermsAccepted: !1,
|
76
|
+
isCreditCardFormCompleted: !1,
|
77
|
+
isUpdatingPaymentMethods: !1,
|
78
|
+
snackbar: !1,
|
79
|
+
termsError: !1
|
80
|
+
}),
|
81
|
+
computed: {
|
82
|
+
paymentMethods() {
|
83
|
+
var o;
|
84
|
+
return w(((o = this.booking) == null ? void 0 : o.paymentMethods) ?? [], "name");
|
85
|
+
},
|
86
|
+
payLaterAllowed() {
|
87
|
+
var o, t;
|
88
|
+
return ((o = this.booking) == null ? void 0 : o.payLater) && [
|
89
|
+
h.Enabled,
|
90
|
+
h.Forced
|
91
|
+
].includes((t = this.booking) == null ? void 0 : t.payLater);
|
92
|
+
},
|
93
|
+
isPayLaterForced() {
|
94
|
+
var o;
|
95
|
+
return ((o = this.booking) == null ? void 0 : o.payLater) === h.Forced;
|
96
|
+
},
|
97
|
+
termsAndConditionsUrl() {
|
98
|
+
return this.$t("CreditCardPayment.termsURL");
|
99
|
+
}
|
100
|
+
},
|
101
|
+
watch: {
|
102
|
+
couponId() {
|
103
|
+
this.couponErrorMessage = "";
|
104
|
+
},
|
105
|
+
token: {
|
106
|
+
immediate: !0,
|
107
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
108
|
+
handler() {
|
109
|
+
return this.retrieveBooking();
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
methods: {
|
114
|
+
onCreditCardFormChange(o) {
|
115
|
+
this.isCreditCardFormCompleted = o, this.error = "";
|
116
|
+
},
|
117
|
+
onCreditCardFormSuccess() {
|
118
|
+
this.isPaymentLoading = !1, this.isPaymentSuccess = !0, this.$eventBus.$emit(u.PAYMENT_SUCCESS, this.booking);
|
119
|
+
},
|
120
|
+
onCreditCardFormError(o) {
|
121
|
+
this.error = o, this.isPaymentLoading = !1;
|
122
|
+
},
|
123
|
+
onCouponIdCleared() {
|
124
|
+
var o, t;
|
125
|
+
this.couponId = null, (t = (o = this.paymentMethods[n.Coupon]) == null ? void 0 : o.payload) != null && t.amount && this.updatePaymentMethods();
|
126
|
+
},
|
127
|
+
async payLater() {
|
128
|
+
var o, t;
|
129
|
+
try {
|
130
|
+
if (this.isPaymentLoading = !0, !this.isTermsAccepted) {
|
131
|
+
this.termsError = !0, this.isPaymentLoading = !1;
|
132
|
+
return;
|
133
|
+
}
|
134
|
+
if (!((o = this.booking) != null && o.id)) {
|
135
|
+
this.isPaymentLoading = !1;
|
136
|
+
return;
|
137
|
+
}
|
138
|
+
await ((t = this.bookingApiClient) == null ? void 0 : t.bookings.paylater({
|
139
|
+
id: this.booking.id
|
140
|
+
})), this.isPaymentSuccess = !0, this.$eventBus.$emit(u.PAYMENT_SUCCESS, this.booking);
|
141
|
+
} catch {
|
142
|
+
this.snackbar = !0;
|
143
|
+
} finally {
|
144
|
+
this.isPaymentLoading = !1;
|
145
|
+
}
|
146
|
+
},
|
147
|
+
async pay() {
|
148
|
+
var t, e, s, r;
|
149
|
+
if (((e = (t = this.paymentMethods[n.Coupon]) == null ? void 0 : t.payload) == null ? void 0 : e.amount) === ((s = this.booking) == null ? void 0 : s.taxIncludedPrice)) {
|
150
|
+
this.isPaymentLoading = !0, await ((r = this.bookingApiClient) == null ? void 0 : r.bookings.couponCharge({
|
151
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
152
|
+
id: this.booking.id,
|
153
|
+
couponId: (
|
154
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
155
|
+
this.paymentMethods[n.Coupon].payload.couponId
|
156
|
+
)
|
157
|
+
})), this.isPaymentSuccess = !0, this.$eventBus.$emit(u.PAYMENT_SUCCESS, this.booking);
|
158
|
+
return;
|
159
|
+
}
|
160
|
+
if (!this.$refs.payment)
|
161
|
+
return;
|
162
|
+
this.isPaymentLoading = !0, this.$refs.payment.pay();
|
163
|
+
},
|
164
|
+
async retrieveBooking() {
|
165
|
+
try {
|
166
|
+
if (!this.token) {
|
167
|
+
this.booking = void 0;
|
168
|
+
return;
|
169
|
+
}
|
170
|
+
this.isFetchingBooking = !0, this.toggleCreditCardForm(!1), this.booking = await this.bookingApiClient.bookings.retrievePublic({
|
171
|
+
token: this.token
|
172
|
+
}), (!this.booking.paymentMethods || !this.booking.paymentMethods.length || this.booking.paymentMethods.length > 1) && (this.booking = await this.bookingApiClient.bookings.updatePaymentMethods({
|
173
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
174
|
+
id: this.booking.id,
|
175
|
+
body: {
|
176
|
+
paymentMethods: [
|
177
|
+
{
|
178
|
+
name: n.CreditCard
|
179
|
+
}
|
180
|
+
]
|
181
|
+
}
|
182
|
+
})), this.toggleCreditCardForm(!0), this.isFetchingBooking = !1;
|
183
|
+
} catch {
|
184
|
+
this.booking = void 0;
|
185
|
+
} finally {
|
186
|
+
this.isFetchingBooking = !1;
|
187
|
+
}
|
188
|
+
},
|
189
|
+
toggleCreditCardForm(o) {
|
190
|
+
this.error = "", this.isCreditCardFormMounted = o, this.isPaymentLoading = !o;
|
191
|
+
},
|
192
|
+
async updatePaymentMethods() {
|
193
|
+
var o, t, e, s, r;
|
194
|
+
try {
|
195
|
+
this.couponSuccessMessage = "", this.isUpdatingPaymentMethods = !0;
|
196
|
+
const l = [
|
197
|
+
{
|
198
|
+
name: n.CreditCard
|
199
|
+
}
|
200
|
+
];
|
201
|
+
if (this.couponId && l.push({
|
202
|
+
name: n.Coupon,
|
203
|
+
payload: {
|
204
|
+
couponId: this.couponId
|
205
|
+
}
|
206
|
+
}), this.toggleCreditCardForm(!1), this.booking = await ((o = this.bookingApiClient) == null ? void 0 : o.bookings.updatePaymentMethods({
|
207
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
208
|
+
id: this.booking.id,
|
209
|
+
body: {
|
210
|
+
paymentMethods: l
|
211
|
+
}
|
212
|
+
})), this.toggleCreditCardForm(!0), !this.paymentMethods[n.Coupon] || !((t = this.paymentMethods[n.Coupon].payload) != null && t.amount)) {
|
213
|
+
if (!this.couponId)
|
214
|
+
return;
|
215
|
+
this.couponErrorMessage = this.$t(
|
216
|
+
"CreditCardPayment.paymentMethods.coupon.error"
|
217
|
+
);
|
218
|
+
} else
|
219
|
+
((e = this.paymentMethods[n.Coupon].payload) == null ? void 0 : e.amount) === ((s = this.booking) == null ? void 0 : s.taxIncludedPrice) && (this.isCreditCardFormCompleted = !0), this.couponErrorMessage = "", this.couponSuccessMessage = this.$t(
|
220
|
+
"CreditCardPayment.paymentMethods.coupon.success",
|
221
|
+
{
|
222
|
+
price: x({
|
223
|
+
amount: (
|
224
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
225
|
+
this.paymentMethods[n.Coupon].payload.amount
|
226
|
+
),
|
227
|
+
currency: (r = this.booking) == null ? void 0 : r.currency
|
228
|
+
})
|
229
|
+
}
|
230
|
+
);
|
231
|
+
} catch {
|
232
|
+
this.booking = void 0;
|
233
|
+
} finally {
|
234
|
+
this.isUpdatingPaymentMethods = !1;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
}
|
238
|
+
});
|
239
|
+
var W = function() {
|
240
|
+
var s, r, l, g, C, _, f, k, b, P, M, v;
|
241
|
+
var t = this, e = t._self._c;
|
242
|
+
return t._self._setupProxy, t.isPaymentSuccess ? e(m, { attrs: { elevation: "0" } }, [e(y, { staticClass: "py-6 d-flex flex-column justify-center align-center" }, [e(c, { staticClass: "mb-4", attrs: { color: "green", "x-large": "" } }, [t._v(" fa-check-circle ")]), e("h3", { staticClass: "green--text" }, [t._v(" " + t._s(t.$t("CreditCardPayment.paymentSuccess.subtitle")) + " ")])], 1)], 1) : t.booking && t.booking.id ? e("div", [e(V, { attrs: { color: "error", timeout: "-1", top: "" }, scopedSlots: t._u([{ key: "action", fn: function({ attrs: a }) {
|
243
|
+
return [e(p, t._b({ attrs: { color: "pink", text: "" }, on: { click: function(et) {
|
244
|
+
t.snackbar = !1;
|
245
|
+
} } }, "v-btn", a, !1), [e(c, [t._v(" fa-times ")])], 1)];
|
246
|
+
} }]), model: { value: t.snackbar, callback: function(a) {
|
247
|
+
t.snackbar = a;
|
248
|
+
}, expression: "snackbar" } }, [t._v(" " + t._s(t.$t("CreditCardPayment.error")) + " ")]), e(d, { attrs: { dense: "" } }, [t.parsedFeatures.BookingDetails ? e(i, { attrs: { cols: "12", lg: "4", sm: "4", xl: "4" } }, [e("booking-details-sidebar", t._b({}, "booking-details-sidebar", t.booking, !1))], 1) : t._e(), e(i, { class: t.parsedFeatures.BookingDetails ? "col-sm-8 col-12" : "w-100" }, [e(m, { attrs: { elevation: "0", outlined: "" } }, [t.parsedFeatures.BookingDetails ? t._e() : e(E, { attrs: { color: "primary", dark: "", dense: "", elevation: "0" } }, [e("h4", [t._v(" " + t._s(t.$t("CreditCardPayment.pay")) + ": "), e("b-formatted-amount", { staticClass: "font-weight-bold", attrs: { amount: t.booking.taxIncludedPrice, currency: t.booking.currency } })], 1)]), e(y, [t.isPayLaterForced ? e(m, { style: {
|
249
|
+
borderColor: "var(--v-primary-base)"
|
250
|
+
}, attrs: { elevation: "0", outlined: "" } }, [e(E, { staticClass: "white--text", attrs: { color: "primary", dense: "", elevation: "0" } }, [e("div", { staticClass: "w-100 d-flex justify-space-between items-center" }, [e("h4", [t._v(t._s(t.$t("CreditCardPayment.payLaterForced.title")))])])]), e(y, [e("h4", [t._v(t._s(t.$t("CreditCardPayment.payLaterForced.subtitle")))])])], 1) : [e("credit-card-form", { ref: "payment", attrs: { amount: ((r = (s = t.paymentMethods.CREDIT_CARD) == null ? void 0 : s.payload) == null ? void 0 : r.amount) || 0, currency: t.booking.currency, disabled: !((g = (l = t.paymentMethods.CREDIT_CARD) == null ? void 0 : l.payload) != null && g.amount) || !((_ = (C = t.paymentMethods.CREDIT_CARD) == null ? void 0 : C.payload) != null && _.token), loading: !t.isCreditCardFormMounted, token: (k = (f = t.paymentMethods.CREDIT_CARD) == null ? void 0 : f.payload) == null ? void 0 : k.token }, on: { change: t.onCreditCardFormChange, error: t.onCreditCardFormError, success: t.onCreditCardFormSuccess } }), e(d, [e(i, { attrs: { cols: 12 } }, [e(m, { staticClass: "mt-3 color-grey", attrs: { elevation: "0", outlined: "" } }, [e(G, { attrs: { accordion: "", readonly: !!(t.couponId && ((P = (b = t.paymentMethods.COUPON) == null ? void 0 : b.payload) != null && P.amount) || t.isUpdatingPaymentMethods) } }, [e(z, { on: { change: function(a) {
|
251
|
+
t.couponId = null;
|
252
|
+
} } }, [e(H, { attrs: { color: "grey lighten-4", dense: "", "hide-actions": !!(t.couponId && ((v = (M = t.paymentMethods.COUPON) == null ? void 0 : M.payload) != null && v.amount) || t.isUpdatingPaymentMethods) } }, [e("h4", [e(c, { attrs: { left: "" } }, [t._v(" fa-ticket ")]), t._v(" " + t._s(t.$t("CreditCardPayment.paymentMethods.coupon.title")) + " ")], 1)]), e(K, [e(d, { staticClass: "mt-6 mb-0", attrs: { "no-gutters": "" } }, [e(i, { attrs: { cols: "12", lg: "10" } }, [e(Z, { attrs: { clearable: "", dense: "", disabled: t.isUpdatingPaymentMethods, "error-messages": t.couponErrorMessage, label: t.$t(
|
253
|
+
"CreditCardPayment.paymentMethods.coupon.subtitle"
|
254
|
+
), outlined: "", "success-messages": t.couponSuccessMessage }, on: { "click:clear": t.onCouponIdCleared }, model: { value: t.couponId, callback: function(a) {
|
255
|
+
t.couponId = a;
|
256
|
+
}, expression: "couponId" } })], 1), e(i, { staticClass: "text-right text-lg-left", attrs: { cols: "12", lg: "2" } }, [e(p, { staticClass: "ml-0 ml-md-2", attrs: { color: "primary", depressed: "", disabled: !t.couponId || t.couponId === t.booking, large: "", loading: t.isUpdatingPaymentMethods, plain: "", text: "" }, on: { click: t.updatePaymentMethods } }, [t._v(" " + t._s(t.$t("CreditCardPayment.paymentMethods.coupon.button")) + " ")])], 1)], 1)], 1)], 1)], 1)], 1)], 1)], 1), e(d, [e(i, [e(c, { attrs: { left: "" } }, [t._v(" fa-info-circle ")]), e("small", [t._v(t._s(t.$t("CreditCardPayment.subtitle")))])], 1)], 1)], e(d, { staticClass: "mt-2" }, [e(i, [e(T, { ref: "testing", staticClass: "mt-0", attrs: { error: t.termsError && !t.isTermsAccepted }, scopedSlots: t._u([{ key: "label", fn: function() {
|
257
|
+
return [e("span", { domProps: { innerHTML: t._s(
|
258
|
+
t.$t("CreditCardPayment.termsAndConditions", {
|
259
|
+
url: t.termsAndConditionsUrl
|
260
|
+
})
|
261
|
+
) }, on: { click: function(a) {
|
262
|
+
a.stopPropagation();
|
263
|
+
} } })];
|
264
|
+
}, proxy: !0 }]), model: { value: t.isTermsAccepted, callback: function(a) {
|
265
|
+
t.isTermsAccepted = a;
|
266
|
+
}, expression: "isTermsAccepted" } })], 1)], 1)], 2), e(O, { staticClass: "mt-n6" }, [e(d, { staticClass: "flex-column flex-sm-row", attrs: { align: "end", "no-gutters": "" } }, [e(i, [e("small", { staticClass: "ml-1 text-caption" }, [t._v(t._s(t.$t("CreditCardPayment.acceptedPaymentMethods")))]), e(j, { staticClass: "mt-n1", attrs: { contain: "", height: "45", src: "https://revolugo.s3.eu-west-3.amazonaws.com/payment-methods.png", width: "240" } })], 1), e(i, { staticClass: "d-flex justify-end flex-column flex-sm-row mb-1 align-center mt-4 mt-sm-0" }, [t.isPayLaterForced ? [e(p, { staticClass: "w-100 w-sm-auto", attrs: { color: "success", depressed: "", disabled: t.isPaymentLoading || !t.isTermsAccepted, loading: t.isPaymentLoading, outlined: "" }, on: { click: t.payLater } }, [e("span", { staticClass: "mr-1" }, [t._v(" " + t._s(t.$t("CreditCardPayment.completeBookingNow")) + " ")])])] : t.payLaterAllowed ? [e(p, { staticClass: "w-100 w-sm-auto", attrs: { color: "primary", depressed: "", disabled: t.isPaymentLoading || !t.isTermsAccepted, loading: t.isPaymentLoading, outlined: "" }, on: { click: t.payLater } }, [e(c, { attrs: { left: "" } }, [t._v(" fa-clock ")]), e("span", { staticClass: "mr-1" }, [t._v(" " + t._s(t.$t("CreditCardPayment.completeBookingLater")) + " ")]), t.isPayLaterForced ? t._e() : e("b-formatted-amount", { staticClass: "font-weight-bold", attrs: { amount: t.booking.taxIncludedPrice, currency: t.booking.currency } })], 1), e("span", { staticClass: "mx-2" }, [t._v(" " + t._s(t.$t("CreditCardPayment.or")) + " ")])] : t._e(), t.isPayLaterForced ? t._e() : e(p, { staticClass: "w-100 w-sm-auto", attrs: { color: "primary", depressed: "", disabled: t.isPaymentLoading || !t.isTermsAccepted || !t.isCreditCardFormCompleted || t.isUpdatingPaymentMethods, loading: t.isPaymentLoading }, on: { click: t.pay } }, [e(c, { attrs: { left: "" } }, [t._v(" fa-lock ")]), e("span", { staticClass: "mr-1" }, [t._v(t._s(t.$t("CreditCardPayment.completeBookingNow")))])], 1)], 2)], 1)], 1)], 1)], 1)], 1)], 1) : t.isFetchingBooking ? e(m, { staticClass: "mx-auto", attrs: { elevation: "0", height: "350px", width: "100%" } }, [e(R, { staticClass: "align-center justify-center", attrs: { absolute: "", opacity: "0.1" } }, [e(Y, { attrs: { color: "primary", indeterminate: "", size: "64" } })], 1)], 1) : e("b-error-overlay", { attrs: { "min-height": "200px" }, scopedSlots: t._u([{ key: "title", fn: function() {
|
267
|
+
return [t._v(" " + t._s(t.$t("CreditCardPayment.bookingNotFound.title")) + " ")];
|
268
|
+
}, proxy: !0 }, { key: "description", fn: function() {
|
269
|
+
return [t._v(" " + t._s(t.$t("CreditCardPayment.bookingNotFound.description")) + " ")];
|
270
|
+
}, proxy: !0 }]) });
|
271
|
+
}, X = [], tt = /* @__PURE__ */ U(
|
272
|
+
Q,
|
273
|
+
W,
|
274
|
+
X,
|
275
|
+
!1,
|
276
|
+
null,
|
277
|
+
"5355c38a",
|
278
|
+
null,
|
279
|
+
null
|
280
|
+
);
|
281
|
+
const ft = tt.exports;
|
282
|
+
L("css/revolugo.creditcardpayment.0MNnDloZ.css");
|
283
|
+
export {
|
284
|
+
ft as C,
|
285
|
+
q as a,
|
286
|
+
J as c
|
287
|
+
};
|
288
|
+
//# sourceMappingURL=revolugo.creditcardpayment.Dnr2WHEp.min.js.map
|
@@ -0,0 +1,122 @@
|
|
1
|
+
import { E as _ } from "./revolugo.revolugo-config.Bs_HF2Eu.min.js";
|
2
|
+
import { V as m, C as p, A as i } from "./revolugo.i18n.DF3U6VhD.min.js";
|
3
|
+
import { b as d } from "./revolugo.breakpoint-service.CwWRBzMQ.min.js";
|
4
|
+
import { d as h } from "./revolugo.dialog-attach.05NirMLv.min.js";
|
5
|
+
import { l as C, n as f, _ as r, a as o } from "./revolugo.webcomponentwrapper.-wnE6sKX.min.js";
|
6
|
+
import { _ as g, a as c } from "./revolugo.vlistitem.CrJxrMpP.min.js";
|
7
|
+
import "./revolugo.index.DTZNxZHf.min.js";
|
8
|
+
import { _ as E } from "./revolugo.vtextfield.D2qOTbGQ.min.js";
|
9
|
+
function u(n) {
|
10
|
+
try {
|
11
|
+
if (typeof document < "u") {
|
12
|
+
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
13
|
+
sheets: [],
|
14
|
+
components: []
|
15
|
+
};
|
16
|
+
const t = import.meta.url, e = t.slice(0, t.lastIndexOf("/") + 1) + n;
|
17
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(e);
|
18
|
+
for (const s of REVOLUGO_ELEMENTS_STYLES.components)
|
19
|
+
s(e);
|
20
|
+
if (n.indexOf("fonts") >= 0) {
|
21
|
+
const s = document.createElement("link");
|
22
|
+
s.rel = "stylesheet", linK.href = e, document.head.appendChild(s);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
} catch (t) {
|
26
|
+
console.error("[revolugo-elements] ", t);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
const L = [
|
30
|
+
"EUR",
|
31
|
+
"USD",
|
32
|
+
"GBP",
|
33
|
+
"CAD",
|
34
|
+
"AED",
|
35
|
+
"INR",
|
36
|
+
"AUD",
|
37
|
+
"JPY"
|
38
|
+
], v = m.extend({
|
39
|
+
name: "CurrencyPicker",
|
40
|
+
mixins: [
|
41
|
+
C("components/RevolugoElements/CurrencyPicker"),
|
42
|
+
d,
|
43
|
+
h
|
44
|
+
],
|
45
|
+
data() {
|
46
|
+
return {
|
47
|
+
searchInput: "",
|
48
|
+
dialog: !1
|
49
|
+
};
|
50
|
+
},
|
51
|
+
computed: {
|
52
|
+
countries() {
|
53
|
+
return Object.values(p);
|
54
|
+
},
|
55
|
+
currencies() {
|
56
|
+
return i;
|
57
|
+
},
|
58
|
+
filteredList() {
|
59
|
+
if (!this.searchInput)
|
60
|
+
return Object.values(this.currencies);
|
61
|
+
const n = this.countries.filter(
|
62
|
+
(e) => e.name.toLowerCase().includes(this.searchInput.toLowerCase()) || e.iso2.toLowerCase().includes(this.searchInput.toLowerCase())
|
63
|
+
), t = new Set(
|
64
|
+
n.map((e) => e.currency)
|
65
|
+
);
|
66
|
+
return Object.values(this.currencies).filter(
|
67
|
+
(e) => e.code.toLowerCase().includes(this.searchInput.toLowerCase()) || e.name.toLowerCase().includes(this.searchInput.toLowerCase()) || e.symbol.toLowerCase().includes(this.searchInput.toLowerCase()) || t.has(e.code)
|
68
|
+
);
|
69
|
+
},
|
70
|
+
commonCurrencies() {
|
71
|
+
const n = new Set(L);
|
72
|
+
return Object.values(this.currencies).filter(
|
73
|
+
(t) => n.has(t.code)
|
74
|
+
);
|
75
|
+
},
|
76
|
+
selectedCurrency() {
|
77
|
+
return this.config.currency ?? i.EUR.code;
|
78
|
+
}
|
79
|
+
},
|
80
|
+
watch: {
|
81
|
+
dialog(n) {
|
82
|
+
n || (this.searchInput = "");
|
83
|
+
},
|
84
|
+
selectedCurrency() {
|
85
|
+
this.$eventBus.$emit(_.CURRENCY_UPDATED, this.config.currency);
|
86
|
+
}
|
87
|
+
},
|
88
|
+
methods: {
|
89
|
+
onItemClick(n) {
|
90
|
+
this.dialog = !1, this.updateCurrency(n.code), this.searchInput = "";
|
91
|
+
}
|
92
|
+
}
|
93
|
+
});
|
94
|
+
var w = function() {
|
95
|
+
var t = this, e = t._self._c;
|
96
|
+
return t._self._setupProxy, e(g, { staticClass: "pa-4" }, [e(r, { attrs: { "no-gutters": "" } }, [e(o, { attrs: { cols: "auto" } }, [e("p", { staticClass: "mb-2 font-weight-bold" }, [t._v(" " + t._s(t.$t("CurrencyPicker.preferred")) + " ")])]), e(o, { staticClass: "text-right" }, [t._t("toolbar-right")], 2)], 1), e(r, { attrs: { "no-gutters": "" } }, t._l(t.commonCurrencies, function(s, a) {
|
97
|
+
return e(o, { key: a, attrs: { cols: "12", md: "4", sm: "6" } }, [e(c, { staticClass: "text-caption", class: s.code === t.config.currency ? "grey lighten-4" : null, attrs: { link: "" }, on: { click: function(l) {
|
98
|
+
return t.onItemClick(s);
|
99
|
+
} } }, [e(r, { attrs: { "no-gutters": "" } }, [e(o, { attrs: { cols: "4", sm: "3" } }, [e("span", { staticClass: "font-weight-bold primary--text" }, [t._v(" " + t._s(s.code) + " "), s.code !== s.symbol ? [t._v(" - " + t._s(s.symbol) + " ")] : t._e()], 2)]), e(o, { staticClass: "currency-name" }, [e("span", {}, [t._v(" " + t._s(s.name) + " ")])])], 1)], 1)], 1);
|
100
|
+
}), 1), e(r, { staticClass: "mt-3", attrs: { align: "center", "no-gutters": "" } }, [e(o, { attrs: { cols: "12", lg: "4" } }, [e("span", { staticClass: "font-weight-bold" }, [t._v(" " + t._s(t.$t("CurrencyPicker.all")) + " ")])]), e(o, { attrs: { cols: "12", lg: "8" } }, [e(E, { staticClass: "mt-2", attrs: { dense: "", "error-messages": t.filteredList.length === 0 ? [t.$t("CurrencyPicker.notFound")] : [], label: "Search", outlined: "" }, model: { value: t.searchInput, callback: function(s) {
|
101
|
+
t.searchInput = s;
|
102
|
+
}, expression: "searchInput" } })], 1)], 1), e(r, { staticClass: "scrollable", attrs: { "no-gutters": "" } }, t._l(t.filteredList, function(s, a) {
|
103
|
+
return e(o, { key: a, attrs: { cols: "12", md: "4", sm: "6" } }, [e(c, { staticClass: "text-caption", class: s.code === t.config.currency ? "grey lighten-4" : null, attrs: { link: "" }, on: { click: function(l) {
|
104
|
+
return t.onItemClick(s);
|
105
|
+
} } }, [e(r, { attrs: { "no-gutters": "" } }, [e(o, { attrs: { cols: "4", sm: "3" } }, [e("span", { staticClass: "font-weight-bold primary--text" }, [t._v(" " + t._s(s.code) + " "), s.code !== s.symbol ? [t._v(" - " + t._s(s.symbol) + " ")] : t._e()], 2)]), e(o, { staticClass: "currency-name no-break ml-1" }, [t._v(" " + t._s(s.name) + " ")])], 1)], 1)], 1);
|
106
|
+
}), 1)], 1);
|
107
|
+
}, b = [], S = /* @__PURE__ */ f(
|
108
|
+
v,
|
109
|
+
w,
|
110
|
+
b,
|
111
|
+
!1,
|
112
|
+
null,
|
113
|
+
"973f0bca",
|
114
|
+
null,
|
115
|
+
null
|
116
|
+
);
|
117
|
+
const N = S.exports;
|
118
|
+
u("css/revolugo.currencypicker.BRYsKdMu.css");
|
119
|
+
export {
|
120
|
+
N as C
|
121
|
+
};
|
122
|
+
//# sourceMappingURL=revolugo.currencypicker.BxCxn4FE.min.js.map
|
@@ -0,0 +1,121 @@
|
|
1
|
+
import { V as t, A as l, k as u } from "./revolugo.i18n.DF3U6VhD.min.js";
|
2
|
+
import { C as _ } from "./revolugo.currencypicker.BxCxn4FE.min.js";
|
3
|
+
import { d as c } from "./revolugo.dialog-attach.05NirMLv.min.js";
|
4
|
+
import { n as a } from "./revolugo.webcomponentwrapper.-wnE6sKX.min.js";
|
5
|
+
import { _ as p } from "./revolugo.common.D4pnatuu.min.js";
|
6
|
+
import { _ as m } from "./revolugo.vdialog.BAexO59W.min.js";
|
7
|
+
import { _ as i } from "./revolugo.vbtn.CP4AezmI.min.js";
|
8
|
+
import { _ as f } from "./revolugo.index.sTY3URQu.min.js";
|
9
|
+
const d = {
|
10
|
+
color: {
|
11
|
+
type: String,
|
12
|
+
default: "primary"
|
13
|
+
},
|
14
|
+
dialog: {
|
15
|
+
type: Boolean,
|
16
|
+
default: !1
|
17
|
+
},
|
18
|
+
elevation: {
|
19
|
+
type: [String, Number],
|
20
|
+
default: 0
|
21
|
+
},
|
22
|
+
size: {
|
23
|
+
type: [String, Number],
|
24
|
+
default: 0
|
25
|
+
}
|
26
|
+
}, g = {
|
27
|
+
value: {
|
28
|
+
type: Boolean
|
29
|
+
}
|
30
|
+
}, y = t.extend({
|
31
|
+
name: "CurrencyPickerDialog",
|
32
|
+
components: {
|
33
|
+
CurrencyPicker: _
|
34
|
+
},
|
35
|
+
mixins: [c],
|
36
|
+
props: g,
|
37
|
+
data() {
|
38
|
+
return {
|
39
|
+
open: this.value
|
40
|
+
};
|
41
|
+
},
|
42
|
+
watch: {
|
43
|
+
"config.currency"(n) {
|
44
|
+
n && (this.open = !1);
|
45
|
+
},
|
46
|
+
open(n) {
|
47
|
+
this.$emit("input", n);
|
48
|
+
},
|
49
|
+
value(n) {
|
50
|
+
this.open = n;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
});
|
54
|
+
var k = function() {
|
55
|
+
var e = this, r = e._self._c;
|
56
|
+
return e._self._setupProxy, r(m, { attrs: { attach: e.$dialogAttach, "max-width": "850" }, model: { value: e.open, callback: function(o) {
|
57
|
+
e.open = o;
|
58
|
+
}, expression: "open" } }, [r("currency-picker", { scopedSlots: e._u([{ key: "toolbar-right", fn: function() {
|
59
|
+
return [r(p), r(i, { staticClass: "mx-1", attrs: { fab: "", icon: "", text: "", "x-small": "" }, on: { click: function(o) {
|
60
|
+
e.open = !1;
|
61
|
+
} } }, [r(f, { attrs: { color: "dark" } }, [e._v(" fa-times ")])], 1)];
|
62
|
+
}, proxy: !0 }]) })], 1);
|
63
|
+
}, v = [], P = /* @__PURE__ */ a(
|
64
|
+
y,
|
65
|
+
k,
|
66
|
+
v,
|
67
|
+
!1,
|
68
|
+
null,
|
69
|
+
null,
|
70
|
+
null,
|
71
|
+
null
|
72
|
+
);
|
73
|
+
const x = P.exports, h = t.extend({
|
74
|
+
name: "LangPickerBtn",
|
75
|
+
components: {
|
76
|
+
CurrencyPickerDialog: x
|
77
|
+
},
|
78
|
+
mixins: [c],
|
79
|
+
props: d,
|
80
|
+
data() {
|
81
|
+
return {
|
82
|
+
currencyPickerDialog: !1
|
83
|
+
};
|
84
|
+
},
|
85
|
+
computed: {
|
86
|
+
currencies() {
|
87
|
+
return l;
|
88
|
+
},
|
89
|
+
locales() {
|
90
|
+
return u;
|
91
|
+
}
|
92
|
+
},
|
93
|
+
methods: {
|
94
|
+
onClick() {
|
95
|
+
this.dialog && (this.currencyPickerDialog = !0);
|
96
|
+
}
|
97
|
+
}
|
98
|
+
});
|
99
|
+
var C = function() {
|
100
|
+
var o;
|
101
|
+
var e = this, r = e._self._c;
|
102
|
+
return e._self._setupProxy, r(i, { class: `elevation-${e.elevation}`, attrs: { color: e.color, dark: "", fab: "", "x-small": "" }, on: { click: e.onClick } }, [r("b", [e._v(e._s((o = e.currencies[e.config.currency]) == null ? void 0 : o.code))]), e.dialog ? r("currency-picker-dialog", { model: { value: e.currencyPickerDialog, callback: function(s) {
|
103
|
+
e.currencyPickerDialog = s;
|
104
|
+
}, expression: "currencyPickerDialog" } }) : e._e()], 1);
|
105
|
+
}, D = [], b = /* @__PURE__ */ a(
|
106
|
+
h,
|
107
|
+
C,
|
108
|
+
D,
|
109
|
+
!1,
|
110
|
+
null,
|
111
|
+
null,
|
112
|
+
null,
|
113
|
+
null
|
114
|
+
);
|
115
|
+
const T = b.exports;
|
116
|
+
export {
|
117
|
+
T as C,
|
118
|
+
x as a,
|
119
|
+
d as c
|
120
|
+
};
|
121
|
+
//# sourceMappingURL=revolugo.currencypickerbtn.D8fIyw_x.min.js.map
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { V as n } from "./revolugo.i18n.DF3U6VhD.min.js";
|
2
|
+
import { C as c, c as o } from "./revolugo.currencypickerbtn.D8fIyw_x.min.js";
|
3
|
+
import { W as t, n as s } from "./revolugo.webcomponentwrapper.-wnE6sKX.min.js";
|
4
|
+
const p = n.extend({
|
5
|
+
components: {
|
6
|
+
CurrencyPickerBtn: c,
|
7
|
+
WebComponentWrapper: t
|
8
|
+
},
|
9
|
+
props: o
|
10
|
+
});
|
11
|
+
var a = function() {
|
12
|
+
var r = this, e = r._self._c;
|
13
|
+
return r._self._setupProxy, e("web-component-wrapper", [e("currency-picker-btn", r._b({}, "currency-picker-btn", r.$props, !1))], 1);
|
14
|
+
}, _ = [], u = /* @__PURE__ */ s(
|
15
|
+
p,
|
16
|
+
a,
|
17
|
+
_,
|
18
|
+
!1,
|
19
|
+
null,
|
20
|
+
null,
|
21
|
+
null,
|
22
|
+
null
|
23
|
+
);
|
24
|
+
const y = u.exports;
|
25
|
+
export {
|
26
|
+
y as default
|
27
|
+
};
|
28
|
+
//# sourceMappingURL=revolugo.currencypickerbtn.DoEdhphF.min.js.map
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { V as t } from "./revolugo.i18n.DF3U6VhD.min.js";
|
2
|
+
const i = t.extend({
|
3
|
+
data() {
|
4
|
+
return {
|
5
|
+
dialogAttach: null
|
6
|
+
};
|
7
|
+
},
|
8
|
+
computed: {
|
9
|
+
$dialogAttach() {
|
10
|
+
return this.dialogAttach;
|
11
|
+
}
|
12
|
+
},
|
13
|
+
mounted() {
|
14
|
+
this.$nextTick(() => {
|
15
|
+
this.dialogAttachInit();
|
16
|
+
});
|
17
|
+
},
|
18
|
+
methods: {
|
19
|
+
dialogAttachInit() {
|
20
|
+
this.dialogAttach = this.$root.$el.querySelector(".v-application");
|
21
|
+
}
|
22
|
+
}
|
23
|
+
});
|
24
|
+
export {
|
25
|
+
i as d
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=revolugo.dialog-attach.05NirMLv.min.js.map
|