aptechka 0.5.39 → 0.5.41
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-AkD1vhRW.js → Animation-BCsZmZbP.js} +16 -16
- package/lib/Animation-BcWwYyuC.cjs +1 -0
- package/lib/Damped-C9p_f19T.cjs +1 -0
- package/lib/{Damped-CH96byE8.js → Damped-Ct0JVxUB.js} +4 -5
- package/lib/{Tweened-DzckT3pw.js → Tweened-CdEuSQDX.js} +9 -10
- package/lib/Tweened-DISO_ORE.cjs +1 -0
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +29 -29
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +72 -69
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +1 -1
- package/lib/{index-BAHHdcp3.js → index-BtsOv9u0.js} +85 -85
- package/lib/index-Buf76Qoq.cjs +9 -0
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +30 -30
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +1 -1
- package/lib/polyfills-BsJ5md2Q.cjs +1 -0
- package/lib/polyfills-mNjpy6Nt.js +27 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +86 -86
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +44 -43
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.d.ts +9 -84
- package/lib/theme/index.js +12 -27
- package/lib/tweaker/index.cjs +6 -6
- package/lib/tweaker/index.js +207 -199
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +26 -27
- package/package.json +1 -1
- package/lib/Animation-BIRIzLIL.cjs +0 -1
- package/lib/Damped-3daHRLIW.cjs +0 -1
- package/lib/Tweened-Bv9mgPvl.cjs +0 -1
- package/lib/index-D2XtQX56.cjs +0 -9
- package/lib/number-Bo5RdrA1.js +0 -23
- package/lib/number-yVpzMdbQ.cjs +0 -1
- package/lib/polyfills-CrcS4RcO.cjs +0 -1
- package/lib/polyfills-DJUYczFm.js +0 -6
package/lib/tweaker/index.js
CHANGED
|
@@ -2,32 +2,32 @@ var ve = (t, e, r) => {
|
|
|
2
2
|
if (!e.has(t))
|
|
3
3
|
throw TypeError("Cannot " + r);
|
|
4
4
|
};
|
|
5
|
-
var d = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)),
|
|
5
|
+
var d = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), H = (t, e, r) => {
|
|
6
6
|
if (e.has(t))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
9
9
|
}, M = (t, e, r, n) => (ve(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
|
|
10
|
-
import { i as
|
|
10
|
+
import { i as xe } from "../browser-0zX67oeU.js";
|
|
11
11
|
import { CustomElement as fe, define as f } from "../custom-element/index.js";
|
|
12
|
-
import { s as
|
|
12
|
+
import { s as y, S as ie, a as P } from "../Store-BQXXikps.js";
|
|
13
13
|
import { c as ke } from "../file-lxi_oXJf.js";
|
|
14
|
-
import { d as
|
|
15
|
-
import { e as p, a0 as re, a as
|
|
14
|
+
import { d as Ce } from "../function-C10DGppn.js";
|
|
15
|
+
import { e as p, a0 as re, a as Pe, aB as $e, D as w, p as I, a3 as Oe } from "../tags-CMPg9ETZ.js";
|
|
16
16
|
import { c as m } from "../createStylesheet-DBCEbDjI.js";
|
|
17
17
|
import { a as Me } from "../Viewport-CFFhFKqX.js";
|
|
18
|
-
import { aptechkaTheme as
|
|
19
|
-
import { AccordionElement as
|
|
20
|
-
import { a as
|
|
21
|
-
import { d as
|
|
18
|
+
import { aptechkaTheme as o } from "../theme/index.js";
|
|
19
|
+
import { AccordionElement as Te } from "../accordion/index.js";
|
|
20
|
+
import { a as Ee } from "../index-BtsOv9u0.js";
|
|
21
|
+
import { d as Re } from "../events-_C2CztxR.js";
|
|
22
22
|
import "../checkbox/index.js";
|
|
23
|
-
import { c as
|
|
24
|
-
const we = '<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>', me = '<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>', We = '<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>',
|
|
23
|
+
import { c as De } from "../math-BOBiC4TN.js";
|
|
24
|
+
const we = '<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>', me = '<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>', We = '<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>', Fe = '<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>';
|
|
25
25
|
var O, g;
|
|
26
|
-
class
|
|
26
|
+
class ze {
|
|
27
27
|
constructor() {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
M(this, O,
|
|
28
|
+
H(this, O, "");
|
|
29
|
+
H(this, g, []);
|
|
30
|
+
M(this, O, y.projectName + "-studio");
|
|
31
31
|
}
|
|
32
32
|
openPanel(e) {
|
|
33
33
|
d(this, g).includes(e) || d(this, g).push(e);
|
|
@@ -42,10 +42,10 @@ class Ie {
|
|
|
42
42
|
const e = {
|
|
43
43
|
openedPanels: d(this, g)
|
|
44
44
|
};
|
|
45
|
-
localStorage.setItem(d(this, O), JSON.stringify(e)),
|
|
45
|
+
localStorage.setItem(d(this, O), JSON.stringify(e)), y.saveState();
|
|
46
46
|
}
|
|
47
47
|
load() {
|
|
48
|
-
|
|
48
|
+
y.loadState();
|
|
49
49
|
const e = localStorage.getItem(d(this, O));
|
|
50
50
|
if (e)
|
|
51
51
|
try {
|
|
@@ -57,34 +57,34 @@ class Ie {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
O = new WeakMap(), g = new WeakMap();
|
|
60
|
-
const
|
|
61
|
-
var
|
|
60
|
+
const $ = new ze();
|
|
61
|
+
var S;
|
|
62
62
|
class N extends fe {
|
|
63
63
|
constructor(...r) {
|
|
64
64
|
super();
|
|
65
|
-
|
|
66
|
-
M(this,
|
|
65
|
+
H(this, S, void 0);
|
|
66
|
+
M(this, S, r);
|
|
67
67
|
}
|
|
68
68
|
addStore(r) {
|
|
69
|
-
d(this,
|
|
69
|
+
d(this, S).push(r);
|
|
70
70
|
}
|
|
71
71
|
get firstStore() {
|
|
72
|
-
return d(this,
|
|
72
|
+
return d(this, S)[0];
|
|
73
73
|
}
|
|
74
74
|
get stores() {
|
|
75
|
-
return d(this,
|
|
75
|
+
return d(this, S);
|
|
76
76
|
}
|
|
77
77
|
updateStores(r) {
|
|
78
|
-
d(this,
|
|
78
|
+
d(this, S).forEach((n) => {
|
|
79
79
|
n.current = r;
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
var
|
|
85
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
86
|
-
(
|
|
87
|
-
return n && a &&
|
|
83
|
+
S = new WeakMap();
|
|
84
|
+
var Ae = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, Le = (t, e, r, n) => {
|
|
85
|
+
for (var a = n > 1 ? void 0 : n ? Ie(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
86
|
+
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
87
|
+
return n && a && Ae(e, r, a), a;
|
|
88
88
|
};
|
|
89
89
|
const Ne = m({
|
|
90
90
|
":host": {
|
|
@@ -92,14 +92,10 @@ const Ne = m({
|
|
|
92
92
|
display: "inline-flex",
|
|
93
93
|
height: "max-content"
|
|
94
94
|
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
height: `calc(${s.heightInput.var} * 0.5)`,
|
|
100
|
-
borderRadius: s.borderRadius.var,
|
|
101
|
-
overflow: "hidden",
|
|
102
|
-
accentColor: s.colorLight.var
|
|
95
|
+
"e-checkbox": {
|
|
96
|
+
width: "var(--height-input)",
|
|
97
|
+
height: "var(--height-input)",
|
|
98
|
+
borderRadius: o.borderRadiusSmall.var
|
|
103
99
|
}
|
|
104
100
|
});
|
|
105
101
|
let oe = class extends N {
|
|
@@ -120,13 +116,13 @@ let oe = class extends N {
|
|
|
120
116
|
});
|
|
121
117
|
}
|
|
122
118
|
};
|
|
123
|
-
oe =
|
|
119
|
+
oe = Le([
|
|
124
120
|
f("e-tweaker-boolean-manager")
|
|
125
121
|
], oe);
|
|
126
|
-
var
|
|
127
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
128
|
-
(
|
|
129
|
-
return n && a &&
|
|
122
|
+
var Ze = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ke = (t, e, r, n) => {
|
|
123
|
+
for (var a = n > 1 ? void 0 : n ? He(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
124
|
+
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
125
|
+
return n && a && Ze(e, r, a), a;
|
|
130
126
|
};
|
|
131
127
|
const Ge = m({
|
|
132
128
|
":host": {
|
|
@@ -136,10 +132,10 @@ const Ge = m({
|
|
|
136
132
|
},
|
|
137
133
|
input: {
|
|
138
134
|
width: "100%",
|
|
139
|
-
height:
|
|
135
|
+
height: "var(--height-input)",
|
|
140
136
|
padding: "0",
|
|
141
137
|
background: "none",
|
|
142
|
-
borderRadius:
|
|
138
|
+
borderRadius: o.borderRadius.var,
|
|
143
139
|
border: "none",
|
|
144
140
|
blockSize: "unset"
|
|
145
141
|
},
|
|
@@ -147,8 +143,8 @@ const Ge = m({
|
|
|
147
143
|
boxSizing: "border-box",
|
|
148
144
|
padding: "0px",
|
|
149
145
|
border: "none",
|
|
150
|
-
borderRadius:
|
|
151
|
-
height:
|
|
146
|
+
borderRadius: o.borderRadius.var,
|
|
147
|
+
height: "calc(var(--height-input) * 0.93)"
|
|
152
148
|
}
|
|
153
149
|
});
|
|
154
150
|
let le = class extends N {
|
|
@@ -170,8 +166,8 @@ le = Ke([
|
|
|
170
166
|
f("e-tweaker-color-manager")
|
|
171
167
|
], le);
|
|
172
168
|
var Je = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, Ye = (t, e, r, n) => {
|
|
173
|
-
for (var a = n > 1 ? void 0 : n ? Ve(e, r) : e,
|
|
174
|
-
(
|
|
169
|
+
for (var a = n > 1 ? void 0 : n ? Ve(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
170
|
+
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
175
171
|
return n && a && Je(e, r, a), a;
|
|
176
172
|
};
|
|
177
173
|
const Be = m({
|
|
@@ -184,7 +180,7 @@ let he = class extends N {
|
|
|
184
180
|
var e, r;
|
|
185
181
|
super(...t), this.openShadow(Be), p(this, {
|
|
186
182
|
children: [
|
|
187
|
-
|
|
183
|
+
Pe({
|
|
188
184
|
href: this.firstStore,
|
|
189
185
|
target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank",
|
|
190
186
|
children: this.firstStore
|
|
@@ -197,8 +193,8 @@ he = Ye([
|
|
|
197
193
|
f("e-tweaker-link-manager")
|
|
198
194
|
], he);
|
|
199
195
|
var qe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, Ue = (t, e, r, n) => {
|
|
200
|
-
for (var a = n > 1 ? void 0 : n ? Qe(e, r) : e,
|
|
201
|
-
(
|
|
196
|
+
for (var a = n > 1 ? void 0 : n ? Qe(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
197
|
+
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
202
198
|
return n && a && qe(e, r, a), a;
|
|
203
199
|
}, Xe = (t, e, r) => {
|
|
204
200
|
if (!e.has(t))
|
|
@@ -207,7 +203,7 @@ var qe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, Ue = (t, e
|
|
|
207
203
|
if (e.has(t))
|
|
208
204
|
throw TypeError("Cannot add the same private member more than once");
|
|
209
205
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
210
|
-
},
|
|
206
|
+
}, T;
|
|
211
207
|
const et = m({
|
|
212
208
|
":host": {
|
|
213
209
|
width: "100%",
|
|
@@ -221,20 +217,20 @@ const et = m({
|
|
|
221
217
|
fontFamily: "inherit",
|
|
222
218
|
color: "inherit",
|
|
223
219
|
border: "none",
|
|
224
|
-
fontSize:
|
|
220
|
+
fontSize: "var(--font-size-small)"
|
|
225
221
|
},
|
|
226
222
|
".text-input": {
|
|
227
|
-
height:
|
|
223
|
+
height: "var(--height-input)",
|
|
228
224
|
width: "100%",
|
|
229
225
|
margin: "0",
|
|
230
|
-
padding:
|
|
226
|
+
padding: "0 var(--gap-small)",
|
|
231
227
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
232
|
-
borderRadius:
|
|
228
|
+
borderRadius: o.borderRadius.var
|
|
233
229
|
}
|
|
234
230
|
});
|
|
235
231
|
let j = class extends N {
|
|
236
232
|
constructor(...t) {
|
|
237
|
-
super(...t), je(this,
|
|
233
|
+
super(...t), je(this, T, new ie([])), this.openShadow(et), p(this, {
|
|
238
234
|
children: [
|
|
239
235
|
re({
|
|
240
236
|
class: "text-input",
|
|
@@ -246,21 +242,21 @@ let j = class extends N {
|
|
|
246
242
|
);
|
|
247
243
|
}
|
|
248
244
|
}),
|
|
249
|
-
ae(this,
|
|
245
|
+
ae(this, T)
|
|
250
246
|
]
|
|
251
247
|
});
|
|
252
248
|
}
|
|
253
249
|
appendContent(t) {
|
|
254
|
-
ae(this,
|
|
250
|
+
ae(this, T).current = [...ae(this, T).current, t];
|
|
255
251
|
}
|
|
256
252
|
};
|
|
257
|
-
|
|
253
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
258
254
|
j = Ue([
|
|
259
255
|
f("e-tweaker-string-manager")
|
|
260
256
|
], j);
|
|
261
257
|
var tt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, at = (t, e, r, n) => {
|
|
262
|
-
for (var a = n > 1 ? void 0 : n ? rt(e, r) : e,
|
|
263
|
-
(
|
|
258
|
+
for (var a = n > 1 ? void 0 : n ? rt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
259
|
+
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
264
260
|
return n && a && tt(e, r, a), a;
|
|
265
261
|
}, be = (t, e, r) => {
|
|
266
262
|
if (!e.has(t))
|
|
@@ -269,27 +265,27 @@ var tt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, at = (t, e
|
|
|
269
265
|
if (e.has(t))
|
|
270
266
|
throw TypeError("Cannot add the same private member more than once");
|
|
271
267
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
272
|
-
}, ne = (t, e, r, n) => (be(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r),
|
|
268
|
+
}, ne = (t, e, r, n) => (be(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), E, R, D, J;
|
|
273
269
|
let ee = class extends j {
|
|
274
270
|
constructor(...t) {
|
|
275
|
-
var e, r, n, a,
|
|
276
|
-
super(...t), K(this,
|
|
277
|
-
const
|
|
278
|
-
return this.toFixed(
|
|
279
|
-
}), ne(this,
|
|
271
|
+
var e, r, n, a, i, s;
|
|
272
|
+
super(...t), K(this, E, void 0), K(this, R, void 0), K(this, D, void 0), K(this, J, (b) => {
|
|
273
|
+
const Z = typeof b == "string" ? parseFloat(b) || this.min : b, Se = De(Z, _(this, R), _(this, D));
|
|
274
|
+
return this.toFixed(Se);
|
|
275
|
+
}), ne(this, R, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), ne(this, D, ((a = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : a.max) || 1), ne(this, E, ((s = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : s.step) || 0.01);
|
|
280
276
|
}
|
|
281
277
|
get min() {
|
|
282
|
-
return _(this,
|
|
278
|
+
return _(this, R);
|
|
283
279
|
}
|
|
284
280
|
get max() {
|
|
285
|
-
return _(this,
|
|
281
|
+
return _(this, D);
|
|
286
282
|
}
|
|
287
283
|
get step() {
|
|
288
|
-
return _(this,
|
|
284
|
+
return _(this, E);
|
|
289
285
|
}
|
|
290
286
|
toFixed(t) {
|
|
291
287
|
var r;
|
|
292
|
-
const e = ((r = _(this,
|
|
288
|
+
const e = ((r = _(this, E).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
|
|
293
289
|
return e ? +t.toFixed(e) : Math.ceil(t);
|
|
294
290
|
}
|
|
295
291
|
connectedCallback() {
|
|
@@ -299,16 +295,16 @@ let ee = class extends j {
|
|
|
299
295
|
this.firstStore.removeMiddleware(_(this, J));
|
|
300
296
|
}
|
|
301
297
|
};
|
|
302
|
-
|
|
303
|
-
D = /* @__PURE__ */ new WeakMap();
|
|
298
|
+
E = /* @__PURE__ */ new WeakMap();
|
|
304
299
|
R = /* @__PURE__ */ new WeakMap();
|
|
300
|
+
D = /* @__PURE__ */ new WeakMap();
|
|
305
301
|
J = /* @__PURE__ */ new WeakMap();
|
|
306
302
|
ee = at([
|
|
307
303
|
f("e-tweaker-number-manager")
|
|
308
304
|
], ee);
|
|
309
|
-
var nt = Object.defineProperty,
|
|
310
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
311
|
-
(
|
|
305
|
+
var nt = Object.defineProperty, st = Object.getOwnPropertyDescriptor, it = (t, e, r, n) => {
|
|
306
|
+
for (var a = n > 1 ? void 0 : n ? st(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
307
|
+
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
312
308
|
return n && a && nt(e, r, a), a;
|
|
313
309
|
};
|
|
314
310
|
const ot = m({
|
|
@@ -317,7 +313,7 @@ const ot = m({
|
|
|
317
313
|
},
|
|
318
314
|
".text-input": {
|
|
319
315
|
width: "60px",
|
|
320
|
-
marginRight:
|
|
316
|
+
marginRight: "var(--gap-large)",
|
|
321
317
|
textAlign: "center"
|
|
322
318
|
},
|
|
323
319
|
".range-input": {
|
|
@@ -328,19 +324,19 @@ const ot = m({
|
|
|
328
324
|
margin: "0",
|
|
329
325
|
padding: "0",
|
|
330
326
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
331
|
-
borderRadius:
|
|
327
|
+
borderRadius: o.borderRadius.var
|
|
332
328
|
},
|
|
333
329
|
".range-input::-webkit-slider-thumb": {
|
|
334
330
|
"-webkit-appearance": "none",
|
|
335
|
-
height:
|
|
336
|
-
width:
|
|
337
|
-
borderRadius:
|
|
338
|
-
backgroundColor:
|
|
331
|
+
height: "calc(var(--height-input) * 0.7)",
|
|
332
|
+
width: o.borderRadius.var,
|
|
333
|
+
borderRadius: o.borderRadius.var,
|
|
334
|
+
backgroundColor: o.colorFont.var,
|
|
339
335
|
transitionProperty: "background-color",
|
|
340
|
-
transitionDuration:
|
|
336
|
+
transitionDuration: "var(--duration-short)"
|
|
341
337
|
},
|
|
342
338
|
".range-input:focus::-webkit-slider-thumb": {
|
|
343
|
-
backgroundColor:
|
|
339
|
+
backgroundColor: o.colorActive.var
|
|
344
340
|
},
|
|
345
341
|
".range-input::-webkit-slider-runnable-track": {
|
|
346
342
|
"-webkit-appearance": "none",
|
|
@@ -368,18 +364,18 @@ let ce = class extends ee {
|
|
|
368
364
|
);
|
|
369
365
|
}
|
|
370
366
|
};
|
|
371
|
-
ce =
|
|
367
|
+
ce = it([
|
|
372
368
|
f("e-tweaker-range-manager")
|
|
373
369
|
], ce);
|
|
374
370
|
var lt = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, ct = (t, e, r, n) => {
|
|
375
|
-
for (var a = n > 1 ? void 0 : n ? ht(e, r) : e,
|
|
376
|
-
(
|
|
371
|
+
for (var a = n > 1 ? void 0 : n ? ht(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
372
|
+
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
377
373
|
return n && a && lt(e, r, a), a;
|
|
378
374
|
};
|
|
379
375
|
const dt = m({
|
|
380
376
|
"e-select": {
|
|
381
377
|
width: "100%",
|
|
382
|
-
"--arrow-color":
|
|
378
|
+
"--arrow-color": o.colorFont.var
|
|
383
379
|
},
|
|
384
380
|
"e-select-head": {
|
|
385
381
|
width: "100%",
|
|
@@ -388,18 +384,18 @@ const dt = m({
|
|
|
388
384
|
justifyContent: "space-between"
|
|
389
385
|
},
|
|
390
386
|
"e-select-option": {
|
|
391
|
-
transitionDuration:
|
|
387
|
+
transitionDuration: "var(--duration-short)",
|
|
392
388
|
transitionProperty: "color"
|
|
393
389
|
},
|
|
394
390
|
"e-select-option:hover": {
|
|
395
|
-
color:
|
|
391
|
+
color: o.colorActive.var
|
|
396
392
|
},
|
|
397
393
|
svg: {
|
|
398
394
|
width: "16px",
|
|
399
395
|
height: "16px",
|
|
400
|
-
fill:
|
|
396
|
+
fill: o.colorFont.var,
|
|
401
397
|
transitionProperty: "transform",
|
|
402
|
-
transitionDuration:
|
|
398
|
+
transitionDuration: "var(--duration-short)"
|
|
403
399
|
},
|
|
404
400
|
".opened svg": {
|
|
405
401
|
transform: "scaleY(-1)"
|
|
@@ -419,15 +415,15 @@ let de = class extends N {
|
|
|
419
415
|
lightChildren: [
|
|
420
416
|
p("e-select-head", {
|
|
421
417
|
lightChildren: [
|
|
422
|
-
|
|
418
|
+
$e({
|
|
423
419
|
"data-value-holder": ""
|
|
424
420
|
})
|
|
425
421
|
]
|
|
426
422
|
}),
|
|
427
423
|
...e.map(
|
|
428
|
-
(a,
|
|
424
|
+
(a, i) => p("e-select-option", {
|
|
429
425
|
lightChildren: a,
|
|
430
|
-
default:
|
|
426
|
+
default: i === 0 ? !0 : null
|
|
431
427
|
})
|
|
432
428
|
)
|
|
433
429
|
]
|
|
@@ -448,35 +444,35 @@ const pt = {
|
|
|
448
444
|
string: j
|
|
449
445
|
};
|
|
450
446
|
var ut = Object.defineProperty, vt = Object.getOwnPropertyDescriptor, gt = (t, e, r, n) => {
|
|
451
|
-
for (var a = n > 1 ? void 0 : n ? vt(e, r) : e,
|
|
452
|
-
(
|
|
447
|
+
for (var a = n > 1 ? void 0 : n ? vt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
448
|
+
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
453
449
|
return n && a && ut(e, r, a), a;
|
|
454
450
|
}, _e = (t, e, r) => {
|
|
455
451
|
if (!e.has(t))
|
|
456
452
|
throw TypeError("Cannot " + r);
|
|
457
|
-
}, h = (t, e, r) => (_e(t, e, "read from private field"), r ? r.call(t) : e.get(t)),
|
|
453
|
+
}, h = (t, e, r) => (_e(t, e, "read from private field"), r ? r.call(t) : e.get(t)), x = (t, e, r) => {
|
|
458
454
|
if (e.has(t))
|
|
459
455
|
throw TypeError("Cannot add the same private member more than once");
|
|
460
456
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
461
|
-
}, k = (t, e, r, n) => (_e(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), u, W,
|
|
457
|
+
}, k = (t, e, r, n) => (_e(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), u, W, F, z, A, V, Y;
|
|
462
458
|
const ft = m({
|
|
463
459
|
":host": {
|
|
464
460
|
display: "grid",
|
|
465
461
|
gridAutoFlow: "column",
|
|
466
462
|
gridTemplateColumns: "0.4fr 1fr",
|
|
467
463
|
alignItems: "center",
|
|
468
|
-
color:
|
|
469
|
-
gap:
|
|
464
|
+
color: o.colorFont.var,
|
|
465
|
+
gap: "var(--gap-medium)"
|
|
470
466
|
},
|
|
471
467
|
":host(.disabled)": {
|
|
472
468
|
pointerEvents: "none",
|
|
473
469
|
opacity: 0.5
|
|
474
470
|
},
|
|
475
471
|
".head": {
|
|
476
|
-
fontSize:
|
|
472
|
+
fontSize: "var(--font-size-medium)",
|
|
477
473
|
display: "flex",
|
|
478
474
|
alignItems: "center",
|
|
479
|
-
gap:
|
|
475
|
+
gap: "var(--gap-extra-small)"
|
|
480
476
|
},
|
|
481
477
|
".head-buttons": {
|
|
482
478
|
display: "flex"
|
|
@@ -488,8 +484,8 @@ const ft = m({
|
|
|
488
484
|
margin: "0",
|
|
489
485
|
border: "none",
|
|
490
486
|
background: "none",
|
|
491
|
-
fill:
|
|
492
|
-
transitionDuration:
|
|
487
|
+
fill: o.colorFont.var,
|
|
488
|
+
transitionDuration: "var(--duration-short)",
|
|
493
489
|
transitionProperty: "fill, opacity",
|
|
494
490
|
opacity: "0"
|
|
495
491
|
},
|
|
@@ -497,7 +493,7 @@ const ft = m({
|
|
|
497
493
|
opacity: "1"
|
|
498
494
|
},
|
|
499
495
|
".head-button:hover": {
|
|
500
|
-
fill:
|
|
496
|
+
fill: o.colorActive.var
|
|
501
497
|
},
|
|
502
498
|
".head-button svg": {
|
|
503
499
|
width: "100%",
|
|
@@ -506,46 +502,46 @@ const ft = m({
|
|
|
506
502
|
});
|
|
507
503
|
let te = class extends fe {
|
|
508
504
|
constructor(t) {
|
|
509
|
-
var r, n, a,
|
|
510
|
-
super(),
|
|
511
|
-
|
|
512
|
-
}),
|
|
513
|
-
h(this,
|
|
505
|
+
var r, n, a, i;
|
|
506
|
+
super(), x(this, u, []), x(this, W, void 0), x(this, F, void 0), x(this, z, !1), x(this, A, void 0), x(this, V, () => {
|
|
507
|
+
P.current.find((s) => h(this, u).includes(s)) || this.remove();
|
|
508
|
+
}), x(this, Y, (s) => {
|
|
509
|
+
h(this, z) && ((s.metaKey || s.ctrlKey) && s.code === "KeyC" ? navigator.clipboard.writeText(h(this, u)[0].current) : (s.metaKey || s.ctrlKey) && s.code === "KeyR" && (h(this, u).forEach((b) => {
|
|
514
510
|
b.reset();
|
|
515
|
-
}),
|
|
516
|
-
}), k(this, u, [t.store]), k(this, W, t.store.passport.name), k(this,
|
|
511
|
+
}), s.preventDefault()));
|
|
512
|
+
}), k(this, u, [t.store]), k(this, W, t.store.passport.name), k(this, F, h(this, W).split(".").slice(-1).toString());
|
|
517
513
|
const e = ((n = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : n.type) || "string";
|
|
518
|
-
k(this,
|
|
514
|
+
k(this, A, new pt[e](h(this, u)[0])), this.openShadow(ft), p(this, {
|
|
519
515
|
class: {
|
|
520
|
-
disabled: ((
|
|
516
|
+
disabled: ((i = (a = t.store.passport) == null ? void 0 : a.manager) == null ? void 0 : i.disabled) || !1
|
|
521
517
|
},
|
|
522
518
|
onPointerleave: () => {
|
|
523
|
-
k(this,
|
|
519
|
+
k(this, z, !1);
|
|
524
520
|
},
|
|
525
521
|
onPointerenter: () => {
|
|
526
|
-
k(this,
|
|
522
|
+
k(this, z, !0);
|
|
527
523
|
},
|
|
528
524
|
children: [
|
|
529
525
|
w({
|
|
530
526
|
class: "head",
|
|
531
527
|
children: [
|
|
532
|
-
w({ class: "name", children: h(this,
|
|
528
|
+
w({ class: "name", children: h(this, F) + ":" }),
|
|
533
529
|
w({
|
|
534
530
|
class: "head-buttons",
|
|
535
531
|
children: [
|
|
536
|
-
|
|
532
|
+
I({
|
|
537
533
|
class: "head-button",
|
|
538
534
|
children: me,
|
|
539
535
|
onClick: () => {
|
|
540
536
|
navigator.clipboard.writeText(h(this, u)[0].current);
|
|
541
537
|
}
|
|
542
538
|
}),
|
|
543
|
-
|
|
539
|
+
I({
|
|
544
540
|
class: "head-button",
|
|
545
541
|
children: we,
|
|
546
542
|
onClick: () => {
|
|
547
|
-
h(this, u).forEach((
|
|
548
|
-
|
|
543
|
+
h(this, u).forEach((s) => {
|
|
544
|
+
s.reset();
|
|
549
545
|
});
|
|
550
546
|
}
|
|
551
547
|
})
|
|
@@ -553,7 +549,7 @@ let te = class extends fe {
|
|
|
553
549
|
})
|
|
554
550
|
]
|
|
555
551
|
}),
|
|
556
|
-
h(this,
|
|
552
|
+
h(this, A)
|
|
557
553
|
]
|
|
558
554
|
});
|
|
559
555
|
}
|
|
@@ -561,99 +557,99 @@ let te = class extends fe {
|
|
|
561
557
|
return h(this, W);
|
|
562
558
|
}
|
|
563
559
|
get name() {
|
|
564
|
-
return h(this,
|
|
560
|
+
return h(this, F);
|
|
565
561
|
}
|
|
566
562
|
get stores() {
|
|
567
563
|
return h(this, u);
|
|
568
564
|
}
|
|
569
565
|
addStore(t) {
|
|
570
|
-
h(this,
|
|
566
|
+
h(this, A).addStore(t);
|
|
571
567
|
}
|
|
572
568
|
connectedCallback() {
|
|
573
|
-
|
|
569
|
+
P.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), Re(this);
|
|
574
570
|
}
|
|
575
571
|
disconnectedCallback() {
|
|
576
|
-
|
|
572
|
+
P.unsubscribe(h(this, V)), removeEventListener("keydown", h(this, Y));
|
|
577
573
|
}
|
|
578
574
|
};
|
|
579
575
|
u = /* @__PURE__ */ new WeakMap();
|
|
580
576
|
W = /* @__PURE__ */ new WeakMap();
|
|
581
|
-
L = /* @__PURE__ */ new WeakMap();
|
|
582
|
-
I = /* @__PURE__ */ new WeakMap();
|
|
583
577
|
F = /* @__PURE__ */ new WeakMap();
|
|
578
|
+
z = /* @__PURE__ */ new WeakMap();
|
|
579
|
+
A = /* @__PURE__ */ new WeakMap();
|
|
584
580
|
V = /* @__PURE__ */ new WeakMap();
|
|
585
581
|
Y = /* @__PURE__ */ new WeakMap();
|
|
586
582
|
te = gt([
|
|
587
583
|
f("e-tweaker-field")
|
|
588
584
|
], te);
|
|
589
585
|
var wt = Object.defineProperty, mt = Object.getOwnPropertyDescriptor, bt = (t, e, r, n) => {
|
|
590
|
-
for (var a = n > 1 ? void 0 : n ? mt(e, r) : e,
|
|
591
|
-
(
|
|
586
|
+
for (var a = n > 1 ? void 0 : n ? mt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
587
|
+
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
592
588
|
return n && a && wt(e, r, a), a;
|
|
593
|
-
},
|
|
589
|
+
}, ye = (t, e, r) => {
|
|
594
590
|
if (!e.has(t))
|
|
595
591
|
throw TypeError("Cannot " + r);
|
|
596
|
-
}, l = (t, e, r) => (
|
|
592
|
+
}, l = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => {
|
|
597
593
|
if (e.has(t))
|
|
598
594
|
throw TypeError("Cannot add the same private member more than once");
|
|
599
595
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
600
|
-
},
|
|
596
|
+
}, se = (t, e, r, n) => (ye(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), v, B, c, q, Q, pe;
|
|
601
597
|
const _t = m({
|
|
602
598
|
".wrapper": {
|
|
603
599
|
boxSizing: "border-box",
|
|
604
600
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
605
|
-
borderRadius:
|
|
601
|
+
borderRadius: o.borderRadius.var
|
|
606
602
|
},
|
|
607
603
|
".head": {
|
|
608
604
|
boxSizing: "border-box",
|
|
609
605
|
width: "100%",
|
|
610
|
-
height:
|
|
611
|
-
paddingLeft:
|
|
612
|
-
paddingRight:
|
|
606
|
+
height: "var(--tweaker-folder-height)",
|
|
607
|
+
paddingLeft: "var(--gap-medium)",
|
|
608
|
+
paddingRight: "var(--gap-medium)",
|
|
613
609
|
display: "flex",
|
|
614
610
|
alignItems: "center",
|
|
615
611
|
justifyContent: "space-between",
|
|
616
|
-
backgroundColor:
|
|
617
|
-
borderRadius:
|
|
612
|
+
backgroundColor: o.colorMainAux.var,
|
|
613
|
+
borderRadius: o.borderRadius.var
|
|
618
614
|
},
|
|
619
615
|
".name": {
|
|
620
|
-
fontSize:
|
|
621
|
-
color:
|
|
616
|
+
fontSize: "var(--font-size-large)",
|
|
617
|
+
color: o.colorFont.var
|
|
622
618
|
},
|
|
623
619
|
".body": {
|
|
624
620
|
transitionProperty: "height",
|
|
625
|
-
transitionDuration:
|
|
621
|
+
transitionDuration: "var(--duration-short)",
|
|
626
622
|
overflow: "hidden",
|
|
627
623
|
height: "0px"
|
|
628
624
|
},
|
|
629
625
|
".body-content": {
|
|
630
626
|
boxSizing: "border-box",
|
|
631
|
-
padding:
|
|
627
|
+
padding: "var(--gap-large)",
|
|
632
628
|
display: "grid",
|
|
633
|
-
gap:
|
|
629
|
+
gap: "var(--gap-medium)"
|
|
634
630
|
},
|
|
635
631
|
".arrow": {
|
|
636
632
|
width: "20px",
|
|
637
633
|
height: "20px",
|
|
638
|
-
fill:
|
|
639
|
-
transition:
|
|
634
|
+
fill: o.colorFont.var,
|
|
635
|
+
transition: "transform var(--duration-short)"
|
|
640
636
|
},
|
|
641
637
|
".opened .arrow": {
|
|
642
638
|
transform: "scaleY(-1)"
|
|
643
639
|
}
|
|
644
640
|
});
|
|
645
|
-
let
|
|
641
|
+
let L = class extends Te {
|
|
646
642
|
constructor(t) {
|
|
647
|
-
super(),
|
|
643
|
+
super(), C(this, v, void 0), C(this, B, new ie(null)), C(this, c, new ie([])), C(this, q, void 0), C(this, Q, null), C(this, pe, (e) => {
|
|
648
644
|
let r = [], n = [];
|
|
649
645
|
e.forEach((a) => {
|
|
650
646
|
r = [...r, ...a.removedNodes], n = [...n, ...a.addedNodes];
|
|
651
647
|
}), l(this, c).current = l(this, c).current.filter(
|
|
652
648
|
(a) => !r.includes(a)
|
|
653
649
|
), l(this, v) && !l(this, c).current.length && !n.length && this.remove();
|
|
654
|
-
}), this.openShadow(_t),
|
|
650
|
+
}), this.openShadow(_t), se(this, v, t.key), se(this, q, new MutationObserver(l(this, pe))), p(this, {
|
|
655
651
|
onAccordionItemToggle: (e) => {
|
|
656
|
-
e.stopPropagation(), e.detail.opened ?
|
|
652
|
+
e.stopPropagation(), e.detail.opened ? $.openPanel(l(this, v)) : $.closePanel(l(this, v));
|
|
657
653
|
},
|
|
658
654
|
children: [
|
|
659
655
|
w({
|
|
@@ -667,7 +663,7 @@ let z = class extends Ee {
|
|
|
667
663
|
children: [l(this, v).split(".").slice(-1).toString()]
|
|
668
664
|
}) : null,
|
|
669
665
|
l(this, B),
|
|
670
|
-
p(
|
|
666
|
+
p(Ee, {
|
|
671
667
|
class: "arrow"
|
|
672
668
|
})
|
|
673
669
|
]
|
|
@@ -677,7 +673,7 @@ let z = class extends Ee {
|
|
|
677
673
|
children: w({
|
|
678
674
|
class: "body-content",
|
|
679
675
|
children: l(this, c),
|
|
680
|
-
ref: (e) =>
|
|
676
|
+
ref: (e) => se(this, Q, e.firstElementChild)
|
|
681
677
|
})
|
|
682
678
|
})
|
|
683
679
|
]
|
|
@@ -696,20 +692,20 @@ let z = class extends Ee {
|
|
|
696
692
|
}
|
|
697
693
|
connectedCallback() {
|
|
698
694
|
super.connectedCallback(), setTimeout(() => {
|
|
699
|
-
|
|
695
|
+
$.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
|
|
700
696
|
}, 50), l(this, q).observe(l(this, Q), {
|
|
701
697
|
childList: !0
|
|
702
698
|
});
|
|
703
699
|
}
|
|
704
700
|
handleStore(t) {
|
|
705
701
|
if (t.remainingFolders.length) {
|
|
706
|
-
const r = t.store.passport.name.split("."), n = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, c).current.find((
|
|
707
|
-
a instanceof
|
|
702
|
+
const r = t.store.passport.name.split("."), n = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, c).current.find((i) => i.key === n);
|
|
703
|
+
a instanceof L ? a.handleStore({
|
|
708
704
|
store: t.store,
|
|
709
705
|
remainingFolders: t.remainingFolders.slice(1)
|
|
710
706
|
}) : l(this, c).current = [
|
|
711
707
|
...l(this, c).current,
|
|
712
|
-
new
|
|
708
|
+
new L({
|
|
713
709
|
key: n,
|
|
714
710
|
storeBox: {
|
|
715
711
|
store: t.store,
|
|
@@ -736,13 +732,13 @@ c = /* @__PURE__ */ new WeakMap();
|
|
|
736
732
|
q = /* @__PURE__ */ new WeakMap();
|
|
737
733
|
Q = /* @__PURE__ */ new WeakMap();
|
|
738
734
|
pe = /* @__PURE__ */ new WeakMap();
|
|
739
|
-
|
|
735
|
+
L = bt([
|
|
740
736
|
f("e-tweaker-folder")
|
|
741
|
-
],
|
|
742
|
-
var
|
|
743
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
744
|
-
(
|
|
745
|
-
return n && a &&
|
|
737
|
+
], L);
|
|
738
|
+
var yt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, xt = (t, e, r, n) => {
|
|
739
|
+
for (var a = n > 1 ? void 0 : n ? St(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
740
|
+
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
741
|
+
return n && a && yt(e, r, a), a;
|
|
746
742
|
}, kt = (t, e, r) => {
|
|
747
743
|
if (!e.has(t))
|
|
748
744
|
throw TypeError("Cannot " + r);
|
|
@@ -751,15 +747,27 @@ var St = Object.defineProperty, yt = Object.getOwnPropertyDescriptor, Ct = (t, e
|
|
|
751
747
|
throw TypeError("Cannot add the same private member more than once");
|
|
752
748
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
753
749
|
}, U, X;
|
|
754
|
-
const
|
|
750
|
+
const Ct = m({
|
|
755
751
|
":host": {
|
|
752
|
+
"--tweaker-width": "500px",
|
|
753
|
+
"--tweaker-offset": "20px",
|
|
754
|
+
"--tweaker-folder-height": "40px",
|
|
755
|
+
"--height-input": "30px",
|
|
756
|
+
"--gap-large": "16px",
|
|
757
|
+
"--gap-medium": "12px",
|
|
758
|
+
"--gap-small": "8px",
|
|
759
|
+
"--gap-extra-small": "4px",
|
|
760
|
+
"--font-size-large": "20px",
|
|
761
|
+
"--font-size-medium": "16px",
|
|
762
|
+
"--font-size-small": "14px",
|
|
763
|
+
"--duration-short": "0.2s",
|
|
756
764
|
fontFamily: "sans-serif",
|
|
757
765
|
position: "absolute",
|
|
758
|
-
top:
|
|
759
|
-
right:
|
|
760
|
-
width:
|
|
761
|
-
backgroundColor:
|
|
762
|
-
borderRadius:
|
|
766
|
+
top: "var(--tweaker-offset)",
|
|
767
|
+
right: "var(--tweaker-offset)",
|
|
768
|
+
width: "var(--tweaker-width)",
|
|
769
|
+
backgroundColor: o.colorMain.var,
|
|
770
|
+
borderRadius: o.borderRadius.var,
|
|
763
771
|
transition: "opacity 0.2s",
|
|
764
772
|
zIndex: "100",
|
|
765
773
|
opacity: "0.1"
|
|
@@ -770,7 +778,7 @@ const xt = m({
|
|
|
770
778
|
".tweaker-buttons": {
|
|
771
779
|
display: "flex",
|
|
772
780
|
alignItems: "center",
|
|
773
|
-
gap:
|
|
781
|
+
gap: "var(--gap-extra-small)"
|
|
774
782
|
},
|
|
775
783
|
".tweaker-button": {
|
|
776
784
|
width: "18px",
|
|
@@ -779,12 +787,12 @@ const xt = m({
|
|
|
779
787
|
margin: "0",
|
|
780
788
|
background: "none",
|
|
781
789
|
border: "none",
|
|
782
|
-
fill:
|
|
790
|
+
fill: o.colorFont.var,
|
|
783
791
|
transitionProperty: "fill",
|
|
784
|
-
transitionDuration:
|
|
792
|
+
transitionDuration: "var(--duration-short)"
|
|
785
793
|
},
|
|
786
794
|
".tweaker-button:hover": {
|
|
787
|
-
fill:
|
|
795
|
+
fill: o.colorActive.var
|
|
788
796
|
},
|
|
789
797
|
".tweaker-button svg": {
|
|
790
798
|
width: "100%",
|
|
@@ -794,8 +802,8 @@ const xt = m({
|
|
|
794
802
|
maxHeight: `calc(
|
|
795
803
|
100dvh -
|
|
796
804
|
(
|
|
797
|
-
|
|
798
|
-
|
|
805
|
+
var(--tweaker-offset) * 2 +
|
|
806
|
+
var(--tweaker-folder-height)
|
|
799
807
|
)
|
|
800
808
|
)`,
|
|
801
809
|
overflow: "hidden auto",
|
|
@@ -817,19 +825,19 @@ const xt = m({
|
|
|
817
825
|
":host .body-content": {
|
|
818
826
|
maxHeight: `calc(
|
|
819
827
|
100dvh -
|
|
820
|
-
|
|
828
|
+
var(--tweaker-folder-height)
|
|
821
829
|
)`
|
|
822
830
|
}
|
|
823
831
|
}
|
|
824
832
|
});
|
|
825
|
-
let ue = class extends
|
|
833
|
+
let ue = class extends L {
|
|
826
834
|
constructor() {
|
|
827
835
|
super({
|
|
828
836
|
key: ""
|
|
829
837
|
}), ge(this, U, () => {
|
|
830
|
-
|
|
831
|
-
}), ge(this, X,
|
|
832
|
-
|
|
838
|
+
$.save();
|
|
839
|
+
}), ge(this, X, Ce(() => {
|
|
840
|
+
P.current.forEach((t) => {
|
|
833
841
|
if (t.passport) {
|
|
834
842
|
const e = t.passport.name.split(".");
|
|
835
843
|
this.handleStore({
|
|
@@ -838,43 +846,43 @@ let ue = class extends z {
|
|
|
838
846
|
});
|
|
839
847
|
}
|
|
840
848
|
});
|
|
841
|
-
}, 10)),
|
|
849
|
+
}, 10)), $.load(), this.addStylesheet(Ct), this.head.current = [
|
|
842
850
|
w({
|
|
843
851
|
class: "tweaker-buttons",
|
|
844
852
|
onClick: (t) => {
|
|
845
853
|
t.stopPropagation();
|
|
846
854
|
},
|
|
847
855
|
children: [
|
|
848
|
-
|
|
856
|
+
I({
|
|
849
857
|
class: "tweaker-button",
|
|
850
858
|
children: we,
|
|
851
859
|
onClick: () => {
|
|
852
|
-
|
|
860
|
+
y.resetState();
|
|
853
861
|
}
|
|
854
862
|
}),
|
|
855
|
-
|
|
863
|
+
I({
|
|
856
864
|
class: ["tweaker-button"],
|
|
857
865
|
children: [me],
|
|
858
866
|
onClick: () => {
|
|
859
867
|
navigator.clipboard.writeText(
|
|
860
|
-
JSON.stringify(
|
|
868
|
+
JSON.stringify(y.getState())
|
|
861
869
|
);
|
|
862
870
|
}
|
|
863
871
|
}),
|
|
864
|
-
|
|
872
|
+
I({
|
|
865
873
|
class: "tweaker-button",
|
|
866
874
|
children: We,
|
|
867
875
|
onClick: () => {
|
|
868
876
|
ke(
|
|
869
|
-
|
|
870
|
-
|
|
877
|
+
y.projectName,
|
|
878
|
+
y.getState()
|
|
871
879
|
);
|
|
872
880
|
}
|
|
873
881
|
}),
|
|
874
882
|
Oe({
|
|
875
883
|
class: "tweaker-button",
|
|
876
884
|
children: [
|
|
877
|
-
|
|
885
|
+
Fe,
|
|
878
886
|
re({
|
|
879
887
|
type: "file",
|
|
880
888
|
style: {
|
|
@@ -885,10 +893,10 @@ let ue = class extends z {
|
|
|
885
893
|
const r = (n = t.currentTarget.files) == null ? void 0 : n[0];
|
|
886
894
|
if (r) {
|
|
887
895
|
const a = new FileReader();
|
|
888
|
-
a.onload = (
|
|
889
|
-
var b,
|
|
890
|
-
const
|
|
891
|
-
|
|
896
|
+
a.onload = (i) => {
|
|
897
|
+
var b, Z;
|
|
898
|
+
const s = (Z = (b = i.target) == null ? void 0 : b.result) == null ? void 0 : Z.toString();
|
|
899
|
+
s && y.loadState(s);
|
|
892
900
|
}, a.readAsText(r);
|
|
893
901
|
}
|
|
894
902
|
}
|
|
@@ -902,15 +910,15 @@ let ue = class extends z {
|
|
|
902
910
|
});
|
|
903
911
|
}
|
|
904
912
|
connectedCallback() {
|
|
905
|
-
super.connectedCallback(), window.addEventListener("beforeunload", G(this, U)),
|
|
913
|
+
super.connectedCallback(), window.addEventListener("beforeunload", G(this, U)), P.subscribe(G(this, X));
|
|
906
914
|
}
|
|
907
915
|
disconnectedCallback() {
|
|
908
|
-
super.disconnectedCallback(), window.removeEventListener("beforeunload", G(this, U)),
|
|
916
|
+
super.disconnectedCallback(), window.removeEventListener("beforeunload", G(this, U)), $.save(), P.unsubscribe(G(this, X));
|
|
909
917
|
}
|
|
910
918
|
};
|
|
911
919
|
U = /* @__PURE__ */ new WeakMap();
|
|
912
920
|
X = /* @__PURE__ */ new WeakMap();
|
|
913
|
-
ue =
|
|
921
|
+
ue = xt([
|
|
914
922
|
f("e-tweaker")
|
|
915
923
|
], ue);
|
|
916
|
-
|
|
924
|
+
xe && document.body.appendChild(new ue());
|