@producteca/producteca-ui-kit 1.70.0 → 1.71.1

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.
@@ -31,39 +31,21 @@ const isDebugEnabled = () => DEBUG_ENVS.indexOf(readEnv() ?? "") !== -1;
31
31
  const logHandler = (component, handler, args) => {
32
32
  console.debug(`[producteca-ui-kit] ${component}.${handler} →`, ...args);
33
33
  };
34
- const MAX_DEPTH = 4;
35
- const isFunction$5 = (value) => typeof value === "function";
36
- const isHandlerKey = (key) => /^on[A-Z]/.test(key);
37
- const isReactElement = (value) => typeof value === "object" && value !== null && "$$typeof" in value;
38
- const isPlainObject$3 = (value) => {
39
- if (typeof value !== "object" || value === null || isReactElement(value)) return false;
40
- const proto = Object.getPrototypeOf(value);
41
- return proto === Object.prototype || proto === null;
42
- };
43
- const wrapHandler = (fn3, componentName, path) => (...args) => {
44
- logHandler(componentName, path, args);
45
- return fn3(...args);
46
- };
47
- const wrapDeep = (value, componentName, path, depth) => {
48
- if (depth > MAX_DEPTH) return value;
49
- if (Array.isArray(value)) {
50
- return value.map((item2, index2) => wrapDeep(item2, componentName, `${path}[${index2}]`, depth + 1));
51
- }
52
- if (isPlainObject$3(value)) {
53
- const next2 = {};
54
- for (const key of Object.keys(value)) {
55
- const child = value[key];
56
- const childPath = path ? `${path}.${key}` : key;
57
- next2[key] = isHandlerKey(key) && isFunction$5(child) ? wrapHandler(child, componentName, childPath) : wrapDeep(child, componentName, childPath, depth + 1);
58
- }
59
- return next2;
60
- }
61
- return value;
62
- };
34
+ const isHandlerProp = (key, value) => /^on[A-Z]/.test(key) && typeof value === "function";
63
35
  function withDebugHandlers(Component2, componentName) {
64
36
  if (!isDebugEnabled()) return Component2;
65
37
  const Wrapped = forwardRef((props, ref) => {
66
- const next2 = wrapDeep(props, componentName, "", 0);
38
+ const source = props;
39
+ const next2 = { ...source };
40
+ for (const key of Object.keys(source)) {
41
+ const value = source[key];
42
+ if (isHandlerProp(key, value)) {
43
+ next2[key] = (...args) => {
44
+ logHandler(componentName, key, args);
45
+ return value(...args);
46
+ };
47
+ }
48
+ }
67
49
  const Cmp = Component2;
68
50
  return /* @__PURE__ */ jsx$1(Cmp, { ...next2, ...ref ? { ref } : {} });
69
51
  });
@@ -10032,7 +10014,7 @@ const ColorValues = map$2(allColors, "color");
10032
10014
  const Shades = map$2(Colors["grey"], (color2, shade) => shade);
10033
10015
  const Categories = map$2(Colors, (shades, category) => category);
10034
10016
  const isValidColor = (color2) => includes$1(ColorValues, color2);
10035
- const CustomIconBase = ({
10017
+ const CustomIcon = ({
10036
10018
  color: color2 = getColor("grey", "500"),
10037
10019
  size: size2 = "16",
10038
10020
  sx,
@@ -10073,7 +10055,6 @@ const _translateSizeToFontSize = (size2) => {
10073
10055
  };
10074
10056
  return transform[size2] || transform["16"];
10075
10057
  };
10076
- const CustomIcon = withDebugHandlers(CustomIconBase, "CustomIcon");
10077
10058
  const chip = "chip-module_chip_U3kfP";
10078
10059
  const title$8 = "chip-module_title_DARz9";
10079
10060
  const text = "chip-module_text_4xvju";
@@ -19807,7 +19788,7 @@ const columns: TableColumn<MyRow>[] = [
19807
19788
  const tableBodyExample = `
19808
19789
  ## Uso del componente
19809
19790
 
19810
- \`Table.Body\` renderiza las filas de datos. Lee las columnas del contexto provisto por \`Table\`. Integra \`AsyncContent\` internamente, por lo que acepta las props de estado (\`isLoading\`, \`error\`, \`empty\`, \`success\`) para mostrar el loader, el error o el estado vacío dentro de la tabla.
19791
+ \`Table.Body\` renderiza las filas de datos. Lee las columnas del contexto provisto por \`Table\`. Cuando \`data\` está vacío muestra un \`EmptyState\` con \`emptyMessage\`.
19811
19792
 
19812
19793
  ### Ejemplo básico:
19813
19794
 
@@ -19817,15 +19798,13 @@ const tableBodyExample = `
19817
19798
  </Table>
19818
19799
  \`\`\`
19819
19800
 
19820
- ### Con estados asíncronos:
19801
+ ### Estado vacío personalizado:
19821
19802
 
19822
19803
  \`\`\`tsx
19823
19804
  <Table columns={columns}>
19824
- <Table.Header />
19825
19805
  <Table.Body
19826
- data={rows}
19827
- isLoading={isLoading}
19828
- empty={{ text: 'No hay datos', actionText: 'Cargar', onClick: loadData }}
19806
+ data={[]}
19807
+ emptyMessage="No encontramos resultados para tu búsqueda"
19829
19808
  />
19830
19809
  </Table>
19831
19810
  \`\`\`
@@ -19859,28 +19838,6 @@ const columns: TableColumn<MyRow>[] = [
19859
19838
  ]
19860
19839
  \`\`\`
19861
19840
  `;
19862
- const tableAsyncContentExample = `
19863
- \`Table.Body\` integra \`AsyncContent\` internamente: recibe las mismas props de estado (\`isLoading\`, \`error\`, \`empty\`, \`success\`) y resuelve el loader, el error y el estado vacío **dentro** de la tabla, sin desmontar el \`Table.Header\`.
19864
-
19865
- El estado vacío se deriva de \`data\` (no hace falta pasar \`items\`). Cuando hay filas y no hay carga/error, se renderizan las filas normalmente.
19866
-
19867
- ### Ejemplo:
19868
-
19869
- \`\`\`tsx
19870
- <Table columns={columns}>
19871
- <Table.Header />
19872
- <Table.Body
19873
- data={rows}
19874
- isLoading={isLoading}
19875
- empty={{
19876
- text: 'No hay datos disponibles',
19877
- actionText: 'Cargar datos',
19878
- onClick: loadData,
19879
- }}
19880
- />
19881
- </Table>
19882
- \`\`\`
19883
- `;
19884
19841
  const spinnerExample = `
19885
19842
  ## Uso del componente
19886
19843
 
@@ -20159,8 +20116,7 @@ const es$3 = {
20159
20116
  example: spinnerExample
20160
20117
  },
20161
20118
  table: {
20162
- example: tableExample,
20163
- asyncContent: tableAsyncContentExample
20119
+ example: tableExample
20164
20120
  },
20165
20121
  tableHeader: {
20166
20122
  example: tableHeaderExample
@@ -21015,287 +20971,293 @@ const VisibilityIcon = ({ showPassword, setShowPassword }) => {
21015
20971
  return /* @__PURE__ */ jsx$1("div", { "data-testid": "visibility-toggle", onClick: () => setShowPassword(!showPassword), children: showPassword ? /* @__PURE__ */ jsx$1(Visibility, {}) : /* @__PURE__ */ jsx$1(VisibilityOff, {}) });
21016
20972
  };
21017
20973
  var dayjs_min = { exports: {} };
21018
- (function(module, exports) {
21019
- !function(t, e) {
21020
- module.exports = e();
21021
- }(commonjsGlobal, function() {
21022
- var t = 1e3, e = 6e4, n = 36e5, r2 = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
21023
- var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
21024
- return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
21025
- } }, m = function(t2, e2, n2) {
21026
- var r3 = String(t2);
21027
- return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n2) + t2;
21028
- }, v = { s: m, z: function(t2) {
21029
- var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r3 = Math.floor(n2 / 60), i2 = n2 % 60;
21030
- return (e2 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0");
21031
- }, m: function t2(e2, n2) {
21032
- if (e2.date() < n2.date()) return -t2(n2, e2);
21033
- var r3 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r3, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r3 + (s2 ? -1 : 1), c);
21034
- return +(-(r3 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
21035
- }, a: function(t2) {
21036
- return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
21037
- }, p: function(t2) {
21038
- return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
21039
- }, u: function(t2) {
21040
- return void 0 === t2;
21041
- } }, g = "en", D = {};
21042
- D[g] = M;
21043
- var p = "$isDayjsObject", S = function(t2) {
21044
- return t2 instanceof _ || !(!t2 || !t2[p]);
21045
- }, w2 = function t2(e2, n2, r3) {
21046
- var i2;
21047
- if (!e2) return g;
21048
- if ("string" == typeof e2) {
21049
- var s2 = e2.toLowerCase();
21050
- D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
21051
- var u2 = e2.split("-");
21052
- if (!i2 && u2.length > 1) return t2(u2[0]);
21053
- } else {
21054
- var a2 = e2.name;
21055
- D[a2] = e2, i2 = a2;
21056
- }
21057
- return !r3 && i2 && (g = i2), i2 || !r3 && g;
21058
- }, O = function(t2, e2) {
21059
- if (S(t2)) return t2.clone();
21060
- var n2 = "object" == typeof e2 ? e2 : {};
21061
- return n2.date = t2, n2.args = arguments, new _(n2);
21062
- }, b = v;
21063
- b.l = w2, b.i = S, b.w = function(t2, e2) {
21064
- return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
21065
- };
21066
- var _ = function() {
21067
- function M2(t2) {
21068
- this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
21069
- }
21070
- var m2 = M2.prototype;
21071
- return m2.parse = function(t2) {
21072
- this.$d = function(t3) {
21073
- var e2 = t3.date, n2 = t3.utc;
21074
- if (null === e2) return /* @__PURE__ */ new Date(NaN);
21075
- if (b.u(e2)) return /* @__PURE__ */ new Date();
21076
- if (e2 instanceof Date) return new Date(e2);
21077
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
21078
- var r3 = e2.match($);
21079
- if (r3) {
21080
- var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
21081
- return n2 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
21082
- }
21083
- }
21084
- return new Date(e2);
21085
- }(t2), this.init();
21086
- }, m2.init = function() {
21087
- var t2 = this.$d;
21088
- this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
21089
- }, m2.$utils = function() {
21090
- return b;
21091
- }, m2.isValid = function() {
21092
- return !(this.$d.toString() === l);
21093
- }, m2.isSame = function(t2, e2) {
21094
- var n2 = O(t2);
21095
- return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
21096
- }, m2.isAfter = function(t2, e2) {
21097
- return O(t2) < this.startOf(e2);
21098
- }, m2.isBefore = function(t2, e2) {
21099
- return this.endOf(e2) < O(t2);
21100
- }, m2.$g = function(t2, e2, n2) {
21101
- return b.u(t2) ? this[e2] : this.set(n2, t2);
21102
- }, m2.unix = function() {
21103
- return Math.floor(this.valueOf() / 1e3);
21104
- }, m2.valueOf = function() {
21105
- return this.$d.getTime();
21106
- }, m2.startOf = function(t2, e2) {
21107
- var n2 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
21108
- var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
21109
- return r3 ? i2 : i2.endOf(a);
21110
- }, $2 = function(t3, e3) {
21111
- return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
21112
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
21113
- switch (f2) {
21114
- case h:
21115
- return r3 ? l2(1, 0) : l2(31, 11);
21116
- case c:
21117
- return r3 ? l2(1, M3) : l2(0, M3 + 1);
21118
- case o:
21119
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
21120
- return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
21121
- case a:
21122
- case d:
21123
- return $2(v2 + "Hours", 0);
21124
- case u:
21125
- return $2(v2 + "Minutes", 1);
21126
- case s:
21127
- return $2(v2 + "Seconds", 2);
21128
- case i:
21129
- return $2(v2 + "Milliseconds", 3);
21130
- default:
21131
- return this.clone();
20974
+ var hasRequiredDayjs_min;
20975
+ function requireDayjs_min() {
20976
+ if (hasRequiredDayjs_min) return dayjs_min.exports;
20977
+ hasRequiredDayjs_min = 1;
20978
+ (function(module, exports) {
20979
+ !function(t, e) {
20980
+ module.exports = e();
20981
+ }(commonjsGlobal, function() {
20982
+ var t = 1e3, e = 6e4, n = 36e5, r2 = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
20983
+ var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
20984
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
20985
+ } }, m = function(t2, e2, n2) {
20986
+ var r3 = String(t2);
20987
+ return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n2) + t2;
20988
+ }, v = { s: m, z: function(t2) {
20989
+ var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r3 = Math.floor(n2 / 60), i2 = n2 % 60;
20990
+ return (e2 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0");
20991
+ }, m: function t2(e2, n2) {
20992
+ if (e2.date() < n2.date()) return -t2(n2, e2);
20993
+ var r3 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r3, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r3 + (s2 ? -1 : 1), c);
20994
+ return +(-(r3 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
20995
+ }, a: function(t2) {
20996
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
20997
+ }, p: function(t2) {
20998
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
20999
+ }, u: function(t2) {
21000
+ return void 0 === t2;
21001
+ } }, g = "en", D = {};
21002
+ D[g] = M;
21003
+ var p = "$isDayjsObject", S = function(t2) {
21004
+ return t2 instanceof _ || !(!t2 || !t2[p]);
21005
+ }, w2 = function t2(e2, n2, r3) {
21006
+ var i2;
21007
+ if (!e2) return g;
21008
+ if ("string" == typeof e2) {
21009
+ var s2 = e2.toLowerCase();
21010
+ D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
21011
+ var u2 = e2.split("-");
21012
+ if (!i2 && u2.length > 1) return t2(u2[0]);
21013
+ } else {
21014
+ var a2 = e2.name;
21015
+ D[a2] = e2, i2 = a2;
21132
21016
  }
21133
- }, m2.endOf = function(t2) {
21134
- return this.startOf(t2, false);
21135
- }, m2.$set = function(t2, e2) {
21136
- var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r2] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
21137
- if (o2 === c || o2 === h) {
21138
- var y2 = this.clone().set(d, 1);
21139
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
21140
- } else l2 && this.$d[l2]($2);
21141
- return this.init(), this;
21142
- }, m2.set = function(t2, e2) {
21143
- return this.clone().$set(t2, e2);
21144
- }, m2.get = function(t2) {
21145
- return this[b.p(t2)]();
21146
- }, m2.add = function(r3, f2) {
21147
- var d2, l2 = this;
21148
- r3 = Number(r3);
21149
- var $2 = b.p(f2), y2 = function(t2) {
21150
- var e2 = O(l2);
21151
- return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
21152
- };
21153
- if ($2 === c) return this.set(c, this.$M + r3);
21154
- if ($2 === h) return this.set(h, this.$y + r3);
21155
- if ($2 === a) return y2(1);
21156
- if ($2 === o) return y2(7);
21157
- var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
21158
- return b.w(m3, this);
21159
- }, m2.subtract = function(t2, e2) {
21160
- return this.add(-1 * t2, e2);
21161
- }, m2.format = function(t2) {
21162
- var e2 = this, n2 = this.$locale();
21163
- if (!this.isValid()) return n2.invalidDate || l;
21164
- var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
21165
- return t3 && (t3[n3] || t3(e2, r3)) || i3[n3].slice(0, s3);
21166
- }, d2 = function(t3) {
21167
- return b.s(s2 % 12 || 12, t3, "0");
21168
- }, $2 = f2 || function(t3, e3, n3) {
21169
- var r4 = t3 < 12 ? "AM" : "PM";
21170
- return n3 ? r4.toLowerCase() : r4;
21171
- };
21172
- return r3.replace(y, function(t3, r4) {
21173
- return r4 || function(t4) {
21174
- switch (t4) {
21175
- case "YY":
21176
- return String(e2.$y).slice(-2);
21177
- case "YYYY":
21178
- return b.s(e2.$y, 4, "0");
21179
- case "M":
21180
- return a2 + 1;
21181
- case "MM":
21182
- return b.s(a2 + 1, 2, "0");
21183
- case "MMM":
21184
- return h2(n2.monthsShort, a2, c2, 3);
21185
- case "MMMM":
21186
- return h2(c2, a2);
21187
- case "D":
21188
- return e2.$D;
21189
- case "DD":
21190
- return b.s(e2.$D, 2, "0");
21191
- case "d":
21192
- return String(e2.$W);
21193
- case "dd":
21194
- return h2(n2.weekdaysMin, e2.$W, o2, 2);
21195
- case "ddd":
21196
- return h2(n2.weekdaysShort, e2.$W, o2, 3);
21197
- case "dddd":
21198
- return o2[e2.$W];
21199
- case "H":
21200
- return String(s2);
21201
- case "HH":
21202
- return b.s(s2, 2, "0");
21203
- case "h":
21204
- return d2(1);
21205
- case "hh":
21206
- return d2(2);
21207
- case "a":
21208
- return $2(s2, u2, true);
21209
- case "A":
21210
- return $2(s2, u2, false);
21211
- case "m":
21212
- return String(u2);
21213
- case "mm":
21214
- return b.s(u2, 2, "0");
21215
- case "s":
21216
- return String(e2.$s);
21217
- case "ss":
21218
- return b.s(e2.$s, 2, "0");
21219
- case "SSS":
21220
- return b.s(e2.$ms, 3, "0");
21221
- case "Z":
21222
- return i2;
21017
+ return !r3 && i2 && (g = i2), i2 || !r3 && g;
21018
+ }, O = function(t2, e2) {
21019
+ if (S(t2)) return t2.clone();
21020
+ var n2 = "object" == typeof e2 ? e2 : {};
21021
+ return n2.date = t2, n2.args = arguments, new _(n2);
21022
+ }, b = v;
21023
+ b.l = w2, b.i = S, b.w = function(t2, e2) {
21024
+ return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
21025
+ };
21026
+ var _ = function() {
21027
+ function M2(t2) {
21028
+ this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
21029
+ }
21030
+ var m2 = M2.prototype;
21031
+ return m2.parse = function(t2) {
21032
+ this.$d = function(t3) {
21033
+ var e2 = t3.date, n2 = t3.utc;
21034
+ if (null === e2) return /* @__PURE__ */ new Date(NaN);
21035
+ if (b.u(e2)) return /* @__PURE__ */ new Date();
21036
+ if (e2 instanceof Date) return new Date(e2);
21037
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
21038
+ var r3 = e2.match($);
21039
+ if (r3) {
21040
+ var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
21041
+ return n2 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
21042
+ }
21223
21043
  }
21224
- return null;
21225
- }(t3) || i2.replace(":", "");
21226
- });
21227
- }, m2.utcOffset = function() {
21228
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
21229
- }, m2.diff = function(r3, d2, l2) {
21230
- var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
21231
- return b.m(y2, m3);
21044
+ return new Date(e2);
21045
+ }(t2), this.init();
21046
+ }, m2.init = function() {
21047
+ var t2 = this.$d;
21048
+ this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
21049
+ }, m2.$utils = function() {
21050
+ return b;
21051
+ }, m2.isValid = function() {
21052
+ return !(this.$d.toString() === l);
21053
+ }, m2.isSame = function(t2, e2) {
21054
+ var n2 = O(t2);
21055
+ return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
21056
+ }, m2.isAfter = function(t2, e2) {
21057
+ return O(t2) < this.startOf(e2);
21058
+ }, m2.isBefore = function(t2, e2) {
21059
+ return this.endOf(e2) < O(t2);
21060
+ }, m2.$g = function(t2, e2, n2) {
21061
+ return b.u(t2) ? this[e2] : this.set(n2, t2);
21062
+ }, m2.unix = function() {
21063
+ return Math.floor(this.valueOf() / 1e3);
21064
+ }, m2.valueOf = function() {
21065
+ return this.$d.getTime();
21066
+ }, m2.startOf = function(t2, e2) {
21067
+ var n2 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
21068
+ var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
21069
+ return r3 ? i2 : i2.endOf(a);
21070
+ }, $2 = function(t3, e3) {
21071
+ return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
21072
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
21073
+ switch (f2) {
21074
+ case h:
21075
+ return r3 ? l2(1, 0) : l2(31, 11);
21076
+ case c:
21077
+ return r3 ? l2(1, M3) : l2(0, M3 + 1);
21078
+ case o:
21079
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
21080
+ return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
21081
+ case a:
21082
+ case d:
21083
+ return $2(v2 + "Hours", 0);
21084
+ case u:
21085
+ return $2(v2 + "Minutes", 1);
21086
+ case s:
21087
+ return $2(v2 + "Seconds", 2);
21088
+ case i:
21089
+ return $2(v2 + "Milliseconds", 3);
21090
+ default:
21091
+ return this.clone();
21092
+ }
21093
+ }, m2.endOf = function(t2) {
21094
+ return this.startOf(t2, false);
21095
+ }, m2.$set = function(t2, e2) {
21096
+ var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r2] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
21097
+ if (o2 === c || o2 === h) {
21098
+ var y2 = this.clone().set(d, 1);
21099
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
21100
+ } else l2 && this.$d[l2]($2);
21101
+ return this.init(), this;
21102
+ }, m2.set = function(t2, e2) {
21103
+ return this.clone().$set(t2, e2);
21104
+ }, m2.get = function(t2) {
21105
+ return this[b.p(t2)]();
21106
+ }, m2.add = function(r3, f2) {
21107
+ var d2, l2 = this;
21108
+ r3 = Number(r3);
21109
+ var $2 = b.p(f2), y2 = function(t2) {
21110
+ var e2 = O(l2);
21111
+ return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
21112
+ };
21113
+ if ($2 === c) return this.set(c, this.$M + r3);
21114
+ if ($2 === h) return this.set(h, this.$y + r3);
21115
+ if ($2 === a) return y2(1);
21116
+ if ($2 === o) return y2(7);
21117
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
21118
+ return b.w(m3, this);
21119
+ }, m2.subtract = function(t2, e2) {
21120
+ return this.add(-1 * t2, e2);
21121
+ }, m2.format = function(t2) {
21122
+ var e2 = this, n2 = this.$locale();
21123
+ if (!this.isValid()) return n2.invalidDate || l;
21124
+ var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
21125
+ return t3 && (t3[n3] || t3(e2, r3)) || i3[n3].slice(0, s3);
21126
+ }, d2 = function(t3) {
21127
+ return b.s(s2 % 12 || 12, t3, "0");
21128
+ }, $2 = f2 || function(t3, e3, n3) {
21129
+ var r4 = t3 < 12 ? "AM" : "PM";
21130
+ return n3 ? r4.toLowerCase() : r4;
21131
+ };
21132
+ return r3.replace(y, function(t3, r4) {
21133
+ return r4 || function(t4) {
21134
+ switch (t4) {
21135
+ case "YY":
21136
+ return String(e2.$y).slice(-2);
21137
+ case "YYYY":
21138
+ return b.s(e2.$y, 4, "0");
21139
+ case "M":
21140
+ return a2 + 1;
21141
+ case "MM":
21142
+ return b.s(a2 + 1, 2, "0");
21143
+ case "MMM":
21144
+ return h2(n2.monthsShort, a2, c2, 3);
21145
+ case "MMMM":
21146
+ return h2(c2, a2);
21147
+ case "D":
21148
+ return e2.$D;
21149
+ case "DD":
21150
+ return b.s(e2.$D, 2, "0");
21151
+ case "d":
21152
+ return String(e2.$W);
21153
+ case "dd":
21154
+ return h2(n2.weekdaysMin, e2.$W, o2, 2);
21155
+ case "ddd":
21156
+ return h2(n2.weekdaysShort, e2.$W, o2, 3);
21157
+ case "dddd":
21158
+ return o2[e2.$W];
21159
+ case "H":
21160
+ return String(s2);
21161
+ case "HH":
21162
+ return b.s(s2, 2, "0");
21163
+ case "h":
21164
+ return d2(1);
21165
+ case "hh":
21166
+ return d2(2);
21167
+ case "a":
21168
+ return $2(s2, u2, true);
21169
+ case "A":
21170
+ return $2(s2, u2, false);
21171
+ case "m":
21172
+ return String(u2);
21173
+ case "mm":
21174
+ return b.s(u2, 2, "0");
21175
+ case "s":
21176
+ return String(e2.$s);
21177
+ case "ss":
21178
+ return b.s(e2.$s, 2, "0");
21179
+ case "SSS":
21180
+ return b.s(e2.$ms, 3, "0");
21181
+ case "Z":
21182
+ return i2;
21183
+ }
21184
+ return null;
21185
+ }(t3) || i2.replace(":", "");
21186
+ });
21187
+ }, m2.utcOffset = function() {
21188
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
21189
+ }, m2.diff = function(r3, d2, l2) {
21190
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
21191
+ return b.m(y2, m3);
21192
+ };
21193
+ switch (M3) {
21194
+ case h:
21195
+ $2 = D2() / 12;
21196
+ break;
21197
+ case c:
21198
+ $2 = D2();
21199
+ break;
21200
+ case f:
21201
+ $2 = D2() / 3;
21202
+ break;
21203
+ case o:
21204
+ $2 = (g2 - v2) / 6048e5;
21205
+ break;
21206
+ case a:
21207
+ $2 = (g2 - v2) / 864e5;
21208
+ break;
21209
+ case u:
21210
+ $2 = g2 / n;
21211
+ break;
21212
+ case s:
21213
+ $2 = g2 / e;
21214
+ break;
21215
+ case i:
21216
+ $2 = g2 / t;
21217
+ break;
21218
+ default:
21219
+ $2 = g2;
21220
+ }
21221
+ return l2 ? $2 : b.a($2);
21222
+ }, m2.daysInMonth = function() {
21223
+ return this.endOf(c).$D;
21224
+ }, m2.$locale = function() {
21225
+ return D[this.$L];
21226
+ }, m2.locale = function(t2, e2) {
21227
+ if (!t2) return this.$L;
21228
+ var n2 = this.clone(), r3 = w2(t2, e2, true);
21229
+ return r3 && (n2.$L = r3), n2;
21230
+ }, m2.clone = function() {
21231
+ return b.w(this.$d, this);
21232
+ }, m2.toDate = function() {
21233
+ return new Date(this.valueOf());
21234
+ }, m2.toJSON = function() {
21235
+ return this.isValid() ? this.toISOString() : null;
21236
+ }, m2.toISOString = function() {
21237
+ return this.$d.toISOString();
21238
+ }, m2.toString = function() {
21239
+ return this.$d.toUTCString();
21240
+ }, M2;
21241
+ }(), k = _.prototype;
21242
+ return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
21243
+ k[t2[1]] = function(e2) {
21244
+ return this.$g(e2, t2[0], t2[1]);
21232
21245
  };
21233
- switch (M3) {
21234
- case h:
21235
- $2 = D2() / 12;
21236
- break;
21237
- case c:
21238
- $2 = D2();
21239
- break;
21240
- case f:
21241
- $2 = D2() / 3;
21242
- break;
21243
- case o:
21244
- $2 = (g2 - v2) / 6048e5;
21245
- break;
21246
- case a:
21247
- $2 = (g2 - v2) / 864e5;
21248
- break;
21249
- case u:
21250
- $2 = g2 / n;
21251
- break;
21252
- case s:
21253
- $2 = g2 / e;
21254
- break;
21255
- case i:
21256
- $2 = g2 / t;
21257
- break;
21258
- default:
21259
- $2 = g2;
21260
- }
21261
- return l2 ? $2 : b.a($2);
21262
- }, m2.daysInMonth = function() {
21263
- return this.endOf(c).$D;
21264
- }, m2.$locale = function() {
21265
- return D[this.$L];
21266
- }, m2.locale = function(t2, e2) {
21267
- if (!t2) return this.$L;
21268
- var n2 = this.clone(), r3 = w2(t2, e2, true);
21269
- return r3 && (n2.$L = r3), n2;
21270
- }, m2.clone = function() {
21271
- return b.w(this.$d, this);
21272
- }, m2.toDate = function() {
21273
- return new Date(this.valueOf());
21274
- }, m2.toJSON = function() {
21275
- return this.isValid() ? this.toISOString() : null;
21276
- }, m2.toISOString = function() {
21277
- return this.$d.toISOString();
21278
- }, m2.toString = function() {
21279
- return this.$d.toUTCString();
21280
- }, M2;
21281
- }(), k = _.prototype;
21282
- return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
21283
- k[t2[1]] = function(e2) {
21284
- return this.$g(e2, t2[0], t2[1]);
21285
- };
21286
- }), O.extend = function(t2, e2) {
21287
- return t2.$i || (t2(e2, _, O), t2.$i = true), O;
21288
- }, O.locale = w2, O.isDayjs = S, O.unix = function(t2) {
21289
- return O(1e3 * t2);
21290
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
21291
- });
21292
- })(dayjs_min);
21293
- var dayjs_minExports = dayjs_min.exports;
21246
+ }), O.extend = function(t2, e2) {
21247
+ return t2.$i || (t2(e2, _, O), t2.$i = true), O;
21248
+ }, O.locale = w2, O.isDayjs = S, O.unix = function(t2) {
21249
+ return O(1e3 * t2);
21250
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
21251
+ });
21252
+ })(dayjs_min);
21253
+ return dayjs_min.exports;
21254
+ }
21255
+ var dayjs_minExports = requireDayjs_min();
21294
21256
  const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
21295
21257
  var es$2 = { exports: {} };
21296
21258
  (function(module, exports) {
21297
21259
  !function(e, o) {
21298
- module.exports = o(dayjs_minExports);
21260
+ module.exports = o(requireDayjs_min());
21299
21261
  }(commonjsGlobal, function(e) {
21300
21262
  function o(e2) {
21301
21263
  return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
@@ -65674,7 +65636,7 @@ const _convertValueToOption = (value) => {
65674
65636
  if (!value) return null;
65675
65637
  return { value, label: value };
65676
65638
  };
65677
- const SearcherBase = (props) => {
65639
+ const Searcher = (props) => {
65678
65640
  const {
65679
65641
  name,
65680
65642
  label: label2,
@@ -65864,7 +65826,6 @@ const SearcherBase = (props) => {
65864
65826
  )
65865
65827
  ] });
65866
65828
  };
65867
- const Searcher = withDebugHandlers(SearcherBase, "Searcher");
65868
65829
  const title$5 = "switchInput-module_title_lBK2p";
65869
65830
  const disabled$4 = "switchInput-module_disabled_yz9dR";
65870
65831
  const lg$5 = "switchInput-module_lg_WMIDO";
@@ -66246,7 +66207,7 @@ const Check = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
66246
66207
  const ContentCopy = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
66247
66208
  d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
66248
66209
  }), "ContentCopy");
66249
- const CopyButtonBase = ({
66210
+ const CopyButton = ({
66250
66211
  onClick,
66251
66212
  copyText = locale("copyButton.copy"),
66252
66213
  copiedText = locale("copyButton.copied"),
@@ -66290,7 +66251,6 @@ const Icons = ({ copied }) => /* @__PURE__ */ jsxs("div", { className: "copy-btn
66290
66251
  /* @__PURE__ */ jsx$1("div", { className: `copy-icon ${copied ? "hidden" : ""}`, children: /* @__PURE__ */ jsx$1(ContentCopy, { "data-testid": "ContentCopyIcon" }) }),
66291
66252
  /* @__PURE__ */ jsx$1("div", { className: `check-icon ${!copied ? "hidden" : ""}`, children: /* @__PURE__ */ jsx$1(Check, {}) })
66292
66253
  ] });
66293
- const CopyButton = withDebugHandlers(CopyButtonBase, "CopyButton");
66294
66254
  const dense = "headerSection-module_dense_f1FWn";
66295
66255
  const content = "headerSection-module_content_5y2PB";
66296
66256
  const title$4 = "headerSection-module_title_cabYm";
@@ -68285,14 +68245,13 @@ const BreadcrumbItemComponent = ({ item: item2, index: index2, items }) => {
68285
68245
  " "
68286
68246
  ] });
68287
68247
  };
68288
- const BreadcrumbBase = ({
68248
+ const Breadcrumb = ({
68289
68249
  items,
68290
68250
  className,
68291
68251
  ...otherProps
68292
68252
  }) => {
68293
68253
  return /* @__PURE__ */ jsx$1("nav", { className: clsx(styles$8["breadcrumb"], className), "aria-label": "Breadcrumb", ...otherProps, children: map$2(items, (item2, index2) => /* @__PURE__ */ jsx$1(BreadcrumbItemComponent, { item: item2, index: index2, items }, index2)) });
68294
68254
  };
68295
- const Breadcrumb = withDebugHandlers(BreadcrumbBase, "Breadcrumb");
68296
68255
  const MoreVertIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
68297
68256
  d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
68298
68257
  }), "MoreVert");
@@ -77224,23 +77183,12 @@ const styles = {
77224
77183
  "header-row": "table-module_header-row_ry6Lv",
77225
77184
  "body-row": "table-module_body-row_OMOX0",
77226
77185
  "header-cell": "table-module_header-cell_0FEWz",
77227
- "body-cell": "table-module_body-cell_p4019",
77228
- "body-async": "table-module_body-async_21Z7L"
77186
+ "body-cell": "table-module_body-cell_p4019"
77229
77187
  };
77230
- const TableBody = ({ data, isLoading, error: error2, empty, success: success2 }) => {
77188
+ const TableBody = ({ data, emptyMessage }) => {
77231
77189
  const columns = useContext(TableContext);
77232
- const showContent = !isLoading && !error2?.value && !success2?.value && data.length > 0;
77233
- if (!showContent) {
77234
- return /* @__PURE__ */ jsx$1("tbody", { children: /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1("td", { colSpan: columns.length, className: styles["body-async"], children: /* @__PURE__ */ jsx$1(
77235
- AsyncContent,
77236
- {
77237
- isLoading,
77238
- error: error2,
77239
- success: success2,
77240
- empty: { ...empty, items: data },
77241
- children: /* @__PURE__ */ jsx$1(Fragment$1, {})
77242
- }
77243
- ) }) }) });
77190
+ if (data.length === 0) {
77191
+ return /* @__PURE__ */ jsx$1("tbody", { children: /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1("td", { colSpan: columns.length, children: /* @__PURE__ */ jsx$1(EmptyState, { text: emptyMessage }) }) }) });
77244
77192
  }
77245
77193
  return /* @__PURE__ */ jsx$1("tbody", { children: data.map((row, rowIndex) => /* @__PURE__ */ jsx$1("tr", { className: styles["body-row"], children: columns.map((col) => {
77246
77194
  const value = row[col.key];