@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
- * Microsoft.ApplicationInsights, 2.7.1-nightly.202110-05
2
+ * Microsoft.ApplicationInsights, 2.7.1-nightly.202110-14
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -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
  (function (global, factory) {
@@ -48,7 +48,7 @@
48
48
  }
49
49
  var type = typeof obj;
50
50
  if (type !== strShimObject && type !== strShimFunction) {
51
- throwTypeError('Object prototype may only be an Object:' + obj);
51
+ throwTypeError("Object prototype may only be an Object:" + obj);
52
52
  }
53
53
  function tmpFunc() { }
54
54
  tmpFunc[strShimPrototype] = obj;
@@ -417,7 +417,8 @@
417
417
  CannotParseAiBlobValue: 101,
418
418
  InvalidContentBlob: 102,
419
419
  TrackPageActionEventFailed: 103,
420
- FailedAddingCustomDefinedRequestContext: 104
420
+ FailedAddingCustomDefinedRequestContext: 104,
421
+ InMemoryStorageBufferFull: 105
421
422
  };
422
423
 
423
424
  var strOnPrefix = "on";
@@ -643,7 +644,7 @@
643
644
  }
644
645
  var DiagnosticLogger = /** @class */ (function () {
645
646
  function DiagnosticLogger(config) {
646
- this.identifier = 'DiagnosticLogger';
647
+ this.identifier = "DiagnosticLogger";
647
648
  this.queue = [];
648
649
  var _messageCount = 0;
649
650
  var _messageLogged = {};
@@ -651,10 +652,10 @@
651
652
  if (isNullOrUndefined(config)) {
652
653
  config = {};
653
654
  }
654
- _self.consoleLoggingLevel = function () { return _getConfigValue('loggingLevelConsole', 0); };
655
- _self.telemetryLoggingLevel = function () { return _getConfigValue('loggingLevelTelemetry', 1); };
656
- _self.maxInternalMessageLimit = function () { return _getConfigValue('maxMessageLimit', 25); };
657
- _self.enableDebugExceptions = function () { return _getConfigValue('enableDebugExceptions', false); };
655
+ _self.consoleLoggingLevel = function () { return _getConfigValue("loggingLevelConsole", 0); };
656
+ _self.telemetryLoggingLevel = function () { return _getConfigValue("loggingLevelTelemetry", 1); };
657
+ _self.maxInternalMessageLimit = function () { return _getConfigValue("maxMessageLimit", 25); };
658
+ _self.enableDebugExceptions = function () { return _getConfigValue("enableDebugExceptions", false); };
658
659
  _self.throwInternal = function (severity, msgId, msg, properties, isUserAct) {
659
660
  if (isUserAct === void 0) { isUserAct = false; }
660
661
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
@@ -683,9 +684,9 @@
683
684
  _self.warnToConsole = function (message) {
684
685
  var theConsole = getConsole();
685
686
  if (!!theConsole) {
686
- var logFunc = 'log';
687
+ var logFunc = "log";
687
688
  if (theConsole.warn) {
688
- logFunc = 'warn';
689
+ logFunc = "warn";
689
690
  }
690
691
  if (isFunction(theConsole[logFunc])) {
691
692
  theConsole[logFunc](message);
@@ -747,7 +748,7 @@
747
748
  _self.isChildEvt = function () { return false; };
748
749
  if (isFunction(payloadDetails)) {
749
750
  var theDetails_1;
750
- accessorDefined = objDefineAccessors(_self, 'payload', function () {
751
+ accessorDefined = objDefineAccessors(_self, "payload", function () {
751
752
  if (!theDetails_1 && isFunction(payloadDetails)) {
752
753
  theDetails_1 = payloadDetails();
753
754
  payloadDetails = null;
@@ -1099,17 +1100,17 @@
1099
1100
 
1100
1101
  var PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
1101
1102
 
1102
- var Prototype = 'prototype';
1103
- var DEFAULT_DONOT_TRACK_TAG = 'ai-dnt';
1104
- var DEFAULT_AI_BLOB_ATTRIBUTE_TAG = 'ai-blob';
1105
- var DEFAULT_DATA_PREFIX = 'data-';
1103
+ var Prototype = "prototype";
1104
+ var DEFAULT_DONOT_TRACK_TAG = "ai-dnt";
1105
+ var DEFAULT_AI_BLOB_ATTRIBUTE_TAG = "ai-blob";
1106
+ var DEFAULT_DATA_PREFIX = "data-";
1106
1107
  var _ExtendedInternalMessageId = __assignFn(__assignFn({}, _InternalMessageId), { CannotParseAiBlobValue: 101, InvalidContentBlob: 102, TrackPageActionEventFailed: 103 });
1107
1108
  function removeNonObjectsAndInvalidElements(overrideConfig, attributeNamesExpectedObjects) {
1108
1109
  removeInvalidElements(overrideConfig);
1109
1110
  for (var i in attributeNamesExpectedObjects) {
1110
1111
  if (attributeNamesExpectedObjects.hasOwnProperty(i)) {
1111
1112
  var objectName = attributeNamesExpectedObjects[i];
1112
- if (typeof overrideConfig[objectName] === 'object') {
1113
+ if (typeof overrideConfig[objectName] === "object") {
1113
1114
  removeInvalidElements(overrideConfig[objectName]);
1114
1115
  }
1115
1116
  else {
@@ -1121,20 +1122,20 @@
1121
1122
  function removeInvalidElements(object) {
1122
1123
  for (var property in object) {
1123
1124
  if (!isValueAssigned(object[property]) ||
1124
- (JSON.stringify(object[property]) === '{}' && (property !== 'callback'))) {
1125
+ (JSON.stringify(object[property]) === "{}" && (property !== "callback"))) {
1125
1126
  delete object[property];
1126
1127
  }
1127
1128
  }
1128
1129
  }
1129
1130
  function isValueAssigned(value) {
1130
- return !(isNullOrUndefined(value) || value === '');
1131
+ return !(isNullOrUndefined(value) || value === "");
1131
1132
  }
1132
1133
  function isRightClick(evt) {
1133
1134
  try {
1134
- if ('which' in evt) {
1135
+ if ("which" in evt) {
1135
1136
  return (evt.which === 3);
1136
1137
  }
1137
- else if ('button' in evt) {
1138
+ else if ("button" in evt) {
1138
1139
  return (evt.button === 2);
1139
1140
  }
1140
1141
  }
@@ -1143,10 +1144,10 @@
1143
1144
  }
1144
1145
  function isLeftClick(evt) {
1145
1146
  try {
1146
- if ('which' in evt) {
1147
+ if ("which" in evt) {
1147
1148
  return (evt.which === 1);
1148
1149
  }
1149
- else if ('button' in evt) {
1150
+ else if ("button" in evt) {
1150
1151
  return (evt.button === 1);
1151
1152
  }
1152
1153
  }
@@ -1155,10 +1156,10 @@
1155
1156
  }
1156
1157
  function isMiddleClick(evt) {
1157
1158
  try {
1158
- if ('which' in evt) {
1159
+ if ("which" in evt) {
1159
1160
  return (evt.which === 2);
1160
1161
  }
1161
- else if ('button' in evt) {
1162
+ else if ("button" in evt) {
1162
1163
  return (evt.button === 4);
1163
1164
  }
1164
1165
  }
@@ -1167,7 +1168,7 @@
1167
1168
  }
1168
1169
  function isKeyboardEnter(evt) {
1169
1170
  try {
1170
- if ('keyCode' in evt) {
1171
+ if ("keyCode" in evt) {
1171
1172
  return (evt.keyCode === 13);
1172
1173
  }
1173
1174
  }
@@ -1176,7 +1177,7 @@
1176
1177
  }
1177
1178
  function isKeyboardSpace(evt) {
1178
1179
  try {
1179
- if ('keyCode' in evt) {
1180
+ if ("keyCode" in evt) {
1180
1181
  return (evt.keyCode === 32);
1181
1182
  }
1182
1183
  }
@@ -1210,7 +1211,7 @@
1210
1211
  }
1211
1212
  }
1212
1213
  function isElementAnAnchor(element) {
1213
- return element.nodeName === 'A';
1214
+ return element.nodeName === "A";
1214
1215
  }
1215
1216
  function findClosestAnchor(element) {
1216
1217
  return walkUpDomChainWithElementValidation(element, isElementAnAnchor);
@@ -1224,7 +1225,7 @@
1224
1225
  return fieldValue;
1225
1226
  }
1226
1227
  function bracketIt(str) {
1227
- return '[' + str + ']';
1228
+ return "[" + str + "]";
1228
1229
  }
1229
1230
  function extend(obj, obj2, obj3, obj4, obj5) {
1230
1231
  var extended = {};
@@ -1233,14 +1234,14 @@
1233
1234
  var length = arguments.length;
1234
1235
  var objProto = Object[Prototype];
1235
1236
  var theArgs = arguments;
1236
- if (objProto.toString.call(theArgs[0]) === '[object Boolean]') {
1237
+ if (objProto.toString.call(theArgs[0]) === "[object Boolean]") {
1237
1238
  deep = theArgs[0];
1238
1239
  i++;
1239
1240
  }
1240
1241
  var merge = function (obj) {
1241
1242
  for (var prop in obj) {
1242
1243
  if (hasOwnProperty(obj, prop)) {
1243
- if (deep && objProto.toString.call(obj[prop]) === '[object Object]') {
1244
+ if (deep && objProto.toString.call(obj[prop]) === "[object Object]") {
1244
1245
  extended[prop] = extend(true, extended[prop], obj[prop]);
1245
1246
  }
1246
1247
  else {
@@ -1266,10 +1267,10 @@
1266
1267
  },
1267
1268
  pageTags: {},
1268
1269
  coreData: {
1269
- referrerUri: hasDocument ? document.referrer : '',
1270
- requestUri: '',
1271
- pageName: '',
1272
- pageType: ''
1270
+ referrerUri: hasDocument ? document.referrer : "",
1271
+ requestUri: "",
1272
+ pageName: "",
1273
+ pageType: ""
1273
1274
  },
1274
1275
  dataTags: {
1275
1276
  useDefaultContentNameOrId: false,
@@ -1284,7 +1285,7 @@
1284
1285
  };
1285
1286
  var attributesThatAreObjectsInConfig = [];
1286
1287
  for (var attribute in defaultConfig) {
1287
- if (typeof defaultConfig[attribute] === 'object') {
1288
+ if (typeof defaultConfig[attribute] === "object") {
1288
1289
  attributesThatAreObjectsInConfig.push(attribute);
1289
1290
  }
1290
1291
  }
@@ -1330,19 +1331,19 @@
1330
1331
  }
1331
1332
  }
1332
1333
  }
1333
- return '';
1334
+ return "";
1334
1335
  }
1335
1336
  function getClickTarget(element) {
1336
- var clickTarget = '';
1337
+ var clickTarget = "";
1337
1338
  switch (element.tagName) {
1338
- case 'A':
1339
- case 'AREA':
1340
- clickTarget = element.href || '';
1339
+ case "A":
1340
+ case "AREA":
1341
+ clickTarget = element.href || "";
1341
1342
  break;
1342
- case 'IMG':
1343
+ case "IMG":
1343
1344
  clickTarget = getImageHref(element);
1344
1345
  break;
1345
- case 'INPUT':
1346
+ case "INPUT":
1346
1347
  var type = element.type;
1347
1348
  if (type && (clickCaptureInputTypes$1[type.toUpperCase()])) {
1348
1349
  var loc = getLocation() || {};
@@ -1376,13 +1377,13 @@
1376
1377
  if (!location) {
1377
1378
  return null;
1378
1379
  }
1379
- var url = location.protocol + '//' + (location.hostname || location.host) +
1380
- (isValueAssigned(location.port) ? ':' + location.port : '') +
1380
+ var url = location.protocol + "//" + (location.hostname || location.host) +
1381
+ (isValueAssigned(location.port) ? ":" + location.port : "") +
1381
1382
  location.pathname;
1382
1383
  return url;
1383
1384
  }
1384
1385
  function getUri(config, location) {
1385
- if (config.coreData && config.coreData.requestUri && config.coreData.requestUri !== '') {
1386
+ if (config.coreData && config.coreData.requestUri && config.coreData.requestUri !== "") {
1386
1387
  return config.coreData.requestUri;
1387
1388
  }
1388
1389
  return sanitizeUrl(config, location);
@@ -1409,8 +1410,8 @@
1409
1410
  WebEvent.prototype.setCommonProperties = function (event, overrideValues) {
1410
1411
  this.setBasicProperties(event, overrideValues);
1411
1412
  this._setPageTags(event, overrideValues);
1412
- this._pageTypeMetaTag = this._getMetaData(this._metaTags, this._config.coreData, 'pageType');
1413
- this._behaviorMetaTag = this._getMetaData(this._metaTags, this._config.coreData, 'behavior');
1413
+ this._pageTypeMetaTag = this._getMetaData(this._metaTags, this._config.coreData, "pageType");
1414
+ this._behaviorMetaTag = this._getMetaData(this._metaTags, this._config.coreData, "behavior");
1414
1415
  if (isValueAssigned(overrideValues.pageType)) {
1415
1416
  event.pageType = overrideValues.pageType;
1416
1417
  }
@@ -1428,13 +1429,13 @@
1428
1429
  if (this._metaTags) {
1429
1430
  this._pageTags.metaTags = {};
1430
1431
  for (var metaTag in this._metaTags) {
1431
- if (metaTag != 'behavior' && metaTag != 'market' && metaTag != 'pageType') {
1432
+ if (metaTag != "behavior" && metaTag != "market" && metaTag != "pageType") {
1432
1433
  this._pageTags.metaTags[metaTag] = this._metaTags[metaTag];
1433
1434
  }
1434
1435
  }
1435
1436
  }
1436
1437
  event.properties = event.properties || {};
1437
- event.properties['pageTags'] = this._pageTags;
1438
+ event.properties["pageTags"] = this._pageTags;
1438
1439
  };
1439
1440
  WebEvent.prototype._getBehavior = function (overrideValues) {
1440
1441
  var behavior;
@@ -1469,28 +1470,28 @@
1469
1470
  PageAction.prototype.trackPageAction = function (pageActionEvent, properties) {
1470
1471
  var _this = this;
1471
1472
  var ext = {};
1472
- ext['web'] = {};
1473
+ ext["web"] = {};
1473
1474
  var event = {
1474
1475
  name: "Microsoft.ApplicationInsights.{0}.Event",
1475
- baseType: 'EventData',
1476
+ baseType: "EventData",
1476
1477
  ext: ext,
1477
1478
  data: {},
1478
1479
  baseData: {}
1479
1480
  };
1480
- this._populateEventDataIfPresent(event.baseData, 'name', pageActionEvent.name);
1481
- this._populateEventDataIfPresent(event.data, 'baseTypeSource', 'ClickEvent');
1482
- this._populateEventDataIfPresent(event.data, 'uri', pageActionEvent.uri);
1483
- this._populateEventDataIfPresent(event.data, 'pageType', pageActionEvent.pageType);
1484
- this._populateEventDataIfPresent(event.data, 'properties', pageActionEvent.properties);
1485
- this._populateEventDataIfPresent(event.data, 'actionType', pageActionEvent.actionType);
1486
- this._populateEventDataIfPresent(event.data, 'behavior', pageActionEvent.behavior);
1487
- this._populateEventDataIfPresent(event.data, 'clickCoordinates', pageActionEvent.clickCoordinates);
1488
- this._populateEventDataIfPresent(event.data, 'content', pageActionEvent.content);
1489
- this._populateEventDataIfPresent(event.data, 'targetUri', pageActionEvent.targetUri);
1490
- this._populateEventDataIfPresent(event.data, 'timeToAction', pageActionEvent.timeToAction);
1491
- this._populateEventDataIfPresent(event.data, 'refUri', pageActionEvent.refUri);
1492
- this._populateEventDataIfPresent(event.data, 'pageName', pageActionEvent.pageName);
1493
- this._populateEventDataIfPresent(event.data, 'parentId', pageActionEvent.parentId);
1481
+ this._populateEventDataIfPresent(event.baseData, "name", pageActionEvent.name);
1482
+ this._populateEventDataIfPresent(event.data, "baseTypeSource", "ClickEvent");
1483
+ this._populateEventDataIfPresent(event.data, "uri", pageActionEvent.uri);
1484
+ this._populateEventDataIfPresent(event.data, "pageType", pageActionEvent.pageType);
1485
+ this._populateEventDataIfPresent(event.data, "properties", pageActionEvent.properties);
1486
+ this._populateEventDataIfPresent(event.data, "actionType", pageActionEvent.actionType);
1487
+ this._populateEventDataIfPresent(event.data, "behavior", pageActionEvent.behavior);
1488
+ this._populateEventDataIfPresent(event.data, "clickCoordinates", pageActionEvent.clickCoordinates);
1489
+ this._populateEventDataIfPresent(event.data, "content", pageActionEvent.content);
1490
+ this._populateEventDataIfPresent(event.data, "targetUri", pageActionEvent.targetUri);
1491
+ this._populateEventDataIfPresent(event.data, "timeToAction", pageActionEvent.timeToAction);
1492
+ this._populateEventDataIfPresent(event.data, "refUri", pageActionEvent.refUri);
1493
+ this._populateEventDataIfPresent(event.data, "pageName", pageActionEvent.pageName);
1494
+ this._populateEventDataIfPresent(event.data, "parentId", pageActionEvent.parentId);
1494
1495
  if (properties) {
1495
1496
  objForEachKey(properties, function (property, value) {
1496
1497
  if (!event.data[property]) {
@@ -1502,7 +1503,7 @@
1502
1503
  };
1503
1504
  PageAction.prototype.capturePageAction = function (element, overrideValues, customProperties, isRightClick) {
1504
1505
  overrideValues = !isValueAssigned(overrideValues) ? {} : overrideValues;
1505
- var pageActionEvent = { name: '' };
1506
+ var pageActionEvent = { name: "" };
1506
1507
  var pageActionProperties = isValueAssigned(customProperties) ? customProperties : {};
1507
1508
  this.setCommonProperties(pageActionEvent, overrideValues);
1508
1509
  pageActionEvent.behavior = this._getBehavior(overrideValues);
@@ -1514,7 +1515,7 @@
1514
1515
  pageActionEvent.targetUri = getClickTarget(element);
1515
1516
  elementContent = this._contentHandler.getElementContent(element);
1516
1517
  if (elementContent.bhvr && !isValueAssigned(overrideValues.behavior)) {
1517
- var currentBehavior = extractFieldFromObject(elementContent, 'bhvr');
1518
+ var currentBehavior = extractFieldFromObject(elementContent, "bhvr");
1518
1519
  pageActionEvent.behavior = this._getValidBehavior(currentBehavior);
1519
1520
  }
1520
1521
  if (!isValueAssigned(elementContent.id) && !isValueAssigned(elementContent.contentName)) {
@@ -1527,7 +1528,7 @@
1527
1528
  pageActionEvent.actionType = overrideValues.actionType;
1528
1529
  }
1529
1530
  if (isValueAssigned(overrideValues.clickCoordinateX) && isValueAssigned(overrideValues.clickCoordinateY)) {
1530
- pageActionEvent.clickCoordinates = overrideValues.clickCoordinateX + 'X' + overrideValues.clickCoordinateY;
1531
+ pageActionEvent.clickCoordinates = overrideValues.clickCoordinateX + "X" + overrideValues.clickCoordinateY;
1531
1532
  }
1532
1533
  this._sanitizePageActionEventContent(elementContent);
1533
1534
  pageActionEvent.content = bracketIt(JSON.stringify(extend(elementContent, overrideValues && overrideValues.contentTags ? overrideValues.contentTags : {})));
@@ -1575,15 +1576,15 @@
1575
1576
  }(WebEvent));
1576
1577
 
1577
1578
  var ActionType = {
1578
- CLICKLEFT: 'CL',
1579
- CLICKRIGHT: 'CR',
1580
- CLICKMIDDLE: 'CM',
1581
- SCROLL: 'S',
1582
- ZOOM: 'Z',
1583
- RESIZE: 'R',
1584
- KEYBOARDENTER: 'KE',
1585
- KEYBOARDSPACE: 'KS',
1586
- OTHER: 'O'
1579
+ CLICKLEFT: "CL",
1580
+ CLICKRIGHT: "CR",
1581
+ CLICKMIDDLE: "CM",
1582
+ SCROLL: "S",
1583
+ ZOOM: "Z",
1584
+ RESIZE: "R",
1585
+ KEYBOARDENTER: "KE",
1586
+ KEYBOARDSPACE: "KS",
1587
+ OTHER: "O"
1587
1588
  };
1588
1589
 
1589
1590
  var clickCaptureInputTypes = { BUTTON: true, CHECKBOX: true, RADIO: true, RESET: true, SUBMIT: true };
@@ -1599,13 +1600,13 @@
1599
1600
  var win = getWindow();
1600
1601
  var doc = getDocument();
1601
1602
  if (win) {
1602
- var event_1 = (navigator.appVersion.indexOf('MSIE') !== -1) ? 'click' : 'mousedown';
1603
+ var event_1 = (navigator.appVersion.indexOf("MSIE") !== -1) ? "click" : "mousedown";
1603
1604
  attachEvent(win, event_1, function (evt) { _this._processClick(evt); });
1604
- attachEvent(win, 'keyup', function (evt) { _this._processClick(evt); });
1605
+ attachEvent(win, "keyup", function (evt) { _this._processClick(evt); });
1605
1606
  }
1606
1607
  else if (doc) {
1607
- attachEvent(doc, 'click', function (evt) { _this._processClick(evt); });
1608
- attachEvent(doc, 'keyup', function (evt) { _this._processClick(evt); });
1608
+ attachEvent(doc, "click", function (evt) { _this._processClick(evt); });
1609
+ attachEvent(doc, "keyup", function (evt) { _this._processClick(evt); });
1609
1610
  }
1610
1611
  };
1611
1612
  AutoCaptureHandler.prototype.capturePageAction = function (element, overrideValues, customProperties, isRightClick) {
@@ -1655,7 +1656,7 @@
1655
1656
  continue;
1656
1657
  }
1657
1658
  else {
1658
- var sendEvent = tagNameUpperCased === 'INPUT' ? clickCaptureInputTypes[element.type.toUpperCase()] : true;
1659
+ var sendEvent = tagNameUpperCased === "INPUT" ? clickCaptureInputTypes[element.type.toUpperCase()] : true;
1659
1660
  if (sendEvent) {
1660
1661
  this.capturePageAction(element, overrideValues, {}, isRightClickObj);
1661
1662
  }
@@ -1677,7 +1678,7 @@
1677
1678
  var metaTags = {};
1678
1679
  if (hasDocument) {
1679
1680
  metaTags = isValueAssigned(this._config.dataTags.metaDataPrefix) ? this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent, this._config.dataTags.metaDataPrefix, false) :
1680
- this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent, '', false);
1681
+ this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent, "", false);
1681
1682
  }
1682
1683
  return metaTags;
1683
1684
  };
@@ -1722,7 +1723,7 @@
1722
1723
  if (attrib.name.indexOf(dataTagPrefix) !== 0) {
1723
1724
  continue;
1724
1725
  }
1725
- var attribName = attrib.name.replace(dataTagPrefix, '');
1726
+ var attribName = attrib.name.replace(dataTagPrefix, "");
1726
1727
  elementContent[attribName] = attrib.value;
1727
1728
  }
1728
1729
  };
@@ -1743,8 +1744,8 @@
1743
1744
  if (attrib.name.indexOf(aiBlobAttributeTag) === 0) {
1744
1745
  continue;
1745
1746
  }
1746
- var attribName = attrib.name.replace(dataTagPrefix, '');
1747
- if (elementLevelFlag && attribName === 'id')
1747
+ var attribName = attrib.name.replace(dataTagPrefix, "");
1748
+ if (elementLevelFlag && attribName === "id")
1748
1749
  continue;
1749
1750
  if (!isValueAssigned(elementContent[attribName])) {
1750
1751
  elementContent[attribName] = attrib.value;
@@ -1763,15 +1764,15 @@
1763
1764
  return elementContent;
1764
1765
  var htmlContent = this._getHtmlIdAndContentName(element);
1765
1766
  elementContent = {
1766
- id: htmlContent.id || '',
1767
- contentName: htmlContent.contentName || ''
1767
+ id: htmlContent.id || "",
1768
+ contentName: htmlContent.contentName || ""
1768
1769
  };
1769
1770
  if (isValueAssigned(parentDataTagPrefix)) {
1770
1771
  this._walkUpDomChainCaptureData(element, elementContent, dataTagPrefix, parentDataTagPrefix, aiBlobAttributeTag);
1771
1772
  }
1772
1773
  if (!elementContent.id && !elementContent.contentName) {
1773
- this._traceLogger.throwInternal(LoggingSeverity.WARNING, _ExtendedInternalMessageId.InvalidContentBlob, 'Invalid content blob. Missing required attributes (id, contentName. ' +
1774
- ' Content information will still be collected!');
1774
+ this._traceLogger.throwInternal(LoggingSeverity.WARNING, _ExtendedInternalMessageId.InvalidContentBlob, "Invalid content blob. Missing required attributes (id, contentName. " +
1775
+ " Content information will still be collected!");
1775
1776
  }
1776
1777
  return elementContent;
1777
1778
  };
@@ -1788,13 +1789,13 @@
1788
1789
  }
1789
1790
  if (this._config.dataTags.useDefaultContentNameOrId) {
1790
1791
  if (!isValueAssigned(elementContent.id)) {
1791
- elementContent.id = htmlContent.id || '';
1792
+ elementContent.id = htmlContent.id || "";
1792
1793
  }
1793
- elementContent.contentName = htmlContent.contentName || '';
1794
+ elementContent.contentName = htmlContent.contentName || "";
1794
1795
  }
1795
1796
  if (!elementContent.id && !elementContent.contentName) {
1796
- this._traceLogger.throwInternal(LoggingSeverity.WARNING, _ExtendedInternalMessageId.InvalidContentBlob, 'Invalid content blob. Missing required attributes (id, contentName. ' +
1797
- ' Content information will still be collected!');
1797
+ this._traceLogger.throwInternal(LoggingSeverity.WARNING, _ExtendedInternalMessageId.InvalidContentBlob, "Invalid content blob. Missing required attributes (id, contentName. " +
1798
+ " Content information will still be collected!");
1798
1799
  }
1799
1800
  return elementContent;
1800
1801
  };
@@ -1802,12 +1803,12 @@
1802
1803
  var metaElements;
1803
1804
  var metaData = {};
1804
1805
  if (hasDocument) {
1805
- metaElements = document.querySelectorAll('meta');
1806
+ metaElements = document.querySelectorAll("meta");
1806
1807
  for (var i = 0; i < metaElements.length; i++) {
1807
1808
  var meta = metaElements[i];
1808
1809
  if (meta.name) {
1809
1810
  if (captureAllMetaDataContent || meta.name.indexOf(prefix) === 0) {
1810
- var name_1 = removePrefix ? meta.name.replace(prefix, '') : meta.name;
1811
+ var name_1 = removePrefix ? meta.name.replace(prefix, "") : meta.name;
1811
1812
  metaData[name_1] = meta.content;
1812
1813
  }
1813
1814
  }
@@ -1817,16 +1818,16 @@
1817
1818
  };
1818
1819
  DomContentHandler.prototype._getDefaultContentName = function (element, useDefaultContentName) {
1819
1820
  if (useDefaultContentName === false || !element.tagName) {
1820
- return '';
1821
+ return "";
1821
1822
  }
1822
1823
  var doc = getDocument() || {};
1823
1824
  var contentName;
1824
1825
  switch (element.tagName) {
1825
- case 'A':
1826
+ case "A":
1826
1827
  contentName = doc.all ? element.innerText || element.innerHTML : element.text || element.innerHTML;
1827
1828
  break;
1828
- case 'IMG':
1829
- case 'AREA':
1829
+ case "IMG":
1830
+ case "AREA":
1830
1831
  contentName = element.alt;
1831
1832
  break;
1832
1833
  default:
@@ -1857,14 +1858,14 @@
1857
1858
  var defaultContentName = this._getDefaultContentName(element, this._config.dataTags.useDefaultContentNameOrId);
1858
1859
  htmlContent = {
1859
1860
  id: element.id,
1860
- contentName: customizedContentName || defaultContentName || element.getAttribute('alt')
1861
+ contentName: customizedContentName || defaultContentName || element.getAttribute("alt")
1861
1862
  };
1862
1863
  }
1863
1864
  return htmlContent;
1864
1865
  };
1865
1866
  DomContentHandler.prototype._getParentDetails = function (element, elementContent, dataTagPrefix, aiBlobAttributeTag) {
1866
- var parentId = elementContent['parentid'];
1867
- var parentName = elementContent['parentname'];
1867
+ var parentId = elementContent["parentid"];
1868
+ var parentName = elementContent["parentname"];
1868
1869
  var parentInfo = {};
1869
1870
  if (parentId || parentName || !element) {
1870
1871
  return parentInfo;
@@ -1893,12 +1894,12 @@
1893
1894
  }
1894
1895
  }
1895
1896
  if (parentId) {
1896
- parentInfo['parentid'] = parentId;
1897
+ parentInfo["parentid"] = parentId;
1897
1898
  }
1898
1899
  else {
1899
1900
  var htmlContent = this._getHtmlIdAndContentName(element.parentElement);
1900
- parentInfo['parentid'] = htmlContent.id;
1901
- parentInfo['parentname'] = htmlContent.contentName;
1901
+ parentInfo["parentid"] = htmlContent.id;
1902
+ parentInfo["parentname"] = htmlContent.contentName;
1902
1903
  }
1903
1904
  return parentInfo;
1904
1905
  };
@@ -1909,7 +1910,7 @@
1909
1910
  __extendsFn(ClickAnalyticsPlugin, _super);
1910
1911
  function ClickAnalyticsPlugin() {
1911
1912
  var _this = _super !== null && _super.apply(this, arguments) || this;
1912
- _this.identifier = 'ClickAnalyticsPlugin';
1913
+ _this.identifier = "ClickAnalyticsPlugin";
1913
1914
  _this.priority = 181;
1914
1915
  return _this;
1915
1916
  }
@@ -1950,7 +1951,7 @@
1950
1951
  this.diagLog().throwInternal(LoggingSeverity.CRITICAL, _ExtendedInternalMessageId.TrackPageActionEventFailed, "trackPageAction failed, page action event will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
1951
1952
  }
1952
1953
  };
1953
- ClickAnalyticsPlugin.Version = "2.7.1-nightly.202110-05";
1954
+ ClickAnalyticsPlugin.Version = "2.7.1-nightly.202110-14";
1954
1955
  return ClickAnalyticsPlugin;
1955
1956
  }(BaseTelemetryPlugin));
1956
1957