bpr-library 0.0.13 → 0.0.15
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.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createPopper as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { CSSTransition as
|
|
1
|
+
import T0, { useState as H, useEffect as A, useRef as O, useMemo as z0, useCallback as a0 } from "react";
|
|
2
|
+
import { createPopper as b0 } from "@popperjs/core";
|
|
3
|
+
import { createPortal as $0 } from "react-dom";
|
|
4
|
+
import { CSSTransition as y0 } from "react-transition-group";
|
|
5
5
|
import { create as L0 } from "zustand";
|
|
6
6
|
const R0 = `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r
|
|
7
7
|
<style>\r
|
|
@@ -469,256 +469,256 @@ const R0 = `<svg style="position: absolute; width: 0; height: 0; overflow: hidde
|
|
|
469
469
|
</defs>\r
|
|
470
470
|
</svg>`;
|
|
471
471
|
var r0 = { exports: {} }, Z = {};
|
|
472
|
-
var
|
|
472
|
+
var k0;
|
|
473
473
|
function O0() {
|
|
474
|
-
if (
|
|
475
|
-
|
|
474
|
+
if (k0) return Z;
|
|
475
|
+
k0 = 1;
|
|
476
476
|
var c = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
477
|
-
function r(
|
|
478
|
-
var
|
|
479
|
-
if (
|
|
480
|
-
|
|
481
|
-
for (var
|
|
482
|
-
|
|
483
|
-
} else
|
|
484
|
-
return
|
|
477
|
+
function r(o, n, i) {
|
|
478
|
+
var s = null;
|
|
479
|
+
if (i !== void 0 && (s = "" + i), n.key !== void 0 && (s = "" + n.key), "key" in n) {
|
|
480
|
+
i = {};
|
|
481
|
+
for (var w in n)
|
|
482
|
+
w !== "key" && (i[w] = n[w]);
|
|
483
|
+
} else i = n;
|
|
484
|
+
return n = i.ref, {
|
|
485
485
|
$$typeof: c,
|
|
486
|
-
type:
|
|
487
|
-
key:
|
|
488
|
-
ref:
|
|
489
|
-
props:
|
|
486
|
+
type: o,
|
|
487
|
+
key: s,
|
|
488
|
+
ref: n !== void 0 ? n : null,
|
|
489
|
+
props: i
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
492
|
return Z.Fragment = t, Z.jsx = r, Z.jsxs = r, Z;
|
|
493
493
|
}
|
|
494
494
|
var Q = {};
|
|
495
|
-
var
|
|
495
|
+
var g0;
|
|
496
496
|
function D0() {
|
|
497
|
-
return
|
|
498
|
-
function c(
|
|
499
|
-
if (
|
|
500
|
-
if (typeof
|
|
501
|
-
return
|
|
502
|
-
if (typeof
|
|
503
|
-
switch (
|
|
504
|
-
case
|
|
497
|
+
return g0 || (g0 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
498
|
+
function c(l) {
|
|
499
|
+
if (l == null) return null;
|
|
500
|
+
if (typeof l == "function")
|
|
501
|
+
return l.$$typeof === d0 ? null : l.displayName || l.name || null;
|
|
502
|
+
if (typeof l == "string") return l;
|
|
503
|
+
switch (l) {
|
|
504
|
+
case b:
|
|
505
505
|
return "Fragment";
|
|
506
|
-
case
|
|
506
|
+
case _:
|
|
507
507
|
return "Profiler";
|
|
508
|
-
case
|
|
508
|
+
case a:
|
|
509
509
|
return "StrictMode";
|
|
510
|
-
case
|
|
510
|
+
case F:
|
|
511
511
|
return "Suspense";
|
|
512
|
-
case
|
|
512
|
+
case B:
|
|
513
513
|
return "SuspenseList";
|
|
514
|
-
case
|
|
514
|
+
case J:
|
|
515
515
|
return "Activity";
|
|
516
516
|
}
|
|
517
|
-
if (typeof
|
|
518
|
-
switch (typeof
|
|
517
|
+
if (typeof l == "object")
|
|
518
|
+
switch (typeof l.tag == "number" && console.error(
|
|
519
519
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
520
|
-
),
|
|
521
|
-
case
|
|
520
|
+
), l.$$typeof) {
|
|
521
|
+
case x:
|
|
522
522
|
return "Portal";
|
|
523
|
-
case
|
|
524
|
-
return
|
|
525
|
-
case
|
|
526
|
-
return (
|
|
527
|
-
case
|
|
528
|
-
var
|
|
529
|
-
return
|
|
530
|
-
case
|
|
531
|
-
return
|
|
523
|
+
case N:
|
|
524
|
+
return l.displayName || "Context";
|
|
525
|
+
case k:
|
|
526
|
+
return (l._context.displayName || "Context") + ".Consumer";
|
|
527
|
+
case L:
|
|
528
|
+
var f = l.render;
|
|
529
|
+
return l = l.displayName, l || (l = f.displayName || f.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
|
|
530
|
+
case W:
|
|
531
|
+
return f = l.displayName || null, f !== null ? f : c(l.type) || "Memo";
|
|
532
532
|
case j:
|
|
533
|
-
|
|
533
|
+
f = l._payload, l = l._init;
|
|
534
534
|
try {
|
|
535
|
-
return c(
|
|
535
|
+
return c(l(f));
|
|
536
536
|
} catch {
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
return null;
|
|
540
540
|
}
|
|
541
|
-
function t(
|
|
542
|
-
return "" +
|
|
541
|
+
function t(l) {
|
|
542
|
+
return "" + l;
|
|
543
543
|
}
|
|
544
|
-
function r(
|
|
544
|
+
function r(l) {
|
|
545
545
|
try {
|
|
546
|
-
t(
|
|
547
|
-
var
|
|
546
|
+
t(l);
|
|
547
|
+
var f = !1;
|
|
548
548
|
} catch {
|
|
549
|
-
|
|
549
|
+
f = !0;
|
|
550
550
|
}
|
|
551
|
-
if (
|
|
552
|
-
|
|
553
|
-
var
|
|
554
|
-
return
|
|
555
|
-
|
|
551
|
+
if (f) {
|
|
552
|
+
f = console;
|
|
553
|
+
var g = f.error, C = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
554
|
+
return g.call(
|
|
555
|
+
f,
|
|
556
556
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
557
|
-
|
|
558
|
-
), t(
|
|
557
|
+
C
|
|
558
|
+
), t(l);
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
563
|
-
if (typeof
|
|
561
|
+
function o(l) {
|
|
562
|
+
if (l === b) return "<>";
|
|
563
|
+
if (typeof l == "object" && l !== null && l.$$typeof === j)
|
|
564
564
|
return "<...>";
|
|
565
565
|
try {
|
|
566
|
-
var
|
|
567
|
-
return
|
|
566
|
+
var f = c(l);
|
|
567
|
+
return f ? "<" + f + ">" : "<...>";
|
|
568
568
|
} catch {
|
|
569
569
|
return "<...>";
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
var
|
|
574
|
-
return
|
|
572
|
+
function n() {
|
|
573
|
+
var l = U.A;
|
|
574
|
+
return l === null ? null : l.getOwner();
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function i() {
|
|
577
577
|
return Error("react-stack-top-frame");
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
if (
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
579
|
+
function s(l) {
|
|
580
|
+
if (q.call(l, "key")) {
|
|
581
|
+
var f = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
582
|
+
if (f && f.isReactWarning) return !1;
|
|
583
583
|
}
|
|
584
|
-
return
|
|
584
|
+
return l.key !== void 0;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
587
|
-
function
|
|
588
|
-
|
|
586
|
+
function w(l, f) {
|
|
587
|
+
function g() {
|
|
588
|
+
y || (y = !0, console.error(
|
|
589
589
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
590
|
-
|
|
590
|
+
f
|
|
591
591
|
));
|
|
592
592
|
}
|
|
593
|
-
|
|
594
|
-
get:
|
|
593
|
+
g.isReactWarning = !0, Object.defineProperty(l, "key", {
|
|
594
|
+
get: g,
|
|
595
595
|
configurable: !0
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
-
function
|
|
599
|
-
var
|
|
600
|
-
return P[
|
|
598
|
+
function m() {
|
|
599
|
+
var l = c(this.type);
|
|
600
|
+
return P[l] || (P[l] = !0, console.error(
|
|
601
601
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
602
|
-
)),
|
|
602
|
+
)), l = this.props.ref, l !== void 0 ? l : null;
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
var S =
|
|
606
|
-
return
|
|
607
|
-
$$typeof:
|
|
608
|
-
type:
|
|
609
|
-
key:
|
|
610
|
-
props:
|
|
611
|
-
_owner:
|
|
612
|
-
}, (S !== void 0 ? S : null) !== null ? Object.defineProperty(
|
|
604
|
+
function d(l, f, g, C, t0, m0) {
|
|
605
|
+
var S = g.ref;
|
|
606
|
+
return l = {
|
|
607
|
+
$$typeof: z,
|
|
608
|
+
type: l,
|
|
609
|
+
key: f,
|
|
610
|
+
props: g,
|
|
611
|
+
_owner: C
|
|
612
|
+
}, (S !== void 0 ? S : null) !== null ? Object.defineProperty(l, "ref", {
|
|
613
613
|
enumerable: !1,
|
|
614
|
-
get:
|
|
615
|
-
}) : Object.defineProperty(
|
|
614
|
+
get: m
|
|
615
|
+
}) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
616
616
|
configurable: !1,
|
|
617
617
|
enumerable: !1,
|
|
618
618
|
writable: !0,
|
|
619
619
|
value: 0
|
|
620
|
-
}), Object.defineProperty(
|
|
620
|
+
}), Object.defineProperty(l, "_debugInfo", {
|
|
621
621
|
configurable: !1,
|
|
622
622
|
enumerable: !1,
|
|
623
623
|
writable: !0,
|
|
624
624
|
value: null
|
|
625
|
-
}), Object.defineProperty(
|
|
625
|
+
}), Object.defineProperty(l, "_debugStack", {
|
|
626
626
|
configurable: !1,
|
|
627
627
|
enumerable: !1,
|
|
628
628
|
writable: !0,
|
|
629
629
|
value: t0
|
|
630
|
-
}), Object.defineProperty(
|
|
630
|
+
}), Object.defineProperty(l, "_debugTask", {
|
|
631
631
|
configurable: !1,
|
|
632
632
|
enumerable: !1,
|
|
633
633
|
writable: !0,
|
|
634
|
-
value:
|
|
635
|
-
}), Object.freeze && (Object.freeze(
|
|
634
|
+
value: m0
|
|
635
|
+
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
var S =
|
|
637
|
+
function h(l, f, g, C, t0, m0) {
|
|
638
|
+
var S = f.children;
|
|
639
639
|
if (S !== void 0)
|
|
640
|
-
if (
|
|
641
|
-
if (
|
|
642
|
-
for (
|
|
643
|
-
M(S[
|
|
640
|
+
if (C)
|
|
641
|
+
if (h0(S)) {
|
|
642
|
+
for (C = 0; C < S.length; C++)
|
|
643
|
+
M(S[C]);
|
|
644
644
|
Object.freeze && Object.freeze(S);
|
|
645
645
|
} else
|
|
646
646
|
console.error(
|
|
647
647
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
648
648
|
);
|
|
649
649
|
else M(S);
|
|
650
|
-
if (
|
|
651
|
-
S = c(
|
|
652
|
-
var X = Object.keys(
|
|
650
|
+
if (q.call(f, "key")) {
|
|
651
|
+
S = c(l);
|
|
652
|
+
var X = Object.keys(f).filter(function(H0) {
|
|
653
653
|
return H0 !== "key";
|
|
654
654
|
});
|
|
655
|
-
|
|
655
|
+
C = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", M0[S + C] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
656
656
|
`A props object containing a "key" prop is being spread into JSX:
|
|
657
657
|
let props = %s;
|
|
658
658
|
<%s {...props} />
|
|
659
659
|
React keys must be passed directly to JSX without using spread:
|
|
660
660
|
let props = %s;
|
|
661
661
|
<%s key={someKey} {...props} />`,
|
|
662
|
-
|
|
662
|
+
C,
|
|
663
663
|
S,
|
|
664
664
|
X,
|
|
665
665
|
S
|
|
666
|
-
), M0[S +
|
|
666
|
+
), M0[S + C] = !0);
|
|
667
667
|
}
|
|
668
|
-
if (S = null,
|
|
669
|
-
|
|
670
|
-
for (var u0 in
|
|
671
|
-
u0 !== "key" && (
|
|
672
|
-
} else
|
|
673
|
-
return S &&
|
|
674
|
-
|
|
675
|
-
typeof
|
|
676
|
-
),
|
|
677
|
-
|
|
668
|
+
if (S = null, g !== void 0 && (r(g), S = "" + g), s(f) && (r(f.key), S = "" + f.key), "key" in f) {
|
|
669
|
+
g = {};
|
|
670
|
+
for (var u0 in f)
|
|
671
|
+
u0 !== "key" && (g[u0] = f[u0]);
|
|
672
|
+
} else g = f;
|
|
673
|
+
return S && w(
|
|
674
|
+
g,
|
|
675
|
+
typeof l == "function" ? l.displayName || l.name || "Unknown" : l
|
|
676
|
+
), d(
|
|
677
|
+
l,
|
|
678
678
|
S,
|
|
679
|
-
|
|
680
|
-
|
|
679
|
+
g,
|
|
680
|
+
n(),
|
|
681
681
|
t0,
|
|
682
|
-
|
|
682
|
+
m0
|
|
683
683
|
);
|
|
684
684
|
}
|
|
685
|
-
function M(
|
|
686
|
-
|
|
685
|
+
function M(l) {
|
|
686
|
+
p(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === j && (l._payload.status === "fulfilled" ? p(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
return typeof
|
|
688
|
+
function p(l) {
|
|
689
|
+
return typeof l == "object" && l !== null && l.$$typeof === z;
|
|
690
690
|
}
|
|
691
|
-
var
|
|
691
|
+
var u = T0, z = /* @__PURE__ */ Symbol.for("react.transitional.element"), x = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), a = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), N = /* @__PURE__ */ Symbol.for("react.context"), L = /* @__PURE__ */ Symbol.for("react.forward_ref"), F = /* @__PURE__ */ Symbol.for("react.suspense"), B = /* @__PURE__ */ Symbol.for("react.suspense_list"), W = /* @__PURE__ */ Symbol.for("react.memo"), j = /* @__PURE__ */ Symbol.for("react.lazy"), J = /* @__PURE__ */ Symbol.for("react.activity"), d0 = /* @__PURE__ */ Symbol.for("react.client.reference"), U = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, h0 = Array.isArray, v = console.createTask ? console.createTask : function() {
|
|
692
692
|
return null;
|
|
693
693
|
};
|
|
694
|
-
|
|
695
|
-
react_stack_bottom_frame: function(
|
|
696
|
-
return
|
|
694
|
+
u = {
|
|
695
|
+
react_stack_bottom_frame: function(l) {
|
|
696
|
+
return l();
|
|
697
697
|
}
|
|
698
698
|
};
|
|
699
|
-
var
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
)(), f0 =
|
|
703
|
-
Q.Fragment =
|
|
704
|
-
var
|
|
705
|
-
return
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
699
|
+
var y, P = {}, D = u.react_stack_bottom_frame.bind(
|
|
700
|
+
u,
|
|
701
|
+
i
|
|
702
|
+
)(), f0 = v(o(i)), M0 = {};
|
|
703
|
+
Q.Fragment = b, Q.jsx = function(l, f, g) {
|
|
704
|
+
var C = 1e4 > U.recentlyCreatedOwnerStacks++;
|
|
705
|
+
return h(
|
|
706
|
+
l,
|
|
707
|
+
f,
|
|
708
|
+
g,
|
|
709
709
|
!1,
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
C ? Error("react-stack-top-frame") : D,
|
|
711
|
+
C ? v(o(l)) : f0
|
|
712
712
|
);
|
|
713
|
-
}, Q.jsxs = function(
|
|
714
|
-
var
|
|
715
|
-
return
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
713
|
+
}, Q.jsxs = function(l, f, g) {
|
|
714
|
+
var C = 1e4 > U.recentlyCreatedOwnerStacks++;
|
|
715
|
+
return h(
|
|
716
|
+
l,
|
|
717
|
+
f,
|
|
718
|
+
g,
|
|
719
719
|
!0,
|
|
720
|
-
|
|
721
|
-
|
|
720
|
+
C ? Error("react-stack-top-frame") : D,
|
|
721
|
+
C ? v(o(l)) : f0
|
|
722
722
|
);
|
|
723
723
|
};
|
|
724
724
|
})()), Q;
|
|
@@ -728,30 +728,30 @@ function P0() {
|
|
|
728
728
|
return C0 || (C0 = 1, process.env.NODE_ENV === "production" ? r0.exports = O0() : r0.exports = D0()), r0.exports;
|
|
729
729
|
}
|
|
730
730
|
var e = P0();
|
|
731
|
-
const A0 = "_container_iowly_1", I0 = "_icon_iowly_7", F0 = "_info_iowly_21", Y0 = "_error_iowly_24", W0 = "_success_iowly_27",
|
|
731
|
+
const A0 = "_container_iowly_1", I0 = "_icon_iowly_7", F0 = "_info_iowly_21", Y0 = "_error_iowly_24", W0 = "_success_iowly_27", J0 = "_warning_iowly_30", U0 = "_message_text_iowly_33", q0 = "_open_iowly_37", X0 = "_close_iowly_42", G = {
|
|
732
732
|
container: A0,
|
|
733
733
|
icon: I0,
|
|
734
734
|
info: F0,
|
|
735
735
|
error: Y0,
|
|
736
736
|
success: W0,
|
|
737
|
-
warning:
|
|
738
|
-
message_text:
|
|
739
|
-
open:
|
|
737
|
+
warning: J0,
|
|
738
|
+
message_text: U0,
|
|
739
|
+
open: q0,
|
|
740
740
|
close: X0
|
|
741
|
-
}, G0 = {},
|
|
741
|
+
}, G0 = {}, I = ({
|
|
742
742
|
name: c,
|
|
743
743
|
className: t,
|
|
744
744
|
...r
|
|
745
745
|
}) => {
|
|
746
|
-
const
|
|
746
|
+
const o = !r["aria-label"];
|
|
747
747
|
return /* @__PURE__ */ e.jsx(
|
|
748
748
|
"svg",
|
|
749
749
|
{
|
|
750
750
|
...r,
|
|
751
751
|
className: `${G0.icon} ${t}`,
|
|
752
752
|
focusable: "false",
|
|
753
|
-
"aria-hidden":
|
|
754
|
-
role:
|
|
753
|
+
"aria-hidden": o,
|
|
754
|
+
role: o ? void 0 : "img",
|
|
755
755
|
children: /* @__PURE__ */ e.jsx(
|
|
756
756
|
"use",
|
|
757
757
|
{
|
|
@@ -762,27 +762,27 @@ const A0 = "_container_iowly_1", I0 = "_icon_iowly_7", F0 = "_info_iowly_21", Y0
|
|
|
762
762
|
}
|
|
763
763
|
);
|
|
764
764
|
};
|
|
765
|
-
function
|
|
765
|
+
function r3({
|
|
766
766
|
message: c,
|
|
767
767
|
severity: t,
|
|
768
768
|
open: r,
|
|
769
|
-
onClose:
|
|
769
|
+
onClose: o
|
|
770
770
|
}) {
|
|
771
|
-
const [
|
|
771
|
+
const [n, i] = H(!1);
|
|
772
772
|
return A(() => {
|
|
773
|
-
let
|
|
773
|
+
let s, w;
|
|
774
774
|
return r && (setTimeout(() => {
|
|
775
|
-
|
|
776
|
-
}, 100),
|
|
777
|
-
clearTimeout(
|
|
775
|
+
i(!0);
|
|
776
|
+
}, 100), s = window.setTimeout(() => i(!1), 3e3), w = window.setTimeout(() => o(), 3300)), () => {
|
|
777
|
+
clearTimeout(s), clearTimeout(w);
|
|
778
778
|
};
|
|
779
|
-
}, [r, 3e3,
|
|
779
|
+
}, [r, 3e3, o]), !r && !n ? null : /* @__PURE__ */ e.jsxs("div", { className: `
|
|
780
780
|
${G.container}
|
|
781
|
-
${
|
|
781
|
+
${n ? G.open : G.close}
|
|
782
782
|
${G[t]}
|
|
783
783
|
`, children: [
|
|
784
784
|
/* @__PURE__ */ e.jsx(
|
|
785
|
-
|
|
785
|
+
I,
|
|
786
786
|
{
|
|
787
787
|
name: `alert-${t}`,
|
|
788
788
|
width: 18,
|
|
@@ -793,7 +793,7 @@ function t3({
|
|
|
793
793
|
/* @__PURE__ */ e.jsx("p", { className: G.message_text, children: c })
|
|
794
794
|
] });
|
|
795
795
|
}
|
|
796
|
-
const K0 = "_container_aca5y_1", Z0 = "_input_aca5y_1", Q0 = "_menu_item_aca5y_1", e1 = "_select_container_aca5y_11", c1 = "_selected_list_aca5y_39", n1 = "_selected_item_aca5y_46", l1 = "_standard_item_aca5y_46", t1 = "_unselect_btn_aca5y_57", r1 = "_cancel_icon_aca5y_69",
|
|
796
|
+
const K0 = "_container_aca5y_1", Z0 = "_input_aca5y_1", Q0 = "_menu_item_aca5y_1", e1 = "_select_container_aca5y_11", c1 = "_selected_list_aca5y_39", n1 = "_selected_item_aca5y_46", l1 = "_standard_item_aca5y_46", t1 = "_unselect_btn_aca5y_57", r1 = "_cancel_icon_aca5y_69", o1 = "_toggle_button_aca5y_77", s1 = "_icon_arrow_aca5y_90", i1 = "_options_wrapper_aca5y_94", a1 = "_menu_list_aca5y_99", d1 = "_highlighted_aca5y_113", h1 = "_no_options_aca5y_117", m1 = "_error_aca5y_124", u1 = "_small_aca5y_128", p1 = "_medium_aca5y_140", V = {
|
|
797
797
|
container: K0,
|
|
798
798
|
input: Z0,
|
|
799
799
|
menu_item: Q0,
|
|
@@ -803,32 +803,32 @@ const K0 = "_container_aca5y_1", Z0 = "_input_aca5y_1", Q0 = "_menu_item_aca5y_1
|
|
|
803
803
|
standard_item: l1,
|
|
804
804
|
unselect_btn: t1,
|
|
805
805
|
cancel_icon: r1,
|
|
806
|
-
toggle_button:
|
|
807
|
-
icon_arrow:
|
|
806
|
+
toggle_button: o1,
|
|
807
|
+
icon_arrow: s1,
|
|
808
808
|
options_wrapper: i1,
|
|
809
809
|
menu_list: a1,
|
|
810
810
|
highlighted: d1,
|
|
811
811
|
no_options: h1,
|
|
812
|
-
error:
|
|
813
|
-
small:
|
|
812
|
+
error: m1,
|
|
813
|
+
small: u1,
|
|
814
814
|
medium: p1
|
|
815
|
-
}, w1 = "_loader_container_1sl0x_20", x1 = "_loader_1sl0x_20", v1 = "_loader_circle_1sl0x_31",
|
|
815
|
+
}, w1 = "_loader_container_1sl0x_20", x1 = "_loader_1sl0x_20", v1 = "_loader_circle_1sl0x_31", p0 = {
|
|
816
816
|
loader_container: w1,
|
|
817
817
|
loader: x1,
|
|
818
818
|
loader_circle: v1
|
|
819
|
-
},
|
|
819
|
+
}, _0 = ({
|
|
820
820
|
size: c = 40,
|
|
821
821
|
color: t = "var(--text-color)"
|
|
822
|
-
}) => /* @__PURE__ */ e.jsx("div", { className:
|
|
822
|
+
}) => /* @__PURE__ */ e.jsx("div", { className: p0.loader_container, children: /* @__PURE__ */ e.jsx(
|
|
823
823
|
"svg",
|
|
824
824
|
{
|
|
825
|
-
className:
|
|
825
|
+
className: p0.loader,
|
|
826
826
|
viewBox: "22 22 44 44",
|
|
827
827
|
style: { width: c, height: c },
|
|
828
828
|
children: /* @__PURE__ */ e.jsx(
|
|
829
829
|
"circle",
|
|
830
830
|
{
|
|
831
|
-
className:
|
|
831
|
+
className: p0.loader_circle,
|
|
832
832
|
cx: "44",
|
|
833
833
|
cy: "44",
|
|
834
834
|
r: "20",
|
|
@@ -840,115 +840,136 @@ const K0 = "_container_aca5y_1", Z0 = "_input_aca5y_1", Q0 = "_menu_item_aca5y_1
|
|
|
840
840
|
}
|
|
841
841
|
) }), _1 = "_container_183cy_1", f1 = {
|
|
842
842
|
container: _1
|
|
843
|
-
}
|
|
843
|
+
};
|
|
844
|
+
function i0({
|
|
844
845
|
containerRef: c,
|
|
845
846
|
handleClose: t,
|
|
846
847
|
children: r,
|
|
847
|
-
disabledMinWidth:
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
848
|
+
disabledMinWidth: o = !1,
|
|
849
|
+
x: n,
|
|
850
|
+
y: i,
|
|
851
|
+
style: s
|
|
852
|
+
}) {
|
|
853
|
+
const [w, m] = H(c?.current ? c.current.getBoundingClientRect().width : 0), d = O(null);
|
|
851
854
|
return A(() => {
|
|
852
|
-
|
|
853
|
-
|
|
855
|
+
let h = null, M = null;
|
|
856
|
+
if (typeof n == "number" && typeof i == "number" && d.current) {
|
|
857
|
+
const p = {
|
|
858
|
+
getBoundingClientRect: () => ({
|
|
859
|
+
x: n,
|
|
860
|
+
y: i,
|
|
861
|
+
left: n,
|
|
862
|
+
top: i,
|
|
863
|
+
right: n,
|
|
864
|
+
bottom: i,
|
|
865
|
+
width: 0,
|
|
866
|
+
height: 0,
|
|
867
|
+
toJSON: () => {
|
|
868
|
+
}
|
|
869
|
+
}),
|
|
870
|
+
contextElement: d.current
|
|
871
|
+
};
|
|
872
|
+
h = b0(p, d.current, {
|
|
873
|
+
placement: "bottom-start",
|
|
874
|
+
modifiers: [
|
|
875
|
+
{ name: "flip", options: { fallbackPlacements: ["top-start"] } },
|
|
876
|
+
{ name: "preventOverflow", options: { boundary: "viewport" } }
|
|
877
|
+
]
|
|
878
|
+
});
|
|
879
|
+
} else c?.current && d.current && (h = b0(c.current, d.current, {
|
|
854
880
|
placement: "bottom-start",
|
|
855
|
-
// Випадає вниз
|
|
856
881
|
modifiers: [
|
|
857
882
|
{ name: "flip", options: { fallbackPlacements: ["top-start"] } },
|
|
858
|
-
// Міняє позицію, якщо не вміщається
|
|
859
883
|
{ name: "preventOverflow", options: { boundary: "viewport" } }
|
|
860
|
-
// Запобігає виходу за межі екрану
|
|
861
884
|
]
|
|
862
|
-
}),
|
|
863
|
-
|
|
864
|
-
});
|
|
865
|
-
return
|
|
866
|
-
|
|
885
|
+
}), M = new ResizeObserver(() => {
|
|
886
|
+
m(c.current.getBoundingClientRect().width), h.update();
|
|
887
|
+
}), M.observe(c.current));
|
|
888
|
+
return () => {
|
|
889
|
+
M && c?.current && M.disconnect(), h && h.destroy();
|
|
867
890
|
};
|
|
868
|
-
}, [c
|
|
869
|
-
const
|
|
870
|
-
|
|
891
|
+
}, [c?.current, n, i]), A(() => {
|
|
892
|
+
const h = (M) => {
|
|
893
|
+
d.current && !d.current.contains(M.target) && (c?.current && c.current.contains(M.target) || t());
|
|
871
894
|
};
|
|
872
|
-
return document.addEventListener("mousedown",
|
|
873
|
-
}, [t, c
|
|
895
|
+
return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
|
|
896
|
+
}, [t, c?.current]), $0(
|
|
874
897
|
/* @__PURE__ */ e.jsx(
|
|
875
898
|
"div",
|
|
876
899
|
{
|
|
877
|
-
ref:
|
|
900
|
+
ref: d,
|
|
878
901
|
className: f1.container,
|
|
879
|
-
style: {
|
|
880
|
-
...l,
|
|
881
|
-
minWidth: s ? "unset" : `${d}px`
|
|
882
|
-
},
|
|
902
|
+
style: typeof n == "number" && typeof i == "number" ? { minWidth: "unset", position: "fixed", ...s } : { minWidth: o ? "unset" : `${w}px`, ...s },
|
|
883
903
|
tabIndex: -1,
|
|
884
904
|
children: r
|
|
885
905
|
}
|
|
886
906
|
),
|
|
887
907
|
document.body
|
|
888
908
|
);
|
|
889
|
-
}
|
|
909
|
+
}
|
|
910
|
+
const o3 = ({
|
|
890
911
|
options: c,
|
|
891
912
|
value: t,
|
|
892
913
|
onChange: r,
|
|
893
|
-
placeholder:
|
|
894
|
-
size:
|
|
895
|
-
multiple:
|
|
896
|
-
disabled:
|
|
897
|
-
error:
|
|
914
|
+
placeholder: o = "Не вибрано...",
|
|
915
|
+
size: n = "medium",
|
|
916
|
+
multiple: i = !1,
|
|
917
|
+
disabled: s = !1,
|
|
918
|
+
error: w = !1,
|
|
898
919
|
// freeSolo = false,
|
|
899
|
-
fullWidth:
|
|
900
|
-
customMenuItemRenderer:
|
|
901
|
-
isLoading:
|
|
920
|
+
fullWidth: m = !1,
|
|
921
|
+
customMenuItemRenderer: d,
|
|
922
|
+
isLoading: h,
|
|
902
923
|
className: M = "",
|
|
903
|
-
handleSearch:
|
|
924
|
+
handleSearch: p
|
|
904
925
|
}) => {
|
|
905
|
-
const [
|
|
906
|
-
|
|
926
|
+
const [u, z] = H(!1), [x, b] = H(-1), [a, _] = H(""), k = O(null), N = O(null), L = O(null), F = O({}), B = z0(() => i ? t || [] : t ? [t] : [], [t, i]), W = (v) => v.title || v.content || v.name || "", j = z0(() => c.filter((v) => W(v).toLowerCase().includes(a.toLowerCase())), [c, a]), J = a0((v, y) => {
|
|
927
|
+
F.current[v] = y;
|
|
907
928
|
}, []);
|
|
908
929
|
A(() => {
|
|
909
|
-
|
|
910
|
-
const
|
|
911
|
-
|
|
912
|
-
top:
|
|
930
|
+
u && setTimeout(() => {
|
|
931
|
+
const v = B[0]?.id, y = F.current[v];
|
|
932
|
+
y && L.current && L.current.scrollTo({
|
|
933
|
+
top: y.offsetTop - L.current.offsetTop,
|
|
913
934
|
behavior: "smooth"
|
|
914
935
|
});
|
|
915
936
|
}, 100);
|
|
916
|
-
}, [
|
|
917
|
-
const
|
|
918
|
-
|
|
919
|
-
},
|
|
920
|
-
if (
|
|
921
|
-
const
|
|
922
|
-
r(
|
|
937
|
+
}, [u]);
|
|
938
|
+
const d0 = (v) => {
|
|
939
|
+
_(v), p(v), b(-1), u || z(!0);
|
|
940
|
+
}, U = (v) => {
|
|
941
|
+
if (i) {
|
|
942
|
+
const y = [...B, v];
|
|
943
|
+
r(y);
|
|
923
944
|
} else
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
},
|
|
927
|
-
if (
|
|
928
|
-
const P =
|
|
929
|
-
(
|
|
945
|
+
z(!1), r(v);
|
|
946
|
+
_("");
|
|
947
|
+
}, q = (v, y) => {
|
|
948
|
+
if (y?.stopPropagation(), i) {
|
|
949
|
+
const P = B.filter(
|
|
950
|
+
(D) => D.id !== v.id
|
|
930
951
|
);
|
|
931
952
|
r(
|
|
932
953
|
P.length ? P : null
|
|
933
954
|
);
|
|
934
955
|
} else
|
|
935
956
|
r(null);
|
|
936
|
-
},
|
|
937
|
-
switch (
|
|
957
|
+
}, h0 = (v) => {
|
|
958
|
+
switch (v.key) {
|
|
938
959
|
case "ArrowDown":
|
|
939
|
-
|
|
960
|
+
v.preventDefault(), b((y) => y < j.length - 1 ? y + 1 : y);
|
|
940
961
|
break;
|
|
941
962
|
case "ArrowUp":
|
|
942
|
-
|
|
963
|
+
v.preventDefault(), b((y) => y > 0 ? y - 1 : y);
|
|
943
964
|
break;
|
|
944
965
|
case "Enter":
|
|
945
|
-
|
|
966
|
+
v.preventDefault(), x >= 0 && j[x] && !B.some((y) => y.id === x) && U(j[x]);
|
|
946
967
|
break;
|
|
947
968
|
case "Escape":
|
|
948
|
-
|
|
969
|
+
z(!1);
|
|
949
970
|
break;
|
|
950
971
|
case "Backspace":
|
|
951
|
-
!
|
|
972
|
+
!a && B.length > 0 && q(B[B.length - 1]);
|
|
952
973
|
break;
|
|
953
974
|
default:
|
|
954
975
|
return null;
|
|
@@ -957,99 +978,99 @@ const K0 = "_container_aca5y_1", Z0 = "_input_aca5y_1", Q0 = "_menu_item_aca5y_1
|
|
|
957
978
|
return /* @__PURE__ */ e.jsxs(
|
|
958
979
|
"div",
|
|
959
980
|
{
|
|
960
|
-
ref:
|
|
961
|
-
className: `${
|
|
962
|
-
onClick: () => !
|
|
981
|
+
ref: k,
|
|
982
|
+
className: `${V.container} ${V[n]} ${M} ${w ? V.error : ""}`,
|
|
983
|
+
onClick: () => !s && N.current?.focus(),
|
|
963
984
|
style: {
|
|
964
|
-
width:
|
|
985
|
+
width: m ? "100%" : "min-content"
|
|
965
986
|
},
|
|
966
987
|
children: [
|
|
967
|
-
|
|
968
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
969
|
-
|
|
988
|
+
h && /* @__PURE__ */ e.jsx(_0, {}),
|
|
989
|
+
/* @__PURE__ */ e.jsxs("div", { className: V.select_container, children: [
|
|
990
|
+
B.length > 0 && /* @__PURE__ */ e.jsx("ul", { className: V.selected_list, children: B.map((v) => /* @__PURE__ */ e.jsxs(
|
|
970
991
|
"li",
|
|
971
992
|
{
|
|
972
|
-
className:
|
|
993
|
+
className: V.selected_item,
|
|
973
994
|
children: [
|
|
974
|
-
|
|
975
|
-
!
|
|
995
|
+
W(v),
|
|
996
|
+
!s && /* @__PURE__ */ e.jsx(
|
|
976
997
|
"button",
|
|
977
998
|
{
|
|
978
999
|
type: "button",
|
|
979
|
-
className:
|
|
980
|
-
onClick: (
|
|
1000
|
+
className: V.unselect_btn,
|
|
1001
|
+
onClick: (y) => q(v, y),
|
|
981
1002
|
children: /* @__PURE__ */ e.jsx(
|
|
982
|
-
|
|
1003
|
+
I,
|
|
983
1004
|
{
|
|
984
1005
|
name: "cancel",
|
|
985
1006
|
width: 12,
|
|
986
1007
|
height: 12,
|
|
987
|
-
className:
|
|
1008
|
+
className: V.cancel_icon
|
|
988
1009
|
}
|
|
989
1010
|
)
|
|
990
1011
|
}
|
|
991
1012
|
)
|
|
992
1013
|
]
|
|
993
1014
|
},
|
|
994
|
-
|
|
1015
|
+
v.id
|
|
995
1016
|
)) }),
|
|
996
1017
|
/* @__PURE__ */ e.jsx(
|
|
997
1018
|
"input",
|
|
998
1019
|
{
|
|
999
|
-
ref:
|
|
1020
|
+
ref: N,
|
|
1000
1021
|
type: "text",
|
|
1001
|
-
value:
|
|
1002
|
-
onChange: (
|
|
1003
|
-
onFocus: () =>
|
|
1004
|
-
onKeyDown:
|
|
1005
|
-
placeholder:
|
|
1006
|
-
disabled:
|
|
1007
|
-
className:
|
|
1022
|
+
value: a,
|
|
1023
|
+
onChange: (v) => d0(v.target.value),
|
|
1024
|
+
onFocus: () => z(!0),
|
|
1025
|
+
onKeyDown: h0,
|
|
1026
|
+
placeholder: B.length === 0 ? o : "",
|
|
1027
|
+
disabled: s,
|
|
1028
|
+
className: V.input
|
|
1008
1029
|
}
|
|
1009
1030
|
),
|
|
1010
|
-
!
|
|
1031
|
+
!s && /* @__PURE__ */ e.jsx(
|
|
1011
1032
|
"button",
|
|
1012
1033
|
{
|
|
1013
1034
|
type: "button",
|
|
1014
|
-
className:
|
|
1015
|
-
onClick: () =>
|
|
1035
|
+
className: V.toggle_button,
|
|
1036
|
+
onClick: () => z(!u),
|
|
1016
1037
|
children: /* @__PURE__ */ e.jsx(
|
|
1017
|
-
|
|
1038
|
+
I,
|
|
1018
1039
|
{
|
|
1019
|
-
name: `arrow-${
|
|
1040
|
+
name: `arrow-${u ? "up" : "down"}`,
|
|
1020
1041
|
width: 12,
|
|
1021
1042
|
height: 12,
|
|
1022
|
-
className:
|
|
1043
|
+
className: V.icon_arrow
|
|
1023
1044
|
}
|
|
1024
1045
|
)
|
|
1025
1046
|
}
|
|
1026
1047
|
)
|
|
1027
1048
|
] }),
|
|
1028
|
-
|
|
1029
|
-
|
|
1049
|
+
u && !s && /* @__PURE__ */ e.jsx(
|
|
1050
|
+
i0,
|
|
1030
1051
|
{
|
|
1031
|
-
containerRef:
|
|
1052
|
+
containerRef: k,
|
|
1032
1053
|
handleClose: () => {
|
|
1033
|
-
|
|
1054
|
+
z(!1);
|
|
1034
1055
|
},
|
|
1035
|
-
children: /* @__PURE__ */ e.jsx("ul", { className:
|
|
1036
|
-
const P =
|
|
1056
|
+
children: /* @__PURE__ */ e.jsx("ul", { className: V.menu_list, ref: L, children: j.length === 0 ? /* @__PURE__ */ e.jsx("li", { className: V.no_options, children: "No options" }) : j.map((v, y) => {
|
|
1057
|
+
const P = B.some((D) => D.id === v.id);
|
|
1037
1058
|
return /* @__PURE__ */ e.jsx(
|
|
1038
1059
|
"li",
|
|
1039
1060
|
{
|
|
1040
|
-
ref: (
|
|
1061
|
+
ref: (D) => J(v.id, D),
|
|
1041
1062
|
className: `
|
|
1042
|
-
${
|
|
1043
|
-
${
|
|
1044
|
-
${P ?
|
|
1063
|
+
${V.menu_item}
|
|
1064
|
+
${y === x ? V.highlighted : ""}
|
|
1065
|
+
${P ? V.highlighted : ""}
|
|
1045
1066
|
`,
|
|
1046
|
-
onClick: (
|
|
1047
|
-
|
|
1067
|
+
onClick: (D) => {
|
|
1068
|
+
D.stopPropagation(), P ? q(v) : U(v);
|
|
1048
1069
|
},
|
|
1049
|
-
onMouseEnter: () =>
|
|
1050
|
-
children:
|
|
1070
|
+
onMouseEnter: () => b(y),
|
|
1071
|
+
children: d ? d(v, P) : W(v)
|
|
1051
1072
|
},
|
|
1052
|
-
|
|
1073
|
+
v.id
|
|
1053
1074
|
);
|
|
1054
1075
|
}) })
|
|
1055
1076
|
}
|
|
@@ -1057,40 +1078,40 @@ const K0 = "_container_aca5y_1", Z0 = "_input_aca5y_1", Q0 = "_menu_item_aca5y_1
|
|
|
1057
1078
|
]
|
|
1058
1079
|
}
|
|
1059
1080
|
);
|
|
1060
|
-
}, M1 = "_btn_v4so5_1", z1 = "_icon_padding_v4so5_15", b1 = "_circle_v4so5_19", y1 = "_icon_v4so5_15", k1 = "_icon_btn_v4so5_32",
|
|
1081
|
+
}, M1 = "_btn_v4so5_1", z1 = "_icon_padding_v4so5_15", b1 = "_circle_v4so5_19", y1 = "_icon_v4so5_15", k1 = "_icon_btn_v4so5_32", g1 = "_primary_v4so5_67", C1 = "_secondary_v4so5_82", S1 = "_transparent_v4so5_97", j1 = "_disabled_v4so5_114", N1 = "_active_v4so5_130", R = {
|
|
1061
1082
|
btn: M1,
|
|
1062
1083
|
icon_padding: z1,
|
|
1063
1084
|
circle: b1,
|
|
1064
1085
|
icon: y1,
|
|
1065
1086
|
icon_btn: k1,
|
|
1066
|
-
primary:
|
|
1067
|
-
secondary:
|
|
1087
|
+
primary: g1,
|
|
1088
|
+
secondary: C1,
|
|
1068
1089
|
transparent: S1,
|
|
1069
1090
|
disabled: j1,
|
|
1070
1091
|
active: N1
|
|
1071
1092
|
};
|
|
1072
|
-
function
|
|
1093
|
+
function v0({
|
|
1073
1094
|
icon: c,
|
|
1074
1095
|
children: t,
|
|
1075
1096
|
type: r = "button",
|
|
1076
|
-
variant:
|
|
1077
|
-
isActive:
|
|
1078
|
-
iconOptions:
|
|
1097
|
+
variant: o = "primary",
|
|
1098
|
+
isActive: n = !1,
|
|
1099
|
+
iconOptions: i = {
|
|
1079
1100
|
height: 15,
|
|
1080
1101
|
widht: 15,
|
|
1081
1102
|
padding: 7
|
|
1082
1103
|
},
|
|
1083
|
-
onFileSelect:
|
|
1084
|
-
multipleFile:
|
|
1085
|
-
onClick:
|
|
1086
|
-
className:
|
|
1087
|
-
disabled:
|
|
1104
|
+
onFileSelect: s,
|
|
1105
|
+
multipleFile: w = !1,
|
|
1106
|
+
onClick: m,
|
|
1107
|
+
className: d,
|
|
1108
|
+
disabled: h,
|
|
1088
1109
|
...M
|
|
1089
1110
|
}) {
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1092
|
-
},
|
|
1093
|
-
|
|
1111
|
+
const p = O(null), u = (x) => {
|
|
1112
|
+
x.target.files && s && s(x.target.files);
|
|
1113
|
+
}, z = () => {
|
|
1114
|
+
p.current && p.current.click();
|
|
1094
1115
|
};
|
|
1095
1116
|
return /* @__PURE__ */ e.jsxs(
|
|
1096
1117
|
"button",
|
|
@@ -1098,108 +1119,108 @@ function x0({
|
|
|
1098
1119
|
...M,
|
|
1099
1120
|
type: r,
|
|
1100
1121
|
className: `
|
|
1101
|
-
${
|
|
1102
|
-
${
|
|
1103
|
-
${
|
|
1104
|
-
${
|
|
1105
|
-
${
|
|
1122
|
+
${R.btn}
|
|
1123
|
+
${R[o]} ${c ? R.icon_padding : ""}
|
|
1124
|
+
${n ? R.active : ""}
|
|
1125
|
+
${h ? R.disabled : ""}
|
|
1126
|
+
${d}
|
|
1106
1127
|
`,
|
|
1107
|
-
disabled:
|
|
1108
|
-
onClick:
|
|
1128
|
+
disabled: h,
|
|
1129
|
+
onClick: s ? z : m,
|
|
1109
1130
|
children: [
|
|
1110
1131
|
t,
|
|
1111
1132
|
c && /* @__PURE__ */ e.jsx(
|
|
1112
1133
|
"div",
|
|
1113
1134
|
{
|
|
1114
|
-
className:
|
|
1135
|
+
className: R.circle,
|
|
1115
1136
|
style: {
|
|
1116
|
-
padding: `${
|
|
1137
|
+
padding: `${i.padding}px`
|
|
1117
1138
|
},
|
|
1118
1139
|
children: /* @__PURE__ */ e.jsx(
|
|
1119
|
-
|
|
1140
|
+
I,
|
|
1120
1141
|
{
|
|
1121
1142
|
name: c,
|
|
1122
|
-
width:
|
|
1123
|
-
height:
|
|
1124
|
-
className:
|
|
1143
|
+
width: i.widht,
|
|
1144
|
+
height: i.height,
|
|
1145
|
+
className: R.icon
|
|
1125
1146
|
}
|
|
1126
1147
|
)
|
|
1127
1148
|
}
|
|
1128
1149
|
),
|
|
1129
|
-
!!
|
|
1150
|
+
!!s && /* @__PURE__ */ e.jsx(
|
|
1130
1151
|
"input",
|
|
1131
1152
|
{
|
|
1132
1153
|
type: "file",
|
|
1133
1154
|
hidden: !0,
|
|
1134
|
-
multiple:
|
|
1135
|
-
ref:
|
|
1136
|
-
onChange:
|
|
1137
|
-
disabled:
|
|
1155
|
+
multiple: w,
|
|
1156
|
+
ref: p,
|
|
1157
|
+
onChange: u,
|
|
1158
|
+
disabled: h
|
|
1138
1159
|
}
|
|
1139
1160
|
)
|
|
1140
1161
|
]
|
|
1141
1162
|
}
|
|
1142
1163
|
);
|
|
1143
1164
|
}
|
|
1144
|
-
function
|
|
1165
|
+
function Y({
|
|
1145
1166
|
icon: c,
|
|
1146
1167
|
size: t = 28,
|
|
1147
1168
|
type: r = "button",
|
|
1148
|
-
variant:
|
|
1149
|
-
isActive:
|
|
1150
|
-
className:
|
|
1151
|
-
onFileSelect:
|
|
1152
|
-
onClick:
|
|
1153
|
-
children:
|
|
1154
|
-
style:
|
|
1155
|
-
...
|
|
1169
|
+
variant: o = "primary",
|
|
1170
|
+
isActive: n = !1,
|
|
1171
|
+
className: i,
|
|
1172
|
+
onFileSelect: s,
|
|
1173
|
+
onClick: w,
|
|
1174
|
+
children: m,
|
|
1175
|
+
style: d,
|
|
1176
|
+
...h
|
|
1156
1177
|
}) {
|
|
1157
|
-
const M =
|
|
1158
|
-
|
|
1159
|
-
},
|
|
1178
|
+
const M = O(null), p = (z) => {
|
|
1179
|
+
z.target.files && s && s(z.target.files);
|
|
1180
|
+
}, u = () => {
|
|
1160
1181
|
M.current && M.current.click();
|
|
1161
1182
|
};
|
|
1162
1183
|
return /* @__PURE__ */ e.jsxs(
|
|
1163
1184
|
"button",
|
|
1164
1185
|
{
|
|
1165
|
-
...
|
|
1186
|
+
...h,
|
|
1166
1187
|
type: r,
|
|
1167
|
-
className: `${
|
|
1168
|
-
onClick:
|
|
1188
|
+
className: `${R.icon_btn} ${R[o]} ${n ? R.active : ""} ${i}`,
|
|
1189
|
+
onClick: s ? u : w,
|
|
1169
1190
|
style: {
|
|
1170
|
-
...
|
|
1191
|
+
...d,
|
|
1171
1192
|
width: t,
|
|
1172
1193
|
height: t
|
|
1173
1194
|
},
|
|
1174
1195
|
children: [
|
|
1175
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1176
|
-
|
|
1196
|
+
/* @__PURE__ */ e.jsx("div", { className: R.circle, children: /* @__PURE__ */ e.jsx(
|
|
1197
|
+
I,
|
|
1177
1198
|
{
|
|
1178
1199
|
name: c,
|
|
1179
|
-
className:
|
|
1200
|
+
className: R.icon
|
|
1180
1201
|
}
|
|
1181
1202
|
) }),
|
|
1182
|
-
|
|
1183
|
-
!!
|
|
1203
|
+
m,
|
|
1204
|
+
!!s && /* @__PURE__ */ e.jsx(
|
|
1184
1205
|
"input",
|
|
1185
1206
|
{
|
|
1186
1207
|
type: "file",
|
|
1187
1208
|
hidden: !0,
|
|
1188
1209
|
multiple: !0,
|
|
1189
1210
|
ref: M,
|
|
1190
|
-
onChange:
|
|
1211
|
+
onChange: p
|
|
1191
1212
|
}
|
|
1192
1213
|
)
|
|
1193
1214
|
]
|
|
1194
1215
|
}
|
|
1195
1216
|
);
|
|
1196
1217
|
}
|
|
1197
|
-
const B1 = "_container_i5g5b_1", V1 = "_title_block_i5g5b_11", E1 = "_month_i5g5b_17",
|
|
1218
|
+
const B1 = "_container_i5g5b_1", V1 = "_title_block_i5g5b_11", E1 = "_month_i5g5b_17", $1 = "_week_days_list_i5g5b_31", H1 = "_item_i5g5b_38", T1 = "_dates_list_i5g5b_55", L1 = "_date_btn_i5g5b_77", R1 = "_active_i5g5b_91", O1 = "_past_date_i5g5b_95", D1 = "_months_list_i5g5b_106", P1 = "_month_change_btn_i5g5b_118", E = {
|
|
1198
1219
|
container: B1,
|
|
1199
1220
|
title_block: V1,
|
|
1200
1221
|
month: E1,
|
|
1201
|
-
week_days_list:
|
|
1202
|
-
item:
|
|
1222
|
+
week_days_list: $1,
|
|
1223
|
+
item: H1,
|
|
1203
1224
|
dates_list: T1,
|
|
1204
1225
|
date_btn: L1,
|
|
1205
1226
|
active: R1,
|
|
@@ -1215,7 +1236,7 @@ function I1(c) {
|
|
|
1215
1236
|
const t = /* @__PURE__ */ new Date();
|
|
1216
1237
|
return t.setHours(0, 0, 0, 0), c.setHours(0, 0, 0, 0), c < t;
|
|
1217
1238
|
}
|
|
1218
|
-
const
|
|
1239
|
+
const S0 = [
|
|
1219
1240
|
"Січень",
|
|
1220
1241
|
"Лютий",
|
|
1221
1242
|
"Березень",
|
|
@@ -1233,130 +1254,130 @@ function Y1({
|
|
|
1233
1254
|
value: c,
|
|
1234
1255
|
onChange: t,
|
|
1235
1256
|
blockPastDates: r = !1,
|
|
1236
|
-
type:
|
|
1257
|
+
type: o = "date"
|
|
1237
1258
|
}) {
|
|
1238
|
-
const [
|
|
1239
|
-
const
|
|
1240
|
-
for (let
|
|
1241
|
-
const
|
|
1242
|
-
|
|
1243
|
-
date:
|
|
1259
|
+
const [n, i] = H(new Date(c)), [s, w] = H(o !== "date"), m = a0((p) => {
|
|
1260
|
+
const u = [], z = p.getFullYear(), x = p.getMonth(), b = new Date(z, x + 1, 0).getDate();
|
|
1261
|
+
for (let k = 1; k <= b; k++) {
|
|
1262
|
+
const N = new Date(z, x, k);
|
|
1263
|
+
u.push({
|
|
1264
|
+
date: N,
|
|
1244
1265
|
isCurrentMonth: !0,
|
|
1245
|
-
isPastDate: I1(
|
|
1266
|
+
isPastDate: I1(N)
|
|
1246
1267
|
});
|
|
1247
1268
|
}
|
|
1248
|
-
const
|
|
1249
|
-
if (
|
|
1250
|
-
for (let
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1253
|
-
date:
|
|
1269
|
+
const a = (u[0].date.getDay() === 0 ? 7 : u[0].date.getDay()) - 1, _ = (u[u.length - 1].date.getDay() === 0 ? 7 : u[u.length - 1].date.getDay()) - 1;
|
|
1270
|
+
if (a > 0)
|
|
1271
|
+
for (let k = 1; k <= a; k++) {
|
|
1272
|
+
const N = new Date(z, x, 1 - k);
|
|
1273
|
+
u.unshift({
|
|
1274
|
+
date: N,
|
|
1254
1275
|
isCurrentMonth: !1,
|
|
1255
1276
|
isPastDate: !0
|
|
1256
1277
|
});
|
|
1257
1278
|
}
|
|
1258
|
-
if (
|
|
1259
|
-
for (let
|
|
1260
|
-
const
|
|
1261
|
-
|
|
1262
|
-
date:
|
|
1279
|
+
if (_ < 6)
|
|
1280
|
+
for (let k = 1; k <= 6 - _; k++) {
|
|
1281
|
+
const N = new Date(z, x, b + k);
|
|
1282
|
+
u.push({
|
|
1283
|
+
date: N,
|
|
1263
1284
|
isCurrentMonth: !1,
|
|
1264
1285
|
isPastDate: !1
|
|
1265
1286
|
});
|
|
1266
1287
|
}
|
|
1267
|
-
return
|
|
1268
|
-
}, [
|
|
1269
|
-
|
|
1270
|
-
},
|
|
1271
|
-
|
|
1272
|
-
}, M = (
|
|
1273
|
-
|
|
1288
|
+
return u;
|
|
1289
|
+
}, [n]), d = () => {
|
|
1290
|
+
i(s ? new Date(n.getFullYear() + 1, n.getMonth(), 1) : new Date(n.getFullYear(), n.getMonth() + 1, 1));
|
|
1291
|
+
}, h = () => {
|
|
1292
|
+
i(s ? new Date(n.getFullYear() - 1, n.getMonth(), 1) : new Date(n.getFullYear(), n.getMonth() - 1, 1));
|
|
1293
|
+
}, M = (p) => {
|
|
1294
|
+
s && (i(new Date(n.getFullYear(), p, 1)), w(!1));
|
|
1274
1295
|
};
|
|
1275
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
1276
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1296
|
+
return /* @__PURE__ */ e.jsxs("div", { className: E.container, children: [
|
|
1297
|
+
/* @__PURE__ */ e.jsxs("div", { className: E.title_block, children: [
|
|
1277
1298
|
/* @__PURE__ */ e.jsx(
|
|
1278
|
-
|
|
1299
|
+
Y,
|
|
1279
1300
|
{
|
|
1280
1301
|
icon: "arrow-left",
|
|
1281
1302
|
variant: "secondary",
|
|
1282
|
-
onClick:
|
|
1303
|
+
onClick: h
|
|
1283
1304
|
}
|
|
1284
1305
|
),
|
|
1285
|
-
|
|
1306
|
+
s ? /* @__PURE__ */ e.jsx("p", { className: E.month, children: n.getFullYear() }) : /* @__PURE__ */ e.jsxs(
|
|
1286
1307
|
"button",
|
|
1287
1308
|
{
|
|
1288
1309
|
type: "button",
|
|
1289
|
-
className:
|
|
1310
|
+
className: E.month,
|
|
1290
1311
|
onClick: () => {
|
|
1291
|
-
|
|
1312
|
+
w(!0);
|
|
1292
1313
|
},
|
|
1293
1314
|
children: [
|
|
1294
|
-
|
|
1315
|
+
S0[n.getMonth()],
|
|
1295
1316
|
" ",
|
|
1296
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
1317
|
+
/* @__PURE__ */ e.jsx("span", { children: n.getFullYear() })
|
|
1297
1318
|
]
|
|
1298
1319
|
}
|
|
1299
1320
|
),
|
|
1300
1321
|
/* @__PURE__ */ e.jsx(
|
|
1301
|
-
|
|
1322
|
+
Y,
|
|
1302
1323
|
{
|
|
1303
1324
|
icon: "arrow-right",
|
|
1304
1325
|
variant: "secondary",
|
|
1305
|
-
onClick:
|
|
1326
|
+
onClick: d
|
|
1306
1327
|
}
|
|
1307
1328
|
)
|
|
1308
1329
|
] }),
|
|
1309
|
-
|
|
1330
|
+
s ? /* @__PURE__ */ e.jsx("ul", { className: E.months_list, children: S0.map((p, u) => /* @__PURE__ */ e.jsx(
|
|
1310
1331
|
"li",
|
|
1311
1332
|
{
|
|
1312
|
-
className:
|
|
1333
|
+
className: E.item,
|
|
1313
1334
|
children: /* @__PURE__ */ e.jsx(
|
|
1314
1335
|
"button",
|
|
1315
1336
|
{
|
|
1316
1337
|
type: "button",
|
|
1317
|
-
className:
|
|
1338
|
+
className: E.month_change_btn,
|
|
1318
1339
|
onClick: () => {
|
|
1319
|
-
|
|
1340
|
+
o === "date" ? M(u) : o === "month" && t(new Date(n.getFullYear(), u, 1));
|
|
1320
1341
|
},
|
|
1321
|
-
children:
|
|
1342
|
+
children: p
|
|
1322
1343
|
}
|
|
1323
1344
|
)
|
|
1324
1345
|
},
|
|
1325
|
-
|
|
1346
|
+
u
|
|
1326
1347
|
)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1327
|
-
/* @__PURE__ */ e.jsx("ul", { className:
|
|
1328
|
-
/* @__PURE__ */ e.jsx("ul", { className:
|
|
1348
|
+
/* @__PURE__ */ e.jsx("ul", { className: E.week_days_list, children: F1.map((p, u) => /* @__PURE__ */ e.jsx("li", { className: E.item, children: p }, u)) }),
|
|
1349
|
+
/* @__PURE__ */ e.jsx("ul", { className: E.dates_list, children: m(n).map((p, u) => /* @__PURE__ */ e.jsx(
|
|
1329
1350
|
"li",
|
|
1330
1351
|
{
|
|
1331
|
-
className:
|
|
1352
|
+
className: E.item,
|
|
1332
1353
|
children: /* @__PURE__ */ e.jsx(
|
|
1333
1354
|
"button",
|
|
1334
1355
|
{
|
|
1335
1356
|
type: "button",
|
|
1336
1357
|
className: `
|
|
1337
|
-
${
|
|
1338
|
-
${A1(
|
|
1339
|
-
${!
|
|
1340
|
-
${r &&
|
|
1358
|
+
${E.date_btn}
|
|
1359
|
+
${A1(p.date, c) && E.active}
|
|
1360
|
+
${!p.isCurrentMonth && E.past_date}
|
|
1361
|
+
${r && p.isPastDate && E.past_date}
|
|
1341
1362
|
`,
|
|
1342
1363
|
onClick: () => {
|
|
1343
|
-
t(
|
|
1364
|
+
t(p.date);
|
|
1344
1365
|
},
|
|
1345
|
-
disabled: r &&
|
|
1346
|
-
children:
|
|
1366
|
+
disabled: r && p.isPastDate,
|
|
1367
|
+
children: p.date.getDate()
|
|
1347
1368
|
}
|
|
1348
1369
|
)
|
|
1349
1370
|
},
|
|
1350
|
-
|
|
1371
|
+
u
|
|
1351
1372
|
)) })
|
|
1352
1373
|
] })
|
|
1353
1374
|
] });
|
|
1354
1375
|
}
|
|
1355
|
-
const W1 = "_custom_checkbox_1ni1n_11",
|
|
1376
|
+
const W1 = "_custom_checkbox_1ni1n_11", J1 = "_checkbox_1ni1n_19", U1 = "_box_1ni1n_22", q1 = "_icon_1ni1n_35", X1 = "_ripple_1ni1n_42", e0 = {
|
|
1356
1377
|
custom_checkbox: W1,
|
|
1357
|
-
checkbox:
|
|
1358
|
-
box:
|
|
1359
|
-
icon:
|
|
1378
|
+
checkbox: J1,
|
|
1379
|
+
box: U1,
|
|
1380
|
+
icon: q1,
|
|
1360
1381
|
ripple: X1
|
|
1361
1382
|
};
|
|
1362
1383
|
function G1({
|
|
@@ -1364,22 +1385,22 @@ function G1({
|
|
|
1364
1385
|
id: t,
|
|
1365
1386
|
...r
|
|
1366
1387
|
}) {
|
|
1367
|
-
const [
|
|
1368
|
-
|
|
1388
|
+
const [o, n] = H(!1), i = () => {
|
|
1389
|
+
n(!0), setTimeout(() => n(!1), 600);
|
|
1369
1390
|
};
|
|
1370
1391
|
return /* @__PURE__ */ e.jsxs(
|
|
1371
1392
|
"label",
|
|
1372
1393
|
{
|
|
1373
1394
|
className: `${e0.custom_checkbox} ${c}`,
|
|
1374
|
-
onMouseDown:
|
|
1395
|
+
onMouseDown: i,
|
|
1375
1396
|
htmlFor: t,
|
|
1376
|
-
onClick: (
|
|
1397
|
+
onClick: (s) => s.stopPropagation(),
|
|
1377
1398
|
children: [
|
|
1378
1399
|
/* @__PURE__ */ e.jsx("input", { id: t, type: "checkbox", className: e0.checkbox, ...r }),
|
|
1379
1400
|
/* @__PURE__ */ e.jsxs("span", { className: e0.box, children: [
|
|
1380
|
-
|
|
1401
|
+
o && /* @__PURE__ */ e.jsx("span", { className: e0.ripple }),
|
|
1381
1402
|
/* @__PURE__ */ e.jsx(
|
|
1382
|
-
|
|
1403
|
+
I,
|
|
1383
1404
|
{
|
|
1384
1405
|
name: "check",
|
|
1385
1406
|
width: 12,
|
|
@@ -1392,7 +1413,7 @@ function G1({
|
|
|
1392
1413
|
}
|
|
1393
1414
|
);
|
|
1394
1415
|
}
|
|
1395
|
-
const K1 = "_backdrop_rj5zo_17", Z1 = "_backdropEnter_rj5zo_29", Q1 = "_backdropExit_rj5zo_33", e2 = "_container_rj5zo_37", c2 = "_side_rj5zo_43", n2 = "_btn_close_rj5zo_53", l2 = "_center_rj5zo_79", t2 = "_title_block_rj5zo_116", r2 = "_title_rj5zo_116",
|
|
1416
|
+
const K1 = "_backdrop_rj5zo_17", Z1 = "_backdropEnter_rj5zo_29", Q1 = "_backdropExit_rj5zo_33", e2 = "_container_rj5zo_37", c2 = "_side_rj5zo_43", n2 = "_btn_close_rj5zo_53", l2 = "_center_rj5zo_79", t2 = "_title_block_rj5zo_116", r2 = "_title_rj5zo_116", o2 = "_second_title_rj5zo_128", $ = {
|
|
1396
1417
|
backdrop: K1,
|
|
1397
1418
|
backdropEnter: Z1,
|
|
1398
1419
|
backdropExit: Q1,
|
|
@@ -1402,7 +1423,7 @@ const K1 = "_backdrop_rj5zo_17", Z1 = "_backdropEnter_rj5zo_29", Q1 = "_backdrop
|
|
|
1402
1423
|
center: l2,
|
|
1403
1424
|
title_block: t2,
|
|
1404
1425
|
title: r2,
|
|
1405
|
-
second_title:
|
|
1426
|
+
second_title: o2,
|
|
1406
1427
|
"center_open-enter": "_center_open-enter_rj5zo_134",
|
|
1407
1428
|
"center_open-enter-active": "_center_open-enter-active_rj5zo_138",
|
|
1408
1429
|
"center_open-exit": "_center_open-exit_rj5zo_143",
|
|
@@ -1411,193 +1432,193 @@ const K1 = "_backdrop_rj5zo_17", Z1 = "_backdropEnter_rj5zo_29", Q1 = "_backdrop
|
|
|
1411
1432
|
"side_open-enter-active": "_side_open-enter-active_rj5zo_156",
|
|
1412
1433
|
"side_open-exit": "_side_open-exit_rj5zo_161",
|
|
1413
1434
|
"side_open-exit-active": "_side_open-exit-active_rj5zo_165"
|
|
1414
|
-
},
|
|
1435
|
+
}, j0 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, N0 = (c) => !!c.dispatchFromDevtools && typeof c.dispatch == "function", l0 = /* @__PURE__ */ new Map(), o0 = (c) => {
|
|
1415
1436
|
const t = l0.get(c);
|
|
1416
1437
|
return t ? Object.fromEntries(
|
|
1417
|
-
Object.entries(t.stores).map(([r,
|
|
1438
|
+
Object.entries(t.stores).map(([r, o]) => [r, o.getState()])
|
|
1418
1439
|
) : {};
|
|
1419
|
-
},
|
|
1440
|
+
}, s2 = (c, t, r) => {
|
|
1420
1441
|
if (c === void 0)
|
|
1421
1442
|
return {
|
|
1422
1443
|
type: "untracked",
|
|
1423
1444
|
connection: t.connect(r)
|
|
1424
1445
|
};
|
|
1425
|
-
const
|
|
1426
|
-
if (
|
|
1427
|
-
return { type: "tracked", store: c, ...
|
|
1428
|
-
const
|
|
1446
|
+
const o = l0.get(r.name);
|
|
1447
|
+
if (o)
|
|
1448
|
+
return { type: "tracked", store: c, ...o };
|
|
1449
|
+
const n = {
|
|
1429
1450
|
connection: t.connect(r),
|
|
1430
1451
|
stores: {}
|
|
1431
1452
|
};
|
|
1432
|
-
return l0.set(r.name,
|
|
1453
|
+
return l0.set(r.name, n), { type: "tracked", store: c, ...n };
|
|
1433
1454
|
}, i2 = (c, t) => {
|
|
1434
1455
|
if (t === void 0) return;
|
|
1435
1456
|
const r = l0.get(c);
|
|
1436
1457
|
r && (delete r.stores[t], Object.keys(r.stores).length === 0 && l0.delete(c));
|
|
1437
1458
|
}, a2 = /.+ (.+) .+/, d2 = /^([^@]+)@/;
|
|
1438
1459
|
function h2(c) {
|
|
1439
|
-
var t, r,
|
|
1460
|
+
var t, r, o;
|
|
1440
1461
|
if (!c) return;
|
|
1441
|
-
const
|
|
1442
|
-
`),
|
|
1443
|
-
(
|
|
1462
|
+
const n = c.split(`
|
|
1463
|
+
`), i = n.findIndex(
|
|
1464
|
+
(w) => w.includes("api.setState")
|
|
1444
1465
|
);
|
|
1445
|
-
if (
|
|
1446
|
-
const
|
|
1447
|
-
return ((r = a2.exec(
|
|
1466
|
+
if (i < 0) return;
|
|
1467
|
+
const s = ((t = n[i + 1]) == null ? void 0 : t.trim()) || "";
|
|
1468
|
+
return ((r = a2.exec(s)) == null ? void 0 : r[1]) || ((o = d2.exec(s)) == null ? void 0 : o[1]);
|
|
1448
1469
|
}
|
|
1449
|
-
const
|
|
1450
|
-
const { enabled:
|
|
1451
|
-
let
|
|
1470
|
+
const m2 = (c, t = {}) => (r, o, n) => {
|
|
1471
|
+
const { enabled: i, anonymousActionType: s, store: w, ...m } = t;
|
|
1472
|
+
let d;
|
|
1452
1473
|
try {
|
|
1453
|
-
|
|
1474
|
+
d = (i ?? (j0 ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
1454
1475
|
} catch {
|
|
1455
1476
|
}
|
|
1456
|
-
if (!
|
|
1457
|
-
return c(r,
|
|
1458
|
-
const { connection:
|
|
1459
|
-
let
|
|
1460
|
-
|
|
1461
|
-
const
|
|
1462
|
-
if (!
|
|
1463
|
-
const
|
|
1464
|
-
type:
|
|
1465
|
-
} : typeof
|
|
1466
|
-
return
|
|
1477
|
+
if (!d)
|
|
1478
|
+
return c(r, o, n);
|
|
1479
|
+
const { connection: h, ...M } = s2(w, d, m);
|
|
1480
|
+
let p = !0;
|
|
1481
|
+
n.setState = ((x, b, a) => {
|
|
1482
|
+
const _ = r(x, b);
|
|
1483
|
+
if (!p) return _;
|
|
1484
|
+
const k = a === void 0 ? {
|
|
1485
|
+
type: s || h2(new Error().stack) || "anonymous"
|
|
1486
|
+
} : typeof a == "string" ? { type: a } : a;
|
|
1487
|
+
return w === void 0 ? (h?.send(k, o()), _) : (h?.send(
|
|
1467
1488
|
{
|
|
1468
|
-
...
|
|
1469
|
-
type: `${
|
|
1489
|
+
...k,
|
|
1490
|
+
type: `${w}/${k.type}`
|
|
1470
1491
|
},
|
|
1471
1492
|
{
|
|
1472
|
-
...
|
|
1473
|
-
[
|
|
1493
|
+
...o0(m.name),
|
|
1494
|
+
[w]: n.getState()
|
|
1474
1495
|
}
|
|
1475
|
-
),
|
|
1476
|
-
}),
|
|
1496
|
+
), _);
|
|
1497
|
+
}), n.devtools = {
|
|
1477
1498
|
cleanup: () => {
|
|
1478
|
-
|
|
1499
|
+
h && typeof h.unsubscribe == "function" && h.unsubscribe(), i2(m.name, w);
|
|
1479
1500
|
}
|
|
1480
1501
|
};
|
|
1481
|
-
const
|
|
1482
|
-
const
|
|
1483
|
-
|
|
1484
|
-
},
|
|
1485
|
-
if (M.type === "untracked" ?
|
|
1502
|
+
const u = (...x) => {
|
|
1503
|
+
const b = p;
|
|
1504
|
+
p = !1, r(...x), p = b;
|
|
1505
|
+
}, z = c(n.setState, o, n);
|
|
1506
|
+
if (M.type === "untracked" ? h?.init(z) : (M.stores[M.store] = n, h?.init(
|
|
1486
1507
|
Object.fromEntries(
|
|
1487
|
-
Object.entries(M.stores).map(([
|
|
1488
|
-
|
|
1489
|
-
|
|
1508
|
+
Object.entries(M.stores).map(([x, b]) => [
|
|
1509
|
+
x,
|
|
1510
|
+
x === M.store ? z : b.getState()
|
|
1490
1511
|
])
|
|
1491
1512
|
)
|
|
1492
|
-
)),
|
|
1493
|
-
let
|
|
1494
|
-
const
|
|
1495
|
-
|
|
1496
|
-
(
|
|
1513
|
+
)), N0(n)) {
|
|
1514
|
+
let x = !1;
|
|
1515
|
+
const b = n.dispatch;
|
|
1516
|
+
n.dispatch = (...a) => {
|
|
1517
|
+
(j0 ? "production" : void 0) !== "production" && a[0].type === "__setState" && !x && (console.warn(
|
|
1497
1518
|
'[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
|
|
1498
|
-
),
|
|
1519
|
+
), x = !0), b(...a);
|
|
1499
1520
|
};
|
|
1500
1521
|
}
|
|
1501
|
-
return
|
|
1502
|
-
var
|
|
1503
|
-
switch (
|
|
1522
|
+
return h.subscribe((x) => {
|
|
1523
|
+
var b;
|
|
1524
|
+
switch (x.type) {
|
|
1504
1525
|
case "ACTION":
|
|
1505
|
-
if (typeof
|
|
1526
|
+
if (typeof x.payload != "string") {
|
|
1506
1527
|
console.error(
|
|
1507
1528
|
"[zustand devtools middleware] Unsupported action format"
|
|
1508
1529
|
);
|
|
1509
1530
|
return;
|
|
1510
1531
|
}
|
|
1511
|
-
return
|
|
1512
|
-
|
|
1513
|
-
(
|
|
1514
|
-
if (
|
|
1515
|
-
if (
|
|
1516
|
-
a
|
|
1532
|
+
return w0(
|
|
1533
|
+
x.payload,
|
|
1534
|
+
(a) => {
|
|
1535
|
+
if (a.type === "__setState") {
|
|
1536
|
+
if (w === void 0) {
|
|
1537
|
+
u(a.state);
|
|
1517
1538
|
return;
|
|
1518
1539
|
}
|
|
1519
|
-
Object.keys(
|
|
1540
|
+
Object.keys(a.state).length !== 1 && console.error(
|
|
1520
1541
|
`
|
|
1521
1542
|
[zustand devtools middleware] Unsupported __setState action format.
|
|
1522
1543
|
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
1523
1544
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
1524
1545
|
`
|
|
1525
1546
|
);
|
|
1526
|
-
const
|
|
1527
|
-
if (
|
|
1547
|
+
const _ = a.state[w];
|
|
1548
|
+
if (_ == null)
|
|
1528
1549
|
return;
|
|
1529
|
-
JSON.stringify(
|
|
1550
|
+
JSON.stringify(n.getState()) !== JSON.stringify(_) && u(_);
|
|
1530
1551
|
return;
|
|
1531
1552
|
}
|
|
1532
|
-
|
|
1553
|
+
N0(n) && n.dispatch(a);
|
|
1533
1554
|
}
|
|
1534
1555
|
);
|
|
1535
1556
|
case "DISPATCH":
|
|
1536
|
-
switch (
|
|
1557
|
+
switch (x.payload.type) {
|
|
1537
1558
|
case "RESET":
|
|
1538
|
-
return
|
|
1559
|
+
return u(z), w === void 0 ? h?.init(n.getState()) : h?.init(o0(m.name));
|
|
1539
1560
|
case "COMMIT":
|
|
1540
|
-
if (
|
|
1541
|
-
|
|
1561
|
+
if (w === void 0) {
|
|
1562
|
+
h?.init(n.getState());
|
|
1542
1563
|
return;
|
|
1543
1564
|
}
|
|
1544
|
-
return
|
|
1565
|
+
return h?.init(o0(m.name));
|
|
1545
1566
|
case "ROLLBACK":
|
|
1546
|
-
return
|
|
1547
|
-
if (
|
|
1548
|
-
a
|
|
1567
|
+
return w0(x.state, (a) => {
|
|
1568
|
+
if (w === void 0) {
|
|
1569
|
+
u(a), h?.init(n.getState());
|
|
1549
1570
|
return;
|
|
1550
1571
|
}
|
|
1551
|
-
a
|
|
1572
|
+
u(a[w]), h?.init(o0(m.name));
|
|
1552
1573
|
});
|
|
1553
1574
|
case "JUMP_TO_STATE":
|
|
1554
1575
|
case "JUMP_TO_ACTION":
|
|
1555
|
-
return
|
|
1556
|
-
if (
|
|
1557
|
-
a
|
|
1576
|
+
return w0(x.state, (a) => {
|
|
1577
|
+
if (w === void 0) {
|
|
1578
|
+
u(a);
|
|
1558
1579
|
return;
|
|
1559
1580
|
}
|
|
1560
|
-
JSON.stringify(
|
|
1581
|
+
JSON.stringify(n.getState()) !== JSON.stringify(a[w]) && u(a[w]);
|
|
1561
1582
|
});
|
|
1562
1583
|
case "IMPORT_STATE": {
|
|
1563
|
-
const { nextLiftedState:
|
|
1564
|
-
if (!
|
|
1565
|
-
|
|
1584
|
+
const { nextLiftedState: a } = x.payload, _ = (b = a.computedStates.slice(-1)[0]) == null ? void 0 : b.state;
|
|
1585
|
+
if (!_) return;
|
|
1586
|
+
u(w === void 0 ? _ : _[w]), h?.send(
|
|
1566
1587
|
null,
|
|
1567
1588
|
// FIXME no-any
|
|
1568
|
-
|
|
1589
|
+
a
|
|
1569
1590
|
);
|
|
1570
1591
|
return;
|
|
1571
1592
|
}
|
|
1572
1593
|
case "PAUSE_RECORDING":
|
|
1573
|
-
return
|
|
1594
|
+
return p = !p;
|
|
1574
1595
|
}
|
|
1575
1596
|
return;
|
|
1576
1597
|
}
|
|
1577
|
-
}),
|
|
1578
|
-
},
|
|
1598
|
+
}), z;
|
|
1599
|
+
}, u2 = m2, w0 = (c, t) => {
|
|
1579
1600
|
let r;
|
|
1580
1601
|
try {
|
|
1581
1602
|
r = JSON.parse(c);
|
|
1582
|
-
} catch (
|
|
1603
|
+
} catch (o) {
|
|
1583
1604
|
console.error(
|
|
1584
1605
|
"[zustand devtools middleware] Could not parse the received json",
|
|
1585
|
-
|
|
1606
|
+
o
|
|
1586
1607
|
);
|
|
1587
1608
|
}
|
|
1588
1609
|
r !== void 0 && t(r);
|
|
1589
1610
|
}, p2 = L0()(
|
|
1590
|
-
|
|
1611
|
+
u2((c, t) => ({
|
|
1591
1612
|
modals: [],
|
|
1592
|
-
addModal: (r) => c((
|
|
1593
|
-
modals:
|
|
1613
|
+
addModal: (r) => c((o) => ({
|
|
1614
|
+
modals: o.modals.includes(r) ? o.modals : [...o.modals, r]
|
|
1594
1615
|
})),
|
|
1595
|
-
removeModal: (r) => c((
|
|
1596
|
-
modals:
|
|
1616
|
+
removeModal: (r) => c((o) => ({
|
|
1617
|
+
modals: o.modals.filter((n) => n !== r)
|
|
1597
1618
|
})),
|
|
1598
1619
|
isTopModal: (r) => {
|
|
1599
|
-
const { modals:
|
|
1600
|
-
return
|
|
1620
|
+
const { modals: o } = t();
|
|
1621
|
+
return o.length > 0 && o[o.length - 1] === r;
|
|
1601
1622
|
},
|
|
1602
1623
|
getModalIndex: (r) => t().modals.indexOf(r)
|
|
1603
1624
|
}), {
|
|
@@ -1609,122 +1630,122 @@ const u2 = (c, t = {}) => (r, s, l) => {
|
|
|
1609
1630
|
isOpen: c,
|
|
1610
1631
|
handleClose: t,
|
|
1611
1632
|
handleAnimationEnd: r,
|
|
1612
|
-
children:
|
|
1613
|
-
isLoading:
|
|
1614
|
-
style:
|
|
1615
|
-
type:
|
|
1616
|
-
title:
|
|
1617
|
-
className:
|
|
1618
|
-
disabledTitle:
|
|
1619
|
-
blockBackdrop:
|
|
1633
|
+
children: o,
|
|
1634
|
+
isLoading: n = !1,
|
|
1635
|
+
style: i,
|
|
1636
|
+
type: s = "side",
|
|
1637
|
+
title: w,
|
|
1638
|
+
className: m,
|
|
1639
|
+
disabledTitle: d = !1,
|
|
1640
|
+
blockBackdrop: h = !1,
|
|
1620
1641
|
skeleton: M
|
|
1621
1642
|
}) => {
|
|
1622
|
-
const [
|
|
1623
|
-
modals:
|
|
1624
|
-
addModal:
|
|
1625
|
-
getModalIndex:
|
|
1626
|
-
removeModal:
|
|
1627
|
-
isTopModal:
|
|
1643
|
+
const [p] = H(() => Math.floor(Math.random() * 1e9)), [u, z] = H(!1), x = O(null), b = O(null), {
|
|
1644
|
+
modals: a,
|
|
1645
|
+
addModal: _,
|
|
1646
|
+
getModalIndex: k,
|
|
1647
|
+
removeModal: N,
|
|
1648
|
+
isTopModal: L
|
|
1628
1649
|
} = p2();
|
|
1629
1650
|
A(() => {
|
|
1630
1651
|
const j = document.body.classList.contains("no-scroll");
|
|
1631
|
-
|
|
1632
|
-
}, [
|
|
1633
|
-
const j = (
|
|
1634
|
-
|
|
1652
|
+
a.length > 0 && !j ? document.body.classList.add("no-scroll") : a.length === 0 && j && document.body.classList.remove("no-scroll");
|
|
1653
|
+
}, [a]), A(() => {
|
|
1654
|
+
const j = (J) => {
|
|
1655
|
+
J.key === "Escape" && L(p) && (t(), J.stopPropagation());
|
|
1635
1656
|
};
|
|
1636
1657
|
return document.addEventListener("keydown", j), () => {
|
|
1637
1658
|
document.removeEventListener("keydown", j);
|
|
1638
1659
|
};
|
|
1639
1660
|
}, [c, t]), A(() => {
|
|
1640
|
-
c &&
|
|
1661
|
+
c && _(p);
|
|
1641
1662
|
}, [c]);
|
|
1642
|
-
const
|
|
1643
|
-
|
|
1663
|
+
const F = (j) => {
|
|
1664
|
+
L(p) && t(), j.stopPropagation();
|
|
1644
1665
|
};
|
|
1645
1666
|
A(() => () => {
|
|
1646
|
-
|
|
1667
|
+
k(p) !== -1 && (console.log("closed", p), N(p));
|
|
1647
1668
|
}, []);
|
|
1648
|
-
const
|
|
1649
|
-
return
|
|
1669
|
+
const B = 1e3 + k(p) * 2, W = a0(() => s === "center" || u && !n ? o : M || /* @__PURE__ */ e.jsx(_0, {}), [u, n, o]);
|
|
1670
|
+
return $0(
|
|
1650
1671
|
/* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1651
1672
|
/* @__PURE__ */ e.jsx(
|
|
1652
|
-
|
|
1673
|
+
y0,
|
|
1653
1674
|
{
|
|
1654
1675
|
in: c,
|
|
1655
1676
|
timeout: 500,
|
|
1656
1677
|
classNames: {
|
|
1657
|
-
enter:
|
|
1658
|
-
enterActive:
|
|
1659
|
-
exit:
|
|
1660
|
-
exitActive:
|
|
1678
|
+
enter: $.backdropEnter,
|
|
1679
|
+
enterActive: $.backdropEnterActive,
|
|
1680
|
+
exit: $.backdropExit,
|
|
1681
|
+
exitActive: $.backdropExitActive
|
|
1661
1682
|
},
|
|
1662
1683
|
unmountOnExit: !0,
|
|
1663
|
-
nodeRef:
|
|
1684
|
+
nodeRef: b,
|
|
1664
1685
|
onExited: () => {
|
|
1665
|
-
|
|
1686
|
+
N(p), r && r();
|
|
1666
1687
|
},
|
|
1667
1688
|
children: /* @__PURE__ */ e.jsx(
|
|
1668
1689
|
"div",
|
|
1669
1690
|
{
|
|
1670
|
-
ref:
|
|
1671
|
-
className:
|
|
1672
|
-
style: { zIndex:
|
|
1673
|
-
onClick:
|
|
1674
|
-
} :
|
|
1691
|
+
ref: b,
|
|
1692
|
+
className: $.backdrop,
|
|
1693
|
+
style: { zIndex: B - 1 },
|
|
1694
|
+
onClick: h ? () => {
|
|
1695
|
+
} : F
|
|
1675
1696
|
}
|
|
1676
1697
|
)
|
|
1677
1698
|
}
|
|
1678
1699
|
),
|
|
1679
1700
|
/* @__PURE__ */ e.jsx(
|
|
1680
|
-
|
|
1701
|
+
y0,
|
|
1681
1702
|
{
|
|
1682
1703
|
in: c,
|
|
1683
|
-
timeout:
|
|
1704
|
+
timeout: s === "side" ? 500 : 300,
|
|
1684
1705
|
classNames: {
|
|
1685
|
-
enter:
|
|
1686
|
-
enterActive:
|
|
1687
|
-
exit:
|
|
1688
|
-
exitActive:
|
|
1706
|
+
enter: $[`${s}_open-enter`],
|
|
1707
|
+
enterActive: $[`${s}_open-enter-active`],
|
|
1708
|
+
exit: $[`${s}_open-exit`],
|
|
1709
|
+
exitActive: $[`${s}_open-exit-active`]
|
|
1689
1710
|
},
|
|
1690
1711
|
unmountOnExit: !0,
|
|
1691
|
-
nodeRef:
|
|
1692
|
-
onEntered: () =>
|
|
1693
|
-
onExit: () =>
|
|
1712
|
+
nodeRef: x,
|
|
1713
|
+
onEntered: () => z(!0),
|
|
1714
|
+
onExit: () => z(!1),
|
|
1694
1715
|
children: /* @__PURE__ */ e.jsxs(
|
|
1695
1716
|
"div",
|
|
1696
1717
|
{
|
|
1697
|
-
ref:
|
|
1718
|
+
ref: x,
|
|
1698
1719
|
className: `
|
|
1699
|
-
${
|
|
1700
|
-
${
|
|
1701
|
-
${
|
|
1720
|
+
${$.container}
|
|
1721
|
+
${$[s]}
|
|
1722
|
+
${m}
|
|
1702
1723
|
`,
|
|
1703
1724
|
style: {
|
|
1704
|
-
zIndex:
|
|
1705
|
-
...
|
|
1725
|
+
zIndex: B,
|
|
1726
|
+
...i
|
|
1706
1727
|
},
|
|
1707
1728
|
children: [
|
|
1708
|
-
|
|
1709
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
1729
|
+
s === "center" && !d && /* @__PURE__ */ e.jsxs("div", { className: $.title_block, children: [
|
|
1730
|
+
/* @__PURE__ */ e.jsx("h2", { className: $.title, children: w }),
|
|
1710
1731
|
/* @__PURE__ */ e.jsx(
|
|
1711
|
-
|
|
1732
|
+
Y,
|
|
1712
1733
|
{
|
|
1713
1734
|
icon: "cancel",
|
|
1714
1735
|
variant: "transparent",
|
|
1715
1736
|
onClick: t,
|
|
1716
|
-
className:
|
|
1737
|
+
className: $.btn_close
|
|
1717
1738
|
}
|
|
1718
1739
|
)
|
|
1719
1740
|
] }),
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1741
|
+
W(),
|
|
1742
|
+
s === "side" && /* @__PURE__ */ e.jsx(
|
|
1743
|
+
Y,
|
|
1723
1744
|
{
|
|
1724
1745
|
icon: "cancel",
|
|
1725
1746
|
variant: "secondary",
|
|
1726
1747
|
onClick: t,
|
|
1727
|
-
className:
|
|
1748
|
+
className: $.btn_close
|
|
1728
1749
|
}
|
|
1729
1750
|
)
|
|
1730
1751
|
]
|
|
@@ -1746,37 +1767,37 @@ function s3({
|
|
|
1746
1767
|
isOpen: c,
|
|
1747
1768
|
message: t = "Ви дійсно бажате виконати цю дію?",
|
|
1748
1769
|
isLoading: r = !1,
|
|
1749
|
-
handleClose:
|
|
1750
|
-
handleConfirmAction:
|
|
1770
|
+
handleClose: o,
|
|
1771
|
+
handleConfirmAction: n
|
|
1751
1772
|
}) {
|
|
1752
1773
|
return /* @__PURE__ */ e.jsxs(
|
|
1753
1774
|
w2,
|
|
1754
1775
|
{
|
|
1755
1776
|
isOpen: c,
|
|
1756
|
-
handleClose:
|
|
1777
|
+
handleClose: o,
|
|
1757
1778
|
title: "Підтвердження дії",
|
|
1758
1779
|
type: "center",
|
|
1759
1780
|
style: {
|
|
1760
1781
|
minHeight: "unset"
|
|
1761
1782
|
},
|
|
1762
1783
|
children: [
|
|
1763
|
-
r && /* @__PURE__ */ e.jsx(
|
|
1784
|
+
r && /* @__PURE__ */ e.jsx(_0, {}),
|
|
1764
1785
|
/* @__PURE__ */ e.jsxs("div", { className: c0.container, children: [
|
|
1765
1786
|
/* @__PURE__ */ e.jsx("p", { className: c0.message, children: t }),
|
|
1766
1787
|
/* @__PURE__ */ e.jsxs("div", { className: c0.actions_block, children: [
|
|
1767
1788
|
/* @__PURE__ */ e.jsx(
|
|
1768
|
-
|
|
1789
|
+
v0,
|
|
1769
1790
|
{
|
|
1770
|
-
onClick:
|
|
1791
|
+
onClick: n,
|
|
1771
1792
|
disabled: r,
|
|
1772
1793
|
className: c0.confirm_btn,
|
|
1773
1794
|
children: "Підтвердити"
|
|
1774
1795
|
}
|
|
1775
1796
|
),
|
|
1776
1797
|
/* @__PURE__ */ e.jsx(
|
|
1777
|
-
|
|
1798
|
+
v0,
|
|
1778
1799
|
{
|
|
1779
|
-
onClick:
|
|
1800
|
+
onClick: o,
|
|
1780
1801
|
disabled: r,
|
|
1781
1802
|
className: c0.cancel_btn,
|
|
1782
1803
|
children: "Скасувати"
|
|
@@ -1788,48 +1809,59 @@ function s3({
|
|
|
1788
1809
|
}
|
|
1789
1810
|
);
|
|
1790
1811
|
}
|
|
1791
|
-
const z2 = "_table_container_1nvod_1", b2 = "_table_head_1nvod_7", y2 = "_title_1nvod_24", k2 = "_table_body_1nvod_34", C2 = "_content_1nvod_45",
|
|
1812
|
+
const z2 = "_table_container_1nvod_1", b2 = "_table_head_1nvod_7", y2 = "_title_1nvod_24", k2 = "_table_body_1nvod_34", g2 = "_hover_row_1nvod_39", C2 = "_content_1nvod_45", S2 = "_column_filter_list_1nvod_52", j2 = "_item_1nvod_59", N2 = "_label_1nvod_64", T = {
|
|
1792
1813
|
table_container: z2,
|
|
1793
1814
|
table_head: b2,
|
|
1794
1815
|
title: y2,
|
|
1795
1816
|
table_body: k2,
|
|
1817
|
+
hover_row: g2,
|
|
1796
1818
|
content: C2,
|
|
1797
|
-
column_filter_list:
|
|
1798
|
-
item:
|
|
1799
|
-
label:
|
|
1800
|
-
},
|
|
1801
|
-
function
|
|
1802
|
-
const r = () => JSON.parse(localStorage.getItem(
|
|
1819
|
+
column_filter_list: S2,
|
|
1820
|
+
item: j2,
|
|
1821
|
+
label: N2
|
|
1822
|
+
}, B0 = "datatable:preferences";
|
|
1823
|
+
function B2(c, t) {
|
|
1824
|
+
const r = () => JSON.parse(localStorage.getItem(B0) ?? "{}"), o = (s) => localStorage.setItem(B0, JSON.stringify(s)), [n, i] = H(() => r()[c]?.visibleColumns ?? t);
|
|
1803
1825
|
return A(() => {
|
|
1804
|
-
const
|
|
1805
|
-
|
|
1806
|
-
...
|
|
1807
|
-
[c]: { visibleColumns:
|
|
1826
|
+
const s = r();
|
|
1827
|
+
o({
|
|
1828
|
+
...s,
|
|
1829
|
+
[c]: { visibleColumns: n }
|
|
1808
1830
|
});
|
|
1809
|
-
}, [c,
|
|
1810
|
-
visibleColumns:
|
|
1811
|
-
setVisibleColumns:
|
|
1831
|
+
}, [c, n]), {
|
|
1832
|
+
visibleColumns: n,
|
|
1833
|
+
setVisibleColumns: i
|
|
1812
1834
|
};
|
|
1813
1835
|
}
|
|
1814
|
-
function
|
|
1836
|
+
function i3({
|
|
1815
1837
|
tableId: c,
|
|
1816
1838
|
columns: t,
|
|
1817
1839
|
data: r,
|
|
1818
|
-
actions:
|
|
1819
|
-
|
|
1820
|
-
|
|
1840
|
+
actions: o,
|
|
1841
|
+
sortedBy: n,
|
|
1842
|
+
handleSort: i,
|
|
1843
|
+
useContext: s = !1
|
|
1821
1844
|
}) {
|
|
1822
|
-
const [
|
|
1823
|
-
visibleColumns:
|
|
1824
|
-
setVisibleColumns:
|
|
1825
|
-
} =
|
|
1826
|
-
(
|
|
1827
|
-
)
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1845
|
+
const [w, m] = H(!1), [d, h] = H(), {
|
|
1846
|
+
visibleColumns: M,
|
|
1847
|
+
setVisibleColumns: p
|
|
1848
|
+
} = B2(c, t.map((a) => String(a.key))), u = O(null), z = t.filter(
|
|
1849
|
+
(a) => M.includes(String(a.key))
|
|
1850
|
+
), x = (a, _) => {
|
|
1851
|
+
o && s && (a.preventDefault(), a.stopPropagation(), h({ position: { x: a.clientX, y: a.clientY }, element: _ }));
|
|
1852
|
+
}, b = (a) => {
|
|
1853
|
+
if (i)
|
|
1854
|
+
if (n?.key === a.key) {
|
|
1855
|
+
const _ = n.direction === "asc" ? "desc" : "asc";
|
|
1856
|
+
i({ key: a.key, direction: _ });
|
|
1857
|
+
} else
|
|
1858
|
+
i({ key: a.key, direction: "asc" });
|
|
1859
|
+
};
|
|
1860
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1861
|
+
/* @__PURE__ */ e.jsxs("table", { className: T.table_container, children: [
|
|
1862
|
+
/* @__PURE__ */ e.jsx("thead", { className: T.table_head, children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
1863
|
+
/* @__PURE__ */ e.jsx("th", { style: { width: "40px" }, children: /* @__PURE__ */ e.jsx("div", { ref: u, children: /* @__PURE__ */ e.jsx(
|
|
1864
|
+
Y,
|
|
1833
1865
|
{
|
|
1834
1866
|
icon: "settings",
|
|
1835
1867
|
onClick: () => {
|
|
@@ -1837,94 +1869,112 @@ function o3({
|
|
|
1837
1869
|
}
|
|
1838
1870
|
}
|
|
1839
1871
|
) }) }),
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
variant: "transparent",
|
|
1849
|
-
onClick: () => {
|
|
1850
|
-
l(i);
|
|
1872
|
+
z.map((a) => /* @__PURE__ */ e.jsx("th", { style: { width: a.width }, children: /* @__PURE__ */ e.jsxs("div", { className: `${T.title} ${i ? T.sortable : ""}`, onClick: () => b(a), children: [
|
|
1873
|
+
/* @__PURE__ */ e.jsx("p", { className: T.label, children: a.label }),
|
|
1874
|
+
n?.key === a.key && /* @__PURE__ */ e.jsx(
|
|
1875
|
+
I,
|
|
1876
|
+
{
|
|
1877
|
+
width: 12,
|
|
1878
|
+
height: 12,
|
|
1879
|
+
name: n.direction === "asc" ? "arrow-up" : "arrow-down"
|
|
1851
1880
|
}
|
|
1852
|
-
|
|
1853
|
-
) }),
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1881
|
+
)
|
|
1882
|
+
] }) }, String(a.key))),
|
|
1883
|
+
o && !s && /* @__PURE__ */ e.jsx("th", { style: { width: "0" }, children: /* @__PURE__ */ e.jsx("div", { className: T.title, children: "Дії" }) })
|
|
1884
|
+
] }) }),
|
|
1885
|
+
/* @__PURE__ */ e.jsx("tbody", { className: T.table_body, children: r.map((a) => /* @__PURE__ */ e.jsxs(
|
|
1886
|
+
"tr",
|
|
1887
|
+
{
|
|
1888
|
+
onContextMenu: (_) => s ? x(_, a) : null,
|
|
1889
|
+
className: `${o && s ? T.hover_row : ""}`,
|
|
1890
|
+
children: [
|
|
1891
|
+
/* @__PURE__ */ e.jsx("td", { style: { width: "40px" } }),
|
|
1892
|
+
z.map((_) => /* @__PURE__ */ e.jsx("td", { style: { width: _.width }, children: /* @__PURE__ */ e.jsx("div", { className: T.content, children: _.render ? _.render(a[_.key], a) : String(a[_.key] ?? "-") }) }, String(_.key))),
|
|
1893
|
+
o && !s && /* @__PURE__ */ e.jsx("td", { style: { width: "0" }, children: /* @__PURE__ */ e.jsx("div", { className: T.content, children: o(a) }) })
|
|
1894
|
+
]
|
|
1895
|
+
},
|
|
1896
|
+
a.id
|
|
1897
|
+
)) })
|
|
1857
1898
|
] }),
|
|
1858
|
-
|
|
1859
|
-
|
|
1899
|
+
d && /* @__PURE__ */ e.jsx(
|
|
1900
|
+
i0,
|
|
1901
|
+
{
|
|
1902
|
+
handleClose: () => h(void 0),
|
|
1903
|
+
x: d.position.x,
|
|
1904
|
+
y: d.position.y,
|
|
1905
|
+
children: o && o(d.element)
|
|
1906
|
+
}
|
|
1907
|
+
),
|
|
1908
|
+
w && /* @__PURE__ */ e.jsx(
|
|
1909
|
+
i0,
|
|
1860
1910
|
{
|
|
1861
|
-
containerRef:
|
|
1911
|
+
containerRef: u,
|
|
1862
1912
|
handleClose: () => {
|
|
1863
1913
|
m(!1);
|
|
1864
1914
|
},
|
|
1865
|
-
children: /* @__PURE__ */ e.jsx("ul", { className:
|
|
1866
|
-
const
|
|
1867
|
-
return /* @__PURE__ */ e.jsxs("li", { className:
|
|
1915
|
+
children: /* @__PURE__ */ e.jsx("ul", { className: T.column_filter_list, children: t.map((a) => {
|
|
1916
|
+
const _ = a.key;
|
|
1917
|
+
return /* @__PURE__ */ e.jsxs("li", { className: T.item, children: [
|
|
1868
1918
|
/* @__PURE__ */ e.jsx(
|
|
1869
1919
|
G1,
|
|
1870
1920
|
{
|
|
1871
|
-
checked:
|
|
1872
|
-
onChange: (
|
|
1873
|
-
const
|
|
1874
|
-
|
|
1875
|
-
(
|
|
1921
|
+
checked: M.includes(_),
|
|
1922
|
+
onChange: (k) => {
|
|
1923
|
+
const N = k.target.checked;
|
|
1924
|
+
p(
|
|
1925
|
+
(L) => N ? [...L, _] : L.filter((F) => F !== _)
|
|
1876
1926
|
);
|
|
1877
1927
|
}
|
|
1878
1928
|
}
|
|
1879
1929
|
),
|
|
1880
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1881
|
-
] }, String(
|
|
1930
|
+
/* @__PURE__ */ e.jsx("p", { className: T.label, children: a.label })
|
|
1931
|
+
] }, String(a.key));
|
|
1882
1932
|
}) })
|
|
1883
1933
|
}
|
|
1884
1934
|
)
|
|
1885
1935
|
] });
|
|
1886
1936
|
}
|
|
1887
|
-
const
|
|
1888
|
-
container:
|
|
1889
|
-
date_text:
|
|
1937
|
+
const V2 = "_container_79rvb_1", E2 = "_date_text_79rvb_16", V0 = {
|
|
1938
|
+
container: V2,
|
|
1939
|
+
date_text: E2
|
|
1890
1940
|
};
|
|
1891
|
-
function
|
|
1941
|
+
function a3({
|
|
1892
1942
|
value: c,
|
|
1893
1943
|
onChange: t,
|
|
1894
1944
|
disabled: r = !1,
|
|
1895
|
-
blockPastDates:
|
|
1896
|
-
type:
|
|
1945
|
+
blockPastDates: o = !1,
|
|
1946
|
+
type: n = "date"
|
|
1897
1947
|
}) {
|
|
1898
|
-
const [
|
|
1899
|
-
const
|
|
1900
|
-
return `${
|
|
1948
|
+
const [i, s] = H(!1), w = O(null), m = (d) => {
|
|
1949
|
+
const h = d.getDate().toString().padStart(2, "0"), M = (d.getMonth() + 1).toString().padStart(2, "0"), p = d.getFullYear();
|
|
1950
|
+
return `${h}.${M}.${p}`;
|
|
1901
1951
|
};
|
|
1902
1952
|
return /* @__PURE__ */ e.jsxs(
|
|
1903
1953
|
"div",
|
|
1904
1954
|
{
|
|
1905
|
-
ref:
|
|
1906
|
-
className:
|
|
1955
|
+
ref: w,
|
|
1956
|
+
className: V0.container,
|
|
1907
1957
|
onClick: () => {
|
|
1908
|
-
r ||
|
|
1958
|
+
r || s(!0);
|
|
1909
1959
|
},
|
|
1910
1960
|
children: [
|
|
1911
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1961
|
+
/* @__PURE__ */ e.jsx("p", { className: V0.date_text, children: c ? m(c) : "Не вказано" }),
|
|
1912
1962
|
/* @__PURE__ */ e.jsx(
|
|
1913
|
-
|
|
1963
|
+
Y,
|
|
1914
1964
|
{
|
|
1915
1965
|
variant: "secondary",
|
|
1916
1966
|
icon: "my-calendar",
|
|
1917
|
-
onClick: (
|
|
1918
|
-
|
|
1967
|
+
onClick: (d) => {
|
|
1968
|
+
d.stopPropagation(), r || s(!0);
|
|
1919
1969
|
}
|
|
1920
1970
|
}
|
|
1921
1971
|
),
|
|
1922
|
-
|
|
1923
|
-
|
|
1972
|
+
i && w && /* @__PURE__ */ e.jsx(
|
|
1973
|
+
i0,
|
|
1924
1974
|
{
|
|
1925
|
-
containerRef:
|
|
1975
|
+
containerRef: w,
|
|
1926
1976
|
handleClose: () => {
|
|
1927
|
-
|
|
1977
|
+
s(!1);
|
|
1928
1978
|
},
|
|
1929
1979
|
style: {
|
|
1930
1980
|
padding: "0",
|
|
@@ -1936,8 +1986,8 @@ function i3({
|
|
|
1936
1986
|
{
|
|
1937
1987
|
value: c || /* @__PURE__ */ new Date(),
|
|
1938
1988
|
onChange: t,
|
|
1939
|
-
blockPastDates:
|
|
1940
|
-
type:
|
|
1989
|
+
blockPastDates: o,
|
|
1990
|
+
type: n
|
|
1941
1991
|
}
|
|
1942
1992
|
)
|
|
1943
1993
|
}
|
|
@@ -1946,138 +1996,138 @@ function i3({
|
|
|
1946
1996
|
}
|
|
1947
1997
|
);
|
|
1948
1998
|
}
|
|
1949
|
-
const
|
|
1950
|
-
text_field:
|
|
1999
|
+
const $2 = "_text_field_16bc4_1", H2 = {
|
|
2000
|
+
text_field: $2
|
|
1951
2001
|
};
|
|
1952
|
-
function
|
|
2002
|
+
function d3({
|
|
1953
2003
|
fullWidth: c = !1,
|
|
1954
2004
|
className: t,
|
|
1955
2005
|
style: r,
|
|
1956
|
-
placeholder:
|
|
1957
|
-
...
|
|
2006
|
+
placeholder: o = "Введіть значення",
|
|
2007
|
+
...n
|
|
1958
2008
|
}) {
|
|
1959
2009
|
return /* @__PURE__ */ e.jsx(
|
|
1960
2010
|
"input",
|
|
1961
2011
|
{
|
|
1962
|
-
...
|
|
2012
|
+
...n,
|
|
1963
2013
|
className: `${H2.text_field} ${t}`,
|
|
1964
2014
|
style: {
|
|
1965
2015
|
width: c ? "100%" : "min-content",
|
|
1966
2016
|
...r
|
|
1967
2017
|
},
|
|
1968
|
-
placeholder:
|
|
2018
|
+
placeholder: o
|
|
1969
2019
|
}
|
|
1970
2020
|
);
|
|
1971
2021
|
}
|
|
1972
|
-
const
|
|
1973
|
-
pagination:
|
|
1974
|
-
btn:
|
|
1975
|
-
dots:
|
|
2022
|
+
const T2 = "_pagination_fet2x_1", L2 = "_btn_fet2x_11", R2 = "_dots_fet2x_23", K = {
|
|
2023
|
+
pagination: T2,
|
|
2024
|
+
btn: L2,
|
|
2025
|
+
dots: R2
|
|
1976
2026
|
};
|
|
1977
|
-
function
|
|
2027
|
+
function h3({
|
|
1978
2028
|
count: c,
|
|
1979
2029
|
pagination: t,
|
|
1980
2030
|
setPaginations: r,
|
|
1981
|
-
style:
|
|
2031
|
+
style: o
|
|
1982
2032
|
}) {
|
|
1983
|
-
const
|
|
1984
|
-
|
|
2033
|
+
const n = Math.ceil(c / t.take), i = Math.floor(t.skip / t.take) + 1, s = (m) => /* @__PURE__ */ e.jsx(
|
|
2034
|
+
v0,
|
|
1985
2035
|
{
|
|
1986
|
-
variant:
|
|
2036
|
+
variant: m === i ? "primary" : "secondary",
|
|
1987
2037
|
className: K.btn,
|
|
1988
|
-
onClick: () => r({ skip: (
|
|
1989
|
-
children:
|
|
2038
|
+
onClick: () => r({ skip: (m - 1) * t.take, take: t.take }),
|
|
2039
|
+
children: m
|
|
1990
2040
|
},
|
|
1991
|
-
|
|
1992
|
-
),
|
|
1993
|
-
const
|
|
1994
|
-
if (
|
|
1995
|
-
for (let
|
|
1996
|
-
|
|
1997
|
-
return
|
|
2041
|
+
m
|
|
2042
|
+
), w = a0(() => {
|
|
2043
|
+
const m = [];
|
|
2044
|
+
if (n <= 6) {
|
|
2045
|
+
for (let d = 1; d <= n; d++)
|
|
2046
|
+
m.push(s(d));
|
|
2047
|
+
return m;
|
|
1998
2048
|
}
|
|
1999
|
-
if (
|
|
2000
|
-
for (let
|
|
2001
|
-
|
|
2002
|
-
return
|
|
2049
|
+
if (i < 5) {
|
|
2050
|
+
for (let d = 1; d <= 5; d++)
|
|
2051
|
+
m.push(s(d));
|
|
2052
|
+
return m.push(/* @__PURE__ */ e.jsx("span", { className: K.dots, children: "..." }, "dots2")), m.push(s(n)), m;
|
|
2003
2053
|
}
|
|
2004
|
-
if (
|
|
2005
|
-
|
|
2006
|
-
for (let
|
|
2007
|
-
|
|
2008
|
-
return
|
|
2054
|
+
if (i > n - 5) {
|
|
2055
|
+
m.push(s(1)), m.push(/* @__PURE__ */ e.jsx("span", { className: K.dots, children: "..." }, "dots1"));
|
|
2056
|
+
for (let d = n - 4; d <= n; d++)
|
|
2057
|
+
m.push(s(d));
|
|
2058
|
+
return m;
|
|
2009
2059
|
}
|
|
2010
|
-
|
|
2011
|
-
for (let
|
|
2012
|
-
|
|
2013
|
-
return
|
|
2014
|
-
}, [
|
|
2015
|
-
return /* @__PURE__ */ e.jsxs("div", { className: K.pagination, style: { ...
|
|
2060
|
+
m.push(s(1)), m.push(/* @__PURE__ */ e.jsx("span", { className: K.dots, children: "..." }, "dots1"));
|
|
2061
|
+
for (let d = i - 1; d <= i + 1 && d <= n; d++)
|
|
2062
|
+
m.push(s(d));
|
|
2063
|
+
return m.push(/* @__PURE__ */ e.jsx("span", { className: K.dots, children: "..." }, "dots2")), m.push(s(n)), m;
|
|
2064
|
+
}, [i, n]);
|
|
2065
|
+
return /* @__PURE__ */ e.jsxs("div", { className: K.pagination, style: { ...o }, children: [
|
|
2016
2066
|
/* @__PURE__ */ e.jsx(
|
|
2017
|
-
|
|
2067
|
+
Y,
|
|
2018
2068
|
{
|
|
2019
2069
|
icon: "arrow-left",
|
|
2020
2070
|
onClick: () => {
|
|
2021
2071
|
r({ skip: Math.max(t.skip - t.take, 0), take: t.take });
|
|
2022
2072
|
},
|
|
2023
2073
|
style: { marginRight: "5px" },
|
|
2024
|
-
disabled:
|
|
2074
|
+
disabled: i === 1
|
|
2025
2075
|
}
|
|
2026
2076
|
),
|
|
2027
|
-
|
|
2077
|
+
w(),
|
|
2028
2078
|
/* @__PURE__ */ e.jsx(
|
|
2029
|
-
|
|
2079
|
+
Y,
|
|
2030
2080
|
{
|
|
2031
2081
|
icon: "arrow-right",
|
|
2032
2082
|
onClick: () => {
|
|
2033
|
-
r({ skip: Math.min(t.skip + t.take, (
|
|
2083
|
+
r({ skip: Math.min(t.skip + t.take, (n - 1) * t.take), take: t.take });
|
|
2034
2084
|
},
|
|
2035
2085
|
style: { marginLeft: "5px" },
|
|
2036
|
-
disabled:
|
|
2086
|
+
disabled: i === n
|
|
2037
2087
|
}
|
|
2038
2088
|
)
|
|
2039
2089
|
] });
|
|
2040
2090
|
}
|
|
2041
|
-
const
|
|
2042
|
-
field:
|
|
2091
|
+
const O2 = "_field_1r98j_1", D2 = {
|
|
2092
|
+
field: O2
|
|
2043
2093
|
};
|
|
2044
|
-
function
|
|
2094
|
+
function m3({
|
|
2045
2095
|
fullWidth: c = !1,
|
|
2046
2096
|
onChange: t,
|
|
2047
2097
|
style: r,
|
|
2048
|
-
className:
|
|
2049
|
-
value:
|
|
2050
|
-
...
|
|
2098
|
+
className: o,
|
|
2099
|
+
value: n = "+380",
|
|
2100
|
+
...i
|
|
2051
2101
|
}) {
|
|
2052
|
-
const
|
|
2053
|
-
const
|
|
2054
|
-
let
|
|
2055
|
-
|
|
2056
|
-
const M =
|
|
2057
|
-
let
|
|
2058
|
-
return M && (
|
|
2059
|
-
},
|
|
2060
|
-
let
|
|
2061
|
-
|
|
2062
|
-
const
|
|
2102
|
+
const s = (m) => {
|
|
2103
|
+
const d = m.replace(/\D/g, "");
|
|
2104
|
+
let h = d.startsWith("380") ? d.slice(3) : d;
|
|
2105
|
+
h = h.slice(0, 9);
|
|
2106
|
+
const M = h.slice(0, 2), p = h.slice(2, 5), u = h.slice(5, 7), z = h.slice(7, 9);
|
|
2107
|
+
let x = "+380";
|
|
2108
|
+
return M && (x += ` (${M}`), M.length === 2 && (x += ")"), p && (x += ` ${p}`), u && (x += `-${u}`), z && (x += `-${z}`), x;
|
|
2109
|
+
}, w = (m) => {
|
|
2110
|
+
let d = m.target.value.replace(/\D/g, "");
|
|
2111
|
+
d.startsWith("380") && (d = d.slice(3)), d = d.slice(0, 9);
|
|
2112
|
+
const h = `+380${d}`;
|
|
2063
2113
|
t && t({
|
|
2064
|
-
...
|
|
2065
|
-
target: { ...
|
|
2114
|
+
...m,
|
|
2115
|
+
target: { ...m.target, value: h }
|
|
2066
2116
|
});
|
|
2067
2117
|
};
|
|
2068
2118
|
return /* @__PURE__ */ e.jsx(
|
|
2069
2119
|
"input",
|
|
2070
2120
|
{
|
|
2071
|
-
...
|
|
2072
|
-
value:
|
|
2073
|
-
onChange:
|
|
2121
|
+
...i,
|
|
2122
|
+
value: s(String(n)),
|
|
2123
|
+
onChange: w,
|
|
2074
2124
|
style: {
|
|
2075
2125
|
width: c ? "100%" : "min-content",
|
|
2076
2126
|
...r
|
|
2077
2127
|
},
|
|
2078
2128
|
className: `
|
|
2079
|
-
${
|
|
2080
|
-
${
|
|
2129
|
+
${D2.field}
|
|
2130
|
+
${o}
|
|
2081
2131
|
`,
|
|
2082
2132
|
placeholder: "(XX) XXX-XX-XX",
|
|
2083
2133
|
type: "tel",
|
|
@@ -2085,12 +2135,12 @@ function h3({
|
|
|
2085
2135
|
}
|
|
2086
2136
|
);
|
|
2087
2137
|
}
|
|
2088
|
-
const
|
|
2089
|
-
switch_btn:
|
|
2090
|
-
circle:
|
|
2091
|
-
icon:
|
|
2092
|
-
correct:
|
|
2093
|
-
cancel:
|
|
2138
|
+
const P2 = "_switch_btn_a1g51_1", A2 = "_circle_a1g51_12", I2 = "_icon_a1g51_24", F2 = "_correct_a1g51_27", Y2 = "_cancel_a1g51_33", n0 = {
|
|
2139
|
+
switch_btn: P2,
|
|
2140
|
+
circle: A2,
|
|
2141
|
+
icon: I2,
|
|
2142
|
+
correct: F2,
|
|
2143
|
+
cancel: Y2
|
|
2094
2144
|
};
|
|
2095
2145
|
function u3({
|
|
2096
2146
|
value: c,
|
|
@@ -2107,7 +2157,7 @@ function u3({
|
|
|
2107
2157
|
},
|
|
2108
2158
|
disabled: r,
|
|
2109
2159
|
children: /* @__PURE__ */ e.jsx("div", { className: n0.circle, children: /* @__PURE__ */ e.jsx(
|
|
2110
|
-
|
|
2160
|
+
I,
|
|
2111
2161
|
{
|
|
2112
2162
|
name: c ? "check" : "cancel",
|
|
2113
2163
|
width: 12,
|
|
@@ -2118,35 +2168,35 @@ function u3({
|
|
|
2118
2168
|
}
|
|
2119
2169
|
);
|
|
2120
2170
|
}
|
|
2121
|
-
const
|
|
2122
|
-
container:
|
|
2171
|
+
const W2 = "_container_1gdr0_1", J2 = {
|
|
2172
|
+
container: W2
|
|
2123
2173
|
};
|
|
2124
|
-
function
|
|
2174
|
+
function p3({
|
|
2125
2175
|
autosize: c = !0,
|
|
2126
2176
|
className: t,
|
|
2127
2177
|
style: r,
|
|
2128
|
-
placeholder:
|
|
2129
|
-
...
|
|
2178
|
+
placeholder: o = "Введіть текст",
|
|
2179
|
+
...n
|
|
2130
2180
|
}) {
|
|
2131
2181
|
return /* @__PURE__ */ e.jsx(
|
|
2132
2182
|
"textarea",
|
|
2133
2183
|
{
|
|
2134
|
-
...
|
|
2135
|
-
placeholder:
|
|
2184
|
+
...n,
|
|
2185
|
+
placeholder: o,
|
|
2136
2186
|
className: `
|
|
2137
|
-
${
|
|
2187
|
+
${J2.container}
|
|
2138
2188
|
${t}
|
|
2139
2189
|
`,
|
|
2140
2190
|
style: { ...r, resize: c ? "none" : "both" }
|
|
2141
2191
|
}
|
|
2142
2192
|
);
|
|
2143
2193
|
}
|
|
2144
|
-
const U2 = "_theme_btn_gv3i6_1", q2 = "_icon_gv3i6_12",
|
|
2194
|
+
const U2 = "_theme_btn_gv3i6_1", q2 = "_icon_gv3i6_12", X2 = "_dark_gv3i6_18", s0 = {
|
|
2145
2195
|
theme_btn: U2,
|
|
2146
2196
|
icon: q2,
|
|
2147
|
-
dark:
|
|
2197
|
+
dark: X2
|
|
2148
2198
|
};
|
|
2149
|
-
function
|
|
2199
|
+
function w3({
|
|
2150
2200
|
theme: c,
|
|
2151
2201
|
toggleTheme: t
|
|
2152
2202
|
}) {
|
|
@@ -2159,76 +2209,76 @@ function p3({
|
|
|
2159
2209
|
{
|
|
2160
2210
|
type: "button",
|
|
2161
2211
|
className: `
|
|
2162
|
-
${
|
|
2163
|
-
${
|
|
2212
|
+
${s0.theme_btn}
|
|
2213
|
+
${s0[c]}
|
|
2164
2214
|
`,
|
|
2165
2215
|
onClick: t,
|
|
2166
2216
|
children: /* @__PURE__ */ e.jsx(
|
|
2167
|
-
|
|
2217
|
+
I,
|
|
2168
2218
|
{
|
|
2169
2219
|
name: r[c],
|
|
2170
2220
|
width: 20,
|
|
2171
2221
|
height: 20,
|
|
2172
2222
|
className: `
|
|
2173
|
-
${
|
|
2174
|
-
${
|
|
2223
|
+
${s0.icon}
|
|
2224
|
+
${s0[c]}
|
|
2175
2225
|
`
|
|
2176
2226
|
}
|
|
2177
2227
|
)
|
|
2178
2228
|
}
|
|
2179
2229
|
);
|
|
2180
2230
|
}
|
|
2181
|
-
const
|
|
2182
|
-
container:
|
|
2183
|
-
checkbox:
|
|
2184
|
-
ellipse:
|
|
2231
|
+
const G2 = "_container_14yjr_1", K2 = "_checkbox_14yjr_15", Z2 = "_ellipse_14yjr_19", x0 = {
|
|
2232
|
+
container: G2,
|
|
2233
|
+
checkbox: K2,
|
|
2234
|
+
ellipse: Z2
|
|
2185
2235
|
};
|
|
2186
|
-
function
|
|
2236
|
+
function x3({
|
|
2187
2237
|
style: c,
|
|
2188
2238
|
className: t,
|
|
2189
2239
|
id: r,
|
|
2190
|
-
...
|
|
2240
|
+
...o
|
|
2191
2241
|
}) {
|
|
2192
2242
|
return /* @__PURE__ */ e.jsxs(
|
|
2193
2243
|
"label",
|
|
2194
2244
|
{
|
|
2195
2245
|
htmlFor: r,
|
|
2196
|
-
className:
|
|
2197
|
-
onClick: (
|
|
2246
|
+
className: x0.container,
|
|
2247
|
+
onClick: (n) => n.stopPropagation(),
|
|
2198
2248
|
children: [
|
|
2199
|
-
/* @__PURE__ */ e.jsx("input", { id: r, type: "checkbox", ...
|
|
2200
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2249
|
+
/* @__PURE__ */ e.jsx("input", { id: r, type: "checkbox", ...o, style: { display: "none", ...c }, className: `${x0.checkbox} ${t}` }),
|
|
2250
|
+
/* @__PURE__ */ e.jsx("div", { className: x0.ellipse })
|
|
2201
2251
|
]
|
|
2202
2252
|
}
|
|
2203
2253
|
);
|
|
2204
2254
|
}
|
|
2205
|
-
let
|
|
2206
|
-
const
|
|
2207
|
-
if (typeof document > "u" ||
|
|
2255
|
+
let E0 = !1;
|
|
2256
|
+
const Q2 = () => {
|
|
2257
|
+
if (typeof document > "u" || E0) return;
|
|
2208
2258
|
const c = document.createElement("div");
|
|
2209
|
-
c.id = "svg-sprite", c.innerHTML = R0, document.body.prepend(c),
|
|
2259
|
+
c.id = "svg-sprite", c.innerHTML = R0, document.body.prepend(c), E0 = !0;
|
|
2210
2260
|
};
|
|
2211
|
-
|
|
2261
|
+
Q2();
|
|
2212
2262
|
export {
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2263
|
+
r3 as Alert,
|
|
2264
|
+
o3 as Autocomplete,
|
|
2265
|
+
v0 as Button,
|
|
2216
2266
|
Y1 as Calendar,
|
|
2217
2267
|
G1 as Checkbox,
|
|
2218
2268
|
s3 as ConfirmAction,
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2269
|
+
i3 as DataTable,
|
|
2270
|
+
a3 as DatePicker,
|
|
2271
|
+
I as Icon,
|
|
2272
|
+
Y as IconButton,
|
|
2273
|
+
d3 as Input,
|
|
2274
|
+
_0 as Loader,
|
|
2225
2275
|
w2 as ModalBox,
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2276
|
+
h3 as Pagination,
|
|
2277
|
+
m3 as PhoneInput,
|
|
2278
|
+
i0 as PopUp,
|
|
2229
2279
|
u3 as Switch,
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2280
|
+
p3 as Textarea,
|
|
2281
|
+
w3 as ThemeChange,
|
|
2282
|
+
x3 as Toggle,
|
|
2283
|
+
Q2 as injectIconSprite
|
|
2234
2284
|
};
|