@kong-ui-public/entities-keys 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.
@@ -1179,7 +1179,7 @@ const ae = {
1179
1179
  },
1180
1180
  setup(e) {
1181
1181
  rn((a) => ({
1182
- "4520e3ec": `${i.value}ch`
1182
+ "090794fe": `${i.value}ch`
1183
1183
  }));
1184
1184
  const t = e, n = S(() => t.jsonRecord), i = S(() => {
1185
1185
  var a;
@@ -1,4 +1,4 @@
1
- (function(X,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):(X=typeof globalThis<"u"?globalThis:X||self,t(X["kong-ui-public-entities-keys"]={},X.Vue,X.VueRouter,X["kong-ui-public-i18n"],X.axios,X.Kongponents))})(this,function(X,t,ve,Ae,at,Vn){"use strict";const it="24px",En=(e,n)=>{const r=e.__vccOpts||e;for(const[o,a]of n)r[o]=a;return r},jn=e=>(t.pushScopeId("data-v-761db460"),e=e(),t.popScopeId(),e),Tn=["aria-hidden"],$n={key:0,"data-testid":"kui-icon-svg-title"},On=jn(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),Kn=En(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:it,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,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return it}),o=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.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(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",$n,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),On],8,Tn))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-761db460"]]),Fn={keys:{title:"Keys",list:{toolbar_actions:{new_key:"New Key"},table_headers:{name:"Name",key_id:"Key ID",id:"ID",tags:"Tags"},empty_state:{title:"Configure a New Key",description:"A Key object holds a representation of asymmetric keys in various formats."}},actions:{create:"New Key",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details",loading:"Loading..."},search:{placeholder:"Filter by exact name or ID",no_results:"No results found"},delete:{title:"Delete a Key",description:"This action cannot be reversed so make sure to check the key usage before deleting."},errors:{general:"Keys could not be retrieved",delete:"The key could not be deleted at this time.",copy:"Failed to copy to clipboard",key_sets:{fetch:"Could not fetch available key sets",invalid:"Please select a valid key set ID"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this key."},keys:{title:"Asymmetric Keys",description:"Choose the preferred format for this asymmetric key. Currently only support PEM and JWK format."}},fields:{id:{label:"Key ID",placeholder:"Enter a key ID",tooltip:"An identifier for a key",help:"If using JWK, need to match with the jwk.kid field"},name:{label:"Name",placeholder:"Enter a unique name for this key",tooltip:"The name to associate with the given key"},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."},key_set:{label:"Key Set",placeholder:"Select a key set to add into",footer:"Search by exact ID to find key sets not included in the list"},key_format:{label:"Key Format",options:{jwk:"JWK",pem:"PEM"}},jwk:{label:"JWK",placeholder:"Enter a JWK",tooltip:"A JSON Web key represented as a string"},kid:{label:"Key ID",tooltip:"A unique identifier for a key."},set:{label:"Key Set",tooltip:"The id (an UUID) of the key-set with which to associate the key."},private_key:{label:"Private Key",placeholder:"Enter a private key"},public_key:{label:"Public Key",placeholder:"Enter a public key"}}}}};function Mn(){const e=Ae.createI18n("en-us",Fn);return{i18n:e,i18nT:Ae.i18nTComponent(e)}}const Le={useI18n:Mn},ie="/v2/control-planes/{controlPlaneId}/core-entities",le="/{workspace}",se={list:{konnect:{all:`${ie}/keys`,forKeySet:`${ie}/key-sets/{keySetId}/keys`},kongManager:{all:`${le}/keys`,forKeySet:`${le}/key-sets/{keySetId}/keys`}},form:{konnect:{create:{all:`${ie}/keys`,forKeySet:`${ie}/key-sets/{keySetId}/keys`},edit:{all:`${ie}/keys/{id}`,forKeySet:`${ie}/key-sets/{keySetId}/keys/{id}`},keySets:`${ie}/key-sets`,getKeySet:`${ie}/key-sets/{keySetId}`},kongManager:{create:{all:`${le}/keys`,forKeySet:`${le}/key-sets/{keySetId}/keys`},edit:{all:`${le}/keys/{id}`,forKeySet:`${le}/key-sets/{keySetId}/keys/{id}`},keySets:`${le}/key-sets`,getKeySet:`${le}/key-sets/{keySetId}`}}};var lt=(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))(lt||{}),we=(e=>(e.Edit="edit",e.Create="create",e))(we||{}),pe=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(pe||{}),q=(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))(q||{}),W=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(W||{});function Dn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):at.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),at.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 qn(){return{debounce:(e,n)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},n)}}}}const Ue="khcp-user-table-preferences",vn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnWidths:{},columnVisibility:{}};function Ln(){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(Ue));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(Ue,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||vn},deleteAllTablePreferences:()=>{localStorage.removeItem(Ue)}}}function Re(e={}){const{getAxiosInstance:n}=Dn();return{axiosInstance:n(e)}}const Un={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},Rn={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},Pn={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."}},zn={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Jn={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"}},Hn={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Wn={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Yn={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Zn={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},Gn={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"}},Qn={global:Un,deleteModal:Rn,baseForm:Pn,baseTable:zn,baseConfigCard:Jn,filter:Hn,debouncedFilter:Wn,errors:Yn,validationErrors:Zn,toggleModal:Gn};function Ve(){const e=Ae.createI18n("en-us",Qn);return{i18n:e,i18nT:Ae.i18nTComponent(e)}}function st(){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 i of a){const l=r.filter(d=>d===i).length,s=o.filter(d=>d===i).length;if(l!==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 i in r)if(Array.isArray(r[i])&&Array.isArray(o[i])){if(n(r[i],o[i]))continue;return!1}else{if(r[i]===o[i])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(o)}catch{return!1}},sortAlpha:r=>(o,a)=>{let i=o[r]===void 0||o[r]===null?"":o[r],l=a[r]===void 0||a[r]===null?"":a[r];return Array.isArray(o[r])&&(i=o[r][0]),Array.isArray(a[r])&&(l=a[r][0]),i.localeCompare(l)},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 Xn(e,n,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:a}=Re(e.axiosRequestConfig),{i18n:{t:i}}=Ve(),{debounce:l}=qn(),s=l(async g=>{await T(g)},200),d=t.ref(!1),p=t.ref(""),c=t.ref(""),u=t.ref([]),h=t.ref([]),m=t.ref(void 0),S=t.unref(n);let B=`${e.apiBaseUrl}${S}`;e.app==="konnect"?B=B.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(B=B.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:w}=st(),j=async()=>{try{d.value=!0;const{data:g}=await a.get(`${B}?size=${r}`);g!=null&&g.next||(m.value=o.fetchedItemsKey in g?g[o.fetchedItemsKey]:[]),h.value=o.fetchedItemsKey in g?g[o.fetchedItemsKey]:[],u.value=h.value}catch{u.value=[],p.value=i("debouncedFilter.errors.fetch")}finally{d.value=!1}},y=t.ref(""),T=async g=>{var C,f,k;if(y.value!==g)if(y.value=g||"",m.value===void 0)try{if(d.value=!0,p.value="",c.value="",e.app==="konnect"){let V=B+"";g&&(V+=`/${g}`);const{data:x}=await a.get(`${V}?size=${r}`);o.fetchedItemsKey in x?u.value=x[o.fetchedItemsKey]:x!=null&&x.id?u.value=[x]:u.value=[]}else if(g){const V=[];w(g)&&o.searchKeys.includes("id")?V.push((async()=>{const{data:A}=await a.get(`${B}/${g}`);return[A[o.fetchedItemsKey]??A]})()):V.push(...o.searchKeys.filter(A=>A!=="id").map(async A=>{const{data:I}=await a.get(`${B}?${A}=${g}`);return I[o.fetchedItemsKey]}));const x=await Promise.all(V),O=new Set;u.value=[],(C=x==null?void 0:x.forEach)==null||C.call(x,A=>{var I;(I=A==null?void 0:A.forEach)==null||I.call(A,K=>{O.has(K.id)||(O.add(K.id),u.value.push(K))})})}else u.value=h.value}catch(V){((f=V==null?void 0:V.response)==null?void 0:f.status)===404?c.value=i("debouncedFilter.errors.invalid"):(u.value=[],p.value=i("debouncedFilter.errors.fetch"))}finally{d.value=!1}else d.value=!0,c.value="",g?(u.value=(k=m.value)==null?void 0:k.filter(V=>{var x;let O=!1;for(const A of o.searchKeys){const I=typeof V[A]=="string"?(x=V[A])==null?void 0:x.toLowerCase():V[A];I!=null&&I.includes(g.toLowerCase())&&(O=!0)}return O}),(!u.value||!u.value.length)&&(c.value=i("debouncedFilter.errors.invalid"))):u.value=m.value,d.value=!1};return{loading:d,error:p,validationError:c,results:u,allRecords:m,loadItems:j,debouncedQueryChange:s}}function er(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 tr(){const{i18n:{t:e}}=Ve();return{getMessageFromError:n=>{var r,o,a,i;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(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 nr(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const o=e.join("/"),a=`${r}${o}`,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`${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)),i=t.computed(()=>o.value.startsWith("/")?new URL(`${window.location.origin}${o.value}`):new URL(o.value));return l=>{const{page:s,pageSize:d,offset:p,sortColumnKey:c,sortColumnOrder:u,query:h}=l;try{let m=new URL(i.value.href);return a.value&&h?(m.search="",m=r.value.isExactMatch?new URL(`${m.href}/${h}/`):new URL(`${m.href}?filter[name][contains]=${h}`)):(a.value||new URLSearchParams(h).forEach((S,B)=>{m.searchParams.append(B,S)}),c&&m.searchParams.append("sort_by",c),u==="desc"&&m.searchParams.append("sort_desc","1"),m.searchParams.append("size",String(d))),p&&s!==1&&m.searchParams.append("offset",String(p)),m.href}catch(m){return console.error("RouteList(fetcher)",m),o.value}}}function rr(e,n,r="data"){const o=t.unref(n),{axiosInstance:a}=Re(e.axiosRequestConfig),i=ct(e,o),l=t.ref({status:pe.Idle});return{fetcher:async s=>{var d;try{l.value={status:pe.Loading};let p=i(s);p.includes("filter[name]")&&(p=`${p}&page[size]=${s.pageSize}&page[number]=${s.page}`);const c=await a.get(p);if(c.status>=400)throw c;const u=c.data,h=r&&r.replace(/[^\w-_]/gi,"");let m;u[h]&&Array.isArray(u[h])?m=u[h]: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 l.value={status:pe.Idle,response:S},S}catch(p){const c={data:[],total:0};return s.query&&(((d=p.response)==null?void 0:d.status)===404||p.status===404)?(l.value={status:pe.NoResults,response:c,error:p.response?p:{response:p}},c):(l.value={status:pe.Error,response:c,error:p.response?p:{response:p}},c)}},fetcherState:l}}function or(){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 dt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,pt=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(dt);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},ut=e=>e==="*"||e==="x"||e==="X",ft=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},ar=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],ir=(e,n)=>{if(ut(e)||ut(n))return 0;const[r,o]=ar(ft(e),ft(n));return r>o?1:r<o?-1:0},mt=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const o=ir(e[r]||"0",n[r]||"0");if(o!==0)return o}return 0},lr=(e,n)=>{const r=pt(e),o=pt(n),a=r.pop(),i=o.pop(),l=mt(r,o);return l!==0?l:a&&i?mt(a.split("."),i.split(".")):a||i?a?-1:1:0},yt=(e,n,r)=>{sr(r);const o=lr(e,n);return gt[r].includes(o)},gt={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ht=Object.keys(gt),sr=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ht.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ht.join("|")}`)},cr=e=>typeof e=="string"&&/^[v\d]/.test(e)&&dt.test(e);function dr(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:o,version:a}=n;if(!cr(a))return console.error("Invalid version"),!1;const i=r[o];if(!i)return!1;const[l,s]=i;return!(l&&yt(a,l,"<")||s&&yt(a,s,">"))}function pr(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 ur(){const{i18n:{t:e}}=Ve();return{utf8Name:n=>/^[\p{N}\p{L}.\-_~]*$/u.test(n)?"":e("validationErrors.utf8Name")}}const P={useAxios:Re,useDebouncedFilter:Xn,useDeleteUrlBuilder:er,useErrors:tr,useExternalLinkCreator:nr,useFetcher:rr,useFetchUrlBuilder:ct,useHelpers:st,useStringHelpers:or,useI18n:Ve,useGatewayFeatureSupported:dr,useTruncationDetector:pr,useValidators:ur},fr={key:0,class:"config-card-fieldset-title"},mr=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}}=P.useI18n(),{convertKeyToTitle:o}=P.useStringHelpers(),a=t.computed(()=>n.item.key??"json-array-item"),i=t.computed(()=>n.item.value??n.item),l=t.computed(()=>{const d=JSON.parse(JSON.stringify(i.value));return n.isArrayItem&&delete d.name,d}),s=t.computed(()=>{var d;return n.isArrayItem?(d=i.value)!=null&&d.name?o(i.value.name,"_"):r("baseConfigCard.general.entryTitle",{index:n.index}):""});return(d,p)=>(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",fr,[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),(c,u)=>(t.openBlock(),t.createBlock(Ee,{key:`${a.value}-property-${u}`,item:{key:c,label:t.unref(o)(c),value:l.value[c]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),te=(e,n)=>{const r=e.__vccOpts||e;for(const[o,a]of n)r[o]=a;return r},kt=te(mr,[["__scopeId","data-v-68ca83ec"]]),yr=t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:n}}=P.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]=i=>r.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(n)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),bt=te(yr,[["__scopeId","data-v-c96811e5"]]),gr=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:n}}=P.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"])}}}),hr="#0044f4",kr="#e0e4ea",br="#afb7c5",Cr="1px",wr="20px",Sr={class:"config-card-details-row"},xr=["data-testid"],Nr=["data-testid"],_r=["data-testid"],Br=["data-testid"],Ir={key:1},Ar=["data-testid"],Vr=["data-testid"],Er=["data-testid"],jr=["data-testid"],Tr={name:"ConfigCardItem",components:{JsonCardItem:kt,StatusBadge:gr,InternalLinkItem:bt}},$r=t.defineComponent({...Tr,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:c.value?"none":`solid ${t.unref(Cr)} ${t.unref(kr)}`,"59ccec5f":p.value&&s.value?"block":"flex","29318fbe":p.value&&s.value?"100%":r.slim?"50%":"25%","292d0408":p.value&&s.value?"100%":r.slim?"50%":"75%"}));const r=e,o=n,a=t.useSlots(),{i18n:{t:i,formatUnixTimeStamp:l}}=P.useI18n(),s=t.computed(()=>r.item.value!==void 0&&r.item.value!==null&&r.item.value!==""),d=t.computed(()=>!!(r.item.tooltip||a["label-tooltip"])),p=t.computed(()=>r.item.type===q.Json||r.item.type===q.JsonArray),c=t.computed(()=>r.item.type===q.JsonArray),u=t.computed(()=>{switch(r.item.type){case q.ID:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid`,"copy-tooltip":i("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case q.IdArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{"copy-tooltip":i("baseConfigCard.copy.tooltip",{label:r.item.label})}};case q.Redacted:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid-redacted`,format:"redacted","copy-tooltip":i("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case q.RedactedArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{format:"redacted","copy-tooltip":i("baseConfigCard.copy.tooltip",{label:r.item.label})}};case q.Date:return{tag:"div",attrs:{"data-testid":`${r.item.key}-date`},text:l(r.item.value)};case q.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${r.item.key}-badge-status`,status:r.item.value}};case q.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case q.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case q.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${r.item.key}-internal-link`,item:r.item,onNavigationClick:S=>{o("navigation-click",S)}}};case q.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${r.item.key}-external-link`,href:r.item.value},text:r.item.value};case q.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-content`,item:r.item}};case q.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}}}),h=t.ref(),{isTruncated:m}=P.useTruncationDetector(h);return(S,B)=>{const w=t.resolveComponent("KLabel"),j=t.resolveComponent("KBadge"),y=t.resolveComponent("KCopy"),T=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("div",Sr,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(S.$slots,"label",{item:e.item},()=>[t.createVNode(w,{"tooltip-attributes":{maxWidth:"500px"}},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.label)+" ",1)]),_:2},[d.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,Nr)]),key:"0"}:void 0]),1024)],!0)],8,xr),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",Ir,[(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,(g,C)=>(t.openBlock(),t.createBlock(j,{key:`${e.item.key}-badge-tag-${C}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${C}`,tooltip:g,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,Ar)):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,(g,C)=>(t.openBlock(),t.createBlock(y,t.mergeProps({ref_for:!0},u.value.childAttrs,{key:`${e.item.key}-copy-uuid-${C}`,"data-testid":`${e.item.key}-copy-uuid-${C}`,text:g}),null,16,["data-testid","text"]))),128))],8,Vr)):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,(g,C)=>(t.openBlock(),t.createBlock(j,{key:`${e.item.key}-badge-method-${C}`,appearance:Object.values(t.unref(Vn.BadgeMethodAppearances)).includes(g.toLowerCase())?g.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${C}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,Er)):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,(g,C)=>(t.openBlock(),t.createBlock(kt,{key:`json-array-item-${C}`,index:C,"is-array-item":"",item:g},null,8,["index","item"]))),128))],8,jr)):(t.openBlock(),t.createBlock(T,{key:4,text:t.unref(m)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:h,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,Br))],!0)],8,_r)])}}}),Ee=te($r,[["__scopeId","data-v-d268261c"]]),Or={class:"json-config"},Kr={key:0,class:"json-endpoint"},Ct=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":`${o.value}ch`}));const n=e,r=t.computed(()=>n.jsonRecord),o=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",Or,[n.fetcherUrl?(t.openBlock(),t.createElementBlock("div",Kr,[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(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 wt(e){return typeof e>"u"||e===null}function Fr(e){return typeof e=="object"&&e!==null}function Mr(e){return Array.isArray(e)?e:wt(e)?[]:[e]}function Dr(e,n){var r,o,a,i;if(n)for(i=Object.keys(n),r=0,o=i.length;r<o;r+=1)a=i[r],e[a]=n[a];return e}function qr(e,n){var r="",o;for(o=0;o<n;o+=1)r+=e;return r}function vr(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Lr=wt,Ur=Fr,Rr=Mr,Pr=qr,zr=vr,Jr=Dr,R={isNothing:Lr,isObject:Ur,toArray:Rr,repeat:Pr,isNegativeZero:zr,extend:Jr};function St(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(X,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):(X=typeof globalThis<"u"?globalThis:X||self,t(X["kong-ui-public-entities-keys"]={},X.Vue,X.VueRouter,X["kong-ui-public-i18n"],X.axios,X.Kongponents))})(this,function(X,t,ve,Ae,at,Vn){"use strict";const it="24px",En=(e,n)=>{const r=e.__vccOpts||e;for(const[o,a]of n)r[o]=a;return r},jn=e=>(t.pushScopeId("data-v-761db460"),e=e(),t.popScopeId(),e),Tn=["aria-hidden"],$n={key:0,"data-testid":"kui-icon-svg-title"},On=jn(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),Kn=En(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:it,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,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return it}),o=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.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(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",$n,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),On],8,Tn))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-761db460"]]),Fn={keys:{title:"Keys",list:{toolbar_actions:{new_key:"New Key"},table_headers:{name:"Name",key_id:"Key ID",id:"ID",tags:"Tags"},empty_state:{title:"Configure a New Key",description:"A Key object holds a representation of asymmetric keys in various formats."}},actions:{create:"New Key",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details",loading:"Loading..."},search:{placeholder:"Filter by exact name or ID",no_results:"No results found"},delete:{title:"Delete a Key",description:"This action cannot be reversed so make sure to check the key usage before deleting."},errors:{general:"Keys could not be retrieved",delete:"The key could not be deleted at this time.",copy:"Failed to copy to clipboard",key_sets:{fetch:"Could not fetch available key sets",invalid:"Please select a valid key set ID"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this key."},keys:{title:"Asymmetric Keys",description:"Choose the preferred format for this asymmetric key. Currently only support PEM and JWK format."}},fields:{id:{label:"Key ID",placeholder:"Enter a key ID",tooltip:"An identifier for a key",help:"If using JWK, need to match with the jwk.kid field"},name:{label:"Name",placeholder:"Enter a unique name for this key",tooltip:"The name to associate with the given key"},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."},key_set:{label:"Key Set",placeholder:"Select a key set to add into",footer:"Search by exact ID to find key sets not included in the list"},key_format:{label:"Key Format",options:{jwk:"JWK",pem:"PEM"}},jwk:{label:"JWK",placeholder:"Enter a JWK",tooltip:"A JSON Web key represented as a string"},kid:{label:"Key ID",tooltip:"A unique identifier for a key."},set:{label:"Key Set",tooltip:"The id (an UUID) of the key-set with which to associate the key."},private_key:{label:"Private Key",placeholder:"Enter a private key"},public_key:{label:"Public Key",placeholder:"Enter a public key"}}}}};function Mn(){const e=Ae.createI18n("en-us",Fn);return{i18n:e,i18nT:Ae.i18nTComponent(e)}}const Le={useI18n:Mn},ie="/v2/control-planes/{controlPlaneId}/core-entities",le="/{workspace}",se={list:{konnect:{all:`${ie}/keys`,forKeySet:`${ie}/key-sets/{keySetId}/keys`},kongManager:{all:`${le}/keys`,forKeySet:`${le}/key-sets/{keySetId}/keys`}},form:{konnect:{create:{all:`${ie}/keys`,forKeySet:`${ie}/key-sets/{keySetId}/keys`},edit:{all:`${ie}/keys/{id}`,forKeySet:`${ie}/key-sets/{keySetId}/keys/{id}`},keySets:`${ie}/key-sets`,getKeySet:`${ie}/key-sets/{keySetId}`},kongManager:{create:{all:`${le}/keys`,forKeySet:`${le}/key-sets/{keySetId}/keys`},edit:{all:`${le}/keys/{id}`,forKeySet:`${le}/key-sets/{keySetId}/keys/{id}`},keySets:`${le}/key-sets`,getKeySet:`${le}/key-sets/{keySetId}`}}};var lt=(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))(lt||{}),we=(e=>(e.Edit="edit",e.Create="create",e))(we||{}),pe=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(pe||{}),q=(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))(q||{}),W=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(W||{});function Dn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):at.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),at.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 qn(){return{debounce:(e,n)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},n)}}}}const Ue="khcp-user-table-preferences",vn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnWidths:{},columnVisibility:{}};function Ln(){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(Ue));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(Ue,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||vn},deleteAllTablePreferences:()=>{localStorage.removeItem(Ue)}}}function Re(e={}){const{getAxiosInstance:n}=Dn();return{axiosInstance:n(e)}}const Un={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},Rn={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},Pn={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."}},zn={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Jn={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"}},Hn={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Wn={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Yn={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Zn={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},Gn={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"}},Qn={global:Un,deleteModal:Rn,baseForm:Pn,baseTable:zn,baseConfigCard:Jn,filter:Hn,debouncedFilter:Wn,errors:Yn,validationErrors:Zn,toggleModal:Gn};function Ve(){const e=Ae.createI18n("en-us",Qn);return{i18n:e,i18nT:Ae.i18nTComponent(e)}}function st(){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 i of a){const l=r.filter(d=>d===i).length,s=o.filter(d=>d===i).length;if(l!==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 i in r)if(Array.isArray(r[i])&&Array.isArray(o[i])){if(n(r[i],o[i]))continue;return!1}else{if(r[i]===o[i])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(o)}catch{return!1}},sortAlpha:r=>(o,a)=>{let i=o[r]===void 0||o[r]===null?"":o[r],l=a[r]===void 0||a[r]===null?"":a[r];return Array.isArray(o[r])&&(i=o[r][0]),Array.isArray(a[r])&&(l=a[r][0]),i.localeCompare(l)},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 Xn(e,n,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:a}=Re(e.axiosRequestConfig),{i18n:{t:i}}=Ve(),{debounce:l}=qn(),s=l(async g=>{await T(g)},200),d=t.ref(!1),p=t.ref(""),c=t.ref(""),u=t.ref([]),h=t.ref([]),m=t.ref(void 0),S=t.unref(n);let B=`${e.apiBaseUrl}${S}`;e.app==="konnect"?B=B.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(B=B.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:w}=st(),j=async()=>{try{d.value=!0;const{data:g}=await a.get(`${B}?size=${r}`);g!=null&&g.next||(m.value=o.fetchedItemsKey in g?g[o.fetchedItemsKey]:[]),h.value=o.fetchedItemsKey in g?g[o.fetchedItemsKey]:[],u.value=h.value}catch{u.value=[],p.value=i("debouncedFilter.errors.fetch")}finally{d.value=!1}},y=t.ref(""),T=async g=>{var C,f,k;if(y.value!==g)if(y.value=g||"",m.value===void 0)try{if(d.value=!0,p.value="",c.value="",e.app==="konnect"){let V=B+"";g&&(V+=`/${g}`);const{data:x}=await a.get(`${V}?size=${r}`);o.fetchedItemsKey in x?u.value=x[o.fetchedItemsKey]:x!=null&&x.id?u.value=[x]:u.value=[]}else if(g){const V=[];w(g)&&o.searchKeys.includes("id")?V.push((async()=>{const{data:A}=await a.get(`${B}/${g}`);return[A[o.fetchedItemsKey]??A]})()):V.push(...o.searchKeys.filter(A=>A!=="id").map(async A=>{const{data:I}=await a.get(`${B}?${A}=${g}`);return I[o.fetchedItemsKey]}));const x=await Promise.all(V),O=new Set;u.value=[],(C=x==null?void 0:x.forEach)==null||C.call(x,A=>{var I;(I=A==null?void 0:A.forEach)==null||I.call(A,K=>{O.has(K.id)||(O.add(K.id),u.value.push(K))})})}else u.value=h.value}catch(V){((f=V==null?void 0:V.response)==null?void 0:f.status)===404?c.value=i("debouncedFilter.errors.invalid"):(u.value=[],p.value=i("debouncedFilter.errors.fetch"))}finally{d.value=!1}else d.value=!0,c.value="",g?(u.value=(k=m.value)==null?void 0:k.filter(V=>{var x;let O=!1;for(const A of o.searchKeys){const I=typeof V[A]=="string"?(x=V[A])==null?void 0:x.toLowerCase():V[A];I!=null&&I.includes(g.toLowerCase())&&(O=!0)}return O}),(!u.value||!u.value.length)&&(c.value=i("debouncedFilter.errors.invalid"))):u.value=m.value,d.value=!1};return{loading:d,error:p,validationError:c,results:u,allRecords:m,loadItems:j,debouncedQueryChange:s}}function er(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 tr(){const{i18n:{t:e}}=Ve();return{getMessageFromError:n=>{var r,o,a,i;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(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 nr(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const o=e.join("/"),a=`${r}${o}`,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`${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)),i=t.computed(()=>o.value.startsWith("/")?new URL(`${window.location.origin}${o.value}`):new URL(o.value));return l=>{const{page:s,pageSize:d,offset:p,sortColumnKey:c,sortColumnOrder:u,query:h}=l;try{let m=new URL(i.value.href);return a.value&&h?(m.search="",m=r.value.isExactMatch?new URL(`${m.href}/${h}/`):new URL(`${m.href}?filter[name][contains]=${h}`)):(a.value||new URLSearchParams(h).forEach((S,B)=>{m.searchParams.append(B,S)}),c&&m.searchParams.append("sort_by",c),u==="desc"&&m.searchParams.append("sort_desc","1"),m.searchParams.append("size",String(d))),p&&s!==1&&m.searchParams.append("offset",String(p)),m.href}catch(m){return console.error("RouteList(fetcher)",m),o.value}}}function rr(e,n,r="data"){const o=t.unref(n),{axiosInstance:a}=Re(e.axiosRequestConfig),i=ct(e,o),l=t.ref({status:pe.Idle});return{fetcher:async s=>{var d;try{l.value={status:pe.Loading};let p=i(s);p.includes("filter[name]")&&(p=`${p}&page[size]=${s.pageSize}&page[number]=${s.page}`);const c=await a.get(p);if(c.status>=400)throw c;const u=c.data,h=r&&r.replace(/[^\w-_]/gi,"");let m;u[h]&&Array.isArray(u[h])?m=u[h]: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 l.value={status:pe.Idle,response:S},S}catch(p){const c={data:[],total:0};return s.query&&(((d=p.response)==null?void 0:d.status)===404||p.status===404)?(l.value={status:pe.NoResults,response:c,error:p.response?p:{response:p}},c):(l.value={status:pe.Error,response:c,error:p.response?p:{response:p}},c)}},fetcherState:l}}function or(){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 dt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,pt=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(dt);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},ut=e=>e==="*"||e==="x"||e==="X",ft=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},ar=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],ir=(e,n)=>{if(ut(e)||ut(n))return 0;const[r,o]=ar(ft(e),ft(n));return r>o?1:r<o?-1:0},mt=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const o=ir(e[r]||"0",n[r]||"0");if(o!==0)return o}return 0},lr=(e,n)=>{const r=pt(e),o=pt(n),a=r.pop(),i=o.pop(),l=mt(r,o);return l!==0?l:a&&i?mt(a.split("."),i.split(".")):a||i?a?-1:1:0},yt=(e,n,r)=>{sr(r);const o=lr(e,n);return gt[r].includes(o)},gt={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ht=Object.keys(gt),sr=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ht.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ht.join("|")}`)},cr=e=>typeof e=="string"&&/^[v\d]/.test(e)&&dt.test(e);function dr(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:o,version:a}=n;if(!cr(a))return console.error("Invalid version"),!1;const i=r[o];if(!i)return!1;const[l,s]=i;return!(l&&yt(a,l,"<")||s&&yt(a,s,">"))}function pr(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 ur(){const{i18n:{t:e}}=Ve();return{utf8Name:n=>/^[\p{N}\p{L}.\-_~]*$/u.test(n)?"":e("validationErrors.utf8Name")}}const P={useAxios:Re,useDebouncedFilter:Xn,useDeleteUrlBuilder:er,useErrors:tr,useExternalLinkCreator:nr,useFetcher:rr,useFetchUrlBuilder:ct,useHelpers:st,useStringHelpers:or,useI18n:Ve,useGatewayFeatureSupported:dr,useTruncationDetector:pr,useValidators:ur},fr={key:0,class:"config-card-fieldset-title"},mr=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}}=P.useI18n(),{convertKeyToTitle:o}=P.useStringHelpers(),a=t.computed(()=>n.item.key??"json-array-item"),i=t.computed(()=>n.item.value??n.item),l=t.computed(()=>{const d=JSON.parse(JSON.stringify(i.value));return n.isArrayItem&&delete d.name,d}),s=t.computed(()=>{var d;return n.isArrayItem?(d=i.value)!=null&&d.name?o(i.value.name,"_"):r("baseConfigCard.general.entryTitle",{index:n.index}):""});return(d,p)=>(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",fr,[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),(c,u)=>(t.openBlock(),t.createBlock(Ee,{key:`${a.value}-property-${u}`,item:{key:c,label:t.unref(o)(c),value:l.value[c]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),te=(e,n)=>{const r=e.__vccOpts||e;for(const[o,a]of n)r[o]=a;return r},kt=te(mr,[["__scopeId","data-v-68ca83ec"]]),yr=t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:n}}=P.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]=i=>r.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(n)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),bt=te(yr,[["__scopeId","data-v-c96811e5"]]),gr=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:n}}=P.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"])}}}),hr="#0044f4",kr="#e0e4ea",br="#afb7c5",Cr="1px",wr="20px",Sr={class:"config-card-details-row"},xr=["data-testid"],Nr=["data-testid"],_r=["data-testid"],Br=["data-testid"],Ir={key:1},Ar=["data-testid"],Vr=["data-testid"],Er=["data-testid"],jr=["data-testid"],Tr={name:"ConfigCardItem",components:{JsonCardItem:kt,StatusBadge:gr,InternalLinkItem:bt}},$r=t.defineComponent({...Tr,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:c.value?"none":`solid ${t.unref(Cr)} ${t.unref(kr)}`,"59ccec5f":p.value&&s.value?"block":"flex","29318fbe":p.value&&s.value?"100%":r.slim?"50%":"25%","292d0408":p.value&&s.value?"100%":r.slim?"50%":"75%"}));const r=e,o=n,a=t.useSlots(),{i18n:{t:i,formatUnixTimeStamp:l}}=P.useI18n(),s=t.computed(()=>r.item.value!==void 0&&r.item.value!==null&&r.item.value!==""),d=t.computed(()=>!!(r.item.tooltip||a["label-tooltip"])),p=t.computed(()=>r.item.type===q.Json||r.item.type===q.JsonArray),c=t.computed(()=>r.item.type===q.JsonArray),u=t.computed(()=>{switch(r.item.type){case q.ID:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid`,"copy-tooltip":i("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case q.IdArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{"copy-tooltip":i("baseConfigCard.copy.tooltip",{label:r.item.label})}};case q.Redacted:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid-redacted`,format:"redacted","copy-tooltip":i("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case q.RedactedArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{format:"redacted","copy-tooltip":i("baseConfigCard.copy.tooltip",{label:r.item.label})}};case q.Date:return{tag:"div",attrs:{"data-testid":`${r.item.key}-date`},text:l(r.item.value)};case q.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${r.item.key}-badge-status`,status:r.item.value}};case q.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case q.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case q.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${r.item.key}-internal-link`,item:r.item,onNavigationClick:S=>{o("navigation-click",S)}}};case q.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${r.item.key}-external-link`,href:r.item.value},text:r.item.value};case q.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-content`,item:r.item}};case q.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}}}),h=t.ref(),{isTruncated:m}=P.useTruncationDetector(h);return(S,B)=>{const w=t.resolveComponent("KLabel"),j=t.resolveComponent("KBadge"),y=t.resolveComponent("KCopy"),T=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("div",Sr,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(S.$slots,"label",{item:e.item},()=>[t.createVNode(w,{"tooltip-attributes":{maxWidth:"500px"}},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.label)+" ",1)]),_:2},[d.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,Nr)]),key:"0"}:void 0]),1024)],!0)],8,xr),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",Ir,[(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,(g,C)=>(t.openBlock(),t.createBlock(j,{key:`${e.item.key}-badge-tag-${C}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${C}`,tooltip:g,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,Ar)):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,(g,C)=>(t.openBlock(),t.createBlock(y,t.mergeProps({ref_for:!0},u.value.childAttrs,{key:`${e.item.key}-copy-uuid-${C}`,"data-testid":`${e.item.key}-copy-uuid-${C}`,text:g}),null,16,["data-testid","text"]))),128))],8,Vr)):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,(g,C)=>(t.openBlock(),t.createBlock(j,{key:`${e.item.key}-badge-method-${C}`,appearance:Object.values(t.unref(Vn.BadgeMethodAppearances)).includes(g.toLowerCase())?g.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${C}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,Er)):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,(g,C)=>(t.openBlock(),t.createBlock(kt,{key:`json-array-item-${C}`,index:C,"is-array-item":"",item:g},null,8,["index","item"]))),128))],8,jr)):(t.openBlock(),t.createBlock(T,{key:4,text:t.unref(m)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:h,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,Br))],!0)],8,_r)])}}}),Ee=te($r,[["__scopeId","data-v-d268261c"]]),Or={class:"json-config"},Kr={key:0,class:"json-endpoint"},Ct=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 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",Or,[n.fetcherUrl?(t.openBlock(),t.createElementBlock("div",Kr,[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(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 wt(e){return typeof e>"u"||e===null}function Fr(e){return typeof e=="object"&&e!==null}function Mr(e){return Array.isArray(e)?e:wt(e)?[]:[e]}function Dr(e,n){var r,o,a,i;if(n)for(i=Object.keys(n),r=0,o=i.length;r<o;r+=1)a=i[r],e[a]=n[a];return e}function qr(e,n){var r="",o;for(o=0;o<n;o+=1)r+=e;return r}function vr(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Lr=wt,Ur=Fr,Rr=Mr,Pr=qr,zr=vr,Jr=Dr,R={isNothing:Lr,isObject:Ur,toArray:Rr,repeat:Pr,isNegativeZero:zr,extend:Jr};function St(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 Se(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=St(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Se.prototype=Object.create(Error.prototype),Se.prototype.constructor=Se,Se.prototype.toString=function(e){return this.name+": "+St(this,e)};var Y=Se;function Pe(e,n,r,o,a){var i="",l="",s=Math.floor(a/2)-1;return o-n>s&&(i=" ... ",n=o-s+i.length),r-o>s&&(l=" ...",r=o+s-l.length),{str:i+e.slice(n,r).replace(/\t/g,"→")+l,pos:o-n+i.length}}function ze(e,n){return R.repeat(" ",n-e.length)+e}function Hr(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=[],i,l=-1;i=r.exec(e.buffer);)a.push(i.index),o.push(i.index+i[0].length),e.position<=i.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);var s="",d,p,c=Math.min(e.line+n.linesAfter,a.length).toString().length,u=n.maxLength-(n.indent+c+3);for(d=1;d<=n.linesBefore&&!(l-d<0);d++)p=Pe(e.buffer,o[l-d],a[l-d],e.position-(o[l]-o[l-d]),u),s=R.repeat(" ",n.indent)+ze((e.line-d+1).toString(),c)+" | "+p.str+`
4
4
  `+s;for(p=Pe(e.buffer,o[l],a[l],e.position,u),s+=R.repeat(" ",n.indent)+ze((e.line+1).toString(),c)+" | "+p.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-keys-list[data-v-27a91f10]{width:100%}.kong-ui-entities-keys-list .kong-ui-entity-filter-input[data-v-27a91f10]{margin-right:12px}.kong-ui-entities-keys-form[data-v-e3c278d7],.kong-ui-entities-keys-form .key-form-textarea[data-v-e3c278d7]{width:100%}.kong-ui-entities-keys-form .invalid-key-set-message[data-v-e3c278d7]{color:#d60027;font-size:11px;font-weight:500;margin-top:3px!important}.kong-ui-entities-keys-form[data-v-e3c278d7] .k-select .custom-selected-item{left:0}.kong-ui-entities-keys-form .select-item-container .select-item-label[data-v-e3c278d7]{font-weight:600}.kong-ui-entities-keys-form .select-item-container .select-item-description[data-v-e3c278d7]{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 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-keys-list[data-v-27a91f10]{width:100%}.kong-ui-entities-keys-list .kong-ui-entity-filter-input[data-v-27a91f10]{margin-right:12px}.kong-ui-entities-keys-form[data-v-e3c278d7],.kong-ui-entities-keys-form .key-form-textarea[data-v-e3c278d7]{width:100%}.kong-ui-entities-keys-form .invalid-key-set-message[data-v-e3c278d7]{color:#d60027;font-size:11px;font-weight:500;margin-top:3px!important}.kong-ui-entities-keys-form[data-v-e3c278d7] .k-select .custom-selected-item{left:0}.kong-ui-entities-keys-form .select-item-container .select-item-label[data-v-e3c278d7]{font-weight:600}.kong-ui-entities-keys-form .select-item-container .select-item-description[data-v-e3c278d7]{color:#6c7489;font-size:12px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-keys",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-keys.umd.js",
6
6
  "module": "./dist/entities-keys.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.2"
54
+ "@kong-ui-public/entities-shared": "^3.4.3"
55
55
  },
56
56
  "scripts": {
57
57
  "dev": "cross-env USE_SANDBOX=true vite",