@xwadex/fesd 0.0.14-re.84 → 0.0.14-re.86

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.
@@ -9,7 +9,7 @@ var h = (n, i, t) => {
9
9
  };
10
10
  var d = (n, i, t) => (fs(n, i, "access private method"), t);
11
11
  import { OverlayScrollbars as Me } from "overlayscrollbars";
12
- import v from "jquery";
12
+ import f from "jquery";
13
13
  import "./vendor-bundle.js";
14
14
  import "validator";
15
15
  import "flatpickr";
@@ -365,7 +365,7 @@ const Y = {
365
365
  return -t * ((n = n / e - 1) * n * n * n - 1) + i;
366
366
  }
367
367
  }, we = (n, i) => {
368
- 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", m = c ? "width" : "height", g = w(e) ? A(e) : document.scrollingElement, f = g[u], b = w(t) ? A(t).getBoundingClientRect()[p] : 0 - f, y = w(s) ? A(s).getBoundingClientRect()[m] : 0, H = b - a - y, G = 15;
368
+ 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, v = m[u], b = w(t) ? A(t).getBoundingClientRect()[p] : 0 - v, y = w(s) ? A(s).getBoundingClientRect()[g] : 0, H = b - a - y, G = 15;
369
369
  let S = 0;
370
370
  if (H === 0)
371
371
  return;
@@ -376,8 +376,8 @@ const Y = {
376
376
  X("beforeScroll");
377
377
  const Pe = () => {
378
378
  S += G;
379
- const R = Ls[r](S, f, H, o);
380
- g[u] = R, S < o && requestAnimationFrame(Pe), S >= o && X("afterScroll");
379
+ const R = Ls[r](S, v, H, o);
380
+ m[u] = R, S < o && requestAnimationFrame(Pe), S >= o && X("afterScroll");
381
381
  };
382
382
  requestAnimationFrame(Pe);
383
383
  };
@@ -505,7 +505,8 @@ gt = new WeakSet(), ei = function() {
505
505
  this.__scroller__ = Me(t, {
506
506
  overflowBehavior: {
507
507
  x: "hidden"
508
- }
508
+ },
509
+ autoUpdate: !0
509
510
  }), window.modalScroll = this.__scroller__, d(this, bt, ni).call(this);
510
511
  }, bt = new WeakSet(), ni = function() {
511
512
  var a, r, l;
@@ -595,8 +596,8 @@ const { MODALS: Ie } = window, ai = (n, i, ...t) => {
595
596
  };
596
597
  fetch(e).then((l) => (r("success", a), l.text())).then((l) => {
597
598
  const c = Es(l), u = A(s) || A(I.SETTINGS.container);
598
- [...c].forEach((m) => {
599
- u.append(m);
599
+ [...c].forEach((g) => {
600
+ u.append(g);
600
601
  });
601
602
  const p = Ie[t] || A(n.target);
602
603
  r("complete", p), li(n, i);
@@ -674,13 +675,13 @@ customElements.define("modern-modal", ti);
674
675
  const _s = (n, i) => {
675
676
  const t = n === window ? n.innerHeight : n.getBoundingClientRect().height, e = n === window ? 0 : n.getBoundingClientRect().top;
676
677
  i.forEach((s) => {
677
- const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: p, bottom: m } = s.getBoundingClientRect(), g = t * (r / 100), f = t * (l / 100);
678
- if (p - e <= g && m - e >= f && s.offsetParent)
678
+ const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: p, bottom: g } = s.getBoundingClientRect(), m = t * (r / 100), v = t * (l / 100);
679
+ if (p - e <= m && g - e >= v && s.offsetParent)
679
680
  setTimeout(() => {
680
681
  s.classList.add(o);
681
682
  }, a);
682
683
  else {
683
- const y = s.classList.contains(o) && c === "down" && p - e >= g || c === "up" && m - e <= f || c === !0;
684
+ const y = s.classList.contains(o) && c === "down" && p - e >= m || c === "up" && g - e <= v || c === !0;
684
685
  setTimeout(() => {
685
686
  y && s.classList.remove(o);
686
687
  }, a);
@@ -859,18 +860,18 @@ function Ei(n) {
859
860
  const i = [];
860
861
  n && n.forEach((t) => {
861
862
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
862
- }), v("html").addClass("scrollLock"), vs(i);
863
+ }), f("html").addClass("scrollLock"), vs(i);
863
864
  }
864
865
  function Ai(n) {
865
866
  const i = [];
866
867
  n && n.forEach((t) => {
867
868
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
868
- }), v("html").removeClass("scrollLock"), bs(i);
869
+ }), f("html").removeClass("scrollLock"), bs(i);
869
870
  }
870
871
  async function fn(n = 0) {
871
- if (v(".loading-wrapper").length)
872
+ if (f(".loading-wrapper").length)
872
873
  return;
873
- v("body").append(`
874
+ f("body").append(`
874
875
  <div class="loading-wrapper">
875
876
  <div class="icon-box">
876
877
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><path d="M10 50A40 40 0 0 0 90 50A40 42 0 0 1 10 50" fill="#ffffff" stroke="none">
@@ -880,13 +881,13 @@ async function fn(n = 0) {
880
881
  </svg>
881
882
  </div>
882
883
  </div>
883
- `), v(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
884
+ `), f(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
884
885
  Ei();
885
886
  });
886
887
  }
887
888
  function vn() {
888
- v(".loading-wrapper").fadeOut(300).promise().done(function() {
889
- v(".loading-wrapper").remove(), Ai();
889
+ f(".loading-wrapper").fadeOut(300).promise().done(function() {
890
+ f(".loading-wrapper").remove(), Ai();
890
891
  });
891
892
  }
892
893
  function bn(n, i) {
@@ -899,7 +900,7 @@ function Cs() {
899
900
  }
900
901
  function yn(n, i = () => {
901
902
  }) {
902
- v(`[data-tab-content=${n}]`).fadeIn(function() {
903
+ f(`[data-tab-content=${n}]`).fadeIn(function() {
903
904
  typeof i == "function" && i();
904
905
  }).siblings("[data-tab-content]").hide(), Cs();
905
906
  }
@@ -940,13 +941,13 @@ function En() {
940
941
  };
941
942
  }
942
943
  function An(n, i) {
943
- v(n).on("click", function() {
944
- v(this).toggleClass(i);
944
+ f(n).on("click", function() {
945
+ f(this).toggleClass(i);
945
946
  });
946
947
  }
947
948
  function Ln(n, i) {
948
- v(n).on("click", function() {
949
- v(n).not(this).removeClass(i), v(this).addClass(i);
949
+ f(n).on("click", function() {
950
+ f(n).not(this).removeClass(i), f(this).addClass(i);
950
951
  });
951
952
  }
952
953
  function Hs(n, i = 250) {
@@ -968,12 +969,12 @@ function Sn(n, i = 250) {
968
969
  };
969
970
  }
970
971
  function Dn() {
971
- window._g.interval = [], v(".countdown").each((i, t) => {
972
- const e = Number(v(t).attr("data-seconds")) + 1;
972
+ window._g.interval = [], f(".countdown").each((i, t) => {
973
+ const e = Number(f(t).attr("data-seconds")) + 1;
973
974
  let s = Math.floor(e / 60) + ":" + e % 60;
974
975
  window._g.interval[i] = setInterval(function() {
975
976
  var o = s.split(":"), a = parseInt(o[0], 10), r = parseInt(o[1], 10);
976
- --r, a = r < 0 ? --a : a, a = a < 10 ? a = "0" + a : a, a == 0 && r == 0 && clearInterval(window._g.interval[i]), r = r < 0 ? 59 : r, r = r < 10 ? "0" + r : r, v(t).html(a + ":" + r), s = a + ":" + r;
977
+ --r, a = r < 0 ? --a : a, a = a < 10 ? a = "0" + a : a, a == 0 && r == 0 && clearInterval(window._g.interval[i]), r = r < 0 ? 59 : r, r = r < 10 ? "0" + r : r, f(t).html(a + ":" + r), s = a + ":" + r;
977
978
  }, 1e3);
978
979
  });
979
980
  }
@@ -992,13 +993,13 @@ function kn() {
992
993
  n(), window.addEventListener("resize", Hs(n));
993
994
  }
994
995
  function $n(n, i, t, e, s) {
995
- const o = this, r = v(n).html().split("<br>");
996
+ const o = this, r = f(n).html().split("<br>");
996
997
  let l = "", c = 0;
997
998
  r.forEach((u, p) => {
998
- p !== 0 && (l += "<br>"), u.split("").forEach((g, f) => {
999
- i ? (f === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'), g === " " ? l += '</span> <span class="letter-wrap" style="display: inline-block">' : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++), f === u.length - 1 && (l += "</span>")) : g === " " ? l += " " : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++);
999
+ p !== 0 && (l += "<br>"), u.split("").forEach((m, v) => {
1000
+ i ? (v === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'), m === " " ? l += '</span> <span class="letter-wrap" style="display: inline-block">' : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${m}</span>`, c++), v === u.length - 1 && (l += "</span>")) : m === " " ? l += " " : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${m}</span>`, c++);
1000
1001
  });
1001
- }), v(n).html(l);
1002
+ }), f(n).html(l);
1002
1003
  }
1003
1004
  function xn(n, i) {
1004
1005
  const t = Math.pow(10, i);
@@ -1021,7 +1022,7 @@ function Cn(n) {
1021
1022
  }
1022
1023
  function Hn(n, i) {
1023
1024
  const t = n.$el, e = n.params.grid.rows, s = i || n.params.slidesPerView * e;
1024
- (n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"), v(n.params.navigation.nextEl).hide(), v(n.params.navigation.prevEl).hide(), v(n.params.pagination.el).hide(), n.params.autoplay.enabled = !1, n.autoplay.stop()) : (t.removeClass("swiper-no-swiping"), v(n.params.navigation.nextEl).show(), v(n.params.navigation.prevEl).show(), v(n.params.pagination.el).show(), n.params.autoplay.enabled && n.autoplay.start());
1025
+ (n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"), f(n.params.navigation.nextEl).hide(), f(n.params.navigation.prevEl).hide(), f(n.params.pagination.el).hide(), n.params.autoplay.enabled = !1, n.autoplay.stop()) : (t.removeClass("swiper-no-swiping"), f(n.params.navigation.nextEl).show(), f(n.params.navigation.prevEl).show(), f(n.params.pagination.el).show(), n.params.autoplay.enabled && n.autoplay.start());
1025
1026
  }
1026
1027
  function Mn(n) {
1027
1028
  n.el.querySelectorAll("img.detect-shade").forEach((i) => {
@@ -1031,36 +1032,36 @@ function Mn(n) {
1031
1032
  });
1032
1033
  }
1033
1034
  function qn(n) {
1034
- const i = n.el, t = v(i).find(".swiper-slide-active"), e = v(t).find("video").get(0), s = v(i).find(".swiper-slide video");
1035
- n.autoplay.stop(), v(e).off("ended"), e ? (s.each((o, a) => {
1035
+ const i = n.el, t = f(i).find(".swiper-slide-active"), e = f(t).find("video").get(0), s = f(i).find(".swiper-slide video");
1036
+ n.autoplay.stop(), f(e).off("ended"), e ? (s.each((o, a) => {
1036
1037
  a.currentTime = 0;
1037
- }), v(e).on("ended", function() {
1038
+ }), f(e).on("ended", function() {
1038
1039
  n.slideNext();
1039
1040
  }), e.play()) : n.params.autoplay.enabled && n.autoplay.start();
1040
1041
  }
1041
1042
  function In() {
1042
- v(".number-grow").each(function(n, i) {
1043
- const t = v(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
1043
+ f(".number-grow").each(function(n, i) {
1044
+ const t = f(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
1044
1045
  let r = "";
1045
1046
  for (var l = 0; l <= 9; l++)
1046
1047
  r += String(l) + "<br>";
1047
1048
  return r;
1048
1049
  };
1049
- v(o).each(function(r, l) {
1050
+ f(o).each(function(r, l) {
1050
1051
  const c = () => l !== "," ? `<div class="num" data-final-num="${l}"><div><br>${a()}<br>${a()}</div></div>` : `<div class="comma">${l}</div>`;
1051
1052
  t.append(c);
1052
1053
  });
1053
1054
  });
1054
1055
  }
1055
1056
  function On() {
1056
- v(".letter-grow").each(function(n, i) {
1057
- const t = v(i), s = t.attr("data-letter").split(""), o = () => {
1057
+ f(".letter-grow").each(function(n, i) {
1058
+ const t = f(i), s = t.attr("data-letter").split(""), o = () => {
1058
1059
  let a = "";
1059
1060
  for (let r = 65; r <= 90; r++)
1060
1061
  a += String.fromCharCode(r) + "<br>";
1061
1062
  return a;
1062
1063
  };
1063
- v(s).each(function(a, r) {
1064
+ f(s).each(function(a, r) {
1064
1065
  const l = `<div class="letter" data-final-letter="${r}"><div><br>${o()}<br>${o()}</div></div>`;
1065
1066
  t.append(l);
1066
1067
  });
@@ -1116,38 +1117,38 @@ V = new WeakSet(), Se = function() {
1116
1117
  }, Mt = new WeakSet(), Si = function(i) {
1117
1118
  const { LAYOUT: t } = Y, e = i.video.params, { $selector: s, videoLayoutNo: o, videoId: a, videoType: r, videoMode: l, videoButton: c, videoCover: u, videoHighQualityPic: p } = e;
1118
1119
  if (l === "onBox") {
1119
- let m = null;
1120
+ let g = null;
1120
1121
  if (u === "on") {
1121
1122
  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 結構,若無結構則自動加入圖片結構"));
1122
- const g = s.querySelector("img");
1123
- g.insertAdjacentHTML(E.after, t[o]);
1124
- const f = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1125
- !f && r == "youtube" ? p == "on" ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? g.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) => {
1123
+ const m = s.querySelector("img");
1124
+ m.insertAdjacentHTML(E.after, t[o]);
1125
+ const v = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
1126
+ !v && 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`) : !v && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !v && 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) => {
1126
1127
  const y = b.thumbnail_url;
1127
- g.setAttribute("src", `${y}`);
1128
+ m.setAttribute("src", `${y}`);
1128
1129
  }).catch(function(b) {
1129
1130
  console.log("error");
1130
1131
  }) : T("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片");
1131
1132
  }
1132
- c == "off" ? m = s : (m = s.querySelector(c) ?? s, s.querySelector(c) || T("video4", `找不到 videoButton 設定的 element -> '${c}' , 點擊物件轉移至 '${this.__storage__.el}'`)), m.video || (m.video = {}, m.video.params = e), m.video.eventHandler = d(this, K, De), m.addEventListener("click", m.video.eventHandler);
1133
+ 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);
1133
1134
  } else if (l === "onPage") {
1134
- let m = null;
1135
+ let g = null;
1135
1136
  if (u == "on") {
1136
1137
  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 結構"));
1137
- const g = s.querySelector("img");
1138
- g.insertAdjacentHTML(E.after, t[o]);
1139
- const f = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1140
- !f && r == "youtube" ? p == "on" ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? g.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) => {
1138
+ const m = s.querySelector("img");
1139
+ m.insertAdjacentHTML(E.after, t[o]);
1140
+ const v = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
1141
+ !v && 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`) : !v && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !v && 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) => {
1141
1142
  const y = b.thumbnail_url;
1142
- g.setAttribute("src", `${y}`);
1143
+ m.setAttribute("src", `${y}`);
1143
1144
  }).catch(function(b) {
1144
1145
  console.log("error");
1145
- }) : f || T("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? m = s : (m = s.querySelector(c) ?? s, s.querySelector(c) || T("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1146
+ }) : v || T("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || T("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1146
1147
  } else {
1147
1148
  s.innerHTML = Te(e);
1148
1149
  return;
1149
1150
  }
1150
- m.video || (m.video = {}, m.video.params = e), m.video.eventHandler = d(this, K, De), m.addEventListener("click", m.video.eventHandler);
1151
+ g.video || (g.video = {}, g.video.params = e), g.video.eventHandler = d(this, K, De), g.addEventListener("click", g.video.eventHandler);
1151
1152
  }
1152
1153
  }, K = new WeakSet(), De = function(i) {
1153
1154
  const { video: t, emit: e } = this, { $selector: s, videoMode: o, videoTarget: a, videoTargetRoute: r, videoType: l, videoIgHtml: c } = t.params, u = new Fe({ callback_loaded: (p) => {
@@ -1157,27 +1158,26 @@ V = new WeakSet(), Se = function() {
1157
1158
  target: a,
1158
1159
  route: r,
1159
1160
  on: {
1160
- complete(m) {
1161
- if (l == "instagram") {
1162
- const g = (f) => `${c}`;
1163
- if (m.querySelector(".modal-content").insertAdjacentHTML("beforeend", g(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`), window.instgrm)
1161
+ complete(g) {
1162
+ if (l == "instagram")
1163
+ if (g.setAttribute("video-typeStyle", `${l}`), window.instgrm)
1164
1164
  window.instgrm.Embeds.process();
1165
1165
  else {
1166
- const f = document.createElement("script");
1167
- f.src = "https://www.instagram.com/embed.js", f.async = !0, document.body.appendChild(f);
1166
+ const m = document.createElement("script");
1167
+ m.src = "https://www.instagram.com/embed.js", m.async = !0, document.body.appendChild(m);
1168
1168
  }
1169
- } else
1170
- m.querySelector(".modal-content").insertAdjacentHTML("beforeend", Te(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`);
1169
+ else
1170
+ g.querySelector(".modal-content").insertAdjacentHTML("beforeend", Te(t.params)), g.setAttribute("video-typeStyle", `${l}`);
1171
1171
  },
1172
- open(m) {
1173
- const g = m.querySelectorAll("[data-overlayscrollbars-viewport]");
1174
- u.update(), window.modalScroll.update(), Ei([...g]);
1172
+ open(g) {
1173
+ const m = g.querySelectorAll("[data-overlayscrollbars-viewport]");
1174
+ u.update(), Ei([...m]);
1175
1175
  },
1176
- close(m) {
1177
- const g = m.querySelectorAll("[data-overlayscrollbars-viewport]");
1178
- Ai([...g]);
1176
+ close(g) {
1177
+ const m = g.querySelectorAll("[data-overlayscrollbars-viewport]");
1178
+ Ai([...m]);
1179
1179
  },
1180
- destroy(m) {
1180
+ destroy(g) {
1181
1181
  }
1182
1182
  }
1183
1183
  };
@@ -2286,9 +2286,9 @@ It = new WeakSet(), $i = function() {
2286
2286
  if (t.__scroller__) {
2287
2287
  const { viewport: c } = t.__scroller__.elements();
2288
2288
  if (w(t.s.activeLi)) {
2289
- const u = t.s.activeLi.clientHeight / 2, p = t.s.activeLi.offsetTop, m = p - r.clientHeight / 2 + u > 0 ? p - r.clientHeight / 2 + u : 0;
2289
+ const u = t.s.activeLi.clientHeight / 2, p = t.s.activeLi.offsetTop, g = p - r.clientHeight / 2 + u > 0 ? p - r.clientHeight / 2 + u : 0;
2290
2290
  c.scrollTo({
2291
- top: m,
2291
+ top: g,
2292
2292
  behavior: "smooth"
2293
2293
  });
2294
2294
  } else
@@ -2319,31 +2319,31 @@ It = new WeakSet(), $i = function() {
2319
2319
  const a = e.querySelector(".dropdown-scroller"), r = e.classList.contains("city");
2320
2320
  e.s.allLi = e.querySelectorAll(".dropdown-list li"), e.s.allLi.forEach((l) => {
2321
2321
  l.addEventListener("click", function(c) {
2322
- var g;
2323
- const u = this, p = [...e.s.allLi].indexOf(u), m = parseInt(e.getAttribute("d4-default-height"));
2322
+ var m;
2323
+ const u = this, p = [...e.s.allLi].indexOf(u), g = parseInt(e.getAttribute("d4-default-height"));
2324
2324
  if (u.classList.contains("has-sublayer")) {
2325
2325
  c.stopPropagation();
2326
- const f = u.querySelector(".sub-dropdown"), b = f.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
2327
- f.style.cssText = `--height: ${b.offsetHeight + y}px`;
2328
- const H = parseInt(f.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), S = () => {
2329
- s = m + e.s.subDropdownTotalH, o = s > G ? G : s, e.style.cssText = `--maxHeight: ${o}px;`, e.s.dropdownEl.style.height = `${o}px`;
2326
+ const v = u.querySelector(".sub-dropdown"), b = v.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
2327
+ v.style.cssText = `--height: ${b.offsetHeight + y}px`;
2328
+ const H = parseInt(v.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), S = () => {
2329
+ s = g + e.s.subDropdownTotalH, o = s > G ? G : s, e.style.cssText = `--maxHeight: ${o}px;`, e.s.dropdownEl.style.height = `${o}px`;
2330
2330
  };
2331
2331
  u.classList.contains("open") ? (u.classList.remove("open"), e.s.subDropdownTotalH -= H, S()) : (u.classList.add("open"), e.s.subDropdownTotalH += H, S());
2332
2332
  const X = () => {
2333
- e.__scroller__.update(!0), f.removeEventListener("transitionend", X);
2333
+ e.__scroller__.update(!0), v.removeEventListener("transitionend", X);
2334
2334
  };
2335
- f.addEventListener("transitionend", X);
2335
+ v.addEventListener("transitionend", X);
2336
2336
  } else
2337
2337
  switch (Os(e), e.s.selectType) {
2338
2338
  case "single":
2339
2339
  if (e.setAttribute("d4-value", u.getAttribute("data-option")), r) {
2340
- const f = e.s.cityLang, b = l.textContent.trim(), y = document.getElementById(e.getAttribute("dist-select"));
2341
- y && (y.querySelector(".dropdown-list").textContent = "", x(y, -1), Oe[f][b].forEach((H, G) => {
2340
+ const v = e.s.cityLang, b = l.textContent.trim(), y = document.getElementById(e.getAttribute("dist-select"));
2341
+ y && (y.querySelector(".dropdown-list").textContent = "", x(y, -1), Oe[v][b].forEach((H, G) => {
2342
2342
  const S = document.createElement("li");
2343
2343
  S.textContent = H[0], S.setAttribute("data-option", H[0]), y.querySelector(".dropdown-list").append(S);
2344
2344
  }), e.__events__.selectOption(y));
2345
2345
  }
2346
- (g = u.parentNode.closest("li")) != null && g.classList.contains("has-sublayer") && (c.stopPropagation(), e.close());
2346
+ (m = u.parentNode.closest("li")) != null && m.classList.contains("has-sublayer") && (c.stopPropagation(), e.close());
2347
2347
  break;
2348
2348
  case "multiple":
2349
2349
  c.stopPropagation(), u.classList.toggle("active"), x(e, p);
@@ -2551,26 +2551,26 @@ jt = new WeakSet(), Mi = function() {
2551
2551
  }));
2552
2552
  break;
2553
2553
  case "alternate":
2554
- let g = function() {
2555
- let f = [];
2554
+ let m = function() {
2555
+ let v = [];
2556
2556
  switch (e) {
2557
2557
  case "top":
2558
- p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollHeight, f = [{ transform: `translate3d(0,${t.clientHeight}px,0)` }, { transform: `translate3d(0,calc(${t.clientHeight}px - 100%),0)` }];
2558
+ p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), g = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollHeight, v = [{ transform: `translate3d(0,${t.clientHeight}px,0)` }, { transform: `translate3d(0,calc(${t.clientHeight}px - 100%),0)` }];
2559
2559
  break;
2560
2560
  case "right":
2561
- p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollWidth, f = [{ transform: "translate3d(-100%,0,0)" }, { transform: "translate3d(0,0,0)" }];
2561
+ p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), g = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollWidth, v = [{ transform: "translate3d(-100%,0,0)" }, { transform: "translate3d(0,0,0)" }];
2562
2562
  break;
2563
2563
  case "bottom":
2564
- p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollHeight, f = [{ transform: "translate3d(0,-100%,0)" }, { transform: "translate3d(0,0,0)" }];
2564
+ p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), g = parseInt(o / (p * 2)) * t.s.animateEl.scrollHeight, v = [{ transform: "translate3d(0,-100%,0)" }, { transform: "translate3d(0,0,0)" }];
2565
2565
  break;
2566
2566
  case "left":
2567
- p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollWidth, f = [{ transform: `translate3d(${t.clientWidth}px,0,0)` }, { transform: `translate3d(calc(-100% + ${t.clientWidth}px),0,0)` }];
2567
+ p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), g = parseInt(o / (p * 2)) * t.s.animateEl.scrollWidth, v = [{ transform: `translate3d(${t.clientWidth}px,0,0)` }, { transform: `translate3d(calc(-100% + ${t.clientWidth}px),0,0)` }];
2568
2568
  break;
2569
2569
  }
2570
- return f;
2571
- }, p, m;
2572
- (t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${g()[0].transform}`, t.s.animateEl.animate(g(), {
2573
- duration: m,
2570
+ return v;
2571
+ }, p, g;
2572
+ (t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${m()[0].transform}`, t.s.animateEl.animate(m(), {
2573
+ duration: g,
2574
2574
  fill: "forwards"
2575
2575
  }).finished.then(() => {
2576
2576
  t.s.animation = t.s.animateEl.animate(_(t).animate1, {
@@ -2720,9 +2720,9 @@ Gt = new WeakSet(), Pi = function() {
2720
2720
  const c = function(p) {
2721
2721
  if (p.preventDefault(), e = !0, !t)
2722
2722
  return;
2723
- const g = p.pageX - i.offsetLeft - s;
2723
+ const m = p.pageX - i.offsetLeft - s;
2724
2724
  i.scrollTo({
2725
- left: o - g
2725
+ left: o - m
2726
2726
  });
2727
2727
  };
2728
2728
  i.removeEventListener("mousemove", c), i.addEventListener("mousemove", c);
@@ -3218,8 +3218,8 @@ st = new WeakSet(), xe = function() {
3218
3218
  }, ge = new WeakSet(), us = function(i) {
3219
3219
  const { options: t } = this, { collapseClass: e, block: s, target: o, defaultOpen: a, targetStopPropagation: r, defaultActiveMark: l } = t, c = i, u = c.querySelector(o);
3220
3220
  if (c.collapse.height = u.children[0].offsetHeight, a ? (u.style.height = `${u.children[0].offsetHeight}px`, c.classList.remove(e)) : !c.classList.contains(l) && !c.hasAttribute(l) ? (c.classList.add(e), u.style.height = "0px", u.style.overflow = "hidden") : (u.style.height = `${u.children[0].offsetHeight}px`, c.classList.remove(e)), c.removeEventListener("click", d(this, nt, Ce)), c.addEventListener("click", d(this, nt, Ce)), r) {
3221
- const p = (m) => {
3222
- m.stopPropagation();
3221
+ const p = (g) => {
3222
+ g.stopPropagation();
3223
3223
  };
3224
3224
  u.removeEventListener("click", p), u.addEventListener("click", p);
3225
3225
  }
@@ -3392,8 +3392,8 @@ function Ks(n, i, t, e) {
3392
3392
  l < c ? (u = e / l * 100, p = s.height) : l > c ? (u = s.width, p = t * l / 100) : l === c && (u = s.width, p = s.height);
3393
3393
  break;
3394
3394
  }
3395
- const m = (s.width - u) * 0.5, g = (s.height - p) * 0.5;
3396
- return o.drawImage(i, m, g, u, p), s;
3395
+ const g = (s.width - u) * 0.5, m = (s.height - p) * 0.5;
3396
+ return o.drawImage(i, g, m, u, p), s;
3397
3397
  }
3398
3398
  function tn(n, i) {
3399
3399
  return new Promise((t, e) => {