aptechka 0.5.42 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Animation-6Na1MCtM.cjs +1 -0
- package/lib/Animation-CELiTw3n.js +132 -0
- package/lib/Composed-DmLYTh1b.js +35 -0
- package/lib/Composed-Dx2hs-va.cjs +1 -0
- package/lib/{Damped-P4MkCGoY.js → Damped-Mx_FNNVz.js} +2 -5
- package/lib/Damped-loFiBsBy.cjs +1 -0
- package/lib/{Derived-kPJs5JC5.js → Derived-DlCvc0xQ.js} +1 -1
- package/lib/{Derived-B-g8dYgh.cjs → Derived-a6MDQEPY.cjs} +1 -1
- package/lib/ElementConstructor-CAZ2ra8m.cjs +1 -0
- package/lib/ElementConstructor-OYlPJf2L.js +366 -0
- package/lib/Resource-D3TQormz.cjs +1 -0
- package/lib/Resource-DIcoALGo.js +64 -0
- package/lib/{SourceManager-Q-PB-Rkh.js → SourceManager-Bz329f90.js} +1 -1
- package/lib/{SourceManager-vSlsMKUE.cjs → SourceManager-kxr5eUyL.cjs} +1 -1
- package/lib/Store-6s0YXK4o.cjs +1 -0
- package/lib/{Store-BQXXikps.js → Store-BI2xxXOA.js} +42 -42
- package/lib/Tweened-B_mclQ61.cjs +1 -0
- package/lib/Tweened-NE8M9onF.js +48 -0
- package/lib/{Viewport-DMB0dO-s.cjs → Viewport-CJeKnL5V.cjs} +1 -1
- package/lib/{Viewport-CFFhFKqX.js → Viewport-D9IL7kUQ.js} +1 -1
- package/lib/_createStore-Cf1MyeHa.cjs +1 -0
- package/lib/_createStore-Ck9bHolX.js +12 -0
- package/lib/accordion/AccordionElement.d.ts +5 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +141 -105
- package/lib/animation/Animation.d.ts +11 -19
- package/lib/animation/Damped.d.ts +4 -6
- package/lib/animation/Tweened.d.ts +2 -4
- 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.d.ts +1 -1
- package/lib/attribute/index.js +31 -31
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +1 -1
- package/lib/canvas/index.js +29 -29
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +20 -20
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/AutoplayControls.d.ts +1 -1
- package/lib/controls/DragControls.d.ts +1 -1
- package/lib/controls/WheelControls.d.ts +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/counter/index.d.ts +8 -0
- package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-CR_yi5tp.js} +1 -1
- package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-p23sZ7Ey.cjs} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +2 -1
- package/lib/css-property/index.js +36 -32
- package/lib/custom-element/index.d.ts +1 -4
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/ElementConstructor.d.ts +2 -2
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +114 -113
- package/lib/en3/core/En3Raycaster.d.ts +20 -0
- package/lib/en3/core/En3View.d.ts +1 -1
- package/lib/en3/core/en3.d.ts +7 -3
- package/lib/en3/helpers/En3Controls.d.ts +5 -0
- package/lib/en3/helpers/En3GridHelper.d.ts +8 -0
- package/lib/en3/helpers/En3Object3dManager.d.ts +12 -0
- package/lib/en3/helpers/En3OrbitControls.d.ts +8 -0
- package/lib/en3/helpers/En3TransformControls.d.ts +8 -0
- package/lib/en3/helpers/index.cjs +1 -0
- package/lib/en3/helpers/index.d.ts +2 -0
- package/lib/en3/helpers/index.js +1165 -0
- package/lib/en3/index.cjs +1 -215
- package/lib/en3/index.d.ts +1 -19
- package/lib/en3/index.js +4 -4227
- package/lib/en3/libs/index.cjs +1 -0
- package/lib/en3/libs/index.d.ts +1 -0
- package/lib/en3/libs/index.js +201 -0
- package/lib/en3/loaders/_En3GLTFLoader.d.ts +12 -0
- package/lib/en3/loaders/_En3TextureLoader.d.ts +8 -0
- package/lib/en3/loaders/index.cjs +1 -0
- package/lib/en3/loaders/index.d.ts +3 -0
- package/lib/en3/loaders/index.js +1757 -0
- package/lib/en3/loaders/loaders.d.ts +13 -0
- package/lib/en3/misc/index.cjs +10 -0
- package/lib/en3/misc/index.d.ts +2 -0
- package/lib/en3/misc/index.js +115 -0
- package/lib/en3/objects/En3Clip.d.ts +1 -1
- package/lib/en3/objects/En3ClipHelpers.d.ts +1 -1
- package/lib/en3/objects/En3GLTF.d.ts +4 -3
- package/lib/en3/objects/En3Image.d.ts +1 -1
- package/lib/en3/objects/En3ImageLike.d.ts +3 -2
- package/lib/en3/objects/En3SourceConsumer.d.ts +1 -1
- package/lib/en3/objects/En3Video.d.ts +1 -1
- package/lib/en3/objects/fluid/Advection.d.ts +1 -1
- package/lib/en3/objects/fluid/Divergence.d.ts +1 -1
- package/lib/en3/objects/fluid/En3Fluid.d.ts +1 -1
- package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -1
- package/lib/en3/objects/fluid/ExternalForce.d.ts +1 -1
- package/lib/en3/objects/fluid/Poisson.d.ts +1 -1
- package/lib/en3/objects/fluid/Pressure.d.ts +1 -1
- package/lib/en3/objects/fluid/Simulation.d.ts +1 -1
- package/lib/en3/objects/fluid/Viscous.d.ts +1 -1
- package/lib/en3/objects/fluid/index.d.ts +0 -3
- package/lib/en3/objects/index.d.ts +7 -0
- package/lib/en3/utils/coverTexture.d.ts +1 -1
- package/lib/en3/utils/index.cjs +1 -0
- package/lib/en3/utils/index.d.ts +5 -0
- package/lib/en3/utils/index.js +43 -0
- package/lib/en3-C4mzaF6q.cjs +8 -0
- package/lib/en3-hbkN1OPu.js +343 -0
- package/lib/globals-DMjysUXI.js +8 -0
- package/lib/globals-bYKki-b9.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-BtsOv9u0.js → index-BAH_fO2N.js} +66 -66
- package/lib/index-D1LQUR-R.cjs +9 -0
- package/lib/instantiate-D19Uvc31.js +125 -0
- package/lib/instantiate-Db5gGSYG.cjs +1 -0
- package/lib/jsx/ComponentElement.d.ts +18 -0
- package/lib/jsx/globals.d.ts +13 -0
- package/lib/jsx/h.d.ts +7 -0
- package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
- package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
- package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
- package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
- package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
- package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
- package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
- package/lib/jsx/hooks/onAnimationFrame.js +22 -0
- package/lib/jsx/hooks/onElementResize.cjs +1 -0
- package/lib/jsx/hooks/onElementResize.d.ts +5 -0
- package/lib/jsx/hooks/onElementResize.js +11 -0
- package/lib/jsx/hooks/onIntersection.cjs +1 -0
- package/lib/jsx/hooks/onIntersection.d.ts +5 -0
- package/lib/jsx/hooks/onIntersection.js +11 -0
- package/lib/jsx/hooks/onWindowResize.cjs +1 -0
- package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
- package/lib/jsx/hooks/onWindowResize.js +8 -0
- package/lib/jsx/hooks/store/createArrayStore.d.ts +3 -0
- package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedComponent.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedComponents.d.ts +3 -0
- package/lib/jsx/hooks/store/createResource.d.ts +3 -0
- package/lib/jsx/hooks/store/createStore.d.ts +3 -0
- package/lib/jsx/hooks/store/index.cjs +1 -0
- package/lib/jsx/hooks/store/index.d.ts +7 -0
- package/lib/jsx/hooks/store/index.js +49 -0
- package/lib/jsx/hooks/watchAttribute.cjs +1 -0
- package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
- package/lib/jsx/hooks/watchAttribute.js +17 -0
- package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
- package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
- package/lib/jsx/hooks/watchCSSProperty.js +17 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +13 -0
- package/lib/jsx/index.js +91 -0
- package/lib/jsx/instantiate.d.ts +5 -0
- package/lib/jsx/register.d.ts +1 -0
- package/lib/jsx/render.d.ts +6 -0
- package/lib/jsx/type.d.ts +188 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.d.ts +2 -0
- package/lib/ladder/index.js +84 -66
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.d.ts +11 -2
- package/lib/layout-box/index.js +190 -164
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +16 -16
- package/lib/morph/Morph.d.ts +2 -2
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.d.ts +1 -1
- package/lib/morph/index.js +135 -143
- package/lib/notifier/index.d.ts +2 -2
- package/lib/notifier/index.js +3 -1
- package/lib/onConnect-DGP866cj.cjs +1 -0
- package/lib/onConnect-y5DrxJ9P.js +7 -0
- package/lib/pointer/Pointer.d.ts +1 -1
- package/lib/pointer/PointerElement.d.ts +1 -1
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +3 -3
- package/lib/polyfills-CM4SCDTt.cjs +1 -0
- package/lib/polyfills-X6KXuHg-.js +33 -0
- package/lib/popover/PopoverButtonElement.d.ts +1 -1
- package/lib/popover/PopoverElement.d.ts +2 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +49 -49
- package/lib/router/Router.d.ts +11 -3
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.d.ts +1 -1
- package/lib/router/index.js +185 -165
- package/lib/scroll/ScrollElement.d.ts +8 -25
- package/lib/scroll/ScrollSection.d.ts +23 -0
- package/lib/scroll/ScrollSegmentElement.d.ts +3 -3
- package/lib/scroll/ScrollUserElement.d.ts +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +87 -83
- package/lib/scroll-entries/index.d.ts +1 -1
- package/lib/select/SelectUserElement.d.ts +1 -1
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.d.ts +1 -1
- package/lib/sequence/index.js +8 -8
- package/lib/slicer/SlicerElement.d.ts +2 -2
- package/lib/slicer/index.cjs +4 -4
- package/lib/slicer/index.js +31 -31
- package/lib/source/SourceElement.d.ts +2 -2
- package/lib/source/SourceManager.d.ts +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/ArrayStore.d.ts +21 -0
- package/lib/store/Store.d.ts +1 -7
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -2
- package/lib/store/index.js +65 -139
- package/lib/tags-BqJKcIve.js +485 -0
- package/lib/tags-ld5jemJw.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/tweaker/TweakerBooleanManagerElement.d.ts +2 -2
- package/lib/tweaker/TweakerColorManagerElement.d.ts +2 -2
- package/lib/tweaker/TweakerElement.d.ts +1 -1
- package/lib/tweaker/TweakerFieldElement.d.ts +2 -2
- package/lib/tweaker/TweakerFolderElement.d.ts +5 -3
- package/lib/tweaker/TweakerLinkManagerElement.d.ts +2 -2
- package/lib/tweaker/TweakerNumberManagerElement.d.ts +4 -8
- package/lib/tweaker/TweakerSelectManagerElement.d.ts +2 -2
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +7 -7
- package/lib/tweaker/TweakerStringManagerElement.d.ts +3 -5
- package/lib/tweaker/index.cjs +3 -3
- package/lib/tweaker/index.js +535 -412
- package/lib/tweaker/tweakerManagerConstructors.d.ts +2 -2
- package/lib/tweaker/tweakerStorage.d.ts +8 -1
- package/lib/url-C3dWnJQg.cjs +1 -0
- package/lib/url-DMNfW7uN.js +22 -0
- package/lib/utils/function.d.ts +2 -2
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +39 -34
- package/lib/utils/layout.d.ts +1 -1
- package/lib/utils/number.d.ts +1 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +14 -14
- package/package.json +108 -12
- package/lib/Animation-DDHjrbtL.cjs +0 -1
- package/lib/Animation-Dq_05jlR.js +0 -217
- package/lib/Damped-l0mnlhar.cjs +0 -1
- package/lib/Store-C-1ruEIm.cjs +0 -1
- package/lib/Tweened-CwDC2zl8.js +0 -51
- package/lib/Tweened-DIt9j9B-.cjs +0 -1
- package/lib/animation/AnimationLink.d.ts +0 -13
- package/lib/en3/loaders/en3GLTFLoader.d.ts +0 -14
- package/lib/en3/loaders/en3TextureLoader.d.ts +0 -3
- package/lib/en3/test/En3HTML.d.ts +0 -10
- package/lib/index-Buf76Qoq.cjs +0 -9
- package/lib/polyfills-BA-CL_HF.js +0 -27
- package/lib/polyfills-DHs2SNbz.cjs +0 -1
- package/lib/resized/index.cjs +0 -1
- package/lib/resized/index.d.ts +0 -12
- package/lib/resized/index.js +0 -30
- package/lib/store/CumulativeResource.d.ts +0 -13
- package/lib/tags-CMPg9ETZ.js +0 -848
- package/lib/tags-Djb6mb1o.cjs +0 -1
- package/lib/tweaker/TweakerRangeManagerElement.d.ts +0 -11
- package/lib/en3/{loaders → core}/en3Cache.d.ts +0 -0
- package/lib/en3/{test → misc}/En3ModifiedMaterial.d.ts +0 -0
- package/lib/en3/{attachments → misc}/En3SourceManager.d.ts +2 -2
package/lib/tweaker/index.js
CHANGED
|
@@ -1,92 +1,103 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ke = (t, e, r) => {
|
|
2
2
|
if (!e.has(t))
|
|
3
3
|
throw TypeError("Cannot " + r);
|
|
4
4
|
};
|
|
5
|
-
var d = (t, e, r) => (
|
|
5
|
+
var d = (t, e, r) => (Ke(t, e, "read from private field"), r ? r.call(t) : e.get(t)), B = (t, e, r) => {
|
|
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, r);
|
|
9
|
-
},
|
|
10
|
-
import { i as
|
|
11
|
-
import { CustomElement as
|
|
12
|
-
import { s as
|
|
13
|
-
import { c as
|
|
14
|
-
import { d as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
9
|
+
}, I = (t, e, r, i) => (Ke(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r);
|
|
10
|
+
import { i as rt } from "../browser-0zX67oeU.js";
|
|
11
|
+
import { CustomElement as Ge, define as C } from "../custom-element/index.js";
|
|
12
|
+
import { s as O, a as K, S as Ze } from "../Store-BI2xxXOA.js";
|
|
13
|
+
import { c as st } from "../file-lxi_oXJf.js";
|
|
14
|
+
import { d as it } from "../function-C10DGppn.js";
|
|
15
|
+
import { s as Je } from "../gestures-D2Fdra_G.js";
|
|
16
|
+
import { e as f, $ as xe, a as at, D as g, aA as nt, p as te, a2 as ot } from "../tags-BqJKcIve.js";
|
|
17
|
+
import { c as P } from "../createStylesheet-CR_yi5tp.js";
|
|
18
|
+
import { a as lt } from "../Viewport-D9IL7kUQ.js";
|
|
19
|
+
import { aptechkaTheme as h } from "../theme/index.js";
|
|
20
|
+
import { AccordionElement as ht } from "../accordion/index.js";
|
|
21
|
+
import { a as ct } from "../index-BAH_fO2N.js";
|
|
22
|
+
import { d as dt } from "../events-_C2CztxR.js";
|
|
22
23
|
import "../checkbox/index.js";
|
|
23
|
-
import { c as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
import { c as pt } from "../math-BOBiC4TN.js";
|
|
25
|
+
import { n as Ve, t as ut } from "../polyfills-X6KXuHg-.js";
|
|
26
|
+
import { elementResizer as He } from "../element-resizer/index.js";
|
|
27
|
+
const Be = '<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>', Xe = '<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>', gt = '<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>', ft = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>';
|
|
28
|
+
var V, k, z;
|
|
29
|
+
class vt {
|
|
27
30
|
constructor() {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
B(this, V, "");
|
|
32
|
+
B(this, k, []);
|
|
33
|
+
B(this, z, {});
|
|
34
|
+
I(this, V, O.projectName + "-studio");
|
|
31
35
|
}
|
|
32
36
|
openPanel(e) {
|
|
33
|
-
d(this,
|
|
37
|
+
d(this, k).includes(e) || d(this, k).push(e);
|
|
34
38
|
}
|
|
35
39
|
closePanel(e) {
|
|
36
|
-
|
|
40
|
+
I(this, k, d(this, k).filter((r) => r !== e));
|
|
37
41
|
}
|
|
38
42
|
isPanelOpened(e) {
|
|
39
|
-
return d(this,
|
|
43
|
+
return d(this, k).includes(e);
|
|
44
|
+
}
|
|
45
|
+
changedSizes(e) {
|
|
46
|
+
return d(this, z)[e];
|
|
47
|
+
}
|
|
48
|
+
changeSize(e, r) {
|
|
49
|
+
r ? d(this, z)[e] = r : delete d(this, z)[e];
|
|
40
50
|
}
|
|
41
51
|
save() {
|
|
42
52
|
const e = {
|
|
43
|
-
openedPanels: d(this,
|
|
53
|
+
openedPanels: d(this, k),
|
|
54
|
+
changedSizes: d(this, z)
|
|
44
55
|
};
|
|
45
|
-
localStorage.setItem(d(this,
|
|
56
|
+
localStorage.setItem(d(this, V), JSON.stringify(e)), O.saveState();
|
|
46
57
|
}
|
|
47
58
|
load() {
|
|
48
|
-
|
|
49
|
-
const e = localStorage.getItem(d(this,
|
|
59
|
+
O.loadState();
|
|
60
|
+
const e = localStorage.getItem(d(this, V));
|
|
50
61
|
if (e)
|
|
51
62
|
try {
|
|
52
63
|
const r = JSON.parse(e);
|
|
53
|
-
r.openedPanels &&
|
|
64
|
+
r.openedPanels && I(this, k, r.openedPanels), r.changedSizes && I(this, z, r.changedSizes);
|
|
54
65
|
} catch (r) {
|
|
55
66
|
console.error(r);
|
|
56
67
|
}
|
|
57
68
|
}
|
|
58
69
|
}
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
var
|
|
62
|
-
class
|
|
70
|
+
V = new WeakMap(), k = new WeakMap(), z = new WeakMap();
|
|
71
|
+
const S = new vt();
|
|
72
|
+
var W;
|
|
73
|
+
class H extends Ge {
|
|
63
74
|
constructor(...r) {
|
|
64
75
|
super();
|
|
65
|
-
|
|
66
|
-
|
|
76
|
+
B(this, W, void 0);
|
|
77
|
+
I(this, W, r);
|
|
67
78
|
}
|
|
68
79
|
addStore(r) {
|
|
69
|
-
d(this,
|
|
80
|
+
d(this, W).push(r);
|
|
70
81
|
}
|
|
71
82
|
get firstStore() {
|
|
72
|
-
return d(this,
|
|
83
|
+
return d(this, W)[0];
|
|
73
84
|
}
|
|
74
85
|
get stores() {
|
|
75
|
-
return d(this,
|
|
86
|
+
return d(this, W);
|
|
76
87
|
}
|
|
77
88
|
updateStores(r) {
|
|
78
|
-
d(this,
|
|
79
|
-
|
|
89
|
+
d(this, W).forEach((i) => {
|
|
90
|
+
i.current = r;
|
|
80
91
|
});
|
|
81
92
|
}
|
|
82
93
|
}
|
|
83
|
-
|
|
84
|
-
var
|
|
85
|
-
for (var
|
|
86
|
-
(
|
|
87
|
-
return
|
|
94
|
+
W = new WeakMap();
|
|
95
|
+
var wt = Object.defineProperty, mt = Object.getOwnPropertyDescriptor, bt = (t, e, r, i) => {
|
|
96
|
+
for (var s = i > 1 ? void 0 : i ? mt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
97
|
+
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
98
|
+
return i && s && wt(e, r, s), s;
|
|
88
99
|
};
|
|
89
|
-
const
|
|
100
|
+
const _t = P({
|
|
90
101
|
":host": {
|
|
91
102
|
width: "100%",
|
|
92
103
|
display: "inline-flex",
|
|
@@ -95,14 +106,14 @@ const Ne = m({
|
|
|
95
106
|
"e-checkbox": {
|
|
96
107
|
width: "var(--height-input)",
|
|
97
108
|
height: "var(--height-input)",
|
|
98
|
-
borderRadius:
|
|
109
|
+
borderRadius: h.borderRadiusSmall.var
|
|
99
110
|
}
|
|
100
111
|
});
|
|
101
|
-
let
|
|
112
|
+
let Ee = class extends H {
|
|
102
113
|
constructor(...t) {
|
|
103
|
-
super(...t), this.openShadow(
|
|
114
|
+
super(...t), this.openShadow(_t), f(this, {
|
|
104
115
|
children: [
|
|
105
|
-
|
|
116
|
+
f("e-checkbox", {
|
|
106
117
|
onChange: (e) => {
|
|
107
118
|
this.updateStores(e.currentTarget.checked);
|
|
108
119
|
},
|
|
@@ -116,15 +127,15 @@ let oe = class extends N {
|
|
|
116
127
|
});
|
|
117
128
|
}
|
|
118
129
|
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
],
|
|
122
|
-
var
|
|
123
|
-
for (var
|
|
124
|
-
(
|
|
125
|
-
return
|
|
130
|
+
Ee = bt([
|
|
131
|
+
C("e-tweaker-boolean-manager")
|
|
132
|
+
], Ee);
|
|
133
|
+
var yt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, kt = (t, e, r, i) => {
|
|
134
|
+
for (var s = i > 1 ? void 0 : i ? St(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
135
|
+
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
136
|
+
return i && s && yt(e, r, s), s;
|
|
126
137
|
};
|
|
127
|
-
const
|
|
138
|
+
const xt = P({
|
|
128
139
|
":host": {
|
|
129
140
|
width: "100%",
|
|
130
141
|
display: "inline-flex",
|
|
@@ -135,7 +146,7 @@ const Ge = m({
|
|
|
135
146
|
height: "var(--height-input)",
|
|
136
147
|
padding: "0",
|
|
137
148
|
background: "none",
|
|
138
|
-
borderRadius:
|
|
149
|
+
borderRadius: h.borderRadius.var,
|
|
139
150
|
border: "none",
|
|
140
151
|
blockSize: "unset"
|
|
141
152
|
},
|
|
@@ -143,15 +154,15 @@ const Ge = m({
|
|
|
143
154
|
boxSizing: "border-box",
|
|
144
155
|
padding: "0px",
|
|
145
156
|
border: "none",
|
|
146
|
-
borderRadius:
|
|
157
|
+
borderRadius: h.borderRadius.var,
|
|
147
158
|
height: "calc(var(--height-input) * 0.93)"
|
|
148
159
|
}
|
|
149
160
|
});
|
|
150
|
-
let
|
|
161
|
+
let Oe = class extends H {
|
|
151
162
|
constructor(...t) {
|
|
152
|
-
super(...t), this.openShadow(
|
|
163
|
+
super(...t), this.openShadow(xt), f(this, {
|
|
153
164
|
children: [
|
|
154
|
-
|
|
165
|
+
xe({
|
|
155
166
|
type: "color",
|
|
156
167
|
value: this.firstStore,
|
|
157
168
|
onInput: (e) => {
|
|
@@ -162,25 +173,25 @@ let le = class extends N {
|
|
|
162
173
|
});
|
|
163
174
|
}
|
|
164
175
|
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
],
|
|
168
|
-
var
|
|
169
|
-
for (var
|
|
170
|
-
(
|
|
171
|
-
return
|
|
176
|
+
Oe = kt([
|
|
177
|
+
C("e-tweaker-color-manager")
|
|
178
|
+
], Oe);
|
|
179
|
+
var Ct = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, Mt = (t, e, r, i) => {
|
|
180
|
+
for (var s = i > 1 ? void 0 : i ? Pt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
181
|
+
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
182
|
+
return i && s && Ct(e, r, s), s;
|
|
172
183
|
};
|
|
173
|
-
const
|
|
184
|
+
const $t = P({
|
|
174
185
|
a: {
|
|
175
186
|
color: "inherit"
|
|
176
187
|
}
|
|
177
188
|
});
|
|
178
|
-
let
|
|
189
|
+
let ze = class extends H {
|
|
179
190
|
constructor(...t) {
|
|
180
191
|
var e, r;
|
|
181
|
-
super(...t), this.openShadow(
|
|
192
|
+
super(...t), this.openShadow($t), f(this, {
|
|
182
193
|
children: [
|
|
183
|
-
|
|
194
|
+
at({
|
|
184
195
|
href: this.firstStore,
|
|
185
196
|
target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank",
|
|
186
197
|
children: this.firstStore
|
|
@@ -189,26 +200,32 @@ let he = class extends N {
|
|
|
189
200
|
});
|
|
190
201
|
}
|
|
191
202
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
],
|
|
195
|
-
var
|
|
196
|
-
for (var
|
|
197
|
-
(
|
|
198
|
-
return
|
|
199
|
-
},
|
|
203
|
+
ze = Mt([
|
|
204
|
+
C("e-tweaker-link-manager")
|
|
205
|
+
], ze);
|
|
206
|
+
var Et = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, zt = (t, e, r, i) => {
|
|
207
|
+
for (var s = i > 1 ? void 0 : i ? Ot(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
208
|
+
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
209
|
+
return i && s && Et(e, r, s), s;
|
|
210
|
+
}, Ae = (t, e, r) => {
|
|
200
211
|
if (!e.has(t))
|
|
201
212
|
throw TypeError("Cannot " + r);
|
|
202
|
-
},
|
|
213
|
+
}, o = (t, e, r) => (Ae(t, e, "read from private field"), r ? r.call(t) : e.get(t)), p = (t, e, r) => {
|
|
203
214
|
if (e.has(t))
|
|
204
215
|
throw TypeError("Cannot add the same private member more than once");
|
|
205
216
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
206
|
-
},
|
|
207
|
-
const
|
|
217
|
+
}, M = (t, e, r, i) => (Ae(t, e, "write to private field"), e.set(t, r), r), w = (t, e, r) => (Ae(t, e, "access private method"), r), L, re, Y, E, F, ne, oe, x, Z, le, he, R, N, ce, We, ye, Le, se, Se, de;
|
|
218
|
+
const Wt = P({
|
|
208
219
|
":host": {
|
|
209
220
|
width: "100%",
|
|
210
221
|
display: "flex",
|
|
211
|
-
alignItems: "center"
|
|
222
|
+
alignItems: "center",
|
|
223
|
+
gap: "var(--gap-small)"
|
|
224
|
+
},
|
|
225
|
+
".inputs-wrapper": {
|
|
226
|
+
display: "grid",
|
|
227
|
+
gap: "var(--gap-small)",
|
|
228
|
+
width: "100%"
|
|
212
229
|
},
|
|
213
230
|
input: {
|
|
214
231
|
boxSizing: "border-box",
|
|
@@ -217,165 +234,186 @@ const et = m({
|
|
|
217
234
|
fontFamily: "inherit",
|
|
218
235
|
color: "inherit",
|
|
219
236
|
border: "none",
|
|
220
|
-
fontSize: "var(--font-size-small)"
|
|
221
|
-
},
|
|
222
|
-
".text-input": {
|
|
223
|
-
height: "var(--height-input)",
|
|
237
|
+
fontSize: "var(--font-size-small)",
|
|
224
238
|
width: "100%",
|
|
239
|
+
height: "var(--height-input)",
|
|
225
240
|
margin: "0",
|
|
226
241
|
padding: "0 var(--gap-small)",
|
|
227
242
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
228
|
-
borderRadius:
|
|
243
|
+
borderRadius: h.borderRadius.var
|
|
244
|
+
},
|
|
245
|
+
".drag": {
|
|
246
|
+
position: "relative",
|
|
247
|
+
width: "100%",
|
|
248
|
+
height: "calc(var(--height-input) * 0.2)",
|
|
249
|
+
display: "flex",
|
|
250
|
+
alignItems: "center"
|
|
251
|
+
},
|
|
252
|
+
".drag::before": {
|
|
253
|
+
content: '""',
|
|
254
|
+
position: "absolute",
|
|
255
|
+
left: "0",
|
|
256
|
+
width: "100%",
|
|
257
|
+
zIndex: "-1",
|
|
258
|
+
height: "1px",
|
|
259
|
+
borderBottom: `1px solid ${h.colorFont.var}`,
|
|
260
|
+
transform: "translateY(-50%)",
|
|
261
|
+
opacity: "0.3"
|
|
262
|
+
},
|
|
263
|
+
":host(.infinite) .drag::before": {
|
|
264
|
+
borderBottom: `1px dashed ${h.colorFont.var}`
|
|
265
|
+
},
|
|
266
|
+
".drag-knob": {
|
|
267
|
+
"--size": "calc(var(--height-input) * 0.4)",
|
|
268
|
+
width: "var(--size)",
|
|
269
|
+
height: "var(--size)"
|
|
270
|
+
},
|
|
271
|
+
".drag-knob-inner": {
|
|
272
|
+
width: "100%",
|
|
273
|
+
height: "100%",
|
|
274
|
+
backgroundColor: h.colorFont.var,
|
|
275
|
+
borderRadius: h.borderRadiusSmall.var,
|
|
276
|
+
transition: "opacity var(--duration-short)"
|
|
277
|
+
},
|
|
278
|
+
":host(.infinite) .grabbing .drag-knob-inner": {
|
|
279
|
+
opacity: 0.3
|
|
229
280
|
}
|
|
230
281
|
});
|
|
231
|
-
let
|
|
282
|
+
let Te = class extends H {
|
|
232
283
|
constructor(...t) {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
284
|
+
var e, r, i, s, n, a, T, j;
|
|
285
|
+
super(...t), p(this, R), p(this, ce), p(this, ye), p(this, se), p(this, L, []), p(this, re, []), p(this, Y, void 0), p(this, E, void 0), p(this, F, void 0), p(this, ne, void 0), p(this, oe, void 0), p(this, x, void 0), p(this, Z, !1), p(this, le, (G) => {
|
|
286
|
+
const m = w(this, R, N).call(this, G);
|
|
287
|
+
return m.map((u, J) => {
|
|
288
|
+
const Ce = typeof u == "string" ? parseFloat(u) || o(this, E) : u, b = pt(Ce, o(this, E), o(this, F)), Pe = ut(b, o(this, Y));
|
|
289
|
+
m[J] = Pe;
|
|
290
|
+
}), o(this, oe) === "number" ? m[0] : m;
|
|
291
|
+
}), p(this, he, () => {
|
|
292
|
+
w(this, R, N).call(this).map((G, m) => {
|
|
293
|
+
const u = o(this, L)[m];
|
|
294
|
+
u && (u.value = G.toString());
|
|
295
|
+
}), w(this, ce, We).call(this);
|
|
296
|
+
}), p(this, de, () => {
|
|
297
|
+
w(this, ce, We).call(this);
|
|
298
|
+
}), this.openShadow(Wt), M(this, E, Ve(
|
|
299
|
+
(r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min,
|
|
300
|
+
-1 / 0
|
|
301
|
+
)), M(this, F, Ve(
|
|
302
|
+
(s = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : s.max,
|
|
303
|
+
1 / 0
|
|
304
|
+
)), M(this, Y, ((a = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : a.step) || 0.01), M(this, ne, ((j = (T = this.firstStore.passport) == null ? void 0 : T.manager) == null ? void 0 : j.ease) || 1), M(this, oe, Array.isArray(this.firstStore.current) ? "array" : "number"), M(this, x, isFinite(o(this, F)) && isFinite(o(this, E))), f(this, {
|
|
305
|
+
class: o(this, x) ? "" : "infinite",
|
|
306
|
+
children: w(this, R, N).call(this).map((G, m) => g({
|
|
307
|
+
class: "inputs-wrapper",
|
|
308
|
+
children: [
|
|
309
|
+
xe({
|
|
310
|
+
type: "number",
|
|
311
|
+
step: o(this, Y),
|
|
312
|
+
min: o(this, E),
|
|
313
|
+
max: o(this, F),
|
|
314
|
+
ref: (u) => o(this, L).push(u),
|
|
315
|
+
value: G,
|
|
316
|
+
onChange: () => {
|
|
317
|
+
this.updateStores(
|
|
318
|
+
o(this, L).map((u) => parseFloat(u.value))
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
}),
|
|
322
|
+
g({
|
|
323
|
+
class: "drag",
|
|
324
|
+
children: [
|
|
325
|
+
g({
|
|
326
|
+
class: "drag-knob",
|
|
327
|
+
ref: (u) => o(this, re).push(u),
|
|
328
|
+
onPointerdown: (u) => {
|
|
329
|
+
u.preventDefault(), M(this, Z, !0);
|
|
330
|
+
const J = w(this, R, N).call(this), Ce = J[m], b = o(this, re)[m], Pe = o(this, L)[m];
|
|
331
|
+
if (b && Pe) {
|
|
332
|
+
const Me = b.parentElement, Qe = w(this, ye, Le).call(this);
|
|
333
|
+
Me.classList.add("grabbing"), Je(
|
|
334
|
+
($e) => {
|
|
335
|
+
const Ne = $e.x - u.x, Ue = o(this, x) ? Me.offsetWidth / (Qe || 1) : 1, et = Ce + Ne / Ue * o(this, ne);
|
|
336
|
+
if (J[m] = et, !o(this, x)) {
|
|
337
|
+
const tt = w(this, se, Se).call(this, b, 0);
|
|
338
|
+
b.style.transform = `translateX(${tt + Ne}px)`;
|
|
339
|
+
}
|
|
340
|
+
this.updateStores([...J]);
|
|
341
|
+
},
|
|
342
|
+
() => {
|
|
343
|
+
if (M(this, Z, !1), !o(this, x)) {
|
|
344
|
+
const $e = w(this, se, Se).call(this, b, 0);
|
|
345
|
+
b.style.transition = "transform 0.1s", b.style.transform = `translateX(${$e}px)`, Me.classList.remove("grabbing"), setTimeout(() => {
|
|
346
|
+
b.style.transition = "";
|
|
347
|
+
}, 100);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
children: g({
|
|
354
|
+
class: "drag-knob-inner"
|
|
355
|
+
})
|
|
356
|
+
})
|
|
357
|
+
]
|
|
358
|
+
})
|
|
359
|
+
]
|
|
360
|
+
}))
|
|
247
361
|
});
|
|
248
362
|
}
|
|
249
|
-
appendContent(t) {
|
|
250
|
-
ae(this, T).current = [...ae(this, T).current, t];
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
T = /* @__PURE__ */ new WeakMap();
|
|
254
|
-
j = Ue([
|
|
255
|
-
f("e-tweaker-string-manager")
|
|
256
|
-
], j);
|
|
257
|
-
var tt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, at = (t, e, r, n) => {
|
|
258
|
-
for (var a = n > 1 ? void 0 : n ? rt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
259
|
-
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
260
|
-
return n && a && tt(e, r, a), a;
|
|
261
|
-
}, be = (t, e, r) => {
|
|
262
|
-
if (!e.has(t))
|
|
263
|
-
throw TypeError("Cannot " + r);
|
|
264
|
-
}, _ = (t, e, r) => (be(t, e, "read from private field"), r ? r.call(t) : e.get(t)), K = (t, e, r) => {
|
|
265
|
-
if (e.has(t))
|
|
266
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
267
|
-
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
268
|
-
}, ne = (t, e, r, n) => (be(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), E, R, D, J;
|
|
269
|
-
let ee = class extends j {
|
|
270
|
-
constructor(...t) {
|
|
271
|
-
var e, r, n, a, i, s;
|
|
272
|
-
super(...t), K(this, E, void 0), K(this, R, void 0), K(this, D, void 0), K(this, J, (b) => {
|
|
273
|
-
const Z = typeof b == "string" ? parseFloat(b) || this.min : b, Se = De(Z, _(this, R), _(this, D));
|
|
274
|
-
return this.toFixed(Se);
|
|
275
|
-
}), ne(this, R, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), ne(this, D, ((a = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : a.max) || 1), ne(this, E, ((s = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : s.step) || 0.01);
|
|
276
|
-
}
|
|
277
|
-
get min() {
|
|
278
|
-
return _(this, R);
|
|
279
|
-
}
|
|
280
|
-
get max() {
|
|
281
|
-
return _(this, D);
|
|
282
|
-
}
|
|
283
|
-
get step() {
|
|
284
|
-
return _(this, E);
|
|
285
|
-
}
|
|
286
|
-
toFixed(t) {
|
|
287
|
-
var r;
|
|
288
|
-
const e = ((r = _(this, E).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
|
|
289
|
-
return e ? +t.toFixed(e) : Math.ceil(t);
|
|
290
|
-
}
|
|
291
363
|
connectedCallback() {
|
|
292
|
-
this.firstStore.addMiddleware(
|
|
364
|
+
this.firstStore.addMiddleware(o(this, le)), this.firstStore.subscribe(o(this, he)), He.subscribe(this, o(this, de));
|
|
293
365
|
}
|
|
294
366
|
disconnectedCallback() {
|
|
295
|
-
this.firstStore.removeMiddleware(
|
|
367
|
+
this.firstStore.removeMiddleware(o(this, le)), this.firstStore.unsubscribe(o(this, he)), He.unsubscribe(o(this, de));
|
|
296
368
|
}
|
|
297
369
|
};
|
|
370
|
+
L = /* @__PURE__ */ new WeakMap();
|
|
371
|
+
re = /* @__PURE__ */ new WeakMap();
|
|
372
|
+
Y = /* @__PURE__ */ new WeakMap();
|
|
298
373
|
E = /* @__PURE__ */ new WeakMap();
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
return
|
|
374
|
+
F = /* @__PURE__ */ new WeakMap();
|
|
375
|
+
ne = /* @__PURE__ */ new WeakMap();
|
|
376
|
+
oe = /* @__PURE__ */ new WeakMap();
|
|
377
|
+
x = /* @__PURE__ */ new WeakMap();
|
|
378
|
+
Z = /* @__PURE__ */ new WeakMap();
|
|
379
|
+
le = /* @__PURE__ */ new WeakMap();
|
|
380
|
+
he = /* @__PURE__ */ new WeakMap();
|
|
381
|
+
R = /* @__PURE__ */ new WeakSet();
|
|
382
|
+
N = function(t = this.firstStore.current) {
|
|
383
|
+
return Array.isArray(t) ? t : [t];
|
|
309
384
|
};
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
},
|
|
329
|
-
".range-input::-webkit-slider-thumb": {
|
|
330
|
-
"-webkit-appearance": "none",
|
|
331
|
-
height: "calc(var(--height-input) * 0.7)",
|
|
332
|
-
width: o.borderRadius.var,
|
|
333
|
-
borderRadius: o.borderRadius.var,
|
|
334
|
-
backgroundColor: o.colorFont.var,
|
|
335
|
-
transitionProperty: "background-color",
|
|
336
|
-
transitionDuration: "var(--duration-short)"
|
|
337
|
-
},
|
|
338
|
-
".range-input:focus::-webkit-slider-thumb": {
|
|
339
|
-
backgroundColor: o.colorActive.var
|
|
340
|
-
},
|
|
341
|
-
".range-input::-webkit-slider-runnable-track": {
|
|
342
|
-
"-webkit-appearance": "none",
|
|
343
|
-
"box-shadow": "none",
|
|
344
|
-
border: "none",
|
|
345
|
-
background: "transparent"
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
let ce = class extends ee {
|
|
349
|
-
constructor(...t) {
|
|
350
|
-
super(...t), this.addStylesheet(ot), this.appendContent(
|
|
351
|
-
re({
|
|
352
|
-
class: "range-input",
|
|
353
|
-
type: "range",
|
|
354
|
-
min: this.min,
|
|
355
|
-
max: this.max,
|
|
356
|
-
step: this.step,
|
|
357
|
-
value: this.firstStore,
|
|
358
|
-
onInput: (e) => {
|
|
359
|
-
this.updateStores(
|
|
360
|
-
parseFloat(e.currentTarget.value)
|
|
361
|
-
);
|
|
362
|
-
}
|
|
363
|
-
})
|
|
364
|
-
);
|
|
365
|
-
}
|
|
385
|
+
ce = /* @__PURE__ */ new WeakSet();
|
|
386
|
+
We = function() {
|
|
387
|
+
w(this, R, N).call(this).map((t, e) => {
|
|
388
|
+
const r = o(this, re)[e];
|
|
389
|
+
if (r && (!o(this, Z) || o(this, Z) && o(this, x))) {
|
|
390
|
+
const i = w(this, se, Se).call(this, r, t);
|
|
391
|
+
r.style.transform = `translateX(${i}px)`;
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
ye = /* @__PURE__ */ new WeakSet();
|
|
396
|
+
Le = function() {
|
|
397
|
+
return o(this, x) ? o(this, F) - o(this, E) : 0;
|
|
398
|
+
};
|
|
399
|
+
se = /* @__PURE__ */ new WeakSet();
|
|
400
|
+
Se = function(t, e) {
|
|
401
|
+
const r = t.parentElement, i = w(this, ye, Le).call(this), s = i ? e / i : 0.5;
|
|
402
|
+
return (r.offsetWidth - t.offsetWidth) * s;
|
|
366
403
|
};
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
404
|
+
de = /* @__PURE__ */ new WeakMap();
|
|
405
|
+
Te = zt([
|
|
406
|
+
C("e-tweaker-number-manager")
|
|
407
|
+
], Te);
|
|
408
|
+
var Tt = Object.defineProperty, Dt = Object.getOwnPropertyDescriptor, Ft = (t, e, r, i) => {
|
|
409
|
+
for (var s = i > 1 ? void 0 : i ? Dt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
410
|
+
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
411
|
+
return i && s && Tt(e, r, s), s;
|
|
374
412
|
};
|
|
375
|
-
const
|
|
413
|
+
const Rt = P({
|
|
376
414
|
"e-select": {
|
|
377
415
|
width: "100%",
|
|
378
|
-
"--arrow-color":
|
|
416
|
+
"--arrow-color": h.colorFont.var
|
|
379
417
|
},
|
|
380
418
|
"e-select-head": {
|
|
381
419
|
width: "100%",
|
|
@@ -388,12 +426,12 @@ const dt = m({
|
|
|
388
426
|
transitionProperty: "color"
|
|
389
427
|
},
|
|
390
428
|
"e-select-option:hover": {
|
|
391
|
-
color:
|
|
429
|
+
color: h.colorActive.var
|
|
392
430
|
},
|
|
393
431
|
svg: {
|
|
394
432
|
width: "16px",
|
|
395
433
|
height: "16px",
|
|
396
|
-
fill:
|
|
434
|
+
fill: h.colorFont.var,
|
|
397
435
|
transitionProperty: "transform",
|
|
398
436
|
transitionDuration: "var(--duration-short)"
|
|
399
437
|
},
|
|
@@ -401,29 +439,29 @@ const dt = m({
|
|
|
401
439
|
transform: "scaleY(-1)"
|
|
402
440
|
}
|
|
403
441
|
});
|
|
404
|
-
let
|
|
442
|
+
let De = class extends H {
|
|
405
443
|
constructor(...t) {
|
|
406
|
-
var r,
|
|
407
|
-
super(...t), this.openShadow(
|
|
408
|
-
const e = ((
|
|
409
|
-
|
|
410
|
-
children:
|
|
444
|
+
var r, i;
|
|
445
|
+
super(...t), this.openShadow(Rt);
|
|
446
|
+
const e = ((i = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : i.variants) || [];
|
|
447
|
+
f(this, {
|
|
448
|
+
children: f("e-select", {
|
|
411
449
|
value: this.firstStore,
|
|
412
|
-
onChange: (
|
|
413
|
-
this.updateStores(
|
|
450
|
+
onChange: (s) => {
|
|
451
|
+
this.updateStores(s.currentTarget.value);
|
|
414
452
|
},
|
|
415
453
|
lightChildren: [
|
|
416
|
-
|
|
454
|
+
f("e-select-head", {
|
|
417
455
|
lightChildren: [
|
|
418
|
-
|
|
456
|
+
nt({
|
|
419
457
|
"data-value-holder": ""
|
|
420
458
|
})
|
|
421
459
|
]
|
|
422
460
|
}),
|
|
423
461
|
...e.map(
|
|
424
|
-
(
|
|
425
|
-
lightChildren:
|
|
426
|
-
default:
|
|
462
|
+
(s, n) => f("e-select-option", {
|
|
463
|
+
lightChildren: s,
|
|
464
|
+
default: n === 0 ? !0 : null
|
|
427
465
|
})
|
|
428
466
|
)
|
|
429
467
|
]
|
|
@@ -431,37 +469,84 @@ let de = class extends N {
|
|
|
431
469
|
});
|
|
432
470
|
}
|
|
433
471
|
};
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
],
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
472
|
+
De = Ft([
|
|
473
|
+
C("e-tweaker-select-manager")
|
|
474
|
+
], De);
|
|
475
|
+
var It = Object.defineProperty, At = Object.getOwnPropertyDescriptor, Lt = (t, e, r, i) => {
|
|
476
|
+
for (var s = i > 1 ? void 0 : i ? At(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
477
|
+
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
478
|
+
return i && s && It(e, r, s), s;
|
|
479
|
+
};
|
|
480
|
+
const Nt = P({
|
|
481
|
+
":host": {
|
|
482
|
+
width: "100%",
|
|
483
|
+
display: "flex",
|
|
484
|
+
alignItems: "center"
|
|
485
|
+
},
|
|
486
|
+
input: {
|
|
487
|
+
boxSizing: "border-box",
|
|
488
|
+
outline: "none",
|
|
489
|
+
fontVariantNumeric: "tabular-nums",
|
|
490
|
+
fontFamily: "inherit",
|
|
491
|
+
color: "inherit",
|
|
492
|
+
border: "none",
|
|
493
|
+
fontSize: "var(--font-size-small)",
|
|
494
|
+
height: "var(--height-input)",
|
|
495
|
+
width: "100%",
|
|
496
|
+
margin: "0",
|
|
497
|
+
padding: "0 var(--gap-small)",
|
|
498
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
499
|
+
borderRadius: h.borderRadius.var
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
let Fe = class extends H {
|
|
503
|
+
constructor(...t) {
|
|
504
|
+
super(...t), this.openShadow(Nt), f(this, {
|
|
505
|
+
children: [
|
|
506
|
+
xe({
|
|
507
|
+
class: "text-input",
|
|
508
|
+
type: "string",
|
|
509
|
+
value: this.firstStore,
|
|
510
|
+
onChange: (e) => {
|
|
511
|
+
this.updateStores(
|
|
512
|
+
e.currentTarget.value
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
})
|
|
516
|
+
]
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
Fe = Lt([
|
|
521
|
+
C("e-tweaker-string-manager")
|
|
522
|
+
], Fe);
|
|
523
|
+
const Kt = {
|
|
524
|
+
boolean: Ee,
|
|
525
|
+
color: Oe,
|
|
526
|
+
link: ze,
|
|
527
|
+
number: Te,
|
|
528
|
+
select: De,
|
|
529
|
+
string: Fe
|
|
445
530
|
};
|
|
446
|
-
var
|
|
447
|
-
for (var
|
|
448
|
-
(
|
|
449
|
-
return
|
|
450
|
-
},
|
|
531
|
+
var Zt = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, Ht = (t, e, r, i) => {
|
|
532
|
+
for (var s = i > 1 ? void 0 : i ? Vt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
533
|
+
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
534
|
+
return i && s && Zt(e, r, s), s;
|
|
535
|
+
}, Ye = (t, e, r) => {
|
|
451
536
|
if (!e.has(t))
|
|
452
537
|
throw TypeError("Cannot " + r);
|
|
453
|
-
},
|
|
538
|
+
}, c = (t, e, r) => (Ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), D = (t, e, r) => {
|
|
454
539
|
if (e.has(t))
|
|
455
540
|
throw TypeError("Cannot add the same private member more than once");
|
|
456
541
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
457
|
-
},
|
|
458
|
-
const
|
|
542
|
+
}, A = (t, e, r, i) => (Ye(t, e, "write to private field"), e.set(t, r), r), _, q, Q, U, ee, pe, ue;
|
|
543
|
+
const jt = P({
|
|
459
544
|
":host": {
|
|
460
545
|
display: "grid",
|
|
461
546
|
gridAutoFlow: "column",
|
|
462
547
|
gridTemplateColumns: "0.4fr 1fr",
|
|
463
548
|
alignItems: "center",
|
|
464
|
-
color:
|
|
549
|
+
color: h.colorFont.var,
|
|
465
550
|
gap: "var(--gap-medium)"
|
|
466
551
|
},
|
|
467
552
|
":host(.disabled)": {
|
|
@@ -484,7 +569,7 @@ const ft = m({
|
|
|
484
569
|
margin: "0",
|
|
485
570
|
border: "none",
|
|
486
571
|
background: "none",
|
|
487
|
-
fill:
|
|
572
|
+
fill: h.colorFont.var,
|
|
488
573
|
transitionDuration: "var(--duration-short)",
|
|
489
574
|
transitionProperty: "fill, opacity",
|
|
490
575
|
opacity: "0"
|
|
@@ -493,55 +578,55 @@ const ft = m({
|
|
|
493
578
|
opacity: "1"
|
|
494
579
|
},
|
|
495
580
|
".head-button:hover": {
|
|
496
|
-
fill:
|
|
581
|
+
fill: h.colorActive.var
|
|
497
582
|
},
|
|
498
583
|
".head-button svg": {
|
|
499
584
|
width: "100%",
|
|
500
585
|
height: "100%"
|
|
501
586
|
}
|
|
502
587
|
});
|
|
503
|
-
let
|
|
588
|
+
let ke = class extends Ge {
|
|
504
589
|
constructor(t) {
|
|
505
|
-
var r,
|
|
506
|
-
super(),
|
|
507
|
-
|
|
508
|
-
}),
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}),
|
|
512
|
-
}),
|
|
513
|
-
const e = ((
|
|
514
|
-
|
|
590
|
+
var r, i, s, n;
|
|
591
|
+
super(), D(this, _, []), D(this, q, void 0), D(this, Q, void 0), D(this, U, !1), D(this, ee, void 0), D(this, pe, () => {
|
|
592
|
+
K.current.find((a) => c(this, _).includes(a)) || this.remove();
|
|
593
|
+
}), D(this, ue, (a) => {
|
|
594
|
+
c(this, U) && ((a.metaKey || a.ctrlKey) && a.code === "KeyC" ? navigator.clipboard.writeText(c(this, _)[0].current) : (a.metaKey || a.ctrlKey) && a.code === "KeyR" && (c(this, _).forEach((T) => {
|
|
595
|
+
T.reset();
|
|
596
|
+
}), a.preventDefault()));
|
|
597
|
+
}), A(this, _, [t.store]), A(this, q, t.store.passport.name), A(this, Q, c(this, q).split(".").slice(-1).toString());
|
|
598
|
+
const e = ((i = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : i.type) || "string";
|
|
599
|
+
A(this, ee, new Kt[e](c(this, _)[0])), this.openShadow(jt), f(this, {
|
|
515
600
|
class: {
|
|
516
|
-
disabled: ((
|
|
601
|
+
disabled: ((n = (s = t.store.passport) == null ? void 0 : s.manager) == null ? void 0 : n.disabled) || !1
|
|
517
602
|
},
|
|
518
603
|
onPointerleave: () => {
|
|
519
|
-
|
|
604
|
+
A(this, U, !1);
|
|
520
605
|
},
|
|
521
606
|
onPointerenter: () => {
|
|
522
|
-
|
|
607
|
+
A(this, U, !0);
|
|
523
608
|
},
|
|
524
609
|
children: [
|
|
525
|
-
|
|
610
|
+
g({
|
|
526
611
|
class: "head",
|
|
527
612
|
children: [
|
|
528
|
-
|
|
529
|
-
|
|
613
|
+
g({ class: "name", children: c(this, Q) + ":" }),
|
|
614
|
+
g({
|
|
530
615
|
class: "head-buttons",
|
|
531
616
|
children: [
|
|
532
|
-
|
|
617
|
+
te({
|
|
533
618
|
class: "head-button",
|
|
534
|
-
children:
|
|
619
|
+
children: Xe,
|
|
535
620
|
onClick: () => {
|
|
536
|
-
navigator.clipboard.writeText(
|
|
621
|
+
navigator.clipboard.writeText(c(this, _)[0].current);
|
|
537
622
|
}
|
|
538
623
|
}),
|
|
539
|
-
|
|
624
|
+
te({
|
|
540
625
|
class: "head-button",
|
|
541
|
-
children:
|
|
626
|
+
children: Be,
|
|
542
627
|
onClick: () => {
|
|
543
|
-
|
|
544
|
-
|
|
628
|
+
c(this, _).forEach((a) => {
|
|
629
|
+
a.reset();
|
|
545
630
|
});
|
|
546
631
|
}
|
|
547
632
|
})
|
|
@@ -549,56 +634,56 @@ let te = class extends fe {
|
|
|
549
634
|
})
|
|
550
635
|
]
|
|
551
636
|
}),
|
|
552
|
-
|
|
637
|
+
c(this, ee)
|
|
553
638
|
]
|
|
554
639
|
});
|
|
555
640
|
}
|
|
556
641
|
get key() {
|
|
557
|
-
return
|
|
642
|
+
return c(this, q);
|
|
558
643
|
}
|
|
559
644
|
get name() {
|
|
560
|
-
return
|
|
645
|
+
return c(this, Q);
|
|
561
646
|
}
|
|
562
647
|
get stores() {
|
|
563
|
-
return
|
|
648
|
+
return c(this, _);
|
|
564
649
|
}
|
|
565
650
|
addStore(t) {
|
|
566
|
-
|
|
651
|
+
c(this, ee).addStore(t);
|
|
567
652
|
}
|
|
568
653
|
connectedCallback() {
|
|
569
|
-
|
|
654
|
+
K.subscribe(c(this, pe)), addEventListener("keydown", c(this, ue)), dt(this);
|
|
570
655
|
}
|
|
571
656
|
disconnectedCallback() {
|
|
572
|
-
|
|
657
|
+
K.unsubscribe(c(this, pe)), removeEventListener("keydown", c(this, ue));
|
|
573
658
|
}
|
|
574
659
|
};
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
],
|
|
585
|
-
var
|
|
586
|
-
for (var
|
|
587
|
-
(
|
|
588
|
-
return
|
|
589
|
-
},
|
|
660
|
+
_ = /* @__PURE__ */ new WeakMap();
|
|
661
|
+
q = /* @__PURE__ */ new WeakMap();
|
|
662
|
+
Q = /* @__PURE__ */ new WeakMap();
|
|
663
|
+
U = /* @__PURE__ */ new WeakMap();
|
|
664
|
+
ee = /* @__PURE__ */ new WeakMap();
|
|
665
|
+
pe = /* @__PURE__ */ new WeakMap();
|
|
666
|
+
ue = /* @__PURE__ */ new WeakMap();
|
|
667
|
+
ke = Ht([
|
|
668
|
+
C("e-tweaker-field")
|
|
669
|
+
], ke);
|
|
670
|
+
var Gt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, Bt = (t, e, r, i) => {
|
|
671
|
+
for (var s = i > 1 ? void 0 : i ? Jt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
672
|
+
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
673
|
+
return i && s && Gt(e, r, s), s;
|
|
674
|
+
}, qe = (t, e, r) => {
|
|
590
675
|
if (!e.has(t))
|
|
591
676
|
throw TypeError("Cannot " + r);
|
|
592
|
-
}, l = (t, e, r) => (
|
|
677
|
+
}, l = (t, e, r) => (qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), $ = (t, e, r) => {
|
|
593
678
|
if (e.has(t))
|
|
594
679
|
throw TypeError("Cannot add the same private member more than once");
|
|
595
680
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
596
|
-
},
|
|
597
|
-
const
|
|
681
|
+
}, X = (t, e, r, i) => (qe(t, e, "write to private field"), e.set(t, r), r), y, ge, v, fe, ve, we, me, Re;
|
|
682
|
+
const Xt = P({
|
|
598
683
|
".wrapper": {
|
|
599
684
|
boxSizing: "border-box",
|
|
600
685
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
601
|
-
borderRadius:
|
|
686
|
+
borderRadius: h.borderRadius.var
|
|
602
687
|
},
|
|
603
688
|
".head": {
|
|
604
689
|
boxSizing: "border-box",
|
|
@@ -609,12 +694,12 @@ const _t = m({
|
|
|
609
694
|
display: "flex",
|
|
610
695
|
alignItems: "center",
|
|
611
696
|
justifyContent: "space-between",
|
|
612
|
-
backgroundColor:
|
|
613
|
-
borderRadius:
|
|
697
|
+
backgroundColor: h.colorMainAux.var,
|
|
698
|
+
borderRadius: h.borderRadius.var
|
|
614
699
|
},
|
|
615
700
|
".name": {
|
|
616
701
|
fontSize: "var(--font-size-large)",
|
|
617
|
-
color:
|
|
702
|
+
color: h.colorFont.var
|
|
618
703
|
},
|
|
619
704
|
".body": {
|
|
620
705
|
transitionProperty: "height",
|
|
@@ -631,49 +716,54 @@ const _t = m({
|
|
|
631
716
|
".arrow": {
|
|
632
717
|
width: "20px",
|
|
633
718
|
height: "20px",
|
|
634
|
-
fill:
|
|
719
|
+
fill: h.colorFont.var,
|
|
635
720
|
transition: "transform var(--duration-short)"
|
|
636
721
|
},
|
|
637
722
|
".opened .arrow": {
|
|
638
723
|
transform: "scaleY(-1)"
|
|
639
724
|
}
|
|
640
725
|
});
|
|
641
|
-
let
|
|
726
|
+
let ie = class extends ht {
|
|
642
727
|
constructor(t) {
|
|
643
|
-
super(),
|
|
644
|
-
let r = [],
|
|
645
|
-
e.forEach((
|
|
646
|
-
r = [...r, ...
|
|
647
|
-
}), l(this,
|
|
648
|
-
(
|
|
649
|
-
), l(this,
|
|
650
|
-
}), this.openShadow(
|
|
728
|
+
super(), $(this, y, void 0), $(this, ge, new Ze(null)), $(this, v, new Ze([])), $(this, fe, void 0), $(this, ve, null), $(this, we, null), $(this, me, null), $(this, Re, (e) => {
|
|
729
|
+
let r = [], i = [];
|
|
730
|
+
e.forEach((s) => {
|
|
731
|
+
r = [...r, ...s.removedNodes], i = [...i, ...s.addedNodes];
|
|
732
|
+
}), l(this, v).current = l(this, v).current.filter(
|
|
733
|
+
(s) => !r.includes(s)
|
|
734
|
+
), l(this, y) && !l(this, v).current.length && !i.length && this.remove();
|
|
735
|
+
}), this.openShadow(Xt), X(this, y, t.key), X(this, fe, new MutationObserver(l(this, Re))), f(this, {
|
|
651
736
|
onAccordionItemToggle: (e) => {
|
|
652
|
-
e.stopPropagation(), e.detail.opened ?
|
|
737
|
+
e.stopPropagation(), e.detail.opened ? S.openPanel(l(this, y)) : S.closePanel(l(this, y));
|
|
653
738
|
},
|
|
654
739
|
children: [
|
|
655
|
-
|
|
740
|
+
g({
|
|
656
741
|
class: "wrapper",
|
|
657
742
|
children: [
|
|
658
|
-
|
|
743
|
+
g({
|
|
659
744
|
class: "head",
|
|
660
745
|
children: [
|
|
661
|
-
l(this,
|
|
746
|
+
l(this, y) ? g({
|
|
662
747
|
class: "name",
|
|
663
|
-
children: [l(this,
|
|
748
|
+
children: [l(this, y).split(".").slice(-1).toString()]
|
|
664
749
|
}) : null,
|
|
665
|
-
l(this,
|
|
666
|
-
|
|
750
|
+
l(this, ge),
|
|
751
|
+
f(ct, {
|
|
667
752
|
class: "arrow"
|
|
668
753
|
})
|
|
669
754
|
]
|
|
670
755
|
}),
|
|
671
|
-
|
|
756
|
+
g({
|
|
672
757
|
class: "body",
|
|
673
|
-
|
|
758
|
+
ref: (e) => {
|
|
759
|
+
X(this, ve, e);
|
|
760
|
+
},
|
|
761
|
+
children: g({
|
|
674
762
|
class: "body-content",
|
|
675
|
-
children: l(this,
|
|
676
|
-
ref: (e) =>
|
|
763
|
+
children: l(this, v),
|
|
764
|
+
ref: (e) => {
|
|
765
|
+
X(this, we, e), X(this, me, e.firstElementChild);
|
|
766
|
+
}
|
|
677
767
|
})
|
|
678
768
|
})
|
|
679
769
|
]
|
|
@@ -682,31 +772,37 @@ let L = class extends Te {
|
|
|
682
772
|
}), t != null && t.storeBox && this.handleStore(t.storeBox);
|
|
683
773
|
}
|
|
684
774
|
get key() {
|
|
685
|
-
return l(this,
|
|
775
|
+
return l(this, y);
|
|
686
776
|
}
|
|
687
777
|
get head() {
|
|
688
|
-
return l(this,
|
|
778
|
+
return l(this, ge);
|
|
689
779
|
}
|
|
690
780
|
get content() {
|
|
691
|
-
return l(this,
|
|
781
|
+
return l(this, v);
|
|
782
|
+
}
|
|
783
|
+
get bodyElement() {
|
|
784
|
+
return l(this, ve);
|
|
785
|
+
}
|
|
786
|
+
get contentElement() {
|
|
787
|
+
return l(this, we);
|
|
692
788
|
}
|
|
693
789
|
connectedCallback() {
|
|
694
790
|
super.connectedCallback(), setTimeout(() => {
|
|
695
|
-
|
|
696
|
-
}, 50), l(this,
|
|
791
|
+
S.isPanelOpened(l(this, y)) && this.openAll({ skipTransition: !0 });
|
|
792
|
+
}, 50), l(this, fe).observe(l(this, me), {
|
|
697
793
|
childList: !0
|
|
698
794
|
});
|
|
699
795
|
}
|
|
700
796
|
handleStore(t) {
|
|
701
797
|
if (t.remainingFolders.length) {
|
|
702
|
-
const r = t.store.passport.name.split("."),
|
|
703
|
-
|
|
798
|
+
const r = t.store.passport.name.split("."), i = r.slice(0, r.length - t.remainingFolders.length).join("."), s = l(this, v).current.find((n) => n.key === i);
|
|
799
|
+
s instanceof ie ? s.handleStore({
|
|
704
800
|
store: t.store,
|
|
705
801
|
remainingFolders: t.remainingFolders.slice(1)
|
|
706
|
-
}) : l(this,
|
|
707
|
-
...l(this,
|
|
708
|
-
new
|
|
709
|
-
key:
|
|
802
|
+
}) : l(this, v).current = [
|
|
803
|
+
...l(this, v).current,
|
|
804
|
+
new ie({
|
|
805
|
+
key: i,
|
|
710
806
|
storeBox: {
|
|
711
807
|
store: t.store,
|
|
712
808
|
remainingFolders: t.remainingFolders.slice(1)
|
|
@@ -714,40 +810,42 @@ let L = class extends Te {
|
|
|
714
810
|
})
|
|
715
811
|
];
|
|
716
812
|
} else {
|
|
717
|
-
const e = l(this,
|
|
813
|
+
const e = l(this, v).current.find(
|
|
718
814
|
(r) => r.key === t.store.passport.name
|
|
719
815
|
);
|
|
720
|
-
e instanceof
|
|
721
|
-
...l(this,
|
|
722
|
-
new
|
|
816
|
+
e instanceof ke ? e.addStore(t.store) : l(this, v).current = [
|
|
817
|
+
...l(this, v).current,
|
|
818
|
+
new ke({
|
|
723
819
|
store: t.store
|
|
724
820
|
})
|
|
725
821
|
];
|
|
726
822
|
}
|
|
727
823
|
}
|
|
728
824
|
};
|
|
825
|
+
y = /* @__PURE__ */ new WeakMap();
|
|
826
|
+
ge = /* @__PURE__ */ new WeakMap();
|
|
729
827
|
v = /* @__PURE__ */ new WeakMap();
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
],
|
|
738
|
-
var
|
|
739
|
-
for (var
|
|
740
|
-
(
|
|
741
|
-
return
|
|
742
|
-
},
|
|
828
|
+
fe = /* @__PURE__ */ new WeakMap();
|
|
829
|
+
ve = /* @__PURE__ */ new WeakMap();
|
|
830
|
+
we = /* @__PURE__ */ new WeakMap();
|
|
831
|
+
me = /* @__PURE__ */ new WeakMap();
|
|
832
|
+
Re = /* @__PURE__ */ new WeakMap();
|
|
833
|
+
ie = Bt([
|
|
834
|
+
C("e-tweaker-folder")
|
|
835
|
+
], ie);
|
|
836
|
+
var Yt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Qt = (t, e, r, i) => {
|
|
837
|
+
for (var s = i > 1 ? void 0 : i ? qt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
838
|
+
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
839
|
+
return i && s && Yt(e, r, s), s;
|
|
840
|
+
}, Ut = (t, e, r) => {
|
|
743
841
|
if (!e.has(t))
|
|
744
842
|
throw TypeError("Cannot " + r);
|
|
745
|
-
},
|
|
843
|
+
}, ae = (t, e, r) => (Ut(t, e, "read from private field"), e.get(t)), je = (t, e, r) => {
|
|
746
844
|
if (e.has(t))
|
|
747
845
|
throw TypeError("Cannot add the same private member more than once");
|
|
748
846
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
749
|
-
},
|
|
750
|
-
const
|
|
847
|
+
}, be, _e;
|
|
848
|
+
const er = P({
|
|
751
849
|
":host": {
|
|
752
850
|
"--tweaker-width": "500px",
|
|
753
851
|
"--tweaker-offset": "20px",
|
|
@@ -766,8 +864,8 @@ const Ct = m({
|
|
|
766
864
|
top: "var(--tweaker-offset)",
|
|
767
865
|
right: "var(--tweaker-offset)",
|
|
768
866
|
width: "var(--tweaker-width)",
|
|
769
|
-
backgroundColor:
|
|
770
|
-
borderRadius:
|
|
867
|
+
backgroundColor: h.colorMain.var,
|
|
868
|
+
borderRadius: h.borderRadius.var,
|
|
771
869
|
transition: "opacity 0.2s",
|
|
772
870
|
zIndex: "100",
|
|
773
871
|
opacity: "0.1"
|
|
@@ -775,6 +873,15 @@ const Ct = m({
|
|
|
775
873
|
":host(:hover)": {
|
|
776
874
|
opacity: "1 !important"
|
|
777
875
|
},
|
|
876
|
+
".resize": {
|
|
877
|
+
position: "absolute",
|
|
878
|
+
left: "0",
|
|
879
|
+
top: "0",
|
|
880
|
+
width: "calc(var(--tweaker-width) * 0.025)",
|
|
881
|
+
height: "100%",
|
|
882
|
+
zIndex: "1",
|
|
883
|
+
cursor: "ew-resize"
|
|
884
|
+
},
|
|
778
885
|
".tweaker-buttons": {
|
|
779
886
|
display: "flex",
|
|
780
887
|
alignItems: "center",
|
|
@@ -787,12 +894,12 @@ const Ct = m({
|
|
|
787
894
|
margin: "0",
|
|
788
895
|
background: "none",
|
|
789
896
|
border: "none",
|
|
790
|
-
fill:
|
|
897
|
+
fill: h.colorFont.var,
|
|
791
898
|
transitionProperty: "fill",
|
|
792
899
|
transitionDuration: "var(--duration-short)"
|
|
793
900
|
},
|
|
794
901
|
".tweaker-button:hover": {
|
|
795
|
-
fill:
|
|
902
|
+
fill: h.colorActive.var
|
|
796
903
|
},
|
|
797
904
|
".tweaker-button svg": {
|
|
798
905
|
width: "100%",
|
|
@@ -813,12 +920,12 @@ const Ct = m({
|
|
|
813
920
|
":host .body-content::-webkit-scrollbar": {
|
|
814
921
|
display: "none"
|
|
815
922
|
},
|
|
816
|
-
[`@media ${
|
|
923
|
+
[`@media ${lt["<=mobile"]}`]: {
|
|
817
924
|
":host": {
|
|
818
925
|
position: "absolute",
|
|
819
926
|
top: "0",
|
|
820
927
|
right: "0",
|
|
821
|
-
width: "100%",
|
|
928
|
+
width: "100% !important",
|
|
822
929
|
borderTopLeftRadius: "0",
|
|
823
930
|
borderTopRightRadius: "0"
|
|
824
931
|
},
|
|
@@ -830,14 +937,14 @@ const Ct = m({
|
|
|
830
937
|
}
|
|
831
938
|
}
|
|
832
939
|
});
|
|
833
|
-
let
|
|
940
|
+
let Ie = class extends ie {
|
|
834
941
|
constructor() {
|
|
835
942
|
super({
|
|
836
943
|
key: ""
|
|
837
|
-
}),
|
|
838
|
-
|
|
839
|
-
}),
|
|
840
|
-
|
|
944
|
+
}), je(this, be, () => {
|
|
945
|
+
S.save();
|
|
946
|
+
}), je(this, _e, it(() => {
|
|
947
|
+
K.current.forEach((t) => {
|
|
841
948
|
if (t.passport) {
|
|
842
949
|
const e = t.passport.name.split(".");
|
|
843
950
|
this.handleStore({
|
|
@@ -846,58 +953,58 @@ let ue = class extends L {
|
|
|
846
953
|
});
|
|
847
954
|
}
|
|
848
955
|
});
|
|
849
|
-
}, 10)),
|
|
850
|
-
|
|
956
|
+
}, 10)), S.load(), this.addStylesheet(er), this.head.current = [
|
|
957
|
+
g({
|
|
851
958
|
class: "tweaker-buttons",
|
|
852
959
|
onClick: (t) => {
|
|
853
960
|
t.stopPropagation();
|
|
854
961
|
},
|
|
855
962
|
children: [
|
|
856
|
-
|
|
963
|
+
te({
|
|
857
964
|
class: "tweaker-button",
|
|
858
|
-
children:
|
|
965
|
+
children: Be,
|
|
859
966
|
onClick: () => {
|
|
860
|
-
|
|
967
|
+
O.resetState();
|
|
861
968
|
}
|
|
862
969
|
}),
|
|
863
|
-
|
|
970
|
+
te({
|
|
864
971
|
class: ["tweaker-button"],
|
|
865
|
-
children: [
|
|
972
|
+
children: [Xe],
|
|
866
973
|
onClick: () => {
|
|
867
974
|
navigator.clipboard.writeText(
|
|
868
|
-
JSON.stringify(
|
|
975
|
+
JSON.stringify(O.getState())
|
|
869
976
|
);
|
|
870
977
|
}
|
|
871
978
|
}),
|
|
872
|
-
|
|
979
|
+
te({
|
|
873
980
|
class: "tweaker-button",
|
|
874
|
-
children:
|
|
981
|
+
children: gt,
|
|
875
982
|
onClick: () => {
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
983
|
+
st(
|
|
984
|
+
O.projectName,
|
|
985
|
+
O.getState()
|
|
879
986
|
);
|
|
880
987
|
}
|
|
881
988
|
}),
|
|
882
|
-
|
|
989
|
+
ot({
|
|
883
990
|
class: "tweaker-button",
|
|
884
991
|
children: [
|
|
885
|
-
|
|
886
|
-
|
|
992
|
+
ft,
|
|
993
|
+
xe({
|
|
887
994
|
type: "file",
|
|
888
995
|
style: {
|
|
889
996
|
display: "none"
|
|
890
997
|
},
|
|
891
998
|
onChange: (t) => {
|
|
892
|
-
var
|
|
893
|
-
const r = (
|
|
999
|
+
var i;
|
|
1000
|
+
const r = (i = t.currentTarget.files) == null ? void 0 : i[0];
|
|
894
1001
|
if (r) {
|
|
895
|
-
const
|
|
896
|
-
|
|
897
|
-
var
|
|
898
|
-
const
|
|
899
|
-
|
|
900
|
-
},
|
|
1002
|
+
const s = new FileReader();
|
|
1003
|
+
s.onload = (n) => {
|
|
1004
|
+
var T, j;
|
|
1005
|
+
const a = (j = (T = n.target) == null ? void 0 : T.result) == null ? void 0 : j.toString();
|
|
1006
|
+
a && O.loadState(a);
|
|
1007
|
+
}, s.readAsText(r);
|
|
901
1008
|
}
|
|
902
1009
|
}
|
|
903
1010
|
})
|
|
@@ -905,20 +1012,36 @@ let ue = class extends L {
|
|
|
905
1012
|
})
|
|
906
1013
|
]
|
|
907
1014
|
})
|
|
908
|
-
], this.
|
|
1015
|
+
], f(this.bodyElement, {
|
|
1016
|
+
children: [
|
|
1017
|
+
g({
|
|
1018
|
+
class: "resize",
|
|
1019
|
+
onPointerdown: (t) => {
|
|
1020
|
+
const e = this.getBoundingClientRect();
|
|
1021
|
+
Je((r) => {
|
|
1022
|
+
const i = t.x - r.x, s = Math.max(400, e.width + i);
|
|
1023
|
+
this.style.width = s + "px", S.changeSize("tweaker", s);
|
|
1024
|
+
});
|
|
1025
|
+
},
|
|
1026
|
+
onDblclick: () => {
|
|
1027
|
+
this.style.width = "", S.changeSize("tweaker", null);
|
|
1028
|
+
}
|
|
1029
|
+
})
|
|
1030
|
+
]
|
|
1031
|
+
}), this.addEventListener("accordionItemToggle", (t) => {
|
|
909
1032
|
t.detail.opened ? this.style.opacity = "1" : this.style.opacity = "0.1";
|
|
910
1033
|
});
|
|
911
1034
|
}
|
|
912
1035
|
connectedCallback() {
|
|
913
|
-
super.connectedCallback(), window.addEventListener("beforeunload",
|
|
1036
|
+
super.connectedCallback(), window.addEventListener("beforeunload", ae(this, be)), K.subscribe(ae(this, _e)), S.changedSizes("tweaker") && (this.style.width = S.changedSizes("tweaker") + "px");
|
|
914
1037
|
}
|
|
915
1038
|
disconnectedCallback() {
|
|
916
|
-
super.disconnectedCallback(), window.removeEventListener("beforeunload",
|
|
1039
|
+
super.disconnectedCallback(), window.removeEventListener("beforeunload", ae(this, be)), S.save(), K.unsubscribe(ae(this, _e));
|
|
917
1040
|
}
|
|
918
1041
|
};
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
],
|
|
924
|
-
|
|
1042
|
+
be = /* @__PURE__ */ new WeakMap();
|
|
1043
|
+
_e = /* @__PURE__ */ new WeakMap();
|
|
1044
|
+
Ie = Qt([
|
|
1045
|
+
C("e-tweaker")
|
|
1046
|
+
], Ie);
|
|
1047
|
+
rt && document.body.appendChild(new Ie());
|