gather-vue 8.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.
- package/README.md +64 -0
- package/dist/.htaccess +1 -0
- package/dist/App-B7KWoHRH.js +160 -0
- package/dist/App-B7KWoHRH.js.gz +0 -0
- package/dist/App-C03tW0-W.js +405 -0
- package/dist/App-C03tW0-W.js.gz +0 -0
- package/dist/BannerExample-CRj1iMwh.js +77 -0
- package/dist/BannerExample-CRj1iMwh.js.gz +0 -0
- package/dist/BannerExample-DLN6d9M0.js +84 -0
- package/dist/BannerExample-DLN6d9M0.js.gz +0 -0
- package/dist/CallToAction-BbJ-zDFa.js +3493 -0
- package/dist/CallToAction-BbJ-zDFa.js.gz +0 -0
- package/dist/CallToAction-jAi8aaI-.js +35 -0
- package/dist/CallToAction-jAi8aaI-.js.gz +0 -0
- package/dist/Card-B1Pdd5BL.js +202 -0
- package/dist/Card-B1Pdd5BL.js.gz +0 -0
- package/dist/Card-qMo1jrfb.js +699 -0
- package/dist/Card-qMo1jrfb.js.gz +0 -0
- package/dist/CloseCardButton-CL_3xkAF.js +71 -0
- package/dist/CloseCardButton-CL_3xkAF.js.gz +0 -0
- package/dist/Editor-DXSZFkEM.js +149 -0
- package/dist/Editor-DXSZFkEM.js.gz +0 -0
- package/dist/EmailExistsView-CX1ijN0R.js +72 -0
- package/dist/EmailExistsView-CX1ijN0R.js.gz +0 -0
- package/dist/EmailInvitation-BVFicmrK.js +22 -0
- package/dist/EmailView-DdaSnKFq.js +84 -0
- package/dist/EmailView-DdaSnKFq.js.gz +0 -0
- package/dist/FriendBannerExample-C8QmPZyP.js +76 -0
- package/dist/FriendBannerExample-C8QmPZyP.js.gz +0 -0
- package/dist/FriendConfirmation-B-RemAoP.js +22 -0
- package/dist/FriendForm-CunLFX_H.js +255 -0
- package/dist/FriendForm-CunLFX_H.js.gz +0 -0
- package/dist/FriendOptIn-bp4udUYv.js +27 -0
- package/dist/FriendPending-cFjgyL8g.js +22 -0
- package/dist/FriendPitch-BhSs2eLR.js +19 -0
- package/dist/FriendPitch-CAS1c3Co.js +33 -0
- package/dist/FriendSuccess-uxEdomAY.js +22 -0
- package/dist/Invitations-hprUCIvW.js +27 -0
- package/dist/InviteRoot-Dima8d2G.js +252 -0
- package/dist/InviteRoot-Dima8d2G.js.gz +0 -0
- package/dist/LaunchButton-BQw42WVn.js +18 -0
- package/dist/MazBtn.1qp5aQ4N-DU0ii1Xr.js +103 -0
- package/dist/MazBtn.1qp5aQ4N-DU0ii1Xr.js.gz +0 -0
- package/dist/MazCheckbox.UAnkvAoS-pse3PCQf.js +149 -0
- package/dist/MazCheckbox.UAnkvAoS-pse3PCQf.js.gz +0 -0
- package/dist/MazIcon.B5hPzeLk-C20gse35.js +103 -0
- package/dist/MazIcon.B5hPzeLk-C20gse35.js.gz +0 -0
- package/dist/MazPhoneNumberInput-Cz50Ts4U.js +4751 -0
- package/dist/MazPhoneNumberInput-Cz50Ts4U.js.gz +0 -0
- package/dist/MazSpinner.DZT5jj-c-y1IYJMcd.js +34 -0
- package/dist/MazSpinner.DZT5jj-c-y1IYJMcd.js.gz +0 -0
- package/dist/Menu-BsKr40BO.js +21377 -0
- package/dist/Menu-BsKr40BO.js.gz +0 -0
- package/dist/Message-D4PAgcHO.js +22 -0
- package/dist/MessageCard-CC74qCir.js +74 -0
- package/dist/MessageCard-CC74qCir.js.gz +0 -0
- package/dist/MessageView-BKAIrwj7.js +88 -0
- package/dist/MessageView-BKAIrwj7.js.gz +0 -0
- package/dist/PendingApprovalCard-Dzs0UxBO.js +48 -0
- package/dist/PendingApprovalCard-Dzs0UxBO.js.gz +0 -0
- package/dist/PendingApprovalView-V-OUYSnK.js +33 -0
- package/dist/ReferralButton-CEue5qud.js +18 -0
- package/dist/ReferralFailedView-3Ua13t4V.js +74 -0
- package/dist/ReferralFailedView-3Ua13t4V.js.gz +0 -0
- package/dist/ReferredConfirmCard-iwgkcZCm.js +48 -0
- package/dist/ReferredConfirmCard-iwgkcZCm.js.gz +0 -0
- package/dist/ReferredConfirmView-DS1RNBwP.js +33 -0
- package/dist/ReferredSuccessCard-Dg-a4FYr.js +209 -0
- package/dist/ReferredSuccessCard-Dg-a4FYr.js.gz +0 -0
- package/dist/ReferredSuccessView-ChVztlUr.js +33 -0
- package/dist/ReferredView-7HezoVIA.js +98 -0
- package/dist/ReferredView-7HezoVIA.js.gz +0 -0
- package/dist/RewardCard-CwU2X2Yo.js +197 -0
- package/dist/RewardCard-CwU2X2Yo.js.gz +0 -0
- package/dist/Rewards-DdyEwCyy.js +27 -0
- package/dist/RewardsRoot-CnQfyjC6.js +198 -0
- package/dist/RewardsRoot-CnQfyjC6.js.gz +0 -0
- package/dist/Root-bUfnZpPP.js +17 -0
- package/dist/ShareInvitation-SAgC-8YA.js +22 -0
- package/dist/SignIn-CroW3mY6.js +36 -0
- package/dist/SignIn-CroW3mY6.js.gz +0 -0
- package/dist/SignIn-g32Hg2or.js +17 -0
- package/dist/SignInTextArea-DBRk6x09.js +17 -0
- package/dist/SignUpFormCard-Cail4V4M.js +287 -0
- package/dist/SignUpFormCard-Cail4V4M.js.gz +0 -0
- package/dist/SignUpView-a7LPgEeX.js +368 -0
- package/dist/SignUpView-a7LPgEeX.js.gz +0 -0
- package/dist/SignUpView-uujOX5hN.js +103 -0
- package/dist/SignUpView-uujOX5hN.js.gz +0 -0
- package/dist/SocialView-CbBZTB7Z.js +87 -0
- package/dist/SocialView-CbBZTB7Z.js.gz +0 -0
- package/dist/Stats-DtS-GXsI.js +22 -0
- package/dist/StatsView-fX-VznRc.js +90 -0
- package/dist/StatsView-fX-VznRc.js.gz +0 -0
- package/dist/Success-k06CZz0K.js +40 -0
- package/dist/Success-k06CZz0K.js.gz +0 -0
- package/dist/SuccessCard-C1iF1j2W.js +219 -0
- package/dist/SuccessCard-C1iF1j2W.js.gz +0 -0
- package/dist/SuccessView-CDUVkpSQ.js +77 -0
- package/dist/SuccessView-CDUVkpSQ.js.gz +0 -0
- package/dist/TextArea-DFfa9A93.js +17 -0
- package/dist/TextAreaCard-D_VfEHME.js +34 -0
- package/dist/TextAreaCard-D_VfEHME.js.gz +0 -0
- package/dist/UserView-DnD929IT.js +96 -0
- package/dist/UserView-DnD929IT.js.gz +0 -0
- package/dist/WhatsAppShare-B40Ouvds.js +59 -0
- package/dist/WhatsAppShare-B40Ouvds.js.gz +0 -0
- package/dist/agent-session-Xh6dZlhc.js +298 -0
- package/dist/agent-session-Xh6dZlhc.js.gz +0 -0
- package/dist/aggregate-base-C6N8Ymd5.js +830 -0
- package/dist/aggregate-base-C6N8Ymd5.js.gz +0 -0
- package/dist/bel-serializer-DMbFBZ6U.js +51 -0
- package/dist/bel-serializer-DMbFBZ6U.js.gz +0 -0
- package/dist/browser-q7cvfJ-2.js +366 -0
- package/dist/browser-q7cvfJ-2.js.gz +0 -0
- package/dist/cart.js +5 -0
- package/dist/cart.js.gz +0 -0
- package/dist/check.C9Q_W85g-DmgtOx7Q.js +30 -0
- package/dist/chevron-down.BkvtON3b-RNrTKYcy.js +30 -0
- package/dist/content-5VAQ1vQ0.js +4 -0
- package/dist/event-origin-BSW5uum9.js +13 -0
- package/dist/examples.mobile.json.tW3aL0qI-tW3aL0qI.js +4 -0
- package/dist/examples.mobile.json.tW3aL0qI-tW3aL0qI.js.gz +0 -0
- package/dist/eye-slash.BoO00xzs-CULY_lvM.js +30 -0
- package/dist/eye.f8zAUc30-Yr89kafZ.js +43 -0
- package/dist/eye.f8zAUc30-Yr89kafZ.js.gz +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/first-paint-B61SrVKm.js +453 -0
- package/dist/first-paint-B61SrVKm.js.gz +0 -0
- package/dist/gather-vue.css +5 -0
- package/dist/gather-vue.css.gz +0 -0
- package/dist/gather-widget.es.js +5 -0
- package/dist/gather-widget.umd.js +263 -0
- package/dist/gather-widget.umd.js.gz +0 -0
- package/dist/gather_widget.css +58 -0
- package/dist/gather_widget.css.gz +0 -0
- package/dist/gather_widget.js +72 -0
- package/dist/gather_widget.js.gz +0 -0
- package/dist/iframe-BELrOJ1p.js +6 -0
- package/dist/index-3lvNtPTE.js +327 -0
- package/dist/index-3lvNtPTE.js.gz +0 -0
- package/dist/index-BDyGxL1x.js +255 -0
- package/dist/index-BDyGxL1x.js.gz +0 -0
- package/dist/index-BF9haAFD.js +343 -0
- package/dist/index-BF9haAFD.js.gz +0 -0
- package/dist/index-BMIST_QA.js +128 -0
- package/dist/index-BMIST_QA.js.gz +0 -0
- package/dist/index-BdWnMhAc.js +235 -0
- package/dist/index-BdWnMhAc.js.gz +0 -0
- package/dist/index-BioZsJbf.js +190 -0
- package/dist/index-BioZsJbf.js.gz +0 -0
- package/dist/index-BzOcD8v-.js +166 -0
- package/dist/index-BzOcD8v-.js.gz +0 -0
- package/dist/index-C8pB9mUQ.js +147 -0
- package/dist/index-C8pB9mUQ.js.gz +0 -0
- package/dist/index-C_ougoWd.js +426 -0
- package/dist/index-C_ougoWd.js.gz +0 -0
- package/dist/index-CoRlIGDo.js +513 -0
- package/dist/index-CoRlIGDo.js.gz +0 -0
- package/dist/index-CyWBxUBS.js +291 -0
- package/dist/index-CyWBxUBS.js.gz +0 -0
- package/dist/index-DijQHge7.js +325 -0
- package/dist/index-DijQHge7.js.gz +0 -0
- package/dist/magnifying-glass.-nBiyXot-CuA_mltt.js +30 -0
- package/dist/main-DPldah1M.js +40243 -0
- package/dist/main-DPldah1M.js.gz +0 -0
- package/dist/nav-timing-B-TNQpyK.js +31 -0
- package/dist/nav-timing-B-TNQpyK.js.gz +0 -0
- package/dist/no-photography.BJX8HSus-BJX8HSus.js +4 -0
- package/dist/no-symbol.CIgKzsrB-3PuxVsDY.js +30 -0
- package/dist/recorder-PHZWRV-S.js +8271 -0
- package/dist/recorder-PHZWRV-S.js.gz +0 -0
- package/dist/stylesheet-evaluator-B4P289vW.js +86 -0
- package/dist/stylesheet-evaluator-B4P289vW.js.gz +0 -0
- package/dist/time-to-first-byte-kiwh1xjs.js +29 -0
- package/dist/traverse-Bw4y1x4D.js +8 -0
- package/dist/type-check-Bp684oBR.js +6 -0
- package/package.json +89 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var h = (i) => {
|
|
3
|
+
throw TypeError(i);
|
|
4
|
+
};
|
|
5
|
+
var I = (i, e, t) => e in i ? C(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
6
|
+
var g = (i, e, t) => I(i, typeof e != "symbol" ? e + "" : e, t), F = (i, e, t) => e.has(i) || h("Cannot " + t);
|
|
7
|
+
var d = (i, e, t) => (F(i, e, "read from private field"), t ? t.call(i) : e.get(i)), p = (i, e, t) => e.has(i) ? h("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t);
|
|
8
|
+
import { g as N, a as R, b as D, n as y } from "./bel-serializer-DMbFBZ6U.js";
|
|
9
|
+
import { i as m, Y as S, Z as v, d as A, $ as L, D as U, y as _ } from "./main-DPldah1M.js";
|
|
10
|
+
import { c as x, A as V } from "./aggregate-base-C6N8Ymd5.js";
|
|
11
|
+
import { V as T, b as f, D as k, r as w, o as M, f as O, a as H } from "./first-paint-B61SrVKm.js";
|
|
12
|
+
import { t as b } from "./time-to-first-byte-kiwh1xjs.js";
|
|
13
|
+
import { e as P } from "./event-origin-BSW5uum9.js";
|
|
14
|
+
const l = new T(f.CUMULATIVE_LAYOUT_SHIFT, (i) => i);
|
|
15
|
+
m && k(({
|
|
16
|
+
value: i,
|
|
17
|
+
attribution: e,
|
|
18
|
+
id: t
|
|
19
|
+
}) => {
|
|
20
|
+
const r = {
|
|
21
|
+
metricId: t,
|
|
22
|
+
largestShiftTarget: e.largestShiftTarget,
|
|
23
|
+
largestShiftTime: e.largestShiftTime,
|
|
24
|
+
largestShiftValue: e.largestShiftValue,
|
|
25
|
+
loadState: e.loadState
|
|
26
|
+
};
|
|
27
|
+
l.update({
|
|
28
|
+
value: i,
|
|
29
|
+
attrs: r
|
|
30
|
+
});
|
|
31
|
+
}, {
|
|
32
|
+
reportAllChanges: !0
|
|
33
|
+
});
|
|
34
|
+
const E = new T(f.INTERACTION_TO_NEXT_PAINT);
|
|
35
|
+
m && w(({
|
|
36
|
+
value: i,
|
|
37
|
+
attribution: e,
|
|
38
|
+
id: t
|
|
39
|
+
}) => {
|
|
40
|
+
const r = {
|
|
41
|
+
metricId: t,
|
|
42
|
+
eventTarget: e.interactionTarget,
|
|
43
|
+
// event* attrs deprecated in v4, kept for NR backwards compatibility
|
|
44
|
+
eventTime: e.interactionTime,
|
|
45
|
+
// event* attrs deprecated in v4, kept for NR backwards compatibility
|
|
46
|
+
interactionTarget: e.interactionTarget,
|
|
47
|
+
interactionTime: e.interactionTime,
|
|
48
|
+
interactionType: e.interactionType,
|
|
49
|
+
inputDelay: e.inputDelay,
|
|
50
|
+
nextPaintTime: e.nextPaintTime,
|
|
51
|
+
processingDuration: e.processingDuration,
|
|
52
|
+
presentationDelay: e.presentationDelay,
|
|
53
|
+
loadState: e.loadState
|
|
54
|
+
};
|
|
55
|
+
E.update({
|
|
56
|
+
value: i,
|
|
57
|
+
attrs: r
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
const u = new T(f.LARGEST_CONTENTFUL_PAINT);
|
|
61
|
+
m && M(({
|
|
62
|
+
value: i,
|
|
63
|
+
attribution: e
|
|
64
|
+
}) => {
|
|
65
|
+
var n;
|
|
66
|
+
if (S || u.isValid) return;
|
|
67
|
+
let t;
|
|
68
|
+
const r = e.lcpEntry;
|
|
69
|
+
r && (t = {
|
|
70
|
+
size: r.size,
|
|
71
|
+
eid: r.id,
|
|
72
|
+
element: e.element,
|
|
73
|
+
timeToFirstByte: e.timeToFirstByte,
|
|
74
|
+
resourceLoadDelay: e.resourceLoadDelay,
|
|
75
|
+
resourceLoadDuration: e.resourceLoadDuration,
|
|
76
|
+
resourceLoadTime: e.resourceLoadDuration,
|
|
77
|
+
// kept for NR backwards compatibility, deprecated in v3->v4
|
|
78
|
+
elementRenderDelay: e.elementRenderDelay
|
|
79
|
+
}, e.url && (t.elUrl = x(e.url)), (n = r.element) != null && n.tagName && (t.elTag = r.element.tagName)), u.update({
|
|
80
|
+
value: i,
|
|
81
|
+
attrs: t
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
var a;
|
|
85
|
+
class z extends V {
|
|
86
|
+
constructor(t) {
|
|
87
|
+
super(t, v);
|
|
88
|
+
p(this, a, ({
|
|
89
|
+
name: t,
|
|
90
|
+
value: r,
|
|
91
|
+
attrs: n
|
|
92
|
+
}) => {
|
|
93
|
+
this.addTiming(t, r, n);
|
|
94
|
+
});
|
|
95
|
+
this.curSessEndRecorded = !1, this.firstIxnRecorded = !1, A("docHidden", (r) => this.endCurrentSession(r), this.featureName, this.ee), A("winPagehide", (r) => this.addTiming("unload", r, null), this.featureName, this.ee), this.waitForFlags([]).then(() => {
|
|
96
|
+
O.subscribe(d(this, a)), H.subscribe(d(this, a)), u.subscribe(d(this, a)), E.subscribe(d(this, a)), b.subscribe(({
|
|
97
|
+
attrs: r
|
|
98
|
+
}) => {
|
|
99
|
+
this.addTiming("load", Math.round(r.navigationEntry.loadEventEnd));
|
|
100
|
+
}), L(() => {
|
|
101
|
+
const {
|
|
102
|
+
name: r,
|
|
103
|
+
value: n,
|
|
104
|
+
attrs: s
|
|
105
|
+
} = l.current;
|
|
106
|
+
n !== void 0 && this.addTiming(r, n * 1e3, s);
|
|
107
|
+
}, !0, !0), this.drain();
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Add the time of _document visibilitychange to hidden_ to the next PVT harvest == NRDB pageHide attr.
|
|
112
|
+
* @param {number} timestamp
|
|
113
|
+
*/
|
|
114
|
+
endCurrentSession(t) {
|
|
115
|
+
this.curSessEndRecorded || (this.addTiming("pageHide", t, null), this.curSessEndRecorded = !0);
|
|
116
|
+
}
|
|
117
|
+
addTiming(t, r, n) {
|
|
118
|
+
n = n || {}, B(n), t !== f.CUMULATIVE_LAYOUT_SHIFT && l.current.value >= 0 && (n.cls = l.current.value);
|
|
119
|
+
const s = {
|
|
120
|
+
name: t,
|
|
121
|
+
value: r,
|
|
122
|
+
attrs: n
|
|
123
|
+
};
|
|
124
|
+
return this.events.add(s), U("pvtAdded", [t, r, n], void 0, _.sessionTrace, this.ee), this.checkForFirstInteraction(), s;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Checks the performance API to see if the agent can set a first interaction event value
|
|
128
|
+
* @returns {void}
|
|
129
|
+
*/
|
|
130
|
+
checkForFirstInteraction() {
|
|
131
|
+
if (this.firstIxnRecorded || S || !performance) return;
|
|
132
|
+
const t = performance.getEntriesByType("first-input")[0];
|
|
133
|
+
t && (this.firstIxnRecorded = !0, this.addTiming("fi", t.startTime, {
|
|
134
|
+
type: t.name,
|
|
135
|
+
eventTarget: P(t.target),
|
|
136
|
+
loadState: document.readyState
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
appendGlobalCustomAttributes(t) {
|
|
140
|
+
var r = t.attrs || {}, n = ["size", "eid", "cls", "type", "fid", "elTag", "elUrl", "net-type", "net-etype", "net-rtt", "net-dlink"];
|
|
141
|
+
Object.entries(this.agentRef.info.jsAttributes || {}).forEach(([s, o]) => {
|
|
142
|
+
n.indexOf(s) < 0 && (r[s] = o);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
preHarvestChecks() {
|
|
146
|
+
return this.checkForFirstInteraction(), super.preHarvestChecks();
|
|
147
|
+
}
|
|
148
|
+
// serialize array of timing data
|
|
149
|
+
serializer(t) {
|
|
150
|
+
for (var r = N(this.agentRef.runtime.obfuscator), n = "bel.6;", s = 0; s < t.length; s++) {
|
|
151
|
+
var o = t[s];
|
|
152
|
+
n += "e,", n += r(o.name) + ",", n += R(o.value, y, !1) + ",", this.appendGlobalCustomAttributes(o);
|
|
153
|
+
var c = D(o.attrs, r);
|
|
154
|
+
c && c.length > 0 && (n += y(c.length) + ";" + c.join(";")), s + 1 < t.length && (n += ";");
|
|
155
|
+
}
|
|
156
|
+
return n;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
a = new WeakMap(), g(z, "featureName", v);
|
|
160
|
+
function B(i) {
|
|
161
|
+
var e = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
162
|
+
e && (e.type && (i["net-type"] = e.type), e.effectiveType && (i["net-etype"] = e.effectiveType), e.rtt && (i["net-rtt"] = e.rtt), e.downlink && (i["net-dlink"] = e.downlink));
|
|
163
|
+
}
|
|
164
|
+
export {
|
|
165
|
+
z as Aggregate
|
|
166
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
var Q = Object.defineProperty;
|
|
2
|
+
var G = (t, e, r) => e in t ? Q(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var N = (t, e, r) => G(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { Q as v, R as I, d as x, t as c, K as q, y as l, D as R } from "./main-DPldah1M.js";
|
|
5
|
+
import { A as z } from "./aggregate-base-C6N8Ymd5.js";
|
|
6
|
+
import { i as U } from "./type-check-Bp684oBR.js";
|
|
7
|
+
import { g as F, n as f, a as y, b as O } from "./bel-serializer-DMbFBZ6U.js";
|
|
8
|
+
function _({
|
|
9
|
+
body: t,
|
|
10
|
+
query: e
|
|
11
|
+
} = {}) {
|
|
12
|
+
if (!(!t && !e))
|
|
13
|
+
try {
|
|
14
|
+
const r = w(M(t));
|
|
15
|
+
if (r) return r;
|
|
16
|
+
const i = L(B(e));
|
|
17
|
+
if (i) return i;
|
|
18
|
+
} catch {
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function L(t) {
|
|
22
|
+
if (typeof t != "object" || !t.query || typeof t.query != "string") return;
|
|
23
|
+
const e = t.query.trim().match(/^(query|mutation|subscription)\s?(\w*)/), r = e == null ? void 0 : e[1];
|
|
24
|
+
return r ? {
|
|
25
|
+
operationName: t.operationName || (e == null ? void 0 : e[2]) || "Anonymous",
|
|
26
|
+
// the operation name of the indiv query
|
|
27
|
+
operationType: r,
|
|
28
|
+
// query, mutation, or subscription,
|
|
29
|
+
operationFramework: "GraphQL"
|
|
30
|
+
} : void 0;
|
|
31
|
+
}
|
|
32
|
+
function w(t) {
|
|
33
|
+
if (!t) return;
|
|
34
|
+
Array.isArray(t) || (t = [t]);
|
|
35
|
+
const e = [], r = [];
|
|
36
|
+
for (let i of t) {
|
|
37
|
+
const n = L(i);
|
|
38
|
+
n && (e.push(n.operationName), r.push(n.operationType));
|
|
39
|
+
}
|
|
40
|
+
if (r.length)
|
|
41
|
+
return {
|
|
42
|
+
operationName: e.join(","),
|
|
43
|
+
// the operation name of the indiv query -- joined by ',' for batched results
|
|
44
|
+
operationType: r.join(","),
|
|
45
|
+
// query, mutation, or subscription -- joined by ',' for batched results
|
|
46
|
+
operationFramework: "GraphQL"
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function M(t) {
|
|
50
|
+
let e;
|
|
51
|
+
if (!t || typeof t != "string" && typeof t != "object" || (typeof t == "string" ? e = JSON.parse(t) : e = t, !U(e) && !Array.isArray(e))) return;
|
|
52
|
+
let r = !1;
|
|
53
|
+
if (Array.isArray(e) ? r = e.some((i) => T(i)) : r = T(e), !!r)
|
|
54
|
+
return e;
|
|
55
|
+
}
|
|
56
|
+
function B(t) {
|
|
57
|
+
if (!t || typeof t != "string") return;
|
|
58
|
+
const e = new URLSearchParams(t);
|
|
59
|
+
return M(Object.fromEntries(e));
|
|
60
|
+
}
|
|
61
|
+
function T(t) {
|
|
62
|
+
return !(typeof t != "object" || !t.query || typeof t.query != "string");
|
|
63
|
+
}
|
|
64
|
+
class D extends z {
|
|
65
|
+
constructor(e) {
|
|
66
|
+
super(e, v), I(e.runtime.denyList), this.underSpaEvents = {};
|
|
67
|
+
const r = this;
|
|
68
|
+
this.ee.on("interactionDone", (i, n) => {
|
|
69
|
+
this.underSpaEvents[i.id] && (n || this.underSpaEvents[i.id].forEach((s) => this.events.add(s)), delete this.underSpaEvents[i.id]);
|
|
70
|
+
}), x("returnAjax", (i) => this.events.add(i), this.featureName, this.ee), x("xhr", function() {
|
|
71
|
+
r.storeXhr(...arguments, this);
|
|
72
|
+
}, this.featureName, this.ee), this.waitForFlags([]).then(() => this.drain());
|
|
73
|
+
}
|
|
74
|
+
storeXhr(e, r, i, n, s, a) {
|
|
75
|
+
var g, m, A, b, j, E, S;
|
|
76
|
+
r.time = i;
|
|
77
|
+
let o;
|
|
78
|
+
e.cat ? o = c([e.status, e.cat]) : o = c([e.status, e.host, e.pathname]);
|
|
79
|
+
const p = q(e), h = (g = this.agentRef.init.feature_flags) == null ? void 0 : g.includes("ajax_metrics_deny_list");
|
|
80
|
+
if (!!((m = this.agentRef.features) != null && m[l.jserrors]) && (p || !h) && ((A = this.agentRef.sharedAggregator) == null || A.add(["xhr", o, e, r])), !p) {
|
|
81
|
+
e.hostname === this.agentRef.info.errorBeacon || (b = this.agentRef.init.proxy) != null && b.beacon && e.hostname === this.agentRef.init.proxy.beacon ? (this.reportSupportabilityMetric("Ajax/Events/Excluded/Agent"), h && this.reportSupportabilityMetric("Ajax/Metrics/Excluded/Agent")) : (this.reportSupportabilityMetric("Ajax/Events/Excluded/App"), h && this.reportSupportabilityMetric("Ajax/Metrics/Excluded/App"));
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
R("bstXhrAgg", ["xhr", o, e, r], void 0, l.sessionTrace, this.ee);
|
|
85
|
+
const u = {
|
|
86
|
+
method: e.method,
|
|
87
|
+
status: e.status,
|
|
88
|
+
domain: e.host,
|
|
89
|
+
path: e.pathname,
|
|
90
|
+
requestSize: r.txSize,
|
|
91
|
+
responseSize: r.rxSize,
|
|
92
|
+
type: s,
|
|
93
|
+
startTime: i,
|
|
94
|
+
endTime: n,
|
|
95
|
+
callbackDuration: r.cbTime
|
|
96
|
+
};
|
|
97
|
+
if (a.dt && (u.spanId = a.dt.spanId, u.traceId = a.dt.traceId, u.spanTimestamp = Math.floor(this.agentRef.runtime.timeKeeper.correctAbsoluteTimestamp(a.dt.timestamp))), u.gql = e.gql = _({
|
|
98
|
+
body: a.body,
|
|
99
|
+
query: (j = a.parsedOrigin) == null ? void 0 : j.search
|
|
100
|
+
}), u.gql && this.reportSupportabilityMetric("Ajax/Events/GraphQL/Bytes-Added", c(u.gql).length), !!((E = this.agentRef.features) != null && E[l.softNav]))
|
|
101
|
+
R("ajax", [u], void 0, l.softNav, this.ee);
|
|
102
|
+
else if (a.spaNode) {
|
|
103
|
+
const d = a.spaNode.interaction.id;
|
|
104
|
+
(S = this.underSpaEvents)[d] ?? (S[d] = []), this.underSpaEvents[d].push(u);
|
|
105
|
+
} else
|
|
106
|
+
this.events.add(u);
|
|
107
|
+
}
|
|
108
|
+
serializer(e) {
|
|
109
|
+
if (!e.length) return;
|
|
110
|
+
const r = F(this.agentRef.runtime.obfuscator);
|
|
111
|
+
let i = "bel.7;";
|
|
112
|
+
for (let n = 0; n < e.length; n++) {
|
|
113
|
+
const s = e[n], a = [
|
|
114
|
+
f(s.startTime),
|
|
115
|
+
f(s.endTime - s.startTime),
|
|
116
|
+
f(0),
|
|
117
|
+
// callbackEnd
|
|
118
|
+
f(0),
|
|
119
|
+
// no callbackDuration for non-SPA events
|
|
120
|
+
r(s.method),
|
|
121
|
+
f(s.status),
|
|
122
|
+
r(s.domain),
|
|
123
|
+
r(s.path),
|
|
124
|
+
f(s.requestSize),
|
|
125
|
+
f(s.responseSize),
|
|
126
|
+
s.type === "fetch" ? 1 : "",
|
|
127
|
+
r(0),
|
|
128
|
+
// nodeId
|
|
129
|
+
y(s.spanId, r, !0) + // guid
|
|
130
|
+
y(s.traceId, r, !0) + // traceId
|
|
131
|
+
y(s.spanTimestamp, f, !1)
|
|
132
|
+
// timestamp
|
|
133
|
+
];
|
|
134
|
+
let o = "2,";
|
|
135
|
+
const p = this.agentRef.info.jsAttributes, h = O({
|
|
136
|
+
...p || {},
|
|
137
|
+
...s.gql || {}
|
|
138
|
+
}, r);
|
|
139
|
+
a.unshift(f(h.length)), o += a.join(","), h && h.length > 0 && (o += ";" + h.join(";")), n + 1 < e.length && (o += ";"), i += o;
|
|
140
|
+
}
|
|
141
|
+
return i;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
N(D, "featureName", v);
|
|
145
|
+
export {
|
|
146
|
+
D as Aggregate
|
|
147
|
+
};
|
|
Binary file
|