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.
Files changed (33) hide show
  1. package/lib/en3/core/en3.d.ts +1 -1
  2. package/lib/en3/index.cjs +6 -6
  3. package/lib/en3/index.js +358 -358
  4. package/lib/gestures-D2Fdra_G.js +11 -0
  5. package/lib/gestures-DHLrn6Q8.cjs +1 -0
  6. package/lib/router/index.js +1 -3
  7. package/lib/scroll/index.cjs +1 -1
  8. package/lib/scroll/index.js +120 -122
  9. package/lib/{studio/tweaker → tweaker}/TweakerBooleanManagerElement.d.ts +1 -1
  10. package/lib/{studio/tweaker → tweaker}/TweakerColorManagerElement.d.ts +1 -1
  11. package/lib/{studio/tweaker → tweaker}/TweakerElement.d.ts +1 -1
  12. package/lib/{studio/tweaker → tweaker}/TweakerFieldElement.d.ts +4 -4
  13. package/lib/{studio/tweaker → tweaker}/TweakerFolderElement.d.ts +4 -4
  14. package/lib/{studio/tweaker → tweaker}/TweakerLinkManagerElement.d.ts +1 -1
  15. package/lib/{studio/tweaker → tweaker}/TweakerNumberManagerElement.d.ts +1 -1
  16. package/lib/{studio/tweaker → tweaker}/TweakerRangeManagerElement.d.ts +1 -1
  17. package/lib/{studio/tweaker → tweaker}/TweakerSelectManagerElement.d.ts +1 -1
  18. package/lib/tweaker/TweakerStoreManagerElement.d.ts +11 -0
  19. package/lib/{studio/tweaker → tweaker}/TweakerStringManagerElement.d.ts +1 -1
  20. package/lib/tweaker/index.cjs +10 -0
  21. package/lib/tweaker/index.d.ts +1 -0
  22. package/lib/{studio → tweaker}/index.js +293 -330
  23. package/lib/{studio/tweaker → tweaker}/tweakerManagerConstructors.d.ts +1 -1
  24. package/lib/{studio/studioStorage.d.ts → tweaker/tweakerStorage.d.ts} +3 -3
  25. package/lib/utils/gestures.d.ts +1 -0
  26. package/lib/utils/index.cjs +1 -1
  27. package/lib/utils/index.d.ts +1 -0
  28. package/lib/utils/index.js +51 -49
  29. package/package.json +9 -9
  30. package/lib/studio/StudioElement.d.ts +0 -13
  31. package/lib/studio/index.cjs +0 -10
  32. package/lib/studio/index.d.ts +0 -1
  33. package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +0 -11
@@ -1,92 +1,92 @@
1
- var ge = (t, e, r) => {
1
+ var ve = (t, e, r) => {
2
2
  if (!e.has(t))
3
3
  throw TypeError("Cannot " + r);
4
4
  };
5
- var p = (t, e, r) => (ge(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Z = (t, e, r) => {
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) => (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";
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 { e as d, a0 as te, a as xe, aB as $e, D as m, p as A, a3 as Pe } from "../tags-CAxO5Rs3.js";
14
- import { c as w } from "../createStylesheet-DrkbCUJk.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 "../Viewport-wlgZaIn7.js";
18
- import { AccordionElement as Te } from "../accordion/index.js";
19
- import { a as De } from "../index-BigQay-N.js";
20
- import { d as Re } from "../events-_C2CztxR.js";
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 { aptechkaTheme as i } from "../theme/index.js";
23
- import { c as We } 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>', 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 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>';
25
- var O, f;
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, f, []);
29
+ Z(this, g, []);
30
30
  M(this, O, S.projectName + "-studio");
31
31
  }
32
32
  openPanel(e) {
33
- p(this, f).includes(e) || p(this, f).push(e);
33
+ d(this, g).includes(e) || d(this, g).push(e);
34
34
  }
35
35
  closePanel(e) {
36
- M(this, f, p(this, f).filter((r) => r !== e));
36
+ M(this, g, d(this, g).filter((r) => r !== e));
37
37
  }
38
38
  isPanelOpened(e) {
39
- return p(this, f).includes(e);
39
+ return d(this, g).includes(e);
40
40
  }
41
41
  save() {
42
42
  const e = {
43
- openedPanels: p(this, f)
43
+ openedPanels: d(this, g)
44
44
  };
45
- localStorage.setItem(p(this, O), JSON.stringify(e)), S.saveState();
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(p(this, O));
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, f, r.openedPanels);
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(), f = new WeakMap();
60
- const P = new Fe();
59
+ O = new WeakMap(), g = new WeakMap();
60
+ const P = new Ie();
61
61
  var y;
62
- class N extends ve {
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
- p(this, y).push(r);
69
+ d(this, y).push(r);
70
70
  }
71
71
  get firstStore() {
72
- return p(this, y)[0];
72
+ return d(this, y)[0];
73
73
  }
74
74
  get stores() {
75
- return p(this, y);
75
+ return d(this, y);
76
76
  }
77
77
  updateStores(r) {
78
- p(this, y).forEach((n) => {
78
+ d(this, y).forEach((n) => {
79
79
  n.current = r;
80
80
  });
81
81
  }
82
82
  }
83
83
  y = new WeakMap();
84
- var Ae = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, Ne = (t, e, r, n) => {
85
- for (var a = n > 1 ? void 0 : n ? ze(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 && Ae(e, r, a), 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 He = w({
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(${i.heightInput.var} * 0.5)`,
99
- height: `calc(${i.heightInput.var} * 0.5)`,
100
- borderRadius: i.borderRadius.var,
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: i.colorLight.var
102
+ accentColor: s.colorLight.var
103
103
  }
104
104
  });
105
- let ie = class extends N {
105
+ let oe = class extends N {
106
106
  constructor(...t) {
107
- super(...t), this.openShadow(He), d(this, {
107
+ super(...t), this.openShadow(Ne), p(this, {
108
108
  children: [
109
- d("e-checkbox", {
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
- ie = Ne([
124
- u("e-tweaker-boolean-manager")
125
- ], ie);
126
- var Ze = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, Ke = (t, e, r, n) => {
127
- for (var a = n > 1 ? void 0 : n ? Ge(e, r) : e, o = t.length - 1, s; o >= 0; o--)
128
- (s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
129
- return n && a && Ze(e, r, a), 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 Je = w({
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: i.heightInput.var,
139
+ height: s.heightInput.var,
140
140
  padding: "0",
141
141
  background: "none",
142
- borderRadius: i.borderRadius.var,
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: i.borderRadius.var,
151
- height: `calc(${i.heightInput.var} * 0.93)`
150
+ borderRadius: s.borderRadius.var,
151
+ height: `calc(${s.heightInput.var} * 0.93)`
152
152
  }
153
153
  });
154
- let oe = class extends N {
154
+ let le = class extends N {
155
155
  constructor(...t) {
156
- super(...t), this.openShadow(Je), d(this, {
156
+ super(...t), this.openShadow(Ge), p(this, {
157
157
  children: [
158
- te({
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
- oe = Ke([
170
- u("e-tweaker-color-manager")
171
- ], oe);
172
- var Ve = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, Be = (t, e, r, n) => {
173
- for (var a = n > 1 ? void 0 : n ? Ye(e, r) : e, o = t.length - 1, s; o >= 0; o--)
174
- (s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
175
- return n && a && Ve(e, r, a), 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 qe = w({
177
+ const Be = m({
178
178
  a: {
179
179
  color: "inherit"
180
180
  }
181
181
  });
182
- let le = class extends N {
182
+ let he = class extends N {
183
183
  constructor(...t) {
184
184
  var e, r;
185
- super(...t), this.openShadow(qe), d(this, {
185
+ super(...t), this.openShadow(Be), p(this, {
186
186
  children: [
187
- xe({
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
- le = Be([
197
- u("e-tweaker-link-manager")
198
- ], le);
199
- var Qe = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, Xe = (t, e, r, n) => {
200
- for (var a = n > 1 ? void 0 : n ? Ue(e, r) : e, o = t.length - 1, s; o >= 0; o--)
201
- (s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
202
- return n && a && Qe(e, r, a), a;
203
- }, je = (t, e, r) => {
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
- }, re = (t, e, r) => (je(t, e, "read from private field"), r ? r.call(t) : e.get(t)), et = (t, e, r) => {
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 tt = w({
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: i.fontSizeSmall.var
224
+ fontSize: s.fontSizeSmall.var
225
225
  },
226
226
  ".text-input": {
227
- height: i.heightInput.var,
227
+ height: s.heightInput.var,
228
228
  width: "100%",
229
229
  margin: "0",
230
- padding: `0 ${i.gapSmall.var}`,
230
+ padding: `0 ${s.gapSmall.var}`,
231
231
  backgroundColor: "rgba(255, 255, 255, 0.1)",
232
- borderRadius: i.borderRadius.var
232
+ borderRadius: s.borderRadius.var
233
233
  }
234
234
  });
235
- let X = class extends N {
235
+ let j = class extends N {
236
236
  constructor(...t) {
237
- super(...t), et(this, E, new se([])), this.openShadow(tt), d(this, {
237
+ super(...t), je(this, E, new se([])), this.openShadow(et), p(this, {
238
238
  children: [
239
- te({
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
- re(this, E)
249
+ ae(this, E)
250
250
  ]
251
251
  });
252
252
  }
253
253
  appendContent(t) {
254
- re(this, E).current = [...re(this, E).current, t];
254
+ ae(this, E).current = [...ae(this, E).current, t];
255
255
  }
256
256
  };
257
257
  E = /* @__PURE__ */ new WeakMap();
258
- X = Xe([
259
- u("e-tweaker-string-manager")
260
- ], X);
261
- var rt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, nt = (t, e, r, n) => {
262
- for (var a = n > 1 ? void 0 : n ? at(e, r) : e, o = t.length - 1, s; o >= 0; o--)
263
- (s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
264
- return n && a && rt(e, r, a), 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
- }, b = (t, e, r) => (be(t, e, "read from private field"), r ? r.call(t) : e.get(t)), G = (t, e, r) => {
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
- }, 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, K;
273
- let j = class extends X {
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, s;
276
- super(...t), G(this, T, void 0), G(this, D, void 0), G(this, R, void 0), G(this, K, (_) => {
277
- const H = typeof _ == "string" ? parseFloat(_) || this.min : _, Ce = We(H, b(this, D), b(this, R));
278
- return this.toFixed(Ce);
279
- }), 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);
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 b(this, D);
282
+ return _(this, D);
283
283
  }
284
284
  get max() {
285
- return b(this, R);
285
+ return _(this, R);
286
286
  }
287
287
  get step() {
288
- return b(this, T);
288
+ return _(this, T);
289
289
  }
290
290
  toFixed(t) {
291
291
  var r;
292
- const e = ((r = b(this, T).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
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(b(this, K));
296
+ this.firstStore.addMiddleware(_(this, J));
297
297
  }
298
298
  disconnectedCallback() {
299
- this.firstStore.removeMiddleware(b(this, K));
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
- K = /* @__PURE__ */ new WeakMap();
306
- j = nt([
307
- u("e-tweaker-number-manager")
308
- ], j);
309
- var st = Object.defineProperty, it = Object.getOwnPropertyDescriptor, ot = (t, e, r, n) => {
310
- for (var a = n > 1 ? void 0 : n ? it(e, r) : e, o = t.length - 1, s; o >= 0; o--)
311
- (s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
312
- return n && a && st(e, r, a), 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 lt = w({
314
+ const ot = m({
315
315
  ":host": {
316
316
  width: "100%"
317
317
  },
318
318
  ".text-input": {
319
319
  width: "60px",
320
- marginRight: i.gapLarge.var,
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: i.borderRadius.var
331
+ borderRadius: s.borderRadius.var
332
332
  },
333
333
  ".range-input::-webkit-slider-thumb": {
334
334
  "-webkit-appearance": "none",
335
- height: `calc(${i.heightInput.var} * 0.7)`,
336
- width: i.borderRadius.var,
337
- borderRadius: i.borderRadius.var,
338
- backgroundColor: i.colorLight.var,
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: i.durationShort.var
340
+ transitionDuration: s.durationShort.var
341
341
  },
342
342
  ".range-input:focus::-webkit-slider-thumb": {
343
- backgroundColor: i.colorActive.var
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 he = class extends j {
352
+ let ce = class extends ee {
353
353
  constructor(...t) {
354
- super(...t), this.addStylesheet(lt), this.appendContent(
355
- te({
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
- he = ot([
372
- u("e-tweaker-range-manager")
373
- ], he);
374
- var ht = Object.defineProperty, ct = Object.getOwnPropertyDescriptor, dt = (t, e, r, n) => {
375
- for (var a = n > 1 ? void 0 : n ? ct(e, r) : e, o = t.length - 1, s; o >= 0; o--)
376
- (s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
377
- return n && a && ht(e, r, a), 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 pt = w({
379
+ const dt = m({
380
380
  "e-select": {
381
381
  width: "100%",
382
- "--arrow-color": i.colorLight.var
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: i.durationShort.var,
391
+ transitionDuration: s.durationShort.var,
392
392
  transitionProperty: "color"
393
393
  },
394
394
  "e-select-option:hover": {
395
- color: i.colorActive.var
395
+ color: s.colorActive.var
396
396
  },
397
397
  svg: {
398
398
  width: "16px",
399
399
  height: "16px",
400
- fill: i.colorLight.var,
400
+ fill: s.colorLight.var,
401
401
  transitionProperty: "transform",
402
- transitionDuration: i.durationShort.var
402
+ transitionDuration: s.durationShort.var
403
403
  },
404
404
  ".opened svg": {
405
405
  transform: "scaleY(-1)"
406
406
  }
407
407
  });
408
- let ce = class extends N {
408
+ let de = class extends N {
409
409
  constructor(...t) {
410
410
  var r, n;
411
- super(...t), this.openShadow(pt);
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
- d(this, {
414
- children: d("e-select", {
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
- d("e-select-head", {
420
+ p("e-select-head", {
421
421
  lightChildren: [
422
- $e({
422
+ Pe({
423
423
  "data-value-holder": ""
424
424
  })
425
425
  ]
426
426
  }),
427
427
  ...e.map(
428
- (a, o) => d("e-select-option", {
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
- ce = dt([
439
- u("e-tweaker-select-manager")
440
- ], ce);
441
- const ut = {
442
- boolean: ie,
443
- color: oe,
444
- link: le,
445
- number: j,
446
- range: he,
447
- select: ce,
448
- string: X
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 vt = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, ft = (t, e, r, n) => {
451
- for (var a = n > 1 ? void 0 : n ? gt(e, r) : e, o = t.length - 1, s; o >= 0; o--)
452
- (s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
453
- return n && a && vt(e, r, a), a;
454
- }, Se = (t, e, r) => {
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) => (Se(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (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) => (Se(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), v, W, L, I, F, J, V;
462
- const wt = w({
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: i.colorLight.var,
469
- gap: i.gapMedium.var
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: i.fontSizeMedium.var,
476
+ fontSize: s.fontSizeMedium.var,
477
477
  display: "flex",
478
478
  alignItems: "center",
479
- gap: i.gapExtraSmall.var
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: i.colorLight.var,
492
- transitionDuration: i.durationShort.var,
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: i.colorActive.var
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 ee = class extends ve {
507
+ let te = class extends fe {
508
508
  constructor(t) {
509
509
  var r, n, a, o;
510
- super(), C(this, v, []), C(this, W, void 0), C(this, L, void 0), C(this, I, !1), C(this, F, void 0), C(this, J, () => {
511
- $.current.find((s) => h(this, v).includes(s)) || this.remove();
512
- }), C(this, V, (s) => {
513
- 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((_) => {
514
- _.reset();
515
- }), s.preventDefault()));
516
- }), k(this, v, [t.store]), k(this, W, t.store.passport.name), k(this, L, h(this, W).split(".").slice(-1).toString());
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 ut[e](h(this, v)[0])), this.openShadow(wt), d(this, {
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
- m({
529
+ w({
530
530
  class: "head",
531
531
  children: [
532
- m({ class: "name", children: h(this, L) + ":" }),
533
- m({
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: _e,
538
+ children: me,
539
539
  onClick: () => {
540
- navigator.clipboard.writeText(h(this, v)[0].current);
540
+ navigator.clipboard.writeText(h(this, u)[0].current);
541
541
  }
542
542
  }),
543
543
  A({
544
544
  class: "head-button",
545
- children: me,
545
+ children: we,
546
546
  onClick: () => {
547
- h(this, v).forEach((s) => {
548
- s.reset();
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, v);
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, J)), addEventListener("keydown", h(this, V)), Re(this);
573
+ $.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), De(this);
574
574
  }
575
575
  disconnectedCallback() {
576
- $.unsubscribe(h(this, J)), removeEventListener("keydown", h(this, V));
576
+ $.unsubscribe(h(this, V)), removeEventListener("keydown", h(this, Y));
577
577
  }
578
578
  };
579
- v = /* @__PURE__ */ new WeakMap();
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
- ee = ft([
587
- u("e-tweaker-field")
588
- ], ee);
589
- var mt = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, bt = (t, e, r, n) => {
590
- for (var a = n > 1 ? void 0 : n ? _t(e, r) : e, o = t.length - 1, s; o >= 0; o--)
591
- (s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
592
- return n && a && mt(e, r, a), a;
593
- }, ye = (t, e, r) => {
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) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), x = (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
- }, ne = (t, e, r, n) => (ye(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), g, Y, c, B, q, de;
601
- const St = w({
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: i.borderRadius.var
605
+ borderRadius: s.borderRadius.var
606
606
  },
607
607
  ".head": {
608
608
  boxSizing: "border-box",
609
609
  width: "100%",
610
- height: i.tweakerFolderHeight.var,
611
- paddingLeft: i.gapMedium.var,
612
- paddingRight: i.gapMedium.var,
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: i.colorDarkAux.var,
617
- borderRadius: i.borderRadius.var
616
+ backgroundColor: s.colorDarkAux.var,
617
+ borderRadius: s.borderRadius.var
618
618
  },
619
619
  ".name": {
620
- fontSize: i.fontSizeLarge.var,
621
- color: i.colorLight.var
620
+ fontSize: s.fontSizeLarge.var,
621
+ color: s.colorLight.var
622
622
  },
623
623
  ".body": {
624
624
  transitionProperty: "height",
625
- transitionDuration: i.durationShort.var,
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: i.gapLarge.var,
631
+ padding: s.gapLarge.var,
632
632
  display: "grid",
633
- gap: i.gapMedium.var
633
+ gap: s.gapMedium.var
634
634
  },
635
635
  ".arrow": {
636
636
  width: "20px",
637
637
  height: "20px",
638
- fill: i.colorLight.var,
639
- transition: `transform ${i.durationShort.var}`
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 Te {
645
+ let z = class extends Ee {
646
646
  constructor(t) {
647
- super(), x(this, g, void 0), x(this, Y, new se(null)), x(this, c, new se([])), x(this, B, void 0), x(this, q, null), x(this, de, (e) => {
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, g) && !l(this, c).current.length && !n.length && this.remove();
654
- }), this.openShadow(St), ne(this, g, t.key), ne(this, B, new MutationObserver(l(this, de))), d(this, {
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, g)) : P.closePanel(l(this, g));
656
+ e.stopPropagation(), e.detail.opened ? P.openPanel(l(this, v)) : P.closePanel(l(this, v));
657
657
  },
658
658
  children: [
659
- m({
659
+ w({
660
660
  class: "wrapper",
661
661
  children: [
662
- m({
662
+ w({
663
663
  class: "head",
664
664
  children: [
665
- l(this, g) ? m({
665
+ l(this, v) ? w({
666
666
  class: "name",
667
- children: [l(this, g).split(".").slice(-1).toString()]
667
+ children: [l(this, v).split(".").slice(-1).toString()]
668
668
  }) : null,
669
- l(this, Y),
670
- d(De, {
669
+ l(this, B),
670
+ p(Te, {
671
671
  class: "arrow"
672
672
  })
673
673
  ]
674
674
  }),
675
- m({
675
+ w({
676
676
  class: "body",
677
- children: m({
677
+ children: w({
678
678
  class: "body-content",
679
679
  children: l(this, c),
680
- ref: (e) => ne(this, q, e.firstElementChild)
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, g);
689
+ return l(this, v);
690
690
  }
691
691
  get head() {
692
- return l(this, Y);
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, g)) && this.openAll({ skipTransition: !0 });
700
- }, 50), l(this, B).observe(l(this, q), {
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 ee ? e.addStore(t.store) : l(this, c).current = [
724
+ e instanceof te ? e.addStore(t.store) : l(this, c).current = [
725
725
  ...l(this, c).current,
726
- new ee({
726
+ new te({
727
727
  store: t.store
728
728
  })
729
729
  ];
730
730
  }
731
731
  }
732
732
  };
733
- g = /* @__PURE__ */ new WeakMap();
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
- de = /* @__PURE__ */ new WeakMap();
737
+ Q = /* @__PURE__ */ new WeakMap();
738
+ pe = /* @__PURE__ */ new WeakMap();
739
739
  z = bt([
740
- u("e-tweaker-folder")
740
+ f("e-tweaker-folder")
741
741
  ], z);
742
- var yt = Object.defineProperty, Ct = Object.getOwnPropertyDescriptor, kt = (t, e, r, n) => {
743
- for (var a = n > 1 ? void 0 : n ? Ct(e, r) : e, o = t.length - 1, s; o >= 0; o--)
744
- (s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
745
- return n && a && yt(e, r, a), a;
746
- }, xt = (t, e, r) => {
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
- }, fe = (t, e, r) => (xt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), $t = (t, e, r) => {
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
- }, Q;
754
- const Pt = w({
753
+ }, U, X;
754
+ const xt = m({
755
755
  ":host": {
756
+ fontFamily: "sans-serif",
756
757
  position: "absolute",
757
- top: i.tweakerOffset.var,
758
- right: i.tweakerOffset.var,
759
- width: i.tweakerWidth.var,
760
- backgroundColor: i.colorDark.var,
761
- borderRadius: i.borderRadius.var,
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: i.gapExtraSmall.var
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: i.colorLight.var,
782
+ fill: s.colorLight.var,
782
783
  transitionProperty: "fill",
783
- transitionDuration: i.durationShort.var
784
+ transitionDuration: s.durationShort.var
784
785
  },
785
786
  ".tweaker-button:hover": {
786
- fill: i.colorActive.var
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
- ${i.tweakerOffset.var} * 2 +
797
- ${i.tweakerFolderHeight.var}
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 ${Ee["<=mobile"]}`]: {
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
- ${i.tweakerFolderHeight.var}
820
+ ${s.tweakerFolderHeight.var}
820
821
  )`
821
822
  }
822
823
  }
823
824
  });
824
- let pe = class extends z {
825
+ let ue = class extends z {
825
826
  constructor() {
826
827
  super({
827
828
  key: ""
828
- }), $t(this, Q, Me(() => {
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(Pt), this.head.current = [
839
- m({
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: me,
850
+ children: we,
848
851
  onClick: () => {
849
852
  S.resetState();
850
853
  }
851
854
  }),
852
855
  A({
853
856
  class: ["tweaker-button"],
854
- children: [_e],
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: Le,
866
+ children: We,
864
867
  onClick: () => {
865
- Oe(
868
+ ke(
866
869
  S.projectName,
867
870
  S.getState()
868
871
  );
869
872
  }
870
873
  }),
871
- Pe({
874
+ Oe({
872
875
  class: "tweaker-button",
873
876
  children: [
874
- Ie,
875
- te({
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 _, H;
889
- const s = (H = (_ = o.target) == null ? void 0 : _.result) == null ? void 0 : H.toString();
890
- s && S.loadState(s);
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(fe(this, Q));
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", we(this, U)), P.save();
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
- ue = Et([
952
- u("e-studio")
916
+ X = /* @__PURE__ */ new WeakMap();
917
+ ue = Ct([
918
+ f("e-tweaker")
953
919
  ], ue);
954
- ke && document.body.appendChild(new ue());
955
- export {
956
- ue as StudioElement
957
- };
920
+ Ce && document.body.appendChild(new ue());