@kong-ui-public/entities-shared 3.14.4 → 3.14.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.
- package/dist/entities-shared.es.js +2 -3
- package/dist/entities-shared.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts +0 -2
- package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3328,8 +3328,7 @@ const Eo = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3328
3328
|
/** tableKey to use for user table preferences. If empty, will fallback to default preferences */
|
|
3329
3329
|
preferencesStorageKey: {
|
|
3330
3330
|
type: String,
|
|
3331
|
-
default: ""
|
|
3332
|
-
required: !0
|
|
3331
|
+
default: ""
|
|
3333
3332
|
},
|
|
3334
3333
|
/** default table preferences to use if no user preferences are found */
|
|
3335
3334
|
defaultTablePreferences: {
|
|
@@ -3513,7 +3512,7 @@ const Eo = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3513
3512
|
}, 8, ["title", "title-tag"]);
|
|
3514
3513
|
};
|
|
3515
3514
|
}
|
|
3516
|
-
}), es = /* @__PURE__ */ ie(zo, [["__scopeId", "data-v-
|
|
3515
|
+
}), es = /* @__PURE__ */ ie(zo, [["__scopeId", "data-v-cb9940b5"]]), Qo = {
|
|
3517
3516
|
key: 0,
|
|
3518
3517
|
class: "kong-ui-entity-delete-error"
|
|
3519
3518
|
}, Zo = {
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
`,u+=`${P}${P}id = konnect_gateway_${f}.my_${f}.id
|
|
49
49
|
`,u+=`${P}}
|
|
50
50
|
`),u+=`}
|
|
51
|
-
`,u});return(c,s)=>{const u=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",No,[n.entityRecord?(t.openBlock(),t.createBlock(u,{key:0,id:"terraform-codeblock",code:a.value,language:"terraform",theme:"dark"},null,8,["code"])):t.createCommentVNode("",!0)])}}}),Io={key:0,class:"config-card-display-form"},Fo=["data-testid"],Oo={key:0,class:"config-card-prop-section-title"},un=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:""}},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",Io,[(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",Oo,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],u=>(t.openBlock(),t.createBlock(Ae,{key:u.key,item:u},t.createSlots({label:t.withCtx(()=>[t.renderSlot(a.$slots,`${u.key}-label`,{row:u},void 0,!0)]),[u.key]:t.withCtx(({rowValue:f})=>[t.renderSlot(a.$slots,u.key,{row:u,rowValue:f},void 0,!0)]),_:2},[o(u)?{name:"label-tooltip",fn:t.withCtx(()=>[t.renderSlot(a.$slots,`${u.key}-label-tooltip`,{row:u},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))),128))],10,Fo))),128))])):t.createCommentVNode("",!0),e.format==="json"&&l.value?(t.openBlock(),t.createBlock(Be,{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"]]),Lo={class:"config-card-title","data-testid":"config-card-title"},Do={class:"config-card-actions"},Vo=["href"],Ro={class:"config-card-details-section"},Ko=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:""},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 _;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((_=i.config)==null?void 0:_.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 u=t.ref("structured"),f=g=>{u.value=g==null?void 0:g.value},d={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}},m=t.ref(!1),p=t.ref(!1),C=t.ref(""),y=t.ref({}),x=t.computed(()=>{var k,w,$;if(!y.value)return[];const g=[],h=Object.keys(y.value).length;for(const N in y.value){const I=(w=(k=i.configSchema)==null?void 0:k[N])==null?void 0:w.order,K=($=d[N])==null?void 0:$.order;let L=h;(K||K===0)&&(L=K===-1?h+1:K),I&&(L=I===-1?h+1:I),g.push([N,L])}return g.sort(function(N,I){return N[1]-I[1]}),g.map(N=>{var xe,mn;const I=N[0],K=(xe=y.value)==null?void 0:xe[I],L=((mn=i.configSchema)==null?void 0:mn[I])||{},V=d[I];return{key:I,value:K,hidden:L.hidden||!1,type:L.type??((V==null?void 0:V.type)||F.Text),label:L.label??((V==null?void 0:V.label)||a(I)),tooltip:L.tooltip??((V==null?void 0:V.tooltip)||void 0),section:L.section??((V==null?void 0:V.section)||H.Advanced)}}).filter(N=>!N.hidden&&N.key!==i.pluginConfigKey)}),B=t.computed(()=>{var w,$;if(!y.value||!i.pluginConfigKey)return[];const g=y.value[i.pluginConfigKey]||{},h=Object.keys(g).length,k=[];for(const N in g){const I=($=(w=i.pluginConfigSchema)==null?void 0:w[N])==null?void 0:$.order,K=g[N];let L=K!=null&&K!==""?h-1:h;I&&(L=I===-1?h+1:I),k.push([N,L])}return k.sort(function(N,I){return N[1]-I[1]}),k.map(N=>{var V;const I=N[0],K=g[I],L=((V=i.pluginConfigSchema)==null?void 0:V[I])||{};return{key:I,value:K,hidden:L.hidden||!1,type:L.type??F.Text,label:L.label??a(I),tooltip:L.tooltip??void 0,section:H.Plugin}}).filter(N=>!N.hidden)}),b=t.computed(()=>{var g,h,k,w;return{basic:(g=x.value)==null?void 0:g.filter($=>$.section===H.Basic),advanced:(h=x.value)==null?void 0:h.filter($=>$.section===H.Advanced),plugin:(w=B.value)==null?void 0:w.concat((k=x.value)==null?void 0:k.filter($=>$.section===H.Plugin))}}),T=t.computed(()=>{const g=[];return b.value.basic.length&&g.push("basic"),b.value.advanced.length&&g.push("advanced"),b.value.plugin.length&&g.push("plugin"),g}),E=t.computed(()=>{var h,k;let g=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,((h=i.config)==null?void 0:h.controlPlaneId)||""):i.config.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,(k=i.config)!=null&&k.workspace?`/${i.config.workspace}`:"")),g=g.replace(/{id}/gi,i.config.entityId),g});return t.watch(m,g=>{r("loading",g)},{immediate:!0}),t.onBeforeMount(async()=>{p.value=!1,m.value=!0;try{const{data:g}=await c.get(E.value);if(i.dataKey)if(typeof g[i.dataKey]<"u")y.value={...g[i.dataKey]};else throw new Error(o("errors.dataKeyUndefined",{dataKey:i.dataKey}));else y.value={...g};Object.keys(i.configSchema).filter(k=>i.configSchema[k].forceShow).forEach(k=>{y.value&&typeof y.value[k]>"u"&&(y.value[k]=null)}),r("fetch:success",g)}catch(g){const h=l(g);C.value=h.startsWith("code")?o("baseConfigCard.errors.load"):h,p.value=!0,r("fetch:error",g)}finally{m.value=!1}}),(g,h)=>{const k=t.resolveComponent("KLabel"),w=t.resolveComponent("KSelect"),$=t.resolveComponent("KButton"),N=t.resolveComponent("KSkeleton"),I=t.resolveComponent("KEmptyState"),K=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(K,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",Do,[t.renderSlot(g.$slots,"actions",{},void 0,!0),t.createVNode(k,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(w,{"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(Wn)},null,8,["size"])],8,Vo)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[m.value?(t.openBlock(),t.createBlock(N,{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(C.value),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",Ro,[t.createVNode(un,{config:e.config,"entity-type":e.entityType,"fetcher-url":E.value,format:u.value,"prop-list-types":T.value,"property-collections":b.value,record:y.value},t.createSlots({_:2},[t.renderList(Object.keys(g.$slots),L=>({name:L,fn:t.withCtx(({row:V,rowValue:xe})=>[t.renderSlot(g.$slots,L,{row:V,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",Lo,[t.renderSlot(g.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-7ef5c755"]]),Mo=["novalidate"],vo={class:"form-actions","data-testid":"form-actions"},jo=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"}},emits:["loading","fetch:success","fetch:error","submit","cancel"],setup(e,{emit:n}){var E;const r=n,i=e,o=hn.useRouter(),{i18n:{t:l}}=O.useI18n(),{getMessageFromError:a}=O.useErrors(),{axiosInstance:c}=O.useAxios((E=i.config)==null?void 0:E.axiosRequestConfig),s=t.ref(!1),u=t.computed(()=>!!i.editId),f=t.ref(!1),d=t.ref(""),m=t.computed(()=>i.canSubmit===!1||i.isReadonly),p=t.ref(!1),C=t.computed(()=>{var g,h;let _=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?_=_.replace(/{controlPlaneId}/gi,((g=i.config)==null?void 0:g.controlPlaneId)||""):i.config.app==="kongManager"&&(_=_.replace(/\/{workspace}/gi,(h=i.config)!=null&&h.workspace?`/${i.config.workspace}`:"")),i.editId?(_=_.replace(/{id}/gi,i.editId),_):(_=_.replace(/\/{id}/gi,""),_)}),y=()=>{p.value=!p.value},x=()=>{i.config.cancelRoute?o.push(i.config.cancelRoute):B()},B=()=>{r("cancel")},b=()=>{m.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!==fe.Other&&T.value.splice(1,0,{title:l("baseForm.configuration.terraform"),hash:"#terraform"}),t.watch(()=>s.value,_=>{r("loading",_)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{f.value=!1,s.value=!0;const{data:_}=await c.get(C.value);r("fetch:success",_)}catch(_){const g=a(_);d.value=g.startsWith("code")?l("baseForm.errors.edit"):g,f.value=!0,r("fetch:error",_)}finally{s.value=!1}}),(_,g)=>{const h=t.resolveComponent("KSkeleton"),k=t.resolveComponent("KEmptyState"),w=t.resolveComponent("KAlert"),$=t.resolveComponent("KButton"),N=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(h,{key:0,type:"form"})):f.value?(t.openBlock(),t.createBlock(k,{key:1,"action-button-text":t.unref(l)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:x},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(d.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(B,["prevent"]),onSubmit:t.withModifiers(b,["prevent"])},[t.renderSlot(_.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(w,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),t.createElementVNode("div",vo,[t.renderSlot(_.$slots,"form-actions",{},()=>[t.createVNode($,{appearance:"tertiary","data-testid":`${e.entityType}-${u.value?"edit":"create"}-form-view-configuration`,onClick:g[0]||(g[0]=K=>y())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode($,{appearance:"secondary","data-testid":`${e.entityType}-${u.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($,{appearance:"primary","data-testid":`${e.entityType}-${u.value?"edit":"create"}-form-submit`,disabled:m.value,type:"submit"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)])],40,Mo)),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:g[1]||(g[1]=K=>y())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(l)("baseForm.configuration.message")),1),t.createVNode(N,{"data-testid":"form-view-configuration-slideout-tabs",tabs:T.value},{json:t.withCtx(()=>[t.createVNode(Be,{config:e.config,"entity-record":i.formFields,"fetcher-url":C.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"]]),Uo=["data-truncate"],Po=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 x;return((x=n.rowEl)==null?void 0:x.querySelector(`[data-testid="${n.keyName}"]`))||null}),i=t.computed(()=>{var x;return((x=r.value)==null?void 0:x.querySelector('[data-truncate="true"]'))||null}),o=t.computed(()=>{var B,b;const x=(B=n.rowEl)==null?void 0:B.querySelectorAll("td");return x?((b=x[0])==null?void 0:b.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 B,b,T;let x=((B=r.value)==null?void 0:B.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const E=window.getComputedStyle(r.value);x-=(parseFloat(E.paddingLeft)||0)+(parseFloat(E.paddingRight)||0)}f.value=((b=i.value)==null?void 0:b.getBoundingClientRect().width)||0,d.value=x,m.value=((T=u.value)==null?void 0:T.innerText)||""},u=t.ref({}),f=t.ref(0),d=t.ref(0),m=t.ref(""),p=t.computed(()=>[i.value,r.value]),C=t.watch(p,x=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(B=>{window.requestAnimationFrame(()=>{!Array.isArray(B)||!B.length||s()})});for(const B of x)B&&a.observe(B)}},{immediate:!0,flush:"post",deep:!0}),y=t.computed(()=>l.value?f.value>d.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{C()}),(x,B)=>{const b=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:u,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(b,{"max-width":"300",placement:"bottom-start",text:y.value?m.value:""},{default:t.withCtx(()=>[t.renderSlot(x.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,Uo)):t.renderSlot(x.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-b252463e"]]),qo={class:"toolbar-container"},Ho={key:0,class:"toolbar-button-container"},Yo=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:"",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:void 0}},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 h,k;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(h=r.errorMessage)==null?void 0:h.title,message:(k=r.errorMessage)==null?void 0:k.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=t.computed(()=>{const h=[];return Object.keys(r.tableHeaders).forEach(w=>{const $=r.tableHeaders[w];h.push({label:$.label??w,key:w,sortable:$.sortable??!1,hidable:$.hidable??!0})}),r.enableEntityActions&&h.push({key:"actions",hideLabel:!0}),h}),s=h=>({"data-rowid":h.id,"data-testid":h.name,...r.rowAttributes(h)}),u=t.ref({}),f=h=>{var k;return(k=u.value)==null?void 0:k.$el.querySelector(`[data-rowid="${h.id}"]`)},d=h=>{const k={"data-testid":h.headerKey,...r.cellAttributes(h)};return h.colIndex===0&&(k.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),k},m=()=>{i("empty-state-cta-clicked"),p()},p=()=>{i("clear-search-input")},C=t.computed(()=>r.disableRowClick?void 0:(h,k)=>{i("click:row",k)}),y=h=>{i("sort",h)},{hideTableToolbar:x,handleStateChange:B}=O.useTableState(()=>r.query),{setTablePreferences:b,getTablePreferences:T}=bn(),E=t.ref(T(a.value,r.defaultTablePreferences)),_=t.computed(()=>{const h=T(a.value);return{...r.initialFetcherParams,...h}}),g=h=>{E.value=h,c.value.forEach(k=>{!("hidable"in k)||!E.value.columnVisibility||k.hidable===!1&&(E.value.columnVisibility[k.key]=!0)}),a.value&&b(a.value,h)};return(h,k)=>{const w=t.resolveComponent("KTableData"),$=t.resolveComponent("KCard");return t.openBlock(),t.createBlock($,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(w,{ref_key:"tableRefs",ref:u,"cache-identifier":a.value,"cell-attrs":d,"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(x),"initial-fetcher-params":_.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":E.value,onEmptyStateActionClick:m,"onRow:click":C.value,onSort:k[0]||(k[0]=N=>y(N)),onState:t.unref(B),"onUpdate:tablePreferences":g},t.createSlots({toolbar:t.withCtx(()=>[t.createElementVNode("div",qo,[t.renderSlot(h.$slots,"toolbar-filter",{},void 0,!0),h.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",Ho,[t.renderSlot(h.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)])]),"action-items":t.withCtx(({row:N})=>[t.renderSlot(h.$slots,"actions",{row:N},void 0,!0)]),_:2},[t.renderList(e.tableHeaders,(N,I)=>({name:I,fn:t.withCtx(({row:K,rowKey:L,rowValue:V})=>[t.createVNode(Po,{"key-name":String(I),"row-el":f(K),tooltip:N.tooltip},{default:t.withCtx(()=>[t.renderSlot(h.$slots,I,{row:K,rowKey:L,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(Z.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","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click","onState"])]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-0998625e"]]),Wo={key:0,class:"kong-ui-entity-delete-error"},zo={key:1,class:"description"},Jo=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,u)=>{const f=t.resolveComponent("KAlert"),d=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(d,{"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",Wo,[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",zo,[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"]]),Go={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},Qo={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},Zo=["fill"],Xo={mask:"url(#mask0_180_20349)"},ea=["fill"],fn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${jn})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",Go,[t.createElementVNode("mask",Qo,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,Zo)]),t.createElementVNode("g",Xo,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,ea)])]))}}),ta={key:1,class:"kong-ui-entity-filter"},na={class:"kong-ui-entity-filter-menu"},ra=["data-testid"],ia=["onClick","onKeydown"],oa={class:"menu-item-indicator"},aa={class:"menu-item-body"},la=["for"],ca={class:"menu-item-buttons"},sa={class:"filter-clear-button-container"},da=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 E=[];return new URLSearchParams(i.modelValue).forEach((_,g)=>{_!==""&&E.push(g)}),E}),u=t.computed(()=>{const E=i.config.fields;return Object.keys(E).filter(_=>{var g;return(g=E==null?void 0:E[_])==null?void 0:g.searchable}).map(_=>({label:E[_].label||_,value:_,expanded:!1}))});t.watch(()=>i.modelValue,E=>{a.value={},new URLSearchParams(E).forEach((_,g)=>{a.value[g]=_})});const f=()=>{l.value=!l.value},d=E=>{c.value.has(E)?c.value.delete(E):c.value.add(E)},m=E=>{o("update:modelValue",E)},p=()=>{m("")},C=E=>`filter-${E}`,y=E=>{var _,g;return(((g=(_=i.config.schema)==null?void 0:_[E])==null?void 0:g.values)??[]).map(h=>({value:h,label:h}))},x=E=>{var _,g;return((g=(_=i.config.schema)==null?void 0:_[E])==null?void 0:g.type)??"text"},B=E=>{a.value={...a.value,[E]:""},T()},b=()=>{a.value={},T(!0)},T=(E=!1)=>{const _=Object.keys(a.value).reduce((g,h)=>(a.value[h]&&(g[h]=`${a.value[h]}`),g),{});E&&(l.value=!1),o("update:modelValue",new URLSearchParams(_).toString())};return(E,_)=>{const g=t.resolveComponent("KInput"),h=t.resolveComponent("KButton"),k=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(g,{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(fn)]),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",ta,[t.createVNode(h,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(fn),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",na,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,w=>{var $,N;return t.openBlock(),t.createElementBlock("div",{key:w.value,class:"kong-ui-entity-filter-menu-item","data-testid":w.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(w.value)}]),role:"button",tabindex:"0",onClick:I=>d(w.value),onKeydown:t.withKeys(I=>d(w.value),["enter"])},[t.createTextVNode(t.toDisplayString(w.label)+" ",1),t.withDirectives(t.createElementVNode("span",oa,null,512),[[t.vShow,s.value.includes(w.value)]]),t.createVNode(t.unref(Z.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(w.value)}]),color:t.unref(Pn)},null,8,["class","color"])],42,ia),t.withDirectives(t.createElementVNode("div",aa,[t.createElementVNode("label",{class:"menu-item-label",for:C(w.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,la),((N=($=e.config.schema)==null?void 0:$[w.value])==null?void 0:N.type)==="select"?(t.openBlock(),t.createBlock(k,{key:0,id:C(w.value),modelValue:a.value[w.value],"onUpdate:modelValue":I=>a.value[w.value]=I,items:y(w.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","items","placeholder"])):(t.openBlock(),t.createBlock(g,{key:1,id:C(w.value),modelValue:a.value[w.value],"onUpdate:modelValue":I=>a.value[w.value]=I,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:x(w.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(w.value)]]),t.withDirectives(t.createElementVNode("div",ca,[t.createVNode(h,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:_[0]||(_[0]=I=>T(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(h,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:I=>B(w.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:2},1032,["onClick"])],512),[[t.vShow,c.value.has(w.value)]])],8,ra)}),128)),t.createElementVNode("div",sa,[t.createVNode(h,{appearance:"tertiary",size:"small",onClick:b},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-10fa27a5"]]),ua=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")),u=()=>l("cancel"),f=async()=>{if(o.onConfirm){a.value=!0;try{await o.onConfirm(),l("proceed")}catch(d){console.error(d)}finally{a.value=!1}}};return(d,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:u,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"])])}}}),fa=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=[],Pe=0;Pe<256;++Pe)v.push((Pe+256).toString(16).slice(1));function pa(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,ma=new Uint8Array(16);function ha(){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(ma)}var ga=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const pn={randomUUID:ga};function ya(e,n,r){if(pn.randomUUID&&!n&&!e)return pn.randomUUID();e=e||{};var i=e.random||(e.rng||ha)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,pa(i)}const Ca=["aria-labelledby"],ba={class:"form-section-wrapper"},ka={key:1,class:"form-section-description"},xa={key:2,class:"form-section-footer"},wa={class:"form-section-content"},Sa=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=ya();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",ba,[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",ka,[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",xa,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",wa,[t.renderSlot(i.$slots,"default",{},void 0,!0)])])],10,Ca))}}),[["__scopeId","data-v-b1f74200"]]),_a={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Aa={key:0,class:"deleted-entity"},Ba={key:1},Ea=["onClick"],Ta=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 d;return(d=n.entityLinkData.id)!=null&&d.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),u=t.computed(()=>{var d;return`${(d=s.value)==null?void 0:d.toString().slice(0,5)} (deleted)`}),f=async d=>{await d(s.value||"")&&(a.value=o("global.actions.copyToClipboard"),setTimeout(()=>{a.value=l},1800))};return(d,m)=>{const p=t.resolveComponent("KTooltip"),C=t.resolveComponent("KExternalLink"),y=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",_a,[c.value?(t.openBlock(),t.createElementBlock("div",Aa,t.toDisplayString(u.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(C,{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",Ba,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(y,null,{default:t.withCtx(({copyToClipboard:x})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(B=>f(x),["stop"])},[t.createVNode(t.unref(Z.CopyIcon),{class:"copy-icon",color:t.unref(qn),"data-testid":"copy-id",size:t.unref(Yn)},null,8,["color","size"])],8,Ea)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-2e2c07e5"]]),$a={class:"kong-ui-public-entity-empty-state"},Na={class:"entity-empty-state-content"},Ia={key:0,class:"empty-state-image"},Fa={key:1,class:"entity-empty-state-title"},Oa={key:2,class:"entity-empty-state-description"},La={key:3,class:"entity-empty-state-pricing"},Da={key:0,class:"entity-empty-state-message"},Va={key:1,class:"entity-empty-state-action"},Ra={class:"entity-empty-state-card-container"},Ka={key:0,class:"feature-icon"},Ma={class:"card-header"},va=["title"],ja={key:2,class:"entity-empty-state-bottom-container"},Ua=Y(t.defineComponent({__name:"EntityEmptyState",props:{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}}=O.useI18n(),i=t.ref(!1),o=t.computed(()=>i.value&&!!n.actionButtonText);return t.onBeforeMount(async()=>{i.value=await n.canCreate()}),(l,a)=>{const c=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",$a,[t.createElementVNode("div",Na,[l.$slots.image?(t.openBlock(),t.createElementBlock("div",Ia,[t.renderSlot(l.$slots,"image",{},void 0,!0)])):t.createCommentVNode("",!0),e.title||l.$slots.title?(t.openBlock(),t.createElementBlock("div",Fa,[t.createElementVNode("h1",null,[t.renderSlot(l.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)])])):t.createCommentVNode("",!0),e.description||l.$slots.default?(t.openBlock(),t.createElementBlock("div",Oa,[t.renderSlot(l.$slots,"default",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),e.pricing||l.$slots.pricing?(t.openBlock(),t.createElementBlock("div",La,[t.createElementVNode("p",null,[t.createElementVNode("b",null,t.toDisplayString(t.unref(r)("emptyState.pricingTitle")),1),a[2]||(a[2]=t.createTextVNode()),t.renderSlot(l.$slots,"pricing",{},()=>[t.createTextVNode(t.toDisplayString(e.pricing),1)],!0)])])):t.createCommentVNode("",!0)]),l.$slots.message?(t.openBlock(),t.createElementBlock("div",Da,[t.renderSlot(l.$slots,"message",{},void 0,!0)])):t.createCommentVNode("",!0),o.value||e.learnMore||l.$slots.actions?(t.openBlock(),t.createElementBlock("div",Va,[t.renderSlot(l.$slots,"actions",{},()=>[o.value?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:0,appearance:"primary","data-testid":"entity-create-button",size:"large",onClick:a[0]||(a[0]=s=>l.$emit("click:create"))},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.AddIcon)),t.createTextVNode(" "+t.toDisplayString(e.actionButtonText),1)]),_:1})):t.createCommentVNode("",!0),e.learnMore?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:1,appearance:"secondary","data-testid":"entity-learn-more-button",size:"large",onClick:a[1]||(a[1]=s=>l.$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})):t.createCommentVNode("",!0)],!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Ra,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.features,(s,u)=>(t.openBlock(),t.createBlock(c,{key:s,class:"entity-empty-state-card"},{title:t.withCtx(()=>[l.$slots[`feature-${u}-icon`]?(t.openBlock(),t.createElementBlock("div",Ka,[t.renderSlot(l.$slots,`feature-${u}-icon`,{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Ma,t.toDisplayString(s.title),1)]),default:t.withCtx(()=>[t.createElementVNode("div",{title:s.description},t.toDisplayString(s.description),9,va)]),_:2},1024))),128))]),l.$slots.bottom?(t.openBlock(),t.createElementBlock("div",ja,[t.renderSlot(l.$slots,"bottom",{},void 0,!0)])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-70945461"]]),Pa={key:1},qa=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",Pa,"-"))}}}),{useAxios:Ha,useDeleteUrlBuilder:Ya,useErrors:Wa,useExternalLinkCreator:za,useFetchUrlBuilder:Ja,useFetcher:Ga,useFetcherCacheKey:Qa,useDebouncedFilter:Za,useStringHelpers:Xa,useHelpers:el,useGatewayFeatureSupported:tl,useTruncationDetector:nl,useValidators:rl,useSchemaProvider:il,useTableState:ol}=O;A.ConfigCardDisplay=un,A.ConfigCardItem=Ae,A.ConfigurationSchemaSection=H,A.ConfigurationSchemaType=F,A.EntityBaseConfigCard=Ko,A.EntityBaseForm=jo,A.EntityBaseFormType=We,A.EntityBaseTable=Yo,A.EntityDeleteModal=Jo,A.EntityEmptyState=Ua,A.EntityFilter=da,A.EntityFormSection=Sa,A.EntityLink=Ta,A.EntityToggleModal=ua,A.EntityTypes=Ye,A.FetcherStatus=z,A.InternalLinkItem=lt,A.JsonCodeBlock=Be,A.PermissionsWrapper=fa,A.SupportedEntityType=fe,A.SupportedEntityTypesArray=ae,A.TableTags=qa,A.TerraformCodeBlock=Ue,A.YamlCodeBlock=je,A.useAxios=Ha,A.useDebouncedFilter=Za,A.useDeleteUrlBuilder=Ya,A.useErrors=Wa,A.useExternalLinkCreator=za,A.useFetchUrlBuilder=Ja,A.useFetcher=Ga,A.useFetcherCacheKey=Qa,A.useGatewayFeatureSupported=tl,A.useHelpers=el,A.useSchemaProvider=il,A.useStringHelpers=Xa,A.useTableState=ol,A.useTruncationDetector=nl,A.useValidators=rl,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|
|
51
|
+
`,u});return(c,s)=>{const u=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",No,[n.entityRecord?(t.openBlock(),t.createBlock(u,{key:0,id:"terraform-codeblock",code:a.value,language:"terraform",theme:"dark"},null,8,["code"])):t.createCommentVNode("",!0)])}}}),Io={key:0,class:"config-card-display-form"},Fo=["data-testid"],Oo={key:0,class:"config-card-prop-section-title"},un=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:""}},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",Io,[(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",Oo,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],u=>(t.openBlock(),t.createBlock(Ae,{key:u.key,item:u},t.createSlots({label:t.withCtx(()=>[t.renderSlot(a.$slots,`${u.key}-label`,{row:u},void 0,!0)]),[u.key]:t.withCtx(({rowValue:f})=>[t.renderSlot(a.$slots,u.key,{row:u,rowValue:f},void 0,!0)]),_:2},[o(u)?{name:"label-tooltip",fn:t.withCtx(()=>[t.renderSlot(a.$slots,`${u.key}-label-tooltip`,{row:u},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))),128))],10,Fo))),128))])):t.createCommentVNode("",!0),e.format==="json"&&l.value?(t.openBlock(),t.createBlock(Be,{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"]]),Lo={class:"config-card-title","data-testid":"config-card-title"},Do={class:"config-card-actions"},Vo=["href"],Ro={class:"config-card-details-section"},Ko=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:""},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 _;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((_=i.config)==null?void 0:_.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 u=t.ref("structured"),f=g=>{u.value=g==null?void 0:g.value},d={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}},m=t.ref(!1),p=t.ref(!1),C=t.ref(""),y=t.ref({}),x=t.computed(()=>{var k,w,$;if(!y.value)return[];const g=[],h=Object.keys(y.value).length;for(const N in y.value){const I=(w=(k=i.configSchema)==null?void 0:k[N])==null?void 0:w.order,K=($=d[N])==null?void 0:$.order;let L=h;(K||K===0)&&(L=K===-1?h+1:K),I&&(L=I===-1?h+1:I),g.push([N,L])}return g.sort(function(N,I){return N[1]-I[1]}),g.map(N=>{var xe,mn;const I=N[0],K=(xe=y.value)==null?void 0:xe[I],L=((mn=i.configSchema)==null?void 0:mn[I])||{},V=d[I];return{key:I,value:K,hidden:L.hidden||!1,type:L.type??((V==null?void 0:V.type)||F.Text),label:L.label??((V==null?void 0:V.label)||a(I)),tooltip:L.tooltip??((V==null?void 0:V.tooltip)||void 0),section:L.section??((V==null?void 0:V.section)||H.Advanced)}}).filter(N=>!N.hidden&&N.key!==i.pluginConfigKey)}),B=t.computed(()=>{var w,$;if(!y.value||!i.pluginConfigKey)return[];const g=y.value[i.pluginConfigKey]||{},h=Object.keys(g).length,k=[];for(const N in g){const I=($=(w=i.pluginConfigSchema)==null?void 0:w[N])==null?void 0:$.order,K=g[N];let L=K!=null&&K!==""?h-1:h;I&&(L=I===-1?h+1:I),k.push([N,L])}return k.sort(function(N,I){return N[1]-I[1]}),k.map(N=>{var V;const I=N[0],K=g[I],L=((V=i.pluginConfigSchema)==null?void 0:V[I])||{};return{key:I,value:K,hidden:L.hidden||!1,type:L.type??F.Text,label:L.label??a(I),tooltip:L.tooltip??void 0,section:H.Plugin}}).filter(N=>!N.hidden)}),b=t.computed(()=>{var g,h,k,w;return{basic:(g=x.value)==null?void 0:g.filter($=>$.section===H.Basic),advanced:(h=x.value)==null?void 0:h.filter($=>$.section===H.Advanced),plugin:(w=B.value)==null?void 0:w.concat((k=x.value)==null?void 0:k.filter($=>$.section===H.Plugin))}}),T=t.computed(()=>{const g=[];return b.value.basic.length&&g.push("basic"),b.value.advanced.length&&g.push("advanced"),b.value.plugin.length&&g.push("plugin"),g}),E=t.computed(()=>{var h,k;let g=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,((h=i.config)==null?void 0:h.controlPlaneId)||""):i.config.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,(k=i.config)!=null&&k.workspace?`/${i.config.workspace}`:"")),g=g.replace(/{id}/gi,i.config.entityId),g});return t.watch(m,g=>{r("loading",g)},{immediate:!0}),t.onBeforeMount(async()=>{p.value=!1,m.value=!0;try{const{data:g}=await c.get(E.value);if(i.dataKey)if(typeof g[i.dataKey]<"u")y.value={...g[i.dataKey]};else throw new Error(o("errors.dataKeyUndefined",{dataKey:i.dataKey}));else y.value={...g};Object.keys(i.configSchema).filter(k=>i.configSchema[k].forceShow).forEach(k=>{y.value&&typeof y.value[k]>"u"&&(y.value[k]=null)}),r("fetch:success",g)}catch(g){const h=l(g);C.value=h.startsWith("code")?o("baseConfigCard.errors.load"):h,p.value=!0,r("fetch:error",g)}finally{m.value=!1}}),(g,h)=>{const k=t.resolveComponent("KLabel"),w=t.resolveComponent("KSelect"),$=t.resolveComponent("KButton"),N=t.resolveComponent("KSkeleton"),I=t.resolveComponent("KEmptyState"),K=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(K,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",Do,[t.renderSlot(g.$slots,"actions",{},void 0,!0),t.createVNode(k,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(w,{"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(Wn)},null,8,["size"])],8,Vo)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[m.value?(t.openBlock(),t.createBlock(N,{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(C.value),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",Ro,[t.createVNode(un,{config:e.config,"entity-type":e.entityType,"fetcher-url":E.value,format:u.value,"prop-list-types":T.value,"property-collections":b.value,record:y.value},t.createSlots({_:2},[t.renderList(Object.keys(g.$slots),L=>({name:L,fn:t.withCtx(({row:V,rowValue:xe})=>[t.renderSlot(g.$slots,L,{row:V,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",Lo,[t.renderSlot(g.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-7ef5c755"]]),Mo=["novalidate"],vo={class:"form-actions","data-testid":"form-actions"},jo=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"}},emits:["loading","fetch:success","fetch:error","submit","cancel"],setup(e,{emit:n}){var E;const r=n,i=e,o=hn.useRouter(),{i18n:{t:l}}=O.useI18n(),{getMessageFromError:a}=O.useErrors(),{axiosInstance:c}=O.useAxios((E=i.config)==null?void 0:E.axiosRequestConfig),s=t.ref(!1),u=t.computed(()=>!!i.editId),f=t.ref(!1),d=t.ref(""),m=t.computed(()=>i.canSubmit===!1||i.isReadonly),p=t.ref(!1),C=t.computed(()=>{var g,h;let _=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?_=_.replace(/{controlPlaneId}/gi,((g=i.config)==null?void 0:g.controlPlaneId)||""):i.config.app==="kongManager"&&(_=_.replace(/\/{workspace}/gi,(h=i.config)!=null&&h.workspace?`/${i.config.workspace}`:"")),i.editId?(_=_.replace(/{id}/gi,i.editId),_):(_=_.replace(/\/{id}/gi,""),_)}),y=()=>{p.value=!p.value},x=()=>{i.config.cancelRoute?o.push(i.config.cancelRoute):B()},B=()=>{r("cancel")},b=()=>{m.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!==fe.Other&&T.value.splice(1,0,{title:l("baseForm.configuration.terraform"),hash:"#terraform"}),t.watch(()=>s.value,_=>{r("loading",_)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{f.value=!1,s.value=!0;const{data:_}=await c.get(C.value);r("fetch:success",_)}catch(_){const g=a(_);d.value=g.startsWith("code")?l("baseForm.errors.edit"):g,f.value=!0,r("fetch:error",_)}finally{s.value=!1}}),(_,g)=>{const h=t.resolveComponent("KSkeleton"),k=t.resolveComponent("KEmptyState"),w=t.resolveComponent("KAlert"),$=t.resolveComponent("KButton"),N=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(h,{key:0,type:"form"})):f.value?(t.openBlock(),t.createBlock(k,{key:1,"action-button-text":t.unref(l)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:x},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(d.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(B,["prevent"]),onSubmit:t.withModifiers(b,["prevent"])},[t.renderSlot(_.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(w,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),t.createElementVNode("div",vo,[t.renderSlot(_.$slots,"form-actions",{},()=>[t.createVNode($,{appearance:"tertiary","data-testid":`${e.entityType}-${u.value?"edit":"create"}-form-view-configuration`,onClick:g[0]||(g[0]=K=>y())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode($,{appearance:"secondary","data-testid":`${e.entityType}-${u.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($,{appearance:"primary","data-testid":`${e.entityType}-${u.value?"edit":"create"}-form-submit`,disabled:m.value,type:"submit"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)])],40,Mo)),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:g[1]||(g[1]=K=>y())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(l)("baseForm.configuration.message")),1),t.createVNode(N,{"data-testid":"form-view-configuration-slideout-tabs",tabs:T.value},{json:t.withCtx(()=>[t.createVNode(Be,{config:e.config,"entity-record":i.formFields,"fetcher-url":C.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"]]),Uo=["data-truncate"],Po=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 x;return((x=n.rowEl)==null?void 0:x.querySelector(`[data-testid="${n.keyName}"]`))||null}),i=t.computed(()=>{var x;return((x=r.value)==null?void 0:x.querySelector('[data-truncate="true"]'))||null}),o=t.computed(()=>{var B,b;const x=(B=n.rowEl)==null?void 0:B.querySelectorAll("td");return x?((b=x[0])==null?void 0:b.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 B,b,T;let x=((B=r.value)==null?void 0:B.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const E=window.getComputedStyle(r.value);x-=(parseFloat(E.paddingLeft)||0)+(parseFloat(E.paddingRight)||0)}f.value=((b=i.value)==null?void 0:b.getBoundingClientRect().width)||0,d.value=x,m.value=((T=u.value)==null?void 0:T.innerText)||""},u=t.ref({}),f=t.ref(0),d=t.ref(0),m=t.ref(""),p=t.computed(()=>[i.value,r.value]),C=t.watch(p,x=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(B=>{window.requestAnimationFrame(()=>{!Array.isArray(B)||!B.length||s()})});for(const B of x)B&&a.observe(B)}},{immediate:!0,flush:"post",deep:!0}),y=t.computed(()=>l.value?f.value>d.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{C()}),(x,B)=>{const b=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:u,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(b,{"max-width":"300",placement:"bottom-start",text:y.value?m.value:""},{default:t.withCtx(()=>[t.renderSlot(x.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,Uo)):t.renderSlot(x.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-b252463e"]]),qo={class:"toolbar-container"},Ho={key:0,class:"toolbar-button-container"},Yo=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"],setup(e,{emit:n}){const r=e,i=n,{i18n:{t:o}}=O.useI18n(),l=t.computed(()=>{var h,k;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(h=r.errorMessage)==null?void 0:h.title,message:(k=r.errorMessage)==null?void 0:k.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=t.computed(()=>{const h=[];return Object.keys(r.tableHeaders).forEach(w=>{const $=r.tableHeaders[w];h.push({label:$.label??w,key:w,sortable:$.sortable??!1,hidable:$.hidable??!0})}),r.enableEntityActions&&h.push({key:"actions",hideLabel:!0}),h}),s=h=>({"data-rowid":h.id,"data-testid":h.name,...r.rowAttributes(h)}),u=t.ref({}),f=h=>{var k;return(k=u.value)==null?void 0:k.$el.querySelector(`[data-rowid="${h.id}"]`)},d=h=>{const k={"data-testid":h.headerKey,...r.cellAttributes(h)};return h.colIndex===0&&(k.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),k},m=()=>{i("empty-state-cta-clicked"),p()},p=()=>{i("clear-search-input")},C=t.computed(()=>r.disableRowClick?void 0:(h,k)=>{i("click:row",k)}),y=h=>{i("sort",h)},{hideTableToolbar:x,handleStateChange:B}=O.useTableState(()=>r.query),{setTablePreferences:b,getTablePreferences:T}=bn(),E=t.ref(T(a.value,r.defaultTablePreferences)),_=t.computed(()=>{const h=T(a.value);return{...r.initialFetcherParams,...h}}),g=h=>{E.value=h,c.value.forEach(k=>{!("hidable"in k)||!E.value.columnVisibility||k.hidable===!1&&(E.value.columnVisibility[k.key]=!0)}),a.value&&b(a.value,h)};return(h,k)=>{const w=t.resolveComponent("KTableData"),$=t.resolveComponent("KCard");return t.openBlock(),t.createBlock($,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(w,{ref_key:"tableRefs",ref:u,"cache-identifier":a.value,"cell-attrs":d,"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(x),"initial-fetcher-params":_.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":E.value,onEmptyStateActionClick:m,"onRow:click":C.value,onSort:k[0]||(k[0]=N=>y(N)),onState:t.unref(B),"onUpdate:tablePreferences":g},t.createSlots({toolbar:t.withCtx(()=>[t.createElementVNode("div",qo,[t.renderSlot(h.$slots,"toolbar-filter",{},void 0,!0),h.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",Ho,[t.renderSlot(h.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)])]),"action-items":t.withCtx(({row:N})=>[t.renderSlot(h.$slots,"actions",{row:N},void 0,!0)]),_:2},[t.renderList(e.tableHeaders,(N,I)=>({name:I,fn:t.withCtx(({row:K,rowKey:L,rowValue:V})=>[t.createVNode(Po,{"key-name":String(I),"row-el":f(K),tooltip:N.tooltip},{default:t.withCtx(()=>[t.renderSlot(h.$slots,I,{row:K,rowKey:L,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(Z.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","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click","onState"])]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-cb9940b5"]]),Wo={key:0,class:"kong-ui-entity-delete-error"},zo={key:1,class:"description"},Jo=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,u)=>{const f=t.resolveComponent("KAlert"),d=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(d,{"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",Wo,[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",zo,[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"]]),Go={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},Qo={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},Zo=["fill"],Xo={mask:"url(#mask0_180_20349)"},ea=["fill"],fn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${jn})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",Go,[t.createElementVNode("mask",Qo,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,Zo)]),t.createElementVNode("g",Xo,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,ea)])]))}}),ta={key:1,class:"kong-ui-entity-filter"},na={class:"kong-ui-entity-filter-menu"},ra=["data-testid"],ia=["onClick","onKeydown"],oa={class:"menu-item-indicator"},aa={class:"menu-item-body"},la=["for"],ca={class:"menu-item-buttons"},sa={class:"filter-clear-button-container"},da=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 E=[];return new URLSearchParams(i.modelValue).forEach((_,g)=>{_!==""&&E.push(g)}),E}),u=t.computed(()=>{const E=i.config.fields;return Object.keys(E).filter(_=>{var g;return(g=E==null?void 0:E[_])==null?void 0:g.searchable}).map(_=>({label:E[_].label||_,value:_,expanded:!1}))});t.watch(()=>i.modelValue,E=>{a.value={},new URLSearchParams(E).forEach((_,g)=>{a.value[g]=_})});const f=()=>{l.value=!l.value},d=E=>{c.value.has(E)?c.value.delete(E):c.value.add(E)},m=E=>{o("update:modelValue",E)},p=()=>{m("")},C=E=>`filter-${E}`,y=E=>{var _,g;return(((g=(_=i.config.schema)==null?void 0:_[E])==null?void 0:g.values)??[]).map(h=>({value:h,label:h}))},x=E=>{var _,g;return((g=(_=i.config.schema)==null?void 0:_[E])==null?void 0:g.type)??"text"},B=E=>{a.value={...a.value,[E]:""},T()},b=()=>{a.value={},T(!0)},T=(E=!1)=>{const _=Object.keys(a.value).reduce((g,h)=>(a.value[h]&&(g[h]=`${a.value[h]}`),g),{});E&&(l.value=!1),o("update:modelValue",new URLSearchParams(_).toString())};return(E,_)=>{const g=t.resolveComponent("KInput"),h=t.resolveComponent("KButton"),k=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(g,{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(fn)]),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",ta,[t.createVNode(h,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(fn),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",na,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,w=>{var $,N;return t.openBlock(),t.createElementBlock("div",{key:w.value,class:"kong-ui-entity-filter-menu-item","data-testid":w.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(w.value)}]),role:"button",tabindex:"0",onClick:I=>d(w.value),onKeydown:t.withKeys(I=>d(w.value),["enter"])},[t.createTextVNode(t.toDisplayString(w.label)+" ",1),t.withDirectives(t.createElementVNode("span",oa,null,512),[[t.vShow,s.value.includes(w.value)]]),t.createVNode(t.unref(Z.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(w.value)}]),color:t.unref(Pn)},null,8,["class","color"])],42,ia),t.withDirectives(t.createElementVNode("div",aa,[t.createElementVNode("label",{class:"menu-item-label",for:C(w.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,la),((N=($=e.config.schema)==null?void 0:$[w.value])==null?void 0:N.type)==="select"?(t.openBlock(),t.createBlock(k,{key:0,id:C(w.value),modelValue:a.value[w.value],"onUpdate:modelValue":I=>a.value[w.value]=I,items:y(w.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","items","placeholder"])):(t.openBlock(),t.createBlock(g,{key:1,id:C(w.value),modelValue:a.value[w.value],"onUpdate:modelValue":I=>a.value[w.value]=I,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:x(w.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(w.value)]]),t.withDirectives(t.createElementVNode("div",ca,[t.createVNode(h,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:_[0]||(_[0]=I=>T(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(h,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:I=>B(w.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:2},1032,["onClick"])],512),[[t.vShow,c.value.has(w.value)]])],8,ra)}),128)),t.createElementVNode("div",sa,[t.createVNode(h,{appearance:"tertiary",size:"small",onClick:b},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-10fa27a5"]]),ua=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")),u=()=>l("cancel"),f=async()=>{if(o.onConfirm){a.value=!0;try{await o.onConfirm(),l("proceed")}catch(d){console.error(d)}finally{a.value=!1}}};return(d,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:u,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"])])}}}),fa=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=[],Pe=0;Pe<256;++Pe)v.push((Pe+256).toString(16).slice(1));function pa(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,ma=new Uint8Array(16);function ha(){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(ma)}var ga=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const pn={randomUUID:ga};function ya(e,n,r){if(pn.randomUUID&&!n&&!e)return pn.randomUUID();e=e||{};var i=e.random||(e.rng||ha)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,pa(i)}const Ca=["aria-labelledby"],ba={class:"form-section-wrapper"},ka={key:1,class:"form-section-description"},xa={key:2,class:"form-section-footer"},wa={class:"form-section-content"},Sa=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=ya();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",ba,[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",ka,[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",xa,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",wa,[t.renderSlot(i.$slots,"default",{},void 0,!0)])])],10,Ca))}}),[["__scopeId","data-v-b1f74200"]]),_a={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Aa={key:0,class:"deleted-entity"},Ba={key:1},Ea=["onClick"],Ta=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 d;return(d=n.entityLinkData.id)!=null&&d.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),u=t.computed(()=>{var d;return`${(d=s.value)==null?void 0:d.toString().slice(0,5)} (deleted)`}),f=async d=>{await d(s.value||"")&&(a.value=o("global.actions.copyToClipboard"),setTimeout(()=>{a.value=l},1800))};return(d,m)=>{const p=t.resolveComponent("KTooltip"),C=t.resolveComponent("KExternalLink"),y=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",_a,[c.value?(t.openBlock(),t.createElementBlock("div",Aa,t.toDisplayString(u.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(C,{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",Ba,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(y,null,{default:t.withCtx(({copyToClipboard:x})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(B=>f(x),["stop"])},[t.createVNode(t.unref(Z.CopyIcon),{class:"copy-icon",color:t.unref(qn),"data-testid":"copy-id",size:t.unref(Yn)},null,8,["color","size"])],8,Ea)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-2e2c07e5"]]),$a={class:"kong-ui-public-entity-empty-state"},Na={class:"entity-empty-state-content"},Ia={key:0,class:"empty-state-image"},Fa={key:1,class:"entity-empty-state-title"},Oa={key:2,class:"entity-empty-state-description"},La={key:3,class:"entity-empty-state-pricing"},Da={key:0,class:"entity-empty-state-message"},Va={key:1,class:"entity-empty-state-action"},Ra={class:"entity-empty-state-card-container"},Ka={key:0,class:"feature-icon"},Ma={class:"card-header"},va=["title"],ja={key:2,class:"entity-empty-state-bottom-container"},Ua=Y(t.defineComponent({__name:"EntityEmptyState",props:{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}}=O.useI18n(),i=t.ref(!1),o=t.computed(()=>i.value&&!!n.actionButtonText);return t.onBeforeMount(async()=>{i.value=await n.canCreate()}),(l,a)=>{const c=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",$a,[t.createElementVNode("div",Na,[l.$slots.image?(t.openBlock(),t.createElementBlock("div",Ia,[t.renderSlot(l.$slots,"image",{},void 0,!0)])):t.createCommentVNode("",!0),e.title||l.$slots.title?(t.openBlock(),t.createElementBlock("div",Fa,[t.createElementVNode("h1",null,[t.renderSlot(l.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)])])):t.createCommentVNode("",!0),e.description||l.$slots.default?(t.openBlock(),t.createElementBlock("div",Oa,[t.renderSlot(l.$slots,"default",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),e.pricing||l.$slots.pricing?(t.openBlock(),t.createElementBlock("div",La,[t.createElementVNode("p",null,[t.createElementVNode("b",null,t.toDisplayString(t.unref(r)("emptyState.pricingTitle")),1),a[2]||(a[2]=t.createTextVNode()),t.renderSlot(l.$slots,"pricing",{},()=>[t.createTextVNode(t.toDisplayString(e.pricing),1)],!0)])])):t.createCommentVNode("",!0)]),l.$slots.message?(t.openBlock(),t.createElementBlock("div",Da,[t.renderSlot(l.$slots,"message",{},void 0,!0)])):t.createCommentVNode("",!0),o.value||e.learnMore||l.$slots.actions?(t.openBlock(),t.createElementBlock("div",Va,[t.renderSlot(l.$slots,"actions",{},()=>[o.value?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:0,appearance:"primary","data-testid":"entity-create-button",size:"large",onClick:a[0]||(a[0]=s=>l.$emit("click:create"))},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.AddIcon)),t.createTextVNode(" "+t.toDisplayString(e.actionButtonText),1)]),_:1})):t.createCommentVNode("",!0),e.learnMore?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:1,appearance:"secondary","data-testid":"entity-learn-more-button",size:"large",onClick:a[1]||(a[1]=s=>l.$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})):t.createCommentVNode("",!0)],!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Ra,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.features,(s,u)=>(t.openBlock(),t.createBlock(c,{key:s,class:"entity-empty-state-card"},{title:t.withCtx(()=>[l.$slots[`feature-${u}-icon`]?(t.openBlock(),t.createElementBlock("div",Ka,[t.renderSlot(l.$slots,`feature-${u}-icon`,{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Ma,t.toDisplayString(s.title),1)]),default:t.withCtx(()=>[t.createElementVNode("div",{title:s.description},t.toDisplayString(s.description),9,va)]),_:2},1024))),128))]),l.$slots.bottom?(t.openBlock(),t.createElementBlock("div",ja,[t.renderSlot(l.$slots,"bottom",{},void 0,!0)])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-70945461"]]),Pa={key:1},qa=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",Pa,"-"))}}}),{useAxios:Ha,useDeleteUrlBuilder:Ya,useErrors:Wa,useExternalLinkCreator:za,useFetchUrlBuilder:Ja,useFetcher:Ga,useFetcherCacheKey:Qa,useDebouncedFilter:Za,useStringHelpers:Xa,useHelpers:el,useGatewayFeatureSupported:tl,useTruncationDetector:nl,useValidators:rl,useSchemaProvider:il,useTableState:ol}=O;A.ConfigCardDisplay=un,A.ConfigCardItem=Ae,A.ConfigurationSchemaSection=H,A.ConfigurationSchemaType=F,A.EntityBaseConfigCard=Ko,A.EntityBaseForm=jo,A.EntityBaseFormType=We,A.EntityBaseTable=Yo,A.EntityDeleteModal=Jo,A.EntityEmptyState=Ua,A.EntityFilter=da,A.EntityFormSection=Sa,A.EntityLink=Ta,A.EntityToggleModal=ua,A.EntityTypes=Ye,A.FetcherStatus=z,A.InternalLinkItem=lt,A.JsonCodeBlock=Be,A.PermissionsWrapper=fa,A.SupportedEntityType=fe,A.SupportedEntityTypesArray=ae,A.TableTags=qa,A.TerraformCodeBlock=Ue,A.YamlCodeBlock=je,A.useAxios=Ha,A.useDebouncedFilter=Za,A.useDeleteUrlBuilder=Ya,A.useErrors=Wa,A.useExternalLinkCreator=za,A.useFetchUrlBuilder=Ja,A.useFetcher=Ga,A.useFetcherCacheKey=Qa,A.useGatewayFeatureSupported=tl,A.useHelpers=el,A.useSchemaProvider=il,A.useStringHelpers=Xa,A.useTableState=ol,A.useTruncationDetector=nl,A.useValidators=rl,Object.defineProperty(A,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-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{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-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{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-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .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(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{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-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .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-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .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-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-0998625e]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-0998625e]{margin-left:auto}.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-2e2c07e5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-2e2c07e5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-2e2c07e5]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-2e2c07e5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-2e2c07e5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-70945461]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:48px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-70945461]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-70945461]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-70945461]{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-70945461]{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-description[data-v-70945461],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-70945461]{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-70945461],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-70945461]{margin:6px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-70945461]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-70945461]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-70945461]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-70945461]{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-70945461]{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-70945461] .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-70945461] .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-70945461] .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-70945461]{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-70945461]{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-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{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-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{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-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .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(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{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-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .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-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .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-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-cb9940b5]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-cb9940b5]{margin-left:auto}.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-2e2c07e5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-2e2c07e5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-2e2c07e5]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-2e2c07e5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-2e2c07e5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-70945461]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:48px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-70945461]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-70945461]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-70945461]{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-70945461]{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-description[data-v-70945461],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-70945461]{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-70945461],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-70945461]{margin:6px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-70945461]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-70945461]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-70945461]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-70945461]{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-70945461]{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-70945461] .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-70945461] .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-70945461] .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-70945461]{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-70945461]{width:640px}}
|
|
@@ -283,7 +283,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
283
283
|
preferencesStorageKey: {
|
|
284
284
|
type: StringConstructor;
|
|
285
285
|
default: string;
|
|
286
|
-
required: true;
|
|
287
286
|
};
|
|
288
287
|
/** default table preferences to use if no user preferences are found */
|
|
289
288
|
defaultTablePreferences: {
|
|
@@ -399,7 +398,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
399
398
|
preferencesStorageKey: {
|
|
400
399
|
type: StringConstructor;
|
|
401
400
|
default: string;
|
|
402
|
-
required: true;
|
|
403
401
|
};
|
|
404
402
|
/** default table preferences to use if no user preferences are found */
|
|
405
403
|
defaultTablePreferences: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityBaseTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-base-table/EntityBaseTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityBaseTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-base-table/EntityBaseTable.vue"],"names":[],"mappings":"AAmZA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAInC,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,EAElB,MAAM,aAAa,CAAA;AAuZpB,iBAAS,cAAc;;;;;UAuK+D,GAAG;kCAElD,GAAG;kCACH,GAAG;;;YACZ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAjlBjC,8BA5W4C;;;;;;;8CA4W5C,8BAnWkC;;;;;;;;;0CAmWlC,8BApVmB;;2EAoVnB,8BA5UO;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwxBwpD,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CA5crxD,8BA5XmC;;;;;;WAu9BrB,OAAO,IAA6B;EAEjD;AA4JD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;cAcD,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"}
|