uikit 3.23.0 → 3.23.2-dev.9faffa230

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 (78) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/dist/css/uikit-core-rtl.css +3 -2
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +3 -2
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +3 -2
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +3 -2
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +85 -84
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +10 -10
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +11 -11
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +2 -2
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +10 -10
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +10 -10
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +12 -12
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +10 -10
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +16 -16
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +84 -83
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +5 -5
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +3 -3
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +55 -56
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +152 -151
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +3 -3
  43. package/src/images/components/drop-parent-icon.svg +2 -2
  44. package/src/images/components/marker.svg +2 -2
  45. package/src/images/components/nav-parent-icon.svg +2 -2
  46. package/src/images/components/navbar-parent-icon.svg +2 -2
  47. package/src/images/components/slidenav-next-large.svg +3 -3
  48. package/src/images/components/slidenav-next.svg +3 -3
  49. package/src/images/components/slidenav-previous-large.svg +3 -3
  50. package/src/images/components/slidenav-previous.svg +3 -3
  51. package/src/images/components/totop.svg +1 -1
  52. package/src/images/icons/chevron-double-left.svg +2 -2
  53. package/src/images/icons/chevron-double-right.svg +2 -2
  54. package/src/images/icons/discord.svg +1 -1
  55. package/src/images/icons/etsy.svg +1 -1
  56. package/src/images/icons/git-branch.svg +5 -5
  57. package/src/images/icons/git-fork.svg +5 -5
  58. package/src/images/icons/instagram.svg +3 -3
  59. package/src/images/icons/list.svg +6 -6
  60. package/src/images/icons/mastodon.svg +2 -2
  61. package/src/images/icons/move.svg +4 -4
  62. package/src/images/icons/signal.svg +2 -2
  63. package/src/images/icons/social.svg +5 -5
  64. package/src/images/icons/soundcloud.svg +4 -4
  65. package/src/images/icons/telegram.svg +2 -2
  66. package/src/images/icons/threads.svg +2 -2
  67. package/src/images/icons/tripadvisor.svg +1 -1
  68. package/src/images/icons/tumblr.svg +1 -1
  69. package/src/images/icons/twitch.svg +3 -3
  70. package/src/images/icons/vimeo.svg +1 -1
  71. package/src/images/icons/x.svg +2 -2
  72. package/src/images/icons/yelp.svg +1 -1
  73. package/src/images/icons/yootheme.svg +2 -2
  74. package/src/js/core/height-viewport.js +2 -2
  75. package/src/js/core/margin.js +0 -1
  76. package/src/js/mixin/internal/animate-fade.js +4 -3
  77. package/src/less/components/visibility.less +3 -1
  78. package/src/scss/components/visibility.scss +3 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.23.0 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
1
+ /*! UIkit 3.23.2-dev.9faffa230 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -19,19 +19,19 @@
19
19
  const ucfirst = memoize((str) => str.charAt(0).toUpperCase() + str.slice(1));
20
20
  function startsWith(str, search) {
21
21
  var _a;
22
- return (_a = str == null ? undefined : str.startsWith) == null ? undefined : _a.call(str, search);
22
+ return (_a = str == null ? void 0 : str.startsWith) == null ? void 0 : _a.call(str, search);
23
23
  }
24
24
  function endsWith(str, search) {
25
25
  var _a;
26
- return (_a = str == null ? undefined : str.endsWith) == null ? undefined : _a.call(str, search);
26
+ return (_a = str == null ? void 0 : str.endsWith) == null ? void 0 : _a.call(str, search);
27
27
  }
28
28
  function includes(obj, search) {
29
29
  var _a;
30
- return (_a = obj == null ? undefined : obj.includes) == null ? undefined : _a.call(obj, search);
30
+ return (_a = obj == null ? void 0 : obj.includes) == null ? void 0 : _a.call(obj, search);
31
31
  }
32
32
  function findIndex(array, predicate) {
33
33
  var _a;
34
- return (_a = array == null ? undefined : array.findIndex) == null ? undefined : _a.call(array, predicate);
34
+ return (_a = array == null ? void 0 : array.findIndex) == null ? void 0 : _a.call(array, predicate);
35
35
  }
36
36
  const { isArray, from: toArray } = Array;
37
37
  const { assign } = Object;
@@ -75,7 +75,7 @@
75
75
  return !(isArray(obj) ? obj.length : isObject(obj) ? Object.keys(obj).length : false);
76
76
  }
77
77
  function isUndefined(value) {
78
- return value === undefined;
78
+ return value === void 0;
79
79
  }
80
80
  function toBoolean(value) {
81
81
  return isBoolean(value) ? value : value === "true" || value === "1" || value === "" ? true : value === "false" || value === "0" ? false : value;
@@ -98,8 +98,8 @@
98
98
  return element;
99
99
  }
100
100
  element = toNode(element);
101
- const document = isDocument(element) ? element : element == null ? undefined : element.ownerDocument;
102
- return (document == null ? undefined : document.defaultView) || window;
101
+ const document = isDocument(element) ? element : element == null ? void 0 : element.ownerDocument;
102
+ return (document == null ? void 0 : document.defaultView) || window;
103
103
  }
104
104
  function isEqual(value, other) {
105
105
  return value === other || isObject(value) && isObject(other) && Object.keys(value).length === Object.keys(other).length && each(value, (val, key) => val === other[key]);
@@ -242,7 +242,7 @@
242
242
  return;
243
243
  }
244
244
  if (isUndefined(value)) {
245
- return (_a = toNode(element)) == null ? undefined : _a.getAttribute(name);
245
+ return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);
246
246
  } else {
247
247
  for (const el of toNodes(element)) {
248
248
  if (isFunction(value)) {
@@ -317,7 +317,7 @@
317
317
  }
318
318
  function parent(element) {
319
319
  var _a;
320
- return (_a = toNode(element)) == null ? undefined : _a.parentElement;
320
+ return (_a = toNode(element)) == null ? void 0 : _a.parentElement;
321
321
  }
322
322
  function filter(element, selector) {
323
323
  return toNodes(element).filter((element2) => matches(element2, selector));
@@ -472,7 +472,7 @@
472
472
  if (listener.length > 1) {
473
473
  listener = detail(listener);
474
474
  }
475
- if (useCapture == null ? undefined : useCapture.self) {
475
+ if (useCapture == null ? void 0 : useCapture.self) {
476
476
  listener = selfFilter(listener);
477
477
  }
478
478
  if (selector) {
@@ -565,7 +565,7 @@
565
565
  }
566
566
  function getEventPos(e) {
567
567
  var _a, _b;
568
- const { clientX: x, clientY: y } = ((_a = e.touches) == null ? undefined : _a[0]) || ((_b = e.changedTouches) == null ? undefined : _b[0]) || e;
568
+ const { clientX: x, clientY: y } = ((_a = e.touches) == null ? void 0 : _a[0]) || ((_b = e.changedTouches) == null ? void 0 : _b[0]) || e;
569
569
  return { x, y };
570
570
  }
571
571
 
@@ -741,7 +741,7 @@
741
741
  function isTag(element, ...tagNames) {
742
742
  return tagNames.some((tagName) => {
743
743
  var _a;
744
- return ((_a = element == null ? undefined : element.tagName) == null ? undefined : _a.toLowerCase()) === tagName.toLowerCase();
744
+ return ((_a = element == null ? void 0 : element.tagName) == null ? void 0 : _a.toLowerCase()) === tagName.toLowerCase();
745
745
  });
746
746
  }
747
747
  function empty(element) {
@@ -762,7 +762,7 @@
762
762
  return function(ref, element) {
763
763
  var _a;
764
764
  const nodes = toNodes(isString(element) ? fragment(element) : element);
765
- (_a = $(ref)) == null ? undefined : _a[fn](...nodes);
765
+ (_a = $(ref)) == null ? void 0 : _a[fn](...nodes);
766
766
  return unwrapSingle(nodes);
767
767
  };
768
768
  }
@@ -1037,7 +1037,7 @@
1037
1037
  }
1038
1038
  cancel() {
1039
1039
  var _a;
1040
- (_a = this.unbind) == null ? undefined : _a.call(this);
1040
+ (_a = this.unbind) == null ? void 0 : _a.call(this);
1041
1041
  clearInterval(this.interval);
1042
1042
  }
1043
1043
  movesTo(target) {
@@ -1829,7 +1829,7 @@
1829
1829
  on(
1830
1830
  el ? el.call(instance, instance) : instance.$el,
1831
1831
  name,
1832
- delegate == null ? undefined : delegate.call(instance, instance),
1832
+ delegate == null ? void 0 : delegate.call(instance, instance),
1833
1833
  handler.bind(instance),
1834
1834
  {
1835
1835
  passive,
@@ -2068,7 +2068,7 @@
2068
2068
 
2069
2069
  function callHook(instance, hook) {
2070
2070
  var _a;
2071
- (_a = instance.$options[hook]) == null ? undefined : _a.forEach((handler) => handler.call(instance));
2071
+ (_a = instance.$options[hook]) == null ? void 0 : _a.forEach((handler) => handler.call(instance));
2072
2072
  }
2073
2073
  function callConnected(instance) {
2074
2074
  if (instance._connected) {
@@ -2152,7 +2152,7 @@
2152
2152
  };
2153
2153
  App.util = util;
2154
2154
  App.options = {};
2155
- App.version = "3.23.0";
2155
+ App.version = "3.23.2-dev.9faffa230";
2156
2156
 
2157
2157
  const PREFIX = "uk-";
2158
2158
  const DATA = "__uikit__";
@@ -2171,7 +2171,7 @@
2171
2171
  const opt = (_a = options.options) != null ? _a : { ...options };
2172
2172
  opt.id = id;
2173
2173
  opt.name = name;
2174
- (_b = opt.install) == null ? undefined : _b.call(opt, App, opt, name);
2174
+ (_b = opt.install) == null ? void 0 : _b.call(opt, App, opt, name);
2175
2175
  if (App._initialized && !opt.functional) {
2176
2176
  requestAnimationFrame(() => createComponent(name, `[${id}],[data-${id}]`));
2177
2177
  }
@@ -2193,7 +2193,7 @@
2193
2193
  }
2194
2194
  }
2195
2195
  function getComponents(element) {
2196
- return (element == null ? undefined : element[DATA]) || {};
2196
+ return (element == null ? void 0 : element[DATA]) || {};
2197
2197
  }
2198
2198
  function getComponent(element, name) {
2199
2199
  return getComponents(element)[name];
@@ -2252,7 +2252,7 @@
2252
2252
  if (hasAttr(target, attributeName)) {
2253
2253
  createComponent(name, target);
2254
2254
  } else {
2255
- (_a = getComponent(target, name)) == null ? undefined : _a.$destroy();
2255
+ (_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();
2256
2256
  }
2257
2257
  }
2258
2258
  }
@@ -2379,7 +2379,7 @@
2379
2379
  }
2380
2380
  let id = 1;
2381
2381
  function generateId(instance, el = null) {
2382
- return (el == null ? undefined : el.id) || `${instance.$options.id}-${id++}`;
2382
+ return (el == null ? void 0 : el.id) || `${instance.$options.id}-${id++}`;
2383
2383
  }
2384
2384
 
2385
2385
  globalApi(App);
@@ -2619,7 +2619,7 @@
2619
2619
  let changed;
2620
2620
  if (this.cls) {
2621
2621
  changed = includes(this.cls, " ") || toggled !== hasClass(el, this.cls);
2622
- changed && toggleClass(el, this.cls, includes(this.cls, " ") ? undefined : toggled);
2622
+ changed && toggleClass(el, this.cls, includes(this.cls, " ") ? void 0 : toggled);
2623
2623
  } else {
2624
2624
  changed = toggled === el.hidden;
2625
2625
  changed && (el.hidden = !toggled);
@@ -2637,7 +2637,7 @@
2637
2637
  }
2638
2638
  async function toggleTransition(el, show, { animation, duration, velocity, transition, _toggle }) {
2639
2639
  var _a;
2640
- const [mode = "reveal", startProp = "top"] = ((_a = animation[0]) == null ? undefined : _a.split("-")) || [];
2640
+ const [mode = "reveal", startProp = "top"] = ((_a = animation[0]) == null ? void 0 : _a.split("-")) || [];
2641
2641
  const dirs = [
2642
2642
  ["left", "right"],
2643
2643
  ["top", "bottom"]
@@ -2777,7 +2777,7 @@
2777
2777
  contents({ content }) {
2778
2778
  return this.items.map((item) => {
2779
2779
  var _a;
2780
- return ((_a = item._wrapper) == null ? undefined : _a.firstElementChild) || $(content, item);
2780
+ return ((_a = item._wrapper) == null ? void 0 : _a.firstElementChild) || $(content, item);
2781
2781
  });
2782
2782
  }
2783
2783
  },
@@ -2816,7 +2816,7 @@
2816
2816
  return;
2817
2817
  }
2818
2818
  e.preventDefault();
2819
- (_a = this._off) == null ? undefined : _a.call(this);
2819
+ (_a = this._off) == null ? void 0 : _a.call(this);
2820
2820
  this._off = keepScrollPosition(e.target);
2821
2821
  await this.toggle(index(this.toggles, e.current));
2822
2822
  this._off();
@@ -2885,7 +2885,7 @@
2885
2885
  }
2886
2886
  async function transition(el, show, { content, duration, velocity, transition: transition2 }) {
2887
2887
  var _a;
2888
- content = ((_a = el._wrapper) == null ? undefined : _a.firstElementChild) || $(content, el);
2888
+ content = ((_a = el._wrapper) == null ? void 0 : _a.firstElementChild) || $(content, el);
2889
2889
  if (!el._wrapper) {
2890
2890
  el._wrapper = wrapAll(content, "<div>");
2891
2891
  }
@@ -3278,7 +3278,7 @@
3278
3278
  if (this.isToggled()) {
3279
3279
  this.hide(false);
3280
3280
  } else {
3281
- this.show(toggle == null ? undefined : toggle.$el, false);
3281
+ this.show(toggle == null ? void 0 : toggle.$el, false);
3282
3282
  }
3283
3283
  }
3284
3284
  },
@@ -3287,7 +3287,7 @@
3287
3287
  self: true,
3288
3288
  handler(e, toggle) {
3289
3289
  e.preventDefault();
3290
- this.show(toggle == null ? undefined : toggle.$el);
3290
+ this.show(toggle == null ? void 0 : toggle.$el);
3291
3291
  }
3292
3292
  },
3293
3293
  {
@@ -3526,7 +3526,7 @@
3526
3526
  `${pointerUp} ${pointerCancel} scroll`,
3527
3527
  ({ defaultPrevented, type, target: newTarget }) => {
3528
3528
  var _a;
3529
- if (!defaultPrevented && type === pointerUp && target === newTarget && !((_a = drop.targetEl) == null ? undefined : _a.contains(target))) {
3529
+ if (!defaultPrevented && type === pointerUp && target === newTarget && !((_a = drop.targetEl) == null ? void 0 : _a.contains(target))) {
3530
3530
  drop.hide(false);
3531
3531
  }
3532
3532
  },
@@ -3584,7 +3584,7 @@
3584
3584
  const dropdowns = $$(`.${clsDrop}`, $el);
3585
3585
  if (this.dropContainer !== $el) {
3586
3586
  for (const el of $$(`.${clsDrop}`, this.dropContainer)) {
3587
- const target = (_a = this.getDropdown(el)) == null ? undefined : _a.targetEl;
3587
+ const target = (_a = this.getDropdown(el)) == null ? void 0 : _a.targetEl;
3588
3588
  if (!includes(dropdowns, el) && target && this.$el.contains(target)) {
3589
3589
  dropdowns.push(el);
3590
3590
  }
@@ -3637,14 +3637,14 @@
3637
3637
  const { current, keyCode } = e;
3638
3638
  const active2 = this.getActive();
3639
3639
  if (keyCode === keyMap.DOWN) {
3640
- if ((active2 == null ? undefined : active2.targetEl) === current) {
3640
+ if ((active2 == null ? void 0 : active2.targetEl) === current) {
3641
3641
  e.preventDefault();
3642
- (_a = $(selFocusable, active2.$el)) == null ? undefined : _a.focus();
3642
+ (_a = $(selFocusable, active2.$el)) == null ? void 0 : _a.focus();
3643
3643
  } else {
3644
3644
  const dropdown = this.dropdowns.find(
3645
3645
  (el) => {
3646
3646
  var _a2;
3647
- return ((_a2 = this.getDropdown(el)) == null ? undefined : _a2.targetEl) === current;
3647
+ return ((_a2 = this.getDropdown(el)) == null ? void 0 : _a2.targetEl) === current;
3648
3648
  }
3649
3649
  );
3650
3650
  if (dropdown) {
@@ -3652,7 +3652,7 @@
3652
3652
  current.click();
3653
3653
  once(dropdown, "show", (e2) => {
3654
3654
  var _a2;
3655
- return (_a2 = $(selFocusable, e2.target)) == null ? undefined : _a2.focus();
3655
+ return (_a2 = $(selFocusable, e2.target)) == null ? void 0 : _a2.focus();
3656
3656
  });
3657
3657
  }
3658
3658
  }
@@ -3681,7 +3681,7 @@
3681
3681
  } else if (keyCode === keyMap.DOWN) {
3682
3682
  next = "next";
3683
3683
  } else if (keyCode === keyMap.ESC) {
3684
- (_a = active2.targetEl) == null ? undefined : _a.focus();
3684
+ (_a = active2.targetEl) == null ? void 0 : _a.focus();
3685
3685
  }
3686
3686
  if (~next) {
3687
3687
  e.preventDefault();
@@ -3767,7 +3767,7 @@
3767
3767
  if (!this.isDropbarDrop(target)) {
3768
3768
  return;
3769
3769
  }
3770
- (_a = this._observer) == null ? undefined : _a.disconnect();
3770
+ (_a = this._observer) == null ? void 0 : _a.disconnect();
3771
3771
  const active2 = this.getActive();
3772
3772
  if (!active2 || active2.$el === target) {
3773
3773
  this.transitionTo(0);
@@ -3778,7 +3778,7 @@
3778
3778
  methods: {
3779
3779
  getActive() {
3780
3780
  var _a;
3781
- return includes(this.dropdowns, (_a = active$1) == null ? undefined : _a.$el) && active$1;
3781
+ return includes(this.dropdowns, (_a = active$1) == null ? void 0 : _a.$el) && active$1;
3782
3782
  },
3783
3783
  async transitionTo(newHeight, el) {
3784
3784
  const { dropbar } = this;
@@ -3841,12 +3841,12 @@
3841
3841
  } else if (keyCode === keyMap.RIGHT) {
3842
3842
  next = "next";
3843
3843
  } else if (keyCode === keyMap.TAB) {
3844
- (_a = active2.targetEl) == null ? undefined : _a.focus();
3845
- (_b = active2.hide) == null ? undefined : _b.call(active2, false);
3844
+ (_a = active2.targetEl) == null ? void 0 : _a.focus();
3845
+ (_b = active2.hide) == null ? void 0 : _b.call(active2, false);
3846
3846
  }
3847
3847
  if (~next) {
3848
3848
  e.preventDefault();
3849
- (_c = active2.hide) == null ? undefined : _c.call(active2, false);
3849
+ (_c = active2.hide) == null ? void 0 : _c.call(active2, false);
3850
3850
  toggles[getIndex(next, toggles, toggles.indexOf(active2.targetEl || current))].focus();
3851
3851
  }
3852
3852
  }
@@ -3878,7 +3878,7 @@
3878
3878
  let option;
3879
3879
  const prop = isInput(target) ? "value" : "textContent";
3880
3880
  const prev = target[prop];
3881
- const value = ((_a = input.files) == null ? undefined : _a[0]) ? input.files[0].name : matches(input, "select") && (option = $$("option", input).filter((el) => el.selected)[0]) ? option.textContent : input.value;
3881
+ const value = ((_a = input.files) == null ? void 0 : _a[0]) ? input.files[0].name : matches(input, "select") && (option = $$("option", input).filter((el) => el.selected)[0]) ? option.textContent : input.value;
3882
3882
  if (prev !== value) {
3883
3883
  target[prop] = value;
3884
3884
  }
@@ -3919,8 +3919,7 @@
3919
3919
  options: {
3920
3920
  attributes: true,
3921
3921
  attributeFilter: ["style"]
3922
- },
3923
- target: ({ $el }) => [$el, ...children($el)]
3922
+ }
3924
3923
  }),
3925
3924
  resize({
3926
3925
  target: ({ $el }) => [$el, ...children($el)]
@@ -4243,14 +4242,14 @@
4243
4242
  expand: Boolean,
4244
4243
  offsetTop: Boolean,
4245
4244
  offsetBottom: Boolean,
4246
- minHeight: Number,
4245
+ min: Number,
4247
4246
  property: String
4248
4247
  },
4249
4248
  data: {
4250
4249
  expand: false,
4251
4250
  offsetTop: false,
4252
4251
  offsetBottom: false,
4253
- minHeight: 0,
4252
+ min: 0,
4254
4253
  property: "min-height"
4255
4254
  },
4256
4255
  // check for offsetTop change
@@ -4356,7 +4355,7 @@
4356
4355
  t(key, ...params) {
4357
4356
  var _a, _b, _c;
4358
4357
  let i = 0;
4359
- return ((_c = ((_a = this.i18n) == null ? undefined : _a[key]) || ((_b = this.$options.i18n) == null ? undefined : _b[key])) == null ? undefined : _c.replace(
4358
+ return ((_c = ((_a = this.i18n) == null ? void 0 : _a[key]) || ((_b = this.$options.i18n) == null ? void 0 : _b[key])) == null ? void 0 : _c.replace(
4360
4359
  /%s/g,
4361
4360
  () => params[i++] || ""
4362
4361
  )) || "";
@@ -4880,7 +4879,7 @@
4880
4879
  },
4881
4880
  disconnected() {
4882
4881
  var _a;
4883
- (_a = this.offMediaObj) == null ? undefined : _a.call(this);
4882
+ (_a = this.offMediaObj) == null ? void 0 : _a.call(this);
4884
4883
  }
4885
4884
  };
4886
4885
  function toMedia(value, element) {
@@ -5081,7 +5080,7 @@
5081
5080
  return new Promise(
5082
5081
  (resolve, reject) => once(el, "show hide", () => {
5083
5082
  var _a;
5084
- (_a = el._reject) == null ? undefined : _a.call(el);
5083
+ (_a = el._reject) == null ? void 0 : _a.call(el);
5085
5084
  el._reject = reject;
5086
5085
  _toggle(el, show);
5087
5086
  const off = once(
@@ -5234,7 +5233,7 @@
5234
5233
  bgClose: false,
5235
5234
  escClose: true,
5236
5235
  ...options,
5237
- i18n: { ...modal.i18n, ...options == null ? undefined : options.i18n }
5236
+ i18n: { ...modal.i18n, ...options == null ? void 0 : options.i18n }
5238
5237
  };
5239
5238
  const dialog = modal.dialog(tmpl(options), options);
5240
5239
  return assign(
@@ -5584,7 +5583,7 @@
5584
5583
  },
5585
5584
  disconnected() {
5586
5585
  for (const [el, state] of this.elementData.entries()) {
5587
- removeClass(el, clsInView, (state == null ? undefined : state.cls) || "");
5586
+ removeClass(el, clsInView, (state == null ? void 0 : state.cls) || "");
5588
5587
  }
5589
5588
  delete this.elementData;
5590
5589
  },
@@ -5632,11 +5631,11 @@
5632
5631
  methods: {
5633
5632
  toggle(el, inview) {
5634
5633
  var _a, _b;
5635
- const state = (_a = this.elementData) == null ? undefined : _a.get(el);
5634
+ const state = (_a = this.elementData) == null ? void 0 : _a.get(el);
5636
5635
  if (!state) {
5637
5636
  return;
5638
5637
  }
5639
- (_b = state.off) == null ? undefined : _b.call(state);
5638
+ (_b = state.off) == null ? void 0 : _b.call(state);
5640
5639
  css(el, "opacity", !inview && this.hidden ? 0 : "");
5641
5640
  toggleClass(el, clsInView, inview);
5642
5641
  toggleClass(el, state.cls);
@@ -6064,7 +6063,7 @@
6064
6063
  return propOffset + toPx(value, "height", el, true);
6065
6064
  } else {
6066
6065
  const refElement = value === true ? getVisibleParent(el) : query(value, el);
6067
- return offset(refElement).bottom - (padding && (refElement == null ? undefined : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) + toFloat(css(refElement, "borderBottomWidth")) : 0);
6066
+ return offset(refElement).bottom - (padding && (refElement == null ? void 0 : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) + toFloat(css(refElement, "borderBottomWidth")) : 0);
6068
6067
  }
6069
6068
  }
6070
6069
  function coerce(value) {
@@ -6097,7 +6096,7 @@
6097
6096
  return isVisible(el) ? Math.ceil(
6098
6097
  Math.max(0, ...$$("[stroke]", el).map((stroke) => {
6099
6098
  var _a;
6100
- return ((_a = stroke.getTotalLength) == null ? undefined : _a.call(stroke)) || 0;
6099
+ return ((_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke)) || 0;
6101
6100
  }))
6102
6101
  ) : 0;
6103
6102
  }
@@ -6308,7 +6307,7 @@
6308
6307
  attr(children(this.$el), "role", "presentation");
6309
6308
  for (const index in this.toggles) {
6310
6309
  const toggle = this.toggles[index];
6311
- const item = (_a = this.connects[0]) == null ? undefined : _a.children[index];
6310
+ const item = (_a = this.connects[0]) == null ? void 0 : _a.children[index];
6312
6311
  attr(toggle, "role", "tab");
6313
6312
  if (!item) {
6314
6313
  continue;