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,426 @@
|
|
|
1
|
+
var pt = Object.defineProperty;
|
|
2
|
+
var vt = (f, r, t) => r in f ? pt(f, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[r] = t;
|
|
3
|
+
var et = (f, r, t) => vt(f, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
+
import { j as W, E as Nt, G as gt, H as Tt, d as c, I as it, J as Et, K as rt, M as It, N as nt, O as xt, D as bt, y as st, S as Ct, r as Ft } from "./main-DPldah1M.js";
|
|
5
|
+
import { n as Lt } from "./nav-timing-B-TNQpyK.js";
|
|
6
|
+
import { c as Y, A as Pt } from "./aggregate-base-C6N8Ymd5.js";
|
|
7
|
+
import { g as at, n as g, a as b, b as ot } from "./bel-serializer-DMbFBZ6U.js";
|
|
8
|
+
import { f as _t, a as jt } from "./first-paint-B61SrVKm.js";
|
|
9
|
+
var At = 128, St = 0;
|
|
10
|
+
function Z(f, r, t, u) {
|
|
11
|
+
Object.defineProperty(this, "interaction", {
|
|
12
|
+
value: f,
|
|
13
|
+
writable: !0
|
|
14
|
+
// enumerable: false -- by default, which hides this prop from obj (iterations)
|
|
15
|
+
}), this.parent = r, this.id = ++St, this.type = t, this.children = [], this.end = null, this.jsEnd = this.start = u, this.jsTime = 0, this.attrs = {}, this.cancelled = !1;
|
|
16
|
+
}
|
|
17
|
+
var K = Z.prototype;
|
|
18
|
+
K.child = function(r, t, u, a) {
|
|
19
|
+
var o = this.interaction;
|
|
20
|
+
if (o.end || o.nodes >= At) return null;
|
|
21
|
+
o.onNodeAdded(this);
|
|
22
|
+
var m = new Z(o, this, r, t);
|
|
23
|
+
return m.attrs.name = u, o.nodes++, a || o.remaining++, m;
|
|
24
|
+
};
|
|
25
|
+
K.callback = function(r, t) {
|
|
26
|
+
var u = this;
|
|
27
|
+
u.jsTime += r, t > u.jsEnd && (u.jsEnd = t, u.interaction.lastCb = t);
|
|
28
|
+
};
|
|
29
|
+
K.cancel = function() {
|
|
30
|
+
this.cancelled = !0;
|
|
31
|
+
var r = this.interaction;
|
|
32
|
+
r.remaining--;
|
|
33
|
+
};
|
|
34
|
+
K.finish = function(r) {
|
|
35
|
+
var t = this;
|
|
36
|
+
if (t.end) return;
|
|
37
|
+
t.end = r;
|
|
38
|
+
let u = t.parent;
|
|
39
|
+
for (; u != null && u.cancelled; ) u = u.parent;
|
|
40
|
+
u && u.children.push(t), t.parent = null;
|
|
41
|
+
var a = this.interaction;
|
|
42
|
+
a.remaining--, a.lastFinish = r, a.checkFinish();
|
|
43
|
+
};
|
|
44
|
+
var ct = Nt().o.ST, kt = Nt().o.CT, ut = {};
|
|
45
|
+
function J(f, r, t, u, a, o) {
|
|
46
|
+
this.agentRef = o, ut[o.agentIdentifier] = 0, this.id = ++ut[o.agentIdentifier], this.eventName = f, this.nodes = 0, this.remaining = 0, this.finishTimer = null, this.checkingFinish = !1, this.lastCb = this.lastFinish = r, this.handlers = [], this.onFinished = a, this.done = !1;
|
|
47
|
+
var m = this.root = new Z(this, null, "interaction", r), E = m.attrs;
|
|
48
|
+
E.trigger = f, E.initialPageURL = W, E.oldRoute = u, E.newURL = t, E.oldURL = f === "initialPageLoad" ? document.referrer : t, E.custom = {}, E.store = {};
|
|
49
|
+
}
|
|
50
|
+
var O = J.prototype;
|
|
51
|
+
O.checkFinish = function() {
|
|
52
|
+
var r = this;
|
|
53
|
+
if (r.remaining > 0) {
|
|
54
|
+
r._resetFinishCheck();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
r.checkingFinish || r.root.end === null && (r._resetFinishCheck(), r.checkingFinish = !0, r.finishTimer = ct(() => {
|
|
58
|
+
r.checkingFinish = !1, r.finishTimer = ct(() => {
|
|
59
|
+
r.finishTimer = null, r.remaining <= 0 && r.finish();
|
|
60
|
+
}, 1);
|
|
61
|
+
}, 0));
|
|
62
|
+
};
|
|
63
|
+
O.setNewURL = function(r) {
|
|
64
|
+
this.root.attrs.newURL = r;
|
|
65
|
+
};
|
|
66
|
+
O.setNewRoute = function(r) {
|
|
67
|
+
this.root.attrs.newRoute = r;
|
|
68
|
+
};
|
|
69
|
+
O.onNodeAdded = function() {
|
|
70
|
+
this._resetFinishCheck();
|
|
71
|
+
};
|
|
72
|
+
O._resetFinishCheck = function() {
|
|
73
|
+
this.finishTimer && (kt(this.finishTimer), this.finishTimer = null, this.checkingFinish = !1);
|
|
74
|
+
};
|
|
75
|
+
O.finish = function() {
|
|
76
|
+
var r = this, t = r.root;
|
|
77
|
+
if (t.end === null) {
|
|
78
|
+
var u = Math.max(r.lastCb, r.lastFinish), a = t.attrs, o = a.custom;
|
|
79
|
+
this.onFinished && this.onFinished(this), Object.entries(r.agentRef.info.jsAttributes || {}).forEach(([m, E]) => {
|
|
80
|
+
m in o || (o[m] = E);
|
|
81
|
+
}), t.end = u, r.agentRef.ee.emit("interaction", [this]);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
class wt {
|
|
85
|
+
constructor(r) {
|
|
86
|
+
this.obfuscator = r.runtime.obfuscator, this.info = r.info, this.firstTimestamp = void 0;
|
|
87
|
+
}
|
|
88
|
+
serializeMultiple(r, t, u) {
|
|
89
|
+
var a = at(this.obfuscator), o = "bel.7";
|
|
90
|
+
return r.forEach((m) => {
|
|
91
|
+
o += ";" + this.serializeInteraction(m.root, t, u, m.routeChange, a, this.info);
|
|
92
|
+
}), this.firstTimestamp = void 0, o;
|
|
93
|
+
}
|
|
94
|
+
serializeSingle(r, t, u, a) {
|
|
95
|
+
var o = at(this.obfuscator), m = "bel.7;" + this.serializeInteraction(r, t, u, a, o, this.info);
|
|
96
|
+
return this.firstTimestamp = void 0, m;
|
|
97
|
+
}
|
|
98
|
+
serializeInteraction(r, t, u, a, o, m) {
|
|
99
|
+
t = t || 0;
|
|
100
|
+
var E = r.attrs.trigger === "initialPageLoad", X = {
|
|
101
|
+
interaction: 1,
|
|
102
|
+
ajax: 2,
|
|
103
|
+
customTracer: 4
|
|
104
|
+
}, A = !0;
|
|
105
|
+
const S = (h, x) => {
|
|
106
|
+
if (h.type === "customEnd") return x.push([3, g(h.end - this.firstTimestamp)]);
|
|
107
|
+
var z = h.type, P = X[z], k = h.start, w = h.children.length, U = 0, R = m.atts, D = E && u.length && P === 1, F = [], N = h.attrs, B = N.metrics, d = N.params, y = m.queueTime, V = m.applicationTime;
|
|
108
|
+
typeof this.firstTimestamp > "u" ? (k += t, this.firstTimestamp = k) : k -= this.firstTimestamp;
|
|
109
|
+
var _ = [g(k), g(h.end - h.start), g(h.jsEnd - h.end), g(h.jsTime)];
|
|
110
|
+
switch (P) {
|
|
111
|
+
case 1:
|
|
112
|
+
_[2] = g(h.jsEnd - this.firstTimestamp), _.push(o(N.trigger), o(Y(N.initialPageURL, A)), o(Y(N.oldURL, A)), o(Y(N.newURL, A)), o(N.customName), E ? "" : a ? 1 : 2, b(E && y, g, !0) + b(E && V, g, !0) + b(N.oldRoute, o, !0) + b(N.newRoute, o, !0) + o(N.id), o(h.id), b(N.firstPaint, g, !0) + b(N.firstContentfulPaint, g, !1));
|
|
113
|
+
var M = ot(N.custom, o);
|
|
114
|
+
F = F.concat(M), U = M.length, R && (w++, F.push("a," + o(R)));
|
|
115
|
+
break;
|
|
116
|
+
case 2:
|
|
117
|
+
if (_.push(o(d.method), g(d.status), o(d.host), o(d.pathname), g(B.txSize), g(B.rxSize), N.isFetch ? 1 : N.isJSONP ? 2 : "", o(h.id), b(h.dt && h.dt.spanId, o, !0) + b(h.dt && h.dt.traceId, o, !0) + b(h.dt && h.dt.timestamp, g, !1)), Object.keys((d == null ? void 0 : d.gql) || {}).length) {
|
|
118
|
+
var e = ot(d.gql, o);
|
|
119
|
+
F = F.concat(e), U = e.length;
|
|
120
|
+
}
|
|
121
|
+
break;
|
|
122
|
+
case 4:
|
|
123
|
+
var i = N.tracedTime;
|
|
124
|
+
_.push(o(N.name), b(i, g, !0) + o(h.id));
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
for (var n = 0; n < h.children.length; n++)
|
|
128
|
+
S(h.children[n], F);
|
|
129
|
+
if (_.unshift(g(P), g(w += U)), x.push(_), w && x.push(F.join(";")), D) {
|
|
130
|
+
var s = ",", l = "b", v = 0;
|
|
131
|
+
Object.values(u.slice(1, 21) || {}).forEach((L) => {
|
|
132
|
+
L !== void 0 ? (l += s + g(L - v), s = ",", v = L) : (l += s + "!", s = "");
|
|
133
|
+
}), x.push(l);
|
|
134
|
+
} else P === 1 && x.push("");
|
|
135
|
+
return x;
|
|
136
|
+
};
|
|
137
|
+
return S(r, []).join(";");
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
const {
|
|
141
|
+
FEATURE_NAME: ht,
|
|
142
|
+
INTERACTION_EVENTS: dt,
|
|
143
|
+
MAX_TIMER_BUDGET: H,
|
|
144
|
+
FN_START: j,
|
|
145
|
+
FN_END: lt,
|
|
146
|
+
CB_START: q,
|
|
147
|
+
INTERACTION_API: C,
|
|
148
|
+
REMAINING: I,
|
|
149
|
+
INTERACTION: T,
|
|
150
|
+
SPA_NODE: p,
|
|
151
|
+
JSONP_NODE: G,
|
|
152
|
+
FETCH_START: $,
|
|
153
|
+
FETCH_DONE: ft,
|
|
154
|
+
FETCH_BODY: mt,
|
|
155
|
+
JSONP_END: Q,
|
|
156
|
+
originalSetTimeout: Ut
|
|
157
|
+
} = gt;
|
|
158
|
+
class Ot extends Pt {
|
|
159
|
+
constructor(r) {
|
|
160
|
+
var M;
|
|
161
|
+
super(r, ht);
|
|
162
|
+
const t = this.state = {
|
|
163
|
+
initialPageURL: W,
|
|
164
|
+
lastSeenUrl: W,
|
|
165
|
+
lastSeenRouteName: null,
|
|
166
|
+
timerMap: {},
|
|
167
|
+
timerBudget: H,
|
|
168
|
+
currentNode: null,
|
|
169
|
+
prevNode: null,
|
|
170
|
+
nodeOnLastHashUpdate: null,
|
|
171
|
+
initialPageLoad: null,
|
|
172
|
+
pageLoaded: !1,
|
|
173
|
+
childTime: 0,
|
|
174
|
+
depth: 0,
|
|
175
|
+
// The below feature flag is used to disable the SPA ajax fix for specific customers, see https://new-relic.atlassian.net/browse/NR-172169
|
|
176
|
+
disableSpaFix: (r.init.feature_flags || []).indexOf("disable-spa-fix") > -1
|
|
177
|
+
};
|
|
178
|
+
this.spaSerializerClass = new wt(r);
|
|
179
|
+
const u = this, a = Tt.get(r.agentIdentifier), o = a.get("mutation"), m = a.get("promise"), E = a.get("history"), X = a.get("events"), A = a.get("timer"), S = a.get("fetch"), h = a.get("jsonp"), x = a.get("xhr"), z = a.get("tracer");
|
|
180
|
+
let P;
|
|
181
|
+
if (this.waitForFlags(["spa"]).then(([e]) => {
|
|
182
|
+
e ? (P = r.runtime.harvester, this.drain()) : (this.blocked = !0, this.deregisterDrain());
|
|
183
|
+
}), r.init.spa.enabled !== !0) return;
|
|
184
|
+
t.initialPageLoad = new J("initialPageLoad", 0, t.lastSeenUrl, t.lastSeenRouteName, y, r), t.initialPageLoad.save = !0, (M = r.runtime.session) != null && M.isNew && (t.initialPageLoad.root.attrs.custom.isFirstOfSession = !0), t.prevInteraction = t.initialPageLoad, t.currentNode = t.initialPageLoad.root, t.initialPageLoad[I]++, c(j, w, this.featureName, a), c(q, w, this.featureName, m);
|
|
185
|
+
var k = {
|
|
186
|
+
getCurrentNode: B,
|
|
187
|
+
setCurrentNode: d
|
|
188
|
+
};
|
|
189
|
+
c("spa-register", function(e) {
|
|
190
|
+
typeof e == "function" && e(k);
|
|
191
|
+
}, st.spa, a);
|
|
192
|
+
function w() {
|
|
193
|
+
t.depth++, this.prevNode = t.currentNode, this.ct = t.childTime, t.childTime = 0, t.timerBudget = H;
|
|
194
|
+
}
|
|
195
|
+
c(lt, U, this.featureName, a), c("cb-end", U, this.featureName, m);
|
|
196
|
+
function U() {
|
|
197
|
+
t.depth--;
|
|
198
|
+
var e = this.jsTime || 0, i = e - t.childTime;
|
|
199
|
+
t.childTime = this.ct + e, t.currentNode && (t.currentNode.callback(i, this[lt]), this.isTraced && (t.currentNode.attrs.tracedTime = i)), this.jsTime = t.currentNode ? 0 : i, d(this.prevNode), this.prevNode = null, t.timerBudget = H;
|
|
200
|
+
}
|
|
201
|
+
c(j, function(e, i) {
|
|
202
|
+
var n = e[0], s = n.type, l = n["__nrNode:".concat(it)];
|
|
203
|
+
if (!t.pageLoaded && (s === "load" && i === window || Et) && (t.pageLoaded = !0, this.prevNode = t.currentNode = null, t.initialPageLoad && (l = t.initialPageLoad.root, t.initialPageLoad[I] = 0, Ut(function() {
|
|
204
|
+
dt.push("popstate");
|
|
205
|
+
}))), l)
|
|
206
|
+
d(l);
|
|
207
|
+
else if (s === "hashchange")
|
|
208
|
+
d(t.nodeOnLastHashUpdate), t.nodeOnLastHashUpdate = null;
|
|
209
|
+
else if (i instanceof XMLHttpRequest)
|
|
210
|
+
d(a.context(i).spaNode);
|
|
211
|
+
else if (!t.currentNode && dt.indexOf(s) !== -1) {
|
|
212
|
+
var v = new J(s, this[j], t.lastSeenUrl, t.lastSeenRouteName, y, r);
|
|
213
|
+
if (t.prevInteraction = v, d(v.root), s === "click") {
|
|
214
|
+
var L = V(n.target);
|
|
215
|
+
L && (t.currentNode.attrs.custom.actionText = L);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
n["__nrNode:".concat(it)] = t.currentNode;
|
|
219
|
+
}, this.featureName, X), c("setTimeout-end", function(i, n, s) {
|
|
220
|
+
!t.currentNode || t.timerBudget - this.timerDuration < 0 || i && !(i[0] instanceof Function) || (t.currentNode[T][I]++, this.timerId = s, t.timerMap[s] = t.currentNode, this.timerBudget = t.timerBudget - 50);
|
|
221
|
+
}, this.featureName, A), c("clearTimeout-start", function(i) {
|
|
222
|
+
var n = i[0], s = t.timerMap[n];
|
|
223
|
+
if (s) {
|
|
224
|
+
var l = s[T];
|
|
225
|
+
l[I]--, l.checkFinish(), delete t.timerMap[n];
|
|
226
|
+
}
|
|
227
|
+
}, this.featureName, A), c(j, function() {
|
|
228
|
+
t.timerBudget = this.timerBudget || H;
|
|
229
|
+
var e = this.timerId, i = t.timerMap[e];
|
|
230
|
+
d(i), delete t.timerMap[e], i && i[T][I]--;
|
|
231
|
+
}, this.featureName, A), c(j, function() {
|
|
232
|
+
d(this[p]);
|
|
233
|
+
}, this.featureName, x), c("new-xhr", function() {
|
|
234
|
+
if (!t.disableSpaFix && !t.currentNode && t.prevInteraction && !t.prevInteraction.ignored) {
|
|
235
|
+
const e = t.prevInteraction;
|
|
236
|
+
t.currentNode = e.root, e.root.end = null;
|
|
237
|
+
}
|
|
238
|
+
t.currentNode && (this[p] = t.currentNode.child("ajax", null, null, !0));
|
|
239
|
+
}, this.featureName, x), c("send-xhr-start", function() {
|
|
240
|
+
var i;
|
|
241
|
+
var e = this[p];
|
|
242
|
+
e && !this.sent && (this.sent = !0, e.dt = this.dt, (i = e.dt) != null && i.timestamp && (e.dt.timestamp = r.runtime.timeKeeper.correctAbsoluteTimestamp(e.dt.timestamp)), e.jsEnd = e.start = this.startTime, e[T][I]++);
|
|
243
|
+
}, this.featureName, x), c("xhr-resolved", function() {
|
|
244
|
+
var e = this[p];
|
|
245
|
+
if (e) {
|
|
246
|
+
if (!rt(this.params)) {
|
|
247
|
+
e.cancel();
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
var i = e.attrs;
|
|
251
|
+
i.params = this.params, i.metrics = this.metrics, e.finish(this.endTime), this.currentNode && this.currentNode.interaction && this.currentNode.interaction.checkFinish();
|
|
252
|
+
}
|
|
253
|
+
}, this.featureName, a), c("new-jsonp", function(e) {
|
|
254
|
+
if (t.currentNode) {
|
|
255
|
+
var i = this[G] = t.currentNode.child("ajax", this[$]);
|
|
256
|
+
i.start = this["new-jsonp"], this.url = e, this.status = null;
|
|
257
|
+
}
|
|
258
|
+
}, this.featureName, h), c("cb-start", function(e) {
|
|
259
|
+
var i = this[G];
|
|
260
|
+
i && (d(i), this.status = 200);
|
|
261
|
+
}, this.featureName, h), c("jsonp-error", function() {
|
|
262
|
+
var e = this[G];
|
|
263
|
+
e && (d(e), this.status = 0);
|
|
264
|
+
}, this.featureName, h), c(Q, function() {
|
|
265
|
+
var e = this[G];
|
|
266
|
+
if (e) {
|
|
267
|
+
if (this.status === null) {
|
|
268
|
+
e.cancel();
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
var i = e.attrs, n = i.params = {}, s = It(this.url);
|
|
272
|
+
n.method = "GET", n.pathname = s.pathname, n.host = s.hostname + ":" + s.port, n.status = this.status, i.metrics = {
|
|
273
|
+
txSize: 0,
|
|
274
|
+
rxSize: 0
|
|
275
|
+
}, i.isJSONP = !0, e.jsEnd = this[Q], e.jsTime = this[q] ? this[Q] - this[q] : 0, e.finish(e.jsEnd);
|
|
276
|
+
}
|
|
277
|
+
}, this.featureName, h), c($, function(e, i) {
|
|
278
|
+
var n;
|
|
279
|
+
if (e) {
|
|
280
|
+
if (!t.disableSpaFix && !t.currentNode && t.prevInteraction && !t.prevInteraction.ignored) {
|
|
281
|
+
const s = t.prevInteraction;
|
|
282
|
+
t.currentNode = s.root, s.root.end = null;
|
|
283
|
+
}
|
|
284
|
+
t.currentNode && (this[p] = t.currentNode.child("ajax", this[$]), i && this[p] && (this[p].dt = i, (n = this[p].dt) != null && n.timestamp && (this[p].dt.timestamp = r.runtime.timeKeeper.correctAbsoluteTimestamp(this[p].dt.timestamp))));
|
|
285
|
+
}
|
|
286
|
+
}, this.featureName, S), c(mt + "start", function(e) {
|
|
287
|
+
t.currentNode && (this[p] = t.currentNode, t.currentNode[T][I]++);
|
|
288
|
+
}, this.featureName, S), c(mt + "end", function(e, i, n) {
|
|
289
|
+
var s = this[p];
|
|
290
|
+
s && s[T][I]--;
|
|
291
|
+
}, this.featureName, S), c(ft, function(e, i) {
|
|
292
|
+
var n = this[p];
|
|
293
|
+
if (n) {
|
|
294
|
+
if (e || !rt(this.params)) {
|
|
295
|
+
n.cancel();
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
var s = n.attrs;
|
|
299
|
+
s.params = this.params, s.metrics = {
|
|
300
|
+
txSize: this.txSize,
|
|
301
|
+
rxSize: this.rxSize
|
|
302
|
+
}, s.isFetch = !0, n.finish(this[ft]);
|
|
303
|
+
}
|
|
304
|
+
}, this.featureName, S), c("newURL", function(e, i) {
|
|
305
|
+
if (t.currentNode)
|
|
306
|
+
t.currentNode[T].setNewURL(e);
|
|
307
|
+
else if (t.prevInteraction && !t.prevInteraction.ignored) {
|
|
308
|
+
const n = t.prevInteraction;
|
|
309
|
+
n.setNewURL(e), n.root.end = null, d(n.root);
|
|
310
|
+
}
|
|
311
|
+
t.currentNode && (t.lastSeenUrl !== e && (t.currentNode[T].routeChange = !0), i && (t.nodeOnLastHashUpdate = t.currentNode)), t.lastSeenUrl = e;
|
|
312
|
+
}, this.featureName, E), h.on("dom-start", function(e) {
|
|
313
|
+
if (!t.currentNode) return;
|
|
314
|
+
var i = e[0], n = i && i.nodeName === "SCRIPT" && i.src !== "", s = t.currentNode.interaction;
|
|
315
|
+
n && (s[I]++, i.addEventListener("load", l, nt(!1)), i.addEventListener("error", v, nt(!1)));
|
|
316
|
+
function l() {
|
|
317
|
+
s[I]--, s.checkFinish();
|
|
318
|
+
}
|
|
319
|
+
function v() {
|
|
320
|
+
s[I]--, s.checkFinish();
|
|
321
|
+
}
|
|
322
|
+
}), c(j, function() {
|
|
323
|
+
d(t.prevNode);
|
|
324
|
+
}, this.featureName, o), c("resolve-start", N, this.featureName, m), c("executor-err", N, this.featureName, m), c("propagate", F, this.featureName, m), c(q, function() {
|
|
325
|
+
var e = this.getCtx ? this.getCtx() : this;
|
|
326
|
+
d(e[p]);
|
|
327
|
+
}, this.featureName, m), c(C + "get", function(e) {
|
|
328
|
+
var n, s, l, v, L, tt;
|
|
329
|
+
var i;
|
|
330
|
+
(n = t == null ? void 0 : t.currentNode) != null && n[T] ? i = this.ixn = t.currentNode[T] : ((s = t == null ? void 0 : t.prevNode) == null ? void 0 : s.end) === null && ((tt = (L = (v = (l = t == null ? void 0 : t.prevNode) == null ? void 0 : l[T]) == null ? void 0 : v.root) == null ? void 0 : L[T]) == null ? void 0 : tt.eventName) !== "initialPageLoad" ? i = this.ixn = t.prevNode[T] : i = this.ixn = new J("api", e, t.lastSeenUrl, t.lastSeenRouteName, y, r), t.currentNode || (i.checkFinish(), t.depth && d(i.root));
|
|
331
|
+
}, this.featureName, a), c(C + "actionText", function(e, i) {
|
|
332
|
+
var n = this.ixn.root.attrs.custom;
|
|
333
|
+
i && (n.actionText = i);
|
|
334
|
+
}, this.featureName, a), c(C + "setName", function(e, i, n) {
|
|
335
|
+
var s = this.ixn.root.attrs;
|
|
336
|
+
i && (s.customName = i), n && (s.trigger = n);
|
|
337
|
+
}, this.featureName, a), c(C + "setAttribute", function(e, i, n) {
|
|
338
|
+
this.ixn.root.attrs.custom[i] = n;
|
|
339
|
+
}, this.featureName, a), c(C + "end", function(e) {
|
|
340
|
+
var s;
|
|
341
|
+
var i = this.ixn, n = D(i);
|
|
342
|
+
d(null), (s = n.child("customEnd", e)) == null || s.finish(e), i.finish();
|
|
343
|
+
}, this.featureName, a), c(C + "ignore", function(e) {
|
|
344
|
+
this.ixn.ignored = !0;
|
|
345
|
+
}, this.featureName, a), c(C + "save", function(e) {
|
|
346
|
+
this.ixn.save = !0;
|
|
347
|
+
}, this.featureName, a), c(C + "tracer", function(e, i, n) {
|
|
348
|
+
var s = this.ixn, l = D(s), v = a.context(n);
|
|
349
|
+
if (!i)
|
|
350
|
+
return v.inc = ++s[I], v[p] = l;
|
|
351
|
+
v[p] = l.child("customTracer", e, i);
|
|
352
|
+
}, this.featureName, a), c(j, R, this.featureName, z), c("no-" + j, R, this.featureName, z);
|
|
353
|
+
function R(e, i, n) {
|
|
354
|
+
var s = this[p];
|
|
355
|
+
if (s) {
|
|
356
|
+
var l = s[T], v = this.inc;
|
|
357
|
+
this.isTraced = !0, v ? l[I]-- : s && s.finish(e), n ? d(s) : l.checkFinish();
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
c(C + "getContext", function(e, i) {
|
|
361
|
+
var n = this.ixn.root.attrs.store;
|
|
362
|
+
setTimeout(function() {
|
|
363
|
+
i(n);
|
|
364
|
+
}, 0);
|
|
365
|
+
}, this.featureName, a), c(C + "onEnd", function(e, i) {
|
|
366
|
+
this.ixn.handlers.push(i);
|
|
367
|
+
}, this.featureName, a), c("api-routeName", function(e, i) {
|
|
368
|
+
t.lastSeenRouteName = i, t.currentNode && t.currentNode[T].setNewRoute(i);
|
|
369
|
+
}, this.featureName, a);
|
|
370
|
+
function D(e) {
|
|
371
|
+
return t.currentNode && t.currentNode[T] === e ? t.currentNode : e.root;
|
|
372
|
+
}
|
|
373
|
+
function F(e, i) {
|
|
374
|
+
(i || !this[p]) && (this[p] = t.currentNode);
|
|
375
|
+
}
|
|
376
|
+
function N() {
|
|
377
|
+
this.resolved || (this.resolved = !0, this[p] = t.currentNode);
|
|
378
|
+
}
|
|
379
|
+
function B() {
|
|
380
|
+
return t.currentNode;
|
|
381
|
+
}
|
|
382
|
+
function d(e) {
|
|
383
|
+
!t.pageLoaded && !e && t.initialPageLoad && (e = t.initialPageLoad.root), t.currentNode && t.currentNode[T].checkFinish(), t.prevNode = t.currentNode, t.currentNode = e && !e[T].root.end ? e : null;
|
|
384
|
+
}
|
|
385
|
+
function y(e) {
|
|
386
|
+
e === t.initialPageLoad && (t.initialPageLoad = null);
|
|
387
|
+
var i = e.root, n = i.attrs;
|
|
388
|
+
t.currentNode = i, Object.values(e.handlers || {}).forEach(function(s) {
|
|
389
|
+
s(n.store);
|
|
390
|
+
}), d(null);
|
|
391
|
+
}
|
|
392
|
+
a.on("spa-jserror", function(e, i, n, s) {
|
|
393
|
+
t.currentNode && (n._interactionId = t.currentNode.interaction.id, t.currentNode.type && t.currentNode.type !== "interaction" && (n._interactionNodeId = t.currentNode.id));
|
|
394
|
+
}), c("function-err", function(e, i, n) {
|
|
395
|
+
t.currentNode && (n.__newrelic ?? (n.__newrelic = {}), n.__newrelic[r.agentIdentifier] = {
|
|
396
|
+
interactionId: t.currentNode.interaction.id
|
|
397
|
+
}, t.currentNode.type && t.currentNode.type !== "interaction" && (n.__newrelic[r.agentIdentifier].interactionNodeId = t.currentNode.id));
|
|
398
|
+
}, this.featureName, a), a.on("interaction", _);
|
|
399
|
+
function V(e) {
|
|
400
|
+
var i = e.tagName.toLowerCase(), n = ["a", "button", "input"], s = n.indexOf(i) !== -1;
|
|
401
|
+
if (s)
|
|
402
|
+
return e.title || e.value || e.innerText;
|
|
403
|
+
}
|
|
404
|
+
function _(e) {
|
|
405
|
+
var n, s, l, v;
|
|
406
|
+
if (e.ignored || !e.save && !e.routeChange) {
|
|
407
|
+
a.emit("interactionDone", [e, !1]);
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
t.prevInteraction === e && (t.prevInteraction = null), e.root.attrs.id = xt(), e.root.attrs.trigger === "initialPageLoad" && (e.root.attrs.firstPaint = _t.current.value, e.root.attrs.firstContentfulPaint = jt.current.value), a.emit("interactionDone", [e, !0]), u.events.add(e);
|
|
411
|
+
let i;
|
|
412
|
+
if (((s = (n = e.root) == null ? void 0 : n.attrs) == null ? void 0 : s.trigger) === "initialPageLoad" ? i = "InitialPageLoad" : e.routeChange ? i = "RouteChange" : i = "Custom", bt(Ct, ["Spa/Interaction/".concat(i, "/Duration/Ms"), Math.max((((l = e.root) == null ? void 0 : l.end) || 0) - (((v = e.root) == null ? void 0 : v.start) || 0), 0)], void 0, st.metrics, a), !P) {
|
|
413
|
+
Ft(19);
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
P.triggerHarvestFor(u);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
serializer(r) {
|
|
420
|
+
return this.spaSerializerClass.serializeMultiple(r, 0, Lt);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
et(Ot, "featureName", ht);
|
|
424
|
+
export {
|
|
425
|
+
Ot as Aggregate
|
|
426
|
+
};
|
|
Binary file
|