timeline-calendar-react
Version:
A timeline calendar component for React, built with TypeScript and Vite.
1,161 lines (1,159 loc) • 146 kB
JavaScript
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('._flexBox_1n0fv_1{display:block;width:100%}._flexContainer_1n0fv_6{display:flex;width:100%}._row_1n0fv_11{flex-direction:row}._column_1n0fv_15{flex-direction:column}._padding0_1n0fv_19{padding:0}._padding1_1n0fv_22{padding:8px}._padding2_1n0fv_25{padding:16px}._padding3_1n0fv_28{padding:24px}._padding4_1n0fv_31{padding:32px}._size1_1n0fv_36{flex-basis:8.33%;max-width:8.33%}._size2_1n0fv_40{flex-basis:16.66%;max-width:16.66%}._size3_1n0fv_44{flex-basis:25%;max-width:25%}._size4_1n0fv_48{flex-basis:33.33%;max-width:33.33%}._size5_1n0fv_52{flex-basis:41.66%;max-width:41.66%}._size6_1n0fv_56{flex-basis:50%;max-width:50%}._size7_1n0fv_60{flex-basis:58.33%;max-width:58.33%}._size8_1n0fv_64{flex-basis:66.66%;max-width:66.66%}._size9_1n0fv_68{flex-basis:75%;max-width:75%}._size10_1n0fv_72{flex-basis:83.33%;max-width:83.33%}._size11_1n0fv_76{flex-basis:91.66%;max-width:91.66%}._size12_1n0fv_80{flex-basis:100%;max-width:100%}._customSize_1n0fv_85{min-width:var(--custom-width);max-width:var(--custom-width);flex-basis:var(--custom-width)}@media (max-width: 1200px){._size1_1n0fv_36,._size2_1n0fv_40,._size3_1n0fv_44,._size4_1n0fv_48,._size5_1n0fv_52{flex-basis:50%;max-width:50%}._size6_1n0fv_56,._size7_1n0fv_60,._size8_1n0fv_64,._size9_1n0fv_68,._size10_1n0fv_72,._size11_1n0fv_76,._size12_1n0fv_80{flex-basis:100%;max-width:100%}}@media (max-width: 992px){._size1_1n0fv_36,._size2_1n0fv_40,._size3_1n0fv_44,._size4_1n0fv_48,._size5_1n0fv_52{flex-basis:50%;max-width:50%}._size6_1n0fv_56,._size7_1n0fv_60,._size8_1n0fv_64,._size9_1n0fv_68,._size10_1n0fv_72,._size11_1n0fv_76,._size12_1n0fv_80{flex-basis:100%;max-width:100%}}@media (max-width: 768px){._size1_1n0fv_36,._size2_1n0fv_40,._size3_1n0fv_44,._size4_1n0fv_48,._size5_1n0fv_52,._size6_1n0fv_56,._size7_1n0fv_60,._size8_1n0fv_64,._size9_1n0fv_68,._size10_1n0fv_72,._size11_1n0fv_76,._size12_1n0fv_80{flex-basis:100%;max-width:100%}}@media (max-width: 600px){._size1_1n0fv_36,._size2_1n0fv_40,._size3_1n0fv_44,._size4_1n0fv_48,._size5_1n0fv_52,._size6_1n0fv_56,._size7_1n0fv_60,._size8_1n0fv_64,._size9_1n0fv_68,._size10_1n0fv_72,._size11_1n0fv_76,._size12_1n0fv_80{flex-basis:100%;max-width:100%}}._selectContainer_13z1k_1{display:inline-block;width:320px;text-align:center;position:relative;z-index:9}._selectedText_13z1k_9{cursor:pointer;background-color:transparent;padding:7px 20px;border:2px solid #575757;border-radius:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._selectedTextActive_13z1k_20{border-bottom-left-radius:0;border-bottom-right-radius:0}._selectOptions_13z1k_25{position:absolute;top:100%;left:0;width:100%;max-height:320px;overflow-y:auto;border:2px solid #9f9f9f;border-radius:0 0 6px 6px;border-top:0;list-style:none;padding:0;margin:0;z-index:1}._selectedText_13z1k_9:after{content:"";position:absolute;right:10px;top:16px;border:7px solid transparent;border-color:currentColor transparent transparent transparent}._selectedTextActive_13z1k_20:after{top:8px;border-color:transparent transparent currentColor transparent}ul{margin:0;padding:0;text-align:center}li{list-style-type:none;padding:10px 8px;cursor:pointer}._selectOption_13z1k_25{display:flex;position:relative;padding-left:16px;margin-bottom:0;cursor:pointer;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;justify-content:flex-start;align-items:center}._selectOption_13z1k_25 input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}._checkmark_13z1k_92{position:relative;height:22px;width:22px;margin-right:24px;border-radius:6px}._selectOption_13z1k_25 input~._checkmark_13z1k_92{background-color:#989898}._checkmark_13z1k_92:after{content:"";position:absolute;display:none}._selectOption_13z1k_25 input:checked~._checkmark_13z1k_92:after{display:block}._selectOption_13z1k_25 ._checkmark_13z1k_92:after{left:8px;top:3px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}._selectOption_13z1k_25:hover{background-color:var(--hover-checkmark)!important;color:#fff!important}@media (max-width: 992px){._selectContainer_13z1k_1{width:100%}}._button_2l5nr_1{text-align:center;font-size:14px;font-weight:500;cursor:pointer;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;border-radius:6px}._small_2l5nr_15{padding:6px 10px}._medium_2l5nr_19{padding:8px 20px}._large_2l5nr_23{padding:16px 32px}._button_2l5nr_1:disabled{opacity:.5;cursor:not-allowed}._wrap_slllc_1{flex-wrap:wrap}._container_slllc_5{flex-wrap:wrap;max-width:inherit}._monthControlContainer_slllc_10{display:flex;align-items:center;flex-wrap:wrap;max-width:inherit}._controlsContainer_slllc_17{display:flex;justify-content:flex-end;flex-wrap:wrap;max-width:inherit}._selectContainer_slllc_24{display:flex;flex-basis:260px;min-width:240px}._eventSelectContainer_slllc_30,._searchContainer_slllc_36{display:flex;flex-basis:320px;min-width:240px}._select_slllc_24{z-index:10!important;min-width:240px}._eventSelect_slllc_30{min-width:240px}._monthContainer_slllc_51{align-items:center;flex-wrap:wrap}._currentMonthContainer_slllc_56{flex-basis:172px;max-width:inherit}._navigationContainer_slllc_61{flex-basis:110px;max-width:inherit}._dateContainer_slllc_66{flex-basis:100px;max-width:inherit}._currentMonthButton_slllc_71{margin-right:4px}._prevButton_slllc_75{border-top-right-radius:0!important;border-bottom-right-radius:0!important}._nextButton_slllc_80{border-top-left-radius:0!important;border-bottom-left-radius:0!important;margin-right:16px}._separator_slllc_86{width:1px;background:transparent}@media (min-width: 1200px) and (max-width: 1367px){._dateContainer_slllc_66{flex-basis:calc(100% - 285px);max-width:calc(100% - 285px)}}@media (max-width: 992px){._selectContainer_slllc_24,._eventSelectContainer_slllc_30,._searchContainer_slllc_36{flex-basis:33%;min-width:33%}._monthControlContainer_slllc_10{flex-basis:100%;min-width:100%}._selectContainer_slllc_24{padding-left:0}._select_slllc_24,._eventSelect_slllc_30,._searchContainer_slllc_36{min-width:220px}}@media (max-width: 768px){._selectContainer_slllc_24,._eventSelectContainer_slllc_30{flex-basis:50%;min-width:50%}._searchContainer_slllc_36{flex-basis:100%;min-width:100%}._selectContainer_slllc_24{padding-left:8px}._controlsContainer_slllc_17{justify-content:normal}}@media (max-width: 600px){._selectContainer_slllc_24,._eventSelectContainer_slllc_30,._searchContainer_slllc_36{flex-basis:100%;min-width:100%}}@media (max-width: 500px) and (min-width: 450px){._dateContainer_slllc_66{flex-basis:calc(100% - 285px);max-width:calc(100% - 285px)}}@media (max-width: 450px){._dateContainer_slllc_66{padding:8px 8px 0;flex-basis:100%;max-width:100%}}@media (max-width: 390px){._currentMonthContainer_slllc_56{padding:8px;flex-basis:100%;max-width:100%}._currentMonthContainer_slllc_56 button{width:100%;margin-right:0}._navigationContainer_slllc_61{padding:8px;flex-basis:113px;max-width:113px}._nextButton_slllc_80{margin-right:0}._dateContainer_slllc_66{flex-basis:calc(100% - 113px);max-width:calc(100% - 113px)}}._calendar_15cdj_1{padding:4px}._range_15cdj_5{box-sizing:border-box;font-size:14px;padding:0 12px;text-align:left;border-radius:6px;height:2rem;line-height:2rem;cursor:pointer;top:14px;left:4px;position:absolute;z-index:2;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._startPrev_15cdj_24{border-top-left-radius:0;border-bottom-left-radius:0;left:0}._endNext_15cdj_30{border-top-right-radius:0;border-bottom-right-radius:0}._avatar_15cdj_35{border-radius:50%;width:32px;height:32px;text-align:center;display:flex;justify-content:center;font-size:17px;font-weight:600;align-items:center}._sidebar_15cdj_47,._content_15cdj_48,._range_15cdj_5{transition:max-width .5s,width .5s,flex-basis .5s,min-width .5s ease-in-out}._item_15cdj_57{padding:8px;text-align:center;border-radius:0;height:40px}._sidebar_15cdj_47 ._headSidebar_15cdj_64>._item_15cdj_57{border-top-left-radius:6px}._sidebar_15cdj_47 ._bodySidebar_15cdj_68 ._item_15cdj_57:last-child{border-bottom-left-radius:6px}._content_15cdj_48 ._headContent_15cdj_72>div:last-child ._item_15cdj_57{border-top-right-radius:6px}._content_15cdj_48 ._bodyContent_15cdj_76>div:last-child>div:last-child>div:last-child ._item_15cdj_57{border-bottom-right-radius:6px}._text_15cdj_80{margin:0;font-family:Golos Text,Tofu;font-weight:400}._title_15cdj_86{font-weight:500;font-size:1.25rem;line-height:1.6;letter-spacing:.0075em}._subtitle_15cdj_93{font-weight:500;font-size:.875rem;line-height:1.57;letter-spacing:.00714em}._bodyTitle_15cdj_100,._subtitle_15cdj_93{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._bodyTitle_15cdj_100{font-size:1rem;line-height:1.5;letter-spacing:.00938em}._bodyText_15cdj_113{font-size:.875rem;line-height:1.43;letter-spacing:.01071em}._caption_15cdj_119{font-size:.75rem;line-height:1.66;letter-spacing:.03333em;opacity:.7}._input_6cl0p_1{background:transparent;min-width:200px;height:30px;width:100%;border-radius:6px;border:2px solid #575757;font-size:14px;font-weight:400;padding:4px 12px}._dayContainer_rqea9_1{min-height:40px;position:relative}._tooltip_rqea9_6{z-index:999;border-radius:8px;text-align:left}._flexContainer_rqea9_12{max-width:var(--cell-width, var(--max-width))}._loadingContainer_1u9yu_1{margin:0 auto;place-items:center;height:200px;display:flex;align-items:center;justify-content:center}._loading_1u9yu_1{border:4px solid #eeeeee;border-top:4px solid #2196f3;border-radius:50%;width:48px;height:48px;animation:_spin_1u9yu_1 1s linear infinite}@keyframes _spin_1u9yu_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
import Ve, { useState as ee, createRef as gr, useCallback as xt, useEffect as J, createContext as Gn, useContext as Qn, useId as yr, useRef as qe, useLayoutEffect as _r, useImperativeHandle as xr, memo as on } from "react";
function pt(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var qt = { exports: {} }, Nt = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var bn;
function wr() {
if (bn) return Nt;
bn = 1;
var e = Ve, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
function s(l, c, d) {
var u, f = {}, w = null, _ = null;
d !== void 0 && (w = "" + d), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (_ = c.ref);
for (u in c) n.call(c, u) && !a.hasOwnProperty(u) && (f[u] = c[u]);
if (l && l.defaultProps) for (u in c = l.defaultProps, c) f[u] === void 0 && (f[u] = c[u]);
return { $$typeof: t, type: l, key: w, ref: _, props: f, _owner: o.current };
}
return Nt.Fragment = r, Nt.jsx = s, Nt.jsxs = s, Nt;
}
var zt = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Sn;
function br() {
return Sn || (Sn = 1, process.env.NODE_ENV !== "production" && function() {
var e = Ve, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), g = Symbol.iterator, p = "@@iterator";
function h(i) {
if (i === null || typeof i != "object")
return null;
var y = g && i[g] || i[p];
return typeof y == "function" ? y : null;
}
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function C(i) {
{
for (var y = arguments.length, E = new Array(y > 1 ? y - 1 : 0), z = 1; z < y; z++)
E[z - 1] = arguments[z];
$("error", i, E);
}
}
function $(i, y, E) {
{
var z = x.ReactDebugCurrentFrame, re = z.getStackAddendum();
re !== "" && (y += "%s", E = E.concat([re]));
var ie = E.map(function(Z) {
return String(Z);
});
ie.unshift("Warning: " + y), Function.prototype.apply.call(console[i], console, ie);
}
}
var W = !1, A = !1, q = !1, D = !1, M = !1, B;
B = Symbol.for("react.module.reference");
function Y(i) {
return !!(typeof i == "string" || typeof i == "function" || i === n || i === a || M || i === o || i === d || i === u || D || i === _ || W || A || q || typeof i == "object" && i !== null && (i.$$typeof === w || i.$$typeof === f || i.$$typeof === s || i.$$typeof === l || i.$$typeof === c || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
i.$$typeof === B || i.getModuleId !== void 0));
}
function N(i, y, E) {
var z = i.displayName;
if (z)
return z;
var re = y.displayName || y.name || "";
return re !== "" ? E + "(" + re + ")" : E;
}
function K(i) {
return i.displayName || "Context";
}
function V(i) {
if (i == null)
return null;
if (typeof i.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
return i.displayName || i.name || null;
if (typeof i == "string")
return i;
switch (i) {
case n:
return "Fragment";
case r:
return "Portal";
case a:
return "Profiler";
case o:
return "StrictMode";
case d:
return "Suspense";
case u:
return "SuspenseList";
}
if (typeof i == "object")
switch (i.$$typeof) {
case l:
var y = i;
return K(y) + ".Consumer";
case s:
var E = i;
return K(E._context) + ".Provider";
case c:
return N(i, i.render, "ForwardRef");
case f:
var z = i.displayName || null;
return z !== null ? z : V(i.type) || "Memo";
case w: {
var re = i, ie = re._payload, Z = re._init;
try {
return V(Z(ie));
} catch {
return null;
}
}
}
return null;
}
var T = Object.assign, b = 0, m, O, S, j, L, k, G;
function se() {
}
se.__reactDisabledLog = !0;
function le() {
{
if (b === 0) {
m = console.log, O = console.info, S = console.warn, j = console.error, L = console.group, k = console.groupCollapsed, G = console.groupEnd;
var i = {
configurable: !0,
enumerable: !0,
value: se,
writable: !0
};
Object.defineProperties(console, {
info: i,
log: i,
warn: i,
error: i,
group: i,
groupCollapsed: i,
groupEnd: i
});
}
b++;
}
}
function pe() {
{
if (b--, b === 0) {
var i = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: T({}, i, {
value: m
}),
info: T({}, i, {
value: O
}),
warn: T({}, i, {
value: S
}),
error: T({}, i, {
value: j
}),
group: T({}, i, {
value: L
}),
groupCollapsed: T({}, i, {
value: k
}),
groupEnd: T({}, i, {
value: G
})
});
}
b < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var Oe = x.ReactCurrentDispatcher, xe;
function ae(i, y, E) {
{
if (xe === void 0)
try {
throw Error();
} catch (re) {
var z = re.stack.trim().match(/\n( *(at )?)/);
xe = z && z[1] || "";
}
return `
` + xe + i;
}
}
var ve = !1, Q;
{
var de = typeof WeakMap == "function" ? WeakMap : Map;
Q = new de();
}
function Se(i, y) {
if (!i || ve)
return "";
{
var E = Q.get(i);
if (E !== void 0)
return E;
}
var z;
ve = !0;
var re = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var ie;
ie = Oe.current, Oe.current = null, le();
try {
if (y) {
var Z = function() {
throw Error();
};
if (Object.defineProperty(Z.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(Z, []);
} catch (_e) {
z = _e;
}
Reflect.construct(i, [], Z);
} else {
try {
Z.call();
} catch (_e) {
z = _e;
}
i.call(Z.prototype);
}
} else {
try {
throw Error();
} catch (_e) {
z = _e;
}
i();
}
} catch (_e) {
if (_e && z && typeof _e.stack == "string") {
for (var U = _e.stack.split(`
`), Te = z.stack.split(`
`), ce = U.length - 1, he = Te.length - 1; ce >= 1 && he >= 0 && U[ce] !== Te[he]; )
he--;
for (; ce >= 1 && he >= 0; ce--, he--)
if (U[ce] !== Te[he]) {
if (ce !== 1 || he !== 1)
do
if (ce--, he--, he < 0 || U[ce] !== Te[he]) {
var H = `
` + U[ce].replace(" at new ", " at ");
return i.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", i.displayName)), typeof i == "function" && Q.set(i, H), H;
}
while (ce >= 1 && he >= 0);
break;
}
}
} finally {
ve = !1, Oe.current = ie, pe(), Error.prepareStackTrace = re;
}
var Re = i ? i.displayName || i.name : "", Be = Re ? ae(Re) : "";
return typeof i == "function" && Q.set(i, Be), Be;
}
function we(i, y, E) {
return Se(i, !1);
}
function Ke(i) {
var y = i.prototype;
return !!(y && y.isReactComponent);
}
function fe(i, y, E) {
if (i == null)
return "";
if (typeof i == "function")
return Se(i, Ke(i));
if (typeof i == "string")
return ae(i);
switch (i) {
case d:
return ae("Suspense");
case u:
return ae("SuspenseList");
}
if (typeof i == "object")
switch (i.$$typeof) {
case c:
return we(i.render);
case f:
return fe(i.type, y, E);
case w: {
var z = i, re = z._payload, ie = z._init;
try {
return fe(ie(re), y, E);
} catch {
}
}
}
return "";
}
var ke = Object.prototype.hasOwnProperty, Ae = {}, Le = x.ReactDebugCurrentFrame;
function ne(i) {
if (i) {
var y = i._owner, E = fe(i.type, i._source, y ? y.type : null);
Le.setExtraStackFrame(E);
} else
Le.setExtraStackFrame(null);
}
function ut(i, y, E, z, re) {
{
var ie = Function.call.bind(ke);
for (var Z in i)
if (ie(i, Z)) {
var U = void 0;
try {
if (typeof i[Z] != "function") {
var Te = Error((z || "React class") + ": " + E + " type `" + Z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[Z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw Te.name = "Invariant Violation", Te;
}
U = i[Z](y, Z, z, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (ce) {
U = ce;
}
U && !(U instanceof Error) && (ne(re), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", z || "React class", E, Z, typeof U), ne(null)), U instanceof Error && !(U.message in Ae) && (Ae[U.message] = !0, ne(re), C("Failed %s type: %s", E, U.message), ne(null));
}
}
}
var vt = Array.isArray;
function et(i) {
return vt(i);
}
function gt(i) {
{
var y = typeof Symbol == "function" && Symbol.toStringTag, E = y && i[Symbol.toStringTag] || i.constructor.name || "Object";
return E;
}
}
function Ct(i) {
try {
return tt(i), !1;
} catch {
return !0;
}
}
function tt(i) {
return "" + i;
}
function Ie(i) {
if (Ct(i))
return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gt(i)), tt(i);
}
var dt = x.ReactCurrentOwner, nt = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, rt, Tt;
function ft(i) {
if (ke.call(i, "ref")) {
var y = Object.getOwnPropertyDescriptor(i, "ref").get;
if (y && y.isReactWarning)
return !1;
}
return i.ref !== void 0;
}
function ot(i) {
if (ke.call(i, "key")) {
var y = Object.getOwnPropertyDescriptor(i, "key").get;
if (y && y.isReactWarning)
return !1;
}
return i.key !== void 0;
}
function Ne(i, y) {
typeof i.ref == "string" && dt.current;
}
function me(i, y) {
{
var E = function() {
rt || (rt = !0, C("%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://reactjs.org/link/special-props)", y));
};
E.isReactWarning = !0, Object.defineProperty(i, "key", {
get: E,
configurable: !0
});
}
}
function Et(i, y) {
{
var E = function() {
Tt || (Tt = !0, C("%s: `ref` 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://reactjs.org/link/special-props)", y));
};
E.isReactWarning = !0, Object.defineProperty(i, "ref", {
get: E,
configurable: !0
});
}
}
var yt = function(i, y, E, z, re, ie, Z) {
var U = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: i,
key: y,
ref: E,
props: Z,
// Record the component responsible for creating this element.
_owner: ie
};
return U._store = {}, Object.defineProperty(U._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(U, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: z
}), Object.defineProperty(U, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: re
}), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
};
function ht(i, y, E, z, re) {
{
var ie, Z = {}, U = null, Te = null;
E !== void 0 && (Ie(E), U = "" + E), ot(y) && (Ie(y.key), U = "" + y.key), ft(y) && (Te = y.ref, Ne(y, re));
for (ie in y)
ke.call(y, ie) && !nt.hasOwnProperty(ie) && (Z[ie] = y[ie]);
if (i && i.defaultProps) {
var ce = i.defaultProps;
for (ie in ce)
Z[ie] === void 0 && (Z[ie] = ce[ie]);
}
if (U || Te) {
var he = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
U && me(Z, he), Te && Et(Z, he);
}
return yt(i, U, Te, re, z, dt.current, Z);
}
}
var st = x.ReactCurrentOwner, it = x.ReactDebugCurrentFrame;
function ze(i) {
if (i) {
var y = i._owner, E = fe(i.type, i._source, y ? y.type : null);
it.setExtraStackFrame(E);
} else
it.setExtraStackFrame(null);
}
var Xe;
Xe = !1;
function at(i) {
return typeof i == "object" && i !== null && i.$$typeof === t;
}
function _t() {
{
if (st.current) {
var i = V(st.current.type);
if (i)
return `
Check the render method of \`` + i + "`.";
}
return "";
}
}
function ye(i) {
return "";
}
var je = {};
function F(i) {
{
var y = _t();
if (!y) {
var E = typeof i == "string" ? i : i.displayName || i.name;
E && (y = `
Check the top-level render call using <` + E + ">.");
}
return y;
}
}
function X(i, y) {
{
if (!i._store || i._store.validated || i.key != null)
return;
i._store.validated = !0;
var E = F(y);
if (je[E])
return;
je[E] = !0;
var z = "";
i && i._owner && i._owner !== st.current && (z = " It was passed a child from " + V(i._owner.type) + "."), ze(i), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, z), ze(null);
}
}
function De(i, y) {
{
if (typeof i != "object")
return;
if (et(i))
for (var E = 0; E < i.length; E++) {
var z = i[E];
at(z) && X(z, y);
}
else if (at(i))
i._store && (i._store.validated = !0);
else if (i) {
var re = h(i);
if (typeof re == "function" && re !== i.entries)
for (var ie = re.call(i), Z; !(Z = ie.next()).done; )
at(Z.value) && X(Z.value, y);
}
}
}
function lt(i) {
{
var y = i.type;
if (y == null || typeof y == "string")
return;
var E;
if (typeof y == "function")
E = y.propTypes;
else if (typeof y == "object" && (y.$$typeof === c || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
y.$$typeof === f))
E = y.propTypes;
else
return;
if (E) {
var z = V(y);
ut(E, i.props, "prop", z, i);
} else if (y.PropTypes !== void 0 && !Xe) {
Xe = !0;
var re = V(y);
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", re || "Unknown");
}
typeof y.getDefaultProps == "function" && !y.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function R(i) {
{
for (var y = Object.keys(i.props), E = 0; E < y.length; E++) {
var z = y[E];
if (z !== "children" && z !== "key") {
ze(i), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", z), ze(null);
break;
}
}
i.ref !== null && (ze(i), C("Invalid attribute `ref` supplied to `React.Fragment`."), ze(null));
}
}
var P = {};
function I(i, y, E, z, re, ie) {
{
var Z = Y(i);
if (!Z) {
var U = "";
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (U += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var Te = ye();
Te ? U += Te : U += _t();
var ce;
i === null ? ce = "null" : et(i) ? ce = "array" : i !== void 0 && i.$$typeof === t ? (ce = "<" + (V(i.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : ce = typeof i, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ce, U);
}
var he = ht(i, y, E, re, ie);
if (he == null)
return he;
if (Z) {
var H = y.children;
if (H !== void 0)
if (z)
if (et(H)) {
for (var Re = 0; Re < H.length; Re++)
De(H[Re], i);
Object.freeze && Object.freeze(H);
} else
C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
De(H, i);
}
if (ke.call(y, "key")) {
var Be = V(i), _e = Object.keys(y).filter(function(vr) {
return vr !== "key";
}), At = _e.length > 0 ? "{key: someKey, " + _e.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!P[Be + At]) {
var Lt = _e.length > 0 ? "{" + _e.join(": ..., ") + ": ...}" : "{}";
C(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, At, Be, Lt, Be), P[Be + At] = !0;
}
}
return i === n ? R(he) : lt(he), he;
}
}
function ge(i, y, E) {
return I(i, y, E, !0);
}
function Ce(i, y, E) {
return I(i, y, E, !1);
}
var Fe = Ce, We = ge;
zt.Fragment = n, zt.jsx = Fe, zt.jsxs = We;
}()), zt;
}
var Cn;
function Sr() {
return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? qt.exports = wr() : qt.exports = br()), qt.exports;
}
var v = Sr(), cn = { exports: {} };
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
var Tn;
function Cr() {
return Tn || (Tn = 1, function(e) {
(function() {
var t = {}.hasOwnProperty;
function r() {
for (var a = "", s = 0; s < arguments.length; s++) {
var l = arguments[s];
l && (a = o(a, n(l)));
}
return a;
}
function n(a) {
if (typeof a == "string" || typeof a == "number")
return a;
if (typeof a != "object")
return "";
if (Array.isArray(a))
return r.apply(null, a);
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
return a.toString();
var s = "";
for (var l in a)
t.call(a, l) && a[l] && (s = o(s, l));
return s;
}
function o(a, s) {
return s ? a ? a + " " + s : a + s : a;
}
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
})();
}(cn)), cn.exports;
}
var Tr = Cr();
const $e = /* @__PURE__ */ pt(Tr), Er = "_flexBox_1n0fv_1", $r = "_flexContainer_1n0fv_6", Or = "_row_1n0fv_11", Dr = "_column_1n0fv_15", Rr = "_padding0_1n0fv_19", jr = "_padding1_1n0fv_22", Mr = "_padding2_1n0fv_25", kr = "_padding3_1n0fv_28", Ar = "_padding4_1n0fv_31", Lr = "_size1_1n0fv_36", Nr = "_size2_1n0fv_40", zr = "_size3_1n0fv_44", Yr = "_size4_1n0fv_48", Fr = "_size5_1n0fv_52", Wr = "_size6_1n0fv_56", Pr = "_size7_1n0fv_60", Ir = "_size8_1n0fv_64", Br = "_size9_1n0fv_68", Hr = "_size10_1n0fv_72", qr = "_size11_1n0fv_76", Vr = "_size12_1n0fv_80", Ur = "_customSize_1n0fv_85", $t = {
flexBox: Er,
flexContainer: $r,
row: Or,
column: Dr,
padding0: Rr,
padding1: jr,
padding2: Mr,
padding3: kr,
padding4: Ar,
size1: Lr,
size2: Nr,
size3: zr,
size4: Yr,
size5: Fr,
size6: Wr,
size7: Pr,
size8: Ir,
size9: Br,
size10: Hr,
size11: qr,
size12: Vr,
customSize: Ur
}, oe = Ve.forwardRef(
(e, t) => {
const {
size: r = 12,
pxSize: n,
padding: o = 0,
type: a = "box",
children: s,
direction: l = "row",
className: c,
dataTestid: d,
style: u
} = e, f = $e(
a === "flex" ? $t.flexContainer : $t.flexBox,
$t[`size${r}`],
$t[`padding${o}`],
$t[l],
{
[$t.customSize]: n
},
c
), w = 100 * r / 12, _ = n ? {
"--custom-width": n,
...u
} : 12 % r !== 0 && r % 2 !== 0 ? {
flexBasis: `${w}%`,
maxWidth: `${w}%`,
minWidth: "auto",
...u
} : u;
return /* @__PURE__ */ v.jsx(
"div",
{
"data-testid": d,
className: f,
ref: t,
style: _,
children: s
}
);
}
);
var Ut = { exports: {} }, Jr = Ut.exports, En;
function er() {
return En || (En = 1, function(e, t) {
(function(r, n) {
e.exports = n();
})(Jr, function() {
var r = 1e3, n = 6e4, o = 36e5, a = "millisecond", s = "second", l = "minute", c = "hour", d = "day", u = "week", f = "month", w = "quarter", _ = "year", g = "date", p = "Invalid Date", h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
var b = ["th", "st", "nd", "rd"], m = T % 100;
return "[" + T + (b[(m - 20) % 10] || b[m] || b[0]) + "]";
} }, $ = function(T, b, m) {
var O = String(T);
return !O || O.length >= b ? T : "" + Array(b + 1 - O.length).join(m) + T;
}, W = { s: $, z: function(T) {
var b = -T.utcOffset(), m = Math.abs(b), O = Math.floor(m / 60), S = m % 60;
return (b <= 0 ? "+" : "-") + $(O, 2, "0") + ":" + $(S, 2, "0");
}, m: function T(b, m) {
if (b.date() < m.date()) return -T(m, b);
var O = 12 * (m.year() - b.year()) + (m.month() - b.month()), S = b.clone().add(O, f), j = m - S < 0, L = b.clone().add(O + (j ? -1 : 1), f);
return +(-(O + (m - S) / (j ? S - L : L - S)) || 0);
}, a: function(T) {
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
}, p: function(T) {
return { M: f, y: _, w: u, d, D: g, h: c, m: l, s, ms: a, Q: w }[T] || String(T || "").toLowerCase().replace(/s$/, "");
}, u: function(T) {
return T === void 0;
} }, A = "en", q = {};
q[A] = C;
var D = "$isDayjsObject", M = function(T) {
return T instanceof K || !(!T || !T[D]);
}, B = function T(b, m, O) {
var S;
if (!b) return A;
if (typeof b == "string") {
var j = b.toLowerCase();
q[j] && (S = j), m && (q[j] = m, S = j);
var L = b.split("-");
if (!S && L.length > 1) return T(L[0]);
} else {
var k = b.name;
q[k] = b, S = k;
}
return !O && S && (A = S), S || !O && A;
}, Y = function(T, b) {
if (M(T)) return T.clone();
var m = typeof b == "object" ? b : {};
return m.date = T, m.args = arguments, new K(m);
}, N = W;
N.l = B, N.i = M, N.w = function(T, b) {
return Y(T, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
};
var K = function() {
function T(m) {
this.$L = B(m.locale, null, !0), this.parse(m), this.$x = this.$x || m.x || {}, this[D] = !0;
}
var b = T.prototype;
return b.parse = function(m) {
this.$d = function(O) {
var S = O.date, j = O.utc;
if (S === null) return /* @__PURE__ */ new Date(NaN);
if (N.u(S)) return /* @__PURE__ */ new Date();
if (S instanceof Date) return new Date(S);
if (typeof S == "string" && !/Z$/i.test(S)) {
var L = S.match(h);
if (L) {
var k = L[2] - 1 || 0, G = (L[7] || "0").substring(0, 3);
return j ? new Date(Date.UTC(L[1], k, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, G)) : new Date(L[1], k, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, G);
}
}
return new Date(S);
}(m), this.init();
}, b.init = function() {
var m = this.$d;
this.$y = m.getFullYear(), this.$M = m.getMonth(), this.$D = m.getDate(), this.$W = m.getDay(), this.$H = m.getHours(), this.$m = m.getMinutes(), this.$s = m.getSeconds(), this.$ms = m.getMilliseconds();
}, b.$utils = function() {
return N;
}, b.isValid = function() {
return this.$d.toString() !== p;
}, b.isSame = function(m, O) {
var S = Y(m);
return this.startOf(O) <= S && S <= this.endOf(O);
}, b.isAfter = function(m, O) {
return Y(m) < this.startOf(O);
}, b.isBefore = function(m, O) {
return this.endOf(O) < Y(m);
}, b.$g = function(m, O, S) {
return N.u(m) ? this[O] : this.set(S, m);
}, b.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, b.valueOf = function() {
return this.$d.getTime();
}, b.startOf = function(m, O) {
var S = this, j = !!N.u(O) || O, L = N.p(m), k = function(ve, Q) {
var de = N.w(S.$u ? Date.UTC(S.$y, Q, ve) : new Date(S.$y, Q, ve), S);
return j ? de : de.endOf(d);
}, G = function(ve, Q) {
return N.w(S.toDate()[ve].apply(S.toDate("s"), (j ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Q)), S);
}, se = this.$W, le = this.$M, pe = this.$D, Oe = "set" + (this.$u ? "UTC" : "");
switch (L) {
case _:
return j ? k(1, 0) : k(31, 11);
case f:
return j ? k(1, le) : k(0, le + 1);
case u:
var xe = this.$locale().weekStart || 0, ae = (se < xe ? se + 7 : se) - xe;
return k(j ? pe - ae : pe + (6 - ae), le);
case d:
case g:
return G(Oe + "Hours", 0);
case c:
return G(Oe + "Minutes", 1);
case l:
return G(Oe + "Seconds", 2);
case s:
return G(Oe + "Milliseconds", 3);
default:
return this.clone();
}
}, b.endOf = function(m) {
return this.startOf(m, !1);
}, b.$set = function(m, O) {
var S, j = N.p(m), L = "set" + (this.$u ? "UTC" : ""), k = (S = {}, S[d] = L + "Date", S[g] = L + "Date", S[f] = L + "Month", S[_] = L + "FullYear", S[c] = L + "Hours", S[l] = L + "Minutes", S[s] = L + "Seconds", S[a] = L + "Milliseconds", S)[j], G = j === d ? this.$D + (O - this.$W) : O;
if (j === f || j === _) {
var se = this.clone().set(g, 1);
se.$d[k](G), se.init(), this.$d = se.set(g, Math.min(this.$D, se.daysInMonth())).$d;
} else k && this.$d[k](G);
return this.init(), this;
}, b.set = function(m, O) {
return this.clone().$set(m, O);
}, b.get = function(m) {
return this[N.p(m)]();
}, b.add = function(m, O) {
var S, j = this;
m = Number(m);
var L = N.p(O), k = function(le) {
var pe = Y(j);
return N.w(pe.date(pe.date() + Math.round(le * m)), j);
};
if (L === f) return this.set(f, this.$M + m);
if (L === _) return this.set(_, this.$y + m);
if (L === d) return k(1);
if (L === u) return k(7);
var G = (S = {}, S[l] = n, S[c] = o, S[s] = r, S)[L] || 1, se = this.$d.getTime() + m * G;
return N.w(se, this);
}, b.subtract = function(m, O) {
return this.add(-1 * m, O);
}, b.format = function(m) {
var O = this, S = this.$locale();
if (!this.isValid()) return S.invalidDate || p;
var j = m || "YYYY-MM-DDTHH:mm:ssZ", L = N.z(this), k = this.$H, G = this.$m, se = this.$M, le = S.weekdays, pe = S.months, Oe = S.meridiem, xe = function(Q, de, Se, we) {
return Q && (Q[de] || Q(O, j)) || Se[de].slice(0, we);
}, ae = function(Q) {
return N.s(k % 12 || 12, Q, "0");
}, ve = Oe || function(Q, de, Se) {
var we = Q < 12 ? "AM" : "PM";
return Se ? we.toLowerCase() : we;
};
return j.replace(x, function(Q, de) {
return de || function(Se) {
switch (Se) {
case "YY":
return String(O.$y).slice(-2);
case "YYYY":
return N.s(O.$y, 4, "0");
case "M":
return se + 1;
case "MM":
return N.s(se + 1, 2, "0");
case "MMM":
return xe(S.monthsShort, se, pe, 3);
case "MMMM":
return xe(pe, se);
case "D":
return O.$D;
case "DD":
return N.s(O.$D, 2, "0");
case "d":
return String(O.$W);
case "dd":
return xe(S.weekdaysMin, O.$W, le, 2);
case "ddd":
return xe(S.weekdaysShort, O.$W, le, 3);
case "dddd":
return le[O.$W];
case "H":
return String(k);
case "HH":
return N.s(k, 2, "0");
case "h":
return ae(1);
case "hh":
return ae(2);
case "a":
return ve(k, G, !0);
case "A":
return ve(k, G, !1);
case "m":
return String(G);
case "mm":
return N.s(G, 2, "0");
case "s":
return String(O.$s);
case "ss":
return N.s(O.$s, 2, "0");
case "SSS":
return N.s(O.$ms, 3, "0");
case "Z":
return L;
}
return null;
}(Q) || L.replace(":", "");
});
}, b.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, b.diff = function(m, O, S) {
var j, L = this, k = N.p(O), G = Y(m), se = (G.utcOffset() - this.utcOffset()) * n, le = this - G, pe = function() {
return N.m(L, G);
};
switch (k) {
case _:
j = pe() / 12;
break;
case f:
j = pe();
break;
case w:
j = pe() / 3;
break;
case u:
j = (le - se) / 6048e5;
break;
case d:
j = (le - se) / 864e5;
break;
case c:
j = le / o;
break;
case l:
j = le / n;
break;
case s:
j = le / r;
break;
default:
j = le;
}
return S ? j : N.a(j);
}, b.daysInMonth = function() {
return this.endOf(f).$D;
}, b.$locale = function() {
return q[this.$L];
}, b.locale = function(m, O) {
if (!m) return this.$L;
var S = this.clone(), j = B(m, O, !0);
return j && (S.$L = j), S;
}, b.clone = function() {
return N.w(this.$d, this);
}, b.toDate = function() {
return new Date(this.valueOf());
}, b.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, b.toISOString = function() {
return this.$d.toISOString();
}, b.toString = function() {
return this.$d.toUTCString();
}, T;
}(), V = K.prototype;
return Y.prototype = V, [["$ms", a], ["$s", s], ["$m", l], ["$H", c], ["$W", d], ["$M", f], ["$y", _], ["$D", g]].forEach(function(T) {
V[T[1]] = function(b) {
return this.$g(b, T[0], T[1]);
};
}), Y.extend = function(T, b) {
return T.$i || (T(b, K, Y), T.$i = !0), Y;
}, Y.locale = B, Y.isDayjs = M, Y.unix = function(T) {
return Y(1e3 * T);
}, Y.en = q[A], Y.Ls = q, Y.p = {}, Y;
});
}(Ut)), Ut.exports;
}
var Kr = er();
const ue = /* @__PURE__ */ pt(Kr), ct = {
ru: {
from: "с",
to: "по",
status: "статус",
allStatuses: "Все статусы",
selectStatus: "Выбрать тип статуса",
allEvents: "Все события",
selectEvent: "Выбрать тип события",
currentMonth: "Текущий месяц",
search: "Поиск",
day1: "День",
day2: "Дня",
day3: "Дней"
},
en: {
from: "from",
to: "to",
status: "status",
allStatuses: "All statuses",
selectStatus: "Select status type",
allEvents: "All events",
selectEvent: "Select event type",
currentMonth: "Current month",
search: "Search",
day1: "Day",
day2: "Day",
day3: "Days"
}
};
function Xr(e, t) {
let r;
return function() {
clearTimeout(r), r = setTimeout(() => e(), t);
};
}
const Zr = (e, t) => ue(e).format("DD-MM-YYYY") === ue(t).format("DD-MM-YYYY"), Me = "light", $n = [
"#f44336",
// red
"#2196f3",
// blue
"#4caf50",
// green
"#ffeb3b",
// yellow
"#ff9800",
// orange
"#9c27b0",
// purple
"#673ab7",
// indigo
"#3f51b5",
// deep-purple
"#00bcd4",
// cyan
"#8bc34a",
// lime
"#ff5722"
// deep-orange
], be = {
dark: {
bgPrimary: "#1e2123",
bgSecondary: "#252525",
textPrimary: "#ffffffb3",
textSecondary: "#a1b4d3",
eventColor: "#f44336",
statusColor: "#4caf50",
buttonBg: "#a7bac3",
boxShadow: "#00000099",
avatarBg: "#a7bac3",
avatarColor: "#000000",
checkmark: "#32373b",
hoverCheckmark: "#656565"
},
light: {
bgPrimary: "#dbdbde",
bgSecondary: "#f3f3f3",
textPrimary: "#000000b3",
textSecondary: "#cccccc",
eventColor: "#f44336",
statusColor: "#4caf50",
buttonBg: "#455a64",
boxShadow: "#FFFFFFEA",
avatarBg: "#455a64",
avatarColor: "#FFFFFF",
checkmark: "#c0c3cd",
hoverCheckmark: "#7f7f7f"
}
}, On = (e) => {
const t = [], r = [...$n];
return e.forEach((n, o) => {
r.length || r.push(...$n);
const a = Math.floor(Math.random() * r.length);
t.push({
id: o,
label: n,
icon: void 0,
color: r.splice(a, 1)[0]
});
}), t;
}, Yt = (e, t, r, n) => {
if (t === void 0)
return e;
if (typeof t == "string")
return t;
if (typeof t == "number" && n) {
if (n instanceof Map)
return n.get(t) || e;
if (Array.isArray(n)) {
const o = n.find((a) => a.id === t);
if (r && o && o[r])
return r in o ? o[r] : e;
}
}
return e;
}, Gr = (e) => new RegExp(e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "i"), Qr = (e) => e.every((t) => typeof t == "string") ? new Map(e.map((t, r) => [r, t])) : new Map(e.map((t) => [t.id, t.label])), Dn = (e, t, r) => typeof e.eventType == "number" ? t.has(e.eventType) : r.some(
(n) => n === e.eventType
), Rn = (e, t, r) => typeof e.statusType == "number" ? t.has(e.statusType) : r.some(
(n) => n === e.statusType
), eo = (e, t, r, n, o, a) => {
if (!e) return [];
const s = new Map(a == null ? void 0 : a.map((u) => [u.id, u.name])), l = r ? Qr(r) : void 0, c = n ? new Map(n.map((u) => [u.id, u.label])) : void 0;
o && o.trim().length > 0 && (e = e.filter((u) => Gr(o).test(u.name)));
const d = t == null ? void 0 : t.reduce((u, f) => {
var g;
const w = (g = f.userId) == null ? void 0 : g.toString();
return w && (r && r.length > 0 && n && n.length > 0 ? Dn(f, l, r) && Rn(f, c, n) : r && r.length > 0 ? Dn(f, l, r) : n && n.length > 0 ? Rn(f, c, n) : !0) && (u.has(w) || u.set(w, []), u.get(w).push(f)), u;
}, /* @__PURE__ */ new Map());
return e.map((u) => ({
id: u.id,
name: u.name,
department: Yt("", u.department, void 0, s),
events: (d == null ? void 0 : d.get(u.id.toString())) || []
}));
}, to = (e) => {
const {
ranges: t,
users: r,
departments: n,
currentDate: o,
events: a,
statuses: s,
openedSidebar: l
} = e, [c, d] = ee(