uikit 3.23.0 → 3.23.2-dev.a2b266b69

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 (76) hide show
  1. package/CHANGELOG.md +7 -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 +3 -4
  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 +2 -3
  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 +53 -54
  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 +68 -69
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +2 -2
  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/margin.js +0 -1
  75. package/src/less/components/visibility.less +3 -1
  76. package/src/scss/components/visibility.scss +3 -1
package/dist/js/uikit.js CHANGED
@@ -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.a2b266b69 | 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$1(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) {
@@ -2030,8 +2030,7 @@
2030
2030
  options: {
2031
2031
  attributes: true,
2032
2032
  attributeFilter: ["style"]
2033
- },
2034
- target: ({ $el }) => [$el, ...children($el)]
2033
+ }
2035
2034
  }),
2036
2035
  resize({
2037
2036
  target: ({ $el }) => [$el, ...children($el)]
@@ -2442,7 +2441,7 @@
2442
2441
  }
2443
2442
  function sortItems(nodes, sort, order) {
2444
2443
  return [...nodes].sort(
2445
- (a, b) => data(a, sort).localeCompare(data(b, sort), undefined, { numeric: true }) * (order === "asc" || -1)
2444
+ (a, b) => data(a, sort).localeCompare(data(b, sort), void 0, { numeric: true }) * (order === "asc" || -1)
2446
2445
  );
2447
2446
  }
2448
2447
  function findButton(el) {
@@ -2775,7 +2774,7 @@
2775
2774
  let changed;
2776
2775
  if (this.cls) {
2777
2776
  changed = includes(this.cls, " ") || toggled !== hasClass(el, this.cls);
2778
- changed && toggleClass(el, this.cls, includes(this.cls, " ") ? undefined : toggled);
2777
+ changed && toggleClass(el, this.cls, includes(this.cls, " ") ? void 0 : toggled);
2779
2778
  } else {
2780
2779
  changed = toggled === el.hidden;
2781
2780
  changed && (el.hidden = !toggled);
@@ -2793,7 +2792,7 @@
2793
2792
  }
2794
2793
  async function toggleTransition(el, show, { animation, duration, velocity, transition, _toggle }) {
2795
2794
  var _a;
2796
- const [mode = "reveal", startProp = "top"] = ((_a = animation[0]) == null ? undefined : _a.split("-")) || [];
2795
+ const [mode = "reveal", startProp = "top"] = ((_a = animation[0]) == null ? void 0 : _a.split("-")) || [];
2797
2796
  const dirs = [
2798
2797
  ["left", "right"],
2799
2798
  ["top", "bottom"]
@@ -3039,7 +3038,7 @@
3039
3038
  return new Promise(
3040
3039
  (resolve, reject) => once(el, "show hide", () => {
3041
3040
  var _a;
3042
- (_a = el._reject) == null ? undefined : _a.call(el);
3041
+ (_a = el._reject) == null ? void 0 : _a.call(el);
3043
3042
  el._reject = reject;
3044
3043
  _toggle(el, show);
3045
3044
  const off = once(
@@ -3166,7 +3165,7 @@
3166
3165
  return percent(prev || next, next, dir);
3167
3166
  },
3168
3167
  getDistance() {
3169
- return prev == null ? undefined : prev.offsetWidth;
3168
+ return prev == null ? void 0 : prev.offsetWidth;
3170
3169
  }
3171
3170
  };
3172
3171
  }
@@ -3189,7 +3188,7 @@
3189
3188
  t(key, ...params) {
3190
3189
  var _a, _b, _c;
3191
3190
  let i = 0;
3192
- return ((_c = ((_a = this.i18n) == null ? undefined : _a[key]) || ((_b = this.$options.i18n) == null ? undefined : _b[key])) == null ? undefined : _c.replace(
3191
+ return ((_c = ((_a = this.i18n) == null ? void 0 : _a[key]) || ((_b = this.$options.i18n) == null ? void 0 : _b[key])) == null ? void 0 : _c.replace(
3193
3192
  /%s/g,
3194
3193
  () => params[i++] || ""
3195
3194
  )) || "";
@@ -3505,7 +3504,7 @@
3505
3504
  on(
3506
3505
  el ? el.call(instance, instance) : instance.$el,
3507
3506
  name,
3508
- delegate == null ? undefined : delegate.call(instance, instance),
3507
+ delegate == null ? void 0 : delegate.call(instance, instance),
3509
3508
  handler.bind(instance),
3510
3509
  {
3511
3510
  passive,
@@ -3637,7 +3636,7 @@
3637
3636
 
3638
3637
  function callHook(instance, hook) {
3639
3638
  var _a;
3640
- (_a = instance.$options[hook]) == null ? undefined : _a.forEach((handler) => handler.call(instance));
3639
+ (_a = instance.$options[hook]) == null ? void 0 : _a.forEach((handler) => handler.call(instance));
3641
3640
  }
3642
3641
  function callConnected(instance) {
3643
3642
  if (instance._connected) {
@@ -3721,7 +3720,7 @@
3721
3720
  };
3722
3721
  App.util = util;
3723
3722
  App.options = {};
3724
- App.version = "3.23.0";
3723
+ App.version = "3.23.2-dev.a2b266b69";
3725
3724
 
3726
3725
  const PREFIX = "uk-";
3727
3726
  const DATA = "__uikit__";
@@ -3740,7 +3739,7 @@
3740
3739
  const opt = (_a = options.options) != null ? _a : { ...options };
3741
3740
  opt.id = id;
3742
3741
  opt.name = name;
3743
- (_b = opt.install) == null ? undefined : _b.call(opt, App, opt, name);
3742
+ (_b = opt.install) == null ? void 0 : _b.call(opt, App, opt, name);
3744
3743
  if (App._initialized && !opt.functional) {
3745
3744
  requestAnimationFrame(() => createComponent(name, `[${id}],[data-${id}]`));
3746
3745
  }
@@ -3762,7 +3761,7 @@
3762
3761
  }
3763
3762
  }
3764
3763
  function getComponents(element) {
3765
- return (element == null ? undefined : element[DATA]) || {};
3764
+ return (element == null ? void 0 : element[DATA]) || {};
3766
3765
  }
3767
3766
  function getComponent(element, name) {
3768
3767
  return getComponents(element)[name];
@@ -3879,7 +3878,7 @@
3879
3878
  }
3880
3879
  let id = 1;
3881
3880
  function generateId(instance, el = null) {
3882
- return (el == null ? undefined : el.id) || `${instance.$options.id}-${id++}`;
3881
+ return (el == null ? void 0 : el.id) || `${instance.$options.id}-${id++}`;
3883
3882
  }
3884
3883
 
3885
3884
  var SliderNav = {
@@ -4145,7 +4144,7 @@
4145
4144
  stack[force ? "unshift" : "push"](index);
4146
4145
  if (!force && stack.length > 1) {
4147
4146
  if (stack.length === 2) {
4148
- (_a = this._transitioner) == null ? undefined : _a.forward(Math.min(this.duration, 200));
4147
+ (_a = this._transitioner) == null ? void 0 : _a.forward(Math.min(this.duration, 200));
4149
4148
  }
4150
4149
  return;
4151
4150
  }
@@ -4691,10 +4690,10 @@
4691
4690
  return el;
4692
4691
  }
4693
4692
  function isImage(src) {
4694
- return src == null ? undefined : src.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i);
4693
+ return src == null ? void 0 : src.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i);
4695
4694
  }
4696
4695
  function isVideo(src) {
4697
- return src == null ? undefined : src.match(/\.(mp4|webm|ogv)($|\?)/i);
4696
+ return src == null ? void 0 : src.match(/\.(mp4|webm|ogv)($|\?)/i);
4698
4697
  }
4699
4698
 
4700
4699
  const selDisabled$1 = ".uk-disabled *, .uk-disabled, [disabled]";
@@ -4747,7 +4746,7 @@
4747
4746
  },
4748
4747
  hide() {
4749
4748
  var _a;
4750
- return (_a = this.panel) == null ? undefined : _a.hide();
4749
+ return (_a = this.panel) == null ? void 0 : _a.hide();
4751
4750
  }
4752
4751
  }
4753
4752
  };
@@ -4854,7 +4853,7 @@
4854
4853
  const container = parent(el);
4855
4854
  trigger(el, "close", [this]);
4856
4855
  remove$1(el);
4857
- if (!(container == null ? undefined : container.hasChildNodes())) {
4856
+ if (!(container == null ? void 0 : container.hasChildNodes())) {
4858
4857
  remove$1(container);
4859
4858
  }
4860
4859
  };
@@ -4904,7 +4903,7 @@
4904
4903
  },
4905
4904
  disconnected() {
4906
4905
  var _a;
4907
- (_a = this.offMediaObj) == null ? undefined : _a.call(this);
4906
+ (_a = this.offMediaObj) == null ? void 0 : _a.call(this);
4908
4907
  }
4909
4908
  };
4910
4909
  function toMedia(value, element) {
@@ -4922,7 +4921,7 @@
4922
4921
  return isVisible(el) ? Math.ceil(
4923
4922
  Math.max(0, ...$$("[stroke]", el).map((stroke) => {
4924
4923
  var _a;
4925
- return ((_a = stroke.getTotalLength) == null ? undefined : _a.call(stroke)) || 0;
4924
+ return ((_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke)) || 0;
4926
4925
  }))
4927
4926
  ) : 0;
4928
4927
  }
@@ -4951,7 +4950,7 @@
4951
4950
  var Parallax = {
4952
4951
  mixins: [Media],
4953
4952
  props: fillObject(keys(props), "list"),
4954
- data: fillObject(keys(props), undefined),
4953
+ data: fillObject(keys(props), void 0),
4955
4954
  computed: {
4956
4955
  props(properties, $el) {
4957
4956
  const stops = {};
@@ -4998,7 +4997,7 @@
4998
4997
  unit = "";
4999
4998
  transformFn2 = (stop) => {
5000
4999
  var _a;
5001
- return getUnit([stop]) ? toPx(stop, "width", el, true) / el[`offset${((_a = stop.endsWith) == null ? undefined : _a.call(stop, "vh")) ? "Height" : "Width"}`] : toFloat(stop);
5000
+ return getUnit([stop]) ? toPx(stop, "width", el, true) / el[`offset${((_a = stop.endsWith) == null ? void 0 : _a.call(stop, "vh")) ? "Height" : "Width"}`] : toFloat(stop);
5002
5001
  };
5003
5002
  }
5004
5003
  if (stops.length === 1) {
@@ -5207,7 +5206,7 @@
5207
5206
  function getUnit(stops, defaultUnit) {
5208
5207
  var _a;
5209
5208
  for (const stop of stops) {
5210
- const match = (_a = stop.match) == null ? undefined : _a.call(stop, unitRe);
5209
+ const match = (_a = stop.match) == null ? void 0 : _a.call(stop, unitRe);
5211
5210
  if (match) {
5212
5211
  return match[1];
5213
5212
  }
@@ -5896,8 +5895,8 @@
5896
5895
  },
5897
5896
  data: {
5898
5897
  ratio: "16:9",
5899
- minHeight: undefined,
5900
- maxHeight: undefined,
5898
+ minHeight: void 0,
5899
+ maxHeight: void 0,
5901
5900
  selList: ".uk-slideshow-items",
5902
5901
  attrItem: "uk-slideshow-item",
5903
5902
  selNav: ".uk-slideshow-nav",
@@ -5906,7 +5905,7 @@
5906
5905
  watch: {
5907
5906
  list(list) {
5908
5907
  css(list, {
5909
- aspectRatio: this.ratio ? this.ratio.replace(":", "/") : undefined,
5908
+ aspectRatio: this.ratio ? this.ratio.replace(":", "/") : void 0,
5910
5909
  minHeight: this.minHeight,
5911
5910
  maxHeight: this.maxHeight,
5912
5911
  width: "100%"
@@ -6273,7 +6272,7 @@
6273
6272
  if (this.isToggled(this.tooltip || null)) {
6274
6273
  await this.toggleElement(this.tooltip, false, false);
6275
6274
  }
6276
- (_a = this.reset) == null ? undefined : _a.call(this);
6275
+ (_a = this.reset) == null ? void 0 : _a.call(this);
6277
6276
  remove$1(this.tooltip);
6278
6277
  this.tooltip = null;
6279
6278
  },
@@ -6413,7 +6412,7 @@
6413
6412
  drop(e) {
6414
6413
  stop(e);
6415
6414
  const transfer = e.dataTransfer;
6416
- if (!(transfer == null ? undefined : transfer.files)) {
6415
+ if (!(transfer == null ? void 0 : transfer.files)) {
6417
6416
  return;
6418
6417
  }
6419
6418
  removeClass(this.$el, this.clsDragover);
@@ -6613,7 +6612,7 @@
6613
6612
  if (hasAttr(target, attributeName)) {
6614
6613
  createComponent(name, target);
6615
6614
  } else {
6616
- (_a = getComponent(target, name)) == null ? undefined : _a.$destroy();
6615
+ (_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();
6617
6616
  }
6618
6617
  }
6619
6618
  }
@@ -6676,7 +6675,7 @@
6676
6675
  contents({ content }) {
6677
6676
  return this.items.map((item) => {
6678
6677
  var _a;
6679
- return ((_a = item._wrapper) == null ? undefined : _a.firstElementChild) || $(content, item);
6678
+ return ((_a = item._wrapper) == null ? void 0 : _a.firstElementChild) || $(content, item);
6680
6679
  });
6681
6680
  }
6682
6681
  },
@@ -6715,7 +6714,7 @@
6715
6714
  return;
6716
6715
  }
6717
6716
  e.preventDefault();
6718
- (_a = this._off) == null ? undefined : _a.call(this);
6717
+ (_a = this._off) == null ? void 0 : _a.call(this);
6719
6718
  this._off = keepScrollPosition(e.target);
6720
6719
  await this.toggle(index(this.toggles, e.current));
6721
6720
  this._off();
@@ -6784,7 +6783,7 @@
6784
6783
  }
6785
6784
  async function transition(el, show, { content, duration, velocity, transition: transition2 }) {
6786
6785
  var _a;
6787
- content = ((_a = el._wrapper) == null ? undefined : _a.firstElementChild) || $(content, el);
6786
+ content = ((_a = el._wrapper) == null ? void 0 : _a.firstElementChild) || $(content, el);
6788
6787
  if (!el._wrapper) {
6789
6788
  el._wrapper = wrapAll(content, "<div>");
6790
6789
  }
@@ -7111,7 +7110,7 @@
7111
7110
  if (this.isToggled()) {
7112
7111
  this.hide(false);
7113
7112
  } else {
7114
- this.show(toggle == null ? undefined : toggle.$el, false);
7113
+ this.show(toggle == null ? void 0 : toggle.$el, false);
7115
7114
  }
7116
7115
  }
7117
7116
  },
@@ -7120,7 +7119,7 @@
7120
7119
  self: true,
7121
7120
  handler(e, toggle) {
7122
7121
  e.preventDefault();
7123
- this.show(toggle == null ? undefined : toggle.$el);
7122
+ this.show(toggle == null ? void 0 : toggle.$el);
7124
7123
  }
7125
7124
  },
7126
7125
  {
@@ -7359,7 +7358,7 @@
7359
7358
  `${pointerUp$1} ${pointerCancel} scroll`,
7360
7359
  ({ defaultPrevented, type, target: newTarget }) => {
7361
7360
  var _a;
7362
- if (!defaultPrevented && type === pointerUp$1 && target === newTarget && !((_a = drop.targetEl) == null ? undefined : _a.contains(target))) {
7361
+ if (!defaultPrevented && type === pointerUp$1 && target === newTarget && !((_a = drop.targetEl) == null ? void 0 : _a.contains(target))) {
7363
7362
  drop.hide(false);
7364
7363
  }
7365
7364
  },
@@ -7417,7 +7416,7 @@
7417
7416
  const dropdowns = $$(`.${clsDrop}`, $el);
7418
7417
  if (this.dropContainer !== $el) {
7419
7418
  for (const el of $$(`.${clsDrop}`, this.dropContainer)) {
7420
- const target = (_a = this.getDropdown(el)) == null ? undefined : _a.targetEl;
7419
+ const target = (_a = this.getDropdown(el)) == null ? void 0 : _a.targetEl;
7421
7420
  if (!includes(dropdowns, el) && target && this.$el.contains(target)) {
7422
7421
  dropdowns.push(el);
7423
7422
  }
@@ -7470,14 +7469,14 @@
7470
7469
  const { current, keyCode } = e;
7471
7470
  const active2 = this.getActive();
7472
7471
  if (keyCode === keyMap.DOWN) {
7473
- if ((active2 == null ? undefined : active2.targetEl) === current) {
7472
+ if ((active2 == null ? void 0 : active2.targetEl) === current) {
7474
7473
  e.preventDefault();
7475
- (_a = $(selFocusable, active2.$el)) == null ? undefined : _a.focus();
7474
+ (_a = $(selFocusable, active2.$el)) == null ? void 0 : _a.focus();
7476
7475
  } else {
7477
7476
  const dropdown = this.dropdowns.find(
7478
7477
  (el) => {
7479
7478
  var _a2;
7480
- return ((_a2 = this.getDropdown(el)) == null ? undefined : _a2.targetEl) === current;
7479
+ return ((_a2 = this.getDropdown(el)) == null ? void 0 : _a2.targetEl) === current;
7481
7480
  }
7482
7481
  );
7483
7482
  if (dropdown) {
@@ -7485,7 +7484,7 @@
7485
7484
  current.click();
7486
7485
  once(dropdown, "show", (e2) => {
7487
7486
  var _a2;
7488
- return (_a2 = $(selFocusable, e2.target)) == null ? undefined : _a2.focus();
7487
+ return (_a2 = $(selFocusable, e2.target)) == null ? void 0 : _a2.focus();
7489
7488
  });
7490
7489
  }
7491
7490
  }
@@ -7514,7 +7513,7 @@
7514
7513
  } else if (keyCode === keyMap.DOWN) {
7515
7514
  next = "next";
7516
7515
  } else if (keyCode === keyMap.ESC) {
7517
- (_a = active2.targetEl) == null ? undefined : _a.focus();
7516
+ (_a = active2.targetEl) == null ? void 0 : _a.focus();
7518
7517
  }
7519
7518
  if (~next) {
7520
7519
  e.preventDefault();
@@ -7600,7 +7599,7 @@
7600
7599
  if (!this.isDropbarDrop(target)) {
7601
7600
  return;
7602
7601
  }
7603
- (_a = this._observer) == null ? undefined : _a.disconnect();
7602
+ (_a = this._observer) == null ? void 0 : _a.disconnect();
7604
7603
  const active2 = this.getActive();
7605
7604
  if (!active2 || active2.$el === target) {
7606
7605
  this.transitionTo(0);
@@ -7611,7 +7610,7 @@
7611
7610
  methods: {
7612
7611
  getActive() {
7613
7612
  var _a;
7614
- return includes(this.dropdowns, (_a = active) == null ? undefined : _a.$el) && active;
7613
+ return includes(this.dropdowns, (_a = active) == null ? void 0 : _a.$el) && active;
7615
7614
  },
7616
7615
  async transitionTo(newHeight, el) {
7617
7616
  const { dropbar } = this;
@@ -7674,12 +7673,12 @@
7674
7673
  } else if (keyCode === keyMap.RIGHT) {
7675
7674
  next = "next";
7676
7675
  } else if (keyCode === keyMap.TAB) {
7677
- (_a = active2.targetEl) == null ? undefined : _a.focus();
7678
- (_b = active2.hide) == null ? undefined : _b.call(active2, false);
7676
+ (_a = active2.targetEl) == null ? void 0 : _a.focus();
7677
+ (_b = active2.hide) == null ? void 0 : _b.call(active2, false);
7679
7678
  }
7680
7679
  if (~next) {
7681
7680
  e.preventDefault();
7682
- (_c = active2.hide) == null ? undefined : _c.call(active2, false);
7681
+ (_c = active2.hide) == null ? void 0 : _c.call(active2, false);
7683
7682
  toggles[getIndex(next, toggles, toggles.indexOf(active2.targetEl || current))].focus();
7684
7683
  }
7685
7684
  }
@@ -7711,7 +7710,7 @@
7711
7710
  let option;
7712
7711
  const prop = isInput(target) ? "value" : "textContent";
7713
7712
  const prev = target[prop];
7714
- 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;
7713
+ 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;
7715
7714
  if (prev !== value) {
7716
7715
  target[prop] = value;
7717
7716
  }
@@ -8590,7 +8589,7 @@
8590
8589
  bgClose: false,
8591
8590
  escClose: true,
8592
8591
  ...options,
8593
- i18n: { ...modal.i18n, ...options == null ? undefined : options.i18n }
8592
+ i18n: { ...modal.i18n, ...options == null ? void 0 : options.i18n }
8594
8593
  };
8595
8594
  const dialog = modal.dialog(tmpl(options), options);
8596
8595
  return assign(
@@ -8940,7 +8939,7 @@
8940
8939
  },
8941
8940
  disconnected() {
8942
8941
  for (const [el, state] of this.elementData.entries()) {
8943
- removeClass(el, clsInView, (state == null ? undefined : state.cls) || "");
8942
+ removeClass(el, clsInView, (state == null ? void 0 : state.cls) || "");
8944
8943
  }
8945
8944
  delete this.elementData;
8946
8945
  },
@@ -8988,11 +8987,11 @@
8988
8987
  methods: {
8989
8988
  toggle(el, inview) {
8990
8989
  var _a, _b;
8991
- const state = (_a = this.elementData) == null ? undefined : _a.get(el);
8990
+ const state = (_a = this.elementData) == null ? void 0 : _a.get(el);
8992
8991
  if (!state) {
8993
8992
  return;
8994
8993
  }
8995
- (_b = state.off) == null ? undefined : _b.call(state);
8994
+ (_b = state.off) == null ? void 0 : _b.call(state);
8996
8995
  css(el, "opacity", !inview && this.hidden ? 0 : "");
8997
8996
  toggleClass(el, clsInView, inview);
8998
8997
  toggleClass(el, state.cls);
@@ -9420,7 +9419,7 @@
9420
9419
  return propOffset + toPx(value, "height", el, true);
9421
9420
  } else {
9422
9421
  const refElement = value === true ? getVisibleParent(el) : query(value, el);
9423
- return offset(refElement).bottom - (padding && (refElement == null ? undefined : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) + toFloat(css(refElement, "borderBottomWidth")) : 0);
9422
+ return offset(refElement).bottom - (padding && (refElement == null ? void 0 : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) + toFloat(css(refElement, "borderBottomWidth")) : 0);
9424
9423
  }
9425
9424
  }
9426
9425
  function coerce(value) {
@@ -9655,7 +9654,7 @@
9655
9654
  attr(children(this.$el), "role", "presentation");
9656
9655
  for (const index in this.toggles) {
9657
9656
  const toggle = this.toggles[index];
9658
- const item = (_a = this.connects[0]) == null ? undefined : _a.children[index];
9657
+ const item = (_a = this.connects[0]) == null ? void 0 : _a.children[index];
9659
9658
  attr(toggle, "role", "tab");
9660
9659
  if (!item) {
9661
9660
  continue;