aptechka 0.53.1 → 0.53.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty,p=Object.defineProperties;var
|
|
1
|
+
"use strict";var S=Object.defineProperty,p=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var h=s=>{throw TypeError(s)};var c=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,l=(s,e)=>{for(var t in e||(e={}))E.call(e,t)&&c(s,t,e[t]);if(u)for(var t of u(e))L.call(e,t)&&c(s,t,e[t]);return s},d=(s,e)=>p(s,y(e));var f=(s,e,t)=>e.has(s)||h("Cannot "+t);var n=(s,e,t)=>(f(s,e,"read from private field"),t?t.call(s):e.get(s)),b=(s,e,t)=>e.has(s)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),o=(s,e,t,i)=>(f(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../Store-GokLe_g-.cjs"),m=require("../string-DUXXtU8v.cjs");require("../index-Cqw2NKev.cjs");var r;class g extends T.Store{constructor(t,i){super(i);b(this,r);o(this,r,Array.isArray(t)?t:[t]);for(const a in this.initial)this.set(a,this.initial[a])}addElement(t){n(this,r).push(t)}removeElement(t){o(this,r,n(this,r).filter(i=>i!==t))}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,i=!0){this.current=d(l({},this.current),{[t]:i}),i?n(this,r).forEach(a=>a.classList.add(m.camelToKebab(t))):n(this,r).forEach(a=>a.classList.remove(m.camelToKebab(t)))}}r=new WeakMap;exports.ClassLinkedStatus=g;
|
|
@@ -1,56 +1,58 @@
|
|
|
1
1
|
var E = Object.defineProperty, L = Object.defineProperties;
|
|
2
2
|
var S = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var o = Object.getOwnPropertySymbols;
|
|
4
4
|
var b = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
throw TypeError(
|
|
5
|
+
var l = (s) => {
|
|
6
|
+
throw TypeError(s);
|
|
7
7
|
};
|
|
8
|
-
var
|
|
9
|
-
for (var
|
|
10
|
-
b.call(
|
|
11
|
-
if (
|
|
12
|
-
for (var
|
|
13
|
-
x.call(
|
|
14
|
-
return
|
|
15
|
-
},
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
import { S as
|
|
8
|
+
var c = (s, i, t) => i in s ? E(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t, u = (s, i) => {
|
|
9
|
+
for (var t in i || (i = {}))
|
|
10
|
+
b.call(i, t) && c(s, t, i[t]);
|
|
11
|
+
if (o)
|
|
12
|
+
for (var t of o(i))
|
|
13
|
+
x.call(i, t) && c(s, t, i[t]);
|
|
14
|
+
return s;
|
|
15
|
+
}, f = (s, i) => L(s, S(i));
|
|
16
|
+
var m = (s, i, t) => i.has(s) || l("Cannot " + t);
|
|
17
|
+
var h = (s, i, t) => (m(s, i, "read from private field"), t ? t.call(s) : i.get(s)), p = (s, i, t) => i.has(s) ? l("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, t), n = (s, i, t, r) => (m(s, i, "write to private field"), r ? r.call(s, t) : i.set(s, t), t);
|
|
18
|
+
import { S as y } from "../Store-swP_0ymB.js";
|
|
19
19
|
import { c as d } from "../string-BlMQbe8b.js";
|
|
20
20
|
import "../index-euf5anj6.js";
|
|
21
|
-
var
|
|
22
|
-
class
|
|
23
|
-
constructor(
|
|
24
|
-
super(
|
|
25
|
-
p(this,
|
|
26
|
-
|
|
21
|
+
var e;
|
|
22
|
+
class C extends y {
|
|
23
|
+
constructor(t, r) {
|
|
24
|
+
super(r);
|
|
25
|
+
p(this, e);
|
|
26
|
+
n(this, e, Array.isArray(t) ? t : [t]);
|
|
27
|
+
for (const a in this.initial)
|
|
28
|
+
this.set(a, this.initial[a]);
|
|
27
29
|
}
|
|
28
|
-
addElement(
|
|
29
|
-
|
|
30
|
+
addElement(t) {
|
|
31
|
+
h(this, e).push(t);
|
|
30
32
|
}
|
|
31
|
-
removeElement(
|
|
32
|
-
|
|
33
|
+
removeElement(t) {
|
|
34
|
+
n(this, e, h(this, e).filter((r) => r !== t));
|
|
33
35
|
}
|
|
34
|
-
isTrue(
|
|
35
|
-
return this.current[
|
|
36
|
+
isTrue(t) {
|
|
37
|
+
return this.current[t] === !0;
|
|
36
38
|
}
|
|
37
|
-
isFalse(
|
|
38
|
-
return this.current[
|
|
39
|
+
isFalse(t) {
|
|
40
|
+
return this.current[t] === !1;
|
|
39
41
|
}
|
|
40
42
|
reset() {
|
|
41
43
|
super.reset();
|
|
42
|
-
for (const
|
|
43
|
-
this.set(
|
|
44
|
+
for (const t in this.initial)
|
|
45
|
+
this.set(t, this.initial[t]);
|
|
44
46
|
}
|
|
45
|
-
set(
|
|
46
|
-
this.current =
|
|
47
|
-
(
|
|
48
|
-
) :
|
|
49
|
-
(
|
|
47
|
+
set(t, r = !0) {
|
|
48
|
+
this.current = f(u({}, this.current), { [t]: r }), r ? h(this, e).forEach(
|
|
49
|
+
(a) => a.classList.add(d(t))
|
|
50
|
+
) : h(this, e).forEach(
|
|
51
|
+
(a) => a.classList.remove(d(t))
|
|
50
52
|
);
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
|
-
|
|
55
|
+
e = new WeakMap();
|
|
54
56
|
export {
|
|
55
|
-
|
|
57
|
+
C as ClassLinkedStatus
|
|
56
58
|
};
|