@xwadex/fesd 0.0.14-re.55 → 0.0.14-re.57
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/fesd-bundle.js +118 -118
- package/dist/fesd-bundle.js.map +1 -1
- package/dist/image-preview-bundle.js +41 -41
- package/dist/image-preview-bundle.js.map +1 -1
- package/package.json +1 -1
package/dist/fesd-bundle.js
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
var Z = (
|
2
|
-
if (!e.has(
|
1
|
+
var Z = (r, e, t) => {
|
2
|
+
if (!e.has(r))
|
3
3
|
throw TypeError("Cannot " + t);
|
4
4
|
};
|
5
|
-
var d = (
|
6
|
-
if (e.has(
|
5
|
+
var d = (r, e, t) => {
|
6
|
+
if (e.has(r))
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
8
|
-
e instanceof WeakSet ? e.add(
|
8
|
+
e instanceof WeakSet ? e.add(r) : e.set(r, t);
|
9
9
|
};
|
10
|
-
var l = (
|
10
|
+
var l = (r, e, t) => (Z(r, e, "access private method"), t);
|
11
11
|
import { i as F, a as B, g as C, v as ee, c as te, b as se, d as re, e as ie, f as oe, s as ae } from "./image-preview-bundle.js";
|
12
|
-
import { A as
|
12
|
+
import { A as xe, j as Se, C as Ee, h as Ce, D as Le, m as qe, I as We, k as ke, M as Te, l as _e, R as Me, T as Oe } from "./image-preview-bundle.js";
|
13
13
|
import { S as ne } from "./vendor-bundle.js";
|
14
14
|
const $ = () => {
|
15
|
-
const
|
15
|
+
const r = navigator.userAgent, e = {
|
16
16
|
// Firefox 1.0+
|
17
17
|
isFirefox: typeof InstallTrigger < "u",
|
18
18
|
// Opera 8.0+
|
19
|
-
isOpera: !!window.opr && !!opr.addons || !!window.opera ||
|
19
|
+
isOpera: !!window.opr && !!opr.addons || !!window.opera || r.indexOf(" OPR/") >= 0,
|
20
20
|
// Internet Explorer 6-11
|
21
21
|
isIE: (
|
22
22
|
/*@cc_on!@*/
|
@@ -25,44 +25,44 @@ const $ = () => {
|
|
25
25
|
// Edge 20+
|
26
26
|
isEdge: !document.documentMode && !!window.StyleMedia,
|
27
27
|
// Edge (based on chromium) detection
|
28
|
-
isEdgeChromium: /\sedg\//i.test(
|
28
|
+
isEdgeChromium: /\sedg\//i.test(r) || /edg([ea]|ios)/i.test(r),
|
29
29
|
// Safari 3.0+ "[object HTMLElementConstructor]"
|
30
|
-
isSafari: !/chrome|crios|crmo/i.test(
|
30
|
+
isSafari: !/chrome|crios|crmo/i.test(r) && /safari/i.test(r),
|
31
31
|
// Chrome 1 - 79
|
32
|
-
isChrome: !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime) || /chrome|crios|crmo/i.test(
|
32
|
+
isChrome: !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime) || /chrome|crios|crmo/i.test(r)
|
33
33
|
}, t = {
|
34
34
|
// Android
|
35
|
-
isAndroid:
|
35
|
+
isAndroid: r.indexOf("Android") > -1 || r.indexOf("Adr") > -1,
|
36
36
|
// iOS | ipad
|
37
|
-
isiOS:
|
38
|
-
},
|
37
|
+
isiOS: r.indexOf("Mac") > -1 && "ontouchend" in document
|
38
|
+
}, s = {
|
39
39
|
// window
|
40
|
-
isWindows:
|
40
|
+
isWindows: r.indexOf("Win") > -1,
|
41
41
|
// macos
|
42
|
-
isMacOS:
|
42
|
+
isMacOS: r.indexOf("Mac") > -1,
|
43
43
|
// UNIX
|
44
|
-
isUNIX:
|
44
|
+
isUNIX: r.indexOf("X11") > -1,
|
45
45
|
// Linux
|
46
|
-
isLinux:
|
46
|
+
isLinux: r.indexOf("Linux") > -1
|
47
47
|
};
|
48
|
-
return { browser: e, mobile: t, os:
|
48
|
+
return { browser: e, mobile: t, os: s };
|
49
49
|
}, le = () => {
|
50
|
-
const { browser:
|
51
|
-
return Object.keys(
|
52
|
-
if (
|
53
|
-
return
|
50
|
+
const { browser: r } = $();
|
51
|
+
return Object.keys(r).find((e) => {
|
52
|
+
if (r[e])
|
53
|
+
return r[e];
|
54
54
|
});
|
55
55
|
}, ce = () => {
|
56
|
-
const { mobile:
|
57
|
-
return Object.keys(
|
58
|
-
if (
|
59
|
-
return
|
56
|
+
const { mobile: r } = $();
|
57
|
+
return Object.keys(r).some((e) => {
|
58
|
+
if (r[e])
|
59
|
+
return r[e];
|
60
60
|
});
|
61
61
|
}, de = () => {
|
62
|
-
const { os:
|
63
|
-
return Object.keys(
|
64
|
-
if (
|
65
|
-
return
|
62
|
+
const { os: r } = $();
|
63
|
+
return Object.keys(r).find((e) => {
|
64
|
+
if (r[e])
|
65
|
+
return r[e];
|
66
66
|
});
|
67
67
|
}, ue = () => console.dir($());
|
68
68
|
function we() {
|
@@ -74,8 +74,8 @@ function we() {
|
|
74
74
|
logs: ue
|
75
75
|
};
|
76
76
|
}
|
77
|
-
const u = (
|
78
|
-
|
77
|
+
const u = (r, e, t) => {
|
78
|
+
r && (se(r) ? r.forEach((s) => s.style[e] = t) : r.style[e] = t);
|
79
79
|
};
|
80
80
|
var L, U, q, V, f, R, W, z, y, j, k, G;
|
81
81
|
class ve {
|
@@ -96,21 +96,21 @@ class ve {
|
|
96
96
|
update() {
|
97
97
|
const { elements: e } = this;
|
98
98
|
e.forEach((t) => {
|
99
|
-
t.querySelectorAll("._article").forEach((
|
100
|
-
|
99
|
+
t.querySelectorAll("._article").forEach((s) => {
|
100
|
+
s.article = {}, s.article.parent = t, s.article.params = l(this, f, R).call(this, s), l(this, y, j).call(this, s);
|
101
101
|
});
|
102
102
|
});
|
103
103
|
}
|
104
104
|
}
|
105
105
|
L = new WeakSet(), U = function() {
|
106
|
-
const { el: e, options: t } = this.__storage__, { SETTINGS:
|
107
|
-
this.elements = t.state == "not active" ? C(e + `:not([${this.active}])`) : C(e), this.elements = C(e), this.options = Object.assign({},
|
106
|
+
const { el: e, options: t } = this.__storage__, { SETTINGS: s } = re;
|
107
|
+
this.elements = t.state == "not active" ? C(e + `:not([${this.active}])`) : C(e), this.elements = C(e), this.options = Object.assign({}, s, t), l(this, q, V).call(this);
|
108
108
|
}, q = new WeakSet(), V = function() {
|
109
109
|
const { elements: e } = this;
|
110
110
|
e.forEach((t) => {
|
111
|
-
t.setAttribute(this.active, ""), t.querySelectorAll("._article").forEach((
|
111
|
+
t.setAttribute(this.active, ""), t.querySelectorAll("._article").forEach((s) => {
|
112
112
|
var i, a;
|
113
|
-
|
113
|
+
s.article = {}, s.article.parent = t, s.article.params = l(this, f, R).call(this, s), s.article.methods = {}, s.article.methods.update = this.update, l(a = l(i = l(this, W, z).call(this, s), y, j).call(i, s), k, G).call(a, s);
|
114
114
|
});
|
115
115
|
});
|
116
116
|
}, f = new WeakSet(), R = function(e) {
|
@@ -152,17 +152,17 @@ L = new WeakSet(), U = function() {
|
|
152
152
|
const { params: t } = e.article;
|
153
153
|
return t.$video.length && new ee(t.$video), this;
|
154
154
|
}, k = new WeakSet(), G = function(e) {
|
155
|
-
const { basic_rwd: t } = this.options, { params:
|
156
|
-
if (!
|
155
|
+
const { basic_rwd: t } = this.options, { params: s } = e.article;
|
156
|
+
if (!s.$swiper)
|
157
157
|
return;
|
158
158
|
const i = te(), a = this;
|
159
159
|
let o = {
|
160
160
|
on: {
|
161
161
|
init(n) {
|
162
162
|
const g = n.$el[0];
|
163
|
-
|
164
|
-
var
|
165
|
-
(
|
163
|
+
s.$video.length && ([...g.querySelectorAll("[video4-active]")].forEach((v) => {
|
164
|
+
var x, p;
|
165
|
+
(x = v.querySelector(ie.SETTINGS.videoButton)) == null || x.remove(), (p = v.querySelector(".overlay")) == null || p.remove(), v.removeAttribute("video4-active");
|
166
166
|
}), a.update());
|
167
167
|
},
|
168
168
|
observerUpdate(n) {
|
@@ -172,133 +172,133 @@ L = new WeakSet(), U = function() {
|
|
172
172
|
observer: !0,
|
173
173
|
breakpoints: {}
|
174
174
|
};
|
175
|
-
if (
|
175
|
+
if (s.$selector.setAttribute("img-swiper", "on"), s.$selector.classList.add(`swiper-${i}`), s.$selector.getAttribute("swiper-arrow") !== "off" && s.$selector.getAttribute("swiper-arrow")) {
|
176
176
|
const n = document.createElement("div");
|
177
|
-
n.className = `swiper-button-next swiper-${i}`,
|
177
|
+
n.className = `swiper-button-next swiper-${i}`, s.$swiperButtonCover.appendChild(n);
|
178
178
|
const g = document.createElement("div");
|
179
|
-
g.className = `swiper-button-prev swiper-${i}`,
|
179
|
+
g.className = `swiper-button-prev swiper-${i}`, s.$swiperButtonCover.appendChild(g), o.navigation = {
|
180
180
|
nextEl: `.swiper-button-next.swiper-${i}`,
|
181
181
|
prevEl: `.swiper-button-prev.swiper-${i}`
|
182
182
|
};
|
183
183
|
}
|
184
|
-
if (
|
184
|
+
if (s.$selector.getAttribute("swiper-nav") !== "off" || !s.$selector.getAttribute("swiper-nav")) {
|
185
185
|
const n = document.createElement("div");
|
186
|
-
n.className = `swiper-pagination swiper-${i}`,
|
186
|
+
n.className = `swiper-pagination swiper-${i}`, s.$swiper.appendChild(n), o.pagination = {
|
187
187
|
el: `.swiper-pagination.swiper-${i}`,
|
188
188
|
clickable: !0
|
189
189
|
};
|
190
190
|
}
|
191
|
-
Number.parseInt(
|
192
|
-
slidesPerView:
|
193
|
-
}), (
|
191
|
+
Number.parseInt(s.$selector.getAttribute("swiper-num")) && (o.breakpoints[t] = {
|
192
|
+
slidesPerView: s.$selector.getAttribute("swiper-num") ? Number.parseInt(s.$selector.getAttribute("swiper-num")) > 5 ? 5 : Number.parseInt(s.$selector.getAttribute("swiper-num")) : 1
|
193
|
+
}), (s.$selector.getAttribute("swiper-autoplay") !== "off" || !s.$selector.getAttribute("swiper-autoplay")) && (o.autoplay = {
|
194
194
|
delay: 3e3,
|
195
195
|
disableOnInteraction: !1
|
196
|
-
}), (
|
197
|
-
let c = () => window.innerWidth > this.basic_rwd && Number(
|
198
|
-
|
199
|
-
const h = new ne(
|
196
|
+
}), (s.$selector.getAttribute("swiper-loop") !== "off" || !s.$selector.getAttribute("swiper-loop")) && (o.loop = !0), s.$selector.getAttribute("swiper-speed") && (o.speed = parseInt(s.$selector.getAttribute("swiper-speed"))), s.$selector.getAttribute("swiper-parallax") !== "off" && !s.$selector.getAttribute("swiper-loop") && (o.parallax = !0), s.$selector.getAttribute("swiper-pagination-dynamic") === "on" && (o.pagination.dynamicBullets = !0, o.pagination ? o.pagination.dynamicBullets = !0 : console.warn("pagination undefined"));
|
197
|
+
let c = () => window.innerWidth > this.basic_rwd && Number(s.$selector.getAttribute("swiper-num")) || 1;
|
198
|
+
s.$swiper.querySelectorAll(".swiper-slide").length <= c() && (o.navigation = !1, o.pagination = !1, o.autoplay = !1, o.loop = !1, s.$selector.querySelector(".swiper-button-cover").style.display = "none", s.$selector.querySelector(".swiper-pagination").style.display = "none", s.$swiper.classList.add("swiper-no-swiping"));
|
199
|
+
const h = new ne(s.$swiper, o);
|
200
200
|
return e.article.swiperList = [], e.article.swiperList.push(h), this;
|
201
201
|
};
|
202
202
|
let D = "ontouchstart" in document.documentElement ? "touchstart" : "mousedown", H = "ontouchend" in document.documentElement ? "touchend" : "mouseup", N = "ontouchmove" in document.documentElement ? "touchmove" : "mousemove";
|
203
|
-
function m(
|
204
|
-
const e = window.getComputedStyle(
|
203
|
+
function m(r) {
|
204
|
+
const e = window.getComputedStyle(r), t = e.transform || e.mozTransform;
|
205
205
|
if (t === "none")
|
206
206
|
return {
|
207
207
|
x: 0,
|
208
208
|
y: 0,
|
209
209
|
z: 0
|
210
210
|
};
|
211
|
-
const
|
212
|
-
if (
|
211
|
+
const s = t.includes("3d") ? "3d" : "2d", i = t.match(/matrix.*\((.+)\)/)[1].split(", ");
|
212
|
+
if (s === "2d")
|
213
213
|
return {
|
214
214
|
x: Number(i[4]),
|
215
215
|
y: Number(i[5]),
|
216
216
|
z: 0
|
217
217
|
};
|
218
|
-
if (
|
218
|
+
if (s === "3d")
|
219
219
|
return {
|
220
220
|
x: Number(i[12]),
|
221
221
|
y: Number(i[13]),
|
222
222
|
z: Number(i[14])
|
223
223
|
};
|
224
224
|
}
|
225
|
-
function E(
|
226
|
-
const t =
|
227
|
-
let
|
225
|
+
function E(r) {
|
226
|
+
const t = r.querySelector(".wrapper").querySelectorAll(".item");
|
227
|
+
let s = 0;
|
228
228
|
return t.forEach((i) => {
|
229
229
|
const a = getComputedStyle(i), o = parseInt(a.marginLeft), c = parseInt(a.marginRight);
|
230
|
-
|
231
|
-
}),
|
230
|
+
s += i.getBoundingClientRect().width + o + c;
|
231
|
+
}), s;
|
232
232
|
}
|
233
|
-
function X(
|
234
|
-
if (m(
|
233
|
+
function X(r) {
|
234
|
+
if (m(r.slideWrapEl).x >= r.translateMin)
|
235
235
|
return "is-start";
|
236
|
-
if (m(
|
236
|
+
if (m(r.slideWrapEl).x <= r.translateMax)
|
237
237
|
return "is-end";
|
238
|
-
if (m(
|
238
|
+
if (m(r.slideWrapEl).x < r.translateMin && m(r.slideWrapEl).x > r.translateMax)
|
239
239
|
return "is-middle";
|
240
240
|
}
|
241
|
-
function pe(
|
242
|
-
const e =
|
243
|
-
t.addEventListener(D, function(
|
244
|
-
switch (
|
241
|
+
function pe(r) {
|
242
|
+
const e = r.el, t = e.querySelector(".wrapper");
|
243
|
+
t.addEventListener(D, function(s) {
|
244
|
+
switch (r.isDown = !0, r.slidable && t.classList.add("dragging"), D) {
|
245
245
|
case "mousedown":
|
246
|
-
|
246
|
+
r.startX = s.pageX;
|
247
247
|
break;
|
248
248
|
case "touchstart":
|
249
|
-
|
249
|
+
r.startX = s.changedTouches[0].pageX;
|
250
250
|
break;
|
251
251
|
}
|
252
|
-
|
253
|
-
}), t.addEventListener(H, function(
|
254
|
-
|
252
|
+
r.nowTranslateX = m(t).x;
|
253
|
+
}), t.addEventListener(H, function(s) {
|
254
|
+
r.isDown = !1, t.classList.remove("dragging"), t.classList.remove("moving");
|
255
255
|
let i;
|
256
256
|
switch (N) {
|
257
257
|
case "mousemove":
|
258
|
-
i =
|
258
|
+
i = s.pageX - r.startX;
|
259
259
|
break;
|
260
260
|
case "touchmove":
|
261
|
-
i =
|
261
|
+
i = s.changedTouches[0].pageX - r.startX;
|
262
262
|
break;
|
263
263
|
}
|
264
|
-
if (i === 0 &&
|
265
|
-
if (H === "mouseup" &&
|
264
|
+
if (i === 0 && s.target.closest(".item")) {
|
265
|
+
if (H === "mouseup" && s.button !== 0)
|
266
266
|
return;
|
267
267
|
t.querySelectorAll(".item").forEach((o) => {
|
268
268
|
o.classList.remove("active");
|
269
|
-
}),
|
269
|
+
}), s.target.closest(".item").classList.add("active"), r.moveActive(r.params.speed);
|
270
270
|
} else
|
271
|
-
|
271
|
+
r.slidable && r.resetPos(e);
|
272
272
|
}), t.addEventListener("mouseleave", function() {
|
273
|
-
|
274
|
-
}), t.addEventListener(N, function(
|
275
|
-
if (
|
276
|
-
if (!
|
273
|
+
r.isDown && r.slidable && (r.isDown = !1, t.classList.remove("dragging"), t.classList.remove("moving"), r.resetPos(e));
|
274
|
+
}), t.addEventListener(N, function(s) {
|
275
|
+
if (r.draggable && r.slidable) {
|
276
|
+
if (!r.isDown)
|
277
277
|
return;
|
278
|
-
|
278
|
+
s.preventDefault();
|
279
279
|
let i;
|
280
280
|
switch (N) {
|
281
281
|
case "mousemove":
|
282
|
-
i =
|
282
|
+
i = s.pageX - r.startX;
|
283
283
|
break;
|
284
284
|
case "touchmove":
|
285
|
-
i =
|
285
|
+
i = s.changedTouches[0].pageX - r.startX;
|
286
286
|
break;
|
287
287
|
}
|
288
288
|
if (i !== 0) {
|
289
289
|
t.classList.add("moving");
|
290
290
|
const a = {
|
291
291
|
transition: "all 0ms ease 0s",
|
292
|
-
transform: `translate3d(${
|
292
|
+
transform: `translate3d(${r.nowTranslateX + i}px,0,0)`
|
293
293
|
};
|
294
294
|
Object.assign(t.style, a);
|
295
295
|
}
|
296
296
|
}
|
297
297
|
});
|
298
298
|
}
|
299
|
-
function me(
|
300
|
-
const e =
|
301
|
-
for (var t = 0,
|
299
|
+
function me(r) {
|
300
|
+
const e = r.querySelectorAll("a");
|
301
|
+
for (var t = 0, s = e.length; t < s; t++)
|
302
302
|
e[t].draggable = !1;
|
303
303
|
}
|
304
304
|
class fe {
|
@@ -320,7 +320,7 @@ class fe {
|
|
320
320
|
}), pe(e), me(e.el);
|
321
321
|
}
|
322
322
|
moveActive(e) {
|
323
|
-
const t = this,
|
323
|
+
const t = this, s = t.slideWrapEl.querySelector(".item.active"), a = s.previousElementSibling ? s.offsetLeft - t.el.clientWidth / 2 + s.clientWidth / 2 : 0;
|
324
324
|
if (t.slidable) {
|
325
325
|
if (-a < 0 && -a > t.translateMax) {
|
326
326
|
const o = {
|
@@ -402,16 +402,16 @@ class fe {
|
|
402
402
|
), e.slidable = e.slideTotalWidth > Math.round(e.el.getBoundingClientRect().width) && (!e.params.breakpoint || window.innerWidth <= e.params.breakpoint), e.slidable ? (e.slideWrapEl.style.width = `${e.slideTotalWidth}px`, e.el.classList.add("slidable"), e.slideWrapEl.querySelector(".item.active") && e.moveActive()) : (e.el.classList.remove("slidable"), e.el.classList.remove("is-start"), e.el.classList.remove("is-end"), e.slideWrapEl.removeAttribute("style"));
|
403
403
|
}
|
404
404
|
}
|
405
|
-
const P = (
|
406
|
-
if (
|
405
|
+
const P = (r) => {
|
406
|
+
if (r == "facebook")
|
407
407
|
return "https://www.facebook.com/sharer/sharer.php?u=";
|
408
|
-
if (
|
408
|
+
if (r == "line")
|
409
409
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? "http://line.naver.jp/R/msg/text/?" : "https://lineit.line.me/share/ui?url=";
|
410
|
-
if (
|
410
|
+
if (r == "twitter")
|
411
411
|
return "https://twitter.com/intent/tweet?url=";
|
412
|
-
if (
|
412
|
+
if (r == "linkedin")
|
413
413
|
return `http://www.linkedin.com/shareArticle?mini=true&title=${document.title}&source=${document.title}&url=`;
|
414
|
-
if (
|
414
|
+
if (r == "telegram")
|
415
415
|
return "https://telegram.me/share/url?url=";
|
416
416
|
};
|
417
417
|
var T, Y, _, J, M, K;
|
@@ -427,17 +427,17 @@ class ye {
|
|
427
427
|
}
|
428
428
|
}
|
429
429
|
T = new WeakSet(), Y = function() {
|
430
|
-
const { el: e, options: t } = this.__storage__, { SETTINGS:
|
431
|
-
!F(e) || !B(e) || (this.elements = C(e), this.options = Object.assign({},
|
430
|
+
const { el: e, options: t } = this.__storage__, { SETTINGS: s } = ae;
|
431
|
+
!F(e) || !B(e) || (this.elements = C(e), this.options = Object.assign({}, s, t), l(this, _, J).call(this));
|
432
432
|
}, _ = new WeakSet(), J = function() {
|
433
433
|
const { elements: e, options: t } = this;
|
434
|
-
e.forEach((
|
435
|
-
|
434
|
+
e.forEach((s) => {
|
435
|
+
s.querySelectorAll("[share-target]").forEach((i) => {
|
436
436
|
i.share = {}, i.share.instance = this, i.share.params = t, i.share.eventHandler = l(this, M, K), i.addEventListener("click", i.share.eventHandler);
|
437
437
|
});
|
438
438
|
});
|
439
439
|
}, M = new WeakSet(), K = function() {
|
440
|
-
const { eventHandler: e, params: t } = this.share,
|
440
|
+
const { eventHandler: e, params: t } = this.share, s = this.getAttribute("share-target"), i = {
|
441
441
|
source: this.getAttribute("utm-source"),
|
442
442
|
medium: this.getAttribute("utm-medium"),
|
443
443
|
campaign: this.getAttribute("utm-campaign")
|
@@ -448,11 +448,11 @@ T = new WeakSet(), Y = function() {
|
|
448
448
|
duration: this.getAttribute("copy-duration") || t.duration
|
449
449
|
}, o = encodeURIComponent(document.URL);
|
450
450
|
let c = o;
|
451
|
-
if (
|
451
|
+
if (s == "wechat") {
|
452
452
|
window.open(`https://api.qrserver.com/v1/create-qr-code/?data=${o}&size=250x250`, "share to wechat", "width=300,height=300");
|
453
453
|
return;
|
454
454
|
}
|
455
|
-
if (
|
455
|
+
if (s == "url") {
|
456
456
|
if (B(".copied-wrapper"))
|
457
457
|
return;
|
458
458
|
document.querySelector("body").insertAdjacentHTML(oe.append, `<div class='copied-wrapper'><div class='text'>${a.success ? a.success : ""}</div><input id='clipboard' type='text' readonly></div>`);
|
@@ -461,33 +461,33 @@ T = new WeakSet(), Y = function() {
|
|
461
461
|
const n = document.querySelector("#clipboard");
|
462
462
|
if (n.value = a.text ?? window.location.href, n.setSelectionRange(0, 9999), n.select(), document.execCommand("copy")) {
|
463
463
|
document.execCommand("copy");
|
464
|
-
const g = document.querySelector(".copied-wrapper"),
|
465
|
-
|
464
|
+
const g = document.querySelector(".copied-wrapper"), A = document.querySelector(".copied-wrapper .text");
|
465
|
+
A.style.display = "block", A.style.opacity = 0;
|
466
466
|
const v = (p, O) => {
|
467
467
|
let b = 0;
|
468
468
|
const w = 50, S = w / O, I = setInterval(function() {
|
469
469
|
b += S, p.style.opacity = b, b >= 1 && (clearInterval(I), setTimeout(function() {
|
470
|
-
|
470
|
+
x(p, 300, function() {
|
471
471
|
g.remove();
|
472
472
|
});
|
473
473
|
}, a.duration));
|
474
474
|
}, w);
|
475
|
-
},
|
475
|
+
}, x = (p, O, b) => {
|
476
476
|
let w = 1;
|
477
477
|
const S = 50, I = S / O, Q = setInterval(() => {
|
478
478
|
w -= I, p.style.opacity = w, w <= 0 && (clearInterval(Q), p.style.display = "none", b && b());
|
479
479
|
}, S);
|
480
480
|
};
|
481
|
-
v(
|
481
|
+
v(A, 300);
|
482
482
|
}
|
483
483
|
return;
|
484
484
|
}
|
485
|
-
c = `${c}${i.source ? `?utm_source=${i.source}` : ""}${i.medium ? `&utm_medium${i.medium}` : ""}${i.campaign ? `&utm_campaign${i.campaign}` : ""}`, c = c.replace("?", "%3F").replace(new RegExp("&", "g"), "%26"),
|
485
|
+
c = `${c}${i.source ? `?utm_source=${i.source}` : ""}${i.medium ? `&utm_medium${i.medium}` : ""}${i.campaign ? `&utm_campaign${i.campaign}` : ""}`, c = c.replace("?", "%3F").replace(new RegExp("&", "g"), "%26"), s == "line" ? window.open(`${P(s)}${o}`) : window.open(`${P(s)}${c}"e=${c}`), this.removeEventListener("click", e), setTimeout(() => {
|
486
486
|
this.addEventListener("click", e);
|
487
487
|
}, 100);
|
488
488
|
};
|
489
489
|
export {
|
490
|
-
|
490
|
+
xe as Anchor4,
|
491
491
|
Se as Aost4,
|
492
492
|
ve as Article4,
|
493
493
|
fe as CategorySlider,
|