aptechka 0.14.0 → 0.16.0
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-De9aUv3b.cjs → Animation-DI864E0i.cjs} +1 -1
- package/lib/{Animation-NAGXiFv5.js → Animation-w6BLTCum.js} +1 -1
- package/lib/{Damped-DbJKrUIf.js → Damped-DEHDEq-b.js} +1 -1
- package/lib/{Damped-DYJ6Z0xo.cjs → Damped-ipnDc0iX.cjs} +1 -1
- package/lib/Store-CDb6RMce.cjs +1 -0
- package/lib/Store-OTdcl6SX.js +134 -0
- package/lib/{Tweened-BkkD9s4n.cjs → Tweened-B1TfANfR.cjs} +1 -1
- package/lib/{Tweened-DOSHLCZa.js → Tweened-C52xXDLY.js} +1 -1
- package/lib/{Viewport-Cv4TRGiv.cjs → Viewport-BDPsnAF4.cjs} +1 -1
- package/lib/{Viewport-B55BvLsV.js → Viewport-taEXS8Uv.js} +1 -1
- 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 +1 -1
- package/lib/canvas/index.cjs +1 -7
- package/lib/canvas/index.js +49 -48
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/en3/index.cjs +8 -1
- package/lib/en3/index.js +372 -4
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/jss-CjccJC-K.js +21 -0
- package/lib/jss-GJLvaNfT.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.js +838 -460
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +15 -21
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +576 -608
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +154 -62
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +71 -37
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +59 -56
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +1 -34
- package/lib/Composed-C_4slJQ6.cjs +0 -1
- package/lib/Composed-CfWa-69I.js +0 -31
- package/lib/Derived-BIBU-y7Z.cjs +0 -1
- package/lib/Derived-Vo_RsJfi.js +0 -23
- package/lib/SourceManager-B6wZpXUZ.js +0 -104
- package/lib/SourceManager-CfHcGLUa.cjs +0 -1
- package/lib/Store-C46i0nvr.js +0 -137
- package/lib/Store-npaZHvX4.cjs +0 -1
- package/lib/createStylesheet-C68ja-RS.js +0 -8
- package/lib/createStylesheet-Csfmh-MH.cjs +0 -1
- package/lib/element-constructor/index.cjs +0 -1
- package/lib/element-constructor/index.js +0 -135
- package/lib/en3/helpers/index.cjs +0 -1
- package/lib/en3/helpers/index.js +0 -1870
- package/lib/en3/libs/index.cjs +0 -1
- package/lib/en3/libs/index.js +0 -200
- package/lib/en3/loaders/index.cjs +0 -1
- package/lib/en3/loaders/index.js +0 -1742
- package/lib/en3/misc/index.cjs +0 -10
- package/lib/en3/misc/index.js +0 -110
- package/lib/en3/utils/index.cjs +0 -1
- package/lib/en3/utils/index.js +0 -20
- package/lib/en3-C1fLmsjs.cjs +0 -8
- package/lib/en3-sK9Z-fp2.js +0 -344
- package/lib/tags-6_ETuR75.cjs +0 -1
- package/lib/tags-zft1DGBz.js +0 -833
- package/lib/traverseMaterials-BlZbRhgW.js +0 -29
- package/lib/traverseMaterials-CD_3_56D.cjs +0 -1
|
@@ -1,23 +1,405 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var vt = (r) => {
|
|
2
|
+
throw TypeError(r);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var e = (
|
|
6
|
-
import { i as
|
|
7
|
-
import {
|
|
8
|
-
import { d as
|
|
9
|
-
import { d as
|
|
10
|
-
import { s as
|
|
4
|
+
var Xe = (r, s, t) => s.has(r) || vt("Cannot " + t);
|
|
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 X } from "../browser-0zX67oeU.js";
|
|
7
|
+
import { S as P, s as B, a as j } from "../Store-OTdcl6SX.js";
|
|
8
|
+
import { d as Et, a as Ut, c as Xt } from "../file-BEr-o55N.js";
|
|
9
|
+
import { d as Qt } from "../function-C10DGppn.js";
|
|
10
|
+
import { s as xt } from "../gestures-D2Fdra_G.js";
|
|
11
11
|
import "../ticker/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { c as
|
|
17
|
-
import { n as
|
|
18
|
-
import { elementResizer as
|
|
19
|
-
import { g as
|
|
20
|
-
const
|
|
12
|
+
import { c as Oe, u as jt } from "../string-f0Dnk0L1.js";
|
|
13
|
+
import { i as yt } from "../object-D6MVWB4l.js";
|
|
14
|
+
import { connector as es } from "../connector/index.js";
|
|
15
|
+
import { a as ts } from "../Viewport-taEXS8Uv.js";
|
|
16
|
+
import { c as ss } from "../math-BOBiC4TN.js";
|
|
17
|
+
import { n as St, t as is } from "../polyfills-X6KXuHg-.js";
|
|
18
|
+
import { elementResizer as kt } from "../element-resizer/index.js";
|
|
19
|
+
import { g as ns } from "../style-j2TwriJ_.js";
|
|
20
|
+
const os = /* @__PURE__ */ new Set([
|
|
21
|
+
// 'a', 'style', 'title', 'script',
|
|
22
|
+
"animate",
|
|
23
|
+
"animateMotion",
|
|
24
|
+
"animateTransform",
|
|
25
|
+
"circle",
|
|
26
|
+
"clipPath",
|
|
27
|
+
"defs",
|
|
28
|
+
"desc",
|
|
29
|
+
"ellipse",
|
|
30
|
+
"feBlend",
|
|
31
|
+
"feColorMatrix",
|
|
32
|
+
"feComponentTransfer",
|
|
33
|
+
"feComposite",
|
|
34
|
+
"feConvolveMatrix",
|
|
35
|
+
"feDiffuseLighting",
|
|
36
|
+
"feDisplacementMap",
|
|
37
|
+
"feDistantLight",
|
|
38
|
+
"feDropShadow",
|
|
39
|
+
"feFlood",
|
|
40
|
+
"feFuncA",
|
|
41
|
+
"feFuncB",
|
|
42
|
+
"feFuncG",
|
|
43
|
+
"feFuncR",
|
|
44
|
+
"feGaussianBlur",
|
|
45
|
+
"feImage",
|
|
46
|
+
"feMerge",
|
|
47
|
+
"feMergeNode",
|
|
48
|
+
"feMorphology",
|
|
49
|
+
"feOffset",
|
|
50
|
+
"fePointLight",
|
|
51
|
+
"feSpecularLighting",
|
|
52
|
+
"feSpotLight",
|
|
53
|
+
"feTile",
|
|
54
|
+
"feTurbulence",
|
|
55
|
+
"filter",
|
|
56
|
+
"foreignObject",
|
|
57
|
+
"g",
|
|
58
|
+
"image",
|
|
59
|
+
"line",
|
|
60
|
+
"linearGradient",
|
|
61
|
+
"listener",
|
|
62
|
+
"marker",
|
|
63
|
+
"mask",
|
|
64
|
+
"metadata",
|
|
65
|
+
"mpath",
|
|
66
|
+
"path",
|
|
67
|
+
"pattern",
|
|
68
|
+
"polygon",
|
|
69
|
+
"polyline",
|
|
70
|
+
"radialGradient",
|
|
71
|
+
"rect",
|
|
72
|
+
"set",
|
|
73
|
+
"solidColor",
|
|
74
|
+
"stop",
|
|
75
|
+
"svg",
|
|
76
|
+
"switch",
|
|
77
|
+
"symbol",
|
|
78
|
+
"text",
|
|
79
|
+
"textPath",
|
|
80
|
+
"title",
|
|
81
|
+
"tspan",
|
|
82
|
+
"view",
|
|
83
|
+
"use"
|
|
84
|
+
]);
|
|
85
|
+
var d, $, v, be, I, H, a, Ct, Lt, Tt, Qe, je, zt, Mt, At, Nt, et, tt, Rt, st, it, Ft, nt, Be, ot, rt, at, We, qe;
|
|
86
|
+
const Je = class Je {
|
|
87
|
+
constructor(...s) {
|
|
88
|
+
o(this, a);
|
|
89
|
+
o(this, d, null);
|
|
90
|
+
o(this, $, /* @__PURE__ */ new Set());
|
|
91
|
+
o(this, v, /* @__PURE__ */ new Set());
|
|
92
|
+
o(this, be);
|
|
93
|
+
o(this, I);
|
|
94
|
+
o(this, H);
|
|
95
|
+
o(this, We, (s) => {
|
|
96
|
+
e(this, $).forEach((t) => {
|
|
97
|
+
t(s);
|
|
98
|
+
}), e(this, $).clear();
|
|
99
|
+
});
|
|
100
|
+
o(this, qe, (s, t) => {
|
|
101
|
+
e(this, v).forEach((i) => {
|
|
102
|
+
i(s, t);
|
|
103
|
+
}), e(this, v).clear(), l(this, a, it).call(this);
|
|
104
|
+
});
|
|
105
|
+
if (X) {
|
|
106
|
+
const t = s[0], i = s[1];
|
|
107
|
+
c(this, d, l(this, a, Ct).call(this, t, i == null ? void 0 : i.forceSvg)), l(this, a, Tt).call(this, i);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
get node() {
|
|
111
|
+
return e(this, d);
|
|
112
|
+
}
|
|
113
|
+
set node(s) {
|
|
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, I, [
|
|
116
|
+
...e(this, d).querySelectorAll("store-root")
|
|
117
|
+
]), l(this, a, st).call(this), l(this, a, Qe).call(this);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I = new WeakMap(), H = new WeakMap(), a = new WeakSet(), Ct = function(s, t) {
|
|
121
|
+
let i = null;
|
|
122
|
+
if (s instanceof Node)
|
|
123
|
+
i = s;
|
|
124
|
+
else if (typeof s == "string")
|
|
125
|
+
if (!s.includes("<") && s.includes("-"))
|
|
126
|
+
i = new (customElements.get(s))();
|
|
127
|
+
else if (s.includes("<")) {
|
|
128
|
+
const n = document.createElement("div");
|
|
129
|
+
n.innerHTML = s, i = n.firstElementChild;
|
|
130
|
+
} else os.has(s) || t ? i = document.createElementNS(
|
|
131
|
+
"http://www.w3.org/2000/svg",
|
|
132
|
+
s
|
|
133
|
+
) : i = document.createElement(s);
|
|
134
|
+
else
|
|
135
|
+
i = document.createElement("div");
|
|
136
|
+
return i;
|
|
137
|
+
}, Lt = function(s) {
|
|
138
|
+
return s instanceof HTMLElement || s instanceof SVGElement;
|
|
139
|
+
}, Tt = function(s) {
|
|
140
|
+
if (!s) return;
|
|
141
|
+
const t = l(this, a, Lt).call(this, e(this, d)), i = s.ref;
|
|
142
|
+
delete s.ref, s != null && s.onConnect && (e(this, $).add(s.onConnect), delete s.onConnect), s != null && s.onDisconnect && (e(this, v).add(s.onDisconnect), delete s.onDisconnect);
|
|
143
|
+
let n, h;
|
|
144
|
+
for (const u in s) {
|
|
145
|
+
const m = s[u];
|
|
146
|
+
u === "class" && t ? l(this, a, je).call(this, m) : u === "style" && t ? l(this, a, At).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, $).add(() => {
|
|
147
|
+
requestAnimationFrame(() => {
|
|
148
|
+
e(this, d).classList.add(
|
|
149
|
+
typeof m == "boolean" ? "connected" : m
|
|
150
|
+
);
|
|
151
|
+
});
|
|
152
|
+
}) : u.startsWith("on") ? (h || (h = {}), h[u] = m) : (n || (n = {}), n[u] = m);
|
|
153
|
+
}
|
|
154
|
+
l(this, a, Ft).call(this, n), l(this, a, Rt).call(this, h), i && (typeof i == "function" ? i(e(this, d)) : i.current = e(this, d)), l(this, a, Qe).call(this);
|
|
155
|
+
}, Qe = function() {
|
|
156
|
+
if (X && (e(this, v).size || e(this, $).size)) {
|
|
157
|
+
const s = e(this, d) instanceof DocumentFragment ? e(this, d).firstChild : e(this, d);
|
|
158
|
+
c(this, be, es.subscribe(
|
|
159
|
+
s,
|
|
160
|
+
{
|
|
161
|
+
connectCallback: e(this, We),
|
|
162
|
+
disconnectCallback: e(this, qe),
|
|
163
|
+
unsubscribeAfterDisconnect: !0,
|
|
164
|
+
maxWaitSec: 20
|
|
165
|
+
}
|
|
166
|
+
));
|
|
167
|
+
}
|
|
168
|
+
}, je = function(s) {
|
|
169
|
+
if (s) {
|
|
170
|
+
if (typeof s == "string")
|
|
171
|
+
e(this, d).classList.add(s);
|
|
172
|
+
else if (Array.isArray(s))
|
|
173
|
+
s.forEach((t) => {
|
|
174
|
+
t && l(this, a, je).call(this, t);
|
|
175
|
+
});
|
|
176
|
+
else if (typeof s == "object")
|
|
177
|
+
if (s instanceof P)
|
|
178
|
+
l(this, a, zt).call(this, s);
|
|
179
|
+
else
|
|
180
|
+
for (const t in s) {
|
|
181
|
+
const i = s[t];
|
|
182
|
+
i instanceof P ? l(this, a, Mt).call(this, t, i) : i ? e(this, d).classList.add(t) : e(this, d).classList.remove(t);
|
|
183
|
+
}
|
|
184
|
+
} else return;
|
|
185
|
+
}, zt = function(s) {
|
|
186
|
+
e(this, v).add(
|
|
187
|
+
s.subscribe(({ current: t, previous: i }) => {
|
|
188
|
+
i && [i].flat().forEach((n) => {
|
|
189
|
+
n && e(this, d).classList.remove(n);
|
|
190
|
+
}), t && [t].flat().forEach((n) => {
|
|
191
|
+
n && e(this, d).classList.add(n);
|
|
192
|
+
});
|
|
193
|
+
})
|
|
194
|
+
);
|
|
195
|
+
}, Mt = function(s, t) {
|
|
196
|
+
e(this, v).add(
|
|
197
|
+
t.subscribe(({ current: i }) => {
|
|
198
|
+
i ? e(this, d).classList.add(s) : e(this, d).classList.remove(s);
|
|
199
|
+
})
|
|
200
|
+
);
|
|
201
|
+
}, At = function(s) {
|
|
202
|
+
if (!s)
|
|
203
|
+
return;
|
|
204
|
+
e(this, d).tagName === "style" || e(this, d).tagName === "STYLE" ? l(this, a, et).call(this, s) : l(this, a, Nt).call(this, s);
|
|
205
|
+
}, Nt = function(s) {
|
|
206
|
+
for (const t in s) {
|
|
207
|
+
const i = t, n = s[i];
|
|
208
|
+
n instanceof P ? e(this, v).add(
|
|
209
|
+
n.subscribe(({ current: h }) => {
|
|
210
|
+
l(this, a, tt).call(this, i, h);
|
|
211
|
+
})
|
|
212
|
+
) : l(this, a, tt).call(this, i, n);
|
|
213
|
+
}
|
|
214
|
+
}, et = function(s) {
|
|
215
|
+
for (const t in s) {
|
|
216
|
+
const i = s[t];
|
|
217
|
+
if (typeof i == "object" && !(i instanceof P))
|
|
218
|
+
e(this, d).appendChild(
|
|
219
|
+
document.createTextNode(`${t} {`)
|
|
220
|
+
), l(this, a, et).call(this, i), e(this, d).appendChild(document.createTextNode("}"));
|
|
221
|
+
else if (i instanceof P) {
|
|
222
|
+
const n = document.createTextNode("");
|
|
223
|
+
e(this, v).add(
|
|
224
|
+
i.subscribe((h) => {
|
|
225
|
+
h.current ? n.nodeValue = `${Oe(t)}: ${h.current};` : n.nodeValue = "";
|
|
226
|
+
})
|
|
227
|
+
), e(this, d).appendChild(n);
|
|
228
|
+
} else
|
|
229
|
+
e(this, d).appendChild(
|
|
230
|
+
document.createTextNode(`${Oe(t)}: ${i};`)
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
}, tt = function(s, t) {
|
|
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
|
+
}, Rt = function(s) {
|
|
236
|
+
if (s) {
|
|
237
|
+
e(this, H) || c(this, H, []);
|
|
238
|
+
for (const t in s) {
|
|
239
|
+
const i = t, n = jt(
|
|
240
|
+
i.split("on").slice(1).join("on")
|
|
241
|
+
), h = s[i];
|
|
242
|
+
typeof h == "object" ? e(this, H).push({
|
|
243
|
+
name: n,
|
|
244
|
+
callback: h.callback,
|
|
245
|
+
options: h.options
|
|
246
|
+
}) : typeof h == "function" && e(this, H).push({
|
|
247
|
+
name: n,
|
|
248
|
+
callback: h
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
l(this, a, st).call(this);
|
|
252
|
+
}
|
|
253
|
+
}, st = function() {
|
|
254
|
+
var s;
|
|
255
|
+
(s = e(this, H)) == null || s.forEach((t) => {
|
|
256
|
+
e(this, d).addEventListener(
|
|
257
|
+
t.name,
|
|
258
|
+
t.callback,
|
|
259
|
+
t.options
|
|
260
|
+
);
|
|
261
|
+
});
|
|
262
|
+
}, it = function() {
|
|
263
|
+
var s;
|
|
264
|
+
(s = e(this, H)) == null || s.forEach((t) => {
|
|
265
|
+
e(this, d).removeEventListener(
|
|
266
|
+
t.name,
|
|
267
|
+
t.callback,
|
|
268
|
+
t.options
|
|
269
|
+
);
|
|
270
|
+
});
|
|
271
|
+
}, Ft = function(s) {
|
|
272
|
+
for (const t in s) {
|
|
273
|
+
const i = s[t];
|
|
274
|
+
i instanceof P ? e(this, v).add(
|
|
275
|
+
i.subscribe(({ current: n }) => {
|
|
276
|
+
l(this, a, nt).call(this, t, n);
|
|
277
|
+
})
|
|
278
|
+
) : l(this, a, nt).call(this, t, i);
|
|
279
|
+
}
|
|
280
|
+
}, nt = function(s, t) {
|
|
281
|
+
var n, h;
|
|
282
|
+
const i = e(this, d);
|
|
283
|
+
if (s in i && !((h = (n = i.constructor) == null ? void 0 : n.observedAttributes) != null && h.includes(s)))
|
|
284
|
+
t != null && (i[s] = t.toString());
|
|
285
|
+
else if (t != null) {
|
|
286
|
+
const u = t.toString();
|
|
287
|
+
s.includes("xlink") ? i.setAttributeNS("http://www.w3.org/1999/xlink", s, u) : i.setAttribute(s, u);
|
|
288
|
+
}
|
|
289
|
+
}, Be = function(s, t) {
|
|
290
|
+
t && (t = [t].flat(), t.forEach((i) => {
|
|
291
|
+
if (i instanceof P) {
|
|
292
|
+
const n = document.createElement("div");
|
|
293
|
+
n.style.display = "contents", s.appendChild(n), e(this, I) || c(this, I, []);
|
|
294
|
+
const h = e(this, I).length;
|
|
295
|
+
n.setAttribute("store-root", ""), e(this, I).push(n), e(this, v).add(
|
|
296
|
+
i.subscribe(({ current: u, previous: m }) => {
|
|
297
|
+
const S = e(this, I)[h];
|
|
298
|
+
S.dispatchEvent(
|
|
299
|
+
new CustomEvent("beforeChildrenChange", {
|
|
300
|
+
bubbles: !0,
|
|
301
|
+
composed: !0
|
|
302
|
+
})
|
|
303
|
+
);
|
|
304
|
+
const C = Array.from(S.childNodes), b = Array.isArray(u) ? u : [u], pe = Array.isArray(m) ? m : [m], _e = [], E = [];
|
|
305
|
+
C.length && pe.forEach((N, F) => {
|
|
306
|
+
b.includes(N) ? E.push(N) : _e.push(C[F]);
|
|
307
|
+
}), b.forEach((N, F) => {
|
|
308
|
+
if (E[F] != null) {
|
|
309
|
+
if (N !== E[F]) {
|
|
310
|
+
const _ = l(this, a, rt).call(this, N), W = C[F];
|
|
311
|
+
_ instanceof Node && !W.isEqualNode(_) ? S.replaceChild(_, W) : S.removeChild(W);
|
|
312
|
+
}
|
|
313
|
+
} else {
|
|
314
|
+
const _ = l(this, a, rt).call(this, N);
|
|
315
|
+
_ instanceof Node && n.appendChild(_);
|
|
316
|
+
}
|
|
317
|
+
}), _e.forEach((N) => {
|
|
318
|
+
S.removeChild(N);
|
|
319
|
+
}), S.dispatchEvent(
|
|
320
|
+
new CustomEvent("afterChildrenChange", {
|
|
321
|
+
bubbles: !0,
|
|
322
|
+
composed: !0
|
|
323
|
+
})
|
|
324
|
+
);
|
|
325
|
+
})
|
|
326
|
+
);
|
|
327
|
+
} else if (i instanceof Je)
|
|
328
|
+
l(this, a, ot).call(this, s, i.node);
|
|
329
|
+
else if (i instanceof Function)
|
|
330
|
+
l(this, a, Be).call(this, s, yt(i) ? new i() : i());
|
|
331
|
+
else {
|
|
332
|
+
const n = l(this, a, at).call(this, i);
|
|
333
|
+
n instanceof Node && l(this, a, ot).call(this, s, n);
|
|
334
|
+
}
|
|
335
|
+
}));
|
|
336
|
+
}, ot = function(s, t) {
|
|
337
|
+
!(s instanceof ShadowRoot) && t instanceof HTMLElement && t.tagName === "STYLE" ? (e(this, $).add(() => {
|
|
338
|
+
[...document.head.querySelectorAll("style")].find((n) => n.outerHTML === t.outerHTML) || document.head.appendChild(t);
|
|
339
|
+
}), e(this, v).add(() => {
|
|
340
|
+
t.remove();
|
|
341
|
+
})) : s.appendChild(t);
|
|
342
|
+
}, rt = function(s) {
|
|
343
|
+
return s instanceof Je ? s.node : typeof s == "function" ? yt(s) ? new s() : s() : l(this, a, at).call(this, s);
|
|
344
|
+
}, at = function(s) {
|
|
345
|
+
if (s instanceof Node)
|
|
346
|
+
return s;
|
|
347
|
+
if (s != null) {
|
|
348
|
+
const t = String(s);
|
|
349
|
+
if (t.trim().startsWith("<") && t.trim().endsWith(">")) {
|
|
350
|
+
const i = document.createElement("div");
|
|
351
|
+
return i.innerHTML = t, i.firstElementChild;
|
|
352
|
+
} else
|
|
353
|
+
return document.createTextNode(t);
|
|
354
|
+
} else
|
|
355
|
+
return;
|
|
356
|
+
}, We = new WeakMap(), qe = new WeakMap();
|
|
357
|
+
let A = Je;
|
|
358
|
+
function g(...r) {
|
|
359
|
+
return new A(...r);
|
|
360
|
+
}
|
|
361
|
+
function rs(r) {
|
|
362
|
+
return new A("a", r);
|
|
363
|
+
}
|
|
364
|
+
function ee(r) {
|
|
365
|
+
return new A("button", r);
|
|
366
|
+
}
|
|
367
|
+
function w(r) {
|
|
368
|
+
return new A("div", r);
|
|
369
|
+
}
|
|
370
|
+
function Ve(r) {
|
|
371
|
+
return new A("input", r);
|
|
372
|
+
}
|
|
373
|
+
function Pt(r) {
|
|
374
|
+
return new A("label", r);
|
|
375
|
+
}
|
|
376
|
+
function me(r) {
|
|
377
|
+
return new A("slot", r);
|
|
378
|
+
}
|
|
379
|
+
function lt(r) {
|
|
380
|
+
return new A("span", r);
|
|
381
|
+
}
|
|
382
|
+
function $t(r) {
|
|
383
|
+
return new A("style", {
|
|
384
|
+
style: r
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
function k(r) {
|
|
388
|
+
const s = new CSSStyleSheet();
|
|
389
|
+
return s.replaceSync($t(r).node.innerHTML), s;
|
|
390
|
+
}
|
|
391
|
+
function as(r, s) {
|
|
392
|
+
const t = s == null ? void 0 : s.prefix, i = {
|
|
393
|
+
style: {}
|
|
394
|
+
};
|
|
395
|
+
for (const n in r)
|
|
396
|
+
i[n] = {
|
|
397
|
+
var: `var(--${t}${Oe(n)})`,
|
|
398
|
+
value: r[n]
|
|
399
|
+
}, i.style[`--${t}${Oe(n)}`] = r[n];
|
|
400
|
+
return i;
|
|
401
|
+
}
|
|
402
|
+
const f = as(
|
|
21
403
|
{
|
|
22
404
|
colorMain: "#1c1c1c",
|
|
23
405
|
colorMainAux: "#282828",
|
|
@@ -28,13 +410,13 @@ const l = zt(
|
|
|
28
410
|
},
|
|
29
411
|
{ prefix: "aptechka-" }
|
|
30
412
|
);
|
|
31
|
-
if (
|
|
32
|
-
const
|
|
33
|
-
":root":
|
|
413
|
+
if (X) {
|
|
414
|
+
const r = $t({
|
|
415
|
+
":root": f.style
|
|
34
416
|
}).node;
|
|
35
|
-
|
|
417
|
+
r.setAttribute("data-permanent", ""), document.head.appendChild(r);
|
|
36
418
|
}
|
|
37
|
-
const
|
|
419
|
+
const It = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', Ht = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', ls = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', hs = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>', Dt = `<svg
|
|
38
420
|
xmlns="http://www.w3.org/2000/svg"
|
|
39
421
|
width="32"
|
|
40
422
|
height="32"
|
|
@@ -43,57 +425,57 @@ const st = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
43
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" />
|
|
44
426
|
</svg>
|
|
45
427
|
`;
|
|
46
|
-
var
|
|
47
|
-
class
|
|
428
|
+
var q, L, D;
|
|
429
|
+
class cs {
|
|
48
430
|
constructor() {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
this.scrollValue = 0,
|
|
431
|
+
o(this, q);
|
|
432
|
+
o(this, L);
|
|
433
|
+
o(this, D);
|
|
434
|
+
this.scrollValue = 0, c(this, q, ""), c(this, L, []), c(this, D, {}), c(this, q, B.name + "-tweaker");
|
|
53
435
|
}
|
|
54
|
-
openPanel(
|
|
55
|
-
e(this,
|
|
436
|
+
openPanel(s) {
|
|
437
|
+
e(this, L).includes(s) || e(this, L).push(s);
|
|
56
438
|
}
|
|
57
|
-
closePanel(
|
|
58
|
-
|
|
439
|
+
closePanel(s) {
|
|
440
|
+
c(this, L, e(this, L).filter((t) => t !== s));
|
|
59
441
|
}
|
|
60
|
-
isPanelOpened(
|
|
61
|
-
return e(this,
|
|
442
|
+
isPanelOpened(s) {
|
|
443
|
+
return e(this, L).includes(s);
|
|
62
444
|
}
|
|
63
|
-
changedSizes(
|
|
64
|
-
return e(this,
|
|
445
|
+
changedSizes(s) {
|
|
446
|
+
return e(this, D)[s];
|
|
65
447
|
}
|
|
66
|
-
changeSize(
|
|
67
|
-
t ? e(this,
|
|
448
|
+
changeSize(s, t) {
|
|
449
|
+
t ? e(this, D)[s] = t : delete e(this, D)[s];
|
|
68
450
|
}
|
|
69
451
|
save() {
|
|
70
|
-
const
|
|
71
|
-
openedPanels: e(this,
|
|
72
|
-
changedSizes: e(this,
|
|
452
|
+
const s = {
|
|
453
|
+
openedPanels: e(this, L),
|
|
454
|
+
changedSizes: e(this, D),
|
|
73
455
|
scrollValue: this.scrollValue
|
|
74
456
|
};
|
|
75
|
-
localStorage.setItem(e(this,
|
|
457
|
+
localStorage.setItem(e(this, q), JSON.stringify(s)), B.saveState();
|
|
76
458
|
}
|
|
77
459
|
load() {
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
if (
|
|
460
|
+
B.loadState();
|
|
461
|
+
const s = localStorage.getItem(e(this, q));
|
|
462
|
+
if (s)
|
|
81
463
|
try {
|
|
82
|
-
const t = JSON.parse(
|
|
83
|
-
t.openedPanels &&
|
|
464
|
+
const t = JSON.parse(s);
|
|
465
|
+
t.openedPanels && c(this, L, t.openedPanels), t.changedSizes && c(this, D, t.changedSizes), t.scrollValue && (this.scrollValue = t.scrollValue);
|
|
84
466
|
} catch (t) {
|
|
85
467
|
console.error(t);
|
|
86
468
|
}
|
|
87
469
|
}
|
|
88
470
|
}
|
|
89
|
-
|
|
90
|
-
const
|
|
471
|
+
q = new WeakMap(), L = new WeakMap(), D = new WeakMap();
|
|
472
|
+
const x = new cs(), ds = '<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>', us = k({
|
|
91
473
|
":host": {
|
|
92
474
|
position: "relative",
|
|
93
475
|
display: "inline-block",
|
|
94
476
|
width: "30px",
|
|
95
477
|
height: "30px",
|
|
96
|
-
borderRadius:
|
|
478
|
+
borderRadius: f.borderRadiusSmall.var,
|
|
97
479
|
overflow: "hidden"
|
|
98
480
|
},
|
|
99
481
|
"label, .fake": {
|
|
@@ -116,12 +498,12 @@ const v = new It(), At = '<svg xmlns="http://www.w3.org/2000/svg" width="32" hei
|
|
|
116
498
|
display: "flex",
|
|
117
499
|
alignItems: "center",
|
|
118
500
|
justifyContent: "center",
|
|
119
|
-
backgroundColor:
|
|
501
|
+
backgroundColor: f.colorMainAux.var
|
|
120
502
|
},
|
|
121
503
|
".default svg": {
|
|
122
504
|
width: "60%",
|
|
123
505
|
height: "60%",
|
|
124
|
-
fill:
|
|
506
|
+
fill: f.colorFont.var,
|
|
125
507
|
opacity: 0,
|
|
126
508
|
transition: "var(--duration-short)"
|
|
127
509
|
},
|
|
@@ -129,35 +511,35 @@ const v = new It(), At = '<svg xmlns="http://www.w3.org/2000/svg" width="32" hei
|
|
|
129
511
|
opacity: 1
|
|
130
512
|
}
|
|
131
513
|
});
|
|
132
|
-
var
|
|
133
|
-
const
|
|
514
|
+
var K, te, J, we;
|
|
515
|
+
const pt = class pt extends HTMLElement {
|
|
134
516
|
constructor() {
|
|
135
517
|
super();
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(
|
|
140
|
-
children:
|
|
518
|
+
o(this, J);
|
|
519
|
+
o(this, K, null);
|
|
520
|
+
o(this, te);
|
|
521
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(us), c(this, te, this.attachInternals()), g(this, {
|
|
522
|
+
children: Pt({
|
|
141
523
|
children: [
|
|
142
|
-
|
|
524
|
+
lt({
|
|
143
525
|
class: "fake",
|
|
144
|
-
children:
|
|
526
|
+
children: me({
|
|
145
527
|
children: [
|
|
146
|
-
|
|
528
|
+
lt({
|
|
147
529
|
class: "default",
|
|
148
|
-
children: [
|
|
530
|
+
children: [ds]
|
|
149
531
|
})
|
|
150
532
|
]
|
|
151
533
|
})
|
|
152
534
|
}),
|
|
153
|
-
|
|
154
|
-
ref: (
|
|
155
|
-
|
|
535
|
+
Ve({
|
|
536
|
+
ref: (i) => {
|
|
537
|
+
c(this, K, i), i.required = this.hasAttribute("required"), i.value = this.getAttribute("value") || "", i.checked = this.hasAttribute("checked"), i.name = this.getAttribute("name") || "", l(this, J, we).call(this);
|
|
156
538
|
},
|
|
157
539
|
class: "real",
|
|
158
540
|
type: "checkbox",
|
|
159
541
|
onChange: () => {
|
|
160
|
-
|
|
542
|
+
l(this, J, we).call(this), this.dispatchEvent(
|
|
161
543
|
new Event("change", {
|
|
162
544
|
composed: !0
|
|
163
545
|
})
|
|
@@ -169,47 +551,47 @@ const We = class We extends HTMLElement {
|
|
|
169
551
|
});
|
|
170
552
|
}
|
|
171
553
|
get checked() {
|
|
172
|
-
return e(this,
|
|
554
|
+
return e(this, K).checked;
|
|
173
555
|
}
|
|
174
556
|
set checked(t) {
|
|
175
|
-
e(this,
|
|
557
|
+
e(this, K).checked = t, l(this, J, we).call(this);
|
|
176
558
|
}
|
|
177
559
|
get value() {
|
|
178
|
-
return e(this,
|
|
560
|
+
return e(this, K).value;
|
|
179
561
|
}
|
|
180
562
|
set value(t) {
|
|
181
|
-
e(this,
|
|
563
|
+
e(this, K).value = t, l(this, J, we).call(this);
|
|
182
564
|
}
|
|
183
565
|
};
|
|
184
|
-
|
|
185
|
-
this.checked ? e(this,
|
|
186
|
-
},
|
|
187
|
-
let
|
|
188
|
-
customElements.get("e-checkbox") || customElements.define("e-checkbox",
|
|
189
|
-
var
|
|
190
|
-
class
|
|
566
|
+
K = new WeakMap(), te = new WeakMap(), J = new WeakSet(), we = function() {
|
|
567
|
+
this.checked ? e(this, te).setFormValue(this.value) : e(this, te).setFormValue(null), this.classList.toggle("checked", this.checked);
|
|
568
|
+
}, pt.formAssociated = !0;
|
|
569
|
+
let ht = pt;
|
|
570
|
+
customElements.get("e-checkbox") || customElements.define("e-checkbox", ht);
|
|
571
|
+
var O;
|
|
572
|
+
class ge extends HTMLElement {
|
|
191
573
|
constructor(...t) {
|
|
192
574
|
super();
|
|
193
|
-
|
|
194
|
-
|
|
575
|
+
o(this, O);
|
|
576
|
+
c(this, O, t);
|
|
195
577
|
}
|
|
196
578
|
addStore(t) {
|
|
197
|
-
e(this,
|
|
579
|
+
e(this, O).push(t);
|
|
198
580
|
}
|
|
199
581
|
get firstStore() {
|
|
200
|
-
return e(this,
|
|
582
|
+
return e(this, O)[0];
|
|
201
583
|
}
|
|
202
584
|
get stores() {
|
|
203
|
-
return e(this,
|
|
585
|
+
return e(this, O);
|
|
204
586
|
}
|
|
205
587
|
updateStores(t) {
|
|
206
|
-
e(this,
|
|
207
|
-
|
|
588
|
+
e(this, O).forEach((i) => {
|
|
589
|
+
i.current = t;
|
|
208
590
|
});
|
|
209
591
|
}
|
|
210
592
|
}
|
|
211
|
-
|
|
212
|
-
const
|
|
593
|
+
O = new WeakMap();
|
|
594
|
+
const fs = k({
|
|
213
595
|
":host": {
|
|
214
596
|
width: "100%",
|
|
215
597
|
display: "inline-flex",
|
|
@@ -219,20 +601,20 @@ const $t = w({
|
|
|
219
601
|
"--size": "calc(var(--height-input) * 0.8)",
|
|
220
602
|
width: "var(--size)",
|
|
221
603
|
height: "var(--size)",
|
|
222
|
-
borderRadius:
|
|
604
|
+
borderRadius: f.borderRadiusSmall.var
|
|
223
605
|
}
|
|
224
606
|
});
|
|
225
|
-
class
|
|
226
|
-
constructor(...
|
|
227
|
-
super(...
|
|
607
|
+
class Vt extends ge {
|
|
608
|
+
constructor(...s) {
|
|
609
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(fs), g(this, {
|
|
228
610
|
children: [
|
|
229
|
-
|
|
230
|
-
onChange: (
|
|
231
|
-
this.updateStores(
|
|
611
|
+
g("e-checkbox", {
|
|
612
|
+
onChange: (i) => {
|
|
613
|
+
this.updateStores(i.currentTarget.checked);
|
|
232
614
|
},
|
|
233
|
-
ref: (
|
|
615
|
+
ref: (i) => {
|
|
234
616
|
this.firstStore.subscribe((n) => {
|
|
235
|
-
|
|
617
|
+
i.checked = n.current;
|
|
236
618
|
});
|
|
237
619
|
}
|
|
238
620
|
})
|
|
@@ -242,9 +624,9 @@ class rt extends se {
|
|
|
242
624
|
}
|
|
243
625
|
customElements.get("e-tweaker-boolean-manager") || customElements.define(
|
|
244
626
|
"e-tweaker-boolean-manager",
|
|
245
|
-
|
|
627
|
+
Vt
|
|
246
628
|
);
|
|
247
|
-
const
|
|
629
|
+
const ms = k({
|
|
248
630
|
":host": {
|
|
249
631
|
width: "100%",
|
|
250
632
|
display: "inline-flex",
|
|
@@ -255,7 +637,7 @@ const Vt = w({
|
|
|
255
637
|
height: "var(--height-input)",
|
|
256
638
|
padding: "0",
|
|
257
639
|
background: "none",
|
|
258
|
-
borderRadius:
|
|
640
|
+
borderRadius: f.borderRadius.var,
|
|
259
641
|
border: "none",
|
|
260
642
|
blockSize: "unset"
|
|
261
643
|
},
|
|
@@ -263,48 +645,48 @@ const Vt = w({
|
|
|
263
645
|
boxSizing: "border-box",
|
|
264
646
|
padding: "0px",
|
|
265
647
|
border: "none",
|
|
266
|
-
borderRadius:
|
|
648
|
+
borderRadius: f.borderRadius.var,
|
|
267
649
|
height: "calc(var(--height-input) * 0.93)"
|
|
268
650
|
}
|
|
269
651
|
});
|
|
270
|
-
class
|
|
271
|
-
constructor(...
|
|
272
|
-
super(...
|
|
652
|
+
class _t extends ge {
|
|
653
|
+
constructor(...s) {
|
|
654
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ms), g(this, {
|
|
273
655
|
children: [
|
|
274
|
-
|
|
656
|
+
Ve({
|
|
275
657
|
type: "color",
|
|
276
658
|
value: this.firstStore,
|
|
277
|
-
onInput: (
|
|
278
|
-
this.updateStores(
|
|
659
|
+
onInput: (i) => {
|
|
660
|
+
this.updateStores(i.currentTarget.value);
|
|
279
661
|
}
|
|
280
662
|
})
|
|
281
663
|
]
|
|
282
664
|
});
|
|
283
665
|
}
|
|
284
666
|
}
|
|
285
|
-
customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager",
|
|
286
|
-
const
|
|
667
|
+
customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", _t);
|
|
668
|
+
const gs = k({
|
|
287
669
|
a: {
|
|
288
670
|
color: "inherit",
|
|
289
671
|
fontSize: "var(--font-size-small)"
|
|
290
672
|
}
|
|
291
673
|
});
|
|
292
|
-
class
|
|
293
|
-
constructor(...
|
|
294
|
-
var
|
|
295
|
-
super(...
|
|
674
|
+
class Bt extends ge {
|
|
675
|
+
constructor(...s) {
|
|
676
|
+
var i;
|
|
677
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(gs), g(this, {
|
|
296
678
|
children: [
|
|
297
|
-
|
|
679
|
+
rs({
|
|
298
680
|
href: this.firstStore,
|
|
299
|
-
target: (
|
|
681
|
+
target: (i = this.firstStore.__manager) != null && i.sameWindow ? "_self" : "_blank",
|
|
300
682
|
children: this.firstStore
|
|
301
683
|
})
|
|
302
684
|
]
|
|
303
685
|
});
|
|
304
686
|
}
|
|
305
687
|
}
|
|
306
|
-
customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager",
|
|
307
|
-
const
|
|
688
|
+
customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", Bt);
|
|
689
|
+
const ps = k({
|
|
308
690
|
":host": {
|
|
309
691
|
width: "100%",
|
|
310
692
|
display: "flex",
|
|
@@ -329,7 +711,7 @@ const Nt = w({
|
|
|
329
711
|
margin: "0",
|
|
330
712
|
padding: "0 var(--gap-small)",
|
|
331
713
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
332
|
-
borderRadius:
|
|
714
|
+
borderRadius: f.borderRadius.var
|
|
333
715
|
},
|
|
334
716
|
".drag": {
|
|
335
717
|
position: "relative",
|
|
@@ -345,12 +727,12 @@ const Nt = w({
|
|
|
345
727
|
width: "100%",
|
|
346
728
|
zIndex: "-1",
|
|
347
729
|
height: "1px",
|
|
348
|
-
borderBottom: `1px solid ${
|
|
730
|
+
borderBottom: `1px solid ${f.colorFont.var}`,
|
|
349
731
|
transform: "translateY(-50%)",
|
|
350
732
|
opacity: "0.3"
|
|
351
733
|
},
|
|
352
734
|
":host(.infinite) .drag::before": {
|
|
353
|
-
borderBottom: `1px dashed ${
|
|
735
|
+
borderBottom: `1px dashed ${f.colorFont.var}`
|
|
354
736
|
},
|
|
355
737
|
".drag-knob": {
|
|
356
738
|
"--size": "calc(var(--height-input) * 0.4)",
|
|
@@ -360,101 +742,95 @@ const Nt = w({
|
|
|
360
742
|
".drag-knob-inner": {
|
|
361
743
|
width: "100%",
|
|
362
744
|
height: "100%",
|
|
363
|
-
backgroundColor:
|
|
364
|
-
borderRadius:
|
|
745
|
+
backgroundColor: f.colorFont.var,
|
|
746
|
+
borderRadius: f.borderRadiusSmall.var,
|
|
365
747
|
transition: "opacity var(--duration-short)"
|
|
366
748
|
},
|
|
367
749
|
":host(.infinite) .grabbing .drag-knob-inner": {
|
|
368
750
|
opacity: 0.3
|
|
369
751
|
}
|
|
370
752
|
});
|
|
371
|
-
var
|
|
372
|
-
class
|
|
753
|
+
var Y, se, ie, V, Z, ve, ye, R, G, Se, ke, p, Q, ct, dt, Ke, Ee;
|
|
754
|
+
class Kt extends ge {
|
|
373
755
|
constructor(...t) {
|
|
374
|
-
var n, h,
|
|
756
|
+
var n, h, u, m;
|
|
375
757
|
super(...t);
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
const
|
|
388
|
-
return
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
}), e(this,
|
|
758
|
+
o(this, p);
|
|
759
|
+
o(this, Y, []);
|
|
760
|
+
o(this, se, []);
|
|
761
|
+
o(this, ie);
|
|
762
|
+
o(this, V);
|
|
763
|
+
o(this, Z);
|
|
764
|
+
o(this, ve);
|
|
765
|
+
o(this, ye);
|
|
766
|
+
o(this, R);
|
|
767
|
+
o(this, G, !1);
|
|
768
|
+
o(this, Se, (t) => {
|
|
769
|
+
const i = l(this, p, Q).call(this, t);
|
|
770
|
+
return i.map((n, h) => {
|
|
771
|
+
const u = typeof n == "string" ? parseFloat(n) || e(this, V) : n, m = ss(u, e(this, V), e(this, Z)), S = is(m, e(this, ie));
|
|
772
|
+
i[h] = S;
|
|
773
|
+
}), e(this, ye) === "number" ? i[0] : i;
|
|
392
774
|
});
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
const n = e(this,
|
|
775
|
+
o(this, ke, () => {
|
|
776
|
+
l(this, p, Q).call(this).map((t, i) => {
|
|
777
|
+
const n = e(this, Y)[i];
|
|
396
778
|
n && (n.value = (t || 0).toString());
|
|
397
|
-
}),
|
|
779
|
+
}), l(this, p, ct).call(this);
|
|
398
780
|
});
|
|
399
|
-
|
|
400
|
-
|
|
781
|
+
o(this, Ee, () => {
|
|
782
|
+
l(this, p, ct).call(this);
|
|
401
783
|
});
|
|
402
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
)), o(this, I, Ge(
|
|
406
|
-
(g = (c = this.firstStore.passport) == null ? void 0 : c.manager) == null ? void 0 : g.max,
|
|
407
|
-
1 / 0
|
|
408
|
-
)), o(this, j, ((A = (x = this.firstStore.passport) == null ? void 0 : x.manager) == null ? void 0 : A.step) || 0.01), o(this, re, ((Je = (ie = this.firstStore.passport) == null ? void 0 : ie.manager) == null ? void 0 : Je.ease) || 1), o(this, oe, Array.isArray(this.firstStore.current) ? "array" : "number"), o(this, E, isFinite(e(this, I)) && isFinite(e(this, z))), u(this, {
|
|
409
|
-
class: e(this, E) ? "" : "infinite",
|
|
410
|
-
children: d(this, p, D).call(this).map((pt, Te) => m({
|
|
784
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ps), c(this, V, St((n = this.firstStore.__manager) == null ? void 0 : n.min, -1 / 0)), c(this, Z, 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, R, isFinite(e(this, Z)) && isFinite(e(this, V))), g(this, {
|
|
785
|
+
class: e(this, R) ? "" : "infinite",
|
|
786
|
+
children: l(this, p, Q).call(this).map((S, C) => w({
|
|
411
787
|
class: "inputs-wrapper",
|
|
412
788
|
children: [
|
|
413
|
-
|
|
789
|
+
Ve({
|
|
414
790
|
type: "number",
|
|
415
|
-
step: e(this,
|
|
416
|
-
min: e(this,
|
|
417
|
-
max: e(this,
|
|
418
|
-
ref: (
|
|
419
|
-
value:
|
|
791
|
+
step: e(this, ie),
|
|
792
|
+
min: e(this, V),
|
|
793
|
+
max: e(this, Z),
|
|
794
|
+
ref: (b) => e(this, Y).push(b),
|
|
795
|
+
value: S,
|
|
420
796
|
onChange: () => {
|
|
421
797
|
this.updateStores(
|
|
422
|
-
e(this,
|
|
798
|
+
e(this, Y).map((b) => parseFloat(b.value))
|
|
423
799
|
);
|
|
424
800
|
}
|
|
425
801
|
}),
|
|
426
|
-
|
|
802
|
+
w({
|
|
427
803
|
class: "drag",
|
|
428
804
|
children: [
|
|
429
|
-
|
|
805
|
+
w({
|
|
430
806
|
class: "drag-knob",
|
|
431
|
-
ref: (
|
|
432
|
-
onPointerdown: (
|
|
433
|
-
|
|
434
|
-
const
|
|
435
|
-
if (
|
|
436
|
-
const
|
|
437
|
-
|
|
438
|
-
(
|
|
439
|
-
const
|
|
440
|
-
if (
|
|
441
|
-
const
|
|
442
|
-
|
|
807
|
+
ref: (b) => e(this, se).push(b),
|
|
808
|
+
onPointerdown: (b) => {
|
|
809
|
+
b.preventDefault(), c(this, G, !0);
|
|
810
|
+
const pe = l(this, p, Q).call(this), _e = pe[C], E = e(this, se)[C], N = e(this, Y)[C];
|
|
811
|
+
if (E && N) {
|
|
812
|
+
const F = E.parentElement, _ = l(this, p, dt).call(this);
|
|
813
|
+
F.classList.add("grabbing"), xt(
|
|
814
|
+
(W) => {
|
|
815
|
+
const bt = W.x - b.x, Jt = e(this, R) ? F.offsetWidth / (_ || 1) : 1, Yt = _e + bt / Jt * e(this, ve);
|
|
816
|
+
if (pe[C] = Yt, !e(this, R)) {
|
|
817
|
+
const Gt = l(this, p, Ke).call(this, E, 0);
|
|
818
|
+
E.style.transform = `translateX(${Gt + bt}px)`;
|
|
443
819
|
}
|
|
444
|
-
this.updateStores([...
|
|
820
|
+
this.updateStores([...pe]);
|
|
445
821
|
},
|
|
446
822
|
() => {
|
|
447
|
-
if (
|
|
448
|
-
const
|
|
449
|
-
|
|
450
|
-
|
|
823
|
+
if (c(this, G, !1), !e(this, R)) {
|
|
824
|
+
const W = l(this, p, Ke).call(this, E, 0);
|
|
825
|
+
E.style.transition = "transform 0.1s", E.style.transform = `translateX(${W}px)`, F.classList.remove("grabbing"), setTimeout(() => {
|
|
826
|
+
E.style.transition = "";
|
|
451
827
|
}, 100);
|
|
452
828
|
}
|
|
453
829
|
}
|
|
454
830
|
);
|
|
455
831
|
}
|
|
456
832
|
},
|
|
457
|
-
children:
|
|
833
|
+
children: w({
|
|
458
834
|
class: "drag-knob-inner"
|
|
459
835
|
})
|
|
460
836
|
})
|
|
@@ -465,30 +841,30 @@ class lt extends se {
|
|
|
465
841
|
});
|
|
466
842
|
}
|
|
467
843
|
connectedCallback() {
|
|
468
|
-
this.firstStore.addMiddleware(e(this,
|
|
844
|
+
this.firstStore.addMiddleware(e(this, Se)), this.firstStore.subscribe(e(this, ke)), kt.subscribe(this, e(this, Ee));
|
|
469
845
|
}
|
|
470
846
|
disconnectedCallback() {
|
|
471
|
-
this.firstStore.removeMiddleware(e(this,
|
|
847
|
+
this.firstStore.removeMiddleware(e(this, Se)), this.firstStore.unsubscribe(e(this, ke)), kt.unsubscribe(e(this, Ee));
|
|
472
848
|
}
|
|
473
849
|
}
|
|
474
|
-
|
|
850
|
+
Y = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), V = new WeakMap(), Z = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), R = new WeakMap(), G = new WeakMap(), Se = new WeakMap(), ke = new WeakMap(), p = new WeakSet(), Q = function(t = this.firstStore.current) {
|
|
475
851
|
return Array.isArray(t) ? t : [t];
|
|
476
|
-
},
|
|
477
|
-
|
|
478
|
-
const n = e(this,
|
|
479
|
-
if (n && (!e(this,
|
|
480
|
-
const h =
|
|
852
|
+
}, ct = function() {
|
|
853
|
+
l(this, p, Q).call(this).map((t, i) => {
|
|
854
|
+
const n = e(this, se)[i];
|
|
855
|
+
if (n && (!e(this, G) || e(this, G) && e(this, R))) {
|
|
856
|
+
const h = l(this, p, Ke).call(this, n, t);
|
|
481
857
|
n.style.transform = `translateX(${h}px)`;
|
|
482
858
|
}
|
|
483
859
|
});
|
|
484
|
-
},
|
|
485
|
-
return e(this,
|
|
486
|
-
},
|
|
487
|
-
const n = t.parentElement, h =
|
|
488
|
-
return (n.offsetWidth - t.offsetWidth) *
|
|
489
|
-
},
|
|
490
|
-
customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager",
|
|
491
|
-
const
|
|
860
|
+
}, dt = function() {
|
|
861
|
+
return e(this, R) ? e(this, Z) - e(this, V) : 0;
|
|
862
|
+
}, Ke = function(t, i) {
|
|
863
|
+
const n = t.parentElement, h = l(this, p, dt).call(this), u = h ? i / h : 0.5;
|
|
864
|
+
return (n.offsetWidth - t.offsetWidth) * u;
|
|
865
|
+
}, Ee = new WeakMap();
|
|
866
|
+
customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", Kt);
|
|
867
|
+
const ws = k({
|
|
492
868
|
":host": {
|
|
493
869
|
position: "relative"
|
|
494
870
|
},
|
|
@@ -523,109 +899,109 @@ const Dt = w({
|
|
|
523
899
|
paddingTop: "var(--gap, 0px)"
|
|
524
900
|
}
|
|
525
901
|
});
|
|
526
|
-
var
|
|
527
|
-
const
|
|
902
|
+
var ne, oe, T, U, re, ae, Ye, xe, ft;
|
|
903
|
+
const wt = class wt extends HTMLElement {
|
|
528
904
|
constructor() {
|
|
529
905
|
super();
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
906
|
+
o(this, xe);
|
|
907
|
+
o(this, ne, null);
|
|
908
|
+
o(this, oe, "");
|
|
909
|
+
o(this, T, null);
|
|
910
|
+
o(this, U, !1);
|
|
911
|
+
o(this, re);
|
|
912
|
+
o(this, ae, null);
|
|
913
|
+
o(this, Ye, () => {
|
|
914
|
+
Et(this);
|
|
539
915
|
});
|
|
540
|
-
|
|
916
|
+
X && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ws), c(this, ne, this.attachInternals()), c(this, ae, new ResizeObserver(e(this, Ye))), g(this, {
|
|
541
917
|
children: [
|
|
542
|
-
|
|
918
|
+
ee({
|
|
543
919
|
class: "head",
|
|
544
|
-
children:
|
|
920
|
+
children: me({ name: "head" }),
|
|
545
921
|
onClick: () => {
|
|
546
922
|
this.opened ? this.close() : this.open();
|
|
547
923
|
}
|
|
548
924
|
}),
|
|
549
|
-
|
|
925
|
+
w({
|
|
550
926
|
class: "body",
|
|
551
927
|
style: {
|
|
552
928
|
height: "0px"
|
|
553
929
|
},
|
|
554
|
-
children:
|
|
930
|
+
children: w({
|
|
555
931
|
class: "body-inner",
|
|
556
|
-
children:
|
|
932
|
+
children: me()
|
|
557
933
|
}),
|
|
558
|
-
ref: (
|
|
559
|
-
|
|
934
|
+
ref: (i) => {
|
|
935
|
+
c(this, T, i);
|
|
560
936
|
}
|
|
561
937
|
})
|
|
562
938
|
]
|
|
563
939
|
}));
|
|
564
940
|
}
|
|
565
941
|
get value() {
|
|
566
|
-
return e(this,
|
|
942
|
+
return e(this, oe);
|
|
567
943
|
}
|
|
568
944
|
set value(t) {
|
|
569
|
-
|
|
945
|
+
c(this, oe, t), this.dispatchEvent(
|
|
570
946
|
new Event("change", {
|
|
571
947
|
bubbles: !0,
|
|
572
948
|
composed: !0
|
|
573
949
|
})
|
|
574
|
-
), e(this,
|
|
950
|
+
), e(this, ne).setFormValue(e(this, oe));
|
|
575
951
|
}
|
|
576
952
|
get internals() {
|
|
577
|
-
return e(this,
|
|
953
|
+
return e(this, ne);
|
|
578
954
|
}
|
|
579
955
|
get opened() {
|
|
580
|
-
return e(this,
|
|
956
|
+
return e(this, U);
|
|
581
957
|
}
|
|
582
958
|
open() {
|
|
583
|
-
clearTimeout(e(this,
|
|
584
|
-
this.classList.add("opened"), e(this,
|
|
959
|
+
clearTimeout(e(this, re)), c(this, U, !0), e(this, T).style.display = "grid", this.classList.add("triggered"), setTimeout(() => {
|
|
960
|
+
this.classList.add("opened"), e(this, T).style.height = e(this, T).scrollHeight + "px", l(this, xe, ft).call(this);
|
|
585
961
|
}, 0);
|
|
586
962
|
}
|
|
587
963
|
close() {
|
|
588
|
-
|
|
589
|
-
this.classList.remove("triggered"), e(this,
|
|
590
|
-
},
|
|
964
|
+
c(this, U, !1), e(this, T).style.height = "0px", this.classList.remove("opened"), l(this, xe, ft).call(this), c(this, re, setTimeout(() => {
|
|
965
|
+
this.classList.remove("triggered"), e(this, T).style.display = "none";
|
|
966
|
+
}, ns(e(this, T))));
|
|
591
967
|
}
|
|
592
968
|
connectedCallback() {
|
|
593
|
-
e(this,
|
|
969
|
+
e(this, ae).observe(e(this, T));
|
|
594
970
|
}
|
|
595
971
|
disconnectedCallback() {
|
|
596
|
-
clearTimeout(e(this,
|
|
972
|
+
clearTimeout(e(this, re)), e(this, ae).disconnect();
|
|
597
973
|
}
|
|
598
974
|
};
|
|
599
|
-
|
|
600
|
-
|
|
975
|
+
ne = new WeakMap(), oe = new WeakMap(), T = new WeakMap(), U = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), Ye = new WeakMap(), xe = new WeakSet(), ft = function() {
|
|
976
|
+
Ut(this), this.dispatchEvent(
|
|
601
977
|
new CustomEvent("selectToggle", {
|
|
602
978
|
bubbles: !0,
|
|
603
979
|
composed: !0,
|
|
604
980
|
detail: {
|
|
605
|
-
opened: e(this,
|
|
981
|
+
opened: e(this, U)
|
|
606
982
|
}
|
|
607
983
|
})
|
|
608
984
|
);
|
|
609
|
-
},
|
|
610
|
-
let
|
|
611
|
-
customElements.get("e-select") || customElements.define("e-select",
|
|
612
|
-
var
|
|
613
|
-
class
|
|
985
|
+
}, wt.formAssociated = !0;
|
|
986
|
+
let ut = wt;
|
|
987
|
+
customElements.get("e-select") || customElements.define("e-select", ut);
|
|
988
|
+
var Ce;
|
|
989
|
+
class Ot extends HTMLElement {
|
|
614
990
|
constructor() {
|
|
615
991
|
super(...arguments);
|
|
616
|
-
|
|
992
|
+
o(this, Ce, null);
|
|
617
993
|
}
|
|
618
994
|
get selectElement() {
|
|
619
|
-
return e(this,
|
|
995
|
+
return e(this, Ce);
|
|
620
996
|
}
|
|
621
997
|
connectedCallback() {
|
|
622
|
-
var
|
|
623
|
-
const t = (n = (
|
|
624
|
-
t ?
|
|
998
|
+
var i, n;
|
|
999
|
+
const t = (n = (i = this.assignedSlot) == null ? void 0 : i.getRootNode()) == null ? void 0 : n.host;
|
|
1000
|
+
t ? c(this, Ce, t) : console.log(this, "e-select not found");
|
|
625
1001
|
}
|
|
626
1002
|
}
|
|
627
|
-
|
|
628
|
-
const
|
|
1003
|
+
Ce = new WeakMap();
|
|
1004
|
+
const bs = k({
|
|
629
1005
|
":host": {
|
|
630
1006
|
width: "100%",
|
|
631
1007
|
height: "40px",
|
|
@@ -633,42 +1009,42 @@ const Ot = w({
|
|
|
633
1009
|
alignItems: "center"
|
|
634
1010
|
}
|
|
635
1011
|
});
|
|
636
|
-
var
|
|
637
|
-
class
|
|
1012
|
+
var le, Le, mt;
|
|
1013
|
+
class vs extends Ot {
|
|
638
1014
|
constructor() {
|
|
639
1015
|
super();
|
|
640
|
-
|
|
641
|
-
|
|
1016
|
+
o(this, Le);
|
|
1017
|
+
o(this, le, () => {
|
|
642
1018
|
this.selectElement.value === this.value ? this.style.display = "none" : this.style.display = "";
|
|
643
1019
|
});
|
|
644
|
-
|
|
1020
|
+
X && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(bs), g(this, {
|
|
645
1021
|
tabindex: 0,
|
|
646
1022
|
onClick: () => {
|
|
647
|
-
|
|
1023
|
+
l(this, Le, mt).call(this);
|
|
648
1024
|
},
|
|
649
|
-
onKeydown: (
|
|
650
|
-
|
|
1025
|
+
onKeydown: (i) => {
|
|
1026
|
+
i.code === "Space" && l(this, Le, mt).call(this);
|
|
651
1027
|
},
|
|
652
|
-
children:
|
|
1028
|
+
children: me()
|
|
653
1029
|
}));
|
|
654
1030
|
}
|
|
655
1031
|
get value() {
|
|
656
1032
|
return (this.hasAttribute("value") ? this.getAttribute("value") : this.innerText) || "";
|
|
657
1033
|
}
|
|
658
1034
|
connectedCallback() {
|
|
659
|
-
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", e(this,
|
|
660
|
-
e(this,
|
|
1035
|
+
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", e(this, le)), setTimeout(() => {
|
|
1036
|
+
e(this, le).call(this);
|
|
661
1037
|
});
|
|
662
1038
|
}
|
|
663
1039
|
disconnectedCallback() {
|
|
664
|
-
this.selectElement.removeEventListener("change", e(this,
|
|
1040
|
+
this.selectElement.removeEventListener("change", e(this, le));
|
|
665
1041
|
}
|
|
666
1042
|
}
|
|
667
|
-
|
|
1043
|
+
le = new WeakMap(), Le = new WeakSet(), mt = function() {
|
|
668
1044
|
this.selectElement.value = this.value, this.selectElement.close();
|
|
669
1045
|
};
|
|
670
|
-
customElements.get("e-select-option") || customElements.define("e-select-option",
|
|
671
|
-
const
|
|
1046
|
+
customElements.get("e-select-option") || customElements.define("e-select-option", vs);
|
|
1047
|
+
const ys = k({
|
|
672
1048
|
":host": {
|
|
673
1049
|
width: "100%",
|
|
674
1050
|
height: "40px",
|
|
@@ -680,7 +1056,7 @@ const Kt = w({
|
|
|
680
1056
|
flexShrink: "0",
|
|
681
1057
|
width: "var(--arrow-size, 1em)",
|
|
682
1058
|
height: "var(--arrow-size, 1em)",
|
|
683
|
-
fill: `var(--arrow-color, ${
|
|
1059
|
+
fill: `var(--arrow-color, ${f.colorMain.var})`,
|
|
684
1060
|
transitionProperty: "transform",
|
|
685
1061
|
transitionDuration: "var(--duration, var(--duration-short))"
|
|
686
1062
|
},
|
|
@@ -688,44 +1064,44 @@ const Kt = w({
|
|
|
688
1064
|
transform: "scaleY(-1)"
|
|
689
1065
|
}
|
|
690
1066
|
});
|
|
691
|
-
var
|
|
692
|
-
class
|
|
1067
|
+
var Te, he, ze;
|
|
1068
|
+
class Ss extends Ot {
|
|
693
1069
|
constructor() {
|
|
694
1070
|
super();
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
const
|
|
1071
|
+
o(this, Te, null);
|
|
1072
|
+
o(this, he, () => {
|
|
1073
|
+
const i = this.selectElement.shadowRoot.querySelector(
|
|
698
1074
|
".body slot"
|
|
699
1075
|
).assignedElements().find((n) => n.value === this.selectElement.value);
|
|
700
|
-
|
|
1076
|
+
i && (e(this, Te).innerHTML = i.innerHTML);
|
|
701
1077
|
});
|
|
702
|
-
|
|
1078
|
+
o(this, ze, () => {
|
|
703
1079
|
this.classList.toggle("opened", this.selectElement.opened);
|
|
704
1080
|
});
|
|
705
|
-
|
|
1081
|
+
X && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ys), g(this, {
|
|
706
1082
|
children: [
|
|
707
|
-
|
|
708
|
-
|
|
1083
|
+
me(),
|
|
1084
|
+
me({
|
|
709
1085
|
name: "arrow",
|
|
710
|
-
children:
|
|
1086
|
+
children: g(Dt, { class: "default-arrow" })
|
|
711
1087
|
})
|
|
712
1088
|
]
|
|
713
1089
|
}), this.slot = "head");
|
|
714
1090
|
}
|
|
715
1091
|
connectedCallback() {
|
|
716
|
-
super.connectedCallback(),
|
|
1092
|
+
super.connectedCallback(), c(this, Te, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change", e(this, he)), e(this, he).call(this), this.selectElement.addEventListener("selectToggle", e(this, ze));
|
|
717
1093
|
}
|
|
718
1094
|
disconnectedCallback() {
|
|
719
|
-
this.selectElement.removeEventListener("change", e(this,
|
|
1095
|
+
this.selectElement.removeEventListener("change", e(this, he)), this.selectElement.removeEventListener("selectToggle", e(this, ze));
|
|
720
1096
|
}
|
|
721
1097
|
}
|
|
722
|
-
|
|
723
|
-
customElements.get("e-select-head") || customElements.define("e-select-head",
|
|
724
|
-
const
|
|
1098
|
+
Te = new WeakMap(), he = new WeakMap(), ze = new WeakMap();
|
|
1099
|
+
customElements.get("e-select-head") || customElements.define("e-select-head", Ss);
|
|
1100
|
+
const ks = k({
|
|
725
1101
|
"e-select": {
|
|
726
1102
|
display: "block",
|
|
727
1103
|
width: "100%",
|
|
728
|
-
"--arrow-color":
|
|
1104
|
+
"--arrow-color": f.colorFont.var
|
|
729
1105
|
},
|
|
730
1106
|
"e-select-head": {
|
|
731
1107
|
width: "100%",
|
|
@@ -742,12 +1118,12 @@ const jt = w({
|
|
|
742
1118
|
fontSize: "var(--font-size-small)"
|
|
743
1119
|
},
|
|
744
1120
|
"e-select-option:hover": {
|
|
745
|
-
color:
|
|
1121
|
+
color: f.colorActive.var
|
|
746
1122
|
},
|
|
747
1123
|
svg: {
|
|
748
1124
|
width: "16px",
|
|
749
1125
|
height: "16px",
|
|
750
|
-
fill:
|
|
1126
|
+
fill: f.colorFont.var,
|
|
751
1127
|
transitionProperty: "transform",
|
|
752
1128
|
transitionDuration: "var(--duration-short)"
|
|
753
1129
|
},
|
|
@@ -755,29 +1131,30 @@ const jt = w({
|
|
|
755
1131
|
transform: "scaleY(-1)"
|
|
756
1132
|
}
|
|
757
1133
|
});
|
|
758
|
-
class
|
|
759
|
-
constructor(...
|
|
760
|
-
var n
|
|
761
|
-
super(...
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
children:
|
|
1134
|
+
class Zt extends ge {
|
|
1135
|
+
constructor(...s) {
|
|
1136
|
+
var n;
|
|
1137
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ks);
|
|
1138
|
+
const i = ((n = this.firstStore.__manager) == null ? void 0 : n.variants) || [];
|
|
1139
|
+
g(this, {
|
|
1140
|
+
children: g("e-select", {
|
|
765
1141
|
value: this.firstStore,
|
|
766
|
-
onChange: (
|
|
767
|
-
this.updateStores(
|
|
1142
|
+
onChange: (h) => {
|
|
1143
|
+
this.updateStores(h.currentTarget.value);
|
|
768
1144
|
},
|
|
769
1145
|
lightChildren: [
|
|
770
|
-
|
|
1146
|
+
g("e-select-head", {
|
|
771
1147
|
lightChildren: [
|
|
772
|
-
|
|
1148
|
+
lt({
|
|
773
1149
|
"data-value-holder": ""
|
|
774
1150
|
})
|
|
775
1151
|
]
|
|
776
1152
|
}),
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
1153
|
+
// @ts-ignore
|
|
1154
|
+
...i.map(
|
|
1155
|
+
(h, u) => g("e-select-option", {
|
|
1156
|
+
lightChildren: h,
|
|
1157
|
+
default: u === 0 ? !0 : null
|
|
781
1158
|
})
|
|
782
1159
|
)
|
|
783
1160
|
]
|
|
@@ -785,8 +1162,8 @@ class ct extends se {
|
|
|
785
1162
|
});
|
|
786
1163
|
}
|
|
787
1164
|
}
|
|
788
|
-
customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager",
|
|
789
|
-
const
|
|
1165
|
+
customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", Zt);
|
|
1166
|
+
const Es = k({
|
|
790
1167
|
":host": {
|
|
791
1168
|
width: "100%",
|
|
792
1169
|
display: "flex",
|
|
@@ -805,20 +1182,20 @@ const Wt = w({
|
|
|
805
1182
|
margin: "0",
|
|
806
1183
|
padding: "0 var(--gap-small)",
|
|
807
1184
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
808
|
-
borderRadius:
|
|
1185
|
+
borderRadius: f.borderRadius.var
|
|
809
1186
|
}
|
|
810
1187
|
});
|
|
811
|
-
class
|
|
812
|
-
constructor(...
|
|
813
|
-
super(...
|
|
1188
|
+
class Wt extends ge {
|
|
1189
|
+
constructor(...s) {
|
|
1190
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Es), g(this, {
|
|
814
1191
|
children: [
|
|
815
|
-
|
|
1192
|
+
Ve({
|
|
816
1193
|
class: "text-input",
|
|
817
1194
|
type: "string",
|
|
818
1195
|
value: this.firstStore,
|
|
819
|
-
onChange: (
|
|
1196
|
+
onChange: (i) => {
|
|
820
1197
|
this.updateStores(
|
|
821
|
-
|
|
1198
|
+
i.currentTarget.value
|
|
822
1199
|
);
|
|
823
1200
|
}
|
|
824
1201
|
})
|
|
@@ -826,21 +1203,21 @@ class dt extends se {
|
|
|
826
1203
|
});
|
|
827
1204
|
}
|
|
828
1205
|
}
|
|
829
|
-
customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager",
|
|
830
|
-
const
|
|
831
|
-
boolean:
|
|
832
|
-
color:
|
|
833
|
-
link:
|
|
834
|
-
number:
|
|
835
|
-
select:
|
|
836
|
-
string:
|
|
837
|
-
},
|
|
1206
|
+
customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", Wt);
|
|
1207
|
+
const xs = {
|
|
1208
|
+
boolean: Vt,
|
|
1209
|
+
color: _t,
|
|
1210
|
+
link: Bt,
|
|
1211
|
+
number: Kt,
|
|
1212
|
+
select: Zt,
|
|
1213
|
+
string: Wt
|
|
1214
|
+
}, Cs = k({
|
|
838
1215
|
":host": {
|
|
839
1216
|
display: "grid",
|
|
840
1217
|
gridAutoFlow: "column",
|
|
841
1218
|
gridTemplateColumns: "0.5fr 1fr",
|
|
842
1219
|
alignItems: "center",
|
|
843
|
-
color:
|
|
1220
|
+
color: f.colorFont.var,
|
|
844
1221
|
gap: "var(--gap-medium)"
|
|
845
1222
|
},
|
|
846
1223
|
":host(.disabled)": {
|
|
@@ -863,7 +1240,7 @@ const qt = {
|
|
|
863
1240
|
margin: "0",
|
|
864
1241
|
border: "none",
|
|
865
1242
|
background: "none",
|
|
866
|
-
fill:
|
|
1243
|
+
fill: f.colorFont.var,
|
|
867
1244
|
transitionDuration: "var(--duration-short)",
|
|
868
1245
|
transitionProperty: "fill, opacity",
|
|
869
1246
|
opacity: "0"
|
|
@@ -872,64 +1249,66 @@ const qt = {
|
|
|
872
1249
|
opacity: "1"
|
|
873
1250
|
},
|
|
874
1251
|
".head-button:hover": {
|
|
875
|
-
fill:
|
|
1252
|
+
fill: f.colorActive.var
|
|
876
1253
|
},
|
|
877
1254
|
".head-button svg": {
|
|
878
1255
|
width: "100%",
|
|
879
1256
|
height: "100%"
|
|
880
1257
|
}
|
|
881
1258
|
});
|
|
882
|
-
var
|
|
883
|
-
class
|
|
1259
|
+
var z, ce, de, ue, fe, Me, Ae;
|
|
1260
|
+
class gt extends HTMLElement {
|
|
884
1261
|
constructor(t) {
|
|
885
|
-
var h,
|
|
1262
|
+
var h, u;
|
|
886
1263
|
super();
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
1264
|
+
o(this, z, []);
|
|
1265
|
+
o(this, ce);
|
|
1266
|
+
o(this, de);
|
|
1267
|
+
o(this, ue, !1);
|
|
1268
|
+
o(this, fe);
|
|
1269
|
+
o(this, Me, () => {
|
|
1270
|
+
j.current.find((t) => e(this, z).includes(t)) || this.remove();
|
|
894
1271
|
});
|
|
895
|
-
|
|
896
|
-
e(this,
|
|
897
|
-
|
|
1272
|
+
o(this, Ae, (t) => {
|
|
1273
|
+
e(this, ue) && ((t.metaKey || t.ctrlKey) && t.code === "KeyC" ? navigator.clipboard.writeText(e(this, z)[0].current) : (t.metaKey || t.ctrlKey) && t.code === "KeyR" && (e(this, z).forEach((i) => {
|
|
1274
|
+
i.reset();
|
|
898
1275
|
}), t.preventDefault()));
|
|
899
1276
|
});
|
|
900
|
-
|
|
901
|
-
const
|
|
902
|
-
|
|
1277
|
+
c(this, z, [t.store]), c(this, ce, t.store.name), c(this, de, e(this, ce).split(".").slice(-1).toString());
|
|
1278
|
+
const i = ((h = t.store.__manager) == null ? void 0 : h.type) || "string";
|
|
1279
|
+
c(this, fe, new xs[i](
|
|
1280
|
+
e(this, z)[0]
|
|
1281
|
+
)), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Cs), g(this, {
|
|
903
1282
|
class: {
|
|
904
|
-
disabled: ((
|
|
1283
|
+
disabled: ((u = t.store.__manager) == null ? void 0 : u.disabled) || !1
|
|
905
1284
|
},
|
|
906
1285
|
onPointerleave: () => {
|
|
907
|
-
|
|
1286
|
+
c(this, ue, !1);
|
|
908
1287
|
},
|
|
909
1288
|
onPointerenter: () => {
|
|
910
|
-
|
|
1289
|
+
c(this, ue, !0);
|
|
911
1290
|
},
|
|
912
1291
|
children: [
|
|
913
|
-
|
|
1292
|
+
w({
|
|
914
1293
|
class: "head",
|
|
915
1294
|
children: [
|
|
916
|
-
|
|
917
|
-
|
|
1295
|
+
w({ class: "name", children: e(this, de) + ":" }),
|
|
1296
|
+
w({
|
|
918
1297
|
class: "head-buttons",
|
|
919
1298
|
children: [
|
|
920
|
-
|
|
1299
|
+
ee({
|
|
921
1300
|
class: "head-button",
|
|
922
|
-
children:
|
|
1301
|
+
children: Ht,
|
|
923
1302
|
onClick: () => {
|
|
924
|
-
navigator.clipboard.writeText(e(this,
|
|
1303
|
+
navigator.clipboard.writeText(e(this, z)[0].current);
|
|
925
1304
|
}
|
|
926
1305
|
}),
|
|
927
|
-
|
|
1306
|
+
ee({
|
|
928
1307
|
class: "head-button",
|
|
929
|
-
children:
|
|
1308
|
+
children: It,
|
|
930
1309
|
onClick: () => {
|
|
931
|
-
e(this,
|
|
932
|
-
|
|
1310
|
+
e(this, z).forEach((m) => {
|
|
1311
|
+
m.reset();
|
|
933
1312
|
});
|
|
934
1313
|
}
|
|
935
1314
|
})
|
|
@@ -937,36 +1316,36 @@ class je extends HTMLElement {
|
|
|
937
1316
|
})
|
|
938
1317
|
]
|
|
939
1318
|
}),
|
|
940
|
-
e(this,
|
|
1319
|
+
e(this, fe)
|
|
941
1320
|
]
|
|
942
1321
|
});
|
|
943
1322
|
}
|
|
944
1323
|
get key() {
|
|
945
|
-
return e(this,
|
|
1324
|
+
return e(this, ce);
|
|
946
1325
|
}
|
|
947
1326
|
get name() {
|
|
948
|
-
return e(this,
|
|
1327
|
+
return e(this, de);
|
|
949
1328
|
}
|
|
950
1329
|
get stores() {
|
|
951
|
-
return e(this,
|
|
1330
|
+
return e(this, z);
|
|
952
1331
|
}
|
|
953
1332
|
addStore(t) {
|
|
954
|
-
e(this,
|
|
1333
|
+
e(this, fe).addStore(t);
|
|
955
1334
|
}
|
|
956
1335
|
connectedCallback() {
|
|
957
|
-
|
|
1336
|
+
j.subscribe(e(this, Me)), addEventListener("keydown", e(this, Ae)), Et(this);
|
|
958
1337
|
}
|
|
959
1338
|
disconnectedCallback() {
|
|
960
|
-
|
|
1339
|
+
j.unsubscribe(e(this, Me)), removeEventListener("keydown", e(this, Ae));
|
|
961
1340
|
}
|
|
962
1341
|
}
|
|
963
|
-
|
|
964
|
-
customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field",
|
|
965
|
-
const
|
|
1342
|
+
z = new WeakMap(), ce = new WeakMap(), de = new WeakMap(), ue = new WeakMap(), fe = new WeakMap(), Me = new WeakMap(), Ae = new WeakMap();
|
|
1343
|
+
customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field", gt);
|
|
1344
|
+
const Ls = k({
|
|
966
1345
|
".wrapper": {
|
|
967
1346
|
boxSizing: "border-box",
|
|
968
1347
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
969
|
-
borderRadius:
|
|
1348
|
+
borderRadius: f.borderRadius.var
|
|
970
1349
|
},
|
|
971
1350
|
".head": {
|
|
972
1351
|
boxSizing: "border-box",
|
|
@@ -977,12 +1356,12 @@ const Yt = w({
|
|
|
977
1356
|
display: "flex",
|
|
978
1357
|
alignItems: "center",
|
|
979
1358
|
justifyContent: "space-between",
|
|
980
|
-
backgroundColor:
|
|
981
|
-
borderRadius:
|
|
1359
|
+
backgroundColor: f.colorMainAux.var,
|
|
1360
|
+
borderRadius: f.borderRadius.var
|
|
982
1361
|
},
|
|
983
1362
|
".name": {
|
|
984
1363
|
fontSize: "var(--font-size-large)",
|
|
985
|
-
color:
|
|
1364
|
+
color: f.colorFont.var
|
|
986
1365
|
},
|
|
987
1366
|
".body": {
|
|
988
1367
|
display: "none",
|
|
@@ -1010,63 +1389,63 @@ const Yt = w({
|
|
|
1010
1389
|
".arrow": {
|
|
1011
1390
|
width: "20px",
|
|
1012
1391
|
height: "20px",
|
|
1013
|
-
fill:
|
|
1392
|
+
fill: f.colorFont.var,
|
|
1014
1393
|
transition: "transform var(--duration-short)"
|
|
1015
1394
|
},
|
|
1016
1395
|
".opened .arrow": {
|
|
1017
1396
|
transform: "scaleY(-1)"
|
|
1018
1397
|
}
|
|
1019
1398
|
});
|
|
1020
|
-
var
|
|
1021
|
-
const
|
|
1399
|
+
var M, Ne, y, Re, Fe, Pe, $e, Ge;
|
|
1400
|
+
const Ue = class Ue extends HTMLElement {
|
|
1022
1401
|
constructor(t) {
|
|
1023
1402
|
super();
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
let
|
|
1403
|
+
o(this, M);
|
|
1404
|
+
o(this, Ne, new P(null));
|
|
1405
|
+
o(this, y, new P([]));
|
|
1406
|
+
o(this, Re);
|
|
1407
|
+
o(this, Fe, null);
|
|
1408
|
+
o(this, Pe, null);
|
|
1409
|
+
o(this, $e, null);
|
|
1410
|
+
o(this, Ge, (t) => {
|
|
1411
|
+
let i = [], n = [];
|
|
1033
1412
|
t.forEach((h) => {
|
|
1034
|
-
|
|
1035
|
-
}), e(this,
|
|
1036
|
-
(h) => !
|
|
1037
|
-
), e(this,
|
|
1413
|
+
i = [...i, ...h.removedNodes], n = [...n, ...h.addedNodes];
|
|
1414
|
+
}), e(this, y).current = e(this, y).current.filter(
|
|
1415
|
+
(h) => !i.includes(h)
|
|
1416
|
+
), e(this, M) && !e(this, y).current.length && !n.length && this.remove();
|
|
1038
1417
|
});
|
|
1039
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(
|
|
1418
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ls), c(this, M, t.key), c(this, Re, new MutationObserver(e(this, Ge))), g(this, {
|
|
1040
1419
|
children: [
|
|
1041
|
-
|
|
1420
|
+
w({
|
|
1042
1421
|
class: "wrapper",
|
|
1043
1422
|
children: [
|
|
1044
|
-
|
|
1423
|
+
w({
|
|
1045
1424
|
class: "head",
|
|
1046
1425
|
onClick: (n) => {
|
|
1047
|
-
this.classList.toggle("opened"), this.classList.contains("opened") ?
|
|
1426
|
+
this.classList.toggle("opened"), this.classList.contains("opened") ? x.openPanel(e(this, M)) : x.closePanel(e(this, M));
|
|
1048
1427
|
},
|
|
1049
1428
|
children: [
|
|
1050
|
-
e(this,
|
|
1429
|
+
e(this, M) ? w({
|
|
1051
1430
|
class: "name",
|
|
1052
|
-
children: [e(this,
|
|
1431
|
+
children: [e(this, M).split(".").slice(-1).toString()]
|
|
1053
1432
|
}) : null,
|
|
1054
|
-
e(this,
|
|
1055
|
-
|
|
1433
|
+
e(this, Ne),
|
|
1434
|
+
g(Dt, {
|
|
1056
1435
|
class: "arrow"
|
|
1057
1436
|
})
|
|
1058
1437
|
]
|
|
1059
1438
|
}),
|
|
1060
|
-
|
|
1439
|
+
w({
|
|
1061
1440
|
class: "body",
|
|
1062
1441
|
ref: (n) => {
|
|
1063
|
-
|
|
1442
|
+
c(this, Fe, n);
|
|
1064
1443
|
},
|
|
1065
|
-
children:
|
|
1444
|
+
children: w({
|
|
1066
1445
|
class: "body-content",
|
|
1067
|
-
children: e(this,
|
|
1446
|
+
children: e(this, y),
|
|
1068
1447
|
ref: (n) => {
|
|
1069
|
-
|
|
1448
|
+
c(this, Pe, n), c(this, $e, n.firstElementChild);
|
|
1070
1449
|
}
|
|
1071
1450
|
})
|
|
1072
1451
|
})
|
|
@@ -1076,36 +1455,36 @@ const Ie = class Ie extends HTMLElement {
|
|
|
1076
1455
|
}), t != null && t.storeBox && this.handleStore(t.storeBox);
|
|
1077
1456
|
}
|
|
1078
1457
|
get key() {
|
|
1079
|
-
return e(this,
|
|
1458
|
+
return e(this, M);
|
|
1080
1459
|
}
|
|
1081
1460
|
get head() {
|
|
1082
|
-
return e(this,
|
|
1461
|
+
return e(this, Ne);
|
|
1083
1462
|
}
|
|
1084
1463
|
get content() {
|
|
1085
|
-
return e(this,
|
|
1464
|
+
return e(this, y);
|
|
1086
1465
|
}
|
|
1087
1466
|
get bodyElement() {
|
|
1088
|
-
return e(this,
|
|
1467
|
+
return e(this, Fe);
|
|
1089
1468
|
}
|
|
1090
1469
|
get contentElement() {
|
|
1091
|
-
return e(this,
|
|
1470
|
+
return e(this, Pe);
|
|
1092
1471
|
}
|
|
1093
1472
|
connectedCallback() {
|
|
1094
|
-
|
|
1473
|
+
x.isPanelOpened(e(this, M)) && this.classList.add("opened"), setTimeout(() => {
|
|
1095
1474
|
this.classList.add("transition-allowed");
|
|
1096
|
-
}), e(this,
|
|
1475
|
+
}), e(this, Re).observe(e(this, $e), {
|
|
1097
1476
|
childList: !0
|
|
1098
1477
|
});
|
|
1099
1478
|
}
|
|
1100
1479
|
handleStore(t) {
|
|
1101
1480
|
if (t.remainingFolders.length) {
|
|
1102
|
-
const n = t.store.
|
|
1103
|
-
|
|
1481
|
+
const n = t.store.name.split("."), h = n.slice(0, n.length - t.remainingFolders.length).join("."), u = e(this, y).current.find((m) => m.key === h);
|
|
1482
|
+
u instanceof Ue ? u.handleStore({
|
|
1104
1483
|
store: t.store,
|
|
1105
1484
|
remainingFolders: t.remainingFolders.slice(1)
|
|
1106
|
-
}) : e(this,
|
|
1107
|
-
...e(this,
|
|
1108
|
-
new
|
|
1485
|
+
}) : e(this, y).current = [
|
|
1486
|
+
...e(this, y).current,
|
|
1487
|
+
new Ue({
|
|
1109
1488
|
key: h,
|
|
1110
1489
|
storeBox: {
|
|
1111
1490
|
store: t.store,
|
|
@@ -1114,22 +1493,22 @@ const Ie = class Ie extends HTMLElement {
|
|
|
1114
1493
|
})
|
|
1115
1494
|
];
|
|
1116
1495
|
} else {
|
|
1117
|
-
const
|
|
1118
|
-
(n) => n.key === t.store.
|
|
1496
|
+
const i = e(this, y).current.find(
|
|
1497
|
+
(n) => n.key === t.store.name
|
|
1119
1498
|
);
|
|
1120
|
-
|
|
1121
|
-
...e(this,
|
|
1122
|
-
new
|
|
1499
|
+
i instanceof gt ? i.addStore(t.store) : e(this, y).current = [
|
|
1500
|
+
...e(this, y).current,
|
|
1501
|
+
new gt({
|
|
1123
1502
|
store: t.store
|
|
1124
1503
|
})
|
|
1125
1504
|
];
|
|
1126
1505
|
}
|
|
1127
1506
|
}
|
|
1128
1507
|
};
|
|
1129
|
-
|
|
1130
|
-
let
|
|
1131
|
-
customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder",
|
|
1132
|
-
const
|
|
1508
|
+
M = new WeakMap(), Ne = new WeakMap(), y = new WeakMap(), Re = new WeakMap(), Fe = new WeakMap(), Pe = new WeakMap(), $e = new WeakMap(), Ge = new WeakMap();
|
|
1509
|
+
let Ze = Ue;
|
|
1510
|
+
customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder", Ze);
|
|
1511
|
+
const Ts = k({
|
|
1133
1512
|
":host": {
|
|
1134
1513
|
"--tweaker-width": "550px",
|
|
1135
1514
|
"--tweaker-offset": "20px",
|
|
@@ -1148,8 +1527,8 @@ const Xt = w({
|
|
|
1148
1527
|
top: "var(--tweaker-offset)",
|
|
1149
1528
|
right: "var(--tweaker-offset)",
|
|
1150
1529
|
width: "var(--tweaker-width)",
|
|
1151
|
-
backgroundColor:
|
|
1152
|
-
borderRadius:
|
|
1530
|
+
backgroundColor: f.colorMain.var,
|
|
1531
|
+
borderRadius: f.borderRadius.var,
|
|
1153
1532
|
transition: "opacity 0.1s",
|
|
1154
1533
|
zIndex: "100",
|
|
1155
1534
|
opacity: "0.1"
|
|
@@ -1178,12 +1557,12 @@ const Xt = w({
|
|
|
1178
1557
|
margin: "0",
|
|
1179
1558
|
background: "none",
|
|
1180
1559
|
border: "none",
|
|
1181
|
-
fill:
|
|
1560
|
+
fill: f.colorFont.var,
|
|
1182
1561
|
transitionProperty: "fill",
|
|
1183
1562
|
transitionDuration: "var(--duration-short)"
|
|
1184
1563
|
},
|
|
1185
1564
|
".tweaker-button:hover": {
|
|
1186
|
-
fill:
|
|
1565
|
+
fill: f.colorActive.var
|
|
1187
1566
|
},
|
|
1188
1567
|
".tweaker-button svg": {
|
|
1189
1568
|
width: "100%",
|
|
@@ -1204,7 +1583,7 @@ const Xt = w({
|
|
|
1204
1583
|
":host .body-content::-webkit-scrollbar": {
|
|
1205
1584
|
display: "none"
|
|
1206
1585
|
},
|
|
1207
|
-
[`@media ${
|
|
1586
|
+
[`@media ${ts["<=mobile"]}`]: {
|
|
1208
1587
|
":host": {
|
|
1209
1588
|
position: "absolute",
|
|
1210
1589
|
top: "0",
|
|
@@ -1221,67 +1600,66 @@ const Xt = w({
|
|
|
1221
1600
|
}
|
|
1222
1601
|
}
|
|
1223
1602
|
});
|
|
1224
|
-
var
|
|
1225
|
-
class
|
|
1603
|
+
var Ie, He, De;
|
|
1604
|
+
class qt extends Ze {
|
|
1226
1605
|
constructor() {
|
|
1227
1606
|
super({
|
|
1228
1607
|
key: ""
|
|
1229
1608
|
});
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1609
|
+
o(this, Ie, !1);
|
|
1610
|
+
o(this, He, () => {
|
|
1611
|
+
x.save();
|
|
1233
1612
|
});
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
const n = t.passport.name.split(".");
|
|
1613
|
+
o(this, De, Qt(() => {
|
|
1614
|
+
j.current.forEach((t) => {
|
|
1615
|
+
if (t.name) {
|
|
1616
|
+
const i = t.name.split(".");
|
|
1239
1617
|
this.handleStore({
|
|
1240
1618
|
store: t,
|
|
1241
|
-
remainingFolders:
|
|
1619
|
+
remainingFolders: i.length > 1 ? i.slice(0, -1) : []
|
|
1242
1620
|
});
|
|
1243
1621
|
}
|
|
1244
|
-
}), e(this,
|
|
1245
|
-
top:
|
|
1622
|
+
}), e(this, Ie) || (c(this, Ie, !0), this.contentElement.scroll({
|
|
1623
|
+
top: x.scrollValue
|
|
1246
1624
|
}), this.contentElement.addEventListener("scroll", () => {
|
|
1247
|
-
|
|
1625
|
+
x.scrollValue = this.contentElement.scrollTop;
|
|
1248
1626
|
}));
|
|
1249
1627
|
}, 10));
|
|
1250
|
-
|
|
1251
|
-
|
|
1628
|
+
x.load(), this.shadowRoot.adoptedStyleSheets.push(Ts), this.head.current = [
|
|
1629
|
+
w({
|
|
1252
1630
|
class: "tweaker-buttons",
|
|
1253
1631
|
onClick: (t) => {
|
|
1254
1632
|
t.stopPropagation();
|
|
1255
1633
|
},
|
|
1256
1634
|
children: [
|
|
1257
|
-
|
|
1635
|
+
ee({
|
|
1258
1636
|
class: "tweaker-button",
|
|
1259
|
-
children:
|
|
1637
|
+
children: It,
|
|
1260
1638
|
onClick: () => {
|
|
1261
|
-
|
|
1639
|
+
B.resetState();
|
|
1262
1640
|
}
|
|
1263
1641
|
}),
|
|
1264
|
-
|
|
1642
|
+
ee({
|
|
1265
1643
|
class: ["tweaker-button"],
|
|
1266
|
-
children: [
|
|
1644
|
+
children: [Ht],
|
|
1267
1645
|
onClick: () => {
|
|
1268
1646
|
navigator.clipboard.writeText(
|
|
1269
|
-
JSON.stringify(
|
|
1647
|
+
JSON.stringify(B.getState())
|
|
1270
1648
|
);
|
|
1271
1649
|
}
|
|
1272
1650
|
}),
|
|
1273
|
-
|
|
1651
|
+
ee({
|
|
1274
1652
|
class: "tweaker-button",
|
|
1275
|
-
children:
|
|
1653
|
+
children: ls,
|
|
1276
1654
|
onClick: () => {
|
|
1277
|
-
|
|
1655
|
+
Xt(B.name, B.getState());
|
|
1278
1656
|
}
|
|
1279
1657
|
}),
|
|
1280
|
-
|
|
1658
|
+
Pt({
|
|
1281
1659
|
class: "tweaker-button",
|
|
1282
1660
|
children: [
|
|
1283
|
-
|
|
1284
|
-
|
|
1661
|
+
hs,
|
|
1662
|
+
Ve({
|
|
1285
1663
|
type: "file",
|
|
1286
1664
|
style: {
|
|
1287
1665
|
display: "none"
|
|
@@ -1290,12 +1668,12 @@ class ut extends Re {
|
|
|
1290
1668
|
var h;
|
|
1291
1669
|
const n = (h = t.currentTarget.files) == null ? void 0 : h[0];
|
|
1292
1670
|
if (n) {
|
|
1293
|
-
const
|
|
1294
|
-
|
|
1295
|
-
var
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1298
|
-
},
|
|
1671
|
+
const u = new FileReader();
|
|
1672
|
+
u.onload = (m) => {
|
|
1673
|
+
var C, b;
|
|
1674
|
+
const S = (b = (C = m.target) == null ? void 0 : C.result) == null ? void 0 : b.toString();
|
|
1675
|
+
S && B.loadState(S);
|
|
1676
|
+
}, u.readAsText(n);
|
|
1299
1677
|
}
|
|
1300
1678
|
}
|
|
1301
1679
|
})
|
|
@@ -1303,17 +1681,17 @@ class ut extends Re {
|
|
|
1303
1681
|
})
|
|
1304
1682
|
]
|
|
1305
1683
|
})
|
|
1306
|
-
],
|
|
1684
|
+
], g(this.bodyElement, {
|
|
1307
1685
|
children: [
|
|
1308
|
-
|
|
1686
|
+
w({
|
|
1309
1687
|
class: "resize",
|
|
1310
1688
|
onPointerdown: (t) => {
|
|
1311
1689
|
t.preventDefault();
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1690
|
+
const i = this.getBoundingClientRect(), n = this.contentElement.scrollTop;
|
|
1691
|
+
xt(
|
|
1314
1692
|
(h) => {
|
|
1315
|
-
const
|
|
1316
|
-
this.style.width =
|
|
1693
|
+
const u = t.x - h.x, m = Math.max(400, i.width + u);
|
|
1694
|
+
this.style.width = m + "px", x.changeSize("tweaker", m);
|
|
1317
1695
|
},
|
|
1318
1696
|
() => {
|
|
1319
1697
|
setTimeout(() => {
|
|
@@ -1325,19 +1703,19 @@ class ut extends Re {
|
|
|
1325
1703
|
);
|
|
1326
1704
|
},
|
|
1327
1705
|
onDblclick: () => {
|
|
1328
|
-
this.style.width = "",
|
|
1706
|
+
this.style.width = "", x.changeSize("tweaker", null);
|
|
1329
1707
|
}
|
|
1330
1708
|
})
|
|
1331
1709
|
]
|
|
1332
1710
|
});
|
|
1333
1711
|
}
|
|
1334
1712
|
connectedCallback() {
|
|
1335
|
-
super.connectedCallback(), window.addEventListener("beforeunload", e(this,
|
|
1713
|
+
super.connectedCallback(), window.addEventListener("beforeunload", e(this, He)), j.subscribe(e(this, De)), x.changedSizes("tweaker") && (this.style.width = x.changedSizes("tweaker") + "px");
|
|
1336
1714
|
}
|
|
1337
1715
|
disconnectedCallback() {
|
|
1338
|
-
window.removeEventListener("beforeunload", e(this,
|
|
1716
|
+
window.removeEventListener("beforeunload", e(this, He)), x.save(), j.unsubscribe(e(this, De));
|
|
1339
1717
|
}
|
|
1340
1718
|
}
|
|
1341
|
-
|
|
1342
|
-
customElements.get("e-tweaker") || customElements.define("e-tweaker",
|
|
1343
|
-
|
|
1719
|
+
Ie = new WeakMap(), He = new WeakMap(), De = new WeakMap();
|
|
1720
|
+
customElements.get("e-tweaker") || customElements.define("e-tweaker", qt);
|
|
1721
|
+
X && document.body.appendChild(new qt());
|