aptechka 0.8.4 → 0.10.0

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 (143) hide show
  1. package/lib/ElementConstructor-OK-6OPjh.cjs +1 -0
  2. package/lib/ElementConstructor-rValMo8f.js +372 -0
  3. package/lib/_createStore-C75y9luu.cjs +1 -0
  4. package/lib/_createStore-D3qHYaSz.js +12 -0
  5. package/lib/accordion/AccordionElement.d.ts +1 -2
  6. package/lib/accordion/index.cjs +1 -1
  7. package/lib/accordion/index.js +110 -122
  8. package/lib/canvas/index.cjs +1 -1
  9. package/lib/canvas/index.d.ts +4 -5
  10. package/lib/canvas/index.js +69 -75
  11. package/lib/checkbox/index.cjs +1 -1
  12. package/lib/checkbox/index.d.ts +1 -3
  13. package/lib/checkbox/index.js +42 -45
  14. package/lib/connector/index.cjs +1 -1
  15. package/lib/connector/index.d.ts +2 -2
  16. package/lib/connector/index.js +39 -34
  17. package/lib/counter/index.d.ts +1 -3
  18. package/lib/{createStylesheet-BsMSWX0q.cjs → createStylesheet-9nksoWW0.cjs} +1 -1
  19. package/lib/{createStylesheet-BxKITIVV.js → createStylesheet-BrFGJ8Q7.js} +1 -1
  20. package/lib/element-constructor/ElementConstructor.d.ts +6 -5
  21. package/lib/element-constructor/index.cjs +1 -1
  22. package/lib/element-constructor/index.js +114 -113
  23. package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -2
  24. package/lib/globals-DMjysUXI.js +8 -0
  25. package/lib/globals-bYKki-b9.cjs +1 -0
  26. package/lib/image/index.cjs +1 -1
  27. package/lib/image/index.js +7 -15
  28. package/lib/index-3R8YL-P3.js +266 -0
  29. package/lib/index-CyQAdqFu.cjs +9 -0
  30. package/lib/instantiate-BuVJ8pIJ.cjs +1 -0
  31. package/lib/instantiate-TYteKsII.js +134 -0
  32. package/lib/jsx/ComponentElement.d.ts +18 -0
  33. package/lib/jsx/globals.d.ts +13 -0
  34. package/lib/jsx/h.d.ts +6 -0
  35. package/lib/jsx/hooks/animation/createDamped.d.ts +3 -0
  36. package/lib/jsx/hooks/animation/createTweened.d.ts +3 -0
  37. package/lib/jsx/hooks/animation/index.cjs +1 -0
  38. package/lib/jsx/hooks/animation/index.d.ts +2 -0
  39. package/lib/jsx/hooks/animation/index.js +15 -0
  40. package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
  41. package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
  42. package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
  43. package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
  44. package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
  45. package/lib/jsx/hooks/basic/createRef.d.ts +3 -0
  46. package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
  47. package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
  48. package/lib/jsx/hooks/basic/onStoreChange.d.ts +3 -0
  49. package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
  50. package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
  51. package/lib/jsx/hooks/onAnimationFrame.js +22 -0
  52. package/lib/jsx/hooks/onElementResize.cjs +1 -0
  53. package/lib/jsx/hooks/onElementResize.d.ts +5 -0
  54. package/lib/jsx/hooks/onElementResize.js +11 -0
  55. package/lib/jsx/hooks/onIntersection.cjs +1 -0
  56. package/lib/jsx/hooks/onIntersection.d.ts +5 -0
  57. package/lib/jsx/hooks/onIntersection.js +11 -0
  58. package/lib/jsx/hooks/onWindowResize.cjs +1 -0
  59. package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
  60. package/lib/jsx/hooks/onWindowResize.js +8 -0
  61. package/lib/jsx/hooks/store/createCached.d.ts +3 -0
  62. package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
  63. package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
  64. package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
  65. package/lib/jsx/hooks/store/createResource.d.ts +3 -0
  66. package/lib/jsx/hooks/store/createStore.d.ts +3 -0
  67. package/lib/jsx/hooks/store/index.cjs +1 -0
  68. package/lib/jsx/hooks/store/index.d.ts +6 -0
  69. package/lib/jsx/hooks/store/index.js +31 -0
  70. package/lib/jsx/hooks/watchAttribute.cjs +1 -0
  71. package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
  72. package/lib/jsx/hooks/watchAttribute.js +17 -0
  73. package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
  74. package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
  75. package/lib/jsx/hooks/watchCSSProperty.js +17 -0
  76. package/lib/jsx/index.cjs +1 -0
  77. package/lib/jsx/index.d.ts +15 -0
  78. package/lib/jsx/index.js +106 -0
  79. package/lib/jsx/instantiate.d.ts +5 -0
  80. package/lib/jsx/register.d.ts +1 -0
  81. package/lib/jsx/render.d.ts +6 -0
  82. package/lib/jsx/type.d.ts +198 -0
  83. package/lib/modal/index.cjs +1 -1
  84. package/lib/modal/index.js +34 -36
  85. package/lib/onConnect-DGP866cj.cjs +1 -0
  86. package/lib/onConnect-y5DrxJ9P.js +7 -0
  87. package/lib/order/index.cjs +1 -1
  88. package/lib/order/index.d.ts +5 -4
  89. package/lib/order/index.js +1 -1
  90. package/lib/pointer/PointerElement.d.ts +1 -2
  91. package/lib/pointer/index.cjs +1 -1
  92. package/lib/pointer/index.js +105 -117
  93. package/lib/popover/PopoverButtonElement.d.ts +1 -2
  94. package/lib/popover/PopoverElement.d.ts +1 -2
  95. package/lib/popover/index.cjs +1 -1
  96. package/lib/popover/index.js +109 -124
  97. package/lib/router/index.cjs +1 -1
  98. package/lib/router/index.js +76 -73
  99. package/lib/scroll/ScrollElement.d.ts +1 -2
  100. package/lib/scroll/ScrollUserElement.d.ts +1 -2
  101. package/lib/scroll/index.cjs +1 -1
  102. package/lib/scroll/index.js +674 -753
  103. package/lib/select/SelectElement.d.ts +1 -3
  104. package/lib/select/SelectUserElement.d.ts +1 -2
  105. package/lib/select/index.cjs +1 -1
  106. package/lib/select/index.js +1 -1
  107. package/lib/sequence/index.cjs +1 -1
  108. package/lib/sequence/index.js +104 -107
  109. package/lib/slicer/SlicerElement.d.ts +1 -2
  110. package/lib/slicer/index.cjs +5 -5
  111. package/lib/slicer/index.js +88 -106
  112. package/lib/source/SourceElement.d.ts +1 -2
  113. package/lib/source/index.cjs +2 -2
  114. package/lib/source/index.js +19 -20
  115. package/lib/store/Cached.d.ts +13 -0
  116. package/lib/store/Derived.d.ts +3 -3
  117. package/lib/store/DerivedArray.d.ts +8 -0
  118. package/lib/store/index.cjs +1 -1
  119. package/lib/store/index.d.ts +2 -0
  120. package/lib/store/index.js +65 -31
  121. package/lib/tags-BosXYPYv.cjs +1 -0
  122. package/lib/tags-D0kLlFdQ.js +485 -0
  123. package/lib/theme/index.cjs +1 -1
  124. package/lib/theme/index.js +2 -1
  125. package/lib/tweaker/TweakerFieldElement.d.ts +1 -2
  126. package/lib/tweaker/TweakerFolderElement.d.ts +1 -2
  127. package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -2
  128. package/lib/tweaker/index.cjs +3 -3
  129. package/lib/tweaker/index.js +393 -472
  130. package/lib/utils/bytes.d.ts +1 -0
  131. package/lib/utils/index.cjs +1 -1
  132. package/lib/utils/index.d.ts +1 -0
  133. package/lib/utils/index.js +122 -105
  134. package/lib/video/index.cjs +1 -1
  135. package/lib/video/index.js +25 -29
  136. package/package.json +73 -9
  137. package/lib/custom-element/index.cjs +0 -1
  138. package/lib/custom-element/index.d.ts +0 -8
  139. package/lib/custom-element/index.js +0 -30
  140. package/lib/index-CzpP1Tg6.cjs +0 -9
  141. package/lib/index-Dwd_62sm.js +0 -301
  142. package/lib/tags-CAfasCGV.cjs +0 -1
  143. package/lib/tags-D9lNDPX8.js +0 -848
@@ -1,103 +1,99 @@
1
- var He = (t, e, r) => {
2
- if (!e.has(t))
3
- throw TypeError("Cannot " + r);
1
+ var ve = (l, r, e) => {
2
+ if (!r.has(l))
3
+ throw TypeError("Cannot " + e);
4
4
  };
5
- var d = (t, e, r) => (He(t, e, "read from private field"), r ? r.call(t) : e.get(t)), J = (t, e, r) => {
6
- if (e.has(t))
5
+ var t = (l, r, e) => (ve(l, r, "read from private field"), e ? e.call(l) : r.get(l)), o = (l, r, e) => {
6
+ if (r.has(l))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- e instanceof WeakSet ? e.add(t) : e.set(t, r);
9
- }, x = (t, e, r, i) => (He(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r);
10
- import { i as it } from "../browser-0zX67oeU.js";
11
- import { CustomElement as Ve, define as M } from "../custom-element/index.js";
12
- import { s as W, a as K, S as je } from "../Store-Qr3SNOSf.js";
13
- import { c as at } from "../file-lxi_oXJf.js";
14
- import { d as nt } from "../function-C10DGppn.js";
15
- import { s as Je } from "../gestures-D2Fdra_G.js";
16
- import { e as f, a0 as Ce, a as ot, D as g, aB as lt, p as re, a3 as ht } from "../tags-D9lNDPX8.js";
17
- import { c as $ } from "../createStylesheet-BxKITIVV.js";
18
- import { a as ct } from "../Viewport-Cgtq2I_K.js";
8
+ r instanceof WeakSet ? r.add(l) : r.set(l, e);
9
+ }, n = (l, r, e, s) => (ve(l, r, "write to private field"), s ? s.call(l, e) : r.set(l, e), e);
10
+ var m = (l, r, e) => (ve(l, r, "access private method"), e);
11
+ import { i as We } from "../browser-0zX67oeU.js";
12
+ import { s as R, a as N, S as Ce } from "../Store-Qr3SNOSf.js";
13
+ import { c as Be } from "../file-lxi_oXJf.js";
14
+ import { d as Xe } from "../function-C10DGppn.js";
15
+ import { s as Te } from "../gestures-D2Fdra_G.js";
16
+ import "../ticker/index.js";
17
+ import { e as g, $ as me, a as Ye, D as u, aA as qe, p as B, a2 as Ge } from "../tags-D0kLlFdQ.js";
18
+ import { c as E } from "../createStylesheet-BrFGJ8Q7.js";
19
+ import { a as Qe } from "../Viewport-Cgtq2I_K.js";
19
20
  import { aptechkaTheme as h } from "../theme/index.js";
20
- import { a as dt } from "../index-Dwd_62sm.js";
21
- import { a as pt } from "../events-CJTUMSLU.js";
21
+ import { a as Ue } from "../index-3R8YL-P3.js";
22
+ import { a as _e } from "../events-CJTUMSLU.js";
22
23
  import "../checkbox/index.js";
23
- import { c as ut } from "../math-BOBiC4TN.js";
24
- import { n as Be, t as gt } from "../polyfills-X6KXuHg-.js";
25
- import { elementResizer as Ge } from "../element-resizer/index.js";
26
- const Xe = '<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>', Ye = '<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>', ft = '<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>', vt = '<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>';
27
- var I, _, P;
28
- class wt {
24
+ import { c as et } from "../math-BOBiC4TN.js";
25
+ import { n as ze, t as tt } from "../polyfills-X6KXuHg-.js";
26
+ import { elementResizer as Re } from "../element-resizer/index.js";
27
+ const Fe = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', Me = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', st = '<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>', it = '<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>';
28
+ var P, w, k;
29
+ class rt {
29
30
  constructor() {
30
- J(this, I, void 0);
31
- J(this, _, void 0);
32
- J(this, P, void 0);
33
- this.scrollValue = 0, x(this, I, ""), x(this, _, []), x(this, P, {}), x(this, I, W.projectName + "-studio");
31
+ o(this, P, void 0);
32
+ o(this, w, void 0);
33
+ o(this, k, void 0);
34
+ this.scrollValue = 0, n(this, P, ""), n(this, w, []), n(this, k, {}), n(this, P, R.projectName + "-studio");
34
35
  }
35
- openPanel(e) {
36
- d(this, _).includes(e) || d(this, _).push(e);
36
+ openPanel(r) {
37
+ t(this, w).includes(r) || t(this, w).push(r);
37
38
  }
38
- closePanel(e) {
39
- x(this, _, d(this, _).filter((r) => r !== e));
39
+ closePanel(r) {
40
+ n(this, w, t(this, w).filter((e) => e !== r));
40
41
  }
41
- isPanelOpened(e) {
42
- return d(this, _).includes(e);
42
+ isPanelOpened(r) {
43
+ return t(this, w).includes(r);
43
44
  }
44
- changedSizes(e) {
45
- return d(this, P)[e];
45
+ changedSizes(r) {
46
+ return t(this, k)[r];
46
47
  }
47
- changeSize(e, r) {
48
- r ? d(this, P)[e] = r : delete d(this, P)[e];
48
+ changeSize(r, e) {
49
+ e ? t(this, k)[r] = e : delete t(this, k)[r];
49
50
  }
50
51
  save() {
51
- const e = {
52
- openedPanels: d(this, _),
53
- changedSizes: d(this, P),
52
+ const r = {
53
+ openedPanels: t(this, w),
54
+ changedSizes: t(this, k),
54
55
  scrollValue: this.scrollValue
55
56
  };
56
- localStorage.setItem(d(this, I), JSON.stringify(e)), W.saveState();
57
+ localStorage.setItem(t(this, P), JSON.stringify(r)), R.saveState();
57
58
  }
58
59
  load() {
59
- W.loadState();
60
- const e = localStorage.getItem(d(this, I));
61
- if (e)
60
+ R.loadState();
61
+ const r = localStorage.getItem(t(this, P));
62
+ if (r)
62
63
  try {
63
- const r = JSON.parse(e);
64
- r.openedPanels && x(this, _, r.openedPanels), r.changedSizes && x(this, P, r.changedSizes), r.scrollValue && (this.scrollValue = r.scrollValue);
65
- } catch (r) {
66
- console.error(r);
64
+ const e = JSON.parse(r);
65
+ e.openedPanels && n(this, w, e.openedPanels), e.changedSizes && n(this, k, e.changedSizes), e.scrollValue && (this.scrollValue = e.scrollValue);
66
+ } catch (e) {
67
+ console.error(e);
67
68
  }
68
69
  }
69
70
  }
70
- I = new WeakMap(), _ = new WeakMap(), P = new WeakMap();
71
- const w = new wt();
71
+ P = new WeakMap(), w = new WeakMap(), k = new WeakMap();
72
+ const f = new rt();
72
73
  var T;
73
- class H extends Ve {
74
- constructor(...r) {
74
+ class J extends HTMLElement {
75
+ constructor(...e) {
75
76
  super();
76
- J(this, T, void 0);
77
- x(this, T, r);
77
+ o(this, T, void 0);
78
+ n(this, T, e);
78
79
  }
79
- addStore(r) {
80
- d(this, T).push(r);
80
+ addStore(e) {
81
+ t(this, T).push(e);
81
82
  }
82
83
  get firstStore() {
83
- return d(this, T)[0];
84
+ return t(this, T)[0];
84
85
  }
85
86
  get stores() {
86
- return d(this, T);
87
+ return t(this, T);
87
88
  }
88
- updateStores(r) {
89
- d(this, T).forEach((i) => {
90
- i.current = r;
89
+ updateStores(e) {
90
+ t(this, T).forEach((s) => {
91
+ s.current = e;
91
92
  });
92
93
  }
93
94
  }
94
95
  T = new WeakMap();
95
- var mt = Object.defineProperty, bt = Object.getOwnPropertyDescriptor, _t = (t, e, r, i) => {
96
- for (var s = i > 1 ? void 0 : i ? bt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
97
- (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
98
- return i && s && mt(e, r, s), s;
99
- };
100
- const yt = $({
96
+ const ot = E({
101
97
  ":host": {
102
98
  width: "100%",
103
99
  display: "inline-flex",
@@ -110,33 +106,29 @@ const yt = $({
110
106
  borderRadius: h.borderRadiusSmall.var
111
107
  }
112
108
  });
113
- let Oe = class extends H {
114
- constructor(...t) {
115
- super(...t), this.openShadow(yt), f(this, {
109
+ class Le extends J {
110
+ constructor(...r) {
111
+ super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ot), g(this, {
116
112
  children: [
117
- f("e-checkbox", {
118
- onChange: (e) => {
119
- this.updateStores(e.currentTarget.checked);
113
+ g("e-checkbox", {
114
+ onChange: (s) => {
115
+ this.updateStores(s.currentTarget.checked);
120
116
  },
121
- ref: (e) => {
122
- this.firstStore.subscribe((r) => {
123
- e.checked = r.current;
117
+ ref: (s) => {
118
+ this.firstStore.subscribe((i) => {
119
+ s.checked = i.current;
124
120
  });
125
121
  }
126
122
  })
127
123
  ]
128
124
  });
129
125
  }
130
- };
131
- Oe = _t([
132
- M("e-tweaker-boolean-manager")
133
- ], Oe);
134
- var St = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, xt = (t, e, r, i) => {
135
- for (var s = i > 1 ? void 0 : i ? kt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
136
- (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
137
- return i && s && St(e, r, s), s;
138
- };
139
- const Ct = $({
126
+ }
127
+ customElements.get("e-tweaker-boolean-manager") || customElements.define(
128
+ "e-tweaker-boolean-manager",
129
+ Le
130
+ );
131
+ const nt = E({
140
132
  ":host": {
141
133
  width: "100%",
142
134
  display: "inline-flex",
@@ -159,65 +151,44 @@ const Ct = $({
159
151
  height: "calc(var(--height-input) * 0.93)"
160
152
  }
161
153
  });
162
- let We = class extends H {
163
- constructor(...t) {
164
- super(...t), this.openShadow(Ct), f(this, {
154
+ class Pe extends J {
155
+ constructor(...r) {
156
+ super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(nt), g(this, {
165
157
  children: [
166
- Ce({
158
+ me({
167
159
  type: "color",
168
160
  value: this.firstStore,
169
- onInput: (e) => {
170
- this.updateStores(e.currentTarget.value);
161
+ onInput: (s) => {
162
+ this.updateStores(s.currentTarget.value);
171
163
  }
172
164
  })
173
165
  ]
174
166
  });
175
167
  }
176
- };
177
- We = xt([
178
- M("e-tweaker-color-manager")
179
- ], We);
180
- var Pt = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, $t = (t, e, r, i) => {
181
- for (var s = i > 1 ? void 0 : i ? Mt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
182
- (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
183
- return i && s && Pt(e, r, s), s;
184
- };
185
- const zt = $({
168
+ }
169
+ customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", Pe);
170
+ const at = E({
186
171
  a: {
187
172
  color: "inherit",
188
173
  fontSize: "var(--font-size-small)"
189
174
  }
190
175
  });
191
- let Te = class extends H {
192
- constructor(...t) {
193
- var e, r;
194
- super(...t), this.openShadow(zt), console.log(this.firstStore), f(this, {
176
+ class Ie extends J {
177
+ constructor(...r) {
178
+ var s, i;
179
+ super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(at), console.log(this.firstStore), g(this, {
195
180
  children: [
196
- ot({
181
+ Ye({
197
182
  href: this.firstStore,
198
- target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank",
183
+ target: (i = (s = this.firstStore.passport) == null ? void 0 : s.manager) != null && i.sameWindow ? "_self" : "_blank",
199
184
  children: this.firstStore
200
185
  })
201
186
  ]
202
187
  });
203
188
  }
204
- };
205
- Te = $t([
206
- M("e-tweaker-link-manager")
207
- ], Te);
208
- var Et = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, Wt = (t, e, r, i) => {
209
- for (var s = i > 1 ? void 0 : i ? Ot(e, r) : e, n = t.length - 1, a; n >= 0; n--)
210
- (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
211
- return i && s && Et(e, r, s), s;
212
- }, Ne = (t, e, r) => {
213
- if (!e.has(t))
214
- throw TypeError("Cannot " + r);
215
- }, o = (t, e, r) => (Ne(t, e, "read from private field"), r ? r.call(t) : e.get(t)), p = (t, e, r) => {
216
- if (e.has(t))
217
- throw TypeError("Cannot add the same private member more than once");
218
- e instanceof WeakSet ? e.add(t) : e.set(t, r);
219
- }, z = (t, e, r, i) => (Ne(t, e, "write to private field"), e.set(t, r), r), m = (t, e, r) => (Ne(t, e, "access private method"), r), V, se, q, O, F, ne, oe, C, Z, le, he, L, N, ce, De, Se, Ke, ie, ke, de;
220
- const Tt = $({
189
+ }
190
+ customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", Ie);
191
+ const lt = E({
221
192
  ":host": {
222
193
  width: "100%",
223
194
  display: "flex",
@@ -281,78 +252,96 @@ const Tt = $({
281
252
  opacity: 0.3
282
253
  }
283
254
  });
284
- let Re = class extends H {
285
- constructor(...t) {
286
- var e, r, i, s, n, a, D, j;
287
- super(...t), p(this, L), p(this, ce), p(this, Se), p(this, ie), p(this, V, []), p(this, se, []), p(this, q, void 0), p(this, O, void 0), p(this, F, void 0), p(this, ne, void 0), p(this, oe, void 0), p(this, C, void 0), p(this, Z, !1), p(this, le, (B) => {
288
- const b = m(this, L, N).call(this, B);
289
- return b.map((u, G) => {
290
- const Pe = typeof u == "string" ? parseFloat(u) || o(this, O) : u, y = ut(Pe, o(this, O), o(this, F)), Me = gt(y, o(this, q));
291
- b[G] = Me;
292
- }), o(this, oe) === "number" ? b[0] : b;
293
- }), p(this, he, () => {
294
- m(this, L, N).call(this).map((B, b) => {
295
- const u = o(this, V)[b];
296
- u && (u.value = (B || 0).toString());
297
- }), m(this, ce, De).call(this);
298
- }), p(this, de, () => {
299
- m(this, ce, De).call(this);
300
- }), this.openShadow(Tt), z(this, O, Be(
301
- (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min,
255
+ var I, A, D, x, F, X, Y, y, V, q, G, M, $, Q, Se, U, ye, H, ce, _;
256
+ class Ve extends J {
257
+ constructor(...e) {
258
+ var i, a, d, c, S, L, W, xe;
259
+ super(...e);
260
+ o(this, M);
261
+ o(this, Q);
262
+ o(this, U);
263
+ o(this, H);
264
+ o(this, I, []);
265
+ o(this, A, []);
266
+ o(this, D, void 0);
267
+ o(this, x, void 0);
268
+ o(this, F, void 0);
269
+ o(this, X, void 0);
270
+ o(this, Y, void 0);
271
+ o(this, y, void 0);
272
+ o(this, V, !1);
273
+ o(this, q, (e) => {
274
+ const s = m(this, M, $).call(this, e);
275
+ return s.map((i, a) => {
276
+ const d = typeof i == "string" ? parseFloat(i) || t(this, x) : i, c = et(d, t(this, x), t(this, F)), S = tt(c, t(this, D));
277
+ s[a] = S;
278
+ }), t(this, Y) === "number" ? s[0] : s;
279
+ });
280
+ o(this, G, () => {
281
+ m(this, M, $).call(this).map((e, s) => {
282
+ const i = t(this, I)[s];
283
+ i && (i.value = (e || 0).toString());
284
+ }), m(this, Q, Se).call(this);
285
+ });
286
+ o(this, _, () => {
287
+ m(this, Q, Se).call(this);
288
+ });
289
+ this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(lt), n(this, x, ze(
290
+ (a = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : a.min,
302
291
  -1 / 0
303
- )), z(this, F, Be(
304
- (s = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : s.max,
292
+ )), n(this, F, ze(
293
+ (c = (d = this.firstStore.passport) == null ? void 0 : d.manager) == null ? void 0 : c.max,
305
294
  1 / 0
306
- )), z(this, q, ((a = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : a.step) || 0.01), z(this, ne, ((j = (D = this.firstStore.passport) == null ? void 0 : D.manager) == null ? void 0 : j.ease) || 1), z(this, oe, Array.isArray(this.firstStore.current) ? "array" : "number"), z(this, C, isFinite(o(this, F)) && isFinite(o(this, O))), f(this, {
307
- class: o(this, C) ? "" : "infinite",
308
- children: m(this, L, N).call(this).map((B, b) => g({
295
+ )), n(this, D, ((L = (S = this.firstStore.passport) == null ? void 0 : S.manager) == null ? void 0 : L.step) || 0.01), n(this, X, ((xe = (W = this.firstStore.passport) == null ? void 0 : W.manager) == null ? void 0 : xe.ease) || 1), n(this, Y, Array.isArray(this.firstStore.current) ? "array" : "number"), n(this, y, isFinite(t(this, F)) && isFinite(t(this, x))), g(this, {
296
+ class: t(this, y) ? "" : "infinite",
297
+ children: m(this, M, $).call(this).map((De, de) => u({
309
298
  class: "inputs-wrapper",
310
299
  children: [
311
- Ce({
300
+ me({
312
301
  type: "number",
313
- step: o(this, q),
314
- min: o(this, O),
315
- max: o(this, F),
316
- ref: (u) => o(this, V).push(u),
317
- value: B,
302
+ step: t(this, D),
303
+ min: t(this, x),
304
+ max: t(this, F),
305
+ ref: (C) => t(this, I).push(C),
306
+ value: De,
318
307
  onChange: () => {
319
308
  this.updateStores(
320
- o(this, V).map((u) => parseFloat(u.value))
309
+ t(this, I).map((C) => parseFloat(C.value))
321
310
  );
322
311
  }
323
312
  }),
324
- g({
313
+ u({
325
314
  class: "drag",
326
315
  children: [
327
- g({
316
+ u({
328
317
  class: "drag-knob",
329
- ref: (u) => o(this, se).push(u),
330
- onPointerdown: (u) => {
331
- u.preventDefault(), z(this, Z, !0);
332
- const G = m(this, L, N).call(this), Pe = G[b], y = o(this, se)[b], Me = o(this, V)[b];
333
- if (y && Me) {
334
- const $e = y.parentElement, et = m(this, Se, Ke).call(this);
335
- $e.classList.add("grabbing"), Je(
336
- (ze) => {
337
- const Ze = ze.x - u.x, tt = o(this, C) ? $e.offsetWidth / (et || 1) : 1, rt = Pe + Ze / tt * o(this, ne);
338
- if (G[b] = rt, !o(this, C)) {
339
- const st = m(this, ie, ke).call(this, y, 0);
340
- y.style.transform = `translateX(${st + Ze}px)`;
318
+ ref: (C) => t(this, A).push(C),
319
+ onPointerdown: (C) => {
320
+ C.preventDefault(), n(this, V, !0);
321
+ const fe = m(this, M, $).call(this), He = fe[de], z = t(this, A)[de], Ke = t(this, I)[de];
322
+ if (z && Ke) {
323
+ const we = z.parentElement, Oe = m(this, U, ye).call(this);
324
+ we.classList.add("grabbing"), Te(
325
+ (be) => {
326
+ const Ee = be.x - C.x, Ze = t(this, y) ? we.offsetWidth / (Oe || 1) : 1, je = He + Ee / Ze * t(this, X);
327
+ if (fe[de] = je, !t(this, y)) {
328
+ const Je = m(this, H, ce).call(this, z, 0);
329
+ z.style.transform = `translateX(${Je + Ee}px)`;
341
330
  }
342
- this.updateStores([...G]);
331
+ this.updateStores([...fe]);
343
332
  },
344
333
  () => {
345
- if (z(this, Z, !1), !o(this, C)) {
346
- const ze = m(this, ie, ke).call(this, y, 0);
347
- y.style.transition = "transform 0.1s", y.style.transform = `translateX(${ze}px)`, $e.classList.remove("grabbing"), setTimeout(() => {
348
- y.style.transition = "";
334
+ if (n(this, V, !1), !t(this, y)) {
335
+ const be = m(this, H, ce).call(this, z, 0);
336
+ z.style.transition = "transform 0.1s", z.style.transform = `translateX(${be}px)`, we.classList.remove("grabbing"), setTimeout(() => {
337
+ z.style.transition = "";
349
338
  }, 100);
350
339
  }
351
340
  }
352
341
  );
353
342
  }
354
343
  },
355
- children: g({
344
+ children: u({
356
345
  class: "drag-knob-inner"
357
346
  })
358
347
  })
@@ -363,56 +352,30 @@ let Re = class extends H {
363
352
  });
364
353
  }
365
354
  connectedCallback() {
366
- this.firstStore.addMiddleware(o(this, le)), this.firstStore.subscribe(o(this, he)), Ge.subscribe(this, o(this, de));
355
+ this.firstStore.addMiddleware(t(this, q)), this.firstStore.subscribe(t(this, G)), Re.subscribe(this, t(this, _));
367
356
  }
368
357
  disconnectedCallback() {
369
- this.firstStore.removeMiddleware(o(this, le)), this.firstStore.unsubscribe(o(this, he)), Ge.unsubscribe(o(this, de));
358
+ this.firstStore.removeMiddleware(t(this, q)), this.firstStore.unsubscribe(t(this, G)), Re.unsubscribe(t(this, _));
370
359
  }
371
- };
372
- V = /* @__PURE__ */ new WeakMap();
373
- se = /* @__PURE__ */ new WeakMap();
374
- q = /* @__PURE__ */ new WeakMap();
375
- O = /* @__PURE__ */ new WeakMap();
376
- F = /* @__PURE__ */ new WeakMap();
377
- ne = /* @__PURE__ */ new WeakMap();
378
- oe = /* @__PURE__ */ new WeakMap();
379
- C = /* @__PURE__ */ new WeakMap();
380
- Z = /* @__PURE__ */ new WeakMap();
381
- le = /* @__PURE__ */ new WeakMap();
382
- he = /* @__PURE__ */ new WeakMap();
383
- L = /* @__PURE__ */ new WeakSet();
384
- N = function(t = this.firstStore.current) {
385
- return Array.isArray(t) ? t : [t];
386
- };
387
- ce = /* @__PURE__ */ new WeakSet();
388
- De = function() {
389
- m(this, L, N).call(this).map((t, e) => {
390
- const r = o(this, se)[e];
391
- if (r && (!o(this, Z) || o(this, Z) && o(this, C))) {
392
- const i = m(this, ie, ke).call(this, r, t);
393
- r.style.transform = `translateX(${i}px)`;
360
+ }
361
+ I = new WeakMap(), A = new WeakMap(), D = new WeakMap(), x = new WeakMap(), F = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), y = new WeakMap(), V = new WeakMap(), q = new WeakMap(), G = new WeakMap(), M = new WeakSet(), $ = function(e = this.firstStore.current) {
362
+ return Array.isArray(e) ? e : [e];
363
+ }, Q = new WeakSet(), Se = function() {
364
+ m(this, M, $).call(this).map((e, s) => {
365
+ const i = t(this, A)[s];
366
+ if (i && (!t(this, V) || t(this, V) && t(this, y))) {
367
+ const a = m(this, H, ce).call(this, i, e);
368
+ i.style.transform = `translateX(${a}px)`;
394
369
  }
395
370
  });
396
- };
397
- Se = /* @__PURE__ */ new WeakSet();
398
- Ke = function() {
399
- return o(this, C) ? o(this, F) - o(this, O) : 0;
400
- };
401
- ie = /* @__PURE__ */ new WeakSet();
402
- ke = function(t, e) {
403
- const r = t.parentElement, i = m(this, Se, Ke).call(this), s = i ? e / i : 0.5;
404
- return (r.offsetWidth - t.offsetWidth) * s;
405
- };
406
- de = /* @__PURE__ */ new WeakMap();
407
- Re = Wt([
408
- M("e-tweaker-number-manager")
409
- ], Re);
410
- var Dt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, Ft = (t, e, r, i) => {
411
- for (var s = i > 1 ? void 0 : i ? Rt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
412
- (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
413
- return i && s && Dt(e, r, s), s;
414
- };
415
- const Lt = $({
371
+ }, U = new WeakSet(), ye = function() {
372
+ return t(this, y) ? t(this, F) - t(this, x) : 0;
373
+ }, H = new WeakSet(), ce = function(e, s) {
374
+ const i = e.parentElement, a = m(this, U, ye).call(this), d = a ? s / a : 0.5;
375
+ return (i.offsetWidth - e.offsetWidth) * d;
376
+ }, _ = new WeakMap();
377
+ customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", Ve);
378
+ const ht = E({
416
379
  "e-select": {
417
380
  display: "block",
418
381
  width: "100%",
@@ -446,45 +409,38 @@ const Lt = $({
446
409
  transform: "scaleY(-1)"
447
410
  }
448
411
  });
449
- let Fe = class extends H {
450
- constructor(...t) {
451
- var r, i;
452
- super(...t), this.openShadow(Lt);
453
- const e = ((i = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : i.variants) || [];
454
- f(this, {
455
- children: f("e-select", {
412
+ class $e extends J {
413
+ constructor(...r) {
414
+ var i, a;
415
+ super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ht);
416
+ const s = ((a = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : a.variants) || [];
417
+ g(this, {
418
+ children: g("e-select", {
456
419
  value: this.firstStore,
457
- onChange: (s) => {
458
- this.updateStores(s.currentTarget.value);
420
+ onChange: (d) => {
421
+ this.updateStores(d.currentTarget.value);
459
422
  },
460
423
  lightChildren: [
461
- f("e-select-head", {
424
+ g("e-select-head", {
462
425
  lightChildren: [
463
- lt({
426
+ qe({
464
427
  "data-value-holder": ""
465
428
  })
466
429
  ]
467
430
  }),
468
- ...e.map(
469
- (s, n) => f("e-select-option", {
470
- lightChildren: s,
471
- default: n === 0 ? !0 : null
431
+ ...s.map(
432
+ (d, c) => g("e-select-option", {
433
+ lightChildren: d,
434
+ default: c === 0 ? !0 : null
472
435
  })
473
436
  )
474
437
  ]
475
438
  })
476
439
  });
477
440
  }
478
- };
479
- Fe = Ft([
480
- M("e-tweaker-select-manager")
481
- ], Fe);
482
- var It = Object.defineProperty, At = Object.getOwnPropertyDescriptor, Vt = (t, e, r, i) => {
483
- for (var s = i > 1 ? void 0 : i ? At(e, r) : e, n = t.length - 1, a; n >= 0; n--)
484
- (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
485
- return i && s && It(e, r, s), s;
486
- };
487
- const Nt = $({
441
+ }
442
+ customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", $e);
443
+ const dt = E({
488
444
  ":host": {
489
445
  width: "100%",
490
446
  display: "flex",
@@ -506,48 +462,33 @@ const Nt = $({
506
462
  borderRadius: h.borderRadius.var
507
463
  }
508
464
  });
509
- let Le = class extends H {
510
- constructor(...t) {
511
- super(...t), this.openShadow(Nt), f(this, {
465
+ class Ne extends J {
466
+ constructor(...r) {
467
+ super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(dt), g(this, {
512
468
  children: [
513
- Ce({
469
+ me({
514
470
  class: "text-input",
515
471
  type: "string",
516
472
  value: this.firstStore,
517
- onChange: (e) => {
473
+ onChange: (s) => {
518
474
  this.updateStores(
519
- e.currentTarget.value
475
+ s.currentTarget.value
520
476
  );
521
477
  }
522
478
  })
523
479
  ]
524
480
  });
525
481
  }
526
- };
527
- Le = Vt([
528
- M("e-tweaker-string-manager")
529
- ], Le);
530
- const Kt = {
531
- boolean: Oe,
532
- color: We,
533
- link: Te,
534
- number: Re,
535
- select: Fe,
536
- string: Le
537
- };
538
- var Zt = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, jt = (t, e, r, i) => {
539
- for (var s = i > 1 ? void 0 : i ? Ht(e, r) : e, n = t.length - 1, a; n >= 0; n--)
540
- (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
541
- return i && s && Zt(e, r, s), s;
542
- }, qe = (t, e, r) => {
543
- if (!e.has(t))
544
- throw TypeError("Cannot " + r);
545
- }, c = (t, e, r) => (qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), R = (t, e, r) => {
546
- if (e.has(t))
547
- throw TypeError("Cannot add the same private member more than once");
548
- e instanceof WeakSet ? e.add(t) : e.set(t, r);
549
- }, A = (t, e, r, i) => (qe(t, e, "write to private field"), e.set(t, r), r), S, Q, U, ee, te, pe, ue;
550
- const Bt = $({
482
+ }
483
+ customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", Ne);
484
+ const ct = {
485
+ boolean: Le,
486
+ color: Pe,
487
+ link: Ie,
488
+ number: Ve,
489
+ select: $e,
490
+ string: Ne
491
+ }, pt = E({
551
492
  ":host": {
552
493
  display: "grid",
553
494
  gridAutoFlow: "column",
@@ -592,48 +533,57 @@ const Bt = $({
592
533
  height: "100%"
593
534
  }
594
535
  });
595
- let xe = class extends Ve {
596
- constructor(t) {
597
- var r, i, s, n;
598
- super(), R(this, S, []), R(this, Q, void 0), R(this, U, void 0), R(this, ee, !1), R(this, te, void 0), R(this, pe, () => {
599
- K.current.find((a) => c(this, S).includes(a)) || this.remove();
600
- }), R(this, ue, (a) => {
601
- c(this, ee) && ((a.metaKey || a.ctrlKey) && a.code === "KeyC" ? navigator.clipboard.writeText(c(this, S)[0].current) : (a.metaKey || a.ctrlKey) && a.code === "KeyR" && (c(this, S).forEach((D) => {
602
- D.reset();
603
- }), a.preventDefault()));
604
- }), A(this, S, [t.store]), A(this, Q, t.store.passport.name), A(this, U, c(this, Q).split(".").slice(-1).toString());
605
- const e = ((i = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : i.type) || "string";
606
- A(this, te, new Kt[e](c(this, S)[0])), this.openShadow(Bt), f(this, {
536
+ var b, K, O, Z, j, ee, te;
537
+ class ke extends HTMLElement {
538
+ constructor(e) {
539
+ var a, d, c, S;
540
+ super();
541
+ o(this, b, []);
542
+ o(this, K, void 0);
543
+ o(this, O, void 0);
544
+ o(this, Z, !1);
545
+ o(this, j, void 0);
546
+ o(this, ee, () => {
547
+ N.current.find((e) => t(this, b).includes(e)) || this.remove();
548
+ });
549
+ o(this, te, (e) => {
550
+ t(this, Z) && ((e.metaKey || e.ctrlKey) && e.code === "KeyC" ? navigator.clipboard.writeText(t(this, b)[0].current) : (e.metaKey || e.ctrlKey) && e.code === "KeyR" && (t(this, b).forEach((s) => {
551
+ s.reset();
552
+ }), e.preventDefault()));
553
+ });
554
+ n(this, b, [e.store]), n(this, K, e.store.passport.name), n(this, O, t(this, K).split(".").slice(-1).toString());
555
+ const s = ((d = (a = e.store.passport) == null ? void 0 : a.manager) == null ? void 0 : d.type) || "string";
556
+ n(this, j, new ct[s](t(this, b)[0])), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(pt), g(this, {
607
557
  class: {
608
- disabled: ((n = (s = t.store.passport) == null ? void 0 : s.manager) == null ? void 0 : n.disabled) || !1
558
+ disabled: ((S = (c = e.store.passport) == null ? void 0 : c.manager) == null ? void 0 : S.disabled) || !1
609
559
  },
610
560
  onPointerleave: () => {
611
- A(this, ee, !1);
561
+ n(this, Z, !1);
612
562
  },
613
563
  onPointerenter: () => {
614
- A(this, ee, !0);
564
+ n(this, Z, !0);
615
565
  },
616
566
  children: [
617
- g({
567
+ u({
618
568
  class: "head",
619
569
  children: [
620
- g({ class: "name", children: c(this, U) + ":" }),
621
- g({
570
+ u({ class: "name", children: t(this, O) + ":" }),
571
+ u({
622
572
  class: "head-buttons",
623
573
  children: [
624
- re({
574
+ B({
625
575
  class: "head-button",
626
- children: Ye,
576
+ children: Me,
627
577
  onClick: () => {
628
- navigator.clipboard.writeText(c(this, S)[0].current);
578
+ navigator.clipboard.writeText(t(this, b)[0].current);
629
579
  }
630
580
  }),
631
- re({
581
+ B({
632
582
  class: "head-button",
633
- children: Xe,
583
+ children: Fe,
634
584
  onClick: () => {
635
- c(this, S).forEach((a) => {
636
- a.reset();
585
+ t(this, b).forEach((L) => {
586
+ L.reset();
637
587
  });
638
588
  }
639
589
  })
@@ -641,52 +591,32 @@ let xe = class extends Ve {
641
591
  })
642
592
  ]
643
593
  }),
644
- c(this, te)
594
+ t(this, j)
645
595
  ]
646
596
  });
647
597
  }
648
598
  get key() {
649
- return c(this, Q);
599
+ return t(this, K);
650
600
  }
651
601
  get name() {
652
- return c(this, U);
602
+ return t(this, O);
653
603
  }
654
604
  get stores() {
655
- return c(this, S);
605
+ return t(this, b);
656
606
  }
657
- addStore(t) {
658
- c(this, te).addStore(t);
607
+ addStore(e) {
608
+ t(this, j).addStore(e);
659
609
  }
660
610
  connectedCallback() {
661
- K.subscribe(c(this, pe)), addEventListener("keydown", c(this, ue)), pt(this);
611
+ N.subscribe(t(this, ee)), addEventListener("keydown", t(this, te)), _e(this);
662
612
  }
663
613
  disconnectedCallback() {
664
- K.unsubscribe(c(this, pe)), removeEventListener("keydown", c(this, ue));
614
+ N.unsubscribe(t(this, ee)), removeEventListener("keydown", t(this, te));
665
615
  }
666
- };
667
- S = /* @__PURE__ */ new WeakMap();
668
- Q = /* @__PURE__ */ new WeakMap();
669
- U = /* @__PURE__ */ new WeakMap();
670
- ee = /* @__PURE__ */ new WeakMap();
671
- te = /* @__PURE__ */ new WeakMap();
672
- pe = /* @__PURE__ */ new WeakMap();
673
- ue = /* @__PURE__ */ new WeakMap();
674
- xe = jt([
675
- M("e-tweaker-field")
676
- ], xe);
677
- var Gt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, Xt = (t, e, r, i) => {
678
- for (var s = i > 1 ? void 0 : i ? Jt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
679
- (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
680
- return i && s && Gt(e, r, s), s;
681
- }, Qe = (t, e, r) => {
682
- if (!e.has(t))
683
- throw TypeError("Cannot " + r);
684
- }, l = (t, e, r) => (Qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), E = (t, e, r) => {
685
- if (e.has(t))
686
- throw TypeError("Cannot add the same private member more than once");
687
- e instanceof WeakSet ? e.add(t) : e.set(t, r);
688
- }, X = (t, e, r, i) => (Qe(t, e, "write to private field"), e.set(t, r), r), k, ge, v, fe, ve, we, me, Ie;
689
- const Yt = $({
616
+ }
617
+ b = new WeakMap(), K = new WeakMap(), O = new WeakMap(), Z = new WeakMap(), j = new WeakMap(), ee = new WeakMap(), te = new WeakMap();
618
+ customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field", ke);
619
+ const ut = E({
690
620
  ".wrapper": {
691
621
  boxSizing: "border-box",
692
622
  backgroundColor: "rgba(255, 255, 255, 0.1)",
@@ -741,129 +671,119 @@ const Yt = $({
741
671
  transform: "scaleY(-1)"
742
672
  }
743
673
  });
744
- let ae = class extends Ve {
745
- constructor(t) {
746
- super(), E(this, k, void 0), E(this, ge, new je(null)), E(this, v, new je([])), E(this, fe, void 0), E(this, ve, null), E(this, we, null), E(this, me, null), E(this, Ie, (e) => {
747
- let r = [], i = [];
748
- e.forEach((s) => {
749
- r = [...r, ...s.removedNodes], i = [...i, ...s.addedNodes];
750
- }), l(this, v).current = l(this, v).current.filter(
751
- (s) => !r.includes(s)
752
- ), l(this, k) && !l(this, v).current.length && !i.length && this.remove();
753
- }), this.openShadow(Yt), X(this, k, t.key), X(this, fe, new MutationObserver(l(this, Ie))), f(this, {
674
+ var v, se, p, ie, re, oe, ne, ue;
675
+ const ge = class ge extends HTMLElement {
676
+ constructor(e) {
677
+ super();
678
+ o(this, v, void 0);
679
+ o(this, se, new Ce(null));
680
+ o(this, p, new Ce([]));
681
+ o(this, ie, void 0);
682
+ o(this, re, null);
683
+ o(this, oe, null);
684
+ o(this, ne, null);
685
+ o(this, ue, (e) => {
686
+ let s = [], i = [];
687
+ e.forEach((a) => {
688
+ s = [...s, ...a.removedNodes], i = [...i, ...a.addedNodes];
689
+ }), t(this, p).current = t(this, p).current.filter(
690
+ (a) => !s.includes(a)
691
+ ), t(this, v) && !t(this, p).current.length && !i.length && this.remove();
692
+ });
693
+ this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ut), n(this, v, e.key), n(this, ie, new MutationObserver(t(this, ue))), g(this, {
754
694
  children: [
755
- g({
695
+ u({
756
696
  class: "wrapper",
757
697
  children: [
758
- g({
698
+ u({
759
699
  class: "head",
760
- onClick: (e) => {
761
- this.classList.toggle("opened"), this.classList.contains("opened") ? w.openPanel(l(this, k)) : w.closePanel(l(this, k));
700
+ onClick: (i) => {
701
+ this.classList.toggle("opened"), this.classList.contains("opened") ? f.openPanel(t(this, v)) : f.closePanel(t(this, v));
762
702
  },
763
703
  children: [
764
- l(this, k) ? g({
704
+ t(this, v) ? u({
765
705
  class: "name",
766
- children: [l(this, k).split(".").slice(-1).toString()]
706
+ children: [t(this, v).split(".").slice(-1).toString()]
767
707
  }) : null,
768
- l(this, ge),
769
- f(dt, {
708
+ t(this, se),
709
+ g(Ue, {
770
710
  class: "arrow"
771
711
  })
772
712
  ]
773
713
  }),
774
- g({
714
+ u({
775
715
  class: "body",
776
- ref: (e) => {
777
- X(this, ve, e);
716
+ ref: (i) => {
717
+ n(this, re, i);
778
718
  },
779
- children: g({
719
+ children: u({
780
720
  class: "body-content",
781
- children: l(this, v),
782
- ref: (e) => {
783
- X(this, we, e), X(this, me, e.firstElementChild);
721
+ children: t(this, p),
722
+ ref: (i) => {
723
+ n(this, oe, i), n(this, ne, i.firstElementChild);
784
724
  }
785
725
  })
786
726
  })
787
727
  ]
788
728
  })
789
729
  ]
790
- }), t != null && t.storeBox && this.handleStore(t.storeBox);
730
+ }), e != null && e.storeBox && this.handleStore(e.storeBox);
791
731
  }
792
732
  get key() {
793
- return l(this, k);
733
+ return t(this, v);
794
734
  }
795
735
  get head() {
796
- return l(this, ge);
736
+ return t(this, se);
797
737
  }
798
738
  get content() {
799
- return l(this, v);
739
+ return t(this, p);
800
740
  }
801
741
  get bodyElement() {
802
- return l(this, ve);
742
+ return t(this, re);
803
743
  }
804
744
  get contentElement() {
805
- return l(this, we);
745
+ return t(this, oe);
806
746
  }
807
747
  connectedCallback() {
808
- w.isPanelOpened(l(this, k)) && this.classList.add("opened"), setTimeout(() => {
748
+ f.isPanelOpened(t(this, v)) && this.classList.add("opened"), setTimeout(() => {
809
749
  this.classList.add("transition-allowed");
810
- }), l(this, fe).observe(l(this, me), {
750
+ }), t(this, ie).observe(t(this, ne), {
811
751
  childList: !0
812
752
  });
813
753
  }
814
- handleStore(t) {
815
- if (t.remainingFolders.length) {
816
- const r = t.store.passport.name.split("."), i = r.slice(0, r.length - t.remainingFolders.length).join("."), s = l(this, v).current.find((n) => n.key === i);
817
- s instanceof ae ? s.handleStore({
818
- store: t.store,
819
- remainingFolders: t.remainingFolders.slice(1)
820
- }) : l(this, v).current = [
821
- ...l(this, v).current,
822
- new ae({
823
- key: i,
754
+ handleStore(e) {
755
+ if (e.remainingFolders.length) {
756
+ const i = e.store.passport.name.split("."), a = i.slice(0, i.length - e.remainingFolders.length).join("."), d = t(this, p).current.find((c) => c.key === a);
757
+ d instanceof ge ? d.handleStore({
758
+ store: e.store,
759
+ remainingFolders: e.remainingFolders.slice(1)
760
+ }) : t(this, p).current = [
761
+ ...t(this, p).current,
762
+ new ge({
763
+ key: a,
824
764
  storeBox: {
825
- store: t.store,
826
- remainingFolders: t.remainingFolders.slice(1)
765
+ store: e.store,
766
+ remainingFolders: e.remainingFolders.slice(1)
827
767
  }
828
768
  })
829
769
  ];
830
770
  } else {
831
- const e = l(this, v).current.find(
832
- (r) => r.key === t.store.passport.name
771
+ const s = t(this, p).current.find(
772
+ (i) => i.key === e.store.passport.name
833
773
  );
834
- e instanceof xe ? e.addStore(t.store) : l(this, v).current = [
835
- ...l(this, v).current,
836
- new xe({
837
- store: t.store
774
+ s instanceof ke ? s.addStore(e.store) : t(this, p).current = [
775
+ ...t(this, p).current,
776
+ new ke({
777
+ store: e.store
838
778
  })
839
779
  ];
840
780
  }
841
781
  }
842
782
  };
843
- k = /* @__PURE__ */ new WeakMap();
844
- ge = /* @__PURE__ */ new WeakMap();
845
- v = /* @__PURE__ */ new WeakMap();
846
- fe = /* @__PURE__ */ new WeakMap();
847
- ve = /* @__PURE__ */ new WeakMap();
848
- we = /* @__PURE__ */ new WeakMap();
849
- me = /* @__PURE__ */ new WeakMap();
850
- Ie = /* @__PURE__ */ new WeakMap();
851
- ae = Xt([
852
- M("e-tweaker-folder")
853
- ], ae);
854
- var qt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, Ut = (t, e, r, i) => {
855
- for (var s = i > 1 ? void 0 : i ? Qt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
856
- (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
857
- return i && s && qt(e, r, s), s;
858
- }, Ue = (t, e, r) => {
859
- if (!e.has(t))
860
- throw TypeError("Cannot " + r);
861
- }, Y = (t, e, r) => (Ue(t, e, "read from private field"), e.get(t)), Ee = (t, e, r) => {
862
- if (e.has(t))
863
- throw TypeError("Cannot add the same private member more than once");
864
- e instanceof WeakSet ? e.add(t) : e.set(t, r);
865
- }, er = (t, e, r, i) => (Ue(t, e, "write to private field"), e.set(t, r), r), be, _e, ye;
866
- const tr = $({
783
+ v = new WeakMap(), se = new WeakMap(), p = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), ne = new WeakMap(), ue = new WeakMap();
784
+ let pe = ge;
785
+ customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder", pe);
786
+ const gt = E({
867
787
  ":host": {
868
788
  "--tweaker-width": "550px",
869
789
  "--tweaker-offset": "20px",
@@ -938,7 +858,7 @@ const tr = $({
938
858
  ":host .body-content::-webkit-scrollbar": {
939
859
  display: "none"
940
860
  },
941
- [`@media ${ct["<=mobile"]}`]: {
861
+ [`@media ${Qe["<=mobile"]}`]: {
942
862
  ":host": {
943
863
  position: "absolute",
944
864
  top: "0",
@@ -955,79 +875,84 @@ const tr = $({
955
875
  }
956
876
  }
957
877
  });
958
- let Ae = class extends ae {
878
+ var ae, le, he;
879
+ class Ae extends pe {
959
880
  constructor() {
960
881
  super({
961
882
  key: ""
962
- }), Ee(this, be, !1), Ee(this, _e, () => {
963
- w.save();
964
- }), Ee(this, ye, nt(() => {
965
- K.current.forEach((t) => {
966
- var e;
967
- if (t.passport && !((e = t.passport.manager) != null && e.invisible)) {
968
- const r = t.passport.name.split(".");
883
+ });
884
+ o(this, ae, !1);
885
+ o(this, le, () => {
886
+ f.save();
887
+ });
888
+ o(this, he, Xe(() => {
889
+ N.current.forEach((e) => {
890
+ var s;
891
+ if (e.passport && !((s = e.passport.manager) != null && s.invisible)) {
892
+ const i = e.passport.name.split(".");
969
893
  this.handleStore({
970
- store: t,
971
- remainingFolders: r.length > 1 ? r.slice(0, -1) : []
894
+ store: e,
895
+ remainingFolders: i.length > 1 ? i.slice(0, -1) : []
972
896
  });
973
897
  }
974
- }), Y(this, be) || (er(this, be, !0), this.contentElement.scroll({
975
- top: w.scrollValue
898
+ }), t(this, ae) || (n(this, ae, !0), this.contentElement.scroll({
899
+ top: f.scrollValue
976
900
  }), this.contentElement.addEventListener("scroll", () => {
977
- w.scrollValue = this.contentElement.scrollTop;
901
+ f.scrollValue = this.contentElement.scrollTop;
978
902
  }));
979
- }, 10)), w.load(), this.addStylesheet(tr), this.head.current = [
980
- g({
903
+ }, 10));
904
+ f.load(), this.shadowRoot.adoptedStyleSheets.push(gt), this.head.current = [
905
+ u({
981
906
  class: "tweaker-buttons",
982
- onClick: (t) => {
983
- t.stopPropagation();
907
+ onClick: (e) => {
908
+ e.stopPropagation();
984
909
  },
985
910
  children: [
986
- re({
911
+ B({
987
912
  class: "tweaker-button",
988
- children: Xe,
913
+ children: Fe,
989
914
  onClick: () => {
990
- W.resetState();
915
+ R.resetState();
991
916
  }
992
917
  }),
993
- re({
918
+ B({
994
919
  class: ["tweaker-button"],
995
- children: [Ye],
920
+ children: [Me],
996
921
  onClick: () => {
997
922
  navigator.clipboard.writeText(
998
- JSON.stringify(W.getState())
923
+ JSON.stringify(R.getState())
999
924
  );
1000
925
  }
1001
926
  }),
1002
- re({
927
+ B({
1003
928
  class: "tweaker-button",
1004
- children: ft,
929
+ children: st,
1005
930
  onClick: () => {
1006
- at(
1007
- W.projectName,
1008
- W.getState()
931
+ Be(
932
+ R.projectName,
933
+ R.getState()
1009
934
  );
1010
935
  }
1011
936
  }),
1012
- ht({
937
+ Ge({
1013
938
  class: "tweaker-button",
1014
939
  children: [
1015
- vt,
1016
- Ce({
940
+ it,
941
+ me({
1017
942
  type: "file",
1018
943
  style: {
1019
944
  display: "none"
1020
945
  },
1021
- onChange: (t) => {
1022
- var i;
1023
- const r = (i = t.currentTarget.files) == null ? void 0 : i[0];
1024
- if (r) {
1025
- const s = new FileReader();
1026
- s.onload = (n) => {
1027
- var D, j;
1028
- const a = (j = (D = n.target) == null ? void 0 : D.result) == null ? void 0 : j.toString();
1029
- a && W.loadState(a);
1030
- }, s.readAsText(r);
946
+ onChange: (e) => {
947
+ var a;
948
+ const i = (a = e.currentTarget.files) == null ? void 0 : a[0];
949
+ if (i) {
950
+ const d = new FileReader();
951
+ d.onload = (c) => {
952
+ var L, W;
953
+ const S = (W = (L = c.target) == null ? void 0 : L.result) == null ? void 0 : W.toString();
954
+ S && R.loadState(S);
955
+ }, d.readAsText(i);
1031
956
  }
1032
957
  }
1033
958
  })
@@ -1035,45 +960,41 @@ let Ae = class extends ae {
1035
960
  })
1036
961
  ]
1037
962
  })
1038
- ], f(this.bodyElement, {
963
+ ], g(this.bodyElement, {
1039
964
  children: [
1040
- g({
965
+ u({
1041
966
  class: "resize",
1042
- onPointerdown: (t) => {
1043
- t.preventDefault();
1044
- const e = this.getBoundingClientRect(), r = this.contentElement.scrollTop;
1045
- Je(
1046
- (i) => {
1047
- const s = t.x - i.x, n = Math.max(400, e.width + s);
1048
- this.style.width = n + "px", w.changeSize("tweaker", n);
967
+ onPointerdown: (e) => {
968
+ e.preventDefault();
969
+ const s = this.getBoundingClientRect(), i = this.contentElement.scrollTop;
970
+ Te(
971
+ (a) => {
972
+ const d = e.x - a.x, c = Math.max(400, s.width + d);
973
+ this.style.width = c + "px", f.changeSize("tweaker", c);
1049
974
  },
1050
975
  () => {
1051
976
  setTimeout(() => {
1052
977
  this.contentElement.scroll({
1053
- top: r
978
+ top: i
1054
979
  });
1055
980
  }, 10);
1056
981
  }
1057
982
  );
1058
983
  },
1059
984
  onDblclick: () => {
1060
- this.style.width = "", w.changeSize("tweaker", null);
985
+ this.style.width = "", f.changeSize("tweaker", null);
1061
986
  }
1062
987
  })
1063
988
  ]
1064
989
  });
1065
990
  }
1066
991
  connectedCallback() {
1067
- super.connectedCallback(), window.addEventListener("beforeunload", Y(this, _e)), K.subscribe(Y(this, ye)), w.changedSizes("tweaker") && (this.style.width = w.changedSizes("tweaker") + "px");
992
+ super.connectedCallback(), window.addEventListener("beforeunload", t(this, le)), N.subscribe(t(this, he)), f.changedSizes("tweaker") && (this.style.width = f.changedSizes("tweaker") + "px");
1068
993
  }
1069
994
  disconnectedCallback() {
1070
- window.removeEventListener("beforeunload", Y(this, _e)), w.save(), K.unsubscribe(Y(this, ye));
995
+ window.removeEventListener("beforeunload", t(this, le)), f.save(), N.unsubscribe(t(this, he));
1071
996
  }
1072
- };
1073
- be = /* @__PURE__ */ new WeakMap();
1074
- _e = /* @__PURE__ */ new WeakMap();
1075
- ye = /* @__PURE__ */ new WeakMap();
1076
- Ae = Ut([
1077
- M("e-tweaker")
1078
- ], Ae);
1079
- it && document.body.appendChild(new Ae());
997
+ }
998
+ ae = new WeakMap(), le = new WeakMap(), he = new WeakMap();
999
+ customElements.get("e-tweaker") || customElements.define("e-tweaker", Ae);
1000
+ We && document.body.appendChild(new Ae());