You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2022/05/02 14:28:42 UTC
[myfaces-tobago] branch tobago-4.x updated: chore: Update popper js to 1.16.1
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch tobago-4.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/tobago-4.x by this push:
new 003204b54b chore: Update popper js to 1.16.1
003204b54b is described below
commit 003204b54bb5d3df491ba4c8eab52fe800b6c4f0
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Mon May 2 16:24:23 2022 +0200
chore: Update popper js to 1.16.1
We need the UMD version of popper.js for correct initialization.
Issue: TOBAGO-2115
---
.../tobago/standard/popper-js/1.16.1/popper.js | 822 ++++++++++++---------
.../tobago/standard/popper-js/1.16.1/popper.js.map | 2 +-
.../tobago/standard/popper-js/1.16.1/popper.min.js | 2 +-
.../standard/popper-js/1.16.1/popper.min.js.map | 2 +-
4 files changed, 495 insertions(+), 333 deletions(-)
diff --git a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.js b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.js
index 7ce8395b2b..1e0574ffc9 100644
--- a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.js
+++ b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.js
@@ -1,6 +1,6 @@
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
- * @version 1.16.1
+ * @version 1.16.1-lts
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
@@ -22,11 +22,17 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
+(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
+ typeof define === 'function' && define.amd ? define(factory) :
+ (global.Popper = factory());
+}(this, (function () { 'use strict';
+
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
-const timeoutDuration = function () {
- const longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
- for (let i = 0; i < longerTimeoutBrowsers.length; i += 1) {
+var timeoutDuration = function () {
+ var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
+ for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
return 1;
}
@@ -35,13 +41,13 @@ const timeoutDuration = function () {
}();
function microtaskDebounce(fn) {
- let called = false;
- return () => {
+ var called = false;
+ return function () {
if (called) {
return;
}
called = true;
- window.Promise.resolve().then(() => {
+ window.Promise.resolve().then(function () {
called = false;
fn();
});
@@ -49,11 +55,11 @@ function microtaskDebounce(fn) {
}
function taskDebounce(fn) {
- let scheduled = false;
- return () => {
+ var scheduled = false;
+ return function () {
if (!scheduled) {
scheduled = true;
- setTimeout(() => {
+ setTimeout(function () {
scheduled = false;
fn();
}, timeoutDuration);
@@ -61,7 +67,7 @@ function taskDebounce(fn) {
};
}
-const supportsMicroTasks = isBrowser && window.Promise;
+var supportsMicroTasks = isBrowser && window.Promise;
/**
* Create a debounced version of a method, that's asynchronously deferred
@@ -82,7 +88,7 @@ var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;
* @returns {Boolean} answer to: is a function?
*/
function isFunction(functionToCheck) {
- const getType = {};
+ var getType = {};
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
}
@@ -98,8 +104,8 @@ function getStyleComputedProperty(element, property) {
return [];
}
// NOTE: 1 DOM access here
- const window = element.ownerDocument.defaultView;
- const css = window.getComputedStyle(element, null);
+ var window = element.ownerDocument.defaultView;
+ var css = window.getComputedStyle(element, null);
return property ? css[property] : css;
}
@@ -139,7 +145,12 @@ function getScrollParent(element) {
}
// Firefox want us to check `-x` and `-y` variations as well
- const { overflow, overflowX, overflowY } = getStyleComputedProperty(element);
+
+ var _getStyleComputedProp = getStyleComputedProperty(element),
+ overflow = _getStyleComputedProp.overflow,
+ overflowX = _getStyleComputedProp.overflowX,
+ overflowY = _getStyleComputedProp.overflowY;
+
if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {
return element;
}
@@ -158,8 +169,8 @@ function getReferenceNode(reference) {
return reference && reference.referenceNode ? reference.referenceNode : reference;
}
-const isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);
-const isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);
+var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);
+var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);
/**
* Determines if the browser is Internet Explorer
@@ -190,16 +201,16 @@ function getOffsetParent(element) {
return document.documentElement;
}
- const noOffsetParent = isIE(10) ? document.body : null;
+ var noOffsetParent = isIE(10) ? document.body : null;
// NOTE: 1 DOM access here
- let offsetParent = element.offsetParent || null;
+ var offsetParent = element.offsetParent || null;
// Skip hidden elements which don't have an offsetParent
while (offsetParent === noOffsetParent && element.nextElementSibling) {
offsetParent = (element = element.nextElementSibling).offsetParent;
}
- const nodeName = offsetParent && offsetParent.nodeName;
+ var nodeName = offsetParent && offsetParent.nodeName;
if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {
return element ? element.ownerDocument.documentElement : document.documentElement;
@@ -215,7 +226,8 @@ function getOffsetParent(element) {
}
function isOffsetContainer(element) {
- const { nodeName } = element;
+ var nodeName = element.nodeName;
+
if (nodeName === 'BODY') {
return false;
}
@@ -252,17 +264,18 @@ function findCommonOffsetParent(element1, element2) {
}
// Here we make sure to give as "start" the element that comes first in the DOM
- const order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;
- const start = order ? element1 : element2;
- const end = order ? element2 : element1;
+ var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;
+ var start = order ? element1 : element2;
+ var end = order ? element2 : element1;
// Get common ancestor container
- const range = document.createRange();
+ var range = document.createRange();
range.setStart(start, 0);
range.setEnd(end, 0);
- const { commonAncestorContainer } = range;
+ var commonAncestorContainer = range.commonAncestorContainer;
// Both nodes are inside #document
+
if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {
if (isOffsetContainer(commonAncestorContainer)) {
return commonAncestorContainer;
@@ -272,7 +285,7 @@ function findCommonOffsetParent(element1, element2) {
}
// one of the nodes is inside shadowDOM, find which one
- const element1root = getRoot(element1);
+ var element1root = getRoot(element1);
if (element1root.host) {
return findCommonOffsetParent(element1root.host, element2);
} else {
@@ -288,13 +301,15 @@ function findCommonOffsetParent(element1, element2) {
* @argument {String} side `top` or `left`
* @returns {number} amount of scrolled pixels
*/
-function getScroll(element, side = 'top') {
- const upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';
- const nodeName = element.nodeName;
+function getScroll(element) {
+ var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';
+
+ var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';
+ var nodeName = element.nodeName;
if (nodeName === 'BODY' || nodeName === 'HTML') {
- const html = element.ownerDocument.documentElement;
- const scrollingElement = element.ownerDocument.scrollingElement || html;
+ var html = element.ownerDocument.documentElement;
+ var scrollingElement = element.ownerDocument.scrollingElement || html;
return scrollingElement[upperSide];
}
@@ -310,10 +325,12 @@ function getScroll(element, side = 'top') {
* @param {Boolean} subtract - set to true if you want to subtract the scroll values
* @return {Object} rect - The modifier rect object
*/
-function includeScroll(rect, element, subtract = false) {
- const scrollTop = getScroll(element, 'top');
- const scrollLeft = getScroll(element, 'left');
- const modifier = subtract ? -1 : 1;
+function includeScroll(rect, element) {
+ var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
+
+ var scrollTop = getScroll(element, 'top');
+ var scrollLeft = getScroll(element, 'left');
+ var modifier = subtract ? -1 : 1;
rect.top += scrollTop * modifier;
rect.bottom += scrollTop * modifier;
rect.left += scrollLeft * modifier;
@@ -332,20 +349,20 @@ function includeScroll(rect, element, subtract = false) {
*/
function getBordersSize(styles, axis) {
- const sideA = axis === 'x' ? 'Left' : 'Top';
- const sideB = sideA === 'Left' ? 'Right' : 'Bottom';
+ var sideA = axis === 'x' ? 'Left' : 'Top';
+ var sideB = sideA === 'Left' ? 'Right' : 'Bottom';
- return parseFloat(styles[`border${sideA}Width`]) + parseFloat(styles[`border${sideB}Width`]);
+ return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);
}
function getSize(axis, body, html, computedStyle) {
- return Math.max(body[`offset${axis}`], body[`scroll${axis}`], html[`client${axis}`], html[`offset${axis}`], html[`scroll${axis}`], isIE(10) ? parseInt(html[`offset${axis}`]) + parseInt(computedStyle[`margin${axis === 'Height' ? 'Top' : 'Left'}`]) + parseInt(computedStyle[`margin${axis === 'Height' ? 'Bottom' : 'Right'}`]) : 0);
+ return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);
}
function getWindowSizes(document) {
- const body = document.body;
- const html = document.documentElement;
- const computedStyle = isIE(10) && getComputedStyle(html);
+ var body = document.body;
+ var html = document.documentElement;
+ var computedStyle = isIE(10) && getComputedStyle(html);
return {
height: getSize('Height', body, html, computedStyle),
@@ -353,6 +370,49 @@ function getWindowSizes(document) {
};
}
+var classCallCheck = function (instance, Constructor) {
+ if (!(instance instanceof Constructor)) {
+ throw new TypeError("Cannot call a class as a function");
+ }
+};
+
+var createClass = function () {
+ function defineProperties(target, props) {
+ for (var i = 0; i < props.length; i++) {
+ var descriptor = props[i];
+ descriptor.enumerable = descriptor.enumerable || false;
+ descriptor.configurable = true;
+ if ("value" in descriptor) descriptor.writable = true;
+ Object.defineProperty(target, descriptor.key, descriptor);
+ }
+ }
+
+ return function (Constructor, protoProps, staticProps) {
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
+ if (staticProps) defineProperties(Constructor, staticProps);
+ return Constructor;
+ };
+}();
+
+
+
+
+
+var defineProperty = function (obj, key, value) {
+ if (key in obj) {
+ Object.defineProperty(obj, key, {
+ value: value,
+ enumerable: true,
+ configurable: true,
+ writable: true
+ });
+ } else {
+ obj[key] = value;
+ }
+
+ return obj;
+};
+
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@@ -389,7 +449,7 @@ function getClientRect(offsets) {
* @return {Object} client rect
*/
function getBoundingClientRect(element) {
- let rect = {};
+ var rect = {};
// IE10 10 FIX: Please, don't ask, the element isn't
// considered in DOM in some circumstances...
@@ -397,8 +457,8 @@ function getBoundingClientRect(element) {
try {
if (isIE(10)) {
rect = element.getBoundingClientRect();
- const scrollTop = getScroll(element, 'top');
- const scrollLeft = getScroll(element, 'left');
+ var scrollTop = getScroll(element, 'top');
+ var scrollLeft = getScroll(element, 'left');
rect.top += scrollTop;
rect.left += scrollLeft;
rect.bottom += scrollTop;
@@ -408,7 +468,7 @@ function getBoundingClientRect(element) {
}
} catch (e) {}
- const result = {
+ var result = {
left: rect.left,
top: rect.top,
width: rect.right - rect.left,
@@ -416,17 +476,17 @@ function getBoundingClientRect(element) {
};
// subtract scrollbar size from sizes
- const sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
- const width = sizes.width || element.clientWidth || result.width;
- const height = sizes.height || element.clientHeight || result.height;
+ var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
+ var width = sizes.width || element.clientWidth || result.width;
+ var height = sizes.height || element.clientHeight || result.height;
- let horizScrollbar = element.offsetWidth - width;
- let vertScrollbar = element.offsetHeight - height;
+ var horizScrollbar = element.offsetWidth - width;
+ var vertScrollbar = element.offsetHeight - height;
// if an hypothetical scrollbar is detected, we must be sure it's not a `border`
// we make this check conditional for performance reasons
if (horizScrollbar || vertScrollbar) {
- const styles = getStyleComputedProperty(element);
+ var styles = getStyleComputedProperty(element);
horizScrollbar -= getBordersSize(styles, 'x');
vertScrollbar -= getBordersSize(styles, 'y');
@@ -437,23 +497,25 @@ function getBoundingClientRect(element) {
return getClientRect(result);
}
-function getOffsetRectRelativeToArbitraryNode(children, parent, fixedPosition = false) {
- const isIE10 = isIE(10);
- const isHTML = parent.nodeName === 'HTML';
- const childrenRect = getBoundingClientRect(children);
- const parentRect = getBoundingClientRect(parent);
- const scrollParent = getScrollParent(children);
+function getOffsetRectRelativeToArbitraryNode(children, parent) {
+ var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
+
+ var isIE10 = isIE(10);
+ var isHTML = parent.nodeName === 'HTML';
+ var childrenRect = getBoundingClientRect(children);
+ var parentRect = getBoundingClientRect(parent);
+ var scrollParent = getScrollParent(children);
- const styles = getStyleComputedProperty(parent);
- const borderTopWidth = parseFloat(styles.borderTopWidth);
- const borderLeftWidth = parseFloat(styles.borderLeftWidth);
+ var styles = getStyleComputedProperty(parent);
+ var borderTopWidth = parseFloat(styles.borderTopWidth);
+ var borderLeftWidth = parseFloat(styles.borderLeftWidth);
// In cases where the parent is fixed, we must ignore negative scroll in offset calc
if (fixedPosition && isHTML) {
parentRect.top = Math.max(parentRect.top, 0);
parentRect.left = Math.max(parentRect.left, 0);
}
- let offsets = getClientRect({
+ var offsets = getClientRect({
top: childrenRect.top - parentRect.top - borderTopWidth,
left: childrenRect.left - parentRect.left - borderLeftWidth,
width: childrenRect.width,
@@ -467,8 +529,8 @@ function getOffsetRectRelativeToArbitraryNode(children, parent, fixedPosition =
// differently when margins are applied to it. The margins are included in
// the box of the documentElement, in the other cases not.
if (!isIE10 && isHTML) {
- const marginTop = parseFloat(styles.marginTop);
- const marginLeft = parseFloat(styles.marginLeft);
+ var marginTop = parseFloat(styles.marginTop);
+ var marginLeft = parseFloat(styles.marginLeft);
offsets.top -= borderTopWidth - marginTop;
offsets.bottom -= borderTopWidth - marginTop;
@@ -487,20 +549,22 @@ function getOffsetRectRelativeToArbitraryNode(children, parent, fixedPosition =
return offsets;
}
-function getViewportOffsetRectRelativeToArtbitraryNode(element, excludeScroll = false) {
- const html = element.ownerDocument.documentElement;
- const relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);
- const width = Math.max(html.clientWidth, window.innerWidth || 0);
- const height = Math.max(html.clientHeight, window.innerHeight || 0);
+function getViewportOffsetRectRelativeToArtbitraryNode(element) {
+ var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+
+ var html = element.ownerDocument.documentElement;
+ var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);
+ var width = Math.max(html.clientWidth, window.innerWidth || 0);
+ var height = Math.max(html.clientHeight, window.innerHeight || 0);
- const scrollTop = !excludeScroll ? getScroll(html) : 0;
- const scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;
+ var scrollTop = !excludeScroll ? getScroll(html) : 0;
+ var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;
- const offset = {
+ var offset = {
top: scrollTop - relativeOffset.top + relativeOffset.marginTop,
left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,
- width,
- height
+ width: width,
+ height: height
};
return getClientRect(offset);
@@ -515,14 +579,14 @@ function getViewportOffsetRectRelativeToArtbitraryNode(element, excludeScroll =
* @returns {Boolean} answer to "isFixed?"
*/
function isFixed(element) {
- const nodeName = element.nodeName;
+ var nodeName = element.nodeName;
if (nodeName === 'BODY' || nodeName === 'HTML') {
return false;
}
if (getStyleComputedProperty(element, 'position') === 'fixed') {
return true;
}
- const parentNode = getParentNode(element);
+ var parentNode = getParentNode(element);
if (!parentNode) {
return false;
}
@@ -542,7 +606,7 @@ function getFixedPositionOffsetParent(element) {
if (!element || !element.parentElement || isIE()) {
return document.documentElement;
}
- let el = element.parentElement;
+ var el = element.parentElement;
while (el && getStyleComputedProperty(el, 'transform') === 'none') {
el = el.parentElement;
}
@@ -560,18 +624,20 @@ function getFixedPositionOffsetParent(element) {
* @param {Boolean} fixedPosition - Is in fixed position mode
* @returns {Object} Coordinates of the boundaries
*/
-function getBoundaries(popper, reference, padding, boundariesElement, fixedPosition = false) {
+function getBoundaries(popper, reference, padding, boundariesElement) {
+ var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
+
// NOTE: 1 DOM access here
- let boundaries = { top: 0, left: 0 };
- const offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
+ var boundaries = { top: 0, left: 0 };
+ var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
// Handle viewport case
if (boundariesElement === 'viewport') {
boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);
} else {
// Handle other cases based on DOM element used as boundaries
- let boundariesNode;
+ var boundariesNode = void 0;
if (boundariesElement === 'scrollParent') {
boundariesNode = getScrollParent(getParentNode(reference));
if (boundariesNode.nodeName === 'BODY') {
@@ -583,11 +649,14 @@ function getBoundaries(popper, reference, padding, boundariesElement, fixedPosit
boundariesNode = boundariesElement;
}
- const offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);
+ var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);
// In case of HTML, we need a different computation
if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {
- const { height, width } = getWindowSizes(popper.ownerDocument);
+ var _getWindowSizes = getWindowSizes(popper.ownerDocument),
+ height = _getWindowSizes.height,
+ width = _getWindowSizes.width;
+
boundaries.top += offsets.top - offsets.marginTop;
boundaries.bottom = height + offsets.top;
boundaries.left += offsets.left - offsets.marginLeft;
@@ -600,7 +669,7 @@ function getBoundaries(popper, reference, padding, boundariesElement, fixedPosit
// Add paddings
padding = padding || 0;
- const isPaddingNumber = typeof padding === 'number';
+ var isPaddingNumber = typeof padding === 'number';
boundaries.left += isPaddingNumber ? padding : padding.left || 0;
boundaries.top += isPaddingNumber ? padding : padding.top || 0;
boundaries.right -= isPaddingNumber ? padding : padding.right || 0;
@@ -609,7 +678,10 @@ function getBoundaries(popper, reference, padding, boundariesElement, fixedPosit
return boundaries;
}
-function getArea({ width, height }) {
+function getArea(_ref) {
+ var width = _ref.width,
+ height = _ref.height;
+
return width * height;
}
@@ -622,14 +694,16 @@ function getArea({ width, height }) {
* @argument {Object} options - Modifiers configuration and options
* @returns {Object} The data object, properly modified
*/
-function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement, padding = 0) {
+function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {
+ var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
+
if (placement.indexOf('auto') === -1) {
return placement;
}
- const boundaries = getBoundaries(popper, reference, padding, boundariesElement);
+ var boundaries = getBoundaries(popper, reference, padding, boundariesElement);
- const rects = {
+ var rects = {
top: {
width: boundaries.width,
height: refRect.top - boundaries.top
@@ -648,19 +722,27 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
}
};
- const sortedAreas = Object.keys(rects).map(key => _extends({
- key
- }, rects[key], {
- area: getArea(rects[key])
- })).sort((a, b) => b.area - a.area);
+ var sortedAreas = Object.keys(rects).map(function (key) {
+ return _extends({
+ key: key
+ }, rects[key], {
+ area: getArea(rects[key])
+ });
+ }).sort(function (a, b) {
+ return b.area - a.area;
+ });
- const filteredAreas = sortedAreas.filter(({ width, height }) => width >= popper.clientWidth && height >= popper.clientHeight);
+ var filteredAreas = sortedAreas.filter(function (_ref2) {
+ var width = _ref2.width,
+ height = _ref2.height;
+ return width >= popper.clientWidth && height >= popper.clientHeight;
+ });
- const computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;
+ var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;
- const variation = placement.split('-')[1];
+ var variation = placement.split('-')[1];
- return computedPlacement + (variation ? `-${variation}` : '');
+ return computedPlacement + (variation ? '-' + variation : '');
}
/**
@@ -673,8 +755,10 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
* @param {Element} fixedPosition - is in fixed position mode
* @returns {Object} An object containing the offsets which will be applied to the popper
*/
-function getReferenceOffsets(state, popper, reference, fixedPosition = null) {
- const commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
+function getReferenceOffsets(state, popper, reference) {
+ var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
+
+ var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);
}
@@ -686,11 +770,11 @@ function getReferenceOffsets(state, popper, reference, fixedPosition = null) {
* @returns {Object} object containing width and height properties
*/
function getOuterSizes(element) {
- const window = element.ownerDocument.defaultView;
- const styles = window.getComputedStyle(element);
- const x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);
- const y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);
- const result = {
+ var window = element.ownerDocument.defaultView;
+ var styles = window.getComputedStyle(element);
+ var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);
+ var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);
+ var result = {
width: element.offsetWidth + y,
height: element.offsetHeight + x
};
@@ -705,8 +789,10 @@ function getOuterSizes(element) {
* @returns {String} flipped placement
*/
function getOppositePlacement(placement) {
- const hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
- return placement.replace(/left|right|bottom|top/g, matched => hash[matched]);
+ var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
+ return hash[matched];
+ });
}
/**
@@ -723,20 +809,20 @@ function getPopperOffsets(popper, referenceOffsets, placement) {
placement = placement.split('-')[0];
// Get popper node sizes
- const popperRect = getOuterSizes(popper);
+ var popperRect = getOuterSizes(popper);
// Add position, width and height to our offsets object
- const popperOffsets = {
+ var popperOffsets = {
width: popperRect.width,
height: popperRect.height
};
// depending by the popper placement we have to compute its offsets slightly differently
- const isHoriz = ['right', 'left'].indexOf(placement) !== -1;
- const mainSide = isHoriz ? 'top' : 'left';
- const secondarySide = isHoriz ? 'left' : 'top';
- const measurement = isHoriz ? 'height' : 'width';
- const secondaryMeasurement = !isHoriz ? 'height' : 'width';
+ var isHoriz = ['right', 'left'].indexOf(placement) !== -1;
+ var mainSide = isHoriz ? 'top' : 'left';
+ var secondarySide = isHoriz ? 'left' : 'top';
+ var measurement = isHoriz ? 'height' : 'width';
+ var secondaryMeasurement = !isHoriz ? 'height' : 'width';
popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;
if (placement === secondarySide) {
@@ -779,11 +865,15 @@ function find(arr, check) {
function findIndex(arr, prop, value) {
// use native findIndex if supported
if (Array.prototype.findIndex) {
- return arr.findIndex(cur => cur[prop] === value);
+ return arr.findIndex(function (cur) {
+ return cur[prop] === value;
+ });
}
// use `find` + `indexOf` if `findIndex` isn't supported
- const match = find(arr, obj => obj[prop] === value);
+ var match = find(arr, function (obj) {
+ return obj[prop] === value;
+ });
return arr.indexOf(match);
}
@@ -798,14 +888,14 @@ function findIndex(arr, prop, value) {
* @returns {dataObject}
*/
function runModifiers(modifiers, data, ends) {
- const modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));
+ var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));
- modifiersToRun.forEach(modifier => {
+ modifiersToRun.forEach(function (modifier) {
if (modifier['function']) {
// eslint-disable-line dot-notation
console.warn('`modifier.function` is deprecated, use `modifier.fn`!');
}
- const fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation
+ var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation
if (modifier.enabled && isFunction(fn)) {
// Add properties to offsets to make them a complete clientRect object
// we do this before each modifier to make sure the previous one doesn't
@@ -833,7 +923,7 @@ function update() {
return;
}
- let data = {
+ var data = {
instance: this,
styles: {},
arrowStyles: {},
@@ -880,7 +970,11 @@ function update() {
* @returns {Boolean}
*/
function isModifierEnabled(modifiers, modifierName) {
- return modifiers.some(({ name, enabled }) => enabled && name === modifierName);
+ return modifiers.some(function (_ref) {
+ var name = _ref.name,
+ enabled = _ref.enabled;
+ return enabled && name === modifierName;
+ });
}
/**
@@ -891,12 +985,12 @@ function isModifierEnabled(modifiers, modifierName) {
* @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)
*/
function getSupportedPropertyName(property) {
- const prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];
- const upperProp = property.charAt(0).toUpperCase() + property.slice(1);
+ var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];
+ var upperProp = property.charAt(0).toUpperCase() + property.slice(1);
- for (let i = 0; i < prefixes.length; i++) {
- const prefix = prefixes[i];
- const toCheck = prefix ? `${prefix}${upperProp}` : property;
+ for (var i = 0; i < prefixes.length; i++) {
+ var prefix = prefixes[i];
+ var toCheck = prefix ? '' + prefix + upperProp : property;
if (typeof document.body.style[toCheck] !== 'undefined') {
return toCheck;
}
@@ -940,13 +1034,13 @@ function destroy() {
* @returns {Window}
*/
function getWindow(element) {
- const ownerDocument = element.ownerDocument;
+ var ownerDocument = element.ownerDocument;
return ownerDocument ? ownerDocument.defaultView : window;
}
function attachToScrollParents(scrollParent, event, callback, scrollParents) {
- const isBody = scrollParent.nodeName === 'BODY';
- const target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;
+ var isBody = scrollParent.nodeName === 'BODY';
+ var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;
target.addEventListener(event, callback, { passive: true });
if (!isBody) {
@@ -967,7 +1061,7 @@ function setupEventListeners(reference, options, state, updateBound) {
getWindow(reference).addEventListener('resize', state.updateBound, { passive: true });
// Scroll event listener on scroll parents
- const scrollElement = getScrollParent(reference);
+ var scrollElement = getScrollParent(reference);
attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);
state.scrollElement = scrollElement;
state.eventsEnabled = true;
@@ -998,7 +1092,7 @@ function removeEventListeners(reference, state) {
getWindow(reference).removeEventListener('resize', state.updateBound);
// Remove scroll event listener on scroll parents
- state.scrollParents.forEach(target => {
+ state.scrollParents.forEach(function (target) {
target.removeEventListener('scroll', state.updateBound);
});
@@ -1044,8 +1138,8 @@ function isNumeric(n) {
* Object with a list of properties and values which will be applied to the element
*/
function setStyles(element, styles) {
- Object.keys(styles).forEach(prop => {
- let unit = '';
+ Object.keys(styles).forEach(function (prop) {
+ var unit = '';
// add unit if the value is numeric and is one of the following
if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {
unit = 'px';
@@ -1064,7 +1158,7 @@ function setStyles(element, styles) {
*/
function setAttributes(element, attributes) {
Object.keys(attributes).forEach(function (prop) {
- const value = attributes[prop];
+ var value = attributes[prop];
if (value !== false) {
element.setAttribute(prop, attributes[prop]);
} else {
@@ -1113,12 +1207,12 @@ function applyStyle(data) {
*/
function applyStyleOnLoad(reference, popper, options, modifierOptions, state) {
// compute reference element offsets
- const referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);
+ var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);
// compute auto placement, store placement inside the data object,
// modifiers will be able to edit `placement` if needed
// and refer to originalPlacement to know the original value
- const placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);
+ var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);
popper.setAttribute('x-placement', placement);
@@ -1149,20 +1243,26 @@ function applyStyleOnLoad(reference, popper, options, modifierOptions, state) {
* Only horizontal placement and left/right values need to be considered.
*/
function getRoundedOffsets(data, shouldRound) {
- const { popper, reference } = data.offsets;
- const { round, floor } = Math;
- const noRound = v => v;
+ var _data$offsets = data.offsets,
+ popper = _data$offsets.popper,
+ reference = _data$offsets.reference;
+ var round = Math.round,
+ floor = Math.floor;
+
+ var noRound = function noRound(v) {
+ return v;
+ };
- const referenceWidth = round(reference.width);
- const popperWidth = round(popper.width);
+ var referenceWidth = round(reference.width);
+ var popperWidth = round(popper.width);
- const isVertical = ['left', 'right'].indexOf(data.placement) !== -1;
- const isVariation = data.placement.indexOf('-') !== -1;
- const sameWidthParity = referenceWidth % 2 === popperWidth % 2;
- const bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;
+ var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;
+ var isVariation = data.placement.indexOf('-') !== -1;
+ var sameWidthParity = referenceWidth % 2 === popperWidth % 2;
+ var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;
- const horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;
- const verticalToInteger = !shouldRound ? noRound : round;
+ var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;
+ var verticalToInteger = !shouldRound ? noRound : round;
return {
left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),
@@ -1172,7 +1272,7 @@ function getRoundedOffsets(data, shouldRound) {
};
}
-const isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);
+var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);
/**
* @function
@@ -1182,33 +1282,37 @@ const isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);
* @returns {Object} The data object, properly modified
*/
function computeStyle(data, options) {
- const { x, y } = options;
- const { popper } = data.offsets;
+ var x = options.x,
+ y = options.y;
+ var popper = data.offsets.popper;
// Remove this legacy support in Popper.js v2
- const legacyGpuAccelerationOption = find(data.instance.modifiers, modifier => modifier.name === 'applyStyle').gpuAcceleration;
+
+ var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {
+ return modifier.name === 'applyStyle';
+ }).gpuAcceleration;
if (legacyGpuAccelerationOption !== undefined) {
console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');
}
- const gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;
+ var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;
- const offsetParent = getOffsetParent(data.instance.popper);
- const offsetParentRect = getBoundingClientRect(offsetParent);
+ var offsetParent = getOffsetParent(data.instance.popper);
+ var offsetParentRect = getBoundingClientRect(offsetParent);
// Styles
- const styles = {
+ var styles = {
position: popper.position
};
- const offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);
+ var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);
- const sideA = x === 'bottom' ? 'top' : 'bottom';
- const sideB = y === 'right' ? 'left' : 'right';
+ var sideA = x === 'bottom' ? 'top' : 'bottom';
+ var sideB = y === 'right' ? 'left' : 'right';
// if gpuAcceleration is set to `true` and transform is supported,
// we use `translate3d` to apply the position to the popper we
// automatically use the supported prefixed version if needed
- const prefixedProperty = getSupportedPropertyName('transform');
+ var prefixedProperty = getSupportedPropertyName('transform');
// now, let's make a step back and look at this code closely (wtf?)
// If the content of the popper grows once it's been positioned, it
@@ -1219,7 +1323,8 @@ function computeStyle(data, options) {
// If we position a popper on top of a reference element, we can set
// `x` to `top` to make the popper grow towards its top instead of
// its bottom.
- let left, top;
+ var left = void 0,
+ top = void 0;
if (sideA === 'bottom') {
// when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar)
// and not the bottom of the html element
@@ -1241,21 +1346,21 @@ function computeStyle(data, options) {
left = offsets.left;
}
if (gpuAcceleration && prefixedProperty) {
- styles[prefixedProperty] = `translate3d(${left}px, ${top}px, 0)`;
+ styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
styles[sideA] = 0;
styles[sideB] = 0;
styles.willChange = 'transform';
} else {
// othwerise, we use the standard `top`, `left`, `bottom` and `right` properties
- const invertTop = sideA === 'bottom' ? -1 : 1;
- const invertLeft = sideB === 'right' ? -1 : 1;
+ var invertTop = sideA === 'bottom' ? -1 : 1;
+ var invertLeft = sideB === 'right' ? -1 : 1;
styles[sideA] = top * invertTop;
styles[sideB] = left * invertLeft;
- styles.willChange = `${sideA}, ${sideB}`;
+ styles.willChange = sideA + ', ' + sideB;
}
// Attributes
- const attributes = {
+ var attributes = {
'x-placement': data.placement
};
@@ -1278,16 +1383,19 @@ function computeStyle(data, options) {
* @returns {Boolean}
*/
function isModifierRequired(modifiers, requestingName, requestedName) {
- const requesting = find(modifiers, ({ name }) => name === requestingName);
+ var requesting = find(modifiers, function (_ref) {
+ var name = _ref.name;
+ return name === requestingName;
+ });
- const isRequired = !!requesting && modifiers.some(modifier => {
+ var isRequired = !!requesting && modifiers.some(function (modifier) {
return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;
});
if (!isRequired) {
- const requesting = `\`${requestingName}\``;
- const requested = `\`${requestedName}\``;
- console.warn(`${requested} modifier is required by ${requesting} modifier in order to work, be sure to include it before ${requesting}!`);
+ var _requesting = '`' + requestingName + '`';
+ var requested = '`' + requestedName + '`';
+ console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');
}
return isRequired;
}
@@ -1300,12 +1408,14 @@ function isModifierRequired(modifiers, requestingName, requestedName) {
* @returns {Object} The data object, properly modified
*/
function arrow(data, options) {
+ var _data$offsets$arrow;
+
// arrow depends on keepTogether in order to work
if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {
return data;
}
- let arrowElement = options.element;
+ var arrowElement = options.element;
// if arrowElement is a string, suppose it's a CSS selector
if (typeof arrowElement === 'string') {
@@ -1324,16 +1434,19 @@ function arrow(data, options) {
}
}
- const placement = data.placement.split('-')[0];
- const { popper, reference } = data.offsets;
- const isVertical = ['left', 'right'].indexOf(placement) !== -1;
+ var placement = data.placement.split('-')[0];
+ var _data$offsets = data.offsets,
+ popper = _data$offsets.popper,
+ reference = _data$offsets.reference;
+
+ var isVertical = ['left', 'right'].indexOf(placement) !== -1;
- const len = isVertical ? 'height' : 'width';
- const sideCapitalized = isVertical ? 'Top' : 'Left';
- const side = sideCapitalized.toLowerCase();
- const altSide = isVertical ? 'left' : 'top';
- const opSide = isVertical ? 'bottom' : 'right';
- const arrowElementSize = getOuterSizes(arrowElement)[len];
+ var len = isVertical ? 'height' : 'width';
+ var sideCapitalized = isVertical ? 'Top' : 'Left';
+ var side = sideCapitalized.toLowerCase();
+ var altSide = isVertical ? 'left' : 'top';
+ var opSide = isVertical ? 'bottom' : 'right';
+ var arrowElementSize = getOuterSizes(arrowElement)[len];
//
// extends keepTogether behavior making sure the popper and its
@@ -1351,23 +1464,20 @@ function arrow(data, options) {
data.offsets.popper = getClientRect(data.offsets.popper);
// compute center of the popper
- const center = reference[side] + reference[len] / 2 - arrowElementSize / 2;
+ var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;
// Compute the sideValue using the updated popper offsets
// take popper margin in account because we don't have this info available
- const css = getStyleComputedProperty(data.instance.popper);
- const popperMarginSide = parseFloat(css[`margin${sideCapitalized}`]);
- const popperBorderSide = parseFloat(css[`border${sideCapitalized}Width`]);
- let sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
+ var css = getStyleComputedProperty(data.instance.popper);
+ var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);
+ var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);
+ var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
// prevent arrowElement from being placed not contiguously to its popper
sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);
data.arrowElement = arrowElement;
- data.offsets.arrow = {
- [side]: Math.round(sideValue),
- [altSide]: '' // make sure to unset any eventual altSide value from the DOM node
- };
+ data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);
return data;
}
@@ -1422,7 +1532,7 @@ function getOppositeVariation(variation) {
var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];
// Get rid of `auto` `auto-start` and `auto-end`
-const validPlacements = placements.slice(3);
+var validPlacements = placements.slice(3);
/**
* Given an initial placement, returns all the subsequent placements
@@ -1434,13 +1544,15 @@ const validPlacements = placements.slice(3);
* @argument {Boolean} counter - Set to true to walk the placements counterclockwise
* @returns {Array} placements including their variations
*/
-function clockwise(placement, counter = false) {
- const index = validPlacements.indexOf(placement);
- const arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));
+function clockwise(placement) {
+ var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+
+ var index = validPlacements.indexOf(placement);
+ var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));
return counter ? arr.reverse() : arr;
}
-const BEHAVIORS = {
+var BEHAVIORS = {
FLIP: 'flip',
CLOCKWISE: 'clockwise',
COUNTERCLOCKWISE: 'counterclockwise'
@@ -1464,13 +1576,13 @@ function flip(data, options) {
return data;
}
- const boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);
+ var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);
- let placement = data.placement.split('-')[0];
- let placementOpposite = getOppositePlacement(placement);
- let variation = data.placement.split('-')[1] || '';
+ var placement = data.placement.split('-')[0];
+ var placementOpposite = getOppositePlacement(placement);
+ var variation = data.placement.split('-')[1] || '';
- let flipOrder = [];
+ var flipOrder = [];
switch (options.behavior) {
case BEHAVIORS.FLIP:
@@ -1486,7 +1598,7 @@ function flip(data, options) {
flipOrder = options.behavior;
}
- flipOrder.forEach((step, index) => {
+ flipOrder.forEach(function (step, index) {
if (placement !== step || flipOrder.length === index + 1) {
return data;
}
@@ -1494,30 +1606,30 @@ function flip(data, options) {
placement = data.placement.split('-')[0];
placementOpposite = getOppositePlacement(placement);
- const popperOffsets = data.offsets.popper;
- const refOffsets = data.offsets.reference;
+ var popperOffsets = data.offsets.popper;
+ var refOffsets = data.offsets.reference;
// using floor because the reference offsets may contain decimals we are not going to consider here
- const floor = Math.floor;
- const overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);
+ var floor = Math.floor;
+ var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);
- const overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);
- const overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);
- const overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);
- const overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);
+ var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);
+ var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);
+ var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);
+ var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);
- const overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;
+ var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;
// flip the variation if required
- const isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
+ var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
// flips variation if reference element overflows boundaries
- const flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);
+ var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);
// flips variation if popper content overflows boundaries
- const flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);
+ var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);
- const flippedVariation = flippedVariationByRef || flippedVariationByContent;
+ var flippedVariation = flippedVariationByRef || flippedVariationByContent;
if (overlapsRef || overflowsBoundaries || flippedVariation) {
// this boolean to detect any flip loop
@@ -1551,13 +1663,16 @@ function flip(data, options) {
* @returns {Object} The data object, properly modified
*/
function keepTogether(data) {
- const { popper, reference } = data.offsets;
- const placement = data.placement.split('-')[0];
- const floor = Math.floor;
- const isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
- const side = isVertical ? 'right' : 'bottom';
- const opSide = isVertical ? 'left' : 'top';
- const measurement = isVertical ? 'width' : 'height';
+ var _data$offsets = data.offsets,
+ popper = _data$offsets.popper,
+ reference = _data$offsets.reference;
+
+ var placement = data.placement.split('-')[0];
+ var floor = Math.floor;
+ var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
+ var side = isVertical ? 'right' : 'bottom';
+ var opSide = isVertical ? 'left' : 'top';
+ var measurement = isVertical ? 'width' : 'height';
if (popper[side] < floor(reference[opSide])) {
data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];
@@ -1583,9 +1698,9 @@ function keepTogether(data) {
*/
function toValue(str, measurement, popperOffsets, referenceOffsets) {
// separate value from unit
- const split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);
- const value = +split[1];
- const unit = split[2];
+ var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);
+ var value = +split[1];
+ var unit = split[2];
// If it's not a number it's an operator, I guess
if (!value) {
@@ -1593,7 +1708,7 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
}
if (unit.indexOf('%') === 0) {
- let element;
+ var element = void 0;
switch (unit) {
case '%p':
element = popperOffsets;
@@ -1604,11 +1719,11 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
element = referenceOffsets;
}
- const rect = getClientRect(element);
+ var rect = getClientRect(element);
return rect[measurement] / 100 * value;
} else if (unit === 'vh' || unit === 'vw') {
// if is a vh or vw, we calculate the size based on the viewport
- let size;
+ var size = void 0;
if (unit === 'vh') {
size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
} else {
@@ -1634,20 +1749,24 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
* @returns {Array} a two cells array with x and y offsets in numbers
*/
function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {
- const offsets = [0, 0];
+ var offsets = [0, 0];
// Use height if placement is left or right and index is 0 otherwise use width
// in this way the first offset will use an axis and the second one
// will use the other one
- const useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;
+ var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;
// Split the offset string to obtain a list of values and operands
// The regex addresses values with the plus or minus sign in front (+10, -20, etc)
- const fragments = offset.split(/(\+|\-)/).map(frag => frag.trim());
+ var fragments = offset.split(/(\+|\-)/).map(function (frag) {
+ return frag.trim();
+ });
// Detect if the offset string contains a pair of values or a single one
// they could be separated by comma or space
- const divider = fragments.indexOf(find(fragments, frag => frag.search(/,|\s/) !== -1));
+ var divider = fragments.indexOf(find(fragments, function (frag) {
+ return frag.search(/,|\s/) !== -1;
+ }));
if (fragments[divider] && fragments[divider].indexOf(',') === -1) {
console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');
@@ -1655,18 +1774,18 @@ function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {
// If divider is found, we divide the list of values and operands to divide
// them by ofset X and Y.
- const splitRegex = /\s*,\s*|\s+/;
- let ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments];
+ var splitRegex = /\s*,\s*|\s+/;
+ var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments];
// Convert the values with units to absolute pixels to allow our computations
- ops = ops.map((op, index) => {
+ ops = ops.map(function (op, index) {
// Most of the units rely on the orientation of the popper
- const measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';
- let mergeWithPrevious = false;
+ var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';
+ var mergeWithPrevious = false;
return op
// This aggregates any `+` or `-` sign that aren't considered operators
// e.g.: 10 + +5 => [10, +, +5]
- .reduce((a, b) => {
+ .reduce(function (a, b) {
if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {
a[a.length - 1] = b;
mergeWithPrevious = true;
@@ -1680,12 +1799,14 @@ function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {
}
}, [])
// Here we convert the string values into number values (in px)
- .map(str => toValue(str, measurement, popperOffsets, referenceOffsets));
+ .map(function (str) {
+ return toValue(str, measurement, popperOffsets, referenceOffsets);
+ });
});
// Loop trough the offsets arrays and execute the operations
- ops.forEach((op, index) => {
- op.forEach((frag, index2) => {
+ ops.forEach(function (op, index) {
+ op.forEach(function (frag, index2) {
if (isNumeric(frag)) {
offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);
}
@@ -1703,11 +1824,16 @@ function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {
* The offset value as described in the modifier description
* @returns {Object} The data object, properly modified
*/
-function offset(data, { offset }) {
- const { placement, offsets: { popper, reference } } = data;
- const basePlacement = placement.split('-')[0];
+function offset(data, _ref) {
+ var offset = _ref.offset;
+ var placement = data.placement,
+ _data$offsets = data.offsets,
+ popper = _data$offsets.popper,
+ reference = _data$offsets.reference;
+
+ var basePlacement = placement.split('-')[0];
- let offsets;
+ var offsets = void 0;
if (isNumeric(+offset)) {
offsets = [+offset, 0];
} else {
@@ -1740,7 +1866,7 @@ function offset(data, { offset }) {
* @returns {Object} The data object, properly modified
*/
function preventOverflow(data, options) {
- let boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);
+ var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);
// If offsetParent is the reference element, we really want to
// go one step up and use the next offsetParent as reference to
@@ -1752,14 +1878,17 @@ function preventOverflow(data, options) {
// NOTE: DOM access here
// resets the popper's position so that the document size can be calculated excluding
// the size of the popper element itself
- const transformProp = getSupportedPropertyName('transform');
- const popperStyles = data.instance.popper.style; // assignment to help minification
- const { top, left, [transformProp]: transform } = popperStyles;
+ var transformProp = getSupportedPropertyName('transform');
+ var popperStyles = data.instance.popper.style; // assignment to help minification
+ var top = popperStyles.top,
+ left = popperStyles.left,
+ transform = popperStyles[transformProp];
+
popperStyles.top = '';
popperStyles.left = '';
popperStyles[transformProp] = '';
- const boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);
+ var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);
// NOTE: DOM access here
// restores the original style properties after the offsets have been computed
@@ -1769,29 +1898,29 @@ function preventOverflow(data, options) {
options.boundaries = boundaries;
- const order = options.priority;
- let popper = data.offsets.popper;
+ var order = options.priority;
+ var popper = data.offsets.popper;
- const check = {
- primary(placement) {
- let value = popper[placement];
+ var check = {
+ primary: function primary(placement) {
+ var value = popper[placement];
if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {
value = Math.max(popper[placement], boundaries[placement]);
}
- return { [placement]: value };
+ return defineProperty({}, placement, value);
},
- secondary(placement) {
- const mainSide = placement === 'right' ? 'left' : 'top';
- let value = popper[mainSide];
+ secondary: function secondary(placement) {
+ var mainSide = placement === 'right' ? 'left' : 'top';
+ var value = popper[mainSide];
if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {
value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));
}
- return { [mainSide]: value };
+ return defineProperty({}, mainSide, value);
}
};
- order.forEach(placement => {
- const side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';
+ order.forEach(function (placement) {
+ var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';
popper = _extends({}, popper, check[side](placement));
});
@@ -1808,22 +1937,23 @@ function preventOverflow(data, options) {
* @returns {Object} The data object, properly modified
*/
function shift(data) {
- const placement = data.placement;
- const basePlacement = placement.split('-')[0];
- const shiftvariation = placement.split('-')[1];
+ var placement = data.placement;
+ var basePlacement = placement.split('-')[0];
+ var shiftvariation = placement.split('-')[1];
// if shift shiftvariation is specified, run the modifier
if (shiftvariation) {
- const { reference, popper } = data.offsets;
- const isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;
- const side = isVertical ? 'left' : 'top';
- const measurement = isVertical ? 'width' : 'height';
-
- const shiftOffsets = {
- start: { [side]: reference[side] },
- end: {
- [side]: reference[side] + reference[measurement] - popper[measurement]
- }
+ var _data$offsets = data.offsets,
+ reference = _data$offsets.reference,
+ popper = _data$offsets.popper;
+
+ var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;
+ var side = isVertical ? 'left' : 'top';
+ var measurement = isVertical ? 'width' : 'height';
+
+ var shiftOffsets = {
+ start: defineProperty({}, side, reference[side]),
+ end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
};
data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
@@ -1844,8 +1974,10 @@ function hide(data) {
return data;
}
- const refRect = data.offsets.reference;
- const bound = find(data.instance.modifiers, modifier => modifier.name === 'preventOverflow').boundaries;
+ var refRect = data.offsets.reference;
+ var bound = find(data.instance.modifiers, function (modifier) {
+ return modifier.name === 'preventOverflow';
+ }).boundaries;
if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {
// Avoid unnecessary DOM access if visibility hasn't changed
@@ -1876,12 +2008,15 @@ function hide(data) {
* @returns {Object} The data object, properly modified
*/
function inner(data) {
- const placement = data.placement;
- const basePlacement = placement.split('-')[0];
- const { popper, reference } = data.offsets;
- const isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;
+ var placement = data.placement;
+ var basePlacement = placement.split('-')[0];
+ var _data$offsets = data.offsets,
+ popper = _data$offsets.popper,
+ reference = _data$offsets.reference;
+
+ var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;
- const subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;
+ var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;
popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);
@@ -2298,7 +2433,7 @@ var Defaults = {
* Access Popper.js instance with `data.instance`.
* @prop {onCreate}
*/
- onCreate: () => {},
+ onCreate: function onCreate() {},
/**
* Callback called when the popper is updated. This callback is not called
@@ -2308,14 +2443,14 @@ var Defaults = {
* Access Popper.js instance with `data.instance`.
* @prop {onUpdate}
*/
- onUpdate: () => {},
+ onUpdate: function onUpdate() {},
/**
* List of modifiers used to modify the offsets before they are applied to the popper.
* They provide most of the functionalities of Popper.js.
* @prop {modifiers}
*/
- modifiers
+ modifiers: modifiers
};
/**
@@ -2330,7 +2465,7 @@ var Defaults = {
// Utils
// Methods
-class Popper {
+var Popper = function () {
/**
* Creates a new Popper.js instance.
* @class Popper
@@ -2339,8 +2474,15 @@ class Popper {
* @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)
* @return {Object} instance - The generated Popper.js instance
*/
- constructor(reference, popper, options = {}) {
- this.scheduleUpdate = () => requestAnimationFrame(this.update);
+ function Popper(reference, popper) {
+ var _this = this;
+
+ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
+ classCallCheck(this, Popper);
+
+ this.scheduleUpdate = function () {
+ return requestAnimationFrame(_this.update);
+ };
// make update() debounced, so that it only runs at most once-per-tick
this.update = debounce(this.update.bind(this));
@@ -2361,31 +2503,35 @@ class Popper {
// Deep merge modifiers options
this.options.modifiers = {};
- Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(name => {
- this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
+ Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
+ _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
});
// Refactoring modifiers' list (Object => Array)
- this.modifiers = Object.keys(this.options.modifiers).map(name => _extends({
- name
- }, this.options.modifiers[name]))
+ this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
+ return _extends({
+ name: name
+ }, _this.options.modifiers[name]);
+ })
// sort the modifiers by order
- .sort((a, b) => a.order - b.order);
+ .sort(function (a, b) {
+ return a.order - b.order;
+ });
// modifiers have the ability to execute arbitrary code when Popper.js get inited
// such code is executed in the same order of its modifier
// they could add new properties to their options configuration
// BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!
- this.modifiers.forEach(modifierOptions => {
+ this.modifiers.forEach(function (modifierOptions) {
if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {
- modifierOptions.onLoad(this.reference, this.popper, this.options, modifierOptions, this.state);
+ modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);
}
});
// fire the first update to position the popper in the right place
this.update();
- const eventsEnabled = this.options.eventsEnabled;
+ var eventsEnabled = this.options.eventsEnabled;
if (eventsEnabled) {
// setup event listeners, they will take care of update the position in specific situations
this.enableEventListeners();
@@ -2396,43 +2542,56 @@ class Popper {
// We can't use class properties because they don't get listed in the
// class prototype and break stuff like Sinon stubs
- update() {
- return update.call(this);
- }
- destroy() {
- return destroy.call(this);
- }
- enableEventListeners() {
- return enableEventListeners.call(this);
- }
- disableEventListeners() {
- return disableEventListeners.call(this);
- }
- /**
- * Schedules an update. It will run on the next UI update available.
- * @method scheduleUpdate
- * @memberof Popper
- */
+ createClass(Popper, [{
+ key: 'update',
+ value: function update$$1() {
+ return update.call(this);
+ }
+ }, {
+ key: 'destroy',
+ value: function destroy$$1() {
+ return destroy.call(this);
+ }
+ }, {
+ key: 'enableEventListeners',
+ value: function enableEventListeners$$1() {
+ return enableEventListeners.call(this);
+ }
+ }, {
+ key: 'disableEventListeners',
+ value: function disableEventListeners$$1() {
+ return disableEventListeners.call(this);
+ }
- /**
- * Collection of utilities useful when writing custom modifiers.
- * Starting from version 1.7, this method is available only if you
- * include `popper-utils.js` before `popper.js`.
- *
- * **DEPRECATION**: This way to access PopperUtils is deprecated
- * and will be removed in v2! Use the PopperUtils module directly instead.
- * Due to the high instability of the methods contained in Utils, we can't
- * guarantee them to follow semver. Use them at your own risk!
- * @static
- * @private
- * @type {Object}
- * @deprecated since version 1.8
- * @member Utils
- * @memberof Popper
- */
-}
+ /**
+ * Schedules an update. It will run on the next UI update available.
+ * @method scheduleUpdate
+ * @memberof Popper
+ */
+
+
+ /**
+ * Collection of utilities useful when writing custom modifiers.
+ * Starting from version 1.7, this method is available only if you
+ * include `popper-utils.js` before `popper.js`.
+ *
+ * **DEPRECATION**: This way to access PopperUtils is deprecated
+ * and will be removed in v2! Use the PopperUtils module directly instead.
+ * Due to the high instability of the methods contained in Utils, we can't
+ * guarantee them to follow semver. Use them at your own risk!
+ * @static
+ * @private
+ * @type {Object}
+ * @deprecated since version 1.8
+ * @member Utils
+ * @memberof Popper
+ */
+
+ }]);
+ return Popper;
+}();
/**
* The `referenceObject` is an object that provides an interface compatible with Popper.js
@@ -2454,9 +2613,12 @@ class Popper {
* An ES6 getter that will return the height of the virtual reference element.
*/
+
Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;
Popper.placements = placements;
Popper.Defaults = Defaults;
-export default Popper;
+return Popper;
+
+})));
//# sourceMappingURL=popper.js.map
diff --git a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.js.map b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.js.map
index 98948de44e..d0207ee43d 100644
--- a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.js.map
+++ b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.js.map
@@ -1 +1 @@
-{"version":3,"file":"popper.js","sources":["../src/utils/isBrowser.js","../src/utils/debounce.js","../src/utils/isFunction.js","../src/utils/getStyleComputedProperty.js","../src/utils/getParentNode.js","../src/utils/getScrollParent.js","../src/utils/getReferenceNode.js","../src/utils/isIE.js","../src/utils/getOffsetParent.js","../src/utils/isOffsetContainer.js","../src/utils/getRoot.js","../src/utils/findCommonOffsetParent.js","../src/utils/getScroll.js","../src/utils/includeScroll.js"," [...]
\ No newline at end of file
+{"version":3,"file":"popper.js","sources":["../../src/utils/isBrowser.js","../../src/utils/debounce.js","../../src/utils/isFunction.js","../../src/utils/getStyleComputedProperty.js","../../src/utils/getParentNode.js","../../src/utils/getScrollParent.js","../../src/utils/getReferenceNode.js","../../src/utils/isIE.js","../../src/utils/getOffsetParent.js","../../src/utils/isOffsetContainer.js","../../src/utils/getRoot.js","../../src/utils/findCommonOffsetParent.js","../../src/utils/getScrol [...]
\ No newline at end of file
diff --git a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.min.js b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.min.js
index ad9949cb21..bb1aaae3e8 100644
--- a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.min.js
+++ b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.min.js
@@ -1,5 +1,5 @@
/*
Copyright (C) Federico Zivolo 2020
Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
- */var e='undefined'!=typeof window&&'undefined'!=typeof document&&'undefined'!=typeof navigator;const t=function(){const t=['Edge','Trident','Firefox'];for(let o=0;o<t.length;o+=1)if(e&&0<=navigator.userAgent.indexOf(t[o]))return 1;return 0}();function o(e){let t=!1;return()=>{t||(t=!0,window.Promise.resolve().then(()=>{t=!1,e()}))}}function n(e){let o=!1;return()=>{o||(o=!0,setTimeout(()=>{o=!1,e()},t))}}const i=e&&window.Promise;var r=i?o:n;function p(e){return e&&'[object Function]'= [...]
+ */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName) [...]
//# sourceMappingURL=popper.min.js.map
diff --git a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.min.js.map b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.min.js.map
index ee76585c92..9423c22a6b 100644
--- a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.min.js.map
+++ b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/popper-js/1.16.1/popper.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"popper.min.js","sources":["../src/utils/isBrowser.js","../src/utils/debounce.js","../src/utils/isFunction.js","../src/utils/getStyleComputedProperty.js","../src/utils/getParentNode.js","../src/utils/getScrollParent.js","../src/utils/getReferenceNode.js","../src/utils/isIE.js","../src/utils/getOffsetParent.js","../src/utils/isOffsetContainer.js","../src/utils/getRoot.js","../src/utils/findCommonOffsetParent.js","../src/utils/getScroll.js","../src/utils/includeScroll.j [...]
\ No newline at end of file
+{"version":3,"file":"popper.min.js","sources":["../../src/utils/isFunction.js","../../src/utils/getStyleComputedProperty.js","../../src/utils/getParentNode.js","../../src/utils/getScrollParent.js","../../src/utils/getReferenceNode.js","../../src/utils/isIE.js","../../src/utils/getOffsetParent.js","../../src/utils/isOffsetContainer.js","../../src/utils/getRoot.js","../../src/utils/findCommonOffsetParent.js","../../src/utils/getScroll.js","../../src/utils/includeScroll.js","../../src/utils [...]
\ No newline at end of file