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