@xwadex/fesd 0.0.35 → 0.0.36

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.
@@ -309,12 +309,12 @@ const Y = {
309
309
  share4: ys,
310
310
  tab4: Ue,
311
311
  video4: Y
312
- }, Symbol.toStringTag, { value: "Module" })), E = {
312
+ }, Symbol.toStringTag, { value: "Module" })), A = {
313
313
  before: "beforebegin",
314
314
  after: "afterend",
315
315
  append: "beforeend",
316
316
  prepend: "afterbegin"
317
- }, at = (n) => typeof n == "string" && n !== "", we = (n) => n instanceof HTMLElement, rt = (n) => n instanceof NodeList, w = (n) => A(n) !== null, j = (n) => typeof n == "function", A = (n) => we(n) ? n : document.querySelector(n), L = (n) => rt(n) ? n : document.querySelectorAll(n), Ts = () => Math.random().toString(36).substr(2, 9), Es = (n) => {
317
+ }, at = (n) => typeof n == "string" && n !== "", we = (n) => n instanceof HTMLElement, rt = (n) => n instanceof NodeList, w = (n) => L(n) !== null, j = (n) => typeof n == "function", L = (n) => we(n) ? n : document.querySelector(n), S = (n) => rt(n) ? n : document.querySelectorAll(n), Ts = () => Math.random().toString(36).substr(2, 9), Es = (n) => {
318
318
  const i = document.createElement("div");
319
319
  return i.innerHTML = n, i.childNodes;
320
320
  }, As = (n) => {
@@ -324,7 +324,7 @@ const Y = {
324
324
  return n;
325
325
  }
326
326
  return JSON.parse(n);
327
- }, T = (n, i) => {
327
+ }, E = (n, i) => {
328
328
  console.warn(`[${n} warn]: ${i}`);
329
329
  }, je = (n, i) => {
330
330
  console.error(`[${n} error]: ${i}`);
@@ -370,19 +370,19 @@ const Y = {
370
370
  return -t * ((n = n / e - 1) * n * n * n - 1) + i;
371
371
  }
372
372
  }, Te = (n, i) => {
373
- const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", p = c ? "left" : "top", g = c ? "width" : "height", m = w(e) ? A(e) : document.scrollingElement, f = m[u], b = w(t) ? A(t).getBoundingClientRect()[p] : 0 - f, y = w(s) ? A(s).getBoundingClientRect()[g] : 0, _ = b - a - y, G = 15;
374
- let S = 0;
373
+ const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", p = c ? "left" : "top", g = c ? "width" : "height", m = w(e) ? L(e) : document.scrollingElement, f = m[u], b = w(t) ? L(t).getBoundingClientRect()[p] : 0 - f, y = w(s) ? L(s).getBoundingClientRect()[g] : 0, _ = b - a - y, G = 15;
374
+ let D = 0;
375
375
  if (_ === 0)
376
376
  return;
377
377
  const R = (X) => {
378
- const Pe = A(t);
378
+ const Pe = L(t);
379
379
  i && i.emit(X, Pe), !i && n.on && j(n.on[X]) && n.on[X](Pe);
380
380
  };
381
381
  R("beforeScroll");
382
382
  const Ne = () => {
383
- S += G;
384
- const X = Ls[r](S, f, _, o);
385
- m[u] = X, S < o && requestAnimationFrame(Ne), S >= o && R("afterScroll");
383
+ D += G;
384
+ const X = Ls[r](D, f, _, o);
385
+ m[u] = X, D < o && requestAnimationFrame(Ne), D >= o && R("afterScroll");
386
386
  };
387
387
  requestAnimationFrame(Ne);
388
388
  };
@@ -428,7 +428,7 @@ J = new WeakSet(), Ee = function() {
428
428
  if (!at(i) || !w(i))
429
429
  return;
430
430
  const { SETTINGS: e, EVENTS: s } = ct;
431
- if (this.elements = t.state == "not active" ? L(i + `:not([${this.active}])`) : L(i), this.elements = L(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
431
+ if (this.elements = t.state == "not active" ? S(i + `:not([${this.active}])`) : S(i), this.elements = S(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
432
432
  for (const [o, a] of Object.entries(this.options.on))
433
433
  this.__events__[o] = [a];
434
434
  d(this, mt, Ve).call(this);
@@ -502,7 +502,7 @@ ft = new WeakSet(), ei = function() {
502
502
  const { ATTRS: t } = I;
503
503
  this.__events__ = {}, this.getAttribute(":state") || this.setAttribute(":state", "close");
504
504
  const e = this.getAttribute(t.id) || Ts();
505
- this.getAttribute(t.id) || (T(`modern-modal needs a ${t.id} attribute with a unique id.`), this.setAttribute(t.id, e)), M[e] && T(`the ${t.id} "${e}" is already be used.`), M[e] = this, d(this, vt, ii).call(this);
505
+ this.getAttribute(t.id) || (E(`modern-modal needs a ${t.id} attribute with a unique id.`), this.setAttribute(t.id, e)), M[e] && E(`the ${t.id} "${e}" is already be used.`), M[e] = this, d(this, vt, ii).call(this);
506
506
  }, vt = new WeakSet(), ii = function() {
507
507
  this.childDom = this.childNodes, this.template = Ss(this), this.innerHTML = "", this.append(this.template), d(this, bt, si).call(this);
508
508
  }, bt = new WeakSet(), si = function() {
@@ -569,10 +569,10 @@ const { MODALS: Ie } = window, ai = (n, i, ...t) => {
569
569
  }, ri = (n, ...i) => {
570
570
  n && j(n) && n.apply(U, i);
571
571
  }, ze = (n, i) => {
572
- const { target: t } = n, e = Ie[t] || A(n.target);
572
+ const { target: t } = n, e = Ie[t] || L(n.target);
573
573
  e && li(n, i), e || Ds(n, i);
574
574
  }, li = (n, i) => {
575
- const { target: t, action: e, on: s, e: o } = n, a = Ie[t] || A(n.target);
575
+ const { target: t, action: e, on: s, e: o } = n, a = Ie[t] || L(n.target);
576
576
  switch (["open", "close", "destroy"].forEach((l) => {
577
577
  a.once(l, () => {
578
578
  i && (i.emit(l, a, o), ai(i, s[l], a, o)), i || ri(s[l], a);
@@ -595,16 +595,16 @@ const { MODALS: Ie } = window, ai = (n, i, ...t) => {
595
595
  }, Ds = async (n, i) => {
596
596
  const { target: t, route: e, container: s, on: o, e: a } = n;
597
597
  if (!e)
598
- return T("modal4", "cannot find target or data-modal-route is not defined");
598
+ return E("modal4", "cannot find target or data-modal-route is not defined");
599
599
  const r = (l, ...c) => {
600
600
  i && (i.emit(l, ...c), ai(i, o[l], ...c)), i || ri(o[l], ...c);
601
601
  };
602
602
  fetch(e).then((l) => (r("success", a), l.text())).then((l) => {
603
- const c = Es(l), u = A(s) || A(I.SETTINGS.container);
603
+ const c = Es(l), u = L(s) || L(I.SETTINGS.container);
604
604
  [...c].forEach((g) => {
605
605
  u.append(g);
606
606
  });
607
- const p = Ie[t] || A(n.target);
607
+ const p = Ie[t] || L(n.target);
608
608
  r("complete", p), li(n, i);
609
609
  }).catch((l) => {
610
610
  r("error", l);
@@ -650,7 +650,7 @@ Z = new WeakSet(), Ae = function() {
650
650
  if (!at(i) || !w(i))
651
651
  return;
652
652
  const { SETTINGS: e, EVENTS: s } = I;
653
- if (this.elements = t.state == "not active" ? L(i + `:not([${this.active}])`) : L(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
653
+ if (this.elements = t.state == "not active" ? S(i + `:not([${this.active}])`) : S(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
654
654
  for (const [o, a] of Object.entries(this.options.on))
655
655
  this.__events__[o] = [a];
656
656
  d(this, Tt, ci).call(this);
@@ -661,7 +661,7 @@ Z = new WeakSet(), Ae = function() {
661
661
  }), this.emit("init");
662
662
  }, Et = new WeakSet(), di = function(i) {
663
663
  const { defaultOptions: t, eventHandler: e, instance: s } = this.modal, o = As(this.getAttribute("data-modal-on"));
664
- o && typeof o != "object" && T("modal4", "data-modal-on must be a json string.");
664
+ o && typeof o != "object" && E("modal4", "data-modal-on must be a json string.");
665
665
  const a = {
666
666
  target: this.getAttribute("data-modal-target") || t.target,
667
667
  action: this.getAttribute("data-modal-action") || t.action,
@@ -707,7 +707,7 @@ class ui {
707
707
  const { elements: t, options: e } = this;
708
708
  if (!t)
709
709
  return this;
710
- const { scroller: s } = e, o = s === window || !w(s) ? window : A(s);
710
+ const { scroller: s } = e, o = s === window || !w(s) ? window : L(s);
711
711
  return o.aost && (o.removeEventListener("scroll", o.aost.eventHandler), delete o.aost), t.forEach((a) => {
712
712
  if (!a.aost)
713
713
  return;
@@ -725,12 +725,12 @@ Q = new WeakSet(), Le = function() {
725
725
  if (!at(i) || !w(i))
726
726
  return;
727
727
  const { SETTINGS: e, EVENTS: s } = Ye;
728
- if (this.elements = t.state == "not active" ? L(i + `:not([${this.active}])`) : L(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
728
+ if (this.elements = t.state == "not active" ? S(i + `:not([${this.active}])`) : S(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
729
729
  for (const [o, a] of Object.entries(this.options.on))
730
730
  this.__events__[o] = [a];
731
731
  d(this, At, hi).call(this);
732
732
  }, At = new WeakSet(), hi = function() {
733
- const { elements: i, options: t } = this, { scroller: e } = t, s = e === window || !w(e) ? window : A(e);
733
+ const { elements: i, options: t } = this, { scroller: e } = t, s = e === window || !w(e) ? window : L(e);
734
734
  this.eventHandler = () => {
735
735
  _s(s, i);
736
736
  }, i.forEach((a) => {
@@ -805,7 +805,7 @@ class xs extends HTMLElement {
805
805
  }
806
806
  Lt = new WeakSet(), pi = function() {
807
807
  if (!this.getAttribute("video-id")) {
808
- T("videoPlayer", "video-render needs a ['video-id'] attribute to creat player.");
808
+ E("videoPlayer", "video-render needs a ['video-id'] attribute to creat player.");
809
809
  return;
810
810
  }
811
811
  this.videoId = this.getAttribute("video-id"), this.videoType = this.getAttribute("video-type"), this.autoplay = this.getAttribute("video-autoplay"), this.startTime = this.getAttribute("video-starttime"), d(this, St, mi).call(this);
@@ -838,7 +838,7 @@ Lt = new WeakSet(), pi = function() {
838
838
  e = d(this, Ht, Ti).call(this);
839
839
  break;
840
840
  }
841
- this.querySelector(".player-wrapper").insertAdjacentHTML(E.prepend, e);
841
+ this.querySelector(".player-wrapper").insertAdjacentHTML(A.prepend, e);
842
842
  }, _t = new WeakSet(), fi = function() {
843
843
  const { videoId: t, autoplay: e, startTime: s } = this;
844
844
  return `<iframe src="https://www.youtube.com/embed/${t}?rel=0&${e === "on" ? "autoplay=1" : ""}&start=${s}&mute=1&loop=1&enablejsapi=1" frameborder="0" allowfullscreen="0" volumn="0" allow="${e === "on" ? "autoplay;" : ""} encrypted-media; gyroscope; picture-in-picture;"></iframe>`;
@@ -1110,7 +1110,7 @@ class qs {
1110
1110
  }
1111
1111
  V = new WeakSet(), Se = function() {
1112
1112
  const { el: i, options: t } = this.__storage__, { SETTINGS: e, EVENTS: s } = Y;
1113
- if (this.elements = t.state == "not active" ? L(i + `:not([${this.active}])`) : L(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
1113
+ if (this.elements = t.state == "not active" ? S(i + `:not([${this.active}])`) : S(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
1114
1114
  for (const [o, a] of Object.entries(this.options.on))
1115
1115
  this.__events__[o] = [a];
1116
1116
  d(this, Mt, Li).call(this);
@@ -1124,31 +1124,31 @@ V = new WeakSet(), Se = function() {
1124
1124
  if (l === "onBox") {
1125
1125
  let g = null;
1126
1126
  if (u === "on") {
1127
- i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(E.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), T("video4", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構,若無結構則自動加入圖片結構"));
1127
+ i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(A.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), E("video4", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構,若無結構則自動加入圖片結構"));
1128
1128
  const m = s.querySelector("img");
1129
- m.insertAdjacentHTML(E.after, t[o]);
1129
+ m.insertAdjacentHTML(A.after, t[o]);
1130
1130
  const f = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
1131
1131
  !f && r == "youtube" ? p == "on" ? m.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !f && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1132
1132
  const y = b.thumbnail_url;
1133
1133
  m.setAttribute("src", `${y}`);
1134
1134
  }).catch(function(b) {
1135
1135
  console.log("error");
1136
- }) : T("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片");
1136
+ }) : E("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片");
1137
1137
  }
1138
- c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || T("video4", `找不到 videoButton 設定的 element -> '${c}' , 點擊物件轉移至 '${this.__storage__.el}'`)), g.video || (g.video = {}, g.video.params = e), g.video.eventHandler = d(this, K, De), g.addEventListener("click", g.video.eventHandler);
1138
+ c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || E("video4", `找不到 videoButton 設定的 element -> '${c}' , 點擊物件轉移至 '${this.__storage__.el}'`)), g.video || (g.video = {}, g.video.params = e), g.video.eventHandler = d(this, K, De), g.addEventListener("click", g.video.eventHandler);
1139
1139
  } else if (l === "onPage") {
1140
1140
  let g = null;
1141
1141
  if (u == "on") {
1142
- i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(E.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), T("video", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構"));
1142
+ i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(A.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), E("video", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構"));
1143
1143
  const m = s.querySelector("img");
1144
- m.insertAdjacentHTML(E.after, t[o]);
1144
+ m.insertAdjacentHTML(A.after, t[o]);
1145
1145
  const f = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
1146
1146
  !f && r == "youtube" ? p == "on" ? m.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !f && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1147
1147
  const y = b.thumbnail_url;
1148
1148
  m.setAttribute("src", `${y}`);
1149
1149
  }).catch(function(b) {
1150
1150
  console.log("error");
1151
- }) : f || T("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || T("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1151
+ }) : f || E("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || E("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1152
1152
  } else {
1153
1153
  s.innerHTML = lt(e);
1154
1154
  return;
@@ -2062,7 +2062,7 @@ const Oe = {
2062
2062
  const i = (t = n.getAttribute("control-elements")) == null ? void 0 : t.split(",");
2063
2063
  i && i.forEach((e) => {
2064
2064
  const s = document.querySelector(e);
2065
- s || T("dropdown", `Can't not find control element(${e})`), s && s.classList.contains("disabled") && (s.classList.remove("disabled"), s.tagName === "DROPDOWN-EL" && s.s.activeLi && C(s, [...s.s.allLi].indexOf(s.s.activeLi)));
2065
+ s || E("dropdown", `Can't not find control element(${e})`), s && s.classList.contains("disabled") && (s.classList.remove("disabled"), s.tagName === "DROPDOWN-EL" && s.s.activeLi && C(s, [...s.s.allLi].indexOf(s.s.activeLi)));
2066
2066
  });
2067
2067
  }, C = (n, i) => {
2068
2068
  const t = n.getAttribute("d4-placeholder"), e = n.querySelectorAll(".dropdown-list li");
@@ -2105,7 +2105,7 @@ const Oe = {
2105
2105
  const o = n.querySelectorAll(".dropdown-list li.active");
2106
2106
  o.length <= 0 ? n.s.selectDisplayEl.textContent = t.trim() : (n.s.selectDisplayEl.textContent = "", o.forEach((r) => {
2107
2107
  const l = r.getAttribute("data-option"), c = r.textContent.trim(), u = `<div class="option-btn" data-option="${l}"><div class="text">${c}</div><div class="remove-icon"></div></div>`;
2108
- n.s.selectDisplayEl.insertAdjacentHTML(E.append, u);
2108
+ n.s.selectDisplayEl.insertAdjacentHTML(A.append, u);
2109
2109
  })), n.s.activeLi = o, n.s.value = [...o].map((r) => ({
2110
2110
  index: [...e].indexOf(r),
2111
2111
  id: r.getAttribute("data-option"),
@@ -2129,7 +2129,7 @@ const Oe = {
2129
2129
  o.textContent = e[0], o.setAttribute("data-option", e[0]), n.querySelector(".dropdown-list").append(o);
2130
2130
  });
2131
2131
  }, _i = () => {
2132
- L('dropdown-el[d4-status="open"]').forEach((i) => {
2132
+ S('dropdown-el[d4-status="open"]').forEach((i) => {
2133
2133
  i.close();
2134
2134
  });
2135
2135
  }, js = () => {
@@ -2335,10 +2335,10 @@ Ot = new WeakSet(), $i = function() {
2335
2335
  c.stopPropagation();
2336
2336
  const f = u.querySelector(".sub-dropdown"), b = f.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
2337
2337
  f.style.cssText = `--height: ${b.offsetHeight + y}px`;
2338
- const _ = parseInt(f.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), S = () => {
2338
+ const _ = parseInt(f.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), D = () => {
2339
2339
  s = g + e.s.subDropdownTotalH, o = s > G ? G : s, e.style.cssText = `--maxHeight: ${o}px;`, e.s.dropdownEl.style.height = `${o}px`;
2340
2340
  };
2341
- u.classList.contains("open") ? (u.classList.remove("open"), e.s.subDropdownTotalH -= _, S()) : (u.classList.add("open"), e.s.subDropdownTotalH += _, S());
2341
+ u.classList.contains("open") ? (u.classList.remove("open"), e.s.subDropdownTotalH -= _, D()) : (u.classList.add("open"), e.s.subDropdownTotalH += _, D());
2342
2342
  const R = () => {
2343
2343
  e.__scroller__.update(!0), f.removeEventListener("transitionend", R);
2344
2344
  };
@@ -2349,8 +2349,8 @@ Ot = new WeakSet(), $i = function() {
2349
2349
  if (e.setAttribute("d4-value", u.getAttribute("data-option")), r) {
2350
2350
  const f = e.s.cityLang, b = l.textContent.trim(), y = document.getElementById(e.getAttribute("dist-select"));
2351
2351
  y && (y.querySelector(".dropdown-list").textContent = "", C(y, -1), Oe[f][b].forEach((_, G) => {
2352
- const S = document.createElement("li");
2353
- S.textContent = _[0], S.setAttribute("data-option", _[0]), y.querySelector(".dropdown-list").append(S);
2352
+ const D = document.createElement("li");
2353
+ D.textContent = _[0], D.setAttribute("data-option", _[0]), y.querySelector(".dropdown-list").append(D);
2354
2354
  }), e.__events__.selectOption(y));
2355
2355
  }
2356
2356
  (m = u.parentNode.closest("li")) != null && m.classList.contains("has-sublayer") && (c.stopPropagation(), e.close());
@@ -2427,7 +2427,7 @@ function zs(n) {
2427
2427
  }
2428
2428
  n.s.animation = null, n.s.animateEl = a, n.textContent = "", o.append(a), n.append(o), a.clientWidth * 2 + e >= n.clientWidth ? i === "normal" && t && o.append(r()) : n.s.options.continual = !1;
2429
2429
  }
2430
- function k(n) {
2430
+ function $(n) {
2431
2431
  const { behavior: i, direction: t, continual: e } = n.s.options;
2432
2432
  let s = {};
2433
2433
  switch (i) {
@@ -2551,10 +2551,10 @@ zt = new WeakSet(), Mi = function() {
2551
2551
  function u() {
2552
2552
  switch (s) {
2553
2553
  case "normal":
2554
- t.s.animateEl.style.transform = `${k(t).animate1[0].transform}`, t.s.animation = t.s.animateEl.animate(k(t).animate1, {
2554
+ t.s.animateEl.style.transform = `${$(t).animate1[0].transform}`, t.s.animation = t.s.animateEl.animate($(t).animate1, {
2555
2555
  duration: t.s.nowDuration,
2556
2556
  iterations: 1 / 0
2557
- }), l && (t.s.cloneAnimateEl.style.transform = `${k(t).animate2[0].transform}`, t.s.cloneAnimation = t.s.cloneAnimateEl.animate(k(t).animate2, {
2557
+ }), l && (t.s.cloneAnimateEl.style.transform = `${$(t).animate2[0].transform}`, t.s.cloneAnimation = t.s.cloneAnimateEl.animate($(t).animate2, {
2558
2558
  duration: t.s.nowDuration,
2559
2559
  delay: -t.s.nowDuration / 2,
2560
2560
  iterations: 1 / 0
@@ -2583,7 +2583,7 @@ zt = new WeakSet(), Mi = function() {
2583
2583
  duration: g,
2584
2584
  fill: "forwards"
2585
2585
  }).finished.then(() => {
2586
- t.s.animation = t.s.animateEl.animate(k(t).animate1, {
2586
+ t.s.animation = t.s.animateEl.animate($(t).animate1, {
2587
2587
  duration: t.s.nowDuration,
2588
2588
  iterations: 1 / 0
2589
2589
  });
@@ -2592,7 +2592,7 @@ zt = new WeakSet(), Mi = function() {
2592
2592
  });
2593
2593
  break;
2594
2594
  case "endStop":
2595
- t.s.animateEl.style.transform = `${k(t).animate1[0].transform}`, t.s.animation = t.s.animateEl.animate(k(t).animate1, {
2595
+ t.s.animateEl.style.transform = `${$(t).animate1[0].transform}`, t.s.animation = t.s.animateEl.animate($(t).animate1, {
2596
2596
  duration: t.s.nowDuration,
2597
2597
  fill: "forwards"
2598
2598
  });
@@ -2614,10 +2614,10 @@ zt = new WeakSet(), Mi = function() {
2614
2614
  const t = this;
2615
2615
  function e() {
2616
2616
  const s = t.s.animation.startTime, o = t.s.cloneAnimation ? t.s.cloneAnimation.startTime : null;
2617
- t.s.nowDuration = Be(t), t.s.animation.cancel(), t.s.cloneAnimation && t.s.cloneAnimation.cancel(), t.s.animation = t.s.animateEl.animate(k(t).animate1, {
2617
+ t.s.nowDuration = Be(t), t.s.animation.cancel(), t.s.cloneAnimation && t.s.cloneAnimation.cancel(), t.s.animation = t.s.animateEl.animate($(t).animate1, {
2618
2618
  duration: t.s.nowDuration,
2619
2619
  iterations: 1 / 0
2620
- }), t.s.animation.startTime = s, t.s.cloneAnimation && (t.s.cloneAnimation = t.s.cloneAnimateEl.animate(k(t).animate2, {
2620
+ }), t.s.animation.startTime = s, t.s.cloneAnimation && (t.s.cloneAnimation = t.s.cloneAnimateEl.animate($(t).animate2, {
2621
2621
  duration: t.s.nowDuration,
2622
2622
  delay: -t.s.nowDuration / 2,
2623
2623
  iterations: 1 / 0
@@ -2631,7 +2631,7 @@ const pt = function(n, i) {
2631
2631
  return function(e) {
2632
2632
  t && clearTimeout(t), t = setTimeout(n, 200, e);
2633
2633
  };
2634
- }, $ = (n, i) => {
2634
+ }, k = (n, i) => {
2635
2635
  if (rt(n)) {
2636
2636
  n.forEach((t) => {
2637
2637
  t.classList.add(i);
@@ -2639,7 +2639,7 @@ const pt = function(n, i) {
2639
2639
  return;
2640
2640
  }
2641
2641
  n.classList.add(i);
2642
- }, D = (n, i) => {
2642
+ }, T = (n, i) => {
2643
2643
  if (rt(n)) {
2644
2644
  n.forEach((t) => {
2645
2645
  t.classList.remove(i);
@@ -2688,7 +2688,7 @@ Rt = new WeakSet(), Ni = function() {
2688
2688
  d(c = i, tt, _e).call(c), d(u = i, W, ut).call(u);
2689
2689
  };
2690
2690
  i.$wrapper.removeEventListener("scroll", t), i.$wrapper.addEventListener("scroll", t), window.removeEventListener("resize", pt(t)), window.addEventListener("resize", pt(t)), (i.option.draggable || i.$element.s.type == "collapse") && d(e = i, Ft, ji).call(e), i.option.navigation && i.$element.s.type !== "collapse" && (i.$container.insertAdjacentHTML(
2691
- E.prepend,
2691
+ A.prepend,
2692
2692
  `<div class="navigation">
2693
2693
  <div class="button prev">
2694
2694
  <div></div>
@@ -2744,29 +2744,29 @@ Rt = new WeakSet(), Ni = function() {
2744
2744
  });
2745
2745
  }, tt = new WeakSet(), _e = function() {
2746
2746
  const { $container: i, $wrapper: t } = this, e = t.scrollWidth - t.clientWidth, s = Math.round(t.scrollLeft);
2747
- e <= 0 || ($(i, "scrollable"), s == 0 ? (D(i, "scrollable"), $(t, "start"), D(t, "end")) : s + 1 >= e ? (D(i, "scrollable"), D(t, "start"), $(t, "end")) : ($(t, "center"), D(t, "start"), D(t, "end")));
2747
+ e <= 0 || (k(i, "scrollable"), s == 0 ? (T(i, "scrollable"), k(t, "start"), T(t, "end")) : s + 1 >= e ? (T(i, "scrollable"), T(t, "start"), k(t, "end")) : (k(t, "center"), T(t, "start"), T(t, "end")));
2748
2748
  }, W = new WeakSet(), ut = function() {
2749
2749
  const { $wrapper: i, $button: t, $element: e } = this;
2750
2750
  if (!t)
2751
2751
  return;
2752
2752
  const s = i.scrollWidth - i.clientWidth, o = i.scrollLeft;
2753
2753
  if (s <= 0) {
2754
- $(t, "hide"), D(t, "active"), $(e, "noScrollable");
2754
+ k(t, "hide"), T(t, "active"), k(e, "noScrollable");
2755
2755
  return;
2756
2756
  }
2757
- s > 0 && ($(t, "active"), D(e, "noScrollable")), o == 0 ? t.forEach((a) => {
2757
+ s > 0 && (k(t, "active"), T(e, "noScrollable")), o == 0 ? t.forEach((a) => {
2758
2758
  if (a.classList.contains("next")) {
2759
- D(a, "hide");
2759
+ T(a, "hide");
2760
2760
  return;
2761
2761
  }
2762
- $(a, "hide");
2762
+ k(a, "hide");
2763
2763
  }) : o + 1 >= s ? t.forEach((a) => {
2764
2764
  if (a.classList.contains("next")) {
2765
- $(a, "hide");
2765
+ k(a, "hide");
2766
2766
  return;
2767
2767
  }
2768
- D(a, "hide");
2769
- }) : D(t, "hide");
2768
+ T(a, "hide");
2769
+ }) : T(t, "hide");
2770
2770
  }, Yt = new WeakSet(), zi = function() {
2771
2771
  const { $element: i } = this, t = (s) => {
2772
2772
  if (this.option.selected) {
@@ -2799,7 +2799,7 @@ Ut = new WeakSet(), Wi = function() {
2799
2799
  this.$element && (this.$container = this.$element.querySelector(".collapse-container"), this.$wrapper = this.$container.querySelector(".wrapper"), d(this, Jt, Bi).call(this) && d(this, Zt, Gi).call(this), d(this, Qt, Ri).call(this));
2800
2800
  }, Jt = new WeakSet(), Bi = function() {
2801
2801
  const i = this.$element.querySelector(".drag-container"), t = i.querySelector(".wrapper");
2802
- return t.scrollWidth - t.clientWidth > 0 ? (i.insertAdjacentHTML(E.append, '<div class="open-collapse"></div>'), this.$button = i.querySelector(".open-collapse"), !0) : !1;
2802
+ return t.scrollWidth - t.clientWidth > 0 ? (i.insertAdjacentHTML(A.append, '<div class="open-collapse"></div>'), this.$button = i.querySelector(".open-collapse"), T(this.$element, "noScrollable"), !0) : (k(this.$element, "noScrollable"), !1);
2803
2803
  }, Zt = new WeakSet(), Gi = function() {
2804
2804
  const { $element: i, $button: t } = this, e = function() {
2805
2805
  i.classList.contains("expand") ? i.classList.remove("expand") : i.classList.add("expand");
@@ -2821,7 +2821,7 @@ Ut = new WeakSet(), Wi = function() {
2821
2821
  };
2822
2822
  const Rs = (n) => {
2823
2823
  const { type: i, option: t, originalDomString: e } = n.s, s = document.createElement("div");
2824
- return i == "drag" && (s.innerHTML = H.TEMPLATE[i]().trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(E.append, e)), i == "collapse" && (s.innerHTML = H.TEMPLATE[i](t == null ? void 0 : t.collapse).trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(E.append, e), s.querySelector(".collapse-container .wrapper").insertAdjacentHTML(E.append, e)), i == "dropdown" && (s.innerHTML = H.TEMPLATE[i](t == null ? void 0 : t.dropdown).trim(), s.querySelector("dropdown-el").insertAdjacentHTML(E.append, e)), s.children;
2824
+ return i == "drag" && (s.innerHTML = H.TEMPLATE[i]().trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(A.append, e)), i == "collapse" && (s.innerHTML = H.TEMPLATE[i](t == null ? void 0 : t.collapse).trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(A.append, e), s.querySelector(".collapse-container .wrapper").insertAdjacentHTML(A.append, e)), i == "dropdown" && (s.innerHTML = H.TEMPLATE[i](t == null ? void 0 : t.dropdown).trim(), s.querySelector("dropdown-el").insertAdjacentHTML(A.append, e)), s.children;
2825
2825
  };
2826
2826
  var Vt, Xi, Kt, Fi, et, ke, B, ht;
2827
2827
  class Xs extends HTMLElement {
@@ -3212,7 +3212,7 @@ class Us {
3212
3212
  }
3213
3213
  st = new WeakSet(), xe = function() {
3214
3214
  const { el: i, options: t } = this.__storage__, { SETTINGS: e, EVENTS: s } = Je;
3215
- if (this.elements = t.state == "not active" ? L(i + `:not([${this.active}])`) : L(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
3215
+ if (this.elements = t.state == "not active" ? S(i + `:not([${this.active}])`) : S(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
3216
3216
  for (const [o, a] of Object.entries(this.options.on))
3217
3217
  this.__events__[o] = [a];
3218
3218
  d(this, ge, ds).call(this);
@@ -3514,8 +3514,8 @@ export {
3514
3514
  Ts as c,
3515
3515
  ws as d,
3516
3516
  Y as e,
3517
- E as f,
3518
- L as g,
3517
+ A as f,
3518
+ S as g,
3519
3519
  mn as h,
3520
3520
  at as i,
3521
3521
  ui as j,