@kong-ui-public/entities-shared 3.10.4 → 3.10.5
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.
|
@@ -4122,8 +4122,7 @@ const hl = ["aria-labelledby"], gl = { class: "form-section-wrapper" }, yl = {
|
|
|
4122
4122
|
props: {
|
|
4123
4123
|
/** The tags to display in the table */
|
|
4124
4124
|
tags: {
|
|
4125
|
-
type: [Array, String]
|
|
4126
|
-
required: !0
|
|
4125
|
+
type: [Array, String]
|
|
4127
4126
|
},
|
|
4128
4127
|
tagMaxWidth: {
|
|
4129
4128
|
type: String,
|
|
@@ -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",So,[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)])}}}),Eo={key:0,class:"config-card-display-form"},Bo=["data-testid"],To={key:0,class:"config-card-prop-section-title"},sn=Y(t.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:e=>oe.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:""}},setup(e){const n=e,r=t.useSlots(),{i18n:{t:i}}=O.useI18n(),o=a=>!!(a.tooltip||r[`${a.key}-label-tooltip`]),l=t.computed(()=>{if(!n.record)return n.record;const a=JSON.parse(JSON.stringify(n.record));return delete a.created_at,delete a.updated_at,a});return(a,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.format==="structured"?(t.openBlock(),t.createElementBlock("div",Eo,[(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",To,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(Se,{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,Bo))),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(je,{key:2,"entity-record":l.value},null,8,["entity-record"])):t.createCommentVNode("",!0),e.format==="terraform"&&l.value?(t.openBlock(),t.createBlock(Ue,{key:3,"entity-record":l.value,"entity-type":n.entityType},null,8,["entity-record","entity-type"])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d15be7fe"]]),No={class:"config-card-title","data-testid":"config-card-title"},Io={class:"config-card-actions"},$o=["href"],Fo={class:"config-card-details-section"},Oo=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=>oe.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:""},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 w;const r=n,i=e,{i18n:{t:o}}=O.useI18n(),{getMessageFromError:l}=O.useErrors(),{convertKeyToTitle:a}=O.useStringHelpers();O.useSubSchema(i.pluginConfigKey);const{axiosInstance:c}=O.useAxios((w=i.config)==null?void 0:w.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=m=>{d.value=m==null?void 0:m.value},u={id:{type:F.ID,label:o("baseConfigCard.commonFields.id_label"),order:0,section:H.Basic},name:{order:1,section:H.Basic},enabled:{type:F.BadgeStatus,order:2,section:H.Basic},updated_at:{type:F.Date,label:o("baseConfigCard.commonFields.updated_at_label"),order:3,section:H.Basic},created_at:{type:F.Date,label:o("baseConfigCard.commonFields.created_at_label"),order:4,section:H.Basic},tags:{type:F.BadgeTag,order:-1,section:H.Basic}},h=t.ref(!1),p=t.ref(!1),y=t.ref(""),b=t.ref({}),C=t.computed(()=>{var E,S,B;if(!b.value)return[];const m=[],g=Object.keys(b.value).length;for(const $ in b.value){const I=(S=(E=i.configSchema)==null?void 0:E[$])==null?void 0:S.order,R=(B=u[$])==null?void 0:B.order;let v=g;(R||R===0)&&(v=R===-1?g+1:R),I&&(v=I===-1?g+1:I),m.push([$,v])}return m.sort(function($,I){return $[1]-I[1]}),m.map($=>{var xe,fn;const I=$[0],R=(xe=b.value)==null?void 0:xe[I],v=((fn=i.configSchema)==null?void 0:fn[I])||{},M=u[I];return{key:I,value:R,hidden:v.hidden||!1,type:v.type??((M==null?void 0:M.type)||F.Text),label:v.label??((M==null?void 0:M.label)||a(I)),tooltip:v.tooltip??((M==null?void 0:M.tooltip)||void 0),section:v.section??((M==null?void 0:M.section)||H.Advanced)}}).filter($=>!$.hidden&&$.key!==i.pluginConfigKey)}),A=t.computed(()=>{var S,B;if(!b.value||!i.pluginConfigKey)return[];const m=b.value[i.pluginConfigKey]||{},g=Object.keys(m).length,E=[];for(const $ in m){const I=(B=(S=i.pluginConfigSchema)==null?void 0:S[$])==null?void 0:B.order,R=m[$];let v=R!=null&&R!==""?g-1:g;I&&(v=I===-1?g+1:I),E.push([$,v])}return E.sort(function($,I){return $[1]-I[1]}),E.map($=>{var M;const I=$[0],R=m[I],v=((M=i.pluginConfigSchema)==null?void 0:M[I])||{};return{key:I,value:R,hidden:v.hidden||!1,type:v.type??F.Text,label:v.label??a(I),tooltip:v.tooltip??void 0,section:H.Plugin}}).filter($=>!$.hidden)}),x=t.computed(()=>{var m,g,E,S;return{basic:(m=C.value)==null?void 0:m.filter(B=>B.section===H.Basic),advanced:(g=C.value)==null?void 0:g.filter(B=>B.section===H.Advanced),plugin:(S=A.value)==null?void 0:S.concat((E=C.value)==null?void 0:E.filter(B=>B.section===H.Plugin))}}),T=t.computed(()=>{const m=[];return x.value.basic.length&&m.push("basic"),x.value.advanced.length&&m.push("advanced"),x.value.plugin.length&&m.push("plugin"),m}),N=t.computed(()=>{var g,E;let m=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((g=i.config)==null?void 0:g.controlPlaneId)||""):i.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(E=i.config)!=null&&E.workspace?`/${i.config.workspace}`:"")),m=m.replace(/{id}/gi,i.config.entityId),m});return t.watch(h,m=>{r("loading",m)},{immediate:!0}),t.onBeforeMount(async()=>{p.value=!1,h.value=!0;try{const{data:m}=await c.get(N.value);if(i.dataKey)if(typeof m[i.dataKey]<"u")b.value={...m[i.dataKey]};else throw new Error(o("errors.dataKeyUndefined",{dataKey:i.dataKey}));else b.value={...m};Object.keys(i.configSchema).filter(E=>i.configSchema[E].forceShow).forEach(E=>{b.value&&typeof b.value[E]>"u"&&(b.value[E]=null)}),r("fetch:success",m)}catch(m){const g=l(m);y.value=g.startsWith("code")?o("baseConfigCard.errors.load"):g,p.value=!0,r("fetch:error",m)}finally{h.value=!1}}),(m,g)=>{const E=t.resolveComponent("KLabel"),S=t.resolveComponent("KSelect"),B=t.resolveComponent("KButton"),$=t.resolveComponent("KSkeleton"),I=t.resolveComponent("KEmptyState"),R=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(R,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",Io,[t.renderSlot(m.$slots,"actions",{},void 0,!0),t.createVNode(E,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(S,{"data-testid":"select-config-format",items:s,onChange:f}),e.configCardDoc?(t.openBlock(),t.createBlock(B,{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(ie.BookIcon),{size:t.unref(Un)},null,8,["size"])],8,$o)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[h.value?(t.openBlock(),t.createBlock($,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):p.value?(t.openBlock(),t.createBlock(I,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(y.value),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",Fo,[t.createVNode(sn,{config:e.config,"entity-type":e.entityType,"fetcher-url":N.value,format:d.value,"prop-list-types":T.value,"property-collections":x.value,record:b.value},t.createSlots({_:2},[t.renderList(Object.keys(m.$slots),v=>({name:v,fn:t.withCtx(({row:M,rowValue:xe})=>[t.renderSlot(m.$slots,v,{row:M,rowValue:xe},void 0,!0)])}))]),1032,["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",No,[t.renderSlot(m.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-7ef5c755"]]),vo=["novalidate"],Lo={class:"form-actions","data-testid":"form-actions"},Do=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=>oe.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"}},emits:["loading","fetch:success","fetch:error","submit","cancel"],setup(e,{emit:n}){var N;const r=n,i=e,o=pn.useRouter(),{i18n:{t:l}}=O.useI18n(),{getMessageFromError:a}=O.useErrors(),{axiosInstance:c}=O.useAxios((N=i.config)==null?void 0:N.axiosRequestConfig),s=t.ref(!1),d=t.computed(()=>!!i.editId),f=t.ref(!1),u=t.ref(""),h=t.computed(()=>i.canSubmit===!1||i.isReadonly),p=t.ref(!1),y=t.computed(()=>{var m,g;let w=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?w=w.replace(/{controlPlaneId}/gi,((m=i.config)==null?void 0:m.controlPlaneId)||""):i.config.app==="kongManager"&&(w=w.replace(/\/{workspace}/gi,(g=i.config)!=null&&g.workspace?`/${i.config.workspace}`:"")),i.editId?(w=w.replace(/{id}/gi,i.editId),w):(w=w.replace(/\/{id}/gi,""),w)}),b=()=>{p.value=!p.value},C=()=>{i.config.cancelRoute?o.push(i.config.cancelRoute):A()},A=()=>{r("cancel")},x=()=>{h.value||r("submit")},T=t.ref([{title:l("baseForm.configuration.json"),hash:"#json"},{title:l("baseForm.configuration.yaml"),hash:"#yaml"}]);return i.config.app==="konnect"&&i.entityType!==ue.Other&&T.value.splice(1,0,{title:l("baseForm.configuration.terraform"),hash:"#terraform"}),t.watch(()=>s.value,w=>{r("loading",w)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{f.value=!1,s.value=!0;const{data:w}=await c.get(y.value);r("fetch:success",w)}catch(w){const m=a(w);u.value=m.startsWith("code")?l("baseForm.errors.edit"):m,f.value=!0,r("fetch:error",w)}finally{s.value=!1}}),(w,m)=>{const g=t.resolveComponent("KSkeleton"),E=t.resolveComponent("KEmptyState"),S=t.resolveComponent("KAlert"),B=t.resolveComponent("KButton"),$=t.resolveComponent("KTabs"),I=t.resolveComponent("KSlideout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.wrapperComponent),{class:"kong-ui-entity-base-form"},{default:t.withCtx(()=>[s.value?(t.openBlock(),t.createBlock(g,{key:0,type:"form"})):f.value?(t.openBlock(),t.createBlock(E,{key:1,"action-button-text":t.unref(l)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:C},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(u.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(A,["prevent"]),onSubmit:t.withModifiers(x,["prevent"])},[t.renderSlot(w.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(S,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),t.createElementVNode("div",Lo,[t.renderSlot(w.$slots,"form-actions",{},()=>[t.createVNode(B,{appearance:"tertiary","data-testid":`${e.entityType}-${d.value?"edit":"create"}-form-view-configuration`,onClick:m[0]||(m[0]=R=>b())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode(B,{appearance:"secondary","data-testid":`${e.entityType}-${d.value?"edit":"create"}-form-cancel`,disabled:e.isReadonly,type:"reset"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),t.createVNode(B,{appearance:"primary","data-testid":`${e.entityType}-${d.value?"edit":"create"}-form-submit`,disabled:h.value,type:"submit"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)])],40,vo)),t.createVNode(I,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":60,title:t.unref(l)("baseForm.configuration.title"),visible:p.value,onClose:m[1]||(m[1]=R=>b())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(l)("baseForm.configuration.message")),1),t.createVNode($,{"data-testid":"form-view-configuration-slideout-tabs",tabs:T.value},{json:t.withCtx(()=>[t.createVNode(Ee,{config:e.config,"entity-record":i.formFields,"fetcher-url":y.value,"request-method":i.editId?"put":"post"},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(je,{"entity-record":i.formFields},null,8,["entity-record"])]),terraform:t.withCtx(()=>[t.createVNode(Ue,{"entity-record":i.formFields,"entity-type":e.entityType},null,8,["entity-record","entity-type"])]),_:1},8,["tabs"])]),_:1},8,["title","visible"])]),_:3})}}}),[["__scopeId","data-v-6210a67a"]]),Ro=["data-truncate"],Vo=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 A,x;const C=(A=n.rowEl)==null?void 0:A.querySelectorAll("td");return C?((x=C[0])==null?void 0:x.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 A,x,T;let C=((A=r.value)==null?void 0:A.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=((x=i.value)==null?void 0:x.getBoundingClientRect().width)||0,u.value=C,h.value=((T=d.value)==null?void 0:T.innerText)||""},d=t.ref({}),f=t.ref(0),u=t.ref(0),h=t.ref(""),p=t.computed(()=>[i.value,r.value]),y=t.watch(p,C=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(A=>{window.requestAnimationFrame(()=>{!Array.isArray(A)||!A.length||s()})});for(const A of C)A&&a.observe(A)}},{immediate:!0,flush:"post",deep:!0}),b=t.computed(()=>l.value?f.value>u.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{y()}),(C,A)=>{const x=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(x,{"max-width":"300",placement:"bottom-start",text:b.value?h.value:""},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,Ro)):t.renderSlot(C.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-b252463e"]]),Ko={class:"toolbar-container"},Mo={key:0,class:"toolbar-button-container"},jo=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},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:"",required:!0},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:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:n}){const r=e,i=n,{i18n:{t:o}}=O.useI18n(),l=t.computed(()=>{var m,g;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(m=r.errorMessage)==null?void 0:m.title,message:(g=r.errorMessage)==null?void 0:g.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=m=>m.hasData||!!r.query,s=t.computed(()=>{const m=[];return Object.keys(r.tableHeaders).forEach(E=>{const S=r.tableHeaders[E];m.push({label:S.label??E,key:E,sortable:S.sortable??!1,hidable:S.hidable??!0})}),r.enableEntityActions&&m.push({key:"actions",hideLabel:!0}),m}),d=m=>({"data-rowid":m.id,"data-testid":m.name,...r.rowAttributes(m)}),f=t.ref({}),u=m=>{var g;return(g=f.value)==null?void 0:g.$el.querySelector(`[data-rowid="${m.id}"]`)},h=m=>{const g={"data-testid":m.headerKey,...r.cellAttributes(m)};return m.colIndex===0&&(g.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),g},p=()=>{i("empty-state-cta-clicked"),y()},y=()=>{i("clear-search-input")},b=t.computed(()=>r.disableRowClick?void 0:(m,g)=>{i("click:row",g)}),C=m=>{i("sort",m)},{setTablePreferences:A,getTablePreferences:x}=yn(),T=t.ref(x(a.value,r.defaultTablePreferences)),N=t.computed(()=>{const m=x(a.value);return{...r.initialFetcherParams,...m}}),w=m=>{T.value=m,s.value.forEach(g=>{!("hidable"in g)||!T.value.columnVisibility||g.hidable===!1&&(T.value.columnVisibility[g.key]=!0)}),a.value&&A(a.value,m)};return(m,g)=>{const E=t.resolveComponent("KTableData"),S=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(S,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(E,{ref_key:"tableRefs",ref:f,"cache-identifier":a.value,"cell-attrs":h,"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:s.value,"hide-pagination":e.hidePagination,"hide-pagination-when-optional":"","hide-toolbar":e.hideToolbar,"initial-fetcher-params":N.value,loading:e.isLoading,"pagination-attributes":{disablePageJump:e.disablePaginationPageJump,offset:e.paginationType==="offset"},"resize-columns":"","row-attrs":d,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":T.value,onEmptyStateActionClick:p,"onRow:click":b.value,onSort:g[0]||(g[0]=B=>C(B)),"onUpdate:tablePreferences":w},t.createSlots({toolbar:t.withCtx(({state:B})=>[t.withDirectives(t.createElementVNode("div",Ko,[t.renderSlot(m.$slots,"toolbar-filter",{},void 0,!0),m.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",Mo,[t.renderSlot(m.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,c(B)]])]),"action-items":t.withCtx(({row:B})=>[t.renderSlot(m.$slots,"actions",{row:B},void 0,!0)]),_:2},[t.renderList(e.tableHeaders,(B,$)=>({name:$,fn:t.withCtx(({row:I,rowKey:R,rowValue:v})=>[t.createVNode(Vo,{"key-name":String($),"row-el":u(I),tooltip:B.tooltip},{default:t.withCtx(()=>[t.renderSlot(m.$slots,$,{row:I,rowKey:R,rowValue:v},()=>[t.createTextVNode(t.toDisplayString(v),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(ie.AddIcon))]),key:"0"}]),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","search-input","sort-handler-function","sortable","table-preferences","onRow:click"])]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-765e475b"]]),Uo={key:0,class:"kong-ui-entity-delete-error"},Po={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}=O.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",Uo,[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",Po,[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"]]),Ho={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},Yo={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},Wo=["fill"],Jo={mask:"url(#mask0_180_20349)"},zo=["fill"],dn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${Dn})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",Ho,[t.createElementVNode("mask",Yo,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,Wo)]),t.createElementVNode("g",Jo,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,zo)])]))}}),Go={key:1,class:"kong-ui-entity-filter"},Qo={class:"kong-ui-entity-filter-menu"},Zo=["data-testid"],Xo=["onClick","onKeydown"],ea={class:"menu-item-indicator"},ta={class:"menu-item-body"},na=["for"],ra={class:"menu-item-buttons"},ia={class:"filter-clear-button-container"},oa=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}}=O.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((w,m)=>{w!==""&&N.push(m)}),N}),d=t.computed(()=>{const N=i.config.fields;return Object.keys(N).filter(w=>{var m;return(m=N==null?void 0:N[w])==null?void 0:m.searchable}).map(w=>({label:N[w].label||w,value:w,expanded:!1}))});t.watch(()=>i.modelValue,N=>{a.value={},new URLSearchParams(N).forEach((w,m)=>{a.value[m]=w})});const f=()=>{l.value=!l.value},u=N=>{c.value.has(N)?c.value.delete(N):c.value.add(N)},h=N=>{o("update:modelValue",N)},p=()=>{h("")},y=N=>`filter-${N}`,b=N=>{var w,m;return(((m=(w=i.config.schema)==null?void 0:w[N])==null?void 0:m.values)??[]).map(g=>({value:g,label:g}))},C=N=>{var w,m;return((m=(w=i.config.schema)==null?void 0:w[N])==null?void 0:m.type)??"text"},A=N=>{a.value={...a.value,[N]:""},T()},x=()=>{a.value={},T(!0)},T=(N=!1)=>{const w=Object.keys(a.value).reduce((m,g)=>(a.value[g]&&(m[g]=`${a.value[g]}`),m),{});N&&(l.value=!1),o("update:modelValue",new URLSearchParams(w).toString())};return(N,w)=>{const m=t.resolveComponent("KInput"),g=t.resolveComponent("KButton"),E=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(m,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":h},{before:t.withCtx(()=>[t.createVNode(dn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(ie.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",Go,[t.createVNode(g,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(dn),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",Qo,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,S=>{var B,$;return t.openBlock(),t.createElementBlock("div",{key:S.value,class:"kong-ui-entity-filter-menu-item","data-testid":S.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(S.value)}]),role:"button",tabindex:"0",onClick:I=>u(S.value),onKeydown:t.withKeys(I=>u(S.value),["enter"])},[t.createTextVNode(t.toDisplayString(S.label)+" ",1),t.withDirectives(t.createElementVNode("span",ea,null,512),[[t.vShow,s.value.includes(S.value)]]),t.createVNode(t.unref(ie.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(S.value)}]),color:t.unref(Vn)},null,8,["class","color"])],42,Xo),t.withDirectives(t.createElementVNode("div",ta,[t.createElementVNode("label",{class:"menu-item-label",for:y(S.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,na),(($=(B=e.config.schema)==null?void 0:B[S.value])==null?void 0:$.type)==="select"?(t.openBlock(),t.createBlock(E,{key:0,id:y(S.value),modelValue:a.value[S.value],"onUpdate:modelValue":I=>a.value[S.value]=I,items:b(S.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","items","placeholder"])):(t.openBlock(),t.createBlock(m,{key:1,id:y(S.value),modelValue:a.value[S.value],"onUpdate:modelValue":I=>a.value[S.value]=I,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:C(S.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(S.value)]]),t.withDirectives(t.createElementVNode("div",ra,[t.createVNode(g,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:w[0]||(w[0]=I=>T(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(g,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:I=>A(S.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:2},1032,["onClick"])],512),[[t.vShow,c.value.has(S.value)]])],8,Zo)}),128)),t.createElementVNode("div",ia,[t.createVNode(g,{appearance:"tertiary",size:"small",onClick:x},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-10fa27a5"]]),aa=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}=O.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,h)=>{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"])])}}}),la=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 K=[],Pe=0;Pe<256;++Pe)K.push((Pe+256).toString(16).slice(1));function ca(e,n=0){return(K[e[n+0]]+K[e[n+1]]+K[e[n+2]]+K[e[n+3]]+"-"+K[e[n+4]]+K[e[n+5]]+"-"+K[e[n+6]]+K[e[n+7]]+"-"+K[e[n+8]]+K[e[n+9]]+"-"+K[e[n+10]]+K[e[n+11]]+K[e[n+12]]+K[e[n+13]]+K[e[n+14]]+K[e[n+15]]).toLowerCase()}var Ce,sa=new Uint8Array(16);function da(){if(!Ce&&(Ce=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ce))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ce(sa)}var ua=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const un={randomUUID:ua};function fa(e,n,r){if(un.randomUUID&&!n&&!e)return un.randomUUID();e=e||{};var i=e.random||(e.rng||da)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,ca(i)}const pa=["aria-labelledby"],ma={class:"form-section-wrapper"},ha={key:1,class:"form-section-description"},ga={key:2,class:"form-section-footer"},ya={class:"form-section-content"},ba=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=fa();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",ma,[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",ha,[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",ga,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",ya,[t.renderSlot(i.$slots,"default",{},void 0,!0)])])],10,pa))}}),[["__scopeId","data-v-b1f74200"]]),Ca={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},xa={key:0,class:"deleted-entity"},ka={key:1},wa=["onClick"],_a=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}=O.useTruncationDetector(r),{i18n:{t:o}}=O.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,h)=>{const p=t.resolveComponent("KTooltip"),y=t.resolveComponent("KExternalLink"),b=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ca,[c.value?(t.openBlock(),t.createElementBlock("div",xa,t.toDisplayString(d.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(y,{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",ka,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(A=>f(C),["stop"])},[t.createVNode(t.unref(ie.CopyIcon),{class:"copy-icon",color:t.unref(Kn),"data-testid":"copy-id",size:t.unref(jn)},null,8,["color","size"])],8,wa)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-60e3ef7c"]]),Aa={key:1},Sa=t.defineComponent({__name:"TableTags",props:{tags:{type:[Array,String],required:!0},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(ke.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(ke.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",Aa,"-"))}}}),{useAxios:Ea,useDeleteUrlBuilder:Ba,useErrors:Ta,useExternalLinkCreator:Na,useFetchUrlBuilder:Ia,useFetcher:$a,useDebouncedFilter:Fa,useStringHelpers:Oa,useHelpers:va,useGatewayFeatureSupported:La,useTruncationDetector:Da,useValidators:Ra,useSchemaProvider:Va}=O;_.ConfigCardDisplay=sn,_.ConfigCardItem=Se,_.ConfigurationSchemaSection=H,_.ConfigurationSchemaType=F,_.EntityBaseConfigCard=Oo,_.EntityBaseForm=Do,_.EntityBaseFormType=We,_.EntityBaseTable=jo,_.EntityDeleteModal=qo,_.EntityFilter=oa,_.EntityFormSection=ba,_.EntityLink=_a,_.EntityToggleModal=aa,_.EntityTypes=Ye,_.FetcherStatus=J,_.InternalLinkItem=ot,_.JsonCodeBlock=Ee,_.PermissionsWrapper=la,_.SupportedEntityType=ue,_.SupportedEntityTypesArray=oe,_.TableTags=Sa,_.TerraformCodeBlock=Ue,_.YamlCodeBlock=je,_.useAxios=Ea,_.useDebouncedFilter=Fa,_.useDeleteUrlBuilder=Ba,_.useErrors=Ta,_.useExternalLinkCreator=Na,_.useFetchUrlBuilder=Ia,_.useFetcher=$a,_.useGatewayFeatureSupported=La,_.useHelpers=va,_.useSchemaProvider=Va,_.useStringHelpers=Oa,_.useTruncationDetector=Da,_.useValidators=Ra,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|
|
51
|
+
`,d});return(c,s)=>{const d=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",So,[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)])}}}),Eo={key:0,class:"config-card-display-form"},Bo=["data-testid"],To={key:0,class:"config-card-prop-section-title"},sn=Y(t.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:e=>oe.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:""}},setup(e){const n=e,r=t.useSlots(),{i18n:{t:i}}=O.useI18n(),o=a=>!!(a.tooltip||r[`${a.key}-label-tooltip`]),l=t.computed(()=>{if(!n.record)return n.record;const a=JSON.parse(JSON.stringify(n.record));return delete a.created_at,delete a.updated_at,a});return(a,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.format==="structured"?(t.openBlock(),t.createElementBlock("div",Eo,[(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",To,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(Se,{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,Bo))),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(je,{key:2,"entity-record":l.value},null,8,["entity-record"])):t.createCommentVNode("",!0),e.format==="terraform"&&l.value?(t.openBlock(),t.createBlock(Ue,{key:3,"entity-record":l.value,"entity-type":n.entityType},null,8,["entity-record","entity-type"])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d15be7fe"]]),No={class:"config-card-title","data-testid":"config-card-title"},Io={class:"config-card-actions"},$o=["href"],Fo={class:"config-card-details-section"},Oo=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=>oe.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:""},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 w;const r=n,i=e,{i18n:{t:o}}=O.useI18n(),{getMessageFromError:l}=O.useErrors(),{convertKeyToTitle:a}=O.useStringHelpers();O.useSubSchema(i.pluginConfigKey);const{axiosInstance:c}=O.useAxios((w=i.config)==null?void 0:w.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=m=>{d.value=m==null?void 0:m.value},u={id:{type:F.ID,label:o("baseConfigCard.commonFields.id_label"),order:0,section:H.Basic},name:{order:1,section:H.Basic},enabled:{type:F.BadgeStatus,order:2,section:H.Basic},updated_at:{type:F.Date,label:o("baseConfigCard.commonFields.updated_at_label"),order:3,section:H.Basic},created_at:{type:F.Date,label:o("baseConfigCard.commonFields.created_at_label"),order:4,section:H.Basic},tags:{type:F.BadgeTag,order:-1,section:H.Basic}},h=t.ref(!1),p=t.ref(!1),y=t.ref(""),b=t.ref({}),C=t.computed(()=>{var E,S,B;if(!b.value)return[];const m=[],g=Object.keys(b.value).length;for(const $ in b.value){const I=(S=(E=i.configSchema)==null?void 0:E[$])==null?void 0:S.order,R=(B=u[$])==null?void 0:B.order;let v=g;(R||R===0)&&(v=R===-1?g+1:R),I&&(v=I===-1?g+1:I),m.push([$,v])}return m.sort(function($,I){return $[1]-I[1]}),m.map($=>{var xe,fn;const I=$[0],R=(xe=b.value)==null?void 0:xe[I],v=((fn=i.configSchema)==null?void 0:fn[I])||{},M=u[I];return{key:I,value:R,hidden:v.hidden||!1,type:v.type??((M==null?void 0:M.type)||F.Text),label:v.label??((M==null?void 0:M.label)||a(I)),tooltip:v.tooltip??((M==null?void 0:M.tooltip)||void 0),section:v.section??((M==null?void 0:M.section)||H.Advanced)}}).filter($=>!$.hidden&&$.key!==i.pluginConfigKey)}),A=t.computed(()=>{var S,B;if(!b.value||!i.pluginConfigKey)return[];const m=b.value[i.pluginConfigKey]||{},g=Object.keys(m).length,E=[];for(const $ in m){const I=(B=(S=i.pluginConfigSchema)==null?void 0:S[$])==null?void 0:B.order,R=m[$];let v=R!=null&&R!==""?g-1:g;I&&(v=I===-1?g+1:I),E.push([$,v])}return E.sort(function($,I){return $[1]-I[1]}),E.map($=>{var M;const I=$[0],R=m[I],v=((M=i.pluginConfigSchema)==null?void 0:M[I])||{};return{key:I,value:R,hidden:v.hidden||!1,type:v.type??F.Text,label:v.label??a(I),tooltip:v.tooltip??void 0,section:H.Plugin}}).filter($=>!$.hidden)}),x=t.computed(()=>{var m,g,E,S;return{basic:(m=C.value)==null?void 0:m.filter(B=>B.section===H.Basic),advanced:(g=C.value)==null?void 0:g.filter(B=>B.section===H.Advanced),plugin:(S=A.value)==null?void 0:S.concat((E=C.value)==null?void 0:E.filter(B=>B.section===H.Plugin))}}),T=t.computed(()=>{const m=[];return x.value.basic.length&&m.push("basic"),x.value.advanced.length&&m.push("advanced"),x.value.plugin.length&&m.push("plugin"),m}),N=t.computed(()=>{var g,E;let m=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((g=i.config)==null?void 0:g.controlPlaneId)||""):i.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(E=i.config)!=null&&E.workspace?`/${i.config.workspace}`:"")),m=m.replace(/{id}/gi,i.config.entityId),m});return t.watch(h,m=>{r("loading",m)},{immediate:!0}),t.onBeforeMount(async()=>{p.value=!1,h.value=!0;try{const{data:m}=await c.get(N.value);if(i.dataKey)if(typeof m[i.dataKey]<"u")b.value={...m[i.dataKey]};else throw new Error(o("errors.dataKeyUndefined",{dataKey:i.dataKey}));else b.value={...m};Object.keys(i.configSchema).filter(E=>i.configSchema[E].forceShow).forEach(E=>{b.value&&typeof b.value[E]>"u"&&(b.value[E]=null)}),r("fetch:success",m)}catch(m){const g=l(m);y.value=g.startsWith("code")?o("baseConfigCard.errors.load"):g,p.value=!0,r("fetch:error",m)}finally{h.value=!1}}),(m,g)=>{const E=t.resolveComponent("KLabel"),S=t.resolveComponent("KSelect"),B=t.resolveComponent("KButton"),$=t.resolveComponent("KSkeleton"),I=t.resolveComponent("KEmptyState"),R=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(R,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",Io,[t.renderSlot(m.$slots,"actions",{},void 0,!0),t.createVNode(E,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(S,{"data-testid":"select-config-format",items:s,onChange:f}),e.configCardDoc?(t.openBlock(),t.createBlock(B,{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(ie.BookIcon),{size:t.unref(Un)},null,8,["size"])],8,$o)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[h.value?(t.openBlock(),t.createBlock($,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):p.value?(t.openBlock(),t.createBlock(I,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(y.value),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",Fo,[t.createVNode(sn,{config:e.config,"entity-type":e.entityType,"fetcher-url":N.value,format:d.value,"prop-list-types":T.value,"property-collections":x.value,record:b.value},t.createSlots({_:2},[t.renderList(Object.keys(m.$slots),v=>({name:v,fn:t.withCtx(({row:M,rowValue:xe})=>[t.renderSlot(m.$slots,v,{row:M,rowValue:xe},void 0,!0)])}))]),1032,["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",No,[t.renderSlot(m.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-7ef5c755"]]),vo=["novalidate"],Lo={class:"form-actions","data-testid":"form-actions"},Do=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=>oe.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"}},emits:["loading","fetch:success","fetch:error","submit","cancel"],setup(e,{emit:n}){var N;const r=n,i=e,o=pn.useRouter(),{i18n:{t:l}}=O.useI18n(),{getMessageFromError:a}=O.useErrors(),{axiosInstance:c}=O.useAxios((N=i.config)==null?void 0:N.axiosRequestConfig),s=t.ref(!1),d=t.computed(()=>!!i.editId),f=t.ref(!1),u=t.ref(""),h=t.computed(()=>i.canSubmit===!1||i.isReadonly),p=t.ref(!1),y=t.computed(()=>{var m,g;let w=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?w=w.replace(/{controlPlaneId}/gi,((m=i.config)==null?void 0:m.controlPlaneId)||""):i.config.app==="kongManager"&&(w=w.replace(/\/{workspace}/gi,(g=i.config)!=null&&g.workspace?`/${i.config.workspace}`:"")),i.editId?(w=w.replace(/{id}/gi,i.editId),w):(w=w.replace(/\/{id}/gi,""),w)}),b=()=>{p.value=!p.value},C=()=>{i.config.cancelRoute?o.push(i.config.cancelRoute):A()},A=()=>{r("cancel")},x=()=>{h.value||r("submit")},T=t.ref([{title:l("baseForm.configuration.json"),hash:"#json"},{title:l("baseForm.configuration.yaml"),hash:"#yaml"}]);return i.config.app==="konnect"&&i.entityType!==ue.Other&&T.value.splice(1,0,{title:l("baseForm.configuration.terraform"),hash:"#terraform"}),t.watch(()=>s.value,w=>{r("loading",w)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{f.value=!1,s.value=!0;const{data:w}=await c.get(y.value);r("fetch:success",w)}catch(w){const m=a(w);u.value=m.startsWith("code")?l("baseForm.errors.edit"):m,f.value=!0,r("fetch:error",w)}finally{s.value=!1}}),(w,m)=>{const g=t.resolveComponent("KSkeleton"),E=t.resolveComponent("KEmptyState"),S=t.resolveComponent("KAlert"),B=t.resolveComponent("KButton"),$=t.resolveComponent("KTabs"),I=t.resolveComponent("KSlideout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.wrapperComponent),{class:"kong-ui-entity-base-form"},{default:t.withCtx(()=>[s.value?(t.openBlock(),t.createBlock(g,{key:0,type:"form"})):f.value?(t.openBlock(),t.createBlock(E,{key:1,"action-button-text":t.unref(l)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:C},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(u.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(A,["prevent"]),onSubmit:t.withModifiers(x,["prevent"])},[t.renderSlot(w.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(S,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),t.createElementVNode("div",Lo,[t.renderSlot(w.$slots,"form-actions",{},()=>[t.createVNode(B,{appearance:"tertiary","data-testid":`${e.entityType}-${d.value?"edit":"create"}-form-view-configuration`,onClick:m[0]||(m[0]=R=>b())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode(B,{appearance:"secondary","data-testid":`${e.entityType}-${d.value?"edit":"create"}-form-cancel`,disabled:e.isReadonly,type:"reset"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),t.createVNode(B,{appearance:"primary","data-testid":`${e.entityType}-${d.value?"edit":"create"}-form-submit`,disabled:h.value,type:"submit"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)])],40,vo)),t.createVNode(I,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":60,title:t.unref(l)("baseForm.configuration.title"),visible:p.value,onClose:m[1]||(m[1]=R=>b())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(l)("baseForm.configuration.message")),1),t.createVNode($,{"data-testid":"form-view-configuration-slideout-tabs",tabs:T.value},{json:t.withCtx(()=>[t.createVNode(Ee,{config:e.config,"entity-record":i.formFields,"fetcher-url":y.value,"request-method":i.editId?"put":"post"},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(je,{"entity-record":i.formFields},null,8,["entity-record"])]),terraform:t.withCtx(()=>[t.createVNode(Ue,{"entity-record":i.formFields,"entity-type":e.entityType},null,8,["entity-record","entity-type"])]),_:1},8,["tabs"])]),_:1},8,["title","visible"])]),_:3})}}}),[["__scopeId","data-v-6210a67a"]]),Ro=["data-truncate"],Vo=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 A,x;const C=(A=n.rowEl)==null?void 0:A.querySelectorAll("td");return C?((x=C[0])==null?void 0:x.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 A,x,T;let C=((A=r.value)==null?void 0:A.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=((x=i.value)==null?void 0:x.getBoundingClientRect().width)||0,u.value=C,h.value=((T=d.value)==null?void 0:T.innerText)||""},d=t.ref({}),f=t.ref(0),u=t.ref(0),h=t.ref(""),p=t.computed(()=>[i.value,r.value]),y=t.watch(p,C=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(A=>{window.requestAnimationFrame(()=>{!Array.isArray(A)||!A.length||s()})});for(const A of C)A&&a.observe(A)}},{immediate:!0,flush:"post",deep:!0}),b=t.computed(()=>l.value?f.value>u.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{y()}),(C,A)=>{const x=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(x,{"max-width":"300",placement:"bottom-start",text:b.value?h.value:""},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,Ro)):t.renderSlot(C.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-b252463e"]]),Ko={class:"toolbar-container"},Mo={key:0,class:"toolbar-button-container"},jo=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},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:"",required:!0},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:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:n}){const r=e,i=n,{i18n:{t:o}}=O.useI18n(),l=t.computed(()=>{var m,g;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(m=r.errorMessage)==null?void 0:m.title,message:(g=r.errorMessage)==null?void 0:g.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=m=>m.hasData||!!r.query,s=t.computed(()=>{const m=[];return Object.keys(r.tableHeaders).forEach(E=>{const S=r.tableHeaders[E];m.push({label:S.label??E,key:E,sortable:S.sortable??!1,hidable:S.hidable??!0})}),r.enableEntityActions&&m.push({key:"actions",hideLabel:!0}),m}),d=m=>({"data-rowid":m.id,"data-testid":m.name,...r.rowAttributes(m)}),f=t.ref({}),u=m=>{var g;return(g=f.value)==null?void 0:g.$el.querySelector(`[data-rowid="${m.id}"]`)},h=m=>{const g={"data-testid":m.headerKey,...r.cellAttributes(m)};return m.colIndex===0&&(g.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),g},p=()=>{i("empty-state-cta-clicked"),y()},y=()=>{i("clear-search-input")},b=t.computed(()=>r.disableRowClick?void 0:(m,g)=>{i("click:row",g)}),C=m=>{i("sort",m)},{setTablePreferences:A,getTablePreferences:x}=yn(),T=t.ref(x(a.value,r.defaultTablePreferences)),N=t.computed(()=>{const m=x(a.value);return{...r.initialFetcherParams,...m}}),w=m=>{T.value=m,s.value.forEach(g=>{!("hidable"in g)||!T.value.columnVisibility||g.hidable===!1&&(T.value.columnVisibility[g.key]=!0)}),a.value&&A(a.value,m)};return(m,g)=>{const E=t.resolveComponent("KTableData"),S=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(S,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(E,{ref_key:"tableRefs",ref:f,"cache-identifier":a.value,"cell-attrs":h,"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:s.value,"hide-pagination":e.hidePagination,"hide-pagination-when-optional":"","hide-toolbar":e.hideToolbar,"initial-fetcher-params":N.value,loading:e.isLoading,"pagination-attributes":{disablePageJump:e.disablePaginationPageJump,offset:e.paginationType==="offset"},"resize-columns":"","row-attrs":d,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":T.value,onEmptyStateActionClick:p,"onRow:click":b.value,onSort:g[0]||(g[0]=B=>C(B)),"onUpdate:tablePreferences":w},t.createSlots({toolbar:t.withCtx(({state:B})=>[t.withDirectives(t.createElementVNode("div",Ko,[t.renderSlot(m.$slots,"toolbar-filter",{},void 0,!0),m.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",Mo,[t.renderSlot(m.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,c(B)]])]),"action-items":t.withCtx(({row:B})=>[t.renderSlot(m.$slots,"actions",{row:B},void 0,!0)]),_:2},[t.renderList(e.tableHeaders,(B,$)=>({name:$,fn:t.withCtx(({row:I,rowKey:R,rowValue:v})=>[t.createVNode(Vo,{"key-name":String($),"row-el":u(I),tooltip:B.tooltip},{default:t.withCtx(()=>[t.renderSlot(m.$slots,$,{row:I,rowKey:R,rowValue:v},()=>[t.createTextVNode(t.toDisplayString(v),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(ie.AddIcon))]),key:"0"}]),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","search-input","sort-handler-function","sortable","table-preferences","onRow:click"])]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-765e475b"]]),Uo={key:0,class:"kong-ui-entity-delete-error"},Po={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}=O.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",Uo,[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",Po,[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"]]),Ho={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},Yo={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},Wo=["fill"],Jo={mask:"url(#mask0_180_20349)"},zo=["fill"],dn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${Dn})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",Ho,[t.createElementVNode("mask",Yo,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,Wo)]),t.createElementVNode("g",Jo,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,zo)])]))}}),Go={key:1,class:"kong-ui-entity-filter"},Qo={class:"kong-ui-entity-filter-menu"},Zo=["data-testid"],Xo=["onClick","onKeydown"],ea={class:"menu-item-indicator"},ta={class:"menu-item-body"},na=["for"],ra={class:"menu-item-buttons"},ia={class:"filter-clear-button-container"},oa=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}}=O.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((w,m)=>{w!==""&&N.push(m)}),N}),d=t.computed(()=>{const N=i.config.fields;return Object.keys(N).filter(w=>{var m;return(m=N==null?void 0:N[w])==null?void 0:m.searchable}).map(w=>({label:N[w].label||w,value:w,expanded:!1}))});t.watch(()=>i.modelValue,N=>{a.value={},new URLSearchParams(N).forEach((w,m)=>{a.value[m]=w})});const f=()=>{l.value=!l.value},u=N=>{c.value.has(N)?c.value.delete(N):c.value.add(N)},h=N=>{o("update:modelValue",N)},p=()=>{h("")},y=N=>`filter-${N}`,b=N=>{var w,m;return(((m=(w=i.config.schema)==null?void 0:w[N])==null?void 0:m.values)??[]).map(g=>({value:g,label:g}))},C=N=>{var w,m;return((m=(w=i.config.schema)==null?void 0:w[N])==null?void 0:m.type)??"text"},A=N=>{a.value={...a.value,[N]:""},T()},x=()=>{a.value={},T(!0)},T=(N=!1)=>{const w=Object.keys(a.value).reduce((m,g)=>(a.value[g]&&(m[g]=`${a.value[g]}`),m),{});N&&(l.value=!1),o("update:modelValue",new URLSearchParams(w).toString())};return(N,w)=>{const m=t.resolveComponent("KInput"),g=t.resolveComponent("KButton"),E=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(m,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":h},{before:t.withCtx(()=>[t.createVNode(dn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(ie.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",Go,[t.createVNode(g,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(dn),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",Qo,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,S=>{var B,$;return t.openBlock(),t.createElementBlock("div",{key:S.value,class:"kong-ui-entity-filter-menu-item","data-testid":S.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(S.value)}]),role:"button",tabindex:"0",onClick:I=>u(S.value),onKeydown:t.withKeys(I=>u(S.value),["enter"])},[t.createTextVNode(t.toDisplayString(S.label)+" ",1),t.withDirectives(t.createElementVNode("span",ea,null,512),[[t.vShow,s.value.includes(S.value)]]),t.createVNode(t.unref(ie.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(S.value)}]),color:t.unref(Vn)},null,8,["class","color"])],42,Xo),t.withDirectives(t.createElementVNode("div",ta,[t.createElementVNode("label",{class:"menu-item-label",for:y(S.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,na),(($=(B=e.config.schema)==null?void 0:B[S.value])==null?void 0:$.type)==="select"?(t.openBlock(),t.createBlock(E,{key:0,id:y(S.value),modelValue:a.value[S.value],"onUpdate:modelValue":I=>a.value[S.value]=I,items:b(S.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","items","placeholder"])):(t.openBlock(),t.createBlock(m,{key:1,id:y(S.value),modelValue:a.value[S.value],"onUpdate:modelValue":I=>a.value[S.value]=I,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:C(S.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(S.value)]]),t.withDirectives(t.createElementVNode("div",ra,[t.createVNode(g,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:w[0]||(w[0]=I=>T(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(g,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:I=>A(S.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:2},1032,["onClick"])],512),[[t.vShow,c.value.has(S.value)]])],8,Zo)}),128)),t.createElementVNode("div",ia,[t.createVNode(g,{appearance:"tertiary",size:"small",onClick:x},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-10fa27a5"]]),aa=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}=O.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,h)=>{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"])])}}}),la=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 K=[],Pe=0;Pe<256;++Pe)K.push((Pe+256).toString(16).slice(1));function ca(e,n=0){return(K[e[n+0]]+K[e[n+1]]+K[e[n+2]]+K[e[n+3]]+"-"+K[e[n+4]]+K[e[n+5]]+"-"+K[e[n+6]]+K[e[n+7]]+"-"+K[e[n+8]]+K[e[n+9]]+"-"+K[e[n+10]]+K[e[n+11]]+K[e[n+12]]+K[e[n+13]]+K[e[n+14]]+K[e[n+15]]).toLowerCase()}var Ce,sa=new Uint8Array(16);function da(){if(!Ce&&(Ce=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ce))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ce(sa)}var ua=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const un={randomUUID:ua};function fa(e,n,r){if(un.randomUUID&&!n&&!e)return un.randomUUID();e=e||{};var i=e.random||(e.rng||da)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,ca(i)}const pa=["aria-labelledby"],ma={class:"form-section-wrapper"},ha={key:1,class:"form-section-description"},ga={key:2,class:"form-section-footer"},ya={class:"form-section-content"},ba=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=fa();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",ma,[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",ha,[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",ga,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",ya,[t.renderSlot(i.$slots,"default",{},void 0,!0)])])],10,pa))}}),[["__scopeId","data-v-b1f74200"]]),Ca={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},xa={key:0,class:"deleted-entity"},ka={key:1},wa=["onClick"],_a=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}=O.useTruncationDetector(r),{i18n:{t:o}}=O.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,h)=>{const p=t.resolveComponent("KTooltip"),y=t.resolveComponent("KExternalLink"),b=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ca,[c.value?(t.openBlock(),t.createElementBlock("div",xa,t.toDisplayString(d.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(y,{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",ka,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(A=>f(C),["stop"])},[t.createVNode(t.unref(ie.CopyIcon),{class:"copy-icon",color:t.unref(Kn),"data-testid":"copy-id",size:t.unref(jn)},null,8,["color","size"])],8,wa)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-60e3ef7c"]]),Aa={key:1},Sa=t.defineComponent({__name:"TableTags",props:{tags:{type:[Array,String]},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(ke.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(ke.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",Aa,"-"))}}}),{useAxios:Ea,useDeleteUrlBuilder:Ba,useErrors:Ta,useExternalLinkCreator:Na,useFetchUrlBuilder:Ia,useFetcher:$a,useDebouncedFilter:Fa,useStringHelpers:Oa,useHelpers:va,useGatewayFeatureSupported:La,useTruncationDetector:Da,useValidators:Ra,useSchemaProvider:Va}=O;_.ConfigCardDisplay=sn,_.ConfigCardItem=Se,_.ConfigurationSchemaSection=H,_.ConfigurationSchemaType=F,_.EntityBaseConfigCard=Oo,_.EntityBaseForm=Do,_.EntityBaseFormType=We,_.EntityBaseTable=jo,_.EntityDeleteModal=qo,_.EntityFilter=oa,_.EntityFormSection=ba,_.EntityLink=_a,_.EntityToggleModal=aa,_.EntityTypes=Ye,_.FetcherStatus=J,_.InternalLinkItem=ot,_.JsonCodeBlock=Ee,_.PermissionsWrapper=la,_.SupportedEntityType=ue,_.SupportedEntityTypesArray=oe,_.TableTags=Sa,_.TerraformCodeBlock=Ue,_.YamlCodeBlock=je,_.useAxios=Ea,_.useDebouncedFilter=Fa,_.useDeleteUrlBuilder=Ba,_.useErrors=Ta,_.useExternalLinkCreator=Na,_.useFetchUrlBuilder=Ia,_.useFetcher=$a,_.useGatewayFeatureSupported=La,_.useHelpers=va,_.useSchemaProvider=Va,_.useStringHelpers=Oa,_.useTruncationDetector=Da,_.useValidators=Ra,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -2,7 +2,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2
2
|
/** The tags to display in the table */
|
|
3
3
|
tags: {
|
|
4
4
|
type: (StringConstructor | ArrayConstructor)[];
|
|
5
|
-
required: true;
|
|
6
5
|
};
|
|
7
6
|
tagMaxWidth: {
|
|
8
7
|
type: StringConstructor;
|
|
@@ -12,7 +11,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
12
11
|
/** The tags to display in the table */
|
|
13
12
|
tags: {
|
|
14
13
|
type: (StringConstructor | ArrayConstructor)[];
|
|
15
|
-
required: true;
|
|
16
14
|
};
|
|
17
15
|
tagMaxWidth: {
|
|
18
16
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableTags.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/common/TableTags.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TableTags.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/common/TableTags.vue"],"names":[],"mappings":";IA+ME,uCAAuC;;;;;;;;;IAAvC,uCAAuC;;;;;;;;;;;AANzC,wBAeG"}
|