@dovetail-v2/refine 0.0.64 → 0.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,308 +31,301 @@ var __publicField = (obj, key, value) => {
31
31
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
32
32
  }
33
33
  var dayjs_min = { exports: {} };
34
- var hasRequiredDayjs_min;
35
- function requireDayjs_min() {
36
- if (hasRequiredDayjs_min)
37
- return dayjs_min.exports;
38
- hasRequiredDayjs_min = 1;
39
- (function(module2, exports3) {
40
- !function(t2, e2) {
41
- module2.exports = e2();
42
- }(commonjsGlobal, function() {
43
- 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) {
44
- var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
45
- return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
46
- } }, m = function(t3, e3, n3) {
47
- var r3 = String(t3);
48
- return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
49
- }, v = { s: m, z: function(t3) {
50
- var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
51
- return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i3, 2, "0");
52
- }, m: function t3(e3, n3) {
53
- if (e3.date() < n3.date())
54
- return -t3(n3, e3);
55
- 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);
56
- return +(-(r3 + (n3 - i3) / (s3 ? i3 - u2 : u2 - i3)) || 0);
57
- }, a: function(t3) {
58
- return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
59
- }, p: function(t3) {
60
- 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$/, "");
61
- }, u: function(t3) {
62
- return void 0 === t3;
63
- } }, g = "en", D = {};
64
- D[g] = M;
65
- var p = "$isDayjsObject", S = function(t3) {
66
- return t3 instanceof _ || !(!t3 || !t3[p]);
67
- }, w = function t3(e3, n3, r3) {
68
- var i3;
69
- if (!e3)
70
- return g;
71
- if ("string" == typeof e3) {
72
- var s3 = e3.toLowerCase();
73
- D[s3] && (i3 = s3), n3 && (D[s3] = n3, i3 = s3);
74
- var u2 = e3.split("-");
75
- if (!i3 && u2.length > 1)
76
- return t3(u2[0]);
77
- } else {
78
- var a3 = e3.name;
79
- D[a3] = e3, i3 = a3;
80
- }
81
- return !r3 && i3 && (g = i3), i3 || !r3 && g;
82
- }, O = function(t3, e3) {
83
- if (S(t3))
84
- return t3.clone();
85
- var n3 = "object" == typeof e3 ? e3 : {};
86
- return n3.date = t3, n3.args = arguments, new _(n3);
87
- }, b = v;
88
- b.l = w, b.i = S, b.w = function(t3, e3) {
89
- return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
90
- };
91
- var _ = function() {
92
- function M2(t3) {
93
- this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
94
- }
95
- var m2 = M2.prototype;
96
- return m2.parse = function(t3) {
97
- this.$d = function(t4) {
98
- var e3 = t4.date, n3 = t4.utc;
99
- if (null === e3)
100
- return /* @__PURE__ */ new Date(NaN);
101
- if (b.u(e3))
102
- return /* @__PURE__ */ new Date();
103
- if (e3 instanceof Date)
104
- return new Date(e3);
105
- if ("string" == typeof e3 && !/Z$/i.test(e3)) {
106
- var r3 = e3.match($);
107
- if (r3) {
108
- var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
109
- 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);
110
- }
111
- }
34
+ (function(module2, exports3) {
35
+ !function(t2, e2) {
36
+ module2.exports = e2();
37
+ }(commonjsGlobal, function() {
38
+ 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) {
39
+ var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
40
+ return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
41
+ } }, m = function(t3, e3, n3) {
42
+ var r3 = String(t3);
43
+ return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
44
+ }, v = { s: m, z: function(t3) {
45
+ var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
46
+ return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i3, 2, "0");
47
+ }, m: function t3(e3, n3) {
48
+ if (e3.date() < n3.date())
49
+ return -t3(n3, e3);
50
+ 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);
51
+ return +(-(r3 + (n3 - i3) / (s3 ? i3 - u2 : u2 - i3)) || 0);
52
+ }, a: function(t3) {
53
+ return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
54
+ }, p: function(t3) {
55
+ 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$/, "");
56
+ }, u: function(t3) {
57
+ return void 0 === t3;
58
+ } }, g = "en", D = {};
59
+ D[g] = M;
60
+ var p = "$isDayjsObject", S = function(t3) {
61
+ return t3 instanceof _ || !(!t3 || !t3[p]);
62
+ }, w = function t3(e3, n3, r3) {
63
+ var i3;
64
+ if (!e3)
65
+ return g;
66
+ if ("string" == typeof e3) {
67
+ var s3 = e3.toLowerCase();
68
+ D[s3] && (i3 = s3), n3 && (D[s3] = n3, i3 = s3);
69
+ var u2 = e3.split("-");
70
+ if (!i3 && u2.length > 1)
71
+ return t3(u2[0]);
72
+ } else {
73
+ var a3 = e3.name;
74
+ D[a3] = e3, i3 = a3;
75
+ }
76
+ return !r3 && i3 && (g = i3), i3 || !r3 && g;
77
+ }, O = function(t3, e3) {
78
+ if (S(t3))
79
+ return t3.clone();
80
+ var n3 = "object" == typeof e3 ? e3 : {};
81
+ return n3.date = t3, n3.args = arguments, new _(n3);
82
+ }, b = v;
83
+ b.l = w, b.i = S, b.w = function(t3, e3) {
84
+ return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
85
+ };
86
+ var _ = function() {
87
+ function M2(t3) {
88
+ this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
89
+ }
90
+ var m2 = M2.prototype;
91
+ return m2.parse = function(t3) {
92
+ this.$d = function(t4) {
93
+ var e3 = t4.date, n3 = t4.utc;
94
+ if (null === e3)
95
+ return /* @__PURE__ */ new Date(NaN);
96
+ if (b.u(e3))
97
+ return /* @__PURE__ */ new Date();
98
+ if (e3 instanceof Date)
112
99
  return new Date(e3);
113
- }(t3), this.init();
114
- }, m2.init = function() {
115
- var t3 = this.$d;
116
- 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();
117
- }, m2.$utils = function() {
118
- return b;
119
- }, m2.isValid = function() {
120
- return !(this.$d.toString() === l);
121
- }, m2.isSame = function(t3, e3) {
122
- var n3 = O(t3);
123
- return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
124
- }, m2.isAfter = function(t3, e3) {
125
- return O(t3) < this.startOf(e3);
126
- }, m2.isBefore = function(t3, e3) {
127
- return this.endOf(e3) < O(t3);
128
- }, m2.$g = function(t3, e3, n3) {
129
- return b.u(t3) ? this[e3] : this.set(n3, t3);
130
- }, m2.unix = function() {
131
- return Math.floor(this.valueOf() / 1e3);
132
- }, m2.valueOf = function() {
133
- return this.$d.getTime();
134
- }, m2.startOf = function(t3, e3) {
135
- var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
136
- var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
137
- return r3 ? i3 : i3.endOf(a2);
138
- }, $2 = function(t4, e4) {
139
- return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
140
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
141
- switch (f2) {
142
- case h:
143
- return r3 ? l2(1, 0) : l2(31, 11);
144
- case c2:
145
- return r3 ? l2(1, M3) : l2(0, M3 + 1);
146
- case o:
147
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
148
- return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
149
- case a2:
150
- case d:
151
- return $2(v2 + "Hours", 0);
152
- case u:
153
- return $2(v2 + "Minutes", 1);
154
- case s2:
155
- return $2(v2 + "Seconds", 2);
156
- case i2:
157
- return $2(v2 + "Milliseconds", 3);
158
- default:
159
- return this.clone();
160
- }
161
- }, m2.endOf = function(t3) {
162
- return this.startOf(t3, false);
163
- }, m2.$set = function(t3, e3) {
164
- 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;
165
- if (o2 === c2 || o2 === h) {
166
- var y2 = this.clone().set(d, 1);
167
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
168
- } else
169
- l2 && this.$d[l2]($2);
170
- return this.init(), this;
171
- }, m2.set = function(t3, e3) {
172
- return this.clone().$set(t3, e3);
173
- }, m2.get = function(t3) {
174
- return this[b.p(t3)]();
175
- }, m2.add = function(r3, f2) {
176
- var d2, l2 = this;
177
- r3 = Number(r3);
178
- var $2 = b.p(f2), y2 = function(t3) {
179
- var e3 = O(l2);
180
- return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
181
- };
182
- if ($2 === c2)
183
- return this.set(c2, this.$M + r3);
184
- if ($2 === h)
185
- return this.set(h, this.$y + r3);
186
- if ($2 === a2)
187
- return y2(1);
188
- if ($2 === o)
189
- return y2(7);
190
- var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
191
- return b.w(m3, this);
192
- }, m2.subtract = function(t3, e3) {
193
- return this.add(-1 * t3, e3);
194
- }, m2.format = function(t3) {
195
- var e3 = this, n3 = this.$locale();
196
- if (!this.isValid())
197
- return n3.invalidDate || l;
198
- 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) {
199
- return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
200
- }, d2 = function(t4) {
201
- return b.s(s3 % 12 || 12, t4, "0");
202
- }, $2 = f2 || function(t4, e4, n4) {
203
- var r4 = t4 < 12 ? "AM" : "PM";
204
- return n4 ? r4.toLowerCase() : r4;
205
- };
206
- return r3.replace(y, function(t4, r4) {
207
- return r4 || function(t5) {
208
- switch (t5) {
209
- case "YY":
210
- return String(e3.$y).slice(-2);
211
- case "YYYY":
212
- return b.s(e3.$y, 4, "0");
213
- case "M":
214
- return a3 + 1;
215
- case "MM":
216
- return b.s(a3 + 1, 2, "0");
217
- case "MMM":
218
- return h2(n3.monthsShort, a3, c3, 3);
219
- case "MMMM":
220
- return h2(c3, a3);
221
- case "D":
222
- return e3.$D;
223
- case "DD":
224
- return b.s(e3.$D, 2, "0");
225
- case "d":
226
- return String(e3.$W);
227
- case "dd":
228
- return h2(n3.weekdaysMin, e3.$W, o2, 2);
229
- case "ddd":
230
- return h2(n3.weekdaysShort, e3.$W, o2, 3);
231
- case "dddd":
232
- return o2[e3.$W];
233
- case "H":
234
- return String(s3);
235
- case "HH":
236
- return b.s(s3, 2, "0");
237
- case "h":
238
- return d2(1);
239
- case "hh":
240
- return d2(2);
241
- case "a":
242
- return $2(s3, u2, true);
243
- case "A":
244
- return $2(s3, u2, false);
245
- case "m":
246
- return String(u2);
247
- case "mm":
248
- return b.s(u2, 2, "0");
249
- case "s":
250
- return String(e3.$s);
251
- case "ss":
252
- return b.s(e3.$s, 2, "0");
253
- case "SSS":
254
- return b.s(e3.$ms, 3, "0");
255
- case "Z":
256
- return i3;
257
- }
258
- return null;
259
- }(t4) || i3.replace(":", "");
260
- });
261
- }, m2.utcOffset = function() {
262
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
263
- }, m2.diff = function(r3, d2, l2) {
264
- var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
265
- return b.m(y2, m3);
266
- };
267
- switch (M3) {
268
- case h:
269
- $2 = D2() / 12;
270
- break;
271
- case c2:
272
- $2 = D2();
273
- break;
274
- case f:
275
- $2 = D2() / 3;
276
- break;
277
- case o:
278
- $2 = (g2 - v2) / 6048e5;
279
- break;
280
- case a2:
281
- $2 = (g2 - v2) / 864e5;
282
- break;
283
- case u:
284
- $2 = g2 / n2;
285
- break;
286
- case s2:
287
- $2 = g2 / e2;
288
- break;
289
- case i2:
290
- $2 = g2 / t2;
291
- break;
292
- default:
293
- $2 = g2;
294
- }
295
- return l2 ? $2 : b.a($2);
296
- }, m2.daysInMonth = function() {
297
- return this.endOf(c2).$D;
298
- }, m2.$locale = function() {
299
- return D[this.$L];
300
- }, m2.locale = function(t3, e3) {
301
- if (!t3)
302
- return this.$L;
303
- var n3 = this.clone(), r3 = w(t3, e3, true);
304
- return r3 && (n3.$L = r3), n3;
305
- }, m2.clone = function() {
306
- return b.w(this.$d, this);
307
- }, m2.toDate = function() {
308
- return new Date(this.valueOf());
309
- }, m2.toJSON = function() {
310
- return this.isValid() ? this.toISOString() : null;
311
- }, m2.toISOString = function() {
312
- return this.$d.toISOString();
313
- }, m2.toString = function() {
314
- return this.$d.toUTCString();
315
- }, M2;
316
- }(), k = _.prototype;
317
- return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
318
- k[t3[1]] = function(e3) {
319
- return this.$g(e3, t3[0], t3[1]);
100
+ if ("string" == typeof e3 && !/Z$/i.test(e3)) {
101
+ var r3 = e3.match($);
102
+ if (r3) {
103
+ var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
104
+ 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);
105
+ }
106
+ }
107
+ return new Date(e3);
108
+ }(t3), this.init();
109
+ }, m2.init = function() {
110
+ var t3 = this.$d;
111
+ 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();
112
+ }, m2.$utils = function() {
113
+ return b;
114
+ }, m2.isValid = function() {
115
+ return !(this.$d.toString() === l);
116
+ }, m2.isSame = function(t3, e3) {
117
+ var n3 = O(t3);
118
+ return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
119
+ }, m2.isAfter = function(t3, e3) {
120
+ return O(t3) < this.startOf(e3);
121
+ }, m2.isBefore = function(t3, e3) {
122
+ return this.endOf(e3) < O(t3);
123
+ }, m2.$g = function(t3, e3, n3) {
124
+ return b.u(t3) ? this[e3] : this.set(n3, t3);
125
+ }, m2.unix = function() {
126
+ return Math.floor(this.valueOf() / 1e3);
127
+ }, m2.valueOf = function() {
128
+ return this.$d.getTime();
129
+ }, m2.startOf = function(t3, e3) {
130
+ var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
131
+ var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
132
+ return r3 ? i3 : i3.endOf(a2);
133
+ }, $2 = function(t4, e4) {
134
+ return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
135
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
136
+ switch (f2) {
137
+ case h:
138
+ return r3 ? l2(1, 0) : l2(31, 11);
139
+ case c2:
140
+ return r3 ? l2(1, M3) : l2(0, M3 + 1);
141
+ case o:
142
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
143
+ return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
144
+ case a2:
145
+ case d:
146
+ return $2(v2 + "Hours", 0);
147
+ case u:
148
+ return $2(v2 + "Minutes", 1);
149
+ case s2:
150
+ return $2(v2 + "Seconds", 2);
151
+ case i2:
152
+ return $2(v2 + "Milliseconds", 3);
153
+ default:
154
+ return this.clone();
155
+ }
156
+ }, m2.endOf = function(t3) {
157
+ return this.startOf(t3, false);
158
+ }, m2.$set = function(t3, e3) {
159
+ 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;
160
+ if (o2 === c2 || o2 === h) {
161
+ var y2 = this.clone().set(d, 1);
162
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
163
+ } else
164
+ l2 && this.$d[l2]($2);
165
+ return this.init(), this;
166
+ }, m2.set = function(t3, e3) {
167
+ return this.clone().$set(t3, e3);
168
+ }, m2.get = function(t3) {
169
+ return this[b.p(t3)]();
170
+ }, m2.add = function(r3, f2) {
171
+ var d2, l2 = this;
172
+ r3 = Number(r3);
173
+ var $2 = b.p(f2), y2 = function(t3) {
174
+ var e3 = O(l2);
175
+ return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
320
176
  };
321
- }), O.extend = function(t3, e3) {
322
- return t3.$i || (t3(e3, _, O), t3.$i = true), O;
323
- }, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
324
- return O(1e3 * t3);
325
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
326
- });
327
- })(dayjs_min);
328
- return dayjs_min.exports;
329
- }
330
- var dayjs_minExports = requireDayjs_min();
177
+ if ($2 === c2)
178
+ return this.set(c2, this.$M + r3);
179
+ if ($2 === h)
180
+ return this.set(h, this.$y + r3);
181
+ if ($2 === a2)
182
+ return y2(1);
183
+ if ($2 === o)
184
+ return y2(7);
185
+ var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
186
+ return b.w(m3, this);
187
+ }, m2.subtract = function(t3, e3) {
188
+ return this.add(-1 * t3, e3);
189
+ }, m2.format = function(t3) {
190
+ var e3 = this, n3 = this.$locale();
191
+ if (!this.isValid())
192
+ return n3.invalidDate || l;
193
+ 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) {
194
+ return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
195
+ }, d2 = function(t4) {
196
+ return b.s(s3 % 12 || 12, t4, "0");
197
+ }, $2 = f2 || function(t4, e4, n4) {
198
+ var r4 = t4 < 12 ? "AM" : "PM";
199
+ return n4 ? r4.toLowerCase() : r4;
200
+ };
201
+ return r3.replace(y, function(t4, r4) {
202
+ return r4 || function(t5) {
203
+ switch (t5) {
204
+ case "YY":
205
+ return String(e3.$y).slice(-2);
206
+ case "YYYY":
207
+ return b.s(e3.$y, 4, "0");
208
+ case "M":
209
+ return a3 + 1;
210
+ case "MM":
211
+ return b.s(a3 + 1, 2, "0");
212
+ case "MMM":
213
+ return h2(n3.monthsShort, a3, c3, 3);
214
+ case "MMMM":
215
+ return h2(c3, a3);
216
+ case "D":
217
+ return e3.$D;
218
+ case "DD":
219
+ return b.s(e3.$D, 2, "0");
220
+ case "d":
221
+ return String(e3.$W);
222
+ case "dd":
223
+ return h2(n3.weekdaysMin, e3.$W, o2, 2);
224
+ case "ddd":
225
+ return h2(n3.weekdaysShort, e3.$W, o2, 3);
226
+ case "dddd":
227
+ return o2[e3.$W];
228
+ case "H":
229
+ return String(s3);
230
+ case "HH":
231
+ return b.s(s3, 2, "0");
232
+ case "h":
233
+ return d2(1);
234
+ case "hh":
235
+ return d2(2);
236
+ case "a":
237
+ return $2(s3, u2, true);
238
+ case "A":
239
+ return $2(s3, u2, false);
240
+ case "m":
241
+ return String(u2);
242
+ case "mm":
243
+ return b.s(u2, 2, "0");
244
+ case "s":
245
+ return String(e3.$s);
246
+ case "ss":
247
+ return b.s(e3.$s, 2, "0");
248
+ case "SSS":
249
+ return b.s(e3.$ms, 3, "0");
250
+ case "Z":
251
+ return i3;
252
+ }
253
+ return null;
254
+ }(t4) || i3.replace(":", "");
255
+ });
256
+ }, m2.utcOffset = function() {
257
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
258
+ }, m2.diff = function(r3, d2, l2) {
259
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
260
+ return b.m(y2, m3);
261
+ };
262
+ switch (M3) {
263
+ case h:
264
+ $2 = D2() / 12;
265
+ break;
266
+ case c2:
267
+ $2 = D2();
268
+ break;
269
+ case f:
270
+ $2 = D2() / 3;
271
+ break;
272
+ case o:
273
+ $2 = (g2 - v2) / 6048e5;
274
+ break;
275
+ case a2:
276
+ $2 = (g2 - v2) / 864e5;
277
+ break;
278
+ case u:
279
+ $2 = g2 / n2;
280
+ break;
281
+ case s2:
282
+ $2 = g2 / e2;
283
+ break;
284
+ case i2:
285
+ $2 = g2 / t2;
286
+ break;
287
+ default:
288
+ $2 = g2;
289
+ }
290
+ return l2 ? $2 : b.a($2);
291
+ }, m2.daysInMonth = function() {
292
+ return this.endOf(c2).$D;
293
+ }, m2.$locale = function() {
294
+ return D[this.$L];
295
+ }, m2.locale = function(t3, e3) {
296
+ if (!t3)
297
+ return this.$L;
298
+ var n3 = this.clone(), r3 = w(t3, e3, true);
299
+ return r3 && (n3.$L = r3), n3;
300
+ }, m2.clone = function() {
301
+ return b.w(this.$d, this);
302
+ }, m2.toDate = function() {
303
+ return new Date(this.valueOf());
304
+ }, m2.toJSON = function() {
305
+ return this.isValid() ? this.toISOString() : null;
306
+ }, m2.toISOString = function() {
307
+ return this.$d.toISOString();
308
+ }, m2.toString = function() {
309
+ return this.$d.toUTCString();
310
+ }, M2;
311
+ }(), k = _.prototype;
312
+ return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
313
+ k[t3[1]] = function(e3) {
314
+ return this.$g(e3, t3[0], t3[1]);
315
+ };
316
+ }), O.extend = function(t3, e3) {
317
+ return t3.$i || (t3(e3, _, O), t3.$i = true), O;
318
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
319
+ return O(1e3 * t3);
320
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
321
+ });
322
+ })(dayjs_min);
323
+ var dayjs_minExports = dayjs_min.exports;
331
324
  const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
332
325
  var zh = { exports: {} };
333
326
  (function(module2, exports3) {
334
327
  !function(e2, _) {
335
- module2.exports = _(requireDayjs_min());
328
+ module2.exports = _(dayjs_minExports);
336
329
  }(commonjsGlobal, function(e2) {
337
330
  function _(e3) {
338
331
  return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
@@ -8332,9 +8325,8 @@ var __publicField = (obj, key, value) => {
8332
8325
  });
8333
8326
  }
8334
8327
  function NameInputWidget(props) {
8335
- const kit = eagle.useUIKit();
8336
8328
  const { action } = core.useResource();
8337
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.input, { ...props, disabled: action === "edit" });
8329
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Input, { ...props, disabled: action === "edit" });
8338
8330
  }
8339
8331
  const dnsSubDomainRules = [
8340
8332
  {
@@ -8379,7 +8371,6 @@ var __publicField = (obj, key, value) => {
8379
8371
  }
8380
8372
  ];
8381
8373
  function NamespaceSelectWidget(props) {
8382
- const kit = eagle.useUIKit();
8383
8374
  const { action } = core.useResource();
8384
8375
  const { data: data2 } = core.useList({
8385
8376
  resource: "namespaces",
@@ -8391,7 +8382,7 @@ var __publicField = (obj, key, value) => {
8391
8382
  mode: "off"
8392
8383
  }
8393
8384
  });
8394
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.select, { input: props, disabled: action === "edit", children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name)) });
8385
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Select, { input: props, disabled: action === "edit", children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name)) });
8395
8386
  }
8396
8387
  const namespaceRules = [
8397
8388
  {
@@ -8401,7 +8392,6 @@ var __publicField = (obj, key, value) => {
8401
8392
  ];
8402
8393
  function KeyValueInput(props) {
8403
8394
  const { children, item } = props;
8404
- const kit = eagle.useUIKit();
8405
8395
  const onKeyChange = React.useCallback(
8406
8396
  (event2) => {
8407
8397
  var _a;
@@ -8424,14 +8414,13 @@ var __publicField = (obj, key, value) => {
8424
8414
  },
8425
8415
  [item, props]
8426
8416
  );
8427
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { children: [
8428
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.input, { value: item.key, onChange: onKeyChange }),
8429
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.textArea, { value: item.value, onChange: onValueChange }),
8417
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, { children: [
8418
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Input, { value: item.key, onChange: onKeyChange }),
8419
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.TextArea, { value: item.value, onChange: onValueChange }),
8430
8420
  children
8431
8421
  ] });
8432
8422
  }
8433
8423
  function KeyValueListWidget(props) {
8434
- const kit = eagle.useUIKit();
8435
8424
  const { value: value2 } = props;
8436
8425
  const items = React.useMemo(() => {
8437
8426
  return Object.entries(value2 || {}).map(([key2, value22]) => ({
@@ -8473,7 +8462,7 @@ var __publicField = (obj, key, value) => {
8473
8462
  onChange(temp);
8474
8463
  },
8475
8464
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
8476
- kit.button,
8465
+ eagle.Button,
8477
8466
  {
8478
8467
  onClick: () => {
8479
8468
  onRemove(index2);
@@ -8486,15 +8475,14 @@ var __publicField = (obj, key, value) => {
8486
8475
  index2
8487
8476
  );
8488
8477
  }),
8489
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", onClick: onAdd, children: "Add" }) })
8478
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, { type: "primary", onClick: onAdd, children: "Add" }) })
8490
8479
  ] });
8491
8480
  }
8492
8481
  function MetadataForm() {
8493
- const kit = eagle.useUIKit();
8494
8482
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8495
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { label: "Name", name: ["metadata", "name"], rules: rfc1123LabelRules, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NameInputWidget, {}) }),
8483
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, { label: "Name", name: ["metadata", "name"], rules: rfc1123LabelRules, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NameInputWidget, {}) }),
8496
8484
  /* @__PURE__ */ jsxRuntimeExports.jsx(
8497
- kit.form.Item,
8485
+ eagle.Form.Item,
8498
8486
  {
8499
8487
  label: "Namespace",
8500
8488
  name: ["metadata", "namespace"],
@@ -8502,8 +8490,8 @@ var __publicField = (obj, key, value) => {
8502
8490
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(NamespaceSelectWidget, {})
8503
8491
  }
8504
8492
  ),
8505
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "labels"], label: "Labels", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) }),
8506
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
8493
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, { name: ["metadata", "labels"], label: "Labels", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) }),
8494
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
8507
8495
  ] });
8508
8496
  }
8509
8497
  function memoize$2(fn) {
@@ -8693,7 +8681,6 @@ var __publicField = (obj, key, value) => {
8693
8681
  const index_dmbxj3 = "";
8694
8682
  const TableContainerStyle = "t1upn1sz";
8695
8683
  function Table(props) {
8696
- const kit = eagle.useUIKit();
8697
8684
  const {
8698
8685
  t: t2
8699
8686
  } = useTranslation();
@@ -8738,7 +8725,7 @@ var __publicField = (obj, key, value) => {
8738
8725
  return columns;
8739
8726
  }, [columns, RowMenu]);
8740
8727
  if (loading) {
8741
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
8728
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Loading, {});
8742
8729
  } else if (error) {
8743
8730
  return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
8744
8731
  errorText: t2("dovetail.retry_when_access_data_failed"),
@@ -8758,7 +8745,7 @@ var __publicField = (obj, key, value) => {
8758
8745
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
8759
8746
  ref: wrapperRef,
8760
8747
  className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
8761
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.table, {
8748
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Table, {
8762
8749
  tableLayout: "fixed",
8763
8750
  columns: finalColumns,
8764
8751
  dataSource,
@@ -8769,7 +8756,7 @@ var __publicField = (obj, key, value) => {
8769
8756
  scroll
8770
8757
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(AuxiliaryLine, {
8771
8758
  ref: auxiliaryLineRef
8772
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.pagination, {
8759
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Pagination, {
8773
8760
  current: currentPage,
8774
8761
  size: defaultSize,
8775
8762
  count: total,
@@ -10220,14 +10207,13 @@ var __publicField = (obj, key, value) => {
10220
10207
  const {
10221
10208
  value: value2
10222
10209
  } = props;
10223
- const kit = eagle.useUIKit();
10224
10210
  if (!value2) {
10225
10211
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
10226
10212
  value: ""
10227
10213
  });
10228
10214
  }
10229
10215
  const tags = Object.keys(value2).map((key2) => {
10230
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tag.SplitTag, {
10216
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tag.SplitTag, {
10231
10217
  className: TagStyle,
10232
10218
  primaryContent: key2,
10233
10219
  secondaryContent: value2[key2],
@@ -10235,7 +10221,7 @@ var __publicField = (obj, key, value) => {
10235
10221
  color: "gray"
10236
10222
  }, key2);
10237
10223
  });
10238
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.space, {
10224
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Space, {
10239
10225
  className: TagWrapper,
10240
10226
  size: 8,
10241
10227
  children: tags
@@ -10248,7 +10234,6 @@ var __publicField = (obj, key, value) => {
10248
10234
  hideBackground,
10249
10235
  className
10250
10236
  }) => {
10251
- const kit = eagle.useUIKit();
10252
10237
  const {
10253
10238
  t: t2
10254
10239
  } = useTranslation();
@@ -10267,7 +10252,7 @@ var __publicField = (obj, key, value) => {
10267
10252
  terminated: "red",
10268
10253
  stopped: "gray"
10269
10254
  };
10270
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.statusCapsule, {
10255
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.StatusCapsule, {
10271
10256
  className: cx_default(className, StateTagStyle, hideBackground && "no-background"),
10272
10257
  color: statusMap[state2] !== "loading" ? statusMap[state2] : void 0,
10273
10258
  loading: statusMap[state2] === "loading",
@@ -10586,7 +10571,6 @@ var __publicField = (obj, key, value) => {
10586
10571
  }
10587
10572
  function K8sDropdown(props) {
10588
10573
  const { record, size = "normal" } = props;
10589
- const kit = eagle.useUIKit();
10590
10574
  const { globalStore } = useGlobalStore();
10591
10575
  const useResourceResult = core.useResource();
10592
10576
  const resource = useResourceResult.resource;
@@ -10607,18 +10591,18 @@ var __publicField = (obj, key, value) => {
10607
10591
  });
10608
10592
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
10609
10593
  /* @__PURE__ */ jsxRuntimeExports.jsx(
10610
- kit.dropdown,
10594
+ eagle.Dropdown,
10611
10595
  {
10612
- overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.menu, { children: [
10596
+ overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Menu, { children: [
10613
10597
  isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
10614
- kit.menuItem,
10598
+ eagle.Menu.Item,
10615
10599
  {
10616
10600
  onClick: openForm,
10617
10601
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Icon, { src: iconsReact.EditPen16PrimaryIcon, children: t2("dovetail.edit_yaml") })
10618
10602
  }
10619
10603
  ),
10620
10604
  /* @__PURE__ */ jsxRuntimeExports.jsx(
10621
- kit.menu.Item,
10605
+ eagle.Menu.Item,
10622
10606
  {
10623
10607
  onClick: () => {
10624
10608
  var _a;
@@ -10633,9 +10617,9 @@ var __publicField = (obj, key, value) => {
10633
10617
  }
10634
10618
  ),
10635
10619
  props.children,
10636
- (canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, { style: { margin: 0 } }) : null,
10620
+ (canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, { style: { margin: 0 } }) : null,
10637
10621
  (canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
10638
- kit.menuItem,
10622
+ eagle.Menu.Item,
10639
10623
  {
10640
10624
  danger: true,
10641
10625
  onClick: () => {
@@ -10647,7 +10631,7 @@ var __publicField = (obj, key, value) => {
10647
10631
  ] }),
10648
10632
  trigger: ["click"],
10649
10633
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
10650
- kit.button,
10634
+ eagle.Button,
10651
10635
  {
10652
10636
  type: "quiet",
10653
10637
  size: size === "large" ? "middle" : "small",
@@ -10664,7 +10648,7 @@ var __publicField = (obj, key, value) => {
10664
10648
  )
10665
10649
  }
10666
10650
  ),
10667
- visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.modal, { ...modalProps }) : null
10651
+ visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Modal, { ...modalProps }) : null
10668
10652
  ] });
10669
10653
  }
10670
10654
  var ColumnKeys = /* @__PURE__ */ ((ColumnKeys2) => {
@@ -10762,12 +10746,11 @@ var __publicField = (obj, key, value) => {
10762
10746
  };
10763
10747
  function CreateButton() {
10764
10748
  var _a;
10765
- const kit = eagle.useUIKit();
10766
10749
  const { t: t2 } = useTranslation();
10767
10750
  const openForm = useOpenForm();
10768
10751
  const { resource } = core.useResource();
10769
10752
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
10770
- kit.button,
10753
+ eagle.Button,
10771
10754
  {
10772
10755
  prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.PlusAddCreateNew16BoldOntintIcon, {}),
10773
10756
  type: "primary",
@@ -10806,7 +10789,6 @@ var __publicField = (obj, key, value) => {
10806
10789
  };
10807
10790
  const DeleteManyButton = (props) => {
10808
10791
  const { resource } = core.useResource();
10809
- const kit = eagle.useUIKit();
10810
10792
  const { t: t2 } = useTranslation();
10811
10793
  const { modalProps, visible, setVisible } = useDeleteManyModal(
10812
10794
  (resource == null ? void 0 : resource.name) || "",
@@ -10816,8 +10798,8 @@ var __publicField = (obj, key, value) => {
10816
10798
  setVisible(true);
10817
10799
  }, [setVisible]);
10818
10800
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
10819
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", danger: true, onClick, children: t2("dovetail.delete") }),
10820
- visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.modal, { ...modalProps }) : null
10801
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, { type: "primary", danger: true, onClick, children: t2("dovetail.delete") }),
10802
+ visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Modal, { ...modalProps }) : null
10821
10803
  ] });
10822
10804
  };
10823
10805
  const TableToolBar_4s5vf2 = "";
@@ -10831,18 +10813,17 @@ var __publicField = (obj, key, value) => {
10831
10813
  hideCreate
10832
10814
  }) => {
10833
10815
  var _a;
10834
- const kit = eagle.useUIKit();
10835
10816
  const {
10836
10817
  resource
10837
10818
  } = core.useResource();
10838
10819
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
10839
10820
  className: cx_default(ToolbarWrapperStyle, "table-toolbar"),
10840
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
10821
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
10841
10822
  className: ToolbarStyle$1,
10842
10823
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
10843
10824
  className: cx_default(eagle.Typo.Display.d2_regular_title, TitleStyle$2),
10844
10825
  children: (_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind
10845
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
10826
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
10846
10827
  children: [selectedKeys.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(DeleteManyButton, {
10847
10828
  ids: selectedKeys
10848
10829
  }) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
@@ -10877,7 +10858,6 @@ var __publicField = (obj, key, value) => {
10877
10858
  const {
10878
10859
  i18n: i18n2
10879
10860
  } = useTranslation();
10880
- const kit = eagle.useUIKit();
10881
10861
  const [selectedKeys] = React.useState([]);
10882
10862
  const component = React.useContext(ComponentContext);
10883
10863
  const Table$1 = component.Table || Table;
@@ -10915,7 +10895,7 @@ var __publicField = (obj, key, value) => {
10915
10895
  type: ErrorContentType.Card
10916
10896
  });
10917
10897
  }
10918
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
10898
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
10919
10899
  direction: "vertical",
10920
10900
  className: WrapperStyle$5,
10921
10901
  children: [hideToolBar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
@@ -11052,7 +11032,6 @@ var __publicField = (obj, key, value) => {
11052
11032
  namespace: namespace2,
11053
11033
  resourceId
11054
11034
  } = props;
11055
- const kit = eagle.useUIKit();
11056
11035
  const navigation = core.useNavigation();
11057
11036
  const go = core.useGo();
11058
11037
  const onClick = () => {
@@ -11066,7 +11045,7 @@ var __publicField = (obj, key, value) => {
11066
11045
  }
11067
11046
  });
11068
11047
  };
11069
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, {
11048
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Link, {
11070
11049
  className: LinkStyle,
11071
11050
  onClick,
11072
11051
  children: resourceId
@@ -11260,9 +11239,8 @@ var __publicField = (obj, key, value) => {
11260
11239
  }
11261
11240
  function Tabs(props) {
11262
11241
  const { tabs, className } = props;
11263
- const kit = eagle.useUIKit();
11264
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabs, { className, children: tabs.map((tab) => {
11265
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
11242
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tabs, { className, children: tabs.map((tab) => {
11243
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
11266
11244
  }) });
11267
11245
  }
11268
11246
  const ShowContent_1u0cbxv = "";
@@ -11303,7 +11281,6 @@ var __publicField = (obj, key, value) => {
11303
11281
  formatter,
11304
11282
  Dropdown = K8sDropdown
11305
11283
  } = props;
11306
- const kit = eagle.useUIKit();
11307
11284
  const parsed = core.useParsed();
11308
11285
  const {
11309
11286
  resource
@@ -11346,7 +11323,7 @@ var __publicField = (obj, key, value) => {
11346
11323
  } else {
11347
11324
  content = lodashEs.get(record, field.path);
11348
11325
  }
11349
- return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.col, {
11326
+ return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Col, {
11350
11327
  flex: areaType === AreaType.Inline ? "none" : "",
11351
11328
  span: field.col || 24,
11352
11329
  children: field.render ? field.render(value2, record, field) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
@@ -11401,7 +11378,7 @@ var __publicField = (obj, key, value) => {
11401
11378
  children: (_b = resource == null ? void 0 : resource.meta) == null ? void 0 : _b.kind
11402
11379
  })
11403
11380
  })
11404
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
11381
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
11405
11382
  className: TopBarStyle,
11406
11383
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
11407
11384
  style: {
@@ -11413,11 +11390,11 @@ var __publicField = (obj, key, value) => {
11413
11390
  }), stateDisplay ? /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
11414
11391
  state: stateDisplay
11415
11392
  }) : void 0]
11416
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
11393
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
11417
11394
  children: [(_d = showConfig.renderExtraButton) == null ? void 0 : _d.call(showConfig, record), !showConfig.hideEditYamlButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
11418
11395
  resource: resource == null ? void 0 : resource.name,
11419
11396
  action: AccessControlAuth.Edit,
11420
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
11397
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
11421
11398
  style: {
11422
11399
  marginRight: 8
11423
11400
  },
@@ -11442,7 +11419,7 @@ var __publicField = (obj, key, value) => {
11442
11419
  className: cx_default(TabContentStyle, tab.groups.length <= 1 && FullTabContentStyle),
11443
11420
  children: (_a2 = tab.groups) == null ? void 0 : _a2.map((group) => {
11444
11421
  const GroupContainer = group.title ? ShowGroupComponent : React.Fragment;
11445
- const FieldContainer = group.title ? kit.row : React.Fragment;
11422
+ const FieldContainer = group.title ? eagle.Row : React.Fragment;
11446
11423
  const groupContainerProps = group.title ? {
11447
11424
  title: group.title || ""
11448
11425
  } : {};
@@ -11455,7 +11432,7 @@ var __publicField = (obj, key, value) => {
11455
11432
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FieldContainer, {
11456
11433
  ...fieldContainerProps,
11457
11434
  children: renderFields(area.fields, area.type, !!group.title)
11458
- }, index2), index2 !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
11435
+ }, index2), index2 !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
11459
11436
  style: {
11460
11437
  margin: "8px 0 12px 0"
11461
11438
  }
@@ -11470,7 +11447,7 @@ var __publicField = (obj, key, value) => {
11470
11447
  });
11471
11448
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
11472
11449
  className: ShowContentWrapperStyle,
11473
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.space, {
11450
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Space, {
11474
11451
  direction: "vertical",
11475
11452
  className: ShowContentHeaderStyle,
11476
11453
  children: topBar
@@ -11521,7 +11498,6 @@ var __publicField = (obj, key, value) => {
11521
11498
  const {
11522
11499
  i18n: i18n2
11523
11500
  } = useTranslation();
11524
- const kit = eagle.useUIKit();
11525
11501
  const [selectedKeys, setSelectedKeys] = React.useState([]);
11526
11502
  const component = React.useContext(ComponentContext);
11527
11503
  const Table$1 = component.Table || Table;
@@ -11566,7 +11542,7 @@ var __publicField = (obj, key, value) => {
11566
11542
  type: ErrorContentType.Card
11567
11543
  });
11568
11544
  }
11569
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
11545
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
11570
11546
  direction: "vertical",
11571
11547
  className: "c1dicff8",
11572
11548
  children: [hideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
@@ -11584,9 +11560,8 @@ var __publicField = (obj, key, value) => {
11584
11560
  function FormErrorAlert(props) {
11585
11561
  const { errorMsgs, style, className, isEdit } = props;
11586
11562
  const { i18n: i18n2 } = useTranslation();
11587
- const kit = eagle.useUIKit();
11588
11563
  return errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
11589
- kit.alert,
11564
+ eagle.Alert,
11590
11565
  {
11591
11566
  message: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
11592
11567
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: i18n2.t(isEdit ? "dovetail.save_failed_tip" : "dovetail.create_failed_tip") }),
@@ -11694,7 +11669,6 @@ var __publicField = (obj, key, value) => {
11694
11669
  formRef: form,
11695
11670
  renderContent
11696
11671
  } = props;
11697
- const kit = eagle.useUIKit();
11698
11672
  const {
11699
11673
  i18n: i18n2
11700
11674
  } = useTranslation();
@@ -11714,7 +11688,7 @@ var __publicField = (obj, key, value) => {
11714
11688
  popModal();
11715
11689
  reset();
11716
11690
  }, [reset]);
11717
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.modal, {
11691
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Modal, {
11718
11692
  className: ModalStyle,
11719
11693
  title: title || i18n2.t("dovetail.edit"),
11720
11694
  confirmLoading: submitting,
@@ -11736,7 +11710,6 @@ var __publicField = (obj, key, value) => {
11736
11710
  const {
11737
11711
  modalProps
11738
11712
  } = props;
11739
- const kit = eagle.useUIKit();
11740
11713
  const {
11741
11714
  i18n: i18n2
11742
11715
  } = useTranslation();
@@ -11747,7 +11720,7 @@ var __publicField = (obj, key, value) => {
11747
11720
  return /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
11748
11721
  resource: resource == null ? void 0 : resource.name,
11749
11722
  action: AccessControlAuth.Edit,
11750
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
11723
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
11751
11724
  className: EditButtonStyle,
11752
11725
  type: "link",
11753
11726
  onClick: () => {
@@ -11776,7 +11749,6 @@ var __publicField = (obj, key, value) => {
11776
11749
  record,
11777
11750
  label: label2
11778
11751
  } = props;
11779
- const kit = eagle.useUIKit();
11780
11752
  const {
11781
11753
  resource
11782
11754
  } = core.useResource();
@@ -11813,7 +11785,7 @@ var __publicField = (obj, key, value) => {
11813
11785
  React.useImperativeHandle(ref, () => ({
11814
11786
  submit
11815
11787
  }), [submit]);
11816
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
11788
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
11817
11789
  label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
11818
11790
  style: {
11819
11791
  width: "134px"
@@ -11821,7 +11793,7 @@ var __publicField = (obj, key, value) => {
11821
11793
  children: label2
11822
11794
  }),
11823
11795
  colon: false,
11824
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.fields.Integer, {
11796
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Fields.Integer, {
11825
11797
  style: {
11826
11798
  width: "142px"
11827
11799
  },
@@ -11846,7 +11818,6 @@ var __publicField = (obj, key, value) => {
11846
11818
  record,
11847
11819
  editable
11848
11820
  }) {
11849
- const kit = eagle.useUIKit();
11850
11821
  const {
11851
11822
  t: t2
11852
11823
  } = useTranslation();
@@ -11874,7 +11845,7 @@ var __publicField = (obj, key, value) => {
11874
11845
  className: WorkloadReplicasWrapperStyle,
11875
11846
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
11876
11847
  className: DonutChartWrapperStyle,
11877
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.DonutChart, {
11848
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.DonutChart, {
11878
11849
  className: DonutChartStyle,
11879
11850
  data: donutData,
11880
11851
  width: 70,
@@ -17805,7 +17776,6 @@ var __publicField = (obj, key, value) => {
17805
17776
  pod: pod2
17806
17777
  }) => {
17807
17778
  var _a, _b, _c, _d, _e;
17808
- const kit = eagle.useUIKit();
17809
17779
  const [selectedContainer, setSelectedContainer] = React.useState(((_b = (_a = pod2.spec) == null ? void 0 : _a.containers[0]) == null ? void 0 : _b.name) || "");
17810
17780
  const [logs, setLogs] = React.useState([]);
17811
17781
  const [logType, setLogType] = React.useState("realtime");
@@ -17928,7 +17898,7 @@ var __publicField = (obj, key, value) => {
17928
17898
  className: ToolbarStyle,
17929
17899
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
17930
17900
  className: ToolbarAreaStyle,
17931
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.SegmentedControl, {
17901
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.SegmentControl, {
17932
17902
  options: [{
17933
17903
  label: t2("dovetail.realtime_log"),
17934
17904
  value: "realtime"
@@ -17941,7 +17911,7 @@ var __publicField = (obj, key, value) => {
17941
17911
  setLogType(value2);
17942
17912
  setLogs([]);
17943
17913
  }
17944
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.select, {
17914
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Select, {
17945
17915
  input: {
17946
17916
  onChange: (newValue) => {
17947
17917
  stopFetchingLogs();
@@ -17955,22 +17925,22 @@ var __publicField = (obj, key, value) => {
17955
17925
  style: {
17956
17926
  width: 200
17957
17927
  },
17958
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
17928
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, {
17959
17929
  value: "",
17960
17930
  disabled: true,
17961
17931
  children: t2("dovetail.select_container")
17962
- }), (((_e = pod2.spec) == null ? void 0 : _e.containers) || []).map((container2) => /* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
17932
+ }), (((_e = pod2.spec) == null ? void 0 : _e.containers) || []).map((container2) => /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, {
17963
17933
  value: container2.name,
17964
17934
  children: container2.name
17965
17935
  }, container2.name))]
17966
17936
  })]
17967
17937
  }), /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
17968
17938
  className: ToolbarAreaStyle,
17969
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.checkbox, {
17939
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Checkbox, {
17970
17940
  checked: wrap,
17971
17941
  onChange: (e2) => setWrap(e2.target.checked),
17972
17942
  children: t2("dovetail.auto_wrap")
17973
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
17943
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
17974
17944
  onClick: () => setPaused((prev) => !prev),
17975
17945
  prefixIcon: paused ? /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.RecoverContinue16GradientBlueIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.SuspendedPause16GradientBlueIcon, {}),
17976
17946
  size: "middle",
@@ -18551,7 +18521,6 @@ var __publicField = (obj, key, value) => {
18551
18521
  const {
18552
18522
  saveButtonProps
18553
18523
  } = props;
18554
- const kit = eagle.useUIKit();
18555
18524
  const {
18556
18525
  resource,
18557
18526
  action
@@ -18564,8 +18533,8 @@ var __publicField = (obj, key, value) => {
18564
18533
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
18565
18534
  className: cx_default(eagle.Typo.Display.d2_bold_title, TitleStyle),
18566
18535
  children: [(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind, ":", " ", action === "create" ? t2("dovetail.create") : t2("dovetail.edit")]
18567
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {}), props.children, /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
18568
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
18536
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {}), props.children, /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
18537
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
18569
18538
  type: "primary",
18570
18539
  ...saveButtonProps,
18571
18540
  children: t2("dovetail.save")
@@ -18575,7 +18544,6 @@ var __publicField = (obj, key, value) => {
18575
18544
  }
18576
18545
  function WorkloadDropdown(props) {
18577
18546
  const { record, size, children } = props;
18578
- const kit = eagle.useUIKit();
18579
18547
  const { resource } = core.useResource();
18580
18548
  const { mutateAsync } = core.useUpdate();
18581
18549
  const { t: t2 } = useTranslation();
@@ -18585,7 +18553,7 @@ var __publicField = (obj, key, value) => {
18585
18553
  });
18586
18554
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(K8sDropdown, { record, size, children: [
18587
18555
  (canEditData == null ? void 0 : canEditData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
18588
- kit.menu.Item,
18556
+ eagle.Menu.Item,
18589
18557
  {
18590
18558
  onClick: async () => {
18591
18559
  const v = record.redeploy();
@@ -18629,7 +18597,6 @@ var __publicField = (obj, key, value) => {
18629
18597
  }
18630
18598
  function ReplicasDropdown(props) {
18631
18599
  const { record, size, children } = props;
18632
- const kit = eagle.useUIKit();
18633
18600
  const { t: t2 } = useTranslation();
18634
18601
  const pushModal = eagle.usePushModal();
18635
18602
  const formRef = React.useRef(null);
@@ -18641,7 +18608,7 @@ var __publicField = (obj, key, value) => {
18641
18608
  });
18642
18609
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(WorkloadDropdown, { record, size, children: [
18643
18610
  isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
18644
- kit.menu.Item,
18611
+ eagle.Menu.Item,
18645
18612
  {
18646
18613
  onClick: () => {
18647
18614
  const modalProps = {
@@ -18831,7 +18798,6 @@ var __publicField = (obj, key, value) => {
18831
18798
  const NamespacesFilter = ({
18832
18799
  className
18833
18800
  }) => {
18834
- const kit = eagle.useUIKit();
18835
18801
  const {
18836
18802
  t: t2
18837
18803
  } = useTranslation();
@@ -18880,7 +18846,7 @@ var __publicField = (obj, key, value) => {
18880
18846
  }, [calcTagMaxWidth]);
18881
18847
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18882
18848
  className: WRAPPER_CLASS,
18883
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.select, {
18849
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Select, {
18884
18850
  loading: isLoading,
18885
18851
  className: cx_default(SelectStyle, SELECT_CLASS, className),
18886
18852
  style: {
@@ -18901,14 +18867,14 @@ var __publicField = (obj, key, value) => {
18901
18867
  },
18902
18868
  dropdownRender: (menu) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18903
18869
  className: SelectContentStyle,
18904
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.searchInput, {
18870
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.SearchInput, {
18905
18871
  style: {
18906
18872
  width: "100%"
18907
18873
  },
18908
18874
  className: SearchInputStyle,
18909
18875
  onChange: debouncedSetSearch,
18910
18876
  placeholder: t2("dovetail.please_input")
18911
- }), menu, isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {}) : null]
18877
+ }), menu, isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Loading, {}) : null]
18912
18878
  }),
18913
18879
  tagRender: ({
18914
18880
  label: label2,
@@ -18927,17 +18893,17 @@ var __publicField = (obj, key, value) => {
18927
18893
  marginLeft: 8
18928
18894
  },
18929
18895
  children: label2
18930
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.token, {
18896
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Token, {
18931
18897
  className: cx_default(isCountToken ? CountTokenStyle : TokenStyle, isCountToken ? "" : "closable-token"),
18932
18898
  closable,
18933
18899
  size: "medium",
18934
18900
  onClose,
18935
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
18936
- content: isCountToken ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tooltip, {
18901
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
18902
+ content: isCountToken ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tooltip, {
18937
18903
  title: isCountToken ? value2.slice(MAX_TAG_COUNT).map((namespace2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
18938
18904
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18939
18905
  children: namespace2
18940
- }), index2 !== value2.length - 1 - MAX_TAG_COUNT ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
18906
+ }), index2 !== value2.length - 1 - MAX_TAG_COUNT ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
18941
18907
  style: {
18942
18908
  margin: "6px 0",
18943
18909
  borderColor: "rgba(107, 128, 167, 0.60)"
@@ -18962,26 +18928,26 @@ var __publicField = (obj, key, value) => {
18962
18928
  setOpen(open2);
18963
18929
  },
18964
18930
  multiple: true,
18965
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
18931
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, {
18966
18932
  value: "_all",
18967
18933
  label: t2("dovetail.all_namespaces"),
18968
18934
  className: AllNamespaceOptionStyle,
18969
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
18935
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
18970
18936
  content: t2("dovetail.all_namespaces"),
18971
18937
  className: LabelWrapperStyle
18972
18938
  })
18973
- }, "_all"), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.selectOptGroup, {
18939
+ }, "_all"), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdSelectOptGroup, {
18974
18940
  label: "",
18975
18941
  className: SelectOptionGroupStyle,
18976
18942
  children: data2 == null ? void 0 : data2.data.map((namespace2) => {
18977
18943
  const {
18978
18944
  name: name2
18979
18945
  } = namespace2.metadata;
18980
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.option, {
18946
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdOption, {
18981
18947
  value: name2,
18982
18948
  label: name2,
18983
18949
  className: OptionStyle,
18984
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
18950
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
18985
18951
  content: name2,
18986
18952
  className: LabelWrapperStyle
18987
18953
  })
@@ -23124,7 +23090,6 @@ var __publicField = (obj, key, value) => {
23124
23090
  eleRef,
23125
23091
  className
23126
23092
  } = props;
23127
- const kit = eagle.useUIKit();
23128
23093
  const { t: t2 } = useTranslation();
23129
23094
  const [isCollapsed, setIsCollapsed] = React.useState(
23130
23095
  collapsable ? isDefaultCollapsed : false
@@ -23184,14 +23149,14 @@ var __publicField = (obj, key, value) => {
23184
23149
  ref: eleRef,
23185
23150
  children: [
23186
23151
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
23187
- kit.space,
23152
+ eagle.Space,
23188
23153
  {
23189
23154
  className: cx_default(ToolBarStyle, isCollapsed ? "collapsed" : ""),
23190
23155
  direction: "vertical",
23191
23156
  size: 0,
23192
23157
  children: [
23193
- /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { className: ToolBarHeaderStyle, children: [
23194
- /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { size: 8, children: [
23158
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, { className: ToolBarHeaderStyle, children: [
23159
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, { size: 8, children: [
23195
23160
  collapsable && /* @__PURE__ */ jsxRuntimeExports.jsx(
23196
23161
  eagle.Icon,
23197
23162
  {
@@ -23205,10 +23170,10 @@ var __publicField = (obj, key, value) => {
23205
23170
  ),
23206
23171
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx_default(TitleStyle$1, "yaml-editor-title"), children: title || t2("dovetail.configure_file") })
23207
23172
  ] }),
23208
- /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { size: 14, children: [
23173
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, { size: 14, children: [
23209
23174
  isDiff ? void 0 : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
23210
23175
  /* @__PURE__ */ jsxRuntimeExports.jsx(
23211
- kit.tooltip,
23176
+ eagle.Tooltip,
23212
23177
  {
23213
23178
  title: isCollapsed ? "" : copyTooltip,
23214
23179
  onVisibleChange: (visible) => {
@@ -23239,7 +23204,7 @@ var __publicField = (obj, key, value) => {
23239
23204
  ),
23240
23205
  /* @__PURE__ */ jsxRuntimeExports.jsx(Separator, {}),
23241
23206
  /* @__PURE__ */ jsxRuntimeExports.jsx(
23242
- kit.tooltip,
23207
+ eagle.Tooltip,
23243
23208
  {
23244
23209
  title: isCollapsed ? "" : resetTooltip,
23245
23210
  onVisibleChange: (visible) => {
@@ -23272,7 +23237,7 @@ var __publicField = (obj, key, value) => {
23272
23237
  /* @__PURE__ */ jsxRuntimeExports.jsx(Separator, {})
23273
23238
  ] }),
23274
23239
  /* @__PURE__ */ jsxRuntimeExports.jsx(
23275
- kit.tooltip,
23240
+ eagle.Tooltip,
23276
23241
  {
23277
23242
  title: isCollapsed ? "" : isDiff ? t2("dovetail.back_to_edit") : t2("dovetail.view_changes"),
23278
23243
  children: isDiff ? /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -23302,7 +23267,7 @@ var __publicField = (obj, key, value) => {
23302
23267
  )
23303
23268
  ] })
23304
23269
  ] }),
23305
- errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { className: ErrorWrapperStyle, size: 8, align: "start", children: [
23270
+ errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, { className: ErrorWrapperStyle, size: 8, align: "start", children: [
23306
23271
  /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.XmarkFailedSeriousWarningFill16RedIcon, { className: ErrorIconStyle }),
23307
23272
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorMsgs.map((errorMsg, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("pre", { className: ErrorMsgStyle, children: [
23308
23273
  errorMsgs.length > 1 ? `${index2 + 1}. ` : "",
@@ -23489,7 +23454,6 @@ var __publicField = (obj, key, value) => {
23489
23454
  const [errorResponseBody, setErrorResponseBody] = React.useState(null);
23490
23455
  const useResourceResult = core.useResource();
23491
23456
  const { globalStore } = useGlobalStore();
23492
- const kit = eagle.useUIKit();
23493
23457
  const {
23494
23458
  schema,
23495
23459
  loading: isLoadingSchema,
@@ -23498,7 +23462,7 @@ var __publicField = (obj, key, value) => {
23498
23462
  } = useSchema({
23499
23463
  skip: editorOptions == null ? void 0 : editorOptions.isSkipSchema
23500
23464
  });
23501
- const [formAnt] = kit.form.useForm();
23465
+ const [formAnt] = eagle.Form.useForm();
23502
23466
  const formSF = sunflowerAntd.useForm({
23503
23467
  form: formAnt
23504
23468
  });
@@ -23732,7 +23696,6 @@ var __publicField = (obj, key, value) => {
23732
23696
  },
23733
23697
  ...useFormProps
23734
23698
  });
23735
- const kit = eagle.useUIKit();
23736
23699
  const {
23737
23700
  t: t2,
23738
23701
  i18n: i18n2
@@ -23768,7 +23731,7 @@ var __publicField = (obj, key, value) => {
23768
23731
  }, [responseErrors, onErrorsChange]);
23769
23732
  return /* @__PURE__ */ jsxRuntimeExports.jsx(FormWrapper, {
23770
23733
  ...formWrapperProps,
23771
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form, {
23734
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form, {
23772
23735
  ...formProps,
23773
23736
  initialValues: formProps.initialValues,
23774
23737
  layout: "horizontal",
@@ -23776,10 +23739,10 @@ var __publicField = (obj, key, value) => {
23776
23739
  onFinish,
23777
23740
  children: (() => {
23778
23741
  if (isLoadingSchema || (queryResult == null ? void 0 : queryResult.isLoading) && action === "edit") {
23779
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
23742
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Loading, {});
23780
23743
  }
23781
23744
  return editorProps.schema || schemaStrategy !== "Required" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
23782
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
23745
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
23783
23746
  style: {
23784
23747
  flex: 1
23785
23748
  },
@@ -23789,7 +23752,7 @@ var __publicField = (obj, key, value) => {
23789
23752
  schema,
23790
23753
  collapsable: false
23791
23754
  })
23792
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, {
23755
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
23793
23756
  children: mutationResult.error && /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
23794
23757
  errorMsgs: errorResponseBody ? responseErrors : [mutationResult.error.message],
23795
23758
  style: {
@@ -24013,7 +23976,6 @@ var __publicField = (obj, key, value) => {
24013
23976
  function CronJobDropdown(props) {
24014
23977
  const { record, size } = props;
24015
23978
  const { spec } = record;
24016
- const kit = eagle.useUIKit();
24017
23979
  const { resource } = core.useResource();
24018
23980
  const { mutateAsync } = core.useUpdate();
24019
23981
  const { t: t2 } = useTranslation();
@@ -24023,7 +23985,7 @@ var __publicField = (obj, key, value) => {
24023
23985
  });
24024
23986
  const suspended2 = Boolean(spec == null ? void 0 : spec.suspend);
24025
23987
  return /* @__PURE__ */ jsxRuntimeExports.jsx(K8sDropdown, { record, size, children: (canEditData == null ? void 0 : canEditData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
24026
- kit.menu.Item,
23988
+ eagle.Menu.Item,
24027
23989
  {
24028
23990
  onClick: async () => {
24029
23991
  const v = suspended2 ? record.resume() : record.suspend();
@@ -24129,36 +24091,34 @@ var __publicField = (obj, key, value) => {
24129
24091
  const DeleteButton = () => {
24130
24092
  const { resource } = core.useResource();
24131
24093
  const { id } = core.useParsed();
24132
- const kit = eagle.useUIKit();
24133
24094
  const { t: t2 } = useTranslation();
24134
24095
  const { modalProps, visible, openDeleteConfirmModal } = useDeleteModal(
24135
24096
  (resource == null ? void 0 : resource.name) || ""
24136
24097
  );
24137
24098
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
24138
- /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", danger: true, onClick: () => openDeleteConfirmModal(id || ""), children: t2("dovetail.delete") }),
24139
- visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.modal, { ...modalProps }) : null
24099
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, { type: "primary", danger: true, onClick: () => openDeleteConfirmModal(id || ""), children: t2("dovetail.delete") }),
24100
+ visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Modal, { ...modalProps }) : null
24140
24101
  ] });
24141
24102
  };
24142
24103
  const index_1wt5px2 = "";
24143
24104
  const MenuStyle = "mdppgn0";
24144
24105
  const Menu = () => {
24145
- const kit = eagle.useUIKit();
24146
24106
  const {
24147
24107
  menuItems,
24148
24108
  selectedKey
24149
24109
  } = core.useMenu();
24150
24110
  function renderMenuItems(items) {
24151
- return items.map((item) => item.list ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.menuItem, {
24111
+ return items.map((item) => item.list ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Menu.Item, {
24152
24112
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(reactRouterDom.NavLink, {
24153
24113
  to: item.route || "",
24154
24114
  children: item.label
24155
24115
  })
24156
- }, item.key) : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.menuItemGroup, {
24116
+ }, item.key) : /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.MenuItemGroup, {
24157
24117
  title: item.name,
24158
24118
  children: renderMenuItems(item.children)
24159
24119
  }, item.key));
24160
24120
  }
24161
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.menu, {
24121
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Menu, {
24162
24122
  className: MenuStyle,
24163
24123
  theme: "light",
24164
24124
  selectedKeys: [selectedKey],
@@ -24173,21 +24133,20 @@ var __publicField = (obj, key, value) => {
24173
24133
  const Layout = ({
24174
24134
  children
24175
24135
  }) => {
24176
- const kit = eagle.useUIKit();
24177
24136
  const [collapsed, setCollapsed] = React.useState(false);
24178
24137
  const {
24179
24138
  Header,
24180
24139
  Content,
24181
24140
  Sider
24182
- } = kit.layout;
24183
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.layout, {
24141
+ } = eagle.Layout;
24142
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Layout, {
24184
24143
  style: {
24185
24144
  height: "100%"
24186
24145
  },
24187
24146
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Header, {
24188
24147
  className: cx_default(HeaderStyle, eagle.Typo.Heading.h1_bold_title),
24189
24148
  children: "Dovetail 2"
24190
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.layout, {
24149
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Layout, {
24191
24150
  className: ContentLayoutStyle,
24192
24151
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Sider, {
24193
24152
  width: 256,
@@ -24205,7 +24164,6 @@ var __publicField = (obj, key, value) => {
24205
24164
  };
24206
24165
  const DrawerShow = (props) => {
24207
24166
  var _a, _b;
24208
- const kit = eagle.useUIKit();
24209
24167
  const parsed = core.useParsed();
24210
24168
  const nav = core.useNavigation();
24211
24169
  const { queryResult } = core.useShow({ id: (_a = parsed == null ? void 0 : parsed.params) == null ? void 0 : _a.id });
@@ -24218,16 +24176,15 @@ var __publicField = (obj, key, value) => {
24218
24176
  onClose: () => nav.goBack(),
24219
24177
  width: "50%",
24220
24178
  visible: !!((_b = parsed == null ? void 0 : parsed.params) == null ? void 0 : _b.id),
24221
- children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props })
24179
+ children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props })
24222
24180
  }
24223
24181
  );
24224
24182
  };
24225
24183
  const EditButton = () => {
24226
24184
  const { id } = core.useParsed();
24227
- const kit = eagle.useUIKit();
24228
24185
  const { edit: edit2 } = useEdit();
24229
24186
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
24230
- kit.button,
24187
+ eagle.Button,
24231
24188
  {
24232
24189
  type: "primary",
24233
24190
  onClick: () => {
@@ -24294,11 +24251,10 @@ var __publicField = (obj, key, value) => {
24294
24251
  );
24295
24252
  }
24296
24253
  const IngressRulesComponent = ({ ingress }) => {
24297
- const kit = eagle.useUIKit();
24298
24254
  const result = ingress.flattenedRules.map((r2) => {
24299
24255
  const divider = " > ";
24300
24256
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
24301
- kit.overflowTooltip,
24257
+ eagle.OverflowTooltip,
24302
24258
  {
24303
24259
  content: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
24304
24260
  /* @__PURE__ */ jsxRuntimeExports.jsx(LinkFallback, { fullPath: r2.fullPath }),
@@ -24335,12 +24291,11 @@ var __publicField = (obj, key, value) => {
24335
24291
  id,
24336
24292
  resource
24337
24293
  } = props;
24338
- const kit = eagle.useUIKit();
24339
24294
  const go = core.useGo();
24340
24295
  const navigation = core.useNavigation();
24341
24296
  const parsed = core.useParsed();
24342
24297
  const resourceName = resource || ((_a = parsed.resource) == null ? void 0 : _a.name) || "";
24343
- return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
24298
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
24344
24299
  type: "link",
24345
24300
  onClick: () => {
24346
24301
  go({
@@ -24485,7 +24440,6 @@ var __publicField = (obj, key, value) => {
24485
24440
  isRelativeTime = true
24486
24441
  } = {}) => {
24487
24442
  const dataIndex = ["metadata", "creationTimestamp"];
24488
- const kit = eagle.useUIKit();
24489
24443
  return {
24490
24444
  key: "creationTimestamp",
24491
24445
  display: true,
@@ -24497,7 +24451,7 @@ var __publicField = (obj, key, value) => {
24497
24451
  return isRelativeTime ? /* @__PURE__ */ jsxRuntimeExports.jsx(Time, {
24498
24452
  date: new Date(value2)
24499
24453
  }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
24500
- value: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.time, {
24454
+ value: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Time, {
24501
24455
  date: value2,
24502
24456
  timeTemplate: "HH:mm:ss",
24503
24457
  dateTemplate: "YYYY-MM-DD"