@bpinternal/billing-ui 0.14.0 → 0.14.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.d.ts +2 -0
- package/dist/index.js +430 -402
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var bo = Object.defineProperty;
|
|
|
3
3
|
var fo = (t, e, a) => e in t ? bo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
4
4
|
var or = (t, e, a) => fo(t, typeof e != "symbol" ? e + "" : e, a);
|
|
5
5
|
import { jsx as l, jsxs as p, Fragment as Te } from "react/jsx-runtime";
|
|
6
|
-
import { QueryClient as yo, hydrate as vo, dehydrate as _o, useQuery as
|
|
6
|
+
import { QueryClient as yo, hydrate as vo, dehydrate as _o, useQuery as $e, useMutation as Jt } from "@tanstack/react-query";
|
|
7
7
|
import { createElement as bt, isValidElement as Va, Fragment as No, cloneElement as Co, Children as So, createContext as qr, useContext as Ta, useCallback as It, useState as J, useRef as rn, useEffect as Oe, useMemo as Re, useSyncExternalStore as ko, useId as wo } from "react";
|
|
8
8
|
import { loadStripe as To } from "@stripe/stripe-js";
|
|
9
9
|
import { createPortal as Io } from "react-dom";
|
|
@@ -3405,7 +3405,7 @@ function xi(t) {
|
|
|
3405
3405
|
return n.addEventListener("change", r), () => n.removeEventListener("change", r);
|
|
3406
3406
|
}, [t]), t === "system" ? e : t === "dark";
|
|
3407
3407
|
}
|
|
3408
|
-
const
|
|
3408
|
+
const $c = ({
|
|
3409
3409
|
client: t,
|
|
3410
3410
|
stripePublishableKey: e,
|
|
3411
3411
|
email: a,
|
|
@@ -3538,7 +3538,11 @@ const we = {
|
|
|
3538
3538
|
UPGRADE_CTA_CLICKED: "billing_upgrade_cta_clicked",
|
|
3539
3539
|
// Auto-recharge settings (AutoRechargeCard)
|
|
3540
3540
|
AUTO_RECHARGE_UPDATED: "billing_auto_recharge_updated"
|
|
3541
|
-
}
|
|
3541
|
+
};
|
|
3542
|
+
function Ri(t) {
|
|
3543
|
+
return typeof t == "object" && t !== null && t.code === 403;
|
|
3544
|
+
}
|
|
3545
|
+
const Ae = {
|
|
3542
3546
|
/** Everything for one workspace — use to invalidate/clear the whole scope. */
|
|
3543
3547
|
root: (t) => ["bpb", t],
|
|
3544
3548
|
plans: (t) => ["bpb", t, "plans"],
|
|
@@ -3556,15 +3560,15 @@ const we = {
|
|
|
3556
3560
|
};
|
|
3557
3561
|
function rt() {
|
|
3558
3562
|
const { client: t, queryClient: e, scope: a } = re();
|
|
3559
|
-
return
|
|
3563
|
+
return $e({ queryKey: Ae.plans(a), queryFn: () => t.listPlans({}) }, e);
|
|
3560
3564
|
}
|
|
3561
3565
|
function Qt() {
|
|
3562
3566
|
const { client: t, queryClient: e, scope: a } = re();
|
|
3563
|
-
return
|
|
3567
|
+
return $e({ queryKey: Ae.addons(a), queryFn: () => t.listAddons({}) }, e);
|
|
3564
3568
|
}
|
|
3565
|
-
function
|
|
3569
|
+
function Ve(t) {
|
|
3566
3570
|
const { client: e, queryClient: a, scope: n, refetchInterval: r } = re();
|
|
3567
|
-
return
|
|
3571
|
+
return $e(
|
|
3568
3572
|
{
|
|
3569
3573
|
queryKey: Ae.subscription(n),
|
|
3570
3574
|
queryFn: () => e.getSubscription({}),
|
|
@@ -3574,9 +3578,13 @@ function $e(t) {
|
|
|
3574
3578
|
a
|
|
3575
3579
|
);
|
|
3576
3580
|
}
|
|
3581
|
+
function Hc() {
|
|
3582
|
+
const { data: t, error: e } = Ve();
|
|
3583
|
+
return e ? Ri(e) ? !1 : e : t ? !0 : void 0;
|
|
3584
|
+
}
|
|
3577
3585
|
function ns(t, e) {
|
|
3578
3586
|
const { client: a, queryClient: n, scope: r } = re();
|
|
3579
|
-
return
|
|
3587
|
+
return $e(
|
|
3580
3588
|
{
|
|
3581
3589
|
queryKey: Ae.preview(r, t),
|
|
3582
3590
|
queryFn: () => a.previewSubscriptionUpdate(t),
|
|
@@ -3587,7 +3595,7 @@ function ns(t, e) {
|
|
|
3587
3595
|
}
|
|
3588
3596
|
function rs(t) {
|
|
3589
3597
|
const { client: e, queryClient: a, scope: n } = re();
|
|
3590
|
-
return
|
|
3598
|
+
return $e(
|
|
3591
3599
|
{
|
|
3592
3600
|
queryKey: Ae.paymentMethod(n),
|
|
3593
3601
|
queryFn: () => e.getPaymentMethod({}),
|
|
@@ -3598,7 +3606,7 @@ function rs(t) {
|
|
|
3598
3606
|
}
|
|
3599
3607
|
function ss(t) {
|
|
3600
3608
|
const { client: e, queryClient: a, scope: n } = re();
|
|
3601
|
-
return
|
|
3609
|
+
return $e(
|
|
3602
3610
|
{
|
|
3603
3611
|
queryKey: Ae.customer(n),
|
|
3604
3612
|
queryFn: () => e.getCustomer({}),
|
|
@@ -3607,9 +3615,9 @@ function ss(t) {
|
|
|
3607
3615
|
a
|
|
3608
3616
|
);
|
|
3609
3617
|
}
|
|
3610
|
-
function
|
|
3618
|
+
function Ei(t) {
|
|
3611
3619
|
const { client: e, queryClient: a, scope: n, refetchInterval: r } = re();
|
|
3612
|
-
return
|
|
3620
|
+
return $e(
|
|
3613
3621
|
{
|
|
3614
3622
|
queryKey: Ae.invoices(n),
|
|
3615
3623
|
queryFn: () => e.listInvoices({}),
|
|
@@ -3621,7 +3629,7 @@ function Ri(t) {
|
|
|
3621
3629
|
}
|
|
3622
3630
|
function os(t) {
|
|
3623
3631
|
const { client: e, queryClient: a, scope: n } = re();
|
|
3624
|
-
return
|
|
3632
|
+
return $e(
|
|
3625
3633
|
{
|
|
3626
3634
|
queryKey: Ae.readonly(n),
|
|
3627
3635
|
queryFn: () => e.getBillingReadonly({}),
|
|
@@ -3632,7 +3640,7 @@ function os(t) {
|
|
|
3632
3640
|
}
|
|
3633
3641
|
function is(t) {
|
|
3634
3642
|
const { client: e, queryClient: a, scope: n } = re();
|
|
3635
|
-
return
|
|
3643
|
+
return $e(
|
|
3636
3644
|
{
|
|
3637
3645
|
queryKey: Ae.autoRecharge(n),
|
|
3638
3646
|
queryFn: () => e.getAutoRechargeSettings({}).then((r) => r.settings),
|
|
@@ -3641,7 +3649,7 @@ function is(t) {
|
|
|
3641
3649
|
a
|
|
3642
3650
|
);
|
|
3643
3651
|
}
|
|
3644
|
-
function
|
|
3652
|
+
function Li() {
|
|
3645
3653
|
const { client: t, queryClient: e, scope: a, notifyBillingChange: n } = re();
|
|
3646
3654
|
return Jt(
|
|
3647
3655
|
{
|
|
@@ -3655,7 +3663,7 @@ function Ei() {
|
|
|
3655
3663
|
}
|
|
3656
3664
|
function Xt(t) {
|
|
3657
3665
|
const { client: e, queryClient: a, scope: n, refetchInterval: r } = re(), s = t != null && t.period ? new Date(t.period) : /* @__PURE__ */ new Date(), o = `${s.getUTCFullYear()}-${String(s.getUTCMonth() + 1).padStart(2, "0")}`;
|
|
3658
|
-
return
|
|
3666
|
+
return $e(
|
|
3659
3667
|
{
|
|
3660
3668
|
queryKey: Ae.usages(n, o),
|
|
3661
3669
|
// Send a concrete datetime within the month; the API infers the month from it.
|
|
@@ -3666,9 +3674,9 @@ function Xt(t) {
|
|
|
3666
3674
|
a
|
|
3667
3675
|
);
|
|
3668
3676
|
}
|
|
3669
|
-
function
|
|
3677
|
+
function Oi(t, e) {
|
|
3670
3678
|
const { client: a, queryClient: n, scope: r, refetchInterval: s } = re(), o = a.breakDownWorkspaceUsageByBot, i = a.listBots, d = typeof o == "function" && typeof i == "function", c = e != null && e.period ? new Date(e.period) : /* @__PURE__ */ new Date(), u = `${c.getUTCFullYear()}-${String(c.getUTCMonth() + 1).padStart(2, "0")}`;
|
|
3671
|
-
return
|
|
3679
|
+
return $e(
|
|
3672
3680
|
{
|
|
3673
3681
|
queryKey: Ae.usageByBot(r, t, u),
|
|
3674
3682
|
queryFn: async () => {
|
|
@@ -3684,7 +3692,7 @@ function Li(t, e) {
|
|
|
3684
3692
|
n
|
|
3685
3693
|
);
|
|
3686
3694
|
}
|
|
3687
|
-
function
|
|
3695
|
+
function Fi() {
|
|
3688
3696
|
const { client: t } = re();
|
|
3689
3697
|
return typeof t.breakDownWorkspaceUsageByBot == "function" && typeof t.listBots == "function";
|
|
3690
3698
|
}
|
|
@@ -3716,7 +3724,7 @@ function cs() {
|
|
|
3716
3724
|
e
|
|
3717
3725
|
);
|
|
3718
3726
|
}
|
|
3719
|
-
function
|
|
3727
|
+
function Mi() {
|
|
3720
3728
|
const { client: t, queryClient: e, scope: a, notifyBillingChange: n } = re();
|
|
3721
3729
|
return Jt(
|
|
3722
3730
|
{
|
|
@@ -3762,40 +3770,40 @@ function ps(t) {
|
|
|
3762
3770
|
} else for (a in t) t[a] && (n && (n += " "), n += a);
|
|
3763
3771
|
return n;
|
|
3764
3772
|
}
|
|
3765
|
-
function
|
|
3773
|
+
function Bi() {
|
|
3766
3774
|
for (var t, e, a = 0, n = "", r = arguments.length; a < r; a++) (t = arguments[a]) && (e = ps(t)) && (n && (n += " "), n += e);
|
|
3767
3775
|
return n;
|
|
3768
3776
|
}
|
|
3769
|
-
const
|
|
3777
|
+
const Ui = (t, e) => {
|
|
3770
3778
|
const a = new Array(t.length + e.length);
|
|
3771
3779
|
for (let n = 0; n < t.length; n++)
|
|
3772
3780
|
a[n] = t[n];
|
|
3773
3781
|
for (let n = 0; n < e.length; n++)
|
|
3774
3782
|
a[t.length + n] = e[n];
|
|
3775
3783
|
return a;
|
|
3776
|
-
},
|
|
3784
|
+
}, zi = (t, e) => ({
|
|
3777
3785
|
classGroupId: t,
|
|
3778
3786
|
validator: e
|
|
3779
3787
|
}), ms = (t = /* @__PURE__ */ new Map(), e = null, a) => ({
|
|
3780
3788
|
nextPart: t,
|
|
3781
3789
|
validators: e,
|
|
3782
3790
|
classGroupId: a
|
|
3783
|
-
}), Ya = "-", Sr = [],
|
|
3784
|
-
const e =
|
|
3791
|
+
}), Ya = "-", Sr = [], ji = "arbitrary..", Vi = (t) => {
|
|
3792
|
+
const e = qi(t), {
|
|
3785
3793
|
conflictingClassGroups: a,
|
|
3786
3794
|
conflictingClassGroupModifiers: n
|
|
3787
3795
|
} = t;
|
|
3788
3796
|
return {
|
|
3789
3797
|
getClassGroupId: (o) => {
|
|
3790
3798
|
if (o.startsWith("[") && o.endsWith("]"))
|
|
3791
|
-
return
|
|
3799
|
+
return Zi(o);
|
|
3792
3800
|
const i = o.split(Ya), d = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
3793
3801
|
return hs(i, d, e);
|
|
3794
3802
|
},
|
|
3795
3803
|
getConflictingClassGroupIds: (o, i) => {
|
|
3796
3804
|
if (i) {
|
|
3797
3805
|
const d = n[o], c = a[o];
|
|
3798
|
-
return d ? c ?
|
|
3806
|
+
return d ? c ? Ui(c, d) : d : c || Sr;
|
|
3799
3807
|
}
|
|
3800
3808
|
return a[o] || Sr;
|
|
3801
3809
|
}
|
|
@@ -3817,16 +3825,16 @@ const Bi = (t, e) => {
|
|
|
3817
3825
|
if (u.validator(i))
|
|
3818
3826
|
return u.classGroupId;
|
|
3819
3827
|
}
|
|
3820
|
-
},
|
|
3828
|
+
}, Zi = (t) => t.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
3821
3829
|
const e = t.slice(1, -1), a = e.indexOf(":"), n = e.slice(0, a);
|
|
3822
|
-
return n ?
|
|
3823
|
-
})(),
|
|
3830
|
+
return n ? ji + n : void 0;
|
|
3831
|
+
})(), qi = (t) => {
|
|
3824
3832
|
const {
|
|
3825
3833
|
theme: e,
|
|
3826
3834
|
classGroups: a
|
|
3827
3835
|
} = t;
|
|
3828
|
-
return
|
|
3829
|
-
},
|
|
3836
|
+
return Wi(a, e);
|
|
3837
|
+
}, Wi = (t, e) => {
|
|
3830
3838
|
const a = ms();
|
|
3831
3839
|
for (const n in t) {
|
|
3832
3840
|
const r = t[n];
|
|
@@ -3837,28 +3845,28 @@ const Bi = (t, e) => {
|
|
|
3837
3845
|
const r = t.length;
|
|
3838
3846
|
for (let s = 0; s < r; s++) {
|
|
3839
3847
|
const o = t[s];
|
|
3840
|
-
|
|
3848
|
+
Gi(o, e, a, n);
|
|
3841
3849
|
}
|
|
3842
|
-
},
|
|
3850
|
+
}, Gi = (t, e, a, n) => {
|
|
3843
3851
|
if (typeof t == "string") {
|
|
3844
|
-
|
|
3852
|
+
Ki(t, e, a);
|
|
3845
3853
|
return;
|
|
3846
3854
|
}
|
|
3847
3855
|
if (typeof t == "function") {
|
|
3848
|
-
|
|
3856
|
+
$i(t, e, a, n);
|
|
3849
3857
|
return;
|
|
3850
3858
|
}
|
|
3851
|
-
|
|
3852
|
-
},
|
|
3859
|
+
Hi(t, e, a, n);
|
|
3860
|
+
}, Ki = (t, e, a) => {
|
|
3853
3861
|
const n = t === "" ? e : gs(e, t);
|
|
3854
3862
|
n.classGroupId = a;
|
|
3855
|
-
},
|
|
3856
|
-
if (
|
|
3863
|
+
}, $i = (t, e, a, n) => {
|
|
3864
|
+
if (Yi(t)) {
|
|
3857
3865
|
Zn(t(n), e, a, n);
|
|
3858
3866
|
return;
|
|
3859
3867
|
}
|
|
3860
|
-
e.validators === null && (e.validators = []), e.validators.push(
|
|
3861
|
-
},
|
|
3868
|
+
e.validators === null && (e.validators = []), e.validators.push(zi(a, t));
|
|
3869
|
+
}, Hi = (t, e, a, n) => {
|
|
3862
3870
|
const r = Object.entries(t), s = r.length;
|
|
3863
3871
|
for (let o = 0; o < s; o++) {
|
|
3864
3872
|
const [i, d] = r[o];
|
|
@@ -3873,7 +3881,7 @@ const Bi = (t, e) => {
|
|
|
3873
3881
|
i || (i = ms(), a.nextPart.set(o, i)), a = i;
|
|
3874
3882
|
}
|
|
3875
3883
|
return a;
|
|
3876
|
-
},
|
|
3884
|
+
}, Yi = (t) => "isThemeGetter" in t && t.isThemeGetter === !0, Ji = (t) => {
|
|
3877
3885
|
if (t < 1)
|
|
3878
3886
|
return {
|
|
3879
3887
|
get: () => {
|
|
@@ -3897,13 +3905,13 @@ const Bi = (t, e) => {
|
|
|
3897
3905
|
s in a ? a[s] = o : r(s, o);
|
|
3898
3906
|
}
|
|
3899
3907
|
};
|
|
3900
|
-
}, On = "!", kr = ":",
|
|
3908
|
+
}, On = "!", kr = ":", Qi = [], wr = (t, e, a, n, r) => ({
|
|
3901
3909
|
modifiers: t,
|
|
3902
3910
|
hasImportantModifier: e,
|
|
3903
3911
|
baseClassName: a,
|
|
3904
3912
|
maybePostfixModifierPosition: n,
|
|
3905
3913
|
isExternal: r
|
|
3906
|
-
}),
|
|
3914
|
+
}), Xi = (t) => {
|
|
3907
3915
|
const {
|
|
3908
3916
|
prefix: e,
|
|
3909
3917
|
experimentalParseClassName: a
|
|
@@ -3940,7 +3948,7 @@ const Bi = (t, e) => {
|
|
|
3940
3948
|
};
|
|
3941
3949
|
if (e) {
|
|
3942
3950
|
const r = e + kr, s = n;
|
|
3943
|
-
n = (o) => o.startsWith(r) ? s(o.slice(r.length)) : wr(
|
|
3951
|
+
n = (o) => o.startsWith(r) ? s(o.slice(r.length)) : wr(Qi, !1, o, void 0, !0);
|
|
3944
3952
|
}
|
|
3945
3953
|
if (a) {
|
|
3946
3954
|
const r = n;
|
|
@@ -3950,7 +3958,7 @@ const Bi = (t, e) => {
|
|
|
3950
3958
|
});
|
|
3951
3959
|
}
|
|
3952
3960
|
return n;
|
|
3953
|
-
},
|
|
3961
|
+
}, el = (t) => {
|
|
3954
3962
|
const e = /* @__PURE__ */ new Map();
|
|
3955
3963
|
return t.orderSensitiveModifiers.forEach((a, n) => {
|
|
3956
3964
|
e.set(a, 1e6 + n);
|
|
@@ -3963,26 +3971,26 @@ const Bi = (t, e) => {
|
|
|
3963
3971
|
}
|
|
3964
3972
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
3965
3973
|
};
|
|
3966
|
-
},
|
|
3967
|
-
cache:
|
|
3968
|
-
parseClassName:
|
|
3969
|
-
sortModifiers:
|
|
3970
|
-
postfixLookupClassGroupIds:
|
|
3971
|
-
...
|
|
3972
|
-
}),
|
|
3974
|
+
}, tl = (t) => ({
|
|
3975
|
+
cache: Ji(t.cacheSize),
|
|
3976
|
+
parseClassName: Xi(t),
|
|
3977
|
+
sortModifiers: el(t),
|
|
3978
|
+
postfixLookupClassGroupIds: al(t),
|
|
3979
|
+
...Vi(t)
|
|
3980
|
+
}), al = (t) => {
|
|
3973
3981
|
const e = /* @__PURE__ */ Object.create(null), a = t.postfixLookupClassGroups;
|
|
3974
3982
|
if (a)
|
|
3975
3983
|
for (let n = 0; n < a.length; n++)
|
|
3976
3984
|
e[a[n]] = !0;
|
|
3977
3985
|
return e;
|
|
3978
|
-
},
|
|
3986
|
+
}, nl = /\s+/, rl = (t, e) => {
|
|
3979
3987
|
const {
|
|
3980
3988
|
parseClassName: a,
|
|
3981
3989
|
getClassGroupId: n,
|
|
3982
3990
|
getConflictingClassGroupIds: r,
|
|
3983
3991
|
sortModifiers: s,
|
|
3984
3992
|
postfixLookupClassGroupIds: o
|
|
3985
|
-
} = e, i = [], d = t.trim().split(
|
|
3993
|
+
} = e, i = [], d = t.trim().split(nl);
|
|
3986
3994
|
let c = "";
|
|
3987
3995
|
for (let u = d.length - 1; u >= 0; u -= 1) {
|
|
3988
3996
|
const m = d[u], {
|
|
@@ -4027,7 +4035,7 @@ const Bi = (t, e) => {
|
|
|
4027
4035
|
c = m + (c.length > 0 ? " " + c : c);
|
|
4028
4036
|
}
|
|
4029
4037
|
return c;
|
|
4030
|
-
},
|
|
4038
|
+
}, sl = (...t) => {
|
|
4031
4039
|
let e = 0, a, n, r = "";
|
|
4032
4040
|
for (; e < t.length; )
|
|
4033
4041
|
(a = t[e++]) && (n = bs(a)) && (r && (r += " "), r += n);
|
|
@@ -4039,34 +4047,34 @@ const Bi = (t, e) => {
|
|
|
4039
4047
|
for (let n = 0; n < t.length; n++)
|
|
4040
4048
|
t[n] && (e = bs(t[n])) && (a && (a += " "), a += e);
|
|
4041
4049
|
return a;
|
|
4042
|
-
},
|
|
4050
|
+
}, ol = (t, ...e) => {
|
|
4043
4051
|
let a, n, r, s;
|
|
4044
4052
|
const o = (d) => {
|
|
4045
4053
|
const c = e.reduce((u, m) => m(u), t());
|
|
4046
|
-
return a =
|
|
4054
|
+
return a = tl(c), n = a.cache.get, r = a.cache.set, s = i, i(d);
|
|
4047
4055
|
}, i = (d) => {
|
|
4048
4056
|
const c = n(d);
|
|
4049
4057
|
if (c)
|
|
4050
4058
|
return c;
|
|
4051
|
-
const u =
|
|
4059
|
+
const u = rl(d, a);
|
|
4052
4060
|
return r(d, u), u;
|
|
4053
4061
|
};
|
|
4054
|
-
return s = o, (...d) => s(
|
|
4055
|
-
},
|
|
4056
|
-
const e = (a) => a[t] ||
|
|
4062
|
+
return s = o, (...d) => s(sl(...d));
|
|
4063
|
+
}, il = [], Ie = (t) => {
|
|
4064
|
+
const e = (a) => a[t] || il;
|
|
4057
4065
|
return e.isThemeGetter = !0, e;
|
|
4058
|
-
}, fs = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ys = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
4066
|
+
}, fs = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ys = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ll = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, dl = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, cl = /\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$/, ul = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, pl = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ml = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ht = (t) => ll.test(t), ie = (t) => !!t && !Number.isNaN(Number(t)), Ye = (t) => !!t && Number.isInteger(Number(t)), Tn = (t) => t.endsWith("%") && ie(t.slice(0, -1)), it = (t) => dl.test(t), vs = () => !0, hl = (t) => (
|
|
4059
4067
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
4060
4068
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
4061
4069
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
4062
|
-
|
|
4063
|
-
), qn = () => !1,
|
|
4070
|
+
cl.test(t) && !ul.test(t)
|
|
4071
|
+
), qn = () => !1, gl = (t) => pl.test(t), bl = (t) => ml.test(t), fl = (t) => !U(t) && !z(t), yl = (t) => t.startsWith("@container") && (t[10] === "/" && t[11] !== void 0 || t[11] === "s" && t[16] !== void 0 && t.startsWith("-size/", 10) || t[11] === "n" && t[18] !== void 0 && t.startsWith("-normal/", 10)), vl = (t) => St(t, Cs, qn), U = (t) => fs.test(t), wt = (t) => St(t, Ss, hl), Tr = (t) => St(t, Il, ie), _l = (t) => St(t, ws, vs), Nl = (t) => St(t, ks, qn), Ir = (t) => St(t, _s, qn), Cl = (t) => St(t, Ns, bl), Fa = (t) => St(t, Ts, gl), z = (t) => ys.test(t), la = (t) => Dt(t, Ss), Sl = (t) => Dt(t, ks), Ar = (t) => Dt(t, _s), kl = (t) => Dt(t, Cs), wl = (t) => Dt(t, Ns), Ma = (t) => Dt(t, Ts, !0), Tl = (t) => Dt(t, ws, !0), St = (t, e, a) => {
|
|
4064
4072
|
const n = fs.exec(t);
|
|
4065
4073
|
return n ? n[1] ? e(n[1]) : a(n[2]) : !1;
|
|
4066
4074
|
}, Dt = (t, e, a = !1) => {
|
|
4067
4075
|
const n = ys.exec(t);
|
|
4068
4076
|
return n ? n[1] ? e(n[1]) : a : !1;
|
|
4069
|
-
}, _s = (t) => t === "position" || t === "percentage", Ns = (t) => t === "image" || t === "url", Cs = (t) => t === "length" || t === "size" || t === "bg-size", Ss = (t) => t === "length",
|
|
4077
|
+
}, _s = (t) => t === "position" || t === "percentage", Ns = (t) => t === "image" || t === "url", Cs = (t) => t === "length" || t === "size" || t === "bg-size", Ss = (t) => t === "length", Il = (t) => t === "number", ks = (t) => t === "family-name", ws = (t) => t === "number" || t === "weight", Ts = (t) => t === "shadow", Al = () => {
|
|
4070
4078
|
const t = Ie("color"), e = Ie("font"), a = Ie("text"), n = Ie("font-weight"), r = Ie("tracking"), s = Ie("leading"), o = Ie("breakpoint"), i = Ie("container"), d = Ie("spacing"), c = Ie("radius"), u = Ie("shadow"), m = Ie("inset-shadow"), h = Ie("text-shadow"), g = Ie("drop-shadow"), b = Ie("blur"), C = Ie("perspective"), _ = Ie("aspect"), v = Ie("ease"), N = Ie("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], T = () => [
|
|
4071
4079
|
"center",
|
|
4072
4080
|
"top",
|
|
@@ -4091,7 +4099,7 @@ const Bi = (t, e) => {
|
|
|
4091
4099
|
position: [z, U]
|
|
4092
4100
|
}], ee = () => ["no-repeat", {
|
|
4093
4101
|
repeat: ["", "x", "y", "space", "round"]
|
|
4094
|
-
}], ce = () => ["auto", "cover", "contain",
|
|
4102
|
+
}], ce = () => ["auto", "cover", "contain", kl, vl, {
|
|
4095
4103
|
size: [z, U]
|
|
4096
4104
|
}], M = () => [Tn, la, wt], K = () => [
|
|
4097
4105
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -4120,7 +4128,7 @@ const Bi = (t, e) => {
|
|
|
4120
4128
|
container: [it],
|
|
4121
4129
|
"drop-shadow": [it],
|
|
4122
4130
|
ease: ["in", "out", "in-out"],
|
|
4123
|
-
font: [
|
|
4131
|
+
font: [fl],
|
|
4124
4132
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
4125
4133
|
"inset-shadow": [it],
|
|
4126
4134
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -4160,7 +4168,7 @@ const Bi = (t, e) => {
|
|
|
4160
4168
|
* Container Name
|
|
4161
4169
|
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
|
4162
4170
|
*/
|
|
4163
|
-
"container-named": [
|
|
4171
|
+
"container-named": [yl],
|
|
4164
4172
|
/**
|
|
4165
4173
|
* Columns
|
|
4166
4174
|
* @see https://tailwindcss.com/docs/columns
|
|
@@ -4926,7 +4934,7 @@ const Bi = (t, e) => {
|
|
|
4926
4934
|
* @see https://tailwindcss.com/docs/font-weight
|
|
4927
4935
|
*/
|
|
4928
4936
|
"font-weight": [{
|
|
4929
|
-
font: [n,
|
|
4937
|
+
font: [n, Tl, _l]
|
|
4930
4938
|
}],
|
|
4931
4939
|
/**
|
|
4932
4940
|
* Font Stretch
|
|
@@ -4940,7 +4948,7 @@ const Bi = (t, e) => {
|
|
|
4940
4948
|
* @see https://tailwindcss.com/docs/font-family
|
|
4941
4949
|
*/
|
|
4942
4950
|
"font-family": [{
|
|
4943
|
-
font: [
|
|
4951
|
+
font: [Sl, Nl, e]
|
|
4944
4952
|
}],
|
|
4945
4953
|
/**
|
|
4946
4954
|
* Font Feature Settings
|
|
@@ -5209,7 +5217,7 @@ const Bi = (t, e) => {
|
|
|
5209
5217
|
}, Ye, z, U],
|
|
5210
5218
|
radial: ["", z, U],
|
|
5211
5219
|
conic: [Ye, z, U]
|
|
5212
|
-
},
|
|
5220
|
+
}, wl, Cl]
|
|
5213
5221
|
}],
|
|
5214
5222
|
/**
|
|
5215
5223
|
* Background Color
|
|
@@ -6751,9 +6759,9 @@ const Bi = (t, e) => {
|
|
|
6751
6759
|
postfixLookupClassGroups: ["container-type"],
|
|
6752
6760
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
6753
6761
|
};
|
|
6754
|
-
},
|
|
6762
|
+
}, xl = /* @__PURE__ */ ol(Al);
|
|
6755
6763
|
function j(...t) {
|
|
6756
|
-
return
|
|
6764
|
+
return xl(Bi(t));
|
|
6757
6765
|
}
|
|
6758
6766
|
function le(t, e = "usd", a = 2, n = "en-US") {
|
|
6759
6767
|
return new Intl.NumberFormat(n, {
|
|
@@ -6766,7 +6774,7 @@ function le(t, e = "usd", a = 2, n = "en-US") {
|
|
|
6766
6774
|
function ct(t, e = "en-US") {
|
|
6767
6775
|
return new Date(t).toLocaleDateString(e, { month: "short", day: "numeric", year: "numeric" });
|
|
6768
6776
|
}
|
|
6769
|
-
function
|
|
6777
|
+
function Pl(t, e) {
|
|
6770
6778
|
const a = new Date(t);
|
|
6771
6779
|
return a.setDate(a.getDate() + e), a.toISOString();
|
|
6772
6780
|
}
|
|
@@ -6788,7 +6796,7 @@ function Ne(t) {
|
|
|
6788
6796
|
function za(t) {
|
|
6789
6797
|
return { usd: "$", eur: "€", gbp: "£", cad: "$", aud: "$", jpy: "¥" }[t.toLowerCase()] ?? `${t.toUpperCase()} `;
|
|
6790
6798
|
}
|
|
6791
|
-
const tt = 1e9,
|
|
6799
|
+
const tt = 1e9, Dl = {
|
|
6792
6800
|
incoming_messages_events: (t) => `${ve(t)} incoming messages & events`,
|
|
6793
6801
|
conversation_sessions: (t) => `${ve(t)} conversation sessions`,
|
|
6794
6802
|
table_rows: (t) => `${ve(t)} table rows`,
|
|
@@ -6800,11 +6808,11 @@ const tt = 1e9, Pl = {
|
|
|
6800
6808
|
ai_spend: (t) => `${le(t / tt, "usd", 0)} AI credit included`,
|
|
6801
6809
|
always_alive: (t) => t === 1 ? "1 always-alive bot" : `${ve(t)} always-alive bots`
|
|
6802
6810
|
};
|
|
6803
|
-
function
|
|
6804
|
-
const n = (a == null ? void 0 : a[t]) ??
|
|
6811
|
+
function Yc(t, e, a) {
|
|
6812
|
+
const n = (a == null ? void 0 : a[t]) ?? Dl[t];
|
|
6805
6813
|
return n ? n(e) : `${ve(e)} ${t.replaceAll("_", " ")}`;
|
|
6806
6814
|
}
|
|
6807
|
-
const Wt = ["community", "plus", "team", "enterprise", "managed"],
|
|
6815
|
+
const Wt = ["community", "plus", "team", "enterprise", "managed"], Rl = ["community", "plus", "team", "enterprise", "managed"];
|
|
6808
6816
|
function _e(t) {
|
|
6809
6817
|
var n;
|
|
6810
6818
|
const e = t.name.toLowerCase();
|
|
@@ -6819,7 +6827,7 @@ function _e(t) {
|
|
|
6819
6827
|
if (e.includes("enterprise"))
|
|
6820
6828
|
return "enterprise";
|
|
6821
6829
|
const a = (n = t.metadata) == null ? void 0 : n.legacyName;
|
|
6822
|
-
return
|
|
6830
|
+
return Rl.find((r) => r === a) ?? "community";
|
|
6823
6831
|
}
|
|
6824
6832
|
const Is = "https://botpress.com/contact-us/managed-plan", gt = {
|
|
6825
6833
|
conversation_sessions_addon: "addonNameConversationSessions",
|
|
@@ -6834,7 +6842,7 @@ function Wn(t, e, a) {
|
|
|
6834
6842
|
function ja(t) {
|
|
6835
6843
|
return t.replace("Add-on - ", "");
|
|
6836
6844
|
}
|
|
6837
|
-
function
|
|
6845
|
+
function El(t) {
|
|
6838
6846
|
return (t == null ? void 0 : t.find((e) => {
|
|
6839
6847
|
var a;
|
|
6840
6848
|
return (((a = e.increments) == null ? void 0 : a.conversation_sessions) ?? 0) > 0;
|
|
@@ -6846,7 +6854,7 @@ const As = [
|
|
|
6846
6854
|
{ key: "vector_db_storage", label: "Vector DB storage", unit: "bytes" },
|
|
6847
6855
|
{ key: "file_storage", label: "File storage", unit: "bytes" }
|
|
6848
6856
|
];
|
|
6849
|
-
function
|
|
6857
|
+
function Ll(t, e, a) {
|
|
6850
6858
|
var r;
|
|
6851
6859
|
if (!e)
|
|
6852
6860
|
return [];
|
|
@@ -6862,7 +6870,7 @@ function El(t, e, a) {
|
|
|
6862
6870
|
}
|
|
6863
6871
|
return n;
|
|
6864
6872
|
}
|
|
6865
|
-
function
|
|
6873
|
+
function Ol(t, e, a) {
|
|
6866
6874
|
var r;
|
|
6867
6875
|
if (!t)
|
|
6868
6876
|
return [];
|
|
@@ -6878,7 +6886,7 @@ function Ll(t, e, a) {
|
|
|
6878
6886
|
}
|
|
6879
6887
|
function Gn(t, e, a) {
|
|
6880
6888
|
var o;
|
|
6881
|
-
const n =
|
|
6889
|
+
const n = El(t);
|
|
6882
6890
|
if (!n)
|
|
6883
6891
|
return null;
|
|
6884
6892
|
const r = ((o = n.increments) == null ? void 0 : o.conversation_sessions) ?? 0, s = Wn(n, e, a);
|
|
@@ -6989,7 +6997,7 @@ const Kn = {
|
|
|
6989
6997
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6990
6998
|
"aria-hidden": !0,
|
|
6991
6999
|
...e
|
|
6992
|
-
}),
|
|
7000
|
+
}), Fl = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l(
|
|
6993
7001
|
"path",
|
|
6994
7002
|
{
|
|
6995
7003
|
d: "M3 8.5l3.5 3.5L13 4.5",
|
|
@@ -7009,7 +7017,7 @@ const Kn = {
|
|
|
7009
7017
|
}
|
|
7010
7018
|
),
|
|
7011
7019
|
/* @__PURE__ */ l("path", { d: "M12.8 11l.5 1.2 1.2.5-1.2.5-.5 1.3-.5-1.3-1.2-.5 1.2-.5.5-1.2z", fill: "currentColor" })
|
|
7012
|
-
] }),
|
|
7020
|
+
] }), Ml = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l(
|
|
7013
7021
|
"path",
|
|
7014
7022
|
{
|
|
7015
7023
|
d: "M2.5 8a5.5 5.5 0 115.5 5.5c-.9 0-1.8-.2-2.5-.6L2.5 13.5l.6-3A5.5 5.5 0 012.5 8z",
|
|
@@ -7037,7 +7045,7 @@ const Kn = {
|
|
|
7037
7045
|
strokeLinejoin: "round"
|
|
7038
7046
|
}
|
|
7039
7047
|
)
|
|
7040
|
-
] }),
|
|
7048
|
+
] }), Bl = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l(
|
|
7041
7049
|
"path",
|
|
7042
7050
|
{
|
|
7043
7051
|
d: "M6 2.5h3v1.6a1.4 1.4 0 102.8 0V2.5h1.7v3h-1.6a1.4 1.4 0 100 2.8h1.6v3h-3v1.6a1.4 1.4 0 11-2.8 0v-1.6h-3v-3h1.6a1.4 1.4 0 100-2.8H2.5v-3H6z",
|
|
@@ -7048,14 +7056,14 @@ const Kn = {
|
|
|
7048
7056
|
) }), Yn = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7049
7057
|
/* @__PURE__ */ l("path", { d: "M8 2l6 3-6 3-6-3 6-3z", stroke: "currentColor", strokeWidth: "1.3", strokeLinejoin: "round" }),
|
|
7050
7058
|
/* @__PURE__ */ l("path", { d: "M2 8l6 3 6-3M2 11l6 3 6-3", stroke: "currentColor", strokeWidth: "1.3", strokeLinejoin: "round" })
|
|
7051
|
-
] }),
|
|
7059
|
+
] }), Ul = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l(
|
|
7052
7060
|
"path",
|
|
7053
7061
|
{
|
|
7054
7062
|
d: "M8 8c-1.2-1.6-2-2.4-3.3-2.4a2.4 2.4 0 100 4.8C6 10.4 6.8 9.6 8 8zm0 0c1.2 1.6 2 2.4 3.3 2.4a2.4 2.4 0 100-4.8C10 5.6 9.2 6.4 8 8z",
|
|
7055
7063
|
stroke: "currentColor",
|
|
7056
7064
|
strokeWidth: "1.3"
|
|
7057
7065
|
}
|
|
7058
|
-
) }), Jn = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l("path", { d: "M8.5 1.5L3 9h4l-.5 5.5L12 7H8l.5-5.5z", stroke: "currentColor", strokeWidth: "1.3", strokeLinejoin: "round" }) }),
|
|
7066
|
+
) }), Jn = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l("path", { d: "M8.5 1.5L3 9h4l-.5 5.5L12 7H8l.5-5.5z", stroke: "currentColor", strokeWidth: "1.3", strokeLinejoin: "round" }) }), zl = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7059
7067
|
/* @__PURE__ */ l("circle", { cx: "6", cy: "5.5", r: "2.2", stroke: "currentColor", strokeWidth: "1.3" }),
|
|
7060
7068
|
/* @__PURE__ */ l("path", { d: "M2 13c0-2.2 1.8-3.6 4-3.6s4 1.4 4 3.6", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round" }),
|
|
7061
7069
|
/* @__PURE__ */ l(
|
|
@@ -7067,7 +7075,7 @@ const Kn = {
|
|
|
7067
7075
|
strokeLinecap: "round"
|
|
7068
7076
|
}
|
|
7069
7077
|
)
|
|
7070
|
-
] }),
|
|
7078
|
+
] }), jl = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7071
7079
|
/* @__PURE__ */ l("path", { d: "M2.5 2.5v11h11", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
7072
7080
|
/* @__PURE__ */ l(
|
|
7073
7081
|
"path",
|
|
@@ -7079,7 +7087,7 @@ const Kn = {
|
|
|
7079
7087
|
strokeLinejoin: "round"
|
|
7080
7088
|
}
|
|
7081
7089
|
)
|
|
7082
|
-
] }),
|
|
7090
|
+
] }), Vl = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7083
7091
|
/* @__PURE__ */ l("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeWidth: "1.3" }),
|
|
7084
7092
|
/* @__PURE__ */ l(
|
|
7085
7093
|
"path",
|
|
@@ -7089,13 +7097,13 @@ const Kn = {
|
|
|
7089
7097
|
strokeWidth: "1.3"
|
|
7090
7098
|
}
|
|
7091
7099
|
)
|
|
7092
|
-
] }),
|
|
7100
|
+
] }), Zl = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7093
7101
|
/* @__PURE__ */ l("path", { d: "M2.5 11.5L9 5l2 2-6.5 6.5H2.5v-2z", stroke: "currentColor", strokeWidth: "1.3", strokeLinejoin: "round" }),
|
|
7094
7102
|
/* @__PURE__ */ l("path", { d: "M9 5l1.8-1.8a1.4 1.4 0 012 2L11 7", stroke: "currentColor", strokeWidth: "1.3", strokeLinejoin: "round" })
|
|
7095
7103
|
] }), Rr = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7096
7104
|
/* @__PURE__ */ l("rect", { x: "1.8", y: "3.5", width: "12.4", height: "9", rx: "1.6", stroke: "currentColor", strokeWidth: "1.3" }),
|
|
7097
7105
|
/* @__PURE__ */ l("path", { d: "M1.8 6.4h12.4", stroke: "currentColor", strokeWidth: "1.3" })
|
|
7098
|
-
] }),
|
|
7106
|
+
] }), Jc = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l(
|
|
7099
7107
|
"path",
|
|
7100
7108
|
{
|
|
7101
7109
|
d: "M2 6l6-3.5L14 6v1H2V6zM3 7v5M6.3 7v5M9.7 7v5M13 7v5M2 12.5h12",
|
|
@@ -7103,7 +7111,7 @@ const Kn = {
|
|
|
7103
7111
|
strokeWidth: "1.2",
|
|
7104
7112
|
strokeLinejoin: "round"
|
|
7105
7113
|
}
|
|
7106
|
-
) }),
|
|
7114
|
+
) }), Qc = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7107
7115
|
/* @__PURE__ */ l("rect", { x: "3.5", y: "7", width: "9", height: "6.5", rx: "1.4", stroke: "currentColor", strokeWidth: "1.3" }),
|
|
7108
7116
|
/* @__PURE__ */ l("path", { d: "M5.5 7V5.5a2.5 2.5 0 015 0V7", stroke: "currentColor", strokeWidth: "1.3" })
|
|
7109
7117
|
] }), Qn = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l("path", { d: "M4 4l8 8M12 4l-8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }), ea = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l("path", { d: "M4 6.5L8 10.5l4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }), xs = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l(
|
|
@@ -7124,7 +7132,7 @@ const Kn = {
|
|
|
7124
7132
|
strokeLinecap: "round",
|
|
7125
7133
|
strokeLinejoin: "round"
|
|
7126
7134
|
}
|
|
7127
|
-
) }),
|
|
7135
|
+
) }), ql = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l("path", { d: "M3.5 8h9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }), Ps = ({ size: t, ...e }) => /* @__PURE__ */ l("svg", { ...ye(t, e), children: /* @__PURE__ */ l("path", { d: "M8 3.5v9M3.5 8h9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }), ln = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7128
7136
|
/* @__PURE__ */ l(
|
|
7129
7137
|
"path",
|
|
7130
7138
|
{
|
|
@@ -7145,7 +7153,7 @@ const Kn = {
|
|
|
7145
7153
|
strokeLinecap: "round",
|
|
7146
7154
|
strokeLinejoin: "round"
|
|
7147
7155
|
}
|
|
7148
|
-
) }),
|
|
7156
|
+
) }), Wl = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7149
7157
|
/* @__PURE__ */ l("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeWidth: "1.3" }),
|
|
7150
7158
|
/* @__PURE__ */ l(
|
|
7151
7159
|
"path",
|
|
@@ -7175,7 +7183,7 @@ const Kn = {
|
|
|
7175
7183
|
strokeLinecap: "round",
|
|
7176
7184
|
strokeLinejoin: "round"
|
|
7177
7185
|
}
|
|
7178
|
-
) }),
|
|
7186
|
+
) }), Xc = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7179
7187
|
/* @__PURE__ */ l(
|
|
7180
7188
|
"path",
|
|
7181
7189
|
{
|
|
@@ -7186,7 +7194,7 @@ const Kn = {
|
|
|
7186
7194
|
}
|
|
7187
7195
|
),
|
|
7188
7196
|
/* @__PURE__ */ l("path", { d: "M6.2 5.5h3.6M6.2 8h3.6", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round" })
|
|
7189
|
-
] }),
|
|
7197
|
+
] }), Gl = ({ size: t, ...e }) => /* @__PURE__ */ p("svg", { ...ye(t, e), children: [
|
|
7190
7198
|
/* @__PURE__ */ l("rect", { x: "2.5", y: "3.5", width: "11", height: "10", rx: "1.5", stroke: "currentColor", strokeWidth: "1.3" }),
|
|
7191
7199
|
/* @__PURE__ */ l("path", { d: "M2.5 6.5h11M5.5 2v2.5M10.5 2v2.5", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round" })
|
|
7192
7200
|
] }), Ds = ({ brand: t }) => {
|
|
@@ -7215,7 +7223,7 @@ const Kn = {
|
|
|
7215
7223
|
};
|
|
7216
7224
|
function er(t) {
|
|
7217
7225
|
const e = t.toLowerCase();
|
|
7218
|
-
return /seat|member|user|team|rbac|rout/.test(e) ?
|
|
7226
|
+
return /seat|member|user|team|rbac|rout/.test(e) ? zl : /analytic|report|insight|dashboard/.test(e) ? jl : /whatsapp|channel|chat|message|conversation|webchat|voice/.test(e) ? Ml : /storage|table|vector|file|gb|rows|db/.test(e) ? Yn : /domain|help center|whitelabel|website|url|web/.test(e) ? Vl : /brand|theme|custom|white-?label/.test(e) ? Zl : /unlimited|infinit/.test(e) ? Ul : /security|sla|compliance|soc|audit/.test(e) || /support|sla|dedicated|priority/.test(e) ? Dr : /integration|api|plugin|sdk|adk|studio/.test(e) ? Bl : /ai|agent|model|gpt|llm/.test(e) ? Jn : Hn;
|
|
7219
7227
|
}
|
|
7220
7228
|
const Fe = ({
|
|
7221
7229
|
open: t,
|
|
@@ -7277,7 +7285,7 @@ const Fe = ({
|
|
|
7277
7285
|
/* @__PURE__ */ l(dn, { size: 15 })
|
|
7278
7286
|
] })
|
|
7279
7287
|
] });
|
|
7280
|
-
},
|
|
7288
|
+
}, Kl = ({
|
|
7281
7289
|
options: t,
|
|
7282
7290
|
value: e,
|
|
7283
7291
|
onChange: a,
|
|
@@ -7307,13 +7315,13 @@ const Fe = ({
|
|
|
7307
7315
|
className: j("bpb-skeleton", a && "bpb-skeleton--rounded", n),
|
|
7308
7316
|
style: { width: t ?? "100%", height: e }
|
|
7309
7317
|
}
|
|
7310
|
-
),
|
|
7318
|
+
), $l = 560, Hl = `(max-width: ${$l}px)`, Yl = () => {
|
|
7311
7319
|
};
|
|
7312
|
-
function
|
|
7320
|
+
function Jl(t) {
|
|
7313
7321
|
const e = It(
|
|
7314
7322
|
(r) => {
|
|
7315
7323
|
if (typeof window > "u")
|
|
7316
|
-
return
|
|
7324
|
+
return Yl;
|
|
7317
7325
|
const s = window.matchMedia(t);
|
|
7318
7326
|
return s.addEventListener("change", r), () => s.removeEventListener("change", r);
|
|
7319
7327
|
},
|
|
@@ -7321,13 +7329,13 @@ function Yl(t) {
|
|
|
7321
7329
|
), a = It(() => typeof window < "u" && window.matchMedia(t).matches, [t]), n = It(() => !1, []);
|
|
7322
7330
|
return ko(e, a, n);
|
|
7323
7331
|
}
|
|
7324
|
-
function
|
|
7325
|
-
return
|
|
7332
|
+
function Ql() {
|
|
7333
|
+
return Jl(Hl);
|
|
7326
7334
|
}
|
|
7327
7335
|
const Qa = ({ label: t, children: e }) => /* @__PURE__ */ p("span", { className: "bpb-tooltip", tabIndex: 0, role: "note", children: [
|
|
7328
7336
|
/* @__PURE__ */ l("span", { className: "bpb-tooltip__term", children: t }),
|
|
7329
7337
|
/* @__PURE__ */ l("span", { className: "bpb-tooltip__bubble", role: "tooltip", children: e })
|
|
7330
|
-
] }), In = 3,
|
|
7338
|
+
] }), In = 3, Xl = ({
|
|
7331
7339
|
label: t,
|
|
7332
7340
|
description: e,
|
|
7333
7341
|
Icon: a
|
|
@@ -7351,17 +7359,17 @@ const Qa = ({ label: t, children: e }) => /* @__PURE__ */ p("span", { className:
|
|
|
7351
7359
|
),
|
|
7352
7360
|
n && /* @__PURE__ */ l("p", { id: s, className: "bpb-plan-card__feature-desc", children: e })
|
|
7353
7361
|
] });
|
|
7354
|
-
},
|
|
7362
|
+
}, ed = ({ features: t, previousPlanName: e, overrides: a, isMobile: n }) => {
|
|
7355
7363
|
const { t: r } = ge(), [s, o] = J(!1), d = n && !s && t.length > In ? t.slice(0, In) : t;
|
|
7356
7364
|
return /* @__PURE__ */ p(Te, { children: [
|
|
7357
7365
|
/* @__PURE__ */ p("ul", { className: j("bpb-plan-card__features", n && "bpb-plan-card__features--mobile"), children: [
|
|
7358
7366
|
e && /* @__PURE__ */ p("li", { className: "bpb-plan-card__features-lead", children: [
|
|
7359
|
-
/* @__PURE__ */ l("span", { className: "bpb-plan-card__feature-chip bpb-plan-card__feature-chip--lead", children: /* @__PURE__ */ l(
|
|
7367
|
+
/* @__PURE__ */ l("span", { className: "bpb-plan-card__feature-chip bpb-plan-card__feature-chip--lead", children: /* @__PURE__ */ l(Fl, { size: 13 }) }),
|
|
7360
7368
|
/* @__PURE__ */ l("span", { children: r("upgradeEverythingIn", { planName: e }) })
|
|
7361
7369
|
] }),
|
|
7362
7370
|
d.map((c) => {
|
|
7363
7371
|
const u = er(c), m = Kn[c], h = a == null ? void 0 : a[c], g = (h == null ? void 0 : h.label) ?? (m !== void 0 ? r(m.label) : c), b = (h == null ? void 0 : h.description) ?? (m !== void 0 ? r(m.desc) : void 0);
|
|
7364
|
-
return n ? b ? /* @__PURE__ */ l(
|
|
7372
|
+
return n ? b ? /* @__PURE__ */ l(Xl, { label: g, description: b, Icon: u }, c) : /* @__PURE__ */ p("li", { children: [
|
|
7365
7373
|
/* @__PURE__ */ l("span", { className: "bpb-plan-card__feature-chip", children: /* @__PURE__ */ l(u, { size: 13 }) }),
|
|
7366
7374
|
/* @__PURE__ */ l("span", { className: "bpb-plan-card__feature-label", children: g })
|
|
7367
7375
|
] }, c) : /* @__PURE__ */ p("li", { children: [
|
|
@@ -7376,11 +7384,11 @@ const Qa = ({ label: t, children: e }) => /* @__PURE__ */ p("span", { className:
|
|
|
7376
7384
|
] })
|
|
7377
7385
|
] });
|
|
7378
7386
|
};
|
|
7379
|
-
function
|
|
7387
|
+
function td(t, e) {
|
|
7380
7388
|
const a = t.prices[e];
|
|
7381
7389
|
return a || ((e === "month" ? t.prices.year : t.prices.month) ?? null);
|
|
7382
7390
|
}
|
|
7383
|
-
function
|
|
7391
|
+
function ad(t, e) {
|
|
7384
7392
|
var r, s;
|
|
7385
7393
|
const a = (r = t.prices.month) == null ? void 0 : r.amount;
|
|
7386
7394
|
if (e === "month")
|
|
@@ -7388,7 +7396,7 @@ function td(t, e) {
|
|
|
7388
7396
|
const n = ((s = t.prices.year) == null ? void 0 : s.amount) ?? (a === void 0 ? void 0 : a * 12);
|
|
7389
7397
|
return n === void 0 ? null : n / 12;
|
|
7390
7398
|
}
|
|
7391
|
-
function
|
|
7399
|
+
function nd(t) {
|
|
7392
7400
|
var a, n;
|
|
7393
7401
|
let e = 0;
|
|
7394
7402
|
for (const r of t) {
|
|
@@ -7397,7 +7405,7 @@ function ad(t) {
|
|
|
7397
7405
|
}
|
|
7398
7406
|
return Math.round(e * 100);
|
|
7399
7407
|
}
|
|
7400
|
-
const
|
|
7408
|
+
const rd = ({
|
|
7401
7409
|
open: t,
|
|
7402
7410
|
onOpenChange: e,
|
|
7403
7411
|
onSelectPlan: a,
|
|
@@ -7408,7 +7416,7 @@ const nd = ({
|
|
|
7408
7416
|
featureDescriptions: i
|
|
7409
7417
|
}) => {
|
|
7410
7418
|
var M, K, G;
|
|
7411
|
-
const { isOutdatedBilling: d, toast: c, analytics: u } = re(), { t: m } = ge(), [h, g] = J(r), { data: b, isLoading: C } = rt(), { data: _ } = Qt(), { data: v } =
|
|
7419
|
+
const { isOutdatedBilling: d, toast: c, analytics: u } = re(), { t: m } = ge(), [h, g] = J(r), { data: b, isLoading: C } = rt(), { data: _ } = Qt(), { data: v } = Ve({ enabled: t }), { data: N } = os({ enabled: t }), S = us(), T = (N == null ? void 0 : N.planReadonly) ?? !1;
|
|
7412
7420
|
Oe(() => {
|
|
7413
7421
|
t && u.capture(we.PLAN_PICKER_VIEWED, { interval: h });
|
|
7414
7422
|
}, [t, u]);
|
|
@@ -7416,7 +7424,7 @@ const nd = ({
|
|
|
7416
7424
|
P !== h && u.capture(we.PLAN_INTERVAL_TOGGLED, { interval: P }), g(P);
|
|
7417
7425
|
}, k = v == null ? void 0 : v.plan.current.interval, A = b == null ? void 0 : b.find((P) => P.id === (v == null ? void 0 : v.plan.current.planId)), w = v ? A ? _e(A) : "community" : void 0, E = ((M = v == null ? void 0 : v.plan.next) == null ? void 0 : M.planId) ?? null, L = !!E && E !== (v == null ? void 0 : v.plan.current.planId), O = T || w === "enterprise" || w === "managed", Z = Re(() => b ? b.filter(
|
|
7418
7426
|
(P) => _e(P) !== "managed" && _e(P) !== "enterprise" && !s.includes(P.id)
|
|
7419
|
-
).sort((P, be) => Wt.indexOf(_e(P)) - Wt.indexOf(_e(be))) : [], [b, s]), V = Re(() =>
|
|
7427
|
+
).sort((P, be) => Wt.indexOf(_e(P)) - Wt.indexOf(_e(be))) : [], [b, s]), V = Re(() => nd(Z), [Z]), $ = Ql(), B = Re(() => {
|
|
7420
7428
|
var te;
|
|
7421
7429
|
if (Z.length === 0)
|
|
7422
7430
|
return null;
|
|
@@ -7474,7 +7482,7 @@ const nd = ({
|
|
|
7474
7482
|
children: /* @__PURE__ */ p("div", { className: "bpb-upgrade", children: [
|
|
7475
7483
|
/* @__PURE__ */ l("h2", { className: "bpb-upgrade__title", children: m("upgradeDialogTitle") }),
|
|
7476
7484
|
/* @__PURE__ */ l("div", { className: "bpb-upgrade__toggle", children: /* @__PURE__ */ l(
|
|
7477
|
-
|
|
7485
|
+
Kl,
|
|
7478
7486
|
{
|
|
7479
7487
|
"aria-label": m("dashboardBillingPeriod"),
|
|
7480
7488
|
value: h,
|
|
@@ -7498,7 +7506,7 @@ const nd = ({
|
|
|
7498
7506
|
] }, P)),
|
|
7499
7507
|
Z.map((P, be) => {
|
|
7500
7508
|
var sa, oa;
|
|
7501
|
-
const te = _e(P), de =
|
|
7509
|
+
const te = _e(P), de = td(P, h), pe = ad(P, h), ae = (((sa = P.prices.month) == null ? void 0 : sa.amount) ?? 0) <= 0, fe = te === w, se = fe && (w === "community" || h === k), Ee = te === w && w !== "community" && h !== k, st = !!E && P.id === E && !se, pt = w !== void 0 && Wt.indexOf(te) < Wt.indexOf(w), Pe = (te === n || P.id === n) && !se, Ze = fe && L ? "cancel_downgrade" : se ? "current" : Ee ? "switch_interval" : st ? "next" : pt ? "downgrade" : "upgrade", ta = be > 0 ? Z[be - 1] : void 0, aa = o[te] ?? $n[te], Et = P.features.conversation_sessions, Lt = Gn(_, P, h), Ot = P.features.ai_spend, Ea = Ot !== void 0 ? m("planFeatureAiUsageIncluded", {
|
|
7502
7510
|
amount: le(Ot / tt, (de == null ? void 0 : de.currency) ?? "usd", 0)
|
|
7503
7511
|
}) : void 0, vn = Ot !== void 0 && Et ? m("planFeatureDescAiUsageIncluded", {
|
|
7504
7512
|
rate: le(
|
|
@@ -7508,7 +7516,7 @@ const nd = ({
|
|
|
7508
7516
|
)
|
|
7509
7517
|
}) : void 0, _n = {
|
|
7510
7518
|
...Object.fromEntries(
|
|
7511
|
-
Object.entries(i ?? {}).map(([Me,
|
|
7519
|
+
Object.entries(i ?? {}).map(([Me, qe]) => [Me, { description: qe }])
|
|
7512
7520
|
),
|
|
7513
7521
|
...Ea !== void 0 ? {
|
|
7514
7522
|
"AI usage included": {
|
|
@@ -7516,7 +7524,7 @@ const nd = ({
|
|
|
7516
7524
|
description: (i == null ? void 0 : i["AI usage included"]) ?? vn
|
|
7517
7525
|
}
|
|
7518
7526
|
} : {}
|
|
7519
|
-
}, na = S.isPending && (
|
|
7527
|
+
}, na = S.isPending && (Ze === "downgrade" && ((oa = S.variables) == null ? void 0 : oa.planId) === P.id || Ze === "cancel_downgrade"), xe = Ne(P.name), mt = !$ || D === P.id, ra = pe !== null && de ? /* @__PURE__ */ p(Te, { children: [
|
|
7520
7528
|
/* @__PURE__ */ l("span", { className: "bpb-plan-card__currency", children: za(de.currency) }),
|
|
7521
7529
|
/* @__PURE__ */ l("span", { className: "bpb-plan-card__amount", children: Number.isInteger(pe) ? pe : pe.toFixed(2).replace(/\.00$/, "") }),
|
|
7522
7530
|
/* @__PURE__ */ l("span", { className: "bpb-plan-card__per", children: m("upgradePerMonthSuffix", { currency: de.currency.toUpperCase() }) })
|
|
@@ -7576,10 +7584,10 @@ const nd = ({
|
|
|
7576
7584
|
packSize: ve(Lt.packSize)
|
|
7577
7585
|
}) }) : /* @__PURE__ */ l("p", { className: "bpb-plan-card__pack", children: m("upgradeNoTopup") })
|
|
7578
7586
|
] }),
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7587
|
+
Ze === "current" && /* @__PURE__ */ l(ke, { variant: "outline", block: !0, disabled: !0, children: m("upgradeCurrentPlan") }),
|
|
7588
|
+
Ze === "next" && /* @__PURE__ */ l(ke, { variant: "outline", block: !0, disabled: !0, children: m("upgradeNextPlan") }),
|
|
7589
|
+
Ze === "cancel_downgrade" && /* @__PURE__ */ l(ke, { variant: "primary", block: !0, loading: na, onClick: ce, children: m("upgradeCancelDowngrade") }),
|
|
7590
|
+
Ze === "downgrade" && /* @__PURE__ */ l(
|
|
7583
7591
|
ke,
|
|
7584
7592
|
{
|
|
7585
7593
|
variant: "outline",
|
|
@@ -7590,7 +7598,7 @@ const nd = ({
|
|
|
7590
7598
|
children: m("upgradeDowngrade")
|
|
7591
7599
|
}
|
|
7592
7600
|
),
|
|
7593
|
-
|
|
7601
|
+
Ze === "switch_interval" && /* @__PURE__ */ l(
|
|
7594
7602
|
ke,
|
|
7595
7603
|
{
|
|
7596
7604
|
variant: "primary",
|
|
@@ -7607,7 +7615,7 @@ const nd = ({
|
|
|
7607
7615
|
children: m(h === "year" ? "upgradeSwitchToAnnual" : "upgradeSwitchToMonthly")
|
|
7608
7616
|
}
|
|
7609
7617
|
),
|
|
7610
|
-
|
|
7618
|
+
Ze === "upgrade" && /* @__PURE__ */ l(
|
|
7611
7619
|
ke,
|
|
7612
7620
|
{
|
|
7613
7621
|
variant: Pe ? "accent" : "primary",
|
|
@@ -7625,7 +7633,7 @@ const nd = ({
|
|
|
7625
7633
|
}
|
|
7626
7634
|
),
|
|
7627
7635
|
/* @__PURE__ */ l(
|
|
7628
|
-
|
|
7636
|
+
ed,
|
|
7629
7637
|
{
|
|
7630
7638
|
features: aa,
|
|
7631
7639
|
previousPlanName: ta ? Ne(ta.name) : void 0,
|
|
@@ -7724,12 +7732,12 @@ function Es(t) {
|
|
|
7724
7732
|
invalid: { color: t ? "#ff8583" : "#e02e2a" }
|
|
7725
7733
|
};
|
|
7726
7734
|
}
|
|
7727
|
-
const
|
|
7735
|
+
const sd = { pt: "pt-BR", es: "es-419" };
|
|
7728
7736
|
function Ls(t) {
|
|
7729
7737
|
const e = t.split("-")[0] ?? t;
|
|
7730
|
-
return
|
|
7738
|
+
return sd[e] ?? t;
|
|
7731
7739
|
}
|
|
7732
|
-
const
|
|
7740
|
+
const od = {
|
|
7733
7741
|
address: "address",
|
|
7734
7742
|
name: "address",
|
|
7735
7743
|
taxId: "taxId",
|
|
@@ -7742,7 +7750,7 @@ function Os(t, e) {
|
|
|
7742
7750
|
return { general: (t == null ? void 0 : t.message) || e };
|
|
7743
7751
|
const n = {};
|
|
7744
7752
|
for (const s of a)
|
|
7745
|
-
s.message && (n[
|
|
7753
|
+
s.message && (n[od[s.scope ?? ""] ?? "general"] = s.message);
|
|
7746
7754
|
return Object.keys(n).length > 0 ? n : { general: (t == null ? void 0 : t.message) || e };
|
|
7747
7755
|
}
|
|
7748
7756
|
function Xa(t) {
|
|
@@ -7756,7 +7764,7 @@ function Fs(t) {
|
|
|
7756
7764
|
const e = new Date(t);
|
|
7757
7765
|
return new Date(e.getUTCFullYear(), e.getUTCMonth() + 1, 0).toISOString();
|
|
7758
7766
|
}
|
|
7759
|
-
const
|
|
7767
|
+
const id = 4, ld = ({
|
|
7760
7768
|
plan: t,
|
|
7761
7769
|
interval: e,
|
|
7762
7770
|
preview: a,
|
|
@@ -7768,7 +7776,7 @@ const od = 4, id = ({
|
|
|
7768
7776
|
onSubscribe: d
|
|
7769
7777
|
}) => {
|
|
7770
7778
|
var H, W, X, D, ue;
|
|
7771
|
-
const { locale: c } = re(), { t: u } = ge(), { data: m } = Qt(), h = ((H = t == null ? void 0 : t.prices.month) == null ? void 0 : H.currency) ?? ((W = t == null ? void 0 : t.prices.year) == null ? void 0 : W.currency) ?? "usd", g = t == null ? void 0 : t.features.conversation_sessions, b = t && _e(t) === "community" ? u("conversationsUnit") : u("conversationsPerMonth"), C = t ? Gn(m, t, e) : null, _ = (a == null ? void 0 : a.costs.immediate.amountDue) ?? 0, v = (a == null ? void 0 : a.costs.immediate.accountBalance) ?? 0, N = (a == null ? void 0 : a.costs.nextCycle.total) ?? 0, S = a != null && a.nextBillingDate ?
|
|
7779
|
+
const { locale: c } = re(), { t: u } = ge(), { data: m } = Qt(), h = ((H = t == null ? void 0 : t.prices.month) == null ? void 0 : H.currency) ?? ((W = t == null ? void 0 : t.prices.year) == null ? void 0 : W.currency) ?? "usd", g = t == null ? void 0 : t.features.conversation_sessions, b = t && _e(t) === "community" ? u("conversationsUnit") : u("conversationsPerMonth"), C = t ? Gn(m, t, e) : null, _ = (a == null ? void 0 : a.costs.immediate.amountDue) ?? 0, v = (a == null ? void 0 : a.costs.immediate.accountBalance) ?? 0, N = (a == null ? void 0 : a.costs.nextCycle.total) ?? 0, S = a != null && a.nextBillingDate ? Pl(a.nextBillingDate, 1) : null, T = S && !Xa(S) ? ct(S, c) : null, I = t ? $n[_e(t)].slice(0, id) : [], k = t == null ? void 0 : t.features.ai_spend, A = k !== void 0 ? u("planFeatureAiUsageIncluded", { amount: le(k / tt, h, 0) }) : void 0, w = t ? ((X = t.prices[e]) == null ? void 0 : X.amount) ?? 0 : 0, E = (a == null ? void 0 : a.costs.immediate.lineItems) ?? [], L = E.filter((ee) => ee.type === "discount"), O = E.filter((ee) => ee.type === "proration_credit" || ee.type === "proration_charge").reduce((ee, ce) => ee + ce.amount, 0), Z = !!(a != null && a.subscription.plan.effectiveDate), V = ((D = t == null ? void 0 : t.prices.month) == null ? void 0 : D.amount) ?? 0, $ = ((ue = t == null ? void 0 : t.prices.year) == null ? void 0 : ue.amount) ?? 0, B = e === "year" && V > 0 && $ > 0 ? Math.round(V * 12 - $) : 0, x = Math.round(B / 12);
|
|
7772
7780
|
return /* @__PURE__ */ p("div", { className: "bpb-summary-wrap", children: [
|
|
7773
7781
|
/* @__PURE__ */ p("div", { className: "bpb-summary bpb-glow", children: [
|
|
7774
7782
|
/* @__PURE__ */ l("h3", { className: "bpb-summary__title", children: t ? `${Ne(t.name)} plan` : /* @__PURE__ */ l(me, { width: 140, height: 24 }) }),
|
|
@@ -7890,7 +7898,7 @@ const od = 4, id = ({
|
|
|
7890
7898
|
u("orderCancelNote")
|
|
7891
7899
|
] })
|
|
7892
7900
|
] });
|
|
7893
|
-
},
|
|
7901
|
+
}, dd = [
|
|
7894
7902
|
"AT",
|
|
7895
7903
|
"BE",
|
|
7896
7904
|
"BG",
|
|
@@ -7918,7 +7926,7 @@ const od = 4, id = ({
|
|
|
7918
7926
|
"SI",
|
|
7919
7927
|
"ES",
|
|
7920
7928
|
"SE"
|
|
7921
|
-
],
|
|
7929
|
+
], cd = {
|
|
7922
7930
|
CA: [
|
|
7923
7931
|
{ type: "ca_bn", label: "CA BN", description: "Canadian BN" },
|
|
7924
7932
|
{ type: "ca_gst_hst", label: "CA GST/HST", description: "Canadian GST/HST number" },
|
|
@@ -7928,30 +7936,49 @@ const od = 4, id = ({
|
|
|
7928
7936
|
{ type: "ca_pst_sk", label: "CA PST-SK", description: "Canadian PST number (Saskatchewan)" }
|
|
7929
7937
|
],
|
|
7930
7938
|
US: [{ type: "us_ein", label: "US EIN", description: "United States EIN" }],
|
|
7931
|
-
GB: [
|
|
7932
|
-
|
|
7939
|
+
GB: [
|
|
7940
|
+
{ type: "eu_vat", label: "XI VAT", description: "Northern Ireland VAT number" },
|
|
7941
|
+
{ type: "gb_vat", label: "GB VAT", description: "United Kingdom VAT number" }
|
|
7942
|
+
],
|
|
7943
|
+
AU: [
|
|
7944
|
+
{ type: "au_abn", label: "AU ABN", description: "Australian Business Number" },
|
|
7945
|
+
{ type: "au_arn", label: "AU ARN", description: "Australian Taxation Office Reference Number" }
|
|
7946
|
+
],
|
|
7933
7947
|
NZ: [{ type: "nz_gst", label: "NZ GST", description: "New Zealand GST number" }],
|
|
7934
7948
|
IN: [{ type: "in_gst", label: "IN GST", description: "Indian GST number" }],
|
|
7935
|
-
JP: [
|
|
7949
|
+
JP: [
|
|
7950
|
+
{ type: "jp_cn", label: "JP CN", description: "Japanese Corporate Number" },
|
|
7951
|
+
{ type: "jp_rn", label: "JP RN", description: "Japanese Registered Foreign Businesses' Registration Number" },
|
|
7952
|
+
{ type: "jp_trn", label: "JP TRN", description: "Japanese Tax Registration Number" }
|
|
7953
|
+
],
|
|
7936
7954
|
BR: [
|
|
7937
7955
|
{ type: "br_cnpj", label: "BR CNPJ", description: "Brazilian CNPJ number" },
|
|
7938
7956
|
{ type: "br_cpf", label: "BR CPF", description: "Brazilian CPF number" }
|
|
7939
7957
|
],
|
|
7940
7958
|
MX: [{ type: "mx_rfc", label: "MX RFC", description: "Mexican RFC number" }],
|
|
7941
|
-
CH: [
|
|
7959
|
+
CH: [
|
|
7960
|
+
{ type: "ch_vat", label: "CH VAT", description: "Switzerland VAT number" },
|
|
7961
|
+
{ type: "ch_uid", label: "CH UID", description: "Switzerland UID number" }
|
|
7962
|
+
],
|
|
7942
7963
|
AE: [{ type: "ae_trn", label: "AE TRN", description: "United Arab Emirates TRN" }],
|
|
7943
7964
|
SG: [
|
|
7944
7965
|
{ type: "sg_gst", label: "SG GST", description: "Singaporean GST number" },
|
|
7945
7966
|
{ type: "sg_uen", label: "SG UEN", description: "Singaporean UEN" }
|
|
7946
7967
|
],
|
|
7947
7968
|
ZA: [{ type: "za_vat", label: "ZA VAT", description: "South African VAT number" }],
|
|
7948
|
-
ES: [{ type: "es_cif", label: "ES CIF", description: "Spanish NIF number" }]
|
|
7949
|
-
|
|
7969
|
+
ES: [{ type: "es_cif", label: "ES CIF", description: "Spanish NIF number" }],
|
|
7970
|
+
BG: [{ type: "bg_uic", label: "BG UIC", description: "Bulgaria Unified Identification Code" }],
|
|
7971
|
+
HR: [{ type: "hr_oib", label: "HR OIB", description: "Croatian Personal Identification Number" }],
|
|
7972
|
+
DE: [{ type: "de_stn", label: "DE STN", description: "German Tax Number (Steuernummer)" }],
|
|
7973
|
+
HU: [{ type: "hu_tin", label: "HU TIN", description: "Hungary tax number (adószám)" }],
|
|
7974
|
+
RO: [{ type: "ro_tin", label: "RO TIN", description: "Romanian tax ID number" }],
|
|
7975
|
+
SI: [{ type: "si_tin", label: "SI TIN", description: "Slovenia tax number (davčna številka)" }]
|
|
7976
|
+
}, ud = [{ type: "eu_vat", label: "EU VAT", description: "European VAT number" }];
|
|
7950
7977
|
function Ms(t) {
|
|
7951
7978
|
if (!t)
|
|
7952
7979
|
return [];
|
|
7953
|
-
const e = t.toUpperCase(), a =
|
|
7954
|
-
return
|
|
7980
|
+
const e = t.toUpperCase(), a = cd[e] ?? [];
|
|
7981
|
+
return dd.includes(e) ? [...ud, ...a] : a;
|
|
7955
7982
|
}
|
|
7956
7983
|
const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PURE__ */ p("label", { className: j("bpb-input", a), children: [
|
|
7957
7984
|
/* @__PURE__ */ l("span", { className: "bpb-input__label", children: t }),
|
|
@@ -7985,7 +8012,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
7985
8012
|
),
|
|
7986
8013
|
/* @__PURE__ */ l(ea, { size: 16, className: "bpb-input__chevron" })
|
|
7987
8014
|
] })
|
|
7988
|
-
] }),
|
|
8015
|
+
] }), pd = ({
|
|
7989
8016
|
plan: t,
|
|
7990
8017
|
interval: e,
|
|
7991
8018
|
onChange: a
|
|
@@ -8053,7 +8080,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8053
8080
|
] }),
|
|
8054
8081
|
a && /* @__PURE__ */ l("button", { type: "button", className: "bpb-step__edit", onClick: a, children: n("edit") })
|
|
8055
8082
|
] });
|
|
8056
|
-
},
|
|
8083
|
+
}, md = ({
|
|
8057
8084
|
stepNumber: t,
|
|
8058
8085
|
savedCard: e,
|
|
8059
8086
|
isDark: a,
|
|
@@ -8121,7 +8148,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8121
8148
|
] }),
|
|
8122
8149
|
o && /* @__PURE__ */ l("p", { role: "alert", className: "bpb-step__field-error", children: o })
|
|
8123
8150
|
] });
|
|
8124
|
-
},
|
|
8151
|
+
}, hd = ({
|
|
8125
8152
|
stepNumber: t,
|
|
8126
8153
|
existingAddress: e,
|
|
8127
8154
|
customerName: a,
|
|
@@ -8256,15 +8283,15 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8256
8283
|
] }) : /* @__PURE__ */ l("p", { className: "bpb-business-fields__note", children: T(c ? "checkoutNoTaxRequired" : "checkoutSelectCountryForTax") })
|
|
8257
8284
|
] })
|
|
8258
8285
|
] });
|
|
8259
|
-
},
|
|
8286
|
+
}, gd = ({ planId: t, initialInterval: e, onSuccess: a }) => {
|
|
8260
8287
|
var na;
|
|
8261
|
-
const n = Gr(), r = Kr(), { email: s, toast: o, analytics: i, isDark: d } = re(), { t: c } = ge(), [u, m] = J(e), [h, g] = J("payment"), [b, C] = J(null), [_, v] = J(!1), [N, S] = J(!1), [T, I] = J(!1), [k, A] = J(void 0), [w, E] = J(!1), [L, O] = J(""), [Z, V] = J(""), [$, B] = J(""), [x, H] = J(!1), [W, X] = J({}), [D, ue] = J(!1), ee = ls(), { data: ce } = rt(), { data: M } =
|
|
8288
|
+
const n = Gr(), r = Kr(), { email: s, toast: o, analytics: i, isDark: d } = re(), { t: c } = ge(), [u, m] = J(e), [h, g] = J("payment"), [b, C] = J(null), [_, v] = J(!1), [N, S] = J(!1), [T, I] = J(!1), [k, A] = J(void 0), [w, E] = J(!1), [L, O] = J(""), [Z, V] = J(""), [$, B] = J(""), [x, H] = J(!1), [W, X] = J({}), [D, ue] = J(!1), ee = ls(), { data: ce } = rt(), { data: M } = Ve(), { data: K, isLoading: G } = rs(), { data: P, isLoading: be, isError: te } = ss(), de = ce == null ? void 0 : ce.find((xe) => xe.id === t), pe = ((na = K == null ? void 0 : K.paymentMethod) == null ? void 0 : na.card) ?? null, ae = (P == null ? void 0 : P.address) ?? null;
|
|
8262
8289
|
Oe(() => {
|
|
8263
8290
|
b === null && !G && K !== void 0 && C(pe ? "saved" : "new");
|
|
8264
8291
|
}, [b, G, K, pe]), Oe(() => {
|
|
8265
8292
|
k === void 0 && ae && A(ae.country);
|
|
8266
8293
|
}, [k, ae]);
|
|
8267
|
-
const fe = Re(() => ({ plan: { planId: t, interval: u } }), [t, u]), se = ns(fe), Ee = ds(), st = cs(), pt = us(), Pe = de ? Ne(de.name) : "",
|
|
8294
|
+
const fe = Re(() => ({ plan: { planId: t, interval: u } }), [t, u]), se = ns(fe), Ee = ds(), st = cs(), pt = us(), Pe = de ? Ne(de.name) : "", Ze = b === "new" || !pe, ta = N || !ae, aa = Ze ? _ : !!pe, Et = ta ? T : !0;
|
|
8268
8295
|
Oe(() => {
|
|
8269
8296
|
g(aa ? "address" : "payment");
|
|
8270
8297
|
}, [aa]), Oe(() => {
|
|
@@ -8281,9 +8308,9 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8281
8308
|
if (!n || !r || !de || be || te)
|
|
8282
8309
|
return;
|
|
8283
8310
|
H(!0), X({});
|
|
8284
|
-
const xe = (Me,
|
|
8311
|
+
const xe = (Me, qe) => i.capture(we.CHECKOUT_ERROR, { plan_name: Pe, interval: u, step: h, reason: Me, message: qe });
|
|
8285
8312
|
try {
|
|
8286
|
-
if (i.capture(we.PAYMENT_DETAILS_CONFIRMED, { plan_name: Pe, interval: u }),
|
|
8313
|
+
if (i.capture(we.PAYMENT_DETAILS_CONFIRMED, { plan_name: Pe, interval: u }), Ze && !D) {
|
|
8287
8314
|
const He = r.getElement(Za);
|
|
8288
8315
|
if (!He) {
|
|
8289
8316
|
X({ payment: c("checkoutCardNotReady") }), xe("card_element_not_ready");
|
|
@@ -8309,7 +8336,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8309
8336
|
}
|
|
8310
8337
|
await Ee.mutateAsync({ paymentMethodId: Be.payment_method }), ue(!0);
|
|
8311
8338
|
}
|
|
8312
|
-
let Me,
|
|
8339
|
+
let Me, qe;
|
|
8313
8340
|
if (ta) {
|
|
8314
8341
|
const He = r.getElement("address");
|
|
8315
8342
|
if (He) {
|
|
@@ -8319,7 +8346,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8319
8346
|
return;
|
|
8320
8347
|
}
|
|
8321
8348
|
const { address: Be } = ot;
|
|
8322
|
-
|
|
8349
|
+
qe = ((mt = ot.name) == null ? void 0 : mt.trim()) || void 0, Me = {
|
|
8323
8350
|
lineOne: Be.line1 ?? "",
|
|
8324
8351
|
lineTwo: Be.line2 ?? void 0,
|
|
8325
8352
|
city: Be.city ?? "",
|
|
@@ -8329,7 +8356,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8329
8356
|
};
|
|
8330
8357
|
}
|
|
8331
8358
|
}
|
|
8332
|
-
const sr = w && L.trim() ||
|
|
8359
|
+
const sr = w && L.trim() || qe || (P == null ? void 0 : P.name) || void 0, La = w && Z && $.trim() ? { type: Z, value: $.trim() } : void 0, mo = La ? [
|
|
8333
8360
|
...((P == null ? void 0 : P.taxIds) ?? []).filter(
|
|
8334
8361
|
(He) => He.type !== La.type || He.value !== La.value
|
|
8335
8362
|
),
|
|
@@ -8350,15 +8377,15 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8350
8377
|
previous_interval: M == null ? void 0 : M.plan.current.interval
|
|
8351
8378
|
}), o({ type: "success", message: c("checkoutSuccessToast") }), a();
|
|
8352
8379
|
} catch (Me) {
|
|
8353
|
-
const
|
|
8354
|
-
X(Os(
|
|
8380
|
+
const qe = Me instanceof Error ? Me : void 0;
|
|
8381
|
+
X(Os(qe, c("checkoutGenericError"))), xe((qe == null ? void 0 : qe.type) ?? "exception", Me instanceof Error ? Me.message : void 0), o({ type: "error", message: c("checkoutErrorToast") });
|
|
8355
8382
|
} finally {
|
|
8356
8383
|
H(!1);
|
|
8357
8384
|
}
|
|
8358
8385
|
};
|
|
8359
8386
|
return /* @__PURE__ */ p("div", { className: "bpb-checkout__columns", children: [
|
|
8360
8387
|
/* @__PURE__ */ p("div", { className: "bpb-checkout__main", children: [
|
|
8361
|
-
de && /* @__PURE__ */ l(
|
|
8388
|
+
de && /* @__PURE__ */ l(pd, { plan: de, interval: u, onChange: Lt }),
|
|
8362
8389
|
s && /* @__PURE__ */ p("section", { className: "bpb-checkout__section", children: [
|
|
8363
8390
|
/* @__PURE__ */ l("h3", { className: "bpb-checkout__section-title", children: c("checkoutContactInfo") }),
|
|
8364
8391
|
/* @__PURE__ */ p("div", { className: "bpb-checkout__static-field", children: [
|
|
@@ -8367,7 +8394,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8367
8394
|
] })
|
|
8368
8395
|
] }),
|
|
8369
8396
|
/* @__PURE__ */ l(
|
|
8370
|
-
|
|
8397
|
+
md,
|
|
8371
8398
|
{
|
|
8372
8399
|
stepNumber: 1,
|
|
8373
8400
|
savedCard: pe,
|
|
@@ -8379,7 +8406,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8379
8406
|
}
|
|
8380
8407
|
),
|
|
8381
8408
|
h === "address" && /* @__PURE__ */ l(
|
|
8382
|
-
|
|
8409
|
+
hd,
|
|
8383
8410
|
{
|
|
8384
8411
|
stepNumber: 2,
|
|
8385
8412
|
existingAddress: ae,
|
|
@@ -8405,7 +8432,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8405
8432
|
)
|
|
8406
8433
|
] }),
|
|
8407
8434
|
/* @__PURE__ */ l("div", { className: "bpb-checkout__aside", children: /* @__PURE__ */ l(
|
|
8408
|
-
|
|
8435
|
+
ld,
|
|
8409
8436
|
{
|
|
8410
8437
|
plan: de,
|
|
8411
8438
|
interval: u,
|
|
@@ -8419,7 +8446,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8419
8446
|
}
|
|
8420
8447
|
) })
|
|
8421
8448
|
] });
|
|
8422
|
-
},
|
|
8449
|
+
}, bd = ({ open: t, onOpenChange: e, planId: a, interval: n, onBack: r, onSuccess: s }) => {
|
|
8423
8450
|
const { stripePromise: o, isDark: i, locale: d, isOutdatedBilling: c } = re(), { t: u } = ge(), m = Re(
|
|
8424
8451
|
() => ({
|
|
8425
8452
|
appearance: Rs(i),
|
|
@@ -8433,7 +8460,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8433
8460
|
/* @__PURE__ */ l("h2", { className: "bpb-checkout__title", children: u("checkoutTitle") })
|
|
8434
8461
|
] }),
|
|
8435
8462
|
/* @__PURE__ */ l($r, { stripe: o, options: m, children: /* @__PURE__ */ l(
|
|
8436
|
-
|
|
8463
|
+
gd,
|
|
8437
8464
|
{
|
|
8438
8465
|
planId: a,
|
|
8439
8466
|
initialInterval: n,
|
|
@@ -8443,7 +8470,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8443
8470
|
}
|
|
8444
8471
|
) })
|
|
8445
8472
|
] }) });
|
|
8446
|
-
},
|
|
8473
|
+
}, fd = ({ value: t, onChange: e, min: a = 0, max: n, step: r = 1, className: s, ...o }) => {
|
|
8447
8474
|
const i = () => e(Math.max(a, t - r)), d = () => e(n === void 0 ? t + r : Math.min(n, t + r));
|
|
8448
8475
|
return /* @__PURE__ */ p("div", { className: j("bpb-stepper", s), children: [
|
|
8449
8476
|
/* @__PURE__ */ l(
|
|
@@ -8454,7 +8481,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8454
8481
|
"aria-label": `Decrease ${o["aria-label"]}`,
|
|
8455
8482
|
onClick: i,
|
|
8456
8483
|
disabled: t <= a,
|
|
8457
|
-
children: /* @__PURE__ */ l(
|
|
8484
|
+
children: /* @__PURE__ */ l(ql, { size: 14 })
|
|
8458
8485
|
}
|
|
8459
8486
|
),
|
|
8460
8487
|
/* @__PURE__ */ l("span", { className: "bpb-stepper__value", "aria-label": o["aria-label"], children: t }),
|
|
@@ -8474,7 +8501,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8474
8501
|
const { t: s } = ge();
|
|
8475
8502
|
return /* @__PURE__ */ p(Te, { children: [
|
|
8476
8503
|
/* @__PURE__ */ p("div", { className: "bpb-upgrade-gate", children: [
|
|
8477
|
-
/* @__PURE__ */ l(
|
|
8504
|
+
/* @__PURE__ */ l(Wl, { size: 28, className: "bpb-upgrade-gate__icon" }),
|
|
8478
8505
|
/* @__PURE__ */ p("div", { className: "bpb-upgrade-gate__text", children: [
|
|
8479
8506
|
/* @__PURE__ */ l("p", { className: "bpb-upgrade-gate__title", children: t }),
|
|
8480
8507
|
/* @__PURE__ */ l("p", { className: "bpb-upgrade-gate__body", children: e })
|
|
@@ -8482,7 +8509,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8482
8509
|
] }),
|
|
8483
8510
|
/* @__PURE__ */ l("div", { className: "bpb-upgrade-gate__actions", children: n ? /* @__PURE__ */ l(ke, { variant: "primary", className: "bpb-upgrade-gate__cta", onClick: n, children: a }) : /* @__PURE__ */ l(ke, { variant: "outline", onClick: r, children: s("close") }) })
|
|
8484
8511
|
] });
|
|
8485
|
-
},
|
|
8512
|
+
}, eu = ({ open: t, onOpenChange: e, onSuccess: a, onUpgrade: n }) => {
|
|
8486
8513
|
const { isOutdatedBilling: r } = re(), { t: s } = ge();
|
|
8487
8514
|
return r ? /* @__PURE__ */ l(
|
|
8488
8515
|
Fe,
|
|
@@ -8494,14 +8521,14 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8494
8521
|
className: "bpb-scope",
|
|
8495
8522
|
children: /* @__PURE__ */ l(Rt, {})
|
|
8496
8523
|
}
|
|
8497
|
-
) : /* @__PURE__ */ l(Fe, { open: t, onOpenChange: e, size: "md", "aria-label": s("addonsDialogTitle"), className: "bpb-scope", children: /* @__PURE__ */ l(
|
|
8498
|
-
},
|
|
8524
|
+
) : /* @__PURE__ */ l(Fe, { open: t, onOpenChange: e, size: "md", "aria-label": s("addonsDialogTitle"), className: "bpb-scope", children: /* @__PURE__ */ l(yd, { onOpenChange: e, onSuccess: a, onUpgrade: n }) });
|
|
8525
|
+
}, yd = ({
|
|
8499
8526
|
onOpenChange: t,
|
|
8500
8527
|
onSuccess: e,
|
|
8501
8528
|
onUpgrade: a
|
|
8502
8529
|
}) => {
|
|
8503
8530
|
var D, ue, ee, ce;
|
|
8504
|
-
const { toast: n, locale: r } = re(), { t: s } = ge(), { data: o } =
|
|
8531
|
+
const { toast: n, locale: r } = re(), { t: s } = ge(), { data: o } = Ve(), { data: i } = Qt(), { data: d } = rt(), { data: c } = os(), u = Mi(), [m, h] = J(null), g = d == null ? void 0 : d.find((M) => M.id === (o == null ? void 0 : o.plan.current.planId)), b = (o == null ? void 0 : o.plan.current.interval) ?? "month", C = (c == null ? void 0 : c.addonsReadonly) ?? !1, _ = o == null ? void 0 : o.plan.current.periodEnd, v = _ && !Xa(_) ? ct(_, r) : null, N = Re(() => {
|
|
8505
8532
|
var K;
|
|
8506
8533
|
if (!o || !i)
|
|
8507
8534
|
return null;
|
|
@@ -8522,7 +8549,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8522
8549
|
[g, b, S]
|
|
8523
8550
|
), w = ns(A ?? { plan: { planId: "", interval: b } }, {
|
|
8524
8551
|
enabled: !!A && I
|
|
8525
|
-
}), E = ((D = g == null ? void 0 : g.prices[b]) == null ? void 0 : D.currency) ?? "usd", L = ((ue = w.data) == null ? void 0 : ue.costs.immediate.amountDue) ?? 0, O = (ee = w.data) == null ? void 0 : ee.nextBillingDate, Z = O && !Xa(O) ? ct(O, r) : null, V = ((ce = g == null ? void 0 : g.prices[b]) == null ? void 0 : ce.amount) ?? 0, $ = V + k, B = g && S ?
|
|
8552
|
+
}), E = ((D = g == null ? void 0 : g.prices[b]) == null ? void 0 : D.currency) ?? "usd", L = ((ue = w.data) == null ? void 0 : ue.costs.immediate.amountDue) ?? 0, O = (ee = w.data) == null ? void 0 : ee.nextBillingDate, Z = O && !Xa(O) ? ct(O, r) : null, V = ((ce = g == null ? void 0 : g.prices[b]) == null ? void 0 : ce.amount) ?? 0, $ = V + k, B = g && S ? Ll(g, i, S) : [], x = (M, K) => K === "bytes" ? Kt(M) : ve(M), H = (M, K) => {
|
|
8526
8553
|
const G = i == null ? void 0 : i.find((de) => de.id === M), P = G == null ? void 0 : G.increments;
|
|
8527
8554
|
if (!P || K <= 0)
|
|
8528
8555
|
return null;
|
|
@@ -8586,7 +8613,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8586
8613
|
/* @__PURE__ */ p("div", { className: "bpb-addon-row__control", children: [
|
|
8587
8614
|
te && /* @__PURE__ */ l("span", { className: "bpb-addon-row__grant", children: te }),
|
|
8588
8615
|
/* @__PURE__ */ l(
|
|
8589
|
-
|
|
8616
|
+
fd,
|
|
8590
8617
|
{
|
|
8591
8618
|
"aria-label": `${gt[M.id] ? s(gt[M.id]) : ja(M.name)} quantity`,
|
|
8592
8619
|
value: P,
|
|
@@ -8671,11 +8698,11 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8671
8698
|
] })
|
|
8672
8699
|
] })
|
|
8673
8700
|
] });
|
|
8674
|
-
},
|
|
8701
|
+
}, tu = ({ open: t, onOpenChange: e }) => {
|
|
8675
8702
|
const { isOutdatedBilling: a } = re(), { t: n } = ge();
|
|
8676
|
-
return a ? /* @__PURE__ */ l(Fe, { open: t, onOpenChange: e, size: "md", "aria-label": n("invoicesTitle"), className: "bpb-scope", children: /* @__PURE__ */ l(Rt, {}) }) : /* @__PURE__ */ l(Fe, { open: t, onOpenChange: e, size: "md", "aria-label": n("invoicesTitle"), className: "bpb-scope", children: /* @__PURE__ */ l(
|
|
8677
|
-
},
|
|
8678
|
-
const { locale: e, analytics: a } = re(), { t: n } = ge(), { data: r, isLoading: s, isError: o } =
|
|
8703
|
+
return a ? /* @__PURE__ */ l(Fe, { open: t, onOpenChange: e, size: "md", "aria-label": n("invoicesTitle"), className: "bpb-scope", children: /* @__PURE__ */ l(Rt, {}) }) : /* @__PURE__ */ l(Fe, { open: t, onOpenChange: e, size: "md", "aria-label": n("invoicesTitle"), className: "bpb-scope", children: /* @__PURE__ */ l(vd, { open: t }) });
|
|
8704
|
+
}, vd = ({ open: t }) => {
|
|
8705
|
+
const { locale: e, analytics: a } = re(), { t: n } = ge(), { data: r, isLoading: s, isError: o } = Ei({ enabled: t }), i = (r == null ? void 0 : r.invoices) ?? [], d = {
|
|
8679
8706
|
paid: n("invoiceStatusPaid"),
|
|
8680
8707
|
open: n("invoiceStatusDue"),
|
|
8681
8708
|
draft: n("invoiceStatusDraft"),
|
|
@@ -8710,7 +8737,7 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8710
8737
|
] })
|
|
8711
8738
|
] }, c.id)) })
|
|
8712
8739
|
] });
|
|
8713
|
-
},
|
|
8740
|
+
}, au = ({ open: t, onOpenChange: e, onSuccess: a }) => {
|
|
8714
8741
|
var g;
|
|
8715
8742
|
const { stripePromise: n, isDark: r, locale: s, isOutdatedBilling: o } = re(), { t: i } = ge(), d = ls(), c = (g = d.data) == null ? void 0 : g.clientSecret, { mutate: u, reset: m } = d;
|
|
8716
8743
|
Oe(() => {
|
|
@@ -8750,11 +8777,11 @@ const Bn = ({ label: t, invalid: e, className: a, id: n, ...r }) => t ? /* @__PU
|
|
|
8750
8777
|
] }) : !h || !c ? /* @__PURE__ */ p("div", { className: "bpb-payment-dialog__loading", "aria-busy": "true", children: [
|
|
8751
8778
|
/* @__PURE__ */ l(me, { height: 48 }),
|
|
8752
8779
|
/* @__PURE__ */ l(me, { height: 120 })
|
|
8753
|
-
] }) : /* @__PURE__ */ l($r, { stripe: n, options: h, children: /* @__PURE__ */ l(
|
|
8780
|
+
] }) : /* @__PURE__ */ l($r, { stripe: n, options: h, children: /* @__PURE__ */ l(_d, { clientSecret: c, isDark: r, onSuccess: a }) })
|
|
8754
8781
|
] })
|
|
8755
8782
|
}
|
|
8756
8783
|
);
|
|
8757
|
-
},
|
|
8784
|
+
}, _d = ({
|
|
8758
8785
|
clientSecret: t,
|
|
8759
8786
|
isDark: e,
|
|
8760
8787
|
onSuccess: a
|
|
@@ -9850,8 +9877,8 @@ Xe.ZodIssueCode = Ys.util.arrayToEnum([
|
|
|
9850
9877
|
"not_multiple_of",
|
|
9851
9878
|
"not_finite"
|
|
9852
9879
|
]);
|
|
9853
|
-
const
|
|
9854
|
-
Xe.quotelessJson =
|
|
9880
|
+
const Nd = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
9881
|
+
Xe.quotelessJson = Nd;
|
|
9855
9882
|
class pa extends Error {
|
|
9856
9883
|
get errors() {
|
|
9857
9884
|
return this.issues;
|
|
@@ -9918,7 +9945,7 @@ class pa extends Error {
|
|
|
9918
9945
|
Xe.ZodError = pa;
|
|
9919
9946
|
pa.create = (t) => new pa(t);
|
|
9920
9947
|
Object.defineProperty(gn, "__esModule", { value: !0 });
|
|
9921
|
-
const De = Xe, Tt = xa,
|
|
9948
|
+
const De = Xe, Tt = xa, Cd = (t, e) => {
|
|
9922
9949
|
let a;
|
|
9923
9950
|
switch (t.code) {
|
|
9924
9951
|
case De.ZodIssueCode.invalid_type:
|
|
@@ -9974,21 +10001,21 @@ const De = Xe, Tt = xa, Nd = (t, e) => {
|
|
|
9974
10001
|
}
|
|
9975
10002
|
return { message: a };
|
|
9976
10003
|
};
|
|
9977
|
-
gn.default =
|
|
9978
|
-
var
|
|
10004
|
+
gn.default = Cd;
|
|
10005
|
+
var Sd = he && he.__importDefault || function(t) {
|
|
9979
10006
|
return t && t.__esModule ? t : { default: t };
|
|
9980
10007
|
};
|
|
9981
10008
|
Object.defineProperty(kt, "__esModule", { value: !0 });
|
|
9982
10009
|
kt.defaultErrorMap = void 0;
|
|
9983
|
-
kt.setErrorMap =
|
|
9984
|
-
kt.getErrorMap =
|
|
9985
|
-
const Js =
|
|
10010
|
+
kt.setErrorMap = kd;
|
|
10011
|
+
kt.getErrorMap = wd;
|
|
10012
|
+
const Js = Sd(gn);
|
|
9986
10013
|
kt.defaultErrorMap = Js.default;
|
|
9987
10014
|
let Qs = Js.default;
|
|
9988
|
-
function
|
|
10015
|
+
function kd(t) {
|
|
9989
10016
|
Qs = t;
|
|
9990
10017
|
}
|
|
9991
|
-
function
|
|
10018
|
+
function wd() {
|
|
9992
10019
|
return Qs;
|
|
9993
10020
|
}
|
|
9994
10021
|
var ar = {};
|
|
@@ -10272,7 +10299,7 @@ class oe {
|
|
|
10272
10299
|
return this._refinement((n, r) => e(n) ? !0 : (r.addIssue(typeof a == "function" ? a(n, r) : a), !1));
|
|
10273
10300
|
}
|
|
10274
10301
|
_refinement(e) {
|
|
10275
|
-
return new
|
|
10302
|
+
return new Ke({
|
|
10276
10303
|
schema: this,
|
|
10277
10304
|
typeName: Y.ZodEffects,
|
|
10278
10305
|
effect: { type: "refinement", refinement: e }
|
|
@@ -10298,7 +10325,7 @@ class oe {
|
|
|
10298
10325
|
return this.nullable().optional();
|
|
10299
10326
|
}
|
|
10300
10327
|
array() {
|
|
10301
|
-
return
|
|
10328
|
+
return Ge.create(this);
|
|
10302
10329
|
}
|
|
10303
10330
|
promise() {
|
|
10304
10331
|
return Yt.create(this, this._def);
|
|
@@ -10310,7 +10337,7 @@ class oe {
|
|
|
10310
10337
|
return fa.create(this, e, this._def);
|
|
10311
10338
|
}
|
|
10312
10339
|
transform(e) {
|
|
10313
|
-
return new
|
|
10340
|
+
return new Ke({
|
|
10314
10341
|
...ne(this._def),
|
|
10315
10342
|
schema: this,
|
|
10316
10343
|
typeName: Y.ZodEffects,
|
|
@@ -10365,16 +10392,16 @@ class oe {
|
|
|
10365
10392
|
f.ZodType = oe;
|
|
10366
10393
|
f.Schema = oe;
|
|
10367
10394
|
f.ZodSchema = oe;
|
|
10368
|
-
const
|
|
10395
|
+
const Td = /^c[^\s-]{8,}$/i, Id = /^[0-9a-z]+$/, Ad = /^[0-9A-HJKMNP-TV-Z]{26}$/i, xd = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Pd = /^[a-z0-9_-]{21}$/i, Dd = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Rd = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Ed = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ld = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
10369
10396
|
let An;
|
|
10370
|
-
const
|
|
10397
|
+
const Od = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Fd = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Md = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Bd = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ud = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, zd = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, eo = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", jd = new RegExp(`^${eo}$`);
|
|
10371
10398
|
function to(t) {
|
|
10372
10399
|
let e = "[0-5]\\d";
|
|
10373
10400
|
t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`);
|
|
10374
10401
|
const a = t.precision ? "+" : "?";
|
|
10375
10402
|
return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${a}`;
|
|
10376
10403
|
}
|
|
10377
|
-
function
|
|
10404
|
+
function Vd(t) {
|
|
10378
10405
|
return new RegExp(`^${to(t)}$`);
|
|
10379
10406
|
}
|
|
10380
10407
|
function ao(t) {
|
|
@@ -10382,11 +10409,11 @@ function ao(t) {
|
|
|
10382
10409
|
const a = [];
|
|
10383
10410
|
return a.push(t.local ? "Z?" : "Z"), t.offset && a.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${a.join("|")})`, new RegExp(`^${e}$`);
|
|
10384
10411
|
}
|
|
10385
|
-
function Vd(t, e) {
|
|
10386
|
-
return !!((e === "v4" || !e) && Ld.test(t) || (e === "v6" || !e) && Fd.test(t));
|
|
10387
|
-
}
|
|
10388
10412
|
function Zd(t, e) {
|
|
10389
|
-
|
|
10413
|
+
return !!((e === "v4" || !e) && Od.test(t) || (e === "v6" || !e) && Md.test(t));
|
|
10414
|
+
}
|
|
10415
|
+
function qd(t, e) {
|
|
10416
|
+
if (!Dd.test(t))
|
|
10390
10417
|
return !1;
|
|
10391
10418
|
try {
|
|
10392
10419
|
const [a] = t.split(".");
|
|
@@ -10398,10 +10425,10 @@ function Zd(t, e) {
|
|
|
10398
10425
|
return !1;
|
|
10399
10426
|
}
|
|
10400
10427
|
}
|
|
10401
|
-
function
|
|
10402
|
-
return !!((e === "v4" || !e) &&
|
|
10428
|
+
function Wd(t, e) {
|
|
10429
|
+
return !!((e === "v4" || !e) && Fd.test(t) || (e === "v6" || !e) && Bd.test(t));
|
|
10403
10430
|
}
|
|
10404
|
-
class
|
|
10431
|
+
class We extends oe {
|
|
10405
10432
|
_parse(e) {
|
|
10406
10433
|
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== F.ZodParsedType.string) {
|
|
10407
10434
|
const s = this._getOrReturnCtx(e);
|
|
@@ -10450,43 +10477,43 @@ class qe extends oe {
|
|
|
10450
10477
|
message: s.message
|
|
10451
10478
|
}), n.dirty());
|
|
10452
10479
|
} else if (s.kind === "email")
|
|
10453
|
-
|
|
10480
|
+
Ed.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10454
10481
|
validation: "email",
|
|
10455
10482
|
code: R.ZodIssueCode.invalid_string,
|
|
10456
10483
|
message: s.message
|
|
10457
10484
|
}), n.dirty());
|
|
10458
10485
|
else if (s.kind === "emoji")
|
|
10459
|
-
An || (An = new RegExp(
|
|
10486
|
+
An || (An = new RegExp(Ld, "u")), An.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10460
10487
|
validation: "emoji",
|
|
10461
10488
|
code: R.ZodIssueCode.invalid_string,
|
|
10462
10489
|
message: s.message
|
|
10463
10490
|
}), n.dirty());
|
|
10464
10491
|
else if (s.kind === "uuid")
|
|
10465
|
-
|
|
10492
|
+
xd.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10466
10493
|
validation: "uuid",
|
|
10467
10494
|
code: R.ZodIssueCode.invalid_string,
|
|
10468
10495
|
message: s.message
|
|
10469
10496
|
}), n.dirty());
|
|
10470
10497
|
else if (s.kind === "nanoid")
|
|
10471
|
-
|
|
10498
|
+
Pd.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10472
10499
|
validation: "nanoid",
|
|
10473
10500
|
code: R.ZodIssueCode.invalid_string,
|
|
10474
10501
|
message: s.message
|
|
10475
10502
|
}), n.dirty());
|
|
10476
10503
|
else if (s.kind === "cuid")
|
|
10477
|
-
|
|
10504
|
+
Td.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10478
10505
|
validation: "cuid",
|
|
10479
10506
|
code: R.ZodIssueCode.invalid_string,
|
|
10480
10507
|
message: s.message
|
|
10481
10508
|
}), n.dirty());
|
|
10482
10509
|
else if (s.kind === "cuid2")
|
|
10483
|
-
|
|
10510
|
+
Id.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10484
10511
|
validation: "cuid2",
|
|
10485
10512
|
code: R.ZodIssueCode.invalid_string,
|
|
10486
10513
|
message: s.message
|
|
10487
10514
|
}), n.dirty());
|
|
10488
10515
|
else if (s.kind === "ulid")
|
|
10489
|
-
|
|
10516
|
+
Ad.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10490
10517
|
validation: "ulid",
|
|
10491
10518
|
code: R.ZodIssueCode.invalid_string,
|
|
10492
10519
|
message: s.message
|
|
@@ -10521,35 +10548,35 @@ class qe extends oe {
|
|
|
10521
10548
|
code: R.ZodIssueCode.invalid_string,
|
|
10522
10549
|
validation: "datetime",
|
|
10523
10550
|
message: s.message
|
|
10524
|
-
}), n.dirty()) : s.kind === "date" ?
|
|
10551
|
+
}), n.dirty()) : s.kind === "date" ? jd.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10525
10552
|
code: R.ZodIssueCode.invalid_string,
|
|
10526
10553
|
validation: "date",
|
|
10527
10554
|
message: s.message
|
|
10528
|
-
}), n.dirty()) : s.kind === "time" ?
|
|
10555
|
+
}), n.dirty()) : s.kind === "time" ? Vd(s).test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10529
10556
|
code: R.ZodIssueCode.invalid_string,
|
|
10530
10557
|
validation: "time",
|
|
10531
10558
|
message: s.message
|
|
10532
|
-
}), n.dirty()) : s.kind === "duration" ?
|
|
10559
|
+
}), n.dirty()) : s.kind === "duration" ? Rd.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10533
10560
|
validation: "duration",
|
|
10534
10561
|
code: R.ZodIssueCode.invalid_string,
|
|
10535
10562
|
message: s.message
|
|
10536
|
-
}), n.dirty()) : s.kind === "ip" ?
|
|
10563
|
+
}), n.dirty()) : s.kind === "ip" ? Zd(e.data, s.version) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10537
10564
|
validation: "ip",
|
|
10538
10565
|
code: R.ZodIssueCode.invalid_string,
|
|
10539
10566
|
message: s.message
|
|
10540
|
-
}), n.dirty()) : s.kind === "jwt" ?
|
|
10567
|
+
}), n.dirty()) : s.kind === "jwt" ? qd(e.data, s.alg) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10541
10568
|
validation: "jwt",
|
|
10542
10569
|
code: R.ZodIssueCode.invalid_string,
|
|
10543
10570
|
message: s.message
|
|
10544
|
-
}), n.dirty()) : s.kind === "cidr" ?
|
|
10571
|
+
}), n.dirty()) : s.kind === "cidr" ? Wd(e.data, s.version) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10545
10572
|
validation: "cidr",
|
|
10546
10573
|
code: R.ZodIssueCode.invalid_string,
|
|
10547
10574
|
message: s.message
|
|
10548
|
-
}), n.dirty()) : s.kind === "base64" ?
|
|
10575
|
+
}), n.dirty()) : s.kind === "base64" ? Ud.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10549
10576
|
validation: "base64",
|
|
10550
10577
|
code: R.ZodIssueCode.invalid_string,
|
|
10551
10578
|
message: s.message
|
|
10552
|
-
}), n.dirty()) : s.kind === "base64url" ?
|
|
10579
|
+
}), n.dirty()) : s.kind === "base64url" ? zd.test(e.data) || (r = this._getOrReturnCtx(e, r), (0, y.addIssueToContext)(r, {
|
|
10553
10580
|
validation: "base64url",
|
|
10554
10581
|
code: R.ZodIssueCode.invalid_string,
|
|
10555
10582
|
message: s.message
|
|
@@ -10564,7 +10591,7 @@ class qe extends oe {
|
|
|
10564
10591
|
});
|
|
10565
10592
|
}
|
|
10566
10593
|
_addCheck(e) {
|
|
10567
|
-
return new
|
|
10594
|
+
return new We({
|
|
10568
10595
|
...this._def,
|
|
10569
10596
|
checks: [...this._def.checks, e]
|
|
10570
10597
|
});
|
|
@@ -10700,19 +10727,19 @@ class qe extends oe {
|
|
|
10700
10727
|
return this.min(1, q.errorUtil.errToObj(e));
|
|
10701
10728
|
}
|
|
10702
10729
|
trim() {
|
|
10703
|
-
return new
|
|
10730
|
+
return new We({
|
|
10704
10731
|
...this._def,
|
|
10705
10732
|
checks: [...this._def.checks, { kind: "trim" }]
|
|
10706
10733
|
});
|
|
10707
10734
|
}
|
|
10708
10735
|
toLowerCase() {
|
|
10709
|
-
return new
|
|
10736
|
+
return new We({
|
|
10710
10737
|
...this._def,
|
|
10711
10738
|
checks: [...this._def.checks, { kind: "toLowerCase" }]
|
|
10712
10739
|
});
|
|
10713
10740
|
}
|
|
10714
10741
|
toUpperCase() {
|
|
10715
|
-
return new
|
|
10742
|
+
return new We({
|
|
10716
10743
|
...this._def,
|
|
10717
10744
|
checks: [...this._def.checks, { kind: "toUpperCase" }]
|
|
10718
10745
|
});
|
|
@@ -10778,14 +10805,14 @@ class qe extends oe {
|
|
|
10778
10805
|
return e;
|
|
10779
10806
|
}
|
|
10780
10807
|
}
|
|
10781
|
-
f.ZodString =
|
|
10782
|
-
|
|
10808
|
+
f.ZodString = We;
|
|
10809
|
+
We.create = (t) => new We({
|
|
10783
10810
|
checks: [],
|
|
10784
10811
|
typeName: Y.ZodString,
|
|
10785
10812
|
coerce: (t == null ? void 0 : t.coerce) ?? !1,
|
|
10786
10813
|
...ne(t)
|
|
10787
10814
|
});
|
|
10788
|
-
function
|
|
10815
|
+
function Gd(t, e) {
|
|
10789
10816
|
const a = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, r = a > n ? a : n, s = Number.parseInt(t.toFixed(r).replace(".", "")), o = Number.parseInt(e.toFixed(r).replace(".", ""));
|
|
10790
10817
|
return s % o / 10 ** r;
|
|
10791
10818
|
}
|
|
@@ -10824,7 +10851,7 @@ class vt extends oe {
|
|
|
10824
10851
|
inclusive: s.inclusive,
|
|
10825
10852
|
exact: !1,
|
|
10826
10853
|
message: s.message
|
|
10827
|
-
}), r.dirty()) : s.kind === "multipleOf" ?
|
|
10854
|
+
}), r.dirty()) : s.kind === "multipleOf" ? Gd(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n), (0, y.addIssueToContext)(n, {
|
|
10828
10855
|
code: R.ZodIssueCode.not_multiple_of,
|
|
10829
10856
|
multipleOf: s.value,
|
|
10830
10857
|
message: s.message
|
|
@@ -11307,7 +11334,7 @@ tn.create = (t) => new tn({
|
|
|
11307
11334
|
typeName: Y.ZodVoid,
|
|
11308
11335
|
...ne(t)
|
|
11309
11336
|
});
|
|
11310
|
-
class
|
|
11337
|
+
class Ge extends oe {
|
|
11311
11338
|
_parse(e) {
|
|
11312
11339
|
const { ctx: a, status: n } = this._processInputParams(e), r = this._def;
|
|
11313
11340
|
if (a.parsedType !== F.ZodParsedType.array)
|
|
@@ -11351,19 +11378,19 @@ class We extends oe {
|
|
|
11351
11378
|
return this._def.type;
|
|
11352
11379
|
}
|
|
11353
11380
|
min(e, a) {
|
|
11354
|
-
return new
|
|
11381
|
+
return new Ge({
|
|
11355
11382
|
...this._def,
|
|
11356
11383
|
minLength: { value: e, message: q.errorUtil.toString(a) }
|
|
11357
11384
|
});
|
|
11358
11385
|
}
|
|
11359
11386
|
max(e, a) {
|
|
11360
|
-
return new
|
|
11387
|
+
return new Ge({
|
|
11361
11388
|
...this._def,
|
|
11362
11389
|
maxLength: { value: e, message: q.errorUtil.toString(a) }
|
|
11363
11390
|
});
|
|
11364
11391
|
}
|
|
11365
11392
|
length(e, a) {
|
|
11366
|
-
return new
|
|
11393
|
+
return new Ge({
|
|
11367
11394
|
...this._def,
|
|
11368
11395
|
exactLength: { value: e, message: q.errorUtil.toString(a) }
|
|
11369
11396
|
});
|
|
@@ -11372,8 +11399,8 @@ class We extends oe {
|
|
|
11372
11399
|
return this.min(1, e);
|
|
11373
11400
|
}
|
|
11374
11401
|
}
|
|
11375
|
-
f.ZodArray =
|
|
11376
|
-
|
|
11402
|
+
f.ZodArray = Ge;
|
|
11403
|
+
Ge.create = (t, e) => new Ge({
|
|
11377
11404
|
type: t,
|
|
11378
11405
|
minLength: null,
|
|
11379
11406
|
maxLength: null,
|
|
@@ -11392,7 +11419,7 @@ function jt(t) {
|
|
|
11392
11419
|
...t._def,
|
|
11393
11420
|
shape: () => e
|
|
11394
11421
|
});
|
|
11395
|
-
} else return t instanceof
|
|
11422
|
+
} else return t instanceof Ge ? new Ge({
|
|
11396
11423
|
...t._def,
|
|
11397
11424
|
type: jt(t.element)
|
|
11398
11425
|
}) : t instanceof et ? et.create(jt(t.unwrap())) : t instanceof Ct ? Ct.create(jt(t.unwrap())) : t instanceof nt ? nt.create(t.items.map((e) => jt(e))) : t;
|
|
@@ -11760,7 +11787,7 @@ ba.create = (t, e) => new ba({
|
|
|
11760
11787
|
typeName: Y.ZodUnion,
|
|
11761
11788
|
...ne(e)
|
|
11762
11789
|
});
|
|
11763
|
-
const lt = (t) => t instanceof va ? lt(t.schema) : t instanceof
|
|
11790
|
+
const lt = (t) => t instanceof va ? lt(t.schema) : t instanceof Ke ? lt(t.innerType()) : t instanceof _a ? [t.value] : t instanceof Nt ? t.options : t instanceof Na ? F.util.objectValues(t.enum) : t instanceof Ca ? lt(t._def.innerType) : t instanceof ha ? [void 0] : t instanceof ga ? [null] : t instanceof et ? [void 0, ...lt(t.unwrap())] : t instanceof Ct ? [null, ...lt(t.unwrap())] : t instanceof nr || t instanceof ka ? lt(t.unwrap()) : t instanceof Sa ? lt(t._def.innerType) : [];
|
|
11764
11791
|
class fn extends oe {
|
|
11765
11792
|
_parse(e) {
|
|
11766
11793
|
const { ctx: a } = this._processInputParams(e);
|
|
@@ -11974,7 +12001,7 @@ class ya extends oe {
|
|
|
11974
12001
|
typeName: Y.ZodRecord,
|
|
11975
12002
|
...ne(n)
|
|
11976
12003
|
}) : new ya({
|
|
11977
|
-
keyType:
|
|
12004
|
+
keyType: We.create(),
|
|
11978
12005
|
valueType: e,
|
|
11979
12006
|
typeName: Y.ZodRecord,
|
|
11980
12007
|
...ne(a)
|
|
@@ -12344,7 +12371,7 @@ Yt.create = (t, e) => new Yt({
|
|
|
12344
12371
|
typeName: Y.ZodPromise,
|
|
12345
12372
|
...ne(e)
|
|
12346
12373
|
});
|
|
12347
|
-
class
|
|
12374
|
+
class Ke extends oe {
|
|
12348
12375
|
innerType() {
|
|
12349
12376
|
return this._def.schema;
|
|
12350
12377
|
}
|
|
@@ -12424,15 +12451,15 @@ class Ge extends oe {
|
|
|
12424
12451
|
F.util.assertNever(r);
|
|
12425
12452
|
}
|
|
12426
12453
|
}
|
|
12427
|
-
f.ZodEffects =
|
|
12428
|
-
f.ZodTransformer =
|
|
12429
|
-
|
|
12454
|
+
f.ZodEffects = Ke;
|
|
12455
|
+
f.ZodTransformer = Ke;
|
|
12456
|
+
Ke.create = (t, e, a) => new Ke({
|
|
12430
12457
|
schema: t,
|
|
12431
12458
|
typeName: Y.ZodEffects,
|
|
12432
12459
|
effect: e,
|
|
12433
12460
|
...ne(a)
|
|
12434
12461
|
});
|
|
12435
|
-
|
|
12462
|
+
Ke.createWithPreprocess = (t, e, a) => new Ke({
|
|
12436
12463
|
schema: e,
|
|
12437
12464
|
effect: { type: "preprocess", transform: t },
|
|
12438
12465
|
typeName: Y.ZodEffects,
|
|
@@ -12647,87 +12674,87 @@ var Y;
|
|
|
12647
12674
|
(function(t) {
|
|
12648
12675
|
t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
|
|
12649
12676
|
})(Y || (f.ZodFirstPartyTypeKind = Y = {}));
|
|
12650
|
-
const
|
|
12677
|
+
const Kd = (t, e = {
|
|
12651
12678
|
message: `Input not instance of ${t.name}`
|
|
12652
12679
|
}) => ro((a) => a instanceof t, e);
|
|
12653
|
-
f.instanceof =
|
|
12654
|
-
const so =
|
|
12680
|
+
f.instanceof = Kd;
|
|
12681
|
+
const so = We.create;
|
|
12655
12682
|
f.string = so;
|
|
12656
12683
|
const oo = vt.create;
|
|
12657
12684
|
f.number = oo;
|
|
12658
|
-
const
|
|
12659
|
-
f.nan =
|
|
12660
|
-
const
|
|
12661
|
-
f.bigint =
|
|
12685
|
+
const $d = nn.create;
|
|
12686
|
+
f.nan = $d;
|
|
12687
|
+
const Hd = _t.create;
|
|
12688
|
+
f.bigint = Hd;
|
|
12662
12689
|
const io = ma.create;
|
|
12663
12690
|
f.boolean = io;
|
|
12664
|
-
const
|
|
12665
|
-
f.date =
|
|
12666
|
-
const
|
|
12667
|
-
f.symbol =
|
|
12668
|
-
const
|
|
12669
|
-
f.undefined =
|
|
12670
|
-
const
|
|
12671
|
-
f.null =
|
|
12672
|
-
const
|
|
12673
|
-
f.any =
|
|
12674
|
-
const
|
|
12675
|
-
f.unknown =
|
|
12676
|
-
const
|
|
12677
|
-
f.never =
|
|
12678
|
-
const
|
|
12679
|
-
f.void =
|
|
12680
|
-
const
|
|
12681
|
-
f.array =
|
|
12682
|
-
const
|
|
12683
|
-
f.object =
|
|
12684
|
-
const
|
|
12685
|
-
f.strictObject =
|
|
12686
|
-
const
|
|
12687
|
-
f.union =
|
|
12688
|
-
const
|
|
12689
|
-
f.discriminatedUnion =
|
|
12690
|
-
const
|
|
12691
|
-
f.intersection =
|
|
12692
|
-
const
|
|
12693
|
-
f.tuple =
|
|
12694
|
-
const
|
|
12695
|
-
f.record =
|
|
12696
|
-
const
|
|
12697
|
-
f.map =
|
|
12698
|
-
const
|
|
12699
|
-
f.set =
|
|
12700
|
-
const
|
|
12701
|
-
f.function =
|
|
12702
|
-
const
|
|
12703
|
-
f.lazy =
|
|
12704
|
-
const
|
|
12705
|
-
f.literal =
|
|
12706
|
-
const
|
|
12707
|
-
f.enum =
|
|
12708
|
-
const
|
|
12709
|
-
f.nativeEnum =
|
|
12710
|
-
const
|
|
12711
|
-
f.promise =
|
|
12712
|
-
const lo =
|
|
12691
|
+
const Yd = xt.create;
|
|
12692
|
+
f.date = Yd;
|
|
12693
|
+
const Jd = en.create;
|
|
12694
|
+
f.symbol = Jd;
|
|
12695
|
+
const Qd = ha.create;
|
|
12696
|
+
f.undefined = Qd;
|
|
12697
|
+
const Xd = ga.create;
|
|
12698
|
+
f.null = Xd;
|
|
12699
|
+
const ec = Ht.create;
|
|
12700
|
+
f.any = ec;
|
|
12701
|
+
const tc = At.create;
|
|
12702
|
+
f.unknown = tc;
|
|
12703
|
+
const ac = ut.create;
|
|
12704
|
+
f.never = ac;
|
|
12705
|
+
const nc = tn.create;
|
|
12706
|
+
f.void = nc;
|
|
12707
|
+
const rc = Ge.create;
|
|
12708
|
+
f.array = rc;
|
|
12709
|
+
const sc = Se.create;
|
|
12710
|
+
f.object = sc;
|
|
12711
|
+
const oc = Se.strictCreate;
|
|
12712
|
+
f.strictObject = oc;
|
|
12713
|
+
const ic = ba.create;
|
|
12714
|
+
f.union = ic;
|
|
12715
|
+
const lc = fn.create;
|
|
12716
|
+
f.discriminatedUnion = lc;
|
|
12717
|
+
const dc = fa.create;
|
|
12718
|
+
f.intersection = dc;
|
|
12719
|
+
const cc = nt.create;
|
|
12720
|
+
f.tuple = cc;
|
|
12721
|
+
const uc = ya.create;
|
|
12722
|
+
f.record = uc;
|
|
12723
|
+
const pc = an.create;
|
|
12724
|
+
f.map = pc;
|
|
12725
|
+
const mc = Pt.create;
|
|
12726
|
+
f.set = mc;
|
|
12727
|
+
const hc = Gt.create;
|
|
12728
|
+
f.function = hc;
|
|
12729
|
+
const gc = va.create;
|
|
12730
|
+
f.lazy = gc;
|
|
12731
|
+
const bc = _a.create;
|
|
12732
|
+
f.literal = bc;
|
|
12733
|
+
const fc = Nt.create;
|
|
12734
|
+
f.enum = fc;
|
|
12735
|
+
const yc = Na.create;
|
|
12736
|
+
f.nativeEnum = yc;
|
|
12737
|
+
const vc = Yt.create;
|
|
12738
|
+
f.promise = vc;
|
|
12739
|
+
const lo = Ke.create;
|
|
12713
12740
|
f.effect = lo;
|
|
12714
12741
|
f.transformer = lo;
|
|
12715
|
-
const
|
|
12716
|
-
f.optional =
|
|
12717
|
-
const
|
|
12718
|
-
f.nullable =
|
|
12719
|
-
const
|
|
12720
|
-
f.preprocess =
|
|
12721
|
-
const
|
|
12722
|
-
f.pipeline =
|
|
12723
|
-
const
|
|
12724
|
-
f.ostring =
|
|
12725
|
-
const
|
|
12726
|
-
f.onumber =
|
|
12727
|
-
const
|
|
12728
|
-
f.oboolean =
|
|
12742
|
+
const _c = et.create;
|
|
12743
|
+
f.optional = _c;
|
|
12744
|
+
const Nc = Ct.create;
|
|
12745
|
+
f.nullable = Nc;
|
|
12746
|
+
const Cc = Ke.createWithPreprocess;
|
|
12747
|
+
f.preprocess = Cc;
|
|
12748
|
+
const Sc = Pa.create;
|
|
12749
|
+
f.pipeline = Sc;
|
|
12750
|
+
const kc = () => so().optional();
|
|
12751
|
+
f.ostring = kc;
|
|
12752
|
+
const wc = () => oo().optional();
|
|
12753
|
+
f.onumber = wc;
|
|
12754
|
+
const Tc = () => io().optional();
|
|
12755
|
+
f.oboolean = Tc;
|
|
12729
12756
|
f.coerce = {
|
|
12730
|
-
string: (t) =>
|
|
12757
|
+
string: (t) => We.create({ ...t, coerce: !0 }),
|
|
12731
12758
|
number: (t) => vt.create({ ...t, coerce: !0 }),
|
|
12732
12759
|
boolean: (t) => ma.create({
|
|
12733
12760
|
...t,
|
|
@@ -13148,7 +13175,7 @@ var co = {};
|
|
|
13148
13175
|
};
|
|
13149
13176
|
Object.defineProperty(t, "__esModule", { value: !0 }), a(cn, t), a(un, t), a($t, t), a(Gs, t), a(pn, t), a(ze, t), a(mn, t), a(Ks, t);
|
|
13150
13177
|
})(Ws);
|
|
13151
|
-
const
|
|
13178
|
+
const Ic = [
|
|
13152
13179
|
{ key: "conversation_sessions", label: "Conversations", unit: "count" },
|
|
13153
13180
|
{ key: "ai_spend", label: "AI spend", unit: "nano-usd" },
|
|
13154
13181
|
{ key: "table_rows", label: "Table rows", unit: "count" },
|
|
@@ -13177,12 +13204,12 @@ function uo(t, e) {
|
|
|
13177
13204
|
function rr(t) {
|
|
13178
13205
|
return t >= 90 ? "critical" : t >= 75 ? "warning" : "normal";
|
|
13179
13206
|
}
|
|
13180
|
-
const
|
|
13181
|
-
function
|
|
13182
|
-
return !
|
|
13207
|
+
const Ac = Ws.NON_RESETTING_BILLING_FEATURE_IDS;
|
|
13208
|
+
function xc(t) {
|
|
13209
|
+
return !Ac.includes(t);
|
|
13183
13210
|
}
|
|
13184
13211
|
function yn(t) {
|
|
13185
|
-
return t ?
|
|
13212
|
+
return t ? Ic.flatMap(({ key: e, label: a, unit: n }) => {
|
|
13186
13213
|
const r = t[e];
|
|
13187
13214
|
if (!r || r.quota <= 0)
|
|
13188
13215
|
return [];
|
|
@@ -13196,16 +13223,16 @@ function yn(t) {
|
|
|
13196
13223
|
quota: r.quota,
|
|
13197
13224
|
remaining: Math.max(0, r.quota - s),
|
|
13198
13225
|
pct: o,
|
|
13199
|
-
resets:
|
|
13226
|
+
resets: xc(e)
|
|
13200
13227
|
}
|
|
13201
13228
|
];
|
|
13202
13229
|
}).sort((e, a) => a.pct - e.pct) : [];
|
|
13203
13230
|
}
|
|
13204
|
-
const zr = "outgrow-free",
|
|
13205
|
-
function
|
|
13231
|
+
const zr = "outgrow-free", Pc = 0.75, Dc = 5;
|
|
13232
|
+
function Rc(t, e) {
|
|
13206
13233
|
return t.prices[e] ?? (e === "month" ? t.prices.year : t.prices.month) ?? null;
|
|
13207
13234
|
}
|
|
13208
|
-
function
|
|
13235
|
+
function Ec(t, e) {
|
|
13209
13236
|
var r, s;
|
|
13210
13237
|
const a = (r = t.prices.month) == null ? void 0 : r.amount;
|
|
13211
13238
|
if (e === "month")
|
|
@@ -13213,7 +13240,7 @@ function Rc(t, e) {
|
|
|
13213
13240
|
const n = ((s = t.prices.year) == null ? void 0 : s.amount) ?? (a === void 0 ? void 0 : a * 12);
|
|
13214
13241
|
return n === void 0 ? null : n / 12;
|
|
13215
13242
|
}
|
|
13216
|
-
const
|
|
13243
|
+
const nu = ({
|
|
13217
13244
|
open: t,
|
|
13218
13245
|
onOpenChange: e,
|
|
13219
13246
|
onSelectPlan: a,
|
|
@@ -13224,7 +13251,7 @@ const tu = ({
|
|
|
13224
13251
|
period: i
|
|
13225
13252
|
}) => {
|
|
13226
13253
|
var $, B;
|
|
13227
|
-
const { isOutdatedBilling: d, analytics: c, scope: u } = re(), { t: m } = ge(), { data: h } = rt(), { data: g } = Qt(), { data: b } =
|
|
13254
|
+
const { isOutdatedBilling: d, analytics: c, scope: u } = re(), { t: m } = ge(), { data: h } = rt(), { data: g } = Qt(), { data: b } = Ve({ enabled: !d }), { data: C } = Xt({ period: i, enabled: !d }), _ = t !== void 0, [v, N] = J(!1), S = h == null ? void 0 : h.find((x) => x.id === (b == null ? void 0 : b.plan.current.planId)), T = b ? S ? _e(S) === "community" : !0 : !1, I = Re(() => yn(C).find((x) => x.key === "conversation_sessions"), [C]), k = !_ && !d && T && !!I && I.pct / 100 >= Pc && !v && !Zs(zr, u, "modal"), A = _ ? !!t : k;
|
|
13228
13255
|
Oe(() => {
|
|
13229
13256
|
A && c.capture(we.PLAN_PICKER_VIEWED, {
|
|
13230
13257
|
source: _ ? "outgrow_free" : "outgrow_free_auto",
|
|
@@ -13275,7 +13302,7 @@ const tu = ({
|
|
|
13275
13302
|
) })
|
|
13276
13303
|
] }),
|
|
13277
13304
|
/* @__PURE__ */ l("div", { className: "bpb-outgrow__grid", children: E.map((x, H) => {
|
|
13278
|
-
const W = _e(x), X =
|
|
13305
|
+
const W = _e(x), X = Rc(x, r), D = Ec(x, r), ue = W === n || x.id === n, ee = x.features.conversation_sessions, ce = Gn(g, x, r), M = H > 0 ? E[H - 1] : void 0, K = (s[W] ?? $n[W]).slice(0, Dc);
|
|
13279
13306
|
return /* @__PURE__ */ p(
|
|
13280
13307
|
"div",
|
|
13281
13308
|
{
|
|
@@ -13366,7 +13393,7 @@ const tu = ({
|
|
|
13366
13393
|
)
|
|
13367
13394
|
] })
|
|
13368
13395
|
] }) });
|
|
13369
|
-
}, dt = (t, e) => e === "bytes" ? Kt(t) : e === "nano-usd" ? `$${(t / tt).toFixed(2)}` : ve(t),
|
|
13396
|
+
}, dt = (t, e) => e === "bytes" ? Kt(t) : e === "nano-usd" ? `$${(t / tt).toFixed(2)}` : ve(t), Lc = (t, e) => {
|
|
13370
13397
|
const a = /* @__PURE__ */ new Date();
|
|
13371
13398
|
return Array.from({ length: t }, (n, r) => {
|
|
13372
13399
|
const s = new Date(Date.UTC(a.getUTCFullYear(), a.getUTCMonth() - r, 1));
|
|
@@ -13375,8 +13402,8 @@ const tu = ({
|
|
|
13375
13402
|
label: s.toLocaleDateString(e, { month: "long", year: "numeric", timeZone: "UTC" })
|
|
13376
13403
|
};
|
|
13377
13404
|
});
|
|
13378
|
-
},
|
|
13379
|
-
const { data: e, isLoading: a, isError: n } =
|
|
13405
|
+
}, Oc = ({ period: t }) => {
|
|
13406
|
+
const { data: e, isLoading: a, isError: n } = Oi("ai_spend", { period: t }), { t: r } = ge();
|
|
13380
13407
|
if (n)
|
|
13381
13408
|
return null;
|
|
13382
13409
|
if (a)
|
|
@@ -13447,7 +13474,7 @@ const tu = ({
|
|
|
13447
13474
|
}
|
|
13448
13475
|
)
|
|
13449
13476
|
] });
|
|
13450
|
-
},
|
|
13477
|
+
}, ru = ({
|
|
13451
13478
|
period: t,
|
|
13452
13479
|
showPeriodSelector: e = !0,
|
|
13453
13480
|
periodMonths: a = 12,
|
|
@@ -13455,13 +13482,13 @@ const tu = ({
|
|
|
13455
13482
|
onIncreaseLimits: r
|
|
13456
13483
|
}) => {
|
|
13457
13484
|
var Z;
|
|
13458
|
-
const { isOutdatedBilling: s, locale: o } = re(), { t: i } = ge(), d = Re(() =>
|
|
13485
|
+
const { isOutdatedBilling: s, locale: o } = re(), { t: i } = ge(), d = Re(() => Lc(a, o), [a, o]), [c, u] = J(t ?? ((Z = d[0]) == null ? void 0 : Z.value) ?? ""), m = Fi(), h = Math.max(
|
|
13459
13486
|
0,
|
|
13460
13487
|
d.findIndex((V) => V.value === c)
|
|
13461
13488
|
), g = (V) => {
|
|
13462
13489
|
const $ = d[h + V];
|
|
13463
13490
|
$ && u($.value);
|
|
13464
|
-
}, { data: b, isLoading: C, isError: _ } = Xt({ period: c, enabled: !s }), { data: v } =
|
|
13491
|
+
}, { data: b, isLoading: C, isError: _ } = Xt({ period: c, enabled: !s }), { data: v } = Ve({ enabled: !s }), { data: N } = rt(), S = N == null ? void 0 : N.find((V) => V.id === (v == null ? void 0 : v.plan.current.planId)), T = S ? Ne(S.name) : void 0, I = S ? _e(S) : "community", k = I === "enterprise" || I === "managed", A = (V) => S == null ? void 0 : S.features[V];
|
|
13465
13492
|
if (s)
|
|
13466
13493
|
return /* @__PURE__ */ l("div", { className: j("bpb-usage bpb-scope", n), children: /* @__PURE__ */ l(Rt, {}) });
|
|
13467
13494
|
if (C)
|
|
@@ -13494,7 +13521,7 @@ const tu = ({
|
|
|
13494
13521
|
}
|
|
13495
13522
|
),
|
|
13496
13523
|
/* @__PURE__ */ p("span", { className: "bpb-usage__period-field", children: [
|
|
13497
|
-
/* @__PURE__ */ l(
|
|
13524
|
+
/* @__PURE__ */ l(Gl, { size: 15, className: "bpb-usage__period-icon" }),
|
|
13498
13525
|
/* @__PURE__ */ l(
|
|
13499
13526
|
"select",
|
|
13500
13527
|
{
|
|
@@ -13566,11 +13593,11 @@ const tu = ({
|
|
|
13566
13593
|
) }),
|
|
13567
13594
|
m && /* @__PURE__ */ p("div", { className: "bpb-usage__card bpb-usage__card--bots", children: [
|
|
13568
13595
|
/* @__PURE__ */ l("span", { className: "bpb-usage__subhead", children: i("dashboardAiByBot") }),
|
|
13569
|
-
/* @__PURE__ */ l(
|
|
13596
|
+
/* @__PURE__ */ l(Oc, { period: c })
|
|
13570
13597
|
] })
|
|
13571
13598
|
] })
|
|
13572
13599
|
] });
|
|
13573
|
-
}, jr = "usage-banner",
|
|
13600
|
+
}, jr = "usage-banner", su = ({
|
|
13574
13601
|
position: t = "inline",
|
|
13575
13602
|
threshold: e = 0.9,
|
|
13576
13603
|
onUpgrade: a,
|
|
@@ -13632,7 +13659,7 @@ const tu = ({
|
|
|
13632
13659
|
),
|
|
13633
13660
|
!a && /* @__PURE__ */ p(Te, { children: [
|
|
13634
13661
|
/* @__PURE__ */ l(
|
|
13635
|
-
|
|
13662
|
+
rd,
|
|
13636
13663
|
{
|
|
13637
13664
|
open: C,
|
|
13638
13665
|
onOpenChange: _,
|
|
@@ -13642,7 +13669,7 @@ const tu = ({
|
|
|
13642
13669
|
}
|
|
13643
13670
|
),
|
|
13644
13671
|
v && /* @__PURE__ */ l(
|
|
13645
|
-
|
|
13672
|
+
bd,
|
|
13646
13673
|
{
|
|
13647
13674
|
open: !!v,
|
|
13648
13675
|
onOpenChange: (O) => !O && N(null),
|
|
@@ -13656,7 +13683,7 @@ const tu = ({
|
|
|
13656
13683
|
)
|
|
13657
13684
|
] })
|
|
13658
13685
|
] });
|
|
13659
|
-
},
|
|
13686
|
+
}, ou = ({ Icon: t, title: e, description: a, onClick: n, className: r }) => /* @__PURE__ */ p("button", { type: "button", className: j("bpb-action-card bpb-scope", r), onClick: n, children: [
|
|
13660
13687
|
/* @__PURE__ */ p("div", { className: "bpb-action-card__header", children: [
|
|
13661
13688
|
/* @__PURE__ */ l(t, { size: 20 }),
|
|
13662
13689
|
e
|
|
@@ -13691,9 +13718,9 @@ const tu = ({
|
|
|
13691
13718
|
]
|
|
13692
13719
|
}
|
|
13693
13720
|
);
|
|
13694
|
-
},
|
|
13721
|
+
}, iu = ({ onManage: t, className: e }) => {
|
|
13695
13722
|
var C, _;
|
|
13696
|
-
const { isOutdatedBilling: a } = re(), { t: n } = ge(), { data: r, isLoading: s } =
|
|
13723
|
+
const { isOutdatedBilling: a } = re(), { t: n } = ge(), { data: r, isLoading: s } = Ve({ enabled: !a }), { data: o, isLoading: i } = rt();
|
|
13697
13724
|
if (a)
|
|
13698
13725
|
return /* @__PURE__ */ l(po, { isAddons: !1, className: e });
|
|
13699
13726
|
if (s || i)
|
|
@@ -13728,8 +13755,8 @@ const tu = ({
|
|
|
13728
13755
|
]
|
|
13729
13756
|
}
|
|
13730
13757
|
);
|
|
13731
|
-
},
|
|
13732
|
-
const { isOutdatedBilling: a } = re(), { t: n } = ge(), { data: r, isLoading: s } =
|
|
13758
|
+
}, lu = ({ onManage: t, className: e }) => {
|
|
13759
|
+
const { isOutdatedBilling: a } = re(), { t: n } = ge(), { data: r, isLoading: s } = Ve({ enabled: !a }), { data: o, isLoading: i } = Qt();
|
|
13733
13760
|
if (a)
|
|
13734
13761
|
return /* @__PURE__ */ l(po, { isAddons: !0, className: e });
|
|
13735
13762
|
if (s || i)
|
|
@@ -13770,7 +13797,7 @@ const tu = ({
|
|
|
13770
13797
|
]
|
|
13771
13798
|
}
|
|
13772
13799
|
);
|
|
13773
|
-
},
|
|
13800
|
+
}, du = ({ onManage: t, className: e }) => {
|
|
13774
13801
|
const { isOutdatedBilling: a } = re(), { t: n } = ge(), { data: r, isLoading: s, isError: o } = is({ enabled: !a });
|
|
13775
13802
|
if (a)
|
|
13776
13803
|
return null;
|
|
@@ -13828,9 +13855,9 @@ const tu = ({
|
|
|
13828
13855
|
]
|
|
13829
13856
|
}
|
|
13830
13857
|
);
|
|
13831
|
-
},
|
|
13858
|
+
}, cu = ({ onManage: t, className: e }) => {
|
|
13832
13859
|
var W, X;
|
|
13833
|
-
const { isOutdatedBilling: a, locale: n, manageBillingUrl: r, analytics: s } = re(), { t: o } = ge(), { data: i, isLoading: d } =
|
|
13860
|
+
const { isOutdatedBilling: a, locale: n, manageBillingUrl: r, analytics: s } = re(), { t: o } = ge(), { data: i, isLoading: d } = Ve({ enabled: !a }), { data: c, isLoading: u } = rt(), { data: m, isLoading: h } = Qt();
|
|
13834
13861
|
if (a) {
|
|
13835
13862
|
const D = () => r && window.open(r, "_blank", "noopener");
|
|
13836
13863
|
return /* @__PURE__ */ p(
|
|
@@ -13865,7 +13892,7 @@ const tu = ({
|
|
|
13865
13892
|
), S = ((X = b == null ? void 0 : b.prices[C]) == null ? void 0 : X.amount) ?? 0, T = (m ?? []).reduce((D, ue) => {
|
|
13866
13893
|
const ee = b ? Wn(ue, b, C) : null;
|
|
13867
13894
|
return D + (N[ue.id] ?? 0) * ((ee == null ? void 0 : ee.amount) ?? 0);
|
|
13868
|
-
}, 0), I = S + T, k = C === "year" ? "/yr" : "/mo", A =
|
|
13895
|
+
}, 0), I = S + T, k = C === "year" ? "/yr" : "/mo", A = Ol(b, m, N).find((D) => D.key === "conversation_sessions"), w = o(v === "community" ? "conversationsUnit" : "conversationsPerMonth"), E = v === "enterprise" || v === "managed", L = v !== "community" && !E, O = i == null ? void 0 : i.plan.next, Z = O && O.planId !== (g == null ? void 0 : g.planId), V = g == null ? void 0 : g.periodEnd, $ = L && !Z && V && !Xa(V) ? ct(V, n) : null, B = c == null ? void 0 : c.find((D) => D.id === (O == null ? void 0 : O.planId)), x = O == null ? void 0 : O.effectiveDate, H = Z && B && x ? o("planBannerDowngradesTo", {
|
|
13869
13896
|
plan: Ne(B.name),
|
|
13870
13897
|
date: ct(x, n)
|
|
13871
13898
|
}) : null;
|
|
@@ -13915,7 +13942,7 @@ const tu = ({
|
|
|
13915
13942
|
]
|
|
13916
13943
|
}
|
|
13917
13944
|
);
|
|
13918
|
-
},
|
|
13945
|
+
}, uu = ({
|
|
13919
13946
|
onManage: t,
|
|
13920
13947
|
period: e,
|
|
13921
13948
|
variant: a = "card",
|
|
@@ -13923,7 +13950,7 @@ const tu = ({
|
|
|
13923
13950
|
className: r,
|
|
13924
13951
|
style: s
|
|
13925
13952
|
}) => {
|
|
13926
|
-
const { isOutdatedBilling: o, locale: i } = re(), { t: d } = ge(), { data: c, isLoading: u } =
|
|
13953
|
+
const { isOutdatedBilling: o, locale: i } = re(), { t: d } = ge(), { data: c, isLoading: u } = Ve({ enabled: !o }), { data: m, isLoading: h } = rt(), { data: g, isLoading: b } = Xt({ period: e, enabled: !o });
|
|
13927
13954
|
if (o)
|
|
13928
13955
|
return null;
|
|
13929
13956
|
if (u || h || b)
|
|
@@ -13988,7 +14015,7 @@ const tu = ({
|
|
|
13988
14015
|
r
|
|
13989
14016
|
);
|
|
13990
14017
|
return t ? /* @__PURE__ */ l("button", { type: "button", className: x, style: s, onClick: t, children: B }) : /* @__PURE__ */ l("div", { className: x, style: s, children: B });
|
|
13991
|
-
},
|
|
14018
|
+
}, Fc = ({
|
|
13992
14019
|
children: t,
|
|
13993
14020
|
delay: e = 200,
|
|
13994
14021
|
placement: a = "top",
|
|
@@ -13998,7 +14025,7 @@ const tu = ({
|
|
|
13998
14025
|
block: o = !1,
|
|
13999
14026
|
className: i
|
|
14000
14027
|
}) => {
|
|
14001
|
-
const { isOutdatedBilling: d, analytics: c, locale: u } = re(), { t: m } = ge(), { data: h } = Xt({ period: r, enabled: !d }), { data: g } =
|
|
14028
|
+
const { isOutdatedBilling: d, analytics: c, locale: u } = re(), { t: m } = ge(), { data: h } = Xt({ period: r, enabled: !d }), { data: g } = Ve({ enabled: !d }), { data: b } = rt(), [C, _] = J(!1), v = rn(null), N = () => {
|
|
14002
14029
|
v.current && (clearTimeout(v.current), v.current = null);
|
|
14003
14030
|
};
|
|
14004
14031
|
Oe(() => N, []);
|
|
@@ -14076,7 +14103,7 @@ const tu = ({
|
|
|
14076
14103
|
]
|
|
14077
14104
|
}
|
|
14078
14105
|
);
|
|
14079
|
-
},
|
|
14106
|
+
}, pu = ({
|
|
14080
14107
|
size: t = 20,
|
|
14081
14108
|
thickness: e = 3.5,
|
|
14082
14109
|
showLabel: a = !1,
|
|
@@ -14125,8 +14152,8 @@ const tu = ({
|
|
|
14125
14152
|
"%"
|
|
14126
14153
|
] })
|
|
14127
14154
|
] }), I = j("bpb-usage-ring", n && "bpb-usage-ring--clickable");
|
|
14128
|
-
return /* @__PURE__ */ l(
|
|
14129
|
-
},
|
|
14155
|
+
return /* @__PURE__ */ l(Fc, { delay: r, align: s, period: i, className: d, children: n ? /* @__PURE__ */ l("button", { type: "button", className: I, onClick: n, "aria-label": S, children: T }) : /* @__PURE__ */ l("span", { className: I, tabIndex: 0, role: "img", "aria-label": S, children: T }) });
|
|
14156
|
+
}, Mc = ({ checked: t, onChange: e, disabled: a, className: n, ...r }) => /* @__PURE__ */ l(
|
|
14130
14157
|
"button",
|
|
14131
14158
|
{
|
|
14132
14159
|
type: "button",
|
|
@@ -14138,7 +14165,7 @@ const tu = ({
|
|
|
14138
14165
|
onClick: () => e(!t),
|
|
14139
14166
|
children: /* @__PURE__ */ l("span", { className: "bpb-switch__thumb" })
|
|
14140
14167
|
}
|
|
14141
|
-
), Vr = "ai_spend",
|
|
14168
|
+
), Vr = "ai_spend", Bc = 5, Pn = (t) => (t ?? 0) / tt, Dn = (t) => Math.round(t * tt), Zr = (t) => Number.isInteger(t) && t >= Bc, Uc = (t, e) => Number.isInteger(t) && t >= 0 && e > 0 && t % e === 0, mu = ({ open: t, onOpenChange: e, onSuccess: a, onUpgrade: n }) => {
|
|
14142
14169
|
const { isOutdatedBilling: r } = re(), { t: s } = ge();
|
|
14143
14170
|
return r ? /* @__PURE__ */ l(
|
|
14144
14171
|
Fe,
|
|
@@ -14150,8 +14177,8 @@ const tu = ({
|
|
|
14150
14177
|
className: "bpb-scope",
|
|
14151
14178
|
children: /* @__PURE__ */ l(Rt, {})
|
|
14152
14179
|
}
|
|
14153
|
-
) : /* @__PURE__ */ l(Fe, { open: t, onOpenChange: e, size: "md", "aria-label": s("autoRechargeTitle"), className: "bpb-scope", children: /* @__PURE__ */ l(
|
|
14154
|
-
},
|
|
14180
|
+
) : /* @__PURE__ */ l(Fe, { open: t, onOpenChange: e, size: "md", "aria-label": s("autoRechargeTitle"), className: "bpb-scope", children: /* @__PURE__ */ l(zc, { onOpenChange: e, onSuccess: a, onUpgrade: n }) });
|
|
14181
|
+
}, zc = ({
|
|
14155
14182
|
onOpenChange: t,
|
|
14156
14183
|
onSuccess: e,
|
|
14157
14184
|
onUpgrade: a
|
|
@@ -14161,12 +14188,12 @@ const tu = ({
|
|
|
14161
14188
|
isLoading: i,
|
|
14162
14189
|
isError: d,
|
|
14163
14190
|
refetch: c
|
|
14164
|
-
} =
|
|
14191
|
+
} = Ve(), { data: u, isLoading: m, isError: h, refetch: g } = rt(), {
|
|
14165
14192
|
data: b,
|
|
14166
14193
|
isLoading: C,
|
|
14167
14194
|
isError: _,
|
|
14168
14195
|
refetch: v
|
|
14169
|
-
} = is(), N =
|
|
14196
|
+
} = is(), N = Li(), [S, T] = J(null), [I, k] = J(!1), [A, w] = J(!1), [E, L] = J(!1), O = i || m || C, Z = d || h || _, V = () => {
|
|
14170
14197
|
c(), g(), v();
|
|
14171
14198
|
}, $ = u == null ? void 0 : u.find((pe) => pe.id === (o == null ? void 0 : o.plan.current.planId)), B = o ? $ ? _e($) === "community" : !0 : !1, x = b == null ? void 0 : b[Vr], H = Re(() => {
|
|
14172
14199
|
const pe = (x == null ? void 0 : x.maxAmount) != null, fe = (x == null ? void 0 : x.targetType) === "credit_grant" && (x == null ? void 0 : x.thresholdType) === "remaining_amount" ? x == null ? void 0 : x.threshold : null;
|
|
@@ -14176,7 +14203,7 @@ const tu = ({
|
|
|
14176
14203
|
limitInput: (x == null ? void 0 : x.maxAmount) != null ? String(Math.round(Pn(x.maxAmount))) : "",
|
|
14177
14204
|
hasLimit: pe
|
|
14178
14205
|
};
|
|
14179
|
-
}, [x]), W = S ?? H, X = (pe) => T({ ...W, ...pe }), D = Number(W.thresholdInput), ue = Number(W.chunkInput), ee = Number(W.limitInput), ce = W.thresholdInput.trim() !== "" && Zr(D), M = Zr(ue), K = !W.hasLimit || W.limitInput.trim() !== "" &&
|
|
14206
|
+
}, [x]), W = S ?? H, X = (pe) => T({ ...W, ...pe }), D = Number(W.thresholdInput), ue = Number(W.chunkInput), ee = Number(W.limitInput), ce = W.thresholdInput.trim() !== "" && Zr(D), M = Zr(ue), K = !W.hasLimit || W.limitInput.trim() !== "" && Uc(ee, ue), G = I && !ce, P = A && !M, be = E && !K, te = W.thresholdInput !== H.thresholdInput || W.chunkInput !== H.chunkInput || W.limitInput !== H.limitInput || W.hasLimit !== H.hasLimit, de = () => {
|
|
14180
14207
|
N.mutate(
|
|
14181
14208
|
{
|
|
14182
14209
|
settings: {
|
|
@@ -14317,7 +14344,7 @@ const tu = ({
|
|
|
14317
14344
|
/* @__PURE__ */ l("span", { className: "bpb-auto-recharge-dialog__row-description", children: s("autoRechargeSetLimitHint") })
|
|
14318
14345
|
] }),
|
|
14319
14346
|
/* @__PURE__ */ l(
|
|
14320
|
-
|
|
14347
|
+
Mc,
|
|
14321
14348
|
{
|
|
14322
14349
|
"aria-label": s("autoRechargeSetLimitLabel"),
|
|
14323
14350
|
checked: W.hasLimit,
|
|
@@ -14396,80 +14423,80 @@ const tu = ({
|
|
|
14396
14423
|
] });
|
|
14397
14424
|
};
|
|
14398
14425
|
export {
|
|
14399
|
-
|
|
14426
|
+
lu as AddonsSummaryCard,
|
|
14400
14427
|
Xn as ArrowRightIcon,
|
|
14401
|
-
|
|
14402
|
-
|
|
14428
|
+
mu as AutoRechargeDialog,
|
|
14429
|
+
du as AutoRechargeSummaryCard,
|
|
14403
14430
|
we as BILLING_EVENTS,
|
|
14404
14431
|
Ja as Badge,
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14432
|
+
Jc as BankIcon,
|
|
14433
|
+
ou as BillingActionCard,
|
|
14434
|
+
$c as BillingProvider,
|
|
14408
14435
|
Jn as BoltIcon,
|
|
14409
14436
|
ke as Button,
|
|
14410
|
-
|
|
14437
|
+
Gl as CalendarIcon,
|
|
14411
14438
|
Ds as CardBrandBadge,
|
|
14412
14439
|
Rr as CardIcon,
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14440
|
+
jl as ChartIcon,
|
|
14441
|
+
Fl as CheckIcon,
|
|
14442
|
+
bd as CheckoutDialog,
|
|
14416
14443
|
ea as ChevronDownIcon,
|
|
14417
14444
|
xs as ChevronLeftIcon,
|
|
14418
14445
|
yt as ChevronRightIcon,
|
|
14419
14446
|
Qn as CloseIcon,
|
|
14420
|
-
|
|
14447
|
+
Dl as DEFAULT_FEATURE_LABELS,
|
|
14421
14448
|
$n as DEFAULT_PLAN_FEATURES,
|
|
14422
14449
|
Fe as Dialog,
|
|
14423
14450
|
Er as DownloadIcon,
|
|
14424
14451
|
Is as ENTERPRISE_CONTACT_URL,
|
|
14425
14452
|
dn as ExternalLinkIcon,
|
|
14426
|
-
|
|
14427
|
-
|
|
14453
|
+
Vl as GlobeIcon,
|
|
14454
|
+
Ul as InfinityIcon,
|
|
14428
14455
|
Qa as InfoTooltip,
|
|
14429
14456
|
Bn as Input,
|
|
14430
|
-
|
|
14457
|
+
tu as InvoicesDialog,
|
|
14431
14458
|
Yn as LayersIcon,
|
|
14432
|
-
|
|
14433
|
-
|
|
14434
|
-
|
|
14435
|
-
|
|
14459
|
+
Qc as LockIcon,
|
|
14460
|
+
eu as ManageAddonsDialog,
|
|
14461
|
+
Ml as MessageIcon,
|
|
14462
|
+
ql as MinusIcon,
|
|
14436
14463
|
tt as NANO_DOLLARS_PER_DOLLAR,
|
|
14437
14464
|
Rt as OutdatedBillingGate,
|
|
14438
|
-
|
|
14465
|
+
nu as OutgrowFreeDialog,
|
|
14439
14466
|
Kn as PLAN_FEATURE_KEYS,
|
|
14440
14467
|
Wt as PLAN_ORDER,
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
|
|
14444
|
-
|
|
14445
|
-
|
|
14468
|
+
Zl as PaintIcon,
|
|
14469
|
+
au as PaymentMethodDialog,
|
|
14470
|
+
cu as PlanBanner,
|
|
14471
|
+
iu as PlanSummaryCard,
|
|
14472
|
+
uu as PlanUsageWidget,
|
|
14446
14473
|
Ps as PlusIcon,
|
|
14447
|
-
|
|
14448
|
-
|
|
14449
|
-
|
|
14474
|
+
Bl as PuzzleIcon,
|
|
14475
|
+
Xc as ReceiptIcon,
|
|
14476
|
+
Kl as SegmentedControl,
|
|
14450
14477
|
Bs as Select,
|
|
14451
14478
|
Dr as ShieldIcon,
|
|
14452
14479
|
me as Skeleton,
|
|
14453
14480
|
Hn as SparkleIcon,
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14462
|
-
|
|
14463
|
-
|
|
14481
|
+
fd as Stepper,
|
|
14482
|
+
Mc as Switch,
|
|
14483
|
+
Ic as USAGE_METRICS,
|
|
14484
|
+
rd as UpgradePlanDialog,
|
|
14485
|
+
su as UsageBanner,
|
|
14486
|
+
ru as UsageDashboard,
|
|
14487
|
+
Fc as UsagePopover,
|
|
14488
|
+
pu as UsageRing,
|
|
14489
|
+
zl as UsersIcon,
|
|
14490
|
+
Pl as addDays,
|
|
14464
14491
|
ja as addonDisplayName,
|
|
14465
|
-
|
|
14492
|
+
Ll as addonLimitsPreview,
|
|
14466
14493
|
Wn as addonPrice,
|
|
14467
14494
|
Ae as billingKeys,
|
|
14468
14495
|
j as cn,
|
|
14469
14496
|
Gn as conversationPackPrice,
|
|
14470
|
-
|
|
14497
|
+
El as conversationsAddon,
|
|
14471
14498
|
za as currencySymbol,
|
|
14472
|
-
|
|
14499
|
+
Yc as featureLabel,
|
|
14473
14500
|
Kt as formatBytes,
|
|
14474
14501
|
le as formatCurrency,
|
|
14475
14502
|
ct as formatDate,
|
|
@@ -14480,7 +14507,7 @@ export {
|
|
|
14480
14507
|
Ao as getStripePromise,
|
|
14481
14508
|
er as iconForFeature,
|
|
14482
14509
|
Ne as planDisplayName,
|
|
14483
|
-
|
|
14510
|
+
Ol as planEntitlements,
|
|
14484
14511
|
_e as planKind,
|
|
14485
14512
|
Ls as toStripeLocale,
|
|
14486
14513
|
yn as usageItems,
|
|
@@ -14491,17 +14518,18 @@ export {
|
|
|
14491
14518
|
os as useBillingReadonly,
|
|
14492
14519
|
ls as useCreatePaymentMethodIntent,
|
|
14493
14520
|
ss as useCustomer,
|
|
14494
|
-
|
|
14521
|
+
Ei as useInvoices,
|
|
14522
|
+
Hc as useIsAuthorized,
|
|
14495
14523
|
rs as usePaymentMethod,
|
|
14496
14524
|
rt as usePlans,
|
|
14497
|
-
|
|
14498
|
-
|
|
14525
|
+
Mi as useSetAddons,
|
|
14526
|
+
Li as useSetAutoRechargeSettings,
|
|
14499
14527
|
cs as useSetCustomer,
|
|
14500
14528
|
ds as useSetPaymentMethod,
|
|
14501
14529
|
us as useSetSubscription,
|
|
14502
|
-
|
|
14530
|
+
Ve as useSubscription,
|
|
14503
14531
|
ns as useSubscriptionPreview,
|
|
14504
|
-
|
|
14532
|
+
Fi as useSupportsUsageByBot,
|
|
14505
14533
|
Xt as useUsage,
|
|
14506
|
-
|
|
14534
|
+
Oi as useUsageByBot
|
|
14507
14535
|
};
|