strapi-plugin-magic-mail 1.0.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/COPYRIGHT_NOTICE.txt +13 -0
- package/LICENSE +22 -0
- package/README.md +1420 -0
- package/admin/jsconfig.json +10 -0
- package/admin/src/components/AddAccountModal.jsx +1943 -0
- package/admin/src/components/Initializer.jsx +14 -0
- package/admin/src/components/LicenseGuard.jsx +475 -0
- package/admin/src/components/PluginIcon.jsx +5 -0
- package/admin/src/hooks/useAuthRefresh.js +44 -0
- package/admin/src/hooks/useLicense.js +158 -0
- package/admin/src/index.js +86 -0
- package/admin/src/pages/Analytics.jsx +762 -0
- package/admin/src/pages/App.jsx +111 -0
- package/admin/src/pages/EmailDesigner/EditorPage.jsx +1405 -0
- package/admin/src/pages/EmailDesigner/TemplateList.jsx +1807 -0
- package/admin/src/pages/HomePage.jsx +1233 -0
- package/admin/src/pages/LicensePage.jsx +424 -0
- package/admin/src/pages/RoutingRules.jsx +1141 -0
- package/admin/src/pages/Settings.jsx +603 -0
- package/admin/src/pluginId.js +3 -0
- package/admin/src/translations/de.json +71 -0
- package/admin/src/translations/en.json +70 -0
- package/admin/src/translations/es.json +71 -0
- package/admin/src/translations/fr.json +71 -0
- package/admin/src/translations/pt.json +71 -0
- package/admin/src/utils/fetchWithRetry.js +123 -0
- package/admin/src/utils/getTranslation.js +5 -0
- package/dist/_chunks/App-B-Gp4Vbr.js +7568 -0
- package/dist/_chunks/App-BymMjoGM.mjs +7543 -0
- package/dist/_chunks/LicensePage-Bl02myMx.mjs +342 -0
- package/dist/_chunks/LicensePage-CJXwPnEe.js +344 -0
- package/dist/_chunks/Settings-C_TmKwcz.mjs +400 -0
- package/dist/_chunks/Settings-zuFQ3pnn.js +402 -0
- package/dist/_chunks/de-CN-G9j1S.js +64 -0
- package/dist/_chunks/de-DS04rP54.mjs +64 -0
- package/dist/_chunks/en-BDc7Jk8u.js +64 -0
- package/dist/_chunks/en-BEFQJXvR.mjs +64 -0
- package/dist/_chunks/es-BpV1MIdm.js +64 -0
- package/dist/_chunks/es-DQHwzPpP.mjs +64 -0
- package/dist/_chunks/fr-BG1WfEVm.mjs +64 -0
- package/dist/_chunks/fr-vpziIpRp.js +64 -0
- package/dist/_chunks/pt-CMoGrOib.mjs +64 -0
- package/dist/_chunks/pt-ODpAhDNa.js +64 -0
- package/dist/admin/index.js +89 -0
- package/dist/admin/index.mjs +90 -0
- package/dist/server/index.js +6214 -0
- package/dist/server/index.mjs +6208 -0
- package/package.json +113 -0
- package/server/jsconfig.json +10 -0
- package/server/src/bootstrap.js +153 -0
- package/server/src/config/features.js +260 -0
- package/server/src/config/index.js +6 -0
- package/server/src/content-types/email-account/schema.json +93 -0
- package/server/src/content-types/email-event/index.js +8 -0
- package/server/src/content-types/email-event/schema.json +57 -0
- package/server/src/content-types/email-link/index.js +8 -0
- package/server/src/content-types/email-link/schema.json +49 -0
- package/server/src/content-types/email-log/index.js +8 -0
- package/server/src/content-types/email-log/schema.json +106 -0
- package/server/src/content-types/email-template/schema.json +74 -0
- package/server/src/content-types/email-template-version/schema.json +60 -0
- package/server/src/content-types/index.js +33 -0
- package/server/src/content-types/routing-rule/schema.json +59 -0
- package/server/src/controllers/accounts.js +220 -0
- package/server/src/controllers/analytics.js +347 -0
- package/server/src/controllers/controller.js +26 -0
- package/server/src/controllers/email-designer.js +474 -0
- package/server/src/controllers/index.js +21 -0
- package/server/src/controllers/license.js +267 -0
- package/server/src/controllers/oauth.js +474 -0
- package/server/src/controllers/routing-rules.js +122 -0
- package/server/src/controllers/test.js +383 -0
- package/server/src/destroy.js +23 -0
- package/server/src/index.js +25 -0
- package/server/src/middlewares/index.js +3 -0
- package/server/src/policies/index.js +3 -0
- package/server/src/register.js +5 -0
- package/server/src/routes/admin.js +469 -0
- package/server/src/routes/content-api.js +37 -0
- package/server/src/routes/index.js +9 -0
- package/server/src/services/account-manager.js +277 -0
- package/server/src/services/analytics.js +496 -0
- package/server/src/services/email-designer.js +870 -0
- package/server/src/services/email-router.js +1420 -0
- package/server/src/services/index.js +17 -0
- package/server/src/services/license-guard.js +418 -0
- package/server/src/services/oauth.js +515 -0
- package/server/src/services/service.js +7 -0
- package/server/src/utils/encryption.js +81 -0
- package/strapi-admin.js +4 -0
- package/strapi-server.js +4 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import { Loader, Box, Alert, Flex, Typography, Button, Badge, Accordion } from "@strapi/design-system";
|
|
4
|
+
import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
5
|
+
import { ArrowPathIcon, DocumentDuplicateIcon, ArrowDownTrayIcon, UserIcon, ShieldCheckIcon, SparklesIcon, ChartBarIcon } from "@heroicons/react/24/outline";
|
|
6
|
+
import styled, { css, keyframes } from "styled-components";
|
|
7
|
+
const theme = {
|
|
8
|
+
colors: {
|
|
9
|
+
neutral: { 200: "#E5E7EB" }
|
|
10
|
+
},
|
|
11
|
+
shadows: { sm: "0 1px 3px rgba(0,0,0,0.1)" },
|
|
12
|
+
borderRadius: { lg: "12px" }
|
|
13
|
+
};
|
|
14
|
+
const fadeIn = keyframes`
|
|
15
|
+
from { opacity: 0; transform: translateY(10px); }
|
|
16
|
+
to { opacity: 1; transform: translateY(0); }
|
|
17
|
+
`;
|
|
18
|
+
const shimmer = keyframes`
|
|
19
|
+
0% { background-position: -200% 0; }
|
|
20
|
+
100% { background-position: 200% 0; }
|
|
21
|
+
`;
|
|
22
|
+
const Container = styled(Box)`
|
|
23
|
+
${css`animation: ${fadeIn} 0.5s;`}
|
|
24
|
+
max-width: 1400px;
|
|
25
|
+
margin: 0 auto;
|
|
26
|
+
`;
|
|
27
|
+
const StickySaveBar = styled(Box)`
|
|
28
|
+
position: sticky;
|
|
29
|
+
top: 0;
|
|
30
|
+
z-index: 10;
|
|
31
|
+
background: white;
|
|
32
|
+
border-bottom: 1px solid ${theme.colors.neutral[200]};
|
|
33
|
+
box-shadow: ${theme.shadows.sm};
|
|
34
|
+
`;
|
|
35
|
+
const LicenseKeyBanner = styled(Box)`
|
|
36
|
+
background: linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
|
|
37
|
+
border-radius: ${theme.borderRadius.lg};
|
|
38
|
+
padding: 28px 32px;
|
|
39
|
+
color: white;
|
|
40
|
+
position: relative;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
|
|
43
|
+
margin-bottom: 24px;
|
|
44
|
+
|
|
45
|
+
&::after {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: -50%;
|
|
49
|
+
right: -50%;
|
|
50
|
+
width: 200%;
|
|
51
|
+
height: 200%;
|
|
52
|
+
background: linear-gradient(
|
|
53
|
+
45deg,
|
|
54
|
+
transparent,
|
|
55
|
+
rgba(255, 255, 255, 0.08),
|
|
56
|
+
transparent
|
|
57
|
+
);
|
|
58
|
+
${css`animation: ${shimmer} 3s infinite;`}
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
z-index: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& > * {
|
|
64
|
+
position: relative;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
const LoaderContainer = styled(Flex)`
|
|
69
|
+
min-height: 400px;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
gap: 16px;
|
|
74
|
+
`;
|
|
75
|
+
const LicensePage = () => {
|
|
76
|
+
const { get } = useFetchClient();
|
|
77
|
+
const { toggleNotification } = useNotification();
|
|
78
|
+
const [loading, setLoading] = useState(true);
|
|
79
|
+
const [licenseData, setLicenseData] = useState(null);
|
|
80
|
+
const [error, setError] = useState(null);
|
|
81
|
+
const fetchLicenseStatus = async () => {
|
|
82
|
+
setLoading(true);
|
|
83
|
+
setError(null);
|
|
84
|
+
try {
|
|
85
|
+
const response = await get("/magic-mail/license/status");
|
|
86
|
+
setLicenseData(response.data);
|
|
87
|
+
} catch (err) {
|
|
88
|
+
console.error("[MagicMail] Error fetching license:", err);
|
|
89
|
+
setError("Failed to load license information");
|
|
90
|
+
} finally {
|
|
91
|
+
setLoading(false);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const handleCopyLicenseKey = async () => {
|
|
95
|
+
try {
|
|
96
|
+
await navigator.clipboard.writeText(licenseData?.data?.licenseKey || "");
|
|
97
|
+
toggleNotification({
|
|
98
|
+
type: "success",
|
|
99
|
+
message: "License key copied to clipboard!"
|
|
100
|
+
});
|
|
101
|
+
} catch (err) {
|
|
102
|
+
toggleNotification({
|
|
103
|
+
type: "danger",
|
|
104
|
+
message: "Failed to copy license key"
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
const handleDownloadLicenseKey = () => {
|
|
109
|
+
try {
|
|
110
|
+
const data2 = licenseData?.data || {};
|
|
111
|
+
const licenseKey = data2.licenseKey || "";
|
|
112
|
+
const email = data2.email || "N/A";
|
|
113
|
+
const firstName = data2.firstName || "";
|
|
114
|
+
const lastName = data2.lastName || "";
|
|
115
|
+
const fullName = `${firstName} ${lastName}`.trim() || "N/A";
|
|
116
|
+
const content = `MagicMail - Email Business Suite - License Key
|
|
117
|
+
═══════════════════════════════════════
|
|
118
|
+
|
|
119
|
+
License Key: ${licenseKey}
|
|
120
|
+
|
|
121
|
+
License Holder Information:
|
|
122
|
+
──────────────────────────────────────
|
|
123
|
+
Name: ${fullName}
|
|
124
|
+
Email: ${email}
|
|
125
|
+
|
|
126
|
+
License Status:
|
|
127
|
+
──────────────────────────────────────
|
|
128
|
+
Status: ${data2.isActive ? "ACTIVE" : "INACTIVE"}
|
|
129
|
+
Expires: ${data2.expiresAt ? new Date(data2.expiresAt).toLocaleDateString() : "Never"}
|
|
130
|
+
|
|
131
|
+
Features:
|
|
132
|
+
──────────────────────────────────────
|
|
133
|
+
Premium: ${data2.features?.premium ? "Enabled" : "Disabled"}
|
|
134
|
+
Advanced: ${data2.features?.advanced ? "Enabled" : "Disabled"}
|
|
135
|
+
Enterprise: ${data2.features?.enterprise ? "Enabled" : "Disabled"}
|
|
136
|
+
|
|
137
|
+
═══════════════════════════════════════
|
|
138
|
+
Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
139
|
+
`;
|
|
140
|
+
const blob = new Blob([content], { type: "text/plain" });
|
|
141
|
+
const url = window.URL.createObjectURL(blob);
|
|
142
|
+
const link = document.createElement("a");
|
|
143
|
+
link.href = url;
|
|
144
|
+
link.download = `magicmail-license-${licenseKey.substring(0, 8)}.txt`;
|
|
145
|
+
document.body.appendChild(link);
|
|
146
|
+
link.click();
|
|
147
|
+
document.body.removeChild(link);
|
|
148
|
+
window.URL.revokeObjectURL(url);
|
|
149
|
+
toggleNotification({
|
|
150
|
+
type: "success",
|
|
151
|
+
message: "License key downloaded successfully!"
|
|
152
|
+
});
|
|
153
|
+
} catch (err) {
|
|
154
|
+
toggleNotification({
|
|
155
|
+
type: "danger",
|
|
156
|
+
message: "Failed to download license key"
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
useEffect(() => {
|
|
161
|
+
fetchLicenseStatus();
|
|
162
|
+
}, []);
|
|
163
|
+
if (loading) {
|
|
164
|
+
return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(LoaderContainer, { children: /* @__PURE__ */ jsx(Loader, { children: "Loading license information..." }) }) });
|
|
165
|
+
}
|
|
166
|
+
if (error) {
|
|
167
|
+
return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(Box, { padding: 8, children: /* @__PURE__ */ jsx(Alert, { variant: "danger", title: "Error", closeLabel: "Close", children: error }) }) });
|
|
168
|
+
}
|
|
169
|
+
const isValid = licenseData?.valid;
|
|
170
|
+
const isDemo = licenseData?.demo;
|
|
171
|
+
const data = licenseData?.data || {};
|
|
172
|
+
return /* @__PURE__ */ jsxs(Container, { children: [
|
|
173
|
+
/* @__PURE__ */ jsx(StickySaveBar, { paddingTop: 5, paddingBottom: 5, paddingLeft: 6, paddingRight: 6, children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", children: [
|
|
174
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 1, alignItems: "flex-start", children: [
|
|
175
|
+
/* @__PURE__ */ jsx(Typography, { variant: "alpha", fontWeight: "bold", children: "License Management" }),
|
|
176
|
+
/* @__PURE__ */ jsx(Typography, { variant: "epsilon", textColor: "neutral600", children: "View your MagicMail plugin license" })
|
|
177
|
+
] }),
|
|
178
|
+
/* @__PURE__ */ jsx(
|
|
179
|
+
Button,
|
|
180
|
+
{
|
|
181
|
+
startIcon: /* @__PURE__ */ jsx(ArrowPathIcon, { style: { width: 20, height: 20 } }),
|
|
182
|
+
onClick: fetchLicenseStatus,
|
|
183
|
+
size: "L",
|
|
184
|
+
style: {
|
|
185
|
+
background: "linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%)",
|
|
186
|
+
color: "white",
|
|
187
|
+
fontWeight: "600",
|
|
188
|
+
border: "none"
|
|
189
|
+
},
|
|
190
|
+
children: "Refresh Status"
|
|
191
|
+
}
|
|
192
|
+
)
|
|
193
|
+
] }) }),
|
|
194
|
+
/* @__PURE__ */ jsxs(Box, { paddingTop: 6, paddingLeft: 6, paddingRight: 6, paddingBottom: 10, children: [
|
|
195
|
+
isDemo ? /* @__PURE__ */ jsx(Alert, { variant: "warning", title: "Demo Mode", closeLabel: "Close", children: "You're using the demo version. Create a license to unlock all features." }) : isValid ? /* @__PURE__ */ jsx(Alert, { variant: "success", title: "License Active", closeLabel: "Close", children: "Your license is active and all features are unlocked." }) : /* @__PURE__ */ jsx(Alert, { variant: "danger", title: "License Issue", closeLabel: "Close", children: "There's an issue with your license. Please check your license status." }),
|
|
196
|
+
data.licenseKey && /* @__PURE__ */ jsx(Box, { marginTop: 6, children: /* @__PURE__ */ jsx(LicenseKeyBanner, { children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", children: [
|
|
197
|
+
/* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
|
|
198
|
+
/* @__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: "License Key" }),
|
|
199
|
+
/* @__PURE__ */ jsx(Typography, { style: { color: "white", fontFamily: "monospace", fontSize: "28px", fontWeight: "bold", wordBreak: "break-all", marginBottom: "16px" }, children: data.licenseKey }),
|
|
200
|
+
/* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
|
|
201
|
+
/* @__PURE__ */ jsx(
|
|
202
|
+
Button,
|
|
203
|
+
{
|
|
204
|
+
onClick: handleCopyLicenseKey,
|
|
205
|
+
startIcon: /* @__PURE__ */ jsx(DocumentDuplicateIcon, { style: { width: 16, height: 16 } }),
|
|
206
|
+
size: "S",
|
|
207
|
+
variant: "secondary",
|
|
208
|
+
style: {
|
|
209
|
+
backgroundColor: "rgba(255,255,255,0.2)",
|
|
210
|
+
color: "white",
|
|
211
|
+
border: "1px solid rgba(255,255,255,0.3)",
|
|
212
|
+
fontWeight: "600"
|
|
213
|
+
},
|
|
214
|
+
children: "Copy Key"
|
|
215
|
+
}
|
|
216
|
+
),
|
|
217
|
+
/* @__PURE__ */ jsx(
|
|
218
|
+
Button,
|
|
219
|
+
{
|
|
220
|
+
onClick: handleDownloadLicenseKey,
|
|
221
|
+
startIcon: /* @__PURE__ */ jsx(ArrowDownTrayIcon, { style: { width: 16, height: 16 } }),
|
|
222
|
+
size: "S",
|
|
223
|
+
variant: "secondary",
|
|
224
|
+
style: {
|
|
225
|
+
backgroundColor: "rgba(255,255,255,0.2)",
|
|
226
|
+
color: "white",
|
|
227
|
+
border: "1px solid rgba(255,255,255,0.3)",
|
|
228
|
+
fontWeight: "600"
|
|
229
|
+
},
|
|
230
|
+
children: "Download as TXT"
|
|
231
|
+
}
|
|
232
|
+
)
|
|
233
|
+
] })
|
|
234
|
+
] }),
|
|
235
|
+
/* @__PURE__ */ jsx(
|
|
236
|
+
Badge,
|
|
237
|
+
{
|
|
238
|
+
backgroundColor: data.isActive ? "success100" : "danger100",
|
|
239
|
+
textColor: data.isActive ? "success700" : "danger700",
|
|
240
|
+
style: { fontSize: "11px", fontWeight: "700", padding: "6px 12px", marginLeft: "16px", flexShrink: 0 },
|
|
241
|
+
children: data.isActive ? "ACTIVE" : "INACTIVE"
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
] }) }) }),
|
|
245
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 6, children: /* @__PURE__ */ jsxs(Accordion.Root, { defaultValue: "account", collapsible: true, children: [
|
|
246
|
+
/* @__PURE__ */ jsxs(Accordion.Item, { value: "account", children: [
|
|
247
|
+
/* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(UserIcon, { style: { width: 16, height: 16 } }), children: "Account Information" }) }),
|
|
248
|
+
/* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(Box, { padding: 6, children: /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", children: [
|
|
249
|
+
/* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "200px" }, children: [
|
|
250
|
+
/* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: "Email Address" }),
|
|
251
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.email || "Not provided" })
|
|
252
|
+
] }),
|
|
253
|
+
/* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "200px" }, children: [
|
|
254
|
+
/* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: "License Holder" }),
|
|
255
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.firstName && data.lastName ? `${data.firstName} ${data.lastName}` : "Not specified" })
|
|
256
|
+
] })
|
|
257
|
+
] }) }) })
|
|
258
|
+
] }),
|
|
259
|
+
/* @__PURE__ */ jsxs(Accordion.Item, { value: "details", children: [
|
|
260
|
+
/* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(ShieldCheckIcon, { style: { width: 16, height: 16 } }), children: "License Details" }) }),
|
|
261
|
+
/* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(Box, { padding: 6, children: /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", children: [
|
|
262
|
+
/* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "180px" }, children: [
|
|
263
|
+
/* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: data.isExpired ? "Expired On" : "Expires On" }),
|
|
264
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.expiresAt ? new Date(data.expiresAt).toLocaleDateString("en-US", {
|
|
265
|
+
year: "numeric",
|
|
266
|
+
month: "long",
|
|
267
|
+
day: "numeric"
|
|
268
|
+
}) : "Never" })
|
|
269
|
+
] }),
|
|
270
|
+
/* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "180px" }, children: [
|
|
271
|
+
/* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: "Device Name" }),
|
|
272
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.deviceName || "Unknown" })
|
|
273
|
+
] }),
|
|
274
|
+
/* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "180px" }, children: [
|
|
275
|
+
/* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: "IP Address" }),
|
|
276
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.ipAddress || "Not detected" })
|
|
277
|
+
] })
|
|
278
|
+
] }) }) })
|
|
279
|
+
] }),
|
|
280
|
+
/* @__PURE__ */ jsxs(Accordion.Item, { value: "features", children: [
|
|
281
|
+
/* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(SparklesIcon, { style: { width: 16, height: 16 } }), children: "Features & Capabilities" }) }),
|
|
282
|
+
/* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsxs(Box, { padding: 6, children: [
|
|
283
|
+
/* @__PURE__ */ jsxs(Flex, { gap: 3, style: { marginBottom: "32px" }, children: [
|
|
284
|
+
/* @__PURE__ */ jsxs(
|
|
285
|
+
Badge,
|
|
286
|
+
{
|
|
287
|
+
backgroundColor: data.features?.premium ? "success100" : "neutral100",
|
|
288
|
+
textColor: data.features?.premium ? "success700" : "neutral600",
|
|
289
|
+
style: {
|
|
290
|
+
fontSize: "13px",
|
|
291
|
+
fontWeight: "700",
|
|
292
|
+
padding: "8px 16px",
|
|
293
|
+
border: data.features?.premium ? "2px solid #dcfce7" : "2px solid #e5e7eb"
|
|
294
|
+
},
|
|
295
|
+
children: [
|
|
296
|
+
data.features?.premium ? "✓" : "✗",
|
|
297
|
+
" PREMIUM FEATURES"
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
),
|
|
301
|
+
/* @__PURE__ */ jsxs(
|
|
302
|
+
Badge,
|
|
303
|
+
{
|
|
304
|
+
backgroundColor: data.features?.advanced ? "primary100" : "neutral100",
|
|
305
|
+
textColor: data.features?.advanced ? "primary700" : "neutral600",
|
|
306
|
+
style: {
|
|
307
|
+
fontSize: "13px",
|
|
308
|
+
fontWeight: "700",
|
|
309
|
+
padding: "8px 16px",
|
|
310
|
+
border: data.features?.advanced ? "2px solid #bae6fd" : "2px solid #e5e7eb"
|
|
311
|
+
},
|
|
312
|
+
children: [
|
|
313
|
+
data.features?.advanced ? "✓" : "✗",
|
|
314
|
+
" ADVANCED FEATURES"
|
|
315
|
+
]
|
|
316
|
+
}
|
|
317
|
+
),
|
|
318
|
+
/* @__PURE__ */ jsxs(
|
|
319
|
+
Badge,
|
|
320
|
+
{
|
|
321
|
+
backgroundColor: data.features?.enterprise ? "secondary100" : "neutral100",
|
|
322
|
+
textColor: data.features?.enterprise ? "secondary700" : "neutral600",
|
|
323
|
+
style: {
|
|
324
|
+
fontSize: "13px",
|
|
325
|
+
fontWeight: "700",
|
|
326
|
+
padding: "8px 16px",
|
|
327
|
+
border: data.features?.enterprise ? "2px solid #ddd6fe" : "2px solid #e5e7eb"
|
|
328
|
+
},
|
|
329
|
+
children: [
|
|
330
|
+
data.features?.enterprise ? "✓" : "✗",
|
|
331
|
+
" ENTERPRISE FEATURES"
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
)
|
|
335
|
+
] }),
|
|
336
|
+
data.features?.premium && /* @__PURE__ */ jsxs(Box, { marginBottom: 5, padding: 5, background: "success50", hasRadius: true, style: { border: "2px solid #dcfce7" }, children: [
|
|
337
|
+
/* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", textColor: "success700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "✨ Premium Features Active" }),
|
|
338
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
|
|
339
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "success700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Gmail OAuth 2.0 (Unlimited accounts)" }),
|
|
340
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "success700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Microsoft 365 OAuth Integration" }),
|
|
341
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "success700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Yahoo Mail OAuth" }),
|
|
342
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "success700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ SendGrid & Mailgun Integration" }),
|
|
343
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "success700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Smart Routing Rules (Unlimited)" }),
|
|
344
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "success700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Email Analytics Dashboard" })
|
|
345
|
+
] })
|
|
346
|
+
] }),
|
|
347
|
+
data.features?.advanced && /* @__PURE__ */ jsxs(Box, { marginBottom: 5, padding: 5, background: "primary50", hasRadius: true, style: { border: "2px solid #bae6fd" }, children: [
|
|
348
|
+
/* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", textColor: "primary700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "🚀 Advanced Features Active" }),
|
|
349
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
|
|
350
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "primary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ DKIM Signing for SMTP" }),
|
|
351
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "primary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Email Designer Integration" }),
|
|
352
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "primary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Priority Email Headers" }),
|
|
353
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "primary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ List-Unsubscribe Headers (GDPR)" }),
|
|
354
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "primary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Enhanced Security Validation" })
|
|
355
|
+
] })
|
|
356
|
+
] }),
|
|
357
|
+
data.features?.enterprise && /* @__PURE__ */ jsxs(Box, { padding: 5, background: "secondary50", hasRadius: true, style: { border: "2px solid #ddd6fe" }, children: [
|
|
358
|
+
/* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", textColor: "secondary700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "🏢 Enterprise Features Active" }),
|
|
359
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
|
|
360
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "secondary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Multi-tenant Email Management" }),
|
|
361
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "secondary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Compliance Reports (GDPR, CAN-SPAM)" }),
|
|
362
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "secondary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Custom Routing Rules Engine" }),
|
|
363
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "secondary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Advanced Rate Limiting" }),
|
|
364
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "secondary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Priority Support" })
|
|
365
|
+
] })
|
|
366
|
+
] })
|
|
367
|
+
] }) })
|
|
368
|
+
] }),
|
|
369
|
+
/* @__PURE__ */ jsxs(Accordion.Item, { value: "status", children: [
|
|
370
|
+
/* @__PURE__ */ jsx(Accordion.Header, { children: /* @__PURE__ */ jsx(Accordion.Trigger, { icon: () => /* @__PURE__ */ jsx(ChartBarIcon, { style: { width: 16, height: 16 } }), children: "System Status" }) }),
|
|
371
|
+
/* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(Box, { padding: 6, children: /* @__PURE__ */ jsxs(Flex, { gap: 8, wrap: "wrap", children: [
|
|
372
|
+
/* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "150px" }, children: [
|
|
373
|
+
/* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: "License Status" }),
|
|
374
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.isActive ? "Active" : "Inactive" })
|
|
375
|
+
] }),
|
|
376
|
+
/* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "150px" }, children: [
|
|
377
|
+
/* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: "Connection" }),
|
|
378
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.isOnline ? "Online" : "Offline" })
|
|
379
|
+
] }),
|
|
380
|
+
/* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "150px" }, children: [
|
|
381
|
+
/* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: "Last Sync" }),
|
|
382
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: data.lastPingAt ? new Date(data.lastPingAt).toLocaleTimeString() : "Never" })
|
|
383
|
+
] }),
|
|
384
|
+
/* @__PURE__ */ jsxs(Box, { style: { flex: "1", minWidth: "150px" }, children: [
|
|
385
|
+
/* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", textTransform: "uppercase", style: { marginBottom: "8px", display: "block" }, children: "Device Limit" }),
|
|
386
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "omega", fontWeight: "semiBold", children: [
|
|
387
|
+
data.currentDevices || 0,
|
|
388
|
+
" / ",
|
|
389
|
+
data.maxDevices || 1
|
|
390
|
+
] })
|
|
391
|
+
] })
|
|
392
|
+
] }) }) })
|
|
393
|
+
] })
|
|
394
|
+
] }) })
|
|
395
|
+
] })
|
|
396
|
+
] });
|
|
397
|
+
};
|
|
398
|
+
export {
|
|
399
|
+
LicensePage as default
|
|
400
|
+
};
|