aptechka 0.63.3 → 0.64.2
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-BRqj4VfN.cjs +1 -0
- package/lib/{Animation-Cb-klopb.js → Animation-D29tc5VS.js} +5 -4
- package/lib/Damped-BD1OQ1fH.cjs +1 -0
- package/lib/{Damped-ByZFbNSt.js → Damped-YrqW5V4w.js} +5 -4
- package/lib/DragControls-D8BXtKVu.cjs +1 -0
- package/lib/DragControls-DGDUw6bM.js +226 -0
- package/lib/ScrollSegmentElement-B6gp1q_z.js +459 -0
- package/lib/ScrollSegmentElement-DtMMAirz.cjs +1 -0
- package/lib/SourceElement-D_YeNqsI.cjs +5 -0
- package/lib/SourceElement-jbviggZp.js +217 -0
- package/lib/{Store-swP_0ymB.js → Store-0BVty6AZ.js} +2 -1
- package/lib/Store-Cd1GlEmZ.cjs +1 -0
- package/lib/Tweened-B-AHx93m.cjs +1 -0
- package/lib/{Tweened-C4xgzPkR.js → Tweened-_pF0zXXN.js} +10 -9
- package/lib/Viewport-DA10iWAO.js +109 -0
- package/lib/Viewport-DB0qAZPJ.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +2 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +5 -4
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.js +2 -1
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +5 -5
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +6 -223
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +15 -14
- package/lib/custom-scrollbar/index.cjs +1 -1
- package/lib/custom-scrollbar/index.js +25 -24
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +7 -6
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +5 -106
- package/lib/{easings-Bni3YAAW.js → easings-BEmRlrDd.js} +15 -15
- package/lib/element-CGVl1jA-.js +7 -0
- package/lib/element-linked-store/index.cjs +1 -1
- package/lib/element-linked-store/index.js +5 -4
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +22 -21
- package/lib/element-yhcBhsho.cjs +1 -0
- package/lib/en3/En3View.d.ts +2 -2
- package/lib/en3/en3.d.ts +3 -2
- package/lib/en3/index.cjs +3 -3
- package/lib/en3/index.js +90 -89
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +4 -3
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +5 -4
- package/lib/{index-euf5anj6.js → index-Bv9zgfdb.js} +3 -2
- package/lib/index-DekP7OZe.cjs +1 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +4 -3
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +41 -40
- package/lib/{layout-DpZo-I0y.js → layout-BSMtwCga.js} +2 -2
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +18 -17
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +4 -3
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +2 -2
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +12 -11
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +3 -2
- package/lib/need_redo_tweaker/index.cjs +3 -3
- package/lib/need_redo_tweaker/index.js +368 -340
- package/lib/pixel-perfect/index.cjs +1 -1
- package/lib/pixel-perfect/index.js +2 -2
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +19 -18
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +3 -2
- package/lib/radio/index.cjs +1 -1
- package/lib/radio/index.js +2 -1
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +11 -10
- package/lib/scroll/ScrollElement.d.ts +1 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +448 -437
- package/lib/{scroll-Benkuq-t.js → scroll-BWF48oHS.js} +11 -10
- package/lib/scroll-CFDCeArT.cjs +1 -0
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.js +3 -456
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +4 -3
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +2 -1
- package/lib/slicer/index.cjs +3 -3
- package/lib/slicer/index.js +31 -30
- package/lib/source/SourceElement.d.ts +1 -1
- package/lib/source/index.cjs +1 -5
- package/lib/source/index.js +5 -214
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +14 -13
- package/lib/stylesheet-DpnWNVyD.js +24 -0
- package/lib/stylesheet-HWF2a3nr.cjs +1 -0
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +14 -13
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +124 -127
- package/lib/utils/jss.d.ts +0 -1
- package/lib/utils/stylesheet.d.ts +2 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +11 -10
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +9 -8
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +12 -11
- package/package.json +4 -4
- package/lib/Animation-dD_idtTU.cjs +0 -1
- package/lib/Damped-B8bmTxAr.cjs +0 -1
- package/lib/Store-GokLe_g-.cjs +0 -1
- package/lib/Tweened-BsL9FamJ.cjs +0 -1
- package/lib/index-Cqw2NKev.cjs +0 -1
- package/lib/jss-CRBgdvJ3.cjs +0 -1
- package/lib/jss-DtnXPEnq.js +0 -23
- package/lib/scroll-DAhSpkhR.cjs +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
var vt = (r) => {
|
|
2
2
|
throw TypeError(r);
|
|
3
3
|
};
|
|
4
|
-
var Xe = (r, s,
|
|
5
|
-
var
|
|
6
|
-
import { i as p } from "../index-
|
|
7
|
-
import
|
|
4
|
+
var Xe = (r, s, e) => s.has(r) || vt("Cannot " + e);
|
|
5
|
+
var t = (r, s, e) => (Xe(r, s, "read from private field"), e ? e.call(r) : s.get(r)), o = (r, s, e) => s.has(r) ? vt("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, e), c = (r, s, e, i) => (Xe(r, s, "write to private field"), i ? i.call(r, e) : s.set(r, e), e), l = (r, s, e) => (Xe(r, s, "access private method"), e);
|
|
6
|
+
import { i as p } from "../index-Bv9zgfdb.js";
|
|
7
|
+
import "construct-style-sheets-polyfill";
|
|
8
|
+
import { S as $, s as K, a as j } from "../Store-0BVty6AZ.js";
|
|
8
9
|
import { c as Ut } from "../file-GHShUlue.js";
|
|
9
10
|
import { d as Xt } from "../function-C10DGppn.js";
|
|
10
11
|
import { s as Et } from "../gestures-CcXV6fCp.js";
|
|
@@ -12,7 +13,7 @@ import "../ticker/index.js";
|
|
|
12
13
|
import { c as Oe, u as Qt } from "../string-BlMQbe8b.js";
|
|
13
14
|
import { i as yt } from "../object-D6MVWB4l.js";
|
|
14
15
|
import { connector as jt } from "../connector/index.js";
|
|
15
|
-
import {
|
|
16
|
+
import { a as es } from "../Viewport-DA10iWAO.js";
|
|
16
17
|
import { c as ts } from "../math-BOBiC4TN.js";
|
|
17
18
|
import { t as ss } from "../number-CbdpfO3u.js";
|
|
18
19
|
import { n as St } from "../polyfills-DJrTJQky.js";
|
|
@@ -83,42 +84,42 @@ const ns = /* @__PURE__ */ new Set([
|
|
|
83
84
|
"view",
|
|
84
85
|
"use"
|
|
85
86
|
]);
|
|
86
|
-
var d, I, y,
|
|
87
|
+
var d, I, y, we, H, D, a, xt, Ct, Lt, Qe, je, Tt, zt, Mt, At, et, tt, Nt, st, it, Rt, nt, Be, ot, rt, at, We, qe;
|
|
87
88
|
const Je = class Je {
|
|
88
89
|
constructor(...s) {
|
|
89
90
|
o(this, a);
|
|
90
91
|
o(this, d, null);
|
|
91
92
|
o(this, I, /* @__PURE__ */ new Set());
|
|
92
93
|
o(this, y, /* @__PURE__ */ new Set());
|
|
93
|
-
o(this,
|
|
94
|
+
o(this, we);
|
|
94
95
|
o(this, H);
|
|
95
96
|
o(this, D);
|
|
96
97
|
o(this, We, (s) => {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}),
|
|
98
|
+
t(this, I).forEach((e) => {
|
|
99
|
+
e(s);
|
|
100
|
+
}), t(this, I).clear();
|
|
100
101
|
});
|
|
101
|
-
o(this, qe, (s,
|
|
102
|
-
|
|
103
|
-
i(s,
|
|
104
|
-
}),
|
|
102
|
+
o(this, qe, (s, e) => {
|
|
103
|
+
t(this, y).forEach((i) => {
|
|
104
|
+
i(s, e);
|
|
105
|
+
}), t(this, y).clear(), l(this, a, it).call(this);
|
|
105
106
|
});
|
|
106
107
|
if (p) {
|
|
107
|
-
const
|
|
108
|
-
c(this, d, l(this, a, xt).call(this,
|
|
108
|
+
const e = s[0], i = s[1];
|
|
109
|
+
c(this, d, l(this, a, xt).call(this, e, i == null ? void 0 : i.forceSvg)), l(this, a, Lt).call(this, i);
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
get node() {
|
|
112
|
-
return
|
|
113
|
+
return t(this, d);
|
|
113
114
|
}
|
|
114
115
|
set node(s) {
|
|
115
|
-
var
|
|
116
|
-
l(this, a, it).call(this), c(this, d, s), (
|
|
117
|
-
...
|
|
116
|
+
var e;
|
|
117
|
+
l(this, a, it).call(this), c(this, d, s), (e = t(this, we)) == null || e.call(this), t(this, d) instanceof Element && c(this, H, [
|
|
118
|
+
...t(this, d).querySelectorAll("store-root")
|
|
118
119
|
]), l(this, a, st).call(this), l(this, a, Qe).call(this);
|
|
119
120
|
}
|
|
120
121
|
};
|
|
121
|
-
d = new WeakMap(), I = new WeakMap(), y = new WeakMap(),
|
|
122
|
+
d = new WeakMap(), I = new WeakMap(), y = new WeakMap(), we = new WeakMap(), H = new WeakMap(), D = new WeakMap(), a = new WeakSet(), xt = function(s, e) {
|
|
122
123
|
let i = null;
|
|
123
124
|
if (s instanceof Node)
|
|
124
125
|
i = s;
|
|
@@ -128,7 +129,7 @@ d = new WeakMap(), I = new WeakMap(), y = new WeakMap(), be = new WeakMap(), H =
|
|
|
128
129
|
else if (s.includes("<")) {
|
|
129
130
|
const n = document.createElement("div");
|
|
130
131
|
n.innerHTML = s, i = n.firstElementChild;
|
|
131
|
-
} else ns.has(s) ||
|
|
132
|
+
} else ns.has(s) || e ? i = document.createElementNS(
|
|
132
133
|
"http://www.w3.org/2000/svg",
|
|
133
134
|
s
|
|
134
135
|
) : i = document.createElement(s);
|
|
@@ -139,28 +140,28 @@ d = new WeakMap(), I = new WeakMap(), y = new WeakMap(), be = new WeakMap(), H =
|
|
|
139
140
|
return s instanceof HTMLElement || s instanceof SVGElement;
|
|
140
141
|
}, Lt = function(s) {
|
|
141
142
|
if (!s) return;
|
|
142
|
-
const
|
|
143
|
-
delete s.ref, s != null && s.onConnect && (
|
|
143
|
+
const e = l(this, a, Ct).call(this, t(this, d)), i = s.ref;
|
|
144
|
+
delete s.ref, s != null && s.onConnect && (t(this, I).add(s.onConnect), delete s.onConnect), s != null && s.onDisconnect && (t(this, y).add(s.onDisconnect), delete s.onDisconnect);
|
|
144
145
|
let n, h;
|
|
145
146
|
for (const u in s) {
|
|
146
147
|
const m = s[u];
|
|
147
|
-
u === "class" &&
|
|
148
|
+
u === "class" && e ? l(this, a, je).call(this, m) : u === "style" && e ? l(this, a, Mt).call(this, m) : u === "lightChildren" ? l(this, a, Be).call(this, t(this, d), m) : u === "children" ? l(this, a, Be).call(this, t(this, d) instanceof Element ? t(this, d).shadowRoot || t(this, d) : t(this, d), m) : u === "connectedClass" ? t(this, I).add(() => {
|
|
148
149
|
requestAnimationFrame(() => {
|
|
149
|
-
|
|
150
|
+
t(this, d).classList.add(
|
|
150
151
|
typeof m == "boolean" ? "connected" : m
|
|
151
152
|
);
|
|
152
153
|
});
|
|
153
154
|
}) : u.startsWith("on") ? (h || (h = {}), h[u] = m) : (n || (n = {}), n[u] = m);
|
|
154
155
|
}
|
|
155
|
-
l(this, a, Rt).call(this, n), l(this, a, Nt).call(this, h), i && (typeof i == "function" ? i(
|
|
156
|
+
l(this, a, Rt).call(this, n), l(this, a, Nt).call(this, h), i && (typeof i == "function" ? i(t(this, d)) : i.current = t(this, d)), l(this, a, Qe).call(this);
|
|
156
157
|
}, Qe = function() {
|
|
157
|
-
if (p && (
|
|
158
|
-
const s =
|
|
159
|
-
c(this,
|
|
158
|
+
if (p && (t(this, y).size || t(this, I).size)) {
|
|
159
|
+
const s = t(this, d) instanceof DocumentFragment ? t(this, d).firstChild : t(this, d);
|
|
160
|
+
c(this, we, jt.subscribe(
|
|
160
161
|
s,
|
|
161
162
|
{
|
|
162
|
-
connectCallback:
|
|
163
|
-
disconnectCallback:
|
|
163
|
+
connectCallback: t(this, We),
|
|
164
|
+
disconnectCallback: t(this, qe),
|
|
164
165
|
unsubscribeAfterDisconnect: !0,
|
|
165
166
|
maxWaitSec: 20
|
|
166
167
|
}
|
|
@@ -169,82 +170,82 @@ d = new WeakMap(), I = new WeakMap(), y = new WeakMap(), be = new WeakMap(), H =
|
|
|
169
170
|
}, je = function(s) {
|
|
170
171
|
if (s) {
|
|
171
172
|
if (typeof s == "string")
|
|
172
|
-
|
|
173
|
+
t(this, d).classList.add(s);
|
|
173
174
|
else if (Array.isArray(s))
|
|
174
|
-
s.forEach((
|
|
175
|
-
|
|
175
|
+
s.forEach((e) => {
|
|
176
|
+
e && l(this, a, je).call(this, e);
|
|
176
177
|
});
|
|
177
178
|
else if (typeof s == "object")
|
|
178
179
|
if (s instanceof $)
|
|
179
180
|
l(this, a, Tt).call(this, s);
|
|
180
181
|
else
|
|
181
|
-
for (const
|
|
182
|
-
const i = s[
|
|
183
|
-
i instanceof $ ? l(this, a, zt).call(this,
|
|
182
|
+
for (const e in s) {
|
|
183
|
+
const i = s[e];
|
|
184
|
+
i instanceof $ ? l(this, a, zt).call(this, e, i) : i ? t(this, d).classList.add(e) : t(this, d).classList.remove(e);
|
|
184
185
|
}
|
|
185
186
|
} else return;
|
|
186
187
|
}, Tt = function(s) {
|
|
187
|
-
|
|
188
|
-
s.subscribe(({ current:
|
|
188
|
+
t(this, y).add(
|
|
189
|
+
s.subscribe(({ current: e, previous: i }) => {
|
|
189
190
|
i && [i].flat().forEach((n) => {
|
|
190
|
-
n &&
|
|
191
|
-
}),
|
|
192
|
-
n &&
|
|
191
|
+
n && t(this, d).classList.remove(n);
|
|
192
|
+
}), e && [e].flat().forEach((n) => {
|
|
193
|
+
n && t(this, d).classList.add(n);
|
|
193
194
|
});
|
|
194
195
|
})
|
|
195
196
|
);
|
|
196
|
-
}, zt = function(s,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
i ?
|
|
197
|
+
}, zt = function(s, e) {
|
|
198
|
+
t(this, y).add(
|
|
199
|
+
e.subscribe(({ current: i }) => {
|
|
200
|
+
i ? t(this, d).classList.add(s) : t(this, d).classList.remove(s);
|
|
200
201
|
})
|
|
201
202
|
);
|
|
202
203
|
}, Mt = function(s) {
|
|
203
204
|
if (!s)
|
|
204
205
|
return;
|
|
205
|
-
|
|
206
|
+
t(this, d).tagName === "style" || t(this, d).tagName === "STYLE" ? l(this, a, et).call(this, s) : l(this, a, At).call(this, s);
|
|
206
207
|
}, At = function(s) {
|
|
207
|
-
for (const
|
|
208
|
-
const i =
|
|
209
|
-
n instanceof $ ?
|
|
208
|
+
for (const e in s) {
|
|
209
|
+
const i = e, n = s[i];
|
|
210
|
+
n instanceof $ ? t(this, y).add(
|
|
210
211
|
n.subscribe(({ current: h }) => {
|
|
211
212
|
l(this, a, tt).call(this, i, h);
|
|
212
213
|
})
|
|
213
214
|
) : l(this, a, tt).call(this, i, n);
|
|
214
215
|
}
|
|
215
216
|
}, et = function(s) {
|
|
216
|
-
for (const
|
|
217
|
-
const i = s[
|
|
217
|
+
for (const e in s) {
|
|
218
|
+
const i = s[e];
|
|
218
219
|
if (typeof i == "object" && !(i instanceof $))
|
|
219
|
-
|
|
220
|
-
document.createTextNode(`${
|
|
221
|
-
), l(this, a, et).call(this, i),
|
|
220
|
+
t(this, d).appendChild(
|
|
221
|
+
document.createTextNode(`${e} {`)
|
|
222
|
+
), l(this, a, et).call(this, i), t(this, d).appendChild(document.createTextNode("}"));
|
|
222
223
|
else if (i instanceof $) {
|
|
223
224
|
const n = document.createTextNode("");
|
|
224
|
-
|
|
225
|
+
t(this, y).add(
|
|
225
226
|
i.subscribe((h) => {
|
|
226
|
-
h.current ? n.nodeValue = `${Oe(
|
|
227
|
+
h.current ? n.nodeValue = `${Oe(e)}: ${h.current};` : n.nodeValue = "";
|
|
227
228
|
})
|
|
228
|
-
),
|
|
229
|
+
), t(this, d).appendChild(n);
|
|
229
230
|
} else
|
|
230
|
-
|
|
231
|
-
document.createTextNode(`${Oe(
|
|
231
|
+
t(this, d).appendChild(
|
|
232
|
+
document.createTextNode(`${Oe(e)}: ${i};`)
|
|
232
233
|
);
|
|
233
234
|
}
|
|
234
|
-
}, tt = function(s,
|
|
235
|
-
s.includes("--") ?
|
|
235
|
+
}, tt = function(s, e) {
|
|
236
|
+
s.includes("--") ? e ? t(this, d).style.setProperty(s, e.toString()) : t(this, d).style.removeProperty(s) : e ? t(this, d).style[s] = e.toString() : t(this, d).style[s] = "";
|
|
236
237
|
}, Nt = function(s) {
|
|
237
238
|
if (s) {
|
|
238
|
-
|
|
239
|
-
for (const
|
|
240
|
-
const i =
|
|
239
|
+
t(this, D) || c(this, D, []);
|
|
240
|
+
for (const e in s) {
|
|
241
|
+
const i = e, n = Qt(
|
|
241
242
|
i.split("on").slice(1).join("on")
|
|
242
243
|
), h = s[i];
|
|
243
|
-
typeof h == "object" ?
|
|
244
|
+
typeof h == "object" ? t(this, D).push({
|
|
244
245
|
name: n,
|
|
245
246
|
callback: h.callback,
|
|
246
247
|
options: h.options
|
|
247
|
-
}) : typeof h == "function" &&
|
|
248
|
+
}) : typeof h == "function" && t(this, D).push({
|
|
248
249
|
name: n,
|
|
249
250
|
callback: h
|
|
250
251
|
});
|
|
@@ -253,49 +254,49 @@ d = new WeakMap(), I = new WeakMap(), y = new WeakMap(), be = new WeakMap(), H =
|
|
|
253
254
|
}
|
|
254
255
|
}, st = function() {
|
|
255
256
|
var s;
|
|
256
|
-
(s =
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
257
|
+
(s = t(this, D)) == null || s.forEach((e) => {
|
|
258
|
+
t(this, d).addEventListener(
|
|
259
|
+
e.name,
|
|
260
|
+
e.callback,
|
|
261
|
+
e.options
|
|
261
262
|
);
|
|
262
263
|
});
|
|
263
264
|
}, it = function() {
|
|
264
265
|
var s;
|
|
265
|
-
(s =
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
266
|
+
(s = t(this, D)) == null || s.forEach((e) => {
|
|
267
|
+
t(this, d).removeEventListener(
|
|
268
|
+
e.name,
|
|
269
|
+
e.callback,
|
|
270
|
+
e.options
|
|
270
271
|
);
|
|
271
272
|
});
|
|
272
273
|
}, Rt = function(s) {
|
|
273
|
-
for (const
|
|
274
|
-
const i = s[
|
|
275
|
-
i instanceof $ ?
|
|
274
|
+
for (const e in s) {
|
|
275
|
+
const i = s[e];
|
|
276
|
+
i instanceof $ ? t(this, y).add(
|
|
276
277
|
i.subscribe(({ current: n }) => {
|
|
277
|
-
l(this, a, nt).call(this,
|
|
278
|
+
l(this, a, nt).call(this, e, n);
|
|
278
279
|
})
|
|
279
|
-
) : l(this, a, nt).call(this,
|
|
280
|
+
) : l(this, a, nt).call(this, e, i);
|
|
280
281
|
}
|
|
281
|
-
}, nt = function(s,
|
|
282
|
+
}, nt = function(s, e) {
|
|
282
283
|
var n, h;
|
|
283
|
-
const i =
|
|
284
|
+
const i = t(this, d);
|
|
284
285
|
if (s in i && !((h = (n = i.constructor) == null ? void 0 : n.observedAttributes) != null && h.includes(s)))
|
|
285
|
-
|
|
286
|
-
else if (
|
|
287
|
-
const u =
|
|
286
|
+
e != null && (i[s] = e.toString());
|
|
287
|
+
else if (e != null) {
|
|
288
|
+
const u = e.toString();
|
|
288
289
|
s.includes("xlink") ? i.setAttributeNS("http://www.w3.org/1999/xlink", s, u) : i.setAttribute(s, u);
|
|
289
290
|
}
|
|
290
|
-
}, Be = function(s,
|
|
291
|
-
|
|
291
|
+
}, Be = function(s, e) {
|
|
292
|
+
e && (e = [e].flat(), e.forEach((i) => {
|
|
292
293
|
if (i instanceof $) {
|
|
293
294
|
const n = document.createElement("div");
|
|
294
|
-
n.style.display = "contents", s.appendChild(n),
|
|
295
|
-
const h =
|
|
296
|
-
n.setAttribute("store-root", ""),
|
|
295
|
+
n.style.display = "contents", s.appendChild(n), t(this, H) || c(this, H, []);
|
|
296
|
+
const h = t(this, H).length;
|
|
297
|
+
n.setAttribute("store-root", ""), t(this, H).push(n), t(this, y).add(
|
|
297
298
|
i.subscribe(({ current: u, previous: m }) => {
|
|
298
|
-
const k =
|
|
299
|
+
const k = t(this, H)[h];
|
|
299
300
|
k.dispatchEvent(
|
|
300
301
|
new CustomEvent("beforeChildrenChange", {
|
|
301
302
|
bubbles: !0,
|
|
@@ -334,24 +335,24 @@ d = new WeakMap(), I = new WeakMap(), y = new WeakMap(), be = new WeakMap(), H =
|
|
|
334
335
|
n instanceof Node && l(this, a, ot).call(this, s, n);
|
|
335
336
|
}
|
|
336
337
|
}));
|
|
337
|
-
}, ot = function(s,
|
|
338
|
-
!(s instanceof ShadowRoot) &&
|
|
339
|
-
[...document.head.querySelectorAll("style")].find((n) => n.outerHTML ===
|
|
340
|
-
}),
|
|
341
|
-
|
|
342
|
-
})) : s.appendChild(
|
|
338
|
+
}, ot = function(s, e) {
|
|
339
|
+
!(s instanceof ShadowRoot) && e instanceof HTMLElement && e.tagName === "STYLE" ? (t(this, I).add(() => {
|
|
340
|
+
[...document.head.querySelectorAll("style")].find((n) => n.outerHTML === e.outerHTML) || document.head.appendChild(e);
|
|
341
|
+
}), t(this, y).add(() => {
|
|
342
|
+
e.remove();
|
|
343
|
+
})) : s.appendChild(e);
|
|
343
344
|
}, rt = function(s) {
|
|
344
345
|
return s instanceof Je ? s.node : typeof s == "function" ? yt(s) ? new s() : s() : l(this, a, at).call(this, s);
|
|
345
346
|
}, at = function(s) {
|
|
346
347
|
if (s instanceof Node)
|
|
347
348
|
return s;
|
|
348
349
|
if (s != null) {
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
350
|
+
const e = String(s);
|
|
351
|
+
if (e.trim().startsWith("<") && e.trim().endsWith(">")) {
|
|
351
352
|
const i = document.createElement("div");
|
|
352
|
-
return i.innerHTML =
|
|
353
|
+
return i.innerHTML = e, i.firstElementChild;
|
|
353
354
|
} else
|
|
354
|
-
return document.createTextNode(
|
|
355
|
+
return document.createTextNode(e);
|
|
355
356
|
} else
|
|
356
357
|
return;
|
|
357
358
|
}, We = new WeakMap(), qe = new WeakMap();
|
|
@@ -365,7 +366,7 @@ function os(r) {
|
|
|
365
366
|
function ee(r) {
|
|
366
367
|
return new N("button", r);
|
|
367
368
|
}
|
|
368
|
-
function
|
|
369
|
+
function w(r) {
|
|
369
370
|
return new N("div", r);
|
|
370
371
|
}
|
|
371
372
|
function Ve(r) {
|
|
@@ -390,14 +391,14 @@ function E(r) {
|
|
|
390
391
|
return s.replaceSync(Pt(r).node.innerHTML), s;
|
|
391
392
|
}
|
|
392
393
|
function rs(r, s) {
|
|
393
|
-
const
|
|
394
|
+
const e = s == null ? void 0 : s.prefix, i = {
|
|
394
395
|
style: {}
|
|
395
396
|
};
|
|
396
397
|
for (const n in r)
|
|
397
398
|
i[n] = {
|
|
398
|
-
var: `var(--${
|
|
399
|
+
var: `var(--${e}${Oe(n)})`,
|
|
399
400
|
value: r[n]
|
|
400
|
-
}, i.style[`--${
|
|
401
|
+
}, i.style[`--${e}${Oe(n)}`] = r[n];
|
|
401
402
|
return i;
|
|
402
403
|
}
|
|
403
404
|
const f = rs(
|
|
@@ -435,37 +436,37 @@ class hs {
|
|
|
435
436
|
this.scrollValue = 0, c(this, J, ""), c(this, T, []), c(this, V, {}), c(this, J, K.name + "-tweaker");
|
|
436
437
|
}
|
|
437
438
|
openPanel(s) {
|
|
438
|
-
|
|
439
|
+
t(this, T).includes(s) || t(this, T).push(s);
|
|
439
440
|
}
|
|
440
441
|
closePanel(s) {
|
|
441
|
-
c(this, T,
|
|
442
|
+
c(this, T, t(this, T).filter((e) => e !== s));
|
|
442
443
|
}
|
|
443
444
|
isPanelOpened(s) {
|
|
444
|
-
return
|
|
445
|
+
return t(this, T).includes(s);
|
|
445
446
|
}
|
|
446
447
|
changedSizes(s) {
|
|
447
|
-
return
|
|
448
|
+
return t(this, V)[s];
|
|
448
449
|
}
|
|
449
|
-
changeSize(s,
|
|
450
|
-
|
|
450
|
+
changeSize(s, e) {
|
|
451
|
+
e ? t(this, V)[s] = e : delete t(this, V)[s];
|
|
451
452
|
}
|
|
452
453
|
save() {
|
|
453
454
|
const s = {
|
|
454
|
-
openedPanels:
|
|
455
|
-
changedSizes:
|
|
455
|
+
openedPanels: t(this, T),
|
|
456
|
+
changedSizes: t(this, V),
|
|
456
457
|
scrollValue: this.scrollValue
|
|
457
458
|
};
|
|
458
|
-
localStorage.setItem(
|
|
459
|
+
localStorage.setItem(t(this, J), JSON.stringify(s)), K.saveState();
|
|
459
460
|
}
|
|
460
461
|
load() {
|
|
461
462
|
K.loadState();
|
|
462
|
-
const s = localStorage.getItem(
|
|
463
|
+
const s = localStorage.getItem(t(this, J));
|
|
463
464
|
if (s)
|
|
464
465
|
try {
|
|
465
|
-
const
|
|
466
|
-
|
|
467
|
-
} catch (
|
|
468
|
-
console.error(
|
|
466
|
+
const e = JSON.parse(s);
|
|
467
|
+
e.openedPanels && c(this, T, e.openedPanels), e.changedSizes && c(this, V, e.changedSizes), e.scrollValue && (this.scrollValue = e.scrollValue);
|
|
468
|
+
} catch (e) {
|
|
469
|
+
console.error(e);
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
472
|
}
|
|
@@ -512,14 +513,15 @@ const C = new hs(), cs = '<svg xmlns="http://www.w3.org/2000/svg" width="32" hei
|
|
|
512
513
|
opacity: 1
|
|
513
514
|
}
|
|
514
515
|
});
|
|
515
|
-
var O, te, Y,
|
|
516
|
+
var O, te, Y, be;
|
|
516
517
|
const gt = class gt extends HTMLElement {
|
|
517
518
|
constructor() {
|
|
518
519
|
super();
|
|
519
520
|
o(this, Y);
|
|
520
521
|
o(this, O, null);
|
|
521
522
|
o(this, te);
|
|
522
|
-
this.attachShadow({ mode: "open" })
|
|
523
|
+
const e = this.attachShadow({ mode: "open" });
|
|
524
|
+
e.adoptedStyleSheets = [...e.adoptedStyleSheets, ds], c(this, te, this.attachInternals()), g(this, {
|
|
523
525
|
children: Ft({
|
|
524
526
|
children: [
|
|
525
527
|
lt({
|
|
@@ -535,12 +537,12 @@ const gt = class gt extends HTMLElement {
|
|
|
535
537
|
}),
|
|
536
538
|
Ve({
|
|
537
539
|
ref: (i) => {
|
|
538
|
-
c(this, O, i), i.required = this.hasAttribute("required"), i.value = this.getAttribute("value") || "", i.checked = this.hasAttribute("checked"), i.name = this.getAttribute("name") || "", l(this, Y,
|
|
540
|
+
c(this, O, i), i.required = this.hasAttribute("required"), i.value = this.getAttribute("value") || "", i.checked = this.hasAttribute("checked"), i.name = this.getAttribute("name") || "", l(this, Y, be).call(this);
|
|
539
541
|
},
|
|
540
542
|
class: "real",
|
|
541
543
|
type: "checkbox",
|
|
542
544
|
onChange: () => {
|
|
543
|
-
l(this, Y,
|
|
545
|
+
l(this, Y, be).call(this), this.dispatchEvent(
|
|
544
546
|
new Event("change", {
|
|
545
547
|
composed: !0
|
|
546
548
|
})
|
|
@@ -552,42 +554,42 @@ const gt = class gt extends HTMLElement {
|
|
|
552
554
|
});
|
|
553
555
|
}
|
|
554
556
|
get checked() {
|
|
555
|
-
return
|
|
557
|
+
return t(this, O).checked;
|
|
556
558
|
}
|
|
557
|
-
set checked(
|
|
558
|
-
|
|
559
|
+
set checked(e) {
|
|
560
|
+
t(this, O).checked = e, l(this, Y, be).call(this);
|
|
559
561
|
}
|
|
560
562
|
get value() {
|
|
561
|
-
return
|
|
563
|
+
return t(this, O).value;
|
|
562
564
|
}
|
|
563
|
-
set value(
|
|
564
|
-
|
|
565
|
+
set value(e) {
|
|
566
|
+
t(this, O).value = e, l(this, Y, be).call(this);
|
|
565
567
|
}
|
|
566
568
|
};
|
|
567
|
-
O = new WeakMap(), te = new WeakMap(), Y = new WeakSet(),
|
|
568
|
-
this.checked ?
|
|
569
|
+
O = new WeakMap(), te = new WeakMap(), Y = new WeakSet(), be = function() {
|
|
570
|
+
this.checked ? t(this, te).setFormValue(this.value) : t(this, te).setFormValue(null), this.classList.toggle("checked", this.checked);
|
|
569
571
|
}, gt.formAssociated = !0;
|
|
570
572
|
let ht = gt;
|
|
571
573
|
p && !customElements.get("e-checkbox") && customElements.define("e-checkbox", ht);
|
|
572
574
|
var Z;
|
|
573
575
|
class pe extends HTMLElement {
|
|
574
|
-
constructor(...
|
|
576
|
+
constructor(...e) {
|
|
575
577
|
super();
|
|
576
578
|
o(this, Z);
|
|
577
|
-
c(this, Z,
|
|
579
|
+
c(this, Z, e);
|
|
578
580
|
}
|
|
579
|
-
addStore(
|
|
580
|
-
|
|
581
|
+
addStore(e) {
|
|
582
|
+
t(this, Z).push(e);
|
|
581
583
|
}
|
|
582
584
|
get firstStore() {
|
|
583
|
-
return
|
|
585
|
+
return t(this, Z)[0];
|
|
584
586
|
}
|
|
585
587
|
get stores() {
|
|
586
|
-
return
|
|
588
|
+
return t(this, Z);
|
|
587
589
|
}
|
|
588
|
-
updateStores(
|
|
589
|
-
|
|
590
|
-
i.current =
|
|
590
|
+
updateStores(e) {
|
|
591
|
+
t(this, Z).forEach((i) => {
|
|
592
|
+
i.current = e;
|
|
591
593
|
});
|
|
592
594
|
}
|
|
593
595
|
}
|
|
@@ -607,7 +609,9 @@ const us = E({
|
|
|
607
609
|
});
|
|
608
610
|
class Dt extends pe {
|
|
609
611
|
constructor(...s) {
|
|
610
|
-
super(...s)
|
|
612
|
+
super(...s);
|
|
613
|
+
const e = this.attachShadow({ mode: "open" });
|
|
614
|
+
e.adoptedStyleSheets = [...e.adoptedStyleSheets, us], g(this, {
|
|
611
615
|
children: [
|
|
612
616
|
g("e-checkbox", {
|
|
613
617
|
onChange: (i) => {
|
|
@@ -652,7 +656,9 @@ const fs = E({
|
|
|
652
656
|
});
|
|
653
657
|
class Vt extends pe {
|
|
654
658
|
constructor(...s) {
|
|
655
|
-
super(...s)
|
|
659
|
+
super(...s);
|
|
660
|
+
const e = this.attachShadow({ mode: "open" });
|
|
661
|
+
e.adoptedStyleSheets = [...e.adoptedStyleSheets, fs], g(this, {
|
|
656
662
|
children: [
|
|
657
663
|
Ve({
|
|
658
664
|
type: "color",
|
|
@@ -675,7 +681,9 @@ const ms = E({
|
|
|
675
681
|
class _t extends pe {
|
|
676
682
|
constructor(...s) {
|
|
677
683
|
var i;
|
|
678
|
-
super(...s)
|
|
684
|
+
super(...s);
|
|
685
|
+
const e = this.attachShadow({ mode: "open" });
|
|
686
|
+
e.adoptedStyleSheets = [...e.adoptedStyleSheets, ms], g(this, {
|
|
679
687
|
children: [
|
|
680
688
|
os({
|
|
681
689
|
href: this.firstStore,
|
|
@@ -751,12 +759,12 @@ const ps = E({
|
|
|
751
759
|
opacity: 0.3
|
|
752
760
|
}
|
|
753
761
|
});
|
|
754
|
-
var G, se, ie, _, W, ve, ye, F, U, Se, ke,
|
|
762
|
+
var G, se, ie, _, W, ve, ye, F, U, Se, ke, b, Q, ct, dt, Ke, Ee;
|
|
755
763
|
class Bt extends pe {
|
|
756
|
-
constructor(...
|
|
764
|
+
constructor(...e) {
|
|
757
765
|
var n, h, u, m;
|
|
758
|
-
super(...
|
|
759
|
-
o(this,
|
|
766
|
+
super(...e);
|
|
767
|
+
o(this, b);
|
|
760
768
|
o(this, G, []);
|
|
761
769
|
o(this, se, []);
|
|
762
770
|
o(this, ie);
|
|
@@ -766,63 +774,64 @@ class Bt extends pe {
|
|
|
766
774
|
o(this, ye);
|
|
767
775
|
o(this, F);
|
|
768
776
|
o(this, U, !1);
|
|
769
|
-
o(this, Se, (
|
|
770
|
-
const i = l(this,
|
|
777
|
+
o(this, Se, (e) => {
|
|
778
|
+
const i = l(this, b, Q).call(this, e);
|
|
771
779
|
return i.map((n, h) => {
|
|
772
|
-
const u = typeof n == "string" ? parseFloat(n) ||
|
|
780
|
+
const u = typeof n == "string" ? parseFloat(n) || t(this, _) : n, m = ts(u, t(this, _), t(this, W)), k = ss(m, t(this, ie));
|
|
773
781
|
i[h] = k;
|
|
774
|
-
}),
|
|
782
|
+
}), t(this, ye) === "number" ? i[0] : i;
|
|
775
783
|
});
|
|
776
784
|
o(this, ke, () => {
|
|
777
|
-
l(this,
|
|
778
|
-
const n =
|
|
779
|
-
n && (n.value = (
|
|
780
|
-
}), l(this,
|
|
785
|
+
l(this, b, Q).call(this).map((e, i) => {
|
|
786
|
+
const n = t(this, G)[i];
|
|
787
|
+
n && (n.value = (e || 0).toString());
|
|
788
|
+
}), l(this, b, ct).call(this);
|
|
781
789
|
});
|
|
782
790
|
o(this, Ee, () => {
|
|
783
|
-
l(this,
|
|
791
|
+
l(this, b, ct).call(this);
|
|
784
792
|
});
|
|
785
|
-
this.attachShadow({ mode: "open" })
|
|
786
|
-
|
|
787
|
-
|
|
793
|
+
const i = this.attachShadow({ mode: "open" });
|
|
794
|
+
i.adoptedStyleSheets = [...i.adoptedStyleSheets, ps], c(this, _, St((n = this.firstStore.__manager) == null ? void 0 : n.min, -1 / 0)), c(this, W, 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, F, isFinite(t(this, W)) && isFinite(t(this, _))), g(this, {
|
|
795
|
+
class: t(this, F) ? "" : "infinite",
|
|
796
|
+
children: l(this, b, Q).call(this).map((k, L) => w({
|
|
788
797
|
class: "inputs-wrapper",
|
|
789
798
|
children: [
|
|
790
799
|
Ve({
|
|
791
800
|
type: "number",
|
|
792
|
-
step:
|
|
793
|
-
min:
|
|
794
|
-
max:
|
|
795
|
-
ref: (v) =>
|
|
801
|
+
step: t(this, ie),
|
|
802
|
+
min: t(this, _),
|
|
803
|
+
max: t(this, W),
|
|
804
|
+
ref: (v) => t(this, G).push(v),
|
|
796
805
|
value: k,
|
|
797
806
|
onChange: () => {
|
|
798
807
|
this.updateStores(
|
|
799
|
-
|
|
808
|
+
t(this, G).map((v) => parseFloat(v.value))
|
|
800
809
|
);
|
|
801
810
|
}
|
|
802
811
|
}),
|
|
803
|
-
|
|
812
|
+
w({
|
|
804
813
|
class: "drag",
|
|
805
814
|
children: [
|
|
806
|
-
|
|
815
|
+
w({
|
|
807
816
|
class: "drag-knob",
|
|
808
|
-
ref: (v) =>
|
|
817
|
+
ref: (v) => t(this, se).push(v),
|
|
809
818
|
onPointerdown: (v) => {
|
|
810
819
|
v.preventDefault(), c(this, U, !0);
|
|
811
|
-
const ge = l(this,
|
|
820
|
+
const ge = l(this, b, Q).call(this), _e = ge[L], x = t(this, se)[L], R = t(this, G)[L];
|
|
812
821
|
if (x && R) {
|
|
813
|
-
const P = x.parentElement, B = l(this,
|
|
822
|
+
const P = x.parentElement, B = l(this, b, dt).call(this);
|
|
814
823
|
P.classList.add("grabbing"), Et(
|
|
815
824
|
(q) => {
|
|
816
|
-
const
|
|
817
|
-
if (ge[L] = Yt, !
|
|
818
|
-
const Gt = l(this,
|
|
819
|
-
x.style.transform = `translateX(${Gt +
|
|
825
|
+
const wt = q.x - v.x, Jt = t(this, F) ? P.offsetWidth / (B || 1) : 1, Yt = _e + wt / Jt * t(this, ve);
|
|
826
|
+
if (ge[L] = Yt, !t(this, F)) {
|
|
827
|
+
const Gt = l(this, b, Ke).call(this, x, 0);
|
|
828
|
+
x.style.transform = `translateX(${Gt + wt}px)`;
|
|
820
829
|
}
|
|
821
830
|
this.updateStores([...ge]);
|
|
822
831
|
},
|
|
823
832
|
() => {
|
|
824
|
-
if (c(this, U, !1), !
|
|
825
|
-
const q = l(this,
|
|
833
|
+
if (c(this, U, !1), !t(this, F)) {
|
|
834
|
+
const q = l(this, b, Ke).call(this, x, 0);
|
|
826
835
|
x.style.transition = "transform 0.1s", x.style.transform = `translateX(${q}px)`, P.classList.remove("grabbing"), setTimeout(() => {
|
|
827
836
|
x.style.transition = "";
|
|
828
837
|
}, 100);
|
|
@@ -831,7 +840,7 @@ class Bt extends pe {
|
|
|
831
840
|
);
|
|
832
841
|
}
|
|
833
842
|
},
|
|
834
|
-
children:
|
|
843
|
+
children: w({
|
|
835
844
|
class: "drag-knob-inner"
|
|
836
845
|
})
|
|
837
846
|
})
|
|
@@ -842,27 +851,27 @@ class Bt extends pe {
|
|
|
842
851
|
});
|
|
843
852
|
}
|
|
844
853
|
connectedCallback() {
|
|
845
|
-
this.firstStore.addMiddleware(
|
|
854
|
+
this.firstStore.addMiddleware(t(this, Se)), this.firstStore.subscribe(t(this, ke)), kt.subscribe(this, t(this, Ee));
|
|
846
855
|
}
|
|
847
856
|
disconnectedCallback() {
|
|
848
|
-
this.firstStore.removeMiddleware(
|
|
857
|
+
this.firstStore.removeMiddleware(t(this, Se)), this.firstStore.unsubscribe(t(this, ke)), kt.unsubscribe(t(this, Ee));
|
|
849
858
|
}
|
|
850
859
|
}
|
|
851
|
-
G = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), _ = new WeakMap(), W = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), F = new WeakMap(), U = new WeakMap(), Se = new WeakMap(), ke = new WeakMap(),
|
|
852
|
-
return Array.isArray(
|
|
860
|
+
G = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), _ = new WeakMap(), W = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), F = new WeakMap(), U = new WeakMap(), Se = new WeakMap(), ke = new WeakMap(), b = new WeakSet(), Q = function(e = this.firstStore.current) {
|
|
861
|
+
return Array.isArray(e) ? e : [e];
|
|
853
862
|
}, ct = function() {
|
|
854
|
-
l(this,
|
|
855
|
-
const n =
|
|
856
|
-
if (n && (!
|
|
857
|
-
const h = l(this,
|
|
863
|
+
l(this, b, Q).call(this).map((e, i) => {
|
|
864
|
+
const n = t(this, se)[i];
|
|
865
|
+
if (n && (!t(this, U) || t(this, U) && t(this, F))) {
|
|
866
|
+
const h = l(this, b, Ke).call(this, n, e);
|
|
858
867
|
n.style.transform = `translateX(${h}px)`;
|
|
859
868
|
}
|
|
860
869
|
});
|
|
861
870
|
}, dt = function() {
|
|
862
|
-
return
|
|
863
|
-
}, Ke = function(
|
|
864
|
-
const n =
|
|
865
|
-
return (n.offsetWidth -
|
|
871
|
+
return t(this, F) ? t(this, W) - t(this, _) : 0;
|
|
872
|
+
}, Ke = function(e, i) {
|
|
873
|
+
const n = e.parentElement, h = l(this, b, dt).call(this), u = h ? i / h : 0.5;
|
|
874
|
+
return (n.offsetWidth - e.offsetWidth) * u;
|
|
866
875
|
}, Ee = new WeakMap();
|
|
867
876
|
p && !customElements.get("e-tweaker-number-manager") && customElements.define("e-tweaker-number-manager", Bt);
|
|
868
877
|
function Kt(r) {
|
|
@@ -881,7 +890,7 @@ function gs(r) {
|
|
|
881
890
|
})
|
|
882
891
|
);
|
|
883
892
|
}
|
|
884
|
-
const
|
|
893
|
+
const bs = E({
|
|
885
894
|
":host": {
|
|
886
895
|
position: "relative"
|
|
887
896
|
},
|
|
@@ -917,7 +926,7 @@ const ws = E({
|
|
|
917
926
|
}
|
|
918
927
|
});
|
|
919
928
|
var ne, oe, z, X, re, ae, Ye, xe, ft;
|
|
920
|
-
const
|
|
929
|
+
const bt = class bt extends HTMLElement {
|
|
921
930
|
constructor() {
|
|
922
931
|
super();
|
|
923
932
|
o(this, xe);
|
|
@@ -930,63 +939,66 @@ const wt = class wt extends HTMLElement {
|
|
|
930
939
|
o(this, Ye, () => {
|
|
931
940
|
Kt(this);
|
|
932
941
|
});
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
class: "body",
|
|
944
|
-
style: {
|
|
945
|
-
height: "0px"
|
|
946
|
-
},
|
|
947
|
-
children: b({
|
|
948
|
-
class: "body-inner",
|
|
949
|
-
children: me()
|
|
942
|
+
if (p) {
|
|
943
|
+
const e = this.attachShadow({ mode: "open" });
|
|
944
|
+
e.adoptedStyleSheets = [...e.adoptedStyleSheets, bs], c(this, ne, this.attachInternals()), c(this, ae, new ResizeObserver(t(this, Ye))), g(this, {
|
|
945
|
+
children: [
|
|
946
|
+
ee({
|
|
947
|
+
class: "head",
|
|
948
|
+
children: me({ name: "head" }),
|
|
949
|
+
onClick: () => {
|
|
950
|
+
this.opened ? this.close() : this.open();
|
|
951
|
+
}
|
|
950
952
|
}),
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
953
|
+
w({
|
|
954
|
+
class: "body",
|
|
955
|
+
style: {
|
|
956
|
+
height: "0px"
|
|
957
|
+
},
|
|
958
|
+
children: w({
|
|
959
|
+
class: "body-inner",
|
|
960
|
+
children: me()
|
|
961
|
+
}),
|
|
962
|
+
ref: (i) => {
|
|
963
|
+
c(this, z, i);
|
|
964
|
+
}
|
|
965
|
+
})
|
|
966
|
+
]
|
|
967
|
+
});
|
|
968
|
+
}
|
|
957
969
|
}
|
|
958
970
|
get value() {
|
|
959
|
-
return
|
|
971
|
+
return t(this, oe);
|
|
960
972
|
}
|
|
961
|
-
set value(
|
|
962
|
-
c(this, oe,
|
|
973
|
+
set value(e) {
|
|
974
|
+
c(this, oe, e), this.dispatchEvent(
|
|
963
975
|
new Event("change", {
|
|
964
976
|
bubbles: !0,
|
|
965
977
|
composed: !0
|
|
966
978
|
})
|
|
967
|
-
),
|
|
979
|
+
), t(this, ne).setFormValue(t(this, oe));
|
|
968
980
|
}
|
|
969
981
|
get internals() {
|
|
970
|
-
return
|
|
982
|
+
return t(this, ne);
|
|
971
983
|
}
|
|
972
984
|
get opened() {
|
|
973
|
-
return
|
|
985
|
+
return t(this, X);
|
|
974
986
|
}
|
|
975
987
|
open() {
|
|
976
|
-
clearTimeout(
|
|
977
|
-
this.classList.add("opened"),
|
|
988
|
+
clearTimeout(t(this, re)), c(this, X, !0), t(this, z).style.display = "grid", this.classList.add("triggered"), setTimeout(() => {
|
|
989
|
+
this.classList.add("opened"), t(this, z).style.height = t(this, z).scrollHeight + "px", l(this, xe, ft).call(this);
|
|
978
990
|
}, 0);
|
|
979
991
|
}
|
|
980
992
|
close() {
|
|
981
|
-
c(this, X, !1),
|
|
982
|
-
this.classList.remove("triggered"),
|
|
983
|
-
}, is(
|
|
993
|
+
c(this, X, !1), t(this, z).style.height = "0px", this.classList.remove("opened"), l(this, xe, ft).call(this), c(this, re, setTimeout(() => {
|
|
994
|
+
this.classList.remove("triggered"), t(this, z).style.display = "none";
|
|
995
|
+
}, is(t(this, z))));
|
|
984
996
|
}
|
|
985
997
|
connectedCallback() {
|
|
986
|
-
|
|
998
|
+
t(this, ae).observe(t(this, z));
|
|
987
999
|
}
|
|
988
1000
|
disconnectedCallback() {
|
|
989
|
-
clearTimeout(
|
|
1001
|
+
clearTimeout(t(this, re)), t(this, ae).disconnect();
|
|
990
1002
|
}
|
|
991
1003
|
};
|
|
992
1004
|
ne = new WeakMap(), oe = new WeakMap(), z = new WeakMap(), X = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), Ye = new WeakMap(), xe = new WeakSet(), ft = function() {
|
|
@@ -995,12 +1007,12 @@ ne = new WeakMap(), oe = new WeakMap(), z = new WeakMap(), X = new WeakMap(), re
|
|
|
995
1007
|
bubbles: !0,
|
|
996
1008
|
composed: !0,
|
|
997
1009
|
detail: {
|
|
998
|
-
opened:
|
|
1010
|
+
opened: t(this, X)
|
|
999
1011
|
}
|
|
1000
1012
|
})
|
|
1001
1013
|
);
|
|
1002
|
-
},
|
|
1003
|
-
let ut =
|
|
1014
|
+
}, bt.formAssociated = !0;
|
|
1015
|
+
let ut = bt;
|
|
1004
1016
|
p && !customElements.get("e-select") && customElements.define("e-select", ut);
|
|
1005
1017
|
var Ce;
|
|
1006
1018
|
class Ot extends HTMLElement {
|
|
@@ -1009,16 +1021,16 @@ class Ot extends HTMLElement {
|
|
|
1009
1021
|
o(this, Ce, null);
|
|
1010
1022
|
}
|
|
1011
1023
|
get selectElement() {
|
|
1012
|
-
return
|
|
1024
|
+
return t(this, Ce);
|
|
1013
1025
|
}
|
|
1014
1026
|
connectedCallback() {
|
|
1015
1027
|
var i, n;
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1028
|
+
const e = (n = (i = this.assignedSlot) == null ? void 0 : i.getRootNode()) == null ? void 0 : n.host;
|
|
1029
|
+
e ? c(this, Ce, e) : console.log(this, "e-select not found");
|
|
1018
1030
|
}
|
|
1019
1031
|
}
|
|
1020
1032
|
Ce = new WeakMap();
|
|
1021
|
-
const
|
|
1033
|
+
const ws = E({
|
|
1022
1034
|
":host": {
|
|
1023
1035
|
width: "100%",
|
|
1024
1036
|
height: "40px",
|
|
@@ -1034,27 +1046,30 @@ class vs extends Ot {
|
|
|
1034
1046
|
o(this, le, () => {
|
|
1035
1047
|
this.selectElement.value === this.value ? this.style.display = "none" : this.style.display = "";
|
|
1036
1048
|
});
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1049
|
+
if (p) {
|
|
1050
|
+
const e = this.attachShadow({ mode: "open" });
|
|
1051
|
+
e.adoptedStyleSheets = [...e.adoptedStyleSheets, ws], g(this, {
|
|
1052
|
+
tabindex: 0,
|
|
1053
|
+
onClick: () => {
|
|
1054
|
+
l(this, Le, mt).call(this);
|
|
1055
|
+
},
|
|
1056
|
+
onKeydown: (i) => {
|
|
1057
|
+
i.code === "Space" && l(this, Le, mt).call(this);
|
|
1058
|
+
},
|
|
1059
|
+
children: me()
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1047
1062
|
}
|
|
1048
1063
|
get value() {
|
|
1049
1064
|
return (this.hasAttribute("value") ? this.getAttribute("value") : this.innerText) || "";
|
|
1050
1065
|
}
|
|
1051
1066
|
connectedCallback() {
|
|
1052
|
-
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change",
|
|
1053
|
-
|
|
1067
|
+
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", t(this, le)), setTimeout(() => {
|
|
1068
|
+
t(this, le).call(this);
|
|
1054
1069
|
});
|
|
1055
1070
|
}
|
|
1056
1071
|
disconnectedCallback() {
|
|
1057
|
-
this.selectElement.removeEventListener("change",
|
|
1072
|
+
this.selectElement.removeEventListener("change", t(this, le));
|
|
1058
1073
|
}
|
|
1059
1074
|
}
|
|
1060
1075
|
le = new WeakMap(), Le = new WeakSet(), mt = function() {
|
|
@@ -1090,26 +1105,29 @@ class Ss extends Ot {
|
|
|
1090
1105
|
const i = this.selectElement.shadowRoot.querySelector(
|
|
1091
1106
|
".body slot"
|
|
1092
1107
|
).assignedElements().find((n) => n.value === this.selectElement.value);
|
|
1093
|
-
i && (
|
|
1108
|
+
i && (t(this, Te).innerHTML = i.innerHTML);
|
|
1094
1109
|
});
|
|
1095
1110
|
o(this, ze, () => {
|
|
1096
1111
|
this.classList.toggle("opened", this.selectElement.opened);
|
|
1097
1112
|
});
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1113
|
+
if (p) {
|
|
1114
|
+
const e = this.attachShadow({ mode: "open" });
|
|
1115
|
+
e.adoptedStyleSheets = [...e.adoptedStyleSheets, ys], g(this, {
|
|
1116
|
+
children: [
|
|
1117
|
+
me(),
|
|
1118
|
+
me({
|
|
1119
|
+
name: "arrow",
|
|
1120
|
+
children: g(Ht, { class: "default-arrow" })
|
|
1121
|
+
})
|
|
1122
|
+
]
|
|
1123
|
+
}), this.slot = "head";
|
|
1124
|
+
}
|
|
1107
1125
|
}
|
|
1108
1126
|
connectedCallback() {
|
|
1109
|
-
super.connectedCallback(), c(this, Te, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change",
|
|
1127
|
+
super.connectedCallback(), c(this, Te, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change", t(this, he)), t(this, he).call(this), this.selectElement.addEventListener("selectToggle", t(this, ze));
|
|
1110
1128
|
}
|
|
1111
1129
|
disconnectedCallback() {
|
|
1112
|
-
this.selectElement.removeEventListener("change",
|
|
1130
|
+
this.selectElement.removeEventListener("change", t(this, he)), this.selectElement.removeEventListener("selectToggle", t(this, ze));
|
|
1113
1131
|
}
|
|
1114
1132
|
}
|
|
1115
1133
|
Te = new WeakMap(), he = new WeakMap(), ze = new WeakMap();
|
|
@@ -1151,7 +1169,9 @@ const ks = E({
|
|
|
1151
1169
|
class Zt extends pe {
|
|
1152
1170
|
constructor(...s) {
|
|
1153
1171
|
var n;
|
|
1154
|
-
super(...s)
|
|
1172
|
+
super(...s);
|
|
1173
|
+
const e = this.attachShadow({ mode: "open" });
|
|
1174
|
+
e.adoptedStyleSheets = [...e.adoptedStyleSheets, ks];
|
|
1155
1175
|
const i = ((n = this.firstStore.__manager) == null ? void 0 : n.variants) || [];
|
|
1156
1176
|
g(this, {
|
|
1157
1177
|
children: g("e-select", {
|
|
@@ -1204,7 +1224,9 @@ const Es = E({
|
|
|
1204
1224
|
});
|
|
1205
1225
|
class Wt extends pe {
|
|
1206
1226
|
constructor(...s) {
|
|
1207
|
-
super(...s)
|
|
1227
|
+
super(...s);
|
|
1228
|
+
const e = this.attachShadow({ mode: "open" });
|
|
1229
|
+
e.adoptedStyleSheets = [...e.adoptedStyleSheets, Es], g(this, {
|
|
1208
1230
|
children: [
|
|
1209
1231
|
Ve({
|
|
1210
1232
|
class: "text-input",
|
|
@@ -1275,7 +1297,7 @@ const xs = {
|
|
|
1275
1297
|
});
|
|
1276
1298
|
var M, ce, de, ue, fe, Me, Ae;
|
|
1277
1299
|
class pt extends HTMLElement {
|
|
1278
|
-
constructor(
|
|
1300
|
+
constructor(e) {
|
|
1279
1301
|
var h, u;
|
|
1280
1302
|
super();
|
|
1281
1303
|
o(this, M, []);
|
|
@@ -1284,20 +1306,22 @@ class pt extends HTMLElement {
|
|
|
1284
1306
|
o(this, ue, !1);
|
|
1285
1307
|
o(this, fe);
|
|
1286
1308
|
o(this, Me, () => {
|
|
1287
|
-
j.current.find((
|
|
1309
|
+
j.current.find((e) => t(this, M).includes(e)) || this.remove();
|
|
1288
1310
|
});
|
|
1289
|
-
o(this, Ae, (
|
|
1290
|
-
|
|
1311
|
+
o(this, Ae, (e) => {
|
|
1312
|
+
t(this, ue) && ((e.metaKey || e.ctrlKey) && e.code === "KeyC" ? navigator.clipboard.writeText(t(this, M)[0].current) : (e.metaKey || e.ctrlKey) && e.code === "KeyR" && (t(this, M).forEach((i) => {
|
|
1291
1313
|
i.reset();
|
|
1292
|
-
}),
|
|
1314
|
+
}), e.preventDefault()));
|
|
1293
1315
|
});
|
|
1294
|
-
c(this, M, [
|
|
1295
|
-
const i = ((h =
|
|
1316
|
+
c(this, M, [e.store]), c(this, ce, e.store.name), c(this, de, t(this, ce).split(".").slice(-1).toString());
|
|
1317
|
+
const i = ((h = e.store.__manager) == null ? void 0 : h.type) || "string";
|
|
1296
1318
|
c(this, fe, new xs[i](
|
|
1297
|
-
|
|
1298
|
-
))
|
|
1319
|
+
t(this, M)[0]
|
|
1320
|
+
));
|
|
1321
|
+
const n = this.attachShadow({ mode: "open" });
|
|
1322
|
+
n.adoptedStyleSheets = [...n.adoptedStyleSheets, Cs], g(this, {
|
|
1299
1323
|
class: {
|
|
1300
|
-
disabled: ((u =
|
|
1324
|
+
disabled: ((u = e.store.__manager) == null ? void 0 : u.disabled) || !1
|
|
1301
1325
|
},
|
|
1302
1326
|
onPointerleave: () => {
|
|
1303
1327
|
c(this, ue, !1);
|
|
@@ -1306,25 +1330,25 @@ class pt extends HTMLElement {
|
|
|
1306
1330
|
c(this, ue, !0);
|
|
1307
1331
|
},
|
|
1308
1332
|
children: [
|
|
1309
|
-
|
|
1333
|
+
w({
|
|
1310
1334
|
class: "head",
|
|
1311
1335
|
children: [
|
|
1312
|
-
|
|
1313
|
-
|
|
1336
|
+
w({ class: "name", children: t(this, de) + ":" }),
|
|
1337
|
+
w({
|
|
1314
1338
|
class: "head-buttons",
|
|
1315
1339
|
children: [
|
|
1316
1340
|
ee({
|
|
1317
1341
|
class: "head-button",
|
|
1318
1342
|
children: It,
|
|
1319
1343
|
onClick: () => {
|
|
1320
|
-
navigator.clipboard.writeText(
|
|
1344
|
+
navigator.clipboard.writeText(t(this, M)[0].current);
|
|
1321
1345
|
}
|
|
1322
1346
|
}),
|
|
1323
1347
|
ee({
|
|
1324
1348
|
class: "head-button",
|
|
1325
1349
|
children: $t,
|
|
1326
1350
|
onClick: () => {
|
|
1327
|
-
|
|
1351
|
+
t(this, M).forEach((m) => {
|
|
1328
1352
|
m.reset();
|
|
1329
1353
|
});
|
|
1330
1354
|
}
|
|
@@ -1333,27 +1357,27 @@ class pt extends HTMLElement {
|
|
|
1333
1357
|
})
|
|
1334
1358
|
]
|
|
1335
1359
|
}),
|
|
1336
|
-
|
|
1360
|
+
t(this, fe)
|
|
1337
1361
|
]
|
|
1338
1362
|
});
|
|
1339
1363
|
}
|
|
1340
1364
|
get key() {
|
|
1341
|
-
return
|
|
1365
|
+
return t(this, ce);
|
|
1342
1366
|
}
|
|
1343
1367
|
get name() {
|
|
1344
|
-
return
|
|
1368
|
+
return t(this, de);
|
|
1345
1369
|
}
|
|
1346
1370
|
get stores() {
|
|
1347
|
-
return
|
|
1371
|
+
return t(this, M);
|
|
1348
1372
|
}
|
|
1349
|
-
addStore(
|
|
1350
|
-
|
|
1373
|
+
addStore(e) {
|
|
1374
|
+
t(this, fe).addStore(e);
|
|
1351
1375
|
}
|
|
1352
1376
|
connectedCallback() {
|
|
1353
|
-
j.subscribe(
|
|
1377
|
+
j.subscribe(t(this, Me)), addEventListener("keydown", t(this, Ae)), Kt(this);
|
|
1354
1378
|
}
|
|
1355
1379
|
disconnectedCallback() {
|
|
1356
|
-
j.unsubscribe(
|
|
1380
|
+
j.unsubscribe(t(this, Me)), removeEventListener("keydown", t(this, Ae));
|
|
1357
1381
|
}
|
|
1358
1382
|
}
|
|
1359
1383
|
M = new WeakMap(), ce = new WeakMap(), de = new WeakMap(), ue = new WeakMap(), fe = new WeakMap(), Me = new WeakMap(), Ae = new WeakMap();
|
|
@@ -1415,7 +1439,7 @@ const Ls = E({
|
|
|
1415
1439
|
});
|
|
1416
1440
|
var A, Ne, S, Re, Fe, Pe, $e, Ge;
|
|
1417
1441
|
const Ue = class Ue extends HTMLElement {
|
|
1418
|
-
constructor(
|
|
1442
|
+
constructor(e) {
|
|
1419
1443
|
super();
|
|
1420
1444
|
o(this, A);
|
|
1421
1445
|
o(this, Ne, new $(null));
|
|
@@ -1424,43 +1448,44 @@ const Ue = class Ue extends HTMLElement {
|
|
|
1424
1448
|
o(this, Fe, null);
|
|
1425
1449
|
o(this, Pe, null);
|
|
1426
1450
|
o(this, $e, null);
|
|
1427
|
-
o(this, Ge, (
|
|
1451
|
+
o(this, Ge, (e) => {
|
|
1428
1452
|
let i = [], n = [];
|
|
1429
|
-
|
|
1453
|
+
e.forEach((h) => {
|
|
1430
1454
|
i = [...i, ...h.removedNodes], n = [...n, ...h.addedNodes];
|
|
1431
|
-
}),
|
|
1455
|
+
}), t(this, S).current = t(this, S).current.filter(
|
|
1432
1456
|
(h) => !i.includes(h)
|
|
1433
|
-
),
|
|
1457
|
+
), t(this, A) && !t(this, S).current.length && !n.length && this.remove();
|
|
1434
1458
|
});
|
|
1435
|
-
this.attachShadow({ mode: "open" })
|
|
1459
|
+
const i = this.attachShadow({ mode: "open" });
|
|
1460
|
+
i.adoptedStyleSheets = [...i.adoptedStyleSheets, Ls], c(this, A, e.key), c(this, Re, new MutationObserver(t(this, Ge))), g(this, {
|
|
1436
1461
|
children: [
|
|
1437
|
-
|
|
1462
|
+
w({
|
|
1438
1463
|
class: "wrapper",
|
|
1439
1464
|
children: [
|
|
1440
|
-
|
|
1465
|
+
w({
|
|
1441
1466
|
class: "head",
|
|
1442
1467
|
onClick: (n) => {
|
|
1443
|
-
this.classList.toggle("opened"), this.classList.contains("opened") ? C.openPanel(
|
|
1468
|
+
this.classList.toggle("opened"), this.classList.contains("opened") ? C.openPanel(t(this, A)) : C.closePanel(t(this, A));
|
|
1444
1469
|
},
|
|
1445
1470
|
children: [
|
|
1446
|
-
|
|
1471
|
+
t(this, A) ? w({
|
|
1447
1472
|
class: "name",
|
|
1448
|
-
children: [
|
|
1473
|
+
children: [t(this, A).split(".").slice(-1).toString()]
|
|
1449
1474
|
}) : null,
|
|
1450
|
-
|
|
1475
|
+
t(this, Ne),
|
|
1451
1476
|
g(Ht, {
|
|
1452
1477
|
class: "arrow"
|
|
1453
1478
|
})
|
|
1454
1479
|
]
|
|
1455
1480
|
}),
|
|
1456
|
-
|
|
1481
|
+
w({
|
|
1457
1482
|
class: "body",
|
|
1458
1483
|
ref: (n) => {
|
|
1459
1484
|
c(this, Fe, n);
|
|
1460
1485
|
},
|
|
1461
|
-
children:
|
|
1486
|
+
children: w({
|
|
1462
1487
|
class: "body-content",
|
|
1463
|
-
children:
|
|
1488
|
+
children: t(this, S),
|
|
1464
1489
|
ref: (n) => {
|
|
1465
1490
|
c(this, Pe, n), c(this, $e, n.firstElementChild);
|
|
1466
1491
|
}
|
|
@@ -1469,54 +1494,54 @@ const Ue = class Ue extends HTMLElement {
|
|
|
1469
1494
|
]
|
|
1470
1495
|
})
|
|
1471
1496
|
]
|
|
1472
|
-
}),
|
|
1497
|
+
}), e != null && e.storeBox && this.handleStore(e.storeBox);
|
|
1473
1498
|
}
|
|
1474
1499
|
get key() {
|
|
1475
|
-
return
|
|
1500
|
+
return t(this, A);
|
|
1476
1501
|
}
|
|
1477
1502
|
get head() {
|
|
1478
|
-
return
|
|
1503
|
+
return t(this, Ne);
|
|
1479
1504
|
}
|
|
1480
1505
|
get content() {
|
|
1481
|
-
return
|
|
1506
|
+
return t(this, S);
|
|
1482
1507
|
}
|
|
1483
1508
|
get bodyElement() {
|
|
1484
|
-
return
|
|
1509
|
+
return t(this, Fe);
|
|
1485
1510
|
}
|
|
1486
1511
|
get contentElement() {
|
|
1487
|
-
return
|
|
1512
|
+
return t(this, Pe);
|
|
1488
1513
|
}
|
|
1489
1514
|
connectedCallback() {
|
|
1490
|
-
C.isPanelOpened(
|
|
1515
|
+
C.isPanelOpened(t(this, A)) && this.classList.add("opened"), setTimeout(() => {
|
|
1491
1516
|
this.classList.add("transition-allowed");
|
|
1492
|
-
}),
|
|
1517
|
+
}), t(this, Re).observe(t(this, $e), {
|
|
1493
1518
|
childList: !0
|
|
1494
1519
|
});
|
|
1495
1520
|
}
|
|
1496
|
-
handleStore(
|
|
1497
|
-
if (
|
|
1498
|
-
const n =
|
|
1521
|
+
handleStore(e) {
|
|
1522
|
+
if (e.remainingFolders.length) {
|
|
1523
|
+
const n = e.store.name.split("."), h = n.slice(0, n.length - e.remainingFolders.length).join("."), u = t(this, S).current.find((m) => m.key === h);
|
|
1499
1524
|
u instanceof Ue ? u.handleStore({
|
|
1500
|
-
store:
|
|
1501
|
-
remainingFolders:
|
|
1502
|
-
}) :
|
|
1503
|
-
...
|
|
1525
|
+
store: e.store,
|
|
1526
|
+
remainingFolders: e.remainingFolders.slice(1)
|
|
1527
|
+
}) : t(this, S).current = [
|
|
1528
|
+
...t(this, S).current,
|
|
1504
1529
|
new Ue({
|
|
1505
1530
|
key: h,
|
|
1506
1531
|
storeBox: {
|
|
1507
|
-
store:
|
|
1508
|
-
remainingFolders:
|
|
1532
|
+
store: e.store,
|
|
1533
|
+
remainingFolders: e.remainingFolders.slice(1)
|
|
1509
1534
|
}
|
|
1510
1535
|
})
|
|
1511
1536
|
];
|
|
1512
1537
|
} else {
|
|
1513
|
-
const i =
|
|
1514
|
-
(n) => n.key ===
|
|
1538
|
+
const i = t(this, S).current.find(
|
|
1539
|
+
(n) => n.key === e.store.name
|
|
1515
1540
|
);
|
|
1516
|
-
i instanceof pt ? i.addStore(
|
|
1517
|
-
...
|
|
1541
|
+
i instanceof pt ? i.addStore(e.store) : t(this, S).current = [
|
|
1542
|
+
...t(this, S).current,
|
|
1518
1543
|
new pt({
|
|
1519
|
-
store:
|
|
1544
|
+
store: e.store
|
|
1520
1545
|
})
|
|
1521
1546
|
];
|
|
1522
1547
|
}
|
|
@@ -1628,25 +1653,28 @@ class qt extends Ze {
|
|
|
1628
1653
|
C.save();
|
|
1629
1654
|
});
|
|
1630
1655
|
o(this, De, Xt(() => {
|
|
1631
|
-
j.current.forEach((
|
|
1632
|
-
if (
|
|
1633
|
-
const i =
|
|
1656
|
+
j.current.forEach((e) => {
|
|
1657
|
+
if (e.name) {
|
|
1658
|
+
const i = e.name.split(".");
|
|
1634
1659
|
this.handleStore({
|
|
1635
|
-
store:
|
|
1660
|
+
store: e,
|
|
1636
1661
|
remainingFolders: i.length > 1 ? i.slice(0, -1) : []
|
|
1637
1662
|
});
|
|
1638
1663
|
}
|
|
1639
|
-
}),
|
|
1664
|
+
}), t(this, Ie) || (c(this, Ie, !0), this.contentElement.scroll({
|
|
1640
1665
|
top: C.scrollValue
|
|
1641
1666
|
}), this.contentElement.addEventListener("scroll", () => {
|
|
1642
1667
|
C.scrollValue = this.contentElement.scrollTop;
|
|
1643
1668
|
}));
|
|
1644
1669
|
}, 10));
|
|
1645
|
-
C.load(), this.shadowRoot.adoptedStyleSheets
|
|
1646
|
-
|
|
1670
|
+
C.load(), this.shadowRoot.adoptedStyleSheets = [
|
|
1671
|
+
...this.shadowRoot.adoptedStyleSheets,
|
|
1672
|
+
Ts
|
|
1673
|
+
], this.head.current = [
|
|
1674
|
+
w({
|
|
1647
1675
|
class: "tweaker-buttons",
|
|
1648
|
-
onClick: (
|
|
1649
|
-
|
|
1676
|
+
onClick: (e) => {
|
|
1677
|
+
e.stopPropagation();
|
|
1650
1678
|
},
|
|
1651
1679
|
children: [
|
|
1652
1680
|
ee({
|
|
@@ -1681,9 +1709,9 @@ class qt extends Ze {
|
|
|
1681
1709
|
style: {
|
|
1682
1710
|
display: "none"
|
|
1683
1711
|
},
|
|
1684
|
-
onChange: (
|
|
1712
|
+
onChange: (e) => {
|
|
1685
1713
|
var h;
|
|
1686
|
-
const n = (h =
|
|
1714
|
+
const n = (h = e.currentTarget.files) == null ? void 0 : h[0];
|
|
1687
1715
|
if (n) {
|
|
1688
1716
|
const u = new FileReader();
|
|
1689
1717
|
u.onload = (m) => {
|
|
@@ -1700,14 +1728,14 @@ class qt extends Ze {
|
|
|
1700
1728
|
})
|
|
1701
1729
|
], g(this.bodyElement, {
|
|
1702
1730
|
children: [
|
|
1703
|
-
|
|
1731
|
+
w({
|
|
1704
1732
|
class: "resize",
|
|
1705
|
-
onPointerdown: (
|
|
1706
|
-
|
|
1733
|
+
onPointerdown: (e) => {
|
|
1734
|
+
e.preventDefault();
|
|
1707
1735
|
const i = this.getBoundingClientRect(), n = this.contentElement.scrollTop;
|
|
1708
1736
|
Et(
|
|
1709
1737
|
(h) => {
|
|
1710
|
-
const u =
|
|
1738
|
+
const u = e.x - h.x, m = Math.max(400, i.width + u);
|
|
1711
1739
|
this.style.width = m + "px", C.changeSize("tweaker", m);
|
|
1712
1740
|
},
|
|
1713
1741
|
() => {
|
|
@@ -1727,10 +1755,10 @@ class qt extends Ze {
|
|
|
1727
1755
|
});
|
|
1728
1756
|
}
|
|
1729
1757
|
connectedCallback() {
|
|
1730
|
-
super.connectedCallback(), window.addEventListener("beforeunload",
|
|
1758
|
+
super.connectedCallback(), window.addEventListener("beforeunload", t(this, He)), j.subscribe(t(this, De)), C.changedSizes("tweaker") && (this.style.width = C.changedSizes("tweaker") + "px");
|
|
1731
1759
|
}
|
|
1732
1760
|
disconnectedCallback() {
|
|
1733
|
-
window.removeEventListener("beforeunload",
|
|
1761
|
+
window.removeEventListener("beforeunload", t(this, He)), C.save(), j.unsubscribe(t(this, De));
|
|
1734
1762
|
}
|
|
1735
1763
|
}
|
|
1736
1764
|
Ie = new WeakMap(), He = new WeakMap(), De = new WeakMap();
|