aptechka 0.11.11 → 0.12.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.
Files changed (90) hide show
  1. package/client-lib/canvas/index.cjs +1 -1
  2. package/client-lib/canvas/index.js +2 -2
  3. package/client-lib/checkbox/index.cjs +1 -1
  4. package/client-lib/checkbox/index.js +4 -4
  5. package/client-lib/{createStylesheet-BBBiyAsF.cjs → createStylesheet-BqjaCUhm.cjs} +1 -1
  6. package/client-lib/{createStylesheet-CE1yXWS_.js → createStylesheet-DNG2b5X4.js} +1 -1
  7. package/client-lib/element-constructor/index.cjs +1 -1
  8. package/client-lib/element-constructor/index.js +113 -114
  9. package/client-lib/{index-D-RA8KFB.js → index-BuvwT3dS.js} +2 -2
  10. package/client-lib/{index-PReYu1AQ.cjs → index-Ctct2GyP.cjs} +1 -1
  11. package/client-lib/modal/index.cjs +1 -1
  12. package/client-lib/modal/index.js +2 -2
  13. package/client-lib/popover/index.cjs +1 -1
  14. package/client-lib/popover/index.js +1 -1
  15. package/client-lib/router/index.cjs +1 -1
  16. package/client-lib/router/index.js +73 -76
  17. package/client-lib/scroll/index.cjs +1 -1
  18. package/client-lib/scroll/index.js +2 -2
  19. package/client-lib/select/index.cjs +1 -1
  20. package/client-lib/select/index.js +1 -1
  21. package/client-lib/tags-B0do5eeb.cjs +1 -0
  22. package/client-lib/tags-wG5k157g.js +860 -0
  23. package/client-lib/theme/index.cjs +1 -1
  24. package/client-lib/theme/index.js +1 -1
  25. package/client-lib/tweaker/index.cjs +1 -1
  26. package/client-lib/tweaker/index.js +43 -43
  27. package/package.json +1 -73
  28. package/client-lib/ElementConstructor-Be8H1POO.js +0 -378
  29. package/client-lib/ElementConstructor-khLPmQ9V.cjs +0 -1
  30. package/client-lib/_createStore-C75y9luu.cjs +0 -1
  31. package/client-lib/_createStore-D3qHYaSz.js +0 -12
  32. package/client-lib/globals-DMjysUXI.js +0 -8
  33. package/client-lib/globals-bYKki-b9.cjs +0 -1
  34. package/client-lib/instantiate-CfK7LHHy.js +0 -152
  35. package/client-lib/instantiate-DfsD19EH.cjs +0 -1
  36. package/client-lib/jsx/ComponentElement.d.ts +0 -17
  37. package/client-lib/jsx/globals.d.ts +0 -13
  38. package/client-lib/jsx/h.d.ts +0 -6
  39. package/client-lib/jsx/hooks/animation/createDamped.d.ts +0 -3
  40. package/client-lib/jsx/hooks/animation/createTweened.d.ts +0 -3
  41. package/client-lib/jsx/hooks/animation/index.cjs +0 -1
  42. package/client-lib/jsx/hooks/animation/index.d.ts +0 -2
  43. package/client-lib/jsx/hooks/animation/index.js +0 -15
  44. package/client-lib/jsx/hooks/basic/_createStore.d.ts +0 -4
  45. package/client-lib/jsx/hooks/basic/attachInternals.d.ts +0 -1
  46. package/client-lib/jsx/hooks/basic/attachShadow.d.ts +0 -1
  47. package/client-lib/jsx/hooks/basic/attachStylesheet.d.ts +0 -3
  48. package/client-lib/jsx/hooks/basic/createContext.d.ts +0 -2
  49. package/client-lib/jsx/hooks/basic/createRef.d.ts +0 -3
  50. package/client-lib/jsx/hooks/basic/onConnect.d.ts +0 -3
  51. package/client-lib/jsx/hooks/basic/onDisconnect.d.ts +0 -3
  52. package/client-lib/jsx/hooks/basic/onStoreChange.d.ts +0 -3
  53. package/client-lib/jsx/hooks/onAnimationFrame.cjs +0 -1
  54. package/client-lib/jsx/hooks/onAnimationFrame.d.ts +0 -6
  55. package/client-lib/jsx/hooks/onAnimationFrame.js +0 -22
  56. package/client-lib/jsx/hooks/onElementResize.cjs +0 -1
  57. package/client-lib/jsx/hooks/onElementResize.d.ts +0 -5
  58. package/client-lib/jsx/hooks/onElementResize.js +0 -11
  59. package/client-lib/jsx/hooks/onIntersection.cjs +0 -1
  60. package/client-lib/jsx/hooks/onIntersection.d.ts +0 -5
  61. package/client-lib/jsx/hooks/onIntersection.js +0 -11
  62. package/client-lib/jsx/hooks/onWindowResize.cjs +0 -1
  63. package/client-lib/jsx/hooks/onWindowResize.d.ts +0 -3
  64. package/client-lib/jsx/hooks/onWindowResize.js +0 -8
  65. package/client-lib/jsx/hooks/store/createCached.d.ts +0 -4
  66. package/client-lib/jsx/hooks/store/createComposed.d.ts +0 -3
  67. package/client-lib/jsx/hooks/store/createDerived.d.ts +0 -4
  68. package/client-lib/jsx/hooks/store/createDerivedArray.d.ts +0 -4
  69. package/client-lib/jsx/hooks/store/createResource.d.ts +0 -3
  70. package/client-lib/jsx/hooks/store/createStore.d.ts +0 -3
  71. package/client-lib/jsx/hooks/store/index.cjs +0 -1
  72. package/client-lib/jsx/hooks/store/index.d.ts +0 -6
  73. package/client-lib/jsx/hooks/store/index.js +0 -45
  74. package/client-lib/jsx/hooks/watchAttribute.cjs +0 -1
  75. package/client-lib/jsx/hooks/watchAttribute.d.ts +0 -6
  76. package/client-lib/jsx/hooks/watchAttribute.js +0 -17
  77. package/client-lib/jsx/hooks/watchCSSProperty.cjs +0 -1
  78. package/client-lib/jsx/hooks/watchCSSProperty.d.ts +0 -7
  79. package/client-lib/jsx/hooks/watchCSSProperty.js +0 -17
  80. package/client-lib/jsx/index.cjs +0 -1
  81. package/client-lib/jsx/index.d.ts +0 -15
  82. package/client-lib/jsx/index.js +0 -106
  83. package/client-lib/jsx/instantiate.d.ts +0 -5
  84. package/client-lib/jsx/register.d.ts +0 -1
  85. package/client-lib/jsx/render.d.ts +0 -6
  86. package/client-lib/jsx/type.d.ts +0 -195
  87. package/client-lib/onConnect-DGP866cj.cjs +0 -1
  88. package/client-lib/onConnect-y5DrxJ9P.js +0 -7
  89. package/client-lib/tags-BdW7ATzD.cjs +0 -1
  90. package/client-lib/tags-C75owfOo.js +0 -485
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-Cr3VaD9G.cjs");const t=require("../browser-CpzFX2xg.cjs");require("../ticker/index.cjs");const o=require("../tags-BdW7ATzD.cjs"),a=require("../createTheme-Cfaw9UmV.cjs"),r=a.createTheme({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(t.isBrowser){const e=o.style({":root":r.style}).node;e.setAttribute("data-permanent",""),document.head.appendChild(e)}exports.aptechkaTheme=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-Cr3VaD9G.cjs");const t=require("../browser-CpzFX2xg.cjs");require("../ticker/index.cjs");const o=require("../tags-B0do5eeb.cjs"),a=require("../createTheme-Cfaw9UmV.cjs"),r=a.createTheme({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(t.isBrowser){const e=o.style({":root":r.style}).node;e.setAttribute("data-permanent",""),document.head.appendChild(e)}exports.aptechkaTheme=r;
@@ -1,7 +1,7 @@
1
1
  import "../Store-Qr3SNOSf.js";
2
2
  import { i as e } from "../browser-0zX67oeU.js";
3
3
  import "../ticker/index.js";
4
- import { aC as r } from "../tags-C75owfOo.js";
4
+ import { aD as r } from "../tags-wG5k157g.js";
5
5
  import { c as t } from "../createTheme-CHnsCgAr.js";
6
6
  const a = t(
7
7
  {
@@ -1,4 +1,4 @@
1
- "use strict";var me=(h,i,e)=>{if(!i.has(h))throw TypeError("Cannot "+e)};var t=(h,i,e)=>(me(h,i,"read from private field"),e?e.call(h):i.get(h)),a=(h,i,e)=>{if(i.has(h))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(h):i.set(h,e)},o=(h,i,e,s)=>(me(h,i,"write to private field"),s?s.call(h,e):i.set(h,e),e);var m=(h,i,e)=>(me(h,i,"access private method"),e);const He=require("../browser-CpzFX2xg.cjs"),p=require("../Store-Cr3VaD9G.cjs"),Ke=require("../file-EevnUtRj.cjs"),Oe=require("../function-MthRj-GJ.cjs"),xe=require("../gestures-DHLrn6Q8.cjs");require("../ticker/index.cjs");const n=require("../tags-BdW7ATzD.cjs"),E=require("../createStylesheet-BBBiyAsF.cjs"),Ze=require("../Viewport-BBYt1Ivy.cjs"),c=require("../theme/index.cjs"),je=require("../index-PReYu1AQ.cjs"),Je=require("../events-BGwqaxVW.cjs");require("../checkbox/index.cjs");const We=require("../math-GDWEqu7y.cjs"),fe=require("../polyfills-CM4SCDTt.cjs"),Se=require("../element-resizer/index.cjs"),Ee='<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>',Ce='<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>',_e='<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>',Be='<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 L,w,S;class Xe{constructor(){a(this,L,void 0);a(this,w,void 0);a(this,S,void 0);this.scrollValue=0,o(this,L,""),o(this,w,[]),o(this,S,{}),o(this,L,p.storeRegistry.projectName+"-studio")}openPanel(i){t(this,w).includes(i)||t(this,w).push(i)}closePanel(i){o(this,w,t(this,w).filter(e=>e!==i))}isPanelOpened(i){return t(this,w).includes(i)}changedSizes(i){return t(this,S)[i]}changeSize(i,e){e?t(this,S)[i]=e:delete t(this,S)[i]}save(){const i={openedPanels:t(this,w),changedSizes:t(this,S),scrollValue:this.scrollValue};localStorage.setItem(t(this,L),JSON.stringify(i)),p.storeRegistry.saveState()}load(){p.storeRegistry.loadState();const i=localStorage.getItem(t(this,L));if(i)try{const e=JSON.parse(i);e.openedPanels&&o(this,w,e.openedPanels),e.changedSizes&&o(this,S,e.changedSizes),e.scrollValue&&(this.scrollValue=e.scrollValue)}catch(e){console.error(e)}}}L=new WeakMap,w=new WeakMap,S=new WeakMap;const f=new Xe;var T;class O extends HTMLElement{constructor(...e){super();a(this,T,void 0);o(this,T,e)}addStore(e){t(this,T).push(e)}get firstStore(){return t(this,T)[0]}get stores(){return t(this,T)}updateStores(e){t(this,T).forEach(s=>{s.current=e})}}T=new WeakMap;const Ye=E.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},"e-checkbox":{"--size":"calc(var(--height-input) * 0.8)",width:"var(--size)",height:"var(--size)",borderRadius:c.aptechkaTheme.borderRadiusSmall.var}});class ze extends O{constructor(...i){super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ye),n.element(this,{children:[n.element("e-checkbox",{onChange:s=>{this.updateStores(s.currentTarget.checked)},ref:s=>{this.firstStore.subscribe(r=>{s.checked=r.current})}})]})}}customElements.get("e-tweaker-boolean-manager")||customElements.define("e-tweaker-boolean-manager",ze);const Ge=E.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:"var(--height-input)",padding:"0",background:"none",borderRadius:c.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:c.aptechkaTheme.borderRadius.var,height:"calc(var(--height-input) * 0.93)"}});class Te extends O{constructor(...i){super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ge),n.element(this,{children:[n.input({type:"color",value:this.firstStore,onInput:s=>{this.updateStores(s.currentTarget.value)}})]})}}customElements.get("e-tweaker-color-manager")||customElements.define("e-tweaker-color-manager",Te);const Qe=E.createStylesheet({a:{color:"inherit",fontSize:"var(--font-size-small)"}});class Re extends O{constructor(...i){var s,r;super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Qe),console.log(this.firstStore),n.element(this,{children:[n.a({href:this.firstStore,target:(r=(s=this.firstStore.passport)==null?void 0:s.manager)!=null&&r.sameWindow?"_self":"_blank",children:this.firstStore})]})}}customElements.get("e-tweaker-link-manager")||customElements.define("e-tweaker-link-manager",Re);const Ue=E.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center",gap:"var(--gap-small)"},".inputs-wrapper":{display:"grid",gap:"var(--gap-small)",width:"100%"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",width:"100%",height:"var(--height-input)",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var},".drag":{position:"relative",width:"100%",height:"calc(var(--height-input) * 0.2)",display:"flex",alignItems:"center"},".drag::before":{content:'""',position:"absolute",left:"0",width:"100%",zIndex:"-1",height:"1px",borderBottom:`1px solid ${c.aptechkaTheme.colorFont.var}`,transform:"translateY(-50%)",opacity:"0.3"},":host(.infinite) .drag::before":{borderBottom:`1px dashed ${c.aptechkaTheme.colorFont.var}`},".drag-knob":{"--size":"calc(var(--height-input) * 0.4)",width:"var(--size)",height:"var(--size)"},".drag-knob-inner":{width:"100%",height:"100%",backgroundColor:c.aptechkaTheme.colorFont.var,borderRadius:c.aptechkaTheme.borderRadiusSmall.var,transition:"opacity var(--duration-short)"},":host(.infinite) .grabbing .drag-knob-inner":{opacity:.3}});var P,q,N,x,R,j,J,y,I,W,_,F,V,B,we,X,be,$,le,Y;class Fe extends O{constructor(...e){var r,l,d,u,k,M,Z,ke;super(...e);a(this,F);a(this,B);a(this,X);a(this,$);a(this,P,[]);a(this,q,[]);a(this,N,void 0);a(this,x,void 0);a(this,R,void 0);a(this,j,void 0);a(this,J,void 0);a(this,y,void 0);a(this,I,!1);a(this,W,e=>{const s=m(this,F,V).call(this,e);return s.map((r,l)=>{const d=typeof r=="string"?parseFloat(r)||t(this,x):r,u=We.clamp(d,t(this,x),t(this,R)),k=fe.toStep(u,t(this,N));s[l]=k}),t(this,J)==="number"?s[0]:s});a(this,_,()=>{m(this,F,V).call(this).map((e,s)=>{const r=t(this,P)[s];r&&(r.value=(e||0).toString())}),m(this,B,we).call(this)});a(this,Y,()=>{m(this,B,we).call(this)});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ue),o(this,x,fe.nullishCoalescing((l=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:l.min,-1/0)),o(this,R,fe.nullishCoalescing((u=(d=this.firstStore.passport)==null?void 0:d.manager)==null?void 0:u.max,1/0)),o(this,N,((M=(k=this.firstStore.passport)==null?void 0:k.manager)==null?void 0:M.step)||.01),o(this,j,((ke=(Z=this.firstStore.passport)==null?void 0:Z.manager)==null?void 0:ke.ease)||1),o(this,J,Array.isArray(this.firstStore.current)?"array":"number"),o(this,y,isFinite(t(this,R))&&isFinite(t(this,x))),n.element(this,{class:t(this,y)?"":"infinite",children:m(this,F,V).call(this).map((Ie,oe)=>n.div({class:"inputs-wrapper",children:[n.input({type:"number",step:t(this,N),min:t(this,x),max:t(this,R),ref:C=>t(this,P).push(C),value:Ie,onChange:()=>{this.updateStores(t(this,P).map(C=>parseFloat(C.value)))}}),n.div({class:"drag",children:[n.div({class:"drag-knob",ref:C=>t(this,q).push(C),onPointerdown:C=>{C.preventDefault(),o(this,I,!0);const ue=m(this,F,V).call(this),Ve=ue[oe],z=t(this,q)[oe],qe=t(this,P)[oe];if(z&&qe){const pe=z.parentElement,Ne=m(this,X,be).call(this);pe.classList.add("grabbing"),xe.setupDrag(ge=>{const ye=ge.x-C.x,$e=t(this,y)?pe.offsetWidth/(Ne||1):1,Ae=Ve+ye/$e*t(this,j);if(ue[oe]=Ae,!t(this,y)){const De=m(this,$,le).call(this,z,0);z.style.transform=`translateX(${De+ye}px)`}this.updateStores([...ue])},()=>{if(o(this,I,!1),!t(this,y)){const ge=m(this,$,le).call(this,z,0);z.style.transition="transform 0.1s",z.style.transform=`translateX(${ge}px)`,pe.classList.remove("grabbing"),setTimeout(()=>{z.style.transition=""},100)}})}},children:n.div({class:"drag-knob-inner"})})]})]}))})}connectedCallback(){this.firstStore.addMiddleware(t(this,W)),this.firstStore.subscribe(t(this,_)),Se.elementResizer.subscribe(this,t(this,Y))}disconnectedCallback(){this.firstStore.removeMiddleware(t(this,W)),this.firstStore.unsubscribe(t(this,_)),Se.elementResizer.unsubscribe(t(this,Y))}}P=new WeakMap,q=new WeakMap,N=new WeakMap,x=new WeakMap,R=new WeakMap,j=new WeakMap,J=new WeakMap,y=new WeakMap,I=new WeakMap,W=new WeakMap,_=new WeakMap,F=new WeakSet,V=function(e=this.firstStore.current){return Array.isArray(e)?e:[e]},B=new WeakSet,we=function(){m(this,F,V).call(this).map((e,s)=>{const r=t(this,q)[s];if(r&&(!t(this,I)||t(this,I)&&t(this,y))){const l=m(this,$,le).call(this,r,e);r.style.transform=`translateX(${l}px)`}})},X=new WeakSet,be=function(){return t(this,y)?t(this,R)-t(this,x):0},$=new WeakSet,le=function(e,s){const r=e.parentElement,l=m(this,X,be).call(this),d=l?s/l:.5;return(r.offsetWidth-e.offsetWidth)*d},Y=new WeakMap;customElements.get("e-tweaker-number-manager")||customElements.define("e-tweaker-number-manager",Fe);const et=E.createStylesheet({"e-select":{display:"block",width:"100%","--arrow-color":c.aptechkaTheme.colorFont.var},"e-select-head":{width:"100%",height:"var(--height-input)",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"var(--font-size-small)"},"e-select-option":{height:"var(--height-input)",transitionDuration:"var(--duration-short)",transitionProperty:"color",fontSize:"var(--font-size-small)"},"e-select-option:hover":{color:c.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:c.aptechkaTheme.colorFont.var,transitionProperty:"transform",transitionDuration:"var(--duration-short)"},".opened svg":{transform:"scaleY(-1)"}});class Me extends O{constructor(...i){var r,l;super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(et);const s=((l=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:l.variants)||[];n.element(this,{children:n.element("e-select",{value:this.firstStore,onChange:d=>{this.updateStores(d.currentTarget.value)},lightChildren:[n.element("e-select-head",{lightChildren:[n.span({"data-value-holder":""})]}),...s.map((d,u)=>n.element("e-select-option",{lightChildren:d,default:u===0?!0:null}))]})})}}customElements.get("e-tweaker-select-manager")||customElements.define("e-tweaker-select-manager",Me);const tt=E.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",height:"var(--height-input)",width:"100%",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var}});class Le extends O{constructor(...i){super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(tt),n.element(this,{children:[n.input({class:"text-input",type:"string",value:this.firstStore,onChange:s=>{this.updateStores(s.currentTarget.value)}})]})}}customElements.get("e-tweaker-string-manager")||customElements.define("e-tweaker-string-manager",Le);const st={boolean:ze,color:Te,link:Re,number:Fe,select:Me,string:Le},rt=E.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.5fr 1fr",alignItems:"center",color:c.aptechkaTheme.colorFont.var,gap:"var(--gap-medium)"},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:"var(--font-size-medium)",display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:c.aptechkaTheme.colorFont.var,transitionDuration:"var(--duration-short)",transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:c.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});var b,A,D,H,K,G,Q;class ve extends HTMLElement{constructor(e){var l,d,u,k;super();a(this,b,[]);a(this,A,void 0);a(this,D,void 0);a(this,H,!1);a(this,K,void 0);a(this,G,()=>{p.activeStores.current.find(e=>t(this,b).includes(e))||this.remove()});a(this,Q,e=>{t(this,H)&&((e.metaKey||e.ctrlKey)&&e.code==="KeyC"?navigator.clipboard.writeText(t(this,b)[0].current):(e.metaKey||e.ctrlKey)&&e.code==="KeyR"&&(t(this,b).forEach(s=>{s.reset()}),e.preventDefault()))});o(this,b,[e.store]),o(this,A,e.store.passport.name),o(this,D,t(this,A).split(".").slice(-1).toString());const s=((d=(l=e.store.passport)==null?void 0:l.manager)==null?void 0:d.type)||"string";o(this,K,new st[s](t(this,b)[0])),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(rt),n.element(this,{class:{disabled:((k=(u=e.store.passport)==null?void 0:u.manager)==null?void 0:k.disabled)||!1},onPointerleave:()=>{o(this,H,!1)},onPointerenter:()=>{o(this,H,!0)},children:[n.div({class:"head",children:[n.div({class:"name",children:t(this,D)+":"}),n.div({class:"head-buttons",children:[n.button({class:"head-button",children:Ce,onClick:()=>{navigator.clipboard.writeText(t(this,b)[0].current)}}),n.button({class:"head-button",children:Ee,onClick:()=>{t(this,b).forEach(M=>{M.reset()})}})]})]}),t(this,K)]})}get key(){return t(this,A)}get name(){return t(this,D)}get stores(){return t(this,b)}addStore(e){t(this,K).addStore(e)}connectedCallback(){p.activeStores.subscribe(t(this,G)),addEventListener("keydown",t(this,Q)),Je.dispatchSizeChangeEvent(this)}disconnectedCallback(){p.activeStores.unsubscribe(t(this,G)),removeEventListener("keydown",t(this,Q))}}b=new WeakMap,A=new WeakMap,D=new WeakMap,H=new WeakMap,K=new WeakMap,G=new WeakMap,Q=new WeakMap;customElements.get("e-tweaker-field")||customElements.define("e-tweaker-field",ve);const it=E.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:"var(--tweaker-folder-height)",paddingLeft:"var(--gap-medium)",paddingRight:"var(--gap-medium)",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:c.aptechkaTheme.colorMainAux.var,borderRadius:c.aptechkaTheme.borderRadius.var},".name":{fontSize:"var(--font-size-large)",color:c.aptechkaTheme.colorFont.var},".body":{display:"none",overflow:"hidden","@supports (height: calc-size(auto))":{height:"0"}},":host(.transition-allowed) .body":{transition:"height var(--duration-short), display var(--duration-short) allow-discrete"},":host(.opened) .body":{height:"calc-size(auto)",display:"block","@starting-style":{height:"0"}},".body-content":{boxSizing:"border-box",padding:"var(--gap-large)",display:"grid",gap:"var(--gap-medium)"},".arrow":{width:"20px",height:"20px",fill:c.aptechkaTheme.colorFont.var,transition:"transform var(--duration-short)"},".opened .arrow":{transform:"scaleY(-1)"}});var v,U,g,ee,te,se,re,ce;const de=class de extends HTMLElement{constructor(e){super();a(this,v,void 0);a(this,U,new p.Store(null));a(this,g,new p.Store([]));a(this,ee,void 0);a(this,te,null);a(this,se,null);a(this,re,null);a(this,ce,e=>{let s=[],r=[];e.forEach(l=>{s=[...s,...l.removedNodes],r=[...r,...l.addedNodes]}),t(this,g).current=t(this,g).current.filter(l=>!s.includes(l)),t(this,v)&&!t(this,g).current.length&&!r.length&&this.remove()});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(it),o(this,v,e.key),o(this,ee,new MutationObserver(t(this,ce))),n.element(this,{children:[n.div({class:"wrapper",children:[n.div({class:"head",onClick:r=>{this.classList.toggle("opened"),this.classList.contains("opened")?f.openPanel(t(this,v)):f.closePanel(t(this,v))},children:[t(this,v)?n.div({class:"name",children:[t(this,v).split(".").slice(-1).toString()]}):null,t(this,U),n.element(je.arrowIcon,{class:"arrow"})]}),n.div({class:"body",ref:r=>{o(this,te,r)},children:n.div({class:"body-content",children:t(this,g),ref:r=>{o(this,se,r),o(this,re,r.firstElementChild)}})})]})]}),e!=null&&e.storeBox&&this.handleStore(e.storeBox)}get key(){return t(this,v)}get head(){return t(this,U)}get content(){return t(this,g)}get bodyElement(){return t(this,te)}get contentElement(){return t(this,se)}connectedCallback(){f.isPanelOpened(t(this,v))&&this.classList.add("opened"),setTimeout(()=>{this.classList.add("transition-allowed")}),t(this,ee).observe(t(this,re),{childList:!0})}handleStore(e){if(e.remainingFolders.length){const r=e.store.passport.name.split("."),l=r.slice(0,r.length-e.remainingFolders.length).join("."),d=t(this,g).current.find(u=>u.key===l);d instanceof de?d.handleStore({store:e.store,remainingFolders:e.remainingFolders.slice(1)}):t(this,g).current=[...t(this,g).current,new de({key:l,storeBox:{store:e.store,remainingFolders:e.remainingFolders.slice(1)}})]}else{const s=t(this,g).current.find(r=>r.key===e.store.passport.name);s instanceof ve?s.addStore(e.store):t(this,g).current=[...t(this,g).current,new ve({store:e.store})]}}};v=new WeakMap,U=new WeakMap,g=new WeakMap,ee=new WeakMap,te=new WeakMap,se=new WeakMap,re=new WeakMap,ce=new WeakMap;let he=de;customElements.get("e-tweaker-folder")||customElements.define("e-tweaker-folder",he);const nt=E.createStylesheet({":host":{"--tweaker-width":"550px","--tweaker-offset":"20px","--tweaker-folder-height":"35px","--height-input":"25px","--gap-large":"12px","--gap-medium":"10px","--gap-small":"8px","--gap-extra-small":"4px","--font-size-large":"16px","--font-size-medium":"14px","--font-size-small":"12px","--duration-short":"0.2s",fontFamily:"sans-serif",position:"absolute",top:"var(--tweaker-offset)",right:"var(--tweaker-offset)",width:"var(--tweaker-width)",backgroundColor:c.aptechkaTheme.colorMain.var,borderRadius:c.aptechkaTheme.borderRadius.var,transition:"opacity 0.1s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".resize":{position:"absolute",left:"0",top:"0",width:"calc(var(--tweaker-width) * 0.025)",height:"100%",zIndex:"1",cursor:"ew-resize"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:c.aptechkaTheme.colorFont.var,transitionProperty:"fill",transitionDuration:"var(--duration-short)"},".tweaker-button:hover":{fill:c.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
1
+ "use strict";var me=(h,i,e)=>{if(!i.has(h))throw TypeError("Cannot "+e)};var t=(h,i,e)=>(me(h,i,"read from private field"),e?e.call(h):i.get(h)),a=(h,i,e)=>{if(i.has(h))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(h):i.set(h,e)},o=(h,i,e,s)=>(me(h,i,"write to private field"),s?s.call(h,e):i.set(h,e),e);var m=(h,i,e)=>(me(h,i,"access private method"),e);const He=require("../browser-CpzFX2xg.cjs"),p=require("../Store-Cr3VaD9G.cjs"),Ke=require("../file-EevnUtRj.cjs"),Oe=require("../function-MthRj-GJ.cjs"),xe=require("../gestures-DHLrn6Q8.cjs");require("../ticker/index.cjs");const n=require("../tags-B0do5eeb.cjs"),E=require("../createStylesheet-BqjaCUhm.cjs"),Ze=require("../Viewport-BBYt1Ivy.cjs"),c=require("../theme/index.cjs"),je=require("../index-Ctct2GyP.cjs"),Je=require("../events-BGwqaxVW.cjs");require("../checkbox/index.cjs");const We=require("../math-GDWEqu7y.cjs"),fe=require("../polyfills-CM4SCDTt.cjs"),Se=require("../element-resizer/index.cjs"),Ee='<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>',Ce='<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>',_e='<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>',Be='<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 L,w,S;class Xe{constructor(){a(this,L,void 0);a(this,w,void 0);a(this,S,void 0);this.scrollValue=0,o(this,L,""),o(this,w,[]),o(this,S,{}),o(this,L,p.storeRegistry.projectName+"-studio")}openPanel(i){t(this,w).includes(i)||t(this,w).push(i)}closePanel(i){o(this,w,t(this,w).filter(e=>e!==i))}isPanelOpened(i){return t(this,w).includes(i)}changedSizes(i){return t(this,S)[i]}changeSize(i,e){e?t(this,S)[i]=e:delete t(this,S)[i]}save(){const i={openedPanels:t(this,w),changedSizes:t(this,S),scrollValue:this.scrollValue};localStorage.setItem(t(this,L),JSON.stringify(i)),p.storeRegistry.saveState()}load(){p.storeRegistry.loadState();const i=localStorage.getItem(t(this,L));if(i)try{const e=JSON.parse(i);e.openedPanels&&o(this,w,e.openedPanels),e.changedSizes&&o(this,S,e.changedSizes),e.scrollValue&&(this.scrollValue=e.scrollValue)}catch(e){console.error(e)}}}L=new WeakMap,w=new WeakMap,S=new WeakMap;const f=new Xe;var T;class O extends HTMLElement{constructor(...e){super();a(this,T,void 0);o(this,T,e)}addStore(e){t(this,T).push(e)}get firstStore(){return t(this,T)[0]}get stores(){return t(this,T)}updateStores(e){t(this,T).forEach(s=>{s.current=e})}}T=new WeakMap;const Ye=E.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},"e-checkbox":{"--size":"calc(var(--height-input) * 0.8)",width:"var(--size)",height:"var(--size)",borderRadius:c.aptechkaTheme.borderRadiusSmall.var}});class ze extends O{constructor(...i){super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ye),n.element(this,{children:[n.element("e-checkbox",{onChange:s=>{this.updateStores(s.currentTarget.checked)},ref:s=>{this.firstStore.subscribe(r=>{s.checked=r.current})}})]})}}customElements.get("e-tweaker-boolean-manager")||customElements.define("e-tweaker-boolean-manager",ze);const Ge=E.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:"var(--height-input)",padding:"0",background:"none",borderRadius:c.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:c.aptechkaTheme.borderRadius.var,height:"calc(var(--height-input) * 0.93)"}});class Te extends O{constructor(...i){super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ge),n.element(this,{children:[n.input({type:"color",value:this.firstStore,onInput:s=>{this.updateStores(s.currentTarget.value)}})]})}}customElements.get("e-tweaker-color-manager")||customElements.define("e-tweaker-color-manager",Te);const Qe=E.createStylesheet({a:{color:"inherit",fontSize:"var(--font-size-small)"}});class Re extends O{constructor(...i){var s,r;super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Qe),console.log(this.firstStore),n.element(this,{children:[n.a({href:this.firstStore,target:(r=(s=this.firstStore.passport)==null?void 0:s.manager)!=null&&r.sameWindow?"_self":"_blank",children:this.firstStore})]})}}customElements.get("e-tweaker-link-manager")||customElements.define("e-tweaker-link-manager",Re);const Ue=E.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center",gap:"var(--gap-small)"},".inputs-wrapper":{display:"grid",gap:"var(--gap-small)",width:"100%"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",width:"100%",height:"var(--height-input)",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var},".drag":{position:"relative",width:"100%",height:"calc(var(--height-input) * 0.2)",display:"flex",alignItems:"center"},".drag::before":{content:'""',position:"absolute",left:"0",width:"100%",zIndex:"-1",height:"1px",borderBottom:`1px solid ${c.aptechkaTheme.colorFont.var}`,transform:"translateY(-50%)",opacity:"0.3"},":host(.infinite) .drag::before":{borderBottom:`1px dashed ${c.aptechkaTheme.colorFont.var}`},".drag-knob":{"--size":"calc(var(--height-input) * 0.4)",width:"var(--size)",height:"var(--size)"},".drag-knob-inner":{width:"100%",height:"100%",backgroundColor:c.aptechkaTheme.colorFont.var,borderRadius:c.aptechkaTheme.borderRadiusSmall.var,transition:"opacity var(--duration-short)"},":host(.infinite) .grabbing .drag-knob-inner":{opacity:.3}});var P,q,N,x,R,j,J,y,I,W,_,F,V,B,we,X,be,$,le,Y;class Fe extends O{constructor(...e){var r,l,d,u,k,M,Z,ke;super(...e);a(this,F);a(this,B);a(this,X);a(this,$);a(this,P,[]);a(this,q,[]);a(this,N,void 0);a(this,x,void 0);a(this,R,void 0);a(this,j,void 0);a(this,J,void 0);a(this,y,void 0);a(this,I,!1);a(this,W,e=>{const s=m(this,F,V).call(this,e);return s.map((r,l)=>{const d=typeof r=="string"?parseFloat(r)||t(this,x):r,u=We.clamp(d,t(this,x),t(this,R)),k=fe.toStep(u,t(this,N));s[l]=k}),t(this,J)==="number"?s[0]:s});a(this,_,()=>{m(this,F,V).call(this).map((e,s)=>{const r=t(this,P)[s];r&&(r.value=(e||0).toString())}),m(this,B,we).call(this)});a(this,Y,()=>{m(this,B,we).call(this)});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ue),o(this,x,fe.nullishCoalescing((l=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:l.min,-1/0)),o(this,R,fe.nullishCoalescing((u=(d=this.firstStore.passport)==null?void 0:d.manager)==null?void 0:u.max,1/0)),o(this,N,((M=(k=this.firstStore.passport)==null?void 0:k.manager)==null?void 0:M.step)||.01),o(this,j,((ke=(Z=this.firstStore.passport)==null?void 0:Z.manager)==null?void 0:ke.ease)||1),o(this,J,Array.isArray(this.firstStore.current)?"array":"number"),o(this,y,isFinite(t(this,R))&&isFinite(t(this,x))),n.element(this,{class:t(this,y)?"":"infinite",children:m(this,F,V).call(this).map((Ie,oe)=>n.div({class:"inputs-wrapper",children:[n.input({type:"number",step:t(this,N),min:t(this,x),max:t(this,R),ref:C=>t(this,P).push(C),value:Ie,onChange:()=>{this.updateStores(t(this,P).map(C=>parseFloat(C.value)))}}),n.div({class:"drag",children:[n.div({class:"drag-knob",ref:C=>t(this,q).push(C),onPointerdown:C=>{C.preventDefault(),o(this,I,!0);const ue=m(this,F,V).call(this),Ve=ue[oe],z=t(this,q)[oe],qe=t(this,P)[oe];if(z&&qe){const pe=z.parentElement,Ne=m(this,X,be).call(this);pe.classList.add("grabbing"),xe.setupDrag(ge=>{const ye=ge.x-C.x,$e=t(this,y)?pe.offsetWidth/(Ne||1):1,Ae=Ve+ye/$e*t(this,j);if(ue[oe]=Ae,!t(this,y)){const De=m(this,$,le).call(this,z,0);z.style.transform=`translateX(${De+ye}px)`}this.updateStores([...ue])},()=>{if(o(this,I,!1),!t(this,y)){const ge=m(this,$,le).call(this,z,0);z.style.transition="transform 0.1s",z.style.transform=`translateX(${ge}px)`,pe.classList.remove("grabbing"),setTimeout(()=>{z.style.transition=""},100)}})}},children:n.div({class:"drag-knob-inner"})})]})]}))})}connectedCallback(){this.firstStore.addMiddleware(t(this,W)),this.firstStore.subscribe(t(this,_)),Se.elementResizer.subscribe(this,t(this,Y))}disconnectedCallback(){this.firstStore.removeMiddleware(t(this,W)),this.firstStore.unsubscribe(t(this,_)),Se.elementResizer.unsubscribe(t(this,Y))}}P=new WeakMap,q=new WeakMap,N=new WeakMap,x=new WeakMap,R=new WeakMap,j=new WeakMap,J=new WeakMap,y=new WeakMap,I=new WeakMap,W=new WeakMap,_=new WeakMap,F=new WeakSet,V=function(e=this.firstStore.current){return Array.isArray(e)?e:[e]},B=new WeakSet,we=function(){m(this,F,V).call(this).map((e,s)=>{const r=t(this,q)[s];if(r&&(!t(this,I)||t(this,I)&&t(this,y))){const l=m(this,$,le).call(this,r,e);r.style.transform=`translateX(${l}px)`}})},X=new WeakSet,be=function(){return t(this,y)?t(this,R)-t(this,x):0},$=new WeakSet,le=function(e,s){const r=e.parentElement,l=m(this,X,be).call(this),d=l?s/l:.5;return(r.offsetWidth-e.offsetWidth)*d},Y=new WeakMap;customElements.get("e-tweaker-number-manager")||customElements.define("e-tweaker-number-manager",Fe);const et=E.createStylesheet({"e-select":{display:"block",width:"100%","--arrow-color":c.aptechkaTheme.colorFont.var},"e-select-head":{width:"100%",height:"var(--height-input)",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"var(--font-size-small)"},"e-select-option":{height:"var(--height-input)",transitionDuration:"var(--duration-short)",transitionProperty:"color",fontSize:"var(--font-size-small)"},"e-select-option:hover":{color:c.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:c.aptechkaTheme.colorFont.var,transitionProperty:"transform",transitionDuration:"var(--duration-short)"},".opened svg":{transform:"scaleY(-1)"}});class Me extends O{constructor(...i){var r,l;super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(et);const s=((l=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:l.variants)||[];n.element(this,{children:n.element("e-select",{value:this.firstStore,onChange:d=>{this.updateStores(d.currentTarget.value)},lightChildren:[n.element("e-select-head",{lightChildren:[n.span({"data-value-holder":""})]}),...s.map((d,u)=>n.element("e-select-option",{lightChildren:d,default:u===0?!0:null}))]})})}}customElements.get("e-tweaker-select-manager")||customElements.define("e-tweaker-select-manager",Me);const tt=E.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",height:"var(--height-input)",width:"100%",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var}});class Le extends O{constructor(...i){super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(tt),n.element(this,{children:[n.input({class:"text-input",type:"string",value:this.firstStore,onChange:s=>{this.updateStores(s.currentTarget.value)}})]})}}customElements.get("e-tweaker-string-manager")||customElements.define("e-tweaker-string-manager",Le);const st={boolean:ze,color:Te,link:Re,number:Fe,select:Me,string:Le},rt=E.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.5fr 1fr",alignItems:"center",color:c.aptechkaTheme.colorFont.var,gap:"var(--gap-medium)"},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:"var(--font-size-medium)",display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:c.aptechkaTheme.colorFont.var,transitionDuration:"var(--duration-short)",transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:c.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});var b,A,D,H,K,G,Q;class ve extends HTMLElement{constructor(e){var l,d,u,k;super();a(this,b,[]);a(this,A,void 0);a(this,D,void 0);a(this,H,!1);a(this,K,void 0);a(this,G,()=>{p.activeStores.current.find(e=>t(this,b).includes(e))||this.remove()});a(this,Q,e=>{t(this,H)&&((e.metaKey||e.ctrlKey)&&e.code==="KeyC"?navigator.clipboard.writeText(t(this,b)[0].current):(e.metaKey||e.ctrlKey)&&e.code==="KeyR"&&(t(this,b).forEach(s=>{s.reset()}),e.preventDefault()))});o(this,b,[e.store]),o(this,A,e.store.passport.name),o(this,D,t(this,A).split(".").slice(-1).toString());const s=((d=(l=e.store.passport)==null?void 0:l.manager)==null?void 0:d.type)||"string";o(this,K,new st[s](t(this,b)[0])),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(rt),n.element(this,{class:{disabled:((k=(u=e.store.passport)==null?void 0:u.manager)==null?void 0:k.disabled)||!1},onPointerleave:()=>{o(this,H,!1)},onPointerenter:()=>{o(this,H,!0)},children:[n.div({class:"head",children:[n.div({class:"name",children:t(this,D)+":"}),n.div({class:"head-buttons",children:[n.button({class:"head-button",children:Ce,onClick:()=>{navigator.clipboard.writeText(t(this,b)[0].current)}}),n.button({class:"head-button",children:Ee,onClick:()=>{t(this,b).forEach(M=>{M.reset()})}})]})]}),t(this,K)]})}get key(){return t(this,A)}get name(){return t(this,D)}get stores(){return t(this,b)}addStore(e){t(this,K).addStore(e)}connectedCallback(){p.activeStores.subscribe(t(this,G)),addEventListener("keydown",t(this,Q)),Je.dispatchSizeChangeEvent(this)}disconnectedCallback(){p.activeStores.unsubscribe(t(this,G)),removeEventListener("keydown",t(this,Q))}}b=new WeakMap,A=new WeakMap,D=new WeakMap,H=new WeakMap,K=new WeakMap,G=new WeakMap,Q=new WeakMap;customElements.get("e-tweaker-field")||customElements.define("e-tweaker-field",ve);const it=E.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:"var(--tweaker-folder-height)",paddingLeft:"var(--gap-medium)",paddingRight:"var(--gap-medium)",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:c.aptechkaTheme.colorMainAux.var,borderRadius:c.aptechkaTheme.borderRadius.var},".name":{fontSize:"var(--font-size-large)",color:c.aptechkaTheme.colorFont.var},".body":{display:"none",overflow:"hidden","@supports (height: calc-size(auto))":{height:"0"}},":host(.transition-allowed) .body":{transition:"height var(--duration-short), display var(--duration-short) allow-discrete"},":host(.opened) .body":{height:"calc-size(auto)",display:"block","@starting-style":{height:"0"}},".body-content":{boxSizing:"border-box",padding:"var(--gap-large)",display:"grid",gap:"var(--gap-medium)"},".arrow":{width:"20px",height:"20px",fill:c.aptechkaTheme.colorFont.var,transition:"transform var(--duration-short)"},".opened .arrow":{transform:"scaleY(-1)"}});var v,U,g,ee,te,se,re,ce;const de=class de extends HTMLElement{constructor(e){super();a(this,v,void 0);a(this,U,new p.Store(null));a(this,g,new p.Store([]));a(this,ee,void 0);a(this,te,null);a(this,se,null);a(this,re,null);a(this,ce,e=>{let s=[],r=[];e.forEach(l=>{s=[...s,...l.removedNodes],r=[...r,...l.addedNodes]}),t(this,g).current=t(this,g).current.filter(l=>!s.includes(l)),t(this,v)&&!t(this,g).current.length&&!r.length&&this.remove()});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(it),o(this,v,e.key),o(this,ee,new MutationObserver(t(this,ce))),n.element(this,{children:[n.div({class:"wrapper",children:[n.div({class:"head",onClick:r=>{this.classList.toggle("opened"),this.classList.contains("opened")?f.openPanel(t(this,v)):f.closePanel(t(this,v))},children:[t(this,v)?n.div({class:"name",children:[t(this,v).split(".").slice(-1).toString()]}):null,t(this,U),n.element(je.arrowIcon,{class:"arrow"})]}),n.div({class:"body",ref:r=>{o(this,te,r)},children:n.div({class:"body-content",children:t(this,g),ref:r=>{o(this,se,r),o(this,re,r.firstElementChild)}})})]})]}),e!=null&&e.storeBox&&this.handleStore(e.storeBox)}get key(){return t(this,v)}get head(){return t(this,U)}get content(){return t(this,g)}get bodyElement(){return t(this,te)}get contentElement(){return t(this,se)}connectedCallback(){f.isPanelOpened(t(this,v))&&this.classList.add("opened"),setTimeout(()=>{this.classList.add("transition-allowed")}),t(this,ee).observe(t(this,re),{childList:!0})}handleStore(e){if(e.remainingFolders.length){const r=e.store.passport.name.split("."),l=r.slice(0,r.length-e.remainingFolders.length).join("."),d=t(this,g).current.find(u=>u.key===l);d instanceof de?d.handleStore({store:e.store,remainingFolders:e.remainingFolders.slice(1)}):t(this,g).current=[...t(this,g).current,new de({key:l,storeBox:{store:e.store,remainingFolders:e.remainingFolders.slice(1)}})]}else{const s=t(this,g).current.find(r=>r.key===e.store.passport.name);s instanceof ve?s.addStore(e.store):t(this,g).current=[...t(this,g).current,new ve({store:e.store})]}}};v=new WeakMap,U=new WeakMap,g=new WeakMap,ee=new WeakMap,te=new WeakMap,se=new WeakMap,re=new WeakMap,ce=new WeakMap;let he=de;customElements.get("e-tweaker-folder")||customElements.define("e-tweaker-folder",he);const nt=E.createStylesheet({":host":{"--tweaker-width":"550px","--tweaker-offset":"20px","--tweaker-folder-height":"35px","--height-input":"25px","--gap-large":"12px","--gap-medium":"10px","--gap-small":"8px","--gap-extra-small":"4px","--font-size-large":"16px","--font-size-medium":"14px","--font-size-small":"12px","--duration-short":"0.2s",fontFamily:"sans-serif",position:"absolute",top:"var(--tweaker-offset)",right:"var(--tweaker-offset)",width:"var(--tweaker-width)",backgroundColor:c.aptechkaTheme.colorMain.var,borderRadius:c.aptechkaTheme.borderRadius.var,transition:"opacity 0.1s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".resize":{position:"absolute",left:"0",top:"0",width:"calc(var(--tweaker-width) * 0.025)",height:"100%",zIndex:"1",cursor:"ew-resize"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:c.aptechkaTheme.colorFont.var,transitionProperty:"fill",transitionDuration:"var(--duration-short)"},".tweaker-button:hover":{fill:c.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
2
2
  100dvh -
3
3
  (
4
4
  var(--tweaker-offset) * 2 +
@@ -8,17 +8,17 @@ var t = (l, r, e) => (ve(l, r, "read from private field"), e ? e.call(l) : r.get
8
8
  r instanceof WeakSet ? r.add(l) : r.set(l, e);
9
9
  }, n = (l, r, e, s) => (ve(l, r, "write to private field"), s ? s.call(l, e) : r.set(l, e), e);
10
10
  var m = (l, r, e) => (ve(l, r, "access private method"), e);
11
- import { i as We } from "../browser-0zX67oeU.js";
12
- import { s as R, a as N, S as Ce } from "../Store-Qr3SNOSf.js";
13
- import { c as Be } from "../file-lxi_oXJf.js";
11
+ import { i as Je } from "../browser-0zX67oeU.js";
12
+ import { s as R, a as $, S as Ce } from "../Store-Qr3SNOSf.js";
13
+ import { c as We } from "../file-lxi_oXJf.js";
14
14
  import { d as Xe } from "../function-C10DGppn.js";
15
15
  import { s as Te } from "../gestures-D2Fdra_G.js";
16
16
  import "../ticker/index.js";
17
- import { e as g, $ as me, a as Ye, D as u, aA as qe, p as B, a2 as Ge } from "../tags-C75owfOo.js";
18
- import { c as E } from "../createStylesheet-CE1yXWS_.js";
17
+ import { e as g, a0 as me, a as Ye, D as u, aB as qe, p as W, a3 as Ge } from "../tags-wG5k157g.js";
18
+ import { c as E } from "../createStylesheet-DNG2b5X4.js";
19
19
  import { a as Qe } from "../Viewport-Cgtq2I_K.js";
20
20
  import { aptechkaTheme as h } from "../theme/index.js";
21
- import { a as Ue } from "../index-D-RA8KFB.js";
21
+ import { a as Ue } from "../index-BuvwT3dS.js";
22
22
  import { a as _e } from "../events-CJTUMSLU.js";
23
23
  import "../checkbox/index.js";
24
24
  import { c as et } from "../math-BOBiC4TN.js";
@@ -71,7 +71,7 @@ class rt {
71
71
  P = new WeakMap(), w = new WeakMap(), k = new WeakMap();
72
72
  const f = new rt();
73
73
  var T;
74
- class J extends HTMLElement {
74
+ class B extends HTMLElement {
75
75
  constructor(...e) {
76
76
  super();
77
77
  o(this, T, void 0);
@@ -106,7 +106,7 @@ const ot = E({
106
106
  borderRadius: h.borderRadiusSmall.var
107
107
  }
108
108
  });
109
- class Le extends J {
109
+ class Le extends B {
110
110
  constructor(...r) {
111
111
  super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ot), g(this, {
112
112
  children: [
@@ -151,7 +151,7 @@ const nt = E({
151
151
  height: "calc(var(--height-input) * 0.93)"
152
152
  }
153
153
  });
154
- class Pe extends J {
154
+ class Pe extends B {
155
155
  constructor(...r) {
156
156
  super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(nt), g(this, {
157
157
  children: [
@@ -173,7 +173,7 @@ const at = E({
173
173
  fontSize: "var(--font-size-small)"
174
174
  }
175
175
  });
176
- class Ie extends J {
176
+ class Ie extends B {
177
177
  constructor(...r) {
178
178
  var s, i;
179
179
  super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(at), console.log(this.firstStore), g(this, {
@@ -252,10 +252,10 @@ const lt = E({
252
252
  opacity: 0.3
253
253
  }
254
254
  });
255
- var I, A, D, x, F, X, Y, y, V, q, G, M, $, Q, Se, U, ye, H, ce, _;
256
- class Ve extends J {
255
+ var I, A, D, x, F, X, Y, y, V, q, G, M, N, Q, Se, U, ye, H, ce, _;
256
+ class Ve extends B {
257
257
  constructor(...e) {
258
- var i, a, d, c, S, L, W, xe;
258
+ var i, a, d, c, S, L, J, xe;
259
259
  super(...e);
260
260
  o(this, M);
261
261
  o(this, Q);
@@ -271,14 +271,14 @@ class Ve extends J {
271
271
  o(this, y, void 0);
272
272
  o(this, V, !1);
273
273
  o(this, q, (e) => {
274
- const s = m(this, M, $).call(this, e);
274
+ const s = m(this, M, N).call(this, e);
275
275
  return s.map((i, a) => {
276
276
  const d = typeof i == "string" ? parseFloat(i) || t(this, x) : i, c = et(d, t(this, x), t(this, F)), S = tt(c, t(this, D));
277
277
  s[a] = S;
278
278
  }), t(this, Y) === "number" ? s[0] : s;
279
279
  });
280
280
  o(this, G, () => {
281
- m(this, M, $).call(this).map((e, s) => {
281
+ m(this, M, N).call(this).map((e, s) => {
282
282
  const i = t(this, I)[s];
283
283
  i && (i.value = (e || 0).toString());
284
284
  }), m(this, Q, Se).call(this);
@@ -292,9 +292,9 @@ class Ve extends J {
292
292
  )), n(this, F, ze(
293
293
  (c = (d = this.firstStore.passport) == null ? void 0 : d.manager) == null ? void 0 : c.max,
294
294
  1 / 0
295
- )), n(this, D, ((L = (S = this.firstStore.passport) == null ? void 0 : S.manager) == null ? void 0 : L.step) || 0.01), n(this, X, ((xe = (W = this.firstStore.passport) == null ? void 0 : W.manager) == null ? void 0 : xe.ease) || 1), n(this, Y, Array.isArray(this.firstStore.current) ? "array" : "number"), n(this, y, isFinite(t(this, F)) && isFinite(t(this, x))), g(this, {
295
+ )), n(this, D, ((L = (S = this.firstStore.passport) == null ? void 0 : S.manager) == null ? void 0 : L.step) || 0.01), n(this, X, ((xe = (J = this.firstStore.passport) == null ? void 0 : J.manager) == null ? void 0 : xe.ease) || 1), n(this, Y, Array.isArray(this.firstStore.current) ? "array" : "number"), n(this, y, isFinite(t(this, F)) && isFinite(t(this, x))), g(this, {
296
296
  class: t(this, y) ? "" : "infinite",
297
- children: m(this, M, $).call(this).map((De, de) => u({
297
+ children: m(this, M, N).call(this).map((De, de) => u({
298
298
  class: "inputs-wrapper",
299
299
  children: [
300
300
  me({
@@ -318,15 +318,15 @@ class Ve extends J {
318
318
  ref: (C) => t(this, A).push(C),
319
319
  onPointerdown: (C) => {
320
320
  C.preventDefault(), n(this, V, !0);
321
- const fe = m(this, M, $).call(this), He = fe[de], z = t(this, A)[de], Ke = t(this, I)[de];
321
+ const fe = m(this, M, N).call(this), He = fe[de], z = t(this, A)[de], Ke = t(this, I)[de];
322
322
  if (z && Ke) {
323
323
  const we = z.parentElement, Oe = m(this, U, ye).call(this);
324
324
  we.classList.add("grabbing"), Te(
325
325
  (be) => {
326
326
  const Ee = be.x - C.x, Ze = t(this, y) ? we.offsetWidth / (Oe || 1) : 1, je = He + Ee / Ze * t(this, X);
327
327
  if (fe[de] = je, !t(this, y)) {
328
- const Je = m(this, H, ce).call(this, z, 0);
329
- z.style.transform = `translateX(${Je + Ee}px)`;
328
+ const Be = m(this, H, ce).call(this, z, 0);
329
+ z.style.transform = `translateX(${Be + Ee}px)`;
330
330
  }
331
331
  this.updateStores([...fe]);
332
332
  },
@@ -358,10 +358,10 @@ class Ve extends J {
358
358
  this.firstStore.removeMiddleware(t(this, q)), this.firstStore.unsubscribe(t(this, G)), Re.unsubscribe(t(this, _));
359
359
  }
360
360
  }
361
- I = new WeakMap(), A = new WeakMap(), D = new WeakMap(), x = new WeakMap(), F = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), y = new WeakMap(), V = new WeakMap(), q = new WeakMap(), G = new WeakMap(), M = new WeakSet(), $ = function(e = this.firstStore.current) {
361
+ I = new WeakMap(), A = new WeakMap(), D = new WeakMap(), x = new WeakMap(), F = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), y = new WeakMap(), V = new WeakMap(), q = new WeakMap(), G = new WeakMap(), M = new WeakSet(), N = function(e = this.firstStore.current) {
362
362
  return Array.isArray(e) ? e : [e];
363
363
  }, Q = new WeakSet(), Se = function() {
364
- m(this, M, $).call(this).map((e, s) => {
364
+ m(this, M, N).call(this).map((e, s) => {
365
365
  const i = t(this, A)[s];
366
366
  if (i && (!t(this, V) || t(this, V) && t(this, y))) {
367
367
  const a = m(this, H, ce).call(this, i, e);
@@ -409,7 +409,7 @@ const ht = E({
409
409
  transform: "scaleY(-1)"
410
410
  }
411
411
  });
412
- class $e extends J {
412
+ class Ne extends B {
413
413
  constructor(...r) {
414
414
  var i, a;
415
415
  super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ht);
@@ -439,7 +439,7 @@ class $e extends J {
439
439
  });
440
440
  }
441
441
  }
442
- customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", $e);
442
+ customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", Ne);
443
443
  const dt = E({
444
444
  ":host": {
445
445
  width: "100%",
@@ -462,7 +462,7 @@ const dt = E({
462
462
  borderRadius: h.borderRadius.var
463
463
  }
464
464
  });
465
- class Ne extends J {
465
+ class $e extends B {
466
466
  constructor(...r) {
467
467
  super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(dt), g(this, {
468
468
  children: [
@@ -480,14 +480,14 @@ class Ne extends J {
480
480
  });
481
481
  }
482
482
  }
483
- customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", Ne);
483
+ customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", $e);
484
484
  const ct = {
485
485
  boolean: Le,
486
486
  color: Pe,
487
487
  link: Ie,
488
488
  number: Ve,
489
- select: $e,
490
- string: Ne
489
+ select: Ne,
490
+ string: $e
491
491
  }, pt = E({
492
492
  ":host": {
493
493
  display: "grid",
@@ -544,7 +544,7 @@ class ke extends HTMLElement {
544
544
  o(this, Z, !1);
545
545
  o(this, j, void 0);
546
546
  o(this, ee, () => {
547
- N.current.find((e) => t(this, b).includes(e)) || this.remove();
547
+ $.current.find((e) => t(this, b).includes(e)) || this.remove();
548
548
  });
549
549
  o(this, te, (e) => {
550
550
  t(this, Z) && ((e.metaKey || e.ctrlKey) && e.code === "KeyC" ? navigator.clipboard.writeText(t(this, b)[0].current) : (e.metaKey || e.ctrlKey) && e.code === "KeyR" && (t(this, b).forEach((s) => {
@@ -571,14 +571,14 @@ class ke extends HTMLElement {
571
571
  u({
572
572
  class: "head-buttons",
573
573
  children: [
574
- B({
574
+ W({
575
575
  class: "head-button",
576
576
  children: Me,
577
577
  onClick: () => {
578
578
  navigator.clipboard.writeText(t(this, b)[0].current);
579
579
  }
580
580
  }),
581
- B({
581
+ W({
582
582
  class: "head-button",
583
583
  children: Fe,
584
584
  onClick: () => {
@@ -608,10 +608,10 @@ class ke extends HTMLElement {
608
608
  t(this, j).addStore(e);
609
609
  }
610
610
  connectedCallback() {
611
- N.subscribe(t(this, ee)), addEventListener("keydown", t(this, te)), _e(this);
611
+ $.subscribe(t(this, ee)), addEventListener("keydown", t(this, te)), _e(this);
612
612
  }
613
613
  disconnectedCallback() {
614
- N.unsubscribe(t(this, ee)), removeEventListener("keydown", t(this, te));
614
+ $.unsubscribe(t(this, ee)), removeEventListener("keydown", t(this, te));
615
615
  }
616
616
  }
617
617
  b = new WeakMap(), K = new WeakMap(), O = new WeakMap(), Z = new WeakMap(), j = new WeakMap(), ee = new WeakMap(), te = new WeakMap();
@@ -886,7 +886,7 @@ class Ae extends pe {
886
886
  f.save();
887
887
  });
888
888
  o(this, he, Xe(() => {
889
- N.current.forEach((e) => {
889
+ $.current.forEach((e) => {
890
890
  var s;
891
891
  if (e.passport && !((s = e.passport.manager) != null && s.invisible)) {
892
892
  const i = e.passport.name.split(".");
@@ -908,14 +908,14 @@ class Ae extends pe {
908
908
  e.stopPropagation();
909
909
  },
910
910
  children: [
911
- B({
911
+ W({
912
912
  class: "tweaker-button",
913
913
  children: Fe,
914
914
  onClick: () => {
915
915
  R.resetState();
916
916
  }
917
917
  }),
918
- B({
918
+ W({
919
919
  class: ["tweaker-button"],
920
920
  children: [Me],
921
921
  onClick: () => {
@@ -924,11 +924,11 @@ class Ae extends pe {
924
924
  );
925
925
  }
926
926
  }),
927
- B({
927
+ W({
928
928
  class: "tweaker-button",
929
929
  children: st,
930
930
  onClick: () => {
931
- Be(
931
+ We(
932
932
  R.projectName,
933
933
  R.getState()
934
934
  );
@@ -949,8 +949,8 @@ class Ae extends pe {
949
949
  if (i) {
950
950
  const d = new FileReader();
951
951
  d.onload = (c) => {
952
- var L, W;
953
- const S = (W = (L = c.target) == null ? void 0 : L.result) == null ? void 0 : W.toString();
952
+ var L, J;
953
+ const S = (J = (L = c.target) == null ? void 0 : L.result) == null ? void 0 : J.toString();
954
954
  S && R.loadState(S);
955
955
  }, d.readAsText(i);
956
956
  }
@@ -989,12 +989,12 @@ class Ae extends pe {
989
989
  });
990
990
  }
991
991
  connectedCallback() {
992
- super.connectedCallback(), window.addEventListener("beforeunload", t(this, le)), N.subscribe(t(this, he)), f.changedSizes("tweaker") && (this.style.width = f.changedSizes("tweaker") + "px");
992
+ super.connectedCallback(), window.addEventListener("beforeunload", t(this, le)), $.subscribe(t(this, he)), f.changedSizes("tweaker") && (this.style.width = f.changedSizes("tweaker") + "px");
993
993
  }
994
994
  disconnectedCallback() {
995
- window.removeEventListener("beforeunload", t(this, le)), f.save(), N.unsubscribe(t(this, he));
995
+ window.removeEventListener("beforeunload", t(this, le)), f.save(), $.unsubscribe(t(this, he));
996
996
  }
997
997
  }
998
998
  ae = new WeakMap(), le = new WeakMap(), he = new WeakMap();
999
999
  customElements.get("e-tweaker") || customElements.define("e-tweaker", Ae);
1000
- We && document.body.appendChild(new Ae());
1000
+ Je && document.body.appendChild(new Ae());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.11.11",
3
+ "version": "0.12.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -134,51 +134,6 @@
134
134
  "default": "./client-lib/intersector/index.js",
135
135
  "types": "./client-lib/intersector/index.d.ts"
136
136
  },
137
- "./client/jsx": {
138
- "require": "./client-lib/jsx/index.cjs",
139
- "default": "./client-lib/jsx/index.js",
140
- "types": "./client-lib/jsx/index.d.ts"
141
- },
142
- "./client/jsx/hooks/animation": {
143
- "require": "./client-lib/jsx/hooks/animation/index.cjs",
144
- "default": "./client-lib/jsx/hooks/animation/index.js",
145
- "types": "./client-lib/jsx/hooks/animation/index.d.ts"
146
- },
147
- "./client/jsx/hooks/store": {
148
- "require": "./client-lib/jsx/hooks/store/index.cjs",
149
- "default": "./client-lib/jsx/hooks/store/index.js",
150
- "types": "./client-lib/jsx/hooks/store/index.d.ts"
151
- },
152
- "./client/jsx/hooks/onAnimationFrame": {
153
- "require": "./client-lib/jsx/hooks/onAnimationFrame.cjs",
154
- "default": "./client-lib/jsx/hooks/onAnimationFrame.js",
155
- "types": "./client-lib/jsx/hooks/onAnimationFrame.d.ts"
156
- },
157
- "./client/jsx/hooks/onElementResize": {
158
- "require": "./client-lib/jsx/hooks/onElementResize.cjs",
159
- "default": "./client-lib/jsx/hooks/onElementResize.js",
160
- "types": "./client-lib/jsx/hooks/onElementResize.d.ts"
161
- },
162
- "./client/jsx/hooks/onIntersection": {
163
- "require": "./client-lib/jsx/hooks/onIntersection.cjs",
164
- "default": "./client-lib/jsx/hooks/onIntersection.js",
165
- "types": "./client-lib/jsx/hooks/onIntersection.d.ts"
166
- },
167
- "./client/jsx/hooks/onWindowResize": {
168
- "require": "./client-lib/jsx/hooks/onWindowResize.cjs",
169
- "default": "./client-lib/jsx/hooks/onWindowResize.js",
170
- "types": "./client-lib/jsx/hooks/onWindowResize.d.ts"
171
- },
172
- "./client/jsx/hooks/watchAttribute": {
173
- "require": "./client-lib/jsx/hooks/watchAttribute.cjs",
174
- "default": "./client-lib/jsx/hooks/watchAttribute.js",
175
- "types": "./client-lib/jsx/hooks/watchAttribute.d.ts"
176
- },
177
- "./client/jsx/hooks/watchCSSProperty": {
178
- "require": "./client-lib/jsx/hooks/watchCSSProperty.cjs",
179
- "default": "./client-lib/jsx/hooks/watchCSSProperty.js",
180
- "types": "./client-lib/jsx/hooks/watchCSSProperty.d.ts"
181
- },
182
137
  "./client/ladder": {
183
138
  "require": "./client-lib/ladder/index.cjs",
184
139
  "default": "./client-lib/ladder/index.js",
@@ -387,33 +342,6 @@
387
342
  "client/intersector": [
388
343
  "client-lib/intersector/index.d.ts"
389
344
  ],
390
- "client/jsx": [
391
- "client-lib/jsx/index.d.ts"
392
- ],
393
- "client/jsx/hooks/animation": [
394
- "client-lib/jsx/hooks/animation/index.d.ts"
395
- ],
396
- "client/jsx/hooks/store": [
397
- "client-lib/jsx/hooks/store/index.d.ts"
398
- ],
399
- "client/jsx/hooks/onAnimationFrame": [
400
- "client-lib/jsx/hooks/onAnimationFrame.d.ts"
401
- ],
402
- "client/jsx/hooks/onElementResize": [
403
- "client-lib/jsx/hooks/onElementResize.d.ts"
404
- ],
405
- "client/jsx/hooks/onIntersection": [
406
- "client-lib/jsx/hooks/onIntersection.d.ts"
407
- ],
408
- "client/jsx/hooks/onWindowResize": [
409
- "client-lib/jsx/hooks/onWindowResize.d.ts"
410
- ],
411
- "client/jsx/hooks/watchAttribute": [
412
- "client-lib/jsx/hooks/watchAttribute.d.ts"
413
- ],
414
- "client/jsx/hooks/watchCSSProperty": [
415
- "client-lib/jsx/hooks/watchCSSProperty.d.ts"
416
- ],
417
345
  "client/ladder": [
418
346
  "client-lib/ladder/index.d.ts"
419
347
  ],