aptechka 0.44.0 → 0.44.2
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/lib/Animation-D1lL_XhF.cjs +1 -0
- package/lib/Animation-Je56LXXj.js +106 -0
- package/lib/{Damped-DxylD27S.js → Damped-BMmEn7PH.js} +4 -3
- package/lib/Damped-BbJjFOLH.cjs +1 -0
- package/lib/{Store-Cm3LPXlx.js → Store-D2xCXENW.js} +1 -1
- package/lib/Store-DRp_K37w.cjs +1 -0
- package/lib/{Tweened-p5hYr6lL.js → Tweened-BNCj14Jz.js} +4 -3
- package/lib/Tweened-Dk1UNPSH.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +2 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +11 -11
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +12 -11
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +7 -6
- package/lib/custom-scrollbar/index.cjs +1 -1
- package/lib/custom-scrollbar/index.js +13 -12
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +7 -6
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +1 -1
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +9 -8
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +6 -5
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +5 -4
- package/lib/index-Cqw2NKev.cjs +1 -0
- package/lib/index-euf5anj6.js +64 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +4 -61
- package/lib/{jss-CjccJC-K.js → jss-BQSxj7Ls.js} +1 -1
- package/lib/jss-B_mh4mIw.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +35 -34
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +10 -9
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +17 -16
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +7 -6
- package/lib/morph/MorphAnnouncer.d.ts +0 -1
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +57 -57
- package/lib/need_redo_tweaker/index.cjs +3 -3
- package/lib/need_redo_tweaker/index.js +260 -260
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +34 -33
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +25 -25
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +3 -3
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +278 -278
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +21 -21
- package/lib/scroll-segment/ScrollSegmentDefaultContainer.d.ts +11 -0
- package/lib/scroll-segment/ScrollSegmentElement.d.ts +78 -0
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.d.ts +2 -79
- package/lib/scroll-segment/index.js +193 -164
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +6 -6
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +12 -11
- package/lib/slicer/SlicerElement.d.ts +2 -2
- package/lib/slicer/index.cjs +2 -2
- package/lib/slicer/index.js +10 -9
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +13 -12
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +1 -1
- package/lib/url-CLvdjbII.cjs +1 -0
- package/lib/{url-D0bFvcuq.js → url-CfcHdBT6.js} +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +163 -148
- package/lib/utils/timeouts.d.ts +5 -0
- package/lib/utils/url.d.ts +5 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +7 -6
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +13 -12
- package/package.json +1 -1
- package/lib/Animation-CMiBKrwE.cjs +0 -1
- package/lib/Animation-DPRlQfW2.js +0 -105
- package/lib/Damped-CHZ314Rn.cjs +0 -1
- package/lib/Store-C2J4Q87x.cjs +0 -1
- package/lib/Tweened-Dn6CMA-p.cjs +0 -1
- package/lib/browser-0zX67oeU.js +0 -4
- package/lib/browser-CpzFX2xg.cjs +0 -1
- package/lib/jss-GJLvaNfT.cjs +0 -1
- package/lib/url-Bn9ZrvT3.cjs +0 -1
|
@@ -3,8 +3,8 @@ var vt = (r) => {
|
|
|
3
3
|
};
|
|
4
4
|
var Xe = (r, s, t) => s.has(r) || vt("Cannot " + t);
|
|
5
5
|
var e = (r, s, t) => (Xe(r, s, "read from private field"), t ? t.call(r) : s.get(r)), o = (r, s, t) => s.has(r) ? vt("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, t), c = (r, s, t, i) => (Xe(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t), l = (r, s, t) => (Xe(r, s, "access private method"), t);
|
|
6
|
-
import { i as
|
|
7
|
-
import { S as
|
|
6
|
+
import { i as g } from "../index-euf5anj6.js";
|
|
7
|
+
import { S as $, s as K, a as j } from "../Store-D2xCXENW.js";
|
|
8
8
|
import { c as Ut } from "../file-GHShUlue.js";
|
|
9
9
|
import { d as Xt } from "../function-C10DGppn.js";
|
|
10
10
|
import { s as Et } from "../gestures-D2Fdra_G.js";
|
|
@@ -82,27 +82,27 @@ const ns = /* @__PURE__ */ new Set([
|
|
|
82
82
|
"view",
|
|
83
83
|
"use"
|
|
84
84
|
]);
|
|
85
|
-
var d,
|
|
85
|
+
var d, I, y, be, H, D, a, xt, Ct, Lt, Qe, je, Tt, zt, Mt, At, et, tt, Nt, st, it, Rt, nt, Be, ot, rt, at, We, qe;
|
|
86
86
|
const Je = class Je {
|
|
87
87
|
constructor(...s) {
|
|
88
88
|
o(this, a);
|
|
89
89
|
o(this, d, null);
|
|
90
|
-
o(this,
|
|
91
|
-
o(this,
|
|
90
|
+
o(this, I, /* @__PURE__ */ new Set());
|
|
91
|
+
o(this, y, /* @__PURE__ */ new Set());
|
|
92
92
|
o(this, be);
|
|
93
|
-
o(this, I);
|
|
94
93
|
o(this, H);
|
|
94
|
+
o(this, D);
|
|
95
95
|
o(this, We, (s) => {
|
|
96
|
-
e(this,
|
|
96
|
+
e(this, I).forEach((t) => {
|
|
97
97
|
t(s);
|
|
98
|
-
}), e(this,
|
|
98
|
+
}), e(this, I).clear();
|
|
99
99
|
});
|
|
100
100
|
o(this, qe, (s, t) => {
|
|
101
|
-
e(this,
|
|
101
|
+
e(this, y).forEach((i) => {
|
|
102
102
|
i(s, t);
|
|
103
|
-
}), e(this,
|
|
103
|
+
}), e(this, y).clear(), l(this, a, it).call(this);
|
|
104
104
|
});
|
|
105
|
-
if (
|
|
105
|
+
if (g) {
|
|
106
106
|
const t = s[0], i = s[1];
|
|
107
107
|
c(this, d, l(this, a, xt).call(this, t, i == null ? void 0 : i.forceSvg)), l(this, a, Lt).call(this, i);
|
|
108
108
|
}
|
|
@@ -112,12 +112,12 @@ const Je = class Je {
|
|
|
112
112
|
}
|
|
113
113
|
set node(s) {
|
|
114
114
|
var t;
|
|
115
|
-
l(this, a, it).call(this), c(this, d, s), (t = e(this, be)) == null || t.call(this), e(this, d) instanceof Element && c(this,
|
|
115
|
+
l(this, a, it).call(this), c(this, d, s), (t = e(this, be)) == null || t.call(this), e(this, d) instanceof Element && c(this, H, [
|
|
116
116
|
...e(this, d).querySelectorAll("store-root")
|
|
117
117
|
]), l(this, a, st).call(this), l(this, a, Qe).call(this);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
d = new WeakMap(),
|
|
120
|
+
d = new WeakMap(), I = new WeakMap(), y = new WeakMap(), be = new WeakMap(), H = new WeakMap(), D = new WeakMap(), a = new WeakSet(), xt = function(s, t) {
|
|
121
121
|
let i = null;
|
|
122
122
|
if (s instanceof Node)
|
|
123
123
|
i = s;
|
|
@@ -139,11 +139,11 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
139
139
|
}, Lt = function(s) {
|
|
140
140
|
if (!s) return;
|
|
141
141
|
const t = l(this, a, Ct).call(this, e(this, d)), i = s.ref;
|
|
142
|
-
delete s.ref, s != null && s.onConnect && (e(this,
|
|
142
|
+
delete s.ref, s != null && s.onConnect && (e(this, I).add(s.onConnect), delete s.onConnect), s != null && s.onDisconnect && (e(this, y).add(s.onDisconnect), delete s.onDisconnect);
|
|
143
143
|
let n, h;
|
|
144
144
|
for (const u in s) {
|
|
145
145
|
const m = s[u];
|
|
146
|
-
u === "class" && t ? l(this, a, je).call(this, m) : u === "style" && t ? l(this, a, Mt).call(this, m) : u === "lightChildren" ? l(this, a, Be).call(this, e(this, d), m) : u === "children" ? l(this, a, Be).call(this, e(this, d) instanceof Element ? e(this, d).shadowRoot || e(this, d) : e(this, d), m) : u === "connectedClass" ? e(this,
|
|
146
|
+
u === "class" && t ? l(this, a, je).call(this, m) : u === "style" && t ? l(this, a, Mt).call(this, m) : u === "lightChildren" ? l(this, a, Be).call(this, e(this, d), m) : u === "children" ? l(this, a, Be).call(this, e(this, d) instanceof Element ? e(this, d).shadowRoot || e(this, d) : e(this, d), m) : u === "connectedClass" ? e(this, I).add(() => {
|
|
147
147
|
requestAnimationFrame(() => {
|
|
148
148
|
e(this, d).classList.add(
|
|
149
149
|
typeof m == "boolean" ? "connected" : m
|
|
@@ -153,7 +153,7 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
153
153
|
}
|
|
154
154
|
l(this, a, Rt).call(this, n), l(this, a, Nt).call(this, h), i && (typeof i == "function" ? i(e(this, d)) : i.current = e(this, d)), l(this, a, Qe).call(this);
|
|
155
155
|
}, Qe = function() {
|
|
156
|
-
if (
|
|
156
|
+
if (g && (e(this, y).size || e(this, I).size)) {
|
|
157
157
|
const s = e(this, d) instanceof DocumentFragment ? e(this, d).firstChild : e(this, d);
|
|
158
158
|
c(this, be, jt.subscribe(
|
|
159
159
|
s,
|
|
@@ -174,16 +174,16 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
174
174
|
t && l(this, a, je).call(this, t);
|
|
175
175
|
});
|
|
176
176
|
else if (typeof s == "object")
|
|
177
|
-
if (s instanceof
|
|
177
|
+
if (s instanceof $)
|
|
178
178
|
l(this, a, Tt).call(this, s);
|
|
179
179
|
else
|
|
180
180
|
for (const t in s) {
|
|
181
181
|
const i = s[t];
|
|
182
|
-
i instanceof
|
|
182
|
+
i instanceof $ ? l(this, a, zt).call(this, t, i) : i ? e(this, d).classList.add(t) : e(this, d).classList.remove(t);
|
|
183
183
|
}
|
|
184
184
|
} else return;
|
|
185
185
|
}, Tt = function(s) {
|
|
186
|
-
e(this,
|
|
186
|
+
e(this, y).add(
|
|
187
187
|
s.subscribe(({ current: t, previous: i }) => {
|
|
188
188
|
i && [i].flat().forEach((n) => {
|
|
189
189
|
n && e(this, d).classList.remove(n);
|
|
@@ -193,7 +193,7 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
193
193
|
})
|
|
194
194
|
);
|
|
195
195
|
}, zt = function(s, t) {
|
|
196
|
-
e(this,
|
|
196
|
+
e(this, y).add(
|
|
197
197
|
t.subscribe(({ current: i }) => {
|
|
198
198
|
i ? e(this, d).classList.add(s) : e(this, d).classList.remove(s);
|
|
199
199
|
})
|
|
@@ -205,7 +205,7 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
205
205
|
}, At = function(s) {
|
|
206
206
|
for (const t in s) {
|
|
207
207
|
const i = t, n = s[i];
|
|
208
|
-
n instanceof
|
|
208
|
+
n instanceof $ ? e(this, y).add(
|
|
209
209
|
n.subscribe(({ current: h }) => {
|
|
210
210
|
l(this, a, tt).call(this, i, h);
|
|
211
211
|
})
|
|
@@ -214,13 +214,13 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
214
214
|
}, et = function(s) {
|
|
215
215
|
for (const t in s) {
|
|
216
216
|
const i = s[t];
|
|
217
|
-
if (typeof i == "object" && !(i instanceof
|
|
217
|
+
if (typeof i == "object" && !(i instanceof $))
|
|
218
218
|
e(this, d).appendChild(
|
|
219
219
|
document.createTextNode(`${t} {`)
|
|
220
220
|
), l(this, a, et).call(this, i), e(this, d).appendChild(document.createTextNode("}"));
|
|
221
|
-
else if (i instanceof
|
|
221
|
+
else if (i instanceof $) {
|
|
222
222
|
const n = document.createTextNode("");
|
|
223
|
-
e(this,
|
|
223
|
+
e(this, y).add(
|
|
224
224
|
i.subscribe((h) => {
|
|
225
225
|
h.current ? n.nodeValue = `${Oe(t)}: ${h.current};` : n.nodeValue = "";
|
|
226
226
|
})
|
|
@@ -234,16 +234,16 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
234
234
|
s.includes("--") ? t ? e(this, d).style.setProperty(s, t.toString()) : e(this, d).style.removeProperty(s) : t ? e(this, d).style[s] = t.toString() : e(this, d).style[s] = "";
|
|
235
235
|
}, Nt = function(s) {
|
|
236
236
|
if (s) {
|
|
237
|
-
e(this,
|
|
237
|
+
e(this, D) || c(this, D, []);
|
|
238
238
|
for (const t in s) {
|
|
239
239
|
const i = t, n = Qt(
|
|
240
240
|
i.split("on").slice(1).join("on")
|
|
241
241
|
), h = s[i];
|
|
242
|
-
typeof h == "object" ? e(this,
|
|
242
|
+
typeof h == "object" ? e(this, D).push({
|
|
243
243
|
name: n,
|
|
244
244
|
callback: h.callback,
|
|
245
245
|
options: h.options
|
|
246
|
-
}) : typeof h == "function" && e(this,
|
|
246
|
+
}) : typeof h == "function" && e(this, D).push({
|
|
247
247
|
name: n,
|
|
248
248
|
callback: h
|
|
249
249
|
});
|
|
@@ -252,7 +252,7 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
252
252
|
}
|
|
253
253
|
}, st = function() {
|
|
254
254
|
var s;
|
|
255
|
-
(s = e(this,
|
|
255
|
+
(s = e(this, D)) == null || s.forEach((t) => {
|
|
256
256
|
e(this, d).addEventListener(
|
|
257
257
|
t.name,
|
|
258
258
|
t.callback,
|
|
@@ -261,7 +261,7 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
261
261
|
});
|
|
262
262
|
}, it = function() {
|
|
263
263
|
var s;
|
|
264
|
-
(s = e(this,
|
|
264
|
+
(s = e(this, D)) == null || s.forEach((t) => {
|
|
265
265
|
e(this, d).removeEventListener(
|
|
266
266
|
t.name,
|
|
267
267
|
t.callback,
|
|
@@ -271,7 +271,7 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
271
271
|
}, Rt = function(s) {
|
|
272
272
|
for (const t in s) {
|
|
273
273
|
const i = s[t];
|
|
274
|
-
i instanceof
|
|
274
|
+
i instanceof $ ? e(this, y).add(
|
|
275
275
|
i.subscribe(({ current: n }) => {
|
|
276
276
|
l(this, a, nt).call(this, t, n);
|
|
277
277
|
})
|
|
@@ -288,35 +288,35 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
288
288
|
}
|
|
289
289
|
}, Be = function(s, t) {
|
|
290
290
|
t && (t = [t].flat(), t.forEach((i) => {
|
|
291
|
-
if (i instanceof
|
|
291
|
+
if (i instanceof $) {
|
|
292
292
|
const n = document.createElement("div");
|
|
293
|
-
n.style.display = "contents", s.appendChild(n), e(this,
|
|
294
|
-
const h = e(this,
|
|
295
|
-
n.setAttribute("store-root", ""), e(this,
|
|
293
|
+
n.style.display = "contents", s.appendChild(n), e(this, H) || c(this, H, []);
|
|
294
|
+
const h = e(this, H).length;
|
|
295
|
+
n.setAttribute("store-root", ""), e(this, H).push(n), e(this, y).add(
|
|
296
296
|
i.subscribe(({ current: u, previous: m }) => {
|
|
297
|
-
const
|
|
298
|
-
|
|
297
|
+
const k = e(this, H)[h];
|
|
298
|
+
k.dispatchEvent(
|
|
299
299
|
new CustomEvent("beforeChildrenChange", {
|
|
300
300
|
bubbles: !0,
|
|
301
301
|
composed: !0
|
|
302
302
|
})
|
|
303
303
|
);
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}),
|
|
308
|
-
if (
|
|
309
|
-
if (
|
|
310
|
-
const
|
|
311
|
-
|
|
304
|
+
const L = Array.from(k.childNodes), v = Array.isArray(u) ? u : [u], pe = Array.isArray(m) ? m : [m], _e = [], x = [];
|
|
305
|
+
L.length && pe.forEach((R, P) => {
|
|
306
|
+
v.includes(R) ? x.push(R) : _e.push(L[P]);
|
|
307
|
+
}), v.forEach((R, P) => {
|
|
308
|
+
if (x[P] != null) {
|
|
309
|
+
if (R !== x[P]) {
|
|
310
|
+
const B = l(this, a, rt).call(this, R), q = L[P];
|
|
311
|
+
B instanceof Node && !q.isEqualNode(B) ? k.replaceChild(B, q) : k.removeChild(q);
|
|
312
312
|
}
|
|
313
313
|
} else {
|
|
314
|
-
const
|
|
315
|
-
|
|
314
|
+
const B = l(this, a, rt).call(this, R);
|
|
315
|
+
B instanceof Node && n.appendChild(B);
|
|
316
316
|
}
|
|
317
|
-
}), _e.forEach((
|
|
318
|
-
|
|
319
|
-
}),
|
|
317
|
+
}), _e.forEach((R) => {
|
|
318
|
+
k.removeChild(R);
|
|
319
|
+
}), k.dispatchEvent(
|
|
320
320
|
new CustomEvent("afterChildrenChange", {
|
|
321
321
|
bubbles: !0,
|
|
322
322
|
composed: !0
|
|
@@ -334,9 +334,9 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
334
334
|
}
|
|
335
335
|
}));
|
|
336
336
|
}, ot = function(s, t) {
|
|
337
|
-
!(s instanceof ShadowRoot) && t instanceof HTMLElement && t.tagName === "STYLE" ? (e(this,
|
|
337
|
+
!(s instanceof ShadowRoot) && t instanceof HTMLElement && t.tagName === "STYLE" ? (e(this, I).add(() => {
|
|
338
338
|
[...document.head.querySelectorAll("style")].find((n) => n.outerHTML === t.outerHTML) || document.head.appendChild(t);
|
|
339
|
-
}), e(this,
|
|
339
|
+
}), e(this, y).add(() => {
|
|
340
340
|
t.remove();
|
|
341
341
|
})) : s.appendChild(t);
|
|
342
342
|
}, rt = function(s) {
|
|
@@ -354,37 +354,37 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
|
|
|
354
354
|
} else
|
|
355
355
|
return;
|
|
356
356
|
}, We = new WeakMap(), qe = new WeakMap();
|
|
357
|
-
let
|
|
358
|
-
function
|
|
359
|
-
return new
|
|
357
|
+
let N = Je;
|
|
358
|
+
function p(...r) {
|
|
359
|
+
return new N(...r);
|
|
360
360
|
}
|
|
361
361
|
function os(r) {
|
|
362
|
-
return new
|
|
362
|
+
return new N("a", r);
|
|
363
363
|
}
|
|
364
364
|
function ee(r) {
|
|
365
|
-
return new
|
|
365
|
+
return new N("button", r);
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
return new
|
|
367
|
+
function b(r) {
|
|
368
|
+
return new N("div", r);
|
|
369
369
|
}
|
|
370
370
|
function Ve(r) {
|
|
371
|
-
return new
|
|
371
|
+
return new N("input", r);
|
|
372
372
|
}
|
|
373
373
|
function Ft(r) {
|
|
374
|
-
return new
|
|
374
|
+
return new N("label", r);
|
|
375
375
|
}
|
|
376
376
|
function me(r) {
|
|
377
|
-
return new
|
|
377
|
+
return new N("slot", r);
|
|
378
378
|
}
|
|
379
379
|
function lt(r) {
|
|
380
|
-
return new
|
|
380
|
+
return new N("span", r);
|
|
381
381
|
}
|
|
382
382
|
function Pt(r) {
|
|
383
|
-
return new
|
|
383
|
+
return new N("style", {
|
|
384
384
|
style: r
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function E(r) {
|
|
388
388
|
const s = new CSSStyleSheet();
|
|
389
389
|
return s.replaceSync(Pt(r).node.innerHTML), s;
|
|
390
390
|
}
|
|
@@ -410,7 +410,7 @@ const f = rs(
|
|
|
410
410
|
},
|
|
411
411
|
{ prefix: "aptechka-" }
|
|
412
412
|
);
|
|
413
|
-
if (
|
|
413
|
+
if (g) {
|
|
414
414
|
const r = Pt({
|
|
415
415
|
":root": f.style
|
|
416
416
|
}).node;
|
|
@@ -425,51 +425,51 @@ const $t = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
425
425
|
<path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
|
|
426
426
|
</svg>
|
|
427
427
|
`;
|
|
428
|
-
var
|
|
428
|
+
var J, T, V;
|
|
429
429
|
class hs {
|
|
430
430
|
constructor() {
|
|
431
|
-
o(this,
|
|
432
|
-
o(this,
|
|
433
|
-
o(this,
|
|
434
|
-
this.scrollValue = 0, c(this,
|
|
431
|
+
o(this, J);
|
|
432
|
+
o(this, T);
|
|
433
|
+
o(this, V);
|
|
434
|
+
this.scrollValue = 0, c(this, J, ""), c(this, T, []), c(this, V, {}), c(this, J, K.name + "-tweaker");
|
|
435
435
|
}
|
|
436
436
|
openPanel(s) {
|
|
437
|
-
e(this,
|
|
437
|
+
e(this, T).includes(s) || e(this, T).push(s);
|
|
438
438
|
}
|
|
439
439
|
closePanel(s) {
|
|
440
|
-
c(this,
|
|
440
|
+
c(this, T, e(this, T).filter((t) => t !== s));
|
|
441
441
|
}
|
|
442
442
|
isPanelOpened(s) {
|
|
443
|
-
return e(this,
|
|
443
|
+
return e(this, T).includes(s);
|
|
444
444
|
}
|
|
445
445
|
changedSizes(s) {
|
|
446
|
-
return e(this,
|
|
446
|
+
return e(this, V)[s];
|
|
447
447
|
}
|
|
448
448
|
changeSize(s, t) {
|
|
449
|
-
t ? e(this,
|
|
449
|
+
t ? e(this, V)[s] = t : delete e(this, V)[s];
|
|
450
450
|
}
|
|
451
451
|
save() {
|
|
452
452
|
const s = {
|
|
453
|
-
openedPanels: e(this,
|
|
454
|
-
changedSizes: e(this,
|
|
453
|
+
openedPanels: e(this, T),
|
|
454
|
+
changedSizes: e(this, V),
|
|
455
455
|
scrollValue: this.scrollValue
|
|
456
456
|
};
|
|
457
|
-
localStorage.setItem(e(this,
|
|
457
|
+
localStorage.setItem(e(this, J), JSON.stringify(s)), K.saveState();
|
|
458
458
|
}
|
|
459
459
|
load() {
|
|
460
|
-
|
|
461
|
-
const s = localStorage.getItem(e(this,
|
|
460
|
+
K.loadState();
|
|
461
|
+
const s = localStorage.getItem(e(this, J));
|
|
462
462
|
if (s)
|
|
463
463
|
try {
|
|
464
464
|
const t = JSON.parse(s);
|
|
465
|
-
t.openedPanels && c(this,
|
|
465
|
+
t.openedPanels && c(this, T, t.openedPanels), t.changedSizes && c(this, V, t.changedSizes), t.scrollValue && (this.scrollValue = t.scrollValue);
|
|
466
466
|
} catch (t) {
|
|
467
467
|
console.error(t);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
|
|
472
|
-
const
|
|
471
|
+
J = new WeakMap(), T = new WeakMap(), V = new WeakMap();
|
|
472
|
+
const C = new hs(), cs = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>', ds = E({
|
|
473
473
|
":host": {
|
|
474
474
|
position: "relative",
|
|
475
475
|
display: "inline-block",
|
|
@@ -511,14 +511,14 @@ const x = new hs(), cs = '<svg xmlns="http://www.w3.org/2000/svg" width="32" hei
|
|
|
511
511
|
opacity: 1
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
|
-
var
|
|
514
|
+
var O, te, Y, we;
|
|
515
515
|
const pt = class pt extends HTMLElement {
|
|
516
516
|
constructor() {
|
|
517
517
|
super();
|
|
518
|
-
o(this,
|
|
519
|
-
o(this,
|
|
518
|
+
o(this, Y);
|
|
519
|
+
o(this, O, null);
|
|
520
520
|
o(this, te);
|
|
521
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ds), c(this, te, this.attachInternals()),
|
|
521
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ds), c(this, te, this.attachInternals()), p(this, {
|
|
522
522
|
children: Ft({
|
|
523
523
|
children: [
|
|
524
524
|
lt({
|
|
@@ -534,12 +534,12 @@ const pt = class pt extends HTMLElement {
|
|
|
534
534
|
}),
|
|
535
535
|
Ve({
|
|
536
536
|
ref: (i) => {
|
|
537
|
-
c(this,
|
|
537
|
+
c(this, O, i), i.required = this.hasAttribute("required"), i.value = this.getAttribute("value") || "", i.checked = this.hasAttribute("checked"), i.name = this.getAttribute("name") || "", l(this, Y, we).call(this);
|
|
538
538
|
},
|
|
539
539
|
class: "real",
|
|
540
540
|
type: "checkbox",
|
|
541
541
|
onChange: () => {
|
|
542
|
-
l(this,
|
|
542
|
+
l(this, Y, we).call(this), this.dispatchEvent(
|
|
543
543
|
new Event("change", {
|
|
544
544
|
composed: !0
|
|
545
545
|
})
|
|
@@ -551,47 +551,47 @@ const pt = class pt extends HTMLElement {
|
|
|
551
551
|
});
|
|
552
552
|
}
|
|
553
553
|
get checked() {
|
|
554
|
-
return e(this,
|
|
554
|
+
return e(this, O).checked;
|
|
555
555
|
}
|
|
556
556
|
set checked(t) {
|
|
557
|
-
e(this,
|
|
557
|
+
e(this, O).checked = t, l(this, Y, we).call(this);
|
|
558
558
|
}
|
|
559
559
|
get value() {
|
|
560
|
-
return e(this,
|
|
560
|
+
return e(this, O).value;
|
|
561
561
|
}
|
|
562
562
|
set value(t) {
|
|
563
|
-
e(this,
|
|
563
|
+
e(this, O).value = t, l(this, Y, we).call(this);
|
|
564
564
|
}
|
|
565
565
|
};
|
|
566
|
-
|
|
566
|
+
O = new WeakMap(), te = new WeakMap(), Y = new WeakSet(), we = function() {
|
|
567
567
|
this.checked ? e(this, te).setFormValue(this.value) : e(this, te).setFormValue(null), this.classList.toggle("checked", this.checked);
|
|
568
568
|
}, pt.formAssociated = !0;
|
|
569
569
|
let ht = pt;
|
|
570
|
-
customElements.get("e-checkbox")
|
|
571
|
-
var
|
|
570
|
+
g && !customElements.get("e-checkbox") && customElements.define("e-checkbox", ht);
|
|
571
|
+
var Z;
|
|
572
572
|
class ge extends HTMLElement {
|
|
573
573
|
constructor(...t) {
|
|
574
574
|
super();
|
|
575
|
-
o(this,
|
|
576
|
-
c(this,
|
|
575
|
+
o(this, Z);
|
|
576
|
+
c(this, Z, t);
|
|
577
577
|
}
|
|
578
578
|
addStore(t) {
|
|
579
|
-
e(this,
|
|
579
|
+
e(this, Z).push(t);
|
|
580
580
|
}
|
|
581
581
|
get firstStore() {
|
|
582
|
-
return e(this,
|
|
582
|
+
return e(this, Z)[0];
|
|
583
583
|
}
|
|
584
584
|
get stores() {
|
|
585
|
-
return e(this,
|
|
585
|
+
return e(this, Z);
|
|
586
586
|
}
|
|
587
587
|
updateStores(t) {
|
|
588
|
-
e(this,
|
|
588
|
+
e(this, Z).forEach((i) => {
|
|
589
589
|
i.current = t;
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
|
|
594
|
-
const us =
|
|
593
|
+
Z = new WeakMap();
|
|
594
|
+
const us = E({
|
|
595
595
|
":host": {
|
|
596
596
|
width: "100%",
|
|
597
597
|
display: "inline-flex",
|
|
@@ -606,9 +606,9 @@ const us = k({
|
|
|
606
606
|
});
|
|
607
607
|
class Dt extends ge {
|
|
608
608
|
constructor(...s) {
|
|
609
|
-
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(us),
|
|
609
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(us), p(this, {
|
|
610
610
|
children: [
|
|
611
|
-
|
|
611
|
+
p("e-checkbox", {
|
|
612
612
|
onChange: (i) => {
|
|
613
613
|
this.updateStores(i.currentTarget.checked);
|
|
614
614
|
},
|
|
@@ -622,11 +622,11 @@ class Dt extends ge {
|
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
customElements.get("e-tweaker-boolean-manager")
|
|
625
|
+
g && !customElements.get("e-tweaker-boolean-manager") && customElements.define(
|
|
626
626
|
"e-tweaker-boolean-manager",
|
|
627
627
|
Dt
|
|
628
628
|
);
|
|
629
|
-
const fs =
|
|
629
|
+
const fs = E({
|
|
630
630
|
":host": {
|
|
631
631
|
width: "100%",
|
|
632
632
|
display: "inline-flex",
|
|
@@ -651,7 +651,7 @@ const fs = k({
|
|
|
651
651
|
});
|
|
652
652
|
class Vt extends ge {
|
|
653
653
|
constructor(...s) {
|
|
654
|
-
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(fs),
|
|
654
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(fs), p(this, {
|
|
655
655
|
children: [
|
|
656
656
|
Ve({
|
|
657
657
|
type: "color",
|
|
@@ -664,8 +664,8 @@ class Vt extends ge {
|
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
|
-
customElements.get("e-tweaker-color-manager")
|
|
668
|
-
const ms =
|
|
667
|
+
g && !customElements.get("e-tweaker-color-manager") && customElements.define("e-tweaker-color-manager", Vt);
|
|
668
|
+
const ms = E({
|
|
669
669
|
a: {
|
|
670
670
|
color: "inherit",
|
|
671
671
|
fontSize: "var(--font-size-small)"
|
|
@@ -674,7 +674,7 @@ const ms = k({
|
|
|
674
674
|
class _t extends ge {
|
|
675
675
|
constructor(...s) {
|
|
676
676
|
var i;
|
|
677
|
-
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ms),
|
|
677
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ms), p(this, {
|
|
678
678
|
children: [
|
|
679
679
|
os({
|
|
680
680
|
href: this.firstStore,
|
|
@@ -685,8 +685,8 @@ class _t extends ge {
|
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
customElements.get("e-tweaker-link-manager")
|
|
689
|
-
const gs =
|
|
688
|
+
g && !customElements.get("e-tweaker-link-manager") && customElements.define("e-tweaker-link-manager", _t);
|
|
689
|
+
const gs = E({
|
|
690
690
|
":host": {
|
|
691
691
|
width: "100%",
|
|
692
692
|
display: "flex",
|
|
@@ -750,87 +750,87 @@ const gs = k({
|
|
|
750
750
|
opacity: 0.3
|
|
751
751
|
}
|
|
752
752
|
});
|
|
753
|
-
var
|
|
753
|
+
var G, se, ie, _, W, ve, ye, F, U, Se, ke, w, Q, ct, dt, Ke, Ee;
|
|
754
754
|
class Bt extends ge {
|
|
755
755
|
constructor(...t) {
|
|
756
756
|
var n, h, u, m;
|
|
757
757
|
super(...t);
|
|
758
|
-
o(this,
|
|
759
|
-
o(this,
|
|
758
|
+
o(this, w);
|
|
759
|
+
o(this, G, []);
|
|
760
760
|
o(this, se, []);
|
|
761
761
|
o(this, ie);
|
|
762
|
-
o(this,
|
|
763
|
-
o(this,
|
|
762
|
+
o(this, _);
|
|
763
|
+
o(this, W);
|
|
764
764
|
o(this, ve);
|
|
765
765
|
o(this, ye);
|
|
766
|
-
o(this,
|
|
767
|
-
o(this,
|
|
766
|
+
o(this, F);
|
|
767
|
+
o(this, U, !1);
|
|
768
768
|
o(this, Se, (t) => {
|
|
769
|
-
const i = l(this,
|
|
769
|
+
const i = l(this, w, Q).call(this, t);
|
|
770
770
|
return i.map((n, h) => {
|
|
771
|
-
const u = typeof n == "string" ? parseFloat(n) || e(this,
|
|
772
|
-
i[h] =
|
|
771
|
+
const u = typeof n == "string" ? parseFloat(n) || e(this, _) : n, m = ts(u, e(this, _), e(this, W)), k = ss(m, e(this, ie));
|
|
772
|
+
i[h] = k;
|
|
773
773
|
}), e(this, ye) === "number" ? i[0] : i;
|
|
774
774
|
});
|
|
775
775
|
o(this, ke, () => {
|
|
776
|
-
l(this,
|
|
777
|
-
const n = e(this,
|
|
776
|
+
l(this, w, Q).call(this).map((t, i) => {
|
|
777
|
+
const n = e(this, G)[i];
|
|
778
778
|
n && (n.value = (t || 0).toString());
|
|
779
|
-
}), l(this,
|
|
779
|
+
}), l(this, w, ct).call(this);
|
|
780
780
|
});
|
|
781
781
|
o(this, Ee, () => {
|
|
782
|
-
l(this,
|
|
782
|
+
l(this, w, ct).call(this);
|
|
783
783
|
});
|
|
784
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(gs), c(this,
|
|
785
|
-
class: e(this,
|
|
786
|
-
children: l(this,
|
|
784
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(gs), c(this, _, St((n = this.firstStore.__manager) == null ? void 0 : n.min, -1 / 0)), c(this, W, St((h = this.firstStore.__manager) == null ? void 0 : h.max, 1 / 0)), c(this, ie, ((u = this.firstStore.__manager) == null ? void 0 : u.step) || 0.01), c(this, ve, ((m = this.firstStore.__manager) == null ? void 0 : m.ease) || 1), c(this, ye, Array.isArray(this.firstStore.current) ? "array" : "number"), c(this, F, isFinite(e(this, W)) && isFinite(e(this, _))), p(this, {
|
|
785
|
+
class: e(this, F) ? "" : "infinite",
|
|
786
|
+
children: l(this, w, Q).call(this).map((k, L) => b({
|
|
787
787
|
class: "inputs-wrapper",
|
|
788
788
|
children: [
|
|
789
789
|
Ve({
|
|
790
790
|
type: "number",
|
|
791
791
|
step: e(this, ie),
|
|
792
|
-
min: e(this,
|
|
793
|
-
max: e(this,
|
|
794
|
-
ref: (
|
|
795
|
-
value:
|
|
792
|
+
min: e(this, _),
|
|
793
|
+
max: e(this, W),
|
|
794
|
+
ref: (v) => e(this, G).push(v),
|
|
795
|
+
value: k,
|
|
796
796
|
onChange: () => {
|
|
797
797
|
this.updateStores(
|
|
798
|
-
e(this,
|
|
798
|
+
e(this, G).map((v) => parseFloat(v.value))
|
|
799
799
|
);
|
|
800
800
|
}
|
|
801
801
|
}),
|
|
802
|
-
|
|
802
|
+
b({
|
|
803
803
|
class: "drag",
|
|
804
804
|
children: [
|
|
805
|
-
|
|
805
|
+
b({
|
|
806
806
|
class: "drag-knob",
|
|
807
|
-
ref: (
|
|
808
|
-
onPointerdown: (
|
|
809
|
-
|
|
810
|
-
const pe = l(this,
|
|
811
|
-
if (
|
|
812
|
-
const
|
|
813
|
-
|
|
814
|
-
(
|
|
815
|
-
const bt =
|
|
816
|
-
if (pe[
|
|
817
|
-
const Gt = l(this,
|
|
818
|
-
|
|
807
|
+
ref: (v) => e(this, se).push(v),
|
|
808
|
+
onPointerdown: (v) => {
|
|
809
|
+
v.preventDefault(), c(this, U, !0);
|
|
810
|
+
const pe = l(this, w, Q).call(this), _e = pe[L], x = e(this, se)[L], R = e(this, G)[L];
|
|
811
|
+
if (x && R) {
|
|
812
|
+
const P = x.parentElement, B = l(this, w, dt).call(this);
|
|
813
|
+
P.classList.add("grabbing"), Et(
|
|
814
|
+
(q) => {
|
|
815
|
+
const bt = q.x - v.x, Jt = e(this, F) ? P.offsetWidth / (B || 1) : 1, Yt = _e + bt / Jt * e(this, ve);
|
|
816
|
+
if (pe[L] = Yt, !e(this, F)) {
|
|
817
|
+
const Gt = l(this, w, Ke).call(this, x, 0);
|
|
818
|
+
x.style.transform = `translateX(${Gt + bt}px)`;
|
|
819
819
|
}
|
|
820
820
|
this.updateStores([...pe]);
|
|
821
821
|
},
|
|
822
822
|
() => {
|
|
823
|
-
if (c(this,
|
|
824
|
-
const
|
|
825
|
-
|
|
826
|
-
|
|
823
|
+
if (c(this, U, !1), !e(this, F)) {
|
|
824
|
+
const q = l(this, w, Ke).call(this, x, 0);
|
|
825
|
+
x.style.transition = "transform 0.1s", x.style.transform = `translateX(${q}px)`, P.classList.remove("grabbing"), setTimeout(() => {
|
|
826
|
+
x.style.transition = "";
|
|
827
827
|
}, 100);
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
);
|
|
831
831
|
}
|
|
832
832
|
},
|
|
833
|
-
children:
|
|
833
|
+
children: b({
|
|
834
834
|
class: "drag-knob-inner"
|
|
835
835
|
})
|
|
836
836
|
})
|
|
@@ -847,23 +847,23 @@ class Bt extends ge {
|
|
|
847
847
|
this.firstStore.removeMiddleware(e(this, Se)), this.firstStore.unsubscribe(e(this, ke)), kt.unsubscribe(e(this, Ee));
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
|
-
|
|
850
|
+
G = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), _ = new WeakMap(), W = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), F = new WeakMap(), U = new WeakMap(), Se = new WeakMap(), ke = new WeakMap(), w = new WeakSet(), Q = function(t = this.firstStore.current) {
|
|
851
851
|
return Array.isArray(t) ? t : [t];
|
|
852
852
|
}, ct = function() {
|
|
853
|
-
l(this,
|
|
853
|
+
l(this, w, Q).call(this).map((t, i) => {
|
|
854
854
|
const n = e(this, se)[i];
|
|
855
|
-
if (n && (!e(this,
|
|
856
|
-
const h = l(this,
|
|
855
|
+
if (n && (!e(this, U) || e(this, U) && e(this, F))) {
|
|
856
|
+
const h = l(this, w, Ke).call(this, n, t);
|
|
857
857
|
n.style.transform = `translateX(${h}px)`;
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
860
|
}, dt = function() {
|
|
861
|
-
return e(this,
|
|
861
|
+
return e(this, F) ? e(this, W) - e(this, _) : 0;
|
|
862
862
|
}, Ke = function(t, i) {
|
|
863
|
-
const n = t.parentElement, h = l(this,
|
|
863
|
+
const n = t.parentElement, h = l(this, w, dt).call(this), u = h ? i / h : 0.5;
|
|
864
864
|
return (n.offsetWidth - t.offsetWidth) * u;
|
|
865
865
|
}, Ee = new WeakMap();
|
|
866
|
-
customElements.get("e-tweaker-number-manager")
|
|
866
|
+
g && !customElements.get("e-tweaker-number-manager") && customElements.define("e-tweaker-number-manager", Bt);
|
|
867
867
|
function Kt(r) {
|
|
868
868
|
r.dispatchEvent(
|
|
869
869
|
new CustomEvent("sizeChange", {
|
|
@@ -880,7 +880,7 @@ function ps(r) {
|
|
|
880
880
|
})
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
const ws =
|
|
883
|
+
const ws = E({
|
|
884
884
|
":host": {
|
|
885
885
|
position: "relative"
|
|
886
886
|
},
|
|
@@ -915,21 +915,21 @@ const ws = k({
|
|
|
915
915
|
paddingTop: "var(--gap, 0px)"
|
|
916
916
|
}
|
|
917
917
|
});
|
|
918
|
-
var ne, oe,
|
|
918
|
+
var ne, oe, z, X, re, ae, Ye, xe, ft;
|
|
919
919
|
const wt = class wt extends HTMLElement {
|
|
920
920
|
constructor() {
|
|
921
921
|
super();
|
|
922
922
|
o(this, xe);
|
|
923
923
|
o(this, ne, null);
|
|
924
924
|
o(this, oe, "");
|
|
925
|
-
o(this,
|
|
926
|
-
o(this,
|
|
925
|
+
o(this, z, null);
|
|
926
|
+
o(this, X, !1);
|
|
927
927
|
o(this, re);
|
|
928
928
|
o(this, ae, null);
|
|
929
929
|
o(this, Ye, () => {
|
|
930
930
|
Kt(this);
|
|
931
931
|
});
|
|
932
|
-
|
|
932
|
+
g && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ws), c(this, ne, this.attachInternals()), c(this, ae, new ResizeObserver(e(this, Ye))), p(this, {
|
|
933
933
|
children: [
|
|
934
934
|
ee({
|
|
935
935
|
class: "head",
|
|
@@ -938,17 +938,17 @@ const wt = class wt extends HTMLElement {
|
|
|
938
938
|
this.opened ? this.close() : this.open();
|
|
939
939
|
}
|
|
940
940
|
}),
|
|
941
|
-
|
|
941
|
+
b({
|
|
942
942
|
class: "body",
|
|
943
943
|
style: {
|
|
944
944
|
height: "0px"
|
|
945
945
|
},
|
|
946
|
-
children:
|
|
946
|
+
children: b({
|
|
947
947
|
class: "body-inner",
|
|
948
948
|
children: me()
|
|
949
949
|
}),
|
|
950
950
|
ref: (i) => {
|
|
951
|
-
c(this,
|
|
951
|
+
c(this, z, i);
|
|
952
952
|
}
|
|
953
953
|
})
|
|
954
954
|
]
|
|
@@ -969,38 +969,38 @@ const wt = class wt extends HTMLElement {
|
|
|
969
969
|
return e(this, ne);
|
|
970
970
|
}
|
|
971
971
|
get opened() {
|
|
972
|
-
return e(this,
|
|
972
|
+
return e(this, X);
|
|
973
973
|
}
|
|
974
974
|
open() {
|
|
975
|
-
clearTimeout(e(this, re)), c(this,
|
|
976
|
-
this.classList.add("opened"), e(this,
|
|
975
|
+
clearTimeout(e(this, re)), c(this, X, !0), e(this, z).style.display = "grid", this.classList.add("triggered"), setTimeout(() => {
|
|
976
|
+
this.classList.add("opened"), e(this, z).style.height = e(this, z).scrollHeight + "px", l(this, xe, ft).call(this);
|
|
977
977
|
}, 0);
|
|
978
978
|
}
|
|
979
979
|
close() {
|
|
980
|
-
c(this,
|
|
981
|
-
this.classList.remove("triggered"), e(this,
|
|
982
|
-
}, is(e(this,
|
|
980
|
+
c(this, X, !1), e(this, z).style.height = "0px", this.classList.remove("opened"), l(this, xe, ft).call(this), c(this, re, setTimeout(() => {
|
|
981
|
+
this.classList.remove("triggered"), e(this, z).style.display = "none";
|
|
982
|
+
}, is(e(this, z))));
|
|
983
983
|
}
|
|
984
984
|
connectedCallback() {
|
|
985
|
-
e(this, ae).observe(e(this,
|
|
985
|
+
e(this, ae).observe(e(this, z));
|
|
986
986
|
}
|
|
987
987
|
disconnectedCallback() {
|
|
988
988
|
clearTimeout(e(this, re)), e(this, ae).disconnect();
|
|
989
989
|
}
|
|
990
990
|
};
|
|
991
|
-
ne = new WeakMap(), oe = new WeakMap(),
|
|
991
|
+
ne = new WeakMap(), oe = new WeakMap(), z = new WeakMap(), X = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), Ye = new WeakMap(), xe = new WeakSet(), ft = function() {
|
|
992
992
|
ps(this), this.dispatchEvent(
|
|
993
993
|
new CustomEvent("selectToggle", {
|
|
994
994
|
bubbles: !0,
|
|
995
995
|
composed: !0,
|
|
996
996
|
detail: {
|
|
997
|
-
opened: e(this,
|
|
997
|
+
opened: e(this, X)
|
|
998
998
|
}
|
|
999
999
|
})
|
|
1000
1000
|
);
|
|
1001
1001
|
}, wt.formAssociated = !0;
|
|
1002
1002
|
let ut = wt;
|
|
1003
|
-
customElements.get("e-select")
|
|
1003
|
+
g && !customElements.get("e-select") && customElements.define("e-select", ut);
|
|
1004
1004
|
var Ce;
|
|
1005
1005
|
class Ot extends HTMLElement {
|
|
1006
1006
|
constructor() {
|
|
@@ -1017,7 +1017,7 @@ class Ot extends HTMLElement {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
Ce = new WeakMap();
|
|
1020
|
-
const bs =
|
|
1020
|
+
const bs = E({
|
|
1021
1021
|
":host": {
|
|
1022
1022
|
width: "100%",
|
|
1023
1023
|
height: "40px",
|
|
@@ -1033,7 +1033,7 @@ class vs extends Ot {
|
|
|
1033
1033
|
o(this, le, () => {
|
|
1034
1034
|
this.selectElement.value === this.value ? this.style.display = "none" : this.style.display = "";
|
|
1035
1035
|
});
|
|
1036
|
-
|
|
1036
|
+
g && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(bs), p(this, {
|
|
1037
1037
|
tabindex: 0,
|
|
1038
1038
|
onClick: () => {
|
|
1039
1039
|
l(this, Le, mt).call(this);
|
|
@@ -1059,8 +1059,8 @@ class vs extends Ot {
|
|
|
1059
1059
|
le = new WeakMap(), Le = new WeakSet(), mt = function() {
|
|
1060
1060
|
this.selectElement.value = this.value, this.selectElement.close();
|
|
1061
1061
|
};
|
|
1062
|
-
customElements.get("e-select-option")
|
|
1063
|
-
const ys =
|
|
1062
|
+
g && !customElements.get("e-select-option") && customElements.define("e-select-option", vs);
|
|
1063
|
+
const ys = E({
|
|
1064
1064
|
":host": {
|
|
1065
1065
|
width: "100%",
|
|
1066
1066
|
height: "40px",
|
|
@@ -1094,12 +1094,12 @@ class Ss extends Ot {
|
|
|
1094
1094
|
o(this, ze, () => {
|
|
1095
1095
|
this.classList.toggle("opened", this.selectElement.opened);
|
|
1096
1096
|
});
|
|
1097
|
-
|
|
1097
|
+
g && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ys), p(this, {
|
|
1098
1098
|
children: [
|
|
1099
1099
|
me(),
|
|
1100
1100
|
me({
|
|
1101
1101
|
name: "arrow",
|
|
1102
|
-
children:
|
|
1102
|
+
children: p(Ht, { class: "default-arrow" })
|
|
1103
1103
|
})
|
|
1104
1104
|
]
|
|
1105
1105
|
}), this.slot = "head");
|
|
@@ -1112,8 +1112,8 @@ class Ss extends Ot {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
1114
|
Te = new WeakMap(), he = new WeakMap(), ze = new WeakMap();
|
|
1115
|
-
customElements.get("e-select-head")
|
|
1116
|
-
const ks =
|
|
1115
|
+
g && !customElements.get("e-select-head") && customElements.define("e-select-head", Ss);
|
|
1116
|
+
const ks = E({
|
|
1117
1117
|
"e-select": {
|
|
1118
1118
|
display: "block",
|
|
1119
1119
|
width: "100%",
|
|
@@ -1152,14 +1152,14 @@ class Zt extends ge {
|
|
|
1152
1152
|
var n;
|
|
1153
1153
|
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ks);
|
|
1154
1154
|
const i = ((n = this.firstStore.__manager) == null ? void 0 : n.variants) || [];
|
|
1155
|
-
|
|
1156
|
-
children:
|
|
1155
|
+
p(this, {
|
|
1156
|
+
children: p("e-select", {
|
|
1157
1157
|
value: this.firstStore,
|
|
1158
1158
|
onChange: (h) => {
|
|
1159
1159
|
this.updateStores(h.currentTarget.value);
|
|
1160
1160
|
},
|
|
1161
1161
|
lightChildren: [
|
|
1162
|
-
|
|
1162
|
+
p("e-select-head", {
|
|
1163
1163
|
lightChildren: [
|
|
1164
1164
|
lt({
|
|
1165
1165
|
"data-value-holder": ""
|
|
@@ -1168,7 +1168,7 @@ class Zt extends ge {
|
|
|
1168
1168
|
}),
|
|
1169
1169
|
// @ts-ignore
|
|
1170
1170
|
...i.map(
|
|
1171
|
-
(h, u) =>
|
|
1171
|
+
(h, u) => p("e-select-option", {
|
|
1172
1172
|
lightChildren: h,
|
|
1173
1173
|
default: u === 0 ? !0 : null
|
|
1174
1174
|
})
|
|
@@ -1178,8 +1178,8 @@ class Zt extends ge {
|
|
|
1178
1178
|
});
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
|
-
customElements.get("e-tweaker-select-manager")
|
|
1182
|
-
const Es =
|
|
1181
|
+
g && !customElements.get("e-tweaker-select-manager") && customElements.define("e-tweaker-select-manager", Zt);
|
|
1182
|
+
const Es = E({
|
|
1183
1183
|
":host": {
|
|
1184
1184
|
width: "100%",
|
|
1185
1185
|
display: "flex",
|
|
@@ -1203,7 +1203,7 @@ const Es = k({
|
|
|
1203
1203
|
});
|
|
1204
1204
|
class Wt extends ge {
|
|
1205
1205
|
constructor(...s) {
|
|
1206
|
-
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Es),
|
|
1206
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Es), p(this, {
|
|
1207
1207
|
children: [
|
|
1208
1208
|
Ve({
|
|
1209
1209
|
class: "text-input",
|
|
@@ -1219,7 +1219,7 @@ class Wt extends ge {
|
|
|
1219
1219
|
});
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
|
-
customElements.get("e-tweaker-string-manager")
|
|
1222
|
+
g && !customElements.get("e-tweaker-string-manager") && customElements.define("e-tweaker-string-manager", Wt);
|
|
1223
1223
|
const xs = {
|
|
1224
1224
|
boolean: Dt,
|
|
1225
1225
|
color: Vt,
|
|
@@ -1227,7 +1227,7 @@ const xs = {
|
|
|
1227
1227
|
number: Bt,
|
|
1228
1228
|
select: Zt,
|
|
1229
1229
|
string: Wt
|
|
1230
|
-
}, Cs =
|
|
1230
|
+
}, Cs = E({
|
|
1231
1231
|
":host": {
|
|
1232
1232
|
display: "grid",
|
|
1233
1233
|
gridAutoFlow: "column",
|
|
@@ -1272,29 +1272,29 @@ const xs = {
|
|
|
1272
1272
|
height: "100%"
|
|
1273
1273
|
}
|
|
1274
1274
|
});
|
|
1275
|
-
var
|
|
1275
|
+
var M, ce, de, ue, fe, Me, Ae;
|
|
1276
1276
|
class gt extends HTMLElement {
|
|
1277
1277
|
constructor(t) {
|
|
1278
1278
|
var h, u;
|
|
1279
1279
|
super();
|
|
1280
|
-
o(this,
|
|
1280
|
+
o(this, M, []);
|
|
1281
1281
|
o(this, ce);
|
|
1282
1282
|
o(this, de);
|
|
1283
1283
|
o(this, ue, !1);
|
|
1284
1284
|
o(this, fe);
|
|
1285
1285
|
o(this, Me, () => {
|
|
1286
|
-
j.current.find((t) => e(this,
|
|
1286
|
+
j.current.find((t) => e(this, M).includes(t)) || this.remove();
|
|
1287
1287
|
});
|
|
1288
1288
|
o(this, Ae, (t) => {
|
|
1289
|
-
e(this, ue) && ((t.metaKey || t.ctrlKey) && t.code === "KeyC" ? navigator.clipboard.writeText(e(this,
|
|
1289
|
+
e(this, ue) && ((t.metaKey || t.ctrlKey) && t.code === "KeyC" ? navigator.clipboard.writeText(e(this, M)[0].current) : (t.metaKey || t.ctrlKey) && t.code === "KeyR" && (e(this, M).forEach((i) => {
|
|
1290
1290
|
i.reset();
|
|
1291
1291
|
}), t.preventDefault()));
|
|
1292
1292
|
});
|
|
1293
|
-
c(this,
|
|
1293
|
+
c(this, M, [t.store]), c(this, ce, t.store.name), c(this, de, e(this, ce).split(".").slice(-1).toString());
|
|
1294
1294
|
const i = ((h = t.store.__manager) == null ? void 0 : h.type) || "string";
|
|
1295
1295
|
c(this, fe, new xs[i](
|
|
1296
|
-
e(this,
|
|
1297
|
-
)), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Cs),
|
|
1296
|
+
e(this, M)[0]
|
|
1297
|
+
)), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Cs), p(this, {
|
|
1298
1298
|
class: {
|
|
1299
1299
|
disabled: ((u = t.store.__manager) == null ? void 0 : u.disabled) || !1
|
|
1300
1300
|
},
|
|
@@ -1305,25 +1305,25 @@ class gt extends HTMLElement {
|
|
|
1305
1305
|
c(this, ue, !0);
|
|
1306
1306
|
},
|
|
1307
1307
|
children: [
|
|
1308
|
-
|
|
1308
|
+
b({
|
|
1309
1309
|
class: "head",
|
|
1310
1310
|
children: [
|
|
1311
|
-
|
|
1312
|
-
|
|
1311
|
+
b({ class: "name", children: e(this, de) + ":" }),
|
|
1312
|
+
b({
|
|
1313
1313
|
class: "head-buttons",
|
|
1314
1314
|
children: [
|
|
1315
1315
|
ee({
|
|
1316
1316
|
class: "head-button",
|
|
1317
1317
|
children: It,
|
|
1318
1318
|
onClick: () => {
|
|
1319
|
-
navigator.clipboard.writeText(e(this,
|
|
1319
|
+
navigator.clipboard.writeText(e(this, M)[0].current);
|
|
1320
1320
|
}
|
|
1321
1321
|
}),
|
|
1322
1322
|
ee({
|
|
1323
1323
|
class: "head-button",
|
|
1324
1324
|
children: $t,
|
|
1325
1325
|
onClick: () => {
|
|
1326
|
-
e(this,
|
|
1326
|
+
e(this, M).forEach((m) => {
|
|
1327
1327
|
m.reset();
|
|
1328
1328
|
});
|
|
1329
1329
|
}
|
|
@@ -1343,7 +1343,7 @@ class gt extends HTMLElement {
|
|
|
1343
1343
|
return e(this, de);
|
|
1344
1344
|
}
|
|
1345
1345
|
get stores() {
|
|
1346
|
-
return e(this,
|
|
1346
|
+
return e(this, M);
|
|
1347
1347
|
}
|
|
1348
1348
|
addStore(t) {
|
|
1349
1349
|
e(this, fe).addStore(t);
|
|
@@ -1355,9 +1355,9 @@ class gt extends HTMLElement {
|
|
|
1355
1355
|
j.unsubscribe(e(this, Me)), removeEventListener("keydown", e(this, Ae));
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
|
|
1359
|
-
customElements.get("e-tweaker-field")
|
|
1360
|
-
const Ls =
|
|
1358
|
+
M = new WeakMap(), ce = new WeakMap(), de = new WeakMap(), ue = new WeakMap(), fe = new WeakMap(), Me = new WeakMap(), Ae = new WeakMap();
|
|
1359
|
+
g && !customElements.get("e-tweaker-field") && customElements.define("e-tweaker-field", gt);
|
|
1360
|
+
const Ls = E({
|
|
1361
1361
|
".wrapper": {
|
|
1362
1362
|
boxSizing: "border-box",
|
|
1363
1363
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
@@ -1412,13 +1412,13 @@ const Ls = k({
|
|
|
1412
1412
|
transform: "scaleY(-1)"
|
|
1413
1413
|
}
|
|
1414
1414
|
});
|
|
1415
|
-
var
|
|
1415
|
+
var A, Ne, S, Re, Fe, Pe, $e, Ge;
|
|
1416
1416
|
const Ue = class Ue extends HTMLElement {
|
|
1417
1417
|
constructor(t) {
|
|
1418
1418
|
super();
|
|
1419
|
-
o(this,
|
|
1420
|
-
o(this, Ne, new
|
|
1421
|
-
o(this,
|
|
1419
|
+
o(this, A);
|
|
1420
|
+
o(this, Ne, new $(null));
|
|
1421
|
+
o(this, S, new $([]));
|
|
1422
1422
|
o(this, Re);
|
|
1423
1423
|
o(this, Fe, null);
|
|
1424
1424
|
o(this, Pe, null);
|
|
@@ -1427,39 +1427,39 @@ const Ue = class Ue extends HTMLElement {
|
|
|
1427
1427
|
let i = [], n = [];
|
|
1428
1428
|
t.forEach((h) => {
|
|
1429
1429
|
i = [...i, ...h.removedNodes], n = [...n, ...h.addedNodes];
|
|
1430
|
-
}), e(this,
|
|
1430
|
+
}), e(this, S).current = e(this, S).current.filter(
|
|
1431
1431
|
(h) => !i.includes(h)
|
|
1432
|
-
), e(this,
|
|
1432
|
+
), e(this, A) && !e(this, S).current.length && !n.length && this.remove();
|
|
1433
1433
|
});
|
|
1434
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ls), c(this,
|
|
1434
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ls), c(this, A, t.key), c(this, Re, new MutationObserver(e(this, Ge))), p(this, {
|
|
1435
1435
|
children: [
|
|
1436
|
-
|
|
1436
|
+
b({
|
|
1437
1437
|
class: "wrapper",
|
|
1438
1438
|
children: [
|
|
1439
|
-
|
|
1439
|
+
b({
|
|
1440
1440
|
class: "head",
|
|
1441
1441
|
onClick: (n) => {
|
|
1442
|
-
this.classList.toggle("opened"), this.classList.contains("opened") ?
|
|
1442
|
+
this.classList.toggle("opened"), this.classList.contains("opened") ? C.openPanel(e(this, A)) : C.closePanel(e(this, A));
|
|
1443
1443
|
},
|
|
1444
1444
|
children: [
|
|
1445
|
-
e(this,
|
|
1445
|
+
e(this, A) ? b({
|
|
1446
1446
|
class: "name",
|
|
1447
|
-
children: [e(this,
|
|
1447
|
+
children: [e(this, A).split(".").slice(-1).toString()]
|
|
1448
1448
|
}) : null,
|
|
1449
1449
|
e(this, Ne),
|
|
1450
|
-
|
|
1450
|
+
p(Ht, {
|
|
1451
1451
|
class: "arrow"
|
|
1452
1452
|
})
|
|
1453
1453
|
]
|
|
1454
1454
|
}),
|
|
1455
|
-
|
|
1455
|
+
b({
|
|
1456
1456
|
class: "body",
|
|
1457
1457
|
ref: (n) => {
|
|
1458
1458
|
c(this, Fe, n);
|
|
1459
1459
|
},
|
|
1460
|
-
children:
|
|
1460
|
+
children: b({
|
|
1461
1461
|
class: "body-content",
|
|
1462
|
-
children: e(this,
|
|
1462
|
+
children: e(this, S),
|
|
1463
1463
|
ref: (n) => {
|
|
1464
1464
|
c(this, Pe, n), c(this, $e, n.firstElementChild);
|
|
1465
1465
|
}
|
|
@@ -1471,13 +1471,13 @@ const Ue = class Ue extends HTMLElement {
|
|
|
1471
1471
|
}), t != null && t.storeBox && this.handleStore(t.storeBox);
|
|
1472
1472
|
}
|
|
1473
1473
|
get key() {
|
|
1474
|
-
return e(this,
|
|
1474
|
+
return e(this, A);
|
|
1475
1475
|
}
|
|
1476
1476
|
get head() {
|
|
1477
1477
|
return e(this, Ne);
|
|
1478
1478
|
}
|
|
1479
1479
|
get content() {
|
|
1480
|
-
return e(this,
|
|
1480
|
+
return e(this, S);
|
|
1481
1481
|
}
|
|
1482
1482
|
get bodyElement() {
|
|
1483
1483
|
return e(this, Fe);
|
|
@@ -1486,7 +1486,7 @@ const Ue = class Ue extends HTMLElement {
|
|
|
1486
1486
|
return e(this, Pe);
|
|
1487
1487
|
}
|
|
1488
1488
|
connectedCallback() {
|
|
1489
|
-
|
|
1489
|
+
C.isPanelOpened(e(this, A)) && this.classList.add("opened"), setTimeout(() => {
|
|
1490
1490
|
this.classList.add("transition-allowed");
|
|
1491
1491
|
}), e(this, Re).observe(e(this, $e), {
|
|
1492
1492
|
childList: !0
|
|
@@ -1494,12 +1494,12 @@ const Ue = class Ue extends HTMLElement {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
handleStore(t) {
|
|
1496
1496
|
if (t.remainingFolders.length) {
|
|
1497
|
-
const n = t.store.name.split("."), h = n.slice(0, n.length - t.remainingFolders.length).join("."), u = e(this,
|
|
1497
|
+
const n = t.store.name.split("."), h = n.slice(0, n.length - t.remainingFolders.length).join("."), u = e(this, S).current.find((m) => m.key === h);
|
|
1498
1498
|
u instanceof Ue ? u.handleStore({
|
|
1499
1499
|
store: t.store,
|
|
1500
1500
|
remainingFolders: t.remainingFolders.slice(1)
|
|
1501
|
-
}) : e(this,
|
|
1502
|
-
...e(this,
|
|
1501
|
+
}) : e(this, S).current = [
|
|
1502
|
+
...e(this, S).current,
|
|
1503
1503
|
new Ue({
|
|
1504
1504
|
key: h,
|
|
1505
1505
|
storeBox: {
|
|
@@ -1509,11 +1509,11 @@ const Ue = class Ue extends HTMLElement {
|
|
|
1509
1509
|
})
|
|
1510
1510
|
];
|
|
1511
1511
|
} else {
|
|
1512
|
-
const i = e(this,
|
|
1512
|
+
const i = e(this, S).current.find(
|
|
1513
1513
|
(n) => n.key === t.store.name
|
|
1514
1514
|
);
|
|
1515
|
-
i instanceof gt ? i.addStore(t.store) : e(this,
|
|
1516
|
-
...e(this,
|
|
1515
|
+
i instanceof gt ? i.addStore(t.store) : e(this, S).current = [
|
|
1516
|
+
...e(this, S).current,
|
|
1517
1517
|
new gt({
|
|
1518
1518
|
store: t.store
|
|
1519
1519
|
})
|
|
@@ -1521,10 +1521,10 @@ const Ue = class Ue extends HTMLElement {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
};
|
|
1524
|
-
|
|
1524
|
+
A = new WeakMap(), Ne = new WeakMap(), S = new WeakMap(), Re = new WeakMap(), Fe = new WeakMap(), Pe = new WeakMap(), $e = new WeakMap(), Ge = new WeakMap();
|
|
1525
1525
|
let Ze = Ue;
|
|
1526
|
-
customElements.get("e-tweaker-folder")
|
|
1527
|
-
const Ts =
|
|
1526
|
+
g && !customElements.get("e-tweaker-folder") && customElements.define("e-tweaker-folder", Ze);
|
|
1527
|
+
const Ts = E({
|
|
1528
1528
|
":host": {
|
|
1529
1529
|
"--tweaker-width": "550px",
|
|
1530
1530
|
"--tweaker-offset": "20px",
|
|
@@ -1624,7 +1624,7 @@ class qt extends Ze {
|
|
|
1624
1624
|
});
|
|
1625
1625
|
o(this, Ie, !1);
|
|
1626
1626
|
o(this, He, () => {
|
|
1627
|
-
|
|
1627
|
+
C.save();
|
|
1628
1628
|
});
|
|
1629
1629
|
o(this, De, Xt(() => {
|
|
1630
1630
|
j.current.forEach((t) => {
|
|
@@ -1636,13 +1636,13 @@ class qt extends Ze {
|
|
|
1636
1636
|
});
|
|
1637
1637
|
}
|
|
1638
1638
|
}), e(this, Ie) || (c(this, Ie, !0), this.contentElement.scroll({
|
|
1639
|
-
top:
|
|
1639
|
+
top: C.scrollValue
|
|
1640
1640
|
}), this.contentElement.addEventListener("scroll", () => {
|
|
1641
|
-
|
|
1641
|
+
C.scrollValue = this.contentElement.scrollTop;
|
|
1642
1642
|
}));
|
|
1643
1643
|
}, 10));
|
|
1644
|
-
|
|
1645
|
-
|
|
1644
|
+
C.load(), this.shadowRoot.adoptedStyleSheets.push(Ts), this.head.current = [
|
|
1645
|
+
b({
|
|
1646
1646
|
class: "tweaker-buttons",
|
|
1647
1647
|
onClick: (t) => {
|
|
1648
1648
|
t.stopPropagation();
|
|
@@ -1652,7 +1652,7 @@ class qt extends Ze {
|
|
|
1652
1652
|
class: "tweaker-button",
|
|
1653
1653
|
children: $t,
|
|
1654
1654
|
onClick: () => {
|
|
1655
|
-
|
|
1655
|
+
K.resetState();
|
|
1656
1656
|
}
|
|
1657
1657
|
}),
|
|
1658
1658
|
ee({
|
|
@@ -1660,7 +1660,7 @@ class qt extends Ze {
|
|
|
1660
1660
|
children: [It],
|
|
1661
1661
|
onClick: () => {
|
|
1662
1662
|
navigator.clipboard.writeText(
|
|
1663
|
-
JSON.stringify(
|
|
1663
|
+
JSON.stringify(K.getState())
|
|
1664
1664
|
);
|
|
1665
1665
|
}
|
|
1666
1666
|
}),
|
|
@@ -1668,7 +1668,7 @@ class qt extends Ze {
|
|
|
1668
1668
|
class: "tweaker-button",
|
|
1669
1669
|
children: as,
|
|
1670
1670
|
onClick: () => {
|
|
1671
|
-
Ut(
|
|
1671
|
+
Ut(K.name, K.getState());
|
|
1672
1672
|
}
|
|
1673
1673
|
}),
|
|
1674
1674
|
Ft({
|
|
@@ -1686,9 +1686,9 @@ class qt extends Ze {
|
|
|
1686
1686
|
if (n) {
|
|
1687
1687
|
const u = new FileReader();
|
|
1688
1688
|
u.onload = (m) => {
|
|
1689
|
-
var
|
|
1690
|
-
const
|
|
1691
|
-
|
|
1689
|
+
var L, v;
|
|
1690
|
+
const k = (v = (L = m.target) == null ? void 0 : L.result) == null ? void 0 : v.toString();
|
|
1691
|
+
k && K.loadState(k);
|
|
1692
1692
|
}, u.readAsText(n);
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
@@ -1697,9 +1697,9 @@ class qt extends Ze {
|
|
|
1697
1697
|
})
|
|
1698
1698
|
]
|
|
1699
1699
|
})
|
|
1700
|
-
],
|
|
1700
|
+
], p(this.bodyElement, {
|
|
1701
1701
|
children: [
|
|
1702
|
-
|
|
1702
|
+
b({
|
|
1703
1703
|
class: "resize",
|
|
1704
1704
|
onPointerdown: (t) => {
|
|
1705
1705
|
t.preventDefault();
|
|
@@ -1707,7 +1707,7 @@ class qt extends Ze {
|
|
|
1707
1707
|
Et(
|
|
1708
1708
|
(h) => {
|
|
1709
1709
|
const u = t.x - h.x, m = Math.max(400, i.width + u);
|
|
1710
|
-
this.style.width = m + "px",
|
|
1710
|
+
this.style.width = m + "px", C.changeSize("tweaker", m);
|
|
1711
1711
|
},
|
|
1712
1712
|
() => {
|
|
1713
1713
|
setTimeout(() => {
|
|
@@ -1719,19 +1719,19 @@ class qt extends Ze {
|
|
|
1719
1719
|
);
|
|
1720
1720
|
},
|
|
1721
1721
|
onDblclick: () => {
|
|
1722
|
-
this.style.width = "",
|
|
1722
|
+
this.style.width = "", C.changeSize("tweaker", null);
|
|
1723
1723
|
}
|
|
1724
1724
|
})
|
|
1725
1725
|
]
|
|
1726
1726
|
});
|
|
1727
1727
|
}
|
|
1728
1728
|
connectedCallback() {
|
|
1729
|
-
super.connectedCallback(), window.addEventListener("beforeunload", e(this, He)), j.subscribe(e(this, De)),
|
|
1729
|
+
super.connectedCallback(), window.addEventListener("beforeunload", e(this, He)), j.subscribe(e(this, De)), C.changedSizes("tweaker") && (this.style.width = C.changedSizes("tweaker") + "px");
|
|
1730
1730
|
}
|
|
1731
1731
|
disconnectedCallback() {
|
|
1732
|
-
window.removeEventListener("beforeunload", e(this, He)),
|
|
1732
|
+
window.removeEventListener("beforeunload", e(this, He)), C.save(), j.unsubscribe(e(this, De));
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
1735
|
Ie = new WeakMap(), He = new WeakMap(), De = new WeakMap();
|
|
1736
|
-
customElements.get("e-tweaker")
|
|
1737
|
-
|
|
1736
|
+
g && !customElements.get("e-tweaker") && customElements.define("e-tweaker", qt);
|
|
1737
|
+
g && document.body.appendChild(new qt());
|