@openhive-eu/payment 1.0.0-next.11 → 1.0.0-next.12
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/index.js +178 -185
- package/dist/index.js.gz +0 -0
- package/dist/index.min.js +23 -29
- package/dist/index.min.js.gz +0 -0
- package/dist/lib/i18n.d.ts +0 -1
- package/dist/payment-widget.d.ts +0 -3
- package/dist/react-widget.d.ts +1 -1
- package/dist/react.js +255 -267
- package/dist/styles.css +1 -1
- package/dist/styles.css.gz +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const Ge = globalThis, mt = Ge.ShadowRoot && (Ge.ShadyCSS === void 0 || Ge.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
1
|
+
const Ge = globalThis, mt = Ge.ShadowRoot && (Ge.ShadyCSS === void 0 || Ge.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, A1 = /* @__PURE__ */ Symbol(), Ot = /* @__PURE__ */ new WeakMap();
|
|
2
2
|
let a2 = class {
|
|
3
3
|
constructor(e, r, n) {
|
|
4
|
-
if (this._$cssResult$ = !0, n !==
|
|
4
|
+
if (this._$cssResult$ = !0, n !== A1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
5
5
|
this.cssText = e, this.t = r;
|
|
6
6
|
}
|
|
7
7
|
get styleSheet() {
|
|
@@ -17,7 +17,7 @@ let a2 = class {
|
|
|
17
17
|
return this.cssText;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
const s2 = (t) => new a2(typeof t == "string" ? t : t + "", void 0,
|
|
20
|
+
const s2 = (t) => new a2(typeof t == "string" ? t : t + "", void 0, A1), l2 = (t, e) => {
|
|
21
21
|
if (mt) t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
22
22
|
else for (const r of e) {
|
|
23
23
|
const n = document.createElement("style"), d = Ge.litNonce;
|
|
@@ -240,7 +240,7 @@ let he = class extends HTMLElement {
|
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
he.elementStyles = [], he.shadowRootOptions = { mode: "open" }, he[ve("elementProperties")] = /* @__PURE__ */ new Map(), he[ve("finalized")] = /* @__PURE__ */ new Map(), y2?.({ ReactiveElement: he }), (qe.reactiveElementVersions ??= []).push("2.1.2");
|
|
243
|
-
const gt = globalThis, Mt = (t) => t, ze = gt.trustedTypes, Lt = ze ? ze.createPolicy("lit-html", { createHTML: (t) => t }) : void 0,
|
|
243
|
+
const gt = globalThis, Mt = (t) => t, ze = gt.trustedTypes, Lt = ze ? ze.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, E1 = "$lit$", te = `lit$${Math.random().toFixed(9).slice(2)}$`, S1 = "?" + te, g2 = `<${S1}>`, se = document, _e = () => se.createComment(""), we = (t) => t === null || typeof t != "object" && typeof t != "function", bt = Array.isArray, b2 = (t) => bt(t) || typeof t?.[Symbol.iterator] == "function", rt = `[
|
|
244
244
|
\f\r]`, ge = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ft = /-->/g, Dt = />/g, oe = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
245
245
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Vt = /"/g, N1 = /^(?:script|style|textarea|title)$/i, v2 = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), C = v2(1), le = /* @__PURE__ */ Symbol.for("lit-noChange"), v = /* @__PURE__ */ Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), ae = se.createTreeWalker(se, 129);
|
|
246
246
|
function k1(t, e) {
|
|
@@ -255,7 +255,7 @@ const C2 = (t, e) => {
|
|
|
255
255
|
let l, c, $ = -1, u = 0;
|
|
256
256
|
for (; u < s.length && (i.lastIndex = u, c = i.exec(s), c !== null); ) u = i.lastIndex, i === ge ? c[1] === "!--" ? i = Ft : c[1] !== void 0 ? i = Dt : c[2] !== void 0 ? (N1.test(c[2]) && (d = RegExp("</" + c[2], "g")), i = oe) : c[3] !== void 0 && (i = oe) : i === oe ? c[0] === ">" ? (i = d ?? ge, $ = -1) : c[1] === void 0 ? $ = -2 : ($ = i.lastIndex - c[2].length, l = c[1], i = c[3] === void 0 ? oe : c[3] === '"' ? Vt : Ht) : i === Vt || i === Ht ? i = oe : i === Ft || i === Dt ? i = ge : (i = oe, d = void 0);
|
|
257
257
|
const g = i === oe && t[a + 1].startsWith("/>") ? " " : "";
|
|
258
|
-
o += i === ge ? s + g2 : $ >= 0 ? (n.push(l), s.slice(0, $) +
|
|
258
|
+
o += i === ge ? s + g2 : $ >= 0 ? (n.push(l), s.slice(0, $) + E1 + s.slice($) + te + g) : s + te + ($ === -2 ? a : g);
|
|
259
259
|
}
|
|
260
260
|
return [k1(t, o + (t[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
|
|
261
261
|
};
|
|
@@ -271,9 +271,9 @@ class xe {
|
|
|
271
271
|
}
|
|
272
272
|
for (; (d = ae.nextNode()) !== null && s.length < a; ) {
|
|
273
273
|
if (d.nodeType === 1) {
|
|
274
|
-
if (d.hasAttributes()) for (const $ of d.getAttributeNames()) if ($.endsWith(
|
|
275
|
-
const u = c[i++], g = d.getAttribute($).split(te),
|
|
276
|
-
s.push({ type: 1, index: o, name:
|
|
274
|
+
if (d.hasAttributes()) for (const $ of d.getAttributeNames()) if ($.endsWith(E1)) {
|
|
275
|
+
const u = c[i++], g = d.getAttribute($).split(te), _ = /([.?@])?(.*)/.exec(u);
|
|
276
|
+
s.push({ type: 1, index: o, name: _[2], strings: g, ctor: _[1] === "." ? w2 : _[1] === "?" ? x2 : _[1] === "@" ? P2 : Xe }), d.removeAttribute($);
|
|
277
277
|
} else $.startsWith(te) && (s.push({ type: 6, index: o }), d.removeAttribute($));
|
|
278
278
|
if (N1.test(d.tagName)) {
|
|
279
279
|
const $ = d.textContent.split(te), u = $.length - 1;
|
|
@@ -319,7 +319,7 @@ class _2 {
|
|
|
319
319
|
for (; s !== void 0; ) {
|
|
320
320
|
if (i === s.index) {
|
|
321
321
|
let l;
|
|
322
|
-
s.type === 2 ? l = new Oe(o, o.nextSibling, this, e) : s.type === 1 ? l = new s.ctor(o, s.name, s.strings, this, e) : s.type === 6 && (l = new
|
|
322
|
+
s.type === 2 ? l = new Oe(o, o.nextSibling, this, e) : s.type === 1 ? l = new s.ctor(o, s.name, s.strings, this, e) : s.type === 6 && (l = new A2(o, this, e)), this._$AV.push(l), s = n[++a];
|
|
323
323
|
}
|
|
324
324
|
i !== s?.index && (o = ae.nextNode(), i++);
|
|
325
325
|
}
|
|
@@ -443,7 +443,7 @@ class P2 extends Xe {
|
|
|
443
443
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
class
|
|
446
|
+
class A2 {
|
|
447
447
|
constructor(e, r, n) {
|
|
448
448
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = n;
|
|
449
449
|
}
|
|
@@ -454,8 +454,8 @@ class E2 {
|
|
|
454
454
|
me(this, e);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
const
|
|
458
|
-
|
|
457
|
+
const E2 = gt.litHtmlPolyfillSupport;
|
|
458
|
+
E2?.(xe, Oe), (gt.litHtmlVersions ??= []).push("3.3.2");
|
|
459
459
|
const S2 = (t, e, r) => {
|
|
460
460
|
const n = r?.renderBefore ?? e;
|
|
461
461
|
let d = n._$litPart$;
|
|
@@ -552,9 +552,9 @@ function H2(t) {
|
|
|
552
552
|
async function c($, u) {
|
|
553
553
|
const {
|
|
554
554
|
baseUrl: g,
|
|
555
|
-
fetch:
|
|
555
|
+
fetch: _ = n,
|
|
556
556
|
Request: S = r,
|
|
557
|
-
headers:
|
|
557
|
+
headers: x,
|
|
558
558
|
params: R = {},
|
|
559
559
|
parseAs: D = "json",
|
|
560
560
|
querySerializer: U,
|
|
@@ -577,7 +577,7 @@ function H2(t) {
|
|
|
577
577
|
// the result of this ALSO sets the lowest-priority content-type header. So we re-merge below,
|
|
578
578
|
// setting the content-type at the very beginning to be overwritten.
|
|
579
579
|
// Lastly, based on the way headers work, it’s not a simple “present-or-not” check becauase null intentionally un-sets headers.
|
|
580
|
-
Gt(i,
|
|
580
|
+
Gt(i, x, R.header)
|
|
581
581
|
), Re = Gt(
|
|
582
582
|
// with no body, we should not to set Content-Type
|
|
583
583
|
ce === void 0 || // if serialized body is FormData; browser will correctly set Content-Type & boundary expression
|
|
@@ -585,7 +585,7 @@ function H2(t) {
|
|
|
585
585
|
"Content-Type": "application/json"
|
|
586
586
|
},
|
|
587
587
|
i,
|
|
588
|
-
|
|
588
|
+
x,
|
|
589
589
|
R.header
|
|
590
590
|
), L = [...l, ...Z], Te = {
|
|
591
591
|
redirect: "follow",
|
|
@@ -594,34 +594,34 @@ function H2(t) {
|
|
|
594
594
|
body: ce,
|
|
595
595
|
headers: Re
|
|
596
596
|
};
|
|
597
|
-
let J, H,
|
|
597
|
+
let J, H, E = new S(
|
|
598
598
|
U2($, { baseUrl: m, params: R, querySerializer: O }),
|
|
599
599
|
Te
|
|
600
600
|
), b;
|
|
601
601
|
for (const f in W)
|
|
602
|
-
f in
|
|
602
|
+
f in E || (E[f] = W[f]);
|
|
603
603
|
if (L.length) {
|
|
604
604
|
J = D2(), H = Object.freeze({
|
|
605
605
|
baseUrl: m,
|
|
606
|
-
fetch:
|
|
606
|
+
fetch: _,
|
|
607
607
|
parseAs: D,
|
|
608
608
|
querySerializer: O,
|
|
609
609
|
bodySerializer: B
|
|
610
610
|
});
|
|
611
611
|
for (const f of L)
|
|
612
612
|
if (f && typeof f == "object" && typeof f.onRequest == "function") {
|
|
613
|
-
const
|
|
614
|
-
request:
|
|
613
|
+
const P = await f.onRequest({
|
|
614
|
+
request: E,
|
|
615
615
|
schemaPath: $,
|
|
616
616
|
params: R,
|
|
617
617
|
options: H,
|
|
618
618
|
id: J
|
|
619
619
|
});
|
|
620
|
-
if (
|
|
621
|
-
if (
|
|
622
|
-
|
|
623
|
-
else if (
|
|
624
|
-
b =
|
|
620
|
+
if (P)
|
|
621
|
+
if (P instanceof S)
|
|
622
|
+
E = P;
|
|
623
|
+
else if (P instanceof Response) {
|
|
624
|
+
b = P;
|
|
625
625
|
break;
|
|
626
626
|
} else
|
|
627
627
|
throw new Error("onRequest: must return new Request() or Response() when modifying the request");
|
|
@@ -629,16 +629,16 @@ function H2(t) {
|
|
|
629
629
|
}
|
|
630
630
|
if (!b) {
|
|
631
631
|
try {
|
|
632
|
-
b = await
|
|
632
|
+
b = await _(E, a);
|
|
633
633
|
} catch (f) {
|
|
634
|
-
let
|
|
634
|
+
let P = f;
|
|
635
635
|
if (L.length)
|
|
636
636
|
for (let G = L.length - 1; G >= 0; G--) {
|
|
637
637
|
const de = L[G];
|
|
638
638
|
if (de && typeof de == "object" && typeof de.onError == "function") {
|
|
639
639
|
const K = await de.onError({
|
|
640
|
-
request:
|
|
641
|
-
error:
|
|
640
|
+
request: E,
|
|
641
|
+
error: P,
|
|
642
642
|
schemaPath: $,
|
|
643
643
|
params: R,
|
|
644
644
|
options: H,
|
|
@@ -646,26 +646,26 @@ function H2(t) {
|
|
|
646
646
|
});
|
|
647
647
|
if (K) {
|
|
648
648
|
if (K instanceof Response) {
|
|
649
|
-
|
|
649
|
+
P = void 0, b = K;
|
|
650
650
|
break;
|
|
651
651
|
}
|
|
652
652
|
if (K instanceof Error) {
|
|
653
|
-
|
|
653
|
+
P = K;
|
|
654
654
|
continue;
|
|
655
655
|
}
|
|
656
656
|
throw new Error("onError: must return new Response() or instance of Error");
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
if (
|
|
661
|
-
throw
|
|
660
|
+
if (P)
|
|
661
|
+
throw P;
|
|
662
662
|
}
|
|
663
663
|
if (L.length)
|
|
664
664
|
for (let f = L.length - 1; f >= 0; f--) {
|
|
665
|
-
const
|
|
666
|
-
if (
|
|
667
|
-
const G = await
|
|
668
|
-
request:
|
|
665
|
+
const P = L[f];
|
|
666
|
+
if (P && typeof P == "object" && typeof P.onResponse == "function") {
|
|
667
|
+
const G = await P.onResponse({
|
|
668
|
+
request: E,
|
|
669
669
|
response: b,
|
|
670
670
|
schemaPath: $,
|
|
671
671
|
params: R,
|
|
@@ -681,15 +681,15 @@ function H2(t) {
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
const ue = b.headers.get("Content-Length");
|
|
684
|
-
if (b.status === 204 ||
|
|
684
|
+
if (b.status === 204 || E.method === "HEAD" || ue === "0")
|
|
685
685
|
return b.ok ? { data: void 0, response: b } : { error: void 0, response: b };
|
|
686
686
|
if (b.ok)
|
|
687
687
|
return { data: await (async () => {
|
|
688
688
|
if (D === "stream")
|
|
689
689
|
return b.body;
|
|
690
690
|
if (D === "json" && !ue) {
|
|
691
|
-
const
|
|
692
|
-
return
|
|
691
|
+
const P = await b.text();
|
|
692
|
+
return P ? JSON.parse(P) : void 0;
|
|
693
693
|
}
|
|
694
694
|
return await b[D]();
|
|
695
695
|
})(), response: b };
|
|
@@ -1596,7 +1596,7 @@ function Xt(t, e) {
|
|
|
1596
1596
|
for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
|
|
1597
1597
|
return n;
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function Ar(t, e) {
|
|
1600
1600
|
var r = e.countries, n = e.metadata;
|
|
1601
1601
|
n = new I(n);
|
|
1602
1602
|
for (var d = xr(r), o; !(o = d()).done; ) {
|
|
@@ -1614,7 +1614,7 @@ function Er(t, e) {
|
|
|
1614
1614
|
function L1(t, e) {
|
|
1615
1615
|
var r = e.nationalNumber, n = e.metadata, d = n.getCountryCodesForCallingCode(t);
|
|
1616
1616
|
if (d)
|
|
1617
|
-
return d.length === 1 ? d[0] :
|
|
1617
|
+
return d.length === 1 ? d[0] : Ar(r, {
|
|
1618
1618
|
countries: d,
|
|
1619
1619
|
metadata: n.metadata
|
|
1620
1620
|
});
|
|
@@ -1622,7 +1622,7 @@ function L1(t, e) {
|
|
|
1622
1622
|
function st(t, e, r) {
|
|
1623
1623
|
var n = wr(t, r), d = n.carrierCode, o = n.nationalNumber;
|
|
1624
1624
|
if (o !== t) {
|
|
1625
|
-
if (!
|
|
1625
|
+
if (!Er(t, o, r))
|
|
1626
1626
|
return {
|
|
1627
1627
|
nationalNumber: t
|
|
1628
1628
|
};
|
|
@@ -1639,7 +1639,7 @@ function st(t, e, r) {
|
|
|
1639
1639
|
carrierCode: d
|
|
1640
1640
|
};
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function Er(t, e, r) {
|
|
1643
1643
|
return !(Y(t, r.nationalNumberPattern()) && !Y(e, r.nationalNumberPattern()));
|
|
1644
1644
|
}
|
|
1645
1645
|
function Sr(t, e, r) {
|
|
@@ -1741,8 +1741,8 @@ var Mr = ";ext=", fe = function(e) {
|
|
|
1741
1741
|
return "([".concat(V, "]{1,").concat(e, "})");
|
|
1742
1742
|
};
|
|
1743
1743
|
function D1(t) {
|
|
1744
|
-
var e = "20", r = "15", n = "9", d = "6", o = "[ \\t,]*", i = "[:\\..]?[ \\t,-]*", a = "#?", s = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", c = "[- ]+", $ = "[ \\t]*", u = "(?:,{2}|;)", g = Mr + fe(e),
|
|
1745
|
-
return g + "|" +
|
|
1744
|
+
var e = "20", r = "15", n = "9", d = "6", o = "[ \\t,]*", i = "[:\\..]?[ \\t,-]*", a = "#?", s = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", c = "[- ]+", $ = "[ \\t]*", u = "(?:,{2}|;)", g = Mr + fe(e), _ = o + s + i + fe(e) + a, S = o + l + i + fe(n) + a, x = c + fe(d) + "#", R = $ + u + i + fe(r) + a, D = $ + "(?:,)+" + i + fe(n) + a;
|
|
1745
|
+
return g + "|" + _ + "|" + S + "|" + x + "|" + R + "|" + D;
|
|
1746
1746
|
}
|
|
1747
1747
|
var Lr = "[" + V + "]{" + xt + "}", Fr = "[" + Pt + "]{0,1}(?:[" + Ze + "]*[" + V + "]){3,}[" + Ze + V + "]*", Dr = new RegExp("^[" + Pt + "]{0,1}(?:[" + Ze + "]*[" + V + "]){1,2}$", "i"), Hr = Fr + // Phone number extensions
|
|
1748
1748
|
"(?:" + D1() + ")?", Vr = new RegExp(
|
|
@@ -2043,7 +2043,7 @@ function on(t, e) {
|
|
|
2043
2043
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
2044
2044
|
}
|
|
2045
2045
|
function an(t, e, r) {
|
|
2046
|
-
return e =
|
|
2046
|
+
return e = Ee(e), sn(t, At() ? Reflect.construct(e, r || [], Ee(t).constructor) : e.apply(t, r));
|
|
2047
2047
|
}
|
|
2048
2048
|
function sn(t, e) {
|
|
2049
2049
|
if (e && (lt(e) == "object" || typeof e == "function")) return e;
|
|
@@ -2056,7 +2056,7 @@ function ln(t) {
|
|
|
2056
2056
|
}
|
|
2057
2057
|
function $n(t, e) {
|
|
2058
2058
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2059
|
-
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e &&
|
|
2059
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && Ae(t, e);
|
|
2060
2060
|
}
|
|
2061
2061
|
function $t(t) {
|
|
2062
2062
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
@@ -2068,25 +2068,25 @@ function $t(t) {
|
|
|
2068
2068
|
e.set(n, d);
|
|
2069
2069
|
}
|
|
2070
2070
|
function d() {
|
|
2071
|
-
return cn(n, arguments,
|
|
2071
|
+
return cn(n, arguments, Ee(this).constructor);
|
|
2072
2072
|
}
|
|
2073
|
-
return d.prototype = Object.create(n.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }),
|
|
2073
|
+
return d.prototype = Object.create(n.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }), Ae(d, n);
|
|
2074
2074
|
}, $t(t);
|
|
2075
2075
|
}
|
|
2076
2076
|
function cn(t, e, r) {
|
|
2077
|
-
if (
|
|
2077
|
+
if (At()) return Reflect.construct.apply(null, arguments);
|
|
2078
2078
|
var n = [null];
|
|
2079
2079
|
n.push.apply(n, e);
|
|
2080
2080
|
var d = new (t.bind.apply(t, n))();
|
|
2081
|
-
return r &&
|
|
2081
|
+
return r && Ae(d, r.prototype), d;
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function At() {
|
|
2084
2084
|
try {
|
|
2085
2085
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2086
2086
|
}));
|
|
2087
2087
|
} catch {
|
|
2088
2088
|
}
|
|
2089
|
-
return (
|
|
2089
|
+
return (At = function() {
|
|
2090
2090
|
return !!t;
|
|
2091
2091
|
})();
|
|
2092
2092
|
}
|
|
@@ -2097,15 +2097,15 @@ function un(t) {
|
|
|
2097
2097
|
return typeof t == "function";
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2101
|
-
return
|
|
2100
|
+
function Ae(t, e) {
|
|
2101
|
+
return Ae = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
|
|
2102
2102
|
return r.__proto__ = n, r;
|
|
2103
|
-
},
|
|
2103
|
+
}, Ae(t, e);
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2106
|
-
return
|
|
2105
|
+
function Ee(t) {
|
|
2106
|
+
return Ee = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2107
2107
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2108
|
-
},
|
|
2108
|
+
}, Ee(t);
|
|
2109
2109
|
}
|
|
2110
2110
|
var X = /* @__PURE__ */ (function(t) {
|
|
2111
2111
|
function e(r) {
|
|
@@ -2237,7 +2237,7 @@ function r1(t) {
|
|
|
2237
2237
|
function gn(t, e, r) {
|
|
2238
2238
|
return t === "+" ? e ? void 0 : "+" : pn(t);
|
|
2239
2239
|
}
|
|
2240
|
-
var V1 = "+", bn = "[\\-\\.\\(\\)]?", n1 = "([" + V + "]|" + bn + ")", vn = "^\\" + V1 + n1 + "*[" + V + "]" + n1 + "*$", Cn = new RegExp(vn, "g"), ct = V, _n = "[" + ct + "]+((\\-)*[" + ct + "])*", wn = "a-zA-Z", xn = "[" + wn + "]+((\\-)*[" + ct + "])*", Pn = "^(" + _n + "\\.)*" + xn + "\\.?$",
|
|
2240
|
+
var V1 = "+", bn = "[\\-\\.\\(\\)]?", n1 = "([" + V + "]|" + bn + ")", vn = "^\\" + V1 + n1 + "*[" + V + "]" + n1 + "*$", Cn = new RegExp(vn, "g"), ct = V, _n = "[" + ct + "]+((\\-)*[" + ct + "])*", wn = "a-zA-Z", xn = "[" + wn + "]+((\\-)*[" + ct + "])*", Pn = "^(" + _n + "\\.)*" + xn + "\\.?$", An = new RegExp(Pn, "g"), d1 = "tel:", ut = ";phone-context=", En = ";isub=";
|
|
2241
2241
|
function Sn(t) {
|
|
2242
2242
|
var e = t.indexOf(ut);
|
|
2243
2243
|
if (e < 0)
|
|
@@ -2249,7 +2249,7 @@ function Sn(t) {
|
|
|
2249
2249
|
return n >= 0 ? t.substring(r, n) : t.substring(r);
|
|
2250
2250
|
}
|
|
2251
2251
|
function Nn(t) {
|
|
2252
|
-
return t === null ? !0 : t.length === 0 ? !1 : Cn.test(t) ||
|
|
2252
|
+
return t === null ? !0 : t.length === 0 ? !1 : Cn.test(t) || An.test(t);
|
|
2253
2253
|
}
|
|
2254
2254
|
function kn(t, e) {
|
|
2255
2255
|
var r = e.extractFormattedPhoneNumber, n = Sn(t);
|
|
@@ -2265,7 +2265,7 @@ function kn(t, e) {
|
|
|
2265
2265
|
var a = t.indexOf(ut);
|
|
2266
2266
|
d += t.substring(i, a);
|
|
2267
2267
|
}
|
|
2268
|
-
var s = d.indexOf(
|
|
2268
|
+
var s = d.indexOf(En);
|
|
2269
2269
|
if (s > 0 && (d = d.substring(0, s)), d !== "")
|
|
2270
2270
|
return d;
|
|
2271
2271
|
}
|
|
@@ -2299,16 +2299,16 @@ function Tn(t, e, r) {
|
|
|
2299
2299
|
var g = new en(c, l, r.metadata);
|
|
2300
2300
|
return s && (g.country = s), u && (g.carrierCode = u), o && (g.ext = o), g.__countryCallingCodeSource = $, g;
|
|
2301
2301
|
}
|
|
2302
|
-
var
|
|
2302
|
+
var _ = (e.extended ? r.hasSelectedNumberingPlan() : s) ? Y(l, r.nationalNumberPattern()) : !1;
|
|
2303
2303
|
return e.extended ? {
|
|
2304
2304
|
country: s,
|
|
2305
2305
|
countryCallingCode: c,
|
|
2306
2306
|
carrierCode: u,
|
|
2307
|
-
valid:
|
|
2308
|
-
possible:
|
|
2307
|
+
valid: _,
|
|
2308
|
+
possible: _ ? !0 : !!(e.extended === !0 && r.possibleLengths() && M1(l, s, r)),
|
|
2309
2309
|
phone: l,
|
|
2310
2310
|
ext: o
|
|
2311
|
-
} :
|
|
2311
|
+
} : _ ? Fn(s, l, o) : {};
|
|
2312
2312
|
}
|
|
2313
2313
|
function Mn(t, e, r) {
|
|
2314
2314
|
if (t) {
|
|
@@ -2634,8 +2634,7 @@ const f1 = ["FR"], U1 = [
|
|
|
2634
2634
|
close: "Fermer",
|
|
2635
2635
|
textMessage: "SMS",
|
|
2636
2636
|
email: "Email",
|
|
2637
|
-
errorFallback: "Une erreur s'est produite lors du chargement du composant de paiement."
|
|
2638
|
-
submitError: "Une erreur est survenue lors de l'envoi du lien de paiement."
|
|
2637
|
+
errorFallback: "Une erreur s'est produite lors du chargement du composant de paiement."
|
|
2639
2638
|
},
|
|
2640
2639
|
en: {
|
|
2641
2640
|
title: "Payment terminal",
|
|
@@ -2656,8 +2655,7 @@ const f1 = ["FR"], U1 = [
|
|
|
2656
2655
|
close: "Close",
|
|
2657
2656
|
textMessage: "SMS",
|
|
2658
2657
|
email: "Email",
|
|
2659
|
-
errorFallback: "Something went wrong while loading the payment component."
|
|
2660
|
-
submitError: "An error occurred while sending the payment link."
|
|
2658
|
+
errorFallback: "Something went wrong while loading the payment component."
|
|
2661
2659
|
}
|
|
2662
2660
|
}, ot = (t) => h1[t] ?? h1.fr;
|
|
2663
2661
|
function G1(t) {
|
|
@@ -2686,15 +2684,15 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2686
2684
|
return u === void 0 || (l[$] = u), l;
|
|
2687
2685
|
}, {}), s = e == null || (n = e.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((l, c) => {
|
|
2688
2686
|
let { class: $, className: u, ...g } = c;
|
|
2689
|
-
return Object.entries(g).every((
|
|
2690
|
-
let [S,
|
|
2691
|
-
return Array.isArray(
|
|
2687
|
+
return Object.entries(g).every((_) => {
|
|
2688
|
+
let [S, x] = _;
|
|
2689
|
+
return Array.isArray(x) ? x.includes({
|
|
2692
2690
|
...o,
|
|
2693
2691
|
...a
|
|
2694
2692
|
}[S]) : {
|
|
2695
2693
|
...o,
|
|
2696
2694
|
...a
|
|
2697
|
-
}[S] ===
|
|
2695
|
+
}[S] === x;
|
|
2698
2696
|
}) ? [
|
|
2699
2697
|
...l,
|
|
2700
2698
|
$,
|
|
@@ -2766,10 +2764,10 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2766
2764
|
const r = z1();
|
|
2767
2765
|
for (const n in t) {
|
|
2768
2766
|
const d = t[n];
|
|
2769
|
-
|
|
2767
|
+
Et(d, r, n, e);
|
|
2770
2768
|
}
|
|
2771
2769
|
return r;
|
|
2772
|
-
},
|
|
2770
|
+
}, Et = (t, e, r, n) => {
|
|
2773
2771
|
const d = t.length;
|
|
2774
2772
|
for (let o = 0; o < d; o++) {
|
|
2775
2773
|
const i = t[o];
|
|
@@ -2790,7 +2788,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2790
2788
|
n.classGroupId = r;
|
|
2791
2789
|
}, g0 = (t, e, r, n) => {
|
|
2792
2790
|
if (v0(t)) {
|
|
2793
|
-
|
|
2791
|
+
Et(t(n), e, r, n);
|
|
2794
2792
|
return;
|
|
2795
2793
|
}
|
|
2796
2794
|
e.validators === null && (e.validators = []), e.validators.push($0(r, t));
|
|
@@ -2798,7 +2796,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2798
2796
|
const d = Object.entries(t), o = d.length;
|
|
2799
2797
|
for (let i = 0; i < o; i++) {
|
|
2800
2798
|
const [a, s] = d[i];
|
|
2801
|
-
|
|
2799
|
+
Et(s, W1(e, a), r, n);
|
|
2802
2800
|
}
|
|
2803
2801
|
}, W1 = (t, e) => {
|
|
2804
2802
|
let r = t;
|
|
@@ -2849,18 +2847,18 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2849
2847
|
let i = 0, a = 0, s = 0, l;
|
|
2850
2848
|
const c = d.length;
|
|
2851
2849
|
for (let S = 0; S < c; S++) {
|
|
2852
|
-
const
|
|
2850
|
+
const x = d[S];
|
|
2853
2851
|
if (i === 0 && a === 0) {
|
|
2854
|
-
if (
|
|
2852
|
+
if (x === g1) {
|
|
2855
2853
|
o.push(d.slice(s, S)), s = S + 1;
|
|
2856
2854
|
continue;
|
|
2857
2855
|
}
|
|
2858
|
-
if (
|
|
2856
|
+
if (x === "/") {
|
|
2859
2857
|
l = S;
|
|
2860
2858
|
continue;
|
|
2861
2859
|
}
|
|
2862
2860
|
}
|
|
2863
|
-
|
|
2861
|
+
x === "[" ? i++ : x === "]" ? i-- : x === "(" ? a++ : x === ")" && a--;
|
|
2864
2862
|
}
|
|
2865
2863
|
const $ = o.length === 0 ? d : d.slice(s);
|
|
2866
2864
|
let u = $, g = !1;
|
|
@@ -2871,8 +2869,8 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2871
2869
|
*/
|
|
2872
2870
|
$.startsWith(ft) && (u = $.slice(1), g = !0)
|
|
2873
2871
|
);
|
|
2874
|
-
const
|
|
2875
|
-
return b1(o, g, u,
|
|
2872
|
+
const _ = l && l > s ? l - s : void 0;
|
|
2873
|
+
return b1(o, g, u, _);
|
|
2876
2874
|
};
|
|
2877
2875
|
if (e) {
|
|
2878
2876
|
const d = e + g1, o = n;
|
|
@@ -2904,43 +2902,43 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2904
2902
|
parseClassName: w0(t),
|
|
2905
2903
|
sortModifiers: x0(t),
|
|
2906
2904
|
...u0(t)
|
|
2907
|
-
}),
|
|
2905
|
+
}), A0 = /\s+/, E0 = (t, e) => {
|
|
2908
2906
|
const {
|
|
2909
2907
|
parseClassName: r,
|
|
2910
2908
|
getClassGroupId: n,
|
|
2911
2909
|
getConflictingClassGroupIds: d,
|
|
2912
2910
|
sortModifiers: o
|
|
2913
|
-
} = e, i = [], a = t.trim().split(
|
|
2911
|
+
} = e, i = [], a = t.trim().split(A0);
|
|
2914
2912
|
let s = "";
|
|
2915
2913
|
for (let l = a.length - 1; l >= 0; l -= 1) {
|
|
2916
2914
|
const c = a[l], {
|
|
2917
2915
|
isExternal: $,
|
|
2918
2916
|
modifiers: u,
|
|
2919
2917
|
hasImportantModifier: g,
|
|
2920
|
-
baseClassName:
|
|
2918
|
+
baseClassName: _,
|
|
2921
2919
|
maybePostfixModifierPosition: S
|
|
2922
2920
|
} = r(c);
|
|
2923
2921
|
if ($) {
|
|
2924
2922
|
s = c + (s.length > 0 ? " " + s : s);
|
|
2925
2923
|
continue;
|
|
2926
2924
|
}
|
|
2927
|
-
let
|
|
2925
|
+
let x = !!S, R = n(x ? _.substring(0, S) : _);
|
|
2928
2926
|
if (!R) {
|
|
2929
|
-
if (!
|
|
2927
|
+
if (!x) {
|
|
2930
2928
|
s = c + (s.length > 0 ? " " + s : s);
|
|
2931
2929
|
continue;
|
|
2932
2930
|
}
|
|
2933
|
-
if (R = n(
|
|
2931
|
+
if (R = n(_), !R) {
|
|
2934
2932
|
s = c + (s.length > 0 ? " " + s : s);
|
|
2935
2933
|
continue;
|
|
2936
2934
|
}
|
|
2937
|
-
|
|
2935
|
+
x = !1;
|
|
2938
2936
|
}
|
|
2939
2937
|
const D = u.length === 0 ? "" : u.length === 1 ? u[0] : o(u).join(":"), U = g ? D + ft : D, B = U + R;
|
|
2940
2938
|
if (i.indexOf(B) > -1)
|
|
2941
2939
|
continue;
|
|
2942
2940
|
i.push(B);
|
|
2943
|
-
const z = d(R,
|
|
2941
|
+
const z = d(R, x);
|
|
2944
2942
|
for (let Z = 0; Z < z.length; ++Z) {
|
|
2945
2943
|
const W = z[Z];
|
|
2946
2944
|
i.push(U + W);
|
|
@@ -2969,7 +2967,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2969
2967
|
const l = n(s);
|
|
2970
2968
|
if (l)
|
|
2971
2969
|
return l;
|
|
2972
|
-
const c =
|
|
2970
|
+
const c = E0(s, r);
|
|
2973
2971
|
return d(s, c), c;
|
|
2974
2972
|
};
|
|
2975
2973
|
return o = i, (...s) => o(S0(...s));
|
|
@@ -2988,7 +2986,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2988
2986
|
const n = X1.exec(t);
|
|
2989
2987
|
return n ? n[1] ? e(n[1]) : r : !1;
|
|
2990
2988
|
}, J1 = (t) => t === "position" || t === "percentage", Q1 = (t) => t === "image" || t === "url", e2 = (t) => t === "length" || t === "size" || t === "bg-size", t2 = (t) => t === "length", q0 = (t) => t === "number", r2 = (t) => t === "family-name", n2 = (t) => t === "number" || t === "weight", d2 = (t) => t === "shadow", X0 = () => {
|
|
2991
|
-
const t = N("color"), e = N("font"), r = N("text"), n = N("font-weight"), d = N("tracking"), o = N("leading"), i = N("breakpoint"), a = N("container"), s = N("spacing"), l = N("radius"), c = N("shadow"), $ = N("inset-shadow"), u = N("text-shadow"), g = N("drop-shadow"),
|
|
2989
|
+
const t = N("color"), e = N("font"), r = N("text"), n = N("font-weight"), d = N("tracking"), o = N("leading"), i = N("breakpoint"), a = N("container"), s = N("spacing"), l = N("radius"), c = N("shadow"), $ = N("inset-shadow"), u = N("text-shadow"), g = N("drop-shadow"), _ = N("blur"), S = N("perspective"), x = N("aspect"), R = N("ease"), D = N("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], B = () => [
|
|
2992
2990
|
"center",
|
|
2993
2991
|
"top",
|
|
2994
2992
|
"bottom",
|
|
@@ -3008,7 +3006,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
3008
3006
|
"left-bottom"
|
|
3009
3007
|
], z = () => [...B(), p, h], Z = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], m = () => [p, h, s], O = () => [Q, "full", "auto", ...m()], ce = () => [ee, "none", "subgrid", p, h], Re = () => ["auto", {
|
|
3010
3008
|
span: ["full", ee, p, h]
|
|
3011
|
-
}, ee, p, h], L = () => [ee, "auto", p, h], Te = () => ["auto", "min", "max", "fr", p, h], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"],
|
|
3009
|
+
}, ee, p, h], L = () => [ee, "auto", p, h], Te = () => ["auto", "min", "max", "fr", p, h], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], E = () => ["auto", ...m()], b = () => [Q, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], ue = () => [Q, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...m()], ne = () => [Q, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...m()], f = () => [t, p, h], P = () => [...B(), _1, C1, {
|
|
3012
3010
|
position: [p, h]
|
|
3013
3011
|
}], G = () => ["no-repeat", {
|
|
3014
3012
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -3026,7 +3024,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
3026
3024
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3027
3025
|
"",
|
|
3028
3026
|
"none",
|
|
3029
|
-
|
|
3027
|
+
_,
|
|
3030
3028
|
p,
|
|
3031
3029
|
h
|
|
3032
3030
|
], Le = () => ["none", y, p, h], Fe = () => ["none", y, p, h], tt = () => [y, p, h], De = () => [Q, "full", ...m()];
|
|
@@ -3062,7 +3060,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
3062
3060
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
3063
3061
|
*/
|
|
3064
3062
|
aspect: [{
|
|
3065
|
-
aspect: ["auto", "square", Q, h, p,
|
|
3063
|
+
aspect: ["auto", "square", Q, h, p, x]
|
|
3066
3064
|
}],
|
|
3067
3065
|
/**
|
|
3068
3066
|
* Container
|
|
@@ -3603,77 +3601,77 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
3603
3601
|
* @see https://tailwindcss.com/docs/margin
|
|
3604
3602
|
*/
|
|
3605
3603
|
m: [{
|
|
3606
|
-
m:
|
|
3604
|
+
m: E()
|
|
3607
3605
|
}],
|
|
3608
3606
|
/**
|
|
3609
3607
|
* Margin Inline
|
|
3610
3608
|
* @see https://tailwindcss.com/docs/margin
|
|
3611
3609
|
*/
|
|
3612
3610
|
mx: [{
|
|
3613
|
-
mx:
|
|
3611
|
+
mx: E()
|
|
3614
3612
|
}],
|
|
3615
3613
|
/**
|
|
3616
3614
|
* Margin Block
|
|
3617
3615
|
* @see https://tailwindcss.com/docs/margin
|
|
3618
3616
|
*/
|
|
3619
3617
|
my: [{
|
|
3620
|
-
my:
|
|
3618
|
+
my: E()
|
|
3621
3619
|
}],
|
|
3622
3620
|
/**
|
|
3623
3621
|
* Margin Inline Start
|
|
3624
3622
|
* @see https://tailwindcss.com/docs/margin
|
|
3625
3623
|
*/
|
|
3626
3624
|
ms: [{
|
|
3627
|
-
ms:
|
|
3625
|
+
ms: E()
|
|
3628
3626
|
}],
|
|
3629
3627
|
/**
|
|
3630
3628
|
* Margin Inline End
|
|
3631
3629
|
* @see https://tailwindcss.com/docs/margin
|
|
3632
3630
|
*/
|
|
3633
3631
|
me: [{
|
|
3634
|
-
me:
|
|
3632
|
+
me: E()
|
|
3635
3633
|
}],
|
|
3636
3634
|
/**
|
|
3637
3635
|
* Margin Block Start
|
|
3638
3636
|
* @see https://tailwindcss.com/docs/margin
|
|
3639
3637
|
*/
|
|
3640
3638
|
mbs: [{
|
|
3641
|
-
mbs:
|
|
3639
|
+
mbs: E()
|
|
3642
3640
|
}],
|
|
3643
3641
|
/**
|
|
3644
3642
|
* Margin Block End
|
|
3645
3643
|
* @see https://tailwindcss.com/docs/margin
|
|
3646
3644
|
*/
|
|
3647
3645
|
mbe: [{
|
|
3648
|
-
mbe:
|
|
3646
|
+
mbe: E()
|
|
3649
3647
|
}],
|
|
3650
3648
|
/**
|
|
3651
3649
|
* Margin Top
|
|
3652
3650
|
* @see https://tailwindcss.com/docs/margin
|
|
3653
3651
|
*/
|
|
3654
3652
|
mt: [{
|
|
3655
|
-
mt:
|
|
3653
|
+
mt: E()
|
|
3656
3654
|
}],
|
|
3657
3655
|
/**
|
|
3658
3656
|
* Margin Right
|
|
3659
3657
|
* @see https://tailwindcss.com/docs/margin
|
|
3660
3658
|
*/
|
|
3661
3659
|
mr: [{
|
|
3662
|
-
mr:
|
|
3660
|
+
mr: E()
|
|
3663
3661
|
}],
|
|
3664
3662
|
/**
|
|
3665
3663
|
* Margin Bottom
|
|
3666
3664
|
* @see https://tailwindcss.com/docs/margin
|
|
3667
3665
|
*/
|
|
3668
3666
|
mb: [{
|
|
3669
|
-
mb:
|
|
3667
|
+
mb: E()
|
|
3670
3668
|
}],
|
|
3671
3669
|
/**
|
|
3672
3670
|
* Margin Left
|
|
3673
3671
|
* @see https://tailwindcss.com/docs/margin
|
|
3674
3672
|
*/
|
|
3675
3673
|
ml: [{
|
|
3676
|
-
ml:
|
|
3674
|
+
ml: E()
|
|
3677
3675
|
}],
|
|
3678
3676
|
/**
|
|
3679
3677
|
* Space Between X
|
|
@@ -4084,7 +4082,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
4084
4082
|
* @see https://tailwindcss.com/docs/background-position
|
|
4085
4083
|
*/
|
|
4086
4084
|
"bg-position": [{
|
|
4087
|
-
bg:
|
|
4085
|
+
bg: P()
|
|
4088
4086
|
}],
|
|
4089
4087
|
/**
|
|
4090
4088
|
* Background Repeat
|
|
@@ -4789,7 +4787,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
4789
4787
|
* @see https://tailwindcss.com/docs/mask-position
|
|
4790
4788
|
*/
|
|
4791
4789
|
"mask-position": [{
|
|
4792
|
-
mask:
|
|
4790
|
+
mask: P()
|
|
4793
4791
|
}],
|
|
4794
4792
|
/**
|
|
4795
4793
|
* Mask Repeat
|
|
@@ -5857,14 +5855,14 @@ function hd() {
|
|
|
5857
5855
|
</div>
|
|
5858
5856
|
`;
|
|
5859
5857
|
}
|
|
5860
|
-
var pd = Object.defineProperty,
|
|
5858
|
+
var pd = Object.defineProperty, A = (t, e, r, n) => {
|
|
5861
5859
|
for (var d = void 0, o = t.length - 1, i; o >= 0; o--)
|
|
5862
5860
|
(i = t[o]) && (d = i(e, r, d) || d);
|
|
5863
5861
|
return d && pd(e, r, d), d;
|
|
5864
5862
|
};
|
|
5865
|
-
class
|
|
5863
|
+
class w extends Ce {
|
|
5866
5864
|
constructor() {
|
|
5867
|
-
super(...arguments), this.token = "", this.currency = "EUR", this.defaultAmount = "", this.defaultReference = "", this.readOnlyAmount = !1, this.customerName = "", this.customerEmail = "", this.customerPhone = "", this.locale = "fr", this.payClientRef = "", this._amount = "", this._email = "", this._phone = "", this._paymentReference = "", this._method = "", this._channel = void 0, this._country = s0.code, this._loading = !1, this._success = !1, this.
|
|
5865
|
+
super(...arguments), this.token = "", this.currency = "EUR", this.defaultAmount = "", this.defaultReference = "", this.readOnlyAmount = !1, this.customerName = "", this.customerEmail = "", this.customerPhone = "", this.locale = "fr", this.payClientRef = "", this._amount = "", this._email = "", this._phone = "", this._paymentReference = "", this._method = "", this._channel = void 0, this._country = s0.code, this._loading = !1, this._success = !1, this._paymentMethods = [], this._methodsLoading = !0, this._methodsError = null, this._initialized = !1, this._t = ot("fr"), this._apiUrl = "https://localhost:4004";
|
|
5868
5866
|
}
|
|
5869
5867
|
createRenderRoot() {
|
|
5870
5868
|
return this;
|
|
@@ -5931,8 +5929,8 @@ class _ extends Ce {
|
|
|
5931
5929
|
_onCountryChange(e) {
|
|
5932
5930
|
this._country = e.target.value;
|
|
5933
5931
|
}
|
|
5934
|
-
_onSubmit(e) {
|
|
5935
|
-
e.preventDefault(), this._loading = !0
|
|
5932
|
+
async _onSubmit(e) {
|
|
5933
|
+
e.preventDefault(), this._loading = !0;
|
|
5936
5934
|
const r = this._method.indexOf("_"), n = r >= 0 ? this._method.substring(0, r) : this._method, d = r >= 0 ? this._method.substring(r + 1) : "", o = {
|
|
5937
5935
|
order_reference: this._paymentReference,
|
|
5938
5936
|
channel: this._channel === "email" ? "email" : this._channel === "sms" ? "sms" : "link",
|
|
@@ -5941,19 +5939,23 @@ class _ extends Ce {
|
|
|
5941
5939
|
method: d,
|
|
5942
5940
|
customer_contact: this._channel === "email" ? this._email : this._channel === "sms" ? this._phone : this._email,
|
|
5943
5941
|
partner: n
|
|
5944
|
-
}
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5942
|
+
};
|
|
5943
|
+
this._success = !0;
|
|
5944
|
+
try {
|
|
5945
|
+
await Promise.resolve(
|
|
5946
|
+
this.dispatchEvent(
|
|
5947
|
+
new CustomEvent("request-to-pay", {
|
|
5948
|
+
detail: o,
|
|
5949
|
+
bubbles: !0,
|
|
5950
|
+
composed: !0
|
|
5951
|
+
})
|
|
5952
|
+
)
|
|
5953
|
+
);
|
|
5954
|
+
} catch (i) {
|
|
5955
|
+
console.error(i);
|
|
5956
|
+
} finally {
|
|
5957
|
+
this._loading = !1;
|
|
5958
|
+
}
|
|
5957
5959
|
}
|
|
5958
5960
|
_onClose() {
|
|
5959
5961
|
this._success = !1, this.dispatchEvent(
|
|
@@ -6108,12 +6110,6 @@ class _ extends Ce {
|
|
|
6108
6110
|
${at(n && this._t.phoneInvalid)}
|
|
6109
6111
|
</div>
|
|
6110
6112
|
` : v}
|
|
6111
|
-
${this._submitError ? C`<div
|
|
6112
|
-
role="alert"
|
|
6113
|
-
class="pay:bg-red-50 pay:border pay:border-red-400 pay:text-red-700 pay:p-3 pay:rounded-md pay:text-sm"
|
|
6114
|
-
>
|
|
6115
|
-
${this._submitError}
|
|
6116
|
-
</div>` : v}
|
|
6117
6113
|
${x1(
|
|
6118
6114
|
{
|
|
6119
6115
|
type: "submit",
|
|
@@ -6150,76 +6146,73 @@ class _ extends Ce {
|
|
|
6150
6146
|
`;
|
|
6151
6147
|
}
|
|
6152
6148
|
}
|
|
6153
|
-
|
|
6149
|
+
A([
|
|
6154
6150
|
j({ type: String })
|
|
6155
|
-
],
|
|
6156
|
-
|
|
6151
|
+
], w.prototype, "token");
|
|
6152
|
+
A([
|
|
6157
6153
|
j({ type: String })
|
|
6158
|
-
],
|
|
6159
|
-
|
|
6154
|
+
], w.prototype, "currency");
|
|
6155
|
+
A([
|
|
6160
6156
|
j({ type: String, attribute: "default-amount" })
|
|
6161
|
-
],
|
|
6162
|
-
|
|
6157
|
+
], w.prototype, "defaultAmount");
|
|
6158
|
+
A([
|
|
6163
6159
|
j({ type: String, attribute: "default-reference" })
|
|
6164
|
-
],
|
|
6165
|
-
|
|
6160
|
+
], w.prototype, "defaultReference");
|
|
6161
|
+
A([
|
|
6166
6162
|
j({ type: Boolean, attribute: "read-only-amount" })
|
|
6167
|
-
],
|
|
6168
|
-
|
|
6163
|
+
], w.prototype, "readOnlyAmount");
|
|
6164
|
+
A([
|
|
6169
6165
|
j({ type: String, attribute: "customer-name" })
|
|
6170
|
-
],
|
|
6171
|
-
|
|
6166
|
+
], w.prototype, "customerName");
|
|
6167
|
+
A([
|
|
6172
6168
|
j({ type: String, attribute: "customer-email" })
|
|
6173
|
-
],
|
|
6174
|
-
|
|
6169
|
+
], w.prototype, "customerEmail");
|
|
6170
|
+
A([
|
|
6175
6171
|
j({ type: String, attribute: "customer-phone" })
|
|
6176
|
-
],
|
|
6177
|
-
|
|
6172
|
+
], w.prototype, "customerPhone");
|
|
6173
|
+
A([
|
|
6178
6174
|
j({ type: String })
|
|
6179
|
-
],
|
|
6180
|
-
|
|
6175
|
+
], w.prototype, "locale");
|
|
6176
|
+
A([
|
|
6181
6177
|
j({ type: String, attribute: "pay-client-ref" })
|
|
6182
|
-
],
|
|
6183
|
-
|
|
6184
|
-
F()
|
|
6185
|
-
], _.prototype, "_amount");
|
|
6186
|
-
x([
|
|
6178
|
+
], w.prototype, "payClientRef");
|
|
6179
|
+
A([
|
|
6187
6180
|
F()
|
|
6188
|
-
],
|
|
6189
|
-
|
|
6181
|
+
], w.prototype, "_amount");
|
|
6182
|
+
A([
|
|
6190
6183
|
F()
|
|
6191
|
-
],
|
|
6192
|
-
|
|
6184
|
+
], w.prototype, "_email");
|
|
6185
|
+
A([
|
|
6193
6186
|
F()
|
|
6194
|
-
],
|
|
6195
|
-
|
|
6187
|
+
], w.prototype, "_phone");
|
|
6188
|
+
A([
|
|
6196
6189
|
F()
|
|
6197
|
-
],
|
|
6198
|
-
|
|
6190
|
+
], w.prototype, "_paymentReference");
|
|
6191
|
+
A([
|
|
6199
6192
|
F()
|
|
6200
|
-
],
|
|
6201
|
-
|
|
6193
|
+
], w.prototype, "_method");
|
|
6194
|
+
A([
|
|
6202
6195
|
F()
|
|
6203
|
-
],
|
|
6204
|
-
|
|
6196
|
+
], w.prototype, "_channel");
|
|
6197
|
+
A([
|
|
6205
6198
|
F()
|
|
6206
|
-
],
|
|
6207
|
-
|
|
6199
|
+
], w.prototype, "_country");
|
|
6200
|
+
A([
|
|
6208
6201
|
F()
|
|
6209
|
-
],
|
|
6210
|
-
|
|
6202
|
+
], w.prototype, "_loading");
|
|
6203
|
+
A([
|
|
6211
6204
|
F()
|
|
6212
|
-
],
|
|
6213
|
-
|
|
6205
|
+
], w.prototype, "_success");
|
|
6206
|
+
A([
|
|
6214
6207
|
F()
|
|
6215
|
-
],
|
|
6216
|
-
|
|
6208
|
+
], w.prototype, "_paymentMethods");
|
|
6209
|
+
A([
|
|
6217
6210
|
F()
|
|
6218
|
-
],
|
|
6219
|
-
|
|
6211
|
+
], w.prototype, "_methodsLoading");
|
|
6212
|
+
A([
|
|
6220
6213
|
F()
|
|
6221
|
-
],
|
|
6222
|
-
customElements.get("openhive-pay") || customElements.define("openhive-pay",
|
|
6214
|
+
], w.prototype, "_methodsError");
|
|
6215
|
+
customElements.get("openhive-pay") || customElements.define("openhive-pay", w);
|
|
6223
6216
|
export {
|
|
6224
|
-
|
|
6217
|
+
w as PaymentWidget
|
|
6225
6218
|
};
|