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.
Files changed (65) hide show
  1. package/lib/abstract-elements/index.cjs +1 -1
  2. package/lib/abstract-elements/index.js +10 -14
  3. package/lib/accordion/AccordionElement.d.ts +1 -1
  4. package/lib/accordion/index.cjs +1 -1
  5. package/lib/accordion/index.js +25 -26
  6. package/lib/canvas/index.cjs +1 -1
  7. package/lib/canvas/index.js +15 -15
  8. package/lib/connector/index.cjs +1 -1
  9. package/lib/connector/index.d.ts +4 -4
  10. package/lib/connector/index.js +34 -32
  11. package/lib/{createStylesheet-C1rimcGc.cjs → createStylesheet-BoJwXvjE.cjs} +1 -1
  12. package/lib/{createStylesheet-BSXZrWW6.js → createStylesheet-DSgkNlUZ.js} +1 -1
  13. package/lib/element-constructor/ElementConstructor.d.ts +13 -15
  14. package/lib/element-constructor/index.cjs +1 -1
  15. package/lib/element-constructor/index.js +91 -89
  16. package/lib/element-constructor/tags.d.ts +3 -1
  17. package/lib/events-Crwi8fz6.cjs +1 -0
  18. package/lib/{events-CoqmkUxo.js → events-_C2CztxR.js} +1 -1
  19. package/lib/{index-dBwVZz_v.js → index-228VqUsZ.js} +66 -75
  20. package/lib/index-Cv4y7_7y.cjs +9 -0
  21. package/lib/modal/index.cjs +1 -1
  22. package/lib/modal/index.js +33 -39
  23. package/lib/scroll/index.cjs +1 -1
  24. package/lib/scroll/index.js +66 -68
  25. package/lib/select/SelectElement.d.ts +1 -1
  26. package/lib/select/index.cjs +1 -1
  27. package/lib/select/index.d.ts +1 -1
  28. package/lib/select/index.js +1 -1
  29. package/lib/store/index.cjs +1 -1
  30. package/lib/store/index.js +111 -48
  31. package/lib/studio/index.cjs +6 -6
  32. package/lib/studio/index.js +313 -360
  33. package/lib/tags-920hsh9U.cjs +1 -0
  34. package/lib/tags-kZqsS_nJ.js +793 -0
  35. package/lib/theme/index.cjs +1 -1
  36. package/lib/theme/index.js +1 -1
  37. package/lib/ticker/index.js +14 -4
  38. package/lib/utils/events.d.ts +1 -1
  39. package/lib/utils/index.cjs +1 -1
  40. package/lib/utils/index.d.ts +1 -1
  41. package/lib/utils/index.js +1 -1
  42. package/lib/utils/ts-utility.d.ts +2 -2
  43. package/package.json +1 -9
  44. package/lib/Composed-C2Vv1xxR.cjs +0 -1
  45. package/lib/Composed-DhtYBEmo.js +0 -79
  46. package/lib/events-D68xg4dy.cjs +0 -1
  47. package/lib/index-vI4hmrI8.cjs +0 -9
  48. package/lib/jsx/ComponentElement.d.ts +0 -17
  49. package/lib/jsx/h.d.ts +0 -8
  50. package/lib/jsx/hooks/animation-frame.d.ts +0 -5
  51. package/lib/jsx/hooks/animation.d.ts +0 -3
  52. package/lib/jsx/hooks/basic.d.ts +0 -4
  53. package/lib/jsx/hooks/element-resize.d.ts +0 -3
  54. package/lib/jsx/hooks/intersection.d.ts +0 -3
  55. package/lib/jsx/hooks/store.d.ts +0 -6
  56. package/lib/jsx/hooks/style.d.ts +0 -2
  57. package/lib/jsx/hooks/utils.d.ts +0 -4
  58. package/lib/jsx/hooks/window-resize.d.ts +0 -2
  59. package/lib/jsx/index.cjs +0 -1
  60. package/lib/jsx/index.d.ts +0 -11
  61. package/lib/jsx/index.js +0 -193
  62. package/lib/jsx/render.d.ts +0 -2
  63. package/lib/jsx/type.d.ts +0 -187
  64. package/lib/tags-D-lzPz_v.js +0 -748
  65. package/lib/tags-DkAbVUQP.cjs +0 -1
@@ -1,46 +1,46 @@
1
- var fe = (t, e, r) => {
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) => (fe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), G = (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, s) => (fe(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
10
- import { i as xe } from "../browser-0zX67oeU.js";
11
- import { CustomElement as ge, define as p } from "../custom-element/index.js";
12
- import { s as S, S as ie, a as $ } from "../Store-JOKrNVEr.js";
13
- import { e as m, a0 as N, a as $e, aY as re, aB as Pe, D as w, p as I, a3 as Oe } from "../tags-D-lzPz_v.js";
14
- import { c as f } from "../createStylesheet-BSXZrWW6.js";
15
- import { c as Me } from "../file-lxi_oXJf.js";
16
- import { d as Ee } from "../function-C10DGppn.js";
17
- import { A as Te } from "../Animated-Br_4OSth.js";
18
- import { a as De } from "../Viewport-CXY5xcGJ.js";
19
- import { AccordionElement as Re } from "../accordion/index.js";
20
- import { a as We } from "../index-dBwVZz_v.js";
21
- import { d as Le } from "../events-CoqmkUxo.js";
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 Fe } from "../math-BOBiC4TN.js";
24
- 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>';
25
- var O, g;
26
- class ze {
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, g, []);
29
+ G(this, f, []);
30
30
  M(this, O, S.projectName + "-studio");
31
31
  }
32
32
  openPanel(e) {
33
- d(this, g).includes(e) || d(this, g).push(e);
33
+ d(this, f).includes(e) || d(this, f).push(e);
34
34
  }
35
35
  closePanel(e) {
36
- M(this, g, d(this, g).filter((r) => r !== e));
36
+ M(this, f, d(this, f).filter((r) => r !== e));
37
37
  }
38
38
  isPanelOpened(e) {
39
- return d(this, g).includes(e);
39
+ return d(this, f).includes(e);
40
40
  }
41
41
  save() {
42
42
  const e = {
43
- openedPanels: d(this, g)
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, g, r.openedPanels);
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(), g = new WeakMap();
60
- const P = new ze();
59
+ O = new WeakMap(), f = new WeakMap();
60
+ const P = new Fe();
61
61
  var y;
62
- class H extends ge {
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((s) => {
79
- s.current = r;
78
+ d(this, y).forEach((n) => {
79
+ n.current = r;
80
80
  });
81
81
  }
82
82
  }
83
83
  y = new WeakMap();
84
- var Ne = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ze = (t, e, r, s) => {
85
- for (var a = s > 1 ? void 0 : s ? He(e, r) : e, o = t.length - 1, n; o >= 0; o--)
86
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
87
- return s && a && Ne(e, r, a), a;
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 Ge = f({
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 oe = class extends H {
105
+ let ie = class extends H {
106
106
  constructor(...t) {
107
- super(...t), this.openShadow(Ge), m(this, {
108
- shadowChildren: [
107
+ super(...t), this.openShadow(Ze), p(this, {
108
+ children: [
109
109
  N({
110
- attributes: {
111
- type: "checkbox"
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
- oe = Ze([
129
- p("e-tweaker-boolean-manager")
130
- ], oe);
131
- var Ke = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ve = (t, e, r, s) => {
132
- for (var a = s > 1 ? void 0 : s ? Je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
133
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
134
- return s && a && Ke(e, r, a), a;
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 Ye = f({
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 le = class extends H {
155
+ let oe = class extends H {
160
156
  constructor(...t) {
161
- super(...t), this.openShadow(Ye), m(this, {
162
- shadowChildren: [
157
+ super(...t), this.openShadow(Ve), p(this, {
158
+ children: [
163
159
  N({
164
- attributes: {
165
- type: "color",
166
- value: this.firstStore
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
- le = Ve([
179
- p("e-tweaker-color-manager")
180
- ], le);
181
- var Be = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, Qe = (t, e, r, s) => {
182
- for (var a = s > 1 ? void 0 : s ? qe(e, r) : e, o = t.length - 1, n; o >= 0; o--)
183
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
184
- return s && a && Be(e, r, a), a;
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 Ue = f({
178
+ const Qe = w({
187
179
  a: {
188
180
  color: "inherit"
189
181
  }
190
182
  });
191
- let he = class extends H {
183
+ let le = class extends H {
192
184
  constructor(...t) {
193
185
  var e, r;
194
- super(...t), this.openShadow(Ue), m(this, {
195
- shadowChildren: [
196
- $e({
197
- attributes: {
198
- href: this.firstStore,
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
- he = Qe([
208
- p("e-tweaker-link-manager")
209
- ], he);
210
- var Xe = Object.defineProperty, je = Object.getOwnPropertyDescriptor, et = (t, e, r, s) => {
211
- for (var a = s > 1 ? void 0 : s ? je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
212
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
213
- return s && a && Xe(e, r, a), a;
214
- }, tt = (t, e, r) => {
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
- }, ae = (t, e, r) => (tt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), rt = (t, e, r) => {
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 at = f({
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), rt(this, E, new ie([])), this.openShadow(at), m(this, {
249
- shadowChildren: [
238
+ super(...t), tt(this, E, new se([])), this.openShadow(rt), p(this, {
239
+ children: [
250
240
  N({
251
241
  class: "text-input",
252
- attributes: {
253
- type: "string",
254
- value: this.firstStore
255
- },
256
- events: {
257
- change: (e) => {
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
- ae(this, E)
250
+ re(this, E)
265
251
  ]
266
252
  });
267
253
  }
268
254
  appendContent(t) {
269
- ae(this, E).current = [...ae(this, E).current, t];
255
+ re(this, E).current = [...re(this, E).current, t];
270
256
  }
271
257
  };
272
258
  E = /* @__PURE__ */ new WeakMap();
273
- j = et([
274
- p("e-tweaker-string-manager")
259
+ j = je([
260
+ u("e-tweaker-string-manager")
275
261
  ], j);
276
- var st = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, it = (t, e, r, s) => {
277
- for (var a = s > 1 ? void 0 : s ? nt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
278
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
279
- return s && a && st(e, r, a), a;
280
- }, Se = (t, e, r) => {
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
- }, _ = (t, e, r) => (Se(t, e, "read from private field"), r ? r.call(t) : e.get(t)), K = (t, e, r) => {
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
- }, se = (t, e, r, s) => (Se(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), T, D, R, J;
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, s, a, o, n;
291
- super(...t), K(this, T, void 0), K(this, D, void 0), K(this, R, void 0), K(this, J, (b) => {
292
- const Z = typeof b == "string" ? parseFloat(b) || this.min : b, ke = Fe(Z, _(this, D), _(this, R));
293
- return this.toFixed(ke);
294
- }), se(this, D, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), se(this, R, ((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);
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 _(this, D);
283
+ return b(this, D);
298
284
  }
299
285
  get max() {
300
- return _(this, R);
286
+ return b(this, R);
301
287
  }
302
288
  get step() {
303
- return _(this, T);
289
+ return b(this, T);
304
290
  }
305
291
  toFixed(t) {
306
292
  var r;
307
- const e = ((r = _(this, T).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
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(_(this, J));
297
+ this.firstStore.addMiddleware(b(this, J));
312
298
  }
313
299
  disconnectedCallback() {
314
- this.firstStore.removeMiddleware(_(this, J));
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 = it([
322
- p("e-tweaker-number-manager")
307
+ ee = st([
308
+ u("e-tweaker-number-manager")
323
309
  ], ee);
324
- var ot = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, ht = (t, e, r, s) => {
325
- for (var a = s > 1 ? void 0 : s ? lt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
326
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
327
- return s && a && ot(e, r, a), a;
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 ct = f({
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 ce = class extends ee {
353
+ let he = class extends ee {
368
354
  constructor(...t) {
369
- super(...t), this.addStylesheet(ct), this.appendContent(
355
+ super(...t), this.addStylesheet(ht), this.appendContent(
370
356
  N({
371
357
  class: "range-input",
372
- attributes: {
373
- type: "range",
374
- min: this.min,
375
- max: this.max,
376
- step: this.step,
377
- value: this.firstStore
378
- },
379
- events: {
380
- input: (e) => {
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
- ce = ht([
391
- p("e-tweaker-range-manager")
392
- ], ce);
393
- var dt = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, ut = (t, e, r, s) => {
394
- for (var a = s > 1 ? void 0 : s ? pt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
395
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
396
- return s && a && dt(e, r, a), a;
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 vt = f({
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 de = class extends H {
409
+ let ce = class extends H {
428
410
  constructor(...t) {
429
- var r, s;
430
- super(...t), this.openShadow(vt);
431
- const e = ((s = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : s.variants) || [];
432
- m(this, {
433
- shadowChildren: re("e-select", {
434
- attributes: {
435
- value: this.firstStore
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
- events: {
438
- change: (a) => {
439
- this.updateStores(a.currentTarget.value);
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) => re("e-select-option", {
454
- children: a,
455
- attributes: {
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
- de = ut([
466
- p("e-tweaker-select-manager")
467
- ], de);
468
- const gt = {
469
- boolean: oe,
470
- color: le,
471
- link: he,
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: ce,
474
- select: de,
447
+ range: he,
448
+ select: ce,
475
449
  string: j
476
450
  };
477
- var ft = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, mt = (t, e, r, s) => {
478
- for (var a = s > 1 ? void 0 : s ? wt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
479
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
480
- return s && a && ft(e, r, a), a;
481
- }, ye = (t, e, r) => {
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) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (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, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), u, W, L, F, A, V, Y;
489
- const bt = f({
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 ge {
508
+ let te = class extends ve {
535
509
  constructor(t) {
536
- var r, s, a, o;
537
- super(), C(this, u, []), C(this, W, void 0), C(this, L, void 0), C(this, F, !1), C(this, A, void 0), C(this, V, () => {
538
- $.current.find((n) => h(this, u).includes(n)) || this.remove();
539
- }), C(this, Y, (n) => {
540
- 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) => {
541
- b.reset();
542
- }), n.preventDefault()));
543
- }), k(this, u, [t.store]), k(this, W, t.store.passport.name), k(this, L, h(this, W).split(".").slice(-1).toString());
544
- const e = ((s = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : s.type) || "string";
545
- k(this, A, new gt[e](h(this, u)[0])), this.openShadow(bt), m(this, {
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
- events: {
550
- pointerleave: () => {
551
- k(this, F, !1);
552
- },
553
- pointerenter: () => {
554
- k(this, F, !0);
555
- }
523
+ onPointerleave: () => {
524
+ k(this, I, !1);
556
525
  },
557
- shadowChildren: [
558
- w({
526
+ onPointerenter: () => {
527
+ k(this, I, !0);
528
+ },
529
+ children: [
530
+ m({
559
531
  class: "head",
560
532
  children: [
561
- w({ class: "name", children: h(this, L) + ":" }),
562
- w({
533
+ m({ class: "name", children: h(this, L) + ":" }),
534
+ m({
563
535
  class: "head-buttons",
564
536
  children: [
565
- I({
537
+ F({
566
538
  class: "head-button",
567
539
  children: _e,
568
- events: {
569
- click: () => {
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
- I({
544
+ F({
575
545
  class: "head-button",
576
- children: be,
577
- events: {
578
- click: () => {
579
- h(this, u).forEach((n) => {
580
- n.reset();
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, u);
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)), Le(this);
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
- u = /* @__PURE__ */ new WeakMap();
580
+ v = /* @__PURE__ */ new WeakMap();
613
581
  W = /* @__PURE__ */ new WeakMap();
614
582
  L = /* @__PURE__ */ new WeakMap();
615
- F = /* @__PURE__ */ new WeakMap();
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 = mt([
620
- p("e-tweaker-field")
587
+ te = wt([
588
+ u("e-tweaker-field")
621
589
  ], te);
622
- var _t = Object.defineProperty, St = Object.getOwnPropertyDescriptor, yt = (t, e, r, s) => {
623
- for (var a = s > 1 ? void 0 : s ? St(e, r) : e, o = t.length - 1, n; o >= 0; o--)
624
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
625
- return s && a && _t(e, r, a), a;
626
- }, Ce = (t, e, r) => {
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) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), x = (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, s) => (Ce(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), v, B, c, q, Q, pe;
634
- const Ct = f({
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 Re {
646
+ let z = class extends De {
679
647
  constructor(t) {
680
- super(), x(this, v, void 0), x(this, B, new ie(null)), x(this, c, new ie([])), x(this, q, void 0), x(this, Q, null), x(this, pe, (e) => {
681
- let r = [], s = [];
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], s = [...s, ...a.addedNodes];
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, v) && !l(this, c).current.length && !s.length && this.remove();
687
- }), this.openShadow(Ct), ne(this, v, t.key), ne(this, q, new MutationObserver(l(this, pe))), m(this, {
688
- events: {
689
- "e-accordion-item-toggle": (e) => {
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
- shadowChildren: [
694
- w({
659
+ children: [
660
+ m({
695
661
  class: "wrapper",
696
662
  children: [
697
- w({
663
+ m({
698
664
  class: "head",
699
665
  children: [
700
- l(this, v) ? w({
666
+ l(this, g) ? m({
701
667
  class: "name",
702
- children: [l(this, v).split(".").slice(-1).toString()]
668
+ children: [l(this, g).split(".").slice(-1).toString()]
703
669
  }) : null,
704
670
  l(this, B),
705
- m(We, {
671
+ p(Re, {
706
672
  class: "arrow"
707
673
  })
708
674
  ]
709
675
  }),
710
- w({
676
+ m({
711
677
  class: "body",
712
- children: w({
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, v);
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, v)) && this.openAll({ skipTransition: !0 });
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("."), s = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, c).current.find((o) => o.key === s);
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: s,
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
- v = /* @__PURE__ */ new WeakMap();
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
- pe = /* @__PURE__ */ new WeakMap();
774
- z = yt([
775
- p("e-tweaker-folder")
739
+ de = /* @__PURE__ */ new WeakMap();
740
+ z = St([
741
+ u("e-tweaker-folder")
776
742
  ], z);
777
- var kt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, $t = (t, e, r, s) => {
778
- for (var a = s > 1 ? void 0 : s ? xt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
779
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
780
- return s && a && kt(e, r, a), a;
781
- }, Pt = (t, e, r) => {
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
- }, we = (t, e, r) => (Pt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Ot = (t, e, r) => {
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 Mt = f({
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 ${De["<=mobile"]}`]: {
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 ue = class extends z {
824
+ let pe = class extends z {
858
825
  constructor() {
859
826
  super({
860
827
  key: ""
861
- }), Ot(this, U, Ee(() => {
828
+ }), Pt(this, U, Me(() => {
862
829
  $.current.forEach((t) => {
863
- if (!(t instanceof Te)) {
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(Mt), this.head.current = [
872
- w({
838
+ }, 10)), this.addStylesheet(Ot), this.head.current = [
839
+ m({
873
840
  class: "tweaker-buttons",
874
- events: {
875
- click: (t) => {
876
- t.stopPropagation();
877
- }
841
+ onClick: (t) => {
842
+ t.stopPropagation();
878
843
  },
879
844
  children: [
880
- I({
845
+ F({
881
846
  class: "tweaker-button",
882
- children: be,
883
- events: {
884
- click: () => {
885
- S.resetState();
886
- }
847
+ children: me,
848
+ onClick: () => {
849
+ S.resetState();
887
850
  }
888
851
  }),
889
- I({
852
+ F({
890
853
  class: ["tweaker-button"],
891
854
  children: [_e],
892
- events: {
893
- click: () => {
894
- navigator.clipboard.writeText(
895
- JSON.stringify(S.getState())
896
- );
897
- }
855
+ onClick: () => {
856
+ navigator.clipboard.writeText(
857
+ JSON.stringify(S.getState())
858
+ );
898
859
  }
899
860
  }),
900
- I({
861
+ F({
901
862
  class: "tweaker-button",
902
- children: Ae,
903
- events: {
904
- click: () => {
905
- Me(
906
- S.projectName,
907
- S.getState()
908
- );
909
- }
863
+ children: Ie,
864
+ onClick: () => {
865
+ Oe(
866
+ S.projectName,
867
+ S.getState()
868
+ );
910
869
  }
911
870
  }),
912
- Oe({
871
+ Pe({
913
872
  class: "tweaker-button",
914
873
  children: [
915
- Ie,
874
+ Ae,
916
875
  N({
917
- attributes: {
918
- type: "file"
919
- },
876
+ type: "file",
920
877
  style: {
921
878
  display: "none"
922
879
  },
923
- events: {
924
- change: (t) => {
925
- const e = t.currentTarget;
926
- e.onchange = () => {
927
- var s;
928
- const r = (s = e.files) == null ? void 0 : s[0];
929
- if (r) {
930
- const a = new FileReader();
931
- a.onload = (o) => {
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);
935
- }, a.readAsText(r);
936
- }
937
- e.onchange = null;
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
- events: {
944
- click: () => {
945
- }
898
+ onClick: () => {
946
899
  }
947
900
  })
948
901
  ]
949
902
  })
950
- ], this.addEventListener("e-accordion-item-toggle", (t) => {
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(we(this, U));
908
+ super.connectedCallback(), $.subscribe(fe(this, U));
956
909
  }
957
910
  disconnectedCallback() {
958
- super.disconnectedCallback(), $.unsubscribe(we(this, U));
911
+ super.disconnectedCallback(), $.unsubscribe(fe(this, U));
959
912
  }
960
913
  };
961
914
  U = /* @__PURE__ */ new WeakMap();
962
- ue = $t([
963
- p("e-tweaker")
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--)
967
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
968
- return s && a && Et(e, r, a), a;
969
- }, Rt = (t, e, r) => {
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
- }, me = (t, e, r) => (Rt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Wt = (t, e, r) => {
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 Lt = f({
930
+ const Wt = w({
978
931
  ":host": {
979
932
  fontFamily: "sans-serif"
980
933
  }
981
934
  });
982
- let ve = class extends ge {
935
+ let ue = class extends ve {
983
936
  constructor() {
984
- super(), Wt(this, X, () => {
937
+ super(), Rt(this, X, () => {
985
938
  P.save();
986
- }), this.openShadow(Lt), P.load(), m(this, {
987
- shadowChildren: [new ue()]
939
+ }), this.openShadow(Wt), P.load(), p(this, {
940
+ children: [new pe()]
988
941
  });
989
942
  }
990
943
  connectedCallback() {
991
- window.addEventListener("beforeunload", me(this, X));
944
+ window.addEventListener("beforeunload", we(this, X));
992
945
  }
993
946
  disconnectedCallback() {
994
- window.removeEventListener("beforeunload", me(this, X)), P.save();
947
+ window.removeEventListener("beforeunload", we(this, X)), P.save();
995
948
  }
996
949
  };
997
950
  X = /* @__PURE__ */ new WeakMap();
998
- ve = Dt([
999
- p("e-studio")
1000
- ], ve);
1001
- xe && document.body.appendChild(new ve());
951
+ ue = Tt([
952
+ u("e-studio")
953
+ ], ue);
954
+ ke && document.body.appendChild(new ue());
1002
955
  export {
1003
- ve as StudioElement
956
+ ue as StudioElement
1004
957
  };