aptechka 0.5.24 → 0.5.25
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/{index-DTe0hK7c.js → index-CSo_PnUP.js} +77 -68
- package/lib/{index-nxoux28n.cjs → index-pPxbZLWQ.cjs} +2 -2
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.d.ts +3 -24
- package/lib/ladder/index.js +69 -130
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/tweaker/index.cjs +1 -1
- package/lib/tweaker/index.js +1 -1
- package/package.json +1 -1
|
@@ -6,28 +6,28 @@ var I = (t, e, s) => (A(t, e, "read from private field"), s ? s.call(t) : e.get(
|
|
|
6
6
|
if (e.has(t))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
9
|
-
},
|
|
9
|
+
}, F = (t, e, s, i) => (A(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s);
|
|
10
10
|
import { CustomElement as U, define as M } from "./custom-element/index.js";
|
|
11
11
|
import "./Store-Cd-E5W1z.js";
|
|
12
12
|
import { i as P } from "./browser-0zX67oeU.js";
|
|
13
13
|
import { d as Q } from "./events-_C2CztxR.js";
|
|
14
14
|
import { a as X } from "./style-CklEF62D.js";
|
|
15
15
|
import "./path-data-polyfill-DgeDWYeI.js";
|
|
16
|
-
import { e as
|
|
16
|
+
import { e as x, p as V, ay as E, D as G } from "./tags-BoPv9fDr.js";
|
|
17
17
|
import { c as D } from "./createStylesheet-KMRQhSa-.js";
|
|
18
18
|
import { aptechkaTheme as w } from "./theme/index.js";
|
|
19
19
|
var j = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, te = (t, e, s, i) => {
|
|
20
|
-
for (var
|
|
21
|
-
(l = t[
|
|
22
|
-
return i &&
|
|
20
|
+
for (var n = i > 1 ? void 0 : i ? ee(e, s) : e, a = t.length - 1, l; a >= 0; a--)
|
|
21
|
+
(l = t[a]) && (n = (i ? l(e, s, n) : l(n)) || n);
|
|
22
|
+
return i && n && j(e, s, n), n;
|
|
23
23
|
}, z = (t, e, s) => {
|
|
24
24
|
if (!e.has(t))
|
|
25
25
|
throw TypeError("Cannot " + s);
|
|
26
|
-
},
|
|
26
|
+
}, r = (t, e, s) => (z(t, e, "read from private field"), s ? s.call(t) : e.get(t)), o = (t, e, s) => {
|
|
27
27
|
if (e.has(t))
|
|
28
28
|
throw TypeError("Cannot add the same private member more than once");
|
|
29
29
|
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
30
|
-
}, c = (t, e, s, i) => (z(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s),
|
|
30
|
+
}, c = (t, e, s, i) => (z(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), R = (t, e, s) => (z(t, e, "access private method"), s), v, u, h, p, f, g, $, C, L;
|
|
31
31
|
const se = D({
|
|
32
32
|
":host": {
|
|
33
33
|
position: "relative"
|
|
@@ -63,11 +63,11 @@ const se = D({
|
|
|
63
63
|
paddingTop: "var(--gap, 0px)"
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
let
|
|
66
|
+
let O = class extends U {
|
|
67
67
|
constructor() {
|
|
68
|
-
super(),
|
|
68
|
+
super(), o(this, C), o(this, v, null), o(this, u, ""), o(this, h, null), o(this, p, !1), o(this, f, void 0), o(this, g, null), o(this, $, () => {
|
|
69
69
|
Q(this);
|
|
70
|
-
}), P && (this.openShadow(se), c(this, v, this.attachInternals()), c(this, g, new ResizeObserver(
|
|
70
|
+
}), P && (this.openShadow(se), c(this, v, this.attachInternals()), c(this, g, new ResizeObserver(r(this, $))), x(this, {
|
|
71
71
|
children: [
|
|
72
72
|
V({
|
|
73
73
|
class: "head",
|
|
@@ -76,24 +76,24 @@ let W = class extends U {
|
|
|
76
76
|
this.opened ? this.close() : this.open();
|
|
77
77
|
}
|
|
78
78
|
}),
|
|
79
|
-
|
|
79
|
+
G({
|
|
80
80
|
class: "body",
|
|
81
81
|
style: {
|
|
82
82
|
height: "0px"
|
|
83
83
|
},
|
|
84
|
-
children:
|
|
84
|
+
children: G({
|
|
85
85
|
class: "body-inner",
|
|
86
86
|
children: E()
|
|
87
87
|
}),
|
|
88
88
|
ref: (t) => {
|
|
89
|
-
c(this,
|
|
89
|
+
c(this, h, t);
|
|
90
90
|
}
|
|
91
91
|
})
|
|
92
92
|
]
|
|
93
93
|
}));
|
|
94
94
|
}
|
|
95
95
|
get value() {
|
|
96
|
-
return
|
|
96
|
+
return r(this, u);
|
|
97
97
|
}
|
|
98
98
|
set value(t) {
|
|
99
99
|
c(this, u, t), this.dispatchEvent(
|
|
@@ -101,54 +101,54 @@ let W = class extends U {
|
|
|
101
101
|
bubbles: !0,
|
|
102
102
|
composed: !0
|
|
103
103
|
})
|
|
104
|
-
),
|
|
104
|
+
), r(this, v).setFormValue(r(this, u));
|
|
105
105
|
}
|
|
106
106
|
get internals() {
|
|
107
|
-
return
|
|
107
|
+
return r(this, v);
|
|
108
108
|
}
|
|
109
109
|
get opened() {
|
|
110
|
-
return
|
|
110
|
+
return r(this, p);
|
|
111
111
|
}
|
|
112
112
|
open() {
|
|
113
|
-
clearTimeout(
|
|
114
|
-
this.classList.add("opened"),
|
|
113
|
+
clearTimeout(r(this, f)), c(this, p, !0), r(this, h).style.display = "grid", this.classList.add("triggered"), setTimeout(() => {
|
|
114
|
+
this.classList.add("opened"), r(this, h).style.height = r(this, h).scrollHeight + "px", R(this, C, L).call(this);
|
|
115
115
|
}, 0);
|
|
116
116
|
}
|
|
117
117
|
close() {
|
|
118
|
-
c(this, p, !1),
|
|
119
|
-
this.classList.remove("triggered"),
|
|
120
|
-
}, X(
|
|
118
|
+
c(this, p, !1), r(this, h).style.height = "0px", this.classList.remove("opened"), R(this, C, L).call(this), c(this, f, setTimeout(() => {
|
|
119
|
+
this.classList.remove("triggered"), r(this, h).style.display = "none";
|
|
120
|
+
}, X(r(this, h))));
|
|
121
121
|
}
|
|
122
122
|
connectedCallback() {
|
|
123
|
-
|
|
123
|
+
r(this, g).observe(r(this, h));
|
|
124
124
|
}
|
|
125
125
|
disconnectedCallback() {
|
|
126
|
-
clearTimeout(
|
|
126
|
+
clearTimeout(r(this, f)), r(this, g).disconnect();
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
129
|
v = /* @__PURE__ */ new WeakMap();
|
|
130
130
|
u = /* @__PURE__ */ new WeakMap();
|
|
131
|
-
|
|
131
|
+
h = /* @__PURE__ */ new WeakMap();
|
|
132
132
|
p = /* @__PURE__ */ new WeakMap();
|
|
133
133
|
f = /* @__PURE__ */ new WeakMap();
|
|
134
134
|
g = /* @__PURE__ */ new WeakMap();
|
|
135
|
-
|
|
135
|
+
$ = /* @__PURE__ */ new WeakMap();
|
|
136
136
|
C = /* @__PURE__ */ new WeakSet();
|
|
137
|
-
|
|
137
|
+
L = function() {
|
|
138
138
|
this.dispatchEvent(
|
|
139
139
|
new CustomEvent("selectToggle", {
|
|
140
140
|
bubbles: !0,
|
|
141
141
|
composed: !0,
|
|
142
142
|
detail: {
|
|
143
|
-
opened:
|
|
143
|
+
opened: r(this, p)
|
|
144
144
|
}
|
|
145
145
|
})
|
|
146
146
|
);
|
|
147
147
|
};
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
O.formAssociated = !0;
|
|
149
|
+
O = te([
|
|
150
150
|
M("e-select")
|
|
151
|
-
],
|
|
151
|
+
], O);
|
|
152
152
|
var y;
|
|
153
153
|
class Y extends U {
|
|
154
154
|
constructor() {
|
|
@@ -159,24 +159,24 @@ class Y extends U {
|
|
|
159
159
|
return I(this, y);
|
|
160
160
|
}
|
|
161
161
|
connectedCallback() {
|
|
162
|
-
var i,
|
|
163
|
-
const s = (
|
|
164
|
-
s ?
|
|
162
|
+
var i, n;
|
|
163
|
+
const s = (n = (i = this.assignedSlot) == null ? void 0 : i.getRootNode()) == null ? void 0 : n.host;
|
|
164
|
+
s ? F(this, y, s) : console.log(this, "e-select not found");
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
y = new WeakMap();
|
|
168
|
-
var ie = Object.defineProperty,
|
|
169
|
-
for (var
|
|
170
|
-
(l = t[
|
|
171
|
-
return i &&
|
|
168
|
+
var ie = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, re = (t, e, s, i) => {
|
|
169
|
+
for (var n = i > 1 ? void 0 : i ? ne(e, s) : e, a = t.length - 1, l; a >= 0; a--)
|
|
170
|
+
(l = t[a]) && (n = (i ? l(e, s, n) : l(n)) || n);
|
|
171
|
+
return i && n && ie(e, s, n), n;
|
|
172
172
|
}, Z = (t, e, s) => {
|
|
173
173
|
if (!e.has(t))
|
|
174
174
|
throw TypeError("Cannot " + s);
|
|
175
|
-
},
|
|
175
|
+
}, T = (t, e, s) => (Z(t, e, "read from private field"), s ? s.call(t) : e.get(t)), q = (t, e, s) => {
|
|
176
176
|
if (e.has(t))
|
|
177
177
|
throw TypeError("Cannot add the same private member more than once");
|
|
178
178
|
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
179
|
-
},
|
|
179
|
+
}, ae = (t, e, s) => (Z(t, e, "access private method"), s), m, W, J;
|
|
180
180
|
const le = D({
|
|
181
181
|
":host": {
|
|
182
182
|
width: "100%",
|
|
@@ -185,18 +185,27 @@ const le = D({
|
|
|
185
185
|
alignItems: "center"
|
|
186
186
|
},
|
|
187
187
|
button: {
|
|
188
|
-
|
|
188
|
+
background: "inherit",
|
|
189
|
+
width: "inherit",
|
|
190
|
+
height: "inherit",
|
|
191
|
+
color: "inherit",
|
|
192
|
+
fontFamily: "inherit",
|
|
193
|
+
fontSize: "inherit",
|
|
194
|
+
border: "inherit",
|
|
195
|
+
textAlign: "inherit",
|
|
196
|
+
padding: 0,
|
|
197
|
+
boxSizing: "border-box"
|
|
189
198
|
}
|
|
190
199
|
});
|
|
191
|
-
let
|
|
200
|
+
let B = class extends Y {
|
|
192
201
|
constructor() {
|
|
193
|
-
super(),
|
|
202
|
+
super(), q(this, W), q(this, m, () => {
|
|
194
203
|
this.selectElement.value === this.value ? this.style.display = "none" : this.style.display = "";
|
|
195
|
-
}), P && (this.openShadow(le),
|
|
204
|
+
}), P && (this.openShadow(le), x(this, {
|
|
196
205
|
children: [
|
|
197
206
|
V({
|
|
198
207
|
onClick: () => {
|
|
199
|
-
|
|
208
|
+
ae(this, W, J).call(this);
|
|
200
209
|
},
|
|
201
210
|
children: E()
|
|
202
211
|
})
|
|
@@ -207,23 +216,23 @@ let F = class extends Y {
|
|
|
207
216
|
return (this.hasAttribute("value") ? this.getAttribute("value") : this.innerText) || "";
|
|
208
217
|
}
|
|
209
218
|
connectedCallback() {
|
|
210
|
-
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change",
|
|
211
|
-
|
|
219
|
+
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", T(this, m)), setTimeout(() => {
|
|
220
|
+
T(this, m).call(this);
|
|
212
221
|
});
|
|
213
222
|
}
|
|
214
223
|
disconnectedCallback() {
|
|
215
|
-
this.selectElement.removeEventListener("change",
|
|
224
|
+
this.selectElement.removeEventListener("change", T(this, m));
|
|
216
225
|
}
|
|
217
226
|
};
|
|
218
227
|
m = /* @__PURE__ */ new WeakMap();
|
|
219
|
-
|
|
228
|
+
W = /* @__PURE__ */ new WeakSet();
|
|
220
229
|
J = function() {
|
|
221
230
|
this.selectElement.value = this.value, this.selectElement.close();
|
|
222
231
|
};
|
|
223
|
-
|
|
232
|
+
B = re([
|
|
224
233
|
M("e-select-option")
|
|
225
|
-
],
|
|
226
|
-
const
|
|
234
|
+
], B);
|
|
235
|
+
const he = `<svg
|
|
227
236
|
xmlns="http://www.w3.org/2000/svg"
|
|
228
237
|
width="32"
|
|
229
238
|
height="32"
|
|
@@ -232,18 +241,18 @@ const oe = `<svg
|
|
|
232
241
|
<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" />
|
|
233
242
|
</svg>
|
|
234
243
|
`;
|
|
235
|
-
var
|
|
236
|
-
for (var
|
|
237
|
-
(l = t[
|
|
238
|
-
return i &&
|
|
244
|
+
var oe = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, de = (t, e, s, i) => {
|
|
245
|
+
for (var n = i > 1 ? void 0 : i ? ce(e, s) : e, a = t.length - 1, l; a >= 0; a--)
|
|
246
|
+
(l = t[a]) && (n = (i ? l(e, s, n) : l(n)) || n);
|
|
247
|
+
return i && n && oe(e, s, n), n;
|
|
239
248
|
}, K = (t, e, s) => {
|
|
240
249
|
if (!e.has(t))
|
|
241
250
|
throw TypeError("Cannot " + s);
|
|
242
|
-
}, d = (t, e, s) => (K(t, e, "read from private field"), s ? s.call(t) : e.get(t)),
|
|
251
|
+
}, d = (t, e, s) => (K(t, e, "read from private field"), s ? s.call(t) : e.get(t)), b = (t, e, s) => {
|
|
243
252
|
if (e.has(t))
|
|
244
253
|
throw TypeError("Cannot add the same private member more than once");
|
|
245
254
|
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
246
|
-
}, pe = (t, e, s, i) => (K(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), S, _,
|
|
255
|
+
}, pe = (t, e, s, i) => (K(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), S, _, k;
|
|
247
256
|
const ve = D({
|
|
248
257
|
":host": {
|
|
249
258
|
width: "100%",
|
|
@@ -266,40 +275,40 @@ const ve = D({
|
|
|
266
275
|
});
|
|
267
276
|
let N = class extends Y {
|
|
268
277
|
constructor() {
|
|
269
|
-
super(),
|
|
278
|
+
super(), b(this, S, null), b(this, _, () => {
|
|
270
279
|
const e = this.selectElement.shadowRoot.querySelector(
|
|
271
280
|
".body slot"
|
|
272
281
|
).assignedElements().find((s) => s.value === this.selectElement.value);
|
|
273
282
|
e && (d(this, S).innerHTML = e.innerHTML);
|
|
274
|
-
}),
|
|
283
|
+
}), b(this, k, () => {
|
|
275
284
|
this.classList.toggle("opened", this.selectElement.opened);
|
|
276
|
-
}), P && (this.openShadow(ve),
|
|
285
|
+
}), P && (this.openShadow(ve), x(this, {
|
|
277
286
|
children: [
|
|
278
287
|
E(),
|
|
279
288
|
E({
|
|
280
289
|
name: "arrow",
|
|
281
|
-
children:
|
|
290
|
+
children: x(he, { class: "default-arrow" })
|
|
282
291
|
})
|
|
283
292
|
]
|
|
284
293
|
}), this.slot = "head");
|
|
285
294
|
}
|
|
286
295
|
connectedCallback() {
|
|
287
|
-
super.connectedCallback(), pe(this, S, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change", d(this, _)), d(this, _).call(this), this.selectElement.addEventListener("selectToggle", d(this,
|
|
296
|
+
super.connectedCallback(), pe(this, S, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change", d(this, _)), d(this, _).call(this), this.selectElement.addEventListener("selectToggle", d(this, k));
|
|
288
297
|
}
|
|
289
298
|
disconnectedCallback() {
|
|
290
|
-
this.selectElement.removeEventListener("change", d(this, _)), this.selectElement.removeEventListener("selectToggle", d(this,
|
|
299
|
+
this.selectElement.removeEventListener("change", d(this, _)), this.selectElement.removeEventListener("selectToggle", d(this, k));
|
|
291
300
|
}
|
|
292
301
|
};
|
|
293
302
|
S = /* @__PURE__ */ new WeakMap();
|
|
294
303
|
_ = /* @__PURE__ */ new WeakMap();
|
|
295
|
-
|
|
304
|
+
k = /* @__PURE__ */ new WeakMap();
|
|
296
305
|
N = de([
|
|
297
306
|
M("e-select-head")
|
|
298
307
|
], N);
|
|
299
308
|
export {
|
|
300
|
-
|
|
301
|
-
|
|
309
|
+
O as S,
|
|
310
|
+
he as a,
|
|
302
311
|
Y as b,
|
|
303
|
-
|
|
312
|
+
B as c,
|
|
304
313
|
N as d
|
|
305
314
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var z=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var D=(t,e,s)=>(z(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},H=(t,e,s,i)=>(z(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const S=require("./custom-element/index.cjs");require("./Store-BQGNOHlY.cjs");const W=require("./browser-CpzFX2xg.cjs"),N=require("./events-Crwi8fz6.cjs"),V=require("./style-At6aDoqG.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");const a=require("./tags-CueX-JLX.cjs"),M=require("./createStylesheet-C8aQQ4hd.cjs"),E=require("./theme/index.cjs");var Y=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,J=(t,e,s,i)=>{for(var n=i>1?void 0:i?Z(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Y(e,s,n),n},P=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(P(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},d=(t,e,s,i)=>(P(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),I=(t,e,s)=>(P(t,e,"access private method"),s),u,f,o,v,g,m,O,C,$;const K=M.createStylesheet({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:`var(--duration, ${E.aptechkaTheme.durationShort.var})`,transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});exports.SelectElement=class extends S.CustomElement{constructor(){super(),c(this,C),c(this,u,null),c(this,f,""),c(this,o,null),c(this,v,!1),c(this,g,void 0),c(this,m,null),c(this,O,()=>{N.dispatchSizeChangeEvent(this)}),W.isBrowser&&(this.openShadow(K),d(this,u,this.attachInternals()),d(this,m,new ResizeObserver(r(this,O))),a.element(this,{children:[a.button({class:"head",children:a.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),a.div({class:"body",style:{height:"0px"},children:a.div({class:"body-inner",children:a.slot()}),ref:e=>{d(this,o,e)}})]}))}get value(){return r(this,f)}set value(e){d(this,f,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),r(this,u).setFormValue(r(this,f))}get internals(){return r(this,u)}get opened(){return r(this,v)}open(){clearTimeout(r(this,g)),d(this,v,!0),r(this,o).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),r(this,o).style.height=r(this,o).scrollHeight+"px",I(this,C,$).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),I(this,C,$).call(this),d(this,g,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},V.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,m).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,g)),r(this,m).disconnect()}};u=new WeakMap;f=new WeakMap;o=new WeakMap;v=new WeakMap;g=new WeakMap;m=new WeakMap;O=new WeakMap;C=new WeakSet;$=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};exports.SelectElement.formAssociated=!0;exports.SelectElement=J([S.define("e-select")],exports.SelectElement);var y;class q extends S.CustomElement{constructor(){super(...arguments);A(this,y,null)}get selectElement(){return D(this,y)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,y,s):console.log(this,"e-select not found")}}y=new WeakMap;var Q=Object.defineProperty,X=Object.getOwnPropertyDescriptor,j=(t,e,s,i)=>{for(var n=i>1?void 0:i?X(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Q(e,s,n),n},F=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},x=(t,e,s)=>(F(t,e,"read from private field"),s?s.call(t):e.get(t)),B=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},ee=(t,e,s)=>(F(t,e,"access private method"),s),w,L,G;const te=M.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"},button:{background:"inherit",width:"inherit",height:"inherit",color:"inherit",fontFamily:"inherit",fontSize:"inherit",border:"inherit",textAlign:"inherit",padding:0,boxSizing:"border-box"}});exports.SelectOptionElement=class extends q{constructor(){super(),B(this,L),B(this,w,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),W.isBrowser&&(this.openShadow(te),a.element(this,{children:[a.button({onClick:()=>{ee(this,L,G).call(this)},children:a.slot()})]}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",x(this,w)),setTimeout(()=>{x(this,w).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",x(this,w))}};w=new WeakMap;L=new WeakSet;G=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=j([S.define("e-select-option")],exports.SelectOptionElement);const R=`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="32"
|
|
4
4
|
height="32"
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
>
|
|
7
7
|
<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" />
|
|
8
8
|
</svg>
|
|
9
|
-
`;var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ne=(t,e,s,i)=>{for(var n=i>1?void 0:i?ie(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&se(e,s,n),n},U=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},p=(t,e,s)=>(U(t,e,"read from private field"),s?s.call(t):e.get(t)),
|
|
9
|
+
`;var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ne=(t,e,s,i)=>{for(var n=i>1?void 0:i?ie(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&se(e,s,n),n},U=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},p=(t,e,s)=>(U(t,e,"read from private field"),s?s.call(t):e.get(t)),b=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},re=(t,e,s,i)=>(U(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),k,_,T;const ae=M.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center",justifyContent:"space-between"},".default-arrow":{flexShrink:"0",width:"var(--arrow-size, 1em)",height:"var(--arrow-size, 1em)",fill:`var(--arrow-color, ${E.aptechkaTheme.colorDark.var})`,transitionProperty:"transform",transitionDuration:`var(--duration, ${E.aptechkaTheme.durationShort.var})`},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});exports.SelectHeadElement=class extends q{constructor(){super(),b(this,k,null),b(this,_,()=>{const s=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(i=>i.value===this.selectElement.value);s&&(p(this,k).innerHTML=s.innerHTML)}),b(this,T,()=>{this.classList.toggle("opened",this.selectElement.opened)}),W.isBrowser&&(this.openShadow(ae),a.element(this,{children:[a.slot(),a.slot({name:"arrow",children:a.element(R,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),re(this,k,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",p(this,_)),p(this,_).call(this),this.selectElement.addEventListener("selectToggle",p(this,T))}disconnectedCallback(){this.selectElement.removeEventListener("change",p(this,_)),this.selectElement.removeEventListener("selectToggle",p(this,T))}};k=new WeakMap;_=new WeakMap;T=new WeakMap;exports.SelectHeadElement=ne([S.define("e-select-head")],exports.SelectHeadElement);exports.SelectUserElement=q;exports.arrowIcon=R;
|
package/lib/ladder/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var k=Object.defineProperty;var f=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var p=(s,t,e)=>t in s?k(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,b=(s,t)=>{for(var e in t||(t={}))S.call(t,e)&&p(s,e,t[e]);if(f)for(var e of f(t))g.call(t,e)&&p(s,e,t[e]);return s};var y=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var c=(s,t,e)=>(y(s,t,"read from private field"),e?e.call(s):t.get(s)),h=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},d=(s,t,e,o)=>(y(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../Store-BQGNOHlY.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var u,l,a;class q extends v.Store{constructor(e){super(e,{equalityCheck:()=>!1});h(this,u,void 0);h(this,l,void 0);h(this,a,void 0);d(this,u,b({},e)),d(this,l,new Map),d(this,a,new Set)}get base(){return c(this,u)}get steps(){return c(this,l)}close(){super.close(),c(this,a).clear(),c(this,l).clear()}bind(e){c(this,a).add(e)}unbind(e){c(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e)[1]}setStep(e,o,n){const i={};for(const r in this.current)i[r]=n[r]||0;this.steps.set(e,[o,i])}calculate(){const e={};for(const o in this.base)e[o]=this.base[o];for(const o of this.steps){const n=o[1];if(n[0]==="+")for(const i in this.base){const r=n[1][i];e[i]+=r}else if(n[0]==="*")for(const i in this.base){const r=n[1][i];e[i]*=r}else if(n[0]==="/")for(const i in this.base){const r=n[1][i];e[i]/=r}else if(n[0]==="-")for(const i in this.base){const r=n[1][i];e[i]-=r}}for(const o of c(this,a))for(const n in e)o[n]=e[n];this.current=e}}u=new WeakMap,l=new WeakMap,a=new WeakMap;exports.Ladder=q;
|
package/lib/ladder/index.d.ts
CHANGED
|
@@ -2,31 +2,11 @@ import { Store } from '../store';
|
|
|
2
2
|
|
|
3
3
|
export type LadderDefaultStepName = number | string;
|
|
4
4
|
export type LadderOperation = '+' | '*' | '/' | '-';
|
|
5
|
-
export type
|
|
5
|
+
export type LadderStep<T> = [LadderOperation, T];
|
|
6
|
+
export type LadderSteps<K, T> = Map<K, LadderStep<T>>;
|
|
6
7
|
export type LadderDefaultValueType = {
|
|
7
8
|
[key: string]: number;
|
|
8
9
|
};
|
|
9
|
-
interface LadderStepSpring {
|
|
10
|
-
damping?: number;
|
|
11
|
-
mass?: number;
|
|
12
|
-
stiffness?: number;
|
|
13
|
-
}
|
|
14
|
-
interface LadderStepParameters<T extends LadderDefaultValueType = LadderDefaultValueType> extends LadderStepSpring {
|
|
15
|
-
operation: LadderOperation;
|
|
16
|
-
value: T;
|
|
17
|
-
}
|
|
18
|
-
declare class LadderStep<T extends LadderDefaultValueType = LadderDefaultValueType> {
|
|
19
|
-
#private;
|
|
20
|
-
damping: number;
|
|
21
|
-
mass: number;
|
|
22
|
-
stiffness: number;
|
|
23
|
-
constructor(parameters: LadderStepParameters<T>);
|
|
24
|
-
get operation(): LadderOperation;
|
|
25
|
-
get value(): T;
|
|
26
|
-
set value(value: T);
|
|
27
|
-
set spring(value: LadderStepSpring | undefined);
|
|
28
|
-
update(timeBetweenFrames: number): boolean;
|
|
29
|
-
}
|
|
30
10
|
export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValueType, K extends LadderDefaultStepName = LadderDefaultStepName> extends Store<V> {
|
|
31
11
|
#private;
|
|
32
12
|
constructor(base: V);
|
|
@@ -37,7 +17,6 @@ export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValu
|
|
|
37
17
|
unbind(sub: V): void;
|
|
38
18
|
deleteStep(stepName: K): void;
|
|
39
19
|
getStepValue(stepName: K): V;
|
|
40
|
-
setStep(stepName: K,
|
|
20
|
+
setStep(stepName: K, action: LadderOperation, value: Partial<V>): void;
|
|
41
21
|
calculate(): void;
|
|
42
22
|
}
|
|
43
|
-
export {};
|
package/lib/ladder/index.js
CHANGED
|
@@ -1,158 +1,97 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var p = Object.getOwnPropertySymbols;
|
|
3
|
+
var S = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var d = (t, s, e) => s in t ? k(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e, b = (t, s) => {
|
|
5
|
+
for (var e in s || (s = {}))
|
|
6
|
+
S.call(s, e) && d(t, e, s[e]);
|
|
7
|
+
if (p)
|
|
8
|
+
for (var e of p(s))
|
|
9
|
+
g.call(s, e) && d(t, e, s[e]);
|
|
10
|
+
return t;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
if (!
|
|
14
|
-
throw TypeError("Cannot " +
|
|
12
|
+
var y = (t, s, e) => {
|
|
13
|
+
if (!s.has(t))
|
|
14
|
+
throw TypeError("Cannot " + e);
|
|
15
15
|
};
|
|
16
|
-
var
|
|
17
|
-
if (
|
|
16
|
+
var c = (t, s, e) => (y(t, s, "read from private field"), e ? e.call(t) : s.get(t)), u = (t, s, e) => {
|
|
17
|
+
if (s.has(t))
|
|
18
18
|
throw TypeError("Cannot add the same private member more than once");
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
import { S as R } from "../Store-Cd-E5W1z.js";
|
|
23
|
-
import { d as j } from "../math-BOBiC4TN.js";
|
|
24
|
-
import { p as B } from "../number-Bo5RdrA1.js";
|
|
19
|
+
s instanceof WeakSet ? s.add(t) : s.set(t, e);
|
|
20
|
+
}, f = (t, s, e, o) => (y(t, s, "write to private field"), o ? o.call(t, e) : s.set(t, e), e);
|
|
21
|
+
import { S as m } from "../Store-Cd-E5W1z.js";
|
|
25
22
|
import "../path-data-polyfill-DgeDWYeI.js";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
p(this, y, void 0);
|
|
31
|
-
p(this, a, void 0);
|
|
32
|
-
p(this, f, void 0);
|
|
33
|
-
p(this, d, void 0);
|
|
34
|
-
this.damping = 0, this.mass = 0, this.stiffness = 0, r(this, d, 0), r(this, y, t.operation), r(this, a, t.value), r(this, f, e(this, a)), this.spring = t;
|
|
35
|
-
}
|
|
36
|
-
get operation() {
|
|
37
|
-
return e(this, y);
|
|
38
|
-
}
|
|
39
|
-
get value() {
|
|
40
|
-
return e(this, a);
|
|
41
|
-
}
|
|
42
|
-
set value(t) {
|
|
43
|
-
r(this, f, t), this.damping || r(this, a, t);
|
|
44
|
-
}
|
|
45
|
-
set spring(t) {
|
|
46
|
-
this.damping = (t == null ? void 0 : t.damping) || 0, this.mass = (t == null ? void 0 : t.mass) || 0, this.stiffness = (t == null ? void 0 : t.stiffness) || 0;
|
|
47
|
-
}
|
|
48
|
-
update(t) {
|
|
49
|
-
let s = 0;
|
|
50
|
-
const h = t / 1e3;
|
|
51
|
-
for (const i in e(this, a)) {
|
|
52
|
-
if (e(this, f)[i] !== e(this, a)[i] && (this.mass || this.stiffness)) {
|
|
53
|
-
const o = (e(this, f)[i] - e(this, a)[i]) * this.stiffness - e(this, d) * this.damping;
|
|
54
|
-
r(this, d, e(this, d) + o / this.mass * h), e(this, a)[i] += e(this, d) * h;
|
|
55
|
-
} else
|
|
56
|
-
e(this, a)[i] = j(
|
|
57
|
-
e(this, a)[i],
|
|
58
|
-
e(this, f)[i],
|
|
59
|
-
this.damping,
|
|
60
|
-
h
|
|
61
|
-
);
|
|
62
|
-
B(e(this, a)[i], 4) !== B(e(this, f)[i], 4) && s++;
|
|
63
|
-
}
|
|
64
|
-
return s === 0;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
y = new WeakMap(), a = new WeakMap(), f = new WeakMap(), d = new WeakMap();
|
|
68
|
-
var g, m, l, u, L, C, b;
|
|
69
|
-
class K extends R {
|
|
70
|
-
constructor(s) {
|
|
71
|
-
super(s, {
|
|
23
|
+
var l, h, a;
|
|
24
|
+
class V extends m {
|
|
25
|
+
constructor(e) {
|
|
26
|
+
super(e, {
|
|
72
27
|
equalityCheck: () => !1
|
|
73
28
|
});
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
p(this, u, !1);
|
|
79
|
-
p(this, b, (s) => {
|
|
80
|
-
let h = 0;
|
|
81
|
-
for (const i of this.steps) {
|
|
82
|
-
const c = i[1].update(s.timeBetweenFrames);
|
|
83
|
-
h += c ? 0 : 1;
|
|
84
|
-
}
|
|
85
|
-
this.calculate(), h || w.unsubscribe(e(this, b));
|
|
86
|
-
});
|
|
87
|
-
r(this, g, S({}, s)), r(this, m, /* @__PURE__ */ new Map()), r(this, l, /* @__PURE__ */ new Set());
|
|
29
|
+
u(this, l, void 0);
|
|
30
|
+
u(this, h, void 0);
|
|
31
|
+
u(this, a, void 0);
|
|
32
|
+
f(this, l, b({}, e)), f(this, h, /* @__PURE__ */ new Map()), f(this, a, /* @__PURE__ */ new Set());
|
|
88
33
|
}
|
|
89
34
|
get base() {
|
|
90
|
-
return
|
|
35
|
+
return c(this, l);
|
|
91
36
|
}
|
|
92
37
|
get steps() {
|
|
93
|
-
return
|
|
38
|
+
return c(this, h);
|
|
94
39
|
}
|
|
95
40
|
close() {
|
|
96
|
-
super.close(),
|
|
41
|
+
super.close(), c(this, a).clear(), c(this, h).clear();
|
|
97
42
|
}
|
|
98
|
-
bind(
|
|
99
|
-
|
|
43
|
+
bind(e) {
|
|
44
|
+
c(this, a).add(e);
|
|
100
45
|
}
|
|
101
|
-
unbind(
|
|
102
|
-
|
|
46
|
+
unbind(e) {
|
|
47
|
+
c(this, a).delete(e);
|
|
103
48
|
}
|
|
104
|
-
deleteStep(
|
|
105
|
-
this.steps.delete(
|
|
49
|
+
deleteStep(e) {
|
|
50
|
+
this.steps.delete(e);
|
|
106
51
|
}
|
|
107
|
-
getStepValue(
|
|
108
|
-
return this.steps.get(
|
|
52
|
+
getStepValue(e) {
|
|
53
|
+
return this.steps.get(e)[1];
|
|
109
54
|
}
|
|
110
|
-
setStep(
|
|
111
|
-
const
|
|
112
|
-
for (const
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
k || (k = new z(S({ operation: h, value: S({}, e(this, g)) }, o)), this.steps.set(s, k)), k.spring = o, k.value = c, q(this, L, C).call(this);
|
|
55
|
+
setStep(e, o, n) {
|
|
56
|
+
const i = {};
|
|
57
|
+
for (const r in this.current)
|
|
58
|
+
i[r] = n[r] || 0;
|
|
59
|
+
this.steps.set(e, [o, i]);
|
|
116
60
|
}
|
|
117
61
|
calculate() {
|
|
118
|
-
const
|
|
119
|
-
for (const
|
|
120
|
-
|
|
121
|
-
for (const
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
124
|
-
for (const
|
|
125
|
-
const
|
|
126
|
-
|
|
62
|
+
const e = {};
|
|
63
|
+
for (const o in this.base)
|
|
64
|
+
e[o] = this.base[o];
|
|
65
|
+
for (const o of this.steps) {
|
|
66
|
+
const n = o[1];
|
|
67
|
+
if (n[0] === "+")
|
|
68
|
+
for (const i in this.base) {
|
|
69
|
+
const r = n[1][i];
|
|
70
|
+
e[i] += r;
|
|
127
71
|
}
|
|
128
|
-
else if (
|
|
129
|
-
for (const
|
|
130
|
-
const
|
|
131
|
-
|
|
72
|
+
else if (n[0] === "*")
|
|
73
|
+
for (const i in this.base) {
|
|
74
|
+
const r = n[1][i];
|
|
75
|
+
e[i] *= r;
|
|
132
76
|
}
|
|
133
|
-
else if (
|
|
134
|
-
for (const
|
|
135
|
-
const
|
|
136
|
-
|
|
77
|
+
else if (n[0] === "/")
|
|
78
|
+
for (const i in this.base) {
|
|
79
|
+
const r = n[1][i];
|
|
80
|
+
e[i] /= r;
|
|
137
81
|
}
|
|
138
|
-
else if (
|
|
139
|
-
for (const
|
|
140
|
-
const
|
|
141
|
-
|
|
82
|
+
else if (n[0] === "-")
|
|
83
|
+
for (const i in this.base) {
|
|
84
|
+
const r = n[1][i];
|
|
85
|
+
e[i] -= r;
|
|
142
86
|
}
|
|
143
87
|
}
|
|
144
|
-
for (const
|
|
145
|
-
for (const
|
|
146
|
-
|
|
147
|
-
this.current =
|
|
88
|
+
for (const o of c(this, a))
|
|
89
|
+
for (const n in e)
|
|
90
|
+
o[n] = e[n];
|
|
91
|
+
this.current = e;
|
|
148
92
|
}
|
|
149
93
|
}
|
|
150
|
-
|
|
151
|
-
let s = !1;
|
|
152
|
-
e(this, m).forEach((h) => {
|
|
153
|
-
h.damping && (s = !0);
|
|
154
|
-
}), s && !e(this, u) ? (r(this, u, !0), w.subscribe(e(this, b))) : !s && e(this, u) && (r(this, u, !1), w.unsubscribe(e(this, b)));
|
|
155
|
-
}, b = new WeakMap();
|
|
94
|
+
l = new WeakMap(), h = new WeakMap(), a = new WeakMap();
|
|
156
95
|
export {
|
|
157
|
-
|
|
96
|
+
V as Ladder
|
|
158
97
|
};
|
package/lib/select/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-pPxbZLWQ.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
|
package/lib/select/index.js
CHANGED
package/lib/tweaker/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ce=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var u=(t,e,r)=>(ce(t,e,"read from private field"),r?r.call(t):e.get(t)),q=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},$=(t,e,r,n)=>(ce(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);const we=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const v=require("../custom-element/index.cjs"),d=require("../Store-BQGNOHlY.cjs"),me=require("../file-EevnUtRj.cjs"),ke=require("../function-MthRj-GJ.cjs"),h=require("../tags-CueX-JLX.cjs"),m=require("../createStylesheet-C8aQQ4hd.cjs"),be=require("../Viewport-DhKPH5nw.cjs"),s=require("../theme/index.cjs"),_e=require("../accordion/index.cjs"),Se=require("../index-nxoux28n.cjs"),ye=require("../events-Crwi8fz6.cjs");require("../checkbox/index.cjs");const Te=require("../math-GDWEqu7y.cjs"),de='<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>',pe='<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>',Ce='<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>',xe='<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>';var x,w;class $e{constructor(){q(this,x,"");q(this,w,[]);$(this,x,d.storeRegistry.projectName+"-studio")}openPanel(e){u(this,w).includes(e)||u(this,w).push(e)}closePanel(e){$(this,w,u(this,w).filter(r=>r!==e))}isPanelOpened(e){return u(this,w).includes(e)}save(){const e={openedPanels:u(this,w)};localStorage.setItem(u(this,x),JSON.stringify(e)),d.storeRegistry.saveState()}load(){d.storeRegistry.loadState();const e=localStorage.getItem(u(this,x));if(e)try{const r=JSON.parse(e);r.openedPanels&&$(this,w,r.openedPanels)}catch(r){console.error(r)}}}x=new WeakMap,w=new WeakMap;const C=new $e;var _;class F extends v.CustomElement{constructor(...r){super();q(this,_,void 0);$(this,_,r)}addStore(r){u(this,_).push(r)}get firstStore(){return u(this,_)[0]}get stores(){return u(this,_)}updateStores(r){u(this,_).forEach(n=>{n.current=r})}}_=new WeakMap;var Pe=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Me=(t,e,r,n)=>{for(var a=n>1?void 0:n?Oe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Pe(e,r,a),a};const Ee=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{padding:"0",margin:"0",width:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,borderRadius:s.aptechkaTheme.borderRadius.var,overflow:"hidden",accentColor:s.aptechkaTheme.colorLight.var}});let re=class extends F{constructor(...t){super(...t),this.openShadow(Ee),h.element(this,{children:[h.element("e-checkbox",{onChange:e=>{this.updateStores(e.currentTarget.checked)},ref:e=>{this.firstStore.subscribe(r=>{e.checked=r.current})}})]})}};re=Me([v.define("e-tweaker-boolean-manager")],re);var Re=Object.defineProperty,De=Object.getOwnPropertyDescriptor,We=(t,e,r,n)=>{for(var a=n>1?void 0:n?De(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Re(e,r,a),a};const Le=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:s.aptechkaTheme.heightInput.var,padding:"0",background:"none",borderRadius:s.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:s.aptechkaTheme.borderRadius.var,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.93)`}});let ae=class extends F{constructor(...t){super(...t),this.openShadow(Le),h.element(this,{children:[h.input({type:"color",value:this.firstStore,onInput:e=>{this.updateStores(e.currentTarget.value)}})]})}};ae=We([v.define("e-tweaker-color-manager")],ae);var Ie=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Ae=(t,e,r,n)=>{for(var a=n>1?void 0:n?Fe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ie(e,r,a),a};const qe=m.createStylesheet({a:{color:"inherit"}});let ne=class extends F{constructor(...t){var e,r;super(...t),this.openShadow(qe),h.element(this,{children:[h.a({href:this.firstStore,target:(r=(e=this.firstStore.passport)==null?void 0:e.manager)!=null&&r.sameWindow?"_self":"_blank",children:this.firstStore})]})}};ne=Ae([v.define("e-tweaker-link-manager")],ne);var ze=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,He=(t,e,r,n)=>{for(var a=n>1?void 0:n?Ne(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&ze(e,r,a),a},Ze=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},j=(t,e,r)=>(Ze(t,e,"read from private field"),r?r.call(t):e.get(t)),Ke=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},P;const Ge=m.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:s.aptechkaTheme.fontSizeSmall.var},".text-input":{height:s.aptechkaTheme.heightInput.var,width:"100%",margin:"0",padding:`0 ${s.aptechkaTheme.gapSmall.var}`,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var}});let Q=class extends F{constructor(...t){super(...t),Ke(this,P,new d.Store([])),this.openShadow(Ge),h.element(this,{children:[h.input({class:"text-input",type:"string",value:this.firstStore,onChange:e=>{this.updateStores(e.currentTarget.value)}}),j(this,P)]})}appendContent(t){j(this,P).current=[...j(this,P).current,t]}};P=new WeakMap;Q=He([v.define("e-tweaker-string-manager")],Q);var Ve=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=(t,e,r,n)=>{for(var a=n>1?void 0:n?Je(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ve(e,r,a),a},ue=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},b=(t,e,r)=>(ue(t,e,"read from private field"),r?r.call(t):e.get(t)),z=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},ee=(t,e,r,n)=>(ue(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),O,M,E,H;let U=class extends Q{constructor(...t){var e,r,n,a,o,i;super(...t),z(this,O,void 0),z(this,M,void 0),z(this,E,void 0),z(this,H,k=>{const A=typeof k=="string"?parseFloat(k)||this.min:k,fe=Te.clamp(A,b(this,M),b(this,E));return this.toFixed(fe)}),ee(this,M,((r=(e=this.firstStore.passport)==null?void 0:e.manager)==null?void 0:r.min)||0),ee(this,E,((a=(n=this.firstStore.passport)==null?void 0:n.manager)==null?void 0:a.max)||1),ee(this,O,((i=(o=this.firstStore.passport)==null?void 0:o.manager)==null?void 0:i.step)||.01)}get min(){return b(this,M)}get max(){return b(this,E)}get step(){return b(this,O)}toFixed(t){var r;const e=((r=b(this,O).toString().split(".")[1])==null?void 0:r.length)||0;return e?+t.toFixed(e):Math.ceil(t)}connectedCallback(){this.firstStore.addMiddleware(b(this,H))}disconnectedCallback(){this.firstStore.removeMiddleware(b(this,H))}};O=new WeakMap;M=new WeakMap;E=new WeakMap;H=new WeakMap;U=Ye([v.define("e-tweaker-number-manager")],U);var Be=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Ue=(t,e,r,n)=>{for(var a=n>1?void 0:n?Qe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Be(e,r,a),a};const Xe=m.createStylesheet({":host":{width:"100%"},".text-input":{width:"60px",marginRight:s.aptechkaTheme.gapLarge.var,textAlign:"center"},".range-input":{boxSizing:"border-box","-webkit-appearance":"none",height:"8px",width:"100%",margin:"0",padding:"0",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".range-input::-webkit-slider-thumb":{"-webkit-appearance":"none",height:`calc(${s.aptechkaTheme.heightInput.var} * 0.7)`,width:s.aptechkaTheme.borderRadius.var,borderRadius:s.aptechkaTheme.borderRadius.var,backgroundColor:s.aptechkaTheme.colorLight.var,transitionProperty:"background-color",transitionDuration:s.aptechkaTheme.durationShort.var},".range-input:focus::-webkit-slider-thumb":{backgroundColor:s.aptechkaTheme.colorActive.var},".range-input::-webkit-slider-runnable-track":{"-webkit-appearance":"none","box-shadow":"none",border:"none",background:"transparent"}});let ie=class extends U{constructor(...t){super(...t),this.addStylesheet(Xe),this.appendContent(h.input({class:"range-input",type:"range",min:this.min,max:this.max,step:this.step,value:this.firstStore,onInput:e=>{this.updateStores(parseFloat(e.currentTarget.value))}}))}};ie=Ue([v.define("e-tweaker-range-manager")],ie);var je=Object.defineProperty,et=Object.getOwnPropertyDescriptor,tt=(t,e,r,n)=>{for(var a=n>1?void 0:n?et(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&je(e,r,a),a};const rt=m.createStylesheet({"e-select":{width:"100%","--arrow-color":s.aptechkaTheme.colorLight.var},"e-select-head":{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},"e-select-option":{transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"color"},"e-select-option:hover":{color:s.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"transform",transitionDuration:s.aptechkaTheme.durationShort.var},".opened svg":{transform:"scaleY(-1)"}});let se=class extends F{constructor(...t){var r,n;super(...t),this.openShadow(rt);const e=((n=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:n.variants)||[];h.element(this,{children:h.element("e-select",{value:this.firstStore,onChange:a=>{this.updateStores(a.currentTarget.value)},lightChildren:[h.element("e-select-head",{lightChildren:[h.span({"data-value-holder":""})]}),...e.map((a,o)=>h.element("e-select-option",{lightChildren:a,default:o===0?!0:null}))]})})}};se=tt([v.define("e-tweaker-select-manager")],se);const at={boolean:re,color:ae,link:ne,number:U,range:ie,select:se,string:Q};var nt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,st=(t,e,r,n)=>{for(var a=n>1?void 0:n?it(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&nt(e,r,a),a},ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},l=(t,e,r)=>(ve(t,e,"read from private field"),r?r.call(t):e.get(t)),S=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},y=(t,e,r,n)=>(ve(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),g,R,D,W,L,Z,K;const ot=m.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.4fr 1fr",alignItems:"center",color:s.aptechkaTheme.colorLight.var,gap:s.aptechkaTheme.gapMedium.var},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:s.aptechkaTheme.fontSizeMedium.var,display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:s.aptechkaTheme.colorLight.var,transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:s.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});let X=class extends v.CustomElement{constructor(t){var r,n,a,o;super(),S(this,g,[]),S(this,R,void 0),S(this,D,void 0),S(this,W,!1),S(this,L,void 0),S(this,Z,()=>{d.activeStores.current.find(i=>l(this,g).includes(i))||this.remove()}),S(this,K,i=>{l(this,W)&&((i.metaKey||i.ctrlKey)&&i.code==="KeyC"?navigator.clipboard.writeText(l(this,g)[0].current):(i.metaKey||i.ctrlKey)&&i.code==="KeyR"&&(l(this,g).forEach(k=>{k.reset()}),i.preventDefault()))}),y(this,g,[t.store]),y(this,R,t.store.passport.name),y(this,D,l(this,R).split(".").slice(-1).toString());const e=((n=(r=t.store.passport)==null?void 0:r.manager)==null?void 0:n.type)||"string";y(this,L,new at[e](l(this,g)[0])),this.openShadow(ot),h.element(this,{class:{disabled:((o=(a=t.store.passport)==null?void 0:a.manager)==null?void 0:o.disabled)||!1},onPointerleave:()=>{y(this,W,!1)},onPointerenter:()=>{y(this,W,!0)},children:[h.div({class:"head",children:[h.div({class:"name",children:l(this,D)+":"}),h.div({class:"head-buttons",children:[h.button({class:"head-button",children:pe,onClick:()=>{navigator.clipboard.writeText(l(this,g)[0].current)}}),h.button({class:"head-button",children:de,onClick:()=>{l(this,g).forEach(i=>{i.reset()})}})]})]}),l(this,L)]})}get key(){return l(this,R)}get name(){return l(this,D)}get stores(){return l(this,g)}addStore(t){l(this,L).addStore(t)}connectedCallback(){d.activeStores.subscribe(l(this,Z)),addEventListener("keydown",l(this,K)),ye.dispatchSizeChangeEvent(this)}disconnectedCallback(){d.activeStores.unsubscribe(l(this,Z)),removeEventListener("keydown",l(this,K))}};g=new WeakMap;R=new WeakMap;D=new WeakMap;W=new WeakMap;L=new WeakMap;Z=new WeakMap;K=new WeakMap;X=st([v.define("e-tweaker-field")],X);var ht=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,lt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ct(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&ht(e,r,a),a},ge=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},c=(t,e,r)=>(ge(t,e,"read from private field"),r?r.call(t):e.get(t)),T=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},te=(t,e,r,n)=>(ge(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),f,G,p,V,J,oe;const dt=m.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:s.aptechkaTheme.tweakerFolderHeight.var,paddingLeft:s.aptechkaTheme.gapMedium.var,paddingRight:s.aptechkaTheme.gapMedium.var,display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:s.aptechkaTheme.colorDarkAux.var,borderRadius:s.aptechkaTheme.borderRadius.var},".name":{fontSize:s.aptechkaTheme.fontSizeLarge.var,color:s.aptechkaTheme.colorLight.var},".body":{transitionProperty:"height",transitionDuration:s.aptechkaTheme.durationShort.var,overflow:"hidden",height:"0px"},".body-content":{boxSizing:"border-box",padding:s.aptechkaTheme.gapLarge.var,display:"grid",gap:s.aptechkaTheme.gapMedium.var},".arrow":{width:"20px",height:"20px",fill:s.aptechkaTheme.colorLight.var,transition:`transform ${s.aptechkaTheme.durationShort.var}`},".opened .arrow":{transform:"scaleY(-1)"}});let I=class extends _e.AccordionElement{constructor(t){super(),T(this,f,void 0),T(this,G,new d.Store(null)),T(this,p,new d.Store([])),T(this,V,void 0),T(this,J,null),T(this,oe,e=>{let r=[],n=[];e.forEach(a=>{r=[...r,...a.removedNodes],n=[...n,...a.addedNodes]}),c(this,p).current=c(this,p).current.filter(a=>!r.includes(a)),c(this,f)&&!c(this,p).current.length&&!n.length&&this.remove()}),this.openShadow(dt),te(this,f,t.key),te(this,V,new MutationObserver(c(this,oe))),h.element(this,{onAccordionItemToggle:e=>{e.stopPropagation(),e.detail.opened?C.openPanel(c(this,f)):C.closePanel(c(this,f))},children:[h.div({class:"wrapper",children:[h.div({class:"head",children:[c(this,f)?h.div({class:"name",children:[c(this,f).split(".").slice(-1).toString()]}):null,c(this,G),h.element(Se.arrowIcon,{class:"arrow"})]}),h.div({class:"body",children:h.div({class:"body-content",children:c(this,p),ref:e=>te(this,J,e.firstElementChild)})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return c(this,f)}get head(){return c(this,G)}get content(){return c(this,p)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{C.isPanelOpened(c(this,f))&&this.openAll({skipTransition:!0})},50),c(this,V).observe(c(this,J),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const r=t.store.passport.name.split("."),n=r.slice(0,r.length-t.remainingFolders.length).join("."),a=c(this,p).current.find(o=>o.key===n);a instanceof I?a.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):c(this,p).current=[...c(this,p).current,new I({key:n,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else{const e=c(this,p).current.find(r=>r.key===t.store.passport.name);e instanceof X?e.addStore(t.store):c(this,p).current=[...c(this,p).current,new X({store:t.store})]}}};f=new WeakMap;G=new WeakMap;p=new WeakMap;V=new WeakMap;J=new WeakMap;oe=new WeakMap;I=lt([v.define("e-tweaker-folder")],I);var pt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,vt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ut(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&pt(e,r,a),a},gt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},N=(t,e,r)=>(gt(t,e,"read from private field"),r?r.call(t):e.get(t)),le=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Y,B;const ft=m.createStylesheet({":host":{fontFamily:"sans-serif",position:"absolute",top:s.aptechkaTheme.tweakerOffset.var,right:s.aptechkaTheme.tweakerOffset.var,width:s.aptechkaTheme.tweakerWidth.var,backgroundColor:s.aptechkaTheme.colorDark.var,borderRadius:s.aptechkaTheme.borderRadius.var,transition:"opacity 0.2s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"fill",transitionDuration:s.aptechkaTheme.durationShort.var},".tweaker-button:hover":{fill:s.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
|
|
1
|
+
"use strict";var ce=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var u=(t,e,r)=>(ce(t,e,"read from private field"),r?r.call(t):e.get(t)),q=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},$=(t,e,r,n)=>(ce(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);const we=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const v=require("../custom-element/index.cjs"),d=require("../Store-BQGNOHlY.cjs"),me=require("../file-EevnUtRj.cjs"),ke=require("../function-MthRj-GJ.cjs"),h=require("../tags-CueX-JLX.cjs"),m=require("../createStylesheet-C8aQQ4hd.cjs"),be=require("../Viewport-DhKPH5nw.cjs"),s=require("../theme/index.cjs"),_e=require("../accordion/index.cjs"),Se=require("../index-pPxbZLWQ.cjs"),ye=require("../events-Crwi8fz6.cjs");require("../checkbox/index.cjs");const Te=require("../math-GDWEqu7y.cjs"),de='<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>',pe='<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>',Ce='<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>',xe='<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>';var x,w;class $e{constructor(){q(this,x,"");q(this,w,[]);$(this,x,d.storeRegistry.projectName+"-studio")}openPanel(e){u(this,w).includes(e)||u(this,w).push(e)}closePanel(e){$(this,w,u(this,w).filter(r=>r!==e))}isPanelOpened(e){return u(this,w).includes(e)}save(){const e={openedPanels:u(this,w)};localStorage.setItem(u(this,x),JSON.stringify(e)),d.storeRegistry.saveState()}load(){d.storeRegistry.loadState();const e=localStorage.getItem(u(this,x));if(e)try{const r=JSON.parse(e);r.openedPanels&&$(this,w,r.openedPanels)}catch(r){console.error(r)}}}x=new WeakMap,w=new WeakMap;const C=new $e;var _;class F extends v.CustomElement{constructor(...r){super();q(this,_,void 0);$(this,_,r)}addStore(r){u(this,_).push(r)}get firstStore(){return u(this,_)[0]}get stores(){return u(this,_)}updateStores(r){u(this,_).forEach(n=>{n.current=r})}}_=new WeakMap;var Pe=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Me=(t,e,r,n)=>{for(var a=n>1?void 0:n?Oe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Pe(e,r,a),a};const Ee=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{padding:"0",margin:"0",width:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,borderRadius:s.aptechkaTheme.borderRadius.var,overflow:"hidden",accentColor:s.aptechkaTheme.colorLight.var}});let re=class extends F{constructor(...t){super(...t),this.openShadow(Ee),h.element(this,{children:[h.element("e-checkbox",{onChange:e=>{this.updateStores(e.currentTarget.checked)},ref:e=>{this.firstStore.subscribe(r=>{e.checked=r.current})}})]})}};re=Me([v.define("e-tweaker-boolean-manager")],re);var Re=Object.defineProperty,De=Object.getOwnPropertyDescriptor,We=(t,e,r,n)=>{for(var a=n>1?void 0:n?De(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Re(e,r,a),a};const Le=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:s.aptechkaTheme.heightInput.var,padding:"0",background:"none",borderRadius:s.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:s.aptechkaTheme.borderRadius.var,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.93)`}});let ae=class extends F{constructor(...t){super(...t),this.openShadow(Le),h.element(this,{children:[h.input({type:"color",value:this.firstStore,onInput:e=>{this.updateStores(e.currentTarget.value)}})]})}};ae=We([v.define("e-tweaker-color-manager")],ae);var Ie=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Ae=(t,e,r,n)=>{for(var a=n>1?void 0:n?Fe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ie(e,r,a),a};const qe=m.createStylesheet({a:{color:"inherit"}});let ne=class extends F{constructor(...t){var e,r;super(...t),this.openShadow(qe),h.element(this,{children:[h.a({href:this.firstStore,target:(r=(e=this.firstStore.passport)==null?void 0:e.manager)!=null&&r.sameWindow?"_self":"_blank",children:this.firstStore})]})}};ne=Ae([v.define("e-tweaker-link-manager")],ne);var ze=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,He=(t,e,r,n)=>{for(var a=n>1?void 0:n?Ne(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&ze(e,r,a),a},Ze=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},j=(t,e,r)=>(Ze(t,e,"read from private field"),r?r.call(t):e.get(t)),Ke=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},P;const Ge=m.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:s.aptechkaTheme.fontSizeSmall.var},".text-input":{height:s.aptechkaTheme.heightInput.var,width:"100%",margin:"0",padding:`0 ${s.aptechkaTheme.gapSmall.var}`,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var}});let Q=class extends F{constructor(...t){super(...t),Ke(this,P,new d.Store([])),this.openShadow(Ge),h.element(this,{children:[h.input({class:"text-input",type:"string",value:this.firstStore,onChange:e=>{this.updateStores(e.currentTarget.value)}}),j(this,P)]})}appendContent(t){j(this,P).current=[...j(this,P).current,t]}};P=new WeakMap;Q=He([v.define("e-tweaker-string-manager")],Q);var Ve=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=(t,e,r,n)=>{for(var a=n>1?void 0:n?Je(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ve(e,r,a),a},ue=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},b=(t,e,r)=>(ue(t,e,"read from private field"),r?r.call(t):e.get(t)),z=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},ee=(t,e,r,n)=>(ue(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),O,M,E,H;let U=class extends Q{constructor(...t){var e,r,n,a,o,i;super(...t),z(this,O,void 0),z(this,M,void 0),z(this,E,void 0),z(this,H,k=>{const A=typeof k=="string"?parseFloat(k)||this.min:k,fe=Te.clamp(A,b(this,M),b(this,E));return this.toFixed(fe)}),ee(this,M,((r=(e=this.firstStore.passport)==null?void 0:e.manager)==null?void 0:r.min)||0),ee(this,E,((a=(n=this.firstStore.passport)==null?void 0:n.manager)==null?void 0:a.max)||1),ee(this,O,((i=(o=this.firstStore.passport)==null?void 0:o.manager)==null?void 0:i.step)||.01)}get min(){return b(this,M)}get max(){return b(this,E)}get step(){return b(this,O)}toFixed(t){var r;const e=((r=b(this,O).toString().split(".")[1])==null?void 0:r.length)||0;return e?+t.toFixed(e):Math.ceil(t)}connectedCallback(){this.firstStore.addMiddleware(b(this,H))}disconnectedCallback(){this.firstStore.removeMiddleware(b(this,H))}};O=new WeakMap;M=new WeakMap;E=new WeakMap;H=new WeakMap;U=Ye([v.define("e-tweaker-number-manager")],U);var Be=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Ue=(t,e,r,n)=>{for(var a=n>1?void 0:n?Qe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Be(e,r,a),a};const Xe=m.createStylesheet({":host":{width:"100%"},".text-input":{width:"60px",marginRight:s.aptechkaTheme.gapLarge.var,textAlign:"center"},".range-input":{boxSizing:"border-box","-webkit-appearance":"none",height:"8px",width:"100%",margin:"0",padding:"0",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".range-input::-webkit-slider-thumb":{"-webkit-appearance":"none",height:`calc(${s.aptechkaTheme.heightInput.var} * 0.7)`,width:s.aptechkaTheme.borderRadius.var,borderRadius:s.aptechkaTheme.borderRadius.var,backgroundColor:s.aptechkaTheme.colorLight.var,transitionProperty:"background-color",transitionDuration:s.aptechkaTheme.durationShort.var},".range-input:focus::-webkit-slider-thumb":{backgroundColor:s.aptechkaTheme.colorActive.var},".range-input::-webkit-slider-runnable-track":{"-webkit-appearance":"none","box-shadow":"none",border:"none",background:"transparent"}});let ie=class extends U{constructor(...t){super(...t),this.addStylesheet(Xe),this.appendContent(h.input({class:"range-input",type:"range",min:this.min,max:this.max,step:this.step,value:this.firstStore,onInput:e=>{this.updateStores(parseFloat(e.currentTarget.value))}}))}};ie=Ue([v.define("e-tweaker-range-manager")],ie);var je=Object.defineProperty,et=Object.getOwnPropertyDescriptor,tt=(t,e,r,n)=>{for(var a=n>1?void 0:n?et(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&je(e,r,a),a};const rt=m.createStylesheet({"e-select":{width:"100%","--arrow-color":s.aptechkaTheme.colorLight.var},"e-select-head":{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},"e-select-option":{transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"color"},"e-select-option:hover":{color:s.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"transform",transitionDuration:s.aptechkaTheme.durationShort.var},".opened svg":{transform:"scaleY(-1)"}});let se=class extends F{constructor(...t){var r,n;super(...t),this.openShadow(rt);const e=((n=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:n.variants)||[];h.element(this,{children:h.element("e-select",{value:this.firstStore,onChange:a=>{this.updateStores(a.currentTarget.value)},lightChildren:[h.element("e-select-head",{lightChildren:[h.span({"data-value-holder":""})]}),...e.map((a,o)=>h.element("e-select-option",{lightChildren:a,default:o===0?!0:null}))]})})}};se=tt([v.define("e-tweaker-select-manager")],se);const at={boolean:re,color:ae,link:ne,number:U,range:ie,select:se,string:Q};var nt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,st=(t,e,r,n)=>{for(var a=n>1?void 0:n?it(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&nt(e,r,a),a},ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},l=(t,e,r)=>(ve(t,e,"read from private field"),r?r.call(t):e.get(t)),S=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},y=(t,e,r,n)=>(ve(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),g,R,D,W,L,Z,K;const ot=m.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.4fr 1fr",alignItems:"center",color:s.aptechkaTheme.colorLight.var,gap:s.aptechkaTheme.gapMedium.var},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:s.aptechkaTheme.fontSizeMedium.var,display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:s.aptechkaTheme.colorLight.var,transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:s.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});let X=class extends v.CustomElement{constructor(t){var r,n,a,o;super(),S(this,g,[]),S(this,R,void 0),S(this,D,void 0),S(this,W,!1),S(this,L,void 0),S(this,Z,()=>{d.activeStores.current.find(i=>l(this,g).includes(i))||this.remove()}),S(this,K,i=>{l(this,W)&&((i.metaKey||i.ctrlKey)&&i.code==="KeyC"?navigator.clipboard.writeText(l(this,g)[0].current):(i.metaKey||i.ctrlKey)&&i.code==="KeyR"&&(l(this,g).forEach(k=>{k.reset()}),i.preventDefault()))}),y(this,g,[t.store]),y(this,R,t.store.passport.name),y(this,D,l(this,R).split(".").slice(-1).toString());const e=((n=(r=t.store.passport)==null?void 0:r.manager)==null?void 0:n.type)||"string";y(this,L,new at[e](l(this,g)[0])),this.openShadow(ot),h.element(this,{class:{disabled:((o=(a=t.store.passport)==null?void 0:a.manager)==null?void 0:o.disabled)||!1},onPointerleave:()=>{y(this,W,!1)},onPointerenter:()=>{y(this,W,!0)},children:[h.div({class:"head",children:[h.div({class:"name",children:l(this,D)+":"}),h.div({class:"head-buttons",children:[h.button({class:"head-button",children:pe,onClick:()=>{navigator.clipboard.writeText(l(this,g)[0].current)}}),h.button({class:"head-button",children:de,onClick:()=>{l(this,g).forEach(i=>{i.reset()})}})]})]}),l(this,L)]})}get key(){return l(this,R)}get name(){return l(this,D)}get stores(){return l(this,g)}addStore(t){l(this,L).addStore(t)}connectedCallback(){d.activeStores.subscribe(l(this,Z)),addEventListener("keydown",l(this,K)),ye.dispatchSizeChangeEvent(this)}disconnectedCallback(){d.activeStores.unsubscribe(l(this,Z)),removeEventListener("keydown",l(this,K))}};g=new WeakMap;R=new WeakMap;D=new WeakMap;W=new WeakMap;L=new WeakMap;Z=new WeakMap;K=new WeakMap;X=st([v.define("e-tweaker-field")],X);var ht=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,lt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ct(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&ht(e,r,a),a},ge=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},c=(t,e,r)=>(ge(t,e,"read from private field"),r?r.call(t):e.get(t)),T=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},te=(t,e,r,n)=>(ge(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),f,G,p,V,J,oe;const dt=m.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:s.aptechkaTheme.tweakerFolderHeight.var,paddingLeft:s.aptechkaTheme.gapMedium.var,paddingRight:s.aptechkaTheme.gapMedium.var,display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:s.aptechkaTheme.colorDarkAux.var,borderRadius:s.aptechkaTheme.borderRadius.var},".name":{fontSize:s.aptechkaTheme.fontSizeLarge.var,color:s.aptechkaTheme.colorLight.var},".body":{transitionProperty:"height",transitionDuration:s.aptechkaTheme.durationShort.var,overflow:"hidden",height:"0px"},".body-content":{boxSizing:"border-box",padding:s.aptechkaTheme.gapLarge.var,display:"grid",gap:s.aptechkaTheme.gapMedium.var},".arrow":{width:"20px",height:"20px",fill:s.aptechkaTheme.colorLight.var,transition:`transform ${s.aptechkaTheme.durationShort.var}`},".opened .arrow":{transform:"scaleY(-1)"}});let I=class extends _e.AccordionElement{constructor(t){super(),T(this,f,void 0),T(this,G,new d.Store(null)),T(this,p,new d.Store([])),T(this,V,void 0),T(this,J,null),T(this,oe,e=>{let r=[],n=[];e.forEach(a=>{r=[...r,...a.removedNodes],n=[...n,...a.addedNodes]}),c(this,p).current=c(this,p).current.filter(a=>!r.includes(a)),c(this,f)&&!c(this,p).current.length&&!n.length&&this.remove()}),this.openShadow(dt),te(this,f,t.key),te(this,V,new MutationObserver(c(this,oe))),h.element(this,{onAccordionItemToggle:e=>{e.stopPropagation(),e.detail.opened?C.openPanel(c(this,f)):C.closePanel(c(this,f))},children:[h.div({class:"wrapper",children:[h.div({class:"head",children:[c(this,f)?h.div({class:"name",children:[c(this,f).split(".").slice(-1).toString()]}):null,c(this,G),h.element(Se.arrowIcon,{class:"arrow"})]}),h.div({class:"body",children:h.div({class:"body-content",children:c(this,p),ref:e=>te(this,J,e.firstElementChild)})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return c(this,f)}get head(){return c(this,G)}get content(){return c(this,p)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{C.isPanelOpened(c(this,f))&&this.openAll({skipTransition:!0})},50),c(this,V).observe(c(this,J),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const r=t.store.passport.name.split("."),n=r.slice(0,r.length-t.remainingFolders.length).join("."),a=c(this,p).current.find(o=>o.key===n);a instanceof I?a.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):c(this,p).current=[...c(this,p).current,new I({key:n,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else{const e=c(this,p).current.find(r=>r.key===t.store.passport.name);e instanceof X?e.addStore(t.store):c(this,p).current=[...c(this,p).current,new X({store:t.store})]}}};f=new WeakMap;G=new WeakMap;p=new WeakMap;V=new WeakMap;J=new WeakMap;oe=new WeakMap;I=lt([v.define("e-tweaker-folder")],I);var pt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,vt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ut(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&pt(e,r,a),a},gt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},N=(t,e,r)=>(gt(t,e,"read from private field"),r?r.call(t):e.get(t)),le=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Y,B;const ft=m.createStylesheet({":host":{fontFamily:"sans-serif",position:"absolute",top:s.aptechkaTheme.tweakerOffset.var,right:s.aptechkaTheme.tweakerOffset.var,width:s.aptechkaTheme.tweakerWidth.var,backgroundColor:s.aptechkaTheme.colorDark.var,borderRadius:s.aptechkaTheme.borderRadius.var,transition:"opacity 0.2s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"fill",transitionDuration:s.aptechkaTheme.durationShort.var},".tweaker-button:hover":{fill:s.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
|
|
2
2
|
100dvh -
|
|
3
3
|
(
|
|
4
4
|
${s.aptechkaTheme.tweakerOffset.var} * 2 +
|
package/lib/tweaker/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { c as m } from "../createStylesheet-KMRQhSa-.js";
|
|
|
18
18
|
import { a as Me } from "../Viewport-CCDNxaDg.js";
|
|
19
19
|
import { aptechkaTheme as s } from "../theme/index.js";
|
|
20
20
|
import { AccordionElement as Ee } from "../accordion/index.js";
|
|
21
|
-
import { a as Te } from "../index-
|
|
21
|
+
import { a as Te } from "../index-CSo_PnUP.js";
|
|
22
22
|
import { d as De } from "../events-_C2CztxR.js";
|
|
23
23
|
import "../checkbox/index.js";
|
|
24
24
|
import { c as Re } from "../math-BOBiC4TN.js";
|