magic-editor-x 1.5.1 → 1.6.0
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/README.md +6 -110
- package/dist/{_chunks/App-iNfbV7cz.mjs → admin/App-BwMEZnS-.mjs} +35 -34
- package/dist/{_chunks/App-DImBvISP.js → admin/App-HNr2tizR.js} +65 -64
- package/dist/{_chunks/CustomBlocksPage-Cj-0TTUs.js → admin/CustomBlocksPage-BjcA7MGz.js} +13 -13
- package/dist/{_chunks/LicensePage-gLRoo8WJ.mjs → admin/LicensePage-D0DMTF41.mjs} +39 -38
- package/dist/{_chunks/LicensePage-CmvILX9m.js → admin/LicensePage-D0_9yPkw.js} +45 -44
- package/dist/{_chunks/LiveCollaborationPanel-BFybu8h0.js → admin/LiveCollaborationPanel-CZAbgAVr.js} +9 -8
- package/dist/{_chunks/LiveCollaborationPanel-CVgl4IyR.mjs → admin/LiveCollaborationPanel-D8z72afw.mjs} +4 -3
- package/dist/{_chunks/Settings-BzGqgrxD.js → admin/Settings-DRenvRcG.js} +90 -89
- package/dist/{_chunks/Settings-ButYcfrm.mjs → admin/Settings-DjyNURlS.mjs} +83 -82
- package/dist/{_chunks/getTranslation-D3h3Z3gU.mjs → admin/getTranslation-2OiEgVGt.mjs} +10593 -18925
- package/dist/{_chunks/getTranslation-BADoesEn.js → admin/getTranslation-DQ_WJ-7M.js} +11076 -19408
- package/dist/{_chunks/index-BXBnwuRw.js → admin/index-Bn2tfJrC.js} +382 -354
- package/dist/{_chunks/index-DDFAuQNT.js → admin/index-DAtClhqy.js} +184 -183
- package/dist/{_chunks/index-BvEdg518.mjs → admin/index-FVEbTfqO.mjs} +290 -262
- package/dist/{_chunks/index-DEi6nwfM.mjs → admin/index-gjWl-6E2.mjs} +34 -33
- package/dist/admin/index.js +3 -2
- package/dist/admin/index.mjs +2 -2
- package/dist/{_chunks/tools-BXzd0lx5.mjs → admin/tools-CzHTZaY_.mjs} +42 -39
- package/dist/{_chunks/tools-Q0uwDS9E.js → admin/tools-DALFhvPO.js} +49 -46
- package/dist/server/index.js +63511 -37933
- package/dist/server/index.mjs +63511 -37906
- package/package.json +43 -30
- /package/dist/{_chunks → admin}/CustomBlocksPage-COPOZ2-_.mjs +0 -0
- /package/dist/{_chunks → admin}/de-C_0Mj-Zo.mjs +0 -0
- /package/dist/{_chunks → admin}/de-DVNVpAt9.js +0 -0
- /package/dist/{_chunks → admin}/en-B7AAf1ie.mjs +0 -0
- /package/dist/{_chunks → admin}/en-C2hv5GsA.js +0 -0
- /package/dist/{_chunks → admin}/es-BzJqcIST.js +0 -0
- /package/dist/{_chunks → admin}/es-zdP8sd-f.mjs +0 -0
- /package/dist/{_chunks → admin}/fr-CtAgOgH1.mjs +0 -0
- /package/dist/{_chunks → admin}/fr-D3GwqAAJ.js +0 -0
- /package/dist/{style.css → admin/magic-editor-x.css} +0 -0
- /package/dist/{_chunks → admin}/pt-BmUw6YMP.mjs +0 -0
- /package/dist/{_chunks → admin}/pt-CFo0nTbj.js +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { k as kt, S, u as ud, C, A, a as Ct, N as Nr, d as dd, g as getTranslation } from "./getTranslation-2OiEgVGt.mjs";
|
|
4
4
|
import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
5
|
+
import { useIntl } from "react-intl";
|
|
5
6
|
import { ArrowPathIcon, DocumentDuplicateIcon, ArrowDownTrayIcon, UserIcon, UsersIcon, ShieldCheckIcon, SparklesIcon, ChartBarIcon } from "@heroicons/react/24/outline";
|
|
6
7
|
import styled, { css, keyframes } from "styled-components";
|
|
7
8
|
const theme = {
|
|
@@ -15,12 +16,12 @@ const shimmer = keyframes`
|
|
|
15
16
|
0% { background-position: -200% 0; }
|
|
16
17
|
100% { background-position: 200% 0; }
|
|
17
18
|
`;
|
|
18
|
-
const Container = styled(
|
|
19
|
+
const Container = styled(S)`
|
|
19
20
|
${css`animation: ${fadeIn} 0.5s;`}
|
|
20
21
|
max-width: 1400px;
|
|
21
22
|
margin: 0 auto;
|
|
22
23
|
`;
|
|
23
|
-
const StickySaveBar = styled(
|
|
24
|
+
const StickySaveBar = styled(S)`
|
|
24
25
|
position: sticky;
|
|
25
26
|
top: 0;
|
|
26
27
|
z-index: 10;
|
|
@@ -28,7 +29,7 @@ const StickySaveBar = styled(R)`
|
|
|
28
29
|
border-bottom: 1px solid ${(props) => props.theme.colors.neutral200};
|
|
29
30
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
30
31
|
`;
|
|
31
|
-
const LicenseKeyBanner = styled(
|
|
32
|
+
const LicenseKeyBanner = styled(S)`
|
|
32
33
|
background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
|
|
33
34
|
border-radius: ${theme.borderRadius.lg};
|
|
34
35
|
padding: 28px 32px;
|
|
@@ -61,7 +62,7 @@ const LicenseKeyBanner = styled(R)`
|
|
|
61
62
|
z-index: 1;
|
|
62
63
|
}
|
|
63
64
|
`;
|
|
64
|
-
const LoaderContainer = styled(
|
|
65
|
+
const LoaderContainer = styled(C)`
|
|
65
66
|
min-height: 400px;
|
|
66
67
|
align-items: center;
|
|
67
68
|
justify-content: center;
|
|
@@ -166,10 +167,10 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
166
167
|
fetchLicenseStatus();
|
|
167
168
|
}, []);
|
|
168
169
|
if (loading) {
|
|
169
|
-
return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(LoaderContainer, { children: /* @__PURE__ */ jsx(
|
|
170
|
+
return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(LoaderContainer, { children: /* @__PURE__ */ jsx(kt, { children: t("license.loading", "Loading license information...") }) }) });
|
|
170
171
|
}
|
|
171
172
|
if (error) {
|
|
172
|
-
return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(
|
|
173
|
+
return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(S, { padding: 8, children: /* @__PURE__ */ jsx(ud, { variant: "danger", title: "Error", closeLabel: "Close", children: error }) }) });
|
|
173
174
|
}
|
|
174
175
|
const isValid = licenseData?.valid;
|
|
175
176
|
const isDemo = licenseData?.demo;
|
|
@@ -177,13 +178,13 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
177
178
|
const data = licenseData?.data || {};
|
|
178
179
|
const collaborators = limits?.limits?.collaborators || { current: 0, max: 2, unlimited: false };
|
|
179
180
|
return /* @__PURE__ */ jsxs(Container, { children: [
|
|
180
|
-
/* @__PURE__ */ jsx(StickySaveBar, { paddingTop: 5, paddingBottom: 5, paddingLeft: 6, paddingRight: 6, children: /* @__PURE__ */ jsxs(
|
|
181
|
-
/* @__PURE__ */ jsxs(
|
|
182
|
-
/* @__PURE__ */ jsx(
|
|
183
|
-
/* @__PURE__ */ jsx(
|
|
181
|
+
/* @__PURE__ */ jsx(StickySaveBar, { paddingTop: 5, paddingBottom: 5, paddingLeft: 6, paddingRight: 6, children: /* @__PURE__ */ jsxs(C, { justifyContent: "space-between", alignItems: "flex-start", children: [
|
|
182
|
+
/* @__PURE__ */ jsxs(C, { direction: "column", gap: 1, alignItems: "flex-start", children: [
|
|
183
|
+
/* @__PURE__ */ jsx(A, { variant: "alpha", fontWeight: "bold", children: t("license.title", "License Management") }),
|
|
184
|
+
/* @__PURE__ */ jsx(A, { variant: "epsilon", textColor: "neutral600", children: t("license.subtitle", "View your Magic Editor X plugin license") })
|
|
184
185
|
] }),
|
|
185
186
|
/* @__PURE__ */ jsx(
|
|
186
|
-
|
|
187
|
+
Ct,
|
|
187
188
|
{
|
|
188
189
|
startIcon: /* @__PURE__ */ jsx(ArrowPathIcon, { style: { width: 20, height: 20 } }),
|
|
189
190
|
onClick: fetchLicenseStatus,
|
|
@@ -198,15 +199,15 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
198
199
|
}
|
|
199
200
|
)
|
|
200
201
|
] }) }),
|
|
201
|
-
/* @__PURE__ */ jsxs(
|
|
202
|
-
isDemo ? /* @__PURE__ */ jsx(
|
|
203
|
-
data.licenseKey && /* @__PURE__ */ jsx(
|
|
204
|
-
/* @__PURE__ */ jsxs(
|
|
205
|
-
/* @__PURE__ */ jsx(
|
|
206
|
-
/* @__PURE__ */ jsx(
|
|
207
|
-
/* @__PURE__ */ jsxs(
|
|
202
|
+
/* @__PURE__ */ jsxs(S, { paddingTop: 6, paddingLeft: 6, paddingRight: 6, paddingBottom: 10, children: [
|
|
203
|
+
isDemo ? /* @__PURE__ */ jsx(ud, { variant: "warning", title: t("license.alert.free", "FREE Mode"), closeLabel: "Close", children: t("license.alert.free.message", "You're using the FREE version with 2 collaborators. Upgrade for more features.") }) : isValid ? /* @__PURE__ */ jsx(ud, { variant: "success", title: t("license.alert.active", "License Active"), closeLabel: "Close", children: t("license.alert.active.message", "Your license is active and all features are unlocked.") }) : /* @__PURE__ */ jsx(ud, { variant: "danger", title: t("license.alert.issue", "License Issue"), closeLabel: "Close", children: t("license.alert.issue.message", "There's an issue with your license. Please check your license status.") }),
|
|
204
|
+
data.licenseKey && /* @__PURE__ */ jsx(S, { marginTop: 6, children: /* @__PURE__ */ jsx(LicenseKeyBanner, { children: /* @__PURE__ */ jsxs(C, { justifyContent: "space-between", alignItems: "flex-start", children: [
|
|
205
|
+
/* @__PURE__ */ jsxs(S, { style: { flex: 1 }, children: [
|
|
206
|
+
/* @__PURE__ */ jsx(A, { variant: "pi", style: { color: "rgba(255,255,255,0.8)", marginBottom: "12px", textTransform: "uppercase", fontSize: "11px", letterSpacing: "0.5px", display: "block" }, children: t("license.key", "License Key") }),
|
|
207
|
+
/* @__PURE__ */ jsx(A, { style: { color: "white", fontFamily: "monospace", fontSize: "28px", fontWeight: "bold", wordBreak: "break-all", marginBottom: "16px" }, children: data.licenseKey }),
|
|
208
|
+
/* @__PURE__ */ jsxs(C, { gap: 2, children: [
|
|
208
209
|
/* @__PURE__ */ jsx(
|
|
209
|
-
|
|
210
|
+
Ct,
|
|
210
211
|
{
|
|
211
212
|
onClick: handleCopyLicenseKey,
|
|
212
213
|
startIcon: /* @__PURE__ */ jsx(DocumentDuplicateIcon, { style: { width: 16, height: 16 } }),
|
|
@@ -222,7 +223,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
222
223
|
}
|
|
223
224
|
),
|
|
224
225
|
/* @__PURE__ */ jsx(
|
|
225
|
-
|
|
226
|
+
Ct,
|
|
226
227
|
{
|
|
227
228
|
onClick: handleDownloadLicenseKey,
|
|
228
229
|
startIcon: /* @__PURE__ */ jsx(ArrowDownTrayIcon, { style: { width: 16, height: 16 } }),
|
|
@@ -239,9 +240,9 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
239
240
|
)
|
|
240
241
|
] })
|
|
241
242
|
] }),
|
|
242
|
-
/* @__PURE__ */ jsxs(
|
|
243
|
+
/* @__PURE__ */ jsxs(C, { direction: "column", gap: 2, alignItems: "flex-end", children: [
|
|
243
244
|
/* @__PURE__ */ jsx(
|
|
244
|
-
|
|
245
|
+
Nr,
|
|
245
246
|
{
|
|
246
247
|
backgroundColor: data.isActive ? "success100" : "danger100",
|
|
247
248
|
textColor: data.isActive ? "success700" : "danger700",
|
|
@@ -250,7 +251,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
250
251
|
}
|
|
251
252
|
),
|
|
252
253
|
/* @__PURE__ */ jsx(
|
|
253
|
-
|
|
254
|
+
Nr,
|
|
254
255
|
{
|
|
255
256
|
style: {
|
|
256
257
|
fontSize: "11px",
|
|
@@ -264,36 +265,36 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
264
265
|
)
|
|
265
266
|
] })
|
|
266
267
|
] }) }) }),
|
|
267
|
-
/* @__PURE__ */ jsx(
|
|
268
|
-
/* @__PURE__ */ jsxs(
|
|
269
|
-
/* @__PURE__ */ jsx(
|
|
270
|
-
/* @__PURE__ */ jsx(
|
|
271
|
-
/* @__PURE__ */ jsxs(
|
|
272
|
-
/* @__PURE__ */ jsx(
|
|
273
|
-
/* @__PURE__ */ jsx(
|
|
268
|
+
/* @__PURE__ */ jsx(S, { marginTop: 6, children: /* @__PURE__ */ jsxs(dd.Root, { defaultValue: "account", collapsible: true, children: [
|
|
269
|
+
/* @__PURE__ */ jsxs(dd.Item, { value: "account", children: [
|
|
270
|
+
/* @__PURE__ */ jsx(dd.Header, { children: /* @__PURE__ */ jsx(dd.Trigger, { icon: () => /* @__PURE__ */ jsx(UserIcon, { style: { width: 16, height: 16 } }), children: t("license.section.account", "Account Information") }) }),
|
|
271
|
+
/* @__PURE__ */ jsx(dd.Content, { children: /* @__PURE__ */ jsx(S, { padding: 6, children: /* @__PURE__ */ jsxs(C, { gap: 8, wrap: "wrap", children: [
|
|
272
|
+
/* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "200px" }, children: [
|
|
273
|
+
/* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.email", "Email Address") }),
|
|
274
|
+
/* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.email || t("license.notProvided", "Not provided") })
|
|
274
275
|
] }),
|
|
275
|
-
/* @__PURE__ */ jsxs(
|
|
276
|
-
/* @__PURE__ */ jsx(
|
|
277
|
-
/* @__PURE__ */ jsx(
|
|
276
|
+
/* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "200px" }, children: [
|
|
277
|
+
/* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.holder", "License Holder") }),
|
|
278
|
+
/* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.firstName && data.lastName ? `${data.firstName} ${data.lastName}` : t("license.notSpecified", "Not specified") })
|
|
278
279
|
] })
|
|
279
280
|
] }) }) })
|
|
280
281
|
] }),
|
|
281
|
-
/* @__PURE__ */ jsxs(
|
|
282
|
-
/* @__PURE__ */ jsx(
|
|
283
|
-
/* @__PURE__ */ jsx(
|
|
284
|
-
/* @__PURE__ */ jsxs(
|
|
285
|
-
/* @__PURE__ */ jsxs(
|
|
286
|
-
/* @__PURE__ */ jsx(
|
|
287
|
-
/* @__PURE__ */ jsxs(
|
|
282
|
+
/* @__PURE__ */ jsxs(dd.Item, { value: "collaborators", children: [
|
|
283
|
+
/* @__PURE__ */ jsx(dd.Header, { children: /* @__PURE__ */ jsx(dd.Trigger, { icon: () => /* @__PURE__ */ jsx(UsersIcon, { style: { width: 16, height: 16 } }), children: t("license.section.collaborators", "Collaborator Limits") }) }),
|
|
284
|
+
/* @__PURE__ */ jsx(dd.Content, { children: /* @__PURE__ */ jsxs(S, { padding: 6, children: [
|
|
285
|
+
/* @__PURE__ */ jsxs(C, { gap: 8, wrap: "wrap", alignItems: "center", children: [
|
|
286
|
+
/* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "200px" }, children: [
|
|
287
|
+
/* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.currentUsage", "Current Usage") }),
|
|
288
|
+
/* @__PURE__ */ jsxs(A, { variant: "omega", fontWeight: "semiBold", style: { fontSize: "24px" }, children: [
|
|
288
289
|
collaborators.current,
|
|
289
290
|
" / ",
|
|
290
291
|
collaborators.unlimited ? t("license.unlimited", "Unlimited") : collaborators.max
|
|
291
292
|
] })
|
|
292
293
|
] }),
|
|
293
|
-
/* @__PURE__ */ jsxs(
|
|
294
|
-
/* @__PURE__ */ jsx(
|
|
294
|
+
/* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "200px" }, children: [
|
|
295
|
+
/* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.status", "Status") }),
|
|
295
296
|
/* @__PURE__ */ jsx(
|
|
296
|
-
|
|
297
|
+
Nr,
|
|
297
298
|
{
|
|
298
299
|
backgroundColor: collaborators.canAdd ? "success100" : "danger100",
|
|
299
300
|
textColor: collaborators.canAdd ? "success700" : "danger700",
|
|
@@ -303,32 +304,32 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
303
304
|
)
|
|
304
305
|
] })
|
|
305
306
|
] }),
|
|
306
|
-
!collaborators.canAdd && !collaborators.unlimited && /* @__PURE__ */ jsx(
|
|
307
|
+
!collaborators.canAdd && !collaborators.unlimited && /* @__PURE__ */ jsx(S, { marginTop: 4, padding: 4, background: "warning100", hasRadius: true, children: /* @__PURE__ */ jsx(A, { variant: "omega", textColor: "warning700", children: t("license.upgradeMessage", "Upgrade your plan to add more collaborators. Visit https://store.magicdx.dev/") }) })
|
|
307
308
|
] }) })
|
|
308
309
|
] }),
|
|
309
|
-
/* @__PURE__ */ jsxs(
|
|
310
|
-
/* @__PURE__ */ jsx(
|
|
311
|
-
/* @__PURE__ */ jsx(
|
|
312
|
-
/* @__PURE__ */ jsxs(
|
|
313
|
-
/* @__PURE__ */ jsx(
|
|
314
|
-
/* @__PURE__ */ jsx(
|
|
310
|
+
/* @__PURE__ */ jsxs(dd.Item, { value: "details", children: [
|
|
311
|
+
/* @__PURE__ */ jsx(dd.Header, { children: /* @__PURE__ */ jsx(dd.Trigger, { icon: () => /* @__PURE__ */ jsx(ShieldCheckIcon, { style: { width: 16, height: 16 } }), children: t("license.section.details", "License Details") }) }),
|
|
312
|
+
/* @__PURE__ */ jsx(dd.Content, { children: /* @__PURE__ */ jsx(S, { padding: 6, children: /* @__PURE__ */ jsxs(C, { gap: 8, wrap: "wrap", children: [
|
|
313
|
+
/* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "180px" }, children: [
|
|
314
|
+
/* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: data.isExpired ? t("license.expiredOn", "Expired On") : t("license.expiresOn", "Expires On") }),
|
|
315
|
+
/* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.expiresAt ? new Date(data.expiresAt).toLocaleDateString("en-US", {
|
|
315
316
|
year: "numeric",
|
|
316
317
|
month: "long",
|
|
317
318
|
day: "numeric"
|
|
318
319
|
}) : t("license.never", "Never") })
|
|
319
320
|
] }),
|
|
320
|
-
/* @__PURE__ */ jsxs(
|
|
321
|
-
/* @__PURE__ */ jsx(
|
|
322
|
-
/* @__PURE__ */ jsx(
|
|
321
|
+
/* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "180px" }, children: [
|
|
322
|
+
/* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.deviceName", "Device Name") }),
|
|
323
|
+
/* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.deviceName || t("license.unknown", "Unknown") })
|
|
323
324
|
] })
|
|
324
325
|
] }) }) })
|
|
325
326
|
] }),
|
|
326
|
-
/* @__PURE__ */ jsxs(
|
|
327
|
-
/* @__PURE__ */ jsx(
|
|
328
|
-
/* @__PURE__ */ jsx(
|
|
329
|
-
/* @__PURE__ */ jsxs(
|
|
327
|
+
/* @__PURE__ */ jsxs(dd.Item, { value: "features", children: [
|
|
328
|
+
/* @__PURE__ */ jsx(dd.Header, { children: /* @__PURE__ */ jsx(dd.Trigger, { icon: () => /* @__PURE__ */ jsx(SparklesIcon, { style: { width: 16, height: 16 } }), children: t("license.section.features", "Features & Capabilities") }) }),
|
|
329
|
+
/* @__PURE__ */ jsx(dd.Content, { children: /* @__PURE__ */ jsxs(S, { padding: 6, children: [
|
|
330
|
+
/* @__PURE__ */ jsxs(C, { gap: 3, style: { marginBottom: "32px" }, children: [
|
|
330
331
|
/* @__PURE__ */ jsxs(
|
|
331
|
-
|
|
332
|
+
Nr,
|
|
332
333
|
{
|
|
333
334
|
backgroundColor: tier === "free" ? "success100" : "neutral100",
|
|
334
335
|
textColor: tier === "free" ? "success700" : "neutral600",
|
|
@@ -345,7 +346,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
345
346
|
}
|
|
346
347
|
),
|
|
347
348
|
/* @__PURE__ */ jsxs(
|
|
348
|
-
|
|
349
|
+
Nr,
|
|
349
350
|
{
|
|
350
351
|
backgroundColor: tier === "premium" ? "primary100" : "neutral100",
|
|
351
352
|
textColor: tier === "premium" ? "primary700" : "neutral600",
|
|
@@ -362,7 +363,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
362
363
|
}
|
|
363
364
|
),
|
|
364
365
|
/* @__PURE__ */ jsxs(
|
|
365
|
-
|
|
366
|
+
Nr,
|
|
366
367
|
{
|
|
367
368
|
backgroundColor: tier === "advanced" || tier === "enterprise" ? "secondary100" : "neutral100",
|
|
368
369
|
textColor: tier === "advanced" || tier === "enterprise" ? "secondary700" : "neutral600",
|
|
@@ -379,31 +380,31 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
379
380
|
}
|
|
380
381
|
)
|
|
381
382
|
] }),
|
|
382
|
-
/* @__PURE__ */ jsxs(
|
|
383
|
-
/* @__PURE__ */ jsx(
|
|
384
|
-
/* @__PURE__ */ jsxs(
|
|
385
|
-
/* @__PURE__ */ jsxs(
|
|
383
|
+
/* @__PURE__ */ jsxs(S, { padding: 5, background: "neutral100", hasRadius: true, children: [
|
|
384
|
+
/* @__PURE__ */ jsx(A, { variant: "delta", fontWeight: "bold", style: { marginBottom: "16px", display: "block" }, children: t("license.yourPlanIncludes", "Your Plan Includes:") }),
|
|
385
|
+
/* @__PURE__ */ jsxs(C, { direction: "column", gap: 2, children: [
|
|
386
|
+
/* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
|
|
386
387
|
"[OK] ",
|
|
387
388
|
t("license.feature.fullAccess", "Full Editor Access (all tools)")
|
|
388
389
|
] }),
|
|
389
|
-
/* @__PURE__ */ jsxs(
|
|
390
|
+
/* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
|
|
390
391
|
"[OK] ",
|
|
391
392
|
t("license.feature.realtimeCollab", "Real-Time Collaboration")
|
|
392
393
|
] }),
|
|
393
|
-
/* @__PURE__ */ jsxs(
|
|
394
|
+
/* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
|
|
394
395
|
"[OK] ",
|
|
395
396
|
collaborators.unlimited ? t("license.feature.collaboratorsUnlimited", "Unlimited Collaborators") : t("license.feature.collaborators", "{count} Collaborator(s)", { count: collaborators.max })
|
|
396
397
|
] }),
|
|
397
398
|
(tier === "premium" || tier === "advanced" || tier === "enterprise") && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
398
|
-
/* @__PURE__ */ jsxs(
|
|
399
|
+
/* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
|
|
399
400
|
"[OK] ",
|
|
400
401
|
t("license.feature.aiAssistant", "AI Assistant (Usage-based)")
|
|
401
402
|
] }),
|
|
402
|
-
/* @__PURE__ */ jsxs(
|
|
403
|
+
/* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
|
|
403
404
|
"[OK] ",
|
|
404
405
|
t("license.feature.versionHistory", "Version History")
|
|
405
406
|
] }),
|
|
406
|
-
/* @__PURE__ */ jsxs(
|
|
407
|
+
/* @__PURE__ */ jsxs(A, { variant: "omega", style: { fontSize: "14px" }, children: [
|
|
407
408
|
"[OK] ",
|
|
408
409
|
t("license.feature.prioritySupport", "Priority Support")
|
|
409
410
|
] })
|
|
@@ -412,20 +413,20 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
412
413
|
] })
|
|
413
414
|
] }) })
|
|
414
415
|
] }),
|
|
415
|
-
/* @__PURE__ */ jsxs(
|
|
416
|
-
/* @__PURE__ */ jsx(
|
|
417
|
-
/* @__PURE__ */ jsx(
|
|
418
|
-
/* @__PURE__ */ jsxs(
|
|
419
|
-
/* @__PURE__ */ jsx(
|
|
420
|
-
/* @__PURE__ */ jsx(
|
|
416
|
+
/* @__PURE__ */ jsxs(dd.Item, { value: "status", children: [
|
|
417
|
+
/* @__PURE__ */ jsx(dd.Header, { children: /* @__PURE__ */ jsx(dd.Trigger, { icon: () => /* @__PURE__ */ jsx(ChartBarIcon, { style: { width: 16, height: 16 } }), children: t("license.section.status", "System Status") }) }),
|
|
418
|
+
/* @__PURE__ */ jsx(dd.Content, { children: /* @__PURE__ */ jsx(S, { padding: 6, children: /* @__PURE__ */ jsxs(C, { gap: 8, wrap: "wrap", children: [
|
|
419
|
+
/* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "150px" }, children: [
|
|
420
|
+
/* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.licenseStatus", "License Status") }),
|
|
421
|
+
/* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.isActive ? t("license.active", "Active") : t("license.inactive", "Inactive") })
|
|
421
422
|
] }),
|
|
422
|
-
/* @__PURE__ */ jsxs(
|
|
423
|
-
/* @__PURE__ */ jsx(
|
|
424
|
-
/* @__PURE__ */ jsx(
|
|
423
|
+
/* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "150px" }, children: [
|
|
424
|
+
/* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.connection", "Connection") }),
|
|
425
|
+
/* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.isOnline ? t("license.online", "Online") : t("license.offline", "Offline") })
|
|
425
426
|
] }),
|
|
426
|
-
/* @__PURE__ */ jsxs(
|
|
427
|
-
/* @__PURE__ */ jsx(
|
|
428
|
-
/* @__PURE__ */ jsx(
|
|
427
|
+
/* @__PURE__ */ jsxs(S, { style: { flex: "1", minWidth: "150px" }, children: [
|
|
428
|
+
/* @__PURE__ */ jsx(A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.lastSync", "Last Sync") }),
|
|
429
|
+
/* @__PURE__ */ jsx(A, { variant: "omega", fontWeight: "semiBold", children: data.lastPingAt ? new Date(data.lastPingAt).toLocaleTimeString() : t("license.never", "Never") })
|
|
429
430
|
] })
|
|
430
431
|
] }) }) })
|
|
431
432
|
] })
|