aptechka 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/lib/{Animation-DBfrekcV.cjs → Animation-BvXqY0d7.cjs} +1 -1
  2. package/lib/{Animation-CwgyQH5y.js → Animation-VTp4qBgU.js} +1 -1
  3. package/lib/{Composed-CgnR5oah.js → Composed-Fa7owymK.js} +1 -1
  4. package/lib/{Composed-CIXY_HwN.cjs → Composed-Iihn8fT4.cjs} +1 -1
  5. package/lib/{Damped-DmcKRSST.cjs → Damped-B_CbwZFD.cjs} +1 -1
  6. package/lib/{Damped-vepIw9Ku.js → Damped-uk87KmLu.js} +1 -1
  7. package/lib/{Derived-Xb4EzLLO.cjs → Derived-D9VrDuf9.cjs} +1 -1
  8. package/lib/{Derived-B4CxuebG.js → Derived-DIWinC7Y.js} +1 -1
  9. package/lib/{SourceManager-U3KHUnNl.js → SourceManager--L_rA28b.js} +1 -1
  10. package/lib/{SourceManager-Ce49-NQe.cjs → SourceManager-D6D2LVKf.cjs} +1 -1
  11. package/lib/{Store-CIs_NjhF.cjs → Store-Cr3VaD9G.cjs} +1 -1
  12. package/lib/{Store-Dqcu1DnE.js → Store-Qr3SNOSf.js} +8 -8
  13. package/lib/{Tweened-DPi9pZ8Q.js → Tweened-B5uDQSvr.js} +1 -1
  14. package/lib/{Tweened-5Bj7ht3x.cjs → Tweened-BoT6DBlM.cjs} +1 -1
  15. package/lib/{Viewport-CIBlSU2t.cjs → Viewport-BBYt1Ivy.cjs} +1 -1
  16. package/lib/{Viewport-4ZTWxLo_.js → Viewport-Cgtq2I_K.js} +1 -1
  17. package/lib/accordion/index.js +3 -3
  18. package/lib/animation/index.cjs +1 -1
  19. package/lib/animation/index.js +3 -3
  20. package/lib/attribute/index.cjs +1 -1
  21. package/lib/attribute/index.js +12 -12
  22. package/lib/canvas/index.cjs +1 -1
  23. package/lib/canvas/index.js +3 -3
  24. package/lib/checkbox/index.cjs +1 -1
  25. package/lib/checkbox/index.js +3 -3
  26. package/lib/class-linked-status/index.cjs +1 -1
  27. package/lib/class-linked-status/index.js +1 -1
  28. package/lib/controls/index.cjs +1 -1
  29. package/lib/controls/index.js +3 -3
  30. package/lib/{createStylesheet-BX1RVTfW.cjs → createStylesheet-BsMSWX0q.cjs} +1 -1
  31. package/lib/{createStylesheet-CgWN4UhW.js → createStylesheet-BxKITIVV.js} +1 -1
  32. package/lib/css-property/index.cjs +1 -1
  33. package/lib/css-property/index.js +3 -3
  34. package/lib/dev/index.cjs +1 -1
  35. package/lib/dev/index.js +1 -1
  36. package/lib/device/index.cjs +1 -1
  37. package/lib/device/index.js +1 -1
  38. package/lib/{dom-0S_WDL4g.js → dom-P5QbAASX.js} +2 -2
  39. package/lib/element-constructor/index.cjs +1 -1
  40. package/lib/element-constructor/index.js +2 -2
  41. package/lib/element-resizer/index.js +5 -5
  42. package/lib/en3/helpers/index.cjs +1 -1
  43. package/lib/en3/helpers/index.js +4 -4
  44. package/lib/en3/index.js +1 -1
  45. package/lib/en3/loaders/index.js +1 -1
  46. package/lib/en3/misc/index.cjs +1 -1
  47. package/lib/en3/misc/index.js +2 -2
  48. package/lib/en3/utils/index.js +2 -2
  49. package/lib/{en3-sDqjL5Mg.js → en3-THFHEReu.js} +1 -1
  50. package/lib/{events-C_coq1Mk.js → events-CJTUMSLU.js} +2 -2
  51. package/lib/image/index.cjs +1 -1
  52. package/lib/image/index.js +1 -1
  53. package/lib/{index-DfSyc2GT.cjs → index-CzpP1Tg6.cjs} +1 -1
  54. package/lib/{index-C2xWAQFq.js → index-Dwd_62sm.js} +5 -5
  55. package/lib/intersector/index.js +5 -5
  56. package/lib/ladder/index.cjs +1 -1
  57. package/lib/ladder/index.js +1 -1
  58. package/lib/layout-box/index.js +18 -18
  59. package/lib/media/index.cjs +1 -1
  60. package/lib/media/index.js +1 -1
  61. package/lib/modal/index.cjs +1 -1
  62. package/lib/modal/index.js +3 -3
  63. package/lib/pointer/index.cjs +1 -1
  64. package/lib/pointer/index.js +12 -12
  65. package/lib/popover/index.cjs +1 -1
  66. package/lib/popover/index.js +3 -3
  67. package/lib/scroll/index.cjs +1 -1
  68. package/lib/scroll/index.js +8 -8
  69. package/lib/scroll-entries/index.js +13 -13
  70. package/lib/select/index.cjs +1 -1
  71. package/lib/select/index.js +1 -1
  72. package/lib/sequence/index.cjs +1 -1
  73. package/lib/sequence/index.js +1 -1
  74. package/lib/source/index.cjs +1 -1
  75. package/lib/source/index.js +2 -2
  76. package/lib/store/Store.d.ts +2 -2
  77. package/lib/store/index.cjs +1 -1
  78. package/lib/store/index.js +4 -4
  79. package/lib/{style-CklEF62D.js → style-j2TwriJ_.js} +2 -2
  80. package/lib/{tags-yvEoM921.cjs → tags-CAfasCGV.cjs} +1 -1
  81. package/lib/{tags-C-6uXIAT.js → tags-D9lNDPX8.js} +1 -1
  82. package/lib/theme/index.cjs +1 -1
  83. package/lib/theme/index.js +2 -2
  84. package/lib/ticker/index.js +1 -1
  85. package/lib/{traverseMaterials-M-N1989i.js → traverseMaterials-BKSwwNmo.js} +1 -1
  86. package/lib/tweaker/index.cjs +1 -1
  87. package/lib/tweaker/index.js +38 -30
  88. package/lib/utils/index.js +3 -3
  89. package/lib/video/index.cjs +1 -1
  90. package/lib/video/index.js +1 -1
  91. package/package.json +1 -1
@@ -9,17 +9,16 @@ var d = (t, e, r) => (He(t, e, "read from private field"), r ? r.call(t) : e.get
9
9
  }, x = (t, e, r, i) => (He(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r);
10
10
  import { i as it } from "../browser-0zX67oeU.js";
11
11
  import { CustomElement as Ve, define as M } from "../custom-element/index.js";
12
- import { s as W, a as K, S as je } from "../Store-Dqcu1DnE.js";
12
+ import { s as W, a as K, S as je } from "../Store-Qr3SNOSf.js";
13
13
  import { c as at } from "../file-lxi_oXJf.js";
14
14
  import { d as nt } from "../function-C10DGppn.js";
15
15
  import { s as Je } from "../gestures-D2Fdra_G.js";
16
- import { e as f, a0 as Ce, a as ot, D as g, aB as lt, p as re, a3 as ht } from "../tags-C-6uXIAT.js";
17
- import { c as $ } from "../createStylesheet-CgWN4UhW.js";
18
- import { a as ct } from "../Viewport-4ZTWxLo_.js";
16
+ import { e as f, a0 as Ce, a as ot, D as g, aB as lt, p as re, a3 as ht } from "../tags-D9lNDPX8.js";
17
+ import { c as $ } from "../createStylesheet-BxKITIVV.js";
18
+ import { a as ct } from "../Viewport-Cgtq2I_K.js";
19
19
  import { aptechkaTheme as h } from "../theme/index.js";
20
- import { a as dt } from "../index-C2xWAQFq.js";
21
- import "../accordion/index.js";
22
- import { d as pt } from "../events-C_coq1Mk.js";
20
+ import { a as dt } from "../index-Dwd_62sm.js";
21
+ import { a as pt } from "../events-CJTUMSLU.js";
23
22
  import "../checkbox/index.js";
24
23
  import { c as ut } from "../math-BOBiC4TN.js";
25
24
  import { n as Be, t as gt } from "../polyfills-X6KXuHg-.js";
@@ -183,15 +182,16 @@ var Pt = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, $t = (t, e
183
182
  (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
184
183
  return i && s && Pt(e, r, s), s;
185
184
  };
186
- const Et = $({
185
+ const zt = $({
187
186
  a: {
188
- color: "inherit"
187
+ color: "inherit",
188
+ fontSize: "var(--font-size-small)"
189
189
  }
190
190
  });
191
191
  let Te = class extends H {
192
192
  constructor(...t) {
193
193
  var e, r;
194
- super(...t), this.openShadow(Et), f(this, {
194
+ super(...t), this.openShadow(zt), console.log(this.firstStore), f(this, {
195
195
  children: [
196
196
  ot({
197
197
  href: this.firstStore,
@@ -205,10 +205,10 @@ let Te = class extends H {
205
205
  Te = $t([
206
206
  M("e-tweaker-link-manager")
207
207
  ], Te);
208
- var zt = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, Wt = (t, e, r, i) => {
208
+ var Et = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, Wt = (t, e, r, i) => {
209
209
  for (var s = i > 1 ? void 0 : i ? Ot(e, r) : e, n = t.length - 1, a; n >= 0; n--)
210
210
  (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
211
- return i && s && zt(e, r, s), s;
211
+ return i && s && Et(e, r, s), s;
212
212
  }, Ne = (t, e, r) => {
213
213
  if (!e.has(t))
214
214
  throw TypeError("Cannot " + r);
@@ -216,7 +216,7 @@ var zt = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, Wt = (t, e
216
216
  if (e.has(t))
217
217
  throw TypeError("Cannot add the same private member more than once");
218
218
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
219
- }, E = (t, e, r, i) => (Ne(t, e, "write to private field"), e.set(t, r), r), m = (t, e, r) => (Ne(t, e, "access private method"), r), V, se, q, O, F, ne, oe, C, Z, le, he, L, N, ce, De, Se, Ke, ie, ke, de;
219
+ }, z = (t, e, r, i) => (Ne(t, e, "write to private field"), e.set(t, r), r), m = (t, e, r) => (Ne(t, e, "access private method"), r), V, se, q, O, F, ne, oe, C, Z, le, he, L, N, ce, De, Se, Ke, ie, ke, de;
220
220
  const Tt = $({
221
221
  ":host": {
222
222
  width: "100%",
@@ -297,13 +297,13 @@ let Re = class extends H {
297
297
  }), m(this, ce, De).call(this);
298
298
  }), p(this, de, () => {
299
299
  m(this, ce, De).call(this);
300
- }), this.openShadow(Tt), E(this, O, Be(
300
+ }), this.openShadow(Tt), z(this, O, Be(
301
301
  (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min,
302
302
  -1 / 0
303
- )), E(this, F, Be(
303
+ )), z(this, F, Be(
304
304
  (s = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : s.max,
305
305
  1 / 0
306
- )), E(this, q, ((a = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : a.step) || 0.01), E(this, ne, ((j = (D = this.firstStore.passport) == null ? void 0 : D.manager) == null ? void 0 : j.ease) || 1), E(this, oe, Array.isArray(this.firstStore.current) ? "array" : "number"), E(this, C, isFinite(o(this, F)) && isFinite(o(this, O))), f(this, {
306
+ )), z(this, q, ((a = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : a.step) || 0.01), z(this, ne, ((j = (D = this.firstStore.passport) == null ? void 0 : D.manager) == null ? void 0 : j.ease) || 1), z(this, oe, Array.isArray(this.firstStore.current) ? "array" : "number"), z(this, C, isFinite(o(this, F)) && isFinite(o(this, O))), f(this, {
307
307
  class: o(this, C) ? "" : "infinite",
308
308
  children: m(this, L, N).call(this).map((B, b) => g({
309
309
  class: "inputs-wrapper",
@@ -328,13 +328,13 @@ let Re = class extends H {
328
328
  class: "drag-knob",
329
329
  ref: (u) => o(this, se).push(u),
330
330
  onPointerdown: (u) => {
331
- u.preventDefault(), E(this, Z, !0);
331
+ u.preventDefault(), z(this, Z, !0);
332
332
  const G = m(this, L, N).call(this), Pe = G[b], y = o(this, se)[b], Me = o(this, V)[b];
333
333
  if (y && Me) {
334
334
  const $e = y.parentElement, et = m(this, Se, Ke).call(this);
335
335
  $e.classList.add("grabbing"), Je(
336
- (Ee) => {
337
- const Ze = Ee.x - u.x, tt = o(this, C) ? $e.offsetWidth / (et || 1) : 1, rt = Pe + Ze / tt * o(this, ne);
336
+ (ze) => {
337
+ const Ze = ze.x - u.x, tt = o(this, C) ? $e.offsetWidth / (et || 1) : 1, rt = Pe + Ze / tt * o(this, ne);
338
338
  if (G[b] = rt, !o(this, C)) {
339
339
  const st = m(this, ie, ke).call(this, y, 0);
340
340
  y.style.transform = `translateX(${st + Ze}px)`;
@@ -342,9 +342,9 @@ let Re = class extends H {
342
342
  this.updateStores([...G]);
343
343
  },
344
344
  () => {
345
- if (E(this, Z, !1), !o(this, C)) {
346
- const Ee = m(this, ie, ke).call(this, y, 0);
347
- y.style.transition = "transform 0.1s", y.style.transform = `translateX(${Ee}px)`, $e.classList.remove("grabbing"), setTimeout(() => {
345
+ if (z(this, Z, !1), !o(this, C)) {
346
+ const ze = m(this, ie, ke).call(this, y, 0);
347
+ y.style.transition = "transform 0.1s", y.style.transform = `translateX(${ze}px)`, $e.classList.remove("grabbing"), setTimeout(() => {
348
348
  y.style.transition = "";
349
349
  }, 100);
350
350
  }
@@ -414,18 +414,23 @@ var Dt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, Ft = (t, e
414
414
  };
415
415
  const Lt = $({
416
416
  "e-select": {
417
+ display: "block",
417
418
  width: "100%",
418
419
  "--arrow-color": h.colorFont.var
419
420
  },
420
421
  "e-select-head": {
421
422
  width: "100%",
423
+ height: "var(--height-input)",
422
424
  display: "flex",
423
425
  alignItems: "center",
424
- justifyContent: "space-between"
426
+ justifyContent: "space-between",
427
+ fontSize: "var(--font-size-small)"
425
428
  },
426
429
  "e-select-option": {
430
+ height: "var(--height-input)",
427
431
  transitionDuration: "var(--duration-short)",
428
- transitionProperty: "color"
432
+ transitionProperty: "color",
433
+ fontSize: "var(--font-size-small)"
429
434
  },
430
435
  "e-select-option:hover": {
431
436
  color: h.colorActive.var
@@ -676,7 +681,7 @@ var Gt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, Xt = (t, e
676
681
  }, Qe = (t, e, r) => {
677
682
  if (!e.has(t))
678
683
  throw TypeError("Cannot " + r);
679
- }, l = (t, e, r) => (Qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), z = (t, e, r) => {
684
+ }, l = (t, e, r) => (Qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), E = (t, e, r) => {
680
685
  if (e.has(t))
681
686
  throw TypeError("Cannot add the same private member more than once");
682
687
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
@@ -704,8 +709,11 @@ const Yt = $({
704
709
  color: h.colorFont.var
705
710
  },
706
711
  ".body": {
712
+ display: "none",
707
713
  overflow: "hidden",
708
- height: "0"
714
+ "@supports (height: calc-size(auto))": {
715
+ height: "0"
716
+ }
709
717
  },
710
718
  ":host(.transition-allowed) .body": {
711
719
  transition: "height var(--duration-short), display var(--duration-short) allow-discrete"
@@ -735,7 +743,7 @@ const Yt = $({
735
743
  });
736
744
  let ae = class extends Ve {
737
745
  constructor(t) {
738
- super(), z(this, k, void 0), z(this, ge, new je(null)), z(this, v, new je([])), z(this, fe, void 0), z(this, ve, null), z(this, we, null), z(this, me, null), z(this, Ie, (e) => {
746
+ super(), E(this, k, void 0), E(this, ge, new je(null)), E(this, v, new je([])), E(this, fe, void 0), E(this, ve, null), E(this, we, null), E(this, me, null), E(this, Ie, (e) => {
739
747
  let r = [], i = [];
740
748
  e.forEach((s) => {
741
749
  r = [...r, ...s.removedNodes], i = [...i, ...s.addedNodes];
@@ -850,7 +858,7 @@ var qt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, Ut = (t, e
850
858
  }, Ue = (t, e, r) => {
851
859
  if (!e.has(t))
852
860
  throw TypeError("Cannot " + r);
853
- }, Y = (t, e, r) => (Ue(t, e, "read from private field"), e.get(t)), ze = (t, e, r) => {
861
+ }, Y = (t, e, r) => (Ue(t, e, "read from private field"), e.get(t)), Ee = (t, e, r) => {
854
862
  if (e.has(t))
855
863
  throw TypeError("Cannot add the same private member more than once");
856
864
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
@@ -951,9 +959,9 @@ let Ae = class extends ae {
951
959
  constructor() {
952
960
  super({
953
961
  key: ""
954
- }), ze(this, be, !1), ze(this, _e, () => {
962
+ }), Ee(this, be, !1), Ee(this, _e, () => {
955
963
  w.save();
956
- }), ze(this, ye, nt(() => {
964
+ }), Ee(this, ye, nt(() => {
957
965
  K.current.forEach((t) => {
958
966
  var e;
959
967
  if (t.passport && !((e = t.passport.manager) != null && e.invisible)) {
@@ -2,9 +2,9 @@ import { a as g, p as b } from "../attributes-69we3byR.js";
2
2
  import { i as C } from "../browser-0zX67oeU.js";
3
3
  import { a as S, c as O, f as y, m as w } from "../canvas-DeZ0SLUJ.js";
4
4
  import { g as v, n as P, s as T } from "../coordinates-CgdGoSYs.js";
5
- import { f as Q, b as D, a as R, g as z } from "../dom-0S_WDL4g.js";
5
+ import { f as Q, b as D, g as R, a as z } from "../dom-P5QbAASX.js";
6
6
  import { c as j, n as N, f as V, p as B, b as M, i as U, m as W, e as q, g as H, j as J, d as K, o as L, a as $, h as F, k as G, l as X } from "../easings-BKi40vHz.js";
7
- import { a as Z, d as _ } from "../events-C_coq1Mk.js";
7
+ import { d as Z, a as _ } from "../events-CJTUMSLU.js";
8
8
  import { c as ae } from "../file-lxi_oXJf.js";
9
9
  import { d as te, t as oe } from "../function-C10DGppn.js";
10
10
  import { s as re } from "../gestures-D2Fdra_G.js";
@@ -13,7 +13,7 @@ import { e as pe, f as me, c as de, d as xe, l as ge, m as be, r as he, b as Ce,
13
13
  import { n as ye, p as we, r as Ie, t as ve } from "../polyfills-X6KXuHg-.js";
14
14
  import { c as Te, d as Ae, i as Qe, b as De, a as Re, m as ze, e as ke, o as je, p as Ne } from "../object-D6MVWB4l.js";
15
15
  import { c as Be, a as Me, g as Ue, i as We, k as qe, s as He, t as Je, u as Ke } from "../string-f0Dnk0L1.js";
16
- import { a as $e, g as Fe } from "../style-CklEF62D.js";
16
+ import { g as $e, a as Fe } from "../style-j2TwriJ_.js";
17
17
  import { c as Xe, n as Ye, s as Ze } from "../url-DMNfW7uN.js";
18
18
  function i(a, e, ...s) {
19
19
  return [...a.slice(0, e), ...s, ...a.slice(e)];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-CIs_NjhF.cjs");const v=require("../source/index.cjs"),d=require("../ticker/index.cjs");var E=Object.defineProperty,f=Object.getOwnPropertyDescriptor,_=(t,e,r,i)=>{for(var s=i>1?void 0:i?f(e,r):e,o=t.length-1,u;o>=0;o--)(u=t[o])&&(s=(i?u(e,r,s):u(s))||s);return i&&s&&E(e,r,s),s},p=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},n=(t,e,r)=>(p(t,e,"read from private field"),r?r.call(t):e.get(t)),l=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},h=(t,e,r,i)=>(p(t,e,"write to private field"),e.set(t,r),r),a,c;exports.VideoElement=class extends v.SourceElement{constructor(){super(...arguments),l(this,a,0),l(this,c,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const e=this.consumerElement.readyState/4;e>n(this,a)&&h(this,a,e),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:n(this,a)}})),this.consumerElement.readyState===4&&d.ticker.unsubscribe(n(this,c))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{d.ticker.subscribe(n(this,c)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),d.ticker.unsubscribe(n(this,c)),h(this,a,0)}createConsumer(){return document.createElement("video")}consumeSource(e){this.consumerElement.src=e||""}};a=new WeakMap;c=new WeakMap;exports.VideoElement=_([m.define("e-video")],exports.VideoElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-Cr3VaD9G.cjs");const v=require("../source/index.cjs"),d=require("../ticker/index.cjs");var E=Object.defineProperty,f=Object.getOwnPropertyDescriptor,_=(t,e,r,i)=>{for(var s=i>1?void 0:i?f(e,r):e,o=t.length-1,u;o>=0;o--)(u=t[o])&&(s=(i?u(e,r,s):u(s))||s);return i&&s&&E(e,r,s),s},p=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},n=(t,e,r)=>(p(t,e,"read from private field"),r?r.call(t):e.get(t)),l=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},h=(t,e,r,i)=>(p(t,e,"write to private field"),e.set(t,r),r),a,c;exports.VideoElement=class extends v.SourceElement{constructor(){super(...arguments),l(this,a,0),l(this,c,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const e=this.consumerElement.readyState/4;e>n(this,a)&&h(this,a,e),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:n(this,a)}})),this.consumerElement.readyState===4&&d.ticker.unsubscribe(n(this,c))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{d.ticker.subscribe(n(this,c)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),d.ticker.unsubscribe(n(this,c)),h(this,a,0)}createConsumer(){return document.createElement("video")}consumeSource(e){this.consumerElement.src=e||""}};a=new WeakMap;c=new WeakMap;exports.VideoElement=_([m.define("e-video")],exports.VideoElement);
@@ -1,6 +1,6 @@
1
1
  import { define as v } from "../custom-element/index.js";
2
2
  import "../window-resizer/index.js";
3
- import "../Store-Dqcu1DnE.js";
3
+ import "../Store-Qr3SNOSf.js";
4
4
  import { SourceElement as f } from "../source/index.js";
5
5
  import { ticker as h } from "../ticker/index.js";
6
6
  var E = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, y = (e, t, s, i) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"