bpr-library 0.0.13 → 0.0.14
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 T:
|
|
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"), T = /* @__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), T = 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 && T.current && T.current.scrollTo({
|
|
933
|
+
top: y.offsetTop - T.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: T, 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: T
|
|
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" && T(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
|
+
T(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", L = {
|
|
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: L.table_container, children: [
|
|
1862
|
+
/* @__PURE__ */ e.jsx("thead", { className: L.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,111 @@ 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: `${L.title} ${i ? L.sortable : ""}`, onClick: () => b(a), children: [
|
|
1873
|
+
/* @__PURE__ */ e.jsx("p", { className: L.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
|
+
] }) }),
|
|
1884
|
+
/* @__PURE__ */ e.jsx("tbody", { className: L.table_body, children: r.map((a) => /* @__PURE__ */ e.jsxs(
|
|
1885
|
+
"tr",
|
|
1886
|
+
{
|
|
1887
|
+
onContextMenu: (_) => s ? x(_, a) : null,
|
|
1888
|
+
className: `${o && s ? L.hover_row : ""}`,
|
|
1889
|
+
children: [
|
|
1890
|
+
/* @__PURE__ */ e.jsx("td", { style: { width: "40px" } }),
|
|
1891
|
+
z.map((_) => /* @__PURE__ */ e.jsx("td", { style: { width: _.width }, children: /* @__PURE__ */ e.jsx("div", { className: L.content, children: _.render ? _.render(a[_.key], a) : String(a[_.key] ?? "-") }) }, String(_.key))),
|
|
1892
|
+
o && !s && /* @__PURE__ */ e.jsx("td", { style: { width: "0" }, children: /* @__PURE__ */ e.jsx("div", { className: L.content, children: o(a) }) })
|
|
1893
|
+
]
|
|
1894
|
+
},
|
|
1895
|
+
a.id
|
|
1896
|
+
)) })
|
|
1857
1897
|
] }),
|
|
1858
|
-
|
|
1859
|
-
|
|
1898
|
+
d && /* @__PURE__ */ e.jsx(
|
|
1899
|
+
i0,
|
|
1900
|
+
{
|
|
1901
|
+
handleClose: () => h(void 0),
|
|
1902
|
+
x: d.position.x,
|
|
1903
|
+
y: d.position.y,
|
|
1904
|
+
children: o && o(d.element)
|
|
1905
|
+
}
|
|
1906
|
+
),
|
|
1907
|
+
w && /* @__PURE__ */ e.jsx(
|
|
1908
|
+
i0,
|
|
1860
1909
|
{
|
|
1861
|
-
containerRef:
|
|
1910
|
+
containerRef: u,
|
|
1862
1911
|
handleClose: () => {
|
|
1863
1912
|
m(!1);
|
|
1864
1913
|
},
|
|
1865
|
-
children: /* @__PURE__ */ e.jsx("ul", { className:
|
|
1866
|
-
const
|
|
1867
|
-
return /* @__PURE__ */ e.jsxs("li", { className:
|
|
1914
|
+
children: /* @__PURE__ */ e.jsx("ul", { className: L.column_filter_list, children: t.map((a) => {
|
|
1915
|
+
const _ = a.key;
|
|
1916
|
+
return /* @__PURE__ */ e.jsxs("li", { className: L.item, children: [
|
|
1868
1917
|
/* @__PURE__ */ e.jsx(
|
|
1869
1918
|
G1,
|
|
1870
1919
|
{
|
|
1871
|
-
checked:
|
|
1872
|
-
onChange: (
|
|
1873
|
-
const
|
|
1874
|
-
|
|
1875
|
-
(
|
|
1920
|
+
checked: M.includes(_),
|
|
1921
|
+
onChange: (k) => {
|
|
1922
|
+
const N = k.target.checked;
|
|
1923
|
+
p(
|
|
1924
|
+
(T) => N ? [...T, _] : T.filter((F) => F !== _)
|
|
1876
1925
|
);
|
|
1877
1926
|
}
|
|
1878
1927
|
}
|
|
1879
1928
|
),
|
|
1880
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1881
|
-
] }, String(
|
|
1929
|
+
/* @__PURE__ */ e.jsx("p", { className: L.label, children: a.label })
|
|
1930
|
+
] }, String(a.key));
|
|
1882
1931
|
}) })
|
|
1883
1932
|
}
|
|
1884
1933
|
)
|
|
1885
1934
|
] });
|
|
1886
1935
|
}
|
|
1887
|
-
const
|
|
1888
|
-
container:
|
|
1889
|
-
date_text:
|
|
1936
|
+
const V2 = "_container_79rvb_1", E2 = "_date_text_79rvb_16", V0 = {
|
|
1937
|
+
container: V2,
|
|
1938
|
+
date_text: E2
|
|
1890
1939
|
};
|
|
1891
|
-
function
|
|
1940
|
+
function a3({
|
|
1892
1941
|
value: c,
|
|
1893
1942
|
onChange: t,
|
|
1894
1943
|
disabled: r = !1,
|
|
1895
|
-
blockPastDates:
|
|
1896
|
-
type:
|
|
1944
|
+
blockPastDates: o = !1,
|
|
1945
|
+
type: n = "date"
|
|
1897
1946
|
}) {
|
|
1898
|
-
const [
|
|
1899
|
-
const
|
|
1900
|
-
return `${
|
|
1947
|
+
const [i, s] = H(!1), w = O(null), m = (d) => {
|
|
1948
|
+
const h = d.getDate().toString().padStart(2, "0"), M = (d.getMonth() + 1).toString().padStart(2, "0"), p = d.getFullYear();
|
|
1949
|
+
return `${h}.${M}.${p}`;
|
|
1901
1950
|
};
|
|
1902
1951
|
return /* @__PURE__ */ e.jsxs(
|
|
1903
1952
|
"div",
|
|
1904
1953
|
{
|
|
1905
|
-
ref:
|
|
1906
|
-
className:
|
|
1954
|
+
ref: w,
|
|
1955
|
+
className: V0.container,
|
|
1907
1956
|
onClick: () => {
|
|
1908
|
-
r ||
|
|
1957
|
+
r || s(!0);
|
|
1909
1958
|
},
|
|
1910
1959
|
children: [
|
|
1911
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1960
|
+
/* @__PURE__ */ e.jsx("p", { className: V0.date_text, children: c ? m(c) : "Не вказано" }),
|
|
1912
1961
|
/* @__PURE__ */ e.jsx(
|
|
1913
|
-
|
|
1962
|
+
Y,
|
|
1914
1963
|
{
|
|
1915
1964
|
variant: "secondary",
|
|
1916
1965
|
icon: "my-calendar",
|
|
1917
|
-
onClick: (
|
|
1918
|
-
|
|
1966
|
+
onClick: (d) => {
|
|
1967
|
+
d.stopPropagation(), r || s(!0);
|
|
1919
1968
|
}
|
|
1920
1969
|
}
|
|
1921
1970
|
),
|
|
1922
|
-
|
|
1923
|
-
|
|
1971
|
+
i && w && /* @__PURE__ */ e.jsx(
|
|
1972
|
+
i0,
|
|
1924
1973
|
{
|
|
1925
|
-
containerRef:
|
|
1974
|
+
containerRef: w,
|
|
1926
1975
|
handleClose: () => {
|
|
1927
|
-
|
|
1976
|
+
s(!1);
|
|
1928
1977
|
},
|
|
1929
1978
|
style: {
|
|
1930
1979
|
padding: "0",
|
|
@@ -1936,8 +1985,8 @@ function i3({
|
|
|
1936
1985
|
{
|
|
1937
1986
|
value: c || /* @__PURE__ */ new Date(),
|
|
1938
1987
|
onChange: t,
|
|
1939
|
-
blockPastDates:
|
|
1940
|
-
type:
|
|
1988
|
+
blockPastDates: o,
|
|
1989
|
+
type: n
|
|
1941
1990
|
}
|
|
1942
1991
|
)
|
|
1943
1992
|
}
|
|
@@ -1946,138 +1995,138 @@ function i3({
|
|
|
1946
1995
|
}
|
|
1947
1996
|
);
|
|
1948
1997
|
}
|
|
1949
|
-
const
|
|
1950
|
-
text_field:
|
|
1998
|
+
const $2 = "_text_field_16bc4_1", H2 = {
|
|
1999
|
+
text_field: $2
|
|
1951
2000
|
};
|
|
1952
|
-
function
|
|
2001
|
+
function d3({
|
|
1953
2002
|
fullWidth: c = !1,
|
|
1954
2003
|
className: t,
|
|
1955
2004
|
style: r,
|
|
1956
|
-
placeholder:
|
|
1957
|
-
...
|
|
2005
|
+
placeholder: o = "Введіть значення",
|
|
2006
|
+
...n
|
|
1958
2007
|
}) {
|
|
1959
2008
|
return /* @__PURE__ */ e.jsx(
|
|
1960
2009
|
"input",
|
|
1961
2010
|
{
|
|
1962
|
-
...
|
|
2011
|
+
...n,
|
|
1963
2012
|
className: `${H2.text_field} ${t}`,
|
|
1964
2013
|
style: {
|
|
1965
2014
|
width: c ? "100%" : "min-content",
|
|
1966
2015
|
...r
|
|
1967
2016
|
},
|
|
1968
|
-
placeholder:
|
|
2017
|
+
placeholder: o
|
|
1969
2018
|
}
|
|
1970
2019
|
);
|
|
1971
2020
|
}
|
|
1972
|
-
const
|
|
1973
|
-
pagination:
|
|
1974
|
-
btn:
|
|
1975
|
-
dots:
|
|
2021
|
+
const T2 = "_pagination_fet2x_1", L2 = "_btn_fet2x_11", R2 = "_dots_fet2x_23", K = {
|
|
2022
|
+
pagination: T2,
|
|
2023
|
+
btn: L2,
|
|
2024
|
+
dots: R2
|
|
1976
2025
|
};
|
|
1977
|
-
function
|
|
2026
|
+
function h3({
|
|
1978
2027
|
count: c,
|
|
1979
2028
|
pagination: t,
|
|
1980
2029
|
setPaginations: r,
|
|
1981
|
-
style:
|
|
2030
|
+
style: o
|
|
1982
2031
|
}) {
|
|
1983
|
-
const
|
|
1984
|
-
|
|
2032
|
+
const n = Math.ceil(c / t.take), i = Math.floor(t.skip / t.take) + 1, s = (m) => /* @__PURE__ */ e.jsx(
|
|
2033
|
+
v0,
|
|
1985
2034
|
{
|
|
1986
|
-
variant:
|
|
2035
|
+
variant: m === i ? "primary" : "secondary",
|
|
1987
2036
|
className: K.btn,
|
|
1988
|
-
onClick: () => r({ skip: (
|
|
1989
|
-
children:
|
|
2037
|
+
onClick: () => r({ skip: (m - 1) * t.take, take: t.take }),
|
|
2038
|
+
children: m
|
|
1990
2039
|
},
|
|
1991
|
-
|
|
1992
|
-
),
|
|
1993
|
-
const
|
|
1994
|
-
if (
|
|
1995
|
-
for (let
|
|
1996
|
-
|
|
1997
|
-
return
|
|
2040
|
+
m
|
|
2041
|
+
), w = a0(() => {
|
|
2042
|
+
const m = [];
|
|
2043
|
+
if (n <= 6) {
|
|
2044
|
+
for (let d = 1; d <= n; d++)
|
|
2045
|
+
m.push(s(d));
|
|
2046
|
+
return m;
|
|
1998
2047
|
}
|
|
1999
|
-
if (
|
|
2000
|
-
for (let
|
|
2001
|
-
|
|
2002
|
-
return
|
|
2048
|
+
if (i < 5) {
|
|
2049
|
+
for (let d = 1; d <= 5; d++)
|
|
2050
|
+
m.push(s(d));
|
|
2051
|
+
return m.push(/* @__PURE__ */ e.jsx("span", { className: K.dots, children: "..." }, "dots2")), m.push(s(n)), m;
|
|
2003
2052
|
}
|
|
2004
|
-
if (
|
|
2005
|
-
|
|
2006
|
-
for (let
|
|
2007
|
-
|
|
2008
|
-
return
|
|
2053
|
+
if (i > n - 5) {
|
|
2054
|
+
m.push(s(1)), m.push(/* @__PURE__ */ e.jsx("span", { className: K.dots, children: "..." }, "dots1"));
|
|
2055
|
+
for (let d = n - 4; d <= n; d++)
|
|
2056
|
+
m.push(s(d));
|
|
2057
|
+
return m;
|
|
2009
2058
|
}
|
|
2010
|
-
|
|
2011
|
-
for (let
|
|
2012
|
-
|
|
2013
|
-
return
|
|
2014
|
-
}, [
|
|
2015
|
-
return /* @__PURE__ */ e.jsxs("div", { className: K.pagination, style: { ...
|
|
2059
|
+
m.push(s(1)), m.push(/* @__PURE__ */ e.jsx("span", { className: K.dots, children: "..." }, "dots1"));
|
|
2060
|
+
for (let d = i - 1; d <= i + 1 && d <= n; d++)
|
|
2061
|
+
m.push(s(d));
|
|
2062
|
+
return m.push(/* @__PURE__ */ e.jsx("span", { className: K.dots, children: "..." }, "dots2")), m.push(s(n)), m;
|
|
2063
|
+
}, [i, n]);
|
|
2064
|
+
return /* @__PURE__ */ e.jsxs("div", { className: K.pagination, style: { ...o }, children: [
|
|
2016
2065
|
/* @__PURE__ */ e.jsx(
|
|
2017
|
-
|
|
2066
|
+
Y,
|
|
2018
2067
|
{
|
|
2019
2068
|
icon: "arrow-left",
|
|
2020
2069
|
onClick: () => {
|
|
2021
2070
|
r({ skip: Math.max(t.skip - t.take, 0), take: t.take });
|
|
2022
2071
|
},
|
|
2023
2072
|
style: { marginRight: "5px" },
|
|
2024
|
-
disabled:
|
|
2073
|
+
disabled: i === 1
|
|
2025
2074
|
}
|
|
2026
2075
|
),
|
|
2027
|
-
|
|
2076
|
+
w(),
|
|
2028
2077
|
/* @__PURE__ */ e.jsx(
|
|
2029
|
-
|
|
2078
|
+
Y,
|
|
2030
2079
|
{
|
|
2031
2080
|
icon: "arrow-right",
|
|
2032
2081
|
onClick: () => {
|
|
2033
|
-
r({ skip: Math.min(t.skip + t.take, (
|
|
2082
|
+
r({ skip: Math.min(t.skip + t.take, (n - 1) * t.take), take: t.take });
|
|
2034
2083
|
},
|
|
2035
2084
|
style: { marginLeft: "5px" },
|
|
2036
|
-
disabled:
|
|
2085
|
+
disabled: i === n
|
|
2037
2086
|
}
|
|
2038
2087
|
)
|
|
2039
2088
|
] });
|
|
2040
2089
|
}
|
|
2041
|
-
const
|
|
2042
|
-
field:
|
|
2090
|
+
const O2 = "_field_1r98j_1", D2 = {
|
|
2091
|
+
field: O2
|
|
2043
2092
|
};
|
|
2044
|
-
function
|
|
2093
|
+
function m3({
|
|
2045
2094
|
fullWidth: c = !1,
|
|
2046
2095
|
onChange: t,
|
|
2047
2096
|
style: r,
|
|
2048
|
-
className:
|
|
2049
|
-
value:
|
|
2050
|
-
...
|
|
2097
|
+
className: o,
|
|
2098
|
+
value: n = "+380",
|
|
2099
|
+
...i
|
|
2051
2100
|
}) {
|
|
2052
|
-
const
|
|
2053
|
-
const
|
|
2054
|
-
let
|
|
2055
|
-
|
|
2056
|
-
const M =
|
|
2057
|
-
let
|
|
2058
|
-
return M && (
|
|
2059
|
-
},
|
|
2060
|
-
let
|
|
2061
|
-
|
|
2062
|
-
const
|
|
2101
|
+
const s = (m) => {
|
|
2102
|
+
const d = m.replace(/\D/g, "");
|
|
2103
|
+
let h = d.startsWith("380") ? d.slice(3) : d;
|
|
2104
|
+
h = h.slice(0, 9);
|
|
2105
|
+
const M = h.slice(0, 2), p = h.slice(2, 5), u = h.slice(5, 7), z = h.slice(7, 9);
|
|
2106
|
+
let x = "+380";
|
|
2107
|
+
return M && (x += ` (${M}`), M.length === 2 && (x += ")"), p && (x += ` ${p}`), u && (x += `-${u}`), z && (x += `-${z}`), x;
|
|
2108
|
+
}, w = (m) => {
|
|
2109
|
+
let d = m.target.value.replace(/\D/g, "");
|
|
2110
|
+
d.startsWith("380") && (d = d.slice(3)), d = d.slice(0, 9);
|
|
2111
|
+
const h = `+380${d}`;
|
|
2063
2112
|
t && t({
|
|
2064
|
-
...
|
|
2065
|
-
target: { ...
|
|
2113
|
+
...m,
|
|
2114
|
+
target: { ...m.target, value: h }
|
|
2066
2115
|
});
|
|
2067
2116
|
};
|
|
2068
2117
|
return /* @__PURE__ */ e.jsx(
|
|
2069
2118
|
"input",
|
|
2070
2119
|
{
|
|
2071
|
-
...
|
|
2072
|
-
value:
|
|
2073
|
-
onChange:
|
|
2120
|
+
...i,
|
|
2121
|
+
value: s(String(n)),
|
|
2122
|
+
onChange: w,
|
|
2074
2123
|
style: {
|
|
2075
2124
|
width: c ? "100%" : "min-content",
|
|
2076
2125
|
...r
|
|
2077
2126
|
},
|
|
2078
2127
|
className: `
|
|
2079
|
-
${
|
|
2080
|
-
${
|
|
2128
|
+
${D2.field}
|
|
2129
|
+
${o}
|
|
2081
2130
|
`,
|
|
2082
2131
|
placeholder: "(XX) XXX-XX-XX",
|
|
2083
2132
|
type: "tel",
|
|
@@ -2085,12 +2134,12 @@ function h3({
|
|
|
2085
2134
|
}
|
|
2086
2135
|
);
|
|
2087
2136
|
}
|
|
2088
|
-
const
|
|
2089
|
-
switch_btn:
|
|
2090
|
-
circle:
|
|
2091
|
-
icon:
|
|
2092
|
-
correct:
|
|
2093
|
-
cancel:
|
|
2137
|
+
const P2 = "_switch_btn_a1g51_1", A2 = "_circle_a1g51_12", I2 = "_icon_a1g51_24", F2 = "_correct_a1g51_27", Y2 = "_cancel_a1g51_33", n0 = {
|
|
2138
|
+
switch_btn: P2,
|
|
2139
|
+
circle: A2,
|
|
2140
|
+
icon: I2,
|
|
2141
|
+
correct: F2,
|
|
2142
|
+
cancel: Y2
|
|
2094
2143
|
};
|
|
2095
2144
|
function u3({
|
|
2096
2145
|
value: c,
|
|
@@ -2107,7 +2156,7 @@ function u3({
|
|
|
2107
2156
|
},
|
|
2108
2157
|
disabled: r,
|
|
2109
2158
|
children: /* @__PURE__ */ e.jsx("div", { className: n0.circle, children: /* @__PURE__ */ e.jsx(
|
|
2110
|
-
|
|
2159
|
+
I,
|
|
2111
2160
|
{
|
|
2112
2161
|
name: c ? "check" : "cancel",
|
|
2113
2162
|
width: 12,
|
|
@@ -2118,35 +2167,35 @@ function u3({
|
|
|
2118
2167
|
}
|
|
2119
2168
|
);
|
|
2120
2169
|
}
|
|
2121
|
-
const
|
|
2122
|
-
container:
|
|
2170
|
+
const W2 = "_container_1gdr0_1", J2 = {
|
|
2171
|
+
container: W2
|
|
2123
2172
|
};
|
|
2124
|
-
function
|
|
2173
|
+
function p3({
|
|
2125
2174
|
autosize: c = !0,
|
|
2126
2175
|
className: t,
|
|
2127
2176
|
style: r,
|
|
2128
|
-
placeholder:
|
|
2129
|
-
...
|
|
2177
|
+
placeholder: o = "Введіть текст",
|
|
2178
|
+
...n
|
|
2130
2179
|
}) {
|
|
2131
2180
|
return /* @__PURE__ */ e.jsx(
|
|
2132
2181
|
"textarea",
|
|
2133
2182
|
{
|
|
2134
|
-
...
|
|
2135
|
-
placeholder:
|
|
2183
|
+
...n,
|
|
2184
|
+
placeholder: o,
|
|
2136
2185
|
className: `
|
|
2137
|
-
${
|
|
2186
|
+
${J2.container}
|
|
2138
2187
|
${t}
|
|
2139
2188
|
`,
|
|
2140
2189
|
style: { ...r, resize: c ? "none" : "both" }
|
|
2141
2190
|
}
|
|
2142
2191
|
);
|
|
2143
2192
|
}
|
|
2144
|
-
const U2 = "_theme_btn_gv3i6_1", q2 = "_icon_gv3i6_12",
|
|
2193
|
+
const U2 = "_theme_btn_gv3i6_1", q2 = "_icon_gv3i6_12", X2 = "_dark_gv3i6_18", s0 = {
|
|
2145
2194
|
theme_btn: U2,
|
|
2146
2195
|
icon: q2,
|
|
2147
|
-
dark:
|
|
2196
|
+
dark: X2
|
|
2148
2197
|
};
|
|
2149
|
-
function
|
|
2198
|
+
function w3({
|
|
2150
2199
|
theme: c,
|
|
2151
2200
|
toggleTheme: t
|
|
2152
2201
|
}) {
|
|
@@ -2159,76 +2208,76 @@ function p3({
|
|
|
2159
2208
|
{
|
|
2160
2209
|
type: "button",
|
|
2161
2210
|
className: `
|
|
2162
|
-
${
|
|
2163
|
-
${
|
|
2211
|
+
${s0.theme_btn}
|
|
2212
|
+
${s0[c]}
|
|
2164
2213
|
`,
|
|
2165
2214
|
onClick: t,
|
|
2166
2215
|
children: /* @__PURE__ */ e.jsx(
|
|
2167
|
-
|
|
2216
|
+
I,
|
|
2168
2217
|
{
|
|
2169
2218
|
name: r[c],
|
|
2170
2219
|
width: 20,
|
|
2171
2220
|
height: 20,
|
|
2172
2221
|
className: `
|
|
2173
|
-
${
|
|
2174
|
-
${
|
|
2222
|
+
${s0.icon}
|
|
2223
|
+
${s0[c]}
|
|
2175
2224
|
`
|
|
2176
2225
|
}
|
|
2177
2226
|
)
|
|
2178
2227
|
}
|
|
2179
2228
|
);
|
|
2180
2229
|
}
|
|
2181
|
-
const
|
|
2182
|
-
container:
|
|
2183
|
-
checkbox:
|
|
2184
|
-
ellipse:
|
|
2230
|
+
const G2 = "_container_14yjr_1", K2 = "_checkbox_14yjr_15", Z2 = "_ellipse_14yjr_19", x0 = {
|
|
2231
|
+
container: G2,
|
|
2232
|
+
checkbox: K2,
|
|
2233
|
+
ellipse: Z2
|
|
2185
2234
|
};
|
|
2186
|
-
function
|
|
2235
|
+
function x3({
|
|
2187
2236
|
style: c,
|
|
2188
2237
|
className: t,
|
|
2189
2238
|
id: r,
|
|
2190
|
-
...
|
|
2239
|
+
...o
|
|
2191
2240
|
}) {
|
|
2192
2241
|
return /* @__PURE__ */ e.jsxs(
|
|
2193
2242
|
"label",
|
|
2194
2243
|
{
|
|
2195
2244
|
htmlFor: r,
|
|
2196
|
-
className:
|
|
2197
|
-
onClick: (
|
|
2245
|
+
className: x0.container,
|
|
2246
|
+
onClick: (n) => n.stopPropagation(),
|
|
2198
2247
|
children: [
|
|
2199
|
-
/* @__PURE__ */ e.jsx("input", { id: r, type: "checkbox", ...
|
|
2200
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2248
|
+
/* @__PURE__ */ e.jsx("input", { id: r, type: "checkbox", ...o, style: { display: "none", ...c }, className: `${x0.checkbox} ${t}` }),
|
|
2249
|
+
/* @__PURE__ */ e.jsx("div", { className: x0.ellipse })
|
|
2201
2250
|
]
|
|
2202
2251
|
}
|
|
2203
2252
|
);
|
|
2204
2253
|
}
|
|
2205
|
-
let
|
|
2206
|
-
const
|
|
2207
|
-
if (typeof document > "u" ||
|
|
2254
|
+
let E0 = !1;
|
|
2255
|
+
const Q2 = () => {
|
|
2256
|
+
if (typeof document > "u" || E0) return;
|
|
2208
2257
|
const c = document.createElement("div");
|
|
2209
|
-
c.id = "svg-sprite", c.innerHTML = R0, document.body.prepend(c),
|
|
2258
|
+
c.id = "svg-sprite", c.innerHTML = R0, document.body.prepend(c), E0 = !0;
|
|
2210
2259
|
};
|
|
2211
|
-
|
|
2260
|
+
Q2();
|
|
2212
2261
|
export {
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2262
|
+
r3 as Alert,
|
|
2263
|
+
o3 as Autocomplete,
|
|
2264
|
+
v0 as Button,
|
|
2216
2265
|
Y1 as Calendar,
|
|
2217
2266
|
G1 as Checkbox,
|
|
2218
2267
|
s3 as ConfirmAction,
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2268
|
+
i3 as DataTable,
|
|
2269
|
+
a3 as DatePicker,
|
|
2270
|
+
I as Icon,
|
|
2271
|
+
Y as IconButton,
|
|
2272
|
+
d3 as Input,
|
|
2273
|
+
_0 as Loader,
|
|
2225
2274
|
w2 as ModalBox,
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2275
|
+
h3 as Pagination,
|
|
2276
|
+
m3 as PhoneInput,
|
|
2277
|
+
i0 as PopUp,
|
|
2229
2278
|
u3 as Switch,
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2279
|
+
p3 as Textarea,
|
|
2280
|
+
w3 as ThemeChange,
|
|
2281
|
+
x3 as Toggle,
|
|
2282
|
+
Q2 as injectIconSprite
|
|
2234
2283
|
};
|