elbe-ui 0.2.14 → 0.2.20
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/bit/bit.d.ts +34 -0
- package/dist/bit/ctrl_bit.d.ts +30 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1386 -353
- package/dist/service/s_api.d.ts +30 -0
- package/dist/ui/components/box.d.ts +14 -14
- package/dist/ui/components/error_view.d.ts +15 -0
- package/dist/ui/components/spinner.d.ts +3 -0
- package/package.json +4 -2
- package/src/bit/bit.tsx +128 -0
- package/src/bit/ctrl_bit.tsx +112 -0
- package/src/index.tsx +4 -0
- package/src/service/s_api.ts +102 -0
- package/src/ui/components/error_view.tsx +72 -0
- package/src/ui/components/spinner.tsx +11 -0
package/dist/index.js
CHANGED
|
@@ -1308,7 +1308,7 @@ var require_react_development = __commonJS((exports, module) => {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
|
-
function checkPropTypes(typeSpecs, values,
|
|
1311
|
+
function checkPropTypes(typeSpecs, values, location2, componentName, element) {
|
|
1312
1312
|
{
|
|
1313
1313
|
var has = Function.call.bind(hasOwnProperty);
|
|
1314
1314
|
for (var typeSpecName in typeSpecs) {
|
|
@@ -1316,23 +1316,23 @@ var require_react_development = __commonJS((exports, module) => {
|
|
|
1316
1316
|
var error$1 = undefined;
|
|
1317
1317
|
try {
|
|
1318
1318
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
1319
|
-
var err = Error((componentName || "React class") + ": " +
|
|
1319
|
+
var err = Error((componentName || "React class") + ": " + location2 + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1320
1320
|
err.name = "Invariant Violation";
|
|
1321
1321
|
throw err;
|
|
1322
1322
|
}
|
|
1323
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName,
|
|
1323
|
+
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location2, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1324
1324
|
} catch (ex) {
|
|
1325
1325
|
error$1 = ex;
|
|
1326
1326
|
}
|
|
1327
1327
|
if (error$1 && !(error$1 instanceof Error)) {
|
|
1328
1328
|
setCurrentlyValidatingElement(element);
|
|
1329
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class",
|
|
1329
|
+
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location2, typeSpecName, typeof error$1);
|
|
1330
1330
|
setCurrentlyValidatingElement(null);
|
|
1331
1331
|
}
|
|
1332
1332
|
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
1333
1333
|
loggedTypeFailures[error$1.message] = true;
|
|
1334
1334
|
setCurrentlyValidatingElement(element);
|
|
1335
|
-
error("Failed %s type: %s",
|
|
1335
|
+
error("Failed %s type: %s", location2, error$1.message);
|
|
1336
1336
|
setCurrentlyValidatingElement(null);
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
@@ -15902,6 +15902,7 @@ var index = Object.freeze({
|
|
|
15902
15902
|
});
|
|
15903
15903
|
var $X = X;
|
|
15904
15904
|
var $icons = index;
|
|
15905
|
+
|
|
15905
15906
|
// node_modules/preact/dist/preact.mjs
|
|
15906
15907
|
var d = function(n, l) {
|
|
15907
15908
|
for (var u in l)
|
|
@@ -16258,6 +16259,7 @@ n = p.slice, l = { __e: function(n2, l2, u2, t2) {
|
|
|
16258
16259
|
}, b.prototype.render = k, i = [], r = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f = function(n2, l2) {
|
|
16259
16260
|
return n2.__v.__b - l2.__v.__b;
|
|
16260
16261
|
}, P.__r = 0, e = 0, c = F(false), s = F(true), a = 0;
|
|
16262
|
+
|
|
16261
16263
|
// node_modules/preact/hooks/dist/hooks.mjs
|
|
16262
16264
|
var d2 = function(n2, t2) {
|
|
16263
16265
|
c2.__h && c2.__h(r2, n2, o2 || t2), o2 = 0;
|
|
@@ -16436,106 +16438,1145 @@ c2.__b = function(n2) {
|
|
|
16436
16438
|
};
|
|
16437
16439
|
var k2 = typeof requestAnimationFrame == "function";
|
|
16438
16440
|
|
|
16441
|
+
// node_modules/@preact/signals-core/dist/signals-core.mjs
|
|
16442
|
+
var t3 = function() {
|
|
16443
|
+
if (r3 > 1) {
|
|
16444
|
+
r3--;
|
|
16445
|
+
return;
|
|
16446
|
+
}
|
|
16447
|
+
let i3, t4 = false;
|
|
16448
|
+
while (s3 !== undefined) {
|
|
16449
|
+
let o3 = s3;
|
|
16450
|
+
s3 = undefined;
|
|
16451
|
+
f3++;
|
|
16452
|
+
while (o3 !== undefined) {
|
|
16453
|
+
const n2 = o3.o;
|
|
16454
|
+
o3.o = undefined;
|
|
16455
|
+
o3.f &= -3;
|
|
16456
|
+
if (!(8 & o3.f) && v3(o3))
|
|
16457
|
+
try {
|
|
16458
|
+
o3.c();
|
|
16459
|
+
} catch (o4) {
|
|
16460
|
+
if (!t4) {
|
|
16461
|
+
i3 = o4;
|
|
16462
|
+
t4 = true;
|
|
16463
|
+
}
|
|
16464
|
+
}
|
|
16465
|
+
o3 = n2;
|
|
16466
|
+
}
|
|
16467
|
+
}
|
|
16468
|
+
f3 = 0;
|
|
16469
|
+
r3--;
|
|
16470
|
+
if (t4)
|
|
16471
|
+
throw i3;
|
|
16472
|
+
};
|
|
16473
|
+
var c3 = function(i3) {
|
|
16474
|
+
if (n2 === undefined)
|
|
16475
|
+
return;
|
|
16476
|
+
let t4 = i3.n;
|
|
16477
|
+
if (t4 === undefined || t4.t !== n2) {
|
|
16478
|
+
t4 = { i: 0, S: i3, p: n2.s, n: undefined, t: n2, e: undefined, x: undefined, r: t4 };
|
|
16479
|
+
if (n2.s !== undefined)
|
|
16480
|
+
n2.s.n = t4;
|
|
16481
|
+
n2.s = t4;
|
|
16482
|
+
i3.n = t4;
|
|
16483
|
+
if (32 & n2.f)
|
|
16484
|
+
i3.S(t4);
|
|
16485
|
+
return t4;
|
|
16486
|
+
} else if (t4.i === -1) {
|
|
16487
|
+
t4.i = 0;
|
|
16488
|
+
if (t4.n !== undefined) {
|
|
16489
|
+
t4.n.p = t4.p;
|
|
16490
|
+
if (t4.p !== undefined)
|
|
16491
|
+
t4.p.n = t4.n;
|
|
16492
|
+
t4.p = n2.s;
|
|
16493
|
+
t4.n = undefined;
|
|
16494
|
+
n2.s.n = t4;
|
|
16495
|
+
n2.s = t4;
|
|
16496
|
+
}
|
|
16497
|
+
return t4;
|
|
16498
|
+
}
|
|
16499
|
+
};
|
|
16500
|
+
var u3 = function(i3) {
|
|
16501
|
+
this.v = i3;
|
|
16502
|
+
this.i = 0;
|
|
16503
|
+
this.n = undefined;
|
|
16504
|
+
this.t = undefined;
|
|
16505
|
+
};
|
|
16506
|
+
var d3 = function(i3) {
|
|
16507
|
+
return new u3(i3);
|
|
16508
|
+
};
|
|
16509
|
+
var v3 = function(i3) {
|
|
16510
|
+
for (let t4 = i3.s;t4 !== undefined; t4 = t4.n)
|
|
16511
|
+
if (t4.S.i !== t4.i || !t4.S.h() || t4.S.i !== t4.i)
|
|
16512
|
+
return true;
|
|
16513
|
+
return false;
|
|
16514
|
+
};
|
|
16515
|
+
var l3 = function(i3) {
|
|
16516
|
+
for (let t4 = i3.s;t4 !== undefined; t4 = t4.n) {
|
|
16517
|
+
const o3 = t4.S.n;
|
|
16518
|
+
if (o3 !== undefined)
|
|
16519
|
+
t4.r = o3;
|
|
16520
|
+
t4.S.n = t4;
|
|
16521
|
+
t4.i = -1;
|
|
16522
|
+
if (t4.n === undefined) {
|
|
16523
|
+
i3.s = t4;
|
|
16524
|
+
break;
|
|
16525
|
+
}
|
|
16526
|
+
}
|
|
16527
|
+
};
|
|
16528
|
+
var y3 = function(i3) {
|
|
16529
|
+
let t4, o3 = i3.s;
|
|
16530
|
+
while (o3 !== undefined) {
|
|
16531
|
+
const i4 = o3.p;
|
|
16532
|
+
if (o3.i === -1) {
|
|
16533
|
+
o3.S.U(o3);
|
|
16534
|
+
if (i4 !== undefined)
|
|
16535
|
+
i4.n = o3.n;
|
|
16536
|
+
if (o3.n !== undefined)
|
|
16537
|
+
o3.n.p = i4;
|
|
16538
|
+
} else
|
|
16539
|
+
t4 = o3;
|
|
16540
|
+
o3.S.n = o3.r;
|
|
16541
|
+
if (o3.r !== undefined)
|
|
16542
|
+
o3.r = undefined;
|
|
16543
|
+
o3 = i4;
|
|
16544
|
+
}
|
|
16545
|
+
i3.s = t4;
|
|
16546
|
+
};
|
|
16547
|
+
var a3 = function(i3) {
|
|
16548
|
+
u3.call(this, undefined);
|
|
16549
|
+
this.x = i3;
|
|
16550
|
+
this.s = undefined;
|
|
16551
|
+
this.g = e3 - 1;
|
|
16552
|
+
this.f = 4;
|
|
16553
|
+
};
|
|
16554
|
+
var w3 = function(i3) {
|
|
16555
|
+
return new a3(i3);
|
|
16556
|
+
};
|
|
16557
|
+
var _3 = function(i3) {
|
|
16558
|
+
const o3 = i3.u;
|
|
16559
|
+
i3.u = undefined;
|
|
16560
|
+
if (typeof o3 == "function") {
|
|
16561
|
+
r3++;
|
|
16562
|
+
const s3 = n2;
|
|
16563
|
+
n2 = undefined;
|
|
16564
|
+
try {
|
|
16565
|
+
o3();
|
|
16566
|
+
} catch (t4) {
|
|
16567
|
+
i3.f &= -2;
|
|
16568
|
+
i3.f |= 8;
|
|
16569
|
+
g3(i3);
|
|
16570
|
+
throw t4;
|
|
16571
|
+
} finally {
|
|
16572
|
+
n2 = s3;
|
|
16573
|
+
t3();
|
|
16574
|
+
}
|
|
16575
|
+
}
|
|
16576
|
+
};
|
|
16577
|
+
var g3 = function(i3) {
|
|
16578
|
+
for (let t4 = i3.s;t4 !== undefined; t4 = t4.n)
|
|
16579
|
+
t4.S.U(t4);
|
|
16580
|
+
i3.x = undefined;
|
|
16581
|
+
i3.s = undefined;
|
|
16582
|
+
_3(i3);
|
|
16583
|
+
};
|
|
16584
|
+
var p3 = function(i3) {
|
|
16585
|
+
if (n2 !== this)
|
|
16586
|
+
throw new Error("Out-of-order effect");
|
|
16587
|
+
y3(this);
|
|
16588
|
+
n2 = i3;
|
|
16589
|
+
this.f &= -2;
|
|
16590
|
+
if (8 & this.f)
|
|
16591
|
+
g3(this);
|
|
16592
|
+
t3();
|
|
16593
|
+
};
|
|
16594
|
+
var b2 = function(i3) {
|
|
16595
|
+
this.x = i3;
|
|
16596
|
+
this.u = undefined;
|
|
16597
|
+
this.s = undefined;
|
|
16598
|
+
this.o = undefined;
|
|
16599
|
+
this.f = 32;
|
|
16600
|
+
};
|
|
16601
|
+
var E2 = function(i3) {
|
|
16602
|
+
const t4 = new b2(i3);
|
|
16603
|
+
try {
|
|
16604
|
+
t4.c();
|
|
16605
|
+
} catch (i4) {
|
|
16606
|
+
t4.d();
|
|
16607
|
+
throw i4;
|
|
16608
|
+
}
|
|
16609
|
+
return t4.d.bind(t4);
|
|
16610
|
+
};
|
|
16611
|
+
var i3 = Symbol.for("preact-signals");
|
|
16612
|
+
var n2;
|
|
16613
|
+
var s3;
|
|
16614
|
+
var r3 = 0;
|
|
16615
|
+
var f3 = 0;
|
|
16616
|
+
var e3 = 0;
|
|
16617
|
+
u3.prototype.brand = i3;
|
|
16618
|
+
u3.prototype.h = function() {
|
|
16619
|
+
return true;
|
|
16620
|
+
};
|
|
16621
|
+
u3.prototype.S = function(i4) {
|
|
16622
|
+
if (this.t !== i4 && i4.e === undefined) {
|
|
16623
|
+
i4.x = this.t;
|
|
16624
|
+
if (this.t !== undefined)
|
|
16625
|
+
this.t.e = i4;
|
|
16626
|
+
this.t = i4;
|
|
16627
|
+
}
|
|
16628
|
+
};
|
|
16629
|
+
u3.prototype.U = function(i4) {
|
|
16630
|
+
if (this.t !== undefined) {
|
|
16631
|
+
const { e: t4, x: o3 } = i4;
|
|
16632
|
+
if (t4 !== undefined) {
|
|
16633
|
+
t4.x = o3;
|
|
16634
|
+
i4.e = undefined;
|
|
16635
|
+
}
|
|
16636
|
+
if (o3 !== undefined) {
|
|
16637
|
+
o3.e = t4;
|
|
16638
|
+
i4.x = undefined;
|
|
16639
|
+
}
|
|
16640
|
+
if (i4 === this.t)
|
|
16641
|
+
this.t = o3;
|
|
16642
|
+
}
|
|
16643
|
+
};
|
|
16644
|
+
u3.prototype.subscribe = function(i4) {
|
|
16645
|
+
return E2(() => {
|
|
16646
|
+
const t4 = this.value, o3 = n2;
|
|
16647
|
+
n2 = undefined;
|
|
16648
|
+
try {
|
|
16649
|
+
i4(t4);
|
|
16650
|
+
} finally {
|
|
16651
|
+
n2 = o3;
|
|
16652
|
+
}
|
|
16653
|
+
});
|
|
16654
|
+
};
|
|
16655
|
+
u3.prototype.valueOf = function() {
|
|
16656
|
+
return this.value;
|
|
16657
|
+
};
|
|
16658
|
+
u3.prototype.toString = function() {
|
|
16659
|
+
return this.value + "";
|
|
16660
|
+
};
|
|
16661
|
+
u3.prototype.toJSON = function() {
|
|
16662
|
+
return this.value;
|
|
16663
|
+
};
|
|
16664
|
+
u3.prototype.peek = function() {
|
|
16665
|
+
const i4 = n2;
|
|
16666
|
+
n2 = undefined;
|
|
16667
|
+
try {
|
|
16668
|
+
return this.value;
|
|
16669
|
+
} finally {
|
|
16670
|
+
n2 = i4;
|
|
16671
|
+
}
|
|
16672
|
+
};
|
|
16673
|
+
Object.defineProperty(u3.prototype, "value", { get() {
|
|
16674
|
+
const i4 = c3(this);
|
|
16675
|
+
if (i4 !== undefined)
|
|
16676
|
+
i4.i = this.i;
|
|
16677
|
+
return this.v;
|
|
16678
|
+
}, set(i4) {
|
|
16679
|
+
if (i4 !== this.v) {
|
|
16680
|
+
if (f3 > 100)
|
|
16681
|
+
throw new Error("Cycle detected");
|
|
16682
|
+
this.v = i4;
|
|
16683
|
+
this.i++;
|
|
16684
|
+
e3++;
|
|
16685
|
+
r3++;
|
|
16686
|
+
try {
|
|
16687
|
+
for (let i5 = this.t;i5 !== undefined; i5 = i5.x)
|
|
16688
|
+
i5.t.N();
|
|
16689
|
+
} finally {
|
|
16690
|
+
t3();
|
|
16691
|
+
}
|
|
16692
|
+
}
|
|
16693
|
+
} });
|
|
16694
|
+
(a3.prototype = new u3).h = function() {
|
|
16695
|
+
this.f &= -3;
|
|
16696
|
+
if (1 & this.f)
|
|
16697
|
+
return false;
|
|
16698
|
+
if ((36 & this.f) == 32)
|
|
16699
|
+
return true;
|
|
16700
|
+
this.f &= -5;
|
|
16701
|
+
if (this.g === e3)
|
|
16702
|
+
return true;
|
|
16703
|
+
this.g = e3;
|
|
16704
|
+
this.f |= 1;
|
|
16705
|
+
if (this.i > 0 && !v3(this)) {
|
|
16706
|
+
this.f &= -2;
|
|
16707
|
+
return true;
|
|
16708
|
+
}
|
|
16709
|
+
const i4 = n2;
|
|
16710
|
+
try {
|
|
16711
|
+
l3(this);
|
|
16712
|
+
n2 = this;
|
|
16713
|
+
const i5 = this.x();
|
|
16714
|
+
if (16 & this.f || this.v !== i5 || this.i === 0) {
|
|
16715
|
+
this.v = i5;
|
|
16716
|
+
this.f &= -17;
|
|
16717
|
+
this.i++;
|
|
16718
|
+
}
|
|
16719
|
+
} catch (i5) {
|
|
16720
|
+
this.v = i5;
|
|
16721
|
+
this.f |= 16;
|
|
16722
|
+
this.i++;
|
|
16723
|
+
}
|
|
16724
|
+
n2 = i4;
|
|
16725
|
+
y3(this);
|
|
16726
|
+
this.f &= -2;
|
|
16727
|
+
return true;
|
|
16728
|
+
};
|
|
16729
|
+
a3.prototype.S = function(i4) {
|
|
16730
|
+
if (this.t === undefined) {
|
|
16731
|
+
this.f |= 36;
|
|
16732
|
+
for (let i5 = this.s;i5 !== undefined; i5 = i5.n)
|
|
16733
|
+
i5.S.S(i5);
|
|
16734
|
+
}
|
|
16735
|
+
u3.prototype.S.call(this, i4);
|
|
16736
|
+
};
|
|
16737
|
+
a3.prototype.U = function(i4) {
|
|
16738
|
+
if (this.t !== undefined) {
|
|
16739
|
+
u3.prototype.U.call(this, i4);
|
|
16740
|
+
if (this.t === undefined) {
|
|
16741
|
+
this.f &= -33;
|
|
16742
|
+
for (let i5 = this.s;i5 !== undefined; i5 = i5.n)
|
|
16743
|
+
i5.S.U(i5);
|
|
16744
|
+
}
|
|
16745
|
+
}
|
|
16746
|
+
};
|
|
16747
|
+
a3.prototype.N = function() {
|
|
16748
|
+
if (!(2 & this.f)) {
|
|
16749
|
+
this.f |= 6;
|
|
16750
|
+
for (let i4 = this.t;i4 !== undefined; i4 = i4.x)
|
|
16751
|
+
i4.t.N();
|
|
16752
|
+
}
|
|
16753
|
+
};
|
|
16754
|
+
Object.defineProperty(a3.prototype, "value", { get() {
|
|
16755
|
+
if (1 & this.f)
|
|
16756
|
+
throw new Error("Cycle detected");
|
|
16757
|
+
const i4 = c3(this);
|
|
16758
|
+
this.h();
|
|
16759
|
+
if (i4 !== undefined)
|
|
16760
|
+
i4.i = this.i;
|
|
16761
|
+
if (16 & this.f)
|
|
16762
|
+
throw this.v;
|
|
16763
|
+
return this.v;
|
|
16764
|
+
} });
|
|
16765
|
+
b2.prototype.c = function() {
|
|
16766
|
+
const i4 = this.S();
|
|
16767
|
+
try {
|
|
16768
|
+
if (8 & this.f)
|
|
16769
|
+
return;
|
|
16770
|
+
if (this.x === undefined)
|
|
16771
|
+
return;
|
|
16772
|
+
const t4 = this.x();
|
|
16773
|
+
if (typeof t4 == "function")
|
|
16774
|
+
this.u = t4;
|
|
16775
|
+
} finally {
|
|
16776
|
+
i4();
|
|
16777
|
+
}
|
|
16778
|
+
};
|
|
16779
|
+
b2.prototype.S = function() {
|
|
16780
|
+
if (1 & this.f)
|
|
16781
|
+
throw new Error("Cycle detected");
|
|
16782
|
+
this.f |= 1;
|
|
16783
|
+
this.f &= -9;
|
|
16784
|
+
_3(this);
|
|
16785
|
+
l3(this);
|
|
16786
|
+
r3++;
|
|
16787
|
+
const i4 = n2;
|
|
16788
|
+
n2 = this;
|
|
16789
|
+
return p3.bind(this, i4);
|
|
16790
|
+
};
|
|
16791
|
+
b2.prototype.N = function() {
|
|
16792
|
+
if (!(2 & this.f)) {
|
|
16793
|
+
this.f |= 2;
|
|
16794
|
+
this.o = s3;
|
|
16795
|
+
s3 = this;
|
|
16796
|
+
}
|
|
16797
|
+
};
|
|
16798
|
+
b2.prototype.d = function() {
|
|
16799
|
+
this.f |= 8;
|
|
16800
|
+
if (!(1 & this.f))
|
|
16801
|
+
g3(this);
|
|
16802
|
+
};
|
|
16803
|
+
|
|
16804
|
+
// node_modules/@preact/signals/dist/signals.mjs
|
|
16805
|
+
var c4 = function(t4, e4) {
|
|
16806
|
+
l[t4] = e4.bind(null, l[t4] || (() => {
|
|
16807
|
+
}));
|
|
16808
|
+
};
|
|
16809
|
+
var h3 = function(t4) {
|
|
16810
|
+
if (d4)
|
|
16811
|
+
d4();
|
|
16812
|
+
d4 = t4 && t4.S();
|
|
16813
|
+
};
|
|
16814
|
+
var p4 = function({ data: t4 }) {
|
|
16815
|
+
const i4 = useSignal(t4);
|
|
16816
|
+
i4.value = t4;
|
|
16817
|
+
const o3 = T2(() => {
|
|
16818
|
+
let t5 = this.__v;
|
|
16819
|
+
while (t5 = t5.__)
|
|
16820
|
+
if (t5.__c) {
|
|
16821
|
+
t5.__c.__$f |= 4;
|
|
16822
|
+
break;
|
|
16823
|
+
}
|
|
16824
|
+
this.__$u.c = () => {
|
|
16825
|
+
var t6;
|
|
16826
|
+
if (!t(o3.peek()) && ((t6 = this.base) == null ? undefined : t6.nodeType) === 3)
|
|
16827
|
+
this.base.data = o3.peek();
|
|
16828
|
+
else {
|
|
16829
|
+
this.__$f |= 1;
|
|
16830
|
+
this.setState({});
|
|
16831
|
+
}
|
|
16832
|
+
};
|
|
16833
|
+
return w3(() => {
|
|
16834
|
+
let t6 = i4.value.value;
|
|
16835
|
+
return t6 === 0 ? 0 : t6 === true ? "" : t6 || "";
|
|
16836
|
+
});
|
|
16837
|
+
}, []);
|
|
16838
|
+
return o3.value;
|
|
16839
|
+
};
|
|
16840
|
+
var v4 = function(t4, i4, e4, n3) {
|
|
16841
|
+
const o3 = i4 in t4 && t4.ownerSVGElement === undefined, r4 = d3(e4);
|
|
16842
|
+
return { o: (t5, i5) => {
|
|
16843
|
+
r4.value = t5;
|
|
16844
|
+
n3 = i5;
|
|
16845
|
+
}, d: E2(() => {
|
|
16846
|
+
const e5 = r4.value.value;
|
|
16847
|
+
if (n3[i4] !== e5) {
|
|
16848
|
+
n3[i4] = e5;
|
|
16849
|
+
if (o3)
|
|
16850
|
+
t4[i4] = e5;
|
|
16851
|
+
else if (e5)
|
|
16852
|
+
t4.setAttribute(i4, e5);
|
|
16853
|
+
else
|
|
16854
|
+
t4.removeAttribute(i4);
|
|
16855
|
+
}
|
|
16856
|
+
}) };
|
|
16857
|
+
};
|
|
16858
|
+
var useSignal = function(t4) {
|
|
16859
|
+
return T2(() => d3(t4), []);
|
|
16860
|
+
};
|
|
16861
|
+
var a4;
|
|
16862
|
+
var d4;
|
|
16863
|
+
p4.displayName = "_st";
|
|
16864
|
+
Object.defineProperties(u3.prototype, { constructor: { configurable: true, value: undefined }, type: { configurable: true, value: p4 }, props: { configurable: true, get() {
|
|
16865
|
+
return { data: this };
|
|
16866
|
+
} }, __b: { configurable: true, value: 1 } });
|
|
16867
|
+
c4("__b", (t4, i4) => {
|
|
16868
|
+
if (typeof i4.type == "string") {
|
|
16869
|
+
let t5, e4 = i4.props;
|
|
16870
|
+
for (let n3 in e4) {
|
|
16871
|
+
if (n3 === "children")
|
|
16872
|
+
continue;
|
|
16873
|
+
let o3 = e4[n3];
|
|
16874
|
+
if (o3 instanceof u3) {
|
|
16875
|
+
if (!t5)
|
|
16876
|
+
i4.__np = t5 = {};
|
|
16877
|
+
t5[n3] = o3;
|
|
16878
|
+
e4[n3] = o3.peek();
|
|
16879
|
+
}
|
|
16880
|
+
}
|
|
16881
|
+
}
|
|
16882
|
+
t4(i4);
|
|
16883
|
+
});
|
|
16884
|
+
c4("__r", (t4, i4) => {
|
|
16885
|
+
h3();
|
|
16886
|
+
let e4, n3 = i4.__c;
|
|
16887
|
+
if (n3) {
|
|
16888
|
+
n3.__$f &= -2;
|
|
16889
|
+
e4 = n3.__$u;
|
|
16890
|
+
if (e4 === undefined)
|
|
16891
|
+
n3.__$u = e4 = function(t5) {
|
|
16892
|
+
let i5;
|
|
16893
|
+
E2(function() {
|
|
16894
|
+
i5 = this;
|
|
16895
|
+
});
|
|
16896
|
+
i5.c = () => {
|
|
16897
|
+
n3.__$f |= 1;
|
|
16898
|
+
n3.setState({});
|
|
16899
|
+
};
|
|
16900
|
+
return i5;
|
|
16901
|
+
}();
|
|
16902
|
+
}
|
|
16903
|
+
a4 = n3;
|
|
16904
|
+
h3(e4);
|
|
16905
|
+
t4(i4);
|
|
16906
|
+
});
|
|
16907
|
+
c4("__e", (t4, i4, e4, n3) => {
|
|
16908
|
+
h3();
|
|
16909
|
+
a4 = undefined;
|
|
16910
|
+
t4(i4, e4, n3);
|
|
16911
|
+
});
|
|
16912
|
+
c4("diffed", (t4, i4) => {
|
|
16913
|
+
h3();
|
|
16914
|
+
a4 = undefined;
|
|
16915
|
+
let e4;
|
|
16916
|
+
if (typeof i4.type == "string" && (e4 = i4.__e)) {
|
|
16917
|
+
let { __np: t5, props: n3 } = i4;
|
|
16918
|
+
if (t5) {
|
|
16919
|
+
let i5 = e4.U;
|
|
16920
|
+
if (i5)
|
|
16921
|
+
for (let e5 in i5) {
|
|
16922
|
+
let n4 = i5[e5];
|
|
16923
|
+
if (n4 !== undefined && !(e5 in t5)) {
|
|
16924
|
+
n4.d();
|
|
16925
|
+
i5[e5] = undefined;
|
|
16926
|
+
}
|
|
16927
|
+
}
|
|
16928
|
+
else {
|
|
16929
|
+
i5 = {};
|
|
16930
|
+
e4.U = i5;
|
|
16931
|
+
}
|
|
16932
|
+
for (let o3 in t5) {
|
|
16933
|
+
let r4 = i5[o3], f4 = t5[o3];
|
|
16934
|
+
if (r4 === undefined) {
|
|
16935
|
+
r4 = v4(e4, o3, f4, n3);
|
|
16936
|
+
i5[o3] = r4;
|
|
16937
|
+
} else
|
|
16938
|
+
r4.o(f4, n3);
|
|
16939
|
+
}
|
|
16940
|
+
}
|
|
16941
|
+
}
|
|
16942
|
+
t4(i4);
|
|
16943
|
+
});
|
|
16944
|
+
c4("unmount", (t4, i4) => {
|
|
16945
|
+
if (typeof i4.type == "string") {
|
|
16946
|
+
let t5 = i4.__e;
|
|
16947
|
+
if (t5) {
|
|
16948
|
+
const i5 = t5.U;
|
|
16949
|
+
if (i5) {
|
|
16950
|
+
t5.U = undefined;
|
|
16951
|
+
for (let t6 in i5) {
|
|
16952
|
+
let e4 = i5[t6];
|
|
16953
|
+
if (e4)
|
|
16954
|
+
e4.d();
|
|
16955
|
+
}
|
|
16956
|
+
}
|
|
16957
|
+
}
|
|
16958
|
+
} else {
|
|
16959
|
+
let t5 = i4.__c;
|
|
16960
|
+
if (t5) {
|
|
16961
|
+
const i5 = t5.__$u;
|
|
16962
|
+
if (i5) {
|
|
16963
|
+
t5.__$u = undefined;
|
|
16964
|
+
i5.d();
|
|
16965
|
+
}
|
|
16966
|
+
}
|
|
16967
|
+
}
|
|
16968
|
+
t4(i4);
|
|
16969
|
+
});
|
|
16970
|
+
c4("__h", (t4, i4, e4, n3) => {
|
|
16971
|
+
if (n3 < 3 || n3 === 9)
|
|
16972
|
+
i4.__$f |= 2;
|
|
16973
|
+
t4(i4, e4, n3);
|
|
16974
|
+
});
|
|
16975
|
+
b.prototype.shouldComponentUpdate = function(t4, i4) {
|
|
16976
|
+
const e4 = this.__$u;
|
|
16977
|
+
if (!(e4 && e4.s !== undefined || 4 & this.__$f))
|
|
16978
|
+
return true;
|
|
16979
|
+
if (3 & this.__$f)
|
|
16980
|
+
return true;
|
|
16981
|
+
for (let t5 in i4)
|
|
16982
|
+
return true;
|
|
16983
|
+
for (let i5 in t4)
|
|
16984
|
+
if (i5 !== "__source" && t4[i5] !== this.props[i5])
|
|
16985
|
+
return true;
|
|
16986
|
+
for (let i5 in this.props)
|
|
16987
|
+
if (!(i5 in t4))
|
|
16988
|
+
return true;
|
|
16989
|
+
return false;
|
|
16990
|
+
};
|
|
16991
|
+
|
|
16992
|
+
// node_modules/preact-router/dist/preact-router.mjs
|
|
16993
|
+
var c5 = function(n3, t4) {
|
|
16994
|
+
for (var r4 in t4)
|
|
16995
|
+
n3[r4] = t4[r4];
|
|
16996
|
+
return n3;
|
|
16997
|
+
};
|
|
16998
|
+
var s4 = function(n3, t4, r4) {
|
|
16999
|
+
var i4, o3 = /(?:\?([^#]*))?(#.*)?$/, e4 = n3.match(o3), u4 = {};
|
|
17000
|
+
if (e4 && e4[1])
|
|
17001
|
+
for (var f4 = e4[1].split("&"), c6 = 0;c6 < f4.length; c6++) {
|
|
17002
|
+
var s5 = f4[c6].split("=");
|
|
17003
|
+
u4[decodeURIComponent(s5[0])] = decodeURIComponent(s5.slice(1).join("="));
|
|
17004
|
+
}
|
|
17005
|
+
n3 = d5(n3.replace(o3, "")), t4 = d5(t4 || "");
|
|
17006
|
+
for (var h4 = Math.max(n3.length, t4.length), v5 = 0;v5 < h4; v5++)
|
|
17007
|
+
if (t4[v5] && t4[v5].charAt(0) === ":") {
|
|
17008
|
+
var l4 = t4[v5].replace(/(^:|[+*?]+$)/g, ""), p5 = (t4[v5].match(/[+*?]+$/) || a5)[0] || "", m3 = ~p5.indexOf("+"), y4 = ~p5.indexOf("*"), U = n3[v5] || "";
|
|
17009
|
+
if (!U && !y4 && (p5.indexOf("?") < 0 || m3)) {
|
|
17010
|
+
i4 = false;
|
|
17011
|
+
break;
|
|
17012
|
+
}
|
|
17013
|
+
if (u4[l4] = decodeURIComponent(U), m3 || y4) {
|
|
17014
|
+
u4[l4] = n3.slice(v5).map(decodeURIComponent).join("/");
|
|
17015
|
+
break;
|
|
17016
|
+
}
|
|
17017
|
+
} else if (t4[v5] !== n3[v5]) {
|
|
17018
|
+
i4 = false;
|
|
17019
|
+
break;
|
|
17020
|
+
}
|
|
17021
|
+
return (r4.default === true || i4 !== false) && u4;
|
|
17022
|
+
};
|
|
17023
|
+
var h4 = function(n3, t4) {
|
|
17024
|
+
return n3.rank < t4.rank ? 1 : n3.rank > t4.rank ? -1 : n3.index - t4.index;
|
|
17025
|
+
};
|
|
17026
|
+
var v5 = function(n3, t4) {
|
|
17027
|
+
return n3.index = t4, n3.rank = function(n4) {
|
|
17028
|
+
return n4.props.default ? 0 : d5(n4.props.path).map(l4).join("");
|
|
17029
|
+
}(n3), n3.props;
|
|
17030
|
+
};
|
|
17031
|
+
var d5 = function(n3) {
|
|
17032
|
+
return n3.replace(/(^\/+|\/+$)/g, "").split("/");
|
|
17033
|
+
};
|
|
17034
|
+
var l4 = function(n3) {
|
|
17035
|
+
return n3.charAt(0) == ":" ? 1 + "*+?".indexOf(n3.charAt(n3.length - 1)) || 4 : 5;
|
|
17036
|
+
};
|
|
17037
|
+
var R = function() {
|
|
17038
|
+
var n3;
|
|
17039
|
+
return "" + ((n3 = U && U.location ? U.location : U && U.getCurrentLocation ? U.getCurrentLocation() : typeof location != "undefined" ? location : p5).pathname || "") + (n3.search || "");
|
|
17040
|
+
};
|
|
17041
|
+
var $2 = function(n3, t4) {
|
|
17042
|
+
return t4 === undefined && (t4 = false), typeof n3 != "string" && n3.url && (t4 = n3.replace, n3 = n3.url), function(n4) {
|
|
17043
|
+
for (var t5 = m3.length;t5--; )
|
|
17044
|
+
if (m3[t5].canRoute(n4))
|
|
17045
|
+
return true;
|
|
17046
|
+
return false;
|
|
17047
|
+
}(n3) && function(n4, t5) {
|
|
17048
|
+
t5 === undefined && (t5 = "push"), U && U[t5] ? U[t5](n4) : typeof history != "undefined" && history[t5 + "State"] && history[t5 + "State"](null, null, n4);
|
|
17049
|
+
}(n3, t4 ? "replace" : "push"), I2(n3);
|
|
17050
|
+
};
|
|
17051
|
+
var I2 = function(n3) {
|
|
17052
|
+
for (var t4 = false, r4 = 0;r4 < m3.length; r4++)
|
|
17053
|
+
m3[r4].routeTo(n3) && (t4 = true);
|
|
17054
|
+
return t4;
|
|
17055
|
+
};
|
|
17056
|
+
var M2 = function(n3) {
|
|
17057
|
+
if (n3 && n3.getAttribute) {
|
|
17058
|
+
var t4 = n3.getAttribute("href"), r4 = n3.getAttribute("target");
|
|
17059
|
+
if (t4 && t4.match(/^\//g) && (!r4 || r4.match(/^_?self$/i)))
|
|
17060
|
+
return $2(t4);
|
|
17061
|
+
}
|
|
17062
|
+
};
|
|
17063
|
+
var b3 = function(n3) {
|
|
17064
|
+
return n3.stopImmediatePropagation && n3.stopImmediatePropagation(), n3.stopPropagation && n3.stopPropagation(), n3.preventDefault(), false;
|
|
17065
|
+
};
|
|
17066
|
+
var W = function(n3) {
|
|
17067
|
+
if (!(n3.ctrlKey || n3.metaKey || n3.altKey || n3.shiftKey || n3.button)) {
|
|
17068
|
+
var t4 = n3.target;
|
|
17069
|
+
do {
|
|
17070
|
+
if (t4.localName === "a" && t4.getAttribute("href")) {
|
|
17071
|
+
if (t4.hasAttribute("data-native") || t4.hasAttribute("native"))
|
|
17072
|
+
return;
|
|
17073
|
+
if (M2(t4))
|
|
17074
|
+
return b3(n3);
|
|
17075
|
+
}
|
|
17076
|
+
} while (t4 = t4.parentNode);
|
|
17077
|
+
}
|
|
17078
|
+
};
|
|
17079
|
+
var D3 = function(n3) {
|
|
17080
|
+
n3.history && (U = n3.history), this.state = { url: n3.url || R() };
|
|
17081
|
+
};
|
|
17082
|
+
var a5 = {};
|
|
17083
|
+
var p5 = {};
|
|
17084
|
+
var m3 = [];
|
|
17085
|
+
var y4 = [];
|
|
17086
|
+
var U = null;
|
|
17087
|
+
var g4 = { url: R() };
|
|
17088
|
+
var k3 = G(g4);
|
|
17089
|
+
var w4 = false;
|
|
17090
|
+
c5(D3.prototype = new b, { shouldComponentUpdate: function(n3) {
|
|
17091
|
+
return n3.static !== true || n3.url !== this.props.url || n3.onChange !== this.props.onChange;
|
|
17092
|
+
}, canRoute: function(n3) {
|
|
17093
|
+
var t4 = H(this.props.children);
|
|
17094
|
+
return this.g(t4, n3) !== undefined;
|
|
17095
|
+
}, routeTo: function(n3) {
|
|
17096
|
+
this.setState({ url: n3 });
|
|
17097
|
+
var t4 = this.canRoute(n3);
|
|
17098
|
+
return this.p || this.forceUpdate(), t4;
|
|
17099
|
+
}, componentWillMount: function() {
|
|
17100
|
+
this.p = true;
|
|
17101
|
+
}, componentDidMount: function() {
|
|
17102
|
+
var n3 = this;
|
|
17103
|
+
w4 || (w4 = true, U || addEventListener("popstate", function() {
|
|
17104
|
+
I2(R());
|
|
17105
|
+
}), addEventListener("click", W)), m3.push(this), U && (this.u = U.listen(function(t4) {
|
|
17106
|
+
var r4 = t4.location || t4;
|
|
17107
|
+
n3.routeTo("" + (r4.pathname || "") + (r4.search || ""));
|
|
17108
|
+
})), this.p = false;
|
|
17109
|
+
}, componentWillUnmount: function() {
|
|
17110
|
+
typeof this.u == "function" && this.u(), m3.splice(m3.indexOf(this), 1);
|
|
17111
|
+
}, componentWillUpdate: function() {
|
|
17112
|
+
this.p = true;
|
|
17113
|
+
}, componentDidUpdate: function() {
|
|
17114
|
+
this.p = false;
|
|
17115
|
+
}, g: function(n3, t4) {
|
|
17116
|
+
n3 = n3.filter(v5).sort(h4);
|
|
17117
|
+
for (var r4 = 0;r4 < n3.length; r4++) {
|
|
17118
|
+
var i4 = n3[r4], o3 = s4(t4, i4.props.path, i4.props);
|
|
17119
|
+
if (o3)
|
|
17120
|
+
return [i4, o3];
|
|
17121
|
+
}
|
|
17122
|
+
}, render: function(n3, t4) {
|
|
17123
|
+
var e4, u4, f4 = n3.onChange, a6 = t4.url, s5 = this.c, h5 = this.g(H(n3.children), a6);
|
|
17124
|
+
if (h5 && (u4 = E(h5[0], c5(c5({ url: a6, matches: e4 = h5[1] }, e4), { key: undefined, ref: undefined }))), a6 !== (s5 && s5.url)) {
|
|
17125
|
+
c5(g4, s5 = this.c = { url: a6, previous: s5 && s5.url, current: u4, path: u4 ? u4.props.path : null, matches: e4 }), s5.router = this, s5.active = u4 ? [u4] : [];
|
|
17126
|
+
for (var v6 = y4.length;v6--; )
|
|
17127
|
+
y4[v6]({});
|
|
17128
|
+
typeof f4 == "function" && f4(s5);
|
|
17129
|
+
}
|
|
17130
|
+
return _(k3.Provider, { value: s5 }, u4);
|
|
17131
|
+
} });
|
|
17132
|
+
|
|
17133
|
+
// src/service/s_api.ts
|
|
17134
|
+
var rethrow = function(e4, code, message) {
|
|
17135
|
+
if (e4 && e4.code !== null && e4.message !== null)
|
|
17136
|
+
throw e4;
|
|
17137
|
+
throw { code, message, data: e4 };
|
|
17138
|
+
};
|
|
17139
|
+
function ifApiError(e4) {
|
|
17140
|
+
if (e4 && e4.code !== null && e4.message !== null)
|
|
17141
|
+
return e4;
|
|
17142
|
+
return null;
|
|
17143
|
+
}
|
|
17144
|
+
var _noArgs = {};
|
|
17145
|
+
|
|
17146
|
+
class ApiService {
|
|
17147
|
+
apiURL;
|
|
17148
|
+
static _i = null;
|
|
17149
|
+
static get i() {
|
|
17150
|
+
if (!ApiService._i)
|
|
17151
|
+
throw "ApiService not initialized. Call ApiService.init(apiURL)";
|
|
17152
|
+
return ApiService._i;
|
|
17153
|
+
}
|
|
17154
|
+
constructor(apiURL) {
|
|
17155
|
+
this.apiURL = apiURL;
|
|
17156
|
+
}
|
|
17157
|
+
static init(apiURL) {
|
|
17158
|
+
if (ApiService._i)
|
|
17159
|
+
throw "ApiService already initialized";
|
|
17160
|
+
ApiService._i = new ApiService(apiURL);
|
|
17161
|
+
}
|
|
17162
|
+
async _fetch(p6, method, { path, query, body }) {
|
|
17163
|
+
try {
|
|
17164
|
+
p6 = path ? p6.replace(/:([a-zA-Z0-9_]+)/g, (m4, p1) => {
|
|
17165
|
+
const v6 = path[p1];
|
|
17166
|
+
if (v6 === undefined)
|
|
17167
|
+
throw { code: 400, message: `missing parameter ${p1}` };
|
|
17168
|
+
return v6?.toString() ?? "";
|
|
17169
|
+
}) : p6;
|
|
17170
|
+
const queryStr = query != null ? "?" + new URLSearchParams(query).toString() : "";
|
|
17171
|
+
const response = await fetch(this.apiURL + p6 + queryStr, {
|
|
17172
|
+
method,
|
|
17173
|
+
credentials: "include",
|
|
17174
|
+
headers: { "Content-Type": "application/json" },
|
|
17175
|
+
body: body ? JSON.stringify(body) : undefined
|
|
17176
|
+
});
|
|
17177
|
+
if (response.ok) {
|
|
17178
|
+
try {
|
|
17179
|
+
return await response.json();
|
|
17180
|
+
} catch (e4) {
|
|
17181
|
+
return null;
|
|
17182
|
+
}
|
|
17183
|
+
}
|
|
17184
|
+
let data = null;
|
|
17185
|
+
try {
|
|
17186
|
+
data = await response.clone().json();
|
|
17187
|
+
} catch (e4) {
|
|
17188
|
+
data = await response.text();
|
|
17189
|
+
}
|
|
17190
|
+
throw {
|
|
17191
|
+
code: response.status,
|
|
17192
|
+
message: data.message ?? "undefined error",
|
|
17193
|
+
data
|
|
17194
|
+
};
|
|
17195
|
+
} catch (e4) {
|
|
17196
|
+
rethrow(e4, 0, "unknown error");
|
|
17197
|
+
}
|
|
17198
|
+
}
|
|
17199
|
+
async get(path, args) {
|
|
17200
|
+
return this._fetch(path, "GET", args || _noArgs);
|
|
17201
|
+
}
|
|
17202
|
+
async post(path, args) {
|
|
17203
|
+
return this._fetch(path, "POST", args || _noArgs);
|
|
17204
|
+
}
|
|
17205
|
+
async delete(path, args) {
|
|
17206
|
+
return this._fetch(path, "DELETE", args || _noArgs);
|
|
17207
|
+
}
|
|
17208
|
+
}
|
|
17209
|
+
|
|
17210
|
+
// src/ui/components/error_view.tsx
|
|
17211
|
+
function ErrorView({
|
|
17212
|
+
error,
|
|
17213
|
+
retry,
|
|
17214
|
+
debug
|
|
17215
|
+
}) {
|
|
17216
|
+
const apiError = ifApiError(error) ?? {
|
|
17217
|
+
code: 0,
|
|
17218
|
+
message: "unknown error",
|
|
17219
|
+
data: error
|
|
17220
|
+
};
|
|
17221
|
+
return !debug ? u4(PrettyErrorView, {
|
|
17222
|
+
apiError,
|
|
17223
|
+
retry
|
|
17224
|
+
}, undefined, false, undefined, this) : u4("div", {
|
|
17225
|
+
class: "column padded card inverse cross-stretch",
|
|
17226
|
+
children: [
|
|
17227
|
+
u4("h3", {
|
|
17228
|
+
style: "margin: 0",
|
|
17229
|
+
children: [
|
|
17230
|
+
"ERROR: ",
|
|
17231
|
+
apiError.code
|
|
17232
|
+
]
|
|
17233
|
+
}, undefined, true, undefined, this),
|
|
17234
|
+
u4("p", {
|
|
17235
|
+
children: apiError.message
|
|
17236
|
+
}, undefined, false, undefined, this),
|
|
17237
|
+
u4("pre", {
|
|
17238
|
+
children: JSON.stringify(apiError.data, null, 2)
|
|
17239
|
+
}, undefined, false, undefined, this)
|
|
17240
|
+
]
|
|
17241
|
+
}, undefined, true, undefined, this);
|
|
17242
|
+
}
|
|
17243
|
+
function PrettyErrorView({
|
|
17244
|
+
apiError,
|
|
17245
|
+
retry,
|
|
17246
|
+
labels = {
|
|
17247
|
+
retry: "retry",
|
|
17248
|
+
home: "go home",
|
|
17249
|
+
details: "error details"
|
|
17250
|
+
}
|
|
17251
|
+
}) {
|
|
17252
|
+
const openSig = useSignal(false);
|
|
17253
|
+
return u4("div", {
|
|
17254
|
+
class: "column padded cross-center",
|
|
17255
|
+
style: "margin: 1rem 0",
|
|
17256
|
+
children: [
|
|
17257
|
+
u4(Icons.OctagonAlert, {}, undefined, false, undefined, this),
|
|
17258
|
+
u4("h3", {
|
|
17259
|
+
style: "margin: 0",
|
|
17260
|
+
children: apiError.code
|
|
17261
|
+
}, undefined, false, undefined, this),
|
|
17262
|
+
u4("span", {
|
|
17263
|
+
class: "pointer",
|
|
17264
|
+
onClick: () => openSig.value = true,
|
|
17265
|
+
children: apiError.message
|
|
17266
|
+
}, undefined, false, undefined, this),
|
|
17267
|
+
retry && u4("button", {
|
|
17268
|
+
class: "action",
|
|
17269
|
+
onClick: () => retry(),
|
|
17270
|
+
children: [
|
|
17271
|
+
u4(Icons.RotateCcw, {}, undefined, false, undefined, this),
|
|
17272
|
+
" ",
|
|
17273
|
+
labels.retry ?? "retry"
|
|
17274
|
+
]
|
|
17275
|
+
}, undefined, true, undefined, this),
|
|
17276
|
+
apiError.code === 404 && u4("button", {
|
|
17277
|
+
class: "action",
|
|
17278
|
+
onClick: () => $2("/"),
|
|
17279
|
+
children: [
|
|
17280
|
+
u4(Icons.House, {}, undefined, false, undefined, this),
|
|
17281
|
+
labels.home ?? "go home"
|
|
17282
|
+
]
|
|
17283
|
+
}, undefined, true, undefined, this),
|
|
17284
|
+
u4(ElbeDialog, {
|
|
17285
|
+
title: labels.details ?? "error details",
|
|
17286
|
+
open: openSig.value,
|
|
17287
|
+
onClose: () => openSig.value = false,
|
|
17288
|
+
children: u4("pre", {
|
|
17289
|
+
class: "card inverse",
|
|
17290
|
+
children: JSON.stringify(apiError.data, null, 2)
|
|
17291
|
+
}, undefined, false, undefined, this)
|
|
17292
|
+
}, undefined, false, undefined, this)
|
|
17293
|
+
]
|
|
17294
|
+
}, undefined, true, undefined, this);
|
|
17295
|
+
}
|
|
17296
|
+
// node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
|
|
17297
|
+
var u4 = function(e4, t4, n3, o3, i4, u5) {
|
|
17298
|
+
t4 || (t4 = {});
|
|
17299
|
+
var a6, c6, p6 = t4;
|
|
17300
|
+
if ("ref" in p6)
|
|
17301
|
+
for (c6 in p6 = {}, t4)
|
|
17302
|
+
c6 == "ref" ? a6 = t4[c6] : p6[c6] = t4[c6];
|
|
17303
|
+
var l5 = { type: e4, props: p6, key: n3, ref: a6, __k: null, __: null, __b: 0, __e: null, __d: undefined, __c: null, constructor: undefined, __v: --f4, __i: -1, __u: 0, __source: i4, __self: u5 };
|
|
17304
|
+
if (typeof e4 == "function" && (a6 = e4.defaultProps))
|
|
17305
|
+
for (c6 in a6)
|
|
17306
|
+
p6[c6] === undefined && (p6[c6] = a6[c6]);
|
|
17307
|
+
return l.vnode && l.vnode(l5), l5;
|
|
17308
|
+
};
|
|
17309
|
+
var f4 = 0;
|
|
17310
|
+
var i4 = Array.isArray;
|
|
17311
|
+
|
|
17312
|
+
// src/ui/components/spinner.tsx
|
|
17313
|
+
function Spinner({ padding = 2 }) {
|
|
17314
|
+
return u4("div", {
|
|
17315
|
+
style: { padding: `${padding}rem` },
|
|
17316
|
+
class: "centered",
|
|
17317
|
+
children: u4("div", {
|
|
17318
|
+
class: "rotate-box",
|
|
17319
|
+
children: u4(Icons.LoaderCircle, {}, undefined, false, undefined, this)
|
|
17320
|
+
}, undefined, false, undefined, this)
|
|
17321
|
+
}, undefined, false, undefined, this);
|
|
17322
|
+
}
|
|
17323
|
+
|
|
17324
|
+
// src/bit/bit.tsx
|
|
17325
|
+
function makeBit(name) {
|
|
17326
|
+
const c6 = G(null);
|
|
17327
|
+
c6.displayName = name;
|
|
17328
|
+
return c6;
|
|
17329
|
+
}
|
|
17330
|
+
function ProvideBit(context, parameters, worker, ctrl, children) {
|
|
17331
|
+
const s5 = useSignal({ loading: true });
|
|
17332
|
+
const _set = (n3) => {
|
|
17333
|
+
try {
|
|
17334
|
+
if (JSON.stringify(n3) === JSON.stringify(s5.peek()))
|
|
17335
|
+
return;
|
|
17336
|
+
} catch (e4) {
|
|
17337
|
+
}
|
|
17338
|
+
s5.value = n3;
|
|
17339
|
+
};
|
|
17340
|
+
const emit = (data) => _set({ data });
|
|
17341
|
+
const emitLoading = () => _set({ loading: true });
|
|
17342
|
+
const emitError = (error) => {
|
|
17343
|
+
console.warn(`BIT: ${context.displayName} emitted ERROR`, error);
|
|
17344
|
+
return _set({ error });
|
|
17345
|
+
};
|
|
17346
|
+
function map(m4) {
|
|
17347
|
+
const st = s5.value;
|
|
17348
|
+
if (st.loading)
|
|
17349
|
+
return m4.onLoading();
|
|
17350
|
+
if (st.error)
|
|
17351
|
+
return m4.onError(st.error);
|
|
17352
|
+
return m4.onData(st.data ?? null);
|
|
17353
|
+
}
|
|
17354
|
+
const c6 = ctrl(parameters, { emit, emitLoading, emitError, map, signal: s5 });
|
|
17355
|
+
worker(parameters, { emit, emitLoading, emitError, map, signal: s5 }, c6);
|
|
17356
|
+
return u4(context.Provider, {
|
|
17357
|
+
value: { ctrl: c6, state: s5 },
|
|
17358
|
+
children
|
|
17359
|
+
}, undefined, false, undefined, this);
|
|
17360
|
+
}
|
|
17361
|
+
function useBit(context) {
|
|
17362
|
+
try {
|
|
17363
|
+
let map = function(m4) {
|
|
17364
|
+
if (v6.loading)
|
|
17365
|
+
return (m4.onLoading || (() => u4(Spinner, {}, undefined, false, undefined, this)))();
|
|
17366
|
+
if (v6.error)
|
|
17367
|
+
return (m4.onError || ((e4) => u4(ErrorView, {
|
|
17368
|
+
error: e4,
|
|
17369
|
+
retry: ctrl.reload ?? null
|
|
17370
|
+
}, undefined, false, undefined, this)))(v6.error);
|
|
17371
|
+
return m4.onData(v6.data ?? null);
|
|
17372
|
+
};
|
|
17373
|
+
const { ctrl, state } = x2(context);
|
|
17374
|
+
const v6 = state.value;
|
|
17375
|
+
return {
|
|
17376
|
+
signal: state,
|
|
17377
|
+
ctrl,
|
|
17378
|
+
map,
|
|
17379
|
+
onData: (f5) => map({ onData: f5 })
|
|
17380
|
+
};
|
|
17381
|
+
} catch (e4) {
|
|
17382
|
+
const err = `BIT ERROR: NO ${context.displayName} PROVIDED`;
|
|
17383
|
+
console.error(err, e4);
|
|
17384
|
+
return {
|
|
17385
|
+
map: (_4) => u4("div", {
|
|
17386
|
+
children: err
|
|
17387
|
+
}, undefined, false, undefined, this),
|
|
17388
|
+
ctrl: null,
|
|
17389
|
+
signal: null,
|
|
17390
|
+
onData: () => u4("div", {
|
|
17391
|
+
children: err
|
|
17392
|
+
}, undefined, false, undefined, this)
|
|
17393
|
+
};
|
|
17394
|
+
}
|
|
17395
|
+
}
|
|
17396
|
+
// src/bit/ctrl_bit.tsx
|
|
17397
|
+
var make = function(name) {
|
|
17398
|
+
return makeBit(name);
|
|
17399
|
+
};
|
|
17400
|
+
var use = function(b4) {
|
|
17401
|
+
return useBit(b4);
|
|
17402
|
+
};
|
|
17403
|
+
function CtrlBit(ctrl, name) {
|
|
17404
|
+
const context = make((name || "Unknown") + "Bit");
|
|
17405
|
+
function Provide({ children, ...p6 }) {
|
|
17406
|
+
return ProvideBit(context, p6, async (p7, b4, c6) => {
|
|
17407
|
+
b4.emitLoading();
|
|
17408
|
+
try {
|
|
17409
|
+
if (c6 instanceof WorkerControl) {
|
|
17410
|
+
if (c6.reload)
|
|
17411
|
+
await c6.reload();
|
|
17412
|
+
}
|
|
17413
|
+
if (c6 instanceof StreamControl) {
|
|
17414
|
+
c6.stream = c6.listen();
|
|
17415
|
+
}
|
|
17416
|
+
} catch (e4) {
|
|
17417
|
+
b4.emitError(e4);
|
|
17418
|
+
}
|
|
17419
|
+
}, (p7, b4) => {
|
|
17420
|
+
const c6 = ctrl(p7, b4);
|
|
17421
|
+
y2(() => () => c6.dispose(), []);
|
|
17422
|
+
if (c6 instanceof WorkerControl) {
|
|
17423
|
+
c6.reload = async () => {
|
|
17424
|
+
b4.emitLoading();
|
|
17425
|
+
try {
|
|
17426
|
+
b4.emit(await c6.worker());
|
|
17427
|
+
} catch (e4) {
|
|
17428
|
+
b4.emitError(e4);
|
|
17429
|
+
}
|
|
17430
|
+
};
|
|
17431
|
+
}
|
|
17432
|
+
return c6;
|
|
17433
|
+
}, children);
|
|
17434
|
+
}
|
|
17435
|
+
return { Provide, use: () => use(context) };
|
|
17436
|
+
}
|
|
17437
|
+
|
|
17438
|
+
class BitControl {
|
|
17439
|
+
p;
|
|
17440
|
+
bit;
|
|
17441
|
+
constructor(p6, bit2) {
|
|
17442
|
+
this.bit = bit2;
|
|
17443
|
+
this.p = p6;
|
|
17444
|
+
}
|
|
17445
|
+
act(fn) {
|
|
17446
|
+
this.bit.map({
|
|
17447
|
+
onData: async (d6) => {
|
|
17448
|
+
try {
|
|
17449
|
+
await fn(d6);
|
|
17450
|
+
} catch (e4) {
|
|
17451
|
+
if (e4 && e4.code && e4.message)
|
|
17452
|
+
console.error(`[BitERROR] act: ${e4.code} (${e4.message})`);
|
|
17453
|
+
else
|
|
17454
|
+
console.error("[BitERROR] act: ", e4);
|
|
17455
|
+
}
|
|
17456
|
+
}
|
|
17457
|
+
});
|
|
17458
|
+
}
|
|
17459
|
+
dispose() {
|
|
17460
|
+
}
|
|
17461
|
+
}
|
|
17462
|
+
|
|
17463
|
+
class WorkerControl extends BitControl {
|
|
17464
|
+
constructor() {
|
|
17465
|
+
super(...arguments);
|
|
17466
|
+
}
|
|
17467
|
+
reload = null;
|
|
17468
|
+
}
|
|
17469
|
+
|
|
17470
|
+
class StreamControl extends BitControl {
|
|
17471
|
+
constructor() {
|
|
17472
|
+
super(...arguments);
|
|
17473
|
+
}
|
|
17474
|
+
stream = null;
|
|
17475
|
+
dispose() {
|
|
17476
|
+
if (this.stream)
|
|
17477
|
+
this.disposeStream(this.stream);
|
|
17478
|
+
}
|
|
17479
|
+
}
|
|
16439
17480
|
// node_modules/preact/compat/dist/compat.mjs
|
|
16440
|
-
var
|
|
16441
|
-
for (var
|
|
16442
|
-
|
|
16443
|
-
return
|
|
17481
|
+
var g5 = function(n3, t4) {
|
|
17482
|
+
for (var e4 in t4)
|
|
17483
|
+
n3[e4] = t4[e4];
|
|
17484
|
+
return n3;
|
|
16444
17485
|
};
|
|
16445
|
-
var
|
|
16446
|
-
for (var
|
|
16447
|
-
if (
|
|
17486
|
+
var E3 = function(n3, t4) {
|
|
17487
|
+
for (var e4 in n3)
|
|
17488
|
+
if (e4 !== "__source" && !(e4 in t4))
|
|
16448
17489
|
return true;
|
|
16449
|
-
for (var
|
|
16450
|
-
if (
|
|
17490
|
+
for (var r4 in t4)
|
|
17491
|
+
if (r4 !== "__source" && n3[r4] !== t4[r4])
|
|
16451
17492
|
return true;
|
|
16452
17493
|
return false;
|
|
16453
17494
|
};
|
|
16454
|
-
var C3 = function(
|
|
16455
|
-
this.props =
|
|
17495
|
+
var C3 = function(n3, t4) {
|
|
17496
|
+
this.props = n3, this.context = t4;
|
|
16456
17497
|
};
|
|
16457
|
-
var x3 = function(
|
|
16458
|
-
function
|
|
16459
|
-
var
|
|
16460
|
-
return !
|
|
17498
|
+
var x3 = function(n3, e4) {
|
|
17499
|
+
function r4(n4) {
|
|
17500
|
+
var t4 = this.props.ref, r5 = t4 == n4.ref;
|
|
17501
|
+
return !r5 && t4 && (t4.call ? t4(null) : t4.current = null), e4 ? !e4(this.props, n4) || !r5 : E3(this.props, n4);
|
|
16461
17502
|
}
|
|
16462
|
-
function
|
|
16463
|
-
return this.shouldComponentUpdate =
|
|
17503
|
+
function u5(e5) {
|
|
17504
|
+
return this.shouldComponentUpdate = r4, _(n3, e5);
|
|
16464
17505
|
}
|
|
16465
|
-
return
|
|
17506
|
+
return u5.displayName = "Memo(" + (n3.displayName || n3.name) + ")", u5.prototype.isReactComponent = true, u5.__f = true, u5;
|
|
16466
17507
|
};
|
|
16467
|
-
var
|
|
16468
|
-
function
|
|
16469
|
-
var
|
|
16470
|
-
return delete
|
|
17508
|
+
var k4 = function(n3) {
|
|
17509
|
+
function t4(t5) {
|
|
17510
|
+
var e4 = g5({}, t5);
|
|
17511
|
+
return delete e4.ref, n3(e4, t5.ref || null);
|
|
16471
17512
|
}
|
|
16472
|
-
return
|
|
17513
|
+
return t4.$$typeof = w5, t4.render = t4, t4.prototype.isReactComponent = t4.__f = true, t4.displayName = "ForwardRef(" + (n3.displayName || n3.name) + ")", t4;
|
|
16473
17514
|
};
|
|
16474
|
-
var A3 = function(
|
|
16475
|
-
return
|
|
16476
|
-
typeof
|
|
16477
|
-
}),
|
|
16478
|
-
return A3(
|
|
16479
|
-
})),
|
|
17515
|
+
var A3 = function(n3, t4, e4) {
|
|
17516
|
+
return n3 && (n3.__c && n3.__c.__H && (n3.__c.__H.__.forEach(function(n4) {
|
|
17517
|
+
typeof n4.__c == "function" && n4.__c();
|
|
17518
|
+
}), n3.__c.__H = null), (n3 = g5({}, n3)).__c != null && (n3.__c.__P === e4 && (n3.__c.__P = t4), n3.__c = null), n3.__k = n3.__k && n3.__k.map(function(n4) {
|
|
17519
|
+
return A3(n4, t4, e4);
|
|
17520
|
+
})), n3;
|
|
16480
17521
|
};
|
|
16481
|
-
var
|
|
16482
|
-
return
|
|
16483
|
-
return
|
|
16484
|
-
}),
|
|
17522
|
+
var D4 = function(n3, t4, e4) {
|
|
17523
|
+
return n3 && e4 && (n3.__v = null, n3.__k = n3.__k && n3.__k.map(function(n4) {
|
|
17524
|
+
return D4(n4, t4, e4);
|
|
17525
|
+
}), n3.__c && n3.__c.__P === t4 && (n3.__e && e4.appendChild(n3.__e), n3.__c.__e = true, n3.__c.__P = e4)), n3;
|
|
16485
17526
|
};
|
|
16486
17527
|
var L2 = function() {
|
|
16487
17528
|
this.__u = 0, this.t = null, this.__b = null;
|
|
16488
17529
|
};
|
|
16489
|
-
var O2 = function(
|
|
16490
|
-
var
|
|
16491
|
-
return
|
|
17530
|
+
var O2 = function(n3) {
|
|
17531
|
+
var t4 = n3.__.__c;
|
|
17532
|
+
return t4 && t4.__a && t4.__a(n3);
|
|
16492
17533
|
};
|
|
16493
|
-
var F3 = function(
|
|
16494
|
-
var
|
|
17534
|
+
var F3 = function(n3) {
|
|
17535
|
+
var e4, r4, u5;
|
|
16495
17536
|
function o3(o4) {
|
|
16496
|
-
if (
|
|
16497
|
-
|
|
16498
|
-
}, function(
|
|
16499
|
-
|
|
16500
|
-
}),
|
|
16501
|
-
throw
|
|
16502
|
-
if (!
|
|
16503
|
-
throw
|
|
16504
|
-
return _(
|
|
17537
|
+
if (e4 || (e4 = n3()).then(function(n4) {
|
|
17538
|
+
r4 = n4.default || n4;
|
|
17539
|
+
}, function(n4) {
|
|
17540
|
+
u5 = n4;
|
|
17541
|
+
}), u5)
|
|
17542
|
+
throw u5;
|
|
17543
|
+
if (!r4)
|
|
17544
|
+
throw e4;
|
|
17545
|
+
return _(r4, o4);
|
|
16505
17546
|
}
|
|
16506
17547
|
return o3.displayName = "Lazy", o3.__f = true, o3;
|
|
16507
17548
|
};
|
|
16508
|
-
var
|
|
17549
|
+
var U2 = function() {
|
|
16509
17550
|
this.u = null, this.o = null;
|
|
16510
17551
|
};
|
|
16511
|
-
var
|
|
17552
|
+
var W2 = function(n3) {
|
|
16512
17553
|
return this.getChildContext = function() {
|
|
16513
|
-
return
|
|
16514
|
-
},
|
|
17554
|
+
return n3.context;
|
|
17555
|
+
}, n3.children;
|
|
16515
17556
|
};
|
|
16516
|
-
var P3 = function(
|
|
16517
|
-
var
|
|
16518
|
-
|
|
16519
|
-
B(null,
|
|
16520
|
-
},
|
|
17557
|
+
var P3 = function(n3) {
|
|
17558
|
+
var e4 = this, r4 = n3.i;
|
|
17559
|
+
e4.componentWillUnmount = function() {
|
|
17560
|
+
B(null, e4.l), e4.l = null, e4.i = null;
|
|
17561
|
+
}, e4.i && e4.i !== r4 && e4.componentWillUnmount(), e4.l || (e4.i = r4, e4.l = { nodeType: 1, parentNode: r4, childNodes: [], contains: function() {
|
|
16521
17562
|
return true;
|
|
16522
|
-
}, appendChild: function(
|
|
16523
|
-
this.childNodes.push(
|
|
16524
|
-
}, insertBefore: function(
|
|
16525
|
-
this.childNodes.push(
|
|
16526
|
-
}, removeChild: function(
|
|
16527
|
-
this.childNodes.splice(this.childNodes.indexOf(
|
|
16528
|
-
} }), B(_(
|
|
17563
|
+
}, appendChild: function(n4) {
|
|
17564
|
+
this.childNodes.push(n4), e4.i.appendChild(n4);
|
|
17565
|
+
}, insertBefore: function(n4, t4) {
|
|
17566
|
+
this.childNodes.push(n4), e4.i.appendChild(n4);
|
|
17567
|
+
}, removeChild: function(n4) {
|
|
17568
|
+
this.childNodes.splice(this.childNodes.indexOf(n4) >>> 1, 1), e4.i.removeChild(n4);
|
|
17569
|
+
} }), B(_(W2, { context: e4.context }, n3.__v), e4.l);
|
|
16529
17570
|
};
|
|
16530
|
-
var j3 = function(
|
|
16531
|
-
var
|
|
16532
|
-
return
|
|
17571
|
+
var j3 = function(n3, e4) {
|
|
17572
|
+
var r4 = _(P3, { __v: n3, i: e4 });
|
|
17573
|
+
return r4.containerInfo = e4, r4;
|
|
16533
17574
|
};
|
|
16534
|
-
var q3 = function(
|
|
16535
|
-
return
|
|
17575
|
+
var q3 = function(n3, t4, e4) {
|
|
17576
|
+
return t4.__k == null && (t4.textContent = ""), B(n3, t4), typeof e4 == "function" && e4(), n3 ? n3.__c : null;
|
|
16536
17577
|
};
|
|
16537
|
-
var G2 = function(
|
|
16538
|
-
return D(
|
|
17578
|
+
var G2 = function(n3, t4, e4) {
|
|
17579
|
+
return D(n3, t4), typeof e4 == "function" && e4(), n3 ? n3.__c : null;
|
|
16539
17580
|
};
|
|
16540
17581
|
var K = function() {
|
|
16541
17582
|
};
|
|
@@ -16545,148 +17586,148 @@ var Q = function() {
|
|
|
16545
17586
|
var X2 = function() {
|
|
16546
17587
|
return this.defaultPrevented;
|
|
16547
17588
|
};
|
|
16548
|
-
var ln = function(
|
|
16549
|
-
return _.bind(null,
|
|
17589
|
+
var ln = function(n3) {
|
|
17590
|
+
return _.bind(null, n3);
|
|
16550
17591
|
};
|
|
16551
|
-
var fn = function(
|
|
16552
|
-
return !!
|
|
17592
|
+
var fn = function(n3) {
|
|
17593
|
+
return !!n3 && n3.$$typeof === z3;
|
|
16553
17594
|
};
|
|
16554
|
-
var an = function(
|
|
16555
|
-
return fn(
|
|
17595
|
+
var an = function(n3) {
|
|
17596
|
+
return fn(n3) && n3.type === k;
|
|
16556
17597
|
};
|
|
16557
|
-
var sn = function(
|
|
16558
|
-
return !!
|
|
17598
|
+
var sn = function(n3) {
|
|
17599
|
+
return !!n3 && !!n3.displayName && (typeof n3.displayName == "string" || n3.displayName instanceof String) && n3.displayName.startsWith("Memo(");
|
|
16559
17600
|
};
|
|
16560
|
-
var hn = function(
|
|
16561
|
-
return fn(
|
|
17601
|
+
var hn = function(n3) {
|
|
17602
|
+
return fn(n3) ? E.apply(null, arguments) : n3;
|
|
16562
17603
|
};
|
|
16563
|
-
var vn = function(
|
|
16564
|
-
return !!
|
|
17604
|
+
var vn = function(n3) {
|
|
17605
|
+
return !!n3.__k && (B(null, n3), true);
|
|
16565
17606
|
};
|
|
16566
|
-
var dn = function(
|
|
16567
|
-
return
|
|
17607
|
+
var dn = function(n3) {
|
|
17608
|
+
return n3 && (n3.base || n3.nodeType === 1 && n3) || null;
|
|
16568
17609
|
};
|
|
16569
|
-
var _n = function(
|
|
16570
|
-
|
|
17610
|
+
var _n = function(n3) {
|
|
17611
|
+
n3();
|
|
16571
17612
|
};
|
|
16572
|
-
var bn = function(
|
|
16573
|
-
return
|
|
17613
|
+
var bn = function(n3) {
|
|
17614
|
+
return n3;
|
|
16574
17615
|
};
|
|
16575
17616
|
var Sn = function() {
|
|
16576
17617
|
return [false, _n];
|
|
16577
17618
|
};
|
|
16578
|
-
var Cn = function(
|
|
16579
|
-
var
|
|
17619
|
+
var Cn = function(n3, t4) {
|
|
17620
|
+
var e4 = t4(), r4 = h2({ h: { __: e4, v: t4 } }), u5 = r4[0].h, o3 = r4[1];
|
|
16580
17621
|
return _2(function() {
|
|
16581
|
-
|
|
16582
|
-
}, [
|
|
16583
|
-
return xn(
|
|
16584
|
-
xn(
|
|
17622
|
+
u5.__ = e4, u5.v = t4, xn(u5) && o3({ h: u5 });
|
|
17623
|
+
}, [n3, e4, t4]), y2(function() {
|
|
17624
|
+
return xn(u5) && o3({ h: u5 }), n3(function() {
|
|
17625
|
+
xn(u5) && o3({ h: u5 });
|
|
16585
17626
|
});
|
|
16586
|
-
}, [
|
|
17627
|
+
}, [n3]), e4;
|
|
16587
17628
|
};
|
|
16588
|
-
var xn = function(
|
|
16589
|
-
var
|
|
17629
|
+
var xn = function(n3) {
|
|
17630
|
+
var t4, e4, r4 = n3.v, u5 = n3.__;
|
|
16590
17631
|
try {
|
|
16591
|
-
var o3 =
|
|
16592
|
-
return !((
|
|
16593
|
-
} catch (
|
|
17632
|
+
var o3 = r4();
|
|
17633
|
+
return !((t4 = u5) === (e4 = o3) && (t4 !== 0 || 1 / t4 == 1 / e4) || t4 != t4 && e4 != e4);
|
|
17634
|
+
} catch (n4) {
|
|
16594
17635
|
return true;
|
|
16595
17636
|
}
|
|
16596
17637
|
};
|
|
16597
|
-
(C3.prototype = new b).isPureReactComponent = true, C3.prototype.shouldComponentUpdate = function(
|
|
16598
|
-
return
|
|
17638
|
+
(C3.prototype = new b).isPureReactComponent = true, C3.prototype.shouldComponentUpdate = function(n3, t4) {
|
|
17639
|
+
return E3(this.props, n3) || E3(this.state, t4);
|
|
16599
17640
|
};
|
|
16600
|
-
var
|
|
16601
|
-
l.__b = function(
|
|
16602
|
-
|
|
17641
|
+
var R2 = l.__b;
|
|
17642
|
+
l.__b = function(n3) {
|
|
17643
|
+
n3.type && n3.type.__f && n3.ref && (n3.props.ref = n3.ref, n3.ref = null), R2 && R2(n3);
|
|
16603
17644
|
};
|
|
16604
|
-
var
|
|
16605
|
-
var
|
|
16606
|
-
return
|
|
17645
|
+
var w5 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
17646
|
+
var I3 = function(n3, t4) {
|
|
17647
|
+
return n3 == null ? null : H(H(n3).map(t4));
|
|
16607
17648
|
};
|
|
16608
|
-
var N2 = { map:
|
|
16609
|
-
return
|
|
16610
|
-
}, only: function(
|
|
16611
|
-
var
|
|
16612
|
-
if (
|
|
17649
|
+
var N2 = { map: I3, forEach: I3, count: function(n3) {
|
|
17650
|
+
return n3 ? H(n3).length : 0;
|
|
17651
|
+
}, only: function(n3) {
|
|
17652
|
+
var t4 = H(n3);
|
|
17653
|
+
if (t4.length !== 1)
|
|
16613
17654
|
throw "Children.only";
|
|
16614
|
-
return
|
|
17655
|
+
return t4[0];
|
|
16615
17656
|
}, toArray: H };
|
|
16616
|
-
var
|
|
16617
|
-
l.__e = function(
|
|
16618
|
-
if (
|
|
16619
|
-
for (var
|
|
16620
|
-
if ((
|
|
16621
|
-
return
|
|
17657
|
+
var M3 = l.__e;
|
|
17658
|
+
l.__e = function(n3, t4, e4, r4) {
|
|
17659
|
+
if (n3.then) {
|
|
17660
|
+
for (var u5, o3 = t4;o3 = o3.__; )
|
|
17661
|
+
if ((u5 = o3.__c) && u5.__c)
|
|
17662
|
+
return t4.__e == null && (t4.__e = e4.__e, t4.__k = e4.__k), u5.__c(n3, t4);
|
|
16622
17663
|
}
|
|
16623
|
-
|
|
17664
|
+
M3(n3, t4, e4, r4);
|
|
16624
17665
|
};
|
|
16625
17666
|
var T3 = l.unmount;
|
|
16626
|
-
l.unmount = function(
|
|
16627
|
-
var
|
|
16628
|
-
|
|
16629
|
-
}, (L2.prototype = new b).__c = function(
|
|
16630
|
-
var
|
|
16631
|
-
|
|
16632
|
-
var
|
|
16633
|
-
o3 || (o3 = true,
|
|
17667
|
+
l.unmount = function(n3) {
|
|
17668
|
+
var t4 = n3.__c;
|
|
17669
|
+
t4 && t4.__R && t4.__R(), t4 && 32 & n3.__u && (n3.type = null), T3 && T3(n3);
|
|
17670
|
+
}, (L2.prototype = new b).__c = function(n3, t4) {
|
|
17671
|
+
var e4 = t4.__c, r4 = this;
|
|
17672
|
+
r4.t == null && (r4.t = []), r4.t.push(e4);
|
|
17673
|
+
var u5 = O2(r4.__v), o3 = false, i5 = function() {
|
|
17674
|
+
o3 || (o3 = true, e4.__R = null, u5 ? u5(c6) : c6());
|
|
16634
17675
|
};
|
|
16635
|
-
|
|
16636
|
-
var
|
|
16637
|
-
if (!--
|
|
16638
|
-
if (
|
|
16639
|
-
var
|
|
16640
|
-
|
|
17676
|
+
e4.__R = i5;
|
|
17677
|
+
var c6 = function() {
|
|
17678
|
+
if (!--r4.__u) {
|
|
17679
|
+
if (r4.state.__a) {
|
|
17680
|
+
var n4 = r4.state.__a;
|
|
17681
|
+
r4.__v.__k[0] = D4(n4, n4.__c.__P, n4.__c.__O);
|
|
16641
17682
|
}
|
|
16642
|
-
var
|
|
16643
|
-
for (
|
|
16644
|
-
|
|
17683
|
+
var t5;
|
|
17684
|
+
for (r4.setState({ __a: r4.__b = null });t5 = r4.t.pop(); )
|
|
17685
|
+
t5.forceUpdate();
|
|
16645
17686
|
}
|
|
16646
17687
|
};
|
|
16647
|
-
|
|
17688
|
+
r4.__u++ || 32 & t4.__u || r4.setState({ __a: r4.__b = r4.__v.__k[0] }), n3.then(i5, i5);
|
|
16648
17689
|
}, L2.prototype.componentWillUnmount = function() {
|
|
16649
17690
|
this.t = [];
|
|
16650
|
-
}, L2.prototype.render = function(
|
|
17691
|
+
}, L2.prototype.render = function(n3, e4) {
|
|
16651
17692
|
if (this.__b) {
|
|
16652
17693
|
if (this.__v.__k) {
|
|
16653
|
-
var
|
|
16654
|
-
this.__v.__k[0] = A3(this.__b,
|
|
17694
|
+
var r4 = document.createElement("div"), o3 = this.__v.__k[0].__c;
|
|
17695
|
+
this.__v.__k[0] = A3(this.__b, r4, o3.__O = o3.__P);
|
|
16655
17696
|
}
|
|
16656
17697
|
this.__b = null;
|
|
16657
17698
|
}
|
|
16658
|
-
var
|
|
16659
|
-
return
|
|
17699
|
+
var i5 = e4.__a && _(k, null, n3.fallback);
|
|
17700
|
+
return i5 && (i5.__u &= -33), [_(k, null, e4.__a ? null : n3.children), i5];
|
|
16660
17701
|
};
|
|
16661
|
-
var V2 = function(
|
|
16662
|
-
if (++
|
|
16663
|
-
for (
|
|
16664
|
-
for (;
|
|
16665
|
-
|
|
16666
|
-
if (
|
|
17702
|
+
var V2 = function(n3, t4, e4) {
|
|
17703
|
+
if (++e4[1] === e4[0] && n3.o.delete(t4), n3.props.revealOrder && (n3.props.revealOrder[0] !== "t" || !n3.o.size))
|
|
17704
|
+
for (e4 = n3.u;e4; ) {
|
|
17705
|
+
for (;e4.length > 3; )
|
|
17706
|
+
e4.pop()();
|
|
17707
|
+
if (e4[1] < e4[0])
|
|
16667
17708
|
break;
|
|
16668
|
-
|
|
17709
|
+
n3.u = e4 = e4[2];
|
|
16669
17710
|
}
|
|
16670
17711
|
};
|
|
16671
|
-
(
|
|
16672
|
-
var
|
|
16673
|
-
return
|
|
17712
|
+
(U2.prototype = new b).__a = function(n3) {
|
|
17713
|
+
var t4 = this, e4 = O2(t4.__v), r4 = t4.o.get(n3);
|
|
17714
|
+
return r4[0]++, function(u5) {
|
|
16674
17715
|
var o3 = function() {
|
|
16675
|
-
|
|
17716
|
+
t4.props.revealOrder ? (r4.push(u5), V2(t4, n3, r4)) : u5();
|
|
16676
17717
|
};
|
|
16677
|
-
|
|
17718
|
+
e4 ? e4(o3) : o3();
|
|
16678
17719
|
};
|
|
16679
|
-
},
|
|
17720
|
+
}, U2.prototype.render = function(n3) {
|
|
16680
17721
|
this.u = null, this.o = new Map;
|
|
16681
|
-
var
|
|
16682
|
-
|
|
16683
|
-
for (var
|
|
16684
|
-
this.o.set(
|
|
16685
|
-
return
|
|
16686
|
-
},
|
|
16687
|
-
var
|
|
16688
|
-
this.o.forEach(function(
|
|
16689
|
-
V2(
|
|
17722
|
+
var t4 = H(n3.children);
|
|
17723
|
+
n3.revealOrder && n3.revealOrder[0] === "b" && t4.reverse();
|
|
17724
|
+
for (var e4 = t4.length;e4--; )
|
|
17725
|
+
this.o.set(t4[e4], this.u = [1, 0, this.u]);
|
|
17726
|
+
return n3.children;
|
|
17727
|
+
}, U2.prototype.componentDidUpdate = U2.prototype.componentDidMount = function() {
|
|
17728
|
+
var n3 = this;
|
|
17729
|
+
this.o.forEach(function(t4, e4) {
|
|
17730
|
+
V2(n3, e4, t4);
|
|
16690
17731
|
});
|
|
16691
17732
|
};
|
|
16692
17733
|
var z3 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103;
|
|
@@ -16694,123 +17735,106 @@ var B3 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|
|
|
|
16694
17735
|
var H2 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/;
|
|
16695
17736
|
var Z = /[A-Z0-9]/g;
|
|
16696
17737
|
var Y = typeof document != "undefined";
|
|
16697
|
-
var $
|
|
16698
|
-
return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(
|
|
17738
|
+
var $3 = function(n3) {
|
|
17739
|
+
return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n3);
|
|
16699
17740
|
};
|
|
16700
|
-
b.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(
|
|
16701
|
-
Object.defineProperty(b.prototype,
|
|
16702
|
-
return this["UNSAFE_" +
|
|
16703
|
-
}, set: function(
|
|
16704
|
-
Object.defineProperty(this,
|
|
17741
|
+
b.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t4) {
|
|
17742
|
+
Object.defineProperty(b.prototype, t4, { configurable: true, get: function() {
|
|
17743
|
+
return this["UNSAFE_" + t4];
|
|
17744
|
+
}, set: function(n3) {
|
|
17745
|
+
Object.defineProperty(this, t4, { configurable: true, writable: true, value: n3 });
|
|
16705
17746
|
} });
|
|
16706
17747
|
});
|
|
16707
17748
|
var J = l.event;
|
|
16708
|
-
l.event = function(
|
|
16709
|
-
return J && (
|
|
17749
|
+
l.event = function(n3) {
|
|
17750
|
+
return J && (n3 = J(n3)), n3.persist = K, n3.isPropagationStopped = Q, n3.isDefaultPrevented = X2, n3.nativeEvent = n3;
|
|
16710
17751
|
};
|
|
16711
17752
|
var nn;
|
|
16712
17753
|
var tn = { enumerable: false, configurable: true, get: function() {
|
|
16713
17754
|
return this.class;
|
|
16714
17755
|
} };
|
|
16715
17756
|
var en = l.vnode;
|
|
16716
|
-
l.vnode = function(
|
|
16717
|
-
typeof
|
|
16718
|
-
var { props:
|
|
16719
|
-
for (var
|
|
16720
|
-
var
|
|
16721
|
-
if (!(
|
|
16722
|
-
var
|
|
16723
|
-
|
|
17757
|
+
l.vnode = function(n3) {
|
|
17758
|
+
typeof n3.type == "string" && function(n4) {
|
|
17759
|
+
var { props: t4, type: e4 } = n4, u5 = {}, o3 = e4.indexOf("-") === -1;
|
|
17760
|
+
for (var i5 in t4) {
|
|
17761
|
+
var c6 = t4[i5];
|
|
17762
|
+
if (!(i5 === "value" && ("defaultValue" in t4) && c6 == null || Y && i5 === "children" && e4 === "noscript" || i5 === "class" || i5 === "className")) {
|
|
17763
|
+
var l5 = i5.toLowerCase();
|
|
17764
|
+
i5 === "defaultValue" && "value" in t4 && t4.value == null ? i5 = "value" : i5 === "download" && c6 === true ? c6 = "" : l5 === "translate" && c6 === "no" ? c6 = false : l5[0] === "o" && l5[1] === "n" ? l5 === "ondoubleclick" ? i5 = "ondblclick" : l5 !== "onchange" || e4 !== "input" && e4 !== "textarea" || $3(t4.type) ? l5 === "onfocus" ? i5 = "onfocusin" : l5 === "onblur" ? i5 = "onfocusout" : H2.test(i5) && (i5 = l5) : l5 = i5 = "oninput" : o3 && B3.test(i5) ? i5 = i5.replace(Z, "-$&").toLowerCase() : c6 === null && (c6 = undefined), l5 === "oninput" && u5[i5 = l5] && (i5 = "oninputCapture"), u5[i5] = c6;
|
|
16724
17765
|
}
|
|
16725
17766
|
}
|
|
16726
|
-
|
|
16727
|
-
|
|
16728
|
-
})),
|
|
16729
|
-
|
|
16730
|
-
})),
|
|
16731
|
-
}(
|
|
17767
|
+
e4 == "select" && u5.multiple && Array.isArray(u5.value) && (u5.value = H(t4.children).forEach(function(n5) {
|
|
17768
|
+
n5.props.selected = u5.value.indexOf(n5.props.value) != -1;
|
|
17769
|
+
})), e4 == "select" && u5.defaultValue != null && (u5.value = H(t4.children).forEach(function(n5) {
|
|
17770
|
+
n5.props.selected = u5.multiple ? u5.defaultValue.indexOf(n5.props.value) != -1 : u5.defaultValue == n5.props.value;
|
|
17771
|
+
})), t4.class && !t4.className ? (u5.class = t4.class, Object.defineProperty(u5, "className", tn)) : (t4.className && !t4.class || t4.class && t4.className) && (u5.class = u5.className = t4.className), n4.props = u5;
|
|
17772
|
+
}(n3), n3.$$typeof = z3, en && en(n3);
|
|
16732
17773
|
};
|
|
16733
17774
|
var rn = l.__r;
|
|
16734
|
-
l.__r = function(
|
|
16735
|
-
rn && rn(
|
|
17775
|
+
l.__r = function(n3) {
|
|
17776
|
+
rn && rn(n3), nn = n3.__c;
|
|
16736
17777
|
};
|
|
16737
17778
|
var un = l.diffed;
|
|
16738
|
-
l.diffed = function(
|
|
16739
|
-
un && un(
|
|
16740
|
-
var { props:
|
|
16741
|
-
|
|
17779
|
+
l.diffed = function(n3) {
|
|
17780
|
+
un && un(n3);
|
|
17781
|
+
var { props: t4, __e: e4 } = n3;
|
|
17782
|
+
e4 != null && n3.type === "textarea" && "value" in t4 && t4.value !== e4.value && (e4.value = t4.value == null ? "" : t4.value), nn = null;
|
|
16742
17783
|
};
|
|
16743
|
-
var on = { ReactCurrentDispatcher: { current: { readContext: function(
|
|
16744
|
-
return nn.__n[
|
|
17784
|
+
var on = { ReactCurrentDispatcher: { current: { readContext: function(n3) {
|
|
17785
|
+
return nn.__n[n3.__c].props.value;
|
|
16745
17786
|
}, useCallback: q2, useContext: x2, useDebugValue: P2, useDeferredValue: bn, useEffect: y2, useId: g2, useImperativeHandle: F2, useInsertionEffect: gn, useLayoutEffect: _2, useMemo: T2, useReducer: p2, useRef: A2, useState: h2, useSyncExternalStore: Cn, useTransition: Sn } } };
|
|
16746
|
-
var pn = function(
|
|
16747
|
-
return
|
|
17787
|
+
var pn = function(n3, t4) {
|
|
17788
|
+
return n3(t4);
|
|
16748
17789
|
};
|
|
16749
|
-
var mn = function(
|
|
16750
|
-
return
|
|
17790
|
+
var mn = function(n3, t4) {
|
|
17791
|
+
return n3(t4);
|
|
16751
17792
|
};
|
|
16752
17793
|
var yn = k;
|
|
16753
17794
|
var gn = _2;
|
|
16754
17795
|
var En = fn;
|
|
16755
|
-
var Rn = { useState: h2, useId: g2, useReducer: p2, useEffect: y2, useLayoutEffect: _2, useInsertionEffect: gn, useTransition: Sn, useDeferredValue: bn, useSyncExternalStore: Cn, startTransition: _n, useRef: A2, useImperativeHandle: F2, useMemo: T2, useCallback: q2, useContext: x2, useDebugValue: P2, version: "17.0.2", Children: N2, render: q3, hydrate: G2, unmountComponentAtNode: vn, createPortal: j3, createElement: _, createContext: G, createFactory: ln, cloneElement: hn, createRef: m, Fragment: k, isValidElement: fn, isElement: En, isFragment: an, isMemo: sn, findDOMNode: dn, Component: b, PureComponent: C3, memo: x3, forwardRef:
|
|
17796
|
+
var Rn = { useState: h2, useId: g2, useReducer: p2, useEffect: y2, useLayoutEffect: _2, useInsertionEffect: gn, useTransition: Sn, useDeferredValue: bn, useSyncExternalStore: Cn, startTransition: _n, useRef: A2, useImperativeHandle: F2, useMemo: T2, useCallback: q2, useContext: x2, useDebugValue: P2, version: "17.0.2", Children: N2, render: q3, hydrate: G2, unmountComponentAtNode: vn, createPortal: j3, createElement: _, createContext: G, createFactory: ln, cloneElement: hn, createRef: m, Fragment: k, isValidElement: fn, isElement: En, isFragment: an, isMemo: sn, findDOMNode: dn, Component: b, PureComponent: C3, memo: x3, forwardRef: k4, flushSync: mn, unstable_batchedUpdates: pn, StrictMode: yn, Suspense: L2, SuspenseList: U2, lazy: F3, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: on };
|
|
16756
17797
|
|
|
16757
17798
|
// src/ui/components/badge.tsx
|
|
16758
|
-
function TestBadge(
|
|
16759
|
-
return new Badge2({ ...
|
|
17799
|
+
function TestBadge(p6) {
|
|
17800
|
+
return new Badge2({ ...p6, colorStyle: "accent" });
|
|
16760
17801
|
}
|
|
16761
|
-
// node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
|
|
16762
|
-
var u3 = function(e3, t3, n2, o3, i3, u4) {
|
|
16763
|
-
t3 || (t3 = {});
|
|
16764
|
-
var a3, c3, p3 = t3;
|
|
16765
|
-
if ("ref" in p3)
|
|
16766
|
-
for (c3 in p3 = {}, t3)
|
|
16767
|
-
c3 == "ref" ? a3 = t3[c3] : p3[c3] = t3[c3];
|
|
16768
|
-
var l3 = { type: e3, props: p3, key: n2, ref: a3, __k: null, __: null, __b: 0, __e: null, __d: undefined, __c: null, constructor: undefined, __v: --f3, __i: -1, __u: 0, __source: i3, __self: u4 };
|
|
16769
|
-
if (typeof e3 == "function" && (a3 = e3.defaultProps))
|
|
16770
|
-
for (c3 in a3)
|
|
16771
|
-
p3[c3] === undefined && (p3[c3] = a3[c3]);
|
|
16772
|
-
return l.vnode && l.vnode(l3), l3;
|
|
16773
|
-
};
|
|
16774
|
-
var f3 = 0;
|
|
16775
|
-
var i3 = Array.isArray;
|
|
16776
|
-
|
|
16777
|
-
// src/ui/components/badge.tsx
|
|
16778
17802
|
class Badge2 extends Rn.Component {
|
|
16779
17803
|
constructor(props) {
|
|
16780
17804
|
super(props);
|
|
16781
17805
|
}
|
|
16782
|
-
static accent(
|
|
16783
|
-
return
|
|
16784
|
-
...
|
|
17806
|
+
static accent(p6) {
|
|
17807
|
+
return u4(Badge2, {
|
|
17808
|
+
...p6,
|
|
16785
17809
|
colorStyle: "accent"
|
|
16786
17810
|
}, undefined, false, undefined, this);
|
|
16787
17811
|
}
|
|
16788
|
-
static error(
|
|
16789
|
-
return
|
|
16790
|
-
...
|
|
17812
|
+
static error(p6) {
|
|
17813
|
+
return u4(Badge2, {
|
|
17814
|
+
...p6,
|
|
16791
17815
|
colorStyle: "error"
|
|
16792
17816
|
}, undefined, false, undefined, this);
|
|
16793
17817
|
}
|
|
16794
|
-
static warning(
|
|
16795
|
-
return
|
|
16796
|
-
...
|
|
17818
|
+
static warning(p6) {
|
|
17819
|
+
return u4(Badge2, {
|
|
17820
|
+
...p6,
|
|
16797
17821
|
colorStyle: "warning"
|
|
16798
17822
|
}, undefined, false, undefined, this);
|
|
16799
17823
|
}
|
|
16800
|
-
static success(
|
|
16801
|
-
return
|
|
16802
|
-
...
|
|
17824
|
+
static success(p6) {
|
|
17825
|
+
return u4(Badge2, {
|
|
17826
|
+
...p6,
|
|
16803
17827
|
colorStyle: "success"
|
|
16804
17828
|
}, undefined, false, undefined, this);
|
|
16805
17829
|
}
|
|
16806
|
-
static info(
|
|
16807
|
-
return
|
|
16808
|
-
...
|
|
17830
|
+
static info(p6) {
|
|
17831
|
+
return u4(Badge2, {
|
|
17832
|
+
...p6,
|
|
16809
17833
|
colorStyle: "info"
|
|
16810
17834
|
}, undefined, false, undefined, this);
|
|
16811
17835
|
}
|
|
16812
17836
|
render() {
|
|
16813
|
-
return
|
|
17837
|
+
return u4("div", {
|
|
16814
17838
|
style: {
|
|
16815
17839
|
position: "relative",
|
|
16816
17840
|
display: "inline-block"
|
|
@@ -16818,7 +17842,7 @@ class Badge2 extends Rn.Component {
|
|
|
16818
17842
|
children: [
|
|
16819
17843
|
this.props.child,
|
|
16820
17844
|
this.props.children,
|
|
16821
|
-
|
|
17845
|
+
u4("div", {
|
|
16822
17846
|
class: `b ${this.props.colorStyle} ${this.props.class ?? ""}`,
|
|
16823
17847
|
style: {
|
|
16824
17848
|
position: "absolute",
|
|
@@ -16842,14 +17866,14 @@ class Badge2 extends Rn.Component {
|
|
|
16842
17866
|
}
|
|
16843
17867
|
}
|
|
16844
17868
|
// src/ui/components/box.tsx
|
|
16845
|
-
function applyProps(
|
|
17869
|
+
function applyProps(p6, classes, style) {
|
|
16846
17870
|
if (Array.isArray(classes)) {
|
|
16847
|
-
classes = classes.filter((
|
|
17871
|
+
classes = classes.filter((c6) => c6).join(" ");
|
|
16848
17872
|
}
|
|
16849
17873
|
return {
|
|
16850
|
-
class: `${classes || ""} ${
|
|
16851
|
-
style: { ...style ?? {}, ...
|
|
16852
|
-
...
|
|
17874
|
+
class: `${classes || ""} ${p6.class || ""}`,
|
|
17875
|
+
style: { ...style ?? {}, ...p6.style ?? {} },
|
|
17876
|
+
...p6.tooltip ? { ["data-tooltip"]: p6.tooltip } : {}
|
|
16853
17877
|
};
|
|
16854
17878
|
}
|
|
16855
17879
|
function Box2({
|
|
@@ -16868,19 +17892,19 @@ function Box2({
|
|
|
16868
17892
|
}
|
|
16869
17893
|
// src/ui/util/error_view.tsx
|
|
16870
17894
|
function _ElbeErr(msg) {
|
|
16871
|
-
return
|
|
17895
|
+
return u4("div", {
|
|
16872
17896
|
class: "row text-s gap-half",
|
|
16873
17897
|
style: "background: #ee0044; color: white; border-radius: 4px; text-align: left; padding: .5rem",
|
|
16874
17898
|
children: [
|
|
16875
|
-
|
|
16876
|
-
|
|
17899
|
+
u4(Icons.CircleX, {}, undefined, false, undefined, this),
|
|
17900
|
+
u4("div", {
|
|
16877
17901
|
class: "column gap-none cross-stretch",
|
|
16878
17902
|
children: [
|
|
16879
|
-
|
|
17903
|
+
u4("b", {
|
|
16880
17904
|
class: "text-s",
|
|
16881
17905
|
children: "elbe error"
|
|
16882
17906
|
}, undefined, false, undefined, this),
|
|
16883
|
-
|
|
17907
|
+
u4("span", {
|
|
16884
17908
|
style: "margin-top: -.125rem",
|
|
16885
17909
|
children: msg
|
|
16886
17910
|
}, undefined, false, undefined, this)
|
|
@@ -16892,7 +17916,7 @@ function _ElbeErr(msg) {
|
|
|
16892
17916
|
|
|
16893
17917
|
// src/ui/components/button.tsx
|
|
16894
17918
|
var _btn = function({ colorStyle, onTap, icon, message, ...elbe }, colorManner) {
|
|
16895
|
-
return message || icon ?
|
|
17919
|
+
return message || icon ? u4("button", {
|
|
16896
17920
|
...applyProps(elbe, [
|
|
16897
17921
|
"row",
|
|
16898
17922
|
"main-center",
|
|
@@ -16906,7 +17930,7 @@ var _btn = function({ colorStyle, onTap, icon, message, ...elbe }, colorManner)
|
|
|
16906
17930
|
onClick: () => onTap && onTap(),
|
|
16907
17931
|
children: [
|
|
16908
17932
|
typeof icon === "function" ? icon({}) : icon,
|
|
16909
|
-
message &&
|
|
17933
|
+
message && u4("span", {
|
|
16910
17934
|
children: message
|
|
16911
17935
|
}, undefined, false, undefined, this)
|
|
16912
17936
|
]
|
|
@@ -16916,10 +17940,10 @@ class Button extends Rn.Component {
|
|
|
16916
17940
|
constructor() {
|
|
16917
17941
|
super(...arguments);
|
|
16918
17942
|
}
|
|
16919
|
-
static major = (
|
|
16920
|
-
static minor = (
|
|
16921
|
-
static action = (
|
|
16922
|
-
static integrated = (
|
|
17943
|
+
static major = (p6) => _btn(p6, "major");
|
|
17944
|
+
static minor = (p6) => _btn(p6, "minor");
|
|
17945
|
+
static action = (p6) => _btn(p6, "action");
|
|
17946
|
+
static integrated = (p6) => _btn(p6, "integrated");
|
|
16923
17947
|
render() {
|
|
16924
17948
|
return _btn(this.props, this.props.colorManner);
|
|
16925
17949
|
}
|
|
@@ -16937,7 +17961,7 @@ function Card({
|
|
|
16937
17961
|
children,
|
|
16938
17962
|
...elbe
|
|
16939
17963
|
}) {
|
|
16940
|
-
return
|
|
17964
|
+
return u4("div", {
|
|
16941
17965
|
...applyProps(elbe, ["card", colorScheme, colorStyle, colorManner, mode], { padding: `${padding}rem`, margin: `${margin}rem` }),
|
|
16942
17966
|
onClick: onTap,
|
|
16943
17967
|
onContextMenu: onLongTap,
|
|
@@ -16946,7 +17970,7 @@ function Card({
|
|
|
16946
17970
|
}
|
|
16947
17971
|
// src/ui/components/util.tsx
|
|
16948
17972
|
function Spaced({ amount = 1 }) {
|
|
16949
|
-
return
|
|
17973
|
+
return u4("div", {
|
|
16950
17974
|
style: { width: amount + "rem", height: amount + "rem" }
|
|
16951
17975
|
}, undefined, false, undefined, this);
|
|
16952
17976
|
}
|
|
@@ -16959,38 +17983,38 @@ function ElbeDialog({
|
|
|
16959
17983
|
children,
|
|
16960
17984
|
_style
|
|
16961
17985
|
}) {
|
|
16962
|
-
return
|
|
16963
|
-
onClick: (
|
|
17986
|
+
return u4("dialog", {
|
|
17987
|
+
onClick: (e4) => e4.stopPropagation(),
|
|
16964
17988
|
open,
|
|
16965
17989
|
style: "text-align: start" + (_style ?? ""),
|
|
16966
|
-
children:
|
|
17990
|
+
children: u4("div", {
|
|
16967
17991
|
class: " card plain-opaque padding-none",
|
|
16968
17992
|
style: "max-width: 40rem; min-width: 10rem",
|
|
16969
17993
|
children: [
|
|
16970
|
-
|
|
17994
|
+
u4("div", {
|
|
16971
17995
|
class: "row cross-start padded",
|
|
16972
17996
|
children: [
|
|
16973
|
-
|
|
17997
|
+
u4("div", {
|
|
16974
17998
|
class: "flex-1 b",
|
|
16975
17999
|
style: "margin-top: 0.6rem; font-size: 1.2rem",
|
|
16976
18000
|
children: title
|
|
16977
18001
|
}, undefined, false, undefined, this),
|
|
16978
|
-
|
|
18002
|
+
u4("button", {
|
|
16979
18003
|
class: "integrated",
|
|
16980
18004
|
style: "width: 3rem",
|
|
16981
|
-
onClick: (
|
|
16982
|
-
|
|
16983
|
-
|
|
18005
|
+
onClick: (e4) => {
|
|
18006
|
+
e4.stopPropagation();
|
|
18007
|
+
e4.preventDefault();
|
|
16984
18008
|
onClose();
|
|
16985
18009
|
},
|
|
16986
|
-
children:
|
|
18010
|
+
children: u4($X, {}, undefined, false, undefined, this)
|
|
16987
18011
|
}, undefined, false, undefined, this)
|
|
16988
18012
|
]
|
|
16989
18013
|
}, undefined, true, undefined, this),
|
|
16990
|
-
|
|
18014
|
+
u4(Spaced, {
|
|
16991
18015
|
amount: 0.5
|
|
16992
18016
|
}, undefined, false, undefined, this),
|
|
16993
|
-
|
|
18017
|
+
u4("div", {
|
|
16994
18018
|
class: "padded",
|
|
16995
18019
|
style: "max-height: 80vh; overflow: auto",
|
|
16996
18020
|
children
|
|
@@ -17001,7 +18025,7 @@ function ElbeDialog({
|
|
|
17001
18025
|
}
|
|
17002
18026
|
// src/ui/components/flex.tsx
|
|
17003
18027
|
function FlexSpace({}) {
|
|
17004
|
-
return
|
|
18028
|
+
return u4("div", {
|
|
17005
18029
|
style: "flex:1"
|
|
17006
18030
|
}, undefined, false, undefined, this);
|
|
17007
18031
|
}
|
|
@@ -17011,9 +18035,9 @@ function Column({
|
|
|
17011
18035
|
cross,
|
|
17012
18036
|
stretch = false,
|
|
17013
18037
|
children,
|
|
17014
|
-
...
|
|
18038
|
+
...p6
|
|
17015
18039
|
}) {
|
|
17016
|
-
return _Flex(false, { gap, main, cross, stretch, children },
|
|
18040
|
+
return _Flex(false, { gap, main, cross, stretch, children }, p6);
|
|
17017
18041
|
}
|
|
17018
18042
|
function Row({
|
|
17019
18043
|
gap = 1,
|
|
@@ -17021,23 +18045,23 @@ function Row({
|
|
|
17021
18045
|
cross,
|
|
17022
18046
|
stretch = false,
|
|
17023
18047
|
children,
|
|
17024
|
-
...
|
|
18048
|
+
...p6
|
|
17025
18049
|
}) {
|
|
17026
|
-
return _Flex(true, { gap, main, cross, stretch, children },
|
|
18050
|
+
return _Flex(true, { gap, main, cross, stretch, children }, p6);
|
|
17027
18051
|
}
|
|
17028
|
-
var _Flex = function(row,
|
|
17029
|
-
return
|
|
18052
|
+
var _Flex = function(row, p6, elbe) {
|
|
18053
|
+
return u4("div", {
|
|
17030
18054
|
...applyProps(elbe, row ? "row" : "column", {
|
|
17031
|
-
justifyContent:
|
|
17032
|
-
alignItems:
|
|
17033
|
-
gap: `${
|
|
18055
|
+
justifyContent: p6.main,
|
|
18056
|
+
alignItems: p6.cross || (p6.stretch ? "stretch" : "center"),
|
|
18057
|
+
gap: `${p6.gap}rem`
|
|
17034
18058
|
}),
|
|
17035
|
-
children:
|
|
18059
|
+
children: p6.children
|
|
17036
18060
|
}, undefined, false, undefined, this);
|
|
17037
18061
|
};
|
|
17038
18062
|
// src/ui/components/icon_button.tsx
|
|
17039
18063
|
var _btn2 = function({ icon, onTap, ...elbe }, colorManner = "major") {
|
|
17040
|
-
return
|
|
18064
|
+
return u4("button", {
|
|
17041
18065
|
...applyProps(elbe, [
|
|
17042
18066
|
"row",
|
|
17043
18067
|
"main-center",
|
|
@@ -17059,10 +18083,10 @@ class IconButton extends Rn.Component {
|
|
|
17059
18083
|
constructor() {
|
|
17060
18084
|
super(...arguments);
|
|
17061
18085
|
}
|
|
17062
|
-
static major = (
|
|
17063
|
-
static minor = (
|
|
17064
|
-
static action = (
|
|
17065
|
-
static integrated = (
|
|
18086
|
+
static major = (p6) => _btn2(p6, "major");
|
|
18087
|
+
static minor = (p6) => _btn2(p6, "minor");
|
|
18088
|
+
static action = (p6) => _btn2(p6, "action");
|
|
18089
|
+
static integrated = (p6) => _btn2(p6, "integrated");
|
|
17066
18090
|
render() {
|
|
17067
18091
|
return _btn2(this.props, this.props.colorManner);
|
|
17068
18092
|
}
|
|
@@ -17074,7 +18098,7 @@ function Checkbox({
|
|
|
17074
18098
|
onChange,
|
|
17075
18099
|
...elbe
|
|
17076
18100
|
}) {
|
|
17077
|
-
return
|
|
18101
|
+
return u4("div", {
|
|
17078
18102
|
class: `row ${onChange ? "" : "disabled"}`,
|
|
17079
18103
|
style: {
|
|
17080
18104
|
gap: ".75rem",
|
|
@@ -17082,14 +18106,14 @@ function Checkbox({
|
|
|
17082
18106
|
opacity: onChange ? "" : "0.5"
|
|
17083
18107
|
},
|
|
17084
18108
|
children: [
|
|
17085
|
-
|
|
18109
|
+
u4("input", {
|
|
17086
18110
|
type: "checkbox",
|
|
17087
18111
|
...applyProps(elbe),
|
|
17088
18112
|
disabled: !onChange,
|
|
17089
18113
|
checked: value,
|
|
17090
|
-
onChange: (
|
|
18114
|
+
onChange: (e4) => onChange?.(e4.currentTarget.checked)
|
|
17091
18115
|
}, undefined, false, undefined, this),
|
|
17092
|
-
label &&
|
|
18116
|
+
label && u4("div", {
|
|
17093
18117
|
style: "margin-top: -.25rem",
|
|
17094
18118
|
children: label
|
|
17095
18119
|
}, undefined, false, undefined, this)
|
|
@@ -17107,7 +18131,7 @@ function _TextArea({
|
|
|
17107
18131
|
onInput,
|
|
17108
18132
|
...elbe
|
|
17109
18133
|
}) {
|
|
17110
|
-
return
|
|
18134
|
+
return u4("div", {
|
|
17111
18135
|
style: {
|
|
17112
18136
|
width: "12rem !important",
|
|
17113
18137
|
display: "flex",
|
|
@@ -17115,7 +18139,7 @@ function _TextArea({
|
|
|
17115
18139
|
alignItems: "stretch"
|
|
17116
18140
|
},
|
|
17117
18141
|
"data-tooltip": elbe.tooltip,
|
|
17118
|
-
children:
|
|
18142
|
+
children: u4("textarea", {
|
|
17119
18143
|
...applyProps(elbe, null, { width: "100%" }),
|
|
17120
18144
|
label,
|
|
17121
18145
|
size: 5,
|
|
@@ -17124,7 +18148,7 @@ function _TextArea({
|
|
|
17124
18148
|
rows,
|
|
17125
18149
|
maxLength,
|
|
17126
18150
|
value,
|
|
17127
|
-
onInput: (
|
|
18151
|
+
onInput: (e4) => onInput && onInput(e4.currentTarget.value),
|
|
17128
18152
|
readonly
|
|
17129
18153
|
}, undefined, false, undefined, this)
|
|
17130
18154
|
}, undefined, false, undefined, this);
|
|
@@ -17135,34 +18159,34 @@ class Field extends Rn.Component {
|
|
|
17135
18159
|
constructor() {
|
|
17136
18160
|
super(...arguments);
|
|
17137
18161
|
}
|
|
17138
|
-
static text = (
|
|
17139
|
-
...
|
|
18162
|
+
static text = (p6) => u4(Field, {
|
|
18163
|
+
...p6,
|
|
17140
18164
|
type: "text"
|
|
17141
18165
|
}, undefined, false, undefined, this);
|
|
17142
|
-
static number = (
|
|
17143
|
-
...
|
|
18166
|
+
static number = (p6) => u4(Field, {
|
|
18167
|
+
...p6,
|
|
17144
18168
|
type: "number"
|
|
17145
18169
|
}, undefined, false, undefined, this);
|
|
17146
|
-
static password = (
|
|
17147
|
-
...
|
|
18170
|
+
static password = (p6) => u4(Field, {
|
|
18171
|
+
...p6,
|
|
17148
18172
|
type: "password"
|
|
17149
18173
|
}, undefined, false, undefined, this);
|
|
17150
|
-
static date = (
|
|
17151
|
-
...
|
|
18174
|
+
static date = (p6) => u4(Field, {
|
|
18175
|
+
...p6,
|
|
17152
18176
|
type: "date"
|
|
17153
18177
|
}, undefined, false, undefined, this);
|
|
17154
|
-
static time = (
|
|
17155
|
-
...
|
|
18178
|
+
static time = (p6) => u4(Field, {
|
|
18179
|
+
...p6,
|
|
17156
18180
|
type: "time"
|
|
17157
18181
|
}, undefined, false, undefined, this);
|
|
17158
|
-
static email = (
|
|
17159
|
-
...
|
|
18182
|
+
static email = (p6) => u4(Field, {
|
|
18183
|
+
...p6,
|
|
17160
18184
|
type: "email"
|
|
17161
18185
|
}, undefined, false, undefined, this);
|
|
17162
18186
|
static multiLine = _TextArea;
|
|
17163
18187
|
render() {
|
|
17164
18188
|
const { label, hint, readonly, type, value, onInput, ...elbe } = this.props;
|
|
17165
|
-
return
|
|
18189
|
+
return u4("div", {
|
|
17166
18190
|
style: {
|
|
17167
18191
|
width: "12rem !important",
|
|
17168
18192
|
display: "flex",
|
|
@@ -17170,7 +18194,7 @@ class Field extends Rn.Component {
|
|
|
17170
18194
|
alignItems: "stretch"
|
|
17171
18195
|
},
|
|
17172
18196
|
"data-tooltip": this.props?.tooltip,
|
|
17173
|
-
children:
|
|
18197
|
+
children: u4("input", {
|
|
17174
18198
|
type: this.props.type,
|
|
17175
18199
|
...applyProps(this.props, null, {
|
|
17176
18200
|
width: "100%"
|
|
@@ -17179,7 +18203,7 @@ class Field extends Rn.Component {
|
|
|
17179
18203
|
label: this.props.label,
|
|
17180
18204
|
placeholder: this.props.hint,
|
|
17181
18205
|
value: this.props.value,
|
|
17182
|
-
onInput: (
|
|
18206
|
+
onInput: (e4) => this.props.onInput && this.props.onInput(e4.currentTarget.value),
|
|
17183
18207
|
readonly: this.props.readonly
|
|
17184
18208
|
}, undefined, false, undefined, this)
|
|
17185
18209
|
}, undefined, false, undefined, this);
|
|
@@ -17194,7 +18218,7 @@ function Range({
|
|
|
17194
18218
|
step = 1,
|
|
17195
18219
|
...elbe
|
|
17196
18220
|
}) {
|
|
17197
|
-
return min > max ? _ElbeErr("Range: max is smaller than min") :
|
|
18221
|
+
return min > max ? _ElbeErr("Range: max is smaller than min") : u4("input", {
|
|
17198
18222
|
type: "range",
|
|
17199
18223
|
...applyProps(elbe, null, {
|
|
17200
18224
|
filter: onChange ? "" : "grayscale(1)",
|
|
@@ -17207,7 +18231,7 @@ function Range({
|
|
|
17207
18231
|
step,
|
|
17208
18232
|
disabled: !onChange,
|
|
17209
18233
|
value,
|
|
17210
|
-
onInput: (
|
|
18234
|
+
onInput: (e4) => onChange?.(Number(e4.currentTarget.value))
|
|
17211
18235
|
}, undefined, false, undefined, this);
|
|
17212
18236
|
}
|
|
17213
18237
|
// src/ui/components/input/select.tsx
|
|
@@ -17218,12 +18242,12 @@ function Select({
|
|
|
17218
18242
|
onChange,
|
|
17219
18243
|
...elbe
|
|
17220
18244
|
}) {
|
|
17221
|
-
return
|
|
18245
|
+
return u4("select", {
|
|
17222
18246
|
...applyProps(elbe),
|
|
17223
18247
|
value,
|
|
17224
18248
|
label,
|
|
17225
|
-
onChange: (
|
|
17226
|
-
children: options.map(({ key, label: label2 }) =>
|
|
18249
|
+
onChange: (e4) => onChange(e4.currentTarget.value),
|
|
18250
|
+
children: options.map(({ key, label: label2 }) => u4("option", {
|
|
17227
18251
|
value: key,
|
|
17228
18252
|
children: label2
|
|
17229
18253
|
}, key, false, undefined, this))
|
|
@@ -17234,8 +18258,8 @@ class Padded extends Rn.Component {
|
|
|
17234
18258
|
constructor(props) {
|
|
17235
18259
|
super(props);
|
|
17236
18260
|
}
|
|
17237
|
-
static all = ({ amount = 1, ...
|
|
17238
|
-
...
|
|
18261
|
+
static all = ({ amount = 1, ...p6 }) => u4(Padded, {
|
|
18262
|
+
...p6,
|
|
17239
18263
|
top: amount,
|
|
17240
18264
|
right: amount,
|
|
17241
18265
|
bottom: amount,
|
|
@@ -17244,16 +18268,16 @@ class Padded extends Rn.Component {
|
|
|
17244
18268
|
static symmetric = ({
|
|
17245
18269
|
vertical = 0,
|
|
17246
18270
|
horizontal = 0,
|
|
17247
|
-
...
|
|
17248
|
-
}) =>
|
|
17249
|
-
...
|
|
18271
|
+
...p6
|
|
18272
|
+
}) => u4(Padded, {
|
|
18273
|
+
...p6,
|
|
17250
18274
|
top: vertical,
|
|
17251
18275
|
bottom: vertical,
|
|
17252
18276
|
left: horizontal,
|
|
17253
18277
|
right: horizontal
|
|
17254
18278
|
}, undefined, false, undefined, this);
|
|
17255
18279
|
render() {
|
|
17256
|
-
return
|
|
18280
|
+
return u4("div", {
|
|
17257
18281
|
style: {
|
|
17258
18282
|
paddingTop: `${this.props.top}rem`,
|
|
17259
18283
|
paddingRight: `${this.props.right}rem`,
|
|
@@ -17266,44 +18290,44 @@ class Padded extends Rn.Component {
|
|
|
17266
18290
|
}
|
|
17267
18291
|
// src/ui/components/text.tsx
|
|
17268
18292
|
class Text2 extends Rn.Component {
|
|
17269
|
-
static h1 = (
|
|
17270
|
-
...
|
|
18293
|
+
static h1 = (p6) => u4(Text2, {
|
|
18294
|
+
...p6,
|
|
17271
18295
|
typeStyle: "header-1"
|
|
17272
18296
|
}, undefined, false, undefined, this);
|
|
17273
|
-
static h2 = (
|
|
17274
|
-
...
|
|
18297
|
+
static h2 = (p6) => u4(Text2, {
|
|
18298
|
+
...p6,
|
|
17275
18299
|
typeStyle: "header-2"
|
|
17276
18300
|
}, undefined, false, undefined, this);
|
|
17277
|
-
static h3 = (
|
|
17278
|
-
...
|
|
18301
|
+
static h3 = (p6) => u4(Text2, {
|
|
18302
|
+
...p6,
|
|
17279
18303
|
typeStyle: "header-3"
|
|
17280
18304
|
}, undefined, false, undefined, this);
|
|
17281
|
-
static h4 = (
|
|
17282
|
-
...
|
|
18305
|
+
static h4 = (p6) => u4(Text2, {
|
|
18306
|
+
...p6,
|
|
17283
18307
|
typeStyle: "header-4"
|
|
17284
18308
|
}, undefined, false, undefined, this);
|
|
17285
|
-
static h5 = (
|
|
17286
|
-
...
|
|
18309
|
+
static h5 = (p6) => u4(Text2, {
|
|
18310
|
+
...p6,
|
|
17287
18311
|
typeStyle: "header-5"
|
|
17288
18312
|
}, undefined, false, undefined, this);
|
|
17289
|
-
static h6 = (
|
|
17290
|
-
...
|
|
18313
|
+
static h6 = (p6) => u4(Text2, {
|
|
18314
|
+
...p6,
|
|
17291
18315
|
typeStyle: "header-6"
|
|
17292
18316
|
}, undefined, false, undefined, this);
|
|
17293
|
-
static s = (
|
|
17294
|
-
...
|
|
18317
|
+
static s = (p6) => u4(Text2, {
|
|
18318
|
+
...p6,
|
|
17295
18319
|
typeStyle: "text-s"
|
|
17296
18320
|
}, undefined, false, undefined, this);
|
|
17297
|
-
static m = (
|
|
17298
|
-
...
|
|
18321
|
+
static m = (p6) => u4(Text2, {
|
|
18322
|
+
...p6,
|
|
17299
18323
|
typeStyle: "text-m"
|
|
17300
18324
|
}, undefined, false, undefined, this);
|
|
17301
|
-
static l = (
|
|
17302
|
-
...
|
|
18325
|
+
static l = (p6) => u4(Text2, {
|
|
18326
|
+
...p6,
|
|
17303
18327
|
typeStyle: "text-l"
|
|
17304
18328
|
}, undefined, false, undefined, this);
|
|
17305
|
-
static code = (
|
|
17306
|
-
...
|
|
18329
|
+
static code = (p6) => u4(Text2, {
|
|
18330
|
+
...p6,
|
|
17307
18331
|
typeStyle: "code"
|
|
17308
18332
|
}, undefined, false, undefined, this);
|
|
17309
18333
|
constructor({
|
|
@@ -17323,10 +18347,10 @@ class Text2 extends Rn.Component {
|
|
|
17323
18347
|
size,
|
|
17324
18348
|
children,
|
|
17325
18349
|
typeStyle,
|
|
17326
|
-
v:
|
|
18350
|
+
v: v6,
|
|
17327
18351
|
...elbe
|
|
17328
18352
|
} = this.props;
|
|
17329
|
-
return
|
|
18353
|
+
return u4("span", {
|
|
17330
18354
|
...applyProps(elbe, [
|
|
17331
18355
|
"text",
|
|
17332
18356
|
align,
|
|
@@ -17341,7 +18365,7 @@ class Text2 extends Rn.Component {
|
|
|
17341
18365
|
color: color || ""
|
|
17342
18366
|
}),
|
|
17343
18367
|
children: [
|
|
17344
|
-
|
|
18368
|
+
v6,
|
|
17345
18369
|
children
|
|
17346
18370
|
]
|
|
17347
18371
|
}, undefined, true, undefined, this);
|
|
@@ -17354,15 +18378,15 @@ function ToggleButton({
|
|
|
17354
18378
|
value,
|
|
17355
18379
|
...elbe
|
|
17356
18380
|
}) {
|
|
17357
|
-
return items.length < 1 ? _ElbeErr("ToggleButton requires at least one item") :
|
|
18381
|
+
return items.length < 1 ? _ElbeErr("ToggleButton requires at least one item") : u4(Card, {
|
|
17358
18382
|
mode: "light",
|
|
17359
18383
|
colorScheme: "primary",
|
|
17360
18384
|
padding: 0,
|
|
17361
18385
|
...applyProps(elbe, null, { overflow: "hidden", width: "100%" }),
|
|
17362
|
-
children:
|
|
18386
|
+
children: u4(Column, {
|
|
17363
18387
|
stretch: true,
|
|
17364
18388
|
gap: 0,
|
|
17365
|
-
children: items.map((item) =>
|
|
18389
|
+
children: items.map((item) => u4(Card, {
|
|
17366
18390
|
onTap: onSelect ? () => onSelect(item.key) : undefined,
|
|
17367
18391
|
class: `row b ${onSelect ? "pointer" : "disabled"}`,
|
|
17368
18392
|
style: { border: "none", borderRadius: 0, gap: ".75rem" },
|
|
@@ -17371,8 +18395,8 @@ function ToggleButton({
|
|
|
17371
18395
|
children: [
|
|
17372
18396
|
item.icon?.({}),
|
|
17373
18397
|
item.label,
|
|
17374
|
-
|
|
17375
|
-
value === item.key &&
|
|
18398
|
+
u4(FlexSpace, {}, undefined, false, undefined, this),
|
|
18399
|
+
value === item.key && u4(Icons.Check, {}, undefined, false, undefined, this)
|
|
17376
18400
|
]
|
|
17377
18401
|
}, undefined, true, undefined, this))
|
|
17378
18402
|
}, undefined, false, undefined, this)
|
|
@@ -17412,9 +18436,9 @@ function showConfirmDialog({
|
|
|
17412
18436
|
</dialog>
|
|
17413
18437
|
`;
|
|
17414
18438
|
document.body.appendChild(dialog);
|
|
17415
|
-
window["conf_resolve"] = (
|
|
18439
|
+
window["conf_resolve"] = (v6) => {
|
|
17416
18440
|
document.body.removeChild(dialog);
|
|
17417
|
-
resolve(
|
|
18441
|
+
resolve(v6);
|
|
17418
18442
|
};
|
|
17419
18443
|
});
|
|
17420
18444
|
}
|
|
@@ -17446,28 +18470,37 @@ function copyToClipboard(text, toastMsg = "copied to clipboard") {
|
|
|
17446
18470
|
// src/index.tsx
|
|
17447
18471
|
var Icons = $icons;
|
|
17448
18472
|
export {
|
|
18473
|
+
useBit,
|
|
17449
18474
|
showToast,
|
|
17450
18475
|
showConfirmDialog,
|
|
17451
18476
|
share,
|
|
18477
|
+
makeBit,
|
|
18478
|
+
ifApiError,
|
|
17452
18479
|
copyToClipboard,
|
|
17453
18480
|
applyProps,
|
|
18481
|
+
WorkerControl,
|
|
17454
18482
|
ToggleButton,
|
|
17455
18483
|
Text2 as Text,
|
|
17456
18484
|
TestBadge,
|
|
18485
|
+
StreamControl,
|
|
18486
|
+
Spinner,
|
|
17457
18487
|
Spaced,
|
|
17458
18488
|
Select,
|
|
17459
18489
|
Row,
|
|
17460
18490
|
Range,
|
|
18491
|
+
ProvideBit,
|
|
17461
18492
|
Padded,
|
|
17462
18493
|
Icons,
|
|
17463
18494
|
IconButton,
|
|
17464
18495
|
FlexSpace,
|
|
17465
18496
|
Field,
|
|
17466
18497
|
ElbeDialog,
|
|
18498
|
+
CtrlBit,
|
|
17467
18499
|
Column,
|
|
17468
18500
|
Checkbox,
|
|
17469
18501
|
Card,
|
|
17470
18502
|
Button,
|
|
17471
18503
|
Box2 as Box,
|
|
17472
|
-
Badge2 as Badge
|
|
18504
|
+
Badge2 as Badge,
|
|
18505
|
+
ApiService
|
|
17473
18506
|
};
|