@revolugo/elements 6.8.2-beta.3 → 6.8.2-beta.31
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.bdaterangepicker.D1e8WHUE.css +1 -0
- package/dist/css/revolugo.bhoteloffersfilterbar.C1Hvm7FH.css +1 -0
- package/dist/css/revolugo.bimagecarousel.DFlgQMzq.css +1 -0
- package/dist/css/{revolugo.btag.g-q3eChG.css → revolugo.btag.CYbY5J61.css} +1 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.CzUQOfdk.css +1 -0
- package/dist/css/{revolugo.hoteldescriptionview.CqUUU1fv.css → revolugo.hoteldescriptionview.BQ3adGPS.css} +1 -1
- package/dist/css/revolugo.hoteloffersview.CL1wiz4I.css +1 -0
- package/dist/css/{revolugo.hotelroomofferlist.DI_s2G5c.css → revolugo.hotelroomofferlist.CCKyS5V3.css} +1 -1
- package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
- package/dist/css/revolugo.langpickerbtn.DTsRMVL8.css +1 -0
- package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
- package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
- package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
- package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
- package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
- package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
- package/dist/css/{revolugo.vtooltip.O8QDYs1J.css → revolugo.vslidegroup.ECiLCEE9.css} +1 -1
- package/dist/css/{revolugo.vsnackbar.Cj7AcupY.css → revolugo.vsnackbar.CCfuo3ao.css} +1 -1
- package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
- package/dist/css/{revolugo.webcomponentwrapper.DRCKFwuk.css → revolugo.webcomponentwrapper.BNxGrktU.css} +2 -2
- package/dist/index.es.min.js +1954 -2161
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo._baseiteratee.Bxmf2YBQ.min.js +247 -0
- package/dist/{revolugo.banktransferdetails.B2ekby51.min.js → revolugo.banktransferdetails.SE8NErTw.min.js} +9 -9
- package/dist/revolugo.bdaterangepicker.Bs2pH95_.min.js +8328 -0
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DIWYLLE_.min.js +145 -0
- package/dist/revolugo.bhoteloffersfilterbar.gHx-XQIq.min.js +4724 -0
- package/dist/{revolugo.bhotelroomsdetails.B_oUGHlu.min.js → revolugo.bhotelroomsdetails.ByB7GIQB.min.js} +87 -90
- package/dist/{revolugo.bhotelsearchbar.CZZ7nrV4.min.js → revolugo.bhotelsearchbar.D4nP_Yeh.min.js} +119 -122
- package/dist/{revolugo.bimagecarousel.B0c13uQA.min.js → revolugo.bimagecarousel.DhA7fKr_.min.js} +178 -188
- package/dist/{revolugo.bookingdetailssidebar.Bs3FC4cg.min.js → revolugo.bookingdetailssidebar.Dd56Wy_U.min.js} +207 -221
- package/dist/{revolugo.bookingdetailssidebar.BGsPcF2v.min.js → revolugo.bookingdetailssidebar.lwfVw3hd.min.js} +4 -4
- package/dist/{revolugo.bookingmanager.CrXALVnI.min.js → revolugo.bookingmanager.CalvEAgz.min.js} +400 -419
- package/dist/{revolugo.bpricesummaryskeleton.8052AuK3.min.js → revolugo.bpricesummaryskeleton.C-X2i-r7.min.js} +4 -4
- package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.DxGtfGu-.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.7yIt37GG.min.js} +148 -157
- package/dist/revolugo.btag.D9PcRagV.min.js +375 -0
- package/dist/revolugo.cancellationpoliciesbadge.BMTMxB84.min.js +198 -0
- package/dist/revolugo.cancellationpoliciesbadge.BS3sdT0j.min.js +28 -0
- package/dist/revolugo.cancellationpolicieslist.BlIDNloM.min.js +25 -0
- package/dist/{revolugo.cancellationpolicieslist.CurBz21i.min.js → revolugo.cancellationpolicieslist.CSKJ_RQf.min.js} +70 -98
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
- package/dist/revolugo.case-transformers.wj5dY-62.min.js +123 -0
- package/dist/{revolugo.creditcardform.D35ZslX6.min.js → revolugo.creditcardform.58FDmjkc.min.js} +4 -4
- package/dist/{revolugo.creditcardform.Zgq-wqLH.min.js → revolugo.creditcardform.DjHXUGaT.min.js} +53 -66
- package/dist/{revolugo.creditcardpayment.BpY-gafO.min.js → revolugo.creditcardpayment.CXIZBeLQ.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.B3gGpWtL.min.js → revolugo.creditcardpayment.eNRvC7VG.min.js} +152 -160
- package/dist/{revolugo.currencypicker.BgqkzwCT.min.js → revolugo.currencypicker.mpJHETlw.min.js} +8 -8
- package/dist/{revolugo.currencypickerbtn.0iqvXHCJ.min.js → revolugo.currencypickerbtn.BT4gJYck.min.js} +42 -45
- package/dist/{revolugo.currencypickerbtn.CL_hu26M.min.js → revolugo.currencypickerbtn.DcaNmmTa.min.js} +4 -4
- package/dist/{revolugo.defaultsdeep.CCR2LAoW.min.js → revolugo.defaultsdeep.B15U6I23.min.js} +32 -32
- package/dist/{revolugo.dialog-attach.t7JTHXax.min.js → revolugo.dialog-attach.Kn52rX5V.min.js} +5 -6
- package/dist/revolugo.dialog-transition.K64Up6o5.min.js +111 -0
- package/dist/{revolugo.fastbookingflow.D5i5QakB.min.js → revolugo.fastbookingflow.DSWy6Ys3.min.js} +4 -4
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
- package/dist/{revolugo.fullbookingflow.B3R9Mi6f.min.js → revolugo.fullbookingflow.BLumv8em.min.js} +122 -128
- package/dist/revolugo.hotel-offer-request.08Q8GaoF.min.js +98 -0
- package/dist/{revolugo.hoteldescriptionview.mr1BBzFi.min.js → revolugo.hoteldescriptionview.BCrpDoH8.min.js} +595 -645
- package/dist/{revolugo.hoteldescriptionview.0om5ATP0.min.js → revolugo.hoteldescriptionview.BOhmeT2B.min.js} +4 -4
- package/dist/{revolugo.hotelofferitemlayout.CpMoPSRH.min.js → revolugo.hotelofferitemlayout.iXqLrvQm.min.js} +8 -8
- package/dist/{revolugo.hotelofferlist.DRdkrfqu.min.js → revolugo.hotelofferlist.0NPXq55P.min.js} +1566 -1703
- package/dist/{revolugo.hotelofferlist.Bb-RsXSl.min.js → revolugo.hotelofferlist.DjUTqa2K.min.js} +4 -4
- package/dist/{revolugo.hotelofferrequestcreator.f8olJbDW.min.js → revolugo.hotelofferrequestcreator.BURjSAMm.min.js} +16 -15
- package/dist/revolugo.hoteloffersearchmenu.Dgq9VEmx.min.js +47 -0
- package/dist/{revolugo.hoteloffersmap.BjjBIhE9.min.js → revolugo.hoteloffersmap.BnqHPNt1.min.js} +570 -582
- package/dist/{revolugo.hoteloffersmap.BleGDfiI.min.js → revolugo.hoteloffersmap.CeDXd2FY.min.js} +4 -4
- package/dist/{revolugo.hoteloffersview.DyWUZJ-a.min.js → revolugo.hoteloffersview.Bih_7gfI.min.js} +121 -124
- package/dist/{revolugo.hoteloffersview.M1WJegEH.min.js → revolugo.hoteloffersview.D_H5aGBv.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.7bwYQgtE.min.js → revolugo.hotelroomofferlist.CXald_sS.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.Dr11epuR.min.js → revolugo.hotelroomofferlist.O0tRAgZS.min.js} +742 -799
- package/dist/{revolugo.hotelroomofferrequestcreator.props.DUhujwnh.min.js → revolugo.hotelroomofferrequestcreator.props.CVwr05si.min.js} +6 -6
- package/dist/{revolugo.hotelroomoffersbookingflow.CKjKX7Kc.min.js → revolugo.hotelroomoffersbookingflow.DGKPam4L.min.js} +332 -357
- package/dist/{revolugo.hotelroomoffersearchmenu.CT-i5FLW.min.js → revolugo.hotelroomoffersearchmenu.DfCU58yl.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersearchmenu.9fzTS1um.min.js → revolugo.hotelroomoffersearchmenu.ElcYfITq.min.js} +34 -36
- package/dist/{revolugo.hotelroomoffersview.D2XUHzuN.min.js → revolugo.hotelroomoffersview.BDUFPxQD.min.js} +68 -71
- package/dist/{revolugo.hotelroomoffersview.iTt3yxQK.min.js → revolugo.hotelroomoffersview.YYq7-L5h.min.js} +4 -4
- package/dist/revolugo.index.bIefP9Di.min.js +1232 -0
- package/dist/{revolugo.index.wc.CNPB8R3P.min.js → revolugo.index.wc.CVg-U7Gx.min.js} +11067 -11546
- package/dist/revolugo.langpicker.Ccsg-lEF.min.js +96 -0
- package/dist/revolugo.langpickerbtn.CM2mTy7Y.min.js +29 -0
- package/dist/revolugo.langpickerbtn.DyJ4Olno.min.js +125 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.pathify.BlrRHScz.min.js +58 -0
- package/dist/{revolugo.prebookform.CDoJAivN.min.js → revolugo.prebookform.B8gqQx-H.min.js} +4 -4
- package/dist/{revolugo.prebookform.DhCYUQX2.min.js → revolugo.prebookform.fhOF5rTL.min.js} +98 -102
- package/dist/{revolugo.roominglisteditor.Dgtcs_-O.min.js → revolugo.roominglisteditor.CB2ZVVIX.min.js} +98 -104
- package/dist/{revolugo.roominglisteditor.DvUmxfal.min.js → revolugo.roominglisteditor.LxMxvTG6.min.js} +4 -4
- package/dist/{revolugo.rounded.Dulx85qq.min.js → revolugo.rounded.CdTdATPg.min.js} +2 -2
- package/dist/{revolugo.ssrboot.CTe1vadS.min.js → revolugo.ssrboot.D-F25G2D.min.js} +4 -4
- package/dist/{revolugo.storybooktoolbar.D182Uwjq.min.js → revolugo.storybooktoolbar.BDi7kzis.min.js} +144 -144
- package/dist/{revolugo.termsandconditions.BSpX2Wim.min.js → revolugo.termsandconditions.DZ84e8oM.min.js} +52 -55
- package/dist/{revolugo.termsandconditions.DvldqW3w.min.js → revolugo.termsandconditions.ILptE4WJ.min.js} +4 -4
- package/dist/revolugo.use-breakpoint-service.DPvOP-XF.min.js +39 -0
- package/dist/revolugo.use-html-element.Dfl5QKN-.min.js +11 -0
- package/dist/revolugo.vautocomplete.DBPq0WdQ.min.js +445 -0
- package/dist/revolugo.vbadge.CU5xYZyW.min.js +112 -0
- package/dist/revolugo.vbtn.X3RP4Z34.min.js +398 -0
- package/dist/revolugo.vcard.DfYEYCIx.min.js +313 -0
- package/dist/revolugo.vcheckboxbtn.DLdpGWrK.min.js +478 -0
- package/dist/revolugo.vdialog.A3glfkAC.min.js +133 -0
- package/dist/{revolugo.vdivider.Cq5RMY7t.min.js → revolugo.vdivider.C8Jprud4.min.js} +3 -3
- package/dist/revolugo.vexpansionpanels.xliCx-5-.min.js +262 -0
- package/dist/revolugo.vform.BYdqOlKN.min.js +46 -0
- package/dist/revolugo.vicon.DGbfBJIw.min.js +105 -0
- package/dist/revolugo.vinput.Bh9hEdMF.min.js +463 -0
- package/dist/revolugo.vlabel.Dx1aNiVc.min.js +48 -0
- package/dist/revolugo.vlist.BMwn1ihP.min.js +1299 -0
- package/dist/revolugo.vmenu.ByEEPO9y.min.js +145 -0
- package/dist/revolugo.vselect.Dzd6zNRa.min.js +660 -0
- package/dist/{revolugo.vsheet.AqixfoVv.min.js → revolugo.vsheet.C7bJI8gr.min.js} +10 -10
- package/dist/{revolugo.vskeletonloader.BUxAIEgD.min.js → revolugo.vskeletonloader.DcVdfRoT.min.js} +57 -58
- package/dist/revolugo.vslidegroup.DrV2UvdN.min.js +325 -0
- package/dist/revolugo.vsnackbar.C_2qY4Nh.min.js +198 -0
- package/dist/revolugo.vspacer.CP17be9N.min.js +7 -0
- package/dist/{revolugo.vtextarea.ByrL6SoY.min.js → revolugo.vtextarea.CPnC6tk4.min.js} +361 -371
- package/dist/revolugo.vtextfield.CnjNadCm.min.js +501 -0
- package/dist/revolugo.vtoolbar.CpgasmNE.min.js +180 -0
- package/dist/revolugo.vtooltip.F6cVVKxe.min.js +89 -0
- package/dist/revolugo.vwindowitem.BZMm5BTu.min.js +317 -0
- package/dist/revolugo.watch-list.Bnuh1CzH.min.js +16 -0
- package/dist/{revolugo.webcomponentwrapper.Ci87Oown.min.js → revolugo.webcomponentwrapper.DY-mO-0c.min.js} +775 -821
- package/package.json +1 -1
- package/dist/css/revolugo.bdaterangepicker.BLYZnPjh.css +0 -1
- package/dist/css/revolugo.bhoteloffersfilterbar.1tLwDxXe.css +0 -1
- package/dist/css/revolugo.bimagecarousel.BvgD1yrr.css +0 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.CwgZ0PpX.css +0 -1
- package/dist/css/revolugo.hoteloffersview.oDGeJCwG.css +0 -1
- package/dist/css/revolugo.index.DQ3Yd6SO.css +0 -1
- package/dist/css/revolugo.langpickerbtn.D2iA6mCb.css +0 -1
- package/dist/css/revolugo.position.7fn84IQ5.css +0 -1
- package/dist/css/revolugo.vbadge.BQrRJ9S0.css +0 -1
- package/dist/css/revolugo.vbtn.BU0YQ6en.css +0 -1
- package/dist/css/revolugo.vcard.B8jNYFn_.css +0 -1
- package/dist/css/revolugo.vcheckboxbtn.BQ05xI0T.css +0 -1
- package/dist/css/revolugo.vlist.BkGS0yqt.css +0 -1
- package/dist/revolugo.bdaterangepicker.CTD21Xkh.min.js +0 -8435
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DFgVEyLr.min.js +0 -61
- package/dist/revolugo.bhoteloffersfilterbar.C677v5nL.min.js +0 -4689
- package/dist/revolugo.btag.BWSoB2pK.min.js +0 -387
- package/dist/revolugo.cancellationpoliciesbadge.B19weMQp.min.js +0 -225
- package/dist/revolugo.cancellationpoliciesbadge.CvnUmIqX.min.js +0 -24
- package/dist/revolugo.cancellationpolicieslist.BsjkpRRW.min.js +0 -24
- package/dist/revolugo.case-transformers.Oo4YCZeL.min.js +0 -123
- package/dist/revolugo.dialog-transition.Cot8jmLN.min.js +0 -114
- package/dist/revolugo.forwardrefs.-bfQnFea.min.js +0 -71
- package/dist/revolugo.hoteloffersearchmenu.CLH7PdDD.min.js +0 -46
- package/dist/revolugo.index.CDltx0TU.min.js +0 -1037
- package/dist/revolugo.index.D5-DO18f.min.js +0 -13
- package/dist/revolugo.langpicker.Df8h8dCw.min.js +0 -107
- package/dist/revolugo.langpickerbtn.CIKlUC4J.min.js +0 -178
- package/dist/revolugo.langpickerbtn.CMIJmkLf.min.js +0 -24
- package/dist/revolugo.position.BFDPs3FP.min.js +0 -322
- package/dist/revolugo.use-breakpoint-service.CEx6DRka.min.js +0 -106
- package/dist/revolugo.vautocomplete.DNxDeH8S.min.js +0 -466
- package/dist/revolugo.vbadge.DqpIeIfj.min.js +0 -118
- package/dist/revolugo.vbtn.DsvUpshD.min.js +0 -417
- package/dist/revolugo.vcard.D1VwO30r.min.js +0 -329
- package/dist/revolugo.vcheckboxbtn.BnbOlneq.min.js +0 -491
- package/dist/revolugo.vdialog.rsw4VlQE.min.js +0 -139
- package/dist/revolugo.vexpansionpanels.Cy-T-RLA.min.js +0 -276
- package/dist/revolugo.vform.CO-9AfdO.min.js +0 -50
- package/dist/revolugo.vinput.DEbpex7C.min.js +0 -477
- package/dist/revolugo.vlabel.CBGmCU1C.min.js +0 -51
- package/dist/revolugo.vlist.BzvP4Aad.min.js +0 -1348
- package/dist/revolugo.vmenu.CIfiL0Ib.min.js +0 -152
- package/dist/revolugo.vselect.CDieig82.min.js +0 -688
- package/dist/revolugo.vsnackbar.D5nwTNfd.min.js +0 -202
- package/dist/revolugo.vspacer.Dv72HR_2.min.js +0 -7
- package/dist/revolugo.vtextfield.Br_yyf1t.min.js +0 -509
- package/dist/revolugo.vtoolbar.VPqzB-yU.min.js +0 -188
- package/dist/revolugo.vtooltip.CI_oDjbQ.min.js +0 -395
- package/dist/revolugo.vwindowitem.IF1zLcjR.min.js +0 -329
- package/dist/revolugo.watch-list.BD0XoO1O.min.js +0 -16
@@ -1,50 +1,35 @@
|
|
1
|
-
import { d as
|
2
|
-
import { k as
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
import { d as p, u as m, G as v, bE as k, s as g, k as C, i as t, g as h, F as x, x as y, K as s, o as n } from "./revolugo.index.wc.CVg-U7Gx.min.js";
|
2
|
+
import { k as L, C as _ } from "./revolugo.case-transformers.wj5dY-62.min.js";
|
3
|
+
const P = ["innerHTML"], B = ["innerHTML"], R = ["innerHTML"], S = ["innerHTML"], T = ["innerHTML"], z = /* @__PURE__ */ p({
|
4
|
+
__name: "CancellationPoliciesList",
|
5
|
+
props: {
|
6
|
+
cancellationPolicies: {},
|
7
|
+
checkInDate: {},
|
8
|
+
initialDate: {},
|
9
|
+
timezone: {}
|
8
10
|
},
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
},
|
13
|
-
initialDate: {
|
14
|
-
type: String
|
15
|
-
},
|
16
|
-
timezone: {
|
17
|
-
required: !0,
|
18
|
-
type: String
|
19
|
-
}
|
20
|
-
}, r = s({
|
21
|
-
computed: {
|
22
|
-
parsedInputCancellationPolicies() {
|
23
|
-
if (typeof this.cancellationPolicies == "string")
|
11
|
+
setup(b) {
|
12
|
+
const { locale: i, t: o } = m(), l = b, f = v(() => {
|
13
|
+
if (typeof l.cancellationPolicies == "string")
|
24
14
|
try {
|
25
|
-
return JSON.parse(
|
15
|
+
return JSON.parse(l.cancellationPolicies);
|
26
16
|
} catch {
|
27
17
|
return [];
|
28
18
|
}
|
29
|
-
return
|
30
|
-
},
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
f
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
)
|
43
|
-
}
|
44
|
-
},
|
45
|
-
methods: {
|
46
|
-
formatDate(e) {
|
47
|
-
return new Date(e).toLocaleTimeString(this.$i18n.locale, {
|
19
|
+
return l.cancellationPolicies;
|
20
|
+
}), r = v(() => f.value.length ? L(
|
21
|
+
k(
|
22
|
+
g({
|
23
|
+
bookingDatetime: l.initialDate || C().format(),
|
24
|
+
cancellationPolicies: f.value,
|
25
|
+
checkInDate: l.checkInDate,
|
26
|
+
timezone: l.timezone
|
27
|
+
})
|
28
|
+
),
|
29
|
+
_.Camel
|
30
|
+
) : []);
|
31
|
+
function a(c) {
|
32
|
+
return new Date(c).toLocaleTimeString(i.value, {
|
48
33
|
day: "numeric",
|
49
34
|
hour: "2-digit",
|
50
35
|
minute: "2-digit",
|
@@ -52,18 +37,48 @@ const g = {
|
|
52
37
|
year: "numeric"
|
53
38
|
});
|
54
39
|
}
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
40
|
+
return (c, w) => (n(), t("ul", null, [
|
41
|
+
(n(!0), t(x, null, y(r.value, (e, u) => (n(), t("section", { key: u }, [
|
42
|
+
u === 0 && e.penaltyPercentage === 0 ? (n(), t("li", {
|
43
|
+
key: 0,
|
44
|
+
class: "text-success-lighten-1",
|
45
|
+
innerHTML: s(o)("CancellationPoliciesList.freeCancellationBefore", {
|
46
|
+
date: a(e.dateTo)
|
47
|
+
})
|
48
|
+
}, null, 8, P)) : e.penaltyPercentage === 0 ? (n(), t("li", {
|
49
|
+
key: 1,
|
50
|
+
class: "text-success-lighten-1",
|
51
|
+
innerHTML: s(o)("CancellationPoliciesList.freeCancellationBetween", {
|
52
|
+
from: a(e.dateFrom),
|
53
|
+
to: a(e.dateTo)
|
54
|
+
})
|
55
|
+
}, null, 8, B)) : e.penaltyPercentage === 100 && u === c.cancellationPolicies.length - 1 ? (n(), t("li", {
|
56
|
+
key: 2,
|
57
|
+
innerHTML: s(o)("CancellationPoliciesList.nonRefundableAfter", {
|
58
|
+
from: a(e.dateFrom)
|
59
|
+
})
|
60
|
+
}, null, 8, R)) : (n(), t("li", {
|
61
|
+
key: 3,
|
62
|
+
innerHTML: s(o)("CancellationPoliciesList.partiallyRefundableCondition", {
|
63
|
+
percentage: e.penaltyPercentage,
|
64
|
+
from: a(e.dateFrom),
|
65
|
+
to: a(e.dateTo)
|
66
|
+
})
|
67
|
+
}, null, 8, S))
|
68
|
+
]))), 128)),
|
69
|
+
r.value[r.value.length - 1].penaltyPercentage !== 100 ? (n(), t("li", {
|
70
|
+
key: 0,
|
71
|
+
innerHTML: s(o)("CancellationPoliciesList.nonRefundableAfter", {
|
72
|
+
from: a(
|
73
|
+
r.value[r.value.length - 1].dateTo
|
74
|
+
)
|
75
|
+
})
|
76
|
+
}, null, 8, T)) : h("", !0)
|
77
|
+
]));
|
63
78
|
}
|
64
79
|
});
|
65
|
-
function
|
66
|
-
const i =
|
80
|
+
function d(b) {
|
81
|
+
const i = b;
|
67
82
|
i.__i18n = i.__i18n || [], i.__i18n.push({
|
68
83
|
locale: "",
|
69
84
|
resource: {
|
@@ -126,51 +141,8 @@ function o(e) {
|
|
126
141
|
}
|
127
142
|
});
|
128
143
|
}
|
129
|
-
|
130
|
-
function z(e, i, B, R, T, D) {
|
131
|
-
return a(), n("ul", null, [
|
132
|
-
(a(!0), n(v, null, p(e.sanitizedCancellationPolicies, (t, l) => (a(), n("section", { key: l }, [
|
133
|
-
l === 0 && t.penaltyPercentage === 0 ? (a(), n("li", {
|
134
|
-
key: 0,
|
135
|
-
class: "text-success-lighten-1",
|
136
|
-
innerHTML: e.t("CancellationPoliciesList.freeCancellationBefore", {
|
137
|
-
date: e.formatDate(t.dateTo)
|
138
|
-
})
|
139
|
-
}, null, 8, h)) : t.penaltyPercentage === 0 ? (a(), n("li", {
|
140
|
-
key: 1,
|
141
|
-
class: "text-success-lighten-1",
|
142
|
-
innerHTML: e.t("CancellationPoliciesList.freeCancellationBetween", {
|
143
|
-
from: e.formatDate(t.dateFrom),
|
144
|
-
to: e.formatDate(t.dateTo)
|
145
|
-
})
|
146
|
-
}, null, 8, y)) : t.penaltyPercentage === 100 && l === e.cancellationPolicies.length - 1 ? (a(), n("li", {
|
147
|
-
key: 2,
|
148
|
-
innerHTML: e.t("CancellationPoliciesList.nonRefundableAfter", {
|
149
|
-
from: e.formatDate(t.dateFrom)
|
150
|
-
})
|
151
|
-
}, null, 8, P)) : (a(), n("li", {
|
152
|
-
key: 3,
|
153
|
-
innerHTML: e.t("CancellationPoliciesList.partiallyRefundableCondition", {
|
154
|
-
percentage: t.penaltyPercentage,
|
155
|
-
from: e.formatDate(t.dateFrom),
|
156
|
-
to: e.formatDate(t.dateTo)
|
157
|
-
})
|
158
|
-
}, null, 8, L))
|
159
|
-
]))), 128)),
|
160
|
-
e.sanitizedCancellationPolicies[e.sanitizedCancellationPolicies.length - 1].penaltyPercentage !== 100 ? (a(), n("li", {
|
161
|
-
key: 0,
|
162
|
-
innerHTML: e.t("CancellationPoliciesList.nonRefundableAfter", {
|
163
|
-
from: e.formatDate(
|
164
|
-
e.sanitizedCancellationPolicies[e.sanitizedCancellationPolicies.length - 1].dateTo
|
165
|
-
)
|
166
|
-
})
|
167
|
-
}, null, 8, S)) : u("", !0)
|
168
|
-
]);
|
169
|
-
}
|
170
|
-
typeof o == "function" && o(r);
|
171
|
-
const H = /* @__PURE__ */ C(r, [["render", z]]);
|
144
|
+
typeof d == "function" && d(z);
|
172
145
|
export {
|
173
|
-
|
174
|
-
g as c
|
146
|
+
z as _
|
175
147
|
};
|
176
|
-
//# sourceMappingURL=revolugo.cancellationpolicieslist.
|
148
|
+
//# sourceMappingURL=revolugo.cancellationpolicieslist.CSKJ_RQf.min.js.map
|
@@ -0,0 +1,21 @@
|
|
1
|
+
const e = {
|
2
|
+
cancellationPolicies: {
|
3
|
+
required: !0,
|
4
|
+
type: [String, Array]
|
5
|
+
},
|
6
|
+
checkInDate: {
|
7
|
+
required: !0,
|
8
|
+
type: String
|
9
|
+
},
|
10
|
+
initialDate: {
|
11
|
+
type: String
|
12
|
+
},
|
13
|
+
timezone: {
|
14
|
+
required: !0,
|
15
|
+
type: String
|
16
|
+
}
|
17
|
+
};
|
18
|
+
export {
|
19
|
+
e as c
|
20
|
+
};
|
21
|
+
//# sourceMappingURL=revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js.map
|
@@ -0,0 +1,123 @@
|
|
1
|
+
import { c5 as P } from "./revolugo.index.wc.CVg-U7Gx.min.js";
|
2
|
+
const _ = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), R = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), S = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), w = /[^\p{L}\d]+/giu, h = "$1\0$2", d = "";
|
3
|
+
function A(r) {
|
4
|
+
let e = r.trim();
|
5
|
+
e = e.replace(_, h).replace(R, h), e = e.replace(w, "\0");
|
6
|
+
let t = 0, a = e.length;
|
7
|
+
for (; e.charAt(t) === "\0"; )
|
8
|
+
t++;
|
9
|
+
if (t === a)
|
10
|
+
return [];
|
11
|
+
for (; e.charAt(a - 1) === "\0"; )
|
12
|
+
a--;
|
13
|
+
return e.slice(t, a).split(/\0/g);
|
14
|
+
}
|
15
|
+
function y(r) {
|
16
|
+
const e = A(r);
|
17
|
+
for (let t = 0; t < e.length; t++) {
|
18
|
+
const a = e[t], c = S.exec(a);
|
19
|
+
if (c) {
|
20
|
+
const s = c.index + (c[1] ?? c[2]).length;
|
21
|
+
e.splice(t, 1, a.slice(0, s), a.slice(s));
|
22
|
+
}
|
23
|
+
}
|
24
|
+
return e;
|
25
|
+
}
|
26
|
+
function g(r, e) {
|
27
|
+
const [t, a, c] = f(r, e);
|
28
|
+
return t + a.map(u(e?.locale)).join(e?.delimiter ?? " ") + c;
|
29
|
+
}
|
30
|
+
function F(r, e) {
|
31
|
+
const [t, a, c] = f(r, e), s = u(e?.locale), n = C(e?.locale), l = e?.mergeAmbiguousCharacters ? p(s, n) : L(s, n);
|
32
|
+
return t + a.map((i, m) => m === 0 ? s(i) : l(i, m)).join(e?.delimiter ?? "") + c;
|
33
|
+
}
|
34
|
+
function I(r, e) {
|
35
|
+
const [t, a, c] = f(r, e), s = u(e?.locale), n = C(e?.locale), l = e?.mergeAmbiguousCharacters ? p(s, n) : L(s, n);
|
36
|
+
return t + a.map(l).join(e?.delimiter ?? "") + c;
|
37
|
+
}
|
38
|
+
function U(r, e) {
|
39
|
+
const [t, a, c] = f(r, e), s = u(e?.locale), n = C(e?.locale);
|
40
|
+
return t + a.map(p(s, n)).join(e?.delimiter ?? " ") + c;
|
41
|
+
}
|
42
|
+
function E(r, e) {
|
43
|
+
return g(r, { delimiter: "-", ...e });
|
44
|
+
}
|
45
|
+
function T(r, e) {
|
46
|
+
return g(r, { delimiter: "_", ...e });
|
47
|
+
}
|
48
|
+
function u(r) {
|
49
|
+
return r === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(r);
|
50
|
+
}
|
51
|
+
function C(r) {
|
52
|
+
return r === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(r);
|
53
|
+
}
|
54
|
+
function p(r, e) {
|
55
|
+
return (t) => `${e(t[0])}${r(t.slice(1))}`;
|
56
|
+
}
|
57
|
+
function L(r, e) {
|
58
|
+
return (t, a) => {
|
59
|
+
const c = t[0];
|
60
|
+
return (a > 0 && c >= "0" && c <= "9" ? "_" + c : e(c)) + r(t.slice(1));
|
61
|
+
};
|
62
|
+
}
|
63
|
+
function f(r, e = {}) {
|
64
|
+
const t = e.split ?? (e.separateNumbers ? y : A), a = e.prefixCharacters ?? d, c = e.suffixCharacters ?? d;
|
65
|
+
let s = 0, n = r.length;
|
66
|
+
for (; s < r.length; ) {
|
67
|
+
const l = r.charAt(s);
|
68
|
+
if (!a.includes(l))
|
69
|
+
break;
|
70
|
+
s++;
|
71
|
+
}
|
72
|
+
for (; n > s; ) {
|
73
|
+
const l = n - 1, i = r.charAt(l);
|
74
|
+
if (!c.includes(i))
|
75
|
+
break;
|
76
|
+
n = l;
|
77
|
+
}
|
78
|
+
return [
|
79
|
+
r.slice(0, s),
|
80
|
+
t(r.slice(s, n)),
|
81
|
+
r.slice(n)
|
82
|
+
];
|
83
|
+
}
|
84
|
+
function k(r) {
|
85
|
+
return P(E(r), {
|
86
|
+
lower: !0,
|
87
|
+
strict: !0
|
88
|
+
});
|
89
|
+
}
|
90
|
+
var b = /* @__PURE__ */ ((r) => (r.Camel = "camelCase", r.Capital = "capitalCase", r.Param = "paramCase", r.Pascal = "pascalCase", r.Slug = "slugCase", r.Snake = "snakeCase", r))(b || {});
|
91
|
+
const o = {
|
92
|
+
camelCase: F,
|
93
|
+
capitalCase: U,
|
94
|
+
paramCase: E,
|
95
|
+
pascalCase: I,
|
96
|
+
slugCase: k,
|
97
|
+
snakeCase: T
|
98
|
+
};
|
99
|
+
function M(r, e) {
|
100
|
+
return Array.isArray(r) ? r.map(
|
101
|
+
(t) => o[e](t)
|
102
|
+
) : o[e](r);
|
103
|
+
}
|
104
|
+
function N(r, e) {
|
105
|
+
return r.some(
|
106
|
+
(t) => typeof t == "string" ? t === e : t.test(e)
|
107
|
+
);
|
108
|
+
}
|
109
|
+
function O(r) {
|
110
|
+
return r === Object(r) && !Array.isArray(r) && typeof r != "function";
|
111
|
+
}
|
112
|
+
function x(r, e, t = { deep: !0 }) {
|
113
|
+
return O(r) ? Object.keys(r).reduce((a, c) => {
|
114
|
+
const s = t?.exclude && N(t.exclude, c) ? c : o[e](c);
|
115
|
+
return a[s] = t.deep ? x(r[c], e, t) : r[c], a;
|
116
|
+
}, {}) : Array.isArray(r) ? r.map((a) => x(a, e, t)) : r;
|
117
|
+
}
|
118
|
+
export {
|
119
|
+
b as C,
|
120
|
+
M as c,
|
121
|
+
x as k
|
122
|
+
};
|
123
|
+
//# sourceMappingURL=revolugo.case-transformers.wj5dY-62.min.js.map
|
package/dist/{revolugo.creditcardform.D35ZslX6.min.js → revolugo.creditcardform.58FDmjkc.min.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { c as a, C as n } from "./revolugo.creditcardform.
|
2
|
-
import { W as p, _ as s } from "./revolugo.webcomponentwrapper.
|
3
|
-
import { d as m, c, w as d, a as C, n as i, h as _, r, o as f } from "./revolugo.index.wc.
|
1
|
+
import { c as a, C as n } from "./revolugo.creditcardform.DjHXUGaT.min.js";
|
2
|
+
import { W as p, _ as s } from "./revolugo.webcomponentwrapper.DY-mO-0c.min.js";
|
3
|
+
import { d as m, c, w as d, a as C, n as i, h as _, r, o as f } from "./revolugo.index.wc.CVg-U7Gx.min.js";
|
4
4
|
const l = m({
|
5
5
|
components: {
|
6
6
|
CreditCardForm: n,
|
@@ -21,4 +21,4 @@ const v = /* @__PURE__ */ s(l, [["render", u]]);
|
|
21
21
|
export {
|
22
22
|
v as default
|
23
23
|
};
|
24
|
-
//# sourceMappingURL=revolugo.creditcardform.
|
24
|
+
//# sourceMappingURL=revolugo.creditcardform.58FDmjkc.min.js.map
|
package/dist/{revolugo.creditcardform.Zgq-wqLH.min.js → revolugo.creditcardform.DjHXUGaT.min.js}
RENAMED
@@ -1,13 +1,13 @@
|
|
1
|
-
import {
|
2
|
-
import { _ as He } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.
|
3
|
-
import { u as Fe, _ as We, V as D, a as O } from "./revolugo.webcomponentwrapper.
|
4
|
-
import { V as ct } from "./revolugo.
|
5
|
-
import { V as Ge, a as Ke } from "./revolugo.vbtn.
|
6
|
-
import { V as Je } from "./revolugo.vtoolbar.
|
7
|
-
import { a as kt, m as Ye, V as Ze } from "./revolugo.vcheckboxbtn.
|
8
|
-
import { V as Rt, a as Xe } from "./revolugo.vcard.
|
9
|
-
import { V as Qe } from "./revolugo.vskeletonloader.
|
10
|
-
import { u as tr, V as Tt, m as er } from "./revolugo.vinput.
|
1
|
+
import { ar as B, d as ke, u as Re, O as Te, G as Qt, D as At, b2 as xe, E as Me, Y as Ne, Z as Oe, a1 as Le, aJ as Ve, b3 as Ue, a as g, z as Pt, a5 as Ie, c as k, w as v, e as E, f as X, t as R, r as qe, g as z, i as Be, y as ze, ax as De, B as je, o as A } from "./revolugo.index.wc.CVg-U7Gx.min.js";
|
2
|
+
import { _ as He } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DIWYLLE_.min.js";
|
3
|
+
import { u as Fe, _ as We, V as D, a as O } from "./revolugo.webcomponentwrapper.DY-mO-0c.min.js";
|
4
|
+
import { V as ct } from "./revolugo.vicon.DGbfBJIw.min.js";
|
5
|
+
import { V as Ge, a as Ke } from "./revolugo.vbtn.X3RP4Z34.min.js";
|
6
|
+
import { V as Je } from "./revolugo.vtoolbar.CpgasmNE.min.js";
|
7
|
+
import { a as kt, m as Ye, V as Ze } from "./revolugo.vcheckboxbtn.DLdpGWrK.min.js";
|
8
|
+
import { V as Rt, a as Xe } from "./revolugo.vcard.DfYEYCIx.min.js";
|
9
|
+
import { V as Qe } from "./revolugo.vskeletonloader.DcVdfRoT.min.js";
|
10
|
+
import { u as tr, V as Tt, m as er } from "./revolugo.vinput.Bh9hEdMF.min.js";
|
11
11
|
function Pe(e) {
|
12
12
|
try {
|
13
13
|
if (typeof document < "u") {
|
@@ -28,7 +28,18 @@ function Pe(e) {
|
|
28
28
|
console.error("[revolugo-elements] ", t);
|
29
29
|
}
|
30
30
|
}
|
31
|
-
const rr = {
|
31
|
+
const rr = (e) => {
|
32
|
+
switch (e) {
|
33
|
+
case B.Production:
|
34
|
+
return "pk_live_x99EPirYIsCyUsRvPAfyhnRp";
|
35
|
+
case B.Sandbox:
|
36
|
+
case B.Staging:
|
37
|
+
case B.CiCd:
|
38
|
+
case B.Local:
|
39
|
+
default:
|
40
|
+
return "pk_test_wXnn2RrefTiOHB0zzxqJr0s8";
|
41
|
+
}
|
42
|
+
}, sr = {
|
32
43
|
amount: { type: Number },
|
33
44
|
currency: { type: String },
|
34
45
|
disabled: {
|
@@ -48,17 +59,6 @@ const rr = {
|
|
48
59
|
default: !1,
|
49
60
|
type: Boolean
|
50
61
|
}
|
51
|
-
}, sr = (e) => {
|
52
|
-
switch (e) {
|
53
|
-
case B.Production:
|
54
|
-
return "pk_live_x99EPirYIsCyUsRvPAfyhnRp";
|
55
|
-
case B.Sandbox:
|
56
|
-
case B.Staging:
|
57
|
-
case B.CiCd:
|
58
|
-
case B.Local:
|
59
|
-
default:
|
60
|
-
return "pk_test_wXnn2RrefTiOHB0zzxqJr0s8";
|
61
|
-
}
|
62
62
|
};
|
63
63
|
var te = "basil", nr = function(t) {
|
64
64
|
return t === 3 ? "v3" : t;
|
@@ -186,7 +186,7 @@ var dt;
|
|
186
186
|
((dt = window.HTMLSlotElement) === null || dt === void 0 ? void 0 : dt.prototype.assignedElements) != null;
|
187
187
|
var Mt = !0;
|
188
188
|
function C(e, t, r) {
|
189
|
-
if (typeof
|
189
|
+
if (typeof r?.value != "function")
|
190
190
|
throw new TypeError(`Only methods can be decorated with @bound. <${t ?? e.name}> is not a method!`);
|
191
191
|
return {
|
192
192
|
configurable: Mt,
|
@@ -446,14 +446,14 @@ let L = class extends HTMLElement {
|
|
446
446
|
firstUpdated(t) {
|
447
447
|
}
|
448
448
|
};
|
449
|
-
L[bt] = !0, L.elementProperties = /* @__PURE__ */ new Map(), L.elementStyles = [], L.shadowRootOptions = { mode: "open" }, Vt
|
449
|
+
L[bt] = !0, L.elementProperties = /* @__PURE__ */ new Map(), L.elementStyles = [], L.shadowRootOptions = { mode: "open" }, Vt?.({ ReactiveElement: L }), ((pt = at.reactiveElementVersions) !== null && pt !== void 0 ? pt : at.reactiveElementVersions = []).push("1.6.3");
|
450
450
|
/**
|
451
451
|
* @license
|
452
452
|
* Copyright 2017 Google LLC
|
453
453
|
* SPDX-License-Identifier: BSD-3-Clause
|
454
454
|
*/
|
455
455
|
var mt;
|
456
|
-
const lt = window, V = lt.trustedTypes, Ut = V ? V.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, St = "$lit$", P = `lit$${(Math.random() + "").slice(9)}$`, ae = "?" + P, $r = `<${ae}>`, M = document, K = () => M.createComment(""), J = (e) => e === null || typeof e != "object" && typeof e != "function", le = Array.isArray, wr = (e) => le(e) || typeof
|
456
|
+
const lt = window, V = lt.trustedTypes, Ut = V ? V.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, St = "$lit$", P = `lit$${(Math.random() + "").slice(9)}$`, ae = "?" + P, $r = `<${ae}>`, M = document, K = () => M.createComment(""), J = (e) => e === null || typeof e != "object" && typeof e != "function", le = Array.isArray, wr = (e) => le(e) || typeof e?.[Symbol.iterator] == "function", yt = `[
|
457
457
|
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, It = /-->/g, qt = />/g, T = RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
|
458
458
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, zt = /"/g, ue = /^(?:script|style|textarea|title)$/i, _r = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), Cr = _r(1), U = Symbol.for("lit-noChange"), b = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), x = M.createTreeWalker(M, 129, null, !1);
|
459
459
|
function ce(e, t) {
|
@@ -521,7 +521,7 @@ function I(e, t, r = e, s) {
|
|
521
521
|
if (t === U) return t;
|
522
522
|
let l = s !== void 0 ? (n = r._$Co) === null || n === void 0 ? void 0 : n[s] : r._$Cl;
|
523
523
|
const p = J(t) ? void 0 : t._$litDirective$;
|
524
|
-
return
|
524
|
+
return l?.constructor !== p && ((i = l?._$AO) === null || i === void 0 || i.call(l, !1), p === void 0 ? l = void 0 : (l = new p(e), l._$AT(e, r, s)), s !== void 0 ? ((o = (c = r)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[s] = l : r._$Cl = l), l !== void 0 && (t = I(e, l._$AS(e, t.values), l, s)), t;
|
525
525
|
}
|
526
526
|
class Ar {
|
527
527
|
constructor(t, r) {
|
@@ -535,7 +535,7 @@ class Ar {
|
|
535
535
|
}
|
536
536
|
u(t) {
|
537
537
|
var r;
|
538
|
-
const { el: { content: s }, parts: n } = this._$AD, i = ((r = t
|
538
|
+
const { el: { content: s }, parts: n } = this._$AD, i = ((r = t?.creationScope) !== null && r !== void 0 ? r : M).importNode(s, !0);
|
539
539
|
x.currentNode = i;
|
540
540
|
let o = x.nextNode(), c = 0, l = 0, p = n[0];
|
541
541
|
for (; p !== void 0; ) {
|
@@ -543,7 +543,7 @@ class Ar {
|
|
543
543
|
let y;
|
544
544
|
p.type === 2 ? y = new Z(o, o.nextSibling, this, t) : p.type === 1 ? y = new p.ctor(o, p.name, p.strings, this, t) : p.type === 6 && (y = new xr(o, this, t)), this._$AV.push(y), p = n[++l];
|
545
545
|
}
|
546
|
-
c !==
|
546
|
+
c !== p?.index && (o = x.nextNode(), c++);
|
547
547
|
}
|
548
548
|
return x.currentNode = M, i;
|
549
549
|
}
|
@@ -555,7 +555,7 @@ class Ar {
|
|
555
555
|
class Z {
|
556
556
|
constructor(t, r, s, n) {
|
557
557
|
var i;
|
558
|
-
this.type = 2, this._$AH = b, this._$AN = void 0, this._$AA = t, this._$AB = r, this._$AM = s, this.options = n, this._$Cp = (i = n
|
558
|
+
this.type = 2, this._$AH = b, this._$AN = void 0, this._$AA = t, this._$AB = r, this._$AM = s, this.options = n, this._$Cp = (i = n?.isConnected) === null || i === void 0 || i;
|
559
559
|
}
|
560
560
|
get _$AU() {
|
561
561
|
var t, r;
|
@@ -564,7 +564,7 @@ class Z {
|
|
564
564
|
get parentNode() {
|
565
565
|
let t = this._$AA.parentNode;
|
566
566
|
const r = this._$AM;
|
567
|
-
return r !== void 0 &&
|
567
|
+
return r !== void 0 && t?.nodeType === 11 && (t = r.parentNode), t;
|
568
568
|
}
|
569
569
|
get startNode() {
|
570
570
|
return this._$AA;
|
@@ -685,13 +685,13 @@ class xr {
|
|
685
685
|
}
|
686
686
|
}
|
687
687
|
const jt = lt.litHtmlPolyfillSupport;
|
688
|
-
jt
|
688
|
+
jt?.(Y, Z), ((mt = lt.litHtmlVersions) !== null && mt !== void 0 ? mt : lt.litHtmlVersions = []).push("2.8.0");
|
689
689
|
const Mr = (e, t, r) => {
|
690
690
|
var s, n;
|
691
|
-
const i = (s = r
|
691
|
+
const i = (s = r?.renderBefore) !== null && s !== void 0 ? s : t;
|
692
692
|
let o = i._$litPart$;
|
693
693
|
if (o === void 0) {
|
694
|
-
const c = (n = r
|
694
|
+
const c = (n = r?.renderBefore) !== null && n !== void 0 ? n : null;
|
695
695
|
i._$litPart$ = o = new Z(t.insertBefore(K(), c), c, void 0, r ?? {});
|
696
696
|
}
|
697
697
|
return o._$AI(e), o;
|
@@ -729,7 +729,7 @@ class G extends L {
|
|
729
729
|
}
|
730
730
|
G.finalized = !0, G._$litElement$ = !0, (ft = globalThis.litElementHydrateSupport) === null || ft === void 0 || ft.call(globalThis, { LitElement: G });
|
731
731
|
const Ht = globalThis.litElementPolyfillSupport;
|
732
|
-
Ht
|
732
|
+
Ht?.({ LitElement: G });
|
733
733
|
((vt = globalThis.litElementVersions) !== null && vt !== void 0 ? vt : globalThis.litElementVersions = []).push("3.3.3");
|
734
734
|
/**
|
735
735
|
* @license
|
@@ -871,22 +871,19 @@ function Jt() {
|
|
871
871
|
}
|
872
872
|
var Kr = class {
|
873
873
|
constructor(e, t) {
|
874
|
-
|
875
|
-
this.host = e, this.options = t, this.initialized = !1, this.shadowHosts = [], this.host.addController(this), this.mountId = this.resetMountId(), this.slotName = ((r = this.options) == null ? void 0 : r.slotName) ?? `breadcrumb-${Jt()}`;
|
874
|
+
this.host = e, this.options = t, this.initialized = !1, this.shadowHosts = [], this.host.addController(this), this.mountId = this.resetMountId(), this.slotName = this.options?.slotName ?? `breadcrumb-${Jt()}`;
|
876
875
|
}
|
877
876
|
get mount() {
|
878
877
|
return document.getElementById(this.mountId);
|
879
878
|
}
|
880
879
|
hostUpdated() {
|
881
|
-
|
882
|
-
!this.initialized && ((e = this.options) == null ? void 0 : e.autoInitialize) !== !1 && this.init();
|
880
|
+
!this.initialized && this.options?.autoInitialize !== !1 && this.init();
|
883
881
|
}
|
884
882
|
hostDisconnected() {
|
885
883
|
this.destroyMountPoints();
|
886
884
|
}
|
887
885
|
resetMountId() {
|
888
|
-
|
889
|
-
return `${((t = this.options) == null ? void 0 : t.mountPrefix) ?? this.host.localName}-mount-point-${Jt()}`;
|
886
|
+
return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${Jt()}`;
|
890
887
|
}
|
891
888
|
createMountPoint() {
|
892
889
|
const e = document.createElement("div");
|
@@ -1030,7 +1027,7 @@ var rs = {
|
|
1030
1027
|
return this.breadcrumb.mount;
|
1031
1028
|
}
|
1032
1029
|
render() {
|
1033
|
-
const { error: e, showError: t } = this, { slotName: r } = this.breadcrumb, s = be(e) ? e.originalMessage : e
|
1030
|
+
const { error: e, showError: t } = this, { slotName: r } = this.breadcrumb, s = be(e) ? e.originalMessage : e?.message;
|
1034
1031
|
return Cr`
|
1035
1032
|
<div id="stripe" part="stripe">
|
1036
1033
|
<slot id="stripe-slot" name="${r}"></slot>
|
@@ -1045,24 +1042,19 @@ var rs = {
|
|
1045
1042
|
`;
|
1046
1043
|
}
|
1047
1044
|
updated(e) {
|
1048
|
-
|
1049
|
-
(t = super.updated) == null || t.call(this, e), e.has("error") && this.errorChanged(), e.has("publishableKey") && this.init(), [...e.keys()].forEach((r) => this.representationChanged(r));
|
1045
|
+
super.updated?.(e), e.has("error") && this.errorChanged(), e.has("publishableKey") && this.init(), [...e.keys()].forEach((t) => this.representationChanged(t));
|
1050
1046
|
}
|
1051
1047
|
async disconnectedCallback() {
|
1052
|
-
|
1053
|
-
super.disconnectedCallback(), await ((e = this.unmount) == null ? void 0 : e.call(this));
|
1048
|
+
super.disconnectedCallback(), await this.unmount?.();
|
1054
1049
|
}
|
1055
1050
|
reset() {
|
1056
|
-
|
1057
|
-
(t = (e = this.element) == null ? void 0 : e.clear) == null || t.call(e), this.resetRepresentations(), d.set(this, { error: null });
|
1051
|
+
this.element?.clear?.(), this.resetRepresentations(), d.set(this, { error: null });
|
1058
1052
|
}
|
1059
1053
|
blur() {
|
1060
|
-
|
1061
|
-
(e = this.element) == null || e.blur();
|
1054
|
+
this.element?.blur();
|
1062
1055
|
}
|
1063
1056
|
focus() {
|
1064
|
-
|
1065
|
-
(e = this.element) == null || e.focus();
|
1057
|
+
this.element?.focus();
|
1066
1058
|
}
|
1067
1059
|
createError(e) {
|
1068
1060
|
return new ge(this.constructor.is, e);
|
@@ -1100,7 +1092,7 @@ var rs = {
|
|
1100
1092
|
d.set(this, { elements: null, element: null, stripe: null });
|
1101
1093
|
else
|
1102
1094
|
try {
|
1103
|
-
const s = { stripeAccount: t, locale: r }, n = window.Stripe ? window.Stripe(e, s) : await ve(e, s), i = n
|
1095
|
+
const s = { stripeAccount: t, locale: r }, n = window.Stripe ? window.Stripe(e, s) : await ve(e, s), i = n?.elements();
|
1104
1096
|
d.set(this, { elements: i, error: null, stripe: n });
|
1105
1097
|
} catch (s) {
|
1106
1098
|
console.warn(s);
|
@@ -1111,14 +1103,12 @@ var rs = {
|
|
1111
1103
|
}
|
1112
1104
|
}
|
1113
1105
|
mount() {
|
1114
|
-
var e;
|
1115
1106
|
if (!this.breadcrumb.mount)
|
1116
1107
|
throw this.createError("Stripe Mount missing");
|
1117
|
-
|
1108
|
+
this.element?.mount(this.breadcrumb.mount);
|
1118
1109
|
}
|
1119
1110
|
async unmount() {
|
1120
|
-
|
1121
|
-
(t = (e = this.element) == null ? void 0 : e.unmount) == null || t.call(e), d.set(this, { element: null }), await this.updateComplete;
|
1111
|
+
this.element?.unmount?.(), d.set(this, { element: null }), await this.updateComplete;
|
1122
1112
|
}
|
1123
1113
|
async onBlur() {
|
1124
1114
|
d.set(this, { focused: !1 }), await this.updateComplete;
|
@@ -1322,8 +1312,7 @@ var ss = _t`[hidden] {
|
|
1322
1312
|
return !this.complete && !this.empty && !this.error || this.validate();
|
1323
1313
|
}
|
1324
1314
|
reset() {
|
1325
|
-
|
1326
|
-
super.reset(), (e = this.element) == null || e.clear();
|
1315
|
+
super.reset(), this.element?.clear();
|
1327
1316
|
}
|
1328
1317
|
async submit() {
|
1329
1318
|
switch (this.generate) {
|
@@ -1344,8 +1333,7 @@ var ss = _t`[hidden] {
|
|
1344
1333
|
return t && !r && d.set(this, { error: this.createError("Your card number is empty.") }), s;
|
1345
1334
|
}
|
1346
1335
|
updateStyle() {
|
1347
|
-
|
1348
|
-
(e = this.element) == null || e.update({
|
1336
|
+
this.element?.update({
|
1349
1337
|
style: this.getStripeElementsStyles()
|
1350
1338
|
});
|
1351
1339
|
}
|
@@ -1709,8 +1697,7 @@ const $e = ke({
|
|
1709
1697
|
},
|
1710
1698
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
1711
1699
|
onPaymentError(e) {
|
1712
|
-
|
1713
|
-
this.error = `${(t = e == null ? void 0 : e.error) == null ? void 0 : t.message} ${this.t("CreditCardForm.error")}`, this.$emit("error", this.error);
|
1700
|
+
this.error = `${e?.error?.message} ${this.t("CreditCardForm.error")}`, this.$emit("error", this.error);
|
1714
1701
|
},
|
1715
1702
|
async onStripePayment(e) {
|
1716
1703
|
try {
|
@@ -1738,10 +1725,10 @@ const $e = ke({
|
|
1738
1725
|
}
|
1739
1726
|
},
|
1740
1727
|
name: "CreditCardForm",
|
1741
|
-
props:
|
1728
|
+
props: sr,
|
1742
1729
|
setup() {
|
1743
1730
|
const { t: e } = Re(), { config: t } = Te(), r = Qt(
|
1744
|
-
() =>
|
1731
|
+
() => rr(t.value.apiEnvironment)
|
1745
1732
|
), s = At(!1), n = At(null);
|
1746
1733
|
return xe(async () => {
|
1747
1734
|
n.value = await yr(r.value), s.value = !0;
|
@@ -2156,6 +2143,6 @@ Pe("css/revolugo.creditcardform.DWne0Lnv.css");
|
|
2156
2143
|
export {
|
2157
2144
|
Os as C,
|
2158
2145
|
ms as V,
|
2159
|
-
|
2146
|
+
sr as c
|
2160
2147
|
};
|
2161
|
-
//# sourceMappingURL=revolugo.creditcardform.
|
2148
|
+
//# sourceMappingURL=revolugo.creditcardform.DjHXUGaT.min.js.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { c as a, C as n } from "./revolugo.creditcardpayment.
|
2
|
-
import { W as p, _ as s } from "./revolugo.webcomponentwrapper.
|
3
|
-
import { d as m, c, w as d, a as C, n as i, h as _, r as e, o as f } from "./revolugo.index.wc.
|
1
|
+
import { c as a, C as n } from "./revolugo.creditcardpayment.eNRvC7VG.min.js";
|
2
|
+
import { W as p, _ as s } from "./revolugo.webcomponentwrapper.DY-mO-0c.min.js";
|
3
|
+
import { d as m, c, w as d, a as C, n as i, h as _, r as e, o as f } from "./revolugo.index.wc.CVg-U7Gx.min.js";
|
4
4
|
const l = m({
|
5
5
|
components: {
|
6
6
|
CreditCardPayment: n,
|
@@ -21,4 +21,4 @@ const v = /* @__PURE__ */ s(l, [["render", u]]);
|
|
21
21
|
export {
|
22
22
|
v as default
|
23
23
|
};
|
24
|
-
//# sourceMappingURL=revolugo.creditcardpayment.
|
24
|
+
//# sourceMappingURL=revolugo.creditcardpayment.CXIZBeLQ.min.js.map
|