@kong-ui-public/entities-consumer-groups 3.3.10 → 3.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(re,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):(re=typeof globalThis<"u"?globalThis:re||self,t(re["kong-ui-public-entities-consumer-groups"]={},re.Vue,re.VueRouter,re["kong-ui-public-i18n"],re.axios,re.Kongponents))})(this,function(re,t,We,Oe,ht,Pn){"use strict";const yt="24px",Rn=(e,n)=>{const r=e.__vccOpts||e;for(const[o,a]of n)r[o]=a;return r},zn=e=>(t.pushScopeId("data-v-c1f7c39c"),e=e(),t.popScopeId(),e),Gn=["aria-hidden"],Hn={key:0,"data-testid":"kui-icon-svg-title"},Jn=zn(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),Wn=Rn(t.defineComponent({__name:"AddIcon",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:yt,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const a=String(n.size).replace(/px/gi,""),l=Number(a);if(l&&!isNaN(l)&&Number.isInteger(l)&&l>0)return`${l}px`}return yt}),o=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,flexShrink:"0",height:r.value,lineHeight:"0",width:r.value}));return(a,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(o.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-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",Hn,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Jn],8,Gn))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-c1f7c39c"]]),Yn={consumer_groups:{list:{table_headers:{name:"Name",consumers_count:"Consumers",tags:"Tags",id:"ID"},empty_state:{title:"Configure a New Consumer Group",description:"Use consumer groups to manage custom rate limiting configuration for subsets of consumers.",title_for_consumer:"Add to a Consumer Group"},toolbar_actions:{new_consumer_group:"New Consumer Group"}},title:"Consumer Groups",search:{placeholder:"Filter by exact name or ID"},actions:{add_to_group:"Add to Consumer Group",create:"New Consumer Group",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",exit:"Exit",view:"View Details"},delete:{title:"Delete a Consumer Group",description:"Deleting this group will remove this group from all plugins and its rate limit configuration. This action cannot be reversed."},consumers:{add:{title:"Add To Consumer Groups",ctaText:"Add this consumer to consumer groups",consumer_groups_label:"Consumer Groups",consumer_group_placeholder:"Add to consumer groups",footer:"Search by exact name or ID to find consumer groups not included in the list"},exit:{title:"Exit from a Consumer Group",confirmation:"Are you sure you want to remove consumer {consumer} from consumer group {consumerGroup}?",confirmationNoUsername:"Are you sure you want this consumer to exit from consumer group {consumerGroup}?",description:"Exiting from the group could change the rate limit policy applied to this consumer."}},errors:{general:"Consumer Groups could not be retrieved",delete:"The consumer group could not be deleted at this time.",copy:"Failed to copy to clipboard",add:"The consumer could not be added to some groups at this time.",already_added:"The consumer is already in this consumer group",add_consumer:"An unexpected error occurred while adding consumers. Please try again.",remove_consumer:"An unexpected error occurred while removing consumers. Please try again."},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{general_info:{title:"General Information",description:"General information will help identify and manage this consumer group."},consumers:{title:"Consumers",description:"Add or remove consumers from this group"},fields:{name:{label:"Name",placeholder:"Enter a unique name for this consumer group "},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."},consumers:{label:"Consumers",placeholder:"Select one or more consumers"}}}}};function Zn(){const e=Oe.createI18n("en-us",Yn);return{i18n:e,i18nT:Oe.i18nTComponent(e)}}const Fe={useI18n:Zn},de="/v2/control-planes/{controlPlaneId}/core-entities",ue="/{workspace}",fe={list:{konnect:{all:`${de}/consumer_groups`,forConsumer:`${de}/consumers/{consumerId}/consumer_groups`,oneForConsumer:`${de}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`},kongManager:{all:`${ue}/consumer_groups?counter=true`,forConsumer:`${ue}/consumers/{consumerId}/consumer_groups`,oneForConsumer:`${ue}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`}},form:{konnect:{consumersList:`${de}/consumers`,create:`${de}/consumer_groups`,edit:`${de}/consumer_groups/{id}`,addConsumer:`${de}/consumer_groups/{id}/consumers`,removeConsumer:`${de}/consumer_groups/{id}/consumers/{consumerId}`,getConsumers:`${de}/consumer_groups/{id}/consumers`},kongManager:{consumersList:`${ue}/consumers`,create:`${ue}/consumer_groups`,edit:`${ue}/consumer_groups/{id}`,addConsumer:`${ue}/consumer_groups/{id}/consumers`,removeConsumer:`${ue}/consumer_groups/{id}/consumers/{consumerId}`,getConsumers:`${ue}/consumer_groups/{id}/consumers`}}};var bt=(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.Secret="secret",e))(bt||{}),De=(e=>(e.Edit="edit",e.Create="create",e))(De||{}),he=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(he||{}),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||{}),oe=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(oe||{});function Qn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):ht.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),ht.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 Xn(){return{debounce:(e,n)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},n)}}}}const Ye="khcp-user-table-preferences",er={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnWidths:{},columnVisibility:{}};function tr(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(o){console.error("useTablePreferences(tryParseJson)",o);return}},n=()=>{const r=e(localStorage.getItem(Ye));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,o)=>{try{const a=n();a.set(r,o),localStorage.setItem(Ye,JSON.stringify(Object.fromEntries(a.entries())))}catch(a){console.error("useTablePreferences(setTablePreferences)",a)}},getTablePreferences:r=>{const o=n();return(o==null?void 0:o.get(r))||void 0||er},deleteAllTablePreferences:()=>{localStorage.removeItem(Ye)}}}function Ze(e={}){const{getAxiosInstance:n}=Qn();return{axiosInstance:n(e)}}const nr={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},rr={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},or={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."}},ar={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},ir={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"}},lr={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},sr={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},cr={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},dr={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},ur={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"}},pr={global:nr,deleteModal:rr,baseForm:or,baseTable:ar,baseConfigCard:ir,filter:lr,debouncedFilter:sr,errors:cr,validationErrors:dr,toggleModal:ur};function qe(){const e=Oe.createI18n("en-us",pr);return{i18n:e,i18nT:Oe.i18nTComponent(e)}}function kt(){const e=(r,o)=>(o==null?void 0:o[r])??void 0,n=(r,o)=>{if(r.length!==o.length)return!1;const a=new Set([...r,...o]);for(const l of a){const i=r.filter(c=>c===l).length,s=o.filter(c=>c===l).length;if(i!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,o,a)=>{if(a){if(Object.keys(r).length===Object.keys(o).length)for(const l in r)if(Array.isArray(r[l])&&Array.isArray(o[l])){if(n(r[l],o[l]))continue;return!1}else{if(r[l]===o[l])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(o)}catch{return!1}},sortAlpha:r=>(o,a)=>{let l=o[r]===void 0||o[r]===null?"":o[r],i=a[r]===void 0||a[r]===null?"":a[r];return Array.isArray(o[r])&&(l=o[r][0]),Array.isArray(a[r])&&(i=a[r][0]),l.localeCompare(i)},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 fr(e,n,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:a}=Ze(e.axiosRequestConfig),{i18n:{t:l}}=qe(),{debounce:i}=Xn(),s=i(async h=>{await D(h)},200),c=t.ref(!1),d=t.ref(""),f=t.ref(""),u=t.ref([]),g=t.ref([]),m=t.ref(void 0),S=t.unref(n);let N=`${e.apiBaseUrl}${S}`;e.app==="konnect"?N=N.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(N=N.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:k}=kt(),$=async()=>{try{c.value=!0;const{data:h}=await a.get(`${N}?size=${r}`);h!=null&&h.next||(m.value=o.fetchedItemsKey in h?h[o.fetchedItemsKey]:[]),g.value=o.fetchedItemsKey in h?h[o.fetchedItemsKey]:[],u.value=g.value}catch{u.value=[],d.value=l("debouncedFilter.errors.fetch")}finally{c.value=!1}},B=t.ref(""),D=async h=>{var C,p,w;if(B.value!==h)if(B.value=h||"",m.value===void 0)try{if(c.value=!0,d.value="",f.value="",e.app==="konnect"){let T=N+"";h&&(T+=`/${h}`);const{data:x}=await a.get(`${T}?size=${r}`);o.fetchedItemsKey in x?u.value=x[o.fetchedItemsKey]:x!=null&&x.id?u.value=[x]:u.value=[]}else if(h){const T=[];k(h)&&o.searchKeys.includes("id")?T.push((async()=>{const{data:A}=await a.get(`${N}/${h}`);return[A[o.fetchedItemsKey]??A]})()):T.push(...o.searchKeys.filter(A=>A!=="id").map(async A=>{const{data:y}=await a.get(`${N}?${A}=${h}`);return y[o.fetchedItemsKey]}));const x=await Promise.all(T),O=new Set;u.value=[],(C=x==null?void 0:x.forEach)==null||C.call(x,A=>{var y;(y=A==null?void 0:A.forEach)==null||y.call(A,E=>{O.has(E.id)||(O.add(E.id),u.value.push(E))})})}else u.value=g.value}catch(T){((p=T==null?void 0:T.response)==null?void 0:p.status)===404?f.value=l("debouncedFilter.errors.invalid"):(u.value=[],d.value=l("debouncedFilter.errors.fetch"))}finally{c.value=!1}else c.value=!0,f.value="",h?(u.value=(w=m.value)==null?void 0:w.filter(T=>{var x;let O=!1;for(const A of o.searchKeys){const y=typeof T[A]=="string"?(x=T[A])==null?void 0:x.toLowerCase():T[A];y!=null&&y.includes(h.toLowerCase())&&(O=!0)}return O}),(!u.value||!u.value.length)&&(f.value=l("debouncedFilter.errors.invalid"))):u.value=m.value,c.value=!1};return{loading:c,error:d,validationError:f,results:u,allRecords:m,loadItems:$,debouncedQueryChange:s}}function mr(e,n){const r=t.unref(n),o=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return o.value.search="",a=>`${o.value.href}/${a}`}function gr(){const{i18n:{t:e}}=qe();return{getMessageFromError:n=>{var r,o,a,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((o=n==null?void 0:n.response)!=null&&o.data){if(n.response.data.detail)return n.response.data.detail;if((a=n.response.data.details)!=null&&a.length)return n.response.data.details.map(i=>{let s=e("errors.unexpected");return i.messages&&typeof i.messages=="object"&&i.messages.length&&(s=i.messages.join(", ")),i.field?`${i.field} - ${s}`:s}).join("; ");if(n.response.data.message){const{message:i}=n.response.data;return Array.isArray(i)?(l=i[0])!=null&&l.constraints?Object.values(i[0].constraints)[0]:i[0]:i}if(typeof n.response.data=="string")return n.response.data;if(typeof n.response.data=="object")return Object.keys(n.response.data).map(i=>`${i} ${n.response.data[i]}`).join(", ")}return n.message||e("errors.unexpected")}}}function hr(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const o=e.join("/"),a=`${r}${o}`,l=e.some(i=>i.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(a)&&!l&&new URL(a))return`${r}${o}`;throw new Error("Invalid url")}catch(o){return console.warn("Failed to build valid URL:",o),""}}function Ct(e,n){const r=t.ref(t.unref(e)),o=t.ref(t.unref(n)),a=t.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),l=t.computed(()=>o.value.startsWith("/")?new URL(`${window.location.origin}${o.value}`):new URL(o.value));return i=>{const{page:s,pageSize:c,offset:d,sortColumnKey:f,sortColumnOrder:u,query:g}=i;try{let m=new URL(l.value.href);return a.value&&g?(m.search="",m=r.value.isExactMatch?new URL(`${m.href}/${g}/`):new URL(`${m.href}?filter[name][contains]=${g}`)):(a.value||new URLSearchParams(g).forEach((S,N)=>{m.searchParams.append(N,S)}),f&&m.searchParams.append("sort_by",f),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),o.value}}}function yr(e,n,r="data"){const o=t.unref(n),{axiosInstance:a}=Ze(e.axiosRequestConfig),l=Ct(e,o),i=t.ref({status:he.Idle});return{fetcher:async s=>{var c;try{i.value={status:he.Loading};let d=l(s);d.includes("filter[name]")&&(d=`${d}&page[size]=${s.pageSize}&page[number]=${s.page}`);const f=await a.get(d);if(f.status>=400)throw f;const u=f.data,g=r&&r.replace(/[^\w-_]/gi,"");let m;u[g]&&Array.isArray(u[g])?m=u[g]:Array.isArray(u)?m=u:m=Object.keys(u).length?[u]:[];const S={data:m,total:m.length,...u.offset?{pagination:{offset:u.offset}}:null};return i.value={status:he.Idle,response:S},S}catch(d){const f={data:[],total:0};return s.query&&(((c=d.response)==null?void 0:c.status)===404||d.status===404)?(i.value={status:he.NoResults,response:f,error:d.response?d:{response:d}},f):(i.value={status:he.Error,response:f,error:d.response?d:{response:d}},f)}},fetcherState:i}}function br(){const e=(r,o="_")=>r?r.split(o).map(a=>a.toLowerCase()==="id"?a.toUpperCase():a.charAt(0).toUpperCase()+a.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(n,o=>o.toUpperCase()):"",convertKeyToTitle:e}}const wt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,St=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(wt);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},xt=e=>e==="*"||e==="x"||e==="X",_t=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},kr=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],Cr=(e,n)=>{if(xt(e)||xt(n))return 0;const[r,o]=kr(_t(e),_t(n));return r>o?1:r<o?-1:0},Nt=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const o=Cr(e[r]||"0",n[r]||"0");if(o!==0)return o}return 0},wr=(e,n)=>{const r=St(e),o=St(n),a=r.pop(),l=o.pop(),i=Nt(r,o);return i!==0?i:a&&l?Nt(a.split("."),l.split(".")):a||l?a?-1:1:0},Bt=(e,n,r)=>{Sr(r);const o=wr(e,n);return It[r].includes(o)},It={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},At=Object.keys(It),Sr=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(At.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${At.join("|")}`)},xr=e=>typeof e=="string"&&/^[v\d]/.test(e)&&wt.test(e);function _r(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:o,version:a}=n;if(!xr(a))return console.error("Invalid version"),!1;const l=r[o];if(!l)return!1;const[i,s]=l;return!(i&&Bt(a,i,"<")||s&&Bt(a,s,">"))}function Nr(e){const n=t.ref(0),r=t.ref(0),o=t.ref(!1);return t.watch(e,a=>{a&&!o.value&&(n.value=a.offsetWidth,r.value=a.scrollWidth,o.value=!0)}),{isTruncated:t.computed(()=>n.value<r.value)}}function Br(){const{i18n:{t:e}}=qe();return{utf8Name:n=>/^[\p{N}\p{L}.\-_~]*$/u.test(n)?"":e("validationErrors.utf8Name")}}const H={useAxios:Ze,useDebouncedFilter:fr,useDeleteUrlBuilder:mr,useErrors:gr,useExternalLinkCreator:hr,useFetcher:yr,useFetchUrlBuilder:Ct,useHelpers:kt,useStringHelpers:br,useI18n:qe,useGatewayFeatureSupported:_r,useTruncationDetector:Nr,useValidators:Br},Ir={key:0,class:"config-card-fieldset-title"},Ar=t.defineComponent({__name:"JsonCardItem",props:{item:{type:Object,required:!0},index:{type:Number,default:-1},isArrayItem:{type:Boolean,default:!1}},setup(e){const n=e,{i18n:{t:r}}=H.useI18n(),{convertKeyToTitle:o}=H.useStringHelpers(),a=t.computed(()=>n.item.key??"json-array-item"),l=t.computed(()=>n.item.value??n.item),i=t.computed(()=>{const c=JSON.parse(JSON.stringify(l.value));return n.isArrayItem&&delete c.name,c}),s=t.computed(()=>{var c;return n.isArrayItem?(c=l.value)!=null&&c.name?o(l.value.name,"_"):r("baseConfigCard.general.entryTitle",{index:n.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",Ir,[t.createElementVNode("b",null,t.toDisplayString(s.value),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.value),(f,u)=>(t.openBlock(),t.createBlock(Et,{key:`${a.value}-property-${u}`,item:{key:f,label:t.unref(o)(f),value:i.value[f]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),ae=(e,n)=>{const r=e.__vccOpts||e;for(const[o,a]of n)r[o]=a;return r},Vt=ae(Ar,[["__scopeId","data-v-68ca83ec"]]),Vr=t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:n}}=H.useI18n();return(r,o)=>{const a=t.resolveComponent("KButton");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(a,{appearance:"tertiary",class:"navigation-button",onClick:o[0]||(o[0]=l=>r.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(n)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),Er=ae(Vr,[["__scopeId","data-v-c96811e5"]]),Tr=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:n}}=H.useI18n();return(r,o)=>{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(n)("baseConfigCard.statusBadge.enabledLabel"):t.unref(n)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),$r="#0044f4",jr="#e0e4ea",vr="#afb7c5",Mr="1px",Or="20px",Fr={class:"config-card-details-row"},Dr=["data-testid"],qr=["data-testid"],Lr=["data-testid"],Kr=["data-testid"],Ur={key:1},Pr=["data-testid"],Rr=["data-testid"],zr=["data-testid"],Gr=["data-testid"],Hr={name:"ConfigCardItem",components:{JsonCardItem:Vt,StatusBadge:Tr,InternalLinkItem:Er}},Jr=t.defineComponent({...Hr,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:n}){t.useCssVars(S=>({dc1d91a8:f.value?"none":`solid ${t.unref(Mr)} ${t.unref(jr)}`,"59ccec5f":d.value&&s.value?"block":"flex","29318fbe":d.value&&s.value?"100%":r.slim?"50%":"25%","292d0408":d.value&&s.value?"100%":r.slim?"50%":"75%"}));const r=e,o=n,a=t.useSlots(),{i18n:{t:l,formatUnixTimeStamp:i}}=H.useI18n(),s=t.computed(()=>r.item.value!==void 0&&r.item.value!==null&&r.item.value!==""),c=t.computed(()=>!!(r.item.tooltip||a["label-tooltip"])),d=t.computed(()=>r.item.type===K.Json||r.item.type===K.JsonArray),f=t.computed(()=>r.item.type===K.JsonArray),u=t.computed(()=>{switch(r.item.type){case K.ID:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid`,"copy-tooltip":l("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case K.IdArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{"copy-tooltip":l("baseConfigCard.copy.tooltip",{label:r.item.label})}};case K.Redacted:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid-redacted`,format:"redacted","copy-tooltip":l("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case K.RedactedArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{format:"redacted","copy-tooltip":l("baseConfigCard.copy.tooltip",{label:r.item.label})}};case K.Date:return{tag:"div",attrs:{"data-testid":`${r.item.key}-date`},text:i(r.item.value)};case K.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${r.item.key}-badge-status`,status:r.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":`${r.item.key}-internal-link`,item:r.item,onNavigationClick:S=>{o("navigation-click",S)}}};case K.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${r.item.key}-external-link`,href:r.item.value},text:r.item.value};case K.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-content`,item:r.item}};case K.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-array-content`,item:r.item}};default:return{tag:"div",attrs:{"data-testid":`${r.item.key}-plain-text`},text:r.item.value}}}),g=t.ref(),{isTruncated:m}=H.useTruncationDetector(g);return(S,N)=>{const k=t.resolveComponent("KLabel"),$=t.resolveComponent("KBadge"),B=t.resolveComponent("KCopy"),D=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("div",Fr,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(S.$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},[c.value?{name:"tooltip",fn:t.withCtx(()=>[t.createElementVNode("div",{"data-testid":`${e.item.key}-label-tooltip`},[t.renderSlot(S.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(e.item.tooltip),1)],!0)],8,qr)]),key:"0"}:void 0]),1024)],!0)],8,Dr),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[t.renderSlot(S.$slots,e.item.key,{rowValue:e.item.value},()=>[s.value?(t.openBlock(),t.createElementBlock("div",Ur,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.value.tag),t.normalizeProps(t.guardReactiveProps(u.value.attrs)),{default:t.withCtx(()=>[u.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,(h,C)=>(t.openBlock(),t.createBlock($,{key:`${e.item.key}-badge-tag-${C}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${C}`,tooltip:h,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,Pr)):t.createCommentVNode("",!0),u.value.additionalComponent==="KCopy"?(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,(h,C)=>(t.openBlock(),t.createBlock(B,t.mergeProps({ref_for:!0},u.value.childAttrs,{key:`${e.item.key}-copy-uuid-${C}`,"data-testid":`${e.item.key}-copy-uuid-${C}`,text:h}),null,16,["data-testid","text"]))),128))],8,Rr)):u.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,(h,C)=>(t.openBlock(),t.createBlock($,{key:`${e.item.key}-badge-method-${C}`,appearance:Object.values(t.unref(Pn.BadgeMethodAppearances)).includes(h.toLowerCase())?h.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${C}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,zr)):t.createCommentVNode("",!0),u.value.additionalComponent==="JsonCardItem"?(t.openBlock(),t.createElementBlock("div",{key:3,"data-testid":`${r.item.key}-json-array-content`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(h,C)=>(t.openBlock(),t.createBlock(Vt,{key:`json-array-item-${C}`,index:C,"is-array-item":"",item:h},null,8,["index","item"]))),128))],8,Gr)):(t.openBlock(),t.createBlock(D,{key:4,text:t.unref(m)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:g,class:t.normalizeClass(["attrs-data-text",{truncated:e.truncated}])},t.toDisplayString(u.value.text),3)]),_:1},8,["text"]))]),_:1},16))])):(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-no-value`}," – ",8,Kr))],!0)],8,Lr)])}}}),Et=ae(Jr,[["__scopeId","data-v-d268261c"]]),Wr={class:"json-config"},Yr={key:0,class:"json-endpoint"},Tt=t.defineComponent({__name:"JsonCodeBlock",props:{config:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},jsonRecord:{type:Object,required:!0},requestMethod:{type:String,required:!1,default:""}},setup(e){t.useCssVars(a=>({"090794fe":`${o.value}ch`}));const n=e,r=t.computed(()=>n.jsonRecord),o=t.computed(()=>{var a;if(!n.fetcherUrl)return 0;const l=(a=n.fetcherUrl)==null?void 0:a.split("/");return l.length<2?0:41+(n.requestMethod==="post"?l[l.length-1]:l[l.length-2]).length});return(a,l)=>{const i=t.resolveComponent("KBadge"),s=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Wr,[n.fetcherUrl?(t.openBlock(),t.createElementBlock("div",Yr,[t.createVNode(i,{appearance:n.requestMethod},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.requestMethod),1)]),_:1},8,["appearance"]),t.createVNode(s,{id:"json-endpoint-codeblock",code:n.fetcherUrl,language:"json","single-line":"",theme:"dark"},null,8,["code"])])):t.createCommentVNode("",!0),n.jsonRecord?(t.openBlock(),t.createBlock(s,{key:1,id:"json-codeblock",class:t.normalizeClass({"json-content":n.fetcherUrl}),code:JSON.stringify(r.value,null,2),language:"json",theme:"dark"},null,8,["class","code"])):t.createCommentVNode("",!0)])}}});/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function $t(e){return typeof e>"u"||e===null}function Zr(e){return typeof e=="object"&&e!==null}function Qr(e){return Array.isArray(e)?e:$t(e)?[]:[e]}function Xr(e,n){var r,o,a,l;if(n)for(l=Object.keys(n),r=0,o=l.length;r<o;r+=1)a=l[r],e[a]=n[a];return e}function eo(e,n){var r="",o;for(o=0;o<n;o+=1)r+=e;return r}function to(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var no=$t,ro=Zr,oo=Qr,ao=eo,io=to,lo=Xr,G={isNothing:no,isObject:ro,toArray:oo,repeat:ao,isNegativeZero:io,extend:lo};function jt(e,n){var r="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(r+=`
|
|
1
|
+
(function(re,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):(re=typeof globalThis<"u"?globalThis:re||self,t(re["kong-ui-public-entities-consumer-groups"]={},re.Vue,re.VueRouter,re["kong-ui-public-i18n"],re.axios,re.Kongponents))})(this,function(re,t,We,Oe,ht,Pn){"use strict";const yt="24px",Rn=(e,n)=>{const r=e.__vccOpts||e;for(const[o,a]of n)r[o]=a;return r},zn=e=>(t.pushScopeId("data-v-c1f7c39c"),e=e(),t.popScopeId(),e),Gn=["aria-hidden"],Hn={key:0,"data-testid":"kui-icon-svg-title"},Jn=zn(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),Wn=Rn(t.defineComponent({__name:"AddIcon",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:yt,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const a=String(n.size).replace(/px/gi,""),l=Number(a);if(l&&!isNaN(l)&&Number.isInteger(l)&&l>0)return`${l}px`}return yt}),o=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,flexShrink:"0",height:r.value,lineHeight:"0",width:r.value}));return(a,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(o.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-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",Hn,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Jn],8,Gn))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-c1f7c39c"]]),Yn={consumer_groups:{list:{table_headers:{name:"Name",consumers_count:"Consumers",tags:"Tags",id:"ID"},empty_state:{title:"Configure a New Consumer Group",description:"Use consumer groups to manage custom rate limiting configuration for subsets of consumers.",title_for_consumer:"Add to a Consumer Group"},toolbar_actions:{new_consumer_group:"New Consumer Group"}},title:"Consumer Groups",search:{placeholder:"Filter by exact name or ID"},actions:{add_to_group:"Add to Consumer Group",create:"New Consumer Group",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",exit:"Exit",view:"View Details"},delete:{title:"Delete a Consumer Group",description:"Deleting this group will remove this group from all plugins and its rate limit configuration. This action cannot be reversed."},consumers:{add:{title:"Add To Consumer Groups",ctaText:"Add this consumer to consumer groups",consumer_groups_label:"Consumer Groups",consumer_group_placeholder:"Add to consumer groups",footer:"Search by exact name or ID to find consumer groups not included in the list"},exit:{title:"Exit from a Consumer Group",confirmation:"Are you sure you want to remove consumer {consumer} from consumer group {consumerGroup}?",confirmationNoUsername:"Are you sure you want this consumer to exit from consumer group {consumerGroup}?",description:"Exiting from the group could change the rate limit policy applied to this consumer."}},errors:{general:"Consumer Groups could not be retrieved",delete:"The consumer group could not be deleted at this time.",copy:"Failed to copy to clipboard",add:"The consumer could not be added to some groups at this time.",already_added:"The consumer is already in this consumer group",add_consumer:"An unexpected error occurred while adding consumers. Please try again.",remove_consumer:"An unexpected error occurred while removing consumers. Please try again."},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{general_info:{title:"General Information",description:"General information will help identify and manage this consumer group."},consumers:{title:"Consumers",description:"Add or remove consumers from this group"},fields:{name:{label:"Name",placeholder:"Enter a unique name for this consumer group "},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."},consumers:{label:"Consumers",placeholder:"Select one or more consumers"}}}}};function Zn(){const e=Oe.createI18n("en-us",Yn);return{i18n:e,i18nT:Oe.i18nTComponent(e)}}const Fe={useI18n:Zn},de="/v2/control-planes/{controlPlaneId}/core-entities",ue="/{workspace}",fe={list:{konnect:{all:`${de}/consumer_groups`,forConsumer:`${de}/consumers/{consumerId}/consumer_groups`,oneForConsumer:`${de}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`},kongManager:{all:`${ue}/consumer_groups?counter=true`,forConsumer:`${ue}/consumers/{consumerId}/consumer_groups`,oneForConsumer:`${ue}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`}},form:{konnect:{consumersList:`${de}/consumers`,create:`${de}/consumer_groups`,edit:`${de}/consumer_groups/{id}`,addConsumer:`${de}/consumer_groups/{id}/consumers`,removeConsumer:`${de}/consumer_groups/{id}/consumers/{consumerId}`,getConsumers:`${de}/consumer_groups/{id}/consumers`},kongManager:{consumersList:`${ue}/consumers`,create:`${ue}/consumer_groups`,edit:`${ue}/consumer_groups/{id}`,addConsumer:`${ue}/consumer_groups/{id}/consumers`,removeConsumer:`${ue}/consumer_groups/{id}/consumers/{consumerId}`,getConsumers:`${ue}/consumer_groups/{id}/consumers`}}};var bt=(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.Secret="secret",e))(bt||{}),De=(e=>(e.Edit="edit",e.Create="create",e))(De||{}),he=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(he||{}),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||{}),oe=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(oe||{});function Qn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):ht.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),ht.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 Xn(){return{debounce:(e,n)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},n)}}}}const Ye="khcp-user-table-preferences",er={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnWidths:{},columnVisibility:{}};function tr(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(o){console.error("useTablePreferences(tryParseJson)",o);return}},n=()=>{const r=e(localStorage.getItem(Ye));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,o)=>{try{const a=n();a.set(r,o),localStorage.setItem(Ye,JSON.stringify(Object.fromEntries(a.entries())))}catch(a){console.error("useTablePreferences(setTablePreferences)",a)}},getTablePreferences:r=>{const o=n();return(o==null?void 0:o.get(r))||void 0||er},deleteAllTablePreferences:()=>{localStorage.removeItem(Ye)}}}function Ze(e={}){const{getAxiosInstance:n}=Qn();return{axiosInstance:n(e)}}const nr={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},rr={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},or={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."}},ar={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},ir={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"}},lr={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},sr={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},cr={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},dr={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},ur={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"}},pr={global:nr,deleteModal:rr,baseForm:or,baseTable:ar,baseConfigCard:ir,filter:lr,debouncedFilter:sr,errors:cr,validationErrors:dr,toggleModal:ur};function qe(){const e=Oe.createI18n("en-us",pr);return{i18n:e,i18nT:Oe.i18nTComponent(e)}}function kt(){const e=(r,o)=>(o==null?void 0:o[r])??void 0,n=(r,o)=>{if(r.length!==o.length)return!1;const a=new Set([...r,...o]);for(const l of a){const i=r.filter(c=>c===l).length,s=o.filter(c=>c===l).length;if(i!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,o,a)=>{if(a){if(Object.keys(r).length===Object.keys(o).length)for(const l in r)if(Array.isArray(r[l])&&Array.isArray(o[l])){if(n(r[l],o[l]))continue;return!1}else{if(r[l]===o[l])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(o)}catch{return!1}},sortAlpha:r=>(o,a)=>{let l=o[r]===void 0||o[r]===null?"":o[r],i=a[r]===void 0||a[r]===null?"":a[r];return Array.isArray(o[r])&&(l=o[r][0]),Array.isArray(a[r])&&(i=a[r][0]),l.localeCompare(i)},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 fr(e,n,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:a}=Ze(e.axiosRequestConfig),{i18n:{t:l}}=qe(),{debounce:i}=Xn(),s=i(async h=>{await D(h)},200),c=t.ref(!1),d=t.ref(""),f=t.ref(""),u=t.ref([]),g=t.ref([]),m=t.ref(void 0),S=t.unref(n);let N=`${e.apiBaseUrl}${S}`;e.app==="konnect"?N=N.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(N=N.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:k}=kt(),$=async()=>{try{c.value=!0;const{data:h}=await a.get(`${N}?size=${r}`);h!=null&&h.next||(m.value=o.fetchedItemsKey in h?h[o.fetchedItemsKey]:[]),g.value=o.fetchedItemsKey in h?h[o.fetchedItemsKey]:[],u.value=g.value}catch{u.value=[],d.value=l("debouncedFilter.errors.fetch")}finally{c.value=!1}},B=t.ref(""),D=async h=>{var C,p,w;if(B.value!==h)if(B.value=h||"",m.value===void 0)try{if(c.value=!0,d.value="",f.value="",e.app==="konnect"){let T=N+"";h&&(T+=`/${h}`);const{data:x}=await a.get(`${T}?size=${r}`);o.fetchedItemsKey in x?u.value=x[o.fetchedItemsKey]:x!=null&&x.id?u.value=[x]:u.value=[]}else if(h){const T=[];k(h)&&o.searchKeys.includes("id")?T.push((async()=>{const{data:A}=await a.get(`${N}/${h}`);return[A[o.fetchedItemsKey]??A]})()):T.push(...o.searchKeys.filter(A=>A!=="id").map(async A=>{const{data:y}=await a.get(`${N}?${A}=${h}`);return y[o.fetchedItemsKey]}));const x=await Promise.all(T),O=new Set;u.value=[],(C=x==null?void 0:x.forEach)==null||C.call(x,A=>{var y;(y=A==null?void 0:A.forEach)==null||y.call(A,E=>{O.has(E.id)||(O.add(E.id),u.value.push(E))})})}else u.value=g.value}catch(T){((p=T==null?void 0:T.response)==null?void 0:p.status)===404?f.value=l("debouncedFilter.errors.invalid"):(u.value=[],d.value=l("debouncedFilter.errors.fetch"))}finally{c.value=!1}else c.value=!0,f.value="",h?(u.value=(w=m.value)==null?void 0:w.filter(T=>{var x;let O=!1;for(const A of o.searchKeys){const y=typeof T[A]=="string"?(x=T[A])==null?void 0:x.toLowerCase():T[A];y!=null&&y.includes(h.toLowerCase())&&(O=!0)}return O}),(!u.value||!u.value.length)&&(f.value=l("debouncedFilter.errors.invalid"))):u.value=m.value,c.value=!1};return{loading:c,error:d,validationError:f,results:u,allRecords:m,loadItems:$,debouncedQueryChange:s}}function mr(e,n){const r=t.unref(n),o=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return o.value.search="",a=>`${o.value.href}/${a}`}function gr(){const{i18n:{t:e}}=qe();return{getMessageFromError:n=>{var r,o,a,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((o=n==null?void 0:n.response)!=null&&o.data){if(n.response.data.detail)return n.response.data.detail;if((a=n.response.data.details)!=null&&a.length)return n.response.data.details.map(i=>{let s=e("errors.unexpected");return i.messages&&typeof i.messages=="object"&&i.messages.length&&(s=i.messages.join(", ")),i.field?`${i.field} - ${s}`:s}).join("; ");if(n.response.data.message){const{message:i}=n.response.data;return Array.isArray(i)?(l=i[0])!=null&&l.constraints?Object.values(i[0].constraints)[0]:i[0]:i}if(typeof n.response.data=="string")return n.response.data;if(typeof n.response.data=="object")return Object.keys(n.response.data).map(i=>`${i} ${n.response.data[i]}`).join(", ")}return n.message||e("errors.unexpected")}}}function hr(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const o=e.join("/"),a=`${r}${o}`,l=e.some(i=>i.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(a)&&!l&&new URL(a))return`${r}${o}`;throw new Error("Invalid url")}catch(o){return console.warn("Failed to build valid URL:",o),""}}function Ct(e,n){const r=t.ref(t.unref(e)),o=t.ref(t.unref(n)),a=t.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),l=t.computed(()=>o.value.startsWith("/")?new URL(`${window.location.origin}${o.value}`):new URL(o.value));return i=>{const{page:s,pageSize:c,offset:d,sortColumnKey:f,sortColumnOrder:u,query:g}=i;try{let m=new URL(l.value.href);return a.value&&g?(m.search="",m=r.value.isExactMatch?new URL(`${m.href}/${g}/`):new URL(`${m.href}?filter[name][contains]=${g}`)):(a.value||new URLSearchParams(g).forEach((S,N)=>{m.searchParams.append(N,S)}),f&&m.searchParams.append("sort_by",f),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),o.value}}}function yr(e,n,r="data"){const o=t.unref(n),{axiosInstance:a}=Ze(e.axiosRequestConfig),l=Ct(e,o),i=t.ref({status:he.Idle});return{fetcher:async s=>{var c;try{i.value={status:he.Loading};let d=l(s);d.includes("filter[name]")&&(d=`${d}&page[size]=${s.pageSize}&page[number]=${s.page}`);const f=await a.get(d);if(f.status>=400)throw f;const u=f.data,g=r&&r.replace(/[^\w-_]/gi,"");let m;u[g]&&Array.isArray(u[g])?m=u[g]:Array.isArray(u)?m=u:m=Object.keys(u).length?[u]:[];const S={data:m,total:m.length,...u.offset?{pagination:{offset:u.offset}}:null};return i.value={status:he.Idle,response:S},S}catch(d){const f={data:[],total:0};return s.query&&(((c=d.response)==null?void 0:c.status)===404||d.status===404)?(i.value={status:he.NoResults,response:f,error:d.response?d:{response:d}},f):(i.value={status:he.Error,response:f,error:d.response?d:{response:d}},f)}},fetcherState:i}}function br(){const e=(r,o="_")=>r?r.split(o).map(a=>a.toLowerCase()==="id"?a.toUpperCase():a.charAt(0).toUpperCase()+a.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(n,o=>o.toUpperCase()):"",convertKeyToTitle:e}}const wt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,St=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(wt);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},xt=e=>e==="*"||e==="x"||e==="X",_t=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},kr=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],Cr=(e,n)=>{if(xt(e)||xt(n))return 0;const[r,o]=kr(_t(e),_t(n));return r>o?1:r<o?-1:0},Nt=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const o=Cr(e[r]||"0",n[r]||"0");if(o!==0)return o}return 0},wr=(e,n)=>{const r=St(e),o=St(n),a=r.pop(),l=o.pop(),i=Nt(r,o);return i!==0?i:a&&l?Nt(a.split("."),l.split(".")):a||l?a?-1:1:0},Bt=(e,n,r)=>{Sr(r);const o=wr(e,n);return It[r].includes(o)},It={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},At=Object.keys(It),Sr=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(At.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${At.join("|")}`)},xr=e=>typeof e=="string"&&/^[v\d]/.test(e)&&wt.test(e);function _r(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:o,version:a}=n;if(!xr(a))return console.error("Invalid version"),!1;const l=r[o];if(!l)return!1;const[i,s]=l;return!(i&&Bt(a,i,"<")||s&&Bt(a,s,">"))}function Nr(e){const n=t.ref(0),r=t.ref(0),o=t.ref(!1);return t.watch(e,a=>{a&&!o.value&&(n.value=a.offsetWidth,r.value=a.scrollWidth,o.value=!0)}),{isTruncated:t.computed(()=>n.value<r.value)}}function Br(){const{i18n:{t:e}}=qe();return{utf8Name:n=>/^[\p{N}\p{L}.\-_~]*$/u.test(n)?"":e("validationErrors.utf8Name")}}const H={useAxios:Ze,useDebouncedFilter:fr,useDeleteUrlBuilder:mr,useErrors:gr,useExternalLinkCreator:hr,useFetcher:yr,useFetchUrlBuilder:Ct,useHelpers:kt,useStringHelpers:br,useI18n:qe,useGatewayFeatureSupported:_r,useTruncationDetector:Nr,useValidators:Br},Ir={key:0,class:"config-card-fieldset-title"},Ar=t.defineComponent({__name:"JsonCardItem",props:{item:{type:Object,required:!0},index:{type:Number,default:-1},isArrayItem:{type:Boolean,default:!1}},setup(e){const n=e,{i18n:{t:r}}=H.useI18n(),{convertKeyToTitle:o}=H.useStringHelpers(),a=t.computed(()=>n.item.key??"json-array-item"),l=t.computed(()=>n.item.value??n.item),i=t.computed(()=>{const c=JSON.parse(JSON.stringify(l.value));return n.isArrayItem&&delete c.name,c}),s=t.computed(()=>{var c;return n.isArrayItem?(c=l.value)!=null&&c.name?o(l.value.name,"_"):r("baseConfigCard.general.entryTitle",{index:n.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",Ir,[t.createElementVNode("b",null,t.toDisplayString(s.value),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(i.value),(f,u)=>(t.openBlock(),t.createBlock(Et,{key:`${a.value}-property-${u}`,item:{key:f,label:t.unref(o)(f),value:i.value[f]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),ae=(e,n)=>{const r=e.__vccOpts||e;for(const[o,a]of n)r[o]=a;return r},Vt=ae(Ar,[["__scopeId","data-v-68ca83ec"]]),Vr=t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:n}}=H.useI18n();return(r,o)=>{const a=t.resolveComponent("KButton");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(a,{appearance:"tertiary",class:"navigation-button",onClick:o[0]||(o[0]=l=>r.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(n)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),Er=ae(Vr,[["__scopeId","data-v-c96811e5"]]),Tr=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:n}}=H.useI18n();return(r,o)=>{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(n)("baseConfigCard.statusBadge.enabledLabel"):t.unref(n)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),$r="#0044f4",jr="#e0e4ea",vr="#afb7c5",Mr="1px",Or="20px",Fr={class:"config-card-details-row"},Dr=["data-testid"],qr=["data-testid"],Lr=["data-testid"],Kr=["data-testid"],Ur={key:1},Pr=["data-testid"],Rr=["data-testid"],zr=["data-testid"],Gr=["data-testid"],Hr={name:"ConfigCardItem",components:{JsonCardItem:Vt,StatusBadge:Tr,InternalLinkItem:Er}},Jr=t.defineComponent({...Hr,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:n}){t.useCssVars(S=>({dc1d91a8:f.value?"none":`solid ${t.unref(Mr)} ${t.unref(jr)}`,"59ccec5f":d.value&&s.value?"block":"flex","29318fbe":d.value&&s.value?"100%":r.slim?"50%":"25%","292d0408":d.value&&s.value?"100%":r.slim?"50%":"75%"}));const r=e,o=n,a=t.useSlots(),{i18n:{t:l,formatUnixTimeStamp:i}}=H.useI18n(),s=t.computed(()=>r.item.value!==void 0&&r.item.value!==null&&r.item.value!==""),c=t.computed(()=>!!(r.item.tooltip||a["label-tooltip"])),d=t.computed(()=>r.item.type===K.Json||r.item.type===K.JsonArray),f=t.computed(()=>r.item.type===K.JsonArray),u=t.computed(()=>{switch(r.item.type){case K.ID:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid`,"copy-tooltip":l("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case K.IdArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{"copy-tooltip":l("baseConfigCard.copy.tooltip",{label:r.item.label})}};case K.Redacted:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid-redacted`,format:"redacted","copy-tooltip":l("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case K.RedactedArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{format:"redacted","copy-tooltip":l("baseConfigCard.copy.tooltip",{label:r.item.label})}};case K.Date:return{tag:"div",attrs:{"data-testid":`${r.item.key}-date`},text:i(r.item.value)};case K.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${r.item.key}-badge-status`,status:r.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":`${r.item.key}-internal-link`,item:r.item,onNavigationClick:S=>{o("navigation-click",S)}}};case K.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${r.item.key}-external-link`,href:r.item.value},text:r.item.value};case K.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-content`,item:r.item}};case K.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-array-content`,item:r.item}};default:return{tag:"div",attrs:{"data-testid":`${r.item.key}-plain-text`},text:r.item.value}}}),g=t.ref(),{isTruncated:m}=H.useTruncationDetector(g);return(S,N)=>{const k=t.resolveComponent("KLabel"),$=t.resolveComponent("KBadge"),B=t.resolveComponent("KCopy"),D=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("div",Fr,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(S.$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},[c.value?{name:"tooltip",fn:t.withCtx(()=>[t.createElementVNode("div",{"data-testid":`${e.item.key}-label-tooltip`},[t.renderSlot(S.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(e.item.tooltip),1)],!0)],8,qr)]),key:"0"}:void 0]),1024)],!0)],8,Dr),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[t.renderSlot(S.$slots,e.item.key,{rowValue:e.item.value},()=>[s.value?(t.openBlock(),t.createElementBlock("div",Ur,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.value.tag),t.normalizeProps(t.guardReactiveProps(u.value.attrs)),{default:t.withCtx(()=>[u.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,(h,C)=>(t.openBlock(),t.createBlock($,{key:`${e.item.key}-badge-tag-${C}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${C}`,tooltip:h,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,Pr)):t.createCommentVNode("",!0),u.value.additionalComponent==="KCopy"?(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,(h,C)=>(t.openBlock(),t.createBlock(B,t.mergeProps({ref_for:!0},u.value.childAttrs,{key:`${e.item.key}-copy-uuid-${C}`,"data-testid":`${e.item.key}-copy-uuid-${C}`,text:h}),null,16,["data-testid","text"]))),128))],8,Rr)):u.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,(h,C)=>(t.openBlock(),t.createBlock($,{key:`${e.item.key}-badge-method-${C}`,appearance:Object.values(t.unref(Pn.BadgeMethodAppearances)).includes(h.toLowerCase())?h.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${C}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,zr)):t.createCommentVNode("",!0),u.value.additionalComponent==="JsonCardItem"?(t.openBlock(),t.createElementBlock("div",{key:3,"data-testid":`${r.item.key}-json-array-content`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(h,C)=>(t.openBlock(),t.createBlock(Vt,{key:`json-array-item-${C}`,index:C,"is-array-item":"",item:h},null,8,["index","item"]))),128))],8,Gr)):(t.openBlock(),t.createBlock(D,{key:4,text:t.unref(m)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:g,class:t.normalizeClass(["attrs-data-text",{truncated:e.truncated}])},t.toDisplayString(u.value.text),3)]),_:1},8,["text"]))]),_:1},16))])):(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-no-value`}," – ",8,Kr))],!0)],8,Lr)])}}}),Et=ae(Jr,[["__scopeId","data-v-d268261c"]]),Wr={class:"json-config"},Yr={key:0,class:"json-endpoint"},Tt=t.defineComponent({__name:"JsonCodeBlock",props:{config:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},jsonRecord:{type:Object,required:!0},requestMethod:{type:String,required:!1,default:""}},setup(e){t.useCssVars(a=>({"7a485cf8":`${o.value}ch`}));const n=e,r=t.computed(()=>n.jsonRecord),o=t.computed(()=>{var a;if(!n.fetcherUrl)return 0;const l=(a=n.fetcherUrl)==null?void 0:a.split("/");return l.length<2?0:41+(n.requestMethod==="post"?l[l.length-1]:l[l.length-2]).length});return(a,l)=>{const i=t.resolveComponent("KBadge"),s=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Wr,[n.fetcherUrl?(t.openBlock(),t.createElementBlock("div",Yr,[t.createVNode(i,{appearance:n.requestMethod},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.requestMethod),1)]),_:1},8,["appearance"]),t.createVNode(s,{id:"json-endpoint-codeblock",code:n.fetcherUrl,language:"json","single-line":"",theme:"dark"},null,8,["code"])])):t.createCommentVNode("",!0),n.jsonRecord?(t.openBlock(),t.createBlock(s,{key:1,id:"json-codeblock",class:t.normalizeClass({"json-content":n.fetcherUrl}),code:JSON.stringify(r.value,null,2),language:"json",theme:"dark"},null,8,["class","code"])):t.createCommentVNode("",!0)])}}});/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function $t(e){return typeof e>"u"||e===null}function Zr(e){return typeof e=="object"&&e!==null}function Qr(e){return Array.isArray(e)?e:$t(e)?[]:[e]}function Xr(e,n){var r,o,a,l;if(n)for(l=Object.keys(n),r=0,o=l.length;r<o;r+=1)a=l[r],e[a]=n[a];return e}function eo(e,n){var r="",o;for(o=0;o<n;o+=1)r+=e;return r}function to(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var no=$t,ro=Zr,oo=Qr,ao=eo,io=to,lo=Xr,G={isNothing:no,isObject:ro,toArray:oo,repeat:ao,isNegativeZero:io,extend:lo};function jt(e,n){var r="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(r+=`
|
|
2
2
|
|
|
3
3
|
`+e.mark.snippet),o+" "+r):o}function Be(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=jt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Be.prototype=Object.create(Error.prototype),Be.prototype.constructor=Be,Be.prototype.toString=function(e){return this.name+": "+jt(this,e)};var X=Be;function Qe(e,n,r,o,a){var l="",i="",s=Math.floor(a/2)-1;return o-n>s&&(l=" ... ",n=o-s+l.length),r-o>s&&(i=" ...",r=o+s-i.length),{str:l+e.slice(n,r).replace(/\t/g,"→")+i,pos:o-n+l.length}}function Xe(e,n){return G.repeat(" ",n-e.length)+e}function so(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var r=/\r?\n|\r|\0/g,o=[0],a=[],l,i=-1;l=r.exec(e.buffer);)a.push(l.index),o.push(l.index+l[0].length),e.position<=l.index&&i<0&&(i=o.length-2);i<0&&(i=o.length-1);var s="",c,d,f=Math.min(e.line+n.linesAfter,a.length).toString().length,u=n.maxLength-(n.indent+f+3);for(c=1;c<=n.linesBefore&&!(i-c<0);c++)d=Qe(e.buffer,o[i-c],a[i-c],e.position-(o[i]-o[i-c]),u),s=G.repeat(" ",n.indent)+Xe((e.line-c+1).toString(),f)+" | "+d.str+`
|
|
4
4
|
`+s;for(d=Qe(e.buffer,o[i],a[i],e.position,u),s+=G.repeat(" ",n.indent)+Xe((e.line+1).toString(),f)+" | "+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}.config-card-details-row[data-v-d268261c]{align-items:center;border-bottom:var(--dc1d91a8);display:var(--59ccec5f);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-d268261c]{width:var(--29318fbe)}.config-card-details-row .config-card-details-label label[data-v-d268261c]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-d268261c]{width:var(--292d0408)}.config-card-details-row .config-card-details-value .truncated[data-v-d268261c]{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-d268261c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-d268261c] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-d268261c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-d268261c]{margin-right:4px}.config-card-details-row[data-v-d268261c] .k-label{margin-bottom:0}.config-card-details-row[data-v-d268261c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-d268261c] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 6px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--090794fe);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-2052238b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f40a683b]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f40a683b]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f40a683b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f40a683b] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f40a683b]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-fd05df8e]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-fd05df8e]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-fd05df8e] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-fd05df8e] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-fd05df8e] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-71b4425a]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-71b4425a]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-71b4425a]{float:right}.kong-ui-entity-base-table .actions-container[data-v-71b4425a] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-94990087]{width:100%}.kong-ui-entity-filter-clear[data-v-94990087]{cursor:pointer}.kong-ui-entity-filter[data-v-94990087]{display:flex;position:relative}.kong-ui-entity-filter[data-v-94990087] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-94990087] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-94990087]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-94990087]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-94990087]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-94990087]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-94990087]{color:#232633}.menu-item-expand-icon[data-v-94990087]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-94990087]{transform:rotate(180deg)}.menu-item-indicator[data-v-94990087]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-94990087]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-94990087] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-94990087] .k-input{width:100%}.menu-item-body[data-v-94990087] .k-select-input .input{font-size:12px}.menu-item-body[data-v-94990087] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-94990087]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-94990087]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-94990087]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{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-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{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-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] 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-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{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-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-add-to-groups-modal .add-to-group-cta-text[data-v-bb0a8037]{margin-top:0}.kong-ui-entities-add-to-groups-modal .add-to-group-form-container[data-v-bb0a8037]{margin-bottom:20px}.kong-ui-entities-add-to-groups-modal .add-to-group-form-container .kong-ui-entity-add-to-groups-error[data-v-bb0a8037]{margin-top:16px}.kong-ui-entities-consumer-groups-list[data-v-37eae4bf]{width:100%}.kong-ui-entities-consumer-groups-list .kong-ui-entity-filter-input[data-v-37eae4bf]{margin-right:12px}.kong-ui-entities-consumer-groups-list .exit-modal-message[data-v-37eae4bf]{margin-top:0}.kong-ui-entities-consumer-group-form[data-v-9681165d]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-consumer-group-form[data-v-9681165d] .form-section-wrapper{column-gap:64px}}.kong-ui-entities-consumer-group-form .select-item-container .select-item-label[data-v-9681165d]{font-weight:600}.kong-ui-entities-consumer-group-form .select-item-container .select-item-description[data-v-9681165d]{color:#6c7489;font-size:12px}
|
|
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}.config-card-details-row[data-v-d268261c]{align-items:center;border-bottom:var(--dc1d91a8);display:var(--59ccec5f);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-d268261c]{width:var(--29318fbe)}.config-card-details-row .config-card-details-label label[data-v-d268261c]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-d268261c]{width:var(--292d0408)}.config-card-details-row .config-card-details-value .truncated[data-v-d268261c]{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-d268261c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-d268261c] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-d268261c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-d268261c]{margin-right:4px}.config-card-details-row[data-v-d268261c] .k-label{margin-bottom:0}.config-card-details-row[data-v-d268261c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-d268261c] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--7a485cf8);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-2052238b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f40a683b]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f40a683b]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f40a683b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f40a683b] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f40a683b]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-fd05df8e]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-fd05df8e]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-fd05df8e] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-fd05df8e] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-fd05df8e] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-71b4425a]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-71b4425a]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-71b4425a]{float:right}.kong-ui-entity-base-table .actions-container[data-v-71b4425a] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-94990087]{width:100%}.kong-ui-entity-filter-clear[data-v-94990087]{cursor:pointer}.kong-ui-entity-filter[data-v-94990087]{display:flex;position:relative}.kong-ui-entity-filter[data-v-94990087] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-94990087] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-94990087]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-94990087]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-94990087]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-94990087]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-94990087]{color:#232633}.menu-item-expand-icon[data-v-94990087]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-94990087]{transform:rotate(180deg)}.menu-item-indicator[data-v-94990087]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-94990087]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-94990087] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-94990087] .k-input{width:100%}.menu-item-body[data-v-94990087] .k-select-input .input{font-size:12px}.menu-item-body[data-v-94990087] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-94990087]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-94990087]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-94990087]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{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-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{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-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] 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-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{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-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-add-to-groups-modal .add-to-group-cta-text[data-v-bb0a8037]{margin-top:0}.kong-ui-entities-add-to-groups-modal .add-to-group-form-container[data-v-bb0a8037]{margin-bottom:20px}.kong-ui-entities-add-to-groups-modal .add-to-group-form-container .kong-ui-entity-add-to-groups-error[data-v-bb0a8037]{margin-top:16px}.kong-ui-entities-consumer-groups-list[data-v-37eae4bf]{width:100%}.kong-ui-entities-consumer-groups-list .kong-ui-entity-filter-input[data-v-37eae4bf]{margin-right:12px}.kong-ui-entities-consumer-groups-list .exit-modal-message[data-v-37eae4bf]{margin-top:0}.kong-ui-entities-consumer-group-form[data-v-9681165d]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-consumer-group-form[data-v-9681165d] .form-section-wrapper{column-gap:64px}}.kong-ui-entities-consumer-group-form .select-item-container .select-item-label[data-v-9681165d]{font-weight:600}.kong-ui-entities-consumer-group-form .select-item-container .select-item-description[data-v-9681165d]{color:#6c7489;font-size:12px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-consumer-groups",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-consumer-groups.umd.js",
|
|
6
6
|
"module": "./dist/entities-consumer-groups.es.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@kong/icons": "^1.15.1",
|
|
54
|
-
"@kong-ui-public/entities-shared": "^3.5.
|
|
54
|
+
"@kong-ui-public/entities-shared": "^3.5.2"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"dev": "cross-env USE_SANDBOX=true vite",
|