rudder-sdk-js 1.3.3 → 1.4.2
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/index.d.ts +2 -1
- package/index.js +381 -599
- package/package.json +1 -1
package/index.js
CHANGED
@@ -5148,136 +5148,6 @@
|
|
5148
5148
|
return isobject(val) || Array.isArray(val) || typeof val === 'function';
|
5149
5149
|
}
|
5150
5150
|
|
5151
|
-
function isObjectObject(o) {
|
5152
|
-
return isobject(o) === true && Object.prototype.toString.call(o) === '[object Object]';
|
5153
|
-
}
|
5154
|
-
|
5155
|
-
var isPlainObject = function isPlainObject(o) {
|
5156
|
-
var ctor, prot;
|
5157
|
-
if (isObjectObject(o) === false) return false; // If has modified constructor
|
5158
|
-
|
5159
|
-
ctor = o.constructor;
|
5160
|
-
if (typeof ctor !== 'function') return false; // If has modified prototype
|
5161
|
-
|
5162
|
-
prot = ctor.prototype;
|
5163
|
-
if (isObjectObject(prot) === false) return false; // If constructor does not have an Object-specific method
|
5164
|
-
|
5165
|
-
if (prot.hasOwnProperty('isPrototypeOf') === false) {
|
5166
|
-
return false;
|
5167
|
-
} // Most likely a plain Object
|
5168
|
-
|
5169
|
-
|
5170
|
-
return true;
|
5171
|
-
};
|
5172
|
-
|
5173
|
-
function set(target, path, value, options) {
|
5174
|
-
if (!isObject(target)) {
|
5175
|
-
return target;
|
5176
|
-
}
|
5177
|
-
|
5178
|
-
var opts = options || {};
|
5179
|
-
var isArray = Array.isArray(path);
|
5180
|
-
|
5181
|
-
if (!isArray && typeof path !== 'string') {
|
5182
|
-
return target;
|
5183
|
-
}
|
5184
|
-
|
5185
|
-
var merge = opts.merge;
|
5186
|
-
|
5187
|
-
if (merge && typeof merge !== 'function') {
|
5188
|
-
merge = Object.assign;
|
5189
|
-
}
|
5190
|
-
|
5191
|
-
var keys = (isArray ? path : split$1(path, opts)).filter(isValidKey);
|
5192
|
-
var len = keys.length;
|
5193
|
-
var orig = target;
|
5194
|
-
|
5195
|
-
if (!options && keys.length === 1) {
|
5196
|
-
result(target, keys[0], value, merge);
|
5197
|
-
return target;
|
5198
|
-
}
|
5199
|
-
|
5200
|
-
for (var i = 0; i < len; i++) {
|
5201
|
-
var prop = keys[i];
|
5202
|
-
|
5203
|
-
if (!isObject(target[prop])) {
|
5204
|
-
target[prop] = {};
|
5205
|
-
}
|
5206
|
-
|
5207
|
-
if (i === len - 1) {
|
5208
|
-
result(target, prop, value, merge);
|
5209
|
-
break;
|
5210
|
-
}
|
5211
|
-
|
5212
|
-
target = target[prop];
|
5213
|
-
}
|
5214
|
-
|
5215
|
-
return orig;
|
5216
|
-
}
|
5217
|
-
|
5218
|
-
function result(target, path, value, merge) {
|
5219
|
-
if (merge && isPlainObject(target[path]) && isPlainObject(value)) {
|
5220
|
-
target[path] = merge({}, target[path], value);
|
5221
|
-
} else {
|
5222
|
-
target[path] = value;
|
5223
|
-
}
|
5224
|
-
}
|
5225
|
-
|
5226
|
-
function split$1(path, options) {
|
5227
|
-
var id = createKey(path, options);
|
5228
|
-
if (set.memo[id]) return set.memo[id];
|
5229
|
-
var char = options && options.separator ? options.separator : '.';
|
5230
|
-
var keys = [];
|
5231
|
-
var res = [];
|
5232
|
-
|
5233
|
-
if (options && typeof options.split === 'function') {
|
5234
|
-
keys = options.split(path);
|
5235
|
-
} else {
|
5236
|
-
keys = path.split(char);
|
5237
|
-
}
|
5238
|
-
|
5239
|
-
for (var i = 0; i < keys.length; i++) {
|
5240
|
-
var prop = keys[i];
|
5241
|
-
|
5242
|
-
while (prop && prop.slice(-1) === '\\' && keys[i + 1] != null) {
|
5243
|
-
prop = prop.slice(0, -1) + char + keys[++i];
|
5244
|
-
}
|
5245
|
-
|
5246
|
-
res.push(prop);
|
5247
|
-
}
|
5248
|
-
|
5249
|
-
set.memo[id] = res;
|
5250
|
-
return res;
|
5251
|
-
}
|
5252
|
-
|
5253
|
-
function createKey(pattern, options) {
|
5254
|
-
var id = pattern;
|
5255
|
-
|
5256
|
-
if (typeof options === 'undefined') {
|
5257
|
-
return id + '';
|
5258
|
-
}
|
5259
|
-
|
5260
|
-
var keys = Object.keys(options);
|
5261
|
-
|
5262
|
-
for (var i = 0; i < keys.length; i++) {
|
5263
|
-
var key = keys[i];
|
5264
|
-
id += ';' + key + '=' + String(options[key]);
|
5265
|
-
}
|
5266
|
-
|
5267
|
-
return id;
|
5268
|
-
}
|
5269
|
-
|
5270
|
-
function isValidKey(key) {
|
5271
|
-
return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';
|
5272
|
-
}
|
5273
|
-
|
5274
|
-
function isObject(val) {
|
5275
|
-
return val !== null && (_typeof(val) === 'object' || typeof val === 'function');
|
5276
|
-
}
|
5277
|
-
|
5278
|
-
set.memo = {};
|
5279
|
-
var setValue = set;
|
5280
|
-
|
5281
5151
|
var LOG_LEVEL_INFO = 1;
|
5282
5152
|
var LOG_LEVEL_DEBUG = 2;
|
5283
5153
|
var LOG_LEVEL_WARN = 3;
|
@@ -5328,160 +5198,237 @@
|
|
5328
5198
|
}
|
5329
5199
|
};
|
5330
5200
|
|
5331
|
-
|
5201
|
+
var _CNameMapping;
|
5202
|
+
|
5203
|
+
var NAME = "ADOBE_ANALYTICS";
|
5204
|
+
var CNameMapping = (_CNameMapping = {
|
5205
|
+
"Adobe Analytics": NAME
|
5206
|
+
}, _defineProperty(_CNameMapping, NAME, NAME), _defineProperty(_CNameMapping, "AdobeAnalytics", NAME), _defineProperty(_CNameMapping, "adobeanalytics", NAME), _CNameMapping);
|
5207
|
+
|
5208
|
+
var _CNameMapping$1;
|
5209
|
+
|
5210
|
+
var NAME$1 = "AM";
|
5211
|
+
var CNameMapping$1 = (_CNameMapping$1 = {}, _defineProperty(_CNameMapping$1, NAME$1, NAME$1), _defineProperty(_CNameMapping$1, "AMPLITUDE", NAME$1), _defineProperty(_CNameMapping$1, "Amplitude", NAME$1), _CNameMapping$1);
|
5212
|
+
|
5213
|
+
var _CNameMapping$2;
|
5214
|
+
|
5215
|
+
var NAME$2 = "APPCUES";
|
5216
|
+
var CNameMapping$2 = (_CNameMapping$2 = {}, _defineProperty(_CNameMapping$2, NAME$2, NAME$2), _defineProperty(_CNameMapping$2, "Appcues", NAME$2), _CNameMapping$2);
|
5217
|
+
|
5218
|
+
var _CNameMapping$3;
|
5219
|
+
|
5220
|
+
var NAME$3 = "BINGADS";
|
5221
|
+
var CNameMapping$3 = (_CNameMapping$3 = {}, _defineProperty(_CNameMapping$3, NAME$3, NAME$3), _defineProperty(_CNameMapping$3, "BingAds", NAME$3), _CNameMapping$3);
|
5222
|
+
|
5223
|
+
var _CNameMapping$4;
|
5224
|
+
|
5225
|
+
var NAME$4 = "BRAZE";
|
5226
|
+
var CNameMapping$4 = (_CNameMapping$4 = {}, _defineProperty(_CNameMapping$4, NAME$4, NAME$4), _defineProperty(_CNameMapping$4, "Braze", NAME$4), _CNameMapping$4);
|
5227
|
+
|
5228
|
+
var NAME$5 = "BUGSNAG";
|
5229
|
+
|
5230
|
+
var CNameMapping$5 = _defineProperty({}, NAME$5, NAME$5);
|
5231
|
+
|
5232
|
+
var _CNameMapping$5;
|
5233
|
+
|
5234
|
+
var NAME$6 = "CHARTBEAT";
|
5235
|
+
var CNameMapping$6 = (_CNameMapping$5 = {}, _defineProperty(_CNameMapping$5, NAME$6, NAME$6), _defineProperty(_CNameMapping$5, "Chartbeat", NAME$6), _CNameMapping$5);
|
5236
|
+
|
5237
|
+
var _CNameMapping$6;
|
5238
|
+
|
5239
|
+
var NAME$7 = "CLEVERTAP";
|
5240
|
+
var CNameMapping$7 = (_CNameMapping$6 = {}, _defineProperty(_CNameMapping$6, NAME$7, NAME$7), _defineProperty(_CNameMapping$6, "Clevertap", NAME$7), _CNameMapping$6);
|
5241
|
+
|
5242
|
+
var _CNameMapping$7;
|
5243
|
+
|
5244
|
+
var NAME$8 = "COMSCORE";
|
5245
|
+
var CNameMapping$8 = (_CNameMapping$7 = {}, _defineProperty(_CNameMapping$7, NAME$8, NAME$8), _defineProperty(_CNameMapping$7, "Comscore", NAME$8), _CNameMapping$7);
|
5246
|
+
|
5247
|
+
var _CNameMapping$8;
|
5248
|
+
|
5249
|
+
var NAME$9 = "CRITEO";
|
5250
|
+
var CNameMapping$9 = (_CNameMapping$8 = {}, _defineProperty(_CNameMapping$8, NAME$9, NAME$9), _defineProperty(_CNameMapping$8, "Criteo", NAME$9), _defineProperty(_CNameMapping$8, "criteo", NAME$9), _CNameMapping$8);
|
5251
|
+
|
5252
|
+
var _CNameMapping$9;
|
5253
|
+
|
5254
|
+
var NAME$a = "CUSTOMERIO";
|
5255
|
+
var CNameMapping$a = (_CNameMapping$9 = {}, _defineProperty(_CNameMapping$9, NAME$a, NAME$a), _defineProperty(_CNameMapping$9, "Customerio", NAME$a), _defineProperty(_CNameMapping$9, "Customer.io", NAME$a), _CNameMapping$9);
|
5256
|
+
|
5257
|
+
var _CNameMapping$a;
|
5258
|
+
|
5259
|
+
var NAME$b = "DRIP";
|
5260
|
+
var CNameMapping$b = (_CNameMapping$a = {}, _defineProperty(_CNameMapping$a, NAME$b, NAME$b), _defineProperty(_CNameMapping$a, "Drip", NAME$b), _defineProperty(_CNameMapping$a, "drip", NAME$b), _CNameMapping$a);
|
5261
|
+
|
5262
|
+
var _CNameMapping$b;
|
5263
|
+
|
5264
|
+
var NAME$c = "FACEBOOK_PIXEL";
|
5265
|
+
var CNameMapping$c = (_CNameMapping$b = {}, _defineProperty(_CNameMapping$b, NAME$c, NAME$c), _defineProperty(_CNameMapping$b, "FB Pixel", NAME$c), _defineProperty(_CNameMapping$b, "Facebook Pixel", NAME$c), _defineProperty(_CNameMapping$b, "FB_PIXEL", NAME$c), _CNameMapping$b);
|
5266
|
+
|
5267
|
+
var _CNameMapping$c;
|
5268
|
+
|
5269
|
+
var NAME$d = "FULLSTORY";
|
5270
|
+
var CNameMapping$d = (_CNameMapping$c = {}, _defineProperty(_CNameMapping$c, NAME$d, NAME$d), _defineProperty(_CNameMapping$c, "Fullstory", NAME$d), _defineProperty(_CNameMapping$c, "FullStory", NAME$d), _CNameMapping$c);
|
5271
|
+
|
5272
|
+
var _CNameMapping$d;
|
5273
|
+
|
5274
|
+
var NAME$e = "GA";
|
5275
|
+
var CNameMapping$e = (_CNameMapping$d = {}, _defineProperty(_CNameMapping$d, NAME$e, NAME$e), _defineProperty(_CNameMapping$d, "Google Analytics", NAME$e), _defineProperty(_CNameMapping$d, "GoogleAnalytics", NAME$e), _CNameMapping$d);
|
5276
|
+
|
5277
|
+
var _CNameMapping$e;
|
5278
|
+
|
5279
|
+
var NAME$f = "GA4";
|
5280
|
+
var CNameMapping$f = (_CNameMapping$e = {}, _defineProperty(_CNameMapping$e, NAME$f, NAME$f), _defineProperty(_CNameMapping$e, "Google Analytics 4", NAME$f), _defineProperty(_CNameMapping$e, "GoogleAnalytics4", NAME$f), _CNameMapping$e);
|
5281
|
+
|
5282
|
+
var _CNameMapping$f;
|
5283
|
+
|
5284
|
+
var NAME$g = "GOOGLEADS";
|
5285
|
+
var CNameMapping$g = (_CNameMapping$f = {}, _defineProperty(_CNameMapping$f, NAME$g, NAME$g), _defineProperty(_CNameMapping$f, "Google Ads", NAME$g), _defineProperty(_CNameMapping$f, "GoogleAds", NAME$g), _CNameMapping$f);
|
5286
|
+
|
5287
|
+
var _CNameMapping$g;
|
5288
|
+
|
5289
|
+
var NAME$h = "GOOGLE_OPTIMIZE";
|
5290
|
+
var CNameMapping$h = (_CNameMapping$g = {}, _defineProperty(_CNameMapping$g, NAME$h, NAME$h), _defineProperty(_CNameMapping$g, "Google Optimize", NAME$h), _defineProperty(_CNameMapping$g, "GoogleOptimize", NAME$h), _defineProperty(_CNameMapping$g, "Googleoptimize", NAME$h), _defineProperty(_CNameMapping$g, "GOOGLEOPTIMIZE", NAME$h), _CNameMapping$g);
|
5291
|
+
|
5292
|
+
var _CNameMapping$h;
|
5293
|
+
|
5294
|
+
var NAME$i = "GTM";
|
5295
|
+
var CNameMapping$i = (_CNameMapping$h = {}, _defineProperty(_CNameMapping$h, NAME$i, NAME$i), _defineProperty(_CNameMapping$h, "Google Tag Manager", NAME$i), _CNameMapping$h);
|
5296
|
+
|
5297
|
+
var _CNameMapping$i;
|
5298
|
+
|
5299
|
+
var NAME$j = "HEAP";
|
5300
|
+
var CNameMapping$j = (_CNameMapping$i = {}, _defineProperty(_CNameMapping$i, NAME$j, NAME$j), _defineProperty(_CNameMapping$i, "Heap", NAME$j), _defineProperty(_CNameMapping$i, "heap", NAME$j), _defineProperty(_CNameMapping$i, "Heap.io", NAME$j), _CNameMapping$i);
|
5301
|
+
|
5302
|
+
var _CNameMapping$j;
|
5303
|
+
|
5304
|
+
var NAME$k = "HOTJAR";
|
5305
|
+
var CNameMapping$k = (_CNameMapping$j = {}, _defineProperty(_CNameMapping$j, NAME$k, NAME$k), _defineProperty(_CNameMapping$j, "Hotjar", NAME$k), _defineProperty(_CNameMapping$j, "hotjar", NAME$k), _CNameMapping$j);
|
5306
|
+
|
5307
|
+
var _CNameMapping$k;
|
5308
|
+
|
5309
|
+
var NAME$l = "HS";
|
5310
|
+
var CNameMapping$l = (_CNameMapping$k = {}, _defineProperty(_CNameMapping$k, NAME$l, NAME$l), _defineProperty(_CNameMapping$k, "Hubspot", NAME$l), _defineProperty(_CNameMapping$k, "HUBSPOT", NAME$l), _CNameMapping$k);
|
5311
|
+
|
5312
|
+
var _CNameMapping$l;
|
5313
|
+
|
5314
|
+
var NAME$m = "INTERCOM";
|
5315
|
+
var CNameMapping$m = (_CNameMapping$l = {}, _defineProperty(_CNameMapping$l, NAME$m, NAME$m), _defineProperty(_CNameMapping$l, "Intercom", NAME$m), _CNameMapping$l);
|
5316
|
+
|
5317
|
+
var _CNameMapping$m;
|
5318
|
+
|
5319
|
+
var NAME$n = "KEEN";
|
5320
|
+
var CNameMapping$n = (_CNameMapping$m = {}, _defineProperty(_CNameMapping$m, NAME$n, NAME$n), _defineProperty(_CNameMapping$m, "Keen", NAME$n), _defineProperty(_CNameMapping$m, "Keen.io", NAME$n), _CNameMapping$m);
|
5321
|
+
|
5322
|
+
var _CNameMapping$n;
|
5323
|
+
|
5324
|
+
var NAME$o = "KISSMETRICS";
|
5325
|
+
var CNameMapping$o = (_CNameMapping$n = {}, _defineProperty(_CNameMapping$n, NAME$o, NAME$o), _defineProperty(_CNameMapping$n, "Kissmetrics", NAME$o), _CNameMapping$n);
|
5326
|
+
|
5327
|
+
var _CNameMapping$o;
|
5328
|
+
|
5329
|
+
var NAME$p = "KLAVIYO";
|
5330
|
+
var CNameMapping$p = (_CNameMapping$o = {}, _defineProperty(_CNameMapping$o, NAME$p, NAME$p), _defineProperty(_CNameMapping$o, "Klaviyo", NAME$p), _CNameMapping$o);
|
5331
|
+
|
5332
|
+
var _CNameMapping$p;
|
5333
|
+
|
5334
|
+
var NAME$q = "LAUNCHDARKLY";
|
5335
|
+
var CNameMapping$q = (_CNameMapping$p = {}, _defineProperty(_CNameMapping$p, NAME$q, NAME$q), _defineProperty(_CNameMapping$p, "LaunchDarkly", NAME$q), _defineProperty(_CNameMapping$p, "Launch_Darkly", NAME$q), _defineProperty(_CNameMapping$p, "Launch Darkly", NAME$q), _defineProperty(_CNameMapping$p, "launchDarkly", NAME$q), _CNameMapping$p);
|
5336
|
+
|
5337
|
+
var _CNameMapping$q;
|
5338
|
+
|
5339
|
+
var NAME$r = "LINKEDIN_INSIGHT_TAG";
|
5340
|
+
var CNameMapping$r = (_CNameMapping$q = {}, _defineProperty(_CNameMapping$q, NAME$r, NAME$r), _defineProperty(_CNameMapping$q, "LinkedIn Insight Tag", NAME$r), _defineProperty(_CNameMapping$q, "Linkedin_insight_tag", NAME$r), _defineProperty(_CNameMapping$q, "LinkedinInsighttag", NAME$r), _defineProperty(_CNameMapping$q, "LinkedinInsightTag", NAME$r), _defineProperty(_CNameMapping$q, "LinkedInInsightTag", NAME$r), _defineProperty(_CNameMapping$q, "Linkedininsighttag", NAME$r), _defineProperty(_CNameMapping$q, "LINKEDININSIGHTTAG", NAME$r), _CNameMapping$q);
|
5341
|
+
|
5342
|
+
var _CNameMapping$r;
|
5343
|
+
|
5344
|
+
var NAME$s = "LOTAME";
|
5345
|
+
var CNameMapping$s = (_CNameMapping$r = {}, _defineProperty(_CNameMapping$r, NAME$s, NAME$s), _defineProperty(_CNameMapping$r, "Lotame", NAME$s), _CNameMapping$r);
|
5346
|
+
|
5347
|
+
var _CNameMapping$s;
|
5348
|
+
|
5349
|
+
var NAME$t = "LYTICS";
|
5350
|
+
var CNameMapping$t = (_CNameMapping$s = {}, _defineProperty(_CNameMapping$s, NAME$t, NAME$t), _defineProperty(_CNameMapping$s, "Lytics", NAME$t), _CNameMapping$s);
|
5351
|
+
|
5352
|
+
var _CNameMapping$t;
|
5353
|
+
|
5354
|
+
var NAME$u = "MP";
|
5355
|
+
var CNameMapping$u = (_CNameMapping$t = {}, _defineProperty(_CNameMapping$t, NAME$u, NAME$u), _defineProperty(_CNameMapping$t, "MIXPANEL", NAME$u), _defineProperty(_CNameMapping$t, "Mixpanel", NAME$u), _CNameMapping$t);
|
5356
|
+
|
5357
|
+
var _CNameMapping$u;
|
5358
|
+
|
5359
|
+
var NAME$v = "MOENGAGE";
|
5360
|
+
var CNameMapping$v = (_CNameMapping$u = {}, _defineProperty(_CNameMapping$u, NAME$v, NAME$v), _defineProperty(_CNameMapping$u, "MoEngage", NAME$v), _CNameMapping$u);
|
5361
|
+
|
5362
|
+
var _CNameMapping$v;
|
5363
|
+
|
5364
|
+
var NAME$w = "OPTIMIZELY";
|
5365
|
+
var CNameMapping$w = (_CNameMapping$v = {}, _defineProperty(_CNameMapping$v, NAME$w, NAME$w), _defineProperty(_CNameMapping$v, "Optimizely", NAME$w), _CNameMapping$v);
|
5366
|
+
|
5367
|
+
var _CNameMapping$w;
|
5368
|
+
|
5369
|
+
var NAME$x = "PENDO";
|
5370
|
+
var CNameMapping$x = (_CNameMapping$w = {}, _defineProperty(_CNameMapping$w, NAME$x, NAME$x), _defineProperty(_CNameMapping$w, "Pendo", NAME$x), _CNameMapping$w);
|
5371
|
+
|
5372
|
+
var _CNameMapping$x;
|
5373
|
+
|
5374
|
+
var NAME$y = "PINTEREST_TAG";
|
5375
|
+
var CNameMapping$y = (_CNameMapping$x = {}, _defineProperty(_CNameMapping$x, NAME$y, NAME$y), _defineProperty(_CNameMapping$x, "PinterestTag", NAME$y), _defineProperty(_CNameMapping$x, "Pinterest_Tag", NAME$y), _defineProperty(_CNameMapping$x, "PINTERESTTAG", NAME$y), _defineProperty(_CNameMapping$x, "pinterest", NAME$y), _defineProperty(_CNameMapping$x, "PinterestAds", NAME$y), _defineProperty(_CNameMapping$x, "Pinterest_Ads", NAME$y), _defineProperty(_CNameMapping$x, "Pinterest", NAME$y), _CNameMapping$x);
|
5376
|
+
|
5377
|
+
var _CNameMapping$y;
|
5378
|
+
|
5379
|
+
var NAME$z = "POST_AFFILIATE_PRO";
|
5380
|
+
var CNameMapping$z = (_CNameMapping$y = {}, _defineProperty(_CNameMapping$y, NAME$z, NAME$z), _defineProperty(_CNameMapping$y, "PostAffiliatePro", NAME$z), _defineProperty(_CNameMapping$y, "Post_affiliate_pro", NAME$z), _defineProperty(_CNameMapping$y, "Post Affiliate Pro", NAME$z), _defineProperty(_CNameMapping$y, "postaffiliatepro", NAME$z), _defineProperty(_CNameMapping$y, "POSTAFFILIATEPRO", NAME$z), _CNameMapping$y);
|
5381
|
+
|
5382
|
+
var _CNameMapping$z;
|
5383
|
+
|
5384
|
+
var NAME$A = "POSTHOG";
|
5385
|
+
var CNameMapping$A = (_CNameMapping$z = {}, _defineProperty(_CNameMapping$z, NAME$A, NAME$A), _defineProperty(_CNameMapping$z, "PostHog", NAME$A), _defineProperty(_CNameMapping$z, "Posthog", NAME$A), _CNameMapping$z);
|
5386
|
+
|
5387
|
+
var _CNameMapping$A;
|
5388
|
+
|
5389
|
+
var NAME$B = "PROFITWELL";
|
5390
|
+
var CNameMapping$B = (_CNameMapping$A = {}, _defineProperty(_CNameMapping$A, NAME$B, NAME$B), _defineProperty(_CNameMapping$A, "ProfitWell", NAME$B), _defineProperty(_CNameMapping$A, "profitwell", NAME$B), _defineProperty(_CNameMapping$A, "Profitwell", NAME$B), _CNameMapping$A);
|
5391
|
+
|
5392
|
+
var _CNameMapping$B;
|
5393
|
+
|
5394
|
+
var NAME$C = "QUALTRICS";
|
5395
|
+
var CNameMapping$C = (_CNameMapping$B = {}, _defineProperty(_CNameMapping$B, NAME$C, NAME$C), _defineProperty(_CNameMapping$B, "Qualtrics", NAME$C), _defineProperty(_CNameMapping$B, "qualtrics", NAME$C), _CNameMapping$B);
|
5396
|
+
|
5397
|
+
var _CNameMapping$C;
|
5398
|
+
|
5399
|
+
var NAME$D = "QUANTUMMETRIC";
|
5400
|
+
var CNameMapping$D = (_CNameMapping$C = {}, _defineProperty(_CNameMapping$C, NAME$D, NAME$D), _defineProperty(_CNameMapping$C, "Quantum Metric", NAME$D), _defineProperty(_CNameMapping$C, "QuantumMetric", NAME$D), _defineProperty(_CNameMapping$C, "quantumMetric", NAME$D), _defineProperty(_CNameMapping$C, "quantummetric", NAME$D), _defineProperty(_CNameMapping$C, "Quantum_Metric", NAME$D), _CNameMapping$C);
|
5401
|
+
|
5402
|
+
var _CNameMapping$D;
|
5403
|
+
|
5404
|
+
var NAME$E = "REDDIT_PIXEL";
|
5405
|
+
var CNameMapping$E = (_CNameMapping$D = {}, _defineProperty(_CNameMapping$D, NAME$E, NAME$E), _defineProperty(_CNameMapping$D, "Reddit_Pixel", NAME$E), _defineProperty(_CNameMapping$D, "RedditPixel", NAME$E), _defineProperty(_CNameMapping$D, "REDDITPIXEL", NAME$E), _defineProperty(_CNameMapping$D, "redditpixel", NAME$E), _defineProperty(_CNameMapping$D, "Reddit Pixel", NAME$E), _defineProperty(_CNameMapping$D, "REDDIT PIXEL", NAME$E), _defineProperty(_CNameMapping$D, "reddit pixel", NAME$E), _CNameMapping$D);
|
5406
|
+
|
5407
|
+
var _CNameMapping$E;
|
5408
|
+
|
5409
|
+
var NAME$F = "SENTRY";
|
5410
|
+
var CNameMapping$F = (_CNameMapping$E = {}, _defineProperty(_CNameMapping$E, NAME$F, NAME$F), _defineProperty(_CNameMapping$E, "sentry", NAME$F), _defineProperty(_CNameMapping$E, "Sentry", NAME$F), _CNameMapping$E);
|
5411
|
+
|
5412
|
+
var _CNameMapping$F;
|
5413
|
+
|
5414
|
+
var NAME$G = "SNAP_PIXEL";
|
5415
|
+
var CNameMapping$G = (_CNameMapping$F = {}, _defineProperty(_CNameMapping$F, NAME$G, NAME$G), _defineProperty(_CNameMapping$F, "Snap_Pixel", NAME$G), _defineProperty(_CNameMapping$F, "SnapPixel", NAME$G), _defineProperty(_CNameMapping$F, "SNAPPIXEL", NAME$G), _defineProperty(_CNameMapping$F, "snappixel", NAME$G), _defineProperty(_CNameMapping$F, "Snap Pixel", NAME$G), _defineProperty(_CNameMapping$F, "SNAP PIXEL", NAME$G), _defineProperty(_CNameMapping$F, "snap pixel", NAME$G), _CNameMapping$F);
|
5416
|
+
|
5417
|
+
var _CNameMapping$G;
|
5418
|
+
|
5419
|
+
var NAME$H = "TVSQUARED";
|
5420
|
+
var CNameMapping$H = (_CNameMapping$G = {}, _defineProperty(_CNameMapping$G, NAME$H, NAME$H), _defineProperty(_CNameMapping$G, "TVSquared", NAME$H), _CNameMapping$G);
|
5421
|
+
|
5422
|
+
var _CNameMapping$H;
|
5423
|
+
|
5424
|
+
var NAME$I = "VWO";
|
5425
|
+
var CNameMapping$I = (_CNameMapping$H = {}, _defineProperty(_CNameMapping$H, NAME$I, NAME$I), _defineProperty(_CNameMapping$H, "Visual Website Optimizer", NAME$I), _CNameMapping$H);
|
5426
|
+
|
5332
5427
|
// add a mapping from common names to index.js exported key names as identified by Rudder
|
5333
|
-
|
5334
|
-
|
5335
|
-
|
5336
|
-
|
5337
|
-
GA: "GA",
|
5338
|
-
"Google Ads": "GOOGLEADS",
|
5339
|
-
GoogleAds: "GOOGLEADS",
|
5340
|
-
GOOGLEADS: "GOOGLEADS",
|
5341
|
-
Braze: "BRAZE",
|
5342
|
-
BRAZE: "BRAZE",
|
5343
|
-
Chartbeat: "CHARTBEAT",
|
5344
|
-
CHARTBEAT: "CHARTBEAT",
|
5345
|
-
Comscore: "COMSCORE",
|
5346
|
-
COMSCORE: "COMSCORE",
|
5347
|
-
Customerio: "CUSTOMERIO",
|
5348
|
-
CUSTOMERIO: "CUSTOMERIO",
|
5349
|
-
"Customer.io": "CUSTOMERIO",
|
5350
|
-
"FB Pixel": "FACEBOOK_PIXEL",
|
5351
|
-
"Facebook Pixel": "FACEBOOK_PIXEL",
|
5352
|
-
FB_PIXEL: "FACEBOOK_PIXEL",
|
5353
|
-
FACEBOOK_PIXEL: "FACEBOOK_PIXEL",
|
5354
|
-
"Google Tag Manager": "GTM",
|
5355
|
-
GTM: "GTM",
|
5356
|
-
Hotjar: "HOTJAR",
|
5357
|
-
hotjar: "HOTJAR",
|
5358
|
-
HOTJAR: "HOTJAR",
|
5359
|
-
Hubspot: "HS",
|
5360
|
-
HUBSPOT: "HS",
|
5361
|
-
HS: "HS",
|
5362
|
-
Intercom: "INTERCOM",
|
5363
|
-
INTERCOM: "INTERCOM",
|
5364
|
-
Keen: "KEEN",
|
5365
|
-
"Keen.io": "KEEN",
|
5366
|
-
KEEN: "KEEN",
|
5367
|
-
Kissmetrics: "KISSMETRICS",
|
5368
|
-
KISSMETRICS: "KISSMETRICS",
|
5369
|
-
Lotame: "LOTAME",
|
5370
|
-
LOTAME: "LOTAME",
|
5371
|
-
"Visual Website Optimizer": "VWO",
|
5372
|
-
VWO: "VWO",
|
5373
|
-
OPTIMIZELY: "OPTIMIZELY",
|
5374
|
-
Optimizely: "OPTIMIZELY",
|
5375
|
-
FULLSTORY: "FULLSTORY",
|
5376
|
-
Fullstory: "FULLSTORY",
|
5377
|
-
FullStory: "FULLSTORY",
|
5378
|
-
BUGSNAG: "BUGSNAG",
|
5379
|
-
TVSQUARED: "TVSQUARED",
|
5380
|
-
TVSquared: "TVSQUARED",
|
5381
|
-
"Google Analytics 4": "GA4",
|
5382
|
-
GoogleAnalytics4: "GA4",
|
5383
|
-
GA4: "GA4",
|
5384
|
-
MoEngage: "MOENGAGE",
|
5385
|
-
MOENGAGE: "MOENGAGE",
|
5386
|
-
AM: "AM",
|
5387
|
-
AMPLITUDE: "AM",
|
5388
|
-
Amplitude: "AM",
|
5389
|
-
Pendo: "PENDO",
|
5390
|
-
PENDO: "PENDO",
|
5391
|
-
Lytics: "LYTICS",
|
5392
|
-
LYTICS: "LYTICS",
|
5393
|
-
Appcues: "APPCUES",
|
5394
|
-
APPCUES: "APPCUES",
|
5395
|
-
POSTHOG: "POSTHOG",
|
5396
|
-
PostHog: "POSTHOG",
|
5397
|
-
Posthog: "POSTHOG",
|
5398
|
-
KLAVIYO: "KLAVIYO",
|
5399
|
-
Klaviyo: "KLAVIYO",
|
5400
|
-
CLEVERTAP: "CLEVERTAP",
|
5401
|
-
Clevertap: "CLEVERTAP",
|
5402
|
-
BingAds: "BINGADS",
|
5403
|
-
BINGADS: "BINGADS",
|
5404
|
-
PinterestTag: "PINTEREST_TAG",
|
5405
|
-
Pinterest_Tag: "PINTEREST_TAG",
|
5406
|
-
PINTERESTTAG: "PINTEREST_TAG",
|
5407
|
-
PINTEREST_TAG: "PINTEREST_TAG",
|
5408
|
-
pinterest: "PINTEREST_TAG",
|
5409
|
-
PinterestAds: "PINTEREST_TAG",
|
5410
|
-
Pinterest_Ads: "PINTEREST_TAG",
|
5411
|
-
Pinterest: "PINTEREST_TAG",
|
5412
|
-
"Adobe Analytics": "ADOBE_ANALYTICS",
|
5413
|
-
ADOBE_ANALYTICS: "ADOBE_ANALYTICS",
|
5414
|
-
AdobeAnalytics: "ADOBE_ANALYTICS",
|
5415
|
-
adobeanalytics: "ADOBE_ANALYTICS",
|
5416
|
-
"LinkedIn Insight Tag": "LINKEDIN_INSIGHT_TAG",
|
5417
|
-
LINKEDIN_INSIGHT_TAG: "LINKEDIN_INSIGHT_TAG",
|
5418
|
-
Linkedin_insight_tag: "LINKEDIN_INSIGHT_TAG",
|
5419
|
-
LinkedinInsighttag: "LINKEDIN_INSIGHT_TAG",
|
5420
|
-
LinkedinInsightTag: "LINKEDIN_INSIGHT_TAG",
|
5421
|
-
LinkedInInsightTag: "LINKEDIN_INSIGHT_TAG",
|
5422
|
-
Linkedininsighttag: "LINKEDIN_INSIGHT_TAG",
|
5423
|
-
LINKEDININSIGHTTAG: "LINKEDIN_INSIGHT_TAG",
|
5424
|
-
Reddit_Pixel: "REDDIT_PIXEL",
|
5425
|
-
REDDIT_PIXEL: "REDDIT_PIXEL",
|
5426
|
-
RedditPixel: "REDDIT_PIXEL",
|
5427
|
-
REDDITPIXEL: "REDDIT_PIXEL",
|
5428
|
-
redditpixel: "REDDIT_PIXEL",
|
5429
|
-
"Reddit Pixel": "REDDIT_PIXEL",
|
5430
|
-
"REDDIT PIXEL": "REDDIT_PIXEL",
|
5431
|
-
"reddit pixel": "REDDIT_PIXEL",
|
5432
|
-
Drip: "DRIP",
|
5433
|
-
drip: "DRIP",
|
5434
|
-
DRIP: "DRIP",
|
5435
|
-
Heap: "HEAP",
|
5436
|
-
heap: "HEAP",
|
5437
|
-
"Heap.io": "HEAP",
|
5438
|
-
HEAP: "HEAP",
|
5439
|
-
Criteo: "CRITEO",
|
5440
|
-
criteo: "CRITEO",
|
5441
|
-
CRITEO: "CRITEO",
|
5442
|
-
MIXPANEL: "MP",
|
5443
|
-
Mixpanel: "MP",
|
5444
|
-
MP: "MP",
|
5445
|
-
Qualtrics: "QUALTRICS",
|
5446
|
-
qualtrics: "QUALTRICS",
|
5447
|
-
QUALTRICS: "QUALTRICS",
|
5448
|
-
Snap_Pixel: "SNAP_PIXEL",
|
5449
|
-
SnapPixel: "SNAP_PIXEL",
|
5450
|
-
SNAPPIXEL: "SNAP_PIXEL",
|
5451
|
-
snappixel: "SNAP_PIXEL",
|
5452
|
-
SNAP_PIXEL: "SNAP_PIXEL",
|
5453
|
-
"Snap Pixel": "SNAP_PIXEL",
|
5454
|
-
"SNAP PIXEL": "SNAP_PIXEL",
|
5455
|
-
"snap pixel": "SNAP_PIXEL",
|
5456
|
-
PROFITWELL: "PROFITWELL",
|
5457
|
-
ProfitWell: "PROFITWELL",
|
5458
|
-
profitwell: "PROFITWELL",
|
5459
|
-
SENTRY: "SENTRY",
|
5460
|
-
sentry: "SENTRY",
|
5461
|
-
Sentry: "SENTRY",
|
5462
|
-
"Quantum Metric": "QUANTUMMETRIC",
|
5463
|
-
QuantumMetric: "QUANTUMMETRIC",
|
5464
|
-
quantumMetric: "QUANTUMMETRIC",
|
5465
|
-
quantummetric: "QUANTUMMETRIC",
|
5466
|
-
Quantum_Metric: "QUANTUMMETRIC",
|
5467
|
-
QUANTUMMETRIC: "QUANTUMMETRIC",
|
5468
|
-
"Google Optimize": "GOOGLE_OPTIMIZE",
|
5469
|
-
GOOGLE_OPTIMIZE: "GOOGLE_OPTIMIZE",
|
5470
|
-
GoogleOptimize: "GOOGLE_OPTIMIZE",
|
5471
|
-
Googleoptimize: "GOOGLE_OPTIMIZE",
|
5472
|
-
GOOGLEOPTIMIZE: "GOOGLE_OPTIMIZE",
|
5473
|
-
PostAffiliatePro: "POST_AFFILIATE_PRO",
|
5474
|
-
Post_affiliate_pro: "POST_AFFILIATE_PRO",
|
5475
|
-
"Post Affiliate Pro": "POST_AFFILIATE_PRO",
|
5476
|
-
postaffiliatepro: "POST_AFFILIATE_PRO",
|
5477
|
-
POSTAFFILIATEPRO: "POST_AFFILIATE_PRO",
|
5478
|
-
POST_AFFILIATE_PRO: "POST_AFFILIATE_PRO",
|
5479
|
-
LaunchDarkly: "LAUNCHDARKLY",
|
5480
|
-
Launch_Darkly: "LAUNCHDARKLY",
|
5481
|
-
LAUNCHDARKLY: "LAUNCHDARKLY",
|
5482
|
-
"Launch Darkly": "LAUNCHDARKLY",
|
5483
|
-
launchDarkly: "LAUNCHDARKLY"
|
5484
|
-
};
|
5428
|
+
|
5429
|
+
var commonNames = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
5430
|
+
All: "All"
|
5431
|
+
}, CNameMapping), CNameMapping$1), CNameMapping$2), CNameMapping$3), CNameMapping$4), CNameMapping$5), CNameMapping$6), CNameMapping$7), CNameMapping$8), CNameMapping$9), CNameMapping$a), CNameMapping$b), CNameMapping$c), CNameMapping$d), CNameMapping$e), CNameMapping$f), CNameMapping$g), CNameMapping$h), CNameMapping$i), CNameMapping$j), CNameMapping$k), CNameMapping$l), CNameMapping$m), CNameMapping$n), CNameMapping$o), CNameMapping$p), CNameMapping$q), CNameMapping$r), CNameMapping$s), CNameMapping$t), CNameMapping$u), CNameMapping$v), CNameMapping$w), CNameMapping$x), CNameMapping$y), CNameMapping$z), CNameMapping$A), CNameMapping$B), CNameMapping$C), CNameMapping$D), CNameMapping$E), CNameMapping$F), CNameMapping$G), CNameMapping$H), CNameMapping$I);
|
5485
5432
|
|
5486
5433
|
// from client native integration name to server identified display name
|
5487
5434
|
// add a mapping from Rudder identified key names to Rudder server recognizable names
|
@@ -5572,9 +5519,10 @@
|
|
5572
5519
|
PRODUCT_REVIEWED: "Product Reviewed"
|
5573
5520
|
}; // Enumeration for integrations supported
|
5574
5521
|
|
5575
|
-
var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=1.
|
5522
|
+
var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=1.4.2";
|
5576
5523
|
var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
|
5577
5524
|
var INTEGRATION_LOAD_CHECK_INTERVAL = 1000;
|
5525
|
+
var POLYFILL_URL = "https://polyfill.io/v3/polyfill.min.js?features=Array.prototype.find%2CArray.prototype.includes%2CPromise%2CString.prototype.endsWith%2CString.prototype.includes%2CString.prototype.startsWith%2CObject.entries";
|
5578
5526
|
/* module.exports = {
|
5579
5527
|
MessageType: MessageType,
|
5580
5528
|
ECommerceParamNames: ECommerceParamNames,
|
@@ -8710,7 +8658,7 @@
|
|
8710
8658
|
switch (arguments.length) {
|
8711
8659
|
case 3:
|
8712
8660
|
case 2:
|
8713
|
-
return set
|
8661
|
+
return set(name, value, options);
|
8714
8662
|
|
8715
8663
|
case 1:
|
8716
8664
|
return get(name);
|
@@ -8729,7 +8677,7 @@
|
|
8729
8677
|
*/
|
8730
8678
|
|
8731
8679
|
|
8732
|
-
function set
|
8680
|
+
function set(name, value, options) {
|
8733
8681
|
options = options || {};
|
8734
8682
|
var str = encode$1(name) + '=' + encode$1(value);
|
8735
8683
|
if (null == value) options.maxage = -1;
|
@@ -8925,7 +8873,7 @@
|
|
8925
8873
|
*/
|
8926
8874
|
// TODO: Move to a library
|
8927
8875
|
|
8928
|
-
var isObject
|
8876
|
+
var isObject = function isObject(value) {
|
8929
8877
|
return Boolean(value) && _typeof(value) === 'object';
|
8930
8878
|
};
|
8931
8879
|
/**
|
@@ -8939,7 +8887,7 @@
|
|
8939
8887
|
// TODO: Move to a library
|
8940
8888
|
|
8941
8889
|
|
8942
|
-
var isPlainObject
|
8890
|
+
var isPlainObject = function isPlainObject(value) {
|
8943
8891
|
return Boolean(value) && objToString$1.call(value) === '[object Object]';
|
8944
8892
|
};
|
8945
8893
|
/**
|
@@ -8978,7 +8926,7 @@
|
|
8978
8926
|
|
8979
8927
|
var deepCombiner = function deepCombiner(target, source, value, key) {
|
8980
8928
|
if (has$2.call(source, key)) {
|
8981
|
-
if (isPlainObject
|
8929
|
+
if (isPlainObject(target[key]) && isPlainObject(value)) {
|
8982
8930
|
target[key] = defaultsDeep(target[key], value);
|
8983
8931
|
} else if (target[key] === undefined) {
|
8984
8932
|
target[key] = value;
|
@@ -9002,7 +8950,7 @@
|
|
9002
8950
|
var defaultsWith = function defaultsWith(combiner, target
|
9003
8951
|
/*, ...sources */
|
9004
8952
|
) {
|
9005
|
-
if (!isObject
|
8953
|
+
if (!isObject(target)) {
|
9006
8954
|
return target;
|
9007
8955
|
}
|
9008
8956
|
|
@@ -10901,7 +10849,7 @@
|
|
10901
10849
|
switch (arguments.length) {
|
10902
10850
|
case 3:
|
10903
10851
|
case 2:
|
10904
|
-
return set$
|
10852
|
+
return set$1(name, value, options);
|
10905
10853
|
|
10906
10854
|
case 1:
|
10907
10855
|
return get$1(name);
|
@@ -10920,7 +10868,7 @@
|
|
10920
10868
|
*/
|
10921
10869
|
|
10922
10870
|
|
10923
|
-
function set$
|
10871
|
+
function set$1(name, value, options) {
|
10924
10872
|
options = options || {};
|
10925
10873
|
var str = encode$2(name) + '=' + encode$2(value);
|
10926
10874
|
if (null == value) options.maxage = -1;
|
@@ -12336,7 +12284,13 @@
|
|
12336
12284
|
});
|
12337
12285
|
objKeys.map(function (k) {
|
12338
12286
|
if (!(typeof messageContext[k] === "undefined")) {
|
12339
|
-
|
12287
|
+
if (destination) {
|
12288
|
+
destination[k] = getValue(messageContext, k);
|
12289
|
+
} else {
|
12290
|
+
destination = {
|
12291
|
+
k: getValue(messageContext, k)
|
12292
|
+
};
|
12293
|
+
}
|
12340
12294
|
}
|
12341
12295
|
});
|
12342
12296
|
}
|
@@ -12364,7 +12318,7 @@
|
|
12364
12318
|
};
|
12365
12319
|
|
12366
12320
|
if (!getValue(traitsValue, "name") && getValue(traitsValue, "firstName") && getValue(traitsValue, "lastName")) {
|
12367
|
-
|
12321
|
+
traitsValue.name = "".concat(getValue(traitsValue, "firstName"), " ").concat(getValue(traitsValue, "lastName"));
|
12368
12322
|
}
|
12369
12323
|
|
12370
12324
|
return traitsValue;
|
@@ -12374,7 +12328,7 @@
|
|
12374
12328
|
*/
|
12375
12329
|
|
12376
12330
|
|
12377
|
-
var isObject$
|
12331
|
+
var isObject$1 = function isObject(obj) {
|
12378
12332
|
return type(obj) === "object";
|
12379
12333
|
};
|
12380
12334
|
/**
|
@@ -22919,7 +22873,7 @@
|
|
22919
22873
|
this.proxyNormalUrl = config.proxyNormalUrl;
|
22920
22874
|
this.proxyHeartbeatUrl = config.proxyHeartbeatUrl;
|
22921
22875
|
this.pageName = "";
|
22922
|
-
this.name =
|
22876
|
+
this.name = NAME;
|
22923
22877
|
setConfig(config);
|
22924
22878
|
}
|
22925
22879
|
|
@@ -23201,7 +23155,7 @@
|
|
23201
23155
|
|
23202
23156
|
_classCallCheck(this, Amplitude);
|
23203
23157
|
|
23204
|
-
this.name =
|
23158
|
+
this.name = NAME$1;
|
23205
23159
|
this.analytics = analytics;
|
23206
23160
|
this.apiKey = config.apiKey;
|
23207
23161
|
this.trackAllPages = config.trackAllPages || false;
|
@@ -23628,6 +23582,12 @@
|
|
23628
23582
|
amplitudeRevenue.setProductId(productId);
|
23629
23583
|
}
|
23630
23584
|
|
23585
|
+
if (amplitudeRevenue._properties) {
|
23586
|
+
delete amplitudeRevenue._properties.price;
|
23587
|
+
delete amplitudeRevenue._properties.productId;
|
23588
|
+
delete amplitudeRevenue._properties.quantity;
|
23589
|
+
}
|
23590
|
+
|
23631
23591
|
window.amplitude.getInstance().logRevenueV2(amplitudeRevenue);
|
23632
23592
|
}
|
23633
23593
|
}, {
|
@@ -23664,7 +23624,7 @@
|
|
23664
23624
|
|
23665
23625
|
this.accountId = config.accountId;
|
23666
23626
|
this.apiKey = config.apiKey;
|
23667
|
-
this.name =
|
23627
|
+
this.name = NAME$2; // this.sendToAllDestinations = config.sendToAll;
|
23668
23628
|
}
|
23669
23629
|
|
23670
23630
|
_createClass(Appcues, [{
|
@@ -23812,11 +23772,11 @@
|
|
23812
23772
|
};
|
23813
23773
|
|
23814
23774
|
this.page = function () {
|
23815
|
-
window.uetq.push(
|
23775
|
+
window.uetq.push("pageLoad");
|
23816
23776
|
};
|
23817
23777
|
|
23818
23778
|
this.tagID = config.tagID;
|
23819
|
-
this.name =
|
23779
|
+
this.name = NAME$3;
|
23820
23780
|
});
|
23821
23781
|
|
23822
23782
|
/*
|
@@ -23844,7 +23804,7 @@
|
|
23844
23804
|
}
|
23845
23805
|
}
|
23846
23806
|
|
23847
|
-
this.name =
|
23807
|
+
this.name = NAME$4;
|
23848
23808
|
logger.debug("Config ", config);
|
23849
23809
|
}
|
23850
23810
|
/** https://js.appboycdn.com/web-sdk/latest/doc/ab.User.html#toc4
|
@@ -24023,7 +23983,7 @@
|
|
24023
23983
|
|
24024
23984
|
this.releaseStage = config.releaseStage;
|
24025
23985
|
this.apiKey = config.apiKey;
|
24026
|
-
this.name =
|
23986
|
+
this.name = NAME$5;
|
24027
23987
|
this.setIntervalHandler = undefined;
|
24028
23988
|
}
|
24029
23989
|
|
@@ -24497,7 +24457,7 @@
|
|
24497
24457
|
this.replayEvents = [];
|
24498
24458
|
this.failed = false;
|
24499
24459
|
this.isFirstPageCallMade = false;
|
24500
|
-
this.name =
|
24460
|
+
this.name = NAME$6;
|
24501
24461
|
}
|
24502
24462
|
|
24503
24463
|
_createClass(Chartbeat, [{
|
@@ -24660,7 +24620,7 @@
|
|
24660
24620
|
|
24661
24621
|
this.accountId = config.accountId;
|
24662
24622
|
this.apiKey = config.passcode;
|
24663
|
-
this.name =
|
24623
|
+
this.name = NAME$7;
|
24664
24624
|
this.region = config.region;
|
24665
24625
|
this.keysToExtract = ["context.traits"];
|
24666
24626
|
this.exclusionKeys = ["email", "E-mail", "Email", "phone", "Phone", "name", "Name", "gender", "Gender", "birthday", "Birthday", "anonymousId", "userId", "lastName", "lastname", "last_name", "firstName", "firstname", "first_name", "employed", "education", "married", "customerType"];
|
@@ -24739,7 +24699,7 @@
|
|
24739
24699
|
}
|
24740
24700
|
|
24741
24701
|
Object.keys(payload).map(function (key) {
|
24742
|
-
if (isObject$
|
24702
|
+
if (isObject$1(payload[key])) {
|
24743
24703
|
logger.debug("cannot process, unsupported traits");
|
24744
24704
|
return;
|
24745
24705
|
}
|
@@ -24773,7 +24733,7 @@
|
|
24773
24733
|
window.clevertap.event.push("Charged", ecomProperties);
|
24774
24734
|
} else {
|
24775
24735
|
Object.keys(properties).map(function (key) {
|
24776
|
-
if (isObject$
|
24736
|
+
if (isObject$1(properties[key]) || isArray$1(properties[key])) {
|
24777
24737
|
logger.debug("cannot process, unsupported event");
|
24778
24738
|
return;
|
24779
24739
|
}
|
@@ -24805,7 +24765,7 @@
|
|
24805
24765
|
|
24806
24766
|
if (properties) {
|
24807
24767
|
Object.keys(properties).map(function (key) {
|
24808
|
-
if (isObject$
|
24768
|
+
if (isObject$1(properties[key]) || isArray$1(properties[key])) {
|
24809
24769
|
logger.debug("cannot process, unsupported event");
|
24810
24770
|
return;
|
24811
24771
|
}
|
@@ -24831,7 +24791,7 @@
|
|
24831
24791
|
this.failed = false;
|
24832
24792
|
this.comScoreParams = {};
|
24833
24793
|
this.replayEvents = [];
|
24834
|
-
this.name =
|
24794
|
+
this.name = NAME$8;
|
24835
24795
|
}
|
24836
24796
|
|
24837
24797
|
_createClass(Comscore, [{
|
@@ -25516,7 +25476,7 @@
|
|
25516
25476
|
function Criteo(config) {
|
25517
25477
|
_classCallCheck(this, Criteo);
|
25518
25478
|
|
25519
|
-
this.name =
|
25479
|
+
this.name = NAME$9;
|
25520
25480
|
this.hashMethod = config.hashMethod;
|
25521
25481
|
this.accountId = config.accountId;
|
25522
25482
|
this.url = config.homePageUrl; // eslint-disable-next-line no-nested-ternary
|
@@ -25662,7 +25622,7 @@
|
|
25662
25622
|
|
25663
25623
|
this.siteID = config.siteID;
|
25664
25624
|
this.apiKey = config.apiKey;
|
25665
|
-
this.name =
|
25625
|
+
this.name = NAME$a;
|
25666
25626
|
}
|
25667
25627
|
|
25668
25628
|
_createClass(CustomerIO, [{
|
@@ -25783,7 +25743,7 @@
|
|
25783
25743
|
|
25784
25744
|
this.accountId = config.accountId;
|
25785
25745
|
this.campaignId = config.campaignId;
|
25786
|
-
this.name =
|
25746
|
+
this.name = NAME$b;
|
25787
25747
|
this.exclusionFields = ["email", "new_email", "newEmail", "tags", "remove_tags", "removeTags", "prospect", "eu_consent", "euConsent", "eu_consent_message", "euConsentMessage"];
|
25788
25748
|
}
|
25789
25749
|
|
@@ -26941,7 +26901,7 @@
|
|
26941
26901
|
this.legacyConversionPixelId = config.legacyConversionPixelId;
|
26942
26902
|
this.userIdAsPixelId = config.userIdAsPixelId;
|
26943
26903
|
this.whitelistPiiProperties = config.whitelistPiiProperties;
|
26944
|
-
this.name =
|
26904
|
+
this.name = NAME$c;
|
26945
26905
|
}
|
26946
26906
|
|
26947
26907
|
_createClass(FacebookPixel, [{
|
@@ -27455,114 +27415,50 @@
|
|
27455
27415
|
return FacebookPixel;
|
27456
27416
|
}();
|
27457
27417
|
|
27458
|
-
|
27459
|
-
|
27460
|
-
|
27461
|
-
|
27462
|
-
|
27463
|
-
var LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);
|
27464
|
-
var SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');
|
27465
|
-
var NUMBERS_AND_IDENTIFIER = new RegExp('\\d+' + IDENTIFIER.source, 'gu');
|
27466
|
-
|
27467
|
-
var preserveCamelCase = function preserveCamelCase(string, locale) {
|
27468
|
-
var isLastCharLower = false;
|
27469
|
-
var isLastCharUpper = false;
|
27470
|
-
var isLastLastCharUpper = false;
|
27471
|
-
|
27472
|
-
for (var i = 0; i < string.length; i++) {
|
27473
|
-
var character = string[i];
|
27474
|
-
|
27475
|
-
if (isLastCharLower && UPPERCASE.test(character)) {
|
27476
|
-
string = string.slice(0, i) + '-' + string.slice(i);
|
27477
|
-
isLastCharLower = false;
|
27478
|
-
isLastLastCharUpper = isLastCharUpper;
|
27479
|
-
isLastCharUpper = true;
|
27480
|
-
i++;
|
27481
|
-
} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
|
27482
|
-
string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
|
27483
|
-
isLastLastCharUpper = isLastCharUpper;
|
27484
|
-
isLastCharUpper = false;
|
27485
|
-
isLastCharLower = true;
|
27486
|
-
} else {
|
27487
|
-
isLastCharLower = character.toLocaleLowerCase(locale) === character && character.toLocaleUpperCase(locale) !== character;
|
27488
|
-
isLastLastCharUpper = isLastCharUpper;
|
27489
|
-
isLastCharUpper = character.toLocaleUpperCase(locale) === character && character.toLocaleLowerCase(locale) !== character;
|
27418
|
+
// util function to convert the input to string type
|
27419
|
+
function convertToString(input) {
|
27420
|
+
if (input) {
|
27421
|
+
if (typeof input === "string") {
|
27422
|
+
return input;
|
27490
27423
|
}
|
27491
|
-
}
|
27492
|
-
|
27493
|
-
return string;
|
27494
|
-
};
|
27495
|
-
|
27496
|
-
var preserveConsecutiveUppercase = function preserveConsecutiveUppercase(input) {
|
27497
|
-
LEADING_CAPITAL.lastIndex = 0;
|
27498
|
-
return input.replace(LEADING_CAPITAL, function (m1) {
|
27499
|
-
return m1.toLowerCase();
|
27500
|
-
});
|
27501
|
-
};
|
27502
27424
|
|
27503
|
-
|
27504
|
-
SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
|
27505
|
-
NUMBERS_AND_IDENTIFIER.lastIndex = 0;
|
27506
|
-
return input.replace(SEPARATORS_AND_IDENTIFIER, function (_, identifier) {
|
27507
|
-
return identifier.toLocaleUpperCase(options.locale);
|
27508
|
-
}).replace(NUMBERS_AND_IDENTIFIER, function (m) {
|
27509
|
-
return m.toLocaleUpperCase(options.locale);
|
27510
|
-
});
|
27511
|
-
};
|
27512
|
-
|
27513
|
-
var camelCase = function camelCase(input, options) {
|
27514
|
-
if (!(typeof input === 'string' || Array.isArray(input))) {
|
27515
|
-
throw new TypeError('Expected the input to be `string | string[]`');
|
27425
|
+
return String(input);
|
27516
27426
|
}
|
27517
27427
|
|
27518
|
-
|
27519
|
-
|
27520
|
-
preserveConsecutiveUppercase: false
|
27521
|
-
}, options);
|
27428
|
+
return "";
|
27429
|
+
} // convert string to words
|
27522
27430
|
|
27523
|
-
if (Array.isArray(input)) {
|
27524
|
-
input = input.map(function (x) {
|
27525
|
-
return x.trim();
|
27526
|
-
}).filter(function (x) {
|
27527
|
-
return x.length;
|
27528
|
-
}).join('-');
|
27529
|
-
} else {
|
27530
|
-
input = input.trim();
|
27531
|
-
}
|
27532
27431
|
|
27533
|
-
|
27534
|
-
|
27535
|
-
|
27432
|
+
function toWords(input) {
|
27433
|
+
input = convertToString(input);
|
27434
|
+
var regex = /[A-Z\xC0-\xD6\xD8-\xDE]?[a-z\xDF-\xF6\xF8-\xFF]+|[A-Z\xC0-\xD6\xD8-\xDE]+(?![a-z\xDF-\xF6\xF8-\xFF])|\d+/g;
|
27435
|
+
return input.match(regex);
|
27436
|
+
} // convert the input array to camel case
|
27536
27437
|
|
27537
|
-
if (input.length === 1) {
|
27538
|
-
return options.pascalCase ? input.toLocaleUpperCase(options.locale) : input.toLocaleLowerCase(options.locale);
|
27539
|
-
}
|
27540
|
-
|
27541
|
-
var hasUpperCase = input !== input.toLocaleLowerCase(options.locale);
|
27542
27438
|
|
27543
|
-
|
27544
|
-
|
27545
|
-
}
|
27439
|
+
function toCamelCase(inputArray) {
|
27440
|
+
var result = "";
|
27546
27441
|
|
27547
|
-
|
27442
|
+
for (var i = 0, len = inputArray.length; i < len; i++) {
|
27443
|
+
var currentStr = inputArray[i];
|
27444
|
+
var tempStr = currentStr.toLowerCase();
|
27548
27445
|
|
27549
|
-
|
27550
|
-
|
27551
|
-
|
27552
|
-
|
27553
|
-
}
|
27446
|
+
if (i !== 0) {
|
27447
|
+
// convert first letter to upper case (the word is in lowercase)
|
27448
|
+
tempStr = tempStr.substr(0, 1).toUpperCase() + tempStr.substr(1);
|
27449
|
+
}
|
27554
27450
|
|
27555
|
-
|
27556
|
-
input = input.charAt(0).toLocaleUpperCase(options.locale) + input.slice(1);
|
27451
|
+
result += tempStr;
|
27557
27452
|
}
|
27558
27453
|
|
27559
|
-
return
|
27560
|
-
}
|
27454
|
+
return result;
|
27455
|
+
} // this function call all other functions
|
27561
27456
|
|
27562
|
-
var camelcase = camelCase; // TODO: Remove this for the next major release
|
27563
27457
|
|
27564
|
-
|
27565
|
-
|
27458
|
+
function camelcase(input) {
|
27459
|
+
var words = toWords(input);
|
27460
|
+
return toCamelCase(words);
|
27461
|
+
}
|
27566
27462
|
|
27567
27463
|
var Fullstory = /*#__PURE__*/function () {
|
27568
27464
|
function Fullstory(config, analytics) {
|
@@ -27570,7 +27466,7 @@
|
|
27570
27466
|
|
27571
27467
|
this.fs_org = config.fs_org;
|
27572
27468
|
this.fs_debug_mode = config.fs_debug_mode;
|
27573
|
-
this.name =
|
27469
|
+
this.name = NAME$d;
|
27574
27470
|
this.analytics = analytics;
|
27575
27471
|
}
|
27576
27472
|
|
@@ -27840,7 +27736,7 @@
|
|
27840
27736
|
this.resetCustomDimensionsOnPage = config.resetCustomDimensionsOnPage || [];
|
27841
27737
|
this.enhancedEcommerceLoaded = 0;
|
27842
27738
|
this.namedTracker = config.namedTracker || false;
|
27843
|
-
this.name =
|
27739
|
+
this.name = NAME$e;
|
27844
27740
|
this.eventWithCategoryFieldProductScoped = ["product clicked", "product added", "product viewed", "product removed"];
|
27845
27741
|
}
|
27846
27742
|
|
@@ -28983,7 +28879,7 @@
|
|
28983
28879
|
this.blockPageView = config.blockPageViewEvent || false;
|
28984
28880
|
this.extendPageViewParams = config.extendPageViewParams || false;
|
28985
28881
|
this.extendGroupPayload = config.extendGroupPayload || false;
|
28986
|
-
this.name =
|
28882
|
+
this.name = NAME$f;
|
28987
28883
|
}
|
28988
28884
|
|
28989
28885
|
_createClass(GA4, [{
|
@@ -29217,7 +29113,7 @@
|
|
29217
29113
|
this.sendPageView = config.sendPageView || true;
|
29218
29114
|
this.conversionLinker = config.conversionLinker || true;
|
29219
29115
|
this.disableAdPersonalization = config.disableAdPersonalization || false;
|
29220
|
-
this.name =
|
29116
|
+
this.name = NAME$g;
|
29221
29117
|
}
|
29222
29118
|
|
29223
29119
|
_createClass(GoogleAds, [{
|
@@ -29383,7 +29279,7 @@
|
|
29383
29279
|
_classCallCheck(this, GoogleTagManager);
|
29384
29280
|
|
29385
29281
|
this.containerID = config.containerID;
|
29386
|
-
this.name =
|
29282
|
+
this.name = NAME$i;
|
29387
29283
|
this.serverUrl = config.serverUrl;
|
29388
29284
|
}
|
29389
29285
|
|
@@ -29513,7 +29409,7 @@
|
|
29513
29409
|
_classCallCheck(this, Heap);
|
29514
29410
|
|
29515
29411
|
this.appId = config.appId;
|
29516
|
-
this.name =
|
29412
|
+
this.name = NAME$j;
|
29517
29413
|
}
|
29518
29414
|
/**
|
29519
29415
|
* Initialise Heap
|
@@ -29594,7 +29490,7 @@
|
|
29594
29490
|
_classCallCheck(this, Hotjar);
|
29595
29491
|
|
29596
29492
|
this.siteId = config.siteID;
|
29597
|
-
this.name =
|
29493
|
+
this.name = NAME$k;
|
29598
29494
|
this._ready = false;
|
29599
29495
|
}
|
29600
29496
|
|
@@ -29682,7 +29578,7 @@
|
|
29682
29578
|
|
29683
29579
|
this.hubId = config.hubID; // 6405167
|
29684
29580
|
|
29685
|
-
this.name =
|
29581
|
+
this.name = NAME$l;
|
29686
29582
|
}
|
29687
29583
|
|
29688
29584
|
_createClass(HubSpot, [{
|
@@ -29799,7 +29695,7 @@
|
|
29799
29695
|
function INTERCOM(config) {
|
29800
29696
|
_classCallCheck(this, INTERCOM);
|
29801
29697
|
|
29802
|
-
this.name =
|
29698
|
+
this.name = NAME$m;
|
29803
29699
|
this.API_KEY = config.apiKey;
|
29804
29700
|
this.APP_ID = config.appId;
|
29805
29701
|
this.MOBILE_APP_ID = config.mobileAppId;
|
@@ -29993,7 +29889,7 @@
|
|
29993
29889
|
this.urlAddon = config.urlAddon;
|
29994
29890
|
this.referrerAddon = config.referrerAddon;
|
29995
29891
|
this.client = null;
|
29996
|
-
this.name =
|
29892
|
+
this.name = NAME$n;
|
29997
29893
|
}
|
29998
29894
|
|
29999
29895
|
_createClass(Keen, [{
|
@@ -30177,161 +30073,13 @@
|
|
30177
30073
|
|
30178
30074
|
var extend_1 = extend;
|
30179
30075
|
|
30180
|
-
var objCase = createCommonjsModule(function (module) {
|
30181
|
-
/**
|
30182
|
-
* Module exports, export
|
30183
|
-
*/
|
30184
|
-
|
30185
|
-
|
30186
|
-
module.exports = multiple(find);
|
30187
|
-
module.exports.find = module.exports;
|
30188
|
-
/**
|
30189
|
-
* Export the replacement function, return the modified object
|
30190
|
-
*/
|
30191
|
-
|
30192
|
-
module.exports.replace = function (obj, key, val, options) {
|
30193
|
-
multiple(replace).call(this, obj, key, val, options);
|
30194
|
-
return obj;
|
30195
|
-
};
|
30196
|
-
/**
|
30197
|
-
* Export the delete function, return the modified object
|
30198
|
-
*/
|
30199
|
-
|
30200
|
-
|
30201
|
-
module.exports.del = function (obj, key, options) {
|
30202
|
-
multiple(del).call(this, obj, key, null, options);
|
30203
|
-
return obj;
|
30204
|
-
};
|
30205
|
-
/**
|
30206
|
-
* Compose applying the function to a nested key
|
30207
|
-
*/
|
30208
|
-
|
30209
|
-
|
30210
|
-
function multiple(fn) {
|
30211
|
-
return function (obj, path, val, options) {
|
30212
|
-
var normalize = options && isFunction(options.normalizer) ? options.normalizer : defaultNormalize;
|
30213
|
-
path = normalize(path);
|
30214
|
-
var key;
|
30215
|
-
var finished = false;
|
30216
|
-
|
30217
|
-
while (!finished) {
|
30218
|
-
loop();
|
30219
|
-
}
|
30220
|
-
|
30221
|
-
function loop() {
|
30222
|
-
for (key in obj) {
|
30223
|
-
var normalizedKey = normalize(key);
|
30224
|
-
|
30225
|
-
if (0 === path.indexOf(normalizedKey)) {
|
30226
|
-
var temp = path.substr(normalizedKey.length);
|
30227
|
-
|
30228
|
-
if (temp.charAt(0) === '.' || temp.length === 0) {
|
30229
|
-
path = temp.substr(1);
|
30230
|
-
var child = obj[key]; // we're at the end and there is nothing.
|
30231
|
-
|
30232
|
-
if (null == child) {
|
30233
|
-
finished = true;
|
30234
|
-
return;
|
30235
|
-
} // we're at the end and there is something.
|
30236
|
-
|
30237
|
-
|
30238
|
-
if (!path.length) {
|
30239
|
-
finished = true;
|
30240
|
-
return;
|
30241
|
-
} // step into child
|
30242
|
-
|
30243
|
-
|
30244
|
-
obj = child; // but we're done here
|
30245
|
-
|
30246
|
-
return;
|
30247
|
-
}
|
30248
|
-
}
|
30249
|
-
}
|
30250
|
-
|
30251
|
-
key = undefined; // if we found no matching properties
|
30252
|
-
// on the current object, there's no match.
|
30253
|
-
|
30254
|
-
finished = true;
|
30255
|
-
}
|
30256
|
-
|
30257
|
-
if (!key) return;
|
30258
|
-
if (null == obj) return obj; // the `obj` and `key` is one above the leaf object and key, so
|
30259
|
-
// start object: { a: { 'b.c': 10 } }
|
30260
|
-
// end object: { 'b.c': 10 }
|
30261
|
-
// end key: 'b.c'
|
30262
|
-
// this way, you can do `obj[key]` and get `10`.
|
30263
|
-
|
30264
|
-
return fn(obj, key, val);
|
30265
|
-
};
|
30266
|
-
}
|
30267
|
-
/**
|
30268
|
-
* Find an object by its key
|
30269
|
-
*
|
30270
|
-
* find({ first_name : 'Calvin' }, 'firstName')
|
30271
|
-
*/
|
30272
|
-
|
30273
|
-
|
30274
|
-
function find(obj, key) {
|
30275
|
-
if (obj.hasOwnProperty(key)) return obj[key];
|
30276
|
-
}
|
30277
|
-
/**
|
30278
|
-
* Delete a value for a given key
|
30279
|
-
*
|
30280
|
-
* del({ a : 'b', x : 'y' }, 'X' }) -> { a : 'b' }
|
30281
|
-
*/
|
30282
|
-
|
30283
|
-
|
30284
|
-
function del(obj, key) {
|
30285
|
-
if (obj.hasOwnProperty(key)) delete obj[key];
|
30286
|
-
return obj;
|
30287
|
-
}
|
30288
|
-
/**
|
30289
|
-
* Replace an objects existing value with a new one
|
30290
|
-
*
|
30291
|
-
* replace({ a : 'b' }, 'a', 'c') -> { a : 'c' }
|
30292
|
-
*/
|
30293
|
-
|
30294
|
-
|
30295
|
-
function replace(obj, key, val) {
|
30296
|
-
if (obj.hasOwnProperty(key)) obj[key] = val;
|
30297
|
-
return obj;
|
30298
|
-
}
|
30299
|
-
/**
|
30300
|
-
* Normalize a `dot.separated.path`.
|
30301
|
-
*
|
30302
|
-
* A.HELL(!*&#(!)O_WOR LD.bar => ahelloworldbar
|
30303
|
-
*
|
30304
|
-
* @param {String} path
|
30305
|
-
* @return {String}
|
30306
|
-
*/
|
30307
|
-
|
30308
|
-
|
30309
|
-
function defaultNormalize(path) {
|
30310
|
-
return path.replace(/[^a-zA-Z0-9\.]+/g, '').toLowerCase();
|
30311
|
-
}
|
30312
|
-
/**
|
30313
|
-
* Check if a value is a function.
|
30314
|
-
*
|
30315
|
-
* @param {*} val
|
30316
|
-
* @return {boolean} Returns `true` if `val` is a function, otherwise `false`.
|
30317
|
-
*/
|
30318
|
-
|
30319
|
-
|
30320
|
-
function isFunction(val) {
|
30321
|
-
return typeof val === 'function';
|
30322
|
-
}
|
30323
|
-
});
|
30324
|
-
var objCase_1 = objCase.find;
|
30325
|
-
var objCase_2 = objCase.replace;
|
30326
|
-
var objCase_3 = objCase.del;
|
30327
|
-
|
30328
30076
|
var Kissmetrics = /*#__PURE__*/function () {
|
30329
30077
|
function Kissmetrics(config) {
|
30330
30078
|
_classCallCheck(this, Kissmetrics);
|
30331
30079
|
|
30332
30080
|
this.apiKey = config.apiKey;
|
30333
30081
|
this.prefixProperties = config.prefixProperties;
|
30334
|
-
this.name =
|
30082
|
+
this.name = NAME$o;
|
30335
30083
|
}
|
30336
30084
|
|
30337
30085
|
_createClass(Kissmetrics, [{
|
@@ -30718,7 +30466,7 @@
|
|
30718
30466
|
this.sendPageAsTrack = config.sendPageAsTrack;
|
30719
30467
|
this.additionalPageInfo = config.additionalPageInfo;
|
30720
30468
|
this.enforceEmailAsPrimary = config.enforceEmailAsPrimary;
|
30721
|
-
this.name =
|
30469
|
+
this.name = NAME$p;
|
30722
30470
|
this.keysToExtract = ["context.traits"];
|
30723
30471
|
this.exclusionKeys = ["email", "E-mail", "Email", "firstName", "firstname", "first_name", "lastName", "lastname", "last_name", "phone", "Phone", "title", "organization", "city", "City", "region", "country", "Country", "zip", "image", "timezone", "anonymousId", "userId", "properties"];
|
30724
30472
|
this.ecomExclusionKeys = ["name", "product_id", "sku", "image_url", "url", "brand", "price", "compare_at_price", "quantity", "categories", "products", "product_names", "order_id", "value", "checkout_url", "item_names", "items", "checkout_url"];
|
@@ -30870,7 +30618,7 @@
|
|
30870
30618
|
function LinkedInInsightTag(config) {
|
30871
30619
|
_classCallCheck(this, LinkedInInsightTag);
|
30872
30620
|
|
30873
|
-
this.name =
|
30621
|
+
this.name = NAME$r;
|
30874
30622
|
this.partnerId = config.partnerId;
|
30875
30623
|
}
|
30876
30624
|
|
@@ -30937,7 +30685,7 @@
|
|
30937
30685
|
|
30938
30686
|
_classCallCheck(this, Lotame);
|
30939
30687
|
|
30940
|
-
this.name =
|
30688
|
+
this.name = NAME$s;
|
30941
30689
|
this.analytics = analytics;
|
30942
30690
|
this.storage = lotameStorage;
|
30943
30691
|
this.bcpUrlSettingsPixel = config.bcpUrlSettingsPixel;
|
@@ -31126,7 +30874,7 @@
|
|
31126
30874
|
this.stream = config.stream;
|
31127
30875
|
this.blockload = config.blockload;
|
31128
30876
|
this.loadid = config.loadid;
|
31129
|
-
this.name =
|
30877
|
+
this.name = NAME$t;
|
31130
30878
|
this.forFirstName = ["firstname", "firstName"];
|
31131
30879
|
this.forLastName = ["lastname", "lastName"];
|
31132
30880
|
}
|
@@ -31432,7 +31180,7 @@
|
|
31432
31180
|
function Mixpanel(config) {
|
31433
31181
|
_classCallCheck(this, Mixpanel);
|
31434
31182
|
|
31435
|
-
this.name =
|
31183
|
+
this.name = NAME$u;
|
31436
31184
|
this.accountId = config.accountId;
|
31437
31185
|
this.token = config.token;
|
31438
31186
|
this.people = config.people || false;
|
@@ -31857,7 +31605,7 @@
|
|
31857
31605
|
this.apiId = config.apiId;
|
31858
31606
|
this.debug = config.debug;
|
31859
31607
|
this.region = config.region;
|
31860
|
-
this.name =
|
31608
|
+
this.name = NAME$v;
|
31861
31609
|
this.analyticsinstance = analyticsinstance;
|
31862
31610
|
}
|
31863
31611
|
|
@@ -32114,7 +31862,7 @@
|
|
32114
31862
|
this.trackNamedPages = config.trackNamedPages;
|
32115
31863
|
this.customCampaignProperties = config.customCampaignProperties ? config.customCampaignProperties : [];
|
32116
31864
|
this.customExperimentProperties = config.customExperimentProperties ? config.customExperimentProperties : [];
|
32117
|
-
this.name =
|
31865
|
+
this.name = NAME$w;
|
32118
31866
|
}
|
32119
31867
|
|
32120
31868
|
_createClass(Optimizely, [{
|
@@ -32273,7 +32021,7 @@
|
|
32273
32021
|
|
32274
32022
|
this.analytics = analytics;
|
32275
32023
|
this.apiKey = !config.apiKey ? "" : config.apiKey;
|
32276
|
-
this.name =
|
32024
|
+
this.name = NAME$x;
|
32277
32025
|
logger.debug("Config ", config);
|
32278
32026
|
}
|
32279
32027
|
|
@@ -32474,7 +32222,7 @@
|
|
32474
32222
|
this.enhancedMatch = config.enhancedMatch || false;
|
32475
32223
|
this.customProperties = config.customProperties || [];
|
32476
32224
|
this.userDefinedEventsMapping = config.eventsMapping || [];
|
32477
|
-
this.name =
|
32225
|
+
this.name = NAME$y;
|
32478
32226
|
logger.debug("config", config);
|
32479
32227
|
}
|
32480
32228
|
|
@@ -32723,7 +32471,7 @@
|
|
32723
32471
|
|
32724
32472
|
this.siteId = config.siteID; // 1549611
|
32725
32473
|
|
32726
|
-
this.name =
|
32474
|
+
this.name = NAME$D;
|
32727
32475
|
this._ready = false;
|
32728
32476
|
}
|
32729
32477
|
|
@@ -32782,7 +32530,7 @@
|
|
32782
32530
|
|
32783
32531
|
_classCallCheck(this, Posthog);
|
32784
32532
|
|
32785
|
-
this.name =
|
32533
|
+
this.name = NAME$A;
|
32786
32534
|
this.analytics = analytics;
|
32787
32535
|
this.teamApiKey = config.teamApiKey;
|
32788
32536
|
this.yourInstance = removeTrailingSlashes(config.yourInstance) || "https://app.posthog.com";
|
@@ -32932,7 +32680,7 @@
|
|
32932
32680
|
value: function page(rudderElement) {
|
32933
32681
|
logger.debug("in Posthog page");
|
32934
32682
|
this.processSuperProperties(rudderElement);
|
32935
|
-
posthog.capture(
|
32683
|
+
posthog.capture("$pageview");
|
32936
32684
|
}
|
32937
32685
|
}, {
|
32938
32686
|
key: "isLoaded",
|
@@ -32956,7 +32704,7 @@
|
|
32956
32704
|
|
32957
32705
|
this.publicApiKey = config.publicApiKey;
|
32958
32706
|
this.siteType = config.siteType;
|
32959
|
-
this.name =
|
32707
|
+
this.name = NAME$B;
|
32960
32708
|
}
|
32961
32709
|
|
32962
32710
|
_createClass(ProfitWell, [{
|
@@ -33039,7 +32787,7 @@
|
|
33039
32787
|
function Qualtrics(config) {
|
33040
32788
|
_classCallCheck(this, Qualtrics);
|
33041
32789
|
|
33042
|
-
this.name =
|
32790
|
+
this.name = NAME$C;
|
33043
32791
|
this.projectId = config.projectId;
|
33044
32792
|
this.brandId = config.brandId;
|
33045
32793
|
this.enableGenericPageTitle = config.enableGenericPageTitle;
|
@@ -33203,7 +32951,7 @@
|
|
33203
32951
|
_classCallCheck(this, RedditPixel);
|
33204
32952
|
|
33205
32953
|
this.advertiserId = config.advertiserId;
|
33206
|
-
this.name =
|
32954
|
+
this.name = NAME$E;
|
33207
32955
|
}
|
33208
32956
|
|
33209
32957
|
_createClass(RedditPixel, [{
|
@@ -33388,7 +33136,7 @@
|
|
33388
33136
|
function Sentry(config) {
|
33389
33137
|
_classCallCheck(this, Sentry);
|
33390
33138
|
|
33391
|
-
this.name =
|
33139
|
+
this.name = NAME$F;
|
33392
33140
|
this.dsn = config.dsn;
|
33393
33141
|
this.debugMode = config.debugMode;
|
33394
33142
|
this.environment = config.environment;
|
@@ -33420,7 +33168,7 @@
|
|
33420
33168
|
key: "isLoaded",
|
33421
33169
|
value: function isLoaded() {
|
33422
33170
|
logger.debug("===in Sentry isLoaded===");
|
33423
|
-
return !!(window.Sentry && isObject$
|
33171
|
+
return !!(window.Sentry && isObject$1(window.Sentry) && window.Sentry.setUser && window.Sentry.Integrations.RewriteFrames);
|
33424
33172
|
} // eslint-disable-next-line class-methods-use-this
|
33425
33173
|
|
33426
33174
|
}, {
|
@@ -33428,7 +33176,7 @@
|
|
33428
33176
|
value: function isReady() {
|
33429
33177
|
logger.debug("===in Sentry isReady===");
|
33430
33178
|
|
33431
|
-
if (window.Sentry && isObject$
|
33179
|
+
if (window.Sentry && isObject$1(window.Sentry) && window.Sentry.setUser && window.Sentry.Integrations.RewriteFrames) {
|
33432
33180
|
var sentryConfig = sentryInit(this.allowUrls, this.denyUrls, this.ignoreErrors, this.includePathsArray, this.customVersionProperty, this.release, this.dsn, this.debugMode, this.environment, this.serverName);
|
33433
33181
|
window.Sentry.init(sentryConfig);
|
33434
33182
|
|
@@ -33656,7 +33404,7 @@
|
|
33656
33404
|
|
33657
33405
|
this.pixelId = config.pixelId;
|
33658
33406
|
this.hashMethod = config.hashMethod;
|
33659
|
-
this.name =
|
33407
|
+
this.name = NAME$G;
|
33660
33408
|
this.trackEvents = ["SIGN_UP", "OPEN_APP", "SAVE", "VIEW_CONTENT", "SEARCH", "SUBSCRIBE", "COMPLETE_TUTORIAL", "INVITE", "LOGIN", "SHARE", "RESERVE", "ACHIEVEMENT_UNLOCKED", "SPENT_CREDITS", "RATE", "START_TRIAL", "LIST_VIEW"];
|
33661
33409
|
this.ecomEvents = {
|
33662
33410
|
PURCHASE: "PURCHASE",
|
@@ -33850,7 +33598,7 @@
|
|
33850
33598
|
this.clientId = config.clientId;
|
33851
33599
|
this.eventWhiteList = config.eventWhiteList || [];
|
33852
33600
|
this.customMetrics = config.customMetrics || [];
|
33853
|
-
this.name =
|
33601
|
+
this.name = NAME$H;
|
33854
33602
|
}
|
33855
33603
|
|
33856
33604
|
_createClass(TVSquared, [{
|
@@ -33955,7 +33703,7 @@
|
|
33955
33703
|
this.useExistingJquery = config.useExistingJquery;
|
33956
33704
|
this.sendExperimentTrack = config.sendExperimentTrack;
|
33957
33705
|
this.sendExperimentIdentify = config.sendExperimentIdentify;
|
33958
|
-
this.name =
|
33706
|
+
this.name = NAME$I;
|
33959
33707
|
this.analytics = analytics;
|
33960
33708
|
logger.debug("Config ", config);
|
33961
33709
|
}
|
@@ -34107,7 +33855,7 @@
|
|
34107
33855
|
function GoogleOptimize(config) {
|
34108
33856
|
_classCallCheck(this, GoogleOptimize);
|
34109
33857
|
|
34110
|
-
this.name =
|
33858
|
+
this.name = NAME$h;
|
34111
33859
|
this.ga = config.ga;
|
34112
33860
|
this.trackingId = config.trackingId;
|
34113
33861
|
this.containerId = config.containerId;
|
@@ -34197,7 +33945,7 @@
|
|
34197
33945
|
function PostAffiliatePro(config) {
|
34198
33946
|
_classCallCheck(this, PostAffiliatePro);
|
34199
33947
|
|
34200
|
-
this.name =
|
33948
|
+
this.name = NAME$z;
|
34201
33949
|
this.url = config.url;
|
34202
33950
|
this.mergeProducts = config.mergeProducts;
|
34203
33951
|
this.accountId = config.accountId;
|
@@ -34348,7 +34096,7 @@
|
|
34348
34096
|
function LaunchDarkly(config) {
|
34349
34097
|
_classCallCheck(this, LaunchDarkly);
|
34350
34098
|
|
34351
|
-
this.name =
|
34099
|
+
this.name = NAME$q;
|
34352
34100
|
this.clientSideId = config.clientSideId;
|
34353
34101
|
}
|
34354
34102
|
|
@@ -34473,7 +34221,7 @@
|
|
34473
34221
|
this.build = "1.0.0";
|
34474
34222
|
this.name = "RudderLabs JavaScript SDK";
|
34475
34223
|
this.namespace = "com.rudderlabs.javascript";
|
34476
|
-
this.version = "1.
|
34224
|
+
this.version = "1.4.2";
|
34477
34225
|
});
|
34478
34226
|
|
34479
34227
|
// Library information class
|
@@ -34481,7 +34229,7 @@
|
|
34481
34229
|
_classCallCheck(this, RudderLibraryInfo);
|
34482
34230
|
|
34483
34231
|
this.name = "RudderLabs JavaScript SDK";
|
34484
|
-
this.version = "1.
|
34232
|
+
this.version = "1.4.2";
|
34485
34233
|
}); // Operating System information class
|
34486
34234
|
|
34487
34235
|
|
@@ -36390,7 +36138,7 @@
|
|
36390
36138
|
};
|
36391
36139
|
var payload = JSON.stringify(data, this.replacer);
|
36392
36140
|
var blob = new Blob([payload], {
|
36393
|
-
type: "
|
36141
|
+
type: "text/plain"
|
36394
36142
|
});
|
36395
36143
|
var isPushed = navigator.sendBeacon("".concat(this.url, "?writeKey=").concat(this.writekey), blob);
|
36396
36144
|
|
@@ -36448,7 +36196,7 @@
|
|
36448
36196
|
var queueOptions = {};
|
36449
36197
|
var targetUrl = url.slice(-1) === "/" ? url.slice(0, -1) : url;
|
36450
36198
|
|
36451
|
-
if (options && options.useBeacon) {
|
36199
|
+
if (options && options.useBeacon && navigator.sendBeacon) {
|
36452
36200
|
if (options && options.beaconQueueOptions && options.beaconQueueOptions != null && _typeof(options.beaconQueueOptions) === "object") {
|
36453
36201
|
queueOptions = options.beaconQueueOptions;
|
36454
36202
|
}
|
@@ -36456,6 +36204,10 @@
|
|
36456
36204
|
targetUrl = "".concat(targetUrl, "/beacon/v1/batch");
|
36457
36205
|
this.queue = new BeaconQueue();
|
36458
36206
|
} else {
|
36207
|
+
if (options && options.useBeacon) {
|
36208
|
+
logger.info("[EventRepository] sendBeacon feature not available in this browser :: fallback to XHR");
|
36209
|
+
}
|
36210
|
+
|
36459
36211
|
if (options && options.queueOptions && options.queueOptions != null && _typeof(options.queueOptions) === "object") {
|
36460
36212
|
queueOptions = options.queueOptions;
|
36461
36213
|
}
|
@@ -38107,20 +37859,19 @@
|
|
38107
37859
|
return true;
|
38108
37860
|
}
|
38109
37861
|
/**
|
38110
|
-
*
|
38111
|
-
*
|
37862
|
+
* Load after polyfills are loaded
|
38112
37863
|
* @param {*} writeKey
|
38113
|
-
* @
|
37864
|
+
* @param {*} serverUrl
|
37865
|
+
* @param {*} options
|
37866
|
+
* @returns
|
38114
37867
|
*/
|
38115
37868
|
|
38116
37869
|
}, {
|
38117
|
-
key: "
|
38118
|
-
value: function
|
37870
|
+
key: "loadAfterPolyfill",
|
37871
|
+
value: function loadAfterPolyfill(writeKey, serverUrl, options) {
|
38119
37872
|
var _this4 = this;
|
38120
37873
|
|
38121
|
-
logger.debug("inside load ");
|
38122
37874
|
if (options && options.cookieConsentManager) this.cookieConsentOptions = lodash_clonedeep(options.cookieConsentManager);
|
38123
|
-
if (this.loaded) return;
|
38124
37875
|
var configUrl = CONFIG_URL;
|
38125
37876
|
|
38126
37877
|
if (!this.isValidWriteKey(writeKey) || !this.isValidServerUrl(serverUrl)) {
|
@@ -38245,6 +37996,37 @@
|
|
38245
37996
|
|
38246
37997
|
processDataInAnalyticsArray(this);
|
38247
37998
|
}
|
37999
|
+
/**
|
38000
|
+
* Call control pane to get client configs
|
38001
|
+
*
|
38002
|
+
* @param {*} writeKey
|
38003
|
+
* @memberof Analytics
|
38004
|
+
*/
|
38005
|
+
|
38006
|
+
}, {
|
38007
|
+
key: "load",
|
38008
|
+
value: function load(writeKey, serverUrl, options) {
|
38009
|
+
// logger.debug("inside load ");
|
38010
|
+
if (this.loaded) return; // check if the below features are available in the browser or not
|
38011
|
+
// If not present dynamically load from the polyfill cdn
|
38012
|
+
|
38013
|
+
if (!String.prototype.endsWith || !String.prototype.startsWith || !String.prototype.includes || !Array.prototype.find || !Array.prototype.includes || !Promise || !Object.entries) {
|
38014
|
+
ScriptLoader("polyfill", POLYFILL_URL);
|
38015
|
+
var self = this;
|
38016
|
+
var interval = setInterval(function () {
|
38017
|
+
// check if the polyfill is loaded
|
38018
|
+
if (window.hasOwnProperty("polyfill")) {
|
38019
|
+
clearInterval(interval);
|
38020
|
+
self.loadAfterPolyfill(writeKey, serverUrl, options);
|
38021
|
+
}
|
38022
|
+
}, 100);
|
38023
|
+
setTimeout(function () {
|
38024
|
+
clearInterval(interval);
|
38025
|
+
}, MAX_WAIT_FOR_INTEGRATION_LOAD);
|
38026
|
+
} else {
|
38027
|
+
this.loadAfterPolyfill(writeKey, serverUrl, options);
|
38028
|
+
}
|
38029
|
+
}
|
38248
38030
|
}, {
|
38249
38031
|
key: "ready",
|
38250
38032
|
value: function ready(callback) {
|