@salesforce/platform-sdk 10.10.0 → 10.10.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/dist/analytics/index.js +1 -1
- package/dist/analytics/method-configs.d.ts +5 -3
- package/dist/analytics/method-configs.d.ts.map +1 -1
- package/dist/analytics/proxy.d.ts +0 -1
- package/dist/analytics/proxy.d.ts.map +1 -1
- package/dist/analytics-BVtlA4LT.js +143 -0
- package/dist/data/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/analytics/subscribe-wrapper.d.ts +0 -7
- package/dist/analytics/subscribe-wrapper.d.ts.map +0 -1
- package/dist/analytics-CEBjImO5.js +0 -174
package/dist/analytics/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
2
6
|
export interface MethodConfig {
|
|
3
7
|
/** Whether this method returns a Promise and should use activityAsync */
|
|
4
8
|
isAsync: boolean;
|
|
5
9
|
/** Extract dimensional tags from the method arguments */
|
|
6
10
|
extractTags: (args: unknown[], surface: string) => Record<string, string>;
|
|
7
|
-
/** Optional argument transformation (e.g., subscribe callback wrapping) */
|
|
8
|
-
wrapArgs?: (args: unknown[], instrumentation: Instrumentation) => unknown[];
|
|
9
11
|
}
|
|
10
12
|
export declare const methodConfigs: Record<string, MethodConfig>;
|
|
11
13
|
//# sourceMappingURL=method-configs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method-configs.d.ts","sourceRoot":"","sources":["../../src/analytics/method-configs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"method-configs.d.ts","sourceRoot":"","sources":["../../src/analytics/method-configs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC5B,yEAAyE;IACzE,OAAO,EAAE,OAAO,CAAC;IACjB,yDAAyD;IACzD,WAAW,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1E;AAMD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAkCtD,CAAC"}
|
|
@@ -7,7 +7,6 @@ import { Instrumentation } from './types';
|
|
|
7
7
|
* - Async methods are wrapped entirely inside activityAsync() for full
|
|
8
8
|
* round-trip timing. incrementCounter() records call counts and error rates.
|
|
9
9
|
* - Sync methods use incrementCounter() only.
|
|
10
|
-
* - The subscribe method wraps the callback argument via activity().
|
|
11
10
|
* - Unconfigured methods pass through unchanged.
|
|
12
11
|
*/
|
|
13
12
|
export declare function createInstrumentedProxy(sdk: ChatSDK, instrumentation: Instrumentation, surface: string): ChatSDK;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/analytics/proxy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/analytics/proxy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACtC,GAAG,EAAE,OAAO,EACZ,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,MAAM,GACb,OAAO,CAiCT"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { registerInstrumentedApp as A } from "o11y/client";
|
|
2
|
+
import { g as T } from "./surface-DX5JCZPQ.js";
|
|
3
|
+
import { getChatSDK as h } from "./chat/index.js";
|
|
4
|
+
import { r as v } from "./TelemetryUploader-DKkdppe9.js";
|
|
5
|
+
import { analyticsContextSchema as x, sessionSchema as _, pageViewSchema as C, errorContextSchema as k, interactionSchema as N, customEventSchema as F } from "o11y_schema/sf_mcpanalytics";
|
|
6
|
+
function L(e) {
|
|
7
|
+
const r = (s, f, m, o, u) => {
|
|
8
|
+
e.error(u ?? s);
|
|
9
|
+
}, a = (s) => {
|
|
10
|
+
e.error(s.reason);
|
|
11
|
+
};
|
|
12
|
+
return window.addEventListener("error", r), window.addEventListener("unhandledrejection", a), () => {
|
|
13
|
+
window.removeEventListener("error", r), window.removeEventListener("unhandledrejection", a);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
const D = "aJC", V = "sfdc.pftId", b = "sfdc.internalSession", J = "aJCEE000000FgYP4A0", w = /* @__PURE__ */ new Set(), O = /^aJC[0-9A-Za-z]{12}(?:[0-9A-Za-z]{3})?$/;
|
|
17
|
+
function E(e) {
|
|
18
|
+
return typeof e != "string" || e.length === 0 ? !1 : e.length !== 15 && e.length !== 18 ? (S(e, "Expected a 15- or 18-character Salesforce ID"), !1) : O.test(e) ? !0 : (S(e, `Expected a Product Feature Id (prefix "${D}", base62).`), !1);
|
|
19
|
+
}
|
|
20
|
+
function S(e, r) {
|
|
21
|
+
w.has(e) || (w.add(e), console.debug(`[platform-sdk:analytics] Ignoring invalid PFT Id "${e}". ${r}`));
|
|
22
|
+
}
|
|
23
|
+
function p(e, r) {
|
|
24
|
+
return { surface: r };
|
|
25
|
+
}
|
|
26
|
+
const K = {
|
|
27
|
+
callTool: {
|
|
28
|
+
isAsync: !0,
|
|
29
|
+
extractTags: (e, r) => ({ toolName: e[0]?.toolName ?? "unknown", surface: r })
|
|
30
|
+
},
|
|
31
|
+
setWidgetState: {
|
|
32
|
+
isAsync: !1,
|
|
33
|
+
extractTags: p
|
|
34
|
+
},
|
|
35
|
+
sendMessageToHost: {
|
|
36
|
+
isAsync: !0,
|
|
37
|
+
extractTags: p
|
|
38
|
+
},
|
|
39
|
+
openLink: {
|
|
40
|
+
isAsync: !0,
|
|
41
|
+
extractTags: p
|
|
42
|
+
},
|
|
43
|
+
readResource: {
|
|
44
|
+
isAsync: !0,
|
|
45
|
+
extractTags: (e, r) => ({ uri: e[0]?.uri ?? "unknown", surface: r })
|
|
46
|
+
},
|
|
47
|
+
setDisplayMode: {
|
|
48
|
+
isAsync: !0,
|
|
49
|
+
extractTags: (e, r) => ({ mode: e[0] ?? "unknown", surface: r })
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
function M(e, r, a) {
|
|
53
|
+
return new Proxy(e, {
|
|
54
|
+
get(s, f, m) {
|
|
55
|
+
const o = Reflect.get(s, f, m), u = K[f];
|
|
56
|
+
return !u || typeof o != "function" ? o : (...d) => {
|
|
57
|
+
const l = u.extractTags(d, a), n = `sdk.${String(f)}`;
|
|
58
|
+
return u.isAsync ? r.activityAsync(n, async () => {
|
|
59
|
+
try {
|
|
60
|
+
const g = await o.apply(s, d);
|
|
61
|
+
return r.incrementCounter(n, 1, !1, l), g;
|
|
62
|
+
} catch (g) {
|
|
63
|
+
throw r.incrementCounter(n, 1, !0, l), g;
|
|
64
|
+
}
|
|
65
|
+
}) : (r.incrementCounter(n, 1, !1, l), o.apply(s, d));
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
async function z(e) {
|
|
71
|
+
const { appId: r, clientSessionId: a } = e, s = T(), f = Date.now(), m = e.sdk ?? await h();
|
|
72
|
+
let o = null;
|
|
73
|
+
e.pftId !== void 0 && E(e.pftId) && (o = e.pftId);
|
|
74
|
+
const u = e.enforceInternalGate === !0;
|
|
75
|
+
let d = !1;
|
|
76
|
+
const l = A("mcp-widget", {
|
|
77
|
+
appPayloadProvider: {
|
|
78
|
+
getPayload: () => {
|
|
79
|
+
const t = !u || d;
|
|
80
|
+
return {
|
|
81
|
+
schema: x,
|
|
82
|
+
payload: {
|
|
83
|
+
appId: r,
|
|
84
|
+
surface: s,
|
|
85
|
+
...t ? { axlPftId: J } : {},
|
|
86
|
+
...t && o !== null ? { pftId: o } : {}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
clientSessionId: a
|
|
92
|
+
}), n = l, g = M(m, n, s), P = L(n);
|
|
93
|
+
let y;
|
|
94
|
+
e.transport && (y = v(l, {
|
|
95
|
+
onEnvelope: (t) => {
|
|
96
|
+
e.transport.enqueue(t);
|
|
97
|
+
}
|
|
98
|
+
}));
|
|
99
|
+
let I, c = !1;
|
|
100
|
+
return {
|
|
101
|
+
instrumentedSDK: g,
|
|
102
|
+
app: l,
|
|
103
|
+
trackEvent(t, i) {
|
|
104
|
+
c || n.log(F, {
|
|
105
|
+
eventName: t,
|
|
106
|
+
properties: i ? JSON.stringify(i) : ""
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
trackInteraction(t, i) {
|
|
110
|
+
c || n.log(N, {
|
|
111
|
+
elementId: t,
|
|
112
|
+
properties: i ? JSON.stringify(i) : ""
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
trackError(t, i) {
|
|
116
|
+
c || n.error(t, k, {
|
|
117
|
+
properties: i ? JSON.stringify(i) : ""
|
|
118
|
+
});
|
|
119
|
+
},
|
|
120
|
+
trackPageView(t) {
|
|
121
|
+
c || t !== I && (I = t, n.log(C, { componentRef: t }));
|
|
122
|
+
},
|
|
123
|
+
setPftId(t) {
|
|
124
|
+
c || E(t) && (o = t);
|
|
125
|
+
},
|
|
126
|
+
setInternalSession(t) {
|
|
127
|
+
c || (d = t === !0);
|
|
128
|
+
},
|
|
129
|
+
dispose() {
|
|
130
|
+
if (c) return;
|
|
131
|
+
c = !0, P();
|
|
132
|
+
const t = Date.now() - f;
|
|
133
|
+
n.log(_, { durationMs: t }), y?.dispose();
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
export {
|
|
138
|
+
J as A,
|
|
139
|
+
b as I,
|
|
140
|
+
V as P,
|
|
141
|
+
z as c,
|
|
142
|
+
E as v
|
|
143
|
+
};
|
package/dist/data/index.js
CHANGED
|
@@ -196,7 +196,7 @@ class ie {
|
|
|
196
196
|
})).structuredContent;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
const ce = "X-SFDC-Client-Name", ue = "X-SFDC-Client-Version", he = "@salesforce/platform-sdk", le = "10.10.
|
|
199
|
+
const ce = "X-SFDC-Client-Name", ue = "X-SFDC-Client-Version", he = "@salesforce/platform-sdk", le = "10.10.1", de = (t) => {
|
|
200
200
|
let e = y(ce, he, t);
|
|
201
201
|
return e = y(ue, le, e), u(e);
|
|
202
202
|
}, pe = "X-CSRF-Token";
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { createDataSDK as _, gql as d } from "./data/index.js";
|
|
|
8
8
|
import { createLightningSDK as y } from "./lightning/index.js";
|
|
9
9
|
import { c as M } from "./transport-D8xgRy7y.js";
|
|
10
10
|
import { T as u, r as L } from "./TelemetryUploader-DKkdppe9.js";
|
|
11
|
-
import { A as b, I as v, P as F, c as U, v as Y } from "./analytics-
|
|
11
|
+
import { A as b, I as v, P as F, c as U, v as Y } from "./analytics-BVtlA4LT.js";
|
|
12
12
|
export {
|
|
13
13
|
b as AXL_PFT_ID,
|
|
14
14
|
v as INTERNAL_SESSION_META_KEY,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/platform-sdk",
|
|
3
|
-
"version": "10.10.
|
|
3
|
+
"version": "10.10.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@conduit-client/service-pubsub": "3.19.6",
|
|
108
108
|
"@conduit-client/service-retry": "3.19.6",
|
|
109
109
|
"@conduit-client/utils": "3.19.6",
|
|
110
|
-
"@salesforce/jsonrpc": "^10.10.
|
|
110
|
+
"@salesforce/jsonrpc": "^10.10.1",
|
|
111
111
|
"@sf-embedding/sf-embedding-bridge": "2.2.1-rc.4"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Instrumentation } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Wraps a subscribe callback with o11y's sync activity()
|
|
4
|
-
* so callback execution time and errors are auto-captured.
|
|
5
|
-
*/
|
|
6
|
-
export declare function wrapSubscribeCallback(callback: () => void, instrumentation: Instrumentation): () => void;
|
|
7
|
-
//# sourceMappingURL=subscribe-wrapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe-wrapper.d.ts","sourceRoot":"","sources":["../../src/analytics/subscribe-wrapper.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;GAGG;AACH,wBAAgB,qBAAqB,CACpC,QAAQ,EAAE,MAAM,IAAI,EACpB,eAAe,EAAE,eAAe,GAC9B,MAAM,IAAI,CAIZ"}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { registerInstrumentedApp as S } from "o11y/client";
|
|
2
|
-
import { g as x } from "./surface-DX5JCZPQ.js";
|
|
3
|
-
import { getChatSDK as P } from "./chat/index.js";
|
|
4
|
-
import { r as h } from "./TelemetryUploader-DKkdppe9.js";
|
|
5
|
-
import { analyticsContextSchema as v, sessionSchema as _, pageViewSchema as k, errorContextSchema as C, interactionSchema as N, customEventSchema as F } from "o11y_schema/sf_mcpanalytics";
|
|
6
|
-
function L(e) {
|
|
7
|
-
const t = (s, d, m, a, c) => {
|
|
8
|
-
e.error(c ?? s);
|
|
9
|
-
}, n = (s) => {
|
|
10
|
-
e.error(s.reason);
|
|
11
|
-
};
|
|
12
|
-
return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
|
|
13
|
-
window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
const b = "aJC", q = "sfdc.pftId", V = "sfdc.internalSession", D = "aJCEE000000FgYP4A0", w = /* @__PURE__ */ new Set(), O = /^aJC[0-9A-Za-z]{12}(?:[0-9A-Za-z]{3})?$/;
|
|
17
|
-
function T(e) {
|
|
18
|
-
return typeof e != "string" || e.length === 0 ? !1 : e.length !== 15 && e.length !== 18 ? (E(e, "Expected a 15- or 18-character Salesforce ID"), !1) : O.test(e) ? !0 : (E(e, `Expected a Product Feature Id (prefix "${b}", base62).`), !1);
|
|
19
|
-
}
|
|
20
|
-
function E(e, t) {
|
|
21
|
-
w.has(e) || (w.add(e), console.debug(`[platform-sdk:analytics] Ignoring invalid PFT Id "${e}". ${t}`));
|
|
22
|
-
}
|
|
23
|
-
function u(e, t) {
|
|
24
|
-
return { surface: t };
|
|
25
|
-
}
|
|
26
|
-
const J = {
|
|
27
|
-
callTool: {
|
|
28
|
-
isAsync: !0,
|
|
29
|
-
extractTags: (e, t) => ({ toolName: e[0]?.toolName ?? "unknown", surface: t })
|
|
30
|
-
},
|
|
31
|
-
setWidgetState: {
|
|
32
|
-
isAsync: !1,
|
|
33
|
-
extractTags: u
|
|
34
|
-
},
|
|
35
|
-
getWidgetState: {
|
|
36
|
-
isAsync: !1,
|
|
37
|
-
extractTags: u
|
|
38
|
-
},
|
|
39
|
-
sendMessageToHost: {
|
|
40
|
-
isAsync: !0,
|
|
41
|
-
extractTags: u
|
|
42
|
-
},
|
|
43
|
-
openLink: {
|
|
44
|
-
isAsync: !0,
|
|
45
|
-
extractTags: u
|
|
46
|
-
},
|
|
47
|
-
subscribe: {
|
|
48
|
-
isAsync: !1,
|
|
49
|
-
extractTags: u,
|
|
50
|
-
wrapArgs: (e, t) => {
|
|
51
|
-
const n = e[0];
|
|
52
|
-
return [
|
|
53
|
-
() => {
|
|
54
|
-
t.activity("sdk.subscribe_callback", () => n());
|
|
55
|
-
}
|
|
56
|
-
];
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
readResource: {
|
|
60
|
-
isAsync: !0,
|
|
61
|
-
extractTags: (e, t) => ({ uri: e[0]?.uri ?? "unknown", surface: t })
|
|
62
|
-
},
|
|
63
|
-
setDisplayMode: {
|
|
64
|
-
isAsync: !0,
|
|
65
|
-
extractTags: (e, t) => ({ mode: e[0] ?? "unknown", surface: t })
|
|
66
|
-
},
|
|
67
|
-
accessToolOutput: {
|
|
68
|
-
isAsync: !1,
|
|
69
|
-
extractTags: u
|
|
70
|
-
},
|
|
71
|
-
accessToolInput: {
|
|
72
|
-
isAsync: !1,
|
|
73
|
-
extractTags: u
|
|
74
|
-
},
|
|
75
|
-
accessToolMetadata: {
|
|
76
|
-
isAsync: !1,
|
|
77
|
-
extractTags: u
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
function M(e, t, n) {
|
|
81
|
-
return new Proxy(e, {
|
|
82
|
-
get(s, d, m) {
|
|
83
|
-
const a = Reflect.get(s, d, m), c = J[d];
|
|
84
|
-
return !c || typeof a != "function" ? a : (...g) => {
|
|
85
|
-
const f = c.extractTags(g, n), o = c.wrapArgs ? c.wrapArgs(g, t) : g, p = `sdk.${String(d)}`;
|
|
86
|
-
return c.isAsync ? t.activityAsync(p, async () => {
|
|
87
|
-
try {
|
|
88
|
-
const y = await a.apply(
|
|
89
|
-
s,
|
|
90
|
-
o
|
|
91
|
-
);
|
|
92
|
-
return t.incrementCounter(p, 1, !1, f), y;
|
|
93
|
-
} catch (y) {
|
|
94
|
-
throw t.incrementCounter(p, 1, !0, f), y;
|
|
95
|
-
}
|
|
96
|
-
}) : (t.incrementCounter(p, 1, !1, f), a.apply(s, o));
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
async function z(e) {
|
|
102
|
-
const { appId: t, clientSessionId: n } = e, s = x(), d = Date.now(), m = e.sdk ?? await P();
|
|
103
|
-
let a = null;
|
|
104
|
-
e.pftId !== void 0 && T(e.pftId) && (a = e.pftId);
|
|
105
|
-
const c = e.enforceInternalGate === !0;
|
|
106
|
-
let g = !1;
|
|
107
|
-
const f = S("mcp-widget", {
|
|
108
|
-
appPayloadProvider: {
|
|
109
|
-
getPayload: () => {
|
|
110
|
-
const r = !c || g;
|
|
111
|
-
return {
|
|
112
|
-
schema: v,
|
|
113
|
-
payload: {
|
|
114
|
-
appId: t,
|
|
115
|
-
surface: s,
|
|
116
|
-
...r ? { axlPftId: D } : {},
|
|
117
|
-
...r && a !== null ? { pftId: a } : {}
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
clientSessionId: n
|
|
123
|
-
}), o = f, p = M(m, o, s), y = L(o);
|
|
124
|
-
let A;
|
|
125
|
-
e.transport && (A = h(f, {
|
|
126
|
-
onEnvelope: (r) => {
|
|
127
|
-
e.transport.enqueue(r);
|
|
128
|
-
}
|
|
129
|
-
}));
|
|
130
|
-
let I, i = !1;
|
|
131
|
-
return {
|
|
132
|
-
instrumentedSDK: p,
|
|
133
|
-
app: f,
|
|
134
|
-
trackEvent(r, l) {
|
|
135
|
-
i || o.log(F, {
|
|
136
|
-
eventName: r,
|
|
137
|
-
properties: l ? JSON.stringify(l) : ""
|
|
138
|
-
});
|
|
139
|
-
},
|
|
140
|
-
trackInteraction(r, l) {
|
|
141
|
-
i || o.log(N, {
|
|
142
|
-
elementId: r,
|
|
143
|
-
properties: l ? JSON.stringify(l) : ""
|
|
144
|
-
});
|
|
145
|
-
},
|
|
146
|
-
trackError(r, l) {
|
|
147
|
-
i || o.error(r, C, {
|
|
148
|
-
properties: l ? JSON.stringify(l) : ""
|
|
149
|
-
});
|
|
150
|
-
},
|
|
151
|
-
trackPageView(r) {
|
|
152
|
-
i || r !== I && (I = r, o.log(k, { componentRef: r }));
|
|
153
|
-
},
|
|
154
|
-
setPftId(r) {
|
|
155
|
-
i || T(r) && (a = r);
|
|
156
|
-
},
|
|
157
|
-
setInternalSession(r) {
|
|
158
|
-
i || (g = r === !0);
|
|
159
|
-
},
|
|
160
|
-
dispose() {
|
|
161
|
-
if (i) return;
|
|
162
|
-
i = !0, y();
|
|
163
|
-
const r = Date.now() - d;
|
|
164
|
-
o.log(_, { durationMs: r }), A?.dispose();
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
export {
|
|
169
|
-
D as A,
|
|
170
|
-
V as I,
|
|
171
|
-
q as P,
|
|
172
|
-
z as c,
|
|
173
|
-
T as v
|
|
174
|
-
};
|