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.
Files changed (25) hide show
  1. package/dist/_chunks/{App-3CjSGQyL.js → App-DImBvISP.js} +59 -59
  2. package/dist/_chunks/{App-CKlB5p92.mjs → App-iNfbV7cz.mjs} +32 -32
  3. package/dist/_chunks/{CustomBlocksPage-CnJxygIw.js → CustomBlocksPage-Cj-0TTUs.js} +12 -12
  4. package/dist/_chunks/{LicensePage-vJxKYZGQ.js → LicensePage-CmvILX9m.js} +43 -43
  5. package/dist/_chunks/{LicensePage-B2STSez2.mjs → LicensePage-gLRoo8WJ.mjs} +38 -38
  6. package/dist/_chunks/{LiveCollaborationPanel-D70o6EGf.js → LiveCollaborationPanel-BFybu8h0.js} +7 -7
  7. package/dist/_chunks/{LiveCollaborationPanel-uLIJs5z_.mjs → LiveCollaborationPanel-CVgl4IyR.mjs} +3 -3
  8. package/dist/_chunks/{Settings-CdGL1OCi.mjs → Settings-ButYcfrm.mjs} +82 -82
  9. package/dist/_chunks/Settings-BzGqgrxD.js +440 -0
  10. package/dist/_chunks/{getTranslation--JcqVOd5.js → getTranslation-BADoesEn.js} +19120 -12315
  11. package/dist/_chunks/{getTranslation-bLklCCaI.mjs → getTranslation-D3h3Z3gU.mjs} +18708 -11903
  12. package/dist/_chunks/index-BXBnwuRw.js +2158 -0
  13. package/dist/_chunks/index-BvEdg518.mjs +2159 -0
  14. package/dist/_chunks/{index-CRALSDLD.js → index-DDFAuQNT.js} +181 -181
  15. package/dist/_chunks/{index-CdFFlQdx.mjs → index-DEi6nwfM.mjs} +33 -33
  16. package/dist/_chunks/{tools-uudZx91W.mjs → tools-BXzd0lx5.mjs} +3 -3
  17. package/dist/_chunks/{tools-BSMn5LLQ.js → tools-Q0uwDS9E.js} +10 -10
  18. package/dist/admin/index.js +1 -1
  19. package/dist/admin/index.mjs +2 -2
  20. package/dist/server/index.js +142 -135
  21. package/dist/server/index.mjs +142 -135
  22. package/package.json +7 -7
  23. package/dist/_chunks/Settings-CwSNO4_t.js +0 -440
  24. package/dist/_chunks/index-CAPc_Y1F.mjs +0 -2551
  25. 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, L as Loader, a as Box, A as Alert, F as Flex, T as Typography, B as Button, d as Badge, e as Accordion, g as getTranslation } from "./getTranslation-bLklCCaI.mjs";
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(Box)`
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(Box)`
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(Box)`
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(Flex)`
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(Loader, { children: t("license.loading", "Loading license information...") }) }) });
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(Box, { padding: 8, children: /* @__PURE__ */ jsx(Alert, { variant: "danger", title: "Error", closeLabel: "Close", children: error }) }) });
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(Flex, { justifyContent: "space-between", alignItems: "flex-start", children: [
181
- /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 1, alignItems: "flex-start", children: [
182
- /* @__PURE__ */ jsx(Typography, { variant: "alpha", fontWeight: "bold", children: t("license.title", "License Management") }),
183
- /* @__PURE__ */ jsx(Typography, { variant: "epsilon", textColor: "neutral600", children: t("license.subtitle", "View your Magic Editor X plugin license") })
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
- Button,
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(Box, { paddingTop: 6, paddingLeft: 6, paddingRight: 6, paddingBottom: 10, children: [
202
- isDemo ? /* @__PURE__ */ jsx(Alert, { 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(Alert, { 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(Alert, { 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(Box, { marginTop: 6, children: /* @__PURE__ */ jsx(LicenseKeyBanner, { children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", children: [
204
- /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
205
- /* @__PURE__ */ jsx(Typography, { 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(Typography, { style: { color: "white", fontFamily: "monospace", fontSize: "28px", fontWeight: "bold", wordBreak: "break-all", marginBottom: "16px" }, children: data.licenseKey }),
207
- /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
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
- Button,
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
- Button,
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(Flex, { direction: "column", gap: 2, alignItems: "flex-end", children: [
242
+ /* @__PURE__ */ jsxs(T, { direction: "column", gap: 2, alignItems: "flex-end", children: [
243
243
  /* @__PURE__ */ jsx(
244
- Badge,
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
- Badge,
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(Box, { marginTop: 6, children: /* @__PURE__ */ jsxs(Accordion.Root, { defaultValue: "account", collapsible: true, children: [
268
- /* @__PURE__ */ jsxs(Accordion.Item, { value: "account", children: [
269
- /* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(UserIcon, { style: { width: 16, height: 16 } }), children: t("license.section.account", "Account Information") }) }),
270
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(Box, { padding: 6, children: /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", children: [
271
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "200px" }, children: [
272
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.email", "Email Address") }),
273
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.email || t("license.notProvided", "Not provided") })
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(Box, { style: { flex: "1", minWidth: "200px" }, children: [
276
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.holder", "License Holder") }),
277
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.firstName && data.lastName ? `${data.firstName} ${data.lastName}` : t("license.notSpecified", "Not specified") })
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(Accordion.Item, { value: "collaborators", children: [
282
- /* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(UsersIcon, { style: { width: 16, height: 16 } }), children: t("license.section.collaborators", "Collaborator Limits") }) }),
283
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsxs(Box, { padding: 6, children: [
284
- /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", alignItems: "center", children: [
285
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "200px" }, children: [
286
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.currentUsage", "Current Usage") }),
287
- /* @__PURE__ */ jsxs(Typography, { variant: "omega", fontWeight: "semiBold", style: { fontSize: "24px" }, children: [
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(Box, { style: { flex: "1", minWidth: "200px" }, children: [
294
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.status", "Status") }),
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
- Badge,
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(Box, { marginTop: 4, padding: 4, background: "warning100", hasRadius: true, children: /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "warning700", children: t("license.upgradeMessage", "Upgrade your plan to add more collaborators. Visit https://store.magicdx.dev/") }) })
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(Accordion.Item, { value: "details", children: [
310
- /* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(ShieldCheckIcon, { style: { width: 16, height: 16 } }), children: t("license.section.details", "License Details") }) }),
311
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(Box, { padding: 6, children: /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", children: [
312
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "180px" }, children: [
313
- /* @__PURE__ */ jsx(Typography, { 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(Typography, { variant: "omega", fontWeight: "semiBold", children: data.expiresAt ? new Date(data.expiresAt).toLocaleDateString("en-US", {
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(Box, { style: { flex: "1", minWidth: "180px" }, children: [
321
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.deviceName", "Device Name") }),
322
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.deviceName || t("license.unknown", "Unknown") })
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(Accordion.Item, { value: "features", children: [
327
- /* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(SparklesIcon, { style: { width: 16, height: 16 } }), children: t("license.section.features", "Features & Capabilities") }) }),
328
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsxs(Box, { padding: 6, children: [
329
- /* @__PURE__ */ jsxs(Flex, { gap: 3, style: { marginBottom: "32px" }, children: [
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
- Badge,
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
- Badge,
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
- Badge,
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(Box, { padding: 5, background: "neutral100", hasRadius: true, children: [
383
- /* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", style: { marginBottom: "16px", display: "block" }, children: t("license.yourPlanIncludes", "Your Plan Includes:") }),
384
- /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
385
- /* @__PURE__ */ jsxs(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
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(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
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(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
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(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
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(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
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(Typography, { variant: "omega", style: { fontSize: "14px" }, children: [
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(Accordion.Item, { value: "status", children: [
416
- /* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(ChartBarIcon, { style: { width: 16, height: 16 } }), children: t("license.section.status", "System Status") }) }),
417
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(Box, { padding: 6, children: /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", children: [
418
- /* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "150px" }, children: [
419
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.licenseStatus", "License Status") }),
420
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.isActive ? t("license.active", "Active") : t("license.inactive", "Inactive") })
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(Box, { style: { flex: "1", minWidth: "150px" }, children: [
423
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.connection", "Connection") }),
424
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.isOnline ? t("license.online", "Online") : t("license.offline", "Offline") })
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(Box, { style: { flex: "1", minWidth: "150px" }, children: [
427
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.lastSync", "Last Sync") }),
428
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.lastPingAt ? new Date(data.lastPingAt).toLocaleTimeString() : t("license.never", "Never") })
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
  ] })