@revolugo/elements 6.9.3-beta.9 → 6.9.4-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/fonts.css +1 -1
- package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +1 -0
- package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +1 -0
- package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +1 -0
- package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +1 -0
- package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +1 -0
- package/dist/css/revolugo.bstarrating.CPHKEfup.css +1 -0
- package/dist/css/revolugo.btag.T7X_iIkW.css +1 -0
- package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +1 -0
- package/dist/css/revolugo.creditcardform.DWne0Lnv.css +1 -0
- package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +1 -0
- package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +1 -0
- package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +1 -0
- package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +1 -0
- package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
- package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +1 -0
- package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +1 -0
- package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +1 -0
- package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +1 -0
- package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
- package/dist/css/revolugo.index.XNPQF1ia.css +5 -0
- package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +1 -0
- package/dist/css/revolugo.prebookform.DmCR7hLv.css +1 -0
- package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +1 -0
- package/dist/css/revolugo.termsandconditions.D8IMR9da.css +1 -0
- package/dist/css/revolugo.vautocomplete.CuVjyvcC.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.vdialog.DwTSAOeg.css +1 -0
- package/dist/css/revolugo.vdivider.CTbbZwnv.css +1 -0
- package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +1 -0
- package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
- package/dist/css/revolugo.vinput.BPiFMorL.css +1 -0
- package/dist/css/revolugo.vlabel.BvKaKg7Y.css +1 -0
- package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
- package/dist/css/revolugo.vmenu.DvKwEp1j.css +1 -0
- package/dist/css/revolugo.vselect.C5CKHFYB.css +1 -0
- package/dist/css/revolugo.vsheet.Dmcoj8cr.css +1 -0
- package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +1 -0
- package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +1 -0
- package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +1 -0
- package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +1 -0
- package/dist/css/revolugo.vtextfield.BIH_AWWP.css +1 -0
- package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
- package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +1 -0
- package/dist/css/{revolugo.webcomponentwrapper.BQSUxe3K.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +1 -1
- package/dist/index.es.min.js +1518 -1275
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +5 -5
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo._baseiteratee.C9fSfygW.min.js +247 -0
- package/dist/revolugo.banktransferdetails.HF-5whLi.min.js +373 -0
- package/dist/revolugo.bdaterangepicker.Dztdr7of.min.js +8327 -0
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js +146 -0
- package/dist/revolugo.bhoteloffersfilterbar.riRikxpD.min.js +4901 -0
- package/dist/revolugo.bhotelroomsdetails.DSVvK0I7.min.js +965 -0
- package/dist/revolugo.bimagecarousel.0DDXWSsX.min.js +566 -0
- package/dist/revolugo.bookingdetailssidebar.B3nJVjzT.min.js +24 -0
- package/dist/revolugo.bookingdetailssidebar.HR95sw2v.min.js +870 -0
- package/dist/revolugo.bookingmanager.CHhySvbL.min.js +1755 -0
- package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.DCBOxir-.min.js +66 -0
- package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.D7d1JNOc.min.js +570 -0
- package/dist/revolugo.btag.C27GlEZ3.min.js +375 -0
- package/dist/revolugo.cancellationpoliciesbadge.CQ9NQZ7F.min.js +28 -0
- package/dist/revolugo.cancellationpoliciesbadge.D7VDRPmO.min.js +198 -0
- package/dist/revolugo.cancellationpolicieslist.DUrr7Myp.min.js +25 -0
- package/dist/revolugo.cancellationpolicieslist.IKkTYxdE.min.js +148 -0
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
- package/dist/revolugo.case-transformers.Blb5hegY.min.js +123 -0
- package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
- package/dist/{revolugo.creditcardstripeform.B8KtVBUI.min.js → revolugo.creditcardform.CejFX150.min.js} +886 -888
- package/dist/revolugo.creditcardform.Dx00l01z.min.js +24 -0
- package/dist/revolugo.creditcardpayment.CkfC2xTo.min.js +885 -0
- package/dist/revolugo.creditcardpayment.DZf0q5_n.min.js +24 -0
- package/dist/revolugo.currencypicker.B9c-AV8V.min.js +328 -0
- package/dist/revolugo.currencypickerbtn.B_lw6N3Y.min.js +24 -0
- package/dist/revolugo.currencypickerbtn.edi3iO6h.min.js +157 -0
- package/dist/revolugo.dates.DiE5ynTe.min.js +31 -0
- package/dist/revolugo.defaultsdeep.EmfuGqBQ.min.js +104 -0
- package/dist/{revolugo.dialog-attach.e4eWyf04.min.js → revolugo.dialog-attach.C4Yvk6WJ.min.js} +2 -2
- package/dist/revolugo.dialog-transition.Dly9KKqO.min.js +111 -0
- package/dist/revolugo.fastbookingflow.DPOX_gos.min.js +34 -0
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
- package/dist/revolugo.fullbookingflow.DSJE_kaM.min.js +429 -0
- package/dist/revolugo.hotel-offer-request.C9zwgVPt.min.js +98 -0
- package/dist/revolugo.hoteldescriptionview.Dtd-_3_8.min.js +24 -0
- package/dist/revolugo.hoteldescriptionview.kERJQPWm.min.js +2738 -0
- package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CiHBAV7m.min.js +239 -0
- package/dist/revolugo.hotelofferlist.BC-TSjS6.min.js +24 -0
- package/dist/revolugo.hotelofferlist.D2AXSf4v.min.js +5640 -0
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
- package/dist/revolugo.hoteloffersearchmenu.BODV4ZIe.min.js +202 -0
- package/dist/revolugo.hoteloffersearchmenuui.DqWHAurZ.min.js +829 -0
- package/dist/revolugo.hoteloffersmap.C6nn7LXn.min.js +8330 -0
- package/dist/revolugo.hoteloffersmap.Db9NNgcN.min.js +24 -0
- package/dist/revolugo.hoteloffersview.BAwQcocI.min.js +19 -0
- package/dist/revolugo.hoteloffersview.CIVNGmGO.min.js +616 -0
- package/dist/revolugo.hotelroomofferlist.C9y91Ya3.min.js +2799 -0
- package/dist/revolugo.hotelroomofferlist.CiBIB0Pb.min.js +24 -0
- package/dist/revolugo.hotelroomofferrequestcreator.props.2Sq_iptZ.min.js +171 -0
- package/dist/revolugo.hotelroomoffersbookingflow.BS4Fa2EH.min.js +1281 -0
- package/dist/revolugo.hotelroomoffersearchmenu.CXgExPhR.min.js +25 -0
- package/dist/revolugo.hotelroomoffersearchmenu.x_--4RXV.min.js +231 -0
- package/dist/revolugo.hotelroomoffersview.BzmRXy0a.min.js +290 -0
- package/dist/revolugo.hotelroomoffersview.CFo6k7zm.min.js +24 -0
- package/dist/revolugo.index.CDNx7Tg4.min.js +67 -0
- package/dist/revolugo.index.DZEISB0K.min.js +1232 -0
- package/dist/{revolugo.index.wc.CiJw1SpW.min.js → revolugo.index.wc.DLkeXtka.min.js} +4659 -4637
- package/dist/revolugo.langpicker.D7zIuy78.min.js +99 -0
- package/dist/revolugo.langpickerbtn.BF7sml8K.min.js +29 -0
- package/dist/revolugo.langpickerbtn.DMcy_gHZ.min.js +131 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.parsed-props.B5g9_9k5.min.js +40 -0
- package/dist/revolugo.pathify.DL0POvNz.min.js +36 -0
- package/dist/revolugo.prebookform.BMEaruyl.min.js +1527 -0
- package/dist/revolugo.prebookform.BVyTAnc9.min.js +24 -0
- package/dist/revolugo.preferencesmenu.5pUjkA0F.min.js +24 -0
- package/dist/revolugo.preferencesmenu.CfUC3L6C.min.js +261 -0
- package/dist/revolugo.roominglisteditor.DLWeU6Ct.min.js +385 -0
- package/dist/revolugo.roominglisteditor.L6CmotRz.min.js +24 -0
- package/dist/revolugo.rounded.C-2ilaaW.min.js +68 -0
- package/dist/revolugo.ssrboot.D7k4-YG4.min.js +18 -0
- package/dist/revolugo.storybooktoolbar.CTe_QwGW.min.js +881 -0
- package/dist/revolugo.termsandconditions.Cue6Dsm7.min.js +404 -0
- package/dist/revolugo.termsandconditions.DBq-dEuI.min.js +23 -0
- package/dist/revolugo.use-breakpoint-service.DsQuZJRM.min.js +39 -0
- package/dist/revolugo.use-dialog-attach.DLdl8iIG.min.js +16 -0
- package/dist/revolugo.use-html-element.c9F9oVPw.min.js +11 -0
- package/dist/revolugo.vautocomplete.Q2U5ECgn.min.js +445 -0
- package/dist/revolugo.vbadge.D-lbOD0r.min.js +112 -0
- package/dist/revolugo.vbtn.B-LYC8rJ.min.js +398 -0
- package/dist/revolugo.vcard.ZlYB5HOk.min.js +313 -0
- package/dist/revolugo.vcheckboxbtn.BGpOwRWV.min.js +478 -0
- package/dist/revolugo.vdialog.DlAgRbIv.min.js +133 -0
- package/dist/revolugo.vdivider.D1ITKKuu.min.js +77 -0
- package/dist/revolugo.vexpansionpanels.D8TtnQrF.min.js +262 -0
- package/dist/revolugo.vform.gu3frP5W.min.js +46 -0
- package/dist/revolugo.vicon.mrg8OisO.min.js +105 -0
- package/dist/revolugo.vinput.BowTI8jK.min.js +463 -0
- package/dist/revolugo.vlabel.BjtrjyZZ.min.js +48 -0
- package/dist/revolugo.vlist.BwlPoH0e.min.js +1299 -0
- package/dist/revolugo.vmenu.Dasw1a1s.min.js +145 -0
- package/dist/revolugo.vselect.B4IzM260.min.js +660 -0
- package/dist/revolugo.vsheet.CDgBUxHk.min.js +72 -0
- package/dist/revolugo.vskeletonloader.DgIjR-8k.min.js +136 -0
- package/dist/revolugo.vslidegroup.BV7NJuLN.min.js +325 -0
- package/dist/revolugo.vsnackbar.DFnMGJQg.min.js +198 -0
- package/dist/revolugo.vspacer.DqnVrVYg.min.js +7 -0
- package/dist/revolugo.vtextarea.CgekaBze.min.js +2092 -0
- package/dist/revolugo.vtextfield.BhmuZsP7.min.js +501 -0
- package/dist/{revolugo.vtoolbar.Ctwu8OKs.min.js → revolugo.vtoolbar.CMwcpp3v.min.js} +44 -42
- package/dist/revolugo.vtooltip.a-r5BxqW.min.js +89 -0
- package/dist/revolugo.vwindowitem.BHzrfo73.min.js +317 -0
- package/dist/revolugo.watch-list.BSqnQNdl.min.js +16 -0
- package/dist/revolugo.webcomponentwrapper.BNmjcBmh.min.js +2088 -0
- package/package.json +5 -5
- package/dist/css/revolugo.cancellationpoliciesbadge.DM3Cgr8A.css +0 -1
- package/dist/css/revolugo.creditcardstripeform.DN5YJSMj.css +0 -1
- package/dist/css/revolugo.index.ClC0OVqq.css +0 -5
- package/dist/css/revolugo.preferencesmenu.D2263Vn6.css +0 -1
- package/dist/revolugo.banktransferdetails.DFskPIBN.min.js +0 -47
- package/dist/revolugo.bookingdetailssidebar.BOs76Qod.min.js +0 -43
- package/dist/revolugo.bookingmanager.DzzQLMr9.min.js +0 -26
- package/dist/revolugo.cancellationpoliciesbadge.BRcM9UUl.min.js +0 -26
- package/dist/revolugo.cancellationpoliciesbadge.props.YZrc252e.min.js +0 -28756
- package/dist/revolugo.cancellationpolicieslist.B7Mf5bmE.min.js +0 -26
- package/dist/revolugo.creditcardstripeform.DkNqhTcH.min.js +0 -50
- package/dist/revolugo.currencypickerbtn.C1B6gpLV.min.js +0 -26
- package/dist/revolugo.fastbookingflow.VfdAOD-j.min.js +0 -36
- package/dist/revolugo.fullbookingflow.CFl16ykj.min.js +0 -26
- package/dist/revolugo.hoteldescriptionview.DTByBiNZ.min.js +0 -26
- package/dist/revolugo.hotelofferlist.HS8rTNwv.min.js +0 -26
- package/dist/revolugo.hoteloffersearchmenu.DLC5yEDD.min.js +0 -115
- package/dist/revolugo.hoteloffersmap.l4UaNpun.min.js +0 -26
- package/dist/revolugo.hoteloffersview.DxUc5TlW.min.js +0 -21
- package/dist/revolugo.hotelroomofferlist.ryYBtMFY.min.js +0 -26
- package/dist/revolugo.hotelroomoffersbookingflow.BWIa87mZ.min.js +0 -26
- package/dist/revolugo.hotelroomoffersearchmenu.4-HSRz_y.min.js +0 -26
- package/dist/revolugo.hotelroomoffersview.Df2SYo4D.min.js +0 -26
- package/dist/revolugo.index.Qn3FvgFh.min.js +0 -106
- package/dist/revolugo.langpickerbtn.rFwls9XZ.min.js +0 -31
- package/dist/revolugo.prebookform.D33OnpHn.min.js +0 -26
- package/dist/revolugo.preferencesmenu.BOWFkVY9.min.js +0 -24
- package/dist/revolugo.preferencesmenu.PVSL2fWE.min.js +0 -949
- package/dist/revolugo.roominglisteditor.gLjgOdGD.min.js +0 -26
- package/dist/revolugo.storybooktoolbar.DZrgGX1X.min.js +0 -838
- package/dist/revolugo.termsandconditions.3W9GTrVc.min.js +0 -31
- package/dist/revolugo.webcomponentwrapper.PTHIHE3G.min.js +0 -28624
@@ -1,7 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { V as
|
4
|
-
|
1
|
+
import { av as B, d as ke, u as Re, T as Te, H as Qt, k as At, b4 as xe, E as Me, a1 as Le, a2 as Ne, a6 as Oe, aL as Ve, b5 as Ue, a as g, D as Pt, aa 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, C as ze, aB as De, Z as je, o as A } from "./revolugo.index.wc.DLkeXtka.min.js";
|
2
|
+
import { _ as He } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js";
|
3
|
+
import { u as Fe, _ as We, V as D, a as N } from "./revolugo.webcomponentwrapper.BNmjcBmh.min.js";
|
4
|
+
import { V as ct } from "./revolugo.vicon.mrg8OisO.min.js";
|
5
|
+
import { V as Ge, a as Ke } from "./revolugo.vbtn.B-LYC8rJ.min.js";
|
6
|
+
import { V as Je } from "./revolugo.vtoolbar.CMwcpp3v.min.js";
|
7
|
+
import { a as kt, m as Ye, V as Ze } from "./revolugo.vcheckboxbtn.BGpOwRWV.min.js";
|
8
|
+
import { V as Rt, a as Xe } from "./revolugo.vcard.ZlYB5HOk.min.js";
|
9
|
+
import { V as Qe } from "./revolugo.vskeletonloader.DgIjR-8k.min.js";
|
10
|
+
import { u as tr, V as Tt, m as er } from "./revolugo.vinput.BowTI8jK.min.js";
|
11
|
+
function Pe(e) {
|
5
12
|
try {
|
6
13
|
if (typeof document < "u") {
|
7
14
|
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
@@ -21,70 +28,133 @@ function Te(e) {
|
|
21
28
|
console.error("[revolugo-elements] ", t);
|
22
29
|
}
|
23
30
|
}
|
24
|
-
const
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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 = {
|
43
|
+
amount: { type: Number },
|
44
|
+
currency: { type: String },
|
45
|
+
disabled: {
|
46
|
+
default: !1,
|
47
|
+
type: Boolean
|
34
48
|
},
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
return b(Vt, Lt({
|
48
|
-
class: ["v-checkbox", e.class]
|
49
|
-
}, m, S, {
|
50
|
-
modelValue: n.value,
|
51
|
-
"onUpdate:modelValue": (O) => n.value = O,
|
52
|
-
id: d.value,
|
53
|
-
focused: i.value,
|
54
|
-
style: e.style
|
55
|
-
}), {
|
56
|
-
...s,
|
57
|
-
default: (O) => {
|
58
|
-
let {
|
59
|
-
id: A,
|
60
|
-
messagesId: ft,
|
61
|
-
isDisabled: rt,
|
62
|
-
isReadonly: y,
|
63
|
-
isValid: C
|
64
|
-
} = O;
|
65
|
-
return b(Ut, Lt($, {
|
66
|
-
id: A.value,
|
67
|
-
"aria-describedby": ft.value,
|
68
|
-
disabled: rt.value,
|
69
|
-
readonly: y.value
|
70
|
-
}, v, {
|
71
|
-
error: C.value === !1,
|
72
|
-
modelValue: n.value,
|
73
|
-
"onUpdate:modelValue": (q) => n.value = q,
|
74
|
-
onFocus: o,
|
75
|
-
onBlur: u
|
76
|
-
}), s);
|
77
|
-
}
|
78
|
-
});
|
79
|
-
}), {};
|
49
|
+
loading: {
|
50
|
+
default: !1,
|
51
|
+
type: Boolean
|
52
|
+
},
|
53
|
+
token: { required: !0, type: String },
|
54
|
+
withAction: {
|
55
|
+
default: !1,
|
56
|
+
type: Boolean
|
57
|
+
},
|
58
|
+
withTerms: {
|
59
|
+
default: !1,
|
60
|
+
type: Boolean
|
80
61
|
}
|
62
|
+
};
|
63
|
+
var te = "basil", nr = function(t) {
|
64
|
+
return t === 3 ? "v3" : t;
|
65
|
+
}, ee = "https://js.stripe.com", ir = "".concat(ee, "/").concat(te, "/stripe.js"), or = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, ar = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;
|
66
|
+
var lr = function(t) {
|
67
|
+
return or.test(t) || ar.test(t);
|
68
|
+
}, ur = function() {
|
69
|
+
for (var t = document.querySelectorAll('script[src^="'.concat(ee, '"]')), r = 0; r < t.length; r++) {
|
70
|
+
var s = t[r];
|
71
|
+
if (lr(s.src))
|
72
|
+
return s;
|
73
|
+
}
|
74
|
+
return null;
|
75
|
+
}, xt = function(t) {
|
76
|
+
var r = "", s = document.createElement("script");
|
77
|
+
s.src = "".concat(ir).concat(r);
|
78
|
+
var n = document.head || document.body;
|
79
|
+
if (!n)
|
80
|
+
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
81
|
+
return n.appendChild(s), s;
|
82
|
+
}, cr = function(t, r) {
|
83
|
+
!t || !t._registerWrapper || t._registerWrapper({
|
84
|
+
name: "stripe-js",
|
85
|
+
version: "7.5.0",
|
86
|
+
startTime: r
|
87
|
+
});
|
88
|
+
}, j = null, Q = null, tt = null, dr = function(t) {
|
89
|
+
return function(r) {
|
90
|
+
t(new Error("Failed to load Stripe.js", {
|
91
|
+
cause: r
|
92
|
+
}));
|
93
|
+
};
|
94
|
+
}, pr = function(t, r) {
|
95
|
+
return function() {
|
96
|
+
window.Stripe ? t(window.Stripe) : r(new Error("Stripe.js not available"));
|
97
|
+
};
|
98
|
+
}, hr = function(t) {
|
99
|
+
return j !== null ? j : (j = new Promise(function(r, s) {
|
100
|
+
if (typeof window > "u" || typeof document > "u") {
|
101
|
+
r(null);
|
102
|
+
return;
|
103
|
+
}
|
104
|
+
if (window.Stripe) {
|
105
|
+
r(window.Stripe);
|
106
|
+
return;
|
107
|
+
}
|
108
|
+
try {
|
109
|
+
var n = ur();
|
110
|
+
if (!(n && t)) {
|
111
|
+
if (!n)
|
112
|
+
n = xt(t);
|
113
|
+
else if (n && tt !== null && Q !== null) {
|
114
|
+
var i;
|
115
|
+
n.removeEventListener("load", tt), n.removeEventListener("error", Q), (i = n.parentNode) === null || i === void 0 || i.removeChild(n), n = xt(t);
|
116
|
+
}
|
117
|
+
}
|
118
|
+
tt = pr(r, s), Q = dr(s), n.addEventListener("load", tt), n.addEventListener("error", Q);
|
119
|
+
} catch (o) {
|
120
|
+
s(o);
|
121
|
+
return;
|
122
|
+
}
|
123
|
+
}), j.catch(function(r) {
|
124
|
+
return j = null, Promise.reject(r);
|
125
|
+
}));
|
126
|
+
}, mr = function(t, r, s) {
|
127
|
+
if (t === null)
|
128
|
+
return null;
|
129
|
+
var n = r[0], i = n.match(/^pk_test/), o = nr(t.version), c = te;
|
130
|
+
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
|
+
var l = t.apply(void 0, r);
|
132
|
+
return cr(l, s), l;
|
133
|
+
}, H, re = !1, se = function() {
|
134
|
+
return H || (H = hr(null).catch(function(t) {
|
135
|
+
return H = null, Promise.reject(t);
|
136
|
+
}), H);
|
137
|
+
};
|
138
|
+
Promise.resolve().then(function() {
|
139
|
+
return se();
|
140
|
+
}).catch(function(e) {
|
141
|
+
re || console.warn(e);
|
81
142
|
});
|
143
|
+
var yr = function() {
|
144
|
+
for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
|
145
|
+
r[s] = arguments[s];
|
146
|
+
re = !0;
|
147
|
+
var n = Date.now();
|
148
|
+
return se().then(function(i) {
|
149
|
+
return mr(i, r, n);
|
150
|
+
});
|
151
|
+
};
|
82
152
|
/**
|
83
153
|
* @license
|
84
154
|
* Copyright 2017 Google LLC
|
85
155
|
* SPDX-License-Identifier: BSD-3-Clause
|
86
156
|
*/
|
87
|
-
const
|
157
|
+
const ne = (e) => (t) => typeof t == "function" ? ((r, s) => (customElements.define(r, s), s))(e, t) : ((r, s) => {
|
88
158
|
const { kind: n, elements: i } = s;
|
89
159
|
return { kind: n, elements: i, finisher(o) {
|
90
160
|
customElements.define(r, o);
|
@@ -95,34 +165,34 @@ const ue = (e) => (t) => typeof t == "function" ? ((r, s) => (customElements.def
|
|
95
165
|
* Copyright 2017 Google LLC
|
96
166
|
* SPDX-License-Identifier: BSD-3-Clause
|
97
167
|
*/
|
98
|
-
const
|
168
|
+
const fr = (e, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(r) {
|
99
169
|
r.createProperty(t.key, e);
|
100
170
|
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
|
101
171
|
typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
|
102
172
|
}, finisher(r) {
|
103
173
|
r.createProperty(t.key, e);
|
104
|
-
} },
|
174
|
+
} }, vr = (e, t, r) => {
|
105
175
|
t.constructor.createProperty(r, e);
|
106
176
|
};
|
107
|
-
function
|
108
|
-
return (t, r) => r !== void 0 ?
|
177
|
+
function u(e) {
|
178
|
+
return (t, r) => r !== void 0 ? vr(e, t, r) : fr(e, t);
|
109
179
|
}
|
110
180
|
/**
|
111
181
|
* @license
|
112
182
|
* Copyright 2021 Google LLC
|
113
183
|
* SPDX-License-Identifier: BSD-3-Clause
|
114
184
|
*/
|
115
|
-
var
|
116
|
-
((
|
117
|
-
var
|
118
|
-
function
|
185
|
+
var dt;
|
186
|
+
((dt = window.HTMLSlotElement) === null || dt === void 0 ? void 0 : dt.prototype.assignedElements) != null;
|
187
|
+
var Mt = !0;
|
188
|
+
function C(e, t, r) {
|
119
189
|
if (typeof r?.value != "function")
|
120
190
|
throw new TypeError(`Only methods can be decorated with @bound. <${t ?? e.name}> is not a method!`);
|
121
191
|
return {
|
122
|
-
configurable:
|
192
|
+
configurable: Mt,
|
123
193
|
get() {
|
124
194
|
const s = r.value.bind(this);
|
125
|
-
return Object.defineProperty(this, t, { value: s, configurable:
|
195
|
+
return Object.defineProperty(this, t, { value: s, configurable: Mt, writable: !0 }), s;
|
126
196
|
}
|
127
197
|
};
|
128
198
|
}
|
@@ -131,18 +201,18 @@ function x(e, t, r) {
|
|
131
201
|
* Copyright 2019 Google LLC
|
132
202
|
* SPDX-License-Identifier: BSD-3-Clause
|
133
203
|
*/
|
134
|
-
const
|
135
|
-
let
|
204
|
+
const rt = window, $t = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, wt = Symbol(), Lt = /* @__PURE__ */ new WeakMap();
|
205
|
+
let ie = class {
|
136
206
|
constructor(t, r, s) {
|
137
|
-
if (this._$cssResult$ = !0, s !==
|
207
|
+
if (this._$cssResult$ = !0, s !== wt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
138
208
|
this.cssText = t, this.t = r;
|
139
209
|
}
|
140
210
|
get styleSheet() {
|
141
211
|
let t = this.o;
|
142
212
|
const r = this.t;
|
143
|
-
if (
|
213
|
+
if ($t && t === void 0) {
|
144
214
|
const s = r !== void 0 && r.length === 1;
|
145
|
-
s && (t =
|
215
|
+
s && (t = Lt.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Lt.set(r, t));
|
146
216
|
}
|
147
217
|
return t;
|
148
218
|
}
|
@@ -150,33 +220,33 @@ let de = class {
|
|
150
220
|
return this.cssText;
|
151
221
|
}
|
152
222
|
};
|
153
|
-
const
|
223
|
+
const gr = (e) => new ie(typeof e == "string" ? e : e + "", void 0, wt), _t = (e, ...t) => {
|
154
224
|
const r = e.length === 1 ? e[0] : t.reduce((s, n, i) => s + ((o) => {
|
155
225
|
if (o._$cssResult$ === !0) return o.cssText;
|
156
226
|
if (typeof o == "number") return o;
|
157
227
|
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.");
|
158
228
|
})(n) + e[i + 1], e[0]);
|
159
|
-
return new
|
160
|
-
},
|
161
|
-
|
162
|
-
const s = document.createElement("style"), n =
|
229
|
+
return new ie(r, e, wt);
|
230
|
+
}, br = (e, t) => {
|
231
|
+
$t ? e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet) : t.forEach((r) => {
|
232
|
+
const s = document.createElement("style"), n = rt.litNonce;
|
163
233
|
n !== void 0 && s.setAttribute("nonce", n), s.textContent = r.cssText, e.appendChild(s);
|
164
234
|
});
|
165
|
-
},
|
235
|
+
}, Nt = $t ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
166
236
|
let r = "";
|
167
237
|
for (const s of t.cssRules) r += s.cssText;
|
168
|
-
return
|
238
|
+
return gr(r);
|
169
239
|
})(e) : e;
|
170
240
|
/**
|
171
241
|
* @license
|
172
242
|
* Copyright 2017 Google LLC
|
173
243
|
* SPDX-License-Identifier: BSD-3-Clause
|
174
244
|
*/
|
175
|
-
var
|
176
|
-
const
|
245
|
+
var pt;
|
246
|
+
const at = window, Ot = at.trustedTypes, Sr = Ot ? Ot.emptyScript : "", Vt = at.reactiveElementPolyfillSupport, gt = { toAttribute(e, t) {
|
177
247
|
switch (t) {
|
178
248
|
case Boolean:
|
179
|
-
e = e ?
|
249
|
+
e = e ? Sr : null;
|
180
250
|
break;
|
181
251
|
case Object:
|
182
252
|
case Array:
|
@@ -201,8 +271,8 @@ const ht = window, Ht = ht.trustedTypes, ur = Ht ? Ht.emptyScript : "", Ft = ht.
|
|
201
271
|
}
|
202
272
|
}
|
203
273
|
return r;
|
204
|
-
} },
|
205
|
-
let
|
274
|
+
} }, oe = (e, t) => t !== e && (t == t || e == e), ht = { attribute: !0, type: String, converter: gt, reflect: !1, hasChanged: oe }, bt = "finalized";
|
275
|
+
let O = class extends HTMLElement {
|
206
276
|
constructor() {
|
207
277
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
|
208
278
|
}
|
@@ -218,7 +288,7 @@ let B = class extends HTMLElement {
|
|
218
288
|
n !== void 0 && (this._$Ev.set(n, s), t.push(n));
|
219
289
|
}), t;
|
220
290
|
}
|
221
|
-
static createProperty(t, r =
|
291
|
+
static createProperty(t, r = ht) {
|
222
292
|
if (r.state && (r.attribute = !1), this.finalize(), this.elementProperties.set(t, r), !r.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
223
293
|
const s = typeof t == "symbol" ? Symbol() : "__" + t, n = this.getPropertyDescriptor(t, s, r);
|
224
294
|
n !== void 0 && Object.defineProperty(this.prototype, t, n);
|
@@ -233,11 +303,11 @@ let B = class extends HTMLElement {
|
|
233
303
|
}, configurable: !0, enumerable: !0 };
|
234
304
|
}
|
235
305
|
static getPropertyOptions(t) {
|
236
|
-
return this.elementProperties.get(t) ||
|
306
|
+
return this.elementProperties.get(t) || ht;
|
237
307
|
}
|
238
308
|
static finalize() {
|
239
|
-
if (this.hasOwnProperty(
|
240
|
-
this[
|
309
|
+
if (this.hasOwnProperty(bt)) return !1;
|
310
|
+
this[bt] = !0;
|
241
311
|
const t = Object.getPrototypeOf(this);
|
242
312
|
if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
243
313
|
const r = this.properties, s = [...Object.getOwnPropertyNames(r), ...Object.getOwnPropertySymbols(r)];
|
@@ -249,8 +319,8 @@ let B = class extends HTMLElement {
|
|
249
319
|
const r = [];
|
250
320
|
if (Array.isArray(t)) {
|
251
321
|
const s = new Set(t.flat(1 / 0).reverse());
|
252
|
-
for (const n of s) r.unshift(
|
253
|
-
} else t !== void 0 && r.push(
|
322
|
+
for (const n of s) r.unshift(Nt(n));
|
323
|
+
} else t !== void 0 && r.push(Nt(t));
|
254
324
|
return r;
|
255
325
|
}
|
256
326
|
static _$Ep(t, r) {
|
@@ -277,7 +347,7 @@ let B = class extends HTMLElement {
|
|
277
347
|
createRenderRoot() {
|
278
348
|
var t;
|
279
349
|
const r = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
280
|
-
return
|
350
|
+
return br(r, this.constructor.elementStyles), r;
|
281
351
|
}
|
282
352
|
connectedCallback() {
|
283
353
|
var t;
|
@@ -298,11 +368,11 @@ let B = class extends HTMLElement {
|
|
298
368
|
attributeChangedCallback(t, r, s) {
|
299
369
|
this._$AK(t, s);
|
300
370
|
}
|
301
|
-
_$EO(t, r, s =
|
371
|
+
_$EO(t, r, s = ht) {
|
302
372
|
var n;
|
303
373
|
const i = this.constructor._$Ep(t, s);
|
304
374
|
if (i !== void 0 && s.reflect === !0) {
|
305
|
-
const o = (((n = s.converter) === null || n === void 0 ? void 0 : n.toAttribute) !== void 0 ? s.converter :
|
375
|
+
const o = (((n = s.converter) === null || n === void 0 ? void 0 : n.toAttribute) !== void 0 ? s.converter : gt).toAttribute(r, s.type);
|
306
376
|
this._$El = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$El = null;
|
307
377
|
}
|
308
378
|
}
|
@@ -310,13 +380,13 @@ let B = class extends HTMLElement {
|
|
310
380
|
var s;
|
311
381
|
const n = this.constructor, i = n._$Ev.get(t);
|
312
382
|
if (i !== void 0 && this._$El !== i) {
|
313
|
-
const o = n.getPropertyOptions(i),
|
314
|
-
this._$El = i, this[i] =
|
383
|
+
const o = n.getPropertyOptions(i), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter : gt;
|
384
|
+
this._$El = i, this[i] = c.fromAttribute(r, o.type), this._$El = null;
|
315
385
|
}
|
316
386
|
}
|
317
387
|
requestUpdate(t, r, s) {
|
318
388
|
let n = !0;
|
319
|
-
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged ||
|
389
|
+
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || oe)(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());
|
320
390
|
}
|
321
391
|
async _$Ej() {
|
322
392
|
this.isUpdatePending = !0;
|
@@ -376,84 +446,84 @@ let B = class extends HTMLElement {
|
|
376
446
|
firstUpdated(t) {
|
377
447
|
}
|
378
448
|
};
|
379
|
-
|
449
|
+
O[bt] = !0, O.elementProperties = /* @__PURE__ */ new Map(), O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, Vt?.({ ReactiveElement: O }), ((pt = at.reactiveElementVersions) !== null && pt !== void 0 ? pt : at.reactiveElementVersions = []).push("1.6.3");
|
380
450
|
/**
|
381
451
|
* @license
|
382
452
|
* Copyright 2017 Google LLC
|
383
453
|
* SPDX-License-Identifier: BSD-3-Clause
|
384
454
|
*/
|
385
|
-
var
|
386
|
-
const
|
387
|
-
\f\r]`,
|
388
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
389
|
-
function
|
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 e?.[Symbol.iterator] == "function", yt = `[
|
457
|
+
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, It = /-->/g, qt = />/g, T = RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
|
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
|
+
function ce(e, t) {
|
390
460
|
if (!Array.isArray(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
391
|
-
return
|
461
|
+
return Ut !== void 0 ? Ut.createHTML(t) : t;
|
392
462
|
}
|
393
|
-
const
|
463
|
+
const Er = (e, t) => {
|
394
464
|
const r = e.length - 1, s = [];
|
395
|
-
let n, i = t === 2 ? "<svg>" : "", o =
|
396
|
-
for (let
|
397
|
-
const l = e[
|
398
|
-
let
|
399
|
-
for (; S < l.length && (o.lastIndex = S,
|
400
|
-
const
|
401
|
-
i += o ===
|
402
|
-
}
|
403
|
-
return [
|
465
|
+
let n, i = t === 2 ? "<svg>" : "", o = F;
|
466
|
+
for (let c = 0; c < r; c++) {
|
467
|
+
const l = e[c];
|
468
|
+
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 = It : y[1] !== void 0 ? o = qt : y[2] !== void 0 ? (ue.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] === '"' ? zt : Bt) : o === zt || o === Bt ? o = T : o === It || o === qt ? o = F : (o = T, n = void 0);
|
470
|
+
const _ = o === T && e[c + 1].startsWith("/>") ? " " : "";
|
471
|
+
i += o === F ? l + $r : 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
|
+
return [ce(e, i + (e[r] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
404
474
|
};
|
405
|
-
class
|
475
|
+
class Y {
|
406
476
|
constructor({ strings: t, _$litType$: r }, s) {
|
407
477
|
let n;
|
408
478
|
this.parts = [];
|
409
479
|
let i = 0, o = 0;
|
410
|
-
const
|
411
|
-
if (this.el =
|
412
|
-
const
|
413
|
-
S.remove(),
|
480
|
+
const c = t.length - 1, l = this.parts, [p, y] = Er(t, r);
|
481
|
+
if (this.el = Y.createElement(p, s), x.currentNode = this.el.content, r === 2) {
|
482
|
+
const f = this.el.content, S = f.firstChild;
|
483
|
+
S.remove(), f.append(...S.childNodes);
|
414
484
|
}
|
415
|
-
for (; (n =
|
485
|
+
for (; (n = x.nextNode()) !== null && l.length < c; ) {
|
416
486
|
if (n.nodeType === 1) {
|
417
487
|
if (n.hasAttributes()) {
|
418
|
-
const
|
419
|
-
for (const S of n.getAttributeNames()) if (S.endsWith(
|
420
|
-
const
|
421
|
-
if (
|
422
|
-
const
|
423
|
-
l.push({ type: 1, index: i, name:
|
488
|
+
const f = [];
|
489
|
+
for (const S of n.getAttributeNames()) if (S.endsWith(St) || S.startsWith(P)) {
|
490
|
+
const _ = y[o++];
|
491
|
+
if (f.push(S), _ !== void 0) {
|
492
|
+
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] === "." ? Pr : L[1] === "?" ? Rr : L[1] === "@" ? Tr : ut });
|
424
494
|
} else l.push({ type: 6, index: i });
|
425
495
|
}
|
426
|
-
for (const S of
|
496
|
+
for (const S of f) n.removeAttribute(S);
|
427
497
|
}
|
428
|
-
if (
|
429
|
-
const
|
498
|
+
if (ue.test(n.tagName)) {
|
499
|
+
const f = n.textContent.split(P), S = f.length - 1;
|
430
500
|
if (S > 0) {
|
431
|
-
n.textContent =
|
432
|
-
for (let
|
433
|
-
n.append(
|
501
|
+
n.textContent = V ? V.emptyScript : "";
|
502
|
+
for (let _ = 0; _ < S; _++) n.append(f[_], K()), x.nextNode(), l.push({ type: 2, index: ++i });
|
503
|
+
n.append(f[S], K());
|
434
504
|
}
|
435
505
|
}
|
436
|
-
} else if (n.nodeType === 8) if (n.data ===
|
506
|
+
} else if (n.nodeType === 8) if (n.data === ae) l.push({ type: 2, index: i });
|
437
507
|
else {
|
438
|
-
let
|
439
|
-
for (; (
|
508
|
+
let f = -1;
|
509
|
+
for (; (f = n.data.indexOf(P, f + 1)) !== -1; ) l.push({ type: 7, index: i }), f += P.length - 1;
|
440
510
|
}
|
441
511
|
i++;
|
442
512
|
}
|
443
513
|
}
|
444
514
|
static createElement(t, r) {
|
445
|
-
const s =
|
515
|
+
const s = M.createElement("template");
|
446
516
|
return s.innerHTML = t, s;
|
447
517
|
}
|
448
518
|
}
|
449
|
-
function
|
450
|
-
var n, i, o,
|
451
|
-
if (t ===
|
519
|
+
function I(e, t, r = e, s) {
|
520
|
+
var n, i, o, c;
|
521
|
+
if (t === U) return t;
|
452
522
|
let l = s !== void 0 ? (n = r._$Co) === null || n === void 0 ? void 0 : n[s] : r._$Cl;
|
453
|
-
const
|
454
|
-
return l?.constructor !==
|
523
|
+
const p = J(t) ? void 0 : t._$litDirective$;
|
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;
|
455
525
|
}
|
456
|
-
class
|
526
|
+
class Ar {
|
457
527
|
constructor(t, r) {
|
458
528
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
|
459
529
|
}
|
@@ -465,27 +535,27 @@ class fr {
|
|
465
535
|
}
|
466
536
|
u(t) {
|
467
537
|
var r;
|
468
|
-
const { el: { content: s }, parts: n } = this._$AD, i = ((r = t?.creationScope) !== null && r !== void 0 ? r :
|
469
|
-
|
470
|
-
let o =
|
471
|
-
for (;
|
472
|
-
if (
|
473
|
-
let
|
474
|
-
|
538
|
+
const { el: { content: s }, parts: n } = this._$AD, i = ((r = t?.creationScope) !== null && r !== void 0 ? r : M).importNode(s, !0);
|
539
|
+
x.currentNode = i;
|
540
|
+
let o = x.nextNode(), c = 0, l = 0, p = n[0];
|
541
|
+
for (; p !== void 0; ) {
|
542
|
+
if (c === p.index) {
|
543
|
+
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 xr(o, this, t)), this._$AV.push(y), p = n[++l];
|
475
545
|
}
|
476
|
-
|
546
|
+
c !== p?.index && (o = x.nextNode(), c++);
|
477
547
|
}
|
478
|
-
return
|
548
|
+
return x.currentNode = M, i;
|
479
549
|
}
|
480
550
|
v(t) {
|
481
551
|
let r = 0;
|
482
552
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, r), r += s.strings.length - 2) : s._$AI(t[r])), r++;
|
483
553
|
}
|
484
554
|
}
|
485
|
-
class
|
555
|
+
class Z {
|
486
556
|
constructor(t, r, s, n) {
|
487
557
|
var i;
|
488
|
-
this.type = 2, this._$AH =
|
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;
|
489
559
|
}
|
490
560
|
get _$AU() {
|
491
561
|
var t, r;
|
@@ -503,7 +573,7 @@ class et {
|
|
503
573
|
return this._$AB;
|
504
574
|
}
|
505
575
|
_$AI(t, r = this) {
|
506
|
-
t =
|
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) : wr(t) ? this.T(t) : this._(t);
|
507
577
|
}
|
508
578
|
k(t) {
|
509
579
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -512,26 +582,26 @@ class et {
|
|
512
582
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
513
583
|
}
|
514
584
|
_(t) {
|
515
|
-
this._$AH !==
|
585
|
+
this._$AH !== b && J(this._$AH) ? this._$AA.nextSibling.data = t : this.$(M.createTextNode(t)), this._$AH = t;
|
516
586
|
}
|
517
587
|
g(t) {
|
518
588
|
var r;
|
519
|
-
const { values: s, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el =
|
589
|
+
const { values: s, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Y.createElement(ce(n.h, n.h[0]), this.options)), n);
|
520
590
|
if (((r = this._$AH) === null || r === void 0 ? void 0 : r._$AD) === i) this._$AH.v(s);
|
521
591
|
else {
|
522
|
-
const o = new
|
523
|
-
o.v(s), this.$(
|
592
|
+
const o = new Ar(i, this), c = o.u(this.options);
|
593
|
+
o.v(s), this.$(c), this._$AH = o;
|
524
594
|
}
|
525
595
|
}
|
526
596
|
_$AC(t) {
|
527
|
-
let r =
|
528
|
-
return r === void 0 &&
|
597
|
+
let r = Dt.get(t.strings);
|
598
|
+
return r === void 0 && Dt.set(t.strings, r = new Y(t)), r;
|
529
599
|
}
|
530
600
|
T(t) {
|
531
|
-
|
601
|
+
le(this._$AH) || (this._$AH = [], this._$AR());
|
532
602
|
const r = this._$AH;
|
533
603
|
let s, n = 0;
|
534
|
-
for (const i of t) n === r.length ? r.push(s = new
|
604
|
+
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++;
|
535
605
|
n < r.length && (this._$AR(s && s._$AB.nextSibling, n), r.length = n);
|
536
606
|
}
|
537
607
|
_$AR(t = this._$AA.nextSibling, r) {
|
@@ -546,9 +616,9 @@ class et {
|
|
546
616
|
this._$AM === void 0 && (this._$Cp = t, (r = this._$AP) === null || r === void 0 || r.call(this, t));
|
547
617
|
}
|
548
618
|
}
|
549
|
-
class
|
619
|
+
class ut {
|
550
620
|
constructor(t, r, s, n, i) {
|
551
|
-
this.type = 1, this._$AH =
|
621
|
+
this.type = 1, this._$AH = b, this._$AN = void 0, this.element = t, this.name = r, this._$AM = n, this.options = i, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = b;
|
552
622
|
}
|
553
623
|
get tagName() {
|
554
624
|
return this.element.tagName;
|
@@ -559,43 +629,43 @@ class yt {
|
|
559
629
|
_$AI(t, r = this, s, n) {
|
560
630
|
const i = this.strings;
|
561
631
|
let o = !1;
|
562
|
-
if (i === void 0) t =
|
632
|
+
if (i === void 0) t = I(this, t, r, 0), o = !J(t) || t !== this._$AH && t !== U, o && (this._$AH = t);
|
563
633
|
else {
|
564
|
-
const
|
565
|
-
let l,
|
566
|
-
for (t = i[0], l = 0; l < i.length - 1; l++)
|
634
|
+
const c = t;
|
635
|
+
let l, p;
|
636
|
+
for (t = i[0], l = 0; l < i.length - 1; l++) p = I(this, c[s + l], r, l), p === U && (p = this._$AH[l]), o || (o = !J(p) || p !== this._$AH[l]), p === b ? t = b : t !== b && (t += (p ?? "") + i[l + 1]), this._$AH[l] = p;
|
567
637
|
}
|
568
638
|
o && !n && this.j(t);
|
569
639
|
}
|
570
640
|
j(t) {
|
571
|
-
t ===
|
641
|
+
t === b ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
572
642
|
}
|
573
643
|
}
|
574
|
-
class
|
644
|
+
class Pr extends ut {
|
575
645
|
constructor() {
|
576
646
|
super(...arguments), this.type = 3;
|
577
647
|
}
|
578
648
|
j(t) {
|
579
|
-
this.element[this.name] = t ===
|
649
|
+
this.element[this.name] = t === b ? void 0 : t;
|
580
650
|
}
|
581
651
|
}
|
582
|
-
const
|
583
|
-
class
|
652
|
+
const kr = V ? V.emptyScript : "";
|
653
|
+
class Rr extends ut {
|
584
654
|
constructor() {
|
585
655
|
super(...arguments), this.type = 4;
|
586
656
|
}
|
587
657
|
j(t) {
|
588
|
-
t && t !==
|
658
|
+
t && t !== b ? this.element.setAttribute(this.name, kr) : this.element.removeAttribute(this.name);
|
589
659
|
}
|
590
660
|
}
|
591
|
-
class
|
661
|
+
class Tr extends ut {
|
592
662
|
constructor(t, r, s, n, i) {
|
593
663
|
super(t, r, s, n, i), this.type = 5;
|
594
664
|
}
|
595
665
|
_$AI(t, r = this) {
|
596
666
|
var s;
|
597
|
-
if ((t = (s =
|
598
|
-
const n = this._$AH, i = t ===
|
667
|
+
if ((t = (s = I(this, t, r, 0)) !== null && s !== void 0 ? s : b) === U) return;
|
668
|
+
const n = this._$AH, i = t === b && n !== b || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== b && (n === b || i);
|
599
669
|
i && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
600
670
|
}
|
601
671
|
handleEvent(t) {
|
@@ -603,7 +673,7 @@ class Sr extends yt {
|
|
603
673
|
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);
|
604
674
|
}
|
605
675
|
}
|
606
|
-
class
|
676
|
+
class xr {
|
607
677
|
constructor(t, r, s) {
|
608
678
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = s;
|
609
679
|
}
|
@@ -611,18 +681,18 @@ class _r {
|
|
611
681
|
return this._$AM._$AU;
|
612
682
|
}
|
613
683
|
_$AI(t) {
|
614
|
-
|
684
|
+
I(this, t);
|
615
685
|
}
|
616
686
|
}
|
617
|
-
const
|
618
|
-
|
619
|
-
const
|
687
|
+
const jt = lt.litHtmlPolyfillSupport;
|
688
|
+
jt?.(Y, Z), ((mt = lt.litHtmlVersions) !== null && mt !== void 0 ? mt : lt.litHtmlVersions = []).push("2.8.0");
|
689
|
+
const Mr = (e, t, r) => {
|
620
690
|
var s, n;
|
621
691
|
const i = (s = r?.renderBefore) !== null && s !== void 0 ? s : t;
|
622
692
|
let o = i._$litPart$;
|
623
693
|
if (o === void 0) {
|
624
|
-
const
|
625
|
-
i._$litPart$ = o = new
|
694
|
+
const c = (n = r?.renderBefore) !== null && n !== void 0 ? n : null;
|
695
|
+
i._$litPart$ = o = new Z(t.insertBefore(K(), c), c, void 0, r ?? {});
|
626
696
|
}
|
627
697
|
return o._$AI(e), o;
|
628
698
|
};
|
@@ -631,8 +701,8 @@ const wr = (e, t, r) => {
|
|
631
701
|
* Copyright 2017 Google LLC
|
632
702
|
* SPDX-License-Identifier: BSD-3-Clause
|
633
703
|
*/
|
634
|
-
var
|
635
|
-
class
|
704
|
+
var ft, vt;
|
705
|
+
class G extends O {
|
636
706
|
constructor() {
|
637
707
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
638
708
|
}
|
@@ -643,7 +713,7 @@ class Z extends B {
|
|
643
713
|
}
|
644
714
|
update(t) {
|
645
715
|
const r = this.render();
|
646
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
716
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Mr(r, this.renderRoot, this.renderOptions);
|
647
717
|
}
|
648
718
|
connectedCallback() {
|
649
719
|
var t;
|
@@ -654,27 +724,27 @@ class Z extends B {
|
|
654
724
|
super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
|
655
725
|
}
|
656
726
|
render() {
|
657
|
-
return
|
727
|
+
return U;
|
658
728
|
}
|
659
729
|
}
|
660
|
-
|
661
|
-
const
|
662
|
-
|
663
|
-
((
|
730
|
+
G.finalized = !0, G._$litElement$ = !0, (ft = globalThis.litElementHydrateSupport) === null || ft === void 0 || ft.call(globalThis, { LitElement: G });
|
731
|
+
const Ht = globalThis.litElementPolyfillSupport;
|
732
|
+
Ht?.({ LitElement: G });
|
733
|
+
((vt = globalThis.litElementVersions) !== null && vt !== void 0 ? vt : globalThis.litElementVersions = []).push("3.3.3");
|
664
734
|
/**
|
665
735
|
* @license
|
666
736
|
* Copyright 2018 Google LLC
|
667
737
|
* SPDX-License-Identifier: BSD-3-Clause
|
668
738
|
*/
|
669
|
-
const
|
670
|
-
function
|
671
|
-
const t = e.replace(
|
739
|
+
const Lr = (e) => e ?? b, Nr = /[A-ZÀ-ÖÙ-Ý]+/g, Or = /[a-zà-öù-ý]+/g;
|
740
|
+
function Vr(e) {
|
741
|
+
const t = e.replace(Nr, r).match(Or);
|
672
742
|
return t ? t.join("-") : "";
|
673
743
|
function r(s) {
|
674
744
|
return " " + (s.length > 2 ? s.slice(0, -1) + " " + s.slice(-1) : s).toLowerCase();
|
675
745
|
}
|
676
746
|
}
|
677
|
-
function
|
747
|
+
function Ur() {
|
678
748
|
const e = {};
|
679
749
|
return {
|
680
750
|
has: (t) => Object.hasOwnProperty.call(e, t),
|
@@ -684,44 +754,44 @@ function Ar() {
|
|
684
754
|
}
|
685
755
|
};
|
686
756
|
}
|
687
|
-
function
|
688
|
-
const r =
|
757
|
+
function Ir(e, t) {
|
758
|
+
const r = Ur();
|
689
759
|
return (...s) => {
|
690
760
|
const n = e(...s);
|
691
761
|
return r.has(n) || r.set(n, t(...s)), r.get(n);
|
692
762
|
};
|
693
763
|
}
|
694
|
-
var
|
695
|
-
async function
|
764
|
+
var qr = (e) => e, de = Ir(qr, Vr), Br = (e) => (t) => e.includes(t), zr = Br(["paymentMethod", "source", "token"]);
|
765
|
+
async function Dr(e) {
|
696
766
|
const { ok: t, statusText: r } = e;
|
697
767
|
if (!t)
|
698
768
|
throw new Error(r);
|
699
769
|
return e;
|
700
770
|
}
|
701
|
-
function
|
771
|
+
function jr(e) {
|
702
772
|
return "addInitializer" in e.constructor;
|
703
773
|
}
|
704
|
-
var
|
774
|
+
var W = class {
|
705
775
|
constructor(e) {
|
706
|
-
if (this.host = e, this.values = /* @__PURE__ */ new Map(),
|
707
|
-
return
|
708
|
-
e.addController(this),
|
776
|
+
if (this.host = e, this.values = /* @__PURE__ */ new Map(), W.instances.has(e))
|
777
|
+
return W.instances.get(e);
|
778
|
+
e.addController(this), W.instances.set(e, this);
|
709
779
|
}
|
710
780
|
static for(e) {
|
711
|
-
return new
|
781
|
+
return new W(e);
|
712
782
|
}
|
713
783
|
hostConnected() {
|
714
784
|
}
|
715
785
|
set(e, t) {
|
716
786
|
const r = this.values.get(e);
|
717
|
-
this.values.set(e, t),
|
787
|
+
this.values.set(e, t), jr(this.host) ? this.host.requestUpdate(e, r) : this.host.requestUpdate();
|
718
788
|
}
|
719
|
-
},
|
720
|
-
|
721
|
-
function
|
789
|
+
}, Ct = W;
|
790
|
+
Ct.instances = /* @__PURE__ */ new Map();
|
791
|
+
function d(e, t) {
|
722
792
|
const r = e.constructor;
|
723
793
|
r.addInitializer((s) => {
|
724
|
-
const n =
|
794
|
+
const n = Ct.for(s);
|
725
795
|
Object.defineProperty(s.constructor.prototype, t, {
|
726
796
|
enumerable: !0,
|
727
797
|
configurable: !0,
|
@@ -737,41 +807,41 @@ function p(e, t) {
|
|
737
807
|
});
|
738
808
|
});
|
739
809
|
}
|
740
|
-
|
741
|
-
const r =
|
810
|
+
d.set = function(e, t) {
|
811
|
+
const r = Ct.for(e);
|
742
812
|
for (const [s, n] of Object.entries(t))
|
743
813
|
r.set(s, n);
|
744
814
|
};
|
745
|
-
var
|
815
|
+
var Hr = class extends Event {
|
746
816
|
constructor(e, t, r, s) {
|
747
817
|
super(`${s ?? e.toLowerCase()}-changed`), this.key = e, this.oldValue = t, this.value = r, this.detail = { value: r };
|
748
818
|
}
|
749
|
-
},
|
819
|
+
}, st = class {
|
750
820
|
constructor(e) {
|
751
|
-
if (this.host = e, this.cache = /* @__PURE__ */ new Map(),
|
752
|
-
return
|
753
|
-
e.addController(this),
|
821
|
+
if (this.host = e, this.cache = /* @__PURE__ */ new Map(), st.instances.has(e))
|
822
|
+
return st.instances.get(e);
|
823
|
+
e.addController(this), st.instances.set(e, this);
|
754
824
|
}
|
755
825
|
hostUpdated() {
|
756
826
|
for (const [e, t] of this.cache) {
|
757
827
|
const r = this.host[e], { attribute: s } = this.host.constructor.getPropertyOptions(e) ?? {}, n = typeof s == "string" ? s : null;
|
758
|
-
this.cache.set(e, r), this.host.dispatchEvent(new
|
828
|
+
this.cache.set(e, r), this.host.dispatchEvent(new Hr(e, t, r, n));
|
759
829
|
}
|
760
830
|
}
|
761
|
-
},
|
762
|
-
|
763
|
-
function
|
831
|
+
}, pe = st;
|
832
|
+
pe.instances = /* @__PURE__ */ new Map();
|
833
|
+
function w(e, t) {
|
764
834
|
e.constructor.addInitializer((r) => {
|
765
|
-
new
|
835
|
+
new pe(r).cache.set(t, r[t]);
|
766
836
|
});
|
767
837
|
}
|
768
|
-
function
|
838
|
+
function Fr(e) {
|
769
839
|
return (t, r, s) => {
|
770
840
|
const n = s.value;
|
771
841
|
return s.value = e(n), s;
|
772
842
|
};
|
773
843
|
}
|
774
|
-
var
|
844
|
+
var Et = Fr(function(e) {
|
775
845
|
const { name: t } = e;
|
776
846
|
return async function(...r) {
|
777
847
|
if (!this.stripe)
|
@@ -779,29 +849,29 @@ var Ot = Lr(function(e) {
|
|
779
849
|
return e.call(this, ...r).then(this.handleResponse);
|
780
850
|
};
|
781
851
|
});
|
782
|
-
function
|
852
|
+
function Ft(e) {
|
783
853
|
if (e.error)
|
784
854
|
throw e.error;
|
785
855
|
return e;
|
786
856
|
}
|
787
|
-
var
|
788
|
-
for (var n = s > 1 ? void 0 : s ?
|
857
|
+
var Wr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, a = (e, t, r, s) => {
|
858
|
+
for (var n = s > 1 ? void 0 : s ? Gr(t, r) : t, i = e.length - 1, o; i >= 0; i--)
|
789
859
|
(o = e[i]) && (n = (s ? o(t, r, n) : o(n)) || n);
|
790
|
-
return s && n &&
|
791
|
-
},
|
860
|
+
return s && n && Wr(t, r, n), n;
|
861
|
+
}, he = (e, t, r) => {
|
792
862
|
if (!t.has(e))
|
793
863
|
throw TypeError("Cannot " + r);
|
794
|
-
},
|
864
|
+
}, Wt = (e, t, r) => (he(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Gt = (e, t, r) => {
|
795
865
|
if (t.has(e))
|
796
866
|
throw TypeError("Cannot add the same private member more than once");
|
797
867
|
t instanceof WeakSet ? t.add(e) : t.set(e, r);
|
798
|
-
},
|
799
|
-
function
|
868
|
+
}, Kt = (e, t, r, s) => (he(e, t, "write to private field"), t.set(e, r), r);
|
869
|
+
function Jt() {
|
800
870
|
return (Date.now() + Math.random() * 1e3).toString(36).substr(0, 8);
|
801
871
|
}
|
802
|
-
var
|
872
|
+
var Kr = class {
|
803
873
|
constructor(e, t) {
|
804
|
-
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-${
|
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()}`;
|
805
875
|
}
|
806
876
|
get mount() {
|
807
877
|
return document.getElementById(this.mountId);
|
@@ -813,7 +883,7 @@ var Ur = class {
|
|
813
883
|
this.destroyMountPoints();
|
814
884
|
}
|
815
885
|
resetMountId() {
|
816
|
-
return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${
|
886
|
+
return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${Jt()}`;
|
817
887
|
}
|
818
888
|
createMountPoint() {
|
819
889
|
const e = document.createElement("div");
|
@@ -851,47 +921,47 @@ var Ur = class {
|
|
851
921
|
this.destroyMountPoints(), this.initMountPoints(), this.initialized = !0;
|
852
922
|
}
|
853
923
|
};
|
854
|
-
function
|
924
|
+
function nt(e) {
|
855
925
|
"@babel/helpers - typeof";
|
856
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
926
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? nt = function(t) {
|
857
927
|
return typeof t;
|
858
|
-
} :
|
928
|
+
} : nt = function(t) {
|
859
929
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
860
|
-
},
|
930
|
+
}, nt(e);
|
861
931
|
}
|
862
|
-
var
|
863
|
-
for (var t = document.querySelectorAll('script[src^="'.concat(
|
932
|
+
var me = "https://js.stripe.com/v3", Jr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Yt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Yr = function() {
|
933
|
+
for (var t = document.querySelectorAll('script[src^="'.concat(me, '"]')), r = 0; r < t.length; r++) {
|
864
934
|
var s = t[r];
|
865
|
-
if (
|
935
|
+
if (Jr.test(s.src))
|
866
936
|
return s;
|
867
937
|
}
|
868
938
|
return null;
|
869
|
-
},
|
939
|
+
}, Zr = function(t) {
|
870
940
|
var r = t && !t.advancedFraudSignals ? "?advancedFraudSignals=false" : "", s = document.createElement("script");
|
871
|
-
s.src = "".concat(
|
941
|
+
s.src = "".concat(me).concat(r);
|
872
942
|
var n = document.head || document.body;
|
873
943
|
if (!n)
|
874
944
|
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
875
945
|
return n.appendChild(s), s;
|
876
|
-
},
|
946
|
+
}, Xr = function(t, r) {
|
877
947
|
!t || !t._registerWrapper || t._registerWrapper({
|
878
948
|
name: "stripe-js",
|
879
949
|
version: "1.32.0",
|
880
950
|
startTime: r
|
881
951
|
});
|
882
|
-
},
|
883
|
-
return
|
952
|
+
}, et = null, Qr = function(t) {
|
953
|
+
return et !== null || (et = new Promise(function(r, s) {
|
884
954
|
if (typeof window > "u") {
|
885
955
|
r(null);
|
886
956
|
return;
|
887
957
|
}
|
888
|
-
if (window.Stripe && t && console.warn(
|
958
|
+
if (window.Stripe && t && console.warn(Yt), window.Stripe) {
|
889
959
|
r(window.Stripe);
|
890
960
|
return;
|
891
961
|
}
|
892
962
|
try {
|
893
|
-
var n =
|
894
|
-
n && t ? console.warn(
|
963
|
+
var n = Yr();
|
964
|
+
n && t ? console.warn(Yt) : n || (n = Zr(t)), n.addEventListener("load", function() {
|
895
965
|
window.Stripe ? r(window.Stripe) : s(new Error("Stripe.js not available"));
|
896
966
|
}), n.addEventListener("error", function() {
|
897
967
|
s(new Error("Failed to load Stripe.js"));
|
@@ -900,13 +970,13 @@ var Se = "https://js.stripe.com/v3", qr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
900
970
|
s(i);
|
901
971
|
return;
|
902
972
|
}
|
903
|
-
})),
|
904
|
-
},
|
973
|
+
})), et;
|
974
|
+
}, ts = function(t, r, s) {
|
905
975
|
if (t === null)
|
906
976
|
return null;
|
907
977
|
var n = t.apply(void 0, r);
|
908
|
-
return
|
909
|
-
},
|
978
|
+
return Xr(n, s), n;
|
979
|
+
}, es = function(t) {
|
910
980
|
var r = `invalid load parameters; expected object of shape
|
911
981
|
|
912
982
|
{advancedFraudSignals: boolean}
|
@@ -915,38 +985,38 @@ but received
|
|
915
985
|
|
916
986
|
`.concat(JSON.stringify(t), `
|
917
987
|
`);
|
918
|
-
if (t === null ||
|
988
|
+
if (t === null || nt(t) !== "object")
|
919
989
|
throw new Error(r);
|
920
990
|
if (Object.keys(t).length === 1 && typeof t.advancedFraudSignals == "boolean")
|
921
991
|
return t;
|
922
992
|
throw new Error(r);
|
923
|
-
},
|
993
|
+
}, ye, fe = !1, ve = function() {
|
924
994
|
for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
|
925
995
|
r[s] = arguments[s];
|
926
|
-
|
996
|
+
fe = !0;
|
927
997
|
var n = Date.now();
|
928
|
-
return
|
929
|
-
return
|
998
|
+
return Qr(ye).then(function(i) {
|
999
|
+
return ts(i, r, n);
|
930
1000
|
});
|
931
1001
|
};
|
932
|
-
|
933
|
-
if (
|
1002
|
+
ve.setLoadParameters = function(e) {
|
1003
|
+
if (fe)
|
934
1004
|
throw new Error("You cannot change load parameters after calling loadStripe");
|
935
|
-
|
1005
|
+
ye = es(e);
|
936
1006
|
};
|
937
|
-
var
|
1007
|
+
var ge = class extends Error {
|
938
1008
|
constructor(e, t) {
|
939
1009
|
super(`<${e}>: ${t}`), this.originalMessage = t;
|
940
1010
|
}
|
941
1011
|
};
|
942
|
-
function
|
943
|
-
return !!e && e instanceof
|
1012
|
+
function be(e) {
|
1013
|
+
return !!e && e instanceof ge;
|
944
1014
|
}
|
945
|
-
var
|
946
|
-
toAttribute: (e) => e ?
|
947
|
-
}, h = class extends
|
1015
|
+
var rs = {
|
1016
|
+
toAttribute: (e) => e ? be(e) ? e.originalMessage : e.message || "" : null
|
1017
|
+
}, h = class extends G {
|
948
1018
|
constructor() {
|
949
|
-
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
|
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 Kr(this, {
|
950
1020
|
slotName: `${this.constructor.is}-slot`
|
951
1021
|
});
|
952
1022
|
}
|
@@ -957,8 +1027,8 @@ var Wr = {
|
|
957
1027
|
return this.breadcrumb.mount;
|
958
1028
|
}
|
959
1029
|
render() {
|
960
|
-
const { error: e, showError: t } = this, { slotName: r } = this.breadcrumb, s =
|
961
|
-
return
|
1030
|
+
const { error: e, showError: t } = this, { slotName: r } = this.breadcrumb, s = be(e) ? e.originalMessage : e?.message;
|
1031
|
+
return Cr`
|
962
1032
|
<div id="stripe" part="stripe">
|
963
1033
|
<slot id="stripe-slot" name="${r}"></slot>
|
964
1034
|
</div>
|
@@ -967,7 +1037,7 @@ var Wr = {
|
|
967
1037
|
for="stripe"
|
968
1038
|
part="error"
|
969
1039
|
?hidden="${!t}">
|
970
|
-
${
|
1040
|
+
${Lr(s)}
|
971
1041
|
</output>
|
972
1042
|
`;
|
973
1043
|
}
|
@@ -978,7 +1048,7 @@ var Wr = {
|
|
978
1048
|
super.disconnectedCallback(), await this.unmount?.();
|
979
1049
|
}
|
980
1050
|
reset() {
|
981
|
-
this.element?.clear?.(), this.resetRepresentations(),
|
1051
|
+
this.element?.clear?.(), this.resetRepresentations(), d.set(this, { error: null });
|
982
1052
|
}
|
983
1053
|
blur() {
|
984
1054
|
this.element?.blur();
|
@@ -987,7 +1057,7 @@ var Wr = {
|
|
987
1057
|
this.element?.focus();
|
988
1058
|
}
|
989
1059
|
createError(e) {
|
990
|
-
return new
|
1060
|
+
return new ge(this.constructor.is, e);
|
991
1061
|
}
|
992
1062
|
errorChanged() {
|
993
1063
|
this.resetRepresentations(), this.fireError(this.error);
|
@@ -1003,7 +1073,7 @@ var Wr = {
|
|
1003
1073
|
}
|
1004
1074
|
async handleResponse(e) {
|
1005
1075
|
const { error: t = null, paymentMethod: r = null, source: s = null, token: n = null } = { ...e };
|
1006
|
-
if (
|
1076
|
+
if (d.set(this, { error: t, paymentMethod: r, source: s, token: n }), await this.updateComplete, t)
|
1007
1077
|
throw t;
|
1008
1078
|
return e;
|
1009
1079
|
}
|
@@ -1019,15 +1089,15 @@ var Wr = {
|
|
1019
1089
|
async initStripe() {
|
1020
1090
|
const { publishableKey: e, stripeAccount: t, locale: r } = this;
|
1021
1091
|
if (!e)
|
1022
|
-
|
1092
|
+
d.set(this, { elements: null, element: null, stripe: null });
|
1023
1093
|
else
|
1024
1094
|
try {
|
1025
|
-
const s = { stripeAccount: t, locale: r }, n = window.Stripe ? window.Stripe(e, s) : await
|
1026
|
-
|
1095
|
+
const s = { stripeAccount: t, locale: r }, n = window.Stripe ? window.Stripe(e, s) : await ve(e, s), i = n?.elements();
|
1096
|
+
d.set(this, { elements: i, error: null, stripe: n });
|
1027
1097
|
} catch (s) {
|
1028
1098
|
console.warn(s);
|
1029
1099
|
const n = this.createError("Stripe.js must be loaded first.");
|
1030
|
-
|
1100
|
+
d.set(this, { elements: null, error: n, stripe: null });
|
1031
1101
|
} finally {
|
1032
1102
|
await this.updateComplete;
|
1033
1103
|
}
|
@@ -1038,29 +1108,29 @@ var Wr = {
|
|
1038
1108
|
this.element?.mount(this.breadcrumb.mount);
|
1039
1109
|
}
|
1040
1110
|
async unmount() {
|
1041
|
-
this.element?.unmount?.(),
|
1111
|
+
this.element?.unmount?.(), d.set(this, { element: null }), await this.updateComplete;
|
1042
1112
|
}
|
1043
1113
|
async onBlur() {
|
1044
|
-
|
1114
|
+
d.set(this, { focused: !1 }), await this.updateComplete;
|
1045
1115
|
}
|
1046
1116
|
async onFocus() {
|
1047
|
-
|
1117
|
+
d.set(this, { focused: !0 }), await this.updateComplete;
|
1048
1118
|
}
|
1049
1119
|
async onReady(e) {
|
1050
|
-
|
1120
|
+
d.set(this, { ready: !0 }), await this.updateComplete, this.fire("ready", e);
|
1051
1121
|
}
|
1052
1122
|
async postRepresentation() {
|
1053
|
-
const e = (l) =>
|
1054
|
-
return fetch(this.action, { body: i, headers: o, method: "POST" }).then(
|
1123
|
+
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(Dr).then(t).catch(e);
|
1055
1125
|
}
|
1056
1126
|
representationChanged(e) {
|
1057
|
-
if (!
|
1127
|
+
if (!zr(e))
|
1058
1128
|
return;
|
1059
1129
|
const t = this[e];
|
1060
|
-
t && (this.fire(`${
|
1130
|
+
t && (this.fire(`${de(e)}`, t), this.action && this.postRepresentation());
|
1061
1131
|
}
|
1062
1132
|
resetRepresentations() {
|
1063
|
-
|
1133
|
+
d.set(this, {
|
1064
1134
|
paymentMethod: null,
|
1065
1135
|
token: null,
|
1066
1136
|
source: null
|
@@ -1068,106 +1138,106 @@ var Wr = {
|
|
1068
1138
|
}
|
1069
1139
|
};
|
1070
1140
|
a([
|
1071
|
-
|
1141
|
+
u({ type: String })
|
1072
1142
|
], h.prototype, "action", 2);
|
1073
1143
|
a([
|
1074
|
-
|
1144
|
+
u({ type: String, attribute: "client-secret" })
|
1075
1145
|
], h.prototype, "clientSecret", 2);
|
1076
1146
|
a([
|
1077
|
-
|
1147
|
+
u({ type: String })
|
1078
1148
|
], h.prototype, "generate", 2);
|
1079
1149
|
a([
|
1080
|
-
|
1081
|
-
|
1150
|
+
w,
|
1151
|
+
u({ type: String, attribute: "publishable-key", reflect: !0 })
|
1082
1152
|
], h.prototype, "publishableKey", 2);
|
1083
1153
|
a([
|
1084
|
-
|
1154
|
+
u({ type: Boolean, attribute: "show-error", reflect: !0 })
|
1085
1155
|
], h.prototype, "showError", 2);
|
1086
1156
|
a([
|
1087
|
-
|
1157
|
+
u({ type: String, attribute: "stripe-account" })
|
1088
1158
|
], h.prototype, "stripeAccount", 2);
|
1089
1159
|
a([
|
1090
|
-
|
1160
|
+
u({ type: String, attribute: "locale" })
|
1091
1161
|
], h.prototype, "locale", 2);
|
1092
1162
|
a([
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1163
|
+
d,
|
1164
|
+
w,
|
1165
|
+
u({ type: Object, attribute: "payment-method" })
|
1096
1166
|
], h.prototype, "paymentMethod", 2);
|
1097
1167
|
a([
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1168
|
+
d,
|
1169
|
+
w,
|
1170
|
+
u({ type: Object })
|
1101
1171
|
], h.prototype, "source", 2);
|
1102
1172
|
a([
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1173
|
+
d,
|
1174
|
+
w,
|
1175
|
+
u({ type: Object })
|
1106
1176
|
], h.prototype, "token", 2);
|
1107
1177
|
a([
|
1108
|
-
|
1109
|
-
|
1178
|
+
d,
|
1179
|
+
u({ type: Object })
|
1110
1180
|
], h.prototype, "element", 2);
|
1111
1181
|
a([
|
1112
|
-
|
1113
|
-
|
1182
|
+
d,
|
1183
|
+
u({ type: Object })
|
1114
1184
|
], h.prototype, "elements", 2);
|
1115
1185
|
a([
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1186
|
+
d,
|
1187
|
+
w,
|
1188
|
+
u({ type: Object, reflect: !0, converter: rs })
|
1119
1189
|
], h.prototype, "error", 2);
|
1120
1190
|
a([
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1191
|
+
d,
|
1192
|
+
w,
|
1193
|
+
u({ type: Boolean, reflect: !0 })
|
1124
1194
|
], h.prototype, "focused", 2);
|
1125
1195
|
a([
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1196
|
+
d,
|
1197
|
+
w,
|
1198
|
+
u({ type: Boolean, reflect: !0 })
|
1129
1199
|
], h.prototype, "ready", 2);
|
1130
1200
|
a([
|
1131
|
-
|
1132
|
-
|
1201
|
+
d,
|
1202
|
+
u({ type: Object })
|
1133
1203
|
], h.prototype, "stripe", 2);
|
1134
1204
|
a([
|
1135
|
-
|
1205
|
+
u()
|
1136
1206
|
], h.prototype, "theme", 2);
|
1137
1207
|
a([
|
1138
|
-
|
1208
|
+
u({ attribute: "border-radius" })
|
1139
1209
|
], h.prototype, "borderRadius", 2);
|
1140
1210
|
a([
|
1141
|
-
|
1211
|
+
u({ attribute: "color-background" })
|
1142
1212
|
], h.prototype, "colorBackground", 2);
|
1143
1213
|
a([
|
1144
|
-
|
1214
|
+
u({ attribute: "color-danger" })
|
1145
1215
|
], h.prototype, "colorDanger", 2);
|
1146
1216
|
a([
|
1147
|
-
|
1217
|
+
u({ attribute: "color-primary" })
|
1148
1218
|
], h.prototype, "colorPrimary", 2);
|
1149
1219
|
a([
|
1150
|
-
|
1220
|
+
u({ attribute: "color-text" })
|
1151
1221
|
], h.prototype, "colorText", 2);
|
1152
1222
|
a([
|
1153
|
-
|
1223
|
+
u({ attribute: "font-family" })
|
1154
1224
|
], h.prototype, "fontFamily", 2);
|
1155
1225
|
a([
|
1156
|
-
|
1226
|
+
u({ attribute: "spacing-unit" })
|
1157
1227
|
], h.prototype, "spacingUnit", 2);
|
1158
1228
|
a([
|
1159
|
-
|
1229
|
+
C
|
1160
1230
|
], h.prototype, "handleResponse", 1);
|
1161
1231
|
a([
|
1162
|
-
|
1232
|
+
C
|
1163
1233
|
], h.prototype, "onBlur", 1);
|
1164
1234
|
a([
|
1165
|
-
|
1235
|
+
C
|
1166
1236
|
], h.prototype, "onFocus", 1);
|
1167
1237
|
a([
|
1168
|
-
|
1238
|
+
C
|
1169
1239
|
], h.prototype, "onReady", 1);
|
1170
|
-
var
|
1240
|
+
var ss = _t`[hidden] {
|
1171
1241
|
display: none !important;
|
1172
1242
|
}
|
1173
1243
|
|
@@ -1182,7 +1252,7 @@ var Gr = Tt`[hidden] {
|
|
1182
1252
|
padding-left: 42px;
|
1183
1253
|
padding-bottom: 10px;
|
1184
1254
|
}
|
1185
|
-
`,
|
1255
|
+
`, Se = ss, ns = _t`:host {
|
1186
1256
|
min-width: var(--stripe-elements-width, 300px);
|
1187
1257
|
min-height: var(--stripe-elements-height, 50px);
|
1188
1258
|
}
|
@@ -1205,7 +1275,7 @@ var Gr = Tt`[hidden] {
|
|
1205
1275
|
:host([error]) #stripe {
|
1206
1276
|
border-color: #fa755a;
|
1207
1277
|
}
|
1208
|
-
`,
|
1278
|
+
`, is = ns, Zt = [
|
1209
1279
|
"color",
|
1210
1280
|
"fontFamily",
|
1211
1281
|
"fontSize",
|
@@ -1218,14 +1288,14 @@ var Gr = Tt`[hidden] {
|
|
1218
1288
|
"textDecoration",
|
1219
1289
|
"textShadow",
|
1220
1290
|
"textTransform"
|
1221
|
-
],
|
1291
|
+
], os = [
|
1222
1292
|
":hover",
|
1223
1293
|
":focus",
|
1224
1294
|
"::placeholder",
|
1225
1295
|
"::selection",
|
1226
1296
|
":-webkit-autofill",
|
1227
1297
|
":disabled"
|
1228
|
-
],
|
1298
|
+
], $ = class extends h {
|
1229
1299
|
constructor() {
|
1230
1300
|
super(...arguments), this.hideIcon = !1, this.hidePostalCode = !1, this.iconStyle = "default", this.value = {}, this.brand = null, this.complete = !1, this.empty = !0, this.invalid = !1;
|
1231
1301
|
}
|
@@ -1254,13 +1324,13 @@ var Gr = Tt`[hidden] {
|
|
1254
1324
|
return this.createToken();
|
1255
1325
|
default: {
|
1256
1326
|
const e = this.createError(`cannot generate ${this.generate}`);
|
1257
|
-
throw
|
1327
|
+
throw d.set(this, { error: e }), await this.updateComplete, e;
|
1258
1328
|
}
|
1259
1329
|
}
|
1260
1330
|
}
|
1261
1331
|
validate() {
|
1262
1332
|
const { complete: e, empty: t, error: r } = this, s = !r && e && !t;
|
1263
|
-
return t && !r &&
|
1333
|
+
return t && !r && d.set(this, { error: this.createError("Your card number is empty.") }), s;
|
1264
1334
|
}
|
1265
1335
|
updateStyle() {
|
1266
1336
|
this.element?.update({
|
@@ -1280,22 +1350,22 @@ var Gr = Tt`[hidden] {
|
|
1280
1350
|
const e = (n) => this.getCSSCustomPropertyValue(n) || void 0, t = ["base", "complete", "empty", "invalid"], r = (n) => (i, o) => {
|
1281
1351
|
if (n.includes("-"))
|
1282
1352
|
return i;
|
1283
|
-
const
|
1353
|
+
const c = o.split(":").pop();
|
1284
1354
|
return {
|
1285
1355
|
...i,
|
1286
|
-
[o]:
|
1356
|
+
[o]: Zt.reduce(s(`${n}-${c}`), {})
|
1287
1357
|
};
|
1288
1358
|
}, s = (n) => (i, o) => {
|
1289
|
-
const
|
1359
|
+
const c = `--stripe-elements-${n}-${de(o)}`;
|
1290
1360
|
return {
|
1291
1361
|
...i,
|
1292
|
-
[o]: e(
|
1293
|
-
...
|
1362
|
+
[o]: e(c),
|
1363
|
+
...os.reduce(r(n), {})
|
1294
1364
|
};
|
1295
1365
|
};
|
1296
1366
|
return t.reduce((n, i) => ({
|
1297
1367
|
...n,
|
1298
|
-
[i]:
|
1368
|
+
[i]: Zt.reduce(s(i), {})
|
1299
1369
|
}), {});
|
1300
1370
|
}
|
1301
1371
|
async initElement() {
|
@@ -1310,121 +1380,121 @@ var Gr = Tt`[hidden] {
|
|
1310
1380
|
style: n,
|
1311
1381
|
value: s
|
1312
1382
|
});
|
1313
|
-
i.on("change", this.onChange),
|
1383
|
+
i.on("change", this.onChange), d.set(this, { element: i }), await this.updateComplete;
|
1314
1384
|
}
|
1315
1385
|
createElement(e) {
|
1316
1386
|
return this.elements.create("card", e);
|
1317
1387
|
}
|
1318
1388
|
async onChange(e) {
|
1319
1389
|
const { brand: t, complete: r, empty: s, error: n = null } = e, i = !(n || !s && !r);
|
1320
|
-
|
1390
|
+
d.set(this, { brand: t, complete: r, empty: s, error: n, invalid: i }), await this.updateComplete, this.fire("change", e);
|
1321
1391
|
}
|
1322
1392
|
};
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1393
|
+
$.is = "stripe-elements";
|
1394
|
+
$.elementType = "card";
|
1395
|
+
$.styles = [
|
1396
|
+
Se,
|
1397
|
+
is
|
1328
1398
|
];
|
1329
1399
|
a([
|
1330
|
-
|
1331
|
-
],
|
1400
|
+
u({ type: Boolean, attribute: "hide-icon" })
|
1401
|
+
], $.prototype, "hideIcon", 2);
|
1332
1402
|
a([
|
1333
|
-
|
1334
|
-
],
|
1403
|
+
u({ type: Boolean, attribute: "hide-postal-code" })
|
1404
|
+
], $.prototype, "hidePostalCode", 2);
|
1335
1405
|
a([
|
1336
|
-
|
1337
|
-
],
|
1406
|
+
u({ type: String, attribute: "icon-style" })
|
1407
|
+
], $.prototype, "iconStyle", 2);
|
1338
1408
|
a([
|
1339
|
-
|
1340
|
-
],
|
1409
|
+
u({ type: Object })
|
1410
|
+
], $.prototype, "value", 2);
|
1341
1411
|
a([
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
],
|
1412
|
+
w,
|
1413
|
+
d,
|
1414
|
+
u({ type: String })
|
1415
|
+
], $.prototype, "brand", 2);
|
1346
1416
|
a([
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
],
|
1417
|
+
w,
|
1418
|
+
d,
|
1419
|
+
u({ type: Boolean, reflect: !0 })
|
1420
|
+
], $.prototype, "complete", 2);
|
1351
1421
|
a([
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
],
|
1422
|
+
w,
|
1423
|
+
d,
|
1424
|
+
u({ type: Boolean, reflect: !0 })
|
1425
|
+
], $.prototype, "empty", 2);
|
1356
1426
|
a([
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
],
|
1427
|
+
w,
|
1428
|
+
d,
|
1429
|
+
u({ type: Boolean, reflect: !0 })
|
1430
|
+
], $.prototype, "invalid", 2);
|
1361
1431
|
a([
|
1362
|
-
|
1363
|
-
],
|
1432
|
+
Et
|
1433
|
+
], $.prototype, "createPaymentMethod", 1);
|
1364
1434
|
a([
|
1365
|
-
|
1366
|
-
],
|
1435
|
+
Et
|
1436
|
+
], $.prototype, "createSource", 1);
|
1367
1437
|
a([
|
1368
|
-
|
1369
|
-
],
|
1438
|
+
Et
|
1439
|
+
], $.prototype, "createToken", 1);
|
1370
1440
|
a([
|
1371
|
-
|
1372
|
-
],
|
1373
|
-
|
1374
|
-
|
1375
|
-
],
|
1376
|
-
var
|
1441
|
+
C
|
1442
|
+
], $.prototype, "onChange", 1);
|
1443
|
+
$ = a([
|
1444
|
+
ne("stripe-elements")
|
1445
|
+
], $);
|
1446
|
+
var as = _t`#stripe {
|
1377
1447
|
box-sizing: border-box;
|
1378
1448
|
min-width: var(--stripe-payment-request-element-min-width, 300px);
|
1379
1449
|
padding: var(--stripe-payment-request-element-padding, 8px 12px);
|
1380
1450
|
background: var(--stripe-payment-request-element-background, white);
|
1381
1451
|
}
|
1382
|
-
`,
|
1383
|
-
function
|
1452
|
+
`, ls = as;
|
1453
|
+
function us(e) {
|
1384
1454
|
return e.tagName.toLowerCase() === "stripe-display-item";
|
1385
1455
|
}
|
1386
|
-
function
|
1456
|
+
function cs({ dataset: { amount: e, label: t, pending: r } }) {
|
1387
1457
|
return {
|
1388
1458
|
label: t,
|
1389
1459
|
amount: parseInt(e),
|
1390
1460
|
...r !== void 0 && { pending: r === "true" }
|
1391
1461
|
};
|
1392
1462
|
}
|
1393
|
-
function
|
1463
|
+
function ds({ dataset: { amount: e, detail: t, ...r } }) {
|
1394
1464
|
return {
|
1395
1465
|
amount: parseInt(e),
|
1396
1466
|
detail: t,
|
1397
1467
|
...r
|
1398
1468
|
};
|
1399
1469
|
}
|
1400
|
-
function
|
1401
|
-
return
|
1470
|
+
function ps(e) {
|
1471
|
+
return us(e) ? cs(e) : ds(e);
|
1402
1472
|
}
|
1403
|
-
var
|
1473
|
+
var it, ot, m = class extends h {
|
1404
1474
|
constructor() {
|
1405
|
-
super(...arguments), this.canMakePayment = null,
|
1475
|
+
super(...arguments), this.canMakePayment = null, Gt(this, it, void 0), this.paymentIntent = null, this.paymentRequest = null, this.pending = !1, Gt(this, ot, void 0), this.buttonType = "default", this.buttonTheme = "dark", this.complete = async (e, t) => {
|
1406
1476
|
const { error: r = null } = { ...e }, s = r || t ? "fail" : "success";
|
1407
1477
|
return e.complete(s), this.fire(s, e), t ? { error: t } : e;
|
1408
1478
|
};
|
1409
1479
|
}
|
1410
1480
|
get displayItems() {
|
1411
|
-
const e =
|
1481
|
+
const e = Wt(this, it);
|
1412
1482
|
return Array.isArray(e) ? e : this.parseDatasets("stripe-display-item");
|
1413
1483
|
}
|
1414
1484
|
set displayItems(e) {
|
1415
1485
|
const t = this.displayItems;
|
1416
|
-
|
1486
|
+
Kt(this, it, e), this.requestUpdate("displayItems", t);
|
1417
1487
|
}
|
1418
1488
|
get shippingOptions() {
|
1419
|
-
const e =
|
1489
|
+
const e = Wt(this, ot);
|
1420
1490
|
return Array.isArray(e) ? e : this.parseDatasets("stripe-shipping-option");
|
1421
1491
|
}
|
1422
1492
|
set shippingOptions(e) {
|
1423
1493
|
const t = this.shippingOptions;
|
1424
|
-
|
1494
|
+
Kt(this, ot, e), this.requestUpdate("shippingOptions", t);
|
1425
1495
|
}
|
1426
1496
|
reset() {
|
1427
|
-
super.reset(),
|
1497
|
+
super.reset(), d.set(this, { paymentIntent: null });
|
1428
1498
|
}
|
1429
1499
|
updated(e) {
|
1430
1500
|
super.updated(e), e.has("generate") && this.initPaymentRequestListeners(), e.has("amount") && this.updatePaymentRequest();
|
@@ -1438,9 +1508,9 @@ var dt, pt, f = class extends h {
|
|
1438
1508
|
requestShipping: n,
|
1439
1509
|
requestPayerEmail: i,
|
1440
1510
|
requestPayerName: o,
|
1441
|
-
requestPayerPhone:
|
1511
|
+
requestPayerPhone: c,
|
1442
1512
|
label: l = "",
|
1443
|
-
amount:
|
1513
|
+
amount: p = 0
|
1444
1514
|
} = this;
|
1445
1515
|
return {
|
1446
1516
|
country: e,
|
@@ -1448,10 +1518,10 @@ var dt, pt, f = class extends h {
|
|
1448
1518
|
displayItems: r,
|
1449
1519
|
requestPayerEmail: i,
|
1450
1520
|
requestPayerName: o,
|
1451
|
-
requestPayerPhone:
|
1521
|
+
requestPayerPhone: c,
|
1452
1522
|
requestShipping: n,
|
1453
1523
|
shippingOptions: s,
|
1454
|
-
total: { label: l, amount:
|
1524
|
+
total: { label: l, amount: p }
|
1455
1525
|
};
|
1456
1526
|
}
|
1457
1527
|
async initElement() {
|
@@ -1461,7 +1531,7 @@ var dt, pt, f = class extends h {
|
|
1461
1531
|
if (!this.stripe)
|
1462
1532
|
return;
|
1463
1533
|
const e = this.getStripePaymentRequestOptions(), t = this.stripe.paymentRequest(e), r = await t.canMakePayment();
|
1464
|
-
|
1534
|
+
d.set(this, { paymentRequest: t, canMakePayment: r }), await this.updateComplete, this.canMakePayment || this.fire("unsupported");
|
1465
1535
|
}
|
1466
1536
|
async initPaymentRequestButton() {
|
1467
1537
|
const { buttonTheme: e, buttonType: t, canMakePayment: r } = this;
|
@@ -1471,7 +1541,7 @@ var dt, pt, f = class extends h {
|
|
1471
1541
|
paymentRequest: this.paymentRequest,
|
1472
1542
|
style: i
|
1473
1543
|
});
|
1474
|
-
|
1544
|
+
d.set(this, { element: o }), await this.updateComplete;
|
1475
1545
|
}
|
1476
1546
|
async initPaymentRequestListeners() {
|
1477
1547
|
if (this.canMakePayment)
|
@@ -1506,11 +1576,11 @@ var dt, pt, f = class extends h {
|
|
1506
1576
|
source: s = null,
|
1507
1577
|
token: n = null
|
1508
1578
|
} = { ...e };
|
1509
|
-
|
1579
|
+
d.set(this, { error: t, paymentMethod: r, source: s, token: n }), this.clientSecret && !t ? this.confirmPaymentIntent(e) : this.complete(e);
|
1510
1580
|
}
|
1511
1581
|
async confirmPaymentIntent(e) {
|
1512
|
-
const t = { payment_method: this.paymentMethod.id }, r = await this.confirmCardPayment(t, { handleActions: !1 }).then(({ error: i }) => this.complete(e, i)).then(
|
1513
|
-
|
1582
|
+
const t = { payment_method: this.paymentMethod.id }, r = await this.confirmCardPayment(t, { handleActions: !1 }).then(({ error: i }) => this.complete(e, i)).then(Ft).then(() => this.confirmCardPayment()).then(Ft).catch((i) => ({ error: i })), { error: s = null } = r, n = r.paymentIntent ?? null;
|
1583
|
+
d.set(this, { error: s, paymentIntent: n }), await this.updateComplete;
|
1514
1584
|
}
|
1515
1585
|
async confirmCardPayment(e, t) {
|
1516
1586
|
return this.stripe.confirmCardPayment(this.clientSecret, e, t);
|
@@ -1523,504 +1593,159 @@ var dt, pt, f = class extends h {
|
|
1523
1593
|
}
|
1524
1594
|
parseDatasets(e) {
|
1525
1595
|
const t = [...this.querySelectorAll(e)];
|
1526
|
-
return t.length ? t.map(
|
1596
|
+
return t.length ? t.map(ps) : [];
|
1527
1597
|
}
|
1528
1598
|
};
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1599
|
+
it = /* @__PURE__ */ new WeakMap();
|
1600
|
+
ot = /* @__PURE__ */ new WeakMap();
|
1601
|
+
m.is = "stripe-payment-request";
|
1602
|
+
m.styles = [
|
1603
|
+
Se,
|
1604
|
+
ls
|
1535
1605
|
];
|
1536
1606
|
a([
|
1537
|
-
|
1538
|
-
],
|
1607
|
+
u({ type: Number, reflect: !0 })
|
1608
|
+
], m.prototype, "amount", 2);
|
1539
1609
|
a([
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
],
|
1610
|
+
w,
|
1611
|
+
d,
|
1612
|
+
u({ type: Boolean, attribute: "can-make-payment", reflect: !0 })
|
1613
|
+
], m.prototype, "canMakePayment", 2);
|
1544
1614
|
a([
|
1545
|
-
|
1546
|
-
],
|
1615
|
+
u({ type: String })
|
1616
|
+
], m.prototype, "country", 2);
|
1547
1617
|
a([
|
1548
|
-
|
1549
|
-
],
|
1618
|
+
u({ type: String })
|
1619
|
+
], m.prototype, "currency", 2);
|
1550
1620
|
a([
|
1551
|
-
|
1552
|
-
],
|
1621
|
+
u({ type: Array })
|
1622
|
+
], m.prototype, "displayItems", 1);
|
1553
1623
|
a([
|
1554
|
-
|
1555
|
-
],
|
1624
|
+
u({ type: String, reflect: !0 })
|
1625
|
+
], m.prototype, "label", 2);
|
1556
1626
|
a([
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
],
|
1627
|
+
w,
|
1628
|
+
d,
|
1629
|
+
u({ type: Object, attribute: "payment-intent" })
|
1630
|
+
], m.prototype, "paymentIntent", 2);
|
1561
1631
|
a([
|
1562
|
-
|
1563
|
-
|
1564
|
-
],
|
1632
|
+
d,
|
1633
|
+
u({ type: Object, attribute: "payment-request" })
|
1634
|
+
], m.prototype, "paymentRequest", 2);
|
1565
1635
|
a([
|
1566
|
-
|
1567
|
-
],
|
1636
|
+
u({ type: Boolean, reflect: !0 })
|
1637
|
+
], m.prototype, "pending", 2);
|
1568
1638
|
a([
|
1569
|
-
|
1570
|
-
],
|
1639
|
+
u({ type: Boolean, attribute: "request-payer-email" })
|
1640
|
+
], m.prototype, "requestPayerEmail", 2);
|
1571
1641
|
a([
|
1572
|
-
|
1573
|
-
],
|
1642
|
+
u({ type: Boolean, attribute: "request-payer-name" })
|
1643
|
+
], m.prototype, "requestPayerName", 2);
|
1574
1644
|
a([
|
1575
|
-
|
1576
|
-
],
|
1645
|
+
u({ type: Boolean, attribute: "request-payer-phone" })
|
1646
|
+
], m.prototype, "requestPayerPhone", 2);
|
1577
1647
|
a([
|
1578
|
-
|
1579
|
-
],
|
1648
|
+
u({ type: Boolean, attribute: "request-shipping" })
|
1649
|
+
], m.prototype, "requestShipping", 2);
|
1580
1650
|
a([
|
1581
|
-
|
1582
|
-
],
|
1651
|
+
u({ type: Array })
|
1652
|
+
], m.prototype, "shippingOptions", 1);
|
1583
1653
|
a([
|
1584
|
-
|
1585
|
-
],
|
1654
|
+
u({ type: String, attribute: "button-type" })
|
1655
|
+
], m.prototype, "buttonType", 2);
|
1586
1656
|
a([
|
1587
|
-
|
1588
|
-
],
|
1657
|
+
u({ type: String, attribute: "button-theme" })
|
1658
|
+
], m.prototype, "buttonTheme", 2);
|
1589
1659
|
a([
|
1590
|
-
|
1591
|
-
],
|
1660
|
+
C
|
1661
|
+
], m.prototype, "onCancel", 1);
|
1592
1662
|
a([
|
1593
|
-
|
1594
|
-
],
|
1663
|
+
C
|
1664
|
+
], m.prototype, "onPaymentResponse", 1);
|
1595
1665
|
a([
|
1596
|
-
|
1597
|
-
],
|
1666
|
+
C
|
1667
|
+
], m.prototype, "confirmPaymentIntent", 1);
|
1598
1668
|
a([
|
1599
|
-
|
1600
|
-
],
|
1669
|
+
C
|
1670
|
+
], m.prototype, "confirmCardPayment", 1);
|
1601
1671
|
a([
|
1602
|
-
|
1603
|
-
],
|
1672
|
+
C
|
1673
|
+
], m.prototype, "onShippingaddresschange", 1);
|
1604
1674
|
a([
|
1605
|
-
|
1606
|
-
],
|
1607
|
-
|
1608
|
-
|
1609
|
-
],
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
var as = function(t) {
|
1614
|
-
return is.test(t) || os.test(t);
|
1615
|
-
}, ls = function() {
|
1616
|
-
for (var t = document.querySelectorAll('script[src^="'.concat(ke, '"]')), r = 0; r < t.length; r++) {
|
1617
|
-
var s = t[r];
|
1618
|
-
if (as(s.src))
|
1619
|
-
return s;
|
1620
|
-
}
|
1621
|
-
return null;
|
1622
|
-
}, ae = function(t) {
|
1623
|
-
var r = "", s = document.createElement("script");
|
1624
|
-
s.src = "".concat(ns).concat(r);
|
1625
|
-
var n = document.head || document.body;
|
1626
|
-
if (!n)
|
1627
|
-
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
1628
|
-
return n.appendChild(s), s;
|
1629
|
-
}, cs = function(t, r) {
|
1630
|
-
!t || !t._registerWrapper || t._registerWrapper({
|
1631
|
-
name: "stripe-js",
|
1632
|
-
version: "7.8.0",
|
1633
|
-
startTime: r
|
1634
|
-
});
|
1635
|
-
}, K = null, ot = null, at = null, us = function(t) {
|
1636
|
-
return function(r) {
|
1637
|
-
t(new Error("Failed to load Stripe.js", {
|
1638
|
-
cause: r
|
1639
|
-
}));
|
1640
|
-
};
|
1641
|
-
}, ds = function(t, r) {
|
1642
|
-
return function() {
|
1643
|
-
window.Stripe ? t(window.Stripe) : r(new Error("Stripe.js not available"));
|
1644
|
-
};
|
1645
|
-
}, ps = function(t) {
|
1646
|
-
return K !== null ? K : (K = new Promise(function(r, s) {
|
1647
|
-
if (typeof window > "u" || typeof document > "u") {
|
1648
|
-
r(null);
|
1649
|
-
return;
|
1650
|
-
}
|
1651
|
-
if (window.Stripe) {
|
1652
|
-
r(window.Stripe);
|
1653
|
-
return;
|
1654
|
-
}
|
1655
|
-
try {
|
1656
|
-
var n = ls();
|
1657
|
-
if (!(n && t)) {
|
1658
|
-
if (!n)
|
1659
|
-
n = ae(t);
|
1660
|
-
else if (n && at !== null && ot !== null) {
|
1661
|
-
var i;
|
1662
|
-
n.removeEventListener("load", at), n.removeEventListener("error", ot), (i = n.parentNode) === null || i === void 0 || i.removeChild(n), n = ae(t);
|
1663
|
-
}
|
1664
|
-
}
|
1665
|
-
at = ds(r, s), ot = us(s), n.addEventListener("load", at), n.addEventListener("error", ot);
|
1666
|
-
} catch (o) {
|
1667
|
-
s(o);
|
1668
|
-
return;
|
1669
|
-
}
|
1670
|
-
}), K.catch(function(r) {
|
1671
|
-
return K = null, Promise.reject(r);
|
1672
|
-
}));
|
1673
|
-
}, hs = function(t, r, s) {
|
1674
|
-
if (t === null)
|
1675
|
-
return null;
|
1676
|
-
var n = r[0], i = n.match(/^pk_test/), o = ss(t.version), u = Ae;
|
1677
|
-
i && o !== u && console.warn("Stripe.js@".concat(o, " was loaded on the page, but @stripe/stripe-js@").concat("7.8.0", " expected Stripe.js@").concat(u, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
1678
|
-
var l = t.apply(void 0, r);
|
1679
|
-
return cs(l, s), l;
|
1680
|
-
}, J, xe = !1, Re = function() {
|
1681
|
-
return J || (J = ps(null).catch(function(t) {
|
1682
|
-
return J = null, Promise.reject(t);
|
1683
|
-
}), J);
|
1684
|
-
};
|
1685
|
-
Promise.resolve().then(function() {
|
1686
|
-
return Re();
|
1687
|
-
}).catch(function(e) {
|
1688
|
-
xe || console.warn(e);
|
1689
|
-
});
|
1690
|
-
var ms = function() {
|
1691
|
-
for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
|
1692
|
-
r[s] = arguments[s];
|
1693
|
-
xe = !0;
|
1694
|
-
var n = Date.now();
|
1695
|
-
return Re().then(function(i) {
|
1696
|
-
return hs(i, r, n);
|
1697
|
-
});
|
1698
|
-
};
|
1699
|
-
const ys = { class: "w-100 d-flex justify-space-between items-center" }, fs = { class: "text-caption font-weight-bold text-center my-0 text-red rounded" }, vs = { class: "pr-3" }, gs = ["disable", "locale", "publishable-key"], bs = ["innerHTML"], Ss = { class: "ml-1 text-caption" }, _s = { class: "mr-1" }, Me = /* @__PURE__ */ qe({
|
1700
|
-
__name: "CreditCardStripeForm",
|
1701
|
-
props: {
|
1702
|
-
amount: {},
|
1703
|
-
currency: {},
|
1704
|
-
disabled: { type: Boolean },
|
1705
|
-
loading: { type: Boolean },
|
1706
|
-
stripeToken: {},
|
1707
|
-
withAction: { type: Boolean },
|
1708
|
-
withTerms: { type: Boolean }
|
1675
|
+
C
|
1676
|
+
], m.prototype, "onShippingoptionchange", 1);
|
1677
|
+
m = a([
|
1678
|
+
ne("stripe-payment-request")
|
1679
|
+
], m);
|
1680
|
+
const $e = ke({
|
1681
|
+
components: {
|
1682
|
+
BFormattedAmount: He
|
1709
1683
|
},
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
function S(y) {
|
1714
|
-
switch (y) {
|
1715
|
-
case H.Production:
|
1716
|
-
return "pk_live_x99EPirYIsCyUsRvPAfyhnRp";
|
1717
|
-
case H.Sandbox:
|
1718
|
-
case H.Staging:
|
1719
|
-
case H.CiCd:
|
1720
|
-
case H.Local:
|
1721
|
-
default:
|
1722
|
-
return "pk_test_wXnn2RrefTiOHB0zzxqJr0s8";
|
1723
|
-
}
|
1724
|
-
}
|
1725
|
-
const $ = ce(
|
1726
|
-
() => S(v.value.apiEnvironment)
|
1727
|
-
);
|
1728
|
-
function O(y) {
|
1729
|
-
o.value = "", m("change", !!y.detail.complete);
|
1684
|
+
computed: {
|
1685
|
+
termsAndConditionsUrl() {
|
1686
|
+
return this.t("CreditCardForm.termsURL");
|
1730
1687
|
}
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1688
|
+
},
|
1689
|
+
data: () => ({
|
1690
|
+
error: "",
|
1691
|
+
isTermsAccepted: !1,
|
1692
|
+
termsError: !1
|
1693
|
+
}),
|
1694
|
+
methods: {
|
1695
|
+
onCreditCardFormChange(e) {
|
1696
|
+
this.error = "", this.$emit("change", !!e.detail.complete);
|
1697
|
+
},
|
1698
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
1699
|
+
onPaymentError(e) {
|
1700
|
+
this.error = `${e?.error?.message} ${this.t("CreditCardForm.error")}`, this.$emit("error", this.error);
|
1701
|
+
},
|
1702
|
+
async onStripePayment(e) {
|
1735
1703
|
try {
|
1736
|
-
if (!window.Stripe ||
|
1704
|
+
if (!window.Stripe || this.disabled)
|
1737
1705
|
return;
|
1738
|
-
const
|
1739
|
-
locale:
|
1740
|
-
}).confirmCardPayment(
|
1706
|
+
const r = await window.Stripe(this.pk, {
|
1707
|
+
locale: this.$i18n.locale
|
1708
|
+
}).confirmCardPayment(this.token, {
|
1741
1709
|
// eslint-disable-next-line camelcase
|
1742
|
-
payment_method:
|
1710
|
+
payment_method: e.detail.id
|
1743
1711
|
});
|
1744
|
-
|
1745
|
-
} catch (
|
1746
|
-
|
1712
|
+
r.error && r.error ? this.onPaymentError(r) : this.withAction ? this.$eventBus.$emit(Me.PaymentSuccess) : this.$emit("success");
|
1713
|
+
} catch (t) {
|
1714
|
+
this.onPaymentError(t);
|
1747
1715
|
}
|
1748
|
-
}
|
1749
|
-
|
1716
|
+
},
|
1717
|
+
pay() {
|
1750
1718
|
try {
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1719
|
+
if (!this.$refs.payment || this.withTerms && !this.isTermsAccepted)
|
1720
|
+
return;
|
1721
|
+
this.$refs.payment.submit();
|
1722
|
+
} catch (e) {
|
1723
|
+
this.onPaymentError(e);
|
1754
1724
|
}
|
1755
1725
|
}
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
}
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
class: "text-white",
|
1771
|
-
color: "primary",
|
1772
|
-
density: "compact",
|
1773
|
-
elevation: "0"
|
1774
|
-
}, {
|
1775
|
-
default: g(() => [
|
1776
|
-
M("div", ys, [
|
1777
|
-
M("h4", null, [
|
1778
|
-
b(bt, {
|
1779
|
-
color: "white",
|
1780
|
-
start: "",
|
1781
|
-
size: "small"
|
1782
|
-
}, {
|
1783
|
-
default: g(() => C[2] || (C[2] = [
|
1784
|
-
nt(" fas fa-credit-card ", -1)
|
1785
|
-
])),
|
1786
|
-
_: 1,
|
1787
|
-
__: [2]
|
1788
|
-
}),
|
1789
|
-
nt(" " + T(R(i)("CreditCardStripeForm.title")) + ": ", 1),
|
1790
|
-
y.loading ? (E(), k(Ze, {
|
1791
|
-
key: 1,
|
1792
|
-
class: "ml-2",
|
1793
|
-
color: "primary",
|
1794
|
-
indeterminate: "",
|
1795
|
-
size: "20",
|
1796
|
-
width: "1"
|
1797
|
-
})) : (E(), k(Bt, {
|
1798
|
-
key: 0,
|
1799
|
-
amount: y.amount,
|
1800
|
-
class: "font-weight-bold",
|
1801
|
-
currency: y.currency
|
1802
|
-
}, null, 8, ["amount", "currency"]))
|
1803
|
-
]),
|
1804
|
-
b(bt, {
|
1805
|
-
color: "white",
|
1806
|
-
end: "",
|
1807
|
-
size: "small"
|
1808
|
-
}, {
|
1809
|
-
default: g(() => C[3] || (C[3] = [
|
1810
|
-
nt(" fas fa-lock ", -1)
|
1811
|
-
])),
|
1812
|
-
_: 1,
|
1813
|
-
__: [3]
|
1814
|
-
})
|
1815
|
-
])
|
1816
|
-
]),
|
1817
|
-
_: 1
|
1818
|
-
}),
|
1819
|
-
b(er, null, {
|
1820
|
-
default: g(() => [
|
1821
|
-
b(F, null, {
|
1822
|
-
default: g(() => [
|
1823
|
-
b(L, null, {
|
1824
|
-
default: g(() => [
|
1825
|
-
o.value ? (E(), k(Xe, {
|
1826
|
-
key: 0,
|
1827
|
-
color: "red",
|
1828
|
-
density: "compact",
|
1829
|
-
variant: "outlined"
|
1830
|
-
}, {
|
1831
|
-
default: g(() => [
|
1832
|
-
M("p", fs, T(R(i)("CreditCardStripeForm.paymentDeclined")) + ": " + T(o.value), 1)
|
1833
|
-
]),
|
1834
|
-
_: 1
|
1835
|
-
})) : vt("", !0)
|
1836
|
-
]),
|
1837
|
-
_: 1
|
1838
|
-
})
|
1839
|
-
]),
|
1840
|
-
_: 1
|
1841
|
-
}),
|
1842
|
-
b(F, {
|
1843
|
-
class: "d-none d-sm-flex",
|
1844
|
-
"no-gutters": ""
|
1845
|
-
}, {
|
1846
|
-
default: g(() => [
|
1847
|
-
b(L, { cols: "8" }, {
|
1848
|
-
default: g(() => [
|
1849
|
-
M("small", null, T(R(i)("CreditCardStripeForm.cardNumber")), 1)
|
1850
|
-
]),
|
1851
|
-
_: 1
|
1852
|
-
}),
|
1853
|
-
b(L, {
|
1854
|
-
class: "text-right pr-6",
|
1855
|
-
cols: "4"
|
1856
|
-
}, {
|
1857
|
-
default: g(() => [
|
1858
|
-
M("small", vs, T(R(i)("CreditCardStripeForm.expDate")), 1),
|
1859
|
-
M("small", null, T(R(i)("CreditCardStripeForm.cvc")), 1)
|
1860
|
-
]),
|
1861
|
-
_: 1
|
1862
|
-
})
|
1863
|
-
]),
|
1864
|
-
_: 1
|
1865
|
-
}),
|
1866
|
-
b(F, { "no-gutters": "" }, {
|
1867
|
-
default: g(() => [
|
1868
|
-
b(L, null, {
|
1869
|
-
default: g(() => [
|
1870
|
-
b(qt, {
|
1871
|
-
elevation: "0",
|
1872
|
-
border: ""
|
1873
|
-
}, {
|
1874
|
-
default: g(() => [
|
1875
|
-
l.value ? (E(), gt("stripe-elements", {
|
1876
|
-
key: 0,
|
1877
|
-
disable: y.loading,
|
1878
|
-
ref_key: "payment",
|
1879
|
-
ref: d,
|
1880
|
-
generate: "payment-method",
|
1881
|
-
"hide-postal-code": "",
|
1882
|
-
locale: R(n),
|
1883
|
-
"publishable-key": $.value,
|
1884
|
-
onChange: O,
|
1885
|
-
onError: A,
|
1886
|
-
onPaymentMethod: ft
|
1887
|
-
}, null, 40, gs)) : (E(), k(W, {
|
1888
|
-
key: 1,
|
1889
|
-
class: "mx-auto",
|
1890
|
-
height: "36.8px",
|
1891
|
-
type: "image",
|
1892
|
-
width: "100%"
|
1893
|
-
}))
|
1894
|
-
]),
|
1895
|
-
_: 1
|
1896
|
-
})
|
1897
|
-
]),
|
1898
|
-
_: 1
|
1899
|
-
})
|
1900
|
-
]),
|
1901
|
-
_: 1
|
1902
|
-
}),
|
1903
|
-
y.withTerms ? (E(), k(F, {
|
1904
|
-
key: 0,
|
1905
|
-
class: "mt-2"
|
1906
|
-
}, {
|
1907
|
-
default: g(() => [
|
1908
|
-
b(L, null, {
|
1909
|
-
default: g(() => [
|
1910
|
-
y.loading ? (E(), k(W, {
|
1911
|
-
key: 1,
|
1912
|
-
class: "mt-3",
|
1913
|
-
height: "25px",
|
1914
|
-
type: "image",
|
1915
|
-
width: "50%"
|
1916
|
-
})) : (E(), k(ir, {
|
1917
|
-
key: 0,
|
1918
|
-
ref: "testing",
|
1919
|
-
modelValue: u.value,
|
1920
|
-
"onUpdate:modelValue": C[1] || (C[1] = (q) => u.value = q)
|
1921
|
-
}, {
|
1922
|
-
label: g(() => [
|
1923
|
-
M("span", {
|
1924
|
-
onClick: C[0] || (C[0] = He(() => {
|
1925
|
-
}, ["stop"])),
|
1926
|
-
innerHTML: R(i)("CreditCardStripeForm.termsAndConditions", {
|
1927
|
-
url: R(i)("CreditCardStripeForm.termsURL")
|
1928
|
-
})
|
1929
|
-
}, null, 8, bs)
|
1930
|
-
]),
|
1931
|
-
_: 1
|
1932
|
-
}, 8, ["modelValue"]))
|
1933
|
-
]),
|
1934
|
-
_: 1
|
1935
|
-
})
|
1936
|
-
]),
|
1937
|
-
_: 1
|
1938
|
-
})) : vt("", !0),
|
1939
|
-
b(F, null, {
|
1940
|
-
default: g(() => [
|
1941
|
-
b(L, { class: "v-col-12 v-col-sm-8 v-col-md-9" }, {
|
1942
|
-
default: g(() => [
|
1943
|
-
y.loading ? (E(), gt(It, { key: 0 }, [
|
1944
|
-
b(W, {
|
1945
|
-
height: "10px",
|
1946
|
-
type: "image",
|
1947
|
-
width: "160px"
|
1948
|
-
}),
|
1949
|
-
b(W, {
|
1950
|
-
height: "38px",
|
1951
|
-
type: "image",
|
1952
|
-
width: "240px"
|
1953
|
-
})
|
1954
|
-
], 64)) : (E(), gt(It, { key: 1 }, [
|
1955
|
-
M("small", Ss, T(R(i)("CreditCardStripeForm.acceptedPaymentMethods")), 1),
|
1956
|
-
b(Qe, {
|
1957
|
-
class: "mb-n1",
|
1958
|
-
height: "45",
|
1959
|
-
src: "https://revolugo.s3.eu-west-3.amazonaws.com/payment-methods.png",
|
1960
|
-
width: "240"
|
1961
|
-
})
|
1962
|
-
], 64))
|
1963
|
-
]),
|
1964
|
-
_: 1
|
1965
|
-
}),
|
1966
|
-
y.withAction ? (E(), k(L, {
|
1967
|
-
key: 0,
|
1968
|
-
class: "v-col-12 v-col-sm-4 v-col-md-3 text-right align-self-end"
|
1969
|
-
}, {
|
1970
|
-
default: g(() => [
|
1971
|
-
y.loading ? (E(), k(W, {
|
1972
|
-
key: 0,
|
1973
|
-
class: "w-100 align-self-end",
|
1974
|
-
height: "36px",
|
1975
|
-
type: "image",
|
1976
|
-
width: "170px"
|
1977
|
-
})) : (E(), k(tr, {
|
1978
|
-
key: 1,
|
1979
|
-
class: "w-100 w-sm-auto align-self-end",
|
1980
|
-
color: "primary",
|
1981
|
-
variant: "flat",
|
1982
|
-
disabled: y.disabled || y.withTerms && !u.value,
|
1983
|
-
onClick: rt
|
1984
|
-
}, {
|
1985
|
-
default: g(() => [
|
1986
|
-
b(bt, { start: "" }, {
|
1987
|
-
default: g(() => C[4] || (C[4] = [
|
1988
|
-
nt(" fas fa-lock ", -1)
|
1989
|
-
])),
|
1990
|
-
_: 1,
|
1991
|
-
__: [4]
|
1992
|
-
}),
|
1993
|
-
M("span", _s, T(R(i)("CreditCardStripeForm.payNow")), 1),
|
1994
|
-
b(Bt, {
|
1995
|
-
amount: y.amount,
|
1996
|
-
class: "font-weight-bold",
|
1997
|
-
currency: y.currency
|
1998
|
-
}, null, 8, ["amount", "currency"])
|
1999
|
-
]),
|
2000
|
-
_: 1
|
2001
|
-
}, 8, ["disabled"]))
|
2002
|
-
]),
|
2003
|
-
_: 1
|
2004
|
-
})) : vt("", !0)
|
2005
|
-
]),
|
2006
|
-
_: 1
|
2007
|
-
})
|
2008
|
-
]),
|
2009
|
-
_: 1
|
2010
|
-
})
|
2011
|
-
]),
|
2012
|
-
_: 1
|
2013
|
-
}, 8, ["disabled", "style"]));
|
1726
|
+
},
|
1727
|
+
name: "CreditCardForm",
|
1728
|
+
props: sr,
|
1729
|
+
setup() {
|
1730
|
+
const { t: e } = Re(), { config: t } = Te(), r = Qt(
|
1731
|
+
() => rr(t.value.apiEnvironment)
|
1732
|
+
), s = At(!1), n = At(null);
|
1733
|
+
return xe(async () => {
|
1734
|
+
n.value = await yr(r.value), s.value = !0;
|
1735
|
+
}), {
|
1736
|
+
pk: r,
|
1737
|
+
stripeLoaded: s,
|
1738
|
+
t: e
|
1739
|
+
};
|
2014
1740
|
}
|
2015
1741
|
});
|
2016
|
-
function
|
1742
|
+
function Xt(e) {
|
2017
1743
|
const t = e;
|
2018
1744
|
t.__i18n = t.__i18n || [], t.__i18n.push({
|
2019
1745
|
locale: "",
|
2020
1746
|
resource: {
|
2021
1747
|
"en-US": {
|
2022
|
-
|
2023
|
-
acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment Methods Accepted:" } },
|
1748
|
+
CreditCardForm: {
|
2024
1749
|
cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Card number" } },
|
2025
1750
|
error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please, use another payment method" } },
|
2026
1751
|
or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "or" } },
|
@@ -2029,15 +1754,14 @@ function le(e) {
|
|
2029
1754
|
pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total price to pay" } },
|
2030
1755
|
payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Amount to pay by card" } },
|
2031
1756
|
paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment declined" } },
|
2032
|
-
title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total to
|
1757
|
+
title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total to Pay with your credit card" } },
|
2033
1758
|
payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pay now" } },
|
2034
1759
|
termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
|
2035
1760
|
termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'By continuing with your reservation you agree to the terms and conditions: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Click here to read it</a></b>' }] } }
|
2036
1761
|
}
|
2037
1762
|
},
|
2038
1763
|
"fr-FR": {
|
2039
|
-
|
2040
|
-
acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Moyens de Paiement Acceptés:" } },
|
1764
|
+
CreditCardForm: {
|
2041
1765
|
cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Numéro de carte bancaire" } },
|
2042
1766
|
error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez utiliser un autre moyen de paiement." } },
|
2043
1767
|
or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
|
@@ -2053,8 +1777,7 @@ function le(e) {
|
|
2053
1777
|
}
|
2054
1778
|
},
|
2055
1779
|
"de-DE": {
|
2056
|
-
|
2057
|
-
acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zahlungsmethoden:" } },
|
1780
|
+
CreditCardForm: {
|
2058
1781
|
cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kartennummer" } },
|
2059
1782
|
error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte verwenden Sie eine andere Zahlungsmethode" } },
|
2060
1783
|
or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "oder" } },
|
@@ -2070,8 +1793,7 @@ function le(e) {
|
|
2070
1793
|
}
|
2071
1794
|
},
|
2072
1795
|
"es-ES": {
|
2073
|
-
|
2074
|
-
acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Métodos de Pago:" } },
|
1796
|
+
CreditCardForm: {
|
2075
1797
|
cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Número de tarjeta" } },
|
2076
1798
|
error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, utilice otro método de pago" } },
|
2077
1799
|
or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
|
@@ -2087,8 +1809,7 @@ function le(e) {
|
|
2087
1809
|
}
|
2088
1810
|
},
|
2089
1811
|
"it-IT": {
|
2090
|
-
|
2091
|
-
acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Metodi di Pagamento:" } },
|
1812
|
+
CreditCardForm: {
|
2092
1813
|
cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Numero di carta" } },
|
2093
1814
|
error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Si prega di utilizzare un altro metodo di pagamento" } },
|
2094
1815
|
or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
|
@@ -2104,8 +1825,7 @@ function le(e) {
|
|
2104
1825
|
}
|
2105
1826
|
},
|
2106
1827
|
"nl-NL": {
|
2107
|
-
|
2108
|
-
acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaalmethoden:" } },
|
1828
|
+
CreditCardForm: {
|
2109
1829
|
cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kaartnummer" } },
|
2110
1830
|
error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Gebruik alstublieft een andere betaalmethode" } },
|
2111
1831
|
or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "of" } },
|
@@ -2121,8 +1841,7 @@ function le(e) {
|
|
2121
1841
|
}
|
2122
1842
|
},
|
2123
1843
|
"pt-PT": {
|
2124
|
-
|
2125
|
-
acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Métodos de Pagamento:" } },
|
1844
|
+
CreditCardForm: {
|
2126
1845
|
cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Número do cartão" } },
|
2127
1846
|
error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, utilize outro método de pagamento" } },
|
2128
1847
|
or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
|
@@ -2140,11 +1859,290 @@ function le(e) {
|
|
2140
1859
|
}
|
2141
1860
|
});
|
2142
1861
|
}
|
2143
|
-
|
2144
|
-
|
2145
|
-
|
1862
|
+
const hs = Ne({
|
1863
|
+
...er(),
|
1864
|
+
...Ie(Ye(), ["inline"])
|
1865
|
+
}, "VCheckbox"), ms = Le()({
|
1866
|
+
name: "VCheckbox",
|
1867
|
+
inheritAttrs: !1,
|
1868
|
+
props: hs(),
|
1869
|
+
emits: {
|
1870
|
+
"update:modelValue": (e) => !0,
|
1871
|
+
"update:focused": (e) => !0
|
1872
|
+
},
|
1873
|
+
setup(e, t) {
|
1874
|
+
let {
|
1875
|
+
attrs: r,
|
1876
|
+
slots: s
|
1877
|
+
} = t;
|
1878
|
+
const n = Oe(e, "modelValue"), {
|
1879
|
+
isFocused: i,
|
1880
|
+
focus: o,
|
1881
|
+
blur: c
|
1882
|
+
} = tr(e), l = Ve(), p = Qt(() => e.id || `checkbox-${l}`);
|
1883
|
+
return Fe(() => {
|
1884
|
+
const [y, f] = Ue(r), S = Tt.filterProps(e), _ = kt.filterProps(e);
|
1885
|
+
return g(Tt, Pt({
|
1886
|
+
class: ["v-checkbox", e.class]
|
1887
|
+
}, y, S, {
|
1888
|
+
modelValue: n.value,
|
1889
|
+
"onUpdate:modelValue": (q) => n.value = q,
|
1890
|
+
id: p.value,
|
1891
|
+
focused: i.value,
|
1892
|
+
style: e.style
|
1893
|
+
}), {
|
1894
|
+
...s,
|
1895
|
+
default: (q) => {
|
1896
|
+
let {
|
1897
|
+
id: L,
|
1898
|
+
messagesId: we,
|
1899
|
+
isDisabled: _e,
|
1900
|
+
isReadonly: Ce,
|
1901
|
+
isValid: Ee
|
1902
|
+
} = q;
|
1903
|
+
return g(kt, Pt(_, {
|
1904
|
+
id: L.value,
|
1905
|
+
"aria-describedby": we.value,
|
1906
|
+
disabled: _e.value,
|
1907
|
+
readonly: Ce.value
|
1908
|
+
}, f, {
|
1909
|
+
error: Ee.value === !1,
|
1910
|
+
modelValue: n.value,
|
1911
|
+
"onUpdate:modelValue": (Ae) => n.value = Ae,
|
1912
|
+
onFocus: o,
|
1913
|
+
onBlur: c
|
1914
|
+
}), s);
|
1915
|
+
}
|
1916
|
+
});
|
1917
|
+
}), {};
|
1918
|
+
}
|
1919
|
+
}), ys = { class: "w-100 d-flex justify-space-between items-center" }, fs = { class: "text-caption font-weight-bold text-center my-0 text-red rounded" }, vs = { class: "pr-3" }, gs = ["locale", "publishable-key"], bs = ["innerHTML"], Ss = { class: "mr-1" };
|
1920
|
+
function $s(e, t, r, s, n, i) {
|
1921
|
+
const o = qe("BFormattedAmount");
|
1922
|
+
return A(), k(Rt, {
|
1923
|
+
disabled: e.disabled,
|
1924
|
+
elevation: "0",
|
1925
|
+
border: "",
|
1926
|
+
style: je({
|
1927
|
+
borderColor: e.disabled ? null : "rgb(var(--v-theme-primary))"
|
1928
|
+
})
|
1929
|
+
}, {
|
1930
|
+
default: v(() => [
|
1931
|
+
g(Je, {
|
1932
|
+
class: "text-white",
|
1933
|
+
color: "primary",
|
1934
|
+
density: "compact",
|
1935
|
+
elevation: "0"
|
1936
|
+
}, {
|
1937
|
+
default: v(() => [
|
1938
|
+
E("div", ys, [
|
1939
|
+
E("h4", null, [
|
1940
|
+
g(ct, {
|
1941
|
+
color: "white",
|
1942
|
+
start: "",
|
1943
|
+
size: "small"
|
1944
|
+
}, {
|
1945
|
+
default: v(() => t[5] || (t[5] = [
|
1946
|
+
X(" fas fa-credit-card ")
|
1947
|
+
])),
|
1948
|
+
_: 1,
|
1949
|
+
__: [5]
|
1950
|
+
}),
|
1951
|
+
X(" " + R(e.t("CreditCardForm.title")) + ": ", 1),
|
1952
|
+
e.loading ? (A(), k(Ge, {
|
1953
|
+
key: 1,
|
1954
|
+
class: "ml-2",
|
1955
|
+
color: "primary",
|
1956
|
+
indeterminate: "",
|
1957
|
+
size: "20",
|
1958
|
+
width: "1"
|
1959
|
+
})) : (A(), k(o, {
|
1960
|
+
key: 0,
|
1961
|
+
amount: e.amount,
|
1962
|
+
class: "font-weight-bold",
|
1963
|
+
currency: e.currency
|
1964
|
+
}, null, 8, ["amount", "currency"]))
|
1965
|
+
]),
|
1966
|
+
g(ct, {
|
1967
|
+
color: "white",
|
1968
|
+
end: "",
|
1969
|
+
size: "small"
|
1970
|
+
}, {
|
1971
|
+
default: v(() => t[6] || (t[6] = [
|
1972
|
+
X(" fas fa-lock ")
|
1973
|
+
])),
|
1974
|
+
_: 1,
|
1975
|
+
__: [6]
|
1976
|
+
})
|
1977
|
+
])
|
1978
|
+
]),
|
1979
|
+
_: 1
|
1980
|
+
}),
|
1981
|
+
g(Xe, null, {
|
1982
|
+
default: v(() => [
|
1983
|
+
g(D, null, {
|
1984
|
+
default: v(() => [
|
1985
|
+
g(N, null, {
|
1986
|
+
default: v(() => [
|
1987
|
+
e.error ? (A(), k(Ze, {
|
1988
|
+
key: 0,
|
1989
|
+
color: "red",
|
1990
|
+
density: "compact",
|
1991
|
+
variant: "outlined"
|
1992
|
+
}, {
|
1993
|
+
default: v(() => [
|
1994
|
+
E("p", fs, R(e.t("CreditCardForm.paymentDeclined")) + ": " + R(e.error), 1)
|
1995
|
+
]),
|
1996
|
+
_: 1
|
1997
|
+
})) : z("", !0)
|
1998
|
+
]),
|
1999
|
+
_: 1
|
2000
|
+
})
|
2001
|
+
]),
|
2002
|
+
_: 1
|
2003
|
+
}),
|
2004
|
+
g(D, {
|
2005
|
+
class: "d-none d-sm-flex",
|
2006
|
+
"no-gutters": ""
|
2007
|
+
}, {
|
2008
|
+
default: v(() => [
|
2009
|
+
g(N, { cols: "8" }, {
|
2010
|
+
default: v(() => [
|
2011
|
+
E("small", null, R(e.t("CreditCardForm.cardNumber")), 1)
|
2012
|
+
]),
|
2013
|
+
_: 1
|
2014
|
+
}),
|
2015
|
+
g(N, {
|
2016
|
+
class: "text-right pr-6",
|
2017
|
+
cols: "4"
|
2018
|
+
}, {
|
2019
|
+
default: v(() => [
|
2020
|
+
E("small", vs, R(e.t("CreditCardForm.expDate")), 1),
|
2021
|
+
E("small", null, R(e.t("CreditCardForm.cvc")), 1)
|
2022
|
+
]),
|
2023
|
+
_: 1
|
2024
|
+
})
|
2025
|
+
]),
|
2026
|
+
_: 1
|
2027
|
+
}),
|
2028
|
+
g(D, { "no-gutters": "" }, {
|
2029
|
+
default: v(() => [
|
2030
|
+
g(N, null, {
|
2031
|
+
default: v(() => [
|
2032
|
+
g(Rt, {
|
2033
|
+
elevation: "0",
|
2034
|
+
border: ""
|
2035
|
+
}, {
|
2036
|
+
default: v(() => [
|
2037
|
+
e.stripeLoaded ? (A(), Be("stripe-elements", {
|
2038
|
+
key: 0,
|
2039
|
+
ref: "payment",
|
2040
|
+
class: ze({
|
2041
|
+
"d-none": e.loading
|
2042
|
+
}),
|
2043
|
+
generate: "payment-method",
|
2044
|
+
"hide-postal-code": "",
|
2045
|
+
locale: e.$i18n.locale,
|
2046
|
+
"publishable-key": e.pk,
|
2047
|
+
onChange: t[0] || (t[0] = (...c) => e.onCreditCardFormChange && e.onCreditCardFormChange(...c)),
|
2048
|
+
onError: t[1] || (t[1] = (...c) => e.onPaymentError && e.onPaymentError(...c)),
|
2049
|
+
onPaymentMethod: t[2] || (t[2] = (...c) => e.onStripePayment && e.onStripePayment(...c))
|
2050
|
+
}, null, 42, gs)) : z("", !0),
|
2051
|
+
e.loading ? (A(), k(Qe, {
|
2052
|
+
key: 1,
|
2053
|
+
class: "mx-auto",
|
2054
|
+
height: "36.8px",
|
2055
|
+
type: "image",
|
2056
|
+
width: "100%"
|
2057
|
+
})) : z("", !0)
|
2058
|
+
]),
|
2059
|
+
_: 1
|
2060
|
+
})
|
2061
|
+
]),
|
2062
|
+
_: 1
|
2063
|
+
})
|
2064
|
+
]),
|
2065
|
+
_: 1
|
2066
|
+
}),
|
2067
|
+
e.withTerms ? (A(), k(D, {
|
2068
|
+
key: 0,
|
2069
|
+
class: "mt-2"
|
2070
|
+
}, {
|
2071
|
+
default: v(() => [
|
2072
|
+
g(N, null, {
|
2073
|
+
default: v(() => [
|
2074
|
+
g(ms, {
|
2075
|
+
ref: "testing",
|
2076
|
+
modelValue: e.isTermsAccepted,
|
2077
|
+
"onUpdate:modelValue": t[4] || (t[4] = (c) => e.isTermsAccepted = c),
|
2078
|
+
class: "mt-0",
|
2079
|
+
error: e.termsError && !e.isTermsAccepted
|
2080
|
+
}, {
|
2081
|
+
label: v(() => [
|
2082
|
+
E("span", {
|
2083
|
+
onClick: t[3] || (t[3] = De(() => {
|
2084
|
+
}, ["stop"])),
|
2085
|
+
innerHTML: e.t("CreditCardForm.termsAndConditions", {
|
2086
|
+
url: e.termsAndConditionsUrl
|
2087
|
+
})
|
2088
|
+
}, null, 8, bs)
|
2089
|
+
]),
|
2090
|
+
_: 1
|
2091
|
+
}, 8, ["modelValue", "error"])
|
2092
|
+
]),
|
2093
|
+
_: 1
|
2094
|
+
})
|
2095
|
+
]),
|
2096
|
+
_: 1
|
2097
|
+
})) : z("", !0),
|
2098
|
+
e.withAction ? (A(), k(D, { key: 1 }, {
|
2099
|
+
default: v(() => [
|
2100
|
+
g(N, { class: "d-flex justify-end flex-column flex-sm-row mb-1 align-center mt-4 mt-sm-0" }, {
|
2101
|
+
default: v(() => [
|
2102
|
+
g(Ke, {
|
2103
|
+
class: "w-100 w-sm-auto",
|
2104
|
+
color: "primary",
|
2105
|
+
variant: "flat",
|
2106
|
+
disabled: e.disabled || e.withTerms && !e.isTermsAccepted,
|
2107
|
+
loading: e.loading,
|
2108
|
+
onClick: e.pay
|
2109
|
+
}, {
|
2110
|
+
default: v(() => [
|
2111
|
+
g(ct, { start: "" }, {
|
2112
|
+
default: v(() => t[7] || (t[7] = [
|
2113
|
+
X(" fas fa-lock ")
|
2114
|
+
])),
|
2115
|
+
_: 1,
|
2116
|
+
__: [7]
|
2117
|
+
}),
|
2118
|
+
E("span", Ss, R(e.t("CreditCardForm.payNow")), 1),
|
2119
|
+
g(o, {
|
2120
|
+
amount: e.amount,
|
2121
|
+
class: "font-weight-bold",
|
2122
|
+
currency: e.currency
|
2123
|
+
}, null, 8, ["amount", "currency"])
|
2124
|
+
]),
|
2125
|
+
_: 1
|
2126
|
+
}, 8, ["disabled", "loading", "onClick"])
|
2127
|
+
]),
|
2128
|
+
_: 1
|
2129
|
+
})
|
2130
|
+
]),
|
2131
|
+
_: 1
|
2132
|
+
})) : z("", !0)
|
2133
|
+
]),
|
2134
|
+
_: 1
|
2135
|
+
})
|
2136
|
+
]),
|
2137
|
+
_: 1
|
2138
|
+
}, 8, ["disabled", "style"]);
|
2139
|
+
}
|
2140
|
+
typeof Xt == "function" && Xt($e);
|
2141
|
+
const Ns = /* @__PURE__ */ We($e, [["render", $s], ["__scopeId", "data-v-bb3529bc"]]);
|
2142
|
+
Pe("css/revolugo.creditcardform.DWne0Lnv.css");
|
2146
2143
|
export {
|
2147
|
-
|
2148
|
-
|
2144
|
+
Ns as C,
|
2145
|
+
ms as V,
|
2146
|
+
sr as c
|
2149
2147
|
};
|
2150
|
-
//# sourceMappingURL=revolugo.
|
2148
|
+
//# sourceMappingURL=revolugo.creditcardform.CejFX150.min.js.map
|