@scmlatam/web-ui 0.2.49 → 0.2.50

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.
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, CSSProperties } from 'react';
2
2
  import { Dayjs } from 'dayjs';
3
3
  import { ResolvedBoundary } from './timeline.types';
4
4
  interface BoundaryDotProps {
@@ -13,5 +13,6 @@ interface BoundaryDotProps {
13
13
  onDateChange?: (date: Dayjs) => void;
14
14
  onClick?: (anchorEl: HTMLElement) => void;
15
15
  }
16
+ export declare function getBoundaryDotStyle(color: string): CSSProperties;
16
17
  export declare function BoundaryDot({ boundary, isEdge, color, tooltip, editable, minDate, maxDate, align, onDateChange, onClick, }: BoundaryDotProps): React.JSX.Element;
17
18
  export {};
@@ -1,3 +1,3 @@
1
1
  import { TimelineProps } from './timeline.types';
2
- export declare function Timeline({ segments, mode, external_labels, legend, compactRange, tooltips, startBoundary, endBoundary, colors, formatDate, segmentTooltip, boundaryTooltip, onSegmentClick, onBoundaryClick, allowGaps, scale, editableBoundaries, exclusiveEnd, indefiniteDate, indefiniteLabel, onBoundaryDateChange, className, }: TimelineProps): import("react").JSX.Element | null;
2
+ export declare function Timeline({ segments, mode, external_labels, legend, compactRange, tooltips, startBoundary, endBoundary, colors, formatDate, segmentTooltip, boundaryTooltip, onSegmentClick, onBoundaryClick, allowGaps, mergeAdjacentBoundaries, scale, editableBoundaries, exclusiveEnd, indefiniteDate, indefiniteLabel, onBoundaryDateChange, className, }: TimelineProps): import("react").JSX.Element | null;
3
3
  export default Timeline;
@@ -81,6 +81,8 @@ export interface TimelineProps {
81
81
  onBoundaryClick?: (args: TimelineBoundaryClickArgs) => void;
82
82
  className?: string;
83
83
  allowGaps?: boolean;
84
+ /** Si dos tramos son contiguos por 1 día, usa un único punto compartido entre ambos. */
85
+ mergeAdjacentBoundaries?: boolean;
84
86
  /**
85
87
  * `"equal"` reparte el ancho por igual entre tramos; `"proportional"` lo
86
88
  * calcula según la duración real de cada uno.
@@ -8,9 +8,10 @@ export interface BuildSlotsOptions {
8
8
  startDate: Dayjs;
9
9
  endDate: Dayjs;
10
10
  };
11
+ mergeAdjacentBoundaries?: boolean;
11
12
  }
12
13
  export declare function buildSlots(segments: TimelineSegment[], allowGaps: boolean, options?: BuildSlotsOptions): TimelineSlot[];
13
- export declare function buildBoundaries(segments: TimelineSegment[], segmentSlots: TimelineSlot[], allowGaps: boolean): ResolvedBoundary[];
14
+ export declare function buildBoundaries(segments: TimelineSegment[], segmentSlots: TimelineSlot[], allowGaps: boolean, mergeAdjacentBoundaries?: boolean): ResolvedBoundary[];
14
15
  export declare function boundaryBounds(boundary: ResolvedBoundary, segments: TimelineSegment[], allowGaps: boolean, exclusiveEnd?: boolean): {
15
16
  min: Dayjs | null;
16
17
  max: Dayjs | null;
package/dist/web-ui.js CHANGED
@@ -40035,7 +40035,14 @@ function WG({ segment: e, index: t, color: n, leftPct: r, tooltip: i, align: a =
40035
40035
  }
40036
40036
  //#endregion
40037
40037
  //#region src/rb-components/timeline/BoundaryDot.tsx
40038
- function GG({ boundary: e, isEdge: t, color: n, tooltip: r, editable: i, minDate: a, maxDate: o, align: s = "center", onDateChange: c, onClick: l }) {
40038
+ function GG(e) {
40039
+ return {
40040
+ backgroundColor: e,
40041
+ border: `0.125rem solid ${e}`,
40042
+ boxSizing: "border-box"
40043
+ };
40044
+ }
40045
+ function KG({ boundary: e, isEdge: t, color: n, tooltip: r, editable: i, minDate: a, maxDate: o, align: s = "center", onDateChange: c, onClick: l }) {
40039
40046
  let { open: u, ready: d, close: f, toggle: p, position: m, anchorVars: h, triggerRef: g, panelRef: _ } = qC(), v = t ? "1.25rem" : "1rem", y = i || !!l, b = [];
40040
40047
  a && b.push({ before: a.toDate() }), o && b.push({ after: o.toDate() });
40041
40048
  let x = /* @__PURE__ */ W("button", {
@@ -40052,12 +40059,11 @@ function GG({ boundary: e, isEdge: t, color: n, tooltip: r, editable: i, minDate
40052
40059
  }
40053
40060
  l?.(e.currentTarget);
40054
40061
  },
40055
- className: Z("block rounded-full bg-white transition-transform duration-150", y && "cursor-pointer hover:scale-110", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--ring)"),
40062
+ className: Z("block rounded-full transition-transform duration-150", y && "cursor-pointer hover:scale-110", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--ring)"),
40056
40063
  style: {
40057
40064
  width: v,
40058
40065
  height: v,
40059
- border: `0.125rem solid ${n}`,
40060
- boxSizing: "border-box"
40066
+ ...GG(n)
40061
40067
  }
40062
40068
  }), S = i && u && d && typeof document < "u" ? Ae(/* @__PURE__ */ W("div", {
40063
40069
  ref: _,
@@ -40092,8 +40098,8 @@ function GG({ boundary: e, isEdge: t, color: n, tooltip: r, editable: i, minDate
40092
40098
  }
40093
40099
  //#endregion
40094
40100
  //#region src/rb-components/timeline/timelineLayout.ts
40095
- var KG = .4, qG = .5, JG = .01;
40096
- function YG(e, t, n) {
40101
+ var qG = .4, JG = .5, YG = .01;
40102
+ function XG(e, t, n) {
40097
40103
  if (n) return {
40098
40104
  start: n.startDate,
40099
40105
  end: n.endDate
@@ -40109,36 +40115,36 @@ function YG(e, t, n) {
40109
40115
  end: o.isAfter(s) ? o : s
40110
40116
  };
40111
40117
  }
40112
- function XG(e, t, n) {
40113
- let { start: r, end: i } = YG(e, t, n), a = Math.max(1, i.diff(r, "day")), o = (e) => !!(t && e.isSame(t, "day")), s = (e) => {
40118
+ function ZG(e, t, n) {
40119
+ let { start: r, end: i } = XG(e, t, n), a = Math.max(1, i.diff(r, "day")), o = (e) => !!(t && e.isSame(t, "day")), s = (e) => {
40114
40120
  if (o(e)) return 100;
40115
40121
  let t = e.diff(r, "day");
40116
40122
  return Math.max(0, Math.min(100, t / a * 100));
40117
40123
  }, c = [], l = 0;
40118
40124
  return e.forEach((e, t) => {
40119
40125
  let n = Math.max(l, s(e.startDate)), r = s(e.endDate);
40120
- n - l > JG && c.push({
40126
+ n - l > YG && c.push({
40121
40127
  type: "gap",
40122
40128
  index: t,
40123
40129
  startPct: l,
40124
40130
  widthPct: n - l
40125
40131
  });
40126
- let i = Math.min(100 - n, Math.max(qG, r - n));
40132
+ let i = Math.min(100 - n, Math.max(JG, r - n));
40127
40133
  c.push({
40128
40134
  type: "segment",
40129
40135
  index: t,
40130
40136
  startPct: n,
40131
40137
  widthPct: i
40132
40138
  }), l = n + i;
40133
- }), 100 - l > JG && c.push({
40139
+ }), 100 - l > YG && c.push({
40134
40140
  type: "gap",
40135
40141
  index: e.length,
40136
40142
  startPct: l,
40137
40143
  widthPct: 100 - l
40138
40144
  }), c;
40139
40145
  }
40140
- function ZG(e, t, n = {}) {
40141
- if (n.proportional) return XG(e, n.indefiniteDate, n.domain);
40146
+ function QG(e, t, n = {}) {
40147
+ if (n.proportional) return ZG(e, n.indefiniteDate, n.domain);
40142
40148
  if (!t) {
40143
40149
  let t = 100 / e.length;
40144
40150
  return e.map((e, n) => ({
@@ -40148,60 +40154,64 @@ function ZG(e, t, n = {}) {
40148
40154
  widthPct: t
40149
40155
  }));
40150
40156
  }
40151
- let r = e.length - 1, i = 100 / (e.length + r * KG), a = [], o = 0;
40152
- return e.forEach((e, t) => {
40153
- if (t > 0) {
40154
- let e = i * KG;
40157
+ let r = e.slice(1).filter((t, r) => {
40158
+ let i = e[r];
40159
+ return !(n.mergeAdjacentBoundaries && i.endDate.add(1, "day").isSame(t.startDate, "day"));
40160
+ }).length, i = 100 / (e.length + r * qG), a = [], o = 0;
40161
+ return e.forEach((t, r) => {
40162
+ let s = r > 0 ? e[r - 1] : null, c = n.mergeAdjacentBoundaries && !!(s && s.endDate.add(1, "day").isSame(t.startDate, "day"));
40163
+ if (r > 0 && !c) {
40164
+ let e = i * qG;
40155
40165
  a.push({
40156
40166
  type: "gap",
40157
- index: t,
40167
+ index: r,
40158
40168
  startPct: o,
40159
40169
  widthPct: e
40160
40170
  }), o += e;
40161
40171
  }
40162
40172
  a.push({
40163
40173
  type: "segment",
40164
- index: t,
40174
+ index: r,
40165
40175
  startPct: o,
40166
40176
  widthPct: i
40167
40177
  }), o += i;
40168
40178
  }), a;
40169
40179
  }
40170
- function QG(e, t, n) {
40171
- let r = [];
40172
- e.forEach((i, a) => {
40173
- let o = a > 0 ? e[a - 1] : null, s = n && o !== null;
40174
- if (o && s) {
40175
- let e = t[a - 1];
40176
- r.push({
40177
- key: `${o.id}-end`,
40180
+ function $G(e, t, n, r = !1) {
40181
+ let i = [];
40182
+ e.forEach((a, o) => {
40183
+ let s = o > 0 ? e[o - 1] : null, c = !!(s && s.endDate.add(1, "day").isSame(a.startDate, "day")), l = r && c, u = n && s !== null && !l;
40184
+ if (s && u) {
40185
+ let e = t[o - 1];
40186
+ i.push({
40187
+ key: `${s.id}-end`,
40178
40188
  kind: "end",
40179
- date: o.endDate,
40189
+ date: s.endDate,
40180
40190
  leftPct: e.startPct + e.widthPct,
40181
- segmentIndex: a - 1,
40191
+ segmentIndex: o - 1,
40182
40192
  previousIndex: null
40183
40193
  });
40184
40194
  }
40185
- r.push({
40186
- key: `${i.id}-start`,
40187
- kind: o && !s ? "shared" : "start",
40188
- date: i.startDate,
40189
- leftPct: t[a].startPct,
40190
- segmentIndex: a,
40191
- previousIndex: o ? a - 1 : null
40195
+ i.push({
40196
+ key: `${a.id}-start`,
40197
+ kind: s && (!u || l) ? "shared" : "start",
40198
+ date: a.startDate,
40199
+ leftPct: s && l ? (t[o - 1].startPct + t[o - 1].widthPct + t[o].startPct) / 2 : t[o].startPct,
40200
+ segmentIndex: o,
40201
+ previousIndex: s ? o - 1 : null
40192
40202
  });
40193
40203
  });
40194
- let i = e.length - 1;
40195
- return r.push({
40196
- key: `${e[i].id}-end`,
40204
+ let a = e.length - 1;
40205
+ return i.push({
40206
+ key: `${e[a].id}-end`,
40197
40207
  kind: "end",
40198
- date: e[i].endDate,
40208
+ date: e[a].endDate,
40199
40209
  leftPct: 100,
40200
- segmentIndex: i,
40210
+ segmentIndex: a,
40201
40211
  previousIndex: null
40202
- }), r;
40212
+ }), i;
40203
40213
  }
40204
- function $G(e, t, n, r = !1) {
40214
+ function eK(e, t, n, r = !1) {
40205
40215
  let i = t[e.segmentIndex], a = +!r;
40206
40216
  if (e.kind === "end") {
40207
40217
  let r = t[e.segmentIndex + 1];
@@ -40218,62 +40228,63 @@ function $G(e, t, n, r = !1) {
40218
40228
  }
40219
40229
  //#endregion
40220
40230
  //#region src/rb-components/timeline/Timeline.tsx
40221
- var eK = [
40231
+ var tK = [
40222
40232
  "#EAB300",
40223
40233
  "#8A9A00",
40224
40234
  "#50E300",
40225
40235
  "#00A85A",
40226
40236
  "#00D5EE",
40227
40237
  "#008CF0"
40228
- ], tK = "#90a4ae", nK = "h-full bg-(--g-200)", rK = 5.5, iK = 8, aK = (e) => e?.isValid?.() ? e.format("DD/MM/YYYY") : "";
40229
- function oK(e, t) {
40238
+ ], nK = "#90a4ae", rK = "h-full bg-(--g-200)", iK = 5.5, aK = 8, oK = (e) => e?.isValid?.() ? e.format("DD/MM/YYYY") : "";
40239
+ function sK(e, t) {
40230
40240
  let n = {}, r = 0;
40231
40241
  return e.forEach((e) => {
40232
40242
  if (e.color) return;
40233
40243
  let i = String(e.id);
40234
- n[i] || (n[i] = t[r++ % t.length] ?? tK);
40244
+ n[i] || (n[i] = t[r++ % t.length] ?? nK);
40235
40245
  }), n;
40236
40246
  }
40237
- function sK(e, t) {
40238
- return e.color ?? t[String(e.id)] ?? tK;
40247
+ function cK(e, t) {
40248
+ return e.color ?? t[String(e.id)] ?? nK;
40239
40249
  }
40240
- function cK(e) {
40250
+ function lK(e) {
40241
40251
  return typeof e.label == "string" && e.label.trim() ? e.label : null;
40242
40252
  }
40243
- function lK(e, t, n) {
40244
- let r = cK(e);
40253
+ function uK(e, t, n) {
40254
+ let r = lK(e);
40245
40255
  if (!r) return !1;
40246
- let i = r.length * rK + iK;
40256
+ let i = r.length * iK + aK;
40247
40257
  return n * t / 100 >= i;
40248
40258
  }
40249
- function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !1, compactRange: i, tooltips: a = !0, startBoundary: o, endBoundary: s, colors: c = eK, formatDate: l = aK, segmentTooltip: u, boundaryTooltip: d, onSegmentClick: f, onBoundaryClick: p, allowGaps: m = !1, scale: h = "equal", editableBoundaries: g = !1, exclusiveEnd: _ = !1, indefiniteDate: v, indefiniteLabel: y = "Indefinido", onBoundaryDateChange: b, className: x }) {
40250
- let S = ye(null), [C, w] = be(0);
40259
+ function dK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !1, compactRange: i, tooltips: a = !0, startBoundary: o, endBoundary: s, colors: c = tK, formatDate: l = oK, segmentTooltip: u, boundaryTooltip: d, onSegmentClick: f, onBoundaryClick: p, allowGaps: m = !1, mergeAdjacentBoundaries: h = !1, scale: g = "equal", editableBoundaries: _ = !1, exclusiveEnd: v = !1, indefiniteDate: y, indefiniteLabel: b = "Indefinido", onBoundaryDateChange: x, className: S }) {
40260
+ let C = ye(null), [w, T] = be(0);
40251
40261
  if (me(() => {
40252
- let e = S.current;
40262
+ let e = C.current;
40253
40263
  if (!e || typeof ResizeObserver > "u") return;
40254
- let t = () => w(e.clientWidth);
40264
+ let t = () => T(e.clientWidth);
40255
40265
  t();
40256
40266
  let n = new ResizeObserver(t);
40257
40267
  return n.observe(e), () => n.disconnect();
40258
40268
  }, []), e.length === 0) return null;
40259
- let T = oK(e, c), E = ZG(e, m, {
40260
- proportional: h === "proportional",
40261
- indefiniteDate: v
40262
- }), D = E.filter((e) => e.type === "segment"), O = QG(e, D, m), k = g && !!b, A = O.length - 1, j = (e) => !!(v && e.isSame(v, "day")), M = (e) => j(e) ? y : l(e), N = n?.fecha_inicio ?? l(i?.startDate ?? e[0].startDate), P = n?.fecha_fin ?? M(i?.endDate ?? e[e.length - 1].endDate), F = ZG(e, !0, {
40269
+ let E = sK(e, c), D = QG(e, m, {
40270
+ proportional: g === "proportional",
40271
+ indefiniteDate: y,
40272
+ mergeAdjacentBoundaries: h
40273
+ }), O = D.filter((e) => e.type === "segment"), k = $G(e, O, m, h), A = _ && !!x, j = k.length - 1, M = (e) => !!(y && e.isSame(y, "day")), N = (e) => M(e) ? b : l(e), P = n?.fecha_inicio ?? l(i?.startDate ?? e[0].startDate), F = n?.fecha_fin ?? N(i?.endDate ?? e[e.length - 1].endDate), I = QG(e, !0, {
40263
40274
  proportional: !0,
40264
- indefiniteDate: v,
40275
+ indefiniteDate: y,
40265
40276
  domain: i
40266
- }), I = (e, t) => e.tooltip ?? u?.(e, t) ?? /* @__PURE__ */ G("span", {
40277
+ }), L = (e, t) => e.tooltip ?? u?.(e, t) ?? /* @__PURE__ */ G("span", {
40267
40278
  className: "flex flex-col gap-1",
40268
40279
  children: [/* @__PURE__ */ W("strong", { children: e.label ?? "—" }), /* @__PURE__ */ G("span", { children: [
40269
40280
  l(e.startDate),
40270
40281
  " -",
40271
40282
  " ",
40272
- M(e.endDate)
40283
+ N(e.endDate)
40273
40284
  ] })]
40274
40285
  });
40275
40286
  return t === "compact" ? /* @__PURE__ */ G("div", {
40276
- className: Z("flex w-full min-w-0 flex-col rounded-md bg-black/5", x),
40287
+ className: Z("flex w-full min-w-0 flex-col rounded-md bg-black/5", S),
40277
40288
  style: {
40278
40289
  padding: "0.75rem 0.5rem",
40279
40290
  rowGap: "0.5rem"
@@ -40286,11 +40297,11 @@ function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !
40286
40297
  "aria-label": "Fecha de inicio",
40287
40298
  children: /* @__PURE__ */ W("span", {
40288
40299
  className: "text-xs font-semibold whitespace-nowrap",
40289
- children: N
40300
+ children: P
40290
40301
  })
40291
40302
  }),
40292
40303
  /* @__PURE__ */ G("div", {
40293
- ref: S,
40304
+ ref: C,
40294
40305
  className: "relative min-w-0 flex-1",
40295
40306
  style: {
40296
40307
  height: "2.25rem",
@@ -40299,13 +40310,13 @@ function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !
40299
40310
  children: [/* @__PURE__ */ W("div", {
40300
40311
  className: "absolute inset-x-0 bottom-0 rounded-full bg-(--g-200)",
40301
40312
  style: { height: "0.375rem" }
40302
- }), F.map((t) => {
40313
+ }), I.map((t) => {
40303
40314
  if (t.type === "gap") return null;
40304
- let n = e[t.index], r = lK(n, t.widthPct, C) ? cK(n) : null, i = /* @__PURE__ */ W("div", {
40315
+ let n = e[t.index], r = uK(n, t.widthPct, w) ? lK(n) : null, i = /* @__PURE__ */ W("div", {
40305
40316
  className: "h-3 w-full rounded-full border border-(--surface) shadow-[0_0_0_1px_color-mix(in_srgb,currentColor_34%,transparent)]",
40306
40317
  style: {
40307
- color: sK(n, T),
40308
- backgroundColor: sK(n, T)
40318
+ color: cK(n, E),
40319
+ backgroundColor: cK(n, E)
40309
40320
  }
40310
40321
  }), o = /* @__PURE__ */ G("div", {
40311
40322
  className: "relative h-full w-full",
@@ -40324,7 +40335,7 @@ function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !
40324
40335
  width: `${t.widthPct}%`
40325
40336
  },
40326
40337
  children: a ? /* @__PURE__ */ W(Dw, {
40327
- content: I(n, t.index),
40338
+ content: L(n, t.index),
40328
40339
  placement: "bottom",
40329
40340
  multiline: !0,
40330
40341
  triggerClassName: "block h-9 w-full",
@@ -40338,7 +40349,7 @@ function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !
40338
40349
  "aria-label": "Fecha de fin",
40339
40350
  children: /* @__PURE__ */ W("span", {
40340
40351
  className: "text-xs font-semibold whitespace-nowrap",
40341
- children: P
40352
+ children: F
40342
40353
  })
40343
40354
  })
40344
40355
  ]
@@ -40349,12 +40360,12 @@ function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !
40349
40360
  children: [/* @__PURE__ */ W("span", {
40350
40361
  "aria-hidden": "true",
40351
40362
  className: "size-2.5 shrink-0 rounded-full",
40352
- style: { backgroundColor: sK(e, T) }
40363
+ style: { backgroundColor: cK(e, E) }
40353
40364
  }), /* @__PURE__ */ W("span", { children: e.label ?? "—" })]
40354
40365
  }, `legend-${e.id}`))
40355
40366
  }) : null]
40356
40367
  }) : /* @__PURE__ */ G("div", {
40357
- className: Z("flex w-full min-w-0 flex-col rounded-md bg-black/5", x),
40368
+ className: Z("flex w-full min-w-0 flex-col rounded-md bg-black/5", S),
40358
40369
  style: {
40359
40370
  padding: "0.75rem 0.5rem",
40360
40371
  rowGap: "0.25rem"
@@ -40366,8 +40377,8 @@ function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !
40366
40377
  children: e.map((e, t) => /* @__PURE__ */ W(WG, {
40367
40378
  segment: e,
40368
40379
  index: t,
40369
- color: sK(e, T),
40370
- leftPct: D[t].startPct + D[t].widthPct / 2,
40380
+ color: cK(e, E),
40381
+ leftPct: O[t].startPct + O[t].widthPct / 2,
40371
40382
  tooltip: e.tooltip ?? u?.(e, t) ?? null,
40372
40383
  onClick: f ? (t, n) => f({
40373
40384
  segment: e,
@@ -40382,33 +40393,33 @@ function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !
40382
40393
  children: [/* @__PURE__ */ W("div", {
40383
40394
  className: "flex w-full overflow-hidden rounded-md",
40384
40395
  style: { height: "0.375rem" },
40385
- children: E.map((t) => t.type === "gap" ? /* @__PURE__ */ W("div", {
40396
+ children: D.map((t) => t.type === "gap" ? /* @__PURE__ */ W("div", {
40386
40397
  style: { width: `${t.widthPct}%` },
40387
- className: nK
40398
+ className: rK
40388
40399
  }, `gap-${t.index}`) : /* @__PURE__ */ W("div", {
40389
40400
  style: {
40390
40401
  width: `${t.widthPct}%`,
40391
- backgroundColor: sK(e[t.index], T)
40402
+ backgroundColor: cK(e[t.index], E)
40392
40403
  },
40393
40404
  className: "h-full"
40394
40405
  }, e[t.index].id))
40395
- }), O.map((t, n) => {
40396
- let r = n === 0, i = n === A, a = !r && !i, c = j(t.date), { min: u, max: f } = $G(t, e, m, _), h = r ? o?.color ?? sK(e[0], T) : i ? s?.color ?? tK : sK(e[t.segmentIndex], T), g = r ? o?.tooltip ?? l(t.date) : i ? s?.tooltip ?? (c ? y : l(t.date)) : d?.({
40406
+ }), k.map((t, n) => {
40407
+ let r = n === 0, i = n === j, a = !r && !i, c = M(t.date), { min: u, max: f } = eK(t, e, m, v), h = r ? o?.color ?? cK(e[0], E) : i ? s?.color ?? nK : cK(e[t.segmentIndex], E), g = r ? o?.tooltip ?? l(t.date) : i ? s?.tooltip ?? (c ? b : l(t.date)) : d?.({
40397
40408
  index: n,
40398
40409
  previousSegment: t.previousIndex === null ? e[t.segmentIndex] : e[t.previousIndex],
40399
40410
  nextSegment: e[t.segmentIndex],
40400
40411
  anchorEl: null
40401
40412
  }) ?? l(t.date);
40402
- return /* @__PURE__ */ W(GG, {
40413
+ return /* @__PURE__ */ W(KG, {
40403
40414
  boundary: t,
40404
40415
  isEdge: r || i,
40405
40416
  color: h,
40406
40417
  tooltip: g,
40407
- editable: k && !c,
40418
+ editable: A && !c,
40408
40419
  minDate: u,
40409
40420
  maxDate: f,
40410
40421
  align: r ? "start" : i ? "end" : "center",
40411
- onDateChange: (e) => b?.({
40422
+ onDateChange: (e) => x?.({
40412
40423
  kind: t.kind,
40413
40424
  date: e,
40414
40425
  segmentIndex: t.segmentIndex,
@@ -40416,7 +40427,7 @@ function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !
40416
40427
  minDate: u,
40417
40428
  maxDate: f
40418
40429
  }),
40419
- onClick: a && p && !k ? (r) => p({
40430
+ onClick: a && p && !A ? (r) => p({
40420
40431
  index: n,
40421
40432
  previousSegment: e[t.previousIndex ?? t.segmentIndex],
40422
40433
  nextSegment: e[t.segmentIndex],
@@ -40431,7 +40442,7 @@ function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !
40431
40442
  height: "1.5rem",
40432
40443
  marginTop: "0.25rem"
40433
40444
  },
40434
- children: O.map((e, t) => /* @__PURE__ */ W("span", {
40445
+ children: k.map((e, t) => /* @__PURE__ */ W("span", {
40435
40446
  className: "absolute whitespace-nowrap text-(--muted,#666)",
40436
40447
  style: {
40437
40448
  left: `${e.leftPct}%`,
@@ -40441,11 +40452,11 @@ function uK({ segments: e, mode: t = "simple", external_labels: n, legend: r = !
40441
40452
  lineHeight: "1.25rem",
40442
40453
  fontWeight: 400
40443
40454
  },
40444
- children: t === 0 ? o?.label ?? l(e.date) : t === A ? s?.label ?? (j(e.date) ? y : l(e.date)) : j(e.date) ? y : l(e.date)
40455
+ children: t === 0 ? o?.label ?? l(e.date) : t === j ? s?.label ?? (M(e.date) ? b : l(e.date)) : M(e.date) ? b : l(e.date)
40445
40456
  }, e.key))
40446
40457
  })
40447
40458
  ]
40448
40459
  });
40449
40460
  }
40450
40461
  //#endregion
40451
- export { Kv as AuthLanguageDropdown, fE as AuthPasswordInput, Gv as AuthShell, cy as AutoCustomCompleteField, qE as Breadcrumbs, NT as CalendarChipIcon, DT as Calendario, XT as Card, $T as CardContent, eE as CardFooter, ZT as CardHeader, QT as CardTitle, kw as Checkbox, PT as ClockChipIcon, dE as ConfirmDialog, XE as Core, xt as CoreContext, ZE as CoreProvider, Uw as CustomDateControl, yw as CustomDatePicker, $w as CustomDateRangeCalendar, Xw as CustomDateRangePicker, qw as CustomDateRangefield, aw as CustomDatefield, Hw as CustomIndefiniteDatePicker, dD as CustomSelect, Gw as CustomTimefield, e as DGEnUs, t as DGEsEs, VE as DashboardShell, jD as EmptyState, bD as Form, HD as FormField, VD as FormGrid, LD as FormShell, yt as GoodRabbitDarkTheme, bt as GoodRabbitLightTheme, rE as Input, mD as LegacyCustomTimefield, CD as MessageAlert, KD as PillsTabs, KD as RbPillsTabs, sE as Portal, Yv as RBButton, aE as Radio, AT as RbContextMenu, MW as RbExcelTable, nE as RbIconButton, JT as RbInlineChipField, UD as RbList, WD as RbListItem, oE as RbStepper, JD as RbTabPanel, JD as TabPanel, jO as RbTable, dO as RbTableToolbar, NW as RbToolbarActionButton, PW as RbToolbarActions, FW as RbToolbarDateRangeField, RW as RbToolbarMultiSelectField, BW as RbToolbarSearchField, UW as RbToolbarSelectField, _E as ShellContent, Zm as Sidebar, QW as SidebarContent, eG as SidebarFooter, qW as SidebarHeader, LE as SystemAlert, oD as Table, uK as Timeline, Dw as Tooltip, SE as TopBar, vE as TopBarUserMenu, CG as TreePanel, UG as VirtualTree, TG as buildVirtualTreeIndex, Hv as chekingSSOMS, Z as cn, n as coreEnUS, r as coreEsES, MG as filterVirtualTreeItems, lG as findNodeById, cG as flattenTree, dW as formatRbExcelDate, fW as formatRbExcelTime, uG as getExpandableNodeIds, mG as getNodeSelectionState, oW as getRbExcelValueAtPath, Bm as getRbImageUrl, fG as getSelectableDescendantIds, dG as getSelectableSubtreeIds, EG as getVirtualTreeAncestorIds, OG as getVisibleVirtualTreeItems, sG as hasNodeChildren, Uv as initializeAuth, aG as isNodeSelectable, oG as isNodeSelectionMutable, cW as isRbExcelEmptyValue, mW as isValidRbExcelDate, gW as isValidRbExcelNumber, hW as isValidRbExcelTime, pG as normalizeHierarchicalSelection, kG as normalizeVirtualTreeSearch, FG as normalizeVirtualTreeSelection, Wv as observeSSO, pW as parseRbExcelValue, i as pickersEnUS, a as pickersEsES, zm as rbImages, sW as setRbExcelValueAtPath, gG as toggleExpandedNode, hG as toggleNodeSelection, IG as toggleVirtualTreeSelection, zE as useRbSystemAlert, cD as useSystemAlert, sD as useTable, LG as useVirtualTreeState };
40462
+ export { Kv as AuthLanguageDropdown, fE as AuthPasswordInput, Gv as AuthShell, cy as AutoCustomCompleteField, qE as Breadcrumbs, NT as CalendarChipIcon, DT as Calendario, XT as Card, $T as CardContent, eE as CardFooter, ZT as CardHeader, QT as CardTitle, kw as Checkbox, PT as ClockChipIcon, dE as ConfirmDialog, XE as Core, xt as CoreContext, ZE as CoreProvider, Uw as CustomDateControl, yw as CustomDatePicker, $w as CustomDateRangeCalendar, Xw as CustomDateRangePicker, qw as CustomDateRangefield, aw as CustomDatefield, Hw as CustomIndefiniteDatePicker, dD as CustomSelect, Gw as CustomTimefield, e as DGEnUs, t as DGEsEs, VE as DashboardShell, jD as EmptyState, bD as Form, HD as FormField, VD as FormGrid, LD as FormShell, yt as GoodRabbitDarkTheme, bt as GoodRabbitLightTheme, rE as Input, mD as LegacyCustomTimefield, CD as MessageAlert, KD as PillsTabs, KD as RbPillsTabs, sE as Portal, Yv as RBButton, aE as Radio, AT as RbContextMenu, MW as RbExcelTable, nE as RbIconButton, JT as RbInlineChipField, UD as RbList, WD as RbListItem, oE as RbStepper, JD as RbTabPanel, JD as TabPanel, jO as RbTable, dO as RbTableToolbar, NW as RbToolbarActionButton, PW as RbToolbarActions, FW as RbToolbarDateRangeField, RW as RbToolbarMultiSelectField, BW as RbToolbarSearchField, UW as RbToolbarSelectField, _E as ShellContent, Zm as Sidebar, QW as SidebarContent, eG as SidebarFooter, qW as SidebarHeader, LE as SystemAlert, oD as Table, dK as Timeline, Dw as Tooltip, SE as TopBar, vE as TopBarUserMenu, CG as TreePanel, UG as VirtualTree, TG as buildVirtualTreeIndex, Hv as chekingSSOMS, Z as cn, n as coreEnUS, r as coreEsES, MG as filterVirtualTreeItems, lG as findNodeById, cG as flattenTree, dW as formatRbExcelDate, fW as formatRbExcelTime, uG as getExpandableNodeIds, mG as getNodeSelectionState, oW as getRbExcelValueAtPath, Bm as getRbImageUrl, fG as getSelectableDescendantIds, dG as getSelectableSubtreeIds, EG as getVirtualTreeAncestorIds, OG as getVisibleVirtualTreeItems, sG as hasNodeChildren, Uv as initializeAuth, aG as isNodeSelectable, oG as isNodeSelectionMutable, cW as isRbExcelEmptyValue, mW as isValidRbExcelDate, gW as isValidRbExcelNumber, hW as isValidRbExcelTime, pG as normalizeHierarchicalSelection, kG as normalizeVirtualTreeSearch, FG as normalizeVirtualTreeSelection, Wv as observeSSO, pW as parseRbExcelValue, i as pickersEnUS, a as pickersEsES, zm as rbImages, sW as setRbExcelValueAtPath, gG as toggleExpandedNode, hG as toggleNodeSelection, IG as toggleVirtualTreeSelection, zE as useRbSystemAlert, cD as useSystemAlert, sD as useTable, LG as useVirtualTreeState };
@@ -409,4 +409,4 @@
409
409
  absolute inset-0
410
410
  flex items-center justify-center
411
411
  bg-(--loading-overlay)
412
- `,children:[(0,d.jsx)(`div`,{className:Z(`size-10 animate-spin`,`rounded-full border-4`,`border-[color-mix(in_oklab,var(--text)_14%,transparent)]`,`border-t-(--text)`),"aria-hidden":`true`}),(0,d.jsx)(`span`,{className:`sr-only`,children:b})]}):null]})]})}function pW(e){return e?Array.from(e):[]}function mW(e){let t=[],n=new Map,r=new Set;function i(e,a,o){for(let s of e){if(n.has(s.id))throw Error(`VirtualTree requiere IDs únicos: ${String(s.id)}`);let e=!!s.children?.length,c={id:s.id,node:s,parentId:a,depth:o,hasChildren:e};t.push(c),n.set(s.id,c),e&&r.add(s.id),s.children?.length&&i(s.children,s.id,o+1)}}return i(e,null,0),{allItems:t,itemsById:n,expandableIds:r,rootIds:e.map(e=>e.id)}}function hW(e,t){let n=[],r=e.itemsById.get(t)?.parentId??null;for(;r!==null;)n.unshift(r),r=e.itemsById.get(r)?.parentId??null;return n}function gW(e,t,n){let r=e.parentId;for(;r!==null;){if(!n.has(r))return!1;r=t.itemsById.get(r)?.parentId??null}return!0}function _W(e,t){return e.allItems.filter(n=>gW(n,e,t))}function vW(e){return e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).toLocaleLowerCase().trim()}function yW(e,t,n){for(let r of hW(t,n))e.add(r)}function bW(e,t,n){let r=t.itemsById.get(n)?.depth;if(r===void 0)return;let i=t.allItems.findIndex(e=>e.id===n);for(let n=i+1;n<t.allItems.length;n+=1){let i=t.allItems[n];if(i.depth<=r)break;e.add(i.id)}}function xW(e,t,n){let r=vW(n);if(!r)return e.allItems;let i=new Set;for(let n of e.allItems)n.node.type===t&&vW(n.node.label).includes(r)&&(i.add(n.id),yW(i,e,n.id),t!==`work_position`&&bW(i,e,n.id));return e.allItems.filter(e=>i.has(e.id))}function SW(e){let t=new Set,n=new Set(e.map(e=>e.id));for(let r of e)r.parentId!==null&&n.has(r.parentId)&&t.add(r.parentId);return t}function CW(e,t,n){let r=new Set(t.map(e=>e.id));return t.filter(t=>{let i=t.parentId;for(;i!==null&&r.has(i);){if(!n.has(i))return!1;i=e.itemsById.get(i)?.parentId??null}return!0})}function wW(e,t,n){let r=pW(t).filter(t=>{let n=e.itemsById.get(t)?.node;return n?.type===`work_position`&&n.disabled!==!0});return n===`single`?r.slice(-1):Array.from(new Set(r))}function TW(e,t,n,r){let i=e.itemsById.get(n)?.node,a=wW(e,t,r);if(i?.type!==`work_position`||i.disabled)return a;if(r===`single`)return[n];let o=new Set(a);return o.has(n)?o.delete(n):o.add(n),Array.from(o)}function EW({items:e,selectionMode:t,selectedIds:n,defaultSelectedIds:r,onSelectionChange:i,expandedIds:a,defaultExpandedIds:o,defaultExpandAll:s=!1,onExpandedChange:c}){let u=l.default.useMemo(()=>mW(e),[e]),d=n!==void 0,f=a!==void 0,[p,m]=l.default.useState(()=>wW(u,r,t)),[h,g]=l.default.useState(()=>s?Array.from(u.expandableIds):o===void 0?u.rootIds.filter(e=>u.expandableIds.has(e)):pW(o)),_=l.default.useMemo(()=>wW(u,d?n:p,t),[u,p,n,d,t]),v=f?pW(a):h,y=l.default.useMemo(()=>new Set(v),[v]),b=l.default.useMemo(()=>new Set(_),[_]),x=l.default.useMemo(()=>_W(u,y),[y,u]),S=l.default.useCallback((e,t)=>{f||g(e),c?.(e,{nodeId:t,node:u.itemsById.get(t)?.node??null})},[f,u,c]),C=l.default.useCallback((e,t)=>{if(!u.expandableIds.has(e))return;let n=new Set(v);t?n.add(e):n.delete(e),S(Array.from(n),e)},[S,v,u.expandableIds]);return{index:u,visibleItems:x,expandedSet:y,selectedSet:b,selectedIds:_,toggleExpansion:l.default.useCallback(e=>{C(e,!y.has(e))},[y,C]),setItemExpansion:C,expandItems:l.default.useCallback(e=>{let t=new Set(v),n;for(let r of e)!u.expandableIds.has(r)||t.has(r)||(t.add(r),n??=r);n!==void 0&&S(Array.from(t),n)},[S,v,u.expandableIds]),expandAll:l.default.useCallback(()=>{let e=Array.from(u.expandableIds),t=e[0]??u.rootIds[0];t!==void 0&&S(e,t)},[S,u]),collapseAll:l.default.useCallback(()=>{let e=v[0]??u.rootIds[0];e!==void 0&&S([],e)},[S,v,u.rootIds]),expandAncestors:l.default.useCallback(e=>{let t=new Set(v);for(let n of hW(u,e))u.expandableIds.has(n)&&t.add(n);S(Array.from(t),e)},[S,v,u]),toggleSelection:l.default.useCallback(e=>{let n=TW(u,_,e,t);d||m(n),i?.(n,{nodeId:e,node:u.itemsById.get(e)?.node??null})},[u,_,i,d,t])}}var DW={subcompany:`S`,area:`A`,work_position:`P`},OW=[{value:`subcompany`,label:`Subcompañía`},{value:`area`,label:`Área`},{value:`work_position`,label:`Puesto`}];function kW({label:e,query:t}){let n=vW(e),r=vW(t),i=n.indexOf(r);return!r||i<0?e:(0,d.jsxs)(d.Fragment,{children:[e.slice(0,i),(0,d.jsx)(`mark`,{className:`rounded-sm bg-(--amarillo-light) text-inherit`,children:e.slice(i,i+t.length)}),e.slice(i+t.length)]})}function AW({ariaAttributes:e,index:t,style:n,items:r,expandedSet:i,selectedSet:a,selectionMode:o,selectionName:s,selectionDisabled:c,branchIds:l,filterType:u,query:f,expandLabel:p,collapseLabel:m,onToggleExpansion:h,onToggleSelection:g}){let _=r[t];if(!_)return null;let{node:v}=_,y=l?l.has(_.id):_.hasChildren,b=y&&i.has(_.id),x=a.has(_.id),S=v.type===`work_position`,C=c||v.disabled===!0,w=e=>{e.key===`ArrowRight`&&y&&!b||e.key===`ArrowLeft`&&y&&b?(e.preventDefault(),h(_.id)):(e.key===`Enter`||e.key===` `)&&S&&(e.preventDefault(),C||g(_.id))};return(0,d.jsxs)(`div`,{...e,role:`treeitem`,"aria-level":_.depth+1,"aria-expanded":y?b:void 0,"aria-selected":S?x:void 0,tabIndex:0,style:{...n,paddingLeft:`${12+_.depth*20}px`},className:Z(`flex min-w-0 items-center gap-2 px-3`,`outline-none transition-colors focus-visible:bg-(--interaction-hover)`,x&&`bg-(--interaction-selected)`,v.disabled&&`opacity-60`,v.className),onDoubleClick:()=>y&&h(_.id),onKeyDown:w,children:[(0,d.jsx)(`div`,{className:`flex size-7 shrink-0 items-center justify-center`,children:y?(0,d.jsx)(Gw,{type:`button`,size:`s`,"aria-label":`${b?m:p}: ${v.label}`,"aria-expanded":b,onClick:()=>h(_.id),children:(0,d.jsx)(KU,{name:b?`arrowUp`:`arrow`,size:`s`,className:`text-(--text)`})}):null}),S?o===`multiple`?(0,d.jsx)(vC,{size:`s`,checked:x,disabled:C,"aria-label":`Seleccionar ${v.label}`,onChange:()=>g(_.id)}):(0,d.jsx)(Jw,{size:`s`,name:s,checked:x,disabled:C,"aria-label":`Seleccionar ${v.label}`,onChange:()=>g(_.id)}):(0,d.jsx)(`span`,{"aria-hidden":`true`,className:`flex size-5 shrink-0 items-center justify-center rounded-sm bg-(--g-100) p3 font-semibold text-(--muted)`,children:DW[v.type]}),(0,d.jsx)(`span`,{className:Z(`p2 min-w-0 flex-1 truncate text-(--text)`,v.type===`subcompany`&&`font-semibold`),children:(0,d.jsx)(kW,{label:v.label,query:v.type===u?f:``})})]})}function jW({ariaLabel:e,items:t=[],selectionMode:n=`single`,selectedIds:r,defaultSelectedIds:i,onSelectionChange:a,expandedIds:o,defaultExpandedIds:s,defaultExpandAll:c=!1,onExpandedChange:u,selectionDisabled:f=!1,filterTypeLabel:p=`Buscar por`,searchPlaceholder:m=`Ingresa una palabra`,clearSearchLabel:h=`Limpiar búsqueda`,subcompanyLabel:g=`Subcompañía`,areaLabel:_=`Área`,workPositionLabel:v=`Puesto`,emptyText:y=`No hay elementos disponibles`,noResultsText:b=`No se encontró un valor`,expandLabel:x=`Expandir`,collapseLabel:S=`Contraer`,height:C=360,rowHeight:w=48,overscanCount:T=5,loading:E=!1,loadingLabel:D=`Cargando`,className:O,headerClassName:k,bodyClassName:A},j){let M=(0,ee.useListRef)(null),N=l.default.useId(),P=l.default.useRef(null),[F,I]=l.default.useState(`work_position`),[L,R]=l.default.useState(``),[te,ne]=l.default.useState(``),{index:re,visibleItems:ie,expandedSet:z,selectedSet:ae,toggleExpansion:B,setItemExpansion:V,expandItems:H,expandAll:oe,collapseAll:se,expandAncestors:ce,toggleSelection:le}=EW({items:t,selectionMode:n,selectedIds:r,defaultSelectedIds:i,onSelectionChange:a,expandedIds:o,defaultExpandedIds:s,defaultExpandAll:c,onExpandedChange:u});l.default.useEffect(()=>{let e=window.setTimeout(()=>ne(L),200);return()=>window.clearTimeout(e)},[L]);let ue=te.trim().length>0,U=l.default.useMemo(()=>ue?xW(re,F,te):null,[te,F,re,ue]),de=l.default.useMemo(()=>U?SW(U):null,[U]),W=l.default.useMemo(()=>U?CW(re,U,z):ie,[z,U,re,ie]),fe=ue?`${F}:${te.trim()}`:``,pe=l.default.useRef(``);l.default.useEffect(()=>{pe.current!==fe&&(pe.current=fe,de?.size&&H(Array.from(de)))},[de,H,fe]),l.default.useEffect(()=>{let e=P.current;if(e===null)return;let t=W.findIndex(t=>t.id===e);t<0||(P.current=null,M.current?.scrollToRow({index:t,align:`smart`}))},[W,M]);let me=l.default.useCallback(e=>{let t=W.findIndex(t=>t.id===e);t>=0&&M.current?.scrollToRow({index:t,align:`smart`})},[W,M]);l.default.useImperativeHandle(j,()=>({expandAll:oe,collapseAll:se,setItemExpansion:V,focusItem:e=>{P.current=e,ce(e)},getItem:e=>re.itemsById.get(e)?.node,scrollToItem:me}),[se,oe,ce,re.itemsById,me,V]);let he=l.default.useMemo(()=>({items:W,expandedSet:z,selectedSet:ae,selectionMode:n,selectionName:N,selectionDisabled:f,branchIds:de,filterType:F,query:ue?te.trim():``,expandLabel:x,collapseLabel:S,onToggleExpansion:B,onToggleSelection:le}),[de,S,te,W,x,z,F,ue,ae,N,f,n,B,le]),ge=l.default.useCallback((e,t)=>t.items[e]?.id??e,[]),_e=e??`Árbol virtual`,ve=t.length>0,ye=W.length>0;return(0,d.jsxs)(`section`,{"aria-busy":E||void 0,className:Z(`relative flex w-full min-w-0 flex-col overflow-hidden rounded-(--r-m)`,`border border-(--border) bg-(--surface)`,O),children:[(0,d.jsxs)(`header`,{className:Z(`grid gap-2 bg-(--base-dark) px-5 py-4 text-(--on-dark-text) sm:grid-cols-[minmax(0,1fr)_15rem]`,k),children:[(0,d.jsxs)(`div`,{className:`relative min-w-10 w-full`,children:[(0,d.jsx)(Kw,{value:L,placeholder:m,white:!1,className:`pr-2`,onChange:e=>R(e.target.value)}),L&&(0,d.jsx)(Gw,{type:`button`,size:`s`,"aria-label":h,disabled:!L,onClick:()=>R(``),className:`absolute bottom-1.5 right-2 z-10 size-8 top-0`,children:(0,d.jsx)(`img`,{src:Op.close,alt:``,className:`size-4`})})]}),(0,d.jsx)(Z_,{selectionMode:`single`,label:p,placeholder:`Seleccionar filtro`,values:OW.map(e=>({...e,label:e.value===`subcompany`?g:e.value===`area`?_:v})),value:F,setValue:e=>{OW.some(t=>t.value===e)&&I(e)},clearLabel:`Mantener filtro seleccionado`,white:!1})]}),(0,d.jsx)(`div`,{className:Z(`grid min-h-0 gap-2 p-4`,A),children:(0,d.jsxs)(`div`,{className:`relative min-h-0 overflow-hidden rounded-(--r-s) border border-(--border)`,children:[ve?ye?(0,d.jsx)(ee.List,{listRef:M,role:`tree`,"aria-label":_e,"aria-multiselectable":n===`multiple`||void 0,rowComponent:AW,rowCount:W.length,rowHeight:w,rowProps:he,rowKey:ge,overscanCount:T,style:{height:C}}):(0,d.jsx)(`div`,{role:`status`,className:`p2 flex items-center justify-center px-3 text-center text-(--muted)`,style:{height:C},children:b}):(0,d.jsx)(`div`,{className:`p2 flex items-center justify-center px-4 text-center text-(--muted)`,style:{height:C},children:y}),E?(0,d.jsx)(`div`,{role:`status`,"aria-live":`polite`,className:`p2 absolute inset-0 flex items-center justify-center bg-(--loading-overlay)`,children:D}):null]})})]})}var MW=l.default.forwardRef(jW);function NW({segment:e,index:t,color:n,leftPct:r,tooltip:i,align:a=`center`,onClick:o}){let s=!!o,c=(0,d.jsx)(`span`,{role:s?`button`:void 0,tabIndex:s?0:void 0,onClick:s?e=>o?.(t,e.currentTarget):void 0,onKeyDown:s?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o?.(t,e.currentTarget))}:void 0,style:{color:n,fontSize:`1rem`,lineHeight:`1.25rem`},className:Z(`block whitespace-nowrap font-semibold`,s&&`cursor-pointer hover:underline`),children:e.label??`—`});return(0,d.jsx)(`span`,{className:`absolute`,style:{left:`${r}%`,transform:a===`start`?void 0:a===`end`?`translateX(-100%)`:`translateX(-50%)`},children:i?(0,d.jsx)(gC,{content:i,placement:`bottom`,children:c}):c})}function PW({boundary:e,isEdge:t,color:n,tooltip:r,editable:i,minDate:o,maxDate:s,align:c=`center`,onDateChange:l,onClick:u}){let{open:p,ready:m,close:h,toggle:g,position:_,anchorVars:v,triggerRef:y,panelRef:b}=IS(),x=t?`1.25rem`:`1rem`,S=i||!!u,C=[];o&&C.push({before:o.toDate()}),s&&C.push({after:s.toDate()});let w=(0,d.jsx)(`button`,{ref:y,type:`button`,"aria-label":i?`Editar fecha ${e.date.format(`DD/MM/YYYY`)}`:e.date.format(`DD/MM/YYYY`),"aria-haspopup":i?`dialog`:void 0,"aria-expanded":i?p:void 0,disabled:!S,onClick:e=>{if(i){g();return}u?.(e.currentTarget)},className:Z(`block rounded-full bg-white transition-transform duration-150`,S&&`cursor-pointer hover:scale-110`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--ring)`),style:{width:x,height:x,border:`0.125rem solid ${n}`,boxSizing:`border-box`}}),T=i&&p&&m&&typeof document<`u`?(0,f.createPortal)((0,d.jsx)(`div`,{ref:b,style:v,className:Z(`rb-popover-layer p1 absolute top-(--panel-top) left-(--panel-left)`,`w-(--datepicker-w) max-w-[calc(100vw-var(--sp-m))]`,`flex flex-col overflow-hidden rounded-(--r-m) bg-(--surface) p-(--sp-xs) shadow-(--shadow-lg)`,_.placement===`top`&&`-translate-y-full`),children:(0,d.jsx)(uS,{mode:`single`,fixedWeeks:!0,showOutsideDays:!0,weekStartsOn:1,selected:e.date.toDate(),defaultMonth:e.date.toDate(),disabled:C.length?C:void 0,onSelect:e=>{e&&l?.((0,a.default)(e)),h()}})}),document.body):null;return(0,d.jsxs)(`span`,{className:`absolute z-2 block`,style:{left:`${e.leftPct}%`,top:`50%`,transform:c===`start`?`translate(0, -50%)`:c===`end`?`translate(-100%, -50%)`:`translate(-50%, -50%)`},children:[r?(0,d.jsx)(gC,{content:r,placement:`bottom`,children:w}):w,T]})}var FW=.4,IW=.5,LW=.01;function RW(e,t,n){if(n)return{start:n.startDate,end:n.endDate};let r=e[0].startDate,i=e[e.length-1],a=e=>!!(t&&e.isSame(t,`day`));if(!a(i.endDate))return{start:r,end:i.endDate};let o=e.map(e=>e.endDate).filter(e=>!a(e)).reduce((e,t)=>t.isAfter(e)?t:e,r),s=i.startDate.add(30,`day`);return{start:r,end:o.isAfter(s)?o:s}}function zW(e,t,n){let{start:r,end:i}=RW(e,t,n),a=Math.max(1,i.diff(r,`day`)),o=e=>!!(t&&e.isSame(t,`day`)),s=e=>{if(o(e))return 100;let t=e.diff(r,`day`);return Math.max(0,Math.min(100,t/a*100))},c=[],l=0;return e.forEach((e,t)=>{let n=Math.max(l,s(e.startDate)),r=s(e.endDate);n-l>LW&&c.push({type:`gap`,index:t,startPct:l,widthPct:n-l});let i=Math.min(100-n,Math.max(IW,r-n));c.push({type:`segment`,index:t,startPct:n,widthPct:i}),l=n+i}),100-l>LW&&c.push({type:`gap`,index:e.length,startPct:l,widthPct:100-l}),c}function BW(e,t,n={}){if(n.proportional)return zW(e,n.indefiniteDate,n.domain);if(!t){let t=100/e.length;return e.map((e,n)=>({type:`segment`,index:n,startPct:n*t,widthPct:t}))}let r=e.length-1,i=100/(e.length+r*FW),a=[],o=0;return e.forEach((e,t)=>{if(t>0){let e=i*FW;a.push({type:`gap`,index:t,startPct:o,widthPct:e}),o+=e}a.push({type:`segment`,index:t,startPct:o,widthPct:i}),o+=i}),a}function VW(e,t,n){let r=[];e.forEach((i,a)=>{let o=a>0?e[a-1]:null,s=n&&o!==null;if(o&&s){let e=t[a-1];r.push({key:`${o.id}-end`,kind:`end`,date:o.endDate,leftPct:e.startPct+e.widthPct,segmentIndex:a-1,previousIndex:null})}r.push({key:`${i.id}-start`,kind:o&&!s?`shared`:`start`,date:i.startDate,leftPct:t[a].startPct,segmentIndex:a,previousIndex:o?a-1:null})});let i=e.length-1;return r.push({key:`${e[i].id}-end`,kind:`end`,date:e[i].endDate,leftPct:100,segmentIndex:i,previousIndex:null}),r}function HW(e,t,n,r=!1){let i=t[e.segmentIndex],a=+!r;if(e.kind===`end`){let r=t[e.segmentIndex+1];return{min:i.startDate,max:n&&r?r.startDate.subtract(a,`day`):null}}let o=e.previousIndex===null?null:t[e.previousIndex];return{min:o?e.kind===`shared`?o.startDate.add(a,`day`):o.endDate.add(a,`day`):null,max:i.endDate}}var UW=[`#EAB300`,`#8A9A00`,`#50E300`,`#00A85A`,`#00D5EE`,`#008CF0`],WW=`#90a4ae`,GW=`h-full bg-(--g-200)`,KW=5.5,qW=8,JW=e=>e?.isValid?.()?e.format(`DD/MM/YYYY`):``;function YW(e,t){let n={},r=0;return e.forEach(e=>{if(e.color)return;let i=String(e.id);n[i]||(n[i]=t[r++%t.length]??WW)}),n}function XW(e,t){return e.color??t[String(e.id)]??WW}function ZW(e){return typeof e.label==`string`&&e.label.trim()?e.label:null}function QW(e,t,n){let r=ZW(e);if(!r)return!1;let i=r.length*KW+qW;return n*t/100>=i}function $W({segments:e,mode:t=`simple`,external_labels:n,legend:r=!1,compactRange:i,tooltips:a=!0,startBoundary:o,endBoundary:s,colors:c=UW,formatDate:u=JW,segmentTooltip:f,boundaryTooltip:p,onSegmentClick:m,onBoundaryClick:h,allowGaps:g=!1,scale:_=`equal`,editableBoundaries:v=!1,exclusiveEnd:y=!1,indefiniteDate:b,indefiniteLabel:x=`Indefinido`,onBoundaryDateChange:S,className:C}){let w=(0,l.useRef)(null),[T,E]=(0,l.useState)(0);if((0,l.useEffect)(()=>{let e=w.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>E(e.clientWidth);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]),e.length===0)return null;let D=YW(e,c),O=BW(e,g,{proportional:_===`proportional`,indefiniteDate:b}),k=O.filter(e=>e.type===`segment`),A=VW(e,k,g),j=v&&!!S,M=A.length-1,N=e=>!!(b&&e.isSame(b,`day`)),P=e=>N(e)?x:u(e),F=n?.fecha_inicio??u(i?.startDate??e[0].startDate),I=n?.fecha_fin??P(i?.endDate??e[e.length-1].endDate),ee=BW(e,!0,{proportional:!0,indefiniteDate:b,domain:i}),L=(e,t)=>e.tooltip??f?.(e,t)??(0,d.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,d.jsx)(`strong`,{children:e.label??`—`}),(0,d.jsxs)(`span`,{children:[u(e.startDate),` -`,` `,P(e.endDate)]})]});return t===`compact`?(0,d.jsxs)(`div`,{className:Z(`flex w-full min-w-0 flex-col rounded-md bg-black/5`,C),style:{padding:`0.75rem 0.5rem`,rowGap:`0.5rem`},children:[(0,d.jsxs)(`div`,{className:`flex w-full items-center gap-3`,children:[(0,d.jsx)(`span`,{className:`flex shrink-0 flex-col items-center gap-1 text-(--muted,#666)`,"aria-label":`Fecha de inicio`,children:(0,d.jsx)(`span`,{className:`text-xs font-semibold whitespace-nowrap`,children:F})}),(0,d.jsxs)(`div`,{ref:w,className:`relative min-w-0 flex-1`,style:{height:`2.25rem`,minWidth:`6.25rem`},children:[(0,d.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 rounded-full bg-(--g-200)`,style:{height:`0.375rem`}}),ee.map(t=>{if(t.type===`gap`)return null;let n=e[t.index],r=QW(n,t.widthPct,T)?ZW(n):null,i=(0,d.jsx)(`div`,{className:`h-3 w-full rounded-full border border-(--surface) shadow-[0_0_0_1px_color-mix(in_srgb,currentColor_34%,transparent)]`,style:{color:XW(n,D),backgroundColor:XW(n,D)}}),o=(0,d.jsxs)(`div`,{className:`relative h-full w-full`,children:[r?(0,d.jsx)(`span`,{className:`absolute bottom-5 left-1/2 z-10 -translate-x-1/2 whitespace-nowrap text-[0.825rem] font-semibold leading-none text-(--text)`,children:r}):null,(0,d.jsx)(`div`,{className:`absolute inset-x-0 bottom-0`,children:i})]});return(0,d.jsx)(`div`,{className:`absolute bottom-0`,style:{left:`${t.startPct}%`,width:`${t.widthPct}%`},children:a?(0,d.jsx)(gC,{content:L(n,t.index),placement:`bottom`,multiline:!0,triggerClassName:`block h-9 w-full`,children:o}):(0,d.jsx)(l.Fragment,{children:o})},`compact-segment-${n.id}`)})]}),(0,d.jsx)(`span`,{className:`flex shrink-0 flex-col items-center gap-1 text-(--muted,#666)`,"aria-label":`Fecha de fin`,children:(0,d.jsx)(`span`,{className:`text-xs font-semibold whitespace-nowrap`,children:I})})]}),r?(0,d.jsx)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-2`,children:e.map(e=>(0,d.jsxs)(`span`,{className:`flex items-center gap-2 text-sm text-(--text)`,children:[(0,d.jsx)(`span`,{"aria-hidden":`true`,className:`size-2.5 shrink-0 rounded-full`,style:{backgroundColor:XW(e,D)}}),(0,d.jsx)(`span`,{children:e.label??`—`})]},`legend-${e.id}`))}):null]}):(0,d.jsxs)(`div`,{className:Z(`flex w-full min-w-0 flex-col rounded-md bg-black/5`,C),style:{padding:`0.75rem 0.5rem`,rowGap:`0.25rem`},children:[(0,d.jsx)(`div`,{className:`relative w-full`,style:{height:`1.5rem`},children:e.map((e,t)=>(0,d.jsx)(NW,{segment:e,index:t,color:XW(e,D),leftPct:k[t].startPct+k[t].widthPct/2,tooltip:e.tooltip??f?.(e,t)??null,onClick:m?(t,n)=>m({segment:e,index:t,anchorEl:n}):void 0},e.id))}),(0,d.jsxs)(`div`,{className:`relative flex w-full items-center`,style:{height:`2rem`},children:[(0,d.jsx)(`div`,{className:`flex w-full overflow-hidden rounded-md`,style:{height:`0.375rem`},children:O.map(t=>t.type===`gap`?(0,d.jsx)(`div`,{style:{width:`${t.widthPct}%`},className:GW},`gap-${t.index}`):(0,d.jsx)(`div`,{style:{width:`${t.widthPct}%`,backgroundColor:XW(e[t.index],D)},className:`h-full`},e[t.index].id))}),A.map((t,n)=>{let r=n===0,i=n===M,a=!r&&!i,c=N(t.date),{min:l,max:f}=HW(t,e,g,y),m=r?o?.color??XW(e[0],D):i?s?.color??WW:XW(e[t.segmentIndex],D),_=r?o?.tooltip??u(t.date):i?s?.tooltip??(c?x:u(t.date)):p?.({index:n,previousSegment:t.previousIndex===null?e[t.segmentIndex]:e[t.previousIndex],nextSegment:e[t.segmentIndex],anchorEl:null})??u(t.date);return(0,d.jsx)(PW,{boundary:t,isEdge:r||i,color:m,tooltip:_,editable:j&&!c,minDate:l,maxDate:f,align:r?`start`:i?`end`:`center`,onDateChange:e=>S?.({kind:t.kind,date:e,segmentIndex:t.segmentIndex,previousIndex:t.previousIndex,minDate:l,maxDate:f}),onClick:a&&h&&!j?r=>h({index:n,previousSegment:e[t.previousIndex??t.segmentIndex],nextSegment:e[t.segmentIndex],anchorEl:r}):void 0},t.key)})]}),(0,d.jsx)(`div`,{className:`relative w-full`,style:{height:`1.5rem`,marginTop:`0.25rem`},children:A.map((e,t)=>(0,d.jsx)(`span`,{className:`absolute whitespace-nowrap text-(--muted,#666)`,style:{left:`${e.leftPct}%`,transform:e.kind===`end`?`translateX(-100%)`:void 0,textAlign:e.kind===`end`?`right`:`left`,fontSize:`0.875rem`,lineHeight:`1.25rem`,fontWeight:400},children:t===0?o?.label??u(e.date):t===M?s?.label??(N(e.date)?x:u(e.date)):N(e.date)?x:u(e.date)},e.key))})]})}e.AuthLanguageDropdown=F_,e.AuthPasswordInput=tT,e.AuthShell=P_,e.AutoCustomCompleteField=Z_,e.Breadcrumbs=IT,e.CalendarChipIcon=Sw,e.Calendario=gw,e.Card=zw,e.CardContent=Hw,e.CardFooter=Uw,e.CardHeader=Bw,e.CardTitle=Vw,e.Checkbox=vC,e.ClockChipIcon=Cw,e.ConfirmDialog=eT,e.Core=zT,e.CoreContext=W,e.CoreProvider=BT,e.CustomDateControl=MC,e.CustomDatePicker=cC,e.CustomDateRangeCalendar=HC,e.CustomDateRangePicker=zC,e.CustomDateRangefield=IC,e.CustomDatefield=JS,e.CustomIndefiniteDatePicker=jC,e.CustomSelect=eE,e.CustomTimefield=PC,Object.defineProperty(e,"DGEnUs",{enumerable:!0,get:function(){return t.enUS}}),Object.defineProperty(e,"DGEsEs",{enumerable:!0,get:function(){return t.esES}}),e.DashboardShell=AT,e.EmptyState=bE,e.Form=lE,e.FormField=jE,e.FormGrid=AE,e.FormShell=EE,e.GoodRabbitDarkTheme=U,e.GoodRabbitLightTheme=de,e.Input=Kw,e.LegacyCustomTimefield=rE,e.MessageAlert=fE,e.PillsTabs=FE,e.RbPillsTabs=FE,e.Portal=Xw,e.RBButton=R_,e.Radio=Jw,e.RbContextMenu=yw,e.RbExcelTable=xU,e.RbIconButton=Gw,e.RbInlineChipField=Lw,e.RbList=ME,e.RbListItem=NE,e.RbStepper=Yw,e.RbTabPanel=LE,e.TabPanel=LE,e.RbTable=bD,e.RbTableToolbar=eD,e.RbToolbarActionButton=SU,e.RbToolbarActions=CU,e.RbToolbarDateRangeField=wU,e.RbToolbarMultiSelectField=DU,e.RbToolbarSearchField=kU,e.RbToolbarSelectField=MU,e.ShellContent=oT,e.Sidebar=Bp,e.SidebarContent=VU,e.SidebarFooter=UU,e.SidebarHeader=IU,e.SystemAlert=ET,e.Table=YT,e.Timeline=$W,e.Tooltip=gC,e.TopBar=dT,e.TopBarUserMenu=sT,e.TreePanel=fW,e.VirtualTree=MW,e.buildVirtualTreeIndex=mW,e.chekingSSOMS=j_,e.cn=Z,Object.defineProperty(e,"coreEnUS",{enumerable:!0,get:function(){return n.enUS}}),Object.defineProperty(e,"coreEsES",{enumerable:!0,get:function(){return n.esES}}),e.filterVirtualTreeItems=xW,e.findNodeById=QU,e.flattenTree=ZU,e.formatRbExcelDate=eU,e.formatRbExcelTime=tU,e.getExpandableNodeIds=$U,e.getNodeSelectionState=rW,e.getRbExcelValueAtPath=YH,e.getRbImageUrl=kp,e.getSelectableDescendantIds=tW,e.getSelectableSubtreeIds=eW,e.getVirtualTreeAncestorIds=hW,e.getVisibleVirtualTreeItems=_W,e.hasNodeChildren=XU,e.initializeAuth=M_,e.isNodeSelectable=JU,e.isNodeSelectionMutable=YU,e.isRbExcelEmptyValue=ZH,e.isValidRbExcelDate=rU,e.isValidRbExcelNumber=aU,e.isValidRbExcelTime=iU,e.normalizeHierarchicalSelection=nW,e.normalizeVirtualTreeSearch=vW,e.normalizeVirtualTreeSelection=wW,e.observeSSO=N_,e.parseRbExcelValue=nU,Object.defineProperty(e,"pickersEnUS",{enumerable:!0,get:function(){return r.enUS}}),Object.defineProperty(e,"pickersEsES",{enumerable:!0,get:function(){return r.esES}}),e.rbImages=Op,e.setRbExcelValueAtPath=XH,e.toggleExpandedNode=aW,e.toggleNodeSelection=iW,e.toggleVirtualTreeSelection=TW,e.useRbSystemAlert=OT,e.useSystemAlert=ZT,e.useTable=XT,e.useVirtualTreeState=EW});
412
+ `,children:[(0,d.jsx)(`div`,{className:Z(`size-10 animate-spin`,`rounded-full border-4`,`border-[color-mix(in_oklab,var(--text)_14%,transparent)]`,`border-t-(--text)`),"aria-hidden":`true`}),(0,d.jsx)(`span`,{className:`sr-only`,children:b})]}):null]})]})}function pW(e){return e?Array.from(e):[]}function mW(e){let t=[],n=new Map,r=new Set;function i(e,a,o){for(let s of e){if(n.has(s.id))throw Error(`VirtualTree requiere IDs únicos: ${String(s.id)}`);let e=!!s.children?.length,c={id:s.id,node:s,parentId:a,depth:o,hasChildren:e};t.push(c),n.set(s.id,c),e&&r.add(s.id),s.children?.length&&i(s.children,s.id,o+1)}}return i(e,null,0),{allItems:t,itemsById:n,expandableIds:r,rootIds:e.map(e=>e.id)}}function hW(e,t){let n=[],r=e.itemsById.get(t)?.parentId??null;for(;r!==null;)n.unshift(r),r=e.itemsById.get(r)?.parentId??null;return n}function gW(e,t,n){let r=e.parentId;for(;r!==null;){if(!n.has(r))return!1;r=t.itemsById.get(r)?.parentId??null}return!0}function _W(e,t){return e.allItems.filter(n=>gW(n,e,t))}function vW(e){return e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).toLocaleLowerCase().trim()}function yW(e,t,n){for(let r of hW(t,n))e.add(r)}function bW(e,t,n){let r=t.itemsById.get(n)?.depth;if(r===void 0)return;let i=t.allItems.findIndex(e=>e.id===n);for(let n=i+1;n<t.allItems.length;n+=1){let i=t.allItems[n];if(i.depth<=r)break;e.add(i.id)}}function xW(e,t,n){let r=vW(n);if(!r)return e.allItems;let i=new Set;for(let n of e.allItems)n.node.type===t&&vW(n.node.label).includes(r)&&(i.add(n.id),yW(i,e,n.id),t!==`work_position`&&bW(i,e,n.id));return e.allItems.filter(e=>i.has(e.id))}function SW(e){let t=new Set,n=new Set(e.map(e=>e.id));for(let r of e)r.parentId!==null&&n.has(r.parentId)&&t.add(r.parentId);return t}function CW(e,t,n){let r=new Set(t.map(e=>e.id));return t.filter(t=>{let i=t.parentId;for(;i!==null&&r.has(i);){if(!n.has(i))return!1;i=e.itemsById.get(i)?.parentId??null}return!0})}function wW(e,t,n){let r=pW(t).filter(t=>{let n=e.itemsById.get(t)?.node;return n?.type===`work_position`&&n.disabled!==!0});return n===`single`?r.slice(-1):Array.from(new Set(r))}function TW(e,t,n,r){let i=e.itemsById.get(n)?.node,a=wW(e,t,r);if(i?.type!==`work_position`||i.disabled)return a;if(r===`single`)return[n];let o=new Set(a);return o.has(n)?o.delete(n):o.add(n),Array.from(o)}function EW({items:e,selectionMode:t,selectedIds:n,defaultSelectedIds:r,onSelectionChange:i,expandedIds:a,defaultExpandedIds:o,defaultExpandAll:s=!1,onExpandedChange:c}){let u=l.default.useMemo(()=>mW(e),[e]),d=n!==void 0,f=a!==void 0,[p,m]=l.default.useState(()=>wW(u,r,t)),[h,g]=l.default.useState(()=>s?Array.from(u.expandableIds):o===void 0?u.rootIds.filter(e=>u.expandableIds.has(e)):pW(o)),_=l.default.useMemo(()=>wW(u,d?n:p,t),[u,p,n,d,t]),v=f?pW(a):h,y=l.default.useMemo(()=>new Set(v),[v]),b=l.default.useMemo(()=>new Set(_),[_]),x=l.default.useMemo(()=>_W(u,y),[y,u]),S=l.default.useCallback((e,t)=>{f||g(e),c?.(e,{nodeId:t,node:u.itemsById.get(t)?.node??null})},[f,u,c]),C=l.default.useCallback((e,t)=>{if(!u.expandableIds.has(e))return;let n=new Set(v);t?n.add(e):n.delete(e),S(Array.from(n),e)},[S,v,u.expandableIds]);return{index:u,visibleItems:x,expandedSet:y,selectedSet:b,selectedIds:_,toggleExpansion:l.default.useCallback(e=>{C(e,!y.has(e))},[y,C]),setItemExpansion:C,expandItems:l.default.useCallback(e=>{let t=new Set(v),n;for(let r of e)!u.expandableIds.has(r)||t.has(r)||(t.add(r),n??=r);n!==void 0&&S(Array.from(t),n)},[S,v,u.expandableIds]),expandAll:l.default.useCallback(()=>{let e=Array.from(u.expandableIds),t=e[0]??u.rootIds[0];t!==void 0&&S(e,t)},[S,u]),collapseAll:l.default.useCallback(()=>{let e=v[0]??u.rootIds[0];e!==void 0&&S([],e)},[S,v,u.rootIds]),expandAncestors:l.default.useCallback(e=>{let t=new Set(v);for(let n of hW(u,e))u.expandableIds.has(n)&&t.add(n);S(Array.from(t),e)},[S,v,u]),toggleSelection:l.default.useCallback(e=>{let n=TW(u,_,e,t);d||m(n),i?.(n,{nodeId:e,node:u.itemsById.get(e)?.node??null})},[u,_,i,d,t])}}var DW={subcompany:`S`,area:`A`,work_position:`P`},OW=[{value:`subcompany`,label:`Subcompañía`},{value:`area`,label:`Área`},{value:`work_position`,label:`Puesto`}];function kW({label:e,query:t}){let n=vW(e),r=vW(t),i=n.indexOf(r);return!r||i<0?e:(0,d.jsxs)(d.Fragment,{children:[e.slice(0,i),(0,d.jsx)(`mark`,{className:`rounded-sm bg-(--amarillo-light) text-inherit`,children:e.slice(i,i+t.length)}),e.slice(i+t.length)]})}function AW({ariaAttributes:e,index:t,style:n,items:r,expandedSet:i,selectedSet:a,selectionMode:o,selectionName:s,selectionDisabled:c,branchIds:l,filterType:u,query:f,expandLabel:p,collapseLabel:m,onToggleExpansion:h,onToggleSelection:g}){let _=r[t];if(!_)return null;let{node:v}=_,y=l?l.has(_.id):_.hasChildren,b=y&&i.has(_.id),x=a.has(_.id),S=v.type===`work_position`,C=c||v.disabled===!0,w=e=>{e.key===`ArrowRight`&&y&&!b||e.key===`ArrowLeft`&&y&&b?(e.preventDefault(),h(_.id)):(e.key===`Enter`||e.key===` `)&&S&&(e.preventDefault(),C||g(_.id))};return(0,d.jsxs)(`div`,{...e,role:`treeitem`,"aria-level":_.depth+1,"aria-expanded":y?b:void 0,"aria-selected":S?x:void 0,tabIndex:0,style:{...n,paddingLeft:`${12+_.depth*20}px`},className:Z(`flex min-w-0 items-center gap-2 px-3`,`outline-none transition-colors focus-visible:bg-(--interaction-hover)`,x&&`bg-(--interaction-selected)`,v.disabled&&`opacity-60`,v.className),onDoubleClick:()=>y&&h(_.id),onKeyDown:w,children:[(0,d.jsx)(`div`,{className:`flex size-7 shrink-0 items-center justify-center`,children:y?(0,d.jsx)(Gw,{type:`button`,size:`s`,"aria-label":`${b?m:p}: ${v.label}`,"aria-expanded":b,onClick:()=>h(_.id),children:(0,d.jsx)(KU,{name:b?`arrowUp`:`arrow`,size:`s`,className:`text-(--text)`})}):null}),S?o===`multiple`?(0,d.jsx)(vC,{size:`s`,checked:x,disabled:C,"aria-label":`Seleccionar ${v.label}`,onChange:()=>g(_.id)}):(0,d.jsx)(Jw,{size:`s`,name:s,checked:x,disabled:C,"aria-label":`Seleccionar ${v.label}`,onChange:()=>g(_.id)}):(0,d.jsx)(`span`,{"aria-hidden":`true`,className:`flex size-5 shrink-0 items-center justify-center rounded-sm bg-(--g-100) p3 font-semibold text-(--muted)`,children:DW[v.type]}),(0,d.jsx)(`span`,{className:Z(`p2 min-w-0 flex-1 truncate text-(--text)`,v.type===`subcompany`&&`font-semibold`),children:(0,d.jsx)(kW,{label:v.label,query:v.type===u?f:``})})]})}function jW({ariaLabel:e,items:t=[],selectionMode:n=`single`,selectedIds:r,defaultSelectedIds:i,onSelectionChange:a,expandedIds:o,defaultExpandedIds:s,defaultExpandAll:c=!1,onExpandedChange:u,selectionDisabled:f=!1,filterTypeLabel:p=`Buscar por`,searchPlaceholder:m=`Ingresa una palabra`,clearSearchLabel:h=`Limpiar búsqueda`,subcompanyLabel:g=`Subcompañía`,areaLabel:_=`Área`,workPositionLabel:v=`Puesto`,emptyText:y=`No hay elementos disponibles`,noResultsText:b=`No se encontró un valor`,expandLabel:x=`Expandir`,collapseLabel:S=`Contraer`,height:C=360,rowHeight:w=48,overscanCount:T=5,loading:E=!1,loadingLabel:D=`Cargando`,className:O,headerClassName:k,bodyClassName:A},j){let M=(0,ee.useListRef)(null),N=l.default.useId(),P=l.default.useRef(null),[F,I]=l.default.useState(`work_position`),[L,R]=l.default.useState(``),[te,ne]=l.default.useState(``),{index:re,visibleItems:ie,expandedSet:z,selectedSet:ae,toggleExpansion:B,setItemExpansion:V,expandItems:H,expandAll:oe,collapseAll:se,expandAncestors:ce,toggleSelection:le}=EW({items:t,selectionMode:n,selectedIds:r,defaultSelectedIds:i,onSelectionChange:a,expandedIds:o,defaultExpandedIds:s,defaultExpandAll:c,onExpandedChange:u});l.default.useEffect(()=>{let e=window.setTimeout(()=>ne(L),200);return()=>window.clearTimeout(e)},[L]);let ue=te.trim().length>0,U=l.default.useMemo(()=>ue?xW(re,F,te):null,[te,F,re,ue]),de=l.default.useMemo(()=>U?SW(U):null,[U]),W=l.default.useMemo(()=>U?CW(re,U,z):ie,[z,U,re,ie]),fe=ue?`${F}:${te.trim()}`:``,pe=l.default.useRef(``);l.default.useEffect(()=>{pe.current!==fe&&(pe.current=fe,de?.size&&H(Array.from(de)))},[de,H,fe]),l.default.useEffect(()=>{let e=P.current;if(e===null)return;let t=W.findIndex(t=>t.id===e);t<0||(P.current=null,M.current?.scrollToRow({index:t,align:`smart`}))},[W,M]);let me=l.default.useCallback(e=>{let t=W.findIndex(t=>t.id===e);t>=0&&M.current?.scrollToRow({index:t,align:`smart`})},[W,M]);l.default.useImperativeHandle(j,()=>({expandAll:oe,collapseAll:se,setItemExpansion:V,focusItem:e=>{P.current=e,ce(e)},getItem:e=>re.itemsById.get(e)?.node,scrollToItem:me}),[se,oe,ce,re.itemsById,me,V]);let he=l.default.useMemo(()=>({items:W,expandedSet:z,selectedSet:ae,selectionMode:n,selectionName:N,selectionDisabled:f,branchIds:de,filterType:F,query:ue?te.trim():``,expandLabel:x,collapseLabel:S,onToggleExpansion:B,onToggleSelection:le}),[de,S,te,W,x,z,F,ue,ae,N,f,n,B,le]),ge=l.default.useCallback((e,t)=>t.items[e]?.id??e,[]),_e=e??`Árbol virtual`,ve=t.length>0,ye=W.length>0;return(0,d.jsxs)(`section`,{"aria-busy":E||void 0,className:Z(`relative flex w-full min-w-0 flex-col overflow-hidden rounded-(--r-m)`,`border border-(--border) bg-(--surface)`,O),children:[(0,d.jsxs)(`header`,{className:Z(`grid gap-2 bg-(--base-dark) px-5 py-4 text-(--on-dark-text) sm:grid-cols-[minmax(0,1fr)_15rem]`,k),children:[(0,d.jsxs)(`div`,{className:`relative min-w-10 w-full`,children:[(0,d.jsx)(Kw,{value:L,placeholder:m,white:!1,className:`pr-2`,onChange:e=>R(e.target.value)}),L&&(0,d.jsx)(Gw,{type:`button`,size:`s`,"aria-label":h,disabled:!L,onClick:()=>R(``),className:`absolute bottom-1.5 right-2 z-10 size-8 top-0`,children:(0,d.jsx)(`img`,{src:Op.close,alt:``,className:`size-4`})})]}),(0,d.jsx)(Z_,{selectionMode:`single`,label:p,placeholder:`Seleccionar filtro`,values:OW.map(e=>({...e,label:e.value===`subcompany`?g:e.value===`area`?_:v})),value:F,setValue:e=>{OW.some(t=>t.value===e)&&I(e)},clearLabel:`Mantener filtro seleccionado`,white:!1})]}),(0,d.jsx)(`div`,{className:Z(`grid min-h-0 gap-2 p-4`,A),children:(0,d.jsxs)(`div`,{className:`relative min-h-0 overflow-hidden rounded-(--r-s) border border-(--border)`,children:[ve?ye?(0,d.jsx)(ee.List,{listRef:M,role:`tree`,"aria-label":_e,"aria-multiselectable":n===`multiple`||void 0,rowComponent:AW,rowCount:W.length,rowHeight:w,rowProps:he,rowKey:ge,overscanCount:T,style:{height:C}}):(0,d.jsx)(`div`,{role:`status`,className:`p2 flex items-center justify-center px-3 text-center text-(--muted)`,style:{height:C},children:b}):(0,d.jsx)(`div`,{className:`p2 flex items-center justify-center px-4 text-center text-(--muted)`,style:{height:C},children:y}),E?(0,d.jsx)(`div`,{role:`status`,"aria-live":`polite`,className:`p2 absolute inset-0 flex items-center justify-center bg-(--loading-overlay)`,children:D}):null]})})]})}var MW=l.default.forwardRef(jW);function NW({segment:e,index:t,color:n,leftPct:r,tooltip:i,align:a=`center`,onClick:o}){let s=!!o,c=(0,d.jsx)(`span`,{role:s?`button`:void 0,tabIndex:s?0:void 0,onClick:s?e=>o?.(t,e.currentTarget):void 0,onKeyDown:s?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o?.(t,e.currentTarget))}:void 0,style:{color:n,fontSize:`1rem`,lineHeight:`1.25rem`},className:Z(`block whitespace-nowrap font-semibold`,s&&`cursor-pointer hover:underline`),children:e.label??`—`});return(0,d.jsx)(`span`,{className:`absolute`,style:{left:`${r}%`,transform:a===`start`?void 0:a===`end`?`translateX(-100%)`:`translateX(-50%)`},children:i?(0,d.jsx)(gC,{content:i,placement:`bottom`,children:c}):c})}function PW(e){return{backgroundColor:e,border:`0.125rem solid ${e}`,boxSizing:`border-box`}}function FW({boundary:e,isEdge:t,color:n,tooltip:r,editable:i,minDate:o,maxDate:s,align:c=`center`,onDateChange:l,onClick:u}){let{open:p,ready:m,close:h,toggle:g,position:_,anchorVars:v,triggerRef:y,panelRef:b}=IS(),x=t?`1.25rem`:`1rem`,S=i||!!u,C=[];o&&C.push({before:o.toDate()}),s&&C.push({after:s.toDate()});let w=(0,d.jsx)(`button`,{ref:y,type:`button`,"aria-label":i?`Editar fecha ${e.date.format(`DD/MM/YYYY`)}`:e.date.format(`DD/MM/YYYY`),"aria-haspopup":i?`dialog`:void 0,"aria-expanded":i?p:void 0,disabled:!S,onClick:e=>{if(i){g();return}u?.(e.currentTarget)},className:Z(`block rounded-full transition-transform duration-150`,S&&`cursor-pointer hover:scale-110`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--ring)`),style:{width:x,height:x,...PW(n)}}),T=i&&p&&m&&typeof document<`u`?(0,f.createPortal)((0,d.jsx)(`div`,{ref:b,style:v,className:Z(`rb-popover-layer p1 absolute top-(--panel-top) left-(--panel-left)`,`w-(--datepicker-w) max-w-[calc(100vw-var(--sp-m))]`,`flex flex-col overflow-hidden rounded-(--r-m) bg-(--surface) p-(--sp-xs) shadow-(--shadow-lg)`,_.placement===`top`&&`-translate-y-full`),children:(0,d.jsx)(uS,{mode:`single`,fixedWeeks:!0,showOutsideDays:!0,weekStartsOn:1,selected:e.date.toDate(),defaultMonth:e.date.toDate(),disabled:C.length?C:void 0,onSelect:e=>{e&&l?.((0,a.default)(e)),h()}})}),document.body):null;return(0,d.jsxs)(`span`,{className:`absolute z-2 block`,style:{left:`${e.leftPct}%`,top:`50%`,transform:c===`start`?`translate(0, -50%)`:c===`end`?`translate(-100%, -50%)`:`translate(-50%, -50%)`},children:[r?(0,d.jsx)(gC,{content:r,placement:`bottom`,children:w}):w,T]})}var IW=.4,LW=.5,RW=.01;function zW(e,t,n){if(n)return{start:n.startDate,end:n.endDate};let r=e[0].startDate,i=e[e.length-1],a=e=>!!(t&&e.isSame(t,`day`));if(!a(i.endDate))return{start:r,end:i.endDate};let o=e.map(e=>e.endDate).filter(e=>!a(e)).reduce((e,t)=>t.isAfter(e)?t:e,r),s=i.startDate.add(30,`day`);return{start:r,end:o.isAfter(s)?o:s}}function BW(e,t,n){let{start:r,end:i}=zW(e,t,n),a=Math.max(1,i.diff(r,`day`)),o=e=>!!(t&&e.isSame(t,`day`)),s=e=>{if(o(e))return 100;let t=e.diff(r,`day`);return Math.max(0,Math.min(100,t/a*100))},c=[],l=0;return e.forEach((e,t)=>{let n=Math.max(l,s(e.startDate)),r=s(e.endDate);n-l>RW&&c.push({type:`gap`,index:t,startPct:l,widthPct:n-l});let i=Math.min(100-n,Math.max(LW,r-n));c.push({type:`segment`,index:t,startPct:n,widthPct:i}),l=n+i}),100-l>RW&&c.push({type:`gap`,index:e.length,startPct:l,widthPct:100-l}),c}function VW(e,t,n={}){if(n.proportional)return BW(e,n.indefiniteDate,n.domain);if(!t){let t=100/e.length;return e.map((e,n)=>({type:`segment`,index:n,startPct:n*t,widthPct:t}))}let r=e.slice(1).filter((t,r)=>{let i=e[r];return!(n.mergeAdjacentBoundaries&&i.endDate.add(1,`day`).isSame(t.startDate,`day`))}).length,i=100/(e.length+r*IW),a=[],o=0;return e.forEach((t,r)=>{let s=r>0?e[r-1]:null,c=n.mergeAdjacentBoundaries&&!!(s&&s.endDate.add(1,`day`).isSame(t.startDate,`day`));if(r>0&&!c){let e=i*IW;a.push({type:`gap`,index:r,startPct:o,widthPct:e}),o+=e}a.push({type:`segment`,index:r,startPct:o,widthPct:i}),o+=i}),a}function HW(e,t,n,r=!1){let i=[];e.forEach((a,o)=>{let s=o>0?e[o-1]:null,c=!!(s&&s.endDate.add(1,`day`).isSame(a.startDate,`day`)),l=r&&c,u=n&&s!==null&&!l;if(s&&u){let e=t[o-1];i.push({key:`${s.id}-end`,kind:`end`,date:s.endDate,leftPct:e.startPct+e.widthPct,segmentIndex:o-1,previousIndex:null})}i.push({key:`${a.id}-start`,kind:s&&(!u||l)?`shared`:`start`,date:a.startDate,leftPct:s&&l?(t[o-1].startPct+t[o-1].widthPct+t[o].startPct)/2:t[o].startPct,segmentIndex:o,previousIndex:s?o-1:null})});let a=e.length-1;return i.push({key:`${e[a].id}-end`,kind:`end`,date:e[a].endDate,leftPct:100,segmentIndex:a,previousIndex:null}),i}function UW(e,t,n,r=!1){let i=t[e.segmentIndex],a=+!r;if(e.kind===`end`){let r=t[e.segmentIndex+1];return{min:i.startDate,max:n&&r?r.startDate.subtract(a,`day`):null}}let o=e.previousIndex===null?null:t[e.previousIndex];return{min:o?e.kind===`shared`?o.startDate.add(a,`day`):o.endDate.add(a,`day`):null,max:i.endDate}}var WW=[`#EAB300`,`#8A9A00`,`#50E300`,`#00A85A`,`#00D5EE`,`#008CF0`],GW=`#90a4ae`,KW=`h-full bg-(--g-200)`,qW=5.5,JW=8,YW=e=>e?.isValid?.()?e.format(`DD/MM/YYYY`):``;function XW(e,t){let n={},r=0;return e.forEach(e=>{if(e.color)return;let i=String(e.id);n[i]||(n[i]=t[r++%t.length]??GW)}),n}function ZW(e,t){return e.color??t[String(e.id)]??GW}function QW(e){return typeof e.label==`string`&&e.label.trim()?e.label:null}function $W(e,t,n){let r=QW(e);if(!r)return!1;let i=r.length*qW+JW;return n*t/100>=i}function eG({segments:e,mode:t=`simple`,external_labels:n,legend:r=!1,compactRange:i,tooltips:a=!0,startBoundary:o,endBoundary:s,colors:c=WW,formatDate:u=YW,segmentTooltip:f,boundaryTooltip:p,onSegmentClick:m,onBoundaryClick:h,allowGaps:g=!1,mergeAdjacentBoundaries:_=!1,scale:v=`equal`,editableBoundaries:y=!1,exclusiveEnd:b=!1,indefiniteDate:x,indefiniteLabel:S=`Indefinido`,onBoundaryDateChange:C,className:w}){let T=(0,l.useRef)(null),[E,D]=(0,l.useState)(0);if((0,l.useEffect)(()=>{let e=T.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>D(e.clientWidth);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]),e.length===0)return null;let O=XW(e,c),k=VW(e,g,{proportional:v===`proportional`,indefiniteDate:x,mergeAdjacentBoundaries:_}),A=k.filter(e=>e.type===`segment`),j=HW(e,A,g,_),M=y&&!!C,N=j.length-1,P=e=>!!(x&&e.isSame(x,`day`)),F=e=>P(e)?S:u(e),I=n?.fecha_inicio??u(i?.startDate??e[0].startDate),ee=n?.fecha_fin??F(i?.endDate??e[e.length-1].endDate),L=VW(e,!0,{proportional:!0,indefiniteDate:x,domain:i}),R=(e,t)=>e.tooltip??f?.(e,t)??(0,d.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,d.jsx)(`strong`,{children:e.label??`—`}),(0,d.jsxs)(`span`,{children:[u(e.startDate),` -`,` `,F(e.endDate)]})]});return t===`compact`?(0,d.jsxs)(`div`,{className:Z(`flex w-full min-w-0 flex-col rounded-md bg-black/5`,w),style:{padding:`0.75rem 0.5rem`,rowGap:`0.5rem`},children:[(0,d.jsxs)(`div`,{className:`flex w-full items-center gap-3`,children:[(0,d.jsx)(`span`,{className:`flex shrink-0 flex-col items-center gap-1 text-(--muted,#666)`,"aria-label":`Fecha de inicio`,children:(0,d.jsx)(`span`,{className:`text-xs font-semibold whitespace-nowrap`,children:I})}),(0,d.jsxs)(`div`,{ref:T,className:`relative min-w-0 flex-1`,style:{height:`2.25rem`,minWidth:`6.25rem`},children:[(0,d.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 rounded-full bg-(--g-200)`,style:{height:`0.375rem`}}),L.map(t=>{if(t.type===`gap`)return null;let n=e[t.index],r=$W(n,t.widthPct,E)?QW(n):null,i=(0,d.jsx)(`div`,{className:`h-3 w-full rounded-full border border-(--surface) shadow-[0_0_0_1px_color-mix(in_srgb,currentColor_34%,transparent)]`,style:{color:ZW(n,O),backgroundColor:ZW(n,O)}}),o=(0,d.jsxs)(`div`,{className:`relative h-full w-full`,children:[r?(0,d.jsx)(`span`,{className:`absolute bottom-5 left-1/2 z-10 -translate-x-1/2 whitespace-nowrap text-[0.825rem] font-semibold leading-none text-(--text)`,children:r}):null,(0,d.jsx)(`div`,{className:`absolute inset-x-0 bottom-0`,children:i})]});return(0,d.jsx)(`div`,{className:`absolute bottom-0`,style:{left:`${t.startPct}%`,width:`${t.widthPct}%`},children:a?(0,d.jsx)(gC,{content:R(n,t.index),placement:`bottom`,multiline:!0,triggerClassName:`block h-9 w-full`,children:o}):(0,d.jsx)(l.Fragment,{children:o})},`compact-segment-${n.id}`)})]}),(0,d.jsx)(`span`,{className:`flex shrink-0 flex-col items-center gap-1 text-(--muted,#666)`,"aria-label":`Fecha de fin`,children:(0,d.jsx)(`span`,{className:`text-xs font-semibold whitespace-nowrap`,children:ee})})]}),r?(0,d.jsx)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-2`,children:e.map(e=>(0,d.jsxs)(`span`,{className:`flex items-center gap-2 text-sm text-(--text)`,children:[(0,d.jsx)(`span`,{"aria-hidden":`true`,className:`size-2.5 shrink-0 rounded-full`,style:{backgroundColor:ZW(e,O)}}),(0,d.jsx)(`span`,{children:e.label??`—`})]},`legend-${e.id}`))}):null]}):(0,d.jsxs)(`div`,{className:Z(`flex w-full min-w-0 flex-col rounded-md bg-black/5`,w),style:{padding:`0.75rem 0.5rem`,rowGap:`0.25rem`},children:[(0,d.jsx)(`div`,{className:`relative w-full`,style:{height:`1.5rem`},children:e.map((e,t)=>(0,d.jsx)(NW,{segment:e,index:t,color:ZW(e,O),leftPct:A[t].startPct+A[t].widthPct/2,tooltip:e.tooltip??f?.(e,t)??null,onClick:m?(t,n)=>m({segment:e,index:t,anchorEl:n}):void 0},e.id))}),(0,d.jsxs)(`div`,{className:`relative flex w-full items-center`,style:{height:`2rem`},children:[(0,d.jsx)(`div`,{className:`flex w-full overflow-hidden rounded-md`,style:{height:`0.375rem`},children:k.map(t=>t.type===`gap`?(0,d.jsx)(`div`,{style:{width:`${t.widthPct}%`},className:KW},`gap-${t.index}`):(0,d.jsx)(`div`,{style:{width:`${t.widthPct}%`,backgroundColor:ZW(e[t.index],O)},className:`h-full`},e[t.index].id))}),j.map((t,n)=>{let r=n===0,i=n===N,a=!r&&!i,c=P(t.date),{min:l,max:f}=UW(t,e,g,b),m=r?o?.color??ZW(e[0],O):i?s?.color??GW:ZW(e[t.segmentIndex],O),_=r?o?.tooltip??u(t.date):i?s?.tooltip??(c?S:u(t.date)):p?.({index:n,previousSegment:t.previousIndex===null?e[t.segmentIndex]:e[t.previousIndex],nextSegment:e[t.segmentIndex],anchorEl:null})??u(t.date);return(0,d.jsx)(FW,{boundary:t,isEdge:r||i,color:m,tooltip:_,editable:M&&!c,minDate:l,maxDate:f,align:r?`start`:i?`end`:`center`,onDateChange:e=>C?.({kind:t.kind,date:e,segmentIndex:t.segmentIndex,previousIndex:t.previousIndex,minDate:l,maxDate:f}),onClick:a&&h&&!M?r=>h({index:n,previousSegment:e[t.previousIndex??t.segmentIndex],nextSegment:e[t.segmentIndex],anchorEl:r}):void 0},t.key)})]}),(0,d.jsx)(`div`,{className:`relative w-full`,style:{height:`1.5rem`,marginTop:`0.25rem`},children:j.map((e,t)=>(0,d.jsx)(`span`,{className:`absolute whitespace-nowrap text-(--muted,#666)`,style:{left:`${e.leftPct}%`,transform:e.kind===`end`?`translateX(-100%)`:void 0,textAlign:e.kind===`end`?`right`:`left`,fontSize:`0.875rem`,lineHeight:`1.25rem`,fontWeight:400},children:t===0?o?.label??u(e.date):t===N?s?.label??(P(e.date)?S:u(e.date)):P(e.date)?S:u(e.date)},e.key))})]})}e.AuthLanguageDropdown=F_,e.AuthPasswordInput=tT,e.AuthShell=P_,e.AutoCustomCompleteField=Z_,e.Breadcrumbs=IT,e.CalendarChipIcon=Sw,e.Calendario=gw,e.Card=zw,e.CardContent=Hw,e.CardFooter=Uw,e.CardHeader=Bw,e.CardTitle=Vw,e.Checkbox=vC,e.ClockChipIcon=Cw,e.ConfirmDialog=eT,e.Core=zT,e.CoreContext=W,e.CoreProvider=BT,e.CustomDateControl=MC,e.CustomDatePicker=cC,e.CustomDateRangeCalendar=HC,e.CustomDateRangePicker=zC,e.CustomDateRangefield=IC,e.CustomDatefield=JS,e.CustomIndefiniteDatePicker=jC,e.CustomSelect=eE,e.CustomTimefield=PC,Object.defineProperty(e,"DGEnUs",{enumerable:!0,get:function(){return t.enUS}}),Object.defineProperty(e,"DGEsEs",{enumerable:!0,get:function(){return t.esES}}),e.DashboardShell=AT,e.EmptyState=bE,e.Form=lE,e.FormField=jE,e.FormGrid=AE,e.FormShell=EE,e.GoodRabbitDarkTheme=U,e.GoodRabbitLightTheme=de,e.Input=Kw,e.LegacyCustomTimefield=rE,e.MessageAlert=fE,e.PillsTabs=FE,e.RbPillsTabs=FE,e.Portal=Xw,e.RBButton=R_,e.Radio=Jw,e.RbContextMenu=yw,e.RbExcelTable=xU,e.RbIconButton=Gw,e.RbInlineChipField=Lw,e.RbList=ME,e.RbListItem=NE,e.RbStepper=Yw,e.RbTabPanel=LE,e.TabPanel=LE,e.RbTable=bD,e.RbTableToolbar=eD,e.RbToolbarActionButton=SU,e.RbToolbarActions=CU,e.RbToolbarDateRangeField=wU,e.RbToolbarMultiSelectField=DU,e.RbToolbarSearchField=kU,e.RbToolbarSelectField=MU,e.ShellContent=oT,e.Sidebar=Bp,e.SidebarContent=VU,e.SidebarFooter=UU,e.SidebarHeader=IU,e.SystemAlert=ET,e.Table=YT,e.Timeline=eG,e.Tooltip=gC,e.TopBar=dT,e.TopBarUserMenu=sT,e.TreePanel=fW,e.VirtualTree=MW,e.buildVirtualTreeIndex=mW,e.chekingSSOMS=j_,e.cn=Z,Object.defineProperty(e,"coreEnUS",{enumerable:!0,get:function(){return n.enUS}}),Object.defineProperty(e,"coreEsES",{enumerable:!0,get:function(){return n.esES}}),e.filterVirtualTreeItems=xW,e.findNodeById=QU,e.flattenTree=ZU,e.formatRbExcelDate=eU,e.formatRbExcelTime=tU,e.getExpandableNodeIds=$U,e.getNodeSelectionState=rW,e.getRbExcelValueAtPath=YH,e.getRbImageUrl=kp,e.getSelectableDescendantIds=tW,e.getSelectableSubtreeIds=eW,e.getVirtualTreeAncestorIds=hW,e.getVisibleVirtualTreeItems=_W,e.hasNodeChildren=XU,e.initializeAuth=M_,e.isNodeSelectable=JU,e.isNodeSelectionMutable=YU,e.isRbExcelEmptyValue=ZH,e.isValidRbExcelDate=rU,e.isValidRbExcelNumber=aU,e.isValidRbExcelTime=iU,e.normalizeHierarchicalSelection=nW,e.normalizeVirtualTreeSearch=vW,e.normalizeVirtualTreeSelection=wW,e.observeSSO=N_,e.parseRbExcelValue=nU,Object.defineProperty(e,"pickersEnUS",{enumerable:!0,get:function(){return r.enUS}}),Object.defineProperty(e,"pickersEsES",{enumerable:!0,get:function(){return r.esES}}),e.rbImages=Op,e.setRbExcelValueAtPath=XH,e.toggleExpandedNode=aW,e.toggleNodeSelection=iW,e.toggleVirtualTreeSelection=TW,e.useRbSystemAlert=OT,e.useSystemAlert=ZT,e.useTable=XT,e.useVirtualTreeState=EW});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scmlatam/web-ui",
3
3
  "private": false,
4
- "version": "0.2.49",
4
+ "version": "0.2.50",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"