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.
Files changed (35) hide show
  1. package/README.md +6 -110
  2. package/dist/{_chunks/App-iNfbV7cz.mjs → admin/App-BwMEZnS-.mjs} +35 -34
  3. package/dist/{_chunks/App-DImBvISP.js → admin/App-HNr2tizR.js} +65 -64
  4. package/dist/{_chunks/CustomBlocksPage-Cj-0TTUs.js → admin/CustomBlocksPage-BjcA7MGz.js} +13 -13
  5. package/dist/{_chunks/LicensePage-gLRoo8WJ.mjs → admin/LicensePage-D0DMTF41.mjs} +39 -38
  6. package/dist/{_chunks/LicensePage-CmvILX9m.js → admin/LicensePage-D0_9yPkw.js} +45 -44
  7. package/dist/{_chunks/LiveCollaborationPanel-BFybu8h0.js → admin/LiveCollaborationPanel-CZAbgAVr.js} +9 -8
  8. package/dist/{_chunks/LiveCollaborationPanel-CVgl4IyR.mjs → admin/LiveCollaborationPanel-D8z72afw.mjs} +4 -3
  9. package/dist/{_chunks/Settings-BzGqgrxD.js → admin/Settings-DRenvRcG.js} +90 -89
  10. package/dist/{_chunks/Settings-ButYcfrm.mjs → admin/Settings-DjyNURlS.mjs} +83 -82
  11. package/dist/{_chunks/getTranslation-D3h3Z3gU.mjs → admin/getTranslation-2OiEgVGt.mjs} +10593 -18925
  12. package/dist/{_chunks/getTranslation-BADoesEn.js → admin/getTranslation-DQ_WJ-7M.js} +11076 -19408
  13. package/dist/{_chunks/index-BXBnwuRw.js → admin/index-Bn2tfJrC.js} +382 -354
  14. package/dist/{_chunks/index-DDFAuQNT.js → admin/index-DAtClhqy.js} +184 -183
  15. package/dist/{_chunks/index-BvEdg518.mjs → admin/index-FVEbTfqO.mjs} +290 -262
  16. package/dist/{_chunks/index-DEi6nwfM.mjs → admin/index-gjWl-6E2.mjs} +34 -33
  17. package/dist/admin/index.js +3 -2
  18. package/dist/admin/index.mjs +2 -2
  19. package/dist/{_chunks/tools-BXzd0lx5.mjs → admin/tools-CzHTZaY_.mjs} +42 -39
  20. package/dist/{_chunks/tools-Q0uwDS9E.js → admin/tools-DALFhvPO.js} +49 -46
  21. package/dist/server/index.js +63511 -37933
  22. package/dist/server/index.mjs +63511 -37906
  23. package/package.json +43 -30
  24. /package/dist/{_chunks → admin}/CustomBlocksPage-COPOZ2-_.mjs +0 -0
  25. /package/dist/{_chunks → admin}/de-C_0Mj-Zo.mjs +0 -0
  26. /package/dist/{_chunks → admin}/de-DVNVpAt9.js +0 -0
  27. /package/dist/{_chunks → admin}/en-B7AAf1ie.mjs +0 -0
  28. /package/dist/{_chunks → admin}/en-C2hv5GsA.js +0 -0
  29. /package/dist/{_chunks → admin}/es-BzJqcIST.js +0 -0
  30. /package/dist/{_chunks → admin}/es-zdP8sd-f.mjs +0 -0
  31. /package/dist/{_chunks → admin}/fr-CtAgOgH1.mjs +0 -0
  32. /package/dist/{_chunks → admin}/fr-D3GwqAAJ.js +0 -0
  33. /package/dist/{style.css → admin/magic-editor-x.css} +0 -0
  34. /package/dist/{_chunks → admin}/pt-BmUw6YMP.mjs +0 -0
  35. /package/dist/{_chunks → admin}/pt-CFo0nTbj.js +0 -0
@@ -1,6 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect, useMemo } from "react";
3
- import { u as useIntl, T, g as getTranslation } from "./getTranslation-D3h3Z3gU.mjs";
3
+ import { useIntl } from "react-intl";
4
+ import { C, g as getTranslation } from "./getTranslation-2OiEgVGt.mjs";
4
5
  import styled, { css, keyframes } from "styled-components";
5
6
  const pulse = keyframes`
6
7
  0%, 100% {
@@ -192,7 +193,7 @@ const LiveCollaborationPanel = ({ documentId, model, document }) => {
192
193
  const isConnected = status === "connected";
193
194
  return {
194
195
  title: t("collab.title", "Live Collaboration"),
195
- content: /* @__PURE__ */ jsxs(T, { direction: "column", gap: 4, alignItems: "stretch", style: { width: "100%" }, children: [
196
+ content: /* @__PURE__ */ jsxs(C, { direction: "column", gap: 4, alignItems: "stretch", style: { width: "100%" }, children: [
196
197
  /* @__PURE__ */ jsxs(StatusCard, { $status: status, children: [
197
198
  /* @__PURE__ */ jsx(StatusDot, { $status: status }),
198
199
  /* @__PURE__ */ jsxs(StatusText, { children: [
@@ -202,7 +203,7 @@ const LiveCollaborationPanel = ({ documentId, model, document }) => {
202
203
  ] }),
203
204
  isConnected && peers.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
204
205
  /* @__PURE__ */ jsx(SectionTitle, { children: t("collab.activePeers", "Active Collaborators ({count})", { count: peers.length }) }),
205
- /* @__PURE__ */ jsx(T, { direction: "column", gap: 2, alignItems: "stretch", children: peers.map((peer, idx) => /* @__PURE__ */ jsxs(PeerItem, { children: [
206
+ /* @__PURE__ */ jsx(C, { direction: "column", gap: 2, alignItems: "stretch", children: peers.map((peer, idx) => /* @__PURE__ */ jsxs(PeerItem, { children: [
206
207
  /* @__PURE__ */ jsx(PeerAvatar, { $color: PEER_COLORS[idx % PEER_COLORS.length], children: getPeerInitials(peer) }),
207
208
  /* @__PURE__ */ jsxs(PeerInfo, { children: [
208
209
  /* @__PURE__ */ jsx(PeerName, { children: getPeerName(peer, t) }),
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const m = require("react");
5
- const getTranslation = require("./getTranslation-BADoesEn.js");
4
+ const s = require("react");
5
+ const getTranslation = require("./getTranslation-DQ_WJ-7M.js");
6
6
  const admin = require("@strapi/strapi/admin");
7
+ const reactIntl = require("react-intl");
7
8
  const outline = require("@heroicons/react/24/outline");
8
9
  const styled = require("styled-components");
9
10
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
@@ -19,12 +20,12 @@ const shimmer = styled.keyframes`
19
20
  0% { background-position: -200% 0; }
20
21
  100% { background-position: 200% 0; }
21
22
  `;
22
- const Container = styled__default.default(getTranslation.R)`
23
+ const Container = styled__default.default(getTranslation.S)`
23
24
  ${styled.css`animation: ${fadeIn} 0.5s;`}
24
25
  max-width: 1400px;
25
26
  margin: 0 auto;
26
27
  `;
27
- const StickySaveBar = styled__default.default(getTranslation.R)`
28
+ const StickySaveBar = styled__default.default(getTranslation.S)`
28
29
  position: sticky;
29
30
  top: 0;
30
31
  z-index: 10;
@@ -32,7 +33,7 @@ const StickySaveBar = styled__default.default(getTranslation.R)`
32
33
  border-bottom: 1px solid ${(props) => props.theme.colors.neutral200};
33
34
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
34
35
  `;
35
- const LicenseKeyBanner = styled__default.default(getTranslation.R)`
36
+ const LicenseKeyBanner = styled__default.default(getTranslation.S)`
36
37
  background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
37
38
  border-radius: ${theme.borderRadius.lg};
38
39
  padding: 28px 32px;
@@ -65,7 +66,7 @@ const LicenseKeyBanner = styled__default.default(getTranslation.R)`
65
66
  z-index: 1;
66
67
  }
67
68
  `;
68
- const LoaderContainer = styled__default.default(getTranslation.T)`
69
+ const LoaderContainer = styled__default.default(getTranslation.C)`
69
70
  min-height: 400px;
70
71
  align-items: center;
71
72
  justify-content: center;
@@ -73,14 +74,14 @@ const LoaderContainer = styled__default.default(getTranslation.T)`
73
74
  gap: 16px;
74
75
  `;
75
76
  const Settings = () => {
76
- const { formatMessage } = getTranslation.useIntl();
77
+ const { formatMessage } = reactIntl.useIntl();
77
78
  const t = (id, defaultMessage, values) => formatMessage({ id: getTranslation.getTranslation(id), defaultMessage }, values);
78
79
  const { get } = admin.useFetchClient();
79
80
  const { toggleNotification } = admin.useNotification();
80
- const [loading, setLoading] = m.useState(true);
81
- const [licenseData, setLicenseData] = m.useState(null);
82
- const [limits, setLimits] = m.useState(null);
83
- const [error, setError] = m.useState(null);
81
+ const [loading, setLoading] = s.useState(true);
82
+ const [licenseData, setLicenseData] = s.useState(null);
83
+ const [limits, setLimits] = s.useState(null);
84
+ const [error, setError] = s.useState(null);
84
85
  const fetchLicenseStatus = async () => {
85
86
  setLoading(true);
86
87
  setError(null);
@@ -166,14 +167,14 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
166
167
  });
167
168
  }
168
169
  };
169
- m.useEffect(() => {
170
+ s.useEffect(() => {
170
171
  fetchLicenseStatus();
171
172
  }, []);
172
173
  if (loading) {
173
- return /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsx(LoaderContainer, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Vd, { children: t("license.loading", "Loading license information...") }) }) });
174
+ return /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsx(LoaderContainer, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.kt, { children: t("license.loading", "Loading license information...") }) }) });
174
175
  }
175
176
  if (error) {
176
- return /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.R, { padding: 8, children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Cm, { variant: "danger", title: "Error", closeLabel: "Close", children: error }) }) });
177
+ return /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.S, { padding: 8, children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.ud, { variant: "danger", title: "Error", closeLabel: "Close", children: error }) }) });
177
178
  }
178
179
  const isValid = licenseData?.valid;
179
180
  const isDemo = licenseData?.demo;
@@ -181,13 +182,13 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
181
182
  const data = licenseData?.data || {};
182
183
  const collaborators = limits?.limits?.collaborators || { current: 0, max: 2, unlimited: false };
183
184
  return /* @__PURE__ */ jsxRuntime.jsxs(Container, { children: [
184
- /* @__PURE__ */ jsxRuntime.jsx(StickySaveBar, { paddingTop: 5, paddingBottom: 5, paddingLeft: 6, paddingRight: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { justifyContent: "space-between", alignItems: "flex-start", children: [
185
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { direction: "column", gap: 1, alignItems: "flex-start", children: [
186
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "alpha", fontWeight: "bold", children: t("license.title", "License Management") }),
187
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "epsilon", textColor: "neutral600", children: t("license.subtitle", "View your Magic Editor X plugin license") })
185
+ /* @__PURE__ */ jsxRuntime.jsx(StickySaveBar, { paddingTop: 5, paddingBottom: 5, paddingLeft: 6, paddingRight: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { justifyContent: "space-between", alignItems: "flex-start", children: [
186
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { direction: "column", gap: 1, alignItems: "flex-start", children: [
187
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "alpha", fontWeight: "bold", children: t("license.title", "License Management") }),
188
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "epsilon", textColor: "neutral600", children: t("license.subtitle", "View your Magic Editor X plugin license") })
188
189
  ] }),
189
190
  /* @__PURE__ */ jsxRuntime.jsx(
190
- getTranslation.zn,
191
+ getTranslation.Ct,
191
192
  {
192
193
  startIcon: /* @__PURE__ */ jsxRuntime.jsx(outline.ArrowPathIcon, { style: { width: 20, height: 20 } }),
193
194
  onClick: fetchLicenseStatus,
@@ -202,15 +203,15 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
202
203
  }
203
204
  )
204
205
  ] }) }),
205
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { paddingTop: 6, paddingLeft: 6, paddingRight: 6, paddingBottom: 10, children: [
206
- isDemo ? /* @__PURE__ */ jsxRuntime.jsx(getTranslation.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__ */ jsxRuntime.jsx(getTranslation.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__ */ jsxRuntime.jsx(getTranslation.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.") }),
207
- data.licenseKey && /* @__PURE__ */ jsxRuntime.jsx(getTranslation.R, { marginTop: 6, children: /* @__PURE__ */ jsxRuntime.jsx(LicenseKeyBanner, { children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { justifyContent: "space-between", alignItems: "flex-start", children: [
208
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { style: { flex: 1 }, children: [
209
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.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") }),
210
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { style: { color: "white", fontFamily: "monospace", fontSize: "28px", fontWeight: "bold", wordBreak: "break-all", marginBottom: "16px" }, children: data.licenseKey }),
211
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { gap: 2, children: [
206
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { paddingTop: 6, paddingLeft: 6, paddingRight: 6, paddingBottom: 10, children: [
207
+ isDemo ? /* @__PURE__ */ jsxRuntime.jsx(getTranslation.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__ */ jsxRuntime.jsx(getTranslation.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__ */ jsxRuntime.jsx(getTranslation.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.") }),
208
+ data.licenseKey && /* @__PURE__ */ jsxRuntime.jsx(getTranslation.S, { marginTop: 6, children: /* @__PURE__ */ jsxRuntime.jsx(LicenseKeyBanner, { children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { justifyContent: "space-between", alignItems: "flex-start", children: [
209
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { style: { flex: 1 }, children: [
210
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.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") }),
211
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { style: { color: "white", fontFamily: "monospace", fontSize: "28px", fontWeight: "bold", wordBreak: "break-all", marginBottom: "16px" }, children: data.licenseKey }),
212
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { gap: 2, children: [
212
213
  /* @__PURE__ */ jsxRuntime.jsx(
213
- getTranslation.zn,
214
+ getTranslation.Ct,
214
215
  {
215
216
  onClick: handleCopyLicenseKey,
216
217
  startIcon: /* @__PURE__ */ jsxRuntime.jsx(outline.DocumentDuplicateIcon, { style: { width: 16, height: 16 } }),
@@ -226,7 +227,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
226
227
  }
227
228
  ),
228
229
  /* @__PURE__ */ jsxRuntime.jsx(
229
- getTranslation.zn,
230
+ getTranslation.Ct,
230
231
  {
231
232
  onClick: handleDownloadLicenseKey,
232
233
  startIcon: /* @__PURE__ */ jsxRuntime.jsx(outline.ArrowDownTrayIcon, { style: { width: 16, height: 16 } }),
@@ -243,9 +244,9 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
243
244
  )
244
245
  ] })
245
246
  ] }),
246
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { direction: "column", gap: 2, alignItems: "flex-end", children: [
247
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { direction: "column", gap: 2, alignItems: "flex-end", children: [
247
248
  /* @__PURE__ */ jsxRuntime.jsx(
248
- getTranslation.Ps,
249
+ getTranslation.Nr,
249
250
  {
250
251
  backgroundColor: data.isActive ? "success100" : "danger100",
251
252
  textColor: data.isActive ? "success700" : "danger700",
@@ -254,7 +255,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
254
255
  }
255
256
  ),
256
257
  /* @__PURE__ */ jsxRuntime.jsx(
257
- getTranslation.Ps,
258
+ getTranslation.Nr,
258
259
  {
259
260
  style: {
260
261
  fontSize: "11px",
@@ -268,36 +269,36 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
268
269
  )
269
270
  ] })
270
271
  ] }) }) }),
271
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.R, { marginTop: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.Sm.Root, { defaultValue: "account", collapsible: true, children: [
272
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.Sm.Item, { value: "account", children: [
273
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Trigger, { icon: () => /* @__PURE__ */ jsxRuntime.jsx(outline.UserIcon, { style: { width: 16, height: 16 } }), children: t("license.section.account", "Account Information") }) }),
274
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.R, { padding: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { gap: 8, wrap: "wrap", children: [
275
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { style: { flex: "1", minWidth: "200px" }, children: [
276
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.email", "Email Address") }),
277
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "omega", fontWeight: "semiBold", children: data.email || t("license.notProvided", "Not provided") })
272
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.S, { marginTop: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.dd.Root, { defaultValue: "account", collapsible: true, children: [
273
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.dd.Item, { value: "account", children: [
274
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Trigger, { icon: () => /* @__PURE__ */ jsxRuntime.jsx(outline.UserIcon, { style: { width: 16, height: 16 } }), children: t("license.section.account", "Account Information") }) }),
275
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.S, { padding: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { gap: 8, wrap: "wrap", children: [
276
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { style: { flex: "1", minWidth: "200px" }, children: [
277
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.email", "Email Address") }),
278
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "omega", fontWeight: "semiBold", children: data.email || t("license.notProvided", "Not provided") })
278
279
  ] }),
279
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { style: { flex: "1", minWidth: "200px" }, children: [
280
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.holder", "License Holder") }),
281
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "omega", fontWeight: "semiBold", children: data.firstName && data.lastName ? `${data.firstName} ${data.lastName}` : t("license.notSpecified", "Not specified") })
280
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { style: { flex: "1", minWidth: "200px" }, children: [
281
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.holder", "License Holder") }),
282
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "omega", fontWeight: "semiBold", children: data.firstName && data.lastName ? `${data.firstName} ${data.lastName}` : t("license.notSpecified", "Not specified") })
282
283
  ] })
283
284
  ] }) }) })
284
285
  ] }),
285
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.Sm.Item, { value: "collaborators", children: [
286
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Trigger, { icon: () => /* @__PURE__ */ jsxRuntime.jsx(outline.UsersIcon, { style: { width: 16, height: 16 } }), children: t("license.section.collaborators", "Collaborator Limits") }) }),
287
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { padding: 6, children: [
288
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { gap: 8, wrap: "wrap", alignItems: "center", children: [
289
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { style: { flex: "1", minWidth: "200px" }, children: [
290
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.currentUsage", "Current Usage") }),
291
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.I, { variant: "omega", fontWeight: "semiBold", style: { fontSize: "24px" }, children: [
286
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.dd.Item, { value: "collaborators", children: [
287
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Trigger, { icon: () => /* @__PURE__ */ jsxRuntime.jsx(outline.UsersIcon, { style: { width: 16, height: 16 } }), children: t("license.section.collaborators", "Collaborator Limits") }) }),
288
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { padding: 6, children: [
289
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { gap: 8, wrap: "wrap", alignItems: "center", children: [
290
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { style: { flex: "1", minWidth: "200px" }, children: [
291
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.currentUsage", "Current Usage") }),
292
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.A, { variant: "omega", fontWeight: "semiBold", style: { fontSize: "24px" }, children: [
292
293
  collaborators.current,
293
294
  " / ",
294
295
  collaborators.unlimited ? t("license.unlimited", "Unlimited") : collaborators.max
295
296
  ] })
296
297
  ] }),
297
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { style: { flex: "1", minWidth: "200px" }, children: [
298
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.status", "Status") }),
298
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { style: { flex: "1", minWidth: "200px" }, children: [
299
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.status", "Status") }),
299
300
  /* @__PURE__ */ jsxRuntime.jsx(
300
- getTranslation.Ps,
301
+ getTranslation.Nr,
301
302
  {
302
303
  backgroundColor: collaborators.canAdd ? "success100" : "danger100",
303
304
  textColor: collaborators.canAdd ? "success700" : "danger700",
@@ -307,32 +308,32 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
307
308
  )
308
309
  ] })
309
310
  ] }),
310
- !collaborators.canAdd && !collaborators.unlimited && /* @__PURE__ */ jsxRuntime.jsx(getTranslation.R, { marginTop: 4, padding: 4, background: "warning100", hasRadius: true, children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "omega", textColor: "warning700", children: t("license.upgradeMessage", "Upgrade your plan to add more collaborators. Visit https://store.magicdx.dev/") }) })
311
+ !collaborators.canAdd && !collaborators.unlimited && /* @__PURE__ */ jsxRuntime.jsx(getTranslation.S, { marginTop: 4, padding: 4, background: "warning100", hasRadius: true, children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "omega", textColor: "warning700", children: t("license.upgradeMessage", "Upgrade your plan to add more collaborators. Visit https://store.magicdx.dev/") }) })
311
312
  ] }) })
312
313
  ] }),
313
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.Sm.Item, { value: "details", children: [
314
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Trigger, { icon: () => /* @__PURE__ */ jsxRuntime.jsx(outline.ShieldCheckIcon, { style: { width: 16, height: 16 } }), children: t("license.section.details", "License Details") }) }),
315
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.R, { padding: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { gap: 8, wrap: "wrap", children: [
316
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { style: { flex: "1", minWidth: "180px" }, children: [
317
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.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") }),
318
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "omega", fontWeight: "semiBold", children: data.expiresAt ? new Date(data.expiresAt).toLocaleDateString("en-US", {
314
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.dd.Item, { value: "details", children: [
315
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Trigger, { icon: () => /* @__PURE__ */ jsxRuntime.jsx(outline.ShieldCheckIcon, { style: { width: 16, height: 16 } }), children: t("license.section.details", "License Details") }) }),
316
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.S, { padding: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { gap: 8, wrap: "wrap", children: [
317
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { style: { flex: "1", minWidth: "180px" }, children: [
318
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.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") }),
319
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "omega", fontWeight: "semiBold", children: data.expiresAt ? new Date(data.expiresAt).toLocaleDateString("en-US", {
319
320
  year: "numeric",
320
321
  month: "long",
321
322
  day: "numeric"
322
323
  }) : t("license.never", "Never") })
323
324
  ] }),
324
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { style: { flex: "1", minWidth: "180px" }, children: [
325
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.deviceName", "Device Name") }),
326
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "omega", fontWeight: "semiBold", children: data.deviceName || t("license.unknown", "Unknown") })
325
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { style: { flex: "1", minWidth: "180px" }, children: [
326
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.deviceName", "Device Name") }),
327
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "omega", fontWeight: "semiBold", children: data.deviceName || t("license.unknown", "Unknown") })
327
328
  ] })
328
329
  ] }) }) })
329
330
  ] }),
330
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.Sm.Item, { value: "features", children: [
331
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Trigger, { icon: () => /* @__PURE__ */ jsxRuntime.jsx(outline.SparklesIcon, { style: { width: 16, height: 16 } }), children: t("license.section.features", "Features & Capabilities") }) }),
332
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { padding: 6, children: [
333
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { gap: 3, style: { marginBottom: "32px" }, children: [
331
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.dd.Item, { value: "features", children: [
332
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Trigger, { icon: () => /* @__PURE__ */ jsxRuntime.jsx(outline.SparklesIcon, { style: { width: 16, height: 16 } }), children: t("license.section.features", "Features & Capabilities") }) }),
333
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { padding: 6, children: [
334
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { gap: 3, style: { marginBottom: "32px" }, children: [
334
335
  /* @__PURE__ */ jsxRuntime.jsxs(
335
- getTranslation.Ps,
336
+ getTranslation.Nr,
336
337
  {
337
338
  backgroundColor: tier === "free" ? "success100" : "neutral100",
338
339
  textColor: tier === "free" ? "success700" : "neutral600",
@@ -349,7 +350,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
349
350
  }
350
351
  ),
351
352
  /* @__PURE__ */ jsxRuntime.jsxs(
352
- getTranslation.Ps,
353
+ getTranslation.Nr,
353
354
  {
354
355
  backgroundColor: tier === "premium" ? "primary100" : "neutral100",
355
356
  textColor: tier === "premium" ? "primary700" : "neutral600",
@@ -366,7 +367,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
366
367
  }
367
368
  ),
368
369
  /* @__PURE__ */ jsxRuntime.jsxs(
369
- getTranslation.Ps,
370
+ getTranslation.Nr,
370
371
  {
371
372
  backgroundColor: tier === "advanced" || tier === "enterprise" ? "secondary100" : "neutral100",
372
373
  textColor: tier === "advanced" || tier === "enterprise" ? "secondary700" : "neutral600",
@@ -383,31 +384,31 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
383
384
  }
384
385
  )
385
386
  ] }),
386
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { padding: 5, background: "neutral100", hasRadius: true, children: [
387
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "delta", fontWeight: "bold", style: { marginBottom: "16px", display: "block" }, children: t("license.yourPlanIncludes", "Your Plan Includes:") }),
388
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { direction: "column", gap: 2, children: [
389
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.I, { variant: "omega", style: { fontSize: "14px" }, children: [
387
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { padding: 5, background: "neutral100", hasRadius: true, children: [
388
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "delta", fontWeight: "bold", style: { marginBottom: "16px", display: "block" }, children: t("license.yourPlanIncludes", "Your Plan Includes:") }),
389
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { direction: "column", gap: 2, children: [
390
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.A, { variant: "omega", style: { fontSize: "14px" }, children: [
390
391
  "[OK] ",
391
392
  t("license.feature.fullAccess", "Full Editor Access (all tools)")
392
393
  ] }),
393
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.I, { variant: "omega", style: { fontSize: "14px" }, children: [
394
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.A, { variant: "omega", style: { fontSize: "14px" }, children: [
394
395
  "[OK] ",
395
396
  t("license.feature.realtimeCollab", "Real-Time Collaboration")
396
397
  ] }),
397
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.I, { variant: "omega", style: { fontSize: "14px" }, children: [
398
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.A, { variant: "omega", style: { fontSize: "14px" }, children: [
398
399
  "[OK] ",
399
400
  collaborators.unlimited ? t("license.feature.collaboratorsUnlimited", "Unlimited Collaborators") : t("license.feature.collaborators", "{count} Collaborator(s)", { count: collaborators.max })
400
401
  ] }),
401
402
  (tier === "premium" || tier === "advanced" || tier === "enterprise") && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
402
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.I, { variant: "omega", style: { fontSize: "14px" }, children: [
403
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.A, { variant: "omega", style: { fontSize: "14px" }, children: [
403
404
  "[OK] ",
404
405
  t("license.feature.aiAssistant", "AI Assistant (Usage-based)")
405
406
  ] }),
406
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.I, { variant: "omega", style: { fontSize: "14px" }, children: [
407
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.A, { variant: "omega", style: { fontSize: "14px" }, children: [
407
408
  "[OK] ",
408
409
  t("license.feature.versionHistory", "Version History")
409
410
  ] }),
410
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.I, { variant: "omega", style: { fontSize: "14px" }, children: [
411
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.A, { variant: "omega", style: { fontSize: "14px" }, children: [
411
412
  "[OK] ",
412
413
  t("license.feature.prioritySupport", "Priority Support")
413
414
  ] })
@@ -416,20 +417,20 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
416
417
  ] })
417
418
  ] }) })
418
419
  ] }),
419
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.Sm.Item, { value: "status", children: [
420
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Trigger, { icon: () => /* @__PURE__ */ jsxRuntime.jsx(outline.ChartBarIcon, { style: { width: 16, height: 16 } }), children: t("license.section.status", "System Status") }) }),
421
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.Sm.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.R, { padding: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.T, { gap: 8, wrap: "wrap", children: [
422
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { style: { flex: "1", minWidth: "150px" }, children: [
423
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.licenseStatus", "License Status") }),
424
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "omega", fontWeight: "semiBold", children: data.isActive ? t("license.active", "Active") : t("license.inactive", "Inactive") })
420
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.dd.Item, { value: "status", children: [
421
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Trigger, { icon: () => /* @__PURE__ */ jsxRuntime.jsx(outline.ChartBarIcon, { style: { width: 16, height: 16 } }), children: t("license.section.status", "System Status") }) }),
422
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.dd.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(getTranslation.S, { padding: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.C, { gap: 8, wrap: "wrap", children: [
423
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { style: { flex: "1", minWidth: "150px" }, children: [
424
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.licenseStatus", "License Status") }),
425
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "omega", fontWeight: "semiBold", children: data.isActive ? t("license.active", "Active") : t("license.inactive", "Inactive") })
425
426
  ] }),
426
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { style: { flex: "1", minWidth: "150px" }, children: [
427
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.connection", "Connection") }),
428
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "omega", fontWeight: "semiBold", children: data.isOnline ? t("license.online", "Online") : t("license.offline", "Offline") })
427
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { style: { flex: "1", minWidth: "150px" }, children: [
428
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.connection", "Connection") }),
429
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "omega", fontWeight: "semiBold", children: data.isOnline ? t("license.online", "Online") : t("license.offline", "Offline") })
429
430
  ] }),
430
- /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.R, { style: { flex: "1", minWidth: "150px" }, children: [
431
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.lastSync", "Last Sync") }),
432
- /* @__PURE__ */ jsxRuntime.jsx(getTranslation.I, { variant: "omega", fontWeight: "semiBold", children: data.lastPingAt ? new Date(data.lastPingAt).toLocaleTimeString() : t("license.never", "Never") })
431
+ /* @__PURE__ */ jsxRuntime.jsxs(getTranslation.S, { style: { flex: "1", minWidth: "150px" }, children: [
432
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: t("license.lastSync", "Last Sync") }),
433
+ /* @__PURE__ */ jsxRuntime.jsx(getTranslation.A, { variant: "omega", fontWeight: "semiBold", children: data.lastPingAt ? new Date(data.lastPingAt).toLocaleTimeString() : t("license.never", "Never") })
433
434
  ] })
434
435
  ] }) }) })
435
436
  ] })