@xwadex/fesd 0.0.14-re.72 → 0.0.14-re.73
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.
- package/dist/image-preview-bundle.js +152 -136
- package/dist/image-preview-bundle.js.map +1 -1
- package/dist/tools-bundle.js +8 -7
- package/package.json +1 -1
@@ -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 g 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
|
+
}, gs = {
|
50
50
|
SETTINGS: {
|
51
51
|
success: null,
|
52
52
|
text: null,
|
@@ -128,7 +128,7 @@ const Y = {
|
|
128
128
|
</div>
|
129
129
|
`;
|
130
130
|
}
|
131
|
-
},
|
131
|
+
}, fs = {
|
132
132
|
SETTINGS: {
|
133
133
|
basic_rwd: 900
|
134
134
|
}
|
@@ -173,7 +173,7 @@ const Y = {
|
|
173
173
|
beforeScroll: null,
|
174
174
|
afterScroll: null
|
175
175
|
}
|
176
|
-
},
|
176
|
+
}, k = {
|
177
177
|
SETTINGS: {
|
178
178
|
type: "drag",
|
179
179
|
drag: {
|
@@ -287,14 +287,14 @@ const Y = {
|
|
287
287
|
__proto__: null,
|
288
288
|
anchor4: lt,
|
289
289
|
aost4: Re,
|
290
|
-
article4:
|
290
|
+
article4: fs,
|
291
291
|
collapse4: Ye,
|
292
292
|
dropdown4: He,
|
293
293
|
marquee4: x,
|
294
294
|
modal4: I,
|
295
|
-
multipurpose4:
|
295
|
+
multipurpose4: k,
|
296
296
|
ripple4: Ue,
|
297
|
-
share4:
|
297
|
+
share4: gs,
|
298
298
|
tab4: Fe,
|
299
299
|
video4: Y
|
300
300
|
}, Symbol.toStringTag, { value: "Module" })), w = {
|
@@ -358,7 +358,7 @@ const Y = {
|
|
358
358
|
return -t * ((n = n / e - 1) * n * n * n - 1) + i;
|
359
359
|
}
|
360
360
|
}, be = (n, i) => {
|
361
|
-
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",
|
361
|
+
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", f = b(e) ? T(e) : document.scrollingElement, v = f[u], C = b(t) ? T(t).getBoundingClientRect()[h] : 0 - v, L = b(s) ? T(s).getBoundingClientRect()[m] : 0, H = C - a - L, G = 15;
|
362
362
|
let A = 0;
|
363
363
|
if (H === 0)
|
364
364
|
return;
|
@@ -370,7 +370,7 @@ const Y = {
|
|
370
370
|
const Ie = () => {
|
371
371
|
A += G;
|
372
372
|
const R = ws[r](A, v, H, o);
|
373
|
-
|
373
|
+
f[u] = R, A < o && requestAnimationFrame(Ie), A >= o && X("afterScroll");
|
374
374
|
};
|
375
375
|
requestAnimationFrame(Ie);
|
376
376
|
};
|
@@ -452,12 +452,12 @@ const { MODALS: M } = window, Ts = (n) => {
|
|
452
452
|
s.append(o);
|
453
453
|
}), e.children[0];
|
454
454
|
};
|
455
|
-
var
|
455
|
+
var gt, Ke, ft, ti, vt, ei, bt, ii, yt, si;
|
456
456
|
class Ve extends HTMLElement {
|
457
457
|
constructor() {
|
458
458
|
super();
|
459
|
-
p(this, ft);
|
460
459
|
p(this, gt);
|
460
|
+
p(this, ft);
|
461
461
|
p(this, vt);
|
462
462
|
p(this, bt);
|
463
463
|
p(this, yt);
|
@@ -474,7 +474,7 @@ class Ve extends HTMLElement {
|
|
474
474
|
}
|
475
475
|
}
|
476
476
|
connectedCallback() {
|
477
|
-
this.initialize || (this.initialize = !0, d(this,
|
477
|
+
this.initialize || (this.initialize = !0, d(this, gt, Ke).call(this));
|
478
478
|
}
|
479
479
|
open() {
|
480
480
|
return this.setAttribute(":state", "open"), this;
|
@@ -486,12 +486,12 @@ class Ve extends HTMLElement {
|
|
486
486
|
return this.setAttribute(":state", "destroy"), this;
|
487
487
|
}
|
488
488
|
}
|
489
|
-
|
489
|
+
gt = new WeakSet(), Ke = function() {
|
490
490
|
const { ATTRS: t } = I;
|
491
491
|
this.__events__ = {}, this.getAttribute(":state") || this.setAttribute(":state", "close");
|
492
492
|
const e = this.getAttribute(t.id) || vs();
|
493
|
-
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,
|
494
|
-
},
|
493
|
+
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, ft, ti).call(this);
|
494
|
+
}, ft = new WeakSet(), ti = function() {
|
495
495
|
this.childDom = this.childNodes, this.template = Ts(this), this.innerHTML = "", this.append(this.template), d(this, vt, ei).call(this);
|
496
496
|
}, vt = new WeakSet(), ei = function() {
|
497
497
|
const t = this.querySelector(".modal-scroller");
|
@@ -667,13 +667,13 @@ customElements.define("modern-modal", Ve);
|
|
667
667
|
const Ls = (n, i) => {
|
668
668
|
const t = n === window ? n.innerHeight : n.getBoundingClientRect().height, e = n === window ? 0 : n.getBoundingClientRect().top;
|
669
669
|
i.forEach((s) => {
|
670
|
-
const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: h, bottom: m } = s.getBoundingClientRect(),
|
671
|
-
if (h - e <=
|
670
|
+
const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: h, bottom: m } = s.getBoundingClientRect(), f = t * (r / 100), v = t * (l / 100);
|
671
|
+
if (h - e <= f && m - e >= v && s.offsetParent)
|
672
672
|
setTimeout(() => {
|
673
673
|
s.classList.add(o);
|
674
674
|
}, a);
|
675
675
|
else {
|
676
|
-
const L = s.classList.contains(o) && c === "down" && h - e >=
|
676
|
+
const L = s.classList.contains(o) && c === "down" && h - e >= f || c === "up" && m - e <= v || c === !0;
|
677
677
|
setTimeout(() => {
|
678
678
|
L && s.classList.remove(o);
|
679
679
|
}, a);
|
@@ -735,7 +735,7 @@ const Ss = (n) => {
|
|
735
735
|
s.append(o);
|
736
736
|
}), e.children[0];
|
737
737
|
};
|
738
|
-
var Lt, ui, At, hi, St, pi, Dt, mi, _t,
|
738
|
+
var Lt, ui, At, hi, St, pi, Dt, mi, _t, gi, xt, fi, $t, vi;
|
739
739
|
class Ds extends HTMLElement {
|
740
740
|
constructor() {
|
741
741
|
super();
|
@@ -748,7 +748,7 @@ class Ds extends HTMLElement {
|
|
748
748
|
p(this, _t);
|
749
749
|
// youku iframe
|
750
750
|
p(this, xt);
|
751
|
-
p(this,
|
751
|
+
p(this, $t);
|
752
752
|
d(this, Lt, ui).call(this);
|
753
753
|
}
|
754
754
|
play() {
|
@@ -806,52 +806,67 @@ Lt = new WeakSet(), ui = function() {
|
|
806
806
|
case "youkuAPI":
|
807
807
|
break;
|
808
808
|
case "youku":
|
809
|
-
e = d(this, xt,
|
809
|
+
e = d(this, xt, fi).call(this);
|
810
810
|
break;
|
811
811
|
case "vimeo":
|
812
|
-
e = d(this, _t,
|
812
|
+
e = d(this, _t, gi).call(this);
|
813
813
|
break;
|
814
814
|
case "bilibili":
|
815
|
-
e = d(this,
|
815
|
+
e = d(this, $t, vi).call(this);
|
816
816
|
break;
|
817
817
|
}
|
818
818
|
this.querySelector(".player-wrapper").insertAdjacentHTML(w.prepend, e);
|
819
819
|
}, Dt = new WeakSet(), mi = function() {
|
820
820
|
const { videoId: t, autoplay: e } = this;
|
821
821
|
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>`;
|
822
|
-
}, _t = new WeakSet(),
|
822
|
+
}, _t = new WeakSet(), gi = function() {
|
823
823
|
const { videoId: t, autoplay: e, hash: s } = this;
|
824
824
|
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>`;
|
825
|
-
}, xt = new WeakSet(),
|
825
|
+
}, xt = new WeakSet(), fi = function() {
|
826
826
|
const { videoId: t, autoplay: e } = this;
|
827
827
|
return `<iframe src="https://player.youku.com/embed/${t}?rel=0&${e === "on" ? "autoplay=1" : ""}" frameborder=0 "allowfullscreen"></iframe>`;
|
828
|
-
},
|
828
|
+
}, $t = new WeakSet(), vi = function() {
|
829
829
|
const { videoId: t, autoplay: e } = this;
|
830
830
|
return `<iframe src="//player.bilibili.com/player.html?bvid=${t}&page=1&as_wide=1&high_quality=1&danmaku=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
|
831
831
|
};
|
832
|
+
const un = (n) => new Promise((i) => {
|
833
|
+
let t = setTimeout(() => (clearTimeout(t), i()), n);
|
834
|
+
});
|
832
835
|
function bi(n) {
|
833
836
|
const i = [];
|
834
837
|
n && n.forEach((t) => {
|
835
838
|
t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
|
836
|
-
}),
|
839
|
+
}), g("html").addClass("scrollLock"), ps(i);
|
837
840
|
}
|
838
841
|
function yi(n) {
|
839
842
|
const i = [];
|
840
843
|
n && n.forEach((t) => {
|
841
844
|
t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
|
842
|
-
}),
|
845
|
+
}), g("html").removeClass("scrollLock"), ms(i);
|
843
846
|
}
|
844
|
-
function
|
845
|
-
|
847
|
+
async function hn(n = 0) {
|
848
|
+
if (!g(".loading-wrapper").length)
|
849
|
+
return;
|
850
|
+
g("body").append(`
|
851
|
+
<div class="loading-wrapper">
|
852
|
+
<div class="icon-box">
|
853
|
+
<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">
|
854
|
+
<animateTransform attributeName="transform" type="rotate" dur="1s" repeatCount="indefinite" keyTimes="0;1" values="0 50 51;360 50 51">
|
855
|
+
</animateTransform>
|
856
|
+
</path>
|
857
|
+
</svg>
|
858
|
+
</div>
|
859
|
+
</div>
|
860
|
+
`), g(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
|
846
861
|
bi();
|
847
862
|
});
|
848
863
|
}
|
849
|
-
function
|
850
|
-
|
851
|
-
|
864
|
+
function pn() {
|
865
|
+
g(".loading-wrapper").fadeOut(300).promise().done(function() {
|
866
|
+
g(".loading-wrapper").remove(), yi();
|
852
867
|
});
|
853
868
|
}
|
854
|
-
function
|
869
|
+
function mn(n, i) {
|
855
870
|
new tn(n, i);
|
856
871
|
}
|
857
872
|
function _s() {
|
@@ -859,9 +874,9 @@ function _s() {
|
|
859
874
|
} }), t = new Ys(), e = new Je("[data-anchor-target]");
|
860
875
|
n.update(), i.update(), t.reValidate(), e.update();
|
861
876
|
}
|
862
|
-
function
|
877
|
+
function gn(n, i = () => {
|
863
878
|
}) {
|
864
|
-
|
879
|
+
g(`[data-tab-content=${n}]`).fadeIn(function() {
|
865
880
|
typeof i == "function" && i();
|
866
881
|
}).siblings("[data-tab-content]").hide(), _s();
|
867
882
|
}
|
@@ -890,25 +905,25 @@ function fn() {
|
|
890
905
|
}
|
891
906
|
);
|
892
907
|
}
|
893
|
-
function
|
908
|
+
function vn() {
|
894
909
|
window.onpageshow = function(n) {
|
895
910
|
n.persisted && window.location.reload();
|
896
911
|
};
|
897
912
|
}
|
898
|
-
function
|
913
|
+
function bn() {
|
899
914
|
const n = navigator.userAgent;
|
900
915
|
return {
|
901
916
|
BigSurUP: /Mac OS X 10.15/.test(n) || /Mac OS X 10_15_7/.test(n) || /Mac OS X 10_15_8/.test(n) || /Mac OS X 10_15_9/.test(n) || /Mac OS X 11_/.test(n) || /Mac OS X 12_/.test(n)
|
902
917
|
};
|
903
918
|
}
|
904
|
-
function
|
905
|
-
|
906
|
-
|
919
|
+
function yn(n, i) {
|
920
|
+
g(n).on("click", function() {
|
921
|
+
g(this).toggleClass(i);
|
907
922
|
});
|
908
923
|
}
|
909
|
-
function
|
910
|
-
|
911
|
-
|
924
|
+
function wn(n, i) {
|
925
|
+
g(n).on("click", function() {
|
926
|
+
g(n).not(this).removeClass(i), g(this).addClass(i);
|
912
927
|
});
|
913
928
|
}
|
914
929
|
function xs(n, i = 250) {
|
@@ -920,7 +935,7 @@ function xs(n, i = 250) {
|
|
920
935
|
}, i);
|
921
936
|
};
|
922
937
|
}
|
923
|
-
function
|
938
|
+
function Tn(n, i = 250) {
|
924
939
|
let t, e;
|
925
940
|
return function() {
|
926
941
|
const s = this, o = arguments, a = +/* @__PURE__ */ new Date();
|
@@ -929,44 +944,44 @@ function wn(n, i = 250) {
|
|
929
944
|
}, i)) : (t = a, n.apply(s, o));
|
930
945
|
};
|
931
946
|
}
|
932
|
-
function
|
933
|
-
window._g.interval = [],
|
934
|
-
const e = Number(
|
947
|
+
function En() {
|
948
|
+
window._g.interval = [], g(".countdown").each((i, t) => {
|
949
|
+
const e = Number(g(t).attr("data-seconds")) + 1;
|
935
950
|
let s = Math.floor(e / 60) + ":" + e % 60;
|
936
951
|
window._g.interval[i] = setInterval(function() {
|
937
952
|
var o = s.split(":"), a = parseInt(o[0], 10), r = parseInt(o[1], 10);
|
938
|
-
--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,
|
953
|
+
--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, g(t).html(a + ":" + r), s = a + ":" + r;
|
939
954
|
}, 1e3);
|
940
955
|
});
|
941
956
|
}
|
942
|
-
function
|
957
|
+
function Ln(n = 500) {
|
943
958
|
return new Promise((i, t) => {
|
944
959
|
let e = setTimeout(() => {
|
945
960
|
clearTimeout(e), i();
|
946
961
|
}, n);
|
947
962
|
});
|
948
963
|
}
|
949
|
-
function
|
964
|
+
function An() {
|
950
965
|
const n = function() {
|
951
966
|
let i = window.innerHeight * 0.01;
|
952
967
|
document.documentElement.style.setProperty("--vh", i + "px");
|
953
968
|
};
|
954
969
|
n(), window.addEventListener("resize", xs(n));
|
955
970
|
}
|
956
|
-
function
|
957
|
-
const o = this, r =
|
971
|
+
function Sn(n, i, t, e, s) {
|
972
|
+
const o = this, r = g(n).html().split("<br>");
|
958
973
|
let l = "", c = 0;
|
959
974
|
r.forEach((u, h) => {
|
960
|
-
h !== 0 && (l += "<br>"), u.split("").forEach((
|
961
|
-
i ? (v === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'),
|
975
|
+
h !== 0 && (l += "<br>"), u.split("").forEach((f, v) => {
|
976
|
+
i ? (v === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'), f === " " ? 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;` : ""}"` : ""}>${f}</span>`, c++), v === u.length - 1 && (l += "</span>")) : f === " " ? 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;` : ""}"` : ""}>${f}</span>`, c++);
|
962
977
|
});
|
963
|
-
}),
|
978
|
+
}), g(n).html(l);
|
964
979
|
}
|
965
|
-
function
|
980
|
+
function Dn(n, i) {
|
966
981
|
const t = Math.pow(10, i);
|
967
982
|
return Math.round(n * t) / t;
|
968
983
|
}
|
969
|
-
function
|
984
|
+
function _n(n) {
|
970
985
|
let i = n.activeIndex, t = n.slides.length;
|
971
986
|
if (n.params.loop)
|
972
987
|
switch (n.activeIndex) {
|
@@ -981,11 +996,11 @@ function Dn(n) {
|
|
981
996
|
}
|
982
997
|
return i;
|
983
998
|
}
|
984
|
-
function
|
999
|
+
function xn(n, i) {
|
985
1000
|
const t = n.$el, e = n.params.grid.rows, s = i || n.params.slidesPerView * e;
|
986
|
-
(n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"),
|
1001
|
+
(n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"), g(n.params.navigation.nextEl).hide(), g(n.params.navigation.prevEl).hide(), g(n.params.pagination.el).hide(), n.params.autoplay.enabled = !1, n.autoplay.stop()) : (t.removeClass("swiper-no-swiping"), g(n.params.navigation.nextEl).show(), g(n.params.navigation.prevEl).show(), g(n.params.pagination.el).show(), n.params.autoplay.enabled && n.autoplay.start());
|
987
1002
|
}
|
988
|
-
function
|
1003
|
+
function $n(n) {
|
989
1004
|
n.el.querySelectorAll("img.detect-shade").forEach((i) => {
|
990
1005
|
i.addEventListener("load", function() {
|
991
1006
|
detectShade(i);
|
@@ -993,61 +1008,61 @@ function xn(n) {
|
|
993
1008
|
});
|
994
1009
|
}
|
995
1010
|
function kn(n) {
|
996
|
-
const i = n.el, t =
|
997
|
-
n.autoplay.stop(),
|
1011
|
+
const i = n.el, t = g(i).find(".swiper-slide-active"), e = g(t).find("video").get(0), s = g(i).find(".swiper-slide video");
|
1012
|
+
n.autoplay.stop(), g(e).off("ended"), e ? (s.each((o, a) => {
|
998
1013
|
a.currentTime = 0;
|
999
|
-
}),
|
1014
|
+
}), g(e).on("ended", function() {
|
1000
1015
|
n.slideNext();
|
1001
1016
|
}), e.play()) : n.params.autoplay.enabled && n.autoplay.start();
|
1002
1017
|
}
|
1003
|
-
function
|
1004
|
-
|
1005
|
-
const t =
|
1018
|
+
function Cn() {
|
1019
|
+
g(".number-grow").each(function(n, i) {
|
1020
|
+
const t = g(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
|
1006
1021
|
let r = "";
|
1007
1022
|
for (var l = 0; l <= 9; l++)
|
1008
1023
|
r += String(l) + "<br>";
|
1009
1024
|
return r;
|
1010
1025
|
};
|
1011
|
-
|
1026
|
+
g(o).each(function(r, l) {
|
1012
1027
|
const c = () => l !== "," ? `<div class="num" data-final-num="${l}"><div><br>${a()}<br>${a()}</div></div>` : `<div class="comma">${l}</div>`;
|
1013
1028
|
t.append(c);
|
1014
1029
|
});
|
1015
1030
|
});
|
1016
1031
|
}
|
1017
|
-
function
|
1018
|
-
|
1019
|
-
const t =
|
1032
|
+
function Hn() {
|
1033
|
+
g(".letter-grow").each(function(n, i) {
|
1034
|
+
const t = g(i), s = t.attr("data-letter").split(""), o = () => {
|
1020
1035
|
let a = "";
|
1021
1036
|
for (let r = 65; r <= 90; r++)
|
1022
1037
|
a += String.fromCharCode(r) + "<br>";
|
1023
1038
|
return a;
|
1024
1039
|
};
|
1025
|
-
|
1040
|
+
g(s).each(function(a, r) {
|
1026
1041
|
const l = `<div class="letter" data-final-letter="${r}"><div><br>${o()}<br>${o()}</div></div>`;
|
1027
1042
|
t.append(l);
|
1028
1043
|
});
|
1029
1044
|
});
|
1030
1045
|
}
|
1031
|
-
function
|
1046
|
+
function Mn(n) {
|
1032
1047
|
const i = getComputedStyle(n).transform;
|
1033
1048
|
let t = i.match(/^matrix3d\((.+)\)$/);
|
1034
1049
|
return t ? parseFloat(t[1].split(", ")[12]) : (t = i.match(/^matrix\((.+)\)$/), t ? parseFloat(t[1].split(", ")[4]) : 0);
|
1035
1050
|
}
|
1036
|
-
function
|
1051
|
+
function qn(n) {
|
1037
1052
|
const i = getComputedStyle(n).transform;
|
1038
1053
|
let t = i.match(/^matrix3d\((.+)\)$/);
|
1039
1054
|
return t ? parseFloat(t[1].split(", ")[13]) : (t = i.match(/^matrix\((.+)\)$/), t ? parseFloat(t[1].split(", ")[5]) : 0);
|
1040
1055
|
}
|
1041
|
-
function
|
1056
|
+
function In(n) {
|
1042
1057
|
const i = document.createElement("div");
|
1043
1058
|
return i.innerHTML = n, i.childNodes[0];
|
1044
1059
|
}
|
1045
|
-
const je = (n) => n.videoId !== "" || typeof n.videoId < "u",
|
1046
|
-
var V, Le,
|
1047
|
-
class
|
1060
|
+
const je = (n) => n.videoId !== "" || typeof n.videoId < "u", $s = (n) => n.$selector.getAttribute("video4-active") === "on", ye = (n) => `<video-player video-id="${n.videoId}" video-type="${n.videoType}" video-autoplay="${n.videoAutoplay}"></video-player>`;
|
1061
|
+
var V, Le, kt, wi, Ct, Ti, K, Ae, Ht, Ei;
|
1062
|
+
class ks {
|
1048
1063
|
constructor(i, t = {}) {
|
1049
1064
|
p(this, V);
|
1050
|
-
p(this,
|
1065
|
+
p(this, kt);
|
1051
1066
|
p(this, Ct);
|
1052
1067
|
p(this, K);
|
1053
1068
|
p(this, Ht);
|
@@ -1069,11 +1084,11 @@ V = new WeakSet(), Le = function() {
|
|
1069
1084
|
if (this.elements = t.state == "not active" ? E(i + `:not([${this.active}])`) : E(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
|
1070
1085
|
for (const [o, a] of Object.entries(this.options.on))
|
1071
1086
|
this.__events__[o] = [a];
|
1072
|
-
d(this,
|
1073
|
-
},
|
1087
|
+
d(this, kt, wi).call(this);
|
1088
|
+
}, kt = new WeakSet(), wi = function() {
|
1074
1089
|
const { elements: i, options: t } = this;
|
1075
1090
|
i.forEach((e) => {
|
1076
|
-
e.video = {}, e.video.instance = this, e.video.defaultOptions = t, e.video.params = d(this, Ht, Ei).call(this, e), e.video.methods = {}, e.video.methods.update = this.update, e.setAttribute(this.active, ""), je(e.video.params) &&
|
1091
|
+
e.video = {}, e.video.instance = this, e.video.defaultOptions = t, e.video.params = d(this, Ht, Ei).call(this, e), e.video.methods = {}, e.video.methods.update = this.update, e.setAttribute(this.active, ""), je(e.video.params) && !$s(e.video.params) && (e.setAttribute("video4-active", "on"), d(this, Ct, Ti).call(this, e)), je(e.video.params) || Ne("video4", "無法取得影片 ID");
|
1077
1092
|
}), this.emit("init");
|
1078
1093
|
}, Ct = new WeakSet(), Ti = function(i) {
|
1079
1094
|
const { LAYOUT: t } = Y, e = i.video.params, { $selector: s, videoLayoutNo: o, videoId: a, videoType: r, videoMode: l, videoButton: c, videoCover: u } = e;
|
@@ -1083,8 +1098,8 @@ V = new WeakSet(), Le = function() {
|
|
1083
1098
|
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 結構,若無結構則自動加入圖片結構"));
|
1084
1099
|
const m = s.querySelector("img");
|
1085
1100
|
m.insertAdjacentHTML(w.after, t[o]);
|
1086
|
-
const
|
1087
|
-
!
|
1101
|
+
const f = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
|
1102
|
+
!f && r == "youtube" ? m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : y("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片");
|
1088
1103
|
}
|
1089
1104
|
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);
|
1090
1105
|
} else if (l === "onPage") {
|
@@ -1093,8 +1108,8 @@ V = new WeakSet(), Le = function() {
|
|
1093
1108
|
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 結構"));
|
1094
1109
|
const m = s.querySelector("img");
|
1095
1110
|
m.insertAdjacentHTML(w.after, t[o]);
|
1096
|
-
const
|
1097
|
-
!
|
1111
|
+
const f = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
|
1112
|
+
!f && r == "youtube" ? m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : f || y("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? h = s : (h = s.querySelector(c) ?? s, s.querySelector(c) || y("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
|
1098
1113
|
} else {
|
1099
1114
|
s.innerHTML = ye(e);
|
1100
1115
|
return;
|
@@ -1142,7 +1157,7 @@ V = new WeakSet(), Le = function() {
|
|
1142
1157
|
videoTargetRoute: i.getAttribute("video-target-route") || t.videoTargetRoute
|
1143
1158
|
};
|
1144
1159
|
};
|
1145
|
-
Object.assign(
|
1160
|
+
Object.assign(ks.prototype, O);
|
1146
1161
|
customElements.define("video-player", Ds);
|
1147
1162
|
const qe = {
|
1148
1163
|
"zh-tw": {
|
@@ -1987,9 +2002,9 @@ const qe = {
|
|
1987
2002
|
const i = (t = n.getAttribute("control-elements")) == null ? void 0 : t.split(",");
|
1988
2003
|
i && i.forEach((e) => {
|
1989
2004
|
const s = document.querySelector(e);
|
1990
|
-
s || y("dropdown", `Can't not find control element(${e})`), s && s.classList.contains("disabled") && (s.classList.remove("disabled"), s.tagName === "DROPDOWN-EL" && s.s.activeLi &&
|
2005
|
+
s || y("dropdown", `Can't not find control element(${e})`), s && s.classList.contains("disabled") && (s.classList.remove("disabled"), s.tagName === "DROPDOWN-EL" && s.s.activeLi && $(s, [...s.s.allLi].indexOf(s.s.activeLi)));
|
1991
2006
|
});
|
1992
|
-
},
|
2007
|
+
}, $ = (n, i) => {
|
1993
2008
|
const t = n.getAttribute("d4-placeholder"), e = n.querySelectorAll(".dropdown-list li");
|
1994
2009
|
if (i < 0 || i.length === 0) {
|
1995
2010
|
switch (e.forEach((s) => {
|
@@ -2097,7 +2112,7 @@ class Ai extends HTMLElement {
|
|
2097
2112
|
switch (o.hasAttribute("multiple") ? "multiple" : "single") {
|
2098
2113
|
case "single":
|
2099
2114
|
const r = o.querySelector(`.dropdown-list li[data-option="${s}"]`);
|
2100
|
-
b(r) ?
|
2115
|
+
b(r) ? $(o, [...o.s.allLi].indexOf(r)) : $(o, -1);
|
2101
2116
|
break;
|
2102
2117
|
case "multiple":
|
2103
2118
|
const l = [];
|
@@ -2106,17 +2121,17 @@ class Ai extends HTMLElement {
|
|
2106
2121
|
b(h) && (h.classList.add("active"), l.push(h));
|
2107
2122
|
});
|
2108
2123
|
const c = l.map((u) => [...o.s.allLi].indexOf(u));
|
2109
|
-
|
2124
|
+
$(o, c);
|
2110
2125
|
break;
|
2111
2126
|
}
|
2112
2127
|
else
|
2113
|
-
|
2128
|
+
$(o, -1);
|
2114
2129
|
o.emit("change");
|
2115
2130
|
break;
|
2116
2131
|
case "d4-placeholder":
|
2117
2132
|
if (e === null)
|
2118
2133
|
return;
|
2119
|
-
e !== s && o.s.value.index < 0 &&
|
2134
|
+
e !== s && o.s.value.index < 0 && $(o, o.s.value.index);
|
2120
2135
|
break;
|
2121
2136
|
}
|
2122
2137
|
}
|
@@ -2197,7 +2212,7 @@ Mt = new WeakSet(), Si = function() {
|
|
2197
2212
|
};
|
2198
2213
|
break;
|
2199
2214
|
}
|
2200
|
-
|
2215
|
+
$(t, t.s.value.index), d(s = t, Ot, xi).call(s), t.classList.add("d4-initialize");
|
2201
2216
|
}, Ot = new WeakSet(), xi = function() {
|
2202
2217
|
const t = this;
|
2203
2218
|
t.__events__.dropdownToggle = () => {
|
@@ -2254,7 +2269,7 @@ Mt = new WeakSet(), Si = function() {
|
|
2254
2269
|
const a = e.querySelector(".dropdown-scroller"), r = e.classList.contains("city");
|
2255
2270
|
e.s.allLi = e.querySelectorAll(".dropdown-list li"), e.s.allLi.forEach((l) => {
|
2256
2271
|
l.addEventListener("click", function(c) {
|
2257
|
-
var
|
2272
|
+
var f;
|
2258
2273
|
const u = this, h = [...e.s.allLi].indexOf(u), m = parseInt(e.getAttribute("d4-default-height"));
|
2259
2274
|
if (u.classList.contains("has-sublayer")) {
|
2260
2275
|
c.stopPropagation();
|
@@ -2273,15 +2288,15 @@ Mt = new WeakSet(), Si = function() {
|
|
2273
2288
|
case "single":
|
2274
2289
|
if (e.setAttribute("d4-value", u.getAttribute("data-option")), r) {
|
2275
2290
|
const v = e.s.cityLang, C = l.textContent.trim(), L = document.getElementById(e.getAttribute("dist-select"));
|
2276
|
-
L && (L.querySelector(".dropdown-list").textContent = "",
|
2291
|
+
L && (L.querySelector(".dropdown-list").textContent = "", $(L, -1), qe[v][C].forEach((H, G) => {
|
2277
2292
|
const A = document.createElement("li");
|
2278
2293
|
A.textContent = H[0], A.setAttribute("data-option", H[0]), L.querySelector(".dropdown-list").append(A);
|
2279
2294
|
}), e.__events__.selectOption(L));
|
2280
2295
|
}
|
2281
|
-
(
|
2296
|
+
(f = u.parentNode.closest("li")) != null && f.classList.contains("has-sublayer") && (c.stopPropagation(), e.close());
|
2282
2297
|
break;
|
2283
2298
|
case "multiple":
|
2284
|
-
c.stopPropagation(), u.classList.toggle("active"),
|
2299
|
+
c.stopPropagation(), u.classList.toggle("active"), $(e, h);
|
2285
2300
|
break;
|
2286
2301
|
}
|
2287
2302
|
});
|
@@ -2414,7 +2429,7 @@ function Ns(n) {
|
|
2414
2429
|
i && clearTimeout(i), i = setTimeout(n, 200, t);
|
2415
2430
|
};
|
2416
2431
|
}
|
2417
|
-
var Nt,
|
2432
|
+
var Nt, $i, Pt, ki, jt, Ci, zt, Hi;
|
2418
2433
|
class Ps extends HTMLElement {
|
2419
2434
|
constructor() {
|
2420
2435
|
super();
|
@@ -2430,7 +2445,7 @@ class Ps extends HTMLElement {
|
|
2430
2445
|
attributeChangedCallback(t, e, s) {
|
2431
2446
|
}
|
2432
2447
|
connectedCallback() {
|
2433
|
-
this.initialize || (this.initialize = !0, d(this, Nt,
|
2448
|
+
this.initialize || (this.initialize = !0, d(this, Nt, $i).call(this));
|
2434
2449
|
}
|
2435
2450
|
play() {
|
2436
2451
|
this.s.animation.play(), this.s.animateEl.classList.add("start"), this.s.options.continual && (this.s.cloneAnimation.play(), this.s.cloneAnimateEl.classList.add("start"));
|
@@ -2439,7 +2454,7 @@ class Ps extends HTMLElement {
|
|
2439
2454
|
this.s.animation.pause(), this.s.options.continual && this.s.cloneAnimation.pause();
|
2440
2455
|
}
|
2441
2456
|
}
|
2442
|
-
Nt = new WeakSet(),
|
2457
|
+
Nt = new WeakSet(), $i = function() {
|
2443
2458
|
const t = {
|
2444
2459
|
direction: this.getAttribute("direction") || x.SETTINGS.direction,
|
2445
2460
|
// up / down / left / right
|
@@ -2456,8 +2471,8 @@ Nt = new WeakSet(), ki = function() {
|
|
2456
2471
|
// true / false
|
2457
2472
|
gap: Number(this.getAttribute("gap")) || x.SETTINGS.gap
|
2458
2473
|
};
|
2459
|
-
this.s = {}, this.s.options = t, this.s.nowDuration = ze(this), Os(this), d(this, Pt,
|
2460
|
-
}, Pt = new WeakSet(),
|
2474
|
+
this.s = {}, this.s.options = t, this.s.nowDuration = ze(this), Os(this), d(this, Pt, ki).call(this);
|
2475
|
+
}, Pt = new WeakSet(), ki = function() {
|
2461
2476
|
const { direction: t, continual: e, gap: s } = this.s.options;
|
2462
2477
|
switch (t) {
|
2463
2478
|
case "left":
|
@@ -2486,7 +2501,7 @@ Nt = new WeakSet(), ki = function() {
|
|
2486
2501
|
}));
|
2487
2502
|
break;
|
2488
2503
|
case "alternate":
|
2489
|
-
let
|
2504
|
+
let f = function() {
|
2490
2505
|
let v = [];
|
2491
2506
|
switch (e) {
|
2492
2507
|
case "top":
|
@@ -2504,7 +2519,7 @@ Nt = new WeakSet(), ki = function() {
|
|
2504
2519
|
}
|
2505
2520
|
return v;
|
2506
2521
|
}, h, m;
|
2507
|
-
(t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${
|
2522
|
+
(t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${f()[0].transform}`, t.s.animateEl.animate(f(), {
|
2508
2523
|
duration: m,
|
2509
2524
|
fill: "forwards"
|
2510
2525
|
}).finished.then(() => {
|
@@ -2655,9 +2670,9 @@ Wt = new WeakSet(), Mi = function() {
|
|
2655
2670
|
const c = function(h) {
|
2656
2671
|
if (h.preventDefault(), e = !0, !t)
|
2657
2672
|
return;
|
2658
|
-
const
|
2673
|
+
const f = h.pageX - i.offsetLeft - s;
|
2659
2674
|
i.scrollTo({
|
2660
|
-
left: o -
|
2675
|
+
left: o - f
|
2661
2676
|
});
|
2662
2677
|
};
|
2663
2678
|
i.removeEventListener("mousemove", c), i.addEventListener("mousemove", c);
|
@@ -2746,7 +2761,7 @@ Rt = new WeakSet(), Ni = function() {
|
|
2746
2761
|
};
|
2747
2762
|
const zs = (n) => {
|
2748
2763
|
const { type: i, option: t, originalDomString: e } = n.s, s = document.createElement("div");
|
2749
|
-
return i == "drag" && (s.innerHTML =
|
2764
|
+
return i == "drag" && (s.innerHTML = k.TEMPLATE[i]().trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(w.append, e)), i == "collapse" && (s.innerHTML = k.TEMPLATE[i](t == null ? void 0 : t.collapse).trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(w.append, e), s.querySelector(".collapse-container .wrapper").insertAdjacentHTML(w.append, e)), i == "dropdown" && (s.innerHTML = k.TEMPLATE[i](t == null ? void 0 : t.dropdown).trim(), s.querySelector("dropdown-el").insertAdjacentHTML(w.append, e)), s.children;
|
2750
2765
|
};
|
2751
2766
|
var Jt, Wi, Zt, Bi, et, De, B, ut;
|
2752
2767
|
class Ws extends HTMLElement {
|
@@ -2794,7 +2809,7 @@ class Ws extends HTMLElement {
|
|
2794
2809
|
}
|
2795
2810
|
Jt = new WeakSet(), Wi = function() {
|
2796
2811
|
let t = {};
|
2797
|
-
this.hasAttribute("m4-value") || this.setAttribute("m4-value", ""), this.s.type = this.getAttribute("m4-type") ??
|
2812
|
+
this.hasAttribute("m4-value") || this.setAttribute("m4-value", ""), this.s.type = this.getAttribute("m4-type") ?? k.SETTINGS.type, this.hasAttribute("m4-option") && (t = this.getAttribute("m4-option") ? JSON.parse(this.getAttribute("m4-option")) : {}, this.removeAttribute("m4-option"));
|
2798
2813
|
const e = (s) => {
|
2799
2814
|
if (s.type === "resize") {
|
2800
2815
|
if (window.innerWidth === this.previousWidth)
|
@@ -2803,7 +2818,7 @@ Jt = new WeakSet(), Wi = function() {
|
|
2803
2818
|
}
|
2804
2819
|
this.update();
|
2805
2820
|
};
|
2806
|
-
window.removeEventListener("resize", ht(e)), window.addEventListener("resize", ht(e)), this.s.option = {}, this.s.option.drag = Object.assign({},
|
2821
|
+
window.removeEventListener("resize", ht(e)), window.addEventListener("resize", ht(e)), this.s.option = {}, this.s.option.drag = Object.assign({}, k.SETTINGS.drag, t == null ? void 0 : t.drag), this.s.option.collapse = Object.assign({}, k.SETTINGS.collapse, t == null ? void 0 : t.collapse), this.s.option.dropdown = Object.assign({}, k.SETTINGS.dropdown, t == null ? void 0 : t.dropdown), this.s.option.breakpoint = Object.assign({}, k.SETTINGS.breakpoint, t == null ? void 0 : t.breakpoint), d(this, Zt, Bi).call(this);
|
2807
2822
|
}, Zt = new WeakSet(), Bi = function() {
|
2808
2823
|
this.classList.add("m4-init"), d(this, et, De).call(this);
|
2809
2824
|
}, et = new WeakSet(), De = function() {
|
@@ -3119,7 +3134,7 @@ const Be = (n) => {
|
|
3119
3134
|
const { defaultOptions: i } = n.collapse, { collapseClass: t, target: e, transition: s } = i, o = n.querySelector(e), a = o.children[0].offsetHeight;
|
3120
3135
|
n.collapse.height = a, n.classList.remove(t), o.style.display = "block", o.style.height = `${a}px`, o.style["transition-property"] = s.property, o.style["transition-duration"] = s.duration, o.style["transition-timing-function"] = s.function, o.style["transition-delay"] = s.delay, o.style.overflow = "hidden";
|
3121
3136
|
};
|
3122
|
-
var st, xe, he, as, pe, rs, nt,
|
3137
|
+
var st, xe, he, as, pe, rs, nt, $e;
|
3123
3138
|
class Xs {
|
3124
3139
|
constructor(i, t = {}) {
|
3125
3140
|
p(this, st);
|
@@ -3148,13 +3163,13 @@ st = new WeakSet(), xe = function() {
|
|
3148
3163
|
}), this.emit("init");
|
3149
3164
|
}, pe = new WeakSet(), rs = function(i) {
|
3150
3165
|
const { options: t } = this, { collapseClass: e, block: s, target: o, defaultOpen: a, targetStopPropagation: r, defaultActiveMark: l } = t, c = i, u = c.querySelector(o);
|
3151
|
-
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,
|
3166
|
+
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, $e)), c.addEventListener("click", d(this, nt, $e)), r) {
|
3152
3167
|
const h = (m) => {
|
3153
3168
|
m.stopPropagation();
|
3154
3169
|
};
|
3155
3170
|
u.removeEventListener("click", h), u.addEventListener("click", h);
|
3156
3171
|
}
|
3157
|
-
}, nt = new WeakSet(),
|
3172
|
+
}, nt = new WeakSet(), $e = function() {
|
3158
3173
|
const { instance: i, defaultOptions: t } = this.collapse, { collapseClass: e, block: s, target: o, single: a } = t, r = this;
|
3159
3174
|
r.classList.contains(e) ? (a && r.parentNode.querySelectorAll(`.${r.classList[0]}`).forEach((l) => {
|
3160
3175
|
Be(l);
|
@@ -3174,25 +3189,25 @@ function ls() {
|
|
3174
3189
|
});
|
3175
3190
|
}
|
3176
3191
|
document.addEventListener("click", ls);
|
3177
|
-
var ot,
|
3192
|
+
var ot, ke, me, cs, ge, ds, fe, us;
|
3178
3193
|
class Fs extends HTMLElement {
|
3179
3194
|
constructor() {
|
3180
3195
|
super();
|
3181
3196
|
p(this, ot);
|
3182
3197
|
p(this, me);
|
3183
|
-
p(this, fe);
|
3184
3198
|
p(this, ge);
|
3199
|
+
p(this, fe);
|
3185
3200
|
this.initialize = !1;
|
3186
3201
|
}
|
3187
3202
|
connectedCallback() {
|
3188
3203
|
const t = this;
|
3189
|
-
t.initialize || t.classList.contains("r4-initialize") || (t.initialize = !0, d(this, ot,
|
3204
|
+
t.initialize || t.classList.contains("r4-initialize") || (t.initialize = !0, d(this, ot, ke).call(this));
|
3190
3205
|
}
|
3191
3206
|
update() {
|
3192
|
-
this.classList.remove("r4-initialize"), this.querySelector("i.hover-ball").remove(), d(this, ot,
|
3207
|
+
this.classList.remove("r4-initialize"), this.querySelector("i.hover-ball").remove(), d(this, ot, ke).call(this);
|
3193
3208
|
}
|
3194
3209
|
}
|
3195
|
-
ot = new WeakSet(),
|
3210
|
+
ot = new WeakSet(), ke = function() {
|
3196
3211
|
const { SETTINGS: t } = Ue;
|
3197
3212
|
this.s = {};
|
3198
3213
|
function e(o) {
|
@@ -3209,11 +3224,11 @@ ot = new WeakSet(), $e = function() {
|
|
3209
3224
|
};
|
3210
3225
|
this.s.options = s, this.s.options.hover && this.classList.add("hover-btn"), d(this, me, cs).call(this);
|
3211
3226
|
}, me = new WeakSet(), cs = function() {
|
3212
|
-
d(this,
|
3213
|
-
},
|
3227
|
+
d(this, ge, ds).call(this), d(this, fe, us).call(this), this.classList.add("r4-initialize");
|
3228
|
+
}, ge = new WeakSet(), ds = function() {
|
3214
3229
|
const t = this, e = document.createElement("i");
|
3215
3230
|
e.classList.add("hover-ball"), e.style.transitionDuration = `${t.s.options.speed}ms`, t.appendChild(e);
|
3216
|
-
},
|
3231
|
+
}, fe = new WeakSet(), us = function() {
|
3217
3232
|
const t = this.querySelector("i.hover-ball"), e = this;
|
3218
3233
|
e.addEventListener("click", function(a) {
|
3219
3234
|
a.stopPropagation(), e.s.options.click && Rs(a, e);
|
@@ -3323,8 +3338,8 @@ function Js(n, i, t, e) {
|
|
3323
3338
|
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);
|
3324
3339
|
break;
|
3325
3340
|
}
|
3326
|
-
const m = (s.width - u) * 0.5,
|
3327
|
-
return o.drawImage(i, m,
|
3341
|
+
const m = (s.width - u) * 0.5, f = (s.height - h) * 0.5;
|
3342
|
+
return o.drawImage(i, m, f, u, h), s;
|
3328
3343
|
}
|
3329
3344
|
function Zs(n, i) {
|
3330
3345
|
return new Promise((t, e) => {
|
@@ -3427,16 +3442,17 @@ export {
|
|
3427
3442
|
_n as P,
|
3428
3443
|
xn as Q,
|
3429
3444
|
Fs as R,
|
3430
|
-
|
3445
|
+
$n as S,
|
3431
3446
|
Gi as T,
|
3432
|
-
|
3447
|
+
kn as U,
|
3433
3448
|
Cn as V,
|
3434
3449
|
Hn as W,
|
3435
3450
|
Mn as X,
|
3451
|
+
qn as Y,
|
3436
3452
|
b as a,
|
3437
3453
|
rt as b,
|
3438
3454
|
vs as c,
|
3439
|
-
|
3455
|
+
fs as d,
|
3440
3456
|
Y as e,
|
3441
3457
|
w as f,
|
3442
3458
|
E as g,
|
@@ -3447,17 +3463,17 @@ export {
|
|
3447
3463
|
Ws as l,
|
3448
3464
|
tn as m,
|
3449
3465
|
xs as n,
|
3450
|
-
|
3451
|
-
|
3452
|
-
|
3453
|
-
|
3454
|
-
|
3466
|
+
In as o,
|
3467
|
+
un as p,
|
3468
|
+
bi as q,
|
3469
|
+
yi as r,
|
3470
|
+
gs as s,
|
3455
3471
|
hn as t,
|
3456
3472
|
pn as u,
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3460
|
-
|
3461
|
-
|
3473
|
+
ks as v,
|
3474
|
+
mn as w,
|
3475
|
+
_s as x,
|
3476
|
+
gn as y,
|
3477
|
+
fn as z
|
3462
3478
|
};
|
3463
3479
|
//# sourceMappingURL=image-preview-bundle.js.map
|