aptechka 0.1.6 → 0.1.8

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 (68) hide show
  1. package/lib/Animated-Bf-gPIQM.cjs +1 -0
  2. package/lib/{Animated-CJcYqJzq.js → Animated-Br_4OSth.js} +36 -35
  3. package/lib/{Damped-AHRBHNEQ.cjs → Damped-BwpMU9Gi.cjs} +1 -1
  4. package/lib/{Damped-Csj-9_gH.js → Damped-urvryQLo.js} +1 -1
  5. package/lib/abstract-elements/index.cjs +1 -1
  6. package/lib/abstract-elements/index.js +11 -14
  7. package/lib/accordion/AccordionElement.d.ts +1 -1
  8. package/lib/accordion/index.cjs +1 -1
  9. package/lib/accordion/index.js +25 -26
  10. package/lib/animation/index.cjs +1 -1
  11. package/lib/animation/index.js +2 -2
  12. package/lib/canvas/index.cjs +1 -1
  13. package/lib/canvas/index.js +18 -18
  14. package/lib/connector/index.cjs +1 -1
  15. package/lib/connector/index.d.ts +1 -2
  16. package/lib/connector/index.js +31 -31
  17. package/lib/createStylesheet-BsVHqHhr.cjs +1 -0
  18. package/lib/createStylesheet-ITfBHk7A.js +8 -0
  19. package/lib/element-constructor/ElementConstructor.d.ts +27 -41
  20. package/lib/element-constructor/index.cjs +1 -1
  21. package/lib/element-constructor/index.d.ts +1 -2
  22. package/lib/element-constructor/index.js +122 -639
  23. package/lib/element-constructor/knownSvgTags.d.ts +1 -0
  24. package/lib/element-constructor/tags.d.ts +119 -0
  25. package/lib/events-Crwi8fz6.cjs +1 -0
  26. package/lib/{events-CoqmkUxo.js → events-_C2CztxR.js} +1 -1
  27. package/lib/index-Bt91QUTY.cjs +9 -0
  28. package/lib/{index-DgtdcBEI.js → index-COirQu7j.js} +83 -92
  29. package/lib/modal/index.cjs +1 -1
  30. package/lib/modal/index.js +33 -39
  31. package/lib/scroll/index.cjs +1 -1
  32. package/lib/scroll/index.js +82 -85
  33. package/lib/select/SelectElement.d.ts +1 -1
  34. package/lib/select/index.cjs +1 -1
  35. package/lib/select/index.d.ts +1 -1
  36. package/lib/select/index.js +1 -1
  37. package/lib/store/Derived.d.ts +1 -1
  38. package/lib/studio/index.cjs +6 -6
  39. package/lib/studio/index.js +322 -369
  40. package/lib/tags-8Y7LSTwg.js +779 -0
  41. package/lib/tags-pcim-Cws.cjs +1 -0
  42. package/lib/theme/index.cjs +1 -1
  43. package/lib/theme/index.js +6 -6
  44. package/lib/utils/events.d.ts +1 -1
  45. package/lib/utils/index.cjs +1 -1
  46. package/lib/utils/index.d.ts +1 -1
  47. package/lib/utils/index.js +1 -1
  48. package/lib/utils/ts-utility.d.ts +2 -2
  49. package/package.json +1 -9
  50. package/lib/Animated-DyZuTEQE.cjs +0 -1
  51. package/lib/ElementConstructor-9f-12v7T.cjs +0 -1
  52. package/lib/ElementConstructor-CoKM2CTK.js +0 -228
  53. package/lib/createStylesheet-BON7aJYs.js +0 -10
  54. package/lib/createStylesheet-uicRVW05.cjs +0 -1
  55. package/lib/element-constructor/htmlTags.d.ts +0 -115
  56. package/lib/element-constructor/svgTags.d.ts +0 -64
  57. package/lib/events-D68xg4dy.cjs +0 -1
  58. package/lib/htmlTags-BCNUG7oK.js +0 -683
  59. package/lib/htmlTags-BSQys9wH.cjs +0 -1
  60. package/lib/index-i_Ki9M-w.cjs +0 -9
  61. package/lib/jsx/ComponentElement.d.ts +0 -17
  62. package/lib/jsx/h.d.ts +0 -8
  63. package/lib/jsx/hooks.d.ts +0 -25
  64. package/lib/jsx/index.cjs +0 -1
  65. package/lib/jsx/index.d.ts +0 -4
  66. package/lib/jsx/index.js +0 -116
  67. package/lib/jsx/render.d.ts +0 -2
  68. package/lib/jsx/type.d.ts +0 -186
@@ -1,47 +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 { e as m } from "../ElementConstructor-CoKM2CTK.js";
13
- import { c as f } from "../createStylesheet-BON7aJYs.js";
14
- import { s as S, S as ie, a as $ } from "../Store-JOKrNVEr.js";
15
- import { c as $e } from "../file-lxi_oXJf.js";
16
- import { d as Pe } from "../function-C10DGppn.js";
17
- import { _ as N, a as Oe, aW as re, az as Me, C as w, p as I, a1 as Ee } from "../htmlTags-BCNUG7oK.js";
18
- import { A as Te } from "../Animated-CJcYqJzq.js";
19
- import { a as De } from "../Viewport-CXY5xcGJ.js";
20
- import { AccordionElement as We } from "../accordion/index.js";
21
- import { a as Re } from "../index-DgtdcBEI.js";
22
- import { d as Le } from "../events-CoqmkUxo.js";
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-8Y7LSTwg.js";
14
+ import { c as w } from "../createStylesheet-ITfBHk7A.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-COirQu7j.js";
21
+ import { d as We } from "../events-_C2CztxR.js";
23
22
  import { aptechkaTheme as i } from "../theme/index.js";
24
- import { c as Fe } from "../math-BOBiC4TN.js";
25
- const be = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', _e = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', Ae = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', Ie = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>';
26
- var O, g;
27
- class ze {
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 {
28
27
  constructor() {
29
28
  G(this, O, "");
30
- G(this, g, []);
29
+ G(this, f, []);
31
30
  M(this, O, S.projectName + "-studio");
32
31
  }
33
32
  openPanel(e) {
34
- d(this, g).includes(e) || d(this, g).push(e);
33
+ d(this, f).includes(e) || d(this, f).push(e);
35
34
  }
36
35
  closePanel(e) {
37
- M(this, g, d(this, g).filter((r) => r !== e));
36
+ M(this, f, d(this, f).filter((r) => r !== e));
38
37
  }
39
38
  isPanelOpened(e) {
40
- return d(this, g).includes(e);
39
+ return d(this, f).includes(e);
41
40
  }
42
41
  save() {
43
42
  const e = {
44
- openedPanels: d(this, g)
43
+ openedPanels: d(this, f)
45
44
  };
46
45
  localStorage.setItem(d(this, O), JSON.stringify(e)), S.saveState();
47
46
  }
@@ -51,16 +50,16 @@ class ze {
51
50
  if (e)
52
51
  try {
53
52
  const r = JSON.parse(e);
54
- r.openedPanels && M(this, g, r.openedPanels);
53
+ r.openedPanels && M(this, f, r.openedPanels);
55
54
  } catch (r) {
56
55
  console.error(r);
57
56
  }
58
57
  }
59
58
  }
60
- O = new WeakMap(), g = new WeakMap();
61
- const P = new ze();
59
+ O = new WeakMap(), f = new WeakMap();
60
+ const P = new Fe();
62
61
  var y;
63
- class H extends ge {
62
+ class H extends ve {
64
63
  constructor(...r) {
65
64
  super();
66
65
  G(this, y, void 0);
@@ -76,18 +75,18 @@ class H extends ge {
76
75
  return d(this, y);
77
76
  }
78
77
  updateStores(r) {
79
- d(this, y).forEach((s) => {
80
- s.current = r;
78
+ d(this, y).forEach((n) => {
79
+ n.current = r;
81
80
  });
82
81
  }
83
82
  }
84
83
  y = new WeakMap();
85
- var Ne = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ze = (t, e, r, s) => {
86
- for (var a = s > 1 ? void 0 : s ? He(e, r) : e, o = t.length - 1, n; o >= 0; o--)
87
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
88
- 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;
89
88
  };
90
- const Ge = f({
89
+ const Ze = w({
91
90
  ":host": {
92
91
  width: "100%",
93
92
  display: "inline-flex",
@@ -103,18 +102,14 @@ const Ge = f({
103
102
  accentColor: i.colorLight.var
104
103
  }
105
104
  });
106
- let oe = class extends H {
105
+ let ie = class extends H {
107
106
  constructor(...t) {
108
- super(...t), this.openShadow(Ge), m(this, {
109
- shadowChildren: [
107
+ super(...t), this.openShadow(Ze), p(this, {
108
+ children: [
110
109
  N({
111
- attributes: {
112
- type: "checkbox"
113
- },
114
- events: {
115
- change: (e) => {
116
- this.updateStores(e.currentTarget.checked);
117
- }
110
+ type: "checkbox",
111
+ onChange: (e) => {
112
+ this.updateStores(e.currentTarget.checked);
118
113
  },
119
114
  ref: (e) => {
120
115
  this.firstStore.subscribe((r) => {
@@ -126,15 +121,15 @@ let oe = class extends H {
126
121
  });
127
122
  }
128
123
  };
129
- oe = Ze([
130
- p("e-tweaker-boolean-manager")
131
- ], oe);
132
- var Ke = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ve = (t, e, r, s) => {
133
- for (var a = s > 1 ? void 0 : s ? Je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
134
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
135
- 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;
136
131
  };
137
- const Ye = f({
132
+ const Ve = w({
138
133
  ":host": {
139
134
  width: "100%",
140
135
  display: "inline-flex",
@@ -157,70 +152,64 @@ const Ye = f({
157
152
  height: `calc(${i.heightInput.var} * 0.93)`
158
153
  }
159
154
  });
160
- let le = class extends H {
155
+ let oe = class extends H {
161
156
  constructor(...t) {
162
- super(...t), this.openShadow(Ye), m(this, {
163
- shadowChildren: [
157
+ super(...t), this.openShadow(Ve), p(this, {
158
+ children: [
164
159
  N({
165
- attributes: {
166
- type: "color",
167
- value: this.firstStore
168
- },
169
- events: {
170
- input: (e) => {
171
- this.updateStores(e.currentTarget.value);
172
- }
160
+ type: "color",
161
+ value: this.firstStore,
162
+ onInput: (e) => {
163
+ this.updateStores(e.currentTarget.value);
173
164
  }
174
165
  })
175
166
  ]
176
167
  });
177
168
  }
178
169
  };
179
- le = Ve([
180
- p("e-tweaker-color-manager")
181
- ], le);
182
- var qe = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, Qe = (t, e, r, s) => {
183
- for (var a = s > 1 ? void 0 : s ? Be(e, r) : e, o = t.length - 1, n; o >= 0; o--)
184
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
185
- return s && a && qe(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;
186
177
  };
187
- const Ue = f({
178
+ const Qe = w({
188
179
  a: {
189
180
  color: "inherit"
190
181
  }
191
182
  });
192
- let he = class extends H {
183
+ let le = class extends H {
193
184
  constructor(...t) {
194
185
  var e, r;
195
- super(...t), this.openShadow(Ue), m(this, {
196
- shadowChildren: [
197
- Oe({
198
- attributes: {
199
- href: this.firstStore,
200
- target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank"
201
- },
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",
202
191
  children: this.firstStore
203
192
  })
204
193
  ]
205
194
  });
206
195
  }
207
196
  };
208
- he = Qe([
209
- p("e-tweaker-link-manager")
210
- ], he);
211
- var Xe = Object.defineProperty, je = Object.getOwnPropertyDescriptor, et = (t, e, r, s) => {
212
- for (var a = s > 1 ? void 0 : s ? je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
213
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
214
- return s && a && Xe(e, r, a), a;
215
- }, 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) => {
216
205
  if (!e.has(t))
217
206
  throw TypeError("Cannot " + r);
218
- }, 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) => {
219
208
  if (e.has(t))
220
209
  throw TypeError("Cannot add the same private member more than once");
221
210
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
222
211
  }, E;
223
- const at = f({
212
+ const rt = w({
224
213
  ":host": {
225
214
  width: "100%",
226
215
  display: "flex",
@@ -246,88 +235,84 @@ const at = f({
246
235
  });
247
236
  let j = class extends H {
248
237
  constructor(...t) {
249
- super(...t), rt(this, E, new ie([])), this.openShadow(at), m(this, {
250
- shadowChildren: [
238
+ super(...t), tt(this, E, new se([])), this.openShadow(rt), p(this, {
239
+ children: [
251
240
  N({
252
241
  class: "text-input",
253
- attributes: {
254
- type: "string",
255
- value: this.firstStore
256
- },
257
- events: {
258
- change: (e) => {
259
- this.updateStores(
260
- e.currentTarget.value
261
- );
262
- }
242
+ type: "string",
243
+ value: this.firstStore,
244
+ onChange: (e) => {
245
+ this.updateStores(
246
+ e.currentTarget.value
247
+ );
263
248
  }
264
249
  }),
265
- ae(this, E)
250
+ re(this, E)
266
251
  ]
267
252
  });
268
253
  }
269
254
  appendContent(t) {
270
- ae(this, E).current = [...ae(this, E).current, t];
255
+ re(this, E).current = [...re(this, E).current, t];
271
256
  }
272
257
  };
273
258
  E = /* @__PURE__ */ new WeakMap();
274
- j = et([
275
- p("e-tweaker-string-manager")
259
+ j = je([
260
+ u("e-tweaker-string-manager")
276
261
  ], j);
277
- var st = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, it = (t, e, r, s) => {
278
- for (var a = s > 1 ? void 0 : s ? nt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
279
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
280
- return s && a && st(e, r, a), a;
281
- }, 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) => {
282
267
  if (!e.has(t))
283
268
  throw TypeError("Cannot " + r);
284
- }, _ = (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) => {
285
270
  if (e.has(t))
286
271
  throw TypeError("Cannot add the same private member more than once");
287
272
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
288
- }, se = (t, e, r, s) => (Se(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), T, D, W, J;
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;
289
274
  let ee = class extends j {
290
275
  constructor(...t) {
291
- var e, r, s, a, o, n;
292
- super(...t), K(this, T, void 0), K(this, D, void 0), K(this, W, void 0), K(this, J, (b) => {
293
- const Z = typeof b == "string" ? parseFloat(b) || this.min : b, ke = Fe(Z, _(this, D), _(this, W));
294
- return this.toFixed(ke);
295
- }), se(this, D, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), se(this, W, ((a = (s = this.firstStore.passport) == null ? void 0 : s.manager) == null ? void 0 : a.max) || 1), se(this, T, ((n = (o = this.firstStore.passport) == null ? void 0 : o.manager) == null ? void 0 : n.step) || 0.01);
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);
296
281
  }
297
282
  get min() {
298
- return _(this, D);
283
+ return b(this, D);
299
284
  }
300
285
  get max() {
301
- return _(this, W);
286
+ return b(this, R);
302
287
  }
303
288
  get step() {
304
- return _(this, T);
289
+ return b(this, T);
305
290
  }
306
291
  toFixed(t) {
307
292
  var r;
308
- 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;
309
294
  return e ? +t.toFixed(e) : Math.ceil(t);
310
295
  }
311
296
  connectedCallback() {
312
- this.firstStore.addMiddleware(_(this, J));
297
+ this.firstStore.addMiddleware(b(this, J));
313
298
  }
314
299
  disconnectedCallback() {
315
- this.firstStore.removeMiddleware(_(this, J));
300
+ this.firstStore.removeMiddleware(b(this, J));
316
301
  }
317
302
  };
318
303
  T = /* @__PURE__ */ new WeakMap();
319
304
  D = /* @__PURE__ */ new WeakMap();
320
- W = /* @__PURE__ */ new WeakMap();
305
+ R = /* @__PURE__ */ new WeakMap();
321
306
  J = /* @__PURE__ */ new WeakMap();
322
- ee = it([
323
- p("e-tweaker-number-manager")
307
+ ee = st([
308
+ u("e-tweaker-number-manager")
324
309
  ], ee);
325
- var ot = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, ht = (t, e, r, s) => {
326
- for (var a = s > 1 ? void 0 : s ? lt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
327
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
328
- 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;
329
314
  };
330
- const ct = f({
315
+ const ht = w({
331
316
  ":host": {
332
317
  width: "100%"
333
318
  },
@@ -365,38 +350,34 @@ const ct = f({
365
350
  background: "transparent"
366
351
  }
367
352
  });
368
- let ce = class extends ee {
353
+ let he = class extends ee {
369
354
  constructor(...t) {
370
- super(...t), this.addStylesheet(ct), this.appendContent(
355
+ super(...t), this.addStylesheet(ht), this.appendContent(
371
356
  N({
372
357
  class: "range-input",
373
- attributes: {
374
- type: "range",
375
- min: this.min,
376
- max: this.max,
377
- step: this.step,
378
- value: this.firstStore
379
- },
380
- events: {
381
- input: (e) => {
382
- this.updateStores(
383
- parseFloat(e.currentTarget.value)
384
- );
385
- }
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
+ );
386
367
  }
387
368
  })
388
369
  );
389
370
  }
390
371
  };
391
- ce = ht([
392
- p("e-tweaker-range-manager")
393
- ], ce);
394
- var dt = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, ut = (t, e, r, s) => {
395
- for (var a = s > 1 ? void 0 : s ? pt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
396
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
397
- 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;
398
379
  };
399
- const vt = f({
380
+ const ut = w({
400
381
  "e-select": {
401
382
  width: "100%",
402
383
  "--arrow-color": i.colorLight.var
@@ -425,37 +406,29 @@ const vt = f({
425
406
  transform: "scaleY(-1)"
426
407
  }
427
408
  });
428
- let de = class extends H {
409
+ let ce = class extends H {
429
410
  constructor(...t) {
430
- var r, s;
431
- super(...t), this.openShadow(vt);
432
- const e = ((s = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : s.variants) || [];
433
- m(this, {
434
- shadowChildren: re("e-select", {
435
- attributes: {
436
- value: this.firstStore
437
- },
438
- events: {
439
- change: (a) => {
440
- this.updateStores(a.currentTarget.value);
441
- }
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);
442
419
  },
443
- children: [
444
- re("e-select-head", {
445
- children: [
446
- Me({
447
- attributes: {
448
- "data-value-holder": ""
449
- }
420
+ lightChildren: [
421
+ p("e-select-head", {
422
+ lightChildren: [
423
+ $e({
424
+ "data-value-holder": ""
450
425
  })
451
426
  ]
452
427
  }),
453
428
  ...e.map(
454
- (a, o) => re("e-select-option", {
455
- children: a,
456
- attributes: {
457
- default: o === 0 ? !0 : null
458
- }
429
+ (a, o) => p("e-select-option", {
430
+ lightChildren: a,
431
+ default: o === 0 ? !0 : null
459
432
  })
460
433
  )
461
434
  ]
@@ -463,31 +436,31 @@ let de = class extends H {
463
436
  });
464
437
  }
465
438
  };
466
- de = ut([
467
- p("e-tweaker-select-manager")
468
- ], de);
469
- const gt = {
470
- boolean: oe,
471
- color: le,
472
- 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,
473
446
  number: ee,
474
- range: ce,
475
- select: de,
447
+ range: he,
448
+ select: ce,
476
449
  string: j
477
450
  };
478
- var ft = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, mt = (t, e, r, s) => {
479
- for (var a = s > 1 ? void 0 : s ? wt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
480
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
481
- return s && a && ft(e, r, a), a;
482
- }, 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) => {
483
456
  if (!e.has(t))
484
457
  throw TypeError("Cannot " + r);
485
- }, 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) => {
486
459
  if (e.has(t))
487
460
  throw TypeError("Cannot add the same private member more than once");
488
461
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
489
- }, k = (t, e, r, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), u, R, L, F, A, V, Y;
490
- const bt = f({
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({
491
464
  ":host": {
492
465
  display: "grid",
493
466
  gridAutoFlow: "column",
@@ -532,55 +505,49 @@ const bt = f({
532
505
  height: "100%"
533
506
  }
534
507
  });
535
- let te = class extends ge {
508
+ let te = class extends ve {
536
509
  constructor(t) {
537
- var r, s, a, o;
538
- super(), C(this, u, []), C(this, R, void 0), C(this, L, void 0), C(this, F, !1), C(this, A, void 0), C(this, V, () => {
539
- $.current.find((n) => h(this, u).includes(n)) || this.remove();
540
- }), C(this, Y, (n) => {
541
- h(this, F) && ((n.metaKey || n.ctrlKey) && n.code === "KeyC" ? navigator.clipboard.writeText(h(this, u)[0].current) : (n.metaKey || n.ctrlKey) && n.code === "KeyR" && (h(this, u).forEach((b) => {
542
- b.reset();
543
- }), n.preventDefault()));
544
- }), k(this, u, [t.store]), k(this, R, t.store.passport.name), k(this, L, h(this, R).split(".").slice(-1).toString());
545
- const e = ((s = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : s.type) || "string";
546
- k(this, A, new gt[e](h(this, u)[0])), this.openShadow(bt), m(this, {
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, {
547
520
  class: {
548
521
  disabled: ((o = (a = t.store.passport) == null ? void 0 : a.manager) == null ? void 0 : o.disabled) || !1
549
522
  },
550
- events: {
551
- pointerleave: () => {
552
- k(this, F, !1);
553
- },
554
- pointerenter: () => {
555
- k(this, F, !0);
556
- }
523
+ onPointerleave: () => {
524
+ k(this, I, !1);
557
525
  },
558
- shadowChildren: [
559
- w({
526
+ onPointerenter: () => {
527
+ k(this, I, !0);
528
+ },
529
+ children: [
530
+ m({
560
531
  class: "head",
561
532
  children: [
562
- w({ class: "name", children: h(this, L) + ":" }),
563
- w({
533
+ m({ class: "name", children: h(this, L) + ":" }),
534
+ m({
564
535
  class: "head-buttons",
565
536
  children: [
566
- I({
537
+ F({
567
538
  class: "head-button",
568
539
  children: _e,
569
- events: {
570
- click: () => {
571
- navigator.clipboard.writeText(h(this, u)[0].current);
572
- }
540
+ onClick: () => {
541
+ navigator.clipboard.writeText(h(this, v)[0].current);
573
542
  }
574
543
  }),
575
- I({
544
+ F({
576
545
  class: "head-button",
577
- children: be,
578
- events: {
579
- click: () => {
580
- h(this, u).forEach((n) => {
581
- n.reset();
582
- });
583
- }
546
+ children: me,
547
+ onClick: () => {
548
+ h(this, v).forEach((s) => {
549
+ s.reset();
550
+ });
584
551
  }
585
552
  })
586
553
  ]
@@ -592,47 +559,47 @@ let te = class extends ge {
592
559
  });
593
560
  }
594
561
  get key() {
595
- return h(this, R);
562
+ return h(this, W);
596
563
  }
597
564
  get name() {
598
565
  return h(this, L);
599
566
  }
600
567
  get stores() {
601
- return h(this, u);
568
+ return h(this, v);
602
569
  }
603
570
  addStore(t) {
604
571
  h(this, A).addStore(t);
605
572
  }
606
573
  connectedCallback() {
607
- $.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), Le(this);
574
+ $.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), We(this);
608
575
  }
609
576
  disconnectedCallback() {
610
577
  $.unsubscribe(h(this, V)), removeEventListener("keydown", h(this, Y));
611
578
  }
612
579
  };
613
- u = /* @__PURE__ */ new WeakMap();
614
- R = /* @__PURE__ */ new WeakMap();
580
+ v = /* @__PURE__ */ new WeakMap();
581
+ W = /* @__PURE__ */ new WeakMap();
615
582
  L = /* @__PURE__ */ new WeakMap();
616
- F = /* @__PURE__ */ new WeakMap();
583
+ I = /* @__PURE__ */ new WeakMap();
617
584
  A = /* @__PURE__ */ new WeakMap();
618
585
  V = /* @__PURE__ */ new WeakMap();
619
586
  Y = /* @__PURE__ */ new WeakMap();
620
- te = mt([
621
- p("e-tweaker-field")
587
+ te = wt([
588
+ u("e-tweaker-field")
622
589
  ], te);
623
- var _t = Object.defineProperty, St = Object.getOwnPropertyDescriptor, yt = (t, e, r, s) => {
624
- for (var a = s > 1 ? void 0 : s ? St(e, r) : e, o = t.length - 1, n; o >= 0; o--)
625
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
626
- return s && a && _t(e, r, a), a;
627
- }, 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) => {
628
595
  if (!e.has(t))
629
596
  throw TypeError("Cannot " + r);
630
- }, 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) => {
631
598
  if (e.has(t))
632
599
  throw TypeError("Cannot add the same private member more than once");
633
600
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
634
- }, ne = (t, e, r, s) => (Ce(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), v, q, c, B, Q, pe;
635
- const Ct = f({
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({
636
603
  ".wrapper": {
637
604
  boxSizing: "border-box",
638
605
  backgroundColor: "rgba(255, 255, 255, 0.1)",
@@ -676,41 +643,39 @@ const Ct = f({
676
643
  transform: "scaleY(-1)"
677
644
  }
678
645
  });
679
- let z = class extends We {
646
+ let z = class extends De {
680
647
  constructor(t) {
681
- super(), x(this, v, void 0), x(this, q, new ie(null)), x(this, c, new ie([])), x(this, B, void 0), x(this, Q, null), x(this, pe, (e) => {
682
- 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 = [];
683
650
  e.forEach((a) => {
684
- r = [...r, ...a.removedNodes], s = [...s, ...a.addedNodes];
651
+ r = [...r, ...a.removedNodes], n = [...n, ...a.addedNodes];
685
652
  }), l(this, c).current = l(this, c).current.filter(
686
653
  (a) => !r.includes(a)
687
- ), l(this, v) && !l(this, c).current.length && !s.length && this.remove();
688
- }), this.openShadow(Ct), ne(this, v, t.key), ne(this, B, new MutationObserver(l(this, pe))), m(this, {
689
- events: {
690
- "e-accordion-item-toggle": (e) => {
691
- e.stopPropagation(), e.detail.opened ? P.openPanel(l(this, v)) : P.closePanel(l(this, v));
692
- }
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));
693
658
  },
694
- shadowChildren: [
695
- w({
659
+ children: [
660
+ m({
696
661
  class: "wrapper",
697
662
  children: [
698
- w({
663
+ m({
699
664
  class: "head",
700
665
  children: [
701
- l(this, v) ? w({
666
+ l(this, g) ? m({
702
667
  class: "name",
703
- children: [l(this, v).split(".").slice(-1).toString()]
668
+ children: [l(this, g).split(".").slice(-1).toString()]
704
669
  }) : null,
705
- l(this, q),
706
- m(Re, {
670
+ l(this, B),
671
+ p(Re, {
707
672
  class: "arrow"
708
673
  })
709
674
  ]
710
675
  }),
711
- w({
676
+ m({
712
677
  class: "body",
713
- children: w({
678
+ children: m({
714
679
  class: "body-content",
715
680
  children: l(this, c),
716
681
  ref: (e) => ne(this, Q, e.firstElementChild)
@@ -722,31 +687,31 @@ let z = class extends We {
722
687
  }), t != null && t.storeBox && this.handleStore(t.storeBox);
723
688
  }
724
689
  get key() {
725
- return l(this, v);
690
+ return l(this, g);
726
691
  }
727
692
  get head() {
728
- return l(this, q);
693
+ return l(this, B);
729
694
  }
730
695
  get content() {
731
696
  return l(this, c);
732
697
  }
733
698
  connectedCallback() {
734
699
  super.connectedCallback(), setTimeout(() => {
735
- P.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
736
- }, 50), l(this, B).observe(l(this, Q), {
700
+ P.isPanelOpened(l(this, g)) && this.openAll({ skipTransition: !0 });
701
+ }, 50), l(this, q).observe(l(this, Q), {
737
702
  childList: !0
738
703
  });
739
704
  }
740
705
  handleStore(t) {
741
706
  if (t.remainingFolders.length) {
742
- const r = t.store.passport.name.split("."), s = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, c).current.find((o) => o.key === s);
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);
743
708
  a instanceof z ? a.handleStore({
744
709
  store: t.store,
745
710
  remainingFolders: t.remainingFolders.slice(1)
746
711
  }) : l(this, c).current = [
747
712
  ...l(this, c).current,
748
713
  new z({
749
- key: s,
714
+ key: n,
750
715
  storeBox: {
751
716
  store: t.store,
752
717
  remainingFolders: t.remainingFolders.slice(1)
@@ -766,28 +731,28 @@ let z = class extends We {
766
731
  }
767
732
  }
768
733
  };
769
- v = /* @__PURE__ */ new WeakMap();
770
- q = /* @__PURE__ */ new WeakMap();
771
- c = /* @__PURE__ */ new WeakMap();
734
+ g = /* @__PURE__ */ new WeakMap();
772
735
  B = /* @__PURE__ */ new WeakMap();
736
+ c = /* @__PURE__ */ new WeakMap();
737
+ q = /* @__PURE__ */ new WeakMap();
773
738
  Q = /* @__PURE__ */ new WeakMap();
774
- pe = /* @__PURE__ */ new WeakMap();
775
- z = yt([
776
- p("e-tweaker-folder")
739
+ de = /* @__PURE__ */ new WeakMap();
740
+ z = St([
741
+ u("e-tweaker-folder")
777
742
  ], z);
778
- var kt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, $t = (t, e, r, s) => {
779
- for (var a = s > 1 ? void 0 : s ? xt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
780
- (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
781
- return s && a && kt(e, r, a), a;
782
- }, 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) => {
783
748
  if (!e.has(t))
784
749
  throw TypeError("Cannot " + r);
785
- }, 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) => {
786
751
  if (e.has(t))
787
752
  throw TypeError("Cannot add the same private member more than once");
788
753
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
789
754
  }, U;
790
- const Mt = f({
755
+ const Ot = w({
791
756
  ":host": {
792
757
  position: "absolute",
793
758
  top: i.tweakerOffset.var,
@@ -795,7 +760,8 @@ const Mt = f({
795
760
  width: i.tweakerWidth.var,
796
761
  backgroundColor: i.colorDark.var,
797
762
  borderRadius: i.borderRadius.var,
798
- transition: "opacity 0.2s"
763
+ transition: "opacity 0.2s",
764
+ zIndex: "100"
799
765
  },
800
766
  ":host(:hover)": {
801
767
  opacity: "1 !important"
@@ -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, Pe(() => {
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
- $e(
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
- Ee({
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
- }, Wt = (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) => (Wt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Rt = (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
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
  };