@kong-ui-public/entities-data-plane-nodes 0.2.38 → 0.3.0

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.
@@ -1,12 +1,11 @@
1
- var Ue = Object.defineProperty;
2
- var Be = (e, t, r) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var P = (e, t, r) => Be(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { ref as w, computed as m, unref as g, toValue as R, watch as ke, inject as Pe, defineComponent as H, openBlock as h, createBlock as T, resolveDynamicComponent as V, normalizeStyle as X, withCtx as A, createElementBlock as N, toDisplayString as k, createCommentVNode as U, pushScopeId as ee, popScopeId as te, createElementVNode as b, resolveComponent as F, Fragment as xe, createTextVNode as Z, createVNode as Q, mergeModels as De, useModel as Ke, renderList as Re } from "vue";
5
- import { createI18n as Ce, i18nTComponent as Le } from "@kong-ui-public/i18n";
6
- import fe from "axios";
7
- import "@kong/kongponents";
8
- import "vue-router";
9
- const Ve = {
1
+ var ne = Object.defineProperty;
2
+ var oe = (n, e, t) => e in n ? ne(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var N = (n, e, t) => oe(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { computed as p, toValue as D, ref as L, watch as ae, defineComponent as O, resolveComponent as x, openBlock as g, createElementBlock as $, createElementVNode as i, toDisplayString as d, unref as l, createBlock as k, Fragment as j, createTextVNode as A, createCommentVNode as q, withCtx as w, createVNode as B, resolveDynamicComponent as Q, mergeModels as le, useModel as se, renderList as re } from "vue";
5
+ import { createI18n as ie, i18nTComponent as ce } from "@kong-ui-public/i18n";
6
+ import { useErrors as ue } from "@kong-ui-public/entities-shared";
7
+ import { EqualIcon as de, ProgressIcon as ge, ClearIcon as ve, CheckCircleIcon as me } from "@kong/icons";
8
+ const _e = {
10
9
  action_button: {
11
10
  confirm: "Confirm",
12
11
  submitting: "Submitting...",
@@ -47,7 +46,7 @@ const Ve = {
47
46
  seconds: "seconds"
48
47
  },
49
48
  select_log_level_title: "Select Log Level"
50
- }, He = {
49
+ }, he = {
51
50
  debug: "Debug",
52
51
  info: "Info",
53
52
  notice: "Notice",
@@ -55,1597 +54,165 @@ const Ve = {
55
54
  error: "Error",
56
55
  crit: "Critical",
57
56
  not_applicable: "N/A"
58
- }, Ye = {
59
- modal: Ve,
60
- log_level: He
57
+ }, pe = {
58
+ modal: _e,
59
+ log_level: he
61
60
  };
62
- function re() {
63
- const e = Ce("en-us", Ye);
61
+ function P() {
62
+ const n = ie("en-us", pe);
64
63
  return {
65
- i18n: e,
66
- i18nT: Le(e)
64
+ i18n: n,
65
+ i18nT: ce(n)
67
66
  // Translation component <i18n-t>
68
67
  };
69
68
  }
70
- var K = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(K || {}), Se = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Other = "other", e))(Se || {});
71
- Object.values(Se);
72
- function Ze() {
73
- return {
74
- getAxiosInstance: (e = {}) => {
75
- try {
76
- const t = Pe("get-axios-instance", void 0);
77
- return typeof t == "function" ? t(e) : fe.create({
78
- withCredentials: !0,
79
- timeout: 3e4,
80
- ...e
81
- });
82
- } catch (t) {
83
- return console.warn("getAxiosInstance:", t.message || t), fe.create({
84
- withCredentials: !0,
85
- timeout: 3e4,
86
- ...e
87
- });
88
- }
89
- },
90
- getTraceIdFromError: (e) => {
91
- var t;
92
- return ((t = e == null ? void 0 : e.response) == null ? void 0 : t.headers["x-datadog-trace-id"]) || "";
93
- }
94
- };
95
- }
96
- function We() {
97
- return {
98
- debounce: (e, t) => {
99
- let r;
100
- return (...n) => {
101
- clearTimeout(r), r = window == null ? void 0 : window.setTimeout(() => {
102
- e(...n);
103
- }, t);
104
- };
105
- }
106
- };
107
- }
108
- function le(e = {}) {
109
- const { getAxiosInstance: t } = Ze();
110
- return {
111
- axiosInstance: t(e)
112
- };
113
- }
114
- const Ge = {
115
- actions: {
116
- copyId: "Copy ID",
117
- copied_id: 'Copied "{id}" to the clipboard',
118
- copyToClipboard: "Copied successfully!",
119
- copyToClipboardFailed: "Failed to copy to the clipboard"
120
- }
121
- }, Qe = {
122
- message: "Are you sure you want to delete this {entityType}?",
123
- messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
124
- }, Je = {
125
- actions: {
126
- viewConfiguration: "View Configuration",
127
- save: "Save",
128
- cancel: "Cancel",
129
- back: "Back"
130
- },
131
- configuration: {
132
- title: "Configuration",
133
- message: "Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",
134
- yaml: "YAML",
135
- json: "JSON",
136
- terraform: "Terraform"
137
- },
138
- errors: {
139
- edit: "The entity could not be edited at this time."
140
- }
141
- }, Xe = {
142
- emptyState: {
143
- noSearchResultsTitle: "No results found",
144
- noSearchResultsMessage: "Please adjust the criteria and try again.",
145
- noSearchResultsCtaText: "Clear"
146
- }
147
- }, et = {
148
- title: "Configuration",
149
- actions: {
150
- copy: "Copy JSON"
151
- },
152
- sections: {
153
- advanced: "Advanced",
154
- plugin: "Plugin Specific Configuration"
155
- },
156
- commonFields: {
157
- id_label: "ID",
158
- name_label: "Name",
159
- enabled_label: "Enabled",
160
- enabled_tooltip: "Enabled is FTW",
161
- updated_at_label: "Last Updated",
162
- created_at_label: "Created",
163
- tags_label: "Tags",
164
- link: "Link"
165
- },
166
- statusBadge: {
167
- enabledLabel: "Enabled",
168
- disabledLabel: "Disabled"
169
- },
170
- copy: {
171
- tooltip: "Copy {label}",
172
- success: "Copied!"
173
- },
174
- errors: {
175
- load: "The entity configuration data could not be loaded at this time.",
176
- copy: "Failed to copy to clipboard"
177
- },
178
- general: {
179
- entryTitle: "Entry {index}",
180
- structuredFormat: "Structured"
181
- }
182
- }, tt = {
183
- filterButtonText: "Filter",
184
- fieldLabel: "Filter by:",
185
- inputPlaceholder: "Enter a value",
186
- selectPlaceholder: "Select an item",
187
- applyButtonText: "Apply",
188
- clearButtonText: "Clear",
189
- clearAllButtonText: "Clear all filters"
190
- }, rt = {
191
- errors: {
192
- fetch: "Could not fetch available items",
193
- invalid: "Please select a valid value"
194
- }
195
- }, nt = {
196
- unexpected: "An unexpected error has occurred",
197
- dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
198
- }, at = {
199
- utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
200
- }, it = {
201
- enable: {
202
- title: "Enable {entityType}",
203
- message: "Are you sure you want to enable the {entityType} {entityName}?",
204
- confirmText: "Yes, enable"
205
- },
206
- disable: {
207
- title: "Disable {entityType}",
208
- message: "Are you sure you want to disable the {entityType} {entityName}?",
209
- confirmText: "Yes, disable"
210
- }
211
- }, ot = {
212
- global: Ge,
213
- deleteModal: Qe,
214
- baseForm: Je,
215
- baseTable: Xe,
216
- baseConfigCard: et,
217
- filter: tt,
218
- debouncedFilter: rt,
219
- errors: nt,
220
- validationErrors: at,
221
- toggleModal: it
222
- };
223
- function ne() {
224
- const e = Ce("en-us", ot);
225
- return {
226
- i18n: e,
227
- i18nT: Le(e)
228
- // Translation component <i18n-t>
229
- };
230
- }
231
- function Ne() {
232
- const e = (r, n) => (n == null ? void 0 : n[r]) ?? void 0, t = (r, n) => {
233
- if (r.length !== n.length) return !1;
234
- const a = /* @__PURE__ */ new Set([...r, ...n]);
235
- for (const i of a) {
236
- const o = r.filter((l) => l === i).length, s = n.filter((l) => l === i).length;
237
- if (o !== s) return !1;
238
- }
239
- return !0;
240
- };
241
- return {
242
- getPropValue: e,
243
- objectsAreEqual: (r, n, a) => {
244
- if (a) {
245
- if (Object.keys(r).length === Object.keys(n).length)
246
- for (const i in r)
247
- if (Array.isArray(r[i]) && Array.isArray(n[i])) {
248
- if (t(r[i], n[i]))
249
- continue;
250
- return !1;
251
- } else {
252
- if (r[i] === n[i])
253
- continue;
254
- return !1;
255
- }
256
- else
257
- return !1;
258
- return !0;
259
- }
260
- try {
261
- return JSON.stringify(r) === JSON.stringify(n);
262
- } catch {
263
- return !1;
264
- }
265
- },
266
- sortAlpha: (r) => (n, a) => {
267
- let i = n[r] === void 0 || n[r] === null ? "" : n[r], o = a[r] === void 0 || a[r] === null ? "" : a[r];
268
- return Array.isArray(n[r]) && (i = n[r][0]), Array.isArray(a[r]) && (o = a[r][0]), i.localeCompare(o);
269
- },
270
- isValidUuid: (r) => r ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(r) : !1
271
- };
272
- }
273
- function st(e, t, r, n = {
274
- fetchedItemsKey: "data",
275
- searchKeys: ["id"]
276
- }) {
277
- r || (r = "1000");
278
- const { axiosInstance: a } = le(e.axiosRequestConfig), { i18n: { t: i } } = ne(), { debounce: o } = We(), s = o(async (y) => {
279
- await oe(y);
280
- }, 200), l = w(!1), f = w(""), c = w(""), d = w([]), u = w([]), p = w(void 0), _ = m(() => {
281
- const y = `${e.apiBaseUrl}${g(t)}`;
282
- return e.app === "konnect" ? y.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? y.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : y;
283
- }), { isValidUuid: $ } = Ne(), ie = async () => {
284
- try {
285
- l.value = !0;
286
- const { data: y } = await a.get(`${_.value}?size=${r}`);
287
- y != null && y.next || (p.value = n.fetchedItemsKey in y ? y[n.fetchedItemsKey] : []), u.value = n.fetchedItemsKey in y ? y[n.fetchedItemsKey] : [], d.value = u.value;
288
- } catch {
289
- d.value = [], f.value = i("debouncedFilter.errors.fetch");
290
- } finally {
291
- l.value = !1;
292
- }
293
- }, B = w(""), oe = async (y) => {
294
- var Y, G, I;
295
- if (B.value !== y) {
296
- if (B.value = y ?? "", !y) {
297
- d.value = u.value;
298
- return;
299
- }
300
- if (p.value === void 0)
301
- try {
302
- if (l.value = !0, f.value = "", c.value = "", e.app === "konnect") {
303
- const v = `${_.value}/${y}`, { data: S } = await a.get(`${v}?size=${r}`);
304
- n.fetchedItemsKey in S ? d.value = S[n.fetchedItemsKey] : S != null && S[n.exactMatchKey ?? "id"] ? d.value = [S] : d.value = [];
305
- } else {
306
- const v = [];
307
- $(y) && n.searchKeys.includes("id") ? v.push((async () => {
308
- const { data: x } = await a.get(`${_.value}/${y}`);
309
- return [x[n.fetchedItemsKey] ?? x];
310
- })()) : v.push(
311
- ...n.searchKeys.filter((x) => x !== "id").map(async (x) => {
312
- const { data: E } = await a.get(`${_.value}?${x}=${y}`);
313
- return E[n.fetchedItemsKey];
314
- })
315
- );
316
- const S = await Promise.all(v), j = /* @__PURE__ */ new Set();
317
- d.value = [], (Y = S == null ? void 0 : S.forEach) == null || Y.call(S, (x) => {
318
- var E;
319
- (E = x == null ? void 0 : x.forEach) == null || E.call(x, (L) => {
320
- j.has(L.id) || (j.add(L.id), d.value.push(L));
321
- });
322
- });
323
- }
324
- } catch (v) {
325
- ((G = v == null ? void 0 : v.response) == null ? void 0 : G.status) === 404 ? c.value = i("debouncedFilter.errors.invalid") : (d.value = [], f.value = i("debouncedFilter.errors.fetch"));
326
- } finally {
327
- l.value = !1;
328
- }
329
- else
330
- l.value = !0, c.value = "", d.value = (I = p.value) == null ? void 0 : I.filter((v) => {
331
- var S;
332
- let j = !1;
333
- for (const x of n.searchKeys) {
334
- const E = typeof v[x] == "string" ? (S = v[x]) == null ? void 0 : S.toLowerCase() : v[x];
335
- E != null && E.includes(y.toLowerCase()) && (j = !0);
336
- }
337
- return j;
338
- }), (!d.value || !d.value.length) && (c.value = i("debouncedFilter.errors.invalid")), l.value = !1;
339
- }
340
- };
341
- return {
342
- loading: l,
343
- error: f,
344
- validationError: c,
345
- results: d,
346
- allRecords: p,
347
- loadItems: ie,
348
- debouncedQueryChange: s
349
- };
350
- }
351
- function lt(e, t) {
352
- const r = g(t), n = m(
353
- () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r)
354
- );
355
- return n.value.search = "", (a) => `${n.value.href}/${a}`;
356
- }
357
- function ut() {
358
- const { i18n: { t: e } } = ne();
359
- return {
360
- getMessageFromError: (t) => {
361
- var r, n, a, i;
362
- if (!t)
363
- return e("errors.unexpected");
364
- if (((r = t == null ? void 0 : t.response) == null ? void 0 : r.status) === 401)
365
- return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."), "";
366
- if ((n = t == null ? void 0 : t.response) != null && n.data) {
367
- if (t.response.data.detail)
368
- return t.response.data.detail;
369
- if ((a = t.response.data.details) != null && a.length)
370
- return t.response.data.details.map((o) => {
371
- let s = e("errors.unexpected");
372
- return o.messages && typeof o.messages == "object" && o.messages.length && (s = o.messages.join(", ")), o.field ? `${o.field} - ${s}` : s;
373
- }).join("; ");
374
- if (t.response.data.message) {
375
- const { message: o } = t.response.data;
376
- return Array.isArray(o) ? (i = o[0]) != null && i.constraints ? Object.values(o[0].constraints)[0] : o[0] : o;
377
- }
378
- if (typeof t.response.data == "string")
379
- return t.response.data;
380
- if (typeof t.response.data == "object")
381
- return Object.keys(t.response.data).map((o) => `${o} ${t.response.data[o]}`).join(", ");
382
- }
383
- return t.message || e("errors.unexpected");
384
- }
385
- };
386
- }
387
- function ct(e) {
388
- const t = window.location.origin, r = t.endsWith("/") ? t : `${t}/`;
389
- try {
390
- const n = e.join("/"), a = `${r}${n}`, i = e.some((o) => o.trim() === "");
391
- if (/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(a) && !i && new URL(a))
392
- return `${r}${n}`;
393
- throw new Error("Invalid url");
394
- } catch (n) {
395
- return console.warn("Failed to build valid URL:", n), "";
396
- }
397
- }
398
- function Ie(e, t) {
399
- const r = w(g(e)), n = w(g(t)), a = m(
400
- () => !!(r.value.app === "konnect" || r.value.isExactMatch)
401
- ), i = m(
402
- () => n.value.startsWith("/") ? new URL(`${window.location.origin}${n.value}`) : new URL(n.value)
403
- );
404
- return (o) => {
405
- const { page: s, pageSize: l, offset: f, sortColumnKey: c, sortColumnOrder: d, query: u } = o;
406
- try {
407
- let p = new URL(i.value.href);
408
- return a.value && u ? (p.search = "", p = r.value.isExactMatch ? new URL(`${p.href}/${u}/`) : new URL(`${p.href}?filter[name][contains]=${u}`)) : (a.value || new URLSearchParams(u).forEach((_, $) => {
409
- p.searchParams.append($, _);
410
- }), c && p.searchParams.append("sort_by", c), d === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(l))), f && s !== 1 && p.searchParams.append("offset", String(f)), p.href;
411
- } catch (p) {
412
- return console.error("RouteList(fetcher)", p), n.value;
413
- }
414
- };
415
- }
416
- function dt(e, t, r) {
417
- const n = g(t), { axiosInstance: a } = le(e.axiosRequestConfig), i = Ie(e, n), o = w({
418
- status: K.Idle
419
- });
420
- return { fetcher: async (s) => {
421
- var l;
422
- const f = R(r) || "data";
423
- try {
424
- o.value = { status: K.Loading };
425
- let c = i(s);
426
- c.includes("filter[name]") && (c = `${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);
427
- const d = await a.get(c);
428
- if (d.status >= 400)
429
- throw d;
430
- const u = d.data, p = f && f.replace(/[^\w-_]/gi, "");
431
- let _;
432
- u[p] ? _ = Array.isArray(u[p]) ? u[p] : [u[p]] : Array.isArray(u) ? _ = u : _ = Object.keys(u).length ? [u] : [];
433
- const $ = {
434
- data: _,
435
- total: _.length,
436
- ...u.offset ? {
437
- pagination: {
438
- offset: u.offset
439
- }
440
- } : null
441
- };
442
- return o.value = {
443
- status: K.Idle,
444
- response: $
445
- }, $;
446
- } catch (c) {
447
- const d = {
448
- data: [],
449
- total: 0
450
- };
451
- return s.query && (((l = c.response) == null ? void 0 : l.status) === 404 || c.status === 404) ? (o.value = {
452
- status: K.NoResults,
453
- response: d,
454
- error: c.response ? c : { response: c }
455
- }, d) : (o.value = {
456
- status: K.Error,
457
- response: d,
458
- error: c.response ? c : { response: c }
459
- }, d);
460
- }
461
- }, fetcherState: o };
462
- }
463
- function pt() {
464
- const e = (r, n = "_") => r ? r.split(n).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
465
- return {
466
- capitalize: (r) => r ? r.replace(t, (n) => n.toUpperCase()) : "",
467
- convertKeyToTitle: e
468
- };
469
- }
470
- const Te = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ge = (e) => {
471
- if (typeof e != "string")
472
- throw new TypeError("Invalid argument expected string");
473
- const t = e.match(Te);
474
- if (!t)
475
- throw new Error(`Invalid argument not valid semver ('${e}' received)`);
476
- return t.shift(), t;
477
- }, he = (e) => e === "*" || e === "x" || e === "X", ve = (e) => {
478
- const t = parseInt(e, 10);
479
- return isNaN(t) ? e : t;
480
- }, ft = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], gt = (e, t) => {
481
- if (he(e) || he(t))
482
- return 0;
483
- const [r, n] = ft(ve(e), ve(t));
484
- return r > n ? 1 : r < n ? -1 : 0;
485
- }, me = (e, t) => {
486
- for (let r = 0; r < Math.max(e.length, t.length); r++) {
487
- const n = gt(e[r] || "0", t[r] || "0");
488
- if (n !== 0)
489
- return n;
490
- }
491
- return 0;
492
- }, ht = (e, t) => {
493
- const r = ge(e), n = ge(t), a = r.pop(), i = n.pop(), o = me(r, n);
494
- return o !== 0 ? o : a && i ? me(a.split("."), i.split(".")) : a || i ? a ? -1 : 1 : 0;
495
- }, ye = (e, t, r) => {
496
- vt(r);
497
- const n = ht(e, t);
498
- return Ae[r].includes(n);
499
- }, Ae = {
500
- ">": [1],
501
- ">=": [0, 1],
502
- "=": [0],
503
- "<=": [-1, 0],
504
- "<": [-1],
505
- "!=": [-1, 1]
506
- }, be = Object.keys(Ae), vt = (e) => {
507
- if (typeof e != "string")
508
- throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
509
- if (be.indexOf(e) === -1)
510
- throw new Error(`Invalid operator, expected one of ${be.join("|")}`);
511
- }, mt = (e) => typeof e == "string" && /^[v\d]/.test(e) && Te.test(e);
512
- function yt(e) {
513
- const { gatewayInfo: t, supportedRange: r } = e;
514
- if (!t)
515
- return !0;
516
- const { edition: n, version: a } = t;
517
- if (!mt(a))
518
- return console.error("Invalid version"), !1;
519
- const i = r[n];
520
- if (!i)
521
- return !1;
522
- const [o, s] = i;
523
- return !(o && ye(a, o, "<") || s && ye(a, s, ">"));
524
- }
525
- function bt(e) {
526
- const t = w(0), r = w(0), n = w(!1);
527
- return ke(e, (a) => {
528
- a && !n.value && (t.value = a.offsetWidth, r.value = a.scrollWidth, n.value = !0);
529
- }), {
530
- isTruncated: m(() => t.value < r.value)
531
- };
532
- }
533
- function wt() {
534
- const { i18n: { t: e } } = ne();
535
- return {
536
- utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
537
- };
538
- }
539
- const _t = {
540
- useAxios: le,
541
- useDebouncedFilter: st,
542
- useDeleteUrlBuilder: lt,
543
- useErrors: ut,
544
- useExternalLinkCreator: ct,
545
- useFetcher: dt,
546
- useFetchUrlBuilder: Ie,
547
- useHelpers: Ne,
548
- useStringHelpers: pt,
549
- useI18n: ne,
550
- useGatewayFeatureSupported: yt,
551
- useTruncationDetector: bt,
552
- useValidators: wt
553
- };
554
- /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
555
- function $e(e) {
556
- return typeof e > "u" || e === null;
557
- }
558
- function kt(e) {
559
- return typeof e == "object" && e !== null;
560
- }
561
- function xt(e) {
562
- return Array.isArray(e) ? e : $e(e) ? [] : [e];
563
- }
564
- function Ct(e, t) {
565
- var r, n, a, i;
566
- if (t)
567
- for (i = Object.keys(t), r = 0, n = i.length; r < n; r += 1)
568
- a = i[r], e[a] = t[a];
569
- return e;
570
- }
571
- function Lt(e, t) {
572
- var r = "", n;
573
- for (n = 0; n < t; n += 1)
574
- r += e;
575
- return r;
576
- }
577
- function St(e) {
578
- return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
579
- }
580
- var Nt = $e, It = kt, Tt = xt, At = Lt, $t = St, Et = Ct, ue = {
581
- isNothing: Nt,
582
- isObject: It,
583
- toArray: Tt,
584
- repeat: At,
585
- isNegativeZero: $t,
586
- extend: Et
587
- };
588
- function Ee(e, t) {
589
- var r = "", n = e.reason || "(unknown reason)";
590
- return e.mark ? (e.mark.name && (r += 'in "' + e.mark.name + '" '), r += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (r += `
591
-
592
- ` + e.mark.snippet), n + " " + r) : n;
593
- }
594
- function W(e, t) {
595
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Ee(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
596
- }
597
- W.prototype = Object.create(Error.prototype);
598
- W.prototype.constructor = W;
599
- W.prototype.toString = function(e) {
600
- return this.name + ": " + Ee(this, e);
601
- };
602
- var z = W, Ot = [
603
- "kind",
604
- "multi",
605
- "resolve",
606
- "construct",
607
- "instanceOf",
608
- "predicate",
609
- "represent",
610
- "representName",
611
- "defaultStyle",
612
- "styleAliases"
613
- ], jt = [
614
- "scalar",
615
- "sequence",
616
- "mapping"
617
- ];
618
- function qt(e) {
619
- var t = {};
620
- return e !== null && Object.keys(e).forEach(function(r) {
621
- e[r].forEach(function(n) {
622
- t[String(n)] = r;
623
- });
624
- }), t;
625
- }
626
- function Mt(e, t) {
627
- if (t = t || {}, Object.keys(t).forEach(function(r) {
628
- if (Ot.indexOf(r) === -1)
629
- throw new z('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
630
- }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
631
- return !0;
632
- }, this.construct = t.construct || function(r) {
633
- return r;
634
- }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = qt(t.styleAliases || null), jt.indexOf(this.kind) === -1)
635
- throw new z('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
636
- }
637
- var C = Mt;
638
- function we(e, t) {
639
- var r = [];
640
- return e[t].forEach(function(n) {
641
- var a = r.length;
642
- r.forEach(function(i, o) {
643
- i.tag === n.tag && i.kind === n.kind && i.multi === n.multi && (a = o);
644
- }), r[a] = n;
645
- }), r;
646
- }
647
- function zt() {
648
- var e = {
649
- scalar: {},
650
- sequence: {},
651
- mapping: {},
652
- fallback: {},
653
- multi: {
654
- scalar: [],
655
- sequence: [],
656
- mapping: [],
657
- fallback: []
658
- }
659
- }, t, r;
660
- function n(a) {
661
- a.multi ? (e.multi[a.kind].push(a), e.multi.fallback.push(a)) : e[a.kind][a.tag] = e.fallback[a.tag] = a;
662
- }
663
- for (t = 0, r = arguments.length; t < r; t += 1)
664
- arguments[t].forEach(n);
665
- return e;
666
- }
667
- function se(e) {
668
- return this.extend(e);
669
- }
670
- se.prototype.extend = function(e) {
671
- var t = [], r = [];
672
- if (e instanceof C)
673
- r.push(e);
674
- else if (Array.isArray(e))
675
- r = r.concat(e);
676
- else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
677
- e.implicit && (t = t.concat(e.implicit)), e.explicit && (r = r.concat(e.explicit));
678
- else
679
- throw new z("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
680
- t.forEach(function(a) {
681
- if (!(a instanceof C))
682
- throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
683
- if (a.loadKind && a.loadKind !== "scalar")
684
- throw new z("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
685
- if (a.multi)
686
- throw new z("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
687
- }), r.forEach(function(a) {
688
- if (!(a instanceof C))
689
- throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
690
- });
691
- var n = Object.create(se.prototype);
692
- return n.implicit = (this.implicit || []).concat(t), n.explicit = (this.explicit || []).concat(r), n.compiledImplicit = we(n, "implicit"), n.compiledExplicit = we(n, "explicit"), n.compiledTypeMap = zt(n.compiledImplicit, n.compiledExplicit), n;
693
- };
694
- var Ft = se, Ut = new C("tag:yaml.org,2002:str", {
695
- kind: "scalar",
696
- construct: function(e) {
697
- return e !== null ? e : "";
698
- }
699
- }), Bt = new C("tag:yaml.org,2002:seq", {
700
- kind: "sequence",
701
- construct: function(e) {
702
- return e !== null ? e : [];
703
- }
704
- }), Pt = new C("tag:yaml.org,2002:map", {
705
- kind: "mapping",
706
- construct: function(e) {
707
- return e !== null ? e : {};
708
- }
709
- }), Dt = new Ft({
710
- explicit: [
711
- Ut,
712
- Bt,
713
- Pt
714
- ]
715
- });
716
- function Kt(e) {
717
- if (e === null) return !0;
718
- var t = e.length;
719
- return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
720
- }
721
- function Rt() {
722
- return null;
723
- }
724
- function Vt(e) {
725
- return e === null;
726
- }
727
- var Ht = new C("tag:yaml.org,2002:null", {
728
- kind: "scalar",
729
- resolve: Kt,
730
- construct: Rt,
731
- predicate: Vt,
732
- represent: {
733
- canonical: function() {
734
- return "~";
735
- },
736
- lowercase: function() {
737
- return "null";
738
- },
739
- uppercase: function() {
740
- return "NULL";
741
- },
742
- camelcase: function() {
743
- return "Null";
744
- },
745
- empty: function() {
746
- return "";
747
- }
748
- },
749
- defaultStyle: "lowercase"
750
- });
751
- function Yt(e) {
752
- if (e === null) return !1;
753
- var t = e.length;
754
- return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
755
- }
756
- function Zt(e) {
757
- return e === "true" || e === "True" || e === "TRUE";
758
- }
759
- function Wt(e) {
760
- return Object.prototype.toString.call(e) === "[object Boolean]";
761
- }
762
- var Gt = new C("tag:yaml.org,2002:bool", {
763
- kind: "scalar",
764
- resolve: Yt,
765
- construct: Zt,
766
- predicate: Wt,
767
- represent: {
768
- lowercase: function(e) {
769
- return e ? "true" : "false";
770
- },
771
- uppercase: function(e) {
772
- return e ? "TRUE" : "FALSE";
773
- },
774
- camelcase: function(e) {
775
- return e ? "True" : "False";
776
- }
777
- },
778
- defaultStyle: "lowercase"
779
- });
780
- function Qt(e) {
781
- return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
782
- }
783
- function Jt(e) {
784
- return 48 <= e && e <= 55;
785
- }
786
- function Xt(e) {
787
- return 48 <= e && e <= 57;
788
- }
789
- function er(e) {
790
- if (e === null) return !1;
791
- var t = e.length, r = 0, n = !1, a;
792
- if (!t) return !1;
793
- if (a = e[r], (a === "-" || a === "+") && (a = e[++r]), a === "0") {
794
- if (r + 1 === t) return !0;
795
- if (a = e[++r], a === "b") {
796
- for (r++; r < t; r++)
797
- if (a = e[r], a !== "_") {
798
- if (a !== "0" && a !== "1") return !1;
799
- n = !0;
800
- }
801
- return n && a !== "_";
802
- }
803
- if (a === "x") {
804
- for (r++; r < t; r++)
805
- if (a = e[r], a !== "_") {
806
- if (!Qt(e.charCodeAt(r))) return !1;
807
- n = !0;
808
- }
809
- return n && a !== "_";
810
- }
811
- if (a === "o") {
812
- for (r++; r < t; r++)
813
- if (a = e[r], a !== "_") {
814
- if (!Jt(e.charCodeAt(r))) return !1;
815
- n = !0;
816
- }
817
- return n && a !== "_";
818
- }
819
- }
820
- if (a === "_") return !1;
821
- for (; r < t; r++)
822
- if (a = e[r], a !== "_") {
823
- if (!Xt(e.charCodeAt(r)))
824
- return !1;
825
- n = !0;
826
- }
827
- return !(!n || a === "_");
828
- }
829
- function tr(e) {
830
- var t = e, r = 1, n;
831
- if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), n = t[0], (n === "-" || n === "+") && (n === "-" && (r = -1), t = t.slice(1), n = t[0]), t === "0") return 0;
832
- if (n === "0") {
833
- if (t[1] === "b") return r * parseInt(t.slice(2), 2);
834
- if (t[1] === "x") return r * parseInt(t.slice(2), 16);
835
- if (t[1] === "o") return r * parseInt(t.slice(2), 8);
836
- }
837
- return r * parseInt(t, 10);
838
- }
839
- function rr(e) {
840
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ue.isNegativeZero(e);
841
- }
842
- var nr = new C("tag:yaml.org,2002:int", {
843
- kind: "scalar",
844
- resolve: er,
845
- construct: tr,
846
- predicate: rr,
847
- represent: {
848
- binary: function(e) {
849
- return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
850
- },
851
- octal: function(e) {
852
- return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
853
- },
854
- decimal: function(e) {
855
- return e.toString(10);
856
- },
857
- /* eslint-disable max-len */
858
- hexadecimal: function(e) {
859
- return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
860
- }
861
- },
862
- defaultStyle: "decimal",
863
- styleAliases: {
864
- binary: [2, "bin"],
865
- octal: [8, "oct"],
866
- decimal: [10, "dec"],
867
- hexadecimal: [16, "hex"]
868
- }
869
- }), ar = new RegExp(
870
- // 2.5e4, 2.5 and integers
871
- "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
872
- );
873
- function ir(e) {
874
- return !(e === null || !ar.test(e) || // Quick hack to not allow integers end with `_`
875
- // Probably should update regexp & check speed
876
- e[e.length - 1] === "_");
877
- }
878
- function or(e) {
879
- var t, r;
880
- return t = e.replace(/_/g, "").toLowerCase(), r = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : r * parseFloat(t, 10);
881
- }
882
- var sr = /^[-+]?[0-9]+e/;
883
- function lr(e, t) {
884
- var r;
885
- if (isNaN(e))
886
- switch (t) {
887
- case "lowercase":
888
- return ".nan";
889
- case "uppercase":
890
- return ".NAN";
891
- case "camelcase":
892
- return ".NaN";
893
- }
894
- else if (Number.POSITIVE_INFINITY === e)
895
- switch (t) {
896
- case "lowercase":
897
- return ".inf";
898
- case "uppercase":
899
- return ".INF";
900
- case "camelcase":
901
- return ".Inf";
902
- }
903
- else if (Number.NEGATIVE_INFINITY === e)
904
- switch (t) {
905
- case "lowercase":
906
- return "-.inf";
907
- case "uppercase":
908
- return "-.INF";
909
- case "camelcase":
910
- return "-.Inf";
911
- }
912
- else if (ue.isNegativeZero(e))
913
- return "-0.0";
914
- return r = e.toString(10), sr.test(r) ? r.replace("e", ".e") : r;
915
- }
916
- function ur(e) {
917
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ue.isNegativeZero(e));
918
- }
919
- var cr = new C("tag:yaml.org,2002:float", {
920
- kind: "scalar",
921
- resolve: ir,
922
- construct: or,
923
- predicate: ur,
924
- represent: lr,
925
- defaultStyle: "lowercase"
926
- }), dr = Dt.extend({
927
- implicit: [
928
- Ht,
929
- Gt,
930
- nr,
931
- cr
932
- ]
933
- }), pr = dr, Oe = new RegExp(
934
- "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
935
- ), je = new RegExp(
936
- "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
937
- );
938
- function fr(e) {
939
- return e === null ? !1 : Oe.exec(e) !== null || je.exec(e) !== null;
940
- }
941
- function gr(e) {
942
- var t, r, n, a, i, o, s, l = 0, f = null, c, d, u;
943
- if (t = Oe.exec(e), t === null && (t = je.exec(e)), t === null) throw new Error("Date resolve error");
944
- if (r = +t[1], n = +t[2] - 1, a = +t[3], !t[4])
945
- return new Date(Date.UTC(r, n, a));
946
- if (i = +t[4], o = +t[5], s = +t[6], t[7]) {
947
- for (l = t[7].slice(0, 3); l.length < 3; )
948
- l += "0";
949
- l = +l;
950
- }
951
- return t[9] && (c = +t[10], d = +(t[11] || 0), f = (c * 60 + d) * 6e4, t[9] === "-" && (f = -f)), u = new Date(Date.UTC(r, n, a, i, o, s, l)), f && u.setTime(u.getTime() - f), u;
952
- }
953
- function hr(e) {
954
- return e.toISOString();
955
- }
956
- var vr = new C("tag:yaml.org,2002:timestamp", {
957
- kind: "scalar",
958
- resolve: fr,
959
- construct: gr,
960
- instanceOf: Date,
961
- represent: hr
962
- });
963
- function mr(e) {
964
- return e === "<<" || e === null;
965
- }
966
- var yr = new C("tag:yaml.org,2002:merge", {
967
- kind: "scalar",
968
- resolve: mr
969
- }), ce = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
970
- \r`;
971
- function br(e) {
972
- if (e === null) return !1;
973
- var t, r, n = 0, a = e.length, i = ce;
974
- for (r = 0; r < a; r++)
975
- if (t = i.indexOf(e.charAt(r)), !(t > 64)) {
976
- if (t < 0) return !1;
977
- n += 6;
978
- }
979
- return n % 8 === 0;
980
- }
981
- function wr(e) {
982
- var t, r, n = e.replace(/[\r\n=]/g, ""), a = n.length, i = ce, o = 0, s = [];
983
- for (t = 0; t < a; t++)
984
- t % 4 === 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | i.indexOf(n.charAt(t));
985
- return r = a % 4 * 6, r === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : r === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : r === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
986
- }
987
- function _r(e) {
988
- var t = "", r = 0, n, a, i = e.length, o = ce;
989
- for (n = 0; n < i; n++)
990
- n % 3 === 0 && n && (t += o[r >> 18 & 63], t += o[r >> 12 & 63], t += o[r >> 6 & 63], t += o[r & 63]), r = (r << 8) + e[n];
991
- return a = i % 3, a === 0 ? (t += o[r >> 18 & 63], t += o[r >> 12 & 63], t += o[r >> 6 & 63], t += o[r & 63]) : a === 2 ? (t += o[r >> 10 & 63], t += o[r >> 4 & 63], t += o[r << 2 & 63], t += o[64]) : a === 1 && (t += o[r >> 2 & 63], t += o[r << 4 & 63], t += o[64], t += o[64]), t;
992
- }
993
- function kr(e) {
994
- return Object.prototype.toString.call(e) === "[object Uint8Array]";
995
- }
996
- var xr = new C("tag:yaml.org,2002:binary", {
997
- kind: "scalar",
998
- resolve: br,
999
- construct: wr,
1000
- predicate: kr,
1001
- represent: _r
1002
- }), Cr = Object.prototype.hasOwnProperty, Lr = Object.prototype.toString;
1003
- function Sr(e) {
1004
- if (e === null) return !0;
1005
- var t = [], r, n, a, i, o, s = e;
1006
- for (r = 0, n = s.length; r < n; r += 1) {
1007
- if (a = s[r], o = !1, Lr.call(a) !== "[object Object]") return !1;
1008
- for (i in a)
1009
- if (Cr.call(a, i))
1010
- if (!o) o = !0;
1011
- else return !1;
1012
- if (!o) return !1;
1013
- if (t.indexOf(i) === -1) t.push(i);
1014
- else return !1;
1015
- }
1016
- return !0;
1017
- }
1018
- function Nr(e) {
1019
- return e !== null ? e : [];
1020
- }
1021
- var Ir = new C("tag:yaml.org,2002:omap", {
1022
- kind: "sequence",
1023
- resolve: Sr,
1024
- construct: Nr
1025
- }), Tr = Object.prototype.toString;
1026
- function Ar(e) {
1027
- if (e === null) return !0;
1028
- var t, r, n, a, i, o = e;
1029
- for (i = new Array(o.length), t = 0, r = o.length; t < r; t += 1) {
1030
- if (n = o[t], Tr.call(n) !== "[object Object]" || (a = Object.keys(n), a.length !== 1)) return !1;
1031
- i[t] = [a[0], n[a[0]]];
1032
- }
1033
- return !0;
1034
- }
1035
- function $r(e) {
1036
- if (e === null) return [];
1037
- var t, r, n, a, i, o = e;
1038
- for (i = new Array(o.length), t = 0, r = o.length; t < r; t += 1)
1039
- n = o[t], a = Object.keys(n), i[t] = [a[0], n[a[0]]];
1040
- return i;
1041
- }
1042
- var Er = new C("tag:yaml.org,2002:pairs", {
1043
- kind: "sequence",
1044
- resolve: Ar,
1045
- construct: $r
1046
- }), Or = Object.prototype.hasOwnProperty;
1047
- function jr(e) {
1048
- if (e === null) return !0;
1049
- var t, r = e;
1050
- for (t in r)
1051
- if (Or.call(r, t) && r[t] !== null)
1052
- return !1;
1053
- return !0;
1054
- }
1055
- function qr(e) {
1056
- return e !== null ? e : {};
1057
- }
1058
- var Mr = new C("tag:yaml.org,2002:set", {
1059
- kind: "mapping",
1060
- resolve: jr,
1061
- construct: qr
1062
- });
1063
- pr.extend({
1064
- implicit: [
1065
- vr,
1066
- yr
1067
- ],
1068
- explicit: [
1069
- xr,
1070
- Ir,
1071
- Er,
1072
- Mr
1073
- ]
1074
- });
1075
- function _e(e) {
1076
- return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1077
- ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1078
- }
1079
- var zr = new Array(256), Fr = new Array(256);
1080
- for (var D = 0; D < 256; D++)
1081
- zr[D] = _e(D) ? 1 : 0, Fr[D] = _e(D);
1082
- const Ur = [];
1083
- for (let e = 0; e < 256; ++e)
1084
- Ur.push((e + 256).toString(16).slice(1));
1085
- typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1086
- const { useAxios: Rn, useDeleteUrlBuilder: Vn, useErrors: Br, useExternalLinkCreator: Hn, useFetchUrlBuilder: Yn, useFetcher: Zn, useDebouncedFilter: Wn, useStringHelpers: Gn, useHelpers: Qn, useGatewayFeatureSupported: Jn, useTruncationDetector: Xn, useValidators: ea } = _t;
1087
- var O = /* @__PURE__ */ ((e) => (e.Debug = "debug", e.Info = "info", e.Notice = "notice", e.Warn = "warn", e.Error = "error", e.Critical = "crit", e))(O || {});
1088
- class Pr {
1089
- constructor(t) {
1090
- P(this, "concurrentTokenSet", /* @__PURE__ */ new Set());
1091
- P(this, "concurrentTokenBorrowQueue", []);
1092
- for (let r = 0; r < t; ++r)
1093
- this.concurrentTokenSet.add(Symbol(`token-${r}`));
69
+ var b = /* @__PURE__ */ ((n) => (n.Debug = "debug", n.Info = "info", n.Notice = "notice", n.Warn = "warn", n.Error = "error", n.Critical = "crit", n))(b || {});
70
+ class fe {
71
+ constructor(e) {
72
+ N(this, "concurrentTokenSet", /* @__PURE__ */ new Set());
73
+ N(this, "concurrentTokenBorrowQueue", []);
74
+ for (let t = 0; t < e; ++t)
75
+ this.concurrentTokenSet.add(Symbol(`token-${t}`));
1094
76
  }
1095
77
  hasAvailableConcurrentToken() {
1096
78
  return this.concurrentTokenSet.size > 0;
1097
79
  }
1098
80
  borrowConcurrentToken() {
1099
81
  if (this.concurrentTokenSet.size > 0) {
1100
- const t = this.concurrentTokenSet.values().next().value;
1101
- return this.concurrentTokenSet.delete(t), () => {
1102
- this.returnConcurrentToken(t);
82
+ const e = this.concurrentTokenSet.values().next().value;
83
+ return this.concurrentTokenSet.delete(e), () => {
84
+ this.returnConcurrentToken(e);
1103
85
  };
1104
86
  }
1105
87
  throw new Error("BUG: No available token to borrow");
1106
88
  }
1107
- returnConcurrentToken(t) {
1108
- if (this.concurrentTokenSet.has(t))
89
+ returnConcurrentToken(e) {
90
+ if (this.concurrentTokenSet.has(e))
1109
91
  throw new Error("Token already returned");
1110
- const r = this.concurrentTokenBorrowQueue.shift();
1111
- r ? r[0](() => this.returnConcurrentToken(t)) : this.concurrentTokenSet.add(t);
92
+ const t = this.concurrentTokenBorrowQueue.shift();
93
+ t ? t[0](() => this.returnConcurrentToken(e)) : this.concurrentTokenSet.add(e);
1112
94
  }
1113
95
  async borrowToken() {
1114
- return this.hasAvailableConcurrentToken() ? this.borrowConcurrentToken() : new Promise((t, r) => {
1115
- this.concurrentTokenBorrowQueue.push([t, r]);
96
+ return this.hasAvailableConcurrentToken() ? this.borrowConcurrentToken() : new Promise((e, t) => {
97
+ this.concurrentTokenBorrowQueue.push([e, t]);
1116
98
  });
1117
99
  }
1118
- clearWaitingQueue(t) {
100
+ clearWaitingQueue(e) {
1119
101
  for (; this.concurrentTokenBorrowQueue.length > 0; ) {
1120
- const [, r] = this.concurrentTokenBorrowQueue.shift();
1121
- r(t);
102
+ const [, t] = this.concurrentTokenBorrowQueue.shift();
103
+ t(e);
1122
104
  }
1123
105
  }
1124
106
  }
1125
- class de extends Error {
1126
- constructor(t, r) {
1127
- super(t, r), this.name = "AsyncAbortException";
107
+ class V extends Error {
108
+ constructor(e, t) {
109
+ super(e, t), this.name = "AsyncAbortException";
1128
110
  }
1129
111
  }
1130
- class J {
1131
- constructor(t) {
1132
- P(this, "tokenBucket", null);
1133
- P(this, "schedule", async (t) => {
1134
- let r;
1135
- this.tokenBucket && (r = await this.tokenBucket.borrowToken());
112
+ class E {
113
+ constructor(e) {
114
+ N(this, "tokenBucket", null);
115
+ N(this, "schedule", async (e) => {
116
+ let t;
117
+ this.tokenBucket && (t = await this.tokenBucket.borrowToken());
1136
118
  try {
1137
- const n = await t();
1138
- return r == null || r(), n;
1139
- } catch (n) {
1140
- throw r == null || r(), n;
119
+ const o = await e();
120
+ return t == null || t(), o;
121
+ } catch (o) {
122
+ throw t == null || t(), o;
1141
123
  }
1142
124
  });
1143
- P(this, "cancelAll", (t, r) => {
1144
- var n;
1145
- (n = this.tokenBucket) == null || n.clearWaitingQueue(new de(t, r));
125
+ N(this, "cancelAll", (e, t) => {
126
+ var o;
127
+ (o = this.tokenBucket) == null || o.clearWaitingQueue(new V(e, t));
1146
128
  });
1147
- t.maxConcurrentAsyncs > 0 && (this.tokenBucket = new Pr(t.maxConcurrentAsyncs));
129
+ e.maxConcurrentAsyncs > 0 && (this.tokenBucket = new fe(e.maxConcurrentAsyncs));
1148
130
  }
1149
131
  }
1150
- const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs: 0 }) : new J(e), Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
132
+ const be = (n) => n instanceof E ? n : n === null ? new E({ maxConcurrentAsyncs: 0 }) : new E(n), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1151
133
  __proto__: null,
1152
- AsyncAbortException: de,
1153
- AsyncScheduler: J,
1154
- useAsyncScheduler: Dr
1155
- }, Symbol.toStringTag, { value: "Module" })), qe = [
1156
- O.Debug,
1157
- O.Info,
1158
- O.Notice,
1159
- O.Warn,
1160
- O.Error,
1161
- O.Critical
1162
- ], Rr = (e) => {
1163
- const { i18n: t } = re();
1164
- return m(() => {
1165
- const r = R(e == null ? void 0 : e.disabled) ?? [];
1166
- return qe.map((n) => ({
1167
- label: t.t(`log_level.${n}`),
1168
- value: n,
1169
- selected: (e == null ? void 0 : e.initialSelected) === n,
1170
- disabled: r.includes(n)
134
+ AsyncAbortException: V,
135
+ AsyncScheduler: E,
136
+ useAsyncScheduler: be
137
+ }, Symbol.toStringTag, { value: "Module" })), W = [
138
+ b.Debug,
139
+ b.Info,
140
+ b.Notice,
141
+ b.Warn,
142
+ b.Error,
143
+ b.Critical
144
+ ], ye = (n) => {
145
+ const { i18n: e } = P();
146
+ return p(() => {
147
+ const t = D(n == null ? void 0 : n.disabled) ?? [];
148
+ return W.map((o) => ({
149
+ label: e.t(`log_level.${o}`),
150
+ value: o,
151
+ selected: (n == null ? void 0 : n.initialSelected) === o,
152
+ disabled: t.includes(o)
1171
153
  }));
1172
154
  });
1173
- }, Vr = (e) => {
1174
- const t = [O.Debug], { i18n: r } = re();
1175
- return m(() => {
1176
- const n = R(e);
155
+ }, ke = (n) => {
156
+ const e = [b.Debug], { i18n: t } = P();
157
+ return p(() => {
158
+ const o = D(n);
1177
159
  return {
1178
- explanation: r.t(`modal.log_level_explanation.${n}`),
1179
- warning: t.includes(n) ? r.t("modal.log_level_disk_space_warning") : void 0
160
+ explanation: t.t(`modal.log_level_explanation.${o}`),
161
+ warning: e.includes(o) ? t.t("modal.log_level_disk_space_warning") : void 0
1180
162
  };
1181
163
  });
1182
- }, Hr = (e) => {
1183
- const { i18n: t } = re();
1184
- return m(() => {
1185
- const r = R(e);
1186
- if (isNaN(r) || r <= 0)
164
+ }, we = (n) => {
165
+ const { i18n: e } = P();
166
+ return p(() => {
167
+ const t = D(n);
168
+ if (isNaN(t) || t <= 0)
1187
169
  return "";
1188
- let n = "";
1189
- const a = r % 60;
1190
- a !== 0 && (n += `${a} ${t.t("modal.revert_to_default_after.seconds")}`);
1191
- const i = Math.floor(r / 60) % 60;
1192
- i !== 0 && (n = `${i} ${t.t("modal.revert_to_default_after.minutes")} ${n}`);
1193
- const o = Math.floor(r / 3600);
1194
- return o !== 0 && (n = `${o} ${t.t("modal.revert_to_default_after.hours")} ${n}`), n;
170
+ let o = "";
171
+ const a = t % 60;
172
+ a !== 0 && (o += `${a} ${e.t("modal.revert_to_default_after.seconds")}`);
173
+ const r = Math.floor(t / 60) % 60;
174
+ r !== 0 && (o = `${r} ${e.t("modal.revert_to_default_after.minutes")} ${o}`);
175
+ const s = Math.floor(t / 3600);
176
+ return s !== 0 && (o = `${s} ${e.t("modal.revert_to_default_after.hours")} ${o}`), o;
1195
177
  });
1196
- }, Yr = (e) => {
1197
- const t = e.requestExecutor ?? ((o) => o()), { getDataPlaneLogLevel: r, setDataPlaneLogLevel: n } = e, { getMessageFromError: a } = Br();
1198
- return { checkDataPlaneLogLevel: (o, s) => {
1199
- const l = w(R(s == null ? void 0 : s.currentLogLevelHint) ?? null);
1200
- l.value === null && t(async () => {
1201
- l.value = await r(o);
1202
- }).catch((u) => {
1203
- u instanceof de || console.error("Failed to get data plane log level", u);
1204
- }), s != null && s.currentLogLevelHint && ke(() => R(s.currentLogLevelHint), (u) => {
1205
- u && (l.value = u);
178
+ }, Ce = (n) => {
179
+ const e = n.requestExecutor ?? ((s) => s()), { getDataPlaneLogLevel: t, setDataPlaneLogLevel: o } = n, { getMessageFromError: a } = ue();
180
+ return { checkDataPlaneLogLevel: (s, c) => {
181
+ const u = L(D(c == null ? void 0 : c.currentLogLevelHint) ?? null);
182
+ u.value === null && e(async () => {
183
+ u.value = await t(s);
184
+ }).catch((m) => {
185
+ m instanceof V || console.error("Failed to get data plane log level", m);
186
+ }), c != null && c.currentLogLevelHint && ae(() => D(c.currentLogLevelHint), (m) => {
187
+ m && (u.value = m);
1206
188
  });
1207
- const f = w("pending"), c = w(null);
189
+ const v = L("pending"), y = L(null);
1208
190
  return {
1209
- currentLogLevel: l,
1210
- updateStatus: f,
1211
- updateErrorMessage: c,
1212
- updateLogLevel: async (u, p) => {
1213
- f.value = "loading", c.value = null;
191
+ currentLogLevel: u,
192
+ updateStatus: v,
193
+ updateErrorMessage: y,
194
+ updateLogLevel: async (m, C) => {
195
+ v.value = "loading", y.value = null;
1214
196
  try {
1215
- await t(() => n(o, u, p)), l.value = u, f.value = "success";
1216
- } catch (_) {
1217
- c.value = a(_), f.value = "error";
197
+ await e(() => o(s, m, C)), u.value = m, v.value = "success";
198
+ } catch (I) {
199
+ y.value = a(I), v.value = "error";
1218
200
  }
1219
201
  }
1220
202
  };
1221
203
  } };
1222
- }, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
204
+ }, Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1223
205
  __proto__: null,
1224
- supportedLevels: qe,
1225
- useDataPlaneLogLevelChecker: Yr,
1226
- useFriendlyRevertTime: Hr,
1227
- useLogLevelCandidateSelectItems: Rr,
1228
- useLogLevelExplanation: Vr
1229
- }, Symbol.toStringTag, { value: "Module" })), M = {
1230
- useI18n: re,
1231
- ...Zr,
1232
- ...Kr
1233
- }, q = "24px", ae = (e, t) => {
1234
- const r = e.__vccOpts || e;
1235
- for (const [n, a] of t)
1236
- r[n] = a;
1237
- return r;
1238
- }, Wr = (e) => (ee("data-v-6921da37"), e = e(), te(), e), Gr = ["aria-hidden"], Qr = {
1239
- key: 0,
1240
- "data-testid": "kui-icon-svg-title"
1241
- }, Jr = /* @__PURE__ */ Wr(() => /* @__PURE__ */ b("path", {
1242
- d: "M10.6 16.6L17.65 9.55L16.25 8.15L10.6 13.8L7.75 10.95L6.35 12.35L10.6 16.6ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",
1243
- fill: "currentColor"
1244
- }, null, -1)), Xr = /* @__PURE__ */ H({
1245
- __name: "CheckCircleIcon",
1246
- props: {
1247
- /** The accessibility text provided to screen readers */
1248
- title: {
1249
- type: String,
1250
- required: !1,
1251
- default: ""
1252
- },
1253
- /** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
1254
- color: {
1255
- type: String,
1256
- required: !1,
1257
- default: "currentColor"
1258
- },
1259
- /** The CSS display property for the icon. Defaults to `block` */
1260
- display: {
1261
- type: String,
1262
- required: !1,
1263
- default: "block"
1264
- },
1265
- /** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
1266
- decorative: {
1267
- type: Boolean,
1268
- required: !1,
1269
- default: !1
1270
- },
1271
- /** The icon size */
1272
- size: {
1273
- type: [Number, String],
1274
- required: !1,
1275
- default: q,
1276
- // if setting to the imported const fails, just pass a number of 24 as the default.
1277
- validator: (e) => {
1278
- if (typeof e == "number" && e > 0)
1279
- return !0;
1280
- if (typeof e == "string") {
1281
- const t = String(e).replace(/px/gi, ""), r = Number(t);
1282
- if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
1283
- return !0;
1284
- }
1285
- return !1;
1286
- }
1287
- },
1288
- /** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
1289
- as: {
1290
- type: String,
1291
- required: !1,
1292
- default: "span"
1293
- }
1294
- },
1295
- setup(e) {
1296
- const t = e, r = m(() => {
1297
- if (typeof t.size == "number" && t.size > 0)
1298
- return `${t.size}px`;
1299
- if (typeof t.size == "string") {
1300
- const a = String(t.size).replace(/px/gi, ""), i = Number(a);
1301
- if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
1302
- return `${i}px`;
1303
- }
1304
- return q;
1305
- }), n = m(() => ({
1306
- boxSizing: "border-box",
1307
- color: t.color,
1308
- display: t.display,
1309
- flexShrink: "0",
1310
- height: r.value,
1311
- lineHeight: "0",
1312
- width: r.value
1313
- }));
1314
- return (a, i) => (h(), T(V(e.as), {
1315
- "aria-hidden": e.decorative ? "true" : void 0,
1316
- class: "kui-icon check-circle-icon",
1317
- "data-testid": "kui-icon-wrapper-check-circle-icon",
1318
- style: X(n.value)
1319
- }, {
1320
- default: A(() => [
1321
- (h(), N("svg", {
1322
- "aria-hidden": e.decorative ? "true" : void 0,
1323
- "data-testid": "kui-icon-svg-check-circle-icon",
1324
- fill: "none",
1325
- height: "100%",
1326
- role: "img",
1327
- viewBox: "0 0 24 24",
1328
- width: "100%",
1329
- xmlns: "http://www.w3.org/2000/svg"
1330
- }, [
1331
- e.title ? (h(), N("title", Qr, k(e.title), 1)) : U("", !0),
1332
- Jr
1333
- ], 8, Gr))
1334
- ]),
1335
- _: 1
1336
- }, 8, ["aria-hidden", "style"]));
1337
- }
1338
- }), en = /* @__PURE__ */ ae(Xr, [["__scopeId", "data-v-6921da37"]]), tn = (e) => (ee("data-v-c4cddd09"), e = e(), te(), e), rn = ["aria-hidden"], nn = {
1339
- key: 0,
1340
- "data-testid": "kui-icon-svg-title"
1341
- }, an = /* @__PURE__ */ tn(() => /* @__PURE__ */ b("path", {
1342
- d: "M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",
1343
- fill: "currentColor"
1344
- }, null, -1)), on = /* @__PURE__ */ H({
1345
- __name: "ClearIcon",
1346
- props: {
1347
- /** The accessibility text provided to screen readers */
1348
- title: {
1349
- type: String,
1350
- required: !1,
1351
- default: ""
1352
- },
1353
- /** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
1354
- color: {
1355
- type: String,
1356
- required: !1,
1357
- default: "currentColor"
1358
- },
1359
- /** The CSS display property for the icon. Defaults to `block` */
1360
- display: {
1361
- type: String,
1362
- required: !1,
1363
- default: "block"
1364
- },
1365
- /** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
1366
- decorative: {
1367
- type: Boolean,
1368
- required: !1,
1369
- default: !1
1370
- },
1371
- /** The icon size */
1372
- size: {
1373
- type: [Number, String],
1374
- required: !1,
1375
- default: q,
1376
- // if setting to the imported const fails, just pass a number of 24 as the default.
1377
- validator: (e) => {
1378
- if (typeof e == "number" && e > 0)
1379
- return !0;
1380
- if (typeof e == "string") {
1381
- const t = String(e).replace(/px/gi, ""), r = Number(t);
1382
- if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
1383
- return !0;
1384
- }
1385
- return !1;
1386
- }
1387
- },
1388
- /** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
1389
- as: {
1390
- type: String,
1391
- required: !1,
1392
- default: "span"
1393
- }
1394
- },
1395
- setup(e) {
1396
- const t = e, r = m(() => {
1397
- if (typeof t.size == "number" && t.size > 0)
1398
- return `${t.size}px`;
1399
- if (typeof t.size == "string") {
1400
- const a = String(t.size).replace(/px/gi, ""), i = Number(a);
1401
- if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
1402
- return `${i}px`;
1403
- }
1404
- return q;
1405
- }), n = m(() => ({
1406
- boxSizing: "border-box",
1407
- color: t.color,
1408
- display: t.display,
1409
- flexShrink: "0",
1410
- height: r.value,
1411
- lineHeight: "0",
1412
- width: r.value
1413
- }));
1414
- return (a, i) => (h(), T(V(e.as), {
1415
- "aria-hidden": e.decorative ? "true" : void 0,
1416
- class: "kui-icon clear-icon",
1417
- "data-testid": "kui-icon-wrapper-clear-icon",
1418
- style: X(n.value)
1419
- }, {
1420
- default: A(() => [
1421
- (h(), N("svg", {
1422
- "aria-hidden": e.decorative ? "true" : void 0,
1423
- "data-testid": "kui-icon-svg-clear-icon",
1424
- fill: "none",
1425
- height: "100%",
1426
- role: "img",
1427
- viewBox: "0 0 24 24",
1428
- width: "100%",
1429
- xmlns: "http://www.w3.org/2000/svg"
1430
- }, [
1431
- e.title ? (h(), N("title", nn, k(e.title), 1)) : U("", !0),
1432
- an
1433
- ], 8, rn))
1434
- ]),
1435
- _: 1
1436
- }, 8, ["aria-hidden", "style"]));
1437
- }
1438
- }), sn = /* @__PURE__ */ ae(on, [["__scopeId", "data-v-c4cddd09"]]), ln = (e) => (ee("data-v-68742da1"), e = e(), te(), e), un = ["aria-hidden"], cn = {
1439
- key: 0,
1440
- "data-testid": "kui-icon-svg-title"
1441
- }, dn = /* @__PURE__ */ ln(() => /* @__PURE__ */ b("path", {
1442
- d: "M4 17V14H20V17H4ZM4 10V7H20V10H4Z",
1443
- fill: "currentColor"
1444
- }, null, -1)), pn = /* @__PURE__ */ H({
1445
- __name: "EqualIcon",
1446
- props: {
1447
- /** The accessibility text provided to screen readers */
1448
- title: {
1449
- type: String,
1450
- required: !1,
1451
- default: ""
1452
- },
1453
- /** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
1454
- color: {
1455
- type: String,
1456
- required: !1,
1457
- default: "currentColor"
1458
- },
1459
- /** The CSS display property for the icon. Defaults to `block` */
1460
- display: {
1461
- type: String,
1462
- required: !1,
1463
- default: "block"
1464
- },
1465
- /** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
1466
- decorative: {
1467
- type: Boolean,
1468
- required: !1,
1469
- default: !1
1470
- },
1471
- /** The icon size */
1472
- size: {
1473
- type: [Number, String],
1474
- required: !1,
1475
- default: q,
1476
- // if setting to the imported const fails, just pass a number of 24 as the default.
1477
- validator: (e) => {
1478
- if (typeof e == "number" && e > 0)
1479
- return !0;
1480
- if (typeof e == "string") {
1481
- const t = String(e).replace(/px/gi, ""), r = Number(t);
1482
- if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
1483
- return !0;
1484
- }
1485
- return !1;
1486
- }
1487
- },
1488
- /** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
1489
- as: {
1490
- type: String,
1491
- required: !1,
1492
- default: "span"
1493
- }
1494
- },
1495
- setup(e) {
1496
- const t = e, r = m(() => {
1497
- if (typeof t.size == "number" && t.size > 0)
1498
- return `${t.size}px`;
1499
- if (typeof t.size == "string") {
1500
- const a = String(t.size).replace(/px/gi, ""), i = Number(a);
1501
- if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
1502
- return `${i}px`;
1503
- }
1504
- return q;
1505
- }), n = m(() => ({
1506
- boxSizing: "border-box",
1507
- color: t.color,
1508
- display: t.display,
1509
- flexShrink: "0",
1510
- height: r.value,
1511
- lineHeight: "0",
1512
- width: r.value
1513
- }));
1514
- return (a, i) => (h(), T(V(e.as), {
1515
- "aria-hidden": e.decorative ? "true" : void 0,
1516
- class: "kui-icon equal-icon",
1517
- "data-testid": "kui-icon-wrapper-equal-icon",
1518
- style: X(n.value)
1519
- }, {
1520
- default: A(() => [
1521
- (h(), N("svg", {
1522
- "aria-hidden": e.decorative ? "true" : void 0,
1523
- "data-testid": "kui-icon-svg-equal-icon",
1524
- fill: "none",
1525
- height: "100%",
1526
- role: "img",
1527
- viewBox: "0 0 24 24",
1528
- width: "100%",
1529
- xmlns: "http://www.w3.org/2000/svg"
1530
- }, [
1531
- e.title ? (h(), N("title", cn, k(e.title), 1)) : U("", !0),
1532
- dn
1533
- ], 8, un))
1534
- ]),
1535
- _: 1
1536
- }, 8, ["aria-hidden", "style"]));
1537
- }
1538
- }), fn = /* @__PURE__ */ ae(pn, [["__scopeId", "data-v-68742da1"]]), Me = (e) => (ee("data-v-ae02d9ee"), e = e(), te(), e), gn = ["aria-hidden"], hn = {
1539
- key: 0,
1540
- "data-testid": "kui-icon-svg-title"
1541
- }, vn = /* @__PURE__ */ Me(() => /* @__PURE__ */ b("path", {
1542
- d: "M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",
1543
- fill: "currentColor",
1544
- "transform-origin": "center"
1545
- }, null, -1)), mn = /* @__PURE__ */ Me(() => /* @__PURE__ */ b("animateTransform", {
1546
- attributeName: "transform",
1547
- attributeType: "XML",
1548
- dur: "1.5s",
1549
- from: "0",
1550
- repeatCount: "indefinite",
1551
- to: "360",
1552
- type: "rotate"
1553
- }, null, -1)), yn = /* @__PURE__ */ H({
1554
- __name: "ProgressIcon",
1555
- props: {
1556
- /** The accessibility text provided to screen readers */
1557
- title: {
1558
- type: String,
1559
- required: !1,
1560
- default: ""
1561
- },
1562
- /** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
1563
- color: {
1564
- type: String,
1565
- required: !1,
1566
- default: "currentColor"
1567
- },
1568
- /** The CSS display property for the icon. Defaults to `block` */
1569
- display: {
1570
- type: String,
1571
- required: !1,
1572
- default: "block"
1573
- },
1574
- /** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
1575
- decorative: {
1576
- type: Boolean,
1577
- required: !1,
1578
- default: !1
1579
- },
1580
- /** The icon size */
1581
- size: {
1582
- type: [Number, String],
1583
- required: !1,
1584
- default: q,
1585
- // if setting to the imported const fails, just pass a number of 24 as the default.
1586
- validator: (e) => {
1587
- if (typeof e == "number" && e > 0)
1588
- return !0;
1589
- if (typeof e == "string") {
1590
- const t = String(e).replace(/px/gi, ""), r = Number(t);
1591
- if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
1592
- return !0;
1593
- }
1594
- return !1;
1595
- }
1596
- },
1597
- /** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
1598
- as: {
1599
- type: String,
1600
- required: !1,
1601
- default: "span"
1602
- }
1603
- },
1604
- setup(e) {
1605
- const t = e, r = m(() => {
1606
- if (typeof t.size == "number" && t.size > 0)
1607
- return `${t.size}px`;
1608
- if (typeof t.size == "string") {
1609
- const a = String(t.size).replace(/px/gi, ""), i = Number(a);
1610
- if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
1611
- return `${i}px`;
1612
- }
1613
- return q;
1614
- }), n = m(() => ({
1615
- boxSizing: "border-box",
1616
- color: t.color,
1617
- display: t.display,
1618
- flexShrink: "0",
1619
- height: r.value,
1620
- lineHeight: "0",
1621
- width: r.value
1622
- }));
1623
- return (a, i) => (h(), T(V(e.as), {
1624
- "aria-hidden": e.decorative ? "true" : void 0,
1625
- class: "kui-icon progress-icon",
1626
- "data-testid": "kui-icon-wrapper-progress-icon",
1627
- style: X(n.value)
1628
- }, {
1629
- default: A(() => [
1630
- (h(), N("svg", {
1631
- "aria-hidden": e.decorative ? "true" : void 0,
1632
- "data-testid": "kui-icon-svg-progress-icon",
1633
- fill: "none",
1634
- height: "100%",
1635
- role: "img",
1636
- viewBox: "0 0 24 24",
1637
- width: "100%",
1638
- xmlns: "http://www.w3.org/2000/svg"
1639
- }, [
1640
- e.title ? (h(), N("title", hn, k(e.title), 1)) : U("", !0),
1641
- vn,
1642
- mn
1643
- ], 8, gn))
1644
- ]),
1645
- _: 1
1646
- }, 8, ["aria-hidden", "style"]));
1647
- }
1648
- }), bn = /* @__PURE__ */ ae(yn, [["__scopeId", "data-v-ae02d9ee"]]), wn = { "data-testid": "log-change-action" }, _n = { key: 0 }, kn = { "data-testid": "log-change-action-current-level" }, xn = { key: 0 }, Cn = { "data-testid": "log-change-action-target-level" }, Ln = { "data-testid": "log-change-status" }, Sn = /* @__PURE__ */ H({
206
+ supportedLevels: W,
207
+ useDataPlaneLogLevelChecker: Ce,
208
+ useFriendlyRevertTime: we,
209
+ useLogLevelCandidateSelectItems: ye,
210
+ useLogLevelExplanation: ke
211
+ }, Symbol.toStringTag, { value: "Module" })), S = {
212
+ useI18n: P,
213
+ ...Se,
214
+ ...Le
215
+ }, xe = { "data-testid": "log-change-action" }, Te = { key: 0 }, Ie = { "data-testid": "log-change-action-current-level" }, Ne = { key: 0 }, $e = { "data-testid": "log-change-action-target-level" }, Ae = { "data-testid": "log-change-status" }, De = /* @__PURE__ */ O({
1649
216
  __name: "CLLModalNodeRow",
1650
217
  props: {
1651
218
  dataPlaneId: {},
@@ -1655,22 +222,22 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1655
222
  checkLogLevel: {},
1656
223
  logLevelHint: {}
1657
224
  },
1658
- setup(e, { expose: t }) {
1659
- const r = e, { i18n: n } = M.useI18n();
1660
- let a = w("not_supported"), i = w("not_supported"), o = w(null), s = async () => {
225
+ setup(n, { expose: e }) {
226
+ const t = n, { i18n: o } = S.useI18n();
227
+ let a = L("not_supported"), r = L("not_supported"), s = L(null), c = async () => {
1661
228
  };
1662
- r.hasDllCapability && ({
229
+ t.hasDllCapability && ({
1663
230
  currentLogLevel: a,
1664
- updateStatus: i,
1665
- updateErrorMessage: o,
1666
- updateLogLevel: s
1667
- } = r.checkLogLevel(r.dataPlaneId, {
1668
- currentLogLevelHint: () => r.logLevelHint ?? null
1669
- })), t({
1670
- updateLogLevel: s
231
+ updateStatus: r,
232
+ updateErrorMessage: s,
233
+ updateLogLevel: c
234
+ } = t.checkLogLevel(t.dataPlaneId, {
235
+ currentLogLevelHint: () => t.logLevelHint ?? null
236
+ })), e({
237
+ updateLogLevel: c
1671
238
  });
1672
- const l = m(() => {
1673
- switch (i.value) {
239
+ const u = p(() => {
240
+ switch (r.value) {
1674
241
  case "success":
1675
242
  return "success";
1676
243
  case "error":
@@ -1681,78 +248,78 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1681
248
  default:
1682
249
  return "neutral";
1683
250
  }
1684
- }), f = m(() => {
1685
- switch (i.value) {
251
+ }), v = p(() => {
252
+ switch (r.value) {
1686
253
  case "success":
1687
- return n.t("modal.dp_list.status.succeed");
254
+ return o.t("modal.dp_list.status.succeed");
1688
255
  case "error":
1689
- return n.t("modal.dp_list.status.failed");
256
+ return o.t("modal.dp_list.status.failed");
1690
257
  case "pending":
1691
- return n.t("modal.dp_list.status.pending");
258
+ return o.t("modal.dp_list.status.pending");
1692
259
  case "loading":
1693
- return n.t("modal.dp_list.status.loading");
260
+ return o.t("modal.dp_list.status.loading");
1694
261
  default:
1695
- return n.t("modal.dp_list.status.not_supported");
262
+ return o.t("modal.dp_list.status.not_supported");
1696
263
  }
1697
- }), c = m(() => {
1698
- switch (i.value) {
264
+ }), y = p(() => {
265
+ switch (r.value) {
1699
266
  case "success":
1700
- return en;
267
+ return me;
1701
268
  case "error":
1702
269
  case "not_supported":
1703
- return sn;
270
+ return ve;
1704
271
  case "loading":
1705
- return bn;
272
+ return ge;
1706
273
  default:
1707
- return fn;
274
+ return de;
1708
275
  }
1709
276
  });
1710
- return (d, u) => {
1711
- const p = F("KSkeleton"), _ = F("KBadge"), $ = F("KTooltip");
1712
- return h(), N("tr", null, [
1713
- b("td", null, k(d.hostname), 1),
1714
- b("td", wn, [
1715
- g(a) === "not_supported" ? (h(), N("span", _n, k(g(n).t("log_level.not_applicable")), 1)) : g(a) ? (h(), N(xe, { key: 2 }, [
1716
- b("span", kn, k(g(n).t(`log_level.${g(a)}`)), 1),
1717
- g(a) !== d.targetLogLevel ? (h(), N("span", xn, [
1718
- Z(" → "),
1719
- b("span", Cn, k(g(n).t(`log_level.${d.targetLogLevel}`)), 1)
1720
- ])) : U("", !0)
1721
- ], 64)) : (h(), T(p, {
277
+ return (T, m) => {
278
+ const C = x("KSkeleton"), I = x("KBadge"), M = x("KTooltip");
279
+ return g(), $("tr", null, [
280
+ i("td", null, d(T.hostname), 1),
281
+ i("td", xe, [
282
+ l(a) === "not_supported" ? (g(), $("span", Te, d(l(o).t("log_level.not_applicable")), 1)) : l(a) ? (g(), $(j, { key: 2 }, [
283
+ i("span", Ie, d(l(o).t(`log_level.${l(a)}`)), 1),
284
+ l(a) !== T.targetLogLevel ? (g(), $("span", Ne, [
285
+ A(" → "),
286
+ i("span", $e, d(l(o).t(`log_level.${T.targetLogLevel}`)), 1)
287
+ ])) : q("", !0)
288
+ ], 64)) : (g(), k(C, {
1722
289
  key: 1,
1723
290
  type: "spinner"
1724
291
  }))
1725
292
  ]),
1726
- b("td", Ln, [
1727
- g(o) ? (h(), T($, {
293
+ i("td", Ae, [
294
+ l(s) ? (g(), k(M, {
1728
295
  key: 0,
1729
- text: g(o)
296
+ text: l(s)
1730
297
  }, {
1731
- default: A(() => [
1732
- Q(_, {
1733
- appearance: l.value,
298
+ default: w(() => [
299
+ B(I, {
300
+ appearance: u.value,
1734
301
  class: "badge-cell"
1735
302
  }, {
1736
- icon: A(() => [
1737
- (h(), T(V(c.value)))
303
+ icon: w(() => [
304
+ (g(), k(Q(y.value)))
1738
305
  ]),
1739
- default: A(() => [
1740
- Z(" " + k(f.value), 1)
306
+ default: w(() => [
307
+ A(" " + d(v.value), 1)
1741
308
  ]),
1742
309
  _: 1
1743
310
  }, 8, ["appearance"])
1744
311
  ]),
1745
312
  _: 1
1746
- }, 8, ["text"])) : (h(), T(_, {
313
+ }, 8, ["text"])) : (g(), k(I, {
1747
314
  key: 1,
1748
- appearance: l.value,
315
+ appearance: u.value,
1749
316
  class: "badge-cell"
1750
317
  }, {
1751
- icon: A(() => [
1752
- (h(), T(V(c.value)))
318
+ icon: w(() => [
319
+ (g(), k(Q(y.value)))
1753
320
  ]),
1754
- default: A(() => [
1755
- Z(" " + k(f.value), 1)
321
+ default: w(() => [
322
+ A(" " + d(v.value), 1)
1756
323
  ]),
1757
324
  _: 1
1758
325
  }, 8, ["appearance"]))
@@ -1760,25 +327,25 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1760
327
  ]);
1761
328
  };
1762
329
  }
1763
- }), ze = (e, t) => {
1764
- const r = e.__vccOpts || e;
1765
- for (const [n, a] of t)
1766
- r[n] = a;
1767
- return r;
1768
- }, Nn = /* @__PURE__ */ ze(Sn, [["__scopeId", "data-v-ac7205dd"]]), In = { class: "explanation-wrapper" }, Tn = {
330
+ }), z = (n, e) => {
331
+ const t = n.__vccOpts || n;
332
+ for (const [o, a] of e)
333
+ t[o] = a;
334
+ return t;
335
+ }, Be = /* @__PURE__ */ z(De, [["__scopeId", "data-v-ac7205dd"]]), Ee = { class: "explanation-wrapper" }, Pe = {
1769
336
  key: 0,
1770
337
  class: "warning-message",
1771
338
  "data-testid": "log-level-warning-message"
1772
- }, An = { class: "revert-after-wrapper" }, $n = { class: "time" }, En = { class: "seconds" }, On = {
339
+ }, Me = { class: "revert-after-wrapper" }, Ke = { class: "time" }, qe = { class: "seconds" }, Ve = {
1773
340
  class: "formatted-time",
1774
341
  "data-testid": "log-level-timeout-formatted"
1775
- }, jn = {
342
+ }, He = {
1776
343
  class: "data-plane-node-list",
1777
344
  "data-testid": "data-plane-node-list"
1778
- }, qn = { style: { width: "40%" } }, Mn = { style: { width: "40%" } }, zn = /* @__PURE__ */ H({
345
+ }, Re = { style: { width: "40%" } }, Fe = { style: { width: "40%" } }, Qe = /* @__PURE__ */ O({
1779
346
  name: "ChangeLogLevelModal",
1780
347
  __name: "ChangeLogLevelModal",
1781
- props: /* @__PURE__ */ De({
348
+ props: /* @__PURE__ */ le({
1782
349
  instanceList: {},
1783
350
  instanceLogLevel: {},
1784
351
  requests: {}
@@ -1787,38 +354,38 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1787
354
  visibleModifiers: {}
1788
355
  }),
1789
356
  emits: ["update:visible"],
1790
- setup(e) {
1791
- const t = e, r = Ke(e, "visible"), n = O.Notice, { i18n: a } = M.useI18n(), i = w("edit"), o = w(n), s = w("60"), l = m(() => Math.floor(Number(s.value))), f = m(() => t.instanceList.filter((I) => I.hasDLLCapability !== !1)), c = m(() => {
1792
- const I = f.value.length === 1 ? a.t("modal.change_log_level.summary_with_name", { name: f.value[0].hostname }) : a.t("modal.change_log_level.summary_with_number", { number: `${f.value.length}` });
1793
- return a.t("modal.change_log_level.title", { summary: I });
1794
- }), d = m(() => i.value === "submitting" || isNaN(l.value) || l.value <= 0 || f.value.length === 0), u = M.useLogLevelCandidateSelectItems({
1795
- initialSelected: n
1796
- }), p = M.useLogLevelExplanation(o), _ = M.useFriendlyRevertTime(l), $ = M.useAsyncScheduler(
1797
- t.requests.scheduler === void 0 ? { maxConcurrentAsyncs: 10 } : t.requests.scheduler
1798
- ), { checkDataPlaneLogLevel: ie } = M.useDataPlaneLogLevelChecker({
1799
- getDataPlaneLogLevel: t.requests.getDataPlaneLogLevel,
1800
- setDataPlaneLogLevel: t.requests.setDataPlaneLogLevel,
1801
- requestExecutor: $.schedule
1802
- }), B = /* @__PURE__ */ new Map(), oe = (I, v) => {
1803
- v === null ? B.delete(I) : B.set(I, v);
1804
- }, y = async () => {
1805
- if (i.value !== "edit") {
1806
- Y();
357
+ setup(n) {
358
+ const e = n, t = se(n, "visible"), o = b.Notice, { i18n: a } = S.useI18n(), r = L("edit"), s = L(o), c = L("60"), u = p(() => Math.floor(Number(c.value))), v = p(() => e.instanceList.filter((f) => f.hasDLLCapability !== !1)), y = p(() => {
359
+ const f = v.value.length === 1 ? a.t("modal.change_log_level.summary_with_name", { name: v.value[0].hostname }) : a.t("modal.change_log_level.summary_with_number", { number: `${v.value.length}` });
360
+ return a.t("modal.change_log_level.title", { summary: f });
361
+ }), T = p(() => r.value === "submitting" || isNaN(u.value) || u.value <= 0 || v.value.length === 0), m = S.useLogLevelCandidateSelectItems({
362
+ initialSelected: o
363
+ }), C = S.useLogLevelExplanation(s), I = S.useFriendlyRevertTime(u), M = S.useAsyncScheduler(
364
+ e.requests.scheduler === void 0 ? { maxConcurrentAsyncs: 10 } : e.requests.scheduler
365
+ ), { checkDataPlaneLogLevel: U } = S.useDataPlaneLogLevelChecker({
366
+ getDataPlaneLogLevel: e.requests.getDataPlaneLogLevel,
367
+ setDataPlaneLogLevel: e.requests.setDataPlaneLogLevel,
368
+ requestExecutor: M.schedule
369
+ }), K = /* @__PURE__ */ new Map(), G = (f, _) => {
370
+ _ === null ? K.delete(f) : K.set(f, _);
371
+ }, J = async () => {
372
+ if (r.value !== "edit") {
373
+ H();
1807
374
  return;
1808
375
  }
1809
- i.value = "submitting";
1810
- const I = Array.from(B.values()).map((v) => v.updateLogLevel(o.value, l.value));
376
+ r.value = "submitting";
377
+ const f = Array.from(K.values()).map((_) => _.updateLogLevel(s.value, u.value));
1811
378
  try {
1812
- await Promise.all(I);
1813
- } catch (v) {
1814
- console.error("Failed to update log level", v);
379
+ await Promise.all(f);
380
+ } catch (_) {
381
+ console.error("Failed to update log level", _);
1815
382
  } finally {
1816
- i.value = "submitted";
383
+ r.value = "submitted";
1817
384
  }
1818
- }, Y = () => {
1819
- r.value = !1, s.value = "60", i.value = "edit", o.value = n;
1820
- }, G = m(() => {
1821
- switch (i.value) {
385
+ }, H = () => {
386
+ t.value = !1, c.value = "60", r.value = "edit", s.value = o;
387
+ }, X = p(() => {
388
+ switch (r.value) {
1822
389
  case "submitting":
1823
390
  return a.t("modal.action_button.submitting");
1824
391
  case "submitted":
@@ -1827,82 +394,82 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1827
394
  return a.t("modal.action_button.confirm");
1828
395
  }
1829
396
  });
1830
- return (I, v) => {
1831
- const S = F("KSelect"), j = F("KLabel"), x = F("KInput"), E = F("KModal");
1832
- return h(), T(E, {
1833
- "action-button-disabled": d.value,
1834
- "action-button-text": G.value,
397
+ return (f, _) => {
398
+ const Y = x("KSelect"), R = x("KLabel"), Z = x("KInput"), ee = x("KModal");
399
+ return g(), k(ee, {
400
+ "action-button-disabled": T.value,
401
+ "action-button-text": X.value,
1835
402
  "data-testid": "change-log-level-modal",
1836
403
  "hide-cancel-button": !0,
1837
- "hide-close-icon": i.value === "submitting",
404
+ "hide-close-icon": r.value === "submitting",
1838
405
  "max-width": "640px",
1839
- title: c.value,
1840
- visible: r.value,
1841
- onCancel: Y,
1842
- onProceed: y
406
+ title: y.value,
407
+ visible: t.value,
408
+ onCancel: H,
409
+ onProceed: J
1843
410
  }, {
1844
- default: A(() => [
1845
- i.value === "edit" ? (h(), T(S, {
411
+ default: w(() => [
412
+ r.value === "edit" ? (g(), k(Y, {
1846
413
  key: 0,
1847
- modelValue: o.value,
1848
- "onUpdate:modelValue": v[0] || (v[0] = (L) => o.value = L),
414
+ modelValue: s.value,
415
+ "onUpdate:modelValue": _[0] || (_[0] = (h) => s.value = h),
1849
416
  class: "log-level-select",
1850
417
  "data-testid": "log-level-select",
1851
- items: g(u),
1852
- label: g(a).t("modal.select_log_level_title")
1853
- }, null, 8, ["modelValue", "items", "label"])) : U("", !0),
1854
- b("div", In, [
1855
- Q(j, null, {
1856
- default: A(() => [
1857
- Z(k(g(a).t(`log_level.${o.value}`)), 1)
418
+ items: l(m),
419
+ label: l(a).t("modal.select_log_level_title")
420
+ }, null, 8, ["modelValue", "items", "label"])) : q("", !0),
421
+ i("div", Ee, [
422
+ B(R, null, {
423
+ default: w(() => [
424
+ A(d(l(a).t(`log_level.${s.value}`)), 1)
1858
425
  ]),
1859
426
  _: 1
1860
427
  }),
1861
- b("div", null, k(g(p).explanation), 1),
1862
- g(p).warning ? (h(), N("div", Tn, k(g(p).warning), 1)) : U("", !0)
428
+ i("div", null, d(l(C).explanation), 1),
429
+ l(C).warning ? (g(), $("div", Pe, d(l(C).warning), 1)) : q("", !0)
1863
430
  ]),
1864
- b("div", An, [
1865
- Q(j, null, {
1866
- default: A(() => [
1867
- Z(k(g(a).t("modal.revert_to_default_after.label")), 1)
431
+ i("div", Me, [
432
+ B(R, null, {
433
+ default: w(() => [
434
+ A(d(l(a).t("modal.revert_to_default_after.label")), 1)
1868
435
  ]),
1869
436
  _: 1
1870
437
  }),
1871
- b("div", $n, [
1872
- Q(x, {
1873
- modelValue: s.value,
1874
- "onUpdate:modelValue": v[1] || (v[1] = (L) => s.value = L),
438
+ i("div", Ke, [
439
+ B(Z, {
440
+ modelValue: c.value,
441
+ "onUpdate:modelValue": _[1] || (_[1] = (h) => c.value = h),
1875
442
  class: "time-input",
1876
443
  "data-testid": "log-level-timeout",
1877
- disabled: i.value !== "edit",
1878
- error: l.value <= 0 || isNaN(l.value),
444
+ disabled: r.value !== "edit",
445
+ error: u.value <= 0 || isNaN(u.value),
1879
446
  min: "1",
1880
447
  type: "number"
1881
448
  }, null, 8, ["modelValue", "disabled", "error"]),
1882
- b("span", En, k(g(a).t("modal.revert_to_default_after.seconds")), 1),
1883
- b("span", On, k(g(_)), 1)
449
+ i("span", qe, d(l(a).t("modal.revert_to_default_after.seconds")), 1),
450
+ i("span", Ve, d(l(I)), 1)
1884
451
  ])
1885
452
  ]),
1886
- b("table", jn, [
1887
- b("thead", null, [
1888
- b("th", qn, k(g(a).t("modal.dp_list.header.host")), 1),
1889
- b("th", Mn, k(g(a).t("modal.dp_list.header.action")), 1),
1890
- b("th", null, k(g(a).t("modal.dp_list.header.status")), 1)
453
+ i("table", He, [
454
+ i("thead", null, [
455
+ i("th", Re, d(l(a).t("modal.dp_list.header.host")), 1),
456
+ i("th", Fe, d(l(a).t("modal.dp_list.header.action")), 1),
457
+ i("th", null, d(l(a).t("modal.dp_list.header.status")), 1)
1891
458
  ]),
1892
- b("tbody", null, [
1893
- (h(!0), N(xe, null, Re(t.instanceList, (L) => {
1894
- var pe;
1895
- return h(), T(Nn, {
1896
- key: L.id,
459
+ i("tbody", null, [
460
+ (g(!0), $(j, null, re(e.instanceList, (h) => {
461
+ var F;
462
+ return g(), k(Be, {
463
+ key: h.id,
1897
464
  ref_for: !0,
1898
- ref: (Fe) => oe(L.id, Fe),
1899
- "check-log-level": g(ie),
1900
- "data-plane-id": L.id,
1901
- "data-testid": `data-plane-node-list-row-${L.id}`,
1902
- "has-dll-capability": L.hasDLLCapability ?? !0,
1903
- hostname: L.hostname,
1904
- "log-level-hint": (pe = t.instanceLogLevel) == null ? void 0 : pe.get(L.id),
1905
- "target-log-level": o.value
465
+ ref: (te) => G(h.id, te),
466
+ "check-log-level": l(U),
467
+ "data-plane-id": h.id,
468
+ "data-testid": `data-plane-node-list-row-${h.id}`,
469
+ "has-dll-capability": h.hasDLLCapability ?? !0,
470
+ hostname: h.hostname,
471
+ "log-level-hint": (F = e.instanceLogLevel) == null ? void 0 : F.get(h.id),
472
+ "target-log-level": s.value
1906
473
  }, null, 8, ["check-log-level", "data-plane-id", "data-testid", "has-dll-capability", "hostname", "log-level-hint", "target-log-level"]);
1907
474
  }), 128))
1908
475
  ])
@@ -1912,9 +479,9 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1912
479
  }, 8, ["action-button-disabled", "action-button-text", "hide-close-icon", "title", "visible"]);
1913
480
  };
1914
481
  }
1915
- }), ta = /* @__PURE__ */ ze(zn, [["__scopeId", "data-v-983a59ac"]]);
482
+ }), Ge = /* @__PURE__ */ z(Qe, [["__scopeId", "data-v-983a59ac"]]);
1916
483
  export {
1917
- ta as ChangeLogLevelModal,
1918
- O as LogLevel,
1919
- M as composables
484
+ Ge as ChangeLogLevelModal,
485
+ b as LogLevel,
486
+ S as composables
1920
487
  };