@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/react.js
CHANGED
|
@@ -25,12 +25,12 @@ const u2 = (t) => new c2(typeof t == "string" ? t : t + "", void 0, S1), f2 = (t
|
|
|
25
25
|
const n = document.createElement("style"), d = Ge.litNonce;
|
|
26
26
|
d !== void 0 && n.setAttribute("nonce", d), n.textContent = r.cssText, t.appendChild(n);
|
|
27
27
|
}
|
|
28
|
-
},
|
|
28
|
+
}, Mt = mt ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
29
29
|
let r = "";
|
|
30
30
|
for (const n of e.cssRules) r += n.cssText;
|
|
31
31
|
return u2(r);
|
|
32
32
|
})(t) : t;
|
|
33
|
-
const { is: h2, defineProperty: p2, getOwnPropertyDescriptor: m2, getOwnPropertyNames: y2, getOwnPropertySymbols: g2, getPrototypeOf: b2 } = Object, qe = globalThis,
|
|
33
|
+
const { is: h2, defineProperty: p2, getOwnPropertyDescriptor: m2, getOwnPropertyNames: y2, getOwnPropertySymbols: g2, getPrototypeOf: b2 } = Object, qe = globalThis, Tt = qe.trustedTypes, v2 = Tt ? Tt.emptyScript : "", C2 = qe.reactiveElementPolyfillSupport, ve = (t, e) => t, Be = { toAttribute(t, e) {
|
|
34
34
|
switch (e) {
|
|
35
35
|
case Boolean:
|
|
36
36
|
t = t ? v2 : null;
|
|
@@ -114,8 +114,8 @@ let he = class extends HTMLElement {
|
|
|
114
114
|
const r = [];
|
|
115
115
|
if (Array.isArray(e)) {
|
|
116
116
|
const n = new Set(e.flat(1 / 0).reverse());
|
|
117
|
-
for (const d of n) r.unshift(
|
|
118
|
-
} else e !== void 0 && r.push(
|
|
117
|
+
for (const d of n) r.unshift(Mt(d));
|
|
118
|
+
} else e !== void 0 && r.push(Mt(e));
|
|
119
119
|
return r;
|
|
120
120
|
}
|
|
121
121
|
static _$Eu(e, r) {
|
|
@@ -244,7 +244,7 @@ let he = class extends HTMLElement {
|
|
|
244
244
|
he.elementStyles = [], he.shadowRootOptions = { mode: "open" }, he[ve("elementProperties")] = /* @__PURE__ */ new Map(), he[ve("finalized")] = /* @__PURE__ */ new Map(), C2?.({ ReactiveElement: he }), (qe.reactiveElementVersions ??= []).push("2.1.2");
|
|
245
245
|
const gt = globalThis, Ft = (t) => t, ze = gt.trustedTypes, Dt = ze ? ze.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, N1 = "$lit$", te = `lit$${Math.random().toFixed(9).slice(2)}$`, k1 = "?" + te, _2 = `<${k1}>`, se = document, _e = () => se.createComment(""), we = (t) => t === null || typeof t != "object" && typeof t != "function", bt = Array.isArray, w2 = (t) => bt(t) || typeof t?.[Symbol.iterator] == "function", rt = `[
|
|
246
246
|
\f\r]`, ge = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ht = /-->/g, Vt = />/g, oe = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
247
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Ut = /"/g, O1 = /^(?:script|style|textarea|title)$/i, x2 = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }),
|
|
247
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Ut = /"/g, O1 = /^(?:script|style|textarea|title)$/i, x2 = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), w = x2(1), le = /* @__PURE__ */ Symbol.for("lit-noChange"), _ = /* @__PURE__ */ Symbol.for("lit-nothing"), Gt = /* @__PURE__ */ new WeakMap(), ae = se.createTreeWalker(se, 129);
|
|
248
248
|
function R1(t, e) {
|
|
249
249
|
if (!bt(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
250
250
|
return Dt !== void 0 ? Dt.createHTML(e) : e;
|
|
@@ -494,7 +494,7 @@ Ce._$litElement$ = !0, Ce.finalized = !0, vt.litElementHydrateSupport?.({ LitEle
|
|
|
494
494
|
const I2 = vt.litElementPolyfillSupport;
|
|
495
495
|
I2?.({ LitElement: Ce });
|
|
496
496
|
(vt.litElementVersions ??= []).push("4.2.2");
|
|
497
|
-
const
|
|
497
|
+
const M2 = { attribute: !0, type: String, converter: Be, reflect: !1, hasChanged: yt }, T2 = (t = M2, e, r) => {
|
|
498
498
|
const { kind: n, metadata: d } = r;
|
|
499
499
|
let o = globalThis.litPropertyMetadata.get(d);
|
|
500
500
|
if (o === void 0 && globalThis.litPropertyMetadata.set(d, o = /* @__PURE__ */ new Map()), n === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(r.name, t), n === "accessor") {
|
|
@@ -515,14 +515,14 @@ const T2 = { attribute: !0, type: String, converter: Be, reflect: !1, hasChanged
|
|
|
515
515
|
}
|
|
516
516
|
throw Error("Unsupported decorator location: " + n);
|
|
517
517
|
};
|
|
518
|
-
function
|
|
519
|
-
return (e, r) => typeof r == "object" ?
|
|
518
|
+
function z(t) {
|
|
519
|
+
return (e, r) => typeof r == "object" ? T2(t, e, r) : ((n, d, o) => {
|
|
520
520
|
const i = d.hasOwnProperty(o);
|
|
521
521
|
return d.constructor.createProperty(o, n), i ? Object.getOwnPropertyDescriptor(d, o) : void 0;
|
|
522
522
|
})(t, e, r);
|
|
523
523
|
}
|
|
524
524
|
function H(t) {
|
|
525
|
-
return
|
|
525
|
+
return z({ ...t, state: !0, attribute: !1 });
|
|
526
526
|
}
|
|
527
527
|
const L2 = `<svg xmlns="http://www.w3.org/2000/svg" width="92" height="30" viewBox="0 0 92 30" fill="currentColor"><path d="M0.666626 7H14C15.4733 7 16.6666 8.19333 16.6666 9.66667V23H3.33329C1.85996 23 0.666626 21.8067 0.666626 20.3333V13.6667H7.33329V19H9.99996V11H0.666626V7Z"></path><path d="M75.3333 7V23H82V11H84.6666V23H91.3333V9.66667C91.3333 8.19333 90.14 7 88.6666 7H75.3333Z"></path><path d="M38 29.6667H51.3333C52.8067 29.6667 54 28.4733 54 27V7H47.3333V19H44.6667V7H38V20.3333C38 21.8067 39.1933 23 40.6667 23H47.3333V25.6667H38V29.6667Z"></path><path d="M72.6666 23H59.3333C57.86 23 56.6666 21.8067 56.6666 20.3333V7H70C71.4733 7 72.6666 8.19333 72.6666 9.66667V16.3333H66V11H63.3333V19H72.6666V23Z"></path><path d="M35.3333 0.333344V23H21.9999C20.5266 23 19.3333 21.8067 19.3333 20.3333V9.66668C19.3333 8.19334 20.5266 7.00001 21.9999 7.00001H25.9999V19H28.6666V0.333344H35.3333Z"></path></svg>
|
|
528
528
|
`, F2 = `<svg xmlns="http://www.w3.org/2000/svg" width="60" height="25" viewBox="0 0 60 25" fill="currentColor"><path fill-rule="evenodd" d="M59.6444 14.2813h-8.062c.1843 1.9296 1.5983 2.5476 3.2032 2.5476 1.6352 0 2.9534-.3656 4.0453-.9506v3.3179c-1.1186.7115-2.5964 1.1068-4.5645 1.1068-4.011 0-6.8218-2.5122-6.8218-7.4783 0-4.19441 2.3837-7.52509 6.3017-7.52509 3.912 0 5.9537 3.28038 5.9537 7.49819 0 .3982-.0372 1.261-.0556 1.4835Zm-5.9241-5.62407c-1.0294 0-2.1739.72812-2.1739 2.58387h4.2573c0-1.85362-1.0721-2.58387-2.0834-2.58387ZM40.9547 20.303c-1.4411 0-2.322-.6087-2.9133-1.0417l-.0088 4.6271-4.1181.8755-.0014-19.19053h3.7543l.0864 1.01784c.6035-.52914 1.6114-1.29157 3.2256-1.29162 2.8925 0 5.6162 2.6052 5.6162 7.39971 0 5.2327-2.6948 7.6037-5.6409 7.6037Zm-.959-11.35573c-.9453 0-1.5376.34559-1.9669.81586l.0245 6.11967c.3997.433.9763.7813 1.9424.7813 1.5231 0 2.5437-1.6575 2.5437-3.8745 0-2.1544-1.037-3.84233-2.5437-3.84233Zm-11.7602-3.3739h4.1341V20.0088h-4.1341V5.57337Zm0-4.694699L32.3696 0v3.35821l-4.1341.87868V.878671ZM23.9198 10.2223v9.7861h-4.1156V5.57296h3.6867l.1317 1.21751c1.0035-1.7722 3.0722-1.41321 3.6209-1.21594v3.78524c-.5242-.16908-2.2894-.42779-3.3237.86253Zm-8.5525 4.7221c0 2.4275 2.5988 1.6719 3.1263 1.4609v3.3522c-.5492.3013-1.5437.5458-2.8901.5458-2.4441 0-4.2773-1.7999-4.2773-4.2379l.0173-13.17658 4.0206-.85464.0032 3.5395h3.1278V9.0857h-3.1278v5.8588-.0001Zm-4.9069.7026c0 2.9645-2.31051 4.6562-5.73464 4.6562-1.41958 0-2.92289-.2761-4.453935-.9347v-3.9319c1.382085.7516 3.093705 1.315 4.457755 1.315.91864 0 1.53106-.2459 1.53106-1.0069C6.26064 13.7786 0 14.5192 0 9.95995 0 7.04457 2.27622 5.2998 5.61655 5.2998c1.36404 0 2.72806.20934 4.09208.75351V9.9317c-1.25265-.67618-2.84332-1.05979-4.09588-1.05979-.86296 0-1.44753.24965-1.44753.8924.0001 1.85329 6.29518.97249 6.29518 5.88279v-.0001Z" clip-rule="evenodd"></path></svg>
|
|
@@ -555,14 +555,14 @@ function G2(t) {
|
|
|
555
555
|
const {
|
|
556
556
|
baseUrl: g,
|
|
557
557
|
fetch: b = n,
|
|
558
|
-
Request:
|
|
559
|
-
headers:
|
|
558
|
+
Request: E = r,
|
|
559
|
+
headers: x,
|
|
560
560
|
params: v = {},
|
|
561
561
|
parseAs: L = "json",
|
|
562
562
|
querySerializer: F,
|
|
563
563
|
bodySerializer: V = o ?? z2,
|
|
564
|
-
body:
|
|
565
|
-
middleware:
|
|
564
|
+
body: j,
|
|
565
|
+
middleware: U = [],
|
|
566
566
|
...W
|
|
567
567
|
} = u || {};
|
|
568
568
|
let m = e;
|
|
@@ -572,14 +572,14 @@ function G2(t) {
|
|
|
572
572
|
...typeof d == "object" ? d : {},
|
|
573
573
|
...F
|
|
574
574
|
}));
|
|
575
|
-
const ce =
|
|
576
|
-
|
|
575
|
+
const ce = j === void 0 ? void 0 : V(
|
|
576
|
+
j,
|
|
577
577
|
// Note: we declare mergeHeaders() both here and below because it’s a bit of a chicken-or-egg situation:
|
|
578
578
|
// bodySerializer() needs all headers so we aren’t dropping ones set by the user, however,
|
|
579
579
|
// the result of this ALSO sets the lowest-priority content-type header. So we re-merge below,
|
|
580
580
|
// setting the content-type at the very beginning to be overwritten.
|
|
581
581
|
// Lastly, based on the way headers work, it’s not a simple “present-or-not” check becauase null intentionally un-sets headers.
|
|
582
|
-
zt(i,
|
|
582
|
+
zt(i, x, v.header)
|
|
583
583
|
), Ie = zt(
|
|
584
584
|
// with no body, we should not to set Content-Type
|
|
585
585
|
ce === void 0 || // if serialized body is FormData; browser will correctly set Content-Type & boundary expression
|
|
@@ -587,23 +587,23 @@ function G2(t) {
|
|
|
587
587
|
"Content-Type": "application/json"
|
|
588
588
|
},
|
|
589
589
|
i,
|
|
590
|
-
|
|
590
|
+
x,
|
|
591
591
|
v.header
|
|
592
|
-
), D = [...l, ...
|
|
592
|
+
), D = [...l, ...U], Me = {
|
|
593
593
|
redirect: "follow",
|
|
594
594
|
...s,
|
|
595
595
|
...W,
|
|
596
596
|
body: ce,
|
|
597
597
|
headers: Ie
|
|
598
598
|
};
|
|
599
|
-
let J,
|
|
599
|
+
let J, G, N = new E(
|
|
600
600
|
Z2($, { baseUrl: m, params: v, querySerializer: R }),
|
|
601
|
-
|
|
601
|
+
Me
|
|
602
602
|
), C;
|
|
603
603
|
for (const f in W)
|
|
604
604
|
f in N || (N[f] = W[f]);
|
|
605
605
|
if (D.length) {
|
|
606
|
-
J = U2(),
|
|
606
|
+
J = U2(), G = Object.freeze({
|
|
607
607
|
baseUrl: m,
|
|
608
608
|
fetch: b,
|
|
609
609
|
parseAs: L,
|
|
@@ -612,18 +612,18 @@ function G2(t) {
|
|
|
612
612
|
});
|
|
613
613
|
for (const f of D)
|
|
614
614
|
if (f && typeof f == "object" && typeof f.onRequest == "function") {
|
|
615
|
-
const
|
|
615
|
+
const S = await f.onRequest({
|
|
616
616
|
request: N,
|
|
617
617
|
schemaPath: $,
|
|
618
618
|
params: v,
|
|
619
|
-
options:
|
|
619
|
+
options: G,
|
|
620
620
|
id: J
|
|
621
621
|
});
|
|
622
|
-
if (
|
|
623
|
-
if (
|
|
624
|
-
N =
|
|
625
|
-
else if (
|
|
626
|
-
C =
|
|
622
|
+
if (S)
|
|
623
|
+
if (S instanceof E)
|
|
624
|
+
N = S;
|
|
625
|
+
else if (S instanceof Response) {
|
|
626
|
+
C = S;
|
|
627
627
|
break;
|
|
628
628
|
} else
|
|
629
629
|
throw new Error("onRequest: must return new Request() or Response() when modifying the request");
|
|
@@ -633,51 +633,51 @@ function G2(t) {
|
|
|
633
633
|
try {
|
|
634
634
|
C = await b(N, a);
|
|
635
635
|
} catch (f) {
|
|
636
|
-
let
|
|
636
|
+
let S = f;
|
|
637
637
|
if (D.length)
|
|
638
|
-
for (let
|
|
639
|
-
const de = D[
|
|
638
|
+
for (let Z = D.length - 1; Z >= 0; Z--) {
|
|
639
|
+
const de = D[Z];
|
|
640
640
|
if (de && typeof de == "object" && typeof de.onError == "function") {
|
|
641
641
|
const K = await de.onError({
|
|
642
642
|
request: N,
|
|
643
|
-
error:
|
|
643
|
+
error: S,
|
|
644
644
|
schemaPath: $,
|
|
645
645
|
params: v,
|
|
646
|
-
options:
|
|
646
|
+
options: G,
|
|
647
647
|
id: J
|
|
648
648
|
});
|
|
649
649
|
if (K) {
|
|
650
650
|
if (K instanceof Response) {
|
|
651
|
-
|
|
651
|
+
S = void 0, C = K;
|
|
652
652
|
break;
|
|
653
653
|
}
|
|
654
654
|
if (K instanceof Error) {
|
|
655
|
-
|
|
655
|
+
S = K;
|
|
656
656
|
continue;
|
|
657
657
|
}
|
|
658
658
|
throw new Error("onError: must return new Response() or instance of Error");
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
if (
|
|
663
|
-
throw
|
|
662
|
+
if (S)
|
|
663
|
+
throw S;
|
|
664
664
|
}
|
|
665
665
|
if (D.length)
|
|
666
666
|
for (let f = D.length - 1; f >= 0; f--) {
|
|
667
|
-
const
|
|
668
|
-
if (
|
|
669
|
-
const
|
|
667
|
+
const S = D[f];
|
|
668
|
+
if (S && typeof S == "object" && typeof S.onResponse == "function") {
|
|
669
|
+
const Z = await S.onResponse({
|
|
670
670
|
request: N,
|
|
671
671
|
response: C,
|
|
672
672
|
schemaPath: $,
|
|
673
673
|
params: v,
|
|
674
|
-
options:
|
|
674
|
+
options: G,
|
|
675
675
|
id: J
|
|
676
676
|
});
|
|
677
|
-
if (
|
|
678
|
-
if (!(
|
|
677
|
+
if (Z) {
|
|
678
|
+
if (!(Z instanceof Response))
|
|
679
679
|
throw new Error("onResponse: must return new Response() when modifying the response");
|
|
680
|
-
C =
|
|
680
|
+
C = Z;
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
}
|
|
@@ -690,8 +690,8 @@ function G2(t) {
|
|
|
690
690
|
if (L === "stream")
|
|
691
691
|
return C.body;
|
|
692
692
|
if (L === "json" && !ue) {
|
|
693
|
-
const
|
|
694
|
-
return
|
|
693
|
+
const S = await C.text();
|
|
694
|
+
return S ? JSON.parse(S) : void 0;
|
|
695
695
|
}
|
|
696
696
|
return await C[L]();
|
|
697
697
|
})(), response: C };
|
|
@@ -795,7 +795,7 @@ function I1(t, e, r) {
|
|
|
795
795
|
const o = n.join(d);
|
|
796
796
|
return r.style === "label" || r.style === "matrix" ? `${d}${o}` : o;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function M1(t, e, r) {
|
|
799
799
|
if (!Array.isArray(e))
|
|
800
800
|
return "";
|
|
801
801
|
if (r.explode === !1) {
|
|
@@ -829,7 +829,7 @@ function Bt(t) {
|
|
|
829
829
|
if (o.length === 0)
|
|
830
830
|
continue;
|
|
831
831
|
n.push(
|
|
832
|
-
|
|
832
|
+
M1(d, o, {
|
|
833
833
|
style: "form",
|
|
834
834
|
explode: !0,
|
|
835
835
|
...t?.array,
|
|
@@ -863,7 +863,7 @@ function B2(t, e) {
|
|
|
863
863
|
continue;
|
|
864
864
|
const a = e[d];
|
|
865
865
|
if (Array.isArray(a)) {
|
|
866
|
-
r = r.replace(n,
|
|
866
|
+
r = r.replace(n, M1(d, a, { style: i, explode: o }));
|
|
867
867
|
continue;
|
|
868
868
|
}
|
|
869
869
|
if (typeof a == "object") {
|
|
@@ -1000,7 +1000,7 @@ function er(t, e) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
var tr = "1.2.0", rr = "1.7.35", Kt = " ext. ", nr = /^\d+$/, I = /* @__PURE__ */ (function() {
|
|
1002
1002
|
function t(e) {
|
|
1003
|
-
Je(this, t),
|
|
1003
|
+
Je(this, t), T1(e), this.metadata = e, L1.call(this, e);
|
|
1004
1004
|
}
|
|
1005
1005
|
return Qe(t, [{
|
|
1006
1006
|
key: "getCountries",
|
|
@@ -1408,7 +1408,7 @@ function Xt(t, e) {
|
|
|
1408
1408
|
return t[9];
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function T1(t) {
|
|
1412
1412
|
if (!t)
|
|
1413
1413
|
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
1414
1414
|
if (!pe(t) || !pe(t.countries))
|
|
@@ -1531,7 +1531,7 @@ function mr(t, e, r) {
|
|
|
1531
1531
|
var n = new I(r);
|
|
1532
1532
|
return n.selectNumberingPlan(e), n.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
|
|
1533
1533
|
}
|
|
1534
|
-
var xt = 2, yr = 17, gr = 3,
|
|
1534
|
+
var xt = 2, yr = 17, gr = 3, B = "0-90-9٠-٩۰-۹", br = "-‐-―−ー-", vr = "//", Cr = "..", _r = " ", wr = "()()[]\\[\\]", xr = "~⁓∼~", Ze = "".concat(br).concat(vr).concat(Cr).concat(_r).concat(wr).concat(xr), Pt = "++", Pr = new RegExp("([" + B + "])");
|
|
1535
1535
|
function Er(t, e, r, n) {
|
|
1536
1536
|
if (e) {
|
|
1537
1537
|
var d = new I(n);
|
|
@@ -1708,10 +1708,10 @@ function H1(t, e, r, n, d) {
|
|
|
1708
1708
|
}
|
|
1709
1709
|
return {};
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Mr(t) {
|
|
1712
1712
|
return t.replace(new RegExp("[".concat(Ze, "]+"), "g"), " ").trim();
|
|
1713
1713
|
}
|
|
1714
|
-
var
|
|
1714
|
+
var Tr = /(\$\d)/;
|
|
1715
1715
|
function Lr(t, e, r) {
|
|
1716
1716
|
var n = r.useInternationalFormat, d = r.withNationalPrefix, o = t.replace(new RegExp(e.pattern()), n ? e.internationalFormat() : (
|
|
1717
1717
|
// This library doesn't use `domestic_carrier_code_formatting_rule`,
|
|
@@ -1727,9 +1727,9 @@ function Lr(t, e, r) {
|
|
|
1727
1727
|
// ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
|
|
1728
1728
|
// : format.format()
|
|
1729
1729
|
// )
|
|
1730
|
-
d && e.nationalPrefixFormattingRule() ? e.format().replace(
|
|
1730
|
+
d && e.nationalPrefixFormattingRule() ? e.format().replace(Tr, e.nationalPrefixFormattingRule()) : e.format()
|
|
1731
1731
|
));
|
|
1732
|
-
return n ?
|
|
1732
|
+
return n ? Mr(o) : o;
|
|
1733
1733
|
}
|
|
1734
1734
|
var Fr = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
1735
1735
|
function Dr(t, e, r) {
|
|
@@ -1740,13 +1740,13 @@ function Dr(t, e, r) {
|
|
|
1740
1740
|
return n.IDDPrefix();
|
|
1741
1741
|
}
|
|
1742
1742
|
var Hr = ";ext=", fe = function(e) {
|
|
1743
|
-
return "([".concat(
|
|
1743
|
+
return "([".concat(B, "]{1,").concat(e, "})");
|
|
1744
1744
|
};
|
|
1745
1745
|
function V1(t) {
|
|
1746
|
-
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 = Hr + fe(e), b = o + s + i + fe(e) + a,
|
|
1747
|
-
return g + "|" + b + "|" +
|
|
1746
|
+
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 = Hr + fe(e), b = o + s + i + fe(e) + a, E = o + l + i + fe(n) + a, x = c + fe(d) + "#", v = $ + u + i + fe(r) + a, L = $ + "(?:,)+" + i + fe(n) + a;
|
|
1747
|
+
return g + "|" + b + "|" + E + "|" + x + "|" + v + "|" + L;
|
|
1748
1748
|
}
|
|
1749
|
-
var Vr = "[" +
|
|
1749
|
+
var Vr = "[" + B + "]{" + xt + "}", jr = "[" + Pt + "]{0,1}(?:[" + Ze + "]*[" + B + "]){3,}[" + Ze + B + "]*", Ur = new RegExp("^[" + Pt + "]{0,1}(?:[" + Ze + "]*[" + B + "]){1,2}$", "i"), Gr = jr + // Phone number extensions
|
|
1750
1750
|
"(?:" + V1() + ")?", Br = new RegExp(
|
|
1751
1751
|
// Either a short two-digit-only phone number
|
|
1752
1752
|
"^" + Vr + "$|^" + Gr + "$",
|
|
@@ -1932,7 +1932,7 @@ var dn = /* @__PURE__ */ (function() {
|
|
|
1932
1932
|
throw new TypeError("`nationalNumber` argument is required");
|
|
1933
1933
|
if (typeof r != "string")
|
|
1934
1934
|
throw new TypeError("`nationalNumber` argument must be a string");
|
|
1935
|
-
|
|
1935
|
+
T1(n);
|
|
1936
1936
|
var s = an(e, n), l = s.country, c = s.countryCallingCode;
|
|
1937
1937
|
this.country = l, this.countryCallingCode = c, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
|
1938
1938
|
return n;
|
|
@@ -2239,7 +2239,7 @@ function d1(t) {
|
|
|
2239
2239
|
function _n(t, e, r) {
|
|
2240
2240
|
return t === "+" ? e ? void 0 : "+" : bn(t);
|
|
2241
2241
|
}
|
|
2242
|
-
var U1 = "+", wn = "[\\-\\.\\(\\)]?", o1 = "([" +
|
|
2242
|
+
var U1 = "+", wn = "[\\-\\.\\(\\)]?", o1 = "([" + B + "]|" + wn + ")", xn = "^\\" + U1 + o1 + "*[" + B + "]" + o1 + "*$", Pn = new RegExp(xn, "g"), ct = B, En = "[" + ct + "]+((\\-)*[" + ct + "])*", An = "a-zA-Z", Sn = "[" + An + "]+((\\-)*[" + ct + "])*", Nn = "^(" + En + "\\.)*" + Sn + "\\.?$", kn = new RegExp(Nn, "g"), i1 = "tel:", ut = ";phone-context=", On = ";isub=";
|
|
2243
2243
|
function Rn(t) {
|
|
2244
2244
|
var e = t.indexOf(ut);
|
|
2245
2245
|
if (e < 0)
|
|
@@ -2253,7 +2253,7 @@ function Rn(t) {
|
|
|
2253
2253
|
function In(t) {
|
|
2254
2254
|
return t === null ? !0 : t.length === 0 ? !1 : Pn.test(t) || kn.test(t);
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2256
|
+
function Mn(t, e) {
|
|
2257
2257
|
var r = e.extractFormattedPhoneNumber, n = Rn(t);
|
|
2258
2258
|
if (!In(n))
|
|
2259
2259
|
throw new X("NOT_A_NUMBER");
|
|
@@ -2271,7 +2271,7 @@ function Tn(t, e) {
|
|
|
2271
2271
|
if (s > 0 && (d = d.substring(0, s)), d !== "")
|
|
2272
2272
|
return d;
|
|
2273
2273
|
}
|
|
2274
|
-
var
|
|
2274
|
+
var Tn = 250, Ln = new RegExp("[" + Pt + B + "]"), Fn = new RegExp("[^" + B + "#]+$");
|
|
2275
2275
|
function Dn(t, e, r) {
|
|
2276
2276
|
if (e = e || {}, r = new I(r), e.defaultCountry && !r.hasCountry(e.defaultCountry))
|
|
2277
2277
|
throw e.v2 ? new X("INVALID_COUNTRY") : new Error("Unknown country: ".concat(e.defaultCountry));
|
|
@@ -2314,7 +2314,7 @@ function Dn(t, e, r) {
|
|
|
2314
2314
|
}
|
|
2315
2315
|
function Hn(t, e, r) {
|
|
2316
2316
|
if (t) {
|
|
2317
|
-
if (t.length >
|
|
2317
|
+
if (t.length > Tn) {
|
|
2318
2318
|
if (r)
|
|
2319
2319
|
throw new X("TOO_LONG");
|
|
2320
2320
|
return;
|
|
@@ -2327,7 +2327,7 @@ function Hn(t, e, r) {
|
|
|
2327
2327
|
}
|
|
2328
2328
|
}
|
|
2329
2329
|
function Vn(t, e, r) {
|
|
2330
|
-
var n =
|
|
2330
|
+
var n = Mn(t, {
|
|
2331
2331
|
extractFormattedPhoneNumber: function(i) {
|
|
2332
2332
|
return Hn(i, r, e);
|
|
2333
2333
|
}
|
|
@@ -2636,7 +2636,8 @@ const p1 = ["FR"], B1 = [
|
|
|
2636
2636
|
close: "Fermer",
|
|
2637
2637
|
textMessage: "SMS",
|
|
2638
2638
|
email: "Email",
|
|
2639
|
-
errorFallback: "Une erreur s'est produite lors du chargement du composant de paiement."
|
|
2639
|
+
errorFallback: "Une erreur s'est produite lors du chargement du composant de paiement.",
|
|
2640
|
+
submitError: "Une erreur est survenue lors de l'envoi du lien de paiement."
|
|
2640
2641
|
},
|
|
2641
2642
|
en: {
|
|
2642
2643
|
title: "Payment terminal",
|
|
@@ -2657,7 +2658,8 @@ const p1 = ["FR"], B1 = [
|
|
|
2657
2658
|
close: "Close",
|
|
2658
2659
|
textMessage: "SMS",
|
|
2659
2660
|
email: "Email",
|
|
2660
|
-
errorFallback: "Something went wrong while loading the payment component."
|
|
2661
|
+
errorFallback: "Something went wrong while loading the payment component.",
|
|
2662
|
+
submitError: "An error occurred while sending the payment link."
|
|
2661
2663
|
}
|
|
2662
2664
|
}, ot = (t) => m1[t] ?? m1.fr;
|
|
2663
2665
|
function z1(t) {
|
|
@@ -2687,14 +2689,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
2687
2689
|
}, {}), s = e == null || (n = e.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((l, c) => {
|
|
2688
2690
|
let { class: $, className: u, ...g } = c;
|
|
2689
2691
|
return Object.entries(g).every((b) => {
|
|
2690
|
-
let [
|
|
2691
|
-
return Array.isArray(
|
|
2692
|
+
let [E, x] = b;
|
|
2693
|
+
return Array.isArray(x) ? x.includes({
|
|
2692
2694
|
...o,
|
|
2693
2695
|
...a
|
|
2694
|
-
}[
|
|
2696
|
+
}[E]) : {
|
|
2695
2697
|
...o,
|
|
2696
2698
|
...a
|
|
2697
|
-
}[
|
|
2699
|
+
}[E] === x;
|
|
2698
2700
|
}) ? [
|
|
2699
2701
|
...l,
|
|
2700
2702
|
$,
|
|
@@ -2848,19 +2850,19 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
2848
2850
|
const o = [];
|
|
2849
2851
|
let i = 0, a = 0, s = 0, l;
|
|
2850
2852
|
const c = d.length;
|
|
2851
|
-
for (let
|
|
2852
|
-
const
|
|
2853
|
+
for (let E = 0; E < c; E++) {
|
|
2854
|
+
const x = d[E];
|
|
2853
2855
|
if (i === 0 && a === 0) {
|
|
2854
|
-
if (
|
|
2855
|
-
o.push(d.slice(s,
|
|
2856
|
+
if (x === v1) {
|
|
2857
|
+
o.push(d.slice(s, E)), s = E + 1;
|
|
2856
2858
|
continue;
|
|
2857
2859
|
}
|
|
2858
|
-
if (
|
|
2859
|
-
l =
|
|
2860
|
+
if (x === "/") {
|
|
2861
|
+
l = E;
|
|
2860
2862
|
continue;
|
|
2861
2863
|
}
|
|
2862
2864
|
}
|
|
2863
|
-
|
|
2865
|
+
x === "[" ? i++ : x === "]" ? i-- : x === "(" ? a++ : x === ")" && a--;
|
|
2864
2866
|
}
|
|
2865
2867
|
const $ = o.length === 0 ? d : d.slice(s);
|
|
2866
2868
|
let u = $, g = !1;
|
|
@@ -2918,15 +2920,15 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
2918
2920
|
modifiers: u,
|
|
2919
2921
|
hasImportantModifier: g,
|
|
2920
2922
|
baseClassName: b,
|
|
2921
|
-
maybePostfixModifierPosition:
|
|
2923
|
+
maybePostfixModifierPosition: E
|
|
2922
2924
|
} = r(c);
|
|
2923
2925
|
if ($) {
|
|
2924
2926
|
s = c + (s.length > 0 ? " " + s : s);
|
|
2925
2927
|
continue;
|
|
2926
2928
|
}
|
|
2927
|
-
let
|
|
2929
|
+
let x = !!E, v = n(x ? b.substring(0, E) : b);
|
|
2928
2930
|
if (!v) {
|
|
2929
|
-
if (!
|
|
2931
|
+
if (!x) {
|
|
2930
2932
|
s = c + (s.length > 0 ? " " + s : s);
|
|
2931
2933
|
continue;
|
|
2932
2934
|
}
|
|
@@ -2934,15 +2936,15 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
2934
2936
|
s = c + (s.length > 0 ? " " + s : s);
|
|
2935
2937
|
continue;
|
|
2936
2938
|
}
|
|
2937
|
-
|
|
2939
|
+
x = !1;
|
|
2938
2940
|
}
|
|
2939
2941
|
const L = u.length === 0 ? "" : u.length === 1 ? u[0] : o(u).join(":"), F = g ? L + ft : L, V = F + v;
|
|
2940
2942
|
if (i.indexOf(V) > -1)
|
|
2941
2943
|
continue;
|
|
2942
2944
|
i.push(V);
|
|
2943
|
-
const
|
|
2944
|
-
for (let
|
|
2945
|
-
const W =
|
|
2945
|
+
const j = d(v, x);
|
|
2946
|
+
for (let U = 0; U < j.length; ++U) {
|
|
2947
|
+
const W = j[U];
|
|
2946
2948
|
i.push(F + W);
|
|
2947
2949
|
}
|
|
2948
2950
|
s = c + (s.length > 0 ? " " + s : s);
|
|
@@ -2973,10 +2975,10 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
2973
2975
|
return d(s, c), c;
|
|
2974
2976
|
};
|
|
2975
2977
|
return o = i, (...s) => o(R0(...s));
|
|
2976
|
-
},
|
|
2977
|
-
const e = (r) => r[t] ||
|
|
2978
|
+
}, M0 = [], k = (t) => {
|
|
2979
|
+
const e = (r) => r[t] || M0;
|
|
2978
2980
|
return e.isThemeGetter = !0, e;
|
|
2979
|
-
}, Y1 = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, J1 = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
2981
|
+
}, Y1 = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, J1 = /^\((?:(\w[\w-]*):)?(.+)\)$/i, T0 = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, L0 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, F0 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, D0 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, H0 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, V0 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Q = (t) => T0.test(t), y = (t) => !!t && !Number.isNaN(Number(t)), ee = (t) => !!t && Number.isInteger(Number(t)), it = (t) => t.endsWith("%") && y(t.slice(0, -1)), q = (t) => L0.test(t), Q1 = () => !0, j0 = (t) => (
|
|
2980
2982
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
2981
2983
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2982
2984
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
@@ -2988,7 +2990,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
2988
2990
|
const n = J1.exec(t);
|
|
2989
2991
|
return n ? n[1] ? e(n[1]) : r : !1;
|
|
2990
2992
|
}, e2 = (t) => t === "position" || t === "percentage", t2 = (t) => t === "image" || t === "url", r2 = (t) => t === "length" || t === "size" || t === "bg-size", n2 = (t) => t === "length", Q0 = (t) => t === "number", d2 = (t) => t === "family-name", o2 = (t) => t === "number" || t === "weight", i2 = (t) => t === "shadow", ed = () => {
|
|
2991
|
-
const t = k("color"), e = k("font"), r = k("text"), n = k("font-weight"), d = k("tracking"), o = k("leading"), i = k("breakpoint"), a = k("container"), s = k("spacing"), l = k("radius"), c = k("shadow"), $ = k("inset-shadow"), u = k("text-shadow"), g = k("drop-shadow"), b = k("blur"),
|
|
2993
|
+
const t = k("color"), e = k("font"), r = k("text"), n = k("font-weight"), d = k("tracking"), o = k("leading"), i = k("breakpoint"), a = k("container"), s = k("spacing"), l = k("radius"), c = k("shadow"), $ = k("inset-shadow"), u = k("text-shadow"), g = k("drop-shadow"), b = k("blur"), E = k("perspective"), x = k("aspect"), v = k("ease"), L = k("animate"), F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [
|
|
2992
2994
|
"center",
|
|
2993
2995
|
"top",
|
|
2994
2996
|
"bottom",
|
|
@@ -3006,15 +3008,15 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3006
3008
|
"bottom-left",
|
|
3007
3009
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
3008
3010
|
"left-bottom"
|
|
3009
|
-
],
|
|
3011
|
+
], j = () => [...V(), p, h], U = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], m = () => [p, h, s], R = () => [Q, "full", "auto", ...m()], ce = () => [ee, "none", "subgrid", p, h], Ie = () => ["auto", {
|
|
3010
3012
|
span: ["full", ee, p, h]
|
|
3011
|
-
}, ee, p, h], D = () => [ee, "auto", p, h],
|
|
3013
|
+
}, ee, p, h], D = () => [ee, "auto", p, h], Me = () => ["auto", "min", "max", "fr", p, h], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], N = () => ["auto", ...m()], C = () => [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], S = () => [...V(), x1, w1, {
|
|
3012
3014
|
position: [p, h]
|
|
3013
|
-
}],
|
|
3015
|
+
}], Z = () => ["no-repeat", {
|
|
3014
3016
|
repeat: ["", "x", "y", "space", "round"]
|
|
3015
3017
|
}], de = () => ["auto", "cover", "contain", X0, z0, {
|
|
3016
3018
|
size: [p, h]
|
|
3017
|
-
}], K = () => [it, be, ie],
|
|
3019
|
+
}], K = () => [it, be, ie], M = () => [
|
|
3018
3020
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3019
3021
|
"",
|
|
3020
3022
|
"none",
|
|
@@ -3022,7 +3024,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3022
3024
|
l,
|
|
3023
3025
|
p,
|
|
3024
3026
|
h
|
|
3025
|
-
],
|
|
3027
|
+
], T = () => ["", y, be, ie], Te = () => ["solid", "dashed", "dotted", "double"], Nt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => [y, it, x1, w1], kt = () => [
|
|
3026
3028
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3027
3029
|
"",
|
|
3028
3030
|
"none",
|
|
@@ -3062,7 +3064,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3062
3064
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
3063
3065
|
*/
|
|
3064
3066
|
aspect: [{
|
|
3065
|
-
aspect: ["auto", "square", Q, h, p,
|
|
3067
|
+
aspect: ["auto", "square", Q, h, p, x]
|
|
3066
3068
|
}],
|
|
3067
3069
|
/**
|
|
3068
3070
|
* Container
|
|
@@ -3153,28 +3155,28 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3153
3155
|
* @see https://tailwindcss.com/docs/object-position
|
|
3154
3156
|
*/
|
|
3155
3157
|
"object-position": [{
|
|
3156
|
-
object:
|
|
3158
|
+
object: j()
|
|
3157
3159
|
}],
|
|
3158
3160
|
/**
|
|
3159
3161
|
* Overflow
|
|
3160
3162
|
* @see https://tailwindcss.com/docs/overflow
|
|
3161
3163
|
*/
|
|
3162
3164
|
overflow: [{
|
|
3163
|
-
overflow:
|
|
3165
|
+
overflow: U()
|
|
3164
3166
|
}],
|
|
3165
3167
|
/**
|
|
3166
3168
|
* Overflow X
|
|
3167
3169
|
* @see https://tailwindcss.com/docs/overflow
|
|
3168
3170
|
*/
|
|
3169
3171
|
"overflow-x": [{
|
|
3170
|
-
"overflow-x":
|
|
3172
|
+
"overflow-x": U()
|
|
3171
3173
|
}],
|
|
3172
3174
|
/**
|
|
3173
3175
|
* Overflow Y
|
|
3174
3176
|
* @see https://tailwindcss.com/docs/overflow
|
|
3175
3177
|
*/
|
|
3176
3178
|
"overflow-y": [{
|
|
3177
|
-
"overflow-y":
|
|
3179
|
+
"overflow-y": U()
|
|
3178
3180
|
}],
|
|
3179
3181
|
/**
|
|
3180
3182
|
* Overscroll Behavior
|
|
@@ -3423,14 +3425,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3423
3425
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
3424
3426
|
*/
|
|
3425
3427
|
"auto-cols": [{
|
|
3426
|
-
"auto-cols":
|
|
3428
|
+
"auto-cols": Me()
|
|
3427
3429
|
}],
|
|
3428
3430
|
/**
|
|
3429
3431
|
* Grid Auto Rows
|
|
3430
3432
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
3431
3433
|
*/
|
|
3432
3434
|
"auto-rows": [{
|
|
3433
|
-
"auto-rows":
|
|
3435
|
+
"auto-rows": Me()
|
|
3434
3436
|
}],
|
|
3435
3437
|
/**
|
|
3436
3438
|
* Gap
|
|
@@ -3465,14 +3467,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3465
3467
|
* @see https://tailwindcss.com/docs/justify-items
|
|
3466
3468
|
*/
|
|
3467
3469
|
"justify-items": [{
|
|
3468
|
-
"justify-items": [...
|
|
3470
|
+
"justify-items": [...G(), "normal"]
|
|
3469
3471
|
}],
|
|
3470
3472
|
/**
|
|
3471
3473
|
* Justify Self
|
|
3472
3474
|
* @see https://tailwindcss.com/docs/justify-self
|
|
3473
3475
|
*/
|
|
3474
3476
|
"justify-self": [{
|
|
3475
|
-
"justify-self": ["auto", ...
|
|
3477
|
+
"justify-self": ["auto", ...G()]
|
|
3476
3478
|
}],
|
|
3477
3479
|
/**
|
|
3478
3480
|
* Align Content
|
|
@@ -3486,7 +3488,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3486
3488
|
* @see https://tailwindcss.com/docs/align-items
|
|
3487
3489
|
*/
|
|
3488
3490
|
"align-items": [{
|
|
3489
|
-
items: [...
|
|
3491
|
+
items: [...G(), {
|
|
3490
3492
|
baseline: ["", "last"]
|
|
3491
3493
|
}]
|
|
3492
3494
|
}],
|
|
@@ -3495,7 +3497,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3495
3497
|
* @see https://tailwindcss.com/docs/align-self
|
|
3496
3498
|
*/
|
|
3497
3499
|
"align-self": [{
|
|
3498
|
-
self: ["auto", ...
|
|
3500
|
+
self: ["auto", ...G(), {
|
|
3499
3501
|
baseline: ["", "last"]
|
|
3500
3502
|
}]
|
|
3501
3503
|
}],
|
|
@@ -3511,14 +3513,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3511
3513
|
* @see https://tailwindcss.com/docs/place-items
|
|
3512
3514
|
*/
|
|
3513
3515
|
"place-items": [{
|
|
3514
|
-
"place-items": [...
|
|
3516
|
+
"place-items": [...G(), "baseline"]
|
|
3515
3517
|
}],
|
|
3516
3518
|
/**
|
|
3517
3519
|
* Place Self
|
|
3518
3520
|
* @see https://tailwindcss.com/docs/place-self
|
|
3519
3521
|
*/
|
|
3520
3522
|
"place-self": [{
|
|
3521
|
-
"place-self": ["auto", ...
|
|
3523
|
+
"place-self": ["auto", ...G()]
|
|
3522
3524
|
}],
|
|
3523
3525
|
// Spacing
|
|
3524
3526
|
/**
|
|
@@ -3966,7 +3968,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3966
3968
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
3967
3969
|
*/
|
|
3968
3970
|
"text-decoration-style": [{
|
|
3969
|
-
decoration: [...
|
|
3971
|
+
decoration: [...Te(), "wavy"]
|
|
3970
3972
|
}],
|
|
3971
3973
|
/**
|
|
3972
3974
|
* Text Decoration Thickness
|
|
@@ -4084,14 +4086,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4084
4086
|
* @see https://tailwindcss.com/docs/background-position
|
|
4085
4087
|
*/
|
|
4086
4088
|
"bg-position": [{
|
|
4087
|
-
bg:
|
|
4089
|
+
bg: S()
|
|
4088
4090
|
}],
|
|
4089
4091
|
/**
|
|
4090
4092
|
* Background Repeat
|
|
4091
4093
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
4092
4094
|
*/
|
|
4093
4095
|
"bg-repeat": [{
|
|
4094
|
-
bg:
|
|
4096
|
+
bg: Z()
|
|
4095
4097
|
}],
|
|
4096
4098
|
/**
|
|
4097
4099
|
* Background Size
|
|
@@ -4170,189 +4172,189 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4170
4172
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4171
4173
|
*/
|
|
4172
4174
|
rounded: [{
|
|
4173
|
-
rounded:
|
|
4175
|
+
rounded: M()
|
|
4174
4176
|
}],
|
|
4175
4177
|
/**
|
|
4176
4178
|
* Border Radius Start
|
|
4177
4179
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4178
4180
|
*/
|
|
4179
4181
|
"rounded-s": [{
|
|
4180
|
-
"rounded-s":
|
|
4182
|
+
"rounded-s": M()
|
|
4181
4183
|
}],
|
|
4182
4184
|
/**
|
|
4183
4185
|
* Border Radius End
|
|
4184
4186
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4185
4187
|
*/
|
|
4186
4188
|
"rounded-e": [{
|
|
4187
|
-
"rounded-e":
|
|
4189
|
+
"rounded-e": M()
|
|
4188
4190
|
}],
|
|
4189
4191
|
/**
|
|
4190
4192
|
* Border Radius Top
|
|
4191
4193
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4192
4194
|
*/
|
|
4193
4195
|
"rounded-t": [{
|
|
4194
|
-
"rounded-t":
|
|
4196
|
+
"rounded-t": M()
|
|
4195
4197
|
}],
|
|
4196
4198
|
/**
|
|
4197
4199
|
* Border Radius Right
|
|
4198
4200
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4199
4201
|
*/
|
|
4200
4202
|
"rounded-r": [{
|
|
4201
|
-
"rounded-r":
|
|
4203
|
+
"rounded-r": M()
|
|
4202
4204
|
}],
|
|
4203
4205
|
/**
|
|
4204
4206
|
* Border Radius Bottom
|
|
4205
4207
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4206
4208
|
*/
|
|
4207
4209
|
"rounded-b": [{
|
|
4208
|
-
"rounded-b":
|
|
4210
|
+
"rounded-b": M()
|
|
4209
4211
|
}],
|
|
4210
4212
|
/**
|
|
4211
4213
|
* Border Radius Left
|
|
4212
4214
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4213
4215
|
*/
|
|
4214
4216
|
"rounded-l": [{
|
|
4215
|
-
"rounded-l":
|
|
4217
|
+
"rounded-l": M()
|
|
4216
4218
|
}],
|
|
4217
4219
|
/**
|
|
4218
4220
|
* Border Radius Start Start
|
|
4219
4221
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4220
4222
|
*/
|
|
4221
4223
|
"rounded-ss": [{
|
|
4222
|
-
"rounded-ss":
|
|
4224
|
+
"rounded-ss": M()
|
|
4223
4225
|
}],
|
|
4224
4226
|
/**
|
|
4225
4227
|
* Border Radius Start End
|
|
4226
4228
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4227
4229
|
*/
|
|
4228
4230
|
"rounded-se": [{
|
|
4229
|
-
"rounded-se":
|
|
4231
|
+
"rounded-se": M()
|
|
4230
4232
|
}],
|
|
4231
4233
|
/**
|
|
4232
4234
|
* Border Radius End End
|
|
4233
4235
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4234
4236
|
*/
|
|
4235
4237
|
"rounded-ee": [{
|
|
4236
|
-
"rounded-ee":
|
|
4238
|
+
"rounded-ee": M()
|
|
4237
4239
|
}],
|
|
4238
4240
|
/**
|
|
4239
4241
|
* Border Radius End Start
|
|
4240
4242
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4241
4243
|
*/
|
|
4242
4244
|
"rounded-es": [{
|
|
4243
|
-
"rounded-es":
|
|
4245
|
+
"rounded-es": M()
|
|
4244
4246
|
}],
|
|
4245
4247
|
/**
|
|
4246
4248
|
* Border Radius Top Left
|
|
4247
4249
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4248
4250
|
*/
|
|
4249
4251
|
"rounded-tl": [{
|
|
4250
|
-
"rounded-tl":
|
|
4252
|
+
"rounded-tl": M()
|
|
4251
4253
|
}],
|
|
4252
4254
|
/**
|
|
4253
4255
|
* Border Radius Top Right
|
|
4254
4256
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4255
4257
|
*/
|
|
4256
4258
|
"rounded-tr": [{
|
|
4257
|
-
"rounded-tr":
|
|
4259
|
+
"rounded-tr": M()
|
|
4258
4260
|
}],
|
|
4259
4261
|
/**
|
|
4260
4262
|
* Border Radius Bottom Right
|
|
4261
4263
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4262
4264
|
*/
|
|
4263
4265
|
"rounded-br": [{
|
|
4264
|
-
"rounded-br":
|
|
4266
|
+
"rounded-br": M()
|
|
4265
4267
|
}],
|
|
4266
4268
|
/**
|
|
4267
4269
|
* Border Radius Bottom Left
|
|
4268
4270
|
* @see https://tailwindcss.com/docs/border-radius
|
|
4269
4271
|
*/
|
|
4270
4272
|
"rounded-bl": [{
|
|
4271
|
-
"rounded-bl":
|
|
4273
|
+
"rounded-bl": M()
|
|
4272
4274
|
}],
|
|
4273
4275
|
/**
|
|
4274
4276
|
* Border Width
|
|
4275
4277
|
* @see https://tailwindcss.com/docs/border-width
|
|
4276
4278
|
*/
|
|
4277
4279
|
"border-w": [{
|
|
4278
|
-
border:
|
|
4280
|
+
border: T()
|
|
4279
4281
|
}],
|
|
4280
4282
|
/**
|
|
4281
4283
|
* Border Width Inline
|
|
4282
4284
|
* @see https://tailwindcss.com/docs/border-width
|
|
4283
4285
|
*/
|
|
4284
4286
|
"border-w-x": [{
|
|
4285
|
-
"border-x":
|
|
4287
|
+
"border-x": T()
|
|
4286
4288
|
}],
|
|
4287
4289
|
/**
|
|
4288
4290
|
* Border Width Block
|
|
4289
4291
|
* @see https://tailwindcss.com/docs/border-width
|
|
4290
4292
|
*/
|
|
4291
4293
|
"border-w-y": [{
|
|
4292
|
-
"border-y":
|
|
4294
|
+
"border-y": T()
|
|
4293
4295
|
}],
|
|
4294
4296
|
/**
|
|
4295
4297
|
* Border Width Inline Start
|
|
4296
4298
|
* @see https://tailwindcss.com/docs/border-width
|
|
4297
4299
|
*/
|
|
4298
4300
|
"border-w-s": [{
|
|
4299
|
-
"border-s":
|
|
4301
|
+
"border-s": T()
|
|
4300
4302
|
}],
|
|
4301
4303
|
/**
|
|
4302
4304
|
* Border Width Inline End
|
|
4303
4305
|
* @see https://tailwindcss.com/docs/border-width
|
|
4304
4306
|
*/
|
|
4305
4307
|
"border-w-e": [{
|
|
4306
|
-
"border-e":
|
|
4308
|
+
"border-e": T()
|
|
4307
4309
|
}],
|
|
4308
4310
|
/**
|
|
4309
4311
|
* Border Width Block Start
|
|
4310
4312
|
* @see https://tailwindcss.com/docs/border-width
|
|
4311
4313
|
*/
|
|
4312
4314
|
"border-w-bs": [{
|
|
4313
|
-
"border-bs":
|
|
4315
|
+
"border-bs": T()
|
|
4314
4316
|
}],
|
|
4315
4317
|
/**
|
|
4316
4318
|
* Border Width Block End
|
|
4317
4319
|
* @see https://tailwindcss.com/docs/border-width
|
|
4318
4320
|
*/
|
|
4319
4321
|
"border-w-be": [{
|
|
4320
|
-
"border-be":
|
|
4322
|
+
"border-be": T()
|
|
4321
4323
|
}],
|
|
4322
4324
|
/**
|
|
4323
4325
|
* Border Width Top
|
|
4324
4326
|
* @see https://tailwindcss.com/docs/border-width
|
|
4325
4327
|
*/
|
|
4326
4328
|
"border-w-t": [{
|
|
4327
|
-
"border-t":
|
|
4329
|
+
"border-t": T()
|
|
4328
4330
|
}],
|
|
4329
4331
|
/**
|
|
4330
4332
|
* Border Width Right
|
|
4331
4333
|
* @see https://tailwindcss.com/docs/border-width
|
|
4332
4334
|
*/
|
|
4333
4335
|
"border-w-r": [{
|
|
4334
|
-
"border-r":
|
|
4336
|
+
"border-r": T()
|
|
4335
4337
|
}],
|
|
4336
4338
|
/**
|
|
4337
4339
|
* Border Width Bottom
|
|
4338
4340
|
* @see https://tailwindcss.com/docs/border-width
|
|
4339
4341
|
*/
|
|
4340
4342
|
"border-w-b": [{
|
|
4341
|
-
"border-b":
|
|
4343
|
+
"border-b": T()
|
|
4342
4344
|
}],
|
|
4343
4345
|
/**
|
|
4344
4346
|
* Border Width Left
|
|
4345
4347
|
* @see https://tailwindcss.com/docs/border-width
|
|
4346
4348
|
*/
|
|
4347
4349
|
"border-w-l": [{
|
|
4348
|
-
"border-l":
|
|
4350
|
+
"border-l": T()
|
|
4349
4351
|
}],
|
|
4350
4352
|
/**
|
|
4351
4353
|
* Divide Width X
|
|
4352
4354
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
4353
4355
|
*/
|
|
4354
4356
|
"divide-x": [{
|
|
4355
|
-
"divide-x":
|
|
4357
|
+
"divide-x": T()
|
|
4356
4358
|
}],
|
|
4357
4359
|
/**
|
|
4358
4360
|
* Divide Width X Reverse
|
|
@@ -4364,7 +4366,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4364
4366
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
4365
4367
|
*/
|
|
4366
4368
|
"divide-y": [{
|
|
4367
|
-
"divide-y":
|
|
4369
|
+
"divide-y": T()
|
|
4368
4370
|
}],
|
|
4369
4371
|
/**
|
|
4370
4372
|
* Divide Width Y Reverse
|
|
@@ -4376,14 +4378,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4376
4378
|
* @see https://tailwindcss.com/docs/border-style
|
|
4377
4379
|
*/
|
|
4378
4380
|
"border-style": [{
|
|
4379
|
-
border: [...
|
|
4381
|
+
border: [...Te(), "hidden", "none"]
|
|
4380
4382
|
}],
|
|
4381
4383
|
/**
|
|
4382
4384
|
* Divide Style
|
|
4383
4385
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
4384
4386
|
*/
|
|
4385
4387
|
"divide-style": [{
|
|
4386
|
-
divide: [...
|
|
4388
|
+
divide: [...Te(), "hidden", "none"]
|
|
4387
4389
|
}],
|
|
4388
4390
|
/**
|
|
4389
4391
|
* Border Color
|
|
@@ -4474,7 +4476,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4474
4476
|
* @see https://tailwindcss.com/docs/outline-style
|
|
4475
4477
|
*/
|
|
4476
4478
|
"outline-style": [{
|
|
4477
|
-
outline: [...
|
|
4479
|
+
outline: [...Te(), "none", "hidden"]
|
|
4478
4480
|
}],
|
|
4479
4481
|
/**
|
|
4480
4482
|
* Outline Offset
|
|
@@ -4540,7 +4542,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4540
4542
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
4541
4543
|
*/
|
|
4542
4544
|
"ring-w": [{
|
|
4543
|
-
ring:
|
|
4545
|
+
ring: T()
|
|
4544
4546
|
}],
|
|
4545
4547
|
/**
|
|
4546
4548
|
* Ring Width Inset
|
|
@@ -4579,7 +4581,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4579
4581
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
4580
4582
|
*/
|
|
4581
4583
|
"inset-ring-w": [{
|
|
4582
|
-
"inset-ring":
|
|
4584
|
+
"inset-ring": T()
|
|
4583
4585
|
}],
|
|
4584
4586
|
/**
|
|
4585
4587
|
* Inset Ring Color
|
|
@@ -4789,14 +4791,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4789
4791
|
* @see https://tailwindcss.com/docs/mask-position
|
|
4790
4792
|
*/
|
|
4791
4793
|
"mask-position": [{
|
|
4792
|
-
mask:
|
|
4794
|
+
mask: S()
|
|
4793
4795
|
}],
|
|
4794
4796
|
/**
|
|
4795
4797
|
* Mask Repeat
|
|
4796
4798
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
4797
4799
|
*/
|
|
4798
4800
|
"mask-repeat": [{
|
|
4799
|
-
mask:
|
|
4801
|
+
mask: Z()
|
|
4800
4802
|
}],
|
|
4801
4803
|
/**
|
|
4802
4804
|
* Mask Size
|
|
@@ -5093,14 +5095,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
5093
5095
|
* @see https://tailwindcss.com/docs/perspective
|
|
5094
5096
|
*/
|
|
5095
5097
|
perspective: [{
|
|
5096
|
-
perspective: [
|
|
5098
|
+
perspective: [E, p, h]
|
|
5097
5099
|
}],
|
|
5098
5100
|
/**
|
|
5099
5101
|
* Perspective Origin
|
|
5100
5102
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
5101
5103
|
*/
|
|
5102
5104
|
"perspective-origin": [{
|
|
5103
|
-
"perspective-origin":
|
|
5105
|
+
"perspective-origin": j()
|
|
5104
5106
|
}],
|
|
5105
5107
|
/**
|
|
5106
5108
|
* Rotate
|
|
@@ -5196,7 +5198,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
5196
5198
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
5197
5199
|
*/
|
|
5198
5200
|
"transform-origin": [{
|
|
5199
|
-
origin:
|
|
5201
|
+
origin: j()
|
|
5200
5202
|
}],
|
|
5201
5203
|
/**
|
|
5202
5204
|
* Transform Style
|
|
@@ -5660,7 +5662,7 @@ const nd = Re(
|
|
|
5660
5662
|
);
|
|
5661
5663
|
function E1(t, e) {
|
|
5662
5664
|
const { type: r = "button", variant: n, size: d, disabled: o, onClick: i } = t;
|
|
5663
|
-
return
|
|
5665
|
+
return w`
|
|
5664
5666
|
<button
|
|
5665
5667
|
type=${r}
|
|
5666
5668
|
class=${ht(nd({ variant: n, size: d }), t.class)}
|
|
@@ -5672,14 +5674,14 @@ function E1(t, e) {
|
|
|
5672
5674
|
`;
|
|
5673
5675
|
}
|
|
5674
5676
|
function je(t, e) {
|
|
5675
|
-
return
|
|
5677
|
+
return w`<label
|
|
5676
5678
|
for=${e}
|
|
5677
5679
|
class="pay:flex pay:items-center pay:gap-2 pay:text-sm pay:leading-none pay:font-medium pay:select-none"
|
|
5678
5680
|
>${t}</label
|
|
5679
5681
|
>`;
|
|
5680
5682
|
}
|
|
5681
5683
|
function at(t) {
|
|
5682
|
-
return t ?
|
|
5684
|
+
return t ? w`<div
|
|
5683
5685
|
role="alert"
|
|
5684
5686
|
class="pay:text-destructive pay:text-sm pay:font-normal"
|
|
5685
5687
|
>
|
|
@@ -5687,7 +5689,7 @@ function at(t) {
|
|
|
5687
5689
|
</div>` : _;
|
|
5688
5690
|
}
|
|
5689
5691
|
function dd(t = "") {
|
|
5690
|
-
return
|
|
5692
|
+
return w`<div
|
|
5691
5693
|
class="pay:bg-accent pay:animate-pulse pay:rounded-md ${t}"
|
|
5692
5694
|
></div>`;
|
|
5693
5695
|
}
|
|
@@ -5695,7 +5697,7 @@ function od() {
|
|
|
5695
5697
|
return dd("pay:h-16 pay:w-full pay:rounded-xl");
|
|
5696
5698
|
}
|
|
5697
5699
|
function id() {
|
|
5698
|
-
return
|
|
5700
|
+
return w`<svg
|
|
5699
5701
|
role="status"
|
|
5700
5702
|
aria-label="Loading"
|
|
5701
5703
|
class="pay:size-4 pay:animate-spin"
|
|
@@ -5748,7 +5750,7 @@ const $d = sd(pt), cd = Re(
|
|
|
5748
5750
|
"pay:pointer-events-none pay:absolute pay:size-2 pay:rounded-full pay:bg-primary pay:top-1/2 pay:left-1/2 pay:-translate-x-1/2 pay:-translate-y-1/2 pay:scale-0 pay:peer-checked:scale-100 pay:transition-transform pay:duration-200"
|
|
5749
5751
|
);
|
|
5750
5752
|
function a2(t) {
|
|
5751
|
-
return
|
|
5753
|
+
return w`
|
|
5752
5754
|
<div class="pay:relative pay:shrink-0 pay:w-4 pay:h-4">
|
|
5753
5755
|
<input
|
|
5754
5756
|
type="radio"
|
|
@@ -5777,14 +5779,14 @@ const s2 = Re(
|
|
|
5777
5779
|
}
|
|
5778
5780
|
);
|
|
5779
5781
|
function fd(t) {
|
|
5780
|
-
return
|
|
5782
|
+
return w`
|
|
5781
5783
|
<label class=${s2({ size: "method" })}>
|
|
5782
5784
|
${a2(t)}
|
|
5783
5785
|
<div
|
|
5784
5786
|
class="pay:flex pay:items-center pay:gap-1 pay:grow pay:justify-between pay:ml-2"
|
|
5785
5787
|
>
|
|
5786
5788
|
<span class="pay:text-sm pay:font-medium">${t.label}</span>
|
|
5787
|
-
${t.logoSvg ?
|
|
5789
|
+
${t.logoSvg ? w`<span
|
|
5788
5790
|
class="pay:inline-flex pay:h-4 pay:shrink-0 pay:text-foreground pay:[&>svg]:block pay:[&>svg]:h-full pay:[&>svg]:w-auto"
|
|
5789
5791
|
role="img"
|
|
5790
5792
|
aria-label=${t.label}
|
|
@@ -5794,7 +5796,7 @@ function fd(t) {
|
|
|
5794
5796
|
`;
|
|
5795
5797
|
}
|
|
5796
5798
|
function A1(t) {
|
|
5797
|
-
return
|
|
5799
|
+
return w`
|
|
5798
5800
|
<label class=${s2({ size: "channel" })}>
|
|
5799
5801
|
${a2(t)}
|
|
5800
5802
|
<div
|
|
@@ -5808,7 +5810,7 @@ function A1(t) {
|
|
|
5808
5810
|
}
|
|
5809
5811
|
const hd = Re(
|
|
5810
5812
|
"pay:file:text-foreground pay:placeholder:text-muted-foreground pay:selection:bg-primary pay:selection:text-primary-foreground pay:border-input pay:h-9 pay:w-full pay:min-w-0 pay:rounded-md pay:border pay:bg-transparent pay:px-3 pay:py-1 pay:text-sm pay:shadow-xs pay:transition-[color,box-shadow] pay:outline-none pay:disabled:pointer-events-none pay:disabled:cursor-not-allowed pay:disabled:opacity-50 pay:focus-visible:border-ring pay:focus-visible:ring-ring/50 pay:focus-visible:ring-[3px] pay:aria-invalid:ring-destructive/20 pay:aria-invalid:border-destructive"
|
|
5811
|
-
), Ue = hd(), pd =
|
|
5813
|
+
), Ue = hd(), pd = w`<svg
|
|
5812
5814
|
class="pay:size-4 pay:text-muted-foreground"
|
|
5813
5815
|
viewBox="0 0 24 24"
|
|
5814
5816
|
fill="none"
|
|
@@ -5819,7 +5821,7 @@ const hd = Re(
|
|
|
5819
5821
|
>
|
|
5820
5822
|
<rect x="2" y="4" width="20" height="16" rx="2" />
|
|
5821
5823
|
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
|
|
5822
|
-
</svg>`, md =
|
|
5824
|
+
</svg>`, md = w`<svg
|
|
5823
5825
|
class="pay:size-4 pay:text-muted-foreground"
|
|
5824
5826
|
viewBox="0 0 24 24"
|
|
5825
5827
|
fill="none"
|
|
@@ -5831,14 +5833,14 @@ const hd = Re(
|
|
|
5831
5833
|
<path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z" />
|
|
5832
5834
|
</svg>`;
|
|
5833
5835
|
function yd(t) {
|
|
5834
|
-
return
|
|
5836
|
+
return w`
|
|
5835
5837
|
<select
|
|
5836
5838
|
class="pay:border-input pay:h-9 pay:flex-shrink-0 pay:rounded-md pay:border pay:bg-transparent pay:px-3 pay:py-1 pay:text-sm pay:shadow-xs pay:transition-[color,box-shadow] pay:outline-none pay:focus-visible:ring-[3px] pay:focus-visible:border-ring pay:focus-visible:ring-ring/50 pay:cursor-pointer"
|
|
5837
5839
|
aria-label=${t.label}
|
|
5838
5840
|
@change=${t.onChange}
|
|
5839
5841
|
>
|
|
5840
5842
|
${B1.map(
|
|
5841
|
-
(e) =>
|
|
5843
|
+
(e) => w`
|
|
5842
5844
|
<option value=${e.code} ?selected=${e.code === t.value}>
|
|
5843
5845
|
${e.flag} ${e.code} ${e.dial}
|
|
5844
5846
|
</option>
|
|
@@ -5848,7 +5850,7 @@ function yd(t) {
|
|
|
5848
5850
|
`;
|
|
5849
5851
|
}
|
|
5850
5852
|
function gd() {
|
|
5851
|
-
return
|
|
5853
|
+
return w`
|
|
5852
5854
|
<div
|
|
5853
5855
|
role="alert"
|
|
5854
5856
|
class="pay:bg-red-50 pay:border pay:border-red-400 pay:text-red-700 pay:p-4 pay:rounded-md"
|
|
@@ -5857,14 +5859,14 @@ function gd() {
|
|
|
5857
5859
|
</div>
|
|
5858
5860
|
`;
|
|
5859
5861
|
}
|
|
5860
|
-
var bd = Object.defineProperty,
|
|
5862
|
+
var bd = Object.defineProperty, A = (t, e, r, n) => {
|
|
5861
5863
|
for (var d = void 0, o = t.length - 1, i; o >= 0; o--)
|
|
5862
5864
|
(i = t[o]) && (d = i(e, r, d) || d);
|
|
5863
5865
|
return d && bd(e, r, d), d;
|
|
5864
5866
|
};
|
|
5865
|
-
class
|
|
5867
|
+
class P extends Ce {
|
|
5866
5868
|
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 = u0.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";
|
|
5869
|
+
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 = u0.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";
|
|
5868
5870
|
}
|
|
5869
5871
|
createRenderRoot() {
|
|
5870
5872
|
return this;
|
|
@@ -5931,8 +5933,8 @@ class E extends Ce {
|
|
|
5931
5933
|
_onCountryChange(e) {
|
|
5932
5934
|
this._country = e.target.value;
|
|
5933
5935
|
}
|
|
5934
|
-
|
|
5935
|
-
e.preventDefault(), this._loading = !0;
|
|
5936
|
+
_onSubmit(e) {
|
|
5937
|
+
e.preventDefault(), this._loading = !0, this._submitError = null;
|
|
5936
5938
|
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
5939
|
order_reference: this._paymentReference,
|
|
5938
5940
|
channel: this._channel === "email" ? "email" : this._channel === "sms" ? "sms" : "link",
|
|
@@ -5941,23 +5943,19 @@ class E extends Ce {
|
|
|
5941
5943
|
method: d,
|
|
5942
5944
|
customer_contact: this._channel === "email" ? this._email : this._channel === "sms" ? this._phone : this._email,
|
|
5943
5945
|
partner: n
|
|
5944
|
-
}
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
console.error(i);
|
|
5958
|
-
} finally {
|
|
5959
|
-
this._loading = !1;
|
|
5960
|
-
}
|
|
5946
|
+
}, i = new CustomEvent("request-to-pay", {
|
|
5947
|
+
detail: o,
|
|
5948
|
+
bubbles: !0,
|
|
5949
|
+
composed: !0,
|
|
5950
|
+
cancelable: !0
|
|
5951
|
+
});
|
|
5952
|
+
!this.dispatchEvent(i) || this.reportSuccess();
|
|
5953
|
+
}
|
|
5954
|
+
reportSuccess() {
|
|
5955
|
+
this._success = !0, this._loading = !1, this._submitError = null;
|
|
5956
|
+
}
|
|
5957
|
+
reportError(e) {
|
|
5958
|
+
this._submitError = e ?? this._t.submitError, this._loading = !1;
|
|
5961
5959
|
}
|
|
5962
5960
|
_onClose() {
|
|
5963
5961
|
this._success = !1, this.dispatchEvent(
|
|
@@ -5977,7 +5975,7 @@ class E extends Ce {
|
|
|
5977
5975
|
);
|
|
5978
5976
|
}
|
|
5979
5977
|
_renderChannels() {
|
|
5980
|
-
return
|
|
5978
|
+
return w`
|
|
5981
5979
|
${A1({
|
|
5982
5980
|
name: "channel",
|
|
5983
5981
|
value: "email",
|
|
@@ -5998,7 +5996,7 @@ class E extends Ce {
|
|
|
5998
5996
|
}
|
|
5999
5997
|
_renderForm() {
|
|
6000
5998
|
const e = this._amount ? !this._validateAmount(this._amount) : !1, r = this._email ? !f1(this._email) : !1, n = this._phone ? !h1(this._country, this._phone) : !1;
|
|
6001
|
-
return
|
|
5999
|
+
return w`
|
|
6002
6000
|
<form @submit=${this._onSubmit} class="pay:space-y-4">
|
|
6003
6001
|
<p
|
|
6004
6002
|
class="pay:text-xl pay:font-bold pay:text-accent-foreground pay:text-center"
|
|
@@ -6053,7 +6051,7 @@ class E extends Ce {
|
|
|
6053
6051
|
<div class="pay:grid pay:gap-1">${this._renderMethods()}</div>
|
|
6054
6052
|
</div>
|
|
6055
6053
|
|
|
6056
|
-
${this._method ?
|
|
6054
|
+
${this._method ? w`
|
|
6057
6055
|
<div
|
|
6058
6056
|
class="pay:animate-in pay:fade-in pay:slide-in-from-bottom-1 pay:duration-300"
|
|
6059
6057
|
>
|
|
@@ -6065,7 +6063,7 @@ class E extends Ce {
|
|
|
6065
6063
|
</div>
|
|
6066
6064
|
</div>
|
|
6067
6065
|
` : _}
|
|
6068
|
-
${this._channel === "email" ?
|
|
6066
|
+
${this._channel === "email" ? w`
|
|
6069
6067
|
<div
|
|
6070
6068
|
class="pay:flex pay:flex-col pay:gap-1 pay:animate-in pay:fade-in pay:slide-in-from-bottom-1 pay:duration-300"
|
|
6071
6069
|
>
|
|
@@ -6087,7 +6085,7 @@ class E extends Ce {
|
|
|
6087
6085
|
${at(r && this._t.emailInvalid)}
|
|
6088
6086
|
</div>
|
|
6089
6087
|
` : _}
|
|
6090
|
-
${this._channel === "sms" ?
|
|
6088
|
+
${this._channel === "sms" ? w`
|
|
6091
6089
|
<div
|
|
6092
6090
|
class="pay:flex pay:flex-col pay:gap-1 pay:animate-in pay:fade-in pay:slide-in-from-bottom-1 pay:duration-300"
|
|
6093
6091
|
>
|
|
@@ -6112,6 +6110,12 @@ class E extends Ce {
|
|
|
6112
6110
|
${at(n && this._t.phoneInvalid)}
|
|
6113
6111
|
</div>
|
|
6114
6112
|
` : _}
|
|
6113
|
+
${this._submitError ? w`<div
|
|
6114
|
+
role="alert"
|
|
6115
|
+
class="pay:bg-red-50 pay:border pay:border-red-400 pay:text-red-700 pay:p-3 pay:rounded-md pay:text-sm"
|
|
6116
|
+
>
|
|
6117
|
+
${this._submitError}
|
|
6118
|
+
</div>` : _}
|
|
6115
6119
|
${E1(
|
|
6116
6120
|
{
|
|
6117
6121
|
type: "submit",
|
|
@@ -6124,7 +6128,7 @@ class E extends Ce {
|
|
|
6124
6128
|
`;
|
|
6125
6129
|
}
|
|
6126
6130
|
_renderSuccess() {
|
|
6127
|
-
return
|
|
6131
|
+
return w`
|
|
6128
6132
|
<div
|
|
6129
6133
|
class="pay:absolute pay:inset-0 pay:flex pay:items-center pay:justify-center pay:z-10 pay:bg-background pay:rounded-lg pay:px-6 pay:animate-in pay:fade-in pay:duration-300"
|
|
6130
6134
|
>
|
|
@@ -6132,89 +6136,92 @@ class E extends Ce {
|
|
|
6132
6136
|
<h2 class="pay:text-xl pay:font-bold pay:text-accent-foreground">
|
|
6133
6137
|
${this._t.paymentLinkSent}
|
|
6134
6138
|
</h2>
|
|
6135
|
-
${this._channel === "email" ?
|
|
6139
|
+
${this._channel === "email" ? w`<p>
|
|
6136
6140
|
${this._t.emailSentTo} <strong>${this._email}</strong>
|
|
6137
|
-
</p>` :
|
|
6141
|
+
</p>` : w`<p>${this._t.smsSentTo} <strong>${this._phone}</strong></p>`}
|
|
6138
6142
|
${E1({ type: "button", onClick: this._onClose }, this._t.close)}
|
|
6139
6143
|
</div>
|
|
6140
6144
|
</div>
|
|
6141
6145
|
`;
|
|
6142
6146
|
}
|
|
6143
6147
|
render() {
|
|
6144
|
-
return !this._methodsLoading && this._methodsError ?
|
|
6148
|
+
return !this._methodsLoading && this._methodsError ? w`<div class="pay:p-4">${gd()}</div>` : w`
|
|
6145
6149
|
<div class="pay:relative pay:p-4 pay:space-y-6">
|
|
6146
6150
|
${this._renderForm()} ${this._success ? this._renderSuccess() : _}
|
|
6147
6151
|
</div>
|
|
6148
6152
|
`;
|
|
6149
6153
|
}
|
|
6150
6154
|
}
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
],
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
],
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
],
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
],
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
],
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
],
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
],
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
],
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
],
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
],
|
|
6181
|
-
|
|
6155
|
+
A([
|
|
6156
|
+
z({ type: String })
|
|
6157
|
+
], P.prototype, "token");
|
|
6158
|
+
A([
|
|
6159
|
+
z({ type: String })
|
|
6160
|
+
], P.prototype, "currency");
|
|
6161
|
+
A([
|
|
6162
|
+
z({ type: String, attribute: "default-amount" })
|
|
6163
|
+
], P.prototype, "defaultAmount");
|
|
6164
|
+
A([
|
|
6165
|
+
z({ type: String, attribute: "default-reference" })
|
|
6166
|
+
], P.prototype, "defaultReference");
|
|
6167
|
+
A([
|
|
6168
|
+
z({ type: Boolean, attribute: "read-only-amount" })
|
|
6169
|
+
], P.prototype, "readOnlyAmount");
|
|
6170
|
+
A([
|
|
6171
|
+
z({ type: String, attribute: "customer-name" })
|
|
6172
|
+
], P.prototype, "customerName");
|
|
6173
|
+
A([
|
|
6174
|
+
z({ type: String, attribute: "customer-email" })
|
|
6175
|
+
], P.prototype, "customerEmail");
|
|
6176
|
+
A([
|
|
6177
|
+
z({ type: String, attribute: "customer-phone" })
|
|
6178
|
+
], P.prototype, "customerPhone");
|
|
6179
|
+
A([
|
|
6180
|
+
z({ type: String })
|
|
6181
|
+
], P.prototype, "locale");
|
|
6182
|
+
A([
|
|
6183
|
+
z({ type: String, attribute: "pay-client-ref" })
|
|
6184
|
+
], P.prototype, "payClientRef");
|
|
6185
|
+
A([
|
|
6182
6186
|
H()
|
|
6183
|
-
],
|
|
6184
|
-
|
|
6187
|
+
], P.prototype, "_amount");
|
|
6188
|
+
A([
|
|
6185
6189
|
H()
|
|
6186
|
-
],
|
|
6187
|
-
|
|
6190
|
+
], P.prototype, "_email");
|
|
6191
|
+
A([
|
|
6188
6192
|
H()
|
|
6189
|
-
],
|
|
6190
|
-
|
|
6193
|
+
], P.prototype, "_phone");
|
|
6194
|
+
A([
|
|
6191
6195
|
H()
|
|
6192
|
-
],
|
|
6193
|
-
|
|
6196
|
+
], P.prototype, "_paymentReference");
|
|
6197
|
+
A([
|
|
6194
6198
|
H()
|
|
6195
|
-
],
|
|
6196
|
-
|
|
6199
|
+
], P.prototype, "_method");
|
|
6200
|
+
A([
|
|
6197
6201
|
H()
|
|
6198
|
-
],
|
|
6199
|
-
|
|
6202
|
+
], P.prototype, "_channel");
|
|
6203
|
+
A([
|
|
6200
6204
|
H()
|
|
6201
|
-
],
|
|
6202
|
-
|
|
6205
|
+
], P.prototype, "_country");
|
|
6206
|
+
A([
|
|
6203
6207
|
H()
|
|
6204
|
-
],
|
|
6205
|
-
|
|
6208
|
+
], P.prototype, "_loading");
|
|
6209
|
+
A([
|
|
6206
6210
|
H()
|
|
6207
|
-
],
|
|
6208
|
-
|
|
6211
|
+
], P.prototype, "_success");
|
|
6212
|
+
A([
|
|
6209
6213
|
H()
|
|
6210
|
-
],
|
|
6211
|
-
|
|
6214
|
+
], P.prototype, "_submitError");
|
|
6215
|
+
A([
|
|
6212
6216
|
H()
|
|
6213
|
-
],
|
|
6214
|
-
|
|
6217
|
+
], P.prototype, "_paymentMethods");
|
|
6218
|
+
A([
|
|
6215
6219
|
H()
|
|
6216
|
-
],
|
|
6217
|
-
|
|
6220
|
+
], P.prototype, "_methodsLoading");
|
|
6221
|
+
A([
|
|
6222
|
+
H()
|
|
6223
|
+
], P.prototype, "_methodsError");
|
|
6224
|
+
customElements.get("openhive-pay") || customElements.define("openhive-pay", P);
|
|
6218
6225
|
function Pd({
|
|
6219
6226
|
token: t,
|
|
6220
6227
|
currency: e,
|
|
@@ -6231,10 +6238,10 @@ function Pd({
|
|
|
6231
6238
|
className: u,
|
|
6232
6239
|
style: g
|
|
6233
6240
|
}) {
|
|
6234
|
-
const b = Ot(null),
|
|
6235
|
-
|
|
6236
|
-
const
|
|
6237
|
-
b.current = v, v &&
|
|
6241
|
+
const b = Ot(null), E = Ot(l);
|
|
6242
|
+
E.current = l;
|
|
6243
|
+
const x = $2((v) => {
|
|
6244
|
+
b.current = v, v && E.current !== void 0 && (v.payClient = E.current);
|
|
6238
6245
|
}, []);
|
|
6239
6246
|
return Rt(() => {
|
|
6240
6247
|
b.current && (b.current.payClient = l);
|
|
@@ -6242,7 +6249,12 @@ function Pd({
|
|
|
6242
6249
|
const v = b.current;
|
|
6243
6250
|
if (!v) return;
|
|
6244
6251
|
const L = (V) => {
|
|
6245
|
-
c
|
|
6252
|
+
if (!c) return;
|
|
6253
|
+
V.preventDefault();
|
|
6254
|
+
const j = b.current;
|
|
6255
|
+
Promise.resolve(c(V.detail)).then(() => j.reportSuccess()).catch((U) => {
|
|
6256
|
+
j.reportError(U instanceof Error ? U.message : void 0);
|
|
6257
|
+
});
|
|
6246
6258
|
}, F = () => $?.();
|
|
6247
6259
|
return v.addEventListener("request-to-pay", L), v.addEventListener("close", F), () => {
|
|
6248
6260
|
v.removeEventListener("request-to-pay", L), v.removeEventListener("close", F);
|
|
@@ -6250,7 +6262,7 @@ function Pd({
|
|
|
6250
6262
|
}, [c, $]), /* @__PURE__ */ l2(
|
|
6251
6263
|
"openhive-pay",
|
|
6252
6264
|
{
|
|
6253
|
-
ref:
|
|
6265
|
+
ref: x,
|
|
6254
6266
|
token: t,
|
|
6255
6267
|
currency: e,
|
|
6256
6268
|
"default-amount": r,
|