@agenticmail/enterprise 0.5.298 → 0.5.299
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-55QVWFKC.js +48 -0
- package/dist/chunk-633X6XDY.js +1519 -0
- package/dist/chunk-7FEEWUNJ.js +4254 -0
- package/dist/cli-agent-4DVE3NDA.js +1778 -0
- package/dist/cli-recover-MFF5AXLN.js +487 -0
- package/dist/cli-serve-BXI7TTNN.js +143 -0
- package/dist/cli-verify-BTSN7SQ2.js +149 -0
- package/dist/cli.js +5 -5
- package/dist/dashboard/app.js +3 -0
- package/dist/dashboard/components/icons.js +1 -0
- package/dist/dashboard/pages/agent-detail/overview.js +110 -0
- package/dist/dashboard/pages/organizations.js +335 -0
- package/dist/factory-4JY52C3T.js +9 -0
- package/dist/index.js +3 -3
- package/dist/page-registry-FAWFCYUQ.js +183 -0
- package/dist/postgres-B42FZ72F.js +799 -0
- package/dist/server-KGEYYNHX.js +15 -0
- package/dist/setup-KIAPXKEX.js +20 -0
- package/dist/sqlite-KQDU2IFO.js +531 -0
- package/package.json +1 -1
- package/src/admin/page-registry.ts +5 -0
- package/src/admin/routes.ts +256 -0
- package/src/dashboard/app.js +3 -0
- package/src/dashboard/components/icons.js +1 -0
- package/src/dashboard/pages/agent-detail/overview.js +110 -0
- package/src/dashboard/pages/organizations.js +335 -0
- package/src/db/postgres.ts +29 -0
- package/src/db/sqlite.ts +26 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DomainLock
|
|
3
|
+
} from "./chunk-UPU23ZRG.js";
|
|
4
|
+
import "./chunk-KFQGP6VL.js";
|
|
5
|
+
|
|
6
|
+
// src/domain-lock/cli-verify.ts
|
|
7
|
+
function getFlag(args, name) {
|
|
8
|
+
const idx = args.indexOf(name);
|
|
9
|
+
if (idx !== -1 && args[idx + 1]) return args[idx + 1];
|
|
10
|
+
return void 0;
|
|
11
|
+
}
|
|
12
|
+
function hasFlag(args, name) {
|
|
13
|
+
return args.includes(name);
|
|
14
|
+
}
|
|
15
|
+
function detectDbType(url) {
|
|
16
|
+
const u = url.toLowerCase().trim();
|
|
17
|
+
if (u.startsWith("postgres") || u.startsWith("pg:")) return "postgres";
|
|
18
|
+
if (u.startsWith("mysql")) return "mysql";
|
|
19
|
+
if (u.startsWith("mongodb")) return "mongodb";
|
|
20
|
+
if (u.startsWith("libsql") || u.includes(".turso.io")) return "turso";
|
|
21
|
+
if (u.endsWith(".db") || u.endsWith(".sqlite") || u.endsWith(".sqlite3") || u.startsWith("file:")) return "sqlite";
|
|
22
|
+
return "postgres";
|
|
23
|
+
}
|
|
24
|
+
async function runVerifyDomain(args) {
|
|
25
|
+
const { default: chalk } = await import("chalk");
|
|
26
|
+
const { default: ora } = await import("ora");
|
|
27
|
+
console.log("");
|
|
28
|
+
console.log(chalk.bold(" AgenticMail Enterprise \u2014 Domain Verification"));
|
|
29
|
+
console.log("");
|
|
30
|
+
let domain = getFlag(args, "--domain");
|
|
31
|
+
let dnsChallenge;
|
|
32
|
+
let db = null;
|
|
33
|
+
let dbConnected = false;
|
|
34
|
+
const envDbUrl = process.env.DATABASE_URL;
|
|
35
|
+
if (envDbUrl) {
|
|
36
|
+
const dbType = detectDbType(envDbUrl);
|
|
37
|
+
const spinner = ora(`Connecting to database (${dbType})...`).start();
|
|
38
|
+
try {
|
|
39
|
+
const { createAdapter } = await import("./factory-4JY52C3T.js");
|
|
40
|
+
db = await createAdapter({ type: dbType, connectionString: envDbUrl });
|
|
41
|
+
await db.migrate();
|
|
42
|
+
const settings = await db.getSettings();
|
|
43
|
+
if (!domain && settings?.domain) domain = settings.domain;
|
|
44
|
+
if (settings?.domainDnsChallenge) dnsChallenge = settings.domainDnsChallenge;
|
|
45
|
+
dbConnected = true;
|
|
46
|
+
spinner.succeed(`Connected to ${dbType} database` + (domain ? ` (domain: ${domain})` : ""));
|
|
47
|
+
} catch (err) {
|
|
48
|
+
spinner.warn(`Could not connect via DATABASE_URL: ${err.message}`);
|
|
49
|
+
db = null;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (!dbConnected) {
|
|
53
|
+
const dbPath = getFlag(args, "--db");
|
|
54
|
+
const dbType = getFlag(args, "--db-type") || "sqlite";
|
|
55
|
+
if (dbPath) {
|
|
56
|
+
const spinner = ora(`Connecting to ${dbType} database...`).start();
|
|
57
|
+
try {
|
|
58
|
+
const { createAdapter } = await import("./factory-4JY52C3T.js");
|
|
59
|
+
db = await createAdapter({ type: dbType, connectionString: dbPath });
|
|
60
|
+
await db.migrate();
|
|
61
|
+
const settings = await db.getSettings();
|
|
62
|
+
if (!domain && settings?.domain) domain = settings.domain;
|
|
63
|
+
if (settings?.domainDnsChallenge) dnsChallenge = settings.domainDnsChallenge;
|
|
64
|
+
dbConnected = true;
|
|
65
|
+
spinner.succeed(`Connected to ${dbType} database`);
|
|
66
|
+
} catch {
|
|
67
|
+
spinner.warn("Could not read local database");
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (!domain) {
|
|
72
|
+
const { default: inquirer } = await import("inquirer");
|
|
73
|
+
const answer = await inquirer.prompt([{
|
|
74
|
+
type: "input",
|
|
75
|
+
name: "domain",
|
|
76
|
+
message: "Domain to verify:",
|
|
77
|
+
suffix: chalk.dim(" (e.g. agents.yourcompany.com)"),
|
|
78
|
+
validate: (v) => v.includes(".") || "Enter a valid domain",
|
|
79
|
+
filter: (v) => v.trim().toLowerCase()
|
|
80
|
+
}]);
|
|
81
|
+
domain = answer.domain;
|
|
82
|
+
}
|
|
83
|
+
const lock = new DomainLock();
|
|
84
|
+
const maxAttempts = hasFlag(args, "--poll") ? 5 : 1;
|
|
85
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
86
|
+
const spinner = ora(
|
|
87
|
+
maxAttempts > 1 ? `Checking DNS verification (attempt ${attempt}/${maxAttempts})...` : "Checking DNS verification..."
|
|
88
|
+
).start();
|
|
89
|
+
try {
|
|
90
|
+
const result = await lock.checkVerification(domain);
|
|
91
|
+
if (!result.success) {
|
|
92
|
+
spinner.fail("Verification check failed");
|
|
93
|
+
console.log("");
|
|
94
|
+
console.error(chalk.red(` ${result.error}`));
|
|
95
|
+
console.log("");
|
|
96
|
+
if (db) await db.disconnect();
|
|
97
|
+
process.exit(1);
|
|
98
|
+
}
|
|
99
|
+
if (result.verified) {
|
|
100
|
+
spinner.succeed("Domain verified!");
|
|
101
|
+
if (dbConnected && db) {
|
|
102
|
+
try {
|
|
103
|
+
await db.updateSettings({
|
|
104
|
+
domainStatus: "verified",
|
|
105
|
+
domainVerifiedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
106
|
+
});
|
|
107
|
+
console.log(chalk.dim(" Database updated with verified status."));
|
|
108
|
+
} catch {
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
console.log("");
|
|
112
|
+
console.log(chalk.green.bold(` \u2713 ${domain} is verified and protected.`));
|
|
113
|
+
console.log(chalk.dim(" Your deployment domain is locked. No other instance can claim it."));
|
|
114
|
+
console.log(chalk.dim(" The system now operates 100% offline \u2014 no outbound calls are made."));
|
|
115
|
+
console.log("");
|
|
116
|
+
if (db) await db.disconnect();
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
} catch (err) {
|
|
120
|
+
spinner.warn(`Check failed: ${err.message}`);
|
|
121
|
+
}
|
|
122
|
+
if (attempt < maxAttempts) {
|
|
123
|
+
const waitSpinner = ora(`DNS record not found yet. Retrying in 10 seconds...`).start();
|
|
124
|
+
await new Promise((r) => setTimeout(r, 1e4));
|
|
125
|
+
waitSpinner.stop();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
console.log("");
|
|
129
|
+
console.log(chalk.yellow(" DNS record not detected yet."));
|
|
130
|
+
console.log("");
|
|
131
|
+
console.log(chalk.bold(" Make sure this TXT record exists at your DNS provider:"));
|
|
132
|
+
console.log("");
|
|
133
|
+
console.log(` ${chalk.bold("Host:")} ${chalk.cyan(`_agenticmail-verify.${domain}`)}`);
|
|
134
|
+
console.log(` ${chalk.bold("Type:")} ${chalk.cyan("TXT")}`);
|
|
135
|
+
if (dnsChallenge) {
|
|
136
|
+
console.log(` ${chalk.bold("Value:")} ${chalk.cyan(dnsChallenge)}`);
|
|
137
|
+
} else {
|
|
138
|
+
console.log(` ${chalk.bold("Value:")} ${chalk.dim("(check your dashboard or setup output)")}`);
|
|
139
|
+
}
|
|
140
|
+
console.log("");
|
|
141
|
+
console.log(chalk.dim(" DNS propagation can take up to 48 hours."));
|
|
142
|
+
console.log(chalk.dim(" Run with --poll to retry automatically:"));
|
|
143
|
+
console.log(chalk.dim(` npx @agenticmail/enterprise verify-domain --domain ${domain} --poll`));
|
|
144
|
+
console.log("");
|
|
145
|
+
if (db) await db.disconnect();
|
|
146
|
+
}
|
|
147
|
+
export {
|
|
148
|
+
runVerifyDomain
|
|
149
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -14,10 +14,10 @@ switch (command) {
|
|
|
14
14
|
import("./cli-submit-skill-LDFJGSKO.js").then((m) => m.runSubmitSkill(args.slice(1))).catch(fatal);
|
|
15
15
|
break;
|
|
16
16
|
case "recover":
|
|
17
|
-
import("./cli-recover-
|
|
17
|
+
import("./cli-recover-MFF5AXLN.js").then((m) => m.runRecover(args.slice(1))).catch(fatal);
|
|
18
18
|
break;
|
|
19
19
|
case "verify-domain":
|
|
20
|
-
import("./cli-verify-
|
|
20
|
+
import("./cli-verify-BTSN7SQ2.js").then((m) => m.runVerifyDomain(args.slice(1))).catch(fatal);
|
|
21
21
|
break;
|
|
22
22
|
case "reset-password":
|
|
23
23
|
import("./cli-reset-password-SO5Y6MW7.js").then((m) => m.runResetPassword(args.slice(1))).catch(fatal);
|
|
@@ -57,14 +57,14 @@ Skill Development:
|
|
|
57
57
|
break;
|
|
58
58
|
case "serve":
|
|
59
59
|
case "start":
|
|
60
|
-
import("./cli-serve-
|
|
60
|
+
import("./cli-serve-BXI7TTNN.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
|
|
61
61
|
break;
|
|
62
62
|
case "agent":
|
|
63
|
-
import("./cli-agent-
|
|
63
|
+
import("./cli-agent-4DVE3NDA.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
|
|
64
64
|
break;
|
|
65
65
|
case "setup":
|
|
66
66
|
default:
|
|
67
|
-
import("./setup-
|
|
67
|
+
import("./setup-KIAPXKEX.js").then((m) => m.runSetupWizard()).catch(fatal);
|
|
68
68
|
break;
|
|
69
69
|
}
|
|
70
70
|
function fatal(err) {
|
package/dist/dashboard/app.js
CHANGED
|
@@ -27,6 +27,7 @@ import { VaultPage } from './pages/vault.js';
|
|
|
27
27
|
import { OrgChartPage } from './pages/org-chart.js';
|
|
28
28
|
import { TaskPipelinePage } from './pages/task-pipeline.js';
|
|
29
29
|
import { DatabaseAccessPage } from './pages/database-access.js';
|
|
30
|
+
import { OrganizationsPage } from './pages/organizations.js';
|
|
30
31
|
|
|
31
32
|
// ─── Toast System ────────────────────────────────────────
|
|
32
33
|
let toastId = 0;
|
|
@@ -211,6 +212,7 @@ function App() {
|
|
|
211
212
|
{ section: 'Overview', items: [{ id: 'dashboard', icon: I.dashboard, label: 'Dashboard' }] },
|
|
212
213
|
{ section: 'Management', items: [
|
|
213
214
|
{ id: 'agents', icon: I.agents, label: 'Agents' },
|
|
215
|
+
{ id: 'organizations', icon: I.building, label: 'Organizations' },
|
|
214
216
|
{ id: 'skills', icon: I.skills, label: 'Skills' },
|
|
215
217
|
{ id: 'community-skills', icon: I.marketplace, label: 'Community Skills' },
|
|
216
218
|
{ id: 'skill-connections', icon: I.link, label: 'Integrations & MCP' },
|
|
@@ -262,6 +264,7 @@ function App() {
|
|
|
262
264
|
'org-chart': OrgChartPage,
|
|
263
265
|
'task-pipeline': TaskPipelinePage,
|
|
264
266
|
'database-access': DatabaseAccessPage,
|
|
267
|
+
organizations: OrganizationsPage,
|
|
265
268
|
};
|
|
266
269
|
|
|
267
270
|
const navigateToAgent = (agentId) => { _setSelectedAgentId(agentId); history.pushState(null, '', '/dashboard/agents/' + agentId); };
|
|
@@ -56,5 +56,6 @@ export const I = {
|
|
|
56
56
|
chevronLeft: () => h('svg', S, h('polyline', { points: '15 18 9 12 15 6' })),
|
|
57
57
|
chevronRight: () => h('svg', S, h('polyline', { points: '9 18 15 12 9 6' })),
|
|
58
58
|
chevronDown: () => h('svg', S, h('polyline', { points: '6 9 12 15 18 9' })),
|
|
59
|
+
building: () => h('svg', S, h('path', { d: 'M3 21h18M3 10h18M3 7l9-4 9 4M4 10v11M20 10v11M8 14v.01M12 14v.01M16 14v.01M8 18v.01M12 18v.01M16 18v.01' })),
|
|
59
60
|
edit: () => h('svg', S, h('path', { d: 'M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7' }), h('path', { d: 'M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z' })),
|
|
60
61
|
};
|
|
@@ -363,6 +363,9 @@ export function OverviewSection(props) {
|
|
|
363
363
|
)
|
|
364
364
|
),
|
|
365
365
|
|
|
366
|
+
// ─── Organization & Knowledge Access ──────────────────
|
|
367
|
+
h(OrgAndKnowledgeCards, { agentId: agentId, agent: agent, engineAgent: engineAgent, toast: toast }),
|
|
368
|
+
|
|
366
369
|
// ─── Real-Time Status Card ────────────────────────────
|
|
367
370
|
h('div', { className: 'card', style: { marginBottom: 20 } },
|
|
368
371
|
h('div', { className: 'card-header', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
@@ -649,6 +652,113 @@ function _timeAgo(ts) {
|
|
|
649
652
|
return Math.floor(diff / 3600000) + 'h ago';
|
|
650
653
|
}
|
|
651
654
|
|
|
655
|
+
// ─── Organization & Knowledge Access Cards ────────────────
|
|
656
|
+
function OrgAndKnowledgeCards(props) {
|
|
657
|
+
var agentId = props.agentId;
|
|
658
|
+
var toast = props.toast;
|
|
659
|
+
|
|
660
|
+
var _orgs = useState([]);
|
|
661
|
+
var orgs = _orgs[0]; var setOrgs = _orgs[1];
|
|
662
|
+
var _currentOrg = useState(null);
|
|
663
|
+
var currentOrg = _currentOrg[0]; var setCurrentOrg = _currentOrg[1];
|
|
664
|
+
var _kbs = useState([]);
|
|
665
|
+
var kbs = _kbs[0]; var setKbs = _kbs[1];
|
|
666
|
+
var _kaGrants = useState([]);
|
|
667
|
+
var kaGrants = _kaGrants[0]; var setKaGrants = _kaGrants[1];
|
|
668
|
+
var _acting = useState('');
|
|
669
|
+
var acting = _acting[0]; var setActing = _acting[1];
|
|
670
|
+
var _selOrg = useState('');
|
|
671
|
+
var selOrg = _selOrg[0]; var setSelOrg = _selOrg[1];
|
|
672
|
+
|
|
673
|
+
useEffect(function() {
|
|
674
|
+
// Load orgs list
|
|
675
|
+
apiCall('/organizations').then(function(d) { setOrgs(d.organizations || []); }).catch(function() {});
|
|
676
|
+
// Load agent's current org
|
|
677
|
+
apiCall('/agents/' + agentId).then(function(a) {
|
|
678
|
+
if (a && a.client_org_id) {
|
|
679
|
+
setSelOrg(a.client_org_id);
|
|
680
|
+
apiCall('/organizations/' + a.client_org_id).then(function(o) { setCurrentOrg(o); }).catch(function() {});
|
|
681
|
+
}
|
|
682
|
+
}).catch(function() {});
|
|
683
|
+
// Load knowledge access
|
|
684
|
+
apiCall('/agents/' + agentId + '/knowledge-access').then(function(d) { setKaGrants(d.grants || []); }).catch(function() {});
|
|
685
|
+
// Load knowledge bases
|
|
686
|
+
engineCall('/knowledge').then(function(d) { setKbs(d.knowledgeBases || d || []); }).catch(function() {});
|
|
687
|
+
}, [agentId]);
|
|
688
|
+
|
|
689
|
+
var assignOrg = function(orgId) {
|
|
690
|
+
if (!orgId) {
|
|
691
|
+
setActing('unassign');
|
|
692
|
+
apiCall('/agents/' + agentId + '/unassign-org', { method: 'POST' }).then(function() {
|
|
693
|
+
setCurrentOrg(null); setSelOrg(''); toast('Organization unassigned', 'success');
|
|
694
|
+
}).catch(function(e) { toast(e.message, 'error'); }).finally(function() { setActing(''); });
|
|
695
|
+
return;
|
|
696
|
+
}
|
|
697
|
+
setActing('assign');
|
|
698
|
+
apiCall('/agents/' + agentId + '/assign-org', { method: 'POST', body: JSON.stringify({ orgId: orgId }) }).then(function() {
|
|
699
|
+
setSelOrg(orgId);
|
|
700
|
+
var org = orgs.find(function(o) { return o.id === orgId; });
|
|
701
|
+
setCurrentOrg(org || null);
|
|
702
|
+
toast('Organization assigned', 'success');
|
|
703
|
+
}).catch(function(e) { toast(e.message, 'error'); }).finally(function() { setActing(''); });
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
return h(Fragment, null,
|
|
707
|
+
h('div', { style: { display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16, marginBottom: 20 } },
|
|
708
|
+
// Organization card
|
|
709
|
+
h('div', { className: 'card' },
|
|
710
|
+
h('div', { className: 'card-header' }, 'Organization'),
|
|
711
|
+
h('div', { className: 'card-body' },
|
|
712
|
+
currentOrg
|
|
713
|
+
? h('div', null,
|
|
714
|
+
h('div', { style: { fontWeight: 600, fontSize: 14, marginBottom: 4 } }, currentOrg.name),
|
|
715
|
+
h('div', { style: { fontSize: 12, color: 'var(--text-muted)', fontFamily: 'var(--font-mono, monospace)', marginBottom: 8 } }, currentOrg.slug),
|
|
716
|
+
h('span', { className: 'badge badge-' + (currentOrg.is_active ? 'success' : 'warning') }, currentOrg.is_active ? 'Active' : 'Inactive')
|
|
717
|
+
)
|
|
718
|
+
: h('div', { style: { fontSize: 13, color: 'var(--text-muted)', marginBottom: 8 } }, 'Unassigned'),
|
|
719
|
+
h('div', { style: { marginTop: 10 } },
|
|
720
|
+
h('select', { className: 'input', value: selOrg, disabled: !!acting, onChange: function(e) { assignOrg(e.target.value); }, style: { width: '100%', fontSize: 12 } },
|
|
721
|
+
h('option', { value: '' }, '— No organization —'),
|
|
722
|
+
orgs.map(function(o) { return h('option', { key: o.id, value: o.id }, o.name); })
|
|
723
|
+
)
|
|
724
|
+
)
|
|
725
|
+
)
|
|
726
|
+
),
|
|
727
|
+
// Knowledge Access card
|
|
728
|
+
h('div', { className: 'card' },
|
|
729
|
+
h('div', { className: 'card-header' }, 'Knowledge Access'),
|
|
730
|
+
h('div', { className: 'card-body' },
|
|
731
|
+
kbs.length === 0
|
|
732
|
+
? h('div', { style: { fontSize: 13, color: 'var(--text-muted)' } }, 'No knowledge bases configured')
|
|
733
|
+
: h('div', { style: { display: 'flex', flexDirection: 'column', gap: 6 } },
|
|
734
|
+
kbs.map(function(kb) {
|
|
735
|
+
var grant = kaGrants.find(function(g) { return g.knowledge_base_id === kb.id; });
|
|
736
|
+
var accessType = grant ? grant.access_type : '';
|
|
737
|
+
return h('div', { key: kb.id, style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: '4px 0', borderBottom: '1px solid var(--border)' } },
|
|
738
|
+
h('span', { style: { fontSize: 13, fontWeight: 500 } }, kb.name || kb.id),
|
|
739
|
+
h('select', { className: 'input', value: accessType, style: { width: 120, fontSize: 11, padding: '2px 6px' }, onChange: function(e) {
|
|
740
|
+
var newVal = e.target.value;
|
|
741
|
+
var newGrants = kaGrants.filter(function(g) { return g.knowledge_base_id !== kb.id; });
|
|
742
|
+
if (newVal) newGrants.push({ knowledge_base_id: kb.id, access_type: newVal });
|
|
743
|
+
var payload = newGrants.map(function(g) { return { knowledgeBaseId: g.knowledge_base_id, accessType: g.access_type }; });
|
|
744
|
+
apiCall('/agents/' + agentId + '/knowledge-access', { method: 'PUT', body: JSON.stringify({ grants: payload }) })
|
|
745
|
+
.then(function() { setKaGrants(newGrants); toast('Knowledge access updated', 'success'); })
|
|
746
|
+
.catch(function(err) { toast(err.message, 'error'); });
|
|
747
|
+
}},
|
|
748
|
+
h('option', { value: '' }, 'No access'),
|
|
749
|
+
h('option', { value: 'read' }, 'Read'),
|
|
750
|
+
h('option', { value: 'contribute' }, 'Contribute'),
|
|
751
|
+
h('option', { value: 'both' }, 'Both')
|
|
752
|
+
)
|
|
753
|
+
);
|
|
754
|
+
})
|
|
755
|
+
)
|
|
756
|
+
)
|
|
757
|
+
)
|
|
758
|
+
)
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
|
|
652
762
|
// Inject pulse animation CSS if not already present
|
|
653
763
|
if (typeof document !== 'undefined' && !document.getElementById('_pulse_css')) {
|
|
654
764
|
var style = document.createElement('style');
|