@revolugo/elements 6.9.4 → 6.9.5
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.creditcardform.DWne0Lnv.css → revolugo.creditcardform.fTmPR0fS.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._baseiteratee.C9fSfygW.min.js → revolugo._baseiteratee.CLzJO0Z7.min.js} +2 -2
- package/dist/{revolugo.banktransferdetails.HF-5whLi.min.js → revolugo.banktransferdetails.Birrw2bK.min.js} +42 -35
- package/dist/{revolugo.bdaterangepicker.Dztdr7of.min.js → revolugo.bdaterangepicker.B9Pwp3-i.min.js} +5 -5
- package/dist/{revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js → revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.B6Bic057.min.js} +2 -2
- package/dist/{revolugo.bhoteloffersfilterbar.riRikxpD.min.js → revolugo.bhoteloffersfilterbar.DGGCRGbi.min.js} +36 -36
- package/dist/{revolugo.bhotelroomsdetails.DSVvK0I7.min.js → revolugo.bhotelroomsdetails.BqDjDhZz.min.js} +7 -7
- package/dist/{revolugo.bimagecarousel.0DDXWSsX.min.js → revolugo.bimagecarousel.DZkkKxt4.min.js} +8 -8
- package/dist/{revolugo.bookingdetailssidebar.HR95sw2v.min.js → revolugo.bookingdetailssidebar.B7BPXRXg.min.js} +12 -12
- package/dist/{revolugo.bookingdetailssidebar.B3nJVjzT.min.js → revolugo.bookingdetailssidebar.BCh02VxY.min.js} +4 -4
- package/dist/{revolugo.bookingmanager.CHhySvbL.min.js → revolugo.bookingmanager.BLI4Kfii.min.js} +20 -20
- package/dist/{revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.DCBOxir-.min.js → revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.CnD8GFjr.min.js} +3 -3
- package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.D7d1JNOc.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.DrkLAGv0.min.js} +7 -7
- package/dist/{revolugo.btag.C27GlEZ3.min.js → revolugo.btag.WkZejRmS.min.js} +8 -8
- package/dist/{revolugo.cancellationpoliciesbadge.D7VDRPmO.min.js → revolugo.cancellationpoliciesbadge.-kny6UNr.min.js} +7 -7
- package/dist/{revolugo.cancellationpoliciesbadge.CQ9NQZ7F.min.js → revolugo.cancellationpoliciesbadge.k78k-bsq.min.js} +4 -4
- package/dist/{revolugo.cancellationpolicieslist.DUrr7Myp.min.js → revolugo.cancellationpolicieslist.ClbQpNpE.min.js} +4 -4
- package/dist/{revolugo.cancellationpolicieslist.IKkTYxdE.min.js → revolugo.cancellationpolicieslist.DD0Phtuu.min.js} +3 -3
- package/dist/{revolugo.case-transformers.Blb5hegY.min.js → revolugo.case-transformers.L7Bk5rsm.min.js} +2 -2
- package/dist/{revolugo.creditcardform.CejFX150.min.js → revolugo.creditcardform.BcpdCsLn.min.js} +264 -253
- package/dist/{revolugo.creditcardform.Dx00l01z.min.js → revolugo.creditcardform.TMc2dS7r.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.DZf0q5_n.min.js → revolugo.creditcardpayment.DNgqVDZM.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.CkfC2xTo.min.js → revolugo.creditcardpayment.IN0fHkG2.min.js} +16 -16
- package/dist/{revolugo.currencypicker.B9c-AV8V.min.js → revolugo.currencypicker.C7XrXhCS.min.js} +8 -8
- package/dist/{revolugo.currencypickerbtn.B_lw6N3Y.min.js → revolugo.currencypickerbtn.CBxEJhyo.min.js} +4 -4
- package/dist/{revolugo.currencypickerbtn.edi3iO6h.min.js → revolugo.currencypickerbtn.Cl2wh4UC.min.js} +8 -8
- package/dist/{revolugo.dates.DiE5ynTe.min.js → revolugo.dates.D6Qm2MvS.min.js} +2 -2
- package/dist/{revolugo.defaultsdeep.EmfuGqBQ.min.js → revolugo.defaultsdeep.Cej01H1i.min.js} +2 -2
- package/dist/{revolugo.dialog-attach.C4Yvk6WJ.min.js → revolugo.dialog-attach.JlZBE-OK.min.js} +2 -2
- package/dist/{revolugo.dialog-transition.Dly9KKqO.min.js → revolugo.dialog-transition.CKLVHgNl.min.js} +3 -3
- package/dist/{revolugo.fastbookingflow.DPOX_gos.min.js → revolugo.fastbookingflow.Ca0eFsVD.min.js} +4 -4
- package/dist/{revolugo.fullbookingflow.DSJE_kaM.min.js → revolugo.fullbookingflow.LDV_2-8f.min.js} +17 -17
- package/dist/{revolugo.hotel-offer-request.C9zwgVPt.min.js → revolugo.hotel-offer-request.mFDmvYda.min.js} +2 -2
- package/dist/{revolugo.hoteldescriptionview.Dtd-_3_8.min.js → revolugo.hoteldescriptionview.BfCLPMDU.min.js} +4 -4
- package/dist/{revolugo.hoteldescriptionview.kERJQPWm.min.js → revolugo.hoteldescriptionview.CgOY1ZMD.min.js} +20 -20
- package/dist/{revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CiHBAV7m.min.js → revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.Db_TUx_3.min.js} +7 -7
- package/dist/{revolugo.hotelofferlist.BC-TSjS6.min.js → revolugo.hotelofferlist.BlqWtyDX.min.js} +4 -4
- package/dist/{revolugo.hotelofferlist.D2AXSf4v.min.js → revolugo.hotelofferlist.DxjrZREn.min.js} +23 -23
- package/dist/{revolugo.hoteloffersearchmenu.BODV4ZIe.min.js → revolugo.hoteloffersearchmenu.CW5xeFnf.min.js} +6 -6
- package/dist/{revolugo.hoteloffersearchmenuui.DqWHAurZ.min.js → revolugo.hoteloffersearchmenuui.BYQevzaQ.min.js} +17 -17
- package/dist/{revolugo.hoteloffersmap.Db9NNgcN.min.js → revolugo.hoteloffersmap.C0sXohwQ.min.js} +4 -4
- package/dist/{revolugo.hoteloffersmap.C6nn7LXn.min.js → revolugo.hoteloffersmap.CiAz08aa.min.js} +14 -14
- package/dist/{revolugo.hoteloffersview.CIVNGmGO.min.js → revolugo.hoteloffersview.CcyL5SHj.min.js} +16 -16
- package/dist/{revolugo.hoteloffersview.BAwQcocI.min.js → revolugo.hoteloffersview.DViVRmpv.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.CiBIB0Pb.min.js → revolugo.hotelroomofferlist.0_20anO4.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.C9y91Ya3.min.js → revolugo.hotelroomofferlist.CWVOrmN3.min.js} +26 -26
- package/dist/{revolugo.hotelroomofferrequestcreator.props.2Sq_iptZ.min.js → revolugo.hotelroomofferrequestcreator.props.BMUg6Cw2.min.js} +2 -2
- package/dist/{revolugo.hotelroomoffersbookingflow.BS4Fa2EH.min.js → revolugo.hotelroomoffersbookingflow.BFZyhPs4.min.js} +17 -17
- package/dist/{revolugo.hotelroomoffersearchmenu.x_--4RXV.min.js → revolugo.hotelroomoffersearchmenu.CeTSQNc_.min.js} +8 -8
- package/dist/{revolugo.hotelroomoffersearchmenu.CXgExPhR.min.js → revolugo.hotelroomoffersearchmenu.DubKcJXK.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersview.BzmRXy0a.min.js → revolugo.hotelroomoffersview.ChGK-lwY.min.js} +12 -12
- package/dist/{revolugo.hotelroomoffersview.CFo6k7zm.min.js → revolugo.hotelroomoffersview.XrxJb08f.min.js} +4 -4
- package/dist/{revolugo.index.CDNx7Tg4.min.js → revolugo.index.BRUEWPtu.min.js} +2 -2
- package/dist/{revolugo.index.DZEISB0K.min.js → revolugo.index.BksT1nj-.min.js} +5 -5
- package/dist/{revolugo.index.wc.DLkeXtka.min.js → revolugo.index.wc.5QPHrFdU.min.js} +27 -27
- package/dist/{revolugo.langpicker.D7zIuy78.min.js → revolugo.langpicker.C8_l6z5z.min.js} +5 -5
- package/dist/{revolugo.langpickerbtn.DMcy_gHZ.min.js → revolugo.langpickerbtn.B6yGmUkO.min.js} +10 -10
- package/dist/{revolugo.langpickerbtn.BF7sml8K.min.js → revolugo.langpickerbtn.BlTweLYF.min.js} +4 -4
- package/dist/revolugo.min.js +1 -1
- package/dist/{revolugo.parsed-props.B5g9_9k5.min.js → revolugo.parsed-props.BJy-LQVI.min.js} +4 -4
- package/dist/{revolugo.pathify.DL0POvNz.min.js → revolugo.pathify.DuCqvhE5.min.js} +2 -2
- package/dist/{revolugo.prebookform.BVyTAnc9.min.js → revolugo.prebookform.B-1a8R28.min.js} +4 -4
- package/dist/{revolugo.prebookform.BMEaruyl.min.js → revolugo.prebookform.XU54iB7H.min.js} +18 -18
- package/dist/{revolugo.preferencesmenu.CfUC3L6C.min.js → revolugo.preferencesmenu.BEfTbWWf.min.js} +10 -10
- package/dist/{revolugo.preferencesmenu.5pUjkA0F.min.js → revolugo.preferencesmenu.DvHC3c5R.min.js} +4 -4
- package/dist/{revolugo.roominglisteditor.L6CmotRz.min.js → revolugo.roominglisteditor.DBJeg1ek.min.js} +4 -4
- package/dist/{revolugo.roominglisteditor.DLWeU6Ct.min.js → revolugo.roominglisteditor.Dlm2Xe2s.min.js} +9 -9
- package/dist/{revolugo.rounded.C-2ilaaW.min.js → revolugo.rounded.DTrKKTt4.min.js} +2 -2
- package/dist/{revolugo.ssrboot.D7k4-YG4.min.js → revolugo.ssrboot.CCsFGYsn.min.js} +2 -2
- package/dist/{revolugo.storybooktoolbar.CTe_QwGW.min.js → revolugo.storybooktoolbar.DTCC8Ies.min.js} +18 -18
- package/dist/{revolugo.termsandconditions.DBq-dEuI.min.js → revolugo.termsandconditions.B35IiPu8.min.js} +4 -4
- package/dist/{revolugo.termsandconditions.Cue6Dsm7.min.js → revolugo.termsandconditions.C2BIBaOu.min.js} +4 -4
- package/dist/{revolugo.use-breakpoint-service.DsQuZJRM.min.js → revolugo.use-breakpoint-service.Dh2ZxWTf.min.js} +3 -3
- package/dist/{revolugo.use-dialog-attach.DLdl8iIG.min.js → revolugo.use-dialog-attach.DaBrfXUJ.min.js} +3 -3
- package/dist/revolugo.use-html-element.B4PPsV8w.min.js +11 -0
- package/dist/{revolugo.vautocomplete.Q2U5ECgn.min.js → revolugo.vautocomplete.MyBbNRlC.min.js} +12 -12
- package/dist/{revolugo.vbadge.D-lbOD0r.min.js → revolugo.vbadge.CSlLZjlP.min.js} +6 -6
- package/dist/{revolugo.vbtn.B-LYC8rJ.min.js → revolugo.vbtn.Dbr6CsSm.min.js} +6 -6
- package/dist/{revolugo.vcard.ZlYB5HOk.min.js → revolugo.vcard.DylXYSnw.min.js} +6 -6
- package/dist/{revolugo.vcheckboxbtn.BGpOwRWV.min.js → revolugo.vcheckboxbtn.Bhk5daqP.min.js} +8 -8
- package/dist/{revolugo.vdialog.DlAgRbIv.min.js → revolugo.vdialog.CtuxcesN.min.js} +5 -5
- package/dist/{revolugo.vdivider.D1ITKKuu.min.js → revolugo.vdivider.Bxl52tUp.min.js} +3 -3
- package/dist/{revolugo.vexpansionpanels.D8TtnQrF.min.js → revolugo.vexpansionpanels.D09LqdoU.min.js} +6 -6
- package/dist/{revolugo.vform.gu3frP5W.min.js → revolugo.vform.gnySklGl.min.js} +4 -4
- package/dist/{revolugo.vicon.mrg8OisO.min.js → revolugo.vicon.CdRzDPMk.min.js} +3 -3
- package/dist/{revolugo.vinput.BowTI8jK.min.js → revolugo.vinput.BNbakCF2.min.js} +5 -5
- package/dist/{revolugo.vlabel.BjtrjyZZ.min.js → revolugo.vlabel.Dk4FF6Za.min.js} +3 -3
- package/dist/{revolugo.vlist.BwlPoH0e.min.js → revolugo.vlist.ue7D63XL.min.js} +8 -8
- package/dist/{revolugo.vmenu.Dasw1a1s.min.js → revolugo.vmenu.DHZfznjo.min.js} +5 -5
- package/dist/{revolugo.vselect.B4IzM260.min.js → revolugo.vselect.C1jUN20W.min.js} +12 -12
- package/dist/{revolugo.vsheet.CDgBUxHk.min.js → revolugo.vsheet.DF_dpUv9.min.js} +5 -5
- package/dist/{revolugo.vskeletonloader.DgIjR-8k.min.js → revolugo.vskeletonloader.Dq-T8AvN.min.js} +4 -4
- package/dist/{revolugo.vslidegroup.BV7NJuLN.min.js → revolugo.vslidegroup.CY8HKY68.min.js} +5 -5
- package/dist/{revolugo.vsnackbar.DFnMGJQg.min.js → revolugo.vsnackbar.BTUU_GjH.min.js} +5 -5
- package/dist/revolugo.vspacer.8XjWwGNR.min.js +7 -0
- package/dist/{revolugo.vtextarea.CgekaBze.min.js → revolugo.vtextarea.BzXlRaqj.min.js} +8 -8
- package/dist/{revolugo.vtextfield.BhmuZsP7.min.js → revolugo.vtextfield.PwjQYcsK.min.js} +7 -7
- package/dist/{revolugo.vtoolbar.CMwcpp3v.min.js → revolugo.vtoolbar.gTiJEUY8.min.js} +5 -5
- package/dist/{revolugo.vtooltip.a-r5BxqW.min.js → revolugo.vtooltip.BEvNIx65.min.js} +3 -3
- package/dist/{revolugo.vwindowitem.BHzrfo73.min.js → revolugo.vwindowitem.rUiYmY4A.min.js} +6 -6
- package/dist/{revolugo.watch-list.BSqnQNdl.min.js → revolugo.watch-list.CW6XeKsi.min.js} +2 -2
- package/dist/{revolugo.webcomponentwrapper.BNmjcBmh.min.js → revolugo.webcomponentwrapper.cNxufrbJ.min.js} +2 -2
- package/package.json +5 -5
- package/dist/revolugo.use-html-element.c9F9oVPw.min.js +0 -11
- package/dist/revolugo.vspacer.DqnVrVYg.min.js +0 -7
package/dist/{revolugo.creditcardform.CejFX150.min.js → revolugo.creditcardform.BcpdCsLn.min.js}
RENAMED
@@ -1,14 +1,15 @@
|
|
1
|
-
import { av as B, d as
|
2
|
-
import { _ as
|
3
|
-
import {
|
4
|
-
import { V as
|
5
|
-
import { V as
|
6
|
-
import { V as Je } from "./revolugo.
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import { V as Qe } from "./revolugo.
|
10
|
-
import {
|
11
|
-
|
1
|
+
import { av as B, d as Re, u as Te, T as xe, H as te, k as At, b4 as Me, E as Le, a1 as Ne, a2 as Oe, a6 as Ve, aL as Ue, b5 as Ie, a as g, D as Pt, aa as qe, c as k, w as v, e as E, f as X, t as R, r as Be, g as z, i as ze, C as De, aB as je, Z as He, o as A } from "./revolugo.index.wc.5QPHrFdU.min.js";
|
2
|
+
import { _ as Fe } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.B6Bic057.min.js";
|
3
|
+
import { p as kt } from "./revolugo.parsed-props.BJy-LQVI.min.js";
|
4
|
+
import { u as We, _ as Ge, V as D, a as N } from "./revolugo.webcomponentwrapper.cNxufrbJ.min.js";
|
5
|
+
import { V as ct } from "./revolugo.vicon.CdRzDPMk.min.js";
|
6
|
+
import { V as Ke, a as Je } from "./revolugo.vbtn.Dbr6CsSm.min.js";
|
7
|
+
import { V as Ye } from "./revolugo.vtoolbar.gTiJEUY8.min.js";
|
8
|
+
import { a as Rt, m as Ze, V as Xe } from "./revolugo.vcheckboxbtn.Bhk5daqP.min.js";
|
9
|
+
import { V as Tt, a as Qe } from "./revolugo.vcard.DylXYSnw.min.js";
|
10
|
+
import { V as tr } from "./revolugo.vskeletonloader.Dq-T8AvN.min.js";
|
11
|
+
import { u as er, V as xt, m as rr } from "./revolugo.vinput.BNbakCF2.min.js";
|
12
|
+
function ke(e) {
|
12
13
|
try {
|
13
14
|
if (typeof document < "u") {
|
14
15
|
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
@@ -28,7 +29,7 @@ function Pe(e) {
|
|
28
29
|
console.error("[revolugo-elements] ", t);
|
29
30
|
}
|
30
31
|
}
|
31
|
-
const
|
32
|
+
const sr = (e) => {
|
32
33
|
switch (e) {
|
33
34
|
case B.Production:
|
34
35
|
return "pk_live_x99EPirYIsCyUsRvPAfyhnRp";
|
@@ -39,7 +40,7 @@ const rr = (e) => {
|
|
39
40
|
default:
|
40
41
|
return "pk_test_wXnn2RrefTiOHB0zzxqJr0s8";
|
41
42
|
}
|
42
|
-
},
|
43
|
+
}, nr = {
|
43
44
|
amount: { type: Number },
|
44
45
|
currency: { type: String },
|
45
46
|
disabled: {
|
@@ -60,42 +61,42 @@ const rr = (e) => {
|
|
60
61
|
type: Boolean
|
61
62
|
}
|
62
63
|
};
|
63
|
-
var
|
64
|
+
var ee = "basil", ir = function(t) {
|
64
65
|
return t === 3 ? "v3" : t;
|
65
|
-
},
|
66
|
-
var
|
67
|
-
return
|
68
|
-
},
|
69
|
-
for (var t = document.querySelectorAll('script[src^="'.concat(
|
66
|
+
}, re = "https://js.stripe.com", or = "".concat(re, "/").concat(ee, "/stripe.js"), ar = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, lr = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;
|
67
|
+
var ur = function(t) {
|
68
|
+
return ar.test(t) || lr.test(t);
|
69
|
+
}, cr = function() {
|
70
|
+
for (var t = document.querySelectorAll('script[src^="'.concat(re, '"]')), r = 0; r < t.length; r++) {
|
70
71
|
var s = t[r];
|
71
|
-
if (
|
72
|
+
if (ur(s.src))
|
72
73
|
return s;
|
73
74
|
}
|
74
75
|
return null;
|
75
|
-
},
|
76
|
+
}, Mt = function(t) {
|
76
77
|
var r = "", s = document.createElement("script");
|
77
|
-
s.src = "".concat(
|
78
|
+
s.src = "".concat(or).concat(r);
|
78
79
|
var n = document.head || document.body;
|
79
80
|
if (!n)
|
80
81
|
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
81
82
|
return n.appendChild(s), s;
|
82
|
-
},
|
83
|
+
}, dr = function(t, r) {
|
83
84
|
!t || !t._registerWrapper || t._registerWrapper({
|
84
85
|
name: "stripe-js",
|
85
86
|
version: "7.5.0",
|
86
87
|
startTime: r
|
87
88
|
});
|
88
|
-
}, j = null, Q = null, tt = null,
|
89
|
+
}, j = null, Q = null, tt = null, pr = function(t) {
|
89
90
|
return function(r) {
|
90
91
|
t(new Error("Failed to load Stripe.js", {
|
91
92
|
cause: r
|
92
93
|
}));
|
93
94
|
};
|
94
|
-
},
|
95
|
+
}, hr = function(t, r) {
|
95
96
|
return function() {
|
96
97
|
window.Stripe ? t(window.Stripe) : r(new Error("Stripe.js not available"));
|
97
98
|
};
|
98
|
-
},
|
99
|
+
}, mr = function(t) {
|
99
100
|
return j !== null ? j : (j = new Promise(function(r, s) {
|
100
101
|
if (typeof window > "u" || typeof document > "u") {
|
101
102
|
r(null);
|
@@ -106,16 +107,16 @@ var lr = function(t) {
|
|
106
107
|
return;
|
107
108
|
}
|
108
109
|
try {
|
109
|
-
var n =
|
110
|
+
var n = cr();
|
110
111
|
if (!(n && t)) {
|
111
112
|
if (!n)
|
112
|
-
n =
|
113
|
+
n = Mt(t);
|
113
114
|
else if (n && tt !== null && Q !== null) {
|
114
115
|
var i;
|
115
|
-
n.removeEventListener("load", tt), n.removeEventListener("error", Q), (i = n.parentNode) === null || i === void 0 || i.removeChild(n), n =
|
116
|
+
n.removeEventListener("load", tt), n.removeEventListener("error", Q), (i = n.parentNode) === null || i === void 0 || i.removeChild(n), n = Mt(t);
|
116
117
|
}
|
117
118
|
}
|
118
|
-
tt =
|
119
|
+
tt = hr(r, s), Q = pr(s), n.addEventListener("load", tt), n.addEventListener("error", Q);
|
119
120
|
} catch (o) {
|
120
121
|
s(o);
|
121
122
|
return;
|
@@ -123,30 +124,30 @@ var lr = function(t) {
|
|
123
124
|
}), j.catch(function(r) {
|
124
125
|
return j = null, Promise.reject(r);
|
125
126
|
}));
|
126
|
-
},
|
127
|
+
}, yr = function(t, r, s) {
|
127
128
|
if (t === null)
|
128
129
|
return null;
|
129
|
-
var n = r[0], i = n.match(/^pk_test/), o =
|
130
|
+
var n = r[0], i = n.match(/^pk_test/), o = ir(t.version), c = ee;
|
130
131
|
i && o !== c && console.warn("Stripe.js@".concat(o, " was loaded on the page, but @stripe/stripe-js@").concat("7.5.0", " expected Stripe.js@").concat(c, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
131
132
|
var l = t.apply(void 0, r);
|
132
|
-
return
|
133
|
-
}, H,
|
134
|
-
return H || (H =
|
133
|
+
return dr(l, s), l;
|
134
|
+
}, H, se = !1, ne = function() {
|
135
|
+
return H || (H = mr(null).catch(function(t) {
|
135
136
|
return H = null, Promise.reject(t);
|
136
137
|
}), H);
|
137
138
|
};
|
138
139
|
Promise.resolve().then(function() {
|
139
|
-
return
|
140
|
+
return ne();
|
140
141
|
}).catch(function(e) {
|
141
|
-
|
142
|
+
se || console.warn(e);
|
142
143
|
});
|
143
|
-
var
|
144
|
+
var fr = function() {
|
144
145
|
for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
|
145
146
|
r[s] = arguments[s];
|
146
|
-
|
147
|
+
se = !0;
|
147
148
|
var n = Date.now();
|
148
|
-
return
|
149
|
-
return
|
149
|
+
return ne().then(function(i) {
|
150
|
+
return yr(i, r, n);
|
150
151
|
});
|
151
152
|
};
|
152
153
|
/**
|
@@ -154,7 +155,7 @@ var yr = function() {
|
|
154
155
|
* Copyright 2017 Google LLC
|
155
156
|
* SPDX-License-Identifier: BSD-3-Clause
|
156
157
|
*/
|
157
|
-
const
|
158
|
+
const ie = (e) => (t) => typeof t == "function" ? ((r, s) => (customElements.define(r, s), s))(e, t) : ((r, s) => {
|
158
159
|
const { kind: n, elements: i } = s;
|
159
160
|
return { kind: n, elements: i, finisher(o) {
|
160
161
|
customElements.define(r, o);
|
@@ -165,17 +166,17 @@ const ne = (e) => (t) => typeof t == "function" ? ((r, s) => (customElements.def
|
|
165
166
|
* Copyright 2017 Google LLC
|
166
167
|
* SPDX-License-Identifier: BSD-3-Clause
|
167
168
|
*/
|
168
|
-
const
|
169
|
+
const vr = (e, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(r) {
|
169
170
|
r.createProperty(t.key, e);
|
170
171
|
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
|
171
172
|
typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
|
172
173
|
}, finisher(r) {
|
173
174
|
r.createProperty(t.key, e);
|
174
|
-
} },
|
175
|
+
} }, gr = (e, t, r) => {
|
175
176
|
t.constructor.createProperty(r, e);
|
176
177
|
};
|
177
178
|
function u(e) {
|
178
|
-
return (t, r) => r !== void 0 ?
|
179
|
+
return (t, r) => r !== void 0 ? gr(e, t, r) : vr(e, t);
|
179
180
|
}
|
180
181
|
/**
|
181
182
|
* @license
|
@@ -184,15 +185,15 @@ function u(e) {
|
|
184
185
|
*/
|
185
186
|
var dt;
|
186
187
|
((dt = window.HTMLSlotElement) === null || dt === void 0 ? void 0 : dt.prototype.assignedElements) != null;
|
187
|
-
var
|
188
|
+
var Lt = !0;
|
188
189
|
function C(e, t, r) {
|
189
190
|
if (typeof r?.value != "function")
|
190
191
|
throw new TypeError(`Only methods can be decorated with @bound. <${t ?? e.name}> is not a method!`);
|
191
192
|
return {
|
192
|
-
configurable:
|
193
|
+
configurable: Lt,
|
193
194
|
get() {
|
194
195
|
const s = r.value.bind(this);
|
195
|
-
return Object.defineProperty(this, t, { value: s, configurable:
|
196
|
+
return Object.defineProperty(this, t, { value: s, configurable: Lt, writable: !0 }), s;
|
196
197
|
}
|
197
198
|
};
|
198
199
|
}
|
@@ -201,8 +202,8 @@ function C(e, t, r) {
|
|
201
202
|
* Copyright 2019 Google LLC
|
202
203
|
* SPDX-License-Identifier: BSD-3-Clause
|
203
204
|
*/
|
204
|
-
const rt = window, $t = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, wt = Symbol(),
|
205
|
-
let
|
205
|
+
const rt = window, $t = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, wt = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
|
206
|
+
let oe = class {
|
206
207
|
constructor(t, r, s) {
|
207
208
|
if (this._$cssResult$ = !0, s !== wt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
208
209
|
this.cssText = t, this.t = r;
|
@@ -212,7 +213,7 @@ let ie = class {
|
|
212
213
|
const r = this.t;
|
213
214
|
if ($t && t === void 0) {
|
214
215
|
const s = r !== void 0 && r.length === 1;
|
215
|
-
s && (t =
|
216
|
+
s && (t = Nt.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Nt.set(r, t));
|
216
217
|
}
|
217
218
|
return t;
|
218
219
|
}
|
@@ -220,22 +221,22 @@ let ie = class {
|
|
220
221
|
return this.cssText;
|
221
222
|
}
|
222
223
|
};
|
223
|
-
const
|
224
|
+
const br = (e) => new oe(typeof e == "string" ? e : e + "", void 0, wt), _t = (e, ...t) => {
|
224
225
|
const r = e.length === 1 ? e[0] : t.reduce((s, n, i) => s + ((o) => {
|
225
226
|
if (o._$cssResult$ === !0) return o.cssText;
|
226
227
|
if (typeof o == "number") return o;
|
227
228
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
228
229
|
})(n) + e[i + 1], e[0]);
|
229
|
-
return new
|
230
|
-
},
|
230
|
+
return new oe(r, e, wt);
|
231
|
+
}, Sr = (e, t) => {
|
231
232
|
$t ? e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet) : t.forEach((r) => {
|
232
233
|
const s = document.createElement("style"), n = rt.litNonce;
|
233
234
|
n !== void 0 && s.setAttribute("nonce", n), s.textContent = r.cssText, e.appendChild(s);
|
234
235
|
});
|
235
|
-
},
|
236
|
+
}, Ot = $t ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
236
237
|
let r = "";
|
237
238
|
for (const s of t.cssRules) r += s.cssText;
|
238
|
-
return
|
239
|
+
return br(r);
|
239
240
|
})(e) : e;
|
240
241
|
/**
|
241
242
|
* @license
|
@@ -243,10 +244,10 @@ const gr = (e) => new ie(typeof e == "string" ? e : e + "", void 0, wt), _t = (e
|
|
243
244
|
* SPDX-License-Identifier: BSD-3-Clause
|
244
245
|
*/
|
245
246
|
var pt;
|
246
|
-
const at = window,
|
247
|
+
const at = window, Vt = at.trustedTypes, $r = Vt ? Vt.emptyScript : "", Ut = at.reactiveElementPolyfillSupport, gt = { toAttribute(e, t) {
|
247
248
|
switch (t) {
|
248
249
|
case Boolean:
|
249
|
-
e = e ?
|
250
|
+
e = e ? $r : null;
|
250
251
|
break;
|
251
252
|
case Object:
|
252
253
|
case Array:
|
@@ -271,7 +272,7 @@ const at = window, Ot = at.trustedTypes, Sr = Ot ? Ot.emptyScript : "", Vt = at.
|
|
271
272
|
}
|
272
273
|
}
|
273
274
|
return r;
|
274
|
-
} },
|
275
|
+
} }, ae = (e, t) => t !== e && (t == t || e == e), ht = { attribute: !0, type: String, converter: gt, reflect: !1, hasChanged: ae }, bt = "finalized";
|
275
276
|
let O = class extends HTMLElement {
|
276
277
|
constructor() {
|
277
278
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
|
@@ -319,8 +320,8 @@ let O = class extends HTMLElement {
|
|
319
320
|
const r = [];
|
320
321
|
if (Array.isArray(t)) {
|
321
322
|
const s = new Set(t.flat(1 / 0).reverse());
|
322
|
-
for (const n of s) r.unshift(
|
323
|
-
} else t !== void 0 && r.push(
|
323
|
+
for (const n of s) r.unshift(Ot(n));
|
324
|
+
} else t !== void 0 && r.push(Ot(t));
|
324
325
|
return r;
|
325
326
|
}
|
326
327
|
static _$Ep(t, r) {
|
@@ -347,7 +348,7 @@ let O = class extends HTMLElement {
|
|
347
348
|
createRenderRoot() {
|
348
349
|
var t;
|
349
350
|
const r = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
350
|
-
return
|
351
|
+
return Sr(r, this.constructor.elementStyles), r;
|
351
352
|
}
|
352
353
|
connectedCallback() {
|
353
354
|
var t;
|
@@ -386,7 +387,7 @@ let O = class extends HTMLElement {
|
|
386
387
|
}
|
387
388
|
requestUpdate(t, r, s) {
|
388
389
|
let n = !0;
|
389
|
-
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged ||
|
390
|
+
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || ae)(this[t], r) ? (this._$AL.has(t) || this._$AL.set(t, r), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : n = !1), !this.isUpdatePending && n && (this._$E_ = this._$Ej());
|
390
391
|
}
|
391
392
|
async _$Ej() {
|
392
393
|
this.isUpdatePending = !0;
|
@@ -446,38 +447,38 @@ let O = class extends HTMLElement {
|
|
446
447
|
firstUpdated(t) {
|
447
448
|
}
|
448
449
|
};
|
449
|
-
O[bt] = !0, O.elementProperties = /* @__PURE__ */ new Map(), O.elementStyles = [], O.shadowRootOptions = { mode: "open" },
|
450
|
+
O[bt] = !0, O.elementProperties = /* @__PURE__ */ new Map(), O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, Ut?.({ ReactiveElement: O }), ((pt = at.reactiveElementVersions) !== null && pt !== void 0 ? pt : at.reactiveElementVersions = []).push("1.6.3");
|
450
451
|
/**
|
451
452
|
* @license
|
452
453
|
* Copyright 2017 Google LLC
|
453
454
|
* SPDX-License-Identifier: BSD-3-Clause
|
454
455
|
*/
|
455
456
|
var mt;
|
456
|
-
const lt = window, V = lt.trustedTypes,
|
457
|
-
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
458
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
459
|
-
function
|
457
|
+
const lt = window, V = lt.trustedTypes, It = V ? V.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, St = "$lit$", P = `lit$${(Math.random() + "").slice(9)}$`, le = "?" + P, wr = `<${le}>`, M = document, K = () => M.createComment(""), J = (e) => e === null || typeof e != "object" && typeof e != "function", ue = Array.isArray, _r = (e) => ue(e) || typeof e?.[Symbol.iterator] == "function", yt = `[
|
458
|
+
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Bt = />/g, T = RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
|
459
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), zt = /'/g, Dt = /"/g, ce = /^(?:script|style|textarea|title)$/i, Cr = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), Er = Cr(1), U = Symbol.for("lit-noChange"), b = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), x = M.createTreeWalker(M, 129, null, !1);
|
460
|
+
function de(e, t) {
|
460
461
|
if (!Array.isArray(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
461
|
-
return
|
462
|
+
return It !== void 0 ? It.createHTML(t) : t;
|
462
463
|
}
|
463
|
-
const
|
464
|
+
const Ar = (e, t) => {
|
464
465
|
const r = e.length - 1, s = [];
|
465
466
|
let n, i = t === 2 ? "<svg>" : "", o = F;
|
466
467
|
for (let c = 0; c < r; c++) {
|
467
468
|
const l = e[c];
|
468
469
|
let p, y, f = -1, S = 0;
|
469
|
-
for (; S < l.length && (o.lastIndex = S, y = o.exec(l), y !== null); ) S = o.lastIndex, o === F ? y[1] === "!--" ? o =
|
470
|
+
for (; S < l.length && (o.lastIndex = S, y = o.exec(l), y !== null); ) S = o.lastIndex, o === F ? y[1] === "!--" ? o = qt : y[1] !== void 0 ? o = Bt : y[2] !== void 0 ? (ce.test(y[2]) && (n = RegExp("</" + y[2], "g")), o = T) : y[3] !== void 0 && (o = T) : o === T ? y[0] === ">" ? (o = n ?? F, f = -1) : y[1] === void 0 ? f = -2 : (f = o.lastIndex - y[2].length, p = y[1], o = y[3] === void 0 ? T : y[3] === '"' ? Dt : zt) : o === Dt || o === zt ? o = T : o === qt || o === Bt ? o = F : (o = T, n = void 0);
|
470
471
|
const _ = o === T && e[c + 1].startsWith("/>") ? " " : "";
|
471
|
-
i += o === F ? l +
|
472
|
+
i += o === F ? l + wr : f >= 0 ? (s.push(p), l.slice(0, f) + St + l.slice(f) + P + _) : l + P + (f === -2 ? (s.push(void 0), c) : _);
|
472
473
|
}
|
473
|
-
return [
|
474
|
+
return [de(e, i + (e[r] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
474
475
|
};
|
475
476
|
class Y {
|
476
477
|
constructor({ strings: t, _$litType$: r }, s) {
|
477
478
|
let n;
|
478
479
|
this.parts = [];
|
479
480
|
let i = 0, o = 0;
|
480
|
-
const c = t.length - 1, l = this.parts, [p, y] =
|
481
|
+
const c = t.length - 1, l = this.parts, [p, y] = Ar(t, r);
|
481
482
|
if (this.el = Y.createElement(p, s), x.currentNode = this.el.content, r === 2) {
|
482
483
|
const f = this.el.content, S = f.firstChild;
|
483
484
|
S.remove(), f.append(...S.childNodes);
|
@@ -490,12 +491,12 @@ class Y {
|
|
490
491
|
const _ = y[o++];
|
491
492
|
if (f.push(S), _ !== void 0) {
|
492
493
|
const q = n.getAttribute(_.toLowerCase() + St).split(P), L = /([.?@])?(.*)/.exec(_);
|
493
|
-
l.push({ type: 1, index: i, name: L[2], strings: q, ctor: L[1] === "." ?
|
494
|
+
l.push({ type: 1, index: i, name: L[2], strings: q, ctor: L[1] === "." ? kr : L[1] === "?" ? Tr : L[1] === "@" ? xr : ut });
|
494
495
|
} else l.push({ type: 6, index: i });
|
495
496
|
}
|
496
497
|
for (const S of f) n.removeAttribute(S);
|
497
498
|
}
|
498
|
-
if (
|
499
|
+
if (ce.test(n.tagName)) {
|
499
500
|
const f = n.textContent.split(P), S = f.length - 1;
|
500
501
|
if (S > 0) {
|
501
502
|
n.textContent = V ? V.emptyScript : "";
|
@@ -503,7 +504,7 @@ class Y {
|
|
503
504
|
n.append(f[S], K());
|
504
505
|
}
|
505
506
|
}
|
506
|
-
} else if (n.nodeType === 8) if (n.data ===
|
507
|
+
} else if (n.nodeType === 8) if (n.data === le) l.push({ type: 2, index: i });
|
507
508
|
else {
|
508
509
|
let f = -1;
|
509
510
|
for (; (f = n.data.indexOf(P, f + 1)) !== -1; ) l.push({ type: 7, index: i }), f += P.length - 1;
|
@@ -523,7 +524,7 @@ function I(e, t, r = e, s) {
|
|
523
524
|
const p = J(t) ? void 0 : t._$litDirective$;
|
524
525
|
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
526
|
}
|
526
|
-
class
|
527
|
+
class Pr {
|
527
528
|
constructor(t, r) {
|
528
529
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
|
529
530
|
}
|
@@ -541,7 +542,7 @@ class Ar {
|
|
541
542
|
for (; p !== void 0; ) {
|
542
543
|
if (c === p.index) {
|
543
544
|
let y;
|
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
|
545
|
+
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 Mr(o, this, t)), this._$AV.push(y), p = n[++l];
|
545
546
|
}
|
546
547
|
c !== p?.index && (o = x.nextNode(), c++);
|
547
548
|
}
|
@@ -573,7 +574,7 @@ class Z {
|
|
573
574
|
return this._$AB;
|
574
575
|
}
|
575
576
|
_$AI(t, r = this) {
|
576
|
-
t = I(this, t, r), J(t) ? t === b || t == null || t === "" ? (this._$AH !== b && this._$AR(), this._$AH = b) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) :
|
577
|
+
t = I(this, t, r), J(t) ? t === b || t == null || t === "" ? (this._$AH !== b && this._$AR(), this._$AH = b) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : _r(t) ? this.T(t) : this._(t);
|
577
578
|
}
|
578
579
|
k(t) {
|
579
580
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -586,19 +587,19 @@ class Z {
|
|
586
587
|
}
|
587
588
|
g(t) {
|
588
589
|
var r;
|
589
|
-
const { values: s, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Y.createElement(
|
590
|
+
const { values: s, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Y.createElement(de(n.h, n.h[0]), this.options)), n);
|
590
591
|
if (((r = this._$AH) === null || r === void 0 ? void 0 : r._$AD) === i) this._$AH.v(s);
|
591
592
|
else {
|
592
|
-
const o = new
|
593
|
+
const o = new Pr(i, this), c = o.u(this.options);
|
593
594
|
o.v(s), this.$(c), this._$AH = o;
|
594
595
|
}
|
595
596
|
}
|
596
597
|
_$AC(t) {
|
597
|
-
let r =
|
598
|
-
return r === void 0 &&
|
598
|
+
let r = jt.get(t.strings);
|
599
|
+
return r === void 0 && jt.set(t.strings, r = new Y(t)), r;
|
599
600
|
}
|
600
601
|
T(t) {
|
601
|
-
|
602
|
+
ue(this._$AH) || (this._$AH = [], this._$AR());
|
602
603
|
const r = this._$AH;
|
603
604
|
let s, n = 0;
|
604
605
|
for (const i of t) n === r.length ? r.push(s = new Z(this.k(K()), this.k(K()), this, this.options)) : s = r[n], s._$AI(i), n++;
|
@@ -641,7 +642,7 @@ class ut {
|
|
641
642
|
t === b ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
642
643
|
}
|
643
644
|
}
|
644
|
-
class
|
645
|
+
class kr extends ut {
|
645
646
|
constructor() {
|
646
647
|
super(...arguments), this.type = 3;
|
647
648
|
}
|
@@ -649,16 +650,16 @@ class Pr extends ut {
|
|
649
650
|
this.element[this.name] = t === b ? void 0 : t;
|
650
651
|
}
|
651
652
|
}
|
652
|
-
const
|
653
|
-
class
|
653
|
+
const Rr = V ? V.emptyScript : "";
|
654
|
+
class Tr extends ut {
|
654
655
|
constructor() {
|
655
656
|
super(...arguments), this.type = 4;
|
656
657
|
}
|
657
658
|
j(t) {
|
658
|
-
t && t !== b ? this.element.setAttribute(this.name,
|
659
|
+
t && t !== b ? this.element.setAttribute(this.name, Rr) : this.element.removeAttribute(this.name);
|
659
660
|
}
|
660
661
|
}
|
661
|
-
class
|
662
|
+
class xr extends ut {
|
662
663
|
constructor(t, r, s, n, i) {
|
663
664
|
super(t, r, s, n, i), this.type = 5;
|
664
665
|
}
|
@@ -673,7 +674,7 @@ class Tr extends ut {
|
|
673
674
|
typeof this._$AH == "function" ? this._$AH.call((s = (r = this.options) === null || r === void 0 ? void 0 : r.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
|
674
675
|
}
|
675
676
|
}
|
676
|
-
class
|
677
|
+
class Mr {
|
677
678
|
constructor(t, r, s) {
|
678
679
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = s;
|
679
680
|
}
|
@@ -684,9 +685,9 @@ class xr {
|
|
684
685
|
I(this, t);
|
685
686
|
}
|
686
687
|
}
|
687
|
-
const
|
688
|
-
|
689
|
-
const
|
688
|
+
const Ht = lt.litHtmlPolyfillSupport;
|
689
|
+
Ht?.(Y, Z), ((mt = lt.litHtmlVersions) !== null && mt !== void 0 ? mt : lt.litHtmlVersions = []).push("2.8.0");
|
690
|
+
const Lr = (e, t, r) => {
|
690
691
|
var s, n;
|
691
692
|
const i = (s = r?.renderBefore) !== null && s !== void 0 ? s : t;
|
692
693
|
let o = i._$litPart$;
|
@@ -713,7 +714,7 @@ class G extends O {
|
|
713
714
|
}
|
714
715
|
update(t) {
|
715
716
|
const r = this.render();
|
716
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
717
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Lr(r, this.renderRoot, this.renderOptions);
|
717
718
|
}
|
718
719
|
connectedCallback() {
|
719
720
|
var t;
|
@@ -728,23 +729,23 @@ class G extends O {
|
|
728
729
|
}
|
729
730
|
}
|
730
731
|
G.finalized = !0, G._$litElement$ = !0, (ft = globalThis.litElementHydrateSupport) === null || ft === void 0 || ft.call(globalThis, { LitElement: G });
|
731
|
-
const
|
732
|
-
|
732
|
+
const Ft = globalThis.litElementPolyfillSupport;
|
733
|
+
Ft?.({ LitElement: G });
|
733
734
|
((vt = globalThis.litElementVersions) !== null && vt !== void 0 ? vt : globalThis.litElementVersions = []).push("3.3.3");
|
734
735
|
/**
|
735
736
|
* @license
|
736
737
|
* Copyright 2018 Google LLC
|
737
738
|
* SPDX-License-Identifier: BSD-3-Clause
|
738
739
|
*/
|
739
|
-
const
|
740
|
-
function
|
741
|
-
const t = e.replace(
|
740
|
+
const Nr = (e) => e ?? b, Or = /[A-ZÀ-ÖÙ-Ý]+/g, Vr = /[a-zà-öù-ý]+/g;
|
741
|
+
function Ur(e) {
|
742
|
+
const t = e.replace(Or, r).match(Vr);
|
742
743
|
return t ? t.join("-") : "";
|
743
744
|
function r(s) {
|
744
745
|
return " " + (s.length > 2 ? s.slice(0, -1) + " " + s.slice(-1) : s).toLowerCase();
|
745
746
|
}
|
746
747
|
}
|
747
|
-
function
|
748
|
+
function Ir() {
|
748
749
|
const e = {};
|
749
750
|
return {
|
750
751
|
has: (t) => Object.hasOwnProperty.call(e, t),
|
@@ -754,21 +755,21 @@ function Ur() {
|
|
754
755
|
}
|
755
756
|
};
|
756
757
|
}
|
757
|
-
function
|
758
|
-
const r =
|
758
|
+
function qr(e, t) {
|
759
|
+
const r = Ir();
|
759
760
|
return (...s) => {
|
760
761
|
const n = e(...s);
|
761
762
|
return r.has(n) || r.set(n, t(...s)), r.get(n);
|
762
763
|
};
|
763
764
|
}
|
764
|
-
var
|
765
|
-
async function
|
765
|
+
var Br = (e) => e, pe = qr(Br, Ur), zr = (e) => (t) => e.includes(t), Dr = zr(["paymentMethod", "source", "token"]);
|
766
|
+
async function jr(e) {
|
766
767
|
const { ok: t, statusText: r } = e;
|
767
768
|
if (!t)
|
768
769
|
throw new Error(r);
|
769
770
|
return e;
|
770
771
|
}
|
771
|
-
function
|
772
|
+
function Hr(e) {
|
772
773
|
return "addInitializer" in e.constructor;
|
773
774
|
}
|
774
775
|
var W = class {
|
@@ -784,7 +785,7 @@ var W = class {
|
|
784
785
|
}
|
785
786
|
set(e, t) {
|
786
787
|
const r = this.values.get(e);
|
787
|
-
this.values.set(e, t),
|
788
|
+
this.values.set(e, t), Hr(this.host) ? this.host.requestUpdate(e, r) : this.host.requestUpdate();
|
788
789
|
}
|
789
790
|
}, Ct = W;
|
790
791
|
Ct.instances = /* @__PURE__ */ new Map();
|
@@ -812,7 +813,7 @@ d.set = function(e, t) {
|
|
812
813
|
for (const [s, n] of Object.entries(t))
|
813
814
|
r.set(s, n);
|
814
815
|
};
|
815
|
-
var
|
816
|
+
var Fr = class extends Event {
|
816
817
|
constructor(e, t, r, s) {
|
817
818
|
super(`${s ?? e.toLowerCase()}-changed`), this.key = e, this.oldValue = t, this.value = r, this.detail = { value: r };
|
818
819
|
}
|
@@ -825,23 +826,23 @@ var Hr = class extends Event {
|
|
825
826
|
hostUpdated() {
|
826
827
|
for (const [e, t] of this.cache) {
|
827
828
|
const r = this.host[e], { attribute: s } = this.host.constructor.getPropertyOptions(e) ?? {}, n = typeof s == "string" ? s : null;
|
828
|
-
this.cache.set(e, r), this.host.dispatchEvent(new
|
829
|
+
this.cache.set(e, r), this.host.dispatchEvent(new Fr(e, t, r, n));
|
829
830
|
}
|
830
831
|
}
|
831
|
-
},
|
832
|
-
|
832
|
+
}, he = st;
|
833
|
+
he.instances = /* @__PURE__ */ new Map();
|
833
834
|
function w(e, t) {
|
834
835
|
e.constructor.addInitializer((r) => {
|
835
|
-
new
|
836
|
+
new he(r).cache.set(t, r[t]);
|
836
837
|
});
|
837
838
|
}
|
838
|
-
function
|
839
|
+
function Wr(e) {
|
839
840
|
return (t, r, s) => {
|
840
841
|
const n = s.value;
|
841
842
|
return s.value = e(n), s;
|
842
843
|
};
|
843
844
|
}
|
844
|
-
var Et =
|
845
|
+
var Et = Wr(function(e) {
|
845
846
|
const { name: t } = e;
|
846
847
|
return async function(...r) {
|
847
848
|
if (!this.stripe)
|
@@ -849,29 +850,29 @@ var Et = Fr(function(e) {
|
|
849
850
|
return e.call(this, ...r).then(this.handleResponse);
|
850
851
|
};
|
851
852
|
});
|
852
|
-
function
|
853
|
+
function Wt(e) {
|
853
854
|
if (e.error)
|
854
855
|
throw e.error;
|
855
856
|
return e;
|
856
857
|
}
|
857
|
-
var
|
858
|
-
for (var n = s > 1 ? void 0 : s ?
|
858
|
+
var Gr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, a = (e, t, r, s) => {
|
859
|
+
for (var n = s > 1 ? void 0 : s ? Kr(t, r) : t, i = e.length - 1, o; i >= 0; i--)
|
859
860
|
(o = e[i]) && (n = (s ? o(t, r, n) : o(n)) || n);
|
860
|
-
return s && n &&
|
861
|
-
},
|
861
|
+
return s && n && Gr(t, r, n), n;
|
862
|
+
}, me = (e, t, r) => {
|
862
863
|
if (!t.has(e))
|
863
864
|
throw TypeError("Cannot " + r);
|
864
|
-
},
|
865
|
+
}, Gt = (e, t, r) => (me(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Kt = (e, t, r) => {
|
865
866
|
if (t.has(e))
|
866
867
|
throw TypeError("Cannot add the same private member more than once");
|
867
868
|
t instanceof WeakSet ? t.add(e) : t.set(e, r);
|
868
|
-
},
|
869
|
-
function
|
869
|
+
}, Jt = (e, t, r, s) => (me(e, t, "write to private field"), t.set(e, r), r);
|
870
|
+
function Yt() {
|
870
871
|
return (Date.now() + Math.random() * 1e3).toString(36).substr(0, 8);
|
871
872
|
}
|
872
|
-
var
|
873
|
+
var Jr = class {
|
873
874
|
constructor(e, t) {
|
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-${
|
875
|
+
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-${Yt()}`;
|
875
876
|
}
|
876
877
|
get mount() {
|
877
878
|
return document.getElementById(this.mountId);
|
@@ -883,7 +884,7 @@ var Kr = class {
|
|
883
884
|
this.destroyMountPoints();
|
884
885
|
}
|
885
886
|
resetMountId() {
|
886
|
-
return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${
|
887
|
+
return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${Yt()}`;
|
887
888
|
}
|
888
889
|
createMountPoint() {
|
889
890
|
const e = document.createElement("div");
|
@@ -929,39 +930,39 @@ function nt(e) {
|
|
929
930
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
930
931
|
}, nt(e);
|
931
932
|
}
|
932
|
-
var
|
933
|
-
for (var t = document.querySelectorAll('script[src^="'.concat(
|
933
|
+
var ye = "https://js.stripe.com/v3", Yr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Zt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Zr = function() {
|
934
|
+
for (var t = document.querySelectorAll('script[src^="'.concat(ye, '"]')), r = 0; r < t.length; r++) {
|
934
935
|
var s = t[r];
|
935
|
-
if (
|
936
|
+
if (Yr.test(s.src))
|
936
937
|
return s;
|
937
938
|
}
|
938
939
|
return null;
|
939
|
-
},
|
940
|
+
}, Xr = function(t) {
|
940
941
|
var r = t && !t.advancedFraudSignals ? "?advancedFraudSignals=false" : "", s = document.createElement("script");
|
941
|
-
s.src = "".concat(
|
942
|
+
s.src = "".concat(ye).concat(r);
|
942
943
|
var n = document.head || document.body;
|
943
944
|
if (!n)
|
944
945
|
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
945
946
|
return n.appendChild(s), s;
|
946
|
-
},
|
947
|
+
}, Qr = function(t, r) {
|
947
948
|
!t || !t._registerWrapper || t._registerWrapper({
|
948
949
|
name: "stripe-js",
|
949
950
|
version: "1.32.0",
|
950
951
|
startTime: r
|
951
952
|
});
|
952
|
-
}, et = null,
|
953
|
+
}, et = null, ts = function(t) {
|
953
954
|
return et !== null || (et = new Promise(function(r, s) {
|
954
955
|
if (typeof window > "u") {
|
955
956
|
r(null);
|
956
957
|
return;
|
957
958
|
}
|
958
|
-
if (window.Stripe && t && console.warn(
|
959
|
+
if (window.Stripe && t && console.warn(Zt), window.Stripe) {
|
959
960
|
r(window.Stripe);
|
960
961
|
return;
|
961
962
|
}
|
962
963
|
try {
|
963
|
-
var n =
|
964
|
-
n && t ? console.warn(
|
964
|
+
var n = Zr();
|
965
|
+
n && t ? console.warn(Zt) : n || (n = Xr(t)), n.addEventListener("load", function() {
|
965
966
|
window.Stripe ? r(window.Stripe) : s(new Error("Stripe.js not available"));
|
966
967
|
}), n.addEventListener("error", function() {
|
967
968
|
s(new Error("Failed to load Stripe.js"));
|
@@ -971,12 +972,12 @@ var me = "https://js.stripe.com/v3", Jr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
971
972
|
return;
|
972
973
|
}
|
973
974
|
})), et;
|
974
|
-
},
|
975
|
+
}, es = function(t, r, s) {
|
975
976
|
if (t === null)
|
976
977
|
return null;
|
977
978
|
var n = t.apply(void 0, r);
|
978
|
-
return
|
979
|
-
},
|
979
|
+
return Qr(n, s), n;
|
980
|
+
}, rs = function(t) {
|
980
981
|
var r = `invalid load parameters; expected object of shape
|
981
982
|
|
982
983
|
{advancedFraudSignals: boolean}
|
@@ -990,33 +991,33 @@ but received
|
|
990
991
|
if (Object.keys(t).length === 1 && typeof t.advancedFraudSignals == "boolean")
|
991
992
|
return t;
|
992
993
|
throw new Error(r);
|
993
|
-
},
|
994
|
+
}, fe, ve = !1, ge = function() {
|
994
995
|
for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
|
995
996
|
r[s] = arguments[s];
|
996
|
-
|
997
|
+
ve = !0;
|
997
998
|
var n = Date.now();
|
998
|
-
return
|
999
|
-
return
|
999
|
+
return ts(fe).then(function(i) {
|
1000
|
+
return es(i, r, n);
|
1000
1001
|
});
|
1001
1002
|
};
|
1002
|
-
|
1003
|
-
if (
|
1003
|
+
ge.setLoadParameters = function(e) {
|
1004
|
+
if (ve)
|
1004
1005
|
throw new Error("You cannot change load parameters after calling loadStripe");
|
1005
|
-
|
1006
|
+
fe = rs(e);
|
1006
1007
|
};
|
1007
|
-
var
|
1008
|
+
var be = class extends Error {
|
1008
1009
|
constructor(e, t) {
|
1009
1010
|
super(`<${e}>: ${t}`), this.originalMessage = t;
|
1010
1011
|
}
|
1011
1012
|
};
|
1012
|
-
function
|
1013
|
-
return !!e && e instanceof
|
1013
|
+
function Se(e) {
|
1014
|
+
return !!e && e instanceof be;
|
1014
1015
|
}
|
1015
|
-
var
|
1016
|
-
toAttribute: (e) => e ?
|
1016
|
+
var ss = {
|
1017
|
+
toAttribute: (e) => e ? Se(e) ? e.originalMessage : e.message || "" : null
|
1017
1018
|
}, h = class extends G {
|
1018
1019
|
constructor() {
|
1019
|
-
super(...arguments), this.generate = "source", this.showError = !1, this.locale = "auto", this.paymentMethod = null, this.source = null, this.token = null, this.element = null, this.elements = null, this.error = null, this.focused = !1, this.ready = !1, this.stripe = null, this.theme = "none", this.precomputedStyle = getComputedStyle(this), this.breadcrumb = new
|
1020
|
+
super(...arguments), this.generate = "source", this.showError = !1, this.locale = "auto", this.paymentMethod = null, this.source = null, this.token = null, this.element = null, this.elements = null, this.error = null, this.focused = !1, this.ready = !1, this.stripe = null, this.theme = "none", this.precomputedStyle = getComputedStyle(this), this.breadcrumb = new Jr(this, {
|
1020
1021
|
slotName: `${this.constructor.is}-slot`
|
1021
1022
|
});
|
1022
1023
|
}
|
@@ -1027,8 +1028,8 @@ var rs = {
|
|
1027
1028
|
return this.breadcrumb.mount;
|
1028
1029
|
}
|
1029
1030
|
render() {
|
1030
|
-
const { error: e, showError: t } = this, { slotName: r } = this.breadcrumb, s =
|
1031
|
-
return
|
1031
|
+
const { error: e, showError: t } = this, { slotName: r } = this.breadcrumb, s = Se(e) ? e.originalMessage : e?.message;
|
1032
|
+
return Er`
|
1032
1033
|
<div id="stripe" part="stripe">
|
1033
1034
|
<slot id="stripe-slot" name="${r}"></slot>
|
1034
1035
|
</div>
|
@@ -1037,7 +1038,7 @@ var rs = {
|
|
1037
1038
|
for="stripe"
|
1038
1039
|
part="error"
|
1039
1040
|
?hidden="${!t}">
|
1040
|
-
${
|
1041
|
+
${Nr(s)}
|
1041
1042
|
</output>
|
1042
1043
|
`;
|
1043
1044
|
}
|
@@ -1057,7 +1058,7 @@ var rs = {
|
|
1057
1058
|
this.element?.focus();
|
1058
1059
|
}
|
1059
1060
|
createError(e) {
|
1060
|
-
return new
|
1061
|
+
return new be(this.constructor.is, e);
|
1061
1062
|
}
|
1062
1063
|
errorChanged() {
|
1063
1064
|
this.resetRepresentations(), this.fireError(this.error);
|
@@ -1092,7 +1093,7 @@ var rs = {
|
|
1092
1093
|
d.set(this, { elements: null, element: null, stripe: null });
|
1093
1094
|
else
|
1094
1095
|
try {
|
1095
|
-
const s = { stripeAccount: t, locale: r }, n = window.Stripe ? window.Stripe(e, s) : await
|
1096
|
+
const s = { stripeAccount: t, locale: r }, n = window.Stripe ? window.Stripe(e, s) : await ge(e, s), i = n?.elements();
|
1096
1097
|
d.set(this, { elements: i, error: null, stripe: n });
|
1097
1098
|
} catch (s) {
|
1098
1099
|
console.warn(s);
|
@@ -1121,13 +1122,13 @@ var rs = {
|
|
1121
1122
|
}
|
1122
1123
|
async postRepresentation() {
|
1123
1124
|
const e = (l) => d.set(this, { error: l }), t = (l) => this.fire("success", l), r = this.token || void 0, s = this.source || void 0, n = this.paymentMethod || void 0, i = JSON.stringify({ token: r, source: s, paymentMethod: n }), o = { "Content-Type": "application/json" };
|
1124
|
-
return fetch(this.action, { body: i, headers: o, method: "POST" }).then(
|
1125
|
+
return fetch(this.action, { body: i, headers: o, method: "POST" }).then(jr).then(t).catch(e);
|
1125
1126
|
}
|
1126
1127
|
representationChanged(e) {
|
1127
|
-
if (!
|
1128
|
+
if (!Dr(e))
|
1128
1129
|
return;
|
1129
1130
|
const t = this[e];
|
1130
|
-
t && (this.fire(`${
|
1131
|
+
t && (this.fire(`${pe(e)}`, t), this.action && this.postRepresentation());
|
1131
1132
|
}
|
1132
1133
|
resetRepresentations() {
|
1133
1134
|
d.set(this, {
|
@@ -1185,7 +1186,7 @@ a([
|
|
1185
1186
|
a([
|
1186
1187
|
d,
|
1187
1188
|
w,
|
1188
|
-
u({ type: Object, reflect: !0, converter:
|
1189
|
+
u({ type: Object, reflect: !0, converter: ss })
|
1189
1190
|
], h.prototype, "error", 2);
|
1190
1191
|
a([
|
1191
1192
|
d,
|
@@ -1237,7 +1238,7 @@ a([
|
|
1237
1238
|
a([
|
1238
1239
|
C
|
1239
1240
|
], h.prototype, "onReady", 1);
|
1240
|
-
var
|
1241
|
+
var ns = _t`[hidden] {
|
1241
1242
|
display: none !important;
|
1242
1243
|
}
|
1243
1244
|
|
@@ -1252,7 +1253,7 @@ var ss = _t`[hidden] {
|
|
1252
1253
|
padding-left: 42px;
|
1253
1254
|
padding-bottom: 10px;
|
1254
1255
|
}
|
1255
|
-
`,
|
1256
|
+
`, $e = ns, is = _t`:host {
|
1256
1257
|
min-width: var(--stripe-elements-width, 300px);
|
1257
1258
|
min-height: var(--stripe-elements-height, 50px);
|
1258
1259
|
}
|
@@ -1275,7 +1276,7 @@ var ss = _t`[hidden] {
|
|
1275
1276
|
:host([error]) #stripe {
|
1276
1277
|
border-color: #fa755a;
|
1277
1278
|
}
|
1278
|
-
`,
|
1279
|
+
`, os = is, Xt = [
|
1279
1280
|
"color",
|
1280
1281
|
"fontFamily",
|
1281
1282
|
"fontSize",
|
@@ -1288,7 +1289,7 @@ var ss = _t`[hidden] {
|
|
1288
1289
|
"textDecoration",
|
1289
1290
|
"textShadow",
|
1290
1291
|
"textTransform"
|
1291
|
-
],
|
1292
|
+
], as = [
|
1292
1293
|
":hover",
|
1293
1294
|
":focus",
|
1294
1295
|
"::placeholder",
|
@@ -1353,19 +1354,19 @@ var ss = _t`[hidden] {
|
|
1353
1354
|
const c = o.split(":").pop();
|
1354
1355
|
return {
|
1355
1356
|
...i,
|
1356
|
-
[o]:
|
1357
|
+
[o]: Xt.reduce(s(`${n}-${c}`), {})
|
1357
1358
|
};
|
1358
1359
|
}, s = (n) => (i, o) => {
|
1359
|
-
const c = `--stripe-elements-${n}-${
|
1360
|
+
const c = `--stripe-elements-${n}-${pe(o)}`;
|
1360
1361
|
return {
|
1361
1362
|
...i,
|
1362
1363
|
[o]: e(c),
|
1363
|
-
...
|
1364
|
+
...as.reduce(r(n), {})
|
1364
1365
|
};
|
1365
1366
|
};
|
1366
1367
|
return t.reduce((n, i) => ({
|
1367
1368
|
...n,
|
1368
|
-
[i]:
|
1369
|
+
[i]: Xt.reduce(s(i), {})
|
1369
1370
|
}), {});
|
1370
1371
|
}
|
1371
1372
|
async initElement() {
|
@@ -1393,8 +1394,8 @@ var ss = _t`[hidden] {
|
|
1393
1394
|
$.is = "stripe-elements";
|
1394
1395
|
$.elementType = "card";
|
1395
1396
|
$.styles = [
|
1396
|
-
|
1397
|
-
|
1397
|
+
$e,
|
1398
|
+
os
|
1398
1399
|
];
|
1399
1400
|
a([
|
1400
1401
|
u({ type: Boolean, attribute: "hide-icon" })
|
@@ -1441,57 +1442,57 @@ a([
|
|
1441
1442
|
C
|
1442
1443
|
], $.prototype, "onChange", 1);
|
1443
1444
|
$ = a([
|
1444
|
-
|
1445
|
+
ie("stripe-elements")
|
1445
1446
|
], $);
|
1446
|
-
var
|
1447
|
+
var ls = _t`#stripe {
|
1447
1448
|
box-sizing: border-box;
|
1448
1449
|
min-width: var(--stripe-payment-request-element-min-width, 300px);
|
1449
1450
|
padding: var(--stripe-payment-request-element-padding, 8px 12px);
|
1450
1451
|
background: var(--stripe-payment-request-element-background, white);
|
1451
1452
|
}
|
1452
|
-
`,
|
1453
|
-
function
|
1453
|
+
`, us = ls;
|
1454
|
+
function cs(e) {
|
1454
1455
|
return e.tagName.toLowerCase() === "stripe-display-item";
|
1455
1456
|
}
|
1456
|
-
function
|
1457
|
+
function ds({ dataset: { amount: e, label: t, pending: r } }) {
|
1457
1458
|
return {
|
1458
1459
|
label: t,
|
1459
1460
|
amount: parseInt(e),
|
1460
1461
|
...r !== void 0 && { pending: r === "true" }
|
1461
1462
|
};
|
1462
1463
|
}
|
1463
|
-
function
|
1464
|
+
function ps({ dataset: { amount: e, detail: t, ...r } }) {
|
1464
1465
|
return {
|
1465
1466
|
amount: parseInt(e),
|
1466
1467
|
detail: t,
|
1467
1468
|
...r
|
1468
1469
|
};
|
1469
1470
|
}
|
1470
|
-
function
|
1471
|
-
return
|
1471
|
+
function hs(e) {
|
1472
|
+
return cs(e) ? ds(e) : ps(e);
|
1472
1473
|
}
|
1473
1474
|
var it, ot, m = class extends h {
|
1474
1475
|
constructor() {
|
1475
|
-
super(...arguments), this.canMakePayment = null,
|
1476
|
+
super(...arguments), this.canMakePayment = null, Kt(this, it, void 0), this.paymentIntent = null, this.paymentRequest = null, this.pending = !1, Kt(this, ot, void 0), this.buttonType = "default", this.buttonTheme = "dark", this.complete = async (e, t) => {
|
1476
1477
|
const { error: r = null } = { ...e }, s = r || t ? "fail" : "success";
|
1477
1478
|
return e.complete(s), this.fire(s, e), t ? { error: t } : e;
|
1478
1479
|
};
|
1479
1480
|
}
|
1480
1481
|
get displayItems() {
|
1481
|
-
const e =
|
1482
|
+
const e = Gt(this, it);
|
1482
1483
|
return Array.isArray(e) ? e : this.parseDatasets("stripe-display-item");
|
1483
1484
|
}
|
1484
1485
|
set displayItems(e) {
|
1485
1486
|
const t = this.displayItems;
|
1486
|
-
|
1487
|
+
Jt(this, it, e), this.requestUpdate("displayItems", t);
|
1487
1488
|
}
|
1488
1489
|
get shippingOptions() {
|
1489
|
-
const e =
|
1490
|
+
const e = Gt(this, ot);
|
1490
1491
|
return Array.isArray(e) ? e : this.parseDatasets("stripe-shipping-option");
|
1491
1492
|
}
|
1492
1493
|
set shippingOptions(e) {
|
1493
1494
|
const t = this.shippingOptions;
|
1494
|
-
|
1495
|
+
Jt(this, ot, e), this.requestUpdate("shippingOptions", t);
|
1495
1496
|
}
|
1496
1497
|
reset() {
|
1497
1498
|
super.reset(), d.set(this, { paymentIntent: null });
|
@@ -1579,7 +1580,7 @@ var it, ot, m = class extends h {
|
|
1579
1580
|
d.set(this, { error: t, paymentMethod: r, source: s, token: n }), this.clientSecret && !t ? this.confirmPaymentIntent(e) : this.complete(e);
|
1580
1581
|
}
|
1581
1582
|
async confirmPaymentIntent(e) {
|
1582
|
-
const t = { payment_method: this.paymentMethod.id }, r = await this.confirmCardPayment(t, { handleActions: !1 }).then(({ error: i }) => this.complete(e, i)).then(
|
1583
|
+
const t = { payment_method: this.paymentMethod.id }, r = await this.confirmCardPayment(t, { handleActions: !1 }).then(({ error: i }) => this.complete(e, i)).then(Wt).then(() => this.confirmCardPayment()).then(Wt).catch((i) => ({ error: i })), { error: s = null } = r, n = r.paymentIntent ?? null;
|
1583
1584
|
d.set(this, { error: s, paymentIntent: n }), await this.updateComplete;
|
1584
1585
|
}
|
1585
1586
|
async confirmCardPayment(e, t) {
|
@@ -1593,15 +1594,15 @@ var it, ot, m = class extends h {
|
|
1593
1594
|
}
|
1594
1595
|
parseDatasets(e) {
|
1595
1596
|
const t = [...this.querySelectorAll(e)];
|
1596
|
-
return t.length ? t.map(
|
1597
|
+
return t.length ? t.map(hs) : [];
|
1597
1598
|
}
|
1598
1599
|
};
|
1599
1600
|
it = /* @__PURE__ */ new WeakMap();
|
1600
1601
|
ot = /* @__PURE__ */ new WeakMap();
|
1601
1602
|
m.is = "stripe-payment-request";
|
1602
1603
|
m.styles = [
|
1603
|
-
|
1604
|
-
|
1604
|
+
$e,
|
1605
|
+
us
|
1605
1606
|
];
|
1606
1607
|
a([
|
1607
1608
|
u({ type: Number, reflect: !0 })
|
@@ -1675,11 +1676,11 @@ a([
|
|
1675
1676
|
C
|
1676
1677
|
], m.prototype, "onShippingoptionchange", 1);
|
1677
1678
|
m = a([
|
1678
|
-
|
1679
|
+
ie("stripe-payment-request")
|
1679
1680
|
], m);
|
1680
|
-
const
|
1681
|
+
const we = Re({
|
1681
1682
|
components: {
|
1682
|
-
BFormattedAmount:
|
1683
|
+
BFormattedAmount: Fe
|
1683
1684
|
},
|
1684
1685
|
computed: {
|
1685
1686
|
termsAndConditionsUrl() {
|
@@ -1709,7 +1710,7 @@ const $e = ke({
|
|
1709
1710
|
// eslint-disable-next-line camelcase
|
1710
1711
|
payment_method: e.detail.id
|
1711
1712
|
});
|
1712
|
-
r.error
|
1713
|
+
r.error ? this.onPaymentError(r) : this.withAction ? this.$eventBus.$emit(Le.PaymentSuccess) : this.$emit("success");
|
1713
1714
|
} catch (t) {
|
1714
1715
|
this.onPaymentError(t);
|
1715
1716
|
}
|
@@ -1724,14 +1725,24 @@ const $e = ke({
|
|
1724
1725
|
}
|
1725
1726
|
}
|
1726
1727
|
},
|
1728
|
+
mixins: [
|
1729
|
+
kt({
|
1730
|
+
fallbackValue: !1,
|
1731
|
+
propsName: "loading"
|
1732
|
+
}),
|
1733
|
+
kt({
|
1734
|
+
fallbackValue: !1,
|
1735
|
+
propsName: "disabled"
|
1736
|
+
})
|
1737
|
+
],
|
1727
1738
|
name: "CreditCardForm",
|
1728
|
-
props:
|
1739
|
+
props: nr,
|
1729
1740
|
setup() {
|
1730
|
-
const { t: e } =
|
1731
|
-
() =>
|
1741
|
+
const { t: e } = Te(), { config: t } = xe(), r = te(
|
1742
|
+
() => sr(t.value.apiEnvironment)
|
1732
1743
|
), s = At(!1), n = At(null);
|
1733
|
-
return
|
1734
|
-
n.value = await
|
1744
|
+
return Me(async () => {
|
1745
|
+
n.value = await fr(r.value), s.value = !0;
|
1735
1746
|
}), {
|
1736
1747
|
pk: r,
|
1737
1748
|
stripeLoaded: s,
|
@@ -1739,7 +1750,7 @@ const $e = ke({
|
|
1739
1750
|
};
|
1740
1751
|
}
|
1741
1752
|
});
|
1742
|
-
function
|
1753
|
+
function Qt(e) {
|
1743
1754
|
const t = e;
|
1744
1755
|
t.__i18n = t.__i18n || [], t.__i18n.push({
|
1745
1756
|
locale: "",
|
@@ -1859,13 +1870,13 @@ function Xt(e) {
|
|
1859
1870
|
}
|
1860
1871
|
});
|
1861
1872
|
}
|
1862
|
-
const
|
1863
|
-
...
|
1864
|
-
...
|
1865
|
-
}, "VCheckbox"),
|
1873
|
+
const ms = Oe({
|
1874
|
+
...rr(),
|
1875
|
+
...qe(Ze(), ["inline"])
|
1876
|
+
}, "VCheckbox"), ys = Ne()({
|
1866
1877
|
name: "VCheckbox",
|
1867
1878
|
inheritAttrs: !1,
|
1868
|
-
props:
|
1879
|
+
props: ms(),
|
1869
1880
|
emits: {
|
1870
1881
|
"update:modelValue": (e) => !0,
|
1871
1882
|
"update:focused": (e) => !0
|
@@ -1875,14 +1886,14 @@ const hs = Ne({
|
|
1875
1886
|
attrs: r,
|
1876
1887
|
slots: s
|
1877
1888
|
} = t;
|
1878
|
-
const n =
|
1889
|
+
const n = Ve(e, "modelValue"), {
|
1879
1890
|
isFocused: i,
|
1880
1891
|
focus: o,
|
1881
1892
|
blur: c
|
1882
|
-
} =
|
1883
|
-
return
|
1884
|
-
const [y, f] =
|
1885
|
-
return g(
|
1893
|
+
} = er(e), l = Ue(), p = te(() => e.id || `checkbox-${l}`);
|
1894
|
+
return We(() => {
|
1895
|
+
const [y, f] = Ie(r), S = xt.filterProps(e), _ = Rt.filterProps(e);
|
1896
|
+
return g(xt, Pt({
|
1886
1897
|
class: ["v-checkbox", e.class]
|
1887
1898
|
}, y, S, {
|
1888
1899
|
modelValue: n.value,
|
@@ -1895,20 +1906,20 @@ const hs = Ne({
|
|
1895
1906
|
default: (q) => {
|
1896
1907
|
let {
|
1897
1908
|
id: L,
|
1898
|
-
messagesId:
|
1899
|
-
isDisabled:
|
1900
|
-
isReadonly:
|
1901
|
-
isValid:
|
1909
|
+
messagesId: _e,
|
1910
|
+
isDisabled: Ce,
|
1911
|
+
isReadonly: Ee,
|
1912
|
+
isValid: Ae
|
1902
1913
|
} = q;
|
1903
|
-
return g(
|
1914
|
+
return g(Rt, Pt(_, {
|
1904
1915
|
id: L.value,
|
1905
|
-
"aria-describedby":
|
1906
|
-
disabled:
|
1907
|
-
readonly:
|
1916
|
+
"aria-describedby": _e.value,
|
1917
|
+
disabled: Ce.value,
|
1918
|
+
readonly: Ee.value
|
1908
1919
|
}, f, {
|
1909
|
-
error:
|
1920
|
+
error: Ae.value === !1,
|
1910
1921
|
modelValue: n.value,
|
1911
|
-
"onUpdate:modelValue": (
|
1922
|
+
"onUpdate:modelValue": (Pe) => n.value = Pe,
|
1912
1923
|
onFocus: o,
|
1913
1924
|
onBlur: c
|
1914
1925
|
}), s);
|
@@ -1916,26 +1927,26 @@ const hs = Ne({
|
|
1916
1927
|
});
|
1917
1928
|
}), {};
|
1918
1929
|
}
|
1919
|
-
}),
|
1920
|
-
function
|
1921
|
-
const o =
|
1922
|
-
return A(), k(
|
1923
|
-
disabled: e.
|
1930
|
+
}), fs = { class: "w-100 d-flex justify-space-between items-center" }, vs = { class: "text-caption font-weight-bold text-center my-0 text-red rounded" }, gs = { class: "pr-3" }, bs = ["locale", "publishable-key"], Ss = ["innerHTML"], $s = { class: "mr-1" };
|
1931
|
+
function ws(e, t, r, s, n, i) {
|
1932
|
+
const o = Be("BFormattedAmount");
|
1933
|
+
return A(), k(Tt, {
|
1934
|
+
disabled: e.parsedDisabled,
|
1924
1935
|
elevation: "0",
|
1925
1936
|
border: "",
|
1926
|
-
style:
|
1927
|
-
borderColor: e.
|
1937
|
+
style: He({
|
1938
|
+
borderColor: e.parsedDisabled ? null : "rgb(var(--v-theme-primary))"
|
1928
1939
|
})
|
1929
1940
|
}, {
|
1930
1941
|
default: v(() => [
|
1931
|
-
g(
|
1942
|
+
g(Ye, {
|
1932
1943
|
class: "text-white",
|
1933
1944
|
color: "primary",
|
1934
1945
|
density: "compact",
|
1935
1946
|
elevation: "0"
|
1936
1947
|
}, {
|
1937
1948
|
default: v(() => [
|
1938
|
-
E("div",
|
1949
|
+
E("div", fs, [
|
1939
1950
|
E("h4", null, [
|
1940
1951
|
g(ct, {
|
1941
1952
|
color: "white",
|
@@ -1949,15 +1960,15 @@ function $s(e, t, r, s, n, i) {
|
|
1949
1960
|
__: [5]
|
1950
1961
|
}),
|
1951
1962
|
X(" " + R(e.t("CreditCardForm.title")) + ": ", 1),
|
1952
|
-
e.
|
1953
|
-
key:
|
1963
|
+
e.parsedLoading ? (A(), k(Ke, {
|
1964
|
+
key: 0,
|
1954
1965
|
class: "ml-2",
|
1955
1966
|
color: "primary",
|
1956
1967
|
indeterminate: "",
|
1957
1968
|
size: "20",
|
1958
1969
|
width: "1"
|
1959
1970
|
})) : (A(), k(o, {
|
1960
|
-
key:
|
1971
|
+
key: 1,
|
1961
1972
|
amount: e.amount,
|
1962
1973
|
class: "font-weight-bold",
|
1963
1974
|
currency: e.currency
|
@@ -1978,20 +1989,20 @@ function $s(e, t, r, s, n, i) {
|
|
1978
1989
|
]),
|
1979
1990
|
_: 1
|
1980
1991
|
}),
|
1981
|
-
g(
|
1992
|
+
g(Qe, null, {
|
1982
1993
|
default: v(() => [
|
1983
1994
|
g(D, null, {
|
1984
1995
|
default: v(() => [
|
1985
1996
|
g(N, null, {
|
1986
1997
|
default: v(() => [
|
1987
|
-
e.error ? (A(), k(
|
1998
|
+
e.error ? (A(), k(Xe, {
|
1988
1999
|
key: 0,
|
1989
2000
|
color: "red",
|
1990
2001
|
density: "compact",
|
1991
2002
|
variant: "outlined"
|
1992
2003
|
}, {
|
1993
2004
|
default: v(() => [
|
1994
|
-
E("p",
|
2005
|
+
E("p", vs, R(e.t("CreditCardForm.paymentDeclined")) + ": " + R(e.error), 1)
|
1995
2006
|
]),
|
1996
2007
|
_: 1
|
1997
2008
|
})) : z("", !0)
|
@@ -2017,7 +2028,7 @@ function $s(e, t, r, s, n, i) {
|
|
2017
2028
|
cols: "4"
|
2018
2029
|
}, {
|
2019
2030
|
default: v(() => [
|
2020
|
-
E("small",
|
2031
|
+
E("small", gs, R(e.t("CreditCardForm.expDate")), 1),
|
2021
2032
|
E("small", null, R(e.t("CreditCardForm.cvc")), 1)
|
2022
2033
|
]),
|
2023
2034
|
_: 1
|
@@ -2029,16 +2040,16 @@ function $s(e, t, r, s, n, i) {
|
|
2029
2040
|
default: v(() => [
|
2030
2041
|
g(N, null, {
|
2031
2042
|
default: v(() => [
|
2032
|
-
g(
|
2043
|
+
g(Tt, {
|
2033
2044
|
elevation: "0",
|
2034
2045
|
border: ""
|
2035
2046
|
}, {
|
2036
2047
|
default: v(() => [
|
2037
|
-
e.stripeLoaded ? (A(),
|
2048
|
+
e.stripeLoaded ? (A(), ze("stripe-elements", {
|
2038
2049
|
key: 0,
|
2039
2050
|
ref: "payment",
|
2040
|
-
class:
|
2041
|
-
"d-none": e.
|
2051
|
+
class: De({
|
2052
|
+
"d-none": e.parsedLoading
|
2042
2053
|
}),
|
2043
2054
|
generate: "payment-method",
|
2044
2055
|
"hide-postal-code": "",
|
@@ -2047,8 +2058,8 @@ function $s(e, t, r, s, n, i) {
|
|
2047
2058
|
onChange: t[0] || (t[0] = (...c) => e.onCreditCardFormChange && e.onCreditCardFormChange(...c)),
|
2048
2059
|
onError: t[1] || (t[1] = (...c) => e.onPaymentError && e.onPaymentError(...c)),
|
2049
2060
|
onPaymentMethod: t[2] || (t[2] = (...c) => e.onStripePayment && e.onStripePayment(...c))
|
2050
|
-
}, null, 42,
|
2051
|
-
e.
|
2061
|
+
}, null, 42, bs)) : z("", !0),
|
2062
|
+
e.parsedLoading ? (A(), k(tr, {
|
2052
2063
|
key: 1,
|
2053
2064
|
class: "mx-auto",
|
2054
2065
|
height: "36.8px",
|
@@ -2071,7 +2082,7 @@ function $s(e, t, r, s, n, i) {
|
|
2071
2082
|
default: v(() => [
|
2072
2083
|
g(N, null, {
|
2073
2084
|
default: v(() => [
|
2074
|
-
g(
|
2085
|
+
g(ys, {
|
2075
2086
|
ref: "testing",
|
2076
2087
|
modelValue: e.isTermsAccepted,
|
2077
2088
|
"onUpdate:modelValue": t[4] || (t[4] = (c) => e.isTermsAccepted = c),
|
@@ -2080,12 +2091,12 @@ function $s(e, t, r, s, n, i) {
|
|
2080
2091
|
}, {
|
2081
2092
|
label: v(() => [
|
2082
2093
|
E("span", {
|
2083
|
-
onClick: t[3] || (t[3] =
|
2094
|
+
onClick: t[3] || (t[3] = je(() => {
|
2084
2095
|
}, ["stop"])),
|
2085
2096
|
innerHTML: e.t("CreditCardForm.termsAndConditions", {
|
2086
2097
|
url: e.termsAndConditionsUrl
|
2087
2098
|
})
|
2088
|
-
}, null, 8,
|
2099
|
+
}, null, 8, Ss)
|
2089
2100
|
]),
|
2090
2101
|
_: 1
|
2091
2102
|
}, 8, ["modelValue", "error"])
|
@@ -2099,12 +2110,12 @@ function $s(e, t, r, s, n, i) {
|
|
2099
2110
|
default: v(() => [
|
2100
2111
|
g(N, { class: "d-flex justify-end flex-column flex-sm-row mb-1 align-center mt-4 mt-sm-0" }, {
|
2101
2112
|
default: v(() => [
|
2102
|
-
g(
|
2113
|
+
g(Je, {
|
2103
2114
|
class: "w-100 w-sm-auto",
|
2104
2115
|
color: "primary",
|
2105
2116
|
variant: "flat",
|
2106
|
-
disabled: e.
|
2107
|
-
loading: e.
|
2117
|
+
disabled: e.parsedDisabled || e.withTerms && !e.isTermsAccepted,
|
2118
|
+
loading: e.parsedLoading,
|
2108
2119
|
onClick: e.pay
|
2109
2120
|
}, {
|
2110
2121
|
default: v(() => [
|
@@ -2115,7 +2126,7 @@ function $s(e, t, r, s, n, i) {
|
|
2115
2126
|
_: 1,
|
2116
2127
|
__: [7]
|
2117
2128
|
}),
|
2118
|
-
E("span",
|
2129
|
+
E("span", $s, R(e.t("CreditCardForm.payNow")), 1),
|
2119
2130
|
g(o, {
|
2120
2131
|
amount: e.amount,
|
2121
2132
|
class: "font-weight-bold",
|
@@ -2137,12 +2148,12 @@ function $s(e, t, r, s, n, i) {
|
|
2137
2148
|
_: 1
|
2138
2149
|
}, 8, ["disabled", "style"]);
|
2139
2150
|
}
|
2140
|
-
typeof
|
2141
|
-
const
|
2142
|
-
|
2151
|
+
typeof Qt == "function" && Qt(we);
|
2152
|
+
const Vs = /* @__PURE__ */ Ge(we, [["render", ws], ["__scopeId", "data-v-c250e58b"]]);
|
2153
|
+
ke("css/revolugo.creditcardform.fTmPR0fS.css");
|
2143
2154
|
export {
|
2144
|
-
|
2145
|
-
|
2146
|
-
|
2155
|
+
Vs as C,
|
2156
|
+
ys as V,
|
2157
|
+
nr as c
|
2147
2158
|
};
|
2148
|
-
//# sourceMappingURL=revolugo.creditcardform.
|
2159
|
+
//# sourceMappingURL=revolugo.creditcardform.BcpdCsLn.min.js.map
|