@kong-ui-public/spec-renderer 2.2.12 → 2.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/spec-renderer.es.js
CHANGED
|
@@ -50989,7 +50989,7 @@ const I5 = /* @__PURE__ */ Sre(_re), Km = "default", jre = "#3a3f51", Ore = "#af
|
|
|
50989
50989
|
for (const [Fa, zt] of Yr)
|
|
50990
50990
|
io[Fa] = zt;
|
|
50991
50991
|
return io;
|
|
50992
|
-
}, Are = (Jt) => (R5("data-v-
|
|
50992
|
+
}, Are = (Jt) => (R5("data-v-45e3fd13"), Jt = Jt(), N5(), Jt), Cre = ["aria-hidden"], Pre = {
|
|
50993
50993
|
key: 0,
|
|
50994
50994
|
"data-testid": "kui-icon-svg-title"
|
|
50995
50995
|
}, Ire = /* @__PURE__ */ Are(() => /* @__PURE__ */ Vc("path", {
|
|
@@ -51088,7 +51088,7 @@ const I5 = /* @__PURE__ */ Sre(_re), Km = "default", jre = "#3a3f51", Ore = "#af
|
|
|
51088
51088
|
_: 1
|
|
51089
51089
|
}, 8, ["aria-hidden", "style"]));
|
|
51090
51090
|
}
|
|
51091
|
-
}), zre = /* @__PURE__ */ B5(Tre, [["__scopeId", "data-v-
|
|
51091
|
+
}), zre = /* @__PURE__ */ B5(Tre, [["__scopeId", "data-v-45e3fd13"]]), Rre = (Jt) => (R5("data-v-bc11af98"), Jt = Jt(), N5(), Jt), Nre = ["aria-hidden"], Mre = {
|
|
51092
51092
|
key: 0,
|
|
51093
51093
|
"data-testid": "kui-icon-svg-title"
|
|
51094
51094
|
}, Bre = /* @__PURE__ */ Rre(() => /* @__PURE__ */ Vc("path", {
|
|
@@ -51187,7 +51187,7 @@ const I5 = /* @__PURE__ */ Sre(_re), Km = "default", jre = "#3a3f51", Ore = "#af
|
|
|
51187
51187
|
_: 1
|
|
51188
51188
|
}, 8, ["aria-hidden", "style"]));
|
|
51189
51189
|
}
|
|
51190
|
-
}), $re = /* @__PURE__ */ B5(Dre, [["__scopeId", "data-v-
|
|
51190
|
+
}), $re = /* @__PURE__ */ B5(Dre, [["__scopeId", "data-v-bc11af98"]]), Fre = (Jt) => (R5("data-v-da32a283"), Jt = Jt(), N5(), Jt), Lre = ["aria-hidden"], qre = {
|
|
51191
51191
|
key: 0,
|
|
51192
51192
|
"data-testid": "kui-icon-svg-title"
|
|
51193
51193
|
}, Kre = /* @__PURE__ */ Fre(() => /* @__PURE__ */ Vc("path", {
|
|
@@ -51286,7 +51286,7 @@ const I5 = /* @__PURE__ */ Sre(_re), Km = "default", jre = "#3a3f51", Ore = "#af
|
|
|
51286
51286
|
_: 1
|
|
51287
51287
|
}, 8, ["aria-hidden", "style"]));
|
|
51288
51288
|
}
|
|
51289
|
-
}), Hre = /* @__PURE__ */ B5(Ure, [["__scopeId", "data-v-
|
|
51289
|
+
}), Hre = /* @__PURE__ */ B5(Ure, [["__scopeId", "data-v-da32a283"]]), Vre = ["aria-controls", "aria-expanded", "aria-label"], Jre = {
|
|
51290
51290
|
"aria-hidden": "true",
|
|
51291
51291
|
class: "icon-wrapper"
|
|
51292
51292
|
}, Wre = {
|
|
@@ -262,4 +262,4 @@ div#sidebar {
|
|
|
262
262
|
top: unset;
|
|
263
263
|
left: unset;
|
|
264
264
|
}
|
|
265
|
-
`,o.setAttribute("data-testid","relative-sidebar-styles"),this.shadowRoot.appendChild(o)}Ja(this,Mu)&&D7.use({target:this.shadowRoot,testId:"hide-essentials-styles"});const r={hasSidebar:Ja(this,xp),applicationRegistrationEnabled:Ja(this,Ug),currentVersion:{version:Ja(this,Hg)},onViewSpecClick:()=>{this.dispatchEvent(new CustomEvent("clicked-view-spec",{bubbles:!0}))},onRegisterClick:()=>{this.dispatchEvent(new CustomEvent("clicked-register",{bubbles:!0}))},...Ja(this,Kg)};fl(this,vc,Uv({url:Ja(this,yd),spec:Ja(this,kp),domNode:this.rootElement,deepLinking:!0,filter:!0,presets:[Uv.presets.apis,Uv.SwaggerUIStandalonePreset],plugins:[Uv.plugins.DownloadUrl,VW.SwaggerUIKongTheme],layout:"KongLayout",theme:r}))}showOperation(r){if(!Ja(this,vc))return!1;const o=L2(r);return Ja(this,vc).layoutActions.show(o,!0),!0}hideOperation(r){if(!Ja(this,vc))return!1;const o=L2(r);return Ja(this,vc).layoutActions.show(o,!1),!0}scrollToOperation(r){if(!Ja(this,vc))return!1;const o=QW(r);let i=this.shadowRoot.getElementById(o);if(!i){const B=this.shadowRoot.querySelector(`[data-tag='${r.tag}']`);if(!B||(B.click(),i=this.shadowRoot.getElementById(o),!i))return!1}const y=window.matchMedia("(prefers-reduced-motion: no-preference)");let T;y&&y.matches&&(T="smooth"),i.scrollIntoView({behavior:T})}get autoInit(){return Ja(this,qg)}set autoInit(r){fl(this,qg,mm(r))}get hasSidebar(){return Ja(this,xp)}set hasSidebar(r){fl(this,xp,mm(r))}get relativeSidebar(){return Ja(this,wd)}set relativeSidebar(r){fl(this,wd,mm(r))}get essentialsOnly(){return Ja(this,Mu)}set essentialsOnly(r){fl(this,Mu,mm(r))}get instance(){return Ja(this,vc)}get spec(){return Ja(this,kp)}set spec(r){if(!r)return void console.warn("spec cannot be empty");let o;typeof r=="string"?o=JSON.parse(r):typeof r=="object"&&(o=r),fl(this,kp,o),Ja(this,vc)&&Ja(this,vc).getSystem().specActions.updateJsonSpec(Ja(this,kp))}get url(){return Ja(this,yd)}set url(r){fl(this,yd,r)}get themeOverrides(){return Ja(this,Kg)}set themeOverrides(r){fl(this,Kg,r)}get applicationRegistrationEnabled(){return Ja(this,Ug)}set applicationRegistrationEnabled(r){fl(this,Ug,mm(r))}get currentVersion(){return Ja(this,Hg)}set currentVersion(r){fl(this,Hg,r)}static get observedAttributes(){return["url","spec","auto-init","has-sidebar","relative-sidebar","essentials-only","application-registration-enabled","current-version","theme-overrides"]}}qg=new WeakMap,kp=new WeakMap,yd=new WeakMap,xp=new WeakMap,wd=new WeakMap,Mu=new WeakMap,vc=new WeakMap,Kg=new WeakMap,Ug=new WeakMap,Hg=new WeakMap,tt(ym,"name","kong-swagger-ui"),customElements.get(ym.name)?console.warn(`Cannot register ${ym.name}. Element is already defined, ignoring`):customElements.define(ym.name,ym)})()})();const $9=["application-registration-enabled","current-version","essentials-only","has-sidebar","relative-sidebar","spec","theme-overrides","url"],F9={key:1,"data-testid":"kong-public-ui-spec-details-error"},L9=_t.defineComponent({__name:"SpecDetails",props:{document:{type:Object,default:null},url:{type:String,default:""},hasSidebar:{type:Boolean,default:!1},relativeSidebar:{type:Boolean,default:!1},themeOverrides:{type:Object,default:null},essentialsOnly:{type:Boolean,default:!1},activeOperation:{type:Object,default:null},applicationRegistrationEnabled:{type:Boolean,default:!1},currentVersion:{type:String,default:()=>{}}},setup(tr,{expose:mo}){const ko=tr,{i18n:rn}=Ep.useI18n(),Rt=_t.ref(null);mo({swaggerInstance:Rt});const C=_t.computed(()=>!!(ko.document||ko.url)),M=_t.ref(!1),s=()=>{if(!Rt.value)return;const w={...ko.activeOperation};if(w&&w.tag){const x=decodeURIComponent(w.tag.trim().replaceAll(/\s/g,"%20"));w.tag=x}Rt.value.showOperation(w),Rt.value.scrollToOperation(w),M.value=!0};return _t.onMounted(()=>{ko.activeOperation&&s()}),_t.watch(()=>ko.activeOperation,()=>{ko.activeOperation&&s()}),(w,x)=>(_t.openBlock(),_t.createElementBlock("div",{class:_t.normalizeClass(["kong-public-ui-spec-details",{"active-op-focused":M.value}])},[C.value?(_t.openBlock(),_t.createElementBlock("kong-swagger-ui",{key:0,ref_key:"swaggerRef",ref:Rt,"application-registration-enabled":tr.applicationRegistrationEnabled,"current-version":tr.currentVersion,"data-testid":"kong-public-ui-spec-details-swagger","essentials-only":tr.essentialsOnly,"has-sidebar":tr.hasSidebar,"relative-sidebar":tr.relativeSidebar,spec:tr.document,"theme-overrides":encodeURIComponent(JSON.stringify(tr.themeOverrides)),url:tr.url},null,8,$9)):(_t.openBlock(),_t.createElementBlock("div",F9,_t.toDisplayString(_t.unref(rn).t("specDetails.error")),1))],2))}}),Zg=(tr,mo)=>{const ko=tr.__vccOpts||tr;for(const[rn,Rt]of mo)ko[rn]=Rt;return ko},y5=Zg(L9,[["__scopeId","data-v-693c299f"]]);let Bm;const q9=new Uint8Array(16);function K9(){if(!Bm&&(Bm=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Bm))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bm(q9)}const ds=[];for(let tr=0;tr<256;++tr)ds.push((tr+256).toString(16).slice(1));function U9(tr,mo=0){return ds[tr[mo+0]]+ds[tr[mo+1]]+ds[tr[mo+2]]+ds[tr[mo+3]]+"-"+ds[tr[mo+4]]+ds[tr[mo+5]]+"-"+ds[tr[mo+6]]+ds[tr[mo+7]]+"-"+ds[tr[mo+8]]+ds[tr[mo+9]]+"-"+ds[tr[mo+10]]+ds[tr[mo+11]]+ds[tr[mo+12]]+ds[tr[mo+13]]+ds[tr[mo+14]]+ds[tr[mo+15]]}let w5,Yw,Zw=0,Qw=0;function H9(tr,mo,ko){let rn=mo&&ko||0;const Rt=mo||new Array(16);tr=tr||{};let C=tr.node||w5,M=tr.clockseq!==void 0?tr.clockseq:Yw;if(C==null||M==null){const I=tr.random||(tr.rng||K9)();C==null&&(C=w5=[I[0]|1,I[1],I[2],I[3],I[4],I[5]]),M==null&&(M=Yw=(I[6]<<8|I[7])&16383)}let s=tr.msecs!==void 0?tr.msecs:Date.now(),w=tr.nsecs!==void 0?tr.nsecs:Qw+1;const x=s-Zw+(w-Qw)/1e4;if(x<0&&tr.clockseq===void 0&&(M=M+1&16383),(x<0||s>Zw)&&tr.nsecs===void 0&&(w=0),w>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Zw=s,Qw=w,Yw=M,s+=122192928e5;const A=((s&268435455)*1e4+w)%4294967296;Rt[rn++]=A>>>24&255,Rt[rn++]=A>>>16&255,Rt[rn++]=A>>>8&255,Rt[rn++]=A&255;const S=s/4294967296*1e4&268435455;Rt[rn++]=S>>>8&255,Rt[rn++]=S&255,Rt[rn++]=S>>>24&15|16,Rt[rn++]=S>>>16&255,Rt[rn++]=M>>>8|128,Rt[rn++]=M&255;for(let I=0;I<6;++I)Rt[rn+I]=C[I];return mo||U9(Rt)}var Dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function V9(tr){return tr&&tr.__esModule&&Object.prototype.hasOwnProperty.call(tr,"default")?tr.default:tr}var $m={exports:{}};$m.exports,function(tr,mo){var ko=200,rn="__lodash_hash_undefined__",Rt=9007199254740991,C="[object Arguments]",M="[object Array]",s="[object Boolean]",w="[object Date]",x="[object Error]",A="[object Function]",S="[object GeneratorFunction]",I="[object Map]",D="[object Number]",v="[object Object]",a="[object Promise]",u="[object RegExp]",h="[object Set]",n="[object String]",f="[object Symbol]",E="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",j="[object Float32Array]",R="[object Float64Array]",z="[object Int8Array]",q="[object Int16Array]",U="[object Int32Array]",K="[object Uint8Array]",F="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,ie=/\w*$/,te=/^\[object .+?Constructor\]$/,be=/^(?:0|[1-9]\d*)$/,oe={};oe[C]=oe[M]=oe[_]=oe[b]=oe[s]=oe[w]=oe[j]=oe[R]=oe[z]=oe[q]=oe[U]=oe[I]=oe[D]=oe[v]=oe[u]=oe[h]=oe[n]=oe[f]=oe[K]=oe[F]=oe[V]=oe[W]=!0,oe[x]=oe[A]=oe[E]=!1;var Ae=typeof Dm=="object"&&Dm&&Dm.Object===Object&&Dm,ge=typeof self=="object"&&self&&self.Object===Object&&self,ue=Ae||ge||Function("return this")(),we=mo&&!mo.nodeType&&mo,Ne=we&&!0&&tr&&!tr.nodeType&&tr,Ue=Ne&&Ne.exports===we;function $e(Ge,Qt){return Ge.set(Qt[0],Qt[1]),Ge}function We(Ge,Qt){return Ge.add(Qt),Ge}function ct(Ge,Qt){for(var Rr=-1,Xr=Ge?Ge.length:0;++Rr<Xr&&Qt(Ge[Rr],Rr,Ge)!==!1;);return Ge}function De(Ge,Qt){for(var Rr=-1,Xr=Qt.length,Qa=Ge.length;++Rr<Xr;)Ge[Qa+Rr]=Qt[Rr];return Ge}function Me(Ge,Qt,Rr,Xr){var Qa=-1,zn=Ge?Ge.length:0;for(Xr&&zn&&(Rr=Ge[++Qa]);++Qa<zn;)Rr=Qt(Rr,Ge[Qa],Qa,Ge);return Rr}function bt(Ge,Qt){for(var Rr=-1,Xr=Array(Ge);++Rr<Ge;)Xr[Rr]=Qt(Rr);return Xr}function mt(Ge,Qt){return Ge==null?void 0:Ge[Qt]}function Nt(Ge){var Qt=!1;if(Ge!=null&&typeof Ge.toString!="function")try{Qt=!!(Ge+"")}catch{}return Qt}function Zt(Ge){var Qt=-1,Rr=Array(Ge.size);return Ge.forEach(function(Xr,Qa){Rr[++Qt]=[Qa,Xr]}),Rr}function Vt(Ge,Qt){return function(Rr){return Ge(Qt(Rr))}}function xt(Ge){var Qt=-1,Rr=Array(Ge.size);return Ge.forEach(function(Xr){Rr[++Qt]=Xr}),Rr}var Yt=Array.prototype,er=Function.prototype,ir=Object.prototype,mr=ue["__core-js_shared__"],ar=function(){var Ge=/[^.]+$/.exec(mr&&mr.keys&&mr.keys.IE_PROTO||"");return Ge?"Symbol(src)_1."+Ge:""}(),Ct=er.toString,Ze=ir.hasOwnProperty,ft=ir.toString,Jt=RegExp("^"+Ct.call(Ze).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=Ue?ue.Buffer:void 0,lt=ue.Symbol,$t=ue.Uint8Array,Wt=Vt(Object.getPrototypeOf,Object),_r=Object.create,ee=ir.propertyIsEnumerable,fe=Yt.splice,Oe=Object.getOwnPropertySymbols,Xe=rt?rt.isBuffer:void 0,wt=Vt(Object.keys,Object),Ot=hn(ue,"DataView"),pt=hn(ue,"Map"),Lt=hn(ue,"Promise"),yr=hn(ue,"Set"),br=hn(ue,"WeakMap"),Le=hn(Object,"create"),st=Oa(Ot),dt=Oa(pt),Bt=Oa(Lt),Ar=Oa(yr),Dr=Oa(br),ao=lt?lt.prototype:void 0,to=ao?ao.valueOf:void 0;function go(Ge){var Qt=-1,Rr=Ge?Ge.length:0;for(this.clear();++Qt<Rr;){var Xr=Ge[Qt];this.set(Xr[0],Xr[1])}}function Dt(){this.__data__=Le?Le(null):{}}function wr(Ge){return this.has(Ge)&&delete this.__data__[Ge]}function Ur(Ge){var Qt=this.__data__;if(Le){var Rr=Qt[Ge];return Rr===rn?void 0:Rr}return Ze.call(Qt,Ge)?Qt[Ge]:void 0}function Oo(Ge){var Qt=this.__data__;return Le?Qt[Ge]!==void 0:Ze.call(Qt,Ge)}function lo(Ge,Qt){var Rr=this.__data__;return Rr[Ge]=Le&&Qt===void 0?rn:Qt,this}go.prototype.clear=Dt,go.prototype.delete=wr,go.prototype.get=Ur,go.prototype.has=Oo,go.prototype.set=lo;function Io(Ge){var Qt=-1,Rr=Ge?Ge.length:0;for(this.clear();++Qt<Rr;){var Xr=Ge[Qt];this.set(Xr[0],Xr[1])}}function io(){this.__data__=[]}function ea(Ge){var Qt=this.__data__,Rr=Pt(Qt,Ge);if(Rr<0)return!1;var Xr=Qt.length-1;return Rr==Xr?Qt.pop():fe.call(Qt,Rr,1),!0}function vo(Ge){var Qt=this.__data__,Rr=Pt(Qt,Ge);return Rr<0?void 0:Qt[Rr][1]}function pa(Ge){return Pt(this.__data__,Ge)>-1}function _n(Ge,Qt){var Rr=this.__data__,Xr=Pt(Rr,Ge);return Xr<0?Rr.push([Ge,Qt]):Rr[Xr][1]=Qt,this}Io.prototype.clear=io,Io.prototype.delete=ea,Io.prototype.get=vo,Io.prototype.has=pa,Io.prototype.set=_n;function ka(Ge){var Qt=-1,Rr=Ge?Ge.length:0;for(this.clear();++Qt<Rr;){var Xr=Ge[Qt];this.set(Xr[0],Xr[1])}}function oa(){this.__data__={hash:new go,map:new(pt||Io),string:new go}}function ma(Ge){return Dn(this,Ge).delete(Ge)}function La(Ge){return Dn(this,Ge).get(Ge)}function fa(Ge){return Dn(this,Ge).has(Ge)}function bo(Ge,Qt){return Dn(this,Ge).set(Ge,Qt),this}ka.prototype.clear=oa,ka.prototype.delete=ma,ka.prototype.get=La,ka.prototype.has=fa,ka.prototype.set=bo;function yo(Ge){this.__data__=new Io(Ge)}function To(){this.__data__=new Io}function aa(Ge){return this.__data__.delete(Ge)}function gn(Ge){return this.__data__.get(Ge)}function xo(Ge){return this.__data__.has(Ge)}function vt(Ge,Qt){var Rr=this.__data__;if(Rr instanceof Io){var Xr=Rr.__data__;if(!pt||Xr.length<ko-1)return Xr.push([Ge,Qt]),this;Rr=this.__data__=new ka(Xr)}return Rr.set(Ge,Qt),this}yo.prototype.clear=To,yo.prototype.delete=aa,yo.prototype.get=gn,yo.prototype.has=xo,yo.prototype.set=vt;function et(Ge,Qt){var Rr=Ei(Ge)||as(Ge)?bt(Ge.length,String):[],Xr=Rr.length,Qa=!!Xr;for(var zn in Ge)(Qt||Ze.call(Ge,zn))&&!(Qa&&(zn=="length"||Gn(zn,Xr)))&&Rr.push(zn);return Rr}function ut(Ge,Qt,Rr){var Xr=Ge[Qt];(!(Ze.call(Ge,Qt)&&xi(Xr,Rr))||Rr===void 0&&!(Qt in Ge))&&(Ge[Qt]=Rr)}function Pt(Ge,Qt){for(var Rr=Ge.length;Rr--;)if(xi(Ge[Rr][0],Qt))return Rr;return-1}function pr(Ge,Qt){return Ge&&Ga(Qt,Yr(Qt),Ge)}function Cr(Ge,Qt,Rr,Xr,Qa,zn,Rn){var si;if(Xr&&(si=zn?Xr(Ge,Qa,zn,Rn):Xr(Ge)),si!==void 0)return si;if(!Yn(Ge))return Ge;var ns=Ei(Ge);if(ns){if(si=Ro(Ge),!Qt)return bn(Ge,si)}else{var Si=ti(Ge),hs=Si==A||Si==S;if(Ai(Ge))return No(Ge,Qt);if(Si==v||Si==C||hs&&!zn){if(Nt(Ge))return zn?Ge:{};if(si=wn(hs?{}:Ge),!Qt)return cn(Ge,pr(si,Ge))}else{if(!oe[Si])return zn?Ge:{};si=ja(Ge,Si,Cr,Qt)}}Rn||(Rn=new yo);var pc=Rn.get(Ge);if(pc)return pc;if(Rn.set(Ge,si),!ns)var Ns=Rr?qa(Ge):Yr(Ge);return ct(Ns||Ge,function(za,Ys){Ns&&(Ys=za,za=Ge[Ys]),ut(si,Ys,Cr(za,Qt,Rr,Xr,Ys,Ge,Rn))}),si}function Et(Ge){return Yn(Ge)?_r(Ge):{}}function Ht(Ge,Qt,Rr){var Xr=Qt(Ge);return Ei(Ge)?Xr:De(Xr,Rr(Ge))}function Mr(Ge){return ft.call(Ge)}function Sr(Ge){if(!Yn(Ge)||pn(Ge))return!1;var Qt=Za(Ge)||Nt(Ge)?Jt:te;return Qt.test(Oa(Ge))}function no(Ge){if(!Tn(Ge))return wt(Ge);var Qt=[];for(var Rr in Object(Ge))Ze.call(Ge,Rr)&&Rr!="constructor"&&Qt.push(Rr);return Qt}function No(Ge,Qt){if(Qt)return Ge.slice();var Rr=new Ge.constructor(Ge.length);return Ge.copy(Rr),Rr}function ra(Ge){var Qt=new Ge.constructor(Ge.byteLength);return new $t(Qt).set(new $t(Ge)),Qt}function da(Ge,Qt){var Rr=Qt?ra(Ge.buffer):Ge.buffer;return new Ge.constructor(Rr,Ge.byteOffset,Ge.byteLength)}function _a(Ge,Qt,Rr){var Xr=Qt?Rr(Zt(Ge),!0):Zt(Ge);return Me(Xr,$e,new Ge.constructor)}function ba(Ge){var Qt=new Ge.constructor(Ge.source,ie.exec(Ge));return Qt.lastIndex=Ge.lastIndex,Qt}function Wa(Ge,Qt,Rr){var Xr=Qt?Rr(xt(Ge),!0):xt(Ge);return Me(Xr,We,new Ge.constructor)}function Uo(Ge){return to?Object(to.call(Ge)):{}}function Ba(Ge,Qt){var Rr=Qt?ra(Ge.buffer):Ge.buffer;return new Ge.constructor(Rr,Ge.byteOffset,Ge.length)}function bn(Ge,Qt){var Rr=-1,Xr=Ge.length;for(Qt||(Qt=Array(Xr));++Rr<Xr;)Qt[Rr]=Ge[Rr];return Qt}function Ga(Ge,Qt,Rr,Xr){Rr||(Rr={});for(var Qa=-1,zn=Qt.length;++Qa<zn;){var Rn=Qt[Qa],si=Xr?Xr(Rr[Rn],Ge[Rn],Rn,Rr,Ge):void 0;ut(Rr,Rn,si===void 0?Ge[Rn]:si)}return Rr}function cn(Ge,Qt){return Ga(Ge,Ya(Ge),Qt)}function qa(Ge){return Ht(Ge,Yr,Ya)}function Dn(Ge,Qt){var Rr=Ge.__data__;return Ji(Qt)?Rr[typeof Qt=="string"?"string":"hash"]:Rr.map}function hn(Ge,Qt){var Rr=mt(Ge,Qt);return Sr(Rr)?Rr:void 0}var Ya=Oe?Vt(Oe,Object):Fr,ti=Mr;(Ot&&ti(new Ot(new ArrayBuffer(1)))!=b||pt&&ti(new pt)!=I||Lt&&ti(Lt.resolve())!=a||yr&&ti(new yr)!=h||br&&ti(new br)!=E)&&(ti=function(Ge){var Qt=ft.call(Ge),Rr=Qt==v?Ge.constructor:void 0,Xr=Rr?Oa(Rr):void 0;if(Xr)switch(Xr){case st:return b;case dt:return I;case Bt:return a;case Ar:return h;case Dr:return E}return Qt});function Ro(Ge){var Qt=Ge.length,Rr=Ge.constructor(Qt);return Qt&&typeof Ge[0]=="string"&&Ze.call(Ge,"index")&&(Rr.index=Ge.index,Rr.input=Ge.input),Rr}function wn(Ge){return typeof Ge.constructor=="function"&&!Tn(Ge)?Et(Wt(Ge)):{}}function ja(Ge,Qt,Rr,Xr){var Qa=Ge.constructor;switch(Qt){case _:return ra(Ge);case s:case w:return new Qa(+Ge);case b:return da(Ge,Xr);case j:case R:case z:case q:case U:case K:case F:case V:case W:return Ba(Ge,Xr);case I:return _a(Ge,Xr,Rr);case D:case n:return new Qa(Ge);case u:return ba(Ge);case h:return Wa(Ge,Xr,Rr);case f:return Uo(Ge)}}function Gn(Ge,Qt){return Qt=Qt??Rt,!!Qt&&(typeof Ge=="number"||be.test(Ge))&&Ge>-1&&Ge%1==0&&Ge<Qt}function Ji(Ge){var Qt=typeof Ge;return Qt=="string"||Qt=="number"||Qt=="symbol"||Qt=="boolean"?Ge!=="__proto__":Ge===null}function pn(Ge){return!!ar&&ar in Ge}function Tn(Ge){var Qt=Ge&&Ge.constructor,Rr=typeof Qt=="function"&&Qt.prototype||ir;return Ge===Rr}function Oa(Ge){if(Ge!=null){try{return Ct.call(Ge)}catch{}try{return Ge+""}catch{}}return""}function Ri(Ge){return Cr(Ge,!0,!0)}function xi(Ge,Qt){return Ge===Qt||Ge!==Ge&&Qt!==Qt}function as(Ge){return hi(Ge)&&Ze.call(Ge,"callee")&&(!ee.call(Ge,"callee")||ft.call(Ge)==C)}var Ei=Array.isArray;function ca(Ge){return Ge!=null&&gs(Ge.length)&&!Za(Ge)}function hi(Ge){return jt(Ge)&&ca(Ge)}var Ai=Xe||Sa;function Za(Ge){var Qt=Yn(Ge)?ft.call(Ge):"";return Qt==A||Qt==S}function gs(Ge){return typeof Ge=="number"&&Ge>-1&&Ge%1==0&&Ge<=Rt}function Yn(Ge){var Qt=typeof Ge;return!!Ge&&(Qt=="object"||Qt=="function")}function jt(Ge){return!!Ge&&typeof Ge=="object"}function Yr(Ge){return ca(Ge)?et(Ge):no(Ge)}function Fr(){return[]}function Sa(){return!1}tr.exports=Ri}($m,$m.exports);var J9=$m.exports;const Xw=V9(J9),jd="default",W9="#3a3f51",G9="#afb7c5",k5="20px",Od="24px",ek=(tr,mo)=>{const ko=tr.__vccOpts||tr;for(const[rn,Rt]of mo)ko[rn]=Rt;return ko},Y9=tr=>(_t.pushScopeId("data-v-2ed96942"),tr=tr(),_t.popScopeId(),tr),Z9=["aria-hidden"],Q9={key:0,"data-testid":"kui-icon-svg-title"},X9=Y9(()=>_t.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"currentColor"},null,-1)),ej=ek(_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:Od,validator:tr=>{if(typeof tr=="number"&&tr>0)return!0;if(typeof tr=="string"){const mo=String(tr).replace(/px/gi,""),ko=Number(mo);if(ko&&!isNaN(ko)&&Number.isInteger(ko)&&ko>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(tr){const mo=tr,ko=_t.computed(()=>{if(typeof mo.size=="number"&&mo.size>0)return`${mo.size}px`;if(typeof mo.size=="string"){const Rt=String(mo.size).replace(/px/gi,""),C=Number(Rt);if(C&&!isNaN(C)&&Number.isInteger(C)&&C>0)return`${C}px`}return Od}),rn=_t.computed(()=>({boxSizing:"border-box",color:mo.color,display:mo.display,height:ko.value,lineHeight:"0",width:ko.value}));return(Rt,C)=>(_t.openBlock(),_t.createBlock(_t.resolveDynamicComponent(tr.as),{"aria-hidden":tr.decorative?"true":void 0,class:"kui-icon chevron-down-icon","data-testid":"kui-icon-wrapper-chevron-down-icon",style:_t.normalizeStyle(rn.value)},{default:_t.withCtx(()=>[(_t.openBlock(),_t.createElementBlock("svg",{"aria-hidden":tr.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"},[tr.title?(_t.openBlock(),_t.createElementBlock("title",Q9,_t.toDisplayString(tr.title),1)):_t.createCommentVNode("",!0),X9],8,Z9))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-2ed96942"]]),tj=tr=>(_t.pushScopeId("data-v-a8fa880f"),tr=tr(),_t.popScopeId(),tr),rj=["aria-hidden"],oj={key:0,"data-testid":"kui-icon-svg-title"},aj=tj(()=>_t.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"currentColor"},null,-1)),nj=ek(_t.defineComponent({__name:"ChevronRightIcon",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:Od,validator:tr=>{if(typeof tr=="number"&&tr>0)return!0;if(typeof tr=="string"){const mo=String(tr).replace(/px/gi,""),ko=Number(mo);if(ko&&!isNaN(ko)&&Number.isInteger(ko)&&ko>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(tr){const mo=tr,ko=_t.computed(()=>{if(typeof mo.size=="number"&&mo.size>0)return`${mo.size}px`;if(typeof mo.size=="string"){const Rt=String(mo.size).replace(/px/gi,""),C=Number(Rt);if(C&&!isNaN(C)&&Number.isInteger(C)&&C>0)return`${C}px`}return Od}),rn=_t.computed(()=>({boxSizing:"border-box",color:mo.color,display:mo.display,height:ko.value,lineHeight:"0",width:ko.value}));return(Rt,C)=>(_t.openBlock(),_t.createBlock(_t.resolveDynamicComponent(tr.as),{"aria-hidden":tr.decorative?"true":void 0,class:"kui-icon chevron-right-icon","data-testid":"kui-icon-wrapper-chevron-right-icon",style:_t.normalizeStyle(rn.value)},{default:_t.withCtx(()=>[(_t.openBlock(),_t.createElementBlock("svg",{"aria-hidden":tr.decorative?"true":void 0,"data-testid":"kui-icon-svg-chevron-right-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[tr.title?(_t.openBlock(),_t.createElementBlock("title",oj,_t.toDisplayString(tr.title),1)):_t.createCommentVNode("",!0),aj],8,rj))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-a8fa880f"]]),ij=tr=>(_t.pushScopeId("data-v-e6cb0ae8"),tr=tr(),_t.popScopeId(),tr),sj=["aria-hidden"],cj={key:0,"data-testid":"kui-icon-svg-title"},lj=ij(()=>_t.createElementVNode("path",{d:"M10 18V16H14V18H10ZM6 13V11H18V13H6ZM3 8V6H21V8H3Z",fill:"currentColor"},null,-1)),uj=ek(_t.defineComponent({__name:"FilterIcon",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:Od,validator:tr=>{if(typeof tr=="number"&&tr>0)return!0;if(typeof tr=="string"){const mo=String(tr).replace(/px/gi,""),ko=Number(mo);if(ko&&!isNaN(ko)&&Number.isInteger(ko)&&ko>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(tr){const mo=tr,ko=_t.computed(()=>{if(typeof mo.size=="number"&&mo.size>0)return`${mo.size}px`;if(typeof mo.size=="string"){const Rt=String(mo.size).replace(/px/gi,""),C=Number(Rt);if(C&&!isNaN(C)&&Number.isInteger(C)&&C>0)return`${C}px`}return Od}),rn=_t.computed(()=>({boxSizing:"border-box",color:mo.color,display:mo.display,height:ko.value,lineHeight:"0",width:ko.value}));return(Rt,C)=>(_t.openBlock(),_t.createBlock(_t.resolveDynamicComponent(tr.as),{"aria-hidden":tr.decorative?"true":void 0,class:"kui-icon filter-icon","data-testid":"kui-icon-wrapper-filter-icon",style:_t.normalizeStyle(rn.value)},{default:_t.withCtx(()=>[(_t.openBlock(),_t.createElementBlock("svg",{"aria-hidden":tr.decorative?"true":void 0,"data-testid":"kui-icon-svg-filter-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[tr.title?(_t.openBlock(),_t.createElementBlock("title",cj,_t.toDisplayString(tr.title),1)):_t.createCommentVNode("",!0),lj],8,sj))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-e6cb0ae8"]]),pj=["aria-controls","aria-expanded","aria-label"],dj={"aria-hidden":"true",class:"icon-wrapper"},gj={"aria-hidden":"true",class:"label truncated"},hj=["title"],x5=Zg(_t.defineComponent({__name:"OperationsListSectionHeader",props:{isCollapsed:{type:Boolean,required:!0},name:{type:String,required:!0},description:{type:String,default:void 0},contentElementId:{type:String,required:!0}},emits:["toggle"],setup(tr){const mo=tr,{i18n:ko}=Ep.useI18n(),rn=_t.computed(()=>mo.isCollapsed?ko.t("specOperationsList.section.expandAriaLabel",{section:`"${mo.name}"`}):ko.t("specOperationsList.section.collapseAriaLabel",{section:`"${mo.name}"`}));return(Rt,C)=>(_t.openBlock(),_t.createElementBlock("button",{"aria-controls":tr.contentElementId,"aria-expanded":tr.isCollapsed?"false":"true","aria-label":rn.value,class:_t.normalizeClass(["header",{"header--collapsed":tr.isCollapsed}]),type:"button",onClick:C[0]||(C[0]=M=>Rt.$emit("toggle"))},[_t.createElementVNode("div",dj,[tr.isCollapsed?(_t.openBlock(),_t.createBlock(_t.unref(nj),{key:0,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-collapsed, ${_t.unref(G9)})`,size:_t.unref(k5)},null,8,["color","size"])):(_t.openBlock(),_t.createBlock(_t.unref(ej),{key:1,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-expanded, ${_t.unref(W9)})`,size:_t.unref(k5)},null,8,["color","size"]))]),_t.createElementVNode("h1",gj,_t.toDisplayString(tr.name),1),_t.createElementVNode("div",{class:"description truncated",title:tr.description},_t.toDisplayString(tr.description),9,hj)],10,pj))}}),[["__scopeId","data-v-3f1b0d9c"]]),fj=["data-testid"],mj=["title"],bj={class:"details"},vj=["aria-label","title"],E5=Zg(_t.defineComponent({__name:"OperationsListItem",props:{item:{type:Object,required:!0,validator:tr=>tr.method!==void 0&&tr.summary!==void 0&&tr.path!==void 0},isSelected:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1}},emits:["click"],setup(tr){const mo=tr,{i18n:ko}=Ep.useI18n(),rn=_t.computed(()=>{var C,M;return`spec-operations-list-item-${(C=mo.item.method)==null?void 0:C.toLowerCase()}${(M=mo.item.path)==null?void 0:M.replaceAll("/","-")}-${mo.item.tag||"-"}`}),Rt=_t.computed(()=>mo.item.method||"");return(C,M)=>{const s=_t.resolveComponent("KBadge");return _t.openBlock(),_t.createElementBlock("button",{class:_t.normalizeClass(["spec-operations-list-item",{"item--selected":tr.isSelected,[`item--method-${tr.item.method}`]:!0,disabled:tr.disableSelection}]),"data-testid":rn.value,type:"button",onClick:M[0]||(M[0]=w=>C.$emit("click",tr.item))},[tr.item.summary?(_t.openBlock(),_t.createElementBlock("h2",{key:0,class:"summary truncated",title:tr.item.summary},_t.toDisplayString(tr.item.summary),9,mj)):_t.createCommentVNode("",!0),_t.createElementVNode("div",bj,[_t.createVNode(s,{appearance:Rt.value,"aria-label":_t.unref(ko).t("specOperationsList.item.methodAriaLabel",{method:Rt.value.toUpperCase()}),"background-color":"var(--kong-ui-spec-renderer-operations-list-item-method-background)",class:"method-badge",color:"var(--kong-ui-spec-renderer-operations-list-item-method-color)",tabindex:"-1"},{default:_t.withCtx(()=>[_t.createTextVNode(_t.toDisplayString(Rt.value.toUpperCase()),1)]),_:1},8,["appearance","aria-label"]),_t.createElementVNode("span",{"aria-label":_t.unref(ko).t("specOperationsList.item.pathAriaLabel",{path:tr.item.path}),class:"path truncated",title:tr.item.path},_t.toDisplayString(tr.item.path),9,vj)])],10,fj)}}}),[["__scopeId","data-v-0effaf03"]]),yj=["aria-label"],wj={key:0},kj={key:0,class:"filter-wrapper"},xj={key:1},Ej=["data-testid"],Sj=["id"],_j={key:0,class:"section","data-testid":"spec-operations-list-untagged-items"},jj=["id"],Oj={key:2,"data-testid":"kong-ui-public-spec-operations-list-empty"},Aj={class:"center"},Cj={key:1,"data-testid":"kong-ui-public-spec-operations-list-error"},{getSizeFromString:Pj,hasRequiredProps:S5}=Ep.useUtilities(),_5=Zg(_t.defineComponent({__name:"SpecOperationsList",props:{operations:{type:Array,required:!0,validator:tr=>!tr.length||S5(tr,["method","path"])},tags:{type:Array,default:()=>[],validator:tr=>!tr.length||S5(tr,["name"])},isFilterable:{type:Boolean,default:!0},filterFunction:{type:Function,default:({items:tr,query:mo})=>(mo=mo.toLowerCase(),tr.filter(ko=>ko.tag&&ko.tag.toLowerCase().includes(mo))),validator:tr=>!!tr&&typeof tr=="function"},deselect:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1},width:{type:String,default:"210"}},emits:["selected"],setup(tr,{emit:mo}){const ko=tr,rn=mo,{i18n:Rt}=Ep.useI18n(),C=_t.computed(()=>H9()),M=_t.ref(""),s=_t.ref([]),w=_t.ref(),x=_t.ref([]),A=()=>{const E=s.value;if(!ko.isFilterable){x.value=E;return}if(!ko.filterFunction||typeof ko.filterFunction!="function")throw new Error(`filterFunction property must be a function, got ${typeof ko.filterFunction}`);x.value=ko.filterFunction({items:E,query:M.value})},S=_t.computed(()=>Pj(ko.width)),I=_t.computed(()=>{const E=[];return x.value.forEach(_=>{_.tag&&!E.includes(_.tag)&&E.push(_.tag)}),E}),D=_t.computed(()=>s.value.filter(E=>!E.tag)),v=E=>{if(!ko.tags||!Array.isArray(ko.tags))return"";const _=ko.tags.find(b=>b.name===E);return(_==null?void 0:_.description)||""},a=E=>x.value.filter(_=>_.tag===E),u=E=>{const _=w.value;return!!_&&_.path===E.path&&_.method===E.method&&_.operationId===E.operationId&&_.tag===E.tag},h=E=>`${C.value}-section-${E.toLowerCase()}`,n=E=>{ko.disableSelection||(w.value=E,rn("selected",E))},f=()=>{s.value=[],ko.operations&&(ko.operations.forEach(E=>{var b;const _=Xw(E);(b=E.tags)!=null&&b.length?E.tags.forEach(j=>{delete _.tags,_.tag=j,s.value.push(Xw(_))}):(delete _.tags,_.tag=null,s.value.push(Xw(_)))}),A())};return _t.watch(()=>ko.deselect,()=>{ko.deselect&&(w.value=void 0)}),_t.watch(()=>ko.operations,()=>f()),_t.watch(M,()=>A()),_t.onMounted(()=>{f()}),(E,_)=>{const b=_t.resolveComponent("KInput"),j=_t.resolveComponent("KCollapse");return _t.openBlock(),_t.createElementBlock("section",{"aria-label":_t.unref(Rt).t("specOperationsList.ariaLabel"),class:"kong-ui-public-spec-operations-list","data-testid":"kong-ui-public-spec-operations-list",role:"navigation",style:_t.normalizeStyle({width:S.value})},[tr.operations?(_t.openBlock(),_t.createElementBlock("div",wj,[tr.isFilterable?(_t.openBlock(),_t.createElementBlock("div",kj,[_t.createVNode(b,{modelValue:M.value,"onUpdate:modelValue":_[0]||(_[0]=R=>M.value=R),class:"filter-input","data-testid":"spec-operations-list-filter",placeholder:_t.unref(Rt).t("specOperationsList.filterPlaceholder")},{before:_t.withCtx(()=>[_t.createVNode(_t.unref(uj),{decorative:""})]),_:1},8,["modelValue","placeholder"])])):_t.createCommentVNode("",!0),x.value.length?(_t.openBlock(),_t.createElementBlock("div",xj,[(_t.openBlock(!0),_t.createElementBlock(_t.Fragment,null,_t.renderList(I.value,R=>(_t.openBlock(),_t.createElementBlock("div",{key:R,class:"section-wrapper","data-testid":`spec-operations-list-section-${R.toLowerCase().replaceAll(" ","-")}`},[_t.createVNode(j,{"model-value":!1,"trigger-alignment":"leading"},{trigger:_t.withCtx(({isCollapsed:z,toggle:q})=>[_t.createVNode(x5,{"content-element-id":h(R),"data-testid":`spec-operations-list-section-${R.toLowerCase().replaceAll(" ","-")}-collapse-trigger`,description:v(R),"is-collapsed":z,name:R,onToggle:q},null,8,["content-element-id","data-testid","description","is-collapsed","name","onToggle"])]),default:_t.withCtx(()=>[_t.createElementVNode("div",{id:h(R)},[(_t.openBlock(!0),_t.createElementBlock(_t.Fragment,null,_t.renderList(a(R),z=>_t.renderSlot(E.$slots,"item",{key:`${z.path}-${z.method}`,item:z,section:R,select:()=>n(z)},()=>[_t.createVNode(E5,{"disable-selection":tr.disableSelection,"is-selected":u(z),item:z,section:R,onClick:n},null,8,["disable-selection","is-selected","item","section"])],!0)),128))],8,Sj)]),_:2},1024)],8,Ej))),128)),!tr.isFilterable||!M.value?(_t.openBlock(),_t.createElementBlock("div",_j,[_t.createVNode(j,{"model-value":!1,"trigger-alignment":"leading"},{trigger:_t.withCtx(({isCollapsed:R,toggle:z})=>[_t.createVNode(x5,{"content-element-id":h(_t.unref(jd)),"data-testid":"spec-operations-list-section-untagged-collapse-trigger",description:v(_t.unref(jd)),"is-collapsed":R,name:_t.unref(jd),onToggle:z},null,8,["content-element-id","description","is-collapsed","name","onToggle"])]),default:_t.withCtx(()=>[_t.createElementVNode("div",{id:h(_t.unref(jd))},[(_t.openBlock(!0),_t.createElementBlock(_t.Fragment,null,_t.renderList(D.value,R=>_t.renderSlot(E.$slots,"untagged-item",{key:`${R.path}-${R.method}`,item:R,section:_t.unref(jd),select:()=>n(R)},()=>[_t.createVNode(E5,{"disable-selection":tr.disableSelection,"is-selected":u(R),item:R,onClick:n},null,8,["disable-selection","is-selected","item"])],!0)),128))],8,jj)]),_:3})])):_t.createCommentVNode("",!0)])):(_t.openBlock(),_t.createElementBlock("div",Oj,[_t.renderSlot(E.$slots,"empty-state",{},()=>[_t.createElementVNode("div",Aj,_t.toDisplayString(_t.unref(Rt).t("specOperationsList.noResults")),1)],!0)]))])):(_t.openBlock(),_t.createElementBlock("div",Cj,[_t.renderSlot(E.$slots,"error-state",{},()=>[_t.createTextVNode(_t.toDisplayString(_t.unref(Rt).t("specOperationsList.error")),1)],!0)]))],12,yj)}}}),[["__scopeId","data-v-158c97ae"]]),Ij={class:"kong-ui-public-spec-renderer"},Tj={key:0,class:"spec-container"},zj={class:"spec-renderer-ops-list-empty-state","data-testid":"spec-renderer-ops-list-empty-state"},Rj={key:1,"data-testid":"kong-ui-public-spec-renderer-error"},{hasRequiredProps:j5}=Ep.useUtilities(),Nj=Zg(_t.defineComponent({__name:"SpecRenderer",props:{spec:{type:Object,required:!0},essentialsOnly:{type:Boolean,default:!1},operationsList:{type:Array,required:!0,validator:tr=>!tr.length||j5(tr,["method","path"])},tags:{type:Array,default:()=>[],validator:tr=>!tr.length||j5(tr,["name"])},navWidth:{type:String,default:"310"},deselect:{type:Boolean,default:!1}},setup(tr){const mo=tr,{i18n:ko}=Ep.useI18n(),rn=_t.computed(()=>!!(mo.spec&&mo.operationsList)),Rt=_t.ref(),C=M=>{Rt.value=M};return(M,s)=>{const w=_t.resolveComponent("KEmptyState");return _t.openBlock(),_t.createElementBlock("div",Ij,[rn.value?(_t.openBlock(),_t.createElementBlock("div",Tj,[_t.createVNode(_5,{"data-testid":"spec-renderer-ops-list-content",deselect:tr.deselect,operations:tr.operationsList,tags:tr.tags,width:tr.navWidth,onSelected:C},{"empty-state":_t.withCtx(()=>[_t.createElementVNode("div",zj,[_t.renderSlot(M.$slots,"ops-list-empty-state",{},void 0,!0)])]),_:3},8,["deselect","operations","tags","width"]),_t.createVNode(y5,{"active-operation":Rt.value,class:"spec-renderer-details","data-testid":"spec-renderer-details-content",document:tr.spec,"essentials-only":tr.essentialsOnly,"has-sidebar":!1},null,8,["active-operation","document","essentials-only"])])):(_t.openBlock(),_t.createElementBlock("div",Rj,[_t.renderSlot(M.$slots,"error-state",{},()=>[_t.createVNode(w,{"action-button-visible":!1,"icon-variant":"error"},{title:_t.withCtx(()=>[_t.createTextVNode(_t.toDisplayString(_t.unref(ko).t("specRenderer.error")),1)]),_:1})],!0)]))])}}}),[["__scopeId","data-v-4cfc670e"]]);Sn.DEFAULT_UNTAGGED_SECTION_NAME=jd,Sn.SpecDetails=y5,Sn.SpecOperationsList=_5,Sn.SpecRenderer=Nj,Object.defineProperty(Sn,Symbol.toStringTag,{value:"Module"})});
|
|
265
|
+
`,o.setAttribute("data-testid","relative-sidebar-styles"),this.shadowRoot.appendChild(o)}Ja(this,Mu)&&D7.use({target:this.shadowRoot,testId:"hide-essentials-styles"});const r={hasSidebar:Ja(this,xp),applicationRegistrationEnabled:Ja(this,Ug),currentVersion:{version:Ja(this,Hg)},onViewSpecClick:()=>{this.dispatchEvent(new CustomEvent("clicked-view-spec",{bubbles:!0}))},onRegisterClick:()=>{this.dispatchEvent(new CustomEvent("clicked-register",{bubbles:!0}))},...Ja(this,Kg)};fl(this,vc,Uv({url:Ja(this,yd),spec:Ja(this,kp),domNode:this.rootElement,deepLinking:!0,filter:!0,presets:[Uv.presets.apis,Uv.SwaggerUIStandalonePreset],plugins:[Uv.plugins.DownloadUrl,VW.SwaggerUIKongTheme],layout:"KongLayout",theme:r}))}showOperation(r){if(!Ja(this,vc))return!1;const o=L2(r);return Ja(this,vc).layoutActions.show(o,!0),!0}hideOperation(r){if(!Ja(this,vc))return!1;const o=L2(r);return Ja(this,vc).layoutActions.show(o,!1),!0}scrollToOperation(r){if(!Ja(this,vc))return!1;const o=QW(r);let i=this.shadowRoot.getElementById(o);if(!i){const B=this.shadowRoot.querySelector(`[data-tag='${r.tag}']`);if(!B||(B.click(),i=this.shadowRoot.getElementById(o),!i))return!1}const y=window.matchMedia("(prefers-reduced-motion: no-preference)");let T;y&&y.matches&&(T="smooth"),i.scrollIntoView({behavior:T})}get autoInit(){return Ja(this,qg)}set autoInit(r){fl(this,qg,mm(r))}get hasSidebar(){return Ja(this,xp)}set hasSidebar(r){fl(this,xp,mm(r))}get relativeSidebar(){return Ja(this,wd)}set relativeSidebar(r){fl(this,wd,mm(r))}get essentialsOnly(){return Ja(this,Mu)}set essentialsOnly(r){fl(this,Mu,mm(r))}get instance(){return Ja(this,vc)}get spec(){return Ja(this,kp)}set spec(r){if(!r)return void console.warn("spec cannot be empty");let o;typeof r=="string"?o=JSON.parse(r):typeof r=="object"&&(o=r),fl(this,kp,o),Ja(this,vc)&&Ja(this,vc).getSystem().specActions.updateJsonSpec(Ja(this,kp))}get url(){return Ja(this,yd)}set url(r){fl(this,yd,r)}get themeOverrides(){return Ja(this,Kg)}set themeOverrides(r){fl(this,Kg,r)}get applicationRegistrationEnabled(){return Ja(this,Ug)}set applicationRegistrationEnabled(r){fl(this,Ug,mm(r))}get currentVersion(){return Ja(this,Hg)}set currentVersion(r){fl(this,Hg,r)}static get observedAttributes(){return["url","spec","auto-init","has-sidebar","relative-sidebar","essentials-only","application-registration-enabled","current-version","theme-overrides"]}}qg=new WeakMap,kp=new WeakMap,yd=new WeakMap,xp=new WeakMap,wd=new WeakMap,Mu=new WeakMap,vc=new WeakMap,Kg=new WeakMap,Ug=new WeakMap,Hg=new WeakMap,tt(ym,"name","kong-swagger-ui"),customElements.get(ym.name)?console.warn(`Cannot register ${ym.name}. Element is already defined, ignoring`):customElements.define(ym.name,ym)})()})();const $9=["application-registration-enabled","current-version","essentials-only","has-sidebar","relative-sidebar","spec","theme-overrides","url"],F9={key:1,"data-testid":"kong-public-ui-spec-details-error"},L9=_t.defineComponent({__name:"SpecDetails",props:{document:{type:Object,default:null},url:{type:String,default:""},hasSidebar:{type:Boolean,default:!1},relativeSidebar:{type:Boolean,default:!1},themeOverrides:{type:Object,default:null},essentialsOnly:{type:Boolean,default:!1},activeOperation:{type:Object,default:null},applicationRegistrationEnabled:{type:Boolean,default:!1},currentVersion:{type:String,default:()=>{}}},setup(tr,{expose:mo}){const ko=tr,{i18n:rn}=Ep.useI18n(),Rt=_t.ref(null);mo({swaggerInstance:Rt});const C=_t.computed(()=>!!(ko.document||ko.url)),M=_t.ref(!1),s=()=>{if(!Rt.value)return;const w={...ko.activeOperation};if(w&&w.tag){const x=decodeURIComponent(w.tag.trim().replaceAll(/\s/g,"%20"));w.tag=x}Rt.value.showOperation(w),Rt.value.scrollToOperation(w),M.value=!0};return _t.onMounted(()=>{ko.activeOperation&&s()}),_t.watch(()=>ko.activeOperation,()=>{ko.activeOperation&&s()}),(w,x)=>(_t.openBlock(),_t.createElementBlock("div",{class:_t.normalizeClass(["kong-public-ui-spec-details",{"active-op-focused":M.value}])},[C.value?(_t.openBlock(),_t.createElementBlock("kong-swagger-ui",{key:0,ref_key:"swaggerRef",ref:Rt,"application-registration-enabled":tr.applicationRegistrationEnabled,"current-version":tr.currentVersion,"data-testid":"kong-public-ui-spec-details-swagger","essentials-only":tr.essentialsOnly,"has-sidebar":tr.hasSidebar,"relative-sidebar":tr.relativeSidebar,spec:tr.document,"theme-overrides":encodeURIComponent(JSON.stringify(tr.themeOverrides)),url:tr.url},null,8,$9)):(_t.openBlock(),_t.createElementBlock("div",F9,_t.toDisplayString(_t.unref(rn).t("specDetails.error")),1))],2))}}),Zg=(tr,mo)=>{const ko=tr.__vccOpts||tr;for(const[rn,Rt]of mo)ko[rn]=Rt;return ko},y5=Zg(L9,[["__scopeId","data-v-693c299f"]]);let Bm;const q9=new Uint8Array(16);function K9(){if(!Bm&&(Bm=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Bm))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bm(q9)}const ds=[];for(let tr=0;tr<256;++tr)ds.push((tr+256).toString(16).slice(1));function U9(tr,mo=0){return ds[tr[mo+0]]+ds[tr[mo+1]]+ds[tr[mo+2]]+ds[tr[mo+3]]+"-"+ds[tr[mo+4]]+ds[tr[mo+5]]+"-"+ds[tr[mo+6]]+ds[tr[mo+7]]+"-"+ds[tr[mo+8]]+ds[tr[mo+9]]+"-"+ds[tr[mo+10]]+ds[tr[mo+11]]+ds[tr[mo+12]]+ds[tr[mo+13]]+ds[tr[mo+14]]+ds[tr[mo+15]]}let w5,Yw,Zw=0,Qw=0;function H9(tr,mo,ko){let rn=mo&&ko||0;const Rt=mo||new Array(16);tr=tr||{};let C=tr.node||w5,M=tr.clockseq!==void 0?tr.clockseq:Yw;if(C==null||M==null){const I=tr.random||(tr.rng||K9)();C==null&&(C=w5=[I[0]|1,I[1],I[2],I[3],I[4],I[5]]),M==null&&(M=Yw=(I[6]<<8|I[7])&16383)}let s=tr.msecs!==void 0?tr.msecs:Date.now(),w=tr.nsecs!==void 0?tr.nsecs:Qw+1;const x=s-Zw+(w-Qw)/1e4;if(x<0&&tr.clockseq===void 0&&(M=M+1&16383),(x<0||s>Zw)&&tr.nsecs===void 0&&(w=0),w>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Zw=s,Qw=w,Yw=M,s+=122192928e5;const A=((s&268435455)*1e4+w)%4294967296;Rt[rn++]=A>>>24&255,Rt[rn++]=A>>>16&255,Rt[rn++]=A>>>8&255,Rt[rn++]=A&255;const S=s/4294967296*1e4&268435455;Rt[rn++]=S>>>8&255,Rt[rn++]=S&255,Rt[rn++]=S>>>24&15|16,Rt[rn++]=S>>>16&255,Rt[rn++]=M>>>8|128,Rt[rn++]=M&255;for(let I=0;I<6;++I)Rt[rn+I]=C[I];return mo||U9(Rt)}var Dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function V9(tr){return tr&&tr.__esModule&&Object.prototype.hasOwnProperty.call(tr,"default")?tr.default:tr}var $m={exports:{}};$m.exports,function(tr,mo){var ko=200,rn="__lodash_hash_undefined__",Rt=9007199254740991,C="[object Arguments]",M="[object Array]",s="[object Boolean]",w="[object Date]",x="[object Error]",A="[object Function]",S="[object GeneratorFunction]",I="[object Map]",D="[object Number]",v="[object Object]",a="[object Promise]",u="[object RegExp]",h="[object Set]",n="[object String]",f="[object Symbol]",E="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",j="[object Float32Array]",R="[object Float64Array]",z="[object Int8Array]",q="[object Int16Array]",U="[object Int32Array]",K="[object Uint8Array]",F="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,ie=/\w*$/,te=/^\[object .+?Constructor\]$/,be=/^(?:0|[1-9]\d*)$/,oe={};oe[C]=oe[M]=oe[_]=oe[b]=oe[s]=oe[w]=oe[j]=oe[R]=oe[z]=oe[q]=oe[U]=oe[I]=oe[D]=oe[v]=oe[u]=oe[h]=oe[n]=oe[f]=oe[K]=oe[F]=oe[V]=oe[W]=!0,oe[x]=oe[A]=oe[E]=!1;var Ae=typeof Dm=="object"&&Dm&&Dm.Object===Object&&Dm,ge=typeof self=="object"&&self&&self.Object===Object&&self,ue=Ae||ge||Function("return this")(),we=mo&&!mo.nodeType&&mo,Ne=we&&!0&&tr&&!tr.nodeType&&tr,Ue=Ne&&Ne.exports===we;function $e(Ge,Qt){return Ge.set(Qt[0],Qt[1]),Ge}function We(Ge,Qt){return Ge.add(Qt),Ge}function ct(Ge,Qt){for(var Rr=-1,Xr=Ge?Ge.length:0;++Rr<Xr&&Qt(Ge[Rr],Rr,Ge)!==!1;);return Ge}function De(Ge,Qt){for(var Rr=-1,Xr=Qt.length,Qa=Ge.length;++Rr<Xr;)Ge[Qa+Rr]=Qt[Rr];return Ge}function Me(Ge,Qt,Rr,Xr){var Qa=-1,zn=Ge?Ge.length:0;for(Xr&&zn&&(Rr=Ge[++Qa]);++Qa<zn;)Rr=Qt(Rr,Ge[Qa],Qa,Ge);return Rr}function bt(Ge,Qt){for(var Rr=-1,Xr=Array(Ge);++Rr<Ge;)Xr[Rr]=Qt(Rr);return Xr}function mt(Ge,Qt){return Ge==null?void 0:Ge[Qt]}function Nt(Ge){var Qt=!1;if(Ge!=null&&typeof Ge.toString!="function")try{Qt=!!(Ge+"")}catch{}return Qt}function Zt(Ge){var Qt=-1,Rr=Array(Ge.size);return Ge.forEach(function(Xr,Qa){Rr[++Qt]=[Qa,Xr]}),Rr}function Vt(Ge,Qt){return function(Rr){return Ge(Qt(Rr))}}function xt(Ge){var Qt=-1,Rr=Array(Ge.size);return Ge.forEach(function(Xr){Rr[++Qt]=Xr}),Rr}var Yt=Array.prototype,er=Function.prototype,ir=Object.prototype,mr=ue["__core-js_shared__"],ar=function(){var Ge=/[^.]+$/.exec(mr&&mr.keys&&mr.keys.IE_PROTO||"");return Ge?"Symbol(src)_1."+Ge:""}(),Ct=er.toString,Ze=ir.hasOwnProperty,ft=ir.toString,Jt=RegExp("^"+Ct.call(Ze).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=Ue?ue.Buffer:void 0,lt=ue.Symbol,$t=ue.Uint8Array,Wt=Vt(Object.getPrototypeOf,Object),_r=Object.create,ee=ir.propertyIsEnumerable,fe=Yt.splice,Oe=Object.getOwnPropertySymbols,Xe=rt?rt.isBuffer:void 0,wt=Vt(Object.keys,Object),Ot=hn(ue,"DataView"),pt=hn(ue,"Map"),Lt=hn(ue,"Promise"),yr=hn(ue,"Set"),br=hn(ue,"WeakMap"),Le=hn(Object,"create"),st=Oa(Ot),dt=Oa(pt),Bt=Oa(Lt),Ar=Oa(yr),Dr=Oa(br),ao=lt?lt.prototype:void 0,to=ao?ao.valueOf:void 0;function go(Ge){var Qt=-1,Rr=Ge?Ge.length:0;for(this.clear();++Qt<Rr;){var Xr=Ge[Qt];this.set(Xr[0],Xr[1])}}function Dt(){this.__data__=Le?Le(null):{}}function wr(Ge){return this.has(Ge)&&delete this.__data__[Ge]}function Ur(Ge){var Qt=this.__data__;if(Le){var Rr=Qt[Ge];return Rr===rn?void 0:Rr}return Ze.call(Qt,Ge)?Qt[Ge]:void 0}function Oo(Ge){var Qt=this.__data__;return Le?Qt[Ge]!==void 0:Ze.call(Qt,Ge)}function lo(Ge,Qt){var Rr=this.__data__;return Rr[Ge]=Le&&Qt===void 0?rn:Qt,this}go.prototype.clear=Dt,go.prototype.delete=wr,go.prototype.get=Ur,go.prototype.has=Oo,go.prototype.set=lo;function Io(Ge){var Qt=-1,Rr=Ge?Ge.length:0;for(this.clear();++Qt<Rr;){var Xr=Ge[Qt];this.set(Xr[0],Xr[1])}}function io(){this.__data__=[]}function ea(Ge){var Qt=this.__data__,Rr=Pt(Qt,Ge);if(Rr<0)return!1;var Xr=Qt.length-1;return Rr==Xr?Qt.pop():fe.call(Qt,Rr,1),!0}function vo(Ge){var Qt=this.__data__,Rr=Pt(Qt,Ge);return Rr<0?void 0:Qt[Rr][1]}function pa(Ge){return Pt(this.__data__,Ge)>-1}function _n(Ge,Qt){var Rr=this.__data__,Xr=Pt(Rr,Ge);return Xr<0?Rr.push([Ge,Qt]):Rr[Xr][1]=Qt,this}Io.prototype.clear=io,Io.prototype.delete=ea,Io.prototype.get=vo,Io.prototype.has=pa,Io.prototype.set=_n;function ka(Ge){var Qt=-1,Rr=Ge?Ge.length:0;for(this.clear();++Qt<Rr;){var Xr=Ge[Qt];this.set(Xr[0],Xr[1])}}function oa(){this.__data__={hash:new go,map:new(pt||Io),string:new go}}function ma(Ge){return Dn(this,Ge).delete(Ge)}function La(Ge){return Dn(this,Ge).get(Ge)}function fa(Ge){return Dn(this,Ge).has(Ge)}function bo(Ge,Qt){return Dn(this,Ge).set(Ge,Qt),this}ka.prototype.clear=oa,ka.prototype.delete=ma,ka.prototype.get=La,ka.prototype.has=fa,ka.prototype.set=bo;function yo(Ge){this.__data__=new Io(Ge)}function To(){this.__data__=new Io}function aa(Ge){return this.__data__.delete(Ge)}function gn(Ge){return this.__data__.get(Ge)}function xo(Ge){return this.__data__.has(Ge)}function vt(Ge,Qt){var Rr=this.__data__;if(Rr instanceof Io){var Xr=Rr.__data__;if(!pt||Xr.length<ko-1)return Xr.push([Ge,Qt]),this;Rr=this.__data__=new ka(Xr)}return Rr.set(Ge,Qt),this}yo.prototype.clear=To,yo.prototype.delete=aa,yo.prototype.get=gn,yo.prototype.has=xo,yo.prototype.set=vt;function et(Ge,Qt){var Rr=Ei(Ge)||as(Ge)?bt(Ge.length,String):[],Xr=Rr.length,Qa=!!Xr;for(var zn in Ge)(Qt||Ze.call(Ge,zn))&&!(Qa&&(zn=="length"||Gn(zn,Xr)))&&Rr.push(zn);return Rr}function ut(Ge,Qt,Rr){var Xr=Ge[Qt];(!(Ze.call(Ge,Qt)&&xi(Xr,Rr))||Rr===void 0&&!(Qt in Ge))&&(Ge[Qt]=Rr)}function Pt(Ge,Qt){for(var Rr=Ge.length;Rr--;)if(xi(Ge[Rr][0],Qt))return Rr;return-1}function pr(Ge,Qt){return Ge&&Ga(Qt,Yr(Qt),Ge)}function Cr(Ge,Qt,Rr,Xr,Qa,zn,Rn){var si;if(Xr&&(si=zn?Xr(Ge,Qa,zn,Rn):Xr(Ge)),si!==void 0)return si;if(!Yn(Ge))return Ge;var ns=Ei(Ge);if(ns){if(si=Ro(Ge),!Qt)return bn(Ge,si)}else{var Si=ti(Ge),hs=Si==A||Si==S;if(Ai(Ge))return No(Ge,Qt);if(Si==v||Si==C||hs&&!zn){if(Nt(Ge))return zn?Ge:{};if(si=wn(hs?{}:Ge),!Qt)return cn(Ge,pr(si,Ge))}else{if(!oe[Si])return zn?Ge:{};si=ja(Ge,Si,Cr,Qt)}}Rn||(Rn=new yo);var pc=Rn.get(Ge);if(pc)return pc;if(Rn.set(Ge,si),!ns)var Ns=Rr?qa(Ge):Yr(Ge);return ct(Ns||Ge,function(za,Ys){Ns&&(Ys=za,za=Ge[Ys]),ut(si,Ys,Cr(za,Qt,Rr,Xr,Ys,Ge,Rn))}),si}function Et(Ge){return Yn(Ge)?_r(Ge):{}}function Ht(Ge,Qt,Rr){var Xr=Qt(Ge);return Ei(Ge)?Xr:De(Xr,Rr(Ge))}function Mr(Ge){return ft.call(Ge)}function Sr(Ge){if(!Yn(Ge)||pn(Ge))return!1;var Qt=Za(Ge)||Nt(Ge)?Jt:te;return Qt.test(Oa(Ge))}function no(Ge){if(!Tn(Ge))return wt(Ge);var Qt=[];for(var Rr in Object(Ge))Ze.call(Ge,Rr)&&Rr!="constructor"&&Qt.push(Rr);return Qt}function No(Ge,Qt){if(Qt)return Ge.slice();var Rr=new Ge.constructor(Ge.length);return Ge.copy(Rr),Rr}function ra(Ge){var Qt=new Ge.constructor(Ge.byteLength);return new $t(Qt).set(new $t(Ge)),Qt}function da(Ge,Qt){var Rr=Qt?ra(Ge.buffer):Ge.buffer;return new Ge.constructor(Rr,Ge.byteOffset,Ge.byteLength)}function _a(Ge,Qt,Rr){var Xr=Qt?Rr(Zt(Ge),!0):Zt(Ge);return Me(Xr,$e,new Ge.constructor)}function ba(Ge){var Qt=new Ge.constructor(Ge.source,ie.exec(Ge));return Qt.lastIndex=Ge.lastIndex,Qt}function Wa(Ge,Qt,Rr){var Xr=Qt?Rr(xt(Ge),!0):xt(Ge);return Me(Xr,We,new Ge.constructor)}function Uo(Ge){return to?Object(to.call(Ge)):{}}function Ba(Ge,Qt){var Rr=Qt?ra(Ge.buffer):Ge.buffer;return new Ge.constructor(Rr,Ge.byteOffset,Ge.length)}function bn(Ge,Qt){var Rr=-1,Xr=Ge.length;for(Qt||(Qt=Array(Xr));++Rr<Xr;)Qt[Rr]=Ge[Rr];return Qt}function Ga(Ge,Qt,Rr,Xr){Rr||(Rr={});for(var Qa=-1,zn=Qt.length;++Qa<zn;){var Rn=Qt[Qa],si=Xr?Xr(Rr[Rn],Ge[Rn],Rn,Rr,Ge):void 0;ut(Rr,Rn,si===void 0?Ge[Rn]:si)}return Rr}function cn(Ge,Qt){return Ga(Ge,Ya(Ge),Qt)}function qa(Ge){return Ht(Ge,Yr,Ya)}function Dn(Ge,Qt){var Rr=Ge.__data__;return Ji(Qt)?Rr[typeof Qt=="string"?"string":"hash"]:Rr.map}function hn(Ge,Qt){var Rr=mt(Ge,Qt);return Sr(Rr)?Rr:void 0}var Ya=Oe?Vt(Oe,Object):Fr,ti=Mr;(Ot&&ti(new Ot(new ArrayBuffer(1)))!=b||pt&&ti(new pt)!=I||Lt&&ti(Lt.resolve())!=a||yr&&ti(new yr)!=h||br&&ti(new br)!=E)&&(ti=function(Ge){var Qt=ft.call(Ge),Rr=Qt==v?Ge.constructor:void 0,Xr=Rr?Oa(Rr):void 0;if(Xr)switch(Xr){case st:return b;case dt:return I;case Bt:return a;case Ar:return h;case Dr:return E}return Qt});function Ro(Ge){var Qt=Ge.length,Rr=Ge.constructor(Qt);return Qt&&typeof Ge[0]=="string"&&Ze.call(Ge,"index")&&(Rr.index=Ge.index,Rr.input=Ge.input),Rr}function wn(Ge){return typeof Ge.constructor=="function"&&!Tn(Ge)?Et(Wt(Ge)):{}}function ja(Ge,Qt,Rr,Xr){var Qa=Ge.constructor;switch(Qt){case _:return ra(Ge);case s:case w:return new Qa(+Ge);case b:return da(Ge,Xr);case j:case R:case z:case q:case U:case K:case F:case V:case W:return Ba(Ge,Xr);case I:return _a(Ge,Xr,Rr);case D:case n:return new Qa(Ge);case u:return ba(Ge);case h:return Wa(Ge,Xr,Rr);case f:return Uo(Ge)}}function Gn(Ge,Qt){return Qt=Qt??Rt,!!Qt&&(typeof Ge=="number"||be.test(Ge))&&Ge>-1&&Ge%1==0&&Ge<Qt}function Ji(Ge){var Qt=typeof Ge;return Qt=="string"||Qt=="number"||Qt=="symbol"||Qt=="boolean"?Ge!=="__proto__":Ge===null}function pn(Ge){return!!ar&&ar in Ge}function Tn(Ge){var Qt=Ge&&Ge.constructor,Rr=typeof Qt=="function"&&Qt.prototype||ir;return Ge===Rr}function Oa(Ge){if(Ge!=null){try{return Ct.call(Ge)}catch{}try{return Ge+""}catch{}}return""}function Ri(Ge){return Cr(Ge,!0,!0)}function xi(Ge,Qt){return Ge===Qt||Ge!==Ge&&Qt!==Qt}function as(Ge){return hi(Ge)&&Ze.call(Ge,"callee")&&(!ee.call(Ge,"callee")||ft.call(Ge)==C)}var Ei=Array.isArray;function ca(Ge){return Ge!=null&&gs(Ge.length)&&!Za(Ge)}function hi(Ge){return jt(Ge)&&ca(Ge)}var Ai=Xe||Sa;function Za(Ge){var Qt=Yn(Ge)?ft.call(Ge):"";return Qt==A||Qt==S}function gs(Ge){return typeof Ge=="number"&&Ge>-1&&Ge%1==0&&Ge<=Rt}function Yn(Ge){var Qt=typeof Ge;return!!Ge&&(Qt=="object"||Qt=="function")}function jt(Ge){return!!Ge&&typeof Ge=="object"}function Yr(Ge){return ca(Ge)?et(Ge):no(Ge)}function Fr(){return[]}function Sa(){return!1}tr.exports=Ri}($m,$m.exports);var J9=$m.exports;const Xw=V9(J9),jd="default",W9="#3a3f51",G9="#afb7c5",k5="20px",Od="24px",ek=(tr,mo)=>{const ko=tr.__vccOpts||tr;for(const[rn,Rt]of mo)ko[rn]=Rt;return ko},Y9=tr=>(_t.pushScopeId("data-v-45e3fd13"),tr=tr(),_t.popScopeId(),tr),Z9=["aria-hidden"],Q9={key:0,"data-testid":"kui-icon-svg-title"},X9=Y9(()=>_t.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"currentColor"},null,-1)),ej=ek(_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:Od,validator:tr=>{if(typeof tr=="number"&&tr>0)return!0;if(typeof tr=="string"){const mo=String(tr).replace(/px/gi,""),ko=Number(mo);if(ko&&!isNaN(ko)&&Number.isInteger(ko)&&ko>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(tr){const mo=tr,ko=_t.computed(()=>{if(typeof mo.size=="number"&&mo.size>0)return`${mo.size}px`;if(typeof mo.size=="string"){const Rt=String(mo.size).replace(/px/gi,""),C=Number(Rt);if(C&&!isNaN(C)&&Number.isInteger(C)&&C>0)return`${C}px`}return Od}),rn=_t.computed(()=>({boxSizing:"border-box",color:mo.color,display:mo.display,height:ko.value,lineHeight:"0",width:ko.value}));return(Rt,C)=>(_t.openBlock(),_t.createBlock(_t.resolveDynamicComponent(tr.as),{"aria-hidden":tr.decorative?"true":void 0,class:"kui-icon chevron-down-icon","data-testid":"kui-icon-wrapper-chevron-down-icon",style:_t.normalizeStyle(rn.value)},{default:_t.withCtx(()=>[(_t.openBlock(),_t.createElementBlock("svg",{"aria-hidden":tr.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"},[tr.title?(_t.openBlock(),_t.createElementBlock("title",Q9,_t.toDisplayString(tr.title),1)):_t.createCommentVNode("",!0),X9],8,Z9))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-45e3fd13"]]),tj=tr=>(_t.pushScopeId("data-v-bc11af98"),tr=tr(),_t.popScopeId(),tr),rj=["aria-hidden"],oj={key:0,"data-testid":"kui-icon-svg-title"},aj=tj(()=>_t.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"currentColor"},null,-1)),nj=ek(_t.defineComponent({__name:"ChevronRightIcon",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:Od,validator:tr=>{if(typeof tr=="number"&&tr>0)return!0;if(typeof tr=="string"){const mo=String(tr).replace(/px/gi,""),ko=Number(mo);if(ko&&!isNaN(ko)&&Number.isInteger(ko)&&ko>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(tr){const mo=tr,ko=_t.computed(()=>{if(typeof mo.size=="number"&&mo.size>0)return`${mo.size}px`;if(typeof mo.size=="string"){const Rt=String(mo.size).replace(/px/gi,""),C=Number(Rt);if(C&&!isNaN(C)&&Number.isInteger(C)&&C>0)return`${C}px`}return Od}),rn=_t.computed(()=>({boxSizing:"border-box",color:mo.color,display:mo.display,height:ko.value,lineHeight:"0",width:ko.value}));return(Rt,C)=>(_t.openBlock(),_t.createBlock(_t.resolveDynamicComponent(tr.as),{"aria-hidden":tr.decorative?"true":void 0,class:"kui-icon chevron-right-icon","data-testid":"kui-icon-wrapper-chevron-right-icon",style:_t.normalizeStyle(rn.value)},{default:_t.withCtx(()=>[(_t.openBlock(),_t.createElementBlock("svg",{"aria-hidden":tr.decorative?"true":void 0,"data-testid":"kui-icon-svg-chevron-right-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[tr.title?(_t.openBlock(),_t.createElementBlock("title",oj,_t.toDisplayString(tr.title),1)):_t.createCommentVNode("",!0),aj],8,rj))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-bc11af98"]]),ij=tr=>(_t.pushScopeId("data-v-da32a283"),tr=tr(),_t.popScopeId(),tr),sj=["aria-hidden"],cj={key:0,"data-testid":"kui-icon-svg-title"},lj=ij(()=>_t.createElementVNode("path",{d:"M10 18V16H14V18H10ZM6 13V11H18V13H6ZM3 8V6H21V8H3Z",fill:"currentColor"},null,-1)),uj=ek(_t.defineComponent({__name:"FilterIcon",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:Od,validator:tr=>{if(typeof tr=="number"&&tr>0)return!0;if(typeof tr=="string"){const mo=String(tr).replace(/px/gi,""),ko=Number(mo);if(ko&&!isNaN(ko)&&Number.isInteger(ko)&&ko>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(tr){const mo=tr,ko=_t.computed(()=>{if(typeof mo.size=="number"&&mo.size>0)return`${mo.size}px`;if(typeof mo.size=="string"){const Rt=String(mo.size).replace(/px/gi,""),C=Number(Rt);if(C&&!isNaN(C)&&Number.isInteger(C)&&C>0)return`${C}px`}return Od}),rn=_t.computed(()=>({boxSizing:"border-box",color:mo.color,display:mo.display,height:ko.value,lineHeight:"0",width:ko.value}));return(Rt,C)=>(_t.openBlock(),_t.createBlock(_t.resolveDynamicComponent(tr.as),{"aria-hidden":tr.decorative?"true":void 0,class:"kui-icon filter-icon","data-testid":"kui-icon-wrapper-filter-icon",style:_t.normalizeStyle(rn.value)},{default:_t.withCtx(()=>[(_t.openBlock(),_t.createElementBlock("svg",{"aria-hidden":tr.decorative?"true":void 0,"data-testid":"kui-icon-svg-filter-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[tr.title?(_t.openBlock(),_t.createElementBlock("title",cj,_t.toDisplayString(tr.title),1)):_t.createCommentVNode("",!0),lj],8,sj))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-da32a283"]]),pj=["aria-controls","aria-expanded","aria-label"],dj={"aria-hidden":"true",class:"icon-wrapper"},gj={"aria-hidden":"true",class:"label truncated"},hj=["title"],x5=Zg(_t.defineComponent({__name:"OperationsListSectionHeader",props:{isCollapsed:{type:Boolean,required:!0},name:{type:String,required:!0},description:{type:String,default:void 0},contentElementId:{type:String,required:!0}},emits:["toggle"],setup(tr){const mo=tr,{i18n:ko}=Ep.useI18n(),rn=_t.computed(()=>mo.isCollapsed?ko.t("specOperationsList.section.expandAriaLabel",{section:`"${mo.name}"`}):ko.t("specOperationsList.section.collapseAriaLabel",{section:`"${mo.name}"`}));return(Rt,C)=>(_t.openBlock(),_t.createElementBlock("button",{"aria-controls":tr.contentElementId,"aria-expanded":tr.isCollapsed?"false":"true","aria-label":rn.value,class:_t.normalizeClass(["header",{"header--collapsed":tr.isCollapsed}]),type:"button",onClick:C[0]||(C[0]=M=>Rt.$emit("toggle"))},[_t.createElementVNode("div",dj,[tr.isCollapsed?(_t.openBlock(),_t.createBlock(_t.unref(nj),{key:0,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-collapsed, ${_t.unref(G9)})`,size:_t.unref(k5)},null,8,["color","size"])):(_t.openBlock(),_t.createBlock(_t.unref(ej),{key:1,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-expanded, ${_t.unref(W9)})`,size:_t.unref(k5)},null,8,["color","size"]))]),_t.createElementVNode("h1",gj,_t.toDisplayString(tr.name),1),_t.createElementVNode("div",{class:"description truncated",title:tr.description},_t.toDisplayString(tr.description),9,hj)],10,pj))}}),[["__scopeId","data-v-3f1b0d9c"]]),fj=["data-testid"],mj=["title"],bj={class:"details"},vj=["aria-label","title"],E5=Zg(_t.defineComponent({__name:"OperationsListItem",props:{item:{type:Object,required:!0,validator:tr=>tr.method!==void 0&&tr.summary!==void 0&&tr.path!==void 0},isSelected:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1}},emits:["click"],setup(tr){const mo=tr,{i18n:ko}=Ep.useI18n(),rn=_t.computed(()=>{var C,M;return`spec-operations-list-item-${(C=mo.item.method)==null?void 0:C.toLowerCase()}${(M=mo.item.path)==null?void 0:M.replaceAll("/","-")}-${mo.item.tag||"-"}`}),Rt=_t.computed(()=>mo.item.method||"");return(C,M)=>{const s=_t.resolveComponent("KBadge");return _t.openBlock(),_t.createElementBlock("button",{class:_t.normalizeClass(["spec-operations-list-item",{"item--selected":tr.isSelected,[`item--method-${tr.item.method}`]:!0,disabled:tr.disableSelection}]),"data-testid":rn.value,type:"button",onClick:M[0]||(M[0]=w=>C.$emit("click",tr.item))},[tr.item.summary?(_t.openBlock(),_t.createElementBlock("h2",{key:0,class:"summary truncated",title:tr.item.summary},_t.toDisplayString(tr.item.summary),9,mj)):_t.createCommentVNode("",!0),_t.createElementVNode("div",bj,[_t.createVNode(s,{appearance:Rt.value,"aria-label":_t.unref(ko).t("specOperationsList.item.methodAriaLabel",{method:Rt.value.toUpperCase()}),"background-color":"var(--kong-ui-spec-renderer-operations-list-item-method-background)",class:"method-badge",color:"var(--kong-ui-spec-renderer-operations-list-item-method-color)",tabindex:"-1"},{default:_t.withCtx(()=>[_t.createTextVNode(_t.toDisplayString(Rt.value.toUpperCase()),1)]),_:1},8,["appearance","aria-label"]),_t.createElementVNode("span",{"aria-label":_t.unref(ko).t("specOperationsList.item.pathAriaLabel",{path:tr.item.path}),class:"path truncated",title:tr.item.path},_t.toDisplayString(tr.item.path),9,vj)])],10,fj)}}}),[["__scopeId","data-v-0effaf03"]]),yj=["aria-label"],wj={key:0},kj={key:0,class:"filter-wrapper"},xj={key:1},Ej=["data-testid"],Sj=["id"],_j={key:0,class:"section","data-testid":"spec-operations-list-untagged-items"},jj=["id"],Oj={key:2,"data-testid":"kong-ui-public-spec-operations-list-empty"},Aj={class:"center"},Cj={key:1,"data-testid":"kong-ui-public-spec-operations-list-error"},{getSizeFromString:Pj,hasRequiredProps:S5}=Ep.useUtilities(),_5=Zg(_t.defineComponent({__name:"SpecOperationsList",props:{operations:{type:Array,required:!0,validator:tr=>!tr.length||S5(tr,["method","path"])},tags:{type:Array,default:()=>[],validator:tr=>!tr.length||S5(tr,["name"])},isFilterable:{type:Boolean,default:!0},filterFunction:{type:Function,default:({items:tr,query:mo})=>(mo=mo.toLowerCase(),tr.filter(ko=>ko.tag&&ko.tag.toLowerCase().includes(mo))),validator:tr=>!!tr&&typeof tr=="function"},deselect:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1},width:{type:String,default:"210"}},emits:["selected"],setup(tr,{emit:mo}){const ko=tr,rn=mo,{i18n:Rt}=Ep.useI18n(),C=_t.computed(()=>H9()),M=_t.ref(""),s=_t.ref([]),w=_t.ref(),x=_t.ref([]),A=()=>{const E=s.value;if(!ko.isFilterable){x.value=E;return}if(!ko.filterFunction||typeof ko.filterFunction!="function")throw new Error(`filterFunction property must be a function, got ${typeof ko.filterFunction}`);x.value=ko.filterFunction({items:E,query:M.value})},S=_t.computed(()=>Pj(ko.width)),I=_t.computed(()=>{const E=[];return x.value.forEach(_=>{_.tag&&!E.includes(_.tag)&&E.push(_.tag)}),E}),D=_t.computed(()=>s.value.filter(E=>!E.tag)),v=E=>{if(!ko.tags||!Array.isArray(ko.tags))return"";const _=ko.tags.find(b=>b.name===E);return(_==null?void 0:_.description)||""},a=E=>x.value.filter(_=>_.tag===E),u=E=>{const _=w.value;return!!_&&_.path===E.path&&_.method===E.method&&_.operationId===E.operationId&&_.tag===E.tag},h=E=>`${C.value}-section-${E.toLowerCase()}`,n=E=>{ko.disableSelection||(w.value=E,rn("selected",E))},f=()=>{s.value=[],ko.operations&&(ko.operations.forEach(E=>{var b;const _=Xw(E);(b=E.tags)!=null&&b.length?E.tags.forEach(j=>{delete _.tags,_.tag=j,s.value.push(Xw(_))}):(delete _.tags,_.tag=null,s.value.push(Xw(_)))}),A())};return _t.watch(()=>ko.deselect,()=>{ko.deselect&&(w.value=void 0)}),_t.watch(()=>ko.operations,()=>f()),_t.watch(M,()=>A()),_t.onMounted(()=>{f()}),(E,_)=>{const b=_t.resolveComponent("KInput"),j=_t.resolveComponent("KCollapse");return _t.openBlock(),_t.createElementBlock("section",{"aria-label":_t.unref(Rt).t("specOperationsList.ariaLabel"),class:"kong-ui-public-spec-operations-list","data-testid":"kong-ui-public-spec-operations-list",role:"navigation",style:_t.normalizeStyle({width:S.value})},[tr.operations?(_t.openBlock(),_t.createElementBlock("div",wj,[tr.isFilterable?(_t.openBlock(),_t.createElementBlock("div",kj,[_t.createVNode(b,{modelValue:M.value,"onUpdate:modelValue":_[0]||(_[0]=R=>M.value=R),class:"filter-input","data-testid":"spec-operations-list-filter",placeholder:_t.unref(Rt).t("specOperationsList.filterPlaceholder")},{before:_t.withCtx(()=>[_t.createVNode(_t.unref(uj),{decorative:""})]),_:1},8,["modelValue","placeholder"])])):_t.createCommentVNode("",!0),x.value.length?(_t.openBlock(),_t.createElementBlock("div",xj,[(_t.openBlock(!0),_t.createElementBlock(_t.Fragment,null,_t.renderList(I.value,R=>(_t.openBlock(),_t.createElementBlock("div",{key:R,class:"section-wrapper","data-testid":`spec-operations-list-section-${R.toLowerCase().replaceAll(" ","-")}`},[_t.createVNode(j,{"model-value":!1,"trigger-alignment":"leading"},{trigger:_t.withCtx(({isCollapsed:z,toggle:q})=>[_t.createVNode(x5,{"content-element-id":h(R),"data-testid":`spec-operations-list-section-${R.toLowerCase().replaceAll(" ","-")}-collapse-trigger`,description:v(R),"is-collapsed":z,name:R,onToggle:q},null,8,["content-element-id","data-testid","description","is-collapsed","name","onToggle"])]),default:_t.withCtx(()=>[_t.createElementVNode("div",{id:h(R)},[(_t.openBlock(!0),_t.createElementBlock(_t.Fragment,null,_t.renderList(a(R),z=>_t.renderSlot(E.$slots,"item",{key:`${z.path}-${z.method}`,item:z,section:R,select:()=>n(z)},()=>[_t.createVNode(E5,{"disable-selection":tr.disableSelection,"is-selected":u(z),item:z,section:R,onClick:n},null,8,["disable-selection","is-selected","item","section"])],!0)),128))],8,Sj)]),_:2},1024)],8,Ej))),128)),!tr.isFilterable||!M.value?(_t.openBlock(),_t.createElementBlock("div",_j,[_t.createVNode(j,{"model-value":!1,"trigger-alignment":"leading"},{trigger:_t.withCtx(({isCollapsed:R,toggle:z})=>[_t.createVNode(x5,{"content-element-id":h(_t.unref(jd)),"data-testid":"spec-operations-list-section-untagged-collapse-trigger",description:v(_t.unref(jd)),"is-collapsed":R,name:_t.unref(jd),onToggle:z},null,8,["content-element-id","description","is-collapsed","name","onToggle"])]),default:_t.withCtx(()=>[_t.createElementVNode("div",{id:h(_t.unref(jd))},[(_t.openBlock(!0),_t.createElementBlock(_t.Fragment,null,_t.renderList(D.value,R=>_t.renderSlot(E.$slots,"untagged-item",{key:`${R.path}-${R.method}`,item:R,section:_t.unref(jd),select:()=>n(R)},()=>[_t.createVNode(E5,{"disable-selection":tr.disableSelection,"is-selected":u(R),item:R,onClick:n},null,8,["disable-selection","is-selected","item"])],!0)),128))],8,jj)]),_:3})])):_t.createCommentVNode("",!0)])):(_t.openBlock(),_t.createElementBlock("div",Oj,[_t.renderSlot(E.$slots,"empty-state",{},()=>[_t.createElementVNode("div",Aj,_t.toDisplayString(_t.unref(Rt).t("specOperationsList.noResults")),1)],!0)]))])):(_t.openBlock(),_t.createElementBlock("div",Cj,[_t.renderSlot(E.$slots,"error-state",{},()=>[_t.createTextVNode(_t.toDisplayString(_t.unref(Rt).t("specOperationsList.error")),1)],!0)]))],12,yj)}}}),[["__scopeId","data-v-158c97ae"]]),Ij={class:"kong-ui-public-spec-renderer"},Tj={key:0,class:"spec-container"},zj={class:"spec-renderer-ops-list-empty-state","data-testid":"spec-renderer-ops-list-empty-state"},Rj={key:1,"data-testid":"kong-ui-public-spec-renderer-error"},{hasRequiredProps:j5}=Ep.useUtilities(),Nj=Zg(_t.defineComponent({__name:"SpecRenderer",props:{spec:{type:Object,required:!0},essentialsOnly:{type:Boolean,default:!1},operationsList:{type:Array,required:!0,validator:tr=>!tr.length||j5(tr,["method","path"])},tags:{type:Array,default:()=>[],validator:tr=>!tr.length||j5(tr,["name"])},navWidth:{type:String,default:"310"},deselect:{type:Boolean,default:!1}},setup(tr){const mo=tr,{i18n:ko}=Ep.useI18n(),rn=_t.computed(()=>!!(mo.spec&&mo.operationsList)),Rt=_t.ref(),C=M=>{Rt.value=M};return(M,s)=>{const w=_t.resolveComponent("KEmptyState");return _t.openBlock(),_t.createElementBlock("div",Ij,[rn.value?(_t.openBlock(),_t.createElementBlock("div",Tj,[_t.createVNode(_5,{"data-testid":"spec-renderer-ops-list-content",deselect:tr.deselect,operations:tr.operationsList,tags:tr.tags,width:tr.navWidth,onSelected:C},{"empty-state":_t.withCtx(()=>[_t.createElementVNode("div",zj,[_t.renderSlot(M.$slots,"ops-list-empty-state",{},void 0,!0)])]),_:3},8,["deselect","operations","tags","width"]),_t.createVNode(y5,{"active-operation":Rt.value,class:"spec-renderer-details","data-testid":"spec-renderer-details-content",document:tr.spec,"essentials-only":tr.essentialsOnly,"has-sidebar":!1},null,8,["active-operation","document","essentials-only"])])):(_t.openBlock(),_t.createElementBlock("div",Rj,[_t.renderSlot(M.$slots,"error-state",{},()=>[_t.createVNode(w,{"action-button-visible":!1,"icon-variant":"error"},{title:_t.withCtx(()=>[_t.createTextVNode(_t.toDisplayString(_t.unref(ko).t("specRenderer.error")),1)]),_:1})],!0)]))])}}}),[["__scopeId","data-v-4cfc670e"]]);Sn.DEFAULT_UNTAGGED_SECTION_NAME=jd,Sn.SpecDetails=y5,Sn.SpecOperationsList=_5,Sn.SpecRenderer=Nj,Object.defineProperty(Sn,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/spec-renderer",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/spec-renderer.umd.js",
|
|
6
6
|
"module": "./dist/spec-renderer.es.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@kong-ui-public/swagger-ui-web-component": "^0.12.0",
|
|
38
|
-
"@kong/icons": "^1.
|
|
38
|
+
"@kong/icons": "^1.15.0",
|
|
39
39
|
"lodash.clonedeep": "^4.5.0",
|
|
40
40
|
"uuid": "^9.0.1",
|
|
41
41
|
"@kong-ui-public/i18n": "^2.2.2"
|