@kong-ui-public/entities-consumer-credentials 2.1.58 → 2.1.59

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.
@@ -168,7 +168,7 @@ function et() {
168
168
  return {
169
169
  getAxiosInstance: (e = {}) => {
170
170
  try {
171
- const r = Be("get-axios-instance");
171
+ const r = Be("get-axios-instance", void 0);
172
172
  return typeof r == "function" ? r(e) : me.create({
173
173
  withCredentials: !0,
174
174
  timeout: 3e4,
@@ -1,4 +1,4 @@
1
- (function(V,t){typeof exports=="object"&&typeof module<"u"?t(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"],t):(V=typeof globalThis<"u"?globalThis:V||self,t(V["kong-ui-public-entities-consumer-credentials"]={},V.Vue,V["kong-ui-public-i18n"],V.axios))})(this,function(V,t,W,ae){"use strict";const _e={credentials:{title:"Consumer Credentials",list:{toolbar_actions:{acls:{new:"New ACL Credential"},"basic-auth":{new:"New Basic Auth Credential"},"key-auth":{new:"New Key Auth Credential"},"key-auth-enc":{new:"New Key Auth Encrypted Credential"},oauth2:{new:"New OAuth 2.0 Credential"},"hmac-auth":{new:"New HMAC Credential"},jwt:{new:"New JWT Credential"}},table_headers:{acls:{group:"Group",created_at:"Created At",tags:"Tags"},"basic-auth":{password:"Credential",username:"Username",created_at:"Created at",tags:"Tags"},"key-auth":{key:"Key",created_at:"Created at",tags:"Tags"},"key-auth-enc":{key:"Key",created_at:"Created at",tags:"Tags"},oauth2:{name:"Name",client_id:"Client ID",client_secret:"Client secret",created_at:"Created at",tags:"Tags"},"hmac-auth":{username:"Username",secret:"Secret",created_at:"Created at",tags:"Tags"},jwt:{key:"Key",algorithm:"Algorithm",created_at:"Created at",tags:"Tags"}},empty_state:{acls:{title:"Configure a New ACL Credential",cta:"New ACL Credential"},"basic-auth":{title:"Configure a New Basic Auth Credential",cta:"New Basic Auth Credential"},"key-auth":{title:"Configure a New Key Auth Credential",cta:"New Key Auth Credential"},"key-auth-enc":{title:"Configure a New Key Auth Encrypted Credential",cta:"New Key Auth Encrypted Credential"},oauth2:{title:"Configure a New OAuth 2.0 Credential",cta:"New OAuth 2.0 Credential"},"hmac-auth":{title:"Configure a New HMAC Credential",cta:"New HMAC Credential"},jwt:{title:"Configure a New JWT Credential",cta:"New JWT Credential"}}},actions:{copy_id:"Copy ID",copy_credential:"Copy Credential",copy_key:"Copy Key",copy_secret:"Copy Secret",copy_json:"Copy JSON",edit:"Edit",delete:"Delete"},delete:{acls:{title:"Delete an ACL Credential"},"basic-auth":{title:"Delete a Basic Auth Credential"},"key-auth":{title:"Delete a Key Auth Credential"},"key-auth-enc":{title:"Delete a Key Auth Encrypted Credential"},oauth2:{title:"Delete an OAuth 2.0 Credential"},"hmac-auth":{title:"Delete an HMAC Credential"},jwt:{title:"Delete a JWT Credential"},description:"This action cannot be reversed."},error:{general:"Credentials could not be retrieved",delete:"The credential could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}}};function xe(){const e=W.createI18n("en-us",_e);return{i18n:e,i18nT:W.i18nTComponent(e)}}const Ne={useI18n:xe},Se={list:{konnect:"/api/runtime_groups/{controlPlaneId}/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}};var ie=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e))(ie||{}),F=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(F||{});function Te(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance");return typeof n=="function"?n(e):ae.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),ae.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var n;return((n=e==null?void 0:e.response)==null?void 0:n.headers["x-datadog-trace-id"])||""}}}function Ae(){return{debounce:(e,n)=>{let r;return(...a)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...a)},n)}}}}const Y="khcp-user-table-preferences",Ee={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function Ie(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(a){console.error("useTablePreferences(tryParseJson)",a);return}},n=()=>{const r=e(localStorage.getItem(Y));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,a)=>{try{const i=n();i.set(r,a),localStorage.setItem(Y,JSON.stringify(Object.fromEntries(i.entries())))}catch(i){console.error("useTablePreferences(setTablePreferences)",i)}},getTablePreferences:r=>{const a=n();return(a==null?void 0:a.get(r))||void 0||Ee},deleteAllTablePreferences:()=>{localStorage.removeItem(Y)}}}function G(e={}){const{getAxiosInstance:n}=Te();return{axiosInstance:n(e)}}const Oe={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},je={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."}},Be={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},$e={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"}},Ke={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Ve={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},De={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Pe={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"}},Le={global:Oe,deleteModal:je,baseForm:ve,baseTable:Be,baseConfigCard:$e,filter:Ke,debouncedFilter:Ve,errors:De,toggleModal:Pe};function Z(){const e=W.createI18n("en-us",Le);return{i18n:e,i18nT:W.i18nTComponent(e)}}function oe(){const e=(r,a)=>(a==null?void 0:a[r])??void 0,n=(r,a)=>{if(r.length!==a.length)return!1;const i=new Set([...r,...a]);for(const l of i){const o=r.filter(c=>c===l).length,s=a.filter(c=>c===l).length;if(o!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,a,i)=>{if(i){if(Object.keys(r).length===Object.keys(a).length)for(const l in r)if(Array.isArray(r[l])&&Array.isArray(a[l])){if(n(r[l],a[l]))continue;return!1}else{if(r[l]===a[l])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(a)}catch{return!1}},sortAlpha:r=>(a,i)=>{let l=a[r]===void 0||a[r]===null?"":a[r],o=i[r]===void 0||i[r]===null?"":i[r];return Array.isArray(a[r])&&(l=a[r][0]),Array.isArray(i[r])&&(o=i[r][0]),l.localeCompare(o)},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 Fe(e,n,r,a={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="100");const{axiosInstance:i}=G({headers:e.requestHeaders}),{i18n:{t:l}}=Z(),{debounce:o}=Ae(),s=o(async m=>{await J(m)},200),c=t.ref(!1),p=t.ref(""),g=t.ref(""),y=t.ref([]),_=t.ref([]),C=t.ref(void 0),v=t.unref(n);let f=`${e.apiBaseUrl}${v}`;e.app==="konnect"?f=f.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(f=f.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:x}=oe(),O=async()=>{try{c.value=!0;const{data:m}=await i.get(`${f}?size=${r}`);m!=null&&m.next||(C.value=a.fetchedItemsKey in m?m[a.fetchedItemsKey]:[]),_.value=a.fetchedItemsKey in m?m[a.fetchedItemsKey]:[],y.value=_.value}catch{y.value=[],p.value=l("debouncedFilter.errors.fetch")}finally{c.value=!1}},U=t.ref(""),J=async m=>{var d,b,K;if(U.value!==m)if(U.value=m||"",C.value===void 0)try{if(c.value=!0,p.value="",g.value="",e.app==="konnect"){let S=f+"";m&&(S+=`/${m}`);const{data:E}=await i.get(`${S}?size=${r}`);a.fetchedItemsKey in E?y.value=E[a.fetchedItemsKey]:E!=null&&E.id?y.value=[E]:y.value=[]}else if(m){const S=[];x(m)&&a.searchKeys.includes("id")?S.push((async()=>{const{data:N}=await i.get(`${f}/${m}`);return[N[a.fetchedItemsKey]??N]})()):S.push(...a.searchKeys.filter(N=>N!=="id").map(async N=>{const{data:T}=await i.get(`${f}?${N}=${m}`);return T[a.fetchedItemsKey]}));const E=await Promise.all(S),D=new Set;y.value=[],(d=E==null?void 0:E.forEach)==null||d.call(E,N=>{var T;(T=N==null?void 0:N.forEach)==null||T.call(N,B=>{D.has(B.id)||(D.add(B.id),y.value.push(B))})})}else y.value=_.value}catch(S){((b=S==null?void 0:S.response)==null?void 0:b.status)===404?g.value=l("debouncedFilter.errors.invalid"):(y.value=[],p.value=l("debouncedFilter.errors.fetch"))}finally{c.value=!1}else c.value=!0,g.value="",m?(y.value=(K=C.value)==null?void 0:K.filter(S=>{var E;let D=!1;for(const N of a.searchKeys){const T=typeof S[N]=="string"?(E=S[N])==null?void 0:E.toLowerCase():S[N];T!=null&&T.includes(m.toLowerCase())&&(D=!0)}return D}),(!y.value||!y.value.length)&&(g.value=l("debouncedFilter.errors.invalid"))):y.value=C.value,c.value=!1};return{loading:c,error:p,validationError:g,results:y,allRecords:C,loadItems:O,debouncedQueryChange:s}}function Me(e,n){const r=t.unref(n),a=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return a.value.search="",i=>`${a.value.href}/${i}`}function Ue(){const{i18n:{t:e}}=Z();return{getMessageFromError:n=>{var r,a,i,l;if(!n)return e("errors.unexpected");if(((r=n==null?void 0:n.response)==null?void 0:r.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((a=n==null?void 0:n.response)!=null&&a.data){if(n.response.data.detail)return n.response.data.detail;if((i=n.response.data.details)!=null&&i.length)return n.response.data.details.map(o=>{let s=e("errors.unexpected");return o.messages&&typeof o.messages=="object"&&o.messages.length&&(s=o.messages.join(", ")),o.field?`${o.field} - ${s}`:s}).join("; ");if(n.response.data.message){const{message:o}=n.response.data;return Array.isArray(o)?(l=o[0])!=null&&l.constraints?Object.values(o[0].constraints)[0]:o[0]:o}if(typeof n.response.data=="string")return n.response.data;if(typeof n.response.data=="object")return Object.keys(n.response.data).map(o=>`${o} ${n.response.data[o]}`).join(", ")}return n.message||e("errors.unexpected")}}}function Re(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const a=e.join("/"),i=`${r}${a}`,l=e.some(o=>o.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i)&&!l&&new URL(i))return`${r}${a}`;throw new Error("Invalid url")}catch(a){return console.warn("Failed to build valid URL:",a),""}}function le(e,n){const r=t.ref(t.unref(e)),a=t.ref(t.unref(n)),i=t.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),l=t.computed(()=>a.value.startsWith("/")?new URL(`${window.location.origin}${a.value}`):new URL(a.value));return o=>{const{page:s,pageSize:c,offset:p,sortColumnKey:g,sortColumnOrder:y,query:_}=o;try{let C=new URL(l.value.href);return i.value&&_?(C.search="",C=r.value.app==="konnect"?new URL(`${C.href}?filter[name][contains]=${_}`):new URL(`${C.href}/${_}/`)):(i.value||new URLSearchParams(_).forEach((v,f)=>{C.searchParams.append(f,v)}),g&&C.searchParams.append("sort_by",g),y==="desc"&&C.searchParams.append("sort_desc","1"),C.searchParams.append("size",String(c))),p&&s!==1&&C.searchParams.append("offset",String(p)),C.href}catch(C){return console.error("RouteList(fetcher)",C),a.value}}}function qe(e,n,r="data"){const a=t.unref(n),{axiosInstance:i}=G({headers:e.requestHeaders}),l=le(e,a),o=t.ref({status:F.Idle});return{fetcher:async s=>{try{o.value={status:F.Loading};let c=l(s);c.includes("filter[name]")&&(c=`${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);const{data:p}=await i.get(c),g=r&&r.replace(/[^\w-_]/gi,"");let y;p[g]&&Array.isArray(p[g])?y=p[g]:Array.isArray(p)?y=p:y=Object.keys(p).length?[p]:[];const _={data:y,total:y.length,...p.offset?{pagination:{offset:p.offset}}:null};return o.value={status:F.Idle,response:_},_}catch(c){const p={data:[],total:0};return s.query&&c.response.status===404?(o.value={status:F.NoResults,response:p,error:c},p):(o.value={status:F.Error,response:p,error:c},p)}},fetcherState:o}}function ze(){const e=(r,a="_")=>r?r.split(a).map(i=>i.toLowerCase()==="id"?i.toUpperCase():i.charAt(0).toUpperCase()+i.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(n,a=>a.toUpperCase()):"",convertKeyToTitle:e}}const se=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,ce=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(se);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},de=e=>e==="*"||e==="x"||e==="X",ue=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},Je=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],We=(e,n)=>{if(de(e)||de(n))return 0;const[r,a]=Je(ue(e),ue(n));return r>a?1:r<a?-1:0},pe=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const a=We(e[r]||"0",n[r]||"0");if(a!==0)return a}return 0},He=(e,n)=>{const r=ce(e),a=ce(n),i=r.pop(),l=a.pop(),o=pe(r,a);return o!==0?o:i&&l?pe(i.split("."),l.split(".")):i||l?i?-1:1:0},fe=(e,n,r)=>{Ye(r);const a=He(e,n);return ye[r].includes(a)},ye={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},he=Object.keys(ye),Ye=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(he.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${he.join("|")}`)},Ge=e=>typeof e=="string"&&/^[v\d]/.test(e)&&se.test(e);function Ze(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:a,version:i}=n;if(!Ge(i))return console.error("Invalid version"),!1;const l=r[a];if(!l)return!1;const[o,s]=l;return!(o&&fe(i,o,"<")||s&&fe(i,s,">"))}function Qe(e){const n=t.ref(0),r=t.ref(0),a=t.ref(!1);return t.watch(e,i=>{i&&!a.value&&(n.value=i.offsetWidth,r.value=i.scrollWidth,a.value=!0)}),{isTruncated:t.computed(()=>n.value<r.value)}}const Q={useAxios:G,useDebouncedFilter:Fe,useDeleteUrlBuilder:Me,useErrors:Ue,useExternalLinkCreator:Re,useFetcher:qe,useFetchUrlBuilder:le,useHelpers:oe,useStringHelpers:ze,useI18n:Z,useGatewayFeatureSupported:Ze,useTruncationDetector:Qe},X=(e,n)=>{const r=e.__vccOpts||e;for(const[a,i]of n)r[a]=i;return r},Xe="#3a3f51";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ge(e){return typeof e>"u"||e===null}function et(e){return typeof e=="object"&&e!==null}function tt(e){return Array.isArray(e)?e:ge(e)?[]:[e]}function rt(e,n){var r,a,i,l;if(n)for(l=Object.keys(n),r=0,a=l.length;r<a;r+=1)i=l[r],e[i]=n[i];return e}function nt(e,n){var r="",a;for(a=0;a<n;a+=1)r+=e;return r}function at(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var it=ge,ot=et,lt=tt,st=nt,ct=at,dt=rt,ee={isNothing:it,isObject:ot,toArray:lt,repeat:st,isNegativeZero:ct,extend:dt};function me(e,n){var r="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(r+=`
1
+ (function(V,t){typeof exports=="object"&&typeof module<"u"?t(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"],t):(V=typeof globalThis<"u"?globalThis:V||self,t(V["kong-ui-public-entities-consumer-credentials"]={},V.Vue,V["kong-ui-public-i18n"],V.axios))})(this,function(V,t,W,ae){"use strict";const _e={credentials:{title:"Consumer Credentials",list:{toolbar_actions:{acls:{new:"New ACL Credential"},"basic-auth":{new:"New Basic Auth Credential"},"key-auth":{new:"New Key Auth Credential"},"key-auth-enc":{new:"New Key Auth Encrypted Credential"},oauth2:{new:"New OAuth 2.0 Credential"},"hmac-auth":{new:"New HMAC Credential"},jwt:{new:"New JWT Credential"}},table_headers:{acls:{group:"Group",created_at:"Created At",tags:"Tags"},"basic-auth":{password:"Credential",username:"Username",created_at:"Created at",tags:"Tags"},"key-auth":{key:"Key",created_at:"Created at",tags:"Tags"},"key-auth-enc":{key:"Key",created_at:"Created at",tags:"Tags"},oauth2:{name:"Name",client_id:"Client ID",client_secret:"Client secret",created_at:"Created at",tags:"Tags"},"hmac-auth":{username:"Username",secret:"Secret",created_at:"Created at",tags:"Tags"},jwt:{key:"Key",algorithm:"Algorithm",created_at:"Created at",tags:"Tags"}},empty_state:{acls:{title:"Configure a New ACL Credential",cta:"New ACL Credential"},"basic-auth":{title:"Configure a New Basic Auth Credential",cta:"New Basic Auth Credential"},"key-auth":{title:"Configure a New Key Auth Credential",cta:"New Key Auth Credential"},"key-auth-enc":{title:"Configure a New Key Auth Encrypted Credential",cta:"New Key Auth Encrypted Credential"},oauth2:{title:"Configure a New OAuth 2.0 Credential",cta:"New OAuth 2.0 Credential"},"hmac-auth":{title:"Configure a New HMAC Credential",cta:"New HMAC Credential"},jwt:{title:"Configure a New JWT Credential",cta:"New JWT Credential"}}},actions:{copy_id:"Copy ID",copy_credential:"Copy Credential",copy_key:"Copy Key",copy_secret:"Copy Secret",copy_json:"Copy JSON",edit:"Edit",delete:"Delete"},delete:{acls:{title:"Delete an ACL Credential"},"basic-auth":{title:"Delete a Basic Auth Credential"},"key-auth":{title:"Delete a Key Auth Credential"},"key-auth-enc":{title:"Delete a Key Auth Encrypted Credential"},oauth2:{title:"Delete an OAuth 2.0 Credential"},"hmac-auth":{title:"Delete an HMAC Credential"},jwt:{title:"Delete a JWT Credential"},description:"This action cannot be reversed."},error:{general:"Credentials could not be retrieved",delete:"The credential could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}}};function xe(){const e=W.createI18n("en-us",_e);return{i18n:e,i18nT:W.i18nTComponent(e)}}const Ne={useI18n:xe},Se={list:{konnect:"/api/runtime_groups/{controlPlaneId}/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}};var ie=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e))(ie||{}),F=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(F||{});function Te(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):ae.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),ae.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var n;return((n=e==null?void 0:e.response)==null?void 0:n.headers["x-datadog-trace-id"])||""}}}function Ae(){return{debounce:(e,n)=>{let r;return(...a)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...a)},n)}}}}const Y="khcp-user-table-preferences",Ee={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function Ie(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(a){console.error("useTablePreferences(tryParseJson)",a);return}},n=()=>{const r=e(localStorage.getItem(Y));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,a)=>{try{const i=n();i.set(r,a),localStorage.setItem(Y,JSON.stringify(Object.fromEntries(i.entries())))}catch(i){console.error("useTablePreferences(setTablePreferences)",i)}},getTablePreferences:r=>{const a=n();return(a==null?void 0:a.get(r))||void 0||Ee},deleteAllTablePreferences:()=>{localStorage.removeItem(Y)}}}function G(e={}){const{getAxiosInstance:n}=Te();return{axiosInstance:n(e)}}const Oe={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},je={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."}},Be={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},$e={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"}},Ke={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Ve={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},De={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Pe={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"}},Le={global:Oe,deleteModal:je,baseForm:ve,baseTable:Be,baseConfigCard:$e,filter:Ke,debouncedFilter:Ve,errors:De,toggleModal:Pe};function Z(){const e=W.createI18n("en-us",Le);return{i18n:e,i18nT:W.i18nTComponent(e)}}function oe(){const e=(r,a)=>(a==null?void 0:a[r])??void 0,n=(r,a)=>{if(r.length!==a.length)return!1;const i=new Set([...r,...a]);for(const l of i){const o=r.filter(c=>c===l).length,s=a.filter(c=>c===l).length;if(o!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,a,i)=>{if(i){if(Object.keys(r).length===Object.keys(a).length)for(const l in r)if(Array.isArray(r[l])&&Array.isArray(a[l])){if(n(r[l],a[l]))continue;return!1}else{if(r[l]===a[l])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(a)}catch{return!1}},sortAlpha:r=>(a,i)=>{let l=a[r]===void 0||a[r]===null?"":a[r],o=i[r]===void 0||i[r]===null?"":i[r];return Array.isArray(a[r])&&(l=a[r][0]),Array.isArray(i[r])&&(o=i[r][0]),l.localeCompare(o)},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 Fe(e,n,r,a={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="100");const{axiosInstance:i}=G({headers:e.requestHeaders}),{i18n:{t:l}}=Z(),{debounce:o}=Ae(),s=o(async m=>{await J(m)},200),c=t.ref(!1),p=t.ref(""),g=t.ref(""),y=t.ref([]),_=t.ref([]),C=t.ref(void 0),v=t.unref(n);let f=`${e.apiBaseUrl}${v}`;e.app==="konnect"?f=f.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(f=f.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:x}=oe(),O=async()=>{try{c.value=!0;const{data:m}=await i.get(`${f}?size=${r}`);m!=null&&m.next||(C.value=a.fetchedItemsKey in m?m[a.fetchedItemsKey]:[]),_.value=a.fetchedItemsKey in m?m[a.fetchedItemsKey]:[],y.value=_.value}catch{y.value=[],p.value=l("debouncedFilter.errors.fetch")}finally{c.value=!1}},U=t.ref(""),J=async m=>{var d,b,K;if(U.value!==m)if(U.value=m||"",C.value===void 0)try{if(c.value=!0,p.value="",g.value="",e.app==="konnect"){let S=f+"";m&&(S+=`/${m}`);const{data:E}=await i.get(`${S}?size=${r}`);a.fetchedItemsKey in E?y.value=E[a.fetchedItemsKey]:E!=null&&E.id?y.value=[E]:y.value=[]}else if(m){const S=[];x(m)&&a.searchKeys.includes("id")?S.push((async()=>{const{data:N}=await i.get(`${f}/${m}`);return[N[a.fetchedItemsKey]??N]})()):S.push(...a.searchKeys.filter(N=>N!=="id").map(async N=>{const{data:T}=await i.get(`${f}?${N}=${m}`);return T[a.fetchedItemsKey]}));const E=await Promise.all(S),D=new Set;y.value=[],(d=E==null?void 0:E.forEach)==null||d.call(E,N=>{var T;(T=N==null?void 0:N.forEach)==null||T.call(N,B=>{D.has(B.id)||(D.add(B.id),y.value.push(B))})})}else y.value=_.value}catch(S){((b=S==null?void 0:S.response)==null?void 0:b.status)===404?g.value=l("debouncedFilter.errors.invalid"):(y.value=[],p.value=l("debouncedFilter.errors.fetch"))}finally{c.value=!1}else c.value=!0,g.value="",m?(y.value=(K=C.value)==null?void 0:K.filter(S=>{var E;let D=!1;for(const N of a.searchKeys){const T=typeof S[N]=="string"?(E=S[N])==null?void 0:E.toLowerCase():S[N];T!=null&&T.includes(m.toLowerCase())&&(D=!0)}return D}),(!y.value||!y.value.length)&&(g.value=l("debouncedFilter.errors.invalid"))):y.value=C.value,c.value=!1};return{loading:c,error:p,validationError:g,results:y,allRecords:C,loadItems:O,debouncedQueryChange:s}}function Me(e,n){const r=t.unref(n),a=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return a.value.search="",i=>`${a.value.href}/${i}`}function Ue(){const{i18n:{t:e}}=Z();return{getMessageFromError:n=>{var r,a,i,l;if(!n)return e("errors.unexpected");if(((r=n==null?void 0:n.response)==null?void 0:r.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((a=n==null?void 0:n.response)!=null&&a.data){if(n.response.data.detail)return n.response.data.detail;if((i=n.response.data.details)!=null&&i.length)return n.response.data.details.map(o=>{let s=e("errors.unexpected");return o.messages&&typeof o.messages=="object"&&o.messages.length&&(s=o.messages.join(", ")),o.field?`${o.field} - ${s}`:s}).join("; ");if(n.response.data.message){const{message:o}=n.response.data;return Array.isArray(o)?(l=o[0])!=null&&l.constraints?Object.values(o[0].constraints)[0]:o[0]:o}if(typeof n.response.data=="string")return n.response.data;if(typeof n.response.data=="object")return Object.keys(n.response.data).map(o=>`${o} ${n.response.data[o]}`).join(", ")}return n.message||e("errors.unexpected")}}}function Re(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const a=e.join("/"),i=`${r}${a}`,l=e.some(o=>o.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i)&&!l&&new URL(i))return`${r}${a}`;throw new Error("Invalid url")}catch(a){return console.warn("Failed to build valid URL:",a),""}}function le(e,n){const r=t.ref(t.unref(e)),a=t.ref(t.unref(n)),i=t.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),l=t.computed(()=>a.value.startsWith("/")?new URL(`${window.location.origin}${a.value}`):new URL(a.value));return o=>{const{page:s,pageSize:c,offset:p,sortColumnKey:g,sortColumnOrder:y,query:_}=o;try{let C=new URL(l.value.href);return i.value&&_?(C.search="",C=r.value.app==="konnect"?new URL(`${C.href}?filter[name][contains]=${_}`):new URL(`${C.href}/${_}/`)):(i.value||new URLSearchParams(_).forEach((v,f)=>{C.searchParams.append(f,v)}),g&&C.searchParams.append("sort_by",g),y==="desc"&&C.searchParams.append("sort_desc","1"),C.searchParams.append("size",String(c))),p&&s!==1&&C.searchParams.append("offset",String(p)),C.href}catch(C){return console.error("RouteList(fetcher)",C),a.value}}}function qe(e,n,r="data"){const a=t.unref(n),{axiosInstance:i}=G({headers:e.requestHeaders}),l=le(e,a),o=t.ref({status:F.Idle});return{fetcher:async s=>{try{o.value={status:F.Loading};let c=l(s);c.includes("filter[name]")&&(c=`${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);const{data:p}=await i.get(c),g=r&&r.replace(/[^\w-_]/gi,"");let y;p[g]&&Array.isArray(p[g])?y=p[g]:Array.isArray(p)?y=p:y=Object.keys(p).length?[p]:[];const _={data:y,total:y.length,...p.offset?{pagination:{offset:p.offset}}:null};return o.value={status:F.Idle,response:_},_}catch(c){const p={data:[],total:0};return s.query&&c.response.status===404?(o.value={status:F.NoResults,response:p,error:c},p):(o.value={status:F.Error,response:p,error:c},p)}},fetcherState:o}}function ze(){const e=(r,a="_")=>r?r.split(a).map(i=>i.toLowerCase()==="id"?i.toUpperCase():i.charAt(0).toUpperCase()+i.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(n,a=>a.toUpperCase()):"",convertKeyToTitle:e}}const se=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,ce=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(se);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},de=e=>e==="*"||e==="x"||e==="X",ue=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},Je=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],We=(e,n)=>{if(de(e)||de(n))return 0;const[r,a]=Je(ue(e),ue(n));return r>a?1:r<a?-1:0},pe=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const a=We(e[r]||"0",n[r]||"0");if(a!==0)return a}return 0},He=(e,n)=>{const r=ce(e),a=ce(n),i=r.pop(),l=a.pop(),o=pe(r,a);return o!==0?o:i&&l?pe(i.split("."),l.split(".")):i||l?i?-1:1:0},fe=(e,n,r)=>{Ye(r);const a=He(e,n);return ye[r].includes(a)},ye={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},he=Object.keys(ye),Ye=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(he.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${he.join("|")}`)},Ge=e=>typeof e=="string"&&/^[v\d]/.test(e)&&se.test(e);function Ze(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:a,version:i}=n;if(!Ge(i))return console.error("Invalid version"),!1;const l=r[a];if(!l)return!1;const[o,s]=l;return!(o&&fe(i,o,"<")||s&&fe(i,s,">"))}function Qe(e){const n=t.ref(0),r=t.ref(0),a=t.ref(!1);return t.watch(e,i=>{i&&!a.value&&(n.value=i.offsetWidth,r.value=i.scrollWidth,a.value=!0)}),{isTruncated:t.computed(()=>n.value<r.value)}}const Q={useAxios:G,useDebouncedFilter:Fe,useDeleteUrlBuilder:Me,useErrors:Ue,useExternalLinkCreator:Re,useFetcher:qe,useFetchUrlBuilder:le,useHelpers:oe,useStringHelpers:ze,useI18n:Z,useGatewayFeatureSupported:Ze,useTruncationDetector:Qe},X=(e,n)=>{const r=e.__vccOpts||e;for(const[a,i]of n)r[a]=i;return r},Xe="#3a3f51";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ge(e){return typeof e>"u"||e===null}function et(e){return typeof e=="object"&&e!==null}function tt(e){return Array.isArray(e)?e:ge(e)?[]:[e]}function rt(e,n){var r,a,i,l;if(n)for(l=Object.keys(n),r=0,a=l.length;r<a;r+=1)i=l[r],e[i]=n[i];return e}function nt(e,n){var r="",a;for(a=0;a<n;a+=1)r+=e;return r}function at(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var it=ge,ot=et,lt=tt,st=nt,ct=at,dt=rt,ee={isNothing:it,isObject:ot,toArray:lt,repeat:st,isNegativeZero:ct,extend:dt};function me(e,n){var r="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(r+=`
2
2
 
3
3
  `+e.mark.snippet),a+" "+r):a}function z(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=me(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}z.prototype=Object.create(Error.prototype),z.prototype.constructor=z,z.prototype.toString=function(e){return this.name+": "+me(this,e)};var M=z,ut=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],pt=["scalar","sequence","mapping"];function ft(e){var n={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(a){n[String(a)]=r})}),n}function yt(e,n){if(n=n||{},Object.keys(n).forEach(function(r){if(ut.indexOf(r)===-1)throw new M('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(r){return r},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=ft(n.styleAliases||null),pt.indexOf(this.kind)===-1)throw new M('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var A=yt;function be(e,n){var r=[];return e[n].forEach(function(a){var i=r.length;r.forEach(function(l,o){l.tag===a.tag&&l.kind===a.kind&&l.multi===a.multi&&(i=o)}),r[i]=a}),r}function ht(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,r;function a(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(n=0,r=arguments.length;n<r;n+=1)arguments[n].forEach(a);return e}function te(e){return this.extend(e)}te.prototype.extend=function(e){var n=[],r=[];if(e instanceof A)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&&(n=n.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new M("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof A))throw new M("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new M("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new M("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof A))throw new M("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(te.prototype);return a.implicit=(this.implicit||[]).concat(n),a.explicit=(this.explicit||[]).concat(r),a.compiledImplicit=be(a,"implicit"),a.compiledExplicit=be(a,"explicit"),a.compiledTypeMap=ht(a.compiledImplicit,a.compiledExplicit),a};var gt=te,mt=new A("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),bt=new A("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),wt=new A("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Ct=new gt({explicit:[mt,bt,wt]});function kt(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function _t(){return null}function xt(e){return e===null}var Nt=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:kt,construct:_t,predicate:xt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function St(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function Tt(e){return e==="true"||e==="True"||e==="TRUE"}function At(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Et=new A("tag:yaml.org,2002:bool",{kind:"scalar",resolve:St,construct:Tt,predicate:At,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 It(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Ot(e){return 48<=e&&e<=55}function jt(e){return 48<=e&&e<=57}function vt(e){if(e===null)return!1;var n=e.length,r=0,a=!1,i;if(!n)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===n)return!0;if(i=e[++r],i==="b"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;a=!0}return a&&i!=="_"}if(i==="x"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(!It(e.charCodeAt(r)))return!1;a=!0}return a&&i!=="_"}if(i==="o"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(!Ot(e.charCodeAt(r)))return!1;a=!0}return a&&i!=="_"}}if(i==="_")return!1;for(;r<n;r++)if(i=e[r],i!=="_"){if(!jt(e.charCodeAt(r)))return!1;a=!0}return!(!a||i==="_")}function Bt(e){var n=e,r=1,a;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),a=n[0],(a==="-"||a==="+")&&(a==="-"&&(r=-1),n=n.slice(1),a=n[0]),n==="0")return 0;if(a==="0"){if(n[1]==="b")return r*parseInt(n.slice(2),2);if(n[1]==="x")return r*parseInt(n.slice(2),16);if(n[1]==="o")return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function $t(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ee.isNegativeZero(e)}var Kt=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:vt,construct:Bt,predicate:$t,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"]}}),Vt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Dt(e){return!(e===null||!Vt.test(e)||e[e.length-1]==="_")}function Pt(e){var n,r;return n=e.replace(/_/g,"").toLowerCase(),r=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:r*parseFloat(n,10)}var Lt=/^[-+]?[0-9]+e/;function Ft(e,n){var r;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ee.isNegativeZero(e))return"-0.0";return r=e.toString(10),Lt.test(r)?r.replace("e",".e"):r}function Mt(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ee.isNegativeZero(e))}var Ut=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:Dt,construct:Pt,predicate:Mt,represent:Ft,defaultStyle:"lowercase"}),Rt=Ct.extend({implicit:[Nt,Et,Kt,Ut]}),qt=Rt,we=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ce=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 zt(e){return e===null?!1:we.exec(e)!==null||Ce.exec(e)!==null}function Jt(e){var n,r,a,i,l,o,s,c=0,p=null,g,y,_;if(n=we.exec(e),n===null&&(n=Ce.exec(e)),n===null)throw new Error("Date resolve error");if(r=+n[1],a=+n[2]-1,i=+n[3],!n[4])return new Date(Date.UTC(r,a,i));if(l=+n[4],o=+n[5],s=+n[6],n[7]){for(c=n[7].slice(0,3);c.length<3;)c+="0";c=+c}return n[9]&&(g=+n[10],y=+(n[11]||0),p=(g*60+y)*6e4,n[9]==="-"&&(p=-p)),_=new Date(Date.UTC(r,a,i,l,o,s,c)),p&&_.setTime(_.getTime()-p),_}function Wt(e){return e.toISOString()}var Ht=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:zt,construct:Jt,instanceOf:Date,represent:Wt});function Yt(e){return e==="<<"||e===null}var Gt=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Yt}),re=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
4
4
  \r`;function Zt(e){if(e===null)return!1;var n,r,a=0,i=e.length,l=re;for(r=0;r<i;r++)if(n=l.indexOf(e.charAt(r)),!(n>64)){if(n<0)return!1;a+=6}return a%8===0}function Qt(e){var n,r,a=e.replace(/[\r\n=]/g,""),i=a.length,l=re,o=0,s=[];for(n=0;n<i;n++)n%4===0&&n&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|l.indexOf(a.charAt(n));return r=i%4*6,r===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):r===18?(s.push(o>>10&255),s.push(o>>2&255)):r===12&&s.push(o>>4&255),new Uint8Array(s)}function Xt(e){var n="",r=0,a,i,l=e.length,o=re;for(a=0;a<l;a++)a%3===0&&a&&(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[r&63]),r=(r<<8)+e[a];return i=l%3,i===0?(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[r&63]):i===2?(n+=o[r>>10&63],n+=o[r>>4&63],n+=o[r<<2&63],n+=o[64]):i===1&&(n+=o[r>>2&63],n+=o[r<<4&63],n+=o[64],n+=o[64]),n}function er(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var tr=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Zt,construct:Qt,predicate:er,represent:Xt}),rr=Object.prototype.hasOwnProperty,nr=Object.prototype.toString;function ar(e){if(e===null)return!0;var n=[],r,a,i,l,o,s=e;for(r=0,a=s.length;r<a;r+=1){if(i=s[r],o=!1,nr.call(i)!=="[object Object]")return!1;for(l in i)if(rr.call(i,l))if(!o)o=!0;else return!1;if(!o)return!1;if(n.indexOf(l)===-1)n.push(l);else return!1}return!0}function ir(e){return e!==null?e:[]}var or=new A("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ar,construct:ir}),lr=Object.prototype.toString;function sr(e){if(e===null)return!0;var n,r,a,i,l,o=e;for(l=new Array(o.length),n=0,r=o.length;n<r;n+=1){if(a=o[n],lr.call(a)!=="[object Object]"||(i=Object.keys(a),i.length!==1))return!1;l[n]=[i[0],a[i[0]]]}return!0}function cr(e){if(e===null)return[];var n,r,a,i,l,o=e;for(l=new Array(o.length),n=0,r=o.length;n<r;n+=1)a=o[n],i=Object.keys(a),l[n]=[i[0],a[i[0]]];return l}var dr=new A("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:sr,construct:cr}),ur=Object.prototype.hasOwnProperty;function pr(e){if(e===null)return!0;var n,r=e;for(n in r)if(ur.call(r,n)&&r[n]!==null)return!1;return!0}function fr(e){return e!==null?e:{}}var yr=new A("tag:yaml.org,2002:set",{kind:"mapping",resolve:pr,construct:fr});qt.extend({implicit:[Ht,Gt],explicit:[tr,or,dr,yr]});function ke(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-consumer-credentials",
3
- "version": "2.1.58",
3
+ "version": "2.1.59",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-consumer-credentials.umd.js",
6
6
  "module": "./dist/entities-consumer-credentials.es.js",
@@ -34,8 +34,8 @@
34
34
  "axios": "^1.6.7",
35
35
  "vue": "^3.4.19",
36
36
  "vue-router": "^4.2.5",
37
- "@kong-ui-public/copy-uuid": "^2.0.40",
38
- "@kong-ui-public/i18n": "^2.1.3"
37
+ "@kong-ui-public/i18n": "^2.1.3",
38
+ "@kong-ui-public/copy-uuid": "^2.0.40"
39
39
  },
40
40
  "repository": {
41
41
  "type": "git",
@@ -52,7 +52,7 @@
52
52
  "errorLimit": "300KB"
53
53
  },
54
54
  "dependencies": {
55
- "@kong-ui-public/entities-shared": "^2.7.4"
55
+ "@kong-ui-public/entities-shared": "^2.7.5"
56
56
  },
57
57
  "scripts": {
58
58
  "dev": "cross-env USE_SANDBOX=true vite",