@dovetail-v2/refine 0.0.40-bowen.5 → 0.0.40-bowen.6

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.
@@ -25,308 +25,301 @@ 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
- 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
- } }, m2 = 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: m2, z: function(t3) {
44
- var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
45
- return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(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 m3 = M2.prototype;
90
- return m3.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
- }
105
- }
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)
106
93
  return new Date(e3);
107
- }(t3), this.init();
108
- }, m3.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
- }, m3.$utils = function() {
112
- return b;
113
- }, m3.isValid = function() {
114
- return !(this.$d.toString() === l);
115
- }, m3.isSame = function(t3, e3) {
116
- var n3 = O(t3);
117
- return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
118
- }, m3.isAfter = function(t3, e3) {
119
- return O(t3) < this.startOf(e3);
120
- }, m3.isBefore = function(t3, e3) {
121
- return this.endOf(e3) < O(t3);
122
- }, m3.$g = function(t3, e3, n3) {
123
- return b.u(t3) ? this[e3] : this.set(n3, t3);
124
- }, m3.unix = function() {
125
- return Math.floor(this.valueOf() / 1e3);
126
- }, m3.valueOf = function() {
127
- return this.$d.getTime();
128
- }, m3.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, m4 = 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 ? m4 - D2 : m4 + (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
- }, m3.endOf = function(t3) {
156
- return this.startOf(t3, false);
157
- }, m3.$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
- }, m3.set = function(t3, e3) {
166
- return this.clone().$set(t3, e3);
167
- }, m3.get = function(t3) {
168
- return this[b.p(t3)]();
169
- }, m3.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, m4 = this.$d.getTime() + r3 * M3;
185
- return b.w(m4, this);
186
- }, m3.subtract = function(t3, e3) {
187
- return this.add(-1 * t3, e3);
188
- }, m3.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
- }, m3.utcOffset = function() {
256
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
257
- }, m3.diff = function(r3, d2, l2) {
258
- var $2, y2 = this, M3 = b.p(d2), m4 = O(r3), v2 = (m4.utcOffset() - this.utcOffset()) * e2, g2 = this - m4, D2 = function() {
259
- return b.m(y2, m4);
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
- }, m3.daysInMonth = function() {
291
- return this.endOf(c2).$D;
292
- }, m3.$locale = function() {
293
- return D[this.$L];
294
- }, m3.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
- }, m3.clone = function() {
300
- return b.w(this.$d, this);
301
- }, m3.toDate = function() {
302
- return new Date(this.valueOf());
303
- }, m3.toJSON = function() {
304
- return this.isValid() ? this.toISOString() : null;
305
- }, m3.toISOString = function() {
306
- return this.$d.toISOString();
307
- }, m3.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]);
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);
314
170
  };
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();
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;
246
+ }
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);
255
+ };
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;
325
318
  const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
326
319
  var zh = { exports: {} };
327
320
  (function(module, exports) {
328
321
  !function(e2, _) {
329
- module.exports = _(requireDayjs_min());
322
+ module.exports = _(dayjs_minExports);
330
323
  }(commonjsGlobal, function(e2) {
331
324
  function _(e3) {
332
325
  return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
@@ -8891,70 +8884,74 @@ const BASE_INIT_VALUE = {
8891
8884
  }
8892
8885
  };
8893
8886
  const DEPLOYMENT_INIT_VALUE = {
8894
- apiVersion: "apps/v1",
8895
- kind: "Deployment",
8896
- metadata: {
8897
- name: "example",
8898
- namespace: "default"
8887
+ "apiVersion": "apps/v1",
8888
+ "kind": "Deployment",
8889
+ "metadata": {
8890
+ "name": "example",
8891
+ "namespace": "default"
8899
8892
  },
8900
- spec: {
8901
- selector: {
8902
- matchLabels: {
8903
- app: "deployment-example"
8893
+ "spec": {
8894
+ "selector": {
8895
+ "matchLabels": {
8896
+ "app": "deployment-example"
8904
8897
  }
8905
8898
  },
8906
- replicas: 3,
8907
- template: {
8908
- metadata: {
8909
- labels: {
8910
- app: "deployment-example"
8899
+ "replicas": 3,
8900
+ "template": {
8901
+ "metadata": {
8902
+ "labels": {
8903
+ "app": "deployment-example"
8911
8904
  }
8912
8905
  },
8913
- spec: {
8914
- containers: [
8906
+ "spec": {
8907
+ "containers": [
8915
8908
  {
8916
- name: "deployment-example",
8917
- image: "registry.smtx.io/kubesmart/bitnami/nginx:1.25.2-debian-11-r2",
8918
- ports: [
8909
+ "name": "deployment-example",
8910
+ "image": "registry.smtx.io/kubesmart/bitnami/nginx:1.25.2-debian-11-r2",
8911
+ "ports": [
8919
8912
  {
8920
- containerPort: 8080,
8921
- protocol: "TCP"
8913
+ "containerPort": 8080,
8914
+ "protocol": "TCP"
8922
8915
  }
8923
8916
  ]
8924
8917
  }
8925
8918
  ]
8926
8919
  }
8927
8920
  },
8928
- strategy: {
8929
- type: "RollingUpdate",
8930
- rollingUpdate: {
8931
- maxSurge: "25%",
8932
- maxUnavailable: "25%"
8921
+ "strategy": {
8922
+ "type": "RollingUpdate",
8923
+ "rollingUpdate": {
8924
+ "maxSurge": "25%",
8925
+ "maxUnavailable": "25%"
8933
8926
  }
8934
8927
  }
8935
8928
  }
8936
8929
  };
8937
8930
  const CRONJOB_INIT_VALUE = {
8938
- apiVersion: "batch/v1",
8939
- kind: "CronJob",
8940
- metadata: {
8941
- name: "example",
8942
- namespace: "default"
8931
+ "apiVersion": "batch/v1",
8932
+ "kind": "CronJob",
8933
+ "metadata": {
8934
+ "name": "example",
8935
+ "namespace": "default"
8943
8936
  },
8944
- spec: {
8945
- schedule: "@daily",
8946
- jobTemplate: {
8947
- spec: {
8948
- template: {
8949
- spec: {
8950
- containers: [
8937
+ "spec": {
8938
+ "schedule": "@daily",
8939
+ "jobTemplate": {
8940
+ "spec": {
8941
+ "template": {
8942
+ "spec": {
8943
+ "containers": [
8951
8944
  {
8952
- name: "example",
8953
- image: "registry.smtx.io/kubesmart/alpine:3",
8954
- args: ["/bin/sh", "-c", "date; echo Hello from the Kubernetes cluster"]
8945
+ "name": "example",
8946
+ "image": "registry.smtx.io/kubesmart/alpine:3",
8947
+ "args": [
8948
+ "/bin/sh",
8949
+ "-c",
8950
+ "date; echo Hello from the Kubernetes cluster"
8951
+ ]
8955
8952
  }
8956
8953
  ],
8957
- restartPolicy: "OnFailure"
8954
+ "restartPolicy": "OnFailure"
8958
8955
  }
8959
8956
  }
8960
8957
  }
@@ -8962,32 +8959,32 @@ const CRONJOB_INIT_VALUE = {
8962
8959
  }
8963
8960
  };
8964
8961
  const DAEMONSET_INIT_VALUE = {
8965
- apiVersion: "apps/v1",
8966
- kind: "DaemonSet",
8967
- metadata: {
8968
- name: "example",
8969
- namespace: "default"
8962
+ "apiVersion": "apps/v1",
8963
+ "kind": "DaemonSet",
8964
+ "metadata": {
8965
+ "name": "example",
8966
+ "namespace": "default"
8970
8967
  },
8971
- spec: {
8972
- selector: {
8973
- matchLabels: {
8974
- app: "daemonset-example"
8968
+ "spec": {
8969
+ "selector": {
8970
+ "matchLabels": {
8971
+ "app": "daemonset-example"
8975
8972
  }
8976
8973
  },
8977
- template: {
8978
- metadata: {
8979
- labels: {
8980
- app: "daemonset-example"
8974
+ "template": {
8975
+ "metadata": {
8976
+ "labels": {
8977
+ "app": "daemonset-example"
8981
8978
  }
8982
8979
  },
8983
- spec: {
8984
- containers: [
8980
+ "spec": {
8981
+ "containers": [
8985
8982
  {
8986
- name: "daemonset-example",
8987
- image: "registry.smtx.io/kubesmart/bitnami/nginx:1.25.2-debian-11-r2",
8988
- ports: [
8983
+ "name": "daemonset-example",
8984
+ "image": "registry.smtx.io/kubesmart/bitnami/nginx:1.25.2-debian-11-r2",
8985
+ "ports": [
8989
8986
  {
8990
- containerPort: 8080
8987
+ "containerPort": 8080
8991
8988
  }
8992
8989
  ]
8993
8990
  }
@@ -8997,86 +8994,98 @@ const DAEMONSET_INIT_VALUE = {
8997
8994
  }
8998
8995
  };
8999
8996
  const JOB_INIT_VALUE = {
9000
- apiVersion: "batch/v1",
9001
- kind: "Job",
9002
- metadata: {
9003
- name: "example",
9004
- namespace: "default"
8997
+ "apiVersion": "batch/v1",
8998
+ "kind": "Job",
8999
+ "metadata": {
9000
+ "name": "example",
9001
+ "namespace": "default"
9005
9002
  },
9006
- spec: {
9007
- selector: {},
9008
- template: {
9009
- metadata: {
9010
- name: "job-example"
9003
+ "spec": {
9004
+ "selector": {},
9005
+ "template": {
9006
+ "metadata": {
9007
+ "name": "job-example"
9011
9008
  },
9012
- spec: {
9013
- containers: [
9009
+ "spec": {
9010
+ "containers": [
9014
9011
  {
9015
- name: "job-example",
9016
- image: "registry.smtx.io/kubesmart/alpine:3",
9017
- command: ["/bin/sh", "-c", "date; echo Hello from the Kubernetes cluster"]
9012
+ "name": "job-example",
9013
+ "image": "registry.smtx.io/kubesmart/alpine:3",
9014
+ "command": [
9015
+ "/bin/sh",
9016
+ "-c",
9017
+ "date; echo Hello from the Kubernetes cluster"
9018
+ ]
9018
9019
  }
9019
9020
  ],
9020
- restartPolicy: "Never"
9021
+ "restartPolicy": "Never"
9021
9022
  }
9022
9023
  }
9023
9024
  }
9024
9025
  };
9025
9026
  const STATEFULSET_INIT_VALUE = {
9026
- apiVersion: "apps/v1",
9027
- kind: "StatefulSet",
9028
- metadata: {
9029
- name: "example",
9030
- namespace: "default"
9027
+ "apiVersion": "apps/v1",
9028
+ "kind": "StatefulSet",
9029
+ "metadata": {
9030
+ "name": "example",
9031
+ "namespace": "default"
9031
9032
  },
9032
- spec: {
9033
- serviceName: "statefulset-example",
9034
- replicas: 3,
9035
- selector: {
9036
- matchLabels: {
9037
- app: "statefulset-example"
9033
+ "spec": {
9034
+ "serviceName": "statefulset-example",
9035
+ "replicas": 3,
9036
+ "selector": {
9037
+ "matchLabels": {
9038
+ "app": "statefulset-example"
9038
9039
  }
9039
9040
  },
9040
- template: {
9041
- metadata: {
9042
- labels: {
9043
- app: "statefulset-example"
9041
+ "template": {
9042
+ "metadata": {
9043
+ "labels": {
9044
+ "app": "statefulset-example"
9044
9045
  }
9045
9046
  },
9046
- spec: {
9047
- terminationGracePeriodSeconds: 10,
9048
- containers: [
9047
+ "spec": {
9048
+ "terminationGracePeriodSeconds": 10,
9049
+ "containers": [
9049
9050
  {
9050
- name: "statefulset-example",
9051
- image: "registry.smtx.io/kubesmart/fileserver:v1.0.0",
9052
- command: ["dufs"],
9053
- args: ["-A", "--render-try-index", "/data"],
9054
- ports: [
9051
+ "name": "statefulset-example",
9052
+ "image": "registry.smtx.io/kubesmart/fileserver:v1.0.0",
9053
+ "command": [
9054
+ "dufs"
9055
+ ],
9056
+ "args": [
9057
+ "-A",
9058
+ "--render-try-index",
9059
+ "/data"
9060
+ ],
9061
+ "ports": [
9055
9062
  {
9056
- containerPort: 5e3,
9057
- name: "http"
9063
+ "containerPort": 5e3,
9064
+ "name": "http"
9058
9065
  }
9059
9066
  ],
9060
- volumeMounts: [
9067
+ "volumeMounts": [
9061
9068
  {
9062
- name: "file",
9063
- mountPath: "/data"
9069
+ "name": "file",
9070
+ "mountPath": "/data"
9064
9071
  }
9065
9072
  ]
9066
9073
  }
9067
9074
  ]
9068
9075
  }
9069
9076
  },
9070
- volumeClaimTemplates: [
9077
+ "volumeClaimTemplates": [
9071
9078
  {
9072
- metadata: {
9073
- name: "file"
9079
+ "metadata": {
9080
+ "name": "file"
9074
9081
  },
9075
- spec: {
9076
- accessModes: ["ReadWriteOnce"],
9077
- resources: {
9078
- requests: {
9079
- storage: "1Gi"
9082
+ "spec": {
9083
+ "accessModes": [
9084
+ "ReadWriteOnce"
9085
+ ],
9086
+ "resources": {
9087
+ "requests": {
9088
+ "storage": "1Gi"
9080
9089
  }
9081
9090
  }
9082
9091
  }
@@ -9085,35 +9094,37 @@ const STATEFULSET_INIT_VALUE = {
9085
9094
  }
9086
9095
  };
9087
9096
  const POD_INIT_VALUE = {
9088
- apiVersion: "v1",
9089
- kind: "Pod",
9090
- metadata: {
9091
- name: "example",
9092
- namespace: "default",
9093
- labels: {
9094
- app: "example"
9097
+ "apiVersion": "v1",
9098
+ "kind": "Pod",
9099
+ "metadata": {
9100
+ "name": "example",
9101
+ "namespace": "default",
9102
+ "labels": {
9103
+ "app": "example"
9095
9104
  }
9096
9105
  },
9097
- spec: {
9098
- securityContext: {
9099
- runAsNonRoot: true,
9100
- seccompProfile: {
9101
- type: "RuntimeDefault"
9106
+ "spec": {
9107
+ "securityContext": {
9108
+ "runAsNonRoot": true,
9109
+ "seccompProfile": {
9110
+ "type": "RuntimeDefault"
9102
9111
  }
9103
9112
  },
9104
- containers: [
9113
+ "containers": [
9105
9114
  {
9106
- name: "example",
9107
- image: "registry.smtx.io/kubesmart/bitnami/nginx:1.25.2-debian-11-r2",
9108
- ports: [
9115
+ "name": "example",
9116
+ "image": "registry.smtx.io/kubesmart/bitnami/nginx:1.25.2-debian-11-r2",
9117
+ "ports": [
9109
9118
  {
9110
- containerPort: 8080
9119
+ "containerPort": 8080
9111
9120
  }
9112
9121
  ],
9113
- securityContext: {
9114
- allowPrivilegeEscalation: false,
9115
- capabilities: {
9116
- drop: ["ALL"]
9122
+ "securityContext": {
9123
+ "allowPrivilegeEscalation": false,
9124
+ "capabilities": {
9125
+ "drop": [
9126
+ "ALL"
9127
+ ]
9117
9128
  }
9118
9129
  }
9119
9130
  }
@@ -9121,143 +9132,143 @@ const POD_INIT_VALUE = {
9121
9132
  }
9122
9133
  };
9123
9134
  const SERVICE_CLUSTER_IP_INIT_VALUE = {
9124
- apiVersion: "v1",
9125
- kind: "Service",
9126
- metadata: {
9127
- name: "example",
9128
- namespace: "default"
9135
+ "apiVersion": "v1",
9136
+ "kind": "Service",
9137
+ "metadata": {
9138
+ "name": "example",
9139
+ "namespace": "default"
9129
9140
  },
9130
- spec: {
9131
- selector: {
9132
- app: "example"
9141
+ "spec": {
9142
+ "selector": {
9143
+ "app": "example"
9133
9144
  },
9134
- ports: [
9145
+ "ports": [
9135
9146
  {
9136
- name: "example",
9137
- port: 8080,
9138
- protocol: "TCP",
9139
- targetPort: 8080
9147
+ "name": "example",
9148
+ "port": 8080,
9149
+ "protocol": "TCP",
9150
+ "targetPort": 8080
9140
9151
  }
9141
9152
  ],
9142
- sessionAffinity: "None",
9143
- type: "ClusterIP"
9153
+ "sessionAffinity": "None",
9154
+ "type": "ClusterIP"
9144
9155
  }
9145
9156
  };
9146
9157
  const SERVICE_NODE_PORT_INIT_VALUE = {
9147
- apiVersion: "v1",
9148
- kind: "Service",
9149
- metadata: {
9150
- name: "example",
9151
- namespace: "default"
9158
+ "apiVersion": "v1",
9159
+ "kind": "Service",
9160
+ "metadata": {
9161
+ "name": "example",
9162
+ "namespace": "default"
9152
9163
  },
9153
- spec: {
9154
- selector: {
9155
- app: "example"
9164
+ "spec": {
9165
+ "selector": {
9166
+ "app": "example"
9156
9167
  },
9157
- ports: [
9168
+ "ports": [
9158
9169
  {
9159
- name: "example",
9160
- port: 8080,
9161
- protocol: "TCP",
9162
- targetPort: 8080
9170
+ "name": "example",
9171
+ "port": 8080,
9172
+ "protocol": "TCP",
9173
+ "targetPort": 8080
9163
9174
  }
9164
9175
  ],
9165
- sessionAffinity: "None",
9166
- type: "NodePort"
9176
+ "sessionAffinity": "None",
9177
+ "type": "NodePort"
9167
9178
  }
9168
9179
  };
9169
9180
  const SERVICE_LOAD_BALANCER_INIT_VALUE = {
9170
- apiVersion: "v1",
9171
- kind: "Service",
9172
- metadata: {
9173
- name: "example",
9174
- namespace: "default"
9181
+ "apiVersion": "v1",
9182
+ "kind": "Service",
9183
+ "metadata": {
9184
+ "name": "example",
9185
+ "namespace": "default"
9175
9186
  },
9176
- spec: {
9177
- selector: {
9178
- app: "example"
9187
+ "spec": {
9188
+ "selector": {
9189
+ "app": "example"
9179
9190
  },
9180
- ports: [
9191
+ "ports": [
9181
9192
  {
9182
- name: "example",
9183
- port: 80,
9184
- protocol: "TCP",
9185
- targetPort: 8080
9193
+ "name": "example",
9194
+ "port": 80,
9195
+ "protocol": "TCP",
9196
+ "targetPort": 8080
9186
9197
  }
9187
9198
  ],
9188
- sessionAffinity: "None",
9189
- type: "LoadBalancer"
9199
+ "sessionAffinity": "None",
9200
+ "type": "LoadBalancer"
9190
9201
  }
9191
9202
  };
9192
9203
  const SERVICE_EXTERNAL_NAME_INIT_VALUE = {
9193
- apiVersion: "v1",
9194
- kind: "Service",
9195
- metadata: {
9196
- name: "example",
9197
- namespace: "default"
9204
+ "apiVersion": "v1",
9205
+ "kind": "Service",
9206
+ "metadata": {
9207
+ "name": "example",
9208
+ "namespace": "default"
9198
9209
  },
9199
- spec: {
9200
- selector: {
9201
- app: "example"
9210
+ "spec": {
9211
+ "selector": {
9212
+ "app": "example"
9202
9213
  },
9203
- ports: [
9214
+ "ports": [
9204
9215
  {
9205
- name: "example",
9206
- port: 8080,
9207
- protocol: "TCP",
9208
- targetPort: 8080
9216
+ "name": "example",
9217
+ "port": 8080,
9218
+ "protocol": "TCP",
9219
+ "targetPort": 8080
9209
9220
  }
9210
9221
  ],
9211
- sessionAffinity: "None",
9212
- type: "ExternalName",
9213
- externalName: "app.example.com"
9222
+ "sessionAffinity": "None",
9223
+ "type": "ExternalName",
9224
+ "externalName": "app.example.com"
9214
9225
  }
9215
9226
  };
9216
9227
  const SERVICE_HEADLESS_INIT_VALUE = {
9217
- apiVersion: "v1",
9218
- kind: "Service",
9219
- metadata: {
9220
- name: "example",
9221
- namespace: "default"
9228
+ "apiVersion": "v1",
9229
+ "kind": "Service",
9230
+ "metadata": {
9231
+ "name": "example",
9232
+ "namespace": "default"
9222
9233
  },
9223
- spec: {
9224
- selector: {
9225
- app: "example"
9234
+ "spec": {
9235
+ "selector": {
9236
+ "app": "example"
9226
9237
  },
9227
- clusterIP: "None",
9228
- ports: [
9238
+ "clusterIP": "None",
9239
+ "ports": [
9229
9240
  {
9230
- name: "example",
9231
- port: null,
9232
- protocol: "TCP",
9233
- targetPort: null
9241
+ "name": "example",
9242
+ "port": null,
9243
+ "protocol": "TCP",
9244
+ "targetPort": null
9234
9245
  }
9235
9246
  ],
9236
- sessionAffinity: "None",
9237
- type: "ClusterIP"
9247
+ "sessionAffinity": "None",
9248
+ "type": "ClusterIP"
9238
9249
  }
9239
9250
  };
9240
9251
  const INGRESS_INIT_VALUE = {
9241
- apiVersion: "networking.k8s.io/v1",
9242
- kind: "Ingress",
9243
- metadata: {
9244
- name: "example",
9245
- namespace: "default"
9252
+ "apiVersion": "networking.k8s.io/v1",
9253
+ "kind": "Ingress",
9254
+ "metadata": {
9255
+ "name": "example",
9256
+ "namespace": "default"
9246
9257
  },
9247
- spec: {
9248
- rules: [
9258
+ "spec": {
9259
+ "rules": [
9249
9260
  {
9250
- host: "example.com",
9251
- http: {
9252
- paths: [
9261
+ "host": "example.com",
9262
+ "http": {
9263
+ "paths": [
9253
9264
  {
9254
- path: "/testpath",
9255
- pathType: "Prefix",
9256
- backend: {
9257
- service: {
9258
- name: "test",
9259
- port: {
9260
- number: 80
9265
+ "path": "/testpath",
9266
+ "pathType": "Prefix",
9267
+ "backend": {
9268
+ "service": {
9269
+ "name": "test",
9270
+ "port": {
9271
+ "number": 80
9261
9272
  }
9262
9273
  }
9263
9274
  }
@@ -9269,28 +9280,28 @@ const INGRESS_INIT_VALUE = {
9269
9280
  }
9270
9281
  };
9271
9282
  const NETWORK_POLICY_INIT_VALUE = {
9272
- apiVersion: "networking.k8s.io/v1",
9273
- kind: "NetworkPolicy",
9274
- metadata: {
9275
- name: "example",
9276
- namespace: "default"
9283
+ "apiVersion": "networking.k8s.io/v1",
9284
+ "kind": "NetworkPolicy",
9285
+ "metadata": {
9286
+ "name": "example",
9287
+ "namespace": "default"
9277
9288
  },
9278
- spec: {
9279
- podSelector: {},
9280
- policyTypes: []
9289
+ "spec": {
9290
+ "podSelector": {},
9291
+ "policyTypes": []
9281
9292
  }
9282
9293
  };
9283
9294
  const CONFIG_MAP_INIT_VALUE = {
9284
- apiVersion: "v1",
9285
- kind: "ConfigMap",
9286
- metadata: {
9287
- name: "example",
9288
- namespace: "default"
9295
+ "apiVersion": "v1",
9296
+ "kind": "ConfigMap",
9297
+ "metadata": {
9298
+ "name": "example",
9299
+ "namespace": "default"
9289
9300
  },
9290
- data: {
9291
- key: "value"
9301
+ "data": {
9302
+ "key": "value"
9292
9303
  },
9293
- immutable: false
9304
+ "immutable": false
9294
9305
  };
9295
9306
  const SERVER_INSTANCE_INIT_VALUE = {
9296
9307
  apiVersion: "kubesmart.smtx.io/v1alpha1",
@@ -9308,82 +9319,81 @@ const SERVER_INSTANCE_INIT_VALUE = {
9308
9319
  }
9309
9320
  }
9310
9321
  }
9311
- },
9312
- sshMethod: "password"
9322
+ }
9313
9323
  };
9314
9324
  const TIMESTAMP_LABEL = "sks.user.kubesmart.smtx.io/timestamp";
9315
9325
  const SECRET_OPAQUE_INIT_VALUE = {
9316
- apiVersion: "v1",
9317
- kind: "Secret",
9318
- metadata: {
9319
- name: "example",
9320
- namespace: "default"
9326
+ "apiVersion": "v1",
9327
+ "kind": "Secret",
9328
+ "metadata": {
9329
+ "name": "example",
9330
+ "namespace": "default"
9321
9331
  },
9322
- type: "Opaque",
9323
- data: {
9324
- key: window.btoa("value")
9332
+ "type": "Opaque",
9333
+ "data": {
9334
+ "key": window.btoa("value")
9325
9335
  }
9326
9336
  };
9327
9337
  const SECRET_IMAGE_REPO_INIT_VALUE = {
9328
- apiVersion: "v1",
9329
- kind: "Secret",
9330
- metadata: {
9331
- name: "example",
9332
- namespace: "default"
9338
+ "apiVersion": "v1",
9339
+ "kind": "Secret",
9340
+ "metadata": {
9341
+ "name": "example",
9342
+ "namespace": "default"
9333
9343
  },
9334
- type: "kubernetes.io/dockerconfigjson",
9335
- data: {
9344
+ "type": "kubernetes.io/dockerconfigjson",
9345
+ "data": {
9336
9346
  ".dockerconfigjson": ""
9337
9347
  }
9338
9348
  };
9339
9349
  const SECRET_BASIC_AUTH_INIT_VALUE = {
9340
- apiVersion: "v1",
9341
- kind: "Secret",
9342
- metadata: {
9343
- name: "example",
9344
- namespace: "default"
9350
+ "apiVersion": "v1",
9351
+ "kind": "Secret",
9352
+ "metadata": {
9353
+ "name": "example",
9354
+ "namespace": "default"
9345
9355
  },
9346
- type: "kubernetes.io/basic-auth",
9347
- data: {
9348
- username: window.btoa("example"),
9349
- password: window.btoa("example")
9356
+ "type": "kubernetes.io/basic-auth",
9357
+ "data": {
9358
+ "username": window.btoa("example"),
9359
+ "password": window.btoa("example")
9350
9360
  }
9351
9361
  };
9352
9362
  const SECRET_SSH_AUTH_INIT_VALUE = {
9353
- apiVersion: "v1",
9354
- kind: "Secret",
9355
- metadata: {
9356
- name: "example",
9357
- namespace: "default"
9363
+ "apiVersion": "v1",
9364
+ "kind": "Secret",
9365
+ "metadata": {
9366
+ "name": "example",
9367
+ "namespace": "default"
9358
9368
  },
9359
- type: "kubernetes.io/ssh-auth",
9360
- data: {
9369
+ "type": "kubernetes.io/ssh-auth",
9370
+ "data": {
9361
9371
  "ssh-publickey": "",
9362
9372
  "ssh-privatekey": ""
9363
9373
  }
9364
9374
  };
9365
9375
  const SECRET_TLS_INIT_VALUE = {
9366
- apiVersion: "v1",
9367
- kind: "Secret",
9368
- metadata: {
9369
- name: "example",
9370
- namespace: "default"
9376
+ "apiVersion": "v1",
9377
+ "kind": "Secret",
9378
+ "metadata": {
9379
+ "name": "example",
9380
+ "namespace": "default"
9371
9381
  },
9372
- type: "kubernetes.io/tls",
9373
- data: {
9382
+ "type": "kubernetes.io/tls",
9383
+ "data": {
9374
9384
  "tls.crt": "",
9375
9385
  "tls.key": ""
9376
9386
  }
9377
9387
  };
9378
9388
  const SECRET_CUSTOM_INIT_VALUE = {
9379
- apiVersion: "v1",
9380
- kind: "Secret",
9381
- metadata: {
9382
- name: "example",
9383
- namespace: "default"
9389
+ "apiVersion": "v1",
9390
+ "kind": "Secret",
9391
+ "metadata": {
9392
+ "name": "example",
9393
+ "namespace": "default"
9384
9394
  },
9385
- type: "",
9386
- data: {}
9395
+ "type": "",
9396
+ "data": {}
9387
9397
  };
9388
9398
  var WorkloadState = /* @__PURE__ */ ((WorkloadState2) => {
9389
9399
  WorkloadState2["Terminated"] = "terminated";
@@ -21680,14 +21690,15 @@ const RefineFormContent = (props) => {
21680
21690
  control,
21681
21691
  name: c2.path.join("."),
21682
21692
  rules: {
21683
- validate(value2, formValues) {
21693
+ validate(value2) {
21694
+ const formValue = getValues();
21684
21695
  if (!c2.validators || c2.validators.length === 0)
21685
21696
  return true;
21686
21697
  for (const func of c2.validators) {
21687
21698
  const {
21688
21699
  isValid,
21689
21700
  errorMsg: errorMsg2
21690
- } = func(value2, formValues);
21701
+ } = func(value2, formValue);
21691
21702
  if (!isValid)
21692
21703
  return errorMsg2;
21693
21704
  }
@@ -21705,9 +21716,6 @@ const RefineFormContent = (props) => {
21705
21716
  }) => {
21706
21717
  var _a2;
21707
21718
  const formValue = getValues();
21708
- if ((c2 == null ? void 0 : c2.renderCondition) && !c2.renderCondition(formValue)) {
21709
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
21710
- }
21711
21719
  let ele = /* @__PURE__ */ jsxRuntimeExports.jsx(Fields.String, {
21712
21720
  input: {
21713
21721
  value: value2,
@@ -22337,7 +22345,7 @@ const Separator = () => {
22337
22345
  });
22338
22346
  };
22339
22347
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
22340
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-ea7e0fe0.js"));
22348
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-915e1b64.js"));
22341
22349
  const YamlEditorComponent = forwardRef(
22342
22350
  function YamlEditorComponent2(props, ref) {
22343
22351
  const {
@@ -23081,32 +23089,12 @@ function FormModal(props) {
23081
23089
  action: id ? "edit" : "create"
23082
23090
  });
23083
23091
  })();
23084
- const saveButtonProps = useMemo(() => {
23085
- var _a2;
23086
- if (isYamlForm)
23087
- return yamlSaveButtonProps;
23088
- if (!((_a2 = config.formConfig) == null ? void 0 : _a2.transformApplyValues)) {
23089
- return refineFormResult.formResult.saveButtonProps;
23090
- }
23091
- console.log("newOnClick", refineFormResult.formResult.saveButtonProps);
23092
- const newOnClick = refineFormResult.formResult.handleSubmit((data2) => {
23093
- var _a3, _b2;
23094
- console.log("before submit", data2);
23095
- const formattedValue = (_b2 = (_a3 = config.formConfig) == null ? void 0 : _a3.transformApplyValues) == null ? void 0 : _b2.call(_a3, data2);
23096
- console.log("formattedValue", formattedValue);
23097
- refineFormResult.formResult.refineCore.onFinish(formattedValue || {});
23098
- });
23099
- return {
23100
- ...refineFormResult.formResult.saveButtonProps,
23101
- onClick: newOnClick
23102
- };
23103
- }, [config.formConfig, isYamlForm, refineFormResult.formResult, yamlSaveButtonProps]);
23092
+ const saveButtonProps = isYamlForm ? yamlSaveButtonProps : refineFormResult.formResult.saveButtonProps;
23104
23093
  const onCancel = useCallback(() => {
23105
23094
  popModal();
23106
23095
  }, []);
23107
23096
  const onOk = useCallback((e2) => {
23108
23097
  var _a2;
23109
- console.log("onOk", onOk);
23110
23098
  (_a2 = saveButtonProps.onClick) == null ? void 0 : _a2.call(saveButtonProps, e2);
23111
23099
  }, [saveButtonProps]);
23112
23100
  const errorText = (() => {
@@ -24175,20 +24163,6 @@ const Dovetail = (props) => {
24175
24163
  }
24176
24164
  ) }) }) }) });
24177
24165
  };
24178
- class ServerInstanceModel extends ResourceModel {
24179
- constructor(_rawYaml, _globalStore) {
24180
- var _a, _b, _c, _d;
24181
- super(_rawYaml, _globalStore);
24182
- __publicField(this, "sshMethod");
24183
- this._rawYaml = _rawYaml;
24184
- this._globalStore = _globalStore;
24185
- if ((_d = (_c = (_b = (_a = _rawYaml == null ? void 0 : _rawYaml.spec) == null ? void 0 : _a.address) == null ? void 0 : _b.credentials) == null ? void 0 : _c.ssh) == null ? void 0 : _d.privateKey) {
24186
- this.sshMethod = "privateKey";
24187
- } else {
24188
- this.sshMethod = "password";
24189
- }
24190
- }
24191
- }
24192
24166
  const ModelMap = {
24193
24167
  Deployment: DeploymentModel,
24194
24168
  DaemonSet: DaemonSetModel,
@@ -24199,8 +24173,7 @@ const ModelMap = {
24199
24173
  Event: EventModel,
24200
24174
  Ingress: IngressModel,
24201
24175
  NetworkPolicy: NetworkPolicyModel,
24202
- Service: ServiceModel,
24203
- ServerInstance: ServerInstanceModel
24176
+ Service: ServiceModel
24204
24177
  };
24205
24178
  class ModelPlugin {
24206
24179
  constructor() {