@microsoft/applicationinsights-clickanalytics-js 2.7.1-nightly.202110-05 → 2.7.1-nightly.202110-14

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 (76) hide show
  1. package/browser/{ai.clck.2.7.1-nightly.202110-05.cjs.js → ai.clck.2.7.1-nightly.202110-14.cjs.js} +110 -109
  2. package/browser/ai.clck.2.7.1-nightly.202110-14.cjs.js.map +1 -0
  3. package/browser/ai.clck.2.7.1-nightly.202110-14.cjs.min.js +6 -0
  4. package/browser/ai.clck.2.7.1-nightly.202110-14.cjs.min.js.map +1 -0
  5. package/browser/{ai.clck.2.7.1-nightly.202110-05.gbl.js → ai.clck.2.7.1-nightly.202110-14.gbl.js} +110 -109
  6. package/browser/ai.clck.2.7.1-nightly.202110-14.gbl.js.map +1 -0
  7. package/browser/ai.clck.2.7.1-nightly.202110-14.gbl.min.js +6 -0
  8. package/browser/ai.clck.2.7.1-nightly.202110-14.gbl.min.js.map +1 -0
  9. package/browser/ai.clck.2.7.1-nightly.202110-14.integrity.json +66 -0
  10. package/browser/{ai.clck.2.7.1-nightly.202110-05.js → ai.clck.2.7.1-nightly.202110-14.js} +110 -109
  11. package/browser/ai.clck.2.7.1-nightly.202110-14.js.map +1 -0
  12. package/browser/ai.clck.2.7.1-nightly.202110-14.min.js +6 -0
  13. package/browser/ai.clck.2.7.1-nightly.202110-14.min.js.map +1 -0
  14. package/browser/ai.clck.2.cjs.js +109 -108
  15. package/browser/ai.clck.2.cjs.js.map +1 -1
  16. package/browser/ai.clck.2.cjs.min.js +2 -2
  17. package/browser/ai.clck.2.cjs.min.js.map +1 -1
  18. package/browser/ai.clck.2.gbl.js +109 -108
  19. package/browser/ai.clck.2.gbl.js.map +1 -1
  20. package/browser/ai.clck.2.gbl.min.js +2 -2
  21. package/browser/ai.clck.2.gbl.min.js.map +1 -1
  22. package/browser/ai.clck.2.js +109 -108
  23. package/browser/ai.clck.2.js.map +1 -1
  24. package/browser/ai.clck.2.min.js +2 -2
  25. package/browser/ai.clck.2.min.js.map +1 -1
  26. package/dist/applicationinsights-clickanalytics-js.d.ts +1 -1
  27. package/dist/applicationinsights-clickanalytics-js.js +109 -108
  28. package/dist/applicationinsights-clickanalytics-js.js.map +1 -1
  29. package/dist/applicationinsights-clickanalytics-js.min.js +2 -2
  30. package/dist/applicationinsights-clickanalytics-js.min.js.map +1 -1
  31. package/dist/applicationinsights-clickanalytics-js.rollup.d.ts +1 -1
  32. package/dist-esm/Behaviours.js +1 -1
  33. package/dist-esm/ClickAnalyticsPlugin.js +5 -5
  34. package/dist-esm/ClickAnalyticsPlugin.js.map +1 -1
  35. package/dist-esm/DataCollector.js +16 -16
  36. package/dist-esm/DataCollector.js.map +1 -1
  37. package/dist-esm/Enums.js +10 -10
  38. package/dist-esm/Enums.js.map +1 -1
  39. package/dist-esm/Interfaces/Datamodel.js +1 -1
  40. package/dist-esm/applicationinsights-clickanalytics-js.js +1 -1
  41. package/dist-esm/common/Utils.js +25 -25
  42. package/dist-esm/common/Utils.js.map +1 -1
  43. package/dist-esm/events/PageAction.js +24 -24
  44. package/dist-esm/events/PageAction.js.map +1 -1
  45. package/dist-esm/events/WebEvent.js +8 -8
  46. package/dist-esm/events/WebEvent.js.map +1 -1
  47. package/dist-esm/handlers/AutoCaptureHandler.js +8 -8
  48. package/dist-esm/handlers/AutoCaptureHandler.js.map +1 -1
  49. package/dist-esm/handlers/DomContentHandler.js +26 -26
  50. package/dist-esm/handlers/DomContentHandler.js.map +1 -1
  51. package/package.json +4 -4
  52. package/src/ClickAnalyticsPlugin.ts +5 -5
  53. package/src/DataCollector.ts +16 -16
  54. package/src/Enums.ts +9 -9
  55. package/src/common/Utils.ts +25 -25
  56. package/src/events/PageAction.ts +25 -25
  57. package/src/events/WebEvent.ts +9 -9
  58. package/src/handlers/AutoCaptureHandler.ts +9 -9
  59. package/src/handlers/DomContentHandler.ts +26 -26
  60. package/types/ClickAnalyticsPlugin.d.ts +2 -2
  61. package/types/DataCollector.d.ts +1 -1
  62. package/types/common/Utils.d.ts +2 -1
  63. package/types/events/PageAction.d.ts +2 -2
  64. package/types/events/WebEvent.d.ts +3 -3
  65. package/types/handlers/AutoCaptureHandler.d.ts +2 -2
  66. package/types/handlers/DomContentHandler.d.ts +1 -1
  67. package/browser/ai.clck.2.7.1-nightly.202110-05.cjs.js.map +0 -1
  68. package/browser/ai.clck.2.7.1-nightly.202110-05.cjs.min.js +0 -6
  69. package/browser/ai.clck.2.7.1-nightly.202110-05.cjs.min.js.map +0 -1
  70. package/browser/ai.clck.2.7.1-nightly.202110-05.gbl.js.map +0 -1
  71. package/browser/ai.clck.2.7.1-nightly.202110-05.gbl.min.js +0 -6
  72. package/browser/ai.clck.2.7.1-nightly.202110-05.gbl.min.js.map +0 -1
  73. package/browser/ai.clck.2.7.1-nightly.202110-05.integrity.json +0 -66
  74. package/browser/ai.clck.2.7.1-nightly.202110-05.js.map +0 -1
  75. package/browser/ai.clck.2.7.1-nightly.202110-05.min.js +0 -6
  76. package/browser/ai.clck.2.7.1-nightly.202110-05.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Click Analytics, 2.7.1-nightly.202110-05
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.7.1-nightly.202110-14
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -46,7 +46,7 @@ function objCreateFn(obj) {
46
46
  }
47
47
  var type = typeof obj;
48
48
  if (type !== strShimObject && type !== strShimFunction) {
49
- throwTypeError('Object prototype may only be an Object:' + obj);
49
+ throwTypeError("Object prototype may only be an Object:" + obj);
50
50
  }
51
51
  function tmpFunc() { }
52
52
  tmpFunc[strShimPrototype] = obj;
@@ -415,7 +415,8 @@ var _InternalMessageId = {
415
415
  CannotParseAiBlobValue: 101,
416
416
  InvalidContentBlob: 102,
417
417
  TrackPageActionEventFailed: 103,
418
- FailedAddingCustomDefinedRequestContext: 104
418
+ FailedAddingCustomDefinedRequestContext: 104,
419
+ InMemoryStorageBufferFull: 105
419
420
  };
420
421
 
421
422
  var strOnPrefix = "on";
@@ -641,7 +642,7 @@ function safeGetLogger(core, config) {
641
642
  }
642
643
  var DiagnosticLogger = /** @class */ (function () {
643
644
  function DiagnosticLogger(config) {
644
- this.identifier = 'DiagnosticLogger';
645
+ this.identifier = "DiagnosticLogger";
645
646
  this.queue = [];
646
647
  var _messageCount = 0;
647
648
  var _messageLogged = {};
@@ -649,10 +650,10 @@ var DiagnosticLogger = /** @class */ (function () {
649
650
  if (isNullOrUndefined(config)) {
650
651
  config = {};
651
652
  }
652
- _self.consoleLoggingLevel = function () { return _getConfigValue('loggingLevelConsole', 0); };
653
- _self.telemetryLoggingLevel = function () { return _getConfigValue('loggingLevelTelemetry', 1); };
654
- _self.maxInternalMessageLimit = function () { return _getConfigValue('maxMessageLimit', 25); };
655
- _self.enableDebugExceptions = function () { return _getConfigValue('enableDebugExceptions', false); };
653
+ _self.consoleLoggingLevel = function () { return _getConfigValue("loggingLevelConsole", 0); };
654
+ _self.telemetryLoggingLevel = function () { return _getConfigValue("loggingLevelTelemetry", 1); };
655
+ _self.maxInternalMessageLimit = function () { return _getConfigValue("maxMessageLimit", 25); };
656
+ _self.enableDebugExceptions = function () { return _getConfigValue("enableDebugExceptions", false); };
656
657
  _self.throwInternal = function (severity, msgId, msg, properties, isUserAct) {
657
658
  if (isUserAct === void 0) { isUserAct = false; }
658
659
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
@@ -681,9 +682,9 @@ var DiagnosticLogger = /** @class */ (function () {
681
682
  _self.warnToConsole = function (message) {
682
683
  var theConsole = getConsole();
683
684
  if (!!theConsole) {
684
- var logFunc = 'log';
685
+ var logFunc = "log";
685
686
  if (theConsole.warn) {
686
- logFunc = 'warn';
687
+ logFunc = "warn";
687
688
  }
688
689
  if (isFunction(theConsole[logFunc])) {
689
690
  theConsole[logFunc](message);
@@ -745,7 +746,7 @@ var PerfEvent = /** @class */ (function () {
745
746
  _self.isChildEvt = function () { return false; };
746
747
  if (isFunction(payloadDetails)) {
747
748
  var theDetails_1;
748
- accessorDefined = objDefineAccessors(_self, 'payload', function () {
749
+ accessorDefined = objDefineAccessors(_self, "payload", function () {
749
750
  if (!theDetails_1 && isFunction(payloadDetails)) {
750
751
  theDetails_1 = payloadDetails();
751
752
  payloadDetails = null;
@@ -1097,17 +1098,17 @@ var strNotSpecified = "not_specified";
1097
1098
 
1098
1099
  var PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
1099
1100
 
1100
- var Prototype = 'prototype';
1101
- var DEFAULT_DONOT_TRACK_TAG = 'ai-dnt';
1102
- var DEFAULT_AI_BLOB_ATTRIBUTE_TAG = 'ai-blob';
1103
- var DEFAULT_DATA_PREFIX = 'data-';
1101
+ var Prototype = "prototype";
1102
+ var DEFAULT_DONOT_TRACK_TAG = "ai-dnt";
1103
+ var DEFAULT_AI_BLOB_ATTRIBUTE_TAG = "ai-blob";
1104
+ var DEFAULT_DATA_PREFIX = "data-";
1104
1105
  var _ExtendedInternalMessageId = __assignFn(__assignFn({}, _InternalMessageId), { CannotParseAiBlobValue: 101, InvalidContentBlob: 102, TrackPageActionEventFailed: 103 });
1105
1106
  function removeNonObjectsAndInvalidElements(overrideConfig, attributeNamesExpectedObjects) {
1106
1107
  removeInvalidElements(overrideConfig);
1107
1108
  for (var i in attributeNamesExpectedObjects) {
1108
1109
  if (attributeNamesExpectedObjects.hasOwnProperty(i)) {
1109
1110
  var objectName = attributeNamesExpectedObjects[i];
1110
- if (typeof overrideConfig[objectName] === 'object') {
1111
+ if (typeof overrideConfig[objectName] === "object") {
1111
1112
  removeInvalidElements(overrideConfig[objectName]);
1112
1113
  }
1113
1114
  else {
@@ -1119,20 +1120,20 @@ function removeNonObjectsAndInvalidElements(overrideConfig, attributeNamesExpect
1119
1120
  function removeInvalidElements(object) {
1120
1121
  for (var property in object) {
1121
1122
  if (!isValueAssigned(object[property]) ||
1122
- (JSON.stringify(object[property]) === '{}' && (property !== 'callback'))) {
1123
+ (JSON.stringify(object[property]) === "{}" && (property !== "callback"))) {
1123
1124
  delete object[property];
1124
1125
  }
1125
1126
  }
1126
1127
  }
1127
1128
  function isValueAssigned(value) {
1128
- return !(isNullOrUndefined(value) || value === '');
1129
+ return !(isNullOrUndefined(value) || value === "");
1129
1130
  }
1130
1131
  function isRightClick(evt) {
1131
1132
  try {
1132
- if ('which' in evt) {
1133
+ if ("which" in evt) {
1133
1134
  return (evt.which === 3);
1134
1135
  }
1135
- else if ('button' in evt) {
1136
+ else if ("button" in evt) {
1136
1137
  return (evt.button === 2);
1137
1138
  }
1138
1139
  }
@@ -1141,10 +1142,10 @@ function isRightClick(evt) {
1141
1142
  }
1142
1143
  function isLeftClick(evt) {
1143
1144
  try {
1144
- if ('which' in evt) {
1145
+ if ("which" in evt) {
1145
1146
  return (evt.which === 1);
1146
1147
  }
1147
- else if ('button' in evt) {
1148
+ else if ("button" in evt) {
1148
1149
  return (evt.button === 1);
1149
1150
  }
1150
1151
  }
@@ -1153,10 +1154,10 @@ function isLeftClick(evt) {
1153
1154
  }
1154
1155
  function isMiddleClick(evt) {
1155
1156
  try {
1156
- if ('which' in evt) {
1157
+ if ("which" in evt) {
1157
1158
  return (evt.which === 2);
1158
1159
  }
1159
- else if ('button' in evt) {
1160
+ else if ("button" in evt) {
1160
1161
  return (evt.button === 4);
1161
1162
  }
1162
1163
  }
@@ -1165,7 +1166,7 @@ function isMiddleClick(evt) {
1165
1166
  }
1166
1167
  function isKeyboardEnter(evt) {
1167
1168
  try {
1168
- if ('keyCode' in evt) {
1169
+ if ("keyCode" in evt) {
1169
1170
  return (evt.keyCode === 13);
1170
1171
  }
1171
1172
  }
@@ -1174,7 +1175,7 @@ function isKeyboardEnter(evt) {
1174
1175
  }
1175
1176
  function isKeyboardSpace(evt) {
1176
1177
  try {
1177
- if ('keyCode' in evt) {
1178
+ if ("keyCode" in evt) {
1178
1179
  return (evt.keyCode === 32);
1179
1180
  }
1180
1181
  }
@@ -1208,7 +1209,7 @@ function walkUpDomChainWithElementValidation(el, validationMethod, validationMet
1208
1209
  }
1209
1210
  }
1210
1211
  function isElementAnAnchor(element) {
1211
- return element.nodeName === 'A';
1212
+ return element.nodeName === "A";
1212
1213
  }
1213
1214
  function findClosestAnchor(element) {
1214
1215
  return walkUpDomChainWithElementValidation(element, isElementAnAnchor);
@@ -1222,7 +1223,7 @@ function extractFieldFromObject(obj, fieldName) {
1222
1223
  return fieldValue;
1223
1224
  }
1224
1225
  function bracketIt(str) {
1225
- return '[' + str + ']';
1226
+ return "[" + str + "]";
1226
1227
  }
1227
1228
  function extend(obj, obj2, obj3, obj4, obj5) {
1228
1229
  var extended = {};
@@ -1231,14 +1232,14 @@ function extend(obj, obj2, obj3, obj4, obj5) {
1231
1232
  var length = arguments.length;
1232
1233
  var objProto = Object[Prototype];
1233
1234
  var theArgs = arguments;
1234
- if (objProto.toString.call(theArgs[0]) === '[object Boolean]') {
1235
+ if (objProto.toString.call(theArgs[0]) === "[object Boolean]") {
1235
1236
  deep = theArgs[0];
1236
1237
  i++;
1237
1238
  }
1238
1239
  var merge = function (obj) {
1239
1240
  for (var prop in obj) {
1240
1241
  if (hasOwnProperty(obj, prop)) {
1241
- if (deep && objProto.toString.call(obj[prop]) === '[object Object]') {
1242
+ if (deep && objProto.toString.call(obj[prop]) === "[object Object]") {
1242
1243
  extended[prop] = extend(true, extended[prop], obj[prop]);
1243
1244
  }
1244
1245
  else {
@@ -1264,10 +1265,10 @@ function mergeConfig(overrideConfig) {
1264
1265
  },
1265
1266
  pageTags: {},
1266
1267
  coreData: {
1267
- referrerUri: hasDocument ? document.referrer : '',
1268
- requestUri: '',
1269
- pageName: '',
1270
- pageType: ''
1268
+ referrerUri: hasDocument ? document.referrer : "",
1269
+ requestUri: "",
1270
+ pageName: "",
1271
+ pageType: ""
1271
1272
  },
1272
1273
  dataTags: {
1273
1274
  useDefaultContentNameOrId: false,
@@ -1282,7 +1283,7 @@ function mergeConfig(overrideConfig) {
1282
1283
  };
1283
1284
  var attributesThatAreObjectsInConfig = [];
1284
1285
  for (var attribute in defaultConfig) {
1285
- if (typeof defaultConfig[attribute] === 'object') {
1286
+ if (typeof defaultConfig[attribute] === "object") {
1286
1287
  attributesThatAreObjectsInConfig.push(attribute);
1287
1288
  }
1288
1289
  }
@@ -1328,19 +1329,19 @@ function getImageHref(element) {
1328
1329
  }
1329
1330
  }
1330
1331
  }
1331
- return '';
1332
+ return "";
1332
1333
  }
1333
1334
  function getClickTarget(element) {
1334
- var clickTarget = '';
1335
+ var clickTarget = "";
1335
1336
  switch (element.tagName) {
1336
- case 'A':
1337
- case 'AREA':
1338
- clickTarget = element.href || '';
1337
+ case "A":
1338
+ case "AREA":
1339
+ clickTarget = element.href || "";
1339
1340
  break;
1340
- case 'IMG':
1341
+ case "IMG":
1341
1342
  clickTarget = getImageHref(element);
1342
1343
  break;
1343
- case 'INPUT':
1344
+ case "INPUT":
1344
1345
  var type = element.type;
1345
1346
  if (type && (clickCaptureInputTypes$1[type.toUpperCase()])) {
1346
1347
  var loc = getLocation() || {};
@@ -1374,13 +1375,13 @@ function sanitizeUrl(config, location) {
1374
1375
  if (!location) {
1375
1376
  return null;
1376
1377
  }
1377
- var url = location.protocol + '//' + (location.hostname || location.host) +
1378
- (isValueAssigned(location.port) ? ':' + location.port : '') +
1378
+ var url = location.protocol + "//" + (location.hostname || location.host) +
1379
+ (isValueAssigned(location.port) ? ":" + location.port : "") +
1379
1380
  location.pathname;
1380
1381
  return url;
1381
1382
  }
1382
1383
  function getUri(config, location) {
1383
- if (config.coreData && config.coreData.requestUri && config.coreData.requestUri !== '') {
1384
+ if (config.coreData && config.coreData.requestUri && config.coreData.requestUri !== "") {
1384
1385
  return config.coreData.requestUri;
1385
1386
  }
1386
1387
  return sanitizeUrl(config, location);
@@ -1407,8 +1408,8 @@ var WebEvent = /** @class */ (function () {
1407
1408
  WebEvent.prototype.setCommonProperties = function (event, overrideValues) {
1408
1409
  this.setBasicProperties(event, overrideValues);
1409
1410
  this._setPageTags(event, overrideValues);
1410
- this._pageTypeMetaTag = this._getMetaData(this._metaTags, this._config.coreData, 'pageType');
1411
- this._behaviorMetaTag = this._getMetaData(this._metaTags, this._config.coreData, 'behavior');
1411
+ this._pageTypeMetaTag = this._getMetaData(this._metaTags, this._config.coreData, "pageType");
1412
+ this._behaviorMetaTag = this._getMetaData(this._metaTags, this._config.coreData, "behavior");
1412
1413
  if (isValueAssigned(overrideValues.pageType)) {
1413
1414
  event.pageType = overrideValues.pageType;
1414
1415
  }
@@ -1426,13 +1427,13 @@ var WebEvent = /** @class */ (function () {
1426
1427
  if (this._metaTags) {
1427
1428
  this._pageTags.metaTags = {};
1428
1429
  for (var metaTag in this._metaTags) {
1429
- if (metaTag != 'behavior' && metaTag != 'market' && metaTag != 'pageType') {
1430
+ if (metaTag != "behavior" && metaTag != "market" && metaTag != "pageType") {
1430
1431
  this._pageTags.metaTags[metaTag] = this._metaTags[metaTag];
1431
1432
  }
1432
1433
  }
1433
1434
  }
1434
1435
  event.properties = event.properties || {};
1435
- event.properties['pageTags'] = this._pageTags;
1436
+ event.properties["pageTags"] = this._pageTags;
1436
1437
  };
1437
1438
  WebEvent.prototype._getBehavior = function (overrideValues) {
1438
1439
  var behavior;
@@ -1467,28 +1468,28 @@ var PageAction = /** @class */ (function (_super) {
1467
1468
  PageAction.prototype.trackPageAction = function (pageActionEvent, properties) {
1468
1469
  var _this = this;
1469
1470
  var ext = {};
1470
- ext['web'] = {};
1471
+ ext["web"] = {};
1471
1472
  var event = {
1472
1473
  name: "Microsoft.ApplicationInsights.{0}.Event",
1473
- baseType: 'EventData',
1474
+ baseType: "EventData",
1474
1475
  ext: ext,
1475
1476
  data: {},
1476
1477
  baseData: {}
1477
1478
  };
1478
- this._populateEventDataIfPresent(event.baseData, 'name', pageActionEvent.name);
1479
- this._populateEventDataIfPresent(event.data, 'baseTypeSource', 'ClickEvent');
1480
- this._populateEventDataIfPresent(event.data, 'uri', pageActionEvent.uri);
1481
- this._populateEventDataIfPresent(event.data, 'pageType', pageActionEvent.pageType);
1482
- this._populateEventDataIfPresent(event.data, 'properties', pageActionEvent.properties);
1483
- this._populateEventDataIfPresent(event.data, 'actionType', pageActionEvent.actionType);
1484
- this._populateEventDataIfPresent(event.data, 'behavior', pageActionEvent.behavior);
1485
- this._populateEventDataIfPresent(event.data, 'clickCoordinates', pageActionEvent.clickCoordinates);
1486
- this._populateEventDataIfPresent(event.data, 'content', pageActionEvent.content);
1487
- this._populateEventDataIfPresent(event.data, 'targetUri', pageActionEvent.targetUri);
1488
- this._populateEventDataIfPresent(event.data, 'timeToAction', pageActionEvent.timeToAction);
1489
- this._populateEventDataIfPresent(event.data, 'refUri', pageActionEvent.refUri);
1490
- this._populateEventDataIfPresent(event.data, 'pageName', pageActionEvent.pageName);
1491
- this._populateEventDataIfPresent(event.data, 'parentId', pageActionEvent.parentId);
1479
+ this._populateEventDataIfPresent(event.baseData, "name", pageActionEvent.name);
1480
+ this._populateEventDataIfPresent(event.data, "baseTypeSource", "ClickEvent");
1481
+ this._populateEventDataIfPresent(event.data, "uri", pageActionEvent.uri);
1482
+ this._populateEventDataIfPresent(event.data, "pageType", pageActionEvent.pageType);
1483
+ this._populateEventDataIfPresent(event.data, "properties", pageActionEvent.properties);
1484
+ this._populateEventDataIfPresent(event.data, "actionType", pageActionEvent.actionType);
1485
+ this._populateEventDataIfPresent(event.data, "behavior", pageActionEvent.behavior);
1486
+ this._populateEventDataIfPresent(event.data, "clickCoordinates", pageActionEvent.clickCoordinates);
1487
+ this._populateEventDataIfPresent(event.data, "content", pageActionEvent.content);
1488
+ this._populateEventDataIfPresent(event.data, "targetUri", pageActionEvent.targetUri);
1489
+ this._populateEventDataIfPresent(event.data, "timeToAction", pageActionEvent.timeToAction);
1490
+ this._populateEventDataIfPresent(event.data, "refUri", pageActionEvent.refUri);
1491
+ this._populateEventDataIfPresent(event.data, "pageName", pageActionEvent.pageName);
1492
+ this._populateEventDataIfPresent(event.data, "parentId", pageActionEvent.parentId);
1492
1493
  if (properties) {
1493
1494
  objForEachKey(properties, function (property, value) {
1494
1495
  if (!event.data[property]) {
@@ -1500,7 +1501,7 @@ var PageAction = /** @class */ (function (_super) {
1500
1501
  };
1501
1502
  PageAction.prototype.capturePageAction = function (element, overrideValues, customProperties, isRightClick) {
1502
1503
  overrideValues = !isValueAssigned(overrideValues) ? {} : overrideValues;
1503
- var pageActionEvent = { name: '' };
1504
+ var pageActionEvent = { name: "" };
1504
1505
  var pageActionProperties = isValueAssigned(customProperties) ? customProperties : {};
1505
1506
  this.setCommonProperties(pageActionEvent, overrideValues);
1506
1507
  pageActionEvent.behavior = this._getBehavior(overrideValues);
@@ -1512,7 +1513,7 @@ var PageAction = /** @class */ (function (_super) {
1512
1513
  pageActionEvent.targetUri = getClickTarget(element);
1513
1514
  elementContent = this._contentHandler.getElementContent(element);
1514
1515
  if (elementContent.bhvr && !isValueAssigned(overrideValues.behavior)) {
1515
- var currentBehavior = extractFieldFromObject(elementContent, 'bhvr');
1516
+ var currentBehavior = extractFieldFromObject(elementContent, "bhvr");
1516
1517
  pageActionEvent.behavior = this._getValidBehavior(currentBehavior);
1517
1518
  }
1518
1519
  if (!isValueAssigned(elementContent.id) && !isValueAssigned(elementContent.contentName)) {
@@ -1525,7 +1526,7 @@ var PageAction = /** @class */ (function (_super) {
1525
1526
  pageActionEvent.actionType = overrideValues.actionType;
1526
1527
  }
1527
1528
  if (isValueAssigned(overrideValues.clickCoordinateX) && isValueAssigned(overrideValues.clickCoordinateY)) {
1528
- pageActionEvent.clickCoordinates = overrideValues.clickCoordinateX + 'X' + overrideValues.clickCoordinateY;
1529
+ pageActionEvent.clickCoordinates = overrideValues.clickCoordinateX + "X" + overrideValues.clickCoordinateY;
1529
1530
  }
1530
1531
  this._sanitizePageActionEventContent(elementContent);
1531
1532
  pageActionEvent.content = bracketIt(JSON.stringify(extend(elementContent, overrideValues && overrideValues.contentTags ? overrideValues.contentTags : {})));
@@ -1573,15 +1574,15 @@ var PageAction = /** @class */ (function (_super) {
1573
1574
  }(WebEvent));
1574
1575
 
1575
1576
  var ActionType = {
1576
- CLICKLEFT: 'CL',
1577
- CLICKRIGHT: 'CR',
1578
- CLICKMIDDLE: 'CM',
1579
- SCROLL: 'S',
1580
- ZOOM: 'Z',
1581
- RESIZE: 'R',
1582
- KEYBOARDENTER: 'KE',
1583
- KEYBOARDSPACE: 'KS',
1584
- OTHER: 'O'
1577
+ CLICKLEFT: "CL",
1578
+ CLICKRIGHT: "CR",
1579
+ CLICKMIDDLE: "CM",
1580
+ SCROLL: "S",
1581
+ ZOOM: "Z",
1582
+ RESIZE: "R",
1583
+ KEYBOARDENTER: "KE",
1584
+ KEYBOARDSPACE: "KS",
1585
+ OTHER: "O"
1585
1586
  };
1586
1587
 
1587
1588
  var clickCaptureInputTypes = { BUTTON: true, CHECKBOX: true, RADIO: true, RESET: true, SUBMIT: true };
@@ -1597,13 +1598,13 @@ var AutoCaptureHandler = /** @class */ (function () {
1597
1598
  var win = getWindow();
1598
1599
  var doc = getDocument();
1599
1600
  if (win) {
1600
- var event_1 = (navigator.appVersion.indexOf('MSIE') !== -1) ? 'click' : 'mousedown';
1601
+ var event_1 = (navigator.appVersion.indexOf("MSIE") !== -1) ? "click" : "mousedown";
1601
1602
  attachEvent(win, event_1, function (evt) { _this._processClick(evt); });
1602
- attachEvent(win, 'keyup', function (evt) { _this._processClick(evt); });
1603
+ attachEvent(win, "keyup", function (evt) { _this._processClick(evt); });
1603
1604
  }
1604
1605
  else if (doc) {
1605
- attachEvent(doc, 'click', function (evt) { _this._processClick(evt); });
1606
- attachEvent(doc, 'keyup', function (evt) { _this._processClick(evt); });
1606
+ attachEvent(doc, "click", function (evt) { _this._processClick(evt); });
1607
+ attachEvent(doc, "keyup", function (evt) { _this._processClick(evt); });
1607
1608
  }
1608
1609
  };
1609
1610
  AutoCaptureHandler.prototype.capturePageAction = function (element, overrideValues, customProperties, isRightClick) {
@@ -1653,7 +1654,7 @@ var AutoCaptureHandler = /** @class */ (function () {
1653
1654
  continue;
1654
1655
  }
1655
1656
  else {
1656
- var sendEvent = tagNameUpperCased === 'INPUT' ? clickCaptureInputTypes[element.type.toUpperCase()] : true;
1657
+ var sendEvent = tagNameUpperCased === "INPUT" ? clickCaptureInputTypes[element.type.toUpperCase()] : true;
1657
1658
  if (sendEvent) {
1658
1659
  this.capturePageAction(element, overrideValues, {}, isRightClickObj);
1659
1660
  }
@@ -1675,7 +1676,7 @@ var DomContentHandler = /** @class */ (function () {
1675
1676
  var metaTags = {};
1676
1677
  if (hasDocument) {
1677
1678
  metaTags = isValueAssigned(this._config.dataTags.metaDataPrefix) ? this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent, this._config.dataTags.metaDataPrefix, false) :
1678
- this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent, '', false);
1679
+ this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent, "", false);
1679
1680
  }
1680
1681
  return metaTags;
1681
1682
  };
@@ -1720,7 +1721,7 @@ var DomContentHandler = /** @class */ (function () {
1720
1721
  if (attrib.name.indexOf(dataTagPrefix) !== 0) {
1721
1722
  continue;
1722
1723
  }
1723
- var attribName = attrib.name.replace(dataTagPrefix, '');
1724
+ var attribName = attrib.name.replace(dataTagPrefix, "");
1724
1725
  elementContent[attribName] = attrib.value;
1725
1726
  }
1726
1727
  };
@@ -1741,8 +1742,8 @@ var DomContentHandler = /** @class */ (function () {
1741
1742
  if (attrib.name.indexOf(aiBlobAttributeTag) === 0) {
1742
1743
  continue;
1743
1744
  }
1744
- var attribName = attrib.name.replace(dataTagPrefix, '');
1745
- if (elementLevelFlag && attribName === 'id')
1745
+ var attribName = attrib.name.replace(dataTagPrefix, "");
1746
+ if (elementLevelFlag && attribName === "id")
1746
1747
  continue;
1747
1748
  if (!isValueAssigned(elementContent[attribName])) {
1748
1749
  elementContent[attribName] = attrib.value;
@@ -1761,15 +1762,15 @@ var DomContentHandler = /** @class */ (function () {
1761
1762
  return elementContent;
1762
1763
  var htmlContent = this._getHtmlIdAndContentName(element);
1763
1764
  elementContent = {
1764
- id: htmlContent.id || '',
1765
- contentName: htmlContent.contentName || ''
1765
+ id: htmlContent.id || "",
1766
+ contentName: htmlContent.contentName || ""
1766
1767
  };
1767
1768
  if (isValueAssigned(parentDataTagPrefix)) {
1768
1769
  this._walkUpDomChainCaptureData(element, elementContent, dataTagPrefix, parentDataTagPrefix, aiBlobAttributeTag);
1769
1770
  }
1770
1771
  if (!elementContent.id && !elementContent.contentName) {
1771
- this._traceLogger.throwInternal(LoggingSeverity.WARNING, _ExtendedInternalMessageId.InvalidContentBlob, 'Invalid content blob. Missing required attributes (id, contentName. ' +
1772
- ' Content information will still be collected!');
1772
+ this._traceLogger.throwInternal(LoggingSeverity.WARNING, _ExtendedInternalMessageId.InvalidContentBlob, "Invalid content blob. Missing required attributes (id, contentName. " +
1773
+ " Content information will still be collected!");
1773
1774
  }
1774
1775
  return elementContent;
1775
1776
  };
@@ -1786,13 +1787,13 @@ var DomContentHandler = /** @class */ (function () {
1786
1787
  }
1787
1788
  if (this._config.dataTags.useDefaultContentNameOrId) {
1788
1789
  if (!isValueAssigned(elementContent.id)) {
1789
- elementContent.id = htmlContent.id || '';
1790
+ elementContent.id = htmlContent.id || "";
1790
1791
  }
1791
- elementContent.contentName = htmlContent.contentName || '';
1792
+ elementContent.contentName = htmlContent.contentName || "";
1792
1793
  }
1793
1794
  if (!elementContent.id && !elementContent.contentName) {
1794
- this._traceLogger.throwInternal(LoggingSeverity.WARNING, _ExtendedInternalMessageId.InvalidContentBlob, 'Invalid content blob. Missing required attributes (id, contentName. ' +
1795
- ' Content information will still be collected!');
1795
+ this._traceLogger.throwInternal(LoggingSeverity.WARNING, _ExtendedInternalMessageId.InvalidContentBlob, "Invalid content blob. Missing required attributes (id, contentName. " +
1796
+ " Content information will still be collected!");
1796
1797
  }
1797
1798
  return elementContent;
1798
1799
  };
@@ -1800,12 +1801,12 @@ var DomContentHandler = /** @class */ (function () {
1800
1801
  var metaElements;
1801
1802
  var metaData = {};
1802
1803
  if (hasDocument) {
1803
- metaElements = document.querySelectorAll('meta');
1804
+ metaElements = document.querySelectorAll("meta");
1804
1805
  for (var i = 0; i < metaElements.length; i++) {
1805
1806
  var meta = metaElements[i];
1806
1807
  if (meta.name) {
1807
1808
  if (captureAllMetaDataContent || meta.name.indexOf(prefix) === 0) {
1808
- var name_1 = removePrefix ? meta.name.replace(prefix, '') : meta.name;
1809
+ var name_1 = removePrefix ? meta.name.replace(prefix, "") : meta.name;
1809
1810
  metaData[name_1] = meta.content;
1810
1811
  }
1811
1812
  }
@@ -1815,16 +1816,16 @@ var DomContentHandler = /** @class */ (function () {
1815
1816
  };
1816
1817
  DomContentHandler.prototype._getDefaultContentName = function (element, useDefaultContentName) {
1817
1818
  if (useDefaultContentName === false || !element.tagName) {
1818
- return '';
1819
+ return "";
1819
1820
  }
1820
1821
  var doc = getDocument() || {};
1821
1822
  var contentName;
1822
1823
  switch (element.tagName) {
1823
- case 'A':
1824
+ case "A":
1824
1825
  contentName = doc.all ? element.innerText || element.innerHTML : element.text || element.innerHTML;
1825
1826
  break;
1826
- case 'IMG':
1827
- case 'AREA':
1827
+ case "IMG":
1828
+ case "AREA":
1828
1829
  contentName = element.alt;
1829
1830
  break;
1830
1831
  default:
@@ -1855,14 +1856,14 @@ var DomContentHandler = /** @class */ (function () {
1855
1856
  var defaultContentName = this._getDefaultContentName(element, this._config.dataTags.useDefaultContentNameOrId);
1856
1857
  htmlContent = {
1857
1858
  id: element.id,
1858
- contentName: customizedContentName || defaultContentName || element.getAttribute('alt')
1859
+ contentName: customizedContentName || defaultContentName || element.getAttribute("alt")
1859
1860
  };
1860
1861
  }
1861
1862
  return htmlContent;
1862
1863
  };
1863
1864
  DomContentHandler.prototype._getParentDetails = function (element, elementContent, dataTagPrefix, aiBlobAttributeTag) {
1864
- var parentId = elementContent['parentid'];
1865
- var parentName = elementContent['parentname'];
1865
+ var parentId = elementContent["parentid"];
1866
+ var parentName = elementContent["parentname"];
1866
1867
  var parentInfo = {};
1867
1868
  if (parentId || parentName || !element) {
1868
1869
  return parentInfo;
@@ -1891,12 +1892,12 @@ var DomContentHandler = /** @class */ (function () {
1891
1892
  }
1892
1893
  }
1893
1894
  if (parentId) {
1894
- parentInfo['parentid'] = parentId;
1895
+ parentInfo["parentid"] = parentId;
1895
1896
  }
1896
1897
  else {
1897
1898
  var htmlContent = this._getHtmlIdAndContentName(element.parentElement);
1898
- parentInfo['parentid'] = htmlContent.id;
1899
- parentInfo['parentname'] = htmlContent.contentName;
1899
+ parentInfo["parentid"] = htmlContent.id;
1900
+ parentInfo["parentname"] = htmlContent.contentName;
1900
1901
  }
1901
1902
  return parentInfo;
1902
1903
  };
@@ -1907,7 +1908,7 @@ var ClickAnalyticsPlugin = /** @class */ (function (_super) {
1907
1908
  __extendsFn(ClickAnalyticsPlugin, _super);
1908
1909
  function ClickAnalyticsPlugin() {
1909
1910
  var _this = _super !== null && _super.apply(this, arguments) || this;
1910
- _this.identifier = 'ClickAnalyticsPlugin';
1911
+ _this.identifier = "ClickAnalyticsPlugin";
1911
1912
  _this.priority = 181;
1912
1913
  return _this;
1913
1914
  }
@@ -1948,7 +1949,7 @@ var ClickAnalyticsPlugin = /** @class */ (function (_super) {
1948
1949
  this.diagLog().throwInternal(LoggingSeverity.CRITICAL, _ExtendedInternalMessageId.TrackPageActionEventFailed, "trackPageAction failed, page action event will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
1949
1950
  }
1950
1951
  };
1951
- ClickAnalyticsPlugin.Version = "2.7.1-nightly.202110-05";
1952
+ ClickAnalyticsPlugin.Version = "2.7.1-nightly.202110-14";
1952
1953
  return ClickAnalyticsPlugin;
1953
1954
  }(BaseTelemetryPlugin));
1954
1955
 
@@ -1956,4 +1957,4 @@ exports.BehaviorEnumValidator = BehaviorEnumValidator;
1956
1957
  exports.BehaviorMapValidator = BehaviorMapValidator;
1957
1958
  exports.BehaviorValueValidator = BehaviorValueValidator;
1958
1959
  exports.ClickAnalyticsPlugin = ClickAnalyticsPlugin;
1959
- //# sourceMappingURL=ai.clck.2.7.1-nightly.202110-05.cjs.js.map
1960
+ //# sourceMappingURL=ai.clck.2.7.1-nightly.202110-14.cjs.js.map