@openhive-eu/payment 1.0.0-next.11 → 1.0.0-next.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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
- }, Mt = mt ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
28
+ }, Tt = 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, Tt = qe.trustedTypes, v2 = Tt ? Tt.emptyScript : "", C2 = qe.reactiveElementPolyfillSupport, ve = (t, e) => t, Be = { toAttribute(t, e) {
33
+ const { is: h2, defineProperty: p2, getOwnPropertyDescriptor: m2, getOwnPropertyNames: y2, getOwnPropertySymbols: g2, getPrototypeOf: b2 } = Object, qe = globalThis, Mt = qe.trustedTypes, v2 = Mt ? Mt.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(Mt(d));
118
- } else e !== void 0 && r.push(Mt(e));
117
+ for (const d of n) r.unshift(Tt(d));
118
+ } else e !== void 0 && r.push(Tt(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 }), w = x2(1), le = /* @__PURE__ */ Symbol.for("lit-noChange"), _ = /* @__PURE__ */ Symbol.for("lit-nothing"), Gt = /* @__PURE__ */ new WeakMap(), ae = se.createTreeWalker(se, 129);
247
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Ut = /"/g, O1 = /^(?:script|style|textarea|title)$/i, x2 = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), x = 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 M2 = { attribute: !0, type: String, converter: Be, reflect: !1, hasChanged: yt }, T2 = (t = M2, e, r) => {
497
+ const T2 = { attribute: !0, type: String, converter: Be, reflect: !1, hasChanged: yt }, M2 = (t = T2, 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 M2 = { attribute: !0, type: String, converter: Be, reflect: !1, hasChanged
515
515
  }
516
516
  throw Error("Unsupported decorator location: " + n);
517
517
  };
518
- function z(t) {
519
- return (e, r) => typeof r == "object" ? T2(t, e, r) : ((n, d, o) => {
518
+ function G(t) {
519
+ return (e, r) => typeof r == "object" ? M2(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 z({ ...t, state: !0, attribute: !1 });
525
+ return G({ ...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: E = r,
559
- headers: x,
558
+ Request: P = r,
559
+ headers: w,
560
560
  params: v = {},
561
561
  parseAs: L = "json",
562
562
  querySerializer: F,
563
563
  bodySerializer: V = o ?? z2,
564
- body: j,
565
- middleware: U = [],
564
+ body: z,
565
+ middleware: Z = [],
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 = j === void 0 ? void 0 : V(
576
- j,
575
+ const ce = z === void 0 ? void 0 : V(
576
+ z,
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, x, v.header)
582
+ zt(i, w, 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
- x,
590
+ w,
591
591
  v.header
592
- ), D = [...l, ...U], Me = {
592
+ ), D = [...l, ...Z], Te = {
593
593
  redirect: "follow",
594
594
  ...s,
595
595
  ...W,
596
596
  body: ce,
597
597
  headers: Ie
598
598
  };
599
- let J, G, N = new E(
599
+ let J, j, N = new P(
600
600
  Z2($, { baseUrl: m, params: v, querySerializer: R }),
601
- Me
601
+ Te
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(), G = Object.freeze({
606
+ J = U2(), j = 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 S = await f.onRequest({
615
+ const A = await f.onRequest({
616
616
  request: N,
617
617
  schemaPath: $,
618
618
  params: v,
619
- options: G,
619
+ options: j,
620
620
  id: J
621
621
  });
622
- if (S)
623
- if (S instanceof E)
624
- N = S;
625
- else if (S instanceof Response) {
626
- C = S;
622
+ if (A)
623
+ if (A instanceof P)
624
+ N = A;
625
+ else if (A instanceof Response) {
626
+ C = A;
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 S = f;
636
+ let A = f;
637
637
  if (D.length)
638
- for (let Z = D.length - 1; Z >= 0; Z--) {
639
- const de = D[Z];
638
+ for (let B = D.length - 1; B >= 0; B--) {
639
+ const de = D[B];
640
640
  if (de && typeof de == "object" && typeof de.onError == "function") {
641
641
  const K = await de.onError({
642
642
  request: N,
643
- error: S,
643
+ error: A,
644
644
  schemaPath: $,
645
645
  params: v,
646
- options: G,
646
+ options: j,
647
647
  id: J
648
648
  });
649
649
  if (K) {
650
650
  if (K instanceof Response) {
651
- S = void 0, C = K;
651
+ A = void 0, C = K;
652
652
  break;
653
653
  }
654
654
  if (K instanceof Error) {
655
- S = K;
655
+ A = 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 (S)
663
- throw S;
662
+ if (A)
663
+ throw A;
664
664
  }
665
665
  if (D.length)
666
666
  for (let f = D.length - 1; f >= 0; f--) {
667
- const S = D[f];
668
- if (S && typeof S == "object" && typeof S.onResponse == "function") {
669
- const Z = await S.onResponse({
667
+ const A = D[f];
668
+ if (A && typeof A == "object" && typeof A.onResponse == "function") {
669
+ const B = await A.onResponse({
670
670
  request: N,
671
671
  response: C,
672
672
  schemaPath: $,
673
673
  params: v,
674
- options: G,
674
+ options: j,
675
675
  id: J
676
676
  });
677
- if (Z) {
678
- if (!(Z instanceof Response))
677
+ if (B) {
678
+ if (!(B instanceof Response))
679
679
  throw new Error("onResponse: must return new Response() when modifying the response");
680
- C = Z;
680
+ C = B;
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 S = await C.text();
694
- return S ? JSON.parse(S) : void 0;
693
+ const A = await C.text();
694
+ return A ? JSON.parse(A) : 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 M1(t, e, r) {
798
+ function T1(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
- M1(d, o, {
832
+ T1(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, M1(d, a, { style: i, explode: o }));
866
+ r = r.replace(n, T1(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), T1(e), this.metadata = e, L1.call(this, e);
1003
+ Je(this, t), M1(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 T1(t) {
1411
+ function M1(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, 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 + "])");
1534
+ var xt = 2, yr = 17, gr = 3, U = "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("([" + U + "])");
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 Mr(t) {
1711
+ function Tr(t) {
1712
1712
  return t.replace(new RegExp("[".concat(Ze, "]+"), "g"), " ").trim();
1713
1713
  }
1714
- var Tr = /(\$\d)/;
1714
+ var Mr = /(\$\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(Tr, e.nationalPrefixFormattingRule()) : e.format()
1730
+ d && e.nationalPrefixFormattingRule() ? e.format().replace(Mr, e.nationalPrefixFormattingRule()) : e.format()
1731
1731
  ));
1732
- return n ? Mr(o) : o;
1732
+ return n ? Tr(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(B, "]{1,").concat(e, "})");
1743
+ return "([".concat(U, "]{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, 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;
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, P = o + l + i + fe(n) + a, w = c + fe(d) + "#", v = $ + u + i + fe(r) + a, L = $ + "(?:,)+" + i + fe(n) + a;
1747
+ return g + "|" + b + "|" + P + "|" + w + "|" + v + "|" + L;
1748
1748
  }
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
1749
+ var Vr = "[" + U + "]{" + xt + "}", jr = "[" + Pt + "]{0,1}(?:[" + Ze + "]*[" + U + "]){3,}[" + Ze + U + "]*", Ur = new RegExp("^[" + Pt + "]{0,1}(?:[" + Ze + "]*[" + U + "]){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
- T1(n);
1935
+ M1(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 = "([" + 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=";
2242
+ var U1 = "+", wn = "[\\-\\.\\(\\)]?", o1 = "([" + U + "]|" + wn + ")", xn = "^\\" + U1 + o1 + "*[" + U + "]" + o1 + "*$", Pn = new RegExp(xn, "g"), ct = U, 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 Mn(t, e) {
2256
+ function Tn(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 Mn(t, e) {
2271
2271
  if (s > 0 && (d = d.substring(0, s)), d !== "")
2272
2272
  return d;
2273
2273
  }
2274
- var Tn = 250, Ln = new RegExp("[" + Pt + B + "]"), Fn = new RegExp("[^" + B + "#]+$");
2274
+ var Mn = 250, Ln = new RegExp("[" + Pt + U + "]"), Fn = new RegExp("[^" + U + "#]+$");
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 > Tn) {
2317
+ if (t.length > Mn) {
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 = Mn(t, {
2330
+ var n = Tn(t, {
2331
2331
  extractFormattedPhoneNumber: function(i) {
2332
2332
  return Hn(i, r, e);
2333
2333
  }
@@ -2636,8 +2636,7 @@ 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.",
2640
- submitError: "Une erreur est survenue lors de l'envoi du lien de paiement."
2639
+ errorFallback: "Une erreur s'est produite lors du chargement du composant de paiement."
2641
2640
  },
2642
2641
  en: {
2643
2642
  title: "Payment terminal",
@@ -2658,8 +2657,7 @@ const p1 = ["FR"], B1 = [
2658
2657
  close: "Close",
2659
2658
  textMessage: "SMS",
2660
2659
  email: "Email",
2661
- errorFallback: "Something went wrong while loading the payment component.",
2662
- submitError: "An error occurred while sending the payment link."
2660
+ errorFallback: "Something went wrong while loading the payment component."
2663
2661
  }
2664
2662
  }, ot = (t) => m1[t] ?? m1.fr;
2665
2663
  function z1(t) {
@@ -2689,14 +2687,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
2689
2687
  }, {}), s = e == null || (n = e.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((l, c) => {
2690
2688
  let { class: $, className: u, ...g } = c;
2691
2689
  return Object.entries(g).every((b) => {
2692
- let [E, x] = b;
2693
- return Array.isArray(x) ? x.includes({
2690
+ let [P, w] = b;
2691
+ return Array.isArray(w) ? w.includes({
2694
2692
  ...o,
2695
2693
  ...a
2696
- }[E]) : {
2694
+ }[P]) : {
2697
2695
  ...o,
2698
2696
  ...a
2699
- }[E] === x;
2697
+ }[P] === w;
2700
2698
  }) ? [
2701
2699
  ...l,
2702
2700
  $,
@@ -2850,19 +2848,19 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
2850
2848
  const o = [];
2851
2849
  let i = 0, a = 0, s = 0, l;
2852
2850
  const c = d.length;
2853
- for (let E = 0; E < c; E++) {
2854
- const x = d[E];
2851
+ for (let P = 0; P < c; P++) {
2852
+ const w = d[P];
2855
2853
  if (i === 0 && a === 0) {
2856
- if (x === v1) {
2857
- o.push(d.slice(s, E)), s = E + 1;
2854
+ if (w === v1) {
2855
+ o.push(d.slice(s, P)), s = P + 1;
2858
2856
  continue;
2859
2857
  }
2860
- if (x === "/") {
2861
- l = E;
2858
+ if (w === "/") {
2859
+ l = P;
2862
2860
  continue;
2863
2861
  }
2864
2862
  }
2865
- x === "[" ? i++ : x === "]" ? i-- : x === "(" ? a++ : x === ")" && a--;
2863
+ w === "[" ? i++ : w === "]" ? i-- : w === "(" ? a++ : w === ")" && a--;
2866
2864
  }
2867
2865
  const $ = o.length === 0 ? d : d.slice(s);
2868
2866
  let u = $, g = !1;
@@ -2920,15 +2918,15 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
2920
2918
  modifiers: u,
2921
2919
  hasImportantModifier: g,
2922
2920
  baseClassName: b,
2923
- maybePostfixModifierPosition: E
2921
+ maybePostfixModifierPosition: P
2924
2922
  } = r(c);
2925
2923
  if ($) {
2926
2924
  s = c + (s.length > 0 ? " " + s : s);
2927
2925
  continue;
2928
2926
  }
2929
- let x = !!E, v = n(x ? b.substring(0, E) : b);
2927
+ let w = !!P, v = n(w ? b.substring(0, P) : b);
2930
2928
  if (!v) {
2931
- if (!x) {
2929
+ if (!w) {
2932
2930
  s = c + (s.length > 0 ? " " + s : s);
2933
2931
  continue;
2934
2932
  }
@@ -2936,15 +2934,15 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
2936
2934
  s = c + (s.length > 0 ? " " + s : s);
2937
2935
  continue;
2938
2936
  }
2939
- x = !1;
2937
+ w = !1;
2940
2938
  }
2941
2939
  const L = u.length === 0 ? "" : u.length === 1 ? u[0] : o(u).join(":"), F = g ? L + ft : L, V = F + v;
2942
2940
  if (i.indexOf(V) > -1)
2943
2941
  continue;
2944
2942
  i.push(V);
2945
- const j = d(v, x);
2946
- for (let U = 0; U < j.length; ++U) {
2947
- const W = j[U];
2943
+ const z = d(v, w);
2944
+ for (let Z = 0; Z < z.length; ++Z) {
2945
+ const W = z[Z];
2948
2946
  i.push(F + W);
2949
2947
  }
2950
2948
  s = c + (s.length > 0 ? " " + s : s);
@@ -2975,10 +2973,10 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
2975
2973
  return d(s, c), c;
2976
2974
  };
2977
2975
  return o = i, (...s) => o(R0(...s));
2978
- }, M0 = [], k = (t) => {
2979
- const e = (r) => r[t] || M0;
2976
+ }, T0 = [], k = (t) => {
2977
+ const e = (r) => r[t] || T0;
2980
2978
  return e.isThemeGetter = !0, e;
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) => (
2979
+ }, Y1 = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, J1 = /^\((?:(\w[\w-]*):)?(.+)\)$/i, M0 = /^\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) => M0.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) => (
2982
2980
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2983
2981
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2984
2982
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
@@ -2990,7 +2988,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
2990
2988
  const n = J1.exec(t);
2991
2989
  return n ? n[1] ? e(n[1]) : r : !1;
2992
2990
  }, 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 = () => {
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 = () => [
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"), P = k("perspective"), w = k("aspect"), v = k("ease"), L = k("animate"), F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [
2994
2992
  "center",
2995
2993
  "top",
2996
2994
  "bottom",
@@ -3008,15 +3006,15 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
3008
3006
  "bottom-left",
3009
3007
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
3010
3008
  "left-bottom"
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", {
3009
+ ], z = () => [...V(), p, h], Z = () => ["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", {
3012
3010
  span: ["full", ee, 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, {
3011
+ }, ee, p, h], D = () => [ee, "auto", p, h], Te = () => ["auto", "min", "max", "fr", p, h], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], j = () => ["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], A = () => [...V(), x1, w1, {
3014
3012
  position: [p, h]
3015
- }], Z = () => ["no-repeat", {
3013
+ }], B = () => ["no-repeat", {
3016
3014
  repeat: ["", "x", "y", "space", "round"]
3017
3015
  }], de = () => ["auto", "cover", "contain", X0, z0, {
3018
3016
  size: [p, h]
3019
- }], K = () => [it, be, ie], M = () => [
3017
+ }], K = () => [it, be, ie], T = () => [
3020
3018
  // Deprecated since Tailwind CSS v4.0.0
3021
3019
  "",
3022
3020
  "none",
@@ -3024,7 +3022,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
3024
3022
  l,
3025
3023
  p,
3026
3024
  h
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 = () => [
3025
+ ], M = () => ["", y, be, ie], Me = () => ["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 = () => [
3028
3026
  // Deprecated since Tailwind CSS v4.0.0
3029
3027
  "",
3030
3028
  "none",
@@ -3064,7 +3062,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
3064
3062
  * @see https://tailwindcss.com/docs/aspect-ratio
3065
3063
  */
3066
3064
  aspect: [{
3067
- aspect: ["auto", "square", Q, h, p, x]
3065
+ aspect: ["auto", "square", Q, h, p, w]
3068
3066
  }],
3069
3067
  /**
3070
3068
  * Container
@@ -3155,28 +3153,28 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
3155
3153
  * @see https://tailwindcss.com/docs/object-position
3156
3154
  */
3157
3155
  "object-position": [{
3158
- object: j()
3156
+ object: z()
3159
3157
  }],
3160
3158
  /**
3161
3159
  * Overflow
3162
3160
  * @see https://tailwindcss.com/docs/overflow
3163
3161
  */
3164
3162
  overflow: [{
3165
- overflow: U()
3163
+ overflow: Z()
3166
3164
  }],
3167
3165
  /**
3168
3166
  * Overflow X
3169
3167
  * @see https://tailwindcss.com/docs/overflow
3170
3168
  */
3171
3169
  "overflow-x": [{
3172
- "overflow-x": U()
3170
+ "overflow-x": Z()
3173
3171
  }],
3174
3172
  /**
3175
3173
  * Overflow Y
3176
3174
  * @see https://tailwindcss.com/docs/overflow
3177
3175
  */
3178
3176
  "overflow-y": [{
3179
- "overflow-y": U()
3177
+ "overflow-y": Z()
3180
3178
  }],
3181
3179
  /**
3182
3180
  * Overscroll Behavior
@@ -3425,14 +3423,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
3425
3423
  * @see https://tailwindcss.com/docs/grid-auto-columns
3426
3424
  */
3427
3425
  "auto-cols": [{
3428
- "auto-cols": Me()
3426
+ "auto-cols": Te()
3429
3427
  }],
3430
3428
  /**
3431
3429
  * Grid Auto Rows
3432
3430
  * @see https://tailwindcss.com/docs/grid-auto-rows
3433
3431
  */
3434
3432
  "auto-rows": [{
3435
- "auto-rows": Me()
3433
+ "auto-rows": Te()
3436
3434
  }],
3437
3435
  /**
3438
3436
  * Gap
@@ -3467,14 +3465,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
3467
3465
  * @see https://tailwindcss.com/docs/justify-items
3468
3466
  */
3469
3467
  "justify-items": [{
3470
- "justify-items": [...G(), "normal"]
3468
+ "justify-items": [...j(), "normal"]
3471
3469
  }],
3472
3470
  /**
3473
3471
  * Justify Self
3474
3472
  * @see https://tailwindcss.com/docs/justify-self
3475
3473
  */
3476
3474
  "justify-self": [{
3477
- "justify-self": ["auto", ...G()]
3475
+ "justify-self": ["auto", ...j()]
3478
3476
  }],
3479
3477
  /**
3480
3478
  * Align Content
@@ -3488,7 +3486,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
3488
3486
  * @see https://tailwindcss.com/docs/align-items
3489
3487
  */
3490
3488
  "align-items": [{
3491
- items: [...G(), {
3489
+ items: [...j(), {
3492
3490
  baseline: ["", "last"]
3493
3491
  }]
3494
3492
  }],
@@ -3497,7 +3495,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
3497
3495
  * @see https://tailwindcss.com/docs/align-self
3498
3496
  */
3499
3497
  "align-self": [{
3500
- self: ["auto", ...G(), {
3498
+ self: ["auto", ...j(), {
3501
3499
  baseline: ["", "last"]
3502
3500
  }]
3503
3501
  }],
@@ -3513,14 +3511,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
3513
3511
  * @see https://tailwindcss.com/docs/place-items
3514
3512
  */
3515
3513
  "place-items": [{
3516
- "place-items": [...G(), "baseline"]
3514
+ "place-items": [...j(), "baseline"]
3517
3515
  }],
3518
3516
  /**
3519
3517
  * Place Self
3520
3518
  * @see https://tailwindcss.com/docs/place-self
3521
3519
  */
3522
3520
  "place-self": [{
3523
- "place-self": ["auto", ...G()]
3521
+ "place-self": ["auto", ...j()]
3524
3522
  }],
3525
3523
  // Spacing
3526
3524
  /**
@@ -3968,7 +3966,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
3968
3966
  * @see https://tailwindcss.com/docs/text-decoration-style
3969
3967
  */
3970
3968
  "text-decoration-style": [{
3971
- decoration: [...Te(), "wavy"]
3969
+ decoration: [...Me(), "wavy"]
3972
3970
  }],
3973
3971
  /**
3974
3972
  * Text Decoration Thickness
@@ -4086,14 +4084,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
4086
4084
  * @see https://tailwindcss.com/docs/background-position
4087
4085
  */
4088
4086
  "bg-position": [{
4089
- bg: S()
4087
+ bg: A()
4090
4088
  }],
4091
4089
  /**
4092
4090
  * Background Repeat
4093
4091
  * @see https://tailwindcss.com/docs/background-repeat
4094
4092
  */
4095
4093
  "bg-repeat": [{
4096
- bg: Z()
4094
+ bg: B()
4097
4095
  }],
4098
4096
  /**
4099
4097
  * Background Size
@@ -4172,189 +4170,189 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
4172
4170
  * @see https://tailwindcss.com/docs/border-radius
4173
4171
  */
4174
4172
  rounded: [{
4175
- rounded: M()
4173
+ rounded: T()
4176
4174
  }],
4177
4175
  /**
4178
4176
  * Border Radius Start
4179
4177
  * @see https://tailwindcss.com/docs/border-radius
4180
4178
  */
4181
4179
  "rounded-s": [{
4182
- "rounded-s": M()
4180
+ "rounded-s": T()
4183
4181
  }],
4184
4182
  /**
4185
4183
  * Border Radius End
4186
4184
  * @see https://tailwindcss.com/docs/border-radius
4187
4185
  */
4188
4186
  "rounded-e": [{
4189
- "rounded-e": M()
4187
+ "rounded-e": T()
4190
4188
  }],
4191
4189
  /**
4192
4190
  * Border Radius Top
4193
4191
  * @see https://tailwindcss.com/docs/border-radius
4194
4192
  */
4195
4193
  "rounded-t": [{
4196
- "rounded-t": M()
4194
+ "rounded-t": T()
4197
4195
  }],
4198
4196
  /**
4199
4197
  * Border Radius Right
4200
4198
  * @see https://tailwindcss.com/docs/border-radius
4201
4199
  */
4202
4200
  "rounded-r": [{
4203
- "rounded-r": M()
4201
+ "rounded-r": T()
4204
4202
  }],
4205
4203
  /**
4206
4204
  * Border Radius Bottom
4207
4205
  * @see https://tailwindcss.com/docs/border-radius
4208
4206
  */
4209
4207
  "rounded-b": [{
4210
- "rounded-b": M()
4208
+ "rounded-b": T()
4211
4209
  }],
4212
4210
  /**
4213
4211
  * Border Radius Left
4214
4212
  * @see https://tailwindcss.com/docs/border-radius
4215
4213
  */
4216
4214
  "rounded-l": [{
4217
- "rounded-l": M()
4215
+ "rounded-l": T()
4218
4216
  }],
4219
4217
  /**
4220
4218
  * Border Radius Start Start
4221
4219
  * @see https://tailwindcss.com/docs/border-radius
4222
4220
  */
4223
4221
  "rounded-ss": [{
4224
- "rounded-ss": M()
4222
+ "rounded-ss": T()
4225
4223
  }],
4226
4224
  /**
4227
4225
  * Border Radius Start End
4228
4226
  * @see https://tailwindcss.com/docs/border-radius
4229
4227
  */
4230
4228
  "rounded-se": [{
4231
- "rounded-se": M()
4229
+ "rounded-se": T()
4232
4230
  }],
4233
4231
  /**
4234
4232
  * Border Radius End End
4235
4233
  * @see https://tailwindcss.com/docs/border-radius
4236
4234
  */
4237
4235
  "rounded-ee": [{
4238
- "rounded-ee": M()
4236
+ "rounded-ee": T()
4239
4237
  }],
4240
4238
  /**
4241
4239
  * Border Radius End Start
4242
4240
  * @see https://tailwindcss.com/docs/border-radius
4243
4241
  */
4244
4242
  "rounded-es": [{
4245
- "rounded-es": M()
4243
+ "rounded-es": T()
4246
4244
  }],
4247
4245
  /**
4248
4246
  * Border Radius Top Left
4249
4247
  * @see https://tailwindcss.com/docs/border-radius
4250
4248
  */
4251
4249
  "rounded-tl": [{
4252
- "rounded-tl": M()
4250
+ "rounded-tl": T()
4253
4251
  }],
4254
4252
  /**
4255
4253
  * Border Radius Top Right
4256
4254
  * @see https://tailwindcss.com/docs/border-radius
4257
4255
  */
4258
4256
  "rounded-tr": [{
4259
- "rounded-tr": M()
4257
+ "rounded-tr": T()
4260
4258
  }],
4261
4259
  /**
4262
4260
  * Border Radius Bottom Right
4263
4261
  * @see https://tailwindcss.com/docs/border-radius
4264
4262
  */
4265
4263
  "rounded-br": [{
4266
- "rounded-br": M()
4264
+ "rounded-br": T()
4267
4265
  }],
4268
4266
  /**
4269
4267
  * Border Radius Bottom Left
4270
4268
  * @see https://tailwindcss.com/docs/border-radius
4271
4269
  */
4272
4270
  "rounded-bl": [{
4273
- "rounded-bl": M()
4271
+ "rounded-bl": T()
4274
4272
  }],
4275
4273
  /**
4276
4274
  * Border Width
4277
4275
  * @see https://tailwindcss.com/docs/border-width
4278
4276
  */
4279
4277
  "border-w": [{
4280
- border: T()
4278
+ border: M()
4281
4279
  }],
4282
4280
  /**
4283
4281
  * Border Width Inline
4284
4282
  * @see https://tailwindcss.com/docs/border-width
4285
4283
  */
4286
4284
  "border-w-x": [{
4287
- "border-x": T()
4285
+ "border-x": M()
4288
4286
  }],
4289
4287
  /**
4290
4288
  * Border Width Block
4291
4289
  * @see https://tailwindcss.com/docs/border-width
4292
4290
  */
4293
4291
  "border-w-y": [{
4294
- "border-y": T()
4292
+ "border-y": M()
4295
4293
  }],
4296
4294
  /**
4297
4295
  * Border Width Inline Start
4298
4296
  * @see https://tailwindcss.com/docs/border-width
4299
4297
  */
4300
4298
  "border-w-s": [{
4301
- "border-s": T()
4299
+ "border-s": M()
4302
4300
  }],
4303
4301
  /**
4304
4302
  * Border Width Inline End
4305
4303
  * @see https://tailwindcss.com/docs/border-width
4306
4304
  */
4307
4305
  "border-w-e": [{
4308
- "border-e": T()
4306
+ "border-e": M()
4309
4307
  }],
4310
4308
  /**
4311
4309
  * Border Width Block Start
4312
4310
  * @see https://tailwindcss.com/docs/border-width
4313
4311
  */
4314
4312
  "border-w-bs": [{
4315
- "border-bs": T()
4313
+ "border-bs": M()
4316
4314
  }],
4317
4315
  /**
4318
4316
  * Border Width Block End
4319
4317
  * @see https://tailwindcss.com/docs/border-width
4320
4318
  */
4321
4319
  "border-w-be": [{
4322
- "border-be": T()
4320
+ "border-be": M()
4323
4321
  }],
4324
4322
  /**
4325
4323
  * Border Width Top
4326
4324
  * @see https://tailwindcss.com/docs/border-width
4327
4325
  */
4328
4326
  "border-w-t": [{
4329
- "border-t": T()
4327
+ "border-t": M()
4330
4328
  }],
4331
4329
  /**
4332
4330
  * Border Width Right
4333
4331
  * @see https://tailwindcss.com/docs/border-width
4334
4332
  */
4335
4333
  "border-w-r": [{
4336
- "border-r": T()
4334
+ "border-r": M()
4337
4335
  }],
4338
4336
  /**
4339
4337
  * Border Width Bottom
4340
4338
  * @see https://tailwindcss.com/docs/border-width
4341
4339
  */
4342
4340
  "border-w-b": [{
4343
- "border-b": T()
4341
+ "border-b": M()
4344
4342
  }],
4345
4343
  /**
4346
4344
  * Border Width Left
4347
4345
  * @see https://tailwindcss.com/docs/border-width
4348
4346
  */
4349
4347
  "border-w-l": [{
4350
- "border-l": T()
4348
+ "border-l": M()
4351
4349
  }],
4352
4350
  /**
4353
4351
  * Divide Width X
4354
4352
  * @see https://tailwindcss.com/docs/border-width#between-children
4355
4353
  */
4356
4354
  "divide-x": [{
4357
- "divide-x": T()
4355
+ "divide-x": M()
4358
4356
  }],
4359
4357
  /**
4360
4358
  * Divide Width X Reverse
@@ -4366,7 +4364,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
4366
4364
  * @see https://tailwindcss.com/docs/border-width#between-children
4367
4365
  */
4368
4366
  "divide-y": [{
4369
- "divide-y": T()
4367
+ "divide-y": M()
4370
4368
  }],
4371
4369
  /**
4372
4370
  * Divide Width Y Reverse
@@ -4378,14 +4376,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
4378
4376
  * @see https://tailwindcss.com/docs/border-style
4379
4377
  */
4380
4378
  "border-style": [{
4381
- border: [...Te(), "hidden", "none"]
4379
+ border: [...Me(), "hidden", "none"]
4382
4380
  }],
4383
4381
  /**
4384
4382
  * Divide Style
4385
4383
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
4386
4384
  */
4387
4385
  "divide-style": [{
4388
- divide: [...Te(), "hidden", "none"]
4386
+ divide: [...Me(), "hidden", "none"]
4389
4387
  }],
4390
4388
  /**
4391
4389
  * Border Color
@@ -4476,7 +4474,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
4476
4474
  * @see https://tailwindcss.com/docs/outline-style
4477
4475
  */
4478
4476
  "outline-style": [{
4479
- outline: [...Te(), "none", "hidden"]
4477
+ outline: [...Me(), "none", "hidden"]
4480
4478
  }],
4481
4479
  /**
4482
4480
  * Outline Offset
@@ -4542,7 +4540,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
4542
4540
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
4543
4541
  */
4544
4542
  "ring-w": [{
4545
- ring: T()
4543
+ ring: M()
4546
4544
  }],
4547
4545
  /**
4548
4546
  * Ring Width Inset
@@ -4581,7 +4579,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
4581
4579
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
4582
4580
  */
4583
4581
  "inset-ring-w": [{
4584
- "inset-ring": T()
4582
+ "inset-ring": M()
4585
4583
  }],
4586
4584
  /**
4587
4585
  * Inset Ring Color
@@ -4791,14 +4789,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
4791
4789
  * @see https://tailwindcss.com/docs/mask-position
4792
4790
  */
4793
4791
  "mask-position": [{
4794
- mask: S()
4792
+ mask: A()
4795
4793
  }],
4796
4794
  /**
4797
4795
  * Mask Repeat
4798
4796
  * @see https://tailwindcss.com/docs/mask-repeat
4799
4797
  */
4800
4798
  "mask-repeat": [{
4801
- mask: Z()
4799
+ mask: B()
4802
4800
  }],
4803
4801
  /**
4804
4802
  * Mask Size
@@ -5095,14 +5093,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
5095
5093
  * @see https://tailwindcss.com/docs/perspective
5096
5094
  */
5097
5095
  perspective: [{
5098
- perspective: [E, p, h]
5096
+ perspective: [P, p, h]
5099
5097
  }],
5100
5098
  /**
5101
5099
  * Perspective Origin
5102
5100
  * @see https://tailwindcss.com/docs/perspective-origin
5103
5101
  */
5104
5102
  "perspective-origin": [{
5105
- "perspective-origin": j()
5103
+ "perspective-origin": z()
5106
5104
  }],
5107
5105
  /**
5108
5106
  * Rotate
@@ -5198,7 +5196,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
5198
5196
  * @see https://tailwindcss.com/docs/transform-origin
5199
5197
  */
5200
5198
  "transform-origin": [{
5201
- origin: j()
5199
+ origin: z()
5202
5200
  }],
5203
5201
  /**
5204
5202
  * Transform Style
@@ -5662,7 +5660,7 @@ const nd = Re(
5662
5660
  );
5663
5661
  function E1(t, e) {
5664
5662
  const { type: r = "button", variant: n, size: d, disabled: o, onClick: i } = t;
5665
- return w`
5663
+ return x`
5666
5664
  <button
5667
5665
  type=${r}
5668
5666
  class=${ht(nd({ variant: n, size: d }), t.class)}
@@ -5674,14 +5672,14 @@ function E1(t, e) {
5674
5672
  `;
5675
5673
  }
5676
5674
  function je(t, e) {
5677
- return w`<label
5675
+ return x`<label
5678
5676
  for=${e}
5679
5677
  class="pay:flex pay:items-center pay:gap-2 pay:text-sm pay:leading-none pay:font-medium pay:select-none"
5680
5678
  >${t}</label
5681
5679
  >`;
5682
5680
  }
5683
5681
  function at(t) {
5684
- return t ? w`<div
5682
+ return t ? x`<div
5685
5683
  role="alert"
5686
5684
  class="pay:text-destructive pay:text-sm pay:font-normal"
5687
5685
  >
@@ -5689,7 +5687,7 @@ function at(t) {
5689
5687
  </div>` : _;
5690
5688
  }
5691
5689
  function dd(t = "") {
5692
- return w`<div
5690
+ return x`<div
5693
5691
  class="pay:bg-accent pay:animate-pulse pay:rounded-md ${t}"
5694
5692
  ></div>`;
5695
5693
  }
@@ -5697,7 +5695,7 @@ function od() {
5697
5695
  return dd("pay:h-16 pay:w-full pay:rounded-xl");
5698
5696
  }
5699
5697
  function id() {
5700
- return w`<svg
5698
+ return x`<svg
5701
5699
  role="status"
5702
5700
  aria-label="Loading"
5703
5701
  class="pay:size-4 pay:animate-spin"
@@ -5750,7 +5748,7 @@ const $d = sd(pt), cd = Re(
5750
5748
  "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"
5751
5749
  );
5752
5750
  function a2(t) {
5753
- return w`
5751
+ return x`
5754
5752
  <div class="pay:relative pay:shrink-0 pay:w-4 pay:h-4">
5755
5753
  <input
5756
5754
  type="radio"
@@ -5779,14 +5777,14 @@ const s2 = Re(
5779
5777
  }
5780
5778
  );
5781
5779
  function fd(t) {
5782
- return w`
5780
+ return x`
5783
5781
  <label class=${s2({ size: "method" })}>
5784
5782
  ${a2(t)}
5785
5783
  <div
5786
5784
  class="pay:flex pay:items-center pay:gap-1 pay:grow pay:justify-between pay:ml-2"
5787
5785
  >
5788
5786
  <span class="pay:text-sm pay:font-medium">${t.label}</span>
5789
- ${t.logoSvg ? w`<span
5787
+ ${t.logoSvg ? x`<span
5790
5788
  class="pay:inline-flex pay:h-4 pay:shrink-0 pay:text-foreground pay:[&>svg]:block pay:[&>svg]:h-full pay:[&>svg]:w-auto"
5791
5789
  role="img"
5792
5790
  aria-label=${t.label}
@@ -5796,7 +5794,7 @@ function fd(t) {
5796
5794
  `;
5797
5795
  }
5798
5796
  function A1(t) {
5799
- return w`
5797
+ return x`
5800
5798
  <label class=${s2({ size: "channel" })}>
5801
5799
  ${a2(t)}
5802
5800
  <div
@@ -5810,7 +5808,7 @@ function A1(t) {
5810
5808
  }
5811
5809
  const hd = Re(
5812
5810
  "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"
5813
- ), Ue = hd(), pd = w`<svg
5811
+ ), Ue = hd(), pd = x`<svg
5814
5812
  class="pay:size-4 pay:text-muted-foreground"
5815
5813
  viewBox="0 0 24 24"
5816
5814
  fill="none"
@@ -5821,7 +5819,7 @@ const hd = Re(
5821
5819
  >
5822
5820
  <rect x="2" y="4" width="20" height="16" rx="2" />
5823
5821
  <path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
5824
- </svg>`, md = w`<svg
5822
+ </svg>`, md = x`<svg
5825
5823
  class="pay:size-4 pay:text-muted-foreground"
5826
5824
  viewBox="0 0 24 24"
5827
5825
  fill="none"
@@ -5833,14 +5831,14 @@ const hd = Re(
5833
5831
  <path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z" />
5834
5832
  </svg>`;
5835
5833
  function yd(t) {
5836
- return w`
5834
+ return x`
5837
5835
  <select
5838
5836
  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"
5839
5837
  aria-label=${t.label}
5840
5838
  @change=${t.onChange}
5841
5839
  >
5842
5840
  ${B1.map(
5843
- (e) => w`
5841
+ (e) => x`
5844
5842
  <option value=${e.code} ?selected=${e.code === t.value}>
5845
5843
  ${e.flag} ${e.code} ${e.dial}
5846
5844
  </option>
@@ -5850,7 +5848,7 @@ function yd(t) {
5850
5848
  `;
5851
5849
  }
5852
5850
  function gd() {
5853
- return w`
5851
+ return x`
5854
5852
  <div
5855
5853
  role="alert"
5856
5854
  class="pay:bg-red-50 pay:border pay:border-red-400 pay:text-red-700 pay:p-4 pay:rounded-md"
@@ -5859,14 +5857,14 @@ function gd() {
5859
5857
  </div>
5860
5858
  `;
5861
5859
  }
5862
- var bd = Object.defineProperty, A = (t, e, r, n) => {
5860
+ var bd = Object.defineProperty, S = (t, e, r, n) => {
5863
5861
  for (var d = void 0, o = t.length - 1, i; o >= 0; o--)
5864
5862
  (i = t[o]) && (d = i(e, r, d) || d);
5865
5863
  return d && bd(e, r, d), d;
5866
5864
  };
5867
- class P extends Ce {
5865
+ class E extends Ce {
5868
5866
  constructor() {
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";
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";
5870
5868
  }
5871
5869
  createRenderRoot() {
5872
5870
  return this;
@@ -5933,8 +5931,8 @@ class P extends Ce {
5933
5931
  _onCountryChange(e) {
5934
5932
  this._country = e.target.value;
5935
5933
  }
5936
- _onSubmit(e) {
5937
- e.preventDefault(), this._loading = !0, this._submitError = null;
5934
+ async _onSubmit(e) {
5935
+ e.preventDefault(), this._loading = !0;
5938
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 = {
5939
5937
  order_reference: this._paymentReference,
5940
5938
  channel: this._channel === "email" ? "email" : this._channel === "sms" ? "sms" : "link",
@@ -5943,19 +5941,23 @@ class P extends Ce {
5943
5941
  method: d,
5944
5942
  customer_contact: this._channel === "email" ? this._email : this._channel === "sms" ? this._phone : this._email,
5945
5943
  partner: n
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;
5944
+ };
5945
+ this._success = !0;
5946
+ try {
5947
+ await Promise.resolve(
5948
+ this.dispatchEvent(
5949
+ new CustomEvent("request-to-pay", {
5950
+ detail: o,
5951
+ bubbles: !0,
5952
+ composed: !0
5953
+ })
5954
+ )
5955
+ );
5956
+ } catch (i) {
5957
+ console.error(i);
5958
+ } finally {
5959
+ this._loading = !1;
5960
+ }
5959
5961
  }
5960
5962
  _onClose() {
5961
5963
  this._success = !1, this.dispatchEvent(
@@ -5975,7 +5977,7 @@ class P extends Ce {
5975
5977
  );
5976
5978
  }
5977
5979
  _renderChannels() {
5978
- return w`
5980
+ return x`
5979
5981
  ${A1({
5980
5982
  name: "channel",
5981
5983
  value: "email",
@@ -5996,7 +5998,7 @@ class P extends Ce {
5996
5998
  }
5997
5999
  _renderForm() {
5998
6000
  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;
5999
- return w`
6001
+ return x`
6000
6002
  <form @submit=${this._onSubmit} class="pay:space-y-4">
6001
6003
  <p
6002
6004
  class="pay:text-xl pay:font-bold pay:text-accent-foreground pay:text-center"
@@ -6051,7 +6053,7 @@ class P extends Ce {
6051
6053
  <div class="pay:grid pay:gap-1">${this._renderMethods()}</div>
6052
6054
  </div>
6053
6055
 
6054
- ${this._method ? w`
6056
+ ${this._method ? x`
6055
6057
  <div
6056
6058
  class="pay:animate-in pay:fade-in pay:slide-in-from-bottom-1 pay:duration-300"
6057
6059
  >
@@ -6063,7 +6065,7 @@ class P extends Ce {
6063
6065
  </div>
6064
6066
  </div>
6065
6067
  ` : _}
6066
- ${this._channel === "email" ? w`
6068
+ ${this._channel === "email" ? x`
6067
6069
  <div
6068
6070
  class="pay:flex pay:flex-col pay:gap-1 pay:animate-in pay:fade-in pay:slide-in-from-bottom-1 pay:duration-300"
6069
6071
  >
@@ -6085,7 +6087,7 @@ class P extends Ce {
6085
6087
  ${at(r && this._t.emailInvalid)}
6086
6088
  </div>
6087
6089
  ` : _}
6088
- ${this._channel === "sms" ? w`
6090
+ ${this._channel === "sms" ? x`
6089
6091
  <div
6090
6092
  class="pay:flex pay:flex-col pay:gap-1 pay:animate-in pay:fade-in pay:slide-in-from-bottom-1 pay:duration-300"
6091
6093
  >
@@ -6110,12 +6112,6 @@ class P extends Ce {
6110
6112
  ${at(n && this._t.phoneInvalid)}
6111
6113
  </div>
6112
6114
  ` : _}
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>` : _}
6119
6115
  ${E1(
6120
6116
  {
6121
6117
  type: "submit",
@@ -6128,7 +6124,7 @@ class P extends Ce {
6128
6124
  `;
6129
6125
  }
6130
6126
  _renderSuccess() {
6131
- return w`
6127
+ return x`
6132
6128
  <div
6133
6129
  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"
6134
6130
  >
@@ -6136,92 +6132,89 @@ class P extends Ce {
6136
6132
  <h2 class="pay:text-xl pay:font-bold pay:text-accent-foreground">
6137
6133
  ${this._t.paymentLinkSent}
6138
6134
  </h2>
6139
- ${this._channel === "email" ? w`<p>
6135
+ ${this._channel === "email" ? x`<p>
6140
6136
  ${this._t.emailSentTo} <strong>${this._email}</strong>
6141
- </p>` : w`<p>${this._t.smsSentTo} <strong>${this._phone}</strong></p>`}
6137
+ </p>` : x`<p>${this._t.smsSentTo} <strong>${this._phone}</strong></p>`}
6142
6138
  ${E1({ type: "button", onClick: this._onClose }, this._t.close)}
6143
6139
  </div>
6144
6140
  </div>
6145
6141
  `;
6146
6142
  }
6147
6143
  render() {
6148
- return !this._methodsLoading && this._methodsError ? w`<div class="pay:p-4">${gd()}</div>` : w`
6144
+ return !this._methodsLoading && this._methodsError ? x`<div class="pay:p-4">${gd()}</div>` : x`
6149
6145
  <div class="pay:relative pay:p-4 pay:space-y-6">
6150
6146
  ${this._renderForm()} ${this._success ? this._renderSuccess() : _}
6151
6147
  </div>
6152
6148
  `;
6153
6149
  }
6154
6150
  }
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([
6151
+ S([
6152
+ G({ type: String })
6153
+ ], E.prototype, "token");
6154
+ S([
6155
+ G({ type: String })
6156
+ ], E.prototype, "currency");
6157
+ S([
6158
+ G({ type: String, attribute: "default-amount" })
6159
+ ], E.prototype, "defaultAmount");
6160
+ S([
6161
+ G({ type: String, attribute: "default-reference" })
6162
+ ], E.prototype, "defaultReference");
6163
+ S([
6164
+ G({ type: Boolean, attribute: "read-only-amount" })
6165
+ ], E.prototype, "readOnlyAmount");
6166
+ S([
6167
+ G({ type: String, attribute: "customer-name" })
6168
+ ], E.prototype, "customerName");
6169
+ S([
6170
+ G({ type: String, attribute: "customer-email" })
6171
+ ], E.prototype, "customerEmail");
6172
+ S([
6173
+ G({ type: String, attribute: "customer-phone" })
6174
+ ], E.prototype, "customerPhone");
6175
+ S([
6176
+ G({ type: String })
6177
+ ], E.prototype, "locale");
6178
+ S([
6179
+ G({ type: String, attribute: "pay-client-ref" })
6180
+ ], E.prototype, "payClientRef");
6181
+ S([
6186
6182
  H()
6187
- ], P.prototype, "_amount");
6188
- A([
6183
+ ], E.prototype, "_amount");
6184
+ S([
6189
6185
  H()
6190
- ], P.prototype, "_email");
6191
- A([
6186
+ ], E.prototype, "_email");
6187
+ S([
6192
6188
  H()
6193
- ], P.prototype, "_phone");
6194
- A([
6189
+ ], E.prototype, "_phone");
6190
+ S([
6195
6191
  H()
6196
- ], P.prototype, "_paymentReference");
6197
- A([
6192
+ ], E.prototype, "_paymentReference");
6193
+ S([
6198
6194
  H()
6199
- ], P.prototype, "_method");
6200
- A([
6195
+ ], E.prototype, "_method");
6196
+ S([
6201
6197
  H()
6202
- ], P.prototype, "_channel");
6203
- A([
6198
+ ], E.prototype, "_channel");
6199
+ S([
6204
6200
  H()
6205
- ], P.prototype, "_country");
6206
- A([
6201
+ ], E.prototype, "_country");
6202
+ S([
6207
6203
  H()
6208
- ], P.prototype, "_loading");
6209
- A([
6204
+ ], E.prototype, "_loading");
6205
+ S([
6210
6206
  H()
6211
- ], P.prototype, "_success");
6212
- A([
6207
+ ], E.prototype, "_success");
6208
+ S([
6213
6209
  H()
6214
- ], P.prototype, "_submitError");
6215
- A([
6210
+ ], E.prototype, "_paymentMethods");
6211
+ S([
6216
6212
  H()
6217
- ], P.prototype, "_paymentMethods");
6218
- A([
6213
+ ], E.prototype, "_methodsLoading");
6214
+ S([
6219
6215
  H()
6220
- ], P.prototype, "_methodsLoading");
6221
- A([
6222
- H()
6223
- ], P.prototype, "_methodsError");
6224
- customElements.get("openhive-pay") || customElements.define("openhive-pay", P);
6216
+ ], E.prototype, "_methodsError");
6217
+ customElements.get("openhive-pay") || customElements.define("openhive-pay", E);
6225
6218
  function Pd({
6226
6219
  token: t,
6227
6220
  currency: e,
@@ -6238,10 +6231,10 @@ function Pd({
6238
6231
  className: u,
6239
6232
  style: g
6240
6233
  }) {
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);
6234
+ const b = Ot(null), P = Ot(l);
6235
+ P.current = l;
6236
+ const w = $2((v) => {
6237
+ b.current = v, v && P.current !== void 0 && (v.payClient = P.current);
6245
6238
  }, []);
6246
6239
  return Rt(() => {
6247
6240
  b.current && (b.current.payClient = l);
@@ -6249,12 +6242,7 @@ function Pd({
6249
6242
  const v = b.current;
6250
6243
  if (!v) return;
6251
6244
  const L = (V) => {
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
- });
6245
+ c?.(V.detail);
6258
6246
  }, F = () => $?.();
6259
6247
  return v.addEventListener("request-to-pay", L), v.addEventListener("close", F), () => {
6260
6248
  v.removeEventListener("request-to-pay", L), v.removeEventListener("close", F);
@@ -6262,7 +6250,7 @@ function Pd({
6262
6250
  }, [c, $]), /* @__PURE__ */ l2(
6263
6251
  "openhive-pay",
6264
6252
  {
6265
- ref: x,
6253
+ ref: w,
6266
6254
  token: t,
6267
6255
  currency: e,
6268
6256
  "default-amount": r,