@kbapp/media-fusion-tracker 0.0.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.
Files changed (34) hide show
  1. package/README.MD +225 -0
  2. package/dist/es/helpers/filter-undefined-properties.js +12 -0
  3. package/dist/es/index.js +8 -0
  4. package/dist/es/media-fusion-tracker.js +35 -0
  5. package/dist/es/models/DocActionEvent.js +27 -0
  6. package/dist/es/models/DocVisitEvent.js +27 -0
  7. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/_virtual/_commonjsHelpers.js +8 -0
  8. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/_virtual/index.js +7 -0
  9. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/_virtual/index2.js +4 -0
  10. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/gsido-tracker.js +86 -0
  11. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/helpers/filter-undefined-properties.js +12 -0
  12. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/helpers/load-script.js +11 -0
  13. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/helpers/object-to-map.js +9 -0
  14. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/lib/gsido-proxy.js +79 -0
  15. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/models/DocActionEvent.js +27 -0
  16. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/models/DocVisitEvent.js +27 -0
  17. package/dist/es/node_modules/@kbapp/gsido-tracker/dist/es/node_modules/lodash.clonedeep/index.js +452 -0
  18. package/dist/es/node_modules/@kbapp/tmuyun-tracker/dist/es/_virtual/_commonjsHelpers.js +8 -0
  19. package/dist/es/node_modules/@kbapp/tmuyun-tracker/dist/es/_virtual/dayjs.min.js +4 -0
  20. package/dist/es/node_modules/@kbapp/tmuyun-tracker/dist/es/core/tmuyun-sdk-report.js +15 -0
  21. package/dist/es/node_modules/@kbapp/tmuyun-tracker/dist/es/core/tmuyun-sdk.js +36 -0
  22. package/dist/es/node_modules/@kbapp/tmuyun-tracker/dist/es/index.js +38 -0
  23. package/dist/es/node_modules/@kbapp/tmuyun-tracker/dist/es/models/TmuyunDocModel.js +99 -0
  24. package/dist/es/node_modules/@kbapp/tmuyun-tracker/dist/es/models/TmuyunDocType.js +16 -0
  25. package/dist/es/node_modules/@kbapp/tmuyun-tracker/dist/es/node_modules/dayjs/dayjs.min.js +282 -0
  26. package/dist/types/__tests__/index.test.d.ts +1 -0
  27. package/dist/types/helpers/filter-undefined-properties.d.ts +8 -0
  28. package/dist/types/index.d.ts +3 -0
  29. package/dist/types/media-fusion-tracker.d.ts +50 -0
  30. package/dist/types/models/DocActionEvent.d.ts +66 -0
  31. package/dist/types/models/DocVisitEvent.d.ts +75 -0
  32. package/dist/umd/index.js +1 -0
  33. package/examples/index.html +241 -0
  34. package/package.json +47 -0
@@ -0,0 +1,452 @@
1
+ import { commonjsGlobal as B } from "../../_virtual/_commonjsHelpers.js";
2
+ import { __module as w } from "../../_virtual/index2.js";
3
+ w.exports;
4
+ var Lr;
5
+ function vt() {
6
+ return Lr ? w.exports : (Lr = 1, (function(O, U) {
7
+ var Tr = 200, Y = "__lodash_hash_undefined__", Z = 9007199254740991, D = "[object Arguments]", Vr = "[object Array]", G = "[object Boolean]", H = "[object Date]", Wr = "[object Error]", M = "[object Function]", X = "[object GeneratorFunction]", m = "[object Map]", rr = "[object Number]", P = "[object Object]", er = "[object Promise]", tr = "[object RegExp]", A = "[object Set]", nr = "[object String]", or = "[object Symbol]", R = "[object WeakMap]", ur = "[object ArrayBuffer]", x = "[object DataView]", cr = "[object Float32Array]", ar = "[object Float64Array]", ir = "[object Int8Array]", fr = "[object Int16Array]", sr = "[object Int32Array]", lr = "[object Uint8Array]", pr = "[object Uint8ClampedArray]", _r = "[object Uint16Array]", hr = "[object Uint32Array]", qr = /[\\^$.*+?()[\]{}|]/g, Nr = /\w*$/, Jr = /^\[object .+?Constructor\]$/, Kr = /^(?:0|[1-9]\d*)$/, o = {};
8
+ o[D] = o[Vr] = o[ur] = o[x] = o[G] = o[H] = o[cr] = o[ar] = o[ir] = o[fr] = o[sr] = o[m] = o[rr] = o[P] = o[tr] = o[A] = o[nr] = o[or] = o[lr] = o[pr] = o[_r] = o[hr] = !0, o[Wr] = o[M] = o[R] = !1;
9
+ var Qr = typeof B == "object" && B && B.Object === Object && B, Yr = typeof self == "object" && self && self.Object === Object && self, i = Qr || Yr || Function("return this")(), yr = U && !U.nodeType && U, vr = yr && !0 && O && !O.nodeType && O, Zr = vr && vr.exports === yr;
10
+ function Gr(r, e) {
11
+ return r.set(e[0], e[1]), r;
12
+ }
13
+ function Hr(r, e) {
14
+ return r.add(e), r;
15
+ }
16
+ function Xr(r, e) {
17
+ for (var t = -1, n = r ? r.length : 0; ++t < n && e(r[t], t, r) !== !1; )
18
+ ;
19
+ return r;
20
+ }
21
+ function re(r, e) {
22
+ for (var t = -1, n = e.length, u = r.length; ++t < n; )
23
+ r[u + t] = e[t];
24
+ return r;
25
+ }
26
+ function br(r, e, t, n) {
27
+ for (var u = -1, c = r ? r.length : 0; ++u < c; )
28
+ t = e(t, r[u], u, r);
29
+ return t;
30
+ }
31
+ function ee(r, e) {
32
+ for (var t = -1, n = Array(r); ++t < r; )
33
+ n[t] = e(t);
34
+ return n;
35
+ }
36
+ function te(r, e) {
37
+ return r == null ? void 0 : r[e];
38
+ }
39
+ function dr(r) {
40
+ var e = !1;
41
+ if (r != null && typeof r.toString != "function")
42
+ try {
43
+ e = !!(r + "");
44
+ } catch (t) {
45
+ }
46
+ return e;
47
+ }
48
+ function jr(r) {
49
+ var e = -1, t = Array(r.size);
50
+ return r.forEach(function(n, u) {
51
+ t[++e] = [u, n];
52
+ }), t;
53
+ }
54
+ function z(r, e) {
55
+ return function(t) {
56
+ return r(e(t));
57
+ };
58
+ }
59
+ function gr(r) {
60
+ var e = -1, t = Array(r.size);
61
+ return r.forEach(function(n) {
62
+ t[++e] = n;
63
+ }), t;
64
+ }
65
+ var ne = Array.prototype, oe = Function.prototype, S = Object.prototype, C = i["__core-js_shared__"], wr = (function() {
66
+ var r = /[^.]+$/.exec(C && C.keys && C.keys.IE_PROTO || "");
67
+ return r ? "Symbol(src)_1." + r : "";
68
+ })(), Or = oe.toString, l = S.hasOwnProperty, $ = S.toString, ue = RegExp(
69
+ "^" + Or.call(l).replace(qr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
70
+ ), mr = Zr ? i.Buffer : void 0, Ar = i.Symbol, xr = i.Uint8Array, ce = z(Object.getPrototypeOf, Object), ae = Object.create, ie = S.propertyIsEnumerable, fe = ne.splice, Sr = Object.getOwnPropertySymbols, se = mr ? mr.isBuffer : void 0, le = z(Object.keys, Object), L = b(i, "DataView"), j = b(i, "Map"), T = b(i, "Promise"), V = b(i, "Set"), W = b(i, "WeakMap"), g = b(Object, "create"), pe = h(L), _e = h(j), he = h(T), ye = h(V), ve = h(W), $r = Ar ? Ar.prototype : void 0, Er = $r ? $r.valueOf : void 0;
71
+ function p(r) {
72
+ var e = -1, t = r ? r.length : 0;
73
+ for (this.clear(); ++e < t; ) {
74
+ var n = r[e];
75
+ this.set(n[0], n[1]);
76
+ }
77
+ }
78
+ function be() {
79
+ this.__data__ = g ? g(null) : {};
80
+ }
81
+ function de(r) {
82
+ return this.has(r) && delete this.__data__[r];
83
+ }
84
+ function je(r) {
85
+ var e = this.__data__;
86
+ if (g) {
87
+ var t = e[r];
88
+ return t === Y ? void 0 : t;
89
+ }
90
+ return l.call(e, r) ? e[r] : void 0;
91
+ }
92
+ function ge(r) {
93
+ var e = this.__data__;
94
+ return g ? e[r] !== void 0 : l.call(e, r);
95
+ }
96
+ function we(r, e) {
97
+ var t = this.__data__;
98
+ return t[r] = g && e === void 0 ? Y : e, this;
99
+ }
100
+ p.prototype.clear = be, p.prototype.delete = de, p.prototype.get = je, p.prototype.has = ge, p.prototype.set = we;
101
+ function f(r) {
102
+ var e = -1, t = r ? r.length : 0;
103
+ for (this.clear(); ++e < t; ) {
104
+ var n = r[e];
105
+ this.set(n[0], n[1]);
106
+ }
107
+ }
108
+ function Oe() {
109
+ this.__data__ = [];
110
+ }
111
+ function me(r) {
112
+ var e = this.__data__, t = E(e, r);
113
+ if (t < 0)
114
+ return !1;
115
+ var n = e.length - 1;
116
+ return t == n ? e.pop() : fe.call(e, t, 1), !0;
117
+ }
118
+ function Ae(r) {
119
+ var e = this.__data__, t = E(e, r);
120
+ return t < 0 ? void 0 : e[t][1];
121
+ }
122
+ function xe(r) {
123
+ return E(this.__data__, r) > -1;
124
+ }
125
+ function Se(r, e) {
126
+ var t = this.__data__, n = E(t, r);
127
+ return n < 0 ? t.push([r, e]) : t[n][1] = e, this;
128
+ }
129
+ f.prototype.clear = Oe, f.prototype.delete = me, f.prototype.get = Ae, f.prototype.has = xe, f.prototype.set = Se;
130
+ function y(r) {
131
+ var e = -1, t = r ? r.length : 0;
132
+ for (this.clear(); ++e < t; ) {
133
+ var n = r[e];
134
+ this.set(n[0], n[1]);
135
+ }
136
+ }
137
+ function $e() {
138
+ this.__data__ = {
139
+ hash: new p(),
140
+ map: new (j || f)(),
141
+ string: new p()
142
+ };
143
+ }
144
+ function Ee(r) {
145
+ return I(this, r).delete(r);
146
+ }
147
+ function Ie(r) {
148
+ return I(this, r).get(r);
149
+ }
150
+ function Fe(r) {
151
+ return I(this, r).has(r);
152
+ }
153
+ function ke(r, e) {
154
+ return I(this, r).set(r, e), this;
155
+ }
156
+ y.prototype.clear = $e, y.prototype.delete = Ee, y.prototype.get = Ie, y.prototype.has = Fe, y.prototype.set = ke;
157
+ function v(r) {
158
+ this.__data__ = new f(r);
159
+ }
160
+ function Be() {
161
+ this.__data__ = new f();
162
+ }
163
+ function Ue(r) {
164
+ return this.__data__.delete(r);
165
+ }
166
+ function De(r) {
167
+ return this.__data__.get(r);
168
+ }
169
+ function Me(r) {
170
+ return this.__data__.has(r);
171
+ }
172
+ function Pe(r, e) {
173
+ var t = this.__data__;
174
+ if (t instanceof f) {
175
+ var n = t.__data__;
176
+ if (!j || n.length < Tr - 1)
177
+ return n.push([r, e]), this;
178
+ t = this.__data__ = new y(n);
179
+ }
180
+ return t.set(r, e), this;
181
+ }
182
+ v.prototype.clear = Be, v.prototype.delete = Ue, v.prototype.get = De, v.prototype.has = Me, v.prototype.set = Pe;
183
+ function Re(r, e) {
184
+ var t = J(r) || at(r) ? ee(r.length, String) : [], n = t.length, u = !!n;
185
+ for (var c in r)
186
+ l.call(r, c) && !(u && (c == "length" || nt(c, n))) && t.push(c);
187
+ return t;
188
+ }
189
+ function Ir(r, e, t) {
190
+ var n = r[e];
191
+ (!(l.call(r, e) && Ur(n, t)) || t === void 0 && !(e in r)) && (r[e] = t);
192
+ }
193
+ function E(r, e) {
194
+ for (var t = r.length; t--; )
195
+ if (Ur(r[t][0], e))
196
+ return t;
197
+ return -1;
198
+ }
199
+ function ze(r, e) {
200
+ return r && Fr(e, K(e), r);
201
+ }
202
+ function q(r, e, t, n, u, c, s) {
203
+ var a;
204
+ if (n && (a = c ? n(r, u, c, s) : n(r)), a !== void 0)
205
+ return a;
206
+ if (!F(r))
207
+ return r;
208
+ var Pr = J(r);
209
+ if (Pr) {
210
+ if (a = rt(r), !e)
211
+ return Ge(r, a);
212
+ } else {
213
+ var d = _(r), Rr = d == M || d == X;
214
+ if (ft(r))
215
+ return qe(r, e);
216
+ if (d == P || d == D || Rr && !c) {
217
+ if (dr(r))
218
+ return c ? r : {};
219
+ if (a = et(Rr ? {} : r), !e)
220
+ return He(r, ze(a, r));
221
+ } else {
222
+ if (!o[d])
223
+ return c ? r : {};
224
+ a = tt(r, d, q, e);
225
+ }
226
+ }
227
+ s || (s = new v());
228
+ var zr = s.get(r);
229
+ if (zr)
230
+ return zr;
231
+ if (s.set(r, a), !Pr)
232
+ var Cr = t ? Xe(r) : K(r);
233
+ return Xr(Cr || r, function(Q, k) {
234
+ Cr && (k = Q, Q = r[k]), Ir(a, k, q(Q, e, t, n, k, r, s));
235
+ }), a;
236
+ }
237
+ function Ce(r) {
238
+ return F(r) ? ae(r) : {};
239
+ }
240
+ function Le(r, e, t) {
241
+ var n = e(r);
242
+ return J(r) ? n : re(n, t(r));
243
+ }
244
+ function Te(r) {
245
+ return $.call(r);
246
+ }
247
+ function Ve(r) {
248
+ if (!F(r) || ut(r))
249
+ return !1;
250
+ var e = Mr(r) || dr(r) ? ue : Jr;
251
+ return e.test(h(r));
252
+ }
253
+ function We(r) {
254
+ if (!Br(r))
255
+ return le(r);
256
+ var e = [];
257
+ for (var t in Object(r))
258
+ l.call(r, t) && t != "constructor" && e.push(t);
259
+ return e;
260
+ }
261
+ function qe(r, e) {
262
+ if (e)
263
+ return r.slice();
264
+ var t = new r.constructor(r.length);
265
+ return r.copy(t), t;
266
+ }
267
+ function N(r) {
268
+ var e = new r.constructor(r.byteLength);
269
+ return new xr(e).set(new xr(r)), e;
270
+ }
271
+ function Ne(r, e) {
272
+ var t = e ? N(r.buffer) : r.buffer;
273
+ return new r.constructor(t, r.byteOffset, r.byteLength);
274
+ }
275
+ function Je(r, e, t) {
276
+ var n = e ? t(jr(r), !0) : jr(r);
277
+ return br(n, Gr, new r.constructor());
278
+ }
279
+ function Ke(r) {
280
+ var e = new r.constructor(r.source, Nr.exec(r));
281
+ return e.lastIndex = r.lastIndex, e;
282
+ }
283
+ function Qe(r, e, t) {
284
+ var n = e ? t(gr(r), !0) : gr(r);
285
+ return br(n, Hr, new r.constructor());
286
+ }
287
+ function Ye(r) {
288
+ return Er ? Object(Er.call(r)) : {};
289
+ }
290
+ function Ze(r, e) {
291
+ var t = e ? N(r.buffer) : r.buffer;
292
+ return new r.constructor(t, r.byteOffset, r.length);
293
+ }
294
+ function Ge(r, e) {
295
+ var t = -1, n = r.length;
296
+ for (e || (e = Array(n)); ++t < n; )
297
+ e[t] = r[t];
298
+ return e;
299
+ }
300
+ function Fr(r, e, t, n) {
301
+ t || (t = {});
302
+ for (var u = -1, c = e.length; ++u < c; ) {
303
+ var s = e[u], a = void 0;
304
+ Ir(t, s, a === void 0 ? r[s] : a);
305
+ }
306
+ return t;
307
+ }
308
+ function He(r, e) {
309
+ return Fr(r, kr(r), e);
310
+ }
311
+ function Xe(r) {
312
+ return Le(r, K, kr);
313
+ }
314
+ function I(r, e) {
315
+ var t = r.__data__;
316
+ return ot(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
317
+ }
318
+ function b(r, e) {
319
+ var t = te(r, e);
320
+ return Ve(t) ? t : void 0;
321
+ }
322
+ var kr = Sr ? z(Sr, Object) : pt, _ = Te;
323
+ (L && _(new L(new ArrayBuffer(1))) != x || j && _(new j()) != m || T && _(T.resolve()) != er || V && _(new V()) != A || W && _(new W()) != R) && (_ = function(r) {
324
+ var e = $.call(r), t = e == P ? r.constructor : void 0, n = t ? h(t) : void 0;
325
+ if (n)
326
+ switch (n) {
327
+ case pe:
328
+ return x;
329
+ case _e:
330
+ return m;
331
+ case he:
332
+ return er;
333
+ case ye:
334
+ return A;
335
+ case ve:
336
+ return R;
337
+ }
338
+ return e;
339
+ });
340
+ function rt(r) {
341
+ var e = r.length, t = r.constructor(e);
342
+ return e && typeof r[0] == "string" && l.call(r, "index") && (t.index = r.index, t.input = r.input), t;
343
+ }
344
+ function et(r) {
345
+ return typeof r.constructor == "function" && !Br(r) ? Ce(ce(r)) : {};
346
+ }
347
+ function tt(r, e, t, n) {
348
+ var u = r.constructor;
349
+ switch (e) {
350
+ case ur:
351
+ return N(r);
352
+ case G:
353
+ case H:
354
+ return new u(+r);
355
+ case x:
356
+ return Ne(r, n);
357
+ case cr:
358
+ case ar:
359
+ case ir:
360
+ case fr:
361
+ case sr:
362
+ case lr:
363
+ case pr:
364
+ case _r:
365
+ case hr:
366
+ return Ze(r, n);
367
+ case m:
368
+ return Je(r, n, t);
369
+ case rr:
370
+ case nr:
371
+ return new u(r);
372
+ case tr:
373
+ return Ke(r);
374
+ case A:
375
+ return Qe(r, n, t);
376
+ case or:
377
+ return Ye(r);
378
+ }
379
+ }
380
+ function nt(r, e) {
381
+ return e = e == null ? Z : e, !!e && (typeof r == "number" || Kr.test(r)) && r > -1 && r % 1 == 0 && r < e;
382
+ }
383
+ function ot(r) {
384
+ var e = typeof r;
385
+ return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
386
+ }
387
+ function ut(r) {
388
+ return !!wr && wr in r;
389
+ }
390
+ function Br(r) {
391
+ var e = r && r.constructor, t = typeof e == "function" && e.prototype || S;
392
+ return r === t;
393
+ }
394
+ function h(r) {
395
+ if (r != null) {
396
+ try {
397
+ return Or.call(r);
398
+ } catch (e) {
399
+ }
400
+ try {
401
+ return r + "";
402
+ } catch (e) {
403
+ }
404
+ }
405
+ return "";
406
+ }
407
+ function ct(r) {
408
+ return q(r, !0, !0);
409
+ }
410
+ function Ur(r, e) {
411
+ return r === e || r !== r && e !== e;
412
+ }
413
+ function at(r) {
414
+ return it(r) && l.call(r, "callee") && (!ie.call(r, "callee") || $.call(r) == D);
415
+ }
416
+ var J = Array.isArray;
417
+ function Dr(r) {
418
+ return r != null && st(r.length) && !Mr(r);
419
+ }
420
+ function it(r) {
421
+ return lt(r) && Dr(r);
422
+ }
423
+ var ft = se || _t;
424
+ function Mr(r) {
425
+ var e = F(r) ? $.call(r) : "";
426
+ return e == M || e == X;
427
+ }
428
+ function st(r) {
429
+ return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Z;
430
+ }
431
+ function F(r) {
432
+ var e = typeof r;
433
+ return !!r && (e == "object" || e == "function");
434
+ }
435
+ function lt(r) {
436
+ return !!r && typeof r == "object";
437
+ }
438
+ function K(r) {
439
+ return Dr(r) ? Re(r) : We(r);
440
+ }
441
+ function pt() {
442
+ return [];
443
+ }
444
+ function _t() {
445
+ return !1;
446
+ }
447
+ O.exports = ct;
448
+ })(w, w.exports), w.exports);
449
+ }
450
+ export {
451
+ vt as __require
452
+ };
@@ -0,0 +1,8 @@
1
+ var e = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2
+ function l(o) {
3
+ return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
4
+ }
5
+ export {
6
+ e as commonjsGlobal,
7
+ l as getDefaultExportFromCjs
8
+ };
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
@@ -0,0 +1,15 @@
1
+ import p from "./tmuyun-sdk.js";
2
+ var u = Object.defineProperty, t = Object.getOwnPropertySymbols, c = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable, a = (o, r, e) => r in o ? u(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e, l = (o, r) => {
3
+ for (var e in r || (r = {}))
4
+ c.call(r, e) && a(o, e, r[e]);
5
+ if (t)
6
+ for (var e of t(r))
7
+ f.call(r, e) && a(o, e, r[e]);
8
+ return o;
9
+ };
10
+ function i(o) {
11
+ p.track("newsInfoPv", l({}, o));
12
+ }
13
+ export {
14
+ i as tmuyunSDKReport
15
+ };
@@ -0,0 +1,36 @@
1
+ const u = "GetuiDataSDK", c = "NFkk0GStpm6zYTajGbOoUC", d = "https://cdn-getuigw.getui.com/iopsdk/getuidata.min.js", p = "https://bggt.tmuyun.com/iop-ps/sdk/data.gif";
2
+ (function(a) {
3
+ var t = window, n = a.name;
4
+ t.GetuiData = n, t[n] = t[n] || function(s) {
5
+ return function() {
6
+ (t[n]._q = t[n]._q || []).push([s, arguments]);
7
+ };
8
+ };
9
+ for (var e = ["init", "track", "autoTrack"], r = 0; r < e.length; r++)
10
+ t[n][e[r]] = t[n].call(null, e[r]);
11
+ var o = document.createElement("script");
12
+ o.type = "text/javascript", o.async = !0, o.src = a.sdk_url;
13
+ var i = document.getElementsByTagName("script")[0];
14
+ t[n].customPara = a, i.parentNode.insertBefore(o, i);
15
+ })({
16
+ sdk_url: d,
17
+ name: u,
18
+ appId: c,
19
+ server_url: p,
20
+ show_log: !1
21
+ });
22
+ window[u].autoTrack();
23
+ const g = new Proxy(
24
+ {},
25
+ {
26
+ get: function(a, t, n) {
27
+ const e = window[u] || window.GetuiData;
28
+ return e ? typeof e[t] == "function" ? e[t].bind(e) : e[t] : function() {
29
+ console.error("sdk未初始化");
30
+ };
31
+ }
32
+ }
33
+ );
34
+ export {
35
+ g as default
36
+ };
@@ -0,0 +1,38 @@
1
+ import c from "./node_modules/dayjs/dayjs.min.js";
2
+ import { tmuyunSDKReport as f } from "./core/tmuyun-sdk-report.js";
3
+ import "./models/TmuyunDocModel.js";
4
+ var b = Object.defineProperty, m = Object.getOwnPropertySymbols, y = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable, d = (t, e, r) => e in t ? b(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, w = (t, e) => {
5
+ for (var r in e || (e = {}))
6
+ y.call(e, r) && d(t, r, e[r]);
7
+ if (m)
8
+ for (var r of m(e))
9
+ v.call(e, r) && d(t, r, e[r]);
10
+ return t;
11
+ };
12
+ class h {
13
+ constructor(e) {
14
+ this.report = (r) => {
15
+ var i, a, n, u;
16
+ if (!r.docId || !r.title)
17
+ throw new Error("tmuyunTracker.report docId 和 title 是必填项");
18
+ const o = (s, p = 36) => s == null ? void 0 : s.slice(0, p), l = {
19
+ NewsArticleID: r.docId,
20
+ SelfNewsArticleID: r.docId,
21
+ NewsArticleTitle: o(r.title) || "",
22
+ NewsEditionNumber: (i = r.tmuyunModel) == null ? void 0 : i.editionNumber,
23
+ NewsEditionName: (a = r.tmuyunModel) == null ? void 0 : a.editionName,
24
+ NewsArticleType: (n = r.tmuyunModel) == null ? void 0 : n.docType,
25
+ NewsArticleSource: o(r.source),
26
+ NewsArticleAuthor: o(r.author),
27
+ NewsArticlePubtime: r.pubTime ? c(r.pubTime).format("YYYY-MM-DD HH:mm:ss") : c().startOf("day").format("YYYY-MM-DD HH:mm:ss")
28
+ };
29
+ f(l), this.enableLog && console.log("[天目云] 端外浏览点", w({}, l)), (u = this == null ? void 0 : this.onAfterTracker) == null || u.call(this, {
30
+ originTrackParams: r,
31
+ tmuyunTrackParams: l
32
+ });
33
+ }, this.enableLog = (e == null ? void 0 : e.enableLog) || !1, this.onAfterTracker = e == null ? void 0 : e.onAfterTracker;
34
+ }
35
+ }
36
+ export {
37
+ h as TmuyunTracker
38
+ };
@@ -0,0 +1,99 @@
1
+ import { TmuyunDocType as i } from "./TmuyunDocType.js";
2
+ const e = class {
3
+ constructor(o) {
4
+ this.editionNumber = o.editionNumber, this.editionName = o.editionName, this.docType = o.docType;
5
+ }
6
+ };
7
+ e.NEWS = new e({
8
+ editionNumber: "news",
9
+ editionName: "新闻资讯",
10
+ docType: i.NEWS.label
11
+ }), e.NEWS_NEO = new e({
12
+ editionNumber: "news_neo",
13
+ editionName: "新版资讯",
14
+ docType: i.NEWS.label
15
+ }), e.PROGRAM = new e({
16
+ editionNumber: "program",
17
+ editionName: "电台广播",
18
+ docType: i.NEWS.label
19
+ }), e.HOT_TOPIC = new e({
20
+ editionNumber: "hot_topic",
21
+ editionName: "热门专题",
22
+ docType: i.NEWS.label
23
+ }), e.VIDEO_LIVE = new e({
24
+ editionNumber: "video_live",
25
+ editionName: "视频直播",
26
+ docType: i.NEWS.label
27
+ }), e.HOOLO = new e({
28
+ editionNumber: "hoolo",
29
+ editionName: "精彩⽂⼴",
30
+ docType: i.NEWS.label
31
+ }), e.ACTIVITY = new e({
32
+ editionNumber: "activity",
33
+ editionName: "⽤户活动",
34
+ docType: i.ACTIVITY.label
35
+ }), e.CIRCLE = new e({
36
+ editionNumber: "circle",
37
+ editionName: "圈子话题",
38
+ docType: i.NEWS.label
39
+ }), e.EXT = new e({
40
+ editionNumber: "ext",
41
+ editionName: "精彩杭州",
42
+ docType: i.NEWS.label
43
+ }), e.REVEAL_NODE = new e({
44
+ editionNumber: "reveal_node",
45
+ editionName: "爆料台",
46
+ docType: i.NEWS.label
47
+ }), e.REVEAL_MAIN = new e({
48
+ editionNumber: "reveal_main",
49
+ editionName: "爆料台",
50
+ docType: i.NEWS.label
51
+ }), e.ACT_MIX = new e({
52
+ editionNumber: "act_mix",
53
+ editionName: "活动菜单",
54
+ docType: i.ACTIVITY.label
55
+ }), e.APP_MAIN_PAGE = new e({
56
+ editionNumber: "app_main_page",
57
+ editionName: "app主页",
58
+ docType: i.TOPIC.label
59
+ }), e.AUDIO_LIVE = new e({
60
+ editionNumber: "audio_live",
61
+ editionName: "广播页面",
62
+ docType: i.LIVE.label
63
+ }), e.NEWS_NEO_GROUP_TOPIC = new e({
64
+ editionNumber: "group_topic",
65
+ editionName: "资讯专题",
66
+ docType: i.TOPIC.label
67
+ }), e.MALL = new e({
68
+ editionNumber: "mall",
69
+ editionName: "商城",
70
+ docType: i.ACTIVITY.label
71
+ }), e.MINI_THEATRE = new e({
72
+ editionNumber: "mini_theatre",
73
+ editionName: "微短剧",
74
+ docType: i.VIDEO.label
75
+ }), e.PLAYBACK = new e({
76
+ editionNumber: "playback",
77
+ editionName: "节目回放",
78
+ docType: i.AUDIO.label
79
+ }), e.NEWS_NEO_PROGRAMME = new e({
80
+ editionNumber: "programme",
81
+ editionName: "栏目主页",
82
+ docType: i.LIVE.label
83
+ }), e.WORK_ORDER = new e({
84
+ editionNumber: "work_order",
85
+ editionName: "工单",
86
+ docType: i.ACTIVITY.label
87
+ }), e.ACTIVITY_HUB = new e({
88
+ editionNumber: "activity_hub",
89
+ editionName: "临时活动",
90
+ docType: i.ACTIVITY.label
91
+ }), e.ART_MAP = new e({
92
+ editionNumber: "art_map",
93
+ editionName: "艺术地图",
94
+ docType: i.ACTIVITY.label
95
+ }), e.ENROLL = new e({
96
+ editionNumber: "enroll",
97
+ editionName: "报名征集",
98
+ docType: i.TOPIC.label
99
+ });
@@ -0,0 +1,16 @@
1
+ const e = class {
2
+ constructor(l) {
3
+ this.value = l.value, this.label = l.label;
4
+ }
5
+ static values() {
6
+ return [this.NEWS, this.IMAGE, this.TOPIC, this.LINK, this.ACTIVITY, this.VIDEO, this.LIVE, this.WORD, this.AUDIO];
7
+ }
8
+ static getDocTypeByValue(l) {
9
+ return this.values().find((a) => a.value === l);
10
+ }
11
+ };
12
+ e.NEWS = new e({ value: 1, label: "新闻稿" }), e.IMAGE = new e({ value: 2, label: "图集稿" }), e.TOPIC = new e({ value: 3, label: "专题稿" }), e.LINK = new e({ value: 4, label: "链接稿" }), e.ACTIVITY = new e({ value: 5, label: "活动稿" }), e.VIDEO = new e({ value: 7, label: "视频稿" }), e.LIVE = new e({ value: 8, label: "直播稿" }), e.WORD = new e({ value: 9, label: "广电文稿" }), e.AUDIO = new e({ value: 12, label: "音频稿" });
13
+ let u = e;
14
+ export {
15
+ u as TmuyunDocType
16
+ };