aptechka 0.4.5 → 0.4.7
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/en3/core/en3.d.ts +1 -1
- package/lib/en3/index.cjs +6 -6
- package/lib/en3/index.js +358 -358
- package/lib/gestures-D2Fdra_G.js +11 -0
- package/lib/gestures-DHLrn6Q8.cjs +1 -0
- package/lib/router/index.js +1 -3
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +120 -122
- package/lib/{studio/tweaker → tweaker}/TweakerBooleanManagerElement.d.ts +1 -1
- package/lib/{studio/tweaker → tweaker}/TweakerColorManagerElement.d.ts +1 -1
- package/lib/{studio/tweaker → tweaker}/TweakerElement.d.ts +1 -1
- package/lib/{studio/tweaker → tweaker}/TweakerFieldElement.d.ts +4 -4
- package/lib/{studio/tweaker → tweaker}/TweakerFolderElement.d.ts +4 -4
- package/lib/{studio/tweaker → tweaker}/TweakerLinkManagerElement.d.ts +1 -1
- package/lib/{studio/tweaker → tweaker}/TweakerNumberManagerElement.d.ts +1 -1
- package/lib/{studio/tweaker → tweaker}/TweakerRangeManagerElement.d.ts +1 -1
- package/lib/{studio/tweaker → tweaker}/TweakerSelectManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +11 -0
- package/lib/{studio/tweaker → tweaker}/TweakerStringManagerElement.d.ts +1 -1
- package/lib/tweaker/index.cjs +10 -0
- package/lib/tweaker/index.d.ts +1 -0
- package/lib/{studio → tweaker}/index.js +293 -330
- package/lib/{studio/tweaker → tweaker}/tweakerManagerConstructors.d.ts +1 -1
- package/lib/{studio/studioStorage.d.ts → tweaker/tweakerStorage.d.ts} +3 -3
- package/lib/utils/gestures.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +51 -49
- package/package.json +9 -9
- package/lib/studio/StudioElement.d.ts +0 -13
- package/lib/studio/index.cjs +0 -10
- package/lib/studio/index.d.ts +0 -1
- package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +0 -11
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ve = (t, e, r) => {
|
|
2
2
|
if (!e.has(t))
|
|
3
3
|
throw TypeError("Cannot " + r);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
5
|
+
var d = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Z = (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
|
-
}, M = (t, e, r, n) => (
|
|
10
|
-
import { i as
|
|
11
|
-
import { CustomElement as
|
|
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 Ce } from "../browser-0zX67oeU.js";
|
|
11
|
+
import { CustomElement as fe, define as f } from "../custom-element/index.js";
|
|
12
12
|
import { s as S, S as se, a as $ } from "../Store-BQXXikps.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { a as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
13
|
+
import { c as ke } from "../file-lxi_oXJf.js";
|
|
14
|
+
import { d as xe } from "../function-C10DGppn.js";
|
|
15
|
+
import { e as p, a0 as re, a as $e, aB as Pe, D as w, p as A, a3 as Oe } from "../tags-CAxO5Rs3.js";
|
|
16
|
+
import { c as m } from "../createStylesheet-DrkbCUJk.js";
|
|
17
|
+
import { a as Me } from "../Viewport-wlgZaIn7.js";
|
|
18
|
+
import { aptechkaTheme as s } from "../theme/index.js";
|
|
19
|
+
import { AccordionElement as Ee } from "../accordion/index.js";
|
|
20
|
+
import { a as Te } from "../index-BigQay-N.js";
|
|
21
|
+
import { d as De } from "../events-_C2CztxR.js";
|
|
21
22
|
import "../checkbox/index.js";
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class Fe {
|
|
23
|
+
import { c as Re } 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>', Le = '<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
|
+
var O, g;
|
|
26
|
+
class Ie {
|
|
27
27
|
constructor() {
|
|
28
28
|
Z(this, O, "");
|
|
29
|
-
Z(this,
|
|
29
|
+
Z(this, g, []);
|
|
30
30
|
M(this, O, S.projectName + "-studio");
|
|
31
31
|
}
|
|
32
32
|
openPanel(e) {
|
|
33
|
-
|
|
33
|
+
d(this, g).includes(e) || d(this, g).push(e);
|
|
34
34
|
}
|
|
35
35
|
closePanel(e) {
|
|
36
|
-
M(this,
|
|
36
|
+
M(this, g, d(this, g).filter((r) => r !== e));
|
|
37
37
|
}
|
|
38
38
|
isPanelOpened(e) {
|
|
39
|
-
return
|
|
39
|
+
return d(this, g).includes(e);
|
|
40
40
|
}
|
|
41
41
|
save() {
|
|
42
42
|
const e = {
|
|
43
|
-
openedPanels:
|
|
43
|
+
openedPanels: d(this, g)
|
|
44
44
|
};
|
|
45
|
-
localStorage.setItem(
|
|
45
|
+
localStorage.setItem(d(this, O), JSON.stringify(e)), S.saveState();
|
|
46
46
|
}
|
|
47
47
|
load() {
|
|
48
48
|
S.loadState();
|
|
49
|
-
const e = localStorage.getItem(
|
|
49
|
+
const e = localStorage.getItem(d(this, O));
|
|
50
50
|
if (e)
|
|
51
51
|
try {
|
|
52
52
|
const r = JSON.parse(e);
|
|
53
|
-
r.openedPanels && M(this,
|
|
53
|
+
r.openedPanels && M(this, g, r.openedPanels);
|
|
54
54
|
} catch (r) {
|
|
55
55
|
console.error(r);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
O = new WeakMap(),
|
|
60
|
-
const P = new
|
|
59
|
+
O = new WeakMap(), g = new WeakMap();
|
|
60
|
+
const P = new Ie();
|
|
61
61
|
var y;
|
|
62
|
-
class N extends
|
|
62
|
+
class N extends fe {
|
|
63
63
|
constructor(...r) {
|
|
64
64
|
super();
|
|
65
65
|
Z(this, y, void 0);
|
|
66
66
|
M(this, y, r);
|
|
67
67
|
}
|
|
68
68
|
addStore(r) {
|
|
69
|
-
|
|
69
|
+
d(this, y).push(r);
|
|
70
70
|
}
|
|
71
71
|
get firstStore() {
|
|
72
|
-
return
|
|
72
|
+
return d(this, y)[0];
|
|
73
73
|
}
|
|
74
74
|
get stores() {
|
|
75
|
-
return
|
|
75
|
+
return d(this, y);
|
|
76
76
|
}
|
|
77
77
|
updateStores(r) {
|
|
78
|
-
|
|
78
|
+
d(this, y).forEach((n) => {
|
|
79
79
|
n.current = r;
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
y = new WeakMap();
|
|
84
|
-
var
|
|
85
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
86
|
-
(
|
|
87
|
-
return n && a &&
|
|
84
|
+
var Fe = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, ze = (t, e, r, n) => {
|
|
85
|
+
for (var a = n > 1 ? void 0 : n ? Ae(e, r) : e, o = t.length - 1, i; o >= 0; o--)
|
|
86
|
+
(i = t[o]) && (a = (n ? i(e, r, a) : i(a)) || a);
|
|
87
|
+
return n && a && Fe(e, r, a), a;
|
|
88
88
|
};
|
|
89
|
-
const
|
|
89
|
+
const Ne = m({
|
|
90
90
|
":host": {
|
|
91
91
|
width: "100%",
|
|
92
92
|
display: "inline-flex",
|
|
@@ -95,18 +95,18 @@ const He = w({
|
|
|
95
95
|
input: {
|
|
96
96
|
padding: "0",
|
|
97
97
|
margin: "0",
|
|
98
|
-
width: `calc(${
|
|
99
|
-
height: `calc(${
|
|
100
|
-
borderRadius:
|
|
98
|
+
width: `calc(${s.heightInput.var} * 0.5)`,
|
|
99
|
+
height: `calc(${s.heightInput.var} * 0.5)`,
|
|
100
|
+
borderRadius: s.borderRadius.var,
|
|
101
101
|
overflow: "hidden",
|
|
102
|
-
accentColor:
|
|
102
|
+
accentColor: s.colorLight.var
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
|
-
let
|
|
105
|
+
let oe = class extends N {
|
|
106
106
|
constructor(...t) {
|
|
107
|
-
super(...t), this.openShadow(
|
|
107
|
+
super(...t), this.openShadow(Ne), p(this, {
|
|
108
108
|
children: [
|
|
109
|
-
|
|
109
|
+
p("e-checkbox", {
|
|
110
110
|
onChange: (e) => {
|
|
111
111
|
this.updateStores(e.currentTarget.checked);
|
|
112
112
|
},
|
|
@@ -120,15 +120,15 @@ let ie = class extends N {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
],
|
|
126
|
-
var
|
|
127
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
128
|
-
(
|
|
129
|
-
return n && a &&
|
|
123
|
+
oe = ze([
|
|
124
|
+
f("e-tweaker-boolean-manager")
|
|
125
|
+
], oe);
|
|
126
|
+
var He = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, Ke = (t, e, r, n) => {
|
|
127
|
+
for (var a = n > 1 ? void 0 : n ? Ze(e, r) : e, o = t.length - 1, i; o >= 0; o--)
|
|
128
|
+
(i = t[o]) && (a = (n ? i(e, r, a) : i(a)) || a);
|
|
129
|
+
return n && a && He(e, r, a), a;
|
|
130
130
|
};
|
|
131
|
-
const
|
|
131
|
+
const Ge = m({
|
|
132
132
|
":host": {
|
|
133
133
|
width: "100%",
|
|
134
134
|
display: "inline-flex",
|
|
@@ -136,10 +136,10 @@ const Je = w({
|
|
|
136
136
|
},
|
|
137
137
|
input: {
|
|
138
138
|
width: "100%",
|
|
139
|
-
height:
|
|
139
|
+
height: s.heightInput.var,
|
|
140
140
|
padding: "0",
|
|
141
141
|
background: "none",
|
|
142
|
-
borderRadius:
|
|
142
|
+
borderRadius: s.borderRadius.var,
|
|
143
143
|
border: "none",
|
|
144
144
|
blockSize: "unset"
|
|
145
145
|
},
|
|
@@ -147,15 +147,15 @@ const Je = w({
|
|
|
147
147
|
boxSizing: "border-box",
|
|
148
148
|
padding: "0px",
|
|
149
149
|
border: "none",
|
|
150
|
-
borderRadius:
|
|
151
|
-
height: `calc(${
|
|
150
|
+
borderRadius: s.borderRadius.var,
|
|
151
|
+
height: `calc(${s.heightInput.var} * 0.93)`
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
let
|
|
154
|
+
let le = class extends N {
|
|
155
155
|
constructor(...t) {
|
|
156
|
-
super(...t), this.openShadow(
|
|
156
|
+
super(...t), this.openShadow(Ge), p(this, {
|
|
157
157
|
children: [
|
|
158
|
-
|
|
158
|
+
re({
|
|
159
159
|
type: "color",
|
|
160
160
|
value: this.firstStore,
|
|
161
161
|
onInput: (e) => {
|
|
@@ -166,25 +166,25 @@ let oe = class extends N {
|
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
],
|
|
172
|
-
var
|
|
173
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
174
|
-
(
|
|
175
|
-
return n && a &&
|
|
169
|
+
le = Ke([
|
|
170
|
+
f("e-tweaker-color-manager")
|
|
171
|
+
], le);
|
|
172
|
+
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, o = t.length - 1, i; o >= 0; o--)
|
|
174
|
+
(i = t[o]) && (a = (n ? i(e, r, a) : i(a)) || a);
|
|
175
|
+
return n && a && Je(e, r, a), a;
|
|
176
176
|
};
|
|
177
|
-
const
|
|
177
|
+
const Be = m({
|
|
178
178
|
a: {
|
|
179
179
|
color: "inherit"
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
|
-
let
|
|
182
|
+
let he = class extends N {
|
|
183
183
|
constructor(...t) {
|
|
184
184
|
var e, r;
|
|
185
|
-
super(...t), this.openShadow(
|
|
185
|
+
super(...t), this.openShadow(Be), p(this, {
|
|
186
186
|
children: [
|
|
187
|
-
|
|
187
|
+
$e({
|
|
188
188
|
href: this.firstStore,
|
|
189
189
|
target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank",
|
|
190
190
|
children: this.firstStore
|
|
@@ -193,22 +193,22 @@ let le = class extends N {
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
],
|
|
199
|
-
var
|
|
200
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
201
|
-
(
|
|
202
|
-
return n && a &&
|
|
203
|
-
},
|
|
196
|
+
he = Ye([
|
|
197
|
+
f("e-tweaker-link-manager")
|
|
198
|
+
], he);
|
|
199
|
+
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, o = t.length - 1, i; o >= 0; o--)
|
|
201
|
+
(i = t[o]) && (a = (n ? i(e, r, a) : i(a)) || a);
|
|
202
|
+
return n && a && qe(e, r, a), a;
|
|
203
|
+
}, Xe = (t, e, r) => {
|
|
204
204
|
if (!e.has(t))
|
|
205
205
|
throw TypeError("Cannot " + r);
|
|
206
|
-
},
|
|
206
|
+
}, ae = (t, e, r) => (Xe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), je = (t, e, r) => {
|
|
207
207
|
if (e.has(t))
|
|
208
208
|
throw TypeError("Cannot add the same private member more than once");
|
|
209
209
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
210
210
|
}, E;
|
|
211
|
-
const
|
|
211
|
+
const et = m({
|
|
212
212
|
":host": {
|
|
213
213
|
width: "100%",
|
|
214
214
|
display: "flex",
|
|
@@ -221,22 +221,22 @@ const tt = w({
|
|
|
221
221
|
fontFamily: "inherit",
|
|
222
222
|
color: "inherit",
|
|
223
223
|
border: "none",
|
|
224
|
-
fontSize:
|
|
224
|
+
fontSize: s.fontSizeSmall.var
|
|
225
225
|
},
|
|
226
226
|
".text-input": {
|
|
227
|
-
height:
|
|
227
|
+
height: s.heightInput.var,
|
|
228
228
|
width: "100%",
|
|
229
229
|
margin: "0",
|
|
230
|
-
padding: `0 ${
|
|
230
|
+
padding: `0 ${s.gapSmall.var}`,
|
|
231
231
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
232
|
-
borderRadius:
|
|
232
|
+
borderRadius: s.borderRadius.var
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
|
-
let
|
|
235
|
+
let j = class extends N {
|
|
236
236
|
constructor(...t) {
|
|
237
|
-
super(...t),
|
|
237
|
+
super(...t), je(this, E, new se([])), this.openShadow(et), p(this, {
|
|
238
238
|
children: [
|
|
239
|
-
|
|
239
|
+
re({
|
|
240
240
|
class: "text-input",
|
|
241
241
|
type: "string",
|
|
242
242
|
value: this.firstStore,
|
|
@@ -246,78 +246,78 @@ let X = class extends N {
|
|
|
246
246
|
);
|
|
247
247
|
}
|
|
248
248
|
}),
|
|
249
|
-
|
|
249
|
+
ae(this, E)
|
|
250
250
|
]
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
appendContent(t) {
|
|
254
|
-
|
|
254
|
+
ae(this, E).current = [...ae(this, E).current, t];
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
257
|
E = /* @__PURE__ */ new WeakMap();
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
],
|
|
261
|
-
var
|
|
262
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
263
|
-
(
|
|
264
|
-
return n && a &&
|
|
258
|
+
j = Ue([
|
|
259
|
+
f("e-tweaker-string-manager")
|
|
260
|
+
], j);
|
|
261
|
+
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, o = t.length - 1, i; o >= 0; o--)
|
|
263
|
+
(i = t[o]) && (a = (n ? i(e, r, a) : i(a)) || a);
|
|
264
|
+
return n && a && tt(e, r, a), a;
|
|
265
265
|
}, be = (t, e, r) => {
|
|
266
266
|
if (!e.has(t))
|
|
267
267
|
throw TypeError("Cannot " + r);
|
|
268
|
-
},
|
|
268
|
+
}, _ = (t, e, r) => (be(t, e, "read from private field"), r ? r.call(t) : e.get(t)), K = (t, e, r) => {
|
|
269
269
|
if (e.has(t))
|
|
270
270
|
throw TypeError("Cannot add the same private member more than once");
|
|
271
271
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
272
|
-
},
|
|
273
|
-
let
|
|
272
|
+
}, ne = (t, e, r, n) => (be(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), T, D, R, J;
|
|
273
|
+
let ee = class extends j {
|
|
274
274
|
constructor(...t) {
|
|
275
|
-
var e, r, n, a, o,
|
|
276
|
-
super(...t),
|
|
277
|
-
const H = typeof
|
|
278
|
-
return this.toFixed(
|
|
279
|
-
}),
|
|
275
|
+
var e, r, n, a, o, i;
|
|
276
|
+
super(...t), K(this, T, void 0), K(this, D, void 0), K(this, R, void 0), K(this, J, (b) => {
|
|
277
|
+
const H = typeof b == "string" ? parseFloat(b) || this.min : b, ye = Re(H, _(this, D), _(this, R));
|
|
278
|
+
return this.toFixed(ye);
|
|
279
|
+
}), ne(this, D, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), ne(this, R, ((a = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : a.max) || 1), ne(this, T, ((i = (o = this.firstStore.passport) == null ? void 0 : o.manager) == null ? void 0 : i.step) || 0.01);
|
|
280
280
|
}
|
|
281
281
|
get min() {
|
|
282
|
-
return
|
|
282
|
+
return _(this, D);
|
|
283
283
|
}
|
|
284
284
|
get max() {
|
|
285
|
-
return
|
|
285
|
+
return _(this, R);
|
|
286
286
|
}
|
|
287
287
|
get step() {
|
|
288
|
-
return
|
|
288
|
+
return _(this, T);
|
|
289
289
|
}
|
|
290
290
|
toFixed(t) {
|
|
291
291
|
var r;
|
|
292
|
-
const e = ((r =
|
|
292
|
+
const e = ((r = _(this, T).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
|
|
293
293
|
return e ? +t.toFixed(e) : Math.ceil(t);
|
|
294
294
|
}
|
|
295
295
|
connectedCallback() {
|
|
296
|
-
this.firstStore.addMiddleware(
|
|
296
|
+
this.firstStore.addMiddleware(_(this, J));
|
|
297
297
|
}
|
|
298
298
|
disconnectedCallback() {
|
|
299
|
-
this.firstStore.removeMiddleware(
|
|
299
|
+
this.firstStore.removeMiddleware(_(this, J));
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
302
|
T = /* @__PURE__ */ new WeakMap();
|
|
303
303
|
D = /* @__PURE__ */ new WeakMap();
|
|
304
304
|
R = /* @__PURE__ */ new WeakMap();
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
],
|
|
309
|
-
var
|
|
310
|
-
for (var a = n > 1 ? void 0 : n ? it(e, r) : e, o = t.length - 1,
|
|
311
|
-
(
|
|
312
|
-
return n && a &&
|
|
305
|
+
J = /* @__PURE__ */ new WeakMap();
|
|
306
|
+
ee = at([
|
|
307
|
+
f("e-tweaker-number-manager")
|
|
308
|
+
], ee);
|
|
309
|
+
var nt = Object.defineProperty, it = Object.getOwnPropertyDescriptor, st = (t, e, r, n) => {
|
|
310
|
+
for (var a = n > 1 ? void 0 : n ? it(e, r) : e, o = t.length - 1, i; o >= 0; o--)
|
|
311
|
+
(i = t[o]) && (a = (n ? i(e, r, a) : i(a)) || a);
|
|
312
|
+
return n && a && nt(e, r, a), a;
|
|
313
313
|
};
|
|
314
|
-
const
|
|
314
|
+
const ot = m({
|
|
315
315
|
":host": {
|
|
316
316
|
width: "100%"
|
|
317
317
|
},
|
|
318
318
|
".text-input": {
|
|
319
319
|
width: "60px",
|
|
320
|
-
marginRight:
|
|
320
|
+
marginRight: s.gapLarge.var,
|
|
321
321
|
textAlign: "center"
|
|
322
322
|
},
|
|
323
323
|
".range-input": {
|
|
@@ -328,19 +328,19 @@ const lt = w({
|
|
|
328
328
|
margin: "0",
|
|
329
329
|
padding: "0",
|
|
330
330
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
331
|
-
borderRadius:
|
|
331
|
+
borderRadius: s.borderRadius.var
|
|
332
332
|
},
|
|
333
333
|
".range-input::-webkit-slider-thumb": {
|
|
334
334
|
"-webkit-appearance": "none",
|
|
335
|
-
height: `calc(${
|
|
336
|
-
width:
|
|
337
|
-
borderRadius:
|
|
338
|
-
backgroundColor:
|
|
335
|
+
height: `calc(${s.heightInput.var} * 0.7)`,
|
|
336
|
+
width: s.borderRadius.var,
|
|
337
|
+
borderRadius: s.borderRadius.var,
|
|
338
|
+
backgroundColor: s.colorLight.var,
|
|
339
339
|
transitionProperty: "background-color",
|
|
340
|
-
transitionDuration:
|
|
340
|
+
transitionDuration: s.durationShort.var
|
|
341
341
|
},
|
|
342
342
|
".range-input:focus::-webkit-slider-thumb": {
|
|
343
|
-
backgroundColor:
|
|
343
|
+
backgroundColor: s.colorActive.var
|
|
344
344
|
},
|
|
345
345
|
".range-input::-webkit-slider-runnable-track": {
|
|
346
346
|
"-webkit-appearance": "none",
|
|
@@ -349,10 +349,10 @@ const lt = w({
|
|
|
349
349
|
background: "transparent"
|
|
350
350
|
}
|
|
351
351
|
});
|
|
352
|
-
let
|
|
352
|
+
let ce = class extends ee {
|
|
353
353
|
constructor(...t) {
|
|
354
|
-
super(...t), this.addStylesheet(
|
|
355
|
-
|
|
354
|
+
super(...t), this.addStylesheet(ot), this.appendContent(
|
|
355
|
+
re({
|
|
356
356
|
class: "range-input",
|
|
357
357
|
type: "range",
|
|
358
358
|
min: this.min,
|
|
@@ -368,18 +368,18 @@ let he = class extends j {
|
|
|
368
368
|
);
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
],
|
|
374
|
-
var
|
|
375
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
376
|
-
(
|
|
377
|
-
return n && a &&
|
|
371
|
+
ce = st([
|
|
372
|
+
f("e-tweaker-range-manager")
|
|
373
|
+
], ce);
|
|
374
|
+
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, o = t.length - 1, i; o >= 0; o--)
|
|
376
|
+
(i = t[o]) && (a = (n ? i(e, r, a) : i(a)) || a);
|
|
377
|
+
return n && a && lt(e, r, a), a;
|
|
378
378
|
};
|
|
379
|
-
const
|
|
379
|
+
const dt = m({
|
|
380
380
|
"e-select": {
|
|
381
381
|
width: "100%",
|
|
382
|
-
"--arrow-color":
|
|
382
|
+
"--arrow-color": s.colorLight.var
|
|
383
383
|
},
|
|
384
384
|
"e-select-head": {
|
|
385
385
|
width: "100%",
|
|
@@ -388,44 +388,44 @@ const pt = w({
|
|
|
388
388
|
justifyContent: "space-between"
|
|
389
389
|
},
|
|
390
390
|
"e-select-option": {
|
|
391
|
-
transitionDuration:
|
|
391
|
+
transitionDuration: s.durationShort.var,
|
|
392
392
|
transitionProperty: "color"
|
|
393
393
|
},
|
|
394
394
|
"e-select-option:hover": {
|
|
395
|
-
color:
|
|
395
|
+
color: s.colorActive.var
|
|
396
396
|
},
|
|
397
397
|
svg: {
|
|
398
398
|
width: "16px",
|
|
399
399
|
height: "16px",
|
|
400
|
-
fill:
|
|
400
|
+
fill: s.colorLight.var,
|
|
401
401
|
transitionProperty: "transform",
|
|
402
|
-
transitionDuration:
|
|
402
|
+
transitionDuration: s.durationShort.var
|
|
403
403
|
},
|
|
404
404
|
".opened svg": {
|
|
405
405
|
transform: "scaleY(-1)"
|
|
406
406
|
}
|
|
407
407
|
});
|
|
408
|
-
let
|
|
408
|
+
let de = class extends N {
|
|
409
409
|
constructor(...t) {
|
|
410
410
|
var r, n;
|
|
411
|
-
super(...t), this.openShadow(
|
|
411
|
+
super(...t), this.openShadow(dt);
|
|
412
412
|
const e = ((n = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : n.variants) || [];
|
|
413
|
-
|
|
414
|
-
children:
|
|
413
|
+
p(this, {
|
|
414
|
+
children: p("e-select", {
|
|
415
415
|
value: this.firstStore,
|
|
416
416
|
onChange: (a) => {
|
|
417
417
|
this.updateStores(a.currentTarget.value);
|
|
418
418
|
},
|
|
419
419
|
lightChildren: [
|
|
420
|
-
|
|
420
|
+
p("e-select-head", {
|
|
421
421
|
lightChildren: [
|
|
422
|
-
|
|
422
|
+
Pe({
|
|
423
423
|
"data-value-holder": ""
|
|
424
424
|
})
|
|
425
425
|
]
|
|
426
426
|
}),
|
|
427
427
|
...e.map(
|
|
428
|
-
(a, o) =>
|
|
428
|
+
(a, o) => p("e-select-option", {
|
|
429
429
|
lightChildren: a,
|
|
430
430
|
default: o === 0 ? !0 : null
|
|
431
431
|
})
|
|
@@ -435,48 +435,48 @@ let ce = class extends N {
|
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
],
|
|
441
|
-
const
|
|
442
|
-
boolean:
|
|
443
|
-
color:
|
|
444
|
-
link:
|
|
445
|
-
number:
|
|
446
|
-
range:
|
|
447
|
-
select:
|
|
448
|
-
string:
|
|
438
|
+
de = ct([
|
|
439
|
+
f("e-tweaker-select-manager")
|
|
440
|
+
], de);
|
|
441
|
+
const pt = {
|
|
442
|
+
boolean: oe,
|
|
443
|
+
color: le,
|
|
444
|
+
link: he,
|
|
445
|
+
number: ee,
|
|
446
|
+
range: ce,
|
|
447
|
+
select: de,
|
|
448
|
+
string: j
|
|
449
449
|
};
|
|
450
|
-
var
|
|
451
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
452
|
-
(
|
|
453
|
-
return n && a &&
|
|
454
|
-
},
|
|
450
|
+
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, o = t.length - 1, i; o >= 0; o--)
|
|
452
|
+
(i = t[o]) && (a = (n ? i(e, r, a) : i(a)) || a);
|
|
453
|
+
return n && a && ut(e, r, a), a;
|
|
454
|
+
}, _e = (t, e, r) => {
|
|
455
455
|
if (!e.has(t))
|
|
456
456
|
throw TypeError("Cannot " + r);
|
|
457
|
-
}, h = (t, e, r) => (
|
|
457
|
+
}, h = (t, e, r) => (_e(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => {
|
|
458
458
|
if (e.has(t))
|
|
459
459
|
throw TypeError("Cannot add the same private member more than once");
|
|
460
460
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
461
|
-
}, k = (t, e, r, n) => (
|
|
462
|
-
const
|
|
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, L, I, F, V, Y;
|
|
462
|
+
const ft = m({
|
|
463
463
|
":host": {
|
|
464
464
|
display: "grid",
|
|
465
465
|
gridAutoFlow: "column",
|
|
466
466
|
gridTemplateColumns: "0.4fr 1fr",
|
|
467
467
|
alignItems: "center",
|
|
468
|
-
color:
|
|
469
|
-
gap:
|
|
468
|
+
color: s.colorLight.var,
|
|
469
|
+
gap: s.gapMedium.var
|
|
470
470
|
},
|
|
471
471
|
":host(.disabled)": {
|
|
472
472
|
pointerEvents: "none",
|
|
473
473
|
opacity: 0.5
|
|
474
474
|
},
|
|
475
475
|
".head": {
|
|
476
|
-
fontSize:
|
|
476
|
+
fontSize: s.fontSizeMedium.var,
|
|
477
477
|
display: "flex",
|
|
478
478
|
alignItems: "center",
|
|
479
|
-
gap:
|
|
479
|
+
gap: s.gapExtraSmall.var
|
|
480
480
|
},
|
|
481
481
|
".head-buttons": {
|
|
482
482
|
display: "flex"
|
|
@@ -488,8 +488,8 @@ const wt = w({
|
|
|
488
488
|
margin: "0",
|
|
489
489
|
border: "none",
|
|
490
490
|
background: "none",
|
|
491
|
-
fill:
|
|
492
|
-
transitionDuration:
|
|
491
|
+
fill: s.colorLight.var,
|
|
492
|
+
transitionDuration: s.durationShort.var,
|
|
493
493
|
transitionProperty: "fill, opacity",
|
|
494
494
|
opacity: "0"
|
|
495
495
|
},
|
|
@@ -497,25 +497,25 @@ const wt = w({
|
|
|
497
497
|
opacity: "1"
|
|
498
498
|
},
|
|
499
499
|
".head-button:hover": {
|
|
500
|
-
fill:
|
|
500
|
+
fill: s.colorActive.var
|
|
501
501
|
},
|
|
502
502
|
".head-button svg": {
|
|
503
503
|
width: "100%",
|
|
504
504
|
height: "100%"
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
|
-
let
|
|
507
|
+
let te = class extends fe {
|
|
508
508
|
constructor(t) {
|
|
509
509
|
var r, n, a, o;
|
|
510
|
-
super(), C(this,
|
|
511
|
-
$.current.find((
|
|
512
|
-
}), C(this,
|
|
513
|
-
h(this, I) && ((
|
|
514
|
-
|
|
515
|
-
}),
|
|
516
|
-
}), k(this,
|
|
510
|
+
super(), C(this, u, []), C(this, W, void 0), C(this, L, void 0), C(this, I, !1), C(this, F, void 0), C(this, V, () => {
|
|
511
|
+
$.current.find((i) => h(this, u).includes(i)) || this.remove();
|
|
512
|
+
}), C(this, Y, (i) => {
|
|
513
|
+
h(this, I) && ((i.metaKey || i.ctrlKey) && i.code === "KeyC" ? navigator.clipboard.writeText(h(this, u)[0].current) : (i.metaKey || i.ctrlKey) && i.code === "KeyR" && (h(this, u).forEach((b) => {
|
|
514
|
+
b.reset();
|
|
515
|
+
}), i.preventDefault()));
|
|
516
|
+
}), k(this, u, [t.store]), k(this, W, t.store.passport.name), k(this, L, h(this, W).split(".").slice(-1).toString());
|
|
517
517
|
const e = ((n = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : n.type) || "string";
|
|
518
|
-
k(this, F, new
|
|
518
|
+
k(this, F, new pt[e](h(this, u)[0])), this.openShadow(ft), p(this, {
|
|
519
519
|
class: {
|
|
520
520
|
disabled: ((o = (a = t.store.passport) == null ? void 0 : a.manager) == null ? void 0 : o.disabled) || !1
|
|
521
521
|
},
|
|
@@ -526,26 +526,26 @@ let ee = class extends ve {
|
|
|
526
526
|
k(this, I, !0);
|
|
527
527
|
},
|
|
528
528
|
children: [
|
|
529
|
-
|
|
529
|
+
w({
|
|
530
530
|
class: "head",
|
|
531
531
|
children: [
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
w({ class: "name", children: h(this, L) + ":" }),
|
|
533
|
+
w({
|
|
534
534
|
class: "head-buttons",
|
|
535
535
|
children: [
|
|
536
536
|
A({
|
|
537
537
|
class: "head-button",
|
|
538
|
-
children:
|
|
538
|
+
children: me,
|
|
539
539
|
onClick: () => {
|
|
540
|
-
navigator.clipboard.writeText(h(this,
|
|
540
|
+
navigator.clipboard.writeText(h(this, u)[0].current);
|
|
541
541
|
}
|
|
542
542
|
}),
|
|
543
543
|
A({
|
|
544
544
|
class: "head-button",
|
|
545
|
-
children:
|
|
545
|
+
children: we,
|
|
546
546
|
onClick: () => {
|
|
547
|
-
h(this,
|
|
548
|
-
|
|
547
|
+
h(this, u).forEach((i) => {
|
|
548
|
+
i.reset();
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
})
|
|
@@ -564,120 +564,120 @@ let ee = class extends ve {
|
|
|
564
564
|
return h(this, L);
|
|
565
565
|
}
|
|
566
566
|
get stores() {
|
|
567
|
-
return h(this,
|
|
567
|
+
return h(this, u);
|
|
568
568
|
}
|
|
569
569
|
addStore(t) {
|
|
570
570
|
h(this, F).addStore(t);
|
|
571
571
|
}
|
|
572
572
|
connectedCallback() {
|
|
573
|
-
$.subscribe(h(this,
|
|
573
|
+
$.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), De(this);
|
|
574
574
|
}
|
|
575
575
|
disconnectedCallback() {
|
|
576
|
-
$.unsubscribe(h(this,
|
|
576
|
+
$.unsubscribe(h(this, V)), removeEventListener("keydown", h(this, Y));
|
|
577
577
|
}
|
|
578
578
|
};
|
|
579
|
-
|
|
579
|
+
u = /* @__PURE__ */ new WeakMap();
|
|
580
580
|
W = /* @__PURE__ */ new WeakMap();
|
|
581
581
|
L = /* @__PURE__ */ new WeakMap();
|
|
582
582
|
I = /* @__PURE__ */ new WeakMap();
|
|
583
583
|
F = /* @__PURE__ */ new WeakMap();
|
|
584
|
-
J = /* @__PURE__ */ new WeakMap();
|
|
585
584
|
V = /* @__PURE__ */ new WeakMap();
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
585
|
+
Y = /* @__PURE__ */ new WeakMap();
|
|
586
|
+
te = gt([
|
|
587
|
+
f("e-tweaker-field")
|
|
588
|
+
], te);
|
|
589
|
+
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, o = t.length - 1, i; o >= 0; o--)
|
|
591
|
+
(i = t[o]) && (a = (n ? i(e, r, a) : i(a)) || a);
|
|
592
|
+
return n && a && wt(e, r, a), a;
|
|
593
|
+
}, Se = (t, e, r) => {
|
|
594
594
|
if (!e.has(t))
|
|
595
595
|
throw TypeError("Cannot " + r);
|
|
596
|
-
}, l = (t, e, r) => (
|
|
596
|
+
}, l = (t, e, r) => (Se(t, e, "read from private field"), r ? r.call(t) : e.get(t)), x = (t, e, r) => {
|
|
597
597
|
if (e.has(t))
|
|
598
598
|
throw TypeError("Cannot add the same private member more than once");
|
|
599
599
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
600
|
-
},
|
|
601
|
-
const
|
|
600
|
+
}, ie = (t, e, r, n) => (Se(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), v, B, c, q, Q, pe;
|
|
601
|
+
const _t = m({
|
|
602
602
|
".wrapper": {
|
|
603
603
|
boxSizing: "border-box",
|
|
604
604
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
605
|
-
borderRadius:
|
|
605
|
+
borderRadius: s.borderRadius.var
|
|
606
606
|
},
|
|
607
607
|
".head": {
|
|
608
608
|
boxSizing: "border-box",
|
|
609
609
|
width: "100%",
|
|
610
|
-
height:
|
|
611
|
-
paddingLeft:
|
|
612
|
-
paddingRight:
|
|
610
|
+
height: s.tweakerFolderHeight.var,
|
|
611
|
+
paddingLeft: s.gapMedium.var,
|
|
612
|
+
paddingRight: s.gapMedium.var,
|
|
613
613
|
display: "flex",
|
|
614
614
|
alignItems: "center",
|
|
615
615
|
justifyContent: "space-between",
|
|
616
|
-
backgroundColor:
|
|
617
|
-
borderRadius:
|
|
616
|
+
backgroundColor: s.colorDarkAux.var,
|
|
617
|
+
borderRadius: s.borderRadius.var
|
|
618
618
|
},
|
|
619
619
|
".name": {
|
|
620
|
-
fontSize:
|
|
621
|
-
color:
|
|
620
|
+
fontSize: s.fontSizeLarge.var,
|
|
621
|
+
color: s.colorLight.var
|
|
622
622
|
},
|
|
623
623
|
".body": {
|
|
624
624
|
transitionProperty: "height",
|
|
625
|
-
transitionDuration:
|
|
625
|
+
transitionDuration: s.durationShort.var,
|
|
626
626
|
overflow: "hidden",
|
|
627
627
|
height: "0px"
|
|
628
628
|
},
|
|
629
629
|
".body-content": {
|
|
630
630
|
boxSizing: "border-box",
|
|
631
|
-
padding:
|
|
631
|
+
padding: s.gapLarge.var,
|
|
632
632
|
display: "grid",
|
|
633
|
-
gap:
|
|
633
|
+
gap: s.gapMedium.var
|
|
634
634
|
},
|
|
635
635
|
".arrow": {
|
|
636
636
|
width: "20px",
|
|
637
637
|
height: "20px",
|
|
638
|
-
fill:
|
|
639
|
-
transition: `transform ${
|
|
638
|
+
fill: s.colorLight.var,
|
|
639
|
+
transition: `transform ${s.durationShort.var}`
|
|
640
640
|
},
|
|
641
641
|
".opened .arrow": {
|
|
642
642
|
transform: "scaleY(-1)"
|
|
643
643
|
}
|
|
644
644
|
});
|
|
645
|
-
let z = class extends
|
|
645
|
+
let z = class extends Ee {
|
|
646
646
|
constructor(t) {
|
|
647
|
-
super(), x(this,
|
|
647
|
+
super(), x(this, v, void 0), x(this, B, new se(null)), x(this, c, new se([])), x(this, q, void 0), x(this, Q, null), x(this, pe, (e) => {
|
|
648
648
|
let r = [], n = [];
|
|
649
649
|
e.forEach((a) => {
|
|
650
650
|
r = [...r, ...a.removedNodes], n = [...n, ...a.addedNodes];
|
|
651
651
|
}), l(this, c).current = l(this, c).current.filter(
|
|
652
652
|
(a) => !r.includes(a)
|
|
653
|
-
), l(this,
|
|
654
|
-
}), this.openShadow(
|
|
653
|
+
), l(this, v) && !l(this, c).current.length && !n.length && this.remove();
|
|
654
|
+
}), this.openShadow(_t), ie(this, v, t.key), ie(this, q, new MutationObserver(l(this, pe))), p(this, {
|
|
655
655
|
onAccordionItemToggle: (e) => {
|
|
656
|
-
e.stopPropagation(), e.detail.opened ? P.openPanel(l(this,
|
|
656
|
+
e.stopPropagation(), e.detail.opened ? P.openPanel(l(this, v)) : P.closePanel(l(this, v));
|
|
657
657
|
},
|
|
658
658
|
children: [
|
|
659
|
-
|
|
659
|
+
w({
|
|
660
660
|
class: "wrapper",
|
|
661
661
|
children: [
|
|
662
|
-
|
|
662
|
+
w({
|
|
663
663
|
class: "head",
|
|
664
664
|
children: [
|
|
665
|
-
l(this,
|
|
665
|
+
l(this, v) ? w({
|
|
666
666
|
class: "name",
|
|
667
|
-
children: [l(this,
|
|
667
|
+
children: [l(this, v).split(".").slice(-1).toString()]
|
|
668
668
|
}) : null,
|
|
669
|
-
l(this,
|
|
670
|
-
|
|
669
|
+
l(this, B),
|
|
670
|
+
p(Te, {
|
|
671
671
|
class: "arrow"
|
|
672
672
|
})
|
|
673
673
|
]
|
|
674
674
|
}),
|
|
675
|
-
|
|
675
|
+
w({
|
|
676
676
|
class: "body",
|
|
677
|
-
children:
|
|
677
|
+
children: w({
|
|
678
678
|
class: "body-content",
|
|
679
679
|
children: l(this, c),
|
|
680
|
-
ref: (e) =>
|
|
680
|
+
ref: (e) => ie(this, Q, e.firstElementChild)
|
|
681
681
|
})
|
|
682
682
|
})
|
|
683
683
|
]
|
|
@@ -686,18 +686,18 @@ let z = class extends Te {
|
|
|
686
686
|
}), t != null && t.storeBox && this.handleStore(t.storeBox);
|
|
687
687
|
}
|
|
688
688
|
get key() {
|
|
689
|
-
return l(this,
|
|
689
|
+
return l(this, v);
|
|
690
690
|
}
|
|
691
691
|
get head() {
|
|
692
|
-
return l(this,
|
|
692
|
+
return l(this, B);
|
|
693
693
|
}
|
|
694
694
|
get content() {
|
|
695
695
|
return l(this, c);
|
|
696
696
|
}
|
|
697
697
|
connectedCallback() {
|
|
698
698
|
super.connectedCallback(), setTimeout(() => {
|
|
699
|
-
P.isPanelOpened(l(this,
|
|
700
|
-
}, 50), l(this,
|
|
699
|
+
P.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
|
|
700
|
+
}, 50), l(this, q).observe(l(this, Q), {
|
|
701
701
|
childList: !0
|
|
702
702
|
});
|
|
703
703
|
}
|
|
@@ -721,44 +721,45 @@ let z = class extends Te {
|
|
|
721
721
|
const e = l(this, c).current.find(
|
|
722
722
|
(r) => r.key === t.store.passport.name
|
|
723
723
|
);
|
|
724
|
-
e instanceof
|
|
724
|
+
e instanceof te ? e.addStore(t.store) : l(this, c).current = [
|
|
725
725
|
...l(this, c).current,
|
|
726
|
-
new
|
|
726
|
+
new te({
|
|
727
727
|
store: t.store
|
|
728
728
|
})
|
|
729
729
|
];
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
};
|
|
733
|
-
|
|
734
|
-
Y = /* @__PURE__ */ new WeakMap();
|
|
735
|
-
c = /* @__PURE__ */ new WeakMap();
|
|
733
|
+
v = /* @__PURE__ */ new WeakMap();
|
|
736
734
|
B = /* @__PURE__ */ new WeakMap();
|
|
735
|
+
c = /* @__PURE__ */ new WeakMap();
|
|
737
736
|
q = /* @__PURE__ */ new WeakMap();
|
|
738
|
-
|
|
737
|
+
Q = /* @__PURE__ */ new WeakMap();
|
|
738
|
+
pe = /* @__PURE__ */ new WeakMap();
|
|
739
739
|
z = bt([
|
|
740
|
-
|
|
740
|
+
f("e-tweaker-folder")
|
|
741
741
|
], z);
|
|
742
|
-
var
|
|
743
|
-
for (var a = n > 1 ? void 0 : n ?
|
|
744
|
-
(
|
|
745
|
-
return n && a &&
|
|
746
|
-
},
|
|
742
|
+
var St = Object.defineProperty, yt = Object.getOwnPropertyDescriptor, Ct = (t, e, r, n) => {
|
|
743
|
+
for (var a = n > 1 ? void 0 : n ? yt(e, r) : e, o = t.length - 1, i; o >= 0; o--)
|
|
744
|
+
(i = t[o]) && (a = (n ? i(e, r, a) : i(a)) || a);
|
|
745
|
+
return n && a && St(e, r, a), a;
|
|
746
|
+
}, kt = (t, e, r) => {
|
|
747
747
|
if (!e.has(t))
|
|
748
748
|
throw TypeError("Cannot " + r);
|
|
749
|
-
},
|
|
749
|
+
}, G = (t, e, r) => (kt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ge = (t, e, r) => {
|
|
750
750
|
if (e.has(t))
|
|
751
751
|
throw TypeError("Cannot add the same private member more than once");
|
|
752
752
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
753
|
-
},
|
|
754
|
-
const
|
|
753
|
+
}, U, X;
|
|
754
|
+
const xt = m({
|
|
755
755
|
":host": {
|
|
756
|
+
fontFamily: "sans-serif",
|
|
756
757
|
position: "absolute",
|
|
757
|
-
top:
|
|
758
|
-
right:
|
|
759
|
-
width:
|
|
760
|
-
backgroundColor:
|
|
761
|
-
borderRadius:
|
|
758
|
+
top: s.tweakerOffset.var,
|
|
759
|
+
right: s.tweakerOffset.var,
|
|
760
|
+
width: s.tweakerWidth.var,
|
|
761
|
+
backgroundColor: s.colorDark.var,
|
|
762
|
+
borderRadius: s.borderRadius.var,
|
|
762
763
|
transition: "opacity 0.2s",
|
|
763
764
|
zIndex: "100",
|
|
764
765
|
opacity: "0.1"
|
|
@@ -769,7 +770,7 @@ const Pt = w({
|
|
|
769
770
|
".tweaker-buttons": {
|
|
770
771
|
display: "flex",
|
|
771
772
|
alignItems: "center",
|
|
772
|
-
gap:
|
|
773
|
+
gap: s.gapExtraSmall.var
|
|
773
774
|
},
|
|
774
775
|
".tweaker-button": {
|
|
775
776
|
width: "18px",
|
|
@@ -778,12 +779,12 @@ const Pt = w({
|
|
|
778
779
|
margin: "0",
|
|
779
780
|
background: "none",
|
|
780
781
|
border: "none",
|
|
781
|
-
fill:
|
|
782
|
+
fill: s.colorLight.var,
|
|
782
783
|
transitionProperty: "fill",
|
|
783
|
-
transitionDuration:
|
|
784
|
+
transitionDuration: s.durationShort.var
|
|
784
785
|
},
|
|
785
786
|
".tweaker-button:hover": {
|
|
786
|
-
fill:
|
|
787
|
+
fill: s.colorActive.var
|
|
787
788
|
},
|
|
788
789
|
".tweaker-button svg": {
|
|
789
790
|
width: "100%",
|
|
@@ -793,8 +794,8 @@ const Pt = w({
|
|
|
793
794
|
maxHeight: `calc(
|
|
794
795
|
100dvh -
|
|
795
796
|
(
|
|
796
|
-
${
|
|
797
|
-
${
|
|
797
|
+
${s.tweakerOffset.var} * 2 +
|
|
798
|
+
${s.tweakerFolderHeight.var}
|
|
798
799
|
)
|
|
799
800
|
)`,
|
|
800
801
|
overflow: "hidden auto",
|
|
@@ -804,7 +805,7 @@ const Pt = w({
|
|
|
804
805
|
":host .body-content::-webkit-scrollbar": {
|
|
805
806
|
display: "none"
|
|
806
807
|
},
|
|
807
|
-
[`@media ${
|
|
808
|
+
[`@media ${Me["<=mobile"]}`]: {
|
|
808
809
|
":host": {
|
|
809
810
|
position: "absolute",
|
|
810
811
|
top: "0",
|
|
@@ -816,16 +817,18 @@ const Pt = w({
|
|
|
816
817
|
":host .body-content": {
|
|
817
818
|
maxHeight: `calc(
|
|
818
819
|
100dvh -
|
|
819
|
-
${
|
|
820
|
+
${s.tweakerFolderHeight.var}
|
|
820
821
|
)`
|
|
821
822
|
}
|
|
822
823
|
}
|
|
823
824
|
});
|
|
824
|
-
let
|
|
825
|
+
let ue = class extends z {
|
|
825
826
|
constructor() {
|
|
826
827
|
super({
|
|
827
828
|
key: ""
|
|
828
|
-
}),
|
|
829
|
+
}), ge(this, U, () => {
|
|
830
|
+
P.save();
|
|
831
|
+
}), ge(this, X, xe(() => {
|
|
829
832
|
$.current.forEach((t) => {
|
|
830
833
|
if (t.passport) {
|
|
831
834
|
const e = t.passport.name.split(".");
|
|
@@ -835,8 +838,8 @@ let pe = class extends z {
|
|
|
835
838
|
});
|
|
836
839
|
}
|
|
837
840
|
});
|
|
838
|
-
}, 10)), this.addStylesheet(
|
|
839
|
-
|
|
841
|
+
}, 10)), P.load(), this.addStylesheet(xt), this.head.current = [
|
|
842
|
+
w({
|
|
840
843
|
class: "tweaker-buttons",
|
|
841
844
|
onClick: (t) => {
|
|
842
845
|
t.stopPropagation();
|
|
@@ -844,14 +847,14 @@ let pe = class extends z {
|
|
|
844
847
|
children: [
|
|
845
848
|
A({
|
|
846
849
|
class: "tweaker-button",
|
|
847
|
-
children:
|
|
850
|
+
children: we,
|
|
848
851
|
onClick: () => {
|
|
849
852
|
S.resetState();
|
|
850
853
|
}
|
|
851
854
|
}),
|
|
852
855
|
A({
|
|
853
856
|
class: ["tweaker-button"],
|
|
854
|
-
children: [
|
|
857
|
+
children: [me],
|
|
855
858
|
onClick: () => {
|
|
856
859
|
navigator.clipboard.writeText(
|
|
857
860
|
JSON.stringify(S.getState())
|
|
@@ -860,19 +863,19 @@ let pe = class extends z {
|
|
|
860
863
|
}),
|
|
861
864
|
A({
|
|
862
865
|
class: "tweaker-button",
|
|
863
|
-
children:
|
|
866
|
+
children: We,
|
|
864
867
|
onClick: () => {
|
|
865
|
-
|
|
868
|
+
ke(
|
|
866
869
|
S.projectName,
|
|
867
870
|
S.getState()
|
|
868
871
|
);
|
|
869
872
|
}
|
|
870
873
|
}),
|
|
871
|
-
|
|
874
|
+
Oe({
|
|
872
875
|
class: "tweaker-button",
|
|
873
876
|
children: [
|
|
874
|
-
|
|
875
|
-
|
|
877
|
+
Le,
|
|
878
|
+
re({
|
|
876
879
|
type: "file",
|
|
877
880
|
style: {
|
|
878
881
|
display: "none"
|
|
@@ -885,18 +888,16 @@ let pe = class extends z {
|
|
|
885
888
|
if (r) {
|
|
886
889
|
const a = new FileReader();
|
|
887
890
|
a.onload = (o) => {
|
|
888
|
-
var
|
|
889
|
-
const
|
|
890
|
-
|
|
891
|
+
var b, H;
|
|
892
|
+
const i = (H = (b = o.target) == null ? void 0 : b.result) == null ? void 0 : H.toString();
|
|
893
|
+
i && S.loadState(i);
|
|
891
894
|
}, a.readAsText(r);
|
|
892
895
|
}
|
|
893
896
|
e.onchange = null;
|
|
894
897
|
}, e.click();
|
|
895
898
|
}
|
|
896
899
|
})
|
|
897
|
-
]
|
|
898
|
-
onClick: () => {
|
|
899
|
-
}
|
|
900
|
+
]
|
|
900
901
|
})
|
|
901
902
|
]
|
|
902
903
|
})
|
|
@@ -905,53 +906,15 @@ let pe = class extends z {
|
|
|
905
906
|
});
|
|
906
907
|
}
|
|
907
908
|
connectedCallback() {
|
|
908
|
-
super.connectedCallback(), $.subscribe(
|
|
909
|
-
}
|
|
910
|
-
disconnectedCallback() {
|
|
911
|
-
super.disconnectedCallback(), $.unsubscribe(fe(this, Q));
|
|
912
|
-
}
|
|
913
|
-
};
|
|
914
|
-
Q = /* @__PURE__ */ new WeakMap();
|
|
915
|
-
pe = kt([
|
|
916
|
-
u("e-tweaker")
|
|
917
|
-
], pe);
|
|
918
|
-
var Ot = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, Et = (t, e, r, n) => {
|
|
919
|
-
for (var a = n > 1 ? void 0 : n ? Mt(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
920
|
-
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
921
|
-
return n && a && Ot(e, r, a), a;
|
|
922
|
-
}, Tt = (t, e, r) => {
|
|
923
|
-
if (!e.has(t))
|
|
924
|
-
throw TypeError("Cannot " + r);
|
|
925
|
-
}, we = (t, e, r) => (Tt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Dt = (t, e, r) => {
|
|
926
|
-
if (e.has(t))
|
|
927
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
928
|
-
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
929
|
-
}, U;
|
|
930
|
-
const Rt = w({
|
|
931
|
-
":host": {
|
|
932
|
-
fontFamily: "sans-serif"
|
|
933
|
-
}
|
|
934
|
-
});
|
|
935
|
-
let ue = class extends ve {
|
|
936
|
-
constructor() {
|
|
937
|
-
super(), Dt(this, U, () => {
|
|
938
|
-
P.save();
|
|
939
|
-
}), this.openShadow(Rt), P.load(), d(this, {
|
|
940
|
-
children: [new pe()]
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
|
-
connectedCallback() {
|
|
944
|
-
window.addEventListener("beforeunload", we(this, U));
|
|
909
|
+
super.connectedCallback(), window.addEventListener("beforeunload", G(this, U)), $.subscribe(G(this, X));
|
|
945
910
|
}
|
|
946
911
|
disconnectedCallback() {
|
|
947
|
-
window.removeEventListener("beforeunload",
|
|
912
|
+
super.disconnectedCallback(), window.removeEventListener("beforeunload", G(this, U)), P.save(), $.unsubscribe(G(this, X));
|
|
948
913
|
}
|
|
949
914
|
};
|
|
950
915
|
U = /* @__PURE__ */ new WeakMap();
|
|
951
|
-
|
|
952
|
-
|
|
916
|
+
X = /* @__PURE__ */ new WeakMap();
|
|
917
|
+
ue = Ct([
|
|
918
|
+
f("e-tweaker")
|
|
953
919
|
], ue);
|
|
954
|
-
|
|
955
|
-
export {
|
|
956
|
-
ue as StudioElement
|
|
957
|
-
};
|
|
920
|
+
Ce && document.body.appendChild(new ue());
|