schedulant 2.0.9-fixed.2 → 2.0.9-fixed.3

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.
@@ -64,7 +64,7 @@ const de = {
64
64
  const e = document.getElementById("schedulant-view-harness"), n = document.getElementById("schedulant-datagrid-body"), s = document.getElementById("schedulant-timeline-head"), i = n ? n.getBoundingClientRect().height : 0, r = s ? s.getBoundingClientRect().height : 0, o = i + r + He, l = t - o > 0 ? o : t;
65
65
  e && (e.style.height = w(l));
66
66
  const c = () => {
67
- const m = n ? n.getBoundingClientRect().height : 0, f = s ? s.getBoundingClientRect().height : 0, h = m + f + He, u = t - h > 0 ? h : t;
67
+ const m = n ? n.getBoundingClientRect().height : 0, g = s ? s.getBoundingClientRect().height : 0, h = m + g + He, u = t - h > 0 ? h : t;
68
68
  e && (e.style.height = w(u));
69
69
  }, d = new ResizeObserver(() => {
70
70
  c();
@@ -77,38 +77,38 @@ const de = {
77
77
  N(() => {
78
78
  const i = t.current, r = e.current, o = n.current, l = s.current;
79
79
  if (!i || !r || !o || !l) return;
80
- const c = [], d = (m, f, h, u) => {
81
- m.addEventListener(f, h, u), c.push(() => m.removeEventListener(f, h));
80
+ const c = [], d = (m, g, h, u) => {
81
+ m.addEventListener(g, h, u), c.push(() => m.removeEventListener(g, h));
82
82
  };
83
83
  return d(r, "scroll", () => {
84
84
  i.scrollTop = r.scrollTop, l.scrollLeft = r.scrollLeft;
85
85
  }), d(i, "scroll", () => {
86
86
  o.scrollLeft = i.scrollLeft;
87
87
  }), d(i, "wheel", ((m) => {
88
- let f = !1;
88
+ let g = !1;
89
89
  if (m.deltaY !== 0) {
90
90
  const h = r.scrollHeight - r.clientHeight, u = Math.max(0, Math.min(h, r.scrollTop + m.deltaY));
91
- r.scrollTop = u, i.scrollTop = u, f = !0;
91
+ r.scrollTop = u, i.scrollTop = u, g = !0;
92
92
  }
93
- if (f && m.deltaX !== 0) {
93
+ if (g && m.deltaX !== 0) {
94
94
  const h = i.scrollWidth - i.clientWidth, u = Math.max(0, Math.min(h, i.scrollLeft + m.deltaX));
95
95
  i.scrollLeft = u, o.scrollLeft = u;
96
96
  } else if (m.deltaX !== 0) {
97
97
  const h = i.scrollWidth - i.clientWidth;
98
98
  o.scrollLeft = Math.max(0, Math.min(h, i.scrollLeft + m.deltaX));
99
99
  }
100
- f && m.preventDefault();
100
+ g && m.preventDefault();
101
101
  }), { passive: !1 }), d(r, "wheel", ((m) => {
102
- let f = !1;
102
+ let g = !1;
103
103
  if (m.deltaY !== 0) {
104
104
  const h = r.scrollHeight - r.clientHeight, u = Math.max(0, Math.min(h, r.scrollTop + m.deltaY));
105
- r.scrollTop = u, i.scrollTop = u, f = !0;
105
+ r.scrollTop = u, i.scrollTop = u, g = !0;
106
106
  }
107
107
  if (m.deltaX !== 0) {
108
108
  const h = r.scrollWidth - r.clientWidth, u = Math.max(0, Math.min(h, r.scrollLeft + m.deltaX));
109
- r.scrollLeft = u, l.scrollLeft = u, f = !0;
109
+ r.scrollLeft = u, l.scrollLeft = u, g = !0;
110
110
  }
111
- f && m.preventDefault();
111
+ g && m.preventDefault();
112
112
  }), { passive: !1 }), () => c.forEach((m) => m());
113
113
  }, [t, e, n, s]);
114
114
  }, Jt = (t, e) => {
@@ -291,20 +291,20 @@ class le {
291
291
  return (typeof s == "number" ? s : 0) - (typeof i == "number" ? i : 0);
292
292
  }
293
293
  static createTree(e, n, s, i) {
294
- const r = "undefined", o = e.map((u) => new tn(u)), l = new Map(Object.entries(j(n, (u) => u.getResourceId()))), c = o.reduce((u, A) => u.set(A.getId(), A), /* @__PURE__ */ new Map()), d = new Map(Object.entries(j(s, (u) => u.getResourceId()))), m = new Map(Object.entries(j(i, (u) => u.getResourceId()))), f = [{ parentId: r, depth: 0 }], h = new Map(Object.entries(j(o, (u) => u.getParentId().getOrElse(r))));
295
- for (; f.length > 0; ) {
296
- const u = f.pop();
294
+ const r = "undefined", o = e.map((u) => new tn(u)), l = new Map(Object.entries(j(n, (u) => u.getResourceId()))), c = o.reduce((u, A) => u.set(A.getId(), A), /* @__PURE__ */ new Map()), d = new Map(Object.entries(j(s, (u) => u.getResourceId()))), m = new Map(Object.entries(j(i, (u) => u.getResourceId()))), g = [{ parentId: r, depth: 0 }], h = new Map(Object.entries(j(o, (u) => u.getParentId().getOrElse(r))));
295
+ for (; g.length > 0; ) {
296
+ const u = g.pop();
297
297
  if (u) {
298
- const { parentId: A, depth: p } = u, S = h.get(A);
299
- S && S.sort(le.compare).forEach((b) => {
300
- const g = b.getId();
301
- b.setDepth(p), b.setParent(c.get(A)), b.setChildren(h.get(g) || []);
302
- const y = l.get(g) || [];
298
+ const { parentId: A, depth: p } = u, v = h.get(A);
299
+ v && v.sort(le.compare).forEach((b) => {
300
+ const f = b.getId();
301
+ b.setDepth(p), b.setParent(c.get(A)), b.setChildren(h.get(f) || []);
302
+ const y = l.get(f) || [];
303
303
  y.forEach((D) => D.setResourceApi(b)), b.setEventApis(y);
304
- const v = d.get(g) || [];
305
- v.forEach((D) => D.setResourceApi(b)), b.setMilestoneApis(v);
306
- const M = m.get(g) || [];
307
- M.forEach((D) => D.setResourceApi(b)), b.setCheckpointApis(M), f.push({ parentId: g, depth: p + 1 });
304
+ const S = d.get(f) || [];
305
+ S.forEach((D) => D.setResourceApi(b)), b.setMilestoneApis(S);
306
+ const M = m.get(f) || [];
307
+ M.forEach((D) => D.setResourceApi(b)), b.setCheckpointApis(M), g.push({ parentId: f, depth: p + 1 });
308
308
  });
309
309
  }
310
310
  }
@@ -430,21 +430,21 @@ class K {
430
430
  for (; s.isSameOrBefore(n, "day"); ) {
431
431
  const m = s.startOf("year").format("YYYY-MM-DD");
432
432
  i.years[m] = i.years[m] || [], i.years[m].push(s.clone()), d.has(m) || d.set(m, d.size);
433
- const f = s.startOf("quarter").format("YYYY-MM-DD");
434
- i.quarters[f] = i.quarters[f] || [], i.quarters[f].push(s.clone()), c.has(f) || c.set(f, c.size);
433
+ const g = s.startOf("quarter").format("YYYY-MM-DD");
434
+ i.quarters[g] = i.quarters[g] || [], i.quarters[g].push(s.clone()), c.has(g) || c.set(g, c.size);
435
435
  const h = s.startOf("month").format("YYYY-MM-DD");
436
436
  i.months[h] = i.months[h] || [], i.months[h].push(s.clone()), l.has(h) || l.set(h, l.size);
437
437
  const u = s.startOf("week").format("YYYY-MM-DD");
438
438
  i.weeks[u] = i.weeks[u] || [], i.weeks[u].push(s.clone()), o.has(u) || o.set(u, o.size), i.days.push(s.clone()), this.dayPositionCache.set(s.format("YYYY-MM-DD"), r), r++, s = s.add(1, "day");
439
439
  }
440
- return o.forEach((m, f) => {
441
- this.weekPositionCache.set(f, m);
442
- }), l.forEach((m, f) => {
443
- this.monthPositionCache.set(f, m);
444
- }), c.forEach((m, f) => {
445
- this.quarterPositionCache.set(f, m);
446
- }), d.forEach((m, f) => {
447
- this.yearPositionCache.set(f, m);
440
+ return o.forEach((m, g) => {
441
+ this.weekPositionCache.set(g, m);
442
+ }), l.forEach((m, g) => {
443
+ this.monthPositionCache.set(g, m);
444
+ }), c.forEach((m, g) => {
445
+ this.quarterPositionCache.set(g, m);
446
+ }), d.forEach((m, g) => {
447
+ this.yearPositionCache.set(g, m);
448
448
  }), i;
449
449
  }
450
450
  constructor(e, n) {
@@ -844,25 +844,25 @@ const on = (t, e, n) => {
844
844
  u ? u.addEventListener("mousemove", o) : console.error("scheduleEl", u);
845
845
  }, [o, e]), d = C((h) => {
846
846
  h.preventDefault();
847
- const u = s.current, A = i(), p = r(), S = A.firstElementChild, b = p.firstElementChild, g = S?.children, y = b?.children;
848
- if (g && y) {
849
- const v = g[u], M = y[u], D = h.clientX - v.getBoundingClientRect().left, T = h.clientX - M.getBoundingClientRect().left;
850
- v.style.width = w(D), M.style.width = w(T);
847
+ const u = s.current, A = i(), p = r(), v = A.firstElementChild, b = p.firstElementChild, f = v?.children, y = b?.children;
848
+ if (f && y) {
849
+ const S = f[u], M = y[u], D = h.clientX - S.getBoundingClientRect().left, T = h.clientX - M.getBoundingClientRect().left;
850
+ S.style.width = w(D), M.style.width = w(T);
851
851
  }
852
852
  }, [r, i, s]), m = C((h) => {
853
853
  h.preventDefault(), s.current = -1;
854
854
  const u = i(), A = r();
855
855
  u.removeEventListener("mousemove", d), A.removeEventListener("mousemove", d);
856
- }, [s, i, r, d]), f = C((h) => (u) => {
856
+ }, [s, i, r, d]), g = C((h) => (u) => {
857
857
  u.preventDefault();
858
858
  const A = h.current?.parentElement, p = h.current?.parentElement?.parentElement;
859
859
  if (p) {
860
- let S = p.getElementsByTagName("td");
861
- S.length === 0 && (S = p.getElementsByTagName("th"));
862
- for (let y = 0; y < S.length; y++)
863
- S[y] === A && (s.current = y);
864
- const b = i(), g = r();
865
- b.addEventListener("mousemove", d), g.addEventListener("mousemove", d);
860
+ let v = p.getElementsByTagName("td");
861
+ v.length === 0 && (v = p.getElementsByTagName("th"));
862
+ for (let y = 0; y < v.length; y++)
863
+ v[y] === A && (s.current = y);
864
+ const b = i(), f = r();
865
+ b.addEventListener("mousemove", d), f.addEventListener("mousemove", d);
866
866
  } else
867
867
  console.error("trElement", p);
868
868
  }, [i, r, d, s]);
@@ -870,7 +870,7 @@ const on = (t, e, n) => {
870
870
  datagridResizerMouseUp: l,
871
871
  datagridResizerMouseDown: c,
872
872
  datagridCellResizerMouseUp: m,
873
- datagridCellResizerMouseDownFunc: f
873
+ datagridCellResizerMouseDownFunc: g
874
874
  };
875
875
  }, an = (t) => {
876
876
  const e = k(null);
@@ -982,9 +982,9 @@ function hn(t, e, n) {
982
982
  if (t.shiftKey && G) {
983
983
  const c = e.indexOf(G), d = e.indexOf(r);
984
984
  if (c !== -1 && d !== -1) {
985
- const m = Math.min(c, d), f = Math.max(c, d);
985
+ const m = Math.min(c, d), g = Math.max(c, d);
986
986
  o || L.clear();
987
- for (let h = m; h <= f; h++)
987
+ for (let h = m; h <= g; h++)
988
988
  L.add(e[h]);
989
989
  }
990
990
  } else o ? (L.has(r) ? L.delete(r) : L.add(r), G = r) : (L.clear(), L.add(r), G = r);
@@ -1019,8 +1019,8 @@ function mn(t, e, n) {
1019
1019
  };
1020
1020
  }
1021
1021
  const gn = (t) => {
1022
- const { dispatch: e } = Te(), n = k(null), i = t.schedulantApi.getScheduleView().getTimelineView().calculateLaneHeight(t.resourceApi), r = C((y, v) => {
1023
- const M = v.getResource();
1022
+ const { dispatch: e } = Te(), n = k(null), i = t.schedulantApi.getScheduleView().getTimelineView().calculateLaneHeight(t.resourceApi), r = C((y, S) => {
1023
+ const M = S.getResource();
1024
1024
  if (Object.keys(M).includes(y)) {
1025
1025
  const I = M[y];
1026
1026
  if (typeof I == "string")
@@ -1033,14 +1033,14 @@ const gn = (t) => {
1033
1033
  return "";
1034
1034
  }, []);
1035
1035
  cn(n, t.resourceAreaColumn, t.schedulantApi, t.resourceApi);
1036
- const o = t.resourceApi.getId(), l = !t.isDraggable || !t.showPlusSquare, { attributes: c, listeners: d, setNodeRef: m, isDragging: f } = It({
1036
+ const o = t.resourceApi.getId(), l = !t.isDraggable || !t.showPlusSquare, { attributes: c, listeners: d, setNodeRef: m, isDragging: g } = It({
1037
1037
  id: o,
1038
1038
  disabled: l,
1039
1039
  transition: null
1040
1040
  }), h = t.overId === o && t.activeId !== o, u = () => {
1041
1041
  const y = ["schedulant-datagrid-cell", "schedulant-resource"];
1042
- return mt().has(o) && y.push("schedulant-resource-selected"), t.isDraggable && f && y.push("schedulant-resource-dragging"), t.isDraggable && h && t.dropPosition && y.push(`schedulant-resource-drop-${t.dropPosition}`), y.join(" ");
1043
- }, [A, p] = re(!1), [S, b] = re({}), g = C((y) => {
1042
+ return mt().has(o) && y.push("schedulant-resource-selected"), t.isDraggable && g && y.push("schedulant-resource-dragging"), t.isDraggable && h && t.dropPosition && y.push(`schedulant-resource-drop-${t.dropPosition}`), y.join(" ");
1043
+ }, [A, p] = re(!1), [v, b] = re({}), f = C((y) => {
1044
1044
  y && b(mn(t.schedulantApi, t.resourceApi, t.resourceAreaColumn)), p(y);
1045
1045
  }, [t.schedulantApi, t.resourceApi, t.resourceAreaColumn]);
1046
1046
  return /* @__PURE__ */ a(
@@ -1057,8 +1057,8 @@ const gn = (t) => {
1057
1057
  destroyOnHidden: !0,
1058
1058
  trigger: ["contextMenu"],
1059
1059
  open: A,
1060
- onOpenChange: g,
1061
- menu: S,
1060
+ onOpenChange: f,
1061
+ menu: v,
1062
1062
  children: /* @__PURE__ */ O(
1063
1063
  "div",
1064
1064
  {
@@ -1072,7 +1072,7 @@ const gn = (t) => {
1072
1072
  {
1073
1073
  className: "schedulant-datagrid-expander schedulant-datagrid-expander-placeholder",
1074
1074
  children: [
1075
- t.showIndentation && Array.from({ length: t.resourceApi.getDepth() }, (y, v) => /* @__PURE__ */ a("span", { className: "schedulant-icon" }, v + 1)),
1075
+ t.showIndentation && Array.from({ length: t.resourceApi.getDepth() }, (y, S) => /* @__PURE__ */ a("span", { className: "schedulant-icon" }, S + 1)),
1076
1076
  /* @__PURE__ */ a("span", { className: "schedulant-icon", children: t.collapseIds.some((y) => y === t.resourceApi.getId()) ? /* @__PURE__ */ a(
1077
1077
  xt,
1078
1078
  {
@@ -1106,7 +1106,7 @@ const gn = (t) => {
1106
1106
  )
1107
1107
  }
1108
1108
  );
1109
- }, fn = (t) => /* @__PURE__ */ a("colgroup", { children: t.resourceAreaColumns.map((e) => /* @__PURE__ */ a("col", { style: { minWidth: Qt } }, e.field)) }), pn = () => /* @__PURE__ */ a("div", { className: "schedulant-timeline-lane" }), yn = (t, e, n) => {
1109
+ }, fn = (t) => /* @__PURE__ */ a("colgroup", { children: t.resourceAreaColumns.map((e) => /* @__PURE__ */ a("col", { style: { minWidth: Qt } }, e.field)) }), pn = (t, e, n) => {
1110
1110
  const s = n.getStart(), i = n.getEnd(), r = i.isBefore(E(), "day"), o = s.isAfter(E(), "day"), l = s.isSameOrBefore(E(), "day") && (i.isAfter(E(), "day") || i.isSame(E(), "day"));
1111
1111
  return N(() => {
1112
1112
  const c = t.current;
@@ -1131,7 +1131,7 @@ const gn = (t) => {
1131
1131
  }, [t, e, n, r, o, l]), { isPast: r, isFuture: o, isProcess: l };
1132
1132
  };
1133
1133
  var se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1134
- function vn(t) {
1134
+ function yn(t) {
1135
1135
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1136
1136
  }
1137
1137
  var ue, Ve;
@@ -1145,7 +1145,7 @@ function xe() {
1145
1145
  return ue = t, ue;
1146
1146
  }
1147
1147
  var he, Fe;
1148
- function Sn() {
1148
+ function vn() {
1149
1149
  if (Fe) return he;
1150
1150
  Fe = 1;
1151
1151
  var t = typeof se == "object" && se && se.Object === Object && se;
@@ -1155,11 +1155,11 @@ var me, Be;
1155
1155
  function gt() {
1156
1156
  if (Be) return me;
1157
1157
  Be = 1;
1158
- var t = Sn(), e = typeof self == "object" && self && self.Object === Object && self, n = t || e || Function("return this")();
1158
+ var t = vn(), e = typeof self == "object" && self && self.Object === Object && self, n = t || e || Function("return this")();
1159
1159
  return me = n, me;
1160
1160
  }
1161
1161
  var ge, qe;
1162
- function An() {
1162
+ function Sn() {
1163
1163
  if (qe) return ge;
1164
1164
  qe = 1;
1165
1165
  var t = gt(), e = function() {
@@ -1168,7 +1168,7 @@ function An() {
1168
1168
  return ge = e, ge;
1169
1169
  }
1170
1170
  var fe, Ue;
1171
- function bn() {
1171
+ function An() {
1172
1172
  if (Ue) return fe;
1173
1173
  Ue = 1;
1174
1174
  var t = /\s/;
@@ -1180,10 +1180,10 @@ function bn() {
1180
1180
  return fe = e, fe;
1181
1181
  }
1182
1182
  var pe, je;
1183
- function Mn() {
1183
+ function bn() {
1184
1184
  if (je) return pe;
1185
1185
  je = 1;
1186
- var t = bn(), e = /^\s+/;
1186
+ var t = An(), e = /^\s+/;
1187
1187
  function n(s) {
1188
1188
  return s && s.slice(0, t(s) + 1).replace(e, "");
1189
1189
  }
@@ -1197,7 +1197,7 @@ function ft() {
1197
1197
  return ye = e, ye;
1198
1198
  }
1199
1199
  var ve, Ge;
1200
- function wn() {
1200
+ function Mn() {
1201
1201
  if (Ge) return ve;
1202
1202
  Ge = 1;
1203
1203
  var t = ft(), e = Object.prototype, n = e.hasOwnProperty, s = e.toString, i = t ? t.toStringTag : void 0;
@@ -1214,7 +1214,7 @@ function wn() {
1214
1214
  return ve = r, ve;
1215
1215
  }
1216
1216
  var Se, Xe;
1217
- function En() {
1217
+ function wn() {
1218
1218
  if (Xe) return Se;
1219
1219
  Xe = 1;
1220
1220
  var t = Object.prototype, e = t.toString;
@@ -1224,17 +1224,17 @@ function En() {
1224
1224
  return Se = n, Se;
1225
1225
  }
1226
1226
  var Ae, Qe;
1227
- function Cn() {
1227
+ function En() {
1228
1228
  if (Qe) return Ae;
1229
1229
  Qe = 1;
1230
- var t = ft(), e = wn(), n = En(), s = "[object Null]", i = "[object Undefined]", r = t ? t.toStringTag : void 0;
1230
+ var t = ft(), e = Mn(), n = wn(), s = "[object Null]", i = "[object Undefined]", r = t ? t.toStringTag : void 0;
1231
1231
  function o(l) {
1232
1232
  return l == null ? l === void 0 ? i : s : r && r in Object(l) ? e(l) : n(l);
1233
1233
  }
1234
1234
  return Ae = o, Ae;
1235
1235
  }
1236
1236
  var be, Ke;
1237
- function Dn() {
1237
+ function Cn() {
1238
1238
  if (Ke) return be;
1239
1239
  Ke = 1;
1240
1240
  function t(e) {
@@ -1243,20 +1243,20 @@ function Dn() {
1243
1243
  return be = t, be;
1244
1244
  }
1245
1245
  var Me, Ze;
1246
- function Tn() {
1246
+ function Dn() {
1247
1247
  if (Ze) return Me;
1248
1248
  Ze = 1;
1249
- var t = Cn(), e = Dn(), n = "[object Symbol]";
1249
+ var t = En(), e = Cn(), n = "[object Symbol]";
1250
1250
  function s(i) {
1251
1251
  return typeof i == "symbol" || e(i) && t(i) == n;
1252
1252
  }
1253
1253
  return Me = s, Me;
1254
1254
  }
1255
1255
  var we, Je;
1256
- function Rn() {
1256
+ function Tn() {
1257
1257
  if (Je) return we;
1258
1258
  Je = 1;
1259
- var t = Mn(), e = xe(), n = Tn(), s = NaN, i = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, o = /^0o[0-7]+$/i, l = parseInt;
1259
+ var t = bn(), e = xe(), n = Dn(), s = NaN, i = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, o = /^0o[0-7]+$/i, l = parseInt;
1260
1260
  function c(d) {
1261
1261
  if (typeof d == "number")
1262
1262
  return d;
@@ -1269,35 +1269,35 @@ function Rn() {
1269
1269
  if (typeof d != "string")
1270
1270
  return d === 0 ? d : +d;
1271
1271
  d = t(d);
1272
- var f = r.test(d);
1273
- return f || o.test(d) ? l(d.slice(2), f ? 2 : 8) : i.test(d) ? s : +d;
1272
+ var g = r.test(d);
1273
+ return g || o.test(d) ? l(d.slice(2), g ? 2 : 8) : i.test(d) ? s : +d;
1274
1274
  }
1275
1275
  return we = c, we;
1276
1276
  }
1277
1277
  var Ee, et;
1278
- function kn() {
1278
+ function Rn() {
1279
1279
  if (et) return Ee;
1280
1280
  et = 1;
1281
- var t = xe(), e = An(), n = Rn(), s = "Expected a function", i = Math.max, r = Math.min;
1281
+ var t = xe(), e = Sn(), n = Tn(), s = "Expected a function", i = Math.max, r = Math.min;
1282
1282
  function o(l, c, d) {
1283
- var m, f, h, u, A, p, S = 0, b = !1, g = !1, y = !0;
1283
+ var m, g, h, u, A, p, v = 0, b = !1, f = !1, y = !0;
1284
1284
  if (typeof l != "function")
1285
1285
  throw new TypeError(s);
1286
- c = n(c) || 0, t(d) && (b = !!d.leading, g = "maxWait" in d, h = g ? i(n(d.maxWait) || 0, c) : h, y = "trailing" in d ? !!d.trailing : y);
1287
- function v(R) {
1288
- var V = m, q = f;
1289
- return m = f = void 0, S = R, u = l.apply(q, V), u;
1286
+ c = n(c) || 0, t(d) && (b = !!d.leading, f = "maxWait" in d, h = f ? i(n(d.maxWait) || 0, c) : h, y = "trailing" in d ? !!d.trailing : y);
1287
+ function S(R) {
1288
+ var V = m, q = g;
1289
+ return m = g = void 0, v = R, u = l.apply(q, V), u;
1290
1290
  }
1291
1291
  function M(R) {
1292
- return S = R, A = setTimeout(I, c), b ? v(R) : u;
1292
+ return v = R, A = setTimeout(I, c), b ? S(R) : u;
1293
1293
  }
1294
1294
  function D(R) {
1295
- var V = R - p, q = R - S, Q = c - V;
1296
- return g ? r(Q, h - q) : Q;
1295
+ var V = R - p, q = R - v, Q = c - V;
1296
+ return f ? r(Q, h - q) : Q;
1297
1297
  }
1298
1298
  function T(R) {
1299
- var V = R - p, q = R - S;
1300
- return p === void 0 || V >= c || V < 0 || g && q >= h;
1299
+ var V = R - p, q = R - v;
1300
+ return p === void 0 || V >= c || V < 0 || f && q >= h;
1301
1301
  }
1302
1302
  function I() {
1303
1303
  var R = e();
@@ -1306,21 +1306,21 @@ function kn() {
1306
1306
  A = setTimeout(I, D(R));
1307
1307
  }
1308
1308
  function P(R) {
1309
- return A = void 0, y && m ? v(R) : (m = f = void 0, u);
1309
+ return A = void 0, y && m ? S(R) : (m = g = void 0, u);
1310
1310
  }
1311
1311
  function Y() {
1312
- A !== void 0 && clearTimeout(A), S = 0, m = p = f = A = void 0;
1312
+ A !== void 0 && clearTimeout(A), v = 0, m = p = g = A = void 0;
1313
1313
  }
1314
1314
  function z() {
1315
1315
  return A === void 0 ? u : P(e());
1316
1316
  }
1317
1317
  function _() {
1318
1318
  var R = e(), V = T(R);
1319
- if (m = arguments, f = this, p = R, V) {
1319
+ if (m = arguments, g = this, p = R, V) {
1320
1320
  if (A === void 0)
1321
1321
  return M(p);
1322
- if (g)
1323
- return clearTimeout(A), A = setTimeout(I, c), v(p);
1322
+ if (f)
1323
+ return clearTimeout(A), A = setTimeout(I, c), S(p);
1324
1324
  }
1325
1325
  return A === void 0 && (A = setTimeout(I, c)), u;
1326
1326
  }
@@ -1329,10 +1329,10 @@ function kn() {
1329
1329
  return Ee = o, Ee;
1330
1330
  }
1331
1331
  var Ce, tt;
1332
- function xn() {
1332
+ function kn() {
1333
1333
  if (tt) return Ce;
1334
1334
  tt = 1;
1335
- var t = kn(), e = xe(), n = "Expected a function";
1335
+ var t = Rn(), e = xe(), n = "Expected a function";
1336
1336
  function s(i, r, o) {
1337
1337
  var l = !0, c = !0;
1338
1338
  if (typeof i != "function")
@@ -1345,131 +1345,128 @@ function xn() {
1345
1345
  }
1346
1346
  return Ce = s, Ce;
1347
1347
  }
1348
- var On = xn();
1349
- const pt = /* @__PURE__ */ vn(On), In = (t) => {
1350
- const e = F(() => "schedulant-timeline-event-position-guide", []), n = k(0), s = k(0), i = k(0), r = k(!1), o = k("none"), l = C((g) => {
1351
- const M = t.schedulantApi.getScheduleView().getTimelineView(), D = g - n.current, T = t.timelineWidth, I = M.getTotalSlots(), P = Math.round(D / T * I), Y = P / I * T;
1348
+ var xn = kn();
1349
+ const pt = /* @__PURE__ */ yn(xn), On = (t) => {
1350
+ const e = F(() => "schedulant-timeline-event-position-guide", []), n = k(0), s = k(0), i = k(0), r = k(!1), o = k("none"), l = C((f) => {
1351
+ const M = t.schedulantApi.getScheduleView().getTimelineView(), D = f - n.current, T = t.timelineWidth, I = M.getTotalSlots(), P = Math.round(D / T * I), Y = P / I * T;
1352
1352
  return { moveSlots: P, distance: Y, deltaX: D };
1353
- }, [t]), c = C((g) => {
1354
- const y = t.schedulantApi.getScheduleView().getTimelineView(), v = g.style.left, M = g.style.right, D = y.calculateLaneHeight(t.resourceApi), T = document.createElement("div");
1353
+ }, [t]), c = C((f) => {
1354
+ const y = t.schedulantApi.getScheduleView().getTimelineView(), S = f.style.left, M = f.style.right, D = y.calculateLaneHeight(t.resourceApi), T = document.createElement("div");
1355
1355
  T.className = e, Object.assign(T.style, {
1356
1356
  position: "absolute",
1357
1357
  zIndex: 1,
1358
- left: v,
1358
+ left: S,
1359
1359
  right: M,
1360
1360
  height: w(D),
1361
1361
  backgroundColor: t.schedulantApi.getDragHintColor()
1362
- }), g.parentNode?.insertBefore(T, g);
1363
- }, [t, e]), d = C((g) => {
1364
- const y = g.previousElementSibling;
1365
- y?.className === e && g.parentElement?.removeChild(y);
1366
- }, [e]), m = C((g, y) => {
1367
- const v = g.previousElementSibling;
1368
- if (v && v.className === e) {
1362
+ }), f.parentNode?.insertBefore(T, f);
1363
+ }, [t, e]), d = C((f) => {
1364
+ const y = f.previousElementSibling;
1365
+ y?.className === e && f.parentElement?.removeChild(y);
1366
+ }, [e]), m = C((f, y) => {
1367
+ const S = f.previousElementSibling;
1368
+ if (S && S.className === e) {
1369
1369
  const M = o.current, { distance: D } = l(y);
1370
1370
  switch (M) {
1371
1371
  case "press_event": {
1372
- v.style.left = w(Math.max(s.current + D, 0)), v.style.right = w(i.current - D);
1372
+ S.style.left = w(Math.max(s.current + D, 0)), S.style.right = w(i.current - D);
1373
1373
  break;
1374
1374
  }
1375
1375
  case "press_event_left": {
1376
1376
  const T = Math.max(s.current + D, 0);
1377
- v.style.left = w(T);
1377
+ S.style.left = w(T);
1378
1378
  break;
1379
1379
  }
1380
1380
  case "press_event_right": {
1381
1381
  const T = i.current - D;
1382
- v.style.right = w(T);
1382
+ S.style.right = w(T);
1383
1383
  break;
1384
1384
  }
1385
1385
  }
1386
1386
  }
1387
- }, [l, e]), f = C((g, y) => {
1388
- const v = t.eventApi, M = t.schedulantApi, D = o.current, { moveSlots: T, distance: I } = l(y);
1387
+ }, [l, e]), g = C((f, y) => {
1388
+ const S = t.eventApi, M = t.schedulantApi, D = o.current, { moveSlots: T, distance: I } = l(y);
1389
1389
  switch (D) {
1390
1390
  case "press_event": {
1391
- g.style.left = w(Math.max(s.current + I, 0)), g.style.right = w(i.current - I);
1392
- const P = v.getStart().add(T, "day"), Y = v.getEnd().add(T, "day");
1391
+ f.style.left = w(Math.max(s.current + I, 0)), f.style.right = w(i.current - I);
1392
+ const P = S.getStart().add(T, "day"), Y = S.getEnd().add(T, "day");
1393
1393
  M.eventMove({
1394
- el: g,
1394
+ el: f,
1395
1395
  startDate: P,
1396
1396
  endDate: Y,
1397
- eventApi: v,
1397
+ eventApi: S,
1398
1398
  schedulantApi: M
1399
1399
  });
1400
1400
  break;
1401
1401
  }
1402
1402
  case "press_event_left": {
1403
1403
  const P = Math.max(s.current + I, 0);
1404
- g.style.left = w(P);
1405
- const Y = v.getStart().add(T, "day");
1404
+ f.style.left = w(P);
1405
+ const Y = S.getStart().add(T, "day");
1406
1406
  M.eventResizeStart({
1407
- el: g,
1407
+ el: f,
1408
1408
  date: Y,
1409
- eventApi: v,
1409
+ eventApi: S,
1410
1410
  schedulantApi: M
1411
1411
  });
1412
1412
  break;
1413
1413
  }
1414
1414
  case "press_event_right": {
1415
1415
  const P = i.current - I;
1416
- g.style.right = w(P);
1417
- const Y = v.getEnd().add(T, "day");
1416
+ f.style.right = w(P);
1417
+ const Y = S.getEnd().add(T, "day");
1418
1418
  M.eventResizeEnd({
1419
- el: g,
1419
+ el: f,
1420
1420
  date: Y,
1421
- eventApi: v,
1421
+ eventApi: S,
1422
1422
  schedulantApi: M
1423
1423
  });
1424
1424
  break;
1425
1425
  }
1426
1426
  }
1427
- }, [t, l]), h = C((g) => {
1428
- g.preventDefault();
1429
- const y = r.current, v = t.timelineEventHarnessRef.current;
1430
- if (y && v) {
1431
- const { deltaX: M } = l(g.clientX), D = s.current + M, T = i.current - M;
1427
+ }, [t, l]), h = C((f) => {
1428
+ f.preventDefault();
1429
+ const y = r.current, S = t.timelineEventHarnessRef.current;
1430
+ if (y && S) {
1431
+ const { deltaX: M } = l(f.clientX), D = s.current + M, T = i.current - M;
1432
1432
  switch (o.current) {
1433
1433
  case "press_event":
1434
- v.style.left = w(D), v.style.right = w(T);
1434
+ S.style.left = w(D), S.style.right = w(T);
1435
1435
  break;
1436
1436
  case "press_event_left":
1437
- v.style.left = w(D);
1437
+ S.style.left = w(D);
1438
1438
  break;
1439
1439
  case "press_event_right":
1440
- v.style.right = w(T);
1440
+ S.style.right = w(T);
1441
1441
  break;
1442
1442
  }
1443
- m(v, g.clientX);
1443
+ m(S, f.clientX);
1444
1444
  }
1445
1445
  }, [t.timelineEventHarnessRef, m, l]), u = F(
1446
1446
  () => pt(h, ht),
1447
1447
  [h]
1448
- ), A = C((g, y) => {
1449
- g.preventDefault();
1450
- const v = t.schedulantApi.getSchedulantElRef().current, M = t.timelineEventHarnessRef.current;
1451
- M && v ? (r.current = !0, o.current = y, n.current = g.clientX, s.current = oe(M.style.left), i.current = oe(M.style.right), c(M), v.addEventListener("mousemove", u)) : (console.error("scheduleEl", v), console.error("timelineEventHarness", M));
1452
- }, [t.schedulantApi, t.timelineEventHarnessRef, c, u]), p = C((g) => {
1453
- A(g, "press_event");
1454
- }, [A]), S = C((g) => {
1455
- A(g, "press_event_left");
1456
- }, [A]), b = C((g) => {
1457
- A(g, "press_event_right");
1448
+ ), A = C((f, y) => {
1449
+ f.preventDefault();
1450
+ const S = t.schedulantApi.getSchedulantElRef().current, M = t.timelineEventHarnessRef.current;
1451
+ M && S ? (r.current = !0, o.current = y, n.current = f.clientX, s.current = oe(M.style.left), i.current = oe(M.style.right), c(M), S.addEventListener("mousemove", u)) : (console.error("scheduleEl", S), console.error("timelineEventHarness", M));
1452
+ }, [t.schedulantApi, t.timelineEventHarnessRef, c, u]), p = C((f) => {
1453
+ A(f, "press_event");
1454
+ }, [A]), v = C((f) => {
1455
+ A(f, "press_event_left");
1456
+ }, [A]), b = C((f) => {
1457
+ A(f, "press_event_right");
1458
1458
  }, [A]);
1459
1459
  return N(() => {
1460
- const g = t.timelineEventHarnessRef.current, y = t.schedulantApi.getSchedulantElRef().current;
1461
- if (y && g) {
1462
- const v = g.parentElement?.parentElement;
1463
- if (v) {
1464
- const M = (D) => {
1465
- D.preventDefault(), r.current && !v.contains(D.relatedTarget) && (d(g), f(g, D.clientX), y.removeEventListener("mousemove", u), r.current = !1, o.current = "none");
1466
- };
1467
- return v.addEventListener("mouseup", M), v.addEventListener("mouseout", M), () => {
1468
- v.removeEventListener("mouseup", M), v.removeEventListener("mouseout", M), y.removeEventListener("mousemove", u), u.cancel();
1469
- };
1470
- }
1460
+ const f = t.timelineEventHarnessRef.current, y = t.schedulantApi.getSchedulantElRef().current;
1461
+ if (y && f) {
1462
+ const S = (M) => {
1463
+ M.preventDefault(), r.current && (d(f), g(f, M.clientX), y.removeEventListener("mousemove", u), r.current = !1, o.current = "none");
1464
+ };
1465
+ return document.addEventListener("mouseup", S), () => {
1466
+ document.removeEventListener("mouseup", S), y.removeEventListener("mousemove", u), u.cancel();
1467
+ };
1471
1468
  }
1472
- }, [u, t, d, f]), { handleMouseDown: p, leftHandleMouseDown: S, rightHandleMouseDown: b };
1469
+ }, [u, t, d, g]), { handleMouseDown: p, leftHandleMouseDown: v, rightHandleMouseDown: b };
1473
1470
  }, nt = (t) => /* @__PURE__ */ a(X, { component: () => /* @__PURE__ */ a(
1474
1471
  "svg",
1475
1472
  {
@@ -1515,8 +1512,8 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1515
1512
  }
1516
1513
  )
1517
1514
  }
1518
- ), ...t }), Pn = ae((t) => {
1519
- const e = k(null), n = k(null), s = t.schedulantApi.getTimelineApi(), i = t.schedulantApi.getScheduleView().getTimelineView(), r = t.eventApi.getTextColor().getOrElse("white"), o = t.eventApi.getBorderColor().getOrElse(t.eventApi.getColor()), l = t.eventApi.getBackgroundColor().getOrElse(t.eventApi.getColor()), c = i.calculateLaneHeight(t.resourceApi), d = i.calculateEventHeight(), m = (c - d) / 2 - 1, { isPast: f, isFuture: h, isProcess: u } = yn(e, t.schedulantApi, t.eventApi), { handleMouseDown: A, leftHandleMouseDown: p, rightHandleMouseDown: S } = In({
1515
+ ), ...t }), In = ae((t) => {
1516
+ const e = k(null), n = k(null), s = t.schedulantApi.getTimelineApi(), i = t.schedulantApi.getScheduleView().getTimelineView(), r = t.eventApi.getTextColor().getOrElse("white"), o = t.eventApi.getBorderColor().getOrElse(t.eventApi.getColor()), l = t.eventApi.getBackgroundColor().getOrElse(t.eventApi.getColor()), c = i.calculateLaneHeight(t.resourceApi), d = i.calculateEventHeight(), m = (c - d) / 2 - 1, { isPast: g, isFuture: h, isProcess: u } = pn(e, t.schedulantApi, t.eventApi), { handleMouseDown: A, leftHandleMouseDown: p, rightHandleMouseDown: v } = On({
1520
1517
  timelineEventHarnessRef: n,
1521
1518
  timelineWidth: t.timelineWidth,
1522
1519
  eventApi: t.eventApi,
@@ -1538,12 +1535,12 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1538
1535
  menu: {
1539
1536
  items: t.schedulantApi.getEventContextMenuItems(),
1540
1537
  onClick: (b) => {
1541
- const { key: g, keyPath: y, domEvent: v } = b;
1538
+ const { key: f, keyPath: y, domEvent: S } = b;
1542
1539
  t.schedulantApi.onEventContextMenuClick({
1543
- key: g,
1540
+ key: f,
1544
1541
  keyPath: y,
1545
- domEvent: v,
1546
- isPast: f,
1542
+ domEvent: S,
1543
+ isPast: g,
1547
1544
  isFuture: h,
1548
1545
  isProcess: u,
1549
1546
  eventApi: t.eventApi,
@@ -1660,7 +1657,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1660
1657
  "div",
1661
1658
  {
1662
1659
  className: "schedulant-event-resize-handle",
1663
- onMouseDown: S,
1660
+ onMouseDown: v,
1664
1661
  style: { width: W, height: d, cursor: "ew-resize" },
1665
1662
  children: /* @__PURE__ */ a(st, { width: W, height: d, color: "#FFFFFF" })
1666
1663
  }
@@ -1674,7 +1671,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1674
1671
  )
1675
1672
  }
1676
1673
  ) });
1677
- }), Ln = (t, e, n) => {
1674
+ }), Pn = (t, e, n) => {
1678
1675
  const s = n.getTime(), i = s.isBefore(E(), "day"), r = s.isAfter(E(), "day"), o = s.isSame(E(), "day");
1679
1676
  return N(() => {
1680
1677
  const l = t.current;
@@ -1699,36 +1696,36 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1699
1696
  }, [e, n, t, i, r, o]), { isPast: i, isFuture: r, isProcess: o };
1700
1697
  }, yt = (t) => {
1701
1698
  const e = F(() => "schedulant-timeline-marker-position-guide", []), n = k(0), s = k(0), i = k(0), r = k(!1), o = C((p) => {
1702
- const S = p.style.left, b = p.style.right, g = t.schedulantApi.getScheduleView().getTimelineView(), y = t.milestoneApi?.getResourceApi() ?? t.checkpointApi?.getResourceApi(), v = g.calculateLaneHeight(y), M = document.createElement("div");
1699
+ const v = p.style.left, b = p.style.right, f = t.schedulantApi.getScheduleView().getTimelineView(), y = t.milestoneApi?.getResourceApi() ?? t.checkpointApi?.getResourceApi(), S = f.calculateLaneHeight(y), M = document.createElement("div");
1703
1700
  M.className = e, Object.assign(M.style, {
1704
1701
  position: "absolute",
1705
1702
  zIndex: 1,
1706
- left: S,
1703
+ left: v,
1707
1704
  right: b,
1708
- height: w(v),
1705
+ height: w(S),
1709
1706
  backgroundColor: t.schedulantApi.getDragHintColor()
1710
1707
  }), p.parentNode?.insertBefore(M, p);
1711
1708
  }, [t, e]), l = C((p) => {
1712
- const S = p.previousElementSibling;
1713
- S?.className === e && p.parentElement?.removeChild(S);
1709
+ const v = p.previousElementSibling;
1710
+ v?.className === e && p.parentElement?.removeChild(v);
1714
1711
  }, [e]), c = C((p) => {
1715
- const g = t.schedulantApi.getScheduleView().getTimelineView(), y = p - n.current, v = t.timelineWidth, M = g.getTotalSlots(), D = Math.round(y / v * M), T = D / M * t.timelineWidth;
1712
+ const f = t.schedulantApi.getScheduleView().getTimelineView(), y = p - n.current, S = t.timelineWidth, M = f.getTotalSlots(), D = Math.round(y / S * M), T = D / M * t.timelineWidth;
1716
1713
  return {
1717
1714
  moveSlots: D,
1718
1715
  distance: T,
1719
1716
  deltaX: y,
1720
- totalWidth: v,
1717
+ totalWidth: S,
1721
1718
  totalSlots: M
1722
1719
  };
1723
- }, [t]), d = C((p, S) => {
1720
+ }, [t]), d = C((p, v) => {
1724
1721
  const b = p.previousElementSibling;
1725
1722
  if (b && b.className === e) {
1726
- const { distance: g } = c(S);
1727
- b.style.left = w(Math.max(s.current + g, 0)), b.style.right = w(i.current - g);
1723
+ const { distance: f } = c(v);
1724
+ b.style.left = w(Math.max(s.current + f, 0)), b.style.right = w(i.current - f);
1728
1725
  }
1729
- }, [e, c]), m = C((p, S) => {
1730
- const { moveSlots: b, distance: g } = c(S);
1731
- if (p.style.left = w(Math.max(s.current + g, 0)), p.style.right = w(i.current - g), t.milestoneApi) {
1726
+ }, [e, c]), m = C((p, v) => {
1727
+ const { moveSlots: b, distance: f } = c(v);
1728
+ if (p.style.left = w(Math.max(s.current + f, 0)), p.style.right = w(i.current - f), t.milestoneApi) {
1732
1729
  const y = t.milestoneApi.getTime().add(b, "day");
1733
1730
  t.schedulantApi.milestoneMove({
1734
1731
  el: p,
@@ -1746,40 +1743,40 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1746
1743
  });
1747
1744
  }
1748
1745
  n.current = 0;
1749
- }, [t, c]), f = C((p) => {
1746
+ }, [t, c]), g = C((p) => {
1750
1747
  p.preventDefault();
1751
- const S = t.markerRef.current, b = r.current;
1752
- if (S && b) {
1753
- const g = p.clientX - n.current, y = s.current + g, v = i.current - g;
1754
- S.style.left = w(y), S.style.right = w(v), d(S, p.clientX);
1748
+ const v = t.markerRef.current, b = r.current;
1749
+ if (v && b) {
1750
+ const f = p.clientX - n.current, y = s.current + f, S = i.current - f;
1751
+ v.style.left = w(y), v.style.right = w(S), d(v, p.clientX);
1755
1752
  }
1756
1753
  }, [t.markerRef, d]), h = F(
1757
- () => pt(f, ht),
1758
- [f]
1754
+ () => pt(g, ht),
1755
+ [g]
1759
1756
  ), u = C((p) => {
1760
1757
  p.preventDefault();
1761
- const S = t.markerRef.current, b = r.current, g = t.schedulantApi.getSchedulantElRef().current;
1762
- b && g && S && (l(S), m(S, p.clientX), g.removeEventListener("mousemove", h), r.current = !1);
1758
+ const v = t.markerRef.current, b = r.current, f = t.schedulantApi.getSchedulantElRef().current;
1759
+ b && f && v && (l(v), m(v, p.clientX), f.removeEventListener("mousemove", h), r.current = !1);
1763
1760
  }, [h, t.markerRef, t.schedulantApi, l, m]), A = C((p) => {
1764
1761
  p.preventDefault();
1765
- const S = t.schedulantApi.getSchedulantElRef().current, b = t.markerRef.current;
1766
- S && b && (r.current = !0, n.current = p.clientX, s.current = oe(b.style.left), i.current = oe(b.style.right), o(b), S.addEventListener("mousemove", h));
1762
+ const v = t.schedulantApi.getSchedulantElRef().current, b = t.markerRef.current;
1763
+ v && b && (r.current = !0, n.current = p.clientX, s.current = oe(b.style.left), i.current = oe(b.style.right), o(b), v.addEventListener("mousemove", h));
1767
1764
  }, [o, h, t.markerRef, t.schedulantApi]);
1768
1765
  return N(() => {
1769
- const p = t.schedulantApi.getSchedulantElRef().current, S = t.markerRef.current;
1770
- if (p && S) {
1771
- const b = S.parentElement?.parentElement;
1766
+ const p = t.schedulantApi.getSchedulantElRef().current, v = t.markerRef.current;
1767
+ if (p && v) {
1768
+ const b = v.parentElement?.parentElement;
1772
1769
  if (b) {
1773
- const g = (y) => {
1774
- y.preventDefault(), r.current && !b.contains(y.relatedTarget) && (l(S), m(S, y.clientX), p.removeEventListener("mousemove", h), r.current = !1);
1770
+ const f = (y) => {
1771
+ y.preventDefault(), r.current && !b.contains(y.relatedTarget) && (l(v), m(v, y.clientX), p.removeEventListener("mousemove", h), r.current = !1);
1775
1772
  };
1776
- return b.addEventListener("mouseup", g), b.addEventListener("mouseout", g), () => {
1777
- b.removeEventListener("mouseup", g), b.removeEventListener("mouseout", g), p.removeEventListener("mousemove", h), h.cancel();
1773
+ return b.addEventListener("mouseup", f), b.addEventListener("mouseout", f), () => {
1774
+ b.removeEventListener("mouseup", f), b.removeEventListener("mouseout", f), p.removeEventListener("mousemove", h), h.cancel();
1778
1775
  };
1779
1776
  }
1780
1777
  }
1781
1778
  }, [h, t, l, m]), { handleMouseUp: u, handleMouseDown: A };
1782
- }, Nn = (t) => /* @__PURE__ */ a(X, { component: () => /* @__PURE__ */ O(
1779
+ }, Ln = (t) => /* @__PURE__ */ a(X, { component: () => /* @__PURE__ */ O(
1783
1780
  "svg",
1784
1781
  {
1785
1782
  className: "flag-icon",
@@ -1805,8 +1802,8 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1805
1802
  )
1806
1803
  ]
1807
1804
  }
1808
- ), ...t }), Yn = ae((t) => {
1809
- const e = k(null), n = k(null), s = t.schedulantApi.isEditable(), i = t.milestoneApi.getStatus(), o = t.schedulantApi.getScheduleView().getTimelineView().calculateLaneHeight(t.milestoneApi.getResourceApi()), l = o * $t * -1, { isPast: c, isFuture: d, isProcess: m } = Ln(e, t.schedulantApi, t.milestoneApi), f = t.milestoneApi.getColor().getOrElse(
1805
+ ), ...t }), Nn = ae((t) => {
1806
+ const e = k(null), n = k(null), s = t.schedulantApi.isEditable(), i = t.milestoneApi.getStatus(), o = t.schedulantApi.getScheduleView().getTimelineView().calculateLaneHeight(t.milestoneApi.getResourceApi()), l = o * $t * -1, { isPast: c, isFuture: d, isProcess: m } = Pn(e, t.schedulantApi, t.milestoneApi), g = t.milestoneApi.getColor().getOrElse(
1810
1807
  d ? "#1677ff" : m ? i === "Success" ? "#1677ff" : i === "Failure" ? "#f5222d" : "#faad14" : i === "Success" ? "#52c41a" : i === "Failure" ? "#f5222d" : "#faad14"
1811
1808
  ), { handleMouseUp: h, handleMouseDown: u } = yt({
1812
1809
  markerRef: n,
@@ -1829,10 +1826,10 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1829
1826
  menu: {
1830
1827
  items: t.schedulantApi.getMilestoneContextMenuItems(),
1831
1828
  onClick: (A) => {
1832
- const { key: p, keyPath: S, domEvent: b } = A;
1829
+ const { key: p, keyPath: v, domEvent: b } = A;
1833
1830
  t.schedulantApi.onMilestoneContextMenuClick({
1834
1831
  key: p,
1835
- keyPath: S,
1832
+ keyPath: v,
1836
1833
  domEvent: b,
1837
1834
  isPast: c,
1838
1835
  isFuture: d,
@@ -1846,14 +1843,14 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1846
1843
  "div",
1847
1844
  {
1848
1845
  className: `schedulant-timeline-milestone${m ? " schedulant-milestone-today" : ""}`,
1849
- style: m ? { "--milestone-glow-color": f } : void 0,
1846
+ style: m ? { "--milestone-glow-color": g } : void 0,
1850
1847
  ref: e,
1851
- children: /* @__PURE__ */ a("div", { className: "schedulant-milestone-main", children: /* @__PURE__ */ a(Nn, { width: o * ze, height: o * ze, color: f }) })
1848
+ children: /* @__PURE__ */ a("div", { className: "schedulant-milestone-main", children: /* @__PURE__ */ a(Ln, { width: o * ze, height: o * ze, color: g }) })
1852
1849
  }
1853
1850
  )
1854
1851
  }
1855
1852
  ) });
1856
- }), _n = (t, e, n) => {
1853
+ }), Yn = (t, e, n) => {
1857
1854
  const s = n.getTime(), i = s.isBefore(E(), "day"), r = s.isAfter(E(), "day"), o = s.isSame(E(), "day");
1858
1855
  return N(() => {
1859
1856
  const l = t.current;
@@ -1876,7 +1873,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1876
1873
  });
1877
1874
  };
1878
1875
  }, [e, n, t, i, r, o]), { isPast: i, isFuture: r, isProcess: o };
1879
- }, Wn = (t) => /* @__PURE__ */ a(X, { component: () => /* @__PURE__ */ O(
1876
+ }, _n = (t) => /* @__PURE__ */ a(X, { component: () => /* @__PURE__ */ O(
1880
1877
  "svg",
1881
1878
  {
1882
1879
  className: "droplet-icon",
@@ -1903,12 +1900,12 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1903
1900
  /* @__PURE__ */ a("path", { d: "M 517,116 A 154,154 0 1 1 517,424 A 154,154 0 1 1 517,116 Z", fill: t.color })
1904
1901
  ]
1905
1902
  }
1906
- ), ...t }), Hn = ae((t) => {
1903
+ ), ...t }), Wn = ae((t) => {
1907
1904
  const e = k(null), n = k(null), s = t.schedulantApi.isEditable(), i = t.checkpointApi.getColor().getOrElse("black"), r = t.schedulantApi.getScheduleView().getTimelineView(), o = r.calculateLaneHeight(t.checkpointApi.getResourceApi()), l = r.calculateEventHeight(), c = (o - l) / 2 + 2, {
1908
1905
  isPast: d,
1909
1906
  isFuture: m,
1910
- isProcess: f
1911
- } = _n(e, t.schedulantApi, t.checkpointApi), { handleMouseUp: h, handleMouseDown: u } = yt({
1907
+ isProcess: g
1908
+ } = Yn(e, t.schedulantApi, t.checkpointApi), { handleMouseUp: h, handleMouseDown: u } = yt({
1912
1909
  markerRef: n,
1913
1910
  timelineWidth: t.timelineWidth,
1914
1911
  schedulantApi: t.schedulantApi,
@@ -1937,20 +1934,20 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
1937
1934
  menu: {
1938
1935
  items: t.schedulantApi.getCheckpointContextMenuItems(),
1939
1936
  onClick: (A) => {
1940
- const { key: p, keyPath: S, domEvent: b } = A;
1937
+ const { key: p, keyPath: v, domEvent: b } = A;
1941
1938
  t.schedulantApi.onCheckpointContextMenuClick({
1942
1939
  key: p,
1943
- keyPath: S,
1940
+ keyPath: v,
1944
1941
  domEvent: b,
1945
1942
  isPast: d,
1946
1943
  isFuture: m,
1947
- isProcess: f,
1944
+ isProcess: g,
1948
1945
  checkpointApi: t.checkpointApi,
1949
1946
  schedulantApi: t.schedulantApi
1950
1947
  });
1951
1948
  }
1952
1949
  },
1953
- children: /* @__PURE__ */ a("div", { className: "schedulant-timeline-checkpoint", ref: e, children: /* @__PURE__ */ a("div", { className: "schedulant-checkpoint-main", children: /* @__PURE__ */ a(Wn, { width: l, height: l, color: i }) }) })
1950
+ children: /* @__PURE__ */ a("div", { className: "schedulant-timeline-checkpoint", ref: e, children: /* @__PURE__ */ a("div", { className: "schedulant-checkpoint-main", children: /* @__PURE__ */ a(_n, { width: l, height: l, color: i }) }) })
1954
1951
  }
1955
1952
  )
1956
1953
  }
@@ -1967,15 +1964,12 @@ class J {
1967
1964
  getTimelineApi() {
1968
1965
  return this.schedulantApi.getTimelineApi();
1969
1966
  }
1970
- renderLane() {
1971
- return /* @__PURE__ */ a(pn, {});
1972
- }
1973
1967
  renderEvents(e, n) {
1974
1968
  const s = this.schedulantApi.getTimelineApi(), i = e.getEventApis();
1975
1969
  return /* @__PURE__ */ a("div", { className: "schedulant-timeline-events schedulant-scrollgrid-sync-inner", children: i.filter((r) => !r.getStart().isAfter(s.getEnd()) && !r.getEnd().isBefore(s.getStart())).map((r) => {
1976
1970
  const o = this.calculatePosition(n, r.getStart(), r.getEnd());
1977
1971
  return /* @__PURE__ */ a(
1978
- Pn,
1972
+ In,
1979
1973
  {
1980
1974
  eventApi: r,
1981
1975
  position: o,
@@ -1992,7 +1986,7 @@ class J {
1992
1986
  return /* @__PURE__ */ a("div", { className: "schedulant-timeline-milestones schedulant-scrollgrid-sync-inner", children: i.filter((r) => (r.getTime().isAfter(s.getStart(), "day") || r.getTime().isSame(s.getStart(), "day")) && r.getTime().isSameOrBefore(s.getEnd(), "day")).map((r) => {
1993
1987
  const o = this.calculatePosition(n, r.getTime(), r.getTime());
1994
1988
  return /* @__PURE__ */ a(
1995
- Yn,
1989
+ Nn,
1996
1990
  {
1997
1991
  position: o,
1998
1992
  milestoneApi: r,
@@ -2008,7 +2002,7 @@ class J {
2008
2002
  return /* @__PURE__ */ a("div", { className: "schedulant-timeline-checkpoints schedulant-scrollgrid-sync-inner", children: i.filter((r) => (r.getTime().isAfter(s.getStart(), "day") || r.getTime().isSame(s.getStart(), "day")) && r.getTime().isSameOrBefore(s.getEnd(), "day")).map((r) => {
2009
2003
  const o = this.calculatePosition(n, r.getTime(), r.getTime());
2010
2004
  return /* @__PURE__ */ a(
2011
- Hn,
2005
+ Wn,
2012
2006
  {
2013
2007
  position: o,
2014
2008
  timelineWidth: n,
@@ -2029,7 +2023,7 @@ class J {
2029
2023
  const ee = (t) => {
2030
2024
  const { dates: e, minWidth: n } = t;
2031
2025
  return /* @__PURE__ */ a("colgroup", { children: e.map((s) => /* @__PURE__ */ a("col", { style: { minWidth: n } }, s.format("YYYY-MM-DD"))) });
2032
- }, zn = (t, e, n) => {
2026
+ }, Hn = (t, e, n) => {
2033
2027
  const s = n.isBefore(E(), "day"), i = n.isAfter(E(), "day"), r = n.isSame(E(), "day");
2034
2028
  N(() => {
2035
2029
  const o = t.current;
@@ -2056,7 +2050,7 @@ const ee = (t) => {
2056
2050
  }, [n, i, s, r, e, t]);
2057
2051
  }, te = ae((t) => {
2058
2052
  const e = k(null);
2059
- return zn(e, t.schedulantApi, t.date), /* @__PURE__ */ a(
2053
+ return Hn(e, t.schedulantApi, t.date), /* @__PURE__ */ a(
2060
2054
  "td",
2061
2055
  {
2062
2056
  ref: e,
@@ -2066,7 +2060,7 @@ const ee = (t) => {
2066
2060
  },
2067
2061
  t.date.format("YYYY-MM-DD")
2068
2062
  );
2069
- }), Vn = (t, e, n, s, i) => {
2063
+ }), zn = (t, e, n, s, i) => {
2070
2064
  const r = n.isBefore(E(), "day"), o = n.isAfter(E(), "day"), l = n.isSame(E(), "day");
2071
2065
  N(() => {
2072
2066
  const c = t.current;
@@ -2097,7 +2091,7 @@ const ee = (t) => {
2097
2091
  }, [n, o, r, l, s, e, i, t]);
2098
2092
  }, B = (t) => {
2099
2093
  const e = k(null);
2100
- return Vn(e, t.schedulantApi, t.date, t.level, t.timeText), /* @__PURE__ */ a(
2094
+ return zn(e, t.schedulantApi, t.date, t.level, t.timeText), /* @__PURE__ */ a(
2101
2095
  "th",
2102
2096
  {
2103
2097
  ref: e,
@@ -2116,7 +2110,7 @@ const ee = (t) => {
2116
2110
  t.date.format("YYYY-MM-DD")
2117
2111
  );
2118
2112
  };
2119
- class Fn extends J {
2113
+ class Vn extends J {
2120
2114
  renderColgroup() {
2121
2115
  const e = this.getSchedulantApi(), s = this.getTimelineApi().getDays(), i = e.getSlotMinWidth();
2122
2116
  return /* @__PURE__ */ a(ee, { dates: s, minWidth: i });
@@ -2199,7 +2193,7 @@ class Fn extends J {
2199
2193
  return { left: o, right: l };
2200
2194
  }
2201
2195
  }
2202
- class Bn extends J {
2196
+ class Fn extends J {
2203
2197
  getTotalSlots() {
2204
2198
  return this.getTimelineApi().getMonths().length;
2205
2199
  }
@@ -2252,11 +2246,11 @@ class Bn extends J {
2252
2246
  ] });
2253
2247
  }
2254
2248
  calculatePosition(e, n, s) {
2255
- const i = this.getTimelineApi(), r = i.getMonths(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.date() - 1, m = o / l.daysInMonth(), f = i.getMonthPosition(l) * o, h = n.isSameOrBefore(i.getStart(), "day") ? f : f + d * m, u = c.daysInMonth() - c.date(), A = o / c.daysInMonth(), p = (i.getMonthPosition(c) + 1) * o * -1, S = s.isBefore(i.getEnd(), "day") ? p + u * A : p;
2256
- return { left: h, right: S };
2249
+ const i = this.getTimelineApi(), r = i.getMonths(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.date() - 1, m = o / l.daysInMonth(), g = i.getMonthPosition(l) * o, h = n.isSameOrBefore(i.getStart(), "day") ? g : g + d * m, u = c.daysInMonth() - c.date(), A = o / c.daysInMonth(), p = (i.getMonthPosition(c) + 1) * o * -1, v = s.isBefore(i.getEnd(), "day") ? p + u * A : p;
2250
+ return { left: h, right: v };
2257
2251
  }
2258
2252
  }
2259
- class qn extends J {
2253
+ class Bn extends J {
2260
2254
  getTotalSlots() {
2261
2255
  return this.getTimelineApi().getQuarters().length;
2262
2256
  }
@@ -2309,11 +2303,11 @@ class qn extends J {
2309
2303
  ] });
2310
2304
  }
2311
2305
  calculatePosition(e, n, s) {
2312
- const i = this.getTimelineApi(), r = i.getQuarters(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.endOf("quarter").diff(l.startOf("quarter"), "day") + 1, m = n.diff(l.startOf("quarter"), "day"), f = o / d, h = m * f, u = i.getQuarterPosition(l) * o, A = n.isSameOrBefore(i.getStart(), "day") ? u : u + h, p = c.endOf("quarter").diff(c.startOf("quarter"), "day") + 1, S = c.endOf("quarter").diff(c, "day"), b = o / p, g = S * b, y = (i.getQuarterPosition(c) + 1) * o * -1, v = s.isBefore(i.getEnd(), "day") ? y + g : y;
2313
- return { left: A, right: v };
2306
+ const i = this.getTimelineApi(), r = i.getQuarters(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.endOf("quarter").diff(l.startOf("quarter"), "day") + 1, m = n.diff(l.startOf("quarter"), "day"), g = o / d, h = m * g, u = i.getQuarterPosition(l) * o, A = n.isSameOrBefore(i.getStart(), "day") ? u : u + h, p = c.endOf("quarter").diff(c.startOf("quarter"), "day") + 1, v = c.endOf("quarter").diff(c, "day"), b = o / p, f = v * b, y = (i.getQuarterPosition(c) + 1) * o * -1, S = s.isBefore(i.getEnd(), "day") ? y + f : y;
2307
+ return { left: A, right: S };
2314
2308
  }
2315
2309
  }
2316
- class Un extends J {
2310
+ class qn extends J {
2317
2311
  getTotalSlots() {
2318
2312
  return this.getTimelineApi().getWeeks().length;
2319
2313
  }
@@ -2351,11 +2345,11 @@ class Un extends J {
2351
2345
  )) }) });
2352
2346
  }
2353
2347
  calculatePosition(e, n, s) {
2354
- const i = this.getTimelineApi(), r = i.getWeeks(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = o / 7, m = l.day(), f = i.getWeekPosition(l) * o, h = n.isSameOrBefore(i.getStart(), "day") ? f : f + m * d, u = 6 - c.day(), A = (i.getWeekPosition(c) + 1) * o * -1, p = s.isBefore(i.getEnd(), "day") ? A + u * d : A;
2348
+ const i = this.getTimelineApi(), r = i.getWeeks(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = o / 7, m = l.day(), g = i.getWeekPosition(l) * o, h = n.isSameOrBefore(i.getStart(), "day") ? g : g + m * d, u = 6 - c.day(), A = (i.getWeekPosition(c) + 1) * o * -1, p = s.isBefore(i.getEnd(), "day") ? A + u * d : A;
2355
2349
  return { left: h, right: p };
2356
2350
  }
2357
2351
  }
2358
- class jn extends J {
2352
+ class Un extends J {
2359
2353
  getTotalSlots() {
2360
2354
  return this.getTimelineApi().getYears().length;
2361
2355
  }
@@ -2393,30 +2387,30 @@ class jn extends J {
2393
2387
  )) }) });
2394
2388
  }
2395
2389
  calculatePosition(e, n, s) {
2396
- const i = this.getTimelineApi(), r = i.getYears(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.endOf("year").diff(l.startOf("year"), "day") + 1, m = l.diff(l.startOf("year"), "day"), f = o / d, h = m * f, u = i.getYearPosition(l) * o, A = n.isSameOrBefore(i.getStart(), "day") ? u : u + h, p = c.endOf("year").diff(c.startOf("year"), "day") + 1, S = c.endOf("year").diff(c, "day"), b = o / p, g = S * b, y = (i.getYearPosition(c) + 1) * o * -1, v = s.isBefore(i.getEnd(), "day") ? y + g : y;
2397
- return { left: A, right: v };
2390
+ const i = this.getTimelineApi(), r = i.getYears(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.endOf("year").diff(l.startOf("year"), "day") + 1, m = l.diff(l.startOf("year"), "day"), g = o / d, h = m * g, u = i.getYearPosition(l) * o, A = n.isSameOrBefore(i.getStart(), "day") ? u : u + h, p = c.endOf("year").diff(c.startOf("year"), "day") + 1, v = c.endOf("year").diff(c, "day"), b = o / p, f = v * b, y = (i.getYearPosition(c) + 1) * o * -1, S = s.isBefore(i.getEnd(), "day") ? y + f : y;
2391
+ return { left: A, right: S };
2398
2392
  }
2399
2393
  }
2400
- class $n {
2394
+ class jn {
2401
2395
  schedulantApi;
2402
2396
  timelineView;
2403
2397
  schedulantElRef;
2404
2398
  constructor(e, n) {
2405
2399
  switch (this.schedulantElRef = n, this.schedulantApi = new rn(this, e), this.schedulantApi.getSchedulantViewType()) {
2406
2400
  case "Day":
2407
- this.timelineView = new Fn(this.schedulantApi);
2401
+ this.timelineView = new Vn(this.schedulantApi);
2408
2402
  break;
2409
2403
  case "Week":
2410
- this.timelineView = new Un(this.schedulantApi);
2404
+ this.timelineView = new qn(this.schedulantApi);
2411
2405
  break;
2412
2406
  case "Month":
2413
- this.timelineView = new Bn(this.schedulantApi);
2407
+ this.timelineView = new Fn(this.schedulantApi);
2414
2408
  break;
2415
2409
  case "Quarter":
2416
- this.timelineView = new qn(this.schedulantApi);
2410
+ this.timelineView = new Bn(this.schedulantApi);
2417
2411
  break;
2418
2412
  case "Year":
2419
- this.timelineView = new jn(this.schedulantApi);
2413
+ this.timelineView = new Un(this.schedulantApi);
2420
2414
  break;
2421
2415
  }
2422
2416
  }
@@ -2436,10 +2430,8 @@ class $n {
2436
2430
  "td",
2437
2431
  {
2438
2432
  "data-resource-id": c.getId(),
2439
- className: "schedulant-timeline-lane schedulant-resource",
2440
- children: /* @__PURE__ */ O("div", { className: "schedulant-timeline-lane-frame", style: { height: d }, children: [
2441
- this.timelineView.renderLane(),
2442
- /* @__PURE__ */ a("div", { className: "schedulant-timeline-lane-bg" }),
2433
+ className: "schedulant-resource",
2434
+ children: /* @__PURE__ */ O("div", { className: "schedulant-timeline-lane", style: { height: d }, children: [
2443
2435
  this.timelineView.renderEvents(c, i),
2444
2436
  this.timelineView.renderMilestones(c, i),
2445
2437
  this.timelineView.renderCheckpoints(c, i)
@@ -2498,14 +2490,14 @@ class $n {
2498
2490
  },
2499
2491
  u.field
2500
2492
  );
2501
- }), m = n.length > 0 ? n[0].start : 0, f = n.length > 0 ? s - n[n.length - 1].end : 0;
2493
+ }), m = n.length > 0 ? n[0].start : 0, g = n.length > 0 ? s - n[n.length - 1].end : 0;
2502
2494
  return /* @__PURE__ */ O("tbody", { children: [
2503
2495
  m > 0 && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: c.length, style: { height: m, padding: 0, border: "none" } }) }),
2504
2496
  n.map((h) => {
2505
2497
  const u = e[h.index];
2506
2498
  return /* @__PURE__ */ a("tr", { role: "row", children: d(u) }, u.getId());
2507
2499
  }),
2508
- f > 0 && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: c.length, style: { height: f, padding: 0, border: "none" } }) })
2500
+ g > 0 && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: c.length, style: { height: g, padding: 0, border: "none" } }) })
2509
2501
  ] });
2510
2502
  }
2511
2503
  getTimelineView() {
@@ -2518,21 +2510,21 @@ class $n {
2518
2510
  return this.schedulantElRef;
2519
2511
  }
2520
2512
  }
2521
- const Gn = (t) => {
2513
+ const $n = (t) => {
2522
2514
  const { schedulantView: e, cellResizerMouseUp: n, cellResizerMouseDownFunc: s } = t;
2523
2515
  return /* @__PURE__ */ O("table", { role: "presentation", className: "schedulant-datagrid-head schedulant-scrollgrid-sync-table", children: [
2524
2516
  e.renderResourceTableColgroup(),
2525
2517
  e.renderResourceLabel(n, s)
2526
2518
  ] });
2527
- }, Xn = (t) => /* @__PURE__ */ O("table", { "aria-hidden": !0, className: "schedulant-scrollgrid-sync-table", children: [
2519
+ }, Gn = (t) => /* @__PURE__ */ O("table", { "aria-hidden": !0, className: "schedulant-scrollgrid-sync-table", children: [
2528
2520
  t.schedulantView.renderTimelineTableColgroup(),
2529
2521
  t.schedulantView.renderTimelineHeaderTableSlots()
2530
2522
  ] });
2531
- function Qn(t, e) {
2523
+ function Xn(t, e) {
2532
2524
  const n = t - e.top, s = e.height;
2533
2525
  return n < s * Gt ? "before" : n > s * Xt ? "after" : "child";
2534
2526
  }
2535
- function Kn(t, e) {
2527
+ function Qn(t, e) {
2536
2528
  let n = e;
2537
2529
  for (; n; ) {
2538
2530
  if (n.getId() === t) return !0;
@@ -2541,49 +2533,49 @@ function Kn(t, e) {
2541
2533
  }
2542
2534
  return !1;
2543
2535
  }
2544
- const Zn = (t, e) => {
2536
+ const Kn = (t, e) => {
2545
2537
  const [n, s] = re({
2546
2538
  activeId: null,
2547
2539
  overId: null,
2548
2540
  dropPosition: null
2549
2541
  }), i = k(null), r = k(null), o = k(
2550
- new Map(t.map((f) => [f.getId(), f]))
2542
+ new Map(t.map((g) => [g.getId(), g]))
2551
2543
  );
2552
- o.current = new Map(t.map((f) => [f.getId(), f]));
2553
- const l = C((f) => {
2554
- i.current = null, r.current = null, un(String(f.active.id)), s({
2555
- activeId: f.active.id,
2544
+ o.current = new Map(t.map((g) => [g.getId(), g]));
2545
+ const l = C((g) => {
2546
+ i.current = null, r.current = null, un(String(g.active.id)), s({
2547
+ activeId: g.active.id,
2556
2548
  overId: null,
2557
2549
  dropPosition: null
2558
2550
  });
2559
- }, []), c = C((f) => {
2560
- const { active: h, over: u, activatorEvent: A, delta: p } = f;
2551
+ }, []), c = C((g) => {
2552
+ const { active: h, over: u, activatorEvent: A, delta: p } = g;
2561
2553
  if (!u || h.id === u.id) {
2562
2554
  r.current !== null && (r.current = null, i.current = null, s((y) => ({ ...y, overId: null, dropPosition: null })));
2563
2555
  return;
2564
2556
  }
2565
- const S = o.current.get(String(u.id));
2566
- if (!S || Kn(String(h.id), S)) {
2557
+ const v = o.current.get(String(u.id));
2558
+ if (!v || Qn(String(h.id), v)) {
2567
2559
  r.current !== null && (r.current = null, i.current = null, s((y) => ({ ...y, overId: null, dropPosition: null })));
2568
2560
  return;
2569
2561
  }
2570
- const b = A.clientY + p.y, g = Qn(b, {
2562
+ const b = A.clientY + p.y, f = Xn(b, {
2571
2563
  top: u.rect.top,
2572
2564
  height: u.rect.height
2573
2565
  });
2574
- (r.current !== u.id || i.current !== g) && (r.current = u.id, i.current = g, s((y) => ({
2566
+ (r.current !== u.id || i.current !== f) && (r.current = u.id, i.current = f, s((y) => ({
2575
2567
  ...y,
2576
2568
  overId: u.id,
2577
- dropPosition: g
2569
+ dropPosition: f
2578
2570
  })));
2579
- }, []), d = C((f) => {
2580
- const { active: h, over: u } = f, A = i.current, p = r.current;
2571
+ }, []), d = C((g) => {
2572
+ const { active: h, over: u } = g, A = i.current, p = r.current;
2581
2573
  if (u && h.id !== u.id && A && p) {
2582
- const S = document.querySelector(
2574
+ const v = document.querySelector(
2583
2575
  `[data-resource-id="${String(p)}"]`
2584
2576
  );
2585
2577
  e(
2586
- S || document.body,
2578
+ v || document.body,
2587
2579
  String(h.id),
2588
2580
  String(p),
2589
2581
  A
@@ -2600,11 +2592,11 @@ const Zn = (t, e) => {
2600
2592
  handleDragEnd: d,
2601
2593
  handleDragCancel: m
2602
2594
  };
2603
- }, Jn = ({ transform: t, activatorEvent: e }) => e ? {
2595
+ }, Zn = ({ transform: t, activatorEvent: e }) => e ? {
2604
2596
  ...t,
2605
2597
  x: t.x + 20,
2606
2598
  y: t.y + 20
2607
- } : t, es = (t) => {
2599
+ } : t, Jn = (t) => {
2608
2600
  const { schedulantView: e, virtualizer: n, visibleResources: s, collapseIds: i, cellResizerMouseUp: r, cellResizerMouseDownFunc: o } = t, l = e.getScheduleApi(), c = l.getFlatMapResourceApis(), d = C(async (M, D, T, I) => {
2609
2601
  const P = c.find((z) => z.getId() === D), Y = c.find((z) => z.getId() === T);
2610
2602
  if (P && Y) {
@@ -2618,22 +2610,22 @@ const Zn = (t, e) => {
2618
2610
  oldParentResourceApi: z.isDefined() ? z.get() : void 0
2619
2611
  });
2620
2612
  }
2621
- }, [l, c]), { dragState: m, handleDragStart: f, handleDragMove: h, handleDragEnd: u, handleDragCancel: A } = Zn(c, d), p = Nt(
2613
+ }, [l, c]), { dragState: m, handleDragStart: g, handleDragMove: h, handleDragEnd: u, handleDragCancel: A } = Kn(c, d), p = Nt(
2622
2614
  _e(Yt, { activationConstraint: { delay: 300, tolerance: 5 } }),
2623
2615
  _e(_t)
2624
- ), S = s.map((M) => M.getId()), b = l.isEditable(), g = n.getVirtualItems(), y = n.getTotalSize(), v = F(() => m.activeId ? c.find((M) => M.getId() === String(m.activeId)) ?? null : null, [m.activeId, c]);
2616
+ ), v = s.map((M) => M.getId()), b = l.isEditable(), f = n.getVirtualItems(), y = n.getTotalSize(), S = F(() => m.activeId ? c.find((M) => M.getId() === String(m.activeId)) ?? null : null, [m.activeId, c]);
2625
2617
  return /* @__PURE__ */ O(
2626
2618
  Wt,
2627
2619
  {
2628
2620
  sensors: p,
2629
2621
  collisionDetection: Ht,
2630
2622
  modifiers: [Vt],
2631
- onDragStart: f,
2623
+ onDragStart: g,
2632
2624
  onDragMove: h,
2633
2625
  onDragEnd: u,
2634
2626
  onDragCancel: A,
2635
2627
  children: [
2636
- /* @__PURE__ */ a(Pt, { items: S, strategy: Lt, children: /* @__PURE__ */ O(
2628
+ /* @__PURE__ */ a(Pt, { items: v, strategy: Lt, children: /* @__PURE__ */ O(
2637
2629
  "table",
2638
2630
  {
2639
2631
  role: "presentation",
@@ -2641,21 +2633,21 @@ const Zn = (t, e) => {
2641
2633
  className: "schedulant-datagrid-body schedulant-scrollgrid-sync-table",
2642
2634
  children: [
2643
2635
  e.renderResourceTableColgroup(),
2644
- e.renderResourceLane(s, g, y, i, r, o, {
2636
+ e.renderResourceLane(s, f, y, i, r, o, {
2645
2637
  isDraggable: b,
2646
2638
  dragState: m
2647
2639
  })
2648
2640
  ]
2649
2641
  }
2650
2642
  ) }),
2651
- /* @__PURE__ */ a(zt, { dropAnimation: null, modifiers: [Jn], children: v ? /* @__PURE__ */ a("div", { className: "schedulant-drag-overlay", children: v.getTitle() }) : null })
2643
+ /* @__PURE__ */ a(zt, { dropAnimation: null, modifiers: [Zn], children: S ? /* @__PURE__ */ a("div", { className: "schedulant-drag-overlay", children: S.getTitle() }) : null })
2652
2644
  ]
2653
2645
  }
2654
2646
  );
2655
- }, ts = (t) => /* @__PURE__ */ a("div", { id: "schedulant-timeline-slots", className: "schedulant-timeline-slots", children: /* @__PURE__ */ O("table", { "aria-hidden": !0, children: [
2647
+ }, es = (t) => /* @__PURE__ */ a("div", { id: "schedulant-timeline-slots", className: "schedulant-timeline-slots", children: /* @__PURE__ */ O("table", { "aria-hidden": !0, children: [
2656
2648
  t.schedulantView.renderTimelineTableColgroup(),
2657
2649
  t.schedulantView.renderTimelineBodyTableSlots()
2658
- ] }) }), ns = () => {
2650
+ ] }) }), ts = () => {
2659
2651
  const t = C(() => {
2660
2652
  const l = document.getElementsByClassName("schedulant-timeline-head").item(0).getElementsByTagName("table").item(0)?.offsetWidth;
2661
2653
  return l || 0;
@@ -2681,8 +2673,8 @@ const Zn = (t, e) => {
2681
2673
  window.removeEventListener("resize", r), c?.disconnect();
2682
2674
  };
2683
2675
  }, [t, s.resourceAreaWidth]), e;
2684
- }, ss = (t) => {
2685
- const e = ns(), n = t.virtualizer.getVirtualItems(), s = t.virtualizer.getTotalSize();
2676
+ }, ns = (t) => {
2677
+ const e = ts(), n = t.virtualizer.getVirtualItems(), s = t.virtualizer.getTotalSize();
2686
2678
  return /* @__PURE__ */ a(
2687
2679
  "table",
2688
2680
  {
@@ -2692,7 +2684,7 @@ const Zn = (t, e) => {
2692
2684
  children: t.schedulantView.renderTimelineDrawingBoardTable(t.visibleResources, n, s, e)
2693
2685
  }
2694
2686
  );
2695
- }, is = (t, e) => {
2687
+ }, ss = (t, e) => {
2696
2688
  N(() => {
2697
2689
  const n = t.current, s = e.getScheduleApi();
2698
2690
  if (n)
@@ -2713,16 +2705,16 @@ function $(t, e, n) {
2713
2705
  var l, c, d;
2714
2706
  let m;
2715
2707
  n.key && ((l = n.debug) != null && l.call(n)) && (m = Date.now());
2716
- const f = t();
2717
- if (!(f.length !== s.length || f.some((A, p) => s[p] !== A)))
2708
+ const g = t();
2709
+ if (!(g.length !== s.length || g.some((A, p) => s[p] !== A)))
2718
2710
  return i;
2719
- s = f;
2711
+ s = g;
2720
2712
  let u;
2721
- if (n.key && ((c = n.debug) != null && c.call(n)) && (u = Date.now()), i = e(...f), n.key && ((d = n.debug) != null && d.call(n))) {
2722
- const A = Math.round((Date.now() - m) * 100) / 100, p = Math.round((Date.now() - u) * 100) / 100, S = p / 16, b = (g, y) => {
2723
- for (g = String(g); g.length < y; )
2724
- g = " " + g;
2725
- return g;
2713
+ if (n.key && ((c = n.debug) != null && c.call(n)) && (u = Date.now()), i = e(...g), n.key && ((d = n.debug) != null && d.call(n))) {
2714
+ const A = Math.round((Date.now() - m) * 100) / 100, p = Math.round((Date.now() - u) * 100) / 100, v = p / 16, b = (f, y) => {
2715
+ for (f = String(f); f.length < y; )
2716
+ f = " " + f;
2717
+ return f;
2726
2718
  };
2727
2719
  console.info(
2728
2720
  `%c⏱ ${b(p, 5)} /${b(A, 5)} ms`,
@@ -2731,7 +2723,7 @@ function $(t, e, n) {
2731
2723
  font-weight: bold;
2732
2724
  color: hsl(${Math.max(
2733
2725
  0,
2734
- Math.min(120 - 120 * S, 120)
2726
+ Math.min(120 - 120 * v, 120)
2735
2727
  )}deg 100% 31%);`,
2736
2728
  n?.key
2737
2729
  );
@@ -2747,7 +2739,7 @@ function rt(t, e) {
2747
2739
  throw new Error("Unexpected undefined");
2748
2740
  return t;
2749
2741
  }
2750
- const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
2742
+ const is = (t, e) => Math.abs(t - e) < 1.01, rs = (t, e, n) => {
2751
2743
  let s;
2752
2744
  return function(...i) {
2753
2745
  t.clearTimeout(s), s = t.setTimeout(() => e.apply(this, i), n);
@@ -2755,12 +2747,12 @@ const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
2755
2747
  }, ot = (t) => {
2756
2748
  const { offsetWidth: e, offsetHeight: n } = t;
2757
2749
  return { width: e, height: n };
2758
- }, ls = (t) => t, as = (t) => {
2750
+ }, os = (t) => t, ls = (t) => {
2759
2751
  const e = Math.max(t.startIndex - t.overscan, 0), n = Math.min(t.endIndex + t.overscan, t.count - 1), s = [];
2760
2752
  for (let i = e; i <= n; i++)
2761
2753
  s.push(i);
2762
2754
  return s;
2763
- }, cs = (t, e) => {
2755
+ }, as = (t, e) => {
2764
2756
  const n = t.scrollElement;
2765
2757
  if (!n)
2766
2758
  return;
@@ -2793,7 +2785,7 @@ const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
2793
2785
  };
2794
2786
  }, lt = {
2795
2787
  passive: !0
2796
- }, at = typeof window > "u" ? !0 : "onscrollend" in window, ds = (t, e) => {
2788
+ }, at = typeof window > "u" ? !0 : "onscrollend" in window, cs = (t, e) => {
2797
2789
  const n = t.scrollElement;
2798
2790
  if (!n)
2799
2791
  return;
@@ -2802,22 +2794,22 @@ const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
2802
2794
  return;
2803
2795
  let i = 0;
2804
2796
  const r = t.options.useScrollendEvent && at ? () => {
2805
- } : os(
2797
+ } : rs(
2806
2798
  s,
2807
2799
  () => {
2808
2800
  e(i, !1);
2809
2801
  },
2810
2802
  t.options.isScrollingResetDelay
2811
2803
  ), o = (m) => () => {
2812
- const { horizontal: f, isRtl: h } = t.options;
2813
- i = f ? n.scrollLeft * (h && -1 || 1) : n.scrollTop, r(), e(i, m);
2804
+ const { horizontal: g, isRtl: h } = t.options;
2805
+ i = g ? n.scrollLeft * (h && -1 || 1) : n.scrollTop, r(), e(i, m);
2814
2806
  }, l = o(!0), c = o(!1);
2815
2807
  n.addEventListener("scroll", l, lt);
2816
2808
  const d = t.options.useScrollendEvent && at;
2817
2809
  return d && n.addEventListener("scrollend", c, lt), () => {
2818
2810
  n.removeEventListener("scroll", l), d && n.removeEventListener("scrollend", c);
2819
2811
  };
2820
- }, us = (t, e, n) => {
2812
+ }, ds = (t, e, n) => {
2821
2813
  if (e?.borderBoxSize) {
2822
2814
  const s = e.borderBoxSize[0];
2823
2815
  if (s)
@@ -2826,7 +2818,7 @@ const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
2826
2818
  );
2827
2819
  }
2828
2820
  return t[n.options.horizontal ? "offsetWidth" : "offsetHeight"];
2829
- }, hs = (t, {
2821
+ }, us = (t, {
2830
2822
  adjustments: e = 0,
2831
2823
  behavior: n
2832
2824
  }, s) => {
@@ -2837,7 +2829,7 @@ const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
2837
2829
  behavior: n
2838
2830
  });
2839
2831
  };
2840
- class ms {
2832
+ class hs {
2841
2833
  constructor(e) {
2842
2834
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
2843
2835
  var n, s, i;
@@ -2878,11 +2870,11 @@ class ms {
2878
2870
  scrollPaddingStart: 0,
2879
2871
  scrollPaddingEnd: 0,
2880
2872
  horizontal: !1,
2881
- getItemKey: ls,
2882
- rangeExtractor: as,
2873
+ getItemKey: os,
2874
+ rangeExtractor: ls,
2883
2875
  onChange: () => {
2884
2876
  },
2885
- measureElement: us,
2877
+ measureElement: ds,
2886
2878
  initialRect: { width: 0, height: 0 },
2887
2879
  scrollMargin: 0,
2888
2880
  gap: 0,
@@ -2990,33 +2982,33 @@ class ms {
2990
2982
  }));
2991
2983
  const d = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
2992
2984
  this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === n && (this.lanesSettling = !1);
2993
- const m = this.measurementsCache.slice(0, d), f = new Array(l).fill(
2985
+ const m = this.measurementsCache.slice(0, d), g = new Array(l).fill(
2994
2986
  void 0
2995
2987
  );
2996
2988
  for (let h = 0; h < d; h++) {
2997
2989
  const u = m[h];
2998
- u && (f[u.lane] = h);
2990
+ u && (g[u.lane] = h);
2999
2991
  }
3000
2992
  for (let h = d; h < n; h++) {
3001
2993
  const u = r(h), A = this.laneAssignments.get(h);
3002
- let p, S;
2994
+ let p, v;
3003
2995
  if (A !== void 0 && this.options.lanes > 1) {
3004
2996
  p = A;
3005
- const v = f[p], M = v !== void 0 ? m[v] : void 0;
3006
- S = M ? M.end + this.options.gap : s + i;
2997
+ const S = g[p], M = S !== void 0 ? m[S] : void 0;
2998
+ v = M ? M.end + this.options.gap : s + i;
3007
2999
  } else {
3008
- const v = this.options.lanes === 1 ? m[h - 1] : this.getFurthestMeasurement(m, h);
3009
- S = v ? v.end + this.options.gap : s + i, p = v ? v.lane : h % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(h, p);
3000
+ const S = this.options.lanes === 1 ? m[h - 1] : this.getFurthestMeasurement(m, h);
3001
+ v = S ? S.end + this.options.gap : s + i, p = S ? S.lane : h % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(h, p);
3010
3002
  }
3011
- const b = c.get(u), g = typeof b == "number" ? b : this.options.estimateSize(h), y = S + g;
3003
+ const b = c.get(u), f = typeof b == "number" ? b : this.options.estimateSize(h), y = v + f;
3012
3004
  m[h] = {
3013
3005
  index: h,
3014
- start: S,
3015
- size: g,
3006
+ start: v,
3007
+ size: f,
3016
3008
  end: y,
3017
3009
  key: u,
3018
3010
  lane: p
3019
- }, f[p] = h;
3011
+ }, g[p] = h;
3020
3012
  }
3021
3013
  return this.measurementsCache = m, m;
3022
3014
  },
@@ -3031,7 +3023,7 @@ class ms {
3031
3023
  this.getScrollOffset(),
3032
3024
  this.options.lanes
3033
3025
  ],
3034
- (n, s, i, r) => this.range = n.length > 0 && s > 0 ? gs({
3026
+ (n, s, i, r) => this.range = n.length > 0 && s > 0 ? ms({
3035
3027
  measurements: n,
3036
3028
  outerSize: s,
3037
3029
  scrollOffset: i,
@@ -3252,7 +3244,7 @@ class ms {
3252
3244
  return;
3253
3245
  }
3254
3246
  const s = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, i = s ? s[0] : this.scrollState.lastTargetOffset, r = 1, o = i !== this.scrollState.lastTargetOffset;
3255
- if (!o && rs(i, this.getScrollOffset())) {
3247
+ if (!o && is(i, this.getScrollOffset())) {
3256
3248
  if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= r) {
3257
3249
  this.scrollState = null;
3258
3250
  return;
@@ -3277,7 +3269,7 @@ const vt = (t, e, n, s) => {
3277
3269
  }
3278
3270
  return t > 0 ? t - 1 : 0;
3279
3271
  };
3280
- function gs({
3272
+ function ms({
3281
3273
  measurements: t,
3282
3274
  outerSize: e,
3283
3275
  scrollOffset: n,
@@ -3314,7 +3306,7 @@ function gs({
3314
3306
  return { startIndex: o, endIndex: l };
3315
3307
  }
3316
3308
  const ct = typeof document < "u" ? ie.useLayoutEffect : ie.useEffect;
3317
- function fs({
3309
+ function gs({
3318
3310
  useFlushSync: t = !0,
3319
3311
  ...e
3320
3312
  }) {
@@ -3325,49 +3317,49 @@ function fs({
3325
3317
  t && o ? Ft(n) : n(), (l = e.onChange) == null || l.call(e, r, o);
3326
3318
  }
3327
3319
  }, [i] = ie.useState(
3328
- () => new ms(s)
3320
+ () => new hs(s)
3329
3321
  );
3330
3322
  return i.setOptions(s), ct(() => i._didMount(), []), ct(() => i._willUpdate()), i;
3331
3323
  }
3332
- function ps(t) {
3333
- return fs({
3334
- observeElementRect: cs,
3335
- observeElementOffset: ds,
3336
- scrollToFn: hs,
3324
+ function fs(t) {
3325
+ return gs({
3326
+ observeElementRect: as,
3327
+ observeElementOffset: cs,
3328
+ scrollToFn: us,
3337
3329
  ...t
3338
3330
  });
3339
3331
  }
3340
- function ys(t, e) {
3332
+ function ps(t, e) {
3341
3333
  const n = [], s = (i) => {
3342
3334
  n.push(i), !e.some((o) => o === i.getId()) && i.getChildren().length > 0 && i.getChildren().forEach((o) => s(o));
3343
3335
  };
3344
3336
  return t.forEach((i) => s(i)), n;
3345
3337
  }
3346
- const vs = (t, e, n, s) => {
3338
+ const ys = (t, e, n, s) => {
3347
3339
  const i = F(
3348
- () => ys(e, n),
3340
+ () => ps(e, n),
3349
3341
  [e, n]
3350
3342
  ), r = C(() => s, [s]);
3351
- return { virtualizer: ps({
3343
+ return { virtualizer: fs({
3352
3344
  count: i.length,
3353
3345
  getScrollElement: () => t.current,
3354
3346
  estimateSize: r,
3355
3347
  overscan: 5
3356
3348
  }), visibleResources: i };
3357
- }, Ls = (t) => /* @__PURE__ */ a(Ut, { children: /* @__PURE__ */ a(Ss, { ...t }) }), Ss = (t) => {
3349
+ }, Ps = (t) => /* @__PURE__ */ a(Ut, { children: /* @__PURE__ */ a(vs, { ...t }) }), vs = (t) => {
3358
3350
  const { state: e, dispatch: n } = Te(), s = k(null), i = k(null), r = k(null), o = k(null), l = k(null), c = k(null), {
3359
3351
  start: d,
3360
3352
  end: m,
3361
- editable: f,
3353
+ editable: g,
3362
3354
  selectable: h,
3363
3355
  lineHeight: u,
3364
3356
  slotMinWidth: A,
3365
3357
  schedulantMaxHeight: p,
3366
- schedulantViewType: S,
3358
+ schedulantViewType: v,
3367
3359
  events: b,
3368
- resources: g,
3360
+ resources: f,
3369
3361
  milestones: y,
3370
- checkpoints: v,
3362
+ checkpoints: S,
3371
3363
  resourceAreaColumns: M,
3372
3364
  resourceAreaWidth: D,
3373
3365
  companyHolidays: T,
@@ -3376,21 +3368,21 @@ const vs = (t, e, n, s) => {
3376
3368
  dragHintColor: Y,
3377
3369
  selectionColor: z
3378
3370
  } = t, _ = F(
3379
- () => new $n(t, s),
3371
+ () => new jn(t, s),
3380
3372
  // eslint-disable-next-line react-hooks/exhaustive-deps
3381
3373
  [
3382
3374
  d,
3383
3375
  m,
3384
- f,
3376
+ g,
3385
3377
  h,
3386
3378
  u,
3387
3379
  A,
3388
3380
  p,
3389
- S,
3381
+ v,
3390
3382
  b,
3391
- g,
3383
+ f,
3392
3384
  y,
3393
- v,
3385
+ S,
3394
3386
  M,
3395
3387
  D,
3396
3388
  T,
@@ -3409,13 +3401,13 @@ const vs = (t, e, n, s) => {
3409
3401
  datagridResizerMouseDown: Q,
3410
3402
  datagridCellResizerMouseUp: Oe,
3411
3403
  datagridCellResizerMouseDownFunc: Ie
3412
- } = ln(n, s, c), { virtualizer: Pe, visibleResources: ne } = vs(
3404
+ } = ln(n, s, c), { virtualizer: Pe, visibleResources: ne } = ys(
3413
3405
  o,
3414
3406
  R.getResourceApis(),
3415
3407
  e.collapseIds,
3416
3408
  R.getLineHeight()
3417
3409
  );
3418
- Kt(t.schedulantMaxHeight), is(s, _), Jt(c, t.resourceAreaWidth), Zt(l, o, i, r);
3410
+ Kt(t.schedulantMaxHeight), ss(s, _), Jt(c, t.resourceAreaWidth), Zt(l, o, i, r);
3419
3411
  const ce = k(R.onResourceSelect());
3420
3412
  ce.current = R.onResourceSelect();
3421
3413
  const Le = C((U) => {
@@ -3444,7 +3436,7 @@ const vs = (t, e, n, s) => {
3444
3436
  className: "schedulant-scrollgrid-section schedulant-scrollgrid-section-head",
3445
3437
  children: [
3446
3438
  /* @__PURE__ */ a("th", { role: "presentation", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-harness", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-head-left", ref: i, children: /* @__PURE__ */ a(
3447
- Gn,
3439
+ $n,
3448
3440
  {
3449
3441
  schedulantView: _,
3450
3442
  cellResizerMouseUp: Oe,
@@ -3465,7 +3457,7 @@ const vs = (t, e, n, s) => {
3465
3457
  {
3466
3458
  id: "schedulant-timeline-head",
3467
3459
  className: "schedulant-timeline-head",
3468
- children: /* @__PURE__ */ a(Xn, { schedulantView: _ })
3460
+ children: /* @__PURE__ */ a(Gn, { schedulantView: _ })
3469
3461
  }
3470
3462
  ) }) }) })
3471
3463
  ]
@@ -3478,7 +3470,7 @@ const vs = (t, e, n, s) => {
3478
3470
  className: "schedulant-scrollgrid-section schedulant-scrollgrid-section-body",
3479
3471
  children: [
3480
3472
  /* @__PURE__ */ a("td", { role: "presentation", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-harness", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-body-left", ref: l, children: /* @__PURE__ */ a(
3481
- es,
3473
+ Jn,
3482
3474
  {
3483
3475
  schedulantView: _,
3484
3476
  virtualizer: Pe,
@@ -3498,9 +3490,9 @@ const vs = (t, e, n, s) => {
3498
3490
  }
3499
3491
  ),
3500
3492
  /* @__PURE__ */ a("td", { role: "presentation", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-harness", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-body-right", ref: o, children: /* @__PURE__ */ O("div", { className: "schedulant-timeline-body", children: [
3501
- /* @__PURE__ */ a(ts, { schedulantView: _ }),
3493
+ /* @__PURE__ */ a(es, { schedulantView: _ }),
3502
3494
  /* @__PURE__ */ a(
3503
- ss,
3495
+ ns,
3504
3496
  {
3505
3497
  schedulantView: _,
3506
3498
  virtualizer: Pe,
@@ -3514,5 +3506,5 @@ const vs = (t, e, n, s) => {
3514
3506
  ] }) }) }) });
3515
3507
  };
3516
3508
  export {
3517
- Ls as Schedulant
3509
+ Ps as Schedulant
3518
3510
  };