@kong-ui-public/entities-data-plane-nodes 0.2.15 → 0.2.16
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,6 +1,6 @@
|
|
|
1
1
|
var Me = Object.defineProperty;
|
|
2
2
|
var Ue = (e, t, r) => t in e ? Me(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
-
var P = (e, t, r) =>
|
|
3
|
+
var P = (e, t, r) => Ue(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { ref as b, unref as g, computed as v, watch as ke, inject as Be, toValue as Z, defineComponent as V, openBlock as h, createBlock as $, resolveDynamicComponent as R, normalizeStyle as ee, withCtx as E, createElementBlock as I, toDisplayString as _, createCommentVNode as U, pushScopeId as te, popScopeId as re, createElementVNode as y, resolveComponent as M, Fragment as xe, createTextVNode as Y, createVNode as J, mergeModels as Pe, useModel as De, renderList as Ke } from "vue";
|
|
5
5
|
import { createI18n as Ce, i18nTComponent as Le } from "@kong-ui-public/i18n";
|
|
6
6
|
import fe from "axios";
|
|
@@ -228,13 +228,11 @@ function ae() {
|
|
|
228
228
|
}
|
|
229
229
|
function Se() {
|
|
230
230
|
const e = (r, n) => (n == null ? void 0 : n[r]) ?? void 0, t = (r, n) => {
|
|
231
|
-
if (r.length !== n.length)
|
|
232
|
-
return !1;
|
|
231
|
+
if (r.length !== n.length) return !1;
|
|
233
232
|
const a = /* @__PURE__ */ new Set([...r, ...n]);
|
|
234
233
|
for (const i of a) {
|
|
235
234
|
const o = r.filter((u) => u === i).length, s = n.filter((u) => u === i).length;
|
|
236
|
-
if (o !== s)
|
|
237
|
-
return !1;
|
|
235
|
+
if (o !== s) return !1;
|
|
238
236
|
}
|
|
239
237
|
return !0;
|
|
240
238
|
};
|
|
@@ -711,8 +709,7 @@ var Ft = le, Mt = new x("tag:yaml.org,2002:str", {
|
|
|
711
709
|
]
|
|
712
710
|
});
|
|
713
711
|
function Dt(e) {
|
|
714
|
-
if (e === null)
|
|
715
|
-
return !0;
|
|
712
|
+
if (e === null) return !0;
|
|
716
713
|
var t = e.length;
|
|
717
714
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
718
715
|
}
|
|
@@ -747,8 +744,7 @@ var Vt = new x("tag:yaml.org,2002:null", {
|
|
|
747
744
|
defaultStyle: "lowercase"
|
|
748
745
|
});
|
|
749
746
|
function Ht(e) {
|
|
750
|
-
if (e === null)
|
|
751
|
-
return !1;
|
|
747
|
+
if (e === null) return !1;
|
|
752
748
|
var t = e.length;
|
|
753
749
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
754
750
|
}
|
|
@@ -786,19 +782,15 @@ function Jt(e) {
|
|
|
786
782
|
return 48 <= e && e <= 57;
|
|
787
783
|
}
|
|
788
784
|
function Xt(e) {
|
|
789
|
-
if (e === null)
|
|
790
|
-
return !1;
|
|
785
|
+
if (e === null) return !1;
|
|
791
786
|
var t = e.length, r = 0, n = !1, a;
|
|
792
|
-
if (!t)
|
|
793
|
-
return !1;
|
|
787
|
+
if (!t) return !1;
|
|
794
788
|
if (a = e[r], (a === "-" || a === "+") && (a = e[++r]), a === "0") {
|
|
795
|
-
if (r + 1 === t)
|
|
796
|
-
return !0;
|
|
789
|
+
if (r + 1 === t) return !0;
|
|
797
790
|
if (a = e[++r], a === "b") {
|
|
798
791
|
for (r++; r < t; r++)
|
|
799
792
|
if (a = e[r], a !== "_") {
|
|
800
|
-
if (a !== "0" && a !== "1")
|
|
801
|
-
return !1;
|
|
793
|
+
if (a !== "0" && a !== "1") return !1;
|
|
802
794
|
n = !0;
|
|
803
795
|
}
|
|
804
796
|
return n && a !== "_";
|
|
@@ -806,8 +798,7 @@ function Xt(e) {
|
|
|
806
798
|
if (a === "x") {
|
|
807
799
|
for (r++; r < t; r++)
|
|
808
800
|
if (a = e[r], a !== "_") {
|
|
809
|
-
if (!Qt(e.charCodeAt(r)))
|
|
810
|
-
return !1;
|
|
801
|
+
if (!Qt(e.charCodeAt(r))) return !1;
|
|
811
802
|
n = !0;
|
|
812
803
|
}
|
|
813
804
|
return n && a !== "_";
|
|
@@ -815,15 +806,13 @@ function Xt(e) {
|
|
|
815
806
|
if (a === "o") {
|
|
816
807
|
for (r++; r < t; r++)
|
|
817
808
|
if (a = e[r], a !== "_") {
|
|
818
|
-
if (!Gt(e.charCodeAt(r)))
|
|
819
|
-
return !1;
|
|
809
|
+
if (!Gt(e.charCodeAt(r))) return !1;
|
|
820
810
|
n = !0;
|
|
821
811
|
}
|
|
822
812
|
return n && a !== "_";
|
|
823
813
|
}
|
|
824
814
|
}
|
|
825
|
-
if (a === "_")
|
|
826
|
-
return !1;
|
|
815
|
+
if (a === "_") return !1;
|
|
827
816
|
for (; r < t; r++)
|
|
828
817
|
if (a = e[r], a !== "_") {
|
|
829
818
|
if (!Jt(e.charCodeAt(r)))
|
|
@@ -834,15 +823,11 @@ function Xt(e) {
|
|
|
834
823
|
}
|
|
835
824
|
function er(e) {
|
|
836
825
|
var t = e, r = 1, n;
|
|
837
|
-
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")
|
|
838
|
-
return 0;
|
|
826
|
+
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;
|
|
839
827
|
if (n === "0") {
|
|
840
|
-
if (t[1] === "b")
|
|
841
|
-
|
|
842
|
-
if (t[1] === "
|
|
843
|
-
return r * parseInt(t.slice(2), 16);
|
|
844
|
-
if (t[1] === "o")
|
|
845
|
-
return r * parseInt(t.slice(2), 8);
|
|
828
|
+
if (t[1] === "b") return r * parseInt(t.slice(2), 2);
|
|
829
|
+
if (t[1] === "x") return r * parseInt(t.slice(2), 16);
|
|
830
|
+
if (t[1] === "o") return r * parseInt(t.slice(2), 8);
|
|
846
831
|
}
|
|
847
832
|
return r * parseInt(t, 10);
|
|
848
833
|
}
|
|
@@ -950,8 +935,7 @@ function pr(e) {
|
|
|
950
935
|
}
|
|
951
936
|
function fr(e) {
|
|
952
937
|
var t, r, n, a, i, o, s, u = 0, l = null, p, c, f;
|
|
953
|
-
if (t = Ee.exec(e), t === null && (t = Oe.exec(e)), t === null)
|
|
954
|
-
throw new Error("Date resolve error");
|
|
938
|
+
if (t = Ee.exec(e), t === null && (t = Oe.exec(e)), t === null) throw new Error("Date resolve error");
|
|
955
939
|
if (r = +t[1], n = +t[2] - 1, a = +t[3], !t[4])
|
|
956
940
|
return new Date(Date.UTC(r, n, a));
|
|
957
941
|
if (i = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
@@ -980,13 +964,11 @@ var mr = new x("tag:yaml.org,2002:merge", {
|
|
|
980
964
|
}), de = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
981
965
|
\r`;
|
|
982
966
|
function yr(e) {
|
|
983
|
-
if (e === null)
|
|
984
|
-
return !1;
|
|
967
|
+
if (e === null) return !1;
|
|
985
968
|
var t, r, n = 0, a = e.length, i = de;
|
|
986
969
|
for (r = 0; r < a; r++)
|
|
987
970
|
if (t = i.indexOf(e.charAt(r)), !(t > 64)) {
|
|
988
|
-
if (t < 0)
|
|
989
|
-
return !1;
|
|
971
|
+
if (t < 0) return !1;
|
|
990
972
|
n += 6;
|
|
991
973
|
}
|
|
992
974
|
return n % 8 === 0;
|
|
@@ -1014,24 +996,17 @@ var kr = new x("tag:yaml.org,2002:binary", {
|
|
|
1014
996
|
represent: wr
|
|
1015
997
|
}), xr = Object.prototype.hasOwnProperty, Cr = Object.prototype.toString;
|
|
1016
998
|
function Lr(e) {
|
|
1017
|
-
if (e === null)
|
|
1018
|
-
return !0;
|
|
999
|
+
if (e === null) return !0;
|
|
1019
1000
|
var t = [], r, n, a, i, o, s = e;
|
|
1020
1001
|
for (r = 0, n = s.length; r < n; r += 1) {
|
|
1021
|
-
if (a = s[r], o = !1, Cr.call(a) !== "[object Object]")
|
|
1022
|
-
return !1;
|
|
1002
|
+
if (a = s[r], o = !1, Cr.call(a) !== "[object Object]") return !1;
|
|
1023
1003
|
for (i in a)
|
|
1024
1004
|
if (xr.call(a, i))
|
|
1025
|
-
if (!o)
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
return !1;
|
|
1031
|
-
if (t.indexOf(i) === -1)
|
|
1032
|
-
t.push(i);
|
|
1033
|
-
else
|
|
1034
|
-
return !1;
|
|
1005
|
+
if (!o) o = !0;
|
|
1006
|
+
else return !1;
|
|
1007
|
+
if (!o) return !1;
|
|
1008
|
+
if (t.indexOf(i) === -1) t.push(i);
|
|
1009
|
+
else return !1;
|
|
1035
1010
|
}
|
|
1036
1011
|
return !0;
|
|
1037
1012
|
}
|
|
@@ -1044,19 +1019,16 @@ var Nr = new x("tag:yaml.org,2002:omap", {
|
|
|
1044
1019
|
construct: Sr
|
|
1045
1020
|
}), Ir = Object.prototype.toString;
|
|
1046
1021
|
function Tr(e) {
|
|
1047
|
-
if (e === null)
|
|
1048
|
-
return !0;
|
|
1022
|
+
if (e === null) return !0;
|
|
1049
1023
|
var t, r, n, a, i, o = e;
|
|
1050
1024
|
for (i = new Array(o.length), t = 0, r = o.length; t < r; t += 1) {
|
|
1051
|
-
if (n = o[t], Ir.call(n) !== "[object Object]" || (a = Object.keys(n), a.length !== 1))
|
|
1052
|
-
return !1;
|
|
1025
|
+
if (n = o[t], Ir.call(n) !== "[object Object]" || (a = Object.keys(n), a.length !== 1)) return !1;
|
|
1053
1026
|
i[t] = [a[0], n[a[0]]];
|
|
1054
1027
|
}
|
|
1055
1028
|
return !0;
|
|
1056
1029
|
}
|
|
1057
1030
|
function Ar(e) {
|
|
1058
|
-
if (e === null)
|
|
1059
|
-
return [];
|
|
1031
|
+
if (e === null) return [];
|
|
1060
1032
|
var t, r, n, a, i, o = e;
|
|
1061
1033
|
for (i = new Array(o.length), t = 0, r = o.length; t < r; t += 1)
|
|
1062
1034
|
n = o[t], a = Object.keys(n), i[t] = [a[0], n[a[0]]];
|
|
@@ -1068,8 +1040,7 @@ var $r = new x("tag:yaml.org,2002:pairs", {
|
|
|
1068
1040
|
construct: Ar
|
|
1069
1041
|
}), Er = Object.prototype.hasOwnProperty;
|
|
1070
1042
|
function Or(e) {
|
|
1071
|
-
if (e === null)
|
|
1072
|
-
return !0;
|
|
1043
|
+
if (e === null) return !0;
|
|
1073
1044
|
var t, r = e;
|
|
1074
1045
|
for (t in r)
|
|
1075
1046
|
if (Er.call(r, t) && r[t] !== null)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(y,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","axios","@kong/kongponents","vue-router"],n):(y=typeof globalThis<"u"?globalThis:y||self,n(y["kong-ui-public-entities-data-plane-nodes"]={},y.Vue,y["kong-ui-public-i18n"],y.axios))})(this,function(y,n,N,G){"use strict";var Jr=Object.defineProperty;var Xr=(y,n,N)=>n in y?Jr(y,n,{enumerable:!0,configurable:!0,writable:!0,value:N}):y[n]=N;var D=(y,n,N)=>(Xr(y,typeof n!="symbol"?n+"":n,N),N);const ye={modal:{action_button:{confirm:"Confirm",submitting:"Submitting...",ok:"OK"},change_log_level:{title:"Change Log Level ({summary})",summary_with_name:"Node {name}",summary_with_number:"{number} Nodes"},dp_list:{header:{host:"Host",action:"Action",status:"Status"},status:{failed:"Failure",loading:"Loading",pending:"Pending",succeed:"Succeed",not_supported:"Not Supported"}},log_level_disk_space_warning:"If left on for extended periods of time, can result in excess disk space consumption.",log_level_explanation:{debug:"Provides debug information about the plugin’s run loop and each individual plugin or other components.",info:"Provides messages that provide a record of the normal operation of the system.",notice:"Provides messages that provide a record of the normal operation of the system, but also alerts conditions that may require monitoring. Kong does not make a large difference between info and notice.",warn:"Is used to log any abnormal behavior that doesn’t result in dropped transactions but requires further investigation.",error:"Is used for logging errors that result in a request being dropped.",crit:"Is used when Kong is working under critical conditions and not working properly, thus affecting several clients."},revert_to_default_after:{label:"Revert to default after",hours:"hour",minutes:"min",seconds:"seconds"},select_log_level_title:"Select Log Level"},log_level:{debug:"Debug",info:"Info",notice:"Notice",warn:"Warn",error:"Error",crit:"Critical",not_applicable:"N/A"}};function q(){const e=N.createI18n("en-us",ye);return{i18n:e,i18nT:N.i18nTComponent(e)}}var B=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(B||{});function be(){return{getAxiosInstance:(e={})=>{try{const t=n.inject("get-axios-instance",void 0);return typeof t=="function"?t(e):G.create({withCredentials:!0,timeout:3e4,...e})}catch(t){return console.warn("getAxiosInstance:",t.message||t),G.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var t;return((t=e==null?void 0:e.response)==null?void 0:t.headers["x-datadog-trace-id"])||""}}}function we(){return{debounce:(e,t)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},t)}}}}function K(e={}){const{getAxiosInstance:t}=be();return{axiosInstance:t(e)}}const ke={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},_e={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},ve={actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",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.",yaml:"YAML",json:"JSON"},errors:{edit:"The entity could not be edited at this time."}},Ce={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},xe={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},Se={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Ne={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Le={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Ie={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},Ee={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},Te={global:ke,deleteModal:_e,baseForm:ve,baseTable:Ce,baseConfigCard:xe,filter:Se,debouncedFilter:Ne,errors:Le,validationErrors:Ie,toggleModal:Ee};function z(){const e=N.createI18n("en-us",Te);return{i18n:e,i18nT:N.i18nTComponent(e)}}function J(){const e=(r,o)=>(o==null?void 0:o[r])??void 0,t=(r,o)=>{if(r.length!==o.length)return!1;const a=new Set([...r,...o]);for(const i of a){const l=r.filter(u=>u===i).length,s=o.filter(u=>u===i).length;if(l!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,o,a)=>{if(a){if(Object.keys(r).length===Object.keys(o).length)for(const i in r)if(Array.isArray(r[i])&&Array.isArray(o[i])){if(t(r[i],o[i]))continue;return!1}else{if(r[i]===o[i])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(o)}catch{return!1}},sortAlpha:r=>(o,a)=>{let i=o[r]===void 0||o[r]===null?"":o[r],l=a[r]===void 0||a[r]===null?"":a[r];return Array.isArray(o[r])&&(i=o[r][0]),Array.isArray(a[r])&&(l=a[r][0]),i.localeCompare(l)},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}}function Ae(e,t,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:a}=K(e.axiosRequestConfig),{i18n:{t:i}}=z(),{debounce:l}=we(),s=l(async m=>{await Q(m)},200),u=n.ref(!1),c=n.ref(""),f=n.ref(""),d=n.ref([]),g=n.ref([]),p=n.ref(void 0),x=n.unref(t);let v=`${e.apiBaseUrl}${x}`;e.app==="konnect"?v=v.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(v=v.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:W}=J(),O=async()=>{try{u.value=!0;const{data:m}=await a.get(`${v}?size=${r}`);m!=null&&m.next||(p.value=o.fetchedItemsKey in m?m[o.fetchedItemsKey]:[]),g.value=o.fetchedItemsKey in m?m[o.fetchedItemsKey]:[],d.value=g.value}catch{d.value=[],c.value=i("debouncedFilter.errors.fetch")}finally{u.value=!1}},U=n.ref(""),Q=async m=>{var P,S,C;if(U.value!==m)if(U.value=m||"",p.value===void 0)try{if(u.value=!0,c.value="",f.value="",e.app==="konnect"){let k=v+"";m&&(k+=`/${m}`);const{data:_}=await a.get(`${k}?size=${r}`);o.fetchedItemsKey in _?d.value=_[o.fetchedItemsKey]:_!=null&&_.id?d.value=[_]:d.value=[]}else if(m){const k=[];W(m)&&o.searchKeys.includes("id")?k.push((async()=>{const{data:w}=await a.get(`${v}/${m}`);return[w[o.fetchedItemsKey]??w]})()):k.push(...o.searchKeys.filter(w=>w!=="id").map(async w=>{const{data:h}=await a.get(`${v}?${w}=${m}`);return h[o.fetchedItemsKey]}));const _=await Promise.all(k),A=new Set;d.value=[],(P=_==null?void 0:_.forEach)==null||P.call(_,w=>{var h;(h=w==null?void 0:w.forEach)==null||h.call(w,V=>{A.has(V.id)||(A.add(V.id),d.value.push(V))})})}else d.value=g.value}catch(k){((S=k==null?void 0:k.response)==null?void 0:S.status)===404?f.value=i("debouncedFilter.errors.invalid"):(d.value=[],c.value=i("debouncedFilter.errors.fetch"))}finally{u.value=!1}else u.value=!0,f.value="",m?(d.value=(C=p.value)==null?void 0:C.filter(k=>{var _;let A=!1;for(const w of o.searchKeys){const h=typeof k[w]=="string"?(_=k[w])==null?void 0:_.toLowerCase():k[w];h!=null&&h.includes(m.toLowerCase())&&(A=!0)}return A}),(!d.value||!d.value.length)&&(f.value=i("debouncedFilter.errors.invalid"))):d.value=p.value,u.value=!1};return{loading:u,error:c,validationError:f,results:d,allRecords:p,loadItems:O,debouncedQueryChange:s}}function Be(e,t){const r=n.unref(t),o=n.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return o.value.search="",a=>`${o.value.href}/${a}`}function $e(){const{i18n:{t:e}}=z();return{getMessageFromError:t=>{var r,o,a,i;if(!t)return e("errors.unexpected");if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((o=t==null?void 0:t.response)!=null&&o.data){if(t.response.data.detail)return t.response.data.detail;if((a=t.response.data.details)!=null&&a.length)return t.response.data.details.map(l=>{let s=e("errors.unexpected");return l.messages&&typeof l.messages=="object"&&l.messages.length&&(s=l.messages.join(", ")),l.field?`${l.field} - ${s}`:s}).join("; ");if(t.response.data.message){const{message:l}=t.response.data;return Array.isArray(l)?(i=l[0])!=null&&i.constraints?Object.values(l[0].constraints)[0]:l[0]:l}if(typeof t.response.data=="string")return t.response.data;if(typeof t.response.data=="object")return Object.keys(t.response.data).map(l=>`${l} ${t.response.data[l]}`).join(", ")}return t.message||e("errors.unexpected")}}}function Ve(e){const t=window.location.origin,r=t.endsWith("/")?t:`${t}/`;try{const o=e.join("/"),a=`${r}${o}`,i=e.some(l=>l.trim()==="");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))return`${r}${o}`;throw new Error("Invalid url")}catch(o){return console.warn("Failed to build valid URL:",o),""}}function X(e,t){const r=n.ref(n.unref(e)),o=n.ref(n.unref(t)),a=n.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),i=n.computed(()=>o.value.startsWith("/")?new URL(`${window.location.origin}${o.value}`):new URL(o.value));return l=>{const{page:s,pageSize:u,offset:c,sortColumnKey:f,sortColumnOrder:d,query:g}=l;try{let p=new URL(i.value.href);return a.value&&g?(p.search="",p=r.value.isExactMatch?new URL(`${p.href}/${g}/`):new URL(`${p.href}?filter[name][contains]=${g}`)):(a.value||new URLSearchParams(g).forEach((x,v)=>{p.searchParams.append(v,x)}),f&&p.searchParams.append("sort_by",f),d==="desc"&&p.searchParams.append("sort_desc","1"),p.searchParams.append("size",String(u))),c&&s!==1&&p.searchParams.append("offset",String(c)),p.href}catch(p){return console.error("RouteList(fetcher)",p),o.value}}}function De(e,t,r="data"){const o=n.unref(t),{axiosInstance:a}=K(e.axiosRequestConfig),i=X(e,o),l=n.ref({status:B.Idle});return{fetcher:async s=>{var u;try{l.value={status:B.Loading};let c=i(s);c.includes("filter[name]")&&(c=`${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);const f=await a.get(c);if(f.status>=400)throw f;const d=f.data,g=r&&r.replace(/[^\w-_]/gi,"");let p;d[g]&&Array.isArray(d[g])?p=d[g]:Array.isArray(d)?p=d:p=Object.keys(d).length?[d]:[];const x={data:p,total:p.length,...d.offset?{pagination:{offset:d.offset}}:null};return l.value={status:B.Idle,response:x},x}catch(c){const f={data:[],total:0};return s.query&&(((u=c.response)==null?void 0:u.status)===404||c.status===404)?(l.value={status:B.NoResults,response:f,error:c.response?c:{response:c}},f):(l.value={status:B.Error,response:f,error:c.response?c:{response:c}},f)}},fetcherState:l}}function je(){const e=(r,o="_")=>r?r.split(o).map(a=>a.toLowerCase()==="id"?a.toUpperCase():a.charAt(0).toUpperCase()+a.substring(1)).join(" "):"",t=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(t,o=>o.toUpperCase()):"",convertKeyToTitle:e}}const ee=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,te=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(ee);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},re=e=>e==="*"||e==="x"||e==="X",ne=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Oe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],qe=(e,t)=>{if(re(e)||re(t))return 0;const[r,o]=Oe(ne(e),ne(t));return r>o?1:r<o?-1:0},oe=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const o=qe(e[r]||"0",t[r]||"0");if(o!==0)return o}return 0},ze=(e,t)=>{const r=te(e),o=te(t),a=r.pop(),i=o.pop(),l=oe(r,o);return l!==0?l:a&&i?oe(a.split("."),i.split(".")):a||i?a?-1:1:0},ae=(e,t,r)=>{Fe(r);const o=ze(e,t);return ie[r].includes(o)},ie={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},le=Object.keys(ie),Fe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(le.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${le.join("|")}`)},Me=e=>typeof e=="string"&&/^[v\d]/.test(e)&&ee.test(e);function Ue(e){const{gatewayInfo:t,supportedRange:r}=e;if(!t)return!0;const{edition:o,version:a}=t;if(!Me(a))return console.error("Invalid version"),!1;const i=r[o];if(!i)return!1;const[l,s]=i;return!(l&&ae(a,l,"<")||s&&ae(a,s,">"))}function Pe(e){const t=n.ref(0),r=n.ref(0),o=n.ref(!1);return n.watch(e,a=>{a&&!o.value&&(t.value=a.offsetWidth,r.value=a.scrollWidth,o.value=!0)}),{isTruncated:n.computed(()=>t.value<r.value)}}function Ke(){const{i18n:{t:e}}=z();return{utf8Name:t=>/^[\p{N}\p{L}.\-_~]*$/u.test(t)?"":e("validationErrors.utf8Name")}}const Re={useAxios:K,useDebouncedFilter:Ae,useDeleteUrlBuilder:Be,useErrors:$e,useExternalLinkCreator:Ve,useFetcher:De,useFetchUrlBuilder:X,useHelpers:J,useStringHelpers:je,useI18n:z,useGatewayFeatureSupported:Ue,useTruncationDetector:Pe,useValidators:Ke};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function se(e){return typeof e>"u"||e===null}function He(e){return typeof e=="object"&&e!==null}function Ye(e){return Array.isArray(e)?e:se(e)?[]:[e]}function Ze(e,t){var r,o,a,i;if(t)for(i=Object.keys(t),r=0,o=i.length;r<o;r+=1)a=i[r],e[a]=t[a];return e}function We(e,t){var r="",o;for(o=0;o<t;o+=1)r+=e;return r}function Qe(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Ge=se,Je=He,Xe=Ye,et=We,tt=Qe,rt=Ze,R={isNothing:Ge,isObject:Je,toArray:Xe,repeat:et,isNegativeZero:tt,extend:rt};function ce(e,t){var r="",o=e.reason||"(unknown reason)";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+=`
|
|
1
|
+
(function(y,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","axios","@kong/kongponents","vue-router"],n):(y=typeof globalThis<"u"?globalThis:y||self,n(y["kong-ui-public-entities-data-plane-nodes"]={},y.Vue,y["kong-ui-public-i18n"],y.axios))})(this,function(y,n,L,G){"use strict";var Jr=Object.defineProperty;var Xr=(y,n,L)=>n in y?Jr(y,n,{enumerable:!0,configurable:!0,writable:!0,value:L}):y[n]=L;var D=(y,n,L)=>Xr(y,typeof n!="symbol"?n+"":n,L);const ye={modal:{action_button:{confirm:"Confirm",submitting:"Submitting...",ok:"OK"},change_log_level:{title:"Change Log Level ({summary})",summary_with_name:"Node {name}",summary_with_number:"{number} Nodes"},dp_list:{header:{host:"Host",action:"Action",status:"Status"},status:{failed:"Failure",loading:"Loading",pending:"Pending",succeed:"Succeed",not_supported:"Not Supported"}},log_level_disk_space_warning:"If left on for extended periods of time, can result in excess disk space consumption.",log_level_explanation:{debug:"Provides debug information about the plugin’s run loop and each individual plugin or other components.",info:"Provides messages that provide a record of the normal operation of the system.",notice:"Provides messages that provide a record of the normal operation of the system, but also alerts conditions that may require monitoring. Kong does not make a large difference between info and notice.",warn:"Is used to log any abnormal behavior that doesn’t result in dropped transactions but requires further investigation.",error:"Is used for logging errors that result in a request being dropped.",crit:"Is used when Kong is working under critical conditions and not working properly, thus affecting several clients."},revert_to_default_after:{label:"Revert to default after",hours:"hour",minutes:"min",seconds:"seconds"},select_log_level_title:"Select Log Level"},log_level:{debug:"Debug",info:"Info",notice:"Notice",warn:"Warn",error:"Error",crit:"Critical",not_applicable:"N/A"}};function q(){const e=L.createI18n("en-us",ye);return{i18n:e,i18nT:L.i18nTComponent(e)}}var B=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(B||{});function be(){return{getAxiosInstance:(e={})=>{try{const t=n.inject("get-axios-instance",void 0);return typeof t=="function"?t(e):G.create({withCredentials:!0,timeout:3e4,...e})}catch(t){return console.warn("getAxiosInstance:",t.message||t),G.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var t;return((t=e==null?void 0:e.response)==null?void 0:t.headers["x-datadog-trace-id"])||""}}}function we(){return{debounce:(e,t)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},t)}}}}function K(e={}){const{getAxiosInstance:t}=be();return{axiosInstance:t(e)}}const ke={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},_e={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},ve={actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",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.",yaml:"YAML",json:"JSON"},errors:{edit:"The entity could not be edited at this time."}},Ce={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},xe={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},Se={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Ne={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Le={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Ie={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},Ee={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},Te={global:ke,deleteModal:_e,baseForm:ve,baseTable:Ce,baseConfigCard:xe,filter:Se,debouncedFilter:Ne,errors:Le,validationErrors:Ie,toggleModal:Ee};function z(){const e=L.createI18n("en-us",Te);return{i18n:e,i18nT:L.i18nTComponent(e)}}function J(){const e=(r,o)=>(o==null?void 0:o[r])??void 0,t=(r,o)=>{if(r.length!==o.length)return!1;const a=new Set([...r,...o]);for(const i of a){const l=r.filter(u=>u===i).length,s=o.filter(u=>u===i).length;if(l!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,o,a)=>{if(a){if(Object.keys(r).length===Object.keys(o).length)for(const i in r)if(Array.isArray(r[i])&&Array.isArray(o[i])){if(t(r[i],o[i]))continue;return!1}else{if(r[i]===o[i])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(o)}catch{return!1}},sortAlpha:r=>(o,a)=>{let i=o[r]===void 0||o[r]===null?"":o[r],l=a[r]===void 0||a[r]===null?"":a[r];return Array.isArray(o[r])&&(i=o[r][0]),Array.isArray(a[r])&&(l=a[r][0]),i.localeCompare(l)},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}}function Ae(e,t,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:a}=K(e.axiosRequestConfig),{i18n:{t:i}}=z(),{debounce:l}=we(),s=l(async m=>{await Q(m)},200),u=n.ref(!1),c=n.ref(""),f=n.ref(""),d=n.ref([]),g=n.ref([]),p=n.ref(void 0),x=n.unref(t);let v=`${e.apiBaseUrl}${x}`;e.app==="konnect"?v=v.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(v=v.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:W}=J(),O=async()=>{try{u.value=!0;const{data:m}=await a.get(`${v}?size=${r}`);m!=null&&m.next||(p.value=o.fetchedItemsKey in m?m[o.fetchedItemsKey]:[]),g.value=o.fetchedItemsKey in m?m[o.fetchedItemsKey]:[],d.value=g.value}catch{d.value=[],c.value=i("debouncedFilter.errors.fetch")}finally{u.value=!1}},U=n.ref(""),Q=async m=>{var P,S,C;if(U.value!==m)if(U.value=m||"",p.value===void 0)try{if(u.value=!0,c.value="",f.value="",e.app==="konnect"){let k=v+"";m&&(k+=`/${m}`);const{data:_}=await a.get(`${k}?size=${r}`);o.fetchedItemsKey in _?d.value=_[o.fetchedItemsKey]:_!=null&&_.id?d.value=[_]:d.value=[]}else if(m){const k=[];W(m)&&o.searchKeys.includes("id")?k.push((async()=>{const{data:w}=await a.get(`${v}/${m}`);return[w[o.fetchedItemsKey]??w]})()):k.push(...o.searchKeys.filter(w=>w!=="id").map(async w=>{const{data:h}=await a.get(`${v}?${w}=${m}`);return h[o.fetchedItemsKey]}));const _=await Promise.all(k),A=new Set;d.value=[],(P=_==null?void 0:_.forEach)==null||P.call(_,w=>{var h;(h=w==null?void 0:w.forEach)==null||h.call(w,V=>{A.has(V.id)||(A.add(V.id),d.value.push(V))})})}else d.value=g.value}catch(k){((S=k==null?void 0:k.response)==null?void 0:S.status)===404?f.value=i("debouncedFilter.errors.invalid"):(d.value=[],c.value=i("debouncedFilter.errors.fetch"))}finally{u.value=!1}else u.value=!0,f.value="",m?(d.value=(C=p.value)==null?void 0:C.filter(k=>{var _;let A=!1;for(const w of o.searchKeys){const h=typeof k[w]=="string"?(_=k[w])==null?void 0:_.toLowerCase():k[w];h!=null&&h.includes(m.toLowerCase())&&(A=!0)}return A}),(!d.value||!d.value.length)&&(f.value=i("debouncedFilter.errors.invalid"))):d.value=p.value,u.value=!1};return{loading:u,error:c,validationError:f,results:d,allRecords:p,loadItems:O,debouncedQueryChange:s}}function Be(e,t){const r=n.unref(t),o=n.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return o.value.search="",a=>`${o.value.href}/${a}`}function $e(){const{i18n:{t:e}}=z();return{getMessageFromError:t=>{var r,o,a,i;if(!t)return e("errors.unexpected");if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((o=t==null?void 0:t.response)!=null&&o.data){if(t.response.data.detail)return t.response.data.detail;if((a=t.response.data.details)!=null&&a.length)return t.response.data.details.map(l=>{let s=e("errors.unexpected");return l.messages&&typeof l.messages=="object"&&l.messages.length&&(s=l.messages.join(", ")),l.field?`${l.field} - ${s}`:s}).join("; ");if(t.response.data.message){const{message:l}=t.response.data;return Array.isArray(l)?(i=l[0])!=null&&i.constraints?Object.values(l[0].constraints)[0]:l[0]:l}if(typeof t.response.data=="string")return t.response.data;if(typeof t.response.data=="object")return Object.keys(t.response.data).map(l=>`${l} ${t.response.data[l]}`).join(", ")}return t.message||e("errors.unexpected")}}}function Ve(e){const t=window.location.origin,r=t.endsWith("/")?t:`${t}/`;try{const o=e.join("/"),a=`${r}${o}`,i=e.some(l=>l.trim()==="");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))return`${r}${o}`;throw new Error("Invalid url")}catch(o){return console.warn("Failed to build valid URL:",o),""}}function X(e,t){const r=n.ref(n.unref(e)),o=n.ref(n.unref(t)),a=n.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),i=n.computed(()=>o.value.startsWith("/")?new URL(`${window.location.origin}${o.value}`):new URL(o.value));return l=>{const{page:s,pageSize:u,offset:c,sortColumnKey:f,sortColumnOrder:d,query:g}=l;try{let p=new URL(i.value.href);return a.value&&g?(p.search="",p=r.value.isExactMatch?new URL(`${p.href}/${g}/`):new URL(`${p.href}?filter[name][contains]=${g}`)):(a.value||new URLSearchParams(g).forEach((x,v)=>{p.searchParams.append(v,x)}),f&&p.searchParams.append("sort_by",f),d==="desc"&&p.searchParams.append("sort_desc","1"),p.searchParams.append("size",String(u))),c&&s!==1&&p.searchParams.append("offset",String(c)),p.href}catch(p){return console.error("RouteList(fetcher)",p),o.value}}}function De(e,t,r="data"){const o=n.unref(t),{axiosInstance:a}=K(e.axiosRequestConfig),i=X(e,o),l=n.ref({status:B.Idle});return{fetcher:async s=>{var u;try{l.value={status:B.Loading};let c=i(s);c.includes("filter[name]")&&(c=`${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);const f=await a.get(c);if(f.status>=400)throw f;const d=f.data,g=r&&r.replace(/[^\w-_]/gi,"");let p;d[g]&&Array.isArray(d[g])?p=d[g]:Array.isArray(d)?p=d:p=Object.keys(d).length?[d]:[];const x={data:p,total:p.length,...d.offset?{pagination:{offset:d.offset}}:null};return l.value={status:B.Idle,response:x},x}catch(c){const f={data:[],total:0};return s.query&&(((u=c.response)==null?void 0:u.status)===404||c.status===404)?(l.value={status:B.NoResults,response:f,error:c.response?c:{response:c}},f):(l.value={status:B.Error,response:f,error:c.response?c:{response:c}},f)}},fetcherState:l}}function je(){const e=(r,o="_")=>r?r.split(o).map(a=>a.toLowerCase()==="id"?a.toUpperCase():a.charAt(0).toUpperCase()+a.substring(1)).join(" "):"",t=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(t,o=>o.toUpperCase()):"",convertKeyToTitle:e}}const ee=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,te=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(ee);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},re=e=>e==="*"||e==="x"||e==="X",ne=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Oe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],qe=(e,t)=>{if(re(e)||re(t))return 0;const[r,o]=Oe(ne(e),ne(t));return r>o?1:r<o?-1:0},oe=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const o=qe(e[r]||"0",t[r]||"0");if(o!==0)return o}return 0},ze=(e,t)=>{const r=te(e),o=te(t),a=r.pop(),i=o.pop(),l=oe(r,o);return l!==0?l:a&&i?oe(a.split("."),i.split(".")):a||i?a?-1:1:0},ae=(e,t,r)=>{Fe(r);const o=ze(e,t);return ie[r].includes(o)},ie={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},le=Object.keys(ie),Fe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(le.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${le.join("|")}`)},Me=e=>typeof e=="string"&&/^[v\d]/.test(e)&&ee.test(e);function Ue(e){const{gatewayInfo:t,supportedRange:r}=e;if(!t)return!0;const{edition:o,version:a}=t;if(!Me(a))return console.error("Invalid version"),!1;const i=r[o];if(!i)return!1;const[l,s]=i;return!(l&&ae(a,l,"<")||s&&ae(a,s,">"))}function Pe(e){const t=n.ref(0),r=n.ref(0),o=n.ref(!1);return n.watch(e,a=>{a&&!o.value&&(t.value=a.offsetWidth,r.value=a.scrollWidth,o.value=!0)}),{isTruncated:n.computed(()=>t.value<r.value)}}function Ke(){const{i18n:{t:e}}=z();return{utf8Name:t=>/^[\p{N}\p{L}.\-_~]*$/u.test(t)?"":e("validationErrors.utf8Name")}}const Re={useAxios:K,useDebouncedFilter:Ae,useDeleteUrlBuilder:Be,useErrors:$e,useExternalLinkCreator:Ve,useFetcher:De,useFetchUrlBuilder:X,useHelpers:J,useStringHelpers:je,useI18n:z,useGatewayFeatureSupported:Ue,useTruncationDetector:Pe,useValidators:Ke};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function se(e){return typeof e>"u"||e===null}function He(e){return typeof e=="object"&&e!==null}function Ye(e){return Array.isArray(e)?e:se(e)?[]:[e]}function Ze(e,t){var r,o,a,i;if(t)for(i=Object.keys(t),r=0,o=i.length;r<o;r+=1)a=i[r],e[a]=t[a];return e}function We(e,t){var r="",o;for(o=0;o<t;o+=1)r+=e;return r}function Qe(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Ge=se,Je=He,Xe=Ye,et=We,tt=Qe,rt=Ze,R={isNothing:Ge,isObject:Je,toArray:Xe,repeat:et,isNegativeZero:tt,extend:rt};function ce(e,t){var r="",o=e.reason||"(unknown reason)";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+=`
|
|
2
2
|
|
|
3
3
|
`+e.mark.snippet),o+" "+r):o}function j(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ce(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}j.prototype=Object.create(Error.prototype),j.prototype.constructor=j,j.prototype.toString=function(e){return this.name+": "+ce(this,e)};var T=j,nt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ot=["scalar","sequence","mapping"];function at(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(o){t[String(o)]=r})}),t}function it(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(nt.indexOf(r)===-1)throw new T('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},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=at(t.styleAliases||null),ot.indexOf(this.kind)===-1)throw new T('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var b=it;function ue(e,t){var r=[];return e[t].forEach(function(o){var a=r.length;r.forEach(function(i,l){i.tag===o.tag&&i.kind===o.kind&&i.multi===o.multi&&(a=l)}),r[a]=o}),r}function lt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function o(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(o);return e}function H(e){return this.extend(e)}H.prototype.extend=function(e){var t=[],r=[];if(e instanceof b)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new T("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(a){if(!(a instanceof b))throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new T("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new T("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof b))throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(H.prototype);return o.implicit=(this.implicit||[]).concat(t),o.explicit=(this.explicit||[]).concat(r),o.compiledImplicit=ue(o,"implicit"),o.compiledExplicit=ue(o,"explicit"),o.compiledTypeMap=lt(o.compiledImplicit,o.compiledExplicit),o};var st=H,ct=new b("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),ut=new b("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),dt=new b("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),pt=new st({explicit:[ct,ut,dt]});function ft(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function gt(){return null}function mt(e){return e===null}var ht=new b("tag:yaml.org,2002:null",{kind:"scalar",resolve:ft,construct:gt,predicate:mt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function yt(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function bt(e){return e==="true"||e==="True"||e==="TRUE"}function wt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var kt=new b("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yt,construct:bt,predicate:wt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function _t(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function vt(e){return 48<=e&&e<=55}function Ct(e){return 48<=e&&e<=57}function xt(e){if(e===null)return!1;var t=e.length,r=0,o=!1,a;if(!t)return!1;if(a=e[r],(a==="-"||a==="+")&&(a=e[++r]),a==="0"){if(r+1===t)return!0;if(a=e[++r],a==="b"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(a!=="0"&&a!=="1")return!1;o=!0}return o&&a!=="_"}if(a==="x"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(!_t(e.charCodeAt(r)))return!1;o=!0}return o&&a!=="_"}if(a==="o"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(!vt(e.charCodeAt(r)))return!1;o=!0}return o&&a!=="_"}}if(a==="_")return!1;for(;r<t;r++)if(a=e[r],a!=="_"){if(!Ct(e.charCodeAt(r)))return!1;o=!0}return!(!o||a==="_")}function St(e){var t=e,r=1,o;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),o=t[0],(o==="-"||o==="+")&&(o==="-"&&(r=-1),t=t.slice(1),o=t[0]),t==="0")return 0;if(o==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function Nt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!R.isNegativeZero(e)}var Lt=new b("tag:yaml.org,2002:int",{kind:"scalar",resolve:xt,construct:St,predicate:Nt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),It=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Et(e){return!(e===null||!It.test(e)||e[e.length-1]==="_")}function Tt(e){var t,r;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)}var At=/^[-+]?[0-9]+e/;function Bt(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(R.isNegativeZero(e))return"-0.0";return r=e.toString(10),At.test(r)?r.replace("e",".e"):r}function $t(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||R.isNegativeZero(e))}var Vt=new b("tag:yaml.org,2002:float",{kind:"scalar",resolve:Et,construct:Tt,predicate:$t,represent:Bt,defaultStyle:"lowercase"}),Dt=pt.extend({implicit:[ht,kt,Lt,Vt]}),jt=Dt,de=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),pe=new RegExp("^([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]))?))?$");function Ot(e){return e===null?!1:de.exec(e)!==null||pe.exec(e)!==null}function qt(e){var t,r,o,a,i,l,s,u=0,c=null,f,d,g;if(t=de.exec(e),t===null&&(t=pe.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],o=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(r,o,a));if(i=+t[4],l=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],d=+(t[11]||0),c=(f*60+d)*6e4,t[9]==="-"&&(c=-c)),g=new Date(Date.UTC(r,o,a,i,l,s,u)),c&&g.setTime(g.getTime()-c),g}function zt(e){return e.toISOString()}var Ft=new b("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ot,construct:qt,instanceOf:Date,represent:zt});function Mt(e){return e==="<<"||e===null}var Ut=new b("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Mt}),Y=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
4
4
|
\r`;function Pt(e){if(e===null)return!1;var t,r,o=0,a=e.length,i=Y;for(r=0;r<a;r++)if(t=i.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;o+=6}return o%8===0}function Kt(e){var t,r,o=e.replace(/[\r\n=]/g,""),a=o.length,i=Y,l=0,s=[];for(t=0;t<a;t++)t%4===0&&t&&(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)),l=l<<6|i.indexOf(o.charAt(t));return r=a%4*6,r===0?(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)):r===18?(s.push(l>>10&255),s.push(l>>2&255)):r===12&&s.push(l>>4&255),new Uint8Array(s)}function Rt(e){var t="",r=0,o,a,i=e.length,l=Y;for(o=0;o<i;o++)o%3===0&&o&&(t+=l[r>>18&63],t+=l[r>>12&63],t+=l[r>>6&63],t+=l[r&63]),r=(r<<8)+e[o];return a=i%3,a===0?(t+=l[r>>18&63],t+=l[r>>12&63],t+=l[r>>6&63],t+=l[r&63]):a===2?(t+=l[r>>10&63],t+=l[r>>4&63],t+=l[r<<2&63],t+=l[64]):a===1&&(t+=l[r>>2&63],t+=l[r<<4&63],t+=l[64],t+=l[64]),t}function Ht(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Yt=new b("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Pt,construct:Kt,predicate:Ht,represent:Rt}),Zt=Object.prototype.hasOwnProperty,Wt=Object.prototype.toString;function Qt(e){if(e===null)return!0;var t=[],r,o,a,i,l,s=e;for(r=0,o=s.length;r<o;r+=1){if(a=s[r],l=!1,Wt.call(a)!=="[object Object]")return!1;for(i in a)if(Zt.call(a,i))if(!l)l=!0;else return!1;if(!l)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function Gt(e){return e!==null?e:[]}var Jt=new b("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qt,construct:Gt}),Xt=Object.prototype.toString;function er(e){if(e===null)return!0;var t,r,o,a,i,l=e;for(i=new Array(l.length),t=0,r=l.length;t<r;t+=1){if(o=l[t],Xt.call(o)!=="[object Object]"||(a=Object.keys(o),a.length!==1))return!1;i[t]=[a[0],o[a[0]]]}return!0}function tr(e){if(e===null)return[];var t,r,o,a,i,l=e;for(i=new Array(l.length),t=0,r=l.length;t<r;t+=1)o=l[t],a=Object.keys(o),i[t]=[a[0],o[a[0]]];return i}var rr=new b("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:er,construct:tr}),nr=Object.prototype.hasOwnProperty;function or(e){if(e===null)return!0;var t,r=e;for(t in r)if(nr.call(r,t)&&r[t]!==null)return!1;return!0}function ar(e){return e!==null?e:{}}var ir=new b("tag:yaml.org,2002:set",{kind:"mapping",resolve:or,construct:ar});jt.extend({implicit:[Ft,Ut],explicit:[Yt,Jt,rr,ir]});function fe(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
5
|
-
`: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":""}for(var lr=new Array(256),sr=new Array(256),$=0;$<256;$++)lr[$]=fe($)?1:0,sr[$]=fe($);const cr=[];for(let e=0;e<256;++e)cr.push((e+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const{useAxios:rn,useDeleteUrlBuilder:nn,useErrors:ur,useExternalLinkCreator:on,useFetchUrlBuilder:an,useFetcher:ln,useDebouncedFilter:sn,useStringHelpers:cn,useHelpers:un,useGatewayFeatureSupported:dn,useTruncationDetector:pn,useValidators:fn}=Re;var L=(e=>(e.Debug="debug",e.Info="info",e.Notice="notice",e.Warn="warn",e.Error="error",e.Critical="crit",e))(L||{});class dr{constructor(t){D(this,"concurrentTokenSet",new Set);D(this,"concurrentTokenBorrowQueue",[]);for(let r=0;r<t;++r)this.concurrentTokenSet.add(Symbol(`token-${r}`))}hasAvailableConcurrentToken(){return this.concurrentTokenSet.size>0}borrowConcurrentToken(){if(this.concurrentTokenSet.size>0){const t=this.concurrentTokenSet.values().next().value;return this.concurrentTokenSet.delete(t),()=>{this.returnConcurrentToken(t)}}throw new Error("BUG: No available token to borrow")}returnConcurrentToken(t){if(this.concurrentTokenSet.has(t))throw new Error("Token already returned");const r=this.concurrentTokenBorrowQueue.shift();r?r[0](()=>this.returnConcurrentToken(t)):this.concurrentTokenSet.add(t)}async borrowToken(){return this.hasAvailableConcurrentToken()?this.borrowConcurrentToken():new Promise((t,r)=>{this.concurrentTokenBorrowQueue.push([t,r])})}clearWaitingQueue(t){for(;this.concurrentTokenBorrowQueue.length>0;){const[,r]=this.concurrentTokenBorrowQueue.shift();r(t)}}}class Z extends Error{constructor(t,r){super(t,r),this.name="AsyncAbortException"}}class F{constructor(t){D(this,"tokenBucket",null);D(this,"schedule",async t=>{let r;this.tokenBucket&&(r=await this.tokenBucket.borrowToken());try{const o=await t();return r==null||r(),o}catch(o){throw r==null||r(),o}});D(this,"cancelAll",(t,r)=>{var o;(o=this.tokenBucket)==null||o.clearWaitingQueue(new Z(t,r))});t.maxConcurrentAsyncs>0&&(this.tokenBucket=new dr(t.maxConcurrentAsyncs))}}const pr=Object.freeze(Object.defineProperty({__proto__:null,AsyncAbortException:Z,AsyncScheduler:F,useAsyncScheduler:e=>e instanceof F?e:e===null?new F({maxConcurrentAsyncs:0}):new F(e)},Symbol.toStringTag,{value:"Module"})),ge=[L.Debug,L.Info,L.Notice,L.Warn,L.Error,L.Critical],I={useI18n:q,...Object.freeze(Object.defineProperty({__proto__:null,supportedLevels:ge,useDataPlaneLogLevelChecker:e=>{const t=e.requestExecutor??(l=>l()),{getDataPlaneLogLevel:r,setDataPlaneLogLevel:o}=e,{getMessageFromError:a}=ur();return{checkDataPlaneLogLevel:(l,s)=>{const u=n.ref(n.toValue(s==null?void 0:s.currentLogLevelHint)??null);u.value===null&&t(async()=>{u.value=await r(l)}).catch(g=>{g instanceof Z||console.error("Failed to get data plane log level",g)}),s!=null&&s.currentLogLevelHint&&n.watch(()=>n.toValue(s.currentLogLevelHint),g=>{g&&(u.value=g)});const c=n.ref("pending"),f=n.ref(null);return{currentLogLevel:u,updateStatus:c,updateErrorMessage:f,updateLogLevel:async(g,p)=>{c.value="loading",f.value=null;try{await t(()=>o(l,g,p)),u.value=g,c.value="success"}catch(x){f.value=a(x),c.value="error"}}}}}},useFriendlyRevertTime:e=>{const{i18n:t}=q();return n.computed(()=>{const r=n.toValue(e);if(isNaN(r)||r<=0)return"";let o="";const a=r%60;a!==0&&(o+=`${a} ${t.t("modal.revert_to_default_after.seconds")}`);const i=Math.floor(r/60)%60;i!==0&&(o=`${i} ${t.t("modal.revert_to_default_after.minutes")} ${o}`);const l=Math.floor(r/3600);return l!==0&&(o=`${l} ${t.t("modal.revert_to_default_after.hours")} ${o}`),o})},useLogLevelCandidateSelectItems:e=>{const{i18n:t}=q();return n.computed(()=>{const r=n.toValue(e==null?void 0:e.disabled)??[];return ge.map(o=>({label:t.t(`log_level.${o}`),value:o,selected:(e==null?void 0:e.initialSelected)===o,disabled:r.includes(o)}))})},useLogLevelExplanation:e=>{const t=[L.Debug],{i18n:r}=q();return n.computed(()=>{const o=n.toValue(e);return{explanation:r.t(`modal.log_level_explanation.${o}`),warning:t.includes(o)?r.t("modal.log_level_disk_space_warning"):void 0}})}},Symbol.toStringTag,{value:"Module"})),...pr},E="24px",M=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r},fr=e=>(n.pushScopeId("data-v-70feb039"),e=e(),n.popScopeId(),e),gr=["aria-hidden"],mr={key:0,"data-testid":"kui-icon-svg-title"},hr=fr(()=>n.createElementVNode("path",{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",fill:"currentColor"},null,-1)),yr=M(n.defineComponent({__name:"CheckCircleIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:E,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return E}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon check-circle-icon","data-testid":"kui-icon-wrapper-check-circle-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-check-circle-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",mr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),hr],8,gr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-70feb039"]]),br=e=>(n.pushScopeId("data-v-8da5fd79"),e=e(),n.popScopeId(),e),wr=["aria-hidden"],kr={key:0,"data-testid":"kui-icon-svg-title"},_r=br(()=>n.createElementVNode("path",{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",fill:"currentColor"},null,-1)),vr=M(n.defineComponent({__name:"ClearIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:E,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return E}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon clear-icon","data-testid":"kui-icon-wrapper-clear-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-clear-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",kr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),_r],8,wr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-8da5fd79"]]),Cr=e=>(n.pushScopeId("data-v-13db3c47"),e=e(),n.popScopeId(),e),xr=["aria-hidden"],Sr={key:0,"data-testid":"kui-icon-svg-title"},Nr=Cr(()=>n.createElementVNode("path",{d:"M4 17V14H20V17H4ZM4 10V7H20V10H4Z",fill:"currentColor"},null,-1)),Lr=M(n.defineComponent({__name:"EqualIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:E,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return E}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon equal-icon","data-testid":"kui-icon-wrapper-equal-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-equal-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",Sr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),Nr],8,xr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-13db3c47"]]),me=e=>(n.pushScopeId("data-v-68bcb00a"),e=e(),n.popScopeId(),e),Ir=["aria-hidden"],Er={key:0,"data-testid":"kui-icon-svg-title"},Tr=me(()=>n.createElementVNode("path",{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",fill:"currentColor","transform-origin":"center"},null,-1)),Ar=me(()=>n.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),Br=M(n.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:E,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return E}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",Er,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),Tr,Ar],8,Ir))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-68bcb00a"]]),$r={"data-testid":"log-change-action"},Vr={key:0},Dr={"data-testid":"log-change-action-current-level"},jr={key:0},Or={"data-testid":"log-change-action-target-level"},qr={"data-testid":"log-change-status"},zr=n.defineComponent({__name:"CLLModalNodeRow",props:{dataPlaneId:{},hostname:{},hasDllCapability:{type:Boolean},targetLogLevel:{},checkLogLevel:{},logLevelHint:{}},setup(e,{expose:t}){const r=e,{i18n:o}=I.useI18n();let a=n.ref("not_supported"),i=n.ref("not_supported"),l=n.ref(null),s=async()=>{};r.hasDllCapability&&({currentLogLevel:a,updateStatus:i,updateErrorMessage:l,updateLogLevel:s}=r.checkLogLevel(r.dataPlaneId,{currentLogLevelHint:()=>r.logLevelHint??null})),t({updateLogLevel:s});const u=n.computed(()=>{switch(i.value){case"success":return"success";case"error":return"danger";case"loading":case"pending":return"warning";default:return"neutral"}}),c=n.computed(()=>{switch(i.value){case"success":return o.t("modal.dp_list.status.succeed");case"error":return o.t("modal.dp_list.status.failed");case"pending":return o.t("modal.dp_list.status.pending");case"loading":return o.t("modal.dp_list.status.loading");default:return o.t("modal.dp_list.status.not_supported")}}),f=n.computed(()=>{switch(i.value){case"success":return yr;case"error":case"not_supported":return vr;case"loading":return Br;default:return Lr}});return(d,g)=>{const p=n.resolveComponent("KSkeleton"),x=n.resolveComponent("KBadge"),v=n.resolveComponent("KTooltip");return n.openBlock(),n.createElementBlock("tr",null,[n.createElementVNode("td",null,n.toDisplayString(d.hostname),1),n.createElementVNode("td",$r,[n.unref(a)==="not_supported"?(n.openBlock(),n.createElementBlock("span",Vr,n.toDisplayString(n.unref(o).t("log_level.not_applicable")),1)):n.unref(a)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("span",Dr,n.toDisplayString(n.unref(o).t(`log_level.${n.unref(a)}`)),1),n.unref(a)!==d.targetLogLevel?(n.openBlock(),n.createElementBlock("span",jr,[n.createTextVNode(" → "),n.createElementVNode("span",Or,n.toDisplayString(n.unref(o).t(`log_level.${d.targetLogLevel}`)),1)])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(p,{key:1,type:"spinner"}))]),n.createElementVNode("td",qr,[n.unref(l)?(n.openBlock(),n.createBlock(v,{key:0,text:n.unref(l)},{default:n.withCtx(()=>[n.createVNode(x,{appearance:u.value,class:"badge-cell"},{icon:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.value)))]),default:n.withCtx(()=>[n.createTextVNode(" "+n.toDisplayString(c.value),1)]),_:1},8,["appearance"])]),_:1},8,["text"])):(n.openBlock(),n.createBlock(x,{key:1,appearance:u.value,class:"badge-cell"},{icon:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.value)))]),default:n.withCtx(()=>[n.createTextVNode(" "+n.toDisplayString(c.value),1)]),_:1},8,["appearance"]))])])}}}),he=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r},Fr=he(zr,[["__scopeId","data-v-ac7205dd"]]),Mr={class:"explanation-wrapper"},Ur={key:0,class:"warning-message","data-testid":"log-level-warning-message"},Pr={class:"revert-after-wrapper"},Kr={class:"time"},Rr={class:"seconds"},Hr={class:"formatted-time","data-testid":"log-level-timeout-formatted"},Yr={class:"data-plane-node-list","data-testid":"data-plane-node-list"},Zr={style:{width:"40%"}},Wr={style:{width:"40%"}},Qr=he(n.defineComponent({name:"ChangeLogLevelModal",__name:"ChangeLogLevelModal",props:n.mergeModels({instanceList:{},instanceLogLevel:{},requests:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:["update:visible"],setup(e){const t=e,r=n.useModel(e,"visible"),o=L.Notice,{i18n:a}=I.useI18n(),i=n.ref("edit"),l=n.ref(o),s=n.ref("60"),u=n.computed(()=>Math.floor(Number(s.value))),c=n.computed(()=>t.instanceList.filter(S=>S.hasDLLCapability!==!1)),f=n.computed(()=>{const S=c.value.length===1?a.t("modal.change_log_level.summary_with_name",{name:c.value[0].hostname}):a.t("modal.change_log_level.summary_with_number",{number:`${c.value.length}`});return a.t("modal.change_log_level.title",{summary:S})}),d=n.computed(()=>i.value==="submitting"||isNaN(u.value)||u.value<=0||c.value.length===0),g=I.useLogLevelCandidateSelectItems({initialSelected:o}),p=I.useLogLevelExplanation(l),x=I.useFriendlyRevertTime(u),v=I.useAsyncScheduler(t.requests.scheduler===void 0?{maxConcurrentAsyncs:10}:t.requests.scheduler),{checkDataPlaneLogLevel:W}=I.useDataPlaneLogLevelChecker({getDataPlaneLogLevel:t.requests.getDataPlaneLogLevel,setDataPlaneLogLevel:t.requests.setDataPlaneLogLevel,requestExecutor:v.schedule}),O=new Map,U=(S,C)=>{C===null?O.delete(S):O.set(S,C)},Q=async()=>{if(i.value!=="edit"){m();return}i.value="submitting";const S=Array.from(O.values()).map(C=>C.updateLogLevel(l.value,u.value));try{await Promise.all(S)}catch(C){console.error("Failed to update log level",C)}finally{i.value="submitted"}},m=()=>{r.value=!1,s.value="60",i.value="edit",l.value=o},P=n.computed(()=>{switch(i.value){case"submitting":return a.t("modal.action_button.submitting");case"submitted":return a.t("modal.action_button.ok");default:return a.t("modal.action_button.confirm")}});return(S,C)=>{const k=n.resolveComponent("KSelect"),_=n.resolveComponent("KLabel"),A=n.resolveComponent("KInput"),w=n.resolveComponent("KModal");return n.openBlock(),n.createBlock(w,{"action-button-disabled":d.value,"action-button-text":P.value,"data-testid":"change-log-level-modal","hide-cancel-button":!0,"hide-close-icon":i.value==="submitting","max-width":"640px",title:f.value,visible:r.value,onCancel:m,onProceed:Q},{default:n.withCtx(()=>[i.value==="edit"?(n.openBlock(),n.createBlock(k,{key:0,modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=h=>l.value=h),class:"log-level-select","data-testid":"log-level-select",items:n.unref(g),label:n.unref(a).t("modal.select_log_level_title")},null,8,["modelValue","items","label"])):n.createCommentVNode("",!0),n.createElementVNode("div",Mr,[n.createVNode(_,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a).t(`log_level.${l.value}`)),1)]),_:1}),n.createElementVNode("div",null,n.toDisplayString(n.unref(p).explanation),1),n.unref(p).warning?(n.openBlock(),n.createElementBlock("div",Ur,n.toDisplayString(n.unref(p).warning),1)):n.createCommentVNode("",!0)]),n.createElementVNode("div",Pr,[n.createVNode(_,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a).t("modal.revert_to_default_after.label")),1)]),_:1}),n.createElementVNode("div",Kr,[n.createVNode(A,{modelValue:s.value,"onUpdate:modelValue":C[1]||(C[1]=h=>s.value=h),class:"time-input","data-testid":"log-level-timeout",disabled:i.value!=="edit",error:u.value<=0||isNaN(u.value),min:"1",type:"number"},null,8,["modelValue","disabled","error"]),n.createElementVNode("span",Rr,n.toDisplayString(n.unref(a).t("modal.revert_to_default_after.seconds")),1),n.createElementVNode("span",Hr,n.toDisplayString(n.unref(x)),1)])]),n.createElementVNode("table",Yr,[n.createElementVNode("thead",null,[n.createElementVNode("th",Zr,n.toDisplayString(n.unref(a).t("modal.dp_list.header.host")),1),n.createElementVNode("th",Wr,n.toDisplayString(n.unref(a).t("modal.dp_list.header.action")),1),n.createElementVNode("th",null,n.toDisplayString(n.unref(a).t("modal.dp_list.header.status")),1)]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.instanceList,h=>{var V;return n.openBlock(),n.createBlock(Fr,{key:h.id,ref_for:!0,ref:Gr=>U(h.id,Gr),"check-log-level":n.unref(W),"data-plane-id":h.id,"data-testid":`data-plane-node-list-row-${h.id}`,"has-dll-capability":h.hasDLLCapability??!0,hostname:h.hostname,"log-level-hint":(V=t.instanceLogLevel)==null?void 0:V.get(h.id),"target-log-level":l.value},null,8,["check-log-level","data-plane-id","data-testid","has-dll-capability","hostname","log-level-hint","target-log-level"])}),128))])])]),_:1},8,["action-button-disabled","action-button-text","hide-close-icon","title","visible"])}}}),[["__scopeId","data-v-983a59ac"]]);y.ChangeLogLevelModal=Qr,y.LogLevel=L,y.composables=I,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
|
|
5
|
+
`: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":""}for(var lr=new Array(256),sr=new Array(256),$=0;$<256;$++)lr[$]=fe($)?1:0,sr[$]=fe($);const cr=[];for(let e=0;e<256;++e)cr.push((e+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const{useAxios:rn,useDeleteUrlBuilder:nn,useErrors:ur,useExternalLinkCreator:on,useFetchUrlBuilder:an,useFetcher:ln,useDebouncedFilter:sn,useStringHelpers:cn,useHelpers:un,useGatewayFeatureSupported:dn,useTruncationDetector:pn,useValidators:fn}=Re;var N=(e=>(e.Debug="debug",e.Info="info",e.Notice="notice",e.Warn="warn",e.Error="error",e.Critical="crit",e))(N||{});class dr{constructor(t){D(this,"concurrentTokenSet",new Set);D(this,"concurrentTokenBorrowQueue",[]);for(let r=0;r<t;++r)this.concurrentTokenSet.add(Symbol(`token-${r}`))}hasAvailableConcurrentToken(){return this.concurrentTokenSet.size>0}borrowConcurrentToken(){if(this.concurrentTokenSet.size>0){const t=this.concurrentTokenSet.values().next().value;return this.concurrentTokenSet.delete(t),()=>{this.returnConcurrentToken(t)}}throw new Error("BUG: No available token to borrow")}returnConcurrentToken(t){if(this.concurrentTokenSet.has(t))throw new Error("Token already returned");const r=this.concurrentTokenBorrowQueue.shift();r?r[0](()=>this.returnConcurrentToken(t)):this.concurrentTokenSet.add(t)}async borrowToken(){return this.hasAvailableConcurrentToken()?this.borrowConcurrentToken():new Promise((t,r)=>{this.concurrentTokenBorrowQueue.push([t,r])})}clearWaitingQueue(t){for(;this.concurrentTokenBorrowQueue.length>0;){const[,r]=this.concurrentTokenBorrowQueue.shift();r(t)}}}class Z extends Error{constructor(t,r){super(t,r),this.name="AsyncAbortException"}}class F{constructor(t){D(this,"tokenBucket",null);D(this,"schedule",async t=>{let r;this.tokenBucket&&(r=await this.tokenBucket.borrowToken());try{const o=await t();return r==null||r(),o}catch(o){throw r==null||r(),o}});D(this,"cancelAll",(t,r)=>{var o;(o=this.tokenBucket)==null||o.clearWaitingQueue(new Z(t,r))});t.maxConcurrentAsyncs>0&&(this.tokenBucket=new dr(t.maxConcurrentAsyncs))}}const pr=Object.freeze(Object.defineProperty({__proto__:null,AsyncAbortException:Z,AsyncScheduler:F,useAsyncScheduler:e=>e instanceof F?e:e===null?new F({maxConcurrentAsyncs:0}):new F(e)},Symbol.toStringTag,{value:"Module"})),ge=[N.Debug,N.Info,N.Notice,N.Warn,N.Error,N.Critical],I={useI18n:q,...Object.freeze(Object.defineProperty({__proto__:null,supportedLevels:ge,useDataPlaneLogLevelChecker:e=>{const t=e.requestExecutor??(l=>l()),{getDataPlaneLogLevel:r,setDataPlaneLogLevel:o}=e,{getMessageFromError:a}=ur();return{checkDataPlaneLogLevel:(l,s)=>{const u=n.ref(n.toValue(s==null?void 0:s.currentLogLevelHint)??null);u.value===null&&t(async()=>{u.value=await r(l)}).catch(g=>{g instanceof Z||console.error("Failed to get data plane log level",g)}),s!=null&&s.currentLogLevelHint&&n.watch(()=>n.toValue(s.currentLogLevelHint),g=>{g&&(u.value=g)});const c=n.ref("pending"),f=n.ref(null);return{currentLogLevel:u,updateStatus:c,updateErrorMessage:f,updateLogLevel:async(g,p)=>{c.value="loading",f.value=null;try{await t(()=>o(l,g,p)),u.value=g,c.value="success"}catch(x){f.value=a(x),c.value="error"}}}}}},useFriendlyRevertTime:e=>{const{i18n:t}=q();return n.computed(()=>{const r=n.toValue(e);if(isNaN(r)||r<=0)return"";let o="";const a=r%60;a!==0&&(o+=`${a} ${t.t("modal.revert_to_default_after.seconds")}`);const i=Math.floor(r/60)%60;i!==0&&(o=`${i} ${t.t("modal.revert_to_default_after.minutes")} ${o}`);const l=Math.floor(r/3600);return l!==0&&(o=`${l} ${t.t("modal.revert_to_default_after.hours")} ${o}`),o})},useLogLevelCandidateSelectItems:e=>{const{i18n:t}=q();return n.computed(()=>{const r=n.toValue(e==null?void 0:e.disabled)??[];return ge.map(o=>({label:t.t(`log_level.${o}`),value:o,selected:(e==null?void 0:e.initialSelected)===o,disabled:r.includes(o)}))})},useLogLevelExplanation:e=>{const t=[N.Debug],{i18n:r}=q();return n.computed(()=>{const o=n.toValue(e);return{explanation:r.t(`modal.log_level_explanation.${o}`),warning:t.includes(o)?r.t("modal.log_level_disk_space_warning"):void 0}})}},Symbol.toStringTag,{value:"Module"})),...pr},E="24px",M=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r},fr=e=>(n.pushScopeId("data-v-70feb039"),e=e(),n.popScopeId(),e),gr=["aria-hidden"],mr={key:0,"data-testid":"kui-icon-svg-title"},hr=fr(()=>n.createElementVNode("path",{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",fill:"currentColor"},null,-1)),yr=M(n.defineComponent({__name:"CheckCircleIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:E,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return E}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon check-circle-icon","data-testid":"kui-icon-wrapper-check-circle-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-check-circle-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",mr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),hr],8,gr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-70feb039"]]),br=e=>(n.pushScopeId("data-v-8da5fd79"),e=e(),n.popScopeId(),e),wr=["aria-hidden"],kr={key:0,"data-testid":"kui-icon-svg-title"},_r=br(()=>n.createElementVNode("path",{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",fill:"currentColor"},null,-1)),vr=M(n.defineComponent({__name:"ClearIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:E,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return E}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon clear-icon","data-testid":"kui-icon-wrapper-clear-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-clear-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",kr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),_r],8,wr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-8da5fd79"]]),Cr=e=>(n.pushScopeId("data-v-13db3c47"),e=e(),n.popScopeId(),e),xr=["aria-hidden"],Sr={key:0,"data-testid":"kui-icon-svg-title"},Nr=Cr(()=>n.createElementVNode("path",{d:"M4 17V14H20V17H4ZM4 10V7H20V10H4Z",fill:"currentColor"},null,-1)),Lr=M(n.defineComponent({__name:"EqualIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:E,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return E}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon equal-icon","data-testid":"kui-icon-wrapper-equal-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-equal-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",Sr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),Nr],8,xr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-13db3c47"]]),me=e=>(n.pushScopeId("data-v-68bcb00a"),e=e(),n.popScopeId(),e),Ir=["aria-hidden"],Er={key:0,"data-testid":"kui-icon-svg-title"},Tr=me(()=>n.createElementVNode("path",{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",fill:"currentColor","transform-origin":"center"},null,-1)),Ar=me(()=>n.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),Br=M(n.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:E,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return E}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",Er,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),Tr,Ar],8,Ir))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-68bcb00a"]]),$r={"data-testid":"log-change-action"},Vr={key:0},Dr={"data-testid":"log-change-action-current-level"},jr={key:0},Or={"data-testid":"log-change-action-target-level"},qr={"data-testid":"log-change-status"},zr=n.defineComponent({__name:"CLLModalNodeRow",props:{dataPlaneId:{},hostname:{},hasDllCapability:{type:Boolean},targetLogLevel:{},checkLogLevel:{},logLevelHint:{}},setup(e,{expose:t}){const r=e,{i18n:o}=I.useI18n();let a=n.ref("not_supported"),i=n.ref("not_supported"),l=n.ref(null),s=async()=>{};r.hasDllCapability&&({currentLogLevel:a,updateStatus:i,updateErrorMessage:l,updateLogLevel:s}=r.checkLogLevel(r.dataPlaneId,{currentLogLevelHint:()=>r.logLevelHint??null})),t({updateLogLevel:s});const u=n.computed(()=>{switch(i.value){case"success":return"success";case"error":return"danger";case"loading":case"pending":return"warning";default:return"neutral"}}),c=n.computed(()=>{switch(i.value){case"success":return o.t("modal.dp_list.status.succeed");case"error":return o.t("modal.dp_list.status.failed");case"pending":return o.t("modal.dp_list.status.pending");case"loading":return o.t("modal.dp_list.status.loading");default:return o.t("modal.dp_list.status.not_supported")}}),f=n.computed(()=>{switch(i.value){case"success":return yr;case"error":case"not_supported":return vr;case"loading":return Br;default:return Lr}});return(d,g)=>{const p=n.resolveComponent("KSkeleton"),x=n.resolveComponent("KBadge"),v=n.resolveComponent("KTooltip");return n.openBlock(),n.createElementBlock("tr",null,[n.createElementVNode("td",null,n.toDisplayString(d.hostname),1),n.createElementVNode("td",$r,[n.unref(a)==="not_supported"?(n.openBlock(),n.createElementBlock("span",Vr,n.toDisplayString(n.unref(o).t("log_level.not_applicable")),1)):n.unref(a)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("span",Dr,n.toDisplayString(n.unref(o).t(`log_level.${n.unref(a)}`)),1),n.unref(a)!==d.targetLogLevel?(n.openBlock(),n.createElementBlock("span",jr,[n.createTextVNode(" → "),n.createElementVNode("span",Or,n.toDisplayString(n.unref(o).t(`log_level.${d.targetLogLevel}`)),1)])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(p,{key:1,type:"spinner"}))]),n.createElementVNode("td",qr,[n.unref(l)?(n.openBlock(),n.createBlock(v,{key:0,text:n.unref(l)},{default:n.withCtx(()=>[n.createVNode(x,{appearance:u.value,class:"badge-cell"},{icon:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.value)))]),default:n.withCtx(()=>[n.createTextVNode(" "+n.toDisplayString(c.value),1)]),_:1},8,["appearance"])]),_:1},8,["text"])):(n.openBlock(),n.createBlock(x,{key:1,appearance:u.value,class:"badge-cell"},{icon:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.value)))]),default:n.withCtx(()=>[n.createTextVNode(" "+n.toDisplayString(c.value),1)]),_:1},8,["appearance"]))])])}}}),he=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r},Fr=he(zr,[["__scopeId","data-v-ac7205dd"]]),Mr={class:"explanation-wrapper"},Ur={key:0,class:"warning-message","data-testid":"log-level-warning-message"},Pr={class:"revert-after-wrapper"},Kr={class:"time"},Rr={class:"seconds"},Hr={class:"formatted-time","data-testid":"log-level-timeout-formatted"},Yr={class:"data-plane-node-list","data-testid":"data-plane-node-list"},Zr={style:{width:"40%"}},Wr={style:{width:"40%"}},Qr=he(n.defineComponent({name:"ChangeLogLevelModal",__name:"ChangeLogLevelModal",props:n.mergeModels({instanceList:{},instanceLogLevel:{},requests:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:["update:visible"],setup(e){const t=e,r=n.useModel(e,"visible"),o=N.Notice,{i18n:a}=I.useI18n(),i=n.ref("edit"),l=n.ref(o),s=n.ref("60"),u=n.computed(()=>Math.floor(Number(s.value))),c=n.computed(()=>t.instanceList.filter(S=>S.hasDLLCapability!==!1)),f=n.computed(()=>{const S=c.value.length===1?a.t("modal.change_log_level.summary_with_name",{name:c.value[0].hostname}):a.t("modal.change_log_level.summary_with_number",{number:`${c.value.length}`});return a.t("modal.change_log_level.title",{summary:S})}),d=n.computed(()=>i.value==="submitting"||isNaN(u.value)||u.value<=0||c.value.length===0),g=I.useLogLevelCandidateSelectItems({initialSelected:o}),p=I.useLogLevelExplanation(l),x=I.useFriendlyRevertTime(u),v=I.useAsyncScheduler(t.requests.scheduler===void 0?{maxConcurrentAsyncs:10}:t.requests.scheduler),{checkDataPlaneLogLevel:W}=I.useDataPlaneLogLevelChecker({getDataPlaneLogLevel:t.requests.getDataPlaneLogLevel,setDataPlaneLogLevel:t.requests.setDataPlaneLogLevel,requestExecutor:v.schedule}),O=new Map,U=(S,C)=>{C===null?O.delete(S):O.set(S,C)},Q=async()=>{if(i.value!=="edit"){m();return}i.value="submitting";const S=Array.from(O.values()).map(C=>C.updateLogLevel(l.value,u.value));try{await Promise.all(S)}catch(C){console.error("Failed to update log level",C)}finally{i.value="submitted"}},m=()=>{r.value=!1,s.value="60",i.value="edit",l.value=o},P=n.computed(()=>{switch(i.value){case"submitting":return a.t("modal.action_button.submitting");case"submitted":return a.t("modal.action_button.ok");default:return a.t("modal.action_button.confirm")}});return(S,C)=>{const k=n.resolveComponent("KSelect"),_=n.resolveComponent("KLabel"),A=n.resolveComponent("KInput"),w=n.resolveComponent("KModal");return n.openBlock(),n.createBlock(w,{"action-button-disabled":d.value,"action-button-text":P.value,"data-testid":"change-log-level-modal","hide-cancel-button":!0,"hide-close-icon":i.value==="submitting","max-width":"640px",title:f.value,visible:r.value,onCancel:m,onProceed:Q},{default:n.withCtx(()=>[i.value==="edit"?(n.openBlock(),n.createBlock(k,{key:0,modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=h=>l.value=h),class:"log-level-select","data-testid":"log-level-select",items:n.unref(g),label:n.unref(a).t("modal.select_log_level_title")},null,8,["modelValue","items","label"])):n.createCommentVNode("",!0),n.createElementVNode("div",Mr,[n.createVNode(_,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a).t(`log_level.${l.value}`)),1)]),_:1}),n.createElementVNode("div",null,n.toDisplayString(n.unref(p).explanation),1),n.unref(p).warning?(n.openBlock(),n.createElementBlock("div",Ur,n.toDisplayString(n.unref(p).warning),1)):n.createCommentVNode("",!0)]),n.createElementVNode("div",Pr,[n.createVNode(_,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a).t("modal.revert_to_default_after.label")),1)]),_:1}),n.createElementVNode("div",Kr,[n.createVNode(A,{modelValue:s.value,"onUpdate:modelValue":C[1]||(C[1]=h=>s.value=h),class:"time-input","data-testid":"log-level-timeout",disabled:i.value!=="edit",error:u.value<=0||isNaN(u.value),min:"1",type:"number"},null,8,["modelValue","disabled","error"]),n.createElementVNode("span",Rr,n.toDisplayString(n.unref(a).t("modal.revert_to_default_after.seconds")),1),n.createElementVNode("span",Hr,n.toDisplayString(n.unref(x)),1)])]),n.createElementVNode("table",Yr,[n.createElementVNode("thead",null,[n.createElementVNode("th",Zr,n.toDisplayString(n.unref(a).t("modal.dp_list.header.host")),1),n.createElementVNode("th",Wr,n.toDisplayString(n.unref(a).t("modal.dp_list.header.action")),1),n.createElementVNode("th",null,n.toDisplayString(n.unref(a).t("modal.dp_list.header.status")),1)]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.instanceList,h=>{var V;return n.openBlock(),n.createBlock(Fr,{key:h.id,ref_for:!0,ref:Gr=>U(h.id,Gr),"check-log-level":n.unref(W),"data-plane-id":h.id,"data-testid":`data-plane-node-list-row-${h.id}`,"has-dll-capability":h.hasDLLCapability??!0,hostname:h.hostname,"log-level-hint":(V=t.instanceLogLevel)==null?void 0:V.get(h.id),"target-log-level":l.value},null,8,["check-log-level","data-plane-id","data-testid","has-dll-capability","hostname","log-level-hint","target-log-level"])}),128))])])]),_:1},8,["action-button-disabled","action-button-text","hide-close-icon","title","visible"])}}}),[["__scopeId","data-v-983a59ac"]]);y.ChangeLogLevelModal=Qr,y.LogLevel=N,y.composables=I,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-data-plane-nodes",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-data-plane-nodes.umd.js",
|
|
6
6
|
"module": "./dist/entities-data-plane-nodes.es.js",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"@kong/kongponents": "9.0.8",
|
|
25
25
|
"axios": "^1.6.8",
|
|
26
26
|
"vue": ">= 3.3.13 < 4",
|
|
27
|
-
"vue-router": "^4.3.
|
|
27
|
+
"vue-router": "^4.3.3",
|
|
28
28
|
"@kong-ui-public/i18n": "^2.2.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@kong/design-tokens": "1.15.1",
|
|
32
32
|
"@kong/kongponents": "9.0.8",
|
|
33
33
|
"axios": "^1.6.8",
|
|
34
|
-
"vue": "^3.4.
|
|
35
|
-
"vue-router": "^4.3.
|
|
34
|
+
"vue": "^3.4.31",
|
|
35
|
+
"vue-router": "^4.3.3",
|
|
36
36
|
"@kong-ui-public/i18n": "^2.2.2"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@kong/icons": "^1.14.2",
|
|
54
|
-
"@kong-ui-public/entities-shared": "^3.4.
|
|
54
|
+
"@kong-ui-public/entities-shared": "^3.4.4"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"dev": "cross-env USE_SANDBOX=true vite",
|