aptechka 0.1.3 → 0.1.5

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 (209) hide show
  1. package/lib/Animated-CzBHCHNm.js +130 -0
  2. package/lib/Animated-DZ_fbJmi.cjs +1 -0
  3. package/lib/Damped--qBZAdEi.cjs +1 -0
  4. package/lib/Damped-Bm1kSn1f.js +36 -0
  5. package/lib/Derived-BS2ja9qa.js +27 -0
  6. package/lib/Derived-CqmIkTGN.cjs +1 -0
  7. package/lib/ElementConstructor-DB0xOoat.js +199 -0
  8. package/lib/ElementConstructor-v1FPLXAW.cjs +1 -0
  9. package/lib/{SourceManager-vXInLlh_.js → SourceManager-B44FUTig.js} +26 -26
  10. package/lib/SourceManager-D447KWpH.cjs +1 -0
  11. package/lib/Store-BOOfmlyv.cjs +1 -0
  12. package/lib/{Store-qq7IjRLE.js → Store-uTyReFzx.js} +50 -34
  13. package/lib/Viewport-CDqiD8Ao.cjs +1 -0
  14. package/lib/Viewport-Cj0i-H5d.js +129 -0
  15. package/lib/WheelControls-CX9WUbBC.js +83 -0
  16. package/lib/WheelControls-CfDeGCOU.cjs +1 -0
  17. package/lib/abstract-elements/AbstractButtonElement.d.ts +5 -0
  18. package/lib/abstract-elements/index.cjs +1 -0
  19. package/lib/abstract-elements/index.d.ts +1 -0
  20. package/lib/abstract-elements/index.js +27 -0
  21. package/lib/accordion/AccordionElement.d.ts +24 -1
  22. package/lib/accordion/index.cjs +1 -0
  23. package/lib/accordion/index.js +166 -0
  24. package/lib/animation/Animated.d.ts +9 -12
  25. package/lib/animation/Tweened.d.ts +1 -1
  26. package/lib/animation/index.cjs +1 -1
  27. package/lib/animation/index.d.ts +1 -1
  28. package/lib/animation/index.js +11 -17
  29. package/lib/attribute/index.cjs +1 -1
  30. package/lib/attribute/index.d.ts +8 -4
  31. package/lib/attribute/index.js +44 -35
  32. package/lib/canvas/index.cjs +1 -0
  33. package/lib/{canvas-2d → canvas}/index.d.ts +4 -3
  34. package/lib/canvas/index.js +97 -0
  35. package/lib/connector/index.cjs +1 -0
  36. package/lib/connector/index.d.ts +14 -0
  37. package/lib/connector/index.js +53 -0
  38. package/lib/controls/WheelControls.d.ts +3 -2
  39. package/lib/controls/index.cjs +1 -1
  40. package/lib/controls/index.js +23 -27
  41. package/lib/createStylesheet-74ZP3AZm.js +8 -0
  42. package/lib/createStylesheet-ChhZFwSX.cjs +1 -0
  43. package/lib/createTheme-BMH9cRrS.js +15 -0
  44. package/lib/createTheme-COo8IzPG.cjs +1 -0
  45. package/lib/custom-element/index.cjs +1 -1
  46. package/lib/custom-element/index.d.ts +3 -1
  47. package/lib/custom-element/index.js +19 -9
  48. package/lib/device/Viewport.d.ts +1 -1
  49. package/lib/device/index.cjs +1 -1
  50. package/lib/device/index.js +5 -121
  51. package/lib/element-constructor/ElementConstructor.d.ts +11 -15
  52. package/lib/element-constructor/createStylesheet.d.ts +2 -0
  53. package/lib/element-constructor/createTheme.d.ts +12 -0
  54. package/lib/element-constructor/htmlTags.d.ts +115 -113
  55. package/lib/element-constructor/index.cjs +1 -1
  56. package/lib/element-constructor/index.d.ts +2 -1
  57. package/lib/element-constructor/index.js +387 -1136
  58. package/lib/element-constructor/svgTags.d.ts +63 -63
  59. package/lib/element-resizer/index.cjs +1 -0
  60. package/lib/element-resizer/index.d.ts +9 -0
  61. package/lib/element-resizer/index.js +64 -0
  62. package/lib/en3/attachments/En3SourceManager.d.ts +2 -2
  63. package/lib/en3/index.cjs +7 -7
  64. package/lib/en3/index.js +252 -242
  65. package/lib/en3/objects/En3Clip.d.ts +2 -2
  66. package/lib/events-CoqmkUxo.js +11 -0
  67. package/lib/events-D68xg4dy.cjs +1 -0
  68. package/lib/file-EevnUtRj.cjs +1 -0
  69. package/lib/file-lxi_oXJf.js +13 -0
  70. package/lib/htmlTags-CNEFIHPp.js +683 -0
  71. package/lib/htmlTags-CwYHVo9n.cjs +1 -0
  72. package/lib/image/index.cjs +1 -1
  73. package/lib/image/index.js +13 -20
  74. package/lib/index-DyJhLxk8.js +310 -0
  75. package/lib/index-tPw9mmLF.cjs +9 -0
  76. package/lib/intersector/index.cjs +1 -1
  77. package/lib/intersector/index.d.ts +2 -1
  78. package/lib/intersector/index.js +33 -22
  79. package/lib/jsx/ComponentWrapper.d.ts +12 -0
  80. package/lib/jsx/h.d.ts +7 -0
  81. package/lib/jsx/hooks.d.ts +19 -0
  82. package/lib/jsx/index.cjs +1 -0
  83. package/lib/jsx/index.d.ts +4 -0
  84. package/lib/jsx/index.js +125 -0
  85. package/lib/jsx/render.d.ts +2 -0
  86. package/lib/jsx/type.d.ts +185 -0
  87. package/lib/ladder/index.cjs +1 -1
  88. package/lib/ladder/index.js +3 -4
  89. package/lib/layout-box/index.cjs +1 -1
  90. package/lib/layout-box/index.d.ts +1 -0
  91. package/lib/layout-box/index.js +113 -99
  92. package/lib/loading/index.cjs +1 -1
  93. package/lib/loading/index.js +1 -1
  94. package/lib/media/index.cjs +1 -1
  95. package/lib/media/index.js +17 -20
  96. package/lib/modal/ModalElement.d.ts +12 -0
  97. package/lib/modal/index.cjs +1 -0
  98. package/lib/modal/index.d.ts +1 -0
  99. package/lib/modal/index.js +144 -0
  100. package/lib/morph/index.cjs +1 -1
  101. package/lib/morph/index.js +1 -1
  102. package/lib/number-Bo5RdrA1.js +23 -0
  103. package/lib/number-yVpzMdbQ.cjs +1 -0
  104. package/lib/popover/PopoverButtonElement.d.ts +14 -0
  105. package/lib/popover/PopoverElement.d.ts +19 -0
  106. package/lib/popover/index.cjs +1 -0
  107. package/lib/popover/index.d.ts +2 -0
  108. package/lib/popover/index.js +122 -0
  109. package/lib/router/index.cjs +1 -1
  110. package/lib/router/index.js +2 -2
  111. package/lib/scroll/ScrollElement.d.ts +5 -3
  112. package/lib/scroll/index.cjs +1 -71
  113. package/lib/scroll/index.js +349 -314
  114. package/lib/scroll-entries/index.cjs +1 -1
  115. package/lib/scroll-entries/index.d.ts +1 -1
  116. package/lib/scroll-entries/index.js +4 -2
  117. package/lib/select/SelectElement.d.ts +25 -0
  118. package/lib/select/SelectHeadElement.d.ts +12 -0
  119. package/lib/select/SelectOptionElement.d.ts +13 -0
  120. package/lib/select/SelectUserElement.d.ts +7 -0
  121. package/lib/select/index.cjs +1 -0
  122. package/lib/select/index.d.ts +4 -0
  123. package/lib/select/index.js +7 -0
  124. package/lib/source/SourceClass.d.ts +1 -1
  125. package/lib/source/index.cjs +2 -2
  126. package/lib/source/index.js +13 -18
  127. package/lib/store/CumulativeResource.d.ts +2 -2
  128. package/lib/store/Resource.d.ts +1 -1
  129. package/lib/store/Store.d.ts +55 -9
  130. package/lib/store/StoreRegistry.d.ts +2 -2
  131. package/lib/store/index.cjs +1 -1
  132. package/lib/store/index.d.ts +2 -1
  133. package/lib/store/index.js +105 -66
  134. package/lib/string-BrDhnNUL.js +39 -0
  135. package/lib/string-DzUwFYSS.cjs +1 -0
  136. package/lib/studio/StudioElement.d.ts +3 -0
  137. package/lib/studio/index.cjs +10 -0
  138. package/lib/studio/index.js +985 -0
  139. package/lib/studio/studioStorage.d.ts +14 -0
  140. package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +10 -0
  141. package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +10 -0
  142. package/lib/studio/tweaker/TweakerElement.d.ts +17 -0
  143. package/lib/studio/tweaker/TweakerFieldElement.d.ts +20 -0
  144. package/lib/studio/tweaker/TweakerFolderElement.d.ts +22 -0
  145. package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +10 -0
  146. package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +17 -0
  147. package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +10 -0
  148. package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +10 -0
  149. package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +7 -0
  150. package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +12 -0
  151. package/lib/studio/tweaker/tweakerManagerConstructors.d.ts +5 -0
  152. package/lib/style-At6aDoqG.cjs +1 -0
  153. package/lib/style-j2TwriJ_.js +10 -0
  154. package/lib/theme/index.cjs +1 -0
  155. package/lib/theme/index.d.ts +90 -0
  156. package/lib/theme/index.js +34 -0
  157. package/lib/ticker/index.cjs +1 -1
  158. package/lib/ticker/index.js +1 -1
  159. package/lib/utils/events.d.ts +6 -0
  160. package/lib/utils/index.cjs +1 -1
  161. package/lib/utils/index.d.ts +8 -7
  162. package/lib/utils/index.js +95 -105
  163. package/lib/utils/number.d.ts +2 -3
  164. package/lib/utils/string.d.ts +1 -0
  165. package/lib/utils/style.d.ts +2 -0
  166. package/lib/utils/ts-utility.d.ts +2 -0
  167. package/lib/video/index.cjs +1 -1
  168. package/lib/video/index.js +13 -20
  169. package/lib/window-resizer/index.cjs +1 -0
  170. package/lib/window-resizer/index.d.ts +9 -0
  171. package/lib/window-resizer/index.js +46 -0
  172. package/package.json +91 -28
  173. package/lib/Damped-DdPj4Sho.cjs +0 -1
  174. package/lib/Damped-H3PuZwKV.js +0 -152
  175. package/lib/SourceManager-tmQlXkSD.cjs +0 -1
  176. package/lib/Store-txkR3wXU.cjs +0 -1
  177. package/lib/WheelControls-9ZQKSYYq.js +0 -83
  178. package/lib/WheelControls-TYhGU6oA.cjs +0 -1
  179. package/lib/canvas-2d/index.cjs +0 -5
  180. package/lib/canvas-2d/index.js +0 -90
  181. package/lib/element-constructor/specialObjects.d.ts +0 -2
  182. package/lib/measurer/CumulativeOffsetLeft.d.ts +0 -4
  183. package/lib/measurer/CumulativeOffsetTop.d.ts +0 -4
  184. package/lib/measurer/Meaurer.d.ts +0 -8
  185. package/lib/measurer/index.cjs +0 -1
  186. package/lib/measurer/index.d.ts +0 -3
  187. package/lib/measurer/index.js +0 -48
  188. package/lib/number-2bR0KBcX.cjs +0 -1
  189. package/lib/number-bCHB2GAD.js +0 -31
  190. package/lib/resizer/index.cjs +0 -1
  191. package/lib/resizer/index.d.ts +0 -10
  192. package/lib/resizer/index.js +0 -45
  193. package/lib/string-GmxZA5Nq.js +0 -31
  194. package/lib/string-WmNOGq16.cjs +0 -1
  195. package/lib/utils/dev.d.ts +0 -3
  196. /package/lib/{attributes-w0u-KiIb.js → attributes-69we3byR.js} +0 -0
  197. /package/lib/{attributes-_2U65GDl.cjs → attributes-Bf2svn4j.cjs} +0 -0
  198. /package/lib/{browser-S4eq8AeN.js → browser-0zX67oeU.js} +0 -0
  199. /package/lib/{browser-QbF6EW-w.cjs → browser-CpzFX2xg.cjs} +0 -0
  200. /package/lib/{dom-bHEwc_xV.js → dom-BY7JhTx5.js} +0 -0
  201. /package/lib/{dom-QhWsdQS2.cjs → dom-qY2LdCVL.cjs} +0 -0
  202. /package/lib/{easings-uF-tgahf.js → easings-BKi40vHz.js} +0 -0
  203. /package/lib/{easings-_wFs9ZWc.cjs → easings-DsS5-Kqc.cjs} +0 -0
  204. /package/lib/{function-zwSFehNd.js → function-C10DGppn.js} +0 -0
  205. /package/lib/{function-QP7IreXR.cjs → function-MthRj-GJ.cjs} +0 -0
  206. /package/lib/{layout-rZzbsLPd.cjs → layout-8ryRAMGJ.cjs} +0 -0
  207. /package/lib/{layout-5SJlcXTY.js → layout-HoBT_Da2.js} +0 -0
  208. /package/lib/{math-_a3IpKOc.js → math-BOBiC4TN.js} +0 -0
  209. /package/lib/{math-FNUBmQPK.cjs → math-GDWEqu7y.cjs} +0 -0
@@ -0,0 +1,985 @@
1
+ var ge = (t, e, r) => {
2
+ if (!e.has(t))
3
+ throw TypeError("Cannot " + r);
4
+ };
5
+ var w = (t, e, r) => (ge(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Z = (t, e, r) => {
6
+ if (e.has(t))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ e instanceof WeakSet ? e.add(t) : e.set(t, r);
9
+ }, P = (t, e, r, s) => (ge(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 ue, define as p } from "../custom-element/index.js";
12
+ import { e as m } from "../ElementConstructor-DB0xOoat.js";
13
+ import { c as g } from "../createStylesheet-74ZP3AZm.js";
14
+ import { s as _, S as se, a as x } from "../Store-uTyReFzx.js";
15
+ import { c as Se } from "../file-lxi_oXJf.js";
16
+ import { d as $e } from "../function-C10DGppn.js";
17
+ import { _ as z, a as Pe, aW as ee, az as Oe, C as f, p as F, a1 as Me } from "../htmlTags-CNEFIHPp.js";
18
+ import { A as Ee } from "../Animated-CzBHCHNm.js";
19
+ import { a as Te } from "../Viewport-Cj0i-H5d.js";
20
+ import { AccordionElement as De } from "../accordion/index.js";
21
+ import { a as Re } from "../index-DyJhLxk8.js";
22
+ import { aptechkaTheme as i } from "../theme/index.js";
23
+ import { c as We } from "../math-BOBiC4TN.js";
24
+ const me = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', be = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', Le = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', Fe = '<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 $, u;
26
+ class Ae {
27
+ constructor() {
28
+ Z(this, $, "");
29
+ Z(this, u, []);
30
+ P(this, $, _.projectName + "-studio");
31
+ }
32
+ openPanel(e) {
33
+ w(this, u).includes(e) || w(this, u).push(e);
34
+ }
35
+ closePanel(e) {
36
+ P(this, u, w(this, u).filter((r) => r !== e));
37
+ }
38
+ isPanelOpened(e) {
39
+ return w(this, u).includes(e);
40
+ }
41
+ save() {
42
+ const e = {
43
+ openedPanels: w(this, u)
44
+ };
45
+ localStorage.setItem(w(this, $), JSON.stringify(e)), _.saveState();
46
+ }
47
+ load() {
48
+ _.loadState();
49
+ const e = localStorage.getItem(w(this, $));
50
+ if (e)
51
+ try {
52
+ const r = JSON.parse(e);
53
+ r.openedPanels && P(this, u, r.openedPanels);
54
+ } catch (r) {
55
+ console.error(r);
56
+ }
57
+ }
58
+ }
59
+ $ = new WeakMap(), u = new WeakMap();
60
+ const S = new Ae();
61
+ var I;
62
+ class N extends ue {
63
+ constructor(r) {
64
+ super();
65
+ Z(this, I, void 0);
66
+ P(this, I, r);
67
+ }
68
+ get store() {
69
+ return w(this, I);
70
+ }
71
+ }
72
+ I = new WeakMap();
73
+ var Ie = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, Ne = (t, e, r, s) => {
74
+ for (var a = s > 1 ? void 0 : s ? ze(e, r) : e, o = t.length - 1, n; o >= 0; o--)
75
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
76
+ return s && a && Ie(e, r, a), a;
77
+ };
78
+ const He = g({
79
+ ":host": {
80
+ width: "100%",
81
+ display: "inline-flex",
82
+ height: "max-content"
83
+ },
84
+ input: {
85
+ padding: "0",
86
+ margin: "0",
87
+ width: `calc(${i.heightInput.var} * 0.5)`,
88
+ height: `calc(${i.heightInput.var} * 0.5)`,
89
+ borderRadius: i.borderRadius.var,
90
+ overflow: "hidden",
91
+ accentColor: i.colorLight.var
92
+ }
93
+ });
94
+ let ne = class extends N {
95
+ constructor(t) {
96
+ super(t), this.openShadow(He), m(this, {
97
+ shadowChildren: [
98
+ z({
99
+ attributes: {
100
+ type: "checkbox"
101
+ },
102
+ events: {
103
+ change: (e) => {
104
+ this.store.current = e.currentTarget.checked;
105
+ }
106
+ },
107
+ ref: (e) => {
108
+ this.store.subscribe((r) => {
109
+ e.checked = r.current;
110
+ });
111
+ }
112
+ })
113
+ ]
114
+ });
115
+ }
116
+ };
117
+ ne = Ne([
118
+ p("e-tweaker-boolean-manager")
119
+ ], ne);
120
+ var Ze = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, Ke = (t, e, r, s) => {
121
+ for (var a = s > 1 ? void 0 : s ? Ge(e, r) : e, o = t.length - 1, n; o >= 0; o--)
122
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
123
+ return s && a && Ze(e, r, a), a;
124
+ };
125
+ const Je = g({
126
+ ":host": {
127
+ width: "100%",
128
+ display: "inline-flex",
129
+ height: "max-content"
130
+ },
131
+ input: {
132
+ width: "100%",
133
+ height: i.heightInput.var,
134
+ padding: "0",
135
+ background: "none",
136
+ borderRadius: i.borderRadius.var,
137
+ border: "none",
138
+ blockSize: "unset"
139
+ },
140
+ "input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper": {
141
+ boxSizing: "border-box",
142
+ padding: "0px",
143
+ border: "none",
144
+ borderRadius: i.borderRadius.var,
145
+ height: `calc(${i.heightInput.var} * 0.93)`
146
+ }
147
+ });
148
+ let ie = class extends N {
149
+ constructor(t) {
150
+ super(t), this.openShadow(Je), m(this, {
151
+ shadowChildren: [
152
+ z({
153
+ attributes: {
154
+ type: "color",
155
+ value: this.store
156
+ },
157
+ events: {
158
+ input: (e) => {
159
+ this.store.current = e.currentTarget.value;
160
+ }
161
+ }
162
+ })
163
+ ]
164
+ });
165
+ }
166
+ };
167
+ ie = Ke([
168
+ p("e-tweaker-color-manager")
169
+ ], ie);
170
+ var Ve = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, Ye = (t, e, r, s) => {
171
+ for (var a = s > 1 ? void 0 : s ? Be(e, r) : e, o = t.length - 1, n; o >= 0; o--)
172
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
173
+ return s && a && Ve(e, r, a), a;
174
+ };
175
+ const qe = g({
176
+ a: {
177
+ color: "inherit"
178
+ }
179
+ });
180
+ let oe = class extends N {
181
+ constructor(t) {
182
+ var e, r;
183
+ super(t), this.openShadow(qe), m(this, {
184
+ shadowChildren: [
185
+ Pe({
186
+ attributes: {
187
+ href: this.store,
188
+ target: (r = (e = this.store.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank"
189
+ },
190
+ children: this.store
191
+ })
192
+ ]
193
+ });
194
+ }
195
+ };
196
+ oe = Ye([
197
+ p("e-tweaker-link-manager")
198
+ ], oe);
199
+ var Qe = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, Xe = (t, e, r, s) => {
200
+ for (var a = s > 1 ? void 0 : s ? Ue(e, r) : e, o = t.length - 1, n; o >= 0; o--)
201
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
202
+ return s && a && Qe(e, r, a), a;
203
+ }, je = (t, e, r) => {
204
+ if (!e.has(t))
205
+ throw TypeError("Cannot " + r);
206
+ }, te = (t, e, r) => (je(t, e, "read from private field"), r ? r.call(t) : e.get(t)), et = (t, e, r) => {
207
+ if (e.has(t))
208
+ throw TypeError("Cannot add the same private member more than once");
209
+ e instanceof WeakSet ? e.add(t) : e.set(t, r);
210
+ }, M;
211
+ const tt = g({
212
+ ":host": {
213
+ width: "100%",
214
+ display: "flex",
215
+ alignItems: "center"
216
+ },
217
+ input: {
218
+ boxSizing: "border-box",
219
+ outline: "none",
220
+ fontVariantNumeric: "tabular-nums",
221
+ fontFamily: "inherit",
222
+ color: "inherit",
223
+ border: "none",
224
+ fontSize: i.fontSizeSmall.var
225
+ },
226
+ ".text-input": {
227
+ height: i.heightInput.var,
228
+ width: "100%",
229
+ margin: "0",
230
+ padding: `0 ${i.gapSmall.var}`,
231
+ backgroundColor: "rgba(255, 255, 255, 0.1)",
232
+ borderRadius: i.borderRadius.var
233
+ }
234
+ });
235
+ let X = class extends N {
236
+ constructor(t) {
237
+ super(t), et(this, M, new se([])), this.openShadow(tt), m(this, {
238
+ shadowChildren: [
239
+ z({
240
+ class: "text-input",
241
+ attributes: {
242
+ type: "string",
243
+ value: this.store
244
+ },
245
+ events: {
246
+ change: (e) => {
247
+ this.store.current = e.currentTarget.value;
248
+ }
249
+ }
250
+ }),
251
+ te(this, M)
252
+ ]
253
+ });
254
+ }
255
+ appendContent(t) {
256
+ te(this, M).current = [...te(this, M).current, t];
257
+ }
258
+ };
259
+ M = /* @__PURE__ */ new WeakMap();
260
+ X = Xe([
261
+ p("e-tweaker-string-manager")
262
+ ], X);
263
+ var rt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, st = (t, e, r, s) => {
264
+ for (var a = s > 1 ? void 0 : s ? at(e, r) : e, o = t.length - 1, n; o >= 0; o--)
265
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
266
+ return s && a && rt(e, r, a), a;
267
+ }, _e = (t, e, r) => {
268
+ if (!e.has(t))
269
+ throw TypeError("Cannot " + r);
270
+ }, b = (t, e, r) => (_e(t, e, "read from private field"), r ? r.call(t) : e.get(t)), G = (t, e, r) => {
271
+ if (e.has(t))
272
+ throw TypeError("Cannot add the same private member more than once");
273
+ e instanceof WeakSet ? e.add(t) : e.set(t, r);
274
+ }, re = (t, e, r, s) => (_e(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), E, T, D, K;
275
+ let j = class extends X {
276
+ constructor(t) {
277
+ var e, r, s, a, o, n;
278
+ super(t), G(this, E, void 0), G(this, T, void 0), G(this, D, void 0), G(this, K, (y) => {
279
+ const H = typeof y == "string" ? parseFloat(y) || this.min : y, ke = We(H, b(this, T), b(this, D));
280
+ return this.toFixed(ke);
281
+ }), re(this, T, ((r = (e = this.store.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), re(this, D, ((a = (s = this.store.passport) == null ? void 0 : s.manager) == null ? void 0 : a.max) || 1), re(this, E, ((n = (o = this.store.passport) == null ? void 0 : o.manager) == null ? void 0 : n.step) || 0.01);
282
+ }
283
+ get min() {
284
+ return b(this, T);
285
+ }
286
+ get max() {
287
+ return b(this, D);
288
+ }
289
+ get step() {
290
+ return b(this, E);
291
+ }
292
+ toFixed(t) {
293
+ var r;
294
+ const e = ((r = b(this, E).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
295
+ return e ? +t.toFixed(e) : Math.ceil(t);
296
+ }
297
+ connectedCallback() {
298
+ this.store.addMiddleware(b(this, K));
299
+ }
300
+ disconnectedCallback() {
301
+ this.store.removeMiddleware(b(this, K));
302
+ }
303
+ };
304
+ E = /* @__PURE__ */ new WeakMap();
305
+ T = /* @__PURE__ */ new WeakMap();
306
+ D = /* @__PURE__ */ new WeakMap();
307
+ K = /* @__PURE__ */ new WeakMap();
308
+ j = st([
309
+ p("e-tweaker-number-manager")
310
+ ], j);
311
+ var nt = Object.defineProperty, it = Object.getOwnPropertyDescriptor, ot = (t, e, r, s) => {
312
+ for (var a = s > 1 ? void 0 : s ? it(e, r) : e, o = t.length - 1, n; o >= 0; o--)
313
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
314
+ return s && a && nt(e, r, a), a;
315
+ };
316
+ const lt = g({
317
+ ":host": {
318
+ width: "100%"
319
+ },
320
+ ".text-input": {
321
+ width: "60px",
322
+ marginRight: i.gapLarge.var,
323
+ textAlign: "center"
324
+ },
325
+ ".range-input": {
326
+ boxSizing: "border-box",
327
+ "-webkit-appearance": "none",
328
+ height: "8px",
329
+ width: "100%",
330
+ margin: "0",
331
+ padding: "0",
332
+ backgroundColor: "rgba(255, 255, 255, 0.1)",
333
+ borderRadius: i.borderRadius.var
334
+ },
335
+ ".range-input::-webkit-slider-thumb": {
336
+ "-webkit-appearance": "none",
337
+ height: `calc(${i.heightInput.var} * 0.7)`,
338
+ width: i.borderRadius.var,
339
+ borderRadius: i.borderRadius.var,
340
+ backgroundColor: i.colorLight.var,
341
+ transitionProperty: "background-color",
342
+ transitionDuration: i.durationShort.var
343
+ },
344
+ ".range-input:focus::-webkit-slider-thumb": {
345
+ backgroundColor: i.colorActive.var
346
+ },
347
+ ".range-input::-webkit-slider-runnable-track": {
348
+ "-webkit-appearance": "none",
349
+ "box-shadow": "none",
350
+ border: "none",
351
+ background: "transparent"
352
+ }
353
+ });
354
+ let le = class extends j {
355
+ constructor(t) {
356
+ super(t), this.addStylesheet(lt), this.appendContent(
357
+ z({
358
+ class: "range-input",
359
+ attributes: {
360
+ type: "range",
361
+ min: this.min,
362
+ max: this.max,
363
+ step: this.step,
364
+ value: this.store
365
+ },
366
+ events: {
367
+ input: (e) => {
368
+ this.store.current = parseFloat(
369
+ e.currentTarget.value
370
+ );
371
+ }
372
+ }
373
+ })
374
+ );
375
+ }
376
+ };
377
+ le = ot([
378
+ p("e-tweaker-range-manager")
379
+ ], le);
380
+ var ct = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, dt = (t, e, r, s) => {
381
+ for (var a = s > 1 ? void 0 : s ? ht(e, r) : e, o = t.length - 1, n; o >= 0; o--)
382
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
383
+ return s && a && ct(e, r, a), a;
384
+ };
385
+ const pt = g({
386
+ "e-select": {
387
+ width: "100%",
388
+ "--arrow-color": i.colorLight.var
389
+ },
390
+ "e-select-head": {
391
+ width: "100%",
392
+ display: "flex",
393
+ alignItems: "center",
394
+ justifyContent: "space-between"
395
+ },
396
+ "e-select-option": {
397
+ transitionDuration: i.durationShort.var,
398
+ transitionProperty: "color"
399
+ },
400
+ "e-select-option:hover": {
401
+ color: i.colorActive.var
402
+ },
403
+ svg: {
404
+ width: "16px",
405
+ height: "16px",
406
+ fill: i.colorLight.var,
407
+ transitionProperty: "transform",
408
+ transitionDuration: i.durationShort.var
409
+ },
410
+ ".opened svg": {
411
+ transform: "scaleY(-1)"
412
+ }
413
+ });
414
+ let ce = class extends N {
415
+ constructor(t) {
416
+ var r, s;
417
+ super(t), this.openShadow(pt);
418
+ const e = ((s = (r = this.store.passport) == null ? void 0 : r.manager) == null ? void 0 : s.variants) || [];
419
+ m(this, {
420
+ shadowChildren: ee("e-select", {
421
+ attributes: {
422
+ value: this.store
423
+ },
424
+ events: {
425
+ change: (a) => {
426
+ this.store.current = a.currentTarget.value;
427
+ }
428
+ },
429
+ children: [
430
+ ee("e-select-head", {
431
+ children: [
432
+ Oe({
433
+ attributes: {
434
+ "data-value-holder": ""
435
+ }
436
+ })
437
+ ]
438
+ }),
439
+ ...e.map(
440
+ (a, o) => ee("e-select-option", {
441
+ children: a,
442
+ attributes: {
443
+ default: o === 0 ? !0 : null
444
+ }
445
+ })
446
+ )
447
+ ]
448
+ })
449
+ });
450
+ }
451
+ };
452
+ ce = dt([
453
+ p("e-tweaker-select-manager")
454
+ ], ce);
455
+ const vt = {
456
+ boolean: ne,
457
+ color: ie,
458
+ link: oe,
459
+ number: j,
460
+ range: le,
461
+ select: ce,
462
+ string: X
463
+ };
464
+ var ut = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, wt = (t, e, r, s) => {
465
+ for (var a = s > 1 ? void 0 : s ? gt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
466
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
467
+ return s && a && ut(e, r, a), a;
468
+ }, ye = (t, e, r) => {
469
+ if (!e.has(t))
470
+ throw TypeError("Cannot " + r);
471
+ }, c = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => {
472
+ if (e.has(t))
473
+ throw TypeError("Cannot add the same private member more than once");
474
+ e instanceof WeakSet ? e.add(t) : e.set(t, r);
475
+ }, O = (t, e, r, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), h, R, W, L, J, V;
476
+ const ft = g({
477
+ ":host": {
478
+ display: "grid",
479
+ gridAutoFlow: "column",
480
+ gridTemplateColumns: "0.3fr 1fr",
481
+ alignItems: "center",
482
+ color: i.colorLight.var,
483
+ gap: i.gapMedium.var
484
+ },
485
+ ":host(.disabled)": {
486
+ pointerEvents: "none",
487
+ opacity: 0.5
488
+ },
489
+ ".head": {
490
+ fontSize: i.fontSizeMedium.var,
491
+ display: "flex",
492
+ alignItems: "center",
493
+ gap: i.gapExtraSmall.var
494
+ },
495
+ ".head-buttons": {
496
+ display: "flex"
497
+ },
498
+ ".head-button": {
499
+ width: "14px",
500
+ height: "14px",
501
+ padding: "0",
502
+ margin: "0",
503
+ border: "none",
504
+ background: "none",
505
+ fill: i.colorLight.var,
506
+ transitionDuration: i.durationShort.var,
507
+ transitionProperty: "fill, opacity",
508
+ opacity: "0"
509
+ },
510
+ ":host(:hover) .head-button": {
511
+ opacity: "1"
512
+ },
513
+ ".head-button:hover": {
514
+ fill: i.colorActive.var
515
+ },
516
+ ".head-button svg": {
517
+ width: "100%",
518
+ height: "100%"
519
+ }
520
+ });
521
+ let he = class extends ue {
522
+ constructor(t) {
523
+ var r, s, a, o;
524
+ super(), C(this, h, null), C(this, R, void 0), C(this, W, void 0), C(this, L, !1), C(this, J, () => {
525
+ x.current.includes(c(this, h)) || this.remove();
526
+ }), C(this, V, (n) => {
527
+ c(this, L) && ((n.metaKey || n.ctrlKey) && n.code === "KeyC" ? navigator.clipboard.writeText(c(this, h).current) : (n.metaKey || n.ctrlKey) && n.code === "KeyR" && (c(this, h).reset(), n.preventDefault()));
528
+ }), O(this, h, t.store), O(this, R, c(this, h).passport.name), O(this, W, c(this, R).split(".").slice(-1).toString()), this.openShadow(ft);
529
+ const e = ((s = (r = c(this, h).passport) == null ? void 0 : r.manager) == null ? void 0 : s.type) || "string";
530
+ m(this, {
531
+ class: {
532
+ disabled: ((o = (a = c(this, h).passport) == null ? void 0 : a.manager) == null ? void 0 : o.disabled) || !1
533
+ },
534
+ events: {
535
+ pointerleave: () => {
536
+ O(this, L, !1);
537
+ },
538
+ pointerenter: () => {
539
+ O(this, L, !0);
540
+ }
541
+ },
542
+ shadowChildren: [
543
+ f({
544
+ class: "head",
545
+ children: [
546
+ f({ class: "name", children: c(this, W) + ":" }),
547
+ f({
548
+ class: "head-buttons",
549
+ children: [
550
+ F({
551
+ class: "head-button",
552
+ children: be,
553
+ events: {
554
+ click: () => {
555
+ navigator.clipboard.writeText(c(this, h).current);
556
+ }
557
+ }
558
+ }),
559
+ F({
560
+ class: "head-button",
561
+ children: me,
562
+ events: {
563
+ click: () => {
564
+ c(this, h).reset();
565
+ }
566
+ }
567
+ })
568
+ ]
569
+ })
570
+ ]
571
+ }),
572
+ new vt[e](c(this, h))
573
+ ]
574
+ });
575
+ }
576
+ get key() {
577
+ return c(this, R);
578
+ }
579
+ get name() {
580
+ return c(this, W);
581
+ }
582
+ get store() {
583
+ return c(this, h);
584
+ }
585
+ connectedCallback() {
586
+ x.subscribe(c(this, J)), addEventListener("keydown", c(this, V));
587
+ }
588
+ disconnectedCallback() {
589
+ x.unsubscribe(c(this, J)), removeEventListener("keydown", c(this, V));
590
+ }
591
+ };
592
+ h = /* @__PURE__ */ new WeakMap();
593
+ R = /* @__PURE__ */ new WeakMap();
594
+ W = /* @__PURE__ */ new WeakMap();
595
+ L = /* @__PURE__ */ new WeakMap();
596
+ J = /* @__PURE__ */ new WeakMap();
597
+ V = /* @__PURE__ */ new WeakMap();
598
+ he = wt([
599
+ p("e-tweaker-field")
600
+ ], he);
601
+ var mt = Object.defineProperty, bt = Object.getOwnPropertyDescriptor, _t = (t, e, r, s) => {
602
+ for (var a = s > 1 ? void 0 : s ? bt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
603
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
604
+ return s && a && mt(e, r, a), a;
605
+ }, Ce = (t, e, r) => {
606
+ if (!e.has(t))
607
+ throw TypeError("Cannot " + r);
608
+ }, l = (t, e, r) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), k = (t, e, r) => {
609
+ if (e.has(t))
610
+ throw TypeError("Cannot add the same private member more than once");
611
+ e instanceof WeakSet ? e.add(t) : e.set(t, r);
612
+ }, ae = (t, e, r, s) => (Ce(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), v, B, d, Y, q, de;
613
+ const yt = g({
614
+ ".wrapper": {
615
+ boxSizing: "border-box",
616
+ backgroundColor: "rgba(255, 255, 255, 0.1)",
617
+ borderRadius: i.borderRadius.var
618
+ },
619
+ ".head": {
620
+ boxSizing: "border-box",
621
+ width: "100%",
622
+ height: i.tweakerFolderHeight.var,
623
+ paddingLeft: i.gapMedium.var,
624
+ paddingRight: i.gapMedium.var,
625
+ display: "flex",
626
+ alignItems: "center",
627
+ justifyContent: "space-between",
628
+ backgroundColor: i.colorDarkAux.var,
629
+ borderRadius: i.borderRadius.var
630
+ },
631
+ ".name": {
632
+ fontSize: i.fontSizeLarge.var,
633
+ color: i.colorLight.var
634
+ },
635
+ ".body": {
636
+ transitionProperty: "height",
637
+ transitionDuration: i.durationShort.var,
638
+ overflow: "hidden",
639
+ height: "0px"
640
+ },
641
+ ".body-content": {
642
+ boxSizing: "border-box",
643
+ padding: i.gapLarge.var,
644
+ display: "grid",
645
+ gap: i.gapMedium.var
646
+ },
647
+ ".arrow": {
648
+ width: "20px",
649
+ height: "20px",
650
+ fill: i.colorLight.var,
651
+ transition: `transform ${i.durationShort.var}`
652
+ },
653
+ ".opened .arrow": {
654
+ transform: "scaleY(-1)"
655
+ }
656
+ });
657
+ let A = class extends De {
658
+ constructor(t) {
659
+ super(), k(this, v, void 0), k(this, B, new se(null)), k(this, d, new se([])), k(this, Y, void 0), k(this, q, null), k(this, de, (e) => {
660
+ let r = [], s = [];
661
+ e.forEach((a) => {
662
+ r = [...r, ...a.removedNodes], s = [...s, ...a.addedNodes];
663
+ }), l(this, d).current = l(this, d).current.filter(
664
+ (a) => !r.includes(a)
665
+ ), l(this, v) && !l(this, d).current.length && !s.length && this.remove();
666
+ }), this.openShadow(yt), ae(this, v, t.key), ae(this, Y, new MutationObserver(l(this, de))), m(this, {
667
+ events: {
668
+ "e-accordion-item-toggle": (e) => {
669
+ e.stopPropagation(), e.detail.opened ? S.openPanel(l(this, v)) : S.closePanel(l(this, v));
670
+ }
671
+ },
672
+ shadowChildren: [
673
+ f({
674
+ class: "wrapper",
675
+ children: [
676
+ f({
677
+ class: "head",
678
+ children: [
679
+ l(this, v) ? f({
680
+ class: "name",
681
+ children: [l(this, v).split(".").slice(-1).toString()]
682
+ }) : null,
683
+ l(this, B),
684
+ m(Re, {
685
+ class: "arrow"
686
+ })
687
+ ]
688
+ }),
689
+ f({
690
+ class: "body",
691
+ children: f({
692
+ class: "body-content",
693
+ children: l(this, d),
694
+ ref: (e) => ae(this, q, e.firstElementChild)
695
+ })
696
+ })
697
+ ]
698
+ })
699
+ ]
700
+ }), t != null && t.storeBox && this.handleStore(t.storeBox);
701
+ }
702
+ get key() {
703
+ return l(this, v);
704
+ }
705
+ get head() {
706
+ return l(this, B);
707
+ }
708
+ get content() {
709
+ return l(this, d);
710
+ }
711
+ connectedCallback() {
712
+ super.connectedCallback(), setTimeout(() => {
713
+ S.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
714
+ }, 50), l(this, Y).observe(l(this, q), {
715
+ childList: !0
716
+ });
717
+ }
718
+ handleStore(t) {
719
+ if (t.remainingFolders.length) {
720
+ const r = t.store.passport.name.split("."), s = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, d).current.find((o) => o.key === s);
721
+ a instanceof A ? a.handleStore({
722
+ store: t.store,
723
+ remainingFolders: t.remainingFolders.slice(1)
724
+ }) : l(this, d).current = [
725
+ ...l(this, d).current,
726
+ new A({
727
+ key: s,
728
+ storeBox: {
729
+ store: t.store,
730
+ remainingFolders: t.remainingFolders.slice(1)
731
+ }
732
+ })
733
+ ];
734
+ } else
735
+ l(this, d).current = [
736
+ ...l(this, d).current,
737
+ new he({
738
+ store: t.store
739
+ })
740
+ ];
741
+ }
742
+ };
743
+ v = /* @__PURE__ */ new WeakMap();
744
+ B = /* @__PURE__ */ new WeakMap();
745
+ d = /* @__PURE__ */ new WeakMap();
746
+ Y = /* @__PURE__ */ new WeakMap();
747
+ q = /* @__PURE__ */ new WeakMap();
748
+ de = /* @__PURE__ */ new WeakMap();
749
+ A = _t([
750
+ p("e-tweaker-folder")
751
+ ], A);
752
+ var Ct = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, xt = (t, e, r, s) => {
753
+ for (var a = s > 1 ? void 0 : s ? kt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
754
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
755
+ return s && a && Ct(e, r, a), a;
756
+ }, St = (t, e, r) => {
757
+ if (!e.has(t))
758
+ throw TypeError("Cannot " + r);
759
+ }, we = (t, e, r) => (St(t, e, "read from private field"), r ? r.call(t) : e.get(t)), $t = (t, e, r) => {
760
+ if (e.has(t))
761
+ throw TypeError("Cannot add the same private member more than once");
762
+ e instanceof WeakSet ? e.add(t) : e.set(t, r);
763
+ }, Q;
764
+ const Pt = g({
765
+ ":host": {
766
+ position: "absolute",
767
+ top: i.tweakerOffset.var,
768
+ right: i.tweakerOffset.var,
769
+ width: i.tweakerWidth.var,
770
+ backgroundColor: i.colorDark.var,
771
+ borderRadius: i.borderRadius.var,
772
+ transition: "opacity 0.2s"
773
+ },
774
+ ":host(:hover)": {
775
+ opacity: "1 !important"
776
+ },
777
+ ".tweaker-buttons": {
778
+ display: "flex",
779
+ alignItems: "center",
780
+ gap: i.gapExtraSmall.var
781
+ },
782
+ ".tweaker-button": {
783
+ width: "18px",
784
+ height: "18px",
785
+ padding: "0",
786
+ margin: "0",
787
+ background: "none",
788
+ border: "none",
789
+ fill: i.colorLight.var,
790
+ transitionProperty: "fill"
791
+ },
792
+ ".tweaker-button:hover": {
793
+ fill: i.colorActive.var
794
+ },
795
+ ".tweaker-button svg": {
796
+ width: "100%",
797
+ height: "100%"
798
+ },
799
+ ":host .body-content": {
800
+ maxHeight: `calc(
801
+ 100dvh -
802
+ (
803
+ ${i.tweakerOffset.var} * 2 +
804
+ ${i.tweakerFolderHeight.var}
805
+ )
806
+ )`,
807
+ overflow: "hidden auto",
808
+ "-ms-overflow-style": "none",
809
+ "scrollbar-width": "none"
810
+ },
811
+ ":host .body-content::-webkit-scrollbar": {
812
+ display: "none"
813
+ },
814
+ [`@media ${Te["<=mobile"]}`]: {
815
+ ":host": {
816
+ position: "absolute",
817
+ top: "0",
818
+ right: "0",
819
+ width: "100%",
820
+ borderTopLeftRadius: "0",
821
+ borderTopRightRadius: "0"
822
+ },
823
+ ":host .body-content": {
824
+ maxHeight: `calc(
825
+ 100dvh -
826
+ ${i.tweakerFolderHeight.var}
827
+ )`
828
+ }
829
+ }
830
+ });
831
+ let pe = class extends A {
832
+ constructor() {
833
+ super({
834
+ key: ""
835
+ }), $t(this, Q, $e(() => {
836
+ x.current.forEach((t) => {
837
+ if (!(t instanceof Ee)) {
838
+ const e = t.passport.name.split(".");
839
+ this.handleStore({
840
+ store: t,
841
+ remainingFolders: e.length > 1 ? e.slice(0, -1) : []
842
+ });
843
+ }
844
+ });
845
+ }, 10)), this.addStylesheet(Pt), this.head.current = [
846
+ f({
847
+ class: "tweaker-buttons",
848
+ events: {
849
+ click: (t) => {
850
+ t.stopPropagation();
851
+ }
852
+ },
853
+ children: [
854
+ F({
855
+ class: "tweaker-button",
856
+ children: me,
857
+ events: {
858
+ click: () => {
859
+ _.resetState();
860
+ }
861
+ }
862
+ }),
863
+ F({
864
+ class: ["tweaker-button"],
865
+ children: [be],
866
+ events: {
867
+ click: () => {
868
+ navigator.clipboard.writeText(
869
+ JSON.stringify(_.getState())
870
+ );
871
+ }
872
+ }
873
+ }),
874
+ F({
875
+ class: "tweaker-button",
876
+ children: Le,
877
+ events: {
878
+ click: () => {
879
+ Se(
880
+ _.projectName,
881
+ _.getState()
882
+ );
883
+ }
884
+ }
885
+ }),
886
+ Me({
887
+ class: "tweaker-button",
888
+ children: [
889
+ Fe,
890
+ z({
891
+ attributes: {
892
+ type: "file"
893
+ },
894
+ style: {
895
+ display: "none"
896
+ },
897
+ events: {
898
+ change: (t) => {
899
+ const e = t.currentTarget;
900
+ e.onchange = () => {
901
+ var s;
902
+ const r = (s = e.files) == null ? void 0 : s[0];
903
+ if (r) {
904
+ const a = new FileReader();
905
+ a.onload = (o) => {
906
+ var y, H;
907
+ const n = (H = (y = o.target) == null ? void 0 : y.result) == null ? void 0 : H.toString();
908
+ n && _.loadState(n);
909
+ }, a.readAsText(r);
910
+ }
911
+ e.onchange = null;
912
+ }, e.click();
913
+ }
914
+ }
915
+ })
916
+ ],
917
+ events: {
918
+ click: () => {
919
+ }
920
+ }
921
+ })
922
+ ]
923
+ })
924
+ ], this.addEventListener("e-accordion-item-toggle", (t) => {
925
+ t.detail.opened ? this.style.opacity = "1" : this.style.opacity = "0.1";
926
+ });
927
+ }
928
+ connectedCallback() {
929
+ super.connectedCallback(), x.subscribe(we(this, Q));
930
+ }
931
+ disconnectedCallback() {
932
+ super.disconnectedCallback(), x.unsubscribe(we(this, Q));
933
+ }
934
+ };
935
+ Q = /* @__PURE__ */ new WeakMap();
936
+ pe = xt([
937
+ p("e-tweaker")
938
+ ], pe);
939
+ var Ot = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, Et = (t, e, r, s) => {
940
+ for (var a = s > 1 ? void 0 : s ? Mt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
941
+ (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
942
+ return s && a && Ot(e, r, a), a;
943
+ }, Tt = (t, e, r) => {
944
+ if (!e.has(t))
945
+ throw TypeError("Cannot " + r);
946
+ }, fe = (t, e, r) => (Tt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Dt = (t, e, r) => {
947
+ if (e.has(t))
948
+ throw TypeError("Cannot add the same private member more than once");
949
+ e instanceof WeakSet ? e.add(t) : e.set(t, r);
950
+ }, U;
951
+ const Rt = g({
952
+ ":host": {
953
+ fontFamily: "sans-serif",
954
+ position: "fixed",
955
+ top: "0",
956
+ left: "0",
957
+ zIndex: "1000",
958
+ display: "block",
959
+ width: "100%",
960
+ height: "100%"
961
+ }
962
+ });
963
+ let ve = class extends ue {
964
+ constructor() {
965
+ super(), Dt(this, U, () => {
966
+ S.save();
967
+ }), this.openShadow(Rt), S.load(), m(this, {
968
+ shadowChildren: [new pe()]
969
+ });
970
+ }
971
+ connectedCallback() {
972
+ window.addEventListener("beforeunload", fe(this, U));
973
+ }
974
+ disconnectedCallback() {
975
+ window.removeEventListener("beforeunload", fe(this, U)), S.save();
976
+ }
977
+ };
978
+ U = /* @__PURE__ */ new WeakMap();
979
+ ve = Et([
980
+ p("e-studio")
981
+ ], ve);
982
+ xe && document.body.appendChild(new ve());
983
+ export {
984
+ ve as StudioElement
985
+ };