@burdenoff/microfe-product 2026.1109.1 → 2026.1109.3
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/generated/global-operations.d.ts +0 -1
- package/dist/generated/global-types.d.ts +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -1
- package/dist/generated/wspace-types.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +96 -17
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/product/ProductUserRoot.d.ts +0 -1
- package/dist/product/ProductUserRoutes.d.ts +1 -2
- package/dist/product/hooks/usePublicContentPage.d.ts +0 -1
- package/dist/product/hooks/usePublicProduct.d.ts +0 -1
- package/dist/product/hooks/usePublicProducts.d.ts +0 -1
- package/dist/product/pages/ContentPageViewPage.d.ts +1 -2
- package/dist/product/pages/ProductCatalogPage.d.ts +1 -2
- package/dist/product/pages/ProductViewPage.d.ts +1 -2
- package/dist/product/pages/UserProductsLandingPage.d.ts +1 -2
- package/dist/product/providers/ProductUserProvider.d.ts +1 -2
- package/dist/product/types/index.d.ts +0 -1
- package/dist/product-management/ProductManagementRoot.d.ts +0 -1
- package/dist/product-management/ProductManagementRoutes.d.ts +1 -2
- package/dist/product-management/index.d.ts +0 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts +1 -2
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +4 -4
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.d.ts +1 -2
- package/dist/product-management/modules/content-pages/hooks/useContentPages.d.ts +0 -1
- package/dist/product-management/modules/content-pages/index.d.ts +0 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.d.ts +1 -2
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.d.ts +1 -2
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.d.ts +1 -2
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts +1 -2
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +140 -147
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/schemas/index.d.ts +0 -1
- package/dist/product-management/modules/content-pages/types/index.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/index.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/schemas/index.d.ts +0 -1
- package/dist/product-management/modules/feature-flags/types/index.d.ts +0 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.d.ts +1 -2
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.d.ts +0 -1
- package/dist/product-management/modules/press-kit/index.d.ts +0 -1
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.d.ts +1 -2
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.d.ts +1 -2
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.d.ts +1 -2
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.d.ts +1 -2
- package/dist/product-management/modules/press-kit/schemas/index.d.ts +0 -1
- package/dist/product-management/modules/press-kit/types/index.d.ts +0 -1
- package/dist/product-management/modules/products/components/ProductCard.d.ts +1 -2
- package/dist/product-management/modules/products/components/ProductForm.d.ts +1 -2
- package/dist/product-management/modules/products/components/ProductPlans.d.ts +1 -2
- package/dist/product-management/modules/products/components/ProductPlans.js +143 -130
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductStats.d.ts +1 -2
- package/dist/product-management/modules/products/components/ProductStatusBadge.d.ts +1 -2
- package/dist/product-management/modules/products/hooks/useProducts.d.ts +0 -1
- package/dist/product-management/modules/products/index.d.ts +0 -1
- package/dist/product-management/modules/products/pages/ProductCreatePage.d.ts +1 -2
- package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts +1 -2
- package/dist/product-management/modules/products/pages/ProductEditPage.d.ts +1 -2
- package/dist/product-management/modules/products/pages/ProductsListPage.d.ts +1 -2
- package/dist/product-management/modules/products/pages/ProductsListPage.js +144 -151
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
- package/dist/product-management/modules/products/schemas/index.d.ts +0 -1
- package/dist/product-management/modules/products/types/index.d.ts +0 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.d.ts +1 -2
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.d.ts +1 -2
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +66 -72
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.d.ts +1 -2
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.d.ts +0 -1
- package/dist/product-management/modules/shortcuts/index.d.ts +0 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.d.ts +1 -2
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.d.ts +1 -2
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.d.ts +1 -2
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.d.ts +1 -2
- package/dist/product-management/modules/shortcuts/schemas/index.d.ts +0 -1
- package/dist/product-management/modules/shortcuts/types/index.d.ts +0 -1
- package/dist/product-management/providers/ProductConsoleProvider.d.ts +1 -2
- package/dist/product-management/shared/components/AuditHistoryTab.d.ts +1 -2
- package/dist/product-management/shared/components/TagList.d.ts +1 -2
- package/dist/product-management/shared/components/feedback/EmptyState.d.ts +1 -2
- package/dist/product-management/shared/components/feedback/ErrorState.d.ts +1 -2
- package/dist/product-management/shared/components/feedback/LoadingState.d.ts +1 -2
- package/dist/product-management/shared/components/input/ProductCombobox.d.ts +1 -2
- package/dist/product-management/shared/components/input/SearchInput.d.ts +1 -2
- package/dist/product-management/shared/components/input/TagInput.d.ts +1 -2
- package/dist/product-management/shared/hooks/useConfirmDialog.d.ts +1 -2
- package/dist/product-management/shared/hooks/useDebounced.d.ts +0 -1
- package/dist/product-management/shared/hooks/useTr.d.ts +0 -1
- package/dist/product-management/shared/index.d.ts +0 -1
- package/dist/product-management/shared/types/graphql.d.ts +0 -1
- package/dist/product-management/shared/utils/cn.d.ts +0 -1
- package/dist/product-management/shared/utils/exportUtils.d.ts +0 -1
- package/dist/product-management/shared/utils/permission-error.d.ts +0 -1
- package/dist/product-management/types/index.d.ts +0 -1
- package/dist/shared/components/MarkdownEditor.d.ts +1 -2
- package/dist/shared/components/index.d.ts +0 -1
- package/dist/shared/hooks/useTr.d.ts +0 -1
- package/dist/shared/index.d.ts +0 -1
- package/dist/shared/utils/formatDate.d.ts +0 -1
- package/dist/shared/utils/index.d.ts +0 -1
- package/dist/shared/utils/isSafeUrl.d.ts +0 -1
- package/dist/shared/utils/renderMarkdown.d.ts +0 -1
- package/dist/translations/en.d.ts +0 -1
- package/dist/translations/index.d.ts +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/package.json +59 -39
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/product/ProductUserRoot.d.ts.map +0 -1
- package/dist/product/ProductUserRoutes.d.ts.map +0 -1
- package/dist/product/hooks/usePublicContentPage.d.ts.map +0 -1
- package/dist/product/hooks/usePublicProduct.d.ts.map +0 -1
- package/dist/product/hooks/usePublicProducts.d.ts.map +0 -1
- package/dist/product/pages/ContentPageViewPage.d.ts.map +0 -1
- package/dist/product/pages/ProductCatalogPage.d.ts.map +0 -1
- package/dist/product/pages/ProductViewPage.d.ts.map +0 -1
- package/dist/product/pages/UserProductsLandingPage.d.ts.map +0 -1
- package/dist/product/providers/ProductUserProvider.d.ts.map +0 -1
- package/dist/product/types/index.d.ts.map +0 -1
- package/dist/product-management/ProductManagementRoot.d.ts.map +0 -1
- package/dist/product-management/ProductManagementRoutes.d.ts.map +0 -1
- package/dist/product-management/index.d.ts.map +0 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts.map +0 -1
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.d.ts.map +0 -1
- package/dist/product-management/modules/content-pages/hooks/useContentPages.d.ts.map +0 -1
- package/dist/product-management/modules/content-pages/index.d.ts.map +0 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.d.ts.map +0 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.d.ts.map +0 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.d.ts.map +0 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts.map +0 -1
- package/dist/product-management/modules/content-pages/schemas/index.d.ts.map +0 -1
- package/dist/product-management/modules/content-pages/types/index.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/index.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/schemas/index.d.ts.map +0 -1
- package/dist/product-management/modules/feature-flags/types/index.d.ts.map +0 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.d.ts.map +0 -1
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.d.ts.map +0 -1
- package/dist/product-management/modules/press-kit/index.d.ts.map +0 -1
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.d.ts.map +0 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.d.ts.map +0 -1
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.d.ts.map +0 -1
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.d.ts.map +0 -1
- package/dist/product-management/modules/press-kit/schemas/index.d.ts.map +0 -1
- package/dist/product-management/modules/press-kit/types/index.d.ts.map +0 -1
- package/dist/product-management/modules/products/components/ProductCard.d.ts.map +0 -1
- package/dist/product-management/modules/products/components/ProductForm.d.ts.map +0 -1
- package/dist/product-management/modules/products/components/ProductPlans.d.ts.map +0 -1
- package/dist/product-management/modules/products/components/ProductStats.d.ts.map +0 -1
- package/dist/product-management/modules/products/components/ProductStatusBadge.d.ts.map +0 -1
- package/dist/product-management/modules/products/hooks/useProducts.d.ts.map +0 -1
- package/dist/product-management/modules/products/index.d.ts.map +0 -1
- package/dist/product-management/modules/products/pages/ProductCreatePage.d.ts.map +0 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts.map +0 -1
- package/dist/product-management/modules/products/pages/ProductEditPage.d.ts.map +0 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.d.ts.map +0 -1
- package/dist/product-management/modules/products/schemas/index.d.ts.map +0 -1
- package/dist/product-management/modules/products/types/index.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/index.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/schemas/index.d.ts.map +0 -1
- package/dist/product-management/modules/shortcuts/types/index.d.ts.map +0 -1
- package/dist/product-management/providers/ProductConsoleProvider.d.ts.map +0 -1
- package/dist/product-management/shared/components/AuditHistoryTab.d.ts.map +0 -1
- package/dist/product-management/shared/components/TagList.d.ts.map +0 -1
- package/dist/product-management/shared/components/feedback/EmptyState.d.ts.map +0 -1
- package/dist/product-management/shared/components/feedback/ErrorState.d.ts.map +0 -1
- package/dist/product-management/shared/components/feedback/LoadingState.d.ts.map +0 -1
- package/dist/product-management/shared/components/input/ProductCombobox.d.ts.map +0 -1
- package/dist/product-management/shared/components/input/SearchInput.d.ts.map +0 -1
- package/dist/product-management/shared/components/input/TagInput.d.ts.map +0 -1
- package/dist/product-management/shared/hooks/useConfirmDialog.d.ts.map +0 -1
- package/dist/product-management/shared/hooks/useDebounced.d.ts.map +0 -1
- package/dist/product-management/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/product-management/shared/index.d.ts.map +0 -1
- package/dist/product-management/shared/types/graphql.d.ts.map +0 -1
- package/dist/product-management/shared/utils/cn.d.ts.map +0 -1
- package/dist/product-management/shared/utils/exportUtils.d.ts.map +0 -1
- package/dist/product-management/shared/utils/permission-error.d.ts.map +0 -1
- package/dist/product-management/types/index.d.ts.map +0 -1
- package/dist/shared/components/MarkdownEditor.d.ts.map +0 -1
- package/dist/shared/components/index.d.ts.map +0 -1
- package/dist/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/utils/formatDate.d.ts.map +0 -1
- package/dist/shared/utils/index.d.ts.map +0 -1
- package/dist/shared/utils/isSafeUrl.d.ts.map +0 -1
- package/dist/shared/utils/renderMarkdown.d.ts.map +0 -1
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/translations/index.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,78 +1,91 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
2
|
import { useCallback as t, useEffect as n, useState as r } from "react";
|
|
3
|
-
import { Check as i, DollarSign as a, Edit as
|
|
3
|
+
import { Check as i, DollarSign as a, Edit as ee, List as o, Loader2 as s, Plus as c, ToggleLeft as l, ToggleRight as u } from "lucide-react";
|
|
4
4
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
5
|
-
import { IllustratedEmptyState as
|
|
6
|
-
import { graphqlFetch as
|
|
5
|
+
import { IllustratedEmptyState as te } from "@burdenoff/fe-libs/ui";
|
|
6
|
+
import { graphqlFetch as m } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
7
7
|
// src/product-management/modules/products/components/ProductPlans.tsx
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
let
|
|
8
|
+
var ne = "\n query GetAllPlans {\n getAllPlans {\n id\n name\n price\n currency\n duration\n isActive\n productID\n features {\n id\n quotaId\n quota {\n id\n name\n limits\n }\n }\n createdAt\n }\n }\n", h = "\n query GetAllQuotas {\n getAllQuotas {\n id\n name\n limits\n }\n }\n", g = "\n mutation CreateQuota($input: createQuotaInput!) {\n createQuota(input: $input)\n }\n", re = "\n mutation CreatePlan($input: createPlanInput!) {\n createPlan(input: $input)\n }\n", _ = "\n mutation UpdatePlan($input: updatePlanInput!) {\n updatePlan(input: $input)\n }\n", ie = "\n mutation TogglePlan($planID: ID!, $status: Boolean!) {\n togglePlan(planID: $planID, status: $status)\n }\n";
|
|
9
|
+
function v({ productId: v, productName: ae, readOnly: y = !1 }) {
|
|
10
|
+
let b = e(), [x, S] = r([]), [C, w] = r([]), [oe, T] = r(!0), [E, D] = r(null), [O, k] = r(!1), [A, j] = r(null), [M, N] = r(!1), [P, F] = r(!1), [I, L] = r(""), [R, z] = r({
|
|
11
11
|
name: "",
|
|
12
12
|
price: "",
|
|
13
13
|
currency: "USD",
|
|
14
14
|
duration: "monthly",
|
|
15
15
|
quotas: []
|
|
16
|
-
}),
|
|
17
|
-
let n = await
|
|
16
|
+
}), B = t(async (e, t) => {
|
|
17
|
+
let n = await m({
|
|
18
18
|
gateway: "global",
|
|
19
19
|
query: e,
|
|
20
20
|
variables: t
|
|
21
21
|
});
|
|
22
22
|
if (n.errors?.length) throw Error(n.errors[0].message);
|
|
23
23
|
return n.data ?? null;
|
|
24
|
-
}, []),
|
|
24
|
+
}, []), V = t(async () => {
|
|
25
|
+
let [e, t] = await Promise.all([B(ne), B(h)]);
|
|
26
|
+
return {
|
|
27
|
+
plans: (e?.getAllPlans || []).filter((e) => e.productID === v),
|
|
28
|
+
quotas: t?.getAllQuotas || []
|
|
29
|
+
};
|
|
30
|
+
}, [v, B]), H = t((e) => {
|
|
31
|
+
D(b("products.failedToLoadPlans", "Failed to load plans")), console.error("Failed to fetch plans:", e);
|
|
32
|
+
}, [b]), U = t(async () => {
|
|
33
|
+
T(!0);
|
|
25
34
|
try {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
T(n.filter((e) => e.productID === x)), re(t?.getAllQuotas || []), k(null);
|
|
35
|
+
let e = await V();
|
|
36
|
+
S(e.plans), w(e.quotas), D(null);
|
|
29
37
|
} catch (e) {
|
|
30
|
-
|
|
38
|
+
H(e);
|
|
31
39
|
} finally {
|
|
32
|
-
|
|
40
|
+
T(!1);
|
|
33
41
|
}
|
|
34
|
-
}, [
|
|
35
|
-
x,
|
|
36
|
-
H,
|
|
37
|
-
C
|
|
38
|
-
]);
|
|
42
|
+
}, [V, H]);
|
|
39
43
|
n(() => {
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
let e = !0;
|
|
45
|
+
return V().then((t) => {
|
|
46
|
+
e && (S(t.plans), w(t.quotas), D(null));
|
|
47
|
+
}).catch((t) => {
|
|
48
|
+
e && H(t);
|
|
49
|
+
}).finally(() => {
|
|
50
|
+
e && T(!1);
|
|
51
|
+
}), () => {
|
|
52
|
+
e = !1;
|
|
53
|
+
};
|
|
54
|
+
}, [V, H]);
|
|
42
55
|
let W = () => {
|
|
43
|
-
|
|
56
|
+
z({
|
|
44
57
|
name: "",
|
|
45
58
|
price: "",
|
|
46
59
|
currency: "USD",
|
|
47
60
|
duration: "monthly",
|
|
48
61
|
quotas: []
|
|
49
|
-
}),
|
|
62
|
+
}), j(null), k(!1);
|
|
50
63
|
}, G = async (e) => {
|
|
51
|
-
e.preventDefault(),
|
|
64
|
+
e.preventDefault(), N(!0);
|
|
52
65
|
try {
|
|
53
|
-
|
|
54
|
-
id:
|
|
55
|
-
name:
|
|
56
|
-
price: parseFloat(
|
|
57
|
-
currency:
|
|
58
|
-
duration:
|
|
59
|
-
quotas:
|
|
60
|
-
} }) : await
|
|
61
|
-
name:
|
|
62
|
-
price: parseFloat(
|
|
63
|
-
currency:
|
|
64
|
-
duration:
|
|
65
|
-
productId:
|
|
66
|
-
quotas:
|
|
66
|
+
A ? await B(_, { input: {
|
|
67
|
+
id: A.id,
|
|
68
|
+
name: R.name,
|
|
69
|
+
price: parseFloat(R.price),
|
|
70
|
+
currency: R.currency,
|
|
71
|
+
duration: R.duration,
|
|
72
|
+
quotas: R.quotas
|
|
73
|
+
} }) : await B(re, { input: {
|
|
74
|
+
name: R.name,
|
|
75
|
+
price: parseFloat(R.price),
|
|
76
|
+
currency: R.currency,
|
|
77
|
+
duration: R.duration,
|
|
78
|
+
productId: v,
|
|
79
|
+
quotas: R.quotas
|
|
67
80
|
} }), W(), await U();
|
|
68
81
|
} catch (e) {
|
|
69
|
-
console.error("Failed to save plan:", e),
|
|
82
|
+
console.error("Failed to save plan:", e), D(b("products.failedToSavePlan", "Failed to save plan"));
|
|
70
83
|
} finally {
|
|
71
|
-
|
|
84
|
+
N(!1);
|
|
72
85
|
}
|
|
73
86
|
}, K = async (e) => {
|
|
74
87
|
try {
|
|
75
|
-
await
|
|
88
|
+
await B(ie, {
|
|
76
89
|
planID: e.id,
|
|
77
90
|
status: !e.isActive
|
|
78
91
|
}), await U();
|
|
@@ -80,7 +93,7 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
80
93
|
console.error("Failed to toggle plan:", e);
|
|
81
94
|
}
|
|
82
95
|
}, q = (e) => {
|
|
83
|
-
|
|
96
|
+
j(e), z({
|
|
84
97
|
name: e.name,
|
|
85
98
|
price: e.price.toString(),
|
|
86
99
|
currency: e.currency,
|
|
@@ -89,24 +102,24 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
89
102
|
quotaId: e.quotaId,
|
|
90
103
|
quantity: 1
|
|
91
104
|
}))
|
|
92
|
-
}),
|
|
105
|
+
}), k(!0);
|
|
93
106
|
}, J = async () => {
|
|
94
|
-
if (
|
|
95
|
-
|
|
96
|
-
name:
|
|
107
|
+
if (I.trim()) try {
|
|
108
|
+
N(!0), await B(g, { input: {
|
|
109
|
+
name: I.trim(),
|
|
97
110
|
quotaType: "PRODUCT_SPECIFIC",
|
|
98
111
|
limits: {},
|
|
99
112
|
reusable: !0
|
|
100
|
-
} }),
|
|
113
|
+
} }), L(""), F(!1), await U();
|
|
101
114
|
} catch (e) {
|
|
102
|
-
console.error("Failed to create quota:", e),
|
|
115
|
+
console.error("Failed to create quota:", e), D(b("products.failedToCreateFeature", "Failed to create feature"));
|
|
103
116
|
} finally {
|
|
104
|
-
|
|
117
|
+
N(!1);
|
|
105
118
|
}
|
|
106
119
|
}, Y = (e) => {
|
|
107
120
|
let t = e.toLowerCase();
|
|
108
121
|
return t.includes("team") || t.includes("business") || t.includes("enterprise");
|
|
109
|
-
}, X =
|
|
122
|
+
}, X = x.filter((e) => !Y(e.name)), Z = x.filter((e) => Y(e.name)), se = X.filter((e) => e.duration === "monthly"), ce = X.filter((e) => e.duration === "yearly"), [Q, $] = r("individual");
|
|
110
123
|
return /* @__PURE__ */ p("div", {
|
|
111
124
|
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)] lg:col-span-2",
|
|
112
125
|
children: [
|
|
@@ -114,35 +127,35 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
114
127
|
className: "flex items-center justify-between mb-4",
|
|
115
128
|
children: [/* @__PURE__ */ p("h2", {
|
|
116
129
|
className: "text-lg font-semibold text-text-primary flex items-center gap-2",
|
|
117
|
-
children: [/* @__PURE__ */ f(a, { size: 18 }),
|
|
118
|
-
}), !
|
|
130
|
+
children: [/* @__PURE__ */ f(a, { size: 18 }), b("products.pricingPlans", "Pricing Plans")]
|
|
131
|
+
}), !y && /* @__PURE__ */ p("button", {
|
|
119
132
|
type: "button",
|
|
120
133
|
onClick: () => {
|
|
121
|
-
W(),
|
|
134
|
+
W(), k(!O);
|
|
122
135
|
},
|
|
123
136
|
className: "\n inline-flex items-center gap-1.5 px-3 py-1.5\n bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)]\n rounded-lg text-sm font-medium\n hover:opacity-90 transition-all duration-200\n ",
|
|
124
|
-
children: [/* @__PURE__ */ f(
|
|
137
|
+
children: [/* @__PURE__ */ f(c, { size: 14 }), b("products.addPlan", "Add Plan")]
|
|
125
138
|
})]
|
|
126
139
|
}),
|
|
127
|
-
|
|
140
|
+
O && !y && /* @__PURE__ */ p("form", {
|
|
128
141
|
onSubmit: G,
|
|
129
142
|
className: "mb-6 p-4 bg-bg-sunken rounded-lg border border-default",
|
|
130
143
|
children: [
|
|
131
144
|
/* @__PURE__ */ f("h3", {
|
|
132
145
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
133
|
-
children:
|
|
146
|
+
children: A ? b("products.editPlan", "Edit Plan") : b("products.createNewPlan", "Create New Plan")
|
|
134
147
|
}),
|
|
135
148
|
/* @__PURE__ */ p("div", {
|
|
136
149
|
className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
|
|
137
150
|
children: [
|
|
138
151
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
|
|
139
152
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
140
|
-
children: [
|
|
153
|
+
children: [b("products.planName", "Name"), " *"]
|
|
141
154
|
}), /* @__PURE__ */ f("input", {
|
|
142
155
|
type: "text",
|
|
143
|
-
value:
|
|
144
|
-
onChange: (e) =>
|
|
145
|
-
...
|
|
156
|
+
value: R.name,
|
|
157
|
+
onChange: (e) => z({
|
|
158
|
+
...R,
|
|
146
159
|
name: e.target.value
|
|
147
160
|
}),
|
|
148
161
|
placeholder: "e.g. Basic",
|
|
@@ -151,14 +164,14 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
151
164
|
})] }),
|
|
152
165
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
|
|
153
166
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
154
|
-
children: [
|
|
167
|
+
children: [b("products.planPrice", "Price"), " *"]
|
|
155
168
|
}), /* @__PURE__ */ f("input", {
|
|
156
169
|
type: "number",
|
|
157
170
|
step: "0.01",
|
|
158
171
|
min: "0",
|
|
159
|
-
value:
|
|
160
|
-
onChange: (e) =>
|
|
161
|
-
...
|
|
172
|
+
value: R.price,
|
|
173
|
+
onChange: (e) => z({
|
|
174
|
+
...R,
|
|
162
175
|
price: e.target.value
|
|
163
176
|
}),
|
|
164
177
|
placeholder: "9.99",
|
|
@@ -167,29 +180,29 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
167
180
|
})] }),
|
|
168
181
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
|
|
169
182
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
170
|
-
children: [
|
|
183
|
+
children: [b("products.planDuration", "Duration"), " *"]
|
|
171
184
|
}), /* @__PURE__ */ p("select", {
|
|
172
|
-
value:
|
|
173
|
-
onChange: (e) =>
|
|
174
|
-
...
|
|
185
|
+
value: R.duration,
|
|
186
|
+
onChange: (e) => z({
|
|
187
|
+
...R,
|
|
175
188
|
duration: e.target.value
|
|
176
189
|
}),
|
|
177
190
|
className: "w-full px-3 py-2 text-sm rounded-md border border-default bg-surface text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
178
191
|
children: [/* @__PURE__ */ f("option", {
|
|
179
192
|
value: "monthly",
|
|
180
|
-
children:
|
|
193
|
+
children: b("products.monthly", "Monthly")
|
|
181
194
|
}), /* @__PURE__ */ f("option", {
|
|
182
195
|
value: "yearly",
|
|
183
|
-
children:
|
|
196
|
+
children: b("products.yearly", "Yearly")
|
|
184
197
|
})]
|
|
185
198
|
})] }),
|
|
186
199
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
187
200
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
188
|
-
children:
|
|
201
|
+
children: b("products.currency", "Currency")
|
|
189
202
|
}), /* @__PURE__ */ p("select", {
|
|
190
|
-
value:
|
|
191
|
-
onChange: (e) =>
|
|
192
|
-
...
|
|
203
|
+
value: R.currency,
|
|
204
|
+
onChange: (e) => z({
|
|
205
|
+
...R,
|
|
193
206
|
currency: e.target.value
|
|
194
207
|
}),
|
|
195
208
|
className: "w-full px-3 py-2 text-sm rounded-md border border-default bg-surface text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
@@ -218,29 +231,29 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
218
231
|
className: "mt-3",
|
|
219
232
|
children: [/* @__PURE__ */ p("label", {
|
|
220
233
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
221
|
-
children: [/* @__PURE__ */ f(
|
|
234
|
+
children: [/* @__PURE__ */ f(o, {
|
|
222
235
|
size: 12,
|
|
223
236
|
className: "inline mr-1"
|
|
224
|
-
}),
|
|
225
|
-
}),
|
|
237
|
+
}), b("products.featuresQuotas", "Features / Quotas")]
|
|
238
|
+
}), C.length > 0 ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("div", {
|
|
226
239
|
className: "space-y-1.5 max-h-32 overflow-y-auto",
|
|
227
|
-
children:
|
|
228
|
-
let t =
|
|
240
|
+
children: C.map((e) => {
|
|
241
|
+
let t = R.quotas.some((t) => t.quotaId === e.id);
|
|
229
242
|
return /* @__PURE__ */ p("label", {
|
|
230
243
|
className: "flex items-center gap-2 text-xs text-text-primary cursor-pointer hover:bg-bg-sunken/50 px-2 py-1 rounded",
|
|
231
244
|
children: [/* @__PURE__ */ f("input", {
|
|
232
245
|
type: "checkbox",
|
|
233
246
|
checked: t,
|
|
234
247
|
onChange: (t) => {
|
|
235
|
-
t.target.checked ?
|
|
236
|
-
...
|
|
237
|
-
quotas: [...
|
|
248
|
+
t.target.checked ? z({
|
|
249
|
+
...R,
|
|
250
|
+
quotas: [...R.quotas, {
|
|
238
251
|
quotaId: e.id,
|
|
239
252
|
quantity: 1
|
|
240
253
|
}]
|
|
241
|
-
}) :
|
|
242
|
-
...
|
|
243
|
-
quotas:
|
|
254
|
+
}) : z({
|
|
255
|
+
...R,
|
|
256
|
+
quotas: R.quotas.filter((t) => t.quotaId !== e.id)
|
|
244
257
|
});
|
|
245
258
|
},
|
|
246
259
|
className: "rounded border-default"
|
|
@@ -253,23 +266,23 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
253
266
|
/* @__PURE__ */ p("p", {
|
|
254
267
|
className: "text-xs text-text-secondary",
|
|
255
268
|
children: [
|
|
256
|
-
|
|
269
|
+
R.quotas.length,
|
|
257
270
|
" ",
|
|
258
|
-
|
|
271
|
+
b("products.featuresSelected", "feature(s) selected")
|
|
259
272
|
]
|
|
260
273
|
}),
|
|
261
274
|
/* @__PURE__ */ f("span", {
|
|
262
275
|
className: "text-xs text-text-secondary",
|
|
263
276
|
children: "|"
|
|
264
277
|
}),
|
|
265
|
-
|
|
278
|
+
P ? /* @__PURE__ */ p("div", {
|
|
266
279
|
className: "flex items-center gap-1.5",
|
|
267
280
|
children: [
|
|
268
281
|
/* @__PURE__ */ f("input", {
|
|
269
282
|
type: "text",
|
|
270
|
-
value:
|
|
271
|
-
onChange: (e) =>
|
|
272
|
-
placeholder:
|
|
283
|
+
value: I,
|
|
284
|
+
onChange: (e) => L(e.target.value),
|
|
285
|
+
placeholder: b("products.featureNamePlaceholder", "Feature name"),
|
|
273
286
|
className: "px-2 py-1 text-xs rounded border border-default bg-surface text-text-primary w-36",
|
|
274
287
|
onKeyDown: (e) => {
|
|
275
288
|
e.key === "Enter" && (e.preventDefault(), J());
|
|
@@ -278,38 +291,38 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
278
291
|
/* @__PURE__ */ f("button", {
|
|
279
292
|
type: "button",
|
|
280
293
|
onClick: J,
|
|
281
|
-
disabled:
|
|
294
|
+
disabled: M || !I.trim(),
|
|
282
295
|
className: "px-2 py-1 text-xs bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)] rounded hover:opacity-90 disabled:opacity-50",
|
|
283
|
-
children:
|
|
296
|
+
children: b("productCommon.add", "Add")
|
|
284
297
|
}),
|
|
285
298
|
/* @__PURE__ */ f("button", {
|
|
286
299
|
type: "button",
|
|
287
300
|
onClick: () => {
|
|
288
|
-
|
|
301
|
+
F(!1), L("");
|
|
289
302
|
},
|
|
290
303
|
className: "px-1.5 py-1 text-xs text-text-secondary hover:text-text-primary",
|
|
291
|
-
children:
|
|
304
|
+
children: b("productCommon.cancel", "Cancel")
|
|
292
305
|
})
|
|
293
306
|
]
|
|
294
307
|
}) : /* @__PURE__ */ f("button", {
|
|
295
308
|
type: "button",
|
|
296
|
-
onClick: () =>
|
|
309
|
+
onClick: () => F(!0),
|
|
297
310
|
className: "text-xs text-[var(--color-action-primary-bg)] hover:underline",
|
|
298
|
-
children:
|
|
311
|
+
children: b("products.createNewFeature", "+ Create new feature")
|
|
299
312
|
})
|
|
300
313
|
]
|
|
301
314
|
})] }) : /* @__PURE__ */ p("div", {
|
|
302
315
|
className: "text-xs text-text-secondary",
|
|
303
316
|
children: [
|
|
304
|
-
|
|
317
|
+
b("products.noFeaturesCreated", "No features created yet."),
|
|
305
318
|
" ",
|
|
306
|
-
|
|
319
|
+
P ? /* @__PURE__ */ p("div", {
|
|
307
320
|
className: "flex items-center gap-1.5 mt-1.5",
|
|
308
321
|
children: [
|
|
309
322
|
/* @__PURE__ */ f("input", {
|
|
310
323
|
type: "text",
|
|
311
|
-
value:
|
|
312
|
-
onChange: (e) =>
|
|
324
|
+
value: I,
|
|
325
|
+
onChange: (e) => L(e.target.value),
|
|
313
326
|
placeholder: "Feature name",
|
|
314
327
|
className: "px-2 py-1 text-xs rounded border border-default bg-surface text-text-primary w-36",
|
|
315
328
|
onKeyDown: (e) => {
|
|
@@ -319,14 +332,14 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
319
332
|
/* @__PURE__ */ f("button", {
|
|
320
333
|
type: "button",
|
|
321
334
|
onClick: J,
|
|
322
|
-
disabled:
|
|
335
|
+
disabled: M || !I.trim(),
|
|
323
336
|
className: "px-2 py-1 text-xs bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)] rounded hover:opacity-90 disabled:opacity-50",
|
|
324
337
|
children: "Add"
|
|
325
338
|
}),
|
|
326
339
|
/* @__PURE__ */ f("button", {
|
|
327
340
|
type: "button",
|
|
328
341
|
onClick: () => {
|
|
329
|
-
|
|
342
|
+
F(!1), L("");
|
|
330
343
|
},
|
|
331
344
|
className: "px-1.5 py-1 text-xs text-text-secondary hover:text-text-primary",
|
|
332
345
|
children: "Cancel"
|
|
@@ -334,9 +347,9 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
334
347
|
]
|
|
335
348
|
}) : /* @__PURE__ */ f("button", {
|
|
336
349
|
type: "button",
|
|
337
|
-
onClick: () =>
|
|
350
|
+
onClick: () => F(!0),
|
|
338
351
|
className: "text-[var(--color-action-primary-bg)] hover:underline",
|
|
339
|
-
children:
|
|
352
|
+
children: b("products.createYourFirstFeature", "Create your first feature")
|
|
340
353
|
})
|
|
341
354
|
]
|
|
342
355
|
})]
|
|
@@ -345,38 +358,38 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
345
358
|
className: "flex gap-2 mt-3",
|
|
346
359
|
children: [/* @__PURE__ */ p("button", {
|
|
347
360
|
type: "submit",
|
|
348
|
-
disabled:
|
|
361
|
+
disabled: M,
|
|
349
362
|
className: "\n inline-flex items-center gap-1.5 px-4 py-2\n bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)]\n rounded-md text-sm font-medium\n hover:opacity-90 transition-all duration-200\n disabled:opacity-50\n ",
|
|
350
|
-
children: [
|
|
363
|
+
children: [M && /* @__PURE__ */ f(s, {
|
|
351
364
|
size: 14,
|
|
352
365
|
className: "animate-spin"
|
|
353
|
-
}),
|
|
366
|
+
}), A ? b("products.updatePlan", "Update Plan") : b("products.createPlan", "Create Plan")]
|
|
354
367
|
}), /* @__PURE__ */ f("button", {
|
|
355
368
|
type: "button",
|
|
356
369
|
onClick: W,
|
|
357
370
|
className: "px-4 py-2 text-sm text-text-secondary hover:text-text-primary transition-colors",
|
|
358
|
-
children:
|
|
371
|
+
children: b("productCommon.cancel", "Cancel")
|
|
359
372
|
})]
|
|
360
373
|
})
|
|
361
374
|
]
|
|
362
375
|
}),
|
|
363
|
-
|
|
376
|
+
E && /* @__PURE__ */ f("div", {
|
|
364
377
|
className: "mb-4 p-3 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg text-sm text-[var(--color-status-error)]",
|
|
365
|
-
children:
|
|
378
|
+
children: E
|
|
366
379
|
}),
|
|
367
|
-
|
|
380
|
+
oe ? /* @__PURE__ */ p("div", {
|
|
368
381
|
className: "flex items-center justify-center py-8",
|
|
369
|
-
children: [/* @__PURE__ */ f(
|
|
382
|
+
children: [/* @__PURE__ */ f(s, {
|
|
370
383
|
size: 20,
|
|
371
384
|
className: "animate-spin text-text-secondary"
|
|
372
385
|
}), /* @__PURE__ */ f("span", {
|
|
373
386
|
className: "ml-2 text-sm text-text-secondary",
|
|
374
|
-
children:
|
|
387
|
+
children: b("products.loadingPlans", "Loading plans...")
|
|
375
388
|
})]
|
|
376
|
-
}) :
|
|
389
|
+
}) : x.length === 0 ? /* @__PURE__ */ f(te, {
|
|
377
390
|
illustration: "empty-data",
|
|
378
|
-
title:
|
|
379
|
-
description:
|
|
391
|
+
title: b("products.noPricingPlans", "No pricing plans yet"),
|
|
392
|
+
description: b("products.clickAddPlan", "Click \"Add Plan\" to create your first plan")
|
|
380
393
|
}) : /* @__PURE__ */ p("div", {
|
|
381
394
|
className: "space-y-6",
|
|
382
395
|
children: [Z.length > 0 && /* @__PURE__ */ p("div", {
|
|
@@ -401,13 +414,13 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
401
414
|
]
|
|
402
415
|
})]
|
|
403
416
|
}), (Q === "individual" || Z.length === 0 ? [{
|
|
404
|
-
label:
|
|
405
|
-
plans:
|
|
417
|
+
label: b("products.monthlyPlans", "Monthly Plans"),
|
|
418
|
+
plans: se
|
|
406
419
|
}, {
|
|
407
|
-
label:
|
|
408
|
-
plans:
|
|
420
|
+
label: b("products.yearlyPlans", "Yearly Plans"),
|
|
421
|
+
plans: ce
|
|
409
422
|
}] : [{
|
|
410
|
-
label:
|
|
423
|
+
label: b("products.enterprisePlans", "Enterprise Plans"),
|
|
411
424
|
plans: Z
|
|
412
425
|
}]).filter((e) => e.plans.length > 0).map((e) => /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h3", {
|
|
413
426
|
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider mb-3",
|
|
@@ -425,7 +438,7 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
425
438
|
children: [
|
|
426
439
|
n && /* @__PURE__ */ f("span", {
|
|
427
440
|
className: "absolute -top-2.5 left-1/2 -translate-x-1/2 px-3 py-0.5 text-xs font-semibold bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)] rounded-full",
|
|
428
|
-
children:
|
|
441
|
+
children: b("products.popular", "Popular")
|
|
429
442
|
}),
|
|
430
443
|
/* @__PURE__ */ p("div", {
|
|
431
444
|
className: "flex items-start justify-between mb-3",
|
|
@@ -434,13 +447,13 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
434
447
|
children: e.name
|
|
435
448
|
}), /* @__PURE__ */ f("span", {
|
|
436
449
|
className: `inline-flex items-center px-1.5 py-0.5 text-xs font-medium rounded-full mt-1 ${e.isActive ? "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]" : "bg-bg-sunken text-text-secondary"}`,
|
|
437
|
-
children: e.isActive ?
|
|
438
|
-
})] }), !
|
|
450
|
+
children: e.isActive ? b("products.statusActive", "Active") : b("products.statusInactive", "Inactive")
|
|
451
|
+
})] }), !y && /* @__PURE__ */ p("div", {
|
|
439
452
|
className: "flex items-center gap-0.5",
|
|
440
453
|
children: [/* @__PURE__ */ f("button", {
|
|
441
454
|
type: "button",
|
|
442
455
|
onClick: () => K(e),
|
|
443
|
-
title: e.isActive ?
|
|
456
|
+
title: e.isActive ? b("products.deactivate", "Deactivate") : b("products.activate", "Activate"),
|
|
444
457
|
className: "p-1.5 rounded-lg hover:bg-bg-sunken transition-colors text-text-secondary hover:text-text-primary",
|
|
445
458
|
children: e.isActive ? /* @__PURE__ */ f(u, {
|
|
446
459
|
size: 16,
|
|
@@ -449,9 +462,9 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
449
462
|
}), /* @__PURE__ */ f("button", {
|
|
450
463
|
type: "button",
|
|
451
464
|
onClick: () => q(e),
|
|
452
|
-
title:
|
|
465
|
+
title: b("products.edit", "Edit"),
|
|
453
466
|
className: "p-1.5 rounded-lg hover:bg-bg-sunken transition-colors text-text-secondary hover:text-text-primary",
|
|
454
|
-
children: /* @__PURE__ */ f(
|
|
467
|
+
children: /* @__PURE__ */ f(ee, { size: 14 })
|
|
455
468
|
})]
|
|
456
469
|
})]
|
|
457
470
|
}),
|
|
@@ -492,7 +505,7 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
492
505
|
className: "border-t border-border-seam pt-3",
|
|
493
506
|
children: /* @__PURE__ */ f("p", {
|
|
494
507
|
className: "text-xs text-text-secondary italic",
|
|
495
|
-
children:
|
|
508
|
+
children: b("products.noFeaturesAssigned", "No features assigned")
|
|
496
509
|
})
|
|
497
510
|
})
|
|
498
511
|
]
|
|
@@ -503,6 +516,6 @@ function x({ productId: x, productName: ne, readOnly: S = !1 }) {
|
|
|
503
516
|
]
|
|
504
517
|
});
|
|
505
518
|
}
|
|
506
|
-
export {
|
|
519
|
+
export { v as ProductPlans };
|
|
507
520
|
|
|
508
521
|
//# sourceMappingURL=ProductPlans.js.map
|