@byomakase/omakase-react-components 1.2.0 → 1.2.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.
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +61 -61
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -513,28 +513,28 @@ var D = /* @__PURE__ */ function() {
|
|
|
513
513
|
for (; !r[0] && r.length > 1; ) r.shift();
|
|
514
514
|
}
|
|
515
515
|
return function(r, i, o, s, u, c) {
|
|
516
|
-
var a, l, f, d, m, h, p, b, w, I, L, N, R, A, G, re, Y, we, K, oe, se = r.constructor, Ee = r.s == i.s ? 1 : -1,
|
|
517
|
-
if (!
|
|
516
|
+
var a, l, f, d, m, h, p, b, w, I, L, N, R, A, G, re, Y, we, K, oe, se = r.constructor, Ee = r.s == i.s ? 1 : -1, V = r.d, _ = i.d;
|
|
517
|
+
if (!V || !V[0] || !_ || !_[0])
|
|
518
518
|
return new se(
|
|
519
519
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
520
|
-
!r.s || !i.s || (
|
|
520
|
+
!r.s || !i.s || (V ? _ && V[0] == _[0] : !_) ? NaN : (
|
|
521
521
|
// Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
|
|
522
|
-
|
|
522
|
+
V && V[0] == 0 || !_ ? Ee * 0 : Ee / 0
|
|
523
523
|
)
|
|
524
524
|
);
|
|
525
|
-
for (c ? (m = 1, l = r.e - i.e) : (c = ne, m = C, l = X(r.e / m) - X(i.e / m)), K = _.length, Y =
|
|
526
|
-
if (_[f] > (
|
|
525
|
+
for (c ? (m = 1, l = r.e - i.e) : (c = ne, m = C, l = X(r.e / m) - X(i.e / m)), K = _.length, Y = V.length, w = new se(Ee), I = w.d = [], f = 0; _[f] == (V[f] || 0); f++) ;
|
|
526
|
+
if (_[f] > (V[f] || 0) && l--, o == null ? (A = o = se.precision, s = se.rounding) : u ? A = o + (r.e - i.e) + 1 : A = o, A < 0)
|
|
527
527
|
I.push(1), h = !0;
|
|
528
528
|
else {
|
|
529
529
|
if (A = A / m + 2 | 0, f = 0, K == 1) {
|
|
530
530
|
for (d = 0, _ = _[0], A++; (f < Y || d) && A--; f++)
|
|
531
|
-
G = d * c + (
|
|
531
|
+
G = d * c + (V[f] || 0), I[f] = G / _ | 0, d = G % _ | 0;
|
|
532
532
|
h = d || f < Y;
|
|
533
533
|
} else {
|
|
534
|
-
for (d = c / (_[0] + 1) | 0, d > 1 && (_ = t(_, d, c),
|
|
534
|
+
for (d = c / (_[0] + 1) | 0, d > 1 && (_ = t(_, d, c), V = t(V, d, c), K = _.length, Y = V.length), re = K, L = V.slice(0, K), N = L.length; N < K; ) L[N++] = 0;
|
|
535
535
|
oe = _.slice(), oe.unshift(0), we = _[0], _[1] >= c / 2 && ++we;
|
|
536
536
|
do
|
|
537
|
-
d = 0, a = e(_, L, K, N), a < 0 ? (R = L[0], K != N && (R = R * c + (L[1] || 0)), d = R / we | 0, d > 1 ? (d >= c && (d = c - 1), p = t(_, d, c), b = p.length, N = L.length, a = e(p, L, b, N), a == 1 && (d--, n(p, K < b ? oe : _, b, c))) : (d == 0 && (a = d = 1), p = _.slice()), b = p.length, b < N && p.unshift(0), n(L, p, N, c), a == -1 && (N = L.length, a = e(_, L, K, N), a < 1 && (d++, n(L, K < N ? oe : _, N, c))), N = L.length) : a === 0 && (d++, L = [0]), I[f++] = d, a && L[0] ? L[N++] =
|
|
537
|
+
d = 0, a = e(_, L, K, N), a < 0 ? (R = L[0], K != N && (R = R * c + (L[1] || 0)), d = R / we | 0, d > 1 ? (d >= c && (d = c - 1), p = t(_, d, c), b = p.length, N = L.length, a = e(p, L, b, N), a == 1 && (d--, n(p, K < b ? oe : _, b, c))) : (d == 0 && (a = d = 1), p = _.slice()), b = p.length, b < N && p.unshift(0), n(L, p, N, c), a == -1 && (N = L.length, a = e(_, L, K, N), a < 1 && (d++, n(L, K < N ? oe : _, N, c))), N = L.length) : a === 0 && (d++, L = [0]), I[f++] = d, a && L[0] ? L[N++] = V[re] || 0 : (L = [V[re]], N = 1);
|
|
538
538
|
while ((re++ < Y || L[0] !== void 0) && A--);
|
|
539
539
|
h = L[0] !== void 0;
|
|
540
540
|
}
|
|
@@ -904,7 +904,7 @@ function En(t) {
|
|
|
904
904
|
throw Error(he + o);
|
|
905
905
|
return (u = o.charCodeAt(0)) === 45 ? (o = o.slice(1), a.s = -1) : (u === 43 && (o = o.slice(1)), a.s = 1), hn.test(o) ? ft(a, o) : lr(a, o);
|
|
906
906
|
}
|
|
907
|
-
if (i.prototype = g, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = Cr, i.clone = En, i.isDecimal = kt, i.abs = dr, i.acos = mr, i.acosh = hr, i.add = pr, i.asin = gr, i.asinh = vr, i.atan = br, i.atanh = wr, i.atan2 = Er, i.cbrt = Sr, i.ceil = Tr, i.clamp = yr, i.cos = Lr, i.cosh = Mr, i.div = xr, i.exp = Ar, i.floor = Ir, i.hypot = Or, i.ln = _r, i.log = Nr, i.log10 = kr, i.log2 = Rr, i.max = Dr, i.min =
|
|
907
|
+
if (i.prototype = g, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = Cr, i.clone = En, i.isDecimal = kt, i.abs = dr, i.acos = mr, i.acosh = hr, i.add = pr, i.asin = gr, i.asinh = vr, i.atan = br, i.atanh = wr, i.atan2 = Er, i.cbrt = Sr, i.ceil = Tr, i.clamp = yr, i.cos = Lr, i.cosh = Mr, i.div = xr, i.exp = Ar, i.floor = Ir, i.hypot = Or, i.ln = _r, i.log = Nr, i.log10 = kr, i.log2 = Rr, i.max = Dr, i.min = Fr, i.mod = Vr, i.mul = Br, i.pow = $r, i.random = Pr, i.round = Kr, i.sign = Ur, i.sin = Hr, i.sinh = Zr, i.sqrt = Xr, i.sub = qr, i.sum = Wr, i.tan = jr, i.tanh = Gr, i.trunc = Yr, t === void 0 && (t = {}), t && t.defaults !== !0)
|
|
908
908
|
for (r = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], e = 0; e < r.length; ) t.hasOwnProperty(n = r[e++]) || (t[n] = this[n]);
|
|
909
909
|
return i.config(t), i;
|
|
910
910
|
}
|
|
@@ -947,10 +947,10 @@ function kr(t) {
|
|
|
947
947
|
function Dr() {
|
|
948
948
|
return vn(this, arguments, "lt");
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function Fr() {
|
|
951
951
|
return vn(this, arguments, "gt");
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function Vr(t, e) {
|
|
954
954
|
return new this(t).mod(e);
|
|
955
955
|
}
|
|
956
956
|
function Br(t, e) {
|
|
@@ -1718,7 +1718,7 @@ var j = function() {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
}, t.prototype.forEach = function(e, n) {
|
|
1720
1720
|
var r = this;
|
|
1721
|
-
return n =
|
|
1721
|
+
return n = Ft(n), new n(function(i, o) {
|
|
1722
1722
|
var s = new pt({
|
|
1723
1723
|
next: function(u) {
|
|
1724
1724
|
try {
|
|
@@ -1743,7 +1743,7 @@ var j = function() {
|
|
|
1743
1743
|
return li(e)(this);
|
|
1744
1744
|
}, t.prototype.toPromise = function(e) {
|
|
1745
1745
|
var n = this;
|
|
1746
|
-
return e =
|
|
1746
|
+
return e = Ft(e), new e(function(r, i) {
|
|
1747
1747
|
var o;
|
|
1748
1748
|
n.subscribe(function(s) {
|
|
1749
1749
|
return o = s;
|
|
@@ -1757,7 +1757,7 @@ var j = function() {
|
|
|
1757
1757
|
return new t(e);
|
|
1758
1758
|
}, t;
|
|
1759
1759
|
}();
|
|
1760
|
-
function
|
|
1760
|
+
function Ft(t) {
|
|
1761
1761
|
var e;
|
|
1762
1762
|
return (e = t ?? oi.Promise) !== null && e !== void 0 ? e : Promise;
|
|
1763
1763
|
}
|
|
@@ -1832,7 +1832,7 @@ var hi = function(t) {
|
|
|
1832
1832
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
1833
1833
|
}
|
|
1834
1834
|
return e.prototype.lift = function(n) {
|
|
1835
|
-
var r = new
|
|
1835
|
+
var r = new Vt(this, this);
|
|
1836
1836
|
return r.operator = n, r;
|
|
1837
1837
|
}, e.prototype._throwIfClosed = function() {
|
|
1838
1838
|
if (this.closed)
|
|
@@ -1902,9 +1902,9 @@ var hi = function(t) {
|
|
|
1902
1902
|
var n = new j();
|
|
1903
1903
|
return n.source = this, n;
|
|
1904
1904
|
}, e.create = function(n, r) {
|
|
1905
|
-
return new
|
|
1905
|
+
return new Vt(n, r);
|
|
1906
1906
|
}, e;
|
|
1907
|
-
}(j),
|
|
1907
|
+
}(j), Vt = function(t) {
|
|
1908
1908
|
Ie(e, t);
|
|
1909
1909
|
function e(n, r) {
|
|
1910
1910
|
var i = t.call(this) || this;
|
|
@@ -2005,7 +2005,7 @@ function Oe(t) {
|
|
|
2005
2005
|
if (An(t))
|
|
2006
2006
|
return Ti(t);
|
|
2007
2007
|
if (On(t))
|
|
2008
|
-
return
|
|
2008
|
+
return Fn(t);
|
|
2009
2009
|
if (Rn(t))
|
|
2010
2010
|
return yi(t);
|
|
2011
2011
|
if (Dn(t))
|
|
@@ -2058,7 +2058,7 @@ function yi(t) {
|
|
|
2058
2058
|
e.complete();
|
|
2059
2059
|
});
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function Fn(t) {
|
|
2062
2062
|
return new j(function(e) {
|
|
2063
2063
|
Li(t, e).catch(function(n) {
|
|
2064
2064
|
return e.error(n);
|
|
@@ -2066,7 +2066,7 @@ function Vn(t) {
|
|
|
2066
2066
|
});
|
|
2067
2067
|
}
|
|
2068
2068
|
function Ci(t) {
|
|
2069
|
-
return
|
|
2069
|
+
return Fn(kn(t));
|
|
2070
2070
|
}
|
|
2071
2071
|
function Li(t, e) {
|
|
2072
2072
|
var n, r, i, o;
|
|
@@ -2114,7 +2114,7 @@ function me(t, e, n, r, i) {
|
|
|
2114
2114
|
if (t.add(o), !i)
|
|
2115
2115
|
return o;
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function Vn(t, e) {
|
|
2118
2118
|
return e === void 0 && (e = 0), ge(function(n, r) {
|
|
2119
2119
|
n.subscribe(ce(r, function(i) {
|
|
2120
2120
|
return me(r, t, function() {
|
|
@@ -2139,10 +2139,10 @@ function Bn(t, e) {
|
|
|
2139
2139
|
});
|
|
2140
2140
|
}
|
|
2141
2141
|
function Mi(t, e) {
|
|
2142
|
-
return Oe(t).pipe(Bn(e),
|
|
2142
|
+
return Oe(t).pipe(Bn(e), Vn(e));
|
|
2143
2143
|
}
|
|
2144
2144
|
function xi(t, e) {
|
|
2145
|
-
return Oe(t).pipe(Bn(e),
|
|
2145
|
+
return Oe(t).pipe(Bn(e), Vn(e));
|
|
2146
2146
|
}
|
|
2147
2147
|
function Ai(t, e) {
|
|
2148
2148
|
return new j(function(n) {
|
|
@@ -2230,7 +2230,7 @@ function Un(t) {
|
|
|
2230
2230
|
return ki(t, e);
|
|
2231
2231
|
});
|
|
2232
2232
|
}
|
|
2233
|
-
var Di = Array.isArray,
|
|
2233
|
+
var Di = Array.isArray, Fi = Object.getPrototypeOf, Vi = Object.prototype, Bi = Object.keys;
|
|
2234
2234
|
function Hn(t) {
|
|
2235
2235
|
if (t.length === 1) {
|
|
2236
2236
|
var e = t[0];
|
|
@@ -2249,7 +2249,7 @@ function Hn(t) {
|
|
|
2249
2249
|
return { args: t, keys: null };
|
|
2250
2250
|
}
|
|
2251
2251
|
function $i(t) {
|
|
2252
|
-
return t && typeof t == "object" &&
|
|
2252
|
+
return t && typeof t == "object" && Fi(t) === Vi;
|
|
2253
2253
|
}
|
|
2254
2254
|
function Zn(t, e) {
|
|
2255
2255
|
return t.reduce(function(n, r, i) {
|
|
@@ -3060,7 +3060,7 @@ const Oo = ({
|
|
|
3060
3060
|
return !0;
|
|
3061
3061
|
}
|
|
3062
3062
|
return !1;
|
|
3063
|
-
}, [Ee,
|
|
3063
|
+
}, [Ee, V] = ve(oe(t)), [_, Ye] = ve(se(t));
|
|
3064
3064
|
J(() => {
|
|
3065
3065
|
if (Y(() => b()), K(() => w()), A && A !== t) {
|
|
3066
3066
|
const v = i.find(
|
|
@@ -3069,7 +3069,7 @@ const Oo = ({
|
|
|
3069
3069
|
v == null || v.removeMarker(A.id), G(void 0);
|
|
3070
3070
|
}
|
|
3071
3071
|
}, [t, A, i, G]), J(() => () => Q(m), []), J(() => {
|
|
3072
|
-
if (
|
|
3072
|
+
if (V(
|
|
3073
3073
|
oe(t)
|
|
3074
3074
|
), Ye(
|
|
3075
3075
|
se(t)
|
|
@@ -3088,7 +3088,7 @@ const Oo = ({
|
|
|
3088
3088
|
M.currentTime,
|
|
3089
3089
|
e
|
|
3090
3090
|
)
|
|
3091
|
-
),
|
|
3091
|
+
), V(
|
|
3092
3092
|
() => oe(t)
|
|
3093
3093
|
), Ye(
|
|
3094
3094
|
() => se(t)
|
|
@@ -3122,7 +3122,7 @@ const Oo = ({
|
|
|
3122
3122
|
e.video.getCurrentTime(),
|
|
3123
3123
|
e
|
|
3124
3124
|
)
|
|
3125
|
-
),
|
|
3125
|
+
), V(
|
|
3126
3126
|
() => oe(t)
|
|
3127
3127
|
), Ye(
|
|
3128
3128
|
() => se(t)
|
|
@@ -4081,7 +4081,7 @@ async function So(t, e, n) {
|
|
|
4081
4081
|
}
|
|
4082
4082
|
}
|
|
4083
4083
|
const c = [];
|
|
4084
|
-
c.push("WEBVTT"), u["X-TIMESTAMP-MAP=LOCAL"] && c.push(`X-TIMESTAMP-MAP=LOCAL${u["X-TIMESTAMP-MAP=LOCAL"]}`), c.push("");
|
|
4084
|
+
c.push("WEBVTT"), u && u["X-TIMESTAMP-MAP=LOCAL"] && c.push(`X-TIMESTAMP-MAP=LOCAL${u["X-TIMESTAMP-MAP=LOCAL"]}`), c.push("");
|
|
4085
4085
|
for (const f of s)
|
|
4086
4086
|
c.push(
|
|
4087
4087
|
`${Wt(
|
|
@@ -4140,9 +4140,9 @@ const _o = S.memo(
|
|
|
4140
4140
|
w.at(L).next(), w.at(L).complete();
|
|
4141
4141
|
}) : (w.at(L).next(), w.at(L).complete());
|
|
4142
4142
|
});
|
|
4143
|
-
}), i && Ui(w).subscribe(() => {
|
|
4143
|
+
}), i && (w.length ? Ui(w).subscribe(() => {
|
|
4144
4144
|
i(h, p, l);
|
|
4145
|
-
});
|
|
4145
|
+
}) : i(h, p, l));
|
|
4146
4146
|
};
|
|
4147
4147
|
return /* @__PURE__ */ S.createElement(
|
|
4148
4148
|
Gi,
|
|
@@ -4156,7 +4156,7 @@ const _o = S.memo(
|
|
|
4156
4156
|
);
|
|
4157
4157
|
}
|
|
4158
4158
|
);
|
|
4159
|
-
function
|
|
4159
|
+
function Fe(t) {
|
|
4160
4160
|
const e = new Date(t * 1e3), n = e.getUTCHours();
|
|
4161
4161
|
let r = e.getUTCMinutes();
|
|
4162
4162
|
return e.getUTCSeconds() >= 30 && r++, `${n}h ${r}min`;
|
|
@@ -4355,7 +4355,7 @@ const To = `
|
|
|
4355
4355
|
</defs>
|
|
4356
4356
|
</svg>
|
|
4357
4357
|
|
|
4358
|
-
`,
|
|
4358
|
+
`, F = {
|
|
4359
4359
|
container: "omakase-time-range-selector-container",
|
|
4360
4360
|
segments: "omakase-time-range-selector-segments",
|
|
4361
4361
|
segment: "omakase-time-range-selector-segment",
|
|
@@ -4369,7 +4369,7 @@ const To = `
|
|
|
4369
4369
|
rangeSelectorDuration: "omakase-time-range-selector-range-selector-duration",
|
|
4370
4370
|
buttonContainer: "omakase-time-range-selector-button-container",
|
|
4371
4371
|
invisible: "omakase-time-range-selector-invisible"
|
|
4372
|
-
},
|
|
4372
|
+
}, Ve = {
|
|
4373
4373
|
leftHandle: "omakase-time-range-selector-range-selector-left-handle",
|
|
4374
4374
|
rightHandle: "omakase-time-range-selector-range-selector-right-handle",
|
|
4375
4375
|
rangeDuration: "omakase-time-range-selector-range-selector-range-duration",
|
|
@@ -4403,7 +4403,7 @@ class jt extends HTMLElement {
|
|
|
4403
4403
|
T(this, "resetSegments", () => {
|
|
4404
4404
|
this._container.removeChild(this._segments), this._segments = this.buildSegments(
|
|
4405
4405
|
this._labels.slice(this.firstLabelIndex, this.lastLabelIndex + 1)
|
|
4406
|
-
), this._segments.classList.add(
|
|
4406
|
+
), this._segments.classList.add(F.segments), this._container.append(this._segments);
|
|
4407
4407
|
});
|
|
4408
4408
|
T(this, "getBounds", () => ({
|
|
4409
4409
|
wrapperLeft: this._container.offsetLeft,
|
|
@@ -4434,14 +4434,14 @@ class jt extends HTMLElement {
|
|
|
4434
4434
|
});
|
|
4435
4435
|
T(this, "showButtons", () => {
|
|
4436
4436
|
const { start: n, end: r } = this.getSliderValues();
|
|
4437
|
-
n === this.currentStart && r === this.currentEnd || this._buttonContainer.classList.remove(
|
|
4437
|
+
n === this.currentStart && r === this.currentEnd || this._buttonContainer.classList.remove(F.invisible);
|
|
4438
4438
|
});
|
|
4439
4439
|
T(this, "hideButtons", () => {
|
|
4440
|
-
this._buttonContainer.classList.add(
|
|
4440
|
+
this._buttonContainer.classList.add(F.invisible);
|
|
4441
4441
|
});
|
|
4442
4442
|
T(this, "updateDuration", () => {
|
|
4443
4443
|
const { start: n, end: r } = this.getSliderValues(), i = r - n;
|
|
4444
|
-
this._rangeSelectorRangeDisplay.textContent =
|
|
4444
|
+
this._rangeSelectorRangeDisplay.textContent = Fe(i);
|
|
4445
4445
|
});
|
|
4446
4446
|
T(this, "onXclick", () => {
|
|
4447
4447
|
this.firstLabelIndex = this._initialFirstLabelIndex, this.resetSegments();
|
|
@@ -4503,7 +4503,7 @@ class jt extends HTMLElement {
|
|
|
4503
4503
|
n ? this.firstLabelIndex += 1 : this.firstLabelIndex -= 1, this.resetSegments();
|
|
4504
4504
|
});
|
|
4505
4505
|
T(this, "onMouseDownDrag", (n) => {
|
|
4506
|
-
if (n.target instanceof HTMLElement && n.target.classList.contains(
|
|
4506
|
+
if (n.target instanceof HTMLElement && n.target.classList.contains(F.rangeSelectorHandle))
|
|
4507
4507
|
return;
|
|
4508
4508
|
n.preventDefault();
|
|
4509
4509
|
const r = n.clientX, { selectorLeft: i, selectorWidth: o, wrapperWidth: s } = this.getBounds();
|
|
@@ -4589,22 +4589,22 @@ class jt extends HTMLElement {
|
|
|
4589
4589
|
i > this.maxValue && (i = this.maxValue), this.currentStart = r, this.currentEnd = i;
|
|
4590
4590
|
} else
|
|
4591
4591
|
r = this.minValue, i = this.segmentSize;
|
|
4592
|
-
this.resolveInitialSegment(r, i), this._container = document.createElement("div"), this._container.classList.add(
|
|
4592
|
+
this.resolveInitialSegment(r, i), this._container = document.createElement("div"), this._container.classList.add(F.container);
|
|
4593
4593
|
const o = document.createElement("style");
|
|
4594
4594
|
o.textContent = To, this._container.append(o), this._buttonContainer = document.createElement("div"), this._buttonContainer.classList.add(
|
|
4595
|
-
|
|
4596
|
-
|
|
4595
|
+
F.buttonContainer,
|
|
4596
|
+
F.invisible
|
|
4597
4597
|
);
|
|
4598
4598
|
const s = this.createButtonSvg(yo), u = this.createButtonSvg(Co);
|
|
4599
|
-
s.onclick = this.onCheckmarkClick, u.onclick = this.onXclick, this._buttonContainer.append(s, u), this._container.append(this._buttonContainer), this._rangeSelector = document.createElement("div"), this._rangeSelector.classList.add(
|
|
4600
|
-
|
|
4601
|
-
), this._rangeSelectorRangeDisplay.id =
|
|
4599
|
+
s.onclick = this.onCheckmarkClick, u.onclick = this.onXclick, this._buttonContainer.append(s, u), this._container.append(this._buttonContainer), this._rangeSelector = document.createElement("div"), this._rangeSelector.classList.add(F.rangeSelector), this._rangeSelectorLeftHandle = document.createElement("div"), this._rangeSelectorLeftHandle.classList.add(F.rangeSelectorHandle), this._rangeSelectorLeftHandle.id = Ve.leftHandle, this._rangeSelectorRightHandle = document.createElement("div"), this._rangeSelectorRightHandle.classList.add(F.rangeSelectorHandle), this._rangeSelectorRightHandle.id = Ve.rightHandle, this._rangeSelectorRangeDisplay = document.createElement("div"), this._rangeSelectorRangeDisplay.classList.add(
|
|
4600
|
+
F.rangeSelectorDuration
|
|
4601
|
+
), this._rangeSelectorRangeDisplay.id = Ve.rangeDuration, this._rangeSelector.append(
|
|
4602
4602
|
this._rangeSelectorLeftHandle,
|
|
4603
4603
|
this._rangeSelectorRangeDisplay,
|
|
4604
4604
|
this._rangeSelectorRightHandle
|
|
4605
4605
|
), this._container.append(this._rangeSelector), this._segments = this.buildSegments(
|
|
4606
4606
|
this._labels.slice(this.firstLabelIndex, this.lastLabelIndex + 1)
|
|
4607
|
-
), this._segments.id =
|
|
4607
|
+
), this._segments.id = Ve.segments, this._segments.classList.add(F.segments), this._container.append(this._segments), this._rangeSelectorLeftHandle.addEventListener(
|
|
4608
4608
|
"mousedown",
|
|
4609
4609
|
this.onMouseDownLeft
|
|
4610
4610
|
), this._rangeSelectorRightHandle.addEventListener(
|
|
@@ -4640,30 +4640,30 @@ class jt extends HTMLElement {
|
|
|
4640
4640
|
const r = document.createElement("div");
|
|
4641
4641
|
n.slice(0, -2).forEach((a) => {
|
|
4642
4642
|
const l = document.createElement("div");
|
|
4643
|
-
l.classList.add(
|
|
4643
|
+
l.classList.add(F.segment);
|
|
4644
4644
|
const f = document.createElement("div");
|
|
4645
|
-
f.classList.add(
|
|
4645
|
+
f.classList.add(F.segmentMarker);
|
|
4646
4646
|
const d = document.createElement("div");
|
|
4647
|
-
d.classList.add(
|
|
4647
|
+
d.classList.add(F.segmentTick);
|
|
4648
4648
|
const m = document.createElement("div");
|
|
4649
|
-
m.classList.add(
|
|
4649
|
+
m.classList.add(F.segmentLabel), m.innerHTML = Fe(a), l.append(f, d, m), r.append(l);
|
|
4650
4650
|
});
|
|
4651
4651
|
const i = document.createElement("div");
|
|
4652
|
-
i.classList.add(
|
|
4652
|
+
i.classList.add(F.segment);
|
|
4653
4653
|
const o = document.createElement("div");
|
|
4654
|
-
o.classList.add(
|
|
4654
|
+
o.classList.add(F.segmentMarker);
|
|
4655
4655
|
const s = document.createElement("div");
|
|
4656
|
-
s.classList.add(
|
|
4656
|
+
s.classList.add(F.segmentTick);
|
|
4657
4657
|
const u = document.createElement("div");
|
|
4658
4658
|
u.classList.add(
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
), u.innerHTML =
|
|
4659
|
+
F.segmentLabel,
|
|
4660
|
+
F.firstSegmentLabel
|
|
4661
|
+
), u.innerHTML = Fe(n.at(-2));
|
|
4662
4662
|
const c = document.createElement("div");
|
|
4663
4663
|
return c.classList.add(
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
), c.innerHTML =
|
|
4664
|
+
F.segmentLabel,
|
|
4665
|
+
F.secondSegmentLabel
|
|
4666
|
+
), c.innerHTML = Fe(n.at(-1)), i.append(
|
|
4667
4667
|
o,
|
|
4668
4668
|
s,
|
|
4669
4669
|
u,
|