@dovetail-v2/refine 0.0.41 → 0.0.43

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.
@@ -7,17 +7,17 @@ var __publicField = (obj, key2, value2) => {
7
7
  import i18n from "i18next";
8
8
  import * as React from "react";
9
9
  import React__default, { createElement, isValidElement, cloneElement, Children, createContext, useContext, useState, useRef, useEffect, useCallback, useMemo, useImperativeHandle, memo, PureComponent, useLayoutEffect, forwardRef, Suspense } from "react";
10
- import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useDeleteMany, CanAccess, useCan, useShow, useUpdate, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$1, flattenObjectKeys, useInvalidate, useUserFriendlyName, useModal, pickNotDeprecated, useMenu, useTable, Refine } from "@refinedev/core";
10
+ import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useDeleteMany, CanAccess, useCan, useShow, useUpdate, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, useTable, Refine } from "@refinedev/core";
11
11
  import { parse, stringify } from "qs";
12
12
  import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
13
13
  import { Typo, Tag, useUIKit, kitContext, Link as Link$1, OverflowTooltip, Tooltip, StatusCapsule, pushModal, Button, Icon as Icon$1, popModal, Loading, Divider, Fields, Form, Space, Modal, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
14
14
  import { PlusAddCreateNew16BoldOntintIcon, EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, EditPen16GradientBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon } from "@cloudtower/icons-react";
15
- import { get as get$2, first, debounce, last, isObject as isObject$2, merge, keyBy } from "lodash-es";
15
+ import { get as get$3, first, debounce, last, isObject as isObject$4, merge, keyBy } from "lodash-es";
16
16
  import yaml from "js-yaml";
17
17
  import * as monaco from "monaco-editor";
18
18
  import { setDiagnosticsOptions } from "monaco-yaml";
19
19
  import ReactDOM from "react-dom";
20
- import { useForm as useForm$2 } from "sunflower-antd";
20
+ import { useForm as useForm$3 } from "sunflower-antd";
21
21
  import { Drawer } from "antd";
22
22
  import { dataProvider, liveProvider } from "k8s-api-provider";
23
23
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -25,301 +25,308 @@ function getDefaultExportFromCjs(x) {
25
25
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
26
26
  }
27
27
  var dayjs_min = { exports: {} };
28
- (function(module, exports) {
29
- !function(t2, e2) {
30
- module.exports = e2();
31
- }(commonjsGlobal, function() {
32
- var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u = "hour", a2 = "day", o = "week", c2 = "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(t3) {
33
- var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
34
- return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
35
- } }, m2 = function(t3, e3, n3) {
36
- var r3 = String(t3);
37
- return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
38
- }, v = { s: m2, z: function(t3) {
39
- var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
40
- return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
41
- }, m: function t3(e3, n3) {
42
- if (e3.date() < n3.date())
43
- return -t3(n3, e3);
44
- var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c2);
45
- return +(-(r3 + (n3 - i3) / (s3 ? i3 - u2 : u2 - i3)) || 0);
46
- }, a: function(t3) {
47
- return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
48
- }, p: function(t3) {
49
- return { M: c2, y: h, w: o, d: a2, D: d, h: u, m: s2, s: i2, ms: r2, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
50
- }, u: function(t3) {
51
- return void 0 === t3;
52
- } }, g = "en", D = {};
53
- D[g] = M;
54
- var p = "$isDayjsObject", S = function(t3) {
55
- return t3 instanceof _ || !(!t3 || !t3[p]);
56
- }, w = function t3(e3, n3, r3) {
57
- var i3;
58
- if (!e3)
59
- return g;
60
- if ("string" == typeof e3) {
61
- var s3 = e3.toLowerCase();
62
- D[s3] && (i3 = s3), n3 && (D[s3] = n3, i3 = s3);
63
- var u2 = e3.split("-");
64
- if (!i3 && u2.length > 1)
65
- return t3(u2[0]);
66
- } else {
67
- var a3 = e3.name;
68
- D[a3] = e3, i3 = a3;
69
- }
70
- return !r3 && i3 && (g = i3), i3 || !r3 && g;
71
- }, O = function(t3, e3) {
72
- if (S(t3))
73
- return t3.clone();
74
- var n3 = "object" == typeof e3 ? e3 : {};
75
- return n3.date = t3, n3.args = arguments, new _(n3);
76
- }, b = v;
77
- b.l = w, b.i = S, b.w = function(t3, e3) {
78
- return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
79
- };
80
- var _ = function() {
81
- function M2(t3) {
82
- this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
83
- }
84
- var m3 = M2.prototype;
85
- return m3.parse = function(t3) {
86
- this.$d = function(t4) {
87
- var e3 = t4.date, n3 = t4.utc;
88
- if (null === e3)
89
- return /* @__PURE__ */ new Date(NaN);
90
- if (b.u(e3))
91
- return /* @__PURE__ */ new Date();
92
- if (e3 instanceof Date)
93
- return new Date(e3);
94
- if ("string" == typeof e3 && !/Z$/i.test(e3)) {
95
- var r3 = e3.match($);
96
- if (r3) {
97
- var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
98
- return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
99
- }
100
- }
101
- return new Date(e3);
102
- }(t3), this.init();
103
- }, m3.init = function() {
104
- var t3 = this.$d;
105
- this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
106
- }, m3.$utils = function() {
107
- return b;
108
- }, m3.isValid = function() {
109
- return !(this.$d.toString() === l);
110
- }, m3.isSame = function(t3, e3) {
111
- var n3 = O(t3);
112
- return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
113
- }, m3.isAfter = function(t3, e3) {
114
- return O(t3) < this.startOf(e3);
115
- }, m3.isBefore = function(t3, e3) {
116
- return this.endOf(e3) < O(t3);
117
- }, m3.$g = function(t3, e3, n3) {
118
- return b.u(t3) ? this[e3] : this.set(n3, t3);
119
- }, m3.unix = function() {
120
- return Math.floor(this.valueOf() / 1e3);
121
- }, m3.valueOf = function() {
122
- return this.$d.getTime();
123
- }, m3.startOf = function(t3, e3) {
124
- var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
125
- var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
126
- return r3 ? i3 : i3.endOf(a2);
127
- }, $2 = function(t4, e4) {
128
- return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
129
- }, y2 = this.$W, M3 = this.$M, m4 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
130
- switch (f2) {
131
- case h:
132
- return r3 ? l2(1, 0) : l2(31, 11);
133
- case c2:
134
- return r3 ? l2(1, M3) : l2(0, M3 + 1);
135
- case o:
136
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
137
- return l2(r3 ? m4 - D2 : m4 + (6 - D2), M3);
138
- case a2:
139
- case d:
140
- return $2(v2 + "Hours", 0);
141
- case u:
142
- return $2(v2 + "Minutes", 1);
143
- case s2:
144
- return $2(v2 + "Seconds", 2);
145
- case i2:
146
- return $2(v2 + "Milliseconds", 3);
147
- default:
148
- return this.clone();
149
- }
150
- }, m3.endOf = function(t3) {
151
- return this.startOf(t3, false);
152
- }, m3.$set = function(t3, e3) {
153
- var n3, o2 = b.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a2] = f2 + "Date", n3[d] = f2 + "Date", n3[c2] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s2] = f2 + "Minutes", n3[i2] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a2 ? this.$D + (e3 - this.$W) : e3;
154
- if (o2 === c2 || o2 === h) {
155
- var y2 = this.clone().set(d, 1);
156
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
157
- } else
158
- l2 && this.$d[l2]($2);
159
- return this.init(), this;
160
- }, m3.set = function(t3, e3) {
161
- return this.clone().$set(t3, e3);
162
- }, m3.get = function(t3) {
163
- return this[b.p(t3)]();
164
- }, m3.add = function(r3, f2) {
165
- var d2, l2 = this;
166
- r3 = Number(r3);
167
- var $2 = b.p(f2), y2 = function(t3) {
168
- var e3 = O(l2);
169
- return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
170
- };
171
- if ($2 === c2)
172
- return this.set(c2, this.$M + r3);
173
- if ($2 === h)
174
- return this.set(h, this.$y + r3);
175
- if ($2 === a2)
176
- return y2(1);
177
- if ($2 === o)
178
- return y2(7);
179
- var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m4 = this.$d.getTime() + r3 * M3;
180
- return b.w(m4, this);
181
- }, m3.subtract = function(t3, e3) {
182
- return this.add(-1 * t3, e3);
183
- }, m3.format = function(t3) {
184
- var e3 = this, n3 = this.$locale();
185
- if (!this.isValid())
186
- return n3.invalidDate || l;
187
- var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s3 = this.$H, u2 = this.$m, a3 = this.$M, o2 = n3.weekdays, c3 = n3.months, f2 = n3.meridiem, h2 = function(t4, n4, i4, s4) {
188
- return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
189
- }, d2 = function(t4) {
190
- return b.s(s3 % 12 || 12, t4, "0");
191
- }, $2 = f2 || function(t4, e4, n4) {
192
- var r4 = t4 < 12 ? "AM" : "PM";
193
- return n4 ? r4.toLowerCase() : r4;
194
- };
195
- return r3.replace(y, function(t4, r4) {
196
- return r4 || function(t5) {
197
- switch (t5) {
198
- case "YY":
199
- return String(e3.$y).slice(-2);
200
- case "YYYY":
201
- return b.s(e3.$y, 4, "0");
202
- case "M":
203
- return a3 + 1;
204
- case "MM":
205
- return b.s(a3 + 1, 2, "0");
206
- case "MMM":
207
- return h2(n3.monthsShort, a3, c3, 3);
208
- case "MMMM":
209
- return h2(c3, a3);
210
- case "D":
211
- return e3.$D;
212
- case "DD":
213
- return b.s(e3.$D, 2, "0");
214
- case "d":
215
- return String(e3.$W);
216
- case "dd":
217
- return h2(n3.weekdaysMin, e3.$W, o2, 2);
218
- case "ddd":
219
- return h2(n3.weekdaysShort, e3.$W, o2, 3);
220
- case "dddd":
221
- return o2[e3.$W];
222
- case "H":
223
- return String(s3);
224
- case "HH":
225
- return b.s(s3, 2, "0");
226
- case "h":
227
- return d2(1);
228
- case "hh":
229
- return d2(2);
230
- case "a":
231
- return $2(s3, u2, true);
232
- case "A":
233
- return $2(s3, u2, false);
234
- case "m":
235
- return String(u2);
236
- case "mm":
237
- return b.s(u2, 2, "0");
238
- case "s":
239
- return String(e3.$s);
240
- case "ss":
241
- return b.s(e3.$s, 2, "0");
242
- case "SSS":
243
- return b.s(e3.$ms, 3, "0");
244
- case "Z":
245
- return i3;
28
+ var hasRequiredDayjs_min;
29
+ function requireDayjs_min() {
30
+ if (hasRequiredDayjs_min)
31
+ return dayjs_min.exports;
32
+ hasRequiredDayjs_min = 1;
33
+ (function(module, exports) {
34
+ !function(t2, e2) {
35
+ module.exports = e2();
36
+ }(commonjsGlobal, function() {
37
+ var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u = "hour", a2 = "day", o = "week", c2 = "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(t3) {
38
+ var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
39
+ return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
40
+ } }, m = function(t3, e3, n3) {
41
+ var r3 = String(t3);
42
+ return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
43
+ }, v = { s: m, z: function(t3) {
44
+ var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
45
+ return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i3, 2, "0");
46
+ }, m: function t3(e3, n3) {
47
+ if (e3.date() < n3.date())
48
+ return -t3(n3, e3);
49
+ var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c2);
50
+ return +(-(r3 + (n3 - i3) / (s3 ? i3 - u2 : u2 - i3)) || 0);
51
+ }, a: function(t3) {
52
+ return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
53
+ }, p: function(t3) {
54
+ return { M: c2, y: h, w: o, d: a2, D: d, h: u, m: s2, s: i2, ms: r2, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
55
+ }, u: function(t3) {
56
+ return void 0 === t3;
57
+ } }, g = "en", D = {};
58
+ D[g] = M;
59
+ var p = "$isDayjsObject", S = function(t3) {
60
+ return t3 instanceof _ || !(!t3 || !t3[p]);
61
+ }, w = function t3(e3, n3, r3) {
62
+ var i3;
63
+ if (!e3)
64
+ return g;
65
+ if ("string" == typeof e3) {
66
+ var s3 = e3.toLowerCase();
67
+ D[s3] && (i3 = s3), n3 && (D[s3] = n3, i3 = s3);
68
+ var u2 = e3.split("-");
69
+ if (!i3 && u2.length > 1)
70
+ return t3(u2[0]);
71
+ } else {
72
+ var a3 = e3.name;
73
+ D[a3] = e3, i3 = a3;
74
+ }
75
+ return !r3 && i3 && (g = i3), i3 || !r3 && g;
76
+ }, O = function(t3, e3) {
77
+ if (S(t3))
78
+ return t3.clone();
79
+ var n3 = "object" == typeof e3 ? e3 : {};
80
+ return n3.date = t3, n3.args = arguments, new _(n3);
81
+ }, b = v;
82
+ b.l = w, b.i = S, b.w = function(t3, e3) {
83
+ return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
84
+ };
85
+ var _ = function() {
86
+ function M2(t3) {
87
+ this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
88
+ }
89
+ var m2 = M2.prototype;
90
+ return m2.parse = function(t3) {
91
+ this.$d = function(t4) {
92
+ var e3 = t4.date, n3 = t4.utc;
93
+ if (null === e3)
94
+ return /* @__PURE__ */ new Date(NaN);
95
+ if (b.u(e3))
96
+ return /* @__PURE__ */ new Date();
97
+ if (e3 instanceof Date)
98
+ return new Date(e3);
99
+ if ("string" == typeof e3 && !/Z$/i.test(e3)) {
100
+ var r3 = e3.match($);
101
+ if (r3) {
102
+ var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
103
+ return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
104
+ }
246
105
  }
247
- return null;
248
- }(t4) || i3.replace(":", "");
249
- });
250
- }, m3.utcOffset = function() {
251
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
252
- }, m3.diff = function(r3, d2, l2) {
253
- var $2, y2 = this, M3 = b.p(d2), m4 = O(r3), v2 = (m4.utcOffset() - this.utcOffset()) * e2, g2 = this - m4, D2 = function() {
254
- return b.m(y2, m4);
106
+ return new Date(e3);
107
+ }(t3), this.init();
108
+ }, m2.init = function() {
109
+ var t3 = this.$d;
110
+ this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
111
+ }, m2.$utils = function() {
112
+ return b;
113
+ }, m2.isValid = function() {
114
+ return !(this.$d.toString() === l);
115
+ }, m2.isSame = function(t3, e3) {
116
+ var n3 = O(t3);
117
+ return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
118
+ }, m2.isAfter = function(t3, e3) {
119
+ return O(t3) < this.startOf(e3);
120
+ }, m2.isBefore = function(t3, e3) {
121
+ return this.endOf(e3) < O(t3);
122
+ }, m2.$g = function(t3, e3, n3) {
123
+ return b.u(t3) ? this[e3] : this.set(n3, t3);
124
+ }, m2.unix = function() {
125
+ return Math.floor(this.valueOf() / 1e3);
126
+ }, m2.valueOf = function() {
127
+ return this.$d.getTime();
128
+ }, m2.startOf = function(t3, e3) {
129
+ var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
130
+ var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
131
+ return r3 ? i3 : i3.endOf(a2);
132
+ }, $2 = function(t4, e4) {
133
+ return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
134
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
135
+ switch (f2) {
136
+ case h:
137
+ return r3 ? l2(1, 0) : l2(31, 11);
138
+ case c2:
139
+ return r3 ? l2(1, M3) : l2(0, M3 + 1);
140
+ case o:
141
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
142
+ return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
143
+ case a2:
144
+ case d:
145
+ return $2(v2 + "Hours", 0);
146
+ case u:
147
+ return $2(v2 + "Minutes", 1);
148
+ case s2:
149
+ return $2(v2 + "Seconds", 2);
150
+ case i2:
151
+ return $2(v2 + "Milliseconds", 3);
152
+ default:
153
+ return this.clone();
154
+ }
155
+ }, m2.endOf = function(t3) {
156
+ return this.startOf(t3, false);
157
+ }, m2.$set = function(t3, e3) {
158
+ var n3, o2 = b.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a2] = f2 + "Date", n3[d] = f2 + "Date", n3[c2] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s2] = f2 + "Minutes", n3[i2] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a2 ? this.$D + (e3 - this.$W) : e3;
159
+ if (o2 === c2 || o2 === h) {
160
+ var y2 = this.clone().set(d, 1);
161
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
162
+ } else
163
+ l2 && this.$d[l2]($2);
164
+ return this.init(), this;
165
+ }, m2.set = function(t3, e3) {
166
+ return this.clone().$set(t3, e3);
167
+ }, m2.get = function(t3) {
168
+ return this[b.p(t3)]();
169
+ }, m2.add = function(r3, f2) {
170
+ var d2, l2 = this;
171
+ r3 = Number(r3);
172
+ var $2 = b.p(f2), y2 = function(t3) {
173
+ var e3 = O(l2);
174
+ return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
175
+ };
176
+ if ($2 === c2)
177
+ return this.set(c2, this.$M + r3);
178
+ if ($2 === h)
179
+ return this.set(h, this.$y + r3);
180
+ if ($2 === a2)
181
+ return y2(1);
182
+ if ($2 === o)
183
+ return y2(7);
184
+ var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
185
+ return b.w(m3, this);
186
+ }, m2.subtract = function(t3, e3) {
187
+ return this.add(-1 * t3, e3);
188
+ }, m2.format = function(t3) {
189
+ var e3 = this, n3 = this.$locale();
190
+ if (!this.isValid())
191
+ return n3.invalidDate || l;
192
+ var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s3 = this.$H, u2 = this.$m, a3 = this.$M, o2 = n3.weekdays, c3 = n3.months, f2 = n3.meridiem, h2 = function(t4, n4, i4, s4) {
193
+ return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
194
+ }, d2 = function(t4) {
195
+ return b.s(s3 % 12 || 12, t4, "0");
196
+ }, $2 = f2 || function(t4, e4, n4) {
197
+ var r4 = t4 < 12 ? "AM" : "PM";
198
+ return n4 ? r4.toLowerCase() : r4;
199
+ };
200
+ return r3.replace(y, function(t4, r4) {
201
+ return r4 || function(t5) {
202
+ switch (t5) {
203
+ case "YY":
204
+ return String(e3.$y).slice(-2);
205
+ case "YYYY":
206
+ return b.s(e3.$y, 4, "0");
207
+ case "M":
208
+ return a3 + 1;
209
+ case "MM":
210
+ return b.s(a3 + 1, 2, "0");
211
+ case "MMM":
212
+ return h2(n3.monthsShort, a3, c3, 3);
213
+ case "MMMM":
214
+ return h2(c3, a3);
215
+ case "D":
216
+ return e3.$D;
217
+ case "DD":
218
+ return b.s(e3.$D, 2, "0");
219
+ case "d":
220
+ return String(e3.$W);
221
+ case "dd":
222
+ return h2(n3.weekdaysMin, e3.$W, o2, 2);
223
+ case "ddd":
224
+ return h2(n3.weekdaysShort, e3.$W, o2, 3);
225
+ case "dddd":
226
+ return o2[e3.$W];
227
+ case "H":
228
+ return String(s3);
229
+ case "HH":
230
+ return b.s(s3, 2, "0");
231
+ case "h":
232
+ return d2(1);
233
+ case "hh":
234
+ return d2(2);
235
+ case "a":
236
+ return $2(s3, u2, true);
237
+ case "A":
238
+ return $2(s3, u2, false);
239
+ case "m":
240
+ return String(u2);
241
+ case "mm":
242
+ return b.s(u2, 2, "0");
243
+ case "s":
244
+ return String(e3.$s);
245
+ case "ss":
246
+ return b.s(e3.$s, 2, "0");
247
+ case "SSS":
248
+ return b.s(e3.$ms, 3, "0");
249
+ case "Z":
250
+ return i3;
251
+ }
252
+ return null;
253
+ }(t4) || i3.replace(":", "");
254
+ });
255
+ }, m2.utcOffset = function() {
256
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
257
+ }, m2.diff = function(r3, d2, l2) {
258
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
259
+ return b.m(y2, m3);
260
+ };
261
+ switch (M3) {
262
+ case h:
263
+ $2 = D2() / 12;
264
+ break;
265
+ case c2:
266
+ $2 = D2();
267
+ break;
268
+ case f:
269
+ $2 = D2() / 3;
270
+ break;
271
+ case o:
272
+ $2 = (g2 - v2) / 6048e5;
273
+ break;
274
+ case a2:
275
+ $2 = (g2 - v2) / 864e5;
276
+ break;
277
+ case u:
278
+ $2 = g2 / n2;
279
+ break;
280
+ case s2:
281
+ $2 = g2 / e2;
282
+ break;
283
+ case i2:
284
+ $2 = g2 / t2;
285
+ break;
286
+ default:
287
+ $2 = g2;
288
+ }
289
+ return l2 ? $2 : b.a($2);
290
+ }, m2.daysInMonth = function() {
291
+ return this.endOf(c2).$D;
292
+ }, m2.$locale = function() {
293
+ return D[this.$L];
294
+ }, m2.locale = function(t3, e3) {
295
+ if (!t3)
296
+ return this.$L;
297
+ var n3 = this.clone(), r3 = w(t3, e3, true);
298
+ return r3 && (n3.$L = r3), n3;
299
+ }, m2.clone = function() {
300
+ return b.w(this.$d, this);
301
+ }, m2.toDate = function() {
302
+ return new Date(this.valueOf());
303
+ }, m2.toJSON = function() {
304
+ return this.isValid() ? this.toISOString() : null;
305
+ }, m2.toISOString = function() {
306
+ return this.$d.toISOString();
307
+ }, m2.toString = function() {
308
+ return this.$d.toUTCString();
309
+ }, M2;
310
+ }(), k = _.prototype;
311
+ return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
312
+ k[t3[1]] = function(e3) {
313
+ return this.$g(e3, t3[0], t3[1]);
255
314
  };
256
- switch (M3) {
257
- case h:
258
- $2 = D2() / 12;
259
- break;
260
- case c2:
261
- $2 = D2();
262
- break;
263
- case f:
264
- $2 = D2() / 3;
265
- break;
266
- case o:
267
- $2 = (g2 - v2) / 6048e5;
268
- break;
269
- case a2:
270
- $2 = (g2 - v2) / 864e5;
271
- break;
272
- case u:
273
- $2 = g2 / n2;
274
- break;
275
- case s2:
276
- $2 = g2 / e2;
277
- break;
278
- case i2:
279
- $2 = g2 / t2;
280
- break;
281
- default:
282
- $2 = g2;
283
- }
284
- return l2 ? $2 : b.a($2);
285
- }, m3.daysInMonth = function() {
286
- return this.endOf(c2).$D;
287
- }, m3.$locale = function() {
288
- return D[this.$L];
289
- }, m3.locale = function(t3, e3) {
290
- if (!t3)
291
- return this.$L;
292
- var n3 = this.clone(), r3 = w(t3, e3, true);
293
- return r3 && (n3.$L = r3), n3;
294
- }, m3.clone = function() {
295
- return b.w(this.$d, this);
296
- }, m3.toDate = function() {
297
- return new Date(this.valueOf());
298
- }, m3.toJSON = function() {
299
- return this.isValid() ? this.toISOString() : null;
300
- }, m3.toISOString = function() {
301
- return this.$d.toISOString();
302
- }, m3.toString = function() {
303
- return this.$d.toUTCString();
304
- }, M2;
305
- }(), k = _.prototype;
306
- return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
307
- k[t3[1]] = function(e3) {
308
- return this.$g(e3, t3[0], t3[1]);
309
- };
310
- }), O.extend = function(t3, e3) {
311
- return t3.$i || (t3(e3, _, O), t3.$i = true), O;
312
- }, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
313
- return O(1e3 * t3);
314
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
315
- });
316
- })(dayjs_min);
317
- var dayjs_minExports = dayjs_min.exports;
315
+ }), O.extend = function(t3, e3) {
316
+ return t3.$i || (t3(e3, _, O), t3.$i = true), O;
317
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
318
+ return O(1e3 * t3);
319
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
320
+ });
321
+ })(dayjs_min);
322
+ return dayjs_min.exports;
323
+ }
324
+ var dayjs_minExports = requireDayjs_min();
318
325
  const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
319
326
  var zh = { exports: {} };
320
327
  (function(module, exports) {
321
328
  !function(e2, _) {
322
- module.exports = _(dayjs_minExports);
329
+ module.exports = _(requireDayjs_min());
323
330
  }(commonjsGlobal, function(e2) {
324
331
  function _(e3) {
325
332
  return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
@@ -398,23 +405,23 @@ function a(e2, t2) {
398
405
  }
399
406
  var c = { parse: function(e2, t2) {
400
407
  t2 || (t2 = {}), t2.components || (t2.components = s);
401
- var a2, c2 = [], o = [], l = -1, m2 = false;
408
+ var a2, c2 = [], o = [], l = -1, m = false;
402
409
  if (0 !== e2.indexOf("<")) {
403
410
  var u = e2.indexOf("<");
404
411
  c2.push({ type: "text", content: -1 === u ? e2 : e2.substring(0, u) });
405
412
  }
406
413
  return e2.replace(r, function(r2, s2) {
407
- if (m2) {
414
+ if (m) {
408
415
  if (r2 !== "</" + a2.name + ">")
409
416
  return;
410
- m2 = false;
417
+ m = false;
411
418
  }
412
419
  var u2, f = "/" !== r2.charAt(1), h = r2.startsWith("<!--"), p = s2 + r2.length, d = e2.charAt(p);
413
420
  if (h) {
414
421
  var v = n(r2);
415
422
  return l < 0 ? (c2.push(v), c2) : ((u2 = o[l]).children.push(v), c2);
416
423
  }
417
- if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m2 = true), a2.voidElement || m2 || !d || "<" === d || a2.children.push({ type: "text", content: e2.slice(p, e2.indexOf("<", p)) }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m2 && "<" !== d && d)) {
424
+ if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m = true), a2.voidElement || m || !d || "<" === d || a2.children.push({ type: "text", content: e2.slice(p, e2.indexOf("<", p)) }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m && "<" !== d && d)) {
418
425
  u2 = -1 === l ? c2 : o[l].children;
419
426
  var x = e2.indexOf("<", p), g = e2.slice(p, -1 === x ? void 0 : x);
420
427
  i.test(g) && (g = " "), (x > -1 && l + u2.length >= 0 || " " !== g) && u2.push({ type: "text", content: g });
@@ -533,7 +540,7 @@ const htmlEntities = {
533
540
  "&#x2F;": "/",
534
541
  "&#47;": "/"
535
542
  };
536
- const unescapeHtmlEntity = (m2) => htmlEntities[m2];
543
+ const unescapeHtmlEntity = (m) => htmlEntities[m];
537
544
  const unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
538
545
  let defaultOptions$1 = {
539
546
  bindI18n: "languageChanged",
@@ -1586,7 +1593,7 @@ function requireReactJsxRuntime_production_min() {
1586
1593
  g = h("react.element");
1587
1594
  reactJsxRuntime_production_min.Fragment = h("react.fragment");
1588
1595
  }
1589
- var m2 = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n2 = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
1596
+ var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n2 = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
1590
1597
  function q(c2, a2, k) {
1591
1598
  var b, d = {}, e2 = null, l = null;
1592
1599
  void 0 !== k && (e2 = "" + k);
@@ -1597,7 +1604,7 @@ function requireReactJsxRuntime_production_min() {
1597
1604
  if (c2 && c2.defaultProps)
1598
1605
  for (b in a2 = c2.defaultProps, a2)
1599
1606
  void 0 === d[b] && (d[b] = a2[b]);
1600
- return { $$typeof: g, type: c2, key: e2, ref: l, props: d, _owner: m2.current };
1607
+ return { $$typeof: g, type: c2, key: e2, ref: l, props: d, _owner: m.current };
1601
1608
  }
1602
1609
  reactJsxRuntime_production_min.jsx = q;
1603
1610
  reactJsxRuntime_production_min.jsxs = q;
@@ -8402,7 +8409,7 @@ function MetadataForm() {
8402
8409
  /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
8403
8410
  ] });
8404
8411
  }
8405
- function memoize$1(fn) {
8412
+ function memoize$2(fn) {
8406
8413
  var cache = /* @__PURE__ */ Object.create(null);
8407
8414
  return function(arg) {
8408
8415
  if (cache[arg] === void 0)
@@ -8411,7 +8418,7 @@ function memoize$1(fn) {
8411
8418
  };
8412
8419
  }
8413
8420
  var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
8414
- var isPropValid = /* @__PURE__ */ memoize$1(
8421
+ var isPropValid = /* @__PURE__ */ memoize$2(
8415
8422
  function(prop) {
8416
8423
  return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
8417
8424
  }
@@ -8601,7 +8608,8 @@ function Table(props) {
8601
8608
  columns,
8602
8609
  scroll,
8603
8610
  currentPage,
8604
- currentSize,
8611
+ defaultSize,
8612
+ total,
8605
8613
  RowMenu,
8606
8614
  refetch,
8607
8615
  onPageChange,
@@ -8612,9 +8620,9 @@ function Table(props) {
8612
8620
  const wrapperRef = useRef(null);
8613
8621
  const pagination = useMemo(() => ({
8614
8622
  current: currentPage,
8615
- pageSize: currentSize,
8623
+ pageSize: defaultSize,
8616
8624
  onChange: onPageChange
8617
- }), [currentPage, currentSize, onPageChange]);
8625
+ }), [currentPage, defaultSize, onPageChange]);
8618
8626
  const finalColumns = useMemo(() => {
8619
8627
  if (RowMenu) {
8620
8628
  const actionColumn = {
@@ -8667,8 +8675,8 @@ function Table(props) {
8667
8675
  ref: auxiliaryLineRef
8668
8676
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.pagination, {
8669
8677
  current: currentPage,
8670
- size: currentSize,
8671
- count: dataSource.length,
8678
+ size: defaultSize,
8679
+ count: total,
8672
8680
  onChange: onPageChange,
8673
8681
  onSizeChange
8674
8682
  })]
@@ -8692,14 +8700,16 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
8692
8700
  display: true,
8693
8701
  dataIndex: "key",
8694
8702
  title: t2("dovetail.key"),
8695
- sortable: true
8703
+ sortable: true,
8704
+ width: "50%"
8696
8705
  },
8697
8706
  {
8698
8707
  key: "value",
8699
8708
  display: true,
8700
8709
  dataIndex: "value",
8701
8710
  title: t2("dovetail.value"),
8702
- sortable: true
8711
+ sortable: true,
8712
+ width: "50%"
8703
8713
  }
8704
8714
  ];
8705
8715
  if (datas.length === 0) {
@@ -8722,7 +8732,7 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
8722
8732
  columns: addDefaultRenderToColumns(columns),
8723
8733
  rowKey: "key",
8724
8734
  empty: t2("dovetail.empty"),
8725
- currentSize,
8735
+ defaultSize: currentSize,
8726
8736
  currentPage,
8727
8737
  onPageChange: setCurrentPage,
8728
8738
  showMenuColumn: false
@@ -8741,35 +8751,40 @@ const PortsTable = ({ service }) => {
8741
8751
  display: true,
8742
8752
  dataIndex: "name",
8743
8753
  title: t2("dovetail.name"),
8744
- sortable: true
8754
+ sortable: true,
8755
+ width: 267
8745
8756
  },
8746
8757
  {
8747
8758
  key: "servicePort",
8748
8759
  display: true,
8749
8760
  dataIndex: "port",
8750
8761
  title: t2("dovetail.service_port"),
8751
- sortable: true
8762
+ sortable: true,
8763
+ width: 199
8752
8764
  },
8753
8765
  {
8754
8766
  key: "protocol",
8755
8767
  display: true,
8756
8768
  dataIndex: "protocol",
8757
8769
  title: t2("dovetail.protocol"),
8758
- sortable: true
8770
+ sortable: true,
8771
+ width: 199
8759
8772
  },
8760
8773
  {
8761
8774
  key: "podPort",
8762
8775
  display: true,
8763
8776
  dataIndex: "targetPort",
8764
8777
  title: t2("dovetail.pod_port"),
8765
- sortable: true
8778
+ sortable: true,
8779
+ width: 199
8766
8780
  },
8767
8781
  {
8768
8782
  key: "nodePort",
8769
8783
  display: true,
8770
8784
  dataIndex: "nodePort",
8771
8785
  title: t2("dovetail.node_port"),
8772
- sortable: true
8786
+ sortable: true,
8787
+ width: 199
8773
8788
  }
8774
8789
  ];
8775
8790
  const ports = (service._rawYaml.spec.ports || []).map((port2) => ({
@@ -8796,7 +8811,7 @@ const PortsTable = ({ service }) => {
8796
8811
  columns: addDefaultRenderToColumns(columns),
8797
8812
  rowKey: "name",
8798
8813
  empty: t2("dovetail.empty"),
8799
- currentSize,
8814
+ defaultSize: currentSize,
8800
8815
  currentPage,
8801
8816
  onPageChange: setCurrentPage,
8802
8817
  showMenuColumn: false
@@ -10017,7 +10032,7 @@ var relativeTime$1 = { exports: {} };
10017
10032
  return n2.fromToBase(r3, e3, t3, o2);
10018
10033
  }
10019
10034
  t2.en.relativeTime = o, n2.fromToBase = function(e3, n3, i3, d2, u) {
10020
- for (var f, a2, s2, l = i3.$locale().relativeTime || o, h = r2.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m2 = h.length, c2 = 0; c2 < m2; c2 += 1) {
10035
+ for (var f, a2, s2, l = i3.$locale().relativeTime || o, h = r2.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h.length, c2 = 0; c2 < m; c2 += 1) {
10021
10036
  var y = h[c2];
10022
10037
  y.d && (f = d2 ? t2(e3).diff(i3, y.d, true) : i3.diff(e3, y.d, true));
10023
10038
  var p = (r2.rounding || Math.round)(Math.abs(f));
@@ -10123,6 +10138,7 @@ const ConditionsTable = ({ conditions = [] }) => {
10123
10138
  display: true,
10124
10139
  dataIndex: "type",
10125
10140
  title: t2("dovetail.type"),
10141
+ width: 120,
10126
10142
  sortable: true
10127
10143
  },
10128
10144
  {
@@ -10138,6 +10154,7 @@ const ConditionsTable = ({ conditions = [] }) => {
10138
10154
  };
10139
10155
  return /* @__PURE__ */ jsxRuntimeExports.jsx(StatusCapsule, { color: colorMap[value2 || "Unknown"], className: cx_default(StateTagStyle, "no-background"), children: t2(`dovetail.${value2.toLowerCase()}`) });
10140
10156
  },
10157
+ width: 120,
10141
10158
  sortable: true
10142
10159
  },
10143
10160
  {
@@ -10146,6 +10163,7 @@ const ConditionsTable = ({ conditions = [] }) => {
10146
10163
  dataIndex: "lastUpdateTime",
10147
10164
  title: t2("dovetail.updated_time"),
10148
10165
  sortable: true,
10166
+ width: 120,
10149
10167
  render: (value2, record) => {
10150
10168
  const time = value2 || record.lastTransitionTime;
10151
10169
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(time) });
@@ -10156,14 +10174,16 @@ const ConditionsTable = ({ conditions = [] }) => {
10156
10174
  display: true,
10157
10175
  dataIndex: "reason",
10158
10176
  title: t2("dovetail.reason"),
10159
- sortable: true
10177
+ sortable: true,
10178
+ width: 300
10160
10179
  },
10161
10180
  {
10162
10181
  key: "message",
10163
10182
  display: true,
10164
10183
  dataIndex: "message",
10165
10184
  title: t2("dovetail.message"),
10166
- sortable: true
10185
+ sortable: true,
10186
+ width: 403
10167
10187
  }
10168
10188
  ];
10169
10189
  if (conditionsWithId.length === 0) {
@@ -10186,7 +10206,7 @@ const ConditionsTable = ({ conditions = [] }) => {
10186
10206
  columns: addDefaultRenderToColumns(columns),
10187
10207
  rowKey: "type",
10188
10208
  empty: t2("dovetail.empty"),
10189
- currentSize,
10209
+ defaultSize: currentSize,
10190
10210
  currentPage,
10191
10211
  onPageChange: setCurrentPage,
10192
10212
  showMenuColumn: false
@@ -10411,7 +10431,10 @@ const CronjobJobsTable = ({
10411
10431
  return owner ? matchOwner(p, owner) : true;
10412
10432
  });
10413
10433
  }, [data2 == null ? void 0 : data2.data, owner]);
10414
- const columns = [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), CompletionsCountColumnRenderer(i18n2), DurationColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
10434
+ const columns = [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), {
10435
+ ...WorkloadImageColumnRenderer(i18n2),
10436
+ width: 238
10437
+ }, CompletionsCountColumnRenderer(i18n2), DurationColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
10415
10438
  if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
10416
10439
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
10417
10440
  errorText: i18n2.t("dovetail.no_resource", {
@@ -10436,7 +10459,7 @@ const CronjobJobsTable = ({
10436
10459
  error: false,
10437
10460
  currentPage,
10438
10461
  onPageChange: (p) => setCurrentPage(p),
10439
- currentSize,
10462
+ defaultSize: currentSize,
10440
10463
  refetch: () => null,
10441
10464
  showMenuColumn: false
10442
10465
  })]
@@ -10462,6 +10485,7 @@ const EventsTable = ({}) => {
10462
10485
  dataIndex: ["type"],
10463
10486
  title: i18n2.t("dovetail.type"),
10464
10487
  sortable: true,
10488
+ width: 120,
10465
10489
  render(value2) {
10466
10490
  const colorMap = {
10467
10491
  "Warning": "red",
@@ -10477,6 +10501,7 @@ const EventsTable = ({}) => {
10477
10501
  dataIndex: ["reason"],
10478
10502
  title: i18n2.t("dovetail.reason"),
10479
10503
  sortable: true,
10504
+ width: 120,
10480
10505
  sorter: CommonSorter(["reason"])
10481
10506
  },
10482
10507
  {
@@ -10485,6 +10510,7 @@ const EventsTable = ({}) => {
10485
10510
  dataIndex: ["note"],
10486
10511
  title: i18n2.t("dovetail.note"),
10487
10512
  sortable: true,
10513
+ width: 723,
10488
10514
  sorter: CommonSorter(["note"])
10489
10515
  },
10490
10516
  AgeColumnRenderer(i18n2, { title: i18n2.t("dovetail.last_seen"), width: 160 }, { isRelativeTime: false })
@@ -10519,7 +10545,7 @@ const EventsTable = ({}) => {
10519
10545
  error: false,
10520
10546
  currentPage,
10521
10547
  onPageChange: (p) => setCurrentPage(p),
10522
- currentSize,
10548
+ defaultSize: currentSize,
10523
10549
  refetch: () => null,
10524
10550
  showMenuColumn: false
10525
10551
  }
@@ -10572,6 +10598,7 @@ const IngressRulesTable = ({ ingress }) => {
10572
10598
  display: true,
10573
10599
  dataIndex: "pathType",
10574
10600
  title: t2("dovetail.path_type"),
10601
+ width: 160,
10575
10602
  sortable: true
10576
10603
  },
10577
10604
  {
@@ -10579,6 +10606,7 @@ const IngressRulesTable = ({ ingress }) => {
10579
10606
  display: true,
10580
10607
  dataIndex: "fullPath",
10581
10608
  title: t2("dovetail.path"),
10609
+ width: 478,
10582
10610
  sortable: true
10583
10611
  },
10584
10612
  {
@@ -10587,6 +10615,7 @@ const IngressRulesTable = ({ ingress }) => {
10587
10615
  dataIndex: "serviceName",
10588
10616
  title: t2("dovetail.backend"),
10589
10617
  sortable: true,
10618
+ width: 160,
10590
10619
  render: (serviceName, record) => {
10591
10620
  return record.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
10592
10621
  ResourceLink,
@@ -10603,6 +10632,7 @@ const IngressRulesTable = ({ ingress }) => {
10603
10632
  display: true,
10604
10633
  dataIndex: "servicePort",
10605
10634
  title: t2("dovetail.port"),
10635
+ width: 120,
10606
10636
  sortable: true
10607
10637
  },
10608
10638
  {
@@ -10610,6 +10640,7 @@ const IngressRulesTable = ({ ingress }) => {
10610
10640
  display: true,
10611
10641
  dataIndex: "host",
10612
10642
  title: "Secret",
10643
+ width: 160,
10613
10644
  render(host2) {
10614
10645
  var _a, _b;
10615
10646
  const secretName = (_b = (_a = ingress._rawYaml.spec.tls) == null ? void 0 : _a.find(({ hosts }) => hosts == null ? void 0 : hosts.includes(host2))) == null ? void 0 : _b.secretName;
@@ -10645,7 +10676,7 @@ const IngressRulesTable = ({ ingress }) => {
10645
10676
  columns: addDefaultRenderToColumns(columns),
10646
10677
  rowKey: "pathType",
10647
10678
  empty: t2("dovetail.empty"),
10648
- currentSize,
10679
+ defaultSize: currentSize,
10649
10680
  currentPage,
10650
10681
  onPageChange: setCurrentPage,
10651
10682
  showMenuColumn: false
@@ -10908,11 +10939,11 @@ const ShowContent = (props) => {
10908
10939
  return null;
10909
10940
  return fields.map((field) => {
10910
10941
  let content;
10911
- const value2 = get$2(record, field.path);
10942
+ const value2 = get$3(record, field.path);
10912
10943
  if (field.renderContent) {
10913
10944
  content = field.renderContent(value2, record, field);
10914
10945
  } else {
10915
- content = get$2(record, field.path);
10946
+ content = get$3(record, field.path);
10916
10947
  }
10917
10948
  return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.col, {
10918
10949
  flex: areaType === AreaType.Inline ? "none" : "",
@@ -10948,7 +10979,7 @@ const ShowContent = (props) => {
10948
10979
  });
10949
10980
  });
10950
10981
  }
10951
- const stateDisplay = get$2(record, "stateDisplay");
10982
+ const stateDisplay = get$3(record, "stateDisplay");
10952
10983
  const topBar = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
10953
10984
  className: ToolBarWrapper,
10954
10985
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
@@ -11107,7 +11138,8 @@ const WorkloadPodsTable = ({
11107
11138
  display: true,
11108
11139
  dataIndex: ["status", "podIP"],
11109
11140
  title: i18n2.t("dovetail.ip_address"),
11110
- sortable: true
11141
+ sortable: true,
11142
+ width: 160
11111
11143
  }, NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2), RestartCountColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
11112
11144
  if ((dataSource == null ? void 0 : dataSource.length) === 0) {
11113
11145
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
@@ -11137,7 +11169,7 @@ const WorkloadPodsTable = ({
11137
11169
  error: false,
11138
11170
  currentPage,
11139
11171
  onPageChange: (p) => setCurrentPage(p),
11140
- currentSize,
11172
+ defaultSize: currentSize,
11141
11173
  refetch: () => null,
11142
11174
  showMenuColumn: false
11143
11175
  })]
@@ -11878,7 +11910,7 @@ function requireReactDomServer_browser_production_min() {
11878
11910
  });
11879
11911
  }
11880
11912
  }
11881
- function C2(a2) {
11913
+ function C(a2) {
11882
11914
  if (null == a2)
11883
11915
  return null;
11884
11916
  if ("function" === typeof a2)
@@ -11910,12 +11942,12 @@ function requireReactDomServer_browser_production_min() {
11910
11942
  b = b.displayName || b.name || "";
11911
11943
  return a2.displayName || ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef");
11912
11944
  case ia:
11913
- return C2(a2.type);
11945
+ return C(a2.type);
11914
11946
  case ka:
11915
- return C2(a2.render);
11947
+ return C(a2.render);
11916
11948
  case ja:
11917
11949
  if (a2 = 1 === a2._status ? a2._result : null)
11918
- return C2(a2);
11950
+ return C(a2);
11919
11951
  }
11920
11952
  return null;
11921
11953
  }
@@ -12027,23 +12059,23 @@ function requireReactDomServer_browser_production_min() {
12027
12059
  ["rowSpan", "start"].forEach(function(a2) {
12028
12060
  K[a2] = new J(a2, 5, false, a2.toLowerCase(), null, false);
12029
12061
  });
12030
- var L2 = /[\-:]([a-z])/g;
12062
+ var L = /[\-:]([a-z])/g;
12031
12063
  function M(a2) {
12032
12064
  return a2[1].toUpperCase();
12033
12065
  }
12034
12066
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) {
12035
12067
  var b = a2.replace(
12036
- L2,
12068
+ L,
12037
12069
  M
12038
12070
  );
12039
12071
  K[b] = new J(b, 1, false, a2, null, false);
12040
12072
  });
12041
12073
  "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) {
12042
- var b = a2.replace(L2, M);
12074
+ var b = a2.replace(L, M);
12043
12075
  K[b] = new J(b, 1, false, a2, "http://www.w3.org/1999/xlink", false);
12044
12076
  });
12045
12077
  ["xml:base", "xml:lang", "xml:space"].forEach(function(a2) {
12046
- var b = a2.replace(L2, M);
12078
+ var b = a2.replace(L, M);
12047
12079
  K[b] = new J(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false);
12048
12080
  });
12049
12081
  ["tabIndex", "crossOrigin"].forEach(function(a2) {
@@ -12302,11 +12334,11 @@ function requireReactDomServer_browser_production_min() {
12302
12334
  var Wa = Object.prototype.hasOwnProperty, Xa = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null };
12303
12335
  function Ya(a2, b) {
12304
12336
  if (void 0 === a2)
12305
- throw Error(q(152, C2(b) || "Component"));
12337
+ throw Error(q(152, C(b) || "Component"));
12306
12338
  }
12307
12339
  function Za(a2, b, c2) {
12308
12340
  function d(d2, g2) {
12309
- var e2 = g2.prototype && g2.prototype.isReactComponent, f2 = pa(g2, b, c2, e2), x = [], h = false, m2 = { isMounted: function() {
12341
+ var e2 = g2.prototype && g2.prototype.isReactComponent, f2 = pa(g2, b, c2, e2), x = [], h = false, m = { isMounted: function() {
12310
12342
  return false;
12311
12343
  }, enqueueForceUpdate: function() {
12312
12344
  if (null === x)
@@ -12320,14 +12352,14 @@ function requireReactDomServer_browser_production_min() {
12320
12352
  x.push(c3);
12321
12353
  } };
12322
12354
  if (e2) {
12323
- if (e2 = new g2(d2.props, f2, m2), "function" === typeof g2.getDerivedStateFromProps) {
12355
+ if (e2 = new g2(d2.props, f2, m), "function" === typeof g2.getDerivedStateFromProps) {
12324
12356
  var w = g2.getDerivedStateFromProps.call(null, d2.props, e2.state);
12325
12357
  null != w && (e2.state = k({}, e2.state, w));
12326
12358
  }
12327
12359
  } else if (O = {}, e2 = g2(
12328
12360
  d2.props,
12329
12361
  f2,
12330
- m2
12362
+ m
12331
12363
  ), e2 = Da(g2, d2.props, e2, f2), null == e2 || null == e2.render) {
12332
12364
  a2 = e2;
12333
12365
  Ya(a2, g2);
@@ -12335,22 +12367,22 @@ function requireReactDomServer_browser_production_min() {
12335
12367
  }
12336
12368
  e2.props = d2.props;
12337
12369
  e2.context = f2;
12338
- e2.updater = m2;
12339
- m2 = e2.state;
12340
- void 0 === m2 && (e2.state = m2 = null);
12370
+ e2.updater = m;
12371
+ m = e2.state;
12372
+ void 0 === m && (e2.state = m = null);
12341
12373
  if ("function" === typeof e2.UNSAFE_componentWillMount || "function" === typeof e2.componentWillMount)
12342
12374
  if ("function" === typeof e2.componentWillMount && "function" !== typeof g2.getDerivedStateFromProps && e2.componentWillMount(), "function" === typeof e2.UNSAFE_componentWillMount && "function" !== typeof g2.getDerivedStateFromProps && e2.UNSAFE_componentWillMount(), x.length) {
12343
- m2 = x;
12375
+ m = x;
12344
12376
  var r2 = h;
12345
12377
  x = null;
12346
12378
  h = false;
12347
- if (r2 && 1 === m2.length)
12348
- e2.state = m2[0];
12379
+ if (r2 && 1 === m.length)
12380
+ e2.state = m[0];
12349
12381
  else {
12350
- w = r2 ? m2[0] : e2.state;
12382
+ w = r2 ? m[0] : e2.state;
12351
12383
  var y = true;
12352
- for (r2 = r2 ? 1 : 0; r2 < m2.length; r2++) {
12353
- var p = m2[r2];
12384
+ for (r2 = r2 ? 1 : 0; r2 < m.length; r2++) {
12385
+ var p = m[r2];
12354
12386
  p = "function" === typeof p ? p.call(e2, w, d2.props, f2) : p;
12355
12387
  null != p && (y ? (y = false, w = k({}, w, p)) : k(w, p));
12356
12388
  }
@@ -12364,7 +12396,7 @@ function requireReactDomServer_browser_production_min() {
12364
12396
  var A = e2.getChildContext();
12365
12397
  for (var T in A)
12366
12398
  if (!(T in d2))
12367
- throw Error(q(108, C2(g2) || "Unknown", T));
12399
+ throw Error(q(108, C(g2) || "Unknown", T));
12368
12400
  }
12369
12401
  A && (b = k({}, b, A));
12370
12402
  }
@@ -12477,9 +12509,9 @@ function requireReactDomServer_browser_production_min() {
12477
12509
  }
12478
12510
  g[this.suspenseDepth] += I;
12479
12511
  } else {
12480
- var m2 = e2.children[e2.childIndex++], w = "";
12512
+ var m = e2.children[e2.childIndex++], w = "";
12481
12513
  try {
12482
- w += this.render(m2, e2.context, e2.domNamespace);
12514
+ w += this.render(m, e2.context, e2.domNamespace);
12483
12515
  } catch (r2) {
12484
12516
  if (null != r2 && "function" === typeof r2.then)
12485
12517
  throw Error(q(294));
@@ -12650,14 +12682,14 @@ function requireReactDomServer_browser_production_min() {
12650
12682
  G = "<" + a3.type;
12651
12683
  for (z in h)
12652
12684
  if (Wa.call(h, z)) {
12653
- var m2 = h[z];
12654
- if (null != m2) {
12685
+ var m = h[z];
12686
+ if (null != m) {
12655
12687
  if ("style" === z) {
12656
12688
  n2 = void 0;
12657
12689
  var w = "", r2 = "";
12658
- for (n2 in m2)
12659
- if (m2.hasOwnProperty(n2)) {
12660
- var y = 0 === n2.indexOf("--"), p = m2[n2];
12690
+ for (n2 in m)
12691
+ if (m.hasOwnProperty(n2)) {
12692
+ var y = 0 === n2.indexOf("--"), p = m[n2];
12661
12693
  if (null != p) {
12662
12694
  if (y)
12663
12695
  var A = n2;
@@ -12674,7 +12706,7 @@ function requireReactDomServer_browser_production_min() {
12674
12706
  r2 = ";";
12675
12707
  }
12676
12708
  }
12677
- m2 = w || null;
12709
+ m = w || null;
12678
12710
  }
12679
12711
  n2 = null;
12680
12712
  b:
@@ -12695,7 +12727,7 @@ function requireReactDomServer_browser_production_min() {
12695
12727
  default:
12696
12728
  y = true;
12697
12729
  }
12698
- y ? Xa.hasOwnProperty(z) || (n2 = z, n2 = ua(n2) && null != m2 ? n2 + '="' + (N(m2) + '"') : "") : n2 = ya(z, m2);
12730
+ y ? Xa.hasOwnProperty(z) || (n2 = z, n2 = ua(n2) && null != m ? n2 + '="' + (N(m) + '"') : "") : n2 = ya(z, m);
12699
12731
  n2 && (G += " " + n2);
12700
12732
  }
12701
12733
  }
@@ -12757,14 +12789,14 @@ function requireReactPropTypesSecret() {
12757
12789
  ReactPropTypesSecret_1 = ReactPropTypesSecret;
12758
12790
  return ReactPropTypesSecret_1;
12759
12791
  }
12760
- var has$1;
12792
+ var has$2;
12761
12793
  var hasRequiredHas;
12762
12794
  function requireHas() {
12763
12795
  if (hasRequiredHas)
12764
- return has$1;
12796
+ return has$2;
12765
12797
  hasRequiredHas = 1;
12766
- has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
12767
- return has$1;
12798
+ has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
12799
+ return has$2;
12768
12800
  }
12769
12801
  var checkPropTypes_1;
12770
12802
  var hasRequiredCheckPropTypes;
@@ -17639,8 +17671,8 @@ const MonacoYamlEditor$1 = (props) => {
17639
17671
  const currentEditorUri = model == null ? void 0 : model.uri;
17640
17672
  if (model && uri2.toString() === (currentEditorUri == null ? void 0 : currentEditorUri.toString())) {
17641
17673
  const marks = monaco.editor.getModelMarkers({ owner: "yaml", resource: currentEditorUri });
17642
- const yamlMarks = marks.filter((m2) => m2.source === "YAML");
17643
- const schemaMarks = marks.filter((m2) => m2.source !== "YAML");
17674
+ const yamlMarks = marks.filter((m) => m.source === "YAML");
17675
+ const schemaMarks = marks.filter((m) => m.source !== "YAML");
17644
17676
  const yamlValid = yamlMarks.length === 0;
17645
17677
  const schemaValid = schemaMarks.length === 0;
17646
17678
  onValidate == null ? void 0 : onValidate(yamlValid, schemaValid);
@@ -17754,7 +17786,8 @@ const PodContainersTable = ({
17754
17786
  dataIndex: ["name"],
17755
17787
  title: i18n2.t("dovetail.name"),
17756
17788
  sortable: true,
17757
- sorter: CommonSorter(["name"])
17789
+ sorter: CommonSorter(["name"]),
17790
+ width: 200
17758
17791
  },
17759
17792
  {
17760
17793
  key: "state",
@@ -17762,6 +17795,7 @@ const PodContainersTable = ({
17762
17795
  title: i18n2.t("dovetail.state"),
17763
17796
  sortable: true,
17764
17797
  sorter: CommonSorter(["state"]),
17798
+ width: 120,
17765
17799
  render: (v) => /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, { state: Object.keys(v)[0], hideBackground: true })
17766
17800
  },
17767
17801
  {
@@ -17769,12 +17803,14 @@ const PodContainersTable = ({
17769
17803
  dataIndex: ["image"],
17770
17804
  title: i18n2.t("dovetail.image"),
17771
17805
  sortable: true,
17806
+ width: 383,
17772
17807
  sorter: CommonSorter(["image"])
17773
17808
  },
17774
17809
  {
17775
17810
  key: "init",
17776
17811
  dataIndex: [],
17777
17812
  title: i18n2.t("dovetail.type"),
17813
+ width: 120,
17778
17814
  render: (_, record) => {
17779
17815
  const isInit = initContainerStatuses.some(
17780
17816
  (c2) => c2.containerID === record.containerID
@@ -17787,6 +17823,8 @@ const PodContainersTable = ({
17787
17823
  dataIndex: ["restartCount"],
17788
17824
  title: i18n2.t("dovetail.restarts"),
17789
17825
  sortable: true,
17826
+ align: "right",
17827
+ width: 120,
17790
17828
  sorter: CommonSorter(["restartCount"])
17791
17829
  },
17792
17830
  {
@@ -17795,6 +17833,7 @@ const PodContainersTable = ({
17795
17833
  title: i18n2.t("dovetail.created_time"),
17796
17834
  sortable: true,
17797
17835
  sorter: CommonSorter(["state", "running", "startedAt"]),
17836
+ width: 120,
17798
17837
  render: (value2) => {
17799
17838
  if (value2)
17800
17839
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(value2) });
@@ -17828,7 +17867,7 @@ const PodContainersTable = ({
17828
17867
  columns: addDefaultRenderToColumns(columns),
17829
17868
  rowKey: "containerID",
17830
17869
  error: false,
17831
- currentSize,
17870
+ defaultSize: currentSize,
17832
17871
  currentPage,
17833
17872
  onPageChange: setCurrentPage,
17834
17873
  showMenuColumn: false
@@ -18480,7 +18519,7 @@ function ResourceList(props) {
18480
18519
  useTableParams: {},
18481
18520
  columns: [nameRenderer, ...(columns == null ? void 0 : columns()) || []],
18482
18521
  tableProps: {
18483
- currentSize: 50
18522
+ defaultSize: 50
18484
18523
  },
18485
18524
  formatter,
18486
18525
  Dropdown
@@ -19712,7 +19751,7 @@ function getSaturation(hsv, i2, light) {
19712
19751
  }
19713
19752
  return saturation;
19714
19753
  }
19715
- function getValue$1(hsv, i2, light) {
19754
+ function getValue$2(hsv, i2, light) {
19716
19755
  if (light) {
19717
19756
  return Math.round(hsv.v * 100) + brightnessStep1 * i2;
19718
19757
  }
@@ -19726,7 +19765,7 @@ function generate$2(color) {
19726
19765
  var colorString = tinycolor2_1.default({
19727
19766
  h: getHue(hsv, i2, true),
19728
19767
  s: getSaturation(hsv, i2, true),
19729
- v: getValue$1(hsv, i2, true)
19768
+ v: getValue$2(hsv, i2, true)
19730
19769
  }).toHexString();
19731
19770
  patterns.push(colorString);
19732
19771
  }
@@ -19736,7 +19775,7 @@ function generate$2(color) {
19736
19775
  var colorString = tinycolor2_1.default({
19737
19776
  h: getHue(hsv, i2),
19738
19777
  s: getSaturation(hsv, i2),
19739
- v: getValue$1(hsv, i2)
19778
+ v: getValue$2(hsv, i2)
19740
19779
  }).toHexString();
19741
19780
  patterns.push(colorString);
19742
19781
  }
@@ -20112,13 +20151,13 @@ var isCheckBoxInput = (element) => element.type === "checkbox";
20112
20151
  var isDateObject = (value2) => value2 instanceof Date;
20113
20152
  var isNullOrUndefined = (value2) => value2 == null;
20114
20153
  const isObjectType = (value2) => typeof value2 === "object";
20115
- var isObject$1 = (value2) => !isNullOrUndefined(value2) && !Array.isArray(value2) && isObjectType(value2) && !isDateObject(value2);
20116
- var getEventValue = (event2) => isObject$1(event2) && event2.target ? isCheckBoxInput(event2.target) ? event2.target.checked : event2.target.value : event2;
20154
+ var isObject$3 = (value2) => !isNullOrUndefined(value2) && !Array.isArray(value2) && isObjectType(value2) && !isDateObject(value2);
20155
+ var getEventValue = (event2) => isObject$3(event2) && event2.target ? isCheckBoxInput(event2.target) ? event2.target.checked : event2.target.value : event2;
20117
20156
  var getNodeParentName = (name2) => name2.substring(0, name2.search(/\.\d+(\.|$)/)) || name2;
20118
20157
  var isNameInFieldArray = (names, name2) => names.has(getNodeParentName(name2));
20119
20158
  var isPlainObject = (tempObject) => {
20120
20159
  const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;
20121
- return isObject$1(prototypeCopy) && prototypeCopy.hasOwnProperty("isPrototypeOf");
20160
+ return isObject$3(prototypeCopy) && prototypeCopy.hasOwnProperty("isPrototypeOf");
20122
20161
  };
20123
20162
  var isWeb = typeof window !== "undefined" && typeof window.HTMLElement !== "undefined" && typeof document !== "undefined";
20124
20163
  function cloneObject(data2) {
@@ -20128,7 +20167,7 @@ function cloneObject(data2) {
20128
20167
  copy2 = new Date(data2);
20129
20168
  } else if (data2 instanceof Set) {
20130
20169
  copy2 = new Set(data2);
20131
- } else if (!(isWeb && (data2 instanceof Blob || data2 instanceof FileList)) && (isArray2 || isObject$1(data2))) {
20170
+ } else if (!(isWeb && (data2 instanceof Blob || data2 instanceof FileList)) && (isArray2 || isObject$3(data2))) {
20132
20171
  copy2 = isArray2 ? [] : {};
20133
20172
  if (!isArray2 && !isPlainObject(data2)) {
20134
20173
  copy2 = data2;
@@ -20146,8 +20185,8 @@ function cloneObject(data2) {
20146
20185
  }
20147
20186
  var compact = (value2) => Array.isArray(value2) ? value2.filter(Boolean) : [];
20148
20187
  var isUndefined = (val) => val === void 0;
20149
- var get$1 = (object2, path2, defaultValue) => {
20150
- if (!path2 || !isObject$1(object2)) {
20188
+ var get$2 = (object2, path2, defaultValue) => {
20189
+ if (!path2 || !isObject$3(object2)) {
20151
20190
  return defaultValue;
20152
20191
  }
20153
20192
  const result = compact(path2.split(/[,[\].]+?/)).reduce((result2, key2) => isNullOrUndefined(result2) ? result2 : result2[key2], object2);
@@ -20195,7 +20234,7 @@ var getProxyFormState = (formState, control, localProxyFormState, isRoot = true)
20195
20234
  }
20196
20235
  return result;
20197
20236
  };
20198
- var isEmptyObject = (value2) => isObject$1(value2) && !Object.keys(value2).length;
20237
+ var isEmptyObject = (value2) => isObject$3(value2) && !Object.keys(value2).length;
20199
20238
  var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {
20200
20239
  updateFormState(formStateData);
20201
20240
  const { name: name2, ...formState } = formStateData;
@@ -20252,10 +20291,10 @@ var isString = (value2) => typeof value2 === "string";
20252
20291
  var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {
20253
20292
  if (isString(names)) {
20254
20293
  isGlobal && _names.watch.add(names);
20255
- return get$1(formValues, names, defaultValue);
20294
+ return get$2(formValues, names, defaultValue);
20256
20295
  }
20257
20296
  if (Array.isArray(names)) {
20258
- return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get$1(formValues, fieldName)));
20297
+ return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get$2(formValues, fieldName)));
20259
20298
  }
20260
20299
  isGlobal && (_names.watchAll = true);
20261
20300
  return formValues;
@@ -20278,11 +20317,11 @@ function useWatch(props) {
20278
20317
  React__default.useEffect(() => control._removeUnmounted());
20279
20318
  return value2;
20280
20319
  }
20281
- var isKey$1 = (value2) => /^\w*$/.test(value2);
20320
+ var isKey$2 = (value2) => /^\w*$/.test(value2);
20282
20321
  var stringToPath$2 = (input) => compact(input.replace(/["|']|\]/g, "").split(/\.|\[/));
20283
20322
  var set = (object2, path2, value2) => {
20284
20323
  let index = -1;
20285
- const tempPath = isKey$1(path2) ? [path2] : stringToPath$2(path2);
20324
+ const tempPath = isKey$2(path2) ? [path2] : stringToPath$2(path2);
20286
20325
  const length = tempPath.length;
20287
20326
  const lastIndex = length - 1;
20288
20327
  while (++index < length) {
@@ -20290,7 +20329,7 @@ var set = (object2, path2, value2) => {
20290
20329
  let newValue = value2;
20291
20330
  if (index !== lastIndex) {
20292
20331
  const objValue = object2[key2];
20293
- newValue = isObject$1(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};
20332
+ newValue = isObject$3(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};
20294
20333
  }
20295
20334
  object2[key2] = newValue;
20296
20335
  object2 = object2[key2];
@@ -20304,7 +20343,7 @@ function useController(props) {
20304
20343
  const value2 = useWatch({
20305
20344
  control,
20306
20345
  name: name2,
20307
- defaultValue: get$1(control._formValues, name2, get$1(control._defaultValues, name2, props.defaultValue)),
20346
+ defaultValue: get$2(control._formValues, name2, get$2(control._defaultValues, name2, props.defaultValue)),
20308
20347
  exact: true
20309
20348
  });
20310
20349
  const formState = useFormState({
@@ -20319,16 +20358,16 @@ function useController(props) {
20319
20358
  React__default.useEffect(() => {
20320
20359
  const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
20321
20360
  const updateMounted = (name3, value3) => {
20322
- const field = get$1(control._fields, name3);
20361
+ const field = get$2(control._fields, name3);
20323
20362
  if (field) {
20324
20363
  field._f.mount = value3;
20325
20364
  }
20326
20365
  };
20327
20366
  updateMounted(name2, true);
20328
20367
  if (_shouldUnregisterField) {
20329
- const value3 = cloneObject(get$1(control._options.defaultValues, name2));
20368
+ const value3 = cloneObject(get$2(control._options.defaultValues, name2));
20330
20369
  set(control._defaultValues, name2, value3);
20331
- if (isUndefined(get$1(control._formValues, name2))) {
20370
+ if (isUndefined(get$2(control._formValues, name2))) {
20332
20371
  set(control._formValues, name2, value3);
20333
20372
  }
20334
20373
  }
@@ -20337,12 +20376,12 @@ function useController(props) {
20337
20376
  };
20338
20377
  }, [name2, control, isArrayField, shouldUnregister]);
20339
20378
  React__default.useEffect(() => {
20340
- if (get$1(control._fields, name2)) {
20379
+ if (get$2(control._fields, name2)) {
20341
20380
  control._updateDisabledField({
20342
20381
  disabled,
20343
20382
  fields: control._fields,
20344
20383
  name: name2,
20345
- value: get$1(control._fields, name2)._f.value
20384
+ value: get$2(control._fields, name2)._f.value
20346
20385
  });
20347
20386
  }
20348
20387
  }, [disabled, name2, control]);
@@ -20360,13 +20399,13 @@ function useController(props) {
20360
20399
  }), [name2]),
20361
20400
  onBlur: React__default.useCallback(() => _registerProps.current.onBlur({
20362
20401
  target: {
20363
- value: get$1(control._formValues, name2),
20402
+ value: get$2(control._formValues, name2),
20364
20403
  name: name2
20365
20404
  },
20366
20405
  type: EVENTS.BLUR
20367
20406
  }), [name2, control]),
20368
20407
  ref: (elm) => {
20369
- const field = get$1(control._fields, name2);
20408
+ const field = get$2(control._fields, name2);
20370
20409
  if (field && elm) {
20371
20410
  field._f.ref = {
20372
20411
  focus: () => elm.focus(),
@@ -20381,19 +20420,19 @@ function useController(props) {
20381
20420
  fieldState: Object.defineProperties({}, {
20382
20421
  invalid: {
20383
20422
  enumerable: true,
20384
- get: () => !!get$1(formState.errors, name2)
20423
+ get: () => !!get$2(formState.errors, name2)
20385
20424
  },
20386
20425
  isDirty: {
20387
20426
  enumerable: true,
20388
- get: () => !!get$1(formState.dirtyFields, name2)
20427
+ get: () => !!get$2(formState.dirtyFields, name2)
20389
20428
  },
20390
20429
  isTouched: {
20391
20430
  enumerable: true,
20392
- get: () => !!get$1(formState.touchedFields, name2)
20431
+ get: () => !!get$2(formState.touchedFields, name2)
20393
20432
  },
20394
20433
  error: {
20395
20434
  enumerable: true,
20396
- get: () => get$1(formState.errors, name2)
20435
+ get: () => get$2(formState.errors, name2)
20397
20436
  }
20398
20437
  })
20399
20438
  };
@@ -20416,7 +20455,7 @@ var getValidationModes = (mode) => ({
20416
20455
  var isWatched = (name2, _names, isBlurEvent) => !isBlurEvent && (_names.watchAll || _names.watch.has(name2) || [..._names.watch].some((watchName) => name2.startsWith(watchName) && /^\.\w+/.test(name2.slice(watchName.length))));
20417
20456
  const iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {
20418
20457
  for (const key2 of fieldsNames || Object.keys(fields)) {
20419
- const field = get$1(fields, key2);
20458
+ const field = get$2(fields, key2);
20420
20459
  if (field) {
20421
20460
  const { _f, ...currentField } = field;
20422
20461
  if (_f) {
@@ -20427,20 +20466,20 @@ const iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {
20427
20466
  } else {
20428
20467
  iterateFieldsByAction(currentField, action);
20429
20468
  }
20430
- } else if (isObject$1(currentField)) {
20469
+ } else if (isObject$3(currentField)) {
20431
20470
  iterateFieldsByAction(currentField, action);
20432
20471
  }
20433
20472
  }
20434
20473
  }
20435
20474
  };
20436
20475
  var updateFieldArrayRootError = (errors, error, name2) => {
20437
- const fieldArrayErrors = compact(get$1(errors, name2));
20476
+ const fieldArrayErrors = compact(get$2(errors, name2));
20438
20477
  set(fieldArrayErrors, "root", error[name2]);
20439
20478
  set(errors, name2, fieldArrayErrors);
20440
20479
  return errors;
20441
20480
  };
20442
20481
  var isFileInput = (element) => element.type === "file";
20443
- var isFunction$1 = (value2) => typeof value2 === "function";
20482
+ var isFunction$2 = (value2) => typeof value2 === "function";
20444
20483
  var isHTMLElement = (value2) => {
20445
20484
  if (!isWeb) {
20446
20485
  return false;
@@ -20486,13 +20525,13 @@ function getValidateError(result, ref, type2 = "validate") {
20486
20525
  };
20487
20526
  }
20488
20527
  }
20489
- var getValueAndMessage = (validationData) => isObject$1(validationData) && !isRegex(validationData) ? validationData : {
20528
+ var getValueAndMessage = (validationData) => isObject$3(validationData) && !isRegex(validationData) ? validationData : {
20490
20529
  value: validationData,
20491
20530
  message: ""
20492
20531
  };
20493
20532
  var validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {
20494
20533
  const { ref, refs, required, maxLength, minLength, min: min2, max, pattern, validate, name: name2, valueAsNumber, mount, disabled } = field._f;
20495
- const inputValue = get$1(formValues, name2);
20534
+ const inputValue = get$2(formValues, name2);
20496
20535
  if (!mount || disabled) {
20497
20536
  return {};
20498
20537
  }
@@ -20595,7 +20634,7 @@ var validateField = async (field, formValues, validateAllFieldCriteria, shouldUs
20595
20634
  }
20596
20635
  }
20597
20636
  if (validate) {
20598
- if (isFunction$1(validate)) {
20637
+ if (isFunction$2(validate)) {
20599
20638
  const result = await validate(inputValue, formValues);
20600
20639
  const validateError = getValidateError(result, inputRef);
20601
20640
  if (validateError) {
@@ -20608,7 +20647,7 @@ var validateField = async (field, formValues, validateAllFieldCriteria, shouldUs
20608
20647
  return error;
20609
20648
  }
20610
20649
  }
20611
- } else if (isObject$1(validate)) {
20650
+ } else if (isObject$3(validate)) {
20612
20651
  let validationResult = {};
20613
20652
  for (const key2 in validate) {
20614
20653
  if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {
@@ -20640,7 +20679,7 @@ var validateField = async (field, formValues, validateAllFieldCriteria, shouldUs
20640
20679
  setCustomValidity(true);
20641
20680
  return error;
20642
20681
  };
20643
- function baseGet$1(object2, updatePath) {
20682
+ function baseGet$2(object2, updatePath) {
20644
20683
  const length = updatePath.slice(0, -1).length;
20645
20684
  let index = 0;
20646
20685
  while (index < length) {
@@ -20657,14 +20696,14 @@ function isEmptyArray(obj) {
20657
20696
  return true;
20658
20697
  }
20659
20698
  function unset(object2, path2) {
20660
- const paths = Array.isArray(path2) ? path2 : isKey$1(path2) ? [path2] : stringToPath$2(path2);
20661
- const childObject = paths.length === 1 ? object2 : baseGet$1(object2, paths);
20699
+ const paths = Array.isArray(path2) ? path2 : isKey$2(path2) ? [path2] : stringToPath$2(path2);
20700
+ const childObject = paths.length === 1 ? object2 : baseGet$2(object2, paths);
20662
20701
  const index = paths.length - 1;
20663
20702
  const key2 = paths[index];
20664
20703
  if (childObject) {
20665
20704
  delete childObject[key2];
20666
20705
  }
20667
- if (index !== 0 && (isObject$1(childObject) && isEmptyObject(childObject) || Array.isArray(childObject) && isEmptyArray(childObject))) {
20706
+ if (index !== 0 && (isObject$3(childObject) && isEmptyObject(childObject) || Array.isArray(childObject) && isEmptyArray(childObject))) {
20668
20707
  unset(object2, paths.slice(0, -1));
20669
20708
  }
20670
20709
  return object2;
@@ -20716,7 +20755,7 @@ function deepEqual(object1, object2) {
20716
20755
  }
20717
20756
  if (key2 !== "ref") {
20718
20757
  const val2 = object2[key2];
20719
- if (isDateObject(val1) && isDateObject(val2) || isObject$1(val1) && isObject$1(val2) || Array.isArray(val1) && Array.isArray(val2) ? !deepEqual(val1, val2) : val1 !== val2) {
20758
+ if (isDateObject(val1) && isDateObject(val2) || isObject$3(val1) && isObject$3(val2) || Array.isArray(val1) && Array.isArray(val2) ? !deepEqual(val1, val2) : val1 !== val2) {
20720
20759
  return false;
20721
20760
  }
20722
20761
  }
@@ -20728,7 +20767,7 @@ var isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref);
20728
20767
  var live = (ref) => isHTMLElement(ref) && ref.isConnected;
20729
20768
  var objectHasFunction = (data2) => {
20730
20769
  for (const key2 in data2) {
20731
- if (isFunction$1(data2[key2])) {
20770
+ if (isFunction$2(data2[key2])) {
20732
20771
  return true;
20733
20772
  }
20734
20773
  }
@@ -20736,9 +20775,9 @@ var objectHasFunction = (data2) => {
20736
20775
  };
20737
20776
  function markFieldsDirty(data2, fields = {}) {
20738
20777
  const isParentNodeArray = Array.isArray(data2);
20739
- if (isObject$1(data2) || isParentNodeArray) {
20778
+ if (isObject$3(data2) || isParentNodeArray) {
20740
20779
  for (const key2 in data2) {
20741
- if (Array.isArray(data2[key2]) || isObject$1(data2[key2]) && !objectHasFunction(data2[key2])) {
20780
+ if (Array.isArray(data2[key2]) || isObject$3(data2[key2]) && !objectHasFunction(data2[key2])) {
20742
20781
  fields[key2] = Array.isArray(data2[key2]) ? [] : {};
20743
20782
  markFieldsDirty(data2[key2], fields[key2]);
20744
20783
  } else if (!isNullOrUndefined(data2[key2])) {
@@ -20750,9 +20789,9 @@ function markFieldsDirty(data2, fields = {}) {
20750
20789
  }
20751
20790
  function getDirtyFieldsFromDefaultValues(data2, formValues, dirtyFieldsFromValues) {
20752
20791
  const isParentNodeArray = Array.isArray(data2);
20753
- if (isObject$1(data2) || isParentNodeArray) {
20792
+ if (isObject$3(data2) || isParentNodeArray) {
20754
20793
  for (const key2 in data2) {
20755
- if (Array.isArray(data2[key2]) || isObject$1(data2[key2]) && !objectHasFunction(data2[key2])) {
20794
+ if (Array.isArray(data2[key2]) || isObject$3(data2[key2]) && !objectHasFunction(data2[key2])) {
20756
20795
  if (isUndefined(formValues) || isPrimitive(dirtyFieldsFromValues[key2])) {
20757
20796
  dirtyFieldsFromValues[key2] = Array.isArray(data2[key2]) ? markFieldsDirty(data2[key2], []) : { ...markFieldsDirty(data2[key2]) };
20758
20797
  } else {
@@ -20789,7 +20828,7 @@ function getFieldValue(_f) {
20789
20828
  var getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {
20790
20829
  const fields = {};
20791
20830
  for (const name2 of fieldsNames) {
20792
- const field = get$1(_fields, name2);
20831
+ const field = get$2(_fields, name2);
20793
20832
  field && set(fields, name2, field._f);
20794
20833
  }
20795
20834
  return {
@@ -20799,11 +20838,11 @@ var getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeVal
20799
20838
  shouldUseNativeValidation
20800
20839
  };
20801
20840
  };
20802
- var getRuleValue = (rule2) => isUndefined(rule2) ? rule2 : isRegex(rule2) ? rule2.source : isObject$1(rule2) ? isRegex(rule2.value) ? rule2.value.source : rule2.value : rule2;
20841
+ var getRuleValue = (rule2) => isUndefined(rule2) ? rule2 : isRegex(rule2) ? rule2.source : isObject$3(rule2) ? isRegex(rule2.value) ? rule2.value.source : rule2.value : rule2;
20803
20842
  var hasValidation = (options) => options.mount && (options.required || options.min || options.max || options.maxLength || options.minLength || options.pattern || options.validate);
20804
20843
  function schemaErrorLookup(errors, _fields, name2) {
20805
- const error = get$1(errors, name2);
20806
- if (error || isKey$1(name2)) {
20844
+ const error = get$2(errors, name2);
20845
+ if (error || isKey$2(name2)) {
20807
20846
  return {
20808
20847
  error,
20809
20848
  name: name2
@@ -20812,8 +20851,8 @@ function schemaErrorLookup(errors, _fields, name2) {
20812
20851
  const names = name2.split(".");
20813
20852
  while (names.length) {
20814
20853
  const fieldName = names.join(".");
20815
- const field = get$1(_fields, fieldName);
20816
- const foundError = get$1(errors, fieldName);
20854
+ const field = get$2(_fields, fieldName);
20855
+ const foundError = get$2(errors, fieldName);
20817
20856
  if (field && !Array.isArray(field) && name2 !== fieldName) {
20818
20857
  return { name: name2 };
20819
20858
  }
@@ -20841,7 +20880,7 @@ var skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode)
20841
20880
  }
20842
20881
  return true;
20843
20882
  };
20844
- var unsetEmptyArray = (ref, name2) => !compact(get$1(ref, name2)).length && unset(ref, name2);
20883
+ var unsetEmptyArray = (ref, name2) => !compact(get$2(ref, name2)).length && unset(ref, name2);
20845
20884
  const defaultOptions = {
20846
20885
  mode: VALIDATION_MODE.onSubmit,
20847
20886
  reValidateMode: VALIDATION_MODE.onChange,
@@ -20855,7 +20894,7 @@ function createFormControl(props = {}, flushRootRender) {
20855
20894
  let _formState = {
20856
20895
  submitCount: 0,
20857
20896
  isDirty: false,
20858
- isLoading: isFunction$1(_options.defaultValues),
20897
+ isLoading: isFunction$2(_options.defaultValues),
20859
20898
  isValidating: false,
20860
20899
  isSubmitted: false,
20861
20900
  isSubmitting: false,
@@ -20867,7 +20906,7 @@ function createFormControl(props = {}, flushRootRender) {
20867
20906
  disabled: _options.disabled || false
20868
20907
  };
20869
20908
  let _fields = {};
20870
- let _defaultValues = isObject$1(_options.values) || isObject$1(_options.defaultValues) ? cloneObject(_options.values || _options.defaultValues) || {} : {};
20909
+ let _defaultValues = isObject$3(_options.values) || isObject$3(_options.defaultValues) ? cloneObject(_options.values || _options.defaultValues) || {} : {};
20871
20910
  let _formValues = _options.shouldUnregister ? {} : cloneObject(_defaultValues);
20872
20911
  let _state = {
20873
20912
  action: false,
@@ -20918,17 +20957,17 @@ function createFormControl(props = {}, flushRootRender) {
20918
20957
  const _updateFieldArray = (name2, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {
20919
20958
  if (args && method) {
20920
20959
  _state.action = true;
20921
- if (shouldUpdateFieldsAndState && Array.isArray(get$1(_fields, name2))) {
20922
- const fieldValues = method(get$1(_fields, name2), args.argA, args.argB);
20960
+ if (shouldUpdateFieldsAndState && Array.isArray(get$2(_fields, name2))) {
20961
+ const fieldValues = method(get$2(_fields, name2), args.argA, args.argB);
20923
20962
  shouldSetValues && set(_fields, name2, fieldValues);
20924
20963
  }
20925
- if (shouldUpdateFieldsAndState && Array.isArray(get$1(_formState.errors, name2))) {
20926
- const errors = method(get$1(_formState.errors, name2), args.argA, args.argB);
20964
+ if (shouldUpdateFieldsAndState && Array.isArray(get$2(_formState.errors, name2))) {
20965
+ const errors = method(get$2(_formState.errors, name2), args.argA, args.argB);
20927
20966
  shouldSetValues && set(_formState.errors, name2, errors);
20928
20967
  unsetEmptyArray(_formState.errors, name2);
20929
20968
  }
20930
- if (_proxyFormState.touchedFields && shouldUpdateFieldsAndState && Array.isArray(get$1(_formState.touchedFields, name2))) {
20931
- const touchedFields = method(get$1(_formState.touchedFields, name2), args.argA, args.argB);
20969
+ if (_proxyFormState.touchedFields && shouldUpdateFieldsAndState && Array.isArray(get$2(_formState.touchedFields, name2))) {
20970
+ const touchedFields = method(get$2(_formState.touchedFields, name2), args.argA, args.argB);
20932
20971
  shouldSetValues && set(_formState.touchedFields, name2, touchedFields);
20933
20972
  }
20934
20973
  if (_proxyFormState.dirtyFields) {
@@ -20959,9 +20998,9 @@ function createFormControl(props = {}, flushRootRender) {
20959
20998
  });
20960
20999
  };
20961
21000
  const updateValidAndValue = (name2, shouldSkipSetValueAs, value2, ref) => {
20962
- const field = get$1(_fields, name2);
21001
+ const field = get$2(_fields, name2);
20963
21002
  if (field) {
20964
- const defaultValue = get$1(_formValues, name2, isUndefined(value2) ? get$1(_defaultValues, name2) : value2);
21003
+ const defaultValue = get$2(_formValues, name2, isUndefined(value2) ? get$2(_defaultValues, name2) : value2);
20965
21004
  isUndefined(defaultValue) || ref && ref.defaultChecked || shouldSkipSetValueAs ? set(_formValues, name2, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f)) : setFieldValue(name2, defaultValue);
20966
21005
  _state.mount && _updateValid();
20967
21006
  }
@@ -20972,21 +21011,21 @@ function createFormControl(props = {}, flushRootRender) {
20972
21011
  const output = {
20973
21012
  name: name2
20974
21013
  };
20975
- const disabledField = !!(get$1(_fields, name2) && get$1(_fields, name2)._f.disabled);
21014
+ const disabledField = !!(get$2(_fields, name2) && get$2(_fields, name2)._f.disabled);
20976
21015
  if (!isBlurEvent || shouldDirty) {
20977
21016
  if (_proxyFormState.isDirty) {
20978
21017
  isPreviousDirty = _formState.isDirty;
20979
21018
  _formState.isDirty = output.isDirty = _getDirty();
20980
21019
  shouldUpdateField = isPreviousDirty !== output.isDirty;
20981
21020
  }
20982
- const isCurrentFieldPristine = disabledField || deepEqual(get$1(_defaultValues, name2), fieldValue);
20983
- isPreviousDirty = !!(!disabledField && get$1(_formState.dirtyFields, name2));
21021
+ const isCurrentFieldPristine = disabledField || deepEqual(get$2(_defaultValues, name2), fieldValue);
21022
+ isPreviousDirty = !!(!disabledField && get$2(_formState.dirtyFields, name2));
20984
21023
  isCurrentFieldPristine || disabledField ? unset(_formState.dirtyFields, name2) : set(_formState.dirtyFields, name2, true);
20985
21024
  output.dirtyFields = _formState.dirtyFields;
20986
21025
  shouldUpdateField = shouldUpdateField || _proxyFormState.dirtyFields && isPreviousDirty !== !isCurrentFieldPristine;
20987
21026
  }
20988
21027
  if (isBlurEvent) {
20989
- const isPreviousFieldTouched = get$1(_formState.touchedFields, name2);
21028
+ const isPreviousFieldTouched = get$2(_formState.touchedFields, name2);
20990
21029
  if (!isPreviousFieldTouched) {
20991
21030
  set(_formState.touchedFields, name2, isBlurEvent);
20992
21031
  output.touchedFields = _formState.touchedFields;
@@ -20997,7 +21036,7 @@ function createFormControl(props = {}, flushRootRender) {
20997
21036
  return shouldUpdateField ? output : {};
20998
21037
  };
20999
21038
  const shouldRenderByError = (name2, isValid, error, fieldState) => {
21000
- const previousFieldError = get$1(_formState.errors, name2);
21039
+ const previousFieldError = get$2(_formState.errors, name2);
21001
21040
  const shouldUpdateValid = _proxyFormState.isValid && isBoolean(isValid) && _formState.isValid !== isValid;
21002
21041
  if (props.delayError && error) {
21003
21042
  delayErrorCallback = debounce2(() => updateErrors(name2, error));
@@ -21027,7 +21066,7 @@ function createFormControl(props = {}, flushRootRender) {
21027
21066
  const { errors } = await _executeSchema(names);
21028
21067
  if (names) {
21029
21068
  for (const name2 of names) {
21030
- const error = get$1(errors, name2);
21069
+ const error = get$2(errors, name2);
21031
21070
  error ? set(_formState.errors, name2, error) : unset(_formState.errors, name2);
21032
21071
  }
21033
21072
  } else {
@@ -21051,7 +21090,7 @@ function createFormControl(props = {}, flushRootRender) {
21051
21090
  break;
21052
21091
  }
21053
21092
  }
21054
- !shouldOnlyCheckValid && (get$1(fieldError, _f.name) ? isFieldArrayRoot ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name) : set(_formState.errors, _f.name, fieldError[_f.name]) : unset(_formState.errors, _f.name));
21093
+ !shouldOnlyCheckValid && (get$2(fieldError, _f.name) ? isFieldArrayRoot ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name) : set(_formState.errors, _f.name, fieldError[_f.name]) : unset(_formState.errors, _f.name));
21055
21094
  }
21056
21095
  fieldValue && await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context);
21057
21096
  }
@@ -21060,7 +21099,7 @@ function createFormControl(props = {}, flushRootRender) {
21060
21099
  };
21061
21100
  const _removeUnmounted = () => {
21062
21101
  for (const name2 of _names.unMount) {
21063
- const field = get$1(_fields, name2);
21102
+ const field = get$2(_fields, name2);
21064
21103
  field && (field._f.refs ? field._f.refs.every((ref) => !live(ref)) : !live(field._f.ref)) && unregister(name2);
21065
21104
  }
21066
21105
  _names.unMount = /* @__PURE__ */ new Set();
@@ -21069,9 +21108,9 @@ function createFormControl(props = {}, flushRootRender) {
21069
21108
  const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {
21070
21109
  ..._state.mount ? _formValues : isUndefined(defaultValue) ? _defaultValues : isString(names) ? { [names]: defaultValue } : defaultValue
21071
21110
  }, isGlobal, defaultValue);
21072
- const _getFieldArray = (name2) => compact(get$1(_state.mount ? _formValues : _defaultValues, name2, props.shouldUnregister ? get$1(_defaultValues, name2, []) : []));
21111
+ const _getFieldArray = (name2) => compact(get$2(_state.mount ? _formValues : _defaultValues, name2, props.shouldUnregister ? get$2(_defaultValues, name2, []) : []));
21073
21112
  const setFieldValue = (name2, value2, options = {}) => {
21074
- const field = get$1(_fields, name2);
21113
+ const field = get$2(_fields, name2);
21075
21114
  let fieldValue = value2;
21076
21115
  if (field) {
21077
21116
  const fieldReference = field._f;
@@ -21106,12 +21145,12 @@ function createFormControl(props = {}, flushRootRender) {
21106
21145
  for (const fieldKey in value2) {
21107
21146
  const fieldValue = value2[fieldKey];
21108
21147
  const fieldName = `${name2}.${fieldKey}`;
21109
- const field = get$1(_fields, fieldName);
21148
+ const field = get$2(_fields, fieldName);
21110
21149
  (_names.array.has(name2) || !isPrimitive(fieldValue) || field && !field._f) && !isDateObject(fieldValue) ? setValues(fieldName, fieldValue, options) : setFieldValue(fieldName, fieldValue, options);
21111
21150
  }
21112
21151
  };
21113
21152
  const setValue = (name2, value2, options = {}) => {
21114
- const field = get$1(_fields, name2);
21153
+ const field = get$2(_fields, name2);
21115
21154
  const isFieldArray = _names.array.has(name2);
21116
21155
  const cloneValue = cloneObject(value2);
21117
21156
  set(_formValues, name2, cloneValue);
@@ -21141,17 +21180,17 @@ function createFormControl(props = {}, flushRootRender) {
21141
21180
  const target = event2.target;
21142
21181
  let name2 = target.name;
21143
21182
  let isFieldValueUpdated = true;
21144
- const field = get$1(_fields, name2);
21183
+ const field = get$2(_fields, name2);
21145
21184
  const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event2);
21146
21185
  const _updateIsFieldValueUpdated = (fieldValue) => {
21147
- isFieldValueUpdated = Number.isNaN(fieldValue) || fieldValue === get$1(_formValues, name2, fieldValue);
21186
+ isFieldValueUpdated = Number.isNaN(fieldValue) || fieldValue === get$2(_formValues, name2, fieldValue);
21148
21187
  };
21149
21188
  if (field) {
21150
21189
  let error;
21151
21190
  let isValid;
21152
21191
  const fieldValue = getCurrentFieldValue();
21153
21192
  const isBlurEvent = event2.type === EVENTS.BLUR || event2.type === EVENTS.FOCUS_OUT;
21154
- const shouldSkipValidation = !hasValidation(field._f) && !_options.resolver && !get$1(_formState.errors, name2) && !field._f.deps || skipValidation(isBlurEvent, get$1(_formState.touchedFields, name2), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);
21193
+ const shouldSkipValidation = !hasValidation(field._f) && !_options.resolver && !get$2(_formState.errors, name2) && !field._f.deps || skipValidation(isBlurEvent, get$2(_formState.touchedFields, name2), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);
21155
21194
  const watched = isWatched(name2, _names, isBlurEvent);
21156
21195
  set(_formValues, name2, fieldValue);
21157
21196
  if (isBlurEvent) {
@@ -21201,7 +21240,7 @@ function createFormControl(props = {}, flushRootRender) {
21201
21240
  }
21202
21241
  };
21203
21242
  const _focusInput = (ref, key2) => {
21204
- if (get$1(_formState.errors, key2) && ref.focus) {
21243
+ if (get$2(_formState.errors, key2) && ref.focus) {
21205
21244
  ref.focus();
21206
21245
  return 1;
21207
21246
  }
@@ -21215,10 +21254,10 @@ function createFormControl(props = {}, flushRootRender) {
21215
21254
  if (_options.resolver) {
21216
21255
  const errors = await executeSchemaAndUpdateState(isUndefined(name2) ? name2 : fieldNames);
21217
21256
  isValid = isEmptyObject(errors);
21218
- validationResult = name2 ? !fieldNames.some((name3) => get$1(errors, name3)) : isValid;
21257
+ validationResult = name2 ? !fieldNames.some((name3) => get$2(errors, name3)) : isValid;
21219
21258
  } else if (name2) {
21220
21259
  validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {
21221
- const field = get$1(_fields, fieldName);
21260
+ const field = get$2(_fields, fieldName);
21222
21261
  return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);
21223
21262
  }))).every(Boolean);
21224
21263
  !(!validationResult && !_formState.isValid) && _updateValid();
@@ -21239,13 +21278,13 @@ function createFormControl(props = {}, flushRootRender) {
21239
21278
  ..._defaultValues,
21240
21279
  ..._state.mount ? _formValues : {}
21241
21280
  };
21242
- return isUndefined(fieldNames) ? values : isString(fieldNames) ? get$1(values, fieldNames) : fieldNames.map((name2) => get$1(values, name2));
21281
+ return isUndefined(fieldNames) ? values : isString(fieldNames) ? get$2(values, fieldNames) : fieldNames.map((name2) => get$2(values, name2));
21243
21282
  };
21244
21283
  const getFieldState = (name2, formState) => ({
21245
- invalid: !!get$1((formState || _formState).errors, name2),
21246
- isDirty: !!get$1((formState || _formState).dirtyFields, name2),
21247
- isTouched: !!get$1((formState || _formState).touchedFields, name2),
21248
- error: get$1((formState || _formState).errors, name2)
21284
+ invalid: !!get$2((formState || _formState).errors, name2),
21285
+ isDirty: !!get$2((formState || _formState).dirtyFields, name2),
21286
+ isTouched: !!get$2((formState || _formState).touchedFields, name2),
21287
+ error: get$2((formState || _formState).errors, name2)
21249
21288
  });
21250
21289
  const clearErrors = (name2) => {
21251
21290
  name2 && convertToArrayPayload(name2).forEach((inputName) => unset(_formState.errors, inputName));
@@ -21254,7 +21293,7 @@ function createFormControl(props = {}, flushRootRender) {
21254
21293
  });
21255
21294
  };
21256
21295
  const setError = (name2, error, options) => {
21257
- const ref = (get$1(_fields, name2, { _f: {} })._f || {}).ref;
21296
+ const ref = (get$2(_fields, name2, { _f: {} })._f || {}).ref;
21258
21297
  set(_formState.errors, name2, {
21259
21298
  ...error,
21260
21299
  ref
@@ -21266,7 +21305,7 @@ function createFormControl(props = {}, flushRootRender) {
21266
21305
  });
21267
21306
  options && options.shouldFocus && ref && ref.focus && ref.focus();
21268
21307
  };
21269
- const watch = (name2, defaultValue) => isFunction$1(name2) ? _subjects.values.subscribe({
21308
+ const watch = (name2, defaultValue) => isFunction$2(name2) ? _subjects.values.subscribe({
21270
21309
  next: (payload) => name2(_getWatch(void 0, defaultValue), payload)
21271
21310
  }) : _getWatch(name2, defaultValue, true);
21272
21311
  const unregister = (name2, options = {}) => {
@@ -21293,13 +21332,13 @@ function createFormControl(props = {}, flushRootRender) {
21293
21332
  };
21294
21333
  const _updateDisabledField = ({ disabled, name: name2, field, fields, value: value2 }) => {
21295
21334
  if (isBoolean(disabled)) {
21296
- const inputValue = disabled ? void 0 : isUndefined(value2) ? getFieldValue(field ? field._f : get$1(fields, name2)._f) : value2;
21335
+ const inputValue = disabled ? void 0 : isUndefined(value2) ? getFieldValue(field ? field._f : get$2(fields, name2)._f) : value2;
21297
21336
  set(_formValues, name2, inputValue);
21298
21337
  updateTouchAndDirty(name2, inputValue, false, false, true);
21299
21338
  }
21300
21339
  };
21301
21340
  const register = (name2, options = {}) => {
21302
- let field = get$1(_fields, name2);
21341
+ let field = get$2(_fields, name2);
21303
21342
  const disabledIsDefined = isBoolean(options.disabled);
21304
21343
  set(_fields, name2, {
21305
21344
  ...field || {},
@@ -21337,7 +21376,7 @@ function createFormControl(props = {}, flushRootRender) {
21337
21376
  ref: (ref) => {
21338
21377
  if (ref) {
21339
21378
  register(name2, options);
21340
- field = get$1(_fields, name2);
21379
+ field = get$2(_fields, name2);
21341
21380
  const fieldRef = isUndefined(ref.value) ? ref.querySelectorAll ? ref.querySelectorAll("input,select,textarea")[0] || ref : ref : ref;
21342
21381
  const radioOrCheckbox = isRadioOrCheckbox(fieldRef);
21343
21382
  const refs = field._f.refs || [];
@@ -21351,7 +21390,7 @@ function createFormControl(props = {}, flushRootRender) {
21351
21390
  refs: [
21352
21391
  ...refs.filter(live),
21353
21392
  fieldRef,
21354
- ...Array.isArray(get$1(_defaultValues, name2)) ? [{}] : []
21393
+ ...Array.isArray(get$2(_defaultValues, name2)) ? [{}] : []
21355
21394
  ],
21356
21395
  ref: { type: fieldRef.type, name: name2 }
21357
21396
  } : { ref: fieldRef }
@@ -21359,7 +21398,7 @@ function createFormControl(props = {}, flushRootRender) {
21359
21398
  });
21360
21399
  updateValidAndValue(name2, false, void 0, fieldRef);
21361
21400
  } else {
21362
- field = get$1(_fields, name2, {});
21401
+ field = get$2(_fields, name2, {});
21363
21402
  if (field._f) {
21364
21403
  field._f.mount = false;
21365
21404
  }
@@ -21374,7 +21413,7 @@ function createFormControl(props = {}, flushRootRender) {
21374
21413
  _subjects.state.next({ disabled });
21375
21414
  iterateFieldsByAction(_fields, (ref, name2) => {
21376
21415
  let requiredDisabledState = disabled;
21377
- const currentField = get$1(_fields, name2);
21416
+ const currentField = get$2(_fields, name2);
21378
21417
  if (currentField && isBoolean(currentField._f.disabled)) {
21379
21418
  requiredDisabledState || (requiredDisabledState = currentField._f.disabled);
21380
21419
  }
@@ -21428,9 +21467,9 @@ function createFormControl(props = {}, flushRootRender) {
21428
21467
  }
21429
21468
  };
21430
21469
  const resetField = (name2, options = {}) => {
21431
- if (get$1(_fields, name2)) {
21470
+ if (get$2(_fields, name2)) {
21432
21471
  if (isUndefined(options.defaultValue)) {
21433
- setValue(name2, cloneObject(get$1(_defaultValues, name2)));
21472
+ setValue(name2, cloneObject(get$2(_defaultValues, name2)));
21434
21473
  } else {
21435
21474
  setValue(name2, options.defaultValue);
21436
21475
  set(_defaultValues, name2, cloneObject(options.defaultValue));
@@ -21440,7 +21479,7 @@ function createFormControl(props = {}, flushRootRender) {
21440
21479
  }
21441
21480
  if (!options.keepDirty) {
21442
21481
  unset(_formState.dirtyFields, name2);
21443
- _formState.isDirty = options.defaultValue ? _getDirty(name2, cloneObject(get$1(_defaultValues, name2))) : _getDirty();
21482
+ _formState.isDirty = options.defaultValue ? _getDirty(name2, cloneObject(get$2(_defaultValues, name2))) : _getDirty();
21444
21483
  }
21445
21484
  if (!options.keepError) {
21446
21485
  unset(_formState.errors, name2);
@@ -21459,12 +21498,12 @@ function createFormControl(props = {}, flushRootRender) {
21459
21498
  if (!keepStateOptions.keepValues) {
21460
21499
  if (keepStateOptions.keepDirtyValues) {
21461
21500
  for (const fieldName of _names.mount) {
21462
- get$1(_formState.dirtyFields, fieldName) ? set(values, fieldName, get$1(_formValues, fieldName)) : setValue(fieldName, get$1(values, fieldName));
21501
+ get$2(_formState.dirtyFields, fieldName) ? set(values, fieldName, get$2(_formValues, fieldName)) : setValue(fieldName, get$2(values, fieldName));
21463
21502
  }
21464
21503
  } else {
21465
21504
  if (isWeb && isUndefined(formValues)) {
21466
21505
  for (const name2 of _names.mount) {
21467
- const field = get$1(_fields, name2);
21506
+ const field = get$2(_fields, name2);
21468
21507
  if (field && field._f) {
21469
21508
  const fieldReference = Array.isArray(field._f.refs) ? field._f.refs[0] : field._f.ref;
21470
21509
  if (isHTMLElement(fieldReference)) {
@@ -21509,9 +21548,9 @@ function createFormControl(props = {}, flushRootRender) {
21509
21548
  isSubmitting: false
21510
21549
  });
21511
21550
  };
21512
- const reset = (formValues, keepStateOptions) => _reset(isFunction$1(formValues) ? formValues(_formValues) : formValues, keepStateOptions);
21551
+ const reset = (formValues, keepStateOptions) => _reset(isFunction$2(formValues) ? formValues(_formValues) : formValues, keepStateOptions);
21513
21552
  const setFocus = (name2, options = {}) => {
21514
- const field = get$1(_fields, name2);
21553
+ const field = get$2(_fields, name2);
21515
21554
  const fieldReference = field && field._f;
21516
21555
  if (fieldReference) {
21517
21556
  const fieldRef = fieldReference.refs ? fieldReference.refs[0] : fieldReference.ref;
@@ -21527,7 +21566,7 @@ function createFormControl(props = {}, flushRootRender) {
21527
21566
  ...updatedFormState
21528
21567
  };
21529
21568
  };
21530
- const _resetDefaultValues = () => isFunction$1(_options.defaultValues) && _options.defaultValues().then((values) => {
21569
+ const _resetDefaultValues = () => isFunction$2(_options.defaultValues) && _options.defaultValues().then((values) => {
21531
21570
  reset(values, _options.resetOptions);
21532
21571
  _subjects.state.next({
21533
21572
  isLoading: false
@@ -21607,13 +21646,13 @@ function createFormControl(props = {}, flushRootRender) {
21607
21646
  getFieldState
21608
21647
  };
21609
21648
  }
21610
- function useForm(props = {}) {
21649
+ function useForm$1(props = {}) {
21611
21650
  const _formControl = React__default.useRef();
21612
21651
  const _values = React__default.useRef();
21613
21652
  const [formState, updateFormState] = React__default.useState({
21614
21653
  isDirty: false,
21615
21654
  isValidating: false,
21616
- isLoading: isFunction$1(props.defaultValues),
21655
+ isLoading: isFunction$2(props.defaultValues),
21617
21656
  isSubmitted: false,
21618
21657
  isSubmitting: false,
21619
21658
  isSubmitSuccessful: false,
@@ -21623,7 +21662,7 @@ function useForm(props = {}) {
21623
21662
  touchedFields: {},
21624
21663
  errors: props.errors || {},
21625
21664
  disabled: props.disabled || false,
21626
- defaultValues: isFunction$1(props.defaultValues) ? void 0 : props.defaultValues
21665
+ defaultValues: isFunction$2(props.defaultValues) ? void 0 : props.defaultValues
21627
21666
  });
21628
21667
  if (!_formControl.current) {
21629
21668
  _formControl.current = {
@@ -21690,23 +21729,28 @@ const RefineFormContent = (props) => {
21690
21729
  var _a, _b;
21691
21730
  const {
21692
21731
  config,
21693
- control,
21732
+ formResult,
21694
21733
  action,
21695
21734
  errorMsg
21696
21735
  } = props;
21736
+ const {
21737
+ control,
21738
+ getValues
21739
+ } = formResult;
21697
21740
  const fields = (_b = (_a = config == null ? void 0 : config.formConfig) == null ? void 0 : _a.fields) == null ? void 0 : _b.map((c2) => {
21698
21741
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Controller, {
21699
21742
  control,
21700
21743
  name: c2.path.join("."),
21701
21744
  rules: {
21702
- validate(value2, formValues) {
21745
+ validate(value2) {
21746
+ const formValue = getValues();
21703
21747
  if (!c2.validators || c2.validators.length === 0)
21704
21748
  return true;
21705
21749
  for (const func of c2.validators) {
21706
21750
  const {
21707
21751
  isValid,
21708
21752
  errorMsg: errorMsg2
21709
- } = func(value2, formValues);
21753
+ } = func(value2, formValue);
21710
21754
  if (!isValid)
21711
21755
  return errorMsg2;
21712
21756
  }
@@ -21723,6 +21767,7 @@ const RefineFormContent = (props) => {
21723
21767
  fieldState
21724
21768
  }) => {
21725
21769
  var _a2;
21770
+ const formValue = getValues();
21726
21771
  let ele = /* @__PURE__ */ jsxRuntimeExports.jsx(Fields.String, {
21727
21772
  input: {
21728
21773
  value: value2,
@@ -21751,6 +21796,9 @@ const RefineFormContent = (props) => {
21751
21796
  children: value2
21752
21797
  });
21753
21798
  }
21799
+ if (c2 == null ? void 0 : c2.render) {
21800
+ ele = c2.render(value2, onChange, formValue, onBlur);
21801
+ }
21754
21802
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
21755
21803
  label: c2.label,
21756
21804
  labelCol: {
@@ -21775,20 +21823,23 @@ const RefineFormContent = (props) => {
21775
21823
  })]
21776
21824
  });
21777
21825
  };
21778
- var isArray = Array.isArray;
21779
- const isArray$1 = isArray;
21780
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
21781
- const freeGlobal$1 = freeGlobal;
21826
+ var isArray$4 = Array.isArray;
21827
+ var isArray_1 = isArray$4;
21828
+ var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
21829
+ var _freeGlobal = freeGlobal$1;
21830
+ var freeGlobal = _freeGlobal;
21782
21831
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
21783
- var root = freeGlobal$1 || freeSelf || Function("return this")();
21784
- const root$1 = root;
21785
- var Symbol$1 = root$1.Symbol;
21786
- const Symbol$2 = Symbol$1;
21832
+ var root$3 = freeGlobal || freeSelf || Function("return this")();
21833
+ var _root = root$3;
21834
+ var root$2 = _root;
21835
+ var Symbol$4 = root$2.Symbol;
21836
+ var _Symbol = Symbol$4;
21837
+ var Symbol$3 = _Symbol;
21787
21838
  var objectProto$6 = Object.prototype;
21788
21839
  var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
21789
21840
  var nativeObjectToString$1 = objectProto$6.toString;
21790
- var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
21791
- function getRawTag(value2) {
21841
+ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
21842
+ function getRawTag$1(value2) {
21792
21843
  var isOwn = hasOwnProperty$5.call(value2, symToStringTag$1), tag = value2[symToStringTag$1];
21793
21844
  try {
21794
21845
  value2[symToStringTag$1] = void 0;
@@ -21805,61 +21856,76 @@ function getRawTag(value2) {
21805
21856
  }
21806
21857
  return result;
21807
21858
  }
21859
+ var _getRawTag = getRawTag$1;
21808
21860
  var objectProto$5 = Object.prototype;
21809
21861
  var nativeObjectToString = objectProto$5.toString;
21810
- function objectToString(value2) {
21862
+ function objectToString$1(value2) {
21811
21863
  return nativeObjectToString.call(value2);
21812
21864
  }
21865
+ var _objectToString = objectToString$1;
21866
+ var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
21813
21867
  var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
21814
21868
  var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
21815
- function baseGetTag(value2) {
21869
+ function baseGetTag$3(value2) {
21816
21870
  if (value2 == null) {
21817
21871
  return value2 === void 0 ? undefinedTag : nullTag;
21818
21872
  }
21819
21873
  return symToStringTag && symToStringTag in Object(value2) ? getRawTag(value2) : objectToString(value2);
21820
21874
  }
21821
- function isObjectLike(value2) {
21875
+ var _baseGetTag = baseGetTag$3;
21876
+ function isObjectLike$3(value2) {
21822
21877
  return value2 != null && typeof value2 == "object";
21823
21878
  }
21879
+ var isObjectLike_1 = isObjectLike$3;
21880
+ var baseGetTag$2 = _baseGetTag, isObjectLike$2 = isObjectLike_1;
21824
21881
  var symbolTag = "[object Symbol]";
21825
- function isSymbol(value2) {
21826
- return typeof value2 == "symbol" || isObjectLike(value2) && baseGetTag(value2) == symbolTag;
21882
+ function isSymbol$3(value2) {
21883
+ return typeof value2 == "symbol" || isObjectLike$2(value2) && baseGetTag$2(value2) == symbolTag;
21827
21884
  }
21885
+ var isSymbol_1 = isSymbol$3;
21886
+ var isArray$3 = isArray_1, isSymbol$2 = isSymbol_1;
21828
21887
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
21829
- function isKey(value2, object2) {
21830
- if (isArray$1(value2)) {
21888
+ function isKey$1(value2, object2) {
21889
+ if (isArray$3(value2)) {
21831
21890
  return false;
21832
21891
  }
21833
21892
  var type2 = typeof value2;
21834
- if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value2 == null || isSymbol(value2)) {
21893
+ if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value2 == null || isSymbol$2(value2)) {
21835
21894
  return true;
21836
21895
  }
21837
21896
  return reIsPlainProp.test(value2) || !reIsDeepProp.test(value2) || object2 != null && value2 in Object(object2);
21838
21897
  }
21839
- function isObject(value2) {
21898
+ var _isKey = isKey$1;
21899
+ function isObject$2(value2) {
21840
21900
  var type2 = typeof value2;
21841
21901
  return value2 != null && (type2 == "object" || type2 == "function");
21842
21902
  }
21903
+ var isObject_1 = isObject$2;
21904
+ var baseGetTag$1 = _baseGetTag, isObject$1 = isObject_1;
21843
21905
  var asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
21844
- function isFunction(value2) {
21845
- if (!isObject(value2)) {
21906
+ function isFunction$1(value2) {
21907
+ if (!isObject$1(value2)) {
21846
21908
  return false;
21847
21909
  }
21848
- var tag = baseGetTag(value2);
21910
+ var tag = baseGetTag$1(value2);
21849
21911
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
21850
21912
  }
21851
- var coreJsData = root$1["__core-js_shared__"];
21852
- const coreJsData$1 = coreJsData;
21913
+ var isFunction_1 = isFunction$1;
21914
+ var root$1 = _root;
21915
+ var coreJsData$1 = root$1["__core-js_shared__"];
21916
+ var _coreJsData = coreJsData$1;
21917
+ var coreJsData = _coreJsData;
21853
21918
  var maskSrcKey = function() {
21854
- var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
21919
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
21855
21920
  return uid ? "Symbol(src)_1." + uid : "";
21856
21921
  }();
21857
- function isMasked(func) {
21922
+ function isMasked$1(func) {
21858
21923
  return !!maskSrcKey && maskSrcKey in func;
21859
21924
  }
21925
+ var _isMasked = isMasked$1;
21860
21926
  var funcProto$1 = Function.prototype;
21861
21927
  var funcToString$1 = funcProto$1.toString;
21862
- function toSource(func) {
21928
+ function toSource$1(func) {
21863
21929
  if (func != null) {
21864
21930
  try {
21865
21931
  return funcToString$1.call(func);
@@ -21872,6 +21938,8 @@ function toSource(func) {
21872
21938
  }
21873
21939
  return "";
21874
21940
  }
21941
+ var _toSource = toSource$1;
21942
+ var isFunction = isFunction_1, isMasked = _isMasked, isObject = isObject_1, toSource = _toSource;
21875
21943
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
21876
21944
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
21877
21945
  var funcProto = Function.prototype, objectProto$4 = Object.prototype;
@@ -21880,56 +21948,71 @@ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
21880
21948
  var reIsNative = RegExp(
21881
21949
  "^" + funcToString.call(hasOwnProperty$4).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
21882
21950
  );
21883
- function baseIsNative(value2) {
21951
+ function baseIsNative$1(value2) {
21884
21952
  if (!isObject(value2) || isMasked(value2)) {
21885
21953
  return false;
21886
21954
  }
21887
21955
  var pattern = isFunction(value2) ? reIsNative : reIsHostCtor;
21888
21956
  return pattern.test(toSource(value2));
21889
21957
  }
21890
- function getValue(object2, key2) {
21958
+ var _baseIsNative = baseIsNative$1;
21959
+ function getValue$1(object2, key2) {
21891
21960
  return object2 == null ? void 0 : object2[key2];
21892
21961
  }
21893
- function getNative(object2, key2) {
21962
+ var _getValue = getValue$1;
21963
+ var baseIsNative = _baseIsNative, getValue = _getValue;
21964
+ function getNative$2(object2, key2) {
21894
21965
  var value2 = getValue(object2, key2);
21895
21966
  return baseIsNative(value2) ? value2 : void 0;
21896
21967
  }
21897
- var nativeCreate = getNative(Object, "create");
21898
- const nativeCreate$1 = nativeCreate;
21899
- function hashClear() {
21900
- this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
21968
+ var _getNative = getNative$2;
21969
+ var getNative$1 = _getNative;
21970
+ var nativeCreate$4 = getNative$1(Object, "create");
21971
+ var _nativeCreate = nativeCreate$4;
21972
+ var nativeCreate$3 = _nativeCreate;
21973
+ function hashClear$1() {
21974
+ this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
21901
21975
  this.size = 0;
21902
21976
  }
21903
- function hashDelete(key2) {
21977
+ var _hashClear = hashClear$1;
21978
+ function hashDelete$1(key2) {
21904
21979
  var result = this.has(key2) && delete this.__data__[key2];
21905
21980
  this.size -= result ? 1 : 0;
21906
21981
  return result;
21907
21982
  }
21983
+ var _hashDelete = hashDelete$1;
21984
+ var nativeCreate$2 = _nativeCreate;
21908
21985
  var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
21909
21986
  var objectProto$3 = Object.prototype;
21910
21987
  var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
21911
- function hashGet(key2) {
21988
+ function hashGet$1(key2) {
21912
21989
  var data2 = this.__data__;
21913
- if (nativeCreate$1) {
21990
+ if (nativeCreate$2) {
21914
21991
  var result = data2[key2];
21915
21992
  return result === HASH_UNDEFINED$1 ? void 0 : result;
21916
21993
  }
21917
21994
  return hasOwnProperty$3.call(data2, key2) ? data2[key2] : void 0;
21918
21995
  }
21996
+ var _hashGet = hashGet$1;
21997
+ var nativeCreate$1 = _nativeCreate;
21919
21998
  var objectProto$2 = Object.prototype;
21920
21999
  var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
21921
- function hashHas(key2) {
22000
+ function hashHas$1(key2) {
21922
22001
  var data2 = this.__data__;
21923
22002
  return nativeCreate$1 ? data2[key2] !== void 0 : hasOwnProperty$2.call(data2, key2);
21924
22003
  }
22004
+ var _hashHas = hashHas$1;
22005
+ var nativeCreate = _nativeCreate;
21925
22006
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
21926
- function hashSet(key2, value2) {
22007
+ function hashSet$1(key2, value2) {
21927
22008
  var data2 = this.__data__;
21928
22009
  this.size += this.has(key2) ? 0 : 1;
21929
- data2[key2] = nativeCreate$1 && value2 === void 0 ? HASH_UNDEFINED : value2;
22010
+ data2[key2] = nativeCreate && value2 === void 0 ? HASH_UNDEFINED : value2;
21930
22011
  return this;
21931
22012
  }
21932
- function Hash(entries) {
22013
+ var _hashSet = hashSet$1;
22014
+ var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
22015
+ function Hash$1(entries) {
21933
22016
  var index = -1, length = entries == null ? 0 : entries.length;
21934
22017
  this.clear();
21935
22018
  while (++index < length) {
@@ -21937,19 +22020,23 @@ function Hash(entries) {
21937
22020
  this.set(entry[0], entry[1]);
21938
22021
  }
21939
22022
  }
21940
- Hash.prototype.clear = hashClear;
21941
- Hash.prototype["delete"] = hashDelete;
21942
- Hash.prototype.get = hashGet;
21943
- Hash.prototype.has = hashHas;
21944
- Hash.prototype.set = hashSet;
21945
- function listCacheClear() {
22023
+ Hash$1.prototype.clear = hashClear;
22024
+ Hash$1.prototype["delete"] = hashDelete;
22025
+ Hash$1.prototype.get = hashGet;
22026
+ Hash$1.prototype.has = hashHas;
22027
+ Hash$1.prototype.set = hashSet;
22028
+ var _Hash = Hash$1;
22029
+ function listCacheClear$1() {
21946
22030
  this.__data__ = [];
21947
22031
  this.size = 0;
21948
22032
  }
21949
- function eq(value2, other) {
22033
+ var _listCacheClear = listCacheClear$1;
22034
+ function eq$1(value2, other) {
21950
22035
  return value2 === other || value2 !== value2 && other !== other;
21951
22036
  }
21952
- function assocIndexOf(array, key2) {
22037
+ var eq_1 = eq$1;
22038
+ var eq = eq_1;
22039
+ function assocIndexOf$4(array, key2) {
21953
22040
  var length = array.length;
21954
22041
  while (length--) {
21955
22042
  if (eq(array[length][0], key2)) {
@@ -21958,10 +22045,12 @@ function assocIndexOf(array, key2) {
21958
22045
  }
21959
22046
  return -1;
21960
22047
  }
22048
+ var _assocIndexOf = assocIndexOf$4;
22049
+ var assocIndexOf$3 = _assocIndexOf;
21961
22050
  var arrayProto = Array.prototype;
21962
22051
  var splice = arrayProto.splice;
21963
- function listCacheDelete(key2) {
21964
- var data2 = this.__data__, index = assocIndexOf(data2, key2);
22052
+ function listCacheDelete$1(key2) {
22053
+ var data2 = this.__data__, index = assocIndexOf$3(data2, key2);
21965
22054
  if (index < 0) {
21966
22055
  return false;
21967
22056
  }
@@ -21974,14 +22063,20 @@ function listCacheDelete(key2) {
21974
22063
  --this.size;
21975
22064
  return true;
21976
22065
  }
21977
- function listCacheGet(key2) {
21978
- var data2 = this.__data__, index = assocIndexOf(data2, key2);
22066
+ var _listCacheDelete = listCacheDelete$1;
22067
+ var assocIndexOf$2 = _assocIndexOf;
22068
+ function listCacheGet$1(key2) {
22069
+ var data2 = this.__data__, index = assocIndexOf$2(data2, key2);
21979
22070
  return index < 0 ? void 0 : data2[index][1];
21980
22071
  }
21981
- function listCacheHas(key2) {
21982
- return assocIndexOf(this.__data__, key2) > -1;
22072
+ var _listCacheGet = listCacheGet$1;
22073
+ var assocIndexOf$1 = _assocIndexOf;
22074
+ function listCacheHas$1(key2) {
22075
+ return assocIndexOf$1(this.__data__, key2) > -1;
21983
22076
  }
21984
- function listCacheSet(key2, value2) {
22077
+ var _listCacheHas = listCacheHas$1;
22078
+ var assocIndexOf = _assocIndexOf;
22079
+ function listCacheSet$1(key2, value2) {
21985
22080
  var data2 = this.__data__, index = assocIndexOf(data2, key2);
21986
22081
  if (index < 0) {
21987
22082
  ++this.size;
@@ -21991,7 +22086,9 @@ function listCacheSet(key2, value2) {
21991
22086
  }
21992
22087
  return this;
21993
22088
  }
21994
- function ListCache(entries) {
22089
+ var _listCacheSet = listCacheSet$1;
22090
+ var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
22091
+ function ListCache$1(entries) {
21995
22092
  var index = -1, length = entries == null ? 0 : entries.length;
21996
22093
  this.clear();
21997
22094
  while (++index < length) {
@@ -21999,47 +22096,63 @@ function ListCache(entries) {
21999
22096
  this.set(entry[0], entry[1]);
22000
22097
  }
22001
22098
  }
22002
- ListCache.prototype.clear = listCacheClear;
22003
- ListCache.prototype["delete"] = listCacheDelete;
22004
- ListCache.prototype.get = listCacheGet;
22005
- ListCache.prototype.has = listCacheHas;
22006
- ListCache.prototype.set = listCacheSet;
22007
- var Map$1 = getNative(root$1, "Map");
22008
- const Map$2 = Map$1;
22009
- function mapCacheClear() {
22099
+ ListCache$1.prototype.clear = listCacheClear;
22100
+ ListCache$1.prototype["delete"] = listCacheDelete;
22101
+ ListCache$1.prototype.get = listCacheGet;
22102
+ ListCache$1.prototype.has = listCacheHas;
22103
+ ListCache$1.prototype.set = listCacheSet;
22104
+ var _ListCache = ListCache$1;
22105
+ var getNative = _getNative, root = _root;
22106
+ var Map$2 = getNative(root, "Map");
22107
+ var _Map = Map$2;
22108
+ var Hash = _Hash, ListCache = _ListCache, Map$1 = _Map;
22109
+ function mapCacheClear$1() {
22010
22110
  this.size = 0;
22011
22111
  this.__data__ = {
22012
22112
  "hash": new Hash(),
22013
- "map": new (Map$2 || ListCache)(),
22113
+ "map": new (Map$1 || ListCache)(),
22014
22114
  "string": new Hash()
22015
22115
  };
22016
22116
  }
22017
- function isKeyable(value2) {
22117
+ var _mapCacheClear = mapCacheClear$1;
22118
+ function isKeyable$1(value2) {
22018
22119
  var type2 = typeof value2;
22019
22120
  return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value2 !== "__proto__" : value2 === null;
22020
22121
  }
22021
- function getMapData(map, key2) {
22122
+ var _isKeyable = isKeyable$1;
22123
+ var isKeyable = _isKeyable;
22124
+ function getMapData$4(map, key2) {
22022
22125
  var data2 = map.__data__;
22023
22126
  return isKeyable(key2) ? data2[typeof key2 == "string" ? "string" : "hash"] : data2.map;
22024
22127
  }
22025
- function mapCacheDelete(key2) {
22026
- var result = getMapData(this, key2)["delete"](key2);
22128
+ var _getMapData = getMapData$4;
22129
+ var getMapData$3 = _getMapData;
22130
+ function mapCacheDelete$1(key2) {
22131
+ var result = getMapData$3(this, key2)["delete"](key2);
22027
22132
  this.size -= result ? 1 : 0;
22028
22133
  return result;
22029
22134
  }
22030
- function mapCacheGet(key2) {
22031
- return getMapData(this, key2).get(key2);
22135
+ var _mapCacheDelete = mapCacheDelete$1;
22136
+ var getMapData$2 = _getMapData;
22137
+ function mapCacheGet$1(key2) {
22138
+ return getMapData$2(this, key2).get(key2);
22032
22139
  }
22033
- function mapCacheHas(key2) {
22034
- return getMapData(this, key2).has(key2);
22140
+ var _mapCacheGet = mapCacheGet$1;
22141
+ var getMapData$1 = _getMapData;
22142
+ function mapCacheHas$1(key2) {
22143
+ return getMapData$1(this, key2).has(key2);
22035
22144
  }
22036
- function mapCacheSet(key2, value2) {
22145
+ var _mapCacheHas = mapCacheHas$1;
22146
+ var getMapData = _getMapData;
22147
+ function mapCacheSet$1(key2, value2) {
22037
22148
  var data2 = getMapData(this, key2), size = data2.size;
22038
22149
  data2.set(key2, value2);
22039
22150
  this.size += data2.size == size ? 0 : 1;
22040
22151
  return this;
22041
22152
  }
22042
- function MapCache(entries) {
22153
+ var _mapCacheSet = mapCacheSet$1;
22154
+ var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
22155
+ function MapCache$1(entries) {
22043
22156
  var index = -1, length = entries == null ? 0 : entries.length;
22044
22157
  this.clear();
22045
22158
  while (++index < length) {
@@ -22047,13 +22160,15 @@ function MapCache(entries) {
22047
22160
  this.set(entry[0], entry[1]);
22048
22161
  }
22049
22162
  }
22050
- MapCache.prototype.clear = mapCacheClear;
22051
- MapCache.prototype["delete"] = mapCacheDelete;
22052
- MapCache.prototype.get = mapCacheGet;
22053
- MapCache.prototype.has = mapCacheHas;
22054
- MapCache.prototype.set = mapCacheSet;
22163
+ MapCache$1.prototype.clear = mapCacheClear;
22164
+ MapCache$1.prototype["delete"] = mapCacheDelete;
22165
+ MapCache$1.prototype.get = mapCacheGet;
22166
+ MapCache$1.prototype.has = mapCacheHas;
22167
+ MapCache$1.prototype.set = mapCacheSet;
22168
+ var _MapCache = MapCache$1;
22169
+ var MapCache = _MapCache;
22055
22170
  var FUNC_ERROR_TEXT = "Expected a function";
22056
- function memoize(func, resolver) {
22171
+ function memoize$1(func, resolver) {
22057
22172
  if (typeof func != "function" || resolver != null && typeof resolver != "function") {
22058
22173
  throw new TypeError(FUNC_ERROR_TEXT);
22059
22174
  }
@@ -22066,12 +22181,14 @@ function memoize(func, resolver) {
22066
22181
  memoized.cache = cache.set(key2, result) || cache;
22067
22182
  return result;
22068
22183
  };
22069
- memoized.cache = new (memoize.Cache || MapCache)();
22184
+ memoized.cache = new (memoize$1.Cache || MapCache)();
22070
22185
  return memoized;
22071
22186
  }
22072
- memoize.Cache = MapCache;
22187
+ memoize$1.Cache = MapCache;
22188
+ var memoize_1 = memoize$1;
22189
+ var memoize = memoize_1;
22073
22190
  var MAX_MEMOIZE_SIZE = 500;
22074
- function memoizeCapped(func) {
22191
+ function memoizeCapped$1(func) {
22075
22192
  var result = memoize(func, function(key2) {
22076
22193
  if (cache.size === MAX_MEMOIZE_SIZE) {
22077
22194
  cache.clear();
@@ -22081,9 +22198,11 @@ function memoizeCapped(func) {
22081
22198
  var cache = result.cache;
22082
22199
  return result;
22083
22200
  }
22201
+ var _memoizeCapped = memoizeCapped$1;
22202
+ var memoizeCapped = _memoizeCapped;
22084
22203
  var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
22085
22204
  var reEscapeChar = /\\(\\)?/g;
22086
- var stringToPath = memoizeCapped(function(string) {
22205
+ var stringToPath$1 = memoizeCapped(function(string) {
22087
22206
  var result = [];
22088
22207
  if (string.charCodeAt(0) === 46) {
22089
22208
  result.push("");
@@ -22093,88 +22212,109 @@ var stringToPath = memoizeCapped(function(string) {
22093
22212
  });
22094
22213
  return result;
22095
22214
  });
22096
- const stringToPath$1 = stringToPath;
22097
- function arrayMap(array, iteratee) {
22215
+ var _stringToPath = stringToPath$1;
22216
+ function arrayMap$1(array, iteratee) {
22098
22217
  var index = -1, length = array == null ? 0 : array.length, result = Array(length);
22099
22218
  while (++index < length) {
22100
22219
  result[index] = iteratee(array[index], index, array);
22101
22220
  }
22102
22221
  return result;
22103
22222
  }
22223
+ var _arrayMap = arrayMap$1;
22224
+ var Symbol$1 = _Symbol, arrayMap = _arrayMap, isArray$2 = isArray_1, isSymbol$1 = isSymbol_1;
22104
22225
  var INFINITY$1 = 1 / 0;
22105
- var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
22106
- function baseToString(value2) {
22226
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
22227
+ function baseToString$1(value2) {
22107
22228
  if (typeof value2 == "string") {
22108
22229
  return value2;
22109
22230
  }
22110
- if (isArray$1(value2)) {
22111
- return arrayMap(value2, baseToString) + "";
22231
+ if (isArray$2(value2)) {
22232
+ return arrayMap(value2, baseToString$1) + "";
22112
22233
  }
22113
- if (isSymbol(value2)) {
22234
+ if (isSymbol$1(value2)) {
22114
22235
  return symbolToString ? symbolToString.call(value2) : "";
22115
22236
  }
22116
22237
  var result = value2 + "";
22117
22238
  return result == "0" && 1 / value2 == -INFINITY$1 ? "-0" : result;
22118
22239
  }
22119
- function toString(value2) {
22240
+ var _baseToString = baseToString$1;
22241
+ var baseToString = _baseToString;
22242
+ function toString$1(value2) {
22120
22243
  return value2 == null ? "" : baseToString(value2);
22121
22244
  }
22122
- function castPath(value2, object2) {
22245
+ var toString_1 = toString$1;
22246
+ var isArray$1 = isArray_1, isKey = _isKey, stringToPath = _stringToPath, toString = toString_1;
22247
+ function castPath$2(value2, object2) {
22123
22248
  if (isArray$1(value2)) {
22124
22249
  return value2;
22125
22250
  }
22126
- return isKey(value2, object2) ? [value2] : stringToPath$1(toString(value2));
22251
+ return isKey(value2, object2) ? [value2] : stringToPath(toString(value2));
22127
22252
  }
22253
+ var _castPath = castPath$2;
22254
+ var isSymbol = isSymbol_1;
22128
22255
  var INFINITY = 1 / 0;
22129
- function toKey(value2) {
22256
+ function toKey$2(value2) {
22130
22257
  if (typeof value2 == "string" || isSymbol(value2)) {
22131
22258
  return value2;
22132
22259
  }
22133
22260
  var result = value2 + "";
22134
22261
  return result == "0" && 1 / value2 == -INFINITY ? "-0" : result;
22135
22262
  }
22136
- function baseGet(object2, path2) {
22137
- path2 = castPath(path2, object2);
22263
+ var _toKey = toKey$2;
22264
+ var castPath$1 = _castPath, toKey$1 = _toKey;
22265
+ function baseGet$1(object2, path2) {
22266
+ path2 = castPath$1(path2, object2);
22138
22267
  var index = 0, length = path2.length;
22139
22268
  while (object2 != null && index < length) {
22140
- object2 = object2[toKey(path2[index++])];
22269
+ object2 = object2[toKey$1(path2[index++])];
22141
22270
  }
22142
22271
  return index && index == length ? object2 : void 0;
22143
22272
  }
22273
+ var _baseGet = baseGet$1;
22274
+ var baseGet = _baseGet;
22144
22275
  function get(object2, path2, defaultValue) {
22145
22276
  var result = object2 == null ? void 0 : baseGet(object2, path2);
22146
22277
  return result === void 0 ? defaultValue : result;
22147
22278
  }
22279
+ var get_1 = get;
22280
+ const get$1 = /* @__PURE__ */ getDefaultExportFromCjs(get_1);
22148
22281
  var objectProto$1 = Object.prototype;
22149
22282
  var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
22150
- function baseHas(object2, key2) {
22283
+ function baseHas$1(object2, key2) {
22151
22284
  return object2 != null && hasOwnProperty$1.call(object2, key2);
22152
22285
  }
22286
+ var _baseHas = baseHas$1;
22287
+ var baseGetTag = _baseGetTag, isObjectLike$1 = isObjectLike_1;
22153
22288
  var argsTag = "[object Arguments]";
22154
- function baseIsArguments(value2) {
22155
- return isObjectLike(value2) && baseGetTag(value2) == argsTag;
22289
+ function baseIsArguments$1(value2) {
22290
+ return isObjectLike$1(value2) && baseGetTag(value2) == argsTag;
22156
22291
  }
22292
+ var _baseIsArguments = baseIsArguments$1;
22293
+ var baseIsArguments = _baseIsArguments, isObjectLike = isObjectLike_1;
22157
22294
  var objectProto = Object.prototype;
22158
22295
  var hasOwnProperty = objectProto.hasOwnProperty;
22159
22296
  var propertyIsEnumerable = objectProto.propertyIsEnumerable;
22160
- var isArguments = baseIsArguments(function() {
22297
+ var isArguments$1 = baseIsArguments(function() {
22161
22298
  return arguments;
22162
22299
  }()) ? baseIsArguments : function(value2) {
22163
22300
  return isObjectLike(value2) && hasOwnProperty.call(value2, "callee") && !propertyIsEnumerable.call(value2, "callee");
22164
22301
  };
22165
- const isArguments$1 = isArguments;
22302
+ var isArguments_1 = isArguments$1;
22166
22303
  var MAX_SAFE_INTEGER$1 = 9007199254740991;
22167
22304
  var reIsUint = /^(?:0|[1-9]\d*)$/;
22168
- function isIndex(value2, length) {
22305
+ function isIndex$1(value2, length) {
22169
22306
  var type2 = typeof value2;
22170
22307
  length = length == null ? MAX_SAFE_INTEGER$1 : length;
22171
22308
  return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value2)) && (value2 > -1 && value2 % 1 == 0 && value2 < length);
22172
22309
  }
22310
+ var _isIndex = isIndex$1;
22173
22311
  var MAX_SAFE_INTEGER = 9007199254740991;
22174
- function isLength(value2) {
22312
+ function isLength$1(value2) {
22175
22313
  return typeof value2 == "number" && value2 > -1 && value2 % 1 == 0 && value2 <= MAX_SAFE_INTEGER;
22176
22314
  }
22177
- function hasPath(object2, path2, hasFunc) {
22315
+ var isLength_1 = isLength$1;
22316
+ var castPath = _castPath, isArguments = isArguments_1, isArray = isArray_1, isIndex = _isIndex, isLength = isLength_1, toKey = _toKey;
22317
+ function hasPath$1(object2, path2, hasFunc) {
22178
22318
  path2 = castPath(path2, object2);
22179
22319
  var index = -1, length = path2.length, result = false;
22180
22320
  while (++index < length) {
@@ -22188,123 +22328,138 @@ function hasPath(object2, path2, hasFunc) {
22188
22328
  return result;
22189
22329
  }
22190
22330
  length = object2 == null ? 0 : object2.length;
22191
- return !!length && isLength(length) && isIndex(key2, length) && (isArray$1(object2) || isArguments$1(object2));
22331
+ return !!length && isLength(length) && isIndex(key2, length) && (isArray(object2) || isArguments(object2));
22192
22332
  }
22333
+ var _hasPath = hasPath$1;
22334
+ var baseHas = _baseHas, hasPath = _hasPath;
22193
22335
  function has(object2, path2) {
22194
22336
  return object2 != null && hasPath(object2, path2, baseHas);
22195
22337
  }
22196
- var L = Object.defineProperty;
22197
- var m = (t2, a2) => L(t2, "name", { value: a2, configurable: true });
22198
- var C = m(({ refineCoreProps: t2, warnWhenUnsavedChanges: a2, disableServerSideValidation: p = false, ...Q } = {}) => {
22199
- let { options: F } = useRefineContext(), S = (F == null ? void 0 : F.disableServerSideValidation) || p, U = useTranslate(), { warnWhenUnsavedChanges: h, setWarnWhen: b } = useWarnAboutChange(), f = a2 ?? h, d = useForm({ ...Q }), { watch: c2, setValue: R, getValues: i2, handleSubmit: T, setError: x } = d, E = useForm$1({ ...t2, onMutationError: (r2, s2, e2) => {
22200
- var v, H;
22201
- if (S) {
22202
- (v = t2 == null ? void 0 : t2.onMutationError) == null || v.call(t2, r2, s2, e2);
22203
- return;
22204
- }
22205
- let y = r2 == null ? void 0 : r2.errors;
22206
- for (let V in y) {
22207
- if (!Object.keys(flattenObjectKeys(s2)).includes(V))
22208
- continue;
22209
- let u = y[V], D = "";
22210
- Array.isArray(u) && (D = u.join(" ")), typeof u == "string" && (D = u), typeof u == "boolean" && u && (D = "Field is not valid."), typeof u == "object" && "key" in u && (D = U(u.key, u.message)), x(V, { message: D });
22338
+ var has_1 = has;
22339
+ const has$1 = /* @__PURE__ */ getDefaultExportFromCjs(has_1);
22340
+ const useForm = ({
22341
+ refineCoreProps,
22342
+ warnWhenUnsavedChanges: warnWhenUnsavedChangesProp,
22343
+ disableServerSideValidation: disableServerSideValidationProp = false,
22344
+ ...rest
22345
+ } = {}) => {
22346
+ const { options } = useRefineContext();
22347
+ const disableServerSideValidation = (options == null ? void 0 : options.disableServerSideValidation) || disableServerSideValidationProp;
22348
+ const translate = useTranslate();
22349
+ const { warnWhenUnsavedChanges: warnWhenUnsavedChangesRefine, setWarnWhen } = useWarnAboutChange();
22350
+ const warnWhenUnsavedChanges = warnWhenUnsavedChangesProp ?? warnWhenUnsavedChangesRefine;
22351
+ const useHookFormResult = useForm$1({
22352
+ ...rest
22353
+ });
22354
+ const {
22355
+ watch,
22356
+ setValue,
22357
+ getValues,
22358
+ handleSubmit: handleSubmitReactHookForm,
22359
+ setError,
22360
+ formState
22361
+ } = useHookFormResult;
22362
+ const useFormCoreResult = useForm$2({
22363
+ ...refineCoreProps,
22364
+ onMutationError: (error, _variables, _context) => {
22365
+ var _a, _b;
22366
+ if (disableServerSideValidation) {
22367
+ (_a = refineCoreProps == null ? void 0 : refineCoreProps.onMutationError) == null ? void 0 : _a.call(refineCoreProps, error, _variables, _context);
22368
+ return;
22369
+ }
22370
+ const errors = error == null ? void 0 : error.errors;
22371
+ for (const key2 in errors) {
22372
+ const isKeyInVariables = Object.keys(flattenObjectKeys(_variables)).includes(key2);
22373
+ if (!isKeyInVariables) {
22374
+ continue;
22375
+ }
22376
+ const fieldError = errors[key2];
22377
+ let newError = "";
22378
+ if (Array.isArray(fieldError)) {
22379
+ newError = fieldError.join(" ");
22380
+ }
22381
+ if (typeof fieldError === "string") {
22382
+ newError = fieldError;
22383
+ }
22384
+ if (typeof fieldError === "boolean" && fieldError) {
22385
+ newError = "Field is not valid.";
22386
+ }
22387
+ if (typeof fieldError === "object" && "key" in fieldError) {
22388
+ const translatedMessage = translate(fieldError.key, fieldError.message);
22389
+ newError = translatedMessage;
22390
+ }
22391
+ setError(key2, {
22392
+ message: newError
22393
+ });
22394
+ }
22395
+ (_b = refineCoreProps == null ? void 0 : refineCoreProps.onMutationError) == null ? void 0 : _b.call(refineCoreProps, error, _variables, _context);
22211
22396
  }
22212
- (H = t2 == null ? void 0 : t2.onMutationError) == null || H.call(t2, r2, s2, e2);
22213
- } }), { queryResult: l, onFinish: o, formLoading: B, onFinishAutoSave: j } = E;
22397
+ });
22398
+ const { queryResult, onFinish, formLoading, onFinishAutoSave } = useFormCoreResult;
22214
22399
  useEffect(() => {
22215
- var e2;
22216
- let r2 = (e2 = l == null ? void 0 : l.data) == null ? void 0 : e2.data;
22217
- if (!r2)
22400
+ var _a;
22401
+ if (formState.isDirty)
22218
22402
  return;
22219
- Object.keys(flattenObjectKeys(i2())).forEach((y) => {
22220
- let v = has(r2, y), H = get(r2, y);
22221
- v && R(y, H);
22222
- });
22223
- }, [l == null ? void 0 : l.data, R, i2]), useEffect(() => {
22224
- let r2 = c2((s2, { type: e2 }) => {
22225
- e2 === "change" && W(s2);
22403
+ const data2 = (_a = queryResult == null ? void 0 : queryResult.data) == null ? void 0 : _a.data;
22404
+ if (!data2)
22405
+ return;
22406
+ const registeredFields = Object.keys(flattenObjectKeys(getValues()));
22407
+ registeredFields.forEach((path2) => {
22408
+ const hasValue = has$1(data2, path2);
22409
+ const dataValue = get$1(data2, path2);
22410
+ if (hasValue) {
22411
+ setValue(path2, dataValue);
22412
+ }
22226
22413
  });
22227
- return () => r2.unsubscribe();
22228
- }, [c2]);
22229
- let W = m((r2) => {
22230
- var s2;
22231
- if (f && b(true), t2 != null && t2.autoSave) {
22232
- b(false);
22233
- let e2 = (s2 = t2.autoSave) == null ? void 0 : s2.onFinish;
22234
- return j(e2 ? e2(r2) : r2);
22235
- }
22236
- return r2;
22237
- }, "onValuesChange"), g = m((r2, s2) => async (e2) => (b(false), T(r2, s2)(e2)), "handleSubmit");
22238
- return { ...d, handleSubmit: g, refineCore: E, saveButtonProps: { disabled: B, onClick: (r2) => {
22239
- g(o, () => false)(r2);
22240
- } } };
22241
- }, "useForm");
22242
- m(({ stepsProps: t2, ...a2 } = {}) => {
22243
- let { defaultStep: p = 0, isBackValidate: Q = false } = t2 ?? {}, [F, S] = useState(p), U = C({ ...a2 }), { trigger: h, getValues: b, setValue: f, formState: { dirtyFields: d }, refineCore: { queryResult: c2 } } = U;
22414
+ }, [queryResult == null ? void 0 : queryResult.data, setValue, getValues, formState.isDirty]);
22244
22415
  useEffect(() => {
22245
- var E;
22246
- let T = (E = c2 == null ? void 0 : c2.data) == null ? void 0 : E.data;
22247
- if (!T)
22248
- return;
22249
- let x = Object.keys(b());
22250
- Object.entries(T).forEach(([l, o]) => {
22251
- let B = l;
22252
- x.includes(B) && (d[B] || f(B, o));
22416
+ const subscription = watch((values, { type: type2 }) => {
22417
+ if (type2 === "change") {
22418
+ onValuesChange(values);
22419
+ }
22253
22420
  });
22254
- }, [c2 == null ? void 0 : c2.data, F, f, b]);
22255
- let R = m((T) => {
22256
- let x = T;
22257
- T < 0 && (x = 0), S(x);
22258
- }, "go");
22259
- return { ...U, steps: { currentStep: F, gotoStep: m(async (T) => {
22260
- if (T === F)
22261
- return;
22262
- if (T < F && !Q) {
22263
- R(T);
22264
- return;
22421
+ return () => subscription.unsubscribe();
22422
+ }, [watch]);
22423
+ const onValuesChange = (changeValues) => {
22424
+ var _a;
22425
+ if (warnWhenUnsavedChanges) {
22426
+ setWarnWhen(true);
22265
22427
  }
22266
- await h() && R(T);
22267
- }, "gotoStep") } };
22268
- }, "useStepsForm");
22269
- m(({ modalProps: t2, refineCoreProps: a2, syncWithLocation: p, ...Q } = {}) => {
22270
- var A, N;
22271
- let F = useInvalidate(), [S, U] = React__default.useState(false), h = useTranslate(), { resource: b, action: f } = a2 ?? {}, { resource: d, action: c2, identifier: R } = useResource(b), i2 = useParsed(), T = useGo(), x = useUserFriendlyName(), E = f ?? c2 ?? "", l = !(typeof p == "object" && (p == null ? void 0 : p.syncId) === false), o = typeof p == "object" && "key" in p ? p.key : d && E && p ? `modal-${R}-${E}` : void 0, { defaultVisible: B = false, autoSubmitClose: j = true, autoResetForm: W = true } = t2 ?? {}, g = C({ refineCoreProps: { ...a2, meta: { ...o ? { [o]: void 0 } : {}, ...a2 == null ? void 0 : a2.meta } }, ...Q }), { reset: $, refineCore: { onFinish: r2, id: s2, setId: e2, autoSaveProps: y }, saveButtonProps: v, handleSubmit: H } = g, { visible: V, show: k, close: u } = useModal({ defaultVisible: B });
22272
- React__default.useEffect(() => {
22273
- var n2, w, K, I;
22274
- if (S === false && o) {
22275
- let M = (w = (n2 = i2 == null ? void 0 : i2.params) == null ? void 0 : n2[o]) == null ? void 0 : w.open;
22276
- if (typeof M == "boolean" ? M && k() : typeof M == "string" && M === "true" && k(), l) {
22277
- let G = (I = (K = i2 == null ? void 0 : i2.params) == null ? void 0 : K[o]) == null ? void 0 : I.id;
22278
- G && (e2 == null || e2(G));
22279
- }
22280
- U(true);
22281
- }
22282
- }, [o, i2, l, e2]), React__default.useEffect(() => {
22283
- var n2;
22284
- S === true && (V && o ? T({ query: { [o]: { ...(n2 = i2 == null ? void 0 : i2.params) == null ? void 0 : n2[o], open: true, ...l && s2 && { id: s2 } } }, options: { keepQuery: true }, type: "replace" }) : o && !V && T({ query: { [o]: void 0 }, options: { keepQuery: true }, type: "replace" }));
22285
- }, [s2, V, k, o, l]);
22286
- let D = m(async (n2) => {
22287
- await r2(n2), j && u(), W && $();
22288
- }, "submit"), { warnWhen: O, setWarnWhen: X } = useWarnAboutChange(), Z = useCallback(() => {
22289
- var n2;
22290
- if (y.status === "success" && ((n2 = a2 == null ? void 0 : a2.autoSave) != null && n2.invalidateOnClose) && F({ id: s2, invalidates: a2.invalidates || ["list", "many", "detail"], dataProviderName: a2.dataProviderName, resource: R }), O)
22291
- if (window.confirm(h("warnWhenUnsavedChanges", "Are you sure you want to leave? You have unsaved changes.")))
22292
- X(false);
22293
- else
22294
- return;
22295
- e2 == null || e2(void 0), u();
22296
- }, [O, y.status]), _ = useCallback((n2) => {
22297
- typeof n2 < "u" && (e2 == null || e2(n2)), (!(E === "edit" || E === "clone") || (typeof n2 < "u" || typeof s2 < "u")) && k();
22298
- }, [s2]), q = h(`${R}.titles.${f}`, void 0, `${x(`${f} ${((A = d == null ? void 0 : d.meta) == null ? void 0 : A.label) ?? ((N = d == null ? void 0 : d.options) == null ? void 0 : N.label) ?? (d == null ? void 0 : d.label) ?? R}`, "singular")}`);
22299
- return { modal: { submit: D, close: Z, show: _, visible: V, title: q }, ...g, saveButtonProps: { ...v, onClick: (n2) => H(D)(n2) } };
22300
- }, "useModalForm");
22428
+ if (refineCoreProps == null ? void 0 : refineCoreProps.autoSave) {
22429
+ setWarnWhen(false);
22430
+ const onFinishProps = (_a = refineCoreProps.autoSave) == null ? void 0 : _a.onFinish;
22431
+ if (onFinishProps) {
22432
+ return onFinishAutoSave(onFinishProps(changeValues));
22433
+ }
22434
+ return onFinishAutoSave(changeValues);
22435
+ }
22436
+ return changeValues;
22437
+ };
22438
+ const handleSubmit = (onValid, onInvalid) => async (e2) => {
22439
+ setWarnWhen(false);
22440
+ return handleSubmitReactHookForm(onValid, onInvalid)(e2);
22441
+ };
22442
+ const saveButtonProps = {
22443
+ disabled: formLoading,
22444
+ onClick: (e2) => {
22445
+ handleSubmit(onFinish, () => false)(e2);
22446
+ }
22447
+ };
22448
+ return {
22449
+ ...useHookFormResult,
22450
+ handleSubmit,
22451
+ refineCore: useFormCoreResult,
22452
+ saveButtonProps
22453
+ };
22454
+ };
22301
22455
  const useRefineForm = (props) => {
22302
22456
  var _a;
22303
22457
  const { config, id, refineProps } = props;
22304
22458
  const [responseErrorMsg, setResponseErrorMsg] = useState("");
22305
22459
  const i18n2 = useTranslation();
22306
- const result = C({
22307
- mode: "onChange",
22460
+ const result = useForm({
22461
+ mode: "onSubmit",
22462
+ reValidateMode: "onChange",
22308
22463
  refineCoreProps: {
22309
22464
  errorNotification: false,
22310
22465
  successNotification: () => {
@@ -22325,6 +22480,7 @@ const useRefineForm = (props) => {
22325
22480
  resource: config.name,
22326
22481
  action: id ? "edit" : "create",
22327
22482
  id,
22483
+ liveMode: "off",
22328
22484
  ...refineProps
22329
22485
  },
22330
22486
  defaultValues: config == null ? void 0 : config.initValue
@@ -22348,7 +22504,7 @@ const Separator = () => {
22348
22504
  });
22349
22505
  };
22350
22506
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
22351
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-90b9132b.js"));
22507
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-b2da37e8.js"));
22352
22508
  const YamlEditorComponent = forwardRef(
22353
22509
  function YamlEditorComponent2(props, ref) {
22354
22510
  const {
@@ -22646,7 +22802,7 @@ function generateYamlBySchema(defaultValue, schema) {
22646
22802
  const typeObject = generateSchemaTypeValue(schema);
22647
22803
  function makeAnnotations(obj, key2) {
22648
22804
  const result = {};
22649
- if (isObject$2(obj[key2])) {
22805
+ if (isObject$4(obj[key2])) {
22650
22806
  result[`#${key2}`] = {};
22651
22807
  Object.keys(obj[key2]).forEach((prop) => {
22652
22808
  result[`#${key2}`] = {
@@ -22665,7 +22821,7 @@ function generateYamlBySchema(defaultValue, schema) {
22665
22821
  }
22666
22822
  for (const key2 in obj2) {
22667
22823
  if (key2 in obj1) {
22668
- if (isObject$2(obj2[key2]) && isObject$2(obj1[key2])) {
22824
+ if (isObject$4(obj2[key2]) && isObject$4(obj1[key2])) {
22669
22825
  merged2[key2] = merge2(
22670
22826
  obj1[key2],
22671
22827
  obj2[key2]
@@ -22738,12 +22894,12 @@ const useYamlForm = ({
22738
22894
  skip: editorOptions == null ? void 0 : editorOptions.isSkipSchema
22739
22895
  });
22740
22896
  const [formAnt] = kit.form.useForm();
22741
- const formSF = useForm$2({
22897
+ const formSF = useForm$3({
22742
22898
  form: formAnt
22743
22899
  });
22744
22900
  const { form } = formSF;
22745
22901
  const { fold: fold2 } = useK8sYamlEditor();
22746
- const useFormCoreResult = useForm$1({
22902
+ const useFormCoreResult = useForm$2({
22747
22903
  onMutationSuccess: onMutationSuccessProp ? onMutationSuccessProp : void 0,
22748
22904
  onMutationError,
22749
22905
  redirect,
@@ -23086,7 +23242,7 @@ function FormModal(props) {
23086
23242
  ...yamlFormProps
23087
23243
  });
23088
23244
  return /* @__PURE__ */ jsxRuntimeExports.jsx(RefineFormContent, {
23089
- control: refineFormResult.formResult.control,
23245
+ formResult: refineFormResult.formResult,
23090
23246
  config,
23091
23247
  errorMsg: refineFormResult.responseErrorMsg,
23092
23248
  action: id ? "edit" : "create"
@@ -23149,8 +23305,7 @@ const RefineFormPage = (props) => {
23149
23305
  onFinish
23150
23306
  },
23151
23307
  getValues,
23152
- saveButtonProps,
23153
- control
23308
+ saveButtonProps
23154
23309
  } = formResult;
23155
23310
  const onClick = () => {
23156
23311
  const data2 = getValues();
@@ -23161,7 +23316,7 @@ const RefineFormPage = (props) => {
23161
23316
  className: "c1pvtlkp",
23162
23317
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(RefineFormContent, {
23163
23318
  config,
23164
- control
23319
+ formResult
23165
23320
  }), ";", /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
23166
23321
  ...saveButtonProps,
23167
23322
  onClick,
@@ -23493,7 +23648,7 @@ const IngressRulesComponent = ({ ingress }) => {
23493
23648
  });
23494
23649
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: result });
23495
23650
  };
23496
- const columns_44785k = "";
23651
+ const columns_qgyagz = "";
23497
23652
  const DashedTitleStyle = "dh5j833";
23498
23653
  const ServiceClusterTooltipStyle = "s1fcgan";
23499
23654
  const NameLink = (props) => {
@@ -24073,7 +24228,7 @@ const useEagleTable = (params) => {
24073
24228
  },
24074
24229
  [setCurrentPage]
24075
24230
  );
24076
- const currentSize = (tableProps == null ? void 0 : tableProps.currentSize) || 5;
24231
+ const currentSize = (tableProps == null ? void 0 : tableProps.defaultSize) || 10;
24077
24232
  const data2 = (_b = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data) == null ? void 0 : _b.slice((currentPage - 1) * currentSize, currentPage * currentSize);
24078
24233
  const total = ((_c = table.tableQueryResult.data) == null ? void 0 : _c.data.length) || 0;
24079
24234
  const finalDataSource = formatter ? data2 == null ? void 0 : data2.map(formatter) : data2;
@@ -24086,7 +24241,7 @@ const useEagleTable = (params) => {
24086
24241
  error: false,
24087
24242
  rowKey: "id",
24088
24243
  currentPage,
24089
- currentSize,
24244
+ defaultSize: currentSize,
24090
24245
  onPageChange,
24091
24246
  onSelect: (keys) => {
24092
24247
  setSelectedKeys(keys);