@pendo/agent 2.281.0 → 2.282.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -5
- package/bin/cli.js +80 -11
- package/dist/dom.esm.js +222 -221
- package/dist/pendo.module.js +2810 -2792
- package/dist/pendo.module.min.js +13 -13
- package/package.json +1 -1
- package/setup.js +12 -12
package/dist/dom.esm.js
CHANGED
|
@@ -2492,8 +2492,8 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
2492
2492
|
|
|
2493
2493
|
var policy;
|
|
2494
2494
|
var policyOptions = {
|
|
2495
|
-
|
|
2496
|
-
|
|
2495
|
+
createScriptURL: function (str) { return str; },
|
|
2496
|
+
createHTML: function (str) { return str; }
|
|
2497
2497
|
};
|
|
2498
2498
|
function getPolicy(pendo) {
|
|
2499
2499
|
if (!policy) {
|
|
@@ -5156,7 +5156,7 @@ var deflate_minExports = deflate_min.exports;
|
|
|
5156
5156
|
var ZLibDeflate = /*@__PURE__*/getDefaultExportFromCjs(deflate_minExports);
|
|
5157
5157
|
|
|
5158
5158
|
({
|
|
5159
|
-
|
|
5159
|
+
Deflate: ZLibDeflate.Zlib.Deflate
|
|
5160
5160
|
});
|
|
5161
5161
|
|
|
5162
5162
|
function getZoneSafeMethod$1(_, method, target) {
|
|
@@ -5192,7 +5192,7 @@ var crc32_minExports = crc32_min.exports;
|
|
|
5192
5192
|
var ZlibCRC32 = /*@__PURE__*/getDefaultExportFromCjs(crc32_minExports);
|
|
5193
5193
|
|
|
5194
5194
|
({
|
|
5195
|
-
|
|
5195
|
+
CRC32: ZlibCRC32.Zlib.CRC32
|
|
5196
5196
|
});
|
|
5197
5197
|
function randomElement(array) {
|
|
5198
5198
|
return array[Math.floor(Math.random() * array.length)];
|
|
@@ -5229,7 +5229,7 @@ function DomData() {
|
|
|
5229
5229
|
this.ownerKey = '_pendo_' + randomString(8);
|
|
5230
5230
|
}
|
|
5231
5231
|
_.extend(DomData.prototype, {
|
|
5232
|
-
|
|
5232
|
+
cache: function (owner) {
|
|
5233
5233
|
if (!_.isObject(owner))
|
|
5234
5234
|
return {};
|
|
5235
5235
|
var cache = owner[this.ownerKey];
|
|
@@ -5239,15 +5239,15 @@ _.extend(DomData.prototype, {
|
|
|
5239
5239
|
}
|
|
5240
5240
|
return cache;
|
|
5241
5241
|
},
|
|
5242
|
-
|
|
5242
|
+
set: function (owner, key, value) {
|
|
5243
5243
|
var cache = this.cache(owner);
|
|
5244
5244
|
cache[key] = value;
|
|
5245
5245
|
return cache;
|
|
5246
5246
|
},
|
|
5247
|
-
|
|
5247
|
+
get: function (owner, key) {
|
|
5248
5248
|
return key === undefined ? this.cache(owner) : owner[this.ownerKey] && owner[this.ownerKey][key];
|
|
5249
5249
|
},
|
|
5250
|
-
|
|
5250
|
+
remove: function (owner, key) {
|
|
5251
5251
|
var cache = this.cache(owner);
|
|
5252
5252
|
delete cache[key];
|
|
5253
5253
|
if (key === undefined || _.isEmpty(cache)) {
|
|
@@ -5304,18 +5304,18 @@ var shadowAPI = (function () {
|
|
|
5304
5304
|
var splitter = selector.split(shadowAPI.PSEUDO_ELEMENT);
|
|
5305
5305
|
var css = splitter.splice(0, 1)[0];
|
|
5306
5306
|
var shadowCss = splitter.join(shadowAPI.PSEUDO_ELEMENT);
|
|
5307
|
-
return {
|
|
5307
|
+
return { baseCss: css, shadowCss: shadowCss };
|
|
5308
5308
|
}
|
|
5309
5309
|
return {
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5310
|
+
PSEUDO_ELEMENT: '::shadow',
|
|
5311
|
+
PSEUDO_SAFE: ':shadow',
|
|
5312
|
+
PSEUDO_REGEX: /::shadow/g,
|
|
5313
|
+
getComposedPath: getComposedPath,
|
|
5314
|
+
getShadowRoot: getShadowRoot,
|
|
5315
|
+
isElementShadowRoot: isElementShadowRoot,
|
|
5316
|
+
getParent: getParent,
|
|
5317
|
+
isShadowSelector: isShadowSelector,
|
|
5318
|
+
wrapSizzle: function (Sizzle) {
|
|
5319
5319
|
Sizzle.intercept(function (Sizzle, selection, context, results, seed) {
|
|
5320
5320
|
if (!isShadowSelector(selection)) {
|
|
5321
5321
|
return Sizzle(selection, context, results, seed);
|
|
@@ -5519,7 +5519,7 @@ var getTarget = function (evt) {
|
|
|
5519
5519
|
return evt.target || evt.srcElement;
|
|
5520
5520
|
};
|
|
5521
5521
|
var DomEvent = {
|
|
5522
|
-
|
|
5522
|
+
add: function (elem, handlerObj) {
|
|
5523
5523
|
var elemData = DomData$1.get(elem);
|
|
5524
5524
|
if (!elemData.handle) {
|
|
5525
5525
|
elemData.handle = function handle(event) {
|
|
@@ -5538,7 +5538,7 @@ var DomEvent = {
|
|
|
5538
5538
|
dom.event.remove(elem, handlerObj.type, handlerObj.handler, handlerObj.capture);
|
|
5539
5539
|
};
|
|
5540
5540
|
},
|
|
5541
|
-
|
|
5541
|
+
dispatch: function (elem, event) {
|
|
5542
5542
|
if (!elem)
|
|
5543
5543
|
return;
|
|
5544
5544
|
var captureHandlers = (DomData$1.get(elem, 'captureEvents') || {})[event.type] || [];
|
|
@@ -5576,7 +5576,7 @@ var DomEvent = {
|
|
|
5576
5576
|
}
|
|
5577
5577
|
});
|
|
5578
5578
|
},
|
|
5579
|
-
|
|
5579
|
+
remove: function (elem, eventType, fn, useCapture) {
|
|
5580
5580
|
var elemData = DomData$1.get(elem);
|
|
5581
5581
|
if (!elemData)
|
|
5582
5582
|
return;
|
|
@@ -5614,7 +5614,7 @@ var DomEvent = {
|
|
|
5614
5614
|
DomData$1.remove(elem, 'handle');
|
|
5615
5615
|
}
|
|
5616
5616
|
},
|
|
5617
|
-
|
|
5617
|
+
trigger: function (event) {
|
|
5618
5618
|
var eventData = DomData$1.get(event);
|
|
5619
5619
|
if (eventData.pendoStopped)
|
|
5620
5620
|
return;
|
|
@@ -5654,7 +5654,7 @@ var DomEvent = {
|
|
|
5654
5654
|
DomEvent.dispatch(path[i], event);
|
|
5655
5655
|
}
|
|
5656
5656
|
},
|
|
5657
|
-
|
|
5657
|
+
clone: function (event) {
|
|
5658
5658
|
var clone = _.pick(event, [
|
|
5659
5659
|
'type',
|
|
5660
5660
|
'target',
|
|
@@ -5677,7 +5677,7 @@ var DomEvent = {
|
|
|
5677
5677
|
}
|
|
5678
5678
|
};
|
|
5679
5679
|
DomEvent.$ = {
|
|
5680
|
-
|
|
5680
|
+
on: function (eventNames, selector, fn, useCapture) {
|
|
5681
5681
|
if (_.isFunction(selector)) {
|
|
5682
5682
|
useCapture = fn;
|
|
5683
5683
|
fn = selector;
|
|
@@ -5687,10 +5687,10 @@ DomEvent.$ = {
|
|
|
5687
5687
|
return this.each(function (elem) {
|
|
5688
5688
|
_.each(eventNames, function (evtName) {
|
|
5689
5689
|
DomEvent.add(elem, {
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5690
|
+
type: evtName,
|
|
5691
|
+
selector: selector,
|
|
5692
|
+
handler: fn,
|
|
5693
|
+
capture: useCapture
|
|
5694
5694
|
});
|
|
5695
5695
|
});
|
|
5696
5696
|
});
|
|
@@ -6125,9 +6125,9 @@ var ConfigReader = (function () {
|
|
|
6125
6125
|
if (optionMap[name])
|
|
6126
6126
|
return;
|
|
6127
6127
|
var opt = {
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6128
|
+
name: name,
|
|
6129
|
+
defaultValue: defaultValue,
|
|
6130
|
+
supportedSources: sources
|
|
6131
6131
|
};
|
|
6132
6132
|
if (anySource != null) {
|
|
6133
6133
|
opt.useAnySource = anySource;
|
|
@@ -6833,6 +6833,7 @@ var ConfigReader = (function () {
|
|
|
6833
6833
|
*/
|
|
6834
6834
|
addOption('preventCodeInjection', [PENDO_CONFIG_SRC, SNIPPET_SRC, GLOBAL_SRC], false);
|
|
6835
6835
|
addOption('previewModeAssetPath');
|
|
6836
|
+
addOption('useAssetHostForDesigner', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
|
|
6836
6837
|
addOption('storage.allowKeys', [SNIPPET_SRC], '*');
|
|
6837
6838
|
// Feedback
|
|
6838
6839
|
/**
|
|
@@ -6890,17 +6891,17 @@ var ConfigReader = (function () {
|
|
|
6890
6891
|
initializeOptions();
|
|
6891
6892
|
var sourceGetters = {};
|
|
6892
6893
|
sourceGetters[SNIPPET_SRC] = function () {
|
|
6893
|
-
return {
|
|
6894
|
+
return { lookup: originalOptions || window.pendo_options, name: SNIPPET_SRC };
|
|
6894
6895
|
};
|
|
6895
6896
|
sourceGetters[PENDO_CONFIG_SRC] = function () {
|
|
6896
6897
|
var lookup = getPendoConfig();
|
|
6897
|
-
return {
|
|
6898
|
+
return { lookup: lookup, name: PENDO_CONFIG_SRC };
|
|
6898
6899
|
};
|
|
6899
6900
|
sourceGetters[GLOBAL_SRC] = function () {
|
|
6900
|
-
return {
|
|
6901
|
+
return { lookup: pendo, name: GLOBAL_SRC };
|
|
6901
6902
|
};
|
|
6902
6903
|
function findOption(name) {
|
|
6903
|
-
return optionMap[name] || {
|
|
6904
|
+
return optionMap[name] || { name: name };
|
|
6904
6905
|
}
|
|
6905
6906
|
function getSupportedSources(option) {
|
|
6906
6907
|
return _.get(option, 'supportedSources', [SNIPPET_SRC, PENDO_CONFIG_SRC, GLOBAL_SRC]);
|
|
@@ -6966,41 +6967,41 @@ var ConfigReader = (function () {
|
|
|
6966
6967
|
var results = [];
|
|
6967
6968
|
each(optionMap, function (opt) {
|
|
6968
6969
|
results.push({
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6970
|
+
name: opt.name,
|
|
6971
|
+
active: findActive(opt.name),
|
|
6972
|
+
conflicts: findConflicts(opt.name)
|
|
6972
6973
|
});
|
|
6973
6974
|
});
|
|
6974
6975
|
return results;
|
|
6975
6976
|
}
|
|
6976
6977
|
/* eslint-disable no-console */
|
|
6977
6978
|
return {
|
|
6978
|
-
|
|
6979
|
-
|
|
6979
|
+
audit: audit,
|
|
6980
|
+
get: function (optionName, defaultValue) {
|
|
6980
6981
|
var result = findActive(optionName, defaultValue);
|
|
6981
6982
|
return result.value;
|
|
6982
6983
|
},
|
|
6983
|
-
|
|
6984
|
+
getLocalConfig: function (optionName, defaultValue) {
|
|
6984
6985
|
if (!arguments.length) {
|
|
6985
6986
|
return deepCopy(originalOptions);
|
|
6986
6987
|
}
|
|
6987
6988
|
return findActive(optionName, defaultValue, [SNIPPET_SRC]).value;
|
|
6988
6989
|
},
|
|
6989
|
-
|
|
6990
|
+
getHostedConfig: function (optionName, defaultValue) {
|
|
6990
6991
|
return findActive(optionName, defaultValue, [PENDO_CONFIG_SRC]).value;
|
|
6991
6992
|
},
|
|
6992
|
-
|
|
6993
|
-
|
|
6993
|
+
addOption: addOption,
|
|
6994
|
+
setLocalConfig: function (_originalOptions) {
|
|
6994
6995
|
originalOptions = _originalOptions;
|
|
6995
6996
|
},
|
|
6996
|
-
|
|
6997
|
-
|
|
6997
|
+
options: function () { return pluck(optionMap, 'name'); },
|
|
6998
|
+
sources: {
|
|
6998
6999
|
SNIPPET_SRC: SNIPPET_SRC,
|
|
6999
7000
|
PENDO_CONFIG_SRC: PENDO_CONFIG_SRC,
|
|
7000
7001
|
GLOBAL_SRC: GLOBAL_SRC,
|
|
7001
7002
|
DEFAULT_SRC: DEFAULT_SRC
|
|
7002
7003
|
},
|
|
7003
|
-
|
|
7004
|
+
validate: function (console) {
|
|
7004
7005
|
console.groupCollapsed('Validate Config options');
|
|
7005
7006
|
each(audit(), function (item) {
|
|
7006
7007
|
console.log(String(item.active));
|
|
@@ -7129,10 +7130,10 @@ function isMobileUserAgent() {
|
|
|
7129
7130
|
// exports
|
|
7130
7131
|
var sniffer = {
|
|
7131
7132
|
// jshint -W018
|
|
7132
|
-
|
|
7133
|
+
supportsHistoryApi: shouldWrapNativeHistory,
|
|
7133
7134
|
// jshint +W018
|
|
7134
|
-
|
|
7135
|
-
|
|
7135
|
+
supportsHashChange: shouldWrapHashChange,
|
|
7136
|
+
hasEvent: function (event) {
|
|
7136
7137
|
// IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have
|
|
7137
7138
|
// it. In particular the event is not fired when backspace or delete key are pressed or
|
|
7138
7139
|
// when cut operation is performed.
|
|
@@ -7144,18 +7145,18 @@ var sniffer = {
|
|
|
7144
7145
|
}
|
|
7145
7146
|
return eventSupport[event];
|
|
7146
7147
|
},
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7148
|
+
vendorPrefix: vendorPrefix,
|
|
7149
|
+
transitions: transitions,
|
|
7150
|
+
animations: animations,
|
|
7151
|
+
android: android,
|
|
7152
|
+
msie: msie,
|
|
7153
|
+
msieDocumentMode: documentMode,
|
|
7154
|
+
safari: /apple/i.test(navigator.vendor),
|
|
7155
|
+
sri: ('integrity' in document.createElement('script')),
|
|
7156
|
+
addEventListener: _.isFunction(window.addEventListener),
|
|
7157
|
+
MutationObserver: isNativeCode(window.MutationObserver),
|
|
7158
|
+
isMinimumIEVersion: isMinimumIEVersion,
|
|
7159
|
+
isMobileUserAgent: _.memoize(isMobileUserAgent)
|
|
7159
7160
|
};
|
|
7160
7161
|
|
|
7161
7162
|
// other node types can be read about here:
|
|
@@ -7239,19 +7240,19 @@ function isOffsetParent(element) {
|
|
|
7239
7240
|
}
|
|
7240
7241
|
function getAbsolutePosition(element, parentElement, _win) {
|
|
7241
7242
|
if (!element) {
|
|
7242
|
-
return {
|
|
7243
|
+
return { width: 0, height: 0 };
|
|
7243
7244
|
}
|
|
7244
7245
|
if (!_win) {
|
|
7245
7246
|
_win = window;
|
|
7246
7247
|
}
|
|
7247
7248
|
var terminalParent = isOffsetParent(parentElement) ? parentElement : getOffsetParent(parentElement, _win);
|
|
7248
|
-
var parentRect = terminalParent ? getScreenPosition(terminalParent) : {
|
|
7249
|
+
var parentRect = terminalParent ? getScreenPosition(terminalParent) : { top: 0, left: 0 };
|
|
7249
7250
|
var elemRect = getScreenPosition(element);
|
|
7250
7251
|
var elementPosition = {
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7252
|
+
top: elemRect.top - parentRect.top,
|
|
7253
|
+
left: elemRect.left - parentRect.left,
|
|
7254
|
+
width: elemRect.width,
|
|
7255
|
+
height: elemRect.height
|
|
7255
7256
|
};
|
|
7256
7257
|
if (terminalParent) {
|
|
7257
7258
|
if (terminalParent !== _win.document.scrollingElement) {
|
|
@@ -7271,30 +7272,30 @@ function getAbsolutePosition(element, parentElement, _win) {
|
|
|
7271
7272
|
}
|
|
7272
7273
|
function getScreenPosition(element) {
|
|
7273
7274
|
if (!element) {
|
|
7274
|
-
return {
|
|
7275
|
+
return { width: 0, height: 0 };
|
|
7275
7276
|
}
|
|
7276
7277
|
if (!element.getBoundingClientRect) {
|
|
7277
7278
|
return {
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7279
|
+
top: 0,
|
|
7280
|
+
left: 0,
|
|
7281
|
+
width: element.offsetWidth,
|
|
7282
|
+
height: element.offsetHeight,
|
|
7283
|
+
right: element.offsetWidth,
|
|
7284
|
+
bottom: element.offsetHeight
|
|
7284
7285
|
};
|
|
7285
7286
|
}
|
|
7286
7287
|
var rect = element.getBoundingClientRect();
|
|
7287
7288
|
return {
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7289
|
+
top: rect.top,
|
|
7290
|
+
left: rect.left,
|
|
7291
|
+
bottom: rect.bottom,
|
|
7292
|
+
right: rect.right,
|
|
7293
|
+
width: rect.width || Math.abs(rect.right - rect.left),
|
|
7294
|
+
height: rect.height || Math.abs(rect.bottom - rect.top)
|
|
7294
7295
|
};
|
|
7295
7296
|
}
|
|
7296
7297
|
|
|
7297
|
-
var VERSION = '2.
|
|
7298
|
+
var VERSION = '2.282.0_';
|
|
7298
7299
|
function isExtensionAgent() {
|
|
7299
7300
|
var installType = getPendoConfigValue('installType') || getPendoConfigFromEnclosingScope().installType;
|
|
7300
7301
|
return installType === EXTENSION_INSTALL_TYPE;
|
|
@@ -7344,19 +7345,19 @@ function clearPendoStorage(storage) {
|
|
|
7344
7345
|
}
|
|
7345
7346
|
function wrapStorageObject(storage) {
|
|
7346
7347
|
return {
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7348
|
+
getItem: wrapStorageMethod(storage, storage.getItem, null),
|
|
7349
|
+
setItem: wrapStorageMethod(storage, storage.setItem),
|
|
7350
|
+
removeItem: wrapStorageMethod(storage, storage.removeItem),
|
|
7351
|
+
clearPendo: _.partial(clearPendoStorage, storage)
|
|
7351
7352
|
};
|
|
7352
7353
|
}
|
|
7353
7354
|
function createStorageShim(storageAccessor) {
|
|
7354
7355
|
var noop = _.noop;
|
|
7355
7356
|
var fake = {
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7357
|
+
getItem: function () { return null; },
|
|
7358
|
+
setItem: noop,
|
|
7359
|
+
removeItem: noop,
|
|
7360
|
+
clearPendo: noop
|
|
7360
7361
|
};
|
|
7361
7362
|
try {
|
|
7362
7363
|
var storage = storageAccessor();
|
|
@@ -7582,8 +7583,8 @@ var agentStorage = (function () {
|
|
|
7582
7583
|
}
|
|
7583
7584
|
var ttl = new Date().getTime() + limitCookieTTL(duration);
|
|
7584
7585
|
return JSON.stringify({
|
|
7585
|
-
|
|
7586
|
-
|
|
7586
|
+
ttl: ttl,
|
|
7587
|
+
value: value
|
|
7587
7588
|
});
|
|
7588
7589
|
}
|
|
7589
7590
|
function clear(name, isPlain, cookieSuffix) {
|
|
@@ -7598,12 +7599,12 @@ var agentStorage = (function () {
|
|
|
7598
7599
|
var wrappedPendoLocalStorage = _.extend({}, pendoLocalStorage);
|
|
7599
7600
|
wrappedPendoLocalStorage.setItem = wrapStorageWriteMethod(wrappedPendoLocalStorage.setItem, 'hasLocal');
|
|
7600
7601
|
return {
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7602
|
+
read: read,
|
|
7603
|
+
write: wrapStorageWriteMethod(write, 'hasLocal'),
|
|
7604
|
+
clear: clear,
|
|
7605
|
+
registry: registry,
|
|
7606
|
+
getLocal: function () { return wrappedPendoLocalStorage; },
|
|
7607
|
+
getSession: function () { return wrappedPendoSessionStorage; }
|
|
7607
7608
|
};
|
|
7608
7609
|
})();
|
|
7609
7610
|
|
|
@@ -7865,10 +7866,10 @@ function createEventTracer(window) {
|
|
|
7865
7866
|
var extend = _.extend;
|
|
7866
7867
|
var omit = _.omit;
|
|
7867
7868
|
var MemoryStorage = {
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7869
|
+
data: {},
|
|
7870
|
+
getItem: function (key) { return MemoryStorage.data[key]; },
|
|
7871
|
+
setItem: function (key, val) { MemoryStorage.data[key] = val; },
|
|
7872
|
+
removeItem: function (key) {
|
|
7872
7873
|
MemoryStorage.data[key] = null;
|
|
7873
7874
|
delete MemoryStorage.data[key];
|
|
7874
7875
|
}
|
|
@@ -7940,18 +7941,18 @@ function createEventTracer(window) {
|
|
|
7940
7941
|
};
|
|
7941
7942
|
}
|
|
7942
7943
|
return {
|
|
7943
|
-
|
|
7944
|
+
addTracerIds: function (obj) {
|
|
7944
7945
|
return omit(extend(obj, {
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7946
|
+
parentTabId: getParentTabId(),
|
|
7947
|
+
tabId: getOrCreateTabId(),
|
|
7948
|
+
frameId: getOrCreateFrameId()
|
|
7948
7949
|
}), function (v) { return v === undefined; });
|
|
7949
7950
|
},
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7951
|
+
setParentTabId: setParentTabId,
|
|
7952
|
+
newTabId: newTabId,
|
|
7953
|
+
getTabId: getOrCreateTabId,
|
|
7954
|
+
getFrameId: getOrCreateFrameId,
|
|
7955
|
+
tabIdChanged: tabIdChanged
|
|
7955
7956
|
};
|
|
7956
7957
|
}
|
|
7957
7958
|
var EventTracer = createEventTracer(window);
|
|
@@ -8049,10 +8050,10 @@ Eventable.clear = function (events) {
|
|
|
8049
8050
|
var RUNTIME = 'runtime';
|
|
8050
8051
|
var FRAMES = 'frames';
|
|
8051
8052
|
var EVENT_GROUPS = {
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8053
|
+
DEBUG: DEBUG,
|
|
8054
|
+
FRAMES: FRAMES,
|
|
8055
|
+
LIFECYCLE: LIFECYCLE,
|
|
8056
|
+
RUNTIME: RUNTIME
|
|
8056
8057
|
};
|
|
8057
8058
|
var eventTypes = [
|
|
8058
8059
|
// Events to be made public
|
|
@@ -8108,30 +8109,30 @@ Eventable.clear = function (events) {
|
|
|
8108
8109
|
var events = Eventable.call({});
|
|
8109
8110
|
// TODO: check that evtName is a supported Type (throw error if not)
|
|
8110
8111
|
function packageEvent(evtName, data) {
|
|
8111
|
-
var ev = {
|
|
8112
|
+
var ev = { type: evtName, ts: getNow() };
|
|
8112
8113
|
if (doesExist(data) && _.isObject(data))
|
|
8113
8114
|
ev.data = data;
|
|
8114
8115
|
return ev;
|
|
8115
8116
|
}
|
|
8116
8117
|
// keys align with the members of EVENT_GROUPS
|
|
8117
8118
|
var packageEventForGroup = {
|
|
8118
|
-
|
|
8119
|
+
debug: function () {
|
|
8119
8120
|
return EventTracer.addTracerIds(packageEvent.apply(null, arguments));
|
|
8120
8121
|
},
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8122
|
+
lifecycle: packageEvent,
|
|
8123
|
+
runtime: packageEvent,
|
|
8124
|
+
frames: packageEvent
|
|
8124
8125
|
};
|
|
8125
8126
|
function addEventGroup(group) {
|
|
8126
8127
|
events[group] = {
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8128
|
+
on: _.partial(events.on, group),
|
|
8129
|
+
one: _.partial(events.one, group),
|
|
8130
|
+
off: _.partial(events.off, group)
|
|
8130
8131
|
};
|
|
8131
8132
|
}
|
|
8132
8133
|
var _trigger = events.trigger;
|
|
8133
8134
|
function eventTrigger(eventName) {
|
|
8134
|
-
var type = _.findWhere(eventTypes, {
|
|
8135
|
+
var type = _.findWhere(eventTypes, { name: eventName });
|
|
8135
8136
|
var argsArr = _.toArray(arguments).slice(1); // minus name, groups
|
|
8136
8137
|
var evt = {};
|
|
8137
8138
|
_.each(type.groups, function (group) {
|
|
@@ -8150,10 +8151,10 @@ Eventable.clear = function (events) {
|
|
|
8150
8151
|
function addEventType(type) {
|
|
8151
8152
|
var eventName = type.name;
|
|
8152
8153
|
events[eventName] = {
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8154
|
+
on: _.partial(events.on, eventName),
|
|
8155
|
+
one: _.partial(events.one, eventName),
|
|
8156
|
+
off: _.partial(events.off, eventName),
|
|
8157
|
+
trigger: _.partial(eventTrigger, eventName)
|
|
8157
8158
|
};
|
|
8158
8159
|
}
|
|
8159
8160
|
_.each(_.values(EVENT_GROUPS), addEventGroup);
|
|
@@ -8167,13 +8168,13 @@ function flux(moduleDefinition) {
|
|
|
8167
8168
|
var mutations = {};
|
|
8168
8169
|
var actions = {};
|
|
8169
8170
|
var store = {
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8171
|
+
state: {},
|
|
8172
|
+
commit: commit,
|
|
8173
|
+
dispatch: dispatch,
|
|
8174
|
+
subscribe: _.partial(subscribe, mutationSubscribers),
|
|
8175
|
+
subscribeAction: _.partial(subscribe, actionSubscribers),
|
|
8176
|
+
registerModule: registerModule,
|
|
8177
|
+
getters: {}
|
|
8177
8178
|
};
|
|
8178
8179
|
if (moduleDefinition) {
|
|
8179
8180
|
store.registerModule([], moduleDefinition);
|
|
@@ -8187,8 +8188,8 @@ function flux(moduleDefinition) {
|
|
|
8187
8188
|
mutation(payload);
|
|
8188
8189
|
_.each(mutationSubscribers, function (subscriber) {
|
|
8189
8190
|
subscriber({
|
|
8190
|
-
|
|
8191
|
-
|
|
8191
|
+
type: mutationPath,
|
|
8192
|
+
payload: payload
|
|
8192
8193
|
}, store.state);
|
|
8193
8194
|
});
|
|
8194
8195
|
}
|
|
@@ -8200,8 +8201,8 @@ function flux(moduleDefinition) {
|
|
|
8200
8201
|
var returnValue = action(payload);
|
|
8201
8202
|
_.each(actionSubscribers, function (subscriber) {
|
|
8202
8203
|
subscriber({
|
|
8203
|
-
|
|
8204
|
-
|
|
8204
|
+
type: actionPath,
|
|
8205
|
+
payload: payload
|
|
8205
8206
|
}, store.state);
|
|
8206
8207
|
});
|
|
8207
8208
|
return returnValue;
|
|
@@ -8258,12 +8259,12 @@ function flux(moduleDefinition) {
|
|
|
8258
8259
|
function createActions(moduleDefinition, moduleState, store, path) {
|
|
8259
8260
|
var actions = {};
|
|
8260
8261
|
var context = {
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8262
|
+
state: moduleState,
|
|
8263
|
+
rootState: store.state,
|
|
8264
|
+
commit: commit,
|
|
8265
|
+
dispatch: dispatch,
|
|
8266
|
+
getters: filterGetters(store.getters, path),
|
|
8267
|
+
rootGetters: store.getters
|
|
8267
8268
|
};
|
|
8268
8269
|
_.each(moduleDefinition.actions, function (action, actionName) {
|
|
8269
8270
|
actions[pathToStr(path, actionName)] = _.partial(action, context);
|
|
@@ -8318,7 +8319,7 @@ store.subscribe(function (mutation, state) {
|
|
|
8318
8319
|
}
|
|
8319
8320
|
function createResult(requestObject) {
|
|
8320
8321
|
var result = {
|
|
8321
|
-
|
|
8322
|
+
status: requestObject.status
|
|
8322
8323
|
};
|
|
8323
8324
|
try {
|
|
8324
8325
|
result.data = JSON.parse(requestObject.responseText);
|
|
@@ -8360,17 +8361,17 @@ store.subscribe(function (mutation, state) {
|
|
|
8360
8361
|
}
|
|
8361
8362
|
function get(url, headers) {
|
|
8362
8363
|
return ajax({
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8364
|
+
method: 'GET',
|
|
8365
|
+
url: url,
|
|
8366
|
+
headers: headers
|
|
8366
8367
|
});
|
|
8367
8368
|
}
|
|
8368
8369
|
function post(url, data, headers) {
|
|
8369
8370
|
return ajax({
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8371
|
+
method: 'POST',
|
|
8372
|
+
url: url,
|
|
8373
|
+
data: data,
|
|
8374
|
+
headers: headers
|
|
8374
8375
|
});
|
|
8375
8376
|
}
|
|
8376
8377
|
function postJSON(url, data, headers) {
|
|
@@ -8425,11 +8426,11 @@ store.subscribe(function (mutation, state) {
|
|
|
8425
8426
|
].join('');
|
|
8426
8427
|
}
|
|
8427
8428
|
return _.extend(ajax, {
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8429
|
+
get: get,
|
|
8430
|
+
post: post,
|
|
8431
|
+
postJSON: postJSON,
|
|
8432
|
+
urlFor: urlFor,
|
|
8433
|
+
supported: function () {
|
|
8433
8434
|
return typeof xhrImpl() !== 'undefined';
|
|
8434
8435
|
}
|
|
8435
8436
|
});
|
|
@@ -8459,8 +8460,8 @@ var buildBaseDataUrl = function (target, apiKey, qsMap) {
|
|
|
8459
8460
|
var writeMessage = function (msg) {
|
|
8460
8461
|
msg += 'v' + VERSION;
|
|
8461
8462
|
var url = buildBaseDataUrl('log.gif', pendo.apiKey, {
|
|
8462
|
-
|
|
8463
|
-
|
|
8463
|
+
msg: msg,
|
|
8464
|
+
version: VERSION
|
|
8464
8465
|
});
|
|
8465
8466
|
return writeImgTag(url);
|
|
8466
8467
|
};
|
|
@@ -8620,18 +8621,18 @@ var _getCss3Prop = function (cssprop) {
|
|
|
8620
8621
|
// Do not auto-px these unit-less numbers,
|
|
8621
8622
|
// this needs to stay camelCase to support the different cases send to the styles functions
|
|
8622
8623
|
var cssNumber = {
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8624
|
+
columnCount: true,
|
|
8625
|
+
fillOpacity: true,
|
|
8626
|
+
flexGrow: true,
|
|
8627
|
+
flexShrink: true,
|
|
8628
|
+
fontWeight: true,
|
|
8629
|
+
lineHeight: true,
|
|
8630
|
+
opacity: true,
|
|
8631
|
+
order: true,
|
|
8632
|
+
orphans: true,
|
|
8633
|
+
widows: true,
|
|
8634
|
+
zIndex: true,
|
|
8635
|
+
zoom: true
|
|
8635
8636
|
};
|
|
8636
8637
|
var setStyle = function (element, style) {
|
|
8637
8638
|
var styleObject = styleToObject(style);
|
|
@@ -8809,10 +8810,10 @@ var getClientRect = function (element) {
|
|
|
8809
8810
|
}
|
|
8810
8811
|
else if ((element === document || element === window)) {
|
|
8811
8812
|
var viewport = {
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8813
|
+
left: window.pageXOffset || pbody.scrollLeft,
|
|
8814
|
+
top: window.pageYOffset || pbody.scrollTop,
|
|
8815
|
+
width: window.innerWidth,
|
|
8816
|
+
height: window.innerHeight
|
|
8816
8817
|
};
|
|
8817
8818
|
viewport.right = viewport.left + viewport.width;
|
|
8818
8819
|
viewport.bottom = viewport.top + viewport.height;
|
|
@@ -8987,10 +8988,10 @@ function getOverflowDirection(elem, overflowPattern) {
|
|
|
8987
8988
|
* @enum {string}
|
|
8988
8989
|
*/
|
|
8989
8990
|
var OverflowDirection = {
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8991
|
+
X: 'x',
|
|
8992
|
+
Y: 'y',
|
|
8993
|
+
BOTH: 'both',
|
|
8994
|
+
NONE: 'none'
|
|
8994
8995
|
};
|
|
8995
8996
|
/**
|
|
8996
8997
|
* Determines if the element is the boy
|
|
@@ -9210,12 +9211,12 @@ function scrollIntoView(element) {
|
|
|
9210
9211
|
*/
|
|
9211
9212
|
var DomQuery = {};
|
|
9212
9213
|
DomQuery.$ = {
|
|
9213
|
-
|
|
9214
|
+
findOrCreate: function (html) {
|
|
9214
9215
|
if (this.length > 0)
|
|
9215
9216
|
return this;
|
|
9216
9217
|
return dom(html);
|
|
9217
9218
|
},
|
|
9218
|
-
|
|
9219
|
+
find: function (selector) {
|
|
9219
9220
|
var newDom = dom();
|
|
9220
9221
|
newDom.context = this.context;
|
|
9221
9222
|
this.each(function () {
|
|
@@ -9238,7 +9239,7 @@ DomQuery.$ = {
|
|
|
9238
9239
|
* @example
|
|
9239
9240
|
* pendo.dom('div.foo').each((elem) => console.log('elem.id is', elem.id))
|
|
9240
9241
|
*/
|
|
9241
|
-
|
|
9242
|
+
each: function (callback) {
|
|
9242
9243
|
var self = this;
|
|
9243
9244
|
for (var i = 0, ii = self.length; i < ii; ++i) {
|
|
9244
9245
|
callback.call(self[i], self[i], i);
|
|
@@ -9256,7 +9257,7 @@ DomQuery.$ = {
|
|
|
9256
9257
|
* @example
|
|
9257
9258
|
* pendo.dom('div.foo').html('<span>hello there</span>');
|
|
9258
9259
|
*/
|
|
9259
|
-
|
|
9260
|
+
html: function (content) {
|
|
9260
9261
|
if (content === undefined) {
|
|
9261
9262
|
return this.length ? this[0].innerHTML : this;
|
|
9262
9263
|
}
|
|
@@ -9277,7 +9278,7 @@ DomQuery.$ = {
|
|
|
9277
9278
|
* @example
|
|
9278
9279
|
* pendo.dom('div.foo').text('hello there');
|
|
9279
9280
|
*/
|
|
9280
|
-
|
|
9281
|
+
text: function (content) {
|
|
9281
9282
|
var useInnerText = 'innerText' in document.body;
|
|
9282
9283
|
if (content === undefined) {
|
|
9283
9284
|
if (useInnerText) {
|
|
@@ -9307,7 +9308,7 @@ DomQuery.$ = {
|
|
|
9307
9308
|
* @example
|
|
9308
9309
|
* pendo.dom('div.foo').addClass('adds each word as a class')
|
|
9309
9310
|
*/
|
|
9310
|
-
|
|
9311
|
+
addClass: function (classNames) {
|
|
9311
9312
|
classNames = classNames.split(/\s+/);
|
|
9312
9313
|
return this.each(function (elem) {
|
|
9313
9314
|
_.each(classNames, function (className) {
|
|
@@ -9326,7 +9327,7 @@ DomQuery.$ = {
|
|
|
9326
9327
|
* @example
|
|
9327
9328
|
* pendo.dom('div.foo').removeClass('removes each word')
|
|
9328
9329
|
*/
|
|
9329
|
-
|
|
9330
|
+
removeClass: function (classNames) {
|
|
9330
9331
|
classNames = classNames.split(/\s+/);
|
|
9331
9332
|
return this.each(function (elem) {
|
|
9332
9333
|
_.each(classNames, function (className) {
|
|
@@ -9345,7 +9346,7 @@ DomQuery.$ = {
|
|
|
9345
9346
|
* @example
|
|
9346
9347
|
* var allHaveClass = pendo.dom('div.foo').hasClass('check for classes')
|
|
9347
9348
|
*/
|
|
9348
|
-
|
|
9349
|
+
hasClass: function (classNames) {
|
|
9349
9350
|
classNames = classNames.split(/\s+/);
|
|
9350
9351
|
var allElemsHaveClass = true;
|
|
9351
9352
|
if (this.length === 0)
|
|
@@ -9369,7 +9370,7 @@ DomQuery.$ = {
|
|
|
9369
9370
|
* @example
|
|
9370
9371
|
* pendo.dom('div.foo').toggleClass('adds or removes each class')
|
|
9371
9372
|
*/
|
|
9372
|
-
|
|
9373
|
+
toggleClass: function (classNames) {
|
|
9373
9374
|
classNames = classNames.split(/\s+/);
|
|
9374
9375
|
return this.each(function (elem) {
|
|
9375
9376
|
_.each(classNames, function (className) {
|
|
@@ -9393,7 +9394,7 @@ DomQuery.$ = {
|
|
|
9393
9394
|
* @example
|
|
9394
9395
|
* pendo.dom('div.foo').css({height: '100px', width: '50px'}
|
|
9395
9396
|
*/
|
|
9396
|
-
|
|
9397
|
+
css: function (styles) {
|
|
9397
9398
|
this.each(function () {
|
|
9398
9399
|
setStyle(this, styles);
|
|
9399
9400
|
});
|
|
@@ -9411,7 +9412,7 @@ DomQuery.$ = {
|
|
|
9411
9412
|
* @example
|
|
9412
9413
|
* pendo.dom('div.foo').appendTo('div.parent')
|
|
9413
9414
|
*/
|
|
9414
|
-
|
|
9415
|
+
appendTo: function (selector) {
|
|
9415
9416
|
dom(selector).append(this);
|
|
9416
9417
|
return this;
|
|
9417
9418
|
},
|
|
@@ -9426,7 +9427,7 @@ DomQuery.$ = {
|
|
|
9426
9427
|
* @example
|
|
9427
9428
|
* pendo.dom('div.foo').append('span.bar')
|
|
9428
9429
|
*/
|
|
9429
|
-
|
|
9430
|
+
append: function (selector) {
|
|
9430
9431
|
var self = this;
|
|
9431
9432
|
dom(selector).each(function () {
|
|
9432
9433
|
if (self.length) {
|
|
@@ -9450,7 +9451,7 @@ DomQuery.$ = {
|
|
|
9450
9451
|
* @example
|
|
9451
9452
|
* pendo.dom('div.foo').prependTo('div.parent')
|
|
9452
9453
|
*/
|
|
9453
|
-
|
|
9454
|
+
prependTo: function (selector) {
|
|
9454
9455
|
dom(selector).prepend(this);
|
|
9455
9456
|
return this;
|
|
9456
9457
|
},
|
|
@@ -9465,7 +9466,7 @@ DomQuery.$ = {
|
|
|
9465
9466
|
* @example
|
|
9466
9467
|
* pendo.dom('div.foo').prepend('div.new-first-child')
|
|
9467
9468
|
*/
|
|
9468
|
-
|
|
9469
|
+
prepend: function (selector) {
|
|
9469
9470
|
var self = this;
|
|
9470
9471
|
if (self.length) {
|
|
9471
9472
|
var target = self[0];
|
|
@@ -9491,7 +9492,7 @@ DomQuery.$ = {
|
|
|
9491
9492
|
* @example
|
|
9492
9493
|
* var parent = pendo.dom('div.foo').getParent()
|
|
9493
9494
|
*/
|
|
9494
|
-
|
|
9495
|
+
getParent: function () {
|
|
9495
9496
|
var target = dom(this)[0];
|
|
9496
9497
|
if (target && target.parentNode) {
|
|
9497
9498
|
return dom(target.parentNode);
|
|
@@ -9509,7 +9510,7 @@ DomQuery.$ = {
|
|
|
9509
9510
|
* @example
|
|
9510
9511
|
* pendo.dom('div.foo').insertBefore('div.beforeFoo')
|
|
9511
9512
|
*/
|
|
9512
|
-
|
|
9513
|
+
insertBefore: function (selector) {
|
|
9513
9514
|
var target = dom(selector)[0];
|
|
9514
9515
|
if (target && target.parentNode) {
|
|
9515
9516
|
target.parentNode.insertBefore(this[0], target);
|
|
@@ -9529,7 +9530,7 @@ DomQuery.$ = {
|
|
|
9529
9530
|
* @example
|
|
9530
9531
|
* pendo.dom('div.foo').remove()
|
|
9531
9532
|
*/
|
|
9532
|
-
|
|
9533
|
+
remove: function () {
|
|
9533
9534
|
this.each(function () {
|
|
9534
9535
|
if (this.parentNode) {
|
|
9535
9536
|
this.parentNode.removeChild(this);
|
|
@@ -9549,7 +9550,7 @@ DomQuery.$ = {
|
|
|
9549
9550
|
* @example
|
|
9550
9551
|
* pendo.dom('div.foo').attr('data-foo', 'bar')
|
|
9551
9552
|
*/
|
|
9552
|
-
|
|
9553
|
+
attr: function (attrName, attrValue) {
|
|
9553
9554
|
if (_.isObject(attrName)) {
|
|
9554
9555
|
this.each(function () {
|
|
9555
9556
|
_.each(attrName, function (attrValue, attrName) {
|
|
@@ -9585,7 +9586,7 @@ DomQuery.$ = {
|
|
|
9585
9586
|
* @example
|
|
9586
9587
|
* dom('div.foo').closest('.bar', '.content-area')
|
|
9587
9588
|
*/
|
|
9588
|
-
|
|
9589
|
+
closest: function (selector, demarcation) {
|
|
9589
9590
|
var elem = this[0];
|
|
9590
9591
|
while (elem && !SizzleProxy.matchesSelector(elem, selector)) {
|
|
9591
9592
|
elem = getParent(elem);
|
|
@@ -9595,7 +9596,7 @@ DomQuery.$ = {
|
|
|
9595
9596
|
}
|
|
9596
9597
|
return dom(elem);
|
|
9597
9598
|
},
|
|
9598
|
-
|
|
9599
|
+
eq: function (index) {
|
|
9599
9600
|
return dom(this[index]);
|
|
9600
9601
|
},
|
|
9601
9602
|
/**
|
|
@@ -9611,7 +9612,7 @@ DomQuery.$ = {
|
|
|
9611
9612
|
* @example
|
|
9612
9613
|
* pendo.dom('div.foo).height()
|
|
9613
9614
|
*/
|
|
9614
|
-
|
|
9615
|
+
height: function (height) {
|
|
9615
9616
|
if (this.length) {
|
|
9616
9617
|
if (height === undefined) {
|
|
9617
9618
|
return this[0].offsetHeight;
|
|
@@ -9635,7 +9636,7 @@ DomQuery.$ = {
|
|
|
9635
9636
|
* @example
|
|
9636
9637
|
* pendo.dom('div.foo).width()
|
|
9637
9638
|
*/
|
|
9638
|
-
|
|
9639
|
+
width: function (width) {
|
|
9639
9640
|
if (this.length) {
|
|
9640
9641
|
if (width === undefined) {
|
|
9641
9642
|
return this[0].offsetWidth;
|
|
@@ -9656,7 +9657,7 @@ DomQuery.$ = {
|
|
|
9656
9657
|
* @example
|
|
9657
9658
|
* pendo.dom('div.foo').focus()
|
|
9658
9659
|
*/
|
|
9659
|
-
|
|
9660
|
+
focus: function () {
|
|
9660
9661
|
return this.each(function () {
|
|
9661
9662
|
if (_.isFunction(this.focus)) {
|
|
9662
9663
|
this.focus();
|
|
@@ -9675,7 +9676,7 @@ DomQuery.$ = {
|
|
|
9675
9676
|
var DomObserver = /** @class */ (function () {
|
|
9676
9677
|
function DomObserver(container, config) {
|
|
9677
9678
|
if (container === void 0) { container = getBody(); }
|
|
9678
|
-
if (config === void 0) { config = {
|
|
9679
|
+
if (config === void 0) { config = { attributes: true, childList: true, subtree: true }; }
|
|
9679
9680
|
var _this = this;
|
|
9680
9681
|
this.listeners = [];
|
|
9681
9682
|
this._teardown = function () { };
|
|
@@ -9894,23 +9895,23 @@ var ElementGetter = /** @class */ (function () {
|
|
|
9894
9895
|
}());
|
|
9895
9896
|
|
|
9896
9897
|
_.extend(dom, {
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
|
|
9898
|
+
data: DomData$1,
|
|
9899
|
+
event: DomEvent,
|
|
9900
|
+
removeNode: removeNode,
|
|
9901
|
+
getClass: _getClass,
|
|
9902
|
+
hasClass: _hasClass,
|
|
9903
|
+
addClass: addClass,
|
|
9904
|
+
removeClass: removeClass,
|
|
9905
|
+
getBody: getBody,
|
|
9906
|
+
getComputedStyle: getComputedStyle_safe,
|
|
9907
|
+
getClientRect: getClientRect,
|
|
9908
|
+
intersectRect: intersectRect,
|
|
9909
|
+
getScrollParent: getScrollParent,
|
|
9910
|
+
isElementVisible: isElementVisible,
|
|
9911
|
+
Observer: DomObserver,
|
|
9912
|
+
Element: ElementGetter,
|
|
9913
|
+
scrollIntoView: scrollIntoView,
|
|
9914
|
+
getRootNode: getRootNode
|
|
9914
9915
|
});
|
|
9915
9916
|
_.extend(dom.prototype, DomEvent.$, DomQuery.$);
|
|
9916
9917
|
|