@kong-ui-public/entities-shared 3.3.4 → 3.3.5-pr.1431.0d025a4c.0
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.
|
@@ -3645,7 +3645,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3645
3645
|
}, [
|
|
3646
3646
|
B(w, {
|
|
3647
3647
|
"max-width": "300",
|
|
3648
|
-
placement: "
|
|
3648
|
+
placement: "bottom-start",
|
|
3649
3649
|
text: v.value ? g.value : ""
|
|
3650
3650
|
}, {
|
|
3651
3651
|
default: b(() => [
|
|
@@ -3657,7 +3657,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3657
3657
|
], 512);
|
|
3658
3658
|
};
|
|
3659
3659
|
}
|
|
3660
|
-
}), ul = /* @__PURE__ */ ae(cl, [["__scopeId", "data-v-
|
|
3660
|
+
}), ul = /* @__PURE__ */ ae(cl, [["__scopeId", "data-v-760084ce"]]), dl = { class: "toolbar-container" }, fl = {
|
|
3661
3661
|
key: 0,
|
|
3662
3662
|
class: "toolbar-button-container"
|
|
3663
3663
|
}, pl = ["data-testid"], hl = /* @__PURE__ */ P({
|
|
@@ -3894,7 +3894,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3894
3894
|
"data-testid": A.name
|
|
3895
3895
|
}, [
|
|
3896
3896
|
B(x, {
|
|
3897
|
-
"kpop-attributes": { placement: "
|
|
3897
|
+
"kpop-attributes": { placement: "bottom-end" },
|
|
3898
3898
|
width: e.dropdownMenuWidth
|
|
3899
3899
|
}, {
|
|
3900
3900
|
items: b(() => [
|
|
@@ -3958,7 +3958,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3958
3958
|
}, 8, ["title", "title-tag"]);
|
|
3959
3959
|
};
|
|
3960
3960
|
}
|
|
3961
|
-
}), ns = /* @__PURE__ */ ae(hl, [["__scopeId", "data-v-
|
|
3961
|
+
}), ns = /* @__PURE__ */ ae(hl, [["__scopeId", "data-v-940ccab7"]]), ml = {
|
|
3962
3962
|
key: 0,
|
|
3963
3963
|
class: "kong-ui-entity-delete-error"
|
|
3964
3964
|
}, gl = {
|
|
@@ -4585,7 +4585,7 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
|
|
|
4585
4585
|
key: o.value,
|
|
4586
4586
|
class: "copy-uuid-tooltip",
|
|
4587
4587
|
"max-width": "160",
|
|
4588
|
-
placement: "
|
|
4588
|
+
placement: "bottom-end",
|
|
4589
4589
|
text: o.value
|
|
4590
4590
|
}, {
|
|
4591
4591
|
default: b(() => [
|
|
@@ -4611,7 +4611,7 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
|
|
|
4611
4611
|
]);
|
|
4612
4612
|
};
|
|
4613
4613
|
}
|
|
4614
|
-
}), ss = /* @__PURE__ */ ae(Wl, [["__scopeId", "data-v-
|
|
4614
|
+
}), ss = /* @__PURE__ */ ae(Wl, [["__scopeId", "data-v-60e3ef7c"]]), { useAxios: cs, useDeleteUrlBuilder: us, useErrors: ds, useExternalLinkCreator: fs, useFetchUrlBuilder: ps, useFetcher: hs, useDebouncedFilter: ms, useStringHelpers: gs, useHelpers: ys, useGatewayFeatureSupported: vs, useTruncationDetector: bs, useValidators: xs } = Y;
|
|
4615
4615
|
export {
|
|
4616
4616
|
yo as ConfigCardDisplay,
|
|
4617
4617
|
Dt as ConfigCardItem,
|
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
`+e.slice(o,a),o=a+1),l=c;return s+=`
|
|
30
30
|
`,e.length-o>n&&l>o?s+=e.slice(o,l)+`
|
|
31
31
|
`+e.slice(l+1):s+=e.slice(o),s.slice(1)}function Ji(e){for(var n="",r=0,i,o=0;o<e.length;r>=65536?o+=2:o++)r=de(e,o),i=U[r],!i&&se(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=i||Ki(r);return n}function Gi(e,n,r){var i="",o=e.tag,a,l,c;for(a=0,l=r.length;a<l;a+=1)c=r[a],e.replacer&&(c=e.replacer.call(r,String(a),c)),(W(e,n,c,!1,!1)||typeof c>"u"&&W(e,n,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=o,e.dump="["+i+"]"}function en(e,n,r,i){var o="",a=e.tag,l,c,s;for(l=0,c=r.length;l<c;l+=1)s=r[l],e.replacer&&(s=e.replacer.call(r,String(l),s)),(W(e,n+1,s,!0,!0,!1,!0)||typeof s>"u"&&W(e,n+1,null,!0,!0,!1,!0))&&((!i||o!=="")&&(o+=Le(e,n)),e.dump&&le===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=a,e.dump=o||"[]"}function Zi(e,n,r){var i="",o=e.tag,a=Object.keys(r),l,c,s,u,f;for(l=0,c=a.length;l<c;l+=1)f="",i!==""&&(f+=", "),e.condenseFlow&&(f+='"'),s=a[l],u=r[s],e.replacer&&(u=e.replacer.call(r,s,u)),W(e,n,s,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),W(e,n,u,!1,!1)&&(f+=e.dump,i+=f));e.tag=o,e.dump="{"+i+"}"}function Qi(e,n,r,i){var o="",a=e.tag,l=Object.keys(r),c,s,u,f,d,g;if(e.sortKeys===!0)l.sort();else if(typeof e.sortKeys=="function")l.sort(e.sortKeys);else if(e.sortKeys)throw new q("sortKeys must be a boolean or a function");for(c=0,s=l.length;c<s;c+=1)g="",(!i||o!=="")&&(g+=Le(e,n)),u=l[c],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),W(e,n+1,u,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&le===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,d&&(g+=Le(e,n)),W(e,n+1,f,!0,d)&&(e.dump&&le===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,o+=g));e.tag=a,e.dump=o||"{}"}function tn(e,n,r){var i,o,a,l,c,s;for(o=r?e.explicitTypes:e.implicitTypes,a=0,l=o.length;a<l;a+=1)if(c=o[a],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof n=="object"&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(r?c.multi&&c.representName?e.tag=c.representName(n):e.tag=c.tag:e.tag="?",c.represent){if(s=e.styleMap[c.tag]||c.defaultStyle,vt.call(c.represent)==="[object Function]")i=c.represent(n,s);else if(Mt.call(c.represent,s))i=c.represent[s](n,s);else throw new q("!<"+c.tag+'> tag resolver accepts not "'+s+'" style');e.dump=i}return!0}return!1}function W(e,n,r,i,o,a,l){e.tag=null,e.dump=r,tn(e,r,!1)||tn(e,r,!0);var c=vt.call(e.dump),s=i,u;i&&(i=e.flowLevel<0||e.flowLevel>n);var f=c==="[object Object]"||c==="[object Array]",d,g;if(f&&(d=e.duplicates.indexOf(r),g=d!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&n>0)&&(o=!1),g&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(f&&g&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),c==="[object Object]")i&&Object.keys(e.dump).length!==0?(Qi(e,n,e.dump,o),g&&(e.dump="&ref_"+d+e.dump)):(Zi(e,n,e.dump),g&&(e.dump="&ref_"+d+" "+e.dump));else if(c==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!l&&n>0?en(e,n-1,e.dump,o):en(e,n,e.dump,o),g&&(e.dump="&ref_"+d+e.dump)):(Gi(e,n,e.dump),g&&(e.dump="&ref_"+d+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&Yi(e,e.dump,n,a,s);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new q("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function Xi(e,n){var r=[],i=[],o,a;for(Ve(e,r,i),o=0,a=i.length;o<a;o+=1)n.duplicates.push(r[i[o]]);n.usedDuplicates=new Array(a)}function Ve(e,n,r){var i,o,a;if(e!==null&&typeof e=="object")if(o=n.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(n.push(e),Array.isArray(e))for(o=0,a=e.length;o<a;o+=1)Ve(e[o],n,r);else for(i=Object.keys(e),o=0,a=i.length;o<a;o+=1)Ve(e[i[o]],n,r)}function eo(e,n){n=n||{};var r=new qi(n);r.noRefs||Xi(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),W(r,0,i,!0,!0)?r.dump+`
|
|
32
|
-
`:""}var to=eo,no={dump:to};function De(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var ro=R,io=rt,oo=lt,ao=ft,lo=pt,co=Be,so=Dt.load,uo=Dt.loadAll,fo=no.dump,po=q,mo={binary:Ct,float:ut,map:at,null:ct,pairs:xt,set:kt,timestamp:gt,bool:st,int:dt,merge:yt,omap:bt,seq:ot,str:it},ho=De("safeLoad","load"),go=De("safeLoadAll","loadAll"),yo=De("safeDump","dump"),Co={Type:ro,Schema:io,FAILSAFE_SCHEMA:oo,JSON_SCHEMA:ao,CORE_SCHEMA:lo,DEFAULT_SCHEMA:co,load:so,loadAll:uo,dump:fo,YAMLException:po,types:mo,safeLoad:ho,safeLoadAll:go,safeDump:yo};const bo={class:"yaml-config"},ve=t.defineComponent({__name:"YamlCodeBlock",props:{yamlRecord:{type:Object,required:!0}},setup(e){const n=e,r=t.computed(()=>{const i=Object.fromEntries(Object.entries(n.yamlRecord).filter(([,o])=>o!==null&&o!==""&&(Array.isArray(o)?o.length!==0:!0)));return Object.keys(i).length===0&&i.constructor===Object?"":Co.dump(i).trim()});return(i,o)=>{const a=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",bo,[n.yamlRecord?(t.openBlock(),t.createBlock(a,{key:0,id:"yaml-codeblock",code:r.value,language:"yaml",theme:"dark"},null,8,["code"])):t.createCommentVNode("",!0)])}}}),xo={key:0,class:"config-card-display-form"},ko=["data-testid"],wo={key:0,class:"config-card-prop-section-title"},nn=H(t.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},propertyCollections:{type:Object,required:!1,default:()=>null},format:{type:String,required:!1,default:"structured",validator:e=>["structured","yaml","json"].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=l=>!!(l.tooltip||r[`${l.key}-label-tooltip`]),a=t.computed(()=>{if(!n.record)return n.record;const l=JSON.parse(JSON.stringify(n.record));return delete l.created_at,delete l.updated_at,l});return(l,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.format==="structured"?(t.openBlock(),t.createElementBlock("div",xo,[(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",wo,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(ke,{key:u.key,item:u},t.createSlots({label:t.withCtx(()=>[t.renderSlot(l.$slots,`${u.key}-label`,{row:u},void 0,!0)]),[u.key]:t.withCtx(({rowValue:f})=>[t.renderSlot(l.$slots,u.key,{row:u,rowValue:f},void 0,!0)]),_:2},[o(u)?{name:"label-tooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,`${u.key}-label-tooltip`,{row:u},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))),128))],10,ko))),128))])):t.createCommentVNode("",!0),e.format==="json"&&n.record?(t.openBlock(),t.createBlock(we,{key:1,config:n.config,"fetcher-url":n.fetcherUrl,"json-record":a.value,"request-method":"get"},null,8,["config","fetcher-url","json-record"])):t.createCommentVNode("",!0),e.format==="yaml"&&n.record?(t.openBlock(),t.createBlock(ve,{key:2,"yaml-record":a.value},null,8,["yaml-record"])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-2052238b"]]),z="24px",oe=(e,n)=>{const r=e.__vccOpts||e;for(const[i,o]of n)r[i]=o;return r},So=e=>(t.pushScopeId("data-v-f68c7837"),e=e(),t.popScopeId(),e),_o=["aria-hidden"],Ao={key:0,"data-testid":"kui-icon-svg-title"},Eo=So(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),Bo=oe(t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Ao,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Eo],8,_o))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-f68c7837"]]),No=e=>(t.pushScopeId("data-v-9af646cc"),e=e(),t.popScopeId(),e),Io=["aria-hidden"],To={key:0,"data-testid":"kui-icon-svg-title"},$o=No(()=>t.createElementVNode("path",{d:"M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",fill:"currentColor"},null,-1)),Fo=oe(t.defineComponent({__name:"BookIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon book-icon","data-testid":"kui-icon-wrapper-book-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-book-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",To,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),$o],8,Io))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-9af646cc"]]),Lo=e=>(t.pushScopeId("data-v-84c4811e"),e=e(),t.popScopeId(),e),Oo=["aria-hidden"],Vo={key:0,"data-testid":"kui-icon-svg-title"},Do=Lo(()=>t.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"currentColor"},null,-1)),vo=oe(t.defineComponent({__name:"ChevronDownIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon chevron-down-icon","data-testid":"kui-icon-wrapper-chevron-down-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-chevron-down-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Vo,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Do],8,Oo))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-84c4811e"]]),Mo=e=>(t.pushScopeId("data-v-26ad8dc6"),e=e(),t.popScopeId(),e),Ro=["aria-hidden"],Ko={key:0,"data-testid":"kui-icon-svg-title"},Uo=Mo(()=>t.createElementVNode("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"currentColor"},null,-1)),qo=oe(t.defineComponent({__name:"CloseIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon close-icon","data-testid":"kui-icon-wrapper-close-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-close-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Ko,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Uo],8,Ro))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-26ad8dc6"]]),jo=e=>(t.pushScopeId("data-v-a3352b0f"),e=e(),t.popScopeId(),e),Po=["aria-hidden"],Ho={key:0,"data-testid":"kui-icon-svg-title"},zo=jo(()=>t.createElementVNode("path",{d:"M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",fill:"currentColor"},null,-1)),Yo=oe(t.defineComponent({__name:"CopyIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon copy-icon","data-testid":"kui-icon-wrapper-copy-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-copy-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Ho,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),zo],8,Po))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-a3352b0f"]]),Wo=e=>(t.pushScopeId("data-v-d43c21f8"),e=e(),t.popScopeId(),e),Jo=["aria-hidden"],Go={key:0,"data-testid":"kui-icon-svg-title"},Zo=Wo(()=>t.createElementVNode("path",{d:"M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",fill:"currentColor"},null,-1)),Qo=oe(t.defineComponent({__name:"MoreIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon more-icon","data-testid":"kui-icon-wrapper-more-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-more-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Go,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Zo],8,Jo))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-d43c21f8"]]),Xo={class:"config-card-title","data-testid":"config-card-title"},ea={class:"config-card-actions"},ta=["href"],na={class:"config-card-details-section"},ra=H(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:()=>({})},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:a}=O.useErrors(),{convertKeyToTitle:l}=O.useStringHelpers(),{axiosInstance:c}=O.useAxios((_=i.config)==null?void 0:_.axiosRequestConfig),s=[{label:o("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:"JSON",value:"json"},{label:"YAML",value:"yaml"}],u=t.ref("structured"),f=p=>{u.value=p==null?void 0:p.value},d={id:{type:F.ID,label:o("baseConfigCard.commonFields.id_label"),order:0,section:P.Basic},name:{order:1,section:P.Basic},enabled:{type:F.BadgeStatus,order:2,section:P.Basic},updated_at:{type:F.Date,label:o("baseConfigCard.commonFields.updated_at_label"),order:3,section:P.Basic},created_at:{type:F.Date,label:o("baseConfigCard.commonFields.created_at_label"),order:4,section:P.Basic},tags:{type:F.BadgeTag,order:-1,section:P.Basic}},g=t.ref(!1),m=t.ref(!1),y=t.ref(""),C=t.ref({}),k=t.computed(()=>{var B,b,T;if(!C.value)return[];const p=[],A=Object.keys(C.value).length;for(const E in C.value){const S=(b=(B=i.configSchema)==null?void 0:B[E])==null?void 0:b.order,L=(T=d[E])==null?void 0:T.order;let $=A;(L||L===0)&&($=L===-1?A+1:L),S&&($=S===-1?A+1:S),p.push([E,$])}return p.sort(function(E,S){return E[1]-S[1]}),p.map(E=>{var X,an;const S=E[0],L=(X=C.value)==null?void 0:X[S],$=((an=i.configSchema)==null?void 0:an[S])||{},v=d[S];return{key:S,value:L,hidden:$.hidden||!1,type:$.type??((v==null?void 0:v.type)||F.Text),label:$.label??((v==null?void 0:v.label)||l(S)),tooltip:$.tooltip??((v==null?void 0:v.tooltip)||void 0),section:$.section??((v==null?void 0:v.section)||P.Advanced)}}).filter(E=>!E.hidden&&E.key!==i.pluginConfigKey)}),I=t.computed(()=>{var b,T;if(!C.value||!i.pluginConfigKey)return[];const p=C.value[i.pluginConfigKey]||{},A=Object.keys(p).length,B=[];for(const E in p){const S=(T=(b=i.pluginConfigSchema)==null?void 0:b[E])==null?void 0:T.order,L=p[E];let $=L!=null&&L!==""?A-1:A;S&&($=S===-1?A+1:S),B.push([E,$])}return B.sort(function(E,S){return E[1]-S[1]}),B.map(E=>{var v;const S=E[0],L=p[S],$=((v=i.pluginConfigSchema)==null?void 0:v[S])||{};return{key:S,value:L,hidden:$.hidden||!1,type:$.type??F.Text,label:$.label??l(S),tooltip:$.tooltip??void 0,section:P.Plugin}}).filter(E=>!E.hidden)}),w=t.computed(()=>{var p,A,B,b;return{basic:(p=k.value)==null?void 0:p.filter(T=>T.section===P.Basic),advanced:(A=k.value)==null?void 0:A.filter(T=>T.section===P.Advanced),plugin:(b=I.value)==null?void 0:b.concat((B=k.value)==null?void 0:B.filter(T=>T.section===P.Plugin))}}),M=t.computed(()=>{const p=[];return w.value.basic.length&&p.push("basic"),w.value.advanced.length&&p.push("advanced"),w.value.plugin.length&&p.push("plugin"),p}),h=t.computed(()=>{var A,B;let p=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?p=p.replace(/{controlPlaneId}/gi,((A=i.config)==null?void 0:A.controlPlaneId)||""):i.config.app==="kongManager"&&(p=p.replace(/\/{workspace}/gi,(B=i.config)!=null&&B.workspace?`/${i.config.workspace}`:"")),p=p.replace(/{id}/gi,i.config.entityId),p});return t.watch(g,p=>{r("loading",p)},{immediate:!0}),t.onBeforeMount(async()=>{m.value=!1,g.value=!0;try{const{data:p}=await c.get(h.value);if(i.dataKey)if(typeof p[i.dataKey]<"u")C.value={...p[i.dataKey]};else throw new Error(o("errors.dataKeyUndefined",{dataKey:i.dataKey}));else C.value={...p};Object.keys(i.configSchema).filter(B=>i.configSchema[B].forceShow).forEach(B=>{C.value&&typeof C.value[B]>"u"&&(C.value[B]=null)}),r("fetch:success",p)}catch(p){const A=a(p);y.value=A.startsWith("code")?o("baseConfigCard.errors.load"):A,m.value=!0,r("fetch:error",p)}finally{g.value=!1}}),(p,A)=>{const B=t.resolveComponent("KLabel"),b=t.resolveComponent("KSelect"),T=t.resolveComponent("KButton"),E=t.resolveComponent("KSkeleton"),S=t.resolveComponent("KEmptyState"),L=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(L,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",ea,[t.renderSlot(p.$slots,"actions",{},void 0,!0),t.createVNode(B,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(b,{"data-testid":"select-config-format",items:s,onChange:f}),e.configCardDoc?(t.openBlock(),t.createBlock(T,{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(Fo),{size:t.unref(vn)},null,8,["size"])],8,ta)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[g.value?(t.openBlock(),t.createBlock(E,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):m.value?(t.openBlock(),t.createBlock(S,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(y.value),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",na,[t.createVNode(nn,{config:e.config,"fetcher-url":h.value,format:u.value,"prop-list-types":M.value,"property-collections":w.value,record:C.value},t.createSlots({_:2},[t.renderList(Object.keys(p.$slots),$=>({name:$,fn:t.withCtx(({row:v,rowValue:X})=>[t.renderSlot(p.$slots,$,{row:v,rowValue:X},void 0,!0)])}))]),1032,["config","fetcher-url","format","prop-list-types","property-collections","record"])])]),_:2},[e.hideTitle?void 0:{name:"title",fn:t.withCtx(()=>[t.createElementVNode("span",Xo,[t.renderSlot(p.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-f40a683b"]]),ia=["novalidate"],oa={class:"form-actions","data-testid":"form-actions"},aa=H(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:""},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 M;const r=n,i=e,o=cn.useRouter(),{i18n:{t:a}}=O.useI18n(),{getMessageFromError:l}=O.useErrors(),{axiosInstance:c}=O.useAxios((M=i.config)==null?void 0:M.axiosRequestConfig),s=t.ref(!1),u=t.ref(!1),f=t.ref(""),d=t.computed(()=>i.canSubmit===!1||i.isReadonly),g=t.ref(!1),m=t.computed(()=>{var _,p;let h=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((_=i.config)==null?void 0:_.controlPlaneId)||""):i.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(p=i.config)!=null&&p.workspace?`/${i.config.workspace}`:"")),i.editId?(h=h.replace(/{id}/gi,i.editId),h):(h=h.replace(/\/{id}/gi,""),h)}),y=()=>{g.value=!g.value},C=()=>{i.config.cancelRoute?o.push(i.config.cancelRoute):k()},k=()=>{r("cancel")},I=()=>{d.value||r("submit")},w=t.ref([{title:a("baseForm.configuration.yaml"),hash:"#yaml"},{title:a("baseForm.configuration.json"),hash:"#json"}]);return t.watch(()=>s.value,h=>{r("loading",h)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{u.value=!1,s.value=!0;const{data:h}=await c.get(m.value);r("fetch:success",h)}catch(h){const _=l(h);f.value=_.startsWith("code")?a("baseForm.errors.edit"):_,u.value=!0,r("fetch:error",h)}finally{s.value=!1}}),(h,_)=>{const p=t.resolveComponent("KSkeleton"),A=t.resolveComponent("KEmptyState"),B=t.resolveComponent("KAlert"),b=t.resolveComponent("KButton"),T=t.resolveComponent("KTabs"),E=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(p,{key:0,type:"form"})):u.value?(t.openBlock(),t.createBlock(A,{key:1,"action-button-text":t.unref(a)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:C},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(f.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(k,["prevent"]),onSubmit:t.withModifiers(I,["prevent"])},[t.renderSlot(h.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(B,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),t.createElementVNode("div",oa,[t.renderSlot(h.$slots,"form-actions",{},()=>[t.createVNode(b,{appearance:"tertiary","data-testid":"form-view-configuration",onClick:_[0]||(_[0]=S=>y())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.viewConfiguration")),1)]),_:1}),t.createVNode(b,{appearance:"secondary","data-testid":"form-cancel",disabled:e.isReadonly,type:"reset"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.cancel")),1)]),_:1},8,["disabled"]),t.createVNode(b,{appearance:"primary","data-testid":"form-submit",disabled:d.value,type:"submit"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.save")),1)]),_:1},8,["disabled"])],!0)])],40,ia)),t.createVNode(E,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":60,title:t.unref(a)("baseForm.configuration.title"),visible:g.value,onClose:_[1]||(_[1]=S=>y())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)("baseForm.configuration.message")),1),t.createVNode(T,{"data-testid":"form-view-configuration-slideout-tabs",tabs:w.value},{json:t.withCtx(()=>[t.createVNode(we,{config:e.config,"fetcher-url":m.value,"json-record":i.formFields,"request-method":i.editId?"put":"post"},null,8,["config","fetcher-url","json-record","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(ve,{"yaml-record":i.formFields},null,8,["yaml-record"])]),_:1},8,["tabs"])]),_:1},8,["title","visible"])]),_:3})}}}),[["__scopeId","data-v-fd05df8e"]]),la=["data-truncate"],ca=H(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 k;return((k=n.rowEl)==null?void 0:k.querySelector(`[data-testid="${n.keyName}"]`))||null}),i=t.computed(()=>{var k;return((k=r.value)==null?void 0:k.querySelector('[data-truncate="true"]'))||null}),o=t.computed(()=>{var I,w;const k=(I=n.rowEl)==null?void 0:I.querySelectorAll("td");return k?((w=k[0])==null?void 0:w.getAttribute("data-testid"))===n.keyName:!1}),a=t.computed(()=>o.value||n.tooltip);let l;const c=()=>{l&&(l.disconnect(),l=void 0)},s=()=>{var I,w,M;let k=((I=r.value)==null?void 0:I.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const h=window.getComputedStyle(r.value);k-=(parseFloat(h.paddingLeft)||0)+(parseFloat(h.paddingRight)||0)}f.value=((w=i.value)==null?void 0:w.getBoundingClientRect().width)||0,d.value=k,g.value=((M=u.value)==null?void 0:M.innerText)||""},u=t.ref({}),f=t.ref(0),d=t.ref(0),g=t.ref(""),m=t.computed(()=>[i.value,r.value]),y=t.watch(m,k=>{if(a.value&&(c(),"ResizeObserver"in window&&window)){l=new ResizeObserver(I=>{window.requestAnimationFrame(()=>{!Array.isArray(I)||!I.length||s()})});for(const I of k)I&&l.observe(I)}},{immediate:!0,flush:"post",deep:!0}),C=t.computed(()=>a.value?f.value>d.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{y()}),(k,I)=>{const w=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:u,class:"content-wrapper"},[a.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":a.value||void 0},[t.createVNode(w,{"max-width":"300",placement:"bottomStart",text:C.value?g.value:""},{default:t.withCtx(()=>[t.renderSlot(k.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,la)):t.renderSlot(k.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-471ce76e"]]),sa={class:"toolbar-container"},da={key:0,class:"toolbar-button-container"},ua=["data-testid"],fa=H(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:()=>({})},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},dropdownMenuWidth:{type:String,default:"",required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:n}){const r=e,i=n,{i18n:{t:o}}=O.useI18n(),a=t.computed(()=>{var p,A;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(p=r.errorMessage)==null?void 0:p.title,message:(A=r.errorMessage)==null?void 0:A.message}}),l=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=p=>p.hasData||!!r.query,s=t.computed(()=>{const p=[];return Object.keys(r.tableHeaders).forEach(B=>{const b=r.tableHeaders[B];p.push({label:b.label??B,key:B,sortable:b.sortable??!1,hidable:!0})}),r.enableEntityActions&&p.push({key:"actions",hideLabel:!0}),p}),u=p=>({"data-rowid":p.id,"data-testid":p.name,...r.rowAttributes(p)}),f=t.ref({}),d=p=>{var A;return(A=f.value)==null?void 0:A.$el.querySelector(`[data-rowid="${p.id}"]`)},g=p=>{const A={"data-testid":p.headerKey,...r.cellAttributes(p)};return p.colIndex===0&&(A.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),A},m=()=>{i("empty-state-cta-clicked"),y()},y=()=>{i("clear-search-input")},C=t.computed(()=>r.disableRowClick?void 0:(p,A)=>{i("click:row",A)}),k=p=>{i("sort",p)},{setTablePreferences:I,getTablePreferences:w}=fn(),M=t.ref(w(l.value)),h=t.computed(()=>{const p=w(l.value);return{...r.initialFetcherParams,...p}}),_=p=>{M.value=p,l.value&&I(l.value,p)};return(p,A)=>{const B=t.resolveComponent("KButton"),b=t.resolveComponent("KDropdown"),T=t.resolveComponent("KTable"),E=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(E,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(T,{ref_key:"tableRefs",ref:f,"cache-identifier":l.value,"cell-attrs":g,"client-sort":e.enableClientSort,"disable-pagination-page-jump":e.disablePaginationPageJump,"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:a.value.hasError,"error-state-message":a.value.message,"error-state-title":a.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:s.value,"hide-pagination-when-optional":"","initial-fetcher-params":h.value,loading:e.isLoading,"pagination-offset":e.paginationType==="offset","resize-columns":"","row-attrs":u,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":M.value,onEmptyStateActionClick:m,"onRow:click":C.value,onSort:A[0]||(A[0]=S=>k(S)),"onUpdate:tablePreferences":_},t.createSlots({toolbar:t.withCtx(({state:S})=>[t.withDirectives(t.createElementVNode("div",sa,[t.renderSlot(p.$slots,"toolbar-filter",{},void 0,!0),p.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",da,[t.renderSlot(p.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,c(S)]])]),actions:t.withCtx(({row:S,rowKey:L,rowValue:$})=>[t.createElementVNode("div",{class:"actions-container","data-testid":S.name},[t.createVNode(b,{"kpop-attributes":{placement:"bottomEnd"},width:e.dropdownMenuWidth},{items:t.withCtx(()=>[t.renderSlot(p.$slots,"actions",{row:S,rowKey:L,rowValue:$},void 0,!0)]),default:t.withCtx(()=>[t.createVNode(B,{appearance:"tertiary",class:"actions-trigger","data-testid":"overflow-actions-button",icon:"",size:"small"},{default:t.withCtx(()=>[t.createVNode(t.unref(Qo))]),_:1})]),_:2},1032,["width"])],8,ua)]),_:2},[t.renderList(e.tableHeaders,(S,L)=>({name:L,fn:t.withCtx(({row:$,rowKey:v,rowValue:X})=>[t.createVNode(ca,{"key-name":String(L),"row-el":d($),tooltip:S.tooltip},{default:t.withCtx(()=>[t.renderSlot(p.$slots,L,{row:$,rowKey:v,rowValue:X},()=>[t.createTextVNode(t.toDisplayString(X),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(Bo))]),key:"0"}]),1032,["cache-identifier","client-sort","disable-pagination-page-jump","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","initial-fetcher-params","loading","pagination-offset","search-input","sort-handler-function","sortable","table-preferences","onRow:click"])]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-67bd29c7"]]),pa={key:0,class:"kong-ui-entity-delete-error"},ma={key:1,class:"description"},ha=H(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,a=t.computed(()=>i.needConfirm?i.entityName:""),l=()=>{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":a.value,title:e.title,visible:e.visible,onCancel:l,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",pa,[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",ma,[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"]]),ga={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},ya={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},Ca=["fill"],ba={mask:"url(#mask0_180_20349)"},xa=["fill"],rn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${$n})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",ga,[t.createElementVNode("mask",ya,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,Ca)]),t.createElementVNode("g",ba,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,xa)])]))}}),ka={key:1,class:"kong-ui-entity-filter"},wa={class:"kong-ui-entity-filter-menu"},Sa=["data-testid"],_a=["onClick","onKeydown"],Aa={class:"menu-item-indicator"},Ea={class:"menu-item-body"},Ba=["for"],Na={class:"menu-item-buttons"},Ia={class:"filter-clear-button-container"},Ta=H(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,a=t.ref(!1),l=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const h=[];return new URLSearchParams(i.modelValue).forEach((_,p)=>{_!==""&&h.push(p)}),h}),u=t.computed(()=>{const h=i.config.fields;return Object.keys(h).filter(_=>{var p;return(p=h==null?void 0:h[_])==null?void 0:p.searchable}).map(_=>({label:h[_].label||_,value:_,expanded:!1}))});t.watch(()=>i.modelValue,h=>{l.value={},new URLSearchParams(h).forEach((_,p)=>{l.value[p]=_})});const f=()=>{a.value=!a.value},d=h=>{c.value.has(h)?c.value.delete(h):c.value.add(h)},g=h=>{o("update:modelValue",h)},m=()=>{g("")},y=h=>`filter-${h}`,C=h=>{var _,p;return(((p=(_=i.config.schema)==null?void 0:_[h])==null?void 0:p.values)??[]).map(A=>({value:A,label:A}))},k=h=>{var _,p;return((p=(_=i.config.schema)==null?void 0:_[h])==null?void 0:p.type)??"text"},I=h=>{l.value={...l.value,[h]:""},M()},w=()=>{l.value={},M(!0)},M=(h=!1)=>{const _=Object.keys(l.value).reduce((p,A)=>(l.value[A]&&(p[A]=`${l.value[A]}`),p),{});h&&(a.value=!1),o("update:modelValue",new URLSearchParams(_).toString())};return(h,_)=>{const p=t.resolveComponent("KInput"),A=t.resolveComponent("KButton"),B=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(p,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":g},{before:t.withCtx(()=>[t.createVNode(rn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(qo),{class:"kong-ui-entity-filter-clear",onClick:m},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",ka,[t.createVNode(A,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(rn),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,a.value]]),t.withDirectives(t.createElementVNode("div",wa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,b=>{var T,E;return t.openBlock(),t.createElementBlock("div",{key:b.value,class:"kong-ui-entity-filter-menu-item","data-testid":b.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(b.value)}]),role:"button",tabindex:"0",onClick:S=>d(b.value),onKeydown:t.withKeys(S=>d(b.value),["enter"])},[t.createTextVNode(t.toDisplayString(b.label)+" ",1),t.withDirectives(t.createElementVNode("span",Aa,null,512),[[t.vShow,s.value.includes(b.value)]]),t.createVNode(t.unref(vo),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(b.value)}]),color:t.unref(Ln)},null,8,["class","color"])],42,_a),t.withDirectives(t.createElementVNode("div",Ea,[t.createElementVNode("label",{class:"menu-item-label",for:y(b.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,Ba),((E=(T=e.config.schema)==null?void 0:T[b.value])==null?void 0:E.type)==="select"?(t.openBlock(),t.createBlock(B,{key:0,id:y(b.value),modelValue:l.value[b.value],"onUpdate:modelValue":S=>l.value[b.value]=S,items:C(b.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","items","placeholder"])):(t.openBlock(),t.createBlock(p,{key:1,id:y(b.value),modelValue:l.value[b.value],"onUpdate:modelValue":S=>l.value[b.value]=S,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:k(b.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(b.value)]]),t.withDirectives(t.createElementVNode("div",Na,[t.createVNode(A,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:_[0]||(_[0]=S=>M(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(A,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:S=>I(b.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:2},1032,["onClick"])],512),[[t.vShow,c.value.has(b.value)]])],8,Sa)}),128)),t.createElementVNode("div",Ia,[t.createVNode(A,{appearance:"tertiary",size:"small",onClick:w},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,a.value]])]))}}}),[["__scopeId","data-v-94990087"]]),$a=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,a=n,l=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=()=>a("cancel"),f=async()=>{if(o.onConfirm){l.value=!0;try{await o.onConfirm(),a("proceed")}catch(d){console.error(d)}finally{l.value=!1}}};return(d,g)=>{const m=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(m,{"action-button-disabled":l.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,a)=>i.value?t.renderSlot(o.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}});let Ce;const La=new Uint8Array(16);function Oa(){if(!Ce&&(Ce=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ce))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ce(La)}const K=[];for(let e=0;e<256;++e)K.push((e+256).toString(16).slice(1));function Va(e,n=0){return K[e[n+0]]+K[e[n+1]]+K[e[n+2]]+K[e[n+3]]+"-"+K[e[n+4]]+K[e[n+5]]+"-"+K[e[n+6]]+K[e[n+7]]+"-"+K[e[n+8]]+K[e[n+9]]+"-"+K[e[n+10]]+K[e[n+11]]+K[e[n+12]]+K[e[n+13]]+K[e[n+14]]+K[e[n+15]]}const on={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Da(e,n,r){if(on.randomUUID&&!n&&!e)return on.randomUUID();e=e||{};const i=e.random||(e.rng||Oa)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,n){r=r||0;for(let o=0;o<16;++o)n[r+o]=i[o];return n}return Va(i)}const va=["aria-labelledby"],Ma={class:"form-section-wrapper"},Ra={key:1,class:"form-section-description"},Ka={key:2,class:"form-section-footer"},Ua={class:"form-section-content"},qa=H(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=Da();return(i,o)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",Ma,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Ra,[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",Ka,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Ua,[t.renderSlot(i.$slots,"default",{},void 0,!0)])])],10,va))}}),[["__scopeId","data-v-b1f74200"]]),ja={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Pa={key:0,class:"deleted-entity"},Ha={key:1},za=["onClick"],Ya=H(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(),a=o("global.actions.copyId"),l=t.ref(a),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||"")&&(l.value=o("global.actions.copyToClipboard"),setTimeout(()=>{l.value=a},1800))};return(d,g)=>{const m=t.resolveComponent("KTooltip"),y=t.resolveComponent("KExternalLink"),C=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",ja,[c.value?(t.openBlock(),t.createElementBlock("div",Pa,t.toDisplayString(u.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(y,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(m,{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",Ha,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(m,{key:l.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottomEnd",text:l.value},{default:t.withCtx(()=>[t.createVNode(C,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(I=>f(k),["stop"])},[t.createVNode(t.unref(Yo),{class:"copy-icon",color:t.unref(On),"data-testid":"copy-id",size:t.unref(Dn)},null,8,["color","size"])],8,za)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-be5bda4c"]]),{useAxios:Wa,useDeleteUrlBuilder:Ja,useErrors:Ga,useExternalLinkCreator:Za,useFetchUrlBuilder:Qa,useFetcher:Xa,useDebouncedFilter:el,useStringHelpers:tl,useHelpers:nl,useGatewayFeatureSupported:rl,useTruncationDetector:il,useValidators:ol}=O;N.ConfigCardDisplay=nn,N.ConfigCardItem=ke,N.ConfigurationSchemaSection=P,N.ConfigurationSchemaType=F,N.EntityBaseConfigCard=ra,N.EntityBaseForm=aa,N.EntityBaseFormType=Ue,N.EntityBaseTable=fa,N.EntityDeleteModal=ha,N.EntityFilter=Ta,N.EntityFormSection=qa,N.EntityLink=Ya,N.EntityToggleModal=$a,N.EntityTypes=Ke,N.FetcherStatus=Z,N.InternalLinkItem=Xe,N.JsonCodeBlock=we,N.PermissionsWrapper=Fa,N.YamlCodeBlock=ve,N.useAxios=Wa,N.useDebouncedFilter=el,N.useDeleteUrlBuilder=Ja,N.useErrors=Ga,N.useExternalLinkCreator=Za,N.useFetchUrlBuilder=Qa,N.useFetcher=Xa,N.useGatewayFeatureSupported=rl,N.useHelpers=nl,N.useStringHelpers=tl,N.useTruncationDetector=il,N.useValidators=ol,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
|
32
|
+
`:""}var to=eo,no={dump:to};function De(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var ro=R,io=rt,oo=lt,ao=ft,lo=pt,co=Be,so=Dt.load,uo=Dt.loadAll,fo=no.dump,po=q,mo={binary:Ct,float:ut,map:at,null:ct,pairs:xt,set:kt,timestamp:gt,bool:st,int:dt,merge:yt,omap:bt,seq:ot,str:it},ho=De("safeLoad","load"),go=De("safeLoadAll","loadAll"),yo=De("safeDump","dump"),Co={Type:ro,Schema:io,FAILSAFE_SCHEMA:oo,JSON_SCHEMA:ao,CORE_SCHEMA:lo,DEFAULT_SCHEMA:co,load:so,loadAll:uo,dump:fo,YAMLException:po,types:mo,safeLoad:ho,safeLoadAll:go,safeDump:yo};const bo={class:"yaml-config"},ve=t.defineComponent({__name:"YamlCodeBlock",props:{yamlRecord:{type:Object,required:!0}},setup(e){const n=e,r=t.computed(()=>{const i=Object.fromEntries(Object.entries(n.yamlRecord).filter(([,o])=>o!==null&&o!==""&&(Array.isArray(o)?o.length!==0:!0)));return Object.keys(i).length===0&&i.constructor===Object?"":Co.dump(i).trim()});return(i,o)=>{const a=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",bo,[n.yamlRecord?(t.openBlock(),t.createBlock(a,{key:0,id:"yaml-codeblock",code:r.value,language:"yaml",theme:"dark"},null,8,["code"])):t.createCommentVNode("",!0)])}}}),xo={key:0,class:"config-card-display-form"},ko=["data-testid"],wo={key:0,class:"config-card-prop-section-title"},nn=H(t.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},propertyCollections:{type:Object,required:!1,default:()=>null},format:{type:String,required:!1,default:"structured",validator:e=>["structured","yaml","json"].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=l=>!!(l.tooltip||r[`${l.key}-label-tooltip`]),a=t.computed(()=>{if(!n.record)return n.record;const l=JSON.parse(JSON.stringify(n.record));return delete l.created_at,delete l.updated_at,l});return(l,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.format==="structured"?(t.openBlock(),t.createElementBlock("div",xo,[(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",wo,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(ke,{key:u.key,item:u},t.createSlots({label:t.withCtx(()=>[t.renderSlot(l.$slots,`${u.key}-label`,{row:u},void 0,!0)]),[u.key]:t.withCtx(({rowValue:f})=>[t.renderSlot(l.$slots,u.key,{row:u,rowValue:f},void 0,!0)]),_:2},[o(u)?{name:"label-tooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,`${u.key}-label-tooltip`,{row:u},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))),128))],10,ko))),128))])):t.createCommentVNode("",!0),e.format==="json"&&n.record?(t.openBlock(),t.createBlock(we,{key:1,config:n.config,"fetcher-url":n.fetcherUrl,"json-record":a.value,"request-method":"get"},null,8,["config","fetcher-url","json-record"])):t.createCommentVNode("",!0),e.format==="yaml"&&n.record?(t.openBlock(),t.createBlock(ve,{key:2,"yaml-record":a.value},null,8,["yaml-record"])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-2052238b"]]),z="24px",oe=(e,n)=>{const r=e.__vccOpts||e;for(const[i,o]of n)r[i]=o;return r},So=e=>(t.pushScopeId("data-v-f68c7837"),e=e(),t.popScopeId(),e),_o=["aria-hidden"],Ao={key:0,"data-testid":"kui-icon-svg-title"},Eo=So(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),Bo=oe(t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Ao,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Eo],8,_o))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-f68c7837"]]),No=e=>(t.pushScopeId("data-v-9af646cc"),e=e(),t.popScopeId(),e),Io=["aria-hidden"],To={key:0,"data-testid":"kui-icon-svg-title"},$o=No(()=>t.createElementVNode("path",{d:"M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",fill:"currentColor"},null,-1)),Fo=oe(t.defineComponent({__name:"BookIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon book-icon","data-testid":"kui-icon-wrapper-book-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-book-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",To,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),$o],8,Io))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-9af646cc"]]),Lo=e=>(t.pushScopeId("data-v-84c4811e"),e=e(),t.popScopeId(),e),Oo=["aria-hidden"],Vo={key:0,"data-testid":"kui-icon-svg-title"},Do=Lo(()=>t.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"currentColor"},null,-1)),vo=oe(t.defineComponent({__name:"ChevronDownIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon chevron-down-icon","data-testid":"kui-icon-wrapper-chevron-down-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-chevron-down-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Vo,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Do],8,Oo))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-84c4811e"]]),Mo=e=>(t.pushScopeId("data-v-26ad8dc6"),e=e(),t.popScopeId(),e),Ro=["aria-hidden"],Ko={key:0,"data-testid":"kui-icon-svg-title"},Uo=Mo(()=>t.createElementVNode("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"currentColor"},null,-1)),qo=oe(t.defineComponent({__name:"CloseIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon close-icon","data-testid":"kui-icon-wrapper-close-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-close-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Ko,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Uo],8,Ro))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-26ad8dc6"]]),jo=e=>(t.pushScopeId("data-v-a3352b0f"),e=e(),t.popScopeId(),e),Po=["aria-hidden"],Ho={key:0,"data-testid":"kui-icon-svg-title"},zo=jo(()=>t.createElementVNode("path",{d:"M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",fill:"currentColor"},null,-1)),Yo=oe(t.defineComponent({__name:"CopyIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon copy-icon","data-testid":"kui-icon-wrapper-copy-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-copy-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Ho,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),zo],8,Po))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-a3352b0f"]]),Wo=e=>(t.pushScopeId("data-v-d43c21f8"),e=e(),t.popScopeId(),e),Jo=["aria-hidden"],Go={key:0,"data-testid":"kui-icon-svg-title"},Zo=Wo(()=>t.createElementVNode("path",{d:"M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",fill:"currentColor"},null,-1)),Qo=oe(t.defineComponent({__name:"MoreIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:z,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return z}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon more-icon","data-testid":"kui-icon-wrapper-more-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-more-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Go,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Zo],8,Jo))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-d43c21f8"]]),Xo={class:"config-card-title","data-testid":"config-card-title"},ea={class:"config-card-actions"},ta=["href"],na={class:"config-card-details-section"},ra=H(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:()=>({})},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:a}=O.useErrors(),{convertKeyToTitle:l}=O.useStringHelpers(),{axiosInstance:c}=O.useAxios((_=i.config)==null?void 0:_.axiosRequestConfig),s=[{label:o("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:"JSON",value:"json"},{label:"YAML",value:"yaml"}],u=t.ref("structured"),f=p=>{u.value=p==null?void 0:p.value},d={id:{type:F.ID,label:o("baseConfigCard.commonFields.id_label"),order:0,section:P.Basic},name:{order:1,section:P.Basic},enabled:{type:F.BadgeStatus,order:2,section:P.Basic},updated_at:{type:F.Date,label:o("baseConfigCard.commonFields.updated_at_label"),order:3,section:P.Basic},created_at:{type:F.Date,label:o("baseConfigCard.commonFields.created_at_label"),order:4,section:P.Basic},tags:{type:F.BadgeTag,order:-1,section:P.Basic}},g=t.ref(!1),m=t.ref(!1),y=t.ref(""),C=t.ref({}),k=t.computed(()=>{var B,b,T;if(!C.value)return[];const p=[],A=Object.keys(C.value).length;for(const E in C.value){const S=(b=(B=i.configSchema)==null?void 0:B[E])==null?void 0:b.order,L=(T=d[E])==null?void 0:T.order;let $=A;(L||L===0)&&($=L===-1?A+1:L),S&&($=S===-1?A+1:S),p.push([E,$])}return p.sort(function(E,S){return E[1]-S[1]}),p.map(E=>{var X,an;const S=E[0],L=(X=C.value)==null?void 0:X[S],$=((an=i.configSchema)==null?void 0:an[S])||{},v=d[S];return{key:S,value:L,hidden:$.hidden||!1,type:$.type??((v==null?void 0:v.type)||F.Text),label:$.label??((v==null?void 0:v.label)||l(S)),tooltip:$.tooltip??((v==null?void 0:v.tooltip)||void 0),section:$.section??((v==null?void 0:v.section)||P.Advanced)}}).filter(E=>!E.hidden&&E.key!==i.pluginConfigKey)}),I=t.computed(()=>{var b,T;if(!C.value||!i.pluginConfigKey)return[];const p=C.value[i.pluginConfigKey]||{},A=Object.keys(p).length,B=[];for(const E in p){const S=(T=(b=i.pluginConfigSchema)==null?void 0:b[E])==null?void 0:T.order,L=p[E];let $=L!=null&&L!==""?A-1:A;S&&($=S===-1?A+1:S),B.push([E,$])}return B.sort(function(E,S){return E[1]-S[1]}),B.map(E=>{var v;const S=E[0],L=p[S],$=((v=i.pluginConfigSchema)==null?void 0:v[S])||{};return{key:S,value:L,hidden:$.hidden||!1,type:$.type??F.Text,label:$.label??l(S),tooltip:$.tooltip??void 0,section:P.Plugin}}).filter(E=>!E.hidden)}),w=t.computed(()=>{var p,A,B,b;return{basic:(p=k.value)==null?void 0:p.filter(T=>T.section===P.Basic),advanced:(A=k.value)==null?void 0:A.filter(T=>T.section===P.Advanced),plugin:(b=I.value)==null?void 0:b.concat((B=k.value)==null?void 0:B.filter(T=>T.section===P.Plugin))}}),M=t.computed(()=>{const p=[];return w.value.basic.length&&p.push("basic"),w.value.advanced.length&&p.push("advanced"),w.value.plugin.length&&p.push("plugin"),p}),h=t.computed(()=>{var A,B;let p=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?p=p.replace(/{controlPlaneId}/gi,((A=i.config)==null?void 0:A.controlPlaneId)||""):i.config.app==="kongManager"&&(p=p.replace(/\/{workspace}/gi,(B=i.config)!=null&&B.workspace?`/${i.config.workspace}`:"")),p=p.replace(/{id}/gi,i.config.entityId),p});return t.watch(g,p=>{r("loading",p)},{immediate:!0}),t.onBeforeMount(async()=>{m.value=!1,g.value=!0;try{const{data:p}=await c.get(h.value);if(i.dataKey)if(typeof p[i.dataKey]<"u")C.value={...p[i.dataKey]};else throw new Error(o("errors.dataKeyUndefined",{dataKey:i.dataKey}));else C.value={...p};Object.keys(i.configSchema).filter(B=>i.configSchema[B].forceShow).forEach(B=>{C.value&&typeof C.value[B]>"u"&&(C.value[B]=null)}),r("fetch:success",p)}catch(p){const A=a(p);y.value=A.startsWith("code")?o("baseConfigCard.errors.load"):A,m.value=!0,r("fetch:error",p)}finally{g.value=!1}}),(p,A)=>{const B=t.resolveComponent("KLabel"),b=t.resolveComponent("KSelect"),T=t.resolveComponent("KButton"),E=t.resolveComponent("KSkeleton"),S=t.resolveComponent("KEmptyState"),L=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(L,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",ea,[t.renderSlot(p.$slots,"actions",{},void 0,!0),t.createVNode(B,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(b,{"data-testid":"select-config-format",items:s,onChange:f}),e.configCardDoc?(t.openBlock(),t.createBlock(T,{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(Fo),{size:t.unref(vn)},null,8,["size"])],8,ta)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[g.value?(t.openBlock(),t.createBlock(E,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):m.value?(t.openBlock(),t.createBlock(S,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(y.value),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",na,[t.createVNode(nn,{config:e.config,"fetcher-url":h.value,format:u.value,"prop-list-types":M.value,"property-collections":w.value,record:C.value},t.createSlots({_:2},[t.renderList(Object.keys(p.$slots),$=>({name:$,fn:t.withCtx(({row:v,rowValue:X})=>[t.renderSlot(p.$slots,$,{row:v,rowValue:X},void 0,!0)])}))]),1032,["config","fetcher-url","format","prop-list-types","property-collections","record"])])]),_:2},[e.hideTitle?void 0:{name:"title",fn:t.withCtx(()=>[t.createElementVNode("span",Xo,[t.renderSlot(p.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-f40a683b"]]),ia=["novalidate"],oa={class:"form-actions","data-testid":"form-actions"},aa=H(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:""},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 M;const r=n,i=e,o=cn.useRouter(),{i18n:{t:a}}=O.useI18n(),{getMessageFromError:l}=O.useErrors(),{axiosInstance:c}=O.useAxios((M=i.config)==null?void 0:M.axiosRequestConfig),s=t.ref(!1),u=t.ref(!1),f=t.ref(""),d=t.computed(()=>i.canSubmit===!1||i.isReadonly),g=t.ref(!1),m=t.computed(()=>{var _,p;let h=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((_=i.config)==null?void 0:_.controlPlaneId)||""):i.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(p=i.config)!=null&&p.workspace?`/${i.config.workspace}`:"")),i.editId?(h=h.replace(/{id}/gi,i.editId),h):(h=h.replace(/\/{id}/gi,""),h)}),y=()=>{g.value=!g.value},C=()=>{i.config.cancelRoute?o.push(i.config.cancelRoute):k()},k=()=>{r("cancel")},I=()=>{d.value||r("submit")},w=t.ref([{title:a("baseForm.configuration.yaml"),hash:"#yaml"},{title:a("baseForm.configuration.json"),hash:"#json"}]);return t.watch(()=>s.value,h=>{r("loading",h)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{u.value=!1,s.value=!0;const{data:h}=await c.get(m.value);r("fetch:success",h)}catch(h){const _=l(h);f.value=_.startsWith("code")?a("baseForm.errors.edit"):_,u.value=!0,r("fetch:error",h)}finally{s.value=!1}}),(h,_)=>{const p=t.resolveComponent("KSkeleton"),A=t.resolveComponent("KEmptyState"),B=t.resolveComponent("KAlert"),b=t.resolveComponent("KButton"),T=t.resolveComponent("KTabs"),E=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(p,{key:0,type:"form"})):u.value?(t.openBlock(),t.createBlock(A,{key:1,"action-button-text":t.unref(a)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:C},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(f.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(k,["prevent"]),onSubmit:t.withModifiers(I,["prevent"])},[t.renderSlot(h.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(B,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),t.createElementVNode("div",oa,[t.renderSlot(h.$slots,"form-actions",{},()=>[t.createVNode(b,{appearance:"tertiary","data-testid":"form-view-configuration",onClick:_[0]||(_[0]=S=>y())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.viewConfiguration")),1)]),_:1}),t.createVNode(b,{appearance:"secondary","data-testid":"form-cancel",disabled:e.isReadonly,type:"reset"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.cancel")),1)]),_:1},8,["disabled"]),t.createVNode(b,{appearance:"primary","data-testid":"form-submit",disabled:d.value,type:"submit"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.save")),1)]),_:1},8,["disabled"])],!0)])],40,ia)),t.createVNode(E,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":60,title:t.unref(a)("baseForm.configuration.title"),visible:g.value,onClose:_[1]||(_[1]=S=>y())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)("baseForm.configuration.message")),1),t.createVNode(T,{"data-testid":"form-view-configuration-slideout-tabs",tabs:w.value},{json:t.withCtx(()=>[t.createVNode(we,{config:e.config,"fetcher-url":m.value,"json-record":i.formFields,"request-method":i.editId?"put":"post"},null,8,["config","fetcher-url","json-record","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(ve,{"yaml-record":i.formFields},null,8,["yaml-record"])]),_:1},8,["tabs"])]),_:1},8,["title","visible"])]),_:3})}}}),[["__scopeId","data-v-fd05df8e"]]),la=["data-truncate"],ca=H(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 k;return((k=n.rowEl)==null?void 0:k.querySelector(`[data-testid="${n.keyName}"]`))||null}),i=t.computed(()=>{var k;return((k=r.value)==null?void 0:k.querySelector('[data-truncate="true"]'))||null}),o=t.computed(()=>{var I,w;const k=(I=n.rowEl)==null?void 0:I.querySelectorAll("td");return k?((w=k[0])==null?void 0:w.getAttribute("data-testid"))===n.keyName:!1}),a=t.computed(()=>o.value||n.tooltip);let l;const c=()=>{l&&(l.disconnect(),l=void 0)},s=()=>{var I,w,M;let k=((I=r.value)==null?void 0:I.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const h=window.getComputedStyle(r.value);k-=(parseFloat(h.paddingLeft)||0)+(parseFloat(h.paddingRight)||0)}f.value=((w=i.value)==null?void 0:w.getBoundingClientRect().width)||0,d.value=k,g.value=((M=u.value)==null?void 0:M.innerText)||""},u=t.ref({}),f=t.ref(0),d=t.ref(0),g=t.ref(""),m=t.computed(()=>[i.value,r.value]),y=t.watch(m,k=>{if(a.value&&(c(),"ResizeObserver"in window&&window)){l=new ResizeObserver(I=>{window.requestAnimationFrame(()=>{!Array.isArray(I)||!I.length||s()})});for(const I of k)I&&l.observe(I)}},{immediate:!0,flush:"post",deep:!0}),C=t.computed(()=>a.value?f.value>d.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{y()}),(k,I)=>{const w=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:u,class:"content-wrapper"},[a.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":a.value||void 0},[t.createVNode(w,{"max-width":"300",placement:"bottom-start",text:C.value?g.value:""},{default:t.withCtx(()=>[t.renderSlot(k.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,la)):t.renderSlot(k.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-760084ce"]]),sa={class:"toolbar-container"},da={key:0,class:"toolbar-button-container"},ua=["data-testid"],fa=H(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:()=>({})},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},dropdownMenuWidth:{type:String,default:"",required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:n}){const r=e,i=n,{i18n:{t:o}}=O.useI18n(),a=t.computed(()=>{var p,A;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(p=r.errorMessage)==null?void 0:p.title,message:(A=r.errorMessage)==null?void 0:A.message}}),l=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=p=>p.hasData||!!r.query,s=t.computed(()=>{const p=[];return Object.keys(r.tableHeaders).forEach(B=>{const b=r.tableHeaders[B];p.push({label:b.label??B,key:B,sortable:b.sortable??!1,hidable:!0})}),r.enableEntityActions&&p.push({key:"actions",hideLabel:!0}),p}),u=p=>({"data-rowid":p.id,"data-testid":p.name,...r.rowAttributes(p)}),f=t.ref({}),d=p=>{var A;return(A=f.value)==null?void 0:A.$el.querySelector(`[data-rowid="${p.id}"]`)},g=p=>{const A={"data-testid":p.headerKey,...r.cellAttributes(p)};return p.colIndex===0&&(A.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),A},m=()=>{i("empty-state-cta-clicked"),y()},y=()=>{i("clear-search-input")},C=t.computed(()=>r.disableRowClick?void 0:(p,A)=>{i("click:row",A)}),k=p=>{i("sort",p)},{setTablePreferences:I,getTablePreferences:w}=fn(),M=t.ref(w(l.value)),h=t.computed(()=>{const p=w(l.value);return{...r.initialFetcherParams,...p}}),_=p=>{M.value=p,l.value&&I(l.value,p)};return(p,A)=>{const B=t.resolveComponent("KButton"),b=t.resolveComponent("KDropdown"),T=t.resolveComponent("KTable"),E=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(E,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(T,{ref_key:"tableRefs",ref:f,"cache-identifier":l.value,"cell-attrs":g,"client-sort":e.enableClientSort,"disable-pagination-page-jump":e.disablePaginationPageJump,"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:a.value.hasError,"error-state-message":a.value.message,"error-state-title":a.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:s.value,"hide-pagination-when-optional":"","initial-fetcher-params":h.value,loading:e.isLoading,"pagination-offset":e.paginationType==="offset","resize-columns":"","row-attrs":u,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":M.value,onEmptyStateActionClick:m,"onRow:click":C.value,onSort:A[0]||(A[0]=S=>k(S)),"onUpdate:tablePreferences":_},t.createSlots({toolbar:t.withCtx(({state:S})=>[t.withDirectives(t.createElementVNode("div",sa,[t.renderSlot(p.$slots,"toolbar-filter",{},void 0,!0),p.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",da,[t.renderSlot(p.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,c(S)]])]),actions:t.withCtx(({row:S,rowKey:L,rowValue:$})=>[t.createElementVNode("div",{class:"actions-container","data-testid":S.name},[t.createVNode(b,{"kpop-attributes":{placement:"bottom-end"},width:e.dropdownMenuWidth},{items:t.withCtx(()=>[t.renderSlot(p.$slots,"actions",{row:S,rowKey:L,rowValue:$},void 0,!0)]),default:t.withCtx(()=>[t.createVNode(B,{appearance:"tertiary",class:"actions-trigger","data-testid":"overflow-actions-button",icon:"",size:"small"},{default:t.withCtx(()=>[t.createVNode(t.unref(Qo))]),_:1})]),_:2},1032,["width"])],8,ua)]),_:2},[t.renderList(e.tableHeaders,(S,L)=>({name:L,fn:t.withCtx(({row:$,rowKey:v,rowValue:X})=>[t.createVNode(ca,{"key-name":String(L),"row-el":d($),tooltip:S.tooltip},{default:t.withCtx(()=>[t.renderSlot(p.$slots,L,{row:$,rowKey:v,rowValue:X},()=>[t.createTextVNode(t.toDisplayString(X),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(Bo))]),key:"0"}]),1032,["cache-identifier","client-sort","disable-pagination-page-jump","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","initial-fetcher-params","loading","pagination-offset","search-input","sort-handler-function","sortable","table-preferences","onRow:click"])]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-940ccab7"]]),pa={key:0,class:"kong-ui-entity-delete-error"},ma={key:1,class:"description"},ha=H(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,a=t.computed(()=>i.needConfirm?i.entityName:""),l=()=>{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":a.value,title:e.title,visible:e.visible,onCancel:l,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",pa,[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",ma,[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"]]),ga={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},ya={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},Ca=["fill"],ba={mask:"url(#mask0_180_20349)"},xa=["fill"],rn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${$n})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",ga,[t.createElementVNode("mask",ya,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,Ca)]),t.createElementVNode("g",ba,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,xa)])]))}}),ka={key:1,class:"kong-ui-entity-filter"},wa={class:"kong-ui-entity-filter-menu"},Sa=["data-testid"],_a=["onClick","onKeydown"],Aa={class:"menu-item-indicator"},Ea={class:"menu-item-body"},Ba=["for"],Na={class:"menu-item-buttons"},Ia={class:"filter-clear-button-container"},Ta=H(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,a=t.ref(!1),l=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const h=[];return new URLSearchParams(i.modelValue).forEach((_,p)=>{_!==""&&h.push(p)}),h}),u=t.computed(()=>{const h=i.config.fields;return Object.keys(h).filter(_=>{var p;return(p=h==null?void 0:h[_])==null?void 0:p.searchable}).map(_=>({label:h[_].label||_,value:_,expanded:!1}))});t.watch(()=>i.modelValue,h=>{l.value={},new URLSearchParams(h).forEach((_,p)=>{l.value[p]=_})});const f=()=>{a.value=!a.value},d=h=>{c.value.has(h)?c.value.delete(h):c.value.add(h)},g=h=>{o("update:modelValue",h)},m=()=>{g("")},y=h=>`filter-${h}`,C=h=>{var _,p;return(((p=(_=i.config.schema)==null?void 0:_[h])==null?void 0:p.values)??[]).map(A=>({value:A,label:A}))},k=h=>{var _,p;return((p=(_=i.config.schema)==null?void 0:_[h])==null?void 0:p.type)??"text"},I=h=>{l.value={...l.value,[h]:""},M()},w=()=>{l.value={},M(!0)},M=(h=!1)=>{const _=Object.keys(l.value).reduce((p,A)=>(l.value[A]&&(p[A]=`${l.value[A]}`),p),{});h&&(a.value=!1),o("update:modelValue",new URLSearchParams(_).toString())};return(h,_)=>{const p=t.resolveComponent("KInput"),A=t.resolveComponent("KButton"),B=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(p,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":g},{before:t.withCtx(()=>[t.createVNode(rn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(qo),{class:"kong-ui-entity-filter-clear",onClick:m},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",ka,[t.createVNode(A,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(rn),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,a.value]]),t.withDirectives(t.createElementVNode("div",wa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,b=>{var T,E;return t.openBlock(),t.createElementBlock("div",{key:b.value,class:"kong-ui-entity-filter-menu-item","data-testid":b.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(b.value)}]),role:"button",tabindex:"0",onClick:S=>d(b.value),onKeydown:t.withKeys(S=>d(b.value),["enter"])},[t.createTextVNode(t.toDisplayString(b.label)+" ",1),t.withDirectives(t.createElementVNode("span",Aa,null,512),[[t.vShow,s.value.includes(b.value)]]),t.createVNode(t.unref(vo),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(b.value)}]),color:t.unref(Ln)},null,8,["class","color"])],42,_a),t.withDirectives(t.createElementVNode("div",Ea,[t.createElementVNode("label",{class:"menu-item-label",for:y(b.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,Ba),((E=(T=e.config.schema)==null?void 0:T[b.value])==null?void 0:E.type)==="select"?(t.openBlock(),t.createBlock(B,{key:0,id:y(b.value),modelValue:l.value[b.value],"onUpdate:modelValue":S=>l.value[b.value]=S,items:C(b.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","items","placeholder"])):(t.openBlock(),t.createBlock(p,{key:1,id:y(b.value),modelValue:l.value[b.value],"onUpdate:modelValue":S=>l.value[b.value]=S,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:k(b.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(b.value)]]),t.withDirectives(t.createElementVNode("div",Na,[t.createVNode(A,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:_[0]||(_[0]=S=>M(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(A,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:S=>I(b.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:2},1032,["onClick"])],512),[[t.vShow,c.value.has(b.value)]])],8,Sa)}),128)),t.createElementVNode("div",Ia,[t.createVNode(A,{appearance:"tertiary",size:"small",onClick:w},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,a.value]])]))}}}),[["__scopeId","data-v-94990087"]]),$a=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,a=n,l=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=()=>a("cancel"),f=async()=>{if(o.onConfirm){l.value=!0;try{await o.onConfirm(),a("proceed")}catch(d){console.error(d)}finally{l.value=!1}}};return(d,g)=>{const m=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(m,{"action-button-disabled":l.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,a)=>i.value?t.renderSlot(o.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}});let Ce;const La=new Uint8Array(16);function Oa(){if(!Ce&&(Ce=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ce))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ce(La)}const K=[];for(let e=0;e<256;++e)K.push((e+256).toString(16).slice(1));function Va(e,n=0){return K[e[n+0]]+K[e[n+1]]+K[e[n+2]]+K[e[n+3]]+"-"+K[e[n+4]]+K[e[n+5]]+"-"+K[e[n+6]]+K[e[n+7]]+"-"+K[e[n+8]]+K[e[n+9]]+"-"+K[e[n+10]]+K[e[n+11]]+K[e[n+12]]+K[e[n+13]]+K[e[n+14]]+K[e[n+15]]}const on={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Da(e,n,r){if(on.randomUUID&&!n&&!e)return on.randomUUID();e=e||{};const i=e.random||(e.rng||Oa)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,n){r=r||0;for(let o=0;o<16;++o)n[r+o]=i[o];return n}return Va(i)}const va=["aria-labelledby"],Ma={class:"form-section-wrapper"},Ra={key:1,class:"form-section-description"},Ka={key:2,class:"form-section-footer"},Ua={class:"form-section-content"},qa=H(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=Da();return(i,o)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",Ma,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Ra,[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",Ka,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Ua,[t.renderSlot(i.$slots,"default",{},void 0,!0)])])],10,va))}}),[["__scopeId","data-v-b1f74200"]]),ja={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Pa={key:0,class:"deleted-entity"},Ha={key:1},za=["onClick"],Ya=H(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(),a=o("global.actions.copyId"),l=t.ref(a),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||"")&&(l.value=o("global.actions.copyToClipboard"),setTimeout(()=>{l.value=a},1800))};return(d,g)=>{const m=t.resolveComponent("KTooltip"),y=t.resolveComponent("KExternalLink"),C=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",ja,[c.value?(t.openBlock(),t.createElementBlock("div",Pa,t.toDisplayString(u.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(y,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(m,{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",Ha,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(m,{key:l.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:l.value},{default:t.withCtx(()=>[t.createVNode(C,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(I=>f(k),["stop"])},[t.createVNode(t.unref(Yo),{class:"copy-icon",color:t.unref(On),"data-testid":"copy-id",size:t.unref(Dn)},null,8,["color","size"])],8,za)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-60e3ef7c"]]),{useAxios:Wa,useDeleteUrlBuilder:Ja,useErrors:Ga,useExternalLinkCreator:Za,useFetchUrlBuilder:Qa,useFetcher:Xa,useDebouncedFilter:el,useStringHelpers:tl,useHelpers:nl,useGatewayFeatureSupported:rl,useTruncationDetector:il,useValidators:ol}=O;N.ConfigCardDisplay=nn,N.ConfigCardItem=ke,N.ConfigurationSchemaSection=P,N.ConfigurationSchemaType=F,N.EntityBaseConfigCard=ra,N.EntityBaseForm=aa,N.EntityBaseFormType=Ue,N.EntityBaseTable=fa,N.EntityDeleteModal=ha,N.EntityFilter=Ta,N.EntityFormSection=qa,N.EntityLink=Ya,N.EntityToggleModal=$a,N.EntityTypes=Ke,N.FetcherStatus=Z,N.InternalLinkItem=Xe,N.JsonCodeBlock=we,N.PermissionsWrapper=Fa,N.YamlCodeBlock=ve,N.useAxios=Wa,N.useDebouncedFilter=el,N.useDeleteUrlBuilder=Ja,N.useErrors=Ga,N.useExternalLinkCreator=Za,N.useFetchUrlBuilder=Qa,N.useFetcher=Xa,N.useGatewayFeatureSupported=rl,N.useHelpers=nl,N.useStringHelpers=tl,N.useTruncationDetector=il,N.useValidators=ol,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-d268261c]{align-items:center;border-bottom:var(--dc1d91a8);display:var(--59ccec5f);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-d268261c]{width:var(--29318fbe)}.config-card-details-row .config-card-details-label label[data-v-d268261c]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-d268261c]{width:var(--292d0408)}.config-card-details-row .config-card-details-value .truncated[data-v-d268261c]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-d268261c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-d268261c] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-d268261c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-d268261c]{margin-right:4px}.config-card-details-row[data-v-d268261c] .k-label{margin-bottom:0}.config-card-details-row[data-v-d268261c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-d268261c] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 6px 12px}.json-endpoint .k-badge{height:24px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0}.json-endpoint code{direction:rtl;max-width:var(--4520e3ec);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-2052238b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f40a683b]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f40a683b]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f40a683b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f40a683b] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f40a683b]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-fd05df8e]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-fd05df8e]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-fd05df8e] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-fd05df8e] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-fd05df8e] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-
|
|
1
|
+
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-d268261c]{align-items:center;border-bottom:var(--dc1d91a8);display:var(--59ccec5f);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-d268261c]{width:var(--29318fbe)}.config-card-details-row .config-card-details-label label[data-v-d268261c]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-d268261c]{width:var(--292d0408)}.config-card-details-row .config-card-details-value .truncated[data-v-d268261c]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-d268261c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-d268261c] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-d268261c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-d268261c]{margin-right:4px}.config-card-details-row[data-v-d268261c] .k-label{margin-bottom:0}.config-card-details-row[data-v-d268261c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-d268261c] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 6px 12px}.json-endpoint .k-badge{height:24px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0}.json-endpoint code{direction:rtl;max-width:var(--4520e3ec);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-2052238b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f40a683b]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f40a683b]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f40a683b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f40a683b] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f40a683b]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-fd05df8e]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-fd05df8e]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-fd05df8e] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-fd05df8e] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-fd05df8e] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-760084ce] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-940ccab7]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-940ccab7]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-940ccab7]{float:right}.kong-ui-entity-base-table .actions-container[data-v-940ccab7] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-94990087]{width:100%}.kong-ui-entity-filter-clear[data-v-94990087]{cursor:pointer}.kong-ui-entity-filter[data-v-94990087]{display:flex;position:relative}.kong-ui-entity-filter[data-v-94990087] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-94990087] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-94990087]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-94990087]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-94990087]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-94990087]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-94990087]{color:#232633}.menu-item-expand-icon[data-v-94990087]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-94990087]{transform:rotate(180deg)}.menu-item-indicator[data-v-94990087]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-94990087]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-94990087] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-94990087] .k-input{width:100%}.menu-item-body[data-v-94990087] .k-select-input .input{font-size:12px}.menu-item-body[data-v-94990087] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-94990087]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-94990087]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-94990087]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-shared",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.5-pr.1431.0d025a4c.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-shared.umd.js",
|
|
6
6
|
"module": "./dist/entities-shared.es.js",
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@kong/kongponents": "^9.0.0-alpha.
|
|
24
|
+
"@kong/kongponents": "^9.0.0-alpha.166",
|
|
25
25
|
"axios": "^1.6.8",
|
|
26
26
|
"vue": ">= 3.3.13 < 4",
|
|
27
27
|
"vue-router": "^4.3.2",
|
|
28
|
-
"@kong-ui-public/i18n": "^2.2.
|
|
28
|
+
"@kong-ui-public/i18n": "^2.2.2-pr.1431.0d025a4c.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@kong/design-tokens": "1.13.2",
|
|
32
|
-
"@kong/kongponents": "9.0.0-alpha.
|
|
32
|
+
"@kong/kongponents": "9.0.0-alpha.166",
|
|
33
33
|
"axios": "^1.6.8",
|
|
34
34
|
"vue": "^3.4.27",
|
|
35
35
|
"vue-router": "^4.3.2",
|
|
36
|
-
"@kong-ui-public/i18n": "^2.2.
|
|
36
|
+
"@kong-ui-public/i18n": "^2.2.2-pr.1431.0d025a4c.0"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|
|
39
39
|
"type": "git",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@kong/icons": "^1.13.0",
|
|
54
54
|
"compare-versions": "^6.1.0",
|
|
55
|
-
"@kong-ui-public/core": "^1.7.
|
|
55
|
+
"@kong-ui-public/core": "^1.7.3-pr.1431.0d025a4c.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"dev": "cross-env USE_SANDBOX=true vite",
|