@kong-ui-public/entities-consumers 3.3.2 → 3.3.3
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(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,Fe,Be,st,qn){"use strict";const ct="24px",Ln=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},Kn=e=>(t.pushScopeId("data-v-761db460"),e=e(),t.popScopeId(),e),Un=["aria-hidden"],Rn={key:0,"data-testid":"kui-icon-svg-title"},Pn=Kn(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),zn=Ln(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:ct,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),o=Number(n);if(o&&!isNaN(o)&&Number.isInteger(o)&&o>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,o=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,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return ct}),r=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:o.value,lineHeight:"0",width:o.value}));return(a,i)=>(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(r.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",Rn,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Pn],8,Un))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-761db460"]]),Gn={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:{konnect:"Filter by name",kongManager:"Filter by exact username or ID"}},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 Hn(){const e=Be.createI18n("en-us",Gn);return{i18n:e,i18nT:Be.i18nTComponent(e)}}const _e={useI18n:Hn},ue="/v2/control-planes/{controlPlaneId}/core-entities",pe="/{workspace}",se={list:{konnect:{all:`${ue}/consumers`,forConsumerGroup:`${ue}/consumer_groups/{consumerGroupId}/consumers`,oneForConsumerGroup:`${ue}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`},kongManager:{all:`${pe}/consumers`,forConsumerGroup:`${pe}/consumer_groups/{consumerGroupId}/consumers`,oneForConsumerGroup:`${pe}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`}},form:{konnect:{validate:`${ue}/v1/schemas/json/consumer/validate`,create:`${ue}/consumers`,edit:`${ue}/consumers/{id}`},kongManager:{validate:`${pe}/schemas/consumers/validate`,create:`${pe}/consumers`,edit:`${pe}/consumers/{id}`}}};var dt=(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))(dt||{}),qe=(e=>(e.Edit="edit",e.Create="create",e))(qe||{}),ce=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(ce||{}),F=(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))(F||{}),W=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(W||{});function Jn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):st.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),st.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 Wn(){return{debounce:(e,n)=>{let o;return(...r)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{e(...r)},n)}}}}const Le="khcp-user-table-preferences",Yn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnWidths:{},columnVisibility:{}};function Zn(){const e=o=>{if(typeof o=="string")try{return JSON.parse(o)}catch(r){console.error("useTablePreferences(tryParseJson)",r);return}},n=()=>{const o=e(localStorage.getItem(Le));return!o||!Object.keys(o).length?new Map:new Map(Object.entries(o))};return{setTablePreferences:(o,r)=>{try{const a=n();a.set(o,r),localStorage.setItem(Le,JSON.stringify(Object.fromEntries(a.entries())))}catch(a){console.error("useTablePreferences(setTablePreferences)",a)}},getTablePreferences:o=>{const r=n();return(r==null?void 0:r.get(o))||void 0||Yn},deleteAllTablePreferences:()=>{localStorage.removeItem(Le)}}}function Ke(e={}){const{getAxiosInstance:n}=Jn();return{axiosInstance:n(e)}}const Qn={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},Xn={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},eo={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."}},to={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},no={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"}},oo={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},ro={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},ao={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},io={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},lo={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"}},so={global:Qn,deleteModal:Xn,baseForm:eo,baseTable:to,baseConfigCard:no,filter:oo,debouncedFilter:ro,errors:ao,validationErrors:io,toggleModal:lo};function Ae(){const e=Be.createI18n("en-us",so);return{i18n:e,i18nT:Be.i18nTComponent(e)}}function ut(){const e=(o,r)=>(r==null?void 0:r[o])??void 0,n=(o,r)=>{if(o.length!==r.length)return!1;const a=new Set([...o,...r]);for(const i of a){const l=o.filter(c=>c===i).length,s=r.filter(c=>c===i).length;if(l!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(o,r,a)=>{if(a){if(Object.keys(o).length===Object.keys(r).length)for(const i in o)if(Array.isArray(o[i])&&Array.isArray(r[i])){if(n(o[i],r[i]))continue;return!1}else{if(o[i]===r[i])continue;return!1}else return!1;return!0}try{return JSON.stringify(o)===JSON.stringify(r)}catch{return!1}},sortAlpha:o=>(r,a)=>{let i=r[o]===void 0||r[o]===null?"":r[o],l=a[o]===void 0||a[o]===null?"":a[o];return Array.isArray(r[o])&&(i=r[o][0]),Array.isArray(a[o])&&(l=a[o][0]),i.localeCompare(l)},isValidUuid:o=>o?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(o):!1}}function co(e,n,o,r={fetchedItemsKey:"data",searchKeys:["id"]}){o||(o="1000");const{axiosInstance:a}=Ke(e.axiosRequestConfig),{i18n:{t:i}}=Ae(),{debounce:l}=Wn(),s=l(async y=>{await O(y)},200),c=t.ref(!1),d=t.ref(""),p=t.ref(""),u=t.ref([]),b=t.ref([]),g=t.ref(void 0),k=t.unref(n);let _=`${e.apiBaseUrl}${k}`;e.app==="konnect"?_=_.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(_=_.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:C}=ut(),$=async()=>{try{c.value=!0;const{data:y}=await a.get(`${_}?size=${o}`);y!=null&&y.next||(g.value=r.fetchedItemsKey in y?y[r.fetchedItemsKey]:[]),b.value=r.fetchedItemsKey in y?y[r.fetchedItemsKey]:[],u.value=b.value}catch{u.value=[],d.value=i("debouncedFilter.errors.fetch")}finally{c.value=!1}},N=t.ref(""),O=async y=>{var x,f,w;if(N.value!==y)if(N.value=y||"",g.value===void 0)try{if(c.value=!0,d.value="",p.value="",e.app==="konnect"){let h=_+"";y&&(h+=`/${y}`);const{data:m}=await a.get(`${h}?size=${o}`);r.fetchedItemsKey in m?u.value=m[r.fetchedItemsKey]:m!=null&&m.id?u.value=[m]:u.value=[]}else if(y){const h=[];C(y)&&r.searchKeys.includes("id")?h.push((async()=>{const{data:V}=await a.get(`${_}/${y}`);return[V[r.fetchedItemsKey]??V]})()):h.push(...r.searchKeys.filter(V=>V!=="id").map(async V=>{const{data:S}=await a.get(`${_}?${V}=${y}`);return S[r.fetchedItemsKey]}));const m=await Promise.all(h),E=new Set;u.value=[],(x=m==null?void 0:m.forEach)==null||x.call(m,V=>{var S;(S=V==null?void 0:V.forEach)==null||S.call(V,I=>{E.has(I.id)||(E.add(I.id),u.value.push(I))})})}else u.value=b.value}catch(h){((f=h==null?void 0:h.response)==null?void 0:f.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="",y?(u.value=(w=g.value)==null?void 0:w.filter(h=>{var m;let E=!1;for(const V of r.searchKeys){const S=typeof h[V]=="string"?(m=h[V])==null?void 0:m.toLowerCase():h[V];S!=null&&S.includes(y.toLowerCase())&&(E=!0)}return E}),(!u.value||!u.value.length)&&(p.value=i("debouncedFilter.errors.invalid"))):u.value=g.value,c.value=!1};return{loading:c,error:d,validationError:p,results:u,allRecords:g,loadItems:$,debouncedQueryChange:s}}function uo(e,n){const o=t.unref(n),r=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${o}`):new URL(o));return r.value.search="",a=>`${r.value.href}/${a}`}function po(){const{i18n:{t:e}}=Ae();return{getMessageFromError:n=>{var o,r,a,i;if(!n)return e("errors.unexpected");if(((o=n==null?void 0:n.response)==null?void 0:o.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((r=n==null?void 0:n.response)!=null&&r.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(l=>{let s=e("errors.unexpected");return l.messages&&typeof l.messages=="object"&&l.messages.length&&(s=l.messages.join(", ")),l.field?`${l.field} - ${s}`:s}).join("; ");if(n.response.data.message){const{message:l}=n.response.data;return Array.isArray(l)?(i=l[0])!=null&&i.constraints?Object.values(l[0].constraints)[0]:l[0]:l}if(typeof n.response.data=="string")return n.response.data;if(typeof n.response.data=="object")return Object.keys(n.response.data).map(l=>`${l} ${n.response.data[l]}`).join(", ")}return n.message||e("errors.unexpected")}}}function fo(e){const n=window.location.origin,o=n.endsWith("/")?n:`${n}/`;try{const r=e.join("/"),a=`${o}${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`${o}${r}`;throw new Error("Invalid url")}catch(r){return console.warn("Failed to build valid URL:",r),""}}function pt(e,n){const o=t.ref(t.unref(e)),r=t.ref(t.unref(n)),a=t.computed(()=>!!(o.value.app==="konnect"||o.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:b}=l;try{let g=new URL(i.value.href);return a.value&&b?(g.search="",g=o.value.isExactMatch?new URL(`${g.href}/${b}/`):new URL(`${g.href}?filter[name][contains]=${b}`)):(a.value||new URLSearchParams(b).forEach((k,_)=>{g.searchParams.append(_,k)}),p&&g.searchParams.append("sort_by",p),u==="desc"&&g.searchParams.append("sort_desc","1"),g.searchParams.append("size",String(c))),d&&s!==1&&g.searchParams.append("offset",String(d)),g.href}catch(g){return console.error("RouteList(fetcher)",g),r.value}}}function mo(e,n,o="data"){const r=t.unref(n),{axiosInstance:a}=Ke(e.axiosRequestConfig),i=pt(e,r),l=t.ref({status:ce.Idle});return{fetcher:async s=>{var c;try{l.value={status:ce.Loading};let d=i(s);d.includes("filter[name]")&&(d=`${d}&page[size]=${s.pageSize}&page[number]=${s.page}`);const p=await a.get(d);if(p.status>=400)throw p;const u=p.data,b=o&&o.replace(/[^\w-_]/gi,"");let g;u[b]&&Array.isArray(u[b])?g=u[b]:Array.isArray(u)?g=u:g=Object.keys(u).length?[u]:[];const k={data:g,total:g.length,...u.offset?{pagination:{offset:u.offset}}:null};return l.value={status:ce.Idle,response:k},k}catch(d){const p={data:[],total:0};return s.query&&(((c=d.response)==null?void 0:c.status)===404||d.status===404)?(l.value={status:ce.NoResults,response:p,error:d.response?d:{response:d}},p):(l.value={status:ce.Error,response:p,error:d.response?d:{response:d}},p)}},fetcherState:l}}function go(){const e=(o,r="_")=>o?o.split(r).map(a=>a.toLowerCase()==="id"?a.toUpperCase():a.charAt(0).toUpperCase()+a.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:o=>o?o.replace(n,r=>r.toUpperCase()):"",convertKeyToTitle:e}}const ft=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,mt=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(ft);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},gt=e=>e==="*"||e==="x"||e==="X",ht=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},ho=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],yo=(e,n)=>{if(gt(e)||gt(n))return 0;const[o,r]=ho(ht(e),ht(n));return o>r?1:o<r?-1:0},yt=(e,n)=>{for(let o=0;o<Math.max(e.length,n.length);o++){const r=yo(e[o]||"0",n[o]||"0");if(r!==0)return r}return 0},bo=(e,n)=>{const o=mt(e),r=mt(n),a=o.pop(),i=r.pop(),l=yt(o,r);return l!==0?l:a&&i?yt(a.split("."),i.split(".")):a||i?a?-1:1:0},bt=(e,n,o)=>{Co(o);const r=bo(e,n);return Ct[o].includes(r)},Ct={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},kt=Object.keys(Ct),Co=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(kt.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${kt.join("|")}`)},ko=e=>typeof e=="string"&&/^[v\d]/.test(e)&&ft.test(e);function wo(e){const{gatewayInfo:n,supportedRange:o}=e;if(!n)return!0;const{edition:r,version:a}=n;if(!ko(a))return console.error("Invalid version"),!1;const i=o[r];if(!i)return!1;const[l,s]=i;return!(l&&bt(a,l,"<")||s&&bt(a,s,">"))}function So(e){const n=t.ref(0),o=t.ref(0),r=t.ref(!1);return t.watch(e,a=>{a&&!r.value&&(n.value=a.offsetWidth,o.value=a.scrollWidth,r.value=!0)}),{isTruncated:t.computed(()=>n.value<o.value)}}function xo(){const{i18n:{t:e}}=Ae();return{utf8Name:n=>/^[\p{N}\p{L}.\-_~]*$/u.test(n)?"":e("validationErrors.utf8Name")}}const U={useAxios:Ke,useDebouncedFilter:co,useDeleteUrlBuilder:uo,useErrors:po,useExternalLinkCreator:fo,useFetcher:mo,useFetchUrlBuilder:pt,useHelpers:ut,useStringHelpers:go,useI18n:Ae,useGatewayFeatureSupported:wo,useTruncationDetector:So,useValidators:xo},No={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 n=e,{i18n:{t:o}}=U.useI18n(),{convertKeyToTitle:r}=U.useStringHelpers(),a=t.computed(()=>n.item.key??"json-array-item"),i=t.computed(()=>n.item.value??n.item),l=t.computed(()=>{const c=JSON.parse(JSON.stringify(i.value));return n.isArrayItem&&delete c.name,c}),s=t.computed(()=>{var c;return n.isArrayItem?(c=i.value)!=null&&c.name?r(i.value.name,"_"):o("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",No,[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(St,{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,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},wt=X(Io,[["__scopeId","data-v-68ca83ec"]]),Bo=t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:n}}=U.useI18n();return(o,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=>o.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(n)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),_o=X(Bo,[["__scopeId","data-v-c96811e5"]]),Ao=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:n}}=U.useI18n();return(o,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(n)("baseConfigCard.statusBadge.enabledLabel"):t.unref(n)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),Vo="#0044f4",Eo="#e0e4ea",To="#afb7c5",$o="1px",jo="20px",Do={class:"config-card-details-row"},Mo=["data-testid"],Oo=["data-testid"],vo=["data-testid"],Fo=["data-testid"],qo={key:1},Lo=["data-testid"],Ko=["data-testid"],Uo=["data-testid"],Ro=["data-testid"],Po={name:"ConfigCardItem",components:{JsonCardItem:wt,StatusBadge:Ao,InternalLinkItem:_o}},zo=t.defineComponent({...Po,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(k=>({dc1d91a8:p.value?"none":`solid ${t.unref($o)} ${t.unref(Eo)}`,"59ccec5f":d.value&&s.value?"block":"flex","29318fbe":d.value&&s.value?"100%":o.slim?"50%":"25%","292d0408":d.value&&s.value?"100%":o.slim?"50%":"75%"}));const o=e,r=n,a=t.useSlots(),{i18n:{t:i,formatUnixTimeStamp:l}}=U.useI18n(),s=t.computed(()=>o.item.value!==void 0&&o.item.value!==null&&o.item.value!==""),c=t.computed(()=>!!(o.item.tooltip||a["label-tooltip"])),d=t.computed(()=>o.item.type===F.Json||o.item.type===F.JsonArray),p=t.computed(()=>o.item.type===F.JsonArray),u=t.computed(()=>{switch(o.item.type){case F.ID:return{tag:"KCopy",attrs:{"data-testid":`${o.item.key}-copy-uuid`,"copy-tooltip":i("baseConfigCard.copy.tooltip",{label:o.item.label}),text:o.item.value}};case F.IdArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{"copy-tooltip":i("baseConfigCard.copy.tooltip",{label:o.item.label})}};case F.Redacted:return{tag:"KCopy",attrs:{"data-testid":`${o.item.key}-copy-uuid-redacted`,format:"redacted","copy-tooltip":i("baseConfigCard.copy.tooltip",{label:o.item.label}),text:o.item.value}};case F.RedactedArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{format:"redacted","copy-tooltip":i("baseConfigCard.copy.tooltip",{label:o.item.label})}};case F.Date:return{tag:"div",attrs:{"data-testid":`${o.item.key}-date`},text:l(o.item.value)};case F.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${o.item.key}-badge-status`,status:o.item.value}};case F.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case F.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case F.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${o.item.key}-internal-link`,item:o.item,onNavigationClick:k=>{r("navigation-click",k)}}};case F.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${o.item.key}-external-link`,href:o.item.value},text:o.item.value};case F.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${o.item.key}-json-content`,item:o.item}};case F.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${o.item.key}-json-array-content`,item:o.item}};default:return{tag:"div",attrs:{"data-testid":`${o.item.key}-plain-text`},text:o.item.value}}}),b=t.ref(),{isTruncated:g}=U.useTruncationDetector(b);return(k,_)=>{const C=t.resolveComponent("KLabel"),$=t.resolveComponent("KBadge"),N=t.resolveComponent("KCopy"),O=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("div",Do,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(k.$slots,"label",{item:e.item},()=>[t.createVNode(C,{"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(k.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(e.item.tooltip),1)],!0)],8,Oo)]),key:"0"}:void 0]),1024)],!0)],8,Mo),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[t.renderSlot(k.$slots,e.item.key,{rowValue:e.item.value},()=>[s.value?(t.openBlock(),t.createElementBlock("div",qo,[(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,(y,x)=>(t.openBlock(),t.createBlock($,{key:`${e.item.key}-badge-tag-${x}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${x}`,tooltip:y,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(y),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,Lo)):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,(y,x)=>(t.openBlock(),t.createBlock(N,t.mergeProps({ref_for:!0},u.value.childAttrs,{key:`${e.item.key}-copy-uuid-${x}`,"data-testid":`${e.item.key}-copy-uuid-${x}`,text:y}),null,16,["data-testid","text"]))),128))],8,Ko)):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,(y,x)=>(t.openBlock(),t.createBlock($,{key:`${e.item.key}-badge-method-${x}`,appearance:Object.values(t.unref(qn.BadgeMethodAppearances)).includes(y.toLowerCase())?y.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${x}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(y),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,Uo)):t.createCommentVNode("",!0),u.value.additionalComponent==="JsonCardItem"?(t.openBlock(),t.createElementBlock("div",{key:3,"data-testid":`${o.item.key}-json-array-content`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(y,x)=>(t.openBlock(),t.createBlock(wt,{key:`json-array-item-${x}`,index:x,"is-array-item":"",item:y},null,8,["index","item"]))),128))],8,Ro)):(t.openBlock(),t.createBlock(O,{key:4,text:t.unref(g)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:b,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,Fo))],!0)],8,vo)])}}}),St=X(zo,[["__scopeId","data-v-d268261c"]]),Go={class:"json-config"},Ho={key:0,class:"json-endpoint"},xt=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=>({"4520e3ec":`${r.value}ch`}));const n=e,o=t.computed(()=>n.jsonRecord),r=t.computed(()=>{var a;if(!n.fetcherUrl)return 0;const i=(a=n.fetcherUrl)==null?void 0:a.split("/");return i.length<2?0:41+(n.requestMethod==="post"?i[i.length-1]:i[i.length-2]).length});return(a,i)=>{const l=t.resolveComponent("KBadge"),s=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Go,[n.fetcherUrl?(t.openBlock(),t.createElementBlock("div",Ho,[t.createVNode(l,{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(o.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 Nt(e){return typeof e>"u"||e===null}function Jo(e){return typeof e=="object"&&e!==null}function Wo(e){return Array.isArray(e)?e:Nt(e)?[]:[e]}function Yo(e,n){var o,r,a,i;if(n)for(i=Object.keys(n),o=0,r=i.length;o<r;o+=1)a=i[o],e[a]=n[a];return e}function Zo(e,n){var o="",r;for(r=0;r<n;r+=1)o+=e;return o}function Qo(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Xo=Nt,er=Jo,tr=Wo,nr=Zo,or=Qo,rr=Yo,K={isNothing:Xo,isObject:er,toArray:tr,repeat:nr,isNegativeZero:or,extend:rr};function It(e,n){var o="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(o+='in "'+e.mark.name+'" '),o+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(o+=`
|
|
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,Fe,Be,st,qn){"use strict";const ct="24px",Ln=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},Kn=e=>(t.pushScopeId("data-v-761db460"),e=e(),t.popScopeId(),e),Un=["aria-hidden"],Rn={key:0,"data-testid":"kui-icon-svg-title"},Pn=Kn(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),zn=Ln(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:ct,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),o=Number(n);if(o&&!isNaN(o)&&Number.isInteger(o)&&o>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,o=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,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return ct}),r=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:o.value,lineHeight:"0",width:o.value}));return(a,i)=>(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(r.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",Rn,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Pn],8,Un))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-761db460"]]),Gn={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:{konnect:"Filter by name",kongManager:"Filter by exact username or ID"}},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 Hn(){const e=Be.createI18n("en-us",Gn);return{i18n:e,i18nT:Be.i18nTComponent(e)}}const _e={useI18n:Hn},ue="/v2/control-planes/{controlPlaneId}/core-entities",pe="/{workspace}",se={list:{konnect:{all:`${ue}/consumers`,forConsumerGroup:`${ue}/consumer_groups/{consumerGroupId}/consumers`,oneForConsumerGroup:`${ue}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`},kongManager:{all:`${pe}/consumers`,forConsumerGroup:`${pe}/consumer_groups/{consumerGroupId}/consumers`,oneForConsumerGroup:`${pe}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`}},form:{konnect:{validate:`${ue}/v1/schemas/json/consumer/validate`,create:`${ue}/consumers`,edit:`${ue}/consumers/{id}`},kongManager:{validate:`${pe}/schemas/consumers/validate`,create:`${pe}/consumers`,edit:`${pe}/consumers/{id}`}}};var dt=(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))(dt||{}),qe=(e=>(e.Edit="edit",e.Create="create",e))(qe||{}),ce=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(ce||{}),F=(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))(F||{}),W=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(W||{});function Jn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):st.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),st.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 Wn(){return{debounce:(e,n)=>{let o;return(...r)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{e(...r)},n)}}}}const Le="khcp-user-table-preferences",Yn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnWidths:{},columnVisibility:{}};function Zn(){const e=o=>{if(typeof o=="string")try{return JSON.parse(o)}catch(r){console.error("useTablePreferences(tryParseJson)",r);return}},n=()=>{const o=e(localStorage.getItem(Le));return!o||!Object.keys(o).length?new Map:new Map(Object.entries(o))};return{setTablePreferences:(o,r)=>{try{const a=n();a.set(o,r),localStorage.setItem(Le,JSON.stringify(Object.fromEntries(a.entries())))}catch(a){console.error("useTablePreferences(setTablePreferences)",a)}},getTablePreferences:o=>{const r=n();return(r==null?void 0:r.get(o))||void 0||Yn},deleteAllTablePreferences:()=>{localStorage.removeItem(Le)}}}function Ke(e={}){const{getAxiosInstance:n}=Jn();return{axiosInstance:n(e)}}const Qn={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},Xn={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},eo={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."}},to={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},no={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"}},oo={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},ro={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},ao={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},io={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},lo={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"}},so={global:Qn,deleteModal:Xn,baseForm:eo,baseTable:to,baseConfigCard:no,filter:oo,debouncedFilter:ro,errors:ao,validationErrors:io,toggleModal:lo};function Ae(){const e=Be.createI18n("en-us",so);return{i18n:e,i18nT:Be.i18nTComponent(e)}}function ut(){const e=(o,r)=>(r==null?void 0:r[o])??void 0,n=(o,r)=>{if(o.length!==r.length)return!1;const a=new Set([...o,...r]);for(const i of a){const l=o.filter(c=>c===i).length,s=r.filter(c=>c===i).length;if(l!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(o,r,a)=>{if(a){if(Object.keys(o).length===Object.keys(r).length)for(const i in o)if(Array.isArray(o[i])&&Array.isArray(r[i])){if(n(o[i],r[i]))continue;return!1}else{if(o[i]===r[i])continue;return!1}else return!1;return!0}try{return JSON.stringify(o)===JSON.stringify(r)}catch{return!1}},sortAlpha:o=>(r,a)=>{let i=r[o]===void 0||r[o]===null?"":r[o],l=a[o]===void 0||a[o]===null?"":a[o];return Array.isArray(r[o])&&(i=r[o][0]),Array.isArray(a[o])&&(l=a[o][0]),i.localeCompare(l)},isValidUuid:o=>o?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(o):!1}}function co(e,n,o,r={fetchedItemsKey:"data",searchKeys:["id"]}){o||(o="1000");const{axiosInstance:a}=Ke(e.axiosRequestConfig),{i18n:{t:i}}=Ae(),{debounce:l}=Wn(),s=l(async y=>{await O(y)},200),c=t.ref(!1),d=t.ref(""),p=t.ref(""),u=t.ref([]),b=t.ref([]),g=t.ref(void 0),k=t.unref(n);let _=`${e.apiBaseUrl}${k}`;e.app==="konnect"?_=_.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(_=_.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:C}=ut(),$=async()=>{try{c.value=!0;const{data:y}=await a.get(`${_}?size=${o}`);y!=null&&y.next||(g.value=r.fetchedItemsKey in y?y[r.fetchedItemsKey]:[]),b.value=r.fetchedItemsKey in y?y[r.fetchedItemsKey]:[],u.value=b.value}catch{u.value=[],d.value=i("debouncedFilter.errors.fetch")}finally{c.value=!1}},N=t.ref(""),O=async y=>{var x,f,w;if(N.value!==y)if(N.value=y||"",g.value===void 0)try{if(c.value=!0,d.value="",p.value="",e.app==="konnect"){let h=_+"";y&&(h+=`/${y}`);const{data:m}=await a.get(`${h}?size=${o}`);r.fetchedItemsKey in m?u.value=m[r.fetchedItemsKey]:m!=null&&m.id?u.value=[m]:u.value=[]}else if(y){const h=[];C(y)&&r.searchKeys.includes("id")?h.push((async()=>{const{data:V}=await a.get(`${_}/${y}`);return[V[r.fetchedItemsKey]??V]})()):h.push(...r.searchKeys.filter(V=>V!=="id").map(async V=>{const{data:S}=await a.get(`${_}?${V}=${y}`);return S[r.fetchedItemsKey]}));const m=await Promise.all(h),E=new Set;u.value=[],(x=m==null?void 0:m.forEach)==null||x.call(m,V=>{var S;(S=V==null?void 0:V.forEach)==null||S.call(V,I=>{E.has(I.id)||(E.add(I.id),u.value.push(I))})})}else u.value=b.value}catch(h){((f=h==null?void 0:h.response)==null?void 0:f.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="",y?(u.value=(w=g.value)==null?void 0:w.filter(h=>{var m;let E=!1;for(const V of r.searchKeys){const S=typeof h[V]=="string"?(m=h[V])==null?void 0:m.toLowerCase():h[V];S!=null&&S.includes(y.toLowerCase())&&(E=!0)}return E}),(!u.value||!u.value.length)&&(p.value=i("debouncedFilter.errors.invalid"))):u.value=g.value,c.value=!1};return{loading:c,error:d,validationError:p,results:u,allRecords:g,loadItems:$,debouncedQueryChange:s}}function uo(e,n){const o=t.unref(n),r=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${o}`):new URL(o));return r.value.search="",a=>`${r.value.href}/${a}`}function po(){const{i18n:{t:e}}=Ae();return{getMessageFromError:n=>{var o,r,a,i;if(!n)return e("errors.unexpected");if(((o=n==null?void 0:n.response)==null?void 0:o.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((r=n==null?void 0:n.response)!=null&&r.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(l=>{let s=e("errors.unexpected");return l.messages&&typeof l.messages=="object"&&l.messages.length&&(s=l.messages.join(", ")),l.field?`${l.field} - ${s}`:s}).join("; ");if(n.response.data.message){const{message:l}=n.response.data;return Array.isArray(l)?(i=l[0])!=null&&i.constraints?Object.values(l[0].constraints)[0]:l[0]:l}if(typeof n.response.data=="string")return n.response.data;if(typeof n.response.data=="object")return Object.keys(n.response.data).map(l=>`${l} ${n.response.data[l]}`).join(", ")}return n.message||e("errors.unexpected")}}}function fo(e){const n=window.location.origin,o=n.endsWith("/")?n:`${n}/`;try{const r=e.join("/"),a=`${o}${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`${o}${r}`;throw new Error("Invalid url")}catch(r){return console.warn("Failed to build valid URL:",r),""}}function pt(e,n){const o=t.ref(t.unref(e)),r=t.ref(t.unref(n)),a=t.computed(()=>!!(o.value.app==="konnect"||o.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:b}=l;try{let g=new URL(i.value.href);return a.value&&b?(g.search="",g=o.value.isExactMatch?new URL(`${g.href}/${b}/`):new URL(`${g.href}?filter[name][contains]=${b}`)):(a.value||new URLSearchParams(b).forEach((k,_)=>{g.searchParams.append(_,k)}),p&&g.searchParams.append("sort_by",p),u==="desc"&&g.searchParams.append("sort_desc","1"),g.searchParams.append("size",String(c))),d&&s!==1&&g.searchParams.append("offset",String(d)),g.href}catch(g){return console.error("RouteList(fetcher)",g),r.value}}}function mo(e,n,o="data"){const r=t.unref(n),{axiosInstance:a}=Ke(e.axiosRequestConfig),i=pt(e,r),l=t.ref({status:ce.Idle});return{fetcher:async s=>{var c;try{l.value={status:ce.Loading};let d=i(s);d.includes("filter[name]")&&(d=`${d}&page[size]=${s.pageSize}&page[number]=${s.page}`);const p=await a.get(d);if(p.status>=400)throw p;const u=p.data,b=o&&o.replace(/[^\w-_]/gi,"");let g;u[b]&&Array.isArray(u[b])?g=u[b]:Array.isArray(u)?g=u:g=Object.keys(u).length?[u]:[];const k={data:g,total:g.length,...u.offset?{pagination:{offset:u.offset}}:null};return l.value={status:ce.Idle,response:k},k}catch(d){const p={data:[],total:0};return s.query&&(((c=d.response)==null?void 0:c.status)===404||d.status===404)?(l.value={status:ce.NoResults,response:p,error:d.response?d:{response:d}},p):(l.value={status:ce.Error,response:p,error:d.response?d:{response:d}},p)}},fetcherState:l}}function go(){const e=(o,r="_")=>o?o.split(r).map(a=>a.toLowerCase()==="id"?a.toUpperCase():a.charAt(0).toUpperCase()+a.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:o=>o?o.replace(n,r=>r.toUpperCase()):"",convertKeyToTitle:e}}const ft=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,mt=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(ft);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},gt=e=>e==="*"||e==="x"||e==="X",ht=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},ho=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],yo=(e,n)=>{if(gt(e)||gt(n))return 0;const[o,r]=ho(ht(e),ht(n));return o>r?1:o<r?-1:0},yt=(e,n)=>{for(let o=0;o<Math.max(e.length,n.length);o++){const r=yo(e[o]||"0",n[o]||"0");if(r!==0)return r}return 0},bo=(e,n)=>{const o=mt(e),r=mt(n),a=o.pop(),i=r.pop(),l=yt(o,r);return l!==0?l:a&&i?yt(a.split("."),i.split(".")):a||i?a?-1:1:0},bt=(e,n,o)=>{Co(o);const r=bo(e,n);return Ct[o].includes(r)},Ct={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},kt=Object.keys(Ct),Co=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(kt.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${kt.join("|")}`)},ko=e=>typeof e=="string"&&/^[v\d]/.test(e)&&ft.test(e);function wo(e){const{gatewayInfo:n,supportedRange:o}=e;if(!n)return!0;const{edition:r,version:a}=n;if(!ko(a))return console.error("Invalid version"),!1;const i=o[r];if(!i)return!1;const[l,s]=i;return!(l&&bt(a,l,"<")||s&&bt(a,s,">"))}function So(e){const n=t.ref(0),o=t.ref(0),r=t.ref(!1);return t.watch(e,a=>{a&&!r.value&&(n.value=a.offsetWidth,o.value=a.scrollWidth,r.value=!0)}),{isTruncated:t.computed(()=>n.value<o.value)}}function xo(){const{i18n:{t:e}}=Ae();return{utf8Name:n=>/^[\p{N}\p{L}.\-_~]*$/u.test(n)?"":e("validationErrors.utf8Name")}}const U={useAxios:Ke,useDebouncedFilter:co,useDeleteUrlBuilder:uo,useErrors:po,useExternalLinkCreator:fo,useFetcher:mo,useFetchUrlBuilder:pt,useHelpers:ut,useStringHelpers:go,useI18n:Ae,useGatewayFeatureSupported:wo,useTruncationDetector:So,useValidators:xo},No={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 n=e,{i18n:{t:o}}=U.useI18n(),{convertKeyToTitle:r}=U.useStringHelpers(),a=t.computed(()=>n.item.key??"json-array-item"),i=t.computed(()=>n.item.value??n.item),l=t.computed(()=>{const c=JSON.parse(JSON.stringify(i.value));return n.isArrayItem&&delete c.name,c}),s=t.computed(()=>{var c;return n.isArrayItem?(c=i.value)!=null&&c.name?r(i.value.name,"_"):o("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",No,[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(St,{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,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},wt=X(Io,[["__scopeId","data-v-68ca83ec"]]),Bo=t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:n}}=U.useI18n();return(o,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=>o.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(n)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),_o=X(Bo,[["__scopeId","data-v-c96811e5"]]),Ao=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:n}}=U.useI18n();return(o,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(n)("baseConfigCard.statusBadge.enabledLabel"):t.unref(n)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),Vo="#0044f4",Eo="#e0e4ea",To="#afb7c5",$o="1px",jo="20px",Do={class:"config-card-details-row"},Mo=["data-testid"],Oo=["data-testid"],vo=["data-testid"],Fo=["data-testid"],qo={key:1},Lo=["data-testid"],Ko=["data-testid"],Uo=["data-testid"],Ro=["data-testid"],Po={name:"ConfigCardItem",components:{JsonCardItem:wt,StatusBadge:Ao,InternalLinkItem:_o}},zo=t.defineComponent({...Po,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(k=>({dc1d91a8:p.value?"none":`solid ${t.unref($o)} ${t.unref(Eo)}`,"59ccec5f":d.value&&s.value?"block":"flex","29318fbe":d.value&&s.value?"100%":o.slim?"50%":"25%","292d0408":d.value&&s.value?"100%":o.slim?"50%":"75%"}));const o=e,r=n,a=t.useSlots(),{i18n:{t:i,formatUnixTimeStamp:l}}=U.useI18n(),s=t.computed(()=>o.item.value!==void 0&&o.item.value!==null&&o.item.value!==""),c=t.computed(()=>!!(o.item.tooltip||a["label-tooltip"])),d=t.computed(()=>o.item.type===F.Json||o.item.type===F.JsonArray),p=t.computed(()=>o.item.type===F.JsonArray),u=t.computed(()=>{switch(o.item.type){case F.ID:return{tag:"KCopy",attrs:{"data-testid":`${o.item.key}-copy-uuid`,"copy-tooltip":i("baseConfigCard.copy.tooltip",{label:o.item.label}),text:o.item.value}};case F.IdArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{"copy-tooltip":i("baseConfigCard.copy.tooltip",{label:o.item.label})}};case F.Redacted:return{tag:"KCopy",attrs:{"data-testid":`${o.item.key}-copy-uuid-redacted`,format:"redacted","copy-tooltip":i("baseConfigCard.copy.tooltip",{label:o.item.label}),text:o.item.value}};case F.RedactedArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{format:"redacted","copy-tooltip":i("baseConfigCard.copy.tooltip",{label:o.item.label})}};case F.Date:return{tag:"div",attrs:{"data-testid":`${o.item.key}-date`},text:l(o.item.value)};case F.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${o.item.key}-badge-status`,status:o.item.value}};case F.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case F.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case F.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${o.item.key}-internal-link`,item:o.item,onNavigationClick:k=>{r("navigation-click",k)}}};case F.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${o.item.key}-external-link`,href:o.item.value},text:o.item.value};case F.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${o.item.key}-json-content`,item:o.item}};case F.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${o.item.key}-json-array-content`,item:o.item}};default:return{tag:"div",attrs:{"data-testid":`${o.item.key}-plain-text`},text:o.item.value}}}),b=t.ref(),{isTruncated:g}=U.useTruncationDetector(b);return(k,_)=>{const C=t.resolveComponent("KLabel"),$=t.resolveComponent("KBadge"),N=t.resolveComponent("KCopy"),O=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("div",Do,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(k.$slots,"label",{item:e.item},()=>[t.createVNode(C,{"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(k.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(e.item.tooltip),1)],!0)],8,Oo)]),key:"0"}:void 0]),1024)],!0)],8,Mo),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[t.renderSlot(k.$slots,e.item.key,{rowValue:e.item.value},()=>[s.value?(t.openBlock(),t.createElementBlock("div",qo,[(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,(y,x)=>(t.openBlock(),t.createBlock($,{key:`${e.item.key}-badge-tag-${x}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${x}`,tooltip:y,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(y),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,Lo)):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,(y,x)=>(t.openBlock(),t.createBlock(N,t.mergeProps({ref_for:!0},u.value.childAttrs,{key:`${e.item.key}-copy-uuid-${x}`,"data-testid":`${e.item.key}-copy-uuid-${x}`,text:y}),null,16,["data-testid","text"]))),128))],8,Ko)):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,(y,x)=>(t.openBlock(),t.createBlock($,{key:`${e.item.key}-badge-method-${x}`,appearance:Object.values(t.unref(qn.BadgeMethodAppearances)).includes(y.toLowerCase())?y.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${x}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(y),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,Uo)):t.createCommentVNode("",!0),u.value.additionalComponent==="JsonCardItem"?(t.openBlock(),t.createElementBlock("div",{key:3,"data-testid":`${o.item.key}-json-array-content`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(y,x)=>(t.openBlock(),t.createBlock(wt,{key:`json-array-item-${x}`,index:x,"is-array-item":"",item:y},null,8,["index","item"]))),128))],8,Ro)):(t.openBlock(),t.createBlock(O,{key:4,text:t.unref(g)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:b,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,Fo))],!0)],8,vo)])}}}),St=X(zo,[["__scopeId","data-v-d268261c"]]),Go={class:"json-config"},Ho={key:0,class:"json-endpoint"},xt=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":`${r.value}ch`}));const n=e,o=t.computed(()=>n.jsonRecord),r=t.computed(()=>{var a;if(!n.fetcherUrl)return 0;const i=(a=n.fetcherUrl)==null?void 0:a.split("/");return i.length<2?0:41+(n.requestMethod==="post"?i[i.length-1]:i[i.length-2]).length});return(a,i)=>{const l=t.resolveComponent("KBadge"),s=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Go,[n.fetcherUrl?(t.openBlock(),t.createElementBlock("div",Ho,[t.createVNode(l,{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(o.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 Nt(e){return typeof e>"u"||e===null}function Jo(e){return typeof e=="object"&&e!==null}function Wo(e){return Array.isArray(e)?e:Nt(e)?[]:[e]}function Yo(e,n){var o,r,a,i;if(n)for(i=Object.keys(n),o=0,r=i.length;o<r;o+=1)a=i[o],e[a]=n[a];return e}function Zo(e,n){var o="",r;for(r=0;r<n;r+=1)o+=e;return o}function Qo(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Xo=Nt,er=Jo,tr=Wo,nr=Zo,or=Qo,rr=Yo,K={isNothing:Xo,isObject:er,toArray:tr,repeat:nr,isNegativeZero:or,extend:rr};function It(e,n){var o="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(o+='in "'+e.mark.name+'" '),o+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(o+=`
|
|
2
2
|
|
|
3
3
|
`+e.mark.snippet),r+" "+o):r}function Ce(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=It(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ce.prototype=Object.create(Error.prototype),Ce.prototype.constructor=Ce,Ce.prototype.toString=function(e){return this.name+": "+It(this,e)};var J=Ce;function Ue(e,n,o,r,a){var i="",l="",s=Math.floor(a/2)-1;return r-n>s&&(i=" ... ",n=r-s+i.length),o-r>s&&(l=" ...",o=r+s-l.length),{str:i+e.slice(n,o).replace(/\t/g,"→")+l,pos:r-n+i.length}}function Re(e,n){return K.repeat(" ",n-e.length)+e}function ar(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 o=/\r?\n|\r|\0/g,r=[0],a=[],i,l=-1;i=o.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+n.linesAfter,a.length).toString().length,u=n.maxLength-(n.indent+p+3);for(c=1;c<=n.linesBefore&&!(l-c<0);c++)d=Ue(e.buffer,r[l-c],a[l-c],e.position-(r[l]-r[l-c]),u),s=K.repeat(" ",n.indent)+Re((e.line-c+1).toString(),p)+" | "+d.str+`
|
|
4
4
|
`+s;for(d=Ue(e.buffer,r[l],a[l],e.position,u),s+=K.repeat(" ",n.indent)+Re((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}.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-badge{height:24px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0}.json-endpoint code{direction:rtl;max-width:var(--4520e3ec);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-consumers-modal .add-consumer-form-cta[data-v-d54468ab]{margin-top:0}.kong-ui-entities-add-consumers-modal .add-consumer-form-container[data-v-d54468ab]{margin-bottom:20px}.kong-ui-entities-add-consumers-modal .add-consumer-form-container .kong-ui-entity-add-consumers-error[data-v-d54468ab]{margin-top:16px}.kong-ui-entities-consumers-list[data-v-73c8c57a]{width:100%}.kong-ui-entities-consumers-list .message[data-v-73c8c57a]{margin-top:0}.kong-ui-entities-consumers-list .kong-ui-entity-filter-input[data-v-73c8c57a]{margin-right:12px}.kong-ui-entities-consumer-form[data-v-d3813a74]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-consumer-form[data-v-d3813a74] .form-section-wrapper{column-gap:64px}}.kong-ui-entities-consumer-form fieldset[data-v-d3813a74]{border:none;margin:0;padding:0}.fields-group-title[data-v-d3813a74]{color:#232633;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-d3813a74]{color:#00000073;font-size:14px;line-height:20px;margin-bottom:0;margin-top:0}.username-field[data-v-d3813a74]{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}.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-consumers-modal .add-consumer-form-cta[data-v-d54468ab]{margin-top:0}.kong-ui-entities-add-consumers-modal .add-consumer-form-container[data-v-d54468ab]{margin-bottom:20px}.kong-ui-entities-add-consumers-modal .add-consumer-form-container .kong-ui-entity-add-consumers-error[data-v-d54468ab]{margin-top:16px}.kong-ui-entities-consumers-list[data-v-73c8c57a]{width:100%}.kong-ui-entities-consumers-list .message[data-v-73c8c57a]{margin-top:0}.kong-ui-entities-consumers-list .kong-ui-entity-filter-input[data-v-73c8c57a]{margin-right:12px}.kong-ui-entities-consumer-form[data-v-d3813a74]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-consumer-form[data-v-d3813a74] .form-section-wrapper{column-gap:64px}}.kong-ui-entities-consumer-form fieldset[data-v-d3813a74]{border:none;margin:0;padding:0}.fields-group-title[data-v-d3813a74]{color:#232633;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-d3813a74]{color:#00000073;font-size:14px;line-height:20px;margin-bottom:0;margin-top:0}.username-field[data-v-d3813a74]{margin-bottom:16px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-consumers",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-consumers.umd.js",
|
|
6
6
|
"module": "./dist/entities-consumers.es.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@kong/icons": "^1.14.2",
|
|
54
|
-
"@kong-ui-public/entities-shared": "^3.4.
|
|
54
|
+
"@kong-ui-public/entities-shared": "^3.4.3"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"dev": "cross-env USE_SANDBOX=true vite",
|