@kong-ui-public/entities-consumer-credentials 2.1.76 → 2.1.77

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.
@@ -403,7 +403,7 @@ function mt(e, r, t, a = {
403
403
  fetchedItemsKey: "data",
404
404
  searchKeys: ["id"]
405
405
  }) {
406
- t || (t = "100");
406
+ t || (t = "1000");
407
407
  const { axiosInstance: n } = ue({
408
408
  headers: e.requestHeaders
409
409
  }), { i18n: { t: o } } = de(), { debounce: i } = nt(), l = i(async (k) => {
@@ -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,H,ne){"use strict";const xe={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 _e(){const e=H.createI18n("en-us",xe);return{i18n:e,i18nT:H.i18nTComponent(e)}}const Ne={useI18n:_e},Se={list:{konnect:"/api/runtime_groups/{controlPlaneId}/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}};var ae=(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))(ae||{}),M=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(M||{});function Te(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):ne.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),ne.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 W="khcp-user-table-preferences",Ie={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function Ee(){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(W));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(W,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||Ie},deleteAllTablePreferences:()=>{localStorage.removeItem(W)}}}function Y(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"}},Be={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},je={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."}},ve={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Ve={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"}},$e={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Ke={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.'},Fe={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"}},Me={global:Oe,deleteModal:Be,baseForm:je,baseTable:ve,baseConfigCard:Ve,filter:$e,debouncedFilter:Ke,errors:De,toggleModal:Fe};function Z(){const e=H.createI18n("en-us",Me);return{i18n:e,i18nT:H.i18nTComponent(e)}}function ie(){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(y=>y===l).length,s=a.filter(y=>y===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 Pe(e,n,r,a={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="100");const{axiosInstance:i}=Y({headers:e.requestHeaders}),{i18n:{t:l}}=Z(),{debounce:o}=Ae(),s=o(async b=>{await D(b)},200),y=t.ref(!1),w=t.ref(""),f=t.ref(""),p=t.ref([]),g=t.ref([]),m=t.ref(void 0),x=t.unref(n);let c=`${e.apiBaseUrl}${x}`;e.app==="konnect"?c=c.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(c=c.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:_}=ie(),O=async()=>{try{y.value=!0;const{data:b}=await i.get(`${c}?size=${r}`);b!=null&&b.next||(m.value=a.fetchedItemsKey in b?b[a.fetchedItemsKey]:[]),g.value=a.fetchedItemsKey in b?b[a.fetchedItemsKey]:[],p.value=g.value}catch{p.value=[],w.value=l("debouncedFilter.errors.fetch")}finally{y.value=!1}},q=t.ref(""),D=async b=>{var d,C,$;if(q.value!==b)if(q.value=b||"",m.value===void 0)try{if(y.value=!0,w.value="",f.value="",e.app==="konnect"){let T=c+"";b&&(T+=`/${b}`);const{data:I}=await i.get(`${T}?size=${r}`);a.fetchedItemsKey in I?p.value=I[a.fetchedItemsKey]:I!=null&&I.id?p.value=[I]:p.value=[]}else if(b){const T=[];_(b)&&a.searchKeys.includes("id")?T.push((async()=>{const{data:N}=await i.get(`${c}/${b}`);return[N[a.fetchedItemsKey]??N]})()):T.push(...a.searchKeys.filter(N=>N!=="id").map(async N=>{const{data:S}=await i.get(`${c}?${N}=${b}`);return S[a.fetchedItemsKey]}));const I=await Promise.all(T),K=new Set;p.value=[],(d=I==null?void 0:I.forEach)==null||d.call(I,N=>{var S;(S=N==null?void 0:N.forEach)==null||S.call(N,B=>{K.has(B.id)||(K.add(B.id),p.value.push(B))})})}else p.value=g.value}catch(T){((C=T==null?void 0:T.response)==null?void 0:C.status)===404?f.value=l("debouncedFilter.errors.invalid"):(p.value=[],w.value=l("debouncedFilter.errors.fetch"))}finally{y.value=!1}else y.value=!0,f.value="",b?(p.value=($=m.value)==null?void 0:$.filter(T=>{var I;let K=!1;for(const N of a.searchKeys){const S=typeof T[N]=="string"?(I=T[N])==null?void 0:I.toLowerCase():T[N];S!=null&&S.includes(b.toLowerCase())&&(K=!0)}return K}),(!p.value||!p.value.length)&&(f.value=l("debouncedFilter.errors.invalid"))):p.value=m.value,y.value=!1};return{loading:y,error:w,validationError:f,results:p,allRecords:m,loadItems:O,debouncedQueryChange:s}}function Le(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 qe(){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 oe(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:y,offset:w,sortColumnKey:f,sortColumnOrder:p,query:g}=o;try{let m=new URL(l.value.href);return i.value&&g?(m.search="",m=r.value.isExactMatch?new URL(`${m.href}/${g}/`):new URL(`${m.href}?filter[name][contains]=${g}`)):(i.value||new URLSearchParams(g).forEach((x,c)=>{m.searchParams.append(c,x)}),f&&m.searchParams.append("sort_by",f),p==="desc"&&m.searchParams.append("sort_desc","1"),m.searchParams.append("size",String(y))),w&&s!==1&&m.searchParams.append("offset",String(w)),m.href}catch(m){return console.error("RouteList(fetcher)",m),a.value}}}function Ue(e,n,r="data"){var a;const i=t.unref(n),{axiosInstance:l}=Y({...e.axiosRequestConfig,headers:{...(a=e.axiosRequestConfig)==null?void 0:a.headers,...e.requestHeaders}}),o=oe(e,i),s=t.ref({status:M.Idle});return{fetcher:async y=>{var w;try{s.value={status:M.Loading};let f=o(y);f.includes("filter[name]")&&(f=`${f}&page[size]=${y.pageSize}&page[number]=${y.page}`);const p=await l.get(f);if(p.status>=400)throw p;const g=p.data,m=r&&r.replace(/[^\w-_]/gi,"");let x;g[m]&&Array.isArray(g[m])?x=g[m]:Array.isArray(g)?x=g:x=Object.keys(g).length?[g]:[];const c={data:x,total:x.length,...g.offset?{pagination:{offset:g.offset}}:null};return s.value={status:M.Idle,response:c},c}catch(f){const p={data:[],total:0};return y.query&&(((w=f.response)==null?void 0:w.status)===404||f.status===404)?(s.value={status:M.NoResults,response:p,error:f.response?f:{response:f}},p):(s.value={status:M.Error,response:p,error:f.response?f:{response:f}},p)}},fetcherState:s}}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 le=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,se=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(le);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},ce=e=>e==="*"||e==="x"||e==="X",de=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},He=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],Je=(e,n)=>{if(ce(e)||ce(n))return 0;const[r,a]=He(de(e),de(n));return r>a?1:r<a?-1:0},ue=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const a=Je(e[r]||"0",n[r]||"0");if(a!==0)return a}return 0},We=(e,n)=>{const r=se(e),a=se(n),i=r.pop(),l=a.pop(),o=ue(r,a);return o!==0?o:i&&l?ue(i.split("."),l.split(".")):i||l?i?-1:1:0},pe=(e,n,r)=>{Ye(r);const a=We(e,n);return fe[r].includes(a)},fe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ye=Object.keys(fe),Ye=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ye.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ye.join("|")}`)},Ze=e=>typeof e=="string"&&/^[v\d]/.test(e)&&le.test(e);function Ge(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:a,version:i}=n;if(!Ze(i))return console.error("Invalid version"),!1;const l=r[a];if(!l)return!1;const[o,s]=l;return!(o&&pe(i,o,"<")||s&&pe(i,s,">"))}function Xe(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 G={useAxios:Y,useDebouncedFilter:Pe,useDeleteUrlBuilder:Le,useErrors:qe,useExternalLinkCreator:Re,useFetcher:Ue,useFetchUrlBuilder:oe,useHelpers:ie,useStringHelpers:ze,useI18n:Z,useGatewayFeatureSupported:Ge,useTruncationDetector:Xe},X=(e,n)=>{const r=e.__vccOpts||e;for(const[a,i]of n)r[a]=i;return r},Qe="#3a3f51";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function he(e){return typeof e>"u"||e===null}function et(e){return typeof e=="object"&&e!==null}function tt(e){return Array.isArray(e)?e:he(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=he,ot=et,lt=tt,st=nt,ct=at,dt=rt,Q={isNothing:it,isObject:ot,toArray:lt,repeat:st,isNegativeZero:ct,extend:dt};function ge(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,H,ne){"use strict";const xe={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 _e(){const e=H.createI18n("en-us",xe);return{i18n:e,i18nT:H.i18nTComponent(e)}}const Ne={useI18n:_e},Se={list:{konnect:"/api/runtime_groups/{controlPlaneId}/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}};var ae=(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))(ae||{}),M=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(M||{});function Te(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):ne.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),ne.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 W="khcp-user-table-preferences",Ie={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function Ee(){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(W));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(W,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||Ie},deleteAllTablePreferences:()=>{localStorage.removeItem(W)}}}function Y(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"}},Be={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},je={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."}},ve={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Ve={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"}},$e={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Ke={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.'},Fe={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"}},Me={global:Oe,deleteModal:Be,baseForm:je,baseTable:ve,baseConfigCard:Ve,filter:$e,debouncedFilter:Ke,errors:De,toggleModal:Fe};function Z(){const e=H.createI18n("en-us",Me);return{i18n:e,i18nT:H.i18nTComponent(e)}}function ie(){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(y=>y===l).length,s=a.filter(y=>y===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 Pe(e,n,r,a={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:i}=Y({headers:e.requestHeaders}),{i18n:{t:l}}=Z(),{debounce:o}=Ae(),s=o(async b=>{await D(b)},200),y=t.ref(!1),w=t.ref(""),f=t.ref(""),p=t.ref([]),g=t.ref([]),m=t.ref(void 0),x=t.unref(n);let c=`${e.apiBaseUrl}${x}`;e.app==="konnect"?c=c.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(c=c.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:_}=ie(),O=async()=>{try{y.value=!0;const{data:b}=await i.get(`${c}?size=${r}`);b!=null&&b.next||(m.value=a.fetchedItemsKey in b?b[a.fetchedItemsKey]:[]),g.value=a.fetchedItemsKey in b?b[a.fetchedItemsKey]:[],p.value=g.value}catch{p.value=[],w.value=l("debouncedFilter.errors.fetch")}finally{y.value=!1}},q=t.ref(""),D=async b=>{var d,C,$;if(q.value!==b)if(q.value=b||"",m.value===void 0)try{if(y.value=!0,w.value="",f.value="",e.app==="konnect"){let T=c+"";b&&(T+=`/${b}`);const{data:I}=await i.get(`${T}?size=${r}`);a.fetchedItemsKey in I?p.value=I[a.fetchedItemsKey]:I!=null&&I.id?p.value=[I]:p.value=[]}else if(b){const T=[];_(b)&&a.searchKeys.includes("id")?T.push((async()=>{const{data:N}=await i.get(`${c}/${b}`);return[N[a.fetchedItemsKey]??N]})()):T.push(...a.searchKeys.filter(N=>N!=="id").map(async N=>{const{data:S}=await i.get(`${c}?${N}=${b}`);return S[a.fetchedItemsKey]}));const I=await Promise.all(T),K=new Set;p.value=[],(d=I==null?void 0:I.forEach)==null||d.call(I,N=>{var S;(S=N==null?void 0:N.forEach)==null||S.call(N,B=>{K.has(B.id)||(K.add(B.id),p.value.push(B))})})}else p.value=g.value}catch(T){((C=T==null?void 0:T.response)==null?void 0:C.status)===404?f.value=l("debouncedFilter.errors.invalid"):(p.value=[],w.value=l("debouncedFilter.errors.fetch"))}finally{y.value=!1}else y.value=!0,f.value="",b?(p.value=($=m.value)==null?void 0:$.filter(T=>{var I;let K=!1;for(const N of a.searchKeys){const S=typeof T[N]=="string"?(I=T[N])==null?void 0:I.toLowerCase():T[N];S!=null&&S.includes(b.toLowerCase())&&(K=!0)}return K}),(!p.value||!p.value.length)&&(f.value=l("debouncedFilter.errors.invalid"))):p.value=m.value,y.value=!1};return{loading:y,error:w,validationError:f,results:p,allRecords:m,loadItems:O,debouncedQueryChange:s}}function Le(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 qe(){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 oe(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:y,offset:w,sortColumnKey:f,sortColumnOrder:p,query:g}=o;try{let m=new URL(l.value.href);return i.value&&g?(m.search="",m=r.value.isExactMatch?new URL(`${m.href}/${g}/`):new URL(`${m.href}?filter[name][contains]=${g}`)):(i.value||new URLSearchParams(g).forEach((x,c)=>{m.searchParams.append(c,x)}),f&&m.searchParams.append("sort_by",f),p==="desc"&&m.searchParams.append("sort_desc","1"),m.searchParams.append("size",String(y))),w&&s!==1&&m.searchParams.append("offset",String(w)),m.href}catch(m){return console.error("RouteList(fetcher)",m),a.value}}}function Ue(e,n,r="data"){var a;const i=t.unref(n),{axiosInstance:l}=Y({...e.axiosRequestConfig,headers:{...(a=e.axiosRequestConfig)==null?void 0:a.headers,...e.requestHeaders}}),o=oe(e,i),s=t.ref({status:M.Idle});return{fetcher:async y=>{var w;try{s.value={status:M.Loading};let f=o(y);f.includes("filter[name]")&&(f=`${f}&page[size]=${y.pageSize}&page[number]=${y.page}`);const p=await l.get(f);if(p.status>=400)throw p;const g=p.data,m=r&&r.replace(/[^\w-_]/gi,"");let x;g[m]&&Array.isArray(g[m])?x=g[m]:Array.isArray(g)?x=g:x=Object.keys(g).length?[g]:[];const c={data:x,total:x.length,...g.offset?{pagination:{offset:g.offset}}:null};return s.value={status:M.Idle,response:c},c}catch(f){const p={data:[],total:0};return y.query&&(((w=f.response)==null?void 0:w.status)===404||f.status===404)?(s.value={status:M.NoResults,response:p,error:f.response?f:{response:f}},p):(s.value={status:M.Error,response:p,error:f.response?f:{response:f}},p)}},fetcherState:s}}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 le=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,se=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(le);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},ce=e=>e==="*"||e==="x"||e==="X",de=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},He=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],Je=(e,n)=>{if(ce(e)||ce(n))return 0;const[r,a]=He(de(e),de(n));return r>a?1:r<a?-1:0},ue=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const a=Je(e[r]||"0",n[r]||"0");if(a!==0)return a}return 0},We=(e,n)=>{const r=se(e),a=se(n),i=r.pop(),l=a.pop(),o=ue(r,a);return o!==0?o:i&&l?ue(i.split("."),l.split(".")):i||l?i?-1:1:0},pe=(e,n,r)=>{Ye(r);const a=We(e,n);return fe[r].includes(a)},fe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ye=Object.keys(fe),Ye=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ye.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ye.join("|")}`)},Ze=e=>typeof e=="string"&&/^[v\d]/.test(e)&&le.test(e);function Ge(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:a,version:i}=n;if(!Ze(i))return console.error("Invalid version"),!1;const l=r[a];if(!l)return!1;const[o,s]=l;return!(o&&pe(i,o,"<")||s&&pe(i,s,">"))}function Xe(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 G={useAxios:Y,useDebouncedFilter:Pe,useDeleteUrlBuilder:Le,useErrors:qe,useExternalLinkCreator:Re,useFetcher:Ue,useFetchUrlBuilder:oe,useHelpers:ie,useStringHelpers:ze,useI18n:Z,useGatewayFeatureSupported:Ge,useTruncationDetector:Xe},X=(e,n)=>{const r=e.__vccOpts||e;for(const[a,i]of n)r[a]=i;return r},Qe="#3a3f51";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function he(e){return typeof e>"u"||e===null}function et(e){return typeof e=="object"&&e!==null}function tt(e){return Array.isArray(e)?e:he(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=he,ot=et,lt=tt,st=nt,ct=at,dt=rt,Q={isNothing:it,isObject:ot,toArray:lt,repeat:st,isNegativeZero:ct,extend:dt};function ge(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 U(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=ge(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}U.prototype=Object.create(Error.prototype),U.prototype.constructor=U,U.prototype.toString=function(e){return this.name+": "+ge(this,e)};var P=U,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 P('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 P('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var A=yt;function me(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 ee(e){return this.extend(e)}ee.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 P("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof A))throw new P("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new P("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 P("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 P("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(ee.prototype);return a.implicit=(this.implicit||[]).concat(n),a.explicit=(this.explicit||[]).concat(r),a.compiledImplicit=me(a,"implicit"),a.compiledExplicit=me(a,"explicit"),a.compiledTypeMap=ht(a.compiledImplicit,a.compiledExplicit),a};var gt=ee,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 xt(){return null}function _t(e){return e===null}var Nt=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:kt,construct:xt,predicate:_t,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 It=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 Et(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Ot(e){return 48<=e&&e<=55}function Bt(e){return 48<=e&&e<=57}function jt(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(!Et(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(!Bt(e.charCodeAt(r)))return!1;a=!0}return!(!a||i==="_")}function vt(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 Vt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Q.isNegativeZero(e)}var $t=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:jt,construct:vt,predicate:Vt,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"]}}),Kt=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||!Kt.test(e)||e[e.length-1]==="_")}function Ft(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 Mt=/^[-+]?[0-9]+e/;function Pt(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(Q.isNegativeZero(e))return"-0.0";return r=e.toString(10),Mt.test(r)?r.replace("e",".e"):r}function Lt(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Q.isNegativeZero(e))}var qt=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:Dt,construct:Ft,predicate:Lt,represent:Pt,defaultStyle:"lowercase"}),Rt=Ct.extend({implicit:[Nt,It,$t,qt]}),Ut=Rt,be=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),we=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:be.exec(e)!==null||we.exec(e)!==null}function Ht(e){var n,r,a,i,l,o,s,y=0,w=null,f,p,g;if(n=be.exec(e),n===null&&(n=we.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(y=n[7].slice(0,3);y.length<3;)y+="0";y=+y}return n[9]&&(f=+n[10],p=+(n[11]||0),w=(f*60+p)*6e4,n[9]==="-"&&(w=-w)),g=new Date(Date.UTC(r,a,i,l,o,s,y)),w&&g.setTime(g.getTime()-w),g}function Jt(e){return e.toISOString()}var Wt=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:zt,construct:Ht,instanceOf:Date,represent:Jt});function Yt(e){return e==="<<"||e===null}var Zt=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Yt}),te=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
4
4
  \r`;function Gt(e){if(e===null)return!1;var n,r,a=0,i=e.length,l=te;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 Xt(e){var n,r,a=e.replace(/[\r\n=]/g,""),i=a.length,l=te,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 Qt(e){var n="",r=0,a,i,l=e.length,o=te;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:Gt,construct:Xt,predicate:er,represent:Qt}),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});Ut.extend({implicit:[Wt,Zt],explicit:[tr,or,dr,yr]});function Ce(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.76",
3
+ "version": "2.1.77",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-consumer-credentials.umd.js",
6
6
  "module": "./dist/entities-consumer-credentials.es.js",
@@ -50,7 +50,7 @@
50
50
  "errorLimit": "300KB"
51
51
  },
52
52
  "dependencies": {
53
- "@kong-ui-public/entities-shared": "^2.12.0"
53
+ "@kong-ui-public/entities-shared": "^2.12.1"
54
54
  },
55
55
  "scripts": {
56
56
  "dev": "cross-env USE_SANDBOX=true vite",