@openhive-eu/payment 1.0.0-next.10 → 1.0.0-next.11
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 +185 -178
- package/dist/index.js.gz +0 -0
- package/dist/index.min.js +29 -23
- package/dist/index.min.js.gz +0 -0
- package/dist/lib/i18n.d.ts +1 -0
- package/dist/payment-widget.d.ts +3 -0
- package/dist/react-widget.d.ts +1 -1
- package/dist/react.js +267 -255
- 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, E1 = /* @__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 !== E1) 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, E1), 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, A1 = "$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, $) + A1 + 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(A1)) {
|
|
275
|
+
const u = c[i++], g = d.getAttribute($).split(te), w = /([.?@])?(.*)/.exec(u);
|
|
276
|
+
s.push({ type: 1, index: o, name: w[2], strings: g, ctor: w[1] === "." ? w2 : w[1] === "?" ? x2 : w[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 E2(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 E2 {
|
|
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 A2 {
|
|
|
454
454
|
me(this, e);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
const
|
|
458
|
-
|
|
457
|
+
const A2 = gt.litHtmlPolyfillSupport;
|
|
458
|
+
A2?.(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: w = n,
|
|
556
556
|
Request: S = r,
|
|
557
|
-
headers:
|
|
557
|
+
headers: P,
|
|
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, P, 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
|
+
P,
|
|
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, A = 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 A || (A[f] = W[f]);
|
|
603
603
|
if (L.length) {
|
|
604
604
|
J = D2(), H = Object.freeze({
|
|
605
605
|
baseUrl: m,
|
|
606
|
-
fetch:
|
|
606
|
+
fetch: w,
|
|
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 E = await f.onRequest({
|
|
614
|
+
request: A,
|
|
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 (E)
|
|
621
|
+
if (E instanceof S)
|
|
622
|
+
A = E;
|
|
623
|
+
else if (E instanceof Response) {
|
|
624
|
+
b = E;
|
|
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 w(A, a);
|
|
633
633
|
} catch (f) {
|
|
634
|
-
let
|
|
634
|
+
let E = 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: A,
|
|
641
|
+
error: E,
|
|
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
|
+
E = void 0, b = K;
|
|
650
650
|
break;
|
|
651
651
|
}
|
|
652
652
|
if (K instanceof Error) {
|
|
653
|
-
|
|
653
|
+
E = 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 (E)
|
|
661
|
+
throw E;
|
|
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 E = L[f];
|
|
666
|
+
if (E && typeof E == "object" && typeof E.onResponse == "function") {
|
|
667
|
+
const G = await E.onResponse({
|
|
668
|
+
request: A,
|
|
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 || A.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 E = await b.text();
|
|
692
|
+
return E ? JSON.parse(E) : 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 Er(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 Ar(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] : Er(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 (!Ar(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 Ar(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), w = o + s + i + fe(e) + a, S = o + l + i + fe(n) + a, P = c + fe(d) + "#", R = $ + u + i + fe(r) + a, D = $ + "(?:,)+" + i + fe(n) + a;
|
|
1745
|
+
return g + "|" + w + "|" + S + "|" + P + "|" + 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 = Ae(e), sn(t, Et() ? Reflect.construct(e, r || [], Ae(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 && Ee(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, Ae(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 } }), Ee(d, n);
|
|
2074
2074
|
}, $t(t);
|
|
2075
2075
|
}
|
|
2076
2076
|
function cn(t, e, r) {
|
|
2077
|
-
if (
|
|
2077
|
+
if (Et()) 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 && Ee(d, r.prototype), d;
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function Et() {
|
|
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 (Et = 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 Ee(t, e) {
|
|
2101
|
+
return Ee = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
|
|
2102
2102
|
return r.__proto__ = n, r;
|
|
2103
|
-
},
|
|
2103
|
+
}, Ee(t, e);
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2106
|
-
return
|
|
2105
|
+
function Ae(t) {
|
|
2106
|
+
return Ae = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2107
2107
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2108
|
-
},
|
|
2108
|
+
}, Ae(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 + "\\.?$", En = new RegExp(Pn, "g"), d1 = "tel:", ut = ";phone-context=", An = ";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) || En.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(An);
|
|
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 w = (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: w,
|
|
2308
|
+
possible: w ? !0 : !!(e.extended === !0 && r.possibleLengths() && M1(l, s, r)),
|
|
2309
2309
|
phone: l,
|
|
2310
2310
|
ext: o
|
|
2311
|
-
} :
|
|
2311
|
+
} : w ? Fn(s, l, o) : {};
|
|
2312
2312
|
}
|
|
2313
2313
|
function Mn(t, e, r) {
|
|
2314
2314
|
if (t) {
|
|
@@ -2634,7 +2634,8 @@ 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."
|
|
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."
|
|
2638
2639
|
},
|
|
2639
2640
|
en: {
|
|
2640
2641
|
title: "Payment terminal",
|
|
@@ -2655,7 +2656,8 @@ const f1 = ["FR"], U1 = [
|
|
|
2655
2656
|
close: "Close",
|
|
2656
2657
|
textMessage: "SMS",
|
|
2657
2658
|
email: "Email",
|
|
2658
|
-
errorFallback: "Something went wrong while loading the payment component."
|
|
2659
|
+
errorFallback: "Something went wrong while loading the payment component.",
|
|
2660
|
+
submitError: "An error occurred while sending the payment link."
|
|
2659
2661
|
}
|
|
2660
2662
|
}, ot = (t) => h1[t] ?? h1.fr;
|
|
2661
2663
|
function G1(t) {
|
|
@@ -2684,15 +2686,15 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2684
2686
|
return u === void 0 || (l[$] = u), l;
|
|
2685
2687
|
}, {}), s = e == null || (n = e.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((l, c) => {
|
|
2686
2688
|
let { class: $, className: u, ...g } = c;
|
|
2687
|
-
return Object.entries(g).every((
|
|
2688
|
-
let [S,
|
|
2689
|
-
return Array.isArray(
|
|
2689
|
+
return Object.entries(g).every((w) => {
|
|
2690
|
+
let [S, P] = w;
|
|
2691
|
+
return Array.isArray(P) ? P.includes({
|
|
2690
2692
|
...o,
|
|
2691
2693
|
...a
|
|
2692
2694
|
}[S]) : {
|
|
2693
2695
|
...o,
|
|
2694
2696
|
...a
|
|
2695
|
-
}[S] ===
|
|
2697
|
+
}[S] === P;
|
|
2696
2698
|
}) ? [
|
|
2697
2699
|
...l,
|
|
2698
2700
|
$,
|
|
@@ -2764,10 +2766,10 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2764
2766
|
const r = z1();
|
|
2765
2767
|
for (const n in t) {
|
|
2766
2768
|
const d = t[n];
|
|
2767
|
-
|
|
2769
|
+
At(d, r, n, e);
|
|
2768
2770
|
}
|
|
2769
2771
|
return r;
|
|
2770
|
-
},
|
|
2772
|
+
}, At = (t, e, r, n) => {
|
|
2771
2773
|
const d = t.length;
|
|
2772
2774
|
for (let o = 0; o < d; o++) {
|
|
2773
2775
|
const i = t[o];
|
|
@@ -2788,7 +2790,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2788
2790
|
n.classGroupId = r;
|
|
2789
2791
|
}, g0 = (t, e, r, n) => {
|
|
2790
2792
|
if (v0(t)) {
|
|
2791
|
-
|
|
2793
|
+
At(t(n), e, r, n);
|
|
2792
2794
|
return;
|
|
2793
2795
|
}
|
|
2794
2796
|
e.validators === null && (e.validators = []), e.validators.push($0(r, t));
|
|
@@ -2796,7 +2798,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2796
2798
|
const d = Object.entries(t), o = d.length;
|
|
2797
2799
|
for (let i = 0; i < o; i++) {
|
|
2798
2800
|
const [a, s] = d[i];
|
|
2799
|
-
|
|
2801
|
+
At(s, W1(e, a), r, n);
|
|
2800
2802
|
}
|
|
2801
2803
|
}, W1 = (t, e) => {
|
|
2802
2804
|
let r = t;
|
|
@@ -2847,18 +2849,18 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2847
2849
|
let i = 0, a = 0, s = 0, l;
|
|
2848
2850
|
const c = d.length;
|
|
2849
2851
|
for (let S = 0; S < c; S++) {
|
|
2850
|
-
const
|
|
2852
|
+
const P = d[S];
|
|
2851
2853
|
if (i === 0 && a === 0) {
|
|
2852
|
-
if (
|
|
2854
|
+
if (P === g1) {
|
|
2853
2855
|
o.push(d.slice(s, S)), s = S + 1;
|
|
2854
2856
|
continue;
|
|
2855
2857
|
}
|
|
2856
|
-
if (
|
|
2858
|
+
if (P === "/") {
|
|
2857
2859
|
l = S;
|
|
2858
2860
|
continue;
|
|
2859
2861
|
}
|
|
2860
2862
|
}
|
|
2861
|
-
|
|
2863
|
+
P === "[" ? i++ : P === "]" ? i-- : P === "(" ? a++ : P === ")" && a--;
|
|
2862
2864
|
}
|
|
2863
2865
|
const $ = o.length === 0 ? d : d.slice(s);
|
|
2864
2866
|
let u = $, g = !1;
|
|
@@ -2869,8 +2871,8 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2869
2871
|
*/
|
|
2870
2872
|
$.startsWith(ft) && (u = $.slice(1), g = !0)
|
|
2871
2873
|
);
|
|
2872
|
-
const
|
|
2873
|
-
return b1(o, g, u,
|
|
2874
|
+
const w = l && l > s ? l - s : void 0;
|
|
2875
|
+
return b1(o, g, u, w);
|
|
2874
2876
|
};
|
|
2875
2877
|
if (e) {
|
|
2876
2878
|
const d = e + g1, o = n;
|
|
@@ -2902,43 +2904,43 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2902
2904
|
parseClassName: w0(t),
|
|
2903
2905
|
sortModifiers: x0(t),
|
|
2904
2906
|
...u0(t)
|
|
2905
|
-
}),
|
|
2907
|
+
}), E0 = /\s+/, A0 = (t, e) => {
|
|
2906
2908
|
const {
|
|
2907
2909
|
parseClassName: r,
|
|
2908
2910
|
getClassGroupId: n,
|
|
2909
2911
|
getConflictingClassGroupIds: d,
|
|
2910
2912
|
sortModifiers: o
|
|
2911
|
-
} = e, i = [], a = t.trim().split(
|
|
2913
|
+
} = e, i = [], a = t.trim().split(E0);
|
|
2912
2914
|
let s = "";
|
|
2913
2915
|
for (let l = a.length - 1; l >= 0; l -= 1) {
|
|
2914
2916
|
const c = a[l], {
|
|
2915
2917
|
isExternal: $,
|
|
2916
2918
|
modifiers: u,
|
|
2917
2919
|
hasImportantModifier: g,
|
|
2918
|
-
baseClassName:
|
|
2920
|
+
baseClassName: w,
|
|
2919
2921
|
maybePostfixModifierPosition: S
|
|
2920
2922
|
} = r(c);
|
|
2921
2923
|
if ($) {
|
|
2922
2924
|
s = c + (s.length > 0 ? " " + s : s);
|
|
2923
2925
|
continue;
|
|
2924
2926
|
}
|
|
2925
|
-
let
|
|
2927
|
+
let P = !!S, R = n(P ? w.substring(0, S) : w);
|
|
2926
2928
|
if (!R) {
|
|
2927
|
-
if (!
|
|
2929
|
+
if (!P) {
|
|
2928
2930
|
s = c + (s.length > 0 ? " " + s : s);
|
|
2929
2931
|
continue;
|
|
2930
2932
|
}
|
|
2931
|
-
if (R = n(
|
|
2933
|
+
if (R = n(w), !R) {
|
|
2932
2934
|
s = c + (s.length > 0 ? " " + s : s);
|
|
2933
2935
|
continue;
|
|
2934
2936
|
}
|
|
2935
|
-
|
|
2937
|
+
P = !1;
|
|
2936
2938
|
}
|
|
2937
2939
|
const D = u.length === 0 ? "" : u.length === 1 ? u[0] : o(u).join(":"), U = g ? D + ft : D, B = U + R;
|
|
2938
2940
|
if (i.indexOf(B) > -1)
|
|
2939
2941
|
continue;
|
|
2940
2942
|
i.push(B);
|
|
2941
|
-
const z = d(R,
|
|
2943
|
+
const z = d(R, P);
|
|
2942
2944
|
for (let Z = 0; Z < z.length; ++Z) {
|
|
2943
2945
|
const W = z[Z];
|
|
2944
2946
|
i.push(U + W);
|
|
@@ -2967,7 +2969,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2967
2969
|
const l = n(s);
|
|
2968
2970
|
if (l)
|
|
2969
2971
|
return l;
|
|
2970
|
-
const c =
|
|
2972
|
+
const c = A0(s, r);
|
|
2971
2973
|
return d(s, c), c;
|
|
2972
2974
|
};
|
|
2973
2975
|
return o = i, (...s) => o(S0(...s));
|
|
@@ -2986,7 +2988,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
2986
2988
|
const n = X1.exec(t);
|
|
2987
2989
|
return n ? n[1] ? e(n[1]) : r : !1;
|
|
2988
2990
|
}, 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 = () => {
|
|
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"),
|
|
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"), w = N("blur"), S = N("perspective"), P = N("aspect"), R = N("ease"), D = N("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], B = () => [
|
|
2990
2992
|
"center",
|
|
2991
2993
|
"top",
|
|
2992
2994
|
"bottom",
|
|
@@ -3006,7 +3008,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
3006
3008
|
"left-bottom"
|
|
3007
3009
|
], 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", {
|
|
3008
3010
|
span: ["full", ee, p, h]
|
|
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"],
|
|
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"], A = () => ["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], E = () => [...B(), _1, C1, {
|
|
3010
3012
|
position: [p, h]
|
|
3011
3013
|
}], G = () => ["no-repeat", {
|
|
3012
3014
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -3024,7 +3026,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
3024
3026
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3025
3027
|
"",
|
|
3026
3028
|
"none",
|
|
3027
|
-
|
|
3029
|
+
w,
|
|
3028
3030
|
p,
|
|
3029
3031
|
h
|
|
3030
3032
|
], Le = () => ["none", y, p, h], Fe = () => ["none", y, p, h], tt = () => [y, p, h], De = () => [Q, "full", ...m()];
|
|
@@ -3060,7 +3062,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
3060
3062
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
3061
3063
|
*/
|
|
3062
3064
|
aspect: [{
|
|
3063
|
-
aspect: ["auto", "square", Q, h, p,
|
|
3065
|
+
aspect: ["auto", "square", Q, h, p, P]
|
|
3064
3066
|
}],
|
|
3065
3067
|
/**
|
|
3066
3068
|
* Container
|
|
@@ -3601,77 +3603,77 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
3601
3603
|
* @see https://tailwindcss.com/docs/margin
|
|
3602
3604
|
*/
|
|
3603
3605
|
m: [{
|
|
3604
|
-
m:
|
|
3606
|
+
m: A()
|
|
3605
3607
|
}],
|
|
3606
3608
|
/**
|
|
3607
3609
|
* Margin Inline
|
|
3608
3610
|
* @see https://tailwindcss.com/docs/margin
|
|
3609
3611
|
*/
|
|
3610
3612
|
mx: [{
|
|
3611
|
-
mx:
|
|
3613
|
+
mx: A()
|
|
3612
3614
|
}],
|
|
3613
3615
|
/**
|
|
3614
3616
|
* Margin Block
|
|
3615
3617
|
* @see https://tailwindcss.com/docs/margin
|
|
3616
3618
|
*/
|
|
3617
3619
|
my: [{
|
|
3618
|
-
my:
|
|
3620
|
+
my: A()
|
|
3619
3621
|
}],
|
|
3620
3622
|
/**
|
|
3621
3623
|
* Margin Inline Start
|
|
3622
3624
|
* @see https://tailwindcss.com/docs/margin
|
|
3623
3625
|
*/
|
|
3624
3626
|
ms: [{
|
|
3625
|
-
ms:
|
|
3627
|
+
ms: A()
|
|
3626
3628
|
}],
|
|
3627
3629
|
/**
|
|
3628
3630
|
* Margin Inline End
|
|
3629
3631
|
* @see https://tailwindcss.com/docs/margin
|
|
3630
3632
|
*/
|
|
3631
3633
|
me: [{
|
|
3632
|
-
me:
|
|
3634
|
+
me: A()
|
|
3633
3635
|
}],
|
|
3634
3636
|
/**
|
|
3635
3637
|
* Margin Block Start
|
|
3636
3638
|
* @see https://tailwindcss.com/docs/margin
|
|
3637
3639
|
*/
|
|
3638
3640
|
mbs: [{
|
|
3639
|
-
mbs:
|
|
3641
|
+
mbs: A()
|
|
3640
3642
|
}],
|
|
3641
3643
|
/**
|
|
3642
3644
|
* Margin Block End
|
|
3643
3645
|
* @see https://tailwindcss.com/docs/margin
|
|
3644
3646
|
*/
|
|
3645
3647
|
mbe: [{
|
|
3646
|
-
mbe:
|
|
3648
|
+
mbe: A()
|
|
3647
3649
|
}],
|
|
3648
3650
|
/**
|
|
3649
3651
|
* Margin Top
|
|
3650
3652
|
* @see https://tailwindcss.com/docs/margin
|
|
3651
3653
|
*/
|
|
3652
3654
|
mt: [{
|
|
3653
|
-
mt:
|
|
3655
|
+
mt: A()
|
|
3654
3656
|
}],
|
|
3655
3657
|
/**
|
|
3656
3658
|
* Margin Right
|
|
3657
3659
|
* @see https://tailwindcss.com/docs/margin
|
|
3658
3660
|
*/
|
|
3659
3661
|
mr: [{
|
|
3660
|
-
mr:
|
|
3662
|
+
mr: A()
|
|
3661
3663
|
}],
|
|
3662
3664
|
/**
|
|
3663
3665
|
* Margin Bottom
|
|
3664
3666
|
* @see https://tailwindcss.com/docs/margin
|
|
3665
3667
|
*/
|
|
3666
3668
|
mb: [{
|
|
3667
|
-
mb:
|
|
3669
|
+
mb: A()
|
|
3668
3670
|
}],
|
|
3669
3671
|
/**
|
|
3670
3672
|
* Margin Left
|
|
3671
3673
|
* @see https://tailwindcss.com/docs/margin
|
|
3672
3674
|
*/
|
|
3673
3675
|
ml: [{
|
|
3674
|
-
ml:
|
|
3676
|
+
ml: A()
|
|
3675
3677
|
}],
|
|
3676
3678
|
/**
|
|
3677
3679
|
* Space Between X
|
|
@@ -4082,7 +4084,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
4082
4084
|
* @see https://tailwindcss.com/docs/background-position
|
|
4083
4085
|
*/
|
|
4084
4086
|
"bg-position": [{
|
|
4085
|
-
bg:
|
|
4087
|
+
bg: E()
|
|
4086
4088
|
}],
|
|
4087
4089
|
/**
|
|
4088
4090
|
* Background Repeat
|
|
@@ -4787,7 +4789,7 @@ const p1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, m1 = B1, I
|
|
|
4787
4789
|
* @see https://tailwindcss.com/docs/mask-position
|
|
4788
4790
|
*/
|
|
4789
4791
|
"mask-position": [{
|
|
4790
|
-
mask:
|
|
4792
|
+
mask: E()
|
|
4791
4793
|
}],
|
|
4792
4794
|
/**
|
|
4793
4795
|
* Mask Repeat
|
|
@@ -5855,14 +5857,14 @@ function hd() {
|
|
|
5855
5857
|
</div>
|
|
5856
5858
|
`;
|
|
5857
5859
|
}
|
|
5858
|
-
var pd = Object.defineProperty,
|
|
5860
|
+
var pd = Object.defineProperty, x = (t, e, r, n) => {
|
|
5859
5861
|
for (var d = void 0, o = t.length - 1, i; o >= 0; o--)
|
|
5860
5862
|
(i = t[o]) && (d = i(e, r, d) || d);
|
|
5861
5863
|
return d && pd(e, r, d), d;
|
|
5862
5864
|
};
|
|
5863
|
-
class
|
|
5865
|
+
class _ extends Ce {
|
|
5864
5866
|
constructor() {
|
|
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";
|
|
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._submitError = null, this._paymentMethods = [], this._methodsLoading = !0, this._methodsError = null, this._initialized = !1, this._t = ot("fr"), this._apiUrl = "https://localhost:4004";
|
|
5866
5868
|
}
|
|
5867
5869
|
createRenderRoot() {
|
|
5868
5870
|
return this;
|
|
@@ -5929,8 +5931,8 @@ class w extends Ce {
|
|
|
5929
5931
|
_onCountryChange(e) {
|
|
5930
5932
|
this._country = e.target.value;
|
|
5931
5933
|
}
|
|
5932
|
-
|
|
5933
|
-
e.preventDefault(), this._loading = !0;
|
|
5934
|
+
_onSubmit(e) {
|
|
5935
|
+
e.preventDefault(), this._loading = !0, this._submitError = null;
|
|
5934
5936
|
const r = this._method.indexOf("_"), n = r >= 0 ? this._method.substring(0, r) : this._method, d = r >= 0 ? this._method.substring(r + 1) : "", o = {
|
|
5935
5937
|
order_reference: this._paymentReference,
|
|
5936
5938
|
channel: this._channel === "email" ? "email" : this._channel === "sms" ? "sms" : "link",
|
|
@@ -5939,23 +5941,19 @@ class w extends Ce {
|
|
|
5939
5941
|
method: d,
|
|
5940
5942
|
customer_contact: this._channel === "email" ? this._email : this._channel === "sms" ? this._phone : this._email,
|
|
5941
5943
|
partner: n
|
|
5942
|
-
}
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
console.error(i);
|
|
5956
|
-
} finally {
|
|
5957
|
-
this._loading = !1;
|
|
5958
|
-
}
|
|
5944
|
+
}, i = new CustomEvent("request-to-pay", {
|
|
5945
|
+
detail: o,
|
|
5946
|
+
bubbles: !0,
|
|
5947
|
+
composed: !0,
|
|
5948
|
+
cancelable: !0
|
|
5949
|
+
});
|
|
5950
|
+
!this.dispatchEvent(i) || this.reportSuccess();
|
|
5951
|
+
}
|
|
5952
|
+
reportSuccess() {
|
|
5953
|
+
this._success = !0, this._loading = !1, this._submitError = null;
|
|
5954
|
+
}
|
|
5955
|
+
reportError(e) {
|
|
5956
|
+
this._submitError = e ?? this._t.submitError, this._loading = !1;
|
|
5959
5957
|
}
|
|
5960
5958
|
_onClose() {
|
|
5961
5959
|
this._success = !1, this.dispatchEvent(
|
|
@@ -6110,6 +6108,12 @@ class w extends Ce {
|
|
|
6110
6108
|
${at(n && this._t.phoneInvalid)}
|
|
6111
6109
|
</div>
|
|
6112
6110
|
` : 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}
|
|
6113
6117
|
${x1(
|
|
6114
6118
|
{
|
|
6115
6119
|
type: "submit",
|
|
@@ -6146,73 +6150,76 @@ class w extends Ce {
|
|
|
6146
6150
|
`;
|
|
6147
6151
|
}
|
|
6148
6152
|
}
|
|
6149
|
-
|
|
6153
|
+
x([
|
|
6150
6154
|
j({ type: String })
|
|
6151
|
-
],
|
|
6152
|
-
|
|
6155
|
+
], _.prototype, "token");
|
|
6156
|
+
x([
|
|
6153
6157
|
j({ type: String })
|
|
6154
|
-
],
|
|
6155
|
-
|
|
6158
|
+
], _.prototype, "currency");
|
|
6159
|
+
x([
|
|
6156
6160
|
j({ type: String, attribute: "default-amount" })
|
|
6157
|
-
],
|
|
6158
|
-
|
|
6161
|
+
], _.prototype, "defaultAmount");
|
|
6162
|
+
x([
|
|
6159
6163
|
j({ type: String, attribute: "default-reference" })
|
|
6160
|
-
],
|
|
6161
|
-
|
|
6164
|
+
], _.prototype, "defaultReference");
|
|
6165
|
+
x([
|
|
6162
6166
|
j({ type: Boolean, attribute: "read-only-amount" })
|
|
6163
|
-
],
|
|
6164
|
-
|
|
6167
|
+
], _.prototype, "readOnlyAmount");
|
|
6168
|
+
x([
|
|
6165
6169
|
j({ type: String, attribute: "customer-name" })
|
|
6166
|
-
],
|
|
6167
|
-
|
|
6170
|
+
], _.prototype, "customerName");
|
|
6171
|
+
x([
|
|
6168
6172
|
j({ type: String, attribute: "customer-email" })
|
|
6169
|
-
],
|
|
6170
|
-
|
|
6173
|
+
], _.prototype, "customerEmail");
|
|
6174
|
+
x([
|
|
6171
6175
|
j({ type: String, attribute: "customer-phone" })
|
|
6172
|
-
],
|
|
6173
|
-
|
|
6176
|
+
], _.prototype, "customerPhone");
|
|
6177
|
+
x([
|
|
6174
6178
|
j({ type: String })
|
|
6175
|
-
],
|
|
6176
|
-
|
|
6179
|
+
], _.prototype, "locale");
|
|
6180
|
+
x([
|
|
6177
6181
|
j({ type: String, attribute: "pay-client-ref" })
|
|
6178
|
-
],
|
|
6179
|
-
|
|
6182
|
+
], _.prototype, "payClientRef");
|
|
6183
|
+
x([
|
|
6184
|
+
F()
|
|
6185
|
+
], _.prototype, "_amount");
|
|
6186
|
+
x([
|
|
6180
6187
|
F()
|
|
6181
|
-
],
|
|
6182
|
-
|
|
6188
|
+
], _.prototype, "_email");
|
|
6189
|
+
x([
|
|
6183
6190
|
F()
|
|
6184
|
-
],
|
|
6185
|
-
|
|
6191
|
+
], _.prototype, "_phone");
|
|
6192
|
+
x([
|
|
6186
6193
|
F()
|
|
6187
|
-
],
|
|
6188
|
-
|
|
6194
|
+
], _.prototype, "_paymentReference");
|
|
6195
|
+
x([
|
|
6189
6196
|
F()
|
|
6190
|
-
],
|
|
6191
|
-
|
|
6197
|
+
], _.prototype, "_method");
|
|
6198
|
+
x([
|
|
6192
6199
|
F()
|
|
6193
|
-
],
|
|
6194
|
-
|
|
6200
|
+
], _.prototype, "_channel");
|
|
6201
|
+
x([
|
|
6195
6202
|
F()
|
|
6196
|
-
],
|
|
6197
|
-
|
|
6203
|
+
], _.prototype, "_country");
|
|
6204
|
+
x([
|
|
6198
6205
|
F()
|
|
6199
|
-
],
|
|
6200
|
-
|
|
6206
|
+
], _.prototype, "_loading");
|
|
6207
|
+
x([
|
|
6201
6208
|
F()
|
|
6202
|
-
],
|
|
6203
|
-
|
|
6209
|
+
], _.prototype, "_success");
|
|
6210
|
+
x([
|
|
6204
6211
|
F()
|
|
6205
|
-
],
|
|
6206
|
-
|
|
6212
|
+
], _.prototype, "_submitError");
|
|
6213
|
+
x([
|
|
6207
6214
|
F()
|
|
6208
|
-
],
|
|
6209
|
-
|
|
6215
|
+
], _.prototype, "_paymentMethods");
|
|
6216
|
+
x([
|
|
6210
6217
|
F()
|
|
6211
|
-
],
|
|
6212
|
-
|
|
6218
|
+
], _.prototype, "_methodsLoading");
|
|
6219
|
+
x([
|
|
6213
6220
|
F()
|
|
6214
|
-
],
|
|
6215
|
-
customElements.get("openhive-pay") || customElements.define("openhive-pay",
|
|
6221
|
+
], _.prototype, "_methodsError");
|
|
6222
|
+
customElements.get("openhive-pay") || customElements.define("openhive-pay", _);
|
|
6216
6223
|
export {
|
|
6217
|
-
|
|
6224
|
+
_ as PaymentWidget
|
|
6218
6225
|
};
|