uikit 3.15.18-dev.9cbbb510d → 3.15.19-dev.699ab5a7f

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 (52) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/util.js +4 -4
  3. package/dist/css/uikit-core-rtl.css +5 -2
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +5 -2
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +5 -2
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +5 -2
  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 +2 -1
  13. package/dist/js/components/filter.js +22 -30
  14. package/dist/js/components/filter.min.js +2 -1
  15. package/dist/js/components/lightbox-panel.js +75 -96
  16. package/dist/js/components/lightbox-panel.min.js +2 -1
  17. package/dist/js/components/lightbox.js +78 -99
  18. package/dist/js/components/lightbox.min.js +2 -1
  19. package/dist/js/components/notification.js +11 -14
  20. package/dist/js/components/notification.min.js +2 -1
  21. package/dist/js/components/parallax.js +24 -26
  22. package/dist/js/components/parallax.min.js +2 -1
  23. package/dist/js/components/slider-parallax.js +19 -20
  24. package/dist/js/components/slider-parallax.min.js +2 -1
  25. package/dist/js/components/slider.js +95 -51
  26. package/dist/js/components/slider.min.js +2 -1
  27. package/dist/js/components/slideshow-parallax.js +19 -20
  28. package/dist/js/components/slideshow-parallax.min.js +2 -1
  29. package/dist/js/components/slideshow.js +35 -42
  30. package/dist/js/components/slideshow.min.js +2 -1
  31. package/dist/js/components/sortable.js +12 -18
  32. package/dist/js/components/sortable.min.js +2 -1
  33. package/dist/js/components/tooltip.js +25 -30
  34. package/dist/js/components/tooltip.min.js +2 -1
  35. package/dist/js/components/upload.js +7 -7
  36. package/dist/js/components/upload.min.js +2 -1
  37. package/dist/js/uikit-core.js +277 -330
  38. package/dist/js/uikit-core.min.js +2 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +2 -1
  41. package/dist/js/uikit.js +470 -503
  42. package/dist/js/uikit.min.js +2 -1
  43. package/package.json +2 -2
  44. package/src/js/components/lightbox-panel.js +3 -5
  45. package/src/js/components/slider.js +62 -7
  46. package/src/js/core/accordion.js +5 -4
  47. package/src/js/core/sticky.js +6 -7
  48. package/src/js/mixin/slider-drag.js +1 -1
  49. package/src/js/mixin/slider.js +2 -7
  50. package/src/js/util/attr.js +1 -6
  51. package/src/less/components/sticky.less +4 -1
  52. package/src/scss/components/sticky.scss +4 -1
package/dist/js/uikit.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.18-dev.9cbbb510d | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.19-dev.699ab5a7f | 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,7 @@
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 }) => propA > propB ? 1 : propB > propA ? -1 : 0);
176
175
 
177
176
  }
178
177
 
@@ -185,24 +184,22 @@
185
184
 
186
185
  function uniqueBy(array, prop) {
187
186
  const seen = new Set();
188
- return array.filter((_ref3) => {let { [prop]: check } = _ref3;return seen.has(check) ? false : seen.add(check);});
187
+ return array.filter(({ [prop]: check }) => seen.has(check) ? false : seen.add(check));
189
188
  }
190
189
 
191
- function clamp(number, min, max) {if (min === void 0) {min = 0;}if (max === void 0) {max = 1;}
190
+ function clamp(number, min = 0, max = 1) {
192
191
  return Math.min(Math.max(toNumber(number) || 0, min), max);
193
192
  }
194
193
 
195
194
  function noop() {}
196
195
 
197
- function intersectRect() {for (var _len = arguments.length, rects = new Array(_len), _key = 0; _key < _len; _key++) {rects[_key] = arguments[_key];}
196
+ function intersectRect(...rects) {
198
197
  return [
199
198
  ['bottom', 'top'],
200
199
  ['right', 'left']].
201
200
  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);});
201
+ ([minProp, maxProp]) => Math.min(...rects.map(({ [minProp]: min }) => min)) -
202
+ Math.max(...rects.map(({ [maxProp]: max }) => max)) > 0);
206
203
 
207
204
  }
208
205
 
@@ -254,7 +251,7 @@
254
251
 
255
252
  const Dimensions = { ratio, contain, cover: cover$1 };
256
253
 
257
- function getIndex(i, elements, current, finite) {if (current === void 0) {current = 0;}if (finite === void 0) {finite = false;}
254
+ function getIndex(i, elements, current = 0, finite = false) {
258
255
  elements = toNodes(elements);
259
256
 
260
257
  const { length } = elements;
@@ -324,16 +321,11 @@
324
321
  }
325
322
 
326
323
  function removeAttr(element, name) {
327
- const elements = toNodes(element);
328
- for (const attribute of name.split(' ')) {
329
- for (const element of elements) {
330
- element.removeAttribute(attribute);
331
- }
332
- }
324
+ toNodes(element).forEach((element) => element.removeAttribute(name));
333
325
  }
334
326
 
335
327
  function data(element, attribute) {
336
- for (const name of [attribute, "data-" + attribute]) {
328
+ for (const name of [attribute, `data-${attribute}`]) {
337
329
  if (hasAttr(element, name)) {
338
330
  return attr(element, name);
339
331
  }
@@ -372,7 +364,7 @@
372
364
  return toNodes(element).some((element) => matches(element, selInput));
373
365
  }
374
366
 
375
- const selFocusable = selInput + ",a[href],[tabindex]";
367
+ const selFocusable = `${selInput},a[href],[tabindex]`;
376
368
  function isFocusable(element) {
377
369
  return matches(element, selFocusable);
378
370
  }
@@ -444,7 +436,7 @@
444
436
  const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
445
437
  const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
446
438
 
447
- function getContext(selector, context) {if (context === void 0) {context = document;}
439
+ function getContext(selector, context = document) {
448
440
  return isString(selector) && isContextSelector(selector) || isDocument(context) ?
449
441
  context :
450
442
  context.ownerDocument;
@@ -453,7 +445,7 @@
453
445
  const contextSanitizeRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
454
446
  const sanatize = memoize((selector) => selector.replace(contextSanitizeRe, '$1 *'));
455
447
 
456
- function _query(selector, context, queryFn) {if (context === void 0) {context = document;}
448
+ function _query(selector, context = document, queryFn) {
457
449
  if (!selector || !isString(selector)) {
458
450
  return selector;
459
451
  }
@@ -483,7 +475,7 @@
483
475
  }
484
476
 
485
477
  if (ctx) {
486
- selector += "" + (selector ? ',' : '') + domPath(ctx) + " " + sel;
478
+ selector += `${selector ? ',' : ''}${domPath(ctx)} ${sel}`;
487
479
  }
488
480
  }
489
481
 
@@ -508,12 +500,12 @@
508
500
  while (element.parentNode) {
509
501
  const id = attr(element, 'id');
510
502
  if (id) {
511
- names.unshift("#" + escape(id));
503
+ names.unshift(`#${escape(id)}`);
512
504
  break;
513
505
  } else {
514
506
  let { tagName } = element;
515
507
  if (tagName !== 'HTML') {
516
- tagName += ":nth-child(" + (index(element) + 1) + ")";
508
+ tagName += `:nth-child(${index(element) + 1})`;
517
509
  }
518
510
  names.unshift(tagName);
519
511
  element = element.parentNode;
@@ -526,7 +518,7 @@
526
518
  return isString(css) ? CSS.escape(css) : '';
527
519
  }
528
520
 
529
- function on() {for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}
521
+ function on(...args) {
530
522
  let [targets, types, selector, listener, useCapture = false] = getArgs(args);
531
523
 
532
524
  if (listener.length > 1) {
@@ -550,7 +542,7 @@
550
542
  return () => off(targets, types, listener, useCapture);
551
543
  }
552
544
 
553
- function off() {for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {args[_key2] = arguments[_key2];}
545
+ function off(...args) {
554
546
  let [targets, types,, listener, useCapture = false] = getArgs(args);
555
547
  for (const type of types) {
556
548
  for (const target of targets) {
@@ -559,7 +551,7 @@
559
551
  }
560
552
  }
561
553
 
562
- function once() {for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {args[_key3] = arguments[_key3];}
554
+ function once(...args) {
563
555
  const [element, types, selector, listener, useCapture = false, condition] = getArgs(args);
564
556
  const off = on(
565
557
  element,
@@ -579,12 +571,11 @@
579
571
  }
580
572
 
581
573
  function trigger(targets, event, detail) {
582
- return toEventTargets(targets).every((target) =>
583
- target.dispatchEvent(createEvent(event, true, true, detail)));
574
+ return toEventTargets(targets).every((target) => target.dispatchEvent(createEvent(event, true, true, detail)));
584
575
 
585
576
  }
586
577
 
587
- function createEvent(e, bubbles, cancelable, detail) {if (bubbles === void 0) {bubbles = true;}if (cancelable === void 0) {cancelable = false;}
578
+ function createEvent(e, bubbles = true, cancelable = false, detail) {
588
579
  if (isString(e)) {
589
580
  e = new CustomEvent(e, { bubbles, cancelable, detail });
590
581
  }
@@ -755,7 +746,7 @@
755
746
  zoom: true
756
747
  };
757
748
 
758
- function css(element, property, value, priority) {if (priority === void 0) {priority = '';}
749
+ function css(element, property, value, priority = '') {
759
750
  const elements = toNodes(element);
760
751
  for (const element of elements) {
761
752
  if (isString(property)) {
@@ -767,7 +758,7 @@
767
758
  element.style.setProperty(
768
759
  property,
769
760
  isNumeric(value) && !cssNumber[property] ?
770
- value + "px" :
761
+ `${value}px` :
771
762
  value || isNumber(value) ?
772
763
  value :
773
764
  '',
@@ -805,30 +796,29 @@
805
796
  }
806
797
 
807
798
  for (const prefix of ['webkit', 'moz']) {
808
- const prefixedName = "-" + prefix + "-" + name;
799
+ const prefixedName = `-${prefix}-${name}`;
809
800
  if (prefixedName in style) {
810
801
  return prefixedName;
811
802
  }
812
803
  }
813
804
  }
814
805
 
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];}
806
+ function addClass(element, ...args) {
816
807
  apply$1(element, args, 'add');
817
808
  }
818
809
 
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];}
810
+ function removeClass(element, ...args) {
820
811
  apply$1(element, args, 'remove');
821
812
  }
822
813
 
823
814
  function removeClasses(element, cls) {
824
- attr(element, 'class', (value) =>
825
- (value || '').replace(new RegExp("\\b" + cls + "\\b\\s?", 'g'), ''));
815
+ attr(element, 'class', (value) => (value || '').replace(new RegExp(`\\b${cls}\\b\\s?`, 'g'), ''));
826
816
 
827
817
  }
828
818
 
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]);
819
+ function replaceClass(element, ...args) {
820
+ args[0] && removeClass(element, args[0]);
821
+ args[1] && addClass(element, args[1]);
832
822
  }
833
823
 
834
824
  function hasClass(element, cls) {
@@ -862,12 +852,11 @@
862
852
  return String(str).split(/\s|,/).filter(Boolean);
863
853
  }
864
854
 
865
- function transition$1(element, props, duration, timing) {if (duration === void 0) {duration = 400;}if (timing === void 0) {timing = 'linear';}
855
+ function transition$1(element, props, duration = 400, timing = 'linear') {
866
856
  duration = Math.round(duration);
867
857
  return Promise.all(
868
858
  toNodes(element).map(
869
- (element) =>
870
- new Promise((resolve, reject) => {
859
+ (element) => new Promise((resolve, reject) => {
871
860
  for (const name in props) {
872
861
  const value = css(element, name);
873
862
  if (value === '') {
@@ -880,7 +869,7 @@
880
869
  once(
881
870
  element,
882
871
  'transitionend transitioncanceled',
883
- (_ref) => {let { type } = _ref;
872
+ ({ type }) => {
884
873
  clearTimeout(timer);
885
874
  removeClass(element, 'uk-transition');
886
875
  css(element, {
@@ -896,7 +885,7 @@
896
885
  addClass(element, 'uk-transition');
897
886
  css(element, {
898
887
  transitionProperty: Object.keys(props).map(propName).join(','),
899
- transitionDuration: duration + "ms",
888
+ transitionDuration: `${duration}ms`,
900
889
  transitionTimingFunction: timing,
901
890
  ...props
902
891
  });
@@ -925,41 +914,40 @@
925
914
 
926
915
  const animationPrefix = 'uk-animation-';
927
916
 
928
- function animate$2(element, animation, duration, origin, out) {if (duration === void 0) {duration = 200;}
917
+ function animate$2(element, animation, duration = 200, origin, out) {
929
918
  return Promise.all(
930
919
  toNodes(element).map(
931
- (element) =>
932
- new Promise((resolve, reject) => {
920
+ (element) => new Promise((resolve, reject) => {
933
921
  trigger(element, 'animationcanceled');
934
922
  const timer = setTimeout(() => trigger(element, 'animationend'), duration);
935
923
 
936
924
  once(
937
925
  element,
938
926
  'animationend animationcanceled',
939
- (_ref2) => {let { type } = _ref2;
927
+ ({ type }) => {
940
928
  clearTimeout(timer);
941
929
 
942
930
  type === 'animationcanceled' ? reject() : resolve(element);
943
931
 
944
932
  css(element, 'animationDuration', '');
945
- removeClasses(element, animationPrefix + "\\S*");
933
+ removeClasses(element, `${animationPrefix}\\S*`);
946
934
  },
947
935
  { self: true });
948
936
 
949
937
 
950
- css(element, 'animationDuration', duration + "ms");
938
+ css(element, 'animationDuration', `${duration}ms`);
951
939
  addClass(element, animation, animationPrefix + (out ? 'leave' : 'enter'));
952
940
 
953
941
  if (startsWith(animation, animationPrefix)) {
954
- origin && addClass(element, "uk-transform-origin-" + origin);
955
- out && addClass(element, animationPrefix + "reverse");
942
+ origin && addClass(element, `uk-transform-origin-${origin}`);
943
+ out && addClass(element, `${animationPrefix}reverse`);
956
944
  }
957
945
  })));
958
946
 
959
947
 
960
948
  }
961
949
 
962
- const inProgressRe = new RegExp(animationPrefix + "(enter|leave)");
950
+ const inProgressRe = new RegExp(`${animationPrefix}(enter|leave)`);
963
951
 
964
952
  const Animation = {
965
953
  in: animate$2,
@@ -1031,8 +1019,7 @@
1031
1019
 
1032
1020
  function wrapInner(element, structure) {
1033
1021
  return toNodes(
1034
- toNodes(element).map((element) =>
1035
- element.hasChildNodes() ?
1022
+ toNodes(element).map((element) => element.hasChildNodes() ?
1036
1023
  wrapAll(toNodes(element.childNodes), structure) :
1037
1024
  append(element, structure)));
1038
1025
 
@@ -1135,8 +1122,7 @@
1135
1122
 
1136
1123
  const pos = css(element, 'position');
1137
1124
 
1138
- each(css(element, ['left', 'top']), (value, prop) =>
1139
- css(
1125
+ each(css(element, ['left', 'top']), (value, prop) => css(
1140
1126
  element,
1141
1127
  prop,
1142
1128
  coordinates[prop] -
@@ -1181,8 +1167,8 @@
1181
1167
  const offset = [element.offsetTop, element.offsetLeft];
1182
1168
 
1183
1169
  while (element = element.offsetParent) {
1184
- offset[0] += element.offsetTop + toFloat(css(element, "borderTopWidth"));
1185
- offset[1] += element.offsetLeft + toFloat(css(element, "borderLeftWidth"));
1170
+ offset[0] += element.offsetTop + toFloat(css(element, `borderTopWidth`));
1171
+ offset[1] += element.offsetLeft + toFloat(css(element, `borderLeftWidth`));
1186
1172
 
1187
1173
  if (css(element, 'position') === 'fixed') {
1188
1174
  const win = toWindow(element);
@@ -1203,18 +1189,18 @@
1203
1189
  return (element, value) => {
1204
1190
  if (isUndefined(value)) {
1205
1191
  if (isWindow(element)) {
1206
- return element["inner" + propName];
1192
+ return element[`inner${propName}`];
1207
1193
  }
1208
1194
 
1209
1195
  if (isDocument(element)) {
1210
1196
  const doc = element.documentElement;
1211
- return Math.max(doc["offset" + propName], doc["scroll" + propName]);
1197
+ return Math.max(doc[`offset${propName}`], doc[`scroll${propName}`]);
1212
1198
  }
1213
1199
 
1214
1200
  element = toNode(element);
1215
1201
 
1216
1202
  value = css(element, prop);
1217
- value = value === 'auto' ? element["offset" + propName] : toFloat(value) || 0;
1203
+ value = value === 'auto' ? element[`offset${propName}`] : toFloat(value) || 0;
1218
1204
 
1219
1205
  return value - boxModelAdjust(element, prop);
1220
1206
  } else {
@@ -1227,13 +1213,12 @@
1227
1213
  };
1228
1214
  }
1229
1215
 
1230
- function boxModelAdjust(element, prop, sizing) {if (sizing === void 0) {sizing = 'border-box';}
1216
+ function boxModelAdjust(element, prop, sizing = 'border-box') {
1231
1217
  return css(element, 'boxSizing') === sizing ?
1232
1218
  sumBy(
1233
1219
  dirs$1[prop].map(ucfirst),
1234
- (prop) =>
1235
- toFloat(css(element, "padding" + prop)) +
1236
- toFloat(css(element, "border" + prop + "Width"))) :
1220
+ (prop) => toFloat(css(element, `padding${prop}`)) +
1221
+ toFloat(css(element, `border${prop}Width`))) :
1237
1222
 
1238
1223
  0;
1239
1224
  }
@@ -1249,7 +1234,7 @@
1249
1234
  return pos;
1250
1235
  }
1251
1236
 
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;}
1237
+ function toPx(value, property = 'width', element = window, offsetDim = false) {
1253
1238
  if (!isString(value)) {
1254
1239
  return toFloat(value);
1255
1240
  }
@@ -1264,7 +1249,7 @@
1264
1249
  unit === 'vw' ?
1265
1250
  width(toWindow(element)) :
1266
1251
  offsetDim ?
1267
- element["offset" + ucfirst(property)] :
1252
+ element[`offset${ucfirst(property)}`] :
1268
1253
  dimensions$1(element)[property],
1269
1254
  value) :
1270
1255
 
@@ -1450,7 +1435,7 @@
1450
1435
  };
1451
1436
 
1452
1437
  // 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;
1438
+ function intersect([{ x: x1, y: y1 }, { x: x2, y: y2 }], [{ x: x3, y: y3 }, { x: x4, y: y4 }]) {
1454
1439
  const denominator = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);
1455
1440
 
1456
1441
  // Lines are parallel
@@ -1468,7 +1453,7 @@
1468
1453
  return { x: x1 + ua * (x2 - x1), y: y1 + ua * (y2 - y1) };
1469
1454
  }
1470
1455
 
1471
- function observeIntersection(targets, cb, options, intersecting) {if (intersecting === void 0) {intersecting = true;}
1456
+ function observeIntersection(targets, cb, options, intersecting = true) {
1472
1457
  const observer = new IntersectionObserver(
1473
1458
  intersecting ?
1474
1459
  (entries, observer) => {
@@ -1487,7 +1472,7 @@
1487
1472
  }
1488
1473
 
1489
1474
  const hasResizeObserver = inBrowser && window.ResizeObserver;
1490
- function observeResize(targets, cb, options) {if (options === void 0) {options = { box: 'border-box' };}
1475
+ function observeResize(targets, cb, options = { box: 'border-box' }) {
1491
1476
  if (hasResizeObserver) {
1492
1477
  return observe(ResizeObserver, targets, cb, options);
1493
1478
  }
@@ -1661,7 +1646,7 @@
1661
1646
  return options;
1662
1647
  }
1663
1648
 
1664
- function parseOptions(options, args) {if (args === void 0) {args = [];}
1649
+ function parseOptions(options, args = []) {
1665
1650
  try {
1666
1651
  return options ?
1667
1652
  startsWith(options, '{') ?
@@ -1771,7 +1756,7 @@
1771
1756
  listener();
1772
1757
  });
1773
1758
 
1774
- once(window, 'message', resolve, false, (_ref) => {let { data } = _ref;
1759
+ once(window, 'message', resolve, false, ({ data }) => {
1775
1760
  try {
1776
1761
  data = JSON.parse(data);
1777
1762
  return (
@@ -1784,13 +1769,13 @@
1784
1769
  // noop
1785
1770
  }});
1786
1771
 
1787
- el.src = "" + el.src + (includes(el.src, '?') ? '&' : '?') + (
1788
- youtube ? 'enablejsapi=1' : "api=1&player_id=" + id);
1789
-
1772
+ el.src = `${el.src}${includes(el.src, '?') ? '&' : '?'}${
1773
+ youtube ? 'enablejsapi=1' : `api=1&player_id=${id}`
1774
+ }`;
1790
1775
  }).then(() => clearInterval(poller));
1791
1776
  }
1792
1777
 
1793
- function isInView(element, offsetTop, offsetLeft) {if (offsetTop === void 0) {offsetTop = 0;}if (offsetLeft === void 0) {offsetLeft = 0;}
1778
+ function isInView(element, offsetTop = 0, offsetLeft = 0) {
1794
1779
  if (!isVisible(element)) {
1795
1780
  return false;
1796
1781
  }
@@ -1811,7 +1796,7 @@
1811
1796
 
1812
1797
  }
1813
1798
 
1814
- function scrollIntoView(element, _temp) {let { offset: offsetBy = 0 } = _temp === void 0 ? {} : _temp;
1799
+ function scrollIntoView(element, { offset: offsetBy = 0 } = {}) {
1815
1800
  const parents = isVisible(element) ? scrollParents(element) : [];
1816
1801
  return parents.reduce(
1817
1802
  (fn, scrollElement, i) => {
@@ -1873,7 +1858,7 @@
1873
1858
  }
1874
1859
  }
1875
1860
 
1876
- function scrolledOver(element, startOffset, endOffset) {if (startOffset === void 0) {startOffset = 0;}if (endOffset === void 0) {endOffset = 0;}
1861
+ function scrolledOver(element, startOffset = 0, endOffset = 0) {
1877
1862
  if (!isVisible(element)) {
1878
1863
  return 0;
1879
1864
  }
@@ -1890,7 +1875,7 @@
1890
1875
  return clamp((scrollTop - start) / (end - start));
1891
1876
  }
1892
1877
 
1893
- function scrollParents(element, overflowRe, scrollable) {if (overflowRe === void 0) {overflowRe = /auto|scroll|hidden|clip/;}if (scrollable === void 0) {scrollable = false;}
1878
+ function scrollParents(element, overflowRe = /auto|scroll|hidden|clip/, scrollable = false) {
1894
1879
  const scrollEl = scrollingElement(element);
1895
1880
 
1896
1881
  let ancestors = parents(element).reverse();
@@ -1904,8 +1889,7 @@
1904
1889
  return [scrollEl].
1905
1890
  concat(
1906
1891
  ancestors.filter(
1907
- (parent) =>
1908
- overflowRe.test(css(parent, 'overflow')) && (
1892
+ (parent) => overflowRe.test(css(parent, 'overflow')) && (
1909
1893
  !scrollable || parent.scrollHeight > offsetViewport(parent).height))).
1910
1894
 
1911
1895
 
@@ -1941,9 +1925,9 @@
1941
1925
  // iOS 12 returns <body> as scrollingElement
1942
1926
  viewportElement = documentElement;
1943
1927
  } else {
1944
- rect[start] += toFloat(css(viewportElement, "border-" + start + "-width"));
1928
+ rect[start] += toFloat(css(viewportElement, `border-${start}-width`));
1945
1929
  }
1946
- rect[prop] = rect[dir] = viewportElement["client" + ucfirst(prop)];
1930
+ rect[prop] = rect[dir] = viewportElement[`client${ucfirst(prop)}`];
1947
1931
  rect[end] = rect[prop] + rect[start];
1948
1932
  }
1949
1933
  return rect;
@@ -2106,9 +2090,9 @@
2106
2090
  const [scrollElement] = commonScrollParents(element, target);
2107
2091
  const viewport = offsetViewport(scrollElement);
2108
2092
 
2109
- if (['auto', 'scroll'].includes(css(scrollElement, "overflow-" + axis))) {
2110
- viewport[start] -= scrollElement["scroll" + ucfirst(start)];
2111
- viewport[end] = scrollElement["scroll" + ucfirst(prop)];
2093
+ if (['auto', 'scroll'].includes(css(scrollElement, `overflow-${axis}`))) {
2094
+ viewport[start] -= scrollElement[`scroll${ucfirst(start)}`];
2095
+ viewport[end] = scrollElement[`scroll${ucfirst(prop)}`];
2112
2096
  }
2113
2097
 
2114
2098
  viewport[start] += viewportOffset;
@@ -2121,8 +2105,8 @@
2121
2105
  return scrollParents(target).filter((parent) => within(element, parent));
2122
2106
  }
2123
2107
 
2124
- function getIntersectionArea() {
2125
- let area = {};for (var _len = arguments.length, rects = new Array(_len), _key = 0; _key < _len; _key++) {rects[_key] = arguments[_key];}
2108
+ function getIntersectionArea(...rects) {
2109
+ let area = {};
2126
2110
  for (const rect of rects) {
2127
2111
  for (const [,, start, end] of dirs) {
2128
2112
  area[start] = Math.max(area[start] || 0, rect[start]);
@@ -2137,7 +2121,7 @@
2137
2121
  return positionA[start] >= positionB[start] && positionA[end] <= positionB[end];
2138
2122
  }
2139
2123
 
2140
- function flip(element, target, _ref, i) {let { offset, attach } = _ref;
2124
+ function flip(element, target, { offset, attach }, i) {
2141
2125
  return attachTo(element, target, {
2142
2126
  attach: {
2143
2127
  element: flipAttach(attach.element, i),
@@ -2437,7 +2421,7 @@
2437
2421
  delete this._watch;
2438
2422
  };
2439
2423
 
2440
- UIkit.prototype._callUpdate = function (e) {if (e === void 0) {e = 'update';}
2424
+ UIkit.prototype._callUpdate = function (e = 'update') {
2441
2425
  if (!this._connected) {
2442
2426
  return;
2443
2427
  }
@@ -2616,8 +2600,8 @@
2616
2600
  this._observers = [initPropsObserver(this), initChildListObserver(this)];
2617
2601
  };
2618
2602
 
2619
- UIkit.prototype.registerObserver = function () {
2620
- this._observers.push(...arguments);
2603
+ UIkit.prototype.registerObserver = function (...observer) {
2604
+ this._observers.push(...observer);
2621
2605
  };
2622
2606
 
2623
2607
  UIkit.prototype._disconnectObservers = function () {
@@ -2742,7 +2726,7 @@
2742
2726
  [value];
2743
2727
  }
2744
2728
 
2745
- function normalizeData(_ref, _ref2) {let { data = {} } = _ref;let { args = [], props = {} } = _ref2;
2729
+ function normalizeData({ data = {} }, { args = [], props = {} }) {
2746
2730
  if (isArray(data)) {
2747
2731
  data = data.slice(0, args.length).reduce((data, value, index) => {
2748
2732
  if (isPlainObject(value)) {
@@ -2802,7 +2786,7 @@
2802
2786
  const observer = new MutationObserver((records) => {
2803
2787
  const data = getProps$1($options);
2804
2788
  if (
2805
- records.some((_ref3) => {let { attributeName } = _ref3;
2789
+ records.some(({ attributeName }) => {
2806
2790
  const prop = attributeName.replace('data-', '');
2807
2791
  return (prop === id ? attributes : [camelize(prop), camelize(attributeName)]).some(
2808
2792
  (prop) => !isUndefined(data[prop]) && data[prop] !== $props[prop]);
@@ -2815,7 +2799,7 @@
2815
2799
 
2816
2800
  observer.observe(el, {
2817
2801
  attributes: true,
2818
- attributeFilter: filter.concat(filter.map((key) => "data-" + key))
2802
+ attributeFilter: filter.concat(filter.map((key) => `data-${key}`))
2819
2803
  });
2820
2804
 
2821
2805
  return observer;
@@ -2853,7 +2837,7 @@
2853
2837
  this._callConnected();
2854
2838
  };
2855
2839
 
2856
- UIkit.prototype.$destroy = function (removeEl) {if (removeEl === void 0) {removeEl = false;}
2840
+ UIkit.prototype.$destroy = function (removeEl = false) {
2857
2841
  const { el, name } = this.$options;
2858
2842
 
2859
2843
  if (el) {
@@ -2881,7 +2865,7 @@
2881
2865
  this._callUpdate(e);
2882
2866
  };
2883
2867
 
2884
- UIkit.prototype.$update = function (element, e) {if (element === void 0) {element = this.$el;}
2868
+ UIkit.prototype.$update = function (element = this.$el, e) {
2885
2869
  UIkit.update(element, e);
2886
2870
  };
2887
2871
 
@@ -2904,7 +2888,7 @@
2904
2888
 
2905
2889
  if (!options) {
2906
2890
  if (isPlainObject(components$3[id])) {
2907
- components$3[id] = components$3["data-" + id] = UIkit.extend(components$3[id]);
2891
+ components$3[id] = components$3[`data-${id}`] = UIkit.extend(components$3[id]);
2908
2892
  }
2909
2893
 
2910
2894
  return components$3[id];
@@ -2944,10 +2928,10 @@
2944
2928
  opt.install == null ? void 0 : opt.install(UIkit, opt, name);
2945
2929
 
2946
2930
  if (UIkit._initialized && !opt.functional) {
2947
- requestAnimationFrame(() => UIkit[name]("[" + id + "],[data-" + id + "]"));
2931
+ requestAnimationFrame(() => UIkit[name](`[${id}],[data-${id}]`));
2948
2932
  }
2949
2933
 
2950
- return components$3[id] = components$3["data-" + id] = isPlainObject(options) ? opt : options;
2934
+ return components$3[id] = components$3[`data-${id}`] = isPlainObject(options) ? opt : options;
2951
2935
  };
2952
2936
 
2953
2937
  UIkit.getComponents = (element) => (element == null ? void 0 : element[DATA]) || {};
@@ -2986,7 +2970,7 @@
2986
2970
  UIkit.data = '__uikit__';
2987
2971
  UIkit.prefix = 'uk-';
2988
2972
  UIkit.options = {};
2989
- UIkit.version = '3.15.18-dev.9cbbb510d';
2973
+ UIkit.version = '3.15.19-dev.699ab5a7f';
2990
2974
 
2991
2975
  globalAPI(UIkit);
2992
2976
  hooksAPI(UIkit);
@@ -3027,7 +3011,7 @@
3027
3011
  UIkit._initialized = true;
3028
3012
  });
3029
3013
 
3030
- function applyChildListMutation(_ref) {let { addedNodes, removedNodes } = _ref;
3014
+ function applyChildListMutation({ addedNodes, removedNodes }) {
3031
3015
  for (const node of addedNodes) {
3032
3016
  apply(node, connect);
3033
3017
  }
@@ -3037,7 +3021,7 @@
3037
3021
  }
3038
3022
  }
3039
3023
 
3040
- function applyAttributeMutation(_ref2) {let { target, attributeName } = _ref2;
3024
+ function applyAttributeMutation({ target, attributeName }) {
3041
3025
  const name = getComponentName(attributeName);
3042
3026
 
3043
3027
  if (name) {var _UIkit$getComponent;
@@ -3063,7 +3047,7 @@
3063
3047
  },
3064
3048
 
3065
3049
  methods: {
3066
- lazyload(observeTargets, targets) {if (observeTargets === void 0) {observeTargets = this.$el;}if (targets === void 0) {targets = this.$el;}
3050
+ lazyload(observeTargets = this.$el, targets = this.$el) {
3067
3051
  this.registerObserver(
3068
3052
  observeIntersection(observeTargets, (entries, observer) => {
3069
3053
  for (const el of toNodes(isFunction(targets) ? targets() : targets)) {
@@ -3073,8 +3057,8 @@
3073
3057
  }
3074
3058
 
3075
3059
  for (const el of entries.
3076
- filter((_ref) => {let { isIntersecting } = _ref;return isIntersecting;}).
3077
- map((_ref2) => {let { target } = _ref2;return target;})) {
3060
+ filter(({ isIntersecting }) => isIntersecting).
3061
+ map(({ target }) => target)) {
3078
3062
  observer.unobserve(el);
3079
3063
  }
3080
3064
  }));
@@ -3105,23 +3089,22 @@
3105
3089
  },
3106
3090
 
3107
3091
  computed: {
3108
- hasAnimation(_ref) {let { animation } = _ref;
3092
+ hasAnimation({ animation }) {
3109
3093
  return !!animation[0];
3110
3094
  },
3111
3095
 
3112
- hasTransition(_ref2) {let { animation } = _ref2;
3096
+ hasTransition({ animation }) {
3113
3097
  return ['slide', 'reveal'].some((transition) => startsWith(animation[0], transition));
3114
3098
  }
3115
3099
  },
3116
3100
 
3117
3101
  methods: {
3118
3102
  toggleElement(targets, toggle, animate) {
3119
- return new Promise((resolve) =>
3120
- Promise.all(
3103
+ return new Promise((resolve) => Promise.all(
3121
3104
  toNodes(targets).map((el) => {
3122
3105
  const show = isBoolean(toggle) ? toggle : !this.isToggled(el);
3123
3106
 
3124
- if (!trigger(el, "before" + (show ? 'show' : 'hide'), [this])) {
3107
+ if (!trigger(el, `before${show ? 'show' : 'hide'}`, [this])) {
3125
3108
  return Promise.reject();
3126
3109
  }
3127
3110
 
@@ -3157,7 +3140,7 @@
3157
3140
 
3158
3141
  },
3159
3142
 
3160
- isToggled(el) {if (el === void 0) {el = this.$el;}
3143
+ isToggled(el = this.$el) {
3161
3144
  [el] = toNodes(el);
3162
3145
  return hasClass(el, this.clsEnter) ?
3163
3146
  true :
@@ -3193,7 +3176,7 @@
3193
3176
  }
3194
3177
  };
3195
3178
 
3196
- function toggleInstant(el, show, _ref3) {let { _toggle } = _ref3;
3179
+ function toggleInstant(el, show, { _toggle }) {
3197
3180
  Animation.cancel(el);
3198
3181
  Transition.cancel(el);
3199
3182
  return _toggle(el, show);
@@ -3201,9 +3184,9 @@
3201
3184
 
3202
3185
  async function toggleTransition(
3203
3186
  el,
3204
- show, _ref4)
3205
-
3206
- {var _animation$;let { animation, duration, velocity, transition, _toggle } = _ref4;
3187
+ show,
3188
+ { animation, duration, velocity, transition, _toggle })
3189
+ {var _animation$;
3207
3190
  const [mode = 'reveal', startProp = 'top'] = ((_animation$ = animation[0]) == null ? void 0 : _animation$.split('-')) || [];
3208
3191
 
3209
3192
  const dirs = [
@@ -3214,8 +3197,8 @@
3214
3197
  const end = dir[1] === startProp;
3215
3198
  const props = ['width', 'height'];
3216
3199
  const dimProp = props[dirs.indexOf(dir)];
3217
- const marginProp = "margin-" + dir[0];
3218
- const marginStartProp = "margin-" + startProp;
3200
+ const marginProp = `margin-${dir[0]}`;
3201
+ const marginStartProp = `margin-${startProp}`;
3219
3202
 
3220
3203
  let currentDim = dimensions$1(el)[dimProp];
3221
3204
 
@@ -3315,8 +3298,7 @@
3315
3298
  return Animation.in(el, animation[0], duration, cmp.origin);
3316
3299
  }
3317
3300
 
3318
- return Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(() =>
3319
- _toggle(el, false));
3301
+ return Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(() => _toggle(el, false));
3320
3302
 
3321
3303
  }
3322
3304
 
@@ -3348,7 +3330,7 @@
3348
3330
 
3349
3331
  computed: {
3350
3332
  items: {
3351
- get(_ref, $el) {let { targets } = _ref;
3333
+ get({ targets }, $el) {
3352
3334
  return $$(targets, $el);
3353
3335
  },
3354
3336
 
@@ -3369,12 +3351,12 @@
3369
3351
  immediate: true
3370
3352
  },
3371
3353
 
3372
- toggles(_ref2) {let { toggle } = _ref2;
3354
+ toggles({ toggle }) {
3373
3355
  return this.items.map((item) => $(toggle, item));
3374
3356
  },
3375
3357
 
3376
3358
  contents: {
3377
- get(_ref3) {let { content } = _ref3;
3359
+ get({ content }) {
3378
3360
  return this.items.map((item) => $(content, item));
3379
3361
  },
3380
3362
 
@@ -3403,7 +3385,7 @@
3403
3385
  name: 'click',
3404
3386
 
3405
3387
  delegate() {
3406
- return this.targets + " " + this.$props.toggle;
3388
+ return `${this.targets} ${this.$props.toggle}`;
3407
3389
  },
3408
3390
 
3409
3391
  async handler(e) {var _this$_off;
@@ -3421,7 +3403,7 @@
3421
3403
  async toggle(item, animate) {
3422
3404
  item = this.items[getIndex(item, this.items)];
3423
3405
  let items = [item];
3424
- const activeItems = filter$1(this.items, "." + this.clsOpen);
3406
+ const activeItems = filter$1(this.items, `.${this.clsOpen}`);
3425
3407
 
3426
3408
  if (!this.multiple && !includes(activeItems, items[0])) {
3427
3409
  items = items.concat(activeItems);
@@ -3432,8 +3414,7 @@
3432
3414
  }
3433
3415
 
3434
3416
  await Promise.all(
3435
- items.map((el) =>
3436
- this.toggleElement(el, !includes(activeItems, el), (el, show) => {
3417
+ items.map((el) => this.toggleElement(el, !includes(activeItems, el), (el, show) => {
3437
3418
  toggleClass(el, this.clsOpen, show);
3438
3419
  attr($(this.$props.toggle, el), 'aria-expanded', show);
3439
3420
 
@@ -3454,7 +3435,7 @@
3454
3435
  el && (el.hidden = hide);
3455
3436
  }
3456
3437
 
3457
- async function transition(el, show, _ref4) {var _el$_wrapper;let { content, duration, velocity, transition } = _ref4;
3438
+ async function transition(el, show, { content, duration, velocity, transition }) {var _el$_wrapper;
3458
3439
  content = ((_el$_wrapper = el._wrapper) == null ? void 0 : _el$_wrapper.firstElementChild) || $(content, el);
3459
3440
 
3460
3441
  if (!el._wrapper) {
@@ -3468,9 +3449,9 @@
3468
3449
  await Transition.cancel(wrapper);
3469
3450
  hide(content, false);
3470
3451
 
3471
- const endHeight = sumBy(
3472
- ['height', 'paddingTop', 'paddingBottom', 'marginTop', 'marginBottom'],
3473
- (prop) => css(content, prop));
3452
+ const endHeight =
3453
+ sumBy(['marginTop', 'marginBottom'], (prop) => css(content, prop)) +
3454
+ dimensions$1(content).height;
3474
3455
 
3475
3456
  const percent = currentHeight / endHeight;
3476
3457
  duration = (velocity * endHeight + duration) * (show ? 1 - percent : percent);
@@ -3539,7 +3520,7 @@
3539
3520
  }
3540
3521
  };
3541
3522
 
3542
- function animate$1(el, show, _ref) {let { duration, transition, velocity } = _ref;
3523
+ function animate$1(el, show, { duration, transition, velocity }) {
3543
3524
  const height = toFloat(css(el, 'height'));
3544
3525
  css(el, 'height', height);
3545
3526
  return Transition.start(
@@ -3591,7 +3572,7 @@
3591
3572
  },
3592
3573
 
3593
3574
  update: {
3594
- read(_ref) {let { visible } = _ref;
3575
+ read({ visible }) {
3595
3576
  if (!isVideo(this.$el)) {
3596
3577
  return false;
3597
3578
  }
@@ -3603,7 +3584,7 @@
3603
3584
  };
3604
3585
  },
3605
3586
 
3606
- write(_ref2) {let { prev, visible, inView } = _ref2;
3587
+ write({ prev, visible, inView }) {
3607
3588
  if (!visible || this.inView && !inView) {
3608
3589
  pause(this.$el);
3609
3590
  } else if (this.autoplay === true && !prev || this.inView && inView) {
@@ -3616,8 +3597,7 @@
3616
3597
  var Resize = {
3617
3598
  connected() {var _this$$options$resize;
3618
3599
  this.registerObserver(
3619
- observeResize(((_this$$options$resize = this.$options.resizeTargets) == null ? void 0 : _this$$options$resize.call(this)) || this.$el, () =>
3620
- this.$emit('resize')));
3600
+ observeResize(((_this$$options$resize = this.$options.resizeTargets) == null ? void 0 : _this$$options$resize.call(this)) || this.$el, () => this.$emit('resize')));
3621
3601
 
3622
3602
 
3623
3603
  }
@@ -3681,7 +3661,7 @@
3681
3661
  return coverDim;
3682
3662
  },
3683
3663
 
3684
- write(_ref) {let { height, width } = _ref;
3664
+ write({ height, width }) {
3685
3665
  css(this.$el, { height, width });
3686
3666
  },
3687
3667
 
@@ -3707,7 +3687,7 @@
3707
3687
  },
3708
3688
 
3709
3689
  computed: {
3710
- container(_ref) {let { container } = _ref;
3690
+ container({ container }) {
3711
3691
  return container === true && this.$container || container && $(container);
3712
3692
  }
3713
3693
  }
@@ -3723,7 +3703,7 @@
3723
3703
  },
3724
3704
 
3725
3705
  data: {
3726
- pos: "bottom-" + (isRtl ? 'right' : 'left'),
3706
+ pos: `bottom-${isRtl ? 'right' : 'left'}`,
3727
3707
  offset: false,
3728
3708
  flip: true,
3729
3709
  shift: true,
@@ -3824,7 +3804,7 @@
3824
3804
  },
3825
3805
 
3826
3806
  computed: {
3827
- panel(_ref, $el) {let { selPanel } = _ref;
3807
+ panel({ selPanel }, $el) {
3828
3808
  return $(selPanel, $el);
3829
3809
  },
3830
3810
 
@@ -3832,7 +3812,7 @@
3832
3812
  return this.panel;
3833
3813
  },
3834
3814
 
3835
- bgClose(_ref2) {let { bgClose } = _ref2;
3815
+ bgClose({ bgClose }) {
3836
3816
  return bgClose && this.panel;
3837
3817
  }
3838
3818
  },
@@ -3848,7 +3828,7 @@
3848
3828
  name: 'click',
3849
3829
 
3850
3830
  delegate() {
3851
- return this.selClose + ",a[href*=\"#\"]";
3831
+ return `${this.selClose},a[href*="#"]`;
3852
3832
  },
3853
3833
 
3854
3834
  handler(e) {
@@ -3937,7 +3917,7 @@
3937
3917
  once(
3938
3918
  this.$el,
3939
3919
  'hide',
3940
- on(document, pointerDown$1, (_ref3) => {let { target } = _ref3;
3920
+ on(document, pointerDown$1, ({ target }) => {
3941
3921
  if (
3942
3922
  last(active$1) !== this ||
3943
3923
  this.overlay && !within(target, this.$el) ||
@@ -3948,8 +3928,8 @@
3948
3928
 
3949
3929
  once(
3950
3930
  document,
3951
- pointerUp$1 + " " + pointerCancel + " scroll",
3952
- (_ref4) => {let { defaultPrevented, type, target: newTarget } = _ref4;
3931
+ `${pointerUp$1} ${pointerCancel} scroll`,
3932
+ ({ defaultPrevented, type, target: newTarget }) => {
3953
3933
  if (
3954
3934
  !defaultPrevented &&
3955
3935
  type === pointerUp$1 &&
@@ -4023,8 +4003,7 @@
4023
4003
  show() {
4024
4004
  if (this.container && parent(this.$el) !== this.container) {
4025
4005
  append(this.container, this.$el);
4026
- return new Promise((resolve) =>
4027
- requestAnimationFrame(() => this.show().then(resolve)));
4006
+ return new Promise((resolve) => requestAnimationFrame(() => this.show().then(resolve)));
4028
4007
 
4029
4008
  }
4030
4009
 
@@ -4037,9 +4016,8 @@
4037
4016
  }
4038
4017
  };
4039
4018
 
4040
- function animate(el, show, _ref5) {let { transitionElement, _toggle } = _ref5;
4041
- return new Promise((resolve, reject) =>
4042
- once(el, 'show hide', () => {
4019
+ function animate(el, show, { transitionElement, _toggle }) {
4020
+ return new Promise((resolve, reject) => once(el, 'show hide', () => {
4043
4021
  el._reject == null ? void 0 : el._reject();
4044
4022
  el._reject = reject;
4045
4023
 
@@ -4085,7 +4063,7 @@
4085
4063
  on(
4086
4064
  el,
4087
4065
  'touchstart',
4088
- (_ref6) => {let { targetTouches } = _ref6;
4066
+ ({ targetTouches }) => {
4089
4067
  if (targetTouches.length === 1) {
4090
4068
  startClientY = targetTouches[0].clientY;
4091
4069
  }
@@ -4204,14 +4182,14 @@
4204
4182
  },
4205
4183
 
4206
4184
  computed: {
4207
- boundary(_ref, $el) {let { boundary, boundaryX, boundaryY } = _ref;
4185
+ boundary({ boundary, boundaryX, boundaryY }, $el) {
4208
4186
  return [
4209
4187
  query(boundaryX || boundary, $el) || window,
4210
4188
  query(boundaryY || boundary, $el) || window];
4211
4189
 
4212
4190
  },
4213
4191
 
4214
- target(_ref2, $el) {let { target, targetX, targetY } = _ref2;
4192
+ target({ target, targetX, targetY }, $el) {
4215
4193
  targetX = targetX || target || this.targetEl;
4216
4194
  targetY = targetY || target || this.targetEl;
4217
4195
 
@@ -4227,7 +4205,7 @@
4227
4205
  },
4228
4206
 
4229
4207
  beforeConnect() {
4230
- this.clsDrop = this.$props.clsDrop || "uk-" + this.$options.name;
4208
+ this.clsDrop = this.$props.clsDrop || `uk-${this.$options.name}`;
4231
4209
  },
4232
4210
 
4233
4211
  connected() {
@@ -4242,7 +4220,7 @@
4242
4220
  this.lazyload(this.targetEl);
4243
4221
  }
4244
4222
 
4245
- this._style = ((_ref3) => {let { width, height } = _ref3;return { width, height };})(this.$el.style);
4223
+ this._style = (({ width, height }) => ({ width, height }))(this.$el.style);
4246
4224
  },
4247
4225
 
4248
4226
  disconnected() {
@@ -4258,7 +4236,7 @@
4258
4236
  name: 'click',
4259
4237
 
4260
4238
  delegate() {
4261
- return "." + this.clsDrop + "-close";
4239
+ return `.${this.clsDrop}-close`;
4262
4240
  },
4263
4241
 
4264
4242
  handler(e) {
@@ -4274,7 +4252,7 @@
4274
4252
  return 'a[href*="#"]';
4275
4253
  },
4276
4254
 
4277
- handler(_ref4) {let { defaultPrevented, current } = _ref4;
4255
+ handler({ defaultPrevented, current }) {
4278
4256
  const { hash } = current;
4279
4257
  if (
4280
4258
  !defaultPrevented &&
@@ -4336,7 +4314,7 @@
4336
4314
  },
4337
4315
 
4338
4316
  {
4339
- name: pointerEnter + " focusin",
4317
+ name: `${pointerEnter} focusin`,
4340
4318
 
4341
4319
  filter() {
4342
4320
  return includes(this.mode, 'hover');
@@ -4350,7 +4328,7 @@
4350
4328
  },
4351
4329
 
4352
4330
  {
4353
- name: pointerLeave + " focusout",
4331
+ name: `${pointerLeave} focusout`,
4354
4332
 
4355
4333
  filter() {
4356
4334
  return includes(this.mode, 'hover');
@@ -4393,22 +4371,21 @@
4393
4371
  on(
4394
4372
  document,
4395
4373
  pointerDown$1,
4396
- (_ref5) => {let { target } = _ref5;return (
4397
- !within(target, this.$el) &&
4398
- once(
4399
- document,
4400
- pointerUp$1 + " " + pointerCancel + " scroll",
4401
- (_ref6) => {let { defaultPrevented, type, target: newTarget } = _ref6;
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));}),
4374
+ ({ target }) => !within(target, this.$el) &&
4375
+ once(
4376
+ document,
4377
+ `${pointerUp$1} ${pointerCancel} scroll`,
4378
+ ({ defaultPrevented, type, target: newTarget }) => {
4379
+ if (
4380
+ !defaultPrevented &&
4381
+ type === pointerUp$1 &&
4382
+ target === newTarget &&
4383
+ !(this.targetEl && within(target, this.targetEl)))
4384
+ {
4385
+ this.hide(false);
4386
+ }
4387
+ },
4388
+ true)),
4412
4389
 
4413
4390
 
4414
4391
 
@@ -4460,7 +4437,7 @@
4460
4437
  {
4461
4438
  name: 'hide',
4462
4439
 
4463
- handler(_ref7) {let { target } = _ref7;
4440
+ handler({ target }) {
4464
4441
  if (this.$el !== target) {
4465
4442
  active =
4466
4443
  active === null && within(target, this.$el) && this.isToggled() ?
@@ -4484,7 +4461,7 @@
4484
4461
  },
4485
4462
 
4486
4463
  methods: {
4487
- show(target, delay) {if (target === void 0) {target = this.targetEl;}if (delay === void 0) {delay = true;}
4464
+ show(target = this.targetEl, delay = true) {
4488
4465
  if (this.isToggled() && target && this.targetEl && target !== this.targetEl) {
4489
4466
  this.hide(false, false);
4490
4467
  }
@@ -4520,13 +4497,12 @@
4520
4497
 
4521
4498
  },
4522
4499
 
4523
- hide(delay, animate) {if (delay === void 0) {delay = true;}if (animate === void 0) {animate = true;}
4500
+ hide(delay = true, animate = true) {
4524
4501
  const hide = () => this.toggleElement(this.$el, false, this.animateOut && animate);
4525
4502
 
4526
4503
  this.clearTimers();
4527
4504
 
4528
- this.isDelaying = getPositionedElements(this.$el).some((el) =>
4529
- this.tracker.movesTo(el));
4505
+ this.isDelaying = getPositionedElements(this.$el).some((el) => this.tracker.movesTo(el));
4530
4506
 
4531
4507
 
4532
4508
  if (delay && this.isDelaying) {
@@ -4551,7 +4527,7 @@
4551
4527
  },
4552
4528
 
4553
4529
  position() {
4554
- removeClass(this.$el, this.clsDrop + "-stack");
4530
+ removeClass(this.$el, `${this.clsDrop}-stack`);
4555
4531
  css(this.$el, this._style);
4556
4532
 
4557
4533
  // Ensure none positioned element does not generate scrollbars
@@ -4572,7 +4548,7 @@
4572
4548
  offset(this.boundary[i])[prop],
4573
4549
  viewports[i][prop] - 2 * viewportOffset),
4574
4550
 
4575
- ["overflow-" + axis]: 'auto'
4551
+ [`overflow-${axis}`]: 'auto'
4576
4552
  });
4577
4553
  }
4578
4554
  }
@@ -4580,7 +4556,7 @@
4580
4556
  const maxWidth = viewports[0].width - 2 * viewportOffset;
4581
4557
 
4582
4558
  if (this.$el.offsetWidth > maxWidth) {
4583
- addClass(this.$el, this.clsDrop + "-stack");
4559
+ addClass(this.$el, `${this.clsDrop}-stack`);
4584
4560
  }
4585
4561
 
4586
4562
  css(this.$el, 'maxWidth', maxWidth);
@@ -4607,7 +4583,7 @@
4607
4583
  offset(this.boundary[i])[end],
4608
4584
  viewports[i][end] - viewportOffset) -
4609
4585
  targetOffset[end]) - positionOffset,
4610
- ["overflow-" + axis]: 'auto'
4586
+ [`overflow-${axis}`]: 'auto'
4611
4587
  });
4612
4588
 
4613
4589
  this.positionAt(this.$el, this.target, this.boundary);
@@ -4649,7 +4625,7 @@
4649
4625
  return this.input.nextElementSibling;
4650
4626
  },
4651
4627
 
4652
- target(_ref, $el) {let { target } = _ref;
4628
+ target({ target }, $el) {
4653
4629
  return (
4654
4630
  target && (
4655
4631
  target === true && parent(this.input) === $el && this.input.nextElementSibling ||
@@ -4740,7 +4716,7 @@
4740
4716
  };
4741
4717
  },
4742
4718
 
4743
- write(_ref) {let { columns, rows } = _ref;
4719
+ write({ columns, rows }) {
4744
4720
  for (const row of rows) {
4745
4721
  for (const column of row) {
4746
4722
  toggleClass(column, this.margin, rows[0] !== row);
@@ -4816,7 +4792,7 @@
4816
4792
  return sorted;
4817
4793
  }
4818
4794
 
4819
- function getOffset(element, offset) {if (offset === void 0) {offset = false;}
4795
+ function getOffset(element, offset = false) {
4820
4796
  let { offsetTop, offsetLeft, offsetHeight, offsetWidth } = element;
4821
4797
 
4822
4798
  if (offset) {
@@ -4892,7 +4868,7 @@
4892
4868
 
4893
4869
  update: [
4894
4870
  {
4895
- write(_ref) {let { columns } = _ref;
4871
+ write({ columns }) {
4896
4872
  toggleClass(this.$el, this.clsStack, columns.length < 2);
4897
4873
  },
4898
4874
 
@@ -4928,8 +4904,7 @@
4928
4904
  let padding = Math.abs(this.parallax);
4929
4905
  if (padding) {
4930
4906
  padding = columnHeights.reduce(
4931
- (newPadding, hgt, i) =>
4932
- Math.max(
4907
+ (newPadding, hgt, i) => Math.max(
4933
4908
  newPadding,
4934
4909
  hgt + margin + (i % 2 ? padding : padding / 8) - elHeight),
4935
4910
 
@@ -4940,7 +4915,7 @@
4940
4915
  return { padding, columns, translates, height: translates ? elHeight : '' };
4941
4916
  },
4942
4917
 
4943
- write(_ref2) {let { height, padding } = _ref2;
4918
+ write({ height, padding }) {
4944
4919
  css(this.$el, 'paddingBottom', padding || '');
4945
4920
  height !== false && css(this.$el, 'height', height);
4946
4921
  },
@@ -4961,22 +4936,20 @@
4961
4936
  };
4962
4937
  },
4963
4938
 
4964
- write(_ref3) {let { columns, scrolled, translates } = _ref3;
4939
+ write({ columns, scrolled, translates }) {
4965
4940
  if (scrolled === false && !translates) {
4966
4941
  return;
4967
4942
  }
4968
4943
 
4969
- columns.forEach((column, i) =>
4970
- column.forEach((el, j) =>
4971
- css(
4944
+ columns.forEach((column, i) => column.forEach((el, j) => css(
4972
4945
  el,
4973
4946
  'transform',
4974
4947
  !scrolled && !translates ?
4975
- '' : "translateY(" + (
4976
-
4977
- (translates && -translates[i][j]) + (
4978
- scrolled ? i % 2 ? scrolled : scrolled / 8 : 0)) + "px)")));
4979
-
4948
+ '' :
4949
+ `translateY(${
4950
+ (translates && -translates[i][j]) + (
4951
+ scrolled ? i % 2 ? scrolled : scrolled / 8 : 0)
4952
+ }px)`)));
4980
4953
 
4981
4954
 
4982
4955
 
@@ -4997,8 +4970,7 @@
4997
4970
  return columns.map((elements) => {
4998
4971
  let prev = 0;
4999
4972
  return elements.map(
5000
- (element, row) =>
5001
- prev += row ? rowHeights[row - 1] - elements[row - 1].offsetHeight : 0);
4973
+ (element, row) => prev += row ? rowHeights[row - 1] - elements[row - 1].offsetHeight : 0);
5002
4974
 
5003
4975
  });
5004
4976
  }
@@ -5026,7 +4998,7 @@
5026
4998
 
5027
4999
  computed: {
5028
5000
  elements: {
5029
- get(_ref, $el) {let { target } = _ref;
5001
+ get({ target }, $el) {
5030
5002
  return $$(target, $el);
5031
5003
  },
5032
5004
 
@@ -5047,7 +5019,7 @@
5047
5019
  };
5048
5020
  },
5049
5021
 
5050
- write(_ref2) {let { rows } = _ref2;
5022
+ write({ rows }) {
5051
5023
  for (const { heights, elements } of rows) {
5052
5024
  elements.forEach((el, i) => css(el, 'minHeight', heights[i]));
5053
5025
  }
@@ -5111,7 +5083,7 @@
5111
5083
  },
5112
5084
 
5113
5085
  update: {
5114
- read(_ref) {let { minHeight: prev } = _ref;
5086
+ read({ minHeight: prev }) {
5115
5087
  if (!isVisible(this.$el)) {
5116
5088
  return false;
5117
5089
  }
@@ -5137,34 +5109,34 @@
5137
5109
  scrollingElement === scrollElement || body === scrollElement;
5138
5110
 
5139
5111
  // on mobile devices (iOS and Android) window.innerHeight !== 100vh
5140
- minHeight = "calc(" + (isScrollingElement ? '100vh' : viewportHeight + "px");
5112
+ minHeight = `calc(${isScrollingElement ? '100vh' : `${viewportHeight}px`}`;
5141
5113
 
5142
5114
  if (this.offsetTop) {
5143
5115
  if (isScrollingElement) {
5144
5116
  const top = offsetPosition(this.$el)[0] - offsetPosition(scrollElement)[0];
5145
- minHeight += top > 0 && top < viewportHeight / 2 ? " - " + top + "px" : '';
5117
+ minHeight += top > 0 && top < viewportHeight / 2 ? ` - ${top}px` : '';
5146
5118
  } else {
5147
- minHeight += " - " + css(scrollElement, 'paddingTop');
5119
+ minHeight += ` - ${css(scrollElement, 'paddingTop')}`;
5148
5120
  }
5149
5121
  }
5150
5122
 
5151
5123
  if (this.offsetBottom === true) {
5152
- minHeight += " - " + dimensions$1(this.$el.nextElementSibling).height + "px";
5124
+ minHeight += ` - ${dimensions$1(this.$el.nextElementSibling).height}px`;
5153
5125
  } else if (isNumeric(this.offsetBottom)) {
5154
- minHeight += " - " + this.offsetBottom + "vh";
5126
+ minHeight += ` - ${this.offsetBottom}vh`;
5155
5127
  } else if (this.offsetBottom && endsWith(this.offsetBottom, 'px')) {
5156
- minHeight += " - " + toFloat(this.offsetBottom) + "px";
5128
+ minHeight += ` - ${toFloat(this.offsetBottom)}px`;
5157
5129
  } else if (isString(this.offsetBottom)) {
5158
- minHeight += " - " + dimensions$1(query(this.offsetBottom, this.$el)).height + "px";
5130
+ minHeight += ` - ${dimensions$1(query(this.offsetBottom, this.$el)).height}px`;
5159
5131
  }
5160
5132
 
5161
- minHeight += (box ? " - " + box + "px" : '') + ")";
5133
+ minHeight += `${box ? ` - ${box}px` : ''})`;
5162
5134
  }
5163
5135
 
5164
5136
  return { minHeight, prev };
5165
5137
  },
5166
5138
 
5167
- write(_ref2) {let { minHeight } = _ref2;
5139
+ write({ minHeight }) {
5168
5140
  css(this.$el, { minHeight });
5169
5141
 
5170
5142
  if (this.minHeight && toFloat(css(this.$el, 'minHeight')) < this.minHeight) {
@@ -5257,8 +5229,7 @@
5257
5229
  methods: {
5258
5230
  async getSvg() {
5259
5231
  if (isTag(this.$el, 'img') && !this.$el.complete && this.$el.loading === 'lazy') {
5260
- return new Promise((resolve) =>
5261
- once(this.$el, 'load', () => resolve(this.getSvg())));
5232
+ return new Promise((resolve) => once(this.$el, 'load', () => resolve(this.getSvg())));
5262
5233
 
5263
5234
  }
5264
5235
 
@@ -5330,7 +5301,7 @@
5330
5301
 
5331
5302
  let match;
5332
5303
  while (match = symbolRe.exec(svg)) {
5333
- symbols[svg][match[3]] = "<svg xmlns=\"http://www.w3.org/2000/svg\"" + match[1] + "svg>";
5304
+ symbols[svg][match[3]] = `<svg xmlns="http://www.w3.org/2000/svg"${match[1]}svg>`;
5334
5305
  }
5335
5306
  }
5336
5307
 
@@ -5485,7 +5456,7 @@
5485
5456
 
5486
5457
  beforeConnect() {
5487
5458
  const icon = this.$props.icon;
5488
- this.icon = closest(this.$el, '.uk-nav-primary') ? icon + "-large" : icon;
5459
+ this.icon = closest(this.$el, '.uk-nav-primary') ? `${icon}-large` : icon;
5489
5460
  }
5490
5461
  };
5491
5462
 
@@ -5495,7 +5466,7 @@
5495
5466
  beforeConnect() {
5496
5467
  addClass(this.$el, 'uk-slidenav');
5497
5468
  const icon = this.$props.icon;
5498
- this.icon = hasClass(this.$el, 'uk-slidenav-large') ? icon + "-large" : icon;
5469
+ this.icon = hasClass(this.$el, 'uk-slidenav-large') ? `${icon}-large` : icon;
5499
5470
  }
5500
5471
  };
5501
5472
 
@@ -5516,7 +5487,7 @@
5516
5487
  extends: IconComponent,
5517
5488
 
5518
5489
  beforeConnect() {
5519
- this.icon = "close-" + (hasClass(this.$el, 'uk-close-large') ? 'large' : 'icon');
5490
+ this.icon = `close-${hasClass(this.$el, 'uk-close-large') ? 'large' : 'icon'}`;
5520
5491
  }
5521
5492
  };
5522
5493
 
@@ -5546,8 +5517,7 @@
5546
5517
  });
5547
5518
 
5548
5519
  if (UIkit._initialized) {
5549
- apply(document.body, (el) =>
5550
- each(UIkit.getComponents(el), (cmp) => {
5520
+ apply(document.body, (el) => each(UIkit.getComponents(el), (cmp) => {
5551
5521
  cmp.$options.isIcon && cmp.icon in added && cmp.$reset();
5552
5522
  }));
5553
5523
 
@@ -5654,7 +5624,7 @@
5654
5624
  } else if (src) {
5655
5625
  const change = !includes(el.style.backgroundImage, src);
5656
5626
  if (change) {
5657
- css(el, 'backgroundImage', "url(" + escape(src) + ")");
5627
+ css(el, 'backgroundImage', `url(${escape(src)})`);
5658
5628
  trigger(el, createEvent('load', false));
5659
5629
  }
5660
5630
  }
@@ -5766,13 +5736,13 @@
5766
5736
  function toMedia(value, element) {
5767
5737
  if (isString(value)) {
5768
5738
  if (startsWith(value, '@')) {
5769
- value = toFloat(css(element, "--uk-breakpoint-" + value.substr(1)));
5739
+ value = toFloat(css(element, `--uk-breakpoint-${value.substr(1)}`));
5770
5740
  } else if (isNaN(value)) {
5771
5741
  return value;
5772
5742
  }
5773
5743
  }
5774
5744
 
5775
- return value && isNumeric(value) ? "(min-width: " + value + "px)" : '';
5745
+ return value && isNumeric(value) ? `(min-width: ${value}px)` : '';
5776
5746
  }
5777
5747
 
5778
5748
  var leader = {
@@ -5790,13 +5760,13 @@
5790
5760
  },
5791
5761
 
5792
5762
  computed: {
5793
- fill(_ref) {let { fill } = _ref;
5763
+ fill({ fill }) {
5794
5764
  return fill || css(this.$el, '--uk-leader-fill-content');
5795
5765
  }
5796
5766
  },
5797
5767
 
5798
5768
  connected() {
5799
- [this.wrapper] = wrapInner(this.$el, "<span class=\"" + this.clsWrapper + "\">");
5769
+ [this.wrapper] = wrapInner(this.$el, `<span class="${this.clsWrapper}">`);
5800
5770
  },
5801
5771
 
5802
5772
  disconnected() {
@@ -5814,7 +5784,7 @@
5814
5784
  };
5815
5785
  },
5816
5786
 
5817
- write(_ref2) {let { width, fill, hide } = _ref2;
5787
+ write({ width, fill, hide }) {
5818
5788
  toggleClass(this.wrapper, this.clsHide, hide);
5819
5789
  attr(this.wrapper, this.attrFill, new Array(width).join(fill));
5820
5790
  },
@@ -5865,12 +5835,10 @@
5865
5835
 
5866
5836
  };
5867
5837
 
5868
- function install$2(_ref) {let { modal } = _ref;
5838
+ function install$2({ modal }) {
5869
5839
  modal.dialog = function (content, options) {
5870
- const dialog = modal("<div class=\"uk-modal\"> <div class=\"uk-modal-dialog\">" +
5871
-
5872
- content + "</div> </div>",
5873
-
5840
+ const dialog = modal(
5841
+ `<div class="uk-modal"> <div class="uk-modal-dialog">${content}</div> </div>`,
5874
5842
  options);
5875
5843
 
5876
5844
 
@@ -5891,14 +5859,11 @@
5891
5859
 
5892
5860
  modal.alert = function (message, options) {
5893
5861
  return openDialog(
5894
- (_ref2) => {let { labels } = _ref2;return "<div class=\"uk-modal-body\">" + (
5895
- 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>" +
5896
-
5897
-
5898
-
5899
- labels.ok + "</button> </div>";},
5900
-
5901
-
5862
+ ({ labels }) => `<div class="uk-modal-body">${
5863
+ isString(message) ? message : html(message)
5864
+ }</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-primary uk-modal-close" autofocus>${
5865
+ labels.ok
5866
+ }</button> </div>`,
5902
5867
  options,
5903
5868
  (deferred) => deferred.resolve());
5904
5869
 
@@ -5906,15 +5871,9 @@
5906
5871
 
5907
5872
  modal.confirm = function (message, options) {
5908
5873
  return openDialog(
5909
- (_ref3) => {let { labels } = _ref3;return "<form> <div class=\"uk-modal-body\">" + (
5910
- 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\">" +
5911
-
5912
-
5913
- labels.cancel + "</button> <button class=\"uk-button uk-button-primary\" autofocus>" +
5914
-
5915
- labels.ok + "</button> </div> </form>";},
5916
-
5917
-
5874
+ ({ labels }) => `<form> <div class="uk-modal-body">${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">${
5875
+ labels.cancel
5876
+ }</button> <button class="uk-button uk-button-primary" autofocus>${labels.ok}</button> </div> </form>`,
5918
5877
  options,
5919
5878
  (deferred) => deferred.reject());
5920
5879
 
@@ -5922,18 +5881,9 @@
5922
5881
 
5923
5882
  modal.prompt = function (message, value, options) {
5924
5883
  return openDialog(
5925
- (_ref4) => {let { labels } = _ref4;return "<form class=\"uk-form-stacked\"> <div class=\"uk-modal-body\"> <label>" + (
5926
-
5927
- isString(message) ? message : html(message)) + "</label> <input class=\"uk-input\" value=\"" + (
5928
- value || '') + "\" autofocus> </div> <div class=\"uk-modal-footer uk-text-right\"> <button class=\"uk-button uk-button-default uk-modal-close\" type=\"button\">" +
5929
-
5930
-
5931
-
5932
- labels.cancel + "</button> <button class=\"uk-button uk-button-primary\">" +
5933
-
5934
- labels.ok + "</button> </div> </form>";},
5935
-
5936
-
5884
+ ({ labels }) => `<form class="uk-form-stacked"> <div class="uk-modal-body"> <label>${isString(message) ? message : html(message)}</label> <input class="uk-input" value="${value || ''}" autofocus> </div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">${
5885
+ labels.cancel
5886
+ }</button> <button class="uk-button uk-button-primary">${labels.ok}</button> </div> </form>`,
5937
5887
  options,
5938
5888
  (deferred) => deferred.resolve(null),
5939
5889
  (dialog) => $('input', dialog.$el).value);
@@ -6013,12 +5963,12 @@
6013
5963
  },
6014
5964
 
6015
5965
  computed: {
6016
- dropbarAnchor(_ref, $el) {let { dropbarAnchor } = _ref;
5966
+ dropbarAnchor({ dropbarAnchor }, $el) {
6017
5967
  return query(dropbarAnchor, $el) || $el;
6018
5968
  },
6019
5969
 
6020
5970
  dropbar: {
6021
- get(_ref2) {let { dropbar } = _ref2;
5971
+ get({ dropbar }) {
6022
5972
  if (!dropbar) {
6023
5973
  return null;
6024
5974
  }
@@ -6043,11 +5993,11 @@
6043
5993
  },
6044
5994
 
6045
5995
  dropdowns: {
6046
- get(_ref3, $el) {let { clsDrop } = _ref3;
6047
- const dropdowns = $$("." + clsDrop, $el);
5996
+ get({ clsDrop }, $el) {
5997
+ const dropdowns = $$(`.${clsDrop}`, $el);
6048
5998
 
6049
5999
  if (this.dropContainer !== $el) {
6050
- for (const el of $$("." + clsDrop, this.dropContainer)) {var _this$getDropdown;
6000
+ for (const el of $$(`.${clsDrop}`, this.dropContainer)) {var _this$getDropdown;
6051
6001
  const target = (_this$getDropdown = this.getDropdown(el)) == null ? void 0 : _this$getDropdown.targetEl;
6052
6002
  if (!includes(dropdowns, el) && target && within(target, this.$el)) {
6053
6003
  dropdowns.push(el);
@@ -6066,7 +6016,7 @@
6066
6016
  ...this.$props,
6067
6017
  flip: false,
6068
6018
  shift: true,
6069
- pos: "bottom-" + this.align,
6019
+ pos: `bottom-${this.align}`,
6070
6020
  boundary: this.boundary === true ? this.$el : this.boundary
6071
6021
  });
6072
6022
 
@@ -6076,7 +6026,7 @@
6076
6026
  },
6077
6027
 
6078
6028
  toggles: {
6079
- get(_ref4, $el) {let { dropdown } = _ref4;
6029
+ get({ dropdown }, $el) {
6080
6030
  return $$(dropdown, $el);
6081
6031
  },
6082
6032
 
@@ -6107,7 +6057,7 @@
6107
6057
  return this.dropdown;
6108
6058
  },
6109
6059
 
6110
- handler(_ref5) {let { current } = _ref5;
6060
+ handler({ current }) {
6111
6061
  const active = this.getActive();
6112
6062
  if (
6113
6063
  active &&
@@ -6137,8 +6087,7 @@
6137
6087
 
6138
6088
  if (!active || active.targetEl !== current) {
6139
6089
  current.click();
6140
- once(this.dropContainer, 'show', (_ref6) => {let { target } = _ref6;return (
6141
- focusFirstFocusableElement(target));});
6090
+ once(this.dropContainer, 'show', ({ target }) => focusFirstFocusableElement(target));
6142
6091
 
6143
6092
  } else {
6144
6093
  focusFirstFocusableElement(active.$el);
@@ -6157,7 +6106,7 @@
6157
6106
  },
6158
6107
 
6159
6108
  delegate() {
6160
- return "." + this.clsDrop;
6109
+ return `.${this.clsDrop}`;
6161
6110
  },
6162
6111
 
6163
6112
  handler(e) {
@@ -6228,7 +6177,7 @@
6228
6177
  return this.dropbar;
6229
6178
  },
6230
6179
 
6231
- handler(_ref7) {let { target } = _ref7;
6180
+ handler({ target }) {
6232
6181
  if (!this.isDropbarDrop(target)) {
6233
6182
  return;
6234
6183
  }
@@ -6237,7 +6186,7 @@
6237
6186
  after(this.dropbarAnchor, this.dropbar);
6238
6187
  }
6239
6188
 
6240
- addClass(target, this.clsDrop + "-dropbar");
6189
+ addClass(target, `${this.clsDrop}-dropbar`);
6241
6190
  }
6242
6191
  },
6243
6192
 
@@ -6252,18 +6201,18 @@
6252
6201
  return this.dropbar;
6253
6202
  },
6254
6203
 
6255
- handler(_ref8) {let { target } = _ref8;
6204
+ handler({ target }) {
6256
6205
  if (!this.isDropbarDrop(target)) {
6257
6206
  return;
6258
6207
  }
6259
6208
 
6260
6209
  const drop = this.getDropdown(target);
6261
6210
  this._observer = observeResize([drop.$el, ...drop.target], () => {
6262
- const targetOffsets = parents(target, "." + this.clsDrop).
6211
+ const targetOffsets = parents(target, `.${this.clsDrop}`).
6263
6212
  concat(target).
6264
6213
  map((el) => offset(el));
6265
- const minTop = Math.min(...targetOffsets.map((_ref9) => {let { top } = _ref9;return top;}));
6266
- const maxBottom = Math.max(...targetOffsets.map((_ref10) => {let { bottom } = _ref10;return bottom;}));
6214
+ const minTop = Math.min(...targetOffsets.map(({ top }) => top));
6215
+ const maxBottom = Math.max(...targetOffsets.map(({ bottom }) => bottom));
6267
6216
  const dropbarOffset = offset(this.dropbar);
6268
6217
  css(this.dropbar, 'top', this.dropbar.offsetTop - (dropbarOffset.top - minTop));
6269
6218
  this.transitionTo(
@@ -6309,7 +6258,7 @@
6309
6258
  return this.dropbar;
6310
6259
  },
6311
6260
 
6312
- handler(_ref11) {var _this$_observer;let { target } = _ref11;
6261
+ handler({ target }) {var _this$_observer;
6313
6262
  if (!this.isDropbarDrop(target)) {
6314
6263
  return;
6315
6264
  }
@@ -6336,7 +6285,7 @@
6336
6285
 
6337
6286
  el = oldHeight < newHeight && el;
6338
6287
 
6339
- css(el, 'clipPath', "polygon(0 0,100% 0,100% " + oldHeight + "px,0 " + oldHeight + "px)");
6288
+ css(el, 'clipPath', `polygon(0 0,100% 0,100% ${oldHeight}px,0 ${oldHeight}px)`);
6340
6289
 
6341
6290
  height(dropbar, oldHeight);
6342
6291
 
@@ -6346,7 +6295,7 @@
6346
6295
  Transition.start(
6347
6296
  el,
6348
6297
  {
6349
- clipPath: "polygon(0 0,100% 0,100% " + newHeight + "px,0 " + newHeight + "px)"
6298
+ clipPath: `polygon(0 0,100% 0,100% ${newHeight}px,0 ${newHeight}px)`
6350
6299
  },
6351
6300
  this.duration)]).
6352
6301
 
@@ -6435,7 +6384,7 @@
6435
6384
  // Handle Swipe Gesture
6436
6385
  const pos = getEventPos(e);
6437
6386
  const target = 'tagName' in e.target ? e.target : parent(e.target);
6438
- once(document, pointerUp$1 + " " + pointerCancel + " scroll", (e) => {
6387
+ once(document, `${pointerUp$1} ${pointerCancel} scroll`, (e) => {
6439
6388
  const { x, y } = getEventPos(e);
6440
6389
 
6441
6390
  // swipe
@@ -6445,7 +6394,7 @@
6445
6394
  {
6446
6395
  setTimeout(() => {
6447
6396
  trigger(target, 'swipe');
6448
- trigger(target, "swipe" + swipeDirection(pos.x, pos.y, x, y));
6397
+ trigger(target, `swipe${swipeDirection(pos.x, pos.y, x, y)}`);
6449
6398
  });
6450
6399
  }
6451
6400
  });
@@ -6492,27 +6441,27 @@
6492
6441
  },
6493
6442
 
6494
6443
  computed: {
6495
- clsFlip(_ref) {let { flip, clsFlip } = _ref;
6444
+ clsFlip({ flip, clsFlip }) {
6496
6445
  return flip ? clsFlip : '';
6497
6446
  },
6498
6447
 
6499
- clsOverlay(_ref2) {let { overlay, clsOverlay } = _ref2;
6448
+ clsOverlay({ overlay, clsOverlay }) {
6500
6449
  return overlay ? clsOverlay : '';
6501
6450
  },
6502
6451
 
6503
- clsMode(_ref3) {let { mode, clsMode } = _ref3;
6504
- return clsMode + "-" + mode;
6452
+ clsMode({ mode, clsMode }) {
6453
+ return `${clsMode}-${mode}`;
6505
6454
  },
6506
6455
 
6507
- clsSidebarAnimation(_ref4) {let { mode, clsSidebarAnimation } = _ref4;
6456
+ clsSidebarAnimation({ mode, clsSidebarAnimation }) {
6508
6457
  return mode === 'none' || mode === 'reveal' ? '' : clsSidebarAnimation;
6509
6458
  },
6510
6459
 
6511
- clsContainerAnimation(_ref5) {let { mode, clsContainerAnimation } = _ref5;
6460
+ clsContainerAnimation({ mode, clsContainerAnimation }) {
6512
6461
  return mode !== 'push' && mode !== 'reveal' ? '' : clsContainerAnimation;
6513
6462
  },
6514
6463
 
6515
- transitionElement(_ref6) {let { mode } = _ref6;
6464
+ transitionElement({ mode }) {
6516
6465
  return mode === 'reveal' ? parent(this.panel) : this.panel;
6517
6466
  }
6518
6467
  },
@@ -6649,11 +6598,11 @@
6649
6598
  },
6650
6599
 
6651
6600
  computed: {
6652
- container(_ref, $el) {let { selContainer } = _ref;
6601
+ container({ selContainer }, $el) {
6653
6602
  return closest($el, selContainer);
6654
6603
  },
6655
6604
 
6656
- content(_ref2, $el) {let { selContent } = _ref2;
6605
+ content({ selContent }, $el) {
6657
6606
  return closest($el, selContent);
6658
6607
  }
6659
6608
  },
@@ -6676,7 +6625,7 @@
6676
6625
  };
6677
6626
  },
6678
6627
 
6679
- write(_ref3) {let { max } = _ref3;
6628
+ write({ max }) {
6680
6629
  css(this.$el, { minHeight: this.minHeight, maxHeight: max });
6681
6630
  },
6682
6631
 
@@ -6816,14 +6765,14 @@
6816
6765
 
6817
6766
  computed: {
6818
6767
  elements: {
6819
- get(_ref, $el) {let { target } = _ref;
6768
+ get({ target }, $el) {
6820
6769
  return target ? $$(target, $el) : [$el];
6821
6770
  },
6822
6771
 
6823
6772
  watch(elements, prev) {
6824
6773
  if (this.hidden) {
6825
6774
  // use `opacity:0` instead of `visibility:hidden` to make content focusable with keyboard
6826
- css(filter$1(elements, ":not(." + this.inViewClass + ")"), 'opacity', 0);
6775
+ css(filter$1(elements, `:not(.${this.inViewClass})`), 'opacity', 0);
6827
6776
  }
6828
6777
 
6829
6778
  if (!isEqual(elements, prev)) {
@@ -6963,7 +6912,7 @@
6963
6912
  immediate: true
6964
6913
  },
6965
6914
 
6966
- elements(_ref) {let { closest: selector } = _ref;
6915
+ elements({ closest: selector }) {
6967
6916
  return closest(this.links, selector || '*');
6968
6917
  }
6969
6918
  },
@@ -7003,7 +6952,7 @@
7003
6952
  return { active };
7004
6953
  },
7005
6954
 
7006
- write(_ref2) {let { active } = _ref2;
6955
+ write({ active }) {
7007
6956
  const changed = active !== false && !hasClass(this.elements[active], this.cls);
7008
6957
 
7009
6958
  this.links.forEach((el) => el.blur());
@@ -7061,7 +7010,7 @@
7061
7010
  },
7062
7011
 
7063
7012
  computed: {
7064
- selTarget(_ref, $el) {let { selTarget } = _ref;
7013
+ selTarget({ selTarget }, $el) {
7065
7014
  return selTarget && $(selTarget, $el) || $el;
7066
7015
  }
7067
7016
  },
@@ -7142,7 +7091,7 @@
7142
7091
 
7143
7092
  update: [
7144
7093
  {
7145
- read(_ref2, types) {let { height: height$1, width, margin, sticky } = _ref2;
7094
+ read({ height: height$1, width, margin, sticky }, types) {
7146
7095
  this.inactive = !this.matchMedia || !isVisible(this.$el);
7147
7096
 
7148
7097
  if (this.inactive) {
@@ -7224,18 +7173,20 @@
7224
7173
  };
7225
7174
  },
7226
7175
 
7227
- write(_ref3) {let { height, width, margin, offset, sticky } = _ref3;
7228
- if (this.inactive) {
7176
+ write({ height, width, margin, offset, sticky }) {
7177
+ if (this.inactive || sticky || !this.isFixed) {
7229
7178
  reset(this.$el);
7179
+ }
7180
+
7181
+ if (this.inactive) {
7230
7182
  return;
7231
7183
  }
7232
7184
 
7233
7185
  if (sticky) {
7234
7186
  height = width = margin = 0;
7235
7187
  css(this.$el, { position: 'sticky', top: offset });
7236
- } else if (!this.isFixed) {
7237
- reset(this.$el);
7238
7188
  }
7189
+
7239
7190
  const { placeholder } = this;
7240
7191
 
7241
7192
  css(placeholder, { height, width, margin });
@@ -7250,14 +7201,14 @@
7250
7201
  },
7251
7202
 
7252
7203
  {
7253
- read(_ref4)
7254
-
7255
-
7256
-
7257
-
7258
-
7259
-
7260
- {let { scroll: prevScroll = 0, dir: prevDir = 'down', overflow, overflowScroll = 0, start, end } = _ref4;
7204
+ read({
7205
+ scroll: prevScroll = 0,
7206
+ dir: prevDir = 'down',
7207
+ overflow,
7208
+ overflowScroll = 0,
7209
+ start,
7210
+ end
7211
+ }) {
7261
7212
  const scroll = document.scrollingElement.scrollTop;
7262
7213
  const dir = prevScroll <= scroll ? 'down' : 'up';
7263
7214
 
@@ -7402,10 +7353,7 @@
7402
7353
  position = 'absolute';
7403
7354
  }
7404
7355
 
7405
- css(this.$el, {
7406
- position,
7407
- width
7408
- });
7356
+ css(this.$el, { position, width });
7409
7357
  css(this.$el, 'marginTop', 0, 'important');
7410
7358
  }
7411
7359
 
@@ -7492,7 +7440,7 @@
7492
7440
 
7493
7441
  computed: {
7494
7442
  connects: {
7495
- get(_ref, $el) {let { connect } = _ref;
7443
+ get({ connect }, $el) {
7496
7444
  return queryAll(connect, $el);
7497
7445
  },
7498
7446
 
@@ -7523,7 +7471,7 @@
7523
7471
  },
7524
7472
 
7525
7473
  toggles: {
7526
- get(_ref2, $el) {let { toggle } = _ref2;
7474
+ get({ toggle }, $el) {
7527
7475
  return $$(toggle, $el).filter(
7528
7476
  (el) => !matches(el, '.uk-disabled *, .uk-disabled, [disabled]'));
7529
7477
 
@@ -7538,8 +7486,7 @@
7538
7486
  },
7539
7487
 
7540
7488
  children() {
7541
- return children(this.$el).filter((child) =>
7542
- this.toggles.some((toggle) => within(toggle, child)));
7489
+ return children(this.$el).filter((child) => this.toggles.some((toggle) => within(toggle, child)));
7543
7490
 
7544
7491
  },
7545
7492
 
@@ -7570,7 +7517,7 @@
7570
7517
  },
7571
7518
 
7572
7519
  delegate() {
7573
- return "[" + this.attrItem + "],[data-" + this.attrItem + "]";
7520
+ return `[${this.attrItem}],[data-${this.attrItem}]`;
7574
7521
  },
7575
7522
 
7576
7523
  handler(e) {
@@ -7590,7 +7537,7 @@
7590
7537
  return this.connects;
7591
7538
  },
7592
7539
 
7593
- handler(_ref3) {let { type } = _ref3;
7540
+ handler({ type }) {
7594
7541
  this.show(endsWith(type, 'Left') ? 'next' : 'previous');
7595
7542
  }
7596
7543
  }],
@@ -7611,7 +7558,7 @@
7611
7558
  });
7612
7559
 
7613
7560
  const animate = prev >= 0 && prev !== next;
7614
- this.connects.forEach(async (_ref4) => {let { children } = _ref4;
7561
+ this.connects.forEach(async ({ children }) => {
7615
7562
  await this.toggleElement(
7616
7563
  toNodes(children).filter((child) => hasClass(child, this.cls)),
7617
7564
  false,
@@ -7673,7 +7620,7 @@
7673
7620
 
7674
7621
  computed: {
7675
7622
  target: {
7676
- get(_ref, $el) {let { href, target } = _ref;
7623
+ get({ href, target }, $el) {
7677
7624
  target = queryAll(target || href, $el);
7678
7625
  return target.length && target || [$el];
7679
7626
  },
@@ -7728,7 +7675,7 @@
7728
7675
  },
7729
7676
 
7730
7677
  {
7731
- name: pointerEnter + " " + pointerLeave + " focus blur",
7678
+ name: `${pointerEnter} ${pointerLeave} focus blur`,
7732
7679
 
7733
7680
  filter() {
7734
7681
  return includes(this.mode, 'hover');
@@ -7762,7 +7709,7 @@
7762
7709
 
7763
7710
  this._showState = show ? expanded : null;
7764
7711
 
7765
- this.toggle("toggle" + (show ? 'show' : 'hide'));
7712
+ this.toggle(`toggle${show ? 'show' : 'hide'}`);
7766
7713
  }
7767
7714
  },
7768
7715
 
@@ -7815,7 +7762,7 @@
7815
7762
  return this.target;
7816
7763
  },
7817
7764
 
7818
- handler(_ref2) {let { target, type } = _ref2;
7765
+ handler({ target, type }) {
7819
7766
  this.updateAria(target === this.target[0] && type === 'show');
7820
7767
  }
7821
7768
  },
@@ -8002,7 +7949,7 @@
8002
7949
 
8003
7950
  let digits = String(Math.trunc(timespan[unit]));
8004
7951
 
8005
- digits = digits.length < 2 ? "0" + digits : digits;
7952
+ digits = digits.length < 2 ? `0${digits}` : digits;
8006
7953
 
8007
7954
  if (el.textContent !== digits) {
8008
7955
  digits = digits.split('');
@@ -8033,7 +7980,7 @@
8033
7980
  const clsLeave = 'uk-transition-leave';
8034
7981
  const clsEnter = 'uk-transition-enter';
8035
7982
 
8036
- function fade(action, target, duration, stagger) {if (stagger === void 0) {stagger = 0;}
7983
+ function fade(action, target, duration, stagger = 0) {
8037
7984
  const index = transitionIndex(target, true);
8038
7985
  const propsIn = { opacity: 1 };
8039
7986
  const propsOut = { opacity: 0 };
@@ -8045,11 +7992,8 @@
8045
7992
 
8046
7993
  await Promise.all(
8047
7994
  getTransitionNodes(target).map(
8048
- (child, i) =>
8049
- new Promise((resolve) =>
8050
- setTimeout(
8051
- () =>
8052
- Transition.start(child, propsOut, duration / 2, 'ease').then(
7995
+ (child, i) => new Promise((resolve) => setTimeout(
7996
+ () => Transition.start(child, propsOut, duration / 2, 'ease').then(
8053
7997
  resolve),
8054
7998
 
8055
7999
  i * stagger))));
@@ -8128,16 +8072,14 @@
8128
8072
  children(target).
8129
8073
  filter(Transition.inProgress).
8130
8074
  map(
8131
- (el) =>
8132
- new Promise((resolve) => once(el, 'transitionend transitioncanceled', resolve))));
8075
+ (el) => new Promise((resolve) => once(el, 'transitionend transitioncanceled', resolve))));
8133
8076
 
8134
8077
 
8135
8078
  }
8136
8079
 
8137
8080
  function getTransitionNodes(target) {
8138
8081
  return getRows(children(target)).reduce(
8139
- (nodes, row) =>
8140
- nodes.concat(
8082
+ (nodes, row) => nodes.concat(
8141
8083
  sortBy$1(
8142
8084
  row.filter((el) => isInView(el)),
8143
8085
  'offsetLeft')),
@@ -8227,8 +8169,7 @@
8227
8169
  }
8228
8170
 
8229
8171
  function getTransitionProps(target, nodes, currentProps) {
8230
- const propsTo = nodes.map((el, i) =>
8231
- parent(el) && i in currentProps ?
8172
+ const propsTo = nodes.map((el, i) => parent(el) && i in currentProps ?
8232
8173
  currentProps[i] ?
8233
8174
  isVisible(el) ?
8234
8175
  getPositionWithMargin(el) :
@@ -8296,13 +8237,13 @@
8296
8237
  },
8297
8238
 
8298
8239
  methods: {
8299
- animate(action, target) {if (target === void 0) {target = this.$el;}
8240
+ animate(action, target = this.$el) {
8300
8241
  const name = this.animation;
8301
8242
  const animationFn =
8302
8243
  name === 'fade' ?
8303
8244
  fade :
8304
8245
  name === 'delayed-fade' ?
8305
- function () {for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}return fade(...args, 40);} :
8246
+ (...args) => fade(...args, 40) :
8306
8247
  name ?
8307
8248
  slide :
8308
8249
  () => {
@@ -8335,8 +8276,8 @@
8335
8276
 
8336
8277
  computed: {
8337
8278
  toggles: {
8338
- get(_ref, $el) {let { attrItem } = _ref;
8339
- return $$("[" + attrItem + "],[data-" + attrItem + "]", $el);
8279
+ get({ attrItem }, $el) {
8280
+ return $$(`[${attrItem}],[data-${attrItem}]`, $el);
8340
8281
  },
8341
8282
 
8342
8283
  watch() {
@@ -8352,8 +8293,8 @@
8352
8293
  },
8353
8294
 
8354
8295
  children: {
8355
- get(_ref2, $el) {let { target } = _ref2;
8356
- return $$(target + " > *", $el);
8296
+ get({ target }, $el) {
8297
+ return $$(`${target} > *`, $el);
8357
8298
  },
8358
8299
 
8359
8300
  watch(list, old) {
@@ -8371,7 +8312,7 @@
8371
8312
  name: 'click',
8372
8313
 
8373
8314
  delegate() {
8374
- return "[" + this.attrItem + "],[data-" + this.attrItem + "]";
8315
+ return `[${this.attrItem}],[data-${this.attrItem}]`;
8375
8316
  },
8376
8317
 
8377
8318
  handler(e) {
@@ -8400,13 +8341,12 @@
8400
8341
  });
8401
8342
  },
8402
8343
 
8403
- async setState(state, animate) {if (animate === void 0) {animate = true;}
8344
+ async setState(state, animate = true) {
8404
8345
  state = { filter: { '': '' }, sort: [], ...state };
8405
8346
 
8406
8347
  trigger(this.$el, 'beforeFilter', [this, state]);
8407
8348
 
8408
- this.toggles.forEach((el) =>
8409
- toggleClass(el, this.cls, !!matchFilter(el, this.attrItem, state)));
8349
+ this.toggles.forEach((el) => toggleClass(el, this.cls, !!matchFilter(el, this.attrItem, state)));
8410
8350
 
8411
8351
 
8412
8352
  await Promise.all(
@@ -8480,9 +8420,9 @@
8480
8420
 
8481
8421
  function matchFilter(
8482
8422
  el,
8483
- attr, _ref3)
8484
-
8485
- {let { filter: stateFilter = { '': '' }, sort: [stateSort, stateOrder] } = _ref3;
8423
+ attr,
8424
+ { filter: stateFilter = { '': '' }, sort: [stateSort, stateOrder] })
8425
+ {
8486
8426
  const { filter = '', group = '', sort, order = 'asc' } = getFilter(el, attr);
8487
8427
 
8488
8428
  return isUndefined(sort) ?
@@ -8495,7 +8435,7 @@
8495
8435
  return listA.length === listB.length && listA.every((el) => listB.includes(el));
8496
8436
  }
8497
8437
 
8498
- function getSelector(_ref4) {let { filter } = _ref4;
8438
+ function getSelector({ filter }) {
8499
8439
  let selector = '';
8500
8440
  each(filter, (value) => selector += value || '');
8501
8441
  return selector;
@@ -8503,8 +8443,7 @@
8503
8443
 
8504
8444
  function sortItems(nodes, sort, order) {
8505
8445
  return [...nodes].sort(
8506
- (a, b) =>
8507
- data(a, sort).localeCompare(data(b, sort), undefined, { numeric: true }) * (
8446
+ (a, b) => data(a, sort).localeCompare(data(b, sort), undefined, { numeric: true }) * (
8508
8447
  order === 'asc' || -1));
8509
8448
 
8510
8449
  }
@@ -8532,13 +8471,13 @@
8532
8471
  return Math.abs(css(el, 'transform').split(',')[4] / el.offsetWidth) || 0;
8533
8472
  }
8534
8473
 
8535
- function translate(value, unit) {if (value === void 0) {value = 0;}if (unit === void 0) {unit = '%';}
8474
+ function translate(value = 0, unit = '%') {
8536
8475
  value += value ? unit : '';
8537
- return "translate3d(" + value + ", 0, 0)";
8476
+ return `translate3d(${value}, 0, 0)`;
8538
8477
  }
8539
8478
 
8540
8479
  function scale3d(value) {
8541
- return "scale3d(" + value + ", " + value + ", 1)";
8480
+ return `scale3d(${value}, ${value}, 1)`;
8542
8481
  }
8543
8482
 
8544
8483
  var Animations$1 = {
@@ -8578,7 +8517,7 @@
8578
8517
  }
8579
8518
  };
8580
8519
 
8581
- function Transitioner$1(prev, next, dir, _ref) {let { animation, easing } = _ref;
8520
+ function Transitioner$1(prev, next, dir, { animation, easing }) {
8582
8521
  const { percent, translate, show = noop } = animation;
8583
8522
  const props = show(dir);
8584
8523
  const deferred = new Deferred();
@@ -8586,7 +8525,7 @@
8586
8525
  return {
8587
8526
  dir,
8588
8527
 
8589
- show(duration, percent, linear) {if (percent === void 0) {percent = 0;}
8528
+ show(duration, percent = 0, linear) {
8590
8529
  const timing = linear ? 'linear' : easing;
8591
8530
  duration -= Math.round(duration * clamp(percent, -1, 1));
8592
8531
 
@@ -8616,7 +8555,7 @@
8616
8555
  }
8617
8556
  },
8618
8557
 
8619
- forward(duration, percent) {if (percent === void 0) {percent = this.percent();}
8558
+ forward(duration, percent = this.percent()) {
8620
8559
  Transition.cancel([next, prev]);
8621
8560
  return this.show(duration, percent, true);
8622
8561
  },
@@ -8697,8 +8636,7 @@
8697
8636
  this.stopAutoplay();
8698
8637
 
8699
8638
  this.interval = setInterval(
8700
- () =>
8701
- (!this.draggable || !$(':focus', this.$el)) && (
8639
+ () => (!this.draggable || !$(':focus', this.$el)) && (
8702
8640
  !this.pauseOnHover || !matches(this.$el, ':hover')) &&
8703
8641
  !this.stack.length &&
8704
8642
  this.show('next'),
@@ -8749,7 +8687,7 @@
8749
8687
  passive: true,
8750
8688
 
8751
8689
  delegate() {
8752
- return this.selSlides;
8690
+ return `${this.selList} > *`;
8753
8691
  },
8754
8692
 
8755
8693
  handler(e) {
@@ -8937,12 +8875,12 @@
8937
8875
  },
8938
8876
 
8939
8877
  computed: {
8940
- nav(_ref, $el) {let { selNav } = _ref;
8878
+ nav({ selNav }, $el) {
8941
8879
  return $(selNav, $el);
8942
8880
  },
8943
8881
 
8944
- selNavItem(_ref2) {let { attrItem } = _ref2;
8945
- return "[" + attrItem + "],[data-" + attrItem + "]";
8882
+ selNavItem({ attrItem }) {
8883
+ return `[${attrItem}],[data-${attrItem}]`;
8946
8884
  },
8947
8885
 
8948
8886
  navItems(_, $el) {
@@ -8956,7 +8894,7 @@
8956
8894
  html(
8957
8895
  this.nav,
8958
8896
  this.slides.
8959
- map((_, i) => "<li " + this.attrItem + "=\"" + i + "\"><a href></a></li>").
8897
+ map((_, i) => `<li ${this.attrItem}="${i}"><a href></a></li>`).
8960
8898
  join(''));
8961
8899
 
8962
8900
  }
@@ -9015,8 +8953,7 @@
9015
8953
  easing: String,
9016
8954
  index: Number,
9017
8955
  finite: Boolean,
9018
- velocity: Number,
9019
- selSlides: String
8956
+ velocity: Number
9020
8957
  },
9021
8958
 
9022
8959
  data: () => ({
@@ -9044,11 +8981,11 @@
9044
8981
  },
9045
8982
 
9046
8983
  computed: {
9047
- duration(_ref, $el) {let { velocity } = _ref;
8984
+ duration({ velocity }, $el) {
9048
8985
  return speedUp($el.offsetWidth / velocity);
9049
8986
  },
9050
8987
 
9051
- list(_ref2, $el) {let { selList } = _ref2;
8988
+ list({ selList }, $el) {
9052
8989
  return $(selList, $el);
9053
8990
  },
9054
8991
 
@@ -9056,13 +8993,9 @@
9056
8993
  return this.length - 1;
9057
8994
  },
9058
8995
 
9059
- selSlides(_ref3) {let { selList, selSlides } = _ref3;
9060
- return selList + " " + (selSlides || '> *');
9061
- },
9062
-
9063
8996
  slides: {
9064
8997
  get() {
9065
- return $$(this.selSlides, this.$el);
8998
+ return children(this.list);
9066
8999
  },
9067
9000
 
9068
9001
  watch() {
@@ -9076,7 +9009,7 @@
9076
9009
  },
9077
9010
 
9078
9011
  methods: {
9079
- show(index, force) {if (force === void 0) {force = false;}
9012
+ show(index, force = false) {
9080
9013
  if (this.dragging || !this.length) {
9081
9014
  return;
9082
9015
  }
@@ -9147,11 +9080,11 @@
9147
9080
  return promise;
9148
9081
  },
9149
9082
 
9150
- getIndex(index, prev) {if (index === void 0) {index = this.index;}if (prev === void 0) {prev = this.index;}
9083
+ getIndex(index = this.index, prev = this.index) {
9151
9084
  return clamp(getIndex(index, this.slides, prev, this.finite), 0, this.maxIndex);
9152
9085
  },
9153
9086
 
9154
- getValidIndex(index, prevIndex) {if (index === void 0) {index = this.index;}if (prevIndex === void 0) {prevIndex = this.prevIndex;}
9087
+ getValidIndex(index = this.index, prevIndex = this.prevIndex) {
9155
9088
  return this.getIndex(index, prevIndex);
9156
9089
  },
9157
9090
 
@@ -9181,18 +9114,18 @@
9181
9114
  return this._getTransitioner(prev, prev !== next && next).getDistance();
9182
9115
  },
9183
9116
 
9184
- _translate(percent, prev, next) {if (prev === void 0) {prev = this.prevIndex;}if (next === void 0) {next = this.index;}
9117
+ _translate(percent, prev = this.prevIndex, next = this.index) {
9185
9118
  const transitioner = this._getTransitioner(prev !== next ? prev : false, next);
9186
9119
  transitioner.translate(percent);
9187
9120
  return transitioner;
9188
9121
  },
9189
9122
 
9190
9123
  _getTransitioner(
9191
- prev,
9192
- next,
9193
- dir,
9194
- options)
9195
- {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;}
9124
+ prev = this.prevIndex,
9125
+ next = this.index,
9126
+ dir = this.dir || 1,
9127
+ options = this.transitionOptions)
9128
+ {
9196
9129
  return new this.Transitioner(
9197
9130
  isNumber(prev) ? this.slides[prev] : prev,
9198
9131
  isNumber(next) ? this.slides[next] : next,
@@ -9226,7 +9159,7 @@
9226
9159
  },
9227
9160
 
9228
9161
  computed: {
9229
- animation(_ref) {let { animation, Animations } = _ref;
9162
+ animation({ animation, Animations }) {
9230
9163
  return { ...(Animations[animation] || Animations.slide), name: animation };
9231
9164
  },
9232
9165
 
@@ -9236,15 +9169,15 @@
9236
9169
  },
9237
9170
 
9238
9171
  events: {
9239
- beforeitemshow(_ref2) {let { target } = _ref2;
9172
+ beforeitemshow({ target }) {
9240
9173
  addClass(target, this.clsActive);
9241
9174
  },
9242
9175
 
9243
- itemshown(_ref3) {let { target } = _ref3;
9176
+ itemshown({ target }) {
9244
9177
  addClass(target, this.clsActivated);
9245
9178
  },
9246
9179
 
9247
- itemhidden(_ref4) {let { target } = _ref4;
9180
+ itemhidden({ target }) {
9248
9181
  removeClass(target, this.clsActive, this.clsActivated);
9249
9182
  }
9250
9183
  }
@@ -9276,15 +9209,7 @@
9276
9209
  pauseOnHover: false,
9277
9210
  velocity: 2,
9278
9211
  Animations: Animations$1,
9279
- 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>"
9280
-
9281
-
9282
-
9283
-
9284
-
9285
-
9286
-
9287
-
9212
+ 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>`
9288
9213
  }),
9289
9214
 
9290
9215
  created() {
@@ -9296,14 +9221,14 @@
9296
9221
  },
9297
9222
 
9298
9223
  computed: {
9299
- caption(_ref, $el) {let { selCaption } = _ref;
9224
+ caption({ selCaption }, $el) {
9300
9225
  return $(selCaption, $el);
9301
9226
  }
9302
9227
  },
9303
9228
 
9304
9229
  events: [
9305
9230
  {
9306
- name: pointerMove$1 + " " + pointerDown$1 + " keydown",
9231
+ name: `${pointerMove$1} ${pointerDown$1} keydown`,
9307
9232
 
9308
9233
  handler: 'showControls'
9309
9234
  },
@@ -9314,15 +9239,13 @@
9314
9239
  self: true,
9315
9240
 
9316
9241
  delegate() {
9317
- return this.selSlides;
9242
+ return `${this.selList} > *`;
9318
9243
  },
9319
9244
 
9320
9245
  handler(e) {
9321
- if (e.defaultPrevented) {
9322
- return;
9246
+ if (!e.defaultPrevented) {
9247
+ this.hide();
9323
9248
  }
9324
-
9325
- this.hide();
9326
9249
  }
9327
9250
  },
9328
9251
 
@@ -9439,7 +9362,7 @@
9439
9362
  allowfullscreen: '',
9440
9363
  style: 'max-width: 100%; box-sizing: border-box;',
9441
9364
  'uk-responsive': '',
9442
- 'uk-video': "" + this.videoAutoplay
9365
+ 'uk-video': `${this.videoAutoplay}`
9443
9366
  };
9444
9367
 
9445
9368
  // Image
@@ -9461,7 +9384,7 @@
9461
9384
  poster,
9462
9385
  controls: '',
9463
9386
  playsinline: '',
9464
- 'uk-video': "" + this.videoAutoplay
9387
+ 'uk-video': `${this.videoAutoplay}`
9465
9388
  });
9466
9389
 
9467
9390
  on(video, 'loadedmetadata', () => {
@@ -9495,9 +9418,9 @@
9495
9418
  this.setItem(
9496
9419
  item,
9497
9420
  createEl('iframe', {
9498
- src: "https://www.youtube" + (matches[1] || '') + ".com/embed/" + matches[2] + (
9499
- matches[3] ? "?" + matches[3] : ''),
9500
-
9421
+ src: `https://www.youtube${matches[1] || ''}.com/embed/${matches[2]}${
9422
+ matches[3] ? `?${matches[3]}` : ''
9423
+ }`,
9501
9424
  width: 1920,
9502
9425
  height: 1080,
9503
9426
  ...iframeAttrs,
@@ -9509,10 +9432,10 @@
9509
9432
  } else if (matches = src.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/)) {
9510
9433
  try {
9511
9434
  const { height, width } = await (
9512
- await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url=" +
9513
- encodeURI(
9514
- src),
9515
-
9435
+ await fetch(
9436
+ `https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(
9437
+ src)
9438
+ }`,
9516
9439
  {
9517
9440
  credentials: 'omit'
9518
9441
  })).
@@ -9522,9 +9445,9 @@
9522
9445
  this.setItem(
9523
9446
  item,
9524
9447
  createEl('iframe', {
9525
- src: "https://player.vimeo.com/video/" + matches[1] + (
9526
- matches[2] ? "?" + matches[2] : ''),
9527
-
9448
+ src: `https://player.vimeo.com/video/${matches[1]}${
9449
+ matches[2] ? `?${matches[2]}` : ''
9450
+ }`,
9528
9451
  width,
9529
9452
  height,
9530
9453
  ...iframeAttrs,
@@ -9540,7 +9463,7 @@
9540
9463
 
9541
9464
 
9542
9465
  methods: {
9543
- loadItem(index) {if (index === void 0) {index = this.index;}
9466
+ loadItem(index = this.index) {
9544
9467
  const item = this.getItem(index);
9545
9468
 
9546
9469
  if (!this.getSlide(item).childElementCount) {
@@ -9548,7 +9471,7 @@
9548
9471
  }
9549
9472
  },
9550
9473
 
9551
- getItem(index) {if (index === void 0) {index = this.index;}
9474
+ getItem(index = this.index) {
9552
9475
  return this.items[getIndex(index, this.slides)];
9553
9476
  },
9554
9477
 
@@ -9578,7 +9501,7 @@
9578
9501
  };
9579
9502
 
9580
9503
  function createEl(tag, attrs) {
9581
- const el = fragment("<" + tag + ">");
9504
+ const el = fragment(`<${tag}>`);
9582
9505
  attr(el, attrs);
9583
9506
  return el;
9584
9507
  }
@@ -9592,7 +9515,7 @@
9592
9515
 
9593
9516
  computed: {
9594
9517
  toggles: {
9595
- get(_ref, $el) {let { toggle } = _ref;
9518
+ get({ toggle }, $el) {
9596
9519
  return $$(toggle, $el);
9597
9520
  },
9598
9521
 
@@ -9611,7 +9534,7 @@
9611
9534
  name: 'click',
9612
9535
 
9613
9536
  delegate() {
9614
- return this.toggle + ":not(.uk-disabled)";
9537
+ return `${this.toggle}:not(.uk-disabled)`;
9615
9538
  },
9616
9539
 
9617
9540
  handler(e) {
@@ -9627,7 +9550,7 @@
9627
9550
 
9628
9551
  if (isElement(index)) {
9629
9552
  const { source } = toItem(index);
9630
- index = findIndex(items, (_ref2) => {let { source: src } = _ref2;return source === src;});
9553
+ index = findIndex(items, ({ source: src }) => source === src);
9631
9554
  }
9632
9555
 
9633
9556
  this.panel = this.panel || this.$create('lightboxPanel', { ...this.$props, items });
@@ -9684,8 +9607,8 @@
9684
9607
  install,
9685
9608
 
9686
9609
  computed: {
9687
- marginProp(_ref) {let { pos } = _ref;
9688
- return "margin" + (startsWith(pos, 'top') ? 'Top' : 'Bottom');
9610
+ marginProp({ pos }) {
9611
+ return `margin${startsWith(pos, 'top') ? 'Top' : 'Bottom'}`;
9689
9612
  },
9690
9613
 
9691
9614
  startProps() {
@@ -9695,21 +9618,18 @@
9695
9618
 
9696
9619
  created() {
9697
9620
  const container =
9698
- $("." + this.clsContainer + "-" + this.pos, this.container) ||
9621
+ $(`.${this.clsContainer}-${this.pos}`, this.container) ||
9699
9622
  append(
9700
- this.container, "<div class=\"" +
9701
- this.clsContainer + " " + this.clsContainer + "-" + this.pos + "\" style=\"display: block\"></div>");
9623
+ this.container,
9624
+ `<div class="${this.clsContainer} ${this.clsContainer}-${this.pos}" style="display: block"></div>`);
9702
9625
 
9703
9626
 
9704
9627
  this.$mount(
9705
9628
  append(
9706
- container, "<div class=\"" +
9707
- this.clsMsg + (
9708
- this.status ? " " + this.clsMsg + "-" + this.status : '') + "\" role=\"alert\"> <a href class=\"" +
9709
-
9710
- this.clsClose + "\" data-uk-close></a> <div>" +
9711
- this.message + "</div> </div>"));
9712
-
9629
+ container,
9630
+ `<div class="${this.clsMsg}${
9631
+ this.status ? ` ${this.clsMsg}-${this.status}` : ''
9632
+ }" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`));
9713
9633
 
9714
9634
 
9715
9635
  },
@@ -9861,12 +9781,11 @@
9861
9781
  let transformFn;
9862
9782
 
9863
9783
  if (prop === 'x' || prop === 'y') {
9864
- prop = "translate" + ucfirst(prop);
9784
+ prop = `translate${ucfirst(prop)}`;
9865
9785
  transformFn = (stop) => toFloat(toFloat(stop).toFixed(unit === 'px' ? 0 : 6));
9866
9786
  } else if (prop === 'scale') {
9867
9787
  unit = '';
9868
- transformFn = (stop) =>
9869
- getUnit([stop]) ? toPx(stop, 'width', el, true) / el.offsetWidth : stop;
9788
+ transformFn = (stop) => getUnit([stop]) ? toPx(stop, 'width', el, true) / el.offsetWidth : stop;
9870
9789
  }
9871
9790
 
9872
9791
  if (stops.length === 1) {
@@ -9876,7 +9795,7 @@
9876
9795
  stops = parseStops(stops, transformFn);
9877
9796
 
9878
9797
  return (css, percent) => {
9879
- css.transform += " " + prop + "(" + getValue(stops, percent) + unit + ")";
9798
+ css.transform += ` ${prop}(${getValue(stops, percent)}${unit})`;
9880
9799
  };
9881
9800
  }
9882
9801
 
@@ -9895,7 +9814,7 @@
9895
9814
  return i === 3 ? toFloat(value) : parseInt(value, 10);
9896
9815
  }).
9897
9816
  join(',');
9898
- css[prop] = "rgba(" + value + ")";
9817
+ css[prop] = `rgba(${value})`;
9899
9818
  };
9900
9819
  }
9901
9820
 
@@ -9919,7 +9838,7 @@
9919
9838
 
9920
9839
  return (css, percent) => {
9921
9840
  const value = getValue(stops, percent);
9922
- css.filter += " " + prop + "(" + (value + unit) + ")";
9841
+ css.filter += ` ${prop}(${value + unit})`;
9923
9842
  };
9924
9843
  }
9925
9844
 
@@ -9947,7 +9866,7 @@
9947
9866
  return unit === '%' ? stop * length / 100 : stop;
9948
9867
  });
9949
9868
 
9950
- if (!stops.some((_ref) => {let [value] = _ref;return value;})) {
9869
+ if (!stops.some(([value]) => value)) {
9951
9870
  return noop;
9952
9871
  }
9953
9872
 
@@ -9999,13 +9918,13 @@
9999
9918
 
10000
9919
  const positions = {};
10001
9920
  for (const prop of bgProps) {
10002
- const values = props[prop].map((_ref2) => {let [value] = _ref2;return value;});
9921
+ const values = props[prop].map(([value]) => value);
10003
9922
  const min = Math.min(...values);
10004
9923
  const max = Math.max(...values);
10005
9924
  const down = values.indexOf(min) < values.indexOf(max);
10006
9925
  const diff = max - min;
10007
9926
 
10008
- positions[prop] = (down ? -diff : 0) - (down ? min : max) + "px";
9927
+ positions[prop] = `${(down ? -diff : 0) - (down ? min : max)}px`;
10009
9928
  dimEl[prop === 'bgy' ? 'height' : 'width'] += diff;
10010
9929
  }
10011
9930
 
@@ -10014,26 +9933,26 @@
10014
9933
  for (const prop of bgProps) {
10015
9934
  const attr = prop === 'bgy' ? 'height' : 'width';
10016
9935
  const overflow = dim[attr] - dimEl[attr];
10017
- positions[prop] = "max(" + getBackgroundPos(el, prop) + ",-" + overflow + "px) + " + positions[prop];
9936
+ positions[prop] = `max(${getBackgroundPos(el, prop)},-${overflow}px) + ${positions[prop]}`;
10018
9937
  }
10019
9938
 
10020
9939
  const fn = setBackgroundPosFn(bgProps, positions, props);
10021
9940
  return (css, percent) => {
10022
9941
  fn(css, percent);
10023
- css.backgroundSize = dim.width + "px " + dim.height + "px";
9942
+ css.backgroundSize = `${dim.width}px ${dim.height}px`;
10024
9943
  css.backgroundRepeat = 'no-repeat';
10025
9944
  };
10026
9945
  }
10027
9946
 
10028
9947
  function getBackgroundPos(el, prop) {
10029
- return getCssValue(el, "background-position-" + prop.substr(-1), '');
9948
+ return getCssValue(el, `background-position-${prop.substr(-1)}`, '');
10030
9949
  }
10031
9950
 
10032
9951
  function setBackgroundPosFn(bgProps, positions, props) {
10033
9952
  return function (css, percent) {
10034
9953
  for (const prop of bgProps) {
10035
9954
  const value = getValue(props[prop], percent);
10036
- css["background-position-" + prop.substr(-1)] = "calc(" + positions[prop] + " + " + value + "px)";
9955
+ css[`background-position-${prop.substr(-1)}`] = `calc(${positions[prop]} + ${value}px)`;
10037
9956
  }
10038
9957
  };
10039
9958
  }
@@ -10069,7 +9988,7 @@
10069
9988
  };
10070
9989
  }
10071
9990
 
10072
- function parseStops(stops, fn) {if (fn === void 0) {fn = toFloat;}
9991
+ function parseStops(stops, fn = toFloat) {
10073
9992
  const result = [];
10074
9993
  const { length } = stops;
10075
9994
  let nullIndex = 0;
@@ -10112,7 +10031,7 @@
10112
10031
  }
10113
10032
 
10114
10033
  function getStop(stops, percent) {
10115
- const index = findIndex(stops.slice(1), (_ref3) => {let [, targetPercent] = _ref3;return percent <= targetPercent;}) + 1;
10034
+ const index = findIndex(stops.slice(1), ([, targetPercent]) => percent <= targetPercent) + 1;
10116
10035
  return [
10117
10036
  stops[index - 1][0],
10118
10037
  stops[index][0],
@@ -10170,17 +10089,17 @@
10170
10089
  },
10171
10090
 
10172
10091
  computed: {
10173
- target(_ref, $el) {let { target } = _ref;
10092
+ target({ target }, $el) {
10174
10093
  return getOffsetElement(target && query(target, $el) || $el);
10175
10094
  },
10176
10095
 
10177
- start(_ref2) {let { start } = _ref2;
10096
+ start({ start }) {
10178
10097
  return toPx(start, 'height', this.target, true);
10179
10098
  },
10180
10099
 
10181
- end(_ref3) {let { end, viewport } = _ref3;
10100
+ end({ end, viewport }) {
10182
10101
  return toPx(
10183
- end || (viewport = (1 - viewport) * 100) && viewport + "vh+" + viewport + "%",
10102
+ end || (viewport = (1 - viewport) * 100) && `${viewport}vh+${viewport}%`,
10184
10103
  'height',
10185
10104
  this.target,
10186
10105
  true);
@@ -10193,7 +10112,7 @@
10193
10112
  },
10194
10113
 
10195
10114
  update: {
10196
- read(_ref4, types) {let { percent } = _ref4;
10115
+ read({ percent }, types) {
10197
10116
  if (!types.has('scroll')) {
10198
10117
  percent = false;
10199
10118
  }
@@ -10215,7 +10134,7 @@
10215
10134
  };
10216
10135
  },
10217
10136
 
10218
- write(_ref5) {let { style } = _ref5;
10137
+ write({ style }) {
10219
10138
  if (!this.matchMedia) {
10220
10139
  this.reset();
10221
10140
  return;
@@ -10280,7 +10199,7 @@
10280
10199
  }
10281
10200
  };
10282
10201
 
10283
- function Transitioner (prev, next, dir, _ref) {let { center, easing, list } = _ref;
10202
+ function Transitioner (prev, next, dir, { center, easing, list }) {
10284
10203
  const deferred = new Deferred();
10285
10204
 
10286
10205
  const from = prev ?
@@ -10293,7 +10212,7 @@
10293
10212
  return {
10294
10213
  dir,
10295
10214
 
10296
- show(duration, percent, linear) {if (percent === void 0) {percent = 0;}
10215
+ show(duration, percent = 0, linear) {
10297
10216
  const timing = linear ? 'linear' : easing;
10298
10217
  duration -= Math.round(duration * clamp(percent, -1, 1));
10299
10218
 
@@ -10327,7 +10246,7 @@
10327
10246
  css(list, 'transform', '');
10328
10247
  },
10329
10248
 
10330
- forward(duration, percent) {if (percent === void 0) {percent = this.percent();}
10249
+ forward(duration, percent = this.percent()) {
10331
10250
  Transition.cancel(list);
10332
10251
  return this.show(duration, percent, true);
10333
10252
  },
@@ -10365,7 +10284,7 @@
10365
10284
  dir * (isRtl ? -1 : 1) === -1 ^
10366
10285
  getElLeft(slide, list) > getElLeft(prev || next));
10367
10286
 
10368
- triggerUpdate(slide, "itemtranslate" + (translateIn ? 'in' : 'out'), {
10287
+ triggerUpdate(slide, `itemtranslate${translateIn ? 'in' : 'out'}`, {
10369
10288
  dir,
10370
10289
  percent: isOut ? 1 - percent : isIn ? percent : isActive ? 1 : 0
10371
10290
  });
@@ -10382,7 +10301,7 @@
10382
10301
  return Math.abs(to - from);
10383
10302
  },
10384
10303
 
10385
- getItemIn(out) {if (out === void 0) {out = false;}
10304
+ getItemIn(out = false) {
10386
10305
  let actives = this.getActives();
10387
10306
  let nextActives = inView(list, getLeft(next || prev, list, center));
10388
10307
 
@@ -10468,12 +10387,8 @@
10468
10387
  return getWidth(this.list) / this.length;
10469
10388
  },
10470
10389
 
10471
- finite(_ref) {let { finite } = _ref;
10472
- return (
10473
- finite ||
10474
- Math.ceil(getWidth(this.list)) <
10475
- Math.trunc(dimensions$1(this.list).width + getMaxElWidth(this.list) + this.center));
10476
-
10390
+ finite({ finite }) {
10391
+ return finite || isFinite(this.list, this.center);
10477
10392
  },
10478
10393
 
10479
10394
  maxIndex() {
@@ -10498,7 +10413,7 @@
10498
10413
  return ~index ? index : this.length - 1;
10499
10414
  },
10500
10415
 
10501
- sets(_ref2) {let { sets: enabled } = _ref2;
10416
+ sets({ sets: enabled }) {
10502
10417
  if (!enabled) {
10503
10418
  return;
10504
10419
  }
@@ -10506,7 +10421,7 @@
10506
10421
  let left = 0;
10507
10422
  const sets = [];
10508
10423
  const width = dimensions$1(this.list).width;
10509
- for (let i = 0; i < this.slides.length; i++) {
10424
+ for (let i = 0; i < this.length; i++) {
10510
10425
  const slideWidth = dimensions$1(this.slides[i]).width;
10511
10426
 
10512
10427
  if (left + slideWidth > width) {
@@ -10542,7 +10457,7 @@
10542
10457
  },
10543
10458
 
10544
10459
  connected() {
10545
- toggleClass(this.$el, this.clsContainer, !$("." + this.clsContainer, this.$el));
10460
+ toggleClass(this.$el, this.clsContainer, !$(`.${this.clsContainer}`, this.$el));
10546
10461
  },
10547
10462
 
10548
10463
  update: {
@@ -10626,8 +10541,7 @@
10626
10541
 
10627
10542
  const index = this.dir > 0 && this.slides[this.prevIndex] ? this.prevIndex : this.index;
10628
10543
 
10629
- this.slides.forEach((slide, i) =>
10630
- css(
10544
+ this.slides.forEach((slide, i) => css(
10631
10545
  slide,
10632
10546
  'order',
10633
10547
  this.dir > 0 && i < index ? 1 : this.dir < 0 && i >= this.index ? -1 : ''));
@@ -10663,7 +10577,7 @@
10663
10577
  }
10664
10578
  },
10665
10579
 
10666
- getValidIndex(index, prevIndex) {if (index === void 0) {index = this.index;}if (prevIndex === void 0) {prevIndex = this.prevIndex;}
10580
+ getValidIndex(index = this.index, prevIndex = this.prevIndex) {
10667
10581
  index = this.getIndex(index, prevIndex);
10668
10582
 
10669
10583
  if (!this.sets) {
@@ -10698,13 +10612,69 @@
10698
10612
  const slide = this.slides[this.getIndex(this.index + i + j++ * i)];
10699
10613
  currentLeft += dimensions$1(slide).width * i;
10700
10614
  slides.add(slide);
10701
- } while (this.slides.length > j && currentLeft > left && currentLeft < right);
10615
+ } while (this.length > j && currentLeft > left && currentLeft < right);
10702
10616
  }
10703
10617
  return Array.from(slides);
10704
10618
  }
10705
10619
  }
10706
10620
  };
10707
10621
 
10622
+ function isFinite(list, center) {
10623
+ const { length } = list;
10624
+
10625
+ if (length < 2) {
10626
+ return true;
10627
+ }
10628
+
10629
+ const { width: listWidth } = dimensions$1(list);
10630
+ if (!center) {
10631
+ return Math.ceil(getWidth(list)) < Math.trunc(listWidth + getMaxElWidth(list));
10632
+ }
10633
+
10634
+ const slides = children(list);
10635
+ const listHalf = Math.trunc(listWidth / 2);
10636
+ for (const index in slides) {
10637
+ const slide = slides[index];
10638
+ const slideWidth = dimensions$1(slide).width;
10639
+ const slidesInView = new Set([slide]);
10640
+
10641
+ let diff = 0;
10642
+ for (const i of [-1, 1]) {
10643
+ let left = slideWidth / 2;
10644
+
10645
+ let j = 0;
10646
+
10647
+ while (left < listHalf) {
10648
+ const nextSlide = slides[getIndex(+index + i + j++ * i, slides)];
10649
+
10650
+ if (slidesInView.has(nextSlide)) {
10651
+ return true;
10652
+ }
10653
+
10654
+ left += dimensions$1(nextSlide).width;
10655
+ slidesInView.add(nextSlide);
10656
+ }
10657
+ diff = Math.max(
10658
+ diff,
10659
+ slideWidth / 2 +
10660
+ dimensions$1(slides[getIndex(+index + i, slides)]).width / 2 - (
10661
+ left - listHalf));
10662
+
10663
+ }
10664
+
10665
+ if (
10666
+ diff > sumBy(
10667
+ slides.filter((slide) => !slidesInView.has(slide)),
10668
+ (slide) => dimensions$1(slide).width))
10669
+
10670
+ {
10671
+ return true;
10672
+ }
10673
+ }
10674
+
10675
+ return false;
10676
+ }
10677
+
10708
10678
  function getMaxElWidth(list) {
10709
10679
  return Math.max(0, ...children(list).map((el) => dimensions$1(el).width));
10710
10680
  }
@@ -10734,7 +10704,7 @@
10734
10704
  return this.item;
10735
10705
  },
10736
10706
 
10737
- handler(_ref) {let { type, detail: { percent, duration, timing, dir } } = _ref;
10707
+ handler({ type, detail: { percent, duration, timing, dir } }) {
10738
10708
  fastdom.read(() => {
10739
10709
  if (!this.matchMedia) {
10740
10710
  return;
@@ -10773,7 +10743,7 @@
10773
10743
  return this.item;
10774
10744
  },
10775
10745
 
10776
- handler(_ref2) {let { type, detail: { percent, dir } } = _ref2;
10746
+ handler({ type, detail: { percent, dir } }) {
10777
10747
  fastdom.read(() => {
10778
10748
  if (!this.matchMedia) {
10779
10749
  this.reset();
@@ -10932,7 +10902,7 @@
10932
10902
  return { height: height - boxModelAdjust(this.list, 'height', 'content-box') };
10933
10903
  },
10934
10904
 
10935
- write(_ref) {let { height } = _ref;
10905
+ write({ height }) {
10936
10906
  height > 0 && css(this.list, 'minHeight', height);
10937
10907
  },
10938
10908
 
@@ -11016,7 +10986,7 @@
11016
10986
  },
11017
10987
 
11018
10988
  handles: {
11019
- get(_ref, el) {let { handle } = _ref;
10989
+ get({ handle }, el) {
11020
10990
  return handle ? $$(handle, el) : this.items;
11021
10991
  },
11022
10992
 
@@ -11107,7 +11077,7 @@
11107
11077
  defaultPrevented ||
11108
11078
  button > 0 ||
11109
11079
  isInput(target) ||
11110
- within(target, "." + this.clsNoDrag) ||
11080
+ within(target, `.${this.clsNoDrag}`) ||
11111
11081
  this.handle && !within(target, this.handle))
11112
11082
  {
11113
11083
  return;
@@ -11381,7 +11351,7 @@
11381
11351
  },
11382
11352
 
11383
11353
  beforeConnect() {
11384
- this.id = "uk-tooltip-" + this._uid;
11354
+ this.id = `uk-tooltip-${this._uid}`;
11385
11355
  this._hasTitle = hasAttr(this.$el, 'title');
11386
11356
  attr(this.$el, {
11387
11357
  title: '',
@@ -11405,12 +11375,11 @@
11405
11375
  }
11406
11376
 
11407
11377
  this._unbind = once(
11408
- document, "keydown " +
11409
- pointerDown$1,
11378
+ document,
11379
+ `keydown ${pointerDown$1}`,
11410
11380
  this.hide,
11411
11381
  false,
11412
- (e) =>
11413
- e.type === pointerDown$1 && !within(e.target, this.$el) ||
11382
+ (e) => e.type === pointerDown$1 && !within(e.target, this.$el) ||
11414
11383
  e.type === 'keydown' && e.keyCode === 27);
11415
11384
 
11416
11385
 
@@ -11437,10 +11406,8 @@
11437
11406
 
11438
11407
  _show() {
11439
11408
  this.tooltip = append(
11440
- this.container, "<div id=\"" +
11441
- this.id + "\" class=\"uk-" + this.$options.name + "\" role=\"tooltip\"> <div class=\"uk-" +
11442
- this.$options.name + "-inner\">" + this.title + "</div> </div>");
11443
-
11409
+ this.container,
11410
+ `<div id="${this.id}" class="uk-${this.$options.name}" role="tooltip"> <div class="uk-${this.$options.name}-inner">${this.title}</div> </div>`);
11444
11411
 
11445
11412
 
11446
11413
  on(this.tooltip, 'toggled', (e, toggled) => {
@@ -11454,8 +11421,8 @@
11454
11421
 
11455
11422
  this.origin =
11456
11423
  this.axis === 'y' ?
11457
- flipPosition(dir) + "-" + align :
11458
- align + "-" + flipPosition(dir);
11424
+ `${flipPosition(dir)}-${align}` :
11425
+ `${align}-${flipPosition(dir)}`;
11459
11426
  });
11460
11427
 
11461
11428
  this.toggleElement(this.tooltip, true);
@@ -11466,7 +11433,7 @@
11466
11433
  focus: 'show',
11467
11434
  blur: 'hide',
11468
11435
 
11469
- [pointerEnter + " " + pointerLeave](e) {
11436
+ [`${pointerEnter} ${pointerLeave}`](e) {
11470
11437
  if (!isTouch(e)) {
11471
11438
  this[e.type === pointerEnter ? 'show' : 'hide']();
11472
11439
  }
@@ -11488,7 +11455,7 @@
11488
11455
  }
11489
11456
  }
11490
11457
 
11491
- function getAlignment(el, target, _ref) {let [dir, align] = _ref;
11458
+ function getAlignment(el, target, [dir, align]) {
11492
11459
  const elOffset = offset(el);
11493
11460
  const targetOffset = offset(target);
11494
11461
  const properties = [
@@ -11687,12 +11654,12 @@
11687
11654
 
11688
11655
  function match(pattern, path) {
11689
11656
  return path.match(
11690
- new RegExp("^" +
11691
- pattern.
11692
- replace(/\//g, '\\/').
11693
- replace(/\*\*/g, '(\\/[^\\/]+)*').
11694
- replace(/\*/g, '[^\\/]+').
11695
- replace(/((?!\\))\?/g, '$1.') + "$",
11657
+ new RegExp(
11658
+ `^${pattern.
11659
+ replace(/\//g, '\\/').
11660
+ replace(/\*\*/g, '(\\/[^\\/]+)*').
11661
+ replace(/\*/g, '[^\\/]+').
11662
+ replace(/((?!\\))\?/g, '$1.')}$`,
11696
11663
  'i'));
11697
11664
 
11698
11665