MCPcopy Create free account
hub / github.com/ORCID/orcid-angular / ee

Function ee

scripts/new-relic.runtime.js:2542–2677  ·  view source on GitHub ↗
(e, r, n)

Source from the content-addressed store, hash-verified

2540 )
2541 }
2542 function ee(e, r, n) {
2543 ;(0, h.R)(54, 'newrelic.register'),
2544 (r ||= {}),
2545 (r.type = H.f.MFE),
2546 (r.licenseKey ||= e.info.licenseKey),
2547 (r.blocked = !1),
2548 (r.parent = n || {}),
2549 ('object' != typeof r.tags ||
2550 null === r.tags ||
2551 Array.isArray(r.tags)) &&
2552 (r.tags = {})
2553 const i = X(),
2554 a = {}
2555 Object.entries(r.tags).forEach(([e, t]) => {
2556 J.includes(e) || (a['source.'.concat(e)] = t)
2557 }),
2558 (r.isolated ??= !0)
2559 let c = () => {}
2560 const d = e.runtime.registeredEntities
2561 if (!r.isolated) {
2562 const e = d.find(
2563 ({
2564 metadata: {
2565 target: { id: e },
2566 },
2567 }) => e === r.id && !r.isolated
2568 )
2569 if (e) return e
2570 }
2571 const u = (e) => {
2572 ;(r.blocked = !0), (c = e)
2573 }
2574 function l(e) {
2575 return (
2576 ('string' == typeof e && !!e.trim() && e.trim().length < 501) ||
2577 'number' == typeof e
2578 )
2579 }
2580 e.init.api.allow_registered_children || u((0, m.J)(() => (0, h.R)(55))),
2581 (l(r.id) && l(r.name)) || u((0, m.J)(() => (0, h.R)(48, r)))
2582 const f = {
2583 addPageAction: (t, n = {}) => y(F, [t, { ...a, ...n }, e], r),
2584 deregister: () => {
2585 g(), u((0, m.J)(() => (0, h.R)(68)))
2586 },
2587 log: (t, n = {}) =>
2588 y(
2589 U,
2590 [
2591 t,
2592 {
2593 ...n,
2594 customAttributes: { ...a, ...(n.customAttributes || {}) },
2595 },
2596 e,
2597 ],
2598 r
2599 ),

Callers 1

QFunction · 0.85

Calls 7

XFunction · 0.85
uFunction · 0.85
lFunction · 0.85
gFunction · 0.85
vFunction · 0.85
pFunction · 0.85
yFunction · 0.70

Tested by

no test coverage detected