aptechka 0.1.7 → 0.1.9
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/abstract-elements/index.cjs +1 -1
- package/lib/abstract-elements/index.js +10 -14
- package/lib/accordion/AccordionElement.d.ts +1 -1
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +25 -26
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +15 -15
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.d.ts +4 -4
- package/lib/connector/index.js +34 -32
- package/lib/{createStylesheet-C1rimcGc.cjs → createStylesheet-BoJwXvjE.cjs} +1 -1
- package/lib/{createStylesheet-BSXZrWW6.js → createStylesheet-DSgkNlUZ.js} +1 -1
- package/lib/element-constructor/ElementConstructor.d.ts +13 -15
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +91 -89
- package/lib/element-constructor/tags.d.ts +3 -1
- package/lib/events-Crwi8fz6.cjs +1 -0
- package/lib/{events-CoqmkUxo.js → events-_C2CztxR.js} +1 -1
- package/lib/{index-dBwVZz_v.js → index-228VqUsZ.js} +66 -75
- package/lib/index-Cv4y7_7y.cjs +9 -0
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +33 -39
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +66 -68
- package/lib/select/SelectElement.d.ts +1 -1
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.d.ts +1 -1
- package/lib/select/index.js +1 -1
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +111 -48
- package/lib/studio/index.cjs +6 -6
- package/lib/studio/index.js +313 -360
- package/lib/tags-920hsh9U.cjs +1 -0
- package/lib/tags-kZqsS_nJ.js +793 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +1 -1
- package/lib/ticker/index.js +14 -4
- package/lib/utils/events.d.ts +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/ts-utility.d.ts +2 -2
- package/package.json +1 -9
- package/lib/Composed-C2Vv1xxR.cjs +0 -1
- package/lib/Composed-DhtYBEmo.js +0 -79
- package/lib/events-D68xg4dy.cjs +0 -1
- package/lib/index-vI4hmrI8.cjs +0 -9
- package/lib/jsx/ComponentElement.d.ts +0 -17
- package/lib/jsx/h.d.ts +0 -8
- package/lib/jsx/hooks/animation-frame.d.ts +0 -5
- package/lib/jsx/hooks/animation.d.ts +0 -3
- package/lib/jsx/hooks/basic.d.ts +0 -4
- package/lib/jsx/hooks/element-resize.d.ts +0 -3
- package/lib/jsx/hooks/intersection.d.ts +0 -3
- package/lib/jsx/hooks/store.d.ts +0 -6
- package/lib/jsx/hooks/style.d.ts +0 -2
- package/lib/jsx/hooks/utils.d.ts +0 -4
- package/lib/jsx/hooks/window-resize.d.ts +0 -2
- package/lib/jsx/index.cjs +0 -1
- package/lib/jsx/index.d.ts +0 -11
- package/lib/jsx/index.js +0 -193
- package/lib/jsx/render.d.ts +0 -2
- package/lib/jsx/type.d.ts +0 -187
- package/lib/tags-D-lzPz_v.js +0 -748
- package/lib/tags-DkAbVUQP.cjs +0 -1
package/lib/studio/index.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ge = (t, e, r) => {
|
|
2
2
|
if (!e.has(t))
|
|
3
3
|
throw TypeError("Cannot " + r);
|
|
4
4
|
};
|
|
5
|
-
var d = (t, e, r) => (
|
|
5
|
+
var d = (t, e, r) => (ge(t, e, "read from private field"), r ? r.call(t) : e.get(t)), G = (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,
|
|
10
|
-
import { i as
|
|
11
|
-
import { CustomElement as
|
|
12
|
-
import { s as S, S as
|
|
13
|
-
import { e as
|
|
14
|
-
import { c as
|
|
15
|
-
import { c as
|
|
16
|
-
import { d as
|
|
17
|
-
import { A as
|
|
18
|
-
import { a as
|
|
19
|
-
import { AccordionElement as
|
|
20
|
-
import { a as
|
|
21
|
-
import { d as
|
|
9
|
+
}, M = (t, e, r, n) => (ge(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
|
|
10
|
+
import { i as ke } from "../browser-0zX67oeU.js";
|
|
11
|
+
import { CustomElement as ve, define as u } from "../custom-element/index.js";
|
|
12
|
+
import { s as S, S as se, a as $ } from "../Store-JOKrNVEr.js";
|
|
13
|
+
import { e as p, a0 as N, a as xe, aB as $e, D as m, p as F, a3 as Pe } from "../tags-kZqsS_nJ.js";
|
|
14
|
+
import { c as w } from "../createStylesheet-DSgkNlUZ.js";
|
|
15
|
+
import { c as Oe } from "../file-lxi_oXJf.js";
|
|
16
|
+
import { d as Me } from "../function-C10DGppn.js";
|
|
17
|
+
import { A as Ee } from "../Animated-Br_4OSth.js";
|
|
18
|
+
import { a as Te } from "../Viewport-CXY5xcGJ.js";
|
|
19
|
+
import { AccordionElement as De } from "../accordion/index.js";
|
|
20
|
+
import { a as Re } from "../index-228VqUsZ.js";
|
|
21
|
+
import { d as We } from "../events-_C2CztxR.js";
|
|
22
22
|
import { aptechkaTheme as i } from "../theme/index.js";
|
|
23
|
-
import { c as
|
|
24
|
-
const
|
|
25
|
-
var O,
|
|
26
|
-
class
|
|
23
|
+
import { c as Le } from "../math-BOBiC4TN.js";
|
|
24
|
+
const me = '<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>', _e = '<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>', Ie = '<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>', Ae = '<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, f;
|
|
26
|
+
class Fe {
|
|
27
27
|
constructor() {
|
|
28
28
|
G(this, O, "");
|
|
29
|
-
G(this,
|
|
29
|
+
G(this, f, []);
|
|
30
30
|
M(this, O, S.projectName + "-studio");
|
|
31
31
|
}
|
|
32
32
|
openPanel(e) {
|
|
33
|
-
d(this,
|
|
33
|
+
d(this, f).includes(e) || d(this, f).push(e);
|
|
34
34
|
}
|
|
35
35
|
closePanel(e) {
|
|
36
|
-
M(this,
|
|
36
|
+
M(this, f, d(this, f).filter((r) => r !== e));
|
|
37
37
|
}
|
|
38
38
|
isPanelOpened(e) {
|
|
39
|
-
return d(this,
|
|
39
|
+
return d(this, f).includes(e);
|
|
40
40
|
}
|
|
41
41
|
save() {
|
|
42
42
|
const e = {
|
|
43
|
-
openedPanels: d(this,
|
|
43
|
+
openedPanels: d(this, f)
|
|
44
44
|
};
|
|
45
45
|
localStorage.setItem(d(this, O), JSON.stringify(e)), S.saveState();
|
|
46
46
|
}
|
|
@@ -50,16 +50,16 @@ class ze {
|
|
|
50
50
|
if (e)
|
|
51
51
|
try {
|
|
52
52
|
const r = JSON.parse(e);
|
|
53
|
-
r.openedPanels && M(this,
|
|
53
|
+
r.openedPanels && M(this, f, 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(), f = new WeakMap();
|
|
60
|
+
const P = new Fe();
|
|
61
61
|
var y;
|
|
62
|
-
class H extends
|
|
62
|
+
class H extends ve {
|
|
63
63
|
constructor(...r) {
|
|
64
64
|
super();
|
|
65
65
|
G(this, y, void 0);
|
|
@@ -75,18 +75,18 @@ class H extends ge {
|
|
|
75
75
|
return d(this, y);
|
|
76
76
|
}
|
|
77
77
|
updateStores(r) {
|
|
78
|
-
d(this, y).forEach((
|
|
79
|
-
|
|
78
|
+
d(this, y).forEach((n) => {
|
|
79
|
+
n.current = r;
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
y = new WeakMap();
|
|
84
|
-
var
|
|
85
|
-
for (var a =
|
|
86
|
-
(
|
|
87
|
-
return
|
|
84
|
+
var ze = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, He = (t, e, r, n) => {
|
|
85
|
+
for (var a = n > 1 ? void 0 : n ? Ne(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
86
|
+
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
87
|
+
return n && a && ze(e, r, a), a;
|
|
88
88
|
};
|
|
89
|
-
const
|
|
89
|
+
const Ze = w({
|
|
90
90
|
":host": {
|
|
91
91
|
width: "100%",
|
|
92
92
|
display: "inline-flex",
|
|
@@ -102,18 +102,14 @@ const Ge = f({
|
|
|
102
102
|
accentColor: i.colorLight.var
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
|
-
let
|
|
105
|
+
let ie = class extends H {
|
|
106
106
|
constructor(...t) {
|
|
107
|
-
super(...t), this.openShadow(
|
|
108
|
-
|
|
107
|
+
super(...t), this.openShadow(Ze), p(this, {
|
|
108
|
+
children: [
|
|
109
109
|
N({
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
events: {
|
|
114
|
-
change: (e) => {
|
|
115
|
-
this.updateStores(e.currentTarget.checked);
|
|
116
|
-
}
|
|
110
|
+
type: "checkbox",
|
|
111
|
+
onChange: (e) => {
|
|
112
|
+
this.updateStores(e.currentTarget.checked);
|
|
117
113
|
},
|
|
118
114
|
ref: (e) => {
|
|
119
115
|
this.firstStore.subscribe((r) => {
|
|
@@ -125,15 +121,15 @@ let oe = class extends H {
|
|
|
125
121
|
});
|
|
126
122
|
}
|
|
127
123
|
};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
],
|
|
131
|
-
var
|
|
132
|
-
for (var a =
|
|
133
|
-
(
|
|
134
|
-
return
|
|
124
|
+
ie = He([
|
|
125
|
+
u("e-tweaker-boolean-manager")
|
|
126
|
+
], ie);
|
|
127
|
+
var Ge = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, Je = (t, e, r, n) => {
|
|
128
|
+
for (var a = n > 1 ? void 0 : n ? Ke(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
129
|
+
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
130
|
+
return n && a && Ge(e, r, a), a;
|
|
135
131
|
};
|
|
136
|
-
const
|
|
132
|
+
const Ve = w({
|
|
137
133
|
":host": {
|
|
138
134
|
width: "100%",
|
|
139
135
|
display: "inline-flex",
|
|
@@ -156,70 +152,64 @@ const Ye = f({
|
|
|
156
152
|
height: `calc(${i.heightInput.var} * 0.93)`
|
|
157
153
|
}
|
|
158
154
|
});
|
|
159
|
-
let
|
|
155
|
+
let oe = class extends H {
|
|
160
156
|
constructor(...t) {
|
|
161
|
-
super(...t), this.openShadow(
|
|
162
|
-
|
|
157
|
+
super(...t), this.openShadow(Ve), p(this, {
|
|
158
|
+
children: [
|
|
163
159
|
N({
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
events: {
|
|
169
|
-
input: (e) => {
|
|
170
|
-
this.updateStores(e.currentTarget.value);
|
|
171
|
-
}
|
|
160
|
+
type: "color",
|
|
161
|
+
value: this.firstStore,
|
|
162
|
+
onInput: (e) => {
|
|
163
|
+
this.updateStores(e.currentTarget.value);
|
|
172
164
|
}
|
|
173
165
|
})
|
|
174
166
|
]
|
|
175
167
|
});
|
|
176
168
|
}
|
|
177
169
|
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
],
|
|
181
|
-
var
|
|
182
|
-
for (var a =
|
|
183
|
-
(
|
|
184
|
-
return
|
|
170
|
+
oe = Je([
|
|
171
|
+
u("e-tweaker-color-manager")
|
|
172
|
+
], oe);
|
|
173
|
+
var Ye = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, qe = (t, e, r, n) => {
|
|
174
|
+
for (var a = n > 1 ? void 0 : n ? Be(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
175
|
+
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
176
|
+
return n && a && Ye(e, r, a), a;
|
|
185
177
|
};
|
|
186
|
-
const
|
|
178
|
+
const Qe = w({
|
|
187
179
|
a: {
|
|
188
180
|
color: "inherit"
|
|
189
181
|
}
|
|
190
182
|
});
|
|
191
|
-
let
|
|
183
|
+
let le = class extends H {
|
|
192
184
|
constructor(...t) {
|
|
193
185
|
var e, r;
|
|
194
|
-
super(...t), this.openShadow(
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank"
|
|
200
|
-
},
|
|
186
|
+
super(...t), this.openShadow(Qe), p(this, {
|
|
187
|
+
children: [
|
|
188
|
+
xe({
|
|
189
|
+
href: this.firstStore,
|
|
190
|
+
target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank",
|
|
201
191
|
children: this.firstStore
|
|
202
192
|
})
|
|
203
193
|
]
|
|
204
194
|
});
|
|
205
195
|
}
|
|
206
196
|
};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
],
|
|
210
|
-
var
|
|
211
|
-
for (var a =
|
|
212
|
-
(
|
|
213
|
-
return
|
|
214
|
-
},
|
|
197
|
+
le = qe([
|
|
198
|
+
u("e-tweaker-link-manager")
|
|
199
|
+
], le);
|
|
200
|
+
var Ue = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, je = (t, e, r, n) => {
|
|
201
|
+
for (var a = n > 1 ? void 0 : n ? Xe(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
202
|
+
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
203
|
+
return n && a && Ue(e, r, a), a;
|
|
204
|
+
}, et = (t, e, r) => {
|
|
215
205
|
if (!e.has(t))
|
|
216
206
|
throw TypeError("Cannot " + r);
|
|
217
|
-
},
|
|
207
|
+
}, re = (t, e, r) => (et(t, e, "read from private field"), r ? r.call(t) : e.get(t)), tt = (t, e, r) => {
|
|
218
208
|
if (e.has(t))
|
|
219
209
|
throw TypeError("Cannot add the same private member more than once");
|
|
220
210
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
221
211
|
}, E;
|
|
222
|
-
const
|
|
212
|
+
const rt = w({
|
|
223
213
|
":host": {
|
|
224
214
|
width: "100%",
|
|
225
215
|
display: "flex",
|
|
@@ -245,88 +235,84 @@ const at = f({
|
|
|
245
235
|
});
|
|
246
236
|
let j = class extends H {
|
|
247
237
|
constructor(...t) {
|
|
248
|
-
super(...t),
|
|
249
|
-
|
|
238
|
+
super(...t), tt(this, E, new se([])), this.openShadow(rt), p(this, {
|
|
239
|
+
children: [
|
|
250
240
|
N({
|
|
251
241
|
class: "text-input",
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
this.updateStores(
|
|
259
|
-
e.currentTarget.value
|
|
260
|
-
);
|
|
261
|
-
}
|
|
242
|
+
type: "string",
|
|
243
|
+
value: this.firstStore,
|
|
244
|
+
onChange: (e) => {
|
|
245
|
+
this.updateStores(
|
|
246
|
+
e.currentTarget.value
|
|
247
|
+
);
|
|
262
248
|
}
|
|
263
249
|
}),
|
|
264
|
-
|
|
250
|
+
re(this, E)
|
|
265
251
|
]
|
|
266
252
|
});
|
|
267
253
|
}
|
|
268
254
|
appendContent(t) {
|
|
269
|
-
|
|
255
|
+
re(this, E).current = [...re(this, E).current, t];
|
|
270
256
|
}
|
|
271
257
|
};
|
|
272
258
|
E = /* @__PURE__ */ new WeakMap();
|
|
273
|
-
j =
|
|
274
|
-
|
|
259
|
+
j = je([
|
|
260
|
+
u("e-tweaker-string-manager")
|
|
275
261
|
], j);
|
|
276
|
-
var
|
|
277
|
-
for (var a =
|
|
278
|
-
(
|
|
279
|
-
return
|
|
280
|
-
},
|
|
262
|
+
var at = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, st = (t, e, r, n) => {
|
|
263
|
+
for (var a = n > 1 ? void 0 : n ? nt(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
264
|
+
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
265
|
+
return n && a && at(e, r, a), a;
|
|
266
|
+
}, be = (t, e, r) => {
|
|
281
267
|
if (!e.has(t))
|
|
282
268
|
throw TypeError("Cannot " + r);
|
|
283
|
-
},
|
|
269
|
+
}, b = (t, e, r) => (be(t, e, "read from private field"), r ? r.call(t) : e.get(t)), K = (t, e, r) => {
|
|
284
270
|
if (e.has(t))
|
|
285
271
|
throw TypeError("Cannot add the same private member more than once");
|
|
286
272
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
287
|
-
},
|
|
273
|
+
}, ae = (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;
|
|
288
274
|
let ee = class extends j {
|
|
289
275
|
constructor(...t) {
|
|
290
|
-
var e, r,
|
|
291
|
-
super(...t), K(this, T, void 0), K(this, D, void 0), K(this, R, void 0), K(this, J, (
|
|
292
|
-
const Z = typeof
|
|
293
|
-
return this.toFixed(
|
|
294
|
-
}),
|
|
276
|
+
var e, r, n, a, o, s;
|
|
277
|
+
super(...t), K(this, T, void 0), K(this, D, void 0), K(this, R, void 0), K(this, J, (_) => {
|
|
278
|
+
const Z = typeof _ == "string" ? parseFloat(_) || this.min : _, Ce = Le(Z, b(this, D), b(this, R));
|
|
279
|
+
return this.toFixed(Ce);
|
|
280
|
+
}), ae(this, D, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), ae(this, R, ((a = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : a.max) || 1), ae(this, T, ((s = (o = this.firstStore.passport) == null ? void 0 : o.manager) == null ? void 0 : s.step) || 0.01);
|
|
295
281
|
}
|
|
296
282
|
get min() {
|
|
297
|
-
return
|
|
283
|
+
return b(this, D);
|
|
298
284
|
}
|
|
299
285
|
get max() {
|
|
300
|
-
return
|
|
286
|
+
return b(this, R);
|
|
301
287
|
}
|
|
302
288
|
get step() {
|
|
303
|
-
return
|
|
289
|
+
return b(this, T);
|
|
304
290
|
}
|
|
305
291
|
toFixed(t) {
|
|
306
292
|
var r;
|
|
307
|
-
const e = ((r =
|
|
293
|
+
const e = ((r = b(this, T).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
|
|
308
294
|
return e ? +t.toFixed(e) : Math.ceil(t);
|
|
309
295
|
}
|
|
310
296
|
connectedCallback() {
|
|
311
|
-
this.firstStore.addMiddleware(
|
|
297
|
+
this.firstStore.addMiddleware(b(this, J));
|
|
312
298
|
}
|
|
313
299
|
disconnectedCallback() {
|
|
314
|
-
this.firstStore.removeMiddleware(
|
|
300
|
+
this.firstStore.removeMiddleware(b(this, J));
|
|
315
301
|
}
|
|
316
302
|
};
|
|
317
303
|
T = /* @__PURE__ */ new WeakMap();
|
|
318
304
|
D = /* @__PURE__ */ new WeakMap();
|
|
319
305
|
R = /* @__PURE__ */ new WeakMap();
|
|
320
306
|
J = /* @__PURE__ */ new WeakMap();
|
|
321
|
-
ee =
|
|
322
|
-
|
|
307
|
+
ee = st([
|
|
308
|
+
u("e-tweaker-number-manager")
|
|
323
309
|
], ee);
|
|
324
|
-
var
|
|
325
|
-
for (var a =
|
|
326
|
-
(
|
|
327
|
-
return
|
|
310
|
+
var it = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, lt = (t, e, r, n) => {
|
|
311
|
+
for (var a = n > 1 ? void 0 : n ? ot(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
312
|
+
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
313
|
+
return n && a && it(e, r, a), a;
|
|
328
314
|
};
|
|
329
|
-
const
|
|
315
|
+
const ht = w({
|
|
330
316
|
":host": {
|
|
331
317
|
width: "100%"
|
|
332
318
|
},
|
|
@@ -364,38 +350,34 @@ const ct = f({
|
|
|
364
350
|
background: "transparent"
|
|
365
351
|
}
|
|
366
352
|
});
|
|
367
|
-
let
|
|
353
|
+
let he = class extends ee {
|
|
368
354
|
constructor(...t) {
|
|
369
|
-
super(...t), this.addStylesheet(
|
|
355
|
+
super(...t), this.addStylesheet(ht), this.appendContent(
|
|
370
356
|
N({
|
|
371
357
|
class: "range-input",
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
this.updateStores(
|
|
382
|
-
parseFloat(e.currentTarget.value)
|
|
383
|
-
);
|
|
384
|
-
}
|
|
358
|
+
type: "range",
|
|
359
|
+
min: this.min,
|
|
360
|
+
max: this.max,
|
|
361
|
+
step: this.step,
|
|
362
|
+
value: this.firstStore,
|
|
363
|
+
onInput: (e) => {
|
|
364
|
+
this.updateStores(
|
|
365
|
+
parseFloat(e.currentTarget.value)
|
|
366
|
+
);
|
|
385
367
|
}
|
|
386
368
|
})
|
|
387
369
|
);
|
|
388
370
|
}
|
|
389
371
|
};
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
],
|
|
393
|
-
var
|
|
394
|
-
for (var a =
|
|
395
|
-
(
|
|
396
|
-
return
|
|
372
|
+
he = lt([
|
|
373
|
+
u("e-tweaker-range-manager")
|
|
374
|
+
], he);
|
|
375
|
+
var ct = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, pt = (t, e, r, n) => {
|
|
376
|
+
for (var a = n > 1 ? void 0 : n ? dt(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
377
|
+
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
378
|
+
return n && a && ct(e, r, a), a;
|
|
397
379
|
};
|
|
398
|
-
const
|
|
380
|
+
const ut = w({
|
|
399
381
|
"e-select": {
|
|
400
382
|
width: "100%",
|
|
401
383
|
"--arrow-color": i.colorLight.var
|
|
@@ -424,37 +406,29 @@ const vt = f({
|
|
|
424
406
|
transform: "scaleY(-1)"
|
|
425
407
|
}
|
|
426
408
|
});
|
|
427
|
-
let
|
|
409
|
+
let ce = class extends H {
|
|
428
410
|
constructor(...t) {
|
|
429
|
-
var r,
|
|
430
|
-
super(...t), this.openShadow(
|
|
431
|
-
const e = ((
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
411
|
+
var r, n;
|
|
412
|
+
super(...t), this.openShadow(ut);
|
|
413
|
+
const e = ((n = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : n.variants) || [];
|
|
414
|
+
p(this, {
|
|
415
|
+
children: p("e-select", {
|
|
416
|
+
value: this.firstStore,
|
|
417
|
+
onChange: (a) => {
|
|
418
|
+
this.updateStores(a.currentTarget.value);
|
|
436
419
|
},
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
children: [
|
|
443
|
-
re("e-select-head", {
|
|
444
|
-
children: [
|
|
445
|
-
Pe({
|
|
446
|
-
attributes: {
|
|
447
|
-
"data-value-holder": ""
|
|
448
|
-
}
|
|
420
|
+
lightChildren: [
|
|
421
|
+
p("e-select-head", {
|
|
422
|
+
lightChildren: [
|
|
423
|
+
$e({
|
|
424
|
+
"data-value-holder": ""
|
|
449
425
|
})
|
|
450
426
|
]
|
|
451
427
|
}),
|
|
452
428
|
...e.map(
|
|
453
|
-
(a, o) =>
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
default: o === 0 ? !0 : null
|
|
457
|
-
}
|
|
429
|
+
(a, o) => p("e-select-option", {
|
|
430
|
+
lightChildren: a,
|
|
431
|
+
default: o === 0 ? !0 : null
|
|
458
432
|
})
|
|
459
433
|
)
|
|
460
434
|
]
|
|
@@ -462,31 +436,31 @@ let de = class extends H {
|
|
|
462
436
|
});
|
|
463
437
|
}
|
|
464
438
|
};
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
],
|
|
468
|
-
const
|
|
469
|
-
boolean:
|
|
470
|
-
color:
|
|
471
|
-
link:
|
|
439
|
+
ce = pt([
|
|
440
|
+
u("e-tweaker-select-manager")
|
|
441
|
+
], ce);
|
|
442
|
+
const vt = {
|
|
443
|
+
boolean: ie,
|
|
444
|
+
color: oe,
|
|
445
|
+
link: le,
|
|
472
446
|
number: ee,
|
|
473
|
-
range:
|
|
474
|
-
select:
|
|
447
|
+
range: he,
|
|
448
|
+
select: ce,
|
|
475
449
|
string: j
|
|
476
450
|
};
|
|
477
|
-
var
|
|
478
|
-
for (var a =
|
|
479
|
-
(
|
|
480
|
-
return
|
|
481
|
-
},
|
|
451
|
+
var gt = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, wt = (t, e, r, n) => {
|
|
452
|
+
for (var a = n > 1 ? void 0 : n ? ft(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
453
|
+
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
454
|
+
return n && a && gt(e, r, a), a;
|
|
455
|
+
}, Se = (t, e, r) => {
|
|
482
456
|
if (!e.has(t))
|
|
483
457
|
throw TypeError("Cannot " + r);
|
|
484
|
-
}, h = (t, e, r) => (
|
|
458
|
+
}, h = (t, e, r) => (Se(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => {
|
|
485
459
|
if (e.has(t))
|
|
486
460
|
throw TypeError("Cannot add the same private member more than once");
|
|
487
461
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
488
|
-
}, k = (t, e, r,
|
|
489
|
-
const
|
|
462
|
+
}, k = (t, e, r, n) => (Se(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), v, W, L, I, A, V, Y;
|
|
463
|
+
const mt = w({
|
|
490
464
|
":host": {
|
|
491
465
|
display: "grid",
|
|
492
466
|
gridAutoFlow: "column",
|
|
@@ -531,55 +505,49 @@ const bt = f({
|
|
|
531
505
|
height: "100%"
|
|
532
506
|
}
|
|
533
507
|
});
|
|
534
|
-
let te = class extends
|
|
508
|
+
let te = class extends ve {
|
|
535
509
|
constructor(t) {
|
|
536
|
-
var r,
|
|
537
|
-
super(), C(this,
|
|
538
|
-
$.current.find((
|
|
539
|
-
}), C(this, Y, (
|
|
540
|
-
h(this,
|
|
541
|
-
|
|
542
|
-
}),
|
|
543
|
-
}), k(this,
|
|
544
|
-
const e = ((
|
|
545
|
-
k(this, A, new
|
|
510
|
+
var r, n, a, o;
|
|
511
|
+
super(), C(this, v, []), C(this, W, void 0), C(this, L, void 0), C(this, I, !1), C(this, A, void 0), C(this, V, () => {
|
|
512
|
+
$.current.find((s) => h(this, v).includes(s)) || this.remove();
|
|
513
|
+
}), C(this, Y, (s) => {
|
|
514
|
+
h(this, I) && ((s.metaKey || s.ctrlKey) && s.code === "KeyC" ? navigator.clipboard.writeText(h(this, v)[0].current) : (s.metaKey || s.ctrlKey) && s.code === "KeyR" && (h(this, v).forEach((_) => {
|
|
515
|
+
_.reset();
|
|
516
|
+
}), s.preventDefault()));
|
|
517
|
+
}), k(this, v, [t.store]), k(this, W, t.store.passport.name), k(this, L, h(this, W).split(".").slice(-1).toString());
|
|
518
|
+
const e = ((n = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : n.type) || "string";
|
|
519
|
+
k(this, A, new vt[e](h(this, v)[0])), this.openShadow(mt), p(this, {
|
|
546
520
|
class: {
|
|
547
521
|
disabled: ((o = (a = t.store.passport) == null ? void 0 : a.manager) == null ? void 0 : o.disabled) || !1
|
|
548
522
|
},
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
k(this, F, !1);
|
|
552
|
-
},
|
|
553
|
-
pointerenter: () => {
|
|
554
|
-
k(this, F, !0);
|
|
555
|
-
}
|
|
523
|
+
onPointerleave: () => {
|
|
524
|
+
k(this, I, !1);
|
|
556
525
|
},
|
|
557
|
-
|
|
558
|
-
|
|
526
|
+
onPointerenter: () => {
|
|
527
|
+
k(this, I, !0);
|
|
528
|
+
},
|
|
529
|
+
children: [
|
|
530
|
+
m({
|
|
559
531
|
class: "head",
|
|
560
532
|
children: [
|
|
561
|
-
|
|
562
|
-
|
|
533
|
+
m({ class: "name", children: h(this, L) + ":" }),
|
|
534
|
+
m({
|
|
563
535
|
class: "head-buttons",
|
|
564
536
|
children: [
|
|
565
|
-
|
|
537
|
+
F({
|
|
566
538
|
class: "head-button",
|
|
567
539
|
children: _e,
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
navigator.clipboard.writeText(h(this, u)[0].current);
|
|
571
|
-
}
|
|
540
|
+
onClick: () => {
|
|
541
|
+
navigator.clipboard.writeText(h(this, v)[0].current);
|
|
572
542
|
}
|
|
573
543
|
}),
|
|
574
|
-
|
|
544
|
+
F({
|
|
575
545
|
class: "head-button",
|
|
576
|
-
children:
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
});
|
|
582
|
-
}
|
|
546
|
+
children: me,
|
|
547
|
+
onClick: () => {
|
|
548
|
+
h(this, v).forEach((s) => {
|
|
549
|
+
s.reset();
|
|
550
|
+
});
|
|
583
551
|
}
|
|
584
552
|
})
|
|
585
553
|
]
|
|
@@ -597,41 +565,41 @@ let te = class extends ge {
|
|
|
597
565
|
return h(this, L);
|
|
598
566
|
}
|
|
599
567
|
get stores() {
|
|
600
|
-
return h(this,
|
|
568
|
+
return h(this, v);
|
|
601
569
|
}
|
|
602
570
|
addStore(t) {
|
|
603
571
|
h(this, A).addStore(t);
|
|
604
572
|
}
|
|
605
573
|
connectedCallback() {
|
|
606
|
-
$.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)),
|
|
574
|
+
$.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), We(this);
|
|
607
575
|
}
|
|
608
576
|
disconnectedCallback() {
|
|
609
577
|
$.unsubscribe(h(this, V)), removeEventListener("keydown", h(this, Y));
|
|
610
578
|
}
|
|
611
579
|
};
|
|
612
|
-
|
|
580
|
+
v = /* @__PURE__ */ new WeakMap();
|
|
613
581
|
W = /* @__PURE__ */ new WeakMap();
|
|
614
582
|
L = /* @__PURE__ */ new WeakMap();
|
|
615
|
-
|
|
583
|
+
I = /* @__PURE__ */ new WeakMap();
|
|
616
584
|
A = /* @__PURE__ */ new WeakMap();
|
|
617
585
|
V = /* @__PURE__ */ new WeakMap();
|
|
618
586
|
Y = /* @__PURE__ */ new WeakMap();
|
|
619
|
-
te =
|
|
620
|
-
|
|
587
|
+
te = wt([
|
|
588
|
+
u("e-tweaker-field")
|
|
621
589
|
], te);
|
|
622
|
-
var _t = Object.defineProperty,
|
|
623
|
-
for (var a =
|
|
624
|
-
(
|
|
625
|
-
return
|
|
626
|
-
},
|
|
590
|
+
var _t = Object.defineProperty, bt = Object.getOwnPropertyDescriptor, St = (t, e, r, n) => {
|
|
591
|
+
for (var a = n > 1 ? void 0 : n ? bt(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
592
|
+
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
593
|
+
return n && a && _t(e, r, a), a;
|
|
594
|
+
}, ye = (t, e, r) => {
|
|
627
595
|
if (!e.has(t))
|
|
628
596
|
throw TypeError("Cannot " + r);
|
|
629
|
-
}, l = (t, e, r) => (
|
|
597
|
+
}, l = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), x = (t, e, r) => {
|
|
630
598
|
if (e.has(t))
|
|
631
599
|
throw TypeError("Cannot add the same private member more than once");
|
|
632
600
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
633
|
-
}, ne = (t, e, r,
|
|
634
|
-
const
|
|
601
|
+
}, ne = (t, e, r, n) => (ye(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), g, B, c, q, Q, de;
|
|
602
|
+
const yt = w({
|
|
635
603
|
".wrapper": {
|
|
636
604
|
boxSizing: "border-box",
|
|
637
605
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
@@ -675,41 +643,39 @@ const Ct = f({
|
|
|
675
643
|
transform: "scaleY(-1)"
|
|
676
644
|
}
|
|
677
645
|
});
|
|
678
|
-
let z = class extends
|
|
646
|
+
let z = class extends De {
|
|
679
647
|
constructor(t) {
|
|
680
|
-
super(), x(this,
|
|
681
|
-
let r = [],
|
|
648
|
+
super(), x(this, g, void 0), x(this, B, new se(null)), x(this, c, new se([])), x(this, q, void 0), x(this, Q, null), x(this, de, (e) => {
|
|
649
|
+
let r = [], n = [];
|
|
682
650
|
e.forEach((a) => {
|
|
683
|
-
r = [...r, ...a.removedNodes],
|
|
651
|
+
r = [...r, ...a.removedNodes], n = [...n, ...a.addedNodes];
|
|
684
652
|
}), l(this, c).current = l(this, c).current.filter(
|
|
685
653
|
(a) => !r.includes(a)
|
|
686
|
-
), l(this,
|
|
687
|
-
}), this.openShadow(
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
e.stopPropagation(), e.detail.opened ? P.openPanel(l(this, v)) : P.closePanel(l(this, v));
|
|
691
|
-
}
|
|
654
|
+
), l(this, g) && !l(this, c).current.length && !n.length && this.remove();
|
|
655
|
+
}), this.openShadow(yt), ne(this, g, t.key), ne(this, q, new MutationObserver(l(this, de))), p(this, {
|
|
656
|
+
onAccordionItemToggle: (e) => {
|
|
657
|
+
e.stopPropagation(), e.detail.opened ? P.openPanel(l(this, g)) : P.closePanel(l(this, g));
|
|
692
658
|
},
|
|
693
|
-
|
|
694
|
-
|
|
659
|
+
children: [
|
|
660
|
+
m({
|
|
695
661
|
class: "wrapper",
|
|
696
662
|
children: [
|
|
697
|
-
|
|
663
|
+
m({
|
|
698
664
|
class: "head",
|
|
699
665
|
children: [
|
|
700
|
-
l(this,
|
|
666
|
+
l(this, g) ? m({
|
|
701
667
|
class: "name",
|
|
702
|
-
children: [l(this,
|
|
668
|
+
children: [l(this, g).split(".").slice(-1).toString()]
|
|
703
669
|
}) : null,
|
|
704
670
|
l(this, B),
|
|
705
|
-
|
|
671
|
+
p(Re, {
|
|
706
672
|
class: "arrow"
|
|
707
673
|
})
|
|
708
674
|
]
|
|
709
675
|
}),
|
|
710
|
-
|
|
676
|
+
m({
|
|
711
677
|
class: "body",
|
|
712
|
-
children:
|
|
678
|
+
children: m({
|
|
713
679
|
class: "body-content",
|
|
714
680
|
children: l(this, c),
|
|
715
681
|
ref: (e) => ne(this, Q, e.firstElementChild)
|
|
@@ -721,7 +687,7 @@ let z = class extends Re {
|
|
|
721
687
|
}), t != null && t.storeBox && this.handleStore(t.storeBox);
|
|
722
688
|
}
|
|
723
689
|
get key() {
|
|
724
|
-
return l(this,
|
|
690
|
+
return l(this, g);
|
|
725
691
|
}
|
|
726
692
|
get head() {
|
|
727
693
|
return l(this, B);
|
|
@@ -731,21 +697,21 @@ let z = class extends Re {
|
|
|
731
697
|
}
|
|
732
698
|
connectedCallback() {
|
|
733
699
|
super.connectedCallback(), setTimeout(() => {
|
|
734
|
-
P.isPanelOpened(l(this,
|
|
700
|
+
P.isPanelOpened(l(this, g)) && this.openAll({ skipTransition: !0 });
|
|
735
701
|
}, 50), l(this, q).observe(l(this, Q), {
|
|
736
702
|
childList: !0
|
|
737
703
|
});
|
|
738
704
|
}
|
|
739
705
|
handleStore(t) {
|
|
740
706
|
if (t.remainingFolders.length) {
|
|
741
|
-
const r = t.store.passport.name.split("."),
|
|
707
|
+
const r = t.store.passport.name.split("."), n = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, c).current.find((o) => o.key === n);
|
|
742
708
|
a instanceof z ? a.handleStore({
|
|
743
709
|
store: t.store,
|
|
744
710
|
remainingFolders: t.remainingFolders.slice(1)
|
|
745
711
|
}) : l(this, c).current = [
|
|
746
712
|
...l(this, c).current,
|
|
747
713
|
new z({
|
|
748
|
-
key:
|
|
714
|
+
key: n,
|
|
749
715
|
storeBox: {
|
|
750
716
|
store: t.store,
|
|
751
717
|
remainingFolders: t.remainingFolders.slice(1)
|
|
@@ -765,28 +731,28 @@ let z = class extends Re {
|
|
|
765
731
|
}
|
|
766
732
|
}
|
|
767
733
|
};
|
|
768
|
-
|
|
734
|
+
g = /* @__PURE__ */ new WeakMap();
|
|
769
735
|
B = /* @__PURE__ */ new WeakMap();
|
|
770
736
|
c = /* @__PURE__ */ new WeakMap();
|
|
771
737
|
q = /* @__PURE__ */ new WeakMap();
|
|
772
738
|
Q = /* @__PURE__ */ new WeakMap();
|
|
773
|
-
|
|
774
|
-
z =
|
|
775
|
-
|
|
739
|
+
de = /* @__PURE__ */ new WeakMap();
|
|
740
|
+
z = St([
|
|
741
|
+
u("e-tweaker-folder")
|
|
776
742
|
], z);
|
|
777
|
-
var
|
|
778
|
-
for (var a =
|
|
779
|
-
(
|
|
780
|
-
return
|
|
781
|
-
},
|
|
743
|
+
var Ct = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, xt = (t, e, r, n) => {
|
|
744
|
+
for (var a = n > 1 ? void 0 : n ? kt(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
745
|
+
(s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
746
|
+
return n && a && Ct(e, r, a), a;
|
|
747
|
+
}, $t = (t, e, r) => {
|
|
782
748
|
if (!e.has(t))
|
|
783
749
|
throw TypeError("Cannot " + r);
|
|
784
|
-
},
|
|
750
|
+
}, fe = (t, e, r) => ($t(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Pt = (t, e, r) => {
|
|
785
751
|
if (e.has(t))
|
|
786
752
|
throw TypeError("Cannot add the same private member more than once");
|
|
787
753
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
788
754
|
}, U;
|
|
789
|
-
const
|
|
755
|
+
const Ot = w({
|
|
790
756
|
":host": {
|
|
791
757
|
position: "absolute",
|
|
792
758
|
top: i.tweakerOffset.var,
|
|
@@ -813,7 +779,8 @@ const Mt = f({
|
|
|
813
779
|
background: "none",
|
|
814
780
|
border: "none",
|
|
815
781
|
fill: i.colorLight.var,
|
|
816
|
-
transitionProperty: "fill"
|
|
782
|
+
transitionProperty: "fill",
|
|
783
|
+
transitionDuration: i.durationShort.var
|
|
817
784
|
},
|
|
818
785
|
".tweaker-button:hover": {
|
|
819
786
|
fill: i.colorActive.var
|
|
@@ -837,7 +804,7 @@ const Mt = f({
|
|
|
837
804
|
":host .body-content::-webkit-scrollbar": {
|
|
838
805
|
display: "none"
|
|
839
806
|
},
|
|
840
|
-
[`@media ${
|
|
807
|
+
[`@media ${Te["<=mobile"]}`]: {
|
|
841
808
|
":host": {
|
|
842
809
|
position: "absolute",
|
|
843
810
|
top: "0",
|
|
@@ -854,13 +821,13 @@ const Mt = f({
|
|
|
854
821
|
}
|
|
855
822
|
}
|
|
856
823
|
});
|
|
857
|
-
let
|
|
824
|
+
let pe = class extends z {
|
|
858
825
|
constructor() {
|
|
859
826
|
super({
|
|
860
827
|
key: ""
|
|
861
|
-
}),
|
|
828
|
+
}), Pt(this, U, Me(() => {
|
|
862
829
|
$.current.forEach((t) => {
|
|
863
|
-
if (!(t instanceof
|
|
830
|
+
if (!(t instanceof Ee)) {
|
|
864
831
|
const e = t.passport.name.split(".");
|
|
865
832
|
this.handleStore({
|
|
866
833
|
store: t,
|
|
@@ -868,137 +835,123 @@ let ue = class extends z {
|
|
|
868
835
|
});
|
|
869
836
|
}
|
|
870
837
|
});
|
|
871
|
-
}, 10)), this.addStylesheet(
|
|
872
|
-
|
|
838
|
+
}, 10)), this.addStylesheet(Ot), this.head.current = [
|
|
839
|
+
m({
|
|
873
840
|
class: "tweaker-buttons",
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
t.stopPropagation();
|
|
877
|
-
}
|
|
841
|
+
onClick: (t) => {
|
|
842
|
+
t.stopPropagation();
|
|
878
843
|
},
|
|
879
844
|
children: [
|
|
880
|
-
|
|
845
|
+
F({
|
|
881
846
|
class: "tweaker-button",
|
|
882
|
-
children:
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
S.resetState();
|
|
886
|
-
}
|
|
847
|
+
children: me,
|
|
848
|
+
onClick: () => {
|
|
849
|
+
S.resetState();
|
|
887
850
|
}
|
|
888
851
|
}),
|
|
889
|
-
|
|
852
|
+
F({
|
|
890
853
|
class: ["tweaker-button"],
|
|
891
854
|
children: [_e],
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
);
|
|
897
|
-
}
|
|
855
|
+
onClick: () => {
|
|
856
|
+
navigator.clipboard.writeText(
|
|
857
|
+
JSON.stringify(S.getState())
|
|
858
|
+
);
|
|
898
859
|
}
|
|
899
860
|
}),
|
|
900
|
-
|
|
861
|
+
F({
|
|
901
862
|
class: "tweaker-button",
|
|
902
|
-
children:
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
);
|
|
909
|
-
}
|
|
863
|
+
children: Ie,
|
|
864
|
+
onClick: () => {
|
|
865
|
+
Oe(
|
|
866
|
+
S.projectName,
|
|
867
|
+
S.getState()
|
|
868
|
+
);
|
|
910
869
|
}
|
|
911
870
|
}),
|
|
912
|
-
|
|
871
|
+
Pe({
|
|
913
872
|
class: "tweaker-button",
|
|
914
873
|
children: [
|
|
915
|
-
|
|
874
|
+
Ae,
|
|
916
875
|
N({
|
|
917
|
-
|
|
918
|
-
type: "file"
|
|
919
|
-
},
|
|
876
|
+
type: "file",
|
|
920
877
|
style: {
|
|
921
878
|
display: "none"
|
|
922
879
|
},
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
}, e.click();
|
|
939
|
-
}
|
|
880
|
+
onChange: (t) => {
|
|
881
|
+
const e = t.currentTarget;
|
|
882
|
+
e.onchange = () => {
|
|
883
|
+
var n;
|
|
884
|
+
const r = (n = e.files) == null ? void 0 : n[0];
|
|
885
|
+
if (r) {
|
|
886
|
+
const a = new FileReader();
|
|
887
|
+
a.onload = (o) => {
|
|
888
|
+
var _, Z;
|
|
889
|
+
const s = (Z = (_ = o.target) == null ? void 0 : _.result) == null ? void 0 : Z.toString();
|
|
890
|
+
s && S.loadState(s);
|
|
891
|
+
}, a.readAsText(r);
|
|
892
|
+
}
|
|
893
|
+
e.onchange = null;
|
|
894
|
+
}, e.click();
|
|
940
895
|
}
|
|
941
896
|
})
|
|
942
897
|
],
|
|
943
|
-
|
|
944
|
-
click: () => {
|
|
945
|
-
}
|
|
898
|
+
onClick: () => {
|
|
946
899
|
}
|
|
947
900
|
})
|
|
948
901
|
]
|
|
949
902
|
})
|
|
950
|
-
], this.addEventListener("
|
|
903
|
+
], this.addEventListener("accordionItemToggle", (t) => {
|
|
951
904
|
t.detail.opened ? this.style.opacity = "1" : this.style.opacity = "0.1";
|
|
952
905
|
});
|
|
953
906
|
}
|
|
954
907
|
connectedCallback() {
|
|
955
|
-
super.connectedCallback(), $.subscribe(
|
|
908
|
+
super.connectedCallback(), $.subscribe(fe(this, U));
|
|
956
909
|
}
|
|
957
910
|
disconnectedCallback() {
|
|
958
|
-
super.disconnectedCallback(), $.unsubscribe(
|
|
911
|
+
super.disconnectedCallback(), $.unsubscribe(fe(this, U));
|
|
959
912
|
}
|
|
960
913
|
};
|
|
961
914
|
U = /* @__PURE__ */ new WeakMap();
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
],
|
|
965
|
-
var
|
|
966
|
-
for (var a =
|
|
967
|
-
(
|
|
968
|
-
return
|
|
969
|
-
},
|
|
915
|
+
pe = xt([
|
|
916
|
+
u("e-tweaker")
|
|
917
|
+
], pe);
|
|
918
|
+
var Mt = Object.defineProperty, Et = Object.getOwnPropertyDescriptor, Tt = (t, e, r, n) => {
|
|
919
|
+
for (var a = n > 1 ? void 0 : n ? Et(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 && Mt(e, r, a), a;
|
|
922
|
+
}, Dt = (t, e, r) => {
|
|
970
923
|
if (!e.has(t))
|
|
971
924
|
throw TypeError("Cannot " + r);
|
|
972
|
-
},
|
|
925
|
+
}, we = (t, e, r) => (Dt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Rt = (t, e, r) => {
|
|
973
926
|
if (e.has(t))
|
|
974
927
|
throw TypeError("Cannot add the same private member more than once");
|
|
975
928
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
976
929
|
}, X;
|
|
977
|
-
const
|
|
930
|
+
const Wt = w({
|
|
978
931
|
":host": {
|
|
979
932
|
fontFamily: "sans-serif"
|
|
980
933
|
}
|
|
981
934
|
});
|
|
982
|
-
let
|
|
935
|
+
let ue = class extends ve {
|
|
983
936
|
constructor() {
|
|
984
|
-
super(),
|
|
937
|
+
super(), Rt(this, X, () => {
|
|
985
938
|
P.save();
|
|
986
|
-
}), this.openShadow(
|
|
987
|
-
|
|
939
|
+
}), this.openShadow(Wt), P.load(), p(this, {
|
|
940
|
+
children: [new pe()]
|
|
988
941
|
});
|
|
989
942
|
}
|
|
990
943
|
connectedCallback() {
|
|
991
|
-
window.addEventListener("beforeunload",
|
|
944
|
+
window.addEventListener("beforeunload", we(this, X));
|
|
992
945
|
}
|
|
993
946
|
disconnectedCallback() {
|
|
994
|
-
window.removeEventListener("beforeunload",
|
|
947
|
+
window.removeEventListener("beforeunload", we(this, X)), P.save();
|
|
995
948
|
}
|
|
996
949
|
};
|
|
997
950
|
X = /* @__PURE__ */ new WeakMap();
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
],
|
|
1001
|
-
|
|
951
|
+
ue = Tt([
|
|
952
|
+
u("e-studio")
|
|
953
|
+
], ue);
|
|
954
|
+
ke && document.body.appendChild(new ue());
|
|
1002
955
|
export {
|
|
1003
|
-
|
|
956
|
+
ue as StudioElement
|
|
1004
957
|
};
|