aptechka 0.15.0 → 0.17.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.
- package/lib/animation/Animation.d.ts +34 -0
- package/lib/animation/Damped.d.ts +18 -0
- package/lib/animation/Tweened.d.ts +14 -0
- package/lib/animation/index.d.ts +3 -0
- package/lib/attribute/index.d.ts +14 -0
- package/lib/canvas/index.d.ts +34 -0
- package/lib/class-linked-status/index.d.ts +11 -0
- package/lib/connector/index.d.ts +15 -0
- package/lib/controls/AutoplayControls.d.ts +16 -0
- package/lib/controls/Controls.d.ts +8 -0
- package/lib/controls/DragControls.d.ts +15 -0
- package/lib/controls/KeyboardControls.d.ts +13 -0
- package/lib/controls/WheelControls.d.ts +18 -0
- package/lib/controls/index.d.ts +5 -0
- package/lib/css-property/index.d.ts +16 -0
- package/lib/css-unit-parser/index.d.ts +6 -0
- package/lib/css-value-parser/index.d.ts +6 -0
- package/lib/dev/index.d.ts +1 -0
- package/lib/device/Device.d.ts +18 -0
- package/lib/device/Viewport.d.ts +28 -0
- package/lib/device/index.d.ts +2 -0
- package/lib/element-resizer/index.d.ts +9 -0
- package/lib/en3/En3Raycaster.d.ts +20 -0
- package/lib/en3/En3View.d.ts +39 -0
- package/lib/en3/en3.d.ts +36 -0
- package/lib/en3/index.d.ts +7 -0
- package/lib/en3/utils/coverTexture.d.ts +6 -0
- package/lib/en3/utils/dispose.d.ts +2 -0
- package/lib/en3/utils/getCurrentViewport.d.ts +8 -0
- package/lib/en3/utils/traverseMaterials.d.ts +2 -0
- package/lib/en3/utils/traverseMeshes.d.ts +2 -0
- package/lib/image/index.d.ts +10 -0
- package/lib/intersector/index.d.ts +9 -0
- package/lib/ladder/index.d.ts +23 -0
- package/lib/layout-box/index.d.ts +95 -0
- package/lib/loading/index.d.ts +38 -0
- package/lib/media/index.d.ts +11 -0
- package/lib/need_redo_tweaker/CheckboxElement.d.ts +14 -0
- package/lib/need_redo_tweaker/TweakerBooleanManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerColorManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerElement.d.ts +17 -0
- package/lib/need_redo_tweaker/TweakerFieldElement.d.ts +19 -0
- package/lib/need_redo_tweaker/TweakerFolderElement.d.ts +23 -0
- package/lib/need_redo_tweaker/TweakerLinkManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerNumberManagerElement.d.ts +13 -0
- package/lib/need_redo_tweaker/TweakerSelectManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerStoreManagerElement.d.ts +9 -0
- package/lib/need_redo_tweaker/TweakerStringManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +74 -0
- package/lib/need_redo_tweaker/element-constructor/createStylesheet.d.ts +2 -0
- package/lib/need_redo_tweaker/element-constructor/createTheme.d.ts +12 -0
- package/lib/need_redo_tweaker/element-constructor/index.d.ts +4 -0
- package/lib/need_redo_tweaker/element-constructor/knownSvgTags.d.ts +1 -0
- package/lib/need_redo_tweaker/element-constructor/tags.d.ts +118 -0
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.d.ts +1 -0
- package/lib/need_redo_tweaker/index.js +847 -464
- package/lib/need_redo_tweaker/select/SelectElement.d.ts +24 -0
- package/lib/need_redo_tweaker/select/SelectHeadElement.d.ts +12 -0
- package/lib/need_redo_tweaker/select/SelectOptionElement.d.ts +13 -0
- package/lib/need_redo_tweaker/select/SelectUserElement.d.ts +6 -0
- package/lib/need_redo_tweaker/select/index.d.ts +4 -0
- package/lib/need_redo_tweaker/theme/index.d.ts +35 -0
- package/lib/need_redo_tweaker/tweakerManagerConstructors.d.ts +14 -0
- package/lib/need_redo_tweaker/tweakerStorage.d.ts +23 -0
- package/lib/notifier/index.d.ts +8 -0
- package/lib/object-DOa0yKM9.js +114 -0
- package/lib/object-HBC5QlzO.cjs +1 -0
- package/lib/order/index.d.ts +22 -0
- package/lib/pointer/Pointer.d.ts +22 -0
- package/lib/pointer/PointerElement.d.ts +13 -0
- package/lib/pointer/index.d.ts +2 -0
- package/lib/popover/PopoverButtonElement.d.ts +14 -0
- package/lib/popover/PopoverElement.d.ts +25 -0
- package/lib/popover/index.d.ts +2 -0
- package/lib/scroll/ScrollBulletButtonsElement.d.ts +11 -0
- package/lib/scroll/ScrollButtonElement.d.ts +5 -0
- package/lib/scroll/ScrollElement.d.ts +81 -0
- package/lib/scroll/ScrollSection.d.ts +22 -0
- package/lib/scroll/ScrollSegmentElement.d.ts +62 -0
- package/lib/scroll/ScrollSetButtonElement.d.ts +9 -0
- package/lib/scroll/ScrollStepButtonElement.d.ts +9 -0
- package/lib/scroll/ScrollUserElement.d.ts +6 -0
- package/lib/scroll/ScrollbarElement.d.ts +13 -0
- package/lib/scroll/index.d.ts +6 -0
- package/lib/scroll-entries/index.d.ts +20 -0
- package/lib/sequence/index.d.ts +20 -0
- package/lib/slicer/Letter.d.ts +11 -0
- package/lib/slicer/SlicerElement.d.ts +20 -0
- package/lib/slicer/Word.d.ts +16 -0
- package/lib/slicer/index.d.ts +3 -0
- package/lib/source/SourceClass.d.ts +11 -0
- package/lib/source/SourceElement.d.ts +24 -0
- package/lib/source/SourceManager.d.ts +13 -0
- package/lib/source/SourceSet.d.ts +8 -0
- package/lib/source/index.d.ts +4 -0
- package/lib/store/Composed.d.ts +7 -0
- package/lib/store/Derived.d.ts +7 -0
- package/lib/store/DerivedArray.d.ts +7 -0
- package/lib/store/Resource.d.ts +11 -0
- package/lib/store/Store.d.ts +35 -0
- package/lib/store/StoreRegistry.d.ts +22 -0
- package/lib/store/index.d.ts +6 -0
- package/lib/test/starting-style/index.d.ts +1 -0
- package/lib/ticker/index.d.ts +21 -0
- package/lib/utils/array.d.ts +2 -0
- package/lib/utils/attributes.d.ts +2 -0
- package/lib/utils/browser.d.ts +1 -0
- package/lib/utils/bytes.d.ts +1 -0
- package/lib/utils/canvas.d.ts +7 -0
- package/lib/utils/collisions.d.ts +3 -0
- package/lib/utils/coordinates.d.ts +13 -0
- package/lib/utils/cssom.d.ts +5 -0
- package/lib/utils/decoding.d.ts +2 -0
- package/lib/utils/dom.d.ts +5 -0
- package/lib/utils/easings.d.ts +17 -0
- package/lib/utils/events.d.ts +8 -0
- package/lib/utils/file.d.ts +1 -0
- package/lib/utils/function.d.ts +2 -0
- package/lib/utils/gestures.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +27 -0
- package/lib/utils/index.js +155 -140
- package/lib/utils/jss.d.ts +12 -0
- package/lib/utils/layout.d.ts +3 -0
- package/lib/utils/math.d.ts +11 -0
- package/lib/utils/number.d.ts +3 -0
- package/lib/utils/object.d.ts +9 -0
- package/lib/utils/polyfills.d.ts +1 -0
- package/lib/utils/promises.d.ts +1 -0
- package/lib/utils/string.d.ts +8 -0
- package/lib/utils/style.d.ts +2 -0
- package/lib/utils/ts-shape.d.ts +20 -0
- package/lib/utils/ts-utility.d.ts +26 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/video/index.d.ts +21 -0
- package/lib/window-resizer/index.d.ts +9 -0
- package/package.json +3 -29
- package/lib/element-constructor/index.cjs +0 -1
- package/lib/element-constructor/index.js +0 -850
- package/lib/file-BEr-o55N.js +0 -31
- package/lib/file-C9BbxzVU.cjs +0 -1
- package/lib/morph/index.cjs +0 -1
- package/lib/morph/index.js +0 -225
- package/lib/object-CCiXnER2.cjs +0 -1
- package/lib/object-D6MVWB4l.js +0 -85
- package/lib/router/index.cjs +0 -1
- package/lib/router/index.js +0 -266
- package/lib/url-C3dWnJQg.cjs +0 -1
- package/lib/url-DMNfW7uN.js +0 -22
|
@@ -1,21 +1,404 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var vt = (r) => {
|
|
2
|
+
throw TypeError(r);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var e = (
|
|
6
|
-
import { i as
|
|
7
|
-
import {
|
|
8
|
-
import { d as
|
|
9
|
-
import { d as
|
|
10
|
-
import { s as
|
|
4
|
+
var Xe = (r, s, t) => s.has(r) || vt("Cannot " + t);
|
|
5
|
+
var e = (r, s, t) => (Xe(r, s, "read from private field"), t ? t.call(r) : s.get(r)), o = (r, s, t) => s.has(r) ? vt("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, t), c = (r, s, t, i) => (Xe(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t), l = (r, s, t) => (Xe(r, s, "access private method"), t);
|
|
6
|
+
import { i as X } from "../browser-0zX67oeU.js";
|
|
7
|
+
import { S as P, s as B, a as j } from "../Store-OTdcl6SX.js";
|
|
8
|
+
import { g as yt, d as Et, a as Ut, c as Xt } from "../object-DOa0yKM9.js";
|
|
9
|
+
import { d as Qt } from "../function-C10DGppn.js";
|
|
10
|
+
import { s as xt } from "../gestures-D2Fdra_G.js";
|
|
11
11
|
import "../ticker/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
12
|
+
import { c as Oe, u as jt } from "../string-f0Dnk0L1.js";
|
|
13
|
+
import { connector as es } from "../connector/index.js";
|
|
14
|
+
import { a as ts } from "../Viewport-taEXS8Uv.js";
|
|
15
|
+
import { c as ss } from "../math-BOBiC4TN.js";
|
|
16
|
+
import { n as St, t as is } from "../polyfills-X6KXuHg-.js";
|
|
17
|
+
import { elementResizer as kt } from "../element-resizer/index.js";
|
|
18
|
+
import { g as ns } from "../style-j2TwriJ_.js";
|
|
19
|
+
const os = /* @__PURE__ */ new Set([
|
|
20
|
+
// 'a', 'style', 'title', 'script',
|
|
21
|
+
"animate",
|
|
22
|
+
"animateMotion",
|
|
23
|
+
"animateTransform",
|
|
24
|
+
"circle",
|
|
25
|
+
"clipPath",
|
|
26
|
+
"defs",
|
|
27
|
+
"desc",
|
|
28
|
+
"ellipse",
|
|
29
|
+
"feBlend",
|
|
30
|
+
"feColorMatrix",
|
|
31
|
+
"feComponentTransfer",
|
|
32
|
+
"feComposite",
|
|
33
|
+
"feConvolveMatrix",
|
|
34
|
+
"feDiffuseLighting",
|
|
35
|
+
"feDisplacementMap",
|
|
36
|
+
"feDistantLight",
|
|
37
|
+
"feDropShadow",
|
|
38
|
+
"feFlood",
|
|
39
|
+
"feFuncA",
|
|
40
|
+
"feFuncB",
|
|
41
|
+
"feFuncG",
|
|
42
|
+
"feFuncR",
|
|
43
|
+
"feGaussianBlur",
|
|
44
|
+
"feImage",
|
|
45
|
+
"feMerge",
|
|
46
|
+
"feMergeNode",
|
|
47
|
+
"feMorphology",
|
|
48
|
+
"feOffset",
|
|
49
|
+
"fePointLight",
|
|
50
|
+
"feSpecularLighting",
|
|
51
|
+
"feSpotLight",
|
|
52
|
+
"feTile",
|
|
53
|
+
"feTurbulence",
|
|
54
|
+
"filter",
|
|
55
|
+
"foreignObject",
|
|
56
|
+
"g",
|
|
57
|
+
"image",
|
|
58
|
+
"line",
|
|
59
|
+
"linearGradient",
|
|
60
|
+
"listener",
|
|
61
|
+
"marker",
|
|
62
|
+
"mask",
|
|
63
|
+
"metadata",
|
|
64
|
+
"mpath",
|
|
65
|
+
"path",
|
|
66
|
+
"pattern",
|
|
67
|
+
"polygon",
|
|
68
|
+
"polyline",
|
|
69
|
+
"radialGradient",
|
|
70
|
+
"rect",
|
|
71
|
+
"set",
|
|
72
|
+
"solidColor",
|
|
73
|
+
"stop",
|
|
74
|
+
"svg",
|
|
75
|
+
"switch",
|
|
76
|
+
"symbol",
|
|
77
|
+
"text",
|
|
78
|
+
"textPath",
|
|
79
|
+
"title",
|
|
80
|
+
"tspan",
|
|
81
|
+
"view",
|
|
82
|
+
"use"
|
|
83
|
+
]);
|
|
84
|
+
var d, $, v, be, I, H, a, Ct, Lt, Tt, Qe, je, zt, Mt, At, Nt, et, tt, Rt, st, it, Ft, nt, Be, ot, rt, at, We, qe;
|
|
85
|
+
const Je = class Je {
|
|
86
|
+
constructor(...s) {
|
|
87
|
+
o(this, a);
|
|
88
|
+
o(this, d, null);
|
|
89
|
+
o(this, $, /* @__PURE__ */ new Set());
|
|
90
|
+
o(this, v, /* @__PURE__ */ new Set());
|
|
91
|
+
o(this, be);
|
|
92
|
+
o(this, I);
|
|
93
|
+
o(this, H);
|
|
94
|
+
o(this, We, (s) => {
|
|
95
|
+
e(this, $).forEach((t) => {
|
|
96
|
+
t(s);
|
|
97
|
+
}), e(this, $).clear();
|
|
98
|
+
});
|
|
99
|
+
o(this, qe, (s, t) => {
|
|
100
|
+
e(this, v).forEach((i) => {
|
|
101
|
+
i(s, t);
|
|
102
|
+
}), e(this, v).clear(), l(this, a, it).call(this);
|
|
103
|
+
});
|
|
104
|
+
if (X) {
|
|
105
|
+
const t = s[0], i = s[1];
|
|
106
|
+
c(this, d, l(this, a, Ct).call(this, t, i == null ? void 0 : i.forceSvg)), l(this, a, Tt).call(this, i);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
get node() {
|
|
110
|
+
return e(this, d);
|
|
111
|
+
}
|
|
112
|
+
set node(s) {
|
|
113
|
+
var t;
|
|
114
|
+
l(this, a, it).call(this), c(this, d, s), (t = e(this, be)) == null || t.call(this), e(this, d) instanceof Element && c(this, I, [
|
|
115
|
+
...e(this, d).querySelectorAll("store-root")
|
|
116
|
+
]), l(this, a, st).call(this), l(this, a, Qe).call(this);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I = new WeakMap(), H = new WeakMap(), a = new WeakSet(), Ct = function(s, t) {
|
|
120
|
+
let i = null;
|
|
121
|
+
if (s instanceof Node)
|
|
122
|
+
i = s;
|
|
123
|
+
else if (typeof s == "string")
|
|
124
|
+
if (!s.includes("<") && s.includes("-"))
|
|
125
|
+
i = new (customElements.get(s))();
|
|
126
|
+
else if (s.includes("<")) {
|
|
127
|
+
const n = document.createElement("div");
|
|
128
|
+
n.innerHTML = s, i = n.firstElementChild;
|
|
129
|
+
} else os.has(s) || t ? i = document.createElementNS(
|
|
130
|
+
"http://www.w3.org/2000/svg",
|
|
131
|
+
s
|
|
132
|
+
) : i = document.createElement(s);
|
|
133
|
+
else
|
|
134
|
+
i = document.createElement("div");
|
|
135
|
+
return i;
|
|
136
|
+
}, Lt = function(s) {
|
|
137
|
+
return s instanceof HTMLElement || s instanceof SVGElement;
|
|
138
|
+
}, Tt = function(s) {
|
|
139
|
+
if (!s) return;
|
|
140
|
+
const t = l(this, a, Lt).call(this, e(this, d)), i = s.ref;
|
|
141
|
+
delete s.ref, s != null && s.onConnect && (e(this, $).add(s.onConnect), delete s.onConnect), s != null && s.onDisconnect && (e(this, v).add(s.onDisconnect), delete s.onDisconnect);
|
|
142
|
+
let n, h;
|
|
143
|
+
for (const u in s) {
|
|
144
|
+
const m = s[u];
|
|
145
|
+
u === "class" && t ? l(this, a, je).call(this, m) : u === "style" && t ? l(this, a, At).call(this, m) : u === "lightChildren" ? l(this, a, Be).call(this, e(this, d), m) : u === "children" ? l(this, a, Be).call(this, e(this, d) instanceof Element ? e(this, d).shadowRoot || e(this, d) : e(this, d), m) : u === "connectedClass" ? e(this, $).add(() => {
|
|
146
|
+
requestAnimationFrame(() => {
|
|
147
|
+
e(this, d).classList.add(
|
|
148
|
+
typeof m == "boolean" ? "connected" : m
|
|
149
|
+
);
|
|
150
|
+
});
|
|
151
|
+
}) : u.startsWith("on") ? (h || (h = {}), h[u] = m) : (n || (n = {}), n[u] = m);
|
|
152
|
+
}
|
|
153
|
+
l(this, a, Ft).call(this, n), l(this, a, Rt).call(this, h), i && (typeof i == "function" ? i(e(this, d)) : i.current = e(this, d)), l(this, a, Qe).call(this);
|
|
154
|
+
}, Qe = function() {
|
|
155
|
+
if (X && (e(this, v).size || e(this, $).size)) {
|
|
156
|
+
const s = e(this, d) instanceof DocumentFragment ? e(this, d).firstChild : e(this, d);
|
|
157
|
+
c(this, be, es.subscribe(
|
|
158
|
+
s,
|
|
159
|
+
{
|
|
160
|
+
connectCallback: e(this, We),
|
|
161
|
+
disconnectCallback: e(this, qe),
|
|
162
|
+
unsubscribeAfterDisconnect: !0,
|
|
163
|
+
maxWaitSec: 20
|
|
164
|
+
}
|
|
165
|
+
));
|
|
166
|
+
}
|
|
167
|
+
}, je = function(s) {
|
|
168
|
+
if (s) {
|
|
169
|
+
if (typeof s == "string")
|
|
170
|
+
e(this, d).classList.add(s);
|
|
171
|
+
else if (Array.isArray(s))
|
|
172
|
+
s.forEach((t) => {
|
|
173
|
+
t && l(this, a, je).call(this, t);
|
|
174
|
+
});
|
|
175
|
+
else if (typeof s == "object")
|
|
176
|
+
if (s instanceof P)
|
|
177
|
+
l(this, a, zt).call(this, s);
|
|
178
|
+
else
|
|
179
|
+
for (const t in s) {
|
|
180
|
+
const i = s[t];
|
|
181
|
+
i instanceof P ? l(this, a, Mt).call(this, t, i) : i ? e(this, d).classList.add(t) : e(this, d).classList.remove(t);
|
|
182
|
+
}
|
|
183
|
+
} else return;
|
|
184
|
+
}, zt = function(s) {
|
|
185
|
+
e(this, v).add(
|
|
186
|
+
s.subscribe(({ current: t, previous: i }) => {
|
|
187
|
+
i && [i].flat().forEach((n) => {
|
|
188
|
+
n && e(this, d).classList.remove(n);
|
|
189
|
+
}), t && [t].flat().forEach((n) => {
|
|
190
|
+
n && e(this, d).classList.add(n);
|
|
191
|
+
});
|
|
192
|
+
})
|
|
193
|
+
);
|
|
194
|
+
}, Mt = function(s, t) {
|
|
195
|
+
e(this, v).add(
|
|
196
|
+
t.subscribe(({ current: i }) => {
|
|
197
|
+
i ? e(this, d).classList.add(s) : e(this, d).classList.remove(s);
|
|
198
|
+
})
|
|
199
|
+
);
|
|
200
|
+
}, At = function(s) {
|
|
201
|
+
if (!s)
|
|
202
|
+
return;
|
|
203
|
+
e(this, d).tagName === "style" || e(this, d).tagName === "STYLE" ? l(this, a, et).call(this, s) : l(this, a, Nt).call(this, s);
|
|
204
|
+
}, Nt = function(s) {
|
|
205
|
+
for (const t in s) {
|
|
206
|
+
const i = t, n = s[i];
|
|
207
|
+
n instanceof P ? e(this, v).add(
|
|
208
|
+
n.subscribe(({ current: h }) => {
|
|
209
|
+
l(this, a, tt).call(this, i, h);
|
|
210
|
+
})
|
|
211
|
+
) : l(this, a, tt).call(this, i, n);
|
|
212
|
+
}
|
|
213
|
+
}, et = function(s) {
|
|
214
|
+
for (const t in s) {
|
|
215
|
+
const i = s[t];
|
|
216
|
+
if (typeof i == "object" && !(i instanceof P))
|
|
217
|
+
e(this, d).appendChild(
|
|
218
|
+
document.createTextNode(`${t} {`)
|
|
219
|
+
), l(this, a, et).call(this, i), e(this, d).appendChild(document.createTextNode("}"));
|
|
220
|
+
else if (i instanceof P) {
|
|
221
|
+
const n = document.createTextNode("");
|
|
222
|
+
e(this, v).add(
|
|
223
|
+
i.subscribe((h) => {
|
|
224
|
+
h.current ? n.nodeValue = `${Oe(t)}: ${h.current};` : n.nodeValue = "";
|
|
225
|
+
})
|
|
226
|
+
), e(this, d).appendChild(n);
|
|
227
|
+
} else
|
|
228
|
+
e(this, d).appendChild(
|
|
229
|
+
document.createTextNode(`${Oe(t)}: ${i};`)
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
}, tt = function(s, t) {
|
|
233
|
+
s.includes("--") ? t ? e(this, d).style.setProperty(s, t.toString()) : e(this, d).style.removeProperty(s) : t ? e(this, d).style[s] = t.toString() : e(this, d).style[s] = "";
|
|
234
|
+
}, Rt = function(s) {
|
|
235
|
+
if (s) {
|
|
236
|
+
e(this, H) || c(this, H, []);
|
|
237
|
+
for (const t in s) {
|
|
238
|
+
const i = t, n = jt(
|
|
239
|
+
i.split("on").slice(1).join("on")
|
|
240
|
+
), h = s[i];
|
|
241
|
+
typeof h == "object" ? e(this, H).push({
|
|
242
|
+
name: n,
|
|
243
|
+
callback: h.callback,
|
|
244
|
+
options: h.options
|
|
245
|
+
}) : typeof h == "function" && e(this, H).push({
|
|
246
|
+
name: n,
|
|
247
|
+
callback: h
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
l(this, a, st).call(this);
|
|
251
|
+
}
|
|
252
|
+
}, st = function() {
|
|
253
|
+
var s;
|
|
254
|
+
(s = e(this, H)) == null || s.forEach((t) => {
|
|
255
|
+
e(this, d).addEventListener(
|
|
256
|
+
t.name,
|
|
257
|
+
t.callback,
|
|
258
|
+
t.options
|
|
259
|
+
);
|
|
260
|
+
});
|
|
261
|
+
}, it = function() {
|
|
262
|
+
var s;
|
|
263
|
+
(s = e(this, H)) == null || s.forEach((t) => {
|
|
264
|
+
e(this, d).removeEventListener(
|
|
265
|
+
t.name,
|
|
266
|
+
t.callback,
|
|
267
|
+
t.options
|
|
268
|
+
);
|
|
269
|
+
});
|
|
270
|
+
}, Ft = function(s) {
|
|
271
|
+
for (const t in s) {
|
|
272
|
+
const i = s[t];
|
|
273
|
+
i instanceof P ? e(this, v).add(
|
|
274
|
+
i.subscribe(({ current: n }) => {
|
|
275
|
+
l(this, a, nt).call(this, t, n);
|
|
276
|
+
})
|
|
277
|
+
) : l(this, a, nt).call(this, t, i);
|
|
278
|
+
}
|
|
279
|
+
}, nt = function(s, t) {
|
|
280
|
+
var n, h;
|
|
281
|
+
const i = e(this, d);
|
|
282
|
+
if (s in i && !((h = (n = i.constructor) == null ? void 0 : n.observedAttributes) != null && h.includes(s)))
|
|
283
|
+
t != null && (i[s] = t.toString());
|
|
284
|
+
else if (t != null) {
|
|
285
|
+
const u = t.toString();
|
|
286
|
+
s.includes("xlink") ? i.setAttributeNS("http://www.w3.org/1999/xlink", s, u) : i.setAttribute(s, u);
|
|
287
|
+
}
|
|
288
|
+
}, Be = function(s, t) {
|
|
289
|
+
t && (t = [t].flat(), t.forEach((i) => {
|
|
290
|
+
if (i instanceof P) {
|
|
291
|
+
const n = document.createElement("div");
|
|
292
|
+
n.style.display = "contents", s.appendChild(n), e(this, I) || c(this, I, []);
|
|
293
|
+
const h = e(this, I).length;
|
|
294
|
+
n.setAttribute("store-root", ""), e(this, I).push(n), e(this, v).add(
|
|
295
|
+
i.subscribe(({ current: u, previous: m }) => {
|
|
296
|
+
const S = e(this, I)[h];
|
|
297
|
+
S.dispatchEvent(
|
|
298
|
+
new CustomEvent("beforeChildrenChange", {
|
|
299
|
+
bubbles: !0,
|
|
300
|
+
composed: !0
|
|
301
|
+
})
|
|
302
|
+
);
|
|
303
|
+
const C = Array.from(S.childNodes), b = Array.isArray(u) ? u : [u], pe = Array.isArray(m) ? m : [m], _e = [], E = [];
|
|
304
|
+
C.length && pe.forEach((N, F) => {
|
|
305
|
+
b.includes(N) ? E.push(N) : _e.push(C[F]);
|
|
306
|
+
}), b.forEach((N, F) => {
|
|
307
|
+
if (E[F] != null) {
|
|
308
|
+
if (N !== E[F]) {
|
|
309
|
+
const _ = l(this, a, rt).call(this, N), W = C[F];
|
|
310
|
+
_ instanceof Node && !W.isEqualNode(_) ? S.replaceChild(_, W) : S.removeChild(W);
|
|
311
|
+
}
|
|
312
|
+
} else {
|
|
313
|
+
const _ = l(this, a, rt).call(this, N);
|
|
314
|
+
_ instanceof Node && n.appendChild(_);
|
|
315
|
+
}
|
|
316
|
+
}), _e.forEach((N) => {
|
|
317
|
+
S.removeChild(N);
|
|
318
|
+
}), S.dispatchEvent(
|
|
319
|
+
new CustomEvent("afterChildrenChange", {
|
|
320
|
+
bubbles: !0,
|
|
321
|
+
composed: !0
|
|
322
|
+
})
|
|
323
|
+
);
|
|
324
|
+
})
|
|
325
|
+
);
|
|
326
|
+
} else if (i instanceof Je)
|
|
327
|
+
l(this, a, ot).call(this, s, i.node);
|
|
328
|
+
else if (i instanceof Function)
|
|
329
|
+
l(this, a, Be).call(this, s, yt(i) ? new i() : i());
|
|
330
|
+
else {
|
|
331
|
+
const n = l(this, a, at).call(this, i);
|
|
332
|
+
n instanceof Node && l(this, a, ot).call(this, s, n);
|
|
333
|
+
}
|
|
334
|
+
}));
|
|
335
|
+
}, ot = function(s, t) {
|
|
336
|
+
!(s instanceof ShadowRoot) && t instanceof HTMLElement && t.tagName === "STYLE" ? (e(this, $).add(() => {
|
|
337
|
+
[...document.head.querySelectorAll("style")].find((n) => n.outerHTML === t.outerHTML) || document.head.appendChild(t);
|
|
338
|
+
}), e(this, v).add(() => {
|
|
339
|
+
t.remove();
|
|
340
|
+
})) : s.appendChild(t);
|
|
341
|
+
}, rt = function(s) {
|
|
342
|
+
return s instanceof Je ? s.node : typeof s == "function" ? yt(s) ? new s() : s() : l(this, a, at).call(this, s);
|
|
343
|
+
}, at = function(s) {
|
|
344
|
+
if (s instanceof Node)
|
|
345
|
+
return s;
|
|
346
|
+
if (s != null) {
|
|
347
|
+
const t = String(s);
|
|
348
|
+
if (t.trim().startsWith("<") && t.trim().endsWith(">")) {
|
|
349
|
+
const i = document.createElement("div");
|
|
350
|
+
return i.innerHTML = t, i.firstElementChild;
|
|
351
|
+
} else
|
|
352
|
+
return document.createTextNode(t);
|
|
353
|
+
} else
|
|
354
|
+
return;
|
|
355
|
+
}, We = new WeakMap(), qe = new WeakMap();
|
|
356
|
+
let A = Je;
|
|
357
|
+
function g(...r) {
|
|
358
|
+
return new A(...r);
|
|
359
|
+
}
|
|
360
|
+
function rs(r) {
|
|
361
|
+
return new A("a", r);
|
|
362
|
+
}
|
|
363
|
+
function ee(r) {
|
|
364
|
+
return new A("button", r);
|
|
365
|
+
}
|
|
366
|
+
function w(r) {
|
|
367
|
+
return new A("div", r);
|
|
368
|
+
}
|
|
369
|
+
function Ve(r) {
|
|
370
|
+
return new A("input", r);
|
|
371
|
+
}
|
|
372
|
+
function Pt(r) {
|
|
373
|
+
return new A("label", r);
|
|
374
|
+
}
|
|
375
|
+
function me(r) {
|
|
376
|
+
return new A("slot", r);
|
|
377
|
+
}
|
|
378
|
+
function lt(r) {
|
|
379
|
+
return new A("span", r);
|
|
380
|
+
}
|
|
381
|
+
function $t(r) {
|
|
382
|
+
return new A("style", {
|
|
383
|
+
style: r
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
function k(r) {
|
|
387
|
+
const s = new CSSStyleSheet();
|
|
388
|
+
return s.replaceSync($t(r).node.innerHTML), s;
|
|
389
|
+
}
|
|
390
|
+
function as(r, s) {
|
|
391
|
+
const t = s == null ? void 0 : s.prefix, i = {
|
|
392
|
+
style: {}
|
|
393
|
+
};
|
|
394
|
+
for (const n in r)
|
|
395
|
+
i[n] = {
|
|
396
|
+
var: `var(--${t}${Oe(n)})`,
|
|
397
|
+
value: r[n]
|
|
398
|
+
}, i.style[`--${t}${Oe(n)}`] = r[n];
|
|
399
|
+
return i;
|
|
400
|
+
}
|
|
401
|
+
const f = as(
|
|
19
402
|
{
|
|
20
403
|
colorMain: "#1c1c1c",
|
|
21
404
|
colorMainAux: "#282828",
|
|
@@ -26,13 +409,13 @@ const h = bt(
|
|
|
26
409
|
},
|
|
27
410
|
{ prefix: "aptechka-" }
|
|
28
411
|
);
|
|
29
|
-
if (
|
|
30
|
-
const
|
|
31
|
-
":root":
|
|
412
|
+
if (X) {
|
|
413
|
+
const r = $t({
|
|
414
|
+
":root": f.style
|
|
32
415
|
}).node;
|
|
33
|
-
|
|
416
|
+
r.setAttribute("data-permanent", ""), document.head.appendChild(r);
|
|
34
417
|
}
|
|
35
|
-
const
|
|
418
|
+
const It = '<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>', Ht = '<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>', ls = '<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>', hs = '<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>', Dt = `<svg
|
|
36
419
|
xmlns="http://www.w3.org/2000/svg"
|
|
37
420
|
width="32"
|
|
38
421
|
height="32"
|
|
@@ -41,57 +424,57 @@ const Qe = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
41
424
|
<path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
|
|
42
425
|
</svg>
|
|
43
426
|
`;
|
|
44
|
-
var
|
|
45
|
-
class
|
|
427
|
+
var q, L, D;
|
|
428
|
+
class cs {
|
|
46
429
|
constructor() {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
this.scrollValue = 0,
|
|
430
|
+
o(this, q);
|
|
431
|
+
o(this, L);
|
|
432
|
+
o(this, D);
|
|
433
|
+
this.scrollValue = 0, c(this, q, ""), c(this, L, []), c(this, D, {}), c(this, q, B.name + "-tweaker");
|
|
51
434
|
}
|
|
52
|
-
openPanel(
|
|
53
|
-
e(this,
|
|
435
|
+
openPanel(s) {
|
|
436
|
+
e(this, L).includes(s) || e(this, L).push(s);
|
|
54
437
|
}
|
|
55
|
-
closePanel(
|
|
56
|
-
|
|
438
|
+
closePanel(s) {
|
|
439
|
+
c(this, L, e(this, L).filter((t) => t !== s));
|
|
57
440
|
}
|
|
58
|
-
isPanelOpened(
|
|
59
|
-
return e(this,
|
|
441
|
+
isPanelOpened(s) {
|
|
442
|
+
return e(this, L).includes(s);
|
|
60
443
|
}
|
|
61
|
-
changedSizes(
|
|
62
|
-
return e(this,
|
|
444
|
+
changedSizes(s) {
|
|
445
|
+
return e(this, D)[s];
|
|
63
446
|
}
|
|
64
|
-
changeSize(
|
|
65
|
-
t ? e(this,
|
|
447
|
+
changeSize(s, t) {
|
|
448
|
+
t ? e(this, D)[s] = t : delete e(this, D)[s];
|
|
66
449
|
}
|
|
67
450
|
save() {
|
|
68
|
-
const
|
|
69
|
-
openedPanels: e(this,
|
|
70
|
-
changedSizes: e(this,
|
|
451
|
+
const s = {
|
|
452
|
+
openedPanels: e(this, L),
|
|
453
|
+
changedSizes: e(this, D),
|
|
71
454
|
scrollValue: this.scrollValue
|
|
72
455
|
};
|
|
73
|
-
localStorage.setItem(e(this,
|
|
456
|
+
localStorage.setItem(e(this, q), JSON.stringify(s)), B.saveState();
|
|
74
457
|
}
|
|
75
458
|
load() {
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
if (
|
|
459
|
+
B.loadState();
|
|
460
|
+
const s = localStorage.getItem(e(this, q));
|
|
461
|
+
if (s)
|
|
79
462
|
try {
|
|
80
|
-
const t = JSON.parse(
|
|
81
|
-
t.openedPanels &&
|
|
463
|
+
const t = JSON.parse(s);
|
|
464
|
+
t.openedPanels && c(this, L, t.openedPanels), t.changedSizes && c(this, D, t.changedSizes), t.scrollValue && (this.scrollValue = t.scrollValue);
|
|
82
465
|
} catch (t) {
|
|
83
466
|
console.error(t);
|
|
84
467
|
}
|
|
85
468
|
}
|
|
86
469
|
}
|
|
87
|
-
|
|
88
|
-
const
|
|
470
|
+
q = new WeakMap(), L = new WeakMap(), D = new WeakMap();
|
|
471
|
+
const x = new cs(), ds = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>', us = k({
|
|
89
472
|
":host": {
|
|
90
473
|
position: "relative",
|
|
91
474
|
display: "inline-block",
|
|
92
475
|
width: "30px",
|
|
93
476
|
height: "30px",
|
|
94
|
-
borderRadius:
|
|
477
|
+
borderRadius: f.borderRadiusSmall.var,
|
|
95
478
|
overflow: "hidden"
|
|
96
479
|
},
|
|
97
480
|
"label, .fake": {
|
|
@@ -114,12 +497,12 @@ const v = new Lt(), Rt = '<svg xmlns="http://www.w3.org/2000/svg" width="32" hei
|
|
|
114
497
|
display: "flex",
|
|
115
498
|
alignItems: "center",
|
|
116
499
|
justifyContent: "center",
|
|
117
|
-
backgroundColor:
|
|
500
|
+
backgroundColor: f.colorMainAux.var
|
|
118
501
|
},
|
|
119
502
|
".default svg": {
|
|
120
503
|
width: "60%",
|
|
121
504
|
height: "60%",
|
|
122
|
-
fill:
|
|
505
|
+
fill: f.colorFont.var,
|
|
123
506
|
opacity: 0,
|
|
124
507
|
transition: "var(--duration-short)"
|
|
125
508
|
},
|
|
@@ -127,35 +510,35 @@ const v = new Lt(), Rt = '<svg xmlns="http://www.w3.org/2000/svg" width="32" hei
|
|
|
127
510
|
opacity: 1
|
|
128
511
|
}
|
|
129
512
|
});
|
|
130
|
-
var
|
|
131
|
-
const
|
|
513
|
+
var K, te, J, we;
|
|
514
|
+
const pt = class pt extends HTMLElement {
|
|
132
515
|
constructor() {
|
|
133
516
|
super();
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(
|
|
138
|
-
children:
|
|
517
|
+
o(this, J);
|
|
518
|
+
o(this, K, null);
|
|
519
|
+
o(this, te);
|
|
520
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(us), c(this, te, this.attachInternals()), g(this, {
|
|
521
|
+
children: Pt({
|
|
139
522
|
children: [
|
|
140
|
-
|
|
523
|
+
lt({
|
|
141
524
|
class: "fake",
|
|
142
|
-
children:
|
|
525
|
+
children: me({
|
|
143
526
|
children: [
|
|
144
|
-
|
|
527
|
+
lt({
|
|
145
528
|
class: "default",
|
|
146
|
-
children: [
|
|
529
|
+
children: [ds]
|
|
147
530
|
})
|
|
148
531
|
]
|
|
149
532
|
})
|
|
150
533
|
}),
|
|
151
|
-
|
|
152
|
-
ref: (
|
|
153
|
-
|
|
534
|
+
Ve({
|
|
535
|
+
ref: (i) => {
|
|
536
|
+
c(this, K, i), i.required = this.hasAttribute("required"), i.value = this.getAttribute("value") || "", i.checked = this.hasAttribute("checked"), i.name = this.getAttribute("name") || "", l(this, J, we).call(this);
|
|
154
537
|
},
|
|
155
538
|
class: "real",
|
|
156
539
|
type: "checkbox",
|
|
157
540
|
onChange: () => {
|
|
158
|
-
|
|
541
|
+
l(this, J, we).call(this), this.dispatchEvent(
|
|
159
542
|
new Event("change", {
|
|
160
543
|
composed: !0
|
|
161
544
|
})
|
|
@@ -167,47 +550,47 @@ const Ke = class Ke extends HTMLElement {
|
|
|
167
550
|
});
|
|
168
551
|
}
|
|
169
552
|
get checked() {
|
|
170
|
-
return e(this,
|
|
553
|
+
return e(this, K).checked;
|
|
171
554
|
}
|
|
172
555
|
set checked(t) {
|
|
173
|
-
e(this,
|
|
556
|
+
e(this, K).checked = t, l(this, J, we).call(this);
|
|
174
557
|
}
|
|
175
558
|
get value() {
|
|
176
|
-
return e(this,
|
|
559
|
+
return e(this, K).value;
|
|
177
560
|
}
|
|
178
561
|
set value(t) {
|
|
179
|
-
e(this,
|
|
562
|
+
e(this, K).value = t, l(this, J, we).call(this);
|
|
180
563
|
}
|
|
181
564
|
};
|
|
182
|
-
|
|
183
|
-
this.checked ? e(this,
|
|
184
|
-
},
|
|
185
|
-
let
|
|
186
|
-
customElements.get("e-checkbox") || customElements.define("e-checkbox",
|
|
187
|
-
var
|
|
188
|
-
class
|
|
565
|
+
K = new WeakMap(), te = new WeakMap(), J = new WeakSet(), we = function() {
|
|
566
|
+
this.checked ? e(this, te).setFormValue(this.value) : e(this, te).setFormValue(null), this.classList.toggle("checked", this.checked);
|
|
567
|
+
}, pt.formAssociated = !0;
|
|
568
|
+
let ht = pt;
|
|
569
|
+
customElements.get("e-checkbox") || customElements.define("e-checkbox", ht);
|
|
570
|
+
var O;
|
|
571
|
+
class ge extends HTMLElement {
|
|
189
572
|
constructor(...t) {
|
|
190
573
|
super();
|
|
191
|
-
|
|
192
|
-
|
|
574
|
+
o(this, O);
|
|
575
|
+
c(this, O, t);
|
|
193
576
|
}
|
|
194
577
|
addStore(t) {
|
|
195
|
-
e(this,
|
|
578
|
+
e(this, O).push(t);
|
|
196
579
|
}
|
|
197
580
|
get firstStore() {
|
|
198
|
-
return e(this,
|
|
581
|
+
return e(this, O)[0];
|
|
199
582
|
}
|
|
200
583
|
get stores() {
|
|
201
|
-
return e(this,
|
|
584
|
+
return e(this, O);
|
|
202
585
|
}
|
|
203
586
|
updateStores(t) {
|
|
204
|
-
e(this,
|
|
205
|
-
|
|
587
|
+
e(this, O).forEach((i) => {
|
|
588
|
+
i.current = t;
|
|
206
589
|
});
|
|
207
590
|
}
|
|
208
591
|
}
|
|
209
|
-
|
|
210
|
-
const
|
|
592
|
+
O = new WeakMap();
|
|
593
|
+
const fs = k({
|
|
211
594
|
":host": {
|
|
212
595
|
width: "100%",
|
|
213
596
|
display: "inline-flex",
|
|
@@ -217,20 +600,20 @@ const Ft = w({
|
|
|
217
600
|
"--size": "calc(var(--height-input) * 0.8)",
|
|
218
601
|
width: "var(--size)",
|
|
219
602
|
height: "var(--size)",
|
|
220
|
-
borderRadius:
|
|
603
|
+
borderRadius: f.borderRadiusSmall.var
|
|
221
604
|
}
|
|
222
605
|
});
|
|
223
|
-
class
|
|
224
|
-
constructor(...
|
|
225
|
-
super(...
|
|
606
|
+
class Vt extends ge {
|
|
607
|
+
constructor(...s) {
|
|
608
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(fs), g(this, {
|
|
226
609
|
children: [
|
|
227
|
-
|
|
228
|
-
onChange: (
|
|
229
|
-
this.updateStores(
|
|
610
|
+
g("e-checkbox", {
|
|
611
|
+
onChange: (i) => {
|
|
612
|
+
this.updateStores(i.currentTarget.checked);
|
|
230
613
|
},
|
|
231
|
-
ref: (
|
|
232
|
-
this.firstStore.subscribe((
|
|
233
|
-
|
|
614
|
+
ref: (i) => {
|
|
615
|
+
this.firstStore.subscribe((n) => {
|
|
616
|
+
i.checked = n.current;
|
|
234
617
|
});
|
|
235
618
|
}
|
|
236
619
|
})
|
|
@@ -240,9 +623,9 @@ class st extends se {
|
|
|
240
623
|
}
|
|
241
624
|
customElements.get("e-tweaker-boolean-manager") || customElements.define(
|
|
242
625
|
"e-tweaker-boolean-manager",
|
|
243
|
-
|
|
626
|
+
Vt
|
|
244
627
|
);
|
|
245
|
-
const
|
|
628
|
+
const ms = k({
|
|
246
629
|
":host": {
|
|
247
630
|
width: "100%",
|
|
248
631
|
display: "inline-flex",
|
|
@@ -253,7 +636,7 @@ const It = w({
|
|
|
253
636
|
height: "var(--height-input)",
|
|
254
637
|
padding: "0",
|
|
255
638
|
background: "none",
|
|
256
|
-
borderRadius:
|
|
639
|
+
borderRadius: f.borderRadius.var,
|
|
257
640
|
border: "none",
|
|
258
641
|
blockSize: "unset"
|
|
259
642
|
},
|
|
@@ -261,48 +644,48 @@ const It = w({
|
|
|
261
644
|
boxSizing: "border-box",
|
|
262
645
|
padding: "0px",
|
|
263
646
|
border: "none",
|
|
264
|
-
borderRadius:
|
|
647
|
+
borderRadius: f.borderRadius.var,
|
|
265
648
|
height: "calc(var(--height-input) * 0.93)"
|
|
266
649
|
}
|
|
267
650
|
});
|
|
268
|
-
class
|
|
269
|
-
constructor(...
|
|
270
|
-
super(...
|
|
651
|
+
class _t extends ge {
|
|
652
|
+
constructor(...s) {
|
|
653
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ms), g(this, {
|
|
271
654
|
children: [
|
|
272
|
-
|
|
655
|
+
Ve({
|
|
273
656
|
type: "color",
|
|
274
657
|
value: this.firstStore,
|
|
275
|
-
onInput: (
|
|
276
|
-
this.updateStores(
|
|
658
|
+
onInput: (i) => {
|
|
659
|
+
this.updateStores(i.currentTarget.value);
|
|
277
660
|
}
|
|
278
661
|
})
|
|
279
662
|
]
|
|
280
663
|
});
|
|
281
664
|
}
|
|
282
665
|
}
|
|
283
|
-
customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager",
|
|
284
|
-
const
|
|
666
|
+
customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", _t);
|
|
667
|
+
const gs = k({
|
|
285
668
|
a: {
|
|
286
669
|
color: "inherit",
|
|
287
670
|
fontSize: "var(--font-size-small)"
|
|
288
671
|
}
|
|
289
672
|
});
|
|
290
|
-
class
|
|
291
|
-
constructor(...
|
|
292
|
-
var
|
|
293
|
-
super(...
|
|
673
|
+
class Bt extends ge {
|
|
674
|
+
constructor(...s) {
|
|
675
|
+
var i;
|
|
676
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(gs), g(this, {
|
|
294
677
|
children: [
|
|
295
|
-
|
|
678
|
+
rs({
|
|
296
679
|
href: this.firstStore,
|
|
297
|
-
target: (
|
|
680
|
+
target: (i = this.firstStore.__manager) != null && i.sameWindow ? "_self" : "_blank",
|
|
298
681
|
children: this.firstStore
|
|
299
682
|
})
|
|
300
683
|
]
|
|
301
684
|
});
|
|
302
685
|
}
|
|
303
686
|
}
|
|
304
|
-
customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager",
|
|
305
|
-
const
|
|
687
|
+
customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", Bt);
|
|
688
|
+
const ps = k({
|
|
306
689
|
":host": {
|
|
307
690
|
width: "100%",
|
|
308
691
|
display: "flex",
|
|
@@ -327,7 +710,7 @@ const Pt = w({
|
|
|
327
710
|
margin: "0",
|
|
328
711
|
padding: "0 var(--gap-small)",
|
|
329
712
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
330
|
-
borderRadius:
|
|
713
|
+
borderRadius: f.borderRadius.var
|
|
331
714
|
},
|
|
332
715
|
".drag": {
|
|
333
716
|
position: "relative",
|
|
@@ -343,12 +726,12 @@ const Pt = w({
|
|
|
343
726
|
width: "100%",
|
|
344
727
|
zIndex: "-1",
|
|
345
728
|
height: "1px",
|
|
346
|
-
borderBottom: `1px solid ${
|
|
729
|
+
borderBottom: `1px solid ${f.colorFont.var}`,
|
|
347
730
|
transform: "translateY(-50%)",
|
|
348
731
|
opacity: "0.3"
|
|
349
732
|
},
|
|
350
733
|
":host(.infinite) .drag::before": {
|
|
351
|
-
borderBottom: `1px dashed ${
|
|
734
|
+
borderBottom: `1px dashed ${f.colorFont.var}`
|
|
352
735
|
},
|
|
353
736
|
".drag-knob": {
|
|
354
737
|
"--size": "calc(var(--height-input) * 0.4)",
|
|
@@ -358,95 +741,95 @@ const Pt = w({
|
|
|
358
741
|
".drag-knob-inner": {
|
|
359
742
|
width: "100%",
|
|
360
743
|
height: "100%",
|
|
361
|
-
backgroundColor:
|
|
362
|
-
borderRadius:
|
|
744
|
+
backgroundColor: f.colorFont.var,
|
|
745
|
+
borderRadius: f.borderRadiusSmall.var,
|
|
363
746
|
transition: "opacity var(--duration-short)"
|
|
364
747
|
},
|
|
365
748
|
":host(.infinite) .grabbing .drag-knob-inner": {
|
|
366
749
|
opacity: 0.3
|
|
367
750
|
}
|
|
368
751
|
});
|
|
369
|
-
var
|
|
370
|
-
class
|
|
752
|
+
var Y, se, ie, V, Z, ve, ye, R, G, Se, ke, p, Q, ct, dt, Ke, Ee;
|
|
753
|
+
class Kt extends ge {
|
|
371
754
|
constructor(...t) {
|
|
372
|
-
var
|
|
755
|
+
var n, h, u, m;
|
|
373
756
|
super(...t);
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
const
|
|
386
|
-
return
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
}), e(this,
|
|
757
|
+
o(this, p);
|
|
758
|
+
o(this, Y, []);
|
|
759
|
+
o(this, se, []);
|
|
760
|
+
o(this, ie);
|
|
761
|
+
o(this, V);
|
|
762
|
+
o(this, Z);
|
|
763
|
+
o(this, ve);
|
|
764
|
+
o(this, ye);
|
|
765
|
+
o(this, R);
|
|
766
|
+
o(this, G, !1);
|
|
767
|
+
o(this, Se, (t) => {
|
|
768
|
+
const i = l(this, p, Q).call(this, t);
|
|
769
|
+
return i.map((n, h) => {
|
|
770
|
+
const u = typeof n == "string" ? parseFloat(n) || e(this, V) : n, m = ss(u, e(this, V), e(this, Z)), S = is(m, e(this, ie));
|
|
771
|
+
i[h] = S;
|
|
772
|
+
}), e(this, ye) === "number" ? i[0] : i;
|
|
390
773
|
});
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
const
|
|
394
|
-
|
|
395
|
-
}),
|
|
774
|
+
o(this, ke, () => {
|
|
775
|
+
l(this, p, Q).call(this).map((t, i) => {
|
|
776
|
+
const n = e(this, Y)[i];
|
|
777
|
+
n && (n.value = (t || 0).toString());
|
|
778
|
+
}), l(this, p, ct).call(this);
|
|
396
779
|
});
|
|
397
|
-
|
|
398
|
-
|
|
780
|
+
o(this, Ee, () => {
|
|
781
|
+
l(this, p, ct).call(this);
|
|
399
782
|
});
|
|
400
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(
|
|
401
|
-
class: e(this,
|
|
402
|
-
children:
|
|
783
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ps), c(this, V, St((n = this.firstStore.__manager) == null ? void 0 : n.min, -1 / 0)), c(this, Z, St((h = this.firstStore.__manager) == null ? void 0 : h.max, 1 / 0)), c(this, ie, ((u = this.firstStore.__manager) == null ? void 0 : u.step) || 0.01), c(this, ve, ((m = this.firstStore.__manager) == null ? void 0 : m.ease) || 1), c(this, ye, Array.isArray(this.firstStore.current) ? "array" : "number"), c(this, R, isFinite(e(this, Z)) && isFinite(e(this, V))), g(this, {
|
|
784
|
+
class: e(this, R) ? "" : "infinite",
|
|
785
|
+
children: l(this, p, Q).call(this).map((S, C) => w({
|
|
403
786
|
class: "inputs-wrapper",
|
|
404
787
|
children: [
|
|
405
|
-
|
|
788
|
+
Ve({
|
|
406
789
|
type: "number",
|
|
407
|
-
step: e(this,
|
|
408
|
-
min: e(this,
|
|
409
|
-
max: e(this,
|
|
410
|
-
ref: (b) => e(this,
|
|
411
|
-
value:
|
|
790
|
+
step: e(this, ie),
|
|
791
|
+
min: e(this, V),
|
|
792
|
+
max: e(this, Z),
|
|
793
|
+
ref: (b) => e(this, Y).push(b),
|
|
794
|
+
value: S,
|
|
412
795
|
onChange: () => {
|
|
413
796
|
this.updateStores(
|
|
414
|
-
e(this,
|
|
797
|
+
e(this, Y).map((b) => parseFloat(b.value))
|
|
415
798
|
);
|
|
416
799
|
}
|
|
417
800
|
}),
|
|
418
|
-
|
|
801
|
+
w({
|
|
419
802
|
class: "drag",
|
|
420
803
|
children: [
|
|
421
|
-
|
|
804
|
+
w({
|
|
422
805
|
class: "drag-knob",
|
|
423
|
-
ref: (b) => e(this,
|
|
806
|
+
ref: (b) => e(this, se).push(b),
|
|
424
807
|
onPointerdown: (b) => {
|
|
425
|
-
b.preventDefault(),
|
|
426
|
-
const
|
|
427
|
-
if (
|
|
428
|
-
const
|
|
429
|
-
|
|
430
|
-
(
|
|
431
|
-
const
|
|
432
|
-
if (
|
|
433
|
-
const
|
|
434
|
-
|
|
808
|
+
b.preventDefault(), c(this, G, !0);
|
|
809
|
+
const pe = l(this, p, Q).call(this), _e = pe[C], E = e(this, se)[C], N = e(this, Y)[C];
|
|
810
|
+
if (E && N) {
|
|
811
|
+
const F = E.parentElement, _ = l(this, p, dt).call(this);
|
|
812
|
+
F.classList.add("grabbing"), xt(
|
|
813
|
+
(W) => {
|
|
814
|
+
const bt = W.x - b.x, Jt = e(this, R) ? F.offsetWidth / (_ || 1) : 1, Yt = _e + bt / Jt * e(this, ve);
|
|
815
|
+
if (pe[C] = Yt, !e(this, R)) {
|
|
816
|
+
const Gt = l(this, p, Ke).call(this, E, 0);
|
|
817
|
+
E.style.transform = `translateX(${Gt + bt}px)`;
|
|
435
818
|
}
|
|
436
|
-
this.updateStores([...
|
|
819
|
+
this.updateStores([...pe]);
|
|
437
820
|
},
|
|
438
821
|
() => {
|
|
439
|
-
if (
|
|
440
|
-
const
|
|
441
|
-
|
|
442
|
-
|
|
822
|
+
if (c(this, G, !1), !e(this, R)) {
|
|
823
|
+
const W = l(this, p, Ke).call(this, E, 0);
|
|
824
|
+
E.style.transition = "transform 0.1s", E.style.transform = `translateX(${W}px)`, F.classList.remove("grabbing"), setTimeout(() => {
|
|
825
|
+
E.style.transition = "";
|
|
443
826
|
}, 100);
|
|
444
827
|
}
|
|
445
828
|
}
|
|
446
829
|
);
|
|
447
830
|
}
|
|
448
831
|
},
|
|
449
|
-
children:
|
|
832
|
+
children: w({
|
|
450
833
|
class: "drag-knob-inner"
|
|
451
834
|
})
|
|
452
835
|
})
|
|
@@ -457,30 +840,30 @@ class rt extends se {
|
|
|
457
840
|
});
|
|
458
841
|
}
|
|
459
842
|
connectedCallback() {
|
|
460
|
-
this.firstStore.addMiddleware(e(this,
|
|
843
|
+
this.firstStore.addMiddleware(e(this, Se)), this.firstStore.subscribe(e(this, ke)), kt.subscribe(this, e(this, Ee));
|
|
461
844
|
}
|
|
462
845
|
disconnectedCallback() {
|
|
463
|
-
this.firstStore.removeMiddleware(e(this,
|
|
846
|
+
this.firstStore.removeMiddleware(e(this, Se)), this.firstStore.unsubscribe(e(this, ke)), kt.unsubscribe(e(this, Ee));
|
|
464
847
|
}
|
|
465
848
|
}
|
|
466
|
-
|
|
849
|
+
Y = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), V = new WeakMap(), Z = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), R = new WeakMap(), G = new WeakMap(), Se = new WeakMap(), ke = new WeakMap(), p = new WeakSet(), Q = function(t = this.firstStore.current) {
|
|
467
850
|
return Array.isArray(t) ? t : [t];
|
|
468
|
-
},
|
|
469
|
-
|
|
470
|
-
const
|
|
471
|
-
if (
|
|
472
|
-
const
|
|
473
|
-
|
|
851
|
+
}, ct = function() {
|
|
852
|
+
l(this, p, Q).call(this).map((t, i) => {
|
|
853
|
+
const n = e(this, se)[i];
|
|
854
|
+
if (n && (!e(this, G) || e(this, G) && e(this, R))) {
|
|
855
|
+
const h = l(this, p, Ke).call(this, n, t);
|
|
856
|
+
n.style.transform = `translateX(${h}px)`;
|
|
474
857
|
}
|
|
475
858
|
});
|
|
476
|
-
},
|
|
477
|
-
return e(this,
|
|
478
|
-
},
|
|
479
|
-
const
|
|
480
|
-
return (
|
|
481
|
-
},
|
|
482
|
-
customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager",
|
|
483
|
-
const
|
|
859
|
+
}, dt = function() {
|
|
860
|
+
return e(this, R) ? e(this, Z) - e(this, V) : 0;
|
|
861
|
+
}, Ke = function(t, i) {
|
|
862
|
+
const n = t.parentElement, h = l(this, p, dt).call(this), u = h ? i / h : 0.5;
|
|
863
|
+
return (n.offsetWidth - t.offsetWidth) * u;
|
|
864
|
+
}, Ee = new WeakMap();
|
|
865
|
+
customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", Kt);
|
|
866
|
+
const ws = k({
|
|
484
867
|
":host": {
|
|
485
868
|
position: "relative"
|
|
486
869
|
},
|
|
@@ -515,109 +898,109 @@ const $t = w({
|
|
|
515
898
|
paddingTop: "var(--gap, 0px)"
|
|
516
899
|
}
|
|
517
900
|
});
|
|
518
|
-
var
|
|
519
|
-
const
|
|
901
|
+
var ne, oe, T, U, re, ae, Ye, xe, ft;
|
|
902
|
+
const wt = class wt extends HTMLElement {
|
|
520
903
|
constructor() {
|
|
521
904
|
super();
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
905
|
+
o(this, xe);
|
|
906
|
+
o(this, ne, null);
|
|
907
|
+
o(this, oe, "");
|
|
908
|
+
o(this, T, null);
|
|
909
|
+
o(this, U, !1);
|
|
910
|
+
o(this, re);
|
|
911
|
+
o(this, ae, null);
|
|
912
|
+
o(this, Ye, () => {
|
|
913
|
+
Et(this);
|
|
531
914
|
});
|
|
532
|
-
|
|
915
|
+
X && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ws), c(this, ne, this.attachInternals()), c(this, ae, new ResizeObserver(e(this, Ye))), g(this, {
|
|
533
916
|
children: [
|
|
534
|
-
|
|
917
|
+
ee({
|
|
535
918
|
class: "head",
|
|
536
|
-
children:
|
|
919
|
+
children: me({ name: "head" }),
|
|
537
920
|
onClick: () => {
|
|
538
921
|
this.opened ? this.close() : this.open();
|
|
539
922
|
}
|
|
540
923
|
}),
|
|
541
|
-
|
|
924
|
+
w({
|
|
542
925
|
class: "body",
|
|
543
926
|
style: {
|
|
544
927
|
height: "0px"
|
|
545
928
|
},
|
|
546
|
-
children:
|
|
929
|
+
children: w({
|
|
547
930
|
class: "body-inner",
|
|
548
|
-
children:
|
|
931
|
+
children: me()
|
|
549
932
|
}),
|
|
550
|
-
ref: (
|
|
551
|
-
|
|
933
|
+
ref: (i) => {
|
|
934
|
+
c(this, T, i);
|
|
552
935
|
}
|
|
553
936
|
})
|
|
554
937
|
]
|
|
555
938
|
}));
|
|
556
939
|
}
|
|
557
940
|
get value() {
|
|
558
|
-
return e(this,
|
|
941
|
+
return e(this, oe);
|
|
559
942
|
}
|
|
560
943
|
set value(t) {
|
|
561
|
-
|
|
944
|
+
c(this, oe, t), this.dispatchEvent(
|
|
562
945
|
new Event("change", {
|
|
563
946
|
bubbles: !0,
|
|
564
947
|
composed: !0
|
|
565
948
|
})
|
|
566
|
-
), e(this,
|
|
949
|
+
), e(this, ne).setFormValue(e(this, oe));
|
|
567
950
|
}
|
|
568
951
|
get internals() {
|
|
569
|
-
return e(this,
|
|
952
|
+
return e(this, ne);
|
|
570
953
|
}
|
|
571
954
|
get opened() {
|
|
572
|
-
return e(this,
|
|
955
|
+
return e(this, U);
|
|
573
956
|
}
|
|
574
957
|
open() {
|
|
575
|
-
clearTimeout(e(this,
|
|
576
|
-
this.classList.add("opened"), e(this,
|
|
958
|
+
clearTimeout(e(this, re)), c(this, U, !0), e(this, T).style.display = "grid", this.classList.add("triggered"), setTimeout(() => {
|
|
959
|
+
this.classList.add("opened"), e(this, T).style.height = e(this, T).scrollHeight + "px", l(this, xe, ft).call(this);
|
|
577
960
|
}, 0);
|
|
578
961
|
}
|
|
579
962
|
close() {
|
|
580
|
-
|
|
581
|
-
this.classList.remove("triggered"), e(this,
|
|
582
|
-
},
|
|
963
|
+
c(this, U, !1), e(this, T).style.height = "0px", this.classList.remove("opened"), l(this, xe, ft).call(this), c(this, re, setTimeout(() => {
|
|
964
|
+
this.classList.remove("triggered"), e(this, T).style.display = "none";
|
|
965
|
+
}, ns(e(this, T))));
|
|
583
966
|
}
|
|
584
967
|
connectedCallback() {
|
|
585
|
-
e(this,
|
|
968
|
+
e(this, ae).observe(e(this, T));
|
|
586
969
|
}
|
|
587
970
|
disconnectedCallback() {
|
|
588
|
-
clearTimeout(e(this,
|
|
971
|
+
clearTimeout(e(this, re)), e(this, ae).disconnect();
|
|
589
972
|
}
|
|
590
973
|
};
|
|
591
|
-
|
|
592
|
-
|
|
974
|
+
ne = new WeakMap(), oe = new WeakMap(), T = new WeakMap(), U = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), Ye = new WeakMap(), xe = new WeakSet(), ft = function() {
|
|
975
|
+
Ut(this), this.dispatchEvent(
|
|
593
976
|
new CustomEvent("selectToggle", {
|
|
594
977
|
bubbles: !0,
|
|
595
978
|
composed: !0,
|
|
596
979
|
detail: {
|
|
597
|
-
opened: e(this,
|
|
980
|
+
opened: e(this, U)
|
|
598
981
|
}
|
|
599
982
|
})
|
|
600
983
|
);
|
|
601
|
-
},
|
|
602
|
-
let
|
|
603
|
-
customElements.get("e-select") || customElements.define("e-select",
|
|
604
|
-
var
|
|
605
|
-
class
|
|
984
|
+
}, wt.formAssociated = !0;
|
|
985
|
+
let ut = wt;
|
|
986
|
+
customElements.get("e-select") || customElements.define("e-select", ut);
|
|
987
|
+
var Ce;
|
|
988
|
+
class Ot extends HTMLElement {
|
|
606
989
|
constructor() {
|
|
607
990
|
super(...arguments);
|
|
608
|
-
|
|
991
|
+
o(this, Ce, null);
|
|
609
992
|
}
|
|
610
993
|
get selectElement() {
|
|
611
|
-
return e(this,
|
|
994
|
+
return e(this, Ce);
|
|
612
995
|
}
|
|
613
996
|
connectedCallback() {
|
|
614
|
-
var
|
|
615
|
-
const t = (
|
|
616
|
-
t ?
|
|
997
|
+
var i, n;
|
|
998
|
+
const t = (n = (i = this.assignedSlot) == null ? void 0 : i.getRootNode()) == null ? void 0 : n.host;
|
|
999
|
+
t ? c(this, Ce, t) : console.log(this, "e-select not found");
|
|
617
1000
|
}
|
|
618
1001
|
}
|
|
619
|
-
|
|
620
|
-
const
|
|
1002
|
+
Ce = new WeakMap();
|
|
1003
|
+
const bs = k({
|
|
621
1004
|
":host": {
|
|
622
1005
|
width: "100%",
|
|
623
1006
|
height: "40px",
|
|
@@ -625,42 +1008,42 @@ const Vt = w({
|
|
|
625
1008
|
alignItems: "center"
|
|
626
1009
|
}
|
|
627
1010
|
});
|
|
628
|
-
var
|
|
629
|
-
class
|
|
1011
|
+
var le, Le, mt;
|
|
1012
|
+
class vs extends Ot {
|
|
630
1013
|
constructor() {
|
|
631
1014
|
super();
|
|
632
|
-
|
|
633
|
-
|
|
1015
|
+
o(this, Le);
|
|
1016
|
+
o(this, le, () => {
|
|
634
1017
|
this.selectElement.value === this.value ? this.style.display = "none" : this.style.display = "";
|
|
635
1018
|
});
|
|
636
|
-
|
|
1019
|
+
X && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(bs), g(this, {
|
|
637
1020
|
tabindex: 0,
|
|
638
1021
|
onClick: () => {
|
|
639
|
-
|
|
1022
|
+
l(this, Le, mt).call(this);
|
|
640
1023
|
},
|
|
641
|
-
onKeydown: (
|
|
642
|
-
|
|
1024
|
+
onKeydown: (i) => {
|
|
1025
|
+
i.code === "Space" && l(this, Le, mt).call(this);
|
|
643
1026
|
},
|
|
644
|
-
children:
|
|
1027
|
+
children: me()
|
|
645
1028
|
}));
|
|
646
1029
|
}
|
|
647
1030
|
get value() {
|
|
648
1031
|
return (this.hasAttribute("value") ? this.getAttribute("value") : this.innerText) || "";
|
|
649
1032
|
}
|
|
650
1033
|
connectedCallback() {
|
|
651
|
-
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", e(this,
|
|
652
|
-
e(this,
|
|
1034
|
+
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", e(this, le)), setTimeout(() => {
|
|
1035
|
+
e(this, le).call(this);
|
|
653
1036
|
});
|
|
654
1037
|
}
|
|
655
1038
|
disconnectedCallback() {
|
|
656
|
-
this.selectElement.removeEventListener("change", e(this,
|
|
1039
|
+
this.selectElement.removeEventListener("change", e(this, le));
|
|
657
1040
|
}
|
|
658
1041
|
}
|
|
659
|
-
|
|
1042
|
+
le = new WeakMap(), Le = new WeakSet(), mt = function() {
|
|
660
1043
|
this.selectElement.value = this.value, this.selectElement.close();
|
|
661
1044
|
};
|
|
662
|
-
customElements.get("e-select-option") || customElements.define("e-select-option",
|
|
663
|
-
const
|
|
1045
|
+
customElements.get("e-select-option") || customElements.define("e-select-option", vs);
|
|
1046
|
+
const ys = k({
|
|
664
1047
|
":host": {
|
|
665
1048
|
width: "100%",
|
|
666
1049
|
height: "40px",
|
|
@@ -672,7 +1055,7 @@ const Nt = w({
|
|
|
672
1055
|
flexShrink: "0",
|
|
673
1056
|
width: "var(--arrow-size, 1em)",
|
|
674
1057
|
height: "var(--arrow-size, 1em)",
|
|
675
|
-
fill: `var(--arrow-color, ${
|
|
1058
|
+
fill: `var(--arrow-color, ${f.colorMain.var})`,
|
|
676
1059
|
transitionProperty: "transform",
|
|
677
1060
|
transitionDuration: "var(--duration, var(--duration-short))"
|
|
678
1061
|
},
|
|
@@ -680,44 +1063,44 @@ const Nt = w({
|
|
|
680
1063
|
transform: "scaleY(-1)"
|
|
681
1064
|
}
|
|
682
1065
|
});
|
|
683
|
-
var
|
|
684
|
-
class
|
|
1066
|
+
var Te, he, ze;
|
|
1067
|
+
class Ss extends Ot {
|
|
685
1068
|
constructor() {
|
|
686
1069
|
super();
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
const
|
|
1070
|
+
o(this, Te, null);
|
|
1071
|
+
o(this, he, () => {
|
|
1072
|
+
const i = this.selectElement.shadowRoot.querySelector(
|
|
690
1073
|
".body slot"
|
|
691
|
-
).assignedElements().find((
|
|
692
|
-
|
|
1074
|
+
).assignedElements().find((n) => n.value === this.selectElement.value);
|
|
1075
|
+
i && (e(this, Te).innerHTML = i.innerHTML);
|
|
693
1076
|
});
|
|
694
|
-
|
|
1077
|
+
o(this, ze, () => {
|
|
695
1078
|
this.classList.toggle("opened", this.selectElement.opened);
|
|
696
1079
|
});
|
|
697
|
-
|
|
1080
|
+
X && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ys), g(this, {
|
|
698
1081
|
children: [
|
|
699
|
-
|
|
700
|
-
|
|
1082
|
+
me(),
|
|
1083
|
+
me({
|
|
701
1084
|
name: "arrow",
|
|
702
|
-
children:
|
|
1085
|
+
children: g(Dt, { class: "default-arrow" })
|
|
703
1086
|
})
|
|
704
1087
|
]
|
|
705
1088
|
}), this.slot = "head");
|
|
706
1089
|
}
|
|
707
1090
|
connectedCallback() {
|
|
708
|
-
super.connectedCallback(),
|
|
1091
|
+
super.connectedCallback(), c(this, Te, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change", e(this, he)), e(this, he).call(this), this.selectElement.addEventListener("selectToggle", e(this, ze));
|
|
709
1092
|
}
|
|
710
1093
|
disconnectedCallback() {
|
|
711
|
-
this.selectElement.removeEventListener("change", e(this,
|
|
1094
|
+
this.selectElement.removeEventListener("change", e(this, he)), this.selectElement.removeEventListener("selectToggle", e(this, ze));
|
|
712
1095
|
}
|
|
713
1096
|
}
|
|
714
|
-
|
|
715
|
-
customElements.get("e-select-head") || customElements.define("e-select-head",
|
|
716
|
-
const
|
|
1097
|
+
Te = new WeakMap(), he = new WeakMap(), ze = new WeakMap();
|
|
1098
|
+
customElements.get("e-select-head") || customElements.define("e-select-head", Ss);
|
|
1099
|
+
const ks = k({
|
|
717
1100
|
"e-select": {
|
|
718
1101
|
display: "block",
|
|
719
1102
|
width: "100%",
|
|
720
|
-
"--arrow-color":
|
|
1103
|
+
"--arrow-color": f.colorFont.var
|
|
721
1104
|
},
|
|
722
1105
|
"e-select-head": {
|
|
723
1106
|
width: "100%",
|
|
@@ -734,12 +1117,12 @@ const _t = w({
|
|
|
734
1117
|
fontSize: "var(--font-size-small)"
|
|
735
1118
|
},
|
|
736
1119
|
"e-select-option:hover": {
|
|
737
|
-
color:
|
|
1120
|
+
color: f.colorActive.var
|
|
738
1121
|
},
|
|
739
1122
|
svg: {
|
|
740
1123
|
width: "16px",
|
|
741
1124
|
height: "16px",
|
|
742
|
-
fill:
|
|
1125
|
+
fill: f.colorFont.var,
|
|
743
1126
|
transitionProperty: "transform",
|
|
744
1127
|
transitionDuration: "var(--duration-short)"
|
|
745
1128
|
},
|
|
@@ -747,30 +1130,30 @@ const _t = w({
|
|
|
747
1130
|
transform: "scaleY(-1)"
|
|
748
1131
|
}
|
|
749
1132
|
});
|
|
750
|
-
class
|
|
751
|
-
constructor(...
|
|
752
|
-
var
|
|
753
|
-
super(...
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
children:
|
|
1133
|
+
class Zt extends ge {
|
|
1134
|
+
constructor(...s) {
|
|
1135
|
+
var n;
|
|
1136
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ks);
|
|
1137
|
+
const i = ((n = this.firstStore.__manager) == null ? void 0 : n.variants) || [];
|
|
1138
|
+
g(this, {
|
|
1139
|
+
children: g("e-select", {
|
|
757
1140
|
value: this.firstStore,
|
|
758
|
-
onChange: (
|
|
759
|
-
this.updateStores(
|
|
1141
|
+
onChange: (h) => {
|
|
1142
|
+
this.updateStores(h.currentTarget.value);
|
|
760
1143
|
},
|
|
761
1144
|
lightChildren: [
|
|
762
|
-
|
|
1145
|
+
g("e-select-head", {
|
|
763
1146
|
lightChildren: [
|
|
764
|
-
|
|
1147
|
+
lt({
|
|
765
1148
|
"data-value-holder": ""
|
|
766
1149
|
})
|
|
767
1150
|
]
|
|
768
1151
|
}),
|
|
769
1152
|
// @ts-ignore
|
|
770
|
-
...
|
|
771
|
-
(
|
|
772
|
-
lightChildren:
|
|
773
|
-
default:
|
|
1153
|
+
...i.map(
|
|
1154
|
+
(h, u) => g("e-select-option", {
|
|
1155
|
+
lightChildren: h,
|
|
1156
|
+
default: u === 0 ? !0 : null
|
|
774
1157
|
})
|
|
775
1158
|
)
|
|
776
1159
|
]
|
|
@@ -778,8 +1161,8 @@ class at extends se {
|
|
|
778
1161
|
});
|
|
779
1162
|
}
|
|
780
1163
|
}
|
|
781
|
-
customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager",
|
|
782
|
-
const
|
|
1164
|
+
customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", Zt);
|
|
1165
|
+
const Es = k({
|
|
783
1166
|
":host": {
|
|
784
1167
|
width: "100%",
|
|
785
1168
|
display: "flex",
|
|
@@ -798,20 +1181,20 @@ const Ot = w({
|
|
|
798
1181
|
margin: "0",
|
|
799
1182
|
padding: "0 var(--gap-small)",
|
|
800
1183
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
801
|
-
borderRadius:
|
|
1184
|
+
borderRadius: f.borderRadius.var
|
|
802
1185
|
}
|
|
803
1186
|
});
|
|
804
|
-
class
|
|
805
|
-
constructor(...
|
|
806
|
-
super(...
|
|
1187
|
+
class Wt extends ge {
|
|
1188
|
+
constructor(...s) {
|
|
1189
|
+
super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Es), g(this, {
|
|
807
1190
|
children: [
|
|
808
|
-
|
|
1191
|
+
Ve({
|
|
809
1192
|
class: "text-input",
|
|
810
1193
|
type: "string",
|
|
811
1194
|
value: this.firstStore,
|
|
812
|
-
onChange: (
|
|
1195
|
+
onChange: (i) => {
|
|
813
1196
|
this.updateStores(
|
|
814
|
-
|
|
1197
|
+
i.currentTarget.value
|
|
815
1198
|
);
|
|
816
1199
|
}
|
|
817
1200
|
})
|
|
@@ -819,21 +1202,21 @@ class lt extends se {
|
|
|
819
1202
|
});
|
|
820
1203
|
}
|
|
821
1204
|
}
|
|
822
|
-
customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager",
|
|
823
|
-
const
|
|
824
|
-
boolean:
|
|
825
|
-
color:
|
|
826
|
-
link:
|
|
827
|
-
number:
|
|
828
|
-
select:
|
|
829
|
-
string:
|
|
830
|
-
},
|
|
1205
|
+
customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", Wt);
|
|
1206
|
+
const xs = {
|
|
1207
|
+
boolean: Vt,
|
|
1208
|
+
color: _t,
|
|
1209
|
+
link: Bt,
|
|
1210
|
+
number: Kt,
|
|
1211
|
+
select: Zt,
|
|
1212
|
+
string: Wt
|
|
1213
|
+
}, Cs = k({
|
|
831
1214
|
":host": {
|
|
832
1215
|
display: "grid",
|
|
833
1216
|
gridAutoFlow: "column",
|
|
834
1217
|
gridTemplateColumns: "0.5fr 1fr",
|
|
835
1218
|
alignItems: "center",
|
|
836
|
-
color:
|
|
1219
|
+
color: f.colorFont.var,
|
|
837
1220
|
gap: "var(--gap-medium)"
|
|
838
1221
|
},
|
|
839
1222
|
":host(.disabled)": {
|
|
@@ -856,7 +1239,7 @@ const Zt = {
|
|
|
856
1239
|
margin: "0",
|
|
857
1240
|
border: "none",
|
|
858
1241
|
background: "none",
|
|
859
|
-
fill:
|
|
1242
|
+
fill: f.colorFont.var,
|
|
860
1243
|
transitionDuration: "var(--duration-short)",
|
|
861
1244
|
transitionProperty: "fill, opacity",
|
|
862
1245
|
opacity: "0"
|
|
@@ -865,65 +1248,65 @@ const Zt = {
|
|
|
865
1248
|
opacity: "1"
|
|
866
1249
|
},
|
|
867
1250
|
".head-button:hover": {
|
|
868
|
-
fill:
|
|
1251
|
+
fill: f.colorActive.var
|
|
869
1252
|
},
|
|
870
1253
|
".head-button svg": {
|
|
871
1254
|
width: "100%",
|
|
872
1255
|
height: "100%"
|
|
873
1256
|
}
|
|
874
1257
|
});
|
|
875
|
-
var
|
|
876
|
-
class
|
|
1258
|
+
var z, ce, de, ue, fe, Me, Ae;
|
|
1259
|
+
class gt extends HTMLElement {
|
|
877
1260
|
constructor(t) {
|
|
878
|
-
var
|
|
1261
|
+
var h, u;
|
|
879
1262
|
super();
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
1263
|
+
o(this, z, []);
|
|
1264
|
+
o(this, ce);
|
|
1265
|
+
o(this, de);
|
|
1266
|
+
o(this, ue, !1);
|
|
1267
|
+
o(this, fe);
|
|
1268
|
+
o(this, Me, () => {
|
|
1269
|
+
j.current.find((t) => e(this, z).includes(t)) || this.remove();
|
|
887
1270
|
});
|
|
888
|
-
|
|
889
|
-
e(this,
|
|
890
|
-
|
|
1271
|
+
o(this, Ae, (t) => {
|
|
1272
|
+
e(this, ue) && ((t.metaKey || t.ctrlKey) && t.code === "KeyC" ? navigator.clipboard.writeText(e(this, z)[0].current) : (t.metaKey || t.ctrlKey) && t.code === "KeyR" && (e(this, z).forEach((i) => {
|
|
1273
|
+
i.reset();
|
|
891
1274
|
}), t.preventDefault()));
|
|
892
1275
|
});
|
|
893
|
-
|
|
894
|
-
const
|
|
895
|
-
|
|
896
|
-
e(this,
|
|
897
|
-
)), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(
|
|
1276
|
+
c(this, z, [t.store]), c(this, ce, t.store.name), c(this, de, e(this, ce).split(".").slice(-1).toString());
|
|
1277
|
+
const i = ((h = t.store.__manager) == null ? void 0 : h.type) || "string";
|
|
1278
|
+
c(this, fe, new xs[i](
|
|
1279
|
+
e(this, z)[0]
|
|
1280
|
+
)), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Cs), g(this, {
|
|
898
1281
|
class: {
|
|
899
|
-
disabled: ((
|
|
1282
|
+
disabled: ((u = t.store.__manager) == null ? void 0 : u.disabled) || !1
|
|
900
1283
|
},
|
|
901
1284
|
onPointerleave: () => {
|
|
902
|
-
|
|
1285
|
+
c(this, ue, !1);
|
|
903
1286
|
},
|
|
904
1287
|
onPointerenter: () => {
|
|
905
|
-
|
|
1288
|
+
c(this, ue, !0);
|
|
906
1289
|
},
|
|
907
1290
|
children: [
|
|
908
|
-
|
|
1291
|
+
w({
|
|
909
1292
|
class: "head",
|
|
910
1293
|
children: [
|
|
911
|
-
|
|
912
|
-
|
|
1294
|
+
w({ class: "name", children: e(this, de) + ":" }),
|
|
1295
|
+
w({
|
|
913
1296
|
class: "head-buttons",
|
|
914
1297
|
children: [
|
|
915
|
-
|
|
1298
|
+
ee({
|
|
916
1299
|
class: "head-button",
|
|
917
|
-
children:
|
|
1300
|
+
children: Ht,
|
|
918
1301
|
onClick: () => {
|
|
919
|
-
navigator.clipboard.writeText(e(this,
|
|
1302
|
+
navigator.clipboard.writeText(e(this, z)[0].current);
|
|
920
1303
|
}
|
|
921
1304
|
}),
|
|
922
|
-
|
|
1305
|
+
ee({
|
|
923
1306
|
class: "head-button",
|
|
924
|
-
children:
|
|
1307
|
+
children: It,
|
|
925
1308
|
onClick: () => {
|
|
926
|
-
e(this,
|
|
1309
|
+
e(this, z).forEach((m) => {
|
|
927
1310
|
m.reset();
|
|
928
1311
|
});
|
|
929
1312
|
}
|
|
@@ -932,36 +1315,36 @@ class Ze extends HTMLElement {
|
|
|
932
1315
|
})
|
|
933
1316
|
]
|
|
934
1317
|
}),
|
|
935
|
-
e(this,
|
|
1318
|
+
e(this, fe)
|
|
936
1319
|
]
|
|
937
1320
|
});
|
|
938
1321
|
}
|
|
939
1322
|
get key() {
|
|
940
|
-
return e(this,
|
|
1323
|
+
return e(this, ce);
|
|
941
1324
|
}
|
|
942
1325
|
get name() {
|
|
943
|
-
return e(this,
|
|
1326
|
+
return e(this, de);
|
|
944
1327
|
}
|
|
945
1328
|
get stores() {
|
|
946
|
-
return e(this,
|
|
1329
|
+
return e(this, z);
|
|
947
1330
|
}
|
|
948
1331
|
addStore(t) {
|
|
949
|
-
e(this,
|
|
1332
|
+
e(this, fe).addStore(t);
|
|
950
1333
|
}
|
|
951
1334
|
connectedCallback() {
|
|
952
|
-
|
|
1335
|
+
j.subscribe(e(this, Me)), addEventListener("keydown", e(this, Ae)), Et(this);
|
|
953
1336
|
}
|
|
954
1337
|
disconnectedCallback() {
|
|
955
|
-
|
|
1338
|
+
j.unsubscribe(e(this, Me)), removeEventListener("keydown", e(this, Ae));
|
|
956
1339
|
}
|
|
957
1340
|
}
|
|
958
|
-
|
|
959
|
-
customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field",
|
|
960
|
-
const
|
|
1341
|
+
z = new WeakMap(), ce = new WeakMap(), de = new WeakMap(), ue = new WeakMap(), fe = new WeakMap(), Me = new WeakMap(), Ae = new WeakMap();
|
|
1342
|
+
customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field", gt);
|
|
1343
|
+
const Ls = k({
|
|
961
1344
|
".wrapper": {
|
|
962
1345
|
boxSizing: "border-box",
|
|
963
1346
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
964
|
-
borderRadius:
|
|
1347
|
+
borderRadius: f.borderRadius.var
|
|
965
1348
|
},
|
|
966
1349
|
".head": {
|
|
967
1350
|
boxSizing: "border-box",
|
|
@@ -972,12 +1355,12 @@ const Bt = w({
|
|
|
972
1355
|
display: "flex",
|
|
973
1356
|
alignItems: "center",
|
|
974
1357
|
justifyContent: "space-between",
|
|
975
|
-
backgroundColor:
|
|
976
|
-
borderRadius:
|
|
1358
|
+
backgroundColor: f.colorMainAux.var,
|
|
1359
|
+
borderRadius: f.borderRadius.var
|
|
977
1360
|
},
|
|
978
1361
|
".name": {
|
|
979
1362
|
fontSize: "var(--font-size-large)",
|
|
980
|
-
color:
|
|
1363
|
+
color: f.colorFont.var
|
|
981
1364
|
},
|
|
982
1365
|
".body": {
|
|
983
1366
|
display: "none",
|
|
@@ -1005,63 +1388,63 @@ const Bt = w({
|
|
|
1005
1388
|
".arrow": {
|
|
1006
1389
|
width: "20px",
|
|
1007
1390
|
height: "20px",
|
|
1008
|
-
fill:
|
|
1391
|
+
fill: f.colorFont.var,
|
|
1009
1392
|
transition: "transform var(--duration-short)"
|
|
1010
1393
|
},
|
|
1011
1394
|
".opened .arrow": {
|
|
1012
1395
|
transform: "scaleY(-1)"
|
|
1013
1396
|
}
|
|
1014
1397
|
});
|
|
1015
|
-
var
|
|
1016
|
-
const
|
|
1398
|
+
var M, Ne, y, Re, Fe, Pe, $e, Ge;
|
|
1399
|
+
const Ue = class Ue extends HTMLElement {
|
|
1017
1400
|
constructor(t) {
|
|
1018
1401
|
super();
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
let
|
|
1028
|
-
t.forEach((
|
|
1029
|
-
|
|
1030
|
-
}), e(this,
|
|
1031
|
-
(
|
|
1032
|
-
), e(this,
|
|
1402
|
+
o(this, M);
|
|
1403
|
+
o(this, Ne, new P(null));
|
|
1404
|
+
o(this, y, new P([]));
|
|
1405
|
+
o(this, Re);
|
|
1406
|
+
o(this, Fe, null);
|
|
1407
|
+
o(this, Pe, null);
|
|
1408
|
+
o(this, $e, null);
|
|
1409
|
+
o(this, Ge, (t) => {
|
|
1410
|
+
let i = [], n = [];
|
|
1411
|
+
t.forEach((h) => {
|
|
1412
|
+
i = [...i, ...h.removedNodes], n = [...n, ...h.addedNodes];
|
|
1413
|
+
}), e(this, y).current = e(this, y).current.filter(
|
|
1414
|
+
(h) => !i.includes(h)
|
|
1415
|
+
), e(this, M) && !e(this, y).current.length && !n.length && this.remove();
|
|
1033
1416
|
});
|
|
1034
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(
|
|
1417
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ls), c(this, M, t.key), c(this, Re, new MutationObserver(e(this, Ge))), g(this, {
|
|
1035
1418
|
children: [
|
|
1036
|
-
|
|
1419
|
+
w({
|
|
1037
1420
|
class: "wrapper",
|
|
1038
1421
|
children: [
|
|
1039
|
-
|
|
1422
|
+
w({
|
|
1040
1423
|
class: "head",
|
|
1041
|
-
onClick: (
|
|
1042
|
-
this.classList.toggle("opened"), this.classList.contains("opened") ?
|
|
1424
|
+
onClick: (n) => {
|
|
1425
|
+
this.classList.toggle("opened"), this.classList.contains("opened") ? x.openPanel(e(this, M)) : x.closePanel(e(this, M));
|
|
1043
1426
|
},
|
|
1044
1427
|
children: [
|
|
1045
|
-
e(this,
|
|
1428
|
+
e(this, M) ? w({
|
|
1046
1429
|
class: "name",
|
|
1047
|
-
children: [e(this,
|
|
1430
|
+
children: [e(this, M).split(".").slice(-1).toString()]
|
|
1048
1431
|
}) : null,
|
|
1049
|
-
e(this,
|
|
1050
|
-
|
|
1432
|
+
e(this, Ne),
|
|
1433
|
+
g(Dt, {
|
|
1051
1434
|
class: "arrow"
|
|
1052
1435
|
})
|
|
1053
1436
|
]
|
|
1054
1437
|
}),
|
|
1055
|
-
|
|
1438
|
+
w({
|
|
1056
1439
|
class: "body",
|
|
1057
|
-
ref: (
|
|
1058
|
-
|
|
1440
|
+
ref: (n) => {
|
|
1441
|
+
c(this, Fe, n);
|
|
1059
1442
|
},
|
|
1060
|
-
children:
|
|
1443
|
+
children: w({
|
|
1061
1444
|
class: "body-content",
|
|
1062
|
-
children: e(this,
|
|
1063
|
-
ref: (
|
|
1064
|
-
|
|
1445
|
+
children: e(this, y),
|
|
1446
|
+
ref: (n) => {
|
|
1447
|
+
c(this, Pe, n), c(this, $e, n.firstElementChild);
|
|
1065
1448
|
}
|
|
1066
1449
|
})
|
|
1067
1450
|
})
|
|
@@ -1071,37 +1454,37 @@ const Me = class Me extends HTMLElement {
|
|
|
1071
1454
|
}), t != null && t.storeBox && this.handleStore(t.storeBox);
|
|
1072
1455
|
}
|
|
1073
1456
|
get key() {
|
|
1074
|
-
return e(this,
|
|
1457
|
+
return e(this, M);
|
|
1075
1458
|
}
|
|
1076
1459
|
get head() {
|
|
1077
|
-
return e(this,
|
|
1460
|
+
return e(this, Ne);
|
|
1078
1461
|
}
|
|
1079
1462
|
get content() {
|
|
1080
|
-
return e(this,
|
|
1463
|
+
return e(this, y);
|
|
1081
1464
|
}
|
|
1082
1465
|
get bodyElement() {
|
|
1083
|
-
return e(this,
|
|
1466
|
+
return e(this, Fe);
|
|
1084
1467
|
}
|
|
1085
1468
|
get contentElement() {
|
|
1086
|
-
return e(this,
|
|
1469
|
+
return e(this, Pe);
|
|
1087
1470
|
}
|
|
1088
1471
|
connectedCallback() {
|
|
1089
|
-
|
|
1472
|
+
x.isPanelOpened(e(this, M)) && this.classList.add("opened"), setTimeout(() => {
|
|
1090
1473
|
this.classList.add("transition-allowed");
|
|
1091
|
-
}), e(this,
|
|
1474
|
+
}), e(this, Re).observe(e(this, $e), {
|
|
1092
1475
|
childList: !0
|
|
1093
1476
|
});
|
|
1094
1477
|
}
|
|
1095
1478
|
handleStore(t) {
|
|
1096
1479
|
if (t.remainingFolders.length) {
|
|
1097
|
-
const
|
|
1098
|
-
|
|
1480
|
+
const n = t.store.name.split("."), h = n.slice(0, n.length - t.remainingFolders.length).join("."), u = e(this, y).current.find((m) => m.key === h);
|
|
1481
|
+
u instanceof Ue ? u.handleStore({
|
|
1099
1482
|
store: t.store,
|
|
1100
1483
|
remainingFolders: t.remainingFolders.slice(1)
|
|
1101
|
-
}) : e(this,
|
|
1102
|
-
...e(this,
|
|
1103
|
-
new
|
|
1104
|
-
key:
|
|
1484
|
+
}) : e(this, y).current = [
|
|
1485
|
+
...e(this, y).current,
|
|
1486
|
+
new Ue({
|
|
1487
|
+
key: h,
|
|
1105
1488
|
storeBox: {
|
|
1106
1489
|
store: t.store,
|
|
1107
1490
|
remainingFolders: t.remainingFolders.slice(1)
|
|
@@ -1109,22 +1492,22 @@ const Me = class Me extends HTMLElement {
|
|
|
1109
1492
|
})
|
|
1110
1493
|
];
|
|
1111
1494
|
} else {
|
|
1112
|
-
const
|
|
1113
|
-
(
|
|
1495
|
+
const i = e(this, y).current.find(
|
|
1496
|
+
(n) => n.key === t.store.name
|
|
1114
1497
|
);
|
|
1115
|
-
|
|
1116
|
-
...e(this,
|
|
1117
|
-
new
|
|
1498
|
+
i instanceof gt ? i.addStore(t.store) : e(this, y).current = [
|
|
1499
|
+
...e(this, y).current,
|
|
1500
|
+
new gt({
|
|
1118
1501
|
store: t.store
|
|
1119
1502
|
})
|
|
1120
1503
|
];
|
|
1121
1504
|
}
|
|
1122
1505
|
}
|
|
1123
1506
|
};
|
|
1124
|
-
|
|
1125
|
-
let
|
|
1126
|
-
customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder",
|
|
1127
|
-
const
|
|
1507
|
+
M = new WeakMap(), Ne = new WeakMap(), y = new WeakMap(), Re = new WeakMap(), Fe = new WeakMap(), Pe = new WeakMap(), $e = new WeakMap(), Ge = new WeakMap();
|
|
1508
|
+
let Ze = Ue;
|
|
1509
|
+
customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder", Ze);
|
|
1510
|
+
const Ts = k({
|
|
1128
1511
|
":host": {
|
|
1129
1512
|
"--tweaker-width": "550px",
|
|
1130
1513
|
"--tweaker-offset": "20px",
|
|
@@ -1143,8 +1526,8 @@ const jt = w({
|
|
|
1143
1526
|
top: "var(--tweaker-offset)",
|
|
1144
1527
|
right: "var(--tweaker-offset)",
|
|
1145
1528
|
width: "var(--tweaker-width)",
|
|
1146
|
-
backgroundColor:
|
|
1147
|
-
borderRadius:
|
|
1529
|
+
backgroundColor: f.colorMain.var,
|
|
1530
|
+
borderRadius: f.borderRadius.var,
|
|
1148
1531
|
transition: "opacity 0.1s",
|
|
1149
1532
|
zIndex: "100",
|
|
1150
1533
|
opacity: "0.1"
|
|
@@ -1173,12 +1556,12 @@ const jt = w({
|
|
|
1173
1556
|
margin: "0",
|
|
1174
1557
|
background: "none",
|
|
1175
1558
|
border: "none",
|
|
1176
|
-
fill:
|
|
1559
|
+
fill: f.colorFont.var,
|
|
1177
1560
|
transitionProperty: "fill",
|
|
1178
1561
|
transitionDuration: "var(--duration-short)"
|
|
1179
1562
|
},
|
|
1180
1563
|
".tweaker-button:hover": {
|
|
1181
|
-
fill:
|
|
1564
|
+
fill: f.colorActive.var
|
|
1182
1565
|
},
|
|
1183
1566
|
".tweaker-button svg": {
|
|
1184
1567
|
width: "100%",
|
|
@@ -1199,7 +1582,7 @@ const jt = w({
|
|
|
1199
1582
|
":host .body-content::-webkit-scrollbar": {
|
|
1200
1583
|
display: "none"
|
|
1201
1584
|
},
|
|
1202
|
-
[`@media ${
|
|
1585
|
+
[`@media ${ts["<=mobile"]}`]: {
|
|
1203
1586
|
":host": {
|
|
1204
1587
|
position: "absolute",
|
|
1205
1588
|
top: "0",
|
|
@@ -1216,80 +1599,80 @@ const jt = w({
|
|
|
1216
1599
|
}
|
|
1217
1600
|
}
|
|
1218
1601
|
});
|
|
1219
|
-
var
|
|
1220
|
-
class
|
|
1602
|
+
var Ie, He, De;
|
|
1603
|
+
class qt extends Ze {
|
|
1221
1604
|
constructor() {
|
|
1222
1605
|
super({
|
|
1223
1606
|
key: ""
|
|
1224
1607
|
});
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1608
|
+
o(this, Ie, !1);
|
|
1609
|
+
o(this, He, () => {
|
|
1610
|
+
x.save();
|
|
1228
1611
|
});
|
|
1229
|
-
|
|
1230
|
-
|
|
1612
|
+
o(this, De, Qt(() => {
|
|
1613
|
+
j.current.forEach((t) => {
|
|
1231
1614
|
if (t.name) {
|
|
1232
|
-
const
|
|
1615
|
+
const i = t.name.split(".");
|
|
1233
1616
|
this.handleStore({
|
|
1234
1617
|
store: t,
|
|
1235
|
-
remainingFolders:
|
|
1618
|
+
remainingFolders: i.length > 1 ? i.slice(0, -1) : []
|
|
1236
1619
|
});
|
|
1237
1620
|
}
|
|
1238
|
-
}), e(this,
|
|
1239
|
-
top:
|
|
1621
|
+
}), e(this, Ie) || (c(this, Ie, !0), this.contentElement.scroll({
|
|
1622
|
+
top: x.scrollValue
|
|
1240
1623
|
}), this.contentElement.addEventListener("scroll", () => {
|
|
1241
|
-
|
|
1624
|
+
x.scrollValue = this.contentElement.scrollTop;
|
|
1242
1625
|
}));
|
|
1243
1626
|
}, 10));
|
|
1244
|
-
|
|
1245
|
-
|
|
1627
|
+
x.load(), this.shadowRoot.adoptedStyleSheets.push(Ts), this.head.current = [
|
|
1628
|
+
w({
|
|
1246
1629
|
class: "tweaker-buttons",
|
|
1247
1630
|
onClick: (t) => {
|
|
1248
1631
|
t.stopPropagation();
|
|
1249
1632
|
},
|
|
1250
1633
|
children: [
|
|
1251
|
-
|
|
1634
|
+
ee({
|
|
1252
1635
|
class: "tweaker-button",
|
|
1253
|
-
children:
|
|
1636
|
+
children: It,
|
|
1254
1637
|
onClick: () => {
|
|
1255
|
-
|
|
1638
|
+
B.resetState();
|
|
1256
1639
|
}
|
|
1257
1640
|
}),
|
|
1258
|
-
|
|
1641
|
+
ee({
|
|
1259
1642
|
class: ["tweaker-button"],
|
|
1260
|
-
children: [
|
|
1643
|
+
children: [Ht],
|
|
1261
1644
|
onClick: () => {
|
|
1262
1645
|
navigator.clipboard.writeText(
|
|
1263
|
-
JSON.stringify(
|
|
1646
|
+
JSON.stringify(B.getState())
|
|
1264
1647
|
);
|
|
1265
1648
|
}
|
|
1266
1649
|
}),
|
|
1267
|
-
|
|
1650
|
+
ee({
|
|
1268
1651
|
class: "tweaker-button",
|
|
1269
|
-
children:
|
|
1652
|
+
children: ls,
|
|
1270
1653
|
onClick: () => {
|
|
1271
|
-
|
|
1654
|
+
Xt(B.name, B.getState());
|
|
1272
1655
|
}
|
|
1273
1656
|
}),
|
|
1274
|
-
|
|
1657
|
+
Pt({
|
|
1275
1658
|
class: "tweaker-button",
|
|
1276
1659
|
children: [
|
|
1277
|
-
|
|
1278
|
-
|
|
1660
|
+
hs,
|
|
1661
|
+
Ve({
|
|
1279
1662
|
type: "file",
|
|
1280
1663
|
style: {
|
|
1281
1664
|
display: "none"
|
|
1282
1665
|
},
|
|
1283
1666
|
onChange: (t) => {
|
|
1284
|
-
var
|
|
1285
|
-
const
|
|
1286
|
-
if (
|
|
1287
|
-
const
|
|
1288
|
-
|
|
1289
|
-
var
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1292
|
-
},
|
|
1667
|
+
var h;
|
|
1668
|
+
const n = (h = t.currentTarget.files) == null ? void 0 : h[0];
|
|
1669
|
+
if (n) {
|
|
1670
|
+
const u = new FileReader();
|
|
1671
|
+
u.onload = (m) => {
|
|
1672
|
+
var C, b;
|
|
1673
|
+
const S = (b = (C = m.target) == null ? void 0 : C.result) == null ? void 0 : b.toString();
|
|
1674
|
+
S && B.loadState(S);
|
|
1675
|
+
}, u.readAsText(n);
|
|
1293
1676
|
}
|
|
1294
1677
|
}
|
|
1295
1678
|
})
|
|
@@ -1297,41 +1680,41 @@ class ht extends Te {
|
|
|
1297
1680
|
})
|
|
1298
1681
|
]
|
|
1299
1682
|
})
|
|
1300
|
-
],
|
|
1683
|
+
], g(this.bodyElement, {
|
|
1301
1684
|
children: [
|
|
1302
|
-
|
|
1685
|
+
w({
|
|
1303
1686
|
class: "resize",
|
|
1304
1687
|
onPointerdown: (t) => {
|
|
1305
1688
|
t.preventDefault();
|
|
1306
|
-
const
|
|
1307
|
-
|
|
1308
|
-
(
|
|
1309
|
-
const
|
|
1310
|
-
this.style.width = m + "px",
|
|
1689
|
+
const i = this.getBoundingClientRect(), n = this.contentElement.scrollTop;
|
|
1690
|
+
xt(
|
|
1691
|
+
(h) => {
|
|
1692
|
+
const u = t.x - h.x, m = Math.max(400, i.width + u);
|
|
1693
|
+
this.style.width = m + "px", x.changeSize("tweaker", m);
|
|
1311
1694
|
},
|
|
1312
1695
|
() => {
|
|
1313
1696
|
setTimeout(() => {
|
|
1314
1697
|
this.contentElement.scroll({
|
|
1315
|
-
top:
|
|
1698
|
+
top: n
|
|
1316
1699
|
});
|
|
1317
1700
|
}, 10);
|
|
1318
1701
|
}
|
|
1319
1702
|
);
|
|
1320
1703
|
},
|
|
1321
1704
|
onDblclick: () => {
|
|
1322
|
-
this.style.width = "",
|
|
1705
|
+
this.style.width = "", x.changeSize("tweaker", null);
|
|
1323
1706
|
}
|
|
1324
1707
|
})
|
|
1325
1708
|
]
|
|
1326
1709
|
});
|
|
1327
1710
|
}
|
|
1328
1711
|
connectedCallback() {
|
|
1329
|
-
super.connectedCallback(), window.addEventListener("beforeunload", e(this,
|
|
1712
|
+
super.connectedCallback(), window.addEventListener("beforeunload", e(this, He)), j.subscribe(e(this, De)), x.changedSizes("tweaker") && (this.style.width = x.changedSizes("tweaker") + "px");
|
|
1330
1713
|
}
|
|
1331
1714
|
disconnectedCallback() {
|
|
1332
|
-
window.removeEventListener("beforeunload", e(this,
|
|
1715
|
+
window.removeEventListener("beforeunload", e(this, He)), x.save(), j.unsubscribe(e(this, De));
|
|
1333
1716
|
}
|
|
1334
1717
|
}
|
|
1335
|
-
|
|
1336
|
-
customElements.get("e-tweaker") || customElements.define("e-tweaker",
|
|
1337
|
-
|
|
1718
|
+
Ie = new WeakMap(), He = new WeakMap(), De = new WeakMap();
|
|
1719
|
+
customElements.get("e-tweaker") || customElements.define("e-tweaker", qt);
|
|
1720
|
+
X && document.body.appendChild(new qt());
|