@bpinternal/billing-ui 0.0.1 → 0.0.2
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 +190 -191
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { jsx as t, jsxs as s, Fragment as
|
|
2
|
+
import { jsx as t, jsxs as s, Fragment as pe } from "react/jsx-runtime";
|
|
3
3
|
import { QueryClient as Gt, hydrate as jt, dehydrate as Vt, useQuery as fe, useMutation as Ue } from "@tanstack/react-query";
|
|
4
|
-
import { useState as O, useMemo as ye, useEffect as Ae, useCallback as
|
|
4
|
+
import { useState as O, useMemo as ye, useEffect as Ae, useCallback as an, createContext as Kt, useContext as Yn, useRef as Hn } from "react";
|
|
5
5
|
import { loadStripe as Yt } from "@stripe/stripe-js";
|
|
6
6
|
import { createPortal as Ht } from "react-dom";
|
|
7
7
|
import { CardElement as Xe, AddressElement as Qn, useStripe as Zn, useElements as Jn, Elements as Xn } from "@stripe/react-stripe-js";
|
|
@@ -55,7 +55,7 @@ const Zr = ({
|
|
|
55
55
|
window.localStorage.removeItem(L);
|
|
56
56
|
}
|
|
57
57
|
let b = null;
|
|
58
|
-
const
|
|
58
|
+
const T = h.getQueryCache().subscribe((S) => {
|
|
59
59
|
S.type !== "added" && S.type !== "removed" && S.type !== "updated" || (b && clearTimeout(b), b = setTimeout(() => {
|
|
60
60
|
try {
|
|
61
61
|
window.localStorage.setItem(L, JSON.stringify(Vt(h)));
|
|
@@ -64,10 +64,10 @@ const Zr = ({
|
|
|
64
64
|
}, 250));
|
|
65
65
|
});
|
|
66
66
|
return () => {
|
|
67
|
-
b && clearTimeout(b),
|
|
67
|
+
b && clearTimeout(b), T();
|
|
68
68
|
};
|
|
69
69
|
}, [u, v, h]);
|
|
70
|
-
const B =
|
|
70
|
+
const B = an(() => h.invalidateQueries({ queryKey: ["bpb", v] }), [h, v]), E = an((L) => y == null ? void 0 : y(L), [y]), f = _ > 0 ? _ : !1, I = ye(
|
|
71
71
|
() => ({
|
|
72
72
|
client: e,
|
|
73
73
|
queryClient: h,
|
|
@@ -478,7 +478,7 @@ const ra = (e, n) => {
|
|
|
478
478
|
i in a ? a[i] = l : o(i, l);
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
|
-
},
|
|
481
|
+
}, rn = "!", $n = ":", ya = [], Un = (e, n, a, r, o) => ({
|
|
482
482
|
modifiers: e,
|
|
483
483
|
hasImportantModifier: n,
|
|
484
484
|
baseClassName: a,
|
|
@@ -509,12 +509,12 @@ const ra = (e, n) => {
|
|
|
509
509
|
}
|
|
510
510
|
const p = i.length === 0 ? o : o.slice(c);
|
|
511
511
|
let y = p, _ = !1;
|
|
512
|
-
p.endsWith(
|
|
512
|
+
p.endsWith(rn) ? (y = p.slice(0, -1), _ = !0) : (
|
|
513
513
|
/**
|
|
514
514
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
515
515
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
516
516
|
*/
|
|
517
|
-
p.startsWith(
|
|
517
|
+
p.startsWith(rn) && (y = p.slice(1), _ = !0)
|
|
518
518
|
);
|
|
519
519
|
const w = m && m > c ? m - c : void 0;
|
|
520
520
|
return Un(i, _, y, w);
|
|
@@ -596,7 +596,7 @@ const ra = (e, n) => {
|
|
|
596
596
|
}
|
|
597
597
|
C = !1;
|
|
598
598
|
}
|
|
599
|
-
const B = _.length === 0 ? "" : _.length === 1 ? _[0] : i(_).join(":"), E = w ? B +
|
|
599
|
+
const B = _.length === 0 ? "" : _.length === 1 ? _[0] : i(_).join(":"), E = w ? B + rn : B, f = E + x;
|
|
600
600
|
if (d.indexOf(f) > -1)
|
|
601
601
|
continue;
|
|
602
602
|
d.push(f);
|
|
@@ -636,7 +636,7 @@ const ra = (e, n) => {
|
|
|
636
636
|
}, Sa = [], ie = (e) => {
|
|
637
637
|
const n = (a) => a[e] || Sa;
|
|
638
638
|
return n.isThemeGetter = !0, n;
|
|
639
|
-
}, ht = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, gt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ia = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Aa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ma = /\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$/, Ta = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ba = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, La = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ie = (e) => Ia.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), ke = (e) => !!e && Number.isInteger(Number(e)),
|
|
639
|
+
}, ht = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, gt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ia = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Aa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ma = /\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$/, Ta = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ba = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, La = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ie = (e) => Ia.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), ke = (e) => !!e && Number.isInteger(Number(e)), nn = (e) => e.endsWith("%") && z(e.slice(0, -1)), xe = (e) => Aa.test(e), yt = () => !0, Pa = (e) => (
|
|
640
640
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
641
641
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
642
642
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
@@ -666,15 +666,15 @@ const ra = (e, n) => {
|
|
|
666
666
|
"bottom-left",
|
|
667
667
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
668
668
|
"left-bottom"
|
|
669
|
-
], f = () => [...E(), N, k], I = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], b = () => [N, k, c],
|
|
669
|
+
], f = () => [...E(), N, k], I = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], b = () => [N, k, c], T = () => [Ie, "full", "auto", ...b()], S = () => [ke, "none", "subgrid", N, k], X = () => ["auto", {
|
|
670
670
|
span: ["full", ke, N, k]
|
|
671
|
-
}, ke, N, k], Z = () => [ke, "auto", N, k],
|
|
671
|
+
}, ke, N, k], Z = () => [ke, "auto", N, k], be = () => ["auto", "min", "max", "fr", N, k], ue = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], re = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], P = () => ["auto", ...b()], J = () => [Ie, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], A = () => [Ie, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...b()], se = () => [Ie, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...b()], g = () => [e, N, k], F = () => [...E(), Fn, qn, {
|
|
672
672
|
position: [N, k]
|
|
673
673
|
}], $ = () => ["no-repeat", {
|
|
674
674
|
repeat: ["", "x", "y", "space", "round"]
|
|
675
675
|
}], W = () => ["auto", "cover", "contain", Wa, $a, {
|
|
676
676
|
size: [N, k]
|
|
677
|
-
}], K = () => [
|
|
677
|
+
}], K = () => [nn, qe, ze], G = () => [
|
|
678
678
|
// Deprecated since Tailwind CSS v4.0.0
|
|
679
679
|
"",
|
|
680
680
|
"none",
|
|
@@ -682,7 +682,7 @@ const ra = (e, n) => {
|
|
|
682
682
|
m,
|
|
683
683
|
N,
|
|
684
684
|
k
|
|
685
|
-
], Y = () => ["", z, qe, ze], _e = () => ["solid", "dashed", "dotted", "double"], me = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [z,
|
|
685
|
+
], Y = () => ["", z, qe, ze], _e = () => ["solid", "dashed", "dotted", "double"], me = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [z, nn, Fn, qn], le = () => [
|
|
686
686
|
// Deprecated since Tailwind CSS v4.0.0
|
|
687
687
|
"",
|
|
688
688
|
"none",
|
|
@@ -879,21 +879,21 @@ const ra = (e, n) => {
|
|
|
879
879
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
880
880
|
*/
|
|
881
881
|
inset: [{
|
|
882
|
-
inset:
|
|
882
|
+
inset: T()
|
|
883
883
|
}],
|
|
884
884
|
/**
|
|
885
885
|
* Inset Inline
|
|
886
886
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
887
887
|
*/
|
|
888
888
|
"inset-x": [{
|
|
889
|
-
"inset-x":
|
|
889
|
+
"inset-x": T()
|
|
890
890
|
}],
|
|
891
891
|
/**
|
|
892
892
|
* Inset Block
|
|
893
893
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
894
894
|
*/
|
|
895
895
|
"inset-y": [{
|
|
896
|
-
"inset-y":
|
|
896
|
+
"inset-y": T()
|
|
897
897
|
}],
|
|
898
898
|
/**
|
|
899
899
|
* Inset Inline Start
|
|
@@ -901,12 +901,12 @@ const ra = (e, n) => {
|
|
|
901
901
|
* @todo class group will be renamed to `inset-s` in next major release
|
|
902
902
|
*/
|
|
903
903
|
start: [{
|
|
904
|
-
"inset-s":
|
|
904
|
+
"inset-s": T(),
|
|
905
905
|
/**
|
|
906
906
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
|
907
907
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
908
908
|
*/
|
|
909
|
-
start:
|
|
909
|
+
start: T()
|
|
910
910
|
}],
|
|
911
911
|
/**
|
|
912
912
|
* Inset Inline End
|
|
@@ -914,54 +914,54 @@ const ra = (e, n) => {
|
|
|
914
914
|
* @todo class group will be renamed to `inset-e` in next major release
|
|
915
915
|
*/
|
|
916
916
|
end: [{
|
|
917
|
-
"inset-e":
|
|
917
|
+
"inset-e": T(),
|
|
918
918
|
/**
|
|
919
919
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
|
920
920
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
921
921
|
*/
|
|
922
|
-
end:
|
|
922
|
+
end: T()
|
|
923
923
|
}],
|
|
924
924
|
/**
|
|
925
925
|
* Inset Block Start
|
|
926
926
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
927
927
|
*/
|
|
928
928
|
"inset-bs": [{
|
|
929
|
-
"inset-bs":
|
|
929
|
+
"inset-bs": T()
|
|
930
930
|
}],
|
|
931
931
|
/**
|
|
932
932
|
* Inset Block End
|
|
933
933
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
934
934
|
*/
|
|
935
935
|
"inset-be": [{
|
|
936
|
-
"inset-be":
|
|
936
|
+
"inset-be": T()
|
|
937
937
|
}],
|
|
938
938
|
/**
|
|
939
939
|
* Top
|
|
940
940
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
941
941
|
*/
|
|
942
942
|
top: [{
|
|
943
|
-
top:
|
|
943
|
+
top: T()
|
|
944
944
|
}],
|
|
945
945
|
/**
|
|
946
946
|
* Right
|
|
947
947
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
948
948
|
*/
|
|
949
949
|
right: [{
|
|
950
|
-
right:
|
|
950
|
+
right: T()
|
|
951
951
|
}],
|
|
952
952
|
/**
|
|
953
953
|
* Bottom
|
|
954
954
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
955
955
|
*/
|
|
956
956
|
bottom: [{
|
|
957
|
-
bottom:
|
|
957
|
+
bottom: T()
|
|
958
958
|
}],
|
|
959
959
|
/**
|
|
960
960
|
* Left
|
|
961
961
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
962
962
|
*/
|
|
963
963
|
left: [{
|
|
964
|
-
left:
|
|
964
|
+
left: T()
|
|
965
965
|
}],
|
|
966
966
|
/**
|
|
967
967
|
* Visibility
|
|
@@ -1095,14 +1095,14 @@ const ra = (e, n) => {
|
|
|
1095
1095
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1096
1096
|
*/
|
|
1097
1097
|
"auto-cols": [{
|
|
1098
|
-
"auto-cols":
|
|
1098
|
+
"auto-cols": be()
|
|
1099
1099
|
}],
|
|
1100
1100
|
/**
|
|
1101
1101
|
* Grid Auto Rows
|
|
1102
1102
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1103
1103
|
*/
|
|
1104
1104
|
"auto-rows": [{
|
|
1105
|
-
"auto-rows":
|
|
1105
|
+
"auto-rows": be()
|
|
1106
1106
|
}],
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Gap
|
|
@@ -1514,7 +1514,7 @@ const ra = (e, n) => {
|
|
|
1514
1514
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1515
1515
|
*/
|
|
1516
1516
|
"font-stretch": [{
|
|
1517
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1517
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", nn, k]
|
|
1518
1518
|
}],
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Font Family
|
|
@@ -3333,7 +3333,7 @@ const ra = (e, n) => {
|
|
|
3333
3333
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3334
3334
|
};
|
|
3335
3335
|
}, Ya = /* @__PURE__ */ xa(Ka);
|
|
3336
|
-
function
|
|
3336
|
+
function M(...e) {
|
|
3337
3337
|
return Ya(aa(e));
|
|
3338
3338
|
}
|
|
3339
3339
|
function j(e, n = "usd", a = 2) {
|
|
@@ -3512,7 +3512,7 @@ function It(e, n, a) {
|
|
|
3512
3512
|
const o = ((l = r.increments) == null ? void 0 : l.conversation_sessions) ?? 0, i = gn(r, n, a);
|
|
3513
3513
|
return o <= 0 || !i || i.amount <= 0 ? null : { packSize: o, amount: i.amount, currency: i.currency };
|
|
3514
3514
|
}
|
|
3515
|
-
const At = ({ variant: e = "accent", children: n, className: a }) => /* @__PURE__ */ t("span", { className:
|
|
3515
|
+
const At = ({ variant: e = "accent", children: n, className: a }) => /* @__PURE__ */ t("span", { className: M("bpb-badge", `bpb-badge--${e}`, a), children: n }), de = ({
|
|
3516
3516
|
variant: e = "primary",
|
|
3517
3517
|
size: n = "md",
|
|
3518
3518
|
block: a = !1,
|
|
@@ -3526,7 +3526,7 @@ const At = ({ variant: e = "accent", children: n, className: a }) => /* @__PURE_
|
|
|
3526
3526
|
"button",
|
|
3527
3527
|
{
|
|
3528
3528
|
type: d,
|
|
3529
|
-
className:
|
|
3529
|
+
className: M("bpb-btn", `bpb-btn--${e}`, `bpb-btn--${n}`, a && "bpb-btn--block", o),
|
|
3530
3530
|
disabled: i || r,
|
|
3531
3531
|
"data-loading": r || void 0,
|
|
3532
3532
|
...c,
|
|
@@ -3722,7 +3722,7 @@ const At = ({ variant: e = "accent", children: n, className: a }) => /* @__PURE_
|
|
|
3722
3722
|
] }), gr = ({ size: e, ...n }) => /* @__PURE__ */ s("svg", { ...Q(e, n), children: [
|
|
3723
3723
|
/* @__PURE__ */ t("rect", { x: "2.5", y: "3.5", width: "11", height: "10", rx: "1.5", stroke: "currentColor", strokeWidth: "1.3" }),
|
|
3724
3724
|
/* @__PURE__ */ t("path", { d: "M2.5 6.5h11M5.5 2v2.5M10.5 2v2.5", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round" })
|
|
3725
|
-
] }),
|
|
3725
|
+
] }), sn = ({ brand: e }) => {
|
|
3726
3726
|
const n = e === "visa" ? "VISA" : e === "mastercard" ? "MC" : e === "amex" ? "AMEX" : e === "discover" ? "DISC" : e.slice(0, 4).toUpperCase();
|
|
3727
3727
|
return /* @__PURE__ */ t(
|
|
3728
3728
|
"span",
|
|
@@ -3759,7 +3759,7 @@ const Ne = ({
|
|
|
3759
3759
|
showClose: i = !0,
|
|
3760
3760
|
...l
|
|
3761
3761
|
}) => {
|
|
3762
|
-
const d = Hn(null), c = Jt(), m =
|
|
3762
|
+
const d = Hn(null), c = Jt(), m = an(() => n(!1), [n]);
|
|
3763
3763
|
return Ae(() => {
|
|
3764
3764
|
var y;
|
|
3765
3765
|
if (!e)
|
|
@@ -3781,7 +3781,7 @@ const Ne = ({
|
|
|
3781
3781
|
"aria-modal": "true",
|
|
3782
3782
|
"aria-label": l["aria-label"],
|
|
3783
3783
|
tabIndex: -1,
|
|
3784
|
-
className:
|
|
3784
|
+
className: M("bpb-dialog", `bpb-dialog--${a}`, o),
|
|
3785
3785
|
onClick: (u) => u.stopPropagation(),
|
|
3786
3786
|
children: [
|
|
3787
3787
|
i && /* @__PURE__ */ t("button", { type: "button", className: "bpb-dialog__close", "aria-label": "Close", onClick: m, children: /* @__PURE__ */ t(_n, { size: 18 }) }),
|
|
@@ -3791,7 +3791,7 @@ const Ne = ({
|
|
|
3791
3791
|
) }),
|
|
3792
3792
|
document.body
|
|
3793
3793
|
) : null;
|
|
3794
|
-
},
|
|
3794
|
+
}, on = ({ label: e, children: n }) => /* @__PURE__ */ s("span", { className: "bpb-tooltip", tabIndex: 0, role: "note", children: [
|
|
3795
3795
|
/* @__PURE__ */ t("span", { className: "bpb-tooltip__term", children: e }),
|
|
3796
3796
|
/* @__PURE__ */ t("span", { className: "bpb-tooltip__bubble", role: "tooltip", children: n })
|
|
3797
3797
|
] }), Oe = () => {
|
|
@@ -3810,7 +3810,7 @@ const Ne = ({
|
|
|
3810
3810
|
onChange: a,
|
|
3811
3811
|
className: r,
|
|
3812
3812
|
...o
|
|
3813
|
-
}) => /* @__PURE__ */ t("div", { role: "radiogroup", "aria-label": o["aria-label"], className:
|
|
3813
|
+
}) => /* @__PURE__ */ t("div", { role: "radiogroup", "aria-label": o["aria-label"], className: M("bpb-segmented", r), children: e.map((i) => {
|
|
3814
3814
|
const l = i.value === n;
|
|
3815
3815
|
return /* @__PURE__ */ s(
|
|
3816
3816
|
"button",
|
|
@@ -3818,7 +3818,7 @@ const Ne = ({
|
|
|
3818
3818
|
type: "button",
|
|
3819
3819
|
role: "radio",
|
|
3820
3820
|
"aria-checked": l,
|
|
3821
|
-
className:
|
|
3821
|
+
className: M("bpb-segmented__option", l && "bpb-segmented__option--selected"),
|
|
3822
3822
|
onClick: () => a(i.value),
|
|
3823
3823
|
children: [
|
|
3824
3824
|
i.label,
|
|
@@ -3831,7 +3831,7 @@ const Ne = ({
|
|
|
3831
3831
|
"span",
|
|
3832
3832
|
{
|
|
3833
3833
|
"aria-hidden": !0,
|
|
3834
|
-
className:
|
|
3834
|
+
className: M("bpb-skeleton", a && "bpb-skeleton--rounded", r),
|
|
3835
3835
|
style: { width: e ?? "100%", height: n }
|
|
3836
3836
|
}
|
|
3837
3837
|
);
|
|
@@ -3867,9 +3867,9 @@ const kr = ({
|
|
|
3867
3867
|
featureDescriptions: d
|
|
3868
3868
|
}) => {
|
|
3869
3869
|
var re, P, J;
|
|
3870
|
-
const { isOutdatedBilling: c, toast: m, analytics: u } = D(), [p, y] = O(o), { data: _, isLoading: w } = Te(), { data: v } = Fe(), { data: h } = Se({ enabled: e }), { data: C } = rt({ enabled: e }), x = ct(), B = (C == null ? void 0 : C.planReadonly) ?? !1, E = h == null ? void 0 : h.plan.current.interval, f = _ == null ? void 0 : _.find((A) => A.id === (h == null ? void 0 : h.plan.current.planId)), I = h ? f ? ge(f) : "community" : void 0, L = ((re = h == null ? void 0 : h.plan.next) == null ? void 0 : re.planId) ?? null, b = !!L && L !== (h == null ? void 0 : h.plan.current.planId),
|
|
3870
|
+
const { isOutdatedBilling: c, toast: m, analytics: u } = D(), [p, y] = O(o), { data: _, isLoading: w } = Te(), { data: v } = Fe(), { data: h } = Se({ enabled: e }), { data: C } = rt({ enabled: e }), x = ct(), B = (C == null ? void 0 : C.planReadonly) ?? !1, E = h == null ? void 0 : h.plan.current.interval, f = _ == null ? void 0 : _.find((A) => A.id === (h == null ? void 0 : h.plan.current.planId)), I = h ? f ? ge(f) : "community" : void 0, L = ((re = h == null ? void 0 : h.plan.next) == null ? void 0 : re.planId) ?? null, b = !!L && L !== (h == null ? void 0 : h.plan.current.planId), T = B || I === "enterprise" || I === "managed", S = ye(() => _ ? _.filter(
|
|
3871
3871
|
(A) => ge(A) !== "managed" && ge(A) !== "enterprise" && !i.includes(A.id)
|
|
3872
|
-
).sort((A, se) => Ze.indexOf(ge(A)) - Ze.indexOf(ge(se))) : [], [_, i]), X = ye(() => vr(S), [S]), Z = ((J = (P = _ == null ? void 0 : _.find((A) => ge(A) === "enterprise")) == null ? void 0 : P.metadata) == null ? void 0 : J.contact_url) ?? Ja,
|
|
3872
|
+
).sort((A, se) => Ze.indexOf(ge(A)) - Ze.indexOf(ge(se))) : [], [_, i]), X = ye(() => vr(S), [S]), Z = ((J = (P = _ == null ? void 0 : _.find((A) => ge(A) === "enterprise")) == null ? void 0 : P.metadata) == null ? void 0 : J.contact_url) ?? Ja, be = (A) => {
|
|
3873
3873
|
x.mutate(
|
|
3874
3874
|
{ planId: A.id, interval: p },
|
|
3875
3875
|
{
|
|
@@ -3925,7 +3925,7 @@ const kr = ({
|
|
|
3925
3925
|
return /* @__PURE__ */ s(
|
|
3926
3926
|
"div",
|
|
3927
3927
|
{
|
|
3928
|
-
className:
|
|
3928
|
+
className: M("bpb-plan-card", me && "bpb-plan-card--highlighted"),
|
|
3929
3929
|
"data-plan-id": A.id,
|
|
3930
3930
|
children: [
|
|
3931
3931
|
/* @__PURE__ */ s("div", { className: "bpb-plan-card__header", children: [
|
|
@@ -3934,7 +3934,7 @@ const kr = ({
|
|
|
3934
3934
|
me && /* @__PURE__ */ t(At, { className: "bpb-plan-card__badge", children: "Recommended" })
|
|
3935
3935
|
] }),
|
|
3936
3936
|
/* @__PURE__ */ t("p", { className: "bpb-plan-card__tagline", children: A.description }),
|
|
3937
|
-
/* @__PURE__ */ t("div", { className: "bpb-plan-card__price", children: $ !== null && F ? /* @__PURE__ */ s(
|
|
3937
|
+
/* @__PURE__ */ t("div", { className: "bpb-plan-card__price", children: $ !== null && F ? /* @__PURE__ */ s(pe, { children: [
|
|
3938
3938
|
/* @__PURE__ */ t("span", { className: "bpb-plan-card__currency", children: Qa(F.currency) }),
|
|
3939
3939
|
/* @__PURE__ */ t("span", { className: "bpb-plan-card__amount", children: Number.isInteger($) ? $ : $.toFixed(2).replace(/\.00$/, "") }),
|
|
3940
3940
|
/* @__PURE__ */ s("span", { className: "bpb-plan-card__per", children: [
|
|
@@ -3969,9 +3969,9 @@ const kr = ({
|
|
|
3969
3969
|
{
|
|
3970
3970
|
variant: "outline",
|
|
3971
3971
|
block: !0,
|
|
3972
|
-
disabled:
|
|
3972
|
+
disabled: T || x.isPending,
|
|
3973
3973
|
loading: R,
|
|
3974
|
-
onClick: () =>
|
|
3974
|
+
onClick: () => be(A),
|
|
3975
3975
|
children: "Downgrade"
|
|
3976
3976
|
}
|
|
3977
3977
|
),
|
|
@@ -3980,8 +3980,8 @@ const kr = ({
|
|
|
3980
3980
|
{
|
|
3981
3981
|
variant: "primary",
|
|
3982
3982
|
block: !0,
|
|
3983
|
-
disabled:
|
|
3984
|
-
title:
|
|
3983
|
+
disabled: T || x.isPending,
|
|
3984
|
+
title: T ? "Your plan is managed by Botpress — contact us to change it" : void 0,
|
|
3985
3985
|
onClick: () => {
|
|
3986
3986
|
var H;
|
|
3987
3987
|
(H = u.trackPlanUpgradeInitiated) == null || H.call(u, {
|
|
@@ -3998,8 +3998,8 @@ const kr = ({
|
|
|
3998
3998
|
{
|
|
3999
3999
|
variant: me ? "accent" : "primary",
|
|
4000
4000
|
block: !0,
|
|
4001
|
-
disabled:
|
|
4002
|
-
title:
|
|
4001
|
+
disabled: T || x.isPending,
|
|
4002
|
+
title: T ? "Your plan is managed by Botpress — contact us to change it" : void 0,
|
|
4003
4003
|
onClick: () => {
|
|
4004
4004
|
var H;
|
|
4005
4005
|
(H = u.trackPlanUpgradeInitiated) == null || H.call(u, {
|
|
@@ -4023,7 +4023,7 @@ const kr = ({
|
|
|
4023
4023
|
const ve = Tt(H), we = er(H, d);
|
|
4024
4024
|
return /* @__PURE__ */ s("li", { children: [
|
|
4025
4025
|
/* @__PURE__ */ t("span", { className: "bpb-plan-card__feature-chip", children: /* @__PURE__ */ t(ve, { size: 13 }) }),
|
|
4026
|
-
we ? /* @__PURE__ */ t(
|
|
4026
|
+
we ? /* @__PURE__ */ t(on, { label: H, children: we }) : /* @__PURE__ */ t("span", { children: H })
|
|
4027
4027
|
] }, H);
|
|
4028
4028
|
})
|
|
4029
4029
|
] })
|
|
@@ -4044,13 +4044,13 @@ const kr = ({
|
|
|
4044
4044
|
"."
|
|
4045
4045
|
] })
|
|
4046
4046
|
] }) });
|
|
4047
|
-
},
|
|
4047
|
+
}, ln = '-apple-system, "ui-sans-serif", "system-ui", "Segoe UI", Helvetica, Arial, sans-serif', cn = "14px", Kn = "10px";
|
|
4048
4048
|
function Bt(e) {
|
|
4049
4049
|
return e ? {
|
|
4050
4050
|
theme: "night",
|
|
4051
4051
|
variables: {
|
|
4052
|
-
fontFamily:
|
|
4053
|
-
fontSizeBase:
|
|
4052
|
+
fontFamily: ln,
|
|
4053
|
+
fontSizeBase: cn,
|
|
4054
4054
|
borderRadius: Kn,
|
|
4055
4055
|
colorPrimary: "#ececec",
|
|
4056
4056
|
colorBackground: "#1c1c1c",
|
|
@@ -4074,8 +4074,8 @@ function Bt(e) {
|
|
|
4074
4074
|
} : {
|
|
4075
4075
|
theme: "stripe",
|
|
4076
4076
|
variables: {
|
|
4077
|
-
fontFamily:
|
|
4078
|
-
fontSizeBase:
|
|
4077
|
+
fontFamily: ln,
|
|
4078
|
+
fontSizeBase: cn,
|
|
4079
4079
|
borderRadius: Kn,
|
|
4080
4080
|
colorPrimary: "#0d0d0d",
|
|
4081
4081
|
colorBackground: "#f7f7f7",
|
|
@@ -4107,8 +4107,8 @@ function Bt(e) {
|
|
|
4107
4107
|
function Lt(e) {
|
|
4108
4108
|
return {
|
|
4109
4109
|
base: {
|
|
4110
|
-
fontFamily:
|
|
4111
|
-
fontSize:
|
|
4110
|
+
fontFamily: ln,
|
|
4111
|
+
fontSize: cn,
|
|
4112
4112
|
color: e ? "#f9f9f9" : "#0d0d0d",
|
|
4113
4113
|
"::placeholder": { color: e ? "#9b9b9b" : "#8f8f8f" }
|
|
4114
4114
|
},
|
|
@@ -4130,8 +4130,8 @@ const wr = 4, Cr = ({
|
|
|
4130
4130
|
isSubmitting: l,
|
|
4131
4131
|
onSubscribe: d
|
|
4132
4132
|
}) => {
|
|
4133
|
-
var X, Z,
|
|
4134
|
-
const { locale: c } = D(), { data: m } = Fe(), u = ((X = e == null ? void 0 : e.prices.month) == null ? void 0 : X.currency) ?? ((Z = e == null ? void 0 : e.prices.year) == null ? void 0 : Z.currency) ?? "usd", p = e == null ? void 0 : e.features.conversation_sessions, y = e ? It(m, e, n) : null, _ = (a == null ? void 0 : a.costs.immediate.amountDue) ?? 0, w = (a == null ? void 0 : a.costs.immediate.accountBalance) ?? 0, v = (a == null ? void 0 : a.costs.nextCycle.total) ?? 0, h = a != null && a.nextBillingDate ? Me(Ha(a.nextBillingDate, 1), c) : null, C = e ? xt[ge(e)].slice(0, wr) : [], x = e ? ((
|
|
4133
|
+
var X, Z, be, ue, re;
|
|
4134
|
+
const { locale: c } = D(), { data: m } = Fe(), u = ((X = e == null ? void 0 : e.prices.month) == null ? void 0 : X.currency) ?? ((Z = e == null ? void 0 : e.prices.year) == null ? void 0 : Z.currency) ?? "usd", p = e == null ? void 0 : e.features.conversation_sessions, y = e ? It(m, e, n) : null, _ = (a == null ? void 0 : a.costs.immediate.amountDue) ?? 0, w = (a == null ? void 0 : a.costs.immediate.accountBalance) ?? 0, v = (a == null ? void 0 : a.costs.nextCycle.total) ?? 0, h = a != null && a.nextBillingDate ? Me(Ha(a.nextBillingDate, 1), c) : null, C = e ? xt[ge(e)].slice(0, wr) : [], x = e ? ((be = e.prices[n]) == null ? void 0 : be.amount) ?? 0 : 0, B = (a == null ? void 0 : a.costs.immediate.lineItems) ?? [], E = B.filter((P) => P.type === "discount"), f = B.filter((P) => P.type === "proration_credit" || P.type === "proration_charge").reduce((P, J) => P + J.amount, 0), I = !!(a != null && a.subscription.plan.effectiveDate), L = ((ue = e == null ? void 0 : e.prices.month) == null ? void 0 : ue.amount) ?? 0, b = ((re = e == null ? void 0 : e.prices.year) == null ? void 0 : re.amount) ?? 0, T = n === "year" && L > 0 && b > 0 ? Math.round(L * 12 - b) : 0, S = Math.round(T / 12);
|
|
4135
4135
|
return /* @__PURE__ */ s("div", { className: "bpb-summary-wrap", children: [
|
|
4136
4136
|
/* @__PURE__ */ s("div", { className: "bpb-summary", children: [
|
|
4137
4137
|
/* @__PURE__ */ t("h3", { className: "bpb-summary__title", children: e ? `${ee(e.name)} plan` : /* @__PURE__ */ t(q, { width: 140, height: 24 }) }),
|
|
@@ -4145,7 +4145,7 @@ const wr = 4, Cr = ({
|
|
|
4145
4145
|
te(y.packSize)
|
|
4146
4146
|
] })
|
|
4147
4147
|
] }),
|
|
4148
|
-
C.length > 0 && /* @__PURE__ */ s(
|
|
4148
|
+
C.length > 0 && /* @__PURE__ */ s(pe, { children: [
|
|
4149
4149
|
/* @__PURE__ */ t("p", { className: "bpb-summary__features-label", children: "Top features" }),
|
|
4150
4150
|
/* @__PURE__ */ t("ul", { className: "bpb-summary__features", children: C.map((P) => {
|
|
4151
4151
|
const J = Tt(P);
|
|
@@ -4180,7 +4180,7 @@ const wr = 4, Cr = ({
|
|
|
4180
4180
|
] })
|
|
4181
4181
|
] }),
|
|
4182
4182
|
/* @__PURE__ */ s("div", { className: "bpb-summary__line", children: [
|
|
4183
|
-
/* @__PURE__ */ t("span", { className: "bpb-summary__line-label", children: /* @__PURE__ */ t(
|
|
4183
|
+
/* @__PURE__ */ t("span", { className: "bpb-summary__line-label", children: /* @__PURE__ */ t(on, { label: "Prorated for today", children: "Switching mid-period, we charge only for the time left in your current billing period. The full plan price above is billed at your next renewal, not today." }) }),
|
|
4184
4184
|
/* @__PURE__ */ t("span", { className: "bpb-summary__line-amount", children: j(_, u) })
|
|
4185
4185
|
] }),
|
|
4186
4186
|
/* @__PURE__ */ s("div", { className: "bpb-summary__line bpb-summary__line--total", children: [
|
|
@@ -4211,7 +4211,7 @@ const wr = 4, Cr = ({
|
|
|
4211
4211
|
/* @__PURE__ */ t("span", { className: "bpb-summary__line-amount", children: j(P.amount, u) })
|
|
4212
4212
|
] }, `${P.id}-${J}`)),
|
|
4213
4213
|
f !== 0 && /* @__PURE__ */ s("div", { className: "bpb-summary__line", children: [
|
|
4214
|
-
/* @__PURE__ */ t("span", { className: "bpb-summary__line-label", children: /* @__PURE__ */ t(
|
|
4214
|
+
/* @__PURE__ */ t("span", { className: "bpb-summary__line-label", children: /* @__PURE__ */ t(on, { label: f < 0 ? "Credit for unused time" : "Adjustment for unused time", children: f < 0 ? "You already paid for time left in your current billing period. We credit that unused time and re-apply it at your new rate, so you’re never double-charged." : "Switching mid-cycle means we prorate the difference between your old and new plan for the days remaining in your current billing period." }) }),
|
|
4215
4215
|
/* @__PURE__ */ t("span", { className: "bpb-summary__line-amount", children: j(f, u) })
|
|
4216
4216
|
] }),
|
|
4217
4217
|
w !== 0 && /* @__PURE__ */ s("div", { className: "bpb-summary__line", children: [
|
|
@@ -4228,14 +4228,14 @@ const wr = 4, Cr = ({
|
|
|
4228
4228
|
" is applied as credit on your next invoice."
|
|
4229
4229
|
] })
|
|
4230
4230
|
] }),
|
|
4231
|
-
|
|
4231
|
+
T > 0 && /* @__PURE__ */ s("div", { className: "bpb-summary__savings", children: [
|
|
4232
4232
|
/* @__PURE__ */ t(Mt, { size: 18, className: "bpb-summary__savings-icon" }),
|
|
4233
4233
|
/* @__PURE__ */ s("span", { children: [
|
|
4234
4234
|
"You’re saving ",
|
|
4235
4235
|
j(S, u, 0),
|
|
4236
4236
|
"/month by choosing an annual plan. That’s",
|
|
4237
4237
|
" ",
|
|
4238
|
-
j(
|
|
4238
|
+
j(T, u, 0),
|
|
4239
4239
|
"/year."
|
|
4240
4240
|
] })
|
|
4241
4241
|
] }),
|
|
@@ -4324,16 +4324,16 @@ function zt(e) {
|
|
|
4324
4324
|
const n = e.toUpperCase();
|
|
4325
4325
|
return xr.includes(n) ? Ir : Sr[n] ?? [];
|
|
4326
4326
|
}
|
|
4327
|
-
const
|
|
4327
|
+
const dn = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("label", { className: M("bpb-input", n), children: [
|
|
4328
4328
|
/* @__PURE__ */ t("span", { className: "bpb-input__label", children: e }),
|
|
4329
4329
|
/* @__PURE__ */ t("input", { className: "bpb-input__field bpb-input__field--labeled", id: a, ...r })
|
|
4330
|
-
] }) : /* @__PURE__ */ t("input", { className:
|
|
4330
|
+
] }) : /* @__PURE__ */ t("input", { className: M("bpb-input__field", n), id: a, ...r }), Et = ({ label: e, className: n, children: a, ...r }) => /* @__PURE__ */ s("label", { className: M("bpb-input", n), children: [
|
|
4331
4331
|
e && /* @__PURE__ */ t("span", { className: "bpb-input__label", children: e }),
|
|
4332
4332
|
/* @__PURE__ */ s("span", { className: "bpb-input__select-wrap", children: [
|
|
4333
4333
|
/* @__PURE__ */ t(
|
|
4334
4334
|
"select",
|
|
4335
4335
|
{
|
|
4336
|
-
className:
|
|
4336
|
+
className: M("bpb-input__field bpb-input__field--select", e && "bpb-input__field--labeled"),
|
|
4337
4337
|
...r,
|
|
4338
4338
|
children: a
|
|
4339
4339
|
}
|
|
@@ -4355,7 +4355,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4355
4355
|
type: "button",
|
|
4356
4356
|
role: "radio",
|
|
4357
4357
|
"aria-checked": n === "month",
|
|
4358
|
-
className:
|
|
4358
|
+
className: M("bpb-interval-card", n === "month" && "bpb-interval-card--selected"),
|
|
4359
4359
|
onClick: () => a("month"),
|
|
4360
4360
|
children: [
|
|
4361
4361
|
/* @__PURE__ */ t("span", { className: "bpb-interval-card__title", children: "Monthly billing" }),
|
|
@@ -4372,7 +4372,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4372
4372
|
type: "button",
|
|
4373
4373
|
role: "radio",
|
|
4374
4374
|
"aria-checked": n === "year",
|
|
4375
|
-
className:
|
|
4375
|
+
className: M("bpb-interval-card", n === "year" && "bpb-interval-card--selected"),
|
|
4376
4376
|
onClick: () => a("year"),
|
|
4377
4377
|
children: [
|
|
4378
4378
|
/* @__PURE__ */ s("span", { className: "bpb-interval-card__title", children: [
|
|
@@ -4392,7 +4392,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4392
4392
|
)
|
|
4393
4393
|
] })
|
|
4394
4394
|
] });
|
|
4395
|
-
},
|
|
4395
|
+
}, un = ({
|
|
4396
4396
|
number: e,
|
|
4397
4397
|
title: n,
|
|
4398
4398
|
onEdit: a
|
|
@@ -4421,10 +4421,10 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4421
4421
|
onEdit: u
|
|
4422
4422
|
}) => {
|
|
4423
4423
|
const [p, y] = O(!1), _ = i === "new" || !r;
|
|
4424
|
-
return
|
|
4425
|
-
/* @__PURE__ */ t(
|
|
4426
|
-
r && i !== "new" ? /* @__PURE__ */ s("div", { className: "bpb-saved-card bpb-saved-card--readonly", children: [
|
|
4427
|
-
/* @__PURE__ */ t(
|
|
4424
|
+
return /* @__PURE__ */ s("section", { className: M("bpb-step", n && "bpb-step--collapsed"), children: [
|
|
4425
|
+
/* @__PURE__ */ t(un, { number: e, title: "Payment method", onEdit: n ? u : void 0 }),
|
|
4426
|
+
n ? r && i !== "new" ? /* @__PURE__ */ s("div", { className: "bpb-saved-card bpb-saved-card--readonly", children: [
|
|
4427
|
+
/* @__PURE__ */ t(sn, { brand: r.brand }),
|
|
4428
4428
|
/* @__PURE__ */ s("span", { className: "bpb-saved-card__number", children: [
|
|
4429
4429
|
/* @__PURE__ */ t("span", { className: "bpb-saved-card__brand", children: r.brand }),
|
|
4430
4430
|
" •••• ",
|
|
@@ -4435,55 +4435,54 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4435
4435
|
"/",
|
|
4436
4436
|
String(r.expYear).slice(-2)
|
|
4437
4437
|
] })
|
|
4438
|
-
] }) : /* @__PURE__ */ t("p", { className: "bpb-step__summary", children: a })
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
}
|
|
4469
|
-
)
|
|
4470
|
-
] }),
|
|
4471
|
-
r && i === "saved" && /* @__PURE__ */ s("div", { className: "bpb-saved-card", children: [
|
|
4472
|
-
/* @__PURE__ */ t(on, { brand: r.brand }),
|
|
4473
|
-
/* @__PURE__ */ s("span", { className: "bpb-saved-card__number", children: [
|
|
4474
|
-
/* @__PURE__ */ t("span", { className: "bpb-saved-card__brand", children: r.brand }),
|
|
4475
|
-
" •••• ",
|
|
4476
|
-
r.lastFour
|
|
4438
|
+
] }) : /* @__PURE__ */ t("p", { className: "bpb-step__summary", children: a }) : /* @__PURE__ */ s(pe, { children: [
|
|
4439
|
+
r && /* @__PURE__ */ s("div", { className: "bpb-pay-tabs", role: "tablist", "aria-label": "Payment method", children: [
|
|
4440
|
+
/* @__PURE__ */ s(
|
|
4441
|
+
"button",
|
|
4442
|
+
{
|
|
4443
|
+
type: "button",
|
|
4444
|
+
role: "tab",
|
|
4445
|
+
"aria-selected": i === "saved",
|
|
4446
|
+
className: M("bpb-pay-tab", i === "saved" && "bpb-pay-tab--selected"),
|
|
4447
|
+
onClick: () => l("saved"),
|
|
4448
|
+
children: [
|
|
4449
|
+
/* @__PURE__ */ t(jn, { size: 16 }),
|
|
4450
|
+
"Saved"
|
|
4451
|
+
]
|
|
4452
|
+
}
|
|
4453
|
+
),
|
|
4454
|
+
/* @__PURE__ */ s(
|
|
4455
|
+
"button",
|
|
4456
|
+
{
|
|
4457
|
+
type: "button",
|
|
4458
|
+
role: "tab",
|
|
4459
|
+
"aria-selected": i === "new",
|
|
4460
|
+
className: M("bpb-pay-tab", i === "new" && "bpb-pay-tab--selected"),
|
|
4461
|
+
onClick: () => l("new"),
|
|
4462
|
+
children: [
|
|
4463
|
+
/* @__PURE__ */ t(jn, { size: 16 }),
|
|
4464
|
+
"New card"
|
|
4465
|
+
]
|
|
4466
|
+
}
|
|
4467
|
+
)
|
|
4477
4468
|
] }),
|
|
4478
|
-
/* @__PURE__ */ s("
|
|
4479
|
-
|
|
4480
|
-
"
|
|
4481
|
-
|
|
4469
|
+
r && i === "saved" && /* @__PURE__ */ s("div", { className: "bpb-saved-card", children: [
|
|
4470
|
+
/* @__PURE__ */ t(sn, { brand: r.brand }),
|
|
4471
|
+
/* @__PURE__ */ s("span", { className: "bpb-saved-card__number", children: [
|
|
4472
|
+
/* @__PURE__ */ t("span", { className: "bpb-saved-card__brand", children: r.brand }),
|
|
4473
|
+
" •••• ",
|
|
4474
|
+
r.lastFour
|
|
4475
|
+
] }),
|
|
4476
|
+
/* @__PURE__ */ s("span", { className: "bpb-saved-card__exp", children: [
|
|
4477
|
+
String(r.expMonth).padStart(2, "0"),
|
|
4478
|
+
"/",
|
|
4479
|
+
String(r.expYear).slice(-2)
|
|
4480
|
+
] })
|
|
4482
4481
|
] })
|
|
4483
4482
|
] }),
|
|
4484
|
-
_ && /* @__PURE__ */ s("div", { className: "bpb-payment-element", children: [
|
|
4485
|
-
!p && /* @__PURE__ */ t("div", { className: "bpb-payment-element__skeleton", children: /* @__PURE__ */ t(q, { height: 48 }) }),
|
|
4486
|
-
/* @__PURE__ */ t("div", { className:
|
|
4483
|
+
_ && /* @__PURE__ */ s("div", { className: M("bpb-payment-element", n && "bpb-payment-element--hidden"), children: [
|
|
4484
|
+
!p && !n && /* @__PURE__ */ t("div", { className: "bpb-payment-element__skeleton", children: /* @__PURE__ */ t(q, { height: 48 }) }),
|
|
4485
|
+
/* @__PURE__ */ t("div", { className: M("bpb-card-element", !p && "bpb-payment-element--hidden"), children: /* @__PURE__ */ t(
|
|
4487
4486
|
Xe,
|
|
4488
4487
|
{
|
|
4489
4488
|
options: { style: Lt(o), hidePostalCode: !0 },
|
|
@@ -4492,7 +4491,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4492
4491
|
}
|
|
4493
4492
|
) })
|
|
4494
4493
|
] }),
|
|
4495
|
-
/* @__PURE__ */ t(de, { variant: "primary", block: !0, disabled: !c, onClick: m, children: "Next" })
|
|
4494
|
+
!n && /* @__PURE__ */ t(de, { variant: "primary", block: !0, disabled: !c, onClick: m, children: "Next" })
|
|
4496
4495
|
] });
|
|
4497
4496
|
}, Tr = ({
|
|
4498
4497
|
stepNumber: e,
|
|
@@ -4517,9 +4516,9 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4517
4516
|
taxValue: B,
|
|
4518
4517
|
onTaxValueChange: E
|
|
4519
4518
|
}) => {
|
|
4520
|
-
const [f, I] = O(!1), L = d || !o, b = zt(y),
|
|
4519
|
+
const [f, I] = O(!1), L = d || !o, b = zt(y), T = b.find((S) => S.type === C);
|
|
4521
4520
|
return n ? /* @__PURE__ */ s("section", { className: "bpb-step bpb-step--collapsed", children: [
|
|
4522
|
-
/* @__PURE__ */ t(
|
|
4521
|
+
/* @__PURE__ */ t(un, { number: e, title: "Billing address", onEdit: r }),
|
|
4523
4522
|
o ? /* @__PURE__ */ t("div", { className: "bpb-address-card bpb-address-card--readonly", children: /* @__PURE__ */ s("div", { className: "bpb-address-card__lines", children: [
|
|
4524
4523
|
i && /* @__PURE__ */ t("span", { className: "bpb-address-card__name", children: i }),
|
|
4525
4524
|
/* @__PURE__ */ s("span", { children: [
|
|
@@ -4529,13 +4528,13 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4529
4528
|
/* @__PURE__ */ t("span", { children: [o.city, o.state, o.postalCode, o.country].filter(Boolean).join(", ") })
|
|
4530
4529
|
] }) }) : /* @__PURE__ */ t("p", { className: "bpb-step__summary", children: a })
|
|
4531
4530
|
] }) : /* @__PURE__ */ s("section", { className: "bpb-step", children: [
|
|
4532
|
-
/* @__PURE__ */ t(
|
|
4531
|
+
/* @__PURE__ */ t(un, { number: e, title: "Billing address" }),
|
|
4533
4532
|
l ? /* @__PURE__ */ t(q, { height: 72 }) : L ? /* @__PURE__ */ s("div", { className: "bpb-payment-element", children: [
|
|
4534
4533
|
!f && /* @__PURE__ */ s("div", { className: "bpb-payment-element__skeleton", children: [
|
|
4535
4534
|
/* @__PURE__ */ t(q, { height: 48 }),
|
|
4536
4535
|
/* @__PURE__ */ t(q, { height: 48 })
|
|
4537
4536
|
] }),
|
|
4538
|
-
/* @__PURE__ */ t("div", { className:
|
|
4537
|
+
/* @__PURE__ */ t("div", { className: M(!f && "bpb-payment-element--hidden"), children: /* @__PURE__ */ t(
|
|
4539
4538
|
Qn,
|
|
4540
4539
|
{
|
|
4541
4540
|
options: {
|
|
@@ -4595,7 +4594,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4595
4594
|
_ && /* @__PURE__ */ s("div", { className: "bpb-business-fields", children: [
|
|
4596
4595
|
/* @__PURE__ */ t("h4", { className: "bpb-step__subtitle", children: "Business details" }),
|
|
4597
4596
|
/* @__PURE__ */ t(
|
|
4598
|
-
|
|
4597
|
+
dn,
|
|
4599
4598
|
{
|
|
4600
4599
|
placeholder: "Business name",
|
|
4601
4600
|
value: v,
|
|
@@ -4603,7 +4602,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4603
4602
|
autoComplete: "organization"
|
|
4604
4603
|
}
|
|
4605
4604
|
),
|
|
4606
|
-
b.length > 0 ? /* @__PURE__ */ s(
|
|
4605
|
+
b.length > 0 ? /* @__PURE__ */ s(pe, { children: [
|
|
4607
4606
|
/* @__PURE__ */ t(
|
|
4608
4607
|
Et,
|
|
4609
4608
|
{
|
|
@@ -4618,9 +4617,9 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4618
4617
|
}
|
|
4619
4618
|
),
|
|
4620
4619
|
/* @__PURE__ */ t(
|
|
4621
|
-
|
|
4620
|
+
dn,
|
|
4622
4621
|
{
|
|
4623
|
-
placeholder:
|
|
4622
|
+
placeholder: T ? T.description : "Tax ID number",
|
|
4624
4623
|
value: B,
|
|
4625
4624
|
onChange: (S) => E(S.target.value),
|
|
4626
4625
|
inputMode: "text"
|
|
@@ -4631,11 +4630,11 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4631
4630
|
] });
|
|
4632
4631
|
}, Br = ({ planId: e, initialInterval: n, clientSecret: a, onSuccess: r }) => {
|
|
4633
4632
|
var In;
|
|
4634
|
-
const o = Zn(), i = Jn(), { email: l, toast: d, analytics: c, isDark: m } = D(), [u, p] = O(n), [y, _] = O("payment"), [w, v] = O(!1), [h, C] = O(null), [x, B] = O(!1), [E, f] = O(!1), [I, L] = O(!1), [b,
|
|
4633
|
+
const o = Zn(), i = Jn(), { email: l, toast: d, analytics: c, isDark: m } = D(), [u, p] = O(n), [y, _] = O("payment"), [w, v] = O(!1), [h, C] = O(null), [x, B] = O(!1), [E, f] = O(!1), [I, L] = O(!1), [b, T] = O(void 0), [S, X] = O(!1), [Z, be] = O(""), [ue, re] = O(""), [P, J] = O(""), [A, se] = O(!1), [g, F] = O(null), { data: $ } = Te(), { data: W } = Se(), { data: K, isLoading: G } = nt(), { data: Y, isLoading: _e } = tt(), { data: me } = at(), U = $ == null ? void 0 : $.find((Ke) => Ke.id === e), le = ((In = K == null ? void 0 : K.paymentMethod) == null ? void 0 : In.card) ?? null, ne = (Y == null ? void 0 : Y.address) ?? null;
|
|
4635
4634
|
Ae(() => {
|
|
4636
4635
|
h === null && !G && K !== void 0 && C(le ? "saved" : "new");
|
|
4637
4636
|
}, [h, G, K, le]), Ae(() => {
|
|
4638
|
-
b === void 0 && ne &&
|
|
4637
|
+
b === void 0 && ne && T(ne.country);
|
|
4639
4638
|
}, [b, ne]);
|
|
4640
4639
|
const he = ye(() => ({ plan: { planId: e, interval: u } }), [e, u]), oe = et(he), R = ot(), ce = it(), V = lt(), H = ct(), ve = U ? ee(U.name) : "", we = h === "new" || !le, je = E || !ne, Ve = we ? x : !!le, Le = je ? I : !0, Sn = () => {
|
|
4641
4640
|
Ve && (v(!0), _("address"));
|
|
@@ -4741,12 +4740,12 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4741
4740
|
onEdit: () => f(!0),
|
|
4742
4741
|
onCancelEdit: ne ? () => f(!1) : void 0,
|
|
4743
4742
|
onCompleteChange: L,
|
|
4744
|
-
onCountryChange:
|
|
4743
|
+
onCountryChange: T,
|
|
4745
4744
|
country: b,
|
|
4746
4745
|
isBusiness: S,
|
|
4747
4746
|
onIsBusinessChange: X,
|
|
4748
4747
|
businessName: Z,
|
|
4749
|
-
onBusinessNameChange:
|
|
4748
|
+
onBusinessNameChange: be,
|
|
4750
4749
|
taxType: ue,
|
|
4751
4750
|
onTaxTypeChange: re,
|
|
4752
4751
|
taxValue: P,
|
|
@@ -4815,7 +4814,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4815
4814
|
] }) });
|
|
4816
4815
|
}, Pr = ({ value: e, onChange: n, min: a = 0, max: r, step: o = 1, className: i, ...l }) => {
|
|
4817
4816
|
const d = () => n(Math.max(a, e - o)), c = () => n(r === void 0 ? e + o : Math.min(r, e + o));
|
|
4818
|
-
return /* @__PURE__ */ s("div", { className:
|
|
4817
|
+
return /* @__PURE__ */ s("div", { className: M("bpb-stepper", i), children: [
|
|
4819
4818
|
/* @__PURE__ */ t(
|
|
4820
4819
|
"button",
|
|
4821
4820
|
{
|
|
@@ -4869,7 +4868,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4869
4868
|
[p, y, h]
|
|
4870
4869
|
), f = et(E ?? { plan: { planId: "", interval: y } }, {
|
|
4871
4870
|
enabled: !!E && x
|
|
4872
|
-
}), I = ((P = p == null ? void 0 : p.prices[y]) == null ? void 0 : P.currency) ?? "usd", L = ((J = f.data) == null ? void 0 : J.costs.immediate.amountDue) ?? 0, b = (A = f.data) != null && A.nextBillingDate ? Me(f.data.nextBillingDate, r) : null,
|
|
4871
|
+
}), I = ((P = p == null ? void 0 : p.prices[y]) == null ? void 0 : P.currency) ?? "usd", L = ((J = f.data) == null ? void 0 : J.costs.immediate.amountDue) ?? 0, b = (A = f.data) != null && A.nextBillingDate ? Me(f.data.nextBillingDate, r) : null, T = ((se = p == null ? void 0 : p.prices[y]) == null ? void 0 : se.amount) ?? 0, S = T + B, X = p && h ? tr(p, i, h) : [], Z = (g, F) => F === "bytes" ? $e(g) : te(g), be = (g, F) => {
|
|
4873
4872
|
const $ = i == null ? void 0 : i.find((Y) => Y.id === g), W = $ == null ? void 0 : $.increments;
|
|
4874
4873
|
if (!W || F <= 0)
|
|
4875
4874
|
return null;
|
|
@@ -4899,7 +4898,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4899
4898
|
"Add-ons aren’t available on the ",
|
|
4900
4899
|
p ? ee(p.name) : "current",
|
|
4901
4900
|
" plan. Upgrade to a paid plan to add extra usage."
|
|
4902
|
-
] }) : /* @__PURE__ */ s(
|
|
4901
|
+
] }) : /* @__PURE__ */ s(pe, { children: [
|
|
4903
4902
|
/* @__PURE__ */ t("div", { className: "bpb-addons", children: C.map(({ addon: g, price: F }) => {
|
|
4904
4903
|
var G;
|
|
4905
4904
|
const $ = ((G = o == null ? void 0 : o.addons[g.id]) == null ? void 0 : G.current.quantity) ?? 0, W = (h == null ? void 0 : h[g.id]) ?? 0, K = W !== $ ? W === 0 ? `${$} active now · removed${w ? ` ${w}` : " next cycle"}` : `${$} active now · ${W}${w ? ` from ${w}` : " next cycle"}` : $ > 0 ? `${$} active` : null;
|
|
@@ -4914,7 +4913,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4914
4913
|
K && /* @__PURE__ */ t(
|
|
4915
4914
|
"span",
|
|
4916
4915
|
{
|
|
4917
|
-
className:
|
|
4916
|
+
className: M(
|
|
4918
4917
|
"bpb-addon-row__status",
|
|
4919
4918
|
W !== $ && "bpb-addon-row__status--changed"
|
|
4920
4919
|
),
|
|
@@ -4923,7 +4922,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4923
4922
|
)
|
|
4924
4923
|
] }),
|
|
4925
4924
|
/* @__PURE__ */ s("div", { className: "bpb-addon-row__control", children: [
|
|
4926
|
-
|
|
4925
|
+
be(g.id, W) && /* @__PURE__ */ t("span", { className: "bpb-addon-row__grant", children: be(g.id, W) }),
|
|
4927
4926
|
/* @__PURE__ */ t(
|
|
4928
4927
|
Pr,
|
|
4929
4928
|
{
|
|
@@ -4949,7 +4948,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
4949
4948
|
/* @__PURE__ */ s("div", { className: "bpb-manage-addons__totals", children: [
|
|
4950
4949
|
/* @__PURE__ */ s("div", { className: "bpb-manage-addons__line", children: [
|
|
4951
4950
|
/* @__PURE__ */ t("span", { children: p ? `${ee(p.name)} plan` : "Plan" }),
|
|
4952
|
-
/* @__PURE__ */ t("span", { children: j(
|
|
4951
|
+
/* @__PURE__ */ t("span", { children: j(T, I) })
|
|
4953
4952
|
] }),
|
|
4954
4953
|
C.map(({ addon: g, price: F }) => {
|
|
4955
4954
|
const $ = (h == null ? void 0 : h[g.id]) ?? 0;
|
|
@@ -5071,7 +5070,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
5071
5070
|
onSuccess: a
|
|
5072
5071
|
}) => {
|
|
5073
5072
|
var oe;
|
|
5074
|
-
const r = Zn(), o = Jn(), { toast: i } = D(), { data: l, isLoading: d } = nt(), { data: c, isLoading: m } = tt(), { data: u, isLoading: p } = at(), y = ot(), _ = it(), w = lt(), v = ((oe = l == null ? void 0 : l.paymentMethod) == null ? void 0 : oe.card) ?? null, h = (c == null ? void 0 : c.address) ?? null, C = (u == null ? void 0 : u.taxIds) ?? [], [x, B] = O(!1), [E, f] = O(!1), [I, L] = O(!1), [b,
|
|
5073
|
+
const r = Zn(), o = Jn(), { toast: i } = D(), { data: l, isLoading: d } = nt(), { data: c, isLoading: m } = tt(), { data: u, isLoading: p } = at(), y = ot(), _ = it(), w = lt(), v = ((oe = l == null ? void 0 : l.paymentMethod) == null ? void 0 : oe.card) ?? null, h = (c == null ? void 0 : c.address) ?? null, C = (u == null ? void 0 : u.taxIds) ?? [], [x, B] = O(!1), [E, f] = O(!1), [I, L] = O(!1), [b, T] = O(!1), [S, X] = O(null), [Z, be] = O(!1), [ue, re] = O(!1), [P, J] = O(null), [A, se] = O(h == null ? void 0 : h.country), [g, F] = O(C.length > 0), [$, W] = O(null), K = $ ?? C.map((R) => ({ type: R.type, value: R.value })), G = zt(A), Y = $ !== null, _e = x || !v, me = (R, ce) => W(K.map((V, H) => H === R ? { ...V, ...ce } : V)), U = () => {
|
|
5075
5074
|
var R;
|
|
5076
5075
|
return W([...K, { type: ((R = G[0]) == null ? void 0 : R.type) ?? "", value: "" }]);
|
|
5077
5076
|
}, le = (R) => W(K.filter((ce, V) => V !== R)), ne = async () => {
|
|
@@ -5079,7 +5078,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
5079
5078
|
return;
|
|
5080
5079
|
const R = o.getElement(Xe);
|
|
5081
5080
|
if (R) {
|
|
5082
|
-
|
|
5081
|
+
T(!0), X(null);
|
|
5083
5082
|
try {
|
|
5084
5083
|
const { error: ce, setupIntent: V } = await r.confirmCardSetup(e, {
|
|
5085
5084
|
payment_method: { card: R }
|
|
@@ -5096,7 +5095,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
5096
5095
|
} catch {
|
|
5097
5096
|
X("We couldn’t save your card. Please check your details and try again.");
|
|
5098
5097
|
} finally {
|
|
5099
|
-
|
|
5098
|
+
T(!1);
|
|
5100
5099
|
}
|
|
5101
5100
|
}
|
|
5102
5101
|
}, he = async () => {
|
|
@@ -5149,7 +5148,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
5149
5148
|
/* @__PURE__ */ t(de, { variant: "primary", disabled: !I, loading: b, onClick: ne, children: "Save card" })
|
|
5150
5149
|
] })
|
|
5151
5150
|
] }) : /* @__PURE__ */ s("div", { className: "bpb-saved-card", children: [
|
|
5152
|
-
/* @__PURE__ */ t(
|
|
5151
|
+
/* @__PURE__ */ t(sn, { brand: v.brand }),
|
|
5153
5152
|
/* @__PURE__ */ s("span", { className: "bpb-saved-card__number", children: [
|
|
5154
5153
|
/* @__PURE__ */ t("span", { className: "bpb-saved-card__brand", children: v.brand }),
|
|
5155
5154
|
" •••• ",
|
|
@@ -5185,7 +5184,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
5185
5184
|
}
|
|
5186
5185
|
} : void 0
|
|
5187
5186
|
},
|
|
5188
|
-
onReady: () =>
|
|
5187
|
+
onReady: () => be(!0),
|
|
5189
5188
|
onChange: (R) => se(R.value.address.country || void 0)
|
|
5190
5189
|
}
|
|
5191
5190
|
) }),
|
|
@@ -5202,7 +5201,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
5202
5201
|
vn,
|
|
5203
5202
|
{
|
|
5204
5203
|
size: 16,
|
|
5205
|
-
className:
|
|
5204
|
+
className: M("bpb-tax-toggle__chevron", g && "bpb-tax-toggle__chevron--open")
|
|
5206
5205
|
}
|
|
5207
5206
|
),
|
|
5208
5207
|
"Tax IDs",
|
|
@@ -5227,7 +5226,7 @@ const un = ({ label: e, className: n, id: a, ...r }) => e ? /* @__PURE__ */ s("l
|
|
|
5227
5226
|
}
|
|
5228
5227
|
),
|
|
5229
5228
|
/* @__PURE__ */ t(
|
|
5230
|
-
|
|
5229
|
+
dn,
|
|
5231
5230
|
{
|
|
5232
5231
|
placeholder: "Tax ID number",
|
|
5233
5232
|
value: R.value,
|
|
@@ -5304,7 +5303,7 @@ const Ur = [
|
|
|
5304
5303
|
}
|
|
5305
5304
|
) })
|
|
5306
5305
|
] }, i.botId)) });
|
|
5307
|
-
},
|
|
5306
|
+
}, tn = ({
|
|
5308
5307
|
entry: e,
|
|
5309
5308
|
metric: n,
|
|
5310
5309
|
planAllowance: a,
|
|
@@ -5326,7 +5325,7 @@ const Ur = [
|
|
|
5326
5325
|
/* @__PURE__ */ t("div", { className: "bpb-usage-bar", role: "progressbar", "aria-valuenow": i, "aria-valuemin": 0, "aria-valuemax": 100, children: /* @__PURE__ */ t(
|
|
5327
5326
|
"div",
|
|
5328
5327
|
{
|
|
5329
|
-
className:
|
|
5328
|
+
className: M("bpb-usage-bar__fill", `bpb-usage-bar__fill--${d}`),
|
|
5330
5329
|
style: { width: `${l}%` }
|
|
5331
5330
|
}
|
|
5332
5331
|
) }),
|
|
@@ -5344,20 +5343,20 @@ const Ur = [
|
|
|
5344
5343
|
0,
|
|
5345
5344
|
l.findIndex((b) => b.value === d)
|
|
5346
5345
|
), p = (b) => {
|
|
5347
|
-
const
|
|
5348
|
-
|
|
5346
|
+
const T = l[u + b];
|
|
5347
|
+
T && c(T.value);
|
|
5349
5348
|
}, { data: y, isLoading: _, isError: w } = We({ period: d, enabled: !o }), { data: v } = Se({ enabled: !o }), { data: h } = Te(), C = h == null ? void 0 : h.find((b) => b.id === (v == null ? void 0 : v.plan.current.planId)), x = C ? ee(C.name) : void 0, B = (b) => C == null ? void 0 : C.features[b];
|
|
5350
5349
|
if (o)
|
|
5351
|
-
return /* @__PURE__ */ t("div", { className:
|
|
5350
|
+
return /* @__PURE__ */ t("div", { className: M("bpb-usage bpb-scope", r), children: /* @__PURE__ */ t(Oe, {}) });
|
|
5352
5351
|
if (_)
|
|
5353
|
-
return /* @__PURE__ */ s("div", { className:
|
|
5352
|
+
return /* @__PURE__ */ s("div", { className: M("bpb-usage bpb-scope", r), "aria-busy": "true", children: [
|
|
5354
5353
|
/* @__PURE__ */ t(q, { height: 80 }),
|
|
5355
5354
|
/* @__PURE__ */ t(q, { height: 140 })
|
|
5356
5355
|
] });
|
|
5357
5356
|
if (w || !y)
|
|
5358
|
-
return /* @__PURE__ */ t("div", { className:
|
|
5357
|
+
return /* @__PURE__ */ t("div", { className: M("bpb-usage bpb-scope", r), children: /* @__PURE__ */ t("p", { className: "bpb-usage__error", role: "alert", children: "We couldn’t load your usage. Try again in a moment." }) });
|
|
5359
5358
|
const E = y.conversation_sessions, f = y.ai_spend, I = Ur.filter((b) => y[b.key]);
|
|
5360
|
-
return /* @__PURE__ */ s("div", { className:
|
|
5359
|
+
return /* @__PURE__ */ s("div", { className: M("bpb-usage bpb-scope", r), children: [
|
|
5361
5360
|
n && l.length > 1 && /* @__PURE__ */ s("div", { className: "bpb-usage__header", children: [
|
|
5362
5361
|
/* @__PURE__ */ t("span", { className: "bpb-usage__header-title", children: "Usage" }),
|
|
5363
5362
|
/* @__PURE__ */ s("div", { className: "bpb-usage__period", children: [
|
|
@@ -5406,7 +5405,7 @@ const Ur = [
|
|
|
5406
5405
|
/* @__PURE__ */ t("h3", { className: "bpb-usage__group-title", children: "Conversations" }),
|
|
5407
5406
|
/* @__PURE__ */ t("p", { className: "bpb-usage__group-hint", children: "Each conversation includes AI usage. When you reach your limit, extra conversations are added automatically so service continues." }),
|
|
5408
5407
|
/* @__PURE__ */ t("div", { className: "bpb-usage__card", children: /* @__PURE__ */ t(
|
|
5409
|
-
|
|
5408
|
+
tn,
|
|
5410
5409
|
{
|
|
5411
5410
|
entry: E,
|
|
5412
5411
|
metric: { key: "conversation_sessions", label: "Conversations", unit: "count" },
|
|
@@ -5419,7 +5418,7 @@ const Ur = [
|
|
|
5419
5418
|
/* @__PURE__ */ t("h3", { className: "bpb-usage__group-title", children: "Storage" }),
|
|
5420
5419
|
/* @__PURE__ */ t("p", { className: "bpb-usage__group-hint", children: "Shared across files, knowledge base, and tables." }),
|
|
5421
5420
|
/* @__PURE__ */ t("div", { className: "bpb-usage__card", children: I.map((b) => /* @__PURE__ */ t(
|
|
5422
|
-
|
|
5421
|
+
tn,
|
|
5423
5422
|
{
|
|
5424
5423
|
entry: y[b.key],
|
|
5425
5424
|
metric: b,
|
|
@@ -5432,7 +5431,7 @@ const Ur = [
|
|
|
5432
5431
|
f && /* @__PURE__ */ s("section", { className: "bpb-usage__group", children: [
|
|
5433
5432
|
/* @__PURE__ */ t("h3", { className: "bpb-usage__group-title", children: "AI usage" }),
|
|
5434
5433
|
/* @__PURE__ */ t("p", { className: "bpb-usage__group-hint", children: "Each conversation includes an AI allowance — this is how much you’ve used." }),
|
|
5435
|
-
/* @__PURE__ */ t("div", { className: "bpb-usage__card", children: /* @__PURE__ */ t(
|
|
5434
|
+
/* @__PURE__ */ t("div", { className: "bpb-usage__card", children: /* @__PURE__ */ t(tn, { entry: f, metric: { key: "ai_spend", label: "AI spend", unit: "nano-usd" } }) }),
|
|
5436
5435
|
m && /* @__PURE__ */ s("div", { className: "bpb-usage__card bpb-usage__card--bots", children: [
|
|
5437
5436
|
/* @__PURE__ */ t("span", { className: "bpb-usage__subhead", children: "AI spend by bot" }),
|
|
5438
5437
|
/* @__PURE__ */ t(qr, { period: d })
|
|
@@ -5458,11 +5457,11 @@ const Ur = [
|
|
|
5458
5457
|
if (d || !v || m)
|
|
5459
5458
|
return null;
|
|
5460
5459
|
const h = Fr[v.key] ?? v.key.replace(/_/g, " "), C = Math.min(100, Math.round(v.pct * 100)), x = a ?? (() => y(!0)), B = v.pct >= 1, E = B ? "critical" : "warning";
|
|
5461
|
-
return /* @__PURE__ */ s(
|
|
5460
|
+
return /* @__PURE__ */ s(pe, { children: [
|
|
5462
5461
|
/* @__PURE__ */ s(
|
|
5463
5462
|
"div",
|
|
5464
5463
|
{
|
|
5465
|
-
className:
|
|
5464
|
+
className: M(
|
|
5466
5465
|
"bpb-usage-banner bpb-scope",
|
|
5467
5466
|
`bpb-usage-banner--${e}`,
|
|
5468
5467
|
`bpb-usage-banner--${E}`,
|
|
@@ -5472,11 +5471,11 @@ const Ur = [
|
|
|
5472
5471
|
"aria-live": "polite",
|
|
5473
5472
|
children: [
|
|
5474
5473
|
/* @__PURE__ */ t(hr, { size: 18, className: "bpb-usage-banner__icon" }),
|
|
5475
|
-
/* @__PURE__ */ t("p", { className: "bpb-usage-banner__text", children: B ? /* @__PURE__ */ s(
|
|
5474
|
+
/* @__PURE__ */ t("p", { className: "bpb-usage-banner__text", children: B ? /* @__PURE__ */ s(pe, { children: [
|
|
5476
5475
|
"You’ve reached your ",
|
|
5477
5476
|
h,
|
|
5478
5477
|
" limit. Upgrade now to avoid interruptions."
|
|
5479
|
-
] }) : /* @__PURE__ */ s(
|
|
5478
|
+
] }) : /* @__PURE__ */ s(pe, { children: [
|
|
5480
5479
|
"You’ve used ",
|
|
5481
5480
|
/* @__PURE__ */ s("strong", { children: [
|
|
5482
5481
|
C,
|
|
@@ -5502,7 +5501,7 @@ const Ur = [
|
|
|
5502
5501
|
]
|
|
5503
5502
|
}
|
|
5504
5503
|
),
|
|
5505
|
-
!a && /* @__PURE__ */ s(
|
|
5504
|
+
!a && /* @__PURE__ */ s(pe, { children: [
|
|
5506
5505
|
/* @__PURE__ */ t(
|
|
5507
5506
|
kr,
|
|
5508
5507
|
{
|
|
@@ -5534,7 +5533,7 @@ const Ur = [
|
|
|
5534
5533
|
"button",
|
|
5535
5534
|
{
|
|
5536
5535
|
type: "button",
|
|
5537
|
-
className:
|
|
5536
|
+
className: M(
|
|
5538
5537
|
"bpb-summary-card bpb-scope",
|
|
5539
5538
|
e === "Add-ons" ? "bpb-summary-card--addons" : "bpb-summary-card--plan",
|
|
5540
5539
|
n
|
|
@@ -5563,13 +5562,13 @@ const Ur = [
|
|
|
5563
5562
|
if (a)
|
|
5564
5563
|
return /* @__PURE__ */ t(Rt, { eyebrow: "Current plan", className: n });
|
|
5565
5564
|
if (o || l)
|
|
5566
|
-
return /* @__PURE__ */ t(q, { height: 84, rounded: !0, className:
|
|
5565
|
+
return /* @__PURE__ */ t(q, { height: 84, rounded: !0, className: M("bpb-scope", n) });
|
|
5567
5566
|
const d = r == null ? void 0 : r.plan.current, c = i == null ? void 0 : i.find((h) => h.id === (d == null ? void 0 : d.planId)), m = (d == null ? void 0 : d.interval) ?? "month", u = ((w = c == null ? void 0 : c.prices[m]) == null ? void 0 : w.amount) ?? 0, p = ((v = c == null ? void 0 : c.prices[m]) == null ? void 0 : v.currency) ?? "usd", y = c == null ? void 0 : c.features.conversation_sessions, _ = c ? ge(c) : "community";
|
|
5568
5567
|
return /* @__PURE__ */ s(
|
|
5569
5568
|
"button",
|
|
5570
5569
|
{
|
|
5571
5570
|
type: "button",
|
|
5572
|
-
className:
|
|
5571
|
+
className: M(
|
|
5573
5572
|
"bpb-summary-card bpb-summary-card--plan bpb-scope",
|
|
5574
5573
|
`bpb-summary-card--tier-${_ === "managed" ? "enterprise" : _}`,
|
|
5575
5574
|
n
|
|
@@ -5599,7 +5598,7 @@ const Ur = [
|
|
|
5599
5598
|
if (a)
|
|
5600
5599
|
return /* @__PURE__ */ t(Rt, { eyebrow: "Add-ons", className: n });
|
|
5601
5600
|
if (o || l)
|
|
5602
|
-
return /* @__PURE__ */ t(q, { height: 84, rounded: !0, className:
|
|
5601
|
+
return /* @__PURE__ */ t(q, { height: 84, rounded: !0, className: M("bpb-scope", n) });
|
|
5603
5602
|
const d = (i ?? []).flatMap((c) => {
|
|
5604
5603
|
var u;
|
|
5605
5604
|
const m = ((u = r == null ? void 0 : r.addons[c.id]) == null ? void 0 : u.current.quantity) ?? 0;
|
|
@@ -5609,7 +5608,7 @@ const Ur = [
|
|
|
5609
5608
|
"button",
|
|
5610
5609
|
{
|
|
5611
5610
|
type: "button",
|
|
5612
|
-
className:
|
|
5611
|
+
className: M(
|
|
5613
5612
|
"bpb-summary-card bpb-summary-card--addons bpb-scope",
|
|
5614
5613
|
d.length > 0 && "bpb-summary-card--active",
|
|
5615
5614
|
n
|
|
@@ -5620,14 +5619,14 @@ const Ur = [
|
|
|
5620
5619
|
/* @__PURE__ */ s("div", { className: "bpb-summary-card__content", children: [
|
|
5621
5620
|
/* @__PURE__ */ s("div", { className: "bpb-summary-card__body", children: [
|
|
5622
5621
|
/* @__PURE__ */ t("span", { className: "bpb-summary-card__eyebrow", children: "Add-ons" }),
|
|
5623
|
-
d.length > 0 ? /* @__PURE__ */ s(
|
|
5622
|
+
d.length > 0 ? /* @__PURE__ */ s(pe, { children: [
|
|
5624
5623
|
/* @__PURE__ */ s("span", { className: "bpb-summary-card__title", children: [
|
|
5625
5624
|
d.length,
|
|
5626
5625
|
" active add-on",
|
|
5627
5626
|
d.length > 1 ? "s" : ""
|
|
5628
5627
|
] }),
|
|
5629
5628
|
/* @__PURE__ */ t("span", { className: "bpb-summary-card__meta", children: d.map((c) => `${c.quantity}× ${c.name}`).join(" · ") })
|
|
5630
|
-
] }) : /* @__PURE__ */ s(
|
|
5629
|
+
] }) : /* @__PURE__ */ s(pe, { children: [
|
|
5631
5630
|
/* @__PURE__ */ t("span", { className: "bpb-summary-card__title", children: "No add-ons" }),
|
|
5632
5631
|
/* @__PURE__ */ t("span", { className: "bpb-summary-card__meta", children: "Add extra conversations or storage" })
|
|
5633
5632
|
] })
|
|
@@ -5641,7 +5640,7 @@ const Ur = [
|
|
|
5641
5640
|
}
|
|
5642
5641
|
);
|
|
5643
5642
|
}, cs = ({ onManage: e, className: n }) => {
|
|
5644
|
-
var b,
|
|
5643
|
+
var b, T;
|
|
5645
5644
|
const { isOutdatedBilling: a, locale: r, manageBillingUrl: o } = D(), { data: i, isLoading: l } = Se({ enabled: !a }), { data: d, isLoading: c } = Te(), { data: m, isLoading: u } = Fe();
|
|
5646
5645
|
if (a) {
|
|
5647
5646
|
const S = () => o && window.open(o, "_blank", "noopener");
|
|
@@ -5649,7 +5648,7 @@ const Ur = [
|
|
|
5649
5648
|
"button",
|
|
5650
5649
|
{
|
|
5651
5650
|
type: "button",
|
|
5652
|
-
className:
|
|
5651
|
+
className: M("bpb-plan-banner bpb-plan-banner--community bpb-scope", n),
|
|
5653
5652
|
onClick: S,
|
|
5654
5653
|
disabled: !o,
|
|
5655
5654
|
children: [
|
|
@@ -5667,13 +5666,13 @@ const Ur = [
|
|
|
5667
5666
|
);
|
|
5668
5667
|
}
|
|
5669
5668
|
if (l || c || u)
|
|
5670
|
-
return /* @__PURE__ */ t(q, { height: 132, rounded: !0, className:
|
|
5669
|
+
return /* @__PURE__ */ t(q, { height: 132, rounded: !0, className: M("bpb-scope", n) });
|
|
5671
5670
|
const p = i == null ? void 0 : i.plan.current, y = d == null ? void 0 : d.find((S) => S.id === (p == null ? void 0 : p.planId)), _ = (p == null ? void 0 : p.interval) ?? "month", w = ((b = y == null ? void 0 : y.prices[_]) == null ? void 0 : b.currency) ?? "usd", v = y ? ge(y) : "community", h = Object.fromEntries(
|
|
5672
5671
|
Object.entries((i == null ? void 0 : i.addons) ?? {}).map(([S, X]) => {
|
|
5673
5672
|
var Z;
|
|
5674
5673
|
return [S, ((Z = X.current) == null ? void 0 : Z.quantity) ?? 0];
|
|
5675
5674
|
})
|
|
5676
|
-
), C = ((
|
|
5675
|
+
), C = ((T = y == null ? void 0 : y.prices[_]) == null ? void 0 : T.amount) ?? 0, x = (m ?? []).reduce((S, X) => {
|
|
5677
5676
|
const Z = y ? gn(X, y, _) : null;
|
|
5678
5677
|
return S + (h[X.id] ?? 0) * ((Z == null ? void 0 : Z.amount) ?? 0);
|
|
5679
5678
|
}, 0), B = C + x, E = _ === "year" ? "/yr" : "/mo", f = ar(y, m, h).find((S) => S.key === "conversation_sessions"), I = p != null && p.periodEnd ? Me(p.periodEnd, r) : null, L = v === "enterprise" || v === "managed";
|
|
@@ -5681,13 +5680,13 @@ const Ur = [
|
|
|
5681
5680
|
"button",
|
|
5682
5681
|
{
|
|
5683
5682
|
type: "button",
|
|
5684
|
-
className:
|
|
5683
|
+
className: M("bpb-plan-banner", `bpb-plan-banner--${v}`, "bpb-scope", n),
|
|
5685
5684
|
onClick: e,
|
|
5686
5685
|
children: [
|
|
5687
5686
|
/* @__PURE__ */ s("div", { className: "bpb-plan-banner__main", children: [
|
|
5688
5687
|
/* @__PURE__ */ t("span", { className: "bpb-plan-banner__eyebrow", children: "Current plan" }),
|
|
5689
5688
|
/* @__PURE__ */ t("span", { className: "bpb-plan-banner__name", children: y ? ee(y.name) : "No plan" }),
|
|
5690
|
-
f && /* @__PURE__ */ t("span", { className: "bpb-plan-banner__sub", children: f.added > 0 ? /* @__PURE__ */ s(
|
|
5689
|
+
f && /* @__PURE__ */ t("span", { className: "bpb-plan-banner__sub", children: f.added > 0 ? /* @__PURE__ */ s(pe, { children: [
|
|
5691
5690
|
te(f.base),
|
|
5692
5691
|
" + ",
|
|
5693
5692
|
te(f.added),
|
|
@@ -5742,13 +5741,13 @@ const ds = ({ onManage: e, period: n, variant: a = "card", className: r, style:
|
|
|
5742
5741
|
if (i)
|
|
5743
5742
|
return null;
|
|
5744
5743
|
if (c || u || y)
|
|
5745
|
-
return /* @__PURE__ */ t(q, { height: 72, rounded: !0, className:
|
|
5746
|
-
const _ = m == null ? void 0 : m.find((b) => b.id === (d == null ? void 0 : d.plan.current.planId)), w = xn(p), v = w.find((b) => b.key === "conversation_sessions"), h = w[0], C = h && h.key !== "conversation_sessions" && h.pct >= 75 ? h : v ?? h, x = C ? Math.round(C.pct) : 0, B = x > 0 ? Math.max(5, x) : 0, E = C ? Cn(C.pct) : "normal", f = d != null && d.plan.current.periodEnd ? Me(d.plan.current.periodEnd, l) : null, I = /* @__PURE__ */ s(
|
|
5744
|
+
return /* @__PURE__ */ t(q, { height: 72, rounded: !0, className: M("bpb-scope", r) });
|
|
5745
|
+
const _ = m == null ? void 0 : m.find((b) => b.id === (d == null ? void 0 : d.plan.current.planId)), w = xn(p), v = w.find((b) => b.key === "conversation_sessions"), h = w[0], C = h && h.key !== "conversation_sessions" && h.pct >= 75 ? h : v ?? h, x = C ? Math.round(C.pct) : 0, B = x > 0 ? Math.max(5, x) : 0, E = C ? Cn(C.pct) : "normal", f = d != null && d.plan.current.periodEnd ? Me(d.plan.current.periodEnd, l) : null, I = /* @__PURE__ */ s(pe, { children: [
|
|
5747
5746
|
/* @__PURE__ */ s("div", { className: "bpb-plan-usage__head", children: [
|
|
5748
5747
|
/* @__PURE__ */ t("span", { className: "bpb-plan-usage__plan", children: _ ? ee(_.name) : "Free" }),
|
|
5749
5748
|
e && /* @__PURE__ */ t(Ge, { size: 15, className: "bpb-plan-usage__chevron" })
|
|
5750
5749
|
] }),
|
|
5751
|
-
C && /* @__PURE__ */ s(
|
|
5750
|
+
C && /* @__PURE__ */ s(pe, { children: [
|
|
5752
5751
|
/* @__PURE__ */ s("div", { className: "bpb-plan-usage__meta", children: [
|
|
5753
5752
|
/* @__PURE__ */ t("span", { className: "bpb-plan-usage__meta-label", children: C.label }),
|
|
5754
5753
|
/* @__PURE__ */ s("span", { className: "bpb-plan-usage__meta-value", children: [
|
|
@@ -5767,7 +5766,7 @@ const ds = ({ onManage: e, period: n, variant: a = "card", className: r, style:
|
|
|
5767
5766
|
children: /* @__PURE__ */ t(
|
|
5768
5767
|
"div",
|
|
5769
5768
|
{
|
|
5770
|
-
className:
|
|
5769
|
+
className: M("bpb-plan-usage__fill", `bpb-plan-usage__fill--${E}`),
|
|
5771
5770
|
style: { width: `${B}%` }
|
|
5772
5771
|
}
|
|
5773
5772
|
)
|
|
@@ -5778,7 +5777,7 @@ const ds = ({ onManage: e, period: n, variant: a = "card", className: r, style:
|
|
|
5778
5777
|
f
|
|
5779
5778
|
] })
|
|
5780
5779
|
] })
|
|
5781
|
-
] }), L =
|
|
5780
|
+
] }), L = M(
|
|
5782
5781
|
"bpb-plan-usage bpb-scope",
|
|
5783
5782
|
`bpb-plan-usage--${a}`,
|
|
5784
5783
|
e && "bpb-plan-usage--clickable",
|
|
@@ -5798,14 +5797,14 @@ const ds = ({ onManage: e, period: n, variant: a = "card", className: r, style:
|
|
|
5798
5797
|
return /* @__PURE__ */ s(
|
|
5799
5798
|
"span",
|
|
5800
5799
|
{
|
|
5801
|
-
className:
|
|
5800
|
+
className: M("bpb-usage-pop bpb-scope", o),
|
|
5802
5801
|
onMouseEnter: h,
|
|
5803
5802
|
onMouseLeave: C,
|
|
5804
5803
|
onFocus: h,
|
|
5805
5804
|
onBlur: C,
|
|
5806
5805
|
children: [
|
|
5807
5806
|
e,
|
|
5808
|
-
u && v && /* @__PURE__ */ s("span", { className:
|
|
5807
|
+
u && v && /* @__PURE__ */ s("span", { className: M("bpb-usage-pop__card", `bpb-usage-pop__card--${a}`), role: "tooltip", children: [
|
|
5809
5808
|
/* @__PURE__ */ s("span", { className: "bpb-usage-pop__plan", children: [
|
|
5810
5809
|
/* @__PURE__ */ s("span", { className: "bpb-usage-pop__plan-name", children: [
|
|
5811
5810
|
B,
|
|
@@ -5831,7 +5830,7 @@ const ds = ({ onManage: e, period: n, variant: a = "card", className: r, style:
|
|
|
5831
5830
|
/* @__PURE__ */ t("span", { className: "bpb-usage-pop__bar", children: /* @__PURE__ */ t(
|
|
5832
5831
|
"span",
|
|
5833
5832
|
{
|
|
5834
|
-
className:
|
|
5833
|
+
className: M("bpb-usage-pop__fill", `bpb-usage-pop__fill--${Cn(f.pct)}`),
|
|
5835
5834
|
style: { width: `${I}%` }
|
|
5836
5835
|
}
|
|
5837
5836
|
) })
|
|
@@ -5854,7 +5853,7 @@ const ds = ({ onManage: e, period: n, variant: a = "card", className: r, style:
|
|
|
5854
5853
|
const { isOutdatedBilling: c } = D(), { data: m } = We({ period: i, enabled: !c }), u = xn(m);
|
|
5855
5854
|
if (c || u.length === 0)
|
|
5856
5855
|
return null;
|
|
5857
|
-
const p = u[0], y = Cn(p.pct), _ = p.pct > 0 ? Math.max(5, p.pct) : 0, w = (e - n) / 2, v = 2 * Math.PI * w, h = v * (1 - _ / 100), C = d["aria-label"] ?? `${Math.round(p.pct)}% of your ${p.label.toLowerCase()} used`, x = /* @__PURE__ */ s(
|
|
5856
|
+
const p = u[0], y = Cn(p.pct), _ = p.pct > 0 ? Math.max(5, p.pct) : 0, w = (e - n) / 2, v = 2 * Math.PI * w, h = v * (1 - _ / 100), C = d["aria-label"] ?? `${Math.round(p.pct)}% of your ${p.label.toLowerCase()} used`, x = /* @__PURE__ */ s(pe, { children: [
|
|
5858
5857
|
/* @__PURE__ */ s("svg", { className: "bpb-usage-ring__svg", width: e, height: e, viewBox: `0 0 ${e} ${e}`, "aria-hidden": !0, children: [
|
|
5859
5858
|
/* @__PURE__ */ t(
|
|
5860
5859
|
"circle",
|
|
@@ -5870,7 +5869,7 @@ const ds = ({ onManage: e, period: n, variant: a = "card", className: r, style:
|
|
|
5870
5869
|
/* @__PURE__ */ t(
|
|
5871
5870
|
"circle",
|
|
5872
5871
|
{
|
|
5873
|
-
className:
|
|
5872
|
+
className: M("bpb-usage-ring__arc", `bpb-usage-ring__arc--${y}`),
|
|
5874
5873
|
cx: e / 2,
|
|
5875
5874
|
cy: e / 2,
|
|
5876
5875
|
r: w,
|
|
@@ -5887,7 +5886,7 @@ const ds = ({ onManage: e, period: n, variant: a = "card", className: r, style:
|
|
|
5887
5886
|
Math.round(p.pct),
|
|
5888
5887
|
"%"
|
|
5889
5888
|
] })
|
|
5890
|
-
] }), B =
|
|
5889
|
+
] }), B = M("bpb-usage-ring", r && "bpb-usage-ring--clickable");
|
|
5891
5890
|
return /* @__PURE__ */ t(Gr, { delay: o, period: i, className: l, children: r ? /* @__PURE__ */ t("button", { type: "button", className: B, onClick: r, "aria-label": C, children: x }) : /* @__PURE__ */ t("span", { className: B, tabIndex: 0, role: "img", "aria-label": C, children: x }) });
|
|
5892
5891
|
};
|
|
5893
5892
|
export {
|
|
@@ -5898,7 +5897,7 @@ export {
|
|
|
5898
5897
|
fn as BoltIcon,
|
|
5899
5898
|
de as Button,
|
|
5900
5899
|
gr as CalendarIcon,
|
|
5901
|
-
|
|
5900
|
+
sn as CardBrandBadge,
|
|
5902
5901
|
jn as CardIcon,
|
|
5903
5902
|
cr as ChartIcon,
|
|
5904
5903
|
rr as CheckIcon,
|
|
@@ -5916,8 +5915,8 @@ export {
|
|
|
5916
5915
|
kn as ExternalLinkIcon,
|
|
5917
5916
|
dr as GlobeIcon,
|
|
5918
5917
|
ir as InfinityIcon,
|
|
5919
|
-
|
|
5920
|
-
|
|
5918
|
+
on as InfoTooltip,
|
|
5919
|
+
dn as Input,
|
|
5921
5920
|
ts as InvoicesDialog,
|
|
5922
5921
|
yn as LayersIcon,
|
|
5923
5922
|
Xr as LockIcon,
|
|
@@ -5953,7 +5952,7 @@ export {
|
|
|
5953
5952
|
tr as addonLimitsPreview,
|
|
5954
5953
|
gn as addonPrice,
|
|
5955
5954
|
ae as billingKeys,
|
|
5956
|
-
|
|
5955
|
+
M as cn,
|
|
5957
5956
|
It as conversationPackPrice,
|
|
5958
5957
|
nr as conversationsAddon,
|
|
5959
5958
|
Qa as currencySymbol,
|