@espresso-lab/mantine-data-table 1.9.36 → 1.9.38

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.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as Te from "react";
2
- import Nt, { createContext as In, useContext as Ci, useCallback as je, createElement as xr, useRef as De, useImperativeHandle as lo, useEffect as Re, useState as be, Fragment as Si, useMemo as He, useLayoutEffect as Di } from "react";
3
- import { factory as $e, useProps as Fe, useStyles as yt, createVarsResolver as ar, UnstyledButton as tr, getSize as Er, Box as ze, getSpacing as Os, getFontSize as Rr, useResolvedStylesApi as ki, AccordionChevron as co, useInputProps as Ms, Input as Cr, Popover as rr, Alert as jr, Stepper as kr, Group as ht, Button as ft, TextInput as Pi, NumberInput as Oi, Checkbox as lr, Textarea as Mi, createSafeContext as As, rem as kt, Table as Es, ScrollArea as Rs, TableThead as js, TableTr as Tt, PopoverTarget as Ai, PopoverDropdown as Ei, Stack as Bn, TableTfoot as Ts, Center as Rt, Loader as $s, Text as or, parseThemeColor as Ns, TableTh as cr, Flex as Ls, ActionIcon as Pr, TableTd as Yn, Collapse as Is, useMantineTheme as Ri, Pagination as Bs, useDirection as Ys, Menu as Dt, MenuTarget as zs, MenuDropdown as Fs, MenuItem as Ws, Skeleton as jt, Tabs as Cn, Modal as un, Title as Us } from "@mantine/core";
2
+ import Nt, { createContext as In, useContext as Ci, useCallback as je, createElement as xr, useRef as De, useImperativeHandle as lo, useEffect as Re, useState as be, Fragment as Si, useMemo as Ge, useLayoutEffect as Di } from "react";
3
+ import { factory as Ne, useProps as We, useStyles as yt, createVarsResolver as ar, UnstyledButton as tr, getSize as Er, Box as Fe, getSpacing as Os, getFontSize as Rr, useResolvedStylesApi as ki, AccordionChevron as co, useInputProps as Ms, Input as Cr, Popover as rr, Alert as jr, Stepper as kr, Group as ft, Button as pt, TextInput as Pi, NumberInput as Oi, Checkbox as lr, Textarea as Mi, createSafeContext as As, rem as kt, Table as Es, ScrollArea as Rs, TableThead as js, TableTr as Tt, PopoverTarget as Ai, PopoverDropdown as Ei, Stack as Bn, TableTfoot as Ts, Center as Rt, Loader as $s, Text as or, parseThemeColor as Ns, TableTh as cr, Flex as Ls, ActionIcon as Pr, TableTd as Yn, Collapse as Is, useMantineTheme as Ri, Pagination as Bs, useDirection as Ys, Menu as Dt, MenuTarget as zs, MenuDropdown as Fs, MenuItem as Ws, Skeleton as jt, Tabs as Cn, Modal as un, Title as Us } from "@mantine/core";
4
4
  import { useForm as ji } from "@mantine/form";
5
5
  import { IconCaretDownFilled as qs, IconPencil as Vs, IconTrash as Hs, IconRefresh as Gs, IconInfoCircle as Qs } from "@tabler/icons-react";
6
6
  import { useUncontrolled as Ti, clamp as Zs, useDidUpdate as Ks, useClickOutside as $i, useMergedRef as uo, useLocalStorage as zn, useMediaQuery as Js, useDisclosure as Xs, useTimeout as ho } from "@mantine/hooks";
@@ -38,7 +38,7 @@ var go;
38
38
  function ra() {
39
39
  return go || (go = 1, process.env.NODE_ENV === "production" ? gr.exports = ea() : gr.exports = ta()), gr.exports;
40
40
  }
41
- var tt = ra(), Tr = class {
41
+ var rt = ra(), Tr = class {
42
42
  constructor() {
43
43
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
44
44
  }
@@ -112,7 +112,7 @@ function sa(t, e) {
112
112
  function nr(t, e) {
113
113
  return typeof t == "function" ? t(e) : t;
114
114
  }
115
- function et(t, e) {
115
+ function tt(t, e) {
116
116
  return typeof t == "function" ? t(e) : t;
117
117
  }
118
118
  function yo(t) {
@@ -401,7 +401,7 @@ var ma = class extends Tr {
401
401
  }
402
402
  setOptions(t) {
403
403
  const e = this.options, r = this.#e;
404
- if (this.options = this.#t.defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof et(this.options.enabled, this.#e) != "boolean")
404
+ if (this.options = this.#t.defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof tt(this.options.enabled, this.#e) != "boolean")
405
405
  throw new Error(
406
406
  "Expected enabled to be a boolean or a callback that returns a boolean"
407
407
  );
@@ -416,9 +416,9 @@ var ma = class extends Tr {
416
416
  r,
417
417
  this.options,
418
418
  e
419
- ) && this.#d(), this.updateResult(), n && (this.#e !== r || et(this.options.enabled, this.#e) !== et(e.enabled, this.#e) || nr(this.options.staleTime, this.#e) !== nr(e.staleTime, this.#e)) && this.#m();
419
+ ) && this.#d(), this.updateResult(), n && (this.#e !== r || tt(this.options.enabled, this.#e) !== tt(e.enabled, this.#e) || nr(this.options.staleTime, this.#e) !== nr(e.staleTime, this.#e)) && this.#m();
420
420
  const i = this.#y();
421
- n && (this.#e !== r || et(this.options.enabled, this.#e) !== et(e.enabled, this.#e) || i !== this.#l) && this.#v(i);
421
+ n && (this.#e !== r || tt(this.options.enabled, this.#e) !== tt(e.enabled, this.#e) || i !== this.#l) && this.#v(i);
422
422
  }
423
423
  getOptimisticResult(t) {
424
424
  const e = this.#t.getQueryCache().build(this.#t, t), r = this.createResult(e, t);
@@ -482,7 +482,7 @@ var ma = class extends Tr {
482
482
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#e) : this.options.refetchInterval) ?? !1;
483
483
  }
484
484
  #v(t) {
485
- this.#_(), this.#l = t, !(ir || et(this.options.enabled, this.#e) === !1 || !mo(this.#l) || this.#l === 0) && (this.#u = mr.setInterval(() => {
485
+ this.#_(), this.#l = t, !(ir || tt(this.options.enabled, this.#e) === !1 || !mo(this.#l) || this.#l === 0) && (this.#u = mr.setInterval(() => {
486
486
  (this.options.refetchIntervalInBackground || ca.isFocused()) && this.#d();
487
487
  }, this.#l));
488
488
  }
@@ -555,7 +555,7 @@ var ma = class extends Tr {
555
555
  isStale: Fn(t, e),
556
556
  refetch: this.refetch,
557
557
  promise: this.#s,
558
- isEnabled: et(e.enabled, t) !== !1
558
+ isEnabled: tt(e.enabled, t) !== !1
559
559
  };
560
560
  if (this.options.experimental_prefetchInRender) {
561
561
  const G = (F) => {
@@ -621,23 +621,23 @@ var ma = class extends Tr {
621
621
  }
622
622
  };
623
623
  function ya(t, e) {
624
- return et(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
624
+ return tt(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
625
625
  }
626
626
  function xo(t, e) {
627
627
  return ya(t, e) || t.state.data !== void 0 && kn(t, e, e.refetchOnMount);
628
628
  }
629
629
  function kn(t, e, r) {
630
- if (et(e.enabled, t) !== !1 && nr(e.staleTime, t) !== "static") {
630
+ if (tt(e.enabled, t) !== !1 && nr(e.staleTime, t) !== "static") {
631
631
  const n = typeof r == "function" ? r(t) : r;
632
632
  return n === "always" || n !== !1 && Fn(t, e);
633
633
  }
634
634
  return !1;
635
635
  }
636
636
  function Co(t, e, r, n) {
637
- return (t !== e || et(n.enabled, t) === !1) && (!r.suspense || t.state.status !== "error") && Fn(t, r);
637
+ return (t !== e || tt(n.enabled, t) === !1) && (!r.suspense || t.state.status !== "error") && Fn(t, r);
638
638
  }
639
639
  function Fn(t, e) {
640
- return et(e.enabled, t) !== !1 && t.isStaleByTime(nr(e.staleTime, t));
640
+ return tt(e.enabled, t) !== !1 && t.isStaleByTime(nr(e.staleTime, t));
641
641
  }
642
642
  function va(t, e) {
643
643
  return !Mr(t.getCurrentResult(), e);
@@ -2596,9 +2596,9 @@ const ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2596
2596
  __spreadArrays: tl,
2597
2597
  __values: Mn
2598
2598
  }, Symbol.toStringTag, { value: "Module" })), Ui = /* @__PURE__ */ Un(ul);
2599
- var Gt = {}, Ve = {}, Fo;
2599
+ var Gt = {}, He = {}, Fo;
2600
2600
  function qi() {
2601
- return Fo || (Fo = 1, Object.defineProperty(Ve, "__esModule", { value: !0 }), Ve.MAX_HASHABLE_LENGTH = Ve.INIT = Ve.KEY = Ve.DIGEST_LENGTH = Ve.BLOCK_SIZE = void 0, Ve.BLOCK_SIZE = 64, Ve.DIGEST_LENGTH = 32, Ve.KEY = new Uint32Array([
2601
+ return Fo || (Fo = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.MAX_HASHABLE_LENGTH = He.INIT = He.KEY = He.DIGEST_LENGTH = He.BLOCK_SIZE = void 0, He.BLOCK_SIZE = 64, He.DIGEST_LENGTH = 32, He.KEY = new Uint32Array([
2602
2602
  1116352408,
2603
2603
  1899447441,
2604
2604
  3049323471,
@@ -2663,7 +2663,7 @@ function qi() {
2663
2663
  2756734187,
2664
2664
  3204031479,
2665
2665
  3329325298
2666
- ]), Ve.INIT = [
2666
+ ]), He.INIT = [
2667
2667
  1779033703,
2668
2668
  3144134277,
2669
2669
  1013904242,
@@ -2672,7 +2672,7 @@ function qi() {
2672
2672
  2600822924,
2673
2673
  528734635,
2674
2674
  1541459225
2675
- ], Ve.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1), Ve;
2675
+ ], He.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1), He;
2676
2676
  }
2677
2677
  var Qt = {}, Wo;
2678
2678
  function dl() {
@@ -2904,7 +2904,7 @@ kl();
2904
2904
  function ge(t, e) {
2905
2905
  t != null && this.fromString(t, e);
2906
2906
  }
2907
- function Ye() {
2907
+ function ze() {
2908
2908
  return new ge(null);
2909
2909
  }
2910
2910
  var mt, Pl = 244837814094590, Jo = (Pl & 16777215) == 15715070;
@@ -2938,13 +2938,13 @@ var qn = 52;
2938
2938
  ge.prototype.FV = Math.pow(2, qn);
2939
2939
  ge.prototype.F1 = qn - mt;
2940
2940
  ge.prototype.F2 = 2 * mt - qn;
2941
- var El = "0123456789abcdefghijklmnopqrstuvwxyz", Nr = new Array(), Lt, Ge;
2941
+ var El = "0123456789abcdefghijklmnopqrstuvwxyz", Nr = new Array(), Lt, Qe;
2942
2942
  Lt = 48;
2943
- for (Ge = 0; Ge <= 9; ++Ge) Nr[Lt++] = Ge;
2943
+ for (Qe = 0; Qe <= 9; ++Qe) Nr[Lt++] = Qe;
2944
2944
  Lt = 97;
2945
- for (Ge = 10; Ge < 36; ++Ge) Nr[Lt++] = Ge;
2945
+ for (Qe = 10; Qe < 36; ++Qe) Nr[Lt++] = Qe;
2946
2946
  Lt = 65;
2947
- for (Ge = 10; Ge < 36; ++Ge) Nr[Lt++] = Ge;
2947
+ for (Qe = 10; Qe < 36; ++Qe) Nr[Lt++] = Qe;
2948
2948
  function ei(t) {
2949
2949
  return El.charAt(t);
2950
2950
  }
@@ -2960,7 +2960,7 @@ function Tl(t) {
2960
2960
  this.t = 1, this.s = t < 0 ? -1 : 0, t > 0 ? this[0] = t : t < -1 ? this[0] = t + this.DV : this.t = 0;
2961
2961
  }
2962
2962
  function Vn(t) {
2963
- var e = Ye();
2963
+ var e = ze();
2964
2964
  return e.fromInt(t), e;
2965
2965
  }
2966
2966
  function $l(t, e) {
@@ -3001,7 +3001,7 @@ function Ll(t) {
3001
3001
  return i ? d : "0";
3002
3002
  }
3003
3003
  function Il() {
3004
- var t = Ye();
3004
+ var t = ze();
3005
3005
  return ge.ZERO.subTo(this, t), t;
3006
3006
  }
3007
3007
  function Bl() {
@@ -3088,12 +3088,12 @@ function Ql(t, e, r) {
3088
3088
  e?.fromInt(0), r != null && this.copyTo(r);
3089
3089
  return;
3090
3090
  }
3091
- r == null && (r = Ye());
3092
- var d = Ye(), h = this.s, a = t.s, g = this.DB - Hn(n[n.t - 1]);
3091
+ r == null && (r = ze());
3092
+ var d = ze(), h = this.s, a = t.s, g = this.DB - Hn(n[n.t - 1]);
3093
3093
  g > 0 ? (n.lShiftTo(g, d), i.lShiftTo(g, r)) : (n.copyTo(d), i.copyTo(r));
3094
3094
  var y = d.t, _ = d[y - 1];
3095
3095
  if (_ != 0) {
3096
- var P = _ * (1 << this.F1) + (y > 1 ? d[y - 2] >> this.F2 : 0), C = this.FV / P, S = (1 << this.F1) / P, D = 1 << this.F2, M = r.t, $ = M - y, z = e ?? Ye();
3096
+ var P = _ * (1 << this.F1) + (y > 1 ? d[y - 2] >> this.F2 : 0), C = this.FV / P, S = (1 << this.F1) / P, D = 1 << this.F2, M = r.t, $ = M - y, z = e ?? ze();
3097
3097
  for (d.dlShiftTo($, z), r.compareTo(z) >= 0 && (r[r.t++] = 1, r.subTo(z, r)), ge.ONE.dlShiftTo(y, z), z.subTo(d, d); d.t < y; ) d[d.t++] = 0;
3098
3098
  for (; --$ >= 0; ) {
3099
3099
  var B = r[--M] == _ ? this.DM : Math.floor(r[M] * C + (r[M - 1] + D) * S);
@@ -3105,7 +3105,7 @@ function Ql(t, e, r) {
3105
3105
  }
3106
3106
  }
3107
3107
  function Zl(t) {
3108
- var e = Ye();
3108
+ var e = ze();
3109
3109
  return this.abs().divRemTo(t, null, e), this.s < 0 && e.compareTo(ge.ZERO) > 0 && t.subTo(e, e), e;
3110
3110
  }
3111
3111
  function Kl() {
@@ -3133,30 +3133,30 @@ function Xl(t, e) {
3133
3133
  e.s = n < 0 ? -1 : 0, n > 0 ? e[r++] = n : n < -1 && (e[r++] = this.DV + n), e.t = r, e.clamp();
3134
3134
  }
3135
3135
  function ec(t) {
3136
- var e = Ye();
3136
+ var e = ze();
3137
3137
  return this.addTo(t, e), e;
3138
3138
  }
3139
3139
  function tc(t) {
3140
- var e = Ye();
3140
+ var e = ze();
3141
3141
  return this.subTo(t, e), e;
3142
3142
  }
3143
3143
  function rc(t) {
3144
- var e = Ye();
3144
+ var e = ze();
3145
3145
  return this.multiplyTo(t, e), e;
3146
3146
  }
3147
3147
  function nc(t) {
3148
- var e = Ye();
3148
+ var e = ze();
3149
3149
  return this.divRemTo(t, e, null), e;
3150
3150
  }
3151
3151
  function It(t) {
3152
3152
  this.m = t, this.mp = t.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << t.DB - 15) - 1, this.mt2 = 2 * t.t;
3153
3153
  }
3154
3154
  function oc(t) {
3155
- var e = Ye();
3155
+ var e = ze();
3156
3156
  return t.abs().dlShiftTo(this.m.t, e), e.divRemTo(this.m, null, e), t.s < 0 && e.compareTo(ge.ZERO) > 0 && this.m.subTo(e, e), e;
3157
3157
  }
3158
3158
  function ic(t) {
3159
- var e = Ye();
3159
+ var e = ze();
3160
3160
  return t.copyTo(e), this.reduce(e), e;
3161
3161
  }
3162
3162
  function sc(t) {
@@ -3186,11 +3186,11 @@ function cc(t, e, r) {
3186
3186
  n < 18 ? i = 1 : n < 48 ? i = 3 : n < 144 ? i = 4 : n < 768 ? i = 5 : i = 6;
3187
3187
  var a = new Array(), g = 3, y = i - 1, _ = (1 << i) - 1;
3188
3188
  if (a[1] = h.convert(this), i > 1) {
3189
- var P = Ye();
3189
+ var P = ze();
3190
3190
  for (h.sqrTo(a[1], P); g <= _; )
3191
- a[g] = Ye(), h.mulTo(P, a[g - 2], a[g]), g += 2;
3191
+ a[g] = ze(), h.mulTo(P, a[g - 2], a[g]), g += 2;
3192
3192
  }
3193
- var C = t.t - 1, S, D = !0, M = Ye(), $;
3193
+ var C = t.t - 1, S, D = !0, M = ze(), $;
3194
3194
  for (n = Hn(t[C]) - 1; C >= 0; ) {
3195
3195
  for (n >= y ? S = t[C] >> n - y & _ : (S = (t[C] & (1 << n + 1) - 1) << y - n, C > 0 && (S |= t[C - 1] >> this.DB + n - y)), g = i; (S & 1) == 0; )
3196
3196
  S >>= 1, --g;
@@ -3387,7 +3387,7 @@ async function yc() {
3387
3387
  return t?.getIdToken().getJwtToken();
3388
3388
  }
3389
3389
  In(void 0);
3390
- var vc = "undefined", bc = "object", br = "browser", si = "cpu", ai = "device", vn = "engine", wr = "os", gt = "name", Ar = "type", An = "vendor", Xe = "version", En = "architecture", Rn = "major", jn = "model", wc = "console", _c = "mobile", xc = "tablet", Cc = "smarttv", Sc = "wearable", Dc = "embedded", kc = typeof window !== vc, bn = kc && window.navigator ? window.navigator : void 0;
3390
+ var vc = "undefined", bc = "object", br = "browser", si = "cpu", ai = "device", vn = "engine", wr = "os", gt = "name", Ar = "type", An = "vendor", et = "version", En = "architecture", Rn = "major", jn = "model", wc = "console", _c = "mobile", xc = "tablet", Cc = "smarttv", Sc = "wearable", Dc = "embedded", kc = typeof window !== vc, bn = kc && window.navigator ? window.navigator : void 0;
3391
3391
  bn && bn.userAgentData && bn.userAgentData;
3392
3392
  var Lr = function(t) {
3393
3393
  for (var e = {}, r = 0; r < t.length; r++)
@@ -3403,30 +3403,30 @@ var Lr = function(t) {
3403
3403
  (function() {
3404
3404
  var t = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
3405
3405
  return _r.call(t.init, [
3406
- [br, [gt, Xe, Rn, Ar]],
3406
+ [br, [gt, et, Rn, Ar]],
3407
3407
  [si, [En]],
3408
3408
  [ai, [Ar, jn, An]],
3409
- [vn, [gt, Xe]],
3410
- [wr, [gt, Xe]]
3409
+ [vn, [gt, et]],
3410
+ [wr, [gt, et]]
3411
3411
  ]), _r.call(t.isIgnore, [
3412
- [br, [Xe, Rn]],
3413
- [vn, [Xe]],
3414
- [wr, [Xe]]
3412
+ [br, [et, Rn]],
3413
+ [vn, [et]],
3414
+ [wr, [et]]
3415
3415
  ]), _r.call(t.isIgnoreRgx, [
3416
3416
  [br, / ?browser$/i],
3417
3417
  [wr, / ?os$/i]
3418
3418
  ]), _r.call(t.toString, [
3419
- [br, [gt, Xe]],
3419
+ [br, [gt, et]],
3420
3420
  [si, [En]],
3421
3421
  [ai, [An, jn]],
3422
- [vn, [gt, Xe]],
3423
- [wr, [gt, Xe]]
3422
+ [vn, [gt, et]],
3423
+ [wr, [gt, et]]
3424
3424
  ]), t;
3425
3425
  })();
3426
- Lr([gt, Xe, Rn, Ar]);
3426
+ Lr([gt, et, Rn, Ar]);
3427
3427
  Lr([En]);
3428
3428
  Lr([jn, An, Ar, wc, _c, Cc, xc, Sc, Dc]);
3429
- Lr([gt, Xe]);
3429
+ Lr([gt, et]);
3430
3430
  var Tn = { exports: {} }, Pc = Tn.exports, li;
3431
3431
  function Oc() {
3432
3432
  return li || (li = 1, (function(t, e) {
@@ -3500,12 +3500,12 @@ function Oc() {
3500
3500
  he[te][fe] = _e >= 0 ? we.getAt(_e) : 0;
3501
3501
  }
3502
3502
  }
3503
- var Ne = 0;
3504
- for (fe = 0; fe < O.length; fe += 1) Ne += O[fe].totalCount;
3505
- var Pe = new Array(Ne), xe = 0;
3506
- for (fe = 0; fe < Y; fe += 1) for (te = 0; te < O.length; te += 1) fe < ue[te].length && (Pe[xe] = ue[te][fe], xe += 1);
3507
- for (fe = 0; fe < ae; fe += 1) for (te = 0; te < O.length; te += 1) fe < he[te].length && (Pe[xe] = he[te][fe], xe += 1);
3508
- return Pe;
3503
+ var Le = 0;
3504
+ for (fe = 0; fe < O.length; fe += 1) Le += O[fe].totalCount;
3505
+ var Oe = new Array(Le), xe = 0;
3506
+ for (fe = 0; fe < Y; fe += 1) for (te = 0; te < O.length; te += 1) fe < ue[te].length && (Oe[xe] = ue[te][fe], xe += 1);
3507
+ for (fe = 0; fe < ae; fe += 1) for (te = 0; te < O.length; te += 1) fe < he[te].length && (Oe[xe] = he[te][fe], xe += 1);
3508
+ return Oe;
3509
3509
  })(I, L);
3510
3510
  };
3511
3511
  v.addData = function(A, N) {
@@ -3609,9 +3609,9 @@ function Oc() {
3609
3609
  return v.createASCII = function(A, N) {
3610
3610
  if ((A = A || 1) < 2) return (function(ue) {
3611
3611
  ue = ue === void 0 ? 2 : ue;
3612
- var he, te, de, pe, fe, Ce = 1 * v.getModuleCount() + 2 * ue, we = ue, _e = Ce - ue, Ne = { "██": "█", "█ ": "▀", " █": "▄", " ": " " }, Pe = { "██": "▀", "█ ": "▀", " █": " ", " ": " " }, xe = "";
3612
+ var he, te, de, pe, fe, Ce = 1 * v.getModuleCount() + 2 * ue, we = ue, _e = Ce - ue, Le = { "██": "█", "█ ": "▀", " █": "▄", " ": " " }, Oe = { "██": "▀", "█ ": "▀", " █": " ", " ": " " }, xe = "";
3613
3613
  for (he = 0; he < Ce; he += 2) {
3614
- for (de = Math.floor((he - we) / 1), pe = Math.floor((he + 1 - we) / 1), te = 0; te < Ce; te += 1) fe = "█", we <= te && te < _e && we <= he && he < _e && v.isDark(de, Math.floor((te - we) / 1)) && (fe = " "), we <= te && te < _e && we <= he + 1 && he + 1 < _e && v.isDark(pe, Math.floor((te - we) / 1)) ? fe += " " : fe += "█", xe += ue < 1 && he + 1 >= _e ? Pe[fe] : Ne[fe];
3614
+ for (de = Math.floor((he - we) / 1), pe = Math.floor((he + 1 - we) / 1), te = 0; te < Ce; te += 1) fe = "█", we <= te && te < _e && we <= he && he < _e && v.isDark(de, Math.floor((te - we) / 1)) && (fe = " "), we <= te && te < _e && we <= he + 1 && he + 1 < _e && v.isDark(pe, Math.floor((te - we) / 1)) ? fe += " " : fe += "█", xe += ue < 1 && he + 1 >= _e ? Oe[fe] : Le[fe];
3615
3615
  xe += `
3616
3616
  `;
3617
3617
  }
@@ -4548,7 +4548,7 @@ ${new this._window.XMLSerializer().serializeToString(u)}`;
4548
4548
  Oc();
4549
4549
  const Vi = In(void 0);
4550
4550
  function uh(t) {
4551
- const e = tt.c(9), {
4551
+ const e = rt.c(9), {
4552
4552
  children: r,
4553
4553
  baseUrl: n,
4554
4554
  queryClient: i
@@ -4657,7 +4657,7 @@ async function Tc(t, e) {
4657
4657
  }).then(async (r) => (r.status >= 400 && await Bt(r), r)).then((r) => r.status == 204 ? e : r.json()).then((r) => r);
4658
4658
  }
4659
4659
  function $c(t, e, r) {
4660
- const n = tt.c(13), {
4660
+ const n = rt.c(13), {
4661
4661
  baseUrl: i
4662
4662
  } = Ot();
4663
4663
  let d;
@@ -4680,7 +4680,7 @@ function Nc(t) {
4680
4680
  return t.toString();
4681
4681
  }
4682
4682
  function Lc(t, e, r) {
4683
- const n = tt.c(9), i = r === void 0 ? !0 : r, {
4683
+ const n = rt.c(9), i = r === void 0 ? !0 : r, {
4684
4684
  baseUrl: d
4685
4685
  } = Ot();
4686
4686
  let h;
@@ -4698,7 +4698,7 @@ function Ic(t) {
4698
4698
  return t.toString();
4699
4699
  }
4700
4700
  function Bc(t, e) {
4701
- const r = tt.c(10), {
4701
+ const r = rt.c(10), {
4702
4702
  baseUrl: n,
4703
4703
  queryClient: i
4704
4704
  } = Ot();
@@ -4727,7 +4727,7 @@ function zc(t) {
4727
4727
  return t.toString();
4728
4728
  }
4729
4729
  function Hi(t, e) {
4730
- const r = tt.c(10), {
4730
+ const r = rt.c(10), {
4731
4731
  baseUrl: n,
4732
4732
  queryClient: i
4733
4733
  } = Ot();
@@ -4756,7 +4756,7 @@ function Wc(t) {
4756
4756
  return t.toString();
4757
4757
  }
4758
4758
  function Uc(t, e) {
4759
- const r = tt.c(10), {
4759
+ const r = rt.c(10), {
4760
4760
  baseUrl: n,
4761
4761
  queryClient: i
4762
4762
  } = Ot();
@@ -5181,7 +5181,7 @@ function Qn({
5181
5181
  });
5182
5182
  }
5183
5183
  }
5184
- function Qe(t) {
5184
+ function Ze(t) {
5185
5185
  return t == null || t === "" ? t : ce(t).format("YYYY-MM-DD");
5186
5186
  }
5187
5187
  function Qi(t) {
@@ -5214,7 +5214,7 @@ function vt() {
5214
5214
  };
5215
5215
  }
5216
5216
  function tu({ value: t, type: e, withTime: r }) {
5217
- const n = r ? Qi : Qe;
5217
+ const n = r ? Qi : Ze;
5218
5218
  if (e === "range" && Array.isArray(t)) {
5219
5219
  const i = n(t[0]), d = n(t[1]);
5220
5220
  return i ? d ? `${i} – ${d}` : `${i} –` : "";
@@ -5240,7 +5240,7 @@ function Ki(t) {
5240
5240
  } else for (r in t) t[r] && (n && (n += " "), n += r);
5241
5241
  return n;
5242
5242
  }
5243
- function ke() {
5243
+ function Pe() {
5244
5244
  for (var t, e, r = 0, n = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (e = Ki(t)) && (n && (n += " "), n += e);
5245
5245
  return n;
5246
5246
  }
@@ -5249,8 +5249,8 @@ const ru = ar((t, { size: e }) => ({
5249
5249
  day: {
5250
5250
  "--day-size": Er(e, "day-size")
5251
5251
  }
5252
- })), Zn = $e((t, e) => {
5253
- const r = Fe("Day", null, t), {
5252
+ })), Zn = Ne((t, e) => {
5253
+ const r = We("Day", null, t), {
5254
5254
  classNames: n,
5255
5255
  className: i,
5256
5256
  style: d,
@@ -5328,8 +5328,8 @@ const ou = ar((t, { size: e }) => ({
5328
5328
  "--wr-fz": Rr(e),
5329
5329
  "--wr-spacing": Os(e)
5330
5330
  }
5331
- })), Kn = $e((t, e) => {
5332
- const r = Fe("WeekdaysRow", null, t), {
5331
+ })), Kn = Ne((t, e) => {
5332
+ const r = We("WeekdaysRow", null, t), {
5333
5333
  classNames: n,
5334
5334
  className: i,
5335
5335
  style: d,
@@ -5362,7 +5362,7 @@ const ou = ar((t, { size: e }) => ({
5362
5362
  format: P,
5363
5363
  firstDayOfWeek: B.getFirstDayOfWeek(_)
5364
5364
  }).map((U, J) => /* @__PURE__ */ w.jsx(C, { ...z("weekday"), children: U }, J));
5365
- return /* @__PURE__ */ w.jsxs(ze, { component: "tr", ref: e, ...z("weekdaysRow"), ...$, children: [
5365
+ return /* @__PURE__ */ w.jsxs(Fe, { component: "tr", ref: e, ...z("weekdaysRow"), ...$, children: [
5366
5366
  D && /* @__PURE__ */ w.jsx(C, { ...z("weekday"), children: "#" }),
5367
5367
  q
5368
5368
  ] });
@@ -5479,8 +5479,8 @@ const pu = {
5479
5479
  "--wn-fz": Rr(e),
5480
5480
  "--wn-size": Er(e, "wn-size")
5481
5481
  }
5482
- })), Ir = $e((t, e) => {
5483
- const r = Fe("Month", pu, t), {
5482
+ })), Ir = Ne((t, e) => {
5483
+ const r = We("Month", pu, t), {
5484
5484
  classNames: n,
5485
5485
  className: i,
5486
5486
  style: d,
@@ -5533,8 +5533,8 @@ const pu = {
5533
5533
  consistentWeeks: s.consistentWeeks
5534
5534
  }), E = lu({
5535
5535
  dates: v,
5536
- minDate: Qe(z),
5537
- maxDate: Qe(B),
5536
+ minDate: Ze(z),
5537
+ maxDate: Ze(B),
5538
5538
  getDayProps: M,
5539
5539
  excludeDate: $,
5540
5540
  hideOutsideDates: U,
@@ -5568,7 +5568,7 @@ const pu = {
5568
5568
  hidden: U ? A : !1,
5569
5569
  "aria-label": N,
5570
5570
  static: K,
5571
- disabled: $?.(ne) || !ts(ne, Qe(B)) || !es(ne, Qe(z)),
5571
+ disabled: $?.(ne) || !ts(ne, Ze(B)) || !es(ne, Ze(z)),
5572
5572
  ref: (I) => {
5573
5573
  I && G?.(V, se, I);
5574
5574
  },
@@ -5597,7 +5597,7 @@ const pu = {
5597
5597
  oe
5598
5598
  ] }, V);
5599
5599
  });
5600
- return /* @__PURE__ */ w.jsxs(ze, { component: "table", ...f("month"), size: x, ref: e, ...m, children: [
5600
+ return /* @__PURE__ */ w.jsxs(Fe, { component: "table", ...f("month"), size: x, ref: e, ...m, children: [
5601
5601
  !J && /* @__PURE__ */ w.jsx("thead", { ...f("monthThead"), children: /* @__PURE__ */ w.jsx(
5602
5602
  Kn,
5603
5603
  {
@@ -5623,8 +5623,8 @@ const mu = ar((t, { size: e }) => ({
5623
5623
  "--dpc-fz": Rr(e),
5624
5624
  "--dpc-size": Er(e, "dpc-size")
5625
5625
  }
5626
- })), Br = $e((t, e) => {
5627
- const r = Fe("PickerControl", null, t), {
5626
+ })), Br = Ne((t, e) => {
5627
+ const r = We("PickerControl", null, t), {
5628
5628
  classNames: n,
5629
5629
  className: i,
5630
5630
  style: d,
@@ -5704,8 +5704,8 @@ var ss = { yearsList: "m_9206547b", yearsListCell: "m_c5a19c7d" };
5704
5704
  const vu = {
5705
5705
  yearsListFormat: "YYYY",
5706
5706
  withCellSpacing: !0
5707
- }, Yr = $e((t, e) => {
5708
- const r = Fe("YearsList", vu, t), {
5707
+ }, Yr = Ne((t, e) => {
5708
+ const r = We("YearsList", vu, t), {
5709
5709
  classNames: n,
5710
5710
  className: i,
5711
5711
  style: d,
@@ -5788,7 +5788,7 @@ const vu = {
5788
5788
  });
5789
5789
  return /* @__PURE__ */ w.jsx("tr", { ...H("yearsListRow"), children: c }, b);
5790
5790
  });
5791
- return /* @__PURE__ */ w.jsx(ze, { component: "table", ref: e, size: K, ...H("yearsList"), ...W, children: /* @__PURE__ */ w.jsx("tbody", { children: k }) });
5791
+ return /* @__PURE__ */ w.jsx(Fe, { component: "table", ref: e, size: K, ...H("yearsList"), ...W, children: /* @__PURE__ */ w.jsx("tbody", { children: k }) });
5792
5792
  });
5793
5793
  Yr.classes = ss;
5794
5794
  Yr.displayName = "@mantine/dates/YearsList";
@@ -5821,8 +5821,8 @@ var ls = { monthsList: "m_2a6c32d", monthsListCell: "m_fe27622f" };
5821
5821
  const _u = {
5822
5822
  monthsListFormat: "MMM",
5823
5823
  withCellSpacing: !0
5824
- }, zr = $e((t, e) => {
5825
- const r = Fe("MonthsList", _u, t), {
5824
+ }, zr = Ne((t, e) => {
5825
+ const r = We("MonthsList", _u, t), {
5826
5826
  classNames: n,
5827
5827
  className: i,
5828
5828
  style: d,
@@ -5860,8 +5860,8 @@ const _u = {
5860
5860
  rootSelector: "monthsList"
5861
5861
  }), F = vt(), ie = wu(_), re = bu({
5862
5862
  months: ie,
5863
- minDate: Qe(S),
5864
- maxDate: Qe(D),
5863
+ minDate: Ze(S),
5864
+ maxDate: Ze(D),
5865
5865
  getMonthControlProps: M
5866
5866
  }), k = ie.map((x, b) => {
5867
5867
  const c = x.map((u, m) => {
@@ -5881,8 +5881,8 @@ const _u = {
5881
5881
  "data-mantine-stop-propagation": J || void 0,
5882
5882
  disabled: as({
5883
5883
  month: u,
5884
- minDate: Qe(S),
5885
- maxDate: Qe(D)
5884
+ minDate: Ze(S),
5885
+ maxDate: Ze(D)
5886
5886
  }),
5887
5887
  ref: (v) => {
5888
5888
  v && $?.(b, m, v);
@@ -5910,7 +5910,7 @@ const _u = {
5910
5910
  });
5911
5911
  return /* @__PURE__ */ w.jsx("tr", { ...H("monthsListRow"), children: c }, b);
5912
5912
  });
5913
- return /* @__PURE__ */ w.jsx(ze, { component: "table", ref: e, size: K, ...H("monthsList"), ...W, children: /* @__PURE__ */ w.jsx("tbody", { children: k }) });
5913
+ return /* @__PURE__ */ w.jsx(Fe, { component: "table", ref: e, size: K, ...H("monthsList"), ...W, children: /* @__PURE__ */ w.jsx("tbody", { children: k }) });
5914
5914
  });
5915
5915
  zr.classes = ls;
5916
5916
  zr.displayName = "@mantine/dates/MonthsList";
@@ -5925,8 +5925,8 @@ const xu = {
5925
5925
  "--dch-control-size": Er(e, "dch-control-size"),
5926
5926
  "--dch-fz": Rr(e)
5927
5927
  }
5928
- })), bt = $e((t, e) => {
5929
- const r = Fe("CalendarHeader", xu, t), {
5928
+ })), bt = Ne((t, e) => {
5929
+ const r = We("CalendarHeader", xu, t), {
5930
5930
  classNames: n,
5931
5931
  className: i,
5932
5932
  style: d,
@@ -6029,7 +6029,7 @@ const xu = {
6029
6029
  }
6030
6030
  )
6031
6031
  ), u = K.map((m) => m === "previous" ? x : m === "level" ? b : m === "next" ? c : null);
6032
- return /* @__PURE__ */ w.jsx(ze, { ...re("calendarHeader"), ref: e, ...ie, children: u });
6032
+ return /* @__PURE__ */ w.jsx(Fe, { ...re("calendarHeader"), ref: e, ...ie, children: u });
6033
6033
  });
6034
6034
  bt.classes = cs;
6035
6035
  bt.displayName = "@mantine/dates/CalendarHeader";
@@ -6039,8 +6039,8 @@ function Su(t) {
6039
6039
  }
6040
6040
  const Du = {
6041
6041
  decadeLabelFormat: "YYYY"
6042
- }, Fr = $e((t, e) => {
6043
- const r = Fe("DecadeLevel", Du, t), {
6042
+ }, Fr = Ne((t, e) => {
6043
+ const r = We("DecadeLevel", Du, t), {
6044
6044
  // YearsList settings
6045
6045
  decade: n,
6046
6046
  locale: i,
@@ -6085,7 +6085,7 @@ const Du = {
6085
6085
  size: c,
6086
6086
  attributes: u
6087
6087
  }, R = typeof J == "boolean" ? J : h ? !ce(v).endOf("year").isBefore(h) : !1, Q = typeof ee == "boolean" ? ee : d ? !ce(s).startOf("year").isAfter(d) : !1, Z = (X, V) => ce(X).locale(i || f.locale).format(V);
6088
- return /* @__PURE__ */ w.jsxs(ze, { "data-decade-level": !0, size: c, ref: e, ...m, children: [
6088
+ return /* @__PURE__ */ w.jsxs(Fe, { "data-decade-level": !0, size: c, ref: e, ...m, children: [
6089
6089
  /* @__PURE__ */ w.jsx(
6090
6090
  bt,
6091
6091
  {
@@ -6136,8 +6136,8 @@ Fr.classes = { ...Yr.classes, ...bt.classes };
6136
6136
  Fr.displayName = "@mantine/dates/DecadeLevel";
6137
6137
  const ku = {
6138
6138
  yearLabelFormat: "YYYY"
6139
- }, Wr = $e((t, e) => {
6140
- const r = Fe("YearLevel", ku, t), {
6139
+ }, Wr = Ne((t, e) => {
6140
+ const r = We("YearLevel", ku, t), {
6141
6141
  // MonthsList settings
6142
6142
  year: n,
6143
6143
  locale: i,
@@ -6184,7 +6184,7 @@ const ku = {
6184
6184
  size: b,
6185
6185
  attributes: f
6186
6186
  }, R = typeof ee == "boolean" ? ee : h ? !ce(n).endOf("year").isBefore(h) : !1, Q = typeof K == "boolean" ? K : d ? !ce(n).startOf("year").isAfter(d) : !1;
6187
- return /* @__PURE__ */ w.jsxs(ze, { "data-year-level": !0, size: b, ref: e, ...s, children: [
6187
+ return /* @__PURE__ */ w.jsxs(Fe, { "data-year-level": !0, size: b, ref: e, ...s, children: [
6188
6188
  /* @__PURE__ */ w.jsx(
6189
6189
  bt,
6190
6190
  {
@@ -6233,8 +6233,8 @@ Wr.classes = { ...bt.classes, ...zr.classes };
6233
6233
  Wr.displayName = "@mantine/dates/YearLevel";
6234
6234
  const Pu = {
6235
6235
  monthLabelFormat: "MMMM YYYY"
6236
- }, Ur = $e((t, e) => {
6237
- const r = Fe("MonthLevel", Pu, t), {
6236
+ }, Ur = Ne((t, e) => {
6237
+ const r = We("MonthLevel", Pu, t), {
6238
6238
  // Month settings
6239
6239
  month: n,
6240
6240
  locale: i,
@@ -6291,7 +6291,7 @@ const Pu = {
6291
6291
  size: V,
6292
6292
  attributes: ne
6293
6293
  }, j = typeof b == "boolean" ? b : P ? !ce(n).endOf("month").isBefore(P) : !1, L = typeof c == "boolean" ? c : _ ? !ce(n).startOf("month").isAfter(_) : !1;
6294
- return /* @__PURE__ */ w.jsxs(ze, { "data-month-level": !0, size: V, ref: e, ...se, children: [
6294
+ return /* @__PURE__ */ w.jsxs(Fe, { "data-month-level": !0, size: V, ref: e, ...se, children: [
6295
6295
  /* @__PURE__ */ w.jsx(
6296
6296
  bt,
6297
6297
  {
@@ -6349,8 +6349,8 @@ const Pu = {
6349
6349
  Ur.classes = { ...Ir.classes, ...bt.classes };
6350
6350
  Ur.displayName = "@mantine/dates/MonthLevel";
6351
6351
  var us = { levelsGroup: "m_30b26e33" };
6352
- const wt = $e((t, e) => {
6353
- const r = Fe("LevelsGroup", null, t), {
6352
+ const wt = Ne((t, e) => {
6353
+ const r = We("LevelsGroup", null, t), {
6354
6354
  classNames: n,
6355
6355
  className: i,
6356
6356
  style: d,
@@ -6373,14 +6373,14 @@ const wt = $e((t, e) => {
6373
6373
  vars: g,
6374
6374
  rootSelector: "levelsGroup"
6375
6375
  });
6376
- return /* @__PURE__ */ w.jsx(ze, { ref: e, ...C("levelsGroup"), ...P });
6376
+ return /* @__PURE__ */ w.jsx(Fe, { ref: e, ...C("levelsGroup"), ...P });
6377
6377
  });
6378
6378
  wt.classes = us;
6379
6379
  wt.displayName = "@mantine/dates/LevelsGroup";
6380
6380
  const Ou = {
6381
6381
  numberOfColumns: 1
6382
- }, qr = $e((t, e) => {
6383
- const r = Fe("DecadeLevelGroup", Ou, t), {
6382
+ }, qr = Ne((t, e) => {
6383
+ const r = We("DecadeLevelGroup", Ou, t), {
6384
6384
  // DecadeLevel settings
6385
6385
  decade: n,
6386
6386
  locale: i,
@@ -6483,8 +6483,8 @@ qr.classes = { ...wt.classes, ...Fr.classes };
6483
6483
  qr.displayName = "@mantine/dates/DecadeLevelGroup";
6484
6484
  const Mu = {
6485
6485
  numberOfColumns: 1
6486
- }, Vr = $e((t, e) => {
6487
- const r = Fe("YearLevelGroup", Mu, t), {
6486
+ }, Vr = Ne((t, e) => {
6487
+ const r = We("YearLevelGroup", Mu, t), {
6488
6488
  // YearLevel settings
6489
6489
  year: n,
6490
6490
  locale: i,
@@ -6591,8 +6591,8 @@ Vr.classes = { ...Wr.classes, ...wt.classes };
6591
6591
  Vr.displayName = "@mantine/dates/YearLevelGroup";
6592
6592
  const Au = {
6593
6593
  numberOfColumns: 1
6594
- }, Hr = $e((t, e) => {
6595
- const r = Fe("MonthLevelGroup", Au, t), {
6594
+ }, Hr = Ne((t, e) => {
6595
+ const r = We("MonthLevelGroup", Au, t), {
6596
6596
  // Month settings
6597
6597
  month: n,
6598
6598
  locale: i,
@@ -6717,7 +6717,7 @@ const Au = {
6717
6717
  Hr.classes = { ...wt.classes, ...Ur.classes };
6718
6718
  Hr.displayName = "@mantine/dates/MonthLevelGroup";
6719
6719
  const di = (t) => t === "range" ? [null, null] : t === "multiple" ? [] : null, hi = (t, e) => {
6720
- const r = e ? Qi : Qe;
6720
+ const r = e ? Qi : Ze;
6721
6721
  return Array.isArray(t) ? t.map(r) : r(t);
6722
6722
  };
6723
6723
  function $n({
@@ -6757,8 +6757,8 @@ const Ru = {
6757
6757
  __updateDateOnYearSelect: !0,
6758
6758
  __updateDateOnMonthSelect: !0,
6759
6759
  enableKeyboardNavigation: !0
6760
- }, Gr = $e((t, e) => {
6761
- const r = Fe("Calendar", Ru, t), {
6760
+ }, Gr = Ne((t, e) => {
6761
+ const r = We("Calendar", Ru, t), {
6762
6762
  // CalendarLevel props
6763
6763
  vars: n,
6764
6764
  maxLevel: i,
@@ -6830,69 +6830,69 @@ const Ru = {
6830
6830
  enableKeyboardNavigation: fe,
6831
6831
  attributes: Ce,
6832
6832
  ...we
6833
- } = r, { resolvedClassNames: _e, resolvedStyles: Ne } = ki({
6833
+ } = r, { resolvedClassNames: _e, resolvedStyles: Le } = ki({
6834
6834
  classNames: N,
6835
6835
  styles: j,
6836
6836
  props: r
6837
- }), [Pe, xe] = Ti({
6837
+ }), [Oe, xe] = Ti({
6838
6838
  value: a ? er(a, d, i) : void 0,
6839
6839
  defaultValue: h ? er(h, d, i) : void 0,
6840
6840
  finalValue: er(void 0, d, i),
6841
6841
  onChange: g
6842
- }), [rt, Me] = $n({
6842
+ }), [nt, Ae] = $n({
6843
6843
  type: "default",
6844
- value: Qe(y),
6845
- defaultValue: Qe(_),
6844
+ value: Ze(y),
6845
+ defaultValue: Ze(_),
6846
6846
  onChange: P
6847
6847
  });
6848
6848
  lo(G, () => (me) => {
6849
- Me(me);
6849
+ Ae(me);
6850
6850
  }), lo(W, () => (me) => {
6851
6851
  xe(me);
6852
6852
  });
6853
6853
  const Ue = {
6854
6854
  __staticSelector: l || "Calendar",
6855
- styles: Ne,
6855
+ styles: Le,
6856
6856
  classNames: _e,
6857
6857
  unstyled: L,
6858
6858
  size: p,
6859
6859
  attributes: Ce
6860
- }, Le = S || C || 1, ut = /* @__PURE__ */ new Date(), _t = I && ce(ut).isAfter(I) ? I : ce(ut).format("YYYY-MM-DD"), Ae = rt || _t, nt = () => {
6861
- const me = ce(Ae).add(Le, "month").format("YYYY-MM-DD");
6862
- te?.(me), Me(me);
6863
- }, ot = () => {
6864
- const me = ce(Ae).subtract(Le, "month").format("YYYY-MM-DD");
6865
- de?.(me), Me(me);
6860
+ }, Ie = S || C || 1, dt = /* @__PURE__ */ new Date(), _t = I && ce(dt).isAfter(I) ? I : ce(dt).format("YYYY-MM-DD"), Ee = nt || _t, ot = () => {
6861
+ const me = ce(Ee).add(Ie, "month").format("YYYY-MM-DD");
6862
+ te?.(me), Ae(me);
6866
6863
  }, it = () => {
6867
- const me = ce(Ae).add(Le, "year").format("YYYY-MM-DD");
6868
- ue?.(me), Me(me);
6869
- }, dt = () => {
6870
- const me = ce(Ae).subtract(Le, "year").format("YYYY-MM-DD");
6871
- he?.(me), Me(me);
6864
+ const me = ce(Ee).subtract(Ie, "month").format("YYYY-MM-DD");
6865
+ de?.(me), Ae(me);
6872
6866
  }, st = () => {
6873
- const me = ce(Ae).add(10 * Le, "year").format("YYYY-MM-DD");
6874
- Y?.(me), Me(me);
6867
+ const me = ce(Ee).add(Ie, "year").format("YYYY-MM-DD");
6868
+ ue?.(me), Ae(me);
6869
+ }, ht = () => {
6870
+ const me = ce(Ee).subtract(Ie, "year").format("YYYY-MM-DD");
6871
+ he?.(me), Ae(me);
6872
+ }, at = () => {
6873
+ const me = ce(Ee).add(10 * Ie, "year").format("YYYY-MM-DD");
6874
+ Y?.(me), Ae(me);
6875
6875
  }, qe = () => {
6876
- const me = ce(Ae).subtract(10 * Le, "year").format("YYYY-MM-DD");
6877
- ae?.(me), Me(me);
6878
- }, Ze = De(null);
6876
+ const me = ce(Ee).subtract(10 * Ie, "year").format("YYYY-MM-DD");
6877
+ ae?.(me), Ae(me);
6878
+ }, Ke = De(null);
6879
6879
  Re(() => {
6880
6880
  if (!fe || pe)
6881
6881
  return;
6882
6882
  const me = (ye) => {
6883
- if (!Ze.current?.contains(document.activeElement))
6883
+ if (!Ke.current?.contains(document.activeElement))
6884
6884
  return;
6885
- const Se = ye.ctrlKey || ye.metaKey, pt = ye.shiftKey;
6885
+ const Se = ye.ctrlKey || ye.metaKey, ct = ye.shiftKey;
6886
6886
  switch (ye.key) {
6887
6887
  case "ArrowUp":
6888
- Se && pt ? (ye.preventDefault(), qe()) : Se && (ye.preventDefault(), dt());
6888
+ Se && ct ? (ye.preventDefault(), qe()) : Se && (ye.preventDefault(), ht());
6889
6889
  break;
6890
6890
  case "ArrowDown":
6891
- Se && pt ? (ye.preventDefault(), st()) : Se && (ye.preventDefault(), it());
6891
+ Se && ct ? (ye.preventDefault(), at()) : Se && (ye.preventDefault(), st());
6892
6892
  break;
6893
6893
  case "y":
6894
6894
  case "Y":
6895
- Pe === "month" && (ye.preventDefault(), xe("year"));
6895
+ Oe === "month" && (ye.preventDefault(), xe("year"));
6896
6896
  break;
6897
6897
  }
6898
6898
  };
@@ -6902,20 +6902,20 @@ const Ru = {
6902
6902
  }, [
6903
6903
  fe,
6904
6904
  pe,
6905
- Pe,
6906
- it,
6907
- dt,
6905
+ Oe,
6908
6906
  st,
6907
+ ht,
6908
+ at,
6909
6909
  qe
6910
6910
  ]);
6911
- const at = (me) => {
6912
- Ze.current = me, typeof e == "function" ? e(me) : e && (e.current = me);
6911
+ const lt = (me) => {
6912
+ Ke.current = me, typeof e == "function" ? e(me) : e && (e.current = me);
6913
6913
  };
6914
- return /* @__PURE__ */ w.jsxs(ze, { ref: at, size: p, "data-calendar": !0, ...we, children: [
6915
- Pe === "month" && /* @__PURE__ */ w.jsx(
6914
+ return /* @__PURE__ */ w.jsxs(Fe, { ref: lt, size: p, "data-calendar": !0, ...we, children: [
6915
+ Oe === "month" && /* @__PURE__ */ w.jsx(
6916
6916
  Hr,
6917
6917
  {
6918
- month: Ae,
6918
+ month: Ee,
6919
6919
  minDate: I,
6920
6920
  maxDate: le,
6921
6921
  firstDayOfWeek: H,
@@ -6927,8 +6927,8 @@ const Ru = {
6927
6927
  hideOutsideDates: b,
6928
6928
  hideWeekdays: c,
6929
6929
  getDayAriaLabel: u,
6930
- onNext: nt,
6931
- onPrevious: ot,
6930
+ onNext: ot,
6931
+ onPrevious: it,
6932
6932
  hasNextLevel: i !== "month",
6933
6933
  onLevelClick: () => xe("year"),
6934
6934
  numberOfColumns: C,
@@ -6951,18 +6951,18 @@ const Ru = {
6951
6951
  ...Ue
6952
6952
  }
6953
6953
  ),
6954
- Pe === "year" && /* @__PURE__ */ w.jsx(
6954
+ Oe === "year" && /* @__PURE__ */ w.jsx(
6955
6955
  Vr,
6956
6956
  {
6957
- year: Ae,
6957
+ year: Ee,
6958
6958
  numberOfColumns: C,
6959
6959
  minDate: I,
6960
6960
  maxDate: le,
6961
6961
  monthsListFormat: X,
6962
6962
  getMonthControlProps: V,
6963
6963
  locale: o,
6964
- onNext: it,
6965
- onPrevious: dt,
6964
+ onNext: st,
6965
+ onPrevious: ht,
6966
6966
  hasNextLevel: i !== "month" && i !== "year",
6967
6967
  onLevelClick: () => xe("decade"),
6968
6968
  levelControlAriaLabel: D?.yearLevelControl,
@@ -6973,7 +6973,7 @@ const Ru = {
6973
6973
  yearLabelFormat: oe,
6974
6974
  __onControlMouseEnter: U,
6975
6975
  __onControlClick: (me, ye) => {
6976
- K && Me(ye), xe(er("month", d, i)), B?.(ye);
6976
+ K && Ae(ye), xe(er("month", d, i)), B?.(ye);
6977
6977
  },
6978
6978
  __preventFocus: O,
6979
6979
  __stopPropagation: T,
@@ -6982,16 +6982,16 @@ const Ru = {
6982
6982
  ...Ue
6983
6983
  }
6984
6984
  ),
6985
- Pe === "decade" && /* @__PURE__ */ w.jsx(
6985
+ Oe === "decade" && /* @__PURE__ */ w.jsx(
6986
6986
  qr,
6987
6987
  {
6988
- decade: Ae,
6988
+ decade: Ee,
6989
6989
  minDate: I,
6990
6990
  maxDate: le,
6991
6991
  yearsListFormat: ne,
6992
6992
  getYearControlProps: se,
6993
6993
  locale: o,
6994
- onNext: st,
6994
+ onNext: at,
6995
6995
  onPrevious: qe,
6996
6996
  numberOfColumns: C,
6997
6997
  nextLabel: D?.nextDecade ?? M,
@@ -7001,7 +7001,7 @@ const Ru = {
7001
7001
  decadeLabelFormat: A,
7002
7002
  __onControlMouseEnter: q,
7003
7003
  __onControlClick: (me, ye) => {
7004
- ee && Me(ye), xe(er("year", d, i)), z?.(ye);
7004
+ ee && Ae(ye), xe(er("year", d, i)), z?.(ye);
7005
7005
  },
7006
7006
  __preventFocus: O,
7007
7007
  __stopPropagation: T,
@@ -7158,7 +7158,7 @@ const Nu = {
7158
7158
  valueFormat: "MMMM D, YYYY",
7159
7159
  fixOnBlur: !0,
7160
7160
  size: "sm"
7161
- }, Qr = $e((t, e) => {
7161
+ }, Qr = Ne((t, e) => {
7162
7162
  const r = Ms("DateInput", Nu, t), {
7163
7163
  inputProps: n,
7164
7164
  wrapperProps: i,
@@ -7333,7 +7333,7 @@ const Nu = {
7333
7333
  Qr.classes = { ...Cr.classes, ...Gr.classes };
7334
7334
  Qr.displayName = "@mantine/dates/DateInput";
7335
7335
  function Lu(t) {
7336
- const e = tt.c(47), {
7336
+ const e = rt.c(47), {
7337
7337
  fields: r,
7338
7338
  onClose: n,
7339
7339
  queryKey: i,
@@ -7408,9 +7408,9 @@ function Lu(t) {
7408
7408
  label: h[f - 1].label
7409
7409
  } : {}, children: r.filter((s) => s.step === f).map((s) => re(s)) }, f)) }) : r.map((f) => re(f)), e[28] = g, e[29] = r, e[30] = re, e[31] = h, e[32] = K, e[33] = b) : b = e[33];
7410
7410
  let c;
7411
- e[34] !== g || e[35] !== _ || e[36] !== U || e[37] !== n || e[38] !== K.length ? (c = !_ && /* @__PURE__ */ w.jsxs(ht, { mt: "md", justify: "end", children: [
7412
- /* @__PURE__ */ w.jsx(ft, { onClick: () => K.length ? g === 0 ? n() : y(g - 1) : n(), variant: "outline", children: K.length ? g === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
7413
- /* @__PURE__ */ w.jsx(ft, { type: "submit", loading: U, children: K.length ? g === K.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
7411
+ e[34] !== g || e[35] !== _ || e[36] !== U || e[37] !== n || e[38] !== K.length ? (c = !_ && /* @__PURE__ */ w.jsxs(ft, { mt: "md", justify: "end", children: [
7412
+ /* @__PURE__ */ w.jsx(pt, { onClick: () => K.length ? g === 0 ? n() : y(g - 1) : n(), variant: "outline", children: K.length ? g === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
7413
+ /* @__PURE__ */ w.jsx(pt, { type: "submit", loading: U, children: K.length ? g === K.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
7414
7414
  ] }), e[34] = g, e[35] = _, e[36] = U, e[37] = n, e[38] = K.length, e[39] = c) : c = e[39];
7415
7415
  let u;
7416
7416
  e[40] !== c || e[41] !== x || e[42] !== b ? (u = /* @__PURE__ */ w.jsxs("form", { onSubmit: x, children: [
@@ -7479,7 +7479,7 @@ function Hu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7479
7479
  return JSON.stringify(y) !== _ && a(y), { columnsOrder: y, setColumnsOrder: a, resetColumnsOrder: g };
7480
7480
  }
7481
7481
  function Gu({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, onFixedLayoutChange: i }) {
7482
- let d = De(!1), h = De({}), [a, g] = be(!0), y = He(() => e.some((W) => W.resizable && !W.hidden && W.accessor !== "__selection__"), [e]), _ = He(() => e.filter((W) => W.resizable && !W.hidden && W.accessor !== "__selection__"), [e]), P = He(() => _.some((W) => W.width === void 0 || W.width === "" || W.width === "initial"), [_]), C = je(() => e.filter((W) => W.accessor !== "__selection__").map((W) => ({ [W.accessor]: W.width ?? "auto" })), [e]), [S, D] = zn({ key: t ? `${t}-columns-width` : "", defaultValue: t ? C() : void 0, getInitialValueInEffect: !1 }), [M, $] = be(() => C());
7482
+ let d = De(!1), h = De({}), [a, g] = be(!0), y = Ge(() => e.some((W) => W.resizable && !W.hidden && W.accessor !== "__selection__"), [e]), _ = Ge(() => e.filter((W) => W.resizable && !W.hidden && W.accessor !== "__selection__"), [e]), P = Ge(() => _.some((W) => W.width === void 0 || W.width === "" || W.width === "initial"), [_]), C = je(() => e.filter((W) => W.accessor !== "__selection__").map((W) => ({ [W.accessor]: W.width ?? "auto" })), [e]), [S, D] = zn({ key: t ? `${t}-columns-width` : "", defaultValue: t ? C() : void 0, getInitialValueInEffect: !1 }), [M, $] = be(() => C());
7483
7483
  Re(() => {
7484
7484
  g(!1);
7485
7485
  }, []);
@@ -7543,7 +7543,7 @@ function Gu({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
7543
7543
  }, 10));
7544
7544
  }, [t, D, C, i, U]), K = je((W, H) => {
7545
7545
  B([{ accessor: W, width: H }]);
7546
- }, [B]), G = He(() => y ? M.filter((W) => {
7546
+ }, [B]), G = Ge(() => y ? M.filter((W) => {
7547
7547
  let H = Object.keys(W)[0];
7548
7548
  return _.some((F) => F.accessor === H);
7549
7549
  }).every((W) => {
@@ -7574,14 +7574,14 @@ function Qu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7574
7574
  }
7575
7575
  var Zu = ({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, scrollViewportRef: i, onFixedLayoutChange: d }) => {
7576
7576
  let { columnsOrder: h, setColumnsOrder: a, resetColumnsOrder: g } = Hu({ key: t, columns: e, getInitialValueInEffect: r }), { columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: P } = Qu({ key: t, columns: e, getInitialValueInEffect: r }), { columnsWidth: C, setColumnsWidth: S, setColumnWidth: D, setMultipleColumnWidths: M, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: B, measureAndSetColumnWidths: q } = Gu({ key: t, columns: e, getInitialValueInEffect: r, headerRef: n, onFixedLayoutChange: d });
7577
- return { effectiveColumns: He(() => h ? h.map((U) => e.find((J) => J.accessor === U)).map((U) => ({ ...U, hidden: U?.hidden || !y.find((J) => J.accessor === U?.accessor)?.toggled })).map((U) => U?.accessor === "__selection__" ? U : { ...U, width: C.find((J) => J[U?.accessor])?.[U?.accessor] }) : e, [e, h, y, C]), setColumnsOrder: a, columnsOrder: h, resetColumnsOrder: g, columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: P, columnsWidth: C, setColumnsWidth: S, setColumnWidth: D, setMultipleColumnWidths: M, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: B, measureAndSetColumnWidths: q };
7577
+ return { effectiveColumns: Ge(() => h ? h.map((U) => e.find((J) => J.accessor === U)).map((U) => ({ ...U, hidden: U?.hidden || !y.find((J) => J.accessor === U?.accessor)?.toggled })).map((U) => U?.accessor === "__selection__" ? U : { ...U, width: C.find((J) => J[U?.accessor])?.[U?.accessor] }) : e, [e, h, y, C]), setColumnsOrder: a, columnsOrder: h, resetColumnsOrder: g, columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: P, columnsWidth: C, setColumnsWidth: S, setColumnWidth: D, setMultipleColumnWidths: M, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: B, measureAndSetColumnWidths: q };
7578
7578
  }, pi = typeof window < "u" ? Di : Re;
7579
7579
  function gi(t) {
7580
7580
  let e = De(t);
7581
7581
  return e.current = t, e;
7582
7582
  }
7583
7583
  var mi = "--mantine-datatable-header-height", yi = "--mantine-datatable-footer-height", vi = "--mantine-datatable-selection-column-width", bi = "--mantine-datatable-last-row-border-bottom";
7584
- function Je(t, e, r) {
7584
+ function Xe(t, e, r) {
7585
7585
  t?.style.setProperty(e, r);
7586
7586
  }
7587
7587
  function Nn(t) {
@@ -7606,24 +7606,24 @@ function Ku({ scrollCallbacks: t, withRowBorders: e }) {
7606
7606
  _.current.onScroll?.(D), P.current();
7607
7607
  }, []);
7608
7608
  return Re(() => _n(h.current, (D) => {
7609
- Je(n.current, mi, `${D.height}px`);
7610
- }, () => Je(n.current, mi, "0")), [h.current]), Re(() => _n(a.current, (D) => {
7611
- Je(n.current, yi, `${D.height}px`);
7612
- }, () => Je(n.current, yi, "0")), [a.current]), Re(() => _n(g.current, (D) => {
7613
- Je(n.current, vi, `${D.width}px`);
7614
- }, () => Je(n.current, vi, "0")), [g.current]), pi(() => {
7609
+ Xe(n.current, mi, `${D.height}px`);
7610
+ }, () => Xe(n.current, mi, "0")), [h.current]), Re(() => _n(a.current, (D) => {
7611
+ Xe(n.current, yi, `${D.height}px`);
7612
+ }, () => Xe(n.current, yi, "0")), [a.current]), Re(() => _n(g.current, (D) => {
7613
+ Xe(n.current, vi, `${D.width}px`);
7614
+ }, () => Xe(n.current, vi, "0")), [g.current]), pi(() => {
7615
7615
  if (typeof window === void 0) return;
7616
7616
  let D = { top: !0, bottom: !0, left: !0, right: !0 }, M = { width: 0, height: 0 }, $ = { width: 0, height: 0 };
7617
7617
  function z(ee, K) {
7618
7618
  let G = D[ee];
7619
- return D[ee] = K, Je(n.current, `--mantine-datatable-${ee}-shadow-opacity`, K ? "0" : "1"), G;
7619
+ return D[ee] = K, Xe(n.current, `--mantine-datatable-${ee}-shadow-opacity`, K ? "0" : "1"), G;
7620
7620
  }
7621
7621
  function B() {
7622
7622
  let ee = M.height - $.height, K = ee < 0;
7623
- Je(n.current, "--mantine-datatable-footer-position", K ? "relative" : "sticky"), Je(n.current, "--mantine-datatable-footer-bottom", K ? `${ee}px` : "0");
7623
+ Xe(n.current, "--mantine-datatable-footer-position", K ? "relative" : "sticky"), Xe(n.current, "--mantine-datatable-footer-bottom", K ? `${ee}px` : "0");
7624
7624
  }
7625
7625
  function q() {
7626
- y.current.withRowBorders && M.height < $.height ? Je(n.current, bi, `${kt("1px")} solid var(--mantine-datatable-border-color)`) : Je(n.current, bi, "unset");
7626
+ y.current.withRowBorders && M.height < $.height ? Xe(n.current, bi, `${kt("1px")} solid var(--mantine-datatable-border-color)`) : Xe(n.current, bi, "unset");
7627
7627
  }
7628
7628
  C.current = q;
7629
7629
  function U() {
@@ -7690,7 +7690,7 @@ function td(t, e, { getInitialValueInEffect: r } = { getInitialValueInEffect: !0
7690
7690
  }, [t]), n;
7691
7691
  }
7692
7692
  function rd(t) {
7693
- let e = Ri(), r = He(() => t.map((i) => (typeof i == "function" ? i(e) : i) ?? ""), [t, e]), n = He(() => t.map(() => !0), [t]);
7693
+ let e = Ri(), r = Ge(() => t.map((i) => (typeof i == "function" ? i(e) : i) ?? ""), [t, e]), n = Ge(() => t.map(() => !0), [t]);
7694
7694
  return td(r, n);
7695
7695
  }
7696
7696
  function Zr(t) {
@@ -7710,7 +7710,7 @@ function xn(t, e) {
7710
7710
  function ds(t, e) {
7711
7711
  return e ? e.match(/([^[.\]])+/g).reduce((r, n) => r && r[n], t) : void 0;
7712
7712
  }
7713
- function Be(t, e) {
7713
+ function Ye(t, e) {
7714
7714
  return typeof e == "string" ? ds(t, e) : e(t);
7715
7715
  }
7716
7716
  function hs(t) {
@@ -7737,15 +7737,15 @@ function id({ rowExpansion: t, records: e, idAccessor: r }) {
7737
7737
  let n = [];
7738
7738
  if (t && e) {
7739
7739
  let { trigger: a, allowMultiple: g, initiallyExpanded: y } = t;
7740
- e && a === "always" ? n = e.map((_) => Be(_, r)) : y && (n = e.filter((_, P) => y({ record: _, index: P })).map((_) => Be(_, r)), g || (n = [n[0]]));
7740
+ e && a === "always" ? n = e.map((_) => Ye(_, r)) : y && (n = e.filter((_, P) => y({ record: _, index: P })).map((_) => Ye(_, r)), g || (n = [n[0]]));
7741
7741
  }
7742
7742
  let i, d, h = be(n);
7743
7743
  if (t) {
7744
7744
  let { expandable: a, trigger: g, allowMultiple: y, collapseProps: _, content: P } = t;
7745
7745
  t.expanded ? { recordIds: i, onRecordIdsChange: d } = t.expanded : [i, d] = h;
7746
- let C = (S) => d?.(i.filter((D) => D !== Be(S, r)));
7747
- return { expandOnClick: g !== "always" && g !== "never", isRowExpanded: (S) => g === "always" ? !0 : i.includes(Be(S, r)), isExpandable: ({ record: S, index: D }) => a ? a({ record: S, index: D }) : !0, expandRow: (S) => {
7748
- let D = Be(S, r);
7746
+ let C = (S) => d?.(i.filter((D) => D !== Ye(S, r)));
7747
+ return { expandOnClick: g !== "always" && g !== "never", isRowExpanded: (S) => g === "always" ? !0 : i.includes(Ye(S, r)), isExpandable: ({ record: S, index: D }) => a ? a({ record: S, index: D }) : !0, expandRow: (S) => {
7748
+ let D = Ye(S, r);
7749
7749
  d?.(y ? [...i, D] : [D]);
7750
7750
  }, collapseRow: C, collapseProps: _, content: ({ record: S, index: D }) => () => P({ record: S, index: D, collapse: () => C(S) }) };
7751
7751
  }
@@ -7758,21 +7758,21 @@ function sd(t, e) {
7758
7758
  }
7759
7759
  var ro = "mantine-datatable-nowrap", no = "mantine-datatable-ellipsis", $t = "mantine-datatable-pointer-cursor", ps = "mantine-datatable-context-menu-cursor", ad = "mantine-datatable-text-selection-disabled", Kr = "mantine-datatable-text-align-left", Jr = "mantine-datatable-text-align-center", Xr = "mantine-datatable-text-align-right";
7760
7760
  function ld({ className: t, style: e, visibleMediaQuery: r, title: n, noWrap: i, ellipsis: d, textAlign: h, width: a }) {
7761
- return Zr(r) ? w.jsx(cr, { className: ke({ [ro]: i || d, [no]: d, [Kr]: h === "left", [Jr]: h === "center", [Xr]: h === "right" }, t), style: [{ width: a, minWidth: a, maxWidth: a }, e], children: n }) : null;
7761
+ return Zr(r) ? w.jsx(cr, { className: Pe({ [ro]: i || d, [no]: d, [Kr]: h === "left", [Jr]: h === "center", [Xr]: h === "right" }, t), style: [{ width: a, minWidth: a, maxWidth: a }, e], children: n }) : null;
7762
7762
  }
7763
7763
  function cd({ shadowVisible: t }) {
7764
7764
  return w.jsx(cr, { className: "mantine-datatable-footer-selector-placeholder-cell", "data-shadow-visible": t || void 0 });
7765
7765
  }
7766
7766
  function ud({ className: t, style: e, columns: r, defaultColumnProps: n, selectionVisible: i, selectorCellShadowVisible: d, ref: h }) {
7767
- return w.jsx(Ts, { ref: h, className: ke("mantine-datatable-footer", t), style: e, children: w.jsxs(Tt, { children: [i && w.jsx(cd, { shadowVisible: d }), r.map(({ hidden: a, ...g }) => {
7767
+ return w.jsx(Ts, { ref: h, className: Pe("mantine-datatable-footer", t), style: e, children: w.jsxs(Tt, { children: [i && w.jsx(cd, { shadowVisible: d }), r.map(({ hidden: a, ...g }) => {
7768
7768
  if (a) return null;
7769
7769
  let { accessor: y, visibleMediaQuery: _, textAlign: P, width: C, footer: S, footerClassName: D, footerStyle: M, noWrap: $, ellipsis: z } = { ...n, ...g };
7770
7770
  return w.jsx(ld, { className: D, style: M, visibleMediaQuery: _, textAlign: P, width: C, title: S, noWrap: $, ellipsis: z }, y);
7771
7771
  })] }) });
7772
7772
  }
7773
7773
  function dd({ group: { id: t, columns: e, groups: r, title: n, textAlign: i, className: d, style: h }, maxDepth: a, currentDepth: g, previousGroups: y, isLastGroup: _, withColumnBorders: P = !1, totalTableColumns: C }) {
7774
- let S = He(() => e && e.length > 0 ? e : r && r.length > 0 ? to([{ id: t, columns: e, groups: r }]) : [], [e, r, t]), D = He(() => S.map(({ visibleMediaQuery: J }) => J), [S]), M = rd(D), $ = He(() => Ln({ columns: e, groups: r }, M), [t, e, r, M]), z = He(() => y.reduce((J, ee) => J + Ln(ee, M), 0), [y, M]), B = r && r.length > 0 ? 1 : a - g, q = z + $ < C, U = od(_, q, P);
7775
- return $ > 0 ? w.jsx(cr, { colSpan: $, rowSpan: B > 1 ? B : void 0, className: ke("mantine-datatable-column-group-header-cell", { [Kr]: i === "left", [Jr]: i === "center", [Xr]: i === "right", "mantine-datatable-column-group-header-cell--needs-border": U }, d), style: h, children: n ?? eo(t) }) : null;
7774
+ let S = Ge(() => e && e.length > 0 ? e : r && r.length > 0 ? to([{ id: t, columns: e, groups: r }]) : [], [e, r, t]), D = Ge(() => S.map(({ visibleMediaQuery: J }) => J), [S]), M = rd(D), $ = Ge(() => Ln({ columns: e, groups: r }, M), [t, e, r, M]), z = Ge(() => y.reduce((J, ee) => J + Ln(ee, M), 0), [y, M]), B = r && r.length > 0 ? 1 : a - g, q = z + $ < C, U = od(_, q, P);
7775
+ return $ > 0 ? w.jsx(cr, { colSpan: $, rowSpan: B > 1 ? B : void 0, className: Pe("mantine-datatable-column-group-header-cell", { [Kr]: i === "left", [Jr]: i === "center", [Xr]: i === "right", "mantine-datatable-column-group-header-cell--needs-border": U }, d), style: h, children: n ?? eo(t) }) : null;
7776
7776
  }
7777
7777
  function hd() {
7778
7778
  return w.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [w.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), w.jsx("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" })] });
@@ -7870,16 +7870,16 @@ function wd({ className: t, style: e, accessor: r, visibleMediaQuery: n, title:
7870
7870
  }, u = (m) => {
7871
7871
  m.stopPropagation(), ee((f) => f.map((s) => s.accessor === r ? { ...s, toggled: !1 } : s));
7872
7872
  };
7873
- return w.jsxs(cr, { "data-accessor": r, className: ke({ "mantine-datatable-header-cell-sortable": d, "mantine-datatable-header-cell-toggleable": a, "mantine-datatable-header-cell-resizable": g }, t), style: [{ width: P, ...g ? {} : { minWidth: P, maxWidth: P } }, e], role: d ? "button" : void 0, tabIndex: d ? 0 : void 0, onClick: ie, onKeyDown: (m) => m.key === "Enter" && ie?.(), ref: W, children: [w.jsxs(ht, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [w.jsxs(Ls, { align: "center", w: "100%", className: ke({ "mantine-datatable-header-cell-draggable": h, "mantine-datatable-header-cell-drag-over": K }), draggable: h, onDragStart: h ? re : void 0, onDragEnter: h ? b : void 0, onDragOver: h ? k : void 0, onDrop: h ? x : void 0, onDragLeave: h ? c : void 0, children: [h ? w.jsx(Rt, { role: "img", "aria-label": "Drag column", children: w.jsx(Pr, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (m) => {
7873
+ return w.jsxs(cr, { "data-accessor": r, className: Pe({ "mantine-datatable-header-cell-sortable": d, "mantine-datatable-header-cell-toggleable": a, "mantine-datatable-header-cell-resizable": g }, t), style: [{ width: P, ...g ? {} : { minWidth: P, maxWidth: P } }, e], role: d ? "button" : void 0, tabIndex: d ? 0 : void 0, onClick: ie, onKeyDown: (m) => m.key === "Enter" && ie?.(), ref: W, children: [w.jsxs(ft, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [w.jsxs(Ls, { align: "center", w: "100%", className: Pe({ "mantine-datatable-header-cell-draggable": h, "mantine-datatable-header-cell-drag-over": K }), draggable: h, onDragStart: h ? re : void 0, onDragEnter: h ? b : void 0, onDragOver: h ? k : void 0, onDrop: h ? x : void 0, onDragLeave: h ? c : void 0, children: [h ? w.jsx(Rt, { role: "img", "aria-label": "Drag column", children: w.jsx(Pr, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (m) => {
7874
7874
  m.stopPropagation();
7875
- }, children: w.jsx(vd, {}) }) }) : null, w.jsx(ze, { className: ke("mantine-datatable-header-cell-sortable-text", { [Kr]: _ === "left", [Jr]: _ === "center", [Xr]: _ === "right" }, ro, no), title: F, children: H })] }), a ? w.jsx(Rt, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: w.jsx(Pr, { size: "xs", variant: "light", onClick: u, children: w.jsx(bd, {}) }) }) : null, d || C?.columnAccessor === r ? w.jsx(w.Fragment, { children: C?.columnAccessor === r ? w.jsx(Rt, { className: ke("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": C.direction === "desc" }), role: "img", "aria-label": `Sorted ${C.direction === "desc" ? "descending" : "ascending"}`, children: y?.sorted || w.jsx(md, {}) }) : w.jsx(Rt, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: y?.unsorted || w.jsx(yd, {}) }) }) : null, D ? w.jsx(pd, { filterPopoverProps: M, isActive: !!z, filterPopoverDisableClickOutside: $, children: D }) : null] }), g && r !== "__selection__" ? w.jsx(gd, { accessor: r, columnRef: W }) : null] });
7875
+ }, children: w.jsx(vd, {}) }) }) : null, w.jsx(Fe, { className: Pe("mantine-datatable-header-cell-sortable-text", { [Kr]: _ === "left", [Jr]: _ === "center", [Xr]: _ === "right" }, ro, no), title: F, children: H })] }), a ? w.jsx(Rt, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: w.jsx(Pr, { size: "xs", variant: "light", onClick: u, children: w.jsx(bd, {}) }) }) : null, d || C?.columnAccessor === r ? w.jsx(w.Fragment, { children: C?.columnAccessor === r ? w.jsx(Rt, { className: Pe("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": C.direction === "desc" }), role: "img", "aria-label": `Sorted ${C.direction === "desc" ? "descending" : "ascending"}`, children: y?.sorted || w.jsx(md, {}) }) : w.jsx(Rt, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: y?.unsorted || w.jsx(yd, {}) }) }) : null, D ? w.jsx(pd, { filterPopoverProps: M, isActive: !!z, filterPopoverDisableClickOutside: $, children: D }) : null] }), g && r !== "__selection__" ? w.jsx(gd, { accessor: r, columnRef: W }) : null] });
7876
7876
  }
7877
7877
  function _d({ className: t, style: e, trigger: r, shadowVisible: n, checked: i, indeterminate: d, checkboxProps: h, onChange: a, rowSpan: g, ref: y }) {
7878
7878
  let _ = !h.disabled;
7879
- return w.jsx(cr, { ref: y, className: ke("mantine-datatable-header-selector-cell", { [$t]: r === "cell" && _ }, t), style: e, rowSpan: g, "data-shadow-visible": n || void 0, "data-accessor": "__selection__", onClick: r === "cell" && _ ? a : void 0, children: w.jsx(lr, { classNames: _ ? { input: $t } : void 0, checked: i, indeterminate: d, onChange: a, ...h, disabled: !(a || h.onChange) || h.disabled }) });
7879
+ return w.jsx(cr, { ref: y, className: Pe("mantine-datatable-header-selector-cell", { [$t]: r === "cell" && _ }, t), style: e, rowSpan: g, "data-shadow-visible": n || void 0, "data-accessor": "__selection__", onClick: r === "cell" && _ ? a : void 0, children: w.jsx(lr, { classNames: _ ? { input: $t } : void 0, checked: i, indeterminate: d, onChange: a, ...h, disabled: !(a || h.onChange) || h.disabled }) });
7880
7880
  }
7881
7881
  function xd({ selectionColumnHeaderRef: t, className: e, style: r, sortStatus: n, sortIcons: i, onSortStatusChange: d, columns: h, defaultColumnProps: a, groups: g, selectionTrigger: y, selectionVisible: _, selectionChecked: P, selectionIndeterminate: C, onSelectionChange: S, selectionCheckboxProps: D, selectorCellShadowVisible: M, selectionColumnClassName: $, selectionColumnStyle: z, withColumnBorders: B = !1, ref: q }) {
7882
- let U = g ? hs(g) : 0, J = U > 0 ? U + 1 : 1, ee = _ ? w.jsx(_d, { ref: t, className: $, style: z, trigger: y, shadowVisible: M, checked: P, indeterminate: C, checkboxProps: D, onChange: S, rowSpan: g ? J : void 0 }) : null, { columnsToggle: K, setColumnsToggle: G } = Xn(), [W, H] = be(!1), F = h.some((k) => k.toggleable), ie = F ? Object.fromEntries(h.map(({ accessor: k, title: x }) => [k, x ?? eo(String(k))])) : void 0, re = w.jsxs(js, { className: ke("mantine-datatable-header", e), style: r, ref: q, onContextMenu: F ? (k) => {
7882
+ let U = g ? hs(g) : 0, J = U > 0 ? U + 1 : 1, ee = _ ? w.jsx(_d, { ref: t, className: $, style: z, trigger: y, shadowVisible: M, checked: P, indeterminate: C, checkboxProps: D, onChange: S, rowSpan: g ? J : void 0 }) : null, { columnsToggle: K, setColumnsToggle: G } = Xn(), [W, H] = be(!1), F = h.some((k) => k.toggleable), ie = F ? Object.fromEntries(h.map(({ accessor: k, title: x }) => [k, x ?? eo(String(k))])) : void 0, re = w.jsxs(js, { className: Pe("mantine-datatable-header", e), style: r, ref: q, onContextMenu: F ? (k) => {
7883
7883
  k.preventDefault(), H((x) => !x);
7884
7884
  } : void 0, children: [g && Array.from({ length: U }, (k, x) => {
7885
7885
  let b = fs(g, x);
@@ -7889,33 +7889,33 @@ function xd({ selectionColumnHeaderRef: t, className: e, style: r, sortStatus: n
7889
7889
  let { accessor: c, visibleMediaQuery: u, textAlign: m, width: f, title: s, sortable: v, draggable: E, toggleable: R, resizable: Q, titleClassName: Z, titleStyle: X, filter: V, filterPopoverProps: oe, filterPopoverDisableClickOutside: ne, filtering: se, sortKey: A } = { ...a, ...x };
7890
7890
  return w.jsx(wd, { accessor: c, className: Z, style: X, visibleMediaQuery: u, textAlign: m, width: f, title: s, sortable: v, draggable: E, toggleable: R, resizable: Q && b < h.length - 1, sortStatus: n, sortIcons: i, sortKey: A, onSortStatusChange: d, filter: V, filterPopoverProps: oe, filterPopoverDisableClickOutside: ne, filtering: se }, c);
7891
7891
  })] })] });
7892
- return F ? w.jsxs(rr, { position: "bottom", withArrow: !0, shadow: "md", opened: W, onChange: H, children: [w.jsx(Ai, { children: re }), w.jsx(Ei, { children: w.jsx(Bn, { children: K.filter((k) => k.toggleable).map((k) => w.jsx(ht, { children: w.jsx(lr, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: ie[k.accessor], checked: k.toggled, onChange: (x) => {
7892
+ return F ? w.jsxs(rr, { position: "bottom", withArrow: !0, shadow: "md", opened: W, onChange: H, children: [w.jsx(Ai, { children: re }), w.jsx(Ei, { children: w.jsx(Bn, { children: K.filter((k) => k.toggleable).map((k) => w.jsx(ft, { children: w.jsx(lr, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: ie[k.accessor], checked: k.toggled, onChange: (x) => {
7893
7893
  G(K.map((b) => b.accessor === k.accessor ? { ...b, toggled: x.currentTarget.checked } : b));
7894
7894
  } }) }, k.accessor)) }) })] }) : re;
7895
7895
  }
7896
7896
  function Cd({ fetching: t, customContent: e, backgroundBlur: r, size: n, type: i, color: d }) {
7897
- return w.jsx(Rt, { className: ke("mantine-datatable-loader", { "mantine-datatable-loader-fetching": t }), style: [{ backdropFilter: r ? `blur(${r}px)` : void 0 }], children: t && (e || w.jsx($s, { size: n, type: i, color: d })) });
7897
+ return w.jsx(Rt, { className: Pe("mantine-datatable-loader", { "mantine-datatable-loader-fetching": t }), style: [{ backdropFilter: r ? `blur(${r}px)` : void 0 }], children: t && (e || w.jsx($s, { size: n, type: i, color: d })) });
7898
7898
  }
7899
- function Oe(t, e, r) {
7899
+ function Me(t, e, r) {
7900
7900
  return t ? Ns({ color: typeof t == "object" ? t[r] : t, theme: e }).value : void 0;
7901
7901
  }
7902
7902
  function Sd({ theme: t, c: e, backgroundColor: r, borderColor: n, rowBorderColor: i, stripedColor: d, highlightOnHoverColor: h }) {
7903
- return { "--mantine-datatable-color-light": Oe(e, t, "light"), "--mantine-datatable-color-dark": Oe(e, t, "dark"), "--mantine-datatable-background-color-light": Oe(r, t, "light"), "--mantine-datatable-background-color-dark": Oe(r, t, "dark"), "--mantine-datatable-border-color-light": Oe(n, t, "light"), "--mantine-datatable-border-color-dark": Oe(n, t, "dark"), "--mantine-datatable-row-border-color-light": Oe(i, t, "light"), "--mantine-datatable-row-border-color-dark": Oe(i, t, "dark"), "--mantine-datatable-striped-color-light": Oe(d, t, "light"), "--mantine-datatable-striped-color-dark": Oe(d, t, "dark"), "--mantine-datatable-highlight-on-hover-color-light": Oe(h, t, "light"), "--mantine-datatable-highlight-on-hover-color-dark": Oe(h, t, "dark") };
7903
+ return { "--mantine-datatable-color-light": Me(e, t, "light"), "--mantine-datatable-color-dark": Me(e, t, "dark"), "--mantine-datatable-background-color-light": Me(r, t, "light"), "--mantine-datatable-background-color-dark": Me(r, t, "dark"), "--mantine-datatable-border-color-light": Me(n, t, "light"), "--mantine-datatable-border-color-dark": Me(n, t, "dark"), "--mantine-datatable-row-border-color-light": Me(i, t, "light"), "--mantine-datatable-row-border-color-dark": Me(i, t, "dark"), "--mantine-datatable-striped-color-light": Me(d, t, "light"), "--mantine-datatable-striped-color-dark": Me(d, t, "dark"), "--mantine-datatable-highlight-on-hover-color-light": Me(h, t, "light"), "--mantine-datatable-highlight-on-hover-color-dark": Me(h, t, "dark") };
7904
7904
  }
7905
7905
  function gs({ theme: t, paginationActiveTextColor: e, paginationActiveBackgroundColor: r }) {
7906
- return { "--mantine-datatable-pagination-active-text-color-light": Oe(e, t, "light"), "--mantine-datatable-pagination-active-text-color-dark": Oe(e, t, "dark"), "--mantine-datatable-pagination-active-background-color-light": Oe(r, t, "light"), "--mantine-datatable-pagination-active-background-color-dark": Oe(r, t, "dark") };
7906
+ return { "--mantine-datatable-pagination-active-text-color-light": Me(e, t, "light"), "--mantine-datatable-pagination-active-text-color-dark": Me(e, t, "dark"), "--mantine-datatable-pagination-active-background-color-light": Me(r, t, "light"), "--mantine-datatable-pagination-active-background-color-dark": Me(r, t, "dark") };
7907
7907
  }
7908
7908
  function Dd({ theme: t, color: e, backgroundColor: r }) {
7909
- return { "--mantine-datatable-row-color-light": Oe(e, t, "light"), "--mantine-datatable-row-color-dark": Oe(e, t, "dark"), "--mantine-datatable-row-background-color-light": Oe(r, t, "light"), "--mantine-datatable-row-background-color-dark": Oe(r, t, "dark") };
7909
+ return { "--mantine-datatable-row-color-light": Me(e, t, "light"), "--mantine-datatable-row-color-dark": Me(e, t, "dark"), "--mantine-datatable-row-background-color-light": Me(r, t, "light"), "--mantine-datatable-row-background-color-dark": Me(r, t, "dark") };
7910
7910
  }
7911
7911
  function kd() {
7912
7912
  return w.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [w.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), w.jsx("path", { d: "M8 9l4 -4l4 4" }), w.jsx("path", { d: "M16 15l-4 4l-4 -4" })] });
7913
7913
  }
7914
7914
  var wi = { xs: kt(22), sm: kt(26), md: kt(32), lg: kt(38), xl: kt(44) };
7915
7915
  function Pd({ size: t, label: e, values: r, value: n, activeTextColor: i, activeBackgroundColor: d, onChange: h }) {
7916
- return w.jsxs(ht, { gap: "xs", children: [w.jsx(or, { component: "div", size: t, children: e }), w.jsxs(Dt, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [w.jsx(zs, { children: w.jsx(ft, { size: t, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: w.jsx(kd, {}), style: [{ fontWeight: "normal" }, (a) => ({ height: wi[t], paddingLeft: a.spacing[t], paddingRight: a.spacing[t] })], children: n }) }), w.jsx(Fs, { children: r.map((a) => {
7916
+ return w.jsxs(ft, { gap: "xs", children: [w.jsx(or, { component: "div", size: t, children: e }), w.jsxs(Dt, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [w.jsx(zs, { children: w.jsx(pt, { size: t, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: w.jsx(kd, {}), style: [{ fontWeight: "normal" }, (a) => ({ height: wi[t], paddingLeft: a.spacing[t], paddingRight: a.spacing[t] })], children: n }) }), w.jsx(Fs, { children: r.map((a) => {
7917
7917
  let g = a === n;
7918
- return w.jsx(Ws, { className: ke({ "mantine-datatable-page-size-selector-active": g }), style: [{ height: wi[t] }, g && (i || d) ? (y) => gs({ theme: y, paginationActiveTextColor: i, paginationActiveBackgroundColor: d }) : void 0], disabled: g, onClick: () => h(a), children: w.jsx(or, { component: "div", size: t, children: a }) }, a);
7918
+ return w.jsx(Ws, { className: Pe({ "mantine-datatable-page-size-selector-active": g }), style: [{ height: wi[t] }, g && (i || d) ? (y) => gs({ theme: y, paginationActiveTextColor: i, paginationActiveBackgroundColor: d }) : void 0], disabled: g, onClick: () => h(a), children: w.jsx(or, { component: "div", size: t, children: a }) }, a);
7919
7919
  }) })] })] });
7920
7920
  }
7921
7921
  function Od({ className: t, style: e, fetching: r, page: n, onPageChange: i, paginationWithEdges: d, paginationWithControls: h, paginationActiveTextColor: a, paginationActiveBackgroundColor: g, paginationSize: y, loadingText: _, noRecordsText: P, paginationText: C, totalRecords: S, recordsPerPage: D, onRecordsPerPageChange: M, recordsPerPageLabel: $, recordsPerPageOptions: z, recordsLength: B, horizontalSpacing: q, paginationWrapBreakpoint: U, getPaginationControlProps: J, getPaginationItemProps: ee, renderPagination: K }) {
@@ -7924,11 +7924,11 @@ function Od({ className: t, style: e, fetching: r, page: n, onPageChange: i, pag
7924
7924
  let x = (n - 1) * D + 1, b = x + (B || 0) - 1;
7925
7925
  G = C({ from: x, to: b, totalRecords: S });
7926
7926
  } else G = r ? _ : P;
7927
- let W = S && D ? Math.max(1, Math.ceil(S / D)) : 1, H = S ? (n - 1) * (D ?? 0) + 1 : void 0, F = S ? (H ?? 1) + (B ?? 0) - 1 : void 0, ie = !Zr(({ breakpoints: x }) => `(min-width: ${typeof U == "number" ? `${kt(U)}rem` : x[U] || U})`), re = { Text: (x) => w.jsx(or, { component: "div", className: "mantine-datatable-pagination-text", size: y, ...x, children: G }), PageSizeSelector: (x) => z ? w.jsx(Pd, { activeTextColor: a, activeBackgroundColor: g, size: y, label: $, values: z, value: D, onChange: M, ...x }) : w.jsx(w.Fragment, {}), Pagination: (x) => w.jsx(Bs, { classNames: { root: ke("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !B }), control: "mantine-datatable-pagination-pages-control" }, style: a || g ? (b) => gs({ theme: b, paginationActiveTextColor: a, paginationActiveBackgroundColor: g }) : void 0, withEdges: d, withControls: h, value: n, onChange: i, size: y, total: W, getControlProps: J, getItemProps: ee, ...x }) }, k = { state: { paginationSize: y, page: n, totalPages: W, totalRecords: S, recordsPerPage: D, recordsLength: B, fetching: r, from: H, to: F, isWrapped: ie }, actions: { setPage: (x) => i?.(x), setRecordsPerPage: M ? (x) => M(x) : void 0 }, Controls: re };
7928
- return w.jsx(ze, { px: q ?? "xs", py: "xs", className: ke("mantine-datatable-pagination", t), style: [{ flexDirection: ie ? "column" : "row" }, e], children: typeof K == "function" ? K(k) : w.jsxs(w.Fragment, { children: [w.jsx(re.Text, {}), w.jsx(re.PageSizeSelector, {}), w.jsx(re.Pagination, {})] }) });
7927
+ let W = S && D ? Math.max(1, Math.ceil(S / D)) : 1, H = S ? (n - 1) * (D ?? 0) + 1 : void 0, F = S ? (H ?? 1) + (B ?? 0) - 1 : void 0, ie = !Zr(({ breakpoints: x }) => `(min-width: ${typeof U == "number" ? `${kt(U)}rem` : x[U] || U})`), re = { Text: (x) => w.jsx(or, { component: "div", className: "mantine-datatable-pagination-text", size: y, ...x, children: G }), PageSizeSelector: (x) => z ? w.jsx(Pd, { activeTextColor: a, activeBackgroundColor: g, size: y, label: $, values: z, value: D, onChange: M, ...x }) : w.jsx(w.Fragment, {}), Pagination: (x) => w.jsx(Bs, { classNames: { root: Pe("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !B }), control: "mantine-datatable-pagination-pages-control" }, style: a || g ? (b) => gs({ theme: b, paginationActiveTextColor: a, paginationActiveBackgroundColor: g }) : void 0, withEdges: d, withControls: h, value: n, onChange: i, size: y, total: W, getControlProps: J, getItemProps: ee, ...x }) }, k = { state: { paginationSize: y, page: n, totalPages: W, totalRecords: S, recordsPerPage: D, recordsLength: B, fetching: r, from: H, to: F, isWrapped: ie }, actions: { setPage: (x) => i?.(x), setRecordsPerPage: M ? (x) => M(x) : void 0 }, Controls: re };
7928
+ return w.jsx(Fe, { px: q ?? "xs", py: "xs", className: Pe("mantine-datatable-pagination", t), style: [{ flexDirection: ie ? "column" : "row" }, e], children: typeof K == "function" ? K(k) : w.jsxs(w.Fragment, { children: [w.jsx(re.Text, {}), w.jsx(re.PageSizeSelector, {}), w.jsx(re.Pagination, {})] }) });
7929
7929
  }
7930
7930
  function Md({ className: t, style: e, visibleMediaQuery: r, record: n, index: i, onClick: d, onDoubleClick: h, onContextMenu: a, noWrap: g, ellipsis: y, textAlign: _, width: P, accessor: C, render: S, defaultRender: D, customCellAttributes: M }) {
7931
- return Zr(r) ? w.jsx(Yn, { className: ke({ [ro]: g || y, [no]: y, [$t]: d || h, [ps]: a, [Kr]: _ === "left", [Jr]: _ === "center", [Xr]: _ === "right" }, t), style: [{ width: P, minWidth: P, maxWidth: P }, e], onClick: d, onDoubleClick: h, onContextMenu: a, ...M?.(n, i), children: S ? S(n, i) : D ? D(n, i, C) : ds(n, C) }) : null;
7931
+ return Zr(r) ? w.jsx(Yn, { className: Pe({ [ro]: g || y, [no]: y, [$t]: d || h, [ps]: a, [Kr]: _ === "left", [Jr]: _ === "center", [Xr]: _ === "right" }, t), style: [{ width: P, minWidth: P, maxWidth: P }, e], onClick: d, onDoubleClick: h, onContextMenu: a, ...M?.(n, i), children: S ? S(n, i) : D ? D(n, i, C) : ds(n, C) }) : null;
7932
7932
  }
7933
7933
  function Ad({ open: t, colSpan: e, content: r, collapseProps: n }) {
7934
7934
  let { expanded: i, visible: d } = sd(t, n?.transitionDuration);
@@ -7938,7 +7938,7 @@ function Ed({ className: t, style: e, record: r, index: n, trigger: i, onChange:
7938
7938
  let _ = { ...a, ...g(r, n) }, P = !y.disabled && !_.disabled, C = (S) => {
7939
7939
  S.stopPropagation(), i === "cell" && P && d?.(S);
7940
7940
  };
7941
- return w.jsx(Yn, { className: ke("mantine-datatable-row-selector-cell", { [$t]: i === "cell" && P }, t), style: e, "data-shadow-visible": h || void 0, onClick: C, children: w.jsx(lr, { classNames: P ? { input: $t } : void 0, onChange: d, ...y, ..._ }) });
7941
+ return w.jsx(Yn, { className: Pe("mantine-datatable-row-selector-cell", { [$t]: i === "cell" && P }, t), style: e, "data-shadow-visible": h || void 0, onClick: C, children: w.jsx(lr, { classNames: P ? { input: $t } : void 0, onChange: d, ...y, ..._ }) });
7942
7942
  }
7943
7943
  function Rd({ record: t, index: e, columns: r, defaultColumnProps: n, defaultColumnRender: i, selectionTrigger: d, selectionVisible: h, selectionChecked: a, onSelectionChange: g, isRecordSelectable: y, selectionCheckboxProps: _, getSelectionCheckboxProps: P, onClick: C, onDoubleClick: S, onContextMenu: D, onCellClick: M, onCellDoubleClick: $, onCellContextMenu: z, expansion: B, customAttributes: q, color: U, backgroundColor: J, className: ee, style: K, selectorCellShadowVisible: G, selectionColumnClassName: W, selectionColumnStyle: H, rowFactory: F }) {
7944
7944
  let ie = w.jsxs(w.Fragment, { children: [h && w.jsx(Ed, { className: W, style: H, record: t, index: e, trigger: d, withRightShadow: G, checked: a, disabled: !g || (y ? !y(t, e) : !1), onChange: g, checkboxProps: _, getCheckboxProps: P }), r.map(({ hidden: x, hiddenContent: b, ...c }, u) => {
@@ -7949,7 +7949,7 @@ function Rd({ record: t, index: e, columns: r, defaultColumnProps: n, defaultCol
7949
7949
  return F ? F({ record: t, index: e, rowProps: k, children: ie, expandedElement: re }) : w.jsxs(w.Fragment, { children: [w.jsx(Tt, { ...k, children: ie }), re] });
7950
7950
  }
7951
7951
  function jd({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClick: i, onContextMenu: d, expansion: h, customAttributes: a, color: g, backgroundColor: y, className: _, style: P }) {
7952
- return { className: ke("mantine-datatable-row", { [$t]: n || i || h?.isExpandable({ record: t, index: e }) && h?.expandOnClick }, { [ps]: d }, typeof _ == "function" ? _(t, e) : _), "data-selected": r || void 0, onClick: (C) => {
7952
+ return { className: Pe("mantine-datatable-row", { [$t]: n || i || h?.isExpandable({ record: t, index: e }) && h?.expandOnClick }, { [ps]: d }, typeof _ == "function" ? _(t, e) : _), "data-selected": r || void 0, onClick: (C) => {
7953
7953
  if (h) {
7954
7954
  let { isExpandable: S, isRowExpanded: D, expandOnClick: M, expandRow: $, collapseRow: z } = h;
7955
7955
  S({ record: t, index: e }) && M && (D(t) ? z(t) : $(t));
@@ -7961,10 +7961,10 @@ function jd({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClic
7961
7961
  } : void 0, P?.(t, e)], ...a?.(t, e) ?? {} };
7962
7962
  }
7963
7963
  function Td({ leftShadowBehind: t, rightShadowBehind: e, onScrollPositionChange: r, children: n, viewportRef: i, scrollAreaProps: d }) {
7964
- return w.jsxs(Rs, { ...d, viewportRef: i, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [n, w.jsx(ze, { className: ke("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), w.jsx("div", { className: ke("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": t }) }), w.jsx("div", { className: ke("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": e }) }), w.jsx(ze, { className: ke("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
7964
+ return w.jsxs(Rs, { ...d, viewportRef: i, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [n, w.jsx(Fe, { className: Pe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), w.jsx("div", { className: Pe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": t }) }), w.jsx("div", { className: Pe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": e }) }), w.jsx(Fe, { className: Pe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
7965
7965
  }
7966
- function $d({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: d, shadow: h, verticalAlign: a = "center", fetching: g, columns: y, storeColumnsKey: _, groups: P, pinFirstColumn: C, pinLastColumn: S, defaultColumnProps: D, defaultColumnRender: M, idAccessor: $ = "id", records: z, selectionTrigger: B = "checkbox", selectedRecords: q, onSelectedRecordsChange: U, selectionColumnClassName: J, selectionColumnStyle: ee, isRecordSelectable: K, selectionCheckboxProps: G, allRecordsSelectionCheckboxProps: W = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: H = (Ke, Ft) => ({ "aria-label": `Select record ${Ft + 1}` }), sortStatus: F, sortIcons: ie, onSortStatusChange: re, horizontalSpacing: k, page: x, onPageChange: b, totalRecords: c, recordsPerPage: u, onRecordsPerPageChange: m, recordsPerPageOptions: f, recordsPerPageLabel: s = "Records per page", paginationWithEdges: v, paginationWithControls: E, paginationActiveTextColor: R, paginationActiveBackgroundColor: Q, paginationSize: Z = "sm", paginationText: X = ({ from: Ke, to: Ft, totalRecords: rn }) => `${Ke} - ${Ft} / ${rn}`, paginationWrapBreakpoint: V = "sm", getPaginationControlProps: oe = (Ke) => Ke === "previous" ? { "aria-label": "Previous page" } : Ke === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: ne, renderPagination: se, loaderBackgroundBlur: A, customLoader: N, loaderSize: j, loaderType: L, loaderColor: I, loadingText: le = "...", emptyState: o, noRecordsText: l = "No records", noRecordsIcon: p, highlightOnHover: O, striped: T, noHeader: Y, onRowClick: ae, onRowDoubleClick: ue, onRowContextMenu: he, onCellClick: te, onCellDoubleClick: de, onCellContextMenu: pe, onScroll: fe, onScrollToTop: Ce, onScrollToBottom: we, onScrollToLeft: _e, onScrollToRight: Ne, c: Pe, backgroundColor: xe, borderColor: rt, rowBorderColor: Me, stripedColor: Ue, highlightOnHoverColor: Le, rowColor: ut, rowBackgroundColor: _t, rowExpansion: Ae, rowClassName: nt, rowStyle: ot, customRowAttributes: it, scrollViewportRef: dt, scrollAreaProps: st, tableRef: qe, bodyRef: Ze, m: at, my: me, mx: ye, mt: Se, mb: pt, ml: We, mr: Ee, className: lt, classNames: Ie, style: Mt, styles: zt, rowFactory: ms, tableWrapper: en, ...tn }) {
7967
- let Ke = He(() => P ? to(P) : y, [y, P]), [Ft, rn] = be(!1), { refs: ct, onScroll: ys } = Ku({ scrollCallbacks: { onScroll: fe, onScrollToTop: Ce, onScrollToBottom: we, onScrollToLeft: _e, onScrollToRight: Ne }, withRowBorders: tn.withRowBorders }), nn = Zu({ key: _, columns: Ke, headerRef: ct.header, scrollViewportRef: ct.scrollViewport, onFixedLayoutChange: rn }), vs = uo(ct.table, qe), bs = uo(ct.scrollViewport, dt), ws = id({ rowExpansion: Ae, records: z, idAccessor: $ }), ur = De(!1), oo = De(x), on = De(z), _s = je((ve) => {
7966
+ function $d({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: d, shadow: h, verticalAlign: a = "center", fetching: g, columns: y, storeColumnsKey: _, groups: P, pinFirstColumn: C, pinLastColumn: S, defaultColumnProps: D, defaultColumnRender: M, idAccessor: $ = "id", records: z, selectionTrigger: B = "checkbox", selectedRecords: q, onSelectedRecordsChange: U, selectionColumnClassName: J, selectionColumnStyle: ee, isRecordSelectable: K, selectionCheckboxProps: G, allRecordsSelectionCheckboxProps: W = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: H = (Je, Ft) => ({ "aria-label": `Select record ${Ft + 1}` }), sortStatus: F, sortIcons: ie, onSortStatusChange: re, horizontalSpacing: k, page: x, onPageChange: b, totalRecords: c, recordsPerPage: u, onRecordsPerPageChange: m, recordsPerPageOptions: f, recordsPerPageLabel: s = "Records per page", paginationWithEdges: v, paginationWithControls: E, paginationActiveTextColor: R, paginationActiveBackgroundColor: Q, paginationSize: Z = "sm", paginationText: X = ({ from: Je, to: Ft, totalRecords: rn }) => `${Je} - ${Ft} / ${rn}`, paginationWrapBreakpoint: V = "sm", getPaginationControlProps: oe = (Je) => Je === "previous" ? { "aria-label": "Previous page" } : Je === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: ne, renderPagination: se, loaderBackgroundBlur: A, customLoader: N, loaderSize: j, loaderType: L, loaderColor: I, loadingText: le = "...", emptyState: o, noRecordsText: l = "No records", noRecordsIcon: p, highlightOnHover: O, striped: T, noHeader: Y, onRowClick: ae, onRowDoubleClick: ue, onRowContextMenu: he, onCellClick: te, onCellDoubleClick: de, onCellContextMenu: pe, onScroll: fe, onScrollToTop: Ce, onScrollToBottom: we, onScrollToLeft: _e, onScrollToRight: Le, c: Oe, backgroundColor: xe, borderColor: nt, rowBorderColor: Ae, stripedColor: Ue, highlightOnHoverColor: Ie, rowColor: dt, rowBackgroundColor: _t, rowExpansion: Ee, rowClassName: ot, rowStyle: it, customRowAttributes: st, scrollViewportRef: ht, scrollAreaProps: at, tableRef: qe, bodyRef: Ke, m: lt, my: me, mx: ye, mt: Se, mb: ct, ml: $e, mr: ke, className: Ve, classNames: Be, style: Mt, styles: zt, rowFactory: ms, tableWrapper: en, ...tn }) {
7967
+ let Je = Ge(() => P ? to(P) : y, [y, P]), [Ft, rn] = be(!1), { refs: ut, onScroll: ys } = Ku({ scrollCallbacks: { onScroll: fe, onScrollToTop: Ce, onScrollToBottom: we, onScrollToLeft: _e, onScrollToRight: Le }, withRowBorders: tn.withRowBorders }), nn = Zu({ key: _, columns: Je, headerRef: ut.header, scrollViewportRef: ut.scrollViewport, onFixedLayoutChange: rn }), vs = uo(ut.table, qe), bs = uo(ut.scrollViewport, ht), ws = id({ rowExpansion: Ee, records: z, idAccessor: $ }), ur = De(!1), oo = De(x), on = De(z), _s = je((ve) => {
7968
7968
  ur.current = !0, on.current = z, b(ve);
7969
7969
  }, [b, z]);
7970
7970
  Re(() => {
@@ -7973,29 +7973,29 @@ function $d({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, hei
7973
7973
  let dr = z?.length;
7974
7974
  Di(() => {
7975
7975
  if (!ur.current || g || z === on.current) return;
7976
- let ve = ct.scrollViewport.current;
7976
+ let ve = ut.scrollViewport.current;
7977
7977
  if (!ve) return;
7978
7978
  let xt = requestAnimationFrame(() => {
7979
7979
  ve.scrollTo({ top: 0, left: 0 }), ur.current = !1;
7980
7980
  });
7981
7981
  return () => cancelAnimationFrame(xt);
7982
- }, [g, z, ct.scrollViewport]);
7983
- let io = z?.map((ve) => Be(ve, $)), At = !!q, Wt = q?.map((ve) => Be(ve, $)), so = io !== void 0 && Wt !== void 0 && Wt.length > 0, sn = K ? z?.filter(K) : z, hr = sn?.map((ve) => Be(ve, $)), fr = so && hr.every((ve) => Wt.includes(ve)), xs = so && hr.some((ve) => Wt.includes(ve)), Cs = je(() => {
7984
- q && U && U(fr ? q.filter((ve) => !hr.includes(Be(ve, $))) : xn([...q, ...sn], (ve) => Be(ve, $)));
7985
- }, [fr, $, U, hr, sn, q]), { lastSelectionChangeIndex: pr, setLastSelectionChangeIndex: Ss } = Ju(io), an = At && !C, Ds = { m: at, my: me, mx: ye, mt: Se, mb: pt, ml: We, mr: Ee }, ks = je(({ children: ve }) => en ? en({ children: ve }) : ve, [en]);
7986
- return w.jsx(fi, { ...nn, children: w.jsxs(ze, { ref: ct.root, ...Ds, className: ke("mantine-datatable", { "mantine-datatable-with-border": t }, lt, Ie?.root), style: [(ve) => ({ ...Sd({ theme: ve, c: Pe, backgroundColor: xe, borderColor: rt, rowBorderColor: Me, stripedColor: Ue, highlightOnHoverColor: Le }), borderRadius: ve.radius[e] || e, boxShadow: ve.shadows[h] || h, height: n, minHeight: i, maxHeight: d }), Mt, zt?.root, { position: "relative" }], children: [w.jsx(Td, { viewportRef: bs, leftShadowBehind: At || !!C, rightShadowBehind: S, onScrollPositionChange: ys, scrollAreaProps: st, children: w.jsx(ks, { children: w.jsxs(Es, { ref: vs, horizontalSpacing: k, className: ke("mantine-datatable-table", { [ad]: r, "mantine-datatable-vertical-align-top": a === "top", "mantine-datatable-vertical-align-bottom": a === "bottom", "mantine-datatable-pin-last-column": S, "mantine-datatable-selection-column-visible": At, "mantine-datatable-pin-first-column": C, "mantine-datatable-resizable-columns": nn.hasResizableColumns && Ft }, Ie?.table), style: { ...zt?.table }, "data-striped": dr && T || void 0, "data-highlight-on-hover": O || void 0, ...tn, children: [Y ? null : w.jsx(fi, { ...nn, children: w.jsx(xd, { ref: ct.header, selectionColumnHeaderRef: ct.selectionColumnHeader, className: Ie?.header, style: zt?.header, columns: Ke, defaultColumnProps: D, groups: P, sortStatus: F, sortIcons: ie, onSortStatusChange: re, selectionTrigger: B, selectionVisible: At, selectionChecked: fr, selectionIndeterminate: xs && !fr, onSelectionChange: Cs, selectionCheckboxProps: { ...G, ...W }, selectorCellShadowVisible: an, selectionColumnClassName: J, selectionColumnStyle: ee, withColumnBorders: tn.withColumnBorders }) }), w.jsx("tbody", { ref: Ze, children: dr ? z.map((ve, xt) => {
7987
- let ln = Be(ve, $), cn = Wt?.includes(ln) || !1, ao;
7982
+ }, [g, z, ut.scrollViewport]);
7983
+ let io = z?.map((ve) => Ye(ve, $)), At = !!q, Wt = q?.map((ve) => Ye(ve, $)), so = io !== void 0 && Wt !== void 0 && Wt.length > 0, sn = K ? z?.filter(K) : z, hr = sn?.map((ve) => Ye(ve, $)), fr = so && hr.every((ve) => Wt.includes(ve)), xs = so && hr.some((ve) => Wt.includes(ve)), Cs = je(() => {
7984
+ q && U && U(fr ? q.filter((ve) => !hr.includes(Ye(ve, $))) : xn([...q, ...sn], (ve) => Ye(ve, $)));
7985
+ }, [fr, $, U, hr, sn, q]), { lastSelectionChangeIndex: pr, setLastSelectionChangeIndex: Ss } = Ju(io), an = At && !C, Ds = { m: lt, my: me, mx: ye, mt: Se, mb: ct, ml: $e, mr: ke }, ks = je(({ children: ve }) => en ? en({ children: ve }) : ve, [en]);
7986
+ return w.jsx(fi, { ...nn, children: w.jsxs(Fe, { ref: ut.root, ...Ds, className: Pe("mantine-datatable", { "mantine-datatable-with-border": t }, Ve, Be?.root), style: [(ve) => ({ ...Sd({ theme: ve, c: Oe, backgroundColor: xe, borderColor: nt, rowBorderColor: Ae, stripedColor: Ue, highlightOnHoverColor: Ie }), borderRadius: ve.radius[e] || e, boxShadow: ve.shadows[h] || h, height: n, minHeight: i, maxHeight: d }), Mt, zt?.root, { position: "relative" }], children: [w.jsx(Td, { viewportRef: bs, leftShadowBehind: At || !!C, rightShadowBehind: S, onScrollPositionChange: ys, scrollAreaProps: at, children: w.jsx(ks, { children: w.jsxs(Es, { ref: vs, horizontalSpacing: k, className: Pe("mantine-datatable-table", { [ad]: r, "mantine-datatable-vertical-align-top": a === "top", "mantine-datatable-vertical-align-bottom": a === "bottom", "mantine-datatable-pin-last-column": S, "mantine-datatable-selection-column-visible": At, "mantine-datatable-pin-first-column": C, "mantine-datatable-resizable-columns": nn.hasResizableColumns && Ft }, Be?.table), style: { ...zt?.table }, "data-striped": dr && T || void 0, "data-highlight-on-hover": O || void 0, ...tn, children: [Y ? null : w.jsx(fi, { ...nn, children: w.jsx(xd, { ref: ut.header, selectionColumnHeaderRef: ut.selectionColumnHeader, className: Be?.header, style: zt?.header, columns: Je, defaultColumnProps: D, groups: P, sortStatus: F, sortIcons: ie, onSortStatusChange: re, selectionTrigger: B, selectionVisible: At, selectionChecked: fr, selectionIndeterminate: xs && !fr, onSelectionChange: Cs, selectionCheckboxProps: { ...G, ...W }, selectorCellShadowVisible: an, selectionColumnClassName: J, selectionColumnStyle: ee, withColumnBorders: tn.withColumnBorders }) }), w.jsx("tbody", { ref: Ke, children: dr ? z.map((ve, xt) => {
7987
+ let ln = Ye(ve, $), cn = Wt?.includes(ln) || !1, ao;
7988
7988
  return U && q && (ao = (Ps) => {
7989
7989
  if (Ps.nativeEvent.shiftKey && pr !== null) {
7990
7990
  let Et = z.filter(xt > pr ? (Ct, St) => St >= pr && St <= xt && (K ? K(Ct, St) : !0) : (Ct, St) => St >= xt && St <= pr && (K ? K(Ct, St) : !0));
7991
- U(cn ? nd(q, Et, (Ct) => Be(Ct, $)) : xn([...q, ...Et], (Ct) => Be(Ct, $)));
7992
- } else U(cn ? q.filter((Et) => Be(Et, $) !== ln) : xn([...q, ve], (Et) => Be(Et, $)));
7991
+ U(cn ? nd(q, Et, (Ct) => Ye(Ct, $)) : xn([...q, ...Et], (Ct) => Ye(Ct, $)));
7992
+ } else U(cn ? q.filter((Et) => Ye(Et, $) !== ln) : xn([...q, ve], (Et) => Ye(Et, $)));
7993
7993
  Ss(xt);
7994
- }), w.jsx(Rd, { record: ve, index: xt, columns: Ke, defaultColumnProps: D, defaultColumnRender: M, selectionTrigger: B, selectionVisible: At, selectionChecked: cn, onSelectionChange: ao, isRecordSelectable: K, selectionCheckboxProps: G, getSelectionCheckboxProps: H, onClick: ae, onDoubleClick: ue, onCellClick: te, onCellDoubleClick: de, onContextMenu: he, onCellContextMenu: pe, expansion: ws, color: ut, backgroundColor: _t, className: nt, style: ot, customAttributes: it, selectorCellShadowVisible: an, selectionColumnClassName: J, selectionColumnStyle: ee, idAccessor: $, rowFactory: ms }, ln);
7995
- }) : w.jsx(Uu, {}) }), Ke.some(({ footer: ve }) => ve) && w.jsx(ud, { ref: ct.footer, className: Ie?.footer, style: zt?.footer, columns: Ke, defaultColumnProps: D, selectionVisible: At, selectorCellShadowVisible: an })] }) }) }), x && w.jsx(Od, { className: Ie?.pagination, style: zt?.pagination, horizontalSpacing: k, fetching: g, page: x, onPageChange: _s, totalRecords: c, recordsPerPage: u, onRecordsPerPageChange: m, recordsPerPageOptions: f, recordsPerPageLabel: s, paginationWithEdges: v, paginationWithControls: E, paginationActiveTextColor: R, paginationActiveBackgroundColor: Q, paginationSize: Z, paginationText: X, paginationWrapBreakpoint: V, getPaginationControlProps: oe, getPaginationItemProps: ne, noRecordsText: l, loadingText: le, recordsLength: dr, renderPagination: se }), w.jsx(Cd, { fetching: g, backgroundBlur: A, customContent: N, size: j, type: L, color: I }), w.jsx(Vu, { icon: p, text: l, active: !g && !dr, children: o })] }) });
7994
+ }), w.jsx(Rd, { record: ve, index: xt, columns: Je, defaultColumnProps: D, defaultColumnRender: M, selectionTrigger: B, selectionVisible: At, selectionChecked: cn, onSelectionChange: ao, isRecordSelectable: K, selectionCheckboxProps: G, getSelectionCheckboxProps: H, onClick: ae, onDoubleClick: ue, onCellClick: te, onCellDoubleClick: de, onContextMenu: he, onCellContextMenu: pe, expansion: ws, color: dt, backgroundColor: _t, className: ot, style: it, customAttributes: st, selectorCellShadowVisible: an, selectionColumnClassName: J, selectionColumnStyle: ee, idAccessor: $, rowFactory: ms }, ln);
7995
+ }) : w.jsx(Uu, {}) }), Je.some(({ footer: ve }) => ve) && w.jsx(ud, { ref: ut.footer, className: Be?.footer, style: zt?.footer, columns: Je, defaultColumnProps: D, selectionVisible: At, selectorCellShadowVisible: an })] }) }) }), x && w.jsx(Od, { className: Be?.pagination, style: zt?.pagination, horizontalSpacing: k, fetching: g, page: x, onPageChange: _s, totalRecords: c, recordsPerPage: u, onRecordsPerPageChange: m, recordsPerPageOptions: f, recordsPerPageLabel: s, paginationWithEdges: v, paginationWithControls: E, paginationActiveTextColor: R, paginationActiveBackgroundColor: Q, paginationSize: Z, paginationText: X, paginationWrapBreakpoint: V, getPaginationControlProps: oe, getPaginationItemProps: ne, noRecordsText: l, loadingText: le, recordsLength: dr, renderPagination: se }), w.jsx(Cd, { fetching: g, backgroundBlur: A, customContent: N, size: j, type: L, color: I }), w.jsx(Vu, { icon: p, text: l, active: !g && !dr, children: o })] }) });
7996
7996
  }
7997
7997
  function Nd(t) {
7998
- const e = tt.c(41), {
7998
+ const e = rt.c(41), {
7999
7999
  fields: r,
8000
8000
  onClose: n,
8001
8001
  queryKey: i,
@@ -8068,7 +8068,7 @@ function Nd(t) {
8068
8068
  e[24] !== g || e[25] !== r || e[26] !== G || e[27] !== _ || e[28] !== h || e[29] !== S || e[30] !== z || e[31] !== M || e[32] !== n || e[33] !== ie || e[34] !== a || e[35] !== U || e[36] !== D ? (k = S ? /* @__PURE__ */ w.jsxs(Bn, { gap: "md", children: [
8069
8069
  /* @__PURE__ */ w.jsx(jt, { height: 40 }),
8070
8070
  Array(r.length).fill(0).map(Ld),
8071
- /* @__PURE__ */ w.jsxs(ht, { mt: "md", justify: "end", children: [
8071
+ /* @__PURE__ */ w.jsxs(ft, { mt: "md", justify: "end", children: [
8072
8072
  /* @__PURE__ */ w.jsx(jt, { width: 100, height: 36 }),
8073
8073
  /* @__PURE__ */ w.jsx(jt, { width: 100, height: 36 })
8074
8074
  ] })
@@ -8081,9 +8081,9 @@ function Nd(t) {
8081
8081
  U.length ? /* @__PURE__ */ w.jsx(kr, { active: g, size: "sm", children: U.map((b) => /* @__PURE__ */ w.jsx(kr.Step, { ...a && a[b - 1] ? {
8082
8082
  label: a[b - 1].label
8083
8083
  } : {}, children: r.filter((c) => c.step === b).map((c) => ie(c)) }, b)) }) : r.map((b) => ie(b)),
8084
- !_ && /* @__PURE__ */ w.jsxs(ht, { mt: "md", justify: "end", children: [
8085
- /* @__PURE__ */ w.jsx(ft, { onClick: () => U.length ? g === 0 ? n() : y(g - 1) : n(), variant: "outline", children: U.length ? g === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
8086
- /* @__PURE__ */ w.jsx(ft, { type: "submit", loading: z, children: U.length ? g === U.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
8084
+ !_ && /* @__PURE__ */ w.jsxs(ft, { mt: "md", justify: "end", children: [
8085
+ /* @__PURE__ */ w.jsx(pt, { onClick: () => U.length ? g === 0 ? n() : y(g - 1) : n(), variant: "outline", children: U.length ? g === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
8086
+ /* @__PURE__ */ w.jsx(pt, { type: "submit", loading: z, children: U.length ? g === U.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
8087
8087
  ] })
8088
8088
  ] }), e[24] = g, e[25] = r, e[26] = G, e[27] = _, e[28] = h, e[29] = S, e[30] = z, e[31] = M, e[32] = n, e[33] = ie, e[34] = a, e[35] = U, e[36] = D, e[37] = k) : k = e[37];
8089
8089
  let x;
@@ -8127,9 +8127,9 @@ function Wd({
8127
8127
  }, [r, g]), g.length ? /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
8128
8128
  d && h.message && /* @__PURE__ */ w.jsx(jr, { variant: "outline", color: "red", title: h.name, children: h.message }),
8129
8129
  /* @__PURE__ */ w.jsx(or, { children: g.length === 1 ? `Soll ${g.length} Eintrag wirklich gelöscht werden?` : `Sollen ${g.length} Einträge wirklich gelöscht werden?` }),
8130
- /* @__PURE__ */ w.jsxs(ht, { mt: "md", justify: "end", children: [
8131
- /* @__PURE__ */ w.jsx(ft, { onClick: r, variant: "outline", disabled: C, children: "Abbrechen" }),
8132
- /* @__PURE__ */ w.jsx(ft, { color: "red", loading: C, onClick: async () => {
8130
+ /* @__PURE__ */ w.jsxs(ft, { mt: "md", justify: "end", children: [
8131
+ /* @__PURE__ */ w.jsx(pt, { onClick: r, variant: "outline", disabled: C, children: "Abbrechen" }),
8132
+ /* @__PURE__ */ w.jsx(pt, { color: "red", loading: C, onClick: async () => {
8133
8133
  P(!0);
8134
8134
  try {
8135
8135
  await Promise.all(g.map((S) => i(S.id))), y([]);
@@ -8141,7 +8141,7 @@ function Wd({
8141
8141
  ] }) : /* @__PURE__ */ w.jsx(w.Fragment, {});
8142
8142
  }
8143
8143
  function Ud(t, e) {
8144
- const r = tt.c(8);
8144
+ const r = rt.c(8);
8145
8145
  let n;
8146
8146
  r[0] !== t || r[1] !== e ? (n = () => {
8147
8147
  const y = localStorage.getItem(`use_persistent_storage_${e}`);
@@ -8243,7 +8243,7 @@ const qd = (t, e) => {
8243
8243
  });
8244
8244
  }, xi = [10, 15, 20, 50, 100, 500];
8245
8245
  function Hd(t) {
8246
- const e = tt.c(111), {
8246
+ const e = rt.c(111), {
8247
8247
  title: r,
8248
8248
  queryKey: n,
8249
8249
  connectedQueryKeys: i,
@@ -8294,43 +8294,43 @@ function Hd(t) {
8294
8294
  const Q = !c || !Array.isArray(c) ? [] : !_ || _.length === 0 ? c : c.filter((ye) => _.every((Se) => {
8295
8295
  if (Se.value === void 0)
8296
8296
  return !0;
8297
- const pt = Se.id;
8297
+ const ct = Se.id;
8298
8298
  if (Se.type === "query") {
8299
- const We = ye[pt];
8300
- return Array.isArray(Se.value) ? Array.isArray(We) ? We.some((Ee) => {
8301
- if (typeof Ee == "string" || typeof Ee == "number")
8302
- return Se.value.includes(String(Ee));
8303
- if (Ee && typeof Ee == "object") {
8304
- if ("id" in Ee && Se.value.includes(Ee.id))
8299
+ const $e = ye[ct];
8300
+ return Array.isArray(Se.value) ? Array.isArray($e) ? $e.some((ke) => {
8301
+ if (typeof ke == "string" || typeof ke == "number")
8302
+ return Se.value.includes(String(ke));
8303
+ if (ke && typeof ke == "object") {
8304
+ if ("id" in ke && Se.value.includes(ke.id))
8305
8305
  return !0;
8306
- for (const lt in Ee) {
8307
- const Ie = Ee[lt];
8308
- if (typeof Ie == "string" && Se.value.includes(Ie) || Ie && typeof Ie == "object" && "id" in Ie && Se.value.includes(Ie.id))
8306
+ for (const Ve in ke) {
8307
+ const Be = ke[Ve];
8308
+ if (typeof Be == "string" && Se.value.includes(Be) || Be && typeof Be == "object" && "id" in Be && Se.value.includes(Be.id))
8309
8309
  return !0;
8310
8310
  }
8311
8311
  }
8312
8312
  return !1;
8313
- }) : We && typeof We == "object" && "id" in We ? Se.value.includes(We.id) : !1 : typeof We == "string" && We.includes(Se.value);
8313
+ }) : $e && typeof $e == "object" && "id" in $e ? Se.value.includes($e.id) : !1 : typeof $e == "string" && $e.includes(Se.value);
8314
8314
  } else if (Se.type === "date") {
8315
- const We = Se.value;
8316
- if (!We)
8315
+ const $e = Se.value;
8316
+ if (!$e)
8317
8317
  return !0;
8318
- const [Ee, lt] = We;
8319
- if (!Ee && !lt)
8318
+ const [ke, Ve] = $e;
8319
+ if (!ke && !Ve)
8320
8320
  return !0;
8321
- const Ie = ye[pt];
8322
- if (typeof Ie == "string") {
8323
- const Mt = Ie.split(" ")[0];
8324
- if (Ee && lt)
8325
- return Mt >= Ee && Mt <= lt;
8326
- if (Ee && !lt)
8327
- return Mt >= Ee;
8328
- if (!Ee && lt)
8329
- return Mt <= lt;
8321
+ const Be = ye[ct];
8322
+ if (typeof Be == "string") {
8323
+ const Mt = Be.split(" ")[0];
8324
+ if (ke && Ve)
8325
+ return Mt >= ke && Mt <= Ve;
8326
+ if (ke && !Ve)
8327
+ return Mt >= ke;
8328
+ if (!ke && Ve)
8329
+ return Mt <= Ve;
8330
8330
  }
8331
8331
  return !0;
8332
8332
  } else if (Se.type === "boolean")
8333
- return ye[pt] === Se.value;
8333
+ return ye[ct] === Se.value;
8334
8334
  return !0;
8335
8335
  })), Z = S?.field ?? a[0].id, X = S?.direction ?? "desc";
8336
8336
  let V;
@@ -8358,41 +8358,44 @@ function Hd(t) {
8358
8358
  let we;
8359
8359
  e[23] !== fe ? (we = /* @__PURE__ */ w.jsx(Pr, { variant: "subtle", onClick: fe, "aria-label": "Neuladen", children: Ce }), e[23] = fe, e[24] = we) : we = e[24];
8360
8360
  let _e;
8361
- e[25] !== P || e[26] !== J || e[27] !== U || e[28] !== a || e[29] !== o || e[30] !== g ? (_e = (a.some(rh) || g) && /* @__PURE__ */ w.jsxs(Dt, { shadow: "md", children: [
8362
- /* @__PURE__ */ w.jsx(Dt.Target, { children: /* @__PURE__ */ w.jsx(ft, { variant: "outline", rightSection: /* @__PURE__ */ w.jsx(qs, { size: 14 }), disabled: !o.length, children: "Aktionen" }) }),
8363
- /* @__PURE__ */ w.jsxs(Dt.Dropdown, { children: [
8364
- a.find(th) && (!U || U(o[0])) && /* @__PURE__ */ w.jsx(Dt.Item, { leftSection: /* @__PURE__ */ w.jsx(Vs, { size: 14 }), onClick: () => ue(!0), disabled: o.length !== 1, children: "Bearbeiten" }),
8365
- (P ?? []).map((ye, Se) => /* @__PURE__ */ xr(Dt.Item, { ...ye.icon && {
8366
- leftSection: ye.icon
8367
- }, key: `custom_action_${Se}`, onClick: () => ye.onClick(o) }, ye.label)),
8368
- a.find(eh) && (!J || J(o[0])) && /* @__PURE__ */ w.jsx(Dt.Item, { leftSection: /* @__PURE__ */ w.jsx(Hs, { size: 14 }), onClick: () => te(!0), color: "red", children: "Löschen" })
8369
- ] })
8370
- ] }), e[25] = P, e[26] = J, e[27] = U, e[28] = a, e[29] = o, e[30] = g, e[31] = _e) : _e = e[31];
8371
- let Ne;
8372
- e[32] !== D || e[33] !== a || e[34] !== u ? (Ne = a.find(Xd) && /* @__PURE__ */ w.jsx(ft, { onClick: () => Y(!0), disabled: u, children: D ?? "Erstellen" }), e[32] = D, e[33] = a, e[34] = u, e[35] = Ne) : Ne = e[35];
8373
- let Pe;
8374
- e[36] !== h || e[37] !== we || e[38] !== _e || e[39] !== Ne ? (Pe = /* @__PURE__ */ w.jsxs(ht, { align: "center", gap: "xs", children: [
8361
+ e[25] !== P || e[26] !== J || e[27] !== U || e[28] !== a || e[29] !== o || e[30] !== g ? (_e = (a.some(rh) || g) && (() => {
8362
+ const ye = a.find(th) && (!U || o.length > 0 && U(o[0])), Se = a.find(eh) && (!J || o.length > 0 && J(o[0])), ct = (P ?? []).length > 0, $e = ye || Se || ct;
8363
+ return /* @__PURE__ */ w.jsxs(Dt, { shadow: "md", children: [
8364
+ /* @__PURE__ */ w.jsx(Dt.Target, { children: /* @__PURE__ */ w.jsx(pt, { variant: "outline", rightSection: /* @__PURE__ */ w.jsx(qs, { size: 14 }), disabled: !o.length || !$e, children: "Aktionen" }) }),
8365
+ /* @__PURE__ */ w.jsxs(Dt.Dropdown, { children: [
8366
+ ye && /* @__PURE__ */ w.jsx(Dt.Item, { leftSection: /* @__PURE__ */ w.jsx(Vs, { size: 14 }), onClick: () => ue(!0), disabled: o.length !== 1, children: "Bearbeiten" }),
8367
+ (P ?? []).map((ke, Ve) => /* @__PURE__ */ xr(Dt.Item, { ...ke.icon && {
8368
+ leftSection: ke.icon
8369
+ }, key: `custom_action_${Ve}`, onClick: () => ke.onClick(o) }, ke.label)),
8370
+ Se && /* @__PURE__ */ w.jsx(Dt.Item, { leftSection: /* @__PURE__ */ w.jsx(Hs, { size: 14 }), onClick: () => te(!0), color: "red", children: "Löschen" })
8371
+ ] })
8372
+ ] });
8373
+ })(), e[25] = P, e[26] = J, e[27] = U, e[28] = a, e[29] = o, e[30] = g, e[31] = _e) : _e = e[31];
8374
+ let Le;
8375
+ e[32] !== D || e[33] !== a || e[34] !== u ? (Le = a.find(Xd) && /* @__PURE__ */ w.jsx(pt, { onClick: () => Y(!0), disabled: u, children: D ?? "Erstellen" }), e[32] = D, e[33] = a, e[34] = u, e[35] = Le) : Le = e[35];
8376
+ let Oe;
8377
+ e[36] !== h || e[37] !== we || e[38] !== _e || e[39] !== Le ? (Oe = /* @__PURE__ */ w.jsxs(ft, { align: "center", gap: "xs", children: [
8375
8378
  we,
8376
8379
  _e,
8377
- Ne,
8380
+ Le,
8378
8381
  h
8379
- ] }), e[36] = h, e[37] = we, e[38] = _e, e[39] = Ne, e[40] = Pe) : Pe = e[40];
8382
+ ] }), e[36] = h, e[37] = we, e[38] = _e, e[39] = Le, e[40] = Oe) : Oe = e[40];
8380
8383
  let xe;
8381
- e[41] !== de || e[42] !== pe || e[43] !== Pe ? (xe = /* @__PURE__ */ w.jsxs(ht, { gap: "xs", justify: de, align: "center", children: [
8384
+ e[41] !== de || e[42] !== pe || e[43] !== Oe ? (xe = /* @__PURE__ */ w.jsxs(ft, { gap: "xs", justify: de, align: "center", children: [
8382
8385
  pe,
8383
- Pe
8384
- ] }), e[41] = de, e[42] = pe, e[43] = Pe, e[44] = xe) : xe = e[44];
8385
- let rt;
8386
- e[45] !== W || e[46] !== F || e[47] !== $ ? (rt = $ && $.length > 0 && /* @__PURE__ */ w.jsx(Cn, { value: W, onChange: F, mt: "md", children: /* @__PURE__ */ w.jsx(Cn.List, { children: $.map(Jd) }) }), e[45] = W, e[46] = F, e[47] = $, e[48] = rt) : rt = e[48];
8387
- let Me;
8388
- e[49] !== m ? (Me = m && /* @__PURE__ */ w.jsx(jr, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ w.jsx(Qs, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), e[49] = m, e[50] = Me) : Me = e[50];
8386
+ Oe
8387
+ ] }), e[41] = de, e[42] = pe, e[43] = Oe, e[44] = xe) : xe = e[44];
8388
+ let nt;
8389
+ e[45] !== W || e[46] !== F || e[47] !== $ ? (nt = $ && $.length > 0 && /* @__PURE__ */ w.jsx(Cn, { value: W, onChange: F, mt: "md", children: /* @__PURE__ */ w.jsx(Cn.List, { children: $.map(Jd) }) }), e[45] = W, e[46] = F, e[47] = $, e[48] = nt) : nt = e[48];
8390
+ let Ae;
8391
+ e[49] !== m ? (Ae = m && /* @__PURE__ */ w.jsx(jr, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ w.jsx(Qs, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), e[49] = m, e[50] = Ae) : Ae = e[50];
8389
8392
  let Ue;
8390
8393
  e[51] !== u || e[52] !== f ? (Ue = (u || f) && /* @__PURE__ */ w.jsxs(Bn, { my: "md", children: [
8391
8394
  /* @__PURE__ */ w.jsx(jt, { height: 40 }),
8392
8395
  Array(5).fill(0).map(Kd)
8393
8396
  ] }), e[51] = u, e[52] = f, e[53] = Ue) : Ue = e[53];
8394
- let Le;
8395
- e[54] !== a || e[55] !== m || e[56] !== u || e[57] !== f || e[58] !== j || e[59] !== A || e[60] !== y || e[61] !== I || e[62] !== ee || e[63] !== o || e[64] !== g || e[65] !== L || e[66] !== N || e[67] !== ne || e[68] !== oe || e[69] !== se ? (Le = !u && !f && /* @__PURE__ */ w.jsx($d, { my: "md", striped: !0, minHeight: 150, fetching: m, records: I, sortStatus: oe, onSortStatusChange: ne, ...g && {
8397
+ let Ie;
8398
+ e[54] !== a || e[55] !== m || e[56] !== u || e[57] !== f || e[58] !== j || e[59] !== A || e[60] !== y || e[61] !== I || e[62] !== ee || e[63] !== o || e[64] !== g || e[65] !== L || e[66] !== N || e[67] !== ne || e[68] !== oe || e[69] !== se ? (Ie = !u && !f && /* @__PURE__ */ w.jsx($d, { my: "md", striped: !0, minHeight: 150, fetching: m, records: I, sortStatus: oe, onSortStatusChange: ne, ...g && {
8396
8399
  selectedRecords: o,
8397
8400
  onSelectedRecordsChange: l
8398
8401
  }, ...y && I.length && {
@@ -8416,50 +8419,50 @@ function Hd(t) {
8416
8419
  expanded: ee.expanded
8417
8420
  }
8418
8421
  }
8419
- }, columns: a.map(Zd), noRecordsText: "Keine Einträge gefunden" }), e[54] = a, e[55] = m, e[56] = u, e[57] = f, e[58] = j, e[59] = A, e[60] = y, e[61] = I, e[62] = ee, e[63] = o, e[64] = g, e[65] = L, e[66] = N, e[67] = ne, e[68] = oe, e[69] = se, e[70] = Le) : Le = e[70];
8420
- let ut;
8421
- e[71] === Symbol.for("react.memo_cache_sentinel") ? (ut = () => {
8422
+ }, columns: a.map(Zd), noRecordsText: "Keine Einträge gefunden" }), e[54] = a, e[55] = m, e[56] = u, e[57] = f, e[58] = j, e[59] = A, e[60] = y, e[61] = I, e[62] = ee, e[63] = o, e[64] = g, e[65] = L, e[66] = N, e[67] = ne, e[68] = oe, e[69] = se, e[70] = Ie) : Ie = e[70];
8423
+ let dt;
8424
+ e[71] === Symbol.for("react.memo_cache_sentinel") ? (dt = () => {
8422
8425
  ue(!1), l([]);
8423
- }, e[71] = ut) : ut = e[71];
8426
+ }, e[71] = dt) : dt = e[71];
8424
8427
  const _t = r ?? "Bearbeiten";
8425
- let Ae;
8426
- e[72] !== d || e[73] !== a || e[74] !== n || e[75] !== o[0] || e[76] !== o.length || e[77] !== C ? (Ae = o.length > 0 && /* @__PURE__ */ w.jsx(Nd, { fields: a.filter(Qd), queryKey: n, apiPath: d, id: o[0].id, onClose: () => {
8428
+ let Ee;
8429
+ e[72] !== d || e[73] !== a || e[74] !== n || e[75] !== o[0] || e[76] !== o.length || e[77] !== C ? (Ee = o.length > 0 && /* @__PURE__ */ w.jsx(Nd, { fields: a.filter(Qd), queryKey: n, apiPath: d, id: o[0].id, onClose: () => {
8427
8430
  ue(!1), l([]);
8428
- }, steps: C }), e[72] = d, e[73] = a, e[74] = n, e[75] = o[0], e[76] = o.length, e[77] = C, e[78] = Ae) : Ae = e[78];
8429
- let nt;
8430
- e[79] !== _t || e[80] !== Ae || e[81] !== ae ? (nt = /* @__PURE__ */ w.jsx(un, { opened: ae, onClose: ut, title: _t, children: Ae }), e[79] = _t, e[80] = Ae, e[81] = ae, e[82] = nt) : nt = e[82];
8431
+ }, steps: C }), e[72] = d, e[73] = a, e[74] = n, e[75] = o[0], e[76] = o.length, e[77] = C, e[78] = Ee) : Ee = e[78];
8431
8432
  let ot;
8432
- e[83] !== d || e[84] !== he || e[85] !== n || e[86] !== o || e[87] !== r ? (ot = o.length > 0 && /* @__PURE__ */ w.jsx(un, { opened: he, onClose: () => {
8433
+ e[79] !== _t || e[80] !== Ee || e[81] !== ae ? (ot = /* @__PURE__ */ w.jsx(un, { opened: ae, onClose: dt, title: _t, children: Ee }), e[79] = _t, e[80] = Ee, e[81] = ae, e[82] = ot) : ot = e[82];
8434
+ let it;
8435
+ e[83] !== d || e[84] !== he || e[85] !== n || e[86] !== o || e[87] !== r ? (it = o.length > 0 && /* @__PURE__ */ w.jsx(un, { opened: he, onClose: () => {
8433
8436
  te(!1), l([]);
8434
8437
  }, title: r ?? "Löschen", children: /* @__PURE__ */ w.jsx(Wd, { onClose: () => {
8435
8438
  te(!1), l([]);
8436
- }, queryKey: n, apiPath: d, selectedRecords: o }) }), e[83] = d, e[84] = he, e[85] = n, e[86] = o, e[87] = r, e[88] = ot) : ot = e[88];
8437
- let it;
8438
- e[89] === Symbol.for("react.memo_cache_sentinel") ? (it = () => {
8439
- Y(!1);
8440
- }, e[89] = it) : it = e[89];
8441
- const dt = r ?? "Anlegen";
8439
+ }, queryKey: n, apiPath: d, selectedRecords: o }) }), e[83] = d, e[84] = he, e[85] = n, e[86] = o, e[87] = r, e[88] = it) : it = e[88];
8442
8440
  let st;
8443
- e[90] === Symbol.for("react.memo_cache_sentinel") ? (st = () => {
8441
+ e[89] === Symbol.for("react.memo_cache_sentinel") ? (st = () => {
8442
+ Y(!1);
8443
+ }, e[89] = st) : st = e[89];
8444
+ const ht = r ?? "Anlegen";
8445
+ let at;
8446
+ e[90] === Symbol.for("react.memo_cache_sentinel") ? (at = () => {
8444
8447
  Y(!1);
8445
- }, e[90] = st) : st = e[90];
8448
+ }, e[90] = at) : at = e[90];
8446
8449
  let qe;
8447
8450
  e[91] !== a ? (qe = a.filter(Gd), e[91] = a, e[92] = qe) : qe = e[92];
8448
- let Ze;
8449
- e[93] !== d || e[94] !== n || e[95] !== C || e[96] !== qe ? (Ze = /* @__PURE__ */ w.jsx(Lu, { queryKey: n, apiPath: d, onClose: st, fields: qe, steps: C }), e[93] = d, e[94] = n, e[95] = C, e[96] = qe, e[97] = Ze) : Ze = e[97];
8450
- let at;
8451
- e[98] !== T || e[99] !== dt || e[100] !== Ze ? (at = /* @__PURE__ */ w.jsx(un, { opened: T, onClose: it, title: dt, children: Ze }), e[98] = T, e[99] = dt, e[100] = Ze, e[101] = at) : at = e[101];
8451
+ let Ke;
8452
+ e[93] !== d || e[94] !== n || e[95] !== C || e[96] !== qe ? (Ke = /* @__PURE__ */ w.jsx(Lu, { queryKey: n, apiPath: d, onClose: at, fields: qe, steps: C }), e[93] = d, e[94] = n, e[95] = C, e[96] = qe, e[97] = Ke) : Ke = e[97];
8453
+ let lt;
8454
+ e[98] !== T || e[99] !== ht || e[100] !== Ke ? (lt = /* @__PURE__ */ w.jsx(un, { opened: T, onClose: st, title: ht, children: Ke }), e[98] = T, e[99] = ht, e[100] = Ke, e[101] = lt) : lt = e[101];
8452
8455
  let me;
8453
- return e[102] !== xe || e[103] !== rt || e[104] !== Me || e[105] !== Ue || e[106] !== Le || e[107] !== nt || e[108] !== ot || e[109] !== at ? (me = /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
8456
+ return e[102] !== xe || e[103] !== nt || e[104] !== Ae || e[105] !== Ue || e[106] !== Ie || e[107] !== ot || e[108] !== it || e[109] !== lt ? (me = /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
8454
8457
  xe,
8455
- rt,
8456
- Me,
8457
- Ue,
8458
- Le,
8459
8458
  nt,
8459
+ Ae,
8460
+ Ue,
8461
+ Ie,
8460
8462
  ot,
8461
- at
8462
- ] }), e[102] = xe, e[103] = rt, e[104] = Me, e[105] = Ue, e[106] = Le, e[107] = nt, e[108] = ot, e[109] = at, e[110] = me) : me = e[110], me;
8463
+ it,
8464
+ lt
8465
+ ] }), e[102] = xe, e[103] = nt, e[104] = Ae, e[105] = Ue, e[106] = Ie, e[107] = ot, e[108] = it, e[109] = lt, e[110] = me) : me = e[110], me;
8463
8466
  }
8464
8467
  function Gd(t) {
8465
8468
  return t.create;
@@ -8497,7 +8500,7 @@ function oh(t) {
8497
8500
  return e != null;
8498
8501
  }
8499
8502
  function hh(t) {
8500
- const e = tt.c(5), {
8503
+ const e = rt.c(5), {
8501
8504
  queryClient: r
8502
8505
  } = Ot();
8503
8506
  let n;