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