@xwadex/fesd 0.0.14-re.80 → 0.0.14-re.81
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 p = (n, i, t) => {
|
|
9
9
|
};
|
10
10
|
var d = (n, i, t) => (hs(n, i, "access private method"), t);
|
11
11
|
import { OverlayScrollbars as Ce } from "overlayscrollbars";
|
12
|
-
import
|
12
|
+
import f from "jquery";
|
13
13
|
import "./vendor-bundle.js";
|
14
14
|
import "validator";
|
15
15
|
import "flatpickr";
|
@@ -46,7 +46,7 @@ const Y = {
|
|
46
46
|
TEMPLATE() {
|
47
47
|
return '<div class="player-container"><div class="player-wrapper"></div></div>';
|
48
48
|
}
|
49
|
-
},
|
49
|
+
}, fs = {
|
50
50
|
SETTINGS: {
|
51
51
|
success: null,
|
52
52
|
text: null,
|
@@ -131,7 +131,7 @@ const Y = {
|
|
131
131
|
</div>`;
|
132
132
|
return t || r;
|
133
133
|
}
|
134
|
-
},
|
134
|
+
}, gs = {
|
135
135
|
SETTINGS: {
|
136
136
|
basic_rwd: 900
|
137
137
|
}
|
@@ -290,14 +290,14 @@ const Y = {
|
|
290
290
|
__proto__: null,
|
291
291
|
anchor4: lt,
|
292
292
|
aost4: Re,
|
293
|
-
article4:
|
293
|
+
article4: gs,
|
294
294
|
collapse4: Ye,
|
295
295
|
dropdown4: He,
|
296
296
|
marquee4: x,
|
297
297
|
modal4: I,
|
298
298
|
multipurpose4: k,
|
299
299
|
ripple4: Ue,
|
300
|
-
share4:
|
300
|
+
share4: fs,
|
301
301
|
tab4: Fe,
|
302
302
|
video4: Y
|
303
303
|
}, Symbol.toStringTag, { value: "Module" })), w = {
|
@@ -361,7 +361,7 @@ const Y = {
|
|
361
361
|
return -t * ((n = n / e - 1) * n * n * n - 1) + i;
|
362
362
|
}
|
363
363
|
}, be = (n, i) => {
|
364
|
-
const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", h = c ? "left" : "top", m = c ? "width" : "height",
|
364
|
+
const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", h = c ? "left" : "top", m = c ? "width" : "height", g = b(e) ? T(e) : document.scrollingElement, v = g[u], C = b(t) ? T(t).getBoundingClientRect()[h] : 0 - v, L = b(s) ? T(s).getBoundingClientRect()[m] : 0, H = C - a - L, G = 15;
|
365
365
|
let A = 0;
|
366
366
|
if (H === 0)
|
367
367
|
return;
|
@@ -373,7 +373,7 @@ const Y = {
|
|
373
373
|
const Ie = () => {
|
374
374
|
A += G;
|
375
375
|
const R = ws[r](A, v, H, o);
|
376
|
-
|
376
|
+
g[u] = R, A < o && requestAnimationFrame(Ie), A >= o && X("afterScroll");
|
377
377
|
};
|
378
378
|
requestAnimationFrame(Ie);
|
379
379
|
};
|
@@ -455,12 +455,12 @@ const { MODALS: M } = window, Ts = (n) => {
|
|
455
455
|
s.append(o);
|
456
456
|
}), e.children[0];
|
457
457
|
};
|
458
|
-
var
|
458
|
+
var ft, Ke, gt, ti, vt, ei, bt, ii, yt, si;
|
459
459
|
class Ve extends HTMLElement {
|
460
460
|
constructor() {
|
461
461
|
super();
|
462
|
-
p(this, gt);
|
463
462
|
p(this, ft);
|
463
|
+
p(this, gt);
|
464
464
|
p(this, vt);
|
465
465
|
p(this, bt);
|
466
466
|
p(this, yt);
|
@@ -477,7 +477,7 @@ class Ve extends HTMLElement {
|
|
477
477
|
}
|
478
478
|
}
|
479
479
|
connectedCallback() {
|
480
|
-
this.initialize || (this.initialize = !0, d(this,
|
480
|
+
this.initialize || (this.initialize = !0, d(this, ft, Ke).call(this));
|
481
481
|
}
|
482
482
|
open() {
|
483
483
|
return this.setAttribute(":state", "open"), this;
|
@@ -489,12 +489,12 @@ class Ve extends HTMLElement {
|
|
489
489
|
return this.setAttribute(":state", "destroy"), this;
|
490
490
|
}
|
491
491
|
}
|
492
|
-
|
492
|
+
ft = new WeakSet(), Ke = function() {
|
493
493
|
const { ATTRS: t } = I;
|
494
494
|
this.__events__ = {}, this.getAttribute(":state") || this.setAttribute(":state", "close");
|
495
495
|
const e = this.getAttribute(t.id) || vs();
|
496
|
-
this.getAttribute(t.id) || (y(`modern-modal needs a ${t.id} attribute with a unique id.`), this.setAttribute(t.id, e)), M[e] && y(`the ${t.id} "${e}" is already be used.`), M[e] = this, d(this,
|
497
|
-
},
|
496
|
+
this.getAttribute(t.id) || (y(`modern-modal needs a ${t.id} attribute with a unique id.`), this.setAttribute(t.id, e)), M[e] && y(`the ${t.id} "${e}" is already be used.`), M[e] = this, d(this, gt, ti).call(this);
|
497
|
+
}, gt = new WeakSet(), ti = function() {
|
498
498
|
this.childDom = this.childNodes, this.template = Ts(this), this.innerHTML = "", this.append(this.template), d(this, vt, ei).call(this);
|
499
499
|
}, vt = new WeakSet(), ei = function() {
|
500
500
|
const t = this.querySelector(".modal-scroller");
|
@@ -670,13 +670,13 @@ customElements.define("modern-modal", Ve);
|
|
670
670
|
const Ls = (n, i) => {
|
671
671
|
const t = n === window ? n.innerHeight : n.getBoundingClientRect().height, e = n === window ? 0 : n.getBoundingClientRect().top;
|
672
672
|
i.forEach((s) => {
|
673
|
-
const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: h, bottom: m } = s.getBoundingClientRect(),
|
674
|
-
if (h - e <=
|
673
|
+
const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: h, bottom: m } = s.getBoundingClientRect(), g = t * (r / 100), v = t * (l / 100);
|
674
|
+
if (h - e <= g && m - e >= v && s.offsetParent)
|
675
675
|
setTimeout(() => {
|
676
676
|
s.classList.add(o);
|
677
677
|
}, a);
|
678
678
|
else {
|
679
|
-
const L = s.classList.contains(o) && c === "down" && h - e >=
|
679
|
+
const L = s.classList.contains(o) && c === "down" && h - e >= g || c === "up" && m - e <= v || c === !0;
|
680
680
|
setTimeout(() => {
|
681
681
|
L && s.classList.remove(o);
|
682
682
|
}, a);
|
@@ -738,7 +738,7 @@ const Ss = (n) => {
|
|
738
738
|
s.append(o);
|
739
739
|
}), e.children[0];
|
740
740
|
};
|
741
|
-
var Lt, ui, At, hi, St, pi, Dt, mi, _t,
|
741
|
+
var Lt, ui, At, hi, St, pi, Dt, mi, _t, fi, xt, gi, $t, vi;
|
742
742
|
class Ds extends HTMLElement {
|
743
743
|
constructor() {
|
744
744
|
super();
|
@@ -809,10 +809,10 @@ Lt = new WeakSet(), ui = function() {
|
|
809
809
|
case "youkuAPI":
|
810
810
|
break;
|
811
811
|
case "youku":
|
812
|
-
e = d(this, xt,
|
812
|
+
e = d(this, xt, gi).call(this);
|
813
813
|
break;
|
814
814
|
case "vimeo":
|
815
|
-
e = d(this, _t,
|
815
|
+
e = d(this, _t, fi).call(this);
|
816
816
|
break;
|
817
817
|
case "bilibili":
|
818
818
|
e = d(this, $t, vi).call(this);
|
@@ -822,10 +822,10 @@ Lt = new WeakSet(), ui = function() {
|
|
822
822
|
}, Dt = new WeakSet(), mi = function() {
|
823
823
|
const { videoId: t, autoplay: e } = this;
|
824
824
|
return `<iframe src="https://www.youtube.com/embed/${t}?rel=0&${e === "on" ? "autoplay=1" : ""}&mute=1&loop=1&enablejsapi=1" frameborder="0" allowfullscreen="0" volumn="0" allow="${e === "on" ? "autoplay;" : ""} encrypted-media; gyroscope; picture-in-picture;"></iframe>`;
|
825
|
-
}, _t = new WeakSet(),
|
825
|
+
}, _t = new WeakSet(), fi = function() {
|
826
826
|
const { videoId: t, autoplay: e, hash: s } = this;
|
827
827
|
return `<iframe src="https://player.vimeo.com/video/${t}?h=${s}&${e === "on" ? "autoplay=1" : ""}&loop=1&color=ffffff&title=0&byline=0&portrait=0" frameborder="0" allow="${e === "on" ? "autoplay;" : ""} fullscreen; picture-in-picture" allowfullscreen></iframe><script src="https://player.vimeo.com/api/player.js"><\/script>`;
|
828
|
-
}, xt = new WeakSet(),
|
828
|
+
}, xt = new WeakSet(), gi = function() {
|
829
829
|
const { videoId: t, autoplay: e } = this;
|
830
830
|
return `<iframe src="https://player.youku.com/embed/${t}?rel=0&${e === "on" ? "autoplay=1" : ""}" frameborder=0 "allowfullscreen"></iframe>`;
|
831
831
|
}, $t = new WeakSet(), vi = function() {
|
@@ -839,18 +839,18 @@ function bi(n) {
|
|
839
839
|
const i = [];
|
840
840
|
n && n.forEach((t) => {
|
841
841
|
t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
|
842
|
-
}),
|
842
|
+
}), f("html").addClass("scrollLock"), ps(i);
|
843
843
|
}
|
844
844
|
function yi(n) {
|
845
845
|
const i = [];
|
846
846
|
n && n.forEach((t) => {
|
847
847
|
t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
|
848
|
-
}),
|
848
|
+
}), f("html").removeClass("scrollLock"), ms(i);
|
849
849
|
}
|
850
850
|
async function hn(n = 0) {
|
851
|
-
if (
|
851
|
+
if (f(".loading-wrapper").length)
|
852
852
|
return;
|
853
|
-
|
853
|
+
f("body").append(`
|
854
854
|
<div class="loading-wrapper">
|
855
855
|
<div class="icon-box">
|
856
856
|
<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">
|
@@ -860,13 +860,13 @@ async function hn(n = 0) {
|
|
860
860
|
</svg>
|
861
861
|
</div>
|
862
862
|
</div>
|
863
|
-
`),
|
863
|
+
`), f(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
|
864
864
|
bi();
|
865
865
|
});
|
866
866
|
}
|
867
867
|
function pn() {
|
868
|
-
|
869
|
-
|
868
|
+
f(".loading-wrapper").fadeOut(300).promise().done(function() {
|
869
|
+
f(".loading-wrapper").remove(), yi();
|
870
870
|
});
|
871
871
|
}
|
872
872
|
function mn(n, i) {
|
@@ -877,13 +877,13 @@ function _s() {
|
|
877
877
|
} }), t = new Ys(), e = new Je("[data-anchor-target]");
|
878
878
|
n.update(), i.update(), t.reValidate(), e.update();
|
879
879
|
}
|
880
|
-
function
|
880
|
+
function fn(n, i = () => {
|
881
881
|
}) {
|
882
|
-
|
882
|
+
f(`[data-tab-content=${n}]`).fadeIn(function() {
|
883
883
|
typeof i == "function" && i();
|
884
884
|
}).siblings("[data-tab-content]").hide(), _s();
|
885
885
|
}
|
886
|
-
function
|
886
|
+
function gn() {
|
887
887
|
Ce(
|
888
888
|
{
|
889
889
|
target: document.body,
|
@@ -920,13 +920,13 @@ function bn() {
|
|
920
920
|
};
|
921
921
|
}
|
922
922
|
function yn(n, i) {
|
923
|
-
|
924
|
-
|
923
|
+
f(n).on("click", function() {
|
924
|
+
f(this).toggleClass(i);
|
925
925
|
});
|
926
926
|
}
|
927
927
|
function wn(n, i) {
|
928
|
-
|
929
|
-
|
928
|
+
f(n).on("click", function() {
|
929
|
+
f(n).not(this).removeClass(i), f(this).addClass(i);
|
930
930
|
});
|
931
931
|
}
|
932
932
|
function xs(n, i = 250) {
|
@@ -948,12 +948,12 @@ function Tn(n, i = 250) {
|
|
948
948
|
};
|
949
949
|
}
|
950
950
|
function En() {
|
951
|
-
window._g.interval = [],
|
952
|
-
const e = Number(
|
951
|
+
window._g.interval = [], f(".countdown").each((i, t) => {
|
952
|
+
const e = Number(f(t).attr("data-seconds")) + 1;
|
953
953
|
let s = Math.floor(e / 60) + ":" + e % 60;
|
954
954
|
window._g.interval[i] = setInterval(function() {
|
955
955
|
var o = s.split(":"), a = parseInt(o[0], 10), r = parseInt(o[1], 10);
|
956
|
-
--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,
|
956
|
+
--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;
|
957
957
|
}, 1e3);
|
958
958
|
});
|
959
959
|
}
|
@@ -972,13 +972,13 @@ function An() {
|
|
972
972
|
n(), window.addEventListener("resize", xs(n));
|
973
973
|
}
|
974
974
|
function Sn(n, i, t, e, s) {
|
975
|
-
const o = this, r =
|
975
|
+
const o = this, r = f(n).html().split("<br>");
|
976
976
|
let l = "", c = 0;
|
977
977
|
r.forEach((u, h) => {
|
978
|
-
h !== 0 && (l += "<br>"), u.split("").forEach((
|
979
|
-
i ? (v === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'),
|
978
|
+
h !== 0 && (l += "<br>"), u.split("").forEach((g, v) => {
|
979
|
+
i ? (v === 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++), v === 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++);
|
980
980
|
});
|
981
|
-
}),
|
981
|
+
}), f(n).html(l);
|
982
982
|
}
|
983
983
|
function Dn(n, i) {
|
984
984
|
const t = Math.pow(10, i);
|
@@ -1001,7 +1001,7 @@ function _n(n) {
|
|
1001
1001
|
}
|
1002
1002
|
function xn(n, i) {
|
1003
1003
|
const t = n.$el, e = n.params.grid.rows, s = i || n.params.slidesPerView * e;
|
1004
|
-
(n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"),
|
1004
|
+
(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());
|
1005
1005
|
}
|
1006
1006
|
function $n(n) {
|
1007
1007
|
n.el.querySelectorAll("img.detect-shade").forEach((i) => {
|
@@ -1011,36 +1011,36 @@ function $n(n) {
|
|
1011
1011
|
});
|
1012
1012
|
}
|
1013
1013
|
function kn(n) {
|
1014
|
-
const i = n.el, t =
|
1015
|
-
n.autoplay.stop(),
|
1014
|
+
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");
|
1015
|
+
n.autoplay.stop(), f(e).off("ended"), e ? (s.each((o, a) => {
|
1016
1016
|
a.currentTime = 0;
|
1017
|
-
}),
|
1017
|
+
}), f(e).on("ended", function() {
|
1018
1018
|
n.slideNext();
|
1019
1019
|
}), e.play()) : n.params.autoplay.enabled && n.autoplay.start();
|
1020
1020
|
}
|
1021
1021
|
function Cn() {
|
1022
|
-
|
1023
|
-
const t =
|
1022
|
+
f(".number-grow").each(function(n, i) {
|
1023
|
+
const t = f(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
|
1024
1024
|
let r = "";
|
1025
1025
|
for (var l = 0; l <= 9; l++)
|
1026
1026
|
r += String(l) + "<br>";
|
1027
1027
|
return r;
|
1028
1028
|
};
|
1029
|
-
|
1029
|
+
f(o).each(function(r, l) {
|
1030
1030
|
const c = () => l !== "," ? `<div class="num" data-final-num="${l}"><div><br>${a()}<br>${a()}</div></div>` : `<div class="comma">${l}</div>`;
|
1031
1031
|
t.append(c);
|
1032
1032
|
});
|
1033
1033
|
});
|
1034
1034
|
}
|
1035
1035
|
function Hn() {
|
1036
|
-
|
1037
|
-
const t =
|
1036
|
+
f(".letter-grow").each(function(n, i) {
|
1037
|
+
const t = f(i), s = t.attr("data-letter").split(""), o = () => {
|
1038
1038
|
let a = "";
|
1039
1039
|
for (let r = 65; r <= 90; r++)
|
1040
1040
|
a += String.fromCharCode(r) + "<br>";
|
1041
1041
|
return a;
|
1042
1042
|
};
|
1043
|
-
|
1043
|
+
f(s).each(function(a, r) {
|
1044
1044
|
const l = `<div class="letter" data-final-letter="${r}"><div><br>${o()}<br>${o()}</div></div>`;
|
1045
1045
|
t.append(l);
|
1046
1046
|
});
|
@@ -1101,8 +1101,8 @@ V = new WeakSet(), Le = function() {
|
|
1101
1101
|
i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(w.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), y("video4", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構,若無結構則自動加入圖片結構"));
|
1102
1102
|
const m = s.querySelector("img");
|
1103
1103
|
m.insertAdjacentHTML(w.after, t[o]);
|
1104
|
-
const
|
1105
|
-
!
|
1104
|
+
const g = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
|
1105
|
+
!g && r == "youtube" ? m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !g && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : y("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片");
|
1106
1106
|
}
|
1107
1107
|
c == "off" ? h = s : (h = s.querySelector(c) ?? s, s.querySelector(c) || y("video4", `找不到 videoButton 設定的 element -> '${c}' , 點擊物件轉移至 '${this.__storage__.el}'`)), h.video || (h.video = {}, h.video.params = e), h.video.eventHandler = d(this, K, Ae), h.addEventListener("click", h.video.eventHandler);
|
1108
1108
|
} else if (l === "onPage") {
|
@@ -1111,8 +1111,8 @@ V = new WeakSet(), Le = function() {
|
|
1111
1111
|
i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(w.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), y("video", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構"));
|
1112
1112
|
const m = s.querySelector("img");
|
1113
1113
|
m.insertAdjacentHTML(w.after, t[o]);
|
1114
|
-
const
|
1115
|
-
!
|
1114
|
+
const g = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
|
1115
|
+
!g && r == "youtube" ? m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !g && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : g || y("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? h = s : (h = s.querySelector(c) ?? s, s.querySelector(c) || y("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
|
1116
1116
|
} else {
|
1117
1117
|
s.innerHTML = ye(e);
|
1118
1118
|
return;
|
@@ -2277,7 +2277,7 @@ Mt = new WeakSet(), Si = function() {
|
|
2277
2277
|
const a = e.querySelector(".dropdown-scroller"), r = e.classList.contains("city");
|
2278
2278
|
e.s.allLi = e.querySelectorAll(".dropdown-list li"), e.s.allLi.forEach((l) => {
|
2279
2279
|
l.addEventListener("click", function(c) {
|
2280
|
-
var
|
2280
|
+
var g;
|
2281
2281
|
const u = this, h = [...e.s.allLi].indexOf(u), m = parseInt(e.getAttribute("d4-default-height"));
|
2282
2282
|
if (u.classList.contains("has-sublayer")) {
|
2283
2283
|
c.stopPropagation();
|
@@ -2301,7 +2301,7 @@ Mt = new WeakSet(), Si = function() {
|
|
2301
2301
|
A.textContent = H[0], A.setAttribute("data-option", H[0]), L.querySelector(".dropdown-list").append(A);
|
2302
2302
|
}), e.__events__.selectOption(L));
|
2303
2303
|
}
|
2304
|
-
(
|
2304
|
+
(g = u.parentNode.closest("li")) != null && g.classList.contains("has-sublayer") && (c.stopPropagation(), e.close());
|
2305
2305
|
break;
|
2306
2306
|
case "multiple":
|
2307
2307
|
c.stopPropagation(), u.classList.toggle("active"), $(e, h);
|
@@ -2509,7 +2509,7 @@ Nt = new WeakSet(), $i = function() {
|
|
2509
2509
|
}));
|
2510
2510
|
break;
|
2511
2511
|
case "alternate":
|
2512
|
-
let
|
2512
|
+
let g = function() {
|
2513
2513
|
let v = [];
|
2514
2514
|
switch (e) {
|
2515
2515
|
case "top":
|
@@ -2527,7 +2527,7 @@ Nt = new WeakSet(), $i = function() {
|
|
2527
2527
|
}
|
2528
2528
|
return v;
|
2529
2529
|
}, h, m;
|
2530
|
-
(t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${
|
2530
|
+
(t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${g()[0].transform}`, t.s.animateEl.animate(g(), {
|
2531
2531
|
duration: m,
|
2532
2532
|
fill: "forwards"
|
2533
2533
|
}).finished.then(() => {
|
@@ -2615,7 +2615,7 @@ class We {
|
|
2615
2615
|
}
|
2616
2616
|
// 更新 active 位置
|
2617
2617
|
update(i) {
|
2618
|
-
const t =
|
2618
|
+
const t = this.$element.querySelector(".wrapper"), e = t == null ? void 0 : t.querySelector(".active");
|
2619
2619
|
if (e) {
|
2620
2620
|
const s = e.offsetLeft + e.getBoundingClientRect().width / 2 - t.getBoundingClientRect().width / 2;
|
2621
2621
|
t.scrollTo({
|
@@ -2678,9 +2678,9 @@ Wt = new WeakSet(), Mi = function() {
|
|
2678
2678
|
const c = function(h) {
|
2679
2679
|
if (h.preventDefault(), e = !0, !t)
|
2680
2680
|
return;
|
2681
|
-
const
|
2681
|
+
const g = h.pageX - i.offsetLeft - s;
|
2682
2682
|
i.scrollTo({
|
2683
|
-
left: o -
|
2683
|
+
left: o - g
|
2684
2684
|
});
|
2685
2685
|
};
|
2686
2686
|
i.removeEventListener("mousemove", c), i.addEventListener("mousemove", c);
|
@@ -2698,7 +2698,7 @@ Wt = new WeakSet(), Mi = function() {
|
|
2698
2698
|
if (!t)
|
2699
2699
|
return;
|
2700
2700
|
const s = i.scrollWidth - i.clientWidth, o = i.scrollLeft;
|
2701
|
-
if (
|
2701
|
+
if (s <= 0) {
|
2702
2702
|
_(t, "hide"), S(t, "active"), _(e, "noScrollable");
|
2703
2703
|
return;
|
2704
2704
|
}
|
@@ -3201,14 +3201,14 @@ function ls() {
|
|
3201
3201
|
});
|
3202
3202
|
}
|
3203
3203
|
document.addEventListener("click", ls);
|
3204
|
-
var ot, ke, me, cs,
|
3204
|
+
var ot, ke, me, cs, fe, ds, ge, us;
|
3205
3205
|
class Fs extends HTMLElement {
|
3206
3206
|
constructor() {
|
3207
3207
|
super();
|
3208
3208
|
p(this, ot);
|
3209
3209
|
p(this, me);
|
3210
|
-
p(this, ge);
|
3211
3210
|
p(this, fe);
|
3211
|
+
p(this, ge);
|
3212
3212
|
this.initialize = !1;
|
3213
3213
|
}
|
3214
3214
|
connectedCallback() {
|
@@ -3236,11 +3236,11 @@ ot = new WeakSet(), ke = function() {
|
|
3236
3236
|
};
|
3237
3237
|
this.s.options = s, this.s.options.hover && this.classList.add("hover-btn"), d(this, me, cs).call(this);
|
3238
3238
|
}, me = new WeakSet(), cs = function() {
|
3239
|
-
d(this,
|
3240
|
-
},
|
3239
|
+
d(this, fe, ds).call(this), d(this, ge, us).call(this), this.classList.add("r4-initialize");
|
3240
|
+
}, fe = new WeakSet(), ds = function() {
|
3241
3241
|
const t = this, e = document.createElement("i");
|
3242
3242
|
e.classList.add("hover-ball"), e.style.transitionDuration = `${t.s.options.speed}ms`, t.appendChild(e);
|
3243
|
-
},
|
3243
|
+
}, ge = new WeakSet(), us = function() {
|
3244
3244
|
const t = this.querySelector("i.hover-ball"), e = this;
|
3245
3245
|
e.addEventListener("click", function(a) {
|
3246
3246
|
a.stopPropagation(), e.s.options.click && Rs(a, e);
|
@@ -3350,8 +3350,8 @@ function Js(n, i, t, e) {
|
|
3350
3350
|
l < c ? (u = e / l * 100, h = s.height) : l > c ? (u = s.width, h = t * l / 100) : l === c && (u = s.width, h = s.height);
|
3351
3351
|
break;
|
3352
3352
|
}
|
3353
|
-
const m = (s.width - u) * 0.5,
|
3354
|
-
return o.drawImage(i, m,
|
3353
|
+
const m = (s.width - u) * 0.5, g = (s.height - h) * 0.5;
|
3354
|
+
return o.drawImage(i, m, g, u, h), s;
|
3355
3355
|
}
|
3356
3356
|
function Zs(n, i) {
|
3357
3357
|
return new Promise((t, e) => {
|
@@ -3464,7 +3464,7 @@ export {
|
|
3464
3464
|
b as a,
|
3465
3465
|
rt as b,
|
3466
3466
|
vs as c,
|
3467
|
-
|
3467
|
+
gs as d,
|
3468
3468
|
Y as e,
|
3469
3469
|
w as f,
|
3470
3470
|
E as g,
|
@@ -3479,13 +3479,13 @@ export {
|
|
3479
3479
|
un as p,
|
3480
3480
|
bi as q,
|
3481
3481
|
yi as r,
|
3482
|
-
|
3482
|
+
fs as s,
|
3483
3483
|
hn as t,
|
3484
3484
|
pn as u,
|
3485
3485
|
ks as v,
|
3486
3486
|
mn as w,
|
3487
3487
|
_s as x,
|
3488
|
-
|
3489
|
-
|
3488
|
+
fn as y,
|
3489
|
+
gn as z
|
3490
3490
|
};
|
3491
3491
|
//# sourceMappingURL=image-preview-bundle.js.map
|