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