rudder-sdk-js 1.2.20 → 1.3.4

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 (2) hide show
  1. package/index.js +530 -443
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5148,6 +5148,21 @@
5148
5148
  return isobject(val) || Array.isArray(val) || typeof val === 'function';
5149
5149
  }
5150
5150
 
5151
+ /*!
5152
+ * is-primitive <https://github.com/jonschlinkert/is-primitive>
5153
+ *
5154
+ * Copyright (c) 2014-present, Jon Schlinkert.
5155
+ * Released under the MIT License.
5156
+ */
5157
+
5158
+ var isPrimitive = function isPrimitive(val) {
5159
+ if (_typeof(val) === 'object') {
5160
+ return val === null;
5161
+ }
5162
+
5163
+ return typeof val !== 'function';
5164
+ };
5165
+
5151
5166
  function isObjectObject(o) {
5152
5167
  return isobject(o) === true && Object.prototype.toString.call(o) === '[object Object]';
5153
5168
  }
@@ -5170,113 +5185,162 @@
5170
5185
  return true;
5171
5186
  };
5172
5187
 
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);
5188
+ var deleteProperty = Reflect.deleteProperty;
5180
5189
 
5181
- if (!isArray && typeof path !== 'string') {
5182
- return target;
5183
- }
5190
+ var isObject = function isObject(value) {
5191
+ return _typeof(value) === 'object' && value !== null || typeof value === 'function';
5192
+ };
5184
5193
 
5185
- var merge = opts.merge;
5194
+ var isUnsafeKey = function isUnsafeKey(key) {
5195
+ return key === '__proto__' || key === 'constructor' || key === 'prototype';
5196
+ };
5186
5197
 
5187
- if (merge && typeof merge !== 'function') {
5188
- merge = Object.assign;
5198
+ var validateKey = function validateKey(key) {
5199
+ if (!isPrimitive(key)) {
5200
+ throw new TypeError('Object keys must be strings or symbols');
5189
5201
  }
5190
5202
 
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;
5203
+ if (isUnsafeKey(key)) {
5204
+ throw new Error("Cannot set unsafe key: \"".concat(key, "\""));
5198
5205
  }
5206
+ };
5199
5207
 
5200
- for (var i = 0; i < len; i++) {
5201
- var prop = keys[i];
5208
+ var toStringKey = function toStringKey(input) {
5209
+ return Array.isArray(input) ? input.flat().map(String).join(',') : input;
5210
+ };
5202
5211
 
5203
- if (!isObject(target[prop])) {
5204
- target[prop] = {};
5205
- }
5212
+ var createMemoKey = function createMemoKey(input, options) {
5213
+ if (typeof input !== 'string' || !options) return input;
5214
+ var key = input + ';';
5215
+ if (options.arrays !== undefined) key += "arrays=".concat(options.arrays, ";");
5216
+ if (options.separator !== undefined) key += "separator=".concat(options.separator, ";");
5217
+ if (options.split !== undefined) key += "split=".concat(options.split, ";");
5218
+ if (options.merge !== undefined) key += "merge=".concat(options.merge, ";");
5219
+ if (options.preservePaths !== undefined) key += "preservePaths=".concat(options.preservePaths, ";");
5220
+ return key;
5221
+ };
5206
5222
 
5207
- if (i === len - 1) {
5208
- result(target, prop, value, merge);
5209
- break;
5210
- }
5223
+ var memoize = function memoize(input, options, fn) {
5224
+ var key = toStringKey(options ? createMemoKey(input, options) : input);
5225
+ validateKey(key);
5226
+ var value = setValue.cache.get(key) || fn();
5227
+ setValue.cache.set(key, value);
5228
+ return value;
5229
+ };
5211
5230
 
5212
- target = target[prop];
5231
+ var splitString = function splitString(input) {
5232
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5233
+ var sep = options.separator || '.';
5234
+ var preserve = sep === '/' ? false : options.preservePaths;
5235
+
5236
+ if (typeof input === 'string' && preserve !== false && /\//.test(input)) {
5237
+ return [input];
5213
5238
  }
5214
5239
 
5215
- return orig;
5216
- }
5240
+ var parts = [];
5241
+ var part = '';
5217
5242
 
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
- }
5243
+ var push = function push(part) {
5244
+ var number;
5225
5245
 
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 = [];
5246
+ if (part.trim() !== '' && Number.isInteger(number = Number(part))) {
5247
+ parts.push(number);
5248
+ } else {
5249
+ parts.push(part);
5250
+ }
5251
+ };
5232
5252
 
5233
- if (options && typeof options.split === 'function') {
5234
- keys = options.split(path);
5235
- } else {
5236
- keys = path.split(char);
5237
- }
5253
+ for (var i = 0; i < input.length; i++) {
5254
+ var value = input[i];
5238
5255
 
5239
- for (var i = 0; i < keys.length; i++) {
5240
- var prop = keys[i];
5256
+ if (value === '\\') {
5257
+ part += input[++i];
5258
+ continue;
5259
+ }
5241
5260
 
5242
- while (prop && prop.slice(-1) === '\\' && keys[i + 1] != null) {
5243
- prop = prop.slice(0, -1) + char + keys[++i];
5261
+ if (value === sep) {
5262
+ push(part);
5263
+ part = '';
5264
+ continue;
5244
5265
  }
5245
5266
 
5246
- res.push(prop);
5267
+ part += value;
5247
5268
  }
5248
5269
 
5249
- set.memo[id] = res;
5250
- return res;
5251
- }
5270
+ if (part) {
5271
+ push(part);
5272
+ }
5252
5273
 
5253
- function createKey(pattern, options) {
5254
- var id = pattern;
5274
+ return parts;
5275
+ };
5255
5276
 
5256
- if (typeof options === 'undefined') {
5257
- return id + '';
5277
+ var split$1 = function split(input, options) {
5278
+ if (options && typeof options.split === 'function') return options.split(input);
5279
+ if (_typeof(input) === 'symbol') return [input];
5280
+ if (Array.isArray(input)) return input;
5281
+ return memoize(input, options, function () {
5282
+ return splitString(input, options);
5283
+ });
5284
+ };
5285
+
5286
+ var assignProp = function assignProp(obj, prop, value, options) {
5287
+ validateKey(prop); // Delete property when "value" is undefined
5288
+
5289
+ if (value === undefined) {
5290
+ deleteProperty(obj, prop);
5291
+ } else if (options && options.merge) {
5292
+ var merge = options.merge === 'function' ? options.merge : Object.assign; // Only merge plain objects
5293
+
5294
+ if (merge && isPlainObject(obj[prop]) && isPlainObject(value)) {
5295
+ obj[prop] = merge(obj[prop], value);
5296
+ } else {
5297
+ obj[prop] = value;
5298
+ }
5299
+ } else {
5300
+ obj[prop] = value;
5258
5301
  }
5259
5302
 
5260
- var keys = Object.keys(options);
5303
+ return obj;
5304
+ };
5305
+
5306
+ var setValue = function setValue(target, path, value, options) {
5307
+ if (!path || !isObject(target)) return target;
5308
+ var keys = split$1(path, options);
5309
+ var obj = target;
5261
5310
 
5262
5311
  for (var i = 0; i < keys.length; i++) {
5263
5312
  var key = keys[i];
5264
- id += ';' + key + '=' + String(options[key]);
5313
+ var next = keys[i + 1];
5314
+ validateKey(key);
5315
+
5316
+ if (next === undefined) {
5317
+ assignProp(obj, key, value, options);
5318
+ break;
5319
+ }
5320
+
5321
+ if (typeof next === 'number' && !Array.isArray(obj[key])) {
5322
+ obj = obj[key] = [];
5323
+ continue;
5324
+ }
5325
+
5326
+ if (!isObject(obj[key])) {
5327
+ obj[key] = {};
5328
+ }
5329
+
5330
+ obj = obj[key];
5265
5331
  }
5266
5332
 
5267
- return id;
5268
- }
5333
+ return target;
5334
+ };
5269
5335
 
5270
- function isValidKey(key) {
5271
- return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';
5272
- }
5336
+ setValue.split = split$1;
5337
+ setValue.cache = new Map();
5273
5338
 
5274
- function isObject(val) {
5275
- return val !== null && (_typeof(val) === 'object' || typeof val === 'function');
5276
- }
5339
+ setValue.clear = function () {
5340
+ setValue.cache = new Map();
5341
+ };
5277
5342
 
5278
- set.memo = {};
5279
- var setValue = set;
5343
+ var setValue_1 = setValue;
5280
5344
 
5281
5345
  var LOG_LEVEL_INFO = 1;
5282
5346
  var LOG_LEVEL_DEBUG = 2;
@@ -5328,149 +5392,237 @@
5328
5392
  }
5329
5393
  };
5330
5394
 
5331
- // for sdk side native integration identification
5395
+ var _CNameMapping;
5396
+
5397
+ var NAME = "ADOBE_ANALYTICS";
5398
+ var CNameMapping = (_CNameMapping = {
5399
+ "Adobe Analytics": NAME
5400
+ }, _defineProperty(_CNameMapping, NAME, NAME), _defineProperty(_CNameMapping, "AdobeAnalytics", NAME), _defineProperty(_CNameMapping, "adobeanalytics", NAME), _CNameMapping);
5401
+
5402
+ var _CNameMapping$1;
5403
+
5404
+ var NAME$1 = "AM";
5405
+ 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);
5406
+
5407
+ var _CNameMapping$2;
5408
+
5409
+ var NAME$2 = "APPCUES";
5410
+ var CNameMapping$2 = (_CNameMapping$2 = {}, _defineProperty(_CNameMapping$2, NAME$2, NAME$2), _defineProperty(_CNameMapping$2, "Appcues", NAME$2), _CNameMapping$2);
5411
+
5412
+ var _CNameMapping$3;
5413
+
5414
+ var NAME$3 = "BINGADS";
5415
+ var CNameMapping$3 = (_CNameMapping$3 = {}, _defineProperty(_CNameMapping$3, NAME$3, NAME$3), _defineProperty(_CNameMapping$3, "BingAds", NAME$3), _CNameMapping$3);
5416
+
5417
+ var _CNameMapping$4;
5418
+
5419
+ var NAME$4 = "BRAZE";
5420
+ var CNameMapping$4 = (_CNameMapping$4 = {}, _defineProperty(_CNameMapping$4, NAME$4, NAME$4), _defineProperty(_CNameMapping$4, "Braze", NAME$4), _CNameMapping$4);
5421
+
5422
+ var NAME$5 = "BUGSNAG";
5423
+
5424
+ var CNameMapping$5 = _defineProperty({}, NAME$5, NAME$5);
5425
+
5426
+ var _CNameMapping$5;
5427
+
5428
+ var NAME$6 = "CHARTBEAT";
5429
+ var CNameMapping$6 = (_CNameMapping$5 = {}, _defineProperty(_CNameMapping$5, NAME$6, NAME$6), _defineProperty(_CNameMapping$5, "Chartbeat", NAME$6), _CNameMapping$5);
5430
+
5431
+ var _CNameMapping$6;
5432
+
5433
+ var NAME$7 = "CLEVERTAP";
5434
+ var CNameMapping$7 = (_CNameMapping$6 = {}, _defineProperty(_CNameMapping$6, NAME$7, NAME$7), _defineProperty(_CNameMapping$6, "Clevertap", NAME$7), _CNameMapping$6);
5435
+
5436
+ var _CNameMapping$7;
5437
+
5438
+ var NAME$8 = "COMSCORE";
5439
+ var CNameMapping$8 = (_CNameMapping$7 = {}, _defineProperty(_CNameMapping$7, NAME$8, NAME$8), _defineProperty(_CNameMapping$7, "Comscore", NAME$8), _CNameMapping$7);
5440
+
5441
+ var _CNameMapping$8;
5442
+
5443
+ var NAME$9 = "CRITEO";
5444
+ 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);
5445
+
5446
+ var _CNameMapping$9;
5447
+
5448
+ var NAME$a = "CUSTOMERIO";
5449
+ 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);
5450
+
5451
+ var _CNameMapping$a;
5452
+
5453
+ var NAME$b = "DRIP";
5454
+ 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);
5455
+
5456
+ var _CNameMapping$b;
5457
+
5458
+ var NAME$c = "FACEBOOK_PIXEL";
5459
+ 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);
5460
+
5461
+ var _CNameMapping$c;
5462
+
5463
+ var NAME$d = "FULLSTORY";
5464
+ 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);
5465
+
5466
+ var _CNameMapping$d;
5467
+
5468
+ var NAME$e = "GA";
5469
+ 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);
5470
+
5471
+ var _CNameMapping$e;
5472
+
5473
+ var NAME$f = "GA4";
5474
+ 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);
5475
+
5476
+ var _CNameMapping$f;
5477
+
5478
+ var NAME$g = "GOOGLEADS";
5479
+ 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);
5480
+
5481
+ var _CNameMapping$g;
5482
+
5483
+ var NAME$h = "GOOGLE_OPTIMIZE";
5484
+ 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);
5485
+
5486
+ var _CNameMapping$h;
5487
+
5488
+ var NAME$i = "GTM";
5489
+ var CNameMapping$i = (_CNameMapping$h = {}, _defineProperty(_CNameMapping$h, NAME$i, NAME$i), _defineProperty(_CNameMapping$h, "Google Tag Manager", NAME$i), _CNameMapping$h);
5490
+
5491
+ var _CNameMapping$i;
5492
+
5493
+ var NAME$j = "HEAP";
5494
+ 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);
5495
+
5496
+ var _CNameMapping$j;
5497
+
5498
+ var NAME$k = "HOTJAR";
5499
+ 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);
5500
+
5501
+ var _CNameMapping$k;
5502
+
5503
+ var NAME$l = "HS";
5504
+ 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);
5505
+
5506
+ var _CNameMapping$l;
5507
+
5508
+ var NAME$m = "INTERCOM";
5509
+ var CNameMapping$m = (_CNameMapping$l = {}, _defineProperty(_CNameMapping$l, NAME$m, NAME$m), _defineProperty(_CNameMapping$l, "Intercom", NAME$m), _CNameMapping$l);
5510
+
5511
+ var _CNameMapping$m;
5512
+
5513
+ var NAME$n = "KEEN";
5514
+ 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);
5515
+
5516
+ var _CNameMapping$n;
5517
+
5518
+ var NAME$o = "KISSMETRICS";
5519
+ var CNameMapping$o = (_CNameMapping$n = {}, _defineProperty(_CNameMapping$n, NAME$o, NAME$o), _defineProperty(_CNameMapping$n, "Kissmetrics", NAME$o), _CNameMapping$n);
5520
+
5521
+ var _CNameMapping$o;
5522
+
5523
+ var NAME$p = "KLAVIYO";
5524
+ var CNameMapping$p = (_CNameMapping$o = {}, _defineProperty(_CNameMapping$o, NAME$p, NAME$p), _defineProperty(_CNameMapping$o, "Klaviyo", NAME$p), _CNameMapping$o);
5525
+
5526
+ var _CNameMapping$p;
5527
+
5528
+ var NAME$q = "LAUNCHDARKLY";
5529
+ 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);
5530
+
5531
+ var _CNameMapping$q;
5532
+
5533
+ var NAME$r = "LINKEDIN_INSIGHT_TAG";
5534
+ 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);
5535
+
5536
+ var _CNameMapping$r;
5537
+
5538
+ var NAME$s = "LOTAME";
5539
+ var CNameMapping$s = (_CNameMapping$r = {}, _defineProperty(_CNameMapping$r, NAME$s, NAME$s), _defineProperty(_CNameMapping$r, "Lotame", NAME$s), _CNameMapping$r);
5540
+
5541
+ var _CNameMapping$s;
5542
+
5543
+ var NAME$t = "LYTICS";
5544
+ var CNameMapping$t = (_CNameMapping$s = {}, _defineProperty(_CNameMapping$s, NAME$t, NAME$t), _defineProperty(_CNameMapping$s, "Lytics", NAME$t), _CNameMapping$s);
5545
+
5546
+ var _CNameMapping$t;
5547
+
5548
+ var NAME$u = "MP";
5549
+ 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);
5550
+
5551
+ var _CNameMapping$u;
5552
+
5553
+ var NAME$v = "MOENGAGE";
5554
+ var CNameMapping$v = (_CNameMapping$u = {}, _defineProperty(_CNameMapping$u, NAME$v, NAME$v), _defineProperty(_CNameMapping$u, "MoEngage", NAME$v), _CNameMapping$u);
5555
+
5556
+ var _CNameMapping$v;
5557
+
5558
+ var NAME$w = "OPTIMIZELY";
5559
+ var CNameMapping$w = (_CNameMapping$v = {}, _defineProperty(_CNameMapping$v, NAME$w, NAME$w), _defineProperty(_CNameMapping$v, "Optimizely", NAME$w), _CNameMapping$v);
5560
+
5561
+ var _CNameMapping$w;
5562
+
5563
+ var NAME$x = "PENDO";
5564
+ var CNameMapping$x = (_CNameMapping$w = {}, _defineProperty(_CNameMapping$w, NAME$x, NAME$x), _defineProperty(_CNameMapping$w, "Pendo", NAME$x), _CNameMapping$w);
5565
+
5566
+ var _CNameMapping$x;
5567
+
5568
+ var NAME$y = "PINTEREST_TAG";
5569
+ 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);
5570
+
5571
+ var _CNameMapping$y;
5572
+
5573
+ var NAME$z = "POST_AFFILIATE_PRO";
5574
+ 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);
5575
+
5576
+ var _CNameMapping$z;
5577
+
5578
+ var NAME$A = "POSTHOG";
5579
+ 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);
5580
+
5581
+ var _CNameMapping$A;
5582
+
5583
+ var NAME$B = "PROFITWELL";
5584
+ 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);
5585
+
5586
+ var _CNameMapping$B;
5587
+
5588
+ var NAME$C = "QUALTRICS";
5589
+ 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);
5590
+
5591
+ var _CNameMapping$C;
5592
+
5593
+ var NAME$D = "QUANTUMMETRIC";
5594
+ 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);
5595
+
5596
+ var _CNameMapping$D;
5597
+
5598
+ var NAME$E = "REDDIT_PIXEL";
5599
+ 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);
5600
+
5601
+ var _CNameMapping$E;
5602
+
5603
+ var NAME$F = "SENTRY";
5604
+ 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);
5605
+
5606
+ var _CNameMapping$F;
5607
+
5608
+ var NAME$G = "SNAP_PIXEL";
5609
+ 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);
5610
+
5611
+ var _CNameMapping$G;
5612
+
5613
+ var NAME$H = "TVSQUARED";
5614
+ var CNameMapping$H = (_CNameMapping$G = {}, _defineProperty(_CNameMapping$G, NAME$H, NAME$H), _defineProperty(_CNameMapping$G, "TVSquared", NAME$H), _CNameMapping$G);
5615
+
5616
+ var _CNameMapping$H;
5617
+
5618
+ var NAME$I = "VWO";
5619
+ var CNameMapping$I = (_CNameMapping$H = {}, _defineProperty(_CNameMapping$H, NAME$I, NAME$I), _defineProperty(_CNameMapping$H, "Visual Website Optimizer", NAME$I), _CNameMapping$H);
5620
+
5332
5621
  // add a mapping from common names to index.js exported key names as identified by Rudder
5333
- var commonNames = {
5334
- All: "All",
5335
- "Google Analytics": "GA",
5336
- GoogleAnalytics: "GA",
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
- "Customer.io": "CUSTOMERIO",
5349
- "FB Pixel": "FACEBOOK_PIXEL",
5350
- "Facebook Pixel": "FACEBOOK_PIXEL",
5351
- FB_PIXEL: "FACEBOOK_PIXEL",
5352
- "Google Tag Manager": "GOOGLETAGMANAGER",
5353
- GTM: "GTM",
5354
- Hotjar: "HOTJAR",
5355
- hotjar: "HOTJAR",
5356
- HOTJAR: "HOTJAR",
5357
- Hubspot: "HS",
5358
- HUBSPOT: "HS",
5359
- Intercom: "INTERCOM",
5360
- INTERCOM: "INTERCOM",
5361
- Keen: "KEEN",
5362
- "Keen.io": "KEEN",
5363
- KEEN: "KEEN",
5364
- Kissmetrics: "KISSMETRICS",
5365
- KISSMETRICS: "KISSMETRICS",
5366
- Lotame: "LOTAME",
5367
- LOTAME: "LOTAME",
5368
- "Visual Website Optimizer": "VWO",
5369
- VWO: "VWO",
5370
- OPTIMIZELY: "OPTIMIZELY",
5371
- Optimizely: "OPTIMIZELY",
5372
- FULLSTORY: "FULLSTORY",
5373
- Fullstory: "FULLSTORY",
5374
- FullStory: "FULLSTORY",
5375
- BUGSNAG: "BUGSNAG",
5376
- TVSQUARED: "TVSQUARED",
5377
- "Google Analytics 4": "GA4",
5378
- GoogleAnalytics4: "GA4",
5379
- GA4: "GA4",
5380
- MOENGAGE: "MoEngage",
5381
- AM: "AM",
5382
- AMPLITUDE: "AM",
5383
- Amplitude: "AM",
5384
- Pendo: "PENDO",
5385
- PENDO: "PENDO",
5386
- Lytics: "Lytics",
5387
- LYTICS: "Lytics",
5388
- Appcues: "APPCUES",
5389
- APPCUES: "APPCUES",
5390
- POSTHOG: "POSTHOG",
5391
- PostHog: "POSTHOG",
5392
- Posthog: "POSTHOG",
5393
- KLAVIYO: "KLAVIYO",
5394
- Klaviyo: "KLAVIYO",
5395
- CLEVERTAP: "CLEVERTAP",
5396
- Clevertap: "CLEVERTAP",
5397
- BingAds: "BINGADS",
5398
- PinterestTag: "PINTEREST_TAG",
5399
- Pinterest_Tag: "PINTEREST_TAG",
5400
- PINTERESTTAG: "PINTEREST_TAG",
5401
- PINTEREST_TAG: "PINTEREST_TAG",
5402
- pinterest: "PINTEREST_TAG",
5403
- PinterestAds: "PINTEREST_TAG",
5404
- Pinterest_Ads: "PINTEREST_TAG",
5405
- Pinterest: "PINTEREST_TAG",
5406
- "Adobe Analytics": "ADOBE_ANALYTICS",
5407
- ADOBE_ANALYTICS: "ADOBE_ANALYTICS",
5408
- AdobeAnalytics: "ADOBE_ANALYTICS",
5409
- adobeanalytics: "ADOBE_ANALYTICS",
5410
- "LinkedIn Insight Tag": "LINKEDIN_INSIGHT_TAG",
5411
- LINKEDIN_INSIGHT_TAG: "LINKEDIN_INSIGHT_TAG",
5412
- Linkedin_insight_tag: "LINKEDIN_INSIGHT_TAG",
5413
- LinkedinInsighttag: "LINKEDIN_INSIGHT_TAG",
5414
- LinkedinInsightTag: "LINKEDIN_INSIGHT_TAG",
5415
- LinkedInInsightTag: "LINKEDIN_INSIGHT_TAG",
5416
- Linkedininsighttag: "LINKEDIN_INSIGHT_TAG",
5417
- LINKEDININSIGHTTAG: "LINKEDIN_INSIGHT_TAG",
5418
- Reddit_Pixel: "REDDIT_PIXEL",
5419
- RedditPixel: "REDDIT_PIXEL",
5420
- REDDITPIXEL: "REDDIT_PIXEL",
5421
- redditpixel: "REDDIT_PIXEL",
5422
- "Reddit Pixel": "REDDIT_PIXEL",
5423
- "REDDIT PIXEL": "REDDIT_PIXEL",
5424
- "reddit pixel": "REDDIT_PIXEL",
5425
- Drip: "DRIP",
5426
- drip: "DRIP",
5427
- Heap: "HEAP",
5428
- heap: "HEAP",
5429
- "Heap.io": "HEAP",
5430
- HEAP: "HEAP",
5431
- Criteo: "CRITEO",
5432
- criteo: "CRITEO",
5433
- CRITEO: "CRITEO",
5434
- MIXPANEL: "MP",
5435
- Mixpanel: "MP",
5436
- Qualtrics: "QUALTRICS",
5437
- qualtrics: "QUALTRICS",
5438
- QUALTRICS: "QUALTRICS",
5439
- Snap_Pixel: "SNAP_PIXEL",
5440
- SnapPixel: "SNAP_PIXEL",
5441
- SNAPPIXEL: "SNAP_PIXEL",
5442
- snappixel: "SNAP_PIXEL",
5443
- "Snap Pixel": "SNAP_PIXEL",
5444
- "SNAP PIXEL": "SNAP_PIXEL",
5445
- "snap pixel": "SNAP_PIXEL",
5446
- PROFITWELL: "PROFITWELL",
5447
- ProfitWell: "PROFITWELL",
5448
- profitwell: "PROFITWELL",
5449
- SENTRY: "SENTRY",
5450
- sentry: "SENTRY",
5451
- Sentry: "SENTRY",
5452
- "Quantum Metric": "QUANTUMMETRIC",
5453
- QuantumMetric: "QUANTUMMETRIC",
5454
- quantumMetric: "QUANTUMMETRIC",
5455
- quantummetric: "QUANTUMMETRIC",
5456
- Quantum_Metric: "QUANTUMMETRIC",
5457
- "Google Optimize": "GOOGLE_OPTIMIZE",
5458
- GOOGLE_OPTIMIZE: "GOOGLE_OPTIMIZE",
5459
- GoogleOptimize: "GOOGLE_OPTIMIZE",
5460
- Googleoptimize: "GOOGLE_OPTIMIZE",
5461
- GOOGLEOPTIMIZE: "GOOGLE_OPTIMIZE",
5462
- PostAffiliatePro: "POST_AFFILIATE_PRO",
5463
- Post_affiliate_pro: "POST_AFFILIATE_PRO",
5464
- "Post Affiliate Pro": "POST_AFFILIATE_PRO",
5465
- postaffiliatepro: "POST_AFFILIATE_PRO",
5466
- POSTAFFILIATEPRO: "POST_AFFILIATE_PRO",
5467
- POST_AFFILIATE_PRO: "POST_AFFILIATE_PRO",
5468
- LaunchDarkly: "LAUNCHDARKLY",
5469
- Launch_Darkly: "LAUNCHDARKLY",
5470
- LAUNCHDARKLY: "LAUNCHDARKLY",
5471
- "Launch Darkly": "LAUNCHDARKLY",
5472
- launchDarkly: "LAUNCHDARKLY"
5473
- };
5622
+
5623
+ 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({
5624
+ All: "All"
5625
+ }, 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);
5474
5626
 
5475
5627
  // from client native integration name to server identified display name
5476
5628
  // add a mapping from Rudder identified key names to Rudder server recognizable names
@@ -5561,7 +5713,7 @@
5561
5713
  PRODUCT_REVIEWED: "Product Reviewed"
5562
5714
  }; // Enumeration for integrations supported
5563
5715
 
5564
- var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=1.2.20";
5716
+ var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=1.3.4";
5565
5717
  var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
5566
5718
  var INTEGRATION_LOAD_CHECK_INTERVAL = 1000;
5567
5719
  /* module.exports = {
@@ -8699,7 +8851,7 @@
8699
8851
  switch (arguments.length) {
8700
8852
  case 3:
8701
8853
  case 2:
8702
- return set$1(name, value, options);
8854
+ return set(name, value, options);
8703
8855
 
8704
8856
  case 1:
8705
8857
  return get(name);
@@ -8718,7 +8870,7 @@
8718
8870
  */
8719
8871
 
8720
8872
 
8721
- function set$1(name, value, options) {
8873
+ function set(name, value, options) {
8722
8874
  options = options || {};
8723
8875
  var str = encode$1(name) + '=' + encode$1(value);
8724
8876
  if (null == value) options.maxage = -1;
@@ -10890,7 +11042,7 @@
10890
11042
  switch (arguments.length) {
10891
11043
  case 3:
10892
11044
  case 2:
10893
- return set$2(name, value, options);
11045
+ return set$1(name, value, options);
10894
11046
 
10895
11047
  case 1:
10896
11048
  return get$1(name);
@@ -10909,7 +11061,7 @@
10909
11061
  */
10910
11062
 
10911
11063
 
10912
- function set$2(name, value, options) {
11064
+ function set$1(name, value, options) {
10913
11065
  options = options || {};
10914
11066
  var str = encode$2(name) + '=' + encode$2(value);
10915
11067
  if (null == value) options.maxage = -1;
@@ -12325,7 +12477,7 @@
12325
12477
  });
12326
12478
  objKeys.map(function (k) {
12327
12479
  if (!(typeof messageContext[k] === "undefined")) {
12328
- setValue(destination, k, getValue(messageContext, k));
12480
+ setValue_1(destination, k, getValue(messageContext, k));
12329
12481
  }
12330
12482
  });
12331
12483
  }
@@ -12353,7 +12505,7 @@
12353
12505
  };
12354
12506
 
12355
12507
  if (!getValue(traitsValue, "name") && getValue(traitsValue, "firstName") && getValue(traitsValue, "lastName")) {
12356
- setValue(traitsValue, "name", "".concat(getValue(traitsValue, "firstName"), " ").concat(getValue(traitsValue, "lastName")));
12508
+ setValue_1(traitsValue, "name", "".concat(getValue(traitsValue, "firstName"), " ").concat(getValue(traitsValue, "lastName")));
12357
12509
  }
12358
12510
 
12359
12511
  return traitsValue;
@@ -22908,7 +23060,7 @@
22908
23060
  this.proxyNormalUrl = config.proxyNormalUrl;
22909
23061
  this.proxyHeartbeatUrl = config.proxyHeartbeatUrl;
22910
23062
  this.pageName = "";
22911
- this.name = "ADOBE_ANALYTICS";
23063
+ this.name = NAME;
22912
23064
  setConfig(config);
22913
23065
  }
22914
23066
 
@@ -23190,7 +23342,7 @@
23190
23342
 
23191
23343
  _classCallCheck(this, Amplitude);
23192
23344
 
23193
- this.name = "AM";
23345
+ this.name = NAME$1;
23194
23346
  this.analytics = analytics;
23195
23347
  this.apiKey = config.apiKey;
23196
23348
  this.trackAllPages = config.trackAllPages || false;
@@ -23617,6 +23769,12 @@
23617
23769
  amplitudeRevenue.setProductId(productId);
23618
23770
  }
23619
23771
 
23772
+ if (amplitudeRevenue._properties) {
23773
+ delete amplitudeRevenue._properties.price;
23774
+ delete amplitudeRevenue._properties.productId;
23775
+ delete amplitudeRevenue._properties.quantity;
23776
+ }
23777
+
23620
23778
  window.amplitude.getInstance().logRevenueV2(amplitudeRevenue);
23621
23779
  }
23622
23780
  }, {
@@ -23653,7 +23811,7 @@
23653
23811
 
23654
23812
  this.accountId = config.accountId;
23655
23813
  this.apiKey = config.apiKey;
23656
- this.name = "APPCUES"; //this.sendToAllDestinations = config.sendToAll;
23814
+ this.name = NAME$2; // this.sendToAllDestinations = config.sendToAll;
23657
23815
  }
23658
23816
 
23659
23817
  _createClass(Appcues, [{
@@ -23801,11 +23959,11 @@
23801
23959
  };
23802
23960
 
23803
23961
  this.page = function () {
23804
- window.uetq.push('pageLoad');
23962
+ window.uetq.push("pageLoad");
23805
23963
  };
23806
23964
 
23807
23965
  this.tagID = config.tagID;
23808
- this.name = "BINGADS";
23966
+ this.name = NAME$3;
23809
23967
  });
23810
23968
 
23811
23969
  /*
@@ -23833,7 +23991,7 @@
23833
23991
  }
23834
23992
  }
23835
23993
 
23836
- this.name = "BRAZE";
23994
+ this.name = NAME$4;
23837
23995
  logger.debug("Config ", config);
23838
23996
  }
23839
23997
  /** https://js.appboycdn.com/web-sdk/latest/doc/ab.User.html#toc4
@@ -24012,7 +24170,7 @@
24012
24170
 
24013
24171
  this.releaseStage = config.releaseStage;
24014
24172
  this.apiKey = config.apiKey;
24015
- this.name = "BUGSNAG";
24173
+ this.name = NAME$5;
24016
24174
  this.setIntervalHandler = undefined;
24017
24175
  }
24018
24176
 
@@ -24486,7 +24644,7 @@
24486
24644
  this.replayEvents = [];
24487
24645
  this.failed = false;
24488
24646
  this.isFirstPageCallMade = false;
24489
- this.name = "CHARTBEAT";
24647
+ this.name = NAME$6;
24490
24648
  }
24491
24649
 
24492
24650
  _createClass(Chartbeat, [{
@@ -24649,7 +24807,7 @@
24649
24807
 
24650
24808
  this.accountId = config.accountId;
24651
24809
  this.apiKey = config.passcode;
24652
- this.name = "CLEVERTAP";
24810
+ this.name = NAME$7;
24653
24811
  this.region = config.region;
24654
24812
  this.keysToExtract = ["context.traits"];
24655
24813
  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"];
@@ -24820,7 +24978,7 @@
24820
24978
  this.failed = false;
24821
24979
  this.comScoreParams = {};
24822
24980
  this.replayEvents = [];
24823
- this.name = "COMSCORE";
24981
+ this.name = NAME$8;
24824
24982
  }
24825
24983
 
24826
24984
  _createClass(Comscore, [{
@@ -25505,7 +25663,7 @@
25505
25663
  function Criteo(config) {
25506
25664
  _classCallCheck(this, Criteo);
25507
25665
 
25508
- this.name = "Criteo";
25666
+ this.name = NAME$9;
25509
25667
  this.hashMethod = config.hashMethod;
25510
25668
  this.accountId = config.accountId;
25511
25669
  this.url = config.homePageUrl; // eslint-disable-next-line no-nested-ternary
@@ -25651,7 +25809,7 @@
25651
25809
 
25652
25810
  this.siteID = config.siteID;
25653
25811
  this.apiKey = config.apiKey;
25654
- this.name = "CUSTOMERIO";
25812
+ this.name = NAME$a;
25655
25813
  }
25656
25814
 
25657
25815
  _createClass(CustomerIO, [{
@@ -25772,7 +25930,7 @@
25772
25930
 
25773
25931
  this.accountId = config.accountId;
25774
25932
  this.campaignId = config.campaignId;
25775
- this.name = "DRIP";
25933
+ this.name = NAME$b;
25776
25934
  this.exclusionFields = ["email", "new_email", "newEmail", "tags", "remove_tags", "removeTags", "prospect", "eu_consent", "euConsent", "eu_consent_message", "euConsentMessage"];
25777
25935
  }
25778
25936
 
@@ -26930,7 +27088,7 @@
26930
27088
  this.legacyConversionPixelId = config.legacyConversionPixelId;
26931
27089
  this.userIdAsPixelId = config.userIdAsPixelId;
26932
27090
  this.whitelistPiiProperties = config.whitelistPiiProperties;
26933
- this.name = "FB_PIXEL";
27091
+ this.name = NAME$c;
26934
27092
  }
26935
27093
 
26936
27094
  _createClass(FacebookPixel, [{
@@ -27559,7 +27717,7 @@
27559
27717
 
27560
27718
  this.fs_org = config.fs_org;
27561
27719
  this.fs_debug_mode = config.fs_debug_mode;
27562
- this.name = "FULLSTORY";
27720
+ this.name = NAME$d;
27563
27721
  this.analytics = analytics;
27564
27722
  }
27565
27723
 
@@ -27829,7 +27987,7 @@
27829
27987
  this.resetCustomDimensionsOnPage = config.resetCustomDimensionsOnPage || [];
27830
27988
  this.enhancedEcommerceLoaded = 0;
27831
27989
  this.namedTracker = config.namedTracker || false;
27832
- this.name = "GA";
27990
+ this.name = NAME$e;
27833
27991
  this.eventWithCategoryFieldProductScoped = ["product clicked", "product added", "product viewed", "product removed"];
27834
27992
  }
27835
27993
 
@@ -28972,7 +29130,7 @@
28972
29130
  this.blockPageView = config.blockPageViewEvent || false;
28973
29131
  this.extendPageViewParams = config.extendPageViewParams || false;
28974
29132
  this.extendGroupPayload = config.extendGroupPayload || false;
28975
- this.name = "GA4";
29133
+ this.name = NAME$f;
28976
29134
  }
28977
29135
 
28978
29136
  _createClass(GA4, [{
@@ -29206,7 +29364,7 @@
29206
29364
  this.sendPageView = config.sendPageView || true;
29207
29365
  this.conversionLinker = config.conversionLinker || true;
29208
29366
  this.disableAdPersonalization = config.disableAdPersonalization || false;
29209
- this.name = "GOOGLEADS";
29367
+ this.name = NAME$g;
29210
29368
  }
29211
29369
 
29212
29370
  _createClass(GoogleAds, [{
@@ -29372,13 +29530,17 @@
29372
29530
  _classCallCheck(this, GoogleTagManager);
29373
29531
 
29374
29532
  this.containerID = config.containerID;
29375
- this.name = "GOOGLETAGMANAGER";
29533
+ this.name = NAME$i;
29534
+ this.serverUrl = config.serverUrl;
29376
29535
  }
29377
29536
 
29378
29537
  _createClass(GoogleTagManager, [{
29379
29538
  key: "init",
29380
29539
  value: function init() {
29381
29540
  logger.debug("===in init GoogleTagManager===");
29541
+ var defaultUrl = "https://www.googletagmanager.com"; // ref: https://developers.google.com/tag-platform/tag-manager/server-side/send-data#update_the_gtmjs_source_domain
29542
+
29543
+ window.finalUrl = this.serverUrl ? this.serverUrl : defaultUrl;
29382
29544
 
29383
29545
  (function (w, d, s, l, i) {
29384
29546
  w[l] = w[l] || [];
@@ -29390,7 +29552,7 @@
29390
29552
  var j = d.createElement(s);
29391
29553
  var dl = l !== "dataLayer" ? "&l=".concat(l) : "";
29392
29554
  j.async = true;
29393
- j.src = "https://www.googletagmanager.com/gtm.js?id=".concat(i).concat(dl);
29555
+ j.src = "".concat(window.finalUrl, "/gtm.js?id=").concat(i).concat(dl);
29394
29556
  f.parentNode.insertBefore(j, f);
29395
29557
  })(window, document, "script", "dataLayer", this.containerID);
29396
29558
  }
@@ -29498,7 +29660,7 @@
29498
29660
  _classCallCheck(this, Heap);
29499
29661
 
29500
29662
  this.appId = config.appId;
29501
- this.name = "HEAP";
29663
+ this.name = NAME$j;
29502
29664
  }
29503
29665
  /**
29504
29666
  * Initialise Heap
@@ -29579,7 +29741,7 @@
29579
29741
  _classCallCheck(this, Hotjar);
29580
29742
 
29581
29743
  this.siteId = config.siteID;
29582
- this.name = "HOTJAR";
29744
+ this.name = NAME$k;
29583
29745
  this._ready = false;
29584
29746
  }
29585
29747
 
@@ -29667,7 +29829,7 @@
29667
29829
 
29668
29830
  this.hubId = config.hubID; // 6405167
29669
29831
 
29670
- this.name = "HS";
29832
+ this.name = NAME$l;
29671
29833
  }
29672
29834
 
29673
29835
  _createClass(HubSpot, [{
@@ -29784,7 +29946,7 @@
29784
29946
  function INTERCOM(config) {
29785
29947
  _classCallCheck(this, INTERCOM);
29786
29948
 
29787
- this.NAME = "INTERCOM";
29949
+ this.name = NAME$m;
29788
29950
  this.API_KEY = config.apiKey;
29789
29951
  this.APP_ID = config.appId;
29790
29952
  this.MOBILE_APP_ID = config.mobileAppId;
@@ -29978,7 +30140,7 @@
29978
30140
  this.urlAddon = config.urlAddon;
29979
30141
  this.referrerAddon = config.referrerAddon;
29980
30142
  this.client = null;
29981
- this.name = "KEEN";
30143
+ this.name = NAME$n;
29982
30144
  }
29983
30145
 
29984
30146
  _createClass(Keen, [{
@@ -30162,161 +30324,13 @@
30162
30324
 
30163
30325
  var extend_1 = extend;
30164
30326
 
30165
- var objCase = createCommonjsModule(function (module) {
30166
- /**
30167
- * Module exports, export
30168
- */
30169
-
30170
-
30171
- module.exports = multiple(find);
30172
- module.exports.find = module.exports;
30173
- /**
30174
- * Export the replacement function, return the modified object
30175
- */
30176
-
30177
- module.exports.replace = function (obj, key, val, options) {
30178
- multiple(replace).call(this, obj, key, val, options);
30179
- return obj;
30180
- };
30181
- /**
30182
- * Export the delete function, return the modified object
30183
- */
30184
-
30185
-
30186
- module.exports.del = function (obj, key, options) {
30187
- multiple(del).call(this, obj, key, null, options);
30188
- return obj;
30189
- };
30190
- /**
30191
- * Compose applying the function to a nested key
30192
- */
30193
-
30194
-
30195
- function multiple(fn) {
30196
- return function (obj, path, val, options) {
30197
- var normalize = options && isFunction(options.normalizer) ? options.normalizer : defaultNormalize;
30198
- path = normalize(path);
30199
- var key;
30200
- var finished = false;
30201
-
30202
- while (!finished) {
30203
- loop();
30204
- }
30205
-
30206
- function loop() {
30207
- for (key in obj) {
30208
- var normalizedKey = normalize(key);
30209
-
30210
- if (0 === path.indexOf(normalizedKey)) {
30211
- var temp = path.substr(normalizedKey.length);
30212
-
30213
- if (temp.charAt(0) === '.' || temp.length === 0) {
30214
- path = temp.substr(1);
30215
- var child = obj[key]; // we're at the end and there is nothing.
30216
-
30217
- if (null == child) {
30218
- finished = true;
30219
- return;
30220
- } // we're at the end and there is something.
30221
-
30222
-
30223
- if (!path.length) {
30224
- finished = true;
30225
- return;
30226
- } // step into child
30227
-
30228
-
30229
- obj = child; // but we're done here
30230
-
30231
- return;
30232
- }
30233
- }
30234
- }
30235
-
30236
- key = undefined; // if we found no matching properties
30237
- // on the current object, there's no match.
30238
-
30239
- finished = true;
30240
- }
30241
-
30242
- if (!key) return;
30243
- if (null == obj) return obj; // the `obj` and `key` is one above the leaf object and key, so
30244
- // start object: { a: { 'b.c': 10 } }
30245
- // end object: { 'b.c': 10 }
30246
- // end key: 'b.c'
30247
- // this way, you can do `obj[key]` and get `10`.
30248
-
30249
- return fn(obj, key, val);
30250
- };
30251
- }
30252
- /**
30253
- * Find an object by its key
30254
- *
30255
- * find({ first_name : 'Calvin' }, 'firstName')
30256
- */
30257
-
30258
-
30259
- function find(obj, key) {
30260
- if (obj.hasOwnProperty(key)) return obj[key];
30261
- }
30262
- /**
30263
- * Delete a value for a given key
30264
- *
30265
- * del({ a : 'b', x : 'y' }, 'X' }) -> { a : 'b' }
30266
- */
30267
-
30268
-
30269
- function del(obj, key) {
30270
- if (obj.hasOwnProperty(key)) delete obj[key];
30271
- return obj;
30272
- }
30273
- /**
30274
- * Replace an objects existing value with a new one
30275
- *
30276
- * replace({ a : 'b' }, 'a', 'c') -> { a : 'c' }
30277
- */
30278
-
30279
-
30280
- function replace(obj, key, val) {
30281
- if (obj.hasOwnProperty(key)) obj[key] = val;
30282
- return obj;
30283
- }
30284
- /**
30285
- * Normalize a `dot.separated.path`.
30286
- *
30287
- * A.HELL(!*&#(!)O_WOR LD.bar => ahelloworldbar
30288
- *
30289
- * @param {String} path
30290
- * @return {String}
30291
- */
30292
-
30293
-
30294
- function defaultNormalize(path) {
30295
- return path.replace(/[^a-zA-Z0-9\.]+/g, '').toLowerCase();
30296
- }
30297
- /**
30298
- * Check if a value is a function.
30299
- *
30300
- * @param {*} val
30301
- * @return {boolean} Returns `true` if `val` is a function, otherwise `false`.
30302
- */
30303
-
30304
-
30305
- function isFunction(val) {
30306
- return typeof val === 'function';
30307
- }
30308
- });
30309
- var objCase_1 = objCase.find;
30310
- var objCase_2 = objCase.replace;
30311
- var objCase_3 = objCase.del;
30312
-
30313
30327
  var Kissmetrics = /*#__PURE__*/function () {
30314
30328
  function Kissmetrics(config) {
30315
30329
  _classCallCheck(this, Kissmetrics);
30316
30330
 
30317
30331
  this.apiKey = config.apiKey;
30318
30332
  this.prefixProperties = config.prefixProperties;
30319
- this.name = "KISSMETRICS";
30333
+ this.name = NAME$o;
30320
30334
  }
30321
30335
 
30322
30336
  _createClass(Kissmetrics, [{
@@ -30703,7 +30717,7 @@
30703
30717
  this.sendPageAsTrack = config.sendPageAsTrack;
30704
30718
  this.additionalPageInfo = config.additionalPageInfo;
30705
30719
  this.enforceEmailAsPrimary = config.enforceEmailAsPrimary;
30706
- this.name = "KLAVIYO";
30720
+ this.name = NAME$p;
30707
30721
  this.keysToExtract = ["context.traits"];
30708
30722
  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"];
30709
30723
  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"];
@@ -30855,7 +30869,7 @@
30855
30869
  function LinkedInInsightTag(config) {
30856
30870
  _classCallCheck(this, LinkedInInsightTag);
30857
30871
 
30858
- this.name = "LINKEDIN_INSIGHT_TAG";
30872
+ this.name = NAME$r;
30859
30873
  this.partnerId = config.partnerId;
30860
30874
  }
30861
30875
 
@@ -30922,7 +30936,7 @@
30922
30936
 
30923
30937
  _classCallCheck(this, Lotame);
30924
30938
 
30925
- this.name = "LOTAME";
30939
+ this.name = NAME$s;
30926
30940
  this.analytics = analytics;
30927
30941
  this.storage = lotameStorage;
30928
30942
  this.bcpUrlSettingsPixel = config.bcpUrlSettingsPixel;
@@ -31111,7 +31125,7 @@
31111
31125
  this.stream = config.stream;
31112
31126
  this.blockload = config.blockload;
31113
31127
  this.loadid = config.loadid;
31114
- this.name = "LYTICS";
31128
+ this.name = NAME$t;
31115
31129
  this.forFirstName = ["firstname", "firstName"];
31116
31130
  this.forLastName = ["lastname", "lastName"];
31117
31131
  }
@@ -31417,7 +31431,7 @@
31417
31431
  function Mixpanel(config) {
31418
31432
  _classCallCheck(this, Mixpanel);
31419
31433
 
31420
- this.name = "MIXPANEL";
31434
+ this.name = NAME$u;
31421
31435
  this.accountId = config.accountId;
31422
31436
  this.token = config.token;
31423
31437
  this.people = config.people || false;
@@ -31842,7 +31856,7 @@
31842
31856
  this.apiId = config.apiId;
31843
31857
  this.debug = config.debug;
31844
31858
  this.region = config.region;
31845
- this.name = "MoEngage";
31859
+ this.name = NAME$v;
31846
31860
  this.analyticsinstance = analyticsinstance;
31847
31861
  }
31848
31862
 
@@ -32099,7 +32113,7 @@
32099
32113
  this.trackNamedPages = config.trackNamedPages;
32100
32114
  this.customCampaignProperties = config.customCampaignProperties ? config.customCampaignProperties : [];
32101
32115
  this.customExperimentProperties = config.customExperimentProperties ? config.customExperimentProperties : [];
32102
- this.name = "OPTIMIZELY";
32116
+ this.name = NAME$w;
32103
32117
  }
32104
32118
 
32105
32119
  _createClass(Optimizely, [{
@@ -32258,7 +32272,7 @@
32258
32272
 
32259
32273
  this.analytics = analytics;
32260
32274
  this.apiKey = !config.apiKey ? "" : config.apiKey;
32261
- this.name = "PENDO";
32275
+ this.name = NAME$x;
32262
32276
  logger.debug("Config ", config);
32263
32277
  }
32264
32278
 
@@ -32408,7 +32422,7 @@
32408
32422
  }();
32409
32423
 
32410
32424
  var eventMapping = [{
32411
- src: ["checkout step completed", "order completed"],
32425
+ src: ["order completed"],
32412
32426
  dest: "Checkout"
32413
32427
  }, {
32414
32428
  src: ["product added"],
@@ -32459,7 +32473,7 @@
32459
32473
  this.enhancedMatch = config.enhancedMatch || false;
32460
32474
  this.customProperties = config.customProperties || [];
32461
32475
  this.userDefinedEventsMapping = config.eventsMapping || [];
32462
- this.name = "PINTEREST_TAG";
32476
+ this.name = NAME$y;
32463
32477
  logger.debug("config", config);
32464
32478
  }
32465
32479
 
@@ -32708,7 +32722,7 @@
32708
32722
 
32709
32723
  this.siteId = config.siteID; // 1549611
32710
32724
 
32711
- this.name = "QUANTUMMETRIC";
32725
+ this.name = NAME$D;
32712
32726
  this._ready = false;
32713
32727
  }
32714
32728
 
@@ -32767,7 +32781,7 @@
32767
32781
 
32768
32782
  _classCallCheck(this, Posthog);
32769
32783
 
32770
- this.name = "POSTHOG";
32784
+ this.name = NAME$A;
32771
32785
  this.analytics = analytics;
32772
32786
  this.teamApiKey = config.teamApiKey;
32773
32787
  this.yourInstance = removeTrailingSlashes(config.yourInstance) || "https://app.posthog.com";
@@ -32824,6 +32838,7 @@
32824
32838
  e._i.push([i, s, a]);
32825
32839
  }, e.__SV = 1);
32826
32840
  }(document, window.posthog || []);
32841
+ var POSTHOG = this.analytics.loadOnlyIntegrations.POSTHOG;
32827
32842
  var configObject = {
32828
32843
  api_host: this.yourInstance,
32829
32844
  autocapture: this.autocapture,
@@ -32833,6 +32848,10 @@
32833
32848
  disable_cookie: this.disableCookie
32834
32849
  };
32835
32850
 
32851
+ if (POSTHOG && POSTHOG.loaded) {
32852
+ configObject.loaded = POSTHOG.loaded;
32853
+ }
32854
+
32836
32855
  if (this.xhrHeaders && Object.keys(this.xhrHeaders).length > 0) {
32837
32856
  configObject.xhr_headers = this.xhrHeaders;
32838
32857
  }
@@ -32912,7 +32931,7 @@
32912
32931
  value: function page(rudderElement) {
32913
32932
  logger.debug("in Posthog page");
32914
32933
  this.processSuperProperties(rudderElement);
32915
- posthog.capture('$pageview');
32934
+ posthog.capture("$pageview");
32916
32935
  }
32917
32936
  }, {
32918
32937
  key: "isLoaded",
@@ -32936,7 +32955,7 @@
32936
32955
 
32937
32956
  this.publicApiKey = config.publicApiKey;
32938
32957
  this.siteType = config.siteType;
32939
- this.name = "ProfitWell";
32958
+ this.name = NAME$B;
32940
32959
  }
32941
32960
 
32942
32961
  _createClass(ProfitWell, [{
@@ -33019,7 +33038,7 @@
33019
33038
  function Qualtrics(config) {
33020
33039
  _classCallCheck(this, Qualtrics);
33021
33040
 
33022
- this.name = "Qualtrics";
33041
+ this.name = NAME$C;
33023
33042
  this.projectId = config.projectId;
33024
33043
  this.brandId = config.brandId;
33025
33044
  this.enableGenericPageTitle = config.enableGenericPageTitle;
@@ -33061,7 +33080,7 @@
33061
33080
  this.set = function (a, c) {
33062
33081
  var b = "",
33063
33082
  b = new Date();
33064
- b.setTime(b.getTime() + 6048E5);
33083
+ b.setTime(b.getTime() + 6048e5);
33065
33084
  b = "; expires=" + b.toGMTString();
33066
33085
  document.cookie = a + "=" + c + b + "; path=/; ";
33067
33086
  };
@@ -33183,7 +33202,7 @@
33183
33202
  _classCallCheck(this, RedditPixel);
33184
33203
 
33185
33204
  this.advertiserId = config.advertiserId;
33186
- this.name = "REDDIT_PIXEL";
33205
+ this.name = NAME$E;
33187
33206
  }
33188
33207
 
33189
33208
  _createClass(RedditPixel, [{
@@ -33368,7 +33387,7 @@
33368
33387
  function Sentry(config) {
33369
33388
  _classCallCheck(this, Sentry);
33370
33389
 
33371
- this.name = "Sentry";
33390
+ this.name = NAME$F;
33372
33391
  this.dsn = config.dsn;
33373
33392
  this.debugMode = config.debugMode;
33374
33393
  this.environment = config.environment;
@@ -33636,7 +33655,7 @@
33636
33655
 
33637
33656
  this.pixelId = config.pixelId;
33638
33657
  this.hashMethod = config.hashMethod;
33639
- this.name = "SNAP_PIXEL";
33658
+ this.name = NAME$G;
33640
33659
  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"];
33641
33660
  this.ecomEvents = {
33642
33661
  PURCHASE: "PURCHASE",
@@ -33830,7 +33849,7 @@
33830
33849
  this.clientId = config.clientId;
33831
33850
  this.eventWhiteList = config.eventWhiteList || [];
33832
33851
  this.customMetrics = config.customMetrics || [];
33833
- this.name = "TVSquared";
33852
+ this.name = NAME$H;
33834
33853
  }
33835
33854
 
33836
33855
  _createClass(TVSquared, [{
@@ -33935,7 +33954,7 @@
33935
33954
  this.useExistingJquery = config.useExistingJquery;
33936
33955
  this.sendExperimentTrack = config.sendExperimentTrack;
33937
33956
  this.sendExperimentIdentify = config.sendExperimentIdentify;
33938
- this.name = "VWO";
33957
+ this.name = NAME$I;
33939
33958
  this.analytics = analytics;
33940
33959
  logger.debug("Config ", config);
33941
33960
  }
@@ -34087,7 +34106,7 @@
34087
34106
  function GoogleOptimize(config) {
34088
34107
  _classCallCheck(this, GoogleOptimize);
34089
34108
 
34090
- this.name = "GOOGLE_OPTIMIZE";
34109
+ this.name = NAME$h;
34091
34110
  this.ga = config.ga;
34092
34111
  this.trackingId = config.trackingId;
34093
34112
  this.containerId = config.containerId;
@@ -34177,7 +34196,7 @@
34177
34196
  function PostAffiliatePro(config) {
34178
34197
  _classCallCheck(this, PostAffiliatePro);
34179
34198
 
34180
- this.name = "POST_AFFILIATE_PRO";
34199
+ this.name = NAME$z;
34181
34200
  this.url = config.url;
34182
34201
  this.mergeProducts = config.mergeProducts;
34183
34202
  this.accountId = config.accountId;
@@ -34328,7 +34347,7 @@
34328
34347
  function LaunchDarkly(config) {
34329
34348
  _classCallCheck(this, LaunchDarkly);
34330
34349
 
34331
- this.name = "LaunchDarkly";
34350
+ this.name = NAME$q;
34332
34351
  this.clientSideId = config.clientSideId;
34333
34352
  }
34334
34353
 
@@ -34453,7 +34472,7 @@
34453
34472
  this.build = "1.0.0";
34454
34473
  this.name = "RudderLabs JavaScript SDK";
34455
34474
  this.namespace = "com.rudderlabs.javascript";
34456
- this.version = "1.2.20";
34475
+ this.version = "1.3.4";
34457
34476
  });
34458
34477
 
34459
34478
  // Library information class
@@ -34461,7 +34480,7 @@
34461
34480
  _classCallCheck(this, RudderLibraryInfo);
34462
34481
 
34463
34482
  this.name = "RudderLabs JavaScript SDK";
34464
- this.version = "1.2.20";
34483
+ this.version = "1.3.4";
34465
34484
  }); // Operating System information class
34466
34485
 
34467
34486
 
@@ -37468,11 +37487,15 @@
37468
37487
  try {
37469
37488
  if (!succesfulLoadedIntersectClientSuppliedIntegrations[i].isFailed || !succesfulLoadedIntersectClientSuppliedIntegrations[i].isFailed()) {
37470
37489
  if (succesfulLoadedIntersectClientSuppliedIntegrations[i][methodName]) {
37471
- var _succesfulLoadedInter;
37490
+ var sendEvent = !object.IsEventBlackListed(event[0].message.event, succesfulLoadedIntersectClientSuppliedIntegrations[i].name); // Block the event if it is blacklisted for the device-mode destination
37491
+
37492
+ if (sendEvent) {
37493
+ var _succesfulLoadedInter;
37472
37494
 
37473
- var clonedBufferEvent = lodash_clonedeep(event);
37495
+ var clonedBufferEvent = lodash_clonedeep(event);
37474
37496
 
37475
- (_succesfulLoadedInter = succesfulLoadedIntersectClientSuppliedIntegrations[i])[methodName].apply(_succesfulLoadedInter, _toConsumableArray(clonedBufferEvent));
37497
+ (_succesfulLoadedInter = succesfulLoadedIntersectClientSuppliedIntegrations[i])[methodName].apply(_succesfulLoadedInter, _toConsumableArray(clonedBufferEvent));
37498
+ }
37476
37499
  }
37477
37500
  }
37478
37501
  } catch (error) {
@@ -37779,6 +37802,64 @@
37779
37802
  value: function trackEvent(rudderElement, options, callback) {
37780
37803
  this.processAndSendDataToDestinations("track", rudderElement, options, callback);
37781
37804
  }
37805
+ }, {
37806
+ key: "IsEventBlackListed",
37807
+ value: function IsEventBlackListed(eventName, intgName) {
37808
+ if (!eventName || !(typeof eventName === "string")) {
37809
+ return false;
37810
+ }
37811
+
37812
+ var sdkIntgName = commonNames[intgName];
37813
+ var intg = this.clientIntegrations.find(function (intg) {
37814
+ return intg.name === sdkIntgName;
37815
+ });
37816
+ var _intg$config = intg.config,
37817
+ blacklistedEvents = _intg$config.blacklistedEvents,
37818
+ whitelistedEvents = _intg$config.whitelistedEvents,
37819
+ eventFilteringOption = _intg$config.eventFilteringOption;
37820
+
37821
+ if (!eventFilteringOption) {
37822
+ return false;
37823
+ }
37824
+
37825
+ switch (eventFilteringOption) {
37826
+ // disabled filtering
37827
+ case "disable":
37828
+ return false;
37829
+ // Blacklist is choosen for filtering events
37830
+
37831
+ case "blacklistedEvents":
37832
+ var isValidBlackList = blacklistedEvents && Array.isArray(blacklistedEvents) && blacklistedEvents.every(function (x) {
37833
+ return x.eventName !== "";
37834
+ });
37835
+
37836
+ if (isValidBlackList) {
37837
+ return blacklistedEvents.find(function (eventObj) {
37838
+ return eventObj.eventName.trim().toUpperCase() === eventName.trim().toUpperCase();
37839
+ }) === undefined ? false : true;
37840
+ } else {
37841
+ return false;
37842
+ }
37843
+
37844
+ // Whitelist is choosen for filtering events
37845
+
37846
+ case "whitelistedEvents":
37847
+ var isValidWhiteList = whitelistedEvents && Array.isArray(whitelistedEvents) && whitelistedEvents.some(function (x) {
37848
+ return x.eventName !== "";
37849
+ });
37850
+
37851
+ if (isValidWhiteList) {
37852
+ return whitelistedEvents.find(function (eventObj) {
37853
+ return eventObj.eventName.trim().toUpperCase() === eventName.trim().toUpperCase();
37854
+ }) === undefined ? true : false;
37855
+ } else {
37856
+ return true;
37857
+ }
37858
+
37859
+ default:
37860
+ return false;
37861
+ }
37862
+ }
37782
37863
  /**
37783
37864
  * Process and send data to destinations along with rudder BE
37784
37865
  *
@@ -37791,6 +37872,8 @@
37791
37872
  }, {
37792
37873
  key: "processAndSendDataToDestinations",
37793
37874
  value: function processAndSendDataToDestinations(type, rudderElement, options, callback) {
37875
+ var _this3 = this;
37876
+
37794
37877
  try {
37795
37878
  if (!this.anonymousId) {
37796
37879
  this.setAnonymousId();
@@ -37832,8 +37915,12 @@
37832
37915
  succesfulLoadedIntersectClientSuppliedIntegrations.forEach(function (obj) {
37833
37916
  if (!obj.isFailed || !obj.isFailed()) {
37834
37917
  if (obj[type]) {
37835
- var clonedRudderElement = lodash_clonedeep(rudderElement);
37836
- obj[type](clonedRudderElement);
37918
+ var sendEvent = !_this3.IsEventBlackListed(rudderElement.message.event, obj.name); // Block the event if it is blacklisted for the device-mode destination
37919
+
37920
+ if (sendEvent) {
37921
+ var clonedRudderElement = lodash_clonedeep(rudderElement);
37922
+ obj[type](clonedRudderElement);
37923
+ }
37837
37924
  }
37838
37925
  }
37839
37926
  });
@@ -38028,7 +38115,7 @@
38028
38115
  }, {
38029
38116
  key: "load",
38030
38117
  value: function load(writeKey, serverUrl, options) {
38031
- var _this3 = this;
38118
+ var _this4 = this;
38032
38119
 
38033
38120
  logger.debug("inside load ");
38034
38121
  if (options && options.cookieConsentManager) this.cookieConsentOptions = lodash_clonedeep(options.cookieConsentManager);
@@ -38086,9 +38173,9 @@
38086
38173
  // convert to rudder recognised method names
38087
38174
  var tranformedCallbackMapping = {};
38088
38175
  Object.keys(this.methodToCallbackMapping).forEach(function (methodName) {
38089
- if (_this3.methodToCallbackMapping.hasOwnProperty(methodName)) {
38090
- if (options.clientSuppliedCallbacks[_this3.methodToCallbackMapping[methodName]]) {
38091
- tranformedCallbackMapping[methodName] = options.clientSuppliedCallbacks[_this3.methodToCallbackMapping[methodName]];
38176
+ if (_this4.methodToCallbackMapping.hasOwnProperty(methodName)) {
38177
+ if (options.clientSuppliedCallbacks[_this4.methodToCallbackMapping[methodName]]) {
38178
+ tranformedCallbackMapping[methodName] = options.clientSuppliedCallbacks[_this4.methodToCallbackMapping[methodName]];
38092
38179
  }
38093
38180
  }
38094
38181
  });
@@ -38137,7 +38224,7 @@
38137
38224
 
38138
38225
  if (res instanceof Promise) {
38139
38226
  res.then(function (res) {
38140
- return _this3.processResponse(200, res);
38227
+ return _this4.processResponse(200, res);
38141
38228
  }).catch(errorHandler);
38142
38229
  } else {
38143
38230
  this.processResponse(200, res);
@@ -38172,25 +38259,25 @@
38172
38259
  }, {
38173
38260
  key: "initializeCallbacks",
38174
38261
  value: function initializeCallbacks() {
38175
- var _this4 = this;
38262
+ var _this5 = this;
38176
38263
 
38177
38264
  Object.keys(this.methodToCallbackMapping).forEach(function (methodName) {
38178
- if (_this4.methodToCallbackMapping.hasOwnProperty(methodName)) {
38179
- _this4.on(methodName, function () {});
38265
+ if (_this5.methodToCallbackMapping.hasOwnProperty(methodName)) {
38266
+ _this5.on(methodName, function () {});
38180
38267
  }
38181
38268
  });
38182
38269
  }
38183
38270
  }, {
38184
38271
  key: "registerCallbacks",
38185
38272
  value: function registerCallbacks(calledFromLoad) {
38186
- var _this5 = this;
38273
+ var _this6 = this;
38187
38274
 
38188
38275
  if (!calledFromLoad) {
38189
38276
  Object.keys(this.methodToCallbackMapping).forEach(function (methodName) {
38190
- if (_this5.methodToCallbackMapping.hasOwnProperty(methodName)) {
38277
+ if (_this6.methodToCallbackMapping.hasOwnProperty(methodName)) {
38191
38278
  if (window.rudderanalytics) {
38192
- if (typeof window.rudderanalytics[_this5.methodToCallbackMapping[methodName]] === "function") {
38193
- _this5.clientSuppliedCallbacks[methodName] = window.rudderanalytics[_this5.methodToCallbackMapping[methodName]];
38279
+ if (typeof window.rudderanalytics[_this6.methodToCallbackMapping[methodName]] === "function") {
38280
+ _this6.clientSuppliedCallbacks[methodName] = window.rudderanalytics[_this6.methodToCallbackMapping[methodName]];
38194
38281
  }
38195
38282
  } // let callback =
38196
38283
  // ? typeof window.rudderanalytics[
@@ -38207,10 +38294,10 @@
38207
38294
  }
38208
38295
 
38209
38296
  Object.keys(this.clientSuppliedCallbacks).forEach(function (methodName) {
38210
- if (_this5.clientSuppliedCallbacks.hasOwnProperty(methodName)) {
38211
- logger.debug("registerCallbacks", methodName, _this5.clientSuppliedCallbacks[methodName]);
38297
+ if (_this6.clientSuppliedCallbacks.hasOwnProperty(methodName)) {
38298
+ logger.debug("registerCallbacks", methodName, _this6.clientSuppliedCallbacks[methodName]);
38212
38299
 
38213
- _this5.on(methodName, _this5.clientSuppliedCallbacks[methodName]);
38300
+ _this6.on(methodName, _this6.clientSuppliedCallbacks[methodName]);
38214
38301
  }
38215
38302
  });
38216
38303
  }