@kong-ui-public/spec-renderer 2.2.1 → 2.2.2

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.
@@ -55077,7 +55077,7 @@ const I5 = /* @__PURE__ */ Ere(Sre), Km = "default", _re = "#3a3f51", jre = "#af
55077
55077
  for (const [Fa, zt] of Yr)
55078
55078
  ao[Fa] = zt;
55079
55079
  return ao;
55080
- }, Ore = (Wt) => (R5("data-v-219f8484"), Wt = Wt(), N5(), Wt), Are = ["aria-hidden"], Cre = {
55080
+ }, Ore = (Wt) => (R5("data-v-5cdeb7d0"), Wt = Wt(), N5(), Wt), Are = ["aria-hidden"], Cre = {
55081
55081
  key: 0,
55082
55082
  "data-testid": "kui-icon-svg-title"
55083
55083
  }, Pre = /* @__PURE__ */ Ore(() => /* @__PURE__ */ Vc("path", {
@@ -55176,7 +55176,7 @@ const I5 = /* @__PURE__ */ Ere(Sre), Km = "default", _re = "#3a3f51", jre = "#af
55176
55176
  _: 1
55177
55177
  }, 8, ["aria-hidden", "style"]));
55178
55178
  }
55179
- }), Tre = /* @__PURE__ */ B5(Ire, [["__scopeId", "data-v-219f8484"]]), zre = (Wt) => (R5("data-v-17db30e5"), Wt = Wt(), N5(), Wt), Rre = ["aria-hidden"], Nre = {
55179
+ }), Tre = /* @__PURE__ */ B5(Ire, [["__scopeId", "data-v-5cdeb7d0"]]), zre = (Wt) => (R5("data-v-bc4cb942"), Wt = Wt(), N5(), Wt), Rre = ["aria-hidden"], Nre = {
55180
55180
  key: 0,
55181
55181
  "data-testid": "kui-icon-svg-title"
55182
55182
  }, Mre = /* @__PURE__ */ zre(() => /* @__PURE__ */ Vc("path", {
@@ -55275,7 +55275,7 @@ const I5 = /* @__PURE__ */ Ere(Sre), Km = "default", _re = "#3a3f51", jre = "#af
55275
55275
  _: 1
55276
55276
  }, 8, ["aria-hidden", "style"]));
55277
55277
  }
55278
- }), Dre = /* @__PURE__ */ B5(Bre, [["__scopeId", "data-v-17db30e5"]]), $re = (Wt) => (R5("data-v-fe73bb0e"), Wt = Wt(), N5(), Wt), Fre = ["aria-hidden"], Lre = {
55278
+ }), Dre = /* @__PURE__ */ B5(Bre, [["__scopeId", "data-v-bc4cb942"]]), $re = (Wt) => (R5("data-v-04f3c61a"), Wt = Wt(), N5(), Wt), Fre = ["aria-hidden"], Lre = {
55279
55279
  key: 0,
55280
55280
  "data-testid": "kui-icon-svg-title"
55281
55281
  }, qre = /* @__PURE__ */ $re(() => /* @__PURE__ */ Vc("path", {
@@ -55374,7 +55374,7 @@ const I5 = /* @__PURE__ */ Ere(Sre), Km = "default", _re = "#3a3f51", jre = "#af
55374
55374
  _: 1
55375
55375
  }, 8, ["aria-hidden", "style"]));
55376
55376
  }
55377
- }), Ure = /* @__PURE__ */ B5(Kre, [["__scopeId", "data-v-fe73bb0e"]]), Hre = ["aria-controls", "aria-expanded", "aria-label"], Vre = {
55377
+ }), Ure = /* @__PURE__ */ B5(Kre, [["__scopeId", "data-v-04f3c61a"]]), Hre = ["aria-controls", "aria-expanded", "aria-label"], Vre = {
55378
55378
  "aria-hidden": "true",
55379
55379
  class: "icon-wrapper"
55380
55380
  }, Jre = {
@@ -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,WW.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=eG(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 D9=["application-registration-enabled","current-version","essentials-only","has-sidebar","relative-sidebar","spec","theme-overrides","url"],$9={key:1,"data-testid":"kong-public-ui-spec-details-error"},F9=_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,D9)):(_t.openBlock(),_t.createElementBlock("div",$9,_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(F9,[["__scopeId","data-v-693c299f"]]);let Bm;const L9=new Uint8Array(16);function q9(){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(L9)}const ds=[];for(let tr=0;tr<256;++tr)ds.push((tr+256).toString(16).slice(1));function K9(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 U9(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||q9)();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||K9(Rt)}var Dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H9(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,Tn=Ge?Ge.length:0;for(Xr&&Tn&&(Rr=Ge[++Qa]);++Qa<Tn;)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 Sn(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=Sn;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 Tn in Ge)(Qt||Ze.call(Ge,Tn))&&!(Qa&&(Tn=="length"||Gn(Tn,Xr)))&&Rr.push(Tn);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,Tn,zn){var si;if(Xr&&(si=Tn?Xr(Ge,Qa,Tn,zn):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&&!Tn){if(Nt(Ge))return Tn?Ge:{};if(si=wn(hs?{}:Ge),!Qt)return cn(Ge,pr(si,Ge))}else{if(!oe[Si])return Tn?Ge:{};si=ja(Ge,Si,Cr,Qt)}}zn||(zn=new yo);var pc=zn.get(Ge);if(pc)return pc;if(zn.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,zn))}),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(!In(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,Tn=Qt.length;++Qa<Tn;){var zn=Qt[Qa],si=Xr?Xr(Rr[zn],Ge[zn],zn,Rr,Ge):void 0;ut(Rr,zn,si===void 0?Ge[zn]: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 Wi(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"&&!In(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 Wi(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 In(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 V9=$m.exports;const Xw=H9(V9),jd="default",J9="#3a3f51",W9="#afb7c5",k5="20px",Od="24px",ek=(tr,mo)=>{const ko=tr.__vccOpts||tr;for(const[rn,Rt]of mo)ko[rn]=Rt;return ko},G9=tr=>(_t.pushScopeId("data-v-219f8484"),tr=tr(),_t.popScopeId(),tr),Y9=["aria-hidden"],Z9={key:0,"data-testid":"kui-icon-svg-title"},Q9=G9(()=>_t.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"currentColor"},null,-1)),X9=_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",Z9,_t.toDisplayString(tr.title),1)):_t.createCommentVNode("",!0),Q9],8,Y9))]),_:1},8,["aria-hidden","style"]))}}),ej=ek(X9,[["__scopeId","data-v-219f8484"]]),tj=tr=>(_t.pushScopeId("data-v-17db30e5"),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=_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"]))}}),ij=ek(nj,[["__scopeId","data-v-17db30e5"]]),sj=tr=>(_t.pushScopeId("data-v-fe73bb0e"),tr=tr(),_t.popScopeId(),tr),cj=["aria-hidden"],lj={key:0,"data-testid":"kui-icon-svg-title"},uj=sj(()=>_t.createElementVNode("path",{d:"M10 18V16H14V18H10ZM6 13V11H18V13H6ZM3 8V6H21V8H3Z",fill:"currentColor"},null,-1)),pj=_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",lj,_t.toDisplayString(tr.title),1)):_t.createCommentVNode("",!0),uj],8,cj))]),_:1},8,["aria-hidden","style"]))}}),dj=ek(pj,[["__scopeId","data-v-fe73bb0e"]]),gj=["aria-controls","aria-expanded","aria-label"],hj={"aria-hidden":"true",class:"icon-wrapper"},fj={"aria-hidden":"true",class:"label truncated"},mj=["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",hj,[tr.isCollapsed?(_t.openBlock(),_t.createBlock(_t.unref(ij),{key:0,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-collapsed, ${_t.unref(W9)})`,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(J9)})`,size:_t.unref(k5)},null,8,["color","size"]))]),_t.createElementVNode("h1",fj,_t.toDisplayString(tr.name),1),_t.createElementVNode("div",{class:"description truncated",title:tr.description},_t.toDisplayString(tr.description),9,mj)],10,gj))}}),[["__scopeId","data-v-3f1b0d9c"]]),bj=["data-testid"],vj=["title"],yj={class:"details"},wj=["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,vj)):_t.createCommentVNode("",!0),_t.createElementVNode("div",yj,[_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,wj)])],10,bj)}}}),[["__scopeId","data-v-33314425"]]),kj=["aria-label"],xj={key:0},Ej={key:0,class:"filter-wrapper"},Sj={key:1},_j=["data-testid"],jj=["id"],Oj={key:0,class:"section","data-testid":"spec-operations-list-untagged-items"},Aj=["id"],Cj={key:2,"data-testid":"kong-ui-public-spec-operations-list-empty"},Pj={class:"center"},Ij={key:1,"data-testid":"kong-ui-public-spec-operations-list-error"},{getSizeFromString:Tj,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(()=>U9()),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(()=>Tj(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",xj,[tr.isFilterable?(_t.openBlock(),_t.createElementBlock("div",Ej,[_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(dj),{decorative:""})]),_:1},8,["modelValue","placeholder"])])):_t.createCommentVNode("",!0),x.value.length?(_t.openBlock(),_t.createElementBlock("div",Sj,[(_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,jj)]),_:2},1024)],8,_j))),128)),!tr.isFilterable||!M.value?(_t.openBlock(),_t.createElementBlock("div",Oj,[_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,Aj)]),_:3})])):_t.createCommentVNode("",!0)])):(_t.openBlock(),_t.createElementBlock("div",Cj,[_t.renderSlot(E.$slots,"empty-state",{},()=>[_t.createElementVNode("div",Pj,_t.toDisplayString(_t.unref(Rt).t("specOperationsList.noResults")),1)],!0)]))])):(_t.openBlock(),_t.createElementBlock("div",Ij,[_t.renderSlot(E.$slots,"error-state",{},()=>[_t.createTextVNode(_t.toDisplayString(_t.unref(Rt).t("specOperationsList.error")),1)],!0)]))],12,kj)}}}),[["__scopeId","data-v-158c97ae"]]),zj={class:"kong-ui-public-spec-renderer"},Rj={key:0,class:"spec-container"},Nj={class:"spec-renderer-ops-list-empty-state","data-testid":"spec-renderer-ops-list-empty-state"},Mj={key:1,"data-testid":"kong-ui-public-spec-renderer-error"},{hasRequiredProps:j5}=Ep.useUtilities(),Bj=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",zj,[rn.value?(_t.openBlock(),_t.createElementBlock("div",Rj,[_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",Nj,[_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",Mj,[_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"]]);Bn.DEFAULT_UNTAGGED_SECTION_NAME=jd,Bn.SpecDetails=y5,Bn.SpecOperationsList=_5,Bn.SpecRenderer=Bj,Object.defineProperty(Bn,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,WW.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=eG(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 D9=["application-registration-enabled","current-version","essentials-only","has-sidebar","relative-sidebar","spec","theme-overrides","url"],$9={key:1,"data-testid":"kong-public-ui-spec-details-error"},F9=_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,D9)):(_t.openBlock(),_t.createElementBlock("div",$9,_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(F9,[["__scopeId","data-v-693c299f"]]);let Bm;const L9=new Uint8Array(16);function q9(){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(L9)}const ds=[];for(let tr=0;tr<256;++tr)ds.push((tr+256).toString(16).slice(1));function K9(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 U9(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||q9)();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||K9(Rt)}var Dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H9(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,Tn=Ge?Ge.length:0;for(Xr&&Tn&&(Rr=Ge[++Qa]);++Qa<Tn;)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 Sn(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=Sn;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 Tn in Ge)(Qt||Ze.call(Ge,Tn))&&!(Qa&&(Tn=="length"||Gn(Tn,Xr)))&&Rr.push(Tn);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,Tn,zn){var si;if(Xr&&(si=Tn?Xr(Ge,Qa,Tn,zn):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&&!Tn){if(Nt(Ge))return Tn?Ge:{};if(si=wn(hs?{}:Ge),!Qt)return cn(Ge,pr(si,Ge))}else{if(!oe[Si])return Tn?Ge:{};si=ja(Ge,Si,Cr,Qt)}}zn||(zn=new yo);var pc=zn.get(Ge);if(pc)return pc;if(zn.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,zn))}),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(!In(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,Tn=Qt.length;++Qa<Tn;){var zn=Qt[Qa],si=Xr?Xr(Rr[zn],Ge[zn],zn,Rr,Ge):void 0;ut(Rr,zn,si===void 0?Ge[zn]: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 Wi(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"&&!In(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 Wi(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 In(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 V9=$m.exports;const Xw=H9(V9),jd="default",J9="#3a3f51",W9="#afb7c5",k5="20px",Od="24px",ek=(tr,mo)=>{const ko=tr.__vccOpts||tr;for(const[rn,Rt]of mo)ko[rn]=Rt;return ko},G9=tr=>(_t.pushScopeId("data-v-5cdeb7d0"),tr=tr(),_t.popScopeId(),tr),Y9=["aria-hidden"],Z9={key:0,"data-testid":"kui-icon-svg-title"},Q9=G9(()=>_t.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"currentColor"},null,-1)),X9=_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",Z9,_t.toDisplayString(tr.title),1)):_t.createCommentVNode("",!0),Q9],8,Y9))]),_:1},8,["aria-hidden","style"]))}}),ej=ek(X9,[["__scopeId","data-v-5cdeb7d0"]]),tj=tr=>(_t.pushScopeId("data-v-bc4cb942"),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=_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"]))}}),ij=ek(nj,[["__scopeId","data-v-bc4cb942"]]),sj=tr=>(_t.pushScopeId("data-v-04f3c61a"),tr=tr(),_t.popScopeId(),tr),cj=["aria-hidden"],lj={key:0,"data-testid":"kui-icon-svg-title"},uj=sj(()=>_t.createElementVNode("path",{d:"M10 18V16H14V18H10ZM6 13V11H18V13H6ZM3 8V6H21V8H3Z",fill:"currentColor"},null,-1)),pj=_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",lj,_t.toDisplayString(tr.title),1)):_t.createCommentVNode("",!0),uj],8,cj))]),_:1},8,["aria-hidden","style"]))}}),dj=ek(pj,[["__scopeId","data-v-04f3c61a"]]),gj=["aria-controls","aria-expanded","aria-label"],hj={"aria-hidden":"true",class:"icon-wrapper"},fj={"aria-hidden":"true",class:"label truncated"},mj=["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",hj,[tr.isCollapsed?(_t.openBlock(),_t.createBlock(_t.unref(ij),{key:0,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-collapsed, ${_t.unref(W9)})`,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(J9)})`,size:_t.unref(k5)},null,8,["color","size"]))]),_t.createElementVNode("h1",fj,_t.toDisplayString(tr.name),1),_t.createElementVNode("div",{class:"description truncated",title:tr.description},_t.toDisplayString(tr.description),9,mj)],10,gj))}}),[["__scopeId","data-v-3f1b0d9c"]]),bj=["data-testid"],vj=["title"],yj={class:"details"},wj=["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,vj)):_t.createCommentVNode("",!0),_t.createElementVNode("div",yj,[_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,wj)])],10,bj)}}}),[["__scopeId","data-v-33314425"]]),kj=["aria-label"],xj={key:0},Ej={key:0,class:"filter-wrapper"},Sj={key:1},_j=["data-testid"],jj=["id"],Oj={key:0,class:"section","data-testid":"spec-operations-list-untagged-items"},Aj=["id"],Cj={key:2,"data-testid":"kong-ui-public-spec-operations-list-empty"},Pj={class:"center"},Ij={key:1,"data-testid":"kong-ui-public-spec-operations-list-error"},{getSizeFromString:Tj,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(()=>U9()),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(()=>Tj(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",xj,[tr.isFilterable?(_t.openBlock(),_t.createElementBlock("div",Ej,[_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(dj),{decorative:""})]),_:1},8,["modelValue","placeholder"])])):_t.createCommentVNode("",!0),x.value.length?(_t.openBlock(),_t.createElementBlock("div",Sj,[(_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,jj)]),_:2},1024)],8,_j))),128)),!tr.isFilterable||!M.value?(_t.openBlock(),_t.createElementBlock("div",Oj,[_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,Aj)]),_:3})])):_t.createCommentVNode("",!0)])):(_t.openBlock(),_t.createElementBlock("div",Cj,[_t.renderSlot(E.$slots,"empty-state",{},()=>[_t.createElementVNode("div",Pj,_t.toDisplayString(_t.unref(Rt).t("specOperationsList.noResults")),1)],!0)]))])):(_t.openBlock(),_t.createElementBlock("div",Ij,[_t.renderSlot(E.$slots,"error-state",{},()=>[_t.createTextVNode(_t.toDisplayString(_t.unref(Rt).t("specOperationsList.error")),1)],!0)]))],12,kj)}}}),[["__scopeId","data-v-158c97ae"]]),zj={class:"kong-ui-public-spec-renderer"},Rj={key:0,class:"spec-container"},Nj={class:"spec-renderer-ops-list-empty-state","data-testid":"spec-renderer-ops-list-empty-state"},Mj={key:1,"data-testid":"kong-ui-public-spec-renderer-error"},{hasRequiredProps:j5}=Ep.useUtilities(),Bj=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",zj,[rn.value?(_t.openBlock(),_t.createElementBlock("div",Rj,[_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",Nj,[_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",Mj,[_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"]]);Bn.DEFAULT_UNTAGGED_SECTION_NAME=jd,Bn.SpecDetails=y5,Bn.SpecOperationsList=_5,Bn.SpecRenderer=Bj,Object.defineProperty(Bn,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.1",
3
+ "version": "2.2.2",
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.9.1",
38
+ "@kong/icons": "^1.9.2",
39
39
  "lodash.clonedeep": "^4.5.0",
40
40
  "uuid": "^9.0.1",
41
41
  "@kong-ui-public/i18n": "^2.2.1"