@kong-ui-public/entities-shared 3.22.3 → 3.22.4

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.
@@ -691,7 +691,7 @@ const V = {
691
691
  ]);
692
692
  };
693
693
  }
694
- }), Pi = /* @__PURE__ */ ae(Ui, [["__scopeId", "data-v-c96811e5"]]), qi = /* @__PURE__ */ W({
694
+ }), Pi = /* @__PURE__ */ ae(Ui, [["__scopeId", "data-v-2feb8c2e"]]), qi = /* @__PURE__ */ W({
695
695
  __name: "StatusBadge",
696
696
  props: {
697
697
  status: {
@@ -737,10 +737,10 @@ const V = {
737
737
  emits: ["navigation-click"],
738
738
  setup(e, { emit: t }) {
739
739
  jt(($) => ({
740
- eaabfd90: u.value ? "none" : `solid ${w(Ji)} ${w(Yi)}`,
741
- ea5e332a: d.value && s.value ? "block" : "flex",
742
- f719ead6: d.value && s.value ? "100%" : n.slim ? "50%" : "25%",
743
- f7155f20: d.value && s.value ? "100%" : n.slim ? "50%" : "75%"
740
+ "2f90d7f7": u.value ? "none" : `solid ${w(Ji)} ${w(Yi)}`,
741
+ "668a792a": d.value && s.value ? "block" : "flex",
742
+ "5bc9ad14": d.value && s.value ? "100%" : n.slim ? "50%" : "25%",
743
+ "5bc5215e": d.value && s.value ? "100%" : n.slim ? "50%" : "75%"
744
744
  }));
745
745
  const n = e, i = t, r = Pn(), o = Xe(), { i18n: { t: a, formatUnixTimeStamp: l } } = V.useI18n(), s = I(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = I(() => !!(n.item.tooltip || o["label-tooltip"])), d = I(() => n.item.type === Y.Json || n.item.type === Y.JsonArray), u = I(() => n.item.type === Y.JsonArray), m = V.useSubSchema(n.item.key), f = I(() => {
746
746
  var $;
@@ -1005,7 +1005,7 @@ const V = {
1005
1005
  ]);
1006
1006
  };
1007
1007
  }
1008
- }), Gt = /* @__PURE__ */ ae(sr, [["__scopeId", "data-v-a19fafa9"]]), cr = { class: "json-config config-card-code-block" }, ur = {
1008
+ }), Gt = /* @__PURE__ */ ae(sr, [["__scopeId", "data-v-5f9aa0e8"]]), cr = { class: "json-config config-card-code-block" }, ur = {
1009
1009
  key: 0,
1010
1010
  class: "json-endpoint"
1011
1011
  }, zt = /* @__PURE__ */ W({
@@ -3002,7 +3002,7 @@ const Oo = { class: "yaml-config config-card-code-block" }, jn = /* @__PURE__ */
3002
3002
  ]), 1032, ["title-tag"]);
3003
3003
  };
3004
3004
  }
3005
- }), ts = /* @__PURE__ */ ae(qo, [["__scopeId", "data-v-be491a0e"]]), Ho = ["novalidate"], Yo = {
3005
+ }), ts = /* @__PURE__ */ ae(qo, [["__scopeId", "data-v-69a1e1d7"]]), Ho = ["novalidate"], Yo = {
3006
3006
  class: "form-actions",
3007
3007
  "data-testid": "form-actions"
3008
3008
  }, Vo = /* @__PURE__ */ W({
@@ -3267,7 +3267,7 @@ const Oo = { class: "yaml-config config-card-code-block" }, jn = /* @__PURE__ */
3267
3267
  });
3268
3268
  };
3269
3269
  }
3270
- }), ns = /* @__PURE__ */ ae(Vo, [["__scopeId", "data-v-e8247cfa"]]), Wo = ["data-truncate"], Jo = /* @__PURE__ */ W({
3270
+ }), ns = /* @__PURE__ */ ae(Vo, [["__scopeId", "data-v-b073d014"]]), Wo = ["data-truncate"], Jo = /* @__PURE__ */ W({
3271
3271
  __name: "EntityBaseTableCell",
3272
3272
  props: {
3273
3273
  keyName: {
@@ -3350,7 +3350,7 @@ const Oo = { class: "yaml-config config-card-code-block" }, jn = /* @__PURE__ */
3350
3350
  ], 512);
3351
3351
  };
3352
3352
  }
3353
- }), Go = /* @__PURE__ */ ae(Jo, [["__scopeId", "data-v-b252463e"]]), zo = { class: "toolbar-container" }, Qo = {
3353
+ }), Go = /* @__PURE__ */ ae(Jo, [["__scopeId", "data-v-a3a65cac"]]), zo = { class: "toolbar-container" }, Qo = {
3354
3354
  key: 0,
3355
3355
  class: "toolbar-button-container"
3356
3356
  }, Zo = {
@@ -3649,7 +3649,7 @@ const Oo = { class: "yaml-config config-card-code-block" }, jn = /* @__PURE__ */
3649
3649
  }, 8, ["title", "title-tag"]);
3650
3650
  };
3651
3651
  }
3652
- }), is = /* @__PURE__ */ ae(Xo, [["__scopeId", "data-v-d58db70c"]]), el = {
3652
+ }), is = /* @__PURE__ */ ae(Xo, [["__scopeId", "data-v-1cdbe476"]]), el = {
3653
3653
  key: 0,
3654
3654
  class: "kong-ui-entity-delete-error"
3655
3655
  }, tl = {
@@ -3997,7 +3997,7 @@ const Oo = { class: "yaml-config config-card-code-block" }, jn = /* @__PURE__ */
3997
3997
  ]));
3998
3998
  };
3999
3999
  }
4000
- }), as = /* @__PURE__ */ ae(yl, [["__scopeId", "data-v-10fa27a5"]]), os = /* @__PURE__ */ W({
4000
+ }), as = /* @__PURE__ */ ae(yl, [["__scopeId", "data-v-d1bb74d1"]]), os = /* @__PURE__ */ W({
4001
4001
  __name: "EntityToggleModal",
4002
4002
  props: {
4003
4003
  visible: {
@@ -4458,7 +4458,7 @@ const Al = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
4458
4458
  ]);
4459
4459
  };
4460
4460
  }
4461
- }), us = /* @__PURE__ */ ae(Wl, [["__scopeId", "data-v-48ae9c8c"]]), Jl = { key: 1 }, ds = /* @__PURE__ */ W({
4461
+ }), us = /* @__PURE__ */ ae(Wl, [["__scopeId", "data-v-b6376b66"]]), Jl = { key: 1 }, ds = /* @__PURE__ */ W({
4462
4462
  __name: "TableTags",
4463
4463
  props: {
4464
4464
  /** The tags to display in the table */
@@ -1,4 +1,4 @@
1
- (function(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("axios"),require("@kong-ui-public/i18n"),require("@kong/kongponents"),require("@kong/icons"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","axios","@kong-ui-public/i18n","@kong/kongponents","@kong/icons","vue-router"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B["kong-ui-public-entities-shared"]={},B.Vue,B.axios,B["kong-ui-public-i18n"],B.Kongponents,B.KongIcons,B.VueRouter))})(this,function(B,t,He,Ye,oe,Z,gn){"use strict";var We=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e.Secret="secret",e.RedisConfiguration="redis configuration",e))(We||{}),ze=(e=>(e.Edit="edit",e.Create="create",e))(ze||{}),z=(e=>(e[e.InitialLoad=0]="InitialLoad",e[e.Loading=1]="Loading",e[e.Idle=2]="Idle",e[e.NoResults=3]="NoResults",e[e.NoRecords=4]="NoRecords",e[e.Error=5]="Error",e))(z||{}),fe=(e=>(e.CaCertificate="ca_certificate",e.Certificate="certificate",e.Consumer="consumer",e.ConsumerGroup="consumer_group",e.GatewayService="service",e.Key="key",e.KeySet="set",e.Plugin="plugin",e.Route="route",e.SNI="sni",e.Upstream="upstream",e.Target="target",e.Vault="vault",e.RedisConfiguration="redis_configuration",e.Other="other",e))(fe||{});const ae=Object.values(fe);var 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.CopyBadge="copy-badge",e.BadgeStatus="badge-status",e.BadgeMethod="badge-method",e.LinkInternal="link-internal",e.LinkExternal="link-external",e))(F||{}),q=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(q||{});const Se=["primary","secondary"];function yn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):He.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),He.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 bn(){return{debounce:(e,n)=>{let r;return(...i)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...i)},n)}}}}const we="khcp-user-table-preferences",Cn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnVisibility:{}};function kn(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(i){console.error("useTablePreferences(tryParseJson)",i);return}},n=()=>{const r=e(localStorage.getItem(we));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,i)=>{try{const o=n();o.set(r,i),localStorage.setItem(we,JSON.stringify(Object.fromEntries(o.entries())))}catch(o){console.error("useTablePreferences(setTablePreferences)",o)}},getTablePreferences:(r,i)=>{const o=n();return(o==null?void 0:o.get(r))||void 0||i||Cn},deleteAllTablePreferences:()=>{localStorage.removeItem(we)}}}function Ae(e={}){const{getAxiosInstance:n}=yn();return{axiosInstance:n(e)}}const xn={global:{actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},deleteModal:{message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},baseForm:{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",terraform:"Terraform"},errors:{edit:"The entity could not be edited at this time."}},baseTable:{emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},baseConfigCard:{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",partial_label:"Redis Configuration"},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"}},emptyState:{learnMore:"Learn more",pricingTitle:"Pricing: "},filter:{filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},debouncedFilter:{errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},errors:{unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},validationErrors:{utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},toggleModal:{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"}}};function pe(){const e=Ye.createI18n("en-us",xn);return{i18n:e,i18nT:Ye.i18nTComponent(e)}}function Je(){const e=(l,a)=>(a==null?void 0:a[l])??void 0,n=(l,a)=>{if(l.length!==a.length)return!1;const c=new Set([...l,...a]);for(const s of c){const d=l.filter(u=>u===s).length,f=a.filter(u=>u===s).length;if(d!==f)return!1}return!0};return{getPropValue:e,objectsAreEqual:(l,a,c)=>{if(c){if(Object.keys(l).length===Object.keys(a).length)for(const s in l)if(Array.isArray(l[s])&&Array.isArray(a[s])){if(n(l[s],a[s]))continue;return!1}else{if(l[s]===a[s])continue;return!1}else return!1;return!0}try{return JSON.stringify(l)===JSON.stringify(a)}catch{return!1}},sortAlpha:l=>(a,c)=>{let s=a[l]===void 0||a[l]===null?"":a[l],d=c[l]===void 0||c[l]===null?"":c[l];return Array.isArray(a[l])&&(s=a[l][0]),Array.isArray(c[l])&&(d=c[l][0]),s.localeCompare(d)},isValidUuid:l=>l?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(l):!1}}function Sn(e,n,r,i={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:o}=Ae(e.axiosRequestConfig),{i18n:{t:l}}=pe(),{debounce:a}=bn(),c=a(async A=>{await k(A)},200),s=t.ref(!1),d=t.ref(""),f=t.ref(""),u=t.ref([]),m=t.ref([]),p=t.ref(void 0),g=t.computed(()=>{const A=`${e.apiBaseUrl}${t.unref(n)}`;return e.app==="konnect"?A.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"?A.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""):A}),{isValidUuid:b}=Je(),C=async()=>{try{s.value=!0;const{data:A}=await o.get(`${g.value}?size=${r}`);A!=null&&A.next||(p.value=i.fetchedItemsKey in A?A[i.fetchedItemsKey]:[]),m.value=i.fetchedItemsKey in A?A[i.fetchedItemsKey]:[],u.value=m.value}catch{u.value=[],d.value=l("debouncedFilter.errors.fetch")}finally{s.value=!1}},E=t.ref(""),k=async A=>{var N,I,h;if(E.value!==A){if(E.value=A??"",!A){u.value=m.value;return}if(p.value===void 0)try{if(s.value=!0,d.value="",f.value="",e.app==="konnect"){const S=`${g.value}/${A}`,{data:y}=await o.get(`${S}?size=${r}`);i.fetchedItemsKey in y?u.value=y[i.fetchedItemsKey]:y!=null&&y[i.exactMatchKey??"id"]?u.value=[y]:u.value=[]}else{const S=[];b(A)&&i.searchKeys.includes("id")?S.push((async()=>{const{data:_}=await o.get(`${g.value}/${A}`);return[_[i.fetchedItemsKey]??_]})()):S.push(...i.searchKeys.filter(_=>_!=="id").map(async _=>{const{data:T}=await o.get(`${g.value}?${_}=${A}`);return T[i.fetchedItemsKey]}));const y=await Promise.all(S),x=new Set;u.value=[],(N=y==null?void 0:y.forEach)==null||N.call(y,_=>{var T;(T=_==null?void 0:_.forEach)==null||T.call(_,$=>{x.has($.id)||(x.add($.id),u.value.push($))})})}}catch(S){((I=S==null?void 0:S.response)==null?void 0:I.status)===404?f.value=l("debouncedFilter.errors.invalid"):(u.value=[],d.value=l("debouncedFilter.errors.fetch"))}finally{s.value=!1}else s.value=!0,f.value="",u.value=(h=p.value)==null?void 0:h.filter(S=>{var x;let y=!1;for(const _ of i.searchKeys){const T=typeof S[_]=="string"?(x=S[_])==null?void 0:x.toLowerCase():S[_];T!=null&&T.includes(A.toLowerCase())&&(y=!0)}return y}),(!u.value||!u.value.length)&&(f.value=l("debouncedFilter.errors.invalid")),s.value=!1}};return{loading:s,error:d,validationError:f,results:u,allRecords:p,loadItems:C,debouncedQueryChange:c}}function wn(e,n){const r=t.unref(n),i=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return i.value.search="",o=>`${i.value.href}/${o}`}function An(){const{i18n:{t:e}}=pe();return{getErrorFieldsFromError:i=>{var a,c,s;if(!i)return{messages:[e("errors.unexpected")],fields:[]};if(((a=i==null?void 0:i.response)==null?void 0:a.status)===401)return{messages:[],fields:[]};let o=[e("errors.unexpected")];const l=[];if((c=i==null?void 0:i.response)!=null&&c.data){if((s=i.response.data.details)!=null&&s.length)return o=[],i.response.data.details.forEach(d=>{let f=e("errors.unexpected");d.messages&&Array.isArray(d.messages)&&d.messages.length&&(f=d.messages.join(", ")),d.field&&l.push({field:d.field,message:f}),o.push(`${d.field??""} ${f}`)}),{messages:o,fields:l};if(i.response.data.message&&Array.isArray(i.response.data.message))return o=[],i.response.data.message.forEach(d=>{if(d!=null&&d.constraints){const f=Object.values(d.constraints).join(", ");o.push(f),d.property&&l.push({field:d.property,message:f})}else d!=null&&d.property&&(d!=null&&d.message)?(l.push({field:d.property,message:d.message}),o.push(d.message)):o.push(d)}),{messages:o,fields:l};if(typeof i.response.data.message=="string"||typeof i.response.data=="string")return{messages:[i.response.data.message],fields:[]};if(typeof i.response.data=="object")return o=[],Object.keys(i.response.data).forEach(d=>{l.push({field:d,message:i.response.data[d]}),o.push(i.response.data[d])}),{messages:o,fields:l}}return{messages:[i.message||e("errors.unexpected")],fields:[]}},getMessageFromError:i=>{var o,l,a,c;if(!i)return e("errors.unexpected");if(((o=i==null?void 0:i.response)==null?void 0:o.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((l=i==null?void 0:i.response)!=null&&l.data){if(i.response.data.detail)return i.response.data.detail;if((a=i.response.data.details)!=null&&a.length)return i.response.data.details.map(s=>{let d=e("errors.unexpected");return s.messages&&typeof s.messages=="object"&&s.messages.length&&(d=s.messages.join(", ")),s.field?`${s.field} - ${d}`:d}).join("; ");if(i.response.data.message){const{message:s}=i.response.data;return Array.isArray(s)?(c=s[0])!=null&&c.constraints?Object.values(s[0].constraints)[0]:s[0]:s}if(typeof i.response.data=="string")return i.response.data;if(typeof i.response.data=="object")return Object.keys(i.response.data).map(s=>`${s} ${i.response.data[s]}`).join(", ")}return i.message||e("errors.unexpected")}}}function _n(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const i=e.join("/"),o=`${r}${i}`,l=e.some(c=>c.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(o)&&!l&&new URL(o))return`${r}${i}`;throw new Error("Invalid url")}catch(i){return console.warn("Failed to build valid URL:",i),""}}function Ge(e,n){const r=t.ref(t.unref(e)),i=t.ref(t.unref(n)),o=t.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),l=t.computed(()=>i.value.startsWith("/")?new URL(`${window.location.origin}${i.value}`):new URL(i.value));return a=>{const{page:c,pageSize:s,offset:d,sortColumnKey:f,sortColumnOrder:u,query:m}=a;try{let p=new URL(l.value.href);return o.value&&m?(p.search="",p=r.value.isExactMatch?new URL(`${p.href}/${m}`):new URL(`${p.href}?filter[name][contains]=${m}`)):(o.value||new URLSearchParams(m).forEach((g,b)=>{p.searchParams.append(b,g)}),f&&p.searchParams.append("sort_by",f),u==="desc"&&p.searchParams.append("sort_desc","1"),p.searchParams.append("size",String(s))),d&&c!==1&&p.searchParams.append("offset",String(d)),p.href}catch(p){return console.error("RouteList(fetcher)",p),i.value}}}const Qe=new Map;function Bn(e,n,r){const i=t.ref(!0),o=t.unref(n),{axiosInstance:l}=Ae(e.axiosRequestConfig),a=Ge(e,o),c=t.ref({status:z.Idle}),s=async u=>{var p;const m=t.toValue(r)||"data";try{c.value=i.value?{status:z.InitialLoad}:{status:z.Loading},i.value=!1;let g=a(u);g.includes("filter[name]")&&(g=`${g}&page[size]=${u.pageSize}&page[number]=${u.page}`);const b=await l.get(g);if(b.status>=400)throw b;const C=b.data,E=m&&m.replace(/[^\w-_]/gi,"");let k;C[E]?k=Array.isArray(C[E])?C[E]:[C[E]]:Array.isArray(C)?k=C:k=Object.keys(C).length?[C]:[];const A={data:k,total:k.length,...C.offset?{pagination:{offset:C.offset}}:null};return A.data.length===0&&!u.query?c.value={status:z.NoRecords,response:A}:c.value={status:z.Idle,response:A},A}catch(g){const b={data:[],total:0};return u.query&&(((p=g.response)==null?void 0:p.status)===404||g.status===404)?(c.value={status:z.NoResults,response:b,error:g.response?g:{response:g}},b):(c.value={status:z.Error,response:b,error:g.response?g:{response:g}},b)}},d=e.cacheIdentifier,f=Ze(d);return{fetcher:s,fetcherState:c,fetcherCacheKey:f}}function Ze(e){if(e){let n=Qe.get(e);return n||(n=t.ref(1),Qe.set(e,n)),n}return t.ref(1)}function En(){const e=(i,o="_")=>i?i.split(o).map(l=>l.toLowerCase()==="id"?l.toUpperCase():l.charAt(0).toUpperCase()+l.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:i=>i?i.replace(n,o=>o.toUpperCase()):"",convertKeyToTitle:e}}const Xe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,et=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(Xe);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},tt=e=>e==="*"||e==="x"||e==="X",nt=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},Tn=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],$n=(e,n)=>{if(tt(e)||tt(n))return 0;const[r,i]=Tn(nt(e),nt(n));return r>i?1:r<i?-1:0},rt=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const i=$n(e[r]||"0",n[r]||"0");if(i!==0)return i}return 0},Nn=(e,n)=>{const r=et(e),i=et(n),o=r.pop(),l=i.pop(),a=rt(r,i);return a!==0?a:o&&l?rt(o.split("."),l.split(".")):o||l?o?-1:1:0},it=(e,n,r)=>{In(r);const i=Nn(e,n);return ot[r].includes(i)},ot={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},at=Object.keys(ot),In=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(at.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${at.join("|")}`)},Fn=e=>typeof e=="string"&&/^[v\d]/.test(e)&&Xe.test(e);function On(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:i,version:o}=n;if(!Fn(o))return console.error("Invalid version"),!1;const l=r[i];if(!l)return!1;const[a,c]=l;return!(a&&it(o,a,"<")||c&&it(o,c,">"))}function Ln(e){const n=t.ref(0),r=t.ref(0),i=t.ref(!1);return t.watch(e,l=>{l&&!i.value&&(n.value=l.offsetWidth,r.value=l.scrollWidth,i.value=!0)}),{isTruncated:t.computed(()=>n.value<r.value)}}function Dn(){const{i18n:{t:e}}=pe();return{utf8Name:r=>/^[\p{N}\p{L}.\-_~]*$/u.test(r)?"":e("validationErrors.utf8Name")}}const _e=Symbol("schema"),Vn=e=>{t.provide(_e,e)},Rn=e=>{var o,l;const n=t.inject(_e,void 0),r=(l=(o=n==null?void 0:n.value)==null?void 0:o.fields)==null?void 0:l.find(a=>Object.keys(a)[0]===e),i=t.toRef(r==null?void 0:r[e]);return t.provide(_e,i),i};function Kn(e){let n="";const r=t.ref(!1),i=t.ref(null),o=t.computed(()=>{let a;return r.value?a=!0:i.value?a=i.value.hasData||e&&t.toValue(e):a=!1,!a});return{tableState:i,hasRecords:r,hideTableToolbar:o,handleStateChange:a=>{a.hasData?r.value=!0:a.state==="success"&&!a.hasData&&(!e||!n)&&(r.value=!1),e&&(n=t.toValue(e)),i.value={...a}}}}const L={useAxios:Ae,useDebouncedFilter:Sn,useDeleteUrlBuilder:wn,useErrors:An,useExternalLinkCreator:_n,useFetcher:Bn,useFetcherCacheKey:Ze,useFetchUrlBuilder:Ge,useHelpers:Je,useStringHelpers:En,useI18n:pe,useGatewayFeatureSupported:On,useTruncationDetector:Ln,useValidators:Dn,useSchemaProvider:Vn,useSubSchema:Rn,useTableState:Kn},Mn={key:0,class:"config-card-fieldset-title"},vn=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}}=L.useI18n(),{convertKeyToTitle:i}=L.useStringHelpers(),o=t.computed(()=>n.item.key??"json-array-item"),l=t.computed(()=>n.item.value??n.item),a=t.computed(()=>{const s=JSON.parse(JSON.stringify(l.value));return n.isArrayItem&&delete s.name,s}),c=t.computed(()=>{var s;return n.isArrayItem?(s=l.value)!=null&&s.name?i(l.value.name,"_"):r("baseConfigCard.general.entryTitle",{index:n.index}):""});return(s,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",Mn,[t.createElementVNode("b",null,t.toDisplayString(c.value),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(a.value),(f,u)=>(t.openBlock(),t.createBlock(Be,{key:`${o.value}-property-${u}`,item:{key:f,label:t.unref(i)(f),value:a.value[f]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),Y=(e,n)=>{const r=e.__vccOpts||e;for(const[i,o]of n)r[i]=o;return r},lt=Y(vn,[["__scopeId","data-v-f7096c33"]]),ct=Y(t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:n}}=L.useI18n();return(r,i)=>{const o=t.resolveComponent("KButton");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(o,{appearance:"tertiary",class:"navigation-button",onClick:i[0]||(i[0]=l=>r.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(n)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),[["__scopeId","data-v-c96811e5"]]),jn=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:n}}=L.useI18n();return(r,i)=>{const o=t.resolveComponent("KBadge");return t.openBlock(),t.createBlock(o,{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"])}}}),Un="#0044f4",Pn="#e0e4ea",qn="#afb7c5",Hn="#0044f4",Yn="1px",Wn="16px",zn="20px",Jn={class:"config-card-details-row"},Gn=["data-testid"],Qn=["data-testid"],Zn=["data-testid"],Xn=["data-testid"],er={key:1},tr=["data-testid"],nr=["data-testid"],rr=["data-testid"],ir=["data-testid"],or={name:"ConfigCardItem",components:{JsonCardItem:lt,StatusBadge:jn,InternalLinkItem:ct}},ar=t.defineComponent({...or,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(A=>({eaabfd90:u.value?"none":`solid ${t.unref(Yn)} ${t.unref(Pn)}`,ea5e332a:f.value&&s.value?"block":"flex",f719ead6:f.value&&s.value?"100%":r.slim?"50%":"25%",f7155f20:f.value&&s.value?"100%":r.slim?"50%":"75%"}));const r=e,i=n,o=t.useId(),l=t.useSlots(),{i18n:{t:a,formatUnixTimeStamp:c}}=L.useI18n(),s=t.computed(()=>r.item.value!==void 0&&r.item.value!==null&&r.item.value!==""),d=t.computed(()=>!!(r.item.tooltip||l["label-tooltip"])),f=t.computed(()=>r.item.type===F.Json||r.item.type===F.JsonArray),u=t.computed(()=>r.item.type===F.JsonArray),m=L.useSubSchema(r.item.key),p=t.computed(()=>{var A;return r.item.type?r.item.type:(A=m==null?void 0:m.value)!=null&&A.encrypted?F.Redacted:void 0}),g=t.computed(()=>{switch(p.value){case F.ID:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid`,"copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case F.IdArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{"copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label})}};case F.Redacted:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid-redacted`,format:"redacted","copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case F.RedactedArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{format:"redacted","copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label})}};case F.Date:return{tag:"div",attrs:{"data-testid":`${r.item.key}-date`},text:c(r.item.value)};case F.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${r.item.key}-badge-status`,status:r.item.value}};case F.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case F.CopyBadge:return{tag:"div",additionalComponent:"KCopy",childAttrs:{badge:!0,truncate:!0,truncationLimit:"auto",text:r.item.value}};case F.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case F.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${r.item.key}-internal-link`,item:r.item,onNavigationClick:A=>{i("navigation-click",A)}}};case F.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${r.item.key}-external-link`,href:r.item.value},text:r.item.value};case F.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-content`,item:r.item}};case F.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-array-content`,item:r.item}};default:return r.item.value!=null&&typeof r.item.value=="object"?{tag:"KCodeBlock",attrs:{"data-testid":`${r.item.key}-json-code`,id:`json-code-${o}`,language:"json",code:JSON.stringify(r.item.value,null," "),maxHeight:"480px",showLineNumbers:!1}}:{tag:"div",attrs:{"data-testid":`${r.item.key}-plain-text`},text:r.item.value}}}),b=t.ref(),C=t.ref(),{isTruncated:E}=L.useTruncationDetector(b),{isTruncated:k}=L.useTruncationDetector(C);return(A,N)=>{const I=t.resolveComponent("KTooltip"),h=t.resolveComponent("KLabel"),S=t.resolveComponent("KBadge"),y=t.resolveComponent("KCopy");return t.openBlock(),t.createElementBlock("div",Jn,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(A.$slots,"label",{item:e.item},()=>[t.createVNode(h,{"tooltip-attributes":{maxWidth:"500px"}},t.createSlots({default:t.withCtx(()=>[t.createVNode(I,{text:t.unref(E)?e.item.label:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"labelContent",ref:b,class:"label-content"},t.toDisplayString(e.item.label),513)]),_:1},8,["text"])]),_:2},[d.value?{name:"tooltip",fn:t.withCtx(()=>[t.createElementVNode("div",{"data-testid":`${e.item.key}-label-tooltip`},[t.renderSlot(A.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(e.item.tooltip),1)],!0)],8,Qn)]),key:"0"}:void 0]),1024)],!0)],8,Gn),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[t.renderSlot(A.$slots,e.item.key,{rowValue:e.item.value},()=>[s.value?(t.openBlock(),t.createElementBlock("div",er,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g.value.tag),t.normalizeProps(t.guardReactiveProps(g.value.attrs)),{default:t.withCtx(()=>[g.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,(x,_)=>(t.openBlock(),t.createBlock(S,{key:`${e.item.key}-badge-tag-${_}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${_}`,tooltip:x,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(x),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,tr)):g.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,(x,_)=>(t.openBlock(),t.createBlock(y,t.mergeProps({ref_for:!0},g.value.childAttrs,{key:`${e.item.key}-copy-uuid-${_}`,"data-testid":`${e.item.key}-copy-uuid-${_}`,text:x}),null,16,["data-testid","text"]))),128))],8,nr)):g.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,(x,_)=>(t.openBlock(),t.createBlock(S,{key:`${e.item.key}-badge-method-${_}`,appearance:Object.values(t.unref(oe.BadgeMethodAppearances)).includes(x.toLowerCase())?x.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${_}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(x),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,rr)):g.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,(x,_)=>(t.openBlock(),t.createBlock(lt,{key:`json-array-item-${_}`,index:_,"is-array-item":"",item:x},null,8,["index","item"]))),128))],8,ir)):(t.openBlock(),t.createBlock(I,{key:4,text:t.unref(k)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:C,class:t.normalizeClass(["attrs-data-text",{truncated:e.truncated}])},t.toDisplayString(g.value.text),3)]),_:1},8,["text"]))]),_:1},16))])):(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-no-value`}," – ",8,Xn))],!0)],8,Zn)])}}}),Be=Y(ar,[["__scopeId","data-v-a19fafa9"]]),lr={class:"json-config config-card-code-block"},cr={key:0,class:"json-endpoint"},Ee=t.defineComponent({__name:"JsonCodeBlock",props:{config:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},entityRecord:{type:Object,required:!0},requestMethod:{type:String,required:!1,default:""}},setup(e){t.useCssVars(o=>({"54aebfa2":`${i.value}ch`}));const n=e,r=t.computed(()=>n.entityRecord),i=t.computed(()=>{var a;if(!n.fetcherUrl)return 0;const o=(a=n.fetcherUrl)==null?void 0:a.split("/");return o.length<2?0:41+(n.requestMethod==="post"?o[o.length-1]:o[o.length-2]).length});return(o,l)=>{const a=t.resolveComponent("KBadge"),c=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",lr,[n.fetcherUrl?(t.openBlock(),t.createElementBlock("div",cr,[t.createVNode(a,{appearance:n.requestMethod},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.requestMethod),1)]),_:1},8,["appearance"]),t.createVNode(c,{id:"json-endpoint-codeblock",code:n.fetcherUrl,language:"json","single-line":"",theme:"dark"},null,8,["code"])])):t.createCommentVNode("",!0),n.entityRecord?(t.openBlock(),t.createBlock(c,{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 st(e){return typeof e>"u"||e===null}function sr(e){return typeof e=="object"&&e!==null}function dr(e){return Array.isArray(e)?e:st(e)?[]:[e]}function ur(e,n){var r,i,o,l;if(n)for(l=Object.keys(n),r=0,i=l.length;r<i;r+=1)o=l[r],e[o]=n[o];return e}function fr(e,n){var r="",i;for(i=0;i<n;i+=1)r+=e;return r}function pr(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var mr=st,hr=sr,gr=dr,yr=fr,br=pr,Cr=ur,K={isNothing:mr,isObject:hr,toArray:gr,repeat:yr,isNegativeZero:br,extend:Cr};function dt(e,n){var r="",i=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(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("axios"),require("@kong-ui-public/i18n"),require("@kong/kongponents"),require("@kong/icons"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","axios","@kong-ui-public/i18n","@kong/kongponents","@kong/icons","vue-router"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B["kong-ui-public-entities-shared"]={},B.Vue,B.axios,B["kong-ui-public-i18n"],B.Kongponents,B.KongIcons,B.VueRouter))})(this,function(B,t,He,Ye,oe,Z,gn){"use strict";var We=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e.Secret="secret",e.RedisConfiguration="redis configuration",e))(We||{}),ze=(e=>(e.Edit="edit",e.Create="create",e))(ze||{}),z=(e=>(e[e.InitialLoad=0]="InitialLoad",e[e.Loading=1]="Loading",e[e.Idle=2]="Idle",e[e.NoResults=3]="NoResults",e[e.NoRecords=4]="NoRecords",e[e.Error=5]="Error",e))(z||{}),fe=(e=>(e.CaCertificate="ca_certificate",e.Certificate="certificate",e.Consumer="consumer",e.ConsumerGroup="consumer_group",e.GatewayService="service",e.Key="key",e.KeySet="set",e.Plugin="plugin",e.Route="route",e.SNI="sni",e.Upstream="upstream",e.Target="target",e.Vault="vault",e.RedisConfiguration="redis_configuration",e.Other="other",e))(fe||{});const ae=Object.values(fe);var 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.CopyBadge="copy-badge",e.BadgeStatus="badge-status",e.BadgeMethod="badge-method",e.LinkInternal="link-internal",e.LinkExternal="link-external",e))(F||{}),q=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(q||{});const Se=["primary","secondary"];function yn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):He.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),He.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 bn(){return{debounce:(e,n)=>{let r;return(...i)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...i)},n)}}}}const we="khcp-user-table-preferences",Cn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnVisibility:{}};function kn(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(i){console.error("useTablePreferences(tryParseJson)",i);return}},n=()=>{const r=e(localStorage.getItem(we));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,i)=>{try{const o=n();o.set(r,i),localStorage.setItem(we,JSON.stringify(Object.fromEntries(o.entries())))}catch(o){console.error("useTablePreferences(setTablePreferences)",o)}},getTablePreferences:(r,i)=>{const o=n();return(o==null?void 0:o.get(r))||void 0||i||Cn},deleteAllTablePreferences:()=>{localStorage.removeItem(we)}}}function Ae(e={}){const{getAxiosInstance:n}=yn();return{axiosInstance:n(e)}}const xn={global:{actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},deleteModal:{message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},baseForm:{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",terraform:"Terraform"},errors:{edit:"The entity could not be edited at this time."}},baseTable:{emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},baseConfigCard:{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",partial_label:"Redis Configuration"},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"}},emptyState:{learnMore:"Learn more",pricingTitle:"Pricing: "},filter:{filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},debouncedFilter:{errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},errors:{unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},validationErrors:{utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},toggleModal:{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"}}};function pe(){const e=Ye.createI18n("en-us",xn);return{i18n:e,i18nT:Ye.i18nTComponent(e)}}function Je(){const e=(l,a)=>(a==null?void 0:a[l])??void 0,n=(l,a)=>{if(l.length!==a.length)return!1;const c=new Set([...l,...a]);for(const s of c){const d=l.filter(u=>u===s).length,f=a.filter(u=>u===s).length;if(d!==f)return!1}return!0};return{getPropValue:e,objectsAreEqual:(l,a,c)=>{if(c){if(Object.keys(l).length===Object.keys(a).length)for(const s in l)if(Array.isArray(l[s])&&Array.isArray(a[s])){if(n(l[s],a[s]))continue;return!1}else{if(l[s]===a[s])continue;return!1}else return!1;return!0}try{return JSON.stringify(l)===JSON.stringify(a)}catch{return!1}},sortAlpha:l=>(a,c)=>{let s=a[l]===void 0||a[l]===null?"":a[l],d=c[l]===void 0||c[l]===null?"":c[l];return Array.isArray(a[l])&&(s=a[l][0]),Array.isArray(c[l])&&(d=c[l][0]),s.localeCompare(d)},isValidUuid:l=>l?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(l):!1}}function Sn(e,n,r,i={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:o}=Ae(e.axiosRequestConfig),{i18n:{t:l}}=pe(),{debounce:a}=bn(),c=a(async A=>{await k(A)},200),s=t.ref(!1),d=t.ref(""),f=t.ref(""),u=t.ref([]),m=t.ref([]),p=t.ref(void 0),g=t.computed(()=>{const A=`${e.apiBaseUrl}${t.unref(n)}`;return e.app==="konnect"?A.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"?A.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""):A}),{isValidUuid:b}=Je(),C=async()=>{try{s.value=!0;const{data:A}=await o.get(`${g.value}?size=${r}`);A!=null&&A.next||(p.value=i.fetchedItemsKey in A?A[i.fetchedItemsKey]:[]),m.value=i.fetchedItemsKey in A?A[i.fetchedItemsKey]:[],u.value=m.value}catch{u.value=[],d.value=l("debouncedFilter.errors.fetch")}finally{s.value=!1}},E=t.ref(""),k=async A=>{var N,I,h;if(E.value!==A){if(E.value=A??"",!A){u.value=m.value;return}if(p.value===void 0)try{if(s.value=!0,d.value="",f.value="",e.app==="konnect"){const S=`${g.value}/${A}`,{data:y}=await o.get(`${S}?size=${r}`);i.fetchedItemsKey in y?u.value=y[i.fetchedItemsKey]:y!=null&&y[i.exactMatchKey??"id"]?u.value=[y]:u.value=[]}else{const S=[];b(A)&&i.searchKeys.includes("id")?S.push((async()=>{const{data:_}=await o.get(`${g.value}/${A}`);return[_[i.fetchedItemsKey]??_]})()):S.push(...i.searchKeys.filter(_=>_!=="id").map(async _=>{const{data:T}=await o.get(`${g.value}?${_}=${A}`);return T[i.fetchedItemsKey]}));const y=await Promise.all(S),x=new Set;u.value=[],(N=y==null?void 0:y.forEach)==null||N.call(y,_=>{var T;(T=_==null?void 0:_.forEach)==null||T.call(_,$=>{x.has($.id)||(x.add($.id),u.value.push($))})})}}catch(S){((I=S==null?void 0:S.response)==null?void 0:I.status)===404?f.value=l("debouncedFilter.errors.invalid"):(u.value=[],d.value=l("debouncedFilter.errors.fetch"))}finally{s.value=!1}else s.value=!0,f.value="",u.value=(h=p.value)==null?void 0:h.filter(S=>{var x;let y=!1;for(const _ of i.searchKeys){const T=typeof S[_]=="string"?(x=S[_])==null?void 0:x.toLowerCase():S[_];T!=null&&T.includes(A.toLowerCase())&&(y=!0)}return y}),(!u.value||!u.value.length)&&(f.value=l("debouncedFilter.errors.invalid")),s.value=!1}};return{loading:s,error:d,validationError:f,results:u,allRecords:p,loadItems:C,debouncedQueryChange:c}}function wn(e,n){const r=t.unref(n),i=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return i.value.search="",o=>`${i.value.href}/${o}`}function An(){const{i18n:{t:e}}=pe();return{getErrorFieldsFromError:i=>{var a,c,s;if(!i)return{messages:[e("errors.unexpected")],fields:[]};if(((a=i==null?void 0:i.response)==null?void 0:a.status)===401)return{messages:[],fields:[]};let o=[e("errors.unexpected")];const l=[];if((c=i==null?void 0:i.response)!=null&&c.data){if((s=i.response.data.details)!=null&&s.length)return o=[],i.response.data.details.forEach(d=>{let f=e("errors.unexpected");d.messages&&Array.isArray(d.messages)&&d.messages.length&&(f=d.messages.join(", ")),d.field&&l.push({field:d.field,message:f}),o.push(`${d.field??""} ${f}`)}),{messages:o,fields:l};if(i.response.data.message&&Array.isArray(i.response.data.message))return o=[],i.response.data.message.forEach(d=>{if(d!=null&&d.constraints){const f=Object.values(d.constraints).join(", ");o.push(f),d.property&&l.push({field:d.property,message:f})}else d!=null&&d.property&&(d!=null&&d.message)?(l.push({field:d.property,message:d.message}),o.push(d.message)):o.push(d)}),{messages:o,fields:l};if(typeof i.response.data.message=="string"||typeof i.response.data=="string")return{messages:[i.response.data.message],fields:[]};if(typeof i.response.data=="object")return o=[],Object.keys(i.response.data).forEach(d=>{l.push({field:d,message:i.response.data[d]}),o.push(i.response.data[d])}),{messages:o,fields:l}}return{messages:[i.message||e("errors.unexpected")],fields:[]}},getMessageFromError:i=>{var o,l,a,c;if(!i)return e("errors.unexpected");if(((o=i==null?void 0:i.response)==null?void 0:o.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((l=i==null?void 0:i.response)!=null&&l.data){if(i.response.data.detail)return i.response.data.detail;if((a=i.response.data.details)!=null&&a.length)return i.response.data.details.map(s=>{let d=e("errors.unexpected");return s.messages&&typeof s.messages=="object"&&s.messages.length&&(d=s.messages.join(", ")),s.field?`${s.field} - ${d}`:d}).join("; ");if(i.response.data.message){const{message:s}=i.response.data;return Array.isArray(s)?(c=s[0])!=null&&c.constraints?Object.values(s[0].constraints)[0]:s[0]:s}if(typeof i.response.data=="string")return i.response.data;if(typeof i.response.data=="object")return Object.keys(i.response.data).map(s=>`${s} ${i.response.data[s]}`).join(", ")}return i.message||e("errors.unexpected")}}}function _n(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const i=e.join("/"),o=`${r}${i}`,l=e.some(c=>c.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(o)&&!l&&new URL(o))return`${r}${i}`;throw new Error("Invalid url")}catch(i){return console.warn("Failed to build valid URL:",i),""}}function Ge(e,n){const r=t.ref(t.unref(e)),i=t.ref(t.unref(n)),o=t.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),l=t.computed(()=>i.value.startsWith("/")?new URL(`${window.location.origin}${i.value}`):new URL(i.value));return a=>{const{page:c,pageSize:s,offset:d,sortColumnKey:f,sortColumnOrder:u,query:m}=a;try{let p=new URL(l.value.href);return o.value&&m?(p.search="",p=r.value.isExactMatch?new URL(`${p.href}/${m}`):new URL(`${p.href}?filter[name][contains]=${m}`)):(o.value||new URLSearchParams(m).forEach((g,b)=>{p.searchParams.append(b,g)}),f&&p.searchParams.append("sort_by",f),u==="desc"&&p.searchParams.append("sort_desc","1"),p.searchParams.append("size",String(s))),d&&c!==1&&p.searchParams.append("offset",String(d)),p.href}catch(p){return console.error("RouteList(fetcher)",p),i.value}}}const Qe=new Map;function Bn(e,n,r){const i=t.ref(!0),o=t.unref(n),{axiosInstance:l}=Ae(e.axiosRequestConfig),a=Ge(e,o),c=t.ref({status:z.Idle}),s=async u=>{var p;const m=t.toValue(r)||"data";try{c.value=i.value?{status:z.InitialLoad}:{status:z.Loading},i.value=!1;let g=a(u);g.includes("filter[name]")&&(g=`${g}&page[size]=${u.pageSize}&page[number]=${u.page}`);const b=await l.get(g);if(b.status>=400)throw b;const C=b.data,E=m&&m.replace(/[^\w-_]/gi,"");let k;C[E]?k=Array.isArray(C[E])?C[E]:[C[E]]:Array.isArray(C)?k=C:k=Object.keys(C).length?[C]:[];const A={data:k,total:k.length,...C.offset?{pagination:{offset:C.offset}}:null};return A.data.length===0&&!u.query?c.value={status:z.NoRecords,response:A}:c.value={status:z.Idle,response:A},A}catch(g){const b={data:[],total:0};return u.query&&(((p=g.response)==null?void 0:p.status)===404||g.status===404)?(c.value={status:z.NoResults,response:b,error:g.response?g:{response:g}},b):(c.value={status:z.Error,response:b,error:g.response?g:{response:g}},b)}},d=e.cacheIdentifier,f=Ze(d);return{fetcher:s,fetcherState:c,fetcherCacheKey:f}}function Ze(e){if(e){let n=Qe.get(e);return n||(n=t.ref(1),Qe.set(e,n)),n}return t.ref(1)}function En(){const e=(i,o="_")=>i?i.split(o).map(l=>l.toLowerCase()==="id"?l.toUpperCase():l.charAt(0).toUpperCase()+l.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:i=>i?i.replace(n,o=>o.toUpperCase()):"",convertKeyToTitle:e}}const Xe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,et=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(Xe);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},tt=e=>e==="*"||e==="x"||e==="X",nt=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},Tn=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],$n=(e,n)=>{if(tt(e)||tt(n))return 0;const[r,i]=Tn(nt(e),nt(n));return r>i?1:r<i?-1:0},rt=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const i=$n(e[r]||"0",n[r]||"0");if(i!==0)return i}return 0},Nn=(e,n)=>{const r=et(e),i=et(n),o=r.pop(),l=i.pop(),a=rt(r,i);return a!==0?a:o&&l?rt(o.split("."),l.split(".")):o||l?o?-1:1:0},it=(e,n,r)=>{In(r);const i=Nn(e,n);return ot[r].includes(i)},ot={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},at=Object.keys(ot),In=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(at.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${at.join("|")}`)},Fn=e=>typeof e=="string"&&/^[v\d]/.test(e)&&Xe.test(e);function On(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:i,version:o}=n;if(!Fn(o))return console.error("Invalid version"),!1;const l=r[i];if(!l)return!1;const[a,c]=l;return!(a&&it(o,a,"<")||c&&it(o,c,">"))}function Ln(e){const n=t.ref(0),r=t.ref(0),i=t.ref(!1);return t.watch(e,l=>{l&&!i.value&&(n.value=l.offsetWidth,r.value=l.scrollWidth,i.value=!0)}),{isTruncated:t.computed(()=>n.value<r.value)}}function Dn(){const{i18n:{t:e}}=pe();return{utf8Name:r=>/^[\p{N}\p{L}.\-_~]*$/u.test(r)?"":e("validationErrors.utf8Name")}}const _e=Symbol("schema"),Vn=e=>{t.provide(_e,e)},Rn=e=>{var o,l;const n=t.inject(_e,void 0),r=(l=(o=n==null?void 0:n.value)==null?void 0:o.fields)==null?void 0:l.find(a=>Object.keys(a)[0]===e),i=t.toRef(r==null?void 0:r[e]);return t.provide(_e,i),i};function Kn(e){let n="";const r=t.ref(!1),i=t.ref(null),o=t.computed(()=>{let a;return r.value?a=!0:i.value?a=i.value.hasData||e&&t.toValue(e):a=!1,!a});return{tableState:i,hasRecords:r,hideTableToolbar:o,handleStateChange:a=>{a.hasData?r.value=!0:a.state==="success"&&!a.hasData&&(!e||!n)&&(r.value=!1),e&&(n=t.toValue(e)),i.value={...a}}}}const L={useAxios:Ae,useDebouncedFilter:Sn,useDeleteUrlBuilder:wn,useErrors:An,useExternalLinkCreator:_n,useFetcher:Bn,useFetcherCacheKey:Ze,useFetchUrlBuilder:Ge,useHelpers:Je,useStringHelpers:En,useI18n:pe,useGatewayFeatureSupported:On,useTruncationDetector:Ln,useValidators:Dn,useSchemaProvider:Vn,useSubSchema:Rn,useTableState:Kn},Mn={key:0,class:"config-card-fieldset-title"},vn=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}}=L.useI18n(),{convertKeyToTitle:i}=L.useStringHelpers(),o=t.computed(()=>n.item.key??"json-array-item"),l=t.computed(()=>n.item.value??n.item),a=t.computed(()=>{const s=JSON.parse(JSON.stringify(l.value));return n.isArrayItem&&delete s.name,s}),c=t.computed(()=>{var s;return n.isArrayItem?(s=l.value)!=null&&s.name?i(l.value.name,"_"):r("baseConfigCard.general.entryTitle",{index:n.index}):""});return(s,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",Mn,[t.createElementVNode("b",null,t.toDisplayString(c.value),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(a.value),(f,u)=>(t.openBlock(),t.createBlock(Be,{key:`${o.value}-property-${u}`,item:{key:f,label:t.unref(i)(f),value:a.value[f]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),Y=(e,n)=>{const r=e.__vccOpts||e;for(const[i,o]of n)r[i]=o;return r},lt=Y(vn,[["__scopeId","data-v-f7096c33"]]),ct=Y(t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:n}}=L.useI18n();return(r,i)=>{const o=t.resolveComponent("KButton");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(o,{appearance:"tertiary",class:"navigation-button",onClick:i[0]||(i[0]=l=>r.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(n)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),[["__scopeId","data-v-2feb8c2e"]]),jn=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:n}}=L.useI18n();return(r,i)=>{const o=t.resolveComponent("KBadge");return t.openBlock(),t.createBlock(o,{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"])}}}),Un="#0044f4",Pn="#e0e4ea",qn="#afb7c5",Hn="#0044f4",Yn="1px",Wn="16px",zn="20px",Jn={class:"config-card-details-row"},Gn=["data-testid"],Qn=["data-testid"],Zn=["data-testid"],Xn=["data-testid"],er={key:1},tr=["data-testid"],nr=["data-testid"],rr=["data-testid"],ir=["data-testid"],or={name:"ConfigCardItem",components:{JsonCardItem:lt,StatusBadge:jn,InternalLinkItem:ct}},ar=t.defineComponent({...or,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(A=>({"2f90d7f7":u.value?"none":`solid ${t.unref(Yn)} ${t.unref(Pn)}`,"668a792a":f.value&&s.value?"block":"flex","5bc9ad14":f.value&&s.value?"100%":r.slim?"50%":"25%","5bc5215e":f.value&&s.value?"100%":r.slim?"50%":"75%"}));const r=e,i=n,o=t.useId(),l=t.useSlots(),{i18n:{t:a,formatUnixTimeStamp:c}}=L.useI18n(),s=t.computed(()=>r.item.value!==void 0&&r.item.value!==null&&r.item.value!==""),d=t.computed(()=>!!(r.item.tooltip||l["label-tooltip"])),f=t.computed(()=>r.item.type===F.Json||r.item.type===F.JsonArray),u=t.computed(()=>r.item.type===F.JsonArray),m=L.useSubSchema(r.item.key),p=t.computed(()=>{var A;return r.item.type?r.item.type:(A=m==null?void 0:m.value)!=null&&A.encrypted?F.Redacted:void 0}),g=t.computed(()=>{switch(p.value){case F.ID:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid`,"copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case F.IdArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{"copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label})}};case F.Redacted:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid-redacted`,format:"redacted","copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case F.RedactedArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{format:"redacted","copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label})}};case F.Date:return{tag:"div",attrs:{"data-testid":`${r.item.key}-date`},text:c(r.item.value)};case F.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${r.item.key}-badge-status`,status:r.item.value}};case F.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case F.CopyBadge:return{tag:"div",additionalComponent:"KCopy",childAttrs:{badge:!0,truncate:!0,truncationLimit:"auto",text:r.item.value}};case F.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case F.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${r.item.key}-internal-link`,item:r.item,onNavigationClick:A=>{i("navigation-click",A)}}};case F.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${r.item.key}-external-link`,href:r.item.value},text:r.item.value};case F.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-content`,item:r.item}};case F.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-array-content`,item:r.item}};default:return r.item.value!=null&&typeof r.item.value=="object"?{tag:"KCodeBlock",attrs:{"data-testid":`${r.item.key}-json-code`,id:`json-code-${o}`,language:"json",code:JSON.stringify(r.item.value,null," "),maxHeight:"480px",showLineNumbers:!1}}:{tag:"div",attrs:{"data-testid":`${r.item.key}-plain-text`},text:r.item.value}}}),b=t.ref(),C=t.ref(),{isTruncated:E}=L.useTruncationDetector(b),{isTruncated:k}=L.useTruncationDetector(C);return(A,N)=>{const I=t.resolveComponent("KTooltip"),h=t.resolveComponent("KLabel"),S=t.resolveComponent("KBadge"),y=t.resolveComponent("KCopy");return t.openBlock(),t.createElementBlock("div",Jn,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(A.$slots,"label",{item:e.item},()=>[t.createVNode(h,{"tooltip-attributes":{maxWidth:"500px"}},t.createSlots({default:t.withCtx(()=>[t.createVNode(I,{text:t.unref(E)?e.item.label:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"labelContent",ref:b,class:"label-content"},t.toDisplayString(e.item.label),513)]),_:1},8,["text"])]),_:2},[d.value?{name:"tooltip",fn:t.withCtx(()=>[t.createElementVNode("div",{"data-testid":`${e.item.key}-label-tooltip`},[t.renderSlot(A.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(e.item.tooltip),1)],!0)],8,Qn)]),key:"0"}:void 0]),1024)],!0)],8,Gn),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[t.renderSlot(A.$slots,e.item.key,{rowValue:e.item.value},()=>[s.value?(t.openBlock(),t.createElementBlock("div",er,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g.value.tag),t.normalizeProps(t.guardReactiveProps(g.value.attrs)),{default:t.withCtx(()=>[g.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,(x,_)=>(t.openBlock(),t.createBlock(S,{key:`${e.item.key}-badge-tag-${_}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${_}`,tooltip:x,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(x),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,tr)):g.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,(x,_)=>(t.openBlock(),t.createBlock(y,t.mergeProps({ref_for:!0},g.value.childAttrs,{key:`${e.item.key}-copy-uuid-${_}`,"data-testid":`${e.item.key}-copy-uuid-${_}`,text:x}),null,16,["data-testid","text"]))),128))],8,nr)):g.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,(x,_)=>(t.openBlock(),t.createBlock(S,{key:`${e.item.key}-badge-method-${_}`,appearance:Object.values(t.unref(oe.BadgeMethodAppearances)).includes(x.toLowerCase())?x.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${_}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(x),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,rr)):g.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,(x,_)=>(t.openBlock(),t.createBlock(lt,{key:`json-array-item-${_}`,index:_,"is-array-item":"",item:x},null,8,["index","item"]))),128))],8,ir)):(t.openBlock(),t.createBlock(I,{key:4,text:t.unref(k)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:C,class:t.normalizeClass(["attrs-data-text",{truncated:e.truncated}])},t.toDisplayString(g.value.text),3)]),_:1},8,["text"]))]),_:1},16))])):(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-no-value`}," – ",8,Xn))],!0)],8,Zn)])}}}),Be=Y(ar,[["__scopeId","data-v-5f9aa0e8"]]),lr={class:"json-config config-card-code-block"},cr={key:0,class:"json-endpoint"},Ee=t.defineComponent({__name:"JsonCodeBlock",props:{config:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},entityRecord:{type:Object,required:!0},requestMethod:{type:String,required:!1,default:""}},setup(e){t.useCssVars(o=>({"54aebfa2":`${i.value}ch`}));const n=e,r=t.computed(()=>n.entityRecord),i=t.computed(()=>{var a;if(!n.fetcherUrl)return 0;const o=(a=n.fetcherUrl)==null?void 0:a.split("/");return o.length<2?0:41+(n.requestMethod==="post"?o[o.length-1]:o[o.length-2]).length});return(o,l)=>{const a=t.resolveComponent("KBadge"),c=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",lr,[n.fetcherUrl?(t.openBlock(),t.createElementBlock("div",cr,[t.createVNode(a,{appearance:n.requestMethod},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.requestMethod),1)]),_:1},8,["appearance"]),t.createVNode(c,{id:"json-endpoint-codeblock",code:n.fetcherUrl,language:"json","single-line":"",theme:"dark"},null,8,["code"])])):t.createCommentVNode("",!0),n.entityRecord?(t.openBlock(),t.createBlock(c,{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 st(e){return typeof e>"u"||e===null}function sr(e){return typeof e=="object"&&e!==null}function dr(e){return Array.isArray(e)?e:st(e)?[]:[e]}function ur(e,n){var r,i,o,l;if(n)for(l=Object.keys(n),r=0,i=l.length;r<i;r+=1)o=l[r],e[o]=n[o];return e}function fr(e,n){var r="",i;for(i=0;i<n;i+=1)r+=e;return r}function pr(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var mr=st,hr=sr,gr=dr,yr=fr,br=pr,Cr=ur,K={isNothing:mr,isObject:hr,toArray:gr,repeat:yr,isNegativeZero:br,extend:Cr};function dt(e,n){var r="",i=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),i+" "+r):i}function le(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=dt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}le.prototype=Object.create(Error.prototype),le.prototype.constructor=le,le.prototype.toString=function(n){return this.name+": "+dt(this,n)};var U=le;function Te(e,n,r,i,o){var l="",a="",c=Math.floor(o/2)-1;return i-n>c&&(l=" ... ",n=i-c+l.length),r-i>c&&(a=" ...",r=i+c-a.length),{str:l+e.slice(n,r).replace(/\t/g,"→")+a,pos:i-n+l.length}}function $e(e,n){return K.repeat(" ",n-e.length)+e}function kr(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,i=[0],o=[],l,a=-1;l=r.exec(e.buffer);)o.push(l.index),i.push(l.index+l[0].length),e.position<=l.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var c="",s,d,f=Math.min(e.line+n.linesAfter,o.length).toString().length,u=n.maxLength-(n.indent+f+3);for(s=1;s<=n.linesBefore&&!(a-s<0);s++)d=Te(e.buffer,i[a-s],o[a-s],e.position-(i[a]-i[a-s]),u),c=K.repeat(" ",n.indent)+$e((e.line-s+1).toString(),f)+" | "+d.str+`
4
4
  `+c;for(d=Te(e.buffer,i[a],o[a],e.position,u),c+=K.repeat(" ",n.indent)+$e((e.line+1).toString(),f)+" | "+d.str+`
@@ -48,4 +48,4 @@
48
48
  `,d+=`${P}${P}id = konnect_gateway_${f}.my_${f}.id
49
49
  `,d+=`${P}}
50
50
  `),d+=`}
51
- `,d});return(c,s)=>{const d=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Io,[n.entityRecord?(t.openBlock(),t.createBlock(d,{key:0,id:"terraform-codeblock",code:a.value,language:"terraform",theme:"dark"},null,8,["code"])):t.createCommentVNode("",!0)])}}}),Fo={key:0,class:"config-card-display-form"},Oo=["data-testid"],Lo={key:0,class:"config-card-prop-section-title"},fn=Y(t.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:e=>ae.includes(e)},propertyCollections:{type:Object,required:!1,default:()=>null},format:{type:String,required:!1,default:"structured",validator:e=>["structured","yaml","json","terraform"].includes(e)},propListTypes:{type:Array,required:!1,default:()=>[]},record:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},codeBlockRecordFormatter:{type:Function,required:!1,default:e=>e}},setup(e){const n=e,r=t.useSlots(),{i18n:{t:i}}=L.useI18n(),o=a=>!!(a.tooltip||r[`${a.key}-label-tooltip`]),l=t.computed(()=>{if(!n.record)return n.record;let a=n.record;n.codeBlockRecordFormatter&&(a=n.codeBlockRecordFormatter(a,n.format));const c=JSON.parse(JSON.stringify(a));return delete c.created_at,delete c.updated_at,c});return(a,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.format==="structured"?(t.openBlock(),t.createElementBlock("div",Fo,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propListTypes,s=>(t.openBlock(),t.createElementBlock("div",{key:`config-card-details-${s}-props`,class:t.normalizeClass(`config-card-details-${s}-props`),"data-testid":`config-card-details-${s}-props`},[s!=="basic"?(t.openBlock(),t.createElementBlock("div",Lo,t.toDisplayString(s==="advanced"?t.unref(i)("baseConfigCard.sections.advanced"):t.unref(i)("baseConfigCard.sections.plugin")),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propertyCollections[s],d=>(t.openBlock(),t.createBlock(Be,{key:d.key,item:d},t.createSlots({label:t.withCtx(()=>[t.renderSlot(a.$slots,`${d.key}-label`,{row:d},void 0,!0)]),[d.key]:t.withCtx(({rowValue:f})=>[t.renderSlot(a.$slots,d.key,{row:d,rowValue:f},void 0,!0)]),_:2},[o(d)?{name:"label-tooltip",fn:t.withCtx(()=>[t.renderSlot(a.$slots,`${d.key}-label-tooltip`,{row:d},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))),128))],10,Oo))),128))])):t.createCommentVNode("",!0),e.format==="json"&&l.value?(t.openBlock(),t.createBlock(Ee,{key:1,config:n.config,"entity-record":l.value,"fetcher-url":n.fetcherUrl,"request-method":"get"},null,8,["config","entity-record","fetcher-url"])):t.createCommentVNode("",!0),e.format==="yaml"&&l.value?(t.openBlock(),t.createBlock(Ue,{key:2,"entity-record":l.value},null,8,["entity-record"])):t.createCommentVNode("",!0),e.format==="terraform"&&l.value?(t.openBlock(),t.createBlock(Pe,{key:3,"entity-record":l.value,"entity-type":n.entityType},null,8,["entity-record","entity-type"])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d67757a9"]]),Do={class:"config-card-title","data-testid":"config-card-title"},Vo={class:"config-card-actions"},Ro=["href"],Ko={class:"config-card-details-section"},Mo=Y(t.defineComponent({__name:"EntityBaseConfigCard",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string"||!e.entityId)},configSchema:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:e=>ae.includes(e)},pluginConfigKey:{type:String,required:!1,default:""},pluginConfigSchema:{type:Object,required:!1,default:()=>({})},fetchUrl:{type:String,required:!0},dataKey:{type:String,required:!1,default:""},recordResolver:{type:Function,required:!1,default:e=>e},codeBlockRecordFormatter:{type:Function,required:!1,default:e=>e},hideTitle:{type:Boolean,default:!1},label:{type:String,default:"Format: ",required:!1},configCardDoc:{type:String,default:"",required:!1},titleTag:{type:String,default:"h2"}},emits:["loading","fetch:success","fetch:error"],setup(e,{emit:n}){var I;const r=n,i=e,{i18n:{t:o}}=L.useI18n(),{getMessageFromError:l}=L.useErrors(),{convertKeyToTitle:a}=L.useStringHelpers();L.useSubSchema(i.pluginConfigKey);const{axiosInstance:c}=L.useAxios((I=i.config)==null?void 0:I.axiosRequestConfig),s=[{label:o("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:o("baseForm.configuration.json"),value:"json"},{label:o("baseForm.configuration.yaml"),value:"yaml"}];i.config.app==="konnect"&&s.splice(2,0,{label:o("baseForm.configuration.terraform"),value:"terraform"});const d=t.ref("structured"),f=h=>{d.value=h==null?void 0:h.value},u={id:{type:F.ID,label:o("baseConfigCard.commonFields.id_label"),order:0,section:q.Basic},name:{order:1,section:q.Basic},enabled:{type:F.BadgeStatus,order:2,section:q.Basic},updated_at:{type:F.Date,label:o("baseConfigCard.commonFields.updated_at_label"),order:3,section:q.Basic},created_at:{type:F.Date,label:o("baseConfigCard.commonFields.created_at_label"),order:4,section:q.Basic},tags:{type:F.BadgeTag,order:-1,section:q.Basic},partials:{type:F.LinkInternal,label:o("baseConfigCard.commonFields.partial_label"),order:-1,section:q.Basic}},m=t.ref(!1),p=t.ref(!1),g=t.ref(""),b=t.ref({}),C=t.computed(()=>{var y,x,_;if(!b.value)return[];const h=[],S=Object.keys(b.value).length;for(const T in b.value){const $=(x=(y=i.configSchema)==null?void 0:y[T])==null?void 0:x.order,V=(_=u[T])==null?void 0:_.order;let O=S;(V||V===0)&&(O=V===-1?S+1:V),$&&(O=$===-1?S+1:$),h.push([T,O])}return h.sort(function(T,$){return T[1]-$[1]}),h.map(T=>{var xe,hn;const $=T[0],V=(xe=b.value)==null?void 0:xe[$],O=((hn=i.configSchema)==null?void 0:hn[$])||{},R=u[$];return{key:$,value:V,hidden:O.hidden||!1,type:O.type??((R==null?void 0:R.type)||F.Text),label:O.label??((R==null?void 0:R.label)||a($)),tooltip:O.tooltip??((R==null?void 0:R.tooltip)||void 0),section:O.section??((R==null?void 0:R.section)||q.Advanced)}}).filter(T=>!T.hidden&&T.key!==i.pluginConfigKey)}),E=t.computed(()=>{var x,_;if(!b.value||!i.pluginConfigKey)return[];const h=b.value[i.pluginConfigKey]||{},S=Object.keys(h).length,y=[];for(const T in h){const $=(_=(x=i.pluginConfigSchema)==null?void 0:x[T])==null?void 0:_.order,V=h[T];let O=V!=null&&V!==""?S-1:S;$&&(O=$===-1?S+1:$),y.push([T,O])}return y.sort(function(T,$){return T[1]-$[1]}),y.map(T=>{var R;const $=T[0],V=h[$],O=((R=i.pluginConfigSchema)==null?void 0:R[$])||{};return{key:$,value:V,hidden:O.hidden||!1,type:O.type??F.Text,label:O.label??a($),tooltip:O.tooltip??void 0,section:q.Plugin}}).filter(T=>!T.hidden)}),k=t.computed(()=>{var h,S,y,x;return{basic:(h=C.value)==null?void 0:h.filter(_=>_.section===q.Basic),advanced:(S=C.value)==null?void 0:S.filter(_=>_.section===q.Advanced),plugin:(x=E.value)==null?void 0:x.concat((y=C.value)==null?void 0:y.filter(_=>_.section===q.Plugin))}}),A=t.computed(()=>{const h=[];return k.value.basic.length&&h.push("basic"),k.value.advanced.length&&h.push("advanced"),k.value.plugin.length&&h.push("plugin"),h}),N=t.computed(()=>{var S,y;let h=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((S=i.config)==null?void 0:S.controlPlaneId)||""):i.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(y=i.config)!=null&&y.workspace?`/${i.config.workspace}`:"")),h=h.replace(/{id}/gi,i.config.entityId),h});return t.watch(m,h=>{r("loading",h)},{immediate:!0}),t.onBeforeMount(async()=>{p.value=!1,m.value=!0;try{const{data:h}=await c.get(N.value);if(i.dataKey)if(typeof h[i.dataKey]<"u")b.value={...h[i.dataKey]};else throw new Error(o("errors.dataKeyUndefined",{dataKey:i.dataKey}));else i.recordResolver?b.value={...i.recordResolver(h)}:b.value={...h};Object.keys(i.configSchema).filter(y=>i.configSchema[y].forceShow).forEach(y=>{b.value&&typeof b.value[y]>"u"&&(b.value[y]=null)}),r("fetch:success",h)}catch(h){const S=l(h);g.value=S.startsWith("code")?o("baseConfigCard.errors.load"):S,p.value=!0,r("fetch:error",h)}finally{m.value=!1}}),(h,S)=>{const y=t.resolveComponent("KLabel"),x=t.resolveComponent("KSelect"),_=t.resolveComponent("KButton"),T=t.resolveComponent("KSkeleton"),$=t.resolveComponent("KEmptyState"),V=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(V,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",Vo,[t.renderSlot(h.$slots,"actions",{},void 0,!0),t.createVNode(y,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(x,{"data-testid":"select-config-format",items:s,onChange:f}),e.configCardDoc?(t.openBlock(),t.createBlock(_,{key:0,appearance:"tertiary",class:"book-icon","data-testid":"book-icon"},{default:t.withCtx(()=>[t.createElementVNode("a",{href:e.configCardDoc,rel:"noopener",target:"_blank"},[t.createVNode(t.unref(Z.BookIcon),{size:t.unref(zn)},null,8,["size"])],8,Ro)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[m.value?(t.openBlock(),t.createBlock(T,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):p.value?(t.openBlock(),t.createBlock($,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(g.value),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",Ko,[t.createVNode(fn,{"code-block-record-formatter":e.codeBlockRecordFormatter,config:e.config,"entity-type":e.entityType,"fetcher-url":N.value,format:d.value,"prop-list-types":A.value,"property-collections":k.value,record:b.value},t.createSlots({_:2},[t.renderList(Object.keys(h.$slots),O=>({name:O,fn:t.withCtx(({row:R,rowValue:xe})=>[t.renderSlot(h.$slots,O,{row:R,rowValue:xe},void 0,!0)])}))]),1032,["code-block-record-formatter","config","entity-type","fetcher-url","format","prop-list-types","property-collections","record"])])]),_:2},[e.hideTitle?void 0:{name:"title",fn:t.withCtx(()=>[t.createElementVNode("span",Do,[t.renderSlot(h.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-be491a0e"]]),vo=["novalidate"],jo={class:"form-actions","data-testid":"form-actions"},Uo=Y(t.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string")},editId:{type:String,required:!1,default:""},entityType:{type:String,required:!0,validator:e=>ae.includes(e)},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1},wrapperComponent:{type:String,default:"KCard"},actionTeleportTarget:{type:String,default:void 0},hideActions:{type:Boolean,default:!1},slidoutTopOffset:{type:Number,default:60}},emits:["loading","fetch:success","fetch:error","submit","cancel"],setup(e,{expose:n,emit:r}){var I;const i=r,o=e,l=gn.useRouter(),{i18n:{t:a}}=L.useI18n(),{getMessageFromError:c}=L.useErrors(),{axiosInstance:s}=L.useAxios((I=o.config)==null?void 0:I.axiosRequestConfig),d=t.ref(!1),f=t.computed(()=>!!o.editId),u=t.ref(!1),m=t.ref(""),p=t.computed(()=>o.canSubmit===!1||o.isReadonly),g=t.ref(!1),b=t.computed(()=>{var S,y;let h=`${o.config.apiBaseUrl}${o.fetchUrl}`;return o.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((S=o.config)==null?void 0:S.controlPlaneId)||""):o.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(y=o.config)!=null&&y.workspace?`/${o.config.workspace}`:"")),o.editId?(h=h.replace(/{id}/gi,o.editId),h):(h=h.replace(/\/{id}/gi,""),h)}),C=()=>{g.value=!g.value},E=()=>{o.config.cancelRoute?l.push(o.config.cancelRoute):k()},k=()=>{i("cancel")},A=()=>{p.value||i("submit")},N=t.ref([{title:a("baseForm.configuration.json"),hash:"#json"},{title:a("baseForm.configuration.yaml"),hash:"#yaml"}]);return o.config.app==="konnect"&&o.entityType!==fe.Other&&N.value.splice(1,0,{title:a("baseForm.configuration.terraform"),hash:"#terraform"}),t.watch(()=>d.value,h=>{i("loading",h)},{immediate:!0}),t.onBeforeMount(async()=>{if(o.editId)try{u.value=!1,d.value=!0;const{data:h}=await s.get(b.value);i("fetch:success",h)}catch(h){const S=c(h);m.value=S.startsWith("code")?a("baseForm.errors.edit"):S,u.value=!0,i("fetch:error",h)}finally{d.value=!1}}),n({viewConfig:C,formCancel:k,formSubmit:A}),(h,S)=>{const y=t.resolveComponent("KSkeleton"),x=t.resolveComponent("KEmptyState"),_=t.resolveComponent("KAlert"),T=t.resolveComponent("KButton"),$=t.resolveComponent("KTabs"),V=t.resolveComponent("KSlideout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.wrapperComponent),{class:"kong-ui-entity-base-form"},{default:t.withCtx(()=>[d.value?(t.openBlock(),t.createBlock(y,{key:0,type:"form"})):u.value?(t.openBlock(),t.createBlock(x,{key:1,"action-button-text":t.unref(a)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:E},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(m.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:o.noValidate,onReset:t.withModifiers(k,["prevent"]),onSubmit:t.withModifiers(A,["prevent"])},[t.renderSlot(h.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(_,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),e.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.Teleport,{key:1,disabled:!e.actionTeleportTarget,to:e.actionTeleportTarget},[t.createElementVNode("div",jo,[t.renderSlot(h.$slots,"form-actions",{},()=>[t.createVNode(T,{appearance:"tertiary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-view-configuration`,onClick:S[0]||(S[0]=O=>C())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode(T,{appearance:"secondary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-cancel`,disabled:e.isReadonly,type:"reset",onClick:S[1]||(S[1]=O=>!!e.actionTeleportTarget&&k())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),t.createVNode(T,{appearance:"primary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-submit`,disabled:p.value,type:"submit",onClick:S[2]||(S[2]=O=>!!e.actionTeleportTarget&&A())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)])],8,["disabled","to"]))],40,vo)),t.createVNode(V,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":e.slidoutTopOffset,title:t.unref(a)("baseForm.configuration.title"),visible:g.value,onClose:S[3]||(S[3]=O=>C())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)("baseForm.configuration.message")),1),t.createVNode($,{"data-testid":"form-view-configuration-slideout-tabs",tabs:N.value},{json:t.withCtx(()=>[t.createVNode(Ee,{config:e.config,"entity-record":o.formFields,"fetcher-url":b.value,"request-method":o.editId?"put":"post"},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(Ue,{"entity-record":o.formFields},null,8,["entity-record"])]),terraform:t.withCtx(()=>[t.createVNode(Pe,{"entity-record":o.formFields,"entity-type":e.entityType},null,8,["entity-record","entity-type"])]),_:1},8,["tabs"])]),_:1},8,["offset-top","title","visible"])]),_:3})}}}),[["__scopeId","data-v-e8247cfa"]]),Po=["data-truncate"],qo=Y(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(e){const n=e,r=t.computed(()=>{var C;return((C=n.rowEl)==null?void 0:C.querySelector(`[data-testid="${n.keyName}"]`))||null}),i=t.computed(()=>{var C;return((C=r.value)==null?void 0:C.querySelector('[data-truncate="true"]'))||null}),o=t.computed(()=>{var E,k;const C=(E=n.rowEl)==null?void 0:E.querySelectorAll("td");return C?((k=C[0])==null?void 0:k.getAttribute("data-testid"))===n.keyName:!0}),l=t.computed(()=>o.value||n.tooltip);let a;const c=()=>{a&&(a.disconnect(),a=void 0)},s=()=>{var E,k,A;let C=((E=r.value)==null?void 0:E.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const N=window.getComputedStyle(r.value);C-=(parseFloat(N.paddingLeft)||0)+(parseFloat(N.paddingRight)||0)}f.value=((k=i.value)==null?void 0:k.getBoundingClientRect().width)||0,u.value=C,m.value=((A=d.value)==null?void 0:A.innerText)||""},d=t.ref({}),f=t.ref(0),u=t.ref(0),m=t.ref(""),p=t.computed(()=>[i.value,r.value]),g=t.watch(p,C=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(E=>{window.requestAnimationFrame(()=>{!Array.isArray(E)||!E.length||s()})});for(const E of C)E&&a.observe(E)}},{immediate:!0,flush:"post",deep:!0}),b=t.computed(()=>l.value?f.value>u.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{g()}),(C,E)=>{const k=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:d,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(k,{"max-width":"300",placement:"bottom-start",text:b.value?m.value:""},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,Po)):t.renderSlot(C.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-b252463e"]]),Ho={class:"toolbar-container"},Yo={key:0,class:"toolbar-button-container"},Wo={key:0,class:"hidden"},zo=Y(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},rowKey:{type:[String,Function],default:"id"},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:null},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},disablePaginationPageJump:{type:Boolean,default:void 0},disableSorting:{type:Boolean,default:void 0},paginationType:{type:String,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:""},defaultTablePreferences:{type:Object,default:null,required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:void 0}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked","state"],setup(e,{emit:n}){const r=e,i=n,{i18n:{t:o}}=L.useI18n(),l=t.computed(()=>{var y,x;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(y=r.errorMessage)==null?void 0:y.title,message:(x=r.errorMessage)==null?void 0:x.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=t.computed(()=>{const y=[];return Object.keys(r.tableHeaders).forEach(_=>{const T=r.tableHeaders[_];y.push({label:T.label??_,key:_,sortable:T.sortable??!1,hidable:T.hidable??!0})}),r.enableEntityActions&&y.push({key:"actions",hideLabel:!0}),y}),s=y=>({"data-rowid":y.id,"data-testid":y.name,...r.rowAttributes(y)}),d=t.ref({}),f=y=>{var x;return(x=d.value)==null?void 0:x.$el.querySelector(`[data-rowid="${y.id}"]`)},u=y=>{const x={"data-testid":y.headerKey,...r.cellAttributes(y)};return y.colIndex===0&&(x.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),x},m=y=>{k(y),i("state",y)},p=()=>{i("empty-state-cta-clicked"),g()},g=()=>{i("clear-search-input")},b=t.computed(()=>r.disableRowClick?void 0:(y,x)=>{i("click:row",x)}),C=y=>{i("sort",y)},{hideTableToolbar:E,handleStateChange:k}=L.useTableState(()=>r.query),{setTablePreferences:A,getTablePreferences:N}=kn(),I=t.ref(N(a.value,r.defaultTablePreferences)),h=t.computed(()=>{const y=N(a.value);return{...r.initialFetcherParams,...y}}),S=y=>{I.value=y,c.value.forEach(x=>{!("hidable"in x)||!I.value.columnVisibility||x.hidable===!1&&(I.value.columnVisibility[x.key]=!0)}),a.value&&A(a.value,y)};return(y,x)=>{const _=t.resolveComponent("KTableData"),T=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(T,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(_,{ref_key:"tableRefs",ref:d,"cache-identifier":a.value,"cell-attrs":u,"client-sort":e.enableClientSort,"empty-state-action-message":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,error:l.value.hasError,"error-state-message":l.value.message,"error-state-title":l.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:c.value,"hide-pagination":e.hidePagination,"hide-pagination-when-optional":"","hide-toolbar":e.hideToolbar??t.unref(E),"initial-fetcher-params":h.value,loading:e.isLoading,"pagination-attributes":{disablePageJump:e.disablePaginationPageJump,offset:e.paginationType==="offset"},"resize-columns":"","row-attrs":s,"row-key":e.rowKey,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":I.value,onEmptyStateActionClick:p,"onRow:click":b.value,onSort:x[0]||(x[0]=$=>C($)),onState:m,"onUpdate:tablePreferences":S},t.createSlots({toolbar:t.withCtx(()=>[t.createElementVNode("div",Ho,[t.renderSlot(y.$slots,"toolbar-filter",{},void 0,!0),y.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",Yo,[t.renderSlot(y.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)])]),"action-items":t.withCtx(({row:$})=>[t.renderSlot(y.$slots,"actions",{row:$},void 0,!0)]),_:2},[y.$slots["empty-state"]?{name:"empty-state",fn:t.withCtx(()=>[t.renderSlot(y.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,t.renderList(e.tableHeaders,($,V)=>({name:V,fn:t.withCtx(({row:O,rowValue:R})=>[t.createVNode(qo,{"key-name":String(V),"row-el":f(O),tooltip:$.tooltip},{default:t.withCtx(()=>[t.renderSlot(y.$slots,V,{row:O,rowKey:e.rowKey,rowValue:R},()=>[t.createTextVNode(t.toDisplayString(R),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(Z.AddIcon))]),key:"1"}]),1032,["cache-identifier","client-sort","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","hide-pagination","hide-toolbar","initial-fetcher-params","loading","pagination-attributes","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click"]),y.$slots["outside-actions"]&&t.unref(E)?(t.openBlock(),t.createElementBlock("div",Wo,[t.renderSlot(y.$slots,"outside-actions",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-d58db70c"]]),Jo={key:0,class:"kong-ui-entity-delete-error"},Go={key:1,class:"description"},Qo=Y(t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=L.useI18n(),i=e,o=n,l=t.computed(()=>i.needConfirm?i.entityName:""),a=()=>{o("cancel")},c=()=>{o("proceed")};return(s,d)=>{const f=t.resolveComponent("KAlert"),u=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(u,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":l.value,title:e.title,visible:e.visible,onCancel:a,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",Jo,[t.createVNode(f,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:i.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.entityType),1)]),_:2},[i.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(i.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),i.description||s.$slots.description?(t.openBlock(),t.createElementBlock("div",Go,[t.renderSlot(s.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(i.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),[["__scopeId","data-v-4361d622"]]),Zo={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},Xo={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},ea=["fill"],ta={mask:"url(#mask0_180_20349)"},na=["fill"],pn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${Un})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",Zo,[t.createElementVNode("mask",Xo,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,ea)]),t.createElementVNode("g",ta,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,na)])]))}}),ra={key:1,class:"kong-ui-entity-filter"},ia={class:"kong-ui-entity-filter-menu"},oa=["data-testid"],aa=["onClick","onKeydown"],la={class:"menu-item-indicator"},ca={class:"menu-item-body"},sa=["for"],da={class:"menu-item-buttons"},ua={class:"filter-clear-button-container"},fa=Y(t.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:n}){const{i18n:{t:r}}=L.useI18n(),i=e,o=n,l=t.ref(!1),a=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const N=[];return new URLSearchParams(i.modelValue).forEach((I,h)=>{I!==""&&N.push(h)}),N}),d=t.computed(()=>{const N=i.config.fields;return Object.keys(N).filter(I=>{var h;return(h=N==null?void 0:N[I])==null?void 0:h.searchable}).map(I=>({label:N[I].label||I,value:I,expanded:!1}))});t.watch(()=>i.modelValue,N=>{a.value={},new URLSearchParams(N).forEach((I,h)=>{a.value[h]=I})});const f=()=>{l.value=!l.value},u=N=>{c.value.has(N)?c.value.delete(N):c.value.add(N)},m=N=>{o("update:modelValue",N)},p=()=>{m("")},g=N=>`filter-${N}`,b=N=>{var I,h;return(((h=(I=i.config.schema)==null?void 0:I[N])==null?void 0:h.values)??[]).map(S=>({value:S,label:S}))},C=N=>{var I,h;return((h=(I=i.config.schema)==null?void 0:I[N])==null?void 0:h.type)??"text"},E=N=>{a.value={...a.value,[N]:""},A()},k=()=>{a.value={},A(!0)},A=(N=!1)=>{const I=Object.keys(a.value).reduce((h,S)=>(a.value[S]&&(h[S]=`${a.value[S]}`),h),{});N&&(l.value=!1),o("update:modelValue",new URLSearchParams(I).toString())};return(N,I)=>{const h=t.resolveComponent("KInput"),S=t.resolveComponent("KButton"),y=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(h,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":m},{before:t.withCtx(()=>[t.createVNode(pn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(Z.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:p},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",ra,[t.createVNode(S,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(pn),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("filter.filterButtonText"))+" "+t.toDisplayString(s.value.length>0?`(${s.value.length})`:""),1)]),_:1}),t.withDirectives(t.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:f},null,512),[[t.vShow,l.value]]),t.withDirectives(t.createElementVNode("div",ia,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,x=>{var _,T;return t.openBlock(),t.createElementBlock("div",{key:x.value,class:"kong-ui-entity-filter-menu-item","data-testid":x.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(x.value)}]),role:"button",tabindex:"0",onClick:$=>u(x.value),onKeydown:t.withKeys($=>u(x.value),["enter"])},[t.createTextVNode(t.toDisplayString(x.label)+" ",1),t.withDirectives(t.createElementVNode("span",la,null,512),[[t.vShow,s.value.includes(x.value)]]),t.createVNode(t.unref(Z.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(x.value)}]),color:t.unref(qn)},null,8,["class","color"])],42,aa),t.withDirectives(t.createElementVNode("div",ca,[t.createElementVNode("label",{class:"menu-item-label",for:g(x.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,sa),((T=(_=e.config.schema)==null?void 0:_[x.value])==null?void 0:T.type)==="select"?(t.openBlock(),t.createBlock(y,{key:0,id:g(x.value),modelValue:a.value[x.value],"onUpdate:modelValue":$=>a.value[x.value]=$,items:b(x.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","items","placeholder"])):(t.openBlock(),t.createBlock(h,{key:1,id:g(x.value),modelValue:a.value[x.value],"onUpdate:modelValue":$=>a.value[x.value]=$,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:C(x.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(x.value)]]),t.withDirectives(t.createElementVNode("div",da,[t.createVNode(S,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:I[0]||(I[0]=$=>A(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(S,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:$=>E(x.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:2},1032,["onClick"])],512),[[t.vShow,c.value.has(x.value)]])],8,oa)}),128)),t.createElementVNode("div",ua,[t.createVNode(S,{appearance:"tertiary",size:"small",onClick:k},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-10fa27a5"]]),pa=t.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18n:{t:r},i18nT:i}=L.useI18n(),o=e,l=n,a=t.ref(!1),c=t.computed(()=>o.action==="enable"?r("toggleModal.enable.title",{entityType:o.entityType}):r("toggleModal.disable.title",{entityType:o.entityType})),s=t.computed(()=>o.action==="enable"?r("toggleModal.enable.confirmText"):r("toggleModal.disable.confirmText")),d=()=>l("cancel"),f=async()=>{if(o.onConfirm){a.value=!0;try{await o.onConfirm(),l("proceed")}catch(u){console.error(u)}finally{a.value=!1}}};return(u,m)=>{const p=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(p,{"action-button-disabled":a.value,"action-button-text":s.value,"data-testid":`${e.entityType}-${e.entityId}-toggle-prompt`,title:c.value,visible:e.visible,onCancel:d,onProceed:f},{default:t.withCtx(()=>[t.createVNode(t.unref(i),{keypath:`toggleModal.${o.action}.message`,scope:"global"},{entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.entityType),1)]),entityName:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(e.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),ma=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),i=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(o,l)=>i.value?t.renderSlot(o.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}});for(var v=[],qe=0;qe<256;++qe)v.push((qe+256).toString(16).slice(1));function ha(e,n=0){return(v[e[n+0]]+v[e[n+1]]+v[e[n+2]]+v[e[n+3]]+"-"+v[e[n+4]]+v[e[n+5]]+"-"+v[e[n+6]]+v[e[n+7]]+"-"+v[e[n+8]]+v[e[n+9]]+"-"+v[e[n+10]]+v[e[n+11]]+v[e[n+12]]+v[e[n+13]]+v[e[n+14]]+v[e[n+15]]).toLowerCase()}var ke,ga=new Uint8Array(16);function ya(){if(!ke&&(ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ke(ga)}var ba=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const mn={randomUUID:ba};function Ca(e,n,r){if(mn.randomUUID&&!n&&!e)return mn.randomUUID();e=e||{};var i=e.random||(e.rng||ya)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,ha(i)}const ka=["aria-labelledby"],xa={class:"form-section-wrapper"},Sa={key:1,class:"form-section-description"},wa={key:2,class:"form-section-footer"},Aa={class:"form-section-content"},_a=Y(t.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(e){const n=t.useSlots(),r=Ca();return(i,o)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",xa,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Sa,[t.renderSlot(i.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),t.unref(n).footer?(t.openBlock(),t.createElementBlock("div",wa,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Aa,[t.renderSlot(i.$slots,"default",{},void 0,!0)])])],10,ka))}}),[["__scopeId","data-v-b1f74200"]]),Ba={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Ea={key:0,class:"deleted-entity"},Ta={key:1},$a=["onClick"],Na=Y(t.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,r=t.ref(),{isTruncated:i}=L.useTruncationDetector(r),{i18n:{t:o}}=L.useI18n(),l=o("global.actions.copyId"),a=t.ref(l),c=t.computed(()=>n.entityLinkData.deleted??!1),s=t.computed(()=>{var u;return(u=n.entityLinkData.id)!=null&&u.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),d=t.computed(()=>{var u;return`${(u=s.value)==null?void 0:u.toString().slice(0,5)} (deleted)`}),f=async u=>{await u(s.value||"")&&(a.value=o("global.actions.copyToClipboard"),setTimeout(()=>{a.value=l},1800))};return(u,m)=>{const p=t.resolveComponent("KTooltip"),g=t.resolveComponent("KExternalLink"),b=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ba,[c.value?(t.openBlock(),t.createElementBlock("div",Ea,t.toDisplayString(d.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(g,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(p,{text:t.unref(i)&&e.entityLinkData.label||""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:r,class:"entity-link-label"},t.toDisplayString(e.entityLinkData.label),513)]),_:1},8,["text"])]),_:1},8,["hide-icon","href","target"])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ta,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(p,{key:a.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:a.value},{default:t.withCtx(()=>[t.createVNode(b,null,{default:t.withCtx(({copyToClipboard:C})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(E=>f(C),["stop"])},[t.createVNode(t.unref(Z.CopyIcon),{class:"copy-icon",color:t.unref(Hn),"data-testid":"copy-id",size:t.unref(Wn)},null,8,["color","size"])],8,$a)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-96efdfa5"]]),Ia={class:"kong-ui-public-entity-empty-state"},Fa={class:"entity-empty-state-content"},Oa={key:0,class:"empty-state-image"},La={key:1,class:"entity-empty-state-title"},Da={key:2,class:"entity-empty-state-description"},Va={key:3,class:"entity-empty-state-pricing"},Ra={key:0,class:"entity-empty-state-message"},Ka={key:1,class:"entity-empty-state-action"},Ma={key:2,class:"entity-empty-state-card-container"},va={key:0,class:"feature-icon"},ja={class:"card-header"},Ua=["title"],Pa={key:3,class:"entity-empty-state-bottom-container"},qa=Y(t.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:e=>Se.includes(e)},title:{type:String,default:""},description:{type:String,default:""},pricing:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},actionButtonText:{type:String,default:""},learnMore:{type:Boolean,default:!1},features:{type:Array,default:()=>[]}},emits:["click:create","click:learn-more"],setup(e){const n=e,{i18n:{t:r}}=L.useI18n(),i=t.ref(!1),o=t.computed(()=>i.value&&!!n.actionButtonText),l=t.computed(()=>Se.includes(n.appearance)?n.appearance:["primary",n.appearance]);return t.onBeforeMount(async()=>{i.value=await n.canCreate()}),(a,c)=>{const s=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",Ia,[t.createElementVNode("div",Fa,[a.$slots.image?(t.openBlock(),t.createElementBlock("div",Oa,[t.renderSlot(a.$slots,"image",{},void 0,!0)])):t.createCommentVNode("",!0),e.title||a.$slots.title?(t.openBlock(),t.createElementBlock("div",La,[t.createElementVNode("h1",{class:t.normalizeClass(l.value)},[t.renderSlot(a.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)],2)])):t.createCommentVNode("",!0),e.description||a.$slots.default?(t.openBlock(),t.createElementBlock("div",Da,[t.renderSlot(a.$slots,"default",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),e.pricing||a.$slots.pricing?(t.openBlock(),t.createElementBlock("div",Va,[t.createElementVNode("p",null,[t.createElementVNode("b",null,t.toDisplayString(t.unref(r)("emptyState.pricingTitle")),1),c[2]||(c[2]=t.createTextVNode()),t.renderSlot(a.$slots,"pricing",{},()=>[t.createTextVNode(t.toDisplayString(e.pricing),1)],!0)])])):t.createCommentVNode("",!0)]),a.$slots.message?(t.openBlock(),t.createElementBlock("div",Ra,[t.renderSlot(a.$slots,"message",{},void 0,!0)])):t.createCommentVNode("",!0),o.value||e.learnMore||a.$slots.actions?(t.openBlock(),t.createElementBlock("div",Ka,[t.renderSlot(a.$slots,"actions",{},()=>[o.value?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:0,appearance:"primary","data-testid":"entity-create-button",size:e.appearance==="secondary"?"medium":"large",onClick:c[0]||(c[0]=d=>a.$emit("click:create"))},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.AddIcon)),t.createTextVNode(" "+t.toDisplayString(e.actionButtonText),1)]),_:1},8,["size"])):t.createCommentVNode("",!0),e.learnMore?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:1,appearance:"secondary","data-testid":"entity-learn-more-button",size:e.appearance==="secondary"?"medium":"large",onClick:c[1]||(c[1]=d=>a.$emit("click:learn-more"))},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.BookIcon),{decorative:""}),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("emptyState.learnMore")),1)]),_:1},8,["size"])):t.createCommentVNode("",!0)],!0)])):t.createCommentVNode("",!0),e.features.length?(t.openBlock(),t.createElementBlock("div",Ma,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.features,(d,f)=>(t.openBlock(),t.createBlock(s,{key:d,class:"entity-empty-state-card"},{title:t.withCtx(()=>[a.$slots[`feature-${f}-icon`]?(t.openBlock(),t.createElementBlock("div",va,[t.renderSlot(a.$slots,`feature-${f}-icon`,{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",ja,t.toDisplayString(d.title),1)]),default:t.withCtx(()=>[t.createElementVNode("div",{title:d.description},t.toDisplayString(d.description),9,Ua)]),_:2},1024))),128))])):t.createCommentVNode("",!0),a.$slots.bottom?(t.openBlock(),t.createElementBlock("div",Pa,[t.renderSlot(a.$slots,"bottom",{},void 0,!0)])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-48ae9c8c"]]),Ha={key:1},Ya=t.defineComponent({__name:"TableTags",props:{tags:{type:[Array,String],default:()=>[]},tagMaxWidth:{type:String,default:void 0}},setup(e){const n=e,r=t.computed(()=>{if(Array.isArray(n.tags))return n.tags;if(typeof n.tags=="string")try{const i=JSON.parse(n.tags);return Array.isArray(i)?i:[]}catch{return[]}return[]});return(i,o)=>{var l;return((l=r.value)==null?void 0:l.length)>0?(t.openBlock(),t.createBlock(t.unref(oe.KTruncate),{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,a=>(t.openBlock(),t.createBlock(t.unref(oe.KBadge),{key:a,"max-width":e.tagMaxWidth,onClick:o[0]||(o[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a),1)]),_:2},1032,["max-width"]))),128))]),_:1})):(t.openBlock(),t.createElementBlock("span",Ha,"-"))}}}),{useAxios:Wa,useDeleteUrlBuilder:za,useErrors:Ja,useExternalLinkCreator:Ga,useFetchUrlBuilder:Qa,useFetcher:Za,useFetcherCacheKey:Xa,useDebouncedFilter:el,useStringHelpers:tl,useHelpers:nl,useGatewayFeatureSupported:rl,useTruncationDetector:il,useValidators:ol,useSchemaProvider:al,useTableState:ll}=L;B.Appearances=Se,B.ConfigCardDisplay=fn,B.ConfigCardItem=Be,B.ConfigurationSchemaSection=q,B.ConfigurationSchemaType=F,B.EntityBaseConfigCard=Mo,B.EntityBaseForm=Uo,B.EntityBaseFormType=ze,B.EntityBaseTable=zo,B.EntityDeleteModal=Qo,B.EntityEmptyState=qa,B.EntityFilter=fa,B.EntityFormSection=_a,B.EntityLink=Na,B.EntityToggleModal=pa,B.EntityTypes=We,B.FetcherStatus=z,B.InternalLinkItem=ct,B.JsonCodeBlock=Ee,B.PermissionsWrapper=ma,B.SupportedEntityType=fe,B.SupportedEntityTypesArray=ae,B.TableTags=Ya,B.TerraformCodeBlock=Pe,B.YamlCodeBlock=Ue,B.useAxios=Wa,B.useDebouncedFilter=el,B.useDeleteUrlBuilder=za,B.useErrors=Ja,B.useExternalLinkCreator=Ga,B.useFetchUrlBuilder=Qa,B.useFetcher=Za,B.useFetcherCacheKey=Xa,B.useGatewayFeatureSupported=rl,B.useHelpers=nl,B.useSchemaProvider=al,B.useStringHelpers=tl,B.useTableState=ll,B.useTruncationDetector=il,B.useValidators=ol,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
51
+ `,d});return(c,s)=>{const d=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Io,[n.entityRecord?(t.openBlock(),t.createBlock(d,{key:0,id:"terraform-codeblock",code:a.value,language:"terraform",theme:"dark"},null,8,["code"])):t.createCommentVNode("",!0)])}}}),Fo={key:0,class:"config-card-display-form"},Oo=["data-testid"],Lo={key:0,class:"config-card-prop-section-title"},fn=Y(t.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:e=>ae.includes(e)},propertyCollections:{type:Object,required:!1,default:()=>null},format:{type:String,required:!1,default:"structured",validator:e=>["structured","yaml","json","terraform"].includes(e)},propListTypes:{type:Array,required:!1,default:()=>[]},record:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},codeBlockRecordFormatter:{type:Function,required:!1,default:e=>e}},setup(e){const n=e,r=t.useSlots(),{i18n:{t:i}}=L.useI18n(),o=a=>!!(a.tooltip||r[`${a.key}-label-tooltip`]),l=t.computed(()=>{if(!n.record)return n.record;let a=n.record;n.codeBlockRecordFormatter&&(a=n.codeBlockRecordFormatter(a,n.format));const c=JSON.parse(JSON.stringify(a));return delete c.created_at,delete c.updated_at,c});return(a,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.format==="structured"?(t.openBlock(),t.createElementBlock("div",Fo,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propListTypes,s=>(t.openBlock(),t.createElementBlock("div",{key:`config-card-details-${s}-props`,class:t.normalizeClass(`config-card-details-${s}-props`),"data-testid":`config-card-details-${s}-props`},[s!=="basic"?(t.openBlock(),t.createElementBlock("div",Lo,t.toDisplayString(s==="advanced"?t.unref(i)("baseConfigCard.sections.advanced"):t.unref(i)("baseConfigCard.sections.plugin")),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propertyCollections[s],d=>(t.openBlock(),t.createBlock(Be,{key:d.key,item:d},t.createSlots({label:t.withCtx(()=>[t.renderSlot(a.$slots,`${d.key}-label`,{row:d},void 0,!0)]),[d.key]:t.withCtx(({rowValue:f})=>[t.renderSlot(a.$slots,d.key,{row:d,rowValue:f},void 0,!0)]),_:2},[o(d)?{name:"label-tooltip",fn:t.withCtx(()=>[t.renderSlot(a.$slots,`${d.key}-label-tooltip`,{row:d},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))),128))],10,Oo))),128))])):t.createCommentVNode("",!0),e.format==="json"&&l.value?(t.openBlock(),t.createBlock(Ee,{key:1,config:n.config,"entity-record":l.value,"fetcher-url":n.fetcherUrl,"request-method":"get"},null,8,["config","entity-record","fetcher-url"])):t.createCommentVNode("",!0),e.format==="yaml"&&l.value?(t.openBlock(),t.createBlock(Ue,{key:2,"entity-record":l.value},null,8,["entity-record"])):t.createCommentVNode("",!0),e.format==="terraform"&&l.value?(t.openBlock(),t.createBlock(Pe,{key:3,"entity-record":l.value,"entity-type":n.entityType},null,8,["entity-record","entity-type"])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d67757a9"]]),Do={class:"config-card-title","data-testid":"config-card-title"},Vo={class:"config-card-actions"},Ro=["href"],Ko={class:"config-card-details-section"},Mo=Y(t.defineComponent({__name:"EntityBaseConfigCard",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string"||!e.entityId)},configSchema:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:e=>ae.includes(e)},pluginConfigKey:{type:String,required:!1,default:""},pluginConfigSchema:{type:Object,required:!1,default:()=>({})},fetchUrl:{type:String,required:!0},dataKey:{type:String,required:!1,default:""},recordResolver:{type:Function,required:!1,default:e=>e},codeBlockRecordFormatter:{type:Function,required:!1,default:e=>e},hideTitle:{type:Boolean,default:!1},label:{type:String,default:"Format: ",required:!1},configCardDoc:{type:String,default:"",required:!1},titleTag:{type:String,default:"h2"}},emits:["loading","fetch:success","fetch:error"],setup(e,{emit:n}){var I;const r=n,i=e,{i18n:{t:o}}=L.useI18n(),{getMessageFromError:l}=L.useErrors(),{convertKeyToTitle:a}=L.useStringHelpers();L.useSubSchema(i.pluginConfigKey);const{axiosInstance:c}=L.useAxios((I=i.config)==null?void 0:I.axiosRequestConfig),s=[{label:o("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:o("baseForm.configuration.json"),value:"json"},{label:o("baseForm.configuration.yaml"),value:"yaml"}];i.config.app==="konnect"&&s.splice(2,0,{label:o("baseForm.configuration.terraform"),value:"terraform"});const d=t.ref("structured"),f=h=>{d.value=h==null?void 0:h.value},u={id:{type:F.ID,label:o("baseConfigCard.commonFields.id_label"),order:0,section:q.Basic},name:{order:1,section:q.Basic},enabled:{type:F.BadgeStatus,order:2,section:q.Basic},updated_at:{type:F.Date,label:o("baseConfigCard.commonFields.updated_at_label"),order:3,section:q.Basic},created_at:{type:F.Date,label:o("baseConfigCard.commonFields.created_at_label"),order:4,section:q.Basic},tags:{type:F.BadgeTag,order:-1,section:q.Basic},partials:{type:F.LinkInternal,label:o("baseConfigCard.commonFields.partial_label"),order:-1,section:q.Basic}},m=t.ref(!1),p=t.ref(!1),g=t.ref(""),b=t.ref({}),C=t.computed(()=>{var y,x,_;if(!b.value)return[];const h=[],S=Object.keys(b.value).length;for(const T in b.value){const $=(x=(y=i.configSchema)==null?void 0:y[T])==null?void 0:x.order,V=(_=u[T])==null?void 0:_.order;let O=S;(V||V===0)&&(O=V===-1?S+1:V),$&&(O=$===-1?S+1:$),h.push([T,O])}return h.sort(function(T,$){return T[1]-$[1]}),h.map(T=>{var xe,hn;const $=T[0],V=(xe=b.value)==null?void 0:xe[$],O=((hn=i.configSchema)==null?void 0:hn[$])||{},R=u[$];return{key:$,value:V,hidden:O.hidden||!1,type:O.type??((R==null?void 0:R.type)||F.Text),label:O.label??((R==null?void 0:R.label)||a($)),tooltip:O.tooltip??((R==null?void 0:R.tooltip)||void 0),section:O.section??((R==null?void 0:R.section)||q.Advanced)}}).filter(T=>!T.hidden&&T.key!==i.pluginConfigKey)}),E=t.computed(()=>{var x,_;if(!b.value||!i.pluginConfigKey)return[];const h=b.value[i.pluginConfigKey]||{},S=Object.keys(h).length,y=[];for(const T in h){const $=(_=(x=i.pluginConfigSchema)==null?void 0:x[T])==null?void 0:_.order,V=h[T];let O=V!=null&&V!==""?S-1:S;$&&(O=$===-1?S+1:$),y.push([T,O])}return y.sort(function(T,$){return T[1]-$[1]}),y.map(T=>{var R;const $=T[0],V=h[$],O=((R=i.pluginConfigSchema)==null?void 0:R[$])||{};return{key:$,value:V,hidden:O.hidden||!1,type:O.type??F.Text,label:O.label??a($),tooltip:O.tooltip??void 0,section:q.Plugin}}).filter(T=>!T.hidden)}),k=t.computed(()=>{var h,S,y,x;return{basic:(h=C.value)==null?void 0:h.filter(_=>_.section===q.Basic),advanced:(S=C.value)==null?void 0:S.filter(_=>_.section===q.Advanced),plugin:(x=E.value)==null?void 0:x.concat((y=C.value)==null?void 0:y.filter(_=>_.section===q.Plugin))}}),A=t.computed(()=>{const h=[];return k.value.basic.length&&h.push("basic"),k.value.advanced.length&&h.push("advanced"),k.value.plugin.length&&h.push("plugin"),h}),N=t.computed(()=>{var S,y;let h=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((S=i.config)==null?void 0:S.controlPlaneId)||""):i.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(y=i.config)!=null&&y.workspace?`/${i.config.workspace}`:"")),h=h.replace(/{id}/gi,i.config.entityId),h});return t.watch(m,h=>{r("loading",h)},{immediate:!0}),t.onBeforeMount(async()=>{p.value=!1,m.value=!0;try{const{data:h}=await c.get(N.value);if(i.dataKey)if(typeof h[i.dataKey]<"u")b.value={...h[i.dataKey]};else throw new Error(o("errors.dataKeyUndefined",{dataKey:i.dataKey}));else i.recordResolver?b.value={...i.recordResolver(h)}:b.value={...h};Object.keys(i.configSchema).filter(y=>i.configSchema[y].forceShow).forEach(y=>{b.value&&typeof b.value[y]>"u"&&(b.value[y]=null)}),r("fetch:success",h)}catch(h){const S=l(h);g.value=S.startsWith("code")?o("baseConfigCard.errors.load"):S,p.value=!0,r("fetch:error",h)}finally{m.value=!1}}),(h,S)=>{const y=t.resolveComponent("KLabel"),x=t.resolveComponent("KSelect"),_=t.resolveComponent("KButton"),T=t.resolveComponent("KSkeleton"),$=t.resolveComponent("KEmptyState"),V=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(V,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",Vo,[t.renderSlot(h.$slots,"actions",{},void 0,!0),t.createVNode(y,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(x,{"data-testid":"select-config-format",items:s,onChange:f}),e.configCardDoc?(t.openBlock(),t.createBlock(_,{key:0,appearance:"tertiary",class:"book-icon","data-testid":"book-icon"},{default:t.withCtx(()=>[t.createElementVNode("a",{href:e.configCardDoc,rel:"noopener",target:"_blank"},[t.createVNode(t.unref(Z.BookIcon),{size:t.unref(zn)},null,8,["size"])],8,Ro)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[m.value?(t.openBlock(),t.createBlock(T,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):p.value?(t.openBlock(),t.createBlock($,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(g.value),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",Ko,[t.createVNode(fn,{"code-block-record-formatter":e.codeBlockRecordFormatter,config:e.config,"entity-type":e.entityType,"fetcher-url":N.value,format:d.value,"prop-list-types":A.value,"property-collections":k.value,record:b.value},t.createSlots({_:2},[t.renderList(Object.keys(h.$slots),O=>({name:O,fn:t.withCtx(({row:R,rowValue:xe})=>[t.renderSlot(h.$slots,O,{row:R,rowValue:xe},void 0,!0)])}))]),1032,["code-block-record-formatter","config","entity-type","fetcher-url","format","prop-list-types","property-collections","record"])])]),_:2},[e.hideTitle?void 0:{name:"title",fn:t.withCtx(()=>[t.createElementVNode("span",Do,[t.renderSlot(h.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-69a1e1d7"]]),vo=["novalidate"],jo={class:"form-actions","data-testid":"form-actions"},Uo=Y(t.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string")},editId:{type:String,required:!1,default:""},entityType:{type:String,required:!0,validator:e=>ae.includes(e)},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1},wrapperComponent:{type:String,default:"KCard"},actionTeleportTarget:{type:String,default:void 0},hideActions:{type:Boolean,default:!1},slidoutTopOffset:{type:Number,default:60}},emits:["loading","fetch:success","fetch:error","submit","cancel"],setup(e,{expose:n,emit:r}){var I;const i=r,o=e,l=gn.useRouter(),{i18n:{t:a}}=L.useI18n(),{getMessageFromError:c}=L.useErrors(),{axiosInstance:s}=L.useAxios((I=o.config)==null?void 0:I.axiosRequestConfig),d=t.ref(!1),f=t.computed(()=>!!o.editId),u=t.ref(!1),m=t.ref(""),p=t.computed(()=>o.canSubmit===!1||o.isReadonly),g=t.ref(!1),b=t.computed(()=>{var S,y;let h=`${o.config.apiBaseUrl}${o.fetchUrl}`;return o.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((S=o.config)==null?void 0:S.controlPlaneId)||""):o.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(y=o.config)!=null&&y.workspace?`/${o.config.workspace}`:"")),o.editId?(h=h.replace(/{id}/gi,o.editId),h):(h=h.replace(/\/{id}/gi,""),h)}),C=()=>{g.value=!g.value},E=()=>{o.config.cancelRoute?l.push(o.config.cancelRoute):k()},k=()=>{i("cancel")},A=()=>{p.value||i("submit")},N=t.ref([{title:a("baseForm.configuration.json"),hash:"#json"},{title:a("baseForm.configuration.yaml"),hash:"#yaml"}]);return o.config.app==="konnect"&&o.entityType!==fe.Other&&N.value.splice(1,0,{title:a("baseForm.configuration.terraform"),hash:"#terraform"}),t.watch(()=>d.value,h=>{i("loading",h)},{immediate:!0}),t.onBeforeMount(async()=>{if(o.editId)try{u.value=!1,d.value=!0;const{data:h}=await s.get(b.value);i("fetch:success",h)}catch(h){const S=c(h);m.value=S.startsWith("code")?a("baseForm.errors.edit"):S,u.value=!0,i("fetch:error",h)}finally{d.value=!1}}),n({viewConfig:C,formCancel:k,formSubmit:A}),(h,S)=>{const y=t.resolveComponent("KSkeleton"),x=t.resolveComponent("KEmptyState"),_=t.resolveComponent("KAlert"),T=t.resolveComponent("KButton"),$=t.resolveComponent("KTabs"),V=t.resolveComponent("KSlideout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.wrapperComponent),{class:"kong-ui-entity-base-form"},{default:t.withCtx(()=>[d.value?(t.openBlock(),t.createBlock(y,{key:0,type:"form"})):u.value?(t.openBlock(),t.createBlock(x,{key:1,"action-button-text":t.unref(a)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:E},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(m.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:o.noValidate,onReset:t.withModifiers(k,["prevent"]),onSubmit:t.withModifiers(A,["prevent"])},[t.renderSlot(h.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(_,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),e.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.Teleport,{key:1,disabled:!e.actionTeleportTarget,to:e.actionTeleportTarget},[t.createElementVNode("div",jo,[t.renderSlot(h.$slots,"form-actions",{},()=>[t.createVNode(T,{appearance:"tertiary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-view-configuration`,onClick:S[0]||(S[0]=O=>C())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode(T,{appearance:"secondary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-cancel`,disabled:e.isReadonly,type:"reset",onClick:S[1]||(S[1]=O=>!!e.actionTeleportTarget&&k())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),t.createVNode(T,{appearance:"primary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-submit`,disabled:p.value,type:"submit",onClick:S[2]||(S[2]=O=>!!e.actionTeleportTarget&&A())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)])],8,["disabled","to"]))],40,vo)),t.createVNode(V,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":e.slidoutTopOffset,title:t.unref(a)("baseForm.configuration.title"),visible:g.value,onClose:S[3]||(S[3]=O=>C())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)("baseForm.configuration.message")),1),t.createVNode($,{"data-testid":"form-view-configuration-slideout-tabs",tabs:N.value},{json:t.withCtx(()=>[t.createVNode(Ee,{config:e.config,"entity-record":o.formFields,"fetcher-url":b.value,"request-method":o.editId?"put":"post"},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(Ue,{"entity-record":o.formFields},null,8,["entity-record"])]),terraform:t.withCtx(()=>[t.createVNode(Pe,{"entity-record":o.formFields,"entity-type":e.entityType},null,8,["entity-record","entity-type"])]),_:1},8,["tabs"])]),_:1},8,["offset-top","title","visible"])]),_:3})}}}),[["__scopeId","data-v-b073d014"]]),Po=["data-truncate"],qo=Y(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(e){const n=e,r=t.computed(()=>{var C;return((C=n.rowEl)==null?void 0:C.querySelector(`[data-testid="${n.keyName}"]`))||null}),i=t.computed(()=>{var C;return((C=r.value)==null?void 0:C.querySelector('[data-truncate="true"]'))||null}),o=t.computed(()=>{var E,k;const C=(E=n.rowEl)==null?void 0:E.querySelectorAll("td");return C?((k=C[0])==null?void 0:k.getAttribute("data-testid"))===n.keyName:!0}),l=t.computed(()=>o.value||n.tooltip);let a;const c=()=>{a&&(a.disconnect(),a=void 0)},s=()=>{var E,k,A;let C=((E=r.value)==null?void 0:E.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const N=window.getComputedStyle(r.value);C-=(parseFloat(N.paddingLeft)||0)+(parseFloat(N.paddingRight)||0)}f.value=((k=i.value)==null?void 0:k.getBoundingClientRect().width)||0,u.value=C,m.value=((A=d.value)==null?void 0:A.innerText)||""},d=t.ref({}),f=t.ref(0),u=t.ref(0),m=t.ref(""),p=t.computed(()=>[i.value,r.value]),g=t.watch(p,C=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(E=>{window.requestAnimationFrame(()=>{!Array.isArray(E)||!E.length||s()})});for(const E of C)E&&a.observe(E)}},{immediate:!0,flush:"post",deep:!0}),b=t.computed(()=>l.value?f.value>u.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{g()}),(C,E)=>{const k=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:d,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(k,{"max-width":"300",placement:"bottom-start",text:b.value?m.value:""},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,Po)):t.renderSlot(C.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-a3a65cac"]]),Ho={class:"toolbar-container"},Yo={key:0,class:"toolbar-button-container"},Wo={key:0,class:"hidden"},zo=Y(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},rowKey:{type:[String,Function],default:"id"},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:null},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},disablePaginationPageJump:{type:Boolean,default:void 0},disableSorting:{type:Boolean,default:void 0},paginationType:{type:String,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:""},defaultTablePreferences:{type:Object,default:null,required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:void 0}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked","state"],setup(e,{emit:n}){const r=e,i=n,{i18n:{t:o}}=L.useI18n(),l=t.computed(()=>{var y,x;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(y=r.errorMessage)==null?void 0:y.title,message:(x=r.errorMessage)==null?void 0:x.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=t.computed(()=>{const y=[];return Object.keys(r.tableHeaders).forEach(_=>{const T=r.tableHeaders[_];y.push({label:T.label??_,key:_,sortable:T.sortable??!1,hidable:T.hidable??!0})}),r.enableEntityActions&&y.push({key:"actions",hideLabel:!0}),y}),s=y=>({"data-rowid":y.id,"data-testid":y.name,...r.rowAttributes(y)}),d=t.ref({}),f=y=>{var x;return(x=d.value)==null?void 0:x.$el.querySelector(`[data-rowid="${y.id}"]`)},u=y=>{const x={"data-testid":y.headerKey,...r.cellAttributes(y)};return y.colIndex===0&&(x.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),x},m=y=>{k(y),i("state",y)},p=()=>{i("empty-state-cta-clicked"),g()},g=()=>{i("clear-search-input")},b=t.computed(()=>r.disableRowClick?void 0:(y,x)=>{i("click:row",x)}),C=y=>{i("sort",y)},{hideTableToolbar:E,handleStateChange:k}=L.useTableState(()=>r.query),{setTablePreferences:A,getTablePreferences:N}=kn(),I=t.ref(N(a.value,r.defaultTablePreferences)),h=t.computed(()=>{const y=N(a.value);return{...r.initialFetcherParams,...y}}),S=y=>{I.value=y,c.value.forEach(x=>{!("hidable"in x)||!I.value.columnVisibility||x.hidable===!1&&(I.value.columnVisibility[x.key]=!0)}),a.value&&A(a.value,y)};return(y,x)=>{const _=t.resolveComponent("KTableData"),T=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(T,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(_,{ref_key:"tableRefs",ref:d,"cache-identifier":a.value,"cell-attrs":u,"client-sort":e.enableClientSort,"empty-state-action-message":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,error:l.value.hasError,"error-state-message":l.value.message,"error-state-title":l.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:c.value,"hide-pagination":e.hidePagination,"hide-pagination-when-optional":"","hide-toolbar":e.hideToolbar??t.unref(E),"initial-fetcher-params":h.value,loading:e.isLoading,"pagination-attributes":{disablePageJump:e.disablePaginationPageJump,offset:e.paginationType==="offset"},"resize-columns":"","row-attrs":s,"row-key":e.rowKey,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":I.value,onEmptyStateActionClick:p,"onRow:click":b.value,onSort:x[0]||(x[0]=$=>C($)),onState:m,"onUpdate:tablePreferences":S},t.createSlots({toolbar:t.withCtx(()=>[t.createElementVNode("div",Ho,[t.renderSlot(y.$slots,"toolbar-filter",{},void 0,!0),y.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",Yo,[t.renderSlot(y.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)])]),"action-items":t.withCtx(({row:$})=>[t.renderSlot(y.$slots,"actions",{row:$},void 0,!0)]),_:2},[y.$slots["empty-state"]?{name:"empty-state",fn:t.withCtx(()=>[t.renderSlot(y.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,t.renderList(e.tableHeaders,($,V)=>({name:V,fn:t.withCtx(({row:O,rowValue:R})=>[t.createVNode(qo,{"key-name":String(V),"row-el":f(O),tooltip:$.tooltip},{default:t.withCtx(()=>[t.renderSlot(y.$slots,V,{row:O,rowKey:e.rowKey,rowValue:R},()=>[t.createTextVNode(t.toDisplayString(R),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(Z.AddIcon))]),key:"1"}]),1032,["cache-identifier","client-sort","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","hide-pagination","hide-toolbar","initial-fetcher-params","loading","pagination-attributes","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click"]),y.$slots["outside-actions"]&&t.unref(E)?(t.openBlock(),t.createElementBlock("div",Wo,[t.renderSlot(y.$slots,"outside-actions",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-1cdbe476"]]),Jo={key:0,class:"kong-ui-entity-delete-error"},Go={key:1,class:"description"},Qo=Y(t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=L.useI18n(),i=e,o=n,l=t.computed(()=>i.needConfirm?i.entityName:""),a=()=>{o("cancel")},c=()=>{o("proceed")};return(s,d)=>{const f=t.resolveComponent("KAlert"),u=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(u,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":l.value,title:e.title,visible:e.visible,onCancel:a,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",Jo,[t.createVNode(f,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:i.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.entityType),1)]),_:2},[i.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(i.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),i.description||s.$slots.description?(t.openBlock(),t.createElementBlock("div",Go,[t.renderSlot(s.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(i.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),[["__scopeId","data-v-4361d622"]]),Zo={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},Xo={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},ea=["fill"],ta={mask:"url(#mask0_180_20349)"},na=["fill"],pn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${Un})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",Zo,[t.createElementVNode("mask",Xo,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,ea)]),t.createElementVNode("g",ta,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,na)])]))}}),ra={key:1,class:"kong-ui-entity-filter"},ia={class:"kong-ui-entity-filter-menu"},oa=["data-testid"],aa=["onClick","onKeydown"],la={class:"menu-item-indicator"},ca={class:"menu-item-body"},sa=["for"],da={class:"menu-item-buttons"},ua={class:"filter-clear-button-container"},fa=Y(t.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:n}){const{i18n:{t:r}}=L.useI18n(),i=e,o=n,l=t.ref(!1),a=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const N=[];return new URLSearchParams(i.modelValue).forEach((I,h)=>{I!==""&&N.push(h)}),N}),d=t.computed(()=>{const N=i.config.fields;return Object.keys(N).filter(I=>{var h;return(h=N==null?void 0:N[I])==null?void 0:h.searchable}).map(I=>({label:N[I].label||I,value:I,expanded:!1}))});t.watch(()=>i.modelValue,N=>{a.value={},new URLSearchParams(N).forEach((I,h)=>{a.value[h]=I})});const f=()=>{l.value=!l.value},u=N=>{c.value.has(N)?c.value.delete(N):c.value.add(N)},m=N=>{o("update:modelValue",N)},p=()=>{m("")},g=N=>`filter-${N}`,b=N=>{var I,h;return(((h=(I=i.config.schema)==null?void 0:I[N])==null?void 0:h.values)??[]).map(S=>({value:S,label:S}))},C=N=>{var I,h;return((h=(I=i.config.schema)==null?void 0:I[N])==null?void 0:h.type)??"text"},E=N=>{a.value={...a.value,[N]:""},A()},k=()=>{a.value={},A(!0)},A=(N=!1)=>{const I=Object.keys(a.value).reduce((h,S)=>(a.value[S]&&(h[S]=`${a.value[S]}`),h),{});N&&(l.value=!1),o("update:modelValue",new URLSearchParams(I).toString())};return(N,I)=>{const h=t.resolveComponent("KInput"),S=t.resolveComponent("KButton"),y=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(h,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":m},{before:t.withCtx(()=>[t.createVNode(pn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(Z.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:p},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",ra,[t.createVNode(S,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(pn),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("filter.filterButtonText"))+" "+t.toDisplayString(s.value.length>0?`(${s.value.length})`:""),1)]),_:1}),t.withDirectives(t.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:f},null,512),[[t.vShow,l.value]]),t.withDirectives(t.createElementVNode("div",ia,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,x=>{var _,T;return t.openBlock(),t.createElementBlock("div",{key:x.value,class:"kong-ui-entity-filter-menu-item","data-testid":x.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(x.value)}]),role:"button",tabindex:"0",onClick:$=>u(x.value),onKeydown:t.withKeys($=>u(x.value),["enter"])},[t.createTextVNode(t.toDisplayString(x.label)+" ",1),t.withDirectives(t.createElementVNode("span",la,null,512),[[t.vShow,s.value.includes(x.value)]]),t.createVNode(t.unref(Z.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(x.value)}]),color:t.unref(qn)},null,8,["class","color"])],42,aa),t.withDirectives(t.createElementVNode("div",ca,[t.createElementVNode("label",{class:"menu-item-label",for:g(x.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,sa),((T=(_=e.config.schema)==null?void 0:_[x.value])==null?void 0:T.type)==="select"?(t.openBlock(),t.createBlock(y,{key:0,id:g(x.value),modelValue:a.value[x.value],"onUpdate:modelValue":$=>a.value[x.value]=$,items:b(x.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","items","placeholder"])):(t.openBlock(),t.createBlock(h,{key:1,id:g(x.value),modelValue:a.value[x.value],"onUpdate:modelValue":$=>a.value[x.value]=$,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:C(x.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(x.value)]]),t.withDirectives(t.createElementVNode("div",da,[t.createVNode(S,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:I[0]||(I[0]=$=>A(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(S,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:$=>E(x.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:2},1032,["onClick"])],512),[[t.vShow,c.value.has(x.value)]])],8,oa)}),128)),t.createElementVNode("div",ua,[t.createVNode(S,{appearance:"tertiary",size:"small",onClick:k},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-d1bb74d1"]]),pa=t.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18n:{t:r},i18nT:i}=L.useI18n(),o=e,l=n,a=t.ref(!1),c=t.computed(()=>o.action==="enable"?r("toggleModal.enable.title",{entityType:o.entityType}):r("toggleModal.disable.title",{entityType:o.entityType})),s=t.computed(()=>o.action==="enable"?r("toggleModal.enable.confirmText"):r("toggleModal.disable.confirmText")),d=()=>l("cancel"),f=async()=>{if(o.onConfirm){a.value=!0;try{await o.onConfirm(),l("proceed")}catch(u){console.error(u)}finally{a.value=!1}}};return(u,m)=>{const p=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(p,{"action-button-disabled":a.value,"action-button-text":s.value,"data-testid":`${e.entityType}-${e.entityId}-toggle-prompt`,title:c.value,visible:e.visible,onCancel:d,onProceed:f},{default:t.withCtx(()=>[t.createVNode(t.unref(i),{keypath:`toggleModal.${o.action}.message`,scope:"global"},{entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.entityType),1)]),entityName:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(e.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),ma=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),i=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(o,l)=>i.value?t.renderSlot(o.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}});for(var v=[],qe=0;qe<256;++qe)v.push((qe+256).toString(16).slice(1));function ha(e,n=0){return(v[e[n+0]]+v[e[n+1]]+v[e[n+2]]+v[e[n+3]]+"-"+v[e[n+4]]+v[e[n+5]]+"-"+v[e[n+6]]+v[e[n+7]]+"-"+v[e[n+8]]+v[e[n+9]]+"-"+v[e[n+10]]+v[e[n+11]]+v[e[n+12]]+v[e[n+13]]+v[e[n+14]]+v[e[n+15]]).toLowerCase()}var ke,ga=new Uint8Array(16);function ya(){if(!ke&&(ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ke(ga)}var ba=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const mn={randomUUID:ba};function Ca(e,n,r){if(mn.randomUUID&&!n&&!e)return mn.randomUUID();e=e||{};var i=e.random||(e.rng||ya)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,ha(i)}const ka=["aria-labelledby"],xa={class:"form-section-wrapper"},Sa={key:1,class:"form-section-description"},wa={key:2,class:"form-section-footer"},Aa={class:"form-section-content"},_a=Y(t.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(e){const n=t.useSlots(),r=Ca();return(i,o)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",xa,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Sa,[t.renderSlot(i.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),t.unref(n).footer?(t.openBlock(),t.createElementBlock("div",wa,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Aa,[t.renderSlot(i.$slots,"default",{},void 0,!0)])])],10,ka))}}),[["__scopeId","data-v-b1f74200"]]),Ba={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Ea={key:0,class:"deleted-entity"},Ta={key:1},$a=["onClick"],Na=Y(t.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,r=t.ref(),{isTruncated:i}=L.useTruncationDetector(r),{i18n:{t:o}}=L.useI18n(),l=o("global.actions.copyId"),a=t.ref(l),c=t.computed(()=>n.entityLinkData.deleted??!1),s=t.computed(()=>{var u;return(u=n.entityLinkData.id)!=null&&u.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),d=t.computed(()=>{var u;return`${(u=s.value)==null?void 0:u.toString().slice(0,5)} (deleted)`}),f=async u=>{await u(s.value||"")&&(a.value=o("global.actions.copyToClipboard"),setTimeout(()=>{a.value=l},1800))};return(u,m)=>{const p=t.resolveComponent("KTooltip"),g=t.resolveComponent("KExternalLink"),b=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ba,[c.value?(t.openBlock(),t.createElementBlock("div",Ea,t.toDisplayString(d.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(g,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(p,{text:t.unref(i)&&e.entityLinkData.label||""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:r,class:"entity-link-label"},t.toDisplayString(e.entityLinkData.label),513)]),_:1},8,["text"])]),_:1},8,["hide-icon","href","target"])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ta,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(p,{key:a.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:a.value},{default:t.withCtx(()=>[t.createVNode(b,null,{default:t.withCtx(({copyToClipboard:C})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(E=>f(C),["stop"])},[t.createVNode(t.unref(Z.CopyIcon),{class:"copy-icon",color:t.unref(Hn),"data-testid":"copy-id",size:t.unref(Wn)},null,8,["color","size"])],8,$a)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-96efdfa5"]]),Ia={class:"kong-ui-public-entity-empty-state"},Fa={class:"entity-empty-state-content"},Oa={key:0,class:"empty-state-image"},La={key:1,class:"entity-empty-state-title"},Da={key:2,class:"entity-empty-state-description"},Va={key:3,class:"entity-empty-state-pricing"},Ra={key:0,class:"entity-empty-state-message"},Ka={key:1,class:"entity-empty-state-action"},Ma={key:2,class:"entity-empty-state-card-container"},va={key:0,class:"feature-icon"},ja={class:"card-header"},Ua=["title"],Pa={key:3,class:"entity-empty-state-bottom-container"},qa=Y(t.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:e=>Se.includes(e)},title:{type:String,default:""},description:{type:String,default:""},pricing:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},actionButtonText:{type:String,default:""},learnMore:{type:Boolean,default:!1},features:{type:Array,default:()=>[]}},emits:["click:create","click:learn-more"],setup(e){const n=e,{i18n:{t:r}}=L.useI18n(),i=t.ref(!1),o=t.computed(()=>i.value&&!!n.actionButtonText),l=t.computed(()=>Se.includes(n.appearance)?n.appearance:["primary",n.appearance]);return t.onBeforeMount(async()=>{i.value=await n.canCreate()}),(a,c)=>{const s=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",Ia,[t.createElementVNode("div",Fa,[a.$slots.image?(t.openBlock(),t.createElementBlock("div",Oa,[t.renderSlot(a.$slots,"image",{},void 0,!0)])):t.createCommentVNode("",!0),e.title||a.$slots.title?(t.openBlock(),t.createElementBlock("div",La,[t.createElementVNode("h1",{class:t.normalizeClass(l.value)},[t.renderSlot(a.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)],2)])):t.createCommentVNode("",!0),e.description||a.$slots.default?(t.openBlock(),t.createElementBlock("div",Da,[t.renderSlot(a.$slots,"default",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),e.pricing||a.$slots.pricing?(t.openBlock(),t.createElementBlock("div",Va,[t.createElementVNode("p",null,[t.createElementVNode("b",null,t.toDisplayString(t.unref(r)("emptyState.pricingTitle")),1),c[2]||(c[2]=t.createTextVNode()),t.renderSlot(a.$slots,"pricing",{},()=>[t.createTextVNode(t.toDisplayString(e.pricing),1)],!0)])])):t.createCommentVNode("",!0)]),a.$slots.message?(t.openBlock(),t.createElementBlock("div",Ra,[t.renderSlot(a.$slots,"message",{},void 0,!0)])):t.createCommentVNode("",!0),o.value||e.learnMore||a.$slots.actions?(t.openBlock(),t.createElementBlock("div",Ka,[t.renderSlot(a.$slots,"actions",{},()=>[o.value?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:0,appearance:"primary","data-testid":"entity-create-button",size:e.appearance==="secondary"?"medium":"large",onClick:c[0]||(c[0]=d=>a.$emit("click:create"))},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.AddIcon)),t.createTextVNode(" "+t.toDisplayString(e.actionButtonText),1)]),_:1},8,["size"])):t.createCommentVNode("",!0),e.learnMore?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:1,appearance:"secondary","data-testid":"entity-learn-more-button",size:e.appearance==="secondary"?"medium":"large",onClick:c[1]||(c[1]=d=>a.$emit("click:learn-more"))},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.BookIcon),{decorative:""}),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("emptyState.learnMore")),1)]),_:1},8,["size"])):t.createCommentVNode("",!0)],!0)])):t.createCommentVNode("",!0),e.features.length?(t.openBlock(),t.createElementBlock("div",Ma,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.features,(d,f)=>(t.openBlock(),t.createBlock(s,{key:d,class:"entity-empty-state-card"},{title:t.withCtx(()=>[a.$slots[`feature-${f}-icon`]?(t.openBlock(),t.createElementBlock("div",va,[t.renderSlot(a.$slots,`feature-${f}-icon`,{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",ja,t.toDisplayString(d.title),1)]),default:t.withCtx(()=>[t.createElementVNode("div",{title:d.description},t.toDisplayString(d.description),9,Ua)]),_:2},1024))),128))])):t.createCommentVNode("",!0),a.$slots.bottom?(t.openBlock(),t.createElementBlock("div",Pa,[t.renderSlot(a.$slots,"bottom",{},void 0,!0)])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-b6376b66"]]),Ha={key:1},Ya=t.defineComponent({__name:"TableTags",props:{tags:{type:[Array,String],default:()=>[]},tagMaxWidth:{type:String,default:void 0}},setup(e){const n=e,r=t.computed(()=>{if(Array.isArray(n.tags))return n.tags;if(typeof n.tags=="string")try{const i=JSON.parse(n.tags);return Array.isArray(i)?i:[]}catch{return[]}return[]});return(i,o)=>{var l;return((l=r.value)==null?void 0:l.length)>0?(t.openBlock(),t.createBlock(t.unref(oe.KTruncate),{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,a=>(t.openBlock(),t.createBlock(t.unref(oe.KBadge),{key:a,"max-width":e.tagMaxWidth,onClick:o[0]||(o[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a),1)]),_:2},1032,["max-width"]))),128))]),_:1})):(t.openBlock(),t.createElementBlock("span",Ha,"-"))}}}),{useAxios:Wa,useDeleteUrlBuilder:za,useErrors:Ja,useExternalLinkCreator:Ga,useFetchUrlBuilder:Qa,useFetcher:Za,useFetcherCacheKey:Xa,useDebouncedFilter:el,useStringHelpers:tl,useHelpers:nl,useGatewayFeatureSupported:rl,useTruncationDetector:il,useValidators:ol,useSchemaProvider:al,useTableState:ll}=L;B.Appearances=Se,B.ConfigCardDisplay=fn,B.ConfigCardItem=Be,B.ConfigurationSchemaSection=q,B.ConfigurationSchemaType=F,B.EntityBaseConfigCard=Mo,B.EntityBaseForm=Uo,B.EntityBaseFormType=ze,B.EntityBaseTable=zo,B.EntityDeleteModal=Qo,B.EntityEmptyState=qa,B.EntityFilter=fa,B.EntityFormSection=_a,B.EntityLink=Na,B.EntityToggleModal=pa,B.EntityTypes=We,B.FetcherStatus=z,B.InternalLinkItem=ct,B.JsonCodeBlock=Ee,B.PermissionsWrapper=ma,B.SupportedEntityType=fe,B.SupportedEntityTypesArray=ae,B.TableTags=Ya,B.TerraformCodeBlock=Pe,B.YamlCodeBlock=Ue,B.useAxios=Wa,B.useDebouncedFilter=el,B.useDeleteUrlBuilder=za,B.useErrors=Ja,B.useExternalLinkCreator=Ga,B.useFetchUrlBuilder=Qa,B.useFetcher=Za,B.useFetcherCacheKey=Xa,B.useGatewayFeatureSupported=rl,B.useHelpers=nl,B.useSchemaProvider=al,B.useStringHelpers=tl,B.useTableState=ll,B.useTruncationDetector=il,B.useValidators=ol,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{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-a19fafa9]{align-items:center;border-bottom:var(--eaabfd90);box-sizing:border-box;display:var(--ea5e332a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-a19fafa9]{box-sizing:border-box;padding-right:16px;width:var(--f719ead6)}.config-card-details-row .config-card-details-label label[data-v-a19fafa9]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-a19fafa9]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-a19fafa9]{min-width:0}.config-card-details-row .config-card-details-value[data-v-a19fafa9]{box-sizing:border-box;width:var(--f7155f20)}.config-card-details-row .config-card-details-value .truncated[data-v-a19fafa9]{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-a19fafa9]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-a19fafa9] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-a19fafa9]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-a19fafa9]{margin-right:4px}.config-card-details-row[data-v-a19fafa9] .k-label{margin-bottom:0}.config-card-details-row[data-v-a19fafa9] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-a19fafa9] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{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-be491a0e]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-be491a0e]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-be491a0e]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-be491a0e] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-be491a0e]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-e8247cfa]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-e8247cfa] .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-e8247cfa] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-e8247cfa] .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-e8247cfa] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-e8247cfa]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-e8247cfa] .k-button:last-of-type,.form-actions[data-v-e8247cfa] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.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-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{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-10fa27a5]{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-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{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-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-48ae9c8c]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-48ae9c8c]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-48ae9c8c]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-48ae9c8c]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-48ae9c8c]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-48ae9c8c]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-48ae9c8c]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-48ae9c8c]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-48ae9c8c] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-48ae9c8c]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-48ae9c8c]{width:640px}}
1
+ .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{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-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-5f9aa0e8]{align-items:center;border-bottom:var(--2f90d7f7);box-sizing:border-box;display:var(--668a792a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-5f9aa0e8]{box-sizing:border-box;padding-right:16px;width:var(--5bc9ad14)}.config-card-details-row .config-card-details-label label[data-v-5f9aa0e8]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-5f9aa0e8]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-5f9aa0e8]{min-width:0}.config-card-details-row .config-card-details-value[data-v-5f9aa0e8]{box-sizing:border-box;width:var(--5bc5215e)}.config-card-details-row .config-card-details-value .truncated[data-v-5f9aa0e8]{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-5f9aa0e8]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-5f9aa0e8] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-5f9aa0e8]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-5f9aa0e8]{margin-right:4px}.config-card-details-row[data-v-5f9aa0e8] .k-label{margin-bottom:0}.config-card-details-row[data-v-5f9aa0e8] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-5f9aa0e8] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{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-69a1e1d7]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-69a1e1d7]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-69a1e1d7]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-69a1e1d7] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-69a1e1d7]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-b073d014]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-b073d014] .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-b073d014] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-b073d014] .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-b073d014] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-b073d014]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-b073d014] .k-button:last-of-type,.form-actions[data-v-b073d014] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-1cdbe476]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-1cdbe476]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-1cdbe476]{display:none}.kong-ui-entity-base-table[data-v-1cdbe476] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.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-d1bb74d1]{width:100%}.kong-ui-entity-filter-clear[data-v-d1bb74d1]{cursor:pointer}.kong-ui-entity-filter[data-v-d1bb74d1]{display:flex;position:relative}.kong-ui-entity-filter[data-v-d1bb74d1] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-d1bb74d1] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-d1bb74d1]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-d1bb74d1]{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-d1bb74d1]{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-d1bb74d1]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-d1bb74d1]{color:#232633}.menu-item-expand-icon[data-v-d1bb74d1]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-d1bb74d1]{transform:rotate(180deg)}.menu-item-indicator[data-v-d1bb74d1]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-d1bb74d1]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-d1bb74d1] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-d1bb74d1] .k-input{width:100%}.menu-item-body[data-v-d1bb74d1] .k-select-input .input{font-size:12px}.menu-item-body[data-v-d1bb74d1] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-d1bb74d1]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-d1bb74d1]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-d1bb74d1]{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-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-b6376b66]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-b6376b66]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-b6376b66]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-b6376b66]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-b6376b66]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-b6376b66]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-b6376b66]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-b6376b66]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-b6376b66]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{width:640px}}
@@ -1 +1 @@
1
- {"version":3,"file":"EntityBaseTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-base-table/EntityBaseTable.vue"],"names":[],"mappings":"AAobA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAGtI,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EAEf,eAAe,EACf,iBAAiB,EAClB,MAAM,aAAa,CAAA;AA8ZpB,iBAAS,cAAc;;;;;UAsL+D,GAAG;kCAElD,GAAG;kCACH,GAAG;+BACN,GAAG;;;YACT,GAAG;mCACO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAzmB3C,8BArM8F;;;;;;8CAqM9F,8BAtLO;;;;;;;;;0CAsLP,8BA5KqE;;2EA4KrE,8BAvKY;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2nBkgB,GAAG,8CAA+C,GAAE,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+JtnB,OAAO,IAA6B;EAEjD;AA6JD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;cAeD,QAAQ,CAAC,gBAAgB,CAAC;;;;;cAMxB,QAAQ,CAAC,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;;;;;;;;cAQvE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC;;;;cAI5C,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cA6B5C,QAAQ,CAAC,CAAC,KAAK,EAAE,wBAAwB,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;;;;;;;;cAUtE,QAAQ,CAAC,iBAAiB,CAAC;;;;cAOjB,QAAQ,CAAC,MAAM,GAAG,iBAAiB,CAAC;;;;;;;;;;;;cAY9C,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC;;;;cAK5B,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAK9D,QAAQ,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAG/E,iGAAiG;;;;;IAKjG,wEAAwE;;cAEtD,QAAQ,CAAC,gBAAgB,CAAC;;;;;;;;;cAS1B,QAAQ,CAAC,SAAS,CAAC;;;IAGrC,2GAA2G;;;;;;;;;;;;;;;;;;;;;cA5GzF,QAAQ,CAAC,gBAAgB,CAAC;;;;;cAMxB,QAAQ,CAAC,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;;;;;;;;cAQvE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC;;;;cAI5C,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cA6B5C,QAAQ,CAAC,CAAC,KAAK,EAAE,wBAAwB,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;;;;;;;;cAUtE,QAAQ,CAAC,iBAAiB,CAAC;;;;cAOjB,QAAQ,CAAC,MAAM,GAAG,iBAAiB,CAAC;;;;;;;;;;;;cAY9C,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC;;;;cAK5B,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAK9D,QAAQ,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAG/E,iGAAiG;;;;;IAKjG,wEAAwE;;cAEtD,QAAQ,CAAC,gBAAgB,CAAC;;;;;;;;;cAS1B,QAAQ,CAAC,SAAS,CAAC;;;IAGrC,2GAA2G;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAtGtE,sBAAsB,KAAK,OAAO,CAAC,eAAe,CAAC;;;;;iCAyCnD,wBAAwB,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;;;;;6BAkCjD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;yBAK9C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;4EAoC9E,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"EntityBaseTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-base-table/EntityBaseTable.vue"],"names":[],"mappings":"AAobA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAGtI,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EAEf,eAAe,EACf,iBAAiB,EAClB,MAAM,aAAa,CAAA;AA8ZpB,iBAAS,cAAc;;;;;UAsL+D,GAAG;kCAElD,GAAG;kCACH,GAAG;+BACN,GAAG;;;YACT,GAAG;mCACO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAzmB3C,8BArM8F;;;;;;8CAqM9F,8BAtLO;;;;;;;;;0CAsLP,8BA5K0E;;2EA4K1E,8BAvKiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2nB4gB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+JroB,OAAO,IAA6B;EAEjD;AA6JD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;cAeD,QAAQ,CAAC,gBAAgB,CAAC;;;;;cAMxB,QAAQ,CAAC,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;;;;;;;;cAQvE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC;;;;cAI5C,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cA6B5C,QAAQ,CAAC,CAAC,KAAK,EAAE,wBAAwB,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;;;;;;;;cAUtE,QAAQ,CAAC,iBAAiB,CAAC;;;;cAOjB,QAAQ,CAAC,MAAM,GAAG,iBAAiB,CAAC;;;;;;;;;;;;cAY9C,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC;;;;cAK5B,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAK9D,QAAQ,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAG/E,iGAAiG;;;;;IAKjG,wEAAwE;;cAEtD,QAAQ,CAAC,gBAAgB,CAAC;;;;;;;;;cAS1B,QAAQ,CAAC,SAAS,CAAC;;;IAGrC,2GAA2G;;;;;;;;;;;;;;;;;;;;;cA5GzF,QAAQ,CAAC,gBAAgB,CAAC;;;;;cAMxB,QAAQ,CAAC,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;;;;;;;;cAQvE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC;;;;cAI5C,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cA6B5C,QAAQ,CAAC,CAAC,KAAK,EAAE,wBAAwB,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;;;;;;;;cAUtE,QAAQ,CAAC,iBAAiB,CAAC;;;;cAOjB,QAAQ,CAAC,MAAM,GAAG,iBAAiB,CAAC;;;;;;;;;;;;cAY9C,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC;;;;cAK5B,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAK9D,QAAQ,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAG/E,iGAAiG;;;;;IAKjG,wEAAwE;;cAEtD,QAAQ,CAAC,gBAAgB,CAAC;;;;;;;;;cAS1B,QAAQ,CAAC,SAAS,CAAC;;;IAGrC,2GAA2G;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAtGtE,sBAAsB,KAAK,OAAO,CAAC,eAAe,CAAC;;;;;iCAyCnD,wBAAwB,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;;;;;6BAkCjD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;yBAK9C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;4EAoC9E,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EntityBaseTableCell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-base-table/EntityBaseTableCell.vue"],"names":[],"mappings":"AA4IA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AA+HnC,iBAAS,cAAc;;yBA+CM,GAAG;yBACH,GAAG;;;;;WAUlB,OAAO,IAA6B;EAEjD;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;cAWO,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;;;;;;;;;;;;;cAA5B,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;;;;;;;;;4EAQtD,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"EntityBaseTableCell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-base-table/EntityBaseTableCell.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAgInC,iBAAS,cAAc;;yBA+CM,GAAG;yBACH,GAAG;;;;;WAUlB,OAAO,IAA6B;EAEjD;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;cAWO,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;;;;;;;;;;;;;cAA5B,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;;;;;;;;;4EAQtD,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EntityFilter.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-filter/EntityFilter.vue"],"names":[],"mappings":"AAgYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAInC,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;;;cAoe7D,QAAQ,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;;;;;;;;;;;;;;;cAAzD,QAAQ,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;;;;;;;;;;;;;;;;AAX7E,wBAwBG"}
1
+ {"version":3,"file":"EntityFilter.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-filter/EntityFilter.vue"],"names":[],"mappings":"AAiYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAInC,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;;;cAqe7D,QAAQ,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;;;;;;;;;;;;;;;cAAzD,QAAQ,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;;;;;;;;;;;;;;;;AAX7E,wBAwBG"}
@@ -1 +1 @@
1
- {"version":3,"file":"entity-base-table.d.ts","sourceRoot":"","sources":["../../../src/types/entity-base-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAE9D,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,2DAA2D;IAC3D,4BAA4B,CAAC,EAAE,MAAM,CAAA;IACrC,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,0BAA2B,SAAQ,iBAAiB;IACnE,2DAA2D;IAC3D,4BAA4B,CAAC,EAAE,MAAM,CAAA;IACrC,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wCAAwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,GAAG,EAAE,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACrB,CAAA;CACF;AAED,oBAAY,aAAa;IACvB,WAAW,IAAA;IACX,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,SAAS,IAAA;IACT,SAAS,IAAA;IACT,KAAK,IAAA;CACN;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,UAAU,wBAAwB;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG,wBAAwB,CAAA;AAE/E,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,KAAK,GAAG,MAAM,CAAA;CAChC;AAED,MAAM,MAAM,iBAAiB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAA;AAE3E,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAClE,KAAK,EAAE,MAAM,CAAA;CACd"}
1
+ {"version":3,"file":"entity-base-table.d.ts","sourceRoot":"","sources":["../../../src/types/entity-base-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAE9D,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,2DAA2D;IAC3D,4BAA4B,CAAC,EAAE,MAAM,CAAA;IACrC,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,0BAA2B,SAAQ,iBAAiB;IACnE,2DAA2D;IAC3D,4BAA4B,CAAC,EAAE,MAAM,CAAA;IACrC,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wCAAwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,GAAG,EAAE,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACrB,CAAA;CACF;AAED,oBAAY,aAAa;IACvB,WAAW,IAAA;IACX,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,SAAS,IAAA;IACT,SAAS,IAAA;IACT,KAAK,IAAA;CACN;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,aAAa,CAAA;IACrB,QAAQ,CAAC,EAAE,eAAe,CAAA;IAC1B,KAAK,CAAC,EAAE,GAAG,CAAA;CACZ;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,UAAU,wBAAwB;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG,wBAAwB,CAAA;AAE/E,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,KAAK,GAAG,MAAM,CAAA;CAChC;AAED,MAAM,MAAM,iBAAiB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAA;AAE3E,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,UAAU,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAClE,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -1 +1 @@
1
- {"version":3,"file":"entity-empty-state.d.ts","sourceRoot":"","sources":["../../../src/types/entity-empty-state.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,WAAW,CAAA;AAErD,eAAO,MAAM,WAAW,UAGvB,CAAA"}
1
+ {"version":3,"file":"entity-empty-state.d.ts","sourceRoot":"","sources":["../../../src/types/entity-empty-state.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,WAAW,CAAA;AAErD,eAAO,MAAM,WAAW,UAGvB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"entity-link.d.ts","sourceRoot":"","sources":["../../../src/types/entity-link.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
1
+ {"version":3,"file":"entity-link.d.ts","sourceRoot":"","sources":["../../../src/types/entity-link.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-shared",
3
- "version": "3.22.3",
3
+ "version": "3.22.4",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-shared.umd.js",
6
6
  "module": "./dist/entities-shared.es.js",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "compare-versions": "^6.1.1",
56
- "@kong-ui-public/core": "^1.10.7"
56
+ "@kong-ui-public/core": "^1.10.8"
57
57
  },
58
58
  "scripts": {
59
59
  "dev": "cross-env USE_SANDBOX=true vite",