@kong-ui-public/entities-consumers 2.2.5 → 2.2.6-pr.940.13b0772b.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -971,10 +971,10 @@ const re = {
|
|
|
971
971
|
setup(e, { emit: n }) {
|
|
972
972
|
const t = e;
|
|
973
973
|
ma((f) => ({
|
|
974
|
-
"
|
|
975
|
-
"
|
|
976
|
-
"
|
|
977
|
-
"
|
|
974
|
+
"0da74440": u.value ? "none" : `solid ${g(wr)} ${g(kr)}`,
|
|
975
|
+
"02a039da": l.value && i.value ? "block" : "flex",
|
|
976
|
+
"690f3ced": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
|
|
977
|
+
"691182c8": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
|
|
978
978
|
}));
|
|
979
979
|
const a = We(), { i18n: { t: r, formatUnixTimeStamp: o } } = re.useI18n(), i = $(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = $(() => !!(t.item.tooltip || a["label-tooltip"])), l = $(() => t.item.type === X.Json || t.item.type === X.JsonArray), u = $(() => t.item.type === X.JsonArray), d = $(() => {
|
|
980
980
|
switch (t.item.type) {
|
|
@@ -1222,7 +1222,7 @@ const re = {
|
|
|
1222
1222
|
]);
|
|
1223
1223
|
};
|
|
1224
1224
|
}
|
|
1225
|
-
}), bt = /* @__PURE__ */ me(Kr, [["__scopeId", "data-v-
|
|
1225
|
+
}), bt = /* @__PURE__ */ me(Kr, [["__scopeId", "data-v-9c87856b"]]);
|
|
1226
1226
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1227
1227
|
function kn(e) {
|
|
1228
1228
|
return typeof e > "u" || e === null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Q,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong-ui-public/i18n","axios","@kong/kongponents"],t):(Q=typeof globalThis<"u"?globalThis:Q||self,t(Q["kong-ui-public-entities-consumers"]={},Q.Vue,Q.VueRouter,Q["kong-ui-public-i18n"],Q.axios,Q.Kongponents))})(this,function(Q,t,Te,ye,Tn,$n){"use strict";const Mn={consumers:{list:{table_headers:{username:"Username",custom_id:"Custom ID",tags:"Tags",id:"ID"},empty_state:{title:"Configure a New Consumer",description:"Consumers are the end users of a service.",title_for_consumer_group:"Configure a New Consumer"},toolbar_actions:{new_consumer:"New Consumer"}},title:"Consumers",search:{placeholder:"Filter by name"},actions:{add_consumer:"Add Consumer",create:"New Consumer",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",remove:"Remove",view:"View Details"},delete:{title:"Delete a Consumer",description:"Deleting this consumer will also remove this consumer from any associated consumer group. This action cannot be reversed."},consumer_groups:{add:{title:"Add Consumers",ctaText:"Add consumers to this group",consumers_label:"Consumers",consumer_placeholder:"Add consumer",footer:"Search by exact name or ID to find consumers not included in the list"},remove:{title:"Remove a Consumer",confirmation:"Are you sure you want to remove this consumer {consumer} from consumer group {consumerGroup}?",confirmationNoCG:"Are you sure you want to remove this consumer {consumer} from this consumer group?",description:"Removing this consumer from the group could change the rate limit policy applied to this consumer."}},errors:{general:"Consumers could not be retrieved",delete:"The consumer could not be deleted at this time.",copy:"Failed to copy to clipboard",add:"Some consumers could not be added at this time.",already_added:"This consumer has already been added to the consumer group"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{title:"Consumer Identification",info:{title:"General Information",description:"General information will help identify and manage added consumer."},consumer_identification:{title:"Consumer Identification",description:"A consumer can have both unique username and unique custom ID or one of them."}},fields:{username:{label:"Username",placeholder:"Enter a unique username",tooltip:"The unique username of the Consumer. You must send either this field or {custom_id} with the request.",custom_id:"custom_id"},custom_id:{label:"Custom ID",placeholder:"Enter a unique custom ID",tooltip:"Field for storing an existing unique ID for the Consumer - useful for mapping Kong with users in your existing database. You must send either this field or {username} with the request.",username:"username"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings associated with the Consumer for grouping and filtering."}}}};function jn(){const e=ye.createI18n("en-us",Mn);return{i18n:e,i18nT:ye.i18nTComponent(e)}}const Se={useI18n:jn},$e="/api/runtime_groups/{controlPlaneId}",ce="/{workspace}",ie={list:{konnect:{all:"/v2/control-planes/{controlPlaneId}/core-entities/consumers",forConsumerGroup:"/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{consumerGroupId}/consumers",oneForConsumerGroup:"/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{consumerGroupId}/consumers/{consumerId}"},kongManager:{all:`${ce}/consumers`,forConsumerGroup:`${ce}/consumer_groups/{consumerGroupId}/consumers`,oneForConsumerGroup:`${ce}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`}},form:{konnect:{validate:`${$e}/v1/schemas/json/consumer/validate`,create:`${$e}/consumers`,edit:`${$e}/consumers/{id}`},kongManager:{validate:`${ce}/schemas/consumers/validate`,create:`${ce}/consumers`,edit:`${ce}/consumers/{id}`}}};var ot=(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))(ot||{}),Me=(e=>(e.Edit="edit",e.Create="create",e))(Me||{}),le=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(le||{}),K=(e=>(e.ID="id",e.IdArray="id-array",e.Text="plain-text",e.Date="date",e.Redacted="redacted",e.RedactedArray="redacted-array",e.Json="json",e.JsonArray="json-array",e.BadgeTag="badge-tag",e.BadgeStatus="badge-status",e.BadgeMethod="badge-method",e.LinkInternal="link-internal",e.LinkExternal="link-external",e))(K||{}),J=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(J||{});function je(e={}){return{axiosInstance:Tn.create({withCredentials:!0,timeout:3e4,...e})}}function On(){return{debounce:(e,o)=>{let n;return(...r)=>{clearTimeout(n),n=window==null?void 0:window.setTimeout(()=>{e(...r)},o)}}}}const Oe="khcp-user-table-preferences",Dn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function Fn(){const e=n=>{if(typeof n=="string")try{return JSON.parse(n)}catch(r){console.error("useTablePreferences(tryParseJson)",r);return}},o=()=>{const n=e(localStorage.getItem(Oe));return!n||!Object.keys(n).length?new Map:new Map(Object.entries(n))};return{setTablePreferences:(n,r)=>{try{const a=o();a.set(n,r),localStorage.setItem(Oe,JSON.stringify(Object.fromEntries(a.entries())))}catch(a){console.error("useTablePreferences(setTablePreferences)",a)}},getTablePreferences:n=>{const r=o();return(r==null?void 0:r.get(n))||void 0||Dn},deleteAllTablePreferences:()=>{localStorage.removeItem(Oe)}}}const Kn={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},qn={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},Ln={actions:{save:"Save",cancel:"Cancel",back:"Back"},errors:{edit:"The entity could not be edited at this time."}},vn={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Pn={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"}},Rn={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Un={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Gn={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},zn={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"}},Hn={global:Kn,deleteModal:qn,baseForm:Ln,baseTable:vn,baseConfigCard:Pn,filter:Rn,debouncedFilter:Un,errors:Gn,toggleModal:zn};function De(){const e=ye.createI18n("en-us",Hn);return{i18n:e,i18nT:ye.i18nTComponent(e)}}function rt(){const e=(n,r)=>(r==null?void 0:r[n])??void 0,o=(n,r)=>{if(n.length!==r.length)return!1;const a=new Set([...n,...r]);for(const i of a){const l=n.filter(c=>c===i).length,s=r.filter(c=>c===i).length;if(l!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(n,r,a)=>{if(a){if(Object.keys(n).length===Object.keys(r).length)for(const i in n)if(Array.isArray(n[i])&&Array.isArray(r[i])){if(o(n[i],r[i]))continue;return!1}else{if(n[i]===r[i])continue;return!1}else return!1;return!0}try{return JSON.stringify(n)===JSON.stringify(r)}catch{return!1}},sortAlpha:n=>(r,a)=>{let i=r[n]===void 0||r[n]===null?"":r[n],l=a[n]===void 0||a[n]===null?"":a[n];return Array.isArray(r[n])&&(i=r[n][0]),Array.isArray(a[n])&&(l=a[n][0]),i.localeCompare(l)},isValidUuid:n=>n?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(n):!1}}function Jn(e,o,n,r={fetchedItemsKey:"data",searchKeys:["id"]}){n||(n="100");const{axiosInstance:a}=je({headers:e.requestHeaders}),{i18n:{t:i}}=De(),{debounce:l}=On(),s=l(async x=>{await V(x)},200),c=t.ref(!1),d=t.ref(""),p=t.ref(""),u=t.ref([]),g=t.ref([]),m=t.ref(void 0),S=t.unref(o);let k=`${e.apiBaseUrl}${S}`;e.app==="konnect"?k=k.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(k=k.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:f}=rt(),B=async()=>{try{c.value=!0;const{data:x}=await a.get(`${k}?size=${n}`);x!=null&&x.next||(m.value=r.fetchedItemsKey in x?x[r.fetchedItemsKey]:[]),g.value=r.fetchedItemsKey in x?x[r.fetchedItemsKey]:[],u.value=g.value}catch{u.value=[],d.value=i("debouncedFilter.errors.fetch")}finally{c.value=!1}},y=t.ref(""),V=async x=>{var C,A,M;if(y.value!==x)if(y.value=x||"",m.value===void 0)try{if(c.value=!0,d.value="",p.value="",e.app==="konnect"){let h=k+"";x&&(h+=`/${x}`);const{data:b}=await a.get(`${h}?size=${n}`);r.fetchedItemsKey in b?u.value=b[r.fetchedItemsKey]:b!=null&&b.id?u.value=[b]:u.value=[]}else if(x){const h=[];f(x)&&r.searchKeys.includes("id")?h.push((async()=>{const{data:E}=await a.get(`${k}/${x}`);return[E[r.fetchedItemsKey]??E]})()):h.push(...r.searchKeys.filter(E=>E!=="id").map(async E=>{const{data:w}=await a.get(`${k}?${E}=${x}`);return w[r.fetchedItemsKey]}));const b=await Promise.all(h),$=new Set;u.value=[],(C=b==null?void 0:b.forEach)==null||C.call(b,E=>{var w;(w=E==null?void 0:E.forEach)==null||w.call(E,N=>{$.has(N.id)||($.add(N.id),u.value.push(N))})})}else u.value=g.value}catch(h){((A=h==null?void 0:h.response)==null?void 0:A.status)===404?p.value=i("debouncedFilter.errors.invalid"):(u.value=[],d.value=i("debouncedFilter.errors.fetch"))}finally{c.value=!1}else c.value=!0,p.value="",x?(u.value=(M=m.value)==null?void 0:M.filter(h=>{var b;let $=!1;for(const E of r.searchKeys){const w=typeof h[E]=="string"?(b=h[E])==null?void 0:b.toLowerCase():h[E];w!=null&&w.includes(x.toLowerCase())&&($=!0)}return $}),(!u.value||!u.value.length)&&(p.value=i("debouncedFilter.errors.invalid"))):u.value=m.value,c.value=!1};return{loading:c,error:d,validationError:p,results:u,allRecords:m,loadItems:B,debouncedQueryChange:s}}function Yn(e,o){const n=t.unref(o),r=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${n}`):new URL(n));return r.value.search="",a=>`${r.value.href}/${a}`}function Wn(){const{i18n:{t:e}}=De();return{getMessageFromError:o=>{var n,r,a;if(!o)return e("errors.unexpected");if((n=o==null?void 0:o.response)!=null&&n.data){if(o.response.data.detail)return o.response.data.detail;if((r=o.response.data.details)!=null&&r.length)return o.response.data.details.map(i=>{let l=e("errors.unexpected");return i.messages&&typeof i.messages=="object"&&i.messages.length&&(l=i.messages.join(", ")),i.field?`${i.field} - ${l}`:l}).join("; ");if(o.response.data.message){const{message:i}=o.response.data;return Array.isArray(i)?(a=i[0])!=null&&a.constraints?Object.values(i[0].constraints)[0]:i[0]:i}if(typeof o.response.data=="string")return o.response.data;if(typeof o.response.data=="object")return Object.keys(o.response.data).map(i=>`${i} ${o.response.data[i]}`).join(", ")}return o.message||e("errors.unexpected")}}}function Zn(e){const o=window.location.origin,n=o.endsWith("/")?o:`${o}/`;try{const r=e.join("/"),a=`${n}${r}`,i=e.some(l=>l.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(a)&&!i&&new URL(a))return`${n}${r}`;throw new Error("Invalid url")}catch(r){return console.warn("Failed to build valid URL:",r),""}}function at(e,o){const n=t.ref(t.unref(e)),r=t.ref(t.unref(o)),a=t.computed(()=>!!(n.value.app==="konnect"||n.value.isExactMatch)),i=t.computed(()=>r.value.startsWith("/")?new URL(`${window.location.origin}${r.value}`):new URL(r.value));return l=>{const{page:s,pageSize:c,offset:d,sortColumnKey:p,sortColumnOrder:u,query:g}=l;try{let m=new URL(i.value.href);return a.value&&g?(m.search="",m=new URL(`${m.href}?filter[name][contains]=${g}`)):(a.value||new URLSearchParams(g).forEach((S,k)=>{m.searchParams.append(k,S)}),p&&m.searchParams.append("sort_by",p),u==="desc"&&m.searchParams.append("sort_desc","1"),m.searchParams.append("size",String(c))),d&&s!==1&&m.searchParams.append("offset",String(d)),m.href}catch(m){return console.error("RouteList(fetcher)",m),r.value}}}function Qn(e,o,n="data"){const r=t.unref(o),{axiosInstance:a}=je({headers:e.requestHeaders}),i=at(e,r),l=t.ref({status:le.Idle});return{fetcher:async s=>{try{l.value={status:le.Loading};const c=i(s),{data:d}=await a.get(c),p=n&&n.replace(/[^\w-_]/gi,"");let u;d[p]&&Array.isArray(d[p])?u=d[p]:Array.isArray(d)?u=d:u=Object.keys(d).length?[d]:[];const g={data:u,total:u.length,...d.offset?{pagination:{offset:d.offset}}:null};return l.value={status:le.Idle,response:g},g}catch(c){const d={data:[],total:0};return s.query&&c.response.status===404?(l.value={status:le.NoResults,response:d,error:c},d):(l.value={status:le.Error,response:d,error:c},d)}},fetcherState:l}}function Xn(){const e=(n,r="_")=>n?n.split(r).map(a=>a.toLowerCase()==="id"?a.toUpperCase():a.charAt(0).toUpperCase()+a.substring(1)).join(" "):"",o=/(?:^|[\s-:'"])\w/g;return{capitalize:n=>n?n.replace(o,r=>r.toUpperCase()):"",convertKeyToTitle:e}}const it=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,lt=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const o=e.match(it);if(!o)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return o.shift(),o},st=e=>e==="*"||e==="x"||e==="X",ct=e=>{const o=parseInt(e,10);return isNaN(o)?e:o},eo=(e,o)=>typeof e!=typeof o?[String(e),String(o)]:[e,o],to=(e,o)=>{if(st(e)||st(o))return 0;const[n,r]=eo(ct(e),ct(o));return n>r?1:n<r?-1:0},dt=(e,o)=>{for(let n=0;n<Math.max(e.length,o.length);n++){const r=to(e[n]||"0",o[n]||"0");if(r!==0)return r}return 0},no=(e,o)=>{const n=lt(e),r=lt(o),a=n.pop(),i=r.pop(),l=dt(n,r);return l!==0?l:a&&i?dt(a.split("."),i.split(".")):a||i?a?-1:1:0},ut=(e,o,n)=>{oo(n);const r=no(e,o);return pt[n].includes(r)},pt={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ft=Object.keys(pt),oo=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ft.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ft.join("|")}`)},ro=e=>typeof e=="string"&&/^[v\d]/.test(e)&&it.test(e);function ao(e){const{gatewayInfo:o,supportedRange:n}=e;if(!o)return!0;const{edition:r,version:a}=o;if(!ro(a))return console.error("Invalid version"),!1;const i=n[r];if(!i)return!1;const[l,s]=i;return!(l&&ut(a,l,"<")||s&&ut(a,s,">"))}function io(e){const o=t.ref(0),n=t.ref(0),r=t.ref(!1);return t.watch(e,a=>{a&&!r.value&&(o.value=a.offsetWidth,n.value=a.scrollWidth,r.value=!0)}),{isTruncated:t.computed(()=>o.value<n.value)}}const U={useAxios:je,useDebouncedFilter:Jn,useDeleteUrlBuilder:Yn,useErrors:Wn,useExternalLinkCreator:Zn,useFetcher:Qn,useFetchUrlBuilder:at,useHelpers:rt,useStringHelpers:Xn,useI18n:De,useGatewayFeatureSupported:ao,useTruncationDetector:io},lo={fail:"Failed to copy id to clipboard",success:{prefix:"Successfully",content:" copied to clipboard"}},so="Copy to clipboard",co={message:lo,iconTitle:so},uo="kong-ui-copy-uuid-notify",mt="24px",po=(e,o)=>{const n=e.__vccOpts||e;for(const[r,a]of o)n[r]=a;return n},fo=e=>(t.pushScopeId("data-v-641e0aee"),e=e(),t.popScopeId(),e),mo=["aria-hidden"],go={key:0,"data-testid":"kui-icon-svg-title"},yo=fo(()=>t.createElementVNode("path",{d:"M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",fill:"currentColor"},null,-1)),ho=t.defineComponent({__name:"CopyIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:mt,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const o=String(e).replace(/px/gi,""),n=Number(o);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const o=e,n=t.computed(()=>{if(typeof o.size=="number"&&o.size>0)return`${o.size}px`;if(typeof o.size=="string"){const a=String(o.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return mt}),r=t.computed(()=>({boxSizing:"border-box",color:o.color,display:o.display,height:n.value,lineHeight:"0",width:n.value}));return(a,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon copy-icon","data-testid":"kui-icon-wrapper-copy-icon",style:t.normalizeStyle(r.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-copy-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",go,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),yo],8,mo))]),_:1},8,["aria-hidden","style"]))}}),ko=po(ho,[["__scopeId","data-v-641e0aee"]]),bo="16px",Co={class:"kong-ui-copy-uuid"},wo=["onClick"],gt=15,xo=t.defineComponent({__name:"CopyUuid",props:{uuid:{type:String,required:!0},idTooltip:{type:String,default:""},truncated:{type:Boolean,default:!0},useMono:{type:Boolean,default:!0},notify:{type:Function,default:void 0},iconColor:{type:String,default:"rgba(0, 0, 0, 0.45)"},tooltip:{type:String,default:""},successTooltip:{type:String,default:""},format:{type:String,required:!1,default:"uuid",validator:e=>["uuid","hidden","redacted","deleted"].includes(e)}},emits:["success","error"],setup(e,{emit:o}){const n=e,{t:r}=ye.createI18n("en-us",co),a=n.notify||t.inject(uo,()=>{}),i=t.computed(()=>n.idTooltip?{label:n.idTooltip,positionFixed:!0,placement:"bottomStart"}:{title:n.uuid}),l=t.computed(()=>!!(n.tooltip&&n.successTooltip)),s=t.ref(n.tooltip),c=t.computed(()=>n.tooltip?{label:s.value,positionFixed:!0,maxWidth:"500px",placement:"bottomStart"}:{}),d=t.computed(()=>{var g;return n.format==="redacted"?"*****":n.format==="deleted"?`*${(g=n.uuid)==null?void 0:g.substring(0,5)}`:n.uuid}),p=g=>{s.value=g,setTimeout(()=>{s.value=n.tooltip},1800)},u=g=>{var m,S;if(!g(n.uuid)){typeof a=="function"&&a({type:"error",message:r("message.fail")}),l.value?p(r("message.fail")):o("error",n.uuid);return}const k=((m=n.uuid)==null?void 0:m.length)>gt,f=n.format==="hidden"||n.format==="redacted"?r("message.success.prefix"):`"${((S=n.uuid)==null?void 0:S.substring(0,gt))+(k?"...":"")}"`;typeof a=="function"&&a({type:"success",message:`${f}${r("message.success.content")}`}),l.value?p(n.successTooltip):o("success",n.uuid)};return(g,m)=>{const S=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Co,[e.format!=="hidden"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.idTooltip?"KTooltip":"div"),t.mergeProps({key:0},i.value,{"data-testid":"copy-id"}),{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["uuid-container",e.truncated?"truncated-uuid":null,e.useMono?"mono":null])},t.toDisplayString(d.value),3)]),_:1},16)):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tooltip?"KTooltip":"div"),t.mergeProps(c.value,{class:"uuid-icon-wrapper"}),{default:t.withCtx(()=>[t.createVNode(S,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createElementVNode("span",{"data-testid":"copy-to-clipboard",role:"button",tabindex:"0",onClick:t.withModifiers(f=>u(k),["stop"])},[t.createVNode(t.unref(ko),{class:"uuid-icon",color:e.iconColor,decorative:!!e.tooltip,size:t.unref(bo),title:t.unref(r)("iconTitle")},null,8,["color","decorative","size","title"])],8,wo)]),_:1})]),_:1},16))])}}}),So=(e,o)=>{const n=e.__vccOpts||e;for(const[r,a]of o)n[r]=a;return n},yt=So(xo,[["__scopeId","data-v-0c07874b"]]),Bo={key:0,class:"config-card-fieldset-title"},Io=t.defineComponent({__name:"JsonCardItem",props:{item:{type:Object,required:!0},index:{type:Number,default:-1},isArrayItem:{type:Boolean,default:!1}},setup(e){const o=e,{i18n:{t:n}}=U.useI18n(),{convertKeyToTitle:r}=U.useStringHelpers(),a=t.computed(()=>o.item.key??"json-array-item"),i=t.computed(()=>o.item.value??o.item),l=t.computed(()=>{const c=JSON.parse(JSON.stringify(i.value));return o.isArrayItem&&delete c.name,c}),s=t.computed(()=>{var c;return o.isArrayItem?(c=i.value)!=null&&c.name?r(i.value.name,"_"):n("baseConfigCard.general.entryTitle",{index:o.index}):""});return(c,d)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isArrayItem?"fieldset":"div"),{class:t.normalizeClass(e.isArrayItem?"config-card-fieldset":"config-card-json-item")},{default:t.withCtx(()=>[e.isArrayItem?(t.openBlock(),t.createElementBlock("legend",Bo,[t.createElementVNode("b",null,t.toDisplayString(s.value),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(l.value),(p,u)=>(t.openBlock(),t.createBlock(Fe,{key:`${a.value}-property-${u}`,item:{key:p,label:t.unref(r)(p),value:l.value[p]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),X=(e,o)=>{const n=e.__vccOpts||e;for(const[r,a]of o)n[r]=a;return n},ht=X(Io,[["__scopeId","data-v-68ca83ec"]]),_o=t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:o}}=U.useI18n();return(n,r)=>{const a=t.resolveComponent("KButton");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(a,{appearance:"tertiary",class:"navigation-button",onClick:r[0]||(r[0]=i=>n.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(o)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),No=X(_o,[["__scopeId","data-v-c96811e5"]]),Ao=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:o}}=U.useI18n();return(n,r)=>{const a=t.resolveComponent("KBadge");return t.openBlock(),t.createBlock(a,{appearance:e.status?"success":"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.status?t.unref(o)("baseConfigCard.statusBadge.enabledLabel"):t.unref(o)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),Eo="#0044f4",Vo="#e0e4ea",To="#3a3f51",$o="1px",Mo="20px",jo={class:"config-card-details-row"},Oo=["data-testid"],Do=["data-testid"],Fo=["data-testid"],Ko=["data-testid"],qo={key:1},Lo=["data-testid"],vo=["data-testid"],Po=["data-testid"],Ro=["data-testid"],Uo={name:"ConfigCardItem",components:{CopyUuid:yt,JsonCardItem:ht,StatusBadge:Ao,InternalLinkItem:No}},Go=t.defineComponent({...Uo,props:{item:{type:Object,required:!0},slim:{type:Boolean,required:!1,default:!1},truncated:{type:Boolean,required:!1,default:!1}},emits:["navigation-click"],setup(e,{emit:o}){const n=e;t.useCssVars(m=>({"0fea14db":d.value?"none":`solid ${t.unref($o)} ${t.unref(Vo)}`,"1cf0460e":c.value&&l.value?"block":"flex","328cca12":c.value&&l.value?"100%":n.slim?"50%":"25%","328f0fed":c.value&&l.value?"100%":n.slim?"50%":"75%"}));const r=t.useSlots(),{i18n:{t:a,formatUnixTimeStamp:i}}=U.useI18n(),l=t.computed(()=>n.item.value!==void 0&&n.item.value!==null&&n.item.value!==""),s=t.computed(()=>!!(n.item.tooltip||r["label-tooltip"])),c=t.computed(()=>n.item.type===K.Json||n.item.type===K.JsonArray),d=t.computed(()=>n.item.type===K.JsonArray),p=t.computed(()=>{switch(n.item.type){case K.ID:return{tag:"CopyUuid",attrs:{"data-testid":`${n.item.key}-copy-uuid`,"success-tooltip":a("baseConfigCard.copy.success"),tooltip:a("baseConfigCard.copy.tooltip",{label:n.item.label}),truncated:!1,uuid:n.item.value,notify:()=>{}}};case K.IdArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{"success-tooltip":a("baseConfigCard.copy.success"),tooltip:a("baseConfigCard.copy.tooltip",{label:n.item.label}),truncated:!1,notify:()=>{}}};case K.Redacted:return{tag:"CopyUuid",attrs:{"data-testid":`${n.item.key}-copy-uuid-redacted`,format:"redacted","success-tooltip":a("baseConfigCard.copy.success"),tooltip:a("baseConfigCard.copy.tooltip",{label:n.item.label}),truncated:!1,uuid:n.item.value,notify:()=>{}}};case K.RedactedArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{format:"redacted","success-tooltip":a("baseConfigCard.copy.success"),tooltip:a("baseConfigCard.copy.tooltip",{label:n.item.label}),truncated:!1,notify:()=>{}}};case K.Date:return{tag:"div",attrs:{"data-testid":`${n.item.key}-date`},text:i(n.item.value)};case K.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${n.item.key}-badge-status`,status:n.item.value}};case K.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case K.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case K.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${n.item.key}-internal-link`,item:n.item,onNavigationClick:m=>{o("navigation-click",m)}}};case K.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${n.item.key}-external-link`,href:n.item.value},text:n.item.value};case K.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${n.item.key}-json-content`,item:n.item}};case K.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${n.item.key}-json-array-content`,item:n.item}};default:return{tag:"div",attrs:{"data-testid":`${n.item.key}-plain-text`},text:n.item.value}}}),u=t.ref(),{isTruncated:g}=U.useTruncationDetector(u);return(m,S)=>{const k=t.resolveComponent("KLabel"),f=t.resolveComponent("KBadge"),B=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("div",jo,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(m.$slots,"label",{item:e.item},()=>[t.createVNode(k,{"tooltip-attributes":{maxWidth:"500px"}},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.label)+" ",1)]),_:2},[s.value?{name:"tooltip",fn:t.withCtx(()=>[t.createElementVNode("div",{"data-testid":`${e.item.key}-label-tooltip`},[t.renderSlot(m.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(e.item.tooltip),1)],!0)],8,Do)]),key:"0"}:void 0]),1024)],!0)],8,Oo),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[t.renderSlot(m.$slots,e.item.key,{rowValue:e.item.value},()=>[l.value?(t.openBlock(),t.createElementBlock("div",qo,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p.value.tag),t.normalizeProps(t.guardReactiveProps(p.value.attrs)),{default:t.withCtx(()=>[p.value.additionalComponent==="KBadge"?(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-badge-tags`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(y,V)=>(t.openBlock(),t.createBlock(f,{key:`${e.item.key}-badge-tag-${V}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${V}`,tooltip:y,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(y),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,Lo)):t.createCommentVNode("",!0),p.value.additionalComponent==="CopyUuid"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"copy-uuid-array","data-testid":`${e.item.key}-copy-uuid-array`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(y,V)=>(t.openBlock(),t.createBlock(t.unref(yt),t.mergeProps(p.value.childAttrs,{key:`${e.item.key}-copy-uuid-${V}`,"data-testid":`${e.item.key}-copy-uuid-${V}`,uuid:y}),null,16,["data-testid","uuid"]))),128))],8,vo)):p.value.additionalComponent==="KMethodBadge"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"method-badge-array","data-testid":`${e.item.key}-badge-methods`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(y,V)=>(t.openBlock(),t.createBlock(f,{key:`${e.item.key}-badge-method-${V}`,appearance:Object.values(t.unref($n.BadgeMethodAppearances)).includes(y.toLowerCase())?y.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${V}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(y),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,Po)):t.createCommentVNode("",!0),p.value.additionalComponent==="JsonCardItem"?(t.openBlock(),t.createElementBlock("div",{key:3,"data-testid":`${n.item.key}-json-array-content`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(y,V)=>(t.openBlock(),t.createBlock(ht,{key:`json-array-item-${V}`,index:V,"is-array-item":"",item:y},null,8,["index","item"]))),128))],8,Ro)):(t.openBlock(),t.createBlock(B,{key:4,label:t.unref(g)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:u,class:t.normalizeClass(["attrs-data-text",{truncated:e.truncated}])},t.toDisplayString(p.value.text),3)]),_:1},8,["label"]))]),_:1},16))])):(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-no-value`}," – ",8,Ko))],!0)],8,Fo)])}}}),Fe=X(Go,[["__scopeId","data-v-4c7d8cc3"]]);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function kt(e){return typeof e>"u"||e===null}function zo(e){return typeof e=="object"&&e!==null}function Ho(e){return Array.isArray(e)?e:kt(e)?[]:[e]}function Jo(e,o){var n,r,a,i;if(o)for(i=Object.keys(o),n=0,r=i.length;n<r;n+=1)a=i[n],e[a]=o[a];return e}function Yo(e,o){var n="",r;for(r=0;r<o;r+=1)n+=e;return n}function Wo(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Zo=kt,Qo=zo,Xo=Ho,er=Yo,tr=Wo,nr=Jo,R={isNothing:Zo,isObject:Qo,toArray:Xo,repeat:er,isNegativeZero:tr,extend:nr};function bt(e,o){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!o&&e.mark.snippet&&(n+=`
|
|
1
|
+
(function(Q,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong-ui-public/i18n","axios","@kong/kongponents"],t):(Q=typeof globalThis<"u"?globalThis:Q||self,t(Q["kong-ui-public-entities-consumers"]={},Q.Vue,Q.VueRouter,Q["kong-ui-public-i18n"],Q.axios,Q.Kongponents))})(this,function(Q,t,Te,ye,Tn,$n){"use strict";const Mn={consumers:{list:{table_headers:{username:"Username",custom_id:"Custom ID",tags:"Tags",id:"ID"},empty_state:{title:"Configure a New Consumer",description:"Consumers are the end users of a service.",title_for_consumer_group:"Configure a New Consumer"},toolbar_actions:{new_consumer:"New Consumer"}},title:"Consumers",search:{placeholder:"Filter by name"},actions:{add_consumer:"Add Consumer",create:"New Consumer",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",remove:"Remove",view:"View Details"},delete:{title:"Delete a Consumer",description:"Deleting this consumer will also remove this consumer from any associated consumer group. This action cannot be reversed."},consumer_groups:{add:{title:"Add Consumers",ctaText:"Add consumers to this group",consumers_label:"Consumers",consumer_placeholder:"Add consumer",footer:"Search by exact name or ID to find consumers not included in the list"},remove:{title:"Remove a Consumer",confirmation:"Are you sure you want to remove this consumer {consumer} from consumer group {consumerGroup}?",confirmationNoCG:"Are you sure you want to remove this consumer {consumer} from this consumer group?",description:"Removing this consumer from the group could change the rate limit policy applied to this consumer."}},errors:{general:"Consumers could not be retrieved",delete:"The consumer could not be deleted at this time.",copy:"Failed to copy to clipboard",add:"Some consumers could not be added at this time.",already_added:"This consumer has already been added to the consumer group"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{title:"Consumer Identification",info:{title:"General Information",description:"General information will help identify and manage added consumer."},consumer_identification:{title:"Consumer Identification",description:"A consumer can have both unique username and unique custom ID or one of them."}},fields:{username:{label:"Username",placeholder:"Enter a unique username",tooltip:"The unique username of the Consumer. You must send either this field or {custom_id} with the request.",custom_id:"custom_id"},custom_id:{label:"Custom ID",placeholder:"Enter a unique custom ID",tooltip:"Field for storing an existing unique ID for the Consumer - useful for mapping Kong with users in your existing database. You must send either this field or {username} with the request.",username:"username"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings associated with the Consumer for grouping and filtering."}}}};function jn(){const e=ye.createI18n("en-us",Mn);return{i18n:e,i18nT:ye.i18nTComponent(e)}}const Se={useI18n:jn},$e="/api/runtime_groups/{controlPlaneId}",ce="/{workspace}",ie={list:{konnect:{all:"/v2/control-planes/{controlPlaneId}/core-entities/consumers",forConsumerGroup:"/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{consumerGroupId}/consumers",oneForConsumerGroup:"/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{consumerGroupId}/consumers/{consumerId}"},kongManager:{all:`${ce}/consumers`,forConsumerGroup:`${ce}/consumer_groups/{consumerGroupId}/consumers`,oneForConsumerGroup:`${ce}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`}},form:{konnect:{validate:`${$e}/v1/schemas/json/consumer/validate`,create:`${$e}/consumers`,edit:`${$e}/consumers/{id}`},kongManager:{validate:`${ce}/schemas/consumers/validate`,create:`${ce}/consumers`,edit:`${ce}/consumers/{id}`}}};var ot=(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))(ot||{}),Me=(e=>(e.Edit="edit",e.Create="create",e))(Me||{}),le=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(le||{}),K=(e=>(e.ID="id",e.IdArray="id-array",e.Text="plain-text",e.Date="date",e.Redacted="redacted",e.RedactedArray="redacted-array",e.Json="json",e.JsonArray="json-array",e.BadgeTag="badge-tag",e.BadgeStatus="badge-status",e.BadgeMethod="badge-method",e.LinkInternal="link-internal",e.LinkExternal="link-external",e))(K||{}),J=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(J||{});function je(e={}){return{axiosInstance:Tn.create({withCredentials:!0,timeout:3e4,...e})}}function On(){return{debounce:(e,o)=>{let n;return(...r)=>{clearTimeout(n),n=window==null?void 0:window.setTimeout(()=>{e(...r)},o)}}}}const Oe="khcp-user-table-preferences",Dn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function Fn(){const e=n=>{if(typeof n=="string")try{return JSON.parse(n)}catch(r){console.error("useTablePreferences(tryParseJson)",r);return}},o=()=>{const n=e(localStorage.getItem(Oe));return!n||!Object.keys(n).length?new Map:new Map(Object.entries(n))};return{setTablePreferences:(n,r)=>{try{const a=o();a.set(n,r),localStorage.setItem(Oe,JSON.stringify(Object.fromEntries(a.entries())))}catch(a){console.error("useTablePreferences(setTablePreferences)",a)}},getTablePreferences:n=>{const r=o();return(r==null?void 0:r.get(n))||void 0||Dn},deleteAllTablePreferences:()=>{localStorage.removeItem(Oe)}}}const Kn={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},qn={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},Ln={actions:{save:"Save",cancel:"Cancel",back:"Back"},errors:{edit:"The entity could not be edited at this time."}},vn={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Pn={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"}},Rn={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Un={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Gn={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},zn={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"}},Hn={global:Kn,deleteModal:qn,baseForm:Ln,baseTable:vn,baseConfigCard:Pn,filter:Rn,debouncedFilter:Un,errors:Gn,toggleModal:zn};function De(){const e=ye.createI18n("en-us",Hn);return{i18n:e,i18nT:ye.i18nTComponent(e)}}function rt(){const e=(n,r)=>(r==null?void 0:r[n])??void 0,o=(n,r)=>{if(n.length!==r.length)return!1;const a=new Set([...n,...r]);for(const i of a){const l=n.filter(c=>c===i).length,s=r.filter(c=>c===i).length;if(l!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(n,r,a)=>{if(a){if(Object.keys(n).length===Object.keys(r).length)for(const i in n)if(Array.isArray(n[i])&&Array.isArray(r[i])){if(o(n[i],r[i]))continue;return!1}else{if(n[i]===r[i])continue;return!1}else return!1;return!0}try{return JSON.stringify(n)===JSON.stringify(r)}catch{return!1}},sortAlpha:n=>(r,a)=>{let i=r[n]===void 0||r[n]===null?"":r[n],l=a[n]===void 0||a[n]===null?"":a[n];return Array.isArray(r[n])&&(i=r[n][0]),Array.isArray(a[n])&&(l=a[n][0]),i.localeCompare(l)},isValidUuid:n=>n?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(n):!1}}function Jn(e,o,n,r={fetchedItemsKey:"data",searchKeys:["id"]}){n||(n="100");const{axiosInstance:a}=je({headers:e.requestHeaders}),{i18n:{t:i}}=De(),{debounce:l}=On(),s=l(async x=>{await V(x)},200),c=t.ref(!1),d=t.ref(""),p=t.ref(""),u=t.ref([]),g=t.ref([]),m=t.ref(void 0),S=t.unref(o);let k=`${e.apiBaseUrl}${S}`;e.app==="konnect"?k=k.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(k=k.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:f}=rt(),B=async()=>{try{c.value=!0;const{data:x}=await a.get(`${k}?size=${n}`);x!=null&&x.next||(m.value=r.fetchedItemsKey in x?x[r.fetchedItemsKey]:[]),g.value=r.fetchedItemsKey in x?x[r.fetchedItemsKey]:[],u.value=g.value}catch{u.value=[],d.value=i("debouncedFilter.errors.fetch")}finally{c.value=!1}},y=t.ref(""),V=async x=>{var C,A,M;if(y.value!==x)if(y.value=x||"",m.value===void 0)try{if(c.value=!0,d.value="",p.value="",e.app==="konnect"){let h=k+"";x&&(h+=`/${x}`);const{data:b}=await a.get(`${h}?size=${n}`);r.fetchedItemsKey in b?u.value=b[r.fetchedItemsKey]:b!=null&&b.id?u.value=[b]:u.value=[]}else if(x){const h=[];f(x)&&r.searchKeys.includes("id")?h.push((async()=>{const{data:E}=await a.get(`${k}/${x}`);return[E[r.fetchedItemsKey]??E]})()):h.push(...r.searchKeys.filter(E=>E!=="id").map(async E=>{const{data:w}=await a.get(`${k}?${E}=${x}`);return w[r.fetchedItemsKey]}));const b=await Promise.all(h),$=new Set;u.value=[],(C=b==null?void 0:b.forEach)==null||C.call(b,E=>{var w;(w=E==null?void 0:E.forEach)==null||w.call(E,N=>{$.has(N.id)||($.add(N.id),u.value.push(N))})})}else u.value=g.value}catch(h){((A=h==null?void 0:h.response)==null?void 0:A.status)===404?p.value=i("debouncedFilter.errors.invalid"):(u.value=[],d.value=i("debouncedFilter.errors.fetch"))}finally{c.value=!1}else c.value=!0,p.value="",x?(u.value=(M=m.value)==null?void 0:M.filter(h=>{var b;let $=!1;for(const E of r.searchKeys){const w=typeof h[E]=="string"?(b=h[E])==null?void 0:b.toLowerCase():h[E];w!=null&&w.includes(x.toLowerCase())&&($=!0)}return $}),(!u.value||!u.value.length)&&(p.value=i("debouncedFilter.errors.invalid"))):u.value=m.value,c.value=!1};return{loading:c,error:d,validationError:p,results:u,allRecords:m,loadItems:B,debouncedQueryChange:s}}function Yn(e,o){const n=t.unref(o),r=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${n}`):new URL(n));return r.value.search="",a=>`${r.value.href}/${a}`}function Wn(){const{i18n:{t:e}}=De();return{getMessageFromError:o=>{var n,r,a;if(!o)return e("errors.unexpected");if((n=o==null?void 0:o.response)!=null&&n.data){if(o.response.data.detail)return o.response.data.detail;if((r=o.response.data.details)!=null&&r.length)return o.response.data.details.map(i=>{let l=e("errors.unexpected");return i.messages&&typeof i.messages=="object"&&i.messages.length&&(l=i.messages.join(", ")),i.field?`${i.field} - ${l}`:l}).join("; ");if(o.response.data.message){const{message:i}=o.response.data;return Array.isArray(i)?(a=i[0])!=null&&a.constraints?Object.values(i[0].constraints)[0]:i[0]:i}if(typeof o.response.data=="string")return o.response.data;if(typeof o.response.data=="object")return Object.keys(o.response.data).map(i=>`${i} ${o.response.data[i]}`).join(", ")}return o.message||e("errors.unexpected")}}}function Zn(e){const o=window.location.origin,n=o.endsWith("/")?o:`${o}/`;try{const r=e.join("/"),a=`${n}${r}`,i=e.some(l=>l.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(a)&&!i&&new URL(a))return`${n}${r}`;throw new Error("Invalid url")}catch(r){return console.warn("Failed to build valid URL:",r),""}}function at(e,o){const n=t.ref(t.unref(e)),r=t.ref(t.unref(o)),a=t.computed(()=>!!(n.value.app==="konnect"||n.value.isExactMatch)),i=t.computed(()=>r.value.startsWith("/")?new URL(`${window.location.origin}${r.value}`):new URL(r.value));return l=>{const{page:s,pageSize:c,offset:d,sortColumnKey:p,sortColumnOrder:u,query:g}=l;try{let m=new URL(i.value.href);return a.value&&g?(m.search="",m=new URL(`${m.href}?filter[name][contains]=${g}`)):(a.value||new URLSearchParams(g).forEach((S,k)=>{m.searchParams.append(k,S)}),p&&m.searchParams.append("sort_by",p),u==="desc"&&m.searchParams.append("sort_desc","1"),m.searchParams.append("size",String(c))),d&&s!==1&&m.searchParams.append("offset",String(d)),m.href}catch(m){return console.error("RouteList(fetcher)",m),r.value}}}function Qn(e,o,n="data"){const r=t.unref(o),{axiosInstance:a}=je({headers:e.requestHeaders}),i=at(e,r),l=t.ref({status:le.Idle});return{fetcher:async s=>{try{l.value={status:le.Loading};const c=i(s),{data:d}=await a.get(c),p=n&&n.replace(/[^\w-_]/gi,"");let u;d[p]&&Array.isArray(d[p])?u=d[p]:Array.isArray(d)?u=d:u=Object.keys(d).length?[d]:[];const g={data:u,total:u.length,...d.offset?{pagination:{offset:d.offset}}:null};return l.value={status:le.Idle,response:g},g}catch(c){const d={data:[],total:0};return s.query&&c.response.status===404?(l.value={status:le.NoResults,response:d,error:c},d):(l.value={status:le.Error,response:d,error:c},d)}},fetcherState:l}}function Xn(){const e=(n,r="_")=>n?n.split(r).map(a=>a.toLowerCase()==="id"?a.toUpperCase():a.charAt(0).toUpperCase()+a.substring(1)).join(" "):"",o=/(?:^|[\s-:'"])\w/g;return{capitalize:n=>n?n.replace(o,r=>r.toUpperCase()):"",convertKeyToTitle:e}}const it=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,lt=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const o=e.match(it);if(!o)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return o.shift(),o},st=e=>e==="*"||e==="x"||e==="X",ct=e=>{const o=parseInt(e,10);return isNaN(o)?e:o},eo=(e,o)=>typeof e!=typeof o?[String(e),String(o)]:[e,o],to=(e,o)=>{if(st(e)||st(o))return 0;const[n,r]=eo(ct(e),ct(o));return n>r?1:n<r?-1:0},dt=(e,o)=>{for(let n=0;n<Math.max(e.length,o.length);n++){const r=to(e[n]||"0",o[n]||"0");if(r!==0)return r}return 0},no=(e,o)=>{const n=lt(e),r=lt(o),a=n.pop(),i=r.pop(),l=dt(n,r);return l!==0?l:a&&i?dt(a.split("."),i.split(".")):a||i?a?-1:1:0},ut=(e,o,n)=>{oo(n);const r=no(e,o);return pt[n].includes(r)},pt={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ft=Object.keys(pt),oo=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ft.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ft.join("|")}`)},ro=e=>typeof e=="string"&&/^[v\d]/.test(e)&&it.test(e);function ao(e){const{gatewayInfo:o,supportedRange:n}=e;if(!o)return!0;const{edition:r,version:a}=o;if(!ro(a))return console.error("Invalid version"),!1;const i=n[r];if(!i)return!1;const[l,s]=i;return!(l&&ut(a,l,"<")||s&&ut(a,s,">"))}function io(e){const o=t.ref(0),n=t.ref(0),r=t.ref(!1);return t.watch(e,a=>{a&&!r.value&&(o.value=a.offsetWidth,n.value=a.scrollWidth,r.value=!0)}),{isTruncated:t.computed(()=>o.value<n.value)}}const U={useAxios:je,useDebouncedFilter:Jn,useDeleteUrlBuilder:Yn,useErrors:Wn,useExternalLinkCreator:Zn,useFetcher:Qn,useFetchUrlBuilder:at,useHelpers:rt,useStringHelpers:Xn,useI18n:De,useGatewayFeatureSupported:ao,useTruncationDetector:io},lo={fail:"Failed to copy id to clipboard",success:{prefix:"Successfully",content:" copied to clipboard"}},so="Copy to clipboard",co={message:lo,iconTitle:so},uo="kong-ui-copy-uuid-notify",mt="24px",po=(e,o)=>{const n=e.__vccOpts||e;for(const[r,a]of o)n[r]=a;return n},fo=e=>(t.pushScopeId("data-v-641e0aee"),e=e(),t.popScopeId(),e),mo=["aria-hidden"],go={key:0,"data-testid":"kui-icon-svg-title"},yo=fo(()=>t.createElementVNode("path",{d:"M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",fill:"currentColor"},null,-1)),ho=t.defineComponent({__name:"CopyIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:mt,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const o=String(e).replace(/px/gi,""),n=Number(o);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const o=e,n=t.computed(()=>{if(typeof o.size=="number"&&o.size>0)return`${o.size}px`;if(typeof o.size=="string"){const a=String(o.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return mt}),r=t.computed(()=>({boxSizing:"border-box",color:o.color,display:o.display,height:n.value,lineHeight:"0",width:n.value}));return(a,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon copy-icon","data-testid":"kui-icon-wrapper-copy-icon",style:t.normalizeStyle(r.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-copy-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",go,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),yo],8,mo))]),_:1},8,["aria-hidden","style"]))}}),ko=po(ho,[["__scopeId","data-v-641e0aee"]]),bo="16px",Co={class:"kong-ui-copy-uuid"},wo=["onClick"],gt=15,xo=t.defineComponent({__name:"CopyUuid",props:{uuid:{type:String,required:!0},idTooltip:{type:String,default:""},truncated:{type:Boolean,default:!0},useMono:{type:Boolean,default:!0},notify:{type:Function,default:void 0},iconColor:{type:String,default:"rgba(0, 0, 0, 0.45)"},tooltip:{type:String,default:""},successTooltip:{type:String,default:""},format:{type:String,required:!1,default:"uuid",validator:e=>["uuid","hidden","redacted","deleted"].includes(e)}},emits:["success","error"],setup(e,{emit:o}){const n=e,{t:r}=ye.createI18n("en-us",co),a=n.notify||t.inject(uo,()=>{}),i=t.computed(()=>n.idTooltip?{label:n.idTooltip,positionFixed:!0,placement:"bottomStart"}:{title:n.uuid}),l=t.computed(()=>!!(n.tooltip&&n.successTooltip)),s=t.ref(n.tooltip),c=t.computed(()=>n.tooltip?{label:s.value,positionFixed:!0,maxWidth:"500px",placement:"bottomStart"}:{}),d=t.computed(()=>{var g;return n.format==="redacted"?"*****":n.format==="deleted"?`*${(g=n.uuid)==null?void 0:g.substring(0,5)}`:n.uuid}),p=g=>{s.value=g,setTimeout(()=>{s.value=n.tooltip},1800)},u=g=>{var m,S;if(!g(n.uuid)){typeof a=="function"&&a({type:"error",message:r("message.fail")}),l.value?p(r("message.fail")):o("error",n.uuid);return}const k=((m=n.uuid)==null?void 0:m.length)>gt,f=n.format==="hidden"||n.format==="redacted"?r("message.success.prefix"):`"${((S=n.uuid)==null?void 0:S.substring(0,gt))+(k?"...":"")}"`;typeof a=="function"&&a({type:"success",message:`${f}${r("message.success.content")}`}),l.value?p(n.successTooltip):o("success",n.uuid)};return(g,m)=>{const S=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Co,[e.format!=="hidden"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.idTooltip?"KTooltip":"div"),t.mergeProps({key:0},i.value,{"data-testid":"copy-id"}),{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["uuid-container",e.truncated?"truncated-uuid":null,e.useMono?"mono":null])},t.toDisplayString(d.value),3)]),_:1},16)):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tooltip?"KTooltip":"div"),t.mergeProps(c.value,{class:"uuid-icon-wrapper"}),{default:t.withCtx(()=>[t.createVNode(S,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createElementVNode("span",{"data-testid":"copy-to-clipboard",role:"button",tabindex:"0",onClick:t.withModifiers(f=>u(k),["stop"])},[t.createVNode(t.unref(ko),{class:"uuid-icon",color:e.iconColor,decorative:!!e.tooltip,size:t.unref(bo),title:t.unref(r)("iconTitle")},null,8,["color","decorative","size","title"])],8,wo)]),_:1})]),_:1},16))])}}}),So=(e,o)=>{const n=e.__vccOpts||e;for(const[r,a]of o)n[r]=a;return n},yt=So(xo,[["__scopeId","data-v-0c07874b"]]),Bo={key:0,class:"config-card-fieldset-title"},Io=t.defineComponent({__name:"JsonCardItem",props:{item:{type:Object,required:!0},index:{type:Number,default:-1},isArrayItem:{type:Boolean,default:!1}},setup(e){const o=e,{i18n:{t:n}}=U.useI18n(),{convertKeyToTitle:r}=U.useStringHelpers(),a=t.computed(()=>o.item.key??"json-array-item"),i=t.computed(()=>o.item.value??o.item),l=t.computed(()=>{const c=JSON.parse(JSON.stringify(i.value));return o.isArrayItem&&delete c.name,c}),s=t.computed(()=>{var c;return o.isArrayItem?(c=i.value)!=null&&c.name?r(i.value.name,"_"):n("baseConfigCard.general.entryTitle",{index:o.index}):""});return(c,d)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isArrayItem?"fieldset":"div"),{class:t.normalizeClass(e.isArrayItem?"config-card-fieldset":"config-card-json-item")},{default:t.withCtx(()=>[e.isArrayItem?(t.openBlock(),t.createElementBlock("legend",Bo,[t.createElementVNode("b",null,t.toDisplayString(s.value),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(l.value),(p,u)=>(t.openBlock(),t.createBlock(Fe,{key:`${a.value}-property-${u}`,item:{key:p,label:t.unref(r)(p),value:l.value[p]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),X=(e,o)=>{const n=e.__vccOpts||e;for(const[r,a]of o)n[r]=a;return n},ht=X(Io,[["__scopeId","data-v-68ca83ec"]]),_o=t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:o}}=U.useI18n();return(n,r)=>{const a=t.resolveComponent("KButton");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(a,{appearance:"tertiary",class:"navigation-button",onClick:r[0]||(r[0]=i=>n.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(o)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),No=X(_o,[["__scopeId","data-v-c96811e5"]]),Ao=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:o}}=U.useI18n();return(n,r)=>{const a=t.resolveComponent("KBadge");return t.openBlock(),t.createBlock(a,{appearance:e.status?"success":"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.status?t.unref(o)("baseConfigCard.statusBadge.enabledLabel"):t.unref(o)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),Eo="#0044f4",Vo="#e0e4ea",To="#3a3f51",$o="1px",Mo="20px",jo={class:"config-card-details-row"},Oo=["data-testid"],Do=["data-testid"],Fo=["data-testid"],Ko=["data-testid"],qo={key:1},Lo=["data-testid"],vo=["data-testid"],Po=["data-testid"],Ro=["data-testid"],Uo={name:"ConfigCardItem",components:{CopyUuid:yt,JsonCardItem:ht,StatusBadge:Ao,InternalLinkItem:No}},Go=t.defineComponent({...Uo,props:{item:{type:Object,required:!0},slim:{type:Boolean,required:!1,default:!1},truncated:{type:Boolean,required:!1,default:!1}},emits:["navigation-click"],setup(e,{emit:o}){const n=e;t.useCssVars(m=>({"0da74440":d.value?"none":`solid ${t.unref($o)} ${t.unref(Vo)}`,"02a039da":c.value&&l.value?"block":"flex","690f3ced":c.value&&l.value?"100%":n.slim?"50%":"25%","691182c8":c.value&&l.value?"100%":n.slim?"50%":"75%"}));const r=t.useSlots(),{i18n:{t:a,formatUnixTimeStamp:i}}=U.useI18n(),l=t.computed(()=>n.item.value!==void 0&&n.item.value!==null&&n.item.value!==""),s=t.computed(()=>!!(n.item.tooltip||r["label-tooltip"])),c=t.computed(()=>n.item.type===K.Json||n.item.type===K.JsonArray),d=t.computed(()=>n.item.type===K.JsonArray),p=t.computed(()=>{switch(n.item.type){case K.ID:return{tag:"CopyUuid",attrs:{"data-testid":`${n.item.key}-copy-uuid`,"success-tooltip":a("baseConfigCard.copy.success"),tooltip:a("baseConfigCard.copy.tooltip",{label:n.item.label}),truncated:!1,uuid:n.item.value,notify:()=>{}}};case K.IdArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{"success-tooltip":a("baseConfigCard.copy.success"),tooltip:a("baseConfigCard.copy.tooltip",{label:n.item.label}),truncated:!1,notify:()=>{}}};case K.Redacted:return{tag:"CopyUuid",attrs:{"data-testid":`${n.item.key}-copy-uuid-redacted`,format:"redacted","success-tooltip":a("baseConfigCard.copy.success"),tooltip:a("baseConfigCard.copy.tooltip",{label:n.item.label}),truncated:!1,uuid:n.item.value,notify:()=>{}}};case K.RedactedArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{format:"redacted","success-tooltip":a("baseConfigCard.copy.success"),tooltip:a("baseConfigCard.copy.tooltip",{label:n.item.label}),truncated:!1,notify:()=>{}}};case K.Date:return{tag:"div",attrs:{"data-testid":`${n.item.key}-date`},text:i(n.item.value)};case K.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${n.item.key}-badge-status`,status:n.item.value}};case K.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case K.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case K.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${n.item.key}-internal-link`,item:n.item,onNavigationClick:m=>{o("navigation-click",m)}}};case K.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${n.item.key}-external-link`,href:n.item.value},text:n.item.value};case K.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${n.item.key}-json-content`,item:n.item}};case K.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${n.item.key}-json-array-content`,item:n.item}};default:return{tag:"div",attrs:{"data-testid":`${n.item.key}-plain-text`},text:n.item.value}}}),u=t.ref(),{isTruncated:g}=U.useTruncationDetector(u);return(m,S)=>{const k=t.resolveComponent("KLabel"),f=t.resolveComponent("KBadge"),B=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("div",jo,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(m.$slots,"label",{item:e.item},()=>[t.createVNode(k,{"tooltip-attributes":{maxWidth:"500px"}},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.label)+" ",1)]),_:2},[s.value?{name:"tooltip",fn:t.withCtx(()=>[t.createElementVNode("div",{"data-testid":`${e.item.key}-label-tooltip`},[t.renderSlot(m.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(e.item.tooltip),1)],!0)],8,Do)]),key:"0"}:void 0]),1024)],!0)],8,Oo),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[t.renderSlot(m.$slots,e.item.key,{rowValue:e.item.value},()=>[l.value?(t.openBlock(),t.createElementBlock("div",qo,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p.value.tag),t.normalizeProps(t.guardReactiveProps(p.value.attrs)),{default:t.withCtx(()=>[p.value.additionalComponent==="KBadge"?(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-badge-tags`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(y,V)=>(t.openBlock(),t.createBlock(f,{key:`${e.item.key}-badge-tag-${V}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${V}`,tooltip:y,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(y),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,Lo)):t.createCommentVNode("",!0),p.value.additionalComponent==="CopyUuid"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"copy-uuid-array","data-testid":`${e.item.key}-copy-uuid-array`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(y,V)=>(t.openBlock(),t.createBlock(t.unref(yt),t.mergeProps(p.value.childAttrs,{key:`${e.item.key}-copy-uuid-${V}`,"data-testid":`${e.item.key}-copy-uuid-${V}`,uuid:y}),null,16,["data-testid","uuid"]))),128))],8,vo)):p.value.additionalComponent==="KMethodBadge"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"method-badge-array","data-testid":`${e.item.key}-badge-methods`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(y,V)=>(t.openBlock(),t.createBlock(f,{key:`${e.item.key}-badge-method-${V}`,appearance:Object.values(t.unref($n.BadgeMethodAppearances)).includes(y.toLowerCase())?y.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${V}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(y),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,Po)):t.createCommentVNode("",!0),p.value.additionalComponent==="JsonCardItem"?(t.openBlock(),t.createElementBlock("div",{key:3,"data-testid":`${n.item.key}-json-array-content`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(y,V)=>(t.openBlock(),t.createBlock(ht,{key:`json-array-item-${V}`,index:V,"is-array-item":"",item:y},null,8,["index","item"]))),128))],8,Ro)):(t.openBlock(),t.createBlock(B,{key:4,label:t.unref(g)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:u,class:t.normalizeClass(["attrs-data-text",{truncated:e.truncated}])},t.toDisplayString(p.value.text),3)]),_:1},8,["label"]))]),_:1},16))])):(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-no-value`}," – ",8,Ko))],!0)],8,Fo)])}}}),Fe=X(Go,[["__scopeId","data-v-9c87856b"]]);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function kt(e){return typeof e>"u"||e===null}function zo(e){return typeof e=="object"&&e!==null}function Ho(e){return Array.isArray(e)?e:kt(e)?[]:[e]}function Jo(e,o){var n,r,a,i;if(o)for(i=Object.keys(o),n=0,r=i.length;n<r;n+=1)a=i[n],e[a]=o[a];return e}function Yo(e,o){var n="",r;for(r=0;r<o;r+=1)n+=e;return n}function Wo(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Zo=kt,Qo=zo,Xo=Ho,er=Yo,tr=Wo,nr=Jo,R={isNothing:Zo,isObject:Qo,toArray:Xo,repeat:er,isNegativeZero:tr,extend:nr};function bt(e,o){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!o&&e.mark.snippet&&(n+=`
|
|
2
2
|
|
|
3
3
|
`+e.mark.snippet),r+" "+n):r}function he(e,o){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=o,this.message=bt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}he.prototype=Object.create(Error.prototype),he.prototype.constructor=he,he.prototype.toString=function(e){return this.name+": "+bt(this,e)};var H=he;function Ke(e,o,n,r,a){var i="",l="",s=Math.floor(a/2)-1;return r-o>s&&(i=" ... ",o=r-s+i.length),n-r>s&&(l=" ...",n=r+s-l.length),{str:i+e.slice(o,n).replace(/\t/g,"→")+l,pos:r-o+i.length}}function qe(e,o){return R.repeat(" ",o-e.length)+e}function or(e,o){if(o=Object.create(o||null),!e.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,l=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&l<0&&(l=r.length-2);l<0&&(l=r.length-1);var s="",c,d,p=Math.min(e.line+o.linesAfter,a.length).toString().length,u=o.maxLength-(o.indent+p+3);for(c=1;c<=o.linesBefore&&!(l-c<0);c++)d=Ke(e.buffer,r[l-c],a[l-c],e.position-(r[l]-r[l-c]),u),s=R.repeat(" ",o.indent)+qe((e.line-c+1).toString(),p)+" | "+d.str+`
|
|
4
4
|
`+s;for(d=Ke(e.buffer,r[l],a[l],e.position,u),s+=R.repeat(" ",o.indent)+qe((e.line+1).toString(),p)+" | "+d.str+`
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.kong-ui-copy-uuid[data-v-0c07874b]{align-items:center;display:flex}.kong-ui-copy-uuid .uuid-container[data-v-0c07874b]{margin-right:12px;white-space:nowrap}.kong-ui-copy-uuid .truncated-uuid[data-v-0c07874b]{margin-right:1ch;max-width:10ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-copy-uuid .uuid-icon-wrapper[data-v-0c07874b]{align-items:center;cursor:pointer;display:flex}.kong-ui-copy-uuid .uuid-icon[data-v-0c07874b]{display:flex}.config-card-details-row[data-v-4c7d8cc3]{align-items:center;border-bottom:var(--0fea14db);display:var(--1cf0460e);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-4c7d8cc3]{width:var(--328cca12)}.config-card-details-row .config-card-details-label label[data-v-4c7d8cc3]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-4c7d8cc3]{width:var(--328f0fed)}.config-card-details-row .config-card-details-value .truncated[data-v-4c7d8cc3]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-4c7d8cc3]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-4c7d8cc3] .kong-ui-copy-uuid:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-4c7d8cc3]{display:flex}.config-card-details-row .config-badge[data-v-4c7d8cc3]{margin-right:4px}.config-card-details-row[data-v-4c7d8cc3] .k-label{margin-bottom:0}.config-card-details-row[data-v-4c7d8cc3] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-4c7d8cc3] .config-card-details-row{width:auto}.config-card-display-json #config-card-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-codeblock .k-highlighted-code-block code{background-color:#232633}.config-card-prop-section-title[data-v-c914c7e4]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .k-card-title[data-v-bea4df63]{margin-bottom:0}.kong-ui-entity-base-config-card[data-v-bea4df63] .k-card-content .k-card-body{font-size:14px}.kong-ui-entity-base-config-card .config-card-actions[data-v-bea4df63]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-bea4df63]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-bea4df63]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-bea4df63] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-bea4df63]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-448d8512]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-448d8512]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-448d8512] .k-button:last-of-type{margin-left:16px}.content-wrapper[data-v-e42a20c9] [role=button]{display:inline}.content-wrapper[data-v-e42a20c9] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-57b5a97b]{align-items:center}.kong-ui-entity-base-table .toolbar-button-container[data-v-57b5a97b]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-57b5a97b]{float:right}.kong-ui-entity-base-table .actions-container[data-v-57b5a97b] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-57b5a97b]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.k-tabs>.tab-container>.kong-ui-entity-base-table,.k-tabs>.tab-container>[class^=kong-ui-entities-]>.kong-ui-entity-base-table{border-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-1c9a2a07],.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-1c9a2a07]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{margin-top:32px}.kong-ui-entity-delete-error[data-v-1c9a2a07]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-15962ee2]{width:100%}.kong-ui-entity-filter[data-v-15962ee2]{display:flex;position:relative}.kong-ui-entity-filter[data-v-15962ee2] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-15962ee2] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-15962ee2]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-15962ee2]{box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;position:absolute;top:100%;z-index:1060}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus{box-shadow:none}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus-visible{box-shadow:0 0 0 1px #bee2ff}.menu-item-title[data-v-15962ee2]{align-items:center;display:flex}.menu-item-indicator[data-v-15962ee2]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-15962ee2]{align-items:center;display:flex;justify-content:space-between}.menu-item-body[data-v-15962ee2] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-15962ee2] .k-input-wrapper{width:100%}.menu-item-body[data-v-15962ee2] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-15962ee2] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-15962ee2]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-15962ee2]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-15962ee2]{padding:0 20px}fieldset[data-v-8b6dc312]{margin:0;padding:0}.kong-ui-entity-form-section[data-v-8b6dc312]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-8b6dc312]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-8b6dc312]{color:#000933;font-size:18px;font-weight:600;line-height:24px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-8b6dc312]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-8b6dc312]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-77c479ff]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-77c479ff]{display:flex}.kong-ui-public-entity-link .entity-link-icon[data-v-77c479ff]{color:#0044f4;margin-left:4px}.kong-ui-public-entity-link .entity-link-label[data-v-77c479ff]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-77c479ff]{margin-left:6px}.kong-ui-entities-add-consumers-modal .add-consumer-form-cta[data-v-68cc6403]{margin-top:0}.kong-ui-entities-add-consumers-modal .add-consumer-form-container[data-v-68cc6403]{margin-bottom:20px}.kong-ui-entities-add-consumers-modal .add-consumer-form-container .kong-ui-entity-add-consumers-error[data-v-68cc6403]{margin-top:16px}.kong-ui-entities-consumers-list[data-v-245027d1]{width:100%}.kong-ui-entities-consumers-list .message[data-v-245027d1]{margin-top:0}.kong-ui-entities-consumers-list .kong-ui-entity-filter-input[data-v-245027d1]{width:300px}.kong-ui-entities-consumer-form[data-v-99612940]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-consumer-form[data-v-99612940] .form-section-wrapper{column-gap:64px}}.fields-group-title[data-v-99612940]{color:#232633;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-99612940]{color:#00000073;font-size:14px;line-height:20px;margin-bottom:0;margin-top:0}.username-field[data-v-99612940]{margin-bottom:16px}
|
|
1
|
+
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.kong-ui-copy-uuid[data-v-0c07874b]{align-items:center;display:flex}.kong-ui-copy-uuid .uuid-container[data-v-0c07874b]{margin-right:12px;white-space:nowrap}.kong-ui-copy-uuid .truncated-uuid[data-v-0c07874b]{margin-right:1ch;max-width:10ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-copy-uuid .uuid-icon-wrapper[data-v-0c07874b]{align-items:center;cursor:pointer;display:flex}.kong-ui-copy-uuid .uuid-icon[data-v-0c07874b]{display:flex}.config-card-details-row[data-v-9c87856b]{align-items:center;border-bottom:var(--0da74440);display:var(--02a039da);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-9c87856b]{width:var(--690f3ced)}.config-card-details-row .config-card-details-label label[data-v-9c87856b]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-9c87856b]{width:var(--691182c8)}.config-card-details-row .config-card-details-value .truncated[data-v-9c87856b]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-9c87856b]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-9c87856b] .kong-ui-copy-uuid:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-9c87856b]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-9c87856b]{margin-right:4px}.config-card-details-row[data-v-9c87856b] .k-label{margin-bottom:0}.config-card-details-row[data-v-9c87856b] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-9c87856b] .config-card-details-row{width:auto}.config-card-display-json #config-card-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-codeblock .k-highlighted-code-block code{background-color:#232633}.config-card-prop-section-title[data-v-c914c7e4]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .k-card-title[data-v-bea4df63]{margin-bottom:0}.kong-ui-entity-base-config-card[data-v-bea4df63] .k-card-content .k-card-body{font-size:14px}.kong-ui-entity-base-config-card .config-card-actions[data-v-bea4df63]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-bea4df63]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-bea4df63]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-bea4df63] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-bea4df63]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-448d8512]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-448d8512]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-448d8512] .k-button:last-of-type{margin-left:16px}.content-wrapper[data-v-e42a20c9] [role=button]{display:inline}.content-wrapper[data-v-e42a20c9] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-57b5a97b]{align-items:center}.kong-ui-entity-base-table .toolbar-button-container[data-v-57b5a97b]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-57b5a97b]{float:right}.kong-ui-entity-base-table .actions-container[data-v-57b5a97b] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-57b5a97b]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.k-tabs>.tab-container>.kong-ui-entity-base-table,.k-tabs>.tab-container>[class^=kong-ui-entities-]>.kong-ui-entity-base-table{border-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-1c9a2a07],.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-1c9a2a07]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{margin-top:32px}.kong-ui-entity-delete-error[data-v-1c9a2a07]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-15962ee2]{width:100%}.kong-ui-entity-filter[data-v-15962ee2]{display:flex;position:relative}.kong-ui-entity-filter[data-v-15962ee2] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-15962ee2] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-15962ee2]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-15962ee2]{box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;position:absolute;top:100%;z-index:1060}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus{box-shadow:none}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus-visible{box-shadow:0 0 0 1px #bee2ff}.menu-item-title[data-v-15962ee2]{align-items:center;display:flex}.menu-item-indicator[data-v-15962ee2]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-15962ee2]{align-items:center;display:flex;justify-content:space-between}.menu-item-body[data-v-15962ee2] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-15962ee2] .k-input-wrapper{width:100%}.menu-item-body[data-v-15962ee2] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-15962ee2] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-15962ee2]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-15962ee2]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-15962ee2]{padding:0 20px}fieldset[data-v-8b6dc312]{margin:0;padding:0}.kong-ui-entity-form-section[data-v-8b6dc312]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-8b6dc312]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-8b6dc312]{color:#000933;font-size:18px;font-weight:600;line-height:24px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-8b6dc312]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-8b6dc312]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-77c479ff]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-77c479ff]{display:flex}.kong-ui-public-entity-link .entity-link-icon[data-v-77c479ff]{color:#0044f4;margin-left:4px}.kong-ui-public-entity-link .entity-link-label[data-v-77c479ff]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-77c479ff]{margin-left:6px}.kong-ui-entities-add-consumers-modal .add-consumer-form-cta[data-v-68cc6403]{margin-top:0}.kong-ui-entities-add-consumers-modal .add-consumer-form-container[data-v-68cc6403]{margin-bottom:20px}.kong-ui-entities-add-consumers-modal .add-consumer-form-container .kong-ui-entity-add-consumers-error[data-v-68cc6403]{margin-top:16px}.kong-ui-entities-consumers-list[data-v-245027d1]{width:100%}.kong-ui-entities-consumers-list .message[data-v-245027d1]{margin-top:0}.kong-ui-entities-consumers-list .kong-ui-entity-filter-input[data-v-245027d1]{width:300px}.kong-ui-entities-consumer-form[data-v-99612940]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-consumer-form[data-v-99612940] .form-section-wrapper{column-gap:64px}}.fields-group-title[data-v-99612940]{color:#232633;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-99612940]{color:#00000073;font-size:14px;line-height:20px;margin-bottom:0;margin-top:0}.username-field[data-v-99612940]{margin-bottom:16px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-consumers",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6-pr.940.13b0772b.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-consumers.umd.js",
|
|
6
6
|
"module": "./dist/entities-consumers.es.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"errorLimit": "500KB"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@kong-ui-public/entities-shared": "^2.1.
|
|
52
|
+
"@kong-ui-public/entities-shared": "^2.1.6-pr.940.13b0772b.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"dev": "cross-env USE_SANDBOX=true vite",
|