uikit 3.15.17 → 3.15.18-dev.014d8e608

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/util.js +2 -3
  3. package/dist/css/uikit-core-rtl.css +1 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +1 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +1 -1
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +1 -1
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +2 -2
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +15 -15
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +77 -84
  16. package/dist/js/components/lightbox-panel.min.js +9 -1
  17. package/dist/js/components/lightbox.js +80 -87
  18. package/dist/js/components/lightbox.min.js +9 -1
  19. package/dist/js/components/notification.js +14 -14
  20. package/dist/js/components/notification.min.js +4 -1
  21. package/dist/js/components/parallax.js +22 -22
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +18 -18
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +93 -45
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +18 -18
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +33 -38
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +7 -7
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +24 -24
  34. package/dist/js/components/tooltip.min.js +3 -1
  35. package/dist/js/components/upload.js +7 -7
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +303 -282
  38. package/dist/js/uikit-core.min.js +21 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +499 -432
  42. package/dist/js/uikit.min.js +34 -1
  43. package/package.json +1 -1
  44. package/src/js/components/lightbox-panel.js +3 -5
  45. package/src/js/components/slider.js +62 -7
  46. package/src/js/core/sticky.js +26 -9
  47. package/src/js/mixin/slider-drag.js +1 -1
  48. package/src/js/mixin/slider.js +2 -7
  49. package/src/js/util/viewport.js +4 -0
  50. package/tests/tooltip.html +1 -1
package/dist/js/uikit.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.17 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.18-dev.014d8e608 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -152,7 +152,7 @@
152
152
  }
153
153
 
154
154
  function swap(value, a, b) {
155
- return value.replace(new RegExp(a + "|" + b, 'g'), (match) => match === a ? b : a);
155
+ return value.replace(new RegExp(`${a}|${b}`, 'g'), (match) => match === a ? b : a);
156
156
  }
157
157
 
158
158
  function last(array) {
@@ -171,8 +171,8 @@
171
171
  function sortBy$1(array, prop) {
172
172
  return array.
173
173
  slice().
174
- sort((_ref, _ref2) => {let { [prop]: propA = 0 } = _ref;let { [prop]: propB = 0 } = _ref2;return (
175
- propA > propB ? 1 : propB > propA ? -1 : 0);});
174
+ sort(({ [prop]: propA = 0 }, { [prop]: propB = 0 }) =>
175
+ propA > propB ? 1 : propB > propA ? -1 : 0);
176
176
 
177
177
  }
178
178
 
@@ -185,24 +185,24 @@
185
185
 
186
186
  function uniqueBy(array, prop) {
187
187
  const seen = new Set();
188
- return array.filter((_ref3) => {let { [prop]: check } = _ref3;return seen.has(check) ? false : seen.add(check);});
188
+ return array.filter(({ [prop]: check }) => seen.has(check) ? false : seen.add(check));
189
189
  }
190
190
 
191
- function clamp(number, min, max) {if (min === void 0) {min = 0;}if (max === void 0) {max = 1;}
191
+ function clamp(number, min = 0, max = 1) {
192
192
  return Math.min(Math.max(toNumber(number) || 0, min), max);
193
193
  }
194
194
 
195
195
  function noop() {}
196
196
 
197
- function intersectRect() {for (var _len = arguments.length, rects = new Array(_len), _key = 0; _key < _len; _key++) {rects[_key] = arguments[_key];}
197
+ function intersectRect(...rects) {
198
198
  return [
199
199
  ['bottom', 'top'],
200
200
  ['right', 'left']].
201
201
  every(
202
- (_ref4) => {let [minProp, maxProp] = _ref4;return (
203
- Math.min(...rects.map((_ref5) => {let { [minProp]: min } = _ref5;return min;})) -
204
- Math.max(...rects.map((_ref6) => {let { [maxProp]: max } = _ref6;return max;})) >
205
- 0);});
202
+ ([minProp, maxProp]) =>
203
+ Math.min(...rects.map(({ [minProp]: min }) => min)) -
204
+ Math.max(...rects.map(({ [maxProp]: max }) => max)) >
205
+ 0);
206
206
 
207
207
  }
208
208
 
@@ -254,7 +254,7 @@
254
254
 
255
255
  const Dimensions = { ratio, contain, cover: cover$1 };
256
256
 
257
- function getIndex(i, elements, current, finite) {if (current === void 0) {current = 0;}if (finite === void 0) {finite = false;}
257
+ function getIndex(i, elements, current = 0, finite = false) {
258
258
  elements = toNodes(elements);
259
259
 
260
260
  const { length } = elements;
@@ -333,7 +333,7 @@
333
333
  }
334
334
 
335
335
  function data(element, attribute) {
336
- for (const name of [attribute, "data-" + attribute]) {
336
+ for (const name of [attribute, `data-${attribute}`]) {
337
337
  if (hasAttr(element, name)) {
338
338
  return attr(element, name);
339
339
  }
@@ -372,7 +372,7 @@
372
372
  return toNodes(element).some((element) => matches(element, selInput));
373
373
  }
374
374
 
375
- const selFocusable = selInput + ",a[href],[tabindex]";
375
+ const selFocusable = `${selInput},a[href],[tabindex]`;
376
376
  function isFocusable(element) {
377
377
  return matches(element, selFocusable);
378
378
  }
@@ -444,7 +444,7 @@
444
444
  const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
445
445
  const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
446
446
 
447
- function getContext(selector, context) {if (context === void 0) {context = document;}
447
+ function getContext(selector, context = document) {
448
448
  return isString(selector) && isContextSelector(selector) || isDocument(context) ?
449
449
  context :
450
450
  context.ownerDocument;
@@ -453,7 +453,7 @@
453
453
  const contextSanitizeRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
454
454
  const sanatize = memoize((selector) => selector.replace(contextSanitizeRe, '$1 *'));
455
455
 
456
- function _query(selector, context, queryFn) {if (context === void 0) {context = document;}
456
+ function _query(selector, context = document, queryFn) {
457
457
  if (!selector || !isString(selector)) {
458
458
  return selector;
459
459
  }
@@ -483,7 +483,7 @@
483
483
  }
484
484
 
485
485
  if (ctx) {
486
- selector += "" + (selector ? ',' : '') + domPath(ctx) + " " + sel;
486
+ selector += `${selector ? ',' : ''}${domPath(ctx)} ${sel}`;
487
487
  }
488
488
  }
489
489
 
@@ -508,12 +508,12 @@
508
508
  while (element.parentNode) {
509
509
  const id = attr(element, 'id');
510
510
  if (id) {
511
- names.unshift("#" + escape(id));
511
+ names.unshift(`#${escape(id)}`);
512
512
  break;
513
513
  } else {
514
514
  let { tagName } = element;
515
515
  if (tagName !== 'HTML') {
516
- tagName += ":nth-child(" + (index(element) + 1) + ")";
516
+ tagName += `:nth-child(${index(element) + 1})`;
517
517
  }
518
518
  names.unshift(tagName);
519
519
  element = element.parentNode;
@@ -526,7 +526,7 @@
526
526
  return isString(css) ? CSS.escape(css) : '';
527
527
  }
528
528
 
529
- function on() {for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}
529
+ function on(...args) {
530
530
  let [targets, types, selector, listener, useCapture = false] = getArgs(args);
531
531
 
532
532
  if (listener.length > 1) {
@@ -550,7 +550,7 @@
550
550
  return () => off(targets, types, listener, useCapture);
551
551
  }
552
552
 
553
- function off() {for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {args[_key2] = arguments[_key2];}
553
+ function off(...args) {
554
554
  let [targets, types,, listener, useCapture = false] = getArgs(args);
555
555
  for (const type of types) {
556
556
  for (const target of targets) {
@@ -559,7 +559,7 @@
559
559
  }
560
560
  }
561
561
 
562
- function once() {for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {args[_key3] = arguments[_key3];}
562
+ function once(...args) {
563
563
  const [element, types, selector, listener, useCapture = false, condition] = getArgs(args);
564
564
  const off = on(
565
565
  element,
@@ -584,7 +584,7 @@
584
584
 
585
585
  }
586
586
 
587
- function createEvent(e, bubbles, cancelable, detail) {if (bubbles === void 0) {bubbles = true;}if (cancelable === void 0) {cancelable = false;}
587
+ function createEvent(e, bubbles = true, cancelable = false, detail) {
588
588
  if (isString(e)) {
589
589
  e = new CustomEvent(e, { bubbles, cancelable, detail });
590
590
  }
@@ -755,7 +755,7 @@
755
755
  zoom: true
756
756
  };
757
757
 
758
- function css(element, property, value, priority) {if (priority === void 0) {priority = '';}
758
+ function css(element, property, value, priority = '') {
759
759
  const elements = toNodes(element);
760
760
  for (const element of elements) {
761
761
  if (isString(property)) {
@@ -767,7 +767,7 @@
767
767
  element.style.setProperty(
768
768
  property,
769
769
  isNumeric(value) && !cssNumber[property] ?
770
- value + "px" :
770
+ `${value}px` :
771
771
  value || isNumber(value) ?
772
772
  value :
773
773
  '',
@@ -805,30 +805,30 @@
805
805
  }
806
806
 
807
807
  for (const prefix of ['webkit', 'moz']) {
808
- const prefixedName = "-" + prefix + "-" + name;
808
+ const prefixedName = `-${prefix}-${name}`;
809
809
  if (prefixedName in style) {
810
810
  return prefixedName;
811
811
  }
812
812
  }
813
813
  }
814
814
 
815
- function addClass(element) {for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {args[_key - 1] = arguments[_key];}
815
+ function addClass(element, ...args) {
816
816
  apply$1(element, args, 'add');
817
817
  }
818
818
 
819
- function removeClass(element) {for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {args[_key2 - 1] = arguments[_key2];}
819
+ function removeClass(element, ...args) {
820
820
  apply$1(element, args, 'remove');
821
821
  }
822
822
 
823
823
  function removeClasses(element, cls) {
824
824
  attr(element, 'class', (value) =>
825
- (value || '').replace(new RegExp("\\b" + cls + "\\b\\s?", 'g'), ''));
825
+ (value || '').replace(new RegExp(`\\b${cls}\\b\\s?`, 'g'), ''));
826
826
 
827
827
  }
828
828
 
829
- function replaceClass(element) {
830
- (arguments.length <= 1 ? undefined : arguments[1]) && removeClass(element, arguments.length <= 1 ? undefined : arguments[1]);
831
- (arguments.length <= 2 ? undefined : arguments[2]) && addClass(element, arguments.length <= 2 ? undefined : arguments[2]);
829
+ function replaceClass(element, ...args) {
830
+ args[0] && removeClass(element, args[0]);
831
+ args[1] && addClass(element, args[1]);
832
832
  }
833
833
 
834
834
  function hasClass(element, cls) {
@@ -862,7 +862,7 @@
862
862
  return String(str).split(/\s|,/).filter(Boolean);
863
863
  }
864
864
 
865
- function transition$1(element, props, duration, timing) {if (duration === void 0) {duration = 400;}if (timing === void 0) {timing = 'linear';}
865
+ function transition$1(element, props, duration = 400, timing = 'linear') {
866
866
  duration = Math.round(duration);
867
867
  return Promise.all(
868
868
  toNodes(element).map(
@@ -880,7 +880,7 @@
880
880
  once(
881
881
  element,
882
882
  'transitionend transitioncanceled',
883
- (_ref) => {let { type } = _ref;
883
+ ({ type }) => {
884
884
  clearTimeout(timer);
885
885
  removeClass(element, 'uk-transition');
886
886
  css(element, {
@@ -896,7 +896,7 @@
896
896
  addClass(element, 'uk-transition');
897
897
  css(element, {
898
898
  transitionProperty: Object.keys(props).map(propName).join(','),
899
- transitionDuration: duration + "ms",
899
+ transitionDuration: `${duration}ms`,
900
900
  transitionTimingFunction: timing,
901
901
  ...props
902
902
  });
@@ -925,7 +925,7 @@
925
925
 
926
926
  const animationPrefix = 'uk-animation-';
927
927
 
928
- function animate$2(element, animation, duration, origin, out) {if (duration === void 0) {duration = 200;}
928
+ function animate$2(element, animation, duration = 200, origin, out) {
929
929
  return Promise.all(
930
930
  toNodes(element).map(
931
931
  (element) =>
@@ -936,30 +936,30 @@
936
936
  once(
937
937
  element,
938
938
  'animationend animationcanceled',
939
- (_ref2) => {let { type } = _ref2;
939
+ ({ type }) => {
940
940
  clearTimeout(timer);
941
941
 
942
942
  type === 'animationcanceled' ? reject() : resolve(element);
943
943
 
944
944
  css(element, 'animationDuration', '');
945
- removeClasses(element, animationPrefix + "\\S*");
945
+ removeClasses(element, `${animationPrefix}\\S*`);
946
946
  },
947
947
  { self: true });
948
948
 
949
949
 
950
- css(element, 'animationDuration', duration + "ms");
950
+ css(element, 'animationDuration', `${duration}ms`);
951
951
  addClass(element, animation, animationPrefix + (out ? 'leave' : 'enter'));
952
952
 
953
953
  if (startsWith(animation, animationPrefix)) {
954
- origin && addClass(element, "uk-transform-origin-" + origin);
955
- out && addClass(element, animationPrefix + "reverse");
954
+ origin && addClass(element, `uk-transform-origin-${origin}`);
955
+ out && addClass(element, `${animationPrefix}reverse`);
956
956
  }
957
957
  })));
958
958
 
959
959
 
960
960
  }
961
961
 
962
- const inProgressRe = new RegExp(animationPrefix + "(enter|leave)");
962
+ const inProgressRe = new RegExp(`${animationPrefix}(enter|leave)`);
963
963
 
964
964
  const Animation = {
965
965
  in: animate$2,
@@ -1181,8 +1181,8 @@
1181
1181
  const offset = [element.offsetTop, element.offsetLeft];
1182
1182
 
1183
1183
  while (element = element.offsetParent) {
1184
- offset[0] += element.offsetTop + toFloat(css(element, "borderTopWidth"));
1185
- offset[1] += element.offsetLeft + toFloat(css(element, "borderLeftWidth"));
1184
+ offset[0] += element.offsetTop + toFloat(css(element, `borderTopWidth`));
1185
+ offset[1] += element.offsetLeft + toFloat(css(element, `borderLeftWidth`));
1186
1186
 
1187
1187
  if (css(element, 'position') === 'fixed') {
1188
1188
  const win = toWindow(element);
@@ -1203,18 +1203,18 @@
1203
1203
  return (element, value) => {
1204
1204
  if (isUndefined(value)) {
1205
1205
  if (isWindow(element)) {
1206
- return element["inner" + propName];
1206
+ return element[`inner${propName}`];
1207
1207
  }
1208
1208
 
1209
1209
  if (isDocument(element)) {
1210
1210
  const doc = element.documentElement;
1211
- return Math.max(doc["offset" + propName], doc["scroll" + propName]);
1211
+ return Math.max(doc[`offset${propName}`], doc[`scroll${propName}`]);
1212
1212
  }
1213
1213
 
1214
1214
  element = toNode(element);
1215
1215
 
1216
1216
  value = css(element, prop);
1217
- value = value === 'auto' ? element["offset" + propName] : toFloat(value) || 0;
1217
+ value = value === 'auto' ? element[`offset${propName}`] : toFloat(value) || 0;
1218
1218
 
1219
1219
  return value - boxModelAdjust(element, prop);
1220
1220
  } else {
@@ -1227,13 +1227,13 @@
1227
1227
  };
1228
1228
  }
1229
1229
 
1230
- function boxModelAdjust(element, prop, sizing) {if (sizing === void 0) {sizing = 'border-box';}
1230
+ function boxModelAdjust(element, prop, sizing = 'border-box') {
1231
1231
  return css(element, 'boxSizing') === sizing ?
1232
1232
  sumBy(
1233
1233
  dirs$1[prop].map(ucfirst),
1234
1234
  (prop) =>
1235
- toFloat(css(element, "padding" + prop)) +
1236
- toFloat(css(element, "border" + prop + "Width"))) :
1235
+ toFloat(css(element, `padding${prop}`)) +
1236
+ toFloat(css(element, `border${prop}Width`))) :
1237
1237
 
1238
1238
  0;
1239
1239
  }
@@ -1249,7 +1249,7 @@
1249
1249
  return pos;
1250
1250
  }
1251
1251
 
1252
- function toPx(value, property, element, offsetDim) {if (property === void 0) {property = 'width';}if (element === void 0) {element = window;}if (offsetDim === void 0) {offsetDim = false;}
1252
+ function toPx(value, property = 'width', element = window, offsetDim = false) {
1253
1253
  if (!isString(value)) {
1254
1254
  return toFloat(value);
1255
1255
  }
@@ -1264,7 +1264,7 @@
1264
1264
  unit === 'vw' ?
1265
1265
  width(toWindow(element)) :
1266
1266
  offsetDim ?
1267
- element["offset" + ucfirst(property)] :
1267
+ element[`offset${ucfirst(property)}`] :
1268
1268
  dimensions$1(element)[property],
1269
1269
  value) :
1270
1270
 
@@ -1450,7 +1450,7 @@
1450
1450
  };
1451
1451
 
1452
1452
  // Inspired by http://paulbourke.net/geometry/pointlineplane/
1453
- function intersect(_ref, _ref2) {let [{ x: x1, y: y1 }, { x: x2, y: y2 }] = _ref;let [{ x: x3, y: y3 }, { x: x4, y: y4 }] = _ref2;
1453
+ function intersect([{ x: x1, y: y1 }, { x: x2, y: y2 }], [{ x: x3, y: y3 }, { x: x4, y: y4 }]) {
1454
1454
  const denominator = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);
1455
1455
 
1456
1456
  // Lines are parallel
@@ -1468,7 +1468,7 @@
1468
1468
  return { x: x1 + ua * (x2 - x1), y: y1 + ua * (y2 - y1) };
1469
1469
  }
1470
1470
 
1471
- function observeIntersection(targets, cb, options, intersecting) {if (intersecting === void 0) {intersecting = true;}
1471
+ function observeIntersection(targets, cb, options, intersecting = true) {
1472
1472
  const observer = new IntersectionObserver(
1473
1473
  intersecting ?
1474
1474
  (entries, observer) => {
@@ -1487,7 +1487,7 @@
1487
1487
  }
1488
1488
 
1489
1489
  const hasResizeObserver = inBrowser && window.ResizeObserver;
1490
- function observeResize(targets, cb, options) {if (options === void 0) {options = { box: 'border-box' };}
1490
+ function observeResize(targets, cb, options = { box: 'border-box' }) {
1491
1491
  if (hasResizeObserver) {
1492
1492
  return observe(ResizeObserver, targets, cb, options);
1493
1493
  }
@@ -1661,7 +1661,7 @@
1661
1661
  return options;
1662
1662
  }
1663
1663
 
1664
- function parseOptions(options, args) {if (args === void 0) {args = [];}
1664
+ function parseOptions(options, args = []) {
1665
1665
  try {
1666
1666
  return options ?
1667
1667
  startsWith(options, '{') ?
@@ -1771,7 +1771,7 @@
1771
1771
  listener();
1772
1772
  });
1773
1773
 
1774
- once(window, 'message', resolve, false, (_ref) => {let { data } = _ref;
1774
+ once(window, 'message', resolve, false, ({ data }) => {
1775
1775
  try {
1776
1776
  data = JSON.parse(data);
1777
1777
  return (
@@ -1784,13 +1784,13 @@
1784
1784
  // noop
1785
1785
  }});
1786
1786
 
1787
- el.src = "" + el.src + (includes(el.src, '?') ? '&' : '?') + (
1788
- youtube ? 'enablejsapi=1' : "api=1&player_id=" + id);
1789
-
1787
+ el.src = `${el.src}${includes(el.src, '?') ? '&' : '?'}${
1788
+ youtube ? 'enablejsapi=1' : `api=1&player_id=${id}`
1789
+ }`;
1790
1790
  }).then(() => clearInterval(poller));
1791
1791
  }
1792
1792
 
1793
- function isInView(element, offsetTop, offsetLeft) {if (offsetTop === void 0) {offsetTop = 0;}if (offsetLeft === void 0) {offsetLeft = 0;}
1793
+ function isInView(element, offsetTop = 0, offsetLeft = 0) {
1794
1794
  if (!isVisible(element)) {
1795
1795
  return false;
1796
1796
  }
@@ -1811,7 +1811,7 @@
1811
1811
 
1812
1812
  }
1813
1813
 
1814
- function scrollIntoView(element, _temp) {let { offset: offsetBy = 0 } = _temp === void 0 ? {} : _temp;
1814
+ function scrollIntoView(element, { offset: offsetBy = 0 } = {}) {
1815
1815
  const parents = isVisible(element) ? scrollParents(element) : [];
1816
1816
  return parents.reduce(
1817
1817
  (fn, scrollElement, i) => {
@@ -1873,7 +1873,7 @@
1873
1873
  }
1874
1874
  }
1875
1875
 
1876
- function scrolledOver(element, startOffset, endOffset) {if (startOffset === void 0) {startOffset = 0;}if (endOffset === void 0) {endOffset = 0;}
1876
+ function scrolledOver(element, startOffset = 0, endOffset = 0) {
1877
1877
  if (!isVisible(element)) {
1878
1878
  return 0;
1879
1879
  }
@@ -1890,7 +1890,7 @@
1890
1890
  return clamp((scrollTop - start) / (end - start));
1891
1891
  }
1892
1892
 
1893
- function scrollParents(element, overflowRe, scrollable) {if (overflowRe === void 0) {overflowRe = /auto|scroll|hidden|clip/;}if (scrollable === void 0) {scrollable = false;}
1893
+ function scrollParents(element, overflowRe = /auto|scroll|hidden|clip/, scrollable = false) {
1894
1894
  const scrollEl = scrollingElement(element);
1895
1895
 
1896
1896
  let ancestors = parents(element).reverse();
@@ -1929,6 +1929,10 @@
1929
1929
  }
1930
1930
 
1931
1931
  let rect = offset(viewportElement);
1932
+ if (css(viewportElement, 'display') === 'inline') {
1933
+ return rect;
1934
+ }
1935
+
1932
1936
  for (let [prop, dir, start, end] of [
1933
1937
  ['width', 'x', 'left', 'right'],
1934
1938
  ['height', 'y', 'top', 'bottom']])
@@ -1937,9 +1941,9 @@
1937
1941
  // iOS 12 returns <body> as scrollingElement
1938
1942
  viewportElement = documentElement;
1939
1943
  } else {
1940
- rect[start] += toFloat(css(viewportElement, "border-" + start + "-width"));
1944
+ rect[start] += toFloat(css(viewportElement, `border-${start}-width`));
1941
1945
  }
1942
- rect[prop] = rect[dir] = viewportElement["client" + ucfirst(prop)];
1946
+ rect[prop] = rect[dir] = viewportElement[`client${ucfirst(prop)}`];
1943
1947
  rect[end] = rect[prop] + rect[start];
1944
1948
  }
1945
1949
  return rect;
@@ -2102,9 +2106,9 @@
2102
2106
  const [scrollElement] = commonScrollParents(element, target);
2103
2107
  const viewport = offsetViewport(scrollElement);
2104
2108
 
2105
- if (['auto', 'scroll'].includes(css(scrollElement, "overflow-" + axis))) {
2106
- viewport[start] -= scrollElement["scroll" + ucfirst(start)];
2107
- viewport[end] = scrollElement["scroll" + ucfirst(prop)];
2109
+ if (['auto', 'scroll'].includes(css(scrollElement, `overflow-${axis}`))) {
2110
+ viewport[start] -= scrollElement[`scroll${ucfirst(start)}`];
2111
+ viewport[end] = scrollElement[`scroll${ucfirst(prop)}`];
2108
2112
  }
2109
2113
 
2110
2114
  viewport[start] += viewportOffset;
@@ -2117,8 +2121,8 @@
2117
2121
  return scrollParents(target).filter((parent) => within(element, parent));
2118
2122
  }
2119
2123
 
2120
- function getIntersectionArea() {
2121
- let area = {};for (var _len = arguments.length, rects = new Array(_len), _key = 0; _key < _len; _key++) {rects[_key] = arguments[_key];}
2124
+ function getIntersectionArea(...rects) {
2125
+ let area = {};
2122
2126
  for (const rect of rects) {
2123
2127
  for (const [,, start, end] of dirs) {
2124
2128
  area[start] = Math.max(area[start] || 0, rect[start]);
@@ -2133,7 +2137,7 @@
2133
2137
  return positionA[start] >= positionB[start] && positionA[end] <= positionB[end];
2134
2138
  }
2135
2139
 
2136
- function flip(element, target, _ref, i) {let { offset, attach } = _ref;
2140
+ function flip(element, target, { offset, attach }, i) {
2137
2141
  return attachTo(element, target, {
2138
2142
  attach: {
2139
2143
  element: flipAttach(attach.element, i),
@@ -2433,7 +2437,7 @@
2433
2437
  delete this._watch;
2434
2438
  };
2435
2439
 
2436
- UIkit.prototype._callUpdate = function (e) {if (e === void 0) {e = 'update';}
2440
+ UIkit.prototype._callUpdate = function (e = 'update') {
2437
2441
  if (!this._connected) {
2438
2442
  return;
2439
2443
  }
@@ -2612,8 +2616,8 @@
2612
2616
  this._observers = [initPropsObserver(this), initChildListObserver(this)];
2613
2617
  };
2614
2618
 
2615
- UIkit.prototype.registerObserver = function () {
2616
- this._observers.push(...arguments);
2619
+ UIkit.prototype.registerObserver = function (...observer) {
2620
+ this._observers.push(...observer);
2617
2621
  };
2618
2622
 
2619
2623
  UIkit.prototype._disconnectObservers = function () {
@@ -2738,7 +2742,7 @@
2738
2742
  [value];
2739
2743
  }
2740
2744
 
2741
- function normalizeData(_ref, _ref2) {let { data = {} } = _ref;let { args = [], props = {} } = _ref2;
2745
+ function normalizeData({ data = {} }, { args = [], props = {} }) {
2742
2746
  if (isArray(data)) {
2743
2747
  data = data.slice(0, args.length).reduce((data, value, index) => {
2744
2748
  if (isPlainObject(value)) {
@@ -2798,7 +2802,7 @@
2798
2802
  const observer = new MutationObserver((records) => {
2799
2803
  const data = getProps$1($options);
2800
2804
  if (
2801
- records.some((_ref3) => {let { attributeName } = _ref3;
2805
+ records.some(({ attributeName }) => {
2802
2806
  const prop = attributeName.replace('data-', '');
2803
2807
  return (prop === id ? attributes : [camelize(prop), camelize(attributeName)]).some(
2804
2808
  (prop) => !isUndefined(data[prop]) && data[prop] !== $props[prop]);
@@ -2811,7 +2815,7 @@
2811
2815
 
2812
2816
  observer.observe(el, {
2813
2817
  attributes: true,
2814
- attributeFilter: filter.concat(filter.map((key) => "data-" + key))
2818
+ attributeFilter: filter.concat(filter.map((key) => `data-${key}`))
2815
2819
  });
2816
2820
 
2817
2821
  return observer;
@@ -2849,7 +2853,7 @@
2849
2853
  this._callConnected();
2850
2854
  };
2851
2855
 
2852
- UIkit.prototype.$destroy = function (removeEl) {if (removeEl === void 0) {removeEl = false;}
2856
+ UIkit.prototype.$destroy = function (removeEl = false) {
2853
2857
  const { el, name } = this.$options;
2854
2858
 
2855
2859
  if (el) {
@@ -2877,7 +2881,7 @@
2877
2881
  this._callUpdate(e);
2878
2882
  };
2879
2883
 
2880
- UIkit.prototype.$update = function (element, e) {if (element === void 0) {element = this.$el;}
2884
+ UIkit.prototype.$update = function (element = this.$el, e) {
2881
2885
  UIkit.update(element, e);
2882
2886
  };
2883
2887
 
@@ -2900,7 +2904,7 @@
2900
2904
 
2901
2905
  if (!options) {
2902
2906
  if (isPlainObject(components$3[id])) {
2903
- components$3[id] = components$3["data-" + id] = UIkit.extend(components$3[id]);
2907
+ components$3[id] = components$3[`data-${id}`] = UIkit.extend(components$3[id]);
2904
2908
  }
2905
2909
 
2906
2910
  return components$3[id];
@@ -2940,10 +2944,10 @@
2940
2944
  opt.install == null ? void 0 : opt.install(UIkit, opt, name);
2941
2945
 
2942
2946
  if (UIkit._initialized && !opt.functional) {
2943
- requestAnimationFrame(() => UIkit[name]("[" + id + "],[data-" + id + "]"));
2947
+ requestAnimationFrame(() => UIkit[name](`[${id}],[data-${id}]`));
2944
2948
  }
2945
2949
 
2946
- return components$3[id] = components$3["data-" + id] = isPlainObject(options) ? opt : options;
2950
+ return components$3[id] = components$3[`data-${id}`] = isPlainObject(options) ? opt : options;
2947
2951
  };
2948
2952
 
2949
2953
  UIkit.getComponents = (element) => (element == null ? void 0 : element[DATA]) || {};
@@ -2982,7 +2986,7 @@
2982
2986
  UIkit.data = '__uikit__';
2983
2987
  UIkit.prefix = 'uk-';
2984
2988
  UIkit.options = {};
2985
- UIkit.version = '3.15.17';
2989
+ UIkit.version = '3.15.18-dev.014d8e608';
2986
2990
 
2987
2991
  globalAPI(UIkit);
2988
2992
  hooksAPI(UIkit);
@@ -3023,7 +3027,7 @@
3023
3027
  UIkit._initialized = true;
3024
3028
  });
3025
3029
 
3026
- function applyChildListMutation(_ref) {let { addedNodes, removedNodes } = _ref;
3030
+ function applyChildListMutation({ addedNodes, removedNodes }) {
3027
3031
  for (const node of addedNodes) {
3028
3032
  apply(node, connect);
3029
3033
  }
@@ -3033,7 +3037,7 @@
3033
3037
  }
3034
3038
  }
3035
3039
 
3036
- function applyAttributeMutation(_ref2) {let { target, attributeName } = _ref2;
3040
+ function applyAttributeMutation({ target, attributeName }) {
3037
3041
  const name = getComponentName(attributeName);
3038
3042
 
3039
3043
  if (name) {var _UIkit$getComponent;
@@ -3059,7 +3063,7 @@
3059
3063
  },
3060
3064
 
3061
3065
  methods: {
3062
- lazyload(observeTargets, targets) {if (observeTargets === void 0) {observeTargets = this.$el;}if (targets === void 0) {targets = this.$el;}
3066
+ lazyload(observeTargets = this.$el, targets = this.$el) {
3063
3067
  this.registerObserver(
3064
3068
  observeIntersection(observeTargets, (entries, observer) => {
3065
3069
  for (const el of toNodes(isFunction(targets) ? targets() : targets)) {
@@ -3069,8 +3073,8 @@
3069
3073
  }
3070
3074
 
3071
3075
  for (const el of entries.
3072
- filter((_ref) => {let { isIntersecting } = _ref;return isIntersecting;}).
3073
- map((_ref2) => {let { target } = _ref2;return target;})) {
3076
+ filter(({ isIntersecting }) => isIntersecting).
3077
+ map(({ target }) => target)) {
3074
3078
  observer.unobserve(el);
3075
3079
  }
3076
3080
  }));
@@ -3101,11 +3105,11 @@
3101
3105
  },
3102
3106
 
3103
3107
  computed: {
3104
- hasAnimation(_ref) {let { animation } = _ref;
3108
+ hasAnimation({ animation }) {
3105
3109
  return !!animation[0];
3106
3110
  },
3107
3111
 
3108
- hasTransition(_ref2) {let { animation } = _ref2;
3112
+ hasTransition({ animation }) {
3109
3113
  return ['slide', 'reveal'].some((transition) => startsWith(animation[0], transition));
3110
3114
  }
3111
3115
  },
@@ -3117,7 +3121,7 @@
3117
3121
  toNodes(targets).map((el) => {
3118
3122
  const show = isBoolean(toggle) ? toggle : !this.isToggled(el);
3119
3123
 
3120
- if (!trigger(el, "before" + (show ? 'show' : 'hide'), [this])) {
3124
+ if (!trigger(el, `before${show ? 'show' : 'hide'}`, [this])) {
3121
3125
  return Promise.reject();
3122
3126
  }
3123
3127
 
@@ -3153,7 +3157,7 @@
3153
3157
 
3154
3158
  },
3155
3159
 
3156
- isToggled(el) {if (el === void 0) {el = this.$el;}
3160
+ isToggled(el = this.$el) {
3157
3161
  [el] = toNodes(el);
3158
3162
  return hasClass(el, this.clsEnter) ?
3159
3163
  true :
@@ -3189,7 +3193,7 @@
3189
3193
  }
3190
3194
  };
3191
3195
 
3192
- function toggleInstant(el, show, _ref3) {let { _toggle } = _ref3;
3196
+ function toggleInstant(el, show, { _toggle }) {
3193
3197
  Animation.cancel(el);
3194
3198
  Transition.cancel(el);
3195
3199
  return _toggle(el, show);
@@ -3197,9 +3201,9 @@
3197
3201
 
3198
3202
  async function toggleTransition(
3199
3203
  el,
3200
- show, _ref4)
3201
-
3202
- {var _animation$;let { animation, duration, velocity, transition, _toggle } = _ref4;
3204
+ show,
3205
+ { animation, duration, velocity, transition, _toggle })
3206
+ {var _animation$;
3203
3207
  const [mode = 'reveal', startProp = 'top'] = ((_animation$ = animation[0]) == null ? void 0 : _animation$.split('-')) || [];
3204
3208
 
3205
3209
  const dirs = [
@@ -3210,8 +3214,8 @@
3210
3214
  const end = dir[1] === startProp;
3211
3215
  const props = ['width', 'height'];
3212
3216
  const dimProp = props[dirs.indexOf(dir)];
3213
- const marginProp = "margin-" + dir[0];
3214
- const marginStartProp = "margin-" + startProp;
3217
+ const marginProp = `margin-${dir[0]}`;
3218
+ const marginStartProp = `margin-${startProp}`;
3215
3219
 
3216
3220
  let currentDim = dimensions$1(el)[dimProp];
3217
3221
 
@@ -3344,7 +3348,7 @@
3344
3348
 
3345
3349
  computed: {
3346
3350
  items: {
3347
- get(_ref, $el) {let { targets } = _ref;
3351
+ get({ targets }, $el) {
3348
3352
  return $$(targets, $el);
3349
3353
  },
3350
3354
 
@@ -3365,12 +3369,12 @@
3365
3369
  immediate: true
3366
3370
  },
3367
3371
 
3368
- toggles(_ref2) {let { toggle } = _ref2;
3372
+ toggles({ toggle }) {
3369
3373
  return this.items.map((item) => $(toggle, item));
3370
3374
  },
3371
3375
 
3372
3376
  contents: {
3373
- get(_ref3) {let { content } = _ref3;
3377
+ get({ content }) {
3374
3378
  return this.items.map((item) => $(content, item));
3375
3379
  },
3376
3380
 
@@ -3399,7 +3403,7 @@
3399
3403
  name: 'click',
3400
3404
 
3401
3405
  delegate() {
3402
- return this.targets + " " + this.$props.toggle;
3406
+ return `${this.targets} ${this.$props.toggle}`;
3403
3407
  },
3404
3408
 
3405
3409
  async handler(e) {var _this$_off;
@@ -3417,7 +3421,7 @@
3417
3421
  async toggle(item, animate) {
3418
3422
  item = this.items[getIndex(item, this.items)];
3419
3423
  let items = [item];
3420
- const activeItems = filter$1(this.items, "." + this.clsOpen);
3424
+ const activeItems = filter$1(this.items, `.${this.clsOpen}`);
3421
3425
 
3422
3426
  if (!this.multiple && !includes(activeItems, items[0])) {
3423
3427
  items = items.concat(activeItems);
@@ -3450,7 +3454,7 @@
3450
3454
  el && (el.hidden = hide);
3451
3455
  }
3452
3456
 
3453
- async function transition(el, show, _ref4) {var _el$_wrapper;let { content, duration, velocity, transition } = _ref4;
3457
+ async function transition(el, show, { content, duration, velocity, transition }) {var _el$_wrapper;
3454
3458
  content = ((_el$_wrapper = el._wrapper) == null ? void 0 : _el$_wrapper.firstElementChild) || $(content, el);
3455
3459
 
3456
3460
  if (!el._wrapper) {
@@ -3535,7 +3539,7 @@
3535
3539
  }
3536
3540
  };
3537
3541
 
3538
- function animate$1(el, show, _ref) {let { duration, transition, velocity } = _ref;
3542
+ function animate$1(el, show, { duration, transition, velocity }) {
3539
3543
  const height = toFloat(css(el, 'height'));
3540
3544
  css(el, 'height', height);
3541
3545
  return Transition.start(
@@ -3587,7 +3591,7 @@
3587
3591
  },
3588
3592
 
3589
3593
  update: {
3590
- read(_ref) {let { visible } = _ref;
3594
+ read({ visible }) {
3591
3595
  if (!isVideo(this.$el)) {
3592
3596
  return false;
3593
3597
  }
@@ -3599,7 +3603,7 @@
3599
3603
  };
3600
3604
  },
3601
3605
 
3602
- write(_ref2) {let { prev, visible, inView } = _ref2;
3606
+ write({ prev, visible, inView }) {
3603
3607
  if (!visible || this.inView && !inView) {
3604
3608
  pause(this.$el);
3605
3609
  } else if (this.autoplay === true && !prev || this.inView && inView) {
@@ -3677,7 +3681,7 @@
3677
3681
  return coverDim;
3678
3682
  },
3679
3683
 
3680
- write(_ref) {let { height, width } = _ref;
3684
+ write({ height, width }) {
3681
3685
  css(this.$el, { height, width });
3682
3686
  },
3683
3687
 
@@ -3703,7 +3707,7 @@
3703
3707
  },
3704
3708
 
3705
3709
  computed: {
3706
- container(_ref) {let { container } = _ref;
3710
+ container({ container }) {
3707
3711
  return container === true && this.$container || container && $(container);
3708
3712
  }
3709
3713
  }
@@ -3719,7 +3723,7 @@
3719
3723
  },
3720
3724
 
3721
3725
  data: {
3722
- pos: "bottom-" + (isRtl ? 'right' : 'left'),
3726
+ pos: `bottom-${isRtl ? 'right' : 'left'}`,
3723
3727
  offset: false,
3724
3728
  flip: true,
3725
3729
  shift: true,
@@ -3820,7 +3824,7 @@
3820
3824
  },
3821
3825
 
3822
3826
  computed: {
3823
- panel(_ref, $el) {let { selPanel } = _ref;
3827
+ panel({ selPanel }, $el) {
3824
3828
  return $(selPanel, $el);
3825
3829
  },
3826
3830
 
@@ -3828,7 +3832,7 @@
3828
3832
  return this.panel;
3829
3833
  },
3830
3834
 
3831
- bgClose(_ref2) {let { bgClose } = _ref2;
3835
+ bgClose({ bgClose }) {
3832
3836
  return bgClose && this.panel;
3833
3837
  }
3834
3838
  },
@@ -3844,7 +3848,7 @@
3844
3848
  name: 'click',
3845
3849
 
3846
3850
  delegate() {
3847
- return this.selClose + ",a[href*=\"#\"]";
3851
+ return `${this.selClose},a[href*="#"]`;
3848
3852
  },
3849
3853
 
3850
3854
  handler(e) {
@@ -3933,7 +3937,7 @@
3933
3937
  once(
3934
3938
  this.$el,
3935
3939
  'hide',
3936
- on(document, pointerDown$1, (_ref3) => {let { target } = _ref3;
3940
+ on(document, pointerDown$1, ({ target }) => {
3937
3941
  if (
3938
3942
  last(active$1) !== this ||
3939
3943
  this.overlay && !within(target, this.$el) ||
@@ -3944,8 +3948,8 @@
3944
3948
 
3945
3949
  once(
3946
3950
  document,
3947
- pointerUp$1 + " " + pointerCancel + " scroll",
3948
- (_ref4) => {let { defaultPrevented, type, target: newTarget } = _ref4;
3951
+ `${pointerUp$1} ${pointerCancel} scroll`,
3952
+ ({ defaultPrevented, type, target: newTarget }) => {
3949
3953
  if (
3950
3954
  !defaultPrevented &&
3951
3955
  type === pointerUp$1 &&
@@ -4033,7 +4037,7 @@
4033
4037
  }
4034
4038
  };
4035
4039
 
4036
- function animate(el, show, _ref5) {let { transitionElement, _toggle } = _ref5;
4040
+ function animate(el, show, { transitionElement, _toggle }) {
4037
4041
  return new Promise((resolve, reject) =>
4038
4042
  once(el, 'show hide', () => {
4039
4043
  el._reject == null ? void 0 : el._reject();
@@ -4081,7 +4085,7 @@
4081
4085
  on(
4082
4086
  el,
4083
4087
  'touchstart',
4084
- (_ref6) => {let { targetTouches } = _ref6;
4088
+ ({ targetTouches }) => {
4085
4089
  if (targetTouches.length === 1) {
4086
4090
  startClientY = targetTouches[0].clientY;
4087
4091
  }
@@ -4200,14 +4204,14 @@
4200
4204
  },
4201
4205
 
4202
4206
  computed: {
4203
- boundary(_ref, $el) {let { boundary, boundaryX, boundaryY } = _ref;
4207
+ boundary({ boundary, boundaryX, boundaryY }, $el) {
4204
4208
  return [
4205
4209
  query(boundaryX || boundary, $el) || window,
4206
4210
  query(boundaryY || boundary, $el) || window];
4207
4211
 
4208
4212
  },
4209
4213
 
4210
- target(_ref2, $el) {let { target, targetX, targetY } = _ref2;
4214
+ target({ target, targetX, targetY }, $el) {
4211
4215
  targetX = targetX || target || this.targetEl;
4212
4216
  targetY = targetY || target || this.targetEl;
4213
4217
 
@@ -4223,7 +4227,7 @@
4223
4227
  },
4224
4228
 
4225
4229
  beforeConnect() {
4226
- this.clsDrop = this.$props.clsDrop || "uk-" + this.$options.name;
4230
+ this.clsDrop = this.$props.clsDrop || `uk-${this.$options.name}`;
4227
4231
  },
4228
4232
 
4229
4233
  connected() {
@@ -4238,7 +4242,7 @@
4238
4242
  this.lazyload(this.targetEl);
4239
4243
  }
4240
4244
 
4241
- this._style = ((_ref3) => {let { width, height } = _ref3;return { width, height };})(this.$el.style);
4245
+ this._style = (({ width, height }) => ({ width, height }))(this.$el.style);
4242
4246
  },
4243
4247
 
4244
4248
  disconnected() {
@@ -4254,7 +4258,7 @@
4254
4258
  name: 'click',
4255
4259
 
4256
4260
  delegate() {
4257
- return "." + this.clsDrop + "-close";
4261
+ return `.${this.clsDrop}-close`;
4258
4262
  },
4259
4263
 
4260
4264
  handler(e) {
@@ -4270,7 +4274,7 @@
4270
4274
  return 'a[href*="#"]';
4271
4275
  },
4272
4276
 
4273
- handler(_ref4) {let { defaultPrevented, current } = _ref4;
4277
+ handler({ defaultPrevented, current }) {
4274
4278
  const { hash } = current;
4275
4279
  if (
4276
4280
  !defaultPrevented &&
@@ -4332,7 +4336,7 @@
4332
4336
  },
4333
4337
 
4334
4338
  {
4335
- name: pointerEnter + " focusin",
4339
+ name: `${pointerEnter} focusin`,
4336
4340
 
4337
4341
  filter() {
4338
4342
  return includes(this.mode, 'hover');
@@ -4346,7 +4350,7 @@
4346
4350
  },
4347
4351
 
4348
4352
  {
4349
- name: pointerLeave + " focusout",
4353
+ name: `${pointerLeave} focusout`,
4350
4354
 
4351
4355
  filter() {
4352
4356
  return includes(this.mode, 'hover');
@@ -4389,22 +4393,22 @@
4389
4393
  on(
4390
4394
  document,
4391
4395
  pointerDown$1,
4392
- (_ref5) => {let { target } = _ref5;return (
4393
- !within(target, this.$el) &&
4394
- once(
4395
- document,
4396
- pointerUp$1 + " " + pointerCancel + " scroll",
4397
- (_ref6) => {let { defaultPrevented, type, target: newTarget } = _ref6;
4398
- if (
4399
- !defaultPrevented &&
4400
- type === pointerUp$1 &&
4401
- target === newTarget &&
4402
- !(this.targetEl && within(target, this.targetEl)))
4403
- {
4404
- this.hide(false);
4405
- }
4406
- },
4407
- true));}),
4396
+ ({ target }) =>
4397
+ !within(target, this.$el) &&
4398
+ once(
4399
+ document,
4400
+ `${pointerUp$1} ${pointerCancel} scroll`,
4401
+ ({ defaultPrevented, type, target: newTarget }) => {
4402
+ if (
4403
+ !defaultPrevented &&
4404
+ type === pointerUp$1 &&
4405
+ target === newTarget &&
4406
+ !(this.targetEl && within(target, this.targetEl)))
4407
+ {
4408
+ this.hide(false);
4409
+ }
4410
+ },
4411
+ true)),
4408
4412
 
4409
4413
 
4410
4414
 
@@ -4456,7 +4460,7 @@
4456
4460
  {
4457
4461
  name: 'hide',
4458
4462
 
4459
- handler(_ref7) {let { target } = _ref7;
4463
+ handler({ target }) {
4460
4464
  if (this.$el !== target) {
4461
4465
  active =
4462
4466
  active === null && within(target, this.$el) && this.isToggled() ?
@@ -4480,7 +4484,7 @@
4480
4484
  },
4481
4485
 
4482
4486
  methods: {
4483
- show(target, delay) {if (target === void 0) {target = this.targetEl;}if (delay === void 0) {delay = true;}
4487
+ show(target = this.targetEl, delay = true) {
4484
4488
  if (this.isToggled() && target && this.targetEl && target !== this.targetEl) {
4485
4489
  this.hide(false, false);
4486
4490
  }
@@ -4516,7 +4520,7 @@
4516
4520
 
4517
4521
  },
4518
4522
 
4519
- hide(delay, animate) {if (delay === void 0) {delay = true;}if (animate === void 0) {animate = true;}
4523
+ hide(delay = true, animate = true) {
4520
4524
  const hide = () => this.toggleElement(this.$el, false, this.animateOut && animate);
4521
4525
 
4522
4526
  this.clearTimers();
@@ -4547,7 +4551,7 @@
4547
4551
  },
4548
4552
 
4549
4553
  position() {
4550
- removeClass(this.$el, this.clsDrop + "-stack");
4554
+ removeClass(this.$el, `${this.clsDrop}-stack`);
4551
4555
  css(this.$el, this._style);
4552
4556
 
4553
4557
  // Ensure none positioned element does not generate scrollbars
@@ -4568,7 +4572,7 @@
4568
4572
  offset(this.boundary[i])[prop],
4569
4573
  viewports[i][prop] - 2 * viewportOffset),
4570
4574
 
4571
- ["overflow-" + axis]: 'auto'
4575
+ [`overflow-${axis}`]: 'auto'
4572
4576
  });
4573
4577
  }
4574
4578
  }
@@ -4576,7 +4580,7 @@
4576
4580
  const maxWidth = viewports[0].width - 2 * viewportOffset;
4577
4581
 
4578
4582
  if (this.$el.offsetWidth > maxWidth) {
4579
- addClass(this.$el, this.clsDrop + "-stack");
4583
+ addClass(this.$el, `${this.clsDrop}-stack`);
4580
4584
  }
4581
4585
 
4582
4586
  css(this.$el, 'maxWidth', maxWidth);
@@ -4603,7 +4607,7 @@
4603
4607
  offset(this.boundary[i])[end],
4604
4608
  viewports[i][end] - viewportOffset) -
4605
4609
  targetOffset[end]) - positionOffset,
4606
- ["overflow-" + axis]: 'auto'
4610
+ [`overflow-${axis}`]: 'auto'
4607
4611
  });
4608
4612
 
4609
4613
  this.positionAt(this.$el, this.target, this.boundary);
@@ -4645,7 +4649,7 @@
4645
4649
  return this.input.nextElementSibling;
4646
4650
  },
4647
4651
 
4648
- target(_ref, $el) {let { target } = _ref;
4652
+ target({ target }, $el) {
4649
4653
  return (
4650
4654
  target && (
4651
4655
  target === true && parent(this.input) === $el && this.input.nextElementSibling ||
@@ -4736,7 +4740,7 @@
4736
4740
  };
4737
4741
  },
4738
4742
 
4739
- write(_ref) {let { columns, rows } = _ref;
4743
+ write({ columns, rows }) {
4740
4744
  for (const row of rows) {
4741
4745
  for (const column of row) {
4742
4746
  toggleClass(column, this.margin, rows[0] !== row);
@@ -4812,7 +4816,7 @@
4812
4816
  return sorted;
4813
4817
  }
4814
4818
 
4815
- function getOffset(element, offset) {if (offset === void 0) {offset = false;}
4819
+ function getOffset(element, offset = false) {
4816
4820
  let { offsetTop, offsetLeft, offsetHeight, offsetWidth } = element;
4817
4821
 
4818
4822
  if (offset) {
@@ -4888,7 +4892,7 @@
4888
4892
 
4889
4893
  update: [
4890
4894
  {
4891
- write(_ref) {let { columns } = _ref;
4895
+ write({ columns }) {
4892
4896
  toggleClass(this.$el, this.clsStack, columns.length < 2);
4893
4897
  },
4894
4898
 
@@ -4936,7 +4940,7 @@
4936
4940
  return { padding, columns, translates, height: translates ? elHeight : '' };
4937
4941
  },
4938
4942
 
4939
- write(_ref2) {let { height, padding } = _ref2;
4943
+ write({ height, padding }) {
4940
4944
  css(this.$el, 'paddingBottom', padding || '');
4941
4945
  height !== false && css(this.$el, 'height', height);
4942
4946
  },
@@ -4957,7 +4961,7 @@
4957
4961
  };
4958
4962
  },
4959
4963
 
4960
- write(_ref3) {let { columns, scrolled, translates } = _ref3;
4964
+ write({ columns, scrolled, translates }) {
4961
4965
  if (scrolled === false && !translates) {
4962
4966
  return;
4963
4967
  }
@@ -4968,11 +4972,11 @@
4968
4972
  el,
4969
4973
  'transform',
4970
4974
  !scrolled && !translates ?
4971
- '' : "translateY(" + (
4972
-
4973
- (translates && -translates[i][j]) + (
4974
- scrolled ? i % 2 ? scrolled : scrolled / 8 : 0)) + "px)")));
4975
-
4975
+ '' :
4976
+ `translateY(${
4977
+ (translates && -translates[i][j]) + (
4978
+ scrolled ? i % 2 ? scrolled : scrolled / 8 : 0)
4979
+ }px)`)));
4976
4980
 
4977
4981
 
4978
4982
 
@@ -5022,7 +5026,7 @@
5022
5026
 
5023
5027
  computed: {
5024
5028
  elements: {
5025
- get(_ref, $el) {let { target } = _ref;
5029
+ get({ target }, $el) {
5026
5030
  return $$(target, $el);
5027
5031
  },
5028
5032
 
@@ -5043,7 +5047,7 @@
5043
5047
  };
5044
5048
  },
5045
5049
 
5046
- write(_ref2) {let { rows } = _ref2;
5050
+ write({ rows }) {
5047
5051
  for (const { heights, elements } of rows) {
5048
5052
  elements.forEach((el, i) => css(el, 'minHeight', heights[i]));
5049
5053
  }
@@ -5107,7 +5111,7 @@
5107
5111
  },
5108
5112
 
5109
5113
  update: {
5110
- read(_ref) {let { minHeight: prev } = _ref;
5114
+ read({ minHeight: prev }) {
5111
5115
  if (!isVisible(this.$el)) {
5112
5116
  return false;
5113
5117
  }
@@ -5133,34 +5137,34 @@
5133
5137
  scrollingElement === scrollElement || body === scrollElement;
5134
5138
 
5135
5139
  // on mobile devices (iOS and Android) window.innerHeight !== 100vh
5136
- minHeight = "calc(" + (isScrollingElement ? '100vh' : viewportHeight + "px");
5140
+ minHeight = `calc(${isScrollingElement ? '100vh' : `${viewportHeight}px`}`;
5137
5141
 
5138
5142
  if (this.offsetTop) {
5139
5143
  if (isScrollingElement) {
5140
5144
  const top = offsetPosition(this.$el)[0] - offsetPosition(scrollElement)[0];
5141
- minHeight += top > 0 && top < viewportHeight / 2 ? " - " + top + "px" : '';
5145
+ minHeight += top > 0 && top < viewportHeight / 2 ? ` - ${top}px` : '';
5142
5146
  } else {
5143
- minHeight += " - " + css(scrollElement, 'paddingTop');
5147
+ minHeight += ` - ${css(scrollElement, 'paddingTop')}`;
5144
5148
  }
5145
5149
  }
5146
5150
 
5147
5151
  if (this.offsetBottom === true) {
5148
- minHeight += " - " + dimensions$1(this.$el.nextElementSibling).height + "px";
5152
+ minHeight += ` - ${dimensions$1(this.$el.nextElementSibling).height}px`;
5149
5153
  } else if (isNumeric(this.offsetBottom)) {
5150
- minHeight += " - " + this.offsetBottom + "vh";
5154
+ minHeight += ` - ${this.offsetBottom}vh`;
5151
5155
  } else if (this.offsetBottom && endsWith(this.offsetBottom, 'px')) {
5152
- minHeight += " - " + toFloat(this.offsetBottom) + "px";
5156
+ minHeight += ` - ${toFloat(this.offsetBottom)}px`;
5153
5157
  } else if (isString(this.offsetBottom)) {
5154
- minHeight += " - " + dimensions$1(query(this.offsetBottom, this.$el)).height + "px";
5158
+ minHeight += ` - ${dimensions$1(query(this.offsetBottom, this.$el)).height}px`;
5155
5159
  }
5156
5160
 
5157
- minHeight += (box ? " - " + box + "px" : '') + ")";
5161
+ minHeight += `${box ? ` - ${box}px` : ''})`;
5158
5162
  }
5159
5163
 
5160
5164
  return { minHeight, prev };
5161
5165
  },
5162
5166
 
5163
- write(_ref2) {let { minHeight } = _ref2;
5167
+ write({ minHeight }) {
5164
5168
  css(this.$el, { minHeight });
5165
5169
 
5166
5170
  if (this.minHeight && toFloat(css(this.$el, 'minHeight')) < this.minHeight) {
@@ -5326,7 +5330,7 @@
5326
5330
 
5327
5331
  let match;
5328
5332
  while (match = symbolRe.exec(svg)) {
5329
- symbols[svg][match[3]] = "<svg xmlns=\"http://www.w3.org/2000/svg\"" + match[1] + "svg>";
5333
+ symbols[svg][match[3]] = `<svg xmlns="http://www.w3.org/2000/svg"${match[1]}svg>`;
5330
5334
  }
5331
5335
  }
5332
5336
 
@@ -5481,7 +5485,7 @@
5481
5485
 
5482
5486
  beforeConnect() {
5483
5487
  const icon = this.$props.icon;
5484
- this.icon = closest(this.$el, '.uk-nav-primary') ? icon + "-large" : icon;
5488
+ this.icon = closest(this.$el, '.uk-nav-primary') ? `${icon}-large` : icon;
5485
5489
  }
5486
5490
  };
5487
5491
 
@@ -5491,7 +5495,7 @@
5491
5495
  beforeConnect() {
5492
5496
  addClass(this.$el, 'uk-slidenav');
5493
5497
  const icon = this.$props.icon;
5494
- this.icon = hasClass(this.$el, 'uk-slidenav-large') ? icon + "-large" : icon;
5498
+ this.icon = hasClass(this.$el, 'uk-slidenav-large') ? `${icon}-large` : icon;
5495
5499
  }
5496
5500
  };
5497
5501
 
@@ -5512,7 +5516,7 @@
5512
5516
  extends: IconComponent,
5513
5517
 
5514
5518
  beforeConnect() {
5515
- this.icon = "close-" + (hasClass(this.$el, 'uk-close-large') ? 'large' : 'icon');
5519
+ this.icon = `close-${hasClass(this.$el, 'uk-close-large') ? 'large' : 'icon'}`;
5516
5520
  }
5517
5521
  };
5518
5522
 
@@ -5650,7 +5654,7 @@
5650
5654
  } else if (src) {
5651
5655
  const change = !includes(el.style.backgroundImage, src);
5652
5656
  if (change) {
5653
- css(el, 'backgroundImage', "url(" + escape(src) + ")");
5657
+ css(el, 'backgroundImage', `url(${escape(src)})`);
5654
5658
  trigger(el, createEvent('load', false));
5655
5659
  }
5656
5660
  }
@@ -5762,13 +5766,13 @@
5762
5766
  function toMedia(value, element) {
5763
5767
  if (isString(value)) {
5764
5768
  if (startsWith(value, '@')) {
5765
- value = toFloat(css(element, "--uk-breakpoint-" + value.substr(1)));
5769
+ value = toFloat(css(element, `--uk-breakpoint-${value.substr(1)}`));
5766
5770
  } else if (isNaN(value)) {
5767
5771
  return value;
5768
5772
  }
5769
5773
  }
5770
5774
 
5771
- return value && isNumeric(value) ? "(min-width: " + value + "px)" : '';
5775
+ return value && isNumeric(value) ? `(min-width: ${value}px)` : '';
5772
5776
  }
5773
5777
 
5774
5778
  var leader = {
@@ -5786,13 +5790,13 @@
5786
5790
  },
5787
5791
 
5788
5792
  computed: {
5789
- fill(_ref) {let { fill } = _ref;
5793
+ fill({ fill }) {
5790
5794
  return fill || css(this.$el, '--uk-leader-fill-content');
5791
5795
  }
5792
5796
  },
5793
5797
 
5794
5798
  connected() {
5795
- [this.wrapper] = wrapInner(this.$el, "<span class=\"" + this.clsWrapper + "\">");
5799
+ [this.wrapper] = wrapInner(this.$el, `<span class="${this.clsWrapper}">`);
5796
5800
  },
5797
5801
 
5798
5802
  disconnected() {
@@ -5810,7 +5814,7 @@
5810
5814
  };
5811
5815
  },
5812
5816
 
5813
- write(_ref2) {let { width, fill, hide } = _ref2;
5817
+ write({ width, fill, hide }) {
5814
5818
  toggleClass(this.wrapper, this.clsHide, hide);
5815
5819
  attr(this.wrapper, this.attrFill, new Array(width).join(fill));
5816
5820
  },
@@ -5861,12 +5865,12 @@
5861
5865
 
5862
5866
  };
5863
5867
 
5864
- function install$2(_ref) {let { modal } = _ref;
5868
+ function install$2({ modal }) {
5865
5869
  modal.dialog = function (content, options) {
5866
- const dialog = modal("<div class=\"uk-modal\"> <div class=\"uk-modal-dialog\">" +
5867
-
5868
- content + "</div> </div>",
5869
-
5870
+ const dialog = modal(
5871
+ `<div class="uk-modal">
5872
+ <div class="uk-modal-dialog">${content}</div>
5873
+ </div>`,
5870
5874
  options);
5871
5875
 
5872
5876
 
@@ -5887,14 +5891,14 @@
5887
5891
 
5888
5892
  modal.alert = function (message, options) {
5889
5893
  return openDialog(
5890
- (_ref2) => {let { labels } = _ref2;return "<div class=\"uk-modal-body\">" + (
5891
- isString(message) ? message : html(message)) + "</div> <div class=\"uk-modal-footer uk-text-right\"> <button class=\"uk-button uk-button-primary uk-modal-close\" autofocus>" +
5892
-
5893
-
5894
-
5895
- labels.ok + "</button> </div>";},
5896
-
5897
-
5894
+ ({ labels }) => `<div class="uk-modal-body">${
5895
+ isString(message) ? message : html(message)
5896
+ }</div>
5897
+ <div class="uk-modal-footer uk-text-right">
5898
+ <button class="uk-button uk-button-primary uk-modal-close" autofocus>${
5899
+ labels.ok
5900
+ }</button>
5901
+ </div>`,
5898
5902
  options,
5899
5903
  (deferred) => deferred.resolve());
5900
5904
 
@@ -5902,15 +5906,15 @@
5902
5906
 
5903
5907
  modal.confirm = function (message, options) {
5904
5908
  return openDialog(
5905
- (_ref3) => {let { labels } = _ref3;return "<form> <div class=\"uk-modal-body\">" + (
5906
- isString(message) ? message : html(message)) + "</div> <div class=\"uk-modal-footer uk-text-right\"> <button class=\"uk-button uk-button-default uk-modal-close\" type=\"button\">" +
5907
-
5908
-
5909
- labels.cancel + "</button> <button class=\"uk-button uk-button-primary\" autofocus>" +
5910
-
5911
- labels.ok + "</button> </div> </form>";},
5912
-
5913
-
5909
+ ({ labels }) => `<form>
5910
+ <div class="uk-modal-body">${isString(message) ? message : html(message)}</div>
5911
+ <div class="uk-modal-footer uk-text-right">
5912
+ <button class="uk-button uk-button-default uk-modal-close" type="button">${
5913
+ labels.cancel
5914
+ }</button>
5915
+ <button class="uk-button uk-button-primary" autofocus>${labels.ok}</button>
5916
+ </div>
5917
+ </form>`,
5914
5918
  options,
5915
5919
  (deferred) => deferred.reject());
5916
5920
 
@@ -5918,18 +5922,18 @@
5918
5922
 
5919
5923
  modal.prompt = function (message, value, options) {
5920
5924
  return openDialog(
5921
- (_ref4) => {let { labels } = _ref4;return "<form class=\"uk-form-stacked\"> <div class=\"uk-modal-body\"> <label>" + (
5922
-
5923
- isString(message) ? message : html(message)) + "</label> <input class=\"uk-input\" value=\"" + (
5924
- value || '') + "\" autofocus> </div> <div class=\"uk-modal-footer uk-text-right\"> <button class=\"uk-button uk-button-default uk-modal-close\" type=\"button\">" +
5925
-
5926
-
5927
-
5928
- labels.cancel + "</button> <button class=\"uk-button uk-button-primary\">" +
5929
-
5930
- labels.ok + "</button> </div> </form>";},
5931
-
5932
-
5925
+ ({ labels }) => `<form class="uk-form-stacked">
5926
+ <div class="uk-modal-body">
5927
+ <label>${isString(message) ? message : html(message)}</label>
5928
+ <input class="uk-input" value="${value || ''}" autofocus>
5929
+ </div>
5930
+ <div class="uk-modal-footer uk-text-right">
5931
+ <button class="uk-button uk-button-default uk-modal-close" type="button">${
5932
+ labels.cancel
5933
+ }</button>
5934
+ <button class="uk-button uk-button-primary">${labels.ok}</button>
5935
+ </div>
5936
+ </form>`,
5933
5937
  options,
5934
5938
  (deferred) => deferred.resolve(null),
5935
5939
  (dialog) => $('input', dialog.$el).value);
@@ -6009,12 +6013,12 @@
6009
6013
  },
6010
6014
 
6011
6015
  computed: {
6012
- dropbarAnchor(_ref, $el) {let { dropbarAnchor } = _ref;
6016
+ dropbarAnchor({ dropbarAnchor }, $el) {
6013
6017
  return query(dropbarAnchor, $el) || $el;
6014
6018
  },
6015
6019
 
6016
6020
  dropbar: {
6017
- get(_ref2) {let { dropbar } = _ref2;
6021
+ get({ dropbar }) {
6018
6022
  if (!dropbar) {
6019
6023
  return null;
6020
6024
  }
@@ -6039,11 +6043,11 @@
6039
6043
  },
6040
6044
 
6041
6045
  dropdowns: {
6042
- get(_ref3, $el) {let { clsDrop } = _ref3;
6043
- const dropdowns = $$("." + clsDrop, $el);
6046
+ get({ clsDrop }, $el) {
6047
+ const dropdowns = $$(`.${clsDrop}`, $el);
6044
6048
 
6045
6049
  if (this.dropContainer !== $el) {
6046
- for (const el of $$("." + clsDrop, this.dropContainer)) {var _this$getDropdown;
6050
+ for (const el of $$(`.${clsDrop}`, this.dropContainer)) {var _this$getDropdown;
6047
6051
  const target = (_this$getDropdown = this.getDropdown(el)) == null ? void 0 : _this$getDropdown.targetEl;
6048
6052
  if (!includes(dropdowns, el) && target && within(target, this.$el)) {
6049
6053
  dropdowns.push(el);
@@ -6062,7 +6066,7 @@
6062
6066
  ...this.$props,
6063
6067
  flip: false,
6064
6068
  shift: true,
6065
- pos: "bottom-" + this.align,
6069
+ pos: `bottom-${this.align}`,
6066
6070
  boundary: this.boundary === true ? this.$el : this.boundary
6067
6071
  });
6068
6072
 
@@ -6072,7 +6076,7 @@
6072
6076
  },
6073
6077
 
6074
6078
  toggles: {
6075
- get(_ref4, $el) {let { dropdown } = _ref4;
6079
+ get({ dropdown }, $el) {
6076
6080
  return $$(dropdown, $el);
6077
6081
  },
6078
6082
 
@@ -6103,7 +6107,7 @@
6103
6107
  return this.dropdown;
6104
6108
  },
6105
6109
 
6106
- handler(_ref5) {let { current } = _ref5;
6110
+ handler({ current }) {
6107
6111
  const active = this.getActive();
6108
6112
  if (
6109
6113
  active &&
@@ -6133,8 +6137,8 @@
6133
6137
 
6134
6138
  if (!active || active.targetEl !== current) {
6135
6139
  current.click();
6136
- once(this.dropContainer, 'show', (_ref6) => {let { target } = _ref6;return (
6137
- focusFirstFocusableElement(target));});
6140
+ once(this.dropContainer, 'show', ({ target }) =>
6141
+ focusFirstFocusableElement(target));
6138
6142
 
6139
6143
  } else {
6140
6144
  focusFirstFocusableElement(active.$el);
@@ -6153,7 +6157,7 @@
6153
6157
  },
6154
6158
 
6155
6159
  delegate() {
6156
- return "." + this.clsDrop;
6160
+ return `.${this.clsDrop}`;
6157
6161
  },
6158
6162
 
6159
6163
  handler(e) {
@@ -6224,7 +6228,7 @@
6224
6228
  return this.dropbar;
6225
6229
  },
6226
6230
 
6227
- handler(_ref7) {let { target } = _ref7;
6231
+ handler({ target }) {
6228
6232
  if (!this.isDropbarDrop(target)) {
6229
6233
  return;
6230
6234
  }
@@ -6233,7 +6237,7 @@
6233
6237
  after(this.dropbarAnchor, this.dropbar);
6234
6238
  }
6235
6239
 
6236
- addClass(target, this.clsDrop + "-dropbar");
6240
+ addClass(target, `${this.clsDrop}-dropbar`);
6237
6241
  }
6238
6242
  },
6239
6243
 
@@ -6248,18 +6252,18 @@
6248
6252
  return this.dropbar;
6249
6253
  },
6250
6254
 
6251
- handler(_ref8) {let { target } = _ref8;
6255
+ handler({ target }) {
6252
6256
  if (!this.isDropbarDrop(target)) {
6253
6257
  return;
6254
6258
  }
6255
6259
 
6256
6260
  const drop = this.getDropdown(target);
6257
6261
  this._observer = observeResize([drop.$el, ...drop.target], () => {
6258
- const targetOffsets = parents(target, "." + this.clsDrop).
6262
+ const targetOffsets = parents(target, `.${this.clsDrop}`).
6259
6263
  concat(target).
6260
6264
  map((el) => offset(el));
6261
- const minTop = Math.min(...targetOffsets.map((_ref9) => {let { top } = _ref9;return top;}));
6262
- const maxBottom = Math.max(...targetOffsets.map((_ref10) => {let { bottom } = _ref10;return bottom;}));
6265
+ const minTop = Math.min(...targetOffsets.map(({ top }) => top));
6266
+ const maxBottom = Math.max(...targetOffsets.map(({ bottom }) => bottom));
6263
6267
  const dropbarOffset = offset(this.dropbar);
6264
6268
  css(this.dropbar, 'top', this.dropbar.offsetTop - (dropbarOffset.top - minTop));
6265
6269
  this.transitionTo(
@@ -6305,7 +6309,7 @@
6305
6309
  return this.dropbar;
6306
6310
  },
6307
6311
 
6308
- handler(_ref11) {var _this$_observer;let { target } = _ref11;
6312
+ handler({ target }) {var _this$_observer;
6309
6313
  if (!this.isDropbarDrop(target)) {
6310
6314
  return;
6311
6315
  }
@@ -6332,7 +6336,7 @@
6332
6336
 
6333
6337
  el = oldHeight < newHeight && el;
6334
6338
 
6335
- css(el, 'clipPath', "polygon(0 0,100% 0,100% " + oldHeight + "px,0 " + oldHeight + "px)");
6339
+ css(el, 'clipPath', `polygon(0 0,100% 0,100% ${oldHeight}px,0 ${oldHeight}px)`);
6336
6340
 
6337
6341
  height(dropbar, oldHeight);
6338
6342
 
@@ -6342,7 +6346,7 @@
6342
6346
  Transition.start(
6343
6347
  el,
6344
6348
  {
6345
- clipPath: "polygon(0 0,100% 0,100% " + newHeight + "px,0 " + newHeight + "px)"
6349
+ clipPath: `polygon(0 0,100% 0,100% ${newHeight}px,0 ${newHeight}px)`
6346
6350
  },
6347
6351
  this.duration)]).
6348
6352
 
@@ -6431,7 +6435,7 @@
6431
6435
  // Handle Swipe Gesture
6432
6436
  const pos = getEventPos(e);
6433
6437
  const target = 'tagName' in e.target ? e.target : parent(e.target);
6434
- once(document, pointerUp$1 + " " + pointerCancel + " scroll", (e) => {
6438
+ once(document, `${pointerUp$1} ${pointerCancel} scroll`, (e) => {
6435
6439
  const { x, y } = getEventPos(e);
6436
6440
 
6437
6441
  // swipe
@@ -6441,7 +6445,7 @@
6441
6445
  {
6442
6446
  setTimeout(() => {
6443
6447
  trigger(target, 'swipe');
6444
- trigger(target, "swipe" + swipeDirection(pos.x, pos.y, x, y));
6448
+ trigger(target, `swipe${swipeDirection(pos.x, pos.y, x, y)}`);
6445
6449
  });
6446
6450
  }
6447
6451
  });
@@ -6488,27 +6492,27 @@
6488
6492
  },
6489
6493
 
6490
6494
  computed: {
6491
- clsFlip(_ref) {let { flip, clsFlip } = _ref;
6495
+ clsFlip({ flip, clsFlip }) {
6492
6496
  return flip ? clsFlip : '';
6493
6497
  },
6494
6498
 
6495
- clsOverlay(_ref2) {let { overlay, clsOverlay } = _ref2;
6499
+ clsOverlay({ overlay, clsOverlay }) {
6496
6500
  return overlay ? clsOverlay : '';
6497
6501
  },
6498
6502
 
6499
- clsMode(_ref3) {let { mode, clsMode } = _ref3;
6500
- return clsMode + "-" + mode;
6503
+ clsMode({ mode, clsMode }) {
6504
+ return `${clsMode}-${mode}`;
6501
6505
  },
6502
6506
 
6503
- clsSidebarAnimation(_ref4) {let { mode, clsSidebarAnimation } = _ref4;
6507
+ clsSidebarAnimation({ mode, clsSidebarAnimation }) {
6504
6508
  return mode === 'none' || mode === 'reveal' ? '' : clsSidebarAnimation;
6505
6509
  },
6506
6510
 
6507
- clsContainerAnimation(_ref5) {let { mode, clsContainerAnimation } = _ref5;
6511
+ clsContainerAnimation({ mode, clsContainerAnimation }) {
6508
6512
  return mode !== 'push' && mode !== 'reveal' ? '' : clsContainerAnimation;
6509
6513
  },
6510
6514
 
6511
- transitionElement(_ref6) {let { mode } = _ref6;
6515
+ transitionElement({ mode }) {
6512
6516
  return mode === 'reveal' ? parent(this.panel) : this.panel;
6513
6517
  }
6514
6518
  },
@@ -6645,11 +6649,11 @@
6645
6649
  },
6646
6650
 
6647
6651
  computed: {
6648
- container(_ref, $el) {let { selContainer } = _ref;
6652
+ container({ selContainer }, $el) {
6649
6653
  return closest($el, selContainer);
6650
6654
  },
6651
6655
 
6652
- content(_ref2, $el) {let { selContent } = _ref2;
6656
+ content({ selContent }, $el) {
6653
6657
  return closest($el, selContent);
6654
6658
  }
6655
6659
  },
@@ -6672,7 +6676,7 @@
6672
6676
  };
6673
6677
  },
6674
6678
 
6675
- write(_ref3) {let { max } = _ref3;
6679
+ write({ max }) {
6676
6680
  css(this.$el, { minHeight: this.minHeight, maxHeight: max });
6677
6681
  },
6678
6682
 
@@ -6812,14 +6816,14 @@
6812
6816
 
6813
6817
  computed: {
6814
6818
  elements: {
6815
- get(_ref, $el) {let { target } = _ref;
6819
+ get({ target }, $el) {
6816
6820
  return target ? $$(target, $el) : [$el];
6817
6821
  },
6818
6822
 
6819
6823
  watch(elements, prev) {
6820
6824
  if (this.hidden) {
6821
6825
  // use `opacity:0` instead of `visibility:hidden` to make content focusable with keyboard
6822
- css(filter$1(elements, ":not(." + this.inViewClass + ")"), 'opacity', 0);
6826
+ css(filter$1(elements, `:not(.${this.inViewClass})`), 'opacity', 0);
6823
6827
  }
6824
6828
 
6825
6829
  if (!isEqual(elements, prev)) {
@@ -6959,7 +6963,7 @@
6959
6963
  immediate: true
6960
6964
  },
6961
6965
 
6962
- elements(_ref) {let { closest: selector } = _ref;
6966
+ elements({ closest: selector }) {
6963
6967
  return closest(this.links, selector || '*');
6964
6968
  }
6965
6969
  },
@@ -6999,7 +7003,7 @@
6999
7003
  return { active };
7000
7004
  },
7001
7005
 
7002
- write(_ref2) {let { active } = _ref2;
7006
+ write({ active }) {
7003
7007
  const changed = active !== false && !hasClass(this.elements[active], this.cls);
7004
7008
 
7005
7009
  this.links.forEach((el) => el.blur());
@@ -7057,7 +7061,7 @@
7057
7061
  },
7058
7062
 
7059
7063
  computed: {
7060
- selTarget(_ref, $el) {let { selTarget } = _ref;
7064
+ selTarget({ selTarget }, $el) {
7061
7065
  return selTarget && $(selTarget, $el) || $el;
7062
7066
  }
7063
7067
  },
@@ -7084,7 +7088,7 @@
7084
7088
  this.hide();
7085
7089
  removeClass(this.selTarget, this.clsInactive);
7086
7090
  }
7087
- css(this.$el, { position: '', top: '' });
7091
+ reset(this.$el);
7088
7092
 
7089
7093
  remove$1(this.placeholder);
7090
7094
  this.placeholder = null;
@@ -7138,14 +7142,14 @@
7138
7142
 
7139
7143
  update: [
7140
7144
  {
7141
- read(_ref2, types) {let { height: height$1, width, margin, sticky } = _ref2;
7145
+ read({ height: height$1, width, margin, sticky }, types) {
7142
7146
  this.inactive = !this.matchMedia || !isVisible(this.$el);
7143
7147
 
7144
7148
  if (this.inactive) {
7145
- return false;
7149
+ return;
7146
7150
  }
7147
7151
 
7148
- const hide = this.isFixed && types.has('resize');
7152
+ const hide = this.isFixed && types.has('resize') && !sticky;
7149
7153
  if (hide) {
7150
7154
  css(this.selTarget, 'transition', '0s');
7151
7155
  this.hide();
@@ -7196,6 +7200,7 @@
7196
7200
 
7197
7201
 
7198
7202
  sticky =
7203
+ maxScrollHeight &&
7199
7204
  !this.showOnUp &&
7200
7205
  start + offset$1 === topOffset &&
7201
7206
  end ===
@@ -7211,6 +7216,7 @@
7211
7216
  overflow,
7212
7217
  topOffset,
7213
7218
  height: height$1,
7219
+ elHeight,
7214
7220
  width,
7215
7221
  margin,
7216
7222
  top: offsetPosition(referenceElement)[0],
@@ -7218,11 +7224,20 @@
7218
7224
  };
7219
7225
  },
7220
7226
 
7221
- write(_ref3) {let { height, width, margin, offset, sticky } = _ref3;
7227
+ write({ height, width, margin, offset, sticky }) {
7228
+ if (this.inactive || sticky || !this.isFixed) {
7229
+ reset(this.$el);
7230
+ }
7231
+
7232
+ if (this.inactive) {
7233
+ return;
7234
+ }
7235
+
7222
7236
  if (sticky) {
7223
7237
  height = width = margin = 0;
7224
7238
  css(this.$el, { position: 'sticky', top: offset });
7225
7239
  }
7240
+
7226
7241
  const { placeholder } = this;
7227
7242
 
7228
7243
  css(placeholder, { height, width, margin });
@@ -7237,14 +7252,14 @@
7237
7252
  },
7238
7253
 
7239
7254
  {
7240
- read(_ref4)
7241
-
7242
-
7243
-
7244
-
7245
-
7246
-
7247
- {let { scroll: prevScroll = 0, dir: prevDir = 'down', overflow, overflowScroll = 0, start, end } = _ref4;
7255
+ read({
7256
+ scroll: prevScroll = 0,
7257
+ dir: prevDir = 'down',
7258
+ overflow,
7259
+ overflowScroll = 0,
7260
+ start,
7261
+ end
7262
+ }) {
7248
7263
  const scroll = document.scrollingElement.scrollTop;
7249
7264
  const dir = prevScroll <= scroll ? 'down' : 'up';
7250
7265
 
@@ -7335,7 +7350,7 @@
7335
7350
  }
7336
7351
  },
7337
7352
 
7338
- events: ['resize', 'scroll']
7353
+ events: ['resize', 'resizeViewport', 'scroll']
7339
7354
  }],
7340
7355
 
7341
7356
 
@@ -7375,6 +7390,7 @@
7375
7390
  offset,
7376
7391
  topOffset,
7377
7392
  height,
7393
+ elHeight,
7378
7394
  offsetParentTop,
7379
7395
  sticky
7380
7396
  } = this._data;
@@ -7388,10 +7404,7 @@
7388
7404
  position = 'absolute';
7389
7405
  }
7390
7406
 
7391
- css(this.$el, {
7392
- position,
7393
- width
7394
- });
7407
+ css(this.$el, { position, width });
7395
7408
  css(this.$el, 'marginTop', 0, 'important');
7396
7409
  }
7397
7410
 
@@ -7402,7 +7415,11 @@
7402
7415
  css(this.$el, 'top', offset);
7403
7416
 
7404
7417
  this.setActive(active);
7405
- toggleClass(this.$el, this.clsBelow, scroll > topOffset + height);
7418
+ toggleClass(
7419
+ this.$el,
7420
+ this.clsBelow,
7421
+ scroll > topOffset + (sticky ? Math.min(height, elHeight) : height));
7422
+
7406
7423
  addClass(this.$el, this.clsFixed);
7407
7424
  },
7408
7425
 
@@ -7447,6 +7464,10 @@
7447
7464
  return value;
7448
7465
  }
7449
7466
 
7467
+ function reset(el) {
7468
+ css(el, { position: '', top: '', marginTop: '', width: '' });
7469
+ }
7470
+
7450
7471
  var Switcher = {
7451
7472
  mixins: [Lazyload, Swipe, Togglable],
7452
7473
 
@@ -7470,7 +7491,7 @@
7470
7491
 
7471
7492
  computed: {
7472
7493
  connects: {
7473
- get(_ref, $el) {let { connect } = _ref;
7494
+ get({ connect }, $el) {
7474
7495
  return queryAll(connect, $el);
7475
7496
  },
7476
7497
 
@@ -7501,7 +7522,7 @@
7501
7522
  },
7502
7523
 
7503
7524
  toggles: {
7504
- get(_ref2, $el) {let { toggle } = _ref2;
7525
+ get({ toggle }, $el) {
7505
7526
  return $$(toggle, $el).filter(
7506
7527
  (el) => !matches(el, '.uk-disabled *, .uk-disabled, [disabled]'));
7507
7528
 
@@ -7548,7 +7569,7 @@
7548
7569
  },
7549
7570
 
7550
7571
  delegate() {
7551
- return "[" + this.attrItem + "],[data-" + this.attrItem + "]";
7572
+ return `[${this.attrItem}],[data-${this.attrItem}]`;
7552
7573
  },
7553
7574
 
7554
7575
  handler(e) {
@@ -7568,7 +7589,7 @@
7568
7589
  return this.connects;
7569
7590
  },
7570
7591
 
7571
- handler(_ref3) {let { type } = _ref3;
7592
+ handler({ type }) {
7572
7593
  this.show(endsWith(type, 'Left') ? 'next' : 'previous');
7573
7594
  }
7574
7595
  }],
@@ -7589,7 +7610,7 @@
7589
7610
  });
7590
7611
 
7591
7612
  const animate = prev >= 0 && prev !== next;
7592
- this.connects.forEach(async (_ref4) => {let { children } = _ref4;
7613
+ this.connects.forEach(async ({ children }) => {
7593
7614
  await this.toggleElement(
7594
7615
  toNodes(children).filter((child) => hasClass(child, this.cls)),
7595
7616
  false,
@@ -7651,7 +7672,7 @@
7651
7672
 
7652
7673
  computed: {
7653
7674
  target: {
7654
- get(_ref, $el) {let { href, target } = _ref;
7675
+ get({ href, target }, $el) {
7655
7676
  target = queryAll(target || href, $el);
7656
7677
  return target.length && target || [$el];
7657
7678
  },
@@ -7706,7 +7727,7 @@
7706
7727
  },
7707
7728
 
7708
7729
  {
7709
- name: pointerEnter + " " + pointerLeave + " focus blur",
7730
+ name: `${pointerEnter} ${pointerLeave} focus blur`,
7710
7731
 
7711
7732
  filter() {
7712
7733
  return includes(this.mode, 'hover');
@@ -7740,7 +7761,7 @@
7740
7761
 
7741
7762
  this._showState = show ? expanded : null;
7742
7763
 
7743
- this.toggle("toggle" + (show ? 'show' : 'hide'));
7764
+ this.toggle(`toggle${show ? 'show' : 'hide'}`);
7744
7765
  }
7745
7766
  },
7746
7767
 
@@ -7793,7 +7814,7 @@
7793
7814
  return this.target;
7794
7815
  },
7795
7816
 
7796
- handler(_ref2) {let { target, type } = _ref2;
7817
+ handler({ target, type }) {
7797
7818
  this.updateAria(target === this.target[0] && type === 'show');
7798
7819
  }
7799
7820
  },
@@ -7980,7 +8001,7 @@
7980
8001
 
7981
8002
  let digits = String(Math.trunc(timespan[unit]));
7982
8003
 
7983
- digits = digits.length < 2 ? "0" + digits : digits;
8004
+ digits = digits.length < 2 ? `0${digits}` : digits;
7984
8005
 
7985
8006
  if (el.textContent !== digits) {
7986
8007
  digits = digits.split('');
@@ -8011,7 +8032,7 @@
8011
8032
  const clsLeave = 'uk-transition-leave';
8012
8033
  const clsEnter = 'uk-transition-enter';
8013
8034
 
8014
- function fade(action, target, duration, stagger) {if (stagger === void 0) {stagger = 0;}
8035
+ function fade(action, target, duration, stagger = 0) {
8015
8036
  const index = transitionIndex(target, true);
8016
8037
  const propsIn = { opacity: 1 };
8017
8038
  const propsOut = { opacity: 0 };
@@ -8274,13 +8295,13 @@
8274
8295
  },
8275
8296
 
8276
8297
  methods: {
8277
- animate(action, target) {if (target === void 0) {target = this.$el;}
8298
+ animate(action, target = this.$el) {
8278
8299
  const name = this.animation;
8279
8300
  const animationFn =
8280
8301
  name === 'fade' ?
8281
8302
  fade :
8282
8303
  name === 'delayed-fade' ?
8283
- function () {for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}return fade(...args, 40);} :
8304
+ (...args) => fade(...args, 40) :
8284
8305
  name ?
8285
8306
  slide :
8286
8307
  () => {
@@ -8313,8 +8334,8 @@
8313
8334
 
8314
8335
  computed: {
8315
8336
  toggles: {
8316
- get(_ref, $el) {let { attrItem } = _ref;
8317
- return $$("[" + attrItem + "],[data-" + attrItem + "]", $el);
8337
+ get({ attrItem }, $el) {
8338
+ return $$(`[${attrItem}],[data-${attrItem}]`, $el);
8318
8339
  },
8319
8340
 
8320
8341
  watch() {
@@ -8330,8 +8351,8 @@
8330
8351
  },
8331
8352
 
8332
8353
  children: {
8333
- get(_ref2, $el) {let { target } = _ref2;
8334
- return $$(target + " > *", $el);
8354
+ get({ target }, $el) {
8355
+ return $$(`${target} > *`, $el);
8335
8356
  },
8336
8357
 
8337
8358
  watch(list, old) {
@@ -8349,7 +8370,7 @@
8349
8370
  name: 'click',
8350
8371
 
8351
8372
  delegate() {
8352
- return "[" + this.attrItem + "],[data-" + this.attrItem + "]";
8373
+ return `[${this.attrItem}],[data-${this.attrItem}]`;
8353
8374
  },
8354
8375
 
8355
8376
  handler(e) {
@@ -8378,7 +8399,7 @@
8378
8399
  });
8379
8400
  },
8380
8401
 
8381
- async setState(state, animate) {if (animate === void 0) {animate = true;}
8402
+ async setState(state, animate = true) {
8382
8403
  state = { filter: { '': '' }, sort: [], ...state };
8383
8404
 
8384
8405
  trigger(this.$el, 'beforeFilter', [this, state]);
@@ -8458,9 +8479,9 @@
8458
8479
 
8459
8480
  function matchFilter(
8460
8481
  el,
8461
- attr, _ref3)
8462
-
8463
- {let { filter: stateFilter = { '': '' }, sort: [stateSort, stateOrder] } = _ref3;
8482
+ attr,
8483
+ { filter: stateFilter = { '': '' }, sort: [stateSort, stateOrder] })
8484
+ {
8464
8485
  const { filter = '', group = '', sort, order = 'asc' } = getFilter(el, attr);
8465
8486
 
8466
8487
  return isUndefined(sort) ?
@@ -8473,7 +8494,7 @@
8473
8494
  return listA.length === listB.length && listA.every((el) => listB.includes(el));
8474
8495
  }
8475
8496
 
8476
- function getSelector(_ref4) {let { filter } = _ref4;
8497
+ function getSelector({ filter }) {
8477
8498
  let selector = '';
8478
8499
  each(filter, (value) => selector += value || '');
8479
8500
  return selector;
@@ -8510,13 +8531,13 @@
8510
8531
  return Math.abs(css(el, 'transform').split(',')[4] / el.offsetWidth) || 0;
8511
8532
  }
8512
8533
 
8513
- function translate(value, unit) {if (value === void 0) {value = 0;}if (unit === void 0) {unit = '%';}
8534
+ function translate(value = 0, unit = '%') {
8514
8535
  value += value ? unit : '';
8515
- return "translate3d(" + value + ", 0, 0)";
8536
+ return `translate3d(${value}, 0, 0)`;
8516
8537
  }
8517
8538
 
8518
8539
  function scale3d(value) {
8519
- return "scale3d(" + value + ", " + value + ", 1)";
8540
+ return `scale3d(${value}, ${value}, 1)`;
8520
8541
  }
8521
8542
 
8522
8543
  var Animations$1 = {
@@ -8556,7 +8577,7 @@
8556
8577
  }
8557
8578
  };
8558
8579
 
8559
- function Transitioner$1(prev, next, dir, _ref) {let { animation, easing } = _ref;
8580
+ function Transitioner$1(prev, next, dir, { animation, easing }) {
8560
8581
  const { percent, translate, show = noop } = animation;
8561
8582
  const props = show(dir);
8562
8583
  const deferred = new Deferred();
@@ -8564,7 +8585,7 @@
8564
8585
  return {
8565
8586
  dir,
8566
8587
 
8567
- show(duration, percent, linear) {if (percent === void 0) {percent = 0;}
8588
+ show(duration, percent = 0, linear) {
8568
8589
  const timing = linear ? 'linear' : easing;
8569
8590
  duration -= Math.round(duration * clamp(percent, -1, 1));
8570
8591
 
@@ -8594,7 +8615,7 @@
8594
8615
  }
8595
8616
  },
8596
8617
 
8597
- forward(duration, percent) {if (percent === void 0) {percent = this.percent();}
8618
+ forward(duration, percent = this.percent()) {
8598
8619
  Transition.cancel([next, prev]);
8599
8620
  return this.show(duration, percent, true);
8600
8621
  },
@@ -8727,7 +8748,7 @@
8727
8748
  passive: true,
8728
8749
 
8729
8750
  delegate() {
8730
- return this.selSlides;
8751
+ return `${this.selList} > *`;
8731
8752
  },
8732
8753
 
8733
8754
  handler(e) {
@@ -8915,12 +8936,12 @@
8915
8936
  },
8916
8937
 
8917
8938
  computed: {
8918
- nav(_ref, $el) {let { selNav } = _ref;
8939
+ nav({ selNav }, $el) {
8919
8940
  return $(selNav, $el);
8920
8941
  },
8921
8942
 
8922
- selNavItem(_ref2) {let { attrItem } = _ref2;
8923
- return "[" + attrItem + "],[data-" + attrItem + "]";
8943
+ selNavItem({ attrItem }) {
8944
+ return `[${attrItem}],[data-${attrItem}]`;
8924
8945
  },
8925
8946
 
8926
8947
  navItems(_, $el) {
@@ -8934,7 +8955,7 @@
8934
8955
  html(
8935
8956
  this.nav,
8936
8957
  this.slides.
8937
- map((_, i) => "<li " + this.attrItem + "=\"" + i + "\"><a href></a></li>").
8958
+ map((_, i) => `<li ${this.attrItem}="${i}"><a href></a></li>`).
8938
8959
  join(''));
8939
8960
 
8940
8961
  }
@@ -8993,8 +9014,7 @@
8993
9014
  easing: String,
8994
9015
  index: Number,
8995
9016
  finite: Boolean,
8996
- velocity: Number,
8997
- selSlides: String
9017
+ velocity: Number
8998
9018
  },
8999
9019
 
9000
9020
  data: () => ({
@@ -9022,11 +9042,11 @@
9022
9042
  },
9023
9043
 
9024
9044
  computed: {
9025
- duration(_ref, $el) {let { velocity } = _ref;
9045
+ duration({ velocity }, $el) {
9026
9046
  return speedUp($el.offsetWidth / velocity);
9027
9047
  },
9028
9048
 
9029
- list(_ref2, $el) {let { selList } = _ref2;
9049
+ list({ selList }, $el) {
9030
9050
  return $(selList, $el);
9031
9051
  },
9032
9052
 
@@ -9034,13 +9054,9 @@
9034
9054
  return this.length - 1;
9035
9055
  },
9036
9056
 
9037
- selSlides(_ref3) {let { selList, selSlides } = _ref3;
9038
- return selList + " " + (selSlides || '> *');
9039
- },
9040
-
9041
9057
  slides: {
9042
9058
  get() {
9043
- return $$(this.selSlides, this.$el);
9059
+ return children(this.list);
9044
9060
  },
9045
9061
 
9046
9062
  watch() {
@@ -9054,7 +9070,7 @@
9054
9070
  },
9055
9071
 
9056
9072
  methods: {
9057
- show(index, force) {if (force === void 0) {force = false;}
9073
+ show(index, force = false) {
9058
9074
  if (this.dragging || !this.length) {
9059
9075
  return;
9060
9076
  }
@@ -9125,11 +9141,11 @@
9125
9141
  return promise;
9126
9142
  },
9127
9143
 
9128
- getIndex(index, prev) {if (index === void 0) {index = this.index;}if (prev === void 0) {prev = this.index;}
9144
+ getIndex(index = this.index, prev = this.index) {
9129
9145
  return clamp(getIndex(index, this.slides, prev, this.finite), 0, this.maxIndex);
9130
9146
  },
9131
9147
 
9132
- getValidIndex(index, prevIndex) {if (index === void 0) {index = this.index;}if (prevIndex === void 0) {prevIndex = this.prevIndex;}
9148
+ getValidIndex(index = this.index, prevIndex = this.prevIndex) {
9133
9149
  return this.getIndex(index, prevIndex);
9134
9150
  },
9135
9151
 
@@ -9159,18 +9175,18 @@
9159
9175
  return this._getTransitioner(prev, prev !== next && next).getDistance();
9160
9176
  },
9161
9177
 
9162
- _translate(percent, prev, next) {if (prev === void 0) {prev = this.prevIndex;}if (next === void 0) {next = this.index;}
9178
+ _translate(percent, prev = this.prevIndex, next = this.index) {
9163
9179
  const transitioner = this._getTransitioner(prev !== next ? prev : false, next);
9164
9180
  transitioner.translate(percent);
9165
9181
  return transitioner;
9166
9182
  },
9167
9183
 
9168
9184
  _getTransitioner(
9169
- prev,
9170
- next,
9171
- dir,
9172
- options)
9173
- {if (prev === void 0) {prev = this.prevIndex;}if (next === void 0) {next = this.index;}if (dir === void 0) {dir = this.dir || 1;}if (options === void 0) {options = this.transitionOptions;}
9185
+ prev = this.prevIndex,
9186
+ next = this.index,
9187
+ dir = this.dir || 1,
9188
+ options = this.transitionOptions)
9189
+ {
9174
9190
  return new this.Transitioner(
9175
9191
  isNumber(prev) ? this.slides[prev] : prev,
9176
9192
  isNumber(next) ? this.slides[next] : next,
@@ -9204,7 +9220,7 @@
9204
9220
  },
9205
9221
 
9206
9222
  computed: {
9207
- animation(_ref) {let { animation, Animations } = _ref;
9223
+ animation({ animation, Animations }) {
9208
9224
  return { ...(Animations[animation] || Animations.slide), name: animation };
9209
9225
  },
9210
9226
 
@@ -9214,15 +9230,15 @@
9214
9230
  },
9215
9231
 
9216
9232
  events: {
9217
- beforeitemshow(_ref2) {let { target } = _ref2;
9233
+ beforeitemshow({ target }) {
9218
9234
  addClass(target, this.clsActive);
9219
9235
  },
9220
9236
 
9221
- itemshown(_ref3) {let { target } = _ref3;
9237
+ itemshown({ target }) {
9222
9238
  addClass(target, this.clsActivated);
9223
9239
  },
9224
9240
 
9225
- itemhidden(_ref4) {let { target } = _ref4;
9241
+ itemhidden({ target }) {
9226
9242
  removeClass(target, this.clsActive, this.clsActivated);
9227
9243
  }
9228
9244
  }
@@ -9254,15 +9270,15 @@
9254
9270
  pauseOnHover: false,
9255
9271
  velocity: 2,
9256
9272
  Animations: Animations$1,
9257
- template: "<div class=\"uk-lightbox uk-overflow-hidden\"> <ul class=\"uk-lightbox-items\"></ul> <div class=\"uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque\"> <button class=\"uk-lightbox-toolbar-icon uk-close-large\" type=\"button\" uk-close></button> </div> <a class=\"uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade\" href uk-slidenav-previous uk-lightbox-item=\"previous\"></a> <a class=\"uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade\" href uk-slidenav-next uk-lightbox-item=\"next\"></a> <div class=\"uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque\"></div> </div>"
9258
-
9259
-
9260
-
9261
-
9262
-
9263
-
9264
-
9265
-
9273
+ template: `<div class="uk-lightbox uk-overflow-hidden">
9274
+ <ul class="uk-lightbox-items"></ul>
9275
+ <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque">
9276
+ <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button>
9277
+ </div>
9278
+ <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a>
9279
+ <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a>
9280
+ <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div>
9281
+ </div>`
9266
9282
  }),
9267
9283
 
9268
9284
  created() {
@@ -9274,14 +9290,14 @@
9274
9290
  },
9275
9291
 
9276
9292
  computed: {
9277
- caption(_ref, $el) {let { selCaption } = _ref;
9293
+ caption({ selCaption }, $el) {
9278
9294
  return $(selCaption, $el);
9279
9295
  }
9280
9296
  },
9281
9297
 
9282
9298
  events: [
9283
9299
  {
9284
- name: pointerMove$1 + " " + pointerDown$1 + " keydown",
9300
+ name: `${pointerMove$1} ${pointerDown$1} keydown`,
9285
9301
 
9286
9302
  handler: 'showControls'
9287
9303
  },
@@ -9292,15 +9308,13 @@
9292
9308
  self: true,
9293
9309
 
9294
9310
  delegate() {
9295
- return this.selSlides;
9311
+ return `${this.selList} > *`;
9296
9312
  },
9297
9313
 
9298
9314
  handler(e) {
9299
- if (e.defaultPrevented) {
9300
- return;
9315
+ if (!e.defaultPrevented) {
9316
+ this.hide();
9301
9317
  }
9302
-
9303
- this.hide();
9304
9318
  }
9305
9319
  },
9306
9320
 
@@ -9417,7 +9431,7 @@
9417
9431
  allowfullscreen: '',
9418
9432
  style: 'max-width: 100%; box-sizing: border-box;',
9419
9433
  'uk-responsive': '',
9420
- 'uk-video': "" + this.videoAutoplay
9434
+ 'uk-video': `${this.videoAutoplay}`
9421
9435
  };
9422
9436
 
9423
9437
  // Image
@@ -9439,7 +9453,7 @@
9439
9453
  poster,
9440
9454
  controls: '',
9441
9455
  playsinline: '',
9442
- 'uk-video': "" + this.videoAutoplay
9456
+ 'uk-video': `${this.videoAutoplay}`
9443
9457
  });
9444
9458
 
9445
9459
  on(video, 'loadedmetadata', () => {
@@ -9473,9 +9487,9 @@
9473
9487
  this.setItem(
9474
9488
  item,
9475
9489
  createEl('iframe', {
9476
- src: "https://www.youtube" + (matches[1] || '') + ".com/embed/" + matches[2] + (
9477
- matches[3] ? "?" + matches[3] : ''),
9478
-
9490
+ src: `https://www.youtube${matches[1] || ''}.com/embed/${matches[2]}${
9491
+ matches[3] ? `?${matches[3]}` : ''
9492
+ }`,
9479
9493
  width: 1920,
9480
9494
  height: 1080,
9481
9495
  ...iframeAttrs,
@@ -9487,10 +9501,10 @@
9487
9501
  } else if (matches = src.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/)) {
9488
9502
  try {
9489
9503
  const { height, width } = await (
9490
- await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url=" +
9491
- encodeURI(
9492
- src),
9493
-
9504
+ await fetch(
9505
+ `https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(
9506
+ src)
9507
+ }`,
9494
9508
  {
9495
9509
  credentials: 'omit'
9496
9510
  })).
@@ -9500,9 +9514,9 @@
9500
9514
  this.setItem(
9501
9515
  item,
9502
9516
  createEl('iframe', {
9503
- src: "https://player.vimeo.com/video/" + matches[1] + (
9504
- matches[2] ? "?" + matches[2] : ''),
9505
-
9517
+ src: `https://player.vimeo.com/video/${matches[1]}${
9518
+ matches[2] ? `?${matches[2]}` : ''
9519
+ }`,
9506
9520
  width,
9507
9521
  height,
9508
9522
  ...iframeAttrs,
@@ -9518,7 +9532,7 @@
9518
9532
 
9519
9533
 
9520
9534
  methods: {
9521
- loadItem(index) {if (index === void 0) {index = this.index;}
9535
+ loadItem(index = this.index) {
9522
9536
  const item = this.getItem(index);
9523
9537
 
9524
9538
  if (!this.getSlide(item).childElementCount) {
@@ -9526,7 +9540,7 @@
9526
9540
  }
9527
9541
  },
9528
9542
 
9529
- getItem(index) {if (index === void 0) {index = this.index;}
9543
+ getItem(index = this.index) {
9530
9544
  return this.items[getIndex(index, this.slides)];
9531
9545
  },
9532
9546
 
@@ -9556,7 +9570,7 @@
9556
9570
  };
9557
9571
 
9558
9572
  function createEl(tag, attrs) {
9559
- const el = fragment("<" + tag + ">");
9573
+ const el = fragment(`<${tag}>`);
9560
9574
  attr(el, attrs);
9561
9575
  return el;
9562
9576
  }
@@ -9570,7 +9584,7 @@
9570
9584
 
9571
9585
  computed: {
9572
9586
  toggles: {
9573
- get(_ref, $el) {let { toggle } = _ref;
9587
+ get({ toggle }, $el) {
9574
9588
  return $$(toggle, $el);
9575
9589
  },
9576
9590
 
@@ -9589,7 +9603,7 @@
9589
9603
  name: 'click',
9590
9604
 
9591
9605
  delegate() {
9592
- return this.toggle + ":not(.uk-disabled)";
9606
+ return `${this.toggle}:not(.uk-disabled)`;
9593
9607
  },
9594
9608
 
9595
9609
  handler(e) {
@@ -9605,7 +9619,7 @@
9605
9619
 
9606
9620
  if (isElement(index)) {
9607
9621
  const { source } = toItem(index);
9608
- index = findIndex(items, (_ref2) => {let { source: src } = _ref2;return source === src;});
9622
+ index = findIndex(items, ({ source: src }) => source === src);
9609
9623
  }
9610
9624
 
9611
9625
  this.panel = this.panel || this.$create('lightboxPanel', { ...this.$props, items });
@@ -9662,8 +9676,8 @@
9662
9676
  install,
9663
9677
 
9664
9678
  computed: {
9665
- marginProp(_ref) {let { pos } = _ref;
9666
- return "margin" + (startsWith(pos, 'top') ? 'Top' : 'Bottom');
9679
+ marginProp({ pos }) {
9680
+ return `margin${startsWith(pos, 'top') ? 'Top' : 'Bottom'}`;
9667
9681
  },
9668
9682
 
9669
9683
  startProps() {
@@ -9673,21 +9687,21 @@
9673
9687
 
9674
9688
  created() {
9675
9689
  const container =
9676
- $("." + this.clsContainer + "-" + this.pos, this.container) ||
9690
+ $(`.${this.clsContainer}-${this.pos}`, this.container) ||
9677
9691
  append(
9678
- this.container, "<div class=\"" +
9679
- this.clsContainer + " " + this.clsContainer + "-" + this.pos + "\" style=\"display: block\"></div>");
9692
+ this.container,
9693
+ `<div class="${this.clsContainer} ${this.clsContainer}-${this.pos}" style="display: block"></div>`);
9680
9694
 
9681
9695
 
9682
9696
  this.$mount(
9683
9697
  append(
9684
- container, "<div class=\"" +
9685
- this.clsMsg + (
9686
- this.status ? " " + this.clsMsg + "-" + this.status : '') + "\" role=\"alert\"> <a href class=\"" +
9687
-
9688
- this.clsClose + "\" data-uk-close></a> <div>" +
9689
- this.message + "</div> </div>"));
9690
-
9698
+ container,
9699
+ `<div class="${this.clsMsg}${
9700
+ this.status ? ` ${this.clsMsg}-${this.status}` : ''
9701
+ }" role="alert">
9702
+ <a href class="${this.clsClose}" data-uk-close></a>
9703
+ <div>${this.message}</div>
9704
+ </div>`));
9691
9705
 
9692
9706
 
9693
9707
  },
@@ -9839,7 +9853,7 @@
9839
9853
  let transformFn;
9840
9854
 
9841
9855
  if (prop === 'x' || prop === 'y') {
9842
- prop = "translate" + ucfirst(prop);
9856
+ prop = `translate${ucfirst(prop)}`;
9843
9857
  transformFn = (stop) => toFloat(toFloat(stop).toFixed(unit === 'px' ? 0 : 6));
9844
9858
  } else if (prop === 'scale') {
9845
9859
  unit = '';
@@ -9854,7 +9868,7 @@
9854
9868
  stops = parseStops(stops, transformFn);
9855
9869
 
9856
9870
  return (css, percent) => {
9857
- css.transform += " " + prop + "(" + getValue(stops, percent) + unit + ")";
9871
+ css.transform += ` ${prop}(${getValue(stops, percent)}${unit})`;
9858
9872
  };
9859
9873
  }
9860
9874
 
@@ -9873,7 +9887,7 @@
9873
9887
  return i === 3 ? toFloat(value) : parseInt(value, 10);
9874
9888
  }).
9875
9889
  join(',');
9876
- css[prop] = "rgba(" + value + ")";
9890
+ css[prop] = `rgba(${value})`;
9877
9891
  };
9878
9892
  }
9879
9893
 
@@ -9897,7 +9911,7 @@
9897
9911
 
9898
9912
  return (css, percent) => {
9899
9913
  const value = getValue(stops, percent);
9900
- css.filter += " " + prop + "(" + (value + unit) + ")";
9914
+ css.filter += ` ${prop}(${value + unit})`;
9901
9915
  };
9902
9916
  }
9903
9917
 
@@ -9925,7 +9939,7 @@
9925
9939
  return unit === '%' ? stop * length / 100 : stop;
9926
9940
  });
9927
9941
 
9928
- if (!stops.some((_ref) => {let [value] = _ref;return value;})) {
9942
+ if (!stops.some(([value]) => value)) {
9929
9943
  return noop;
9930
9944
  }
9931
9945
 
@@ -9977,13 +9991,13 @@
9977
9991
 
9978
9992
  const positions = {};
9979
9993
  for (const prop of bgProps) {
9980
- const values = props[prop].map((_ref2) => {let [value] = _ref2;return value;});
9994
+ const values = props[prop].map(([value]) => value);
9981
9995
  const min = Math.min(...values);
9982
9996
  const max = Math.max(...values);
9983
9997
  const down = values.indexOf(min) < values.indexOf(max);
9984
9998
  const diff = max - min;
9985
9999
 
9986
- positions[prop] = (down ? -diff : 0) - (down ? min : max) + "px";
10000
+ positions[prop] = `${(down ? -diff : 0) - (down ? min : max)}px`;
9987
10001
  dimEl[prop === 'bgy' ? 'height' : 'width'] += diff;
9988
10002
  }
9989
10003
 
@@ -9992,26 +10006,26 @@
9992
10006
  for (const prop of bgProps) {
9993
10007
  const attr = prop === 'bgy' ? 'height' : 'width';
9994
10008
  const overflow = dim[attr] - dimEl[attr];
9995
- positions[prop] = "max(" + getBackgroundPos(el, prop) + ",-" + overflow + "px) + " + positions[prop];
10009
+ positions[prop] = `max(${getBackgroundPos(el, prop)},-${overflow}px) + ${positions[prop]}`;
9996
10010
  }
9997
10011
 
9998
10012
  const fn = setBackgroundPosFn(bgProps, positions, props);
9999
10013
  return (css, percent) => {
10000
10014
  fn(css, percent);
10001
- css.backgroundSize = dim.width + "px " + dim.height + "px";
10015
+ css.backgroundSize = `${dim.width}px ${dim.height}px`;
10002
10016
  css.backgroundRepeat = 'no-repeat';
10003
10017
  };
10004
10018
  }
10005
10019
 
10006
10020
  function getBackgroundPos(el, prop) {
10007
- return getCssValue(el, "background-position-" + prop.substr(-1), '');
10021
+ return getCssValue(el, `background-position-${prop.substr(-1)}`, '');
10008
10022
  }
10009
10023
 
10010
10024
  function setBackgroundPosFn(bgProps, positions, props) {
10011
10025
  return function (css, percent) {
10012
10026
  for (const prop of bgProps) {
10013
10027
  const value = getValue(props[prop], percent);
10014
- css["background-position-" + prop.substr(-1)] = "calc(" + positions[prop] + " + " + value + "px)";
10028
+ css[`background-position-${prop.substr(-1)}`] = `calc(${positions[prop]} + ${value}px)`;
10015
10029
  }
10016
10030
  };
10017
10031
  }
@@ -10047,7 +10061,7 @@
10047
10061
  };
10048
10062
  }
10049
10063
 
10050
- function parseStops(stops, fn) {if (fn === void 0) {fn = toFloat;}
10064
+ function parseStops(stops, fn = toFloat) {
10051
10065
  const result = [];
10052
10066
  const { length } = stops;
10053
10067
  let nullIndex = 0;
@@ -10090,7 +10104,7 @@
10090
10104
  }
10091
10105
 
10092
10106
  function getStop(stops, percent) {
10093
- const index = findIndex(stops.slice(1), (_ref3) => {let [, targetPercent] = _ref3;return percent <= targetPercent;}) + 1;
10107
+ const index = findIndex(stops.slice(1), ([, targetPercent]) => percent <= targetPercent) + 1;
10094
10108
  return [
10095
10109
  stops[index - 1][0],
10096
10110
  stops[index][0],
@@ -10148,17 +10162,17 @@
10148
10162
  },
10149
10163
 
10150
10164
  computed: {
10151
- target(_ref, $el) {let { target } = _ref;
10165
+ target({ target }, $el) {
10152
10166
  return getOffsetElement(target && query(target, $el) || $el);
10153
10167
  },
10154
10168
 
10155
- start(_ref2) {let { start } = _ref2;
10169
+ start({ start }) {
10156
10170
  return toPx(start, 'height', this.target, true);
10157
10171
  },
10158
10172
 
10159
- end(_ref3) {let { end, viewport } = _ref3;
10173
+ end({ end, viewport }) {
10160
10174
  return toPx(
10161
- end || (viewport = (1 - viewport) * 100) && viewport + "vh+" + viewport + "%",
10175
+ end || (viewport = (1 - viewport) * 100) && `${viewport}vh+${viewport}%`,
10162
10176
  'height',
10163
10177
  this.target,
10164
10178
  true);
@@ -10171,7 +10185,7 @@
10171
10185
  },
10172
10186
 
10173
10187
  update: {
10174
- read(_ref4, types) {let { percent } = _ref4;
10188
+ read({ percent }, types) {
10175
10189
  if (!types.has('scroll')) {
10176
10190
  percent = false;
10177
10191
  }
@@ -10193,7 +10207,7 @@
10193
10207
  };
10194
10208
  },
10195
10209
 
10196
- write(_ref5) {let { style } = _ref5;
10210
+ write({ style }) {
10197
10211
  if (!this.matchMedia) {
10198
10212
  this.reset();
10199
10213
  return;
@@ -10258,7 +10272,7 @@
10258
10272
  }
10259
10273
  };
10260
10274
 
10261
- function Transitioner (prev, next, dir, _ref) {let { center, easing, list } = _ref;
10275
+ function Transitioner (prev, next, dir, { center, easing, list }) {
10262
10276
  const deferred = new Deferred();
10263
10277
 
10264
10278
  const from = prev ?
@@ -10271,7 +10285,7 @@
10271
10285
  return {
10272
10286
  dir,
10273
10287
 
10274
- show(duration, percent, linear) {if (percent === void 0) {percent = 0;}
10288
+ show(duration, percent = 0, linear) {
10275
10289
  const timing = linear ? 'linear' : easing;
10276
10290
  duration -= Math.round(duration * clamp(percent, -1, 1));
10277
10291
 
@@ -10305,7 +10319,7 @@
10305
10319
  css(list, 'transform', '');
10306
10320
  },
10307
10321
 
10308
- forward(duration, percent) {if (percent === void 0) {percent = this.percent();}
10322
+ forward(duration, percent = this.percent()) {
10309
10323
  Transition.cancel(list);
10310
10324
  return this.show(duration, percent, true);
10311
10325
  },
@@ -10343,7 +10357,7 @@
10343
10357
  dir * (isRtl ? -1 : 1) === -1 ^
10344
10358
  getElLeft(slide, list) > getElLeft(prev || next));
10345
10359
 
10346
- triggerUpdate(slide, "itemtranslate" + (translateIn ? 'in' : 'out'), {
10360
+ triggerUpdate(slide, `itemtranslate${translateIn ? 'in' : 'out'}`, {
10347
10361
  dir,
10348
10362
  percent: isOut ? 1 - percent : isIn ? percent : isActive ? 1 : 0
10349
10363
  });
@@ -10360,7 +10374,7 @@
10360
10374
  return Math.abs(to - from);
10361
10375
  },
10362
10376
 
10363
- getItemIn(out) {if (out === void 0) {out = false;}
10377
+ getItemIn(out = false) {
10364
10378
  let actives = this.getActives();
10365
10379
  let nextActives = inView(list, getLeft(next || prev, list, center));
10366
10380
 
@@ -10446,12 +10460,8 @@
10446
10460
  return getWidth(this.list) / this.length;
10447
10461
  },
10448
10462
 
10449
- finite(_ref) {let { finite } = _ref;
10450
- return (
10451
- finite ||
10452
- Math.ceil(getWidth(this.list)) <
10453
- Math.trunc(dimensions$1(this.list).width + getMaxElWidth(this.list) + this.center));
10454
-
10463
+ finite({ finite }) {
10464
+ return finite || isFinite(this.list, this.center);
10455
10465
  },
10456
10466
 
10457
10467
  maxIndex() {
@@ -10476,7 +10486,7 @@
10476
10486
  return ~index ? index : this.length - 1;
10477
10487
  },
10478
10488
 
10479
- sets(_ref2) {let { sets: enabled } = _ref2;
10489
+ sets({ sets: enabled }) {
10480
10490
  if (!enabled) {
10481
10491
  return;
10482
10492
  }
@@ -10484,7 +10494,7 @@
10484
10494
  let left = 0;
10485
10495
  const sets = [];
10486
10496
  const width = dimensions$1(this.list).width;
10487
- for (let i = 0; i < this.slides.length; i++) {
10497
+ for (let i = 0; i < this.length; i++) {
10488
10498
  const slideWidth = dimensions$1(this.slides[i]).width;
10489
10499
 
10490
10500
  if (left + slideWidth > width) {
@@ -10520,7 +10530,7 @@
10520
10530
  },
10521
10531
 
10522
10532
  connected() {
10523
- toggleClass(this.$el, this.clsContainer, !$("." + this.clsContainer, this.$el));
10533
+ toggleClass(this.$el, this.clsContainer, !$(`.${this.clsContainer}`, this.$el));
10524
10534
  },
10525
10535
 
10526
10536
  update: {
@@ -10641,7 +10651,7 @@
10641
10651
  }
10642
10652
  },
10643
10653
 
10644
- getValidIndex(index, prevIndex) {if (index === void 0) {index = this.index;}if (prevIndex === void 0) {prevIndex = this.prevIndex;}
10654
+ getValidIndex(index = this.index, prevIndex = this.prevIndex) {
10645
10655
  index = this.getIndex(index, prevIndex);
10646
10656
 
10647
10657
  if (!this.sets) {
@@ -10676,13 +10686,70 @@
10676
10686
  const slide = this.slides[this.getIndex(this.index + i + j++ * i)];
10677
10687
  currentLeft += dimensions$1(slide).width * i;
10678
10688
  slides.add(slide);
10679
- } while (this.slides.length > j && currentLeft > left && currentLeft < right);
10689
+ } while (this.length > j && currentLeft > left && currentLeft < right);
10680
10690
  }
10681
10691
  return Array.from(slides);
10682
10692
  }
10683
10693
  }
10684
10694
  };
10685
10695
 
10696
+ function isFinite(list, center) {
10697
+ const { length } = list;
10698
+
10699
+ if (length < 2) {
10700
+ return true;
10701
+ }
10702
+
10703
+ const { width: listWidth } = dimensions$1(list);
10704
+ if (!center) {
10705
+ return Math.ceil(getWidth(list)) < Math.trunc(listWidth + getMaxElWidth(list));
10706
+ }
10707
+
10708
+ const slides = children(list);
10709
+ const listHalf = Math.trunc(listWidth / 2);
10710
+ for (const index in slides) {
10711
+ const slide = slides[index];
10712
+ const slideWidth = dimensions$1(slide).width;
10713
+ const slidesInView = new Set([slide]);
10714
+
10715
+ let diff = 0;
10716
+ for (const i of [-1, 1]) {
10717
+ let left = slideWidth / 2;
10718
+
10719
+ let j = 0;
10720
+
10721
+ while (left < listHalf) {
10722
+ const nextSlide = slides[getIndex(+index + i + j++ * i, slides)];
10723
+
10724
+ if (slidesInView.has(nextSlide)) {
10725
+ return true;
10726
+ }
10727
+
10728
+ left += dimensions$1(nextSlide).width;
10729
+ slidesInView.add(nextSlide);
10730
+ }
10731
+ diff = Math.max(
10732
+ diff,
10733
+ slideWidth / 2 +
10734
+ dimensions$1(slides[getIndex(+index + i, slides)]).width / 2 - (
10735
+ left - listHalf));
10736
+
10737
+ }
10738
+
10739
+ if (
10740
+ diff >
10741
+ sumBy(
10742
+ slides.filter((slide) => !slidesInView.has(slide)),
10743
+ (slide) => dimensions$1(slide).width))
10744
+
10745
+ {
10746
+ return true;
10747
+ }
10748
+ }
10749
+
10750
+ return false;
10751
+ }
10752
+
10686
10753
  function getMaxElWidth(list) {
10687
10754
  return Math.max(0, ...children(list).map((el) => dimensions$1(el).width));
10688
10755
  }
@@ -10712,7 +10779,7 @@
10712
10779
  return this.item;
10713
10780
  },
10714
10781
 
10715
- handler(_ref) {let { type, detail: { percent, duration, timing, dir } } = _ref;
10782
+ handler({ type, detail: { percent, duration, timing, dir } }) {
10716
10783
  fastdom.read(() => {
10717
10784
  if (!this.matchMedia) {
10718
10785
  return;
@@ -10751,7 +10818,7 @@
10751
10818
  return this.item;
10752
10819
  },
10753
10820
 
10754
- handler(_ref2) {let { type, detail: { percent, dir } } = _ref2;
10821
+ handler({ type, detail: { percent, dir } }) {
10755
10822
  fastdom.read(() => {
10756
10823
  if (!this.matchMedia) {
10757
10824
  this.reset();
@@ -10910,7 +10977,7 @@
10910
10977
  return { height: height - boxModelAdjust(this.list, 'height', 'content-box') };
10911
10978
  },
10912
10979
 
10913
- write(_ref) {let { height } = _ref;
10980
+ write({ height }) {
10914
10981
  height > 0 && css(this.list, 'minHeight', height);
10915
10982
  },
10916
10983
 
@@ -10994,7 +11061,7 @@
10994
11061
  },
10995
11062
 
10996
11063
  handles: {
10997
- get(_ref, el) {let { handle } = _ref;
11064
+ get({ handle }, el) {
10998
11065
  return handle ? $$(handle, el) : this.items;
10999
11066
  },
11000
11067
 
@@ -11085,7 +11152,7 @@
11085
11152
  defaultPrevented ||
11086
11153
  button > 0 ||
11087
11154
  isInput(target) ||
11088
- within(target, "." + this.clsNoDrag) ||
11155
+ within(target, `.${this.clsNoDrag}`) ||
11089
11156
  this.handle && !within(target, this.handle))
11090
11157
  {
11091
11158
  return;
@@ -11359,7 +11426,7 @@
11359
11426
  },
11360
11427
 
11361
11428
  beforeConnect() {
11362
- this.id = "uk-tooltip-" + this._uid;
11429
+ this.id = `uk-tooltip-${this._uid}`;
11363
11430
  this._hasTitle = hasAttr(this.$el, 'title');
11364
11431
  attr(this.$el, {
11365
11432
  title: '',
@@ -11383,8 +11450,8 @@
11383
11450
  }
11384
11451
 
11385
11452
  this._unbind = once(
11386
- document, "keydown " +
11387
- pointerDown$1,
11453
+ document,
11454
+ `keydown ${pointerDown$1}`,
11388
11455
  this.hide,
11389
11456
  false,
11390
11457
  (e) =>
@@ -11415,10 +11482,10 @@
11415
11482
 
11416
11483
  _show() {
11417
11484
  this.tooltip = append(
11418
- this.container, "<div id=\"" +
11419
- this.id + "\" class=\"uk-" + this.$options.name + "\" role=\"tooltip\"> <div class=\"uk-" +
11420
- this.$options.name + "-inner\">" + this.title + "</div> </div>");
11421
-
11485
+ this.container,
11486
+ `<div id="${this.id}" class="uk-${this.$options.name}" role="tooltip">
11487
+ <div class="uk-${this.$options.name}-inner">${this.title}</div>
11488
+ </div>`);
11422
11489
 
11423
11490
 
11424
11491
  on(this.tooltip, 'toggled', (e, toggled) => {
@@ -11432,8 +11499,8 @@
11432
11499
 
11433
11500
  this.origin =
11434
11501
  this.axis === 'y' ?
11435
- flipPosition(dir) + "-" + align :
11436
- align + "-" + flipPosition(dir);
11502
+ `${flipPosition(dir)}-${align}` :
11503
+ `${align}-${flipPosition(dir)}`;
11437
11504
  });
11438
11505
 
11439
11506
  this.toggleElement(this.tooltip, true);
@@ -11444,7 +11511,7 @@
11444
11511
  focus: 'show',
11445
11512
  blur: 'hide',
11446
11513
 
11447
- [pointerEnter + " " + pointerLeave](e) {
11514
+ [`${pointerEnter} ${pointerLeave}`](e) {
11448
11515
  if (!isTouch(e)) {
11449
11516
  this[e.type === pointerEnter ? 'show' : 'hide']();
11450
11517
  }
@@ -11466,7 +11533,7 @@
11466
11533
  }
11467
11534
  }
11468
11535
 
11469
- function getAlignment(el, target, _ref) {let [dir, align] = _ref;
11536
+ function getAlignment(el, target, [dir, align]) {
11470
11537
  const elOffset = offset(el);
11471
11538
  const targetOffset = offset(target);
11472
11539
  const properties = [
@@ -11665,12 +11732,12 @@
11665
11732
 
11666
11733
  function match(pattern, path) {
11667
11734
  return path.match(
11668
- new RegExp("^" +
11669
- pattern.
11670
- replace(/\//g, '\\/').
11671
- replace(/\*\*/g, '(\\/[^\\/]+)*').
11672
- replace(/\*/g, '[^\\/]+').
11673
- replace(/((?!\\))\?/g, '$1.') + "$",
11735
+ new RegExp(
11736
+ `^${pattern.
11737
+ replace(/\//g, '\\/').
11738
+ replace(/\*\*/g, '(\\/[^\\/]+)*').
11739
+ replace(/\*/g, '[^\\/]+').
11740
+ replace(/((?!\\))\?/g, '$1.')}$`,
11674
11741
  'i'));
11675
11742
 
11676
11743